@everymatrix/player-account-vault 0.1.0 → 0.1.2

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