@everymatrix/player-account-vault 1.86.4 → 1.86.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
1
  var ci = Object.defineProperty, hi = Object.defineProperties;
2
2
  var fi = Object.getOwnPropertyDescriptors;
3
- var Mn = Object.getOwnPropertySymbols;
3
+ var Fn = Object.getOwnPropertySymbols;
4
4
  var pi = Object.prototype.hasOwnProperty, di = Object.prototype.propertyIsEnumerable;
5
- var Qt = (e, t, n) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Pe = (e, t) => {
5
+ var nn = (e, t, n) => t in e ? ci(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ie = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- pi.call(t, n) && Qt(e, n, t[n]);
8
- if (Mn)
9
- for (var n of Mn(t))
10
- di.call(t, n) && Qt(e, n, t[n]);
7
+ pi.call(t, n) && nn(e, n, t[n]);
8
+ if (Fn)
9
+ for (var n of Fn(t))
10
+ di.call(t, n) && nn(e, n, t[n]);
11
11
  return e;
12
- }, Yt = (e, t) => hi(e, fi(t));
13
- var ae = (e, t, n) => (Qt(e, typeof t != "symbol" ? t + "" : t, n), n);
14
- var Bt = (e, t, n) => new Promise((r, i) => {
12
+ }, rn = (e, t) => hi(e, fi(t));
13
+ var ae = (e, t, n) => (nn(e, typeof t != "symbol" ? t + "" : t, n), n);
14
+ var Ht = (e, t, n) => new Promise((r, i) => {
15
15
  var o = (l) => {
16
16
  try {
17
17
  s(n.next(l));
@@ -27,46 +27,46 @@ var Bt = (e, t, n) => new Promise((r, i) => {
27
27
  }, s = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, a);
28
28
  s((n = n.apply(e, t)).next());
29
29
  });
30
- function P() {
30
+ function I() {
31
31
  }
32
- function Ar(e) {
32
+ function Tr(e) {
33
33
  return e();
34
34
  }
35
- function kn() {
35
+ function Un() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
- function we(e) {
39
- e.forEach(Ar);
38
+ function Ae(e) {
39
+ e.forEach(Tr);
40
40
  }
41
- function vt(e) {
41
+ function _t(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Gt(e, t) {
44
+ function Xt(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
47
  function mi(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function Tr(e, ...t) {
50
+ function Cr(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const r of t)
53
53
  r(void 0);
54
- return P;
54
+ return I;
55
55
  }
56
56
  const n = e.subscribe(...t);
57
57
  return n.unsubscribe ? () => n.unsubscribe() : n;
58
58
  }
59
59
  function gi(e) {
60
60
  let t;
61
- return Tr(e, (n) => t = n)(), t;
61
+ return Cr(e, (n) => t = n)(), t;
62
62
  }
63
63
  function bi(e) {
64
- return e && vt(e.destroy) ? e.destroy : P;
64
+ return e && _t(e.destroy) ? e.destroy : I;
65
65
  }
66
66
  function x(e, t) {
67
67
  e.appendChild(t);
68
68
  }
69
- function Hn(e, t, n) {
69
+ function Ln(e, t, n) {
70
70
  const r = yi(e);
71
71
  if (!r.getElementById(t)) {
72
72
  const i = T("style");
@@ -90,26 +90,26 @@ function vi(e, t) {
90
90
  t
91
91
  ), t.sheet;
92
92
  }
93
- function H(e, t, n) {
93
+ function P(e, t, n) {
94
94
  e.insertBefore(t, n || null);
95
95
  }
96
96
  function B(e) {
97
97
  e.parentNode && e.parentNode.removeChild(e);
98
98
  }
99
- function Cr(e, t) {
99
+ function Sr(e, t) {
100
100
  for (let n = 0; n < e.length; n += 1)
101
101
  e[n] && e[n].d(t);
102
102
  }
103
103
  function T(e) {
104
104
  return document.createElement(e);
105
105
  }
106
- function Fn(e) {
106
+ function Vn(e) {
107
107
  return document.createElementNS("http://www.w3.org/2000/svg", e);
108
108
  }
109
109
  function z(e) {
110
110
  return document.createTextNode(e);
111
111
  }
112
- function D() {
112
+ function R() {
113
113
  return z(" ");
114
114
  }
115
115
  function _i() {
@@ -126,7 +126,7 @@ function Ei(e) {
126
126
  function v(e, t, n) {
127
127
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
128
128
  }
129
- function kt(e) {
129
+ function Vt(e) {
130
130
  return e === "" ? null : +e;
131
131
  }
132
132
  function xi(e) {
@@ -136,7 +136,7 @@ function re(e, t) {
136
136
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
137
137
  t);
138
138
  }
139
- function Ht(e, t) {
139
+ function It(e, t) {
140
140
  e.value = t == null ? "" : t;
141
141
  }
142
142
  function se(e, t, n) {
@@ -151,69 +151,69 @@ function wi(e) {
151
151
  }
152
152
  ), t;
153
153
  }
154
- let mt;
155
- function dt(e) {
156
- mt = e;
154
+ let gt;
155
+ function mt(e) {
156
+ gt = e;
157
157
  }
158
- function Sr() {
159
- if (!mt)
158
+ function Br() {
159
+ if (!gt)
160
160
  throw new Error("Function called outside component initialization");
161
- return mt;
161
+ return gt;
162
162
  }
163
- function Br(e) {
164
- Sr().$$.on_mount.push(e);
163
+ function Pr(e) {
164
+ Br().$$.on_mount.push(e);
165
165
  }
166
166
  function Ai(e) {
167
- Sr().$$.on_destroy.push(e);
167
+ Br().$$.on_destroy.push(e);
168
168
  }
169
- const Ke = [], Ye = [];
169
+ const Ke = [], Qe = [];
170
170
  let qe = [];
171
- const un = [], Hr = /* @__PURE__ */ Promise.resolve();
172
- let cn = !1;
171
+ const dn = [], Hr = /* @__PURE__ */ Promise.resolve();
172
+ let mn = !1;
173
173
  function Ir() {
174
- cn || (cn = !0, Hr.then(U));
174
+ mn || (mn = !0, Hr.then(F));
175
175
  }
176
176
  function Ti() {
177
177
  return Ir(), Hr;
178
178
  }
179
- function hn(e) {
179
+ function gn(e) {
180
180
  qe.push(e);
181
181
  }
182
- function Un(e) {
183
- un.push(e);
182
+ function Gn(e) {
183
+ dn.push(e);
184
184
  }
185
- const Jt = /* @__PURE__ */ new Set();
185
+ const on = /* @__PURE__ */ new Set();
186
186
  let ze = 0;
187
- function U() {
187
+ function F() {
188
188
  if (ze !== 0)
189
189
  return;
190
- const e = mt;
190
+ const e = gt;
191
191
  do {
192
192
  try {
193
193
  for (; ze < Ke.length; ) {
194
194
  const t = Ke[ze];
195
- ze++, dt(t), Ci(t.$$);
195
+ ze++, mt(t), Ci(t.$$);
196
196
  }
197
197
  } catch (t) {
198
198
  throw Ke.length = 0, ze = 0, t;
199
199
  }
200
- for (dt(null), Ke.length = 0, ze = 0; Ye.length; )
201
- Ye.pop()();
200
+ for (mt(null), Ke.length = 0, ze = 0; Qe.length; )
201
+ Qe.pop()();
202
202
  for (let t = 0; t < qe.length; t += 1) {
203
203
  const n = qe[t];
204
- Jt.has(n) || (Jt.add(n), n());
204
+ on.has(n) || (on.add(n), n());
205
205
  }
206
206
  qe.length = 0;
207
207
  } while (Ke.length);
208
- for (; un.length; )
209
- un.pop()();
210
- cn = !1, Jt.clear(), dt(e);
208
+ for (; dn.length; )
209
+ dn.pop()();
210
+ mn = !1, on.clear(), mt(e);
211
211
  }
212
212
  function Ci(e) {
213
213
  if (e.fragment !== null) {
214
- e.update(), we(e.before_update);
214
+ e.update(), Ae(e.before_update);
215
215
  const t = e.dirty;
216
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(hn);
216
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(gn);
217
217
  }
218
218
  }
219
219
  function Si(e) {
@@ -231,7 +231,7 @@ function ke() {
231
231
  };
232
232
  }
233
233
  function Fe() {
234
- Me.r || we(Me.c), Me = Me.p;
234
+ Me.r || Ae(Me.c), Me = Me.p;
235
235
  }
236
236
  function G(e, t) {
237
237
  e && e.i && (Rt.delete(e), e.i(t));
@@ -246,41 +246,41 @@ function X(e, t, n, r) {
246
246
  } else
247
247
  r && r();
248
248
  }
249
- function Ft(e) {
249
+ function Gt(e) {
250
250
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
251
251
  }
252
- function Vn(e, t, n) {
252
+ function $n(e, t, n) {
253
253
  const r = e.$$.props[t];
254
254
  r !== void 0 && (e.$$.bound[r] = n, n(e.$$.ctx[r]));
255
255
  }
256
- function gt(e) {
256
+ function bt(e) {
257
257
  e && e.c();
258
258
  }
259
- function Je(e, t, n) {
259
+ function Ye(e, t, n) {
260
260
  const { fragment: r, after_update: i } = e.$$;
261
- r && r.m(t, n), hn(() => {
262
- const o = e.$$.on_mount.map(Ar).filter(vt);
263
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : we(o), e.$$.on_mount = [];
264
- }), i.forEach(hn);
261
+ r && r.m(t, n), gn(() => {
262
+ const o = e.$$.on_mount.map(Tr).filter(_t);
263
+ e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ae(o), e.$$.on_mount = [];
264
+ }), i.forEach(gn);
265
265
  }
266
- function et(e, t) {
266
+ function Je(e, t) {
267
267
  const n = e.$$;
268
- n.fragment !== null && (Si(n.after_update), we(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
268
+ n.fragment !== null && (Si(n.after_update), Ae(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
269
269
  }
270
270
  function Bi(e, t) {
271
271
  e.$$.dirty[0] === -1 && (Ke.push(e), Ir(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
272
272
  }
273
- function In(e, t, n, r, i, o, a = null, s = [-1]) {
274
- const l = mt;
275
- dt(e);
273
+ function Nn(e, t, n, r, i, o, a = null, s = [-1]) {
274
+ const l = gt;
275
+ mt(e);
276
276
  const u = e.$$ = {
277
277
  fragment: null,
278
278
  ctx: [],
279
279
  // state
280
280
  props: o,
281
- update: P,
281
+ update: I,
282
282
  not_equal: i,
283
- bound: kn(),
283
+ bound: Un(),
284
284
  // lifecycle
285
285
  on_mount: [],
286
286
  on_destroy: [],
@@ -289,7 +289,7 @@ function In(e, t, n, r, i, o, a = null, s = [-1]) {
289
289
  after_update: [],
290
290
  context: new Map(t.context || (l ? l.$$.context : [])),
291
291
  // everything else
292
- callbacks: kn(),
292
+ callbacks: Un(),
293
293
  dirty: s,
294
294
  skip_bound: !1,
295
295
  root: t.target || l.$$.root
@@ -299,18 +299,18 @@ function In(e, t, n, r, i, o, a = null, s = [-1]) {
299
299
  if (u.ctx = n ? n(e, t.props || {}, (f, c, ...m) => {
300
300
  const _ = m.length ? m[0] : c;
301
301
  return u.ctx && i(u.ctx[f], u.ctx[f] = _) && (!u.skip_bound && u.bound[f] && u.bound[f](_), h && Bi(e, f)), c;
302
- }) : [], u.update(), h = !0, we(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
302
+ }) : [], u.update(), h = !0, Ae(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
303
303
  if (t.hydrate) {
304
304
  const f = xi(t.target);
305
305
  u.fragment && u.fragment.l(f), f.forEach(B);
306
306
  } else
307
307
  u.fragment && u.fragment.c();
308
- t.intro && G(e.$$.fragment), Je(e, t.target, t.anchor), U();
308
+ t.intro && G(e.$$.fragment), Ye(e, t.target, t.anchor), F();
309
309
  }
310
- dt(l);
310
+ mt(l);
311
311
  }
312
- let Pr;
313
- typeof HTMLElement == "function" && (Pr = class extends HTMLElement {
312
+ let Or;
313
+ typeof HTMLElement == "function" && (Or = class extends HTMLElement {
314
314
  constructor(t, n, r) {
315
315
  super();
316
316
  /** The Svelte component constructor */
@@ -347,7 +347,7 @@ typeof HTMLElement == "function" && (Pr = class extends HTMLElement {
347
347
  }
348
348
  }
349
349
  connectedCallback() {
350
- return Bt(this, null, function* () {
350
+ return Ht(this, null, function* () {
351
351
  if (this.$$cn = !0, !this.$$c) {
352
352
  let t = function(o) {
353
353
  return () => {
@@ -361,7 +361,7 @@ typeof HTMLElement == "function" && (Pr = class extends HTMLElement {
361
361
  * @param {HTMLElement} [anchor]
362
362
  */
363
363
  m: function(u, h) {
364
- H(u, a, h);
364
+ P(u, a, h);
365
365
  },
366
366
  d: function(u) {
367
367
  u && B(a);
@@ -376,13 +376,13 @@ typeof HTMLElement == "function" && (Pr = class extends HTMLElement {
376
376
  o in r && (n[o] = [t(o)]);
377
377
  for (const o of this.attributes) {
378
378
  const a = this.$$g_p(o.name);
379
- a in this.$$d || (this.$$d[a] = Ot(a, o.value, this.$$p_d, "toProp"));
379
+ a in this.$$d || (this.$$d[a] = Dt(a, o.value, this.$$p_d, "toProp"));
380
380
  }
381
381
  for (const o in this.$$p_d)
382
382
  !(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
383
383
  this.$$c = new this.$$ctor({
384
384
  target: this.shadowRoot || this,
385
- props: Yt(Pe({}, this.$$d), {
385
+ props: rn(Ie({}, this.$$d), {
386
386
  $$slots: n,
387
387
  $$scope: {
388
388
  ctx: []
@@ -393,7 +393,7 @@ typeof HTMLElement == "function" && (Pr = class extends HTMLElement {
393
393
  this.$$r = !0;
394
394
  for (const o in this.$$p_d)
395
395
  if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
396
- const a = Ot(
396
+ const a = Dt(
397
397
  o,
398
398
  this.$$d[o],
399
399
  this.$$p_d,
@@ -417,7 +417,7 @@ typeof HTMLElement == "function" && (Pr = class extends HTMLElement {
417
417
  // and setting attributes through setAttribute etc, this is helpful
418
418
  attributeChangedCallback(t, n, r) {
419
419
  var i;
420
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ot(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
420
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = Dt(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
421
421
  }
422
422
  disconnectedCallback() {
423
423
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -430,7 +430,7 @@ typeof HTMLElement == "function" && (Pr = class extends HTMLElement {
430
430
  ) || t;
431
431
  }
432
432
  });
433
- function Ot(e, t, n, r) {
433
+ function Dt(e, t, n, r) {
434
434
  var o;
435
435
  const i = (o = n[e]) == null ? void 0 : o.type;
436
436
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
@@ -460,8 +460,8 @@ function Ot(e, t, n, r) {
460
460
  return t;
461
461
  }
462
462
  }
463
- function Pn(e, t, n, r, i, o) {
464
- let a = class extends Pr {
463
+ function Rn(e, t, n, r, i, o) {
464
+ let a = class extends Or {
465
465
  constructor() {
466
466
  super(e, n, i), this.$$p_d = t;
467
467
  }
@@ -478,7 +478,7 @@ function Pn(e, t, n, r, i, o) {
478
478
  },
479
479
  set(l) {
480
480
  var u;
481
- l = Ot(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
481
+ l = Dt(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
482
482
  }
483
483
  });
484
484
  }), r.forEach((s) => {
@@ -491,7 +491,7 @@ function Pn(e, t, n, r, i, o) {
491
491
  }), e.element = /** @type {any} */
492
492
  a, a;
493
493
  }
494
- class Ln {
494
+ class Dn {
495
495
  constructor() {
496
496
  /**
497
497
  * ### PRIVATE API
@@ -512,7 +512,7 @@ class Ln {
512
512
  }
513
513
  /** @returns {void} */
514
514
  $destroy() {
515
- et(this, 1), this.$destroy = P;
515
+ Je(this, 1), this.$destroy = I;
516
516
  }
517
517
  /**
518
518
  * @template {Extract<keyof Events, string>} K
@@ -521,8 +521,8 @@ class Ln {
521
521
  * @returns {() => void}
522
522
  */
523
523
  $on(t, n) {
524
- if (!vt(n))
525
- return P;
524
+ if (!_t(n))
525
+ return I;
526
526
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
527
527
  return r.push(n), () => {
528
528
  const i = r.indexOf(n);
@@ -537,19 +537,19 @@ class Ln {
537
537
  this.$$set && !mi(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
538
538
  }
539
539
  }
540
- const Hi = "4";
541
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hi);
540
+ const Pi = "4";
541
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Pi);
542
542
  const Ze = [];
543
- function Ii(e, t) {
543
+ function Hi(e, t) {
544
544
  return {
545
- subscribe: $t(e, t).subscribe
545
+ subscribe: zt(e, t).subscribe
546
546
  };
547
547
  }
548
- function $t(e, t = P) {
548
+ function zt(e, t = I) {
549
549
  let n;
550
550
  const r = /* @__PURE__ */ new Set();
551
551
  function i(s) {
552
- if (Gt(e, s) && (e = s, n)) {
552
+ if (Xt(e, s) && (e = s, n)) {
553
553
  const l = !Ze.length;
554
554
  for (const u of r)
555
555
  u[1](), Ze.push(u, e);
@@ -563,31 +563,31 @@ function $t(e, t = P) {
563
563
  function o(s) {
564
564
  i(s(e));
565
565
  }
566
- function a(s, l = P) {
566
+ function a(s, l = I) {
567
567
  const u = [s, l];
568
- return r.add(u), r.size === 1 && (n = t(i, o) || P), s(e), () => {
568
+ return r.add(u), r.size === 1 && (n = t(i, o) || I), s(e), () => {
569
569
  r.delete(u), r.size === 0 && n && (n(), n = null);
570
570
  };
571
571
  }
572
572
  return { set: i, update: o, subscribe: a };
573
573
  }
574
- function ot(e, t, n) {
574
+ function it(e, t, n) {
575
575
  const r = !Array.isArray(e), i = r ? [e] : e;
576
576
  if (!i.every(Boolean))
577
577
  throw new Error("derived() expects stores as input, got a falsy value");
578
578
  const o = t.length < 2;
579
- return Ii(n, (a, s) => {
579
+ return Hi(n, (a, s) => {
580
580
  let l = !1;
581
581
  const u = [];
582
- let h = 0, f = P;
582
+ let h = 0, f = I;
583
583
  const c = () => {
584
584
  if (h)
585
585
  return;
586
586
  f();
587
587
  const _ = t(r ? u[0] : u, a, s);
588
- o ? a(_) : f = vt(_) ? _ : P;
588
+ o ? a(_) : f = _t(_) ? _ : I;
589
589
  }, m = i.map(
590
- (_, g) => Tr(
590
+ (_, g) => Cr(
591
591
  _,
592
592
  (w) => {
593
593
  u[g] = w, h &= ~(1 << g), l && c();
@@ -598,50 +598,50 @@ function ot(e, t, n) {
598
598
  )
599
599
  );
600
600
  return l = !0, c(), function() {
601
- we(m), f(), l = !1;
601
+ Ae(m), f(), l = !1;
602
602
  };
603
603
  });
604
604
  }
605
- function Pi(e) {
605
+ function Ii(e) {
606
606
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
607
607
  }
608
- var Li = function(t) {
609
- return Ri(t) && !Oi(t);
608
+ var Oi = function(t) {
609
+ return Li(t) && !Ni(t);
610
610
  };
611
- function Ri(e) {
611
+ function Li(e) {
612
612
  return !!e && typeof e == "object";
613
613
  }
614
- function Oi(e) {
614
+ function Ni(e) {
615
615
  var t = Object.prototype.toString.call(e);
616
616
  return t === "[object RegExp]" || t === "[object Date]" || Mi(e);
617
617
  }
618
- var Ni = typeof Symbol == "function" && Symbol.for, Di = Ni ? Symbol.for("react.element") : 60103;
618
+ var Ri = typeof Symbol == "function" && Symbol.for, Di = Ri ? Symbol.for("react.element") : 60103;
619
619
  function Mi(e) {
620
620
  return e.$$typeof === Di;
621
621
  }
622
622
  function ki(e) {
623
623
  return Array.isArray(e) ? [] : {};
624
624
  }
625
- function bt(e, t) {
626
- return t.clone !== !1 && t.isMergeableObject(e) ? tt(ki(e), e, t) : e;
625
+ function yt(e, t) {
626
+ return t.clone !== !1 && t.isMergeableObject(e) ? et(ki(e), e, t) : e;
627
627
  }
628
628
  function Fi(e, t, n) {
629
629
  return e.concat(t).map(function(r) {
630
- return bt(r, n);
630
+ return yt(r, n);
631
631
  });
632
632
  }
633
633
  function Ui(e, t) {
634
634
  if (!t.customMerge)
635
- return tt;
635
+ return et;
636
636
  var n = t.customMerge(e);
637
- return typeof n == "function" ? n : tt;
637
+ return typeof n == "function" ? n : et;
638
638
  }
639
639
  function Vi(e) {
640
640
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
641
641
  return Object.propertyIsEnumerable.call(e, t);
642
642
  }) : [];
643
643
  }
644
- function Gn(e) {
644
+ function jn(e) {
645
645
  return Object.keys(e).concat(Vi(e));
646
646
  }
647
647
  function Lr(e, t) {
@@ -656,66 +656,52 @@ function Gi(e, t) {
656
656
  }
657
657
  function $i(e, t, n) {
658
658
  var r = {};
659
- return n.isMergeableObject(e) && Gn(e).forEach(function(i) {
660
- r[i] = bt(e[i], n);
661
- }), Gn(t).forEach(function(i) {
662
- Gi(e, i) || (Lr(e, i) && n.isMergeableObject(t[i]) ? r[i] = Ui(i, n)(e[i], t[i], n) : r[i] = bt(t[i], n));
659
+ return n.isMergeableObject(e) && jn(e).forEach(function(i) {
660
+ r[i] = yt(e[i], n);
661
+ }), jn(t).forEach(function(i) {
662
+ Gi(e, i) || (Lr(e, i) && n.isMergeableObject(t[i]) ? r[i] = Ui(i, n)(e[i], t[i], n) : r[i] = yt(t[i], n));
663
663
  }), r;
664
664
  }
665
- function tt(e, t, n) {
666
- n = n || {}, n.arrayMerge = n.arrayMerge || Fi, n.isMergeableObject = n.isMergeableObject || Li, n.cloneUnlessOtherwiseSpecified = bt;
665
+ function et(e, t, n) {
666
+ n = n || {}, n.arrayMerge = n.arrayMerge || Fi, n.isMergeableObject = n.isMergeableObject || Oi, n.cloneUnlessOtherwiseSpecified = yt;
667
667
  var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
668
- return o ? r ? n.arrayMerge(e, t, n) : $i(e, t, n) : bt(t, n);
668
+ return o ? r ? n.arrayMerge(e, t, n) : $i(e, t, n) : yt(t, n);
669
669
  }
670
- tt.all = function(t, n) {
670
+ et.all = function(t, n) {
671
671
  if (!Array.isArray(t))
672
672
  throw new Error("first argument should be an array");
673
673
  return t.reduce(function(r, i) {
674
- return tt(r, i, n);
674
+ return et(r, i, n);
675
675
  }, {});
676
676
  };
677
- var ji = tt, Wi = ji;
678
- const Xi = /* @__PURE__ */ Pi(Wi);
679
- /*! *****************************************************************************
680
- Copyright (c) Microsoft Corporation.
681
-
682
- Permission to use, copy, modify, and/or distribute this software for any
683
- purpose with or without fee is hereby granted.
684
-
685
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
686
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
687
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
688
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
689
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
690
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
691
- PERFORMANCE OF THIS SOFTWARE.
692
- ***************************************************************************** */
693
- var fn = function(e, t) {
694
- return fn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
677
+ var ji = et, Wi = ji;
678
+ const Xi = /* @__PURE__ */ Ii(Wi);
679
+ var bn = function(e, t) {
680
+ return bn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
695
681
  n.__proto__ = r;
696
682
  } || function(n, r) {
697
683
  for (var i in r)
698
684
  Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
699
- }, fn(e, t);
685
+ }, bn(e, t);
700
686
  };
701
- function Ae(e, t) {
687
+ function Zt(e, t) {
702
688
  if (typeof t != "function" && t !== null)
703
689
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
704
- fn(e, t);
690
+ bn(e, t);
705
691
  function n() {
706
692
  this.constructor = e;
707
693
  }
708
694
  e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
709
695
  }
710
- var N = function() {
711
- return N = Object.assign || function(t) {
696
+ var me = function() {
697
+ return me = Object.assign || function(t) {
712
698
  for (var n, r = 1, i = arguments.length; r < i; r++) {
713
699
  n = arguments[r];
714
700
  for (var o in n)
715
701
  Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
716
702
  }
717
703
  return t;
718
- }, N.apply(this, arguments);
704
+ }, me.apply(this, arguments);
719
705
  };
720
706
  function zi(e, t) {
721
707
  var n = {};
@@ -726,46 +712,14 @@ function zi(e, t) {
726
712
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
727
713
  return n;
728
714
  }
729
- function pn(e) {
730
- var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
731
- if (n)
732
- return n.call(e);
733
- if (e && typeof e.length == "number")
734
- return {
735
- next: function() {
736
- return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
737
- }
738
- };
739
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
740
- }
741
- function dn(e, t) {
742
- var n = typeof Symbol == "function" && e[Symbol.iterator];
743
- if (!n)
744
- return e;
745
- var r = n.call(e), i, o = [], a;
746
- try {
747
- for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
748
- o.push(i.value);
749
- } catch (s) {
750
- a = { error: s };
751
- } finally {
752
- try {
753
- i && !i.done && (n = r.return) && n.call(r);
754
- } finally {
755
- if (a)
756
- throw a.error;
757
- }
758
- }
759
- return o;
760
- }
761
- function Qe(e, t, n) {
715
+ function an(e, t, n) {
762
716
  if (n || arguments.length === 2)
763
717
  for (var r = 0, i = t.length, o; r < i; r++)
764
718
  (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
765
- return e.concat(o || t);
719
+ return e.concat(o || Array.prototype.slice.call(t));
766
720
  }
767
- function en(e, t) {
768
- var n = t && t.cache ? t.cache : Ji, r = t && t.serializer ? t.serializer : Yi, i = t && t.strategy ? t.strategy : Ki;
721
+ function sn(e, t) {
722
+ var n = t && t.cache ? t.cache : eo, r = t && t.serializer ? t.serializer : Yi, i = t && t.strategy ? t.strategy : qi;
769
723
  return i(e, {
770
724
  cache: n,
771
725
  serializer: r
@@ -774,95 +728,103 @@ function en(e, t) {
774
728
  function Zi(e) {
775
729
  return e == null || typeof e == "number" || typeof e == "boolean";
776
730
  }
777
- function Rr(e, t, n, r) {
731
+ function Ki(e, t, n, r) {
778
732
  var i = Zi(r) ? r : n(r), o = t.get(i);
779
733
  return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
780
734
  }
781
- function Or(e, t, n) {
735
+ function Nr(e, t, n) {
782
736
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
783
737
  return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
784
738
  }
785
- function Rn(e, t, n, r, i) {
739
+ function Rr(e, t, n, r, i) {
786
740
  return n.bind(t, e, r, i);
787
741
  }
788
- function Ki(e, t) {
789
- var n = e.length === 1 ? Rr : Or;
790
- return Rn(e, this, n, t.cache.create(), t.serializer);
791
- }
792
742
  function qi(e, t) {
793
- return Rn(e, this, Or, t.cache.create(), t.serializer);
743
+ var n = e.length === 1 ? Ki : Nr;
744
+ return Rr(e, this, n, t.cache.create(), t.serializer);
794
745
  }
795
746
  function Qi(e, t) {
796
- return Rn(e, this, Rr, t.cache.create(), t.serializer);
747
+ return Rr(e, this, Nr, t.cache.create(), t.serializer);
797
748
  }
798
749
  var Yi = function() {
799
750
  return JSON.stringify(arguments);
800
- };
801
- function On() {
802
- this.cache = /* @__PURE__ */ Object.create(null);
803
- }
804
- On.prototype.get = function(e) {
805
- return this.cache[e];
806
- };
807
- On.prototype.set = function(e, t) {
808
- this.cache[e] = t;
809
- };
810
- var Ji = {
751
+ }, Ji = (
752
+ /** @class */
753
+ function() {
754
+ function e() {
755
+ this.cache = /* @__PURE__ */ Object.create(null);
756
+ }
757
+ return e.prototype.get = function(t) {
758
+ return this.cache[t];
759
+ }, e.prototype.set = function(t, n) {
760
+ this.cache[t] = n;
761
+ }, e;
762
+ }()
763
+ ), eo = {
811
764
  create: function() {
812
- return new On();
765
+ return new Ji();
813
766
  }
814
- }, tn = {
815
- variadic: qi,
816
- monadic: Qi
817
- }, I;
767
+ }, ln = {
768
+ variadic: Qi
769
+ }, $t = function() {
770
+ return $t = Object.assign || function(t) {
771
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
772
+ n = arguments[r];
773
+ for (var o in n)
774
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
775
+ }
776
+ return t;
777
+ }, $t.apply(this, arguments);
778
+ };
779
+ var H;
818
780
  (function(e) {
819
781
  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";
820
- })(I || (I = {}));
821
- var V;
782
+ })(H || (H = {}));
783
+ var U;
822
784
  (function(e) {
823
785
  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";
824
- })(V || (V = {}));
825
- var nt;
786
+ })(U || (U = {}));
787
+ var tt;
826
788
  (function(e) {
827
789
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
828
- })(nt || (nt = {}));
829
- function $n(e) {
830
- return e.type === V.literal;
831
- }
832
- function eo(e) {
833
- return e.type === V.argument;
790
+ })(tt || (tt = {}));
791
+ function Wn(e) {
792
+ return e.type === U.literal;
834
793
  }
835
- function Nr(e) {
836
- return e.type === V.number;
794
+ function to(e) {
795
+ return e.type === U.argument;
837
796
  }
838
797
  function Dr(e) {
839
- return e.type === V.date;
798
+ return e.type === U.number;
840
799
  }
841
800
  function Mr(e) {
842
- return e.type === V.time;
801
+ return e.type === U.date;
843
802
  }
844
803
  function kr(e) {
845
- return e.type === V.select;
804
+ return e.type === U.time;
846
805
  }
847
806
  function Fr(e) {
848
- return e.type === V.plural;
849
- }
850
- function to(e) {
851
- return e.type === V.pound;
807
+ return e.type === U.select;
852
808
  }
853
809
  function Ur(e) {
854
- return e.type === V.tag;
810
+ return e.type === U.plural;
811
+ }
812
+ function no(e) {
813
+ return e.type === U.pound;
855
814
  }
856
815
  function Vr(e) {
857
- return !!(e && typeof e == "object" && e.type === nt.number);
816
+ return e.type === U.tag;
858
817
  }
859
- function mn(e) {
860
- return !!(e && typeof e == "object" && e.type === nt.dateTime);
818
+ function Gr(e) {
819
+ return !!(e && typeof e == "object" && e.type === tt.number);
861
820
  }
862
- var Gr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, no = /(?:[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;
863
- function ro(e) {
821
+ function yn(e) {
822
+ return !!(e && typeof e == "object" && e.type === tt.dateTime);
823
+ }
824
+ var $r = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ro = /(?:[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;
825
+ function io(e) {
864
826
  var t = {};
865
- return e.replace(no, function(n) {
827
+ return e.replace(ro, function(n) {
866
828
  var r = n.length;
867
829
  switch (n[0]) {
868
830
  case "G":
@@ -951,11 +913,21 @@ function ro(e) {
951
913
  return "";
952
914
  }), t;
953
915
  }
954
- var io = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
955
- function oo(e) {
916
+ var V = function() {
917
+ return V = Object.assign || function(t) {
918
+ for (var n, r = 1, i = arguments.length; r < i; r++) {
919
+ n = arguments[r];
920
+ for (var o in n)
921
+ Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
922
+ }
923
+ return t;
924
+ }, V.apply(this, arguments);
925
+ };
926
+ var oo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
927
+ function ao(e) {
956
928
  if (e.length === 0)
957
929
  throw new Error("Number skeleton cannot be empty");
958
- for (var t = e.split(io).filter(function(c) {
930
+ for (var t = e.split(oo).filter(function(c) {
959
931
  return c.length > 0;
960
932
  }), n = [], r = 0, i = t; r < i.length; r++) {
961
933
  var o = i[r], a = o.split("/");
@@ -970,17 +942,17 @@ function oo(e) {
970
942
  }
971
943
  return n;
972
944
  }
973
- function ao(e) {
945
+ function so(e) {
974
946
  return e.replace(/^(.*?)-/, "");
975
947
  }
976
- var jn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, $r = /^(@+)?(\+|#+)?[rs]?$/g, so = /(\*)(0+)|(#+)(0+)|(0+)/g, jr = /^(0+)$/;
977
- function Wn(e) {
948
+ var Xn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, jr = /^(@+)?(\+|#+)?[rs]?$/g, lo = /(\*)(0+)|(#+)(0+)|(0+)/g, Wr = /^(0+)$/;
949
+ function zn(e) {
978
950
  var t = {};
979
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace($r, function(n, r, i) {
951
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(jr, function(n, r, i) {
980
952
  return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
981
953
  }), t;
982
954
  }
983
- function Wr(e) {
955
+ function Xr(e) {
984
956
  switch (e) {
985
957
  case "sign-auto":
986
958
  return {
@@ -1020,7 +992,7 @@ function Wr(e) {
1020
992
  };
1021
993
  }
1022
994
  }
1023
- function lo(e) {
995
+ function uo(e) {
1024
996
  var t;
1025
997
  if (e[0] === "E" && e[1] === "E" ? (t = {
1026
998
  notation: "engineering"
@@ -1028,17 +1000,17 @@ function lo(e) {
1028
1000
  notation: "scientific"
1029
1001
  }, e = e.slice(1)), t) {
1030
1002
  var n = e.slice(0, 2);
1031
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jr.test(e))
1003
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Wr.test(e))
1032
1004
  throw new Error("Malformed concise eng/scientific notation");
1033
1005
  t.minimumIntegerDigits = e.length;
1034
1006
  }
1035
1007
  return t;
1036
1008
  }
1037
- function Xn(e) {
1038
- var t = {}, n = Wr(e);
1009
+ function Zn(e) {
1010
+ var t = {}, n = Xr(e);
1039
1011
  return n || t;
1040
1012
  }
1041
- function uo(e) {
1013
+ function co(e) {
1042
1014
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
1043
1015
  var i = r[n];
1044
1016
  switch (i.stem) {
@@ -1062,7 +1034,7 @@ function uo(e) {
1062
1034
  continue;
1063
1035
  case "measure-unit":
1064
1036
  case "unit":
1065
- t.style = "unit", t.unit = ao(i.options[0]);
1037
+ t.style = "unit", t.unit = so(i.options[0]);
1066
1038
  continue;
1067
1039
  case "compact-short":
1068
1040
  case "K":
@@ -1073,13 +1045,13 @@ function uo(e) {
1073
1045
  t.notation = "compact", t.compactDisplay = "long";
1074
1046
  continue;
1075
1047
  case "scientific":
1076
- t = N(N(N({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1077
- return N(N({}, l), Xn(u));
1048
+ t = V(V(V({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1049
+ return V(V({}, l), Zn(u));
1078
1050
  }, {}));
1079
1051
  continue;
1080
1052
  case "engineering":
1081
- t = N(N(N({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1082
- return N(N({}, l), Xn(u));
1053
+ t = V(V(V({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1054
+ return V(V({}, l), Zn(u));
1083
1055
  }, {}));
1084
1056
  continue;
1085
1057
  case "notation-simple":
@@ -1124,7 +1096,7 @@ function uo(e) {
1124
1096
  case "integer-width":
1125
1097
  if (i.options.length > 1)
1126
1098
  throw new RangeError("integer-width stems only accept a single optional option");
1127
- i.options[0].replace(so, function(l, u, h, f, c, m) {
1099
+ i.options[0].replace(lo, function(l, u, h, f, c, m) {
1128
1100
  if (u)
1129
1101
  t.minimumIntegerDigits = h.length;
1130
1102
  else {
@@ -1137,32 +1109,32 @@ function uo(e) {
1137
1109
  });
1138
1110
  continue;
1139
1111
  }
1140
- if (jr.test(i.stem)) {
1112
+ if (Wr.test(i.stem)) {
1141
1113
  t.minimumIntegerDigits = i.stem.length;
1142
1114
  continue;
1143
1115
  }
1144
- if (jn.test(i.stem)) {
1116
+ if (Xn.test(i.stem)) {
1145
1117
  if (i.options.length > 1)
1146
1118
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1147
- i.stem.replace(jn, function(l, u, h, f, c, m) {
1119
+ i.stem.replace(Xn, function(l, u, h, f, c, m) {
1148
1120
  return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1149
1121
  });
1150
1122
  var o = i.options[0];
1151
- o === "w" ? t = N(N({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = N(N({}, t), Wn(o)));
1123
+ o === "w" ? t = V(V({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = V(V({}, t), zn(o)));
1152
1124
  continue;
1153
1125
  }
1154
- if ($r.test(i.stem)) {
1155
- t = N(N({}, t), Wn(i.stem));
1126
+ if (jr.test(i.stem)) {
1127
+ t = V(V({}, t), zn(i.stem));
1156
1128
  continue;
1157
1129
  }
1158
- var a = Wr(i.stem);
1159
- a && (t = N(N({}, t), a));
1160
- var s = lo(i.stem);
1161
- s && (t = N(N({}, t), s));
1130
+ var a = Xr(i.stem);
1131
+ a && (t = V(V({}, t), a));
1132
+ var s = uo(i.stem);
1133
+ s && (t = V(V({}, t), s));
1162
1134
  }
1163
1135
  return t;
1164
1136
  }
1165
- var It = {
1137
+ var Ot = {
1166
1138
  "001": [
1167
1139
  "H",
1168
1140
  "h"
@@ -2577,13 +2549,13 @@ var It = {
2577
2549
  "h"
2578
2550
  ]
2579
2551
  };
2580
- function co(e, t) {
2552
+ function ho(e, t) {
2581
2553
  for (var n = "", r = 0; r < e.length; r++) {
2582
2554
  var i = e.charAt(r);
2583
2555
  if (i === "j") {
2584
2556
  for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2585
2557
  o++, r++;
2586
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = ho(t);
2558
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = fo(t);
2587
2559
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
2588
2560
  n += l;
2589
2561
  for (; a-- > 0; )
@@ -2593,7 +2565,7 @@ function co(e, t) {
2593
2565
  }
2594
2566
  return n;
2595
2567
  }
2596
- function ho(e) {
2568
+ function fo(e) {
2597
2569
  var t = e.hourCycle;
2598
2570
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2599
2571
  e.hourCycles && // @ts-ignore
@@ -2612,23 +2584,23 @@ function ho(e) {
2612
2584
  }
2613
2585
  var n = e.language, r;
2614
2586
  n !== "root" && (r = e.maximize().region);
2615
- var i = It[r || ""] || It[n || ""] || It["".concat(n, "-001")] || It["001"];
2587
+ var i = Ot[r || ""] || Ot[n || ""] || Ot["".concat(n, "-001")] || Ot["001"];
2616
2588
  return i[0];
2617
2589
  }
2618
- var nn, fo = new RegExp("^".concat(Gr.source, "*")), po = new RegExp("".concat(Gr.source, "*$"));
2619
- function R(e, t) {
2590
+ var un, po = new RegExp("^".concat($r.source, "*")), mo = new RegExp("".concat($r.source, "*$"));
2591
+ function L(e, t) {
2620
2592
  return { start: e, end: t };
2621
2593
  }
2622
- var mo = !!String.prototype.startsWith && "_a".startsWith("a", 1), go = !!String.fromCodePoint, bo = !!Object.fromEntries, yo = !!String.prototype.codePointAt, vo = !!String.prototype.trimStart, _o = !!String.prototype.trimEnd, Eo = !!Number.isSafeInteger, xo = Eo ? Number.isSafeInteger : function(e) {
2594
+ var go = !!String.prototype.startsWith && "_a".startsWith("a", 1), bo = !!String.fromCodePoint, yo = !!Object.fromEntries, vo = !!String.prototype.codePointAt, _o = !!String.prototype.trimStart, Eo = !!String.prototype.trimEnd, xo = !!Number.isSafeInteger, wo = xo ? Number.isSafeInteger : function(e) {
2623
2595
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2624
- }, gn = !0;
2596
+ }, vn = !0;
2625
2597
  try {
2626
- var wo = zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2627
- gn = ((nn = wo.exec("a")) === null || nn === void 0 ? void 0 : nn[0]) === "a";
2598
+ var Ao = Zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2599
+ vn = ((un = Ao.exec("a")) === null || un === void 0 ? void 0 : un[0]) === "a";
2628
2600
  } catch (e) {
2629
- gn = !1;
2601
+ vn = !1;
2630
2602
  }
2631
- var zn = mo ? (
2603
+ var Kn = go ? (
2632
2604
  // Native
2633
2605
  function(t, n, r) {
2634
2606
  return t.startsWith(n, r);
@@ -2638,7 +2610,7 @@ var zn = mo ? (
2638
2610
  function(t, n, r) {
2639
2611
  return t.slice(r, r + n.length) === n;
2640
2612
  }
2641
- ), bn = go ? String.fromCodePoint : (
2613
+ ), _n = bo ? String.fromCodePoint : (
2642
2614
  // IE11
2643
2615
  function() {
2644
2616
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2650,9 +2622,9 @@ var zn = mo ? (
2650
2622
  }
2651
2623
  return r;
2652
2624
  }
2653
- ), Zn = (
2625
+ ), qn = (
2654
2626
  // native
2655
- bo ? Object.fromEntries : (
2627
+ yo ? Object.fromEntries : (
2656
2628
  // Ponyfill
2657
2629
  function(t) {
2658
2630
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
@@ -2662,7 +2634,7 @@ var zn = mo ? (
2662
2634
  return n;
2663
2635
  }
2664
2636
  )
2665
- ), Xr = yo ? (
2637
+ ), zr = vo ? (
2666
2638
  // Native
2667
2639
  function(t, n) {
2668
2640
  return t.codePointAt(n);
@@ -2676,7 +2648,7 @@ var zn = mo ? (
2676
2648
  return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
2677
2649
  }
2678
2650
  }
2679
- ), Ao = vo ? (
2651
+ ), To = _o ? (
2680
2652
  // Native
2681
2653
  function(t) {
2682
2654
  return t.trimStart();
@@ -2684,9 +2656,9 @@ var zn = mo ? (
2684
2656
  ) : (
2685
2657
  // Ponyfill
2686
2658
  function(t) {
2687
- return t.replace(fo, "");
2659
+ return t.replace(po, "");
2688
2660
  }
2689
- ), To = _o ? (
2661
+ ), Co = Eo ? (
2690
2662
  // Native
2691
2663
  function(t) {
2692
2664
  return t.trimEnd();
@@ -2694,32 +2666,32 @@ var zn = mo ? (
2694
2666
  ) : (
2695
2667
  // Ponyfill
2696
2668
  function(t) {
2697
- return t.replace(po, "");
2669
+ return t.replace(mo, "");
2698
2670
  }
2699
2671
  );
2700
- function zr(e, t) {
2672
+ function Zr(e, t) {
2701
2673
  return new RegExp(e, t);
2702
2674
  }
2703
- var yn;
2704
- if (gn) {
2705
- var Kn = zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2706
- yn = function(t, n) {
2675
+ var En;
2676
+ if (vn) {
2677
+ var Qn = Zr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2678
+ En = function(t, n) {
2707
2679
  var r;
2708
- Kn.lastIndex = n;
2709
- var i = Kn.exec(t);
2680
+ Qn.lastIndex = n;
2681
+ var i = Qn.exec(t);
2710
2682
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2711
2683
  };
2712
2684
  } else
2713
- yn = function(t, n) {
2685
+ En = function(t, n) {
2714
2686
  for (var r = []; ; ) {
2715
- var i = Xr(t, n);
2716
- if (i === void 0 || Zr(i) || Ho(i))
2687
+ var i = zr(t, n);
2688
+ if (i === void 0 || Kr(i) || Ho(i))
2717
2689
  break;
2718
2690
  r.push(i), n += i >= 65536 ? 2 : 1;
2719
2691
  }
2720
- return bn.apply(void 0, r);
2692
+ return _n.apply(void 0, r);
2721
2693
  };
2722
- var Co = (
2694
+ var So = (
2723
2695
  /** @class */
2724
2696
  function() {
2725
2697
  function e(t, n) {
@@ -2743,14 +2715,14 @@ var Co = (
2743
2715
  if (o === 35 && (n === "plural" || n === "selectordinal")) {
2744
2716
  var s = this.clonePosition();
2745
2717
  this.bump(), i.push({
2746
- type: V.pound,
2747
- location: R(s, this.clonePosition())
2718
+ type: U.pound,
2719
+ location: L(s, this.clonePosition())
2748
2720
  });
2749
2721
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
2750
2722
  if (r)
2751
2723
  break;
2752
- return this.error(I.UNMATCHED_CLOSING_TAG, R(this.clonePosition(), this.clonePosition()));
2753
- } else if (o === 60 && !this.ignoreTag && vn(this.peek() || 0)) {
2724
+ return this.error(H.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
2725
+ } else if (o === 60 && !this.ignoreTag && xn(this.peek() || 0)) {
2754
2726
  var a = this.parseTag(t, n);
2755
2727
  if (a.err)
2756
2728
  return a;
@@ -2771,9 +2743,9 @@ var Co = (
2771
2743
  if (this.bumpSpace(), this.bumpIf("/>"))
2772
2744
  return {
2773
2745
  val: {
2774
- type: V.literal,
2746
+ type: U.literal,
2775
2747
  value: "<".concat(i, "/>"),
2776
- location: R(r, this.clonePosition())
2748
+ location: L(r, this.clonePosition())
2777
2749
  },
2778
2750
  err: null
2779
2751
  };
@@ -2783,25 +2755,25 @@ var Co = (
2783
2755
  return o;
2784
2756
  var a = o.val, s = this.clonePosition();
2785
2757
  if (this.bumpIf("</")) {
2786
- if (this.isEOF() || !vn(this.char()))
2787
- return this.error(I.INVALID_TAG, R(s, this.clonePosition()));
2758
+ if (this.isEOF() || !xn(this.char()))
2759
+ return this.error(H.INVALID_TAG, L(s, this.clonePosition()));
2788
2760
  var l = this.clonePosition(), u = this.parseTagName();
2789
- return i !== u ? this.error(I.UNMATCHED_CLOSING_TAG, R(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2761
+ return i !== u ? this.error(H.UNMATCHED_CLOSING_TAG, L(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2790
2762
  val: {
2791
- type: V.tag,
2763
+ type: U.tag,
2792
2764
  value: i,
2793
2765
  children: a,
2794
- location: R(r, this.clonePosition())
2766
+ location: L(r, this.clonePosition())
2795
2767
  },
2796
2768
  err: null
2797
- } : this.error(I.INVALID_TAG, R(s, this.clonePosition())));
2769
+ } : this.error(H.INVALID_TAG, L(s, this.clonePosition())));
2798
2770
  } else
2799
- return this.error(I.UNCLOSED_TAG, R(r, this.clonePosition()));
2771
+ return this.error(H.UNCLOSED_TAG, L(r, this.clonePosition()));
2800
2772
  } else
2801
- return this.error(I.INVALID_TAG, R(r, this.clonePosition()));
2773
+ return this.error(H.INVALID_TAG, L(r, this.clonePosition()));
2802
2774
  }, e.prototype.parseTagName = function() {
2803
2775
  var t = this.offset();
2804
- for (this.bump(); !this.isEOF() && Bo(this.char()); )
2776
+ for (this.bump(); !this.isEOF() && Po(this.char()); )
2805
2777
  this.bump();
2806
2778
  return this.message.slice(t, this.offset());
2807
2779
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2823,14 +2795,14 @@ var Co = (
2823
2795
  }
2824
2796
  break;
2825
2797
  }
2826
- var l = R(r, this.clonePosition());
2798
+ var l = L(r, this.clonePosition());
2827
2799
  return {
2828
- val: { type: V.literal, value: i, location: l },
2800
+ val: { type: U.literal, value: i, location: l },
2829
2801
  err: null
2830
2802
  };
2831
2803
  }, e.prototype.tryParseLeftAngleBracket = function() {
2832
2804
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2833
- !So(this.peek() || 0)) ? (this.bump(), "<") : null;
2805
+ !Bo(this.peek() || 0)) ? (this.bump(), "<") : null;
2834
2806
  }, e.prototype.tryParseQuote = function(t) {
2835
2807
  if (this.isEOF() || this.char() !== 39)
2836
2808
  return null;
@@ -2864,49 +2836,49 @@ var Co = (
2864
2836
  n.push(r);
2865
2837
  this.bump();
2866
2838
  }
2867
- return bn.apply(void 0, n);
2839
+ return _n.apply(void 0, n);
2868
2840
  }, e.prototype.tryParseUnquoted = function(t, n) {
2869
2841
  if (this.isEOF())
2870
2842
  return null;
2871
2843
  var r = this.char();
2872
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), bn(r));
2844
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), _n(r));
2873
2845
  }, e.prototype.parseArgument = function(t, n) {
2874
2846
  var r = this.clonePosition();
2875
2847
  if (this.bump(), this.bumpSpace(), this.isEOF())
2876
- return this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE, R(r, this.clonePosition()));
2848
+ return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2877
2849
  if (this.char() === 125)
2878
- return this.bump(), this.error(I.EMPTY_ARGUMENT, R(r, this.clonePosition()));
2850
+ return this.bump(), this.error(H.EMPTY_ARGUMENT, L(r, this.clonePosition()));
2879
2851
  var i = this.parseIdentifierIfPossible().value;
2880
2852
  if (!i)
2881
- return this.error(I.MALFORMED_ARGUMENT, R(r, this.clonePosition()));
2853
+ return this.error(H.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2882
2854
  if (this.bumpSpace(), this.isEOF())
2883
- return this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE, R(r, this.clonePosition()));
2855
+ return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
2884
2856
  switch (this.char()) {
2885
2857
  case 125:
2886
2858
  return this.bump(), {
2887
2859
  val: {
2888
- type: V.argument,
2860
+ type: U.argument,
2889
2861
  // value does not include the opening and closing braces.
2890
2862
  value: i,
2891
- location: R(r, this.clonePosition())
2863
+ location: L(r, this.clonePosition())
2892
2864
  },
2893
2865
  err: null
2894
2866
  };
2895
2867
  case 44:
2896
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE, R(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2868
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2897
2869
  default:
2898
- return this.error(I.MALFORMED_ARGUMENT, R(r, this.clonePosition()));
2870
+ return this.error(H.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
2899
2871
  }
2900
2872
  }, e.prototype.parseIdentifierIfPossible = function() {
2901
- var t = this.clonePosition(), n = this.offset(), r = yn(this.message, n), i = n + r.length;
2873
+ var t = this.clonePosition(), n = this.offset(), r = En(this.message, n), i = n + r.length;
2902
2874
  this.bumpTo(i);
2903
- var o = this.clonePosition(), a = R(t, o);
2875
+ var o = this.clonePosition(), a = L(t, o);
2904
2876
  return { value: r, location: a };
2905
2877
  }, e.prototype.parseArgumentOptions = function(t, n, r, i) {
2906
2878
  var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
2907
2879
  switch (s) {
2908
2880
  case "":
2909
- return this.error(I.EXPECT_ARGUMENT_TYPE, R(a, l));
2881
+ return this.error(H.EXPECT_ARGUMENT_TYPE, L(a, l));
2910
2882
  case "number":
2911
2883
  case "date":
2912
2884
  case "time": {
@@ -2917,35 +2889,35 @@ var Co = (
2917
2889
  var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2918
2890
  if (f.err)
2919
2891
  return f;
2920
- var c = To(f.val);
2892
+ var c = Co(f.val);
2921
2893
  if (c.length === 0)
2922
- return this.error(I.EXPECT_ARGUMENT_STYLE, R(this.clonePosition(), this.clonePosition()));
2923
- var m = R(h, this.clonePosition());
2894
+ return this.error(H.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
2895
+ var m = L(h, this.clonePosition());
2924
2896
  u = { style: c, styleLocation: m };
2925
2897
  }
2926
2898
  var _ = this.tryParseArgumentClose(i);
2927
2899
  if (_.err)
2928
2900
  return _;
2929
- var g = R(i, this.clonePosition());
2930
- if (u && zn(u == null ? void 0 : u.style, "::", 0)) {
2931
- var w = Ao(u.style.slice(2));
2901
+ var g = L(i, this.clonePosition());
2902
+ if (u && Kn(u == null ? void 0 : u.style, "::", 0)) {
2903
+ var w = To(u.style.slice(2));
2932
2904
  if (s === "number") {
2933
2905
  var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
2934
2906
  return f.err ? f : {
2935
- val: { type: V.number, value: r, location: g, style: f.val },
2907
+ val: { type: U.number, value: r, location: g, style: f.val },
2936
2908
  err: null
2937
2909
  };
2938
2910
  } else {
2939
2911
  if (w.length === 0)
2940
- return this.error(I.EXPECT_DATE_TIME_SKELETON, g);
2941
- var O = w;
2942
- this.locale && (O = co(w, this.locale));
2912
+ return this.error(H.EXPECT_DATE_TIME_SKELETON, g);
2913
+ var N = w;
2914
+ this.locale && (N = ho(w, this.locale));
2943
2915
  var c = {
2944
- type: nt.dateTime,
2945
- pattern: O,
2916
+ type: tt.dateTime,
2917
+ pattern: N,
2946
2918
  location: u.styleLocation,
2947
- parsedOptions: this.shouldParseSkeletons ? ro(O) : {}
2948
- }, E = s === "date" ? V.date : V.time;
2919
+ parsedOptions: this.shouldParseSkeletons ? io(N) : {}
2920
+ }, E = s === "date" ? U.date : U.time;
2949
2921
  return {
2950
2922
  val: { type: E, value: r, location: g, style: c },
2951
2923
  err: null
@@ -2954,7 +2926,7 @@ var Co = (
2954
2926
  }
2955
2927
  return {
2956
2928
  val: {
2957
- type: s === "number" ? V.number : s === "date" ? V.date : V.time,
2929
+ type: s === "number" ? U.number : s === "date" ? U.date : U.time,
2958
2930
  value: r,
2959
2931
  location: g,
2960
2932
  style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
@@ -2967,17 +2939,17 @@ var Co = (
2967
2939
  case "select": {
2968
2940
  var b = this.clonePosition();
2969
2941
  if (this.bumpSpace(), !this.bumpIf(","))
2970
- return this.error(I.EXPECT_SELECT_ARGUMENT_OPTIONS, R(b, N({}, b)));
2942
+ return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, L(b, $t({}, b)));
2971
2943
  this.bumpSpace();
2972
- var C = this.parseIdentifierIfPossible(), M = 0;
2944
+ var C = this.parseIdentifierIfPossible(), D = 0;
2973
2945
  if (s !== "select" && C.value === "offset") {
2974
2946
  if (!this.bumpIf(":"))
2975
- return this.error(I.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, R(this.clonePosition(), this.clonePosition()));
2947
+ return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
2976
2948
  this.bumpSpace();
2977
- var f = this.tryParseDecimalInteger(I.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, I.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2949
+ var f = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2978
2950
  if (f.err)
2979
2951
  return f;
2980
- this.bumpSpace(), C = this.parseIdentifierIfPossible(), M = f.val;
2952
+ this.bumpSpace(), C = this.parseIdentifierIfPossible(), D = f.val;
2981
2953
  }
2982
2954
  var K = this.tryParsePluralOrSelectOptions(t, s, n, C);
2983
2955
  if (K.err)
@@ -2985,21 +2957,21 @@ var Co = (
2985
2957
  var _ = this.tryParseArgumentClose(i);
2986
2958
  if (_.err)
2987
2959
  return _;
2988
- var $ = R(i, this.clonePosition());
2960
+ var $ = L(i, this.clonePosition());
2989
2961
  return s === "select" ? {
2990
2962
  val: {
2991
- type: V.select,
2963
+ type: U.select,
2992
2964
  value: r,
2993
- options: Zn(K.val),
2965
+ options: qn(K.val),
2994
2966
  location: $
2995
2967
  },
2996
2968
  err: null
2997
2969
  } : {
2998
2970
  val: {
2999
- type: V.plural,
2971
+ type: U.plural,
3000
2972
  value: r,
3001
- options: Zn(K.val),
3002
- offset: M,
2973
+ options: qn(K.val),
2974
+ offset: D,
3003
2975
  pluralType: s === "plural" ? "cardinal" : "ordinal",
3004
2976
  location: $
3005
2977
  },
@@ -3007,10 +2979,10 @@ var Co = (
3007
2979
  };
3008
2980
  }
3009
2981
  default:
3010
- return this.error(I.INVALID_ARGUMENT_TYPE, R(a, l));
2982
+ return this.error(H.INVALID_ARGUMENT_TYPE, L(a, l));
3011
2983
  }
3012
2984
  }, e.prototype.tryParseArgumentClose = function(t) {
3013
- return this.isEOF() || this.char() !== 125 ? this.error(I.EXPECT_ARGUMENT_CLOSING_BRACE, R(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2985
+ return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3014
2986
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3015
2987
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
3016
2988
  var r = this.char();
@@ -3019,7 +2991,7 @@ var Co = (
3019
2991
  this.bump();
3020
2992
  var i = this.clonePosition();
3021
2993
  if (!this.bumpUntil("'"))
3022
- return this.error(I.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, R(i, this.clonePosition()));
2994
+ return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(i, this.clonePosition()));
3023
2995
  this.bump();
3024
2996
  break;
3025
2997
  }
@@ -3049,16 +3021,16 @@ var Co = (
3049
3021
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
3050
3022
  var r = [];
3051
3023
  try {
3052
- r = oo(t);
3024
+ r = ao(t);
3053
3025
  } catch (i) {
3054
- return this.error(I.INVALID_NUMBER_SKELETON, n);
3026
+ return this.error(H.INVALID_NUMBER_SKELETON, n);
3055
3027
  }
3056
3028
  return {
3057
3029
  val: {
3058
- type: nt.number,
3030
+ type: tt.number,
3059
3031
  tokens: r,
3060
3032
  location: n,
3061
- parsedOptions: this.shouldParseSkeletons ? uo(r) : {}
3033
+ parsedOptions: this.shouldParseSkeletons ? co(r) : {}
3062
3034
  },
3063
3035
  err: null
3064
3036
  };
@@ -3067,19 +3039,19 @@ var Co = (
3067
3039
  if (u.length === 0) {
3068
3040
  var f = this.clonePosition();
3069
3041
  if (n !== "select" && this.bumpIf("=")) {
3070
- var c = this.tryParseDecimalInteger(I.EXPECT_PLURAL_ARGUMENT_SELECTOR, I.INVALID_PLURAL_ARGUMENT_SELECTOR);
3042
+ var c = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
3071
3043
  if (c.err)
3072
3044
  return c;
3073
- h = R(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3045
+ h = L(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3074
3046
  } else
3075
3047
  break;
3076
3048
  }
3077
3049
  if (l.has(u))
3078
- return this.error(n === "select" ? I.DUPLICATE_SELECT_ARGUMENT_SELECTOR : I.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3050
+ return this.error(n === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3079
3051
  u === "other" && (a = !0), this.bumpSpace();
3080
3052
  var m = this.clonePosition();
3081
3053
  if (!this.bumpIf("{"))
3082
- return this.error(n === "select" ? I.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : I.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, R(this.clonePosition(), this.clonePosition()));
3054
+ return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
3083
3055
  var _ = this.parseMessage(t + 1, n, r);
3084
3056
  if (_.err)
3085
3057
  return _;
@@ -3090,11 +3062,11 @@ var Co = (
3090
3062
  u,
3091
3063
  {
3092
3064
  value: _.val,
3093
- location: R(m, this.clonePosition())
3065
+ location: L(m, this.clonePosition())
3094
3066
  }
3095
3067
  ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3096
3068
  }
3097
- return s.length === 0 ? this.error(n === "select" ? I.EXPECT_SELECT_ARGUMENT_SELECTOR : I.EXPECT_PLURAL_ARGUMENT_SELECTOR, R(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(I.MISSING_OTHER_CLAUSE, R(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3069
+ return s.length === 0 ? this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(H.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3098
3070
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3099
3071
  var r = 1, i = this.clonePosition();
3100
3072
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
@@ -3105,8 +3077,8 @@ var Co = (
3105
3077
  else
3106
3078
  break;
3107
3079
  }
3108
- var l = R(i, this.clonePosition());
3109
- return o ? (a *= r, xo(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
3080
+ var l = L(i, this.clonePosition());
3081
+ return o ? (a *= r, wo(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
3110
3082
  }, e.prototype.offset = function() {
3111
3083
  return this.position.offset;
3112
3084
  }, e.prototype.isEOF = function() {
@@ -3121,7 +3093,7 @@ var Co = (
3121
3093
  var t = this.position.offset;
3122
3094
  if (t >= this.message.length)
3123
3095
  throw Error("out of bound");
3124
- var n = Xr(this.message, t);
3096
+ var n = zr(this.message, t);
3125
3097
  if (n === void 0)
3126
3098
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3127
3099
  return n;
@@ -3140,7 +3112,7 @@ var Co = (
3140
3112
  t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3141
3113
  }
3142
3114
  }, e.prototype.bumpIf = function(t) {
3143
- if (zn(this.message, t, this.offset())) {
3115
+ if (Kn(this.message, t, this.offset())) {
3144
3116
  for (var n = 0; n < t.length; n++)
3145
3117
  this.bump();
3146
3118
  return !0;
@@ -3162,7 +3134,7 @@ var Co = (
3162
3134
  break;
3163
3135
  }
3164
3136
  }, e.prototype.bumpSpace = function() {
3165
- for (; !this.isEOF() && Zr(this.char()); )
3137
+ for (; !this.isEOF() && Kr(this.char()); )
3166
3138
  this.bump();
3167
3139
  }, e.prototype.peek = function() {
3168
3140
  if (this.isEOF())
@@ -3172,47 +3144,47 @@ var Co = (
3172
3144
  }, e;
3173
3145
  }()
3174
3146
  );
3175
- function vn(e) {
3147
+ function xn(e) {
3176
3148
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3177
3149
  }
3178
- function So(e) {
3179
- return vn(e) || e === 47;
3180
- }
3181
3150
  function Bo(e) {
3151
+ return xn(e) || e === 47;
3152
+ }
3153
+ function Po(e) {
3182
3154
  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;
3183
3155
  }
3184
- function Zr(e) {
3156
+ function Kr(e) {
3185
3157
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3186
3158
  }
3187
3159
  function Ho(e) {
3188
3160
  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;
3189
3161
  }
3190
- function _n(e) {
3162
+ function wn(e) {
3191
3163
  e.forEach(function(t) {
3192
- if (delete t.location, kr(t) || Fr(t))
3164
+ if (delete t.location, Fr(t) || Ur(t))
3193
3165
  for (var n in t.options)
3194
- delete t.options[n].location, _n(t.options[n].value);
3166
+ delete t.options[n].location, wn(t.options[n].value);
3195
3167
  else
3196
- Nr(t) && Vr(t.style) || (Dr(t) || Mr(t)) && mn(t.style) ? delete t.style.location : Ur(t) && _n(t.children);
3168
+ Dr(t) && Gr(t.style) || (Mr(t) || kr(t)) && yn(t.style) ? delete t.style.location : Vr(t) && wn(t.children);
3197
3169
  });
3198
3170
  }
3199
3171
  function Io(e, t) {
3200
- t === void 0 && (t = {}), t = N({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3201
- var n = new Co(e, t).parse();
3172
+ t === void 0 && (t = {}), t = $t({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3173
+ var n = new So(e, t).parse();
3202
3174
  if (n.err) {
3203
- var r = SyntaxError(I[n.err.kind]);
3175
+ var r = SyntaxError(H[n.err.kind]);
3204
3176
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3205
3177
  }
3206
- return t != null && t.captureLocation || _n(n.val), n.val;
3178
+ return t != null && t.captureLocation || wn(n.val), n.val;
3207
3179
  }
3208
- var rt;
3180
+ var nt;
3209
3181
  (function(e) {
3210
3182
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3211
- })(rt || (rt = {}));
3212
- var jt = (
3183
+ })(nt || (nt = {}));
3184
+ var Kt = (
3213
3185
  /** @class */
3214
3186
  function(e) {
3215
- Ae(t, e);
3187
+ Zt(t, e);
3216
3188
  function t(n, r, i) {
3217
3189
  var o = e.call(this, n) || this;
3218
3190
  return o.code = r, o.originalMessage = i, o;
@@ -3221,48 +3193,48 @@ var jt = (
3221
3193
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3222
3194
  }, t;
3223
3195
  }(Error)
3224
- ), qn = (
3196
+ ), Yn = (
3225
3197
  /** @class */
3226
3198
  function(e) {
3227
- Ae(t, e);
3199
+ Zt(t, e);
3228
3200
  function t(n, r, i, o) {
3229
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), rt.INVALID_VALUE, o) || this;
3201
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), nt.INVALID_VALUE, o) || this;
3230
3202
  }
3231
3203
  return t;
3232
- }(jt)
3233
- ), Po = (
3204
+ }(Kt)
3205
+ ), Oo = (
3234
3206
  /** @class */
3235
3207
  function(e) {
3236
- Ae(t, e);
3208
+ Zt(t, e);
3237
3209
  function t(n, r, i) {
3238
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), rt.INVALID_VALUE, i) || this;
3210
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), nt.INVALID_VALUE, i) || this;
3239
3211
  }
3240
3212
  return t;
3241
- }(jt)
3213
+ }(Kt)
3242
3214
  ), Lo = (
3243
3215
  /** @class */
3244
3216
  function(e) {
3245
- Ae(t, e);
3217
+ Zt(t, e);
3246
3218
  function t(n, r) {
3247
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), rt.MISSING_VALUE, r) || this;
3219
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), nt.MISSING_VALUE, r) || this;
3248
3220
  }
3249
3221
  return t;
3250
- }(jt)
3222
+ }(Kt)
3251
3223
  ), te;
3252
3224
  (function(e) {
3253
3225
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3254
3226
  })(te || (te = {}));
3255
- function Ro(e) {
3227
+ function No(e) {
3256
3228
  return e.length < 2 ? e : e.reduce(function(t, n) {
3257
3229
  var r = t[t.length - 1];
3258
3230
  return !r || r.type !== te.literal || n.type !== te.literal ? t.push(n) : r.value += n.value, t;
3259
3231
  }, []);
3260
3232
  }
3261
- function Oo(e) {
3233
+ function Ro(e) {
3262
3234
  return typeof e == "function";
3263
3235
  }
3264
- function Nt(e, t, n, r, i, o, a) {
3265
- if (e.length === 1 && $n(e[0]))
3236
+ function Mt(e, t, n, r, i, o, a) {
3237
+ if (e.length === 1 && Wn(e[0]))
3266
3238
  return [
3267
3239
  {
3268
3240
  type: te.literal,
@@ -3271,14 +3243,14 @@ function Nt(e, t, n, r, i, o, a) {
3271
3243
  ];
3272
3244
  for (var s = [], l = 0, u = e; l < u.length; l++) {
3273
3245
  var h = u[l];
3274
- if ($n(h)) {
3246
+ if (Wn(h)) {
3275
3247
  s.push({
3276
3248
  type: te.literal,
3277
3249
  value: h.value
3278
3250
  });
3279
3251
  continue;
3280
3252
  }
3281
- if (to(h)) {
3253
+ if (no(h)) {
3282
3254
  typeof o == "number" && s.push({
3283
3255
  type: te.literal,
3284
3256
  value: n.getNumberFormat(t).format(o)
@@ -3289,87 +3261,87 @@ function Nt(e, t, n, r, i, o, a) {
3289
3261
  if (!(i && f in i))
3290
3262
  throw new Lo(f, a);
3291
3263
  var c = i[f];
3292
- if (eo(h)) {
3264
+ if (to(h)) {
3293
3265
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
3294
3266
  type: typeof c == "string" ? te.literal : te.object,
3295
3267
  value: c
3296
3268
  });
3297
3269
  continue;
3298
3270
  }
3299
- if (Dr(h)) {
3300
- var m = typeof h.style == "string" ? r.date[h.style] : mn(h.style) ? h.style.parsedOptions : void 0;
3271
+ if (Mr(h)) {
3272
+ var m = typeof h.style == "string" ? r.date[h.style] : yn(h.style) ? h.style.parsedOptions : void 0;
3301
3273
  s.push({
3302
3274
  type: te.literal,
3303
3275
  value: n.getDateTimeFormat(t, m).format(c)
3304
3276
  });
3305
3277
  continue;
3306
3278
  }
3307
- if (Mr(h)) {
3308
- var m = typeof h.style == "string" ? r.time[h.style] : mn(h.style) ? h.style.parsedOptions : r.time.medium;
3279
+ if (kr(h)) {
3280
+ var m = typeof h.style == "string" ? r.time[h.style] : yn(h.style) ? h.style.parsedOptions : r.time.medium;
3309
3281
  s.push({
3310
3282
  type: te.literal,
3311
3283
  value: n.getDateTimeFormat(t, m).format(c)
3312
3284
  });
3313
3285
  continue;
3314
3286
  }
3315
- if (Nr(h)) {
3316
- var m = typeof h.style == "string" ? r.number[h.style] : Vr(h.style) ? h.style.parsedOptions : void 0;
3287
+ if (Dr(h)) {
3288
+ var m = typeof h.style == "string" ? r.number[h.style] : Gr(h.style) ? h.style.parsedOptions : void 0;
3317
3289
  m && m.scale && (c = c * (m.scale || 1)), s.push({
3318
3290
  type: te.literal,
3319
3291
  value: n.getNumberFormat(t, m).format(c)
3320
3292
  });
3321
3293
  continue;
3322
3294
  }
3323
- if (Ur(h)) {
3295
+ if (Vr(h)) {
3324
3296
  var _ = h.children, g = h.value, w = i[g];
3325
- if (!Oo(w))
3326
- throw new Po(g, "function", a);
3327
- var O = Nt(_, t, n, r, i, o), E = w(O.map(function(M) {
3328
- return M.value;
3297
+ if (!Ro(w))
3298
+ throw new Oo(g, "function", a);
3299
+ var N = Mt(_, t, n, r, i, o), E = w(N.map(function(D) {
3300
+ return D.value;
3329
3301
  }));
3330
- Array.isArray(E) || (E = [E]), s.push.apply(s, E.map(function(M) {
3302
+ Array.isArray(E) || (E = [E]), s.push.apply(s, E.map(function(D) {
3331
3303
  return {
3332
- type: typeof M == "string" ? te.literal : te.object,
3333
- value: M
3304
+ type: typeof D == "string" ? te.literal : te.object,
3305
+ value: D
3334
3306
  };
3335
3307
  }));
3336
3308
  }
3337
- if (kr(h)) {
3309
+ if (Fr(h)) {
3338
3310
  var b = h.options[c] || h.options.other;
3339
3311
  if (!b)
3340
- throw new qn(h.value, c, Object.keys(h.options), a);
3341
- s.push.apply(s, Nt(b.value, t, n, r, i));
3312
+ throw new Yn(h.value, c, Object.keys(h.options), a);
3313
+ s.push.apply(s, Mt(b.value, t, n, r, i));
3342
3314
  continue;
3343
3315
  }
3344
- if (Fr(h)) {
3316
+ if (Ur(h)) {
3345
3317
  var b = h.options["=".concat(c)];
3346
3318
  if (!b) {
3347
3319
  if (!Intl.PluralRules)
3348
- throw new jt(`Intl.PluralRules is not available in this environment.
3320
+ throw new Kt(`Intl.PluralRules is not available in this environment.
3349
3321
  Try polyfilling it using "@formatjs/intl-pluralrules"
3350
- `, rt.MISSING_INTL_API, a);
3322
+ `, nt.MISSING_INTL_API, a);
3351
3323
  var C = n.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3352
3324
  b = h.options[C] || h.options.other;
3353
3325
  }
3354
3326
  if (!b)
3355
- throw new qn(h.value, c, Object.keys(h.options), a);
3356
- s.push.apply(s, Nt(b.value, t, n, r, i, c - (h.offset || 0)));
3327
+ throw new Yn(h.value, c, Object.keys(h.options), a);
3328
+ s.push.apply(s, Mt(b.value, t, n, r, i, c - (h.offset || 0)));
3357
3329
  continue;
3358
3330
  }
3359
3331
  }
3360
- return Ro(s);
3332
+ return No(s);
3361
3333
  }
3362
- function No(e, t) {
3363
- return t ? N(N(N({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3364
- return n[r] = N(N({}, e[r]), t[r] || {}), n;
3334
+ function Do(e, t) {
3335
+ return t ? me(me(me({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3336
+ return n[r] = me(me({}, e[r]), t[r] || {}), n;
3365
3337
  }, {})) : e;
3366
3338
  }
3367
- function Do(e, t) {
3339
+ function Mo(e, t) {
3368
3340
  return t ? Object.keys(e).reduce(function(n, r) {
3369
- return n[r] = No(e[r], t[r]), n;
3370
- }, N({}, e)) : e;
3341
+ return n[r] = Do(e[r], t[r]), n;
3342
+ }, me({}, e)) : e;
3371
3343
  }
3372
- function rn(e) {
3344
+ function cn(e) {
3373
3345
  return {
3374
3346
  create: function() {
3375
3347
  return {
@@ -3383,39 +3355,39 @@ function rn(e) {
3383
3355
  }
3384
3356
  };
3385
3357
  }
3386
- function Mo(e) {
3358
+ function ko(e) {
3387
3359
  return e === void 0 && (e = {
3388
3360
  number: {},
3389
3361
  dateTime: {},
3390
3362
  pluralRules: {}
3391
3363
  }), {
3392
- getNumberFormat: en(function() {
3364
+ getNumberFormat: sn(function() {
3393
3365
  for (var t, n = [], r = 0; r < arguments.length; r++)
3394
3366
  n[r] = arguments[r];
3395
- return new ((t = Intl.NumberFormat).bind.apply(t, Qe([void 0], n, !1)))();
3367
+ return new ((t = Intl.NumberFormat).bind.apply(t, an([void 0], n, !1)))();
3396
3368
  }, {
3397
- cache: rn(e.number),
3398
- strategy: tn.variadic
3369
+ cache: cn(e.number),
3370
+ strategy: ln.variadic
3399
3371
  }),
3400
- getDateTimeFormat: en(function() {
3372
+ getDateTimeFormat: sn(function() {
3401
3373
  for (var t, n = [], r = 0; r < arguments.length; r++)
3402
3374
  n[r] = arguments[r];
3403
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Qe([void 0], n, !1)))();
3375
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, an([void 0], n, !1)))();
3404
3376
  }, {
3405
- cache: rn(e.dateTime),
3406
- strategy: tn.variadic
3377
+ cache: cn(e.dateTime),
3378
+ strategy: ln.variadic
3407
3379
  }),
3408
- getPluralRules: en(function() {
3380
+ getPluralRules: sn(function() {
3409
3381
  for (var t, n = [], r = 0; r < arguments.length; r++)
3410
3382
  n[r] = arguments[r];
3411
- return new ((t = Intl.PluralRules).bind.apply(t, Qe([void 0], n, !1)))();
3383
+ return new ((t = Intl.PluralRules).bind.apply(t, an([void 0], n, !1)))();
3412
3384
  }, {
3413
- cache: rn(e.pluralRules),
3414
- strategy: tn.variadic
3385
+ cache: cn(e.pluralRules),
3386
+ strategy: ln.variadic
3415
3387
  })
3416
3388
  };
3417
3389
  }
3418
- var ko = (
3390
+ var Fo = (
3419
3391
  /** @class */
3420
3392
  function() {
3421
3393
  function e(t, n, r, i) {
@@ -3434,7 +3406,7 @@ var ko = (
3434
3406
  }, []);
3435
3407
  return h.length <= 1 ? h[0] || "" : h;
3436
3408
  }, this.formatToParts = function(l) {
3437
- return Nt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3409
+ return Mt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3438
3410
  }, this.resolvedOptions = function() {
3439
3411
  var l;
3440
3412
  return {
@@ -3448,12 +3420,12 @@ var ko = (
3448
3420
  var a = i || {};
3449
3421
  a.formatters;
3450
3422
  var s = zi(a, ["formatters"]);
3451
- this.ast = e.__parse(t, N(N({}, s), { locale: this.resolvedLocale }));
3423
+ this.ast = e.__parse(t, me(me({}, s), { locale: this.resolvedLocale }));
3452
3424
  } else
3453
3425
  this.ast = t;
3454
3426
  if (!Array.isArray(this.ast))
3455
3427
  throw new TypeError("A message must be provided as a String or AST.");
3456
- this.formats = Do(e.formats, r), this.formatters = i && i.formatters || Mo(this.formatterCache);
3428
+ this.formats = Mo(e.formats, r), this.formatters = i && i.formatters || ko(this.formatterCache);
3457
3429
  }
3458
3430
  return Object.defineProperty(e, "defaultLocale", {
3459
3431
  get: function() {
@@ -3527,7 +3499,7 @@ var ko = (
3527
3499
  }, e;
3528
3500
  }()
3529
3501
  );
3530
- function Fo(e, t) {
3502
+ function Uo(e, t) {
3531
3503
  if (t == null)
3532
3504
  return;
3533
3505
  if (t in e)
@@ -3548,92 +3520,92 @@ function Fo(e, t) {
3548
3520
  r = void 0;
3549
3521
  return r;
3550
3522
  }
3551
- const Re = {}, Uo = (e, t, n) => n && (t in Re || (Re[t] = {}), e in Re[t] || (Re[t][e] = n), n), Kr = (e, t) => {
3523
+ const Le = {}, Vo = (e, t, n) => n && (t in Le || (Le[t] = {}), e in Le[t] || (Le[t][e] = n), n), qr = (e, t) => {
3552
3524
  if (t == null)
3553
3525
  return;
3554
- if (t in Re && e in Re[t])
3555
- return Re[t][e];
3556
- const n = Wt(t);
3526
+ if (t in Le && e in Le[t])
3527
+ return Le[t][e];
3528
+ const n = qt(t);
3557
3529
  for (let r = 0; r < n.length; r++) {
3558
- const i = n[r], o = Go(i, e);
3530
+ const i = n[r], o = $o(i, e);
3559
3531
  if (o)
3560
- return Uo(e, t, o);
3532
+ return Vo(e, t, o);
3561
3533
  }
3562
3534
  };
3563
- let Nn;
3564
- const at = $t({});
3565
- function Vo(e) {
3566
- return Nn[e] || null;
3535
+ let Mn;
3536
+ const ot = zt({});
3537
+ function Go(e) {
3538
+ return Mn[e] || null;
3567
3539
  }
3568
- function qr(e) {
3569
- return e in Nn;
3540
+ function Qr(e) {
3541
+ return e in Mn;
3570
3542
  }
3571
- function Go(e, t) {
3572
- if (!qr(e))
3543
+ function $o(e, t) {
3544
+ if (!Qr(e))
3573
3545
  return null;
3574
- const n = Vo(e);
3575
- return Fo(n, t);
3546
+ const n = Go(e);
3547
+ return Uo(n, t);
3576
3548
  }
3577
- function $o(e) {
3549
+ function jo(e) {
3578
3550
  if (e == null)
3579
3551
  return;
3580
- const t = Wt(e);
3552
+ const t = qt(e);
3581
3553
  for (let n = 0; n < t.length; n++) {
3582
3554
  const r = t[n];
3583
- if (qr(r))
3555
+ if (Qr(r))
3584
3556
  return r;
3585
3557
  }
3586
3558
  }
3587
- function Qr(e, ...t) {
3588
- delete Re[e], at.update((n) => (n[e] = Xi.all([n[e] || {}, ...t]), n));
3559
+ function Yr(e, ...t) {
3560
+ delete Le[e], ot.update((n) => (n[e] = Xi.all([n[e] || {}, ...t]), n));
3589
3561
  }
3590
- ot(
3591
- [at],
3562
+ it(
3563
+ [ot],
3592
3564
  ([e]) => Object.keys(e)
3593
3565
  );
3594
- at.subscribe((e) => Nn = e);
3595
- const Dt = {};
3596
- function jo(e, t) {
3597
- Dt[e].delete(t), Dt[e].size === 0 && delete Dt[e];
3566
+ ot.subscribe((e) => Mn = e);
3567
+ const kt = {};
3568
+ function Wo(e, t) {
3569
+ kt[e].delete(t), kt[e].size === 0 && delete kt[e];
3598
3570
  }
3599
- function Yr(e) {
3600
- return Dt[e];
3571
+ function Jr(e) {
3572
+ return kt[e];
3601
3573
  }
3602
- function Wo(e) {
3603
- return Wt(e).map((t) => {
3604
- const n = Yr(t);
3574
+ function Xo(e) {
3575
+ return qt(e).map((t) => {
3576
+ const n = Jr(t);
3605
3577
  return [t, n ? [...n] : []];
3606
3578
  }).filter(([, t]) => t.length > 0);
3607
3579
  }
3608
- function En(e) {
3609
- return e == null ? !1 : Wt(e).some(
3580
+ function An(e) {
3581
+ return e == null ? !1 : qt(e).some(
3610
3582
  (t) => {
3611
3583
  var n;
3612
- return (n = Yr(t)) == null ? void 0 : n.size;
3584
+ return (n = Jr(t)) == null ? void 0 : n.size;
3613
3585
  }
3614
3586
  );
3615
3587
  }
3616
- function Xo(e, t) {
3588
+ function zo(e, t) {
3617
3589
  return Promise.all(
3618
- t.map((r) => (jo(e, r), r().then((i) => i.default || i)))
3619
- ).then((r) => Qr(e, ...r));
3620
- }
3621
- const pt = {};
3622
- function Jr(e) {
3623
- if (!En(e))
3624
- return e in pt ? pt[e] : Promise.resolve();
3625
- const t = Wo(e);
3626
- return pt[e] = Promise.all(
3590
+ t.map((r) => (Wo(e, r), r().then((i) => i.default || i)))
3591
+ ).then((r) => Yr(e, ...r));
3592
+ }
3593
+ const ft = {};
3594
+ function ei(e) {
3595
+ if (!An(e))
3596
+ return e in ft ? ft[e] : Promise.resolve();
3597
+ const t = Xo(e);
3598
+ return ft[e] = Promise.all(
3627
3599
  t.map(
3628
- ([n, r]) => Xo(n, r)
3600
+ ([n, r]) => zo(n, r)
3629
3601
  )
3630
3602
  ).then(() => {
3631
- if (En(e))
3632
- return Jr(e);
3633
- delete pt[e];
3634
- }), pt[e];
3603
+ if (An(e))
3604
+ return ei(e);
3605
+ delete ft[e];
3606
+ }), ft[e];
3635
3607
  }
3636
- const zo = {
3608
+ const Zo = {
3637
3609
  number: {
3638
3610
  scientific: { notation: "scientific" },
3639
3611
  engineering: { notation: "engineering" },
@@ -3662,135 +3634,135 @@ const zo = {
3662
3634
  timeZoneName: "short"
3663
3635
  }
3664
3636
  }
3665
- }, Zo = {
3637
+ }, Ko = {
3666
3638
  fallbackLocale: null,
3667
3639
  loadingDelay: 200,
3668
- formats: zo,
3640
+ formats: Zo,
3669
3641
  warnOnMissingMessages: !0,
3670
3642
  handleMissingMessage: void 0,
3671
3643
  ignoreTag: !0
3672
- }, Ko = Zo;
3673
- function it() {
3674
- return Ko;
3644
+ }, qo = Ko;
3645
+ function rt() {
3646
+ return qo;
3675
3647
  }
3676
- const on = $t(!1);
3677
- var qo = Object.defineProperty, Qo = Object.defineProperties, Yo = Object.getOwnPropertyDescriptors, Qn = Object.getOwnPropertySymbols, Jo = Object.prototype.hasOwnProperty, ea = Object.prototype.propertyIsEnumerable, Yn = (e, t, n) => t in e ? qo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ta = (e, t) => {
3648
+ const hn = zt(!1);
3649
+ var Qo = Object.defineProperty, Yo = Object.defineProperties, Jo = Object.getOwnPropertyDescriptors, Jn = Object.getOwnPropertySymbols, ea = Object.prototype.hasOwnProperty, ta = Object.prototype.propertyIsEnumerable, er = (e, t, n) => t in e ? Qo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, na = (e, t) => {
3678
3650
  for (var n in t || (t = {}))
3679
- Jo.call(t, n) && Yn(e, n, t[n]);
3680
- if (Qn)
3681
- for (var n of Qn(t))
3682
- ea.call(t, n) && Yn(e, n, t[n]);
3651
+ ea.call(t, n) && er(e, n, t[n]);
3652
+ if (Jn)
3653
+ for (var n of Jn(t))
3654
+ ta.call(t, n) && er(e, n, t[n]);
3683
3655
  return e;
3684
- }, na = (e, t) => Qo(e, Yo(t));
3685
- let xn;
3686
- const Ut = $t(null);
3687
- function Jn(e) {
3656
+ }, ra = (e, t) => Yo(e, Jo(t));
3657
+ let Tn;
3658
+ const jt = zt(null);
3659
+ function tr(e) {
3688
3660
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3689
3661
  }
3690
- function Wt(e, t = it().fallbackLocale) {
3691
- const n = Jn(e);
3692
- return t ? [.../* @__PURE__ */ new Set([...n, ...Jn(t)])] : n;
3662
+ function qt(e, t = rt().fallbackLocale) {
3663
+ const n = tr(e);
3664
+ return t ? [.../* @__PURE__ */ new Set([...n, ...tr(t)])] : n;
3693
3665
  }
3694
3666
  function Ue() {
3695
- return xn != null ? xn : void 0;
3667
+ return Tn != null ? Tn : void 0;
3696
3668
  }
3697
- Ut.subscribe((e) => {
3698
- xn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3669
+ jt.subscribe((e) => {
3670
+ Tn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3699
3671
  });
3700
- const ra = (e) => {
3701
- if (e && $o(e) && En(e)) {
3702
- const { loadingDelay: t } = it();
3672
+ const ia = (e) => {
3673
+ if (e && jo(e) && An(e)) {
3674
+ const { loadingDelay: t } = rt();
3703
3675
  let n;
3704
3676
  return typeof window != "undefined" && Ue() != null && t ? n = window.setTimeout(
3705
- () => on.set(!0),
3677
+ () => hn.set(!0),
3706
3678
  t
3707
- ) : on.set(!0), Jr(e).then(() => {
3708
- Ut.set(e);
3679
+ ) : hn.set(!0), ei(e).then(() => {
3680
+ jt.set(e);
3709
3681
  }).finally(() => {
3710
- clearTimeout(n), on.set(!1);
3682
+ clearTimeout(n), hn.set(!1);
3711
3683
  });
3712
3684
  }
3713
- return Ut.set(e);
3714
- }, Oe = na(ta({}, Ut), {
3715
- set: ra
3716
- }), Xt = (e) => {
3685
+ return jt.set(e);
3686
+ }, Ne = ra(na({}, jt), {
3687
+ set: ia
3688
+ }), Qt = (e) => {
3717
3689
  const t = /* @__PURE__ */ Object.create(null);
3718
3690
  return (r) => {
3719
3691
  const i = JSON.stringify(r);
3720
3692
  return i in t ? t[i] : t[i] = e(r);
3721
3693
  };
3722
3694
  };
3723
- var ia = Object.defineProperty, Vt = Object.getOwnPropertySymbols, ei = Object.prototype.hasOwnProperty, ti = Object.prototype.propertyIsEnumerable, er = (e, t, n) => t in e ? ia(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Dn = (e, t) => {
3695
+ var oa = Object.defineProperty, Wt = Object.getOwnPropertySymbols, ti = Object.prototype.hasOwnProperty, ni = Object.prototype.propertyIsEnumerable, nr = (e, t, n) => t in e ? oa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, kn = (e, t) => {
3724
3696
  for (var n in t || (t = {}))
3725
- ei.call(t, n) && er(e, n, t[n]);
3726
- if (Vt)
3727
- for (var n of Vt(t))
3728
- ti.call(t, n) && er(e, n, t[n]);
3697
+ ti.call(t, n) && nr(e, n, t[n]);
3698
+ if (Wt)
3699
+ for (var n of Wt(t))
3700
+ ni.call(t, n) && nr(e, n, t[n]);
3729
3701
  return e;
3730
- }, st = (e, t) => {
3702
+ }, at = (e, t) => {
3731
3703
  var n = {};
3732
3704
  for (var r in e)
3733
- ei.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3734
- if (e != null && Vt)
3735
- for (var r of Vt(e))
3736
- t.indexOf(r) < 0 && ti.call(e, r) && (n[r] = e[r]);
3705
+ ti.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3706
+ if (e != null && Wt)
3707
+ for (var r of Wt(e))
3708
+ t.indexOf(r) < 0 && ni.call(e, r) && (n[r] = e[r]);
3737
3709
  return n;
3738
3710
  };
3739
- const yt = (e, t) => {
3740
- const { formats: n } = it();
3711
+ const vt = (e, t) => {
3712
+ const { formats: n } = rt();
3741
3713
  if (e in n && t in n[e])
3742
3714
  return n[e][t];
3743
3715
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3744
- }, oa = Xt(
3716
+ }, aa = Qt(
3745
3717
  (e) => {
3746
- var t = e, { locale: n, format: r } = t, i = st(t, ["locale", "format"]);
3718
+ var t = e, { locale: n, format: r } = t, i = at(t, ["locale", "format"]);
3747
3719
  if (n == null)
3748
3720
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3749
- return r && (i = yt("number", r)), new Intl.NumberFormat(n, i);
3721
+ return r && (i = vt("number", r)), new Intl.NumberFormat(n, i);
3750
3722
  }
3751
- ), aa = Xt(
3723
+ ), sa = Qt(
3752
3724
  (e) => {
3753
- var t = e, { locale: n, format: r } = t, i = st(t, ["locale", "format"]);
3725
+ var t = e, { locale: n, format: r } = t, i = at(t, ["locale", "format"]);
3754
3726
  if (n == null)
3755
3727
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3756
- return r ? i = yt("date", r) : Object.keys(i).length === 0 && (i = yt("date", "short")), new Intl.DateTimeFormat(n, i);
3728
+ return r ? i = vt("date", r) : Object.keys(i).length === 0 && (i = vt("date", "short")), new Intl.DateTimeFormat(n, i);
3757
3729
  }
3758
- ), sa = Xt(
3730
+ ), la = Qt(
3759
3731
  (e) => {
3760
- var t = e, { locale: n, format: r } = t, i = st(t, ["locale", "format"]);
3732
+ var t = e, { locale: n, format: r } = t, i = at(t, ["locale", "format"]);
3761
3733
  if (n == null)
3762
3734
  throw new Error(
3763
3735
  '[svelte-i18n] A "locale" must be set to format time values'
3764
3736
  );
3765
- return r ? i = yt("time", r) : Object.keys(i).length === 0 && (i = yt("time", "short")), new Intl.DateTimeFormat(n, i);
3737
+ return r ? i = vt("time", r) : Object.keys(i).length === 0 && (i = vt("time", "short")), new Intl.DateTimeFormat(n, i);
3766
3738
  }
3767
- ), la = (e = {}) => {
3739
+ ), ua = (e = {}) => {
3768
3740
  var t = e, {
3769
3741
  locale: n = Ue()
3770
- } = t, r = st(t, [
3742
+ } = t, r = at(t, [
3771
3743
  "locale"
3772
3744
  ]);
3773
- return oa(Dn({ locale: n }, r));
3774
- }, ua = (e = {}) => {
3745
+ return aa(kn({ locale: n }, r));
3746
+ }, ca = (e = {}) => {
3775
3747
  var t = e, {
3776
3748
  locale: n = Ue()
3777
- } = t, r = st(t, [
3749
+ } = t, r = at(t, [
3778
3750
  "locale"
3779
3751
  ]);
3780
- return aa(Dn({ locale: n }, r));
3781
- }, ca = (e = {}) => {
3752
+ return sa(kn({ locale: n }, r));
3753
+ }, ha = (e = {}) => {
3782
3754
  var t = e, {
3783
3755
  locale: n = Ue()
3784
- } = t, r = st(t, [
3756
+ } = t, r = at(t, [
3785
3757
  "locale"
3786
3758
  ]);
3787
- return sa(Dn({ locale: n }, r));
3788
- }, ha = Xt(
3759
+ return la(kn({ locale: n }, r));
3760
+ }, fa = Qt(
3789
3761
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3790
- (e, t = Ue()) => new ko(e, t, it().formats, {
3791
- ignoreTag: it().ignoreTag
3762
+ (e, t = Ue()) => new Fo(e, t, rt().formats, {
3763
+ ignoreTag: rt().ignoreTag
3792
3764
  })
3793
- ), fa = (e, t = {}) => {
3765
+ ), pa = (e, t = {}) => {
3794
3766
  var n, r, i, o;
3795
3767
  let a = t;
3796
3768
  typeof e == "object" && (a = e, e = a.id);
@@ -3803,9 +3775,9 @@ const yt = (e, t) => {
3803
3775
  throw new Error(
3804
3776
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3805
3777
  );
3806
- let h = Kr(e, l);
3778
+ let h = qr(e, l);
3807
3779
  if (!h)
3808
- h = (o = (i = (r = (n = it()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3780
+ h = (o = (i = (r = (n = rt()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
3809
3781
  else if (typeof h != "string")
3810
3782
  return console.warn(
3811
3783
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
@@ -3814,7 +3786,7 @@ const yt = (e, t) => {
3814
3786
  return h;
3815
3787
  let f = h;
3816
3788
  try {
3817
- f = ha(h, l).format(s);
3789
+ f = fa(h, l).format(s);
3818
3790
  } catch (c) {
3819
3791
  c instanceof Error && console.warn(
3820
3792
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -3822,23 +3794,23 @@ const yt = (e, t) => {
3822
3794
  );
3823
3795
  }
3824
3796
  return f;
3825
- }, pa = (e, t) => ca(t).format(e), da = (e, t) => ua(t).format(e), ma = (e, t) => la(t).format(e), ga = (e, t = Ue()) => Kr(e, t), ba = ot([Oe, at], () => fa);
3826
- ot([Oe], () => pa);
3827
- ot([Oe], () => da);
3828
- ot([Oe], () => ma);
3829
- ot([Oe, at], () => ga);
3830
- function ya({ withLocale: e, translations: t }) {
3831
- Oe.subscribe((n) => {
3832
- n == null && (at.set(t), Oe.set(e));
3797
+ }, da = (e, t) => ha(t).format(e), ma = (e, t) => ca(t).format(e), ga = (e, t) => ua(t).format(e), ba = (e, t = Ue()) => qr(e, t), ya = it([Ne, ot], () => pa);
3798
+ it([Ne], () => da);
3799
+ it([Ne], () => ma);
3800
+ it([Ne], () => ga);
3801
+ it([Ne, ot], () => ba);
3802
+ function va({ withLocale: e, translations: t }) {
3803
+ Ne.subscribe((n) => {
3804
+ n == null && (ot.set(t), Ne.set(e));
3833
3805
  });
3834
3806
  }
3835
- function tr(e, t) {
3836
- Qr(e, t);
3807
+ function rr(e, t) {
3808
+ Yr(e, t);
3837
3809
  }
3838
- function va(e) {
3839
- Oe.set(e);
3810
+ function _a(e) {
3811
+ Ne.set(e);
3840
3812
  }
3841
- const k = gi(ba), nr = {
3813
+ const M = gi(ya), ir = {
3842
3814
  en: {
3843
3815
  vaultExchange: "Vault Exchange",
3844
3816
  debitPlaceHolder: "Debit amount",
@@ -3948,16 +3920,85 @@ const k = gi(ba), nr = {
3948
3920
  10115: "İşlem niyeti bulunamadı."
3949
3921
  }
3950
3922
  };
3951
- function xe(e) {
3923
+ /*! *****************************************************************************
3924
+ Copyright (c) Microsoft Corporation.
3925
+
3926
+ Permission to use, copy, modify, and/or distribute this software for any
3927
+ purpose with or without fee is hereby granted.
3928
+
3929
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
3930
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
3931
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
3932
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
3933
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
3934
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3935
+ PERFORMANCE OF THIS SOFTWARE.
3936
+ ***************************************************************************** */
3937
+ var Cn = function(e, t) {
3938
+ return Cn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
3939
+ n.__proto__ = r;
3940
+ } || function(n, r) {
3941
+ for (var i in r)
3942
+ Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
3943
+ }, Cn(e, t);
3944
+ };
3945
+ function Et(e, t) {
3946
+ if (typeof t != "function" && t !== null)
3947
+ throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
3948
+ Cn(e, t);
3949
+ function n() {
3950
+ this.constructor = e;
3951
+ }
3952
+ e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
3953
+ }
3954
+ function Sn(e) {
3955
+ var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
3956
+ if (n)
3957
+ return n.call(e);
3958
+ if (e && typeof e.length == "number")
3959
+ return {
3960
+ next: function() {
3961
+ return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e };
3962
+ }
3963
+ };
3964
+ throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
3965
+ }
3966
+ function Bn(e, t) {
3967
+ var n = typeof Symbol == "function" && e[Symbol.iterator];
3968
+ if (!n)
3969
+ return e;
3970
+ var r = n.call(e), i, o = [], a;
3971
+ try {
3972
+ for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
3973
+ o.push(i.value);
3974
+ } catch (s) {
3975
+ a = { error: s };
3976
+ } finally {
3977
+ try {
3978
+ i && !i.done && (n = r.return) && n.call(r);
3979
+ } finally {
3980
+ if (a)
3981
+ throw a.error;
3982
+ }
3983
+ }
3984
+ return o;
3985
+ }
3986
+ function Pn(e, t, n) {
3987
+ if (arguments.length === 2)
3988
+ for (var r = 0, i = t.length, o; r < i; r++)
3989
+ (o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
3990
+ return e.concat(o || t);
3991
+ }
3992
+ function we(e) {
3952
3993
  return typeof e == "function";
3953
3994
  }
3954
- function ni(e) {
3995
+ function ri(e) {
3955
3996
  var t = function(r) {
3956
3997
  Error.call(r), r.stack = new Error().stack;
3957
3998
  }, n = e(t);
3958
3999
  return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
3959
4000
  }
3960
- var an = ni(function(e) {
4001
+ var fn = ri(function(e) {
3961
4002
  return function(n) {
3962
4003
  e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
3963
4004
  ` + n.map(function(r, i) {
@@ -3966,13 +4007,13 @@ var an = ni(function(e) {
3966
4007
  `) : "", this.name = "UnsubscriptionError", this.errors = n;
3967
4008
  };
3968
4009
  });
3969
- function wn(e, t) {
4010
+ function Hn(e, t) {
3970
4011
  if (e) {
3971
4012
  var n = e.indexOf(t);
3972
4013
  0 <= n && e.splice(n, 1);
3973
4014
  }
3974
4015
  }
3975
- var zt = function() {
4016
+ var Yt = function() {
3976
4017
  function e(t) {
3977
4018
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
3978
4019
  }
@@ -3984,7 +4025,7 @@ var zt = function() {
3984
4025
  if (a)
3985
4026
  if (this._parentage = null, Array.isArray(a))
3986
4027
  try {
3987
- for (var s = pn(a), l = s.next(); !l.done; l = s.next()) {
4028
+ for (var s = Sn(a), l = s.next(); !l.done; l = s.next()) {
3988
4029
  var u = l.value;
3989
4030
  u.remove(this);
3990
4031
  }
@@ -4001,22 +4042,22 @@ var zt = function() {
4001
4042
  else
4002
4043
  a.remove(this);
4003
4044
  var h = this.initialTeardown;
4004
- if (xe(h))
4045
+ if (we(h))
4005
4046
  try {
4006
4047
  h();
4007
4048
  } catch (g) {
4008
- o = g instanceof an ? g.errors : [g];
4049
+ o = g instanceof fn ? g.errors : [g];
4009
4050
  }
4010
4051
  var f = this._finalizers;
4011
4052
  if (f) {
4012
4053
  this._finalizers = null;
4013
4054
  try {
4014
- for (var c = pn(f), m = c.next(); !m.done; m = c.next()) {
4055
+ for (var c = Sn(f), m = c.next(); !m.done; m = c.next()) {
4015
4056
  var _ = m.value;
4016
4057
  try {
4017
- rr(_);
4058
+ or(_);
4018
4059
  } catch (g) {
4019
- o = o != null ? o : [], g instanceof an ? o = Qe(Qe([], dn(o)), dn(g.errors)) : o.push(g);
4060
+ o = o != null ? o : [], g instanceof fn ? o = Pn(Pn([], Bn(o)), Bn(g.errors)) : o.push(g);
4020
4061
  }
4021
4062
  }
4022
4063
  } catch (g) {
@@ -4031,13 +4072,13 @@ var zt = function() {
4031
4072
  }
4032
4073
  }
4033
4074
  if (o)
4034
- throw new an(o);
4075
+ throw new fn(o);
4035
4076
  }
4036
4077
  }, e.prototype.add = function(t) {
4037
4078
  var n;
4038
4079
  if (t && t !== this)
4039
4080
  if (this.closed)
4040
- rr(t);
4081
+ or(t);
4041
4082
  else {
4042
4083
  if (t instanceof e) {
4043
4084
  if (t.closed || t._hasParent(this))
@@ -4054,56 +4095,52 @@ var zt = function() {
4054
4095
  this._parentage = Array.isArray(n) ? (n.push(t), n) : n ? [n, t] : t;
4055
4096
  }, e.prototype._removeParent = function(t) {
4056
4097
  var n = this._parentage;
4057
- n === t ? this._parentage = null : Array.isArray(n) && wn(n, t);
4098
+ n === t ? this._parentage = null : Array.isArray(n) && Hn(n, t);
4058
4099
  }, e.prototype.remove = function(t) {
4059
4100
  var n = this._finalizers;
4060
- n && wn(n, t), t instanceof e && t._removeParent(this);
4101
+ n && Hn(n, t), t instanceof e && t._removeParent(this);
4061
4102
  }, e.EMPTY = function() {
4062
4103
  var t = new e();
4063
4104
  return t.closed = !0, t;
4064
4105
  }(), e;
4065
- }(), ri = zt.EMPTY;
4066
- function ii(e) {
4067
- return e instanceof zt || e && "closed" in e && xe(e.remove) && xe(e.add) && xe(e.unsubscribe);
4068
- }
4069
- function rr(e) {
4070
- xe(e) ? e() : e.unsubscribe();
4071
- }
4072
- var oi = {
4073
- onUnhandledError: null,
4074
- onStoppedNotification: null,
4075
- Promise: void 0,
4076
- useDeprecatedSynchronousErrorHandling: !1,
4077
- useDeprecatedNextContext: !1
4078
- }, _a = {
4106
+ }(), ii = Yt.EMPTY;
4107
+ function oi(e) {
4108
+ return e instanceof Yt || e && "closed" in e && we(e.remove) && we(e.add) && we(e.unsubscribe);
4109
+ }
4110
+ function or(e) {
4111
+ we(e) ? e() : e.unsubscribe();
4112
+ }
4113
+ var Ea = {
4114
+ Promise: void 0
4115
+ }, xa = {
4079
4116
  setTimeout: function(e, t) {
4080
4117
  for (var n = [], r = 2; r < arguments.length; r++)
4081
4118
  n[r - 2] = arguments[r];
4082
- return setTimeout.apply(void 0, Qe([e, t], dn(n)));
4119
+ return setTimeout.apply(void 0, Pn([e, t], Bn(n)));
4083
4120
  },
4084
4121
  clearTimeout: function(e) {
4085
4122
  return clearTimeout(e);
4086
4123
  },
4087
4124
  delegate: void 0
4088
4125
  };
4089
- function Ea(e) {
4090
- _a.setTimeout(function() {
4126
+ function wa(e) {
4127
+ xa.setTimeout(function() {
4091
4128
  throw e;
4092
4129
  });
4093
4130
  }
4094
- function ir() {
4131
+ function ar() {
4095
4132
  }
4096
- function Mt(e) {
4133
+ function Ft(e) {
4097
4134
  e();
4098
4135
  }
4099
4136
  var ai = function(e) {
4100
- Ae(t, e);
4137
+ Et(t, e);
4101
4138
  function t(n) {
4102
4139
  var r = e.call(this) || this;
4103
- return r.isStopped = !1, n ? (r.destination = n, ii(n) && n.add(r)) : r.destination = Ta, r;
4140
+ return r.isStopped = !1, n ? (r.destination = n, oi(n) && n.add(r)) : r.destination = Ca, r;
4104
4141
  }
4105
4142
  return t.create = function(n, r, i) {
4106
- return new An(n, r, i);
4143
+ return new In(n, r, i);
4107
4144
  }, t.prototype.next = function(n) {
4108
4145
  this.isStopped || this._next(n);
4109
4146
  }, t.prototype.error = function(n) {
@@ -4127,11 +4164,7 @@ var ai = function(e) {
4127
4164
  this.unsubscribe();
4128
4165
  }
4129
4166
  }, t;
4130
- }(zt), xa = Function.prototype.bind;
4131
- function sn(e, t) {
4132
- return xa.call(e, t);
4133
- }
4134
- var wa = function() {
4167
+ }(Yt), Aa = function() {
4135
4168
  function e(t) {
4136
4169
  this.partialObserver = t;
4137
4170
  }
@@ -4141,7 +4174,7 @@ var wa = function() {
4141
4174
  try {
4142
4175
  n.next(t);
4143
4176
  } catch (r) {
4144
- Pt(r);
4177
+ Lt(r);
4145
4178
  }
4146
4179
  }, e.prototype.error = function(t) {
4147
4180
  var n = this.partialObserver;
@@ -4149,68 +4182,56 @@ var wa = function() {
4149
4182
  try {
4150
4183
  n.error(t);
4151
4184
  } catch (r) {
4152
- Pt(r);
4185
+ Lt(r);
4153
4186
  }
4154
4187
  else
4155
- Pt(t);
4188
+ Lt(t);
4156
4189
  }, e.prototype.complete = function() {
4157
4190
  var t = this.partialObserver;
4158
4191
  if (t.complete)
4159
4192
  try {
4160
4193
  t.complete();
4161
4194
  } catch (n) {
4162
- Pt(n);
4195
+ Lt(n);
4163
4196
  }
4164
4197
  }, e;
4165
- }(), An = function(e) {
4166
- Ae(t, e);
4198
+ }(), In = function(e) {
4199
+ Et(t, e);
4167
4200
  function t(n, r, i) {
4168
4201
  var o = e.call(this) || this, a;
4169
- if (xe(n) || !n)
4170
- a = {
4171
- next: n != null ? n : void 0,
4172
- error: r != null ? r : void 0,
4173
- complete: i != null ? i : void 0
4174
- };
4175
- else {
4176
- var s;
4177
- o && oi.useDeprecatedNextContext ? (s = Object.create(n), s.unsubscribe = function() {
4178
- return o.unsubscribe();
4179
- }, a = {
4180
- next: n.next && sn(n.next, s),
4181
- error: n.error && sn(n.error, s),
4182
- complete: n.complete && sn(n.complete, s)
4183
- }) : a = n;
4184
- }
4185
- return o.destination = new wa(a), o;
4202
+ return we(n) || !n ? a = {
4203
+ next: n != null ? n : void 0,
4204
+ error: r != null ? r : void 0,
4205
+ complete: i != null ? i : void 0
4206
+ } : a = n, o.destination = new Aa(a), o;
4186
4207
  }
4187
4208
  return t;
4188
4209
  }(ai);
4189
- function Pt(e) {
4190
- Ea(e);
4210
+ function Lt(e) {
4211
+ wa(e);
4191
4212
  }
4192
- function Aa(e) {
4213
+ function Ta(e) {
4193
4214
  throw e;
4194
4215
  }
4195
- var Ta = {
4216
+ var Ca = {
4196
4217
  closed: !0,
4197
- next: ir,
4198
- error: Aa,
4199
- complete: ir
4200
- }, Ca = function() {
4218
+ next: ar,
4219
+ error: Ta,
4220
+ complete: ar
4221
+ }, Sa = function() {
4201
4222
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
4202
4223
  }();
4203
- function Sa(e) {
4224
+ function Ba(e) {
4204
4225
  return e;
4205
4226
  }
4206
- function Ba(e) {
4207
- return e.length === 0 ? Sa : e.length === 1 ? e[0] : function(n) {
4227
+ function Pa(e) {
4228
+ return e.length === 0 ? Ba : e.length === 1 ? e[0] : function(n) {
4208
4229
  return e.reduce(function(r, i) {
4209
4230
  return i(r);
4210
4231
  }, n);
4211
4232
  };
4212
4233
  }
4213
- var or = function() {
4234
+ var sr = function() {
4214
4235
  function e(t) {
4215
4236
  t && (this._subscribe = t);
4216
4237
  }
@@ -4218,8 +4239,8 @@ var or = function() {
4218
4239
  var n = new e();
4219
4240
  return n.source = this, n.operator = t, n;
4220
4241
  }, e.prototype.subscribe = function(t, n, r) {
4221
- var i = this, o = Ia(t) ? t : new An(t, n, r);
4222
- return Mt(function() {
4242
+ var i = this, o = Ia(t) ? t : new In(t, n, r);
4243
+ return Ft(function() {
4223
4244
  var a = i, s = a.operator, l = a.source;
4224
4245
  o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
4225
4246
  }), o;
@@ -4231,8 +4252,8 @@ var or = function() {
4231
4252
  }
4232
4253
  }, e.prototype.forEach = function(t, n) {
4233
4254
  var r = this;
4234
- return n = ar(n), new n(function(i, o) {
4235
- var a = new An({
4255
+ return n = lr(n), new n(function(i, o) {
4256
+ var a = new In({
4236
4257
  next: function(s) {
4237
4258
  try {
4238
4259
  t(s);
@@ -4248,15 +4269,15 @@ var or = function() {
4248
4269
  }, e.prototype._subscribe = function(t) {
4249
4270
  var n;
4250
4271
  return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
4251
- }, e.prototype[Ca] = function() {
4272
+ }, e.prototype[Sa] = function() {
4252
4273
  return this;
4253
4274
  }, e.prototype.pipe = function() {
4254
4275
  for (var t = [], n = 0; n < arguments.length; n++)
4255
4276
  t[n] = arguments[n];
4256
- return Ba(t)(this);
4277
+ return Pa(t)(this);
4257
4278
  }, e.prototype.toPromise = function(t) {
4258
4279
  var n = this;
4259
- return t = ar(t), new t(function(r, i) {
4280
+ return t = lr(t), new t(function(r, i) {
4260
4281
  var o;
4261
4282
  n.subscribe(function(a) {
4262
4283
  return o = a;
@@ -4270,40 +4291,40 @@ var or = function() {
4270
4291
  return new e(t);
4271
4292
  }, e;
4272
4293
  }();
4273
- function ar(e) {
4294
+ function lr(e) {
4274
4295
  var t;
4275
- return (t = e != null ? e : oi.Promise) !== null && t !== void 0 ? t : Promise;
4296
+ return (t = e != null ? e : Ea.Promise) !== null && t !== void 0 ? t : Promise;
4276
4297
  }
4277
4298
  function Ha(e) {
4278
- return e && xe(e.next) && xe(e.error) && xe(e.complete);
4299
+ return e && we(e.next) && we(e.error) && we(e.complete);
4279
4300
  }
4280
4301
  function Ia(e) {
4281
- return e && e instanceof ai || Ha(e) && ii(e);
4302
+ return e && e instanceof ai || Ha(e) && oi(e);
4282
4303
  }
4283
- var Pa = ni(function(e) {
4304
+ var Oa = ri(function(e) {
4284
4305
  return function() {
4285
4306
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
4286
4307
  };
4287
4308
  }), si = function(e) {
4288
- Ae(t, e);
4309
+ Et(t, e);
4289
4310
  function t() {
4290
4311
  var n = e.call(this) || this;
4291
4312
  return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
4292
4313
  }
4293
4314
  return t.prototype.lift = function(n) {
4294
- var r = new sr(this, this);
4315
+ var r = new ur(this, this);
4295
4316
  return r.operator = n, r;
4296
4317
  }, t.prototype._throwIfClosed = function() {
4297
4318
  if (this.closed)
4298
- throw new Pa();
4319
+ throw new Oa();
4299
4320
  }, t.prototype.next = function(n) {
4300
4321
  var r = this;
4301
- Mt(function() {
4322
+ Ft(function() {
4302
4323
  var i, o;
4303
4324
  if (r._throwIfClosed(), !r.isStopped) {
4304
4325
  r.currentObservers || (r.currentObservers = Array.from(r.observers));
4305
4326
  try {
4306
- for (var a = pn(r.currentObservers), s = a.next(); !s.done; s = a.next()) {
4327
+ for (var a = Sn(r.currentObservers), s = a.next(); !s.done; s = a.next()) {
4307
4328
  var l = s.value;
4308
4329
  l.next(n);
4309
4330
  }
@@ -4321,7 +4342,7 @@ var Pa = ni(function(e) {
4321
4342
  });
4322
4343
  }, t.prototype.error = function(n) {
4323
4344
  var r = this;
4324
- Mt(function() {
4345
+ Ft(function() {
4325
4346
  if (r._throwIfClosed(), !r.isStopped) {
4326
4347
  r.hasError = r.isStopped = !0, r.thrownError = n;
4327
4348
  for (var i = r.observers; i.length; )
@@ -4330,7 +4351,7 @@ var Pa = ni(function(e) {
4330
4351
  });
4331
4352
  }, t.prototype.complete = function() {
4332
4353
  var n = this;
4333
- Mt(function() {
4354
+ Ft(function() {
4334
4355
  if (n._throwIfClosed(), !n.isStopped) {
4335
4356
  n.isStopped = !0;
4336
4357
  for (var r = n.observers; r.length; )
@@ -4352,20 +4373,20 @@ var Pa = ni(function(e) {
4352
4373
  return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
4353
4374
  }, t.prototype._innerSubscribe = function(n) {
4354
4375
  var r = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
4355
- return o || a ? ri : (this.currentObservers = null, s.push(n), new zt(function() {
4356
- r.currentObservers = null, wn(s, n);
4376
+ return o || a ? ii : (this.currentObservers = null, s.push(n), new Yt(function() {
4377
+ r.currentObservers = null, Hn(s, n);
4357
4378
  }));
4358
4379
  }, t.prototype._checkFinalizedStatuses = function(n) {
4359
4380
  var r = this, i = r.hasError, o = r.thrownError, a = r.isStopped;
4360
4381
  i ? n.error(o) : a && n.complete();
4361
4382
  }, t.prototype.asObservable = function() {
4362
- var n = new or();
4383
+ var n = new sr();
4363
4384
  return n.source = this, n;
4364
4385
  }, t.create = function(n, r) {
4365
- return new sr(n, r);
4386
+ return new ur(n, r);
4366
4387
  }, t;
4367
- }(or), sr = function(e) {
4368
- Ae(t, e);
4388
+ }(sr), ur = function(e) {
4389
+ Et(t, e);
4369
4390
  function t(n, r) {
4370
4391
  var i = e.call(this) || this;
4371
4392
  return i.destination = n, i.source = r, i;
@@ -4381,7 +4402,7 @@ var Pa = ni(function(e) {
4381
4402
  (r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
4382
4403
  }, t.prototype._subscribe = function(n) {
4383
4404
  var r, i;
4384
- return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : ri;
4405
+ return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : ii;
4385
4406
  }, t;
4386
4407
  }(si), li = {
4387
4408
  now: function() {
@@ -4389,7 +4410,7 @@ var Pa = ni(function(e) {
4389
4410
  },
4390
4411
  delegate: void 0
4391
4412
  }, La = function(e) {
4392
- Ae(t, e);
4413
+ Et(t, e);
4393
4414
  function t(n, r, i) {
4394
4415
  n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = li);
4395
4416
  var o = e.call(this) || this;
@@ -4412,41 +4433,41 @@ var Pa = ni(function(e) {
4412
4433
  }
4413
4434
  }, t;
4414
4435
  }(si);
4415
- const lr = [], ur = {}, Ra = (e, t = 0) => {
4416
- if (lr.indexOf(e) == -1) {
4436
+ const cr = [], hr = {}, Na = (e, t = 0) => {
4437
+ if (cr.indexOf(e) == -1) {
4417
4438
  const n = new La(t);
4418
- ur[e] = n, lr.push(e);
4439
+ hr[e] = n, cr.push(e);
4419
4440
  }
4420
- return ur[e];
4441
+ return hr[e];
4421
4442
  };
4422
- let Tn = "en-UK", ui = "true", Cn = 0, Sn = "";
4423
- const Oa = (e, t, n, r) => {
4424
- Tn = e || "en-UK", ui = t || "true", Cn = +r || 0, Sn = n || "";
4425
- }, cr = ({ local: e, options: t = {}, amount: n }) => {
4426
- try {
4427
- return new Intl.NumberFormat(e, t);
4428
- } catch (r) {
4429
- return console.info(r), new Intl.NumberFormat(e, {
4430
- minimumFractionDigits: t.minimumFractionDigits,
4431
- maximumFractionDigits: t.maximumFractionDigits
4432
- });
4433
- }
4434
- }, Ne = (e, t, n = {}, r = !0) => {
4435
- const i = Pe(Pe({
4436
- maximumFractionDigits: Cn,
4437
- minimumFractionDigits: Cn
4443
+ let Ut = "en-UK", ui = "true", pt = 0, dt = "";
4444
+ const Ra = (e, t, n, r) => {
4445
+ Ut = e || "en-UK", ui = t || "true", pt = +r || 0, dt = n || "";
4446
+ }, Re = (e, t, n = {}, r = !0) => {
4447
+ const i = Ie(Ie({
4448
+ maximumFractionDigits: pt,
4449
+ minimumFractionDigits: pt
4438
4450
  }, r && {
4439
4451
  style: "currency",
4440
4452
  currency: t,
4441
4453
  currencyDisplay: ui === "true" ? "symbol" : "code"
4442
4454
  }), n);
4443
- if (!Sn)
4444
- return cr({ local: Tn, options: i }).format(e);
4445
- const a = cr({ local: Tn, options: i }).formatToParts(e), s = a.find(({ type: h = "" } = {}) => h === "currency") || {}, l = a.filter(({ type: h = "" } = {}) => h !== "currency").map(({ value: h = "" } = {}) => h).join("");
4446
- return Sn === "before" ? `${s.value || t || ""} ${l}` : `${l} ${s.value || t || ""}`;
4455
+ try {
4456
+ if (!dt)
4457
+ return new Intl.NumberFormat(Ut, i).format(e);
4458
+ const a = new Intl.NumberFormat(Ut, i).formatToParts(e), s = a.find(({ type: h = "" } = {}) => h === "currency") || {}, l = a.filter(({ type: h = "" } = {}) => h !== "currency").map(({ value: h = "" } = {}) => h).join("");
4459
+ return dt === "before" ? `${s.value || i.currency || ""} ${l}` : `${l} ${s.value || i.currency || ""}`;
4460
+ } catch (o) {
4461
+ console.info(o);
4462
+ const a = new Intl.NumberFormat(Ut, {
4463
+ maximumFractionDigits: pt,
4464
+ minimumFractionDigits: pt
4465
+ }).format(e);
4466
+ return dt ? dt === "before" ? `${i.currency || ""} ${a}` : `${a} ${i.currency || ""}` : `${i.currency || ""} ${a}`;
4467
+ }
4447
4468
  };
4448
- window.emWidgets = { topic: Ra };
4449
- const Na = {
4469
+ window.emWidgets = { topic: Na };
4470
+ const Da = {
4450
4471
  "1INCH": "",
4451
4472
  AAVE: "",
4452
4473
  ADA: "₳",
@@ -4734,7 +4755,7 @@ const Na = {
4734
4755
  ZMW: "",
4735
4756
  ZWD: "Z$"
4736
4757
  };
4737
- function Da(e, t) {
4758
+ function Ma(e, t) {
4738
4759
  let n;
4739
4760
  return function(...r) {
4740
4761
  n && clearTimeout(n), n = setTimeout(() => {
@@ -4742,14 +4763,14 @@ function Da(e, t) {
4742
4763
  }, t);
4743
4764
  };
4744
4765
  }
4745
- const hr = (e, t = null, n = 2) => {
4766
+ const fr = (e, t = null, n = 2) => {
4746
4767
  try {
4747
4768
  return JSON.stringify(e, t, n);
4748
4769
  } catch (r) {
4749
4770
  return console.warn("Failed to stringify:", r), null;
4750
4771
  }
4751
4772
  };
4752
- function Ma(e) {
4773
+ function ka(e) {
4753
4774
  if (e) {
4754
4775
  if (e = e.toString(), isNaN(e))
4755
4776
  throw Error("Parameter is not a number: " + e);
@@ -4764,42 +4785,40 @@ function Ma(e) {
4764
4785
  }
4765
4786
  return e;
4766
4787
  }
4767
- const Ee = String(Number.MAX_SAFE_INTEGER).length, ka = 6e3, Fa = {
4788
+ const xe = String(Number.MAX_SAFE_INTEGER).length, Fa = 6e3, Ua = {
4768
4789
  InvalidSession: "Invalid session"
4769
4790
  }, J = {
4770
4791
  BalanceError: "BalanceError",
4771
4792
  CheckWalletExchangeError: "CheckWalletExchangeError",
4772
4793
  WalletExchangeError: "WalletExchangeError",
4773
- ExchangeSuccess: "ExchangeSuccess",
4774
4794
  CurrenciesError: "CurrenciesError"
4775
- }, fr = {
4795
+ }, pr = {
4776
4796
  ResetVaultWidget: "ResetVaultWidget",
4777
4797
  CloseVaultWidget: "CloseVaultWidget"
4778
- }, ln = {
4798
+ }, pn = {
4779
4799
  VaultWidgetReset: "VaultWidgetReset",
4780
4800
  VaultWidgetClosed: "VaultWidgetClosed",
4781
4801
  VaultDropdownToggled: "VaultDropdownToggled"
4782
- }, pr = {
4802
+ }, dr = {
4783
4803
  Real: "Real",
4784
4804
  Vault: "Vault"
4785
- }, Le = {
4805
+ }, Oe = {
4786
4806
  success: "success",
4787
4807
  error: "error"
4788
- }, Lt = {
4808
+ }, Nt = {
4789
4809
  ArrowDown: "ArrowDown",
4790
4810
  ArrowUp: "ArrowUp",
4791
4811
  Enter: "Enter",
4792
4812
  Escape: "Escape"
4793
4813
  }, le = {
4794
- true: "true",
4795
- false: "false"
4796
- }, dr = {
4814
+ true: "true"
4815
+ }, mr = {
4797
4816
  Fiat: "Fiat",
4798
4817
  CryptoCurrency: "CryptoCurrency"
4799
- }, Ua = {
4818
+ }, Va = {
4800
4819
  Credit: "Credit"
4801
4820
  };
4802
- function Va(e) {
4821
+ function Ga(e) {
4803
4822
  const t = (n) => {
4804
4823
  e.contains(n.target) || e.dispatchEvent(new CustomEvent("outclick"));
4805
4824
  };
@@ -4809,14 +4828,14 @@ function Va(e) {
4809
4828
  }
4810
4829
  };
4811
4830
  }
4812
- function Ga(e) {
4813
- Hn(e, "svelte-1g9pqha", ".selectWrapper.svelte-1g9pqha.svelte-1g9pqha{position:relative;min-width:96px;font-family:inherit;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px)}.selectButton.svelte-1g9pqha.svelte-1g9pqha{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;display:flex;align-items:center;justify-content:space-between;color:var(--emw--select-typography, #595959);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));padding:0 var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-family:inherit}.selectButton.svelte-1g9pqha.svelte-1g9pqha:focus-visible{outline:none}.label.svelte-1g9pqha.svelte-1g9pqha{display:flex;align-items:center}.selectDropdownWrapper.svelte-1g9pqha.svelte-1g9pqha{position:absolute;top:calc(100% + 2px);left:0;right:0;overflow:hidden;z-index:100;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px)}.selectDropdown.svelte-1g9pqha.svelte-1g9pqha{display:flex;flex-direction:column;gap:4px;max-height:150px;overflow-y:auto;scrollbar-width:thin}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha{height:24px;flex:0 0 24px;display:flex;align-items:center;;;padding:0 var(--emw--spacing-small, 10px);cursor:pointer;transition:all 0.3s ease}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha:hover,.selectDropdown.svelte-1g9pqha li.active.svelte-1g9pqha{background:var(--emw--selected-option, #f0f0f0)}.symbol.svelte-1g9pqha.svelte-1g9pqha{display:inline-flex;width:14px;height:14px;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw--symbol-background, #595959);font-size:var(--emw--font-size-small, 12px);color:var(--emw--symbol-typography, #fff)}");
4831
+ function $a(e) {
4832
+ Ln(e, "svelte-1g9pqha", ".selectWrapper.svelte-1g9pqha.svelte-1g9pqha{position:relative;min-width:96px;font-family:inherit;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px)}.selectButton.svelte-1g9pqha.svelte-1g9pqha{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;display:flex;align-items:center;justify-content:space-between;color:var(--emw--select-typography, #595959);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));padding:0 var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-family:inherit}.selectButton.svelte-1g9pqha.svelte-1g9pqha:focus-visible{outline:none}.label.svelte-1g9pqha.svelte-1g9pqha{display:flex;align-items:center}.selectDropdownWrapper.svelte-1g9pqha.svelte-1g9pqha{position:absolute;top:calc(100% + 2px);left:0;right:0;overflow:hidden;z-index:100;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px)}.selectDropdown.svelte-1g9pqha.svelte-1g9pqha{display:flex;flex-direction:column;gap:4px;max-height:150px;overflow-y:auto;scrollbar-width:thin}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha{height:24px;flex:0 0 24px;display:flex;align-items:center;;;padding:0 var(--emw--spacing-small, 10px);cursor:pointer;transition:all 0.3s ease}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha:hover,.selectDropdown.svelte-1g9pqha li.active.svelte-1g9pqha{background:var(--emw--selected-option, #f0f0f0)}.symbol.svelte-1g9pqha.svelte-1g9pqha{display:inline-flex;width:14px;height:14px;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw--symbol-background, #595959);font-size:var(--emw--font-size-small, 12px);color:var(--emw--symbol-typography, #fff)}");
4814
4833
  }
4815
- function mr(e, t, n) {
4834
+ function gr(e, t, n) {
4816
4835
  const r = e.slice();
4817
4836
  return r[16] = t[n], r[18] = n, r;
4818
4837
  }
4819
- function gr(e) {
4838
+ function br(e) {
4820
4839
  var i;
4821
4840
  let t, n = (
4822
4841
  /*selected*/
@@ -4827,7 +4846,7 @@ function gr(e) {
4827
4846
  t = T("span"), r = z(n), v(t, "class", "symbol svelte-1g9pqha");
4828
4847
  },
4829
4848
  m(o, a) {
4830
- H(o, t, a), x(t, r);
4849
+ P(o, t, a), x(t, r);
4831
4850
  },
4832
4851
  p(o, a) {
4833
4852
  var s;
@@ -4840,13 +4859,13 @@ function gr(e) {
4840
4859
  }
4841
4860
  };
4842
4861
  }
4843
- function br(e) {
4844
- let t, n, r = Ft(
4862
+ function yr(e) {
4863
+ let t, n, r = Gt(
4845
4864
  /*options*/
4846
4865
  e[1]
4847
4866
  ), i = [];
4848
4867
  for (let o = 0; o < r.length; o += 1)
4849
- i[o] = yr(mr(e, r, o));
4868
+ i[o] = vr(gr(e, r, o));
4850
4869
  return {
4851
4870
  c() {
4852
4871
  t = T("div"), n = T("ul");
@@ -4855,7 +4874,7 @@ function br(e) {
4855
4874
  v(n, "class", "selectDropdown svelte-1g9pqha"), v(t, "class", "selectDropdownWrapper svelte-1g9pqha");
4856
4875
  },
4857
4876
  m(o, a) {
4858
- H(o, t, a), x(t, n);
4877
+ P(o, t, a), x(t, n);
4859
4878
  for (let s = 0; s < i.length; s += 1)
4860
4879
  i[s] && i[s].m(n, null);
4861
4880
  e[14](n);
@@ -4863,14 +4882,14 @@ function br(e) {
4863
4882
  p(o, a) {
4864
4883
  if (a & /*options, selected, activeIndex, handleChange*/
4865
4884
  547) {
4866
- r = Ft(
4885
+ r = Gt(
4867
4886
  /*options*/
4868
4887
  o[1]
4869
4888
  );
4870
4889
  let s;
4871
4890
  for (s = 0; s < r.length; s += 1) {
4872
- const l = mr(o, r, s);
4873
- i[s] ? i[s].p(l, a) : (i[s] = yr(l), i[s].c(), i[s].m(n, null));
4891
+ const l = gr(o, r, s);
4892
+ i[s] ? i[s].p(l, a) : (i[s] = vr(l), i[s].c(), i[s].m(n, null));
4874
4893
  }
4875
4894
  for (; s < i.length; s += 1)
4876
4895
  i[s].d(1);
@@ -4878,11 +4897,11 @@ function br(e) {
4878
4897
  }
4879
4898
  },
4880
4899
  d(o) {
4881
- o && B(t), Cr(i, o), e[14](null);
4900
+ o && B(t), Sr(i, o), e[14](null);
4882
4901
  }
4883
4902
  };
4884
4903
  }
4885
- function yr(e) {
4904
+ function vr(e) {
4886
4905
  var c, m;
4887
4906
  let t, n, r = (
4888
4907
  /*option*/
@@ -4893,8 +4912,8 @@ function yr(e) {
4893
4912
  ), s, l, u, h, f;
4894
4913
  return {
4895
4914
  c() {
4896
- var _, g, w, O;
4897
- t = T("li"), n = T("span"), i = z(r), o = D(), s = z(a), l = D(), v(n, "class", "symbol svelte-1g9pqha"), v(t, "role", "option"), v(t, "aria-selected", u = /*option*/
4915
+ var _, g, w, N;
4916
+ t = T("li"), n = T("span"), i = z(r), o = R(), s = z(a), l = R(), v(n, "class", "symbol svelte-1g9pqha"), v(t, "role", "option"), v(t, "aria-selected", u = /*option*/
4898
4917
  ((_ = e[16]) == null ? void 0 : _.currency) === /*selected*/
4899
4918
  ((g = e[0]) == null ? void 0 : g.currency) || /*index*/
4900
4919
  e[18] === /*activeIndex*/
@@ -4903,16 +4922,16 @@ function yr(e) {
4903
4922
  "active",
4904
4923
  /*option*/
4905
4924
  ((w = e[16]) == null ? void 0 : w.currency) === /*selected*/
4906
- ((O = e[0]) == null ? void 0 : O.currency) || /*index*/
4925
+ ((N = e[0]) == null ? void 0 : N.currency) || /*index*/
4907
4926
  e[18] === /*activeIndex*/
4908
4927
  e[5]
4909
4928
  );
4910
4929
  },
4911
4930
  m(_, g) {
4912
- H(_, t, g), x(t, n), x(n, i), x(t, o), x(t, s), x(t, l), h || (f = [
4913
- ne(t, "keydown", ja),
4931
+ P(_, t, g), x(t, n), x(n, i), x(t, o), x(t, s), x(t, l), h || (f = [
4932
+ ne(t, "keydown", Wa),
4914
4933
  ne(t, "click", function() {
4915
- vt(
4934
+ _t(
4916
4935
  /*handleChange*/
4917
4936
  e[9](
4918
4937
  /*option*/
@@ -4930,12 +4949,12 @@ function yr(e) {
4930
4949
  ], h = !0);
4931
4950
  },
4932
4951
  p(_, g) {
4933
- var w, O, E, b, C, M;
4952
+ var w, N, E, b, C, D;
4934
4953
  e = _, g & /*options*/
4935
4954
  2 && r !== (r = /*option*/
4936
4955
  ((w = e[16]) == null ? void 0 : w.symbol) + "") && re(i, r), g & /*options*/
4937
4956
  2 && a !== (a = /*option*/
4938
- ((O = e[16]) == null ? void 0 : O.currency) + "") && re(s, a), g & /*options, selected, activeIndex*/
4957
+ ((N = e[16]) == null ? void 0 : N.currency) + "") && re(s, a), g & /*options, selected, activeIndex*/
4939
4958
  35 && u !== (u = /*option*/
4940
4959
  ((E = e[16]) == null ? void 0 : E.currency) === /*selected*/
4941
4960
  ((b = e[0]) == null ? void 0 : b.currency) || /*index*/
@@ -4946,17 +4965,17 @@ function yr(e) {
4946
4965
  "active",
4947
4966
  /*option*/
4948
4967
  ((C = e[16]) == null ? void 0 : C.currency) === /*selected*/
4949
- ((M = e[0]) == null ? void 0 : M.currency) || /*index*/
4968
+ ((D = e[0]) == null ? void 0 : D.currency) || /*index*/
4950
4969
  e[18] === /*activeIndex*/
4951
4970
  e[5]
4952
4971
  );
4953
4972
  },
4954
4973
  d(_) {
4955
- _ && B(t), h = !1, we(f);
4974
+ _ && B(t), h = !1, Ae(f);
4956
4975
  }
4957
4976
  };
4958
4977
  }
4959
- function $a(e) {
4978
+ function ja(e) {
4960
4979
  var _, g;
4961
4980
  let t, n, r, i, o = (
4962
4981
  /*selected*/
@@ -4965,14 +4984,14 @@ function $a(e) {
4965
4984
  ), a, s, l, u, h, f, c = (
4966
4985
  /*selected*/
4967
4986
  ((g = e[0]) == null ? void 0 : g.symbol) && /*withSymbol*/
4968
- e[3] === le.true && gr(e)
4987
+ e[3] === le.true && br(e)
4969
4988
  ), m = (
4970
4989
  /*open*/
4971
- e[7] && br(e)
4990
+ e[7] && yr(e)
4972
4991
  );
4973
4992
  return {
4974
4993
  c() {
4975
- t = T("div"), n = T("button"), r = T("span"), c && c.c(), i = D(), a = z(o), s = D(), l = T("span"), l.innerHTML = '<svg width="12" height="7" viewBox="0 0 12 7" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z" fill="currentColor"></path></svg>', u = D(), m && m.c(), v(r, "class", "label svelte-1g9pqha"), v(l, "class", "arrow"), se(
4994
+ t = T("div"), n = T("button"), r = T("span"), c && c.c(), i = R(), a = z(o), s = R(), l = T("span"), l.innerHTML = '<svg width="12" height="7" viewBox="0 0 12 7" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z" fill="currentColor"></path></svg>', u = R(), m && m.c(), v(r, "class", "label svelte-1g9pqha"), v(l, "class", "arrow"), se(
4976
4995
  l,
4977
4996
  "open",
4978
4997
  /*open*/
@@ -4985,8 +5004,8 @@ function $a(e) {
4985
5004
  ), v(n, "aria-controls", "custom-select"), v(n, "tabindex", "0"), n.disabled = /*disabled*/
4986
5005
  e[4], v(t, "class", "selectWrapper svelte-1g9pqha");
4987
5006
  },
4988
- m(w, O) {
4989
- H(w, t, O), x(t, n), x(n, r), c && c.m(r, null), x(r, i), x(r, a), x(n, s), x(n, l), x(t, u), m && m.m(t, null), h || (f = [
5007
+ m(w, N) {
5008
+ P(w, t, N), x(t, n), x(n, r), c && c.m(r, null), x(r, i), x(r, a), x(n, s), x(n, l), x(t, u), m && m.m(t, null), h || (f = [
4990
5009
  ne(
4991
5010
  n,
4992
5011
  "keydown",
@@ -4997,7 +5016,7 @@ function $a(e) {
4997
5016
  /*handleToggleDropdown*/
4998
5017
  e[8]
4999
5018
  )),
5000
- bi(Va.call(null, t)),
5019
+ bi(Ga.call(null, t)),
5001
5020
  ne(
5002
5021
  t,
5003
5022
  "outclick",
@@ -5006,42 +5025,42 @@ function $a(e) {
5006
5025
  )
5007
5026
  ], h = !0);
5008
5027
  },
5009
- p(w, [O]) {
5028
+ p(w, [N]) {
5010
5029
  var E, b;
5011
5030
  /*selected*/
5012
5031
  (E = w[0]) != null && E.symbol && /*withSymbol*/
5013
- w[3] === le.true ? c ? c.p(w, O) : (c = gr(w), c.c(), c.m(r, i)) : c && (c.d(1), c = null), O & /*selected, placeholder*/
5032
+ w[3] === le.true ? c ? c.p(w, N) : (c = br(w), c.c(), c.m(r, i)) : c && (c.d(1), c = null), N & /*selected, placeholder*/
5014
5033
  5 && o !== (o = /*selected*/
5015
5034
  (((b = w[0]) == null ? void 0 : b.currency) || /*placeholder*/
5016
- w[2]) + "") && re(a, o), O & /*open*/
5035
+ w[2]) + "") && re(a, o), N & /*open*/
5017
5036
  128 && se(
5018
5037
  l,
5019
5038
  "open",
5020
5039
  /*open*/
5021
5040
  w[7]
5022
- ), O & /*open*/
5041
+ ), N & /*open*/
5023
5042
  128 && v(
5024
5043
  n,
5025
5044
  "aria-expanded",
5026
5045
  /*open*/
5027
5046
  w[7]
5028
- ), O & /*disabled*/
5047
+ ), N & /*disabled*/
5029
5048
  16 && (n.disabled = /*disabled*/
5030
5049
  w[4]), /*open*/
5031
- w[7] ? m ? m.p(w, O) : (m = br(w), m.c(), m.m(t, null)) : m && (m.d(1), m = null);
5050
+ w[7] ? m ? m.p(w, N) : (m = yr(w), m.c(), m.m(t, null)) : m && (m.d(1), m = null);
5032
5051
  },
5033
- i: P,
5034
- o: P,
5052
+ i: I,
5053
+ o: I,
5035
5054
  d(w) {
5036
- w && B(t), c && c.d(), m && m.d(), h = !1, we(f);
5055
+ w && B(t), c && c.d(), m && m.d(), h = !1, Ae(f);
5037
5056
  }
5038
5057
  };
5039
5058
  }
5040
- const ja = (e) => e.preventDefault();
5041
- function Wa(e, t, n) {
5042
- let { options: r = [] } = t, { selected: i = null } = t, { placeholder: o = k("select") } = t, { withSymbol: a = "true" } = t, { id: s } = t, { disabled: l = !1 } = t, { onChange: u = () => {
5059
+ const Wa = (e) => e.preventDefault();
5060
+ function Xa(e, t, n) {
5061
+ let { options: r = [] } = t, { selected: i = null } = t, { placeholder: o = M("select") } = t, { withSymbol: a = "true" } = t, { id: s } = t, { disabled: l = !1 } = t, { onChange: u = () => {
5043
5062
  } } = t, h = -1, f, c = !1;
5044
- const m = () => Bt(this, null, function* () {
5063
+ const m = () => Ht(this, null, function* () {
5045
5064
  var b;
5046
5065
  r.length !== 0 && (n(7, c = !c), c && (n(5, h = r.findIndex((C) => (C == null ? void 0 : C.currency) === (i == null ? void 0 : i.currency))), window.dispatchEvent(new CustomEvent("dropdown-opened", { detail: s })), yield Ti(), f == null || f.focus(), (b = f == null ? void 0 : f.querySelector('li[aria-selected="true"]')) == null || b.scrollIntoView({ block: "nearest" })));
5047
5066
  }), _ = (b) => {
@@ -5050,16 +5069,16 @@ function Wa(e, t, n) {
5050
5069
  n(7, c = !1), n(0, i = b), u && typeof u == "function" && u(b, C);
5051
5070
  }, w = () => {
5052
5071
  n(7, c = !1);
5053
- }, O = (b) => {
5054
- c && (b.key === Lt.ArrowDown ? (b.preventDefault(), n(5, h = (h + 1) % r.length)) : b.key === Lt.ArrowUp ? (b.preventDefault(), n(5, h = (h - 1 + r.length) % r.length)) : b.key === Lt.Enter ? (b.preventDefault(), g(i, h)()) : b.key === Lt.Escape && n(7, c = !1));
5072
+ }, N = (b) => {
5073
+ c && (b.key === Nt.ArrowDown ? (b.preventDefault(), n(5, h = (h + 1) % r.length)) : b.key === Nt.ArrowUp ? (b.preventDefault(), n(5, h = (h - 1 + r.length) % r.length)) : b.key === Nt.Enter ? (b.preventDefault(), g(i, h)()) : b.key === Nt.Escape && n(7, c = !1));
5055
5074
  };
5056
- Br(() => {
5075
+ Pr(() => {
5057
5076
  window.addEventListener("dropdown-opened", _);
5058
5077
  }), Ai(() => {
5059
5078
  window.removeEventListener("dropdown-opened", _);
5060
5079
  });
5061
5080
  function E(b) {
5062
- Ye[b ? "unshift" : "push"](() => {
5081
+ Qe[b ? "unshift" : "push"](() => {
5063
5082
  f = b, n(6, f);
5064
5083
  });
5065
5084
  }
@@ -5077,20 +5096,20 @@ function Wa(e, t, n) {
5077
5096
  m,
5078
5097
  g,
5079
5098
  w,
5080
- O,
5099
+ N,
5081
5100
  s,
5082
5101
  u,
5083
5102
  E
5084
5103
  ];
5085
5104
  }
5086
- class Bn extends Ln {
5105
+ class On extends Dn {
5087
5106
  constructor(t) {
5088
- super(), In(
5107
+ super(), Nn(
5089
5108
  this,
5090
5109
  t,
5091
- Wa,
5092
- $a,
5093
- Gt,
5110
+ Xa,
5111
+ ja,
5112
+ Xt,
5094
5113
  {
5095
5114
  options: 1,
5096
5115
  selected: 0,
@@ -5100,109 +5119,109 @@ class Bn extends Ln {
5100
5119
  disabled: 4,
5101
5120
  onChange: 13
5102
5121
  },
5103
- Ga
5122
+ $a
5104
5123
  );
5105
5124
  }
5106
5125
  get options() {
5107
5126
  return this.$$.ctx[1];
5108
5127
  }
5109
5128
  set options(t) {
5110
- this.$$set({ options: t }), U();
5129
+ this.$$set({ options: t }), F();
5111
5130
  }
5112
5131
  get selected() {
5113
5132
  return this.$$.ctx[0];
5114
5133
  }
5115
5134
  set selected(t) {
5116
- this.$$set({ selected: t }), U();
5135
+ this.$$set({ selected: t }), F();
5117
5136
  }
5118
5137
  get placeholder() {
5119
5138
  return this.$$.ctx[2];
5120
5139
  }
5121
5140
  set placeholder(t) {
5122
- this.$$set({ placeholder: t }), U();
5141
+ this.$$set({ placeholder: t }), F();
5123
5142
  }
5124
5143
  get withSymbol() {
5125
5144
  return this.$$.ctx[3];
5126
5145
  }
5127
5146
  set withSymbol(t) {
5128
- this.$$set({ withSymbol: t }), U();
5147
+ this.$$set({ withSymbol: t }), F();
5129
5148
  }
5130
5149
  get id() {
5131
5150
  return this.$$.ctx[12];
5132
5151
  }
5133
5152
  set id(t) {
5134
- this.$$set({ id: t }), U();
5153
+ this.$$set({ id: t }), F();
5135
5154
  }
5136
5155
  get disabled() {
5137
5156
  return this.$$.ctx[4];
5138
5157
  }
5139
5158
  set disabled(t) {
5140
- this.$$set({ disabled: t }), U();
5159
+ this.$$set({ disabled: t }), F();
5141
5160
  }
5142
5161
  get onChange() {
5143
5162
  return this.$$.ctx[13];
5144
5163
  }
5145
5164
  set onChange(t) {
5146
- this.$$set({ onChange: t }), U();
5165
+ this.$$set({ onChange: t }), F();
5147
5166
  }
5148
5167
  }
5149
- Pn(Bn, { options: {}, selected: {}, placeholder: {}, withSymbol: {}, id: {}, disabled: { type: "Boolean" }, onChange: {} }, [], [], !0);
5150
- function Xa(e) {
5151
- Hn(e, "svelte-2fhtvy", ".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}");
5152
- }
5168
+ Rn(On, { options: {}, selected: {}, placeholder: {}, withSymbol: {}, id: {}, disabled: { type: "Boolean" }, onChange: {} }, [], [], !0);
5153
5169
  function za(e) {
5154
- let t, n, r = k("balanceUnavailable") + "", i;
5170
+ Ln(e, "svelte-2fhtvy", ".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}");
5171
+ }
5172
+ function Za(e) {
5173
+ let t, n, r = M("balanceUnavailable") + "", i;
5155
5174
  return {
5156
5175
  c() {
5157
- t = T("span"), t.innerHTML = '<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><g><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z" style="fill-rule:nonzero;"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z" style="fill-rule:nonzero;"></path></g></svg>', n = D(), i = z(r), v(t, "class", "warningIcon svelte-2fhtvy");
5176
+ t = T("span"), t.innerHTML = '<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><g><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z" style="fill-rule:nonzero;"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z" style="fill-rule:nonzero;"></path></g></svg>', n = R(), i = z(r), v(t, "class", "warningIcon svelte-2fhtvy");
5158
5177
  },
5159
5178
  m(o, a) {
5160
- H(o, t, a), H(o, n, a), H(o, i, a);
5179
+ P(o, t, a), P(o, n, a), P(o, i, a);
5161
5180
  },
5162
- p: P,
5163
- i: P,
5164
- o: P,
5181
+ p: I,
5182
+ i: I,
5183
+ o: I,
5165
5184
  d(o) {
5166
5185
  o && (B(t), B(n), B(i));
5167
5186
  }
5168
5187
  };
5169
5188
  }
5170
- class Zt extends Ln {
5189
+ class Jt extends Dn {
5171
5190
  constructor(t) {
5172
- super(), In(this, t, null, za, Gt, {}, Xa);
5191
+ super(), Nn(this, t, null, Za, Xt, {}, za);
5173
5192
  }
5174
5193
  }
5175
- Pn(Zt, {}, [], [], !0);
5176
- function Za(e) {
5177
- Hn(e, "svelte-1mw4zse", '@charset "UTF-8";*{margin:0;padding:0}.playerAccountVault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);background:var(--emw--widget-background, #F8F8F8);color:var(--emw--typography, #595959);padding:var(--emw--spacing-medium, 16px);position:relative}.playerAccountVault .closeButton{position:absolute;background:none;border:none;top:var(--emw--spacing-medium, 16px);right:var(--emw--spacing-small, 10px);line-height:0;cursor:pointer}.playerAccountVault .closeButton svg{fill:var(--emw--color-faded, #A0A29F)}.playerAccountVault .playerVaultContainer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-smaller, 5px);box-sizing:border-box}.playerAccountVault .amountContainer{display:flex;align-items:center}.playerAccountVault .headerContainer{display:flex;width:100%;gap:var(--emw--spacing-small, 10px);justify-content:space-between;flex-direction:column}.playerAccountVault .headerContainer .headerTitle{font-family:inherit;color:var(--emw--color-secondary, #24B04F);font-size:var(--emw--font-size-large, 16px);font-weight:var(--emw--font-weight-normal, 400)}.playerAccountVault .headerContainer .totalAmount{margin-right:4px;color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .exchangesContainer{width:100%;height:100%;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .exchangeHeader,.playerAccountVault .exchangesContainer .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow{display:flex;align-items:center;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-outer-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]{-moz-appearance:textfield}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput{flex:1;min-width:50px;border:unset;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-medium, 14px);padding:0 var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-small, 8px);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));font-family:inherit;color:var(--emw--input-typography, #000)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput[disabled],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput[disabled]{color:var(--emw--input-disabled, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput::placeholder,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput::placeholder{color:var(--emw--input-placeholder, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect{min-width:96px;border:unset;white-space:nowrap;height:var(--emw--base-height, 36px);padding:0 var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer{display:flex;justify-content:space-between;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer .validationError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer .validationError{flex:1}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance{white-space:nowrap;justify-content:flex-end}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance .amount,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance .amount{color:var(--emw--color-faded, #A0A29F);margin-right:4px}.playerAccountVault .vaultsContainer{display:flex;flex-direction:column;width:100%}.playerAccountVault .vaultsContainer .vaultToggleButton{display:flex;align-items:center;justify-content:center;width:35px;height:35px;cursor:pointer;border:unset;align-self:flex-end;padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon path{fill:var(--emw--color-white, #fff)}.playerAccountVault .vaultsContainer .vaultToggleButton.active .vaultToggleIcon{transform:rotateZ(180deg)}.playerAccountVault .vaultsContainer .vaultDropdown{width:80%;max-height:0;height:200px;margin:0 auto;display:flex;flex-direction:column;overflow:auto;opacity:0;scrollbar-width:thin;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-white, #fff);font-family:inherit;transition:max-height 0.4s ease-out, opacity 0.4s ease-out}.playerAccountVault .vaultsContainer .vaultDropdown .vaultItem{display:inherit;font-size:var(--emw--font-size-medium, 14px);justify-content:space-between;width:100%;margin:0 auto;box-sizing:border-box;height:var(--emw--base-height, 36px);padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultDropdown.expanded{transition:max-height 1s ease-in, opacity 0.4s ease-in;max-height:1000vh;opacity:1}.playerAccountVault .notificationsContainer{width:100%;min-height:var(--emw--base-height, 36px);padding:0px}.playerAccountVault .notificationsContainer.error{color:var(--emw--color-error, #FF2424)}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, #24B04F)}.playerAccountVault .feesContainer{width:100%;height:var(--emw--base-height, 36px);display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px);padding:0 var(--emw--spacing-small, 10px);box-sizing:border-box}.playerAccountVault .feesContainer .feesLabel{color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .actionsContainer{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .actionsContainer button{flex:1;height:var(--emw--base-height, 36px);border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--button-font-size, 14px);border-radius:var(--emw--border-radius-small, 8px);font-weight:var(--emw--font-weight-bold, 500);transition:background 0.3s ease, color 0.3s ease, filter 0.3s ease}.playerAccountVault .actionsContainer .exchangeButton{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--color-primary, #24B04F);border:1px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled.pending{background:var(--emw--color-primary, #24B04F);pointer-events:none;opacity:0.5}.playerAccountVault .skeleton{background-color:rgba(0, 0, 0, 0.11);height:auto;min-height:0.1rem;-webkit-animation:loading 1.5s ease-in-out 0.5s infinite;animation:loading 1.5s ease-in-out 0.5s infinite}.playerAccountVault .skeleton::before{content:" "}@keyframes loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.playerAccountVault .exchangeContainer{display:flex;flex-direction:column;gap:4px}');
5194
+ Rn(Jt, {}, [], [], !0);
5195
+ function Ka(e) {
5196
+ Ln(e, "svelte-1mw4zse", '@charset "UTF-8";*{margin:0;padding:0}.playerAccountVault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);background:var(--emw--widget-background, #F8F8F8);color:var(--emw--typography, #595959);padding:var(--emw--spacing-medium, 16px);position:relative}.playerAccountVault .closeButton{position:absolute;background:none;border:none;top:var(--emw--spacing-medium, 16px);right:var(--emw--spacing-small, 10px);line-height:0;cursor:pointer}.playerAccountVault .closeButton svg{fill:var(--emw--color-faded, #A0A29F)}.playerAccountVault .playerVaultContainer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-smaller, 5px);box-sizing:border-box}.playerAccountVault .amountContainer{display:flex;align-items:center}.playerAccountVault .headerContainer{display:flex;width:100%;gap:var(--emw--spacing-small, 10px);justify-content:space-between;flex-direction:column}.playerAccountVault .headerContainer .headerTitle{font-family:inherit;color:var(--emw--color-secondary, #24B04F);font-size:var(--emw--font-size-large, 16px);font-weight:var(--emw--font-weight-normal, 400)}.playerAccountVault .headerContainer .totalAmount{margin-right:4px;color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .exchangesContainer{width:100%;height:100%;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .exchangeHeader,.playerAccountVault .exchangesContainer .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow{display:flex;align-items:center;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-outer-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]{-moz-appearance:textfield}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput{flex:1;min-width:50px;border:unset;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-medium, 14px);padding:0 var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-small, 8px);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));font-family:inherit;color:var(--emw--input-typography, #000)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput[disabled],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput[disabled]{color:var(--emw--input-disabled, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput::placeholder,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput::placeholder{color:var(--emw--input-placeholder, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect{min-width:96px;border:unset;white-space:nowrap;height:var(--emw--base-height, 36px);padding:0 var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer{display:flex;justify-content:space-between;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer .validationError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer .validationError{flex:1}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance{white-space:nowrap;justify-content:flex-end}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance .amount,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance .amount{color:var(--emw--color-faded, #A0A29F);margin-right:4px}.playerAccountVault .vaultsContainer{display:flex;flex-direction:column;width:100%}.playerAccountVault .vaultsContainer .vaultToggleButton{display:flex;align-items:center;justify-content:center;width:35px;height:35px;cursor:pointer;border:unset;align-self:flex-end;padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon path{fill:var(--emw--color-white, #fff)}.playerAccountVault .vaultsContainer .vaultToggleButton.active .vaultToggleIcon{transform:rotateZ(180deg)}.playerAccountVault .vaultsContainer .vaultDropdown{width:80%;max-height:0;height:200px;margin:0 auto;display:flex;flex-direction:column;overflow:auto;opacity:0;scrollbar-width:thin;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-white, #fff);font-family:inherit;transition:max-height 0.4s ease-out, opacity 0.4s ease-out}.playerAccountVault .vaultsContainer .vaultDropdown .vaultItem{display:inherit;font-size:var(--emw--font-size-medium, 14px);justify-content:space-between;width:100%;margin:0 auto;box-sizing:border-box;height:var(--emw--base-height, 36px);padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultDropdown.expanded{transition:max-height 1s ease-in, opacity 0.4s ease-in;max-height:1000vh;opacity:1}.playerAccountVault .notificationsContainer{width:100%;min-height:var(--emw--base-height, 36px);padding:0px}.playerAccountVault .notificationsContainer.error{color:var(--emw--color-error, #FF2424)}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, #24B04F)}.playerAccountVault .feesContainer{width:100%;height:var(--emw--base-height, 36px);display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px);padding:0 var(--emw--spacing-small, 10px);box-sizing:border-box}.playerAccountVault .feesContainer .feesLabel{color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .actionsContainer{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .actionsContainer button{flex:1;height:var(--emw--base-height, 36px);border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--button-font-size, 14px);border-radius:var(--emw--border-radius-small, 8px);font-weight:var(--emw--font-weight-bold, 500);transition:background 0.3s ease, color 0.3s ease, filter 0.3s ease}.playerAccountVault .actionsContainer .exchangeButton{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--color-primary, #24B04F);border:1px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled.pending{background:var(--emw--color-primary, #24B04F);pointer-events:none;opacity:0.5}.playerAccountVault .skeleton{background-color:rgba(0, 0, 0, 0.11);height:auto;min-height:0.1rem;-webkit-animation:loading 1.5s ease-in-out 0.5s infinite;animation:loading 1.5s ease-in-out 0.5s infinite}.playerAccountVault .skeleton::before{content:" "}@keyframes loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.playerAccountVault .exchangeContainer{display:flex;flex-direction:column;gap:4px}');
5178
5197
  }
5179
- function vr(e, t, n) {
5198
+ function _r(e, t, n) {
5180
5199
  const r = e.slice();
5181
5200
  return r[65] = t[n], r;
5182
5201
  }
5183
- function _r(e) {
5202
+ function Er(e) {
5184
5203
  let t, n, r;
5185
5204
  return {
5186
5205
  c() {
5187
5206
  t = T("button"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13.414 12l4.95-4.95-1.414-1.414-4.95 4.95-4.95-4.95L5.636 7.05l4.95 4.95-4.95 4.95 1.414 1.414 4.95-4.95 4.95 4.95 1.414-1.414-4.95-4.95z"></path></svg>', v(t, "type", "button"), v(t, "class", "closeButton");
5188
5207
  },
5189
5208
  m(i, o) {
5190
- H(i, t, o), n || (r = ne(
5209
+ P(i, t, o), n || (r = ne(
5191
5210
  t,
5192
5211
  "click",
5193
5212
  /*handleCloseWidget*/
5194
5213
  e[24]
5195
5214
  ), n = !0);
5196
5215
  },
5197
- p: P,
5216
+ p: I,
5198
5217
  d(i) {
5199
5218
  i && B(t), n = !1, r();
5200
5219
  }
5201
5220
  };
5202
5221
  }
5203
- function Er(e) {
5222
+ function xr(e) {
5204
5223
  let t, n, r, i;
5205
- const o = [qa, Ka], a = [];
5224
+ const o = [Qa, qa], a = [];
5206
5225
  function s(l, u) {
5207
5226
  return !/*isBalanceFetched*/
5208
5227
  l[17] || !/*isCurrenciesFetched*/
@@ -5213,7 +5232,7 @@ function Er(e) {
5213
5232
  n.c(), r = _i();
5214
5233
  },
5215
5234
  m(l, u) {
5216
- a[t].m(l, u), H(l, r, u), i = !0;
5235
+ a[t].m(l, u), P(l, r, u), i = !0;
5217
5236
  },
5218
5237
  p(l, u) {
5219
5238
  let h = t;
@@ -5232,9 +5251,9 @@ function Er(e) {
5232
5251
  }
5233
5252
  };
5234
5253
  }
5235
- function Ka(e) {
5254
+ function qa(e) {
5236
5255
  let t, n, r, i;
5237
- const o = [Ya, Qa], a = [];
5256
+ const o = [Ja, Ya], a = [];
5238
5257
  function s(l, u) {
5239
5258
  var h;
5240
5259
  return (
@@ -5247,7 +5266,7 @@ function Ka(e) {
5247
5266
  t = T("div"), r.c(), v(t, "class", "headerPlayerBalance amountContainer");
5248
5267
  },
5249
5268
  m(l, u) {
5250
- H(l, t, u), a[n].m(t, null), i = !0;
5269
+ P(l, t, u), a[n].m(t, null), i = !0;
5251
5270
  },
5252
5271
  p(l, u) {
5253
5272
  let h = n;
@@ -5266,26 +5285,26 @@ function Ka(e) {
5266
5285
  }
5267
5286
  };
5268
5287
  }
5269
- function qa(e) {
5288
+ function Qa(e) {
5270
5289
  let t;
5271
5290
  return {
5272
5291
  c() {
5273
5292
  t = T("div"), v(t, "class", "skeleton");
5274
5293
  },
5275
5294
  m(n, r) {
5276
- H(n, t, r);
5295
+ P(n, t, r);
5277
5296
  },
5278
- p: P,
5279
- i: P,
5280
- o: P,
5297
+ p: I,
5298
+ i: I,
5299
+ o: I,
5281
5300
  d(n) {
5282
5301
  n && B(t);
5283
5302
  }
5284
5303
  };
5285
5304
  }
5286
- function Qa(e) {
5305
+ function Ya(e) {
5287
5306
  var l, u, h;
5288
- let t, n, r = Ne(
5307
+ let t, n, r = Re(
5289
5308
  /*playerBalance*/
5290
5309
  ((l = e[11]) == null ? void 0 : l.amount) || 0,
5291
5310
  /*playerBalance*/
@@ -5298,15 +5317,15 @@ function Qa(e) {
5298
5317
  ), s;
5299
5318
  return {
5300
5319
  c() {
5301
- t = T("span"), t.textContent = `${k("totalBalance")}`, n = D(), i = z(r), o = D(), s = z(a), v(t, "class", "totalAmount");
5320
+ t = T("span"), t.textContent = `${M("totalBalance")}`, n = R(), i = z(r), o = R(), s = z(a), v(t, "class", "totalAmount");
5302
5321
  },
5303
5322
  m(f, c) {
5304
- H(f, t, c), H(f, n, c), H(f, i, c), H(f, o, c), H(f, s, c);
5323
+ P(f, t, c), P(f, n, c), P(f, i, c), P(f, o, c), P(f, s, c);
5305
5324
  },
5306
5325
  p(f, c) {
5307
5326
  var m, _, g;
5308
5327
  c[0] & /*playerBalance*/
5309
- 2048 && r !== (r = Ne(
5328
+ 2048 && r !== (r = Re(
5310
5329
  /*playerBalance*/
5311
5330
  ((m = f[11]) == null ? void 0 : m.amount) || 0,
5312
5331
  /*playerBalance*/
@@ -5317,23 +5336,23 @@ function Qa(e) {
5317
5336
  2048 && a !== (a = /*playerBalance*/
5318
5337
  (((g = f[11]) == null ? void 0 : g.currency) || "") + "") && re(s, a);
5319
5338
  },
5320
- i: P,
5321
- o: P,
5339
+ i: I,
5340
+ o: I,
5322
5341
  d(f) {
5323
5342
  f && (B(t), B(n), B(i), B(o), B(s));
5324
5343
  }
5325
5344
  };
5326
5345
  }
5327
- function Ya(e) {
5346
+ function Ja(e) {
5328
5347
  let t, n;
5329
- return t = new Zt({}), {
5348
+ return t = new Jt({}), {
5330
5349
  c() {
5331
- gt(t.$$.fragment);
5350
+ bt(t.$$.fragment);
5332
5351
  },
5333
5352
  m(r, i) {
5334
- Je(t, r, i), n = !0;
5353
+ Ye(t, r, i), n = !0;
5335
5354
  },
5336
- p: P,
5355
+ p: I,
5337
5356
  i(r) {
5338
5357
  n || (G(t.$$.fragment, r), n = !0);
5339
5358
  },
@@ -5341,13 +5360,13 @@ function Ya(e) {
5341
5360
  X(t.$$.fragment, r), n = !1;
5342
5361
  },
5343
5362
  d(r) {
5344
- et(t, r);
5363
+ Je(t, r);
5345
5364
  }
5346
5365
  };
5347
5366
  }
5348
- function Ja(e) {
5367
+ function es(e) {
5349
5368
  let t, n, r, i, o, a, s, l, u;
5350
- const h = [ns, ts], f = [];
5369
+ const h = [rs, ns], f = [];
5351
5370
  function c(m, _) {
5352
5371
  var g;
5353
5372
  return (
@@ -5360,11 +5379,11 @@ function Ja(e) {
5360
5379
  t = T("div"), n = T("p"), r = z(
5361
5380
  /*validationError*/
5362
5381
  e[14]
5363
- ), i = D(), o = T("div"), s.c(), v(n, "class", "validationError"), v(o, "class", "playerBalance amountContainer"), v(t, "class", l = "balanceContainer " + /*validationError*/
5382
+ ), i = R(), o = T("div"), s.c(), v(n, "class", "validationError"), v(o, "class", "playerBalance amountContainer"), v(t, "class", l = "balanceContainer " + /*validationError*/
5364
5383
  (e[14] ? "hasError" : ""));
5365
5384
  },
5366
5385
  m(m, _) {
5367
- H(m, t, _), x(t, n), x(n, r), x(t, i), x(t, o), f[a].m(o, null), u = !0;
5386
+ P(m, t, _), x(t, n), x(n, r), x(t, i), x(t, o), f[a].m(o, null), u = !0;
5368
5387
  },
5369
5388
  p(m, _) {
5370
5389
  (!u || _[0] & /*validationError*/
@@ -5391,26 +5410,26 @@ function Ja(e) {
5391
5410
  }
5392
5411
  };
5393
5412
  }
5394
- function es(e) {
5413
+ function ts(e) {
5395
5414
  let t;
5396
5415
  return {
5397
5416
  c() {
5398
5417
  t = T("div"), v(t, "class", "skeleton");
5399
5418
  },
5400
5419
  m(n, r) {
5401
- H(n, t, r);
5420
+ P(n, t, r);
5402
5421
  },
5403
- p: P,
5404
- i: P,
5405
- o: P,
5422
+ p: I,
5423
+ i: I,
5424
+ o: I,
5406
5425
  d(n) {
5407
5426
  n && B(t);
5408
5427
  }
5409
5428
  };
5410
5429
  }
5411
- function ts(e) {
5430
+ function ns(e) {
5412
5431
  var l, u, h;
5413
- let t, n, r = Ne(
5432
+ let t, n, r = Re(
5414
5433
  /*selectedCurrencyFrom*/
5415
5434
  ((l = e[6]) == null ? void 0 : l.amount) || 0,
5416
5435
  /*selectedCurrencyFrom*/
@@ -5423,15 +5442,15 @@ function ts(e) {
5423
5442
  ), s;
5424
5443
  return {
5425
5444
  c() {
5426
- t = T("span"), t.textContent = `${k("currentBalance")}`, n = D(), i = z(r), o = D(), s = z(a), v(t, "class", "amount");
5445
+ t = T("span"), t.textContent = `${M("currentBalance")}`, n = R(), i = z(r), o = R(), s = z(a), v(t, "class", "amount");
5427
5446
  },
5428
5447
  m(f, c) {
5429
- H(f, t, c), H(f, n, c), H(f, i, c), H(f, o, c), H(f, s, c);
5448
+ P(f, t, c), P(f, n, c), P(f, i, c), P(f, o, c), P(f, s, c);
5430
5449
  },
5431
5450
  p(f, c) {
5432
5451
  var m, _, g;
5433
5452
  c[0] & /*selectedCurrencyFrom*/
5434
- 64 && r !== (r = Ne(
5453
+ 64 && r !== (r = Re(
5435
5454
  /*selectedCurrencyFrom*/
5436
5455
  ((m = f[6]) == null ? void 0 : m.amount) || 0,
5437
5456
  /*selectedCurrencyFrom*/
@@ -5442,23 +5461,23 @@ function ts(e) {
5442
5461
  64 && a !== (a = /*selectedCurrencyFrom*/
5443
5462
  (((g = f[6]) == null ? void 0 : g.currency) || "") + "") && re(s, a);
5444
5463
  },
5445
- i: P,
5446
- o: P,
5464
+ i: I,
5465
+ o: I,
5447
5466
  d(f) {
5448
5467
  f && (B(t), B(n), B(i), B(o), B(s));
5449
5468
  }
5450
5469
  };
5451
5470
  }
5452
- function ns(e) {
5471
+ function rs(e) {
5453
5472
  let t, n;
5454
- return t = new Zt({}), {
5473
+ return t = new Jt({}), {
5455
5474
  c() {
5456
- gt(t.$$.fragment);
5475
+ bt(t.$$.fragment);
5457
5476
  },
5458
5477
  m(r, i) {
5459
- Je(t, r, i), n = !0;
5478
+ Ye(t, r, i), n = !0;
5460
5479
  },
5461
- p: P,
5480
+ p: I,
5462
5481
  i(r) {
5463
5482
  n || (G(t.$$.fragment, r), n = !0);
5464
5483
  },
@@ -5466,13 +5485,13 @@ function ns(e) {
5466
5485
  X(t.$$.fragment, r), n = !1;
5467
5486
  },
5468
5487
  d(r) {
5469
- et(t, r);
5488
+ Je(t, r);
5470
5489
  }
5471
5490
  };
5472
5491
  }
5473
- function rs(e) {
5492
+ function is(e) {
5474
5493
  let t, n, r, i;
5475
- const o = [as, os], a = [];
5494
+ const o = [ss, as], a = [];
5476
5495
  function s(l, u) {
5477
5496
  var h;
5478
5497
  return (
@@ -5485,7 +5504,7 @@ function rs(e) {
5485
5504
  t = T("div"), r.c(), v(t, "class", "playerBalance amountContainer");
5486
5505
  },
5487
5506
  m(l, u) {
5488
- H(l, t, u), a[n].m(t, null), i = !0;
5507
+ P(l, t, u), a[n].m(t, null), i = !0;
5489
5508
  },
5490
5509
  p(l, u) {
5491
5510
  let h = n;
@@ -5504,26 +5523,26 @@ function rs(e) {
5504
5523
  }
5505
5524
  };
5506
5525
  }
5507
- function is(e) {
5526
+ function os(e) {
5508
5527
  let t;
5509
5528
  return {
5510
5529
  c() {
5511
5530
  t = T("div"), v(t, "class", "skeleton");
5512
5531
  },
5513
5532
  m(n, r) {
5514
- H(n, t, r);
5533
+ P(n, t, r);
5515
5534
  },
5516
- p: P,
5517
- i: P,
5518
- o: P,
5535
+ p: I,
5536
+ i: I,
5537
+ o: I,
5519
5538
  d(n) {
5520
5539
  n && B(t);
5521
5540
  }
5522
5541
  };
5523
5542
  }
5524
- function os(e) {
5543
+ function as(e) {
5525
5544
  var l, u, h;
5526
- let t, n, r = Ne(
5545
+ let t, n, r = Re(
5527
5546
  /*selectedCurrencyTo*/
5528
5547
  ((l = e[7]) == null ? void 0 : l.amount) || 0,
5529
5548
  /*selectedCurrencyFrom*/
@@ -5536,15 +5555,15 @@ function os(e) {
5536
5555
  ), s;
5537
5556
  return {
5538
5557
  c() {
5539
- t = T("span"), t.textContent = `${k("currentBalance")}`, n = D(), i = z(r), o = D(), s = z(a), v(t, "class", "amount");
5558
+ t = T("span"), t.textContent = `${M("currentBalance")}`, n = R(), i = z(r), o = R(), s = z(a), v(t, "class", "amount");
5540
5559
  },
5541
5560
  m(f, c) {
5542
- H(f, t, c), H(f, n, c), H(f, i, c), H(f, o, c), H(f, s, c);
5561
+ P(f, t, c), P(f, n, c), P(f, i, c), P(f, o, c), P(f, s, c);
5543
5562
  },
5544
5563
  p(f, c) {
5545
5564
  var m, _, g;
5546
5565
  c[0] & /*selectedCurrencyTo, selectedCurrencyFrom*/
5547
- 192 && r !== (r = Ne(
5566
+ 192 && r !== (r = Re(
5548
5567
  /*selectedCurrencyTo*/
5549
5568
  ((m = f[7]) == null ? void 0 : m.amount) || 0,
5550
5569
  /*selectedCurrencyFrom*/
@@ -5555,23 +5574,23 @@ function os(e) {
5555
5574
  128 && a !== (a = /*selectedCurrencyTo*/
5556
5575
  (((g = f[7]) == null ? void 0 : g.currency) || "") + "") && re(s, a);
5557
5576
  },
5558
- i: P,
5559
- o: P,
5577
+ i: I,
5578
+ o: I,
5560
5579
  d(f) {
5561
5580
  f && (B(t), B(n), B(i), B(o), B(s));
5562
5581
  }
5563
5582
  };
5564
5583
  }
5565
- function as(e) {
5584
+ function ss(e) {
5566
5585
  let t, n;
5567
- return t = new Zt({}), {
5586
+ return t = new Jt({}), {
5568
5587
  c() {
5569
- gt(t.$$.fragment);
5588
+ bt(t.$$.fragment);
5570
5589
  },
5571
5590
  m(r, i) {
5572
- Je(t, r, i), n = !0;
5591
+ Ye(t, r, i), n = !0;
5573
5592
  },
5574
- p: P,
5593
+ p: I,
5575
5594
  i(r) {
5576
5595
  n || (G(t.$$.fragment, r), n = !0);
5577
5596
  },
@@ -5579,20 +5598,20 @@ function as(e) {
5579
5598
  X(t.$$.fragment, r), n = !1;
5580
5599
  },
5581
5600
  d(r) {
5582
- et(t, r);
5601
+ Je(t, r);
5583
5602
  }
5584
5603
  };
5585
5604
  }
5586
- function xr(e) {
5587
- let t, n, r, i, o, a, s, l, u, h, f = Ft(
5605
+ function wr(e) {
5606
+ let t, n, r, i, o, a, s, l, u, h, f = Gt(
5588
5607
  /*dropDownVaults*/
5589
5608
  e[20]
5590
5609
  ), c = [];
5591
5610
  for (let m = 0; m < f.length; m += 1)
5592
- c[m] = wr(vr(e, f, m));
5611
+ c[m] = Ar(_r(e, f, m));
5593
5612
  return {
5594
5613
  c() {
5595
- t = T("div"), n = T("button"), r = Fn("svg"), i = Fn("path"), a = D(), s = T("div");
5614
+ t = T("div"), n = T("button"), r = Vn("svg"), i = Vn("path"), a = R(), s = T("div");
5596
5615
  for (let m = 0; m < c.length; m += 1)
5597
5616
  c[m].c();
5598
5617
  v(i, "d", "M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z"), v(i, "fill", "currentColor"), v(r, "class", "vaultToggleIcon"), v(r, "width", "12"), v(r, "height", "7"), v(r, "viewBox", "0 0 12 7"), v(r, "fill", "currentColor"), v(r, "xmlns", "http://www.w3.org/2000/svg"), v(n, "type", "button"), v(n, "class", o = "vaultToggleButton " + /*isVaultDropDownToggled*/
@@ -5602,7 +5621,7 @@ function xr(e) {
5602
5621
  e[20].length > 0 ? "expanded" : "")), v(t, "class", "vaultsContainer");
5603
5622
  },
5604
5623
  m(m, _) {
5605
- H(m, t, _), x(t, n), x(n, r), x(r, i), x(t, a), x(t, s);
5624
+ P(m, t, _), x(t, n), x(n, r), x(r, i), x(t, a), x(t, s);
5606
5625
  for (let g = 0; g < c.length; g += 1)
5607
5626
  c[g] && c[g].m(s, null);
5608
5627
  u || (h = ne(
@@ -5618,14 +5637,14 @@ function xr(e) {
5618
5637
  (m[16] && /*dropDownVaults*/
5619
5638
  m[20].length > 0 ? "active" : "")) && v(n, "class", o), _[0] & /*dropDownVaults, currencydecimals*/
5620
5639
  1048608) {
5621
- f = Ft(
5640
+ f = Gt(
5622
5641
  /*dropDownVaults*/
5623
5642
  m[20]
5624
5643
  );
5625
5644
  let g;
5626
5645
  for (g = 0; g < f.length; g += 1) {
5627
- const w = vr(m, f, g);
5628
- c[g] ? c[g].p(w, _) : (c[g] = wr(w), c[g].c(), c[g].m(s, null));
5646
+ const w = _r(m, f, g);
5647
+ c[g] ? c[g].p(w, _) : (c[g] = Ar(w), c[g].c(), c[g].m(s, null));
5629
5648
  }
5630
5649
  for (; g < c.length; g += 1)
5631
5650
  c[g].d(1);
@@ -5637,16 +5656,16 @@ function xr(e) {
5637
5656
  m[20].length > 0 ? "expanded" : "")) && v(s, "class", l);
5638
5657
  },
5639
5658
  d(m) {
5640
- m && B(t), Cr(c, m), u = !1, h();
5659
+ m && B(t), Sr(c, m), u = !1, h();
5641
5660
  }
5642
5661
  };
5643
5662
  }
5644
- function wr(e) {
5663
+ function Ar(e) {
5645
5664
  var h, f, c, m, _;
5646
5665
  let t, n, r = (
5647
5666
  /*vault*/
5648
5667
  ((h = e[65]) == null ? void 0 : h.currency) + ""
5649
- ), i, o, a, s = Ne(
5668
+ ), i, o, a, s = Re(
5650
5669
  /*vault*/
5651
5670
  (f = e[65]) == null ? void 0 : f.amount,
5652
5671
  /*vault*/
@@ -5655,7 +5674,7 @@ function wr(e) {
5655
5674
  minimumFractionDigits: 0,
5656
5675
  maximumFractionDigits: (
5657
5676
  /*vault*/
5658
- (((m = e[65]) == null ? void 0 : m.precision) > Ee ? Ee : (
5677
+ (((m = e[65]) == null ? void 0 : m.precision) > xe ? xe : (
5659
5678
  /*vault*/
5660
5679
  (_ = e[65]) == null ? void 0 : _.precision
5661
5680
  )) || Number(
@@ -5668,17 +5687,17 @@ function wr(e) {
5668
5687
  ) + "", l, u;
5669
5688
  return {
5670
5689
  c() {
5671
- t = T("div"), n = T("p"), i = z(r), o = D(), a = T("p"), l = z(s), u = D(), v(t, "class", "vaultItem");
5690
+ t = T("div"), n = T("p"), i = z(r), o = R(), a = T("p"), l = z(s), u = R(), v(t, "class", "vaultItem");
5672
5691
  },
5673
5692
  m(g, w) {
5674
- H(g, t, w), x(t, n), x(n, i), x(t, o), x(t, a), x(a, l), x(t, u);
5693
+ P(g, t, w), x(t, n), x(n, i), x(t, o), x(t, a), x(a, l), x(t, u);
5675
5694
  },
5676
5695
  p(g, w) {
5677
- var O, E, b, C, M;
5696
+ var N, E, b, C, D;
5678
5697
  w[0] & /*dropDownVaults*/
5679
5698
  1048576 && r !== (r = /*vault*/
5680
- ((O = g[65]) == null ? void 0 : O.currency) + "") && re(i, r), w[0] & /*dropDownVaults, currencydecimals*/
5681
- 1048608 && s !== (s = Ne(
5699
+ ((N = g[65]) == null ? void 0 : N.currency) + "") && re(i, r), w[0] & /*dropDownVaults, currencydecimals*/
5700
+ 1048608 && s !== (s = Re(
5682
5701
  /*vault*/
5683
5702
  (E = g[65]) == null ? void 0 : E.amount,
5684
5703
  /*vault*/
@@ -5687,9 +5706,9 @@ function wr(e) {
5687
5706
  minimumFractionDigits: 0,
5688
5707
  maximumFractionDigits: (
5689
5708
  /*vault*/
5690
- (((C = g[65]) == null ? void 0 : C.precision) > Ee ? Ee : (
5709
+ (((C = g[65]) == null ? void 0 : C.precision) > xe ? xe : (
5691
5710
  /*vault*/
5692
- (M = g[65]) == null ? void 0 : M.precision
5711
+ (D = g[65]) == null ? void 0 : D.precision
5693
5712
  )) || Number(
5694
5713
  /*currencydecimals*/
5695
5714
  g[5]
@@ -5704,7 +5723,7 @@ function wr(e) {
5704
5723
  }
5705
5724
  };
5706
5725
  }
5707
- function ss(e) {
5726
+ function ls(e) {
5708
5727
  var r, i, o, a;
5709
5728
  let t = `${/*currentFee*/
5710
5729
  ((i = (r = e[12]) == null ? void 0 : r.fees[0]) == null ? void 0 : i.amount) || 0} ${/*currentFee*/
@@ -5714,7 +5733,7 @@ function ss(e) {
5714
5733
  n = z(t);
5715
5734
  },
5716
5735
  m(s, l) {
5717
- H(s, n, l);
5736
+ P(s, n, l);
5718
5737
  },
5719
5738
  p(s, l) {
5720
5739
  var u, h, f, c;
@@ -5728,37 +5747,37 @@ function ss(e) {
5728
5747
  }
5729
5748
  };
5730
5749
  }
5731
- function ls(e) {
5732
- let t = k("feesUnavailable") + "", n;
5750
+ function us(e) {
5751
+ let t = M("feesUnavailable") + "", n;
5733
5752
  return {
5734
5753
  c() {
5735
5754
  n = z(t);
5736
5755
  },
5737
5756
  m(r, i) {
5738
- H(r, n, i);
5757
+ P(r, n, i);
5739
5758
  },
5740
- p: P,
5759
+ p: I,
5741
5760
  d(r) {
5742
5761
  r && B(n);
5743
5762
  }
5744
5763
  };
5745
5764
  }
5746
- function us(e) {
5765
+ function cs(e) {
5747
5766
  var A;
5748
- let t, n, r, i, o, a, s, l, u, h, f, c, m, _, g, w, O, E, b, C, M, K, $, ue, F, Te, me, ie, ge, be, q, Z, Ce, Ve, ye, oe, _t, Ge, Et, ce, $e = k(
5767
+ let t, n, r, i, o, a, s, l, u, h, f, c, m, _, g, w, N, E, b, C, D, K, $, ue, k, Te, ge, ie, be, ye, q, Z, Ce, Ve, ve, oe, xt, Ge, wt, ce, $e = M(
5749
5768
  /*fetchResponse*/
5750
5769
  ((A = e[13]) == null ? void 0 : A.message) || ""
5751
- ) + "", lt, fe, he, Se, ee, xt = k("exchange") + "", je, We, W, ut, De, Q = (
5770
+ ) + "", st, fe, he, Se, ee, At = M("exchange") + "", je, We, W, lt, De, Q = (
5752
5771
  /*showclosebutton*/
5753
- e[3] === le.true && _r(e)
5772
+ e[3] === le.true && Er(e)
5754
5773
  ), j = (
5755
5774
  /*showtotalbalance*/
5756
- e[2] === le.true && Er(e)
5775
+ e[2] === le.true && xr(e)
5757
5776
  );
5758
- function wt(d) {
5777
+ function Tt(d) {
5759
5778
  e[42](d);
5760
5779
  }
5761
- let Kt = {
5780
+ let en = {
5762
5781
  id: "senderSelect",
5763
5782
  withSymbol: (
5764
5783
  /*showcurrencysymbol*/
@@ -5777,19 +5796,19 @@ function us(e) {
5777
5796
  )
5778
5797
  };
5779
5798
  /*selectedCurrencyFrom*/
5780
- e[6] !== void 0 && (Kt.selected = /*selectedCurrencyFrom*/
5781
- e[6]), g = new Bn({ props: Kt }), Ye.push(() => Vn(g, "selected", wt));
5782
- const ct = [es, Ja], pe = [];
5783
- function At(d, y) {
5799
+ e[6] !== void 0 && (en.selected = /*selectedCurrencyFrom*/
5800
+ e[6]), g = new On({ props: en }), Qe.push(() => $n(g, "selected", Tt));
5801
+ const ut = [ts, es], pe = [];
5802
+ function Ct(d, y) {
5784
5803
  return !/*isBalanceFetched*/
5785
5804
  d[17] || !/*isCurrenciesFetched*/
5786
5805
  d[18] ? 0 : 1;
5787
5806
  }
5788
- E = At(e), b = pe[E] = ct[E](e);
5789
- function qt(d) {
5807
+ E = Ct(e), b = pe[E] = ut[E](e);
5808
+ function tn(d) {
5790
5809
  e[44](d);
5791
5810
  }
5792
- let Tt = {
5811
+ let St = {
5793
5812
  id: "destinationSelect",
5794
5813
  withSymbol: (
5795
5814
  /*showcurrencysymbol*/
@@ -5810,37 +5829,37 @@ function us(e) {
5810
5829
  )
5811
5830
  };
5812
5831
  /*selectedCurrencyTo*/
5813
- e[7] !== void 0 && (Tt.selected = /*selectedCurrencyTo*/
5814
- e[7]), ie = new Bn({ props: Tt }), Ye.push(() => Vn(ie, "selected", qt));
5815
- const ht = [is, rs], de = [];
5816
- function Ct(d, y) {
5832
+ e[7] !== void 0 && (St.selected = /*selectedCurrencyTo*/
5833
+ e[7]), ie = new On({ props: St }), Qe.push(() => $n(ie, "selected", tn));
5834
+ const ct = [os, is], de = [];
5835
+ function Bt(d, y) {
5817
5836
  return !/*isBalanceFetched*/
5818
5837
  d[17] || !/*isCurrenciesFetched*/
5819
5838
  d[18] ? 0 : 1;
5820
5839
  }
5821
- q = Ct(e), Z = de[q] = ht[q](e);
5840
+ q = Bt(e), Z = de[q] = ct[q](e);
5822
5841
  let Y = (
5823
5842
  /*showvaults*/
5824
- e[1] === le.true && xr(e)
5843
+ e[1] === le.true && wr(e)
5825
5844
  );
5826
- function St(d, y) {
5827
- var L;
5845
+ function Pt(d, y) {
5846
+ var O;
5828
5847
  return (
5829
5848
  /*fetchResponse*/
5830
- ((L = d[13]) == null ? void 0 : L.source) === J.CheckWalletExchangeError ? ls : ss
5849
+ ((O = d[13]) == null ? void 0 : O.source) === J.CheckWalletExchangeError ? us : ls
5831
5850
  );
5832
5851
  }
5833
- let Xe = St(e), p = Xe(e);
5852
+ let Xe = Pt(e), p = Xe(e);
5834
5853
  return {
5835
5854
  c() {
5836
- var d, y, L;
5837
- t = T("div"), Q && Q.c(), n = D(), r = T("div"), i = T("h1"), i.textContent = `${k("vaultExchange")}`, o = D(), j && j.c(), a = D(), s = T("div"), l = T("div"), u = T("p"), u.textContent = `${k("exchangeFrom")}`, h = D(), f = T("div"), c = T("input"), _ = D(), gt(g.$$.fragment), O = D(), b.c(), C = D(), M = T("div"), K = T("p"), K.textContent = `${k("exchangeTo")}`, $ = D(), ue = T("div"), F = T("input"), me = D(), gt(ie.$$.fragment), be = D(), Z.c(), Ce = D(), Y && Y.c(), Ve = D(), ye = T("div"), oe = T("span"), oe.textContent = `${k("feesIncluded")}`, _t = D(), Ge = T("span"), p.c(), Et = D(), ce = T("div"), lt = D(), fe = T("div"), he = T("button"), he.textContent = `${k("reset")}`, Se = D(), ee = T("button"), je = z(xt), v(i, "class", "headerTitle"), v(r, "class", "headerContainer"), v(u, "class", "exchangeHeader"), v(c, "id", "senderInput"), c.disabled = m = !/*session*/
5855
+ var d, y, O;
5856
+ t = T("div"), Q && Q.c(), n = R(), r = T("div"), i = T("h1"), i.textContent = `${M("vaultExchange")}`, o = R(), j && j.c(), a = R(), s = T("div"), l = T("div"), u = T("p"), u.textContent = `${M("exchangeFrom")}`, h = R(), f = T("div"), c = T("input"), _ = R(), bt(g.$$.fragment), N = R(), b.c(), C = R(), D = T("div"), K = T("p"), K.textContent = `${M("exchangeTo")}`, $ = R(), ue = T("div"), k = T("input"), ge = R(), bt(ie.$$.fragment), ye = R(), Z.c(), Ce = R(), Y && Y.c(), Ve = R(), ve = T("div"), oe = T("span"), oe.textContent = `${M("feesIncluded")}`, xt = R(), Ge = T("span"), p.c(), wt = R(), ce = T("div"), st = R(), fe = T("div"), he = T("button"), he.textContent = `${M("reset")}`, Se = R(), ee = T("button"), je = z(At), v(i, "class", "headerTitle"), v(r, "class", "headerContainer"), v(u, "class", "exchangeHeader"), v(c, "id", "senderInput"), c.disabled = m = !/*session*/
5838
5857
  e[0] || !/*isBalanceFetched*/
5839
5858
  e[17] || !/*isCurrenciesFetched*/
5840
- e[18], v(c, "placeholder", k("debitPlaceHolder")), v(c, "class", "exchangeInput"), v(c, "type", "number"), v(c, "aria-label", "Enter exchange amount"), v(c, "inputmode", "decimal"), v(c, "step", "0.000000000000001"), v(c, "min", "0"), v(f, "class", "flexingContainerRow"), v(l, "class", "containerExchangeFrom exchangeContainer"), v(K, "class", "exchangeHeader"), v(F, "id", "destinationInput"), F.disabled = Te = !/*session*/
5859
+ e[18], v(c, "placeholder", M("debitPlaceHolder")), v(c, "class", "exchangeInput"), v(c, "type", "number"), v(c, "aria-label", "Enter exchange amount"), v(c, "inputmode", "decimal"), v(c, "step", "0.000000000000001"), v(c, "min", "0"), v(f, "class", "flexingContainerRow"), v(l, "class", "containerExchangeFrom exchangeContainer"), v(K, "class", "exchangeHeader"), v(k, "id", "destinationInput"), k.disabled = Te = !/*session*/
5841
5860
  e[0] || !/*isBalanceFetched*/
5842
5861
  e[17] || !/*isCurrenciesFetched*/
5843
- e[18], v(F, "placeholder", k("creditPlaceHolder")), v(F, "class", "exchangeInput"), v(F, "type", "number"), F.readOnly = !0, v(F, "min", "0"), v(ue, "class", "flexingContainerRow"), v(M, "class", "containerExchangeTo exchangeContainer"), v(s, "class", "exchangesContainer"), v(oe, "class", "feesLabel"), v(ye, "class", "feesContainer"), v(ce, "class", "notificationsContainer"), se(
5862
+ e[18], v(k, "placeholder", M("creditPlaceHolder")), v(k, "class", "exchangeInput"), v(k, "type", "number"), k.readOnly = !0, v(k, "min", "0"), v(ue, "class", "flexingContainerRow"), v(D, "class", "containerExchangeTo exchangeContainer"), v(s, "class", "exchangesContainer"), v(oe, "class", "feesLabel"), v(ve, "class", "feesContainer"), v(ce, "class", "notificationsContainer"), se(
5844
5863
  ce,
5845
5864
  "error",
5846
5865
  /*fetchResponse*/
@@ -5854,7 +5873,7 @@ function us(e) {
5854
5873
  e[15] || /*isExchangePending*/
5855
5874
  e[19] || /*inputExchangeFrom*/
5856
5875
  e[9] === 0 && !/*selectedCurrencyFrom*/
5857
- ((L = e[6]) != null && L.amount), se(
5876
+ ((O = e[6]) != null && O.amount), se(
5858
5877
  ee,
5859
5878
  "disabled",
5860
5879
  /*isExchangeDisabled*/
@@ -5868,15 +5887,15 @@ function us(e) {
5868
5887
  ), v(fe, "class", "actionsContainer"), v(t, "class", "playerAccountVault");
5869
5888
  },
5870
5889
  m(d, y) {
5871
- H(d, t, y), Q && Q.m(t, null), x(t, n), x(t, r), x(r, i), x(r, o), j && j.m(r, null), x(t, a), x(t, s), x(s, l), x(l, u), x(l, h), x(l, f), x(f, c), Ht(
5890
+ P(d, t, y), Q && Q.m(t, null), x(t, n), x(t, r), x(r, i), x(r, o), j && j.m(r, null), x(t, a), x(t, s), x(s, l), x(l, u), x(l, h), x(l, f), x(f, c), It(
5872
5891
  c,
5873
5892
  /*inputExchangeFrom*/
5874
5893
  e[9]
5875
- ), x(f, _), Je(g, f, null), x(l, O), pe[E].m(l, null), x(s, C), x(s, M), x(M, K), x(M, $), x(M, ue), x(ue, F), Ht(
5876
- F,
5894
+ ), x(f, _), Ye(g, f, null), x(l, N), pe[E].m(l, null), x(s, C), x(s, D), x(D, K), x(D, $), x(D, ue), x(ue, k), It(
5895
+ k,
5877
5896
  /*inputExchangeTo*/
5878
5897
  e[10]
5879
- ), x(ue, me), Je(ie, ue, null), x(M, be), de[q].m(M, null), x(t, Ce), Y && Y.m(t, null), x(t, Ve), x(t, ye), x(ye, oe), x(ye, _t), x(ye, Ge), p.m(Ge, null), x(t, Et), x(t, ce), ce.innerHTML = $e, x(t, lt), x(t, fe), x(fe, he), x(fe, Se), x(fe, ee), x(ee, je), e[45](t), W = !0, ut || (De = [
5898
+ ), x(ue, ge), Ye(ie, ue, null), x(D, ye), de[q].m(D, null), x(t, Ce), Y && Y.m(t, null), x(t, Ve), x(t, ve), x(ve, oe), x(ve, xt), x(ve, Ge), p.m(Ge, null), x(t, wt), x(t, ce), ce.innerHTML = $e, x(t, st), x(t, fe), x(fe, he), x(fe, Se), x(fe, ee), x(ee, je), e[45](t), W = !0, lt || (De = [
5880
5899
  ne(
5881
5900
  c,
5882
5901
  "input",
@@ -5902,7 +5921,7 @@ function us(e) {
5902
5921
  e[29]
5903
5922
  ),
5904
5923
  ne(
5905
- F,
5924
+ k,
5906
5925
  "input",
5907
5926
  /*input1_input_handler*/
5908
5927
  e[43]
@@ -5919,72 +5938,72 @@ function us(e) {
5919
5938
  /*handleExchange*/
5920
5939
  e[30]
5921
5940
  )
5922
- ], ut = !0);
5941
+ ], lt = !0);
5923
5942
  },
5924
5943
  p(d, y) {
5925
- var ft, S, He, Ie;
5944
+ var ht, S, Pe, He;
5926
5945
  /*showclosebutton*/
5927
- d[3] === le.true ? Q ? Q.p(d, y) : (Q = _r(d), Q.c(), Q.m(t, n)) : Q && (Q.d(1), Q = null), /*showtotalbalance*/
5946
+ d[3] === le.true ? Q ? Q.p(d, y) : (Q = Er(d), Q.c(), Q.m(t, n)) : Q && (Q.d(1), Q = null), /*showtotalbalance*/
5928
5947
  d[2] === le.true ? j ? (j.p(d, y), y[0] & /*showtotalbalance*/
5929
- 4 && G(j, 1)) : (j = Er(d), j.c(), G(j, 1), j.m(r, null)) : j && (ke(), X(j, 1, 1, () => {
5948
+ 4 && G(j, 1)) : (j = xr(d), j.c(), G(j, 1), j.m(r, null)) : j && (ke(), X(j, 1, 1, () => {
5930
5949
  j = null;
5931
5950
  }), Fe()), (!W || y[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
5932
5951
  393217 && m !== (m = !/*session*/
5933
5952
  d[0] || !/*isBalanceFetched*/
5934
5953
  d[17] || !/*isCurrenciesFetched*/
5935
5954
  d[18])) && (c.disabled = m), y[0] & /*inputExchangeFrom*/
5936
- 512 && kt(c.value) !== /*inputExchangeFrom*/
5937
- d[9] && Ht(
5955
+ 512 && Vt(c.value) !== /*inputExchangeFrom*/
5956
+ d[9] && It(
5938
5957
  c,
5939
5958
  /*inputExchangeFrom*/
5940
5959
  d[9]
5941
5960
  );
5942
- const L = {};
5961
+ const O = {};
5943
5962
  y[0] & /*showcurrencysymbol*/
5944
- 16 && (L.withSymbol = /*showcurrencysymbol*/
5963
+ 16 && (O.withSymbol = /*showcurrencysymbol*/
5945
5964
  d[4]), y[0] & /*isBalanceFetched, isCurrenciesFetched*/
5946
- 393216 && (L.disabled = !/*isBalanceFetched*/
5965
+ 393216 && (O.disabled = !/*isBalanceFetched*/
5947
5966
  d[17] || !/*isCurrenciesFetched*/
5948
5967
  d[18]), y[0] & /*optionsFrom*/
5949
- 2097152 && (L.options = /*optionsFrom*/
5968
+ 2097152 && (O.options = /*optionsFrom*/
5950
5969
  d[21]), !w && y[0] & /*selectedCurrencyFrom*/
5951
- 64 && (w = !0, L.selected = /*selectedCurrencyFrom*/
5952
- d[6], Un(() => w = !1)), g.$set(L);
5970
+ 64 && (w = !0, O.selected = /*selectedCurrencyFrom*/
5971
+ d[6], Gn(() => w = !1)), g.$set(O);
5953
5972
  let Be = E;
5954
- E = At(d), E === Be ? pe[E].p(d, y) : (ke(), X(pe[Be], 1, 1, () => {
5973
+ E = Ct(d), E === Be ? pe[E].p(d, y) : (ke(), X(pe[Be], 1, 1, () => {
5955
5974
  pe[Be] = null;
5956
- }), Fe(), b = pe[E], b ? b.p(d, y) : (b = pe[E] = ct[E](d), b.c()), G(b, 1), b.m(l, null)), (!W || y[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
5975
+ }), Fe(), b = pe[E], b ? b.p(d, y) : (b = pe[E] = ut[E](d), b.c()), G(b, 1), b.m(l, null)), (!W || y[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
5957
5976
  393217 && Te !== (Te = !/*session*/
5958
5977
  d[0] || !/*isBalanceFetched*/
5959
5978
  d[17] || !/*isCurrenciesFetched*/
5960
- d[18])) && (F.disabled = Te), y[0] & /*inputExchangeTo*/
5961
- 1024 && kt(F.value) !== /*inputExchangeTo*/
5962
- d[10] && Ht(
5963
- F,
5979
+ d[18])) && (k.disabled = Te), y[0] & /*inputExchangeTo*/
5980
+ 1024 && Vt(k.value) !== /*inputExchangeTo*/
5981
+ d[10] && It(
5982
+ k,
5964
5983
  /*inputExchangeTo*/
5965
5984
  d[10]
5966
5985
  );
5967
- const ve = {};
5986
+ const _e = {};
5968
5987
  y[0] & /*showcurrencysymbol*/
5969
- 16 && (ve.withSymbol = /*showcurrencysymbol*/
5988
+ 16 && (_e.withSymbol = /*showcurrencysymbol*/
5970
5989
  d[4]), y[0] & /*session, validationError, isBalanceFetched, isCurrenciesFetched*/
5971
- 409601 && (ve.disabled = !/*session*/
5990
+ 409601 && (_e.disabled = !/*session*/
5972
5991
  d[0] || !!/*validationError*/
5973
5992
  d[14] || !/*isBalanceFetched*/
5974
5993
  d[17] || !/*isCurrenciesFetched*/
5975
5994
  d[18]), y[0] & /*optionsTo*/
5976
- 4194304 && (ve.options = /*optionsTo*/
5977
- d[22]), !ge && y[0] & /*selectedCurrencyTo*/
5978
- 128 && (ge = !0, ve.selected = /*selectedCurrencyTo*/
5979
- d[7], Un(() => ge = !1)), ie.$set(ve);
5980
- let _e = q;
5981
- q = Ct(d), q === _e ? de[q].p(d, y) : (ke(), X(de[_e], 1, 1, () => {
5982
- de[_e] = null;
5983
- }), Fe(), Z = de[q], Z ? Z.p(d, y) : (Z = de[q] = ht[q](d), Z.c()), G(Z, 1), Z.m(M, null)), /*showvaults*/
5984
- d[1] === le.true ? Y ? Y.p(d, y) : (Y = xr(d), Y.c(), Y.m(t, Ve)) : Y && (Y.d(1), Y = null), Xe === (Xe = St(d)) && p ? p.p(d, y) : (p.d(1), p = Xe(d), p && (p.c(), p.m(Ge, null))), (!W || y[0] & /*fetchResponse*/
5985
- 8192) && $e !== ($e = k(
5995
+ 4194304 && (_e.options = /*optionsTo*/
5996
+ d[22]), !be && y[0] & /*selectedCurrencyTo*/
5997
+ 128 && (be = !0, _e.selected = /*selectedCurrencyTo*/
5998
+ d[7], Gn(() => be = !1)), ie.$set(_e);
5999
+ let Ee = q;
6000
+ q = Bt(d), q === Ee ? de[q].p(d, y) : (ke(), X(de[Ee], 1, 1, () => {
6001
+ de[Ee] = null;
6002
+ }), Fe(), Z = de[q], Z ? Z.p(d, y) : (Z = de[q] = ct[q](d), Z.c()), G(Z, 1), Z.m(D, null)), /*showvaults*/
6003
+ d[1] === le.true ? Y ? Y.p(d, y) : (Y = wr(d), Y.c(), Y.m(t, Ve)) : Y && (Y.d(1), Y = null), Xe === (Xe = Pt(d)) && p ? p.p(d, y) : (p.d(1), p = Xe(d), p && (p.c(), p.m(Ge, null))), (!W || y[0] & /*fetchResponse*/
6004
+ 8192) && $e !== ($e = M(
5986
6005
  /*fetchResponse*/
5987
- ((ft = d[13]) == null ? void 0 : ft.message) || ""
6006
+ ((ht = d[13]) == null ? void 0 : ht.message) || ""
5988
6007
  ) + "") && (ce.innerHTML = $e), (!W || y[0] & /*fetchResponse*/
5989
6008
  8192) && se(
5990
6009
  ce,
@@ -5996,13 +6015,13 @@ function us(e) {
5996
6015
  ce,
5997
6016
  "success",
5998
6017
  /*fetchResponse*/
5999
- ((He = d[13]) == null ? void 0 : He.type) === "success"
6018
+ ((Pe = d[13]) == null ? void 0 : Pe.type) === "success"
6000
6019
  ), (!W || y[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
6001
6020
  557632 && We !== (We = /*isExchangeDisabled*/
6002
6021
  d[15] || /*isExchangePending*/
6003
6022
  d[19] || /*inputExchangeFrom*/
6004
6023
  d[9] === 0 && !/*selectedCurrencyFrom*/
6005
- ((Ie = d[6]) != null && Ie.amount))) && (ee.disabled = We), (!W || y[0] & /*isExchangeDisabled, isExchangePending*/
6024
+ ((He = d[6]) != null && He.amount))) && (ee.disabled = We), (!W || y[0] & /*isExchangeDisabled, isExchangePending*/
6006
6025
  557056) && se(
6007
6026
  ee,
6008
6027
  "disabled",
@@ -6024,26 +6043,26 @@ function us(e) {
6024
6043
  X(j), X(g.$$.fragment, d), X(b), X(ie.$$.fragment, d), X(Z), W = !1;
6025
6044
  },
6026
6045
  d(d) {
6027
- d && B(t), Q && Q.d(), j && j.d(), et(g), pe[E].d(), et(ie), de[q].d(), Y && Y.d(), p.d(), e[45](null), ut = !1, we(De);
6046
+ d && B(t), Q && Q.d(), j && j.d(), Je(g), pe[E].d(), Je(ie), de[q].d(), Y && Y.d(), p.d(), e[45](null), lt = !1, Ae(De);
6028
6047
  }
6029
6048
  };
6030
6049
  }
6031
- function cs(e, t, n) {
6032
- let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: o = "" } = t, { lang: a = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, { playercurrency: h = "" } = t, { showvaults: f = le.true } = t, { showtotalbalance: c = le.true } = t, { showclosebutton: m = le.true } = t, { showcurrencysymbol: _ = le.true } = t, { currencyposition: g = "" } = t, { currencydecimals: w = "2" } = t, { local: O = "en-US" } = t, E = null, b = null, C = 0, M = 0, K = 0, $ = null, ue = null, F = null, Te = "", me = !0, ie = !1, ge = !1, be = !1, q = !1, Z = [], Ce = [], Ve = [], ye = [], oe;
6033
- ya({ withLocale: "en", translations: {} }), Object.keys(nr).forEach((p) => {
6034
- tr(p, nr[p]);
6050
+ function hs(e, t, n) {
6051
+ let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: o = "" } = t, { lang: a = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, { playercurrency: h = "" } = t, { showvaults: f = le.true } = t, { showtotalbalance: c = le.true } = t, { showclosebutton: m = le.true } = t, { showcurrencysymbol: _ = le.true } = t, { currencyposition: g = "" } = t, { currencydecimals: w = "2" } = t, { local: N = "en-US" } = t, E = null, b = null, C = 0, D = 0, K = 0, $ = null, ue = null, k = null, Te = "", ge = !0, ie = !1, be = !1, ye = !1, q = !1, Z = [], Ce = [], Ve = [], ve = [], oe;
6052
+ va({ withLocale: "en", translations: {} }), Object.keys(ir).forEach((p) => {
6053
+ rr(p, ir[p]);
6035
6054
  });
6036
- const _t = () => {
6037
- va(a);
6055
+ const xt = () => {
6056
+ _a(a);
6038
6057
  }, Ge = () => {
6039
6058
  fetch(u).then((p) => p.json()).then((p) => {
6040
6059
  Object.keys(p).forEach((A) => {
6041
- tr(A, p[A]);
6060
+ rr(A, p[A]);
6042
6061
  });
6043
6062
  }).catch((p) => {
6044
6063
  console.error("There was a problem with the translations request.", p);
6045
6064
  });
6046
- }, Et = () => {
6065
+ }, wt = () => {
6047
6066
  let p = document.createElement("style");
6048
6067
  p.innerHTML = s, oe.appendChild(p);
6049
6068
  }, ce = () => {
@@ -6059,56 +6078,56 @@ function cs(e, t, n) {
6059
6078
  }, $e = () => {
6060
6079
  Ce.length !== 0 && (n(16, ie = !ie), window.postMessage(
6061
6080
  {
6062
- type: ln.VaultDropdownToggled,
6081
+ type: pn.VaultDropdownToggled,
6063
6082
  state: ie
6064
6083
  },
6065
6084
  window.location.href
6066
6085
  ));
6067
- }, lt = () => {
6086
+ }, st = () => {
6068
6087
  window.postMessage(
6069
6088
  {
6070
- type: ln.VaultWidgetClosed
6089
+ type: pn.VaultWidgetClosed
6071
6090
  },
6072
6091
  window.location.href
6073
6092
  );
6074
6093
  }, fe = () => {
6075
- n(15, me = !0), Se(), ee(), xt(), je(), window.postMessage({ type: ln.VaultWidgetReset }, window.location.href);
6094
+ n(15, ge = !0), Se(), ee(), At(), je(), window.postMessage({ type: pn.VaultWidgetReset }, window.location.href);
6076
6095
  }, he = () => {
6077
- n(15, me = !0), n(10, K = 0);
6096
+ n(15, ge = !0), n(10, K = 0);
6078
6097
  }, Se = () => {
6079
6098
  n(12, ue = null);
6080
6099
  }, ee = () => {
6081
6100
  n(9, C = 0), n(10, K = 0);
6082
- }, xt = () => {
6101
+ }, At = () => {
6083
6102
  n(14, Te = "");
6084
6103
  }, je = () => {
6085
- n(13, F = null);
6104
+ n(13, k = null);
6086
6105
  }, We = (p) => {
6087
6106
  p && n(14, Te = p);
6088
6107
  }, W = ({ type: p, message: A, source: d = "" }) => {
6089
6108
  let y;
6090
- switch (n(13, F = { message: A, source: d, type: p }), p) {
6091
- case Le.error:
6092
- n(15, me = !0), window.postMessage({ type: d, data: { type: p, message: A } }, window.location.href);
6109
+ switch (n(13, k = { message: A, source: d, type: p }), p) {
6110
+ case Oe.error:
6111
+ n(15, ge = !0), window.postMessage({ type: d, data: { type: p, message: A } }, window.location.href);
6093
6112
  break;
6094
- case Le.success:
6095
- n(15, me = !0), window.postMessage({ type: d, data: { type: p, message: A } }, window.location.href), y && clearTimeout(y), y = setTimeout(
6113
+ case Oe.success:
6114
+ n(15, ge = !0), window.postMessage({ type: d, data: { type: p, message: A } }, window.location.href), y && clearTimeout(y), y = setTimeout(
6096
6115
  () => {
6097
6116
  je();
6098
6117
  },
6099
- ka
6118
+ Fa
6100
6119
  );
6101
6120
  break;
6102
6121
  }
6103
- }, ut = () => new Promise((p, A) => {
6104
- const d = F == null ? void 0 : F.message.includes(Fa.InvalidSession);
6105
- d && A(), isNaN(Number(C)) && (he(), Se(), A(k("invalidValue"))), C > (E == null ? void 0 : E.amount) && (he(), Se(), A(k("exceededValue"))), C === null && !d && (he(), Se(), A()), C === 0 && C === 0 && !d && (fe(), A()), (!E || !b) && !d && A(), xt(), p();
6106
- }), De = (p, A) => Bt(this, null, function* () {
6107
- var y, L;
6122
+ }, lt = () => new Promise((p, A) => {
6123
+ const d = k == null ? void 0 : k.message.includes(Ua.InvalidSession);
6124
+ d && A(), isNaN(Number(C)) && (he(), Se(), A(M("invalidValue"))), C > (E == null ? void 0 : E.amount) && (he(), Se(), A(M("exceededValue"))), C === null && !d && (he(), Se(), A()), C === 0 && C === 0 && !d && (fe(), A()), (!E || !b) && !d && A(), At(), p();
6125
+ }), De = (p, A) => Ht(this, null, function* () {
6126
+ var y, O;
6108
6127
  const d = yield p.json();
6109
- return (p == null ? void 0 : p.status) >= 200 && (p == null ? void 0 : p.status) < 400 ? d : (A === J.CheckWalletExchangeError && he(), !ge && A === J.BalanceError && (n(17, ge = !0), n(18, be = !0)), !be && A === J.CurrenciesError && n(18, be = !0), W({
6110
- type: Le.error,
6111
- message: k((y = d == null ? void 0 : d.thirdPartyResponse) == null ? void 0 : y.code) || k((L = d == null ? void 0 : d.thirdPartyResponse) == null ? void 0 : L.errorCode) || "generalError",
6128
+ return (p == null ? void 0 : p.status) >= 200 && (p == null ? void 0 : p.status) < 400 ? d : (A === J.CheckWalletExchangeError && he(), !be && A === J.BalanceError && (n(17, be = !0), n(18, ye = !0)), !ye && A === J.CurrenciesError && n(18, ye = !0), W({
6129
+ type: Oe.error,
6130
+ message: M((y = d == null ? void 0 : d.thirdPartyResponse) == null ? void 0 : y.code) || M((O = d == null ? void 0 : d.thirdPartyResponse) == null ? void 0 : O.errorCode) || "generalError",
6112
6131
  source: A
6113
6132
  }));
6114
6133
  }), Q = () => new Promise((p, A) => {
@@ -6120,34 +6139,34 @@ function cs(e, t, n) {
6120
6139
  "Content-Type": "application/json",
6121
6140
  Accept: "application/json"
6122
6141
  }
6123
- }).then((L) => De(L, J.CurrenciesError)).then((L) => {
6124
- p(L == null ? void 0 : L.currencies);
6125
- }).catch((L) => {
6126
- n(18, be = !0), console.error("There was an error on the allowed currencies request.", L), W({
6127
- type: Le.error,
6128
- message: k("generalError"),
6142
+ }).then((O) => De(O, J.CurrenciesError)).then((O) => {
6143
+ p(O == null ? void 0 : O.currencies);
6144
+ }).catch((O) => {
6145
+ n(18, ye = !0), console.error("There was an error on the allowed currencies request.", O), W({
6146
+ type: Oe.error,
6147
+ message: M("generalError"),
6129
6148
  source: J.CurrenciesError
6130
6149
  }), A();
6131
6150
  }).finally(() => {
6132
- n(18, be = !0);
6151
+ n(18, ye = !0);
6133
6152
  });
6134
6153
  }), j = ({ data: p, shouldUpdateSelectedCurrencies: A, allowed: d = [] }) => {
6135
- var ft;
6136
- const { items: y = [], totalAmount: L = {}, totalRealAmount: Be } = p || {};
6137
- n(11, $ = Object.entries(Be || L).map(([S = "", He = 0]) => ({ currency: S, amount: He }))[0]);
6138
- let ve = null;
6139
- const _e = new Map(d.map((S) => [S.code, S]));
6154
+ var ht;
6155
+ const { items: y = [], totalAmount: O = {}, totalRealAmount: Be } = p || {};
6156
+ n(11, $ = Object.entries(Be || O).map(([S = "", Pe = 0]) => ({ currency: S, amount: Pe }))[0]);
6157
+ let _e = null;
6158
+ const Ee = new Map(d.map((S) => [S.code, S]));
6140
6159
  for (const S of y)
6141
- if ((S == null ? void 0 : S.type) === pr.Real) {
6142
- const He = _e.get(S == null ? void 0 : S.currency);
6143
- if (He && He.code === (S == null ? void 0 : S.currency)) {
6144
- const Ie = Yt(Pe(Pe({}, S), He), {
6145
- symbol: ((ft = Na[S == null ? void 0 : S.currency]) == null ? void 0 : ft[0]) || (S == null ? void 0 : S.currency[0])
6160
+ if ((S == null ? void 0 : S.type) === dr.Real) {
6161
+ const Pe = Ee.get(S == null ? void 0 : S.currency);
6162
+ if (Pe && Pe.code === (S == null ? void 0 : S.currency)) {
6163
+ const He = rn(Ie(Ie({}, S), Pe), {
6164
+ symbol: ((ht = Da[S == null ? void 0 : S.currency]) == null ? void 0 : ht[0]) || (S == null ? void 0 : S.currency[0])
6146
6165
  });
6147
- n(40, Z = [...Z, Ie]), (S == null ? void 0 : S.currency) === ($ == null ? void 0 : $.currency) && n(11, $ = Pe(Pe({}, $), Ie)), (S == null ? void 0 : S.currency) !== ($ == null ? void 0 : $.currency) && (S == null ? void 0 : S.walletAccountType) === pr.Vault && n(20, Ce = [...Ce, Ie]), A && (S == null ? void 0 : S.amount) > 0 && n(6, E = $ != null && $.currency ? $ : ve), E && (E == null ? void 0 : E.currency) === (S == null ? void 0 : S.currency) && n(6, E = Ie), b && (b == null ? void 0 : b.currency) === (S == null ? void 0 : S.currency) && n(7, b = Ie);
6166
+ n(40, Z = [...Z, He]), (S == null ? void 0 : S.currency) === ($ == null ? void 0 : $.currency) && n(11, $ = Ie(Ie({}, $), He)), (S == null ? void 0 : S.currency) !== ($ == null ? void 0 : $.currency) && (S == null ? void 0 : S.walletAccountType) === dr.Vault && n(20, Ce = [...Ce, He]), A && (S == null ? void 0 : S.amount) > 0 && n(6, E = $ != null && $.currency ? $ : _e), E && (E == null ? void 0 : E.currency) === (S == null ? void 0 : S.currency) && n(6, E = He), b && (b == null ? void 0 : b.currency) === (S == null ? void 0 : S.currency) && n(7, b = He);
6148
6167
  }
6149
6168
  }
6150
- }, wt = (p = !0) => {
6169
+ }, Tt = (p = !0) => {
6151
6170
  const A = new URL(`${o}/v2/player/${i}/balance`);
6152
6171
  fetch(A, {
6153
6172
  method: "GET",
@@ -6157,24 +6176,24 @@ function cs(e, t, n) {
6157
6176
  Accept: "application/json"
6158
6177
  }
6159
6178
  }).then((y) => De(y, J.BalanceError)).then((y) => {
6160
- y && (Q().then((L) => {
6179
+ y && (Q().then((O) => {
6161
6180
  n(40, Z = []), n(20, Ce = []), j({
6162
6181
  data: y,
6163
6182
  shouldUpdateSelectedCurrencies: p,
6164
- allowed: L
6183
+ allowed: O
6165
6184
  });
6166
6185
  }), window.postMessage({ type: "playerBalanceInfo", balance: y }, window.location.href));
6167
6186
  }).catch((y) => {
6168
- n(17, ge = !0), console.error("There was an error with the player balance request.", y), W({
6169
- type: Le.error,
6170
- message: k("generalError"),
6187
+ n(17, be = !0), console.error("There was an error with the player balance request.", y), W({
6188
+ type: Oe.error,
6189
+ message: M("generalError"),
6171
6190
  source: J.BalanceError
6172
6191
  });
6173
6192
  }).finally(() => {
6174
- n(17, ge = !0);
6193
+ n(17, be = !0);
6175
6194
  });
6176
- }, ct = Da(() => {
6177
- ut().then(() => {
6195
+ }, ut = Ma(() => {
6196
+ lt().then(() => {
6178
6197
  const p = new URL(`${o}/v2/player/${i}/check/wallet-exchange`), A = {
6179
6198
  userId: i,
6180
6199
  amount: C,
@@ -6189,21 +6208,21 @@ function cs(e, t, n) {
6189
6208
  "Content-Type": "application/json",
6190
6209
  Accept: "application/json"
6191
6210
  },
6192
- body: hr(A)
6211
+ body: fr(A)
6193
6212
  };
6194
6213
  fetch(p, d).then((y) => De(y, J.CheckWalletExchangeError)).then((y) => {
6195
- var L, Be;
6214
+ var O, Be;
6196
6215
  if (y) {
6197
- if ((F == null ? void 0 : F.source) === J.CheckWalletExchangeError && je(), Array.isArray((L = y == null ? void 0 : y.fees) == null ? void 0 : L.fees) && n(12, ue = y.fees), Array.isArray(y == null ? void 0 : y.walletActions)) {
6198
- const ve = ((Be = y.walletActions.find((_e) => (_e == null ? void 0 : _e.directionName) === Ua.Credit)) == null ? void 0 : Be.amount) || 0;
6199
- n(10, K = Ma(ve));
6216
+ if ((k == null ? void 0 : k.source) === J.CheckWalletExchangeError && je(), Array.isArray((O = y == null ? void 0 : y.fees) == null ? void 0 : O.fees) && n(12, ue = y.fees), Array.isArray(y == null ? void 0 : y.walletActions)) {
6217
+ const _e = ((Be = y.walletActions.find((Ee) => (Ee == null ? void 0 : Ee.directionName) === Va.Credit)) == null ? void 0 : Be.amount) || 0;
6218
+ n(10, K = ka(_e));
6200
6219
  }
6201
- C > 0 && K > 0 && (E != null && E.currency) && (b != null && b.currency) && h && n(15, me = !1);
6220
+ C > 0 && K > 0 && (E != null && E.currency) && (b != null && b.currency) && h && n(15, ge = !1);
6202
6221
  }
6203
6222
  }).catch((y) => {
6204
6223
  W({
6205
- type: Le.error,
6206
- message: k("generalError"),
6224
+ type: Oe.error,
6225
+ message: M("generalError"),
6207
6226
  source: J.CheckWalletExchangeError
6208
6227
  }), console.error("There was a problem with the wallet exchange request.", y);
6209
6228
  });
@@ -6212,15 +6231,15 @@ function cs(e, t, n) {
6212
6231
  });
6213
6232
  }, 500), pe = (p) => {
6214
6233
  const A = p.target.value, [d, y] = A.split(".");
6215
- !y && A.length >= Ee && n(9, C = A.slice(0, Ee));
6216
- const L = Number((E == null ? void 0 : E.precision) || "2");
6217
- y && (E == null ? void 0 : E.type) === dr.Fiat && (y.length <= L ? (n(9, C = A), M = A) : n(9, C = M)), y && (E == null ? void 0 : E.type) === dr.CryptoCurrency && (L <= Ee && y.length <= L ? (n(9, C = A), M = A) : n(9, C = M), L > Ee && y.length <= Ee ? (n(9, C = A), M = A) : n(9, C = M)), ct();
6218
- }, At = (p) => {
6234
+ !y && A.length >= xe && n(9, C = A.slice(0, xe));
6235
+ const O = Number((E == null ? void 0 : E.precision) || "2");
6236
+ y && (E == null ? void 0 : E.type) === mr.Fiat && (y.length <= O ? (n(9, C = A), D = A) : n(9, C = D)), y && (E == null ? void 0 : E.type) === mr.CryptoCurrency && (O <= xe && y.length <= O ? (n(9, C = A), D = A) : n(9, C = D), O > xe && y.length <= xe ? (n(9, C = A), D = A) : n(9, C = D)), ut();
6237
+ }, Ct = (p) => {
6219
6238
  const A = p.data;
6220
6239
  [">", "<", ","].includes(A) && p.preventDefault(), A && !A.match(/[\d.]/) && p.preventDefault(), A === "." && p.target.value.includes(".") && p.preventDefault();
6221
- }, qt = () => {
6240
+ }, tn = () => {
6222
6241
  C === 0 && n(9, C = null);
6223
- }, Tt = () => {
6242
+ }, St = () => {
6224
6243
  const p = new URL(`${o}/v2/player/${i}/wallet-exchange`);
6225
6244
  n(19, q = !0);
6226
6245
  const A = {
@@ -6238,70 +6257,70 @@ function cs(e, t, n) {
6238
6257
  "Content-Type": "application/json",
6239
6258
  Accept: "application/json"
6240
6259
  },
6241
- body: hr(A)
6260
+ body: fr(A)
6242
6261
  };
6243
6262
  fetch(p, d).then((y) => De(y, J.WalletExchangeError)).then((y) => {
6244
6263
  y && (W({
6245
- type: Le.success,
6246
- message: k("exchangeSuccess"),
6264
+ type: Oe.success,
6265
+ message: M("exchangeSuccess"),
6247
6266
  source: "ExchangeSuccess"
6248
- }), wt(!1));
6267
+ }), Tt(!1));
6249
6268
  }).catch((y) => {
6250
6269
  W({
6251
- type: Le.error,
6252
- message: k("generalError"),
6270
+ type: Oe.error,
6271
+ message: M("generalError"),
6253
6272
  source: J.WalletExchangeError
6254
6273
  }), console.error("There was an error with the wallet exchange request.", y);
6255
6274
  }).finally(() => {
6256
6275
  n(19, q = !1), ee(), Se();
6257
6276
  });
6258
- }, ht = (p) => {
6277
+ }, ct = (p) => {
6259
6278
  const { data: { type: A } = {} } = p || {};
6260
6279
  switch (A) {
6261
- case fr.ResetVaultWidget:
6280
+ case pr.ResetVaultWidget:
6262
6281
  fe();
6263
6282
  break;
6264
- case fr.CloseVaultWidget:
6265
- lt();
6283
+ case pr.CloseVaultWidget:
6284
+ st();
6266
6285
  break;
6267
6286
  }
6268
6287
  };
6269
- Br(() => (Oa(O, _, g, w), window.addEventListener("message", ht), () => {
6270
- window.removeEventListener("message", ht);
6288
+ Pr(() => (Ra(N, _, g, w), window.addEventListener("message", ct), () => {
6289
+ window.removeEventListener("message", ct);
6271
6290
  }));
6272
6291
  function de() {
6273
- C = kt(this.value), n(9, C);
6292
+ C = Vt(this.value), n(9, C);
6274
6293
  }
6275
- function Ct(p) {
6294
+ function Bt(p) {
6276
6295
  E = p, n(6, E);
6277
6296
  }
6278
6297
  function Y() {
6279
- K = kt(this.value), n(10, K);
6298
+ K = Vt(this.value), n(10, K);
6280
6299
  }
6281
- function St(p) {
6300
+ function Pt(p) {
6282
6301
  b = p, n(7, b);
6283
6302
  }
6284
6303
  function Xe(p) {
6285
- Ye[p ? "unshift" : "push"](() => {
6304
+ Qe[p ? "unshift" : "push"](() => {
6286
6305
  oe = p, n(8, oe);
6287
6306
  });
6288
6307
  }
6289
6308
  return e.$$set = (p) => {
6290
- "session" in p && n(0, r = p.session), "userid" in p && n(31, i = p.userid), "endpoint" in p && n(32, o = p.endpoint), "lang" in p && n(33, a = p.lang), "clientstyling" in p && n(34, s = p.clientstyling), "clientstylingurl" in p && n(35, l = p.clientstylingurl), "translationurl" in p && n(36, u = p.translationurl), "playercurrency" in p && n(37, h = p.playercurrency), "showvaults" in p && n(1, f = p.showvaults), "showtotalbalance" in p && n(2, c = p.showtotalbalance), "showclosebutton" in p && n(3, m = p.showclosebutton), "showcurrencysymbol" in p && n(4, _ = p.showcurrencysymbol), "currencyposition" in p && n(38, g = p.currencyposition), "currencydecimals" in p && n(5, w = p.currencydecimals), "local" in p && n(39, O = p.local);
6309
+ "session" in p && n(0, r = p.session), "userid" in p && n(31, i = p.userid), "endpoint" in p && n(32, o = p.endpoint), "lang" in p && n(33, a = p.lang), "clientstyling" in p && n(34, s = p.clientstyling), "clientstylingurl" in p && n(35, l = p.clientstylingurl), "translationurl" in p && n(36, u = p.translationurl), "playercurrency" in p && n(37, h = p.playercurrency), "showvaults" in p && n(1, f = p.showvaults), "showtotalbalance" in p && n(2, c = p.showtotalbalance), "showclosebutton" in p && n(3, m = p.showclosebutton), "showcurrencysymbol" in p && n(4, _ = p.showcurrencysymbol), "currencyposition" in p && n(38, g = p.currencyposition), "currencydecimals" in p && n(5, w = p.currencydecimals), "local" in p && n(39, N = p.local);
6291
6310
  }, e.$$.update = () => {
6292
6311
  e.$$.dirty[1] & /*lang*/
6293
- 4 && a && _t(), e.$$.dirty[0] & /*customStylingContainer*/
6312
+ 4 && a && xt(), e.$$.dirty[0] & /*customStylingContainer*/
6294
6313
  256 | e.$$.dirty[1] & /*clientstyling*/
6295
- 8 && s && oe && Et(), e.$$.dirty[0] & /*customStylingContainer*/
6314
+ 8 && s && oe && wt(), e.$$.dirty[0] & /*customStylingContainer*/
6296
6315
  256 | e.$$.dirty[1] & /*clientstylingurl*/
6297
6316
  16 && l && oe && ce(), e.$$.dirty[1] & /*translationurl*/
6298
6317
  32 && u && Ge(), e.$$.dirty[0] & /*session*/
6299
6318
  1 | e.$$.dirty[1] & /*userid, endpoint, playercurrency*/
6300
- 67 && r && i && o && h && wt(), e.$$.dirty[0] & /*selectedCurrencyTo*/
6319
+ 67 && r && i && o && h && Tt(), e.$$.dirty[0] & /*selectedCurrencyTo*/
6301
6320
  128 | e.$$.dirty[1] & /*filteredBalances*/
6302
6321
  512 && n(21, Ve = Z.filter((p) => (p == null ? void 0 : p.amount) > 0 && (p == null ? void 0 : p.currency) !== (b == null ? void 0 : b.currency))), e.$$.dirty[0] & /*selectedCurrencyFrom*/
6303
6322
  64 | e.$$.dirty[1] & /*filteredBalances*/
6304
- 512 && n(22, ye = Z.filter((p) => (E == null ? void 0 : E.currency) !== (p == null ? void 0 : p.currency)));
6323
+ 512 && n(22, ve = Z.filter((p) => (E == null ? void 0 : E.currency) !== (p == null ? void 0 : p.currency)));
6305
6324
  }, [
6306
6325
  r,
6307
6326
  f,
@@ -6316,24 +6335,24 @@ function cs(e, t, n) {
6316
6335
  K,
6317
6336
  $,
6318
6337
  ue,
6319
- F,
6338
+ k,
6320
6339
  Te,
6321
- me,
6322
- ie,
6323
6340
  ge,
6341
+ ie,
6324
6342
  be,
6343
+ ye,
6325
6344
  q,
6326
6345
  Ce,
6327
6346
  Ve,
6328
- ye,
6347
+ ve,
6329
6348
  $e,
6330
- lt,
6349
+ st,
6331
6350
  fe,
6332
- ct,
6351
+ ut,
6333
6352
  pe,
6334
- At,
6335
- qt,
6336
- Tt,
6353
+ Ct,
6354
+ tn,
6355
+ St,
6337
6356
  i,
6338
6357
  o,
6339
6358
  a,
@@ -6342,23 +6361,23 @@ function cs(e, t, n) {
6342
6361
  u,
6343
6362
  h,
6344
6363
  g,
6345
- O,
6364
+ N,
6346
6365
  Z,
6347
6366
  de,
6348
- Ct,
6367
+ Bt,
6349
6368
  Y,
6350
- St,
6369
+ Pt,
6351
6370
  Xe
6352
6371
  ];
6353
6372
  }
6354
- class hs extends Ln {
6373
+ class fs extends Dn {
6355
6374
  constructor(t) {
6356
- super(), In(
6375
+ super(), Nn(
6357
6376
  this,
6358
6377
  t,
6378
+ hs,
6359
6379
  cs,
6360
- us,
6361
- Gt,
6380
+ Xt,
6362
6381
  {
6363
6382
  session: 0,
6364
6383
  userid: 31,
@@ -6376,7 +6395,7 @@ class hs extends Ln {
6376
6395
  currencydecimals: 5,
6377
6396
  local: 39
6378
6397
  },
6379
- Za,
6398
+ Ka,
6380
6399
  [-1, -1, -1]
6381
6400
  );
6382
6401
  }
@@ -6384,94 +6403,94 @@ class hs extends Ln {
6384
6403
  return this.$$.ctx[0];
6385
6404
  }
6386
6405
  set session(t) {
6387
- this.$$set({ session: t }), U();
6406
+ this.$$set({ session: t }), F();
6388
6407
  }
6389
6408
  get userid() {
6390
6409
  return this.$$.ctx[31];
6391
6410
  }
6392
6411
  set userid(t) {
6393
- this.$$set({ userid: t }), U();
6412
+ this.$$set({ userid: t }), F();
6394
6413
  }
6395
6414
  get endpoint() {
6396
6415
  return this.$$.ctx[32];
6397
6416
  }
6398
6417
  set endpoint(t) {
6399
- this.$$set({ endpoint: t }), U();
6418
+ this.$$set({ endpoint: t }), F();
6400
6419
  }
6401
6420
  get lang() {
6402
6421
  return this.$$.ctx[33];
6403
6422
  }
6404
6423
  set lang(t) {
6405
- this.$$set({ lang: t }), U();
6424
+ this.$$set({ lang: t }), F();
6406
6425
  }
6407
6426
  get clientstyling() {
6408
6427
  return this.$$.ctx[34];
6409
6428
  }
6410
6429
  set clientstyling(t) {
6411
- this.$$set({ clientstyling: t }), U();
6430
+ this.$$set({ clientstyling: t }), F();
6412
6431
  }
6413
6432
  get clientstylingurl() {
6414
6433
  return this.$$.ctx[35];
6415
6434
  }
6416
6435
  set clientstylingurl(t) {
6417
- this.$$set({ clientstylingurl: t }), U();
6436
+ this.$$set({ clientstylingurl: t }), F();
6418
6437
  }
6419
6438
  get translationurl() {
6420
6439
  return this.$$.ctx[36];
6421
6440
  }
6422
6441
  set translationurl(t) {
6423
- this.$$set({ translationurl: t }), U();
6442
+ this.$$set({ translationurl: t }), F();
6424
6443
  }
6425
6444
  get playercurrency() {
6426
6445
  return this.$$.ctx[37];
6427
6446
  }
6428
6447
  set playercurrency(t) {
6429
- this.$$set({ playercurrency: t }), U();
6448
+ this.$$set({ playercurrency: t }), F();
6430
6449
  }
6431
6450
  get showvaults() {
6432
6451
  return this.$$.ctx[1];
6433
6452
  }
6434
6453
  set showvaults(t) {
6435
- this.$$set({ showvaults: t }), U();
6454
+ this.$$set({ showvaults: t }), F();
6436
6455
  }
6437
6456
  get showtotalbalance() {
6438
6457
  return this.$$.ctx[2];
6439
6458
  }
6440
6459
  set showtotalbalance(t) {
6441
- this.$$set({ showtotalbalance: t }), U();
6460
+ this.$$set({ showtotalbalance: t }), F();
6442
6461
  }
6443
6462
  get showclosebutton() {
6444
6463
  return this.$$.ctx[3];
6445
6464
  }
6446
6465
  set showclosebutton(t) {
6447
- this.$$set({ showclosebutton: t }), U();
6466
+ this.$$set({ showclosebutton: t }), F();
6448
6467
  }
6449
6468
  get showcurrencysymbol() {
6450
6469
  return this.$$.ctx[4];
6451
6470
  }
6452
6471
  set showcurrencysymbol(t) {
6453
- this.$$set({ showcurrencysymbol: t }), U();
6472
+ this.$$set({ showcurrencysymbol: t }), F();
6454
6473
  }
6455
6474
  get currencyposition() {
6456
6475
  return this.$$.ctx[38];
6457
6476
  }
6458
6477
  set currencyposition(t) {
6459
- this.$$set({ currencyposition: t }), U();
6478
+ this.$$set({ currencyposition: t }), F();
6460
6479
  }
6461
6480
  get currencydecimals() {
6462
6481
  return this.$$.ctx[5];
6463
6482
  }
6464
6483
  set currencydecimals(t) {
6465
- this.$$set({ currencydecimals: t }), U();
6484
+ this.$$set({ currencydecimals: t }), F();
6466
6485
  }
6467
6486
  get local() {
6468
6487
  return this.$$.ctx[39];
6469
6488
  }
6470
6489
  set local(t) {
6471
- this.$$set({ local: t }), U();
6490
+ this.$$set({ local: t }), F();
6472
6491
  }
6473
6492
  }
6474
- Pn(hs, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, showvaults: {}, showtotalbalance: {}, showclosebutton: {}, showcurrencysymbol: {}, currencyposition: {}, currencydecimals: {}, local: {} }, [], [], !0);
6493
+ Rn(fs, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, showvaults: {}, showtotalbalance: {}, showclosebutton: {}, showcurrencysymbol: {}, currencyposition: {}, currencydecimals: {}, local: {} }, [], [], !0);
6475
6494
  export {
6476
- hs as default
6495
+ fs as default
6477
6496
  };