@everymatrix/player-account-vault 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- var Kn = Object.defineProperty, er = Object.defineProperties;
2
- var tr = Object.getOwnPropertyDescriptors;
3
- var Xt = Object.getOwnPropertySymbols;
4
- var nr = Object.prototype.hasOwnProperty, rr = Object.prototype.propertyIsEnumerable;
5
- var Et = (e, t, n) => t in e ? Kn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Wt = (e, t) => {
1
+ var tr = Object.defineProperty, nr = Object.defineProperties;
2
+ var rr = Object.getOwnPropertyDescriptors;
3
+ var Zt = Object.getOwnPropertySymbols;
4
+ var ir = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable;
5
+ var _t = (e, t, n) => t in e ? tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, qt = (e, t) => {
6
6
  for (var n in t || (t = {}))
7
- nr.call(t, n) && Et(e, n, t[n]);
8
- if (Xt)
9
- for (var n of Xt(t))
10
- rr.call(t, n) && Et(e, n, t[n]);
7
+ ir.call(t, n) && _t(e, n, t[n]);
8
+ if (Zt)
9
+ for (var n of Zt(t))
10
+ ar.call(t, n) && _t(e, n, t[n]);
11
11
  return e;
12
- }, Zt = (e, t) => er(e, tr(t));
13
- var ee = (e, t, n) => Et(e, typeof t != "symbol" ? t + "" : t, n);
14
- var _t = (e, t, n) => new Promise((r, i) => {
12
+ }, Jt = (e, t) => nr(e, rr(t));
13
+ var Y = (e, t, n) => (_t(e, typeof t != "symbol" ? t + "" : t, n), n);
14
+ var wt = (e, t, n) => new Promise((r, i) => {
15
15
  var a = (c) => {
16
16
  try {
17
17
  s(n.next(c));
@@ -27,50 +27,51 @@ var _t = (e, t, n) => new Promise((r, i) => {
27
27
  }, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(a, o);
28
28
  s((n = n.apply(e, t)).next());
29
29
  });
30
- function oe() {
30
+ function ie() {
31
31
  }
32
- function Tn(e) {
32
+ function An(e) {
33
33
  return e();
34
34
  }
35
- function qt() {
35
+ function Qt() {
36
36
  return /* @__PURE__ */ Object.create(null);
37
37
  }
38
38
  function we(e) {
39
- e.forEach(Tn);
39
+ e.forEach(An);
40
40
  }
41
- function $t(e) {
41
+ function kt(e) {
42
42
  return typeof e == "function";
43
43
  }
44
- function Hn(e, t) {
44
+ function Bn(e, t) {
45
45
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
46
46
  }
47
- function ir(e) {
47
+ function or(e) {
48
48
  return Object.keys(e).length === 0;
49
49
  }
50
- function An(e, ...t) {
50
+ function Sn(e, ...t) {
51
51
  if (e == null) {
52
52
  for (const r of t)
53
53
  r(void 0);
54
- return oe;
54
+ return ie;
55
55
  }
56
56
  const n = e.subscribe(...t);
57
57
  return n.unsubscribe ? () => n.unsubscribe() : n;
58
58
  }
59
- function ar(e, t, n) {
60
- e.$$.on_destroy.push(An(t, n));
59
+ function sr(e, t, n) {
60
+ e.$$.on_destroy.push(Sn(t, n));
61
61
  }
62
62
  function m(e, t) {
63
63
  e.appendChild(t);
64
64
  }
65
- function or(e, t, n) {
66
- const r = sr(e);
65
+ function lr(e, t, n) {
66
+ const r = ur(e);
67
67
  if (!r.getElementById(t)) {
68
- const i = E("style");
69
- i.id = t, i.textContent = n, ur(r, i);
68
+ const i = _("style");
69
+ i.id = t, i.textContent = n, cr(r, i);
70
70
  }
71
71
  }
72
- function sr(e) {
73
- if (!e) return document;
72
+ function ur(e) {
73
+ if (!e)
74
+ return document;
74
75
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
75
76
  return t && /** @type {ShadowRoot} */
76
77
  t.host ? (
@@ -78,61 +79,61 @@ function sr(e) {
78
79
  t
79
80
  ) : e.ownerDocument;
80
81
  }
81
- function ur(e, t) {
82
+ function cr(e, t) {
82
83
  return m(
83
84
  /** @type {Document} */
84
85
  e.head || e,
85
86
  t
86
87
  ), t.sheet;
87
88
  }
88
- function Q(e, t, n) {
89
+ function J(e, t, n) {
89
90
  e.insertBefore(t, n || null);
90
91
  }
91
- function Z(e) {
92
+ function W(e) {
92
93
  e.parentNode && e.parentNode.removeChild(e);
93
94
  }
94
- function wt(e, t) {
95
+ function Tt(e, t) {
95
96
  for (let n = 0; n < e.length; n += 1)
96
97
  e[n] && e[n].d(t);
97
98
  }
98
- function E(e) {
99
+ function _(e) {
99
100
  return document.createElement(e);
100
101
  }
101
- function Jt(e) {
102
+ function Yt(e) {
102
103
  return document.createElementNS("http://www.w3.org/2000/svg", e);
103
104
  }
104
- function j(e) {
105
+ function $(e) {
105
106
  return document.createTextNode(e);
106
107
  }
107
- function R() {
108
- return j(" ");
108
+ function M() {
109
+ return $(" ");
109
110
  }
110
- function Bn() {
111
- return j("");
111
+ function Cn() {
112
+ return $("");
112
113
  }
113
- function te(e, t, n, r) {
114
+ function K(e, t, n, r) {
114
115
  return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
115
116
  }
116
117
  function H(e, t, n) {
117
118
  n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
118
119
  }
119
- function ft(e) {
120
+ function pt(e) {
120
121
  return e === "" ? null : +e;
121
122
  }
122
- function lr(e) {
123
+ function hr(e) {
123
124
  return Array.from(e.childNodes);
124
125
  }
125
- function W(e, t) {
126
+ function X(e, t) {
126
127
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
127
128
  t);
128
129
  }
129
130
  function xe(e, t) {
130
131
  e.value = t == null ? "" : t;
131
132
  }
132
- function Qt(e, t, n, r) {
133
+ function Kt(e, t, n, r) {
133
134
  n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n, "");
134
135
  }
135
- function st(e, t, n) {
136
+ function lt(e, t, n) {
136
137
  for (let r = 0; r < e.options.length; r += 1) {
137
138
  const i = e.options[r];
138
139
  if (i.__value === t) {
@@ -142,14 +143,14 @@ function st(e, t, n) {
142
143
  }
143
144
  (!n || t !== void 0) && (e.selectedIndex = -1);
144
145
  }
145
- function Yt(e) {
146
+ function en(e) {
146
147
  const t = e.querySelector(":checked");
147
148
  return t && t.__value;
148
149
  }
149
- function k(e, t, n) {
150
+ function G(e, t, n) {
150
151
  e.classList.toggle(t, !!n);
151
152
  }
152
- function cr(e) {
153
+ function fr(e) {
153
154
  const t = {};
154
155
  return e.childNodes.forEach(
155
156
  /** @param {Element} node */
@@ -158,89 +159,90 @@ function cr(e) {
158
159
  }
159
160
  ), t;
160
161
  }
161
- let kt;
162
+ let jt;
162
163
  function Ke(e) {
163
- kt = e;
164
+ jt = e;
164
165
  }
165
- const De = [], pt = [];
166
- let Ue = [];
167
- const Kt = [], hr = /* @__PURE__ */ Promise.resolve();
168
- let It = !1;
169
- function fr() {
170
- It || (It = !0, hr.then(ce));
166
+ const Ue = [], mt = [];
167
+ let Fe = [];
168
+ const tn = [], pr = /* @__PURE__ */ Promise.resolve();
169
+ let Nt = !1;
170
+ function mr() {
171
+ Nt || (Nt = !0, pr.then(se));
171
172
  }
172
173
  function et(e) {
173
- Ue.push(e);
174
+ Fe.push(e);
174
175
  }
175
- const Tt = /* @__PURE__ */ new Set();
176
- let Le = 0;
177
- function ce() {
178
- if (Le !== 0)
176
+ const Ht = /* @__PURE__ */ new Set();
177
+ let Me = 0;
178
+ function se() {
179
+ if (Me !== 0)
179
180
  return;
180
- const e = kt;
181
+ const e = jt;
181
182
  do {
182
183
  try {
183
- for (; Le < De.length; ) {
184
- const t = De[Le];
185
- Le++, Ke(t), pr(t.$$);
184
+ for (; Me < Ue.length; ) {
185
+ const t = Ue[Me];
186
+ Me++, Ke(t), dr(t.$$);
186
187
  }
187
188
  } catch (t) {
188
- throw De.length = 0, Le = 0, t;
189
+ throw Ue.length = 0, Me = 0, t;
189
190
  }
190
- for (Ke(null), De.length = 0, Le = 0; pt.length; ) pt.pop()();
191
- for (let t = 0; t < Ue.length; t += 1) {
192
- const n = Ue[t];
193
- Tt.has(n) || (Tt.add(n), n());
191
+ for (Ke(null), Ue.length = 0, Me = 0; mt.length; )
192
+ mt.pop()();
193
+ for (let t = 0; t < Fe.length; t += 1) {
194
+ const n = Fe[t];
195
+ Ht.has(n) || (Ht.add(n), n());
194
196
  }
195
- Ue.length = 0;
196
- } while (De.length);
197
- for (; Kt.length; )
198
- Kt.pop()();
199
- It = !1, Tt.clear(), Ke(e);
197
+ Fe.length = 0;
198
+ } while (Ue.length);
199
+ for (; tn.length; )
200
+ tn.pop()();
201
+ Nt = !1, Ht.clear(), Ke(e);
200
202
  }
201
- function pr(e) {
203
+ function dr(e) {
202
204
  if (e.fragment !== null) {
203
205
  e.update(), we(e.before_update);
204
206
  const t = e.dirty;
205
207
  e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(et);
206
208
  }
207
209
  }
208
- function mr(e) {
210
+ function gr(e) {
209
211
  const t = [], n = [];
210
- Ue.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ue = t;
212
+ Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
211
213
  }
212
- const dr = /* @__PURE__ */ new Set();
213
- function gr(e, t) {
214
- e && e.i && (dr.delete(e), e.i(t));
214
+ const br = /* @__PURE__ */ new Set();
215
+ function yr(e, t) {
216
+ e && e.i && (br.delete(e), e.i(t));
215
217
  }
216
- function Me(e) {
218
+ function Re(e) {
217
219
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
218
220
  }
219
- function br(e, t, n) {
221
+ function vr(e, t, n) {
220
222
  const { fragment: r, after_update: i } = e.$$;
221
223
  r && r.m(t, n), et(() => {
222
- const a = e.$$.on_mount.map(Tn).filter($t);
224
+ const a = e.$$.on_mount.map(An).filter(kt);
223
225
  e.$$.on_destroy ? e.$$.on_destroy.push(...a) : we(a), e.$$.on_mount = [];
224
226
  }), i.forEach(et);
225
227
  }
226
- function yr(e, t) {
228
+ function xr(e, t) {
227
229
  const n = e.$$;
228
- n.fragment !== null && (mr(n.after_update), we(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
230
+ n.fragment !== null && (gr(n.after_update), we(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
229
231
  }
230
- function vr(e, t) {
231
- e.$$.dirty[0] === -1 && (De.push(e), fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
232
+ function Er(e, t) {
233
+ e.$$.dirty[0] === -1 && (Ue.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
232
234
  }
233
- function xr(e, t, n, r, i, a, o = null, s = [-1]) {
234
- const c = kt;
235
+ function _r(e, t, n, r, i, a, o = null, s = [-1]) {
236
+ const c = jt;
235
237
  Ke(e);
236
238
  const l = e.$$ = {
237
239
  fragment: null,
238
240
  ctx: [],
239
241
  // state
240
242
  props: a,
241
- update: oe,
243
+ update: ie,
242
244
  not_equal: i,
243
- bound: qt(),
245
+ bound: Qt(),
244
246
  // lifecycle
245
247
  on_mount: [],
246
248
  on_destroy: [],
@@ -249,48 +251,48 @@ function xr(e, t, n, r, i, a, o = null, s = [-1]) {
249
251
  after_update: [],
250
252
  context: new Map(t.context || (c ? c.$$.context : [])),
251
253
  // everything else
252
- callbacks: qt(),
254
+ callbacks: Qt(),
253
255
  dirty: s,
254
256
  skip_bound: !1,
255
257
  root: t.target || c.$$.root
256
258
  };
257
259
  o && o(l.root);
258
260
  let u = !1;
259
- if (l.ctx = n ? n(e, t.props || {}, (h, d, ...b) => {
260
- const v = b.length ? b[0] : d;
261
- return l.ctx && i(l.ctx[h], l.ctx[h] = v) && (!l.skip_bound && l.bound[h] && l.bound[h](v), u && vr(e, h)), d;
261
+ if (l.ctx = n ? n(e, t.props || {}, (f, d, ...y) => {
262
+ const x = y.length ? y[0] : d;
263
+ return l.ctx && i(l.ctx[f], l.ctx[f] = x) && (!l.skip_bound && l.bound[f] && l.bound[f](x), u && Er(e, f)), d;
262
264
  }) : [], l.update(), u = !0, we(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
263
265
  if (t.hydrate) {
264
- const h = lr(t.target);
265
- l.fragment && l.fragment.l(h), h.forEach(Z);
266
+ const f = hr(t.target);
267
+ l.fragment && l.fragment.l(f), f.forEach(W);
266
268
  } else
267
269
  l.fragment && l.fragment.c();
268
- t.intro && gr(e.$$.fragment), br(e, t.target, t.anchor), ce();
270
+ t.intro && yr(e.$$.fragment), vr(e, t.target, t.anchor), se();
269
271
  }
270
272
  Ke(c);
271
273
  }
272
- let Sn;
273
- typeof HTMLElement == "function" && (Sn = class extends HTMLElement {
274
+ let Pn;
275
+ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
274
276
  constructor(t, n, r) {
275
277
  super();
276
278
  /** The Svelte component constructor */
277
- ee(this, "$$ctor");
279
+ Y(this, "$$ctor");
278
280
  /** Slots */
279
- ee(this, "$$s");
281
+ Y(this, "$$s");
280
282
  /** The Svelte component instance */
281
- ee(this, "$$c");
283
+ Y(this, "$$c");
282
284
  /** Whether or not the custom element is connected */
283
- ee(this, "$$cn", !1);
285
+ Y(this, "$$cn", !1);
284
286
  /** Component props data */
285
- ee(this, "$$d", {});
287
+ Y(this, "$$d", {});
286
288
  /** `true` if currently in the process of reflecting component props back to attributes */
287
- ee(this, "$$r", !1);
289
+ Y(this, "$$r", !1);
288
290
  /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
289
- ee(this, "$$p_d", {});
291
+ Y(this, "$$p_d", {});
290
292
  /** @type {Record<string, Function[]>} Event listeners */
291
- ee(this, "$$l", {});
293
+ Y(this, "$$l", {});
292
294
  /** @type {Map<Function, Function>} Event listener unsubscribe functions */
293
- ee(this, "$$l_u", /* @__PURE__ */ new Map());
295
+ Y(this, "$$l_u", /* @__PURE__ */ new Map());
294
296
  this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
295
297
  }
296
298
  addEventListener(t, n, r) {
@@ -307,42 +309,42 @@ typeof HTMLElement == "function" && (Sn = class extends HTMLElement {
307
309
  }
308
310
  }
309
311
  connectedCallback() {
310
- return _t(this, null, function* () {
312
+ return wt(this, null, function* () {
311
313
  if (this.$$cn = !0, !this.$$c) {
312
314
  let t = function(a) {
313
315
  return () => {
314
316
  let o;
315
317
  return {
316
318
  c: function() {
317
- o = E("slot"), a !== "default" && H(o, "name", a);
319
+ o = _("slot"), a !== "default" && H(o, "name", a);
318
320
  },
319
321
  /**
320
322
  * @param {HTMLElement} target
321
323
  * @param {HTMLElement} [anchor]
322
324
  */
323
325
  m: function(l, u) {
324
- Q(l, o, u);
326
+ J(l, o, u);
325
327
  },
326
328
  d: function(l) {
327
- l && Z(o);
329
+ l && W(o);
328
330
  }
329
331
  };
330
332
  };
331
333
  };
332
334
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
333
335
  return;
334
- const n = {}, r = cr(this);
336
+ const n = {}, r = fr(this);
335
337
  for (const a of this.$$s)
336
338
  a in r && (n[a] = [t(a)]);
337
339
  for (const a of this.attributes) {
338
340
  const o = this.$$g_p(a.name);
339
- o in this.$$d || (this.$$d[o] = lt(o, a.value, this.$$p_d, "toProp"));
341
+ o in this.$$d || (this.$$d[o] = ct(o, a.value, this.$$p_d, "toProp"));
340
342
  }
341
343
  for (const a in this.$$p_d)
342
344
  !(a in this.$$d) && this[a] !== void 0 && (this.$$d[a] = this[a], delete this[a]);
343
345
  this.$$c = new this.$$ctor({
344
346
  target: this.shadowRoot || this,
345
- props: Zt(Wt({}, this.$$d), {
347
+ props: Jt(qt({}, this.$$d), {
346
348
  $$slots: n,
347
349
  $$scope: {
348
350
  ctx: []
@@ -353,7 +355,7 @@ typeof HTMLElement == "function" && (Sn = class extends HTMLElement {
353
355
  this.$$r = !0;
354
356
  for (const a in this.$$p_d)
355
357
  if (this.$$d[a] = this.$$c.$$.ctx[this.$$c.$$.props[a]], this.$$p_d[a].reflect) {
356
- const o = lt(
358
+ const o = ct(
357
359
  a,
358
360
  this.$$d[a],
359
361
  this.$$p_d,
@@ -377,7 +379,7 @@ typeof HTMLElement == "function" && (Sn = class extends HTMLElement {
377
379
  // and setting attributes through setAttribute etc, this is helpful
378
380
  attributeChangedCallback(t, n, r) {
379
381
  var i;
380
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = lt(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
382
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = ct(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
381
383
  }
382
384
  disconnectedCallback() {
383
385
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -390,7 +392,7 @@ typeof HTMLElement == "function" && (Sn = class extends HTMLElement {
390
392
  ) || t;
391
393
  }
392
394
  });
393
- function lt(e, t, n, r) {
395
+ function ct(e, t, n, r) {
394
396
  var a;
395
397
  const i = (a = n[e]) == null ? void 0 : a.type;
396
398
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
@@ -420,8 +422,8 @@ function lt(e, t, n, r) {
420
422
  return t;
421
423
  }
422
424
  }
423
- function Er(e, t, n, r, i, a) {
424
- let o = class extends Sn {
425
+ function wr(e, t, n, r, i, a) {
426
+ let o = class extends Pn {
425
427
  constructor() {
426
428
  super(e, n, i), this.$$p_d = t;
427
429
  }
@@ -438,7 +440,7 @@ function Er(e, t, n, r, i, a) {
438
440
  },
439
441
  set(c) {
440
442
  var l;
441
- c = lt(s, c, t), this.$$d[s] = c, (l = this.$$c) == null || l.$set({ [s]: c });
443
+ c = ct(s, c, t), this.$$d[s] = c, (l = this.$$c) == null || l.$set({ [s]: c });
442
444
  }
443
445
  });
444
446
  }), r.forEach((s) => {
@@ -451,7 +453,7 @@ function Er(e, t, n, r, i, a) {
451
453
  }), e.element = /** @type {any} */
452
454
  o, o;
453
455
  }
454
- class _r {
456
+ class Tr {
455
457
  constructor() {
456
458
  /**
457
459
  * ### PRIVATE API
@@ -460,7 +462,7 @@ class _r {
460
462
  *
461
463
  * @type {any}
462
464
  */
463
- ee(this, "$$");
465
+ Y(this, "$$");
464
466
  /**
465
467
  * ### PRIVATE API
466
468
  *
@@ -468,11 +470,11 @@ class _r {
468
470
  *
469
471
  * @type {any}
470
472
  */
471
- ee(this, "$$set");
473
+ Y(this, "$$set");
472
474
  }
473
475
  /** @returns {void} */
474
476
  $destroy() {
475
- yr(this, 1), this.$destroy = oe;
477
+ xr(this, 1), this.$destroy = ie;
476
478
  }
477
479
  /**
478
480
  * @template {Extract<keyof Events, string>} K
@@ -481,8 +483,8 @@ class _r {
481
483
  * @returns {() => void}
482
484
  */
483
485
  $on(t, n) {
484
- if (!$t(n))
485
- return oe;
486
+ if (!kt(n))
487
+ return ie;
486
488
  const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
487
489
  return r.push(n), () => {
488
490
  const i = r.indexOf(n);
@@ -494,63 +496,63 @@ class _r {
494
496
  * @returns {void}
495
497
  */
496
498
  $set(t) {
497
- this.$$set && !ir(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
499
+ this.$$set && !or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
498
500
  }
499
501
  }
500
- const wr = "4";
501
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(wr);
502
- const Re = [];
503
- function Tr(e, t) {
502
+ const Hr = "4";
503
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Hr);
504
+ const De = [];
505
+ function Ar(e, t) {
504
506
  return {
505
- subscribe: gt(e, t).subscribe
507
+ subscribe: bt(e, t).subscribe
506
508
  };
507
509
  }
508
- function gt(e, t = oe) {
510
+ function bt(e, t = ie) {
509
511
  let n;
510
512
  const r = /* @__PURE__ */ new Set();
511
513
  function i(s) {
512
- if (Hn(e, s) && (e = s, n)) {
513
- const c = !Re.length;
514
+ if (Bn(e, s) && (e = s, n)) {
515
+ const c = !De.length;
514
516
  for (const l of r)
515
- l[1](), Re.push(l, e);
517
+ l[1](), De.push(l, e);
516
518
  if (c) {
517
- for (let l = 0; l < Re.length; l += 2)
518
- Re[l][0](Re[l + 1]);
519
- Re.length = 0;
519
+ for (let l = 0; l < De.length; l += 2)
520
+ De[l][0](De[l + 1]);
521
+ De.length = 0;
520
522
  }
521
523
  }
522
524
  }
523
525
  function a(s) {
524
526
  i(s(e));
525
527
  }
526
- function o(s, c = oe) {
528
+ function o(s, c = ie) {
527
529
  const l = [s, c];
528
- return r.add(l), r.size === 1 && (n = t(i, a) || oe), s(e), () => {
530
+ return r.add(l), r.size === 1 && (n = t(i, a) || ie), s(e), () => {
529
531
  r.delete(l), r.size === 0 && n && (n(), n = null);
530
532
  };
531
533
  }
532
534
  return { set: i, update: a, subscribe: o };
533
535
  }
534
- function je(e, t, n) {
536
+ function Ve(e, t, n) {
535
537
  const r = !Array.isArray(e), i = r ? [e] : e;
536
538
  if (!i.every(Boolean))
537
539
  throw new Error("derived() expects stores as input, got a falsy value");
538
540
  const a = t.length < 2;
539
- return Tr(n, (o, s) => {
541
+ return Ar(n, (o, s) => {
540
542
  let c = !1;
541
543
  const l = [];
542
- let u = 0, h = oe;
544
+ let u = 0, f = ie;
543
545
  const d = () => {
544
546
  if (u)
545
547
  return;
546
- h();
547
- const v = t(r ? l[0] : l, o, s);
548
- a ? o(v) : h = $t(v) ? v : oe;
549
- }, b = i.map(
550
- (v, I) => An(
551
- v,
552
- (F) => {
553
- l[I] = F, u &= ~(1 << I), c && d();
548
+ f();
549
+ const x = t(r ? l[0] : l, o, s);
550
+ a ? o(x) : f = kt(x) ? x : ie;
551
+ }, y = i.map(
552
+ (x, I) => Sn(
553
+ x,
554
+ (U) => {
555
+ l[I] = U, u &= ~(1 << I), c && d();
554
556
  },
555
557
  () => {
556
558
  u |= 1 << I;
@@ -558,95 +560,110 @@ function je(e, t, n) {
558
560
  )
559
561
  );
560
562
  return c = !0, d(), function() {
561
- we(b), h(), c = !1;
563
+ we(y), f(), c = !1;
562
564
  };
563
565
  });
564
566
  }
565
- function Hr(e) {
567
+ function Br(e) {
566
568
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
567
569
  }
568
- var Ar = function(t) {
569
- return Br(t) && !Sr(t);
570
+ var Sr = function(t) {
571
+ return Cr(t) && !Pr(t);
570
572
  };
571
- function Br(e) {
573
+ function Cr(e) {
572
574
  return !!e && typeof e == "object";
573
575
  }
574
- function Sr(e) {
576
+ function Pr(e) {
575
577
  var t = Object.prototype.toString.call(e);
576
- return t === "[object RegExp]" || t === "[object Date]" || Ir(e);
578
+ return t === "[object RegExp]" || t === "[object Date]" || Or(e);
577
579
  }
578
- var Cr = typeof Symbol == "function" && Symbol.for, Pr = Cr ? Symbol.for("react.element") : 60103;
579
- function Ir(e) {
580
- return e.$$typeof === Pr;
580
+ var Ir = typeof Symbol == "function" && Symbol.for, Nr = Ir ? Symbol.for("react.element") : 60103;
581
+ function Or(e) {
582
+ return e.$$typeof === Nr;
581
583
  }
582
- function Nr(e) {
584
+ function Lr(e) {
583
585
  return Array.isArray(e) ? [] : {};
584
586
  }
585
587
  function tt(e, t) {
586
- return t.clone !== !1 && t.isMergeableObject(e) ? Fe(Nr(e), e, t) : e;
588
+ return t.clone !== !1 && t.isMergeableObject(e) ? Ge(Lr(e), e, t) : e;
587
589
  }
588
- function Or(e, t, n) {
590
+ function Mr(e, t, n) {
589
591
  return e.concat(t).map(function(r) {
590
592
  return tt(r, n);
591
593
  });
592
594
  }
593
- function Lr(e, t) {
595
+ function Rr(e, t) {
594
596
  if (!t.customMerge)
595
- return Fe;
597
+ return Ge;
596
598
  var n = t.customMerge(e);
597
- return typeof n == "function" ? n : Fe;
599
+ return typeof n == "function" ? n : Ge;
598
600
  }
599
- function Mr(e) {
601
+ function Dr(e) {
600
602
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
601
603
  return Object.propertyIsEnumerable.call(e, t);
602
604
  }) : [];
603
605
  }
604
- function en(e) {
605
- return Object.keys(e).concat(Mr(e));
606
+ function nn(e) {
607
+ return Object.keys(e).concat(Dr(e));
606
608
  }
607
- function Cn(e, t) {
609
+ function In(e, t) {
608
610
  try {
609
611
  return t in e;
610
612
  } catch (n) {
611
613
  return !1;
612
614
  }
613
615
  }
614
- function Rr(e, t) {
615
- return Cn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
616
+ function Ur(e, t) {
617
+ return In(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
616
618
  }
617
- function Dr(e, t, n) {
619
+ function Fr(e, t, n) {
618
620
  var r = {};
619
- return n.isMergeableObject(e) && en(e).forEach(function(i) {
621
+ return n.isMergeableObject(e) && nn(e).forEach(function(i) {
620
622
  r[i] = tt(e[i], n);
621
- }), en(t).forEach(function(i) {
622
- Rr(e, i) || (Cn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Lr(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
623
+ }), nn(t).forEach(function(i) {
624
+ Ur(e, i) || (In(e, i) && n.isMergeableObject(t[i]) ? r[i] = Rr(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
623
625
  }), r;
624
626
  }
625
- function Fe(e, t, n) {
626
- n = n || {}, n.arrayMerge = n.arrayMerge || Or, n.isMergeableObject = n.isMergeableObject || Ar, n.cloneUnlessOtherwiseSpecified = tt;
627
+ function Ge(e, t, n) {
628
+ n = n || {}, n.arrayMerge = n.arrayMerge || Mr, n.isMergeableObject = n.isMergeableObject || Sr, n.cloneUnlessOtherwiseSpecified = tt;
627
629
  var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
628
- return a ? r ? n.arrayMerge(e, t, n) : Dr(e, t, n) : tt(t, n);
630
+ return a ? r ? n.arrayMerge(e, t, n) : Fr(e, t, n) : tt(t, n);
629
631
  }
630
- Fe.all = function(t, n) {
632
+ Ge.all = function(t, n) {
631
633
  if (!Array.isArray(t))
632
634
  throw new Error("first argument should be an array");
633
635
  return t.reduce(function(r, i) {
634
- return Fe(r, i, n);
636
+ return Ge(r, i, n);
635
637
  }, {});
636
638
  };
637
- var Ur = Fe, Fr = Ur;
638
- const Gr = /* @__PURE__ */ Hr(Fr);
639
- var Nt = function(e, t) {
640
- return Nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
639
+ var Gr = Ge, $r = Gr;
640
+ const kr = /* @__PURE__ */ Br($r);
641
+ /*! *****************************************************************************
642
+ Copyright (c) Microsoft Corporation.
643
+
644
+ Permission to use, copy, modify, and/or distribute this software for any
645
+ purpose with or without fee is hereby granted.
646
+
647
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
648
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
649
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
650
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
651
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
652
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
653
+ PERFORMANCE OF THIS SOFTWARE.
654
+ ***************************************************************************** */
655
+ var Ot = function(e, t) {
656
+ return Ot = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
641
657
  n.__proto__ = r;
642
658
  } || function(n, r) {
643
- for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
644
- }, Nt(e, t);
659
+ for (var i in r)
660
+ Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
661
+ }, Ot(e, t);
645
662
  };
646
- function bt(e, t) {
663
+ function yt(e, t) {
647
664
  if (typeof t != "function" && t !== null)
648
665
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
649
- Nt(e, t);
666
+ Ot(e, t);
650
667
  function n() {
651
668
  this.constructor = e;
652
669
  }
@@ -656,121 +673,126 @@ var B = function() {
656
673
  return B = Object.assign || function(t) {
657
674
  for (var n, r = 1, i = arguments.length; r < i; r++) {
658
675
  n = arguments[r];
659
- for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
676
+ for (var a in n)
677
+ Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
660
678
  }
661
679
  return t;
662
680
  }, B.apply(this, arguments);
663
681
  };
664
- function $r(e, t) {
682
+ function jr(e, t) {
665
683
  var n = {};
666
- for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
684
+ for (var r in e)
685
+ Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
667
686
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
668
687
  for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
669
688
  t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
670
689
  return n;
671
690
  }
672
- function Ht(e, t, n) {
673
- if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++)
674
- (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
675
- return e.concat(a || Array.prototype.slice.call(t));
691
+ function At(e, t, n) {
692
+ if (arguments.length === 2)
693
+ for (var r = 0, i = t.length, a; r < i; r++)
694
+ (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
695
+ return e.concat(a || t);
676
696
  }
677
- function At(e, t) {
678
- var n = t && t.cache ? t.cache : Zr, r = t && t.serializer ? t.serializer : Xr, i = t && t.strategy ? t.strategy : Vr;
697
+ function Bt(e, t) {
698
+ var n = t && t.cache ? t.cache : qr, r = t && t.serializer ? t.serializer : Zr, i = t && t.strategy ? t.strategy : zr;
679
699
  return i(e, {
680
700
  cache: n,
681
701
  serializer: r
682
702
  });
683
703
  }
684
- function kr(e) {
704
+ function Vr(e) {
685
705
  return e == null || typeof e == "number" || typeof e == "boolean";
686
706
  }
687
- function jr(e, t, n, r) {
688
- var i = kr(r) ? r : n(r), a = t.get(i);
707
+ function Nn(e, t, n, r) {
708
+ var i = Vr(r) ? r : n(r), a = t.get(i);
689
709
  return typeof a == "undefined" && (a = e.call(this, r), t.set(i, a)), a;
690
710
  }
691
- function Pn(e, t, n) {
711
+ function On(e, t, n) {
692
712
  var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
693
713
  return typeof a == "undefined" && (a = e.apply(this, r), t.set(i, a)), a;
694
714
  }
695
- function In(e, t, n, r, i) {
715
+ function Vt(e, t, n, r, i) {
696
716
  return n.bind(t, e, r, i);
697
717
  }
698
- function Vr(e, t) {
699
- var n = e.length === 1 ? jr : Pn;
700
- return In(e, this, n, t.cache.create(), t.serializer);
701
- }
702
718
  function zr(e, t) {
703
- return In(e, this, Pn, t.cache.create(), t.serializer);
719
+ var n = e.length === 1 ? Nn : On;
720
+ return Vt(e, this, n, t.cache.create(), t.serializer);
721
+ }
722
+ function Xr(e, t) {
723
+ return Vt(e, this, On, t.cache.create(), t.serializer);
704
724
  }
705
- var Xr = function() {
725
+ function Wr(e, t) {
726
+ return Vt(e, this, Nn, t.cache.create(), t.serializer);
727
+ }
728
+ var Zr = function() {
706
729
  return JSON.stringify(arguments);
707
- }, Wr = (
708
- /** @class */
709
- function() {
710
- function e() {
711
- this.cache = /* @__PURE__ */ Object.create(null);
712
- }
713
- return e.prototype.get = function(t) {
714
- return this.cache[t];
715
- }, e.prototype.set = function(t, n) {
716
- this.cache[t] = n;
717
- }, e;
718
- }()
719
- ), Zr = {
730
+ };
731
+ function zt() {
732
+ this.cache = /* @__PURE__ */ Object.create(null);
733
+ }
734
+ zt.prototype.get = function(e) {
735
+ return this.cache[e];
736
+ };
737
+ zt.prototype.set = function(e, t) {
738
+ this.cache[e] = t;
739
+ };
740
+ var qr = {
720
741
  create: function() {
721
- return new Wr();
742
+ return new zt();
722
743
  }
723
- }, Bt = {
724
- variadic: zr
725
- }, _;
744
+ }, St = {
745
+ variadic: Xr,
746
+ monadic: Wr
747
+ }, w;
726
748
  (function(e) {
727
749
  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";
728
- })(_ || (_ = {}));
750
+ })(w || (w = {}));
729
751
  var C;
730
752
  (function(e) {
731
753
  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";
732
754
  })(C || (C = {}));
733
- var Ge;
755
+ var $e;
734
756
  (function(e) {
735
757
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
736
- })(Ge || (Ge = {}));
737
- function tn(e) {
758
+ })($e || ($e = {}));
759
+ function rn(e) {
738
760
  return e.type === C.literal;
739
761
  }
740
- function qr(e) {
762
+ function Jr(e) {
741
763
  return e.type === C.argument;
742
764
  }
743
- function Nn(e) {
765
+ function Ln(e) {
744
766
  return e.type === C.number;
745
767
  }
746
- function On(e) {
768
+ function Mn(e) {
747
769
  return e.type === C.date;
748
770
  }
749
- function Ln(e) {
771
+ function Rn(e) {
750
772
  return e.type === C.time;
751
773
  }
752
- function Mn(e) {
774
+ function Dn(e) {
753
775
  return e.type === C.select;
754
776
  }
755
- function Rn(e) {
777
+ function Un(e) {
756
778
  return e.type === C.plural;
757
779
  }
758
- function Jr(e) {
780
+ function Qr(e) {
759
781
  return e.type === C.pound;
760
782
  }
761
- function Dn(e) {
783
+ function Fn(e) {
762
784
  return e.type === C.tag;
763
785
  }
764
- function Un(e) {
765
- return !!(e && typeof e == "object" && e.type === Ge.number);
786
+ function Gn(e) {
787
+ return !!(e && typeof e == "object" && e.type === $e.number);
766
788
  }
767
- function Ot(e) {
768
- return !!(e && typeof e == "object" && e.type === Ge.dateTime);
789
+ function Lt(e) {
790
+ return !!(e && typeof e == "object" && e.type === $e.dateTime);
769
791
  }
770
- var Fn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Qr = /(?:[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;
771
- function Yr(e) {
792
+ var $n = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Yr = /(?:[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;
793
+ function Kr(e) {
772
794
  var t = {};
773
- return e.replace(Qr, function(n) {
795
+ return e.replace(Yr, function(n) {
774
796
  var r = n.length;
775
797
  switch (n[0]) {
776
798
  case "G":
@@ -859,36 +881,36 @@ function Yr(e) {
859
881
  return "";
860
882
  }), t;
861
883
  }
862
- var Kr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
863
- function ei(e) {
884
+ var ei = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
885
+ function ti(e) {
864
886
  if (e.length === 0)
865
887
  throw new Error("Number skeleton cannot be empty");
866
- for (var t = e.split(Kr).filter(function(d) {
888
+ for (var t = e.split(ei).filter(function(d) {
867
889
  return d.length > 0;
868
890
  }), n = [], r = 0, i = t; r < i.length; r++) {
869
891
  var a = i[r], o = a.split("/");
870
892
  if (o.length === 0)
871
893
  throw new Error("Invalid number skeleton");
872
894
  for (var s = o[0], c = o.slice(1), l = 0, u = c; l < u.length; l++) {
873
- var h = u[l];
874
- if (h.length === 0)
895
+ var f = u[l];
896
+ if (f.length === 0)
875
897
  throw new Error("Invalid number skeleton");
876
898
  }
877
899
  n.push({ stem: s, options: c });
878
900
  }
879
901
  return n;
880
902
  }
881
- function ti(e) {
903
+ function ni(e) {
882
904
  return e.replace(/^(.*?)-/, "");
883
905
  }
884
- var nn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gn = /^(@+)?(\+|#+)?[rs]?$/g, ni = /(\*)(0+)|(#+)(0+)|(0+)/g, $n = /^(0+)$/;
885
- function rn(e) {
906
+ var an = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kn = /^(@+)?(\+|#+)?[rs]?$/g, ri = /(\*)(0+)|(#+)(0+)|(0+)/g, jn = /^(0+)$/;
907
+ function on(e) {
886
908
  var t = {};
887
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gn, function(n, r, i) {
909
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kn, function(n, r, i) {
888
910
  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)), "";
889
911
  }), t;
890
912
  }
891
- function kn(e) {
913
+ function Vn(e) {
892
914
  switch (e) {
893
915
  case "sign-auto":
894
916
  return {
@@ -928,7 +950,7 @@ function kn(e) {
928
950
  };
929
951
  }
930
952
  }
931
- function ri(e) {
953
+ function ii(e) {
932
954
  var t;
933
955
  if (e[0] === "E" && e[1] === "E" ? (t = {
934
956
  notation: "engineering"
@@ -936,17 +958,17 @@ function ri(e) {
936
958
  notation: "scientific"
937
959
  }, e = e.slice(1)), t) {
938
960
  var n = e.slice(0, 2);
939
- if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !$n.test(e))
961
+ if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jn.test(e))
940
962
  throw new Error("Malformed concise eng/scientific notation");
941
963
  t.minimumIntegerDigits = e.length;
942
964
  }
943
965
  return t;
944
966
  }
945
- function an(e) {
946
- var t = {}, n = kn(e);
967
+ function sn(e) {
968
+ var t = {}, n = Vn(e);
947
969
  return n || t;
948
970
  }
949
- function ii(e) {
971
+ function ai(e) {
950
972
  for (var t = {}, n = 0, r = e; n < r.length; n++) {
951
973
  var i = r[n];
952
974
  switch (i.stem) {
@@ -970,7 +992,7 @@ function ii(e) {
970
992
  continue;
971
993
  case "measure-unit":
972
994
  case "unit":
973
- t.style = "unit", t.unit = ti(i.options[0]);
995
+ t.style = "unit", t.unit = ni(i.options[0]);
974
996
  continue;
975
997
  case "compact-short":
976
998
  case "K":
@@ -982,12 +1004,12 @@ function ii(e) {
982
1004
  continue;
983
1005
  case "scientific":
984
1006
  t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
985
- return B(B({}, c), an(l));
1007
+ return B(B({}, c), sn(l));
986
1008
  }, {}));
987
1009
  continue;
988
1010
  case "engineering":
989
1011
  t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
990
- return B(B({}, c), an(l));
1012
+ return B(B({}, c), sn(l));
991
1013
  }, {}));
992
1014
  continue;
993
1015
  case "notation-simple":
@@ -1032,40 +1054,40 @@ function ii(e) {
1032
1054
  case "integer-width":
1033
1055
  if (i.options.length > 1)
1034
1056
  throw new RangeError("integer-width stems only accept a single optional option");
1035
- i.options[0].replace(ni, function(c, l, u, h, d, b) {
1057
+ i.options[0].replace(ri, function(c, l, u, f, d, y) {
1036
1058
  if (l)
1037
1059
  t.minimumIntegerDigits = u.length;
1038
1060
  else {
1039
- if (h && d)
1061
+ if (f && d)
1040
1062
  throw new Error("We currently do not support maximum integer digits");
1041
- if (b)
1063
+ if (y)
1042
1064
  throw new Error("We currently do not support exact integer digits");
1043
1065
  }
1044
1066
  return "";
1045
1067
  });
1046
1068
  continue;
1047
1069
  }
1048
- if ($n.test(i.stem)) {
1070
+ if (jn.test(i.stem)) {
1049
1071
  t.minimumIntegerDigits = i.stem.length;
1050
1072
  continue;
1051
1073
  }
1052
- if (nn.test(i.stem)) {
1074
+ if (an.test(i.stem)) {
1053
1075
  if (i.options.length > 1)
1054
1076
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1055
- i.stem.replace(nn, function(c, l, u, h, d, b) {
1056
- return u === "*" ? t.minimumFractionDigits = l.length : h && h[0] === "#" ? t.maximumFractionDigits = h.length : d && b ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + b.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1077
+ i.stem.replace(an, function(c, l, u, f, d, y) {
1078
+ return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && y ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + y.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
1057
1079
  });
1058
1080
  var a = i.options[0];
1059
- a === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = B(B({}, t), rn(a)));
1081
+ a === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = B(B({}, t), on(a)));
1060
1082
  continue;
1061
1083
  }
1062
- if (Gn.test(i.stem)) {
1063
- t = B(B({}, t), rn(i.stem));
1084
+ if (kn.test(i.stem)) {
1085
+ t = B(B({}, t), on(i.stem));
1064
1086
  continue;
1065
1087
  }
1066
- var o = kn(i.stem);
1088
+ var o = Vn(i.stem);
1067
1089
  o && (t = B(B({}, t), o));
1068
- var s = ri(i.stem);
1090
+ var s = ii(i.stem);
1069
1091
  s && (t = B(B({}, t), s));
1070
1092
  }
1071
1093
  return t;
@@ -2485,22 +2507,23 @@ var ut = {
2485
2507
  "h"
2486
2508
  ]
2487
2509
  };
2488
- function ai(e, t) {
2510
+ function oi(e, t) {
2489
2511
  for (var n = "", r = 0; r < e.length; r++) {
2490
2512
  var i = e.charAt(r);
2491
2513
  if (i === "j") {
2492
2514
  for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
2493
2515
  a++, r++;
2494
- var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = "a", l = oi(t);
2516
+ var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = "a", l = si(t);
2495
2517
  for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
2496
2518
  n += c;
2497
2519
  for (; o-- > 0; )
2498
2520
  n = l + n;
2499
- } else i === "J" ? n += "H" : n += i;
2521
+ } else
2522
+ i === "J" ? n += "H" : n += i;
2500
2523
  }
2501
2524
  return n;
2502
2525
  }
2503
- function oi(e) {
2526
+ function si(e) {
2504
2527
  var t = e.hourCycle;
2505
2528
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
2506
2529
  e.hourCycles && // @ts-ignore
@@ -2522,20 +2545,20 @@ function oi(e) {
2522
2545
  var i = ut[r || ""] || ut[n || ""] || ut["".concat(n, "-001")] || ut["001"];
2523
2546
  return i[0];
2524
2547
  }
2525
- var St, si = new RegExp("^".concat(Fn.source, "*")), ui = new RegExp("".concat(Fn.source, "*$"));
2548
+ var Ct, li = new RegExp("^".concat($n.source, "*")), ui = new RegExp("".concat($n.source, "*$"));
2526
2549
  function T(e, t) {
2527
2550
  return { start: e, end: t };
2528
2551
  }
2529
- var li = !!String.prototype.startsWith && "_a".startsWith("a", 1), ci = !!String.fromCodePoint, hi = !!Object.fromEntries, fi = !!String.prototype.codePointAt, pi = !!String.prototype.trimStart, mi = !!String.prototype.trimEnd, di = !!Number.isSafeInteger, gi = di ? Number.isSafeInteger : function(e) {
2552
+ var ci = !!String.prototype.startsWith && "_a".startsWith("a", 1), hi = !!String.fromCodePoint, fi = !!Object.fromEntries, pi = !!String.prototype.codePointAt, mi = !!String.prototype.trimStart, di = !!String.prototype.trimEnd, gi = !!Number.isSafeInteger, bi = gi ? Number.isSafeInteger : function(e) {
2530
2553
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
2531
- }, Lt = !0;
2554
+ }, Mt = !0;
2532
2555
  try {
2533
- var bi = Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2534
- Lt = ((St = bi.exec("a")) === null || St === void 0 ? void 0 : St[0]) === "a";
2556
+ var yi = Xn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2557
+ Mt = ((Ct = yi.exec("a")) === null || Ct === void 0 ? void 0 : Ct[0]) === "a";
2535
2558
  } catch (e) {
2536
- Lt = !1;
2559
+ Mt = !1;
2537
2560
  }
2538
- var on = li ? (
2561
+ var ln = ci ? (
2539
2562
  // Native
2540
2563
  function(t, n, r) {
2541
2564
  return t.startsWith(n, r);
@@ -2545,7 +2568,7 @@ var on = li ? (
2545
2568
  function(t, n, r) {
2546
2569
  return t.slice(r, r + n.length) === n;
2547
2570
  }
2548
- ), Mt = ci ? String.fromCodePoint : (
2571
+ ), Rt = hi ? String.fromCodePoint : (
2549
2572
  // IE11
2550
2573
  function() {
2551
2574
  for (var t = [], n = 0; n < arguments.length; n++)
@@ -2557,9 +2580,9 @@ var on = li ? (
2557
2580
  }
2558
2581
  return r;
2559
2582
  }
2560
- ), sn = (
2583
+ ), un = (
2561
2584
  // native
2562
- hi ? Object.fromEntries : (
2585
+ fi ? Object.fromEntries : (
2563
2586
  // Ponyfill
2564
2587
  function(t) {
2565
2588
  for (var n = {}, r = 0, i = t; r < i.length; r++) {
@@ -2569,7 +2592,7 @@ var on = li ? (
2569
2592
  return n;
2570
2593
  }
2571
2594
  )
2572
- ), jn = fi ? (
2595
+ ), zn = pi ? (
2573
2596
  // Native
2574
2597
  function(t, n) {
2575
2598
  return t.codePointAt(n);
@@ -2583,7 +2606,7 @@ var on = li ? (
2583
2606
  return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
2584
2607
  }
2585
2608
  }
2586
- ), yi = pi ? (
2609
+ ), vi = mi ? (
2587
2610
  // Native
2588
2611
  function(t) {
2589
2612
  return t.trimStart();
@@ -2591,9 +2614,9 @@ var on = li ? (
2591
2614
  ) : (
2592
2615
  // Ponyfill
2593
2616
  function(t) {
2594
- return t.replace(si, "");
2617
+ return t.replace(li, "");
2595
2618
  }
2596
- ), vi = mi ? (
2619
+ ), xi = di ? (
2597
2620
  // Native
2598
2621
  function(t) {
2599
2622
  return t.trimEnd();
@@ -2604,29 +2627,29 @@ var on = li ? (
2604
2627
  return t.replace(ui, "");
2605
2628
  }
2606
2629
  );
2607
- function Vn(e, t) {
2630
+ function Xn(e, t) {
2608
2631
  return new RegExp(e, t);
2609
2632
  }
2610
- var Rt;
2611
- if (Lt) {
2612
- var un = Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2613
- Rt = function(t, n) {
2633
+ var Dt;
2634
+ if (Mt) {
2635
+ var cn = Xn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
2636
+ Dt = function(t, n) {
2614
2637
  var r;
2615
- un.lastIndex = n;
2616
- var i = un.exec(t);
2638
+ cn.lastIndex = n;
2639
+ var i = cn.exec(t);
2617
2640
  return (r = i[1]) !== null && r !== void 0 ? r : "";
2618
2641
  };
2619
2642
  } else
2620
- Rt = function(t, n) {
2643
+ Dt = function(t, n) {
2621
2644
  for (var r = []; ; ) {
2622
- var i = jn(t, n);
2623
- if (i === void 0 || zn(i) || wi(i))
2645
+ var i = zn(t, n);
2646
+ if (i === void 0 || Wn(i) || Ti(i))
2624
2647
  break;
2625
2648
  r.push(i), n += i >= 65536 ? 2 : 1;
2626
2649
  }
2627
- return Mt.apply(void 0, r);
2650
+ return Rt.apply(void 0, r);
2628
2651
  };
2629
- var xi = (
2652
+ var Ei = (
2630
2653
  /** @class */
2631
2654
  function() {
2632
2655
  function e(t, n) {
@@ -2656,8 +2679,8 @@ var xi = (
2656
2679
  } else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
2657
2680
  if (r)
2658
2681
  break;
2659
- return this.error(_.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
2660
- } else if (a === 60 && !this.ignoreTag && Dt(this.peek() || 0)) {
2682
+ return this.error(w.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
2683
+ } else if (a === 60 && !this.ignoreTag && Ut(this.peek() || 0)) {
2661
2684
  var o = this.parseTag(t, n);
2662
2685
  if (o.err)
2663
2686
  return o;
@@ -2690,10 +2713,10 @@ var xi = (
2690
2713
  return a;
2691
2714
  var o = a.val, s = this.clonePosition();
2692
2715
  if (this.bumpIf("</")) {
2693
- if (this.isEOF() || !Dt(this.char()))
2694
- return this.error(_.INVALID_TAG, T(s, this.clonePosition()));
2716
+ if (this.isEOF() || !Ut(this.char()))
2717
+ return this.error(w.INVALID_TAG, T(s, this.clonePosition()));
2695
2718
  var c = this.clonePosition(), l = this.parseTagName();
2696
- return i !== l ? this.error(_.UNMATCHED_CLOSING_TAG, T(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2719
+ return i !== l ? this.error(w.UNMATCHED_CLOSING_TAG, T(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
2697
2720
  val: {
2698
2721
  type: C.tag,
2699
2722
  value: i,
@@ -2701,14 +2724,14 @@ var xi = (
2701
2724
  location: T(r, this.clonePosition())
2702
2725
  },
2703
2726
  err: null
2704
- } : this.error(_.INVALID_TAG, T(s, this.clonePosition())));
2727
+ } : this.error(w.INVALID_TAG, T(s, this.clonePosition())));
2705
2728
  } else
2706
- return this.error(_.UNCLOSED_TAG, T(r, this.clonePosition()));
2729
+ return this.error(w.UNCLOSED_TAG, T(r, this.clonePosition()));
2707
2730
  } else
2708
- return this.error(_.INVALID_TAG, T(r, this.clonePosition()));
2731
+ return this.error(w.INVALID_TAG, T(r, this.clonePosition()));
2709
2732
  }, e.prototype.parseTagName = function() {
2710
2733
  var t = this.offset();
2711
- for (this.bump(); !this.isEOF() && _i(this.char()); )
2734
+ for (this.bump(); !this.isEOF() && wi(this.char()); )
2712
2735
  this.bump();
2713
2736
  return this.message.slice(t, this.offset());
2714
2737
  }, e.prototype.parseLiteral = function(t, n) {
@@ -2737,7 +2760,7 @@ var xi = (
2737
2760
  };
2738
2761
  }, e.prototype.tryParseLeftAngleBracket = function() {
2739
2762
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
2740
- !Ei(this.peek() || 0)) ? (this.bump(), "<") : null;
2763
+ !_i(this.peek() || 0)) ? (this.bump(), "<") : null;
2741
2764
  }, e.prototype.tryParseQuote = function(t) {
2742
2765
  if (this.isEOF() || this.char() !== 39)
2743
2766
  return null;
@@ -2771,23 +2794,23 @@ var xi = (
2771
2794
  n.push(r);
2772
2795
  this.bump();
2773
2796
  }
2774
- return Mt.apply(void 0, n);
2797
+ return Rt.apply(void 0, n);
2775
2798
  }, e.prototype.tryParseUnquoted = function(t, n) {
2776
2799
  if (this.isEOF())
2777
2800
  return null;
2778
2801
  var r = this.char();
2779
- return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Mt(r));
2802
+ return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Rt(r));
2780
2803
  }, e.prototype.parseArgument = function(t, n) {
2781
2804
  var r = this.clonePosition();
2782
2805
  if (this.bump(), this.bumpSpace(), this.isEOF())
2783
- return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
2806
+ return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
2784
2807
  if (this.char() === 125)
2785
- return this.bump(), this.error(_.EMPTY_ARGUMENT, T(r, this.clonePosition()));
2808
+ return this.bump(), this.error(w.EMPTY_ARGUMENT, T(r, this.clonePosition()));
2786
2809
  var i = this.parseIdentifierIfPossible().value;
2787
2810
  if (!i)
2788
- return this.error(_.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
2811
+ return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
2789
2812
  if (this.bumpSpace(), this.isEOF())
2790
- return this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
2813
+ return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
2791
2814
  switch (this.char()) {
2792
2815
  case 125:
2793
2816
  return this.bump(), {
@@ -2800,12 +2823,12 @@ var xi = (
2800
2823
  err: null
2801
2824
  };
2802
2825
  case 44:
2803
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2826
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
2804
2827
  default:
2805
- return this.error(_.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
2828
+ return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
2806
2829
  }
2807
2830
  }, e.prototype.parseIdentifierIfPossible = function() {
2808
- var t = this.clonePosition(), n = this.offset(), r = Rt(this.message, n), i = n + r.length;
2831
+ var t = this.clonePosition(), n = this.offset(), r = Dt(this.message, n), i = n + r.length;
2809
2832
  this.bumpTo(i);
2810
2833
  var a = this.clonePosition(), o = T(t, a);
2811
2834
  return { value: r, location: o };
@@ -2813,7 +2836,7 @@ var xi = (
2813
2836
  var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
2814
2837
  switch (s) {
2815
2838
  case "":
2816
- return this.error(_.EXPECT_ARGUMENT_TYPE, T(o, c));
2839
+ return this.error(w.EXPECT_ARGUMENT_TYPE, T(o, c));
2817
2840
  case "number":
2818
2841
  case "date":
2819
2842
  case "time": {
@@ -2821,40 +2844,40 @@ var xi = (
2821
2844
  var l = null;
2822
2845
  if (this.bumpIf(",")) {
2823
2846
  this.bumpSpace();
2824
- var u = this.clonePosition(), h = this.parseSimpleArgStyleIfPossible();
2825
- if (h.err)
2826
- return h;
2827
- var d = vi(h.val);
2847
+ var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
2848
+ if (f.err)
2849
+ return f;
2850
+ var d = xi(f.val);
2828
2851
  if (d.length === 0)
2829
- return this.error(_.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
2830
- var b = T(u, this.clonePosition());
2831
- l = { style: d, styleLocation: b };
2852
+ return this.error(w.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
2853
+ var y = T(u, this.clonePosition());
2854
+ l = { style: d, styleLocation: y };
2832
2855
  }
2833
- var v = this.tryParseArgumentClose(i);
2834
- if (v.err)
2835
- return v;
2856
+ var x = this.tryParseArgumentClose(i);
2857
+ if (x.err)
2858
+ return x;
2836
2859
  var I = T(i, this.clonePosition());
2837
- if (l && on(l == null ? void 0 : l.style, "::", 0)) {
2838
- var F = yi(l.style.slice(2));
2860
+ if (l && ln(l == null ? void 0 : l.style, "::", 0)) {
2861
+ var U = vi(l.style.slice(2));
2839
2862
  if (s === "number") {
2840
- var h = this.parseNumberSkeletonFromString(F, l.styleLocation);
2841
- return h.err ? h : {
2842
- val: { type: C.number, value: r, location: I, style: h.val },
2863
+ var f = this.parseNumberSkeletonFromString(U, l.styleLocation);
2864
+ return f.err ? f : {
2865
+ val: { type: C.number, value: r, location: I, style: f.val },
2843
2866
  err: null
2844
2867
  };
2845
2868
  } else {
2846
- if (F.length === 0)
2847
- return this.error(_.EXPECT_DATE_TIME_SKELETON, I);
2848
- var N = F;
2849
- this.locale && (N = ai(F, this.locale));
2869
+ if (U.length === 0)
2870
+ return this.error(w.EXPECT_DATE_TIME_SKELETON, I);
2871
+ var N = U;
2872
+ this.locale && (N = oi(U, this.locale));
2850
2873
  var d = {
2851
- type: Ge.dateTime,
2874
+ type: $e.dateTime,
2852
2875
  pattern: N,
2853
2876
  location: l.styleLocation,
2854
- parsedOptions: this.shouldParseSkeletons ? Yr(N) : {}
2855
- }, D = s === "date" ? C.date : C.time;
2877
+ parsedOptions: this.shouldParseSkeletons ? Kr(N) : {}
2878
+ }, R = s === "date" ? C.date : C.time;
2856
2879
  return {
2857
- val: { type: D, value: r, location: I, style: d },
2880
+ val: { type: R, value: r, location: I, style: d },
2858
2881
  err: null
2859
2882
  };
2860
2883
  }
@@ -2872,52 +2895,52 @@ var xi = (
2872
2895
  case "plural":
2873
2896
  case "selectordinal":
2874
2897
  case "select": {
2875
- var U = this.clonePosition();
2898
+ var D = this.clonePosition();
2876
2899
  if (this.bumpSpace(), !this.bumpIf(","))
2877
- return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, T(U, B({}, U)));
2900
+ return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, T(D, B({}, D)));
2878
2901
  this.bumpSpace();
2879
2902
  var P = this.parseIdentifierIfPossible(), O = 0;
2880
2903
  if (s !== "select" && P.value === "offset") {
2881
2904
  if (!this.bumpIf(":"))
2882
- return this.error(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
2905
+ return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
2883
2906
  this.bumpSpace();
2884
- var h = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2885
- if (h.err)
2886
- return h;
2887
- this.bumpSpace(), P = this.parseIdentifierIfPossible(), O = h.val;
2907
+ var f = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
2908
+ if (f.err)
2909
+ return f;
2910
+ this.bumpSpace(), P = this.parseIdentifierIfPossible(), O = f.val;
2888
2911
  }
2889
- var q = this.tryParsePluralOrSelectOptions(t, s, n, P);
2890
- if (q.err)
2891
- return q;
2892
- var v = this.tryParseArgumentClose(i);
2893
- if (v.err)
2894
- return v;
2895
- var ne = T(i, this.clonePosition());
2912
+ var Z = this.tryParsePluralOrSelectOptions(t, s, n, P);
2913
+ if (Z.err)
2914
+ return Z;
2915
+ var x = this.tryParseArgumentClose(i);
2916
+ if (x.err)
2917
+ return x;
2918
+ var ee = T(i, this.clonePosition());
2896
2919
  return s === "select" ? {
2897
2920
  val: {
2898
2921
  type: C.select,
2899
2922
  value: r,
2900
- options: sn(q.val),
2901
- location: ne
2923
+ options: un(Z.val),
2924
+ location: ee
2902
2925
  },
2903
2926
  err: null
2904
2927
  } : {
2905
2928
  val: {
2906
2929
  type: C.plural,
2907
2930
  value: r,
2908
- options: sn(q.val),
2931
+ options: un(Z.val),
2909
2932
  offset: O,
2910
2933
  pluralType: s === "plural" ? "cardinal" : "ordinal",
2911
- location: ne
2934
+ location: ee
2912
2935
  },
2913
2936
  err: null
2914
2937
  };
2915
2938
  }
2916
2939
  default:
2917
- return this.error(_.INVALID_ARGUMENT_TYPE, T(o, c));
2940
+ return this.error(w.INVALID_ARGUMENT_TYPE, T(o, c));
2918
2941
  }
2919
2942
  }, e.prototype.tryParseArgumentClose = function(t) {
2920
- return this.isEOF() || this.char() !== 125 ? this.error(_.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2943
+ return this.isEOF() || this.char() !== 125 ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
2921
2944
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
2922
2945
  for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
2923
2946
  var r = this.char();
@@ -2926,7 +2949,7 @@ var xi = (
2926
2949
  this.bump();
2927
2950
  var i = this.clonePosition();
2928
2951
  if (!this.bumpUntil("'"))
2929
- return this.error(_.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, T(i, this.clonePosition()));
2952
+ return this.error(w.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, T(i, this.clonePosition()));
2930
2953
  this.bump();
2931
2954
  break;
2932
2955
  }
@@ -2956,52 +2979,52 @@ var xi = (
2956
2979
  }, e.prototype.parseNumberSkeletonFromString = function(t, n) {
2957
2980
  var r = [];
2958
2981
  try {
2959
- r = ei(t);
2982
+ r = ti(t);
2960
2983
  } catch (i) {
2961
- return this.error(_.INVALID_NUMBER_SKELETON, n);
2984
+ return this.error(w.INVALID_NUMBER_SKELETON, n);
2962
2985
  }
2963
2986
  return {
2964
2987
  val: {
2965
- type: Ge.number,
2988
+ type: $e.number,
2966
2989
  tokens: r,
2967
2990
  location: n,
2968
- parsedOptions: this.shouldParseSkeletons ? ii(r) : {}
2991
+ parsedOptions: this.shouldParseSkeletons ? ai(r) : {}
2969
2992
  },
2970
2993
  err: null
2971
2994
  };
2972
2995
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
2973
2996
  for (var a, o = !1, s = [], c = /* @__PURE__ */ new Set(), l = i.value, u = i.location; ; ) {
2974
2997
  if (l.length === 0) {
2975
- var h = this.clonePosition();
2998
+ var f = this.clonePosition();
2976
2999
  if (n !== "select" && this.bumpIf("=")) {
2977
- var d = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
3000
+ var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
2978
3001
  if (d.err)
2979
3002
  return d;
2980
- u = T(h, this.clonePosition()), l = this.message.slice(h.offset, this.offset());
3003
+ u = T(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
2981
3004
  } else
2982
3005
  break;
2983
3006
  }
2984
3007
  if (c.has(l))
2985
- return this.error(n === "select" ? _.DUPLICATE_SELECT_ARGUMENT_SELECTOR : _.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
3008
+ return this.error(n === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, u);
2986
3009
  l === "other" && (o = !0), this.bumpSpace();
2987
- var b = this.clonePosition();
3010
+ var y = this.clonePosition();
2988
3011
  if (!this.bumpIf("{"))
2989
- return this.error(n === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : _.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
2990
- var v = this.parseMessage(t + 1, n, r);
2991
- if (v.err)
2992
- return v;
2993
- var I = this.tryParseArgumentClose(b);
3012
+ return this.error(n === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
3013
+ var x = this.parseMessage(t + 1, n, r);
3014
+ if (x.err)
3015
+ return x;
3016
+ var I = this.tryParseArgumentClose(y);
2994
3017
  if (I.err)
2995
3018
  return I;
2996
3019
  s.push([
2997
3020
  l,
2998
3021
  {
2999
- value: v.val,
3000
- location: T(b, this.clonePosition())
3022
+ value: x.val,
3023
+ location: T(y, this.clonePosition())
3001
3024
  }
3002
3025
  ]), c.add(l), this.bumpSpace(), a = this.parseIdentifierIfPossible(), l = a.value, u = a.location;
3003
3026
  }
3004
- return s.length === 0 ? this.error(n === "select" ? _.EXPECT_SELECT_ARGUMENT_SELECTOR : _.EXPECT_PLURAL_ARGUMENT_SELECTOR, T(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(_.MISSING_OTHER_CLAUSE, T(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3027
+ return s.length === 0 ? this.error(n === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR : w.EXPECT_PLURAL_ARGUMENT_SELECTOR, T(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(w.MISSING_OTHER_CLAUSE, T(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3005
3028
  }, e.prototype.tryParseDecimalInteger = function(t, n) {
3006
3029
  var r = 1, i = this.clonePosition();
3007
3030
  this.bumpIf("+") || this.bumpIf("-") && (r = -1);
@@ -3013,7 +3036,7 @@ var xi = (
3013
3036
  break;
3014
3037
  }
3015
3038
  var c = T(i, this.clonePosition());
3016
- return a ? (o *= r, gi(o) ? { val: o, err: null } : this.error(n, c)) : this.error(t, c);
3039
+ return a ? (o *= r, bi(o) ? { val: o, err: null } : this.error(n, c)) : this.error(t, c);
3017
3040
  }, e.prototype.offset = function() {
3018
3041
  return this.position.offset;
3019
3042
  }, e.prototype.isEOF = function() {
@@ -3028,7 +3051,7 @@ var xi = (
3028
3051
  var t = this.position.offset;
3029
3052
  if (t >= this.message.length)
3030
3053
  throw Error("out of bound");
3031
- var n = jn(this.message, t);
3054
+ var n = zn(this.message, t);
3032
3055
  if (n === void 0)
3033
3056
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3034
3057
  return n;
@@ -3047,7 +3070,7 @@ var xi = (
3047
3070
  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);
3048
3071
  }
3049
3072
  }, e.prototype.bumpIf = function(t) {
3050
- if (on(this.message, t, this.offset())) {
3073
+ if (ln(this.message, t, this.offset())) {
3051
3074
  for (var n = 0; n < t.length; n++)
3052
3075
  this.bump();
3053
3076
  return !0;
@@ -3069,7 +3092,7 @@ var xi = (
3069
3092
  break;
3070
3093
  }
3071
3094
  }, e.prototype.bumpSpace = function() {
3072
- for (; !this.isEOF() && zn(this.char()); )
3095
+ for (; !this.isEOF() && Wn(this.char()); )
3073
3096
  this.bump();
3074
3097
  }, e.prototype.peek = function() {
3075
3098
  if (this.isEOF())
@@ -3079,46 +3102,47 @@ var xi = (
3079
3102
  }, e;
3080
3103
  }()
3081
3104
  );
3082
- function Dt(e) {
3105
+ function Ut(e) {
3083
3106
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3084
3107
  }
3085
- function Ei(e) {
3086
- return Dt(e) || e === 47;
3087
- }
3088
3108
  function _i(e) {
3109
+ return Ut(e) || e === 47;
3110
+ }
3111
+ function wi(e) {
3089
3112
  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;
3090
3113
  }
3091
- function zn(e) {
3114
+ function Wn(e) {
3092
3115
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3093
3116
  }
3094
- function wi(e) {
3117
+ function Ti(e) {
3095
3118
  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;
3096
3119
  }
3097
- function Ut(e) {
3120
+ function Ft(e) {
3098
3121
  e.forEach(function(t) {
3099
- if (delete t.location, Mn(t) || Rn(t))
3122
+ if (delete t.location, Dn(t) || Un(t))
3100
3123
  for (var n in t.options)
3101
- delete t.options[n].location, Ut(t.options[n].value);
3102
- else Nn(t) && Un(t.style) || (On(t) || Ln(t)) && Ot(t.style) ? delete t.style.location : Dn(t) && Ut(t.children);
3124
+ delete t.options[n].location, Ft(t.options[n].value);
3125
+ else
3126
+ Ln(t) && Gn(t.style) || (Mn(t) || Rn(t)) && Lt(t.style) ? delete t.style.location : Fn(t) && Ft(t.children);
3103
3127
  });
3104
3128
  }
3105
- function Ti(e, t) {
3129
+ function Hi(e, t) {
3106
3130
  t === void 0 && (t = {}), t = B({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3107
- var n = new xi(e, t).parse();
3131
+ var n = new Ei(e, t).parse();
3108
3132
  if (n.err) {
3109
- var r = SyntaxError(_[n.err.kind]);
3133
+ var r = SyntaxError(w[n.err.kind]);
3110
3134
  throw r.location = n.err.location, r.originalMessage = n.err.message, r;
3111
3135
  }
3112
- return t != null && t.captureLocation || Ut(n.val), n.val;
3136
+ return t != null && t.captureLocation || Ft(n.val), n.val;
3113
3137
  }
3114
- var $e;
3138
+ var ke;
3115
3139
  (function(e) {
3116
3140
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3117
- })($e || ($e = {}));
3118
- var yt = (
3141
+ })(ke || (ke = {}));
3142
+ var vt = (
3119
3143
  /** @class */
3120
3144
  function(e) {
3121
- bt(t, e);
3145
+ yt(t, e);
3122
3146
  function t(n, r, i) {
3123
3147
  var a = e.call(this, n) || this;
3124
3148
  return a.code = r, a.originalMessage = i, a;
@@ -3127,155 +3151,155 @@ var yt = (
3127
3151
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3128
3152
  }, t;
3129
3153
  }(Error)
3130
- ), ln = (
3154
+ ), hn = (
3131
3155
  /** @class */
3132
3156
  function(e) {
3133
- bt(t, e);
3157
+ yt(t, e);
3134
3158
  function t(n, r, i, a) {
3135
- return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, a) || this;
3159
+ return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ke.INVALID_VALUE, a) || this;
3136
3160
  }
3137
3161
  return t;
3138
- }(yt)
3139
- ), Hi = (
3162
+ }(vt)
3163
+ ), Ai = (
3140
3164
  /** @class */
3141
3165
  function(e) {
3142
- bt(t, e);
3166
+ yt(t, e);
3143
3167
  function t(n, r, i) {
3144
- return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), $e.INVALID_VALUE, i) || this;
3168
+ return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ke.INVALID_VALUE, i) || this;
3145
3169
  }
3146
3170
  return t;
3147
- }(yt)
3148
- ), Ai = (
3171
+ }(vt)
3172
+ ), Bi = (
3149
3173
  /** @class */
3150
3174
  function(e) {
3151
- bt(t, e);
3175
+ yt(t, e);
3152
3176
  function t(n, r) {
3153
- return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), $e.MISSING_VALUE, r) || this;
3177
+ return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ke.MISSING_VALUE, r) || this;
3154
3178
  }
3155
3179
  return t;
3156
- }(yt)
3157
- ), X;
3180
+ }(vt)
3181
+ ), V;
3158
3182
  (function(e) {
3159
3183
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3160
- })(X || (X = {}));
3161
- function Bi(e) {
3184
+ })(V || (V = {}));
3185
+ function Si(e) {
3162
3186
  return e.length < 2 ? e : e.reduce(function(t, n) {
3163
3187
  var r = t[t.length - 1];
3164
- return !r || r.type !== X.literal || n.type !== X.literal ? t.push(n) : r.value += n.value, t;
3188
+ return !r || r.type !== V.literal || n.type !== V.literal ? t.push(n) : r.value += n.value, t;
3165
3189
  }, []);
3166
3190
  }
3167
- function Si(e) {
3191
+ function Ci(e) {
3168
3192
  return typeof e == "function";
3169
3193
  }
3170
- function ct(e, t, n, r, i, a, o) {
3171
- if (e.length === 1 && tn(e[0]))
3194
+ function ht(e, t, n, r, i, a, o) {
3195
+ if (e.length === 1 && rn(e[0]))
3172
3196
  return [
3173
3197
  {
3174
- type: X.literal,
3198
+ type: V.literal,
3175
3199
  value: e[0].value
3176
3200
  }
3177
3201
  ];
3178
3202
  for (var s = [], c = 0, l = e; c < l.length; c++) {
3179
3203
  var u = l[c];
3180
- if (tn(u)) {
3204
+ if (rn(u)) {
3181
3205
  s.push({
3182
- type: X.literal,
3206
+ type: V.literal,
3183
3207
  value: u.value
3184
3208
  });
3185
3209
  continue;
3186
3210
  }
3187
- if (Jr(u)) {
3211
+ if (Qr(u)) {
3188
3212
  typeof a == "number" && s.push({
3189
- type: X.literal,
3213
+ type: V.literal,
3190
3214
  value: n.getNumberFormat(t).format(a)
3191
3215
  });
3192
3216
  continue;
3193
3217
  }
3194
- var h = u.value;
3195
- if (!(i && h in i))
3196
- throw new Ai(h, o);
3197
- var d = i[h];
3198
- if (qr(u)) {
3218
+ var f = u.value;
3219
+ if (!(i && f in i))
3220
+ throw new Bi(f, o);
3221
+ var d = i[f];
3222
+ if (Jr(u)) {
3199
3223
  (!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
3200
- type: typeof d == "string" ? X.literal : X.object,
3224
+ type: typeof d == "string" ? V.literal : V.object,
3201
3225
  value: d
3202
3226
  });
3203
3227
  continue;
3204
3228
  }
3205
- if (On(u)) {
3206
- var b = typeof u.style == "string" ? r.date[u.style] : Ot(u.style) ? u.style.parsedOptions : void 0;
3229
+ if (Mn(u)) {
3230
+ var y = typeof u.style == "string" ? r.date[u.style] : Lt(u.style) ? u.style.parsedOptions : void 0;
3207
3231
  s.push({
3208
- type: X.literal,
3209
- value: n.getDateTimeFormat(t, b).format(d)
3232
+ type: V.literal,
3233
+ value: n.getDateTimeFormat(t, y).format(d)
3210
3234
  });
3211
3235
  continue;
3212
3236
  }
3213
- if (Ln(u)) {
3214
- var b = typeof u.style == "string" ? r.time[u.style] : Ot(u.style) ? u.style.parsedOptions : r.time.medium;
3237
+ if (Rn(u)) {
3238
+ var y = typeof u.style == "string" ? r.time[u.style] : Lt(u.style) ? u.style.parsedOptions : r.time.medium;
3215
3239
  s.push({
3216
- type: X.literal,
3217
- value: n.getDateTimeFormat(t, b).format(d)
3240
+ type: V.literal,
3241
+ value: n.getDateTimeFormat(t, y).format(d)
3218
3242
  });
3219
3243
  continue;
3220
3244
  }
3221
- if (Nn(u)) {
3222
- var b = typeof u.style == "string" ? r.number[u.style] : Un(u.style) ? u.style.parsedOptions : void 0;
3223
- b && b.scale && (d = d * (b.scale || 1)), s.push({
3224
- type: X.literal,
3225
- value: n.getNumberFormat(t, b).format(d)
3245
+ if (Ln(u)) {
3246
+ var y = typeof u.style == "string" ? r.number[u.style] : Gn(u.style) ? u.style.parsedOptions : void 0;
3247
+ y && y.scale && (d = d * (y.scale || 1)), s.push({
3248
+ type: V.literal,
3249
+ value: n.getNumberFormat(t, y).format(d)
3226
3250
  });
3227
3251
  continue;
3228
3252
  }
3229
- if (Dn(u)) {
3230
- var v = u.children, I = u.value, F = i[I];
3231
- if (!Si(F))
3232
- throw new Hi(I, "function", o);
3233
- var N = ct(v, t, n, r, i, a), D = F(N.map(function(O) {
3253
+ if (Fn(u)) {
3254
+ var x = u.children, I = u.value, U = i[I];
3255
+ if (!Ci(U))
3256
+ throw new Ai(I, "function", o);
3257
+ var N = ht(x, t, n, r, i, a), R = U(N.map(function(O) {
3234
3258
  return O.value;
3235
3259
  }));
3236
- Array.isArray(D) || (D = [D]), s.push.apply(s, D.map(function(O) {
3260
+ Array.isArray(R) || (R = [R]), s.push.apply(s, R.map(function(O) {
3237
3261
  return {
3238
- type: typeof O == "string" ? X.literal : X.object,
3262
+ type: typeof O == "string" ? V.literal : V.object,
3239
3263
  value: O
3240
3264
  };
3241
3265
  }));
3242
3266
  }
3243
- if (Mn(u)) {
3244
- var U = u.options[d] || u.options.other;
3245
- if (!U)
3246
- throw new ln(u.value, d, Object.keys(u.options), o);
3247
- s.push.apply(s, ct(U.value, t, n, r, i));
3267
+ if (Dn(u)) {
3268
+ var D = u.options[d] || u.options.other;
3269
+ if (!D)
3270
+ throw new hn(u.value, d, Object.keys(u.options), o);
3271
+ s.push.apply(s, ht(D.value, t, n, r, i));
3248
3272
  continue;
3249
3273
  }
3250
- if (Rn(u)) {
3251
- var U = u.options["=".concat(d)];
3252
- if (!U) {
3274
+ if (Un(u)) {
3275
+ var D = u.options["=".concat(d)];
3276
+ if (!D) {
3253
3277
  if (!Intl.PluralRules)
3254
- throw new yt(`Intl.PluralRules is not available in this environment.
3278
+ throw new vt(`Intl.PluralRules is not available in this environment.
3255
3279
  Try polyfilling it using "@formatjs/intl-pluralrules"
3256
- `, $e.MISSING_INTL_API, o);
3280
+ `, ke.MISSING_INTL_API, o);
3257
3281
  var P = n.getPluralRules(t, { type: u.pluralType }).select(d - (u.offset || 0));
3258
- U = u.options[P] || u.options.other;
3282
+ D = u.options[P] || u.options.other;
3259
3283
  }
3260
- if (!U)
3261
- throw new ln(u.value, d, Object.keys(u.options), o);
3262
- s.push.apply(s, ct(U.value, t, n, r, i, d - (u.offset || 0)));
3284
+ if (!D)
3285
+ throw new hn(u.value, d, Object.keys(u.options), o);
3286
+ s.push.apply(s, ht(D.value, t, n, r, i, d - (u.offset || 0)));
3263
3287
  continue;
3264
3288
  }
3265
3289
  }
3266
- return Bi(s);
3290
+ return Si(s);
3267
3291
  }
3268
- function Ci(e, t) {
3292
+ function Pi(e, t) {
3269
3293
  return t ? B(B(B({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
3270
3294
  return n[r] = B(B({}, e[r]), t[r] || {}), n;
3271
3295
  }, {})) : e;
3272
3296
  }
3273
- function Pi(e, t) {
3297
+ function Ii(e, t) {
3274
3298
  return t ? Object.keys(e).reduce(function(n, r) {
3275
- return n[r] = Ci(e[r], t[r]), n;
3299
+ return n[r] = Pi(e[r], t[r]), n;
3276
3300
  }, B({}, e)) : e;
3277
3301
  }
3278
- function Ct(e) {
3302
+ function Pt(e) {
3279
3303
  return {
3280
3304
  create: function() {
3281
3305
  return {
@@ -3289,39 +3313,39 @@ function Ct(e) {
3289
3313
  }
3290
3314
  };
3291
3315
  }
3292
- function Ii(e) {
3316
+ function Ni(e) {
3293
3317
  return e === void 0 && (e = {
3294
3318
  number: {},
3295
3319
  dateTime: {},
3296
3320
  pluralRules: {}
3297
3321
  }), {
3298
- getNumberFormat: At(function() {
3322
+ getNumberFormat: Bt(function() {
3299
3323
  for (var t, n = [], r = 0; r < arguments.length; r++)
3300
3324
  n[r] = arguments[r];
3301
- return new ((t = Intl.NumberFormat).bind.apply(t, Ht([void 0], n, !1)))();
3325
+ return new ((t = Intl.NumberFormat).bind.apply(t, At([void 0], n, !1)))();
3302
3326
  }, {
3303
- cache: Ct(e.number),
3304
- strategy: Bt.variadic
3327
+ cache: Pt(e.number),
3328
+ strategy: St.variadic
3305
3329
  }),
3306
- getDateTimeFormat: At(function() {
3330
+ getDateTimeFormat: Bt(function() {
3307
3331
  for (var t, n = [], r = 0; r < arguments.length; r++)
3308
3332
  n[r] = arguments[r];
3309
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Ht([void 0], n, !1)))();
3333
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, At([void 0], n, !1)))();
3310
3334
  }, {
3311
- cache: Ct(e.dateTime),
3312
- strategy: Bt.variadic
3335
+ cache: Pt(e.dateTime),
3336
+ strategy: St.variadic
3313
3337
  }),
3314
- getPluralRules: At(function() {
3338
+ getPluralRules: Bt(function() {
3315
3339
  for (var t, n = [], r = 0; r < arguments.length; r++)
3316
3340
  n[r] = arguments[r];
3317
- return new ((t = Intl.PluralRules).bind.apply(t, Ht([void 0], n, !1)))();
3341
+ return new ((t = Intl.PluralRules).bind.apply(t, At([void 0], n, !1)))();
3318
3342
  }, {
3319
- cache: Ct(e.pluralRules),
3320
- strategy: Bt.variadic
3343
+ cache: Pt(e.pluralRules),
3344
+ strategy: St.variadic
3321
3345
  })
3322
3346
  };
3323
3347
  }
3324
- var Ni = (
3348
+ var Oi = (
3325
3349
  /** @class */
3326
3350
  function() {
3327
3351
  function e(t, n, r, i) {
@@ -3335,12 +3359,12 @@ var Ni = (
3335
3359
  var l = a.formatToParts(c);
3336
3360
  if (l.length === 1)
3337
3361
  return l[0].value;
3338
- var u = l.reduce(function(h, d) {
3339
- return !h.length || d.type !== X.literal || typeof h[h.length - 1] != "string" ? h.push(d.value) : h[h.length - 1] += d.value, h;
3362
+ var u = l.reduce(function(f, d) {
3363
+ return !f.length || d.type !== V.literal || typeof f[f.length - 1] != "string" ? f.push(d.value) : f[f.length - 1] += d.value, f;
3340
3364
  }, []);
3341
3365
  return u.length <= 1 ? u[0] || "" : u;
3342
3366
  }, this.formatToParts = function(c) {
3343
- return ct(a.ast, a.locales, a.formatters, a.formats, c, void 0, a.message);
3367
+ return ht(a.ast, a.locales, a.formatters, a.formats, c, void 0, a.message);
3344
3368
  }, this.resolvedOptions = function() {
3345
3369
  var c;
3346
3370
  return {
@@ -3353,13 +3377,13 @@ var Ni = (
3353
3377
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3354
3378
  var o = i || {};
3355
3379
  o.formatters;
3356
- var s = $r(o, ["formatters"]);
3380
+ var s = jr(o, ["formatters"]);
3357
3381
  this.ast = e.__parse(t, B(B({}, s), { locale: this.resolvedLocale }));
3358
3382
  } else
3359
3383
  this.ast = t;
3360
3384
  if (!Array.isArray(this.ast))
3361
3385
  throw new TypeError("A message must be provided as a String or AST.");
3362
- this.formats = Pi(e.formats, r), this.formatters = i && i.formatters || Ii(this.formatterCache);
3386
+ this.formats = Ii(e.formats, r), this.formatters = i && i.formatters || Ni(this.formatterCache);
3363
3387
  }
3364
3388
  return Object.defineProperty(e, "defaultLocale", {
3365
3389
  get: function() {
@@ -3372,7 +3396,7 @@ var Ni = (
3372
3396
  var n = Intl.NumberFormat.supportedLocalesOf(t);
3373
3397
  return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
3374
3398
  }
3375
- }, e.__parse = Ti, e.formats = {
3399
+ }, e.__parse = Hi, e.formats = {
3376
3400
  number: {
3377
3401
  integer: {
3378
3402
  maximumFractionDigits: 0
@@ -3433,7 +3457,7 @@ var Ni = (
3433
3457
  }, e;
3434
3458
  }()
3435
3459
  );
3436
- function Oi(e, t) {
3460
+ function Li(e, t) {
3437
3461
  if (t == null)
3438
3462
  return;
3439
3463
  if (t in e)
@@ -3454,92 +3478,92 @@ function Oi(e, t) {
3454
3478
  r = void 0;
3455
3479
  return r;
3456
3480
  }
3457
- const Ee = {}, Li = (e, t, n) => n && (t in Ee || (Ee[t] = {}), e in Ee[t] || (Ee[t][e] = n), n), Xn = (e, t) => {
3481
+ const Ee = {}, Mi = (e, t, n) => n && (t in Ee || (Ee[t] = {}), e in Ee[t] || (Ee[t][e] = n), n), Zn = (e, t) => {
3458
3482
  if (t == null)
3459
3483
  return;
3460
3484
  if (t in Ee && e in Ee[t])
3461
3485
  return Ee[t][e];
3462
- const n = vt(t);
3486
+ const n = xt(t);
3463
3487
  for (let r = 0; r < n.length; r++) {
3464
- const i = n[r], a = Ri(i, e);
3488
+ const i = n[r], a = Di(i, e);
3465
3489
  if (a)
3466
- return Li(e, t, a);
3490
+ return Mi(e, t, a);
3467
3491
  }
3468
3492
  };
3469
- let jt;
3470
- const Ve = gt({});
3471
- function Mi(e) {
3472
- return jt[e] || null;
3493
+ let Xt;
3494
+ const ze = bt({});
3495
+ function Ri(e) {
3496
+ return Xt[e] || null;
3473
3497
  }
3474
- function Wn(e) {
3475
- return e in jt;
3498
+ function qn(e) {
3499
+ return e in Xt;
3476
3500
  }
3477
- function Ri(e, t) {
3478
- if (!Wn(e))
3501
+ function Di(e, t) {
3502
+ if (!qn(e))
3479
3503
  return null;
3480
- const n = Mi(e);
3481
- return Oi(n, t);
3504
+ const n = Ri(e);
3505
+ return Li(n, t);
3482
3506
  }
3483
- function Di(e) {
3507
+ function Ui(e) {
3484
3508
  if (e == null)
3485
3509
  return;
3486
- const t = vt(e);
3510
+ const t = xt(e);
3487
3511
  for (let n = 0; n < t.length; n++) {
3488
3512
  const r = t[n];
3489
- if (Wn(r))
3513
+ if (qn(r))
3490
3514
  return r;
3491
3515
  }
3492
3516
  }
3493
- function Zn(e, ...t) {
3494
- delete Ee[e], Ve.update((n) => (n[e] = Gr.all([n[e] || {}, ...t]), n));
3517
+ function Jn(e, ...t) {
3518
+ delete Ee[e], ze.update((n) => (n[e] = kr.all([n[e] || {}, ...t]), n));
3495
3519
  }
3496
- je(
3497
- [Ve],
3520
+ Ve(
3521
+ [ze],
3498
3522
  ([e]) => Object.keys(e)
3499
3523
  );
3500
- Ve.subscribe((e) => jt = e);
3501
- const ht = {};
3502
- function Ui(e, t) {
3503
- ht[e].delete(t), ht[e].size === 0 && delete ht[e];
3524
+ ze.subscribe((e) => Xt = e);
3525
+ const ft = {};
3526
+ function Fi(e, t) {
3527
+ ft[e].delete(t), ft[e].size === 0 && delete ft[e];
3504
3528
  }
3505
- function qn(e) {
3506
- return ht[e];
3529
+ function Qn(e) {
3530
+ return ft[e];
3507
3531
  }
3508
- function Fi(e) {
3509
- return vt(e).map((t) => {
3510
- const n = qn(t);
3532
+ function Gi(e) {
3533
+ return xt(e).map((t) => {
3534
+ const n = Qn(t);
3511
3535
  return [t, n ? [...n] : []];
3512
3536
  }).filter(([, t]) => t.length > 0);
3513
3537
  }
3514
- function Ft(e) {
3515
- return e == null ? !1 : vt(e).some(
3538
+ function Gt(e) {
3539
+ return e == null ? !1 : xt(e).some(
3516
3540
  (t) => {
3517
3541
  var n;
3518
- return (n = qn(t)) == null ? void 0 : n.size;
3542
+ return (n = Qn(t)) == null ? void 0 : n.size;
3519
3543
  }
3520
3544
  );
3521
3545
  }
3522
- function Gi(e, t) {
3546
+ function $i(e, t) {
3523
3547
  return Promise.all(
3524
- t.map((r) => (Ui(e, r), r().then((i) => i.default || i)))
3525
- ).then((r) => Zn(e, ...r));
3548
+ t.map((r) => (Fi(e, r), r().then((i) => i.default || i)))
3549
+ ).then((r) => Jn(e, ...r));
3526
3550
  }
3527
3551
  const Ye = {};
3528
- function Jn(e) {
3529
- if (!Ft(e))
3552
+ function Yn(e) {
3553
+ if (!Gt(e))
3530
3554
  return e in Ye ? Ye[e] : Promise.resolve();
3531
- const t = Fi(e);
3555
+ const t = Gi(e);
3532
3556
  return Ye[e] = Promise.all(
3533
3557
  t.map(
3534
- ([n, r]) => Gi(n, r)
3558
+ ([n, r]) => $i(n, r)
3535
3559
  )
3536
3560
  ).then(() => {
3537
- if (Ft(e))
3538
- return Jn(e);
3561
+ if (Gt(e))
3562
+ return Yn(e);
3539
3563
  delete Ye[e];
3540
3564
  }), Ye[e];
3541
3565
  }
3542
- const $i = {
3566
+ const ki = {
3543
3567
  number: {
3544
3568
  scientific: { notation: "scientific" },
3545
3569
  engineering: { notation: "engineering" },
@@ -3568,183 +3592,183 @@ const $i = {
3568
3592
  timeZoneName: "short"
3569
3593
  }
3570
3594
  }
3571
- }, ki = {
3595
+ }, ji = {
3572
3596
  fallbackLocale: null,
3573
3597
  loadingDelay: 200,
3574
- formats: $i,
3598
+ formats: ki,
3575
3599
  warnOnMissingMessages: !0,
3576
3600
  handleMissingMessage: void 0,
3577
3601
  ignoreTag: !0
3578
- }, ji = ki;
3579
- function ke() {
3580
- return ji;
3602
+ }, Vi = ji;
3603
+ function je() {
3604
+ return Vi;
3581
3605
  }
3582
- const Pt = gt(!1);
3583
- var Vi = Object.defineProperty, zi = Object.defineProperties, Xi = Object.getOwnPropertyDescriptors, cn = Object.getOwnPropertySymbols, Wi = Object.prototype.hasOwnProperty, Zi = Object.prototype.propertyIsEnumerable, hn = (e, t, n) => t in e ? Vi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, qi = (e, t) => {
3606
+ const It = bt(!1);
3607
+ var zi = Object.defineProperty, Xi = Object.defineProperties, Wi = Object.getOwnPropertyDescriptors, fn = Object.getOwnPropertySymbols, Zi = Object.prototype.hasOwnProperty, qi = Object.prototype.propertyIsEnumerable, pn = (e, t, n) => t in e ? zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ji = (e, t) => {
3584
3608
  for (var n in t || (t = {}))
3585
- Wi.call(t, n) && hn(e, n, t[n]);
3586
- if (cn)
3587
- for (var n of cn(t))
3588
- Zi.call(t, n) && hn(e, n, t[n]);
3609
+ Zi.call(t, n) && pn(e, n, t[n]);
3610
+ if (fn)
3611
+ for (var n of fn(t))
3612
+ qi.call(t, n) && pn(e, n, t[n]);
3589
3613
  return e;
3590
- }, Ji = (e, t) => zi(e, Xi(t));
3591
- let Gt;
3592
- const mt = gt(null);
3593
- function fn(e) {
3614
+ }, Qi = (e, t) => Xi(e, Wi(t));
3615
+ let $t;
3616
+ const dt = bt(null);
3617
+ function mn(e) {
3594
3618
  return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
3595
3619
  }
3596
- function vt(e, t = ke().fallbackLocale) {
3597
- const n = fn(e);
3598
- return t ? [.../* @__PURE__ */ new Set([...n, ...fn(t)])] : n;
3620
+ function xt(e, t = je().fallbackLocale) {
3621
+ const n = mn(e);
3622
+ return t ? [.../* @__PURE__ */ new Set([...n, ...mn(t)])] : n;
3599
3623
  }
3600
- function Ae() {
3601
- return Gt != null ? Gt : void 0;
3624
+ function Se() {
3625
+ return $t != null ? $t : void 0;
3602
3626
  }
3603
- mt.subscribe((e) => {
3604
- Gt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3627
+ dt.subscribe((e) => {
3628
+ $t = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
3605
3629
  });
3606
- const Qi = (e) => {
3607
- if (e && Di(e) && Ft(e)) {
3608
- const { loadingDelay: t } = ke();
3630
+ const Yi = (e) => {
3631
+ if (e && Ui(e) && Gt(e)) {
3632
+ const { loadingDelay: t } = je();
3609
3633
  let n;
3610
- return typeof window != "undefined" && Ae() != null && t ? n = window.setTimeout(
3611
- () => Pt.set(!0),
3634
+ return typeof window != "undefined" && Se() != null && t ? n = window.setTimeout(
3635
+ () => It.set(!0),
3612
3636
  t
3613
- ) : Pt.set(!0), Jn(e).then(() => {
3614
- mt.set(e);
3637
+ ) : It.set(!0), Yn(e).then(() => {
3638
+ dt.set(e);
3615
3639
  }).finally(() => {
3616
- clearTimeout(n), Pt.set(!1);
3640
+ clearTimeout(n), It.set(!1);
3617
3641
  });
3618
3642
  }
3619
- return mt.set(e);
3620
- }, _e = Ji(qi({}, mt), {
3621
- set: Qi
3622
- }), xt = (e) => {
3643
+ return dt.set(e);
3644
+ }, _e = Qi(Ji({}, dt), {
3645
+ set: Yi
3646
+ }), Et = (e) => {
3623
3647
  const t = /* @__PURE__ */ Object.create(null);
3624
3648
  return (r) => {
3625
3649
  const i = JSON.stringify(r);
3626
3650
  return i in t ? t[i] : t[i] = e(r);
3627
3651
  };
3628
3652
  };
3629
- var Yi = Object.defineProperty, dt = Object.getOwnPropertySymbols, Qn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, pn = (e, t, n) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Vt = (e, t) => {
3653
+ var Ki = Object.defineProperty, gt = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable, dn = (e, t, n) => t in e ? Ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Wt = (e, t) => {
3630
3654
  for (var n in t || (t = {}))
3631
- Qn.call(t, n) && pn(e, n, t[n]);
3632
- if (dt)
3633
- for (var n of dt(t))
3634
- Yn.call(t, n) && pn(e, n, t[n]);
3655
+ Kn.call(t, n) && dn(e, n, t[n]);
3656
+ if (gt)
3657
+ for (var n of gt(t))
3658
+ er.call(t, n) && dn(e, n, t[n]);
3635
3659
  return e;
3636
- }, ze = (e, t) => {
3660
+ }, Xe = (e, t) => {
3637
3661
  var n = {};
3638
3662
  for (var r in e)
3639
- Qn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3640
- if (e != null && dt)
3641
- for (var r of dt(e))
3642
- t.indexOf(r) < 0 && Yn.call(e, r) && (n[r] = e[r]);
3663
+ Kn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
3664
+ if (e != null && gt)
3665
+ for (var r of gt(e))
3666
+ t.indexOf(r) < 0 && er.call(e, r) && (n[r] = e[r]);
3643
3667
  return n;
3644
3668
  };
3645
3669
  const nt = (e, t) => {
3646
- const { formats: n } = ke();
3670
+ const { formats: n } = je();
3647
3671
  if (e in n && t in n[e])
3648
3672
  return n[e][t];
3649
3673
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
3650
- }, Ki = xt(
3674
+ }, ea = Et(
3651
3675
  (e) => {
3652
- var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3676
+ var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3653
3677
  if (n == null)
3654
3678
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
3655
3679
  return r && (i = nt("number", r)), new Intl.NumberFormat(n, i);
3656
3680
  }
3657
- ), ea = xt(
3681
+ ), ta = Et(
3658
3682
  (e) => {
3659
- var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3683
+ var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3660
3684
  if (n == null)
3661
3685
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
3662
3686
  return r ? i = nt("date", r) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(n, i);
3663
3687
  }
3664
- ), ta = xt(
3688
+ ), na = Et(
3665
3689
  (e) => {
3666
- var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
3690
+ var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
3667
3691
  if (n == null)
3668
3692
  throw new Error(
3669
3693
  '[svelte-i18n] A "locale" must be set to format time values'
3670
3694
  );
3671
3695
  return r ? i = nt("time", r) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(n, i);
3672
3696
  }
3673
- ), na = (e = {}) => {
3697
+ ), ra = (e = {}) => {
3674
3698
  var t = e, {
3675
- locale: n = Ae()
3676
- } = t, r = ze(t, [
3699
+ locale: n = Se()
3700
+ } = t, r = Xe(t, [
3677
3701
  "locale"
3678
3702
  ]);
3679
- return Ki(Vt({ locale: n }, r));
3680
- }, ra = (e = {}) => {
3703
+ return ea(Wt({ locale: n }, r));
3704
+ }, ia = (e = {}) => {
3681
3705
  var t = e, {
3682
- locale: n = Ae()
3683
- } = t, r = ze(t, [
3706
+ locale: n = Se()
3707
+ } = t, r = Xe(t, [
3684
3708
  "locale"
3685
3709
  ]);
3686
- return ea(Vt({ locale: n }, r));
3687
- }, ia = (e = {}) => {
3710
+ return ta(Wt({ locale: n }, r));
3711
+ }, aa = (e = {}) => {
3688
3712
  var t = e, {
3689
- locale: n = Ae()
3690
- } = t, r = ze(t, [
3713
+ locale: n = Se()
3714
+ } = t, r = Xe(t, [
3691
3715
  "locale"
3692
3716
  ]);
3693
- return ta(Vt({ locale: n }, r));
3694
- }, aa = xt(
3717
+ return na(Wt({ locale: n }, r));
3718
+ }, oa = Et(
3695
3719
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
3696
- (e, t = Ae()) => new Ni(e, t, ke().formats, {
3697
- ignoreTag: ke().ignoreTag
3720
+ (e, t = Se()) => new Oi(e, t, je().formats, {
3721
+ ignoreTag: je().ignoreTag
3698
3722
  })
3699
- ), oa = (e, t = {}) => {
3723
+ ), sa = (e, t = {}) => {
3700
3724
  var n, r, i, a;
3701
3725
  let o = t;
3702
3726
  typeof e == "object" && (o = e, e = o.id);
3703
3727
  const {
3704
3728
  values: s,
3705
- locale: c = Ae(),
3729
+ locale: c = Se(),
3706
3730
  default: l
3707
3731
  } = o;
3708
3732
  if (c == null)
3709
3733
  throw new Error(
3710
3734
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
3711
3735
  );
3712
- let u = Xn(e, c);
3736
+ let u = Zn(e, c);
3713
3737
  if (!u)
3714
- u = (a = (i = (r = (n = ke()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
3738
+ u = (a = (i = (r = (n = je()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
3715
3739
  else if (typeof u != "string")
3716
3740
  return console.warn(
3717
3741
  `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof u}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
3718
3742
  ), u;
3719
3743
  if (!s)
3720
3744
  return u;
3721
- let h = u;
3745
+ let f = u;
3722
3746
  try {
3723
- h = aa(u, c).format(s);
3747
+ f = oa(u, c).format(s);
3724
3748
  } catch (d) {
3725
3749
  d instanceof Error && console.warn(
3726
3750
  `[svelte-i18n] Message "${e}" has syntax error:`,
3727
3751
  d.message
3728
3752
  );
3729
3753
  }
3730
- return h;
3731
- }, sa = (e, t) => ia(t).format(e), ua = (e, t) => ra(t).format(e), la = (e, t) => na(t).format(e), ca = (e, t = Ae()) => Xn(e, t), ha = je([_e, Ve], () => oa);
3732
- je([_e], () => sa);
3733
- je([_e], () => ua);
3734
- je([_e], () => la);
3735
- je([_e, Ve], () => ca);
3736
- function fa({ withLocale: e, translations: t }) {
3754
+ return f;
3755
+ }, la = (e, t) => aa(t).format(e), ua = (e, t) => ia(t).format(e), ca = (e, t) => ra(t).format(e), ha = (e, t = Se()) => Zn(e, t), fa = Ve([_e, ze], () => sa);
3756
+ Ve([_e], () => la);
3757
+ Ve([_e], () => ua);
3758
+ Ve([_e], () => ca);
3759
+ Ve([_e, ze], () => ha);
3760
+ function pa({ withLocale: e, translations: t }) {
3737
3761
  _e.subscribe((n) => {
3738
- n == null && (Ve.set(t), _e.set(e));
3762
+ n == null && (ze.set(t), _e.set(e));
3739
3763
  });
3740
3764
  }
3741
- function mn(e, t) {
3742
- Zn(e, t);
3765
+ function gn(e, t) {
3766
+ Jn(e, t);
3743
3767
  }
3744
- function pa(e) {
3768
+ function ma(e) {
3745
3769
  _e.set(e);
3746
3770
  }
3747
- const dn = {
3771
+ const bn = {
3748
3772
  en: {
3749
3773
  vaultExchange: "Vault Exchange",
3750
3774
  debitPlaceHolder: "Debit amount",
@@ -3793,116 +3817,116 @@ const dn = {
3793
3817
  "gm.payments.internal_server_error": "Cüzdan değişiminde bir hata oluştu"
3794
3818
  }
3795
3819
  };
3796
- function ma(e) {
3797
- or(e, "svelte-1d83vyn", "*{margin:0;padding:0}.player-account-vault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;border:1px solid var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #22B04E) 0px 0px 10px;gap:var(--emw--spacing-medium, 15px)}.player-account-vault .playerVaultContainer{width:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-small, 5px);padding:var(--emw--spacing-medium, 10px);box-sizing:border-box}.player-account-vault .playerVaultContainer .balanceContainer{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400);gap:var(--emw--spacing-small, 10px);font-family:inherit}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-large, 25px)}.player-account-vault .playerVaultContainer .headerContainer{margin-right:auto;margin-bottom:auto}.player-account-vault .playerVaultContainer .headerContainer h1{width:100%;text-align:center;font-family:inherit;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400)}.player-account-vault .containerExchanges{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;position:relative;gap:var(--emw--spacing-small, 10px);background:var(--emfe-w-color-primary, #22B04E);padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom,.player-account-vault .containerExchanges .containerExchangeTo{width:inherit;height:inherit;display:flex;flex-direction:column;justify-content:center;align-self:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .exchangeHeader,.player-account-vault .containerExchanges .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;color:var(--emfe-w-color-white, #fff);font-family:inherit}.player-account-vault .containerExchanges .containerExchangeFrom .flexingContainerRow,.player-account-vault .containerExchanges .containerExchangeTo .flexingContainerRow{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;gap:var(--emw--spacing-small, 10px);max-width:200px}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{text-align:center;padding:5px 0px;margin:0;border:2px solid var(--emw--button-border-color, #22B04E);color:var(--emfe-w-color-black, #000000)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input{width:100%}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{width:100%}.player-account-vault .containerExchanges .exchangeDetailsWrapper{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerIconExchange{margin:auto;padding-top:20px}.player-account-vault .containerExchanges .containerIconExchange .iconExchange{width:20px;height:20px;transform:rotateZ(-90deg)}.player-account-vault .containerExchanges .containerIconExchange .iconExchange path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault{width:15px;height:15px;position:absolute;top:85%;right:5%;padding:var(--emw--spacing-medium, 10px);background:var(--emfe-w-color-primary, #22B04E);border:3px solid var(--emfe-w-color-white, #fff);border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault.active .iconToggleVault{transform:rotateZ(180deg)}.player-account-vault .vaultDropDown{width:100%;height:0px;margin:0px;display:flex;flex-direction:column;box-sizing:border-box;overflow:auto;scrollbar-width:none;transition:all 0.5s ease-in-out;opacity:0;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 15px);color:var(--emw--color-white, #fff);font-family:inherit}.player-account-vault .vaultDropDown div{display:inherit;flex-direction:row;justify-content:space-between;padding:var(--emw--spacing-medium, 15px) var(--emw--spacing-large, 30px);background:var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px}.player-account-vault .vaultDropDown.active{padding:var(--emw--spacing-large, 20px) var(--emw--spacing-medium, 10px);opacity:1}.player-account-vault .notificationsContainer{width:100%;max-height:0px;padding:0px;box-sizing:border-box;transition:all 0.5s ease-in-out}.player-account-vault .notificationsContainer div{text-align:center;padding:var(--emw--spacing-medium, 15px);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px;color:var(--emfe-w-color-white, #fff);opacity:0;transform:scale(0);transition:inherit;box-sizing:inherit;font-family:inherit}.player-account-vault .notificationsContainer .error{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.player-account-vault .notificationsContainer .success{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #22B04E))}.player-account-vault .notificationsContainer .action{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #abb022))}.player-account-vault .notificationsContainer.error,.player-account-vault .notificationsContainer.success,.player-account-vault .notificationsContainer.action{max-height:200px;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer button{width:100px;height:30px;border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--font-size-medium, 15px);border-radius:var(--emw--button-border-radius, 5px);background:var(--emfe-w-color-primary, #22B04E);color:var(--emfe-w-button-typography, var(--emw--button-text-color, #FFFFFF))}.player-account-vault .actionsContainer .disabled{cursor:default;background:var(--emfe-w-color-gray-150, #828282)}@media only screen and (max-width: 300px){.player-account-vault .playerVaultContainer .headerContainer h1{text-align:left;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer p{text-align:right;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-medium, 20px)}}");
3820
+ function da(e) {
3821
+ lr(e, "svelte-1d83vyn", "*{margin:0;padding:0}.player-account-vault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;border:1px solid var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #22B04E) 0px 0px 10px;gap:var(--emw--spacing-medium, 15px)}.player-account-vault .playerVaultContainer{width:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-small, 5px);padding:var(--emw--spacing-medium, 10px);box-sizing:border-box}.player-account-vault .playerVaultContainer .balanceContainer{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400);gap:var(--emw--spacing-small, 10px);font-family:inherit}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-large, 25px)}.player-account-vault .playerVaultContainer .headerContainer{margin-right:auto;margin-bottom:auto}.player-account-vault .playerVaultContainer .headerContainer h1{width:100%;text-align:center;font-family:inherit;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400)}.player-account-vault .containerExchanges{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;position:relative;gap:var(--emw--spacing-small, 10px);background:var(--emfe-w-color-primary, #22B04E);padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom,.player-account-vault .containerExchanges .containerExchangeTo{width:inherit;height:inherit;display:flex;flex-direction:column;justify-content:center;align-self:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .exchangeHeader,.player-account-vault .containerExchanges .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;color:var(--emfe-w-color-white, #fff);font-family:inherit}.player-account-vault .containerExchanges .containerExchangeFrom .flexingContainerRow,.player-account-vault .containerExchanges .containerExchangeTo .flexingContainerRow{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;gap:var(--emw--spacing-small, 10px);max-width:200px}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{text-align:center;padding:5px 0px;margin:0;border:2px solid var(--emw--button-border-color, #22B04E);color:var(--emfe-w-color-black, #000000)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input{width:100%}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{width:100%}.player-account-vault .containerExchanges .exchangeDetailsWrapper{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerIconExchange{margin:auto;padding-top:20px}.player-account-vault .containerExchanges .containerIconExchange .iconExchange{width:20px;height:20px;transform:rotateZ(-90deg)}.player-account-vault .containerExchanges .containerIconExchange .iconExchange path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault{width:15px;height:15px;position:absolute;top:85%;right:5%;padding:var(--emw--spacing-medium, 10px);background:var(--emfe-w-color-primary, #22B04E);border:3px solid var(--emfe-w-color-white, #fff);border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault.active .iconToggleVault{transform:rotateZ(180deg)}.player-account-vault .vaultDropDown{width:100%;height:0px;margin:0px;display:flex;flex-direction:column;box-sizing:border-box;overflow:auto;scrollbar-width:none;transition:all 0.5s ease-in-out;opacity:0;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 15px);color:var(--emw--color-white, #fff);font-family:inherit}.player-account-vault .vaultDropDown div{display:inherit;flex-direction:row;justify-content:space-between;padding:var(--emw--spacing-medium, 15px) var(--emw--spacing-large, 30px);background:var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px}.player-account-vault .vaultDropDown.active{padding:var(--emw--spacing-large, 20px) var(--emw--spacing-medium, 10px);opacity:1}.player-account-vault .notificationsContainer{width:100%;max-height:0px;padding:0px;box-sizing:border-box;transition:all 0.5s ease-in-out}.player-account-vault .notificationsContainer div{text-align:center;padding:var(--emw--spacing-medium, 15px);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px;color:var(--emfe-w-color-white, #fff);opacity:0;transform:scale(0);transition:inherit;box-sizing:inherit;font-family:inherit}.player-account-vault .notificationsContainer .error{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.player-account-vault .notificationsContainer .success{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #22B04E))}.player-account-vault .notificationsContainer .action{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #abb022))}.player-account-vault .notificationsContainer.error,.player-account-vault .notificationsContainer.success,.player-account-vault .notificationsContainer.action{max-height:200px;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer button{width:100px;height:30px;border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--font-size-medium, 15px);border-radius:var(--emw--button-border-radius, 5px);background:var(--emfe-w-color-primary, #22B04E);color:var(--emfe-w-button-typography, var(--emw--button-text-color, #FFFFFF))}.player-account-vault .actionsContainer .disabled{cursor:default;background:var(--emfe-w-color-gray-150, #828282)}@media only screen and (max-width: 300px){.player-account-vault .playerVaultContainer .headerContainer h1{text-align:left;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer p{text-align:right;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-medium, 20px)}}");
3798
3822
  }
3799
- function gn(e, t, n) {
3823
+ function yn(e, t, n) {
3800
3824
  const r = e.slice();
3801
3825
  return r[64] = t[n], r[65] = t, r[66] = n, r;
3802
3826
  }
3803
- function bn(e, t, n) {
3827
+ function vn(e, t, n) {
3804
3828
  const r = e.slice();
3805
3829
  return r[67] = t[n], r;
3806
3830
  }
3807
- function yn(e, t, n) {
3831
+ function xn(e, t, n) {
3808
3832
  const r = e.slice();
3809
3833
  return r[67] = t[n], r;
3810
3834
  }
3811
- function vn(e) {
3835
+ function En(e) {
3812
3836
  let t, n = (
3813
3837
  /*balance*/
3814
3838
  e[67].currency + ""
3815
3839
  ), r, i, a;
3816
3840
  return {
3817
3841
  c() {
3818
- t = E("option"), r = j(n), i = R(), t.__value = a = /*balance*/
3842
+ t = _("option"), r = $(n), i = M(), t.__value = a = /*balance*/
3819
3843
  e[67].currency, xe(t, t.__value);
3820
3844
  },
3821
3845
  m(o, s) {
3822
- Q(o, t, s), m(t, r), m(t, i);
3846
+ J(o, t, s), m(t, r), m(t, i);
3823
3847
  },
3824
3848
  p(o, s) {
3825
3849
  s[0] & /*playerFilteredBalances*/
3826
3850
  8192 && n !== (n = /*balance*/
3827
- o[67].currency + "") && W(r, n), s[0] & /*playerFilteredBalances*/
3851
+ o[67].currency + "") && X(r, n), s[0] & /*playerFilteredBalances*/
3828
3852
  8192 && a !== (a = /*balance*/
3829
3853
  o[67].currency) && (t.__value = a, xe(t, t.__value));
3830
3854
  },
3831
3855
  d(o) {
3832
- o && Z(t);
3856
+ o && W(t);
3833
3857
  }
3834
3858
  };
3835
3859
  }
3836
- function xn(e) {
3860
+ function _n(e) {
3837
3861
  let t, n = (
3838
3862
  /*balance*/
3839
- e[67].amount > 0 && vn(e)
3863
+ e[67].amount > 0 && En(e)
3840
3864
  );
3841
3865
  return {
3842
3866
  c() {
3843
- n && n.c(), t = Bn();
3867
+ n && n.c(), t = Cn();
3844
3868
  },
3845
3869
  m(r, i) {
3846
- n && n.m(r, i), Q(r, t, i);
3870
+ n && n.m(r, i), J(r, t, i);
3847
3871
  },
3848
3872
  p(r, i) {
3849
3873
  /*balance*/
3850
- r[67].amount > 0 ? n ? n.p(r, i) : (n = vn(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
3874
+ r[67].amount > 0 ? n ? n.p(r, i) : (n = En(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
3851
3875
  },
3852
3876
  d(r) {
3853
- r && Z(t), n && n.d(r);
3877
+ r && W(t), n && n.d(r);
3854
3878
  }
3855
3879
  };
3856
3880
  }
3857
- function En(e) {
3881
+ function wn(e) {
3858
3882
  let t, n = (
3859
3883
  /*balance*/
3860
3884
  e[67].currency + ""
3861
3885
  ), r, i, a;
3862
3886
  return {
3863
3887
  c() {
3864
- t = E("option"), r = j(n), i = R(), t.__value = a = /*balance*/
3888
+ t = _("option"), r = $(n), i = M(), t.__value = a = /*balance*/
3865
3889
  e[67].currency, xe(t, t.__value);
3866
3890
  },
3867
3891
  m(o, s) {
3868
- Q(o, t, s), m(t, r), m(t, i);
3892
+ J(o, t, s), m(t, r), m(t, i);
3869
3893
  },
3870
3894
  p(o, s) {
3871
3895
  s[0] & /*playerFilteredBalances*/
3872
3896
  8192 && n !== (n = /*balance*/
3873
- o[67].currency + "") && W(r, n), s[0] & /*playerFilteredBalances*/
3897
+ o[67].currency + "") && X(r, n), s[0] & /*playerFilteredBalances*/
3874
3898
  8192 && a !== (a = /*balance*/
3875
3899
  o[67].currency) && (t.__value = a, xe(t, t.__value));
3876
3900
  },
3877
3901
  d(o) {
3878
- o && Z(t);
3902
+ o && W(t);
3879
3903
  }
3880
3904
  };
3881
3905
  }
3882
- function _n(e) {
3906
+ function Tn(e) {
3883
3907
  let t, n = (
3884
3908
  /*selectedCurrencyFrom*/
3885
3909
  e[1] !== /*balance*/
3886
- e[67].currency && En(e)
3910
+ e[67].currency && wn(e)
3887
3911
  );
3888
3912
  return {
3889
3913
  c() {
3890
- n && n.c(), t = Bn();
3914
+ n && n.c(), t = Cn();
3891
3915
  },
3892
3916
  m(r, i) {
3893
- n && n.m(r, i), Q(r, t, i);
3917
+ n && n.m(r, i), J(r, t, i);
3894
3918
  },
3895
3919
  p(r, i) {
3896
3920
  /*selectedCurrencyFrom*/
3897
3921
  r[1] !== /*balance*/
3898
- r[67].currency ? n ? n.p(r, i) : (n = En(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
3922
+ r[67].currency ? n ? n.p(r, i) : (n = wn(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
3899
3923
  },
3900
3924
  d(r) {
3901
- r && Z(t), n && n.d(r);
3925
+ r && W(t), n && n.d(r);
3902
3926
  }
3903
3927
  };
3904
3928
  }
3905
- function wn(e) {
3929
+ function Hn(e) {
3906
3930
  let t, n, r = (
3907
3931
  /*vault*/
3908
3932
  e[64].currency + ""
@@ -3913,7 +3937,7 @@ function wn(e) {
3913
3937
  /*index*/
3914
3938
  e[66]
3915
3939
  );
3916
- const h = () => (
3940
+ const f = () => (
3917
3941
  /*div_binding*/
3918
3942
  e[37](t, u)
3919
3943
  ), d = () => (
@@ -3922,26 +3946,26 @@ function wn(e) {
3922
3946
  );
3923
3947
  return {
3924
3948
  c() {
3925
- t = E("div"), n = E("p"), i = j(r), a = R(), o = E("p"), c = j(s), l = R(), H(t, "class", "vaultItem");
3949
+ t = _("div"), n = _("p"), i = $(r), a = M(), o = _("p"), c = $(s), l = M(), H(t, "class", "vaultItem");
3926
3950
  },
3927
- m(b, v) {
3928
- Q(b, t, v), m(t, n), m(n, i), m(t, a), m(t, o), m(o, c), m(t, l), h();
3951
+ m(y, x) {
3952
+ J(y, t, x), m(t, n), m(n, i), m(t, a), m(t, o), m(o, c), m(t, l), f();
3929
3953
  },
3930
- p(b, v) {
3931
- e = b, v[0] & /*dropDownVaults*/
3954
+ p(y, x) {
3955
+ e = y, x[0] & /*dropDownVaults*/
3932
3956
  16384 && r !== (r = /*vault*/
3933
- e[64].currency + "") && W(i, r), v[0] & /*dropDownVaults*/
3957
+ e[64].currency + "") && X(i, r), x[0] & /*dropDownVaults*/
3934
3958
  16384 && s !== (s = /*vault*/
3935
- e[64].amount + "") && W(c, s), u !== /*index*/
3959
+ e[64].amount + "") && X(c, s), u !== /*index*/
3936
3960
  e[66] && (d(), u = /*index*/
3937
- e[66], h());
3961
+ e[66], f());
3938
3962
  },
3939
- d(b) {
3940
- b && Z(t), d();
3963
+ d(y) {
3964
+ y && W(t), d();
3941
3965
  }
3942
3966
  };
3943
3967
  }
3944
- function da(e) {
3968
+ function ga(e) {
3945
3969
  let t, n = (
3946
3970
  /*$_*/
3947
3971
  e[18]("Exchange") + ""
@@ -3951,29 +3975,29 @@ function da(e) {
3951
3975
  ), s, c, l;
3952
3976
  return {
3953
3977
  c() {
3954
- t = E("button"), r = j(n), i = R(), a = E("button"), s = j(o), t.disabled = /*exchangeDisabled*/
3955
- e[6], k(
3978
+ t = _("button"), r = $(n), i = M(), a = _("button"), s = $(o), t.disabled = /*exchangeDisabled*/
3979
+ e[6], G(
3956
3980
  t,
3957
3981
  "disabled",
3958
3982
  /*exchangeDisabled*/
3959
3983
  e[6]
3960
3984
  ), a.disabled = /*exchangeDisabled*/
3961
- e[6], k(
3985
+ e[6], G(
3962
3986
  a,
3963
3987
  "disabled",
3964
3988
  /*exchangeDisabled*/
3965
3989
  e[6]
3966
3990
  );
3967
3991
  },
3968
- m(u, h) {
3969
- Q(u, t, h), m(t, r), Q(u, i, h), Q(u, a, h), m(a, s), c || (l = [
3970
- te(
3992
+ m(u, f) {
3993
+ J(u, t, f), m(t, r), J(u, i, f), J(u, a, f), m(a, s), c || (l = [
3994
+ K(
3971
3995
  t,
3972
3996
  "click",
3973
3997
  /*walletExchange*/
3974
3998
  e[21]
3975
3999
  ),
3976
- te(
4000
+ K(
3977
4001
  a,
3978
4002
  "click",
3979
4003
  /*resetUiToDefault*/
@@ -3981,23 +4005,23 @@ function da(e) {
3981
4005
  )
3982
4006
  ], c = !0);
3983
4007
  },
3984
- p(u, h) {
3985
- h[0] & /*$_*/
4008
+ p(u, f) {
4009
+ f[0] & /*$_*/
3986
4010
  262144 && n !== (n = /*$_*/
3987
- u[18]("Exchange") + "") && W(r, n), h[0] & /*exchangeDisabled*/
4011
+ u[18]("Exchange") + "") && X(r, n), f[0] & /*exchangeDisabled*/
3988
4012
  64 && (t.disabled = /*exchangeDisabled*/
3989
- u[6]), h[0] & /*exchangeDisabled*/
3990
- 64 && k(
4013
+ u[6]), f[0] & /*exchangeDisabled*/
4014
+ 64 && G(
3991
4015
  t,
3992
4016
  "disabled",
3993
4017
  /*exchangeDisabled*/
3994
4018
  u[6]
3995
- ), h[0] & /*$_*/
4019
+ ), f[0] & /*$_*/
3996
4020
  262144 && o !== (o = /*$_*/
3997
- u[18]("Reset") + "") && W(s, o), h[0] & /*exchangeDisabled*/
4021
+ u[18]("Reset") + "") && X(s, o), f[0] & /*exchangeDisabled*/
3998
4022
  64 && (a.disabled = /*exchangeDisabled*/
3999
- u[6]), h[0] & /*exchangeDisabled*/
4000
- 64 && k(
4023
+ u[6]), f[0] & /*exchangeDisabled*/
4024
+ 64 && G(
4001
4025
  a,
4002
4026
  "disabled",
4003
4027
  /*exchangeDisabled*/
@@ -4005,11 +4029,11 @@ function da(e) {
4005
4029
  );
4006
4030
  },
4007
4031
  d(u) {
4008
- u && (Z(t), Z(i), Z(a)), c = !1, we(l);
4032
+ u && (W(t), W(i), W(a)), c = !1, we(l);
4009
4033
  }
4010
4034
  };
4011
4035
  }
4012
- function ga(e) {
4036
+ function ba(e) {
4013
4037
  let t, n = (
4014
4038
  /*$_*/
4015
4039
  e[18]("Accept") + ""
@@ -4019,17 +4043,17 @@ function ga(e) {
4019
4043
  ), s, c, l;
4020
4044
  return {
4021
4045
  c() {
4022
- t = E("button"), r = j(n), i = R(), a = E("button"), s = j(o);
4046
+ t = _("button"), r = $(n), i = M(), a = _("button"), s = $(o);
4023
4047
  },
4024
- m(u, h) {
4025
- Q(u, t, h), m(t, r), Q(u, i, h), Q(u, a, h), m(a, s), c || (l = [
4026
- te(
4048
+ m(u, f) {
4049
+ J(u, t, f), m(t, r), J(u, i, f), J(u, a, f), m(a, s), c || (l = [
4050
+ K(
4027
4051
  t,
4028
4052
  "click",
4029
4053
  /*feeAcceptStep*/
4030
4054
  e[22]
4031
4055
  ),
4032
- te(
4056
+ K(
4033
4057
  a,
4034
4058
  "click",
4035
4059
  /*resetUiToDefault*/
@@ -4037,360 +4061,360 @@ function ga(e) {
4037
4061
  )
4038
4062
  ], c = !0);
4039
4063
  },
4040
- p(u, h) {
4041
- h[0] & /*$_*/
4064
+ p(u, f) {
4065
+ f[0] & /*$_*/
4042
4066
  262144 && n !== (n = /*$_*/
4043
- u[18]("Accept") + "") && W(r, n), h[0] & /*$_*/
4067
+ u[18]("Accept") + "") && X(r, n), f[0] & /*$_*/
4044
4068
  262144 && o !== (o = /*$_*/
4045
- u[18]("Decline") + "") && W(s, o);
4069
+ u[18]("Decline") + "") && X(s, o);
4046
4070
  },
4047
4071
  d(u) {
4048
- u && (Z(t), Z(i), Z(a)), c = !1, we(l);
4072
+ u && (W(t), W(i), W(a)), c = !1, we(l);
4049
4073
  }
4050
4074
  };
4051
4075
  }
4052
- function ba(e) {
4076
+ function ya(e) {
4053
4077
  let t, n, r, i, a = (
4054
4078
  /*$_*/
4055
4079
  e[18]("vaultExchange") + ""
4056
4080
  ), o, s, c, l, u = (
4057
4081
  /*$_*/
4058
4082
  e[18]("currentBalance") + ""
4059
- ), h, d, b, v = (
4083
+ ), f, d, y, x = (
4060
4084
  /*playerBalance*/
4061
4085
  e[15].amount + ""
4062
- ), I, F, N = (
4086
+ ), I, U, N = (
4063
4087
  /*playerBalance*/
4064
4088
  e[15].currency + ""
4065
- ), D, U, P, O, q, ne = (
4089
+ ), R, D, P, O, Z, ee = (
4066
4090
  /*$_*/
4067
4091
  e[18]("exchangeFrom") + ""
4068
- ), se, Te, he, fe, V, J, pe, G, Be, Y, Xe, re, me, Se = (
4092
+ ), ae, Te, le, ue, k, q, ce, F, Ce, Q, We, te, he, fe = (
4069
4093
  /*$_*/
4070
4094
  e[18]("exchangeTo") + ""
4071
- ), We, Ze, de, $, Ce, Pe, rt, ie, qe, be, ye, Je, Ie, Qe, M, ge, it, K, ae, Ne, Oe = (
4095
+ ), Ze, rt, pe, j, He, Ae, qe, ne, it, me, de, Pe, Ie, at, re, Ne, Je, L, z, Oe, Le = (
4072
4096
  /*$_*/
4073
4097
  e[18](
4074
4098
  /*errorCode*/
4075
4099
  e[3]
4076
4100
  ) + ""
4077
- ), at, He, p, y, S = Me(
4101
+ ), ot, Be, Qe, st, ge = Re(
4078
4102
  /*playerFilteredBalances*/
4079
4103
  e[13]
4080
- ), x = [];
4081
- for (let f = 0; f < S.length; f += 1)
4082
- x[f] = xn(yn(e, S, f));
4083
- let w = Me(
4104
+ ), h = [];
4105
+ for (let p = 0; p < ge.length; p += 1)
4106
+ h[p] = _n(xn(e, ge, p));
4107
+ let b = Re(
4084
4108
  /*playerFilteredBalances*/
4085
4109
  e[13]
4086
- ), L = [];
4087
- for (let f = 0; f < w.length; f += 1)
4088
- L[f] = _n(bn(e, w, f));
4089
- let ue = Me(
4110
+ ), E = [];
4111
+ for (let p = 0; p < b.length; p += 1)
4112
+ E[p] = Tn(vn(e, b, p));
4113
+ let S = Re(
4090
4114
  /*dropDownVaults*/
4091
4115
  e[14]
4092
- ), z = [];
4093
- for (let f = 0; f < ue.length; f += 1)
4094
- z[f] = wn(gn(e, ue, f));
4095
- function zt(f, A) {
4116
+ ), v = [];
4117
+ for (let p = 0; p < S.length; p += 1)
4118
+ v[p] = Hn(yn(e, S, p));
4119
+ function be(p, A) {
4096
4120
  return (
4097
4121
  /*hasTransactionFee*/
4098
- f[12] && !/*isFeeAccepted*/
4099
- f[11] ? ga : da
4122
+ p[12] && !/*isFeeAccepted*/
4123
+ p[11] ? ba : ga
4100
4124
  );
4101
4125
  }
4102
- let ot = zt(e), le = ot(e);
4126
+ let ye = be(e), oe = ye(e);
4103
4127
  return {
4104
4128
  c() {
4105
- t = E("div"), n = E("div"), r = E("div"), i = E("h1"), o = j(a), s = R(), c = E("div"), l = E("p"), h = j(u), d = R(), b = E("p"), I = j(v), F = R(), D = j(N), U = R(), P = E("div"), O = E("div"), q = E("p"), se = j(ne), Te = R(), he = E("div"), fe = E("div"), V = E("input"), pe = R(), G = E("select");
4106
- for (let f = 0; f < x.length; f += 1)
4107
- x[f].c();
4108
- Be = R(), Y = E("div"), Y.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="6 5 20 20" class="iconExchange"><path d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"></path></svg>', Xe = R(), re = E("div"), me = E("p"), We = j(Se), Ze = R(), de = E("div"), $ = E("input"), rt = R(), ie = E("select");
4109
- for (let f = 0; f < L.length; f += 1)
4110
- L[f].c();
4111
- qe = R(), be = E("div"), ye = Jt("svg"), Je = Jt("path"), Qe = R(), M = E("div");
4112
- for (let f = 0; f < z.length; f += 1)
4113
- z[f].c();
4114
- it = R(), K = E("div"), ae = E("div"), Ne = E("p"), at = R(), He = E("div"), le.c(), H(r, "class", "headerContainer"), H(b, "class", "playerBalance"), H(c, "class", "balanceContainer"), H(n, "class", "playerVaultContainer"), H(q, "class", "exchangeHeader"), H(V, "placeholder", J = /*$_*/
4115
- e[18]("debitPlaceHolder")), H(V, "type", "number"), H(V, "min", "0"), /*selectedCurrencyFrom*/
4129
+ t = _("div"), n = _("div"), r = _("div"), i = _("h1"), o = $(a), s = M(), c = _("div"), l = _("p"), f = $(u), d = M(), y = _("p"), I = $(x), U = M(), R = $(N), D = M(), P = _("div"), O = _("div"), Z = _("p"), ae = $(ee), Te = M(), le = _("div"), ue = _("div"), k = _("input"), ce = M(), F = _("select");
4130
+ for (let p = 0; p < h.length; p += 1)
4131
+ h[p].c();
4132
+ Ce = M(), Q = _("div"), Q.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="6 5 20 20" class="iconExchange"><path d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"></path></svg>', We = M(), te = _("div"), he = _("p"), Ze = $(fe), rt = M(), pe = _("div"), j = _("input"), qe = M(), ne = _("select");
4133
+ for (let p = 0; p < E.length; p += 1)
4134
+ E[p].c();
4135
+ it = M(), me = _("div"), de = Yt("svg"), Pe = Yt("path"), at = M(), re = _("div");
4136
+ for (let p = 0; p < v.length; p += 1)
4137
+ v[p].c();
4138
+ Je = M(), L = _("div"), z = _("div"), Oe = _("p"), ot = M(), Be = _("div"), oe.c(), H(r, "class", "headerContainer"), H(y, "class", "playerBalance"), H(c, "class", "balanceContainer"), H(n, "class", "playerVaultContainer"), H(Z, "class", "exchangeHeader"), H(k, "placeholder", q = /*$_*/
4139
+ e[18]("debitPlaceHolder")), H(k, "type", "number"), H(k, "min", "0"), /*selectedCurrencyFrom*/
4116
4140
  e[1] === void 0 && et(() => (
4117
4141
  /*select0_change_handler*/
4118
- e[33].call(G)
4119
- )), H(fe, "class", "containerInputSelect"), H(he, "class", "flexingContainerRow"), H(O, "class", "containerExchangeFrom"), H(Y, "class", "containerIconExchange"), H(me, "class", "exchangeHeader"), $.disabled = Ce = /*inputExchangeFrom*/
4120
- e[4] === 0, H($, "placeholder", Pe = /*$_*/
4121
- e[18]("creditPlaceHolder")), H($, "type", "number"), H($, "min", "0"), $.readOnly = !0, /*selectedCurrencyTo*/
4142
+ e[33].call(F)
4143
+ )), H(ue, "class", "containerInputSelect"), H(le, "class", "flexingContainerRow"), H(O, "class", "containerExchangeFrom"), H(Q, "class", "containerIconExchange"), H(he, "class", "exchangeHeader"), j.disabled = He = /*inputExchangeFrom*/
4144
+ e[4] === 0, H(j, "placeholder", Ae = /*$_*/
4145
+ e[18]("creditPlaceHolder")), H(j, "type", "number"), H(j, "min", "0"), j.readOnly = !0, /*selectedCurrencyTo*/
4122
4146
  e[2] === void 0 && et(() => (
4123
4147
  /*select1_change_handler*/
4124
- e[35].call(ie)
4125
- )), H(de, "class", "containerInputSelect"), H(re, "class", "containerExchangeTo"), H(Je, "d", "M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"), H(ye, "xmlns", "http://www.w3.org/2000/svg"), H(ye, "viewBox", "6 5 20 20"), H(ye, "class", "iconToggleVault"), H(be, "class", Ie = "containerIconVault " + /*isVaultDropDownToggled*/
4148
+ e[35].call(ne)
4149
+ )), H(pe, "class", "containerInputSelect"), H(te, "class", "containerExchangeTo"), H(Pe, "d", "M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z"), H(de, "xmlns", "http://www.w3.org/2000/svg"), H(de, "viewBox", "6 5 20 20"), H(de, "class", "iconToggleVault"), H(me, "class", Ie = "containerIconVault " + /*isVaultDropDownToggled*/
4126
4150
  (e[7] && /*dropDownVaults*/
4127
- e[14].length > 0 ? "active" : "")), H(P, "class", "containerExchanges"), H(M, "class", ge = "vaultDropDown " + /*isVaultDropDownToggled*/
4151
+ e[14].length > 0 ? "active" : "")), H(P, "class", "containerExchanges"), H(re, "class", Ne = "vaultDropDown " + /*isVaultDropDownToggled*/
4128
4152
  (e[7] && /*dropDownVaults*/
4129
- e[14].length > 0 ? "active" : "")), Qt(
4130
- M,
4153
+ e[14].length > 0 ? "active" : "")), Kt(
4154
+ re,
4131
4155
  "height",
4132
4156
  /*calculateHeight*/
4133
4157
  e[0]
4134
- ), k(
4135
- ae,
4158
+ ), G(
4159
+ z,
4136
4160
  "error",
4137
4161
  /*isError*/
4138
4162
  e[8]
4139
- ), k(
4140
- ae,
4163
+ ), G(
4164
+ z,
4141
4165
  "success",
4142
4166
  /*isSuccess*/
4143
4167
  e[9]
4144
- ), k(
4145
- ae,
4168
+ ), G(
4169
+ z,
4146
4170
  "action",
4147
4171
  /*isAction*/
4148
4172
  e[10]
4149
- ), H(K, "class", "notificationsContainer"), k(
4150
- K,
4173
+ ), H(L, "class", "notificationsContainer"), G(
4174
+ L,
4151
4175
  "error",
4152
4176
  /*isError*/
4153
4177
  e[8]
4154
- ), k(
4155
- K,
4178
+ ), G(
4179
+ L,
4156
4180
  "success",
4157
4181
  /*isSuccess*/
4158
4182
  e[9]
4159
- ), k(
4160
- K,
4183
+ ), G(
4184
+ L,
4161
4185
  "action",
4162
4186
  /*isAction*/
4163
4187
  e[10]
4164
- ), H(He, "class", "actionsContainer"), H(t, "class", "player-account-vault");
4188
+ ), H(Be, "class", "actionsContainer"), H(t, "class", "player-account-vault");
4165
4189
  },
4166
- m(f, A) {
4167
- Q(f, t, A), m(t, n), m(n, r), m(r, i), m(i, o), m(n, s), m(n, c), m(c, l), m(l, h), m(c, d), m(c, b), m(b, I), m(b, F), m(b, D), m(t, U), m(t, P), m(P, O), m(O, q), m(q, se), m(O, Te), m(O, he), m(he, fe), m(fe, V), xe(
4168
- V,
4190
+ m(p, A) {
4191
+ J(p, t, A), m(t, n), m(n, r), m(r, i), m(i, o), m(n, s), m(n, c), m(c, l), m(l, f), m(c, d), m(c, y), m(y, I), m(y, U), m(y, R), m(t, D), m(t, P), m(P, O), m(O, Z), m(Z, ae), m(O, Te), m(O, le), m(le, ue), m(ue, k), xe(
4192
+ k,
4169
4193
  /*inputExchangeFrom*/
4170
4194
  e[4]
4171
- ), m(fe, pe), m(fe, G);
4172
- for (let g = 0; g < x.length; g += 1)
4173
- x[g] && x[g].m(G, null);
4174
- st(
4175
- G,
4195
+ ), m(ue, ce), m(ue, F);
4196
+ for (let g = 0; g < h.length; g += 1)
4197
+ h[g] && h[g].m(F, null);
4198
+ lt(
4199
+ F,
4176
4200
  /*selectedCurrencyFrom*/
4177
4201
  e[1],
4178
4202
  !0
4179
- ), m(P, Be), m(P, Y), m(P, Xe), m(P, re), m(re, me), m(me, We), m(re, Ze), m(re, de), m(de, $), xe(
4180
- $,
4203
+ ), m(P, Ce), m(P, Q), m(P, We), m(P, te), m(te, he), m(he, Ze), m(te, rt), m(te, pe), m(pe, j), xe(
4204
+ j,
4181
4205
  /*inputExchangeTo*/
4182
4206
  e[5]
4183
- ), m(de, rt), m(de, ie);
4184
- for (let g = 0; g < L.length; g += 1)
4185
- L[g] && L[g].m(ie, null);
4186
- st(
4187
- ie,
4207
+ ), m(pe, qe), m(pe, ne);
4208
+ for (let g = 0; g < E.length; g += 1)
4209
+ E[g] && E[g].m(ne, null);
4210
+ lt(
4211
+ ne,
4188
4212
  /*selectedCurrencyTo*/
4189
4213
  e[2],
4190
4214
  !0
4191
- ), m(P, qe), m(P, be), m(be, ye), m(ye, Je), m(t, Qe), m(t, M);
4192
- for (let g = 0; g < z.length; g += 1)
4193
- z[g] && z[g].m(M, null);
4194
- e[38](M), m(t, it), m(t, K), m(K, ae), m(ae, Ne), Ne.innerHTML = Oe, m(t, at), m(t, He), le.m(He, null), p || (y = [
4195
- te(
4196
- V,
4215
+ ), m(P, it), m(P, me), m(me, de), m(de, Pe), m(t, at), m(t, re);
4216
+ for (let g = 0; g < v.length; g += 1)
4217
+ v[g] && v[g].m(re, null);
4218
+ e[38](re), m(t, Je), m(t, L), m(L, z), m(z, Oe), Oe.innerHTML = Le, m(t, ot), m(t, Be), oe.m(Be, null), Qe || (st = [
4219
+ K(
4220
+ k,
4197
4221
  "input",
4198
4222
  /*input0_input_handler*/
4199
4223
  e[32]
4200
4224
  ),
4201
- te(
4202
- V,
4225
+ K(
4226
+ k,
4203
4227
  "input",
4204
4228
  /*debouncedExchangeInterogation*/
4205
4229
  e[20]
4206
4230
  ),
4207
- te(
4208
- G,
4231
+ K(
4232
+ F,
4209
4233
  "change",
4210
4234
  /*select0_change_handler*/
4211
4235
  e[33]
4212
4236
  ),
4213
- te(
4214
- G,
4237
+ K(
4238
+ F,
4215
4239
  "change",
4216
4240
  /*debouncedExchangeInterogation*/
4217
4241
  e[20]
4218
4242
  ),
4219
- te(
4220
- $,
4243
+ K(
4244
+ j,
4221
4245
  "input",
4222
4246
  /*input1_input_handler*/
4223
4247
  e[34]
4224
4248
  ),
4225
- te(
4226
- ie,
4249
+ K(
4250
+ ne,
4227
4251
  "change",
4228
4252
  /*select1_change_handler*/
4229
4253
  e[35]
4230
4254
  ),
4231
- te(
4232
- ie,
4255
+ K(
4256
+ ne,
4233
4257
  "change",
4234
4258
  /*debouncedExchangeInterogation*/
4235
4259
  e[20]
4236
4260
  ),
4237
- te(
4238
- be,
4261
+ K(
4262
+ me,
4239
4263
  "click",
4240
4264
  /*click_handler*/
4241
4265
  e[36]
4242
4266
  )
4243
- ], p = !0);
4267
+ ], Qe = !0);
4244
4268
  },
4245
- p(f, A) {
4269
+ p(p, A) {
4246
4270
  if (A[0] & /*$_*/
4247
4271
  262144 && a !== (a = /*$_*/
4248
- f[18]("vaultExchange") + "") && W(o, a), A[0] & /*$_*/
4272
+ p[18]("vaultExchange") + "") && X(o, a), A[0] & /*$_*/
4249
4273
  262144 && u !== (u = /*$_*/
4250
- f[18]("currentBalance") + "") && W(h, u), A[0] & /*playerBalance*/
4251
- 32768 && v !== (v = /*playerBalance*/
4252
- f[15].amount + "") && W(I, v), A[0] & /*playerBalance*/
4274
+ p[18]("currentBalance") + "") && X(f, u), A[0] & /*playerBalance*/
4275
+ 32768 && x !== (x = /*playerBalance*/
4276
+ p[15].amount + "") && X(I, x), A[0] & /*playerBalance*/
4253
4277
  32768 && N !== (N = /*playerBalance*/
4254
- f[15].currency + "") && W(D, N), A[0] & /*$_*/
4255
- 262144 && ne !== (ne = /*$_*/
4256
- f[18]("exchangeFrom") + "") && W(se, ne), A[0] & /*$_*/
4257
- 262144 && J !== (J = /*$_*/
4258
- f[18]("debitPlaceHolder")) && H(V, "placeholder", J), A[0] & /*inputExchangeFrom*/
4259
- 16 && ft(V.value) !== /*inputExchangeFrom*/
4260
- f[4] && xe(
4261
- V,
4278
+ p[15].currency + "") && X(R, N), A[0] & /*$_*/
4279
+ 262144 && ee !== (ee = /*$_*/
4280
+ p[18]("exchangeFrom") + "") && X(ae, ee), A[0] & /*$_*/
4281
+ 262144 && q !== (q = /*$_*/
4282
+ p[18]("debitPlaceHolder")) && H(k, "placeholder", q), A[0] & /*inputExchangeFrom*/
4283
+ 16 && pt(k.value) !== /*inputExchangeFrom*/
4284
+ p[4] && xe(
4285
+ k,
4262
4286
  /*inputExchangeFrom*/
4263
- f[4]
4287
+ p[4]
4264
4288
  ), A[0] & /*playerFilteredBalances*/
4265
4289
  8192) {
4266
- S = Me(
4290
+ ge = Re(
4267
4291
  /*playerFilteredBalances*/
4268
- f[13]
4292
+ p[13]
4269
4293
  );
4270
4294
  let g;
4271
- for (g = 0; g < S.length; g += 1) {
4272
- const ve = yn(f, S, g);
4273
- x[g] ? x[g].p(ve, A) : (x[g] = xn(ve), x[g].c(), x[g].m(G, null));
4295
+ for (g = 0; g < ge.length; g += 1) {
4296
+ const ve = xn(p, ge, g);
4297
+ h[g] ? h[g].p(ve, A) : (h[g] = _n(ve), h[g].c(), h[g].m(F, null));
4274
4298
  }
4275
- for (; g < x.length; g += 1)
4276
- x[g].d(1);
4277
- x.length = S.length;
4299
+ for (; g < h.length; g += 1)
4300
+ h[g].d(1);
4301
+ h.length = ge.length;
4278
4302
  }
4279
4303
  if (A[0] & /*selectedCurrencyFrom, playerFilteredBalances*/
4280
- 8194 && st(
4281
- G,
4304
+ 8194 && lt(
4305
+ F,
4282
4306
  /*selectedCurrencyFrom*/
4283
- f[1]
4307
+ p[1]
4284
4308
  ), A[0] & /*$_*/
4285
- 262144 && Se !== (Se = /*$_*/
4286
- f[18]("exchangeTo") + "") && W(We, Se), A[0] & /*inputExchangeFrom*/
4287
- 16 && Ce !== (Ce = /*inputExchangeFrom*/
4288
- f[4] === 0) && ($.disabled = Ce), A[0] & /*$_*/
4289
- 262144 && Pe !== (Pe = /*$_*/
4290
- f[18]("creditPlaceHolder")) && H($, "placeholder", Pe), A[0] & /*inputExchangeTo*/
4291
- 32 && ft($.value) !== /*inputExchangeTo*/
4292
- f[5] && xe(
4293
- $,
4309
+ 262144 && fe !== (fe = /*$_*/
4310
+ p[18]("exchangeTo") + "") && X(Ze, fe), A[0] & /*inputExchangeFrom*/
4311
+ 16 && He !== (He = /*inputExchangeFrom*/
4312
+ p[4] === 0) && (j.disabled = He), A[0] & /*$_*/
4313
+ 262144 && Ae !== (Ae = /*$_*/
4314
+ p[18]("creditPlaceHolder")) && H(j, "placeholder", Ae), A[0] & /*inputExchangeTo*/
4315
+ 32 && pt(j.value) !== /*inputExchangeTo*/
4316
+ p[5] && xe(
4317
+ j,
4294
4318
  /*inputExchangeTo*/
4295
- f[5]
4319
+ p[5]
4296
4320
  ), A[0] & /*playerFilteredBalances, selectedCurrencyFrom*/
4297
4321
  8194) {
4298
- w = Me(
4322
+ b = Re(
4299
4323
  /*playerFilteredBalances*/
4300
- f[13]
4324
+ p[13]
4301
4325
  );
4302
4326
  let g;
4303
- for (g = 0; g < w.length; g += 1) {
4304
- const ve = bn(f, w, g);
4305
- L[g] ? L[g].p(ve, A) : (L[g] = _n(ve), L[g].c(), L[g].m(ie, null));
4327
+ for (g = 0; g < b.length; g += 1) {
4328
+ const ve = vn(p, b, g);
4329
+ E[g] ? E[g].p(ve, A) : (E[g] = Tn(ve), E[g].c(), E[g].m(ne, null));
4306
4330
  }
4307
- for (; g < L.length; g += 1)
4308
- L[g].d(1);
4309
- L.length = w.length;
4331
+ for (; g < E.length; g += 1)
4332
+ E[g].d(1);
4333
+ E.length = b.length;
4310
4334
  }
4311
4335
  if (A[0] & /*selectedCurrencyTo, playerFilteredBalances*/
4312
- 8196 && st(
4313
- ie,
4336
+ 8196 && lt(
4337
+ ne,
4314
4338
  /*selectedCurrencyTo*/
4315
- f[2]
4339
+ p[2]
4316
4340
  ), A[0] & /*isVaultDropDownToggled, dropDownVaults*/
4317
4341
  16512 && Ie !== (Ie = "containerIconVault " + /*isVaultDropDownToggled*/
4318
- (f[7] && /*dropDownVaults*/
4319
- f[14].length > 0 ? "active" : "")) && H(be, "class", Ie), A[0] & /*elements, dropDownVaults*/
4342
+ (p[7] && /*dropDownVaults*/
4343
+ p[14].length > 0 ? "active" : "")) && H(me, "class", Ie), A[0] & /*elements, dropDownVaults*/
4320
4344
  147456) {
4321
- ue = Me(
4345
+ S = Re(
4322
4346
  /*dropDownVaults*/
4323
- f[14]
4347
+ p[14]
4324
4348
  );
4325
4349
  let g;
4326
- for (g = 0; g < ue.length; g += 1) {
4327
- const ve = gn(f, ue, g);
4328
- z[g] ? z[g].p(ve, A) : (z[g] = wn(ve), z[g].c(), z[g].m(M, null));
4350
+ for (g = 0; g < S.length; g += 1) {
4351
+ const ve = yn(p, S, g);
4352
+ v[g] ? v[g].p(ve, A) : (v[g] = Hn(ve), v[g].c(), v[g].m(re, null));
4329
4353
  }
4330
- for (; g < z.length; g += 1)
4331
- z[g].d(1);
4332
- z.length = ue.length;
4354
+ for (; g < v.length; g += 1)
4355
+ v[g].d(1);
4356
+ v.length = S.length;
4333
4357
  }
4334
4358
  A[0] & /*isVaultDropDownToggled, dropDownVaults*/
4335
- 16512 && ge !== (ge = "vaultDropDown " + /*isVaultDropDownToggled*/
4336
- (f[7] && /*dropDownVaults*/
4337
- f[14].length > 0 ? "active" : "")) && H(M, "class", ge), A[0] & /*calculateHeight*/
4338
- 1 && Qt(
4339
- M,
4359
+ 16512 && Ne !== (Ne = "vaultDropDown " + /*isVaultDropDownToggled*/
4360
+ (p[7] && /*dropDownVaults*/
4361
+ p[14].length > 0 ? "active" : "")) && H(re, "class", Ne), A[0] & /*calculateHeight*/
4362
+ 1 && Kt(
4363
+ re,
4340
4364
  "height",
4341
4365
  /*calculateHeight*/
4342
- f[0]
4366
+ p[0]
4343
4367
  ), A[0] & /*$_, errorCode*/
4344
- 262152 && Oe !== (Oe = /*$_*/
4345
- f[18](
4368
+ 262152 && Le !== (Le = /*$_*/
4369
+ p[18](
4346
4370
  /*errorCode*/
4347
- f[3]
4348
- ) + "") && (Ne.innerHTML = Oe), A[0] & /*isError*/
4349
- 256 && k(
4350
- ae,
4371
+ p[3]
4372
+ ) + "") && (Oe.innerHTML = Le), A[0] & /*isError*/
4373
+ 256 && G(
4374
+ z,
4351
4375
  "error",
4352
4376
  /*isError*/
4353
- f[8]
4377
+ p[8]
4354
4378
  ), A[0] & /*isSuccess*/
4355
- 512 && k(
4356
- ae,
4379
+ 512 && G(
4380
+ z,
4357
4381
  "success",
4358
4382
  /*isSuccess*/
4359
- f[9]
4383
+ p[9]
4360
4384
  ), A[0] & /*isAction*/
4361
- 1024 && k(
4362
- ae,
4385
+ 1024 && G(
4386
+ z,
4363
4387
  "action",
4364
4388
  /*isAction*/
4365
- f[10]
4389
+ p[10]
4366
4390
  ), A[0] & /*isError*/
4367
- 256 && k(
4368
- K,
4391
+ 256 && G(
4392
+ L,
4369
4393
  "error",
4370
4394
  /*isError*/
4371
- f[8]
4395
+ p[8]
4372
4396
  ), A[0] & /*isSuccess*/
4373
- 512 && k(
4374
- K,
4397
+ 512 && G(
4398
+ L,
4375
4399
  "success",
4376
4400
  /*isSuccess*/
4377
- f[9]
4401
+ p[9]
4378
4402
  ), A[0] & /*isAction*/
4379
- 1024 && k(
4380
- K,
4403
+ 1024 && G(
4404
+ L,
4381
4405
  "action",
4382
4406
  /*isAction*/
4383
- f[10]
4384
- ), ot === (ot = zt(f)) && le ? le.p(f, A) : (le.d(1), le = ot(f), le && (le.c(), le.m(He, null)));
4407
+ p[10]
4408
+ ), ye === (ye = be(p)) && oe ? oe.p(p, A) : (oe.d(1), oe = ye(p), oe && (oe.c(), oe.m(Be, null)));
4385
4409
  },
4386
- i: oe,
4387
- o: oe,
4388
- d(f) {
4389
- f && Z(t), wt(x, f), wt(L, f), wt(z, f), e[38](null), le.d(), p = !1, we(y);
4410
+ i: ie,
4411
+ o: ie,
4412
+ d(p) {
4413
+ p && W(t), Tt(h, p), Tt(E, p), Tt(v, p), e[38](null), oe.d(), Qe = !1, we(st);
4390
4414
  }
4391
4415
  };
4392
4416
  }
4393
- function ya(e, t) {
4417
+ function va(e, t) {
4394
4418
  let n;
4395
4419
  return function(...r) {
4396
4420
  n && clearTimeout(n), n = setTimeout(
@@ -4401,90 +4425,103 @@ function ya(e, t) {
4401
4425
  );
4402
4426
  };
4403
4427
  }
4404
- function va(e, t, n) {
4428
+ function xa(e, t, n) {
4405
4429
  let r;
4406
- ar(e, ha, (p) => n(18, r = p));
4407
- let { session: i = "", userid: a = "", endpoint: o = "", lang: s = "en" } = t, { clientstyling: c = "", clientstylingurl: l = "", translationurl: u = "" } = t, { playercurrency: h = "" } = t, d = "", b = "", v = "", I = "", F = "", N = 0, D = 0, U = 0, P = !0, O = !1, q = !1, ne = !1, se = !1, Te = !0, he = !1, fe = [], V = [], J = [], pe = [], G = [], Be = [], Y = {}, Xe = {}, re = null, me = [];
4408
- const Se = () => {
4409
- pa(s);
4430
+ sr(e, fa, (h) => n(18, r = h));
4431
+ let { session: i = "", userid: a = "", endpoint: o = "", lang: s = "en" } = t, { clientstyling: c = "", clientstylingurl: l = "", translationurl: u = "" } = t, { playercurrency: f = "" } = t, d = "", y = "", x = "", I = "", U = "", N = 0, R = 0, D = 0, P = !0, O = !1, Z = !1, ee = !1, ae = !1, Te = !0, le = !1, ue = [], k = [], q = [], ce = [], F = [], Ce = [], Q = {}, We = {}, te, he = null, fe = [];
4432
+ const Ze = () => {
4433
+ ma(s);
4410
4434
  };
4411
- fa({ withLocale: "en", translations: {} });
4412
- const We = () => {
4413
- fetch(u).then((y) => y.json()).then((y) => {
4414
- Object.keys(y).forEach((S) => {
4415
- mn(S, y[S]);
4435
+ pa({ withLocale: "en", translations: {} });
4436
+ const rt = () => {
4437
+ fetch(u).then((b) => b.json()).then((b) => {
4438
+ Object.keys(b).forEach((E) => {
4439
+ gn(E, b[E]);
4416
4440
  });
4417
- }).catch((y) => {
4418
- console.error("There was a problem with the translations request.", y);
4441
+ }).catch((b) => {
4442
+ console.error("There was a problem with the translations request.", b);
4419
4443
  });
4420
4444
  };
4421
- Object.keys(dn).forEach((p) => {
4422
- mn(p, dn[p]);
4445
+ Object.keys(bn).forEach((h) => {
4446
+ gn(h, bn[h]);
4423
4447
  });
4424
- const Ze = (p) => {
4425
- O && G.length === 0 || (p.preventDefault(), n(7, O = !O), n(0, d = O ? de() : "0px"));
4426
- }, de = () => {
4427
- var w;
4428
- if (G.length === 0)
4448
+ const pe = () => {
4449
+ let h = document.createElement("style");
4450
+ h.innerHTML = c, te.appendChild(h);
4451
+ }, j = () => {
4452
+ let h = new URL(l), b = document.createElement("style");
4453
+ fetch(h.href).then((E) => E.text()).then((E) => {
4454
+ b.innerHTML = E, setTimeout(
4455
+ () => {
4456
+ te.appendChild(b);
4457
+ },
4458
+ 1
4459
+ );
4460
+ });
4461
+ }, He = (h) => {
4462
+ O && F.length === 0 || (h.preventDefault(), n(7, O = !O), n(0, d = O ? Ae() : "0px"));
4463
+ }, Ae = () => {
4464
+ var v;
4465
+ if (F.length === 0)
4429
4466
  return n(0, d = "0px");
4430
- const p = (w = me[0]) == null ? void 0 : w.clientHeight, y = G.length, S = 30, x = parseFloat(getComputedStyle(re).getPropertyValue("gap"));
4431
- return n(0, d = `${y * p + y * x + S}px`);
4432
- }, $ = () => new Promise((p, y) => {
4433
- let S = new URL(`${o}/v2/player/${a}/balance`);
4434
- fetch(S, {
4467
+ const h = (v = fe[0]) == null ? void 0 : v.clientHeight, b = F.length, E = 30, S = parseFloat(getComputedStyle(he).getPropertyValue("gap"));
4468
+ return n(0, d = `${b * h + b * S + E}px`);
4469
+ }, qe = () => new Promise((h, b) => {
4470
+ let E = new URL(`${o}/v2/player/${a}/balance`);
4471
+ fetch(E, {
4435
4472
  method: "GET",
4436
4473
  headers: {
4437
4474
  "X-SessionID": i,
4438
4475
  "Content-Type": "application/json",
4439
4476
  Accept: "application/json"
4440
4477
  }
4441
- }).then((w) => ge(w)).then((w) => {
4442
- w && (n(13, J = []), V = [], pe = [], n(14, G = []), fe = w.items, Pe().then((L) => {
4443
- L.forEach((ue) => {
4444
- Be.push(ue.code);
4445
- }), Ce(w), p();
4478
+ }).then((v) => z(v)).then((v) => {
4479
+ v && (n(13, q = []), k = [], ce = [], n(14, F = []), ue = v.items, it().then((be) => {
4480
+ be.forEach((ye) => {
4481
+ Ce.push(ye.code);
4482
+ }), ne(v), h();
4446
4483
  }));
4447
- }).catch((w) => {
4448
- y(), M("error", r("generalError")), console.error("There was an error with the player balance request.", w);
4484
+ }).catch((v) => {
4485
+ b(), L("error", r("generalError")), console.error("There was an error with the player balance request.", v);
4449
4486
  });
4450
- }), Ce = (p) => {
4451
- if (fe.forEach((y) => {
4452
- if (y.type === "Real" && !(!Be.includes(y.currency) && Be.length > 0))
4453
- switch (n(13, J = J.concat(y)), y.walletAccountType) {
4487
+ }), ne = (h) => {
4488
+ if (ue.forEach((b) => {
4489
+ if (b.type === "Real" && !(!Ce.includes(b.currency) && Ce.length > 0))
4490
+ switch (n(13, q = q.concat(b)), b.walletAccountType) {
4454
4491
  case "Ordinary":
4455
- V = V.concat(y);
4492
+ k = k.concat(b);
4456
4493
  break;
4457
4494
  case "Vault":
4458
- if (pe = pe.concat(y), y.amount === 0)
4495
+ if (ce = ce.concat(b), b.amount === 0)
4459
4496
  return;
4460
- n(14, G = G.concat(y));
4497
+ n(14, F = F.concat(b));
4461
4498
  break;
4462
4499
  }
4463
- }), n(15, Y = Object.entries(p.totalCashAmount).map(([y, S]) => ({ currency: y, amount: S }))[0]), Y.amount === 0 && !pe.find((y) => y.amount > 0))
4464
- return M("error", r("userHasNoBalances"));
4465
- n(1, b = Y.amount === 0 ? pe.find((y) => y.amount > 0).currency : Y.currency), n(2, v = Y.amount === 0 ? Y.currency : pe.find((y) => y.type === "Real").currency);
4466
- }, Pe = () => new Promise((p, y) => {
4467
- let S = new URL(`${o}/v1/player/${a}/wallet-exchange/currencies`);
4468
- fetch(S, {
4500
+ }), n(15, Q = Object.entries(h.totalCashAmount).map(([b, E]) => ({ currency: b, amount: E }))[0]), Q.amount === 0 && !ce.find((b) => b.amount > 0))
4501
+ return L("error", r("userHasNoBalances"));
4502
+ n(1, y = Q.amount === 0 ? ce.find((b) => b.amount > 0).currency : Q.currency), n(2, x = Q.amount === 0 ? Q.currency : ce.find((b) => b.type === "Real").currency);
4503
+ }, it = () => new Promise((h, b) => {
4504
+ let E = new URL(`${o}/v1/player/${a}/wallet-exchange/currencies`);
4505
+ fetch(E, {
4469
4506
  method: "GET",
4470
4507
  headers: {
4471
4508
  "X-SessionId": i,
4472
4509
  "Content-Type": "application/json",
4473
4510
  Accept: "application/json"
4474
4511
  }
4475
- }).then((w) => ge(w)).then((w) => {
4476
- w.length !== 0 && p(w.currencies);
4477
- }).catch((w) => {
4478
- y(), M("error", r("generalError")), console.error("There was an error on the allowed currencies request.", w);
4512
+ }).then((v) => z(v)).then((v) => {
4513
+ v.length !== 0 && h(v.currencies);
4514
+ }).catch((v) => {
4515
+ b(), L("error", r("generalError")), console.error("There was an error on the allowed currencies request.", v);
4479
4516
  });
4480
- }), rt = () => new Promise((p, y) => {
4481
- var x;
4482
- b === v && n(2, v = (x = J.find((w) => w.currency !== b)) == null ? void 0 : x.currency), N <= 0 && (Qe(), y());
4483
- const S = J.find((w) => w.currency === b);
4484
- N > S.amount && n(4, N = S.amount), p();
4485
- }), ie = () => {
4486
- rt().then(() => {
4487
- let p = new URL(`${o}/v2/player/${a}/check/wallet-exchange`), S = {
4517
+ }), me = () => new Promise((h, b) => {
4518
+ var S;
4519
+ y === x && n(2, x = (S = q.find((v) => v.currency !== y)) == null ? void 0 : S.currency), N <= 0 && (Je(), b());
4520
+ const E = q.find((v) => v.currency === y);
4521
+ N > E.amount && n(4, N = E.amount), h();
4522
+ }), de = () => {
4523
+ me().then(() => {
4524
+ let h = new URL(`${o}/v2/player/${a}/check/wallet-exchange`), E = {
4488
4525
  method: "POST",
4489
4526
  headers: {
4490
4527
  "X-SessionID": i,
@@ -4494,30 +4531,31 @@ function va(e, t, n) {
4494
4531
  body: JSON.stringify({
4495
4532
  userId: a,
4496
4533
  amount: N,
4497
- currency: b,
4498
- fromCurrency: b,
4499
- toCurrency: v,
4500
- payload: { PlayerCurrency: h }
4534
+ currency: y,
4535
+ fromCurrency: y,
4536
+ toCurrency: x,
4537
+ payload: { PlayerCurrency: f }
4501
4538
  })
4502
4539
  };
4503
- fetch(p, S).then((x) => ge(x)).then((x) => {
4504
- if (!x) return;
4505
- if (n(12, he = !1), n(11, Te = !1), n(10, se = !1), x.feeDetails && x.feeDetails.fees.length > 0) {
4506
- n(12, he = !0);
4507
- let L = x.feeDetails.fees.find((ue) => ue.id);
4508
- Je(L);
4540
+ fetch(h, E).then((S) => z(S)).then((S) => {
4541
+ if (!S)
4542
+ return;
4543
+ if (n(12, le = !1), n(11, Te = !1), n(10, ae = !1), S.feeDetails && S.feeDetails.fees.length > 0) {
4544
+ n(12, le = !0);
4545
+ let be = S.feeDetails.fees.find((ye) => ye.id);
4546
+ re(be);
4509
4547
  } else
4510
4548
  n(6, P = !1);
4511
- const w = x.walletActions.find((L) => L.directionName === "Credit").amount;
4512
- n(5, D = qe(w));
4513
- }).catch((x) => {
4514
- M("error", r("generalError")), console.error("There was a problem with the wallet exchange request.", x);
4549
+ const v = S.walletActions.find((be) => be.directionName === "Credit").amount;
4550
+ n(5, R = Pe(v));
4551
+ }).catch((S) => {
4552
+ L("error", r("generalError")), console.error("There was a problem with the wallet exchange request.", S);
4515
4553
  });
4516
- }).catch((p) => {
4517
- M("error", r("walletExchangeError"));
4554
+ }).catch((h) => {
4555
+ L("error", r("walletExchangeError"));
4518
4556
  });
4519
- }, qe = (p) => Math.abs(p) < 1e-6 || Math.abs(p) >= 1e6 ? p.toFixed(12).replace(/\.?0+$/, "") : p.toString(), be = ya(ie, 500), ye = () => {
4520
- let p = new URL(`${o}/v2/player/${a}/wallet-exchange`), S = {
4557
+ }, Pe = (h) => Math.abs(h) < 1e-6 || Math.abs(h) >= 1e6 ? h.toFixed(12).replace(/\.?0+$/, "") : h.toString(), Ie = va(de, 500), at = () => {
4558
+ let h = new URL(`${o}/v2/player/${a}/wallet-exchange`), E = {
4521
4559
  method: "PUT",
4522
4560
  headers: {
4523
4561
  "X-SessionID": i,
@@ -4527,137 +4565,137 @@ function va(e, t, n) {
4527
4565
  body: JSON.stringify({
4528
4566
  userId: a,
4529
4567
  amount: N,
4530
- currency: b,
4531
- fromCurrency: b,
4532
- toCurrency: v,
4533
- payload: { PlayerCurrency: h }
4568
+ currency: y,
4569
+ fromCurrency: y,
4570
+ toCurrency: x,
4571
+ payload: { PlayerCurrency: f }
4534
4572
  })
4535
4573
  };
4536
- fetch(p, S).then((x) => ge(x)).then((x) => {
4537
- x && (n(10, se = !1), n(4, N = 0), n(5, D = 0), M("success", "exchangeSuccess"), $().then((w) => {
4538
- !w || !O || de();
4539
- }).catch((w) => {
4540
- console.error("There was an error with fetching the players balance.", w);
4574
+ fetch(h, E).then((S) => z(S)).then((S) => {
4575
+ S && (n(10, ae = !1), n(4, N = 0), n(5, R = 0), L("success", "exchangeSuccess"), qe().then((v) => {
4576
+ !v || !O || Ae();
4577
+ }).catch((v) => {
4578
+ console.error("There was an error with fetching the players balance.", v);
4541
4579
  }));
4542
- }).catch((x) => {
4543
- M("error", r("generalError")), console.error("There was an error with the wallet exchange request.", x);
4580
+ }).catch((S) => {
4581
+ L("error", r("generalError")), console.error("There was an error with the wallet exchange request.", S);
4544
4582
  });
4545
- }, Je = (p) => {
4546
- U = p.amount, I = p.currency, n(11, Te = !1), M("action", r("feeAcceptNotification", {
4547
- values: { amount: U, currency: I }
4583
+ }, re = (h) => {
4584
+ D = h.amount, I = h.currency, n(11, Te = !1), L("action", r("feeAcceptNotification", {
4585
+ values: { amount: D, currency: I }
4548
4586
  }));
4549
- }, Ie = () => {
4550
- n(10, se = !1), n(6, P = !1), n(11, Te = !0);
4551
- let y = {
4552
- exchageAmount: qe(N - U),
4553
- exchageCurrency: b,
4554
- exchangedAmount: D,
4555
- exchangedCurrency: v,
4556
- feeAmount: U,
4587
+ }, Ne = () => {
4588
+ n(10, ae = !1), n(6, P = !1), n(11, Te = !0);
4589
+ let b = {
4590
+ exchageAmount: Pe(N - D),
4591
+ exchageCurrency: y,
4592
+ exchangedAmount: R,
4593
+ exchangedCurrency: x,
4594
+ feeAmount: D,
4557
4595
  feeCurrency: I
4558
4596
  };
4559
- M("action", r("feeExchangeNotification", { values: y }));
4560
- }, Qe = () => {
4561
- n(10, se = !1), n(12, he = !1), n(6, P = !0), n(5, D = 0), n(4, N = 0);
4562
- }, M = (p, y) => {
4563
- switch (p) {
4597
+ L("action", r("feeExchangeNotification", { values: b }));
4598
+ }, Je = () => {
4599
+ n(10, ae = !1), n(12, le = !1), n(6, P = !0), n(5, R = 0), n(4, N = 0);
4600
+ }, L = (h, b) => {
4601
+ switch (h) {
4564
4602
  case "error":
4565
- n(8, q = !0), n(6, P = !0), window.postMessage(
4603
+ n(8, Z = !0), n(6, P = !0), window.postMessage(
4566
4604
  {
4567
4605
  type: "WidgetNotification",
4568
- data: { type: "error", message: y }
4606
+ data: { type: "error", message: b }
4569
4607
  },
4570
4608
  window.location.href
4571
4609
  ), setTimeout(
4572
4610
  () => {
4573
- n(8, q = !1);
4611
+ n(8, Z = !1);
4574
4612
  },
4575
4613
  2e3
4576
4614
  );
4577
4615
  break;
4578
4616
  case "success":
4579
- n(9, ne = !0), n(6, P = !0), window.postMessage(
4617
+ n(9, ee = !0), n(6, P = !0), window.postMessage(
4580
4618
  {
4581
4619
  type: "WidgetNotification",
4582
- data: { type: "success", message: y }
4620
+ data: { type: "success", message: b }
4583
4621
  },
4584
4622
  window.location.href
4585
4623
  ), setTimeout(
4586
4624
  () => {
4587
- n(9, ne = !1);
4625
+ n(9, ee = !1);
4588
4626
  },
4589
4627
  2e3
4590
4628
  );
4591
4629
  break;
4592
4630
  case "action":
4593
- n(10, se = !0);
4631
+ n(10, ae = !0);
4594
4632
  break;
4595
4633
  }
4596
- n(3, F = y);
4597
- }, ge = (p) => _t(this, null, function* () {
4598
- return p.status >= 300 ? (Xe = yield p.json(), n(3, F = Xe.thirdPartyResponse.errorCode), M("error", F || "generalError")) : p.json();
4634
+ n(3, U = b);
4635
+ }, z = (h) => wt(this, null, function* () {
4636
+ return h.status >= 300 ? (We = yield h.json(), n(3, U = We.thirdPartyResponse.errorCode), L("error", U || "generalError")) : h.json();
4599
4637
  });
4600
- function it() {
4601
- N = ft(this.value), n(4, N);
4638
+ function Oe() {
4639
+ N = pt(this.value), n(4, N);
4602
4640
  }
4603
- function K() {
4604
- b = Yt(this), n(1, b), n(13, J);
4641
+ function Le() {
4642
+ y = en(this), n(1, y), n(13, q);
4605
4643
  }
4606
- function ae() {
4607
- D = ft(this.value), n(5, D);
4644
+ function ot() {
4645
+ R = pt(this.value), n(5, R);
4608
4646
  }
4609
- function Ne() {
4610
- v = Yt(this), n(2, v), n(13, J);
4647
+ function Be() {
4648
+ x = en(this), n(2, x), n(13, q);
4611
4649
  }
4612
- const Oe = (p) => {
4613
- Ze(p);
4650
+ const Qe = (h) => {
4651
+ He(h);
4614
4652
  };
4615
- function at(p, y) {
4616
- pt[p ? "unshift" : "push"](() => {
4617
- me[y] = p, n(17, me);
4653
+ function st(h, b) {
4654
+ mt[h ? "unshift" : "push"](() => {
4655
+ fe[b] = h, n(17, fe);
4618
4656
  });
4619
4657
  }
4620
- function He(p) {
4621
- pt[p ? "unshift" : "push"](() => {
4622
- re = p, n(16, re);
4658
+ function ge(h) {
4659
+ mt[h ? "unshift" : "push"](() => {
4660
+ he = h, n(16, he);
4623
4661
  });
4624
4662
  }
4625
- return e.$$set = (p) => {
4626
- "session" in p && n(24, i = p.session), "userid" in p && n(25, a = p.userid), "endpoint" in p && n(26, o = p.endpoint), "lang" in p && n(27, s = p.lang), "clientstyling" in p && n(28, c = p.clientstyling), "clientstylingurl" in p && n(29, l = p.clientstylingurl), "translationurl" in p && n(30, u = p.translationurl), "playercurrency" in p && n(31, h = p.playercurrency);
4663
+ return e.$$set = (h) => {
4664
+ "session" in h && n(24, i = h.session), "userid" in h && n(25, a = h.userid), "endpoint" in h && n(26, o = h.endpoint), "lang" in h && n(27, s = h.lang), "clientstyling" in h && n(28, c = h.clientstyling), "clientstylingurl" in h && n(29, l = h.clientstylingurl), "translationurl" in h && n(30, u = h.translationurl), "playercurrency" in h && n(31, f = h.playercurrency);
4627
4665
  }, e.$$.update = () => {
4628
4666
  e.$$.dirty[0] & /*session*/
4629
4667
  16777216, e.$$.dirty[0] & /*lang*/
4630
- 134217728 && s && Se(), e.$$.dirty[0] & /*session, userid, endpoint*/
4668
+ 134217728 && s && Ze(), e.$$.dirty[0] & /*session, userid, endpoint*/
4631
4669
  117440512 | e.$$.dirty[1] & /*playercurrency*/
4632
- 1 && i && a && o && h && $(), e.$$.dirty[0] & /*clientstyling*/
4633
- 268435456, e.$$.dirty[0] & /*clientstylingurl*/
4634
- 536870912, e.$$.dirty[0] & /*translationurl*/
4635
- 1073741824 && u && We();
4670
+ 1 && i && a && o && f && qe(), e.$$.dirty[0] & /*clientstyling*/
4671
+ 268435456 && c && te && pe(), e.$$.dirty[0] & /*clientstylingurl*/
4672
+ 536870912 && l && te && j(), e.$$.dirty[0] & /*translationurl*/
4673
+ 1073741824 && u && rt();
4636
4674
  }, [
4637
4675
  d,
4638
- b,
4639
- v,
4640
- F,
4676
+ y,
4677
+ x,
4678
+ U,
4641
4679
  N,
4642
- D,
4680
+ R,
4643
4681
  P,
4644
4682
  O,
4645
- q,
4646
- ne,
4647
- se,
4683
+ Z,
4684
+ ee,
4685
+ ae,
4648
4686
  Te,
4687
+ le,
4688
+ q,
4689
+ F,
4690
+ Q,
4649
4691
  he,
4650
- J,
4651
- G,
4652
- Y,
4653
- re,
4654
- me,
4692
+ fe,
4655
4693
  r,
4656
- Ze,
4657
- be,
4658
- ye,
4694
+ He,
4659
4695
  Ie,
4660
- Qe,
4696
+ at,
4697
+ Ne,
4698
+ Je,
4661
4699
  i,
4662
4700
  a,
4663
4701
  o,
@@ -4665,24 +4703,24 @@ function va(e, t, n) {
4665
4703
  c,
4666
4704
  l,
4667
4705
  u,
4668
- h,
4669
- it,
4670
- K,
4671
- ae,
4672
- Ne,
4706
+ f,
4673
4707
  Oe,
4674
- at,
4675
- He
4708
+ Le,
4709
+ ot,
4710
+ Be,
4711
+ Qe,
4712
+ st,
4713
+ ge
4676
4714
  ];
4677
4715
  }
4678
- class xa extends _r {
4716
+ class Ea extends Tr {
4679
4717
  constructor(t) {
4680
- super(), xr(
4718
+ super(), _r(
4681
4719
  this,
4682
4720
  t,
4683
- va,
4684
- ba,
4685
- Hn,
4721
+ xa,
4722
+ ya,
4723
+ Bn,
4686
4724
  {
4687
4725
  session: 24,
4688
4726
  userid: 25,
@@ -4693,7 +4731,7 @@ class xa extends _r {
4693
4731
  translationurl: 30,
4694
4732
  playercurrency: 31
4695
4733
  },
4696
- ma,
4734
+ da,
4697
4735
  [-1, -1, -1]
4698
4736
  );
4699
4737
  }
@@ -4701,52 +4739,52 @@ class xa extends _r {
4701
4739
  return this.$$.ctx[24];
4702
4740
  }
4703
4741
  set session(t) {
4704
- this.$$set({ session: t }), ce();
4742
+ this.$$set({ session: t }), se();
4705
4743
  }
4706
4744
  get userid() {
4707
4745
  return this.$$.ctx[25];
4708
4746
  }
4709
4747
  set userid(t) {
4710
- this.$$set({ userid: t }), ce();
4748
+ this.$$set({ userid: t }), se();
4711
4749
  }
4712
4750
  get endpoint() {
4713
4751
  return this.$$.ctx[26];
4714
4752
  }
4715
4753
  set endpoint(t) {
4716
- this.$$set({ endpoint: t }), ce();
4754
+ this.$$set({ endpoint: t }), se();
4717
4755
  }
4718
4756
  get lang() {
4719
4757
  return this.$$.ctx[27];
4720
4758
  }
4721
4759
  set lang(t) {
4722
- this.$$set({ lang: t }), ce();
4760
+ this.$$set({ lang: t }), se();
4723
4761
  }
4724
4762
  get clientstyling() {
4725
4763
  return this.$$.ctx[28];
4726
4764
  }
4727
4765
  set clientstyling(t) {
4728
- this.$$set({ clientstyling: t }), ce();
4766
+ this.$$set({ clientstyling: t }), se();
4729
4767
  }
4730
4768
  get clientstylingurl() {
4731
4769
  return this.$$.ctx[29];
4732
4770
  }
4733
4771
  set clientstylingurl(t) {
4734
- this.$$set({ clientstylingurl: t }), ce();
4772
+ this.$$set({ clientstylingurl: t }), se();
4735
4773
  }
4736
4774
  get translationurl() {
4737
4775
  return this.$$.ctx[30];
4738
4776
  }
4739
4777
  set translationurl(t) {
4740
- this.$$set({ translationurl: t }), ce();
4778
+ this.$$set({ translationurl: t }), se();
4741
4779
  }
4742
4780
  get playercurrency() {
4743
4781
  return this.$$.ctx[31];
4744
4782
  }
4745
4783
  set playercurrency(t) {
4746
- this.$$set({ playercurrency: t }), ce();
4784
+ this.$$set({ playercurrency: t }), se();
4747
4785
  }
4748
4786
  }
4749
- Er(xa, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {} }, [], [], !0);
4787
+ wr(Ea, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {} }, [], [], !0);
4750
4788
  export {
4751
- xa as default
4789
+ Ea as default
4752
4790
  };