@everymatrix/player-account-vault 0.4.1 → 0.5.1

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