@everymatrix/player-account-vault 0.19.11 → 0.19.13
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.
- package/components/PlayerAccountVault-B-jaJVWl.cjs +3 -0
- package/components/{PlayerAccountVault-CaHAbTnV.js → PlayerAccountVault-BtEskMQw.js} +956 -955
- package/components/{PlayerAccountVault-DSv7WtZd.js → PlayerAccountVault-CAoIke7v.js} +588 -588
- package/es2015/player-account-vault.cjs +1 -1
- package/es2015/player-account-vault.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountVault-DAU8Ricg.cjs +0 -3
|
@@ -6,7 +6,7 @@ function Wn(e) {
|
|
|
6
6
|
function pn() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function _e(e) {
|
|
10
10
|
e.forEach(Wn);
|
|
11
11
|
}
|
|
12
12
|
function ct(e) {
|
|
@@ -126,23 +126,23 @@ let ot;
|
|
|
126
126
|
function at(e) {
|
|
127
127
|
ot = e;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function qn() {
|
|
130
130
|
if (!ot)
|
|
131
131
|
throw new Error("Function called outside component initialization");
|
|
132
132
|
return ot;
|
|
133
133
|
}
|
|
134
134
|
function Kn(e) {
|
|
135
|
-
|
|
135
|
+
qn().$$.on_mount.push(e);
|
|
136
136
|
}
|
|
137
137
|
function Ir(e) {
|
|
138
|
-
|
|
138
|
+
qn().$$.on_destroy.push(e);
|
|
139
139
|
}
|
|
140
140
|
const Fe = [], Ve = [];
|
|
141
141
|
let Ue = [];
|
|
142
142
|
const Zt = [], Lr = /* @__PURE__ */ Promise.resolve();
|
|
143
|
-
let
|
|
143
|
+
let qt = !1;
|
|
144
144
|
function Nr() {
|
|
145
|
-
|
|
145
|
+
qt || (qt = !0, Lr.then(V));
|
|
146
146
|
}
|
|
147
147
|
function Kt(e) {
|
|
148
148
|
Ue.push(e);
|
|
@@ -151,21 +151,21 @@ function gn(e) {
|
|
|
151
151
|
Zt.push(e);
|
|
152
152
|
}
|
|
153
153
|
const Ft = /* @__PURE__ */ new Set();
|
|
154
|
-
let
|
|
154
|
+
let Me = 0;
|
|
155
155
|
function V() {
|
|
156
|
-
if (
|
|
156
|
+
if (Me !== 0)
|
|
157
157
|
return;
|
|
158
158
|
const e = ot;
|
|
159
159
|
do {
|
|
160
160
|
try {
|
|
161
|
-
for (;
|
|
162
|
-
const t = Fe[
|
|
163
|
-
|
|
161
|
+
for (; Me < Fe.length; ) {
|
|
162
|
+
const t = Fe[Me];
|
|
163
|
+
Me++, at(t), Rr(t.$$);
|
|
164
164
|
}
|
|
165
165
|
} catch (t) {
|
|
166
|
-
throw Fe.length = 0,
|
|
166
|
+
throw Fe.length = 0, Me = 0, t;
|
|
167
167
|
}
|
|
168
|
-
for (at(null), Fe.length = 0,
|
|
168
|
+
for (at(null), Fe.length = 0, Me = 0; Ve.length; )
|
|
169
169
|
Ve.pop()();
|
|
170
170
|
for (let t = 0; t < Ue.length; t += 1) {
|
|
171
171
|
const n = Ue[t];
|
|
@@ -175,11 +175,11 @@ function V() {
|
|
|
175
175
|
} while (Fe.length);
|
|
176
176
|
for (; Zt.length; )
|
|
177
177
|
Zt.pop()();
|
|
178
|
-
|
|
178
|
+
qt = !1, Ft.clear(), at(e);
|
|
179
179
|
}
|
|
180
180
|
function Rr(e) {
|
|
181
181
|
if (e.fragment !== null) {
|
|
182
|
-
e.update(),
|
|
182
|
+
e.update(), _e(e.before_update);
|
|
183
183
|
const t = e.dirty;
|
|
184
184
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Kt);
|
|
185
185
|
}
|
|
@@ -199,7 +199,7 @@ function Ie() {
|
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
201
|
function Le() {
|
|
202
|
-
Pe.r ||
|
|
202
|
+
Pe.r || _e(Pe.c), Pe = Pe.p;
|
|
203
203
|
}
|
|
204
204
|
function G(e, t) {
|
|
205
205
|
e && e.i && (Et.delete(e), e.i(t));
|
|
@@ -228,20 +228,20 @@ function Ge(e, t, n) {
|
|
|
228
228
|
const { fragment: r, after_update: i } = e.$$;
|
|
229
229
|
r && r.m(t, n), Kt(() => {
|
|
230
230
|
const a = e.$$.on_mount.map(Wn).filter(ct);
|
|
231
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...a) :
|
|
231
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : _e(a), e.$$.on_mount = [];
|
|
232
232
|
}), i.forEach(Kt);
|
|
233
233
|
}
|
|
234
234
|
function $e(e, t) {
|
|
235
235
|
const n = e.$$;
|
|
236
|
-
n.fragment !== null && (Or(n.after_update),
|
|
236
|
+
n.fragment !== null && (Or(n.after_update), _e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
237
237
|
}
|
|
238
238
|
function Dr(e, t) {
|
|
239
239
|
e.$$.dirty[0] === -1 && (Fe.push(e), Nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
240
240
|
}
|
|
241
|
-
function un(e, t, n, r, i, a,
|
|
242
|
-
const
|
|
241
|
+
function un(e, t, n, r, i, a, l = null, s = [-1]) {
|
|
242
|
+
const o = ot;
|
|
243
243
|
at(e);
|
|
244
|
-
const
|
|
244
|
+
const u = e.$$ = {
|
|
245
245
|
fragment: null,
|
|
246
246
|
ctx: [],
|
|
247
247
|
// state
|
|
@@ -255,30 +255,30 @@ function un(e, t, n, r, i, a, o = null, u = [-1]) {
|
|
|
255
255
|
on_disconnect: [],
|
|
256
256
|
before_update: [],
|
|
257
257
|
after_update: [],
|
|
258
|
-
context: new Map(t.context || (
|
|
258
|
+
context: new Map(t.context || (o ? o.$$.context : [])),
|
|
259
259
|
// everything else
|
|
260
260
|
callbacks: pn(),
|
|
261
|
-
dirty:
|
|
261
|
+
dirty: s,
|
|
262
262
|
skip_bound: !1,
|
|
263
|
-
root: t.target ||
|
|
263
|
+
root: t.target || o.$$.root
|
|
264
264
|
};
|
|
265
|
-
|
|
265
|
+
l && l(u.root);
|
|
266
266
|
let h = !1;
|
|
267
|
-
if (
|
|
267
|
+
if (u.ctx = n ? n(e, t.props || {}, (d, c, ...p) => {
|
|
268
268
|
const v = p.length ? p[0] : c;
|
|
269
|
-
return
|
|
270
|
-
}) : [],
|
|
269
|
+
return u.ctx && i(u.ctx[d], u.ctx[d] = v) && (!u.skip_bound && u.bound[d] && u.bound[d](v), h && Dr(e, d)), c;
|
|
270
|
+
}) : [], u.update(), h = !0, _e(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
271
271
|
if (t.hydrate) {
|
|
272
272
|
const d = Hr(t.target);
|
|
273
|
-
|
|
273
|
+
u.fragment && u.fragment.l(d), d.forEach(A);
|
|
274
274
|
} else
|
|
275
|
-
|
|
275
|
+
u.fragment && u.fragment.c();
|
|
276
276
|
t.intro && G(e.$$.fragment), Ge(e, t.target, t.anchor), V();
|
|
277
277
|
}
|
|
278
|
-
at(
|
|
278
|
+
at(o);
|
|
279
279
|
}
|
|
280
|
-
let
|
|
281
|
-
typeof HTMLElement == "function" && (
|
|
280
|
+
let Qn;
|
|
281
|
+
typeof HTMLElement == "function" && (Qn = class extends HTMLElement {
|
|
282
282
|
/** The Svelte component constructor */
|
|
283
283
|
$$ctor;
|
|
284
284
|
/** Slots */
|
|
@@ -326,11 +326,11 @@ typeof HTMLElement == "function" && (Yn = class extends HTMLElement {
|
|
|
326
326
|
* @param {HTMLElement} target
|
|
327
327
|
* @param {HTMLElement} [anchor]
|
|
328
328
|
*/
|
|
329
|
-
m: function(
|
|
330
|
-
C(
|
|
329
|
+
m: function(o, u) {
|
|
330
|
+
C(o, a, u);
|
|
331
331
|
},
|
|
332
|
-
d: function(
|
|
333
|
-
|
|
332
|
+
d: function(o) {
|
|
333
|
+
o && A(a);
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
336
|
};
|
|
@@ -373,8 +373,8 @@ typeof HTMLElement == "function" && (Yn = class extends HTMLElement {
|
|
|
373
373
|
this.$$c.$$.after_update.push(r), r();
|
|
374
374
|
for (const i in this.$$l)
|
|
375
375
|
for (const a of this.$$l[i]) {
|
|
376
|
-
const
|
|
377
|
-
this.$$l_u.set(a,
|
|
376
|
+
const l = this.$$c.$on(i, a);
|
|
377
|
+
this.$$l_u.set(a, l);
|
|
378
378
|
}
|
|
379
379
|
this.$$l = {};
|
|
380
380
|
}
|
|
@@ -425,33 +425,33 @@ function xt(e, t, n, r) {
|
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
427
|
function cn(e, t, n, r, i, a) {
|
|
428
|
-
let
|
|
428
|
+
let l = class extends Qn {
|
|
429
429
|
constructor() {
|
|
430
430
|
super(e, n, i), this.$$p_d = t;
|
|
431
431
|
}
|
|
432
432
|
static get observedAttributes() {
|
|
433
433
|
return Object.keys(t).map(
|
|
434
|
-
(
|
|
434
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
435
435
|
);
|
|
436
436
|
}
|
|
437
437
|
};
|
|
438
|
-
return Object.keys(t).forEach((
|
|
439
|
-
Object.defineProperty(
|
|
438
|
+
return Object.keys(t).forEach((s) => {
|
|
439
|
+
Object.defineProperty(l.prototype, s, {
|
|
440
440
|
get() {
|
|
441
|
-
return this.$$c &&
|
|
441
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
442
442
|
},
|
|
443
|
-
set(
|
|
444
|
-
|
|
443
|
+
set(o) {
|
|
444
|
+
o = xt(s, o, t), this.$$d[s] = o, this.$$c?.$set({ [s]: o });
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
|
-
}), r.forEach((
|
|
448
|
-
Object.defineProperty(
|
|
447
|
+
}), r.forEach((s) => {
|
|
448
|
+
Object.defineProperty(l.prototype, s, {
|
|
449
449
|
get() {
|
|
450
|
-
return this.$$c?.[
|
|
450
|
+
return this.$$c?.[s];
|
|
451
451
|
}
|
|
452
452
|
});
|
|
453
453
|
}), e.element = /** @type {any} */
|
|
454
|
-
|
|
454
|
+
l, l;
|
|
455
455
|
}
|
|
456
456
|
class hn {
|
|
457
457
|
/**
|
|
@@ -497,10 +497,10 @@ class hn {
|
|
|
497
497
|
this.$$set && !xr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
const
|
|
501
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
502
|
-
const
|
|
503
|
-
function
|
|
500
|
+
const Mr = "4";
|
|
501
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Mr);
|
|
502
|
+
const ke = [];
|
|
503
|
+
function kr(e, t) {
|
|
504
504
|
return {
|
|
505
505
|
subscribe: It(e, t).subscribe
|
|
506
506
|
};
|
|
@@ -508,57 +508,57 @@ function Mr(e, t) {
|
|
|
508
508
|
function It(e, t = B) {
|
|
509
509
|
let n;
|
|
510
510
|
const r = /* @__PURE__ */ new Set();
|
|
511
|
-
function i(
|
|
512
|
-
if (Pt(e,
|
|
513
|
-
const
|
|
514
|
-
for (const
|
|
515
|
-
|
|
516
|
-
if (
|
|
517
|
-
for (let
|
|
518
|
-
|
|
519
|
-
|
|
511
|
+
function i(s) {
|
|
512
|
+
if (Pt(e, s) && (e = s, n)) {
|
|
513
|
+
const o = !ke.length;
|
|
514
|
+
for (const u of r)
|
|
515
|
+
u[1](), ke.push(u, e);
|
|
516
|
+
if (o) {
|
|
517
|
+
for (let u = 0; u < ke.length; u += 2)
|
|
518
|
+
ke[u][0](ke[u + 1]);
|
|
519
|
+
ke.length = 0;
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function a(
|
|
524
|
-
i(
|
|
523
|
+
function a(s) {
|
|
524
|
+
i(s(e));
|
|
525
525
|
}
|
|
526
|
-
function
|
|
527
|
-
const
|
|
528
|
-
return r.add(
|
|
529
|
-
r.delete(
|
|
526
|
+
function l(s, o = B) {
|
|
527
|
+
const u = [s, o];
|
|
528
|
+
return r.add(u), r.size === 1 && (n = t(i, a) || B), s(e), () => {
|
|
529
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
530
530
|
};
|
|
531
531
|
}
|
|
532
|
-
return { set: i, update: a, subscribe:
|
|
532
|
+
return { set: i, update: a, subscribe: l };
|
|
533
533
|
}
|
|
534
534
|
function Ze(e, t, n) {
|
|
535
535
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
536
536
|
if (!i.every(Boolean))
|
|
537
537
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
538
538
|
const a = t.length < 2;
|
|
539
|
-
return
|
|
540
|
-
let
|
|
541
|
-
const
|
|
539
|
+
return kr(n, (l, s) => {
|
|
540
|
+
let o = !1;
|
|
541
|
+
const u = [];
|
|
542
542
|
let h = 0, d = B;
|
|
543
543
|
const c = () => {
|
|
544
544
|
if (h)
|
|
545
545
|
return;
|
|
546
546
|
d();
|
|
547
|
-
const v = t(r ?
|
|
548
|
-
a ?
|
|
547
|
+
const v = t(r ? u[0] : u, l, s);
|
|
548
|
+
a ? l(v) : d = ct(v) ? v : B;
|
|
549
549
|
}, p = i.map(
|
|
550
550
|
(v, b) => zn(
|
|
551
551
|
v,
|
|
552
552
|
(L) => {
|
|
553
|
-
|
|
553
|
+
u[b] = L, h &= ~(1 << b), o && c();
|
|
554
554
|
},
|
|
555
555
|
() => {
|
|
556
556
|
h |= 1 << b;
|
|
557
557
|
}
|
|
558
558
|
)
|
|
559
559
|
);
|
|
560
|
-
return
|
|
561
|
-
|
|
560
|
+
return o = !0, c(), function() {
|
|
561
|
+
_e(p), d(), o = !1;
|
|
562
562
|
};
|
|
563
563
|
});
|
|
564
564
|
}
|
|
@@ -596,15 +596,15 @@ function Zr(e, t) {
|
|
|
596
596
|
var n = t.customMerge(e);
|
|
597
597
|
return typeof n == "function" ? n : je;
|
|
598
598
|
}
|
|
599
|
-
function
|
|
599
|
+
function qr(e) {
|
|
600
600
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
601
601
|
return Object.propertyIsEnumerable.call(e, t);
|
|
602
602
|
}) : [];
|
|
603
603
|
}
|
|
604
604
|
function yn(e) {
|
|
605
|
-
return Object.keys(e).concat(
|
|
605
|
+
return Object.keys(e).concat(qr(e));
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Yn(e, t) {
|
|
608
608
|
try {
|
|
609
609
|
return t in e;
|
|
610
610
|
} catch {
|
|
@@ -612,20 +612,20 @@ function Jn(e, t) {
|
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
function Kr(e, t) {
|
|
615
|
-
return
|
|
615
|
+
return Yn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
616
616
|
}
|
|
617
|
-
function
|
|
617
|
+
function Qr(e, t, n) {
|
|
618
618
|
var r = {};
|
|
619
619
|
return n.isMergeableObject(e) && yn(e).forEach(function(i) {
|
|
620
620
|
r[i] = lt(e[i], n);
|
|
621
621
|
}), yn(t).forEach(function(i) {
|
|
622
|
-
Kr(e, i) || (
|
|
622
|
+
Kr(e, i) || (Yn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Zr(i, n)(e[i], t[i], n) : r[i] = lt(t[i], n));
|
|
623
623
|
}), r;
|
|
624
624
|
}
|
|
625
625
|
function je(e, t, n) {
|
|
626
626
|
n = n || {}, n.arrayMerge = n.arrayMerge || zr, n.isMergeableObject = n.isMergeableObject || Ur, n.cloneUnlessOtherwiseSpecified = lt;
|
|
627
627
|
var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
|
|
628
|
-
return a ? r ? n.arrayMerge(e, t, n) :
|
|
628
|
+
return a ? r ? n.arrayMerge(e, t, n) : Qr(e, t, n) : lt(t, n);
|
|
629
629
|
}
|
|
630
630
|
je.all = function(t, n) {
|
|
631
631
|
if (!Array.isArray(t))
|
|
@@ -634,34 +634,34 @@ je.all = function(t, n) {
|
|
|
634
634
|
return je(r, i, n);
|
|
635
635
|
}, {});
|
|
636
636
|
};
|
|
637
|
-
var
|
|
638
|
-
const ei = /* @__PURE__ */ Fr(
|
|
639
|
-
var
|
|
640
|
-
return
|
|
637
|
+
var Yr = je, Jr = Yr;
|
|
638
|
+
const ei = /* @__PURE__ */ Fr(Jr);
|
|
639
|
+
var Qt = function(e, t) {
|
|
640
|
+
return Qt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
641
641
|
n.__proto__ = r;
|
|
642
642
|
} || function(n, r) {
|
|
643
643
|
for (var i in r)
|
|
644
644
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
645
|
-
},
|
|
645
|
+
}, Qt(e, t);
|
|
646
646
|
};
|
|
647
647
|
function Lt(e, t) {
|
|
648
648
|
if (typeof t != "function" && t !== null)
|
|
649
649
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
650
|
-
|
|
650
|
+
Qt(e, t);
|
|
651
651
|
function n() {
|
|
652
652
|
this.constructor = e;
|
|
653
653
|
}
|
|
654
654
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
655
655
|
}
|
|
656
|
-
var
|
|
657
|
-
return
|
|
656
|
+
var fe = function() {
|
|
657
|
+
return fe = Object.assign || function(t) {
|
|
658
658
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
659
659
|
n = arguments[r];
|
|
660
660
|
for (var a in n)
|
|
661
661
|
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
662
662
|
}
|
|
663
663
|
return t;
|
|
664
|
-
},
|
|
664
|
+
}, fe.apply(this, arguments);
|
|
665
665
|
};
|
|
666
666
|
function ti(e, t) {
|
|
667
667
|
var n = {};
|
|
@@ -692,7 +692,7 @@ function ri(e, t, n, r) {
|
|
|
692
692
|
var i = ni(r) ? r : n(r), a = t.get(i);
|
|
693
693
|
return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function Jn(e, t, n) {
|
|
696
696
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
697
697
|
return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
|
|
698
698
|
}
|
|
@@ -700,11 +700,11 @@ function er(e, t, n, r, i) {
|
|
|
700
700
|
return n.bind(t, e, r, i);
|
|
701
701
|
}
|
|
702
702
|
function ii(e, t) {
|
|
703
|
-
var n = e.length === 1 ? ri :
|
|
703
|
+
var n = e.length === 1 ? ri : Jn;
|
|
704
704
|
return er(e, this, n, t.cache.create(), t.serializer);
|
|
705
705
|
}
|
|
706
706
|
function ai(e, t) {
|
|
707
|
-
return er(e, this,
|
|
707
|
+
return er(e, this, Jn, t.cache.create(), t.serializer);
|
|
708
708
|
}
|
|
709
709
|
var oi = function() {
|
|
710
710
|
return JSON.stringify(arguments);
|
|
@@ -778,7 +778,7 @@ function or(e) {
|
|
|
778
778
|
function sr(e) {
|
|
779
779
|
return !!(e && typeof e == "object" && e.type === Xe.number);
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function Yt(e) {
|
|
782
782
|
return !!(e && typeof e == "object" && e.type === Xe.dateTime);
|
|
783
783
|
}
|
|
784
784
|
var lr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, hi = /(?:[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;
|
|
@@ -890,15 +890,15 @@ function pi(e) {
|
|
|
890
890
|
for (var t = e.split(di).filter(function(c) {
|
|
891
891
|
return c.length > 0;
|
|
892
892
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
893
|
-
var a = i[r],
|
|
894
|
-
if (
|
|
893
|
+
var a = i[r], l = a.split("/");
|
|
894
|
+
if (l.length === 0)
|
|
895
895
|
throw new Error("Invalid number skeleton");
|
|
896
|
-
for (var
|
|
897
|
-
var d = h[
|
|
896
|
+
for (var s = l[0], o = l.slice(1), u = 0, h = o; u < h.length; u++) {
|
|
897
|
+
var d = h[u];
|
|
898
898
|
if (d.length === 0)
|
|
899
899
|
throw new Error("Invalid number skeleton");
|
|
900
900
|
}
|
|
901
|
-
n.push({ stem:
|
|
901
|
+
n.push({ stem: s, options: o });
|
|
902
902
|
}
|
|
903
903
|
return n;
|
|
904
904
|
}
|
|
@@ -1005,13 +1005,13 @@ function yi(e) {
|
|
|
1005
1005
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1006
1006
|
continue;
|
|
1007
1007
|
case "scientific":
|
|
1008
|
-
t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(
|
|
1009
|
-
return F(F({},
|
|
1008
|
+
t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(o, u) {
|
|
1009
|
+
return F(F({}, o), xn(u));
|
|
1010
1010
|
}, {}));
|
|
1011
1011
|
continue;
|
|
1012
1012
|
case "engineering":
|
|
1013
|
-
t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(
|
|
1014
|
-
return F(F({},
|
|
1013
|
+
t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(o, u) {
|
|
1014
|
+
return F(F({}, o), xn(u));
|
|
1015
1015
|
}, {}));
|
|
1016
1016
|
continue;
|
|
1017
1017
|
case "notation-simple":
|
|
@@ -1056,8 +1056,8 @@ function yi(e) {
|
|
|
1056
1056
|
case "integer-width":
|
|
1057
1057
|
if (i.options.length > 1)
|
|
1058
1058
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1059
|
-
i.options[0].replace(gi, function(
|
|
1060
|
-
if (
|
|
1059
|
+
i.options[0].replace(gi, function(o, u, h, d, c, p) {
|
|
1060
|
+
if (u)
|
|
1061
1061
|
t.minimumIntegerDigits = h.length;
|
|
1062
1062
|
else {
|
|
1063
1063
|
if (d && c)
|
|
@@ -1076,8 +1076,8 @@ function yi(e) {
|
|
|
1076
1076
|
if (_n.test(i.stem)) {
|
|
1077
1077
|
if (i.options.length > 1)
|
|
1078
1078
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1079
|
-
i.stem.replace(_n, function(
|
|
1080
|
-
return h === "*" ? t.minimumFractionDigits =
|
|
1079
|
+
i.stem.replace(_n, function(o, u, h, d, c, p) {
|
|
1080
|
+
return h === "*" ? t.minimumFractionDigits = u.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1081
1081
|
});
|
|
1082
1082
|
var a = i.options[0];
|
|
1083
1083
|
a === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = F(F({}, t), En(a)));
|
|
@@ -1087,10 +1087,10 @@ function yi(e) {
|
|
|
1087
1087
|
t = F(F({}, t), En(i.stem));
|
|
1088
1088
|
continue;
|
|
1089
1089
|
}
|
|
1090
|
-
var
|
|
1091
|
-
|
|
1092
|
-
var
|
|
1093
|
-
|
|
1090
|
+
var l = hr(i.stem);
|
|
1091
|
+
l && (t = F(F({}, t), l));
|
|
1092
|
+
var s = bi(i.stem);
|
|
1093
|
+
s && (t = F(F({}, t), s));
|
|
1094
1094
|
}
|
|
1095
1095
|
return t;
|
|
1096
1096
|
}
|
|
@@ -2515,11 +2515,11 @@ function vi(e, t) {
|
|
|
2515
2515
|
if (i === "j") {
|
|
2516
2516
|
for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2517
2517
|
a++, r++;
|
|
2518
|
-
var
|
|
2519
|
-
for ((
|
|
2520
|
-
n +=
|
|
2521
|
-
for (;
|
|
2522
|
-
n =
|
|
2518
|
+
var l = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), o = "a", u = _i(t);
|
|
2519
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2520
|
+
n += o;
|
|
2521
|
+
for (; l-- > 0; )
|
|
2522
|
+
n = u + n;
|
|
2523
2523
|
} else
|
|
2524
2524
|
i === "J" ? n += "H" : n += i;
|
|
2525
2525
|
}
|
|
@@ -2553,12 +2553,12 @@ function H(e, t) {
|
|
|
2553
2553
|
}
|
|
2554
2554
|
var wi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ai = !!String.fromCodePoint, Ci = !!Object.fromEntries, Ti = !!String.prototype.codePointAt, Bi = !!String.prototype.trimStart, Si = !!String.prototype.trimEnd, Hi = !!Number.isSafeInteger, Pi = Hi ? Number.isSafeInteger : function(e) {
|
|
2555
2555
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2556
|
-
},
|
|
2556
|
+
}, Jt = !0;
|
|
2557
2557
|
try {
|
|
2558
2558
|
var Ii = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2559
|
-
|
|
2559
|
+
Jt = (($t = Ii.exec("a")) === null || $t === void 0 ? void 0 : $t[0]) === "a";
|
|
2560
2560
|
} catch {
|
|
2561
|
-
|
|
2561
|
+
Jt = !1;
|
|
2562
2562
|
}
|
|
2563
2563
|
var wn = wi ? (
|
|
2564
2564
|
// Native
|
|
@@ -2575,10 +2575,10 @@ var wn = wi ? (
|
|
|
2575
2575
|
function() {
|
|
2576
2576
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2577
2577
|
t[n] = arguments[n];
|
|
2578
|
-
for (var r = "", i = t.length, a = 0,
|
|
2579
|
-
if (
|
|
2580
|
-
throw RangeError(
|
|
2581
|
-
r +=
|
|
2578
|
+
for (var r = "", i = t.length, a = 0, l; i > a; ) {
|
|
2579
|
+
if (l = t[a++], l > 1114111)
|
|
2580
|
+
throw RangeError(l + " is not a valid code point");
|
|
2581
|
+
r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
|
|
2582
2582
|
}
|
|
2583
2583
|
return r;
|
|
2584
2584
|
}
|
|
@@ -2588,8 +2588,8 @@ var wn = wi ? (
|
|
|
2588
2588
|
// Ponyfill
|
|
2589
2589
|
function(t) {
|
|
2590
2590
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2591
|
-
var a = i[r],
|
|
2592
|
-
n[
|
|
2591
|
+
var a = i[r], l = a[0], s = a[1];
|
|
2592
|
+
n[l] = s;
|
|
2593
2593
|
}
|
|
2594
2594
|
return n;
|
|
2595
2595
|
}
|
|
@@ -2633,7 +2633,7 @@ function dr(e, t) {
|
|
|
2633
2633
|
return new RegExp(e, t);
|
|
2634
2634
|
}
|
|
2635
2635
|
var tn;
|
|
2636
|
-
if (
|
|
2636
|
+
if (Jt) {
|
|
2637
2637
|
var Cn = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2638
2638
|
tn = function(t, n) {
|
|
2639
2639
|
var r;
|
|
@@ -2645,7 +2645,7 @@ if (qt) {
|
|
|
2645
2645
|
tn = function(t, n) {
|
|
2646
2646
|
for (var r = []; ; ) {
|
|
2647
2647
|
var i = fr(t, n);
|
|
2648
|
-
if (i === void 0 || pr(i) ||
|
|
2648
|
+
if (i === void 0 || pr(i) || Mi(i))
|
|
2649
2649
|
break;
|
|
2650
2650
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2651
2651
|
}
|
|
@@ -2665,33 +2665,33 @@ var Ri = (
|
|
|
2665
2665
|
for (var i = []; !this.isEOF(); ) {
|
|
2666
2666
|
var a = this.char();
|
|
2667
2667
|
if (a === 123) {
|
|
2668
|
-
var
|
|
2669
|
-
if (
|
|
2670
|
-
return
|
|
2671
|
-
i.push(
|
|
2668
|
+
var l = this.parseArgument(t, r);
|
|
2669
|
+
if (l.err)
|
|
2670
|
+
return l;
|
|
2671
|
+
i.push(l.val);
|
|
2672
2672
|
} else {
|
|
2673
2673
|
if (a === 125 && t > 0)
|
|
2674
2674
|
break;
|
|
2675
2675
|
if (a === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2676
|
-
var
|
|
2676
|
+
var s = this.clonePosition();
|
|
2677
2677
|
this.bump(), i.push({
|
|
2678
2678
|
type: D.pound,
|
|
2679
|
-
location: H(
|
|
2679
|
+
location: H(s, this.clonePosition())
|
|
2680
2680
|
});
|
|
2681
2681
|
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2682
2682
|
if (r)
|
|
2683
2683
|
break;
|
|
2684
2684
|
return this.error(T.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
|
|
2685
2685
|
} else if (a === 60 && !this.ignoreTag && nn(this.peek() || 0)) {
|
|
2686
|
-
var
|
|
2687
|
-
if (
|
|
2688
|
-
return
|
|
2689
|
-
i.push(
|
|
2686
|
+
var l = this.parseTag(t, n);
|
|
2687
|
+
if (l.err)
|
|
2688
|
+
return l;
|
|
2689
|
+
i.push(l.val);
|
|
2690
2690
|
} else {
|
|
2691
|
-
var
|
|
2692
|
-
if (
|
|
2693
|
-
return
|
|
2694
|
-
i.push(
|
|
2691
|
+
var l = this.parseLiteral(t, n);
|
|
2692
|
+
if (l.err)
|
|
2693
|
+
return l;
|
|
2694
|
+
i.push(l.val);
|
|
2695
2695
|
}
|
|
2696
2696
|
}
|
|
2697
2697
|
}
|
|
@@ -2713,20 +2713,20 @@ var Ri = (
|
|
|
2713
2713
|
var a = this.parseMessage(t + 1, n, !0);
|
|
2714
2714
|
if (a.err)
|
|
2715
2715
|
return a;
|
|
2716
|
-
var
|
|
2716
|
+
var l = a.val, s = this.clonePosition();
|
|
2717
2717
|
if (this.bumpIf("</")) {
|
|
2718
2718
|
if (this.isEOF() || !nn(this.char()))
|
|
2719
|
-
return this.error(T.INVALID_TAG, H(
|
|
2720
|
-
var
|
|
2721
|
-
return i !==
|
|
2719
|
+
return this.error(T.INVALID_TAG, H(s, this.clonePosition()));
|
|
2720
|
+
var o = this.clonePosition(), u = this.parseTagName();
|
|
2721
|
+
return i !== u ? this.error(T.UNMATCHED_CLOSING_TAG, H(o, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2722
2722
|
val: {
|
|
2723
2723
|
type: D.tag,
|
|
2724
2724
|
value: i,
|
|
2725
|
-
children:
|
|
2725
|
+
children: l,
|
|
2726
2726
|
location: H(r, this.clonePosition())
|
|
2727
2727
|
},
|
|
2728
2728
|
err: null
|
|
2729
|
-
} : this.error(T.INVALID_TAG, H(
|
|
2729
|
+
} : this.error(T.INVALID_TAG, H(s, this.clonePosition())));
|
|
2730
2730
|
} else
|
|
2731
2731
|
return this.error(T.UNCLOSED_TAG, H(r, this.clonePosition()));
|
|
2732
2732
|
} else
|
|
@@ -2743,21 +2743,21 @@ var Ri = (
|
|
|
2743
2743
|
i += a;
|
|
2744
2744
|
continue;
|
|
2745
2745
|
}
|
|
2746
|
-
var
|
|
2747
|
-
if (
|
|
2748
|
-
i +=
|
|
2746
|
+
var l = this.tryParseUnquoted(t, n);
|
|
2747
|
+
if (l) {
|
|
2748
|
+
i += l;
|
|
2749
2749
|
continue;
|
|
2750
2750
|
}
|
|
2751
|
-
var
|
|
2752
|
-
if (
|
|
2753
|
-
i +=
|
|
2751
|
+
var s = this.tryParseLeftAngleBracket();
|
|
2752
|
+
if (s) {
|
|
2753
|
+
i += s;
|
|
2754
2754
|
continue;
|
|
2755
2755
|
}
|
|
2756
2756
|
break;
|
|
2757
2757
|
}
|
|
2758
|
-
var
|
|
2758
|
+
var o = H(r, this.clonePosition());
|
|
2759
2759
|
return {
|
|
2760
|
-
val: { type: D.literal, value: i, location:
|
|
2760
|
+
val: { type: D.literal, value: i, location: o },
|
|
2761
2761
|
err: null
|
|
2762
2762
|
};
|
|
2763
2763
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2832,18 +2832,18 @@ var Ri = (
|
|
|
2832
2832
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2833
2833
|
var t = this.clonePosition(), n = this.offset(), r = tn(this.message, n), i = n + r.length;
|
|
2834
2834
|
this.bumpTo(i);
|
|
2835
|
-
var a = this.clonePosition(),
|
|
2836
|
-
return { value: r, location:
|
|
2835
|
+
var a = this.clonePosition(), l = H(t, a);
|
|
2836
|
+
return { value: r, location: l };
|
|
2837
2837
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2838
|
-
var a,
|
|
2839
|
-
switch (
|
|
2838
|
+
var a, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, o = this.clonePosition();
|
|
2839
|
+
switch (s) {
|
|
2840
2840
|
case "":
|
|
2841
|
-
return this.error(T.EXPECT_ARGUMENT_TYPE, H(
|
|
2841
|
+
return this.error(T.EXPECT_ARGUMENT_TYPE, H(l, o));
|
|
2842
2842
|
case "number":
|
|
2843
2843
|
case "date":
|
|
2844
2844
|
case "time": {
|
|
2845
2845
|
this.bumpSpace();
|
|
2846
|
-
var
|
|
2846
|
+
var u = null;
|
|
2847
2847
|
if (this.bumpIf(",")) {
|
|
2848
2848
|
this.bumpSpace();
|
|
2849
2849
|
var h = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
@@ -2853,16 +2853,16 @@ var Ri = (
|
|
|
2853
2853
|
if (c.length === 0)
|
|
2854
2854
|
return this.error(T.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
|
|
2855
2855
|
var p = H(h, this.clonePosition());
|
|
2856
|
-
|
|
2856
|
+
u = { style: c, styleLocation: p };
|
|
2857
2857
|
}
|
|
2858
2858
|
var v = this.tryParseArgumentClose(i);
|
|
2859
2859
|
if (v.err)
|
|
2860
2860
|
return v;
|
|
2861
2861
|
var b = H(i, this.clonePosition());
|
|
2862
|
-
if (
|
|
2863
|
-
var L = Li(
|
|
2864
|
-
if (
|
|
2865
|
-
var d = this.parseNumberSkeletonFromString(L,
|
|
2862
|
+
if (u && wn(u?.style, "::", 0)) {
|
|
2863
|
+
var L = Li(u.style.slice(2));
|
|
2864
|
+
if (s === "number") {
|
|
2865
|
+
var d = this.parseNumberSkeletonFromString(L, u.styleLocation);
|
|
2866
2866
|
return d.err ? d : {
|
|
2867
2867
|
val: { type: D.number, value: r, location: b, style: d.val },
|
|
2868
2868
|
err: null
|
|
@@ -2875,9 +2875,9 @@ var Ri = (
|
|
|
2875
2875
|
var c = {
|
|
2876
2876
|
type: Xe.dateTime,
|
|
2877
2877
|
pattern: N,
|
|
2878
|
-
location:
|
|
2878
|
+
location: u.styleLocation,
|
|
2879
2879
|
parsedOptions: this.shouldParseSkeletons ? fi(N) : {}
|
|
2880
|
-
}, R =
|
|
2880
|
+
}, R = s === "date" ? D.date : D.time;
|
|
2881
2881
|
return {
|
|
2882
2882
|
val: { type: R, value: r, location: b, style: c },
|
|
2883
2883
|
err: null
|
|
@@ -2886,10 +2886,10 @@ var Ri = (
|
|
|
2886
2886
|
}
|
|
2887
2887
|
return {
|
|
2888
2888
|
val: {
|
|
2889
|
-
type:
|
|
2889
|
+
type: s === "number" ? D.number : s === "date" ? D.date : D.time,
|
|
2890
2890
|
value: r,
|
|
2891
2891
|
location: b,
|
|
2892
|
-
style: (a =
|
|
2892
|
+
style: (a = u?.style) !== null && a !== void 0 ? a : null
|
|
2893
2893
|
},
|
|
2894
2894
|
err: null
|
|
2895
2895
|
};
|
|
@@ -2901,29 +2901,29 @@ var Ri = (
|
|
|
2901
2901
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2902
2902
|
return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS, H(_, Bt({}, _)));
|
|
2903
2903
|
this.bumpSpace();
|
|
2904
|
-
var $ = this.parseIdentifierIfPossible(),
|
|
2905
|
-
if (
|
|
2904
|
+
var $ = this.parseIdentifierIfPossible(), M = 0;
|
|
2905
|
+
if (s !== "select" && $.value === "offset") {
|
|
2906
2906
|
if (!this.bumpIf(":"))
|
|
2907
2907
|
return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
|
|
2908
2908
|
this.bumpSpace();
|
|
2909
2909
|
var d = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2910
2910
|
if (d.err)
|
|
2911
2911
|
return d;
|
|
2912
|
-
this.bumpSpace(), $ = this.parseIdentifierIfPossible(),
|
|
2912
|
+
this.bumpSpace(), $ = this.parseIdentifierIfPossible(), M = d.val;
|
|
2913
2913
|
}
|
|
2914
|
-
var Z = this.tryParsePluralOrSelectOptions(t,
|
|
2914
|
+
var Z = this.tryParsePluralOrSelectOptions(t, s, n, $);
|
|
2915
2915
|
if (Z.err)
|
|
2916
2916
|
return Z;
|
|
2917
2917
|
var v = this.tryParseArgumentClose(i);
|
|
2918
2918
|
if (v.err)
|
|
2919
2919
|
return v;
|
|
2920
|
-
var
|
|
2921
|
-
return
|
|
2920
|
+
var de = H(i, this.clonePosition());
|
|
2921
|
+
return s === "select" ? {
|
|
2922
2922
|
val: {
|
|
2923
2923
|
type: D.select,
|
|
2924
2924
|
value: r,
|
|
2925
2925
|
options: An(Z.val),
|
|
2926
|
-
location:
|
|
2926
|
+
location: de
|
|
2927
2927
|
},
|
|
2928
2928
|
err: null
|
|
2929
2929
|
} : {
|
|
@@ -2931,15 +2931,15 @@ var Ri = (
|
|
|
2931
2931
|
type: D.plural,
|
|
2932
2932
|
value: r,
|
|
2933
2933
|
options: An(Z.val),
|
|
2934
|
-
offset:
|
|
2935
|
-
pluralType:
|
|
2936
|
-
location:
|
|
2934
|
+
offset: M,
|
|
2935
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2936
|
+
location: de
|
|
2937
2937
|
},
|
|
2938
2938
|
err: null
|
|
2939
2939
|
};
|
|
2940
2940
|
}
|
|
2941
2941
|
default:
|
|
2942
|
-
return this.error(T.INVALID_ARGUMENT_TYPE, H(
|
|
2942
|
+
return this.error(T.INVALID_ARGUMENT_TYPE, H(l, o));
|
|
2943
2943
|
}
|
|
2944
2944
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2945
2945
|
return this.isEOF() || this.char() !== 125 ? this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -2995,20 +2995,20 @@ var Ri = (
|
|
|
2995
2995
|
err: null
|
|
2996
2996
|
};
|
|
2997
2997
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2998
|
-
for (var a,
|
|
2999
|
-
if (
|
|
2998
|
+
for (var a, l = !1, s = [], o = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
|
|
2999
|
+
if (u.length === 0) {
|
|
3000
3000
|
var d = this.clonePosition();
|
|
3001
3001
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3002
3002
|
var c = this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR, T.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3003
3003
|
if (c.err)
|
|
3004
3004
|
return c;
|
|
3005
|
-
h = H(d, this.clonePosition()),
|
|
3005
|
+
h = H(d, this.clonePosition()), u = this.message.slice(d.offset, this.offset());
|
|
3006
3006
|
} else
|
|
3007
3007
|
break;
|
|
3008
3008
|
}
|
|
3009
|
-
if (
|
|
3009
|
+
if (o.has(u))
|
|
3010
3010
|
return this.error(n === "select" ? T.DUPLICATE_SELECT_ARGUMENT_SELECTOR : T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
3011
|
-
|
|
3011
|
+
u === "other" && (l = !0), this.bumpSpace();
|
|
3012
3012
|
var p = this.clonePosition();
|
|
3013
3013
|
if (!this.bumpIf("{"))
|
|
3014
3014
|
return this.error(n === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
|
|
@@ -3018,27 +3018,27 @@ var Ri = (
|
|
|
3018
3018
|
var b = this.tryParseArgumentClose(p);
|
|
3019
3019
|
if (b.err)
|
|
3020
3020
|
return b;
|
|
3021
|
-
|
|
3022
|
-
|
|
3021
|
+
s.push([
|
|
3022
|
+
u,
|
|
3023
3023
|
{
|
|
3024
3024
|
value: v.val,
|
|
3025
3025
|
location: H(p, this.clonePosition())
|
|
3026
3026
|
}
|
|
3027
|
-
]),
|
|
3027
|
+
]), o.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, h = a.location;
|
|
3028
3028
|
}
|
|
3029
|
-
return
|
|
3029
|
+
return s.length === 0 ? this.error(n === "select" ? T.EXPECT_SELECT_ARGUMENT_SELECTOR : T.EXPECT_PLURAL_ARGUMENT_SELECTOR, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(T.MISSING_OTHER_CLAUSE, H(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3030
3030
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3031
3031
|
var r = 1, i = this.clonePosition();
|
|
3032
3032
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3033
|
-
for (var a = !1,
|
|
3034
|
-
var
|
|
3035
|
-
if (
|
|
3036
|
-
a = !0,
|
|
3033
|
+
for (var a = !1, l = 0; !this.isEOF(); ) {
|
|
3034
|
+
var s = this.char();
|
|
3035
|
+
if (s >= 48 && s <= 57)
|
|
3036
|
+
a = !0, l = l * 10 + (s - 48), this.bump();
|
|
3037
3037
|
else
|
|
3038
3038
|
break;
|
|
3039
3039
|
}
|
|
3040
|
-
var
|
|
3041
|
-
return a ? (
|
|
3040
|
+
var o = H(i, this.clonePosition());
|
|
3041
|
+
return a ? (l *= r, Pi(l) ? { val: l, err: null } : this.error(n, o)) : this.error(t, o);
|
|
3042
3042
|
}, e.prototype.offset = function() {
|
|
3043
3043
|
return this.position.offset;
|
|
3044
3044
|
}, e.prototype.isEOF = function() {
|
|
@@ -3116,7 +3116,7 @@ function Di(e) {
|
|
|
3116
3116
|
function pr(e) {
|
|
3117
3117
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3118
3118
|
}
|
|
3119
|
-
function
|
|
3119
|
+
function Mi(e) {
|
|
3120
3120
|
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;
|
|
3121
3121
|
}
|
|
3122
3122
|
function rn(e) {
|
|
@@ -3125,10 +3125,10 @@ function rn(e) {
|
|
|
3125
3125
|
for (var n in t.options)
|
|
3126
3126
|
delete t.options[n].location, rn(t.options[n].value);
|
|
3127
3127
|
else
|
|
3128
|
-
tr(t) && sr(t.style) || (nr(t) || rr(t)) &&
|
|
3128
|
+
tr(t) && sr(t.style) || (nr(t) || rr(t)) && Yt(t.style) ? delete t.style.location : or(t) && rn(t.children);
|
|
3129
3129
|
});
|
|
3130
3130
|
}
|
|
3131
|
-
function
|
|
3131
|
+
function ki(e, t) {
|
|
3132
3132
|
t === void 0 && (t = {}), t = Bt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3133
3133
|
var n = new Ri(e, t).parse();
|
|
3134
3134
|
if (n.err) {
|
|
@@ -3180,74 +3180,74 @@ var Nt = (
|
|
|
3180
3180
|
}
|
|
3181
3181
|
return t;
|
|
3182
3182
|
}(Nt)
|
|
3183
|
-
),
|
|
3183
|
+
), Q;
|
|
3184
3184
|
(function(e) {
|
|
3185
3185
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3186
|
-
})(
|
|
3186
|
+
})(Q || (Q = {}));
|
|
3187
3187
|
function Vi(e) {
|
|
3188
3188
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3189
3189
|
var r = t[t.length - 1];
|
|
3190
|
-
return !r || r.type !==
|
|
3190
|
+
return !r || r.type !== Q.literal || n.type !== Q.literal ? t.push(n) : r.value += n.value, t;
|
|
3191
3191
|
}, []);
|
|
3192
3192
|
}
|
|
3193
3193
|
function Gi(e) {
|
|
3194
3194
|
return typeof e == "function";
|
|
3195
3195
|
}
|
|
3196
|
-
function wt(e, t, n, r, i, a,
|
|
3196
|
+
function wt(e, t, n, r, i, a, l) {
|
|
3197
3197
|
if (e.length === 1 && vn(e[0]))
|
|
3198
3198
|
return [
|
|
3199
3199
|
{
|
|
3200
|
-
type:
|
|
3200
|
+
type: Q.literal,
|
|
3201
3201
|
value: e[0].value
|
|
3202
3202
|
}
|
|
3203
3203
|
];
|
|
3204
|
-
for (var
|
|
3205
|
-
var h =
|
|
3204
|
+
for (var s = [], o = 0, u = e; o < u.length; o++) {
|
|
3205
|
+
var h = u[o];
|
|
3206
3206
|
if (vn(h)) {
|
|
3207
|
-
|
|
3208
|
-
type:
|
|
3207
|
+
s.push({
|
|
3208
|
+
type: Q.literal,
|
|
3209
3209
|
value: h.value
|
|
3210
3210
|
});
|
|
3211
3211
|
continue;
|
|
3212
3212
|
}
|
|
3213
3213
|
if (ci(h)) {
|
|
3214
|
-
typeof a == "number" &&
|
|
3215
|
-
type:
|
|
3214
|
+
typeof a == "number" && s.push({
|
|
3215
|
+
type: Q.literal,
|
|
3216
3216
|
value: n.getNumberFormat(t).format(a)
|
|
3217
3217
|
});
|
|
3218
3218
|
continue;
|
|
3219
3219
|
}
|
|
3220
3220
|
var d = h.value;
|
|
3221
3221
|
if (!(i && d in i))
|
|
3222
|
-
throw new Ui(d,
|
|
3222
|
+
throw new Ui(d, l);
|
|
3223
3223
|
var c = i[d];
|
|
3224
3224
|
if (ui(h)) {
|
|
3225
|
-
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""),
|
|
3226
|
-
type: typeof c == "string" ?
|
|
3225
|
+
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
|
|
3226
|
+
type: typeof c == "string" ? Q.literal : Q.object,
|
|
3227
3227
|
value: c
|
|
3228
3228
|
});
|
|
3229
3229
|
continue;
|
|
3230
3230
|
}
|
|
3231
3231
|
if (nr(h)) {
|
|
3232
|
-
var p = typeof h.style == "string" ? r.date[h.style] :
|
|
3233
|
-
|
|
3234
|
-
type:
|
|
3232
|
+
var p = typeof h.style == "string" ? r.date[h.style] : Yt(h.style) ? h.style.parsedOptions : void 0;
|
|
3233
|
+
s.push({
|
|
3234
|
+
type: Q.literal,
|
|
3235
3235
|
value: n.getDateTimeFormat(t, p).format(c)
|
|
3236
3236
|
});
|
|
3237
3237
|
continue;
|
|
3238
3238
|
}
|
|
3239
3239
|
if (rr(h)) {
|
|
3240
|
-
var p = typeof h.style == "string" ? r.time[h.style] :
|
|
3241
|
-
|
|
3242
|
-
type:
|
|
3240
|
+
var p = typeof h.style == "string" ? r.time[h.style] : Yt(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3241
|
+
s.push({
|
|
3242
|
+
type: Q.literal,
|
|
3243
3243
|
value: n.getDateTimeFormat(t, p).format(c)
|
|
3244
3244
|
});
|
|
3245
3245
|
continue;
|
|
3246
3246
|
}
|
|
3247
3247
|
if (tr(h)) {
|
|
3248
3248
|
var p = typeof h.style == "string" ? r.number[h.style] : sr(h.style) ? h.style.parsedOptions : void 0;
|
|
3249
|
-
p && p.scale && (c = c * (p.scale || 1)),
|
|
3250
|
-
type:
|
|
3249
|
+
p && p.scale && (c = c * (p.scale || 1)), s.push({
|
|
3250
|
+
type: Q.literal,
|
|
3251
3251
|
value: n.getNumberFormat(t, p).format(c)
|
|
3252
3252
|
});
|
|
3253
3253
|
continue;
|
|
@@ -3255,22 +3255,22 @@ function wt(e, t, n, r, i, a, o) {
|
|
|
3255
3255
|
if (or(h)) {
|
|
3256
3256
|
var v = h.children, b = h.value, L = i[b];
|
|
3257
3257
|
if (!Gi(L))
|
|
3258
|
-
throw new Fi(b, "function",
|
|
3259
|
-
var N = wt(v, t, n, r, i, a), R = L(N.map(function(
|
|
3260
|
-
return
|
|
3258
|
+
throw new Fi(b, "function", l);
|
|
3259
|
+
var N = wt(v, t, n, r, i, a), R = L(N.map(function(M) {
|
|
3260
|
+
return M.value;
|
|
3261
3261
|
}));
|
|
3262
|
-
Array.isArray(R) || (R = [R]),
|
|
3262
|
+
Array.isArray(R) || (R = [R]), s.push.apply(s, R.map(function(M) {
|
|
3263
3263
|
return {
|
|
3264
|
-
type: typeof
|
|
3265
|
-
value:
|
|
3264
|
+
type: typeof M == "string" ? Q.literal : Q.object,
|
|
3265
|
+
value: M
|
|
3266
3266
|
};
|
|
3267
3267
|
}));
|
|
3268
3268
|
}
|
|
3269
3269
|
if (ir(h)) {
|
|
3270
3270
|
var _ = h.options[c] || h.options.other;
|
|
3271
3271
|
if (!_)
|
|
3272
|
-
throw new Tn(h.value, c, Object.keys(h.options),
|
|
3273
|
-
|
|
3272
|
+
throw new Tn(h.value, c, Object.keys(h.options), l);
|
|
3273
|
+
s.push.apply(s, wt(_.value, t, n, r, i));
|
|
3274
3274
|
continue;
|
|
3275
3275
|
}
|
|
3276
3276
|
if (ar(h)) {
|
|
@@ -3279,27 +3279,27 @@ function wt(e, t, n, r, i, a, o) {
|
|
|
3279
3279
|
if (!Intl.PluralRules)
|
|
3280
3280
|
throw new Nt(`Intl.PluralRules is not available in this environment.
|
|
3281
3281
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3282
|
-
`, We.MISSING_INTL_API,
|
|
3282
|
+
`, We.MISSING_INTL_API, l);
|
|
3283
3283
|
var $ = n.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3284
3284
|
_ = h.options[$] || h.options.other;
|
|
3285
3285
|
}
|
|
3286
3286
|
if (!_)
|
|
3287
|
-
throw new Tn(h.value, c, Object.keys(h.options),
|
|
3288
|
-
|
|
3287
|
+
throw new Tn(h.value, c, Object.keys(h.options), l);
|
|
3288
|
+
s.push.apply(s, wt(_.value, t, n, r, i, c - (h.offset || 0)));
|
|
3289
3289
|
continue;
|
|
3290
3290
|
}
|
|
3291
3291
|
}
|
|
3292
|
-
return Vi(
|
|
3292
|
+
return Vi(s);
|
|
3293
3293
|
}
|
|
3294
3294
|
function $i(e, t) {
|
|
3295
|
-
return t ?
|
|
3296
|
-
return n[r] =
|
|
3295
|
+
return t ? fe(fe(fe({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3296
|
+
return n[r] = fe(fe({}, e[r]), t[r] || {}), n;
|
|
3297
3297
|
}, {})) : e;
|
|
3298
3298
|
}
|
|
3299
3299
|
function ji(e, t) {
|
|
3300
3300
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3301
3301
|
return n[r] = $i(e[r], t[r]), n;
|
|
3302
|
-
},
|
|
3302
|
+
}, fe({}, e)) : e;
|
|
3303
3303
|
}
|
|
3304
3304
|
function jt(e) {
|
|
3305
3305
|
return {
|
|
@@ -3357,30 +3357,30 @@ var Wi = (
|
|
|
3357
3357
|
number: {},
|
|
3358
3358
|
dateTime: {},
|
|
3359
3359
|
pluralRules: {}
|
|
3360
|
-
}, this.format = function(
|
|
3361
|
-
var
|
|
3362
|
-
if (
|
|
3363
|
-
return
|
|
3364
|
-
var h =
|
|
3365
|
-
return !d.length || c.type !==
|
|
3360
|
+
}, this.format = function(o) {
|
|
3361
|
+
var u = a.formatToParts(o);
|
|
3362
|
+
if (u.length === 1)
|
|
3363
|
+
return u[0].value;
|
|
3364
|
+
var h = u.reduce(function(d, c) {
|
|
3365
|
+
return !d.length || c.type !== Q.literal || typeof d[d.length - 1] != "string" ? d.push(c.value) : d[d.length - 1] += c.value, d;
|
|
3366
3366
|
}, []);
|
|
3367
3367
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3368
|
-
}, this.formatToParts = function(
|
|
3369
|
-
return wt(a.ast, a.locales, a.formatters, a.formats,
|
|
3368
|
+
}, this.formatToParts = function(o) {
|
|
3369
|
+
return wt(a.ast, a.locales, a.formatters, a.formats, o, void 0, a.message);
|
|
3370
3370
|
}, this.resolvedOptions = function() {
|
|
3371
|
-
var
|
|
3371
|
+
var o;
|
|
3372
3372
|
return {
|
|
3373
|
-
locale: ((
|
|
3373
|
+
locale: ((o = a.resolvedLocale) === null || o === void 0 ? void 0 : o.toString()) || Intl.NumberFormat.supportedLocalesOf(a.locales)[0]
|
|
3374
3374
|
};
|
|
3375
3375
|
}, this.getAst = function() {
|
|
3376
3376
|
return a.ast;
|
|
3377
3377
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3378
3378
|
if (this.message = t, !e.__parse)
|
|
3379
3379
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3380
|
-
var
|
|
3381
|
-
|
|
3382
|
-
var
|
|
3383
|
-
this.ast = e.__parse(t,
|
|
3380
|
+
var l = i || {};
|
|
3381
|
+
l.formatters;
|
|
3382
|
+
var s = ti(l, ["formatters"]);
|
|
3383
|
+
this.ast = e.__parse(t, fe(fe({}, s), { locale: this.resolvedLocale }));
|
|
3384
3384
|
} else
|
|
3385
3385
|
this.ast = t;
|
|
3386
3386
|
if (!Array.isArray(this.ast))
|
|
@@ -3398,7 +3398,7 @@ var Wi = (
|
|
|
3398
3398
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3399
3399
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3400
3400
|
}
|
|
3401
|
-
}, e.__parse =
|
|
3401
|
+
}, e.__parse = ki, e.formats = {
|
|
3402
3402
|
number: {
|
|
3403
3403
|
integer: {
|
|
3404
3404
|
maximumFractionDigits: 0
|
|
@@ -3493,8 +3493,8 @@ const Be = {}, Zi = (e, t, n) => n && (t in Be || (Be[t] = {}), e in Be[t] || (B
|
|
|
3493
3493
|
}
|
|
3494
3494
|
};
|
|
3495
3495
|
let fn;
|
|
3496
|
-
const
|
|
3497
|
-
function
|
|
3496
|
+
const qe = It({});
|
|
3497
|
+
function qi(e) {
|
|
3498
3498
|
return fn[e] || null;
|
|
3499
3499
|
}
|
|
3500
3500
|
function gr(e) {
|
|
@@ -3503,10 +3503,10 @@ function gr(e) {
|
|
|
3503
3503
|
function Ki(e, t) {
|
|
3504
3504
|
if (!gr(e))
|
|
3505
3505
|
return null;
|
|
3506
|
-
const n =
|
|
3506
|
+
const n = qi(e);
|
|
3507
3507
|
return zi(n, t);
|
|
3508
3508
|
}
|
|
3509
|
-
function
|
|
3509
|
+
function Qi(e) {
|
|
3510
3510
|
if (e == null)
|
|
3511
3511
|
return;
|
|
3512
3512
|
const t = Rt(e);
|
|
@@ -3517,21 +3517,21 @@ function Yi(e) {
|
|
|
3517
3517
|
}
|
|
3518
3518
|
}
|
|
3519
3519
|
function br(e, ...t) {
|
|
3520
|
-
delete Be[e],
|
|
3520
|
+
delete Be[e], qe.update((n) => (n[e] = ei.all([n[e] || {}, ...t]), n));
|
|
3521
3521
|
}
|
|
3522
3522
|
Ze(
|
|
3523
|
-
[
|
|
3523
|
+
[qe],
|
|
3524
3524
|
([e]) => Object.keys(e)
|
|
3525
3525
|
);
|
|
3526
|
-
|
|
3526
|
+
qe.subscribe((e) => fn = e);
|
|
3527
3527
|
const At = {};
|
|
3528
|
-
function
|
|
3528
|
+
function Yi(e, t) {
|
|
3529
3529
|
At[e].delete(t), At[e].size === 0 && delete At[e];
|
|
3530
3530
|
}
|
|
3531
3531
|
function yr(e) {
|
|
3532
3532
|
return At[e];
|
|
3533
3533
|
}
|
|
3534
|
-
function
|
|
3534
|
+
function Ji(e) {
|
|
3535
3535
|
return Rt(e).map((t) => {
|
|
3536
3536
|
const n = yr(t);
|
|
3537
3537
|
return [t, n ? [...n] : []];
|
|
@@ -3547,14 +3547,14 @@ function an(e) {
|
|
|
3547
3547
|
}
|
|
3548
3548
|
function ea(e, t) {
|
|
3549
3549
|
return Promise.all(
|
|
3550
|
-
t.map((r) => (
|
|
3550
|
+
t.map((r) => (Yi(e, r), r().then((i) => i.default || i)))
|
|
3551
3551
|
).then((r) => br(e, ...r));
|
|
3552
3552
|
}
|
|
3553
3553
|
const it = {};
|
|
3554
3554
|
function vr(e) {
|
|
3555
3555
|
if (!an(e))
|
|
3556
3556
|
return e in it ? it[e] : Promise.resolve();
|
|
3557
|
-
const t =
|
|
3557
|
+
const t = Ji(e);
|
|
3558
3558
|
return it[e] = Promise.all(
|
|
3559
3559
|
t.map(
|
|
3560
3560
|
([n, r]) => ea(n, r)
|
|
@@ -3630,7 +3630,7 @@ St.subscribe((e) => {
|
|
|
3630
3630
|
on = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3631
3631
|
});
|
|
3632
3632
|
const ha = (e) => {
|
|
3633
|
-
if (e &&
|
|
3633
|
+
if (e && Qi(e) && an(e)) {
|
|
3634
3634
|
const { loadingDelay: t } = ze();
|
|
3635
3635
|
let n;
|
|
3636
3636
|
return typeof window < "u" && Ne() != null && t ? n = window.setTimeout(
|
|
@@ -3724,29 +3724,29 @@ const ut = (e, t) => {
|
|
|
3724
3724
|
})
|
|
3725
3725
|
), _a = (e, t = {}) => {
|
|
3726
3726
|
var n, r, i, a;
|
|
3727
|
-
let
|
|
3728
|
-
typeof e == "object" && (
|
|
3727
|
+
let l = t;
|
|
3728
|
+
typeof e == "object" && (l = e, e = l.id);
|
|
3729
3729
|
const {
|
|
3730
|
-
values:
|
|
3731
|
-
locale:
|
|
3732
|
-
default:
|
|
3733
|
-
} =
|
|
3734
|
-
if (
|
|
3730
|
+
values: s,
|
|
3731
|
+
locale: o = Ne(),
|
|
3732
|
+
default: u
|
|
3733
|
+
} = l;
|
|
3734
|
+
if (o == null)
|
|
3735
3735
|
throw new Error(
|
|
3736
3736
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3737
3737
|
);
|
|
3738
|
-
let h = mr(e,
|
|
3738
|
+
let h = mr(e, o);
|
|
3739
3739
|
if (!h)
|
|
3740
|
-
h = (a = (i = (r = (n = ze()).handleMissingMessage) == null ? void 0 : r.call(n, { locale:
|
|
3740
|
+
h = (a = (i = (r = (n = ze()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: o, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
|
|
3741
3741
|
else if (typeof h != "string")
|
|
3742
3742
|
return console.warn(
|
|
3743
3743
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3744
3744
|
), h;
|
|
3745
|
-
if (!
|
|
3745
|
+
if (!s)
|
|
3746
3746
|
return h;
|
|
3747
3747
|
let d = h;
|
|
3748
3748
|
try {
|
|
3749
|
-
d = va(h,
|
|
3749
|
+
d = va(h, o).format(s);
|
|
3750
3750
|
} catch (c) {
|
|
3751
3751
|
c instanceof Error && console.warn(
|
|
3752
3752
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3754,14 +3754,14 @@ const ut = (e, t) => {
|
|
|
3754
3754
|
);
|
|
3755
3755
|
}
|
|
3756
3756
|
return d;
|
|
3757
|
-
}, Ea = (e, t) => ya(t).format(e), xa = (e, t) => ba(t).format(e), wa = (e, t) => ga(t).format(e), Aa = (e, t = Ne()) => mr(e, t), Ca = Ze([Se,
|
|
3757
|
+
}, Ea = (e, t) => ya(t).format(e), xa = (e, t) => ba(t).format(e), wa = (e, t) => ga(t).format(e), Aa = (e, t = Ne()) => mr(e, t), Ca = Ze([Se, qe], () => _a);
|
|
3758
3758
|
Ze([Se], () => Ea);
|
|
3759
3759
|
Ze([Se], () => xa);
|
|
3760
3760
|
Ze([Se], () => wa);
|
|
3761
|
-
Ze([Se,
|
|
3761
|
+
Ze([Se, qe], () => Aa);
|
|
3762
3762
|
function Ta({ withLocale: e, translations: t }) {
|
|
3763
3763
|
Se.subscribe((n) => {
|
|
3764
|
-
n == null && (
|
|
3764
|
+
n == null && (qe.set(t), Se.set(e));
|
|
3765
3765
|
});
|
|
3766
3766
|
}
|
|
3767
3767
|
function In(e, t) {
|
|
@@ -3956,7 +3956,7 @@ const O = wr(Ca), Ln = {
|
|
|
3956
3956
|
DASH: "Đ",
|
|
3957
3957
|
DCR: "",
|
|
3958
3958
|
DJF: "",
|
|
3959
|
-
DKK: "
|
|
3959
|
+
DKK: "KR",
|
|
3960
3960
|
DOGE: "Ð",
|
|
3961
3961
|
DOP: "RD$",
|
|
3962
3962
|
DOT: "●",
|
|
@@ -4006,7 +4006,7 @@ const O = wr(Ca), Ln = {
|
|
|
4006
4006
|
IOTX: "",
|
|
4007
4007
|
IQD: "د.ع",
|
|
4008
4008
|
IRR: "﷼",
|
|
4009
|
-
ISK: "
|
|
4009
|
+
ISK: "KR",
|
|
4010
4010
|
JMD: "J$",
|
|
4011
4011
|
JOD: "د.ا",
|
|
4012
4012
|
JPY: "¥",
|
|
@@ -4061,7 +4061,7 @@ const O = wr(Ca), Ln = {
|
|
|
4061
4061
|
NEXO: "",
|
|
4062
4062
|
NGN: "₦",
|
|
4063
4063
|
NIO: "C$",
|
|
4064
|
-
NOK: "
|
|
4064
|
+
NOK: "KR",
|
|
4065
4065
|
NPR: "₨",
|
|
4066
4066
|
NZD: "$",
|
|
4067
4067
|
OKB: "",
|
|
@@ -4078,7 +4078,7 @@ const O = wr(Ca), Ln = {
|
|
|
4078
4078
|
QAR: "﷼",
|
|
4079
4079
|
QNT: "",
|
|
4080
4080
|
QTUM: "",
|
|
4081
|
-
RON: "
|
|
4081
|
+
RON: "LEI",
|
|
4082
4082
|
ROSE: "",
|
|
4083
4083
|
RSD: "Дин.",
|
|
4084
4084
|
RUB: "₽",
|
|
@@ -4091,7 +4091,7 @@ const O = wr(Ca), Ln = {
|
|
|
4091
4091
|
SCC: "",
|
|
4092
4092
|
SCR: "₨",
|
|
4093
4093
|
SDG: "د.س",
|
|
4094
|
-
SEK: "
|
|
4094
|
+
SEK: "KR",
|
|
4095
4095
|
SGD: "$",
|
|
4096
4096
|
SHIB: "",
|
|
4097
4097
|
SHP: "£",
|
|
@@ -4212,20 +4212,20 @@ function La(e) {
|
|
|
4212
4212
|
};
|
|
4213
4213
|
}
|
|
4214
4214
|
function Na(e) {
|
|
4215
|
-
ln(e, "svelte-
|
|
4215
|
+
ln(e, "svelte-1g9pqha", ".selectWrapper.svelte-1g9pqha.svelte-1g9pqha{position:relative;min-width:96px;font-family:inherit;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px)}.selectButton.svelte-1g9pqha.svelte-1g9pqha{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;display:flex;align-items:center;justify-content:space-between;color:var(--emw--select-typography, #595959);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));padding:0 var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-family:inherit}.selectButton.svelte-1g9pqha.svelte-1g9pqha:focus-visible{outline:none}.label.svelte-1g9pqha.svelte-1g9pqha{display:flex;align-items:center}.selectDropdownWrapper.svelte-1g9pqha.svelte-1g9pqha{position:absolute;top:calc(100% + 2px);left:0;right:0;overflow:hidden;z-index:100;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px)}.selectDropdown.svelte-1g9pqha.svelte-1g9pqha{display:flex;flex-direction:column;gap:4px;max-height:150px;overflow-y:auto;scrollbar-width:thin}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha{height:24px;flex:0 0 24px;display:flex;align-items:center;;;padding:0 var(--emw--spacing-small, 10px);cursor:pointer;transition:all 0.3s ease}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha:hover,.selectDropdown.svelte-1g9pqha li.active.svelte-1g9pqha{background:var(--emw--selected-option, #f0f0f0)}.symbol.svelte-1g9pqha.svelte-1g9pqha{display:inline-flex;width:14px;height:14px;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw--symbol-background, #595959);font-size:var(--emw--font-size-small, 12px);color:var(--emw--symbol-typography, #fff)}");
|
|
4216
4216
|
}
|
|
4217
|
-
function
|
|
4217
|
+
function Mn(e, t, n) {
|
|
4218
4218
|
const r = e.slice();
|
|
4219
4219
|
return r[16] = t[n], r[18] = n, r;
|
|
4220
4220
|
}
|
|
4221
|
-
function
|
|
4221
|
+
function kn(e) {
|
|
4222
4222
|
let t, n = (
|
|
4223
4223
|
/*selected*/
|
|
4224
4224
|
(e[0]?.symbol || "") + ""
|
|
4225
4225
|
), r;
|
|
4226
4226
|
return {
|
|
4227
4227
|
c() {
|
|
4228
|
-
t = w("span"), r = W(n), g(t, "class", "symbol svelte-
|
|
4228
|
+
t = w("span"), r = W(n), g(t, "class", "symbol svelte-1g9pqha");
|
|
4229
4229
|
},
|
|
4230
4230
|
m(i, a) {
|
|
4231
4231
|
C(i, t, a), y(t, r);
|
|
@@ -4241,44 +4241,44 @@ function Mn(e) {
|
|
|
4241
4241
|
};
|
|
4242
4242
|
}
|
|
4243
4243
|
function Fn(e) {
|
|
4244
|
-
let t, n = Tt(
|
|
4244
|
+
let t, n, r = Tt(
|
|
4245
4245
|
/*options*/
|
|
4246
4246
|
e[1]
|
|
4247
|
-
),
|
|
4248
|
-
for (let
|
|
4249
|
-
|
|
4247
|
+
), i = [];
|
|
4248
|
+
for (let a = 0; a < r.length; a += 1)
|
|
4249
|
+
i[a] = Un(Mn(e, r, a));
|
|
4250
4250
|
return {
|
|
4251
4251
|
c() {
|
|
4252
|
-
t = w("ul");
|
|
4253
|
-
for (let
|
|
4254
|
-
|
|
4255
|
-
g(
|
|
4252
|
+
t = w("div"), n = w("ul");
|
|
4253
|
+
for (let a = 0; a < i.length; a += 1)
|
|
4254
|
+
i[a].c();
|
|
4255
|
+
g(n, "class", "selectDropdown svelte-1g9pqha"), g(t, "class", "selectDropdownWrapper svelte-1g9pqha");
|
|
4256
4256
|
},
|
|
4257
|
-
m(
|
|
4258
|
-
C(
|
|
4259
|
-
for (let
|
|
4260
|
-
|
|
4261
|
-
e[14](
|
|
4257
|
+
m(a, l) {
|
|
4258
|
+
C(a, t, l), y(t, n);
|
|
4259
|
+
for (let s = 0; s < i.length; s += 1)
|
|
4260
|
+
i[s] && i[s].m(n, null);
|
|
4261
|
+
e[14](n);
|
|
4262
4262
|
},
|
|
4263
|
-
p(
|
|
4264
|
-
if (
|
|
4263
|
+
p(a, l) {
|
|
4264
|
+
if (l & /*options, selected, activeIndex, handleChange*/
|
|
4265
4265
|
547) {
|
|
4266
|
-
|
|
4266
|
+
r = Tt(
|
|
4267
4267
|
/*options*/
|
|
4268
|
-
|
|
4268
|
+
a[1]
|
|
4269
4269
|
);
|
|
4270
|
-
let
|
|
4271
|
-
for (
|
|
4272
|
-
const
|
|
4273
|
-
|
|
4270
|
+
let s;
|
|
4271
|
+
for (s = 0; s < r.length; s += 1) {
|
|
4272
|
+
const o = Mn(a, r, s);
|
|
4273
|
+
i[s] ? i[s].p(o, l) : (i[s] = Un(o), i[s].c(), i[s].m(n, null));
|
|
4274
4274
|
}
|
|
4275
|
-
for (;
|
|
4276
|
-
|
|
4277
|
-
|
|
4275
|
+
for (; s < i.length; s += 1)
|
|
4276
|
+
i[s].d(1);
|
|
4277
|
+
i.length = r.length;
|
|
4278
4278
|
}
|
|
4279
4279
|
},
|
|
4280
|
-
d(
|
|
4281
|
-
|
|
4280
|
+
d(a) {
|
|
4281
|
+
a && A(t), Zn(i, a), e[14](null);
|
|
4282
4282
|
}
|
|
4283
4283
|
};
|
|
4284
4284
|
}
|
|
@@ -4286,17 +4286,17 @@ function Un(e) {
|
|
|
4286
4286
|
let t, n, r = (
|
|
4287
4287
|
/*option*/
|
|
4288
4288
|
e[16]?.symbol + ""
|
|
4289
|
-
), i, a,
|
|
4289
|
+
), i, a, l = (
|
|
4290
4290
|
/*option*/
|
|
4291
4291
|
e[16]?.currency + ""
|
|
4292
|
-
),
|
|
4292
|
+
), s, o, u, h, d;
|
|
4293
4293
|
return {
|
|
4294
4294
|
c() {
|
|
4295
|
-
t = w("li"), n = w("span"), i = W(r), a = P(),
|
|
4295
|
+
t = w("li"), n = w("span"), i = W(r), a = P(), s = W(l), o = P(), g(n, "class", "symbol svelte-1g9pqha"), g(t, "role", "option"), g(t, "aria-selected", u = /*option*/
|
|
4296
4296
|
e[16]?.currency === /*selected*/
|
|
4297
4297
|
e[0]?.currency || /*index*/
|
|
4298
4298
|
e[18] === /*activeIndex*/
|
|
4299
|
-
e[5]), g(t, "class", "svelte-
|
|
4299
|
+
e[5]), g(t, "class", "svelte-1g9pqha"), oe(
|
|
4300
4300
|
t,
|
|
4301
4301
|
"active",
|
|
4302
4302
|
/*option*/
|
|
@@ -4307,7 +4307,7 @@ function Un(e) {
|
|
|
4307
4307
|
);
|
|
4308
4308
|
},
|
|
4309
4309
|
m(c, p) {
|
|
4310
|
-
C(c, t, p), y(t, n), y(n, i), y(t, a), y(t,
|
|
4310
|
+
C(c, t, p), y(t, n), y(n, i), y(t, a), y(t, s), y(t, o), h || (d = [
|
|
4311
4311
|
te(t, "keydown", Oa),
|
|
4312
4312
|
te(t, "click", function() {
|
|
4313
4313
|
ct(
|
|
@@ -4331,13 +4331,13 @@ function Un(e) {
|
|
|
4331
4331
|
e = c, p & /*options*/
|
|
4332
4332
|
2 && r !== (r = /*option*/
|
|
4333
4333
|
e[16]?.symbol + "") && ne(i, r), p & /*options*/
|
|
4334
|
-
2 &&
|
|
4335
|
-
e[16]?.currency + "") && ne(
|
|
4336
|
-
35 &&
|
|
4334
|
+
2 && l !== (l = /*option*/
|
|
4335
|
+
e[16]?.currency + "") && ne(s, l), p & /*options, selected, activeIndex*/
|
|
4336
|
+
35 && u !== (u = /*option*/
|
|
4337
4337
|
e[16]?.currency === /*selected*/
|
|
4338
4338
|
e[0]?.currency || /*index*/
|
|
4339
4339
|
e[18] === /*activeIndex*/
|
|
4340
|
-
e[5]) && g(t, "aria-selected",
|
|
4340
|
+
e[5]) && g(t, "aria-selected", u), p & /*options, selected, activeIndex*/
|
|
4341
4341
|
35 && oe(
|
|
4342
4342
|
t,
|
|
4343
4343
|
"active",
|
|
@@ -4349,7 +4349,7 @@ function Un(e) {
|
|
|
4349
4349
|
);
|
|
4350
4350
|
},
|
|
4351
4351
|
d(c) {
|
|
4352
|
-
c && A(t), h = !1,
|
|
4352
|
+
c && A(t), h = !1, _e(d);
|
|
4353
4353
|
}
|
|
4354
4354
|
};
|
|
4355
4355
|
}
|
|
@@ -4358,31 +4358,31 @@ function Ra(e) {
|
|
|
4358
4358
|
/*selected*/
|
|
4359
4359
|
(e[0]?.currency || /*placeholder*/
|
|
4360
4360
|
e[2]) + ""
|
|
4361
|
-
),
|
|
4361
|
+
), l, s, o, u, h, d, c = (
|
|
4362
4362
|
/*selected*/
|
|
4363
4363
|
e[0]?.symbol && /*withSymbol*/
|
|
4364
|
-
e[3] === Te.true &&
|
|
4364
|
+
e[3] === Te.true && kn(e)
|
|
4365
4365
|
), p = (
|
|
4366
4366
|
/*open*/
|
|
4367
4367
|
e[7] && Fn(e)
|
|
4368
4368
|
);
|
|
4369
4369
|
return {
|
|
4370
4370
|
c() {
|
|
4371
|
-
t = w("div"), n = w("button"), r = w("span"), c && c.c(), i = P(),
|
|
4372
|
-
|
|
4371
|
+
t = w("div"), n = w("button"), r = w("span"), c && c.c(), i = P(), l = W(a), s = P(), o = w("span"), o.innerHTML = '<svg width="12" height="7" viewBox="0 0 12 7" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z" fill="currentColor"></path></svg>', u = P(), p && p.c(), g(r, "class", "label svelte-1g9pqha"), g(o, "class", "arrow"), oe(
|
|
4372
|
+
o,
|
|
4373
4373
|
"open",
|
|
4374
4374
|
/*open*/
|
|
4375
4375
|
e[7]
|
|
4376
|
-
), g(n, "class", "selectButton svelte-
|
|
4376
|
+
), g(n, "class", "selectButton svelte-1g9pqha"), g(n, "aria-haspopup", "listbox"), g(
|
|
4377
4377
|
n,
|
|
4378
4378
|
"aria-expanded",
|
|
4379
4379
|
/*open*/
|
|
4380
4380
|
e[7]
|
|
4381
4381
|
), g(n, "aria-controls", "custom-select"), g(n, "tabindex", "0"), n.disabled = /*disabled*/
|
|
4382
|
-
e[4], g(t, "class", "selectWrapper svelte-
|
|
4382
|
+
e[4], g(t, "class", "selectWrapper svelte-1g9pqha");
|
|
4383
4383
|
},
|
|
4384
4384
|
m(v, b) {
|
|
4385
|
-
C(v, t, b), y(t, n), y(n, r), c && c.m(r, null), y(r, i), y(r,
|
|
4385
|
+
C(v, t, b), y(t, n), y(n, r), c && c.m(r, null), y(r, i), y(r, l), y(n, s), y(n, o), y(t, u), p && p.m(t, null), h || (d = [
|
|
4386
4386
|
te(
|
|
4387
4387
|
n,
|
|
4388
4388
|
"keydown",
|
|
@@ -4405,12 +4405,12 @@ function Ra(e) {
|
|
|
4405
4405
|
p(v, [b]) {
|
|
4406
4406
|
/*selected*/
|
|
4407
4407
|
v[0]?.symbol && /*withSymbol*/
|
|
4408
|
-
v[3] === Te.true ? c ? c.p(v, b) : (c =
|
|
4408
|
+
v[3] === Te.true ? c ? c.p(v, b) : (c = kn(v), c.c(), c.m(r, i)) : c && (c.d(1), c = null), b & /*selected, placeholder*/
|
|
4409
4409
|
5 && a !== (a = /*selected*/
|
|
4410
4410
|
(v[0]?.currency || /*placeholder*/
|
|
4411
|
-
v[2]) + "") && ne(
|
|
4411
|
+
v[2]) + "") && ne(l, a), b & /*open*/
|
|
4412
4412
|
128 && oe(
|
|
4413
|
-
|
|
4413
|
+
o,
|
|
4414
4414
|
"open",
|
|
4415
4415
|
/*open*/
|
|
4416
4416
|
v[7]
|
|
@@ -4428,20 +4428,20 @@ function Ra(e) {
|
|
|
4428
4428
|
i: B,
|
|
4429
4429
|
o: B,
|
|
4430
4430
|
d(v) {
|
|
4431
|
-
v && A(t), c && c.d(), p && p.d(), h = !1,
|
|
4431
|
+
v && A(t), c && c.d(), p && p.d(), h = !1, _e(d);
|
|
4432
4432
|
}
|
|
4433
4433
|
};
|
|
4434
4434
|
}
|
|
4435
4435
|
const Oa = (e) => e.preventDefault();
|
|
4436
4436
|
function Da(e, t, n) {
|
|
4437
|
-
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: a = O("select") } = t, { withSymbol:
|
|
4437
|
+
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: a = O("select") } = t, { withSymbol: l = "true" } = t, { id: s } = t, { disabled: o = !1 } = t, { onChange: u = () => {
|
|
4438
4438
|
} } = t, h = -1, d, c = !1;
|
|
4439
4439
|
const p = () => {
|
|
4440
|
-
r.length !== 0 && (n(7, c = !c), c && (n(5, h = r.findIndex((_) => _?.currency === i?.currency)), setTimeout(() => d?.focus(), 0), window.dispatchEvent(new CustomEvent("dropdown-opened", { detail:
|
|
4440
|
+
r.length !== 0 && (n(7, c = !c), c && (n(5, h = r.findIndex((_) => _?.currency === i?.currency)), setTimeout(() => d?.focus(), 0), window.dispatchEvent(new CustomEvent("dropdown-opened", { detail: s }))));
|
|
4441
4441
|
}, v = (_) => {
|
|
4442
|
-
_.detail !==
|
|
4442
|
+
_.detail !== s && c && n(7, c = !1);
|
|
4443
4443
|
}, b = (_, $) => () => {
|
|
4444
|
-
n(7, c = !1), n(0, i = _),
|
|
4444
|
+
n(7, c = !1), n(0, i = _), u && typeof u == "function" && u(_, $);
|
|
4445
4445
|
}, L = () => {
|
|
4446
4446
|
n(7, c = !1);
|
|
4447
4447
|
}, N = (_) => {
|
|
@@ -4458,13 +4458,13 @@ function Da(e, t, n) {
|
|
|
4458
4458
|
});
|
|
4459
4459
|
}
|
|
4460
4460
|
return e.$$set = (_) => {
|
|
4461
|
-
"options" in _ && n(1, r = _.options), "selected" in _ && n(0, i = _.selected), "placeholder" in _ && n(2, a = _.placeholder), "withSymbol" in _ && n(3,
|
|
4461
|
+
"options" in _ && n(1, r = _.options), "selected" in _ && n(0, i = _.selected), "placeholder" in _ && n(2, a = _.placeholder), "withSymbol" in _ && n(3, l = _.withSymbol), "id" in _ && n(12, s = _.id), "disabled" in _ && n(4, o = _.disabled), "onChange" in _ && n(13, u = _.onChange);
|
|
4462
4462
|
}, [
|
|
4463
4463
|
i,
|
|
4464
4464
|
r,
|
|
4465
4465
|
a,
|
|
4466
|
+
l,
|
|
4466
4467
|
o,
|
|
4467
|
-
s,
|
|
4468
4468
|
h,
|
|
4469
4469
|
d,
|
|
4470
4470
|
c,
|
|
@@ -4472,8 +4472,8 @@ function Da(e, t, n) {
|
|
|
4472
4472
|
b,
|
|
4473
4473
|
L,
|
|
4474
4474
|
N,
|
|
4475
|
+
s,
|
|
4475
4476
|
u,
|
|
4476
|
-
l,
|
|
4477
4477
|
R
|
|
4478
4478
|
];
|
|
4479
4479
|
}
|
|
@@ -4541,17 +4541,17 @@ class sn extends hn {
|
|
|
4541
4541
|
}
|
|
4542
4542
|
}
|
|
4543
4543
|
cn(sn, { options: {}, selected: {}, placeholder: {}, withSymbol: {}, id: {}, disabled: { type: "Boolean" }, onChange: {} }, [], [], !0);
|
|
4544
|
-
function
|
|
4544
|
+
function Ma(e) {
|
|
4545
4545
|
ln(e, "svelte-2fhtvy", ".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}");
|
|
4546
4546
|
}
|
|
4547
|
-
function
|
|
4547
|
+
function ka(e) {
|
|
4548
4548
|
let t, n, r = O("balanceUnavailable") + "", i;
|
|
4549
4549
|
return {
|
|
4550
4550
|
c() {
|
|
4551
4551
|
t = w("span"), t.innerHTML = '<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><g><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z" style="fill-rule:nonzero;"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z" style="fill-rule:nonzero;"></path></g></svg>', n = P(), i = W(r), g(t, "class", "warningIcon svelte-2fhtvy");
|
|
4552
4552
|
},
|
|
4553
|
-
m(a,
|
|
4554
|
-
C(a, t,
|
|
4553
|
+
m(a, l) {
|
|
4554
|
+
C(a, t, l), C(a, n, l), C(a, i, l);
|
|
4555
4555
|
},
|
|
4556
4556
|
p: B,
|
|
4557
4557
|
i: B,
|
|
@@ -4563,12 +4563,12 @@ function Ma(e) {
|
|
|
4563
4563
|
}
|
|
4564
4564
|
class Dt extends hn {
|
|
4565
4565
|
constructor(t) {
|
|
4566
|
-
super(), un(this, t, null,
|
|
4566
|
+
super(), un(this, t, null, ka, Pt, {}, Ma);
|
|
4567
4567
|
}
|
|
4568
4568
|
}
|
|
4569
4569
|
cn(Dt, {}, [], [], !0);
|
|
4570
4570
|
function Fa(e) {
|
|
4571
|
-
ln(e, "svelte-rr3qrx", '@charset "UTF-8";*{margin:0;padding:0}.playerAccountVault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);background:var(--emw--widget-background, #F8F8F8);color:var(--emw--typography, #595959);padding:var(--emw--spacing-medium, 16px);position:relative}.playerAccountVault .closeButton{position:absolute;background:none;border:none;top:var(--emw--spacing-medium, 16px);right:var(--emw--spacing-small, 10px);line-height:0;cursor:pointer}.playerAccountVault .closeButton svg{fill:var(--emw--color-faded, #A0A29F)}.playerAccountVault .playerVaultContainer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-smaller, 5px);box-sizing:border-box}.playerAccountVault .amountContainer{display:flex;align-items:center}.playerAccountVault .headerContainer{display:flex;width:100%;gap:var(--emw--spacing-small, 10px);justify-content:space-between;flex-direction:column}.playerAccountVault .headerContainer .headerTitle{font-family:inherit;color:var(--emw--color-secondary, #24B04F);font-size:var(--emw--font-size-large, 16px);font-weight:var(--emw--font-weight-normal, 400)}.playerAccountVault .headerContainer .totalAmount{margin-right:4px;color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .exchangesContainer{width:100%;height:100%;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .exchangeHeader,.playerAccountVault .exchangesContainer .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow{display:flex;align-items:center;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-outer-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]{-moz-appearance:textfield}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput{flex:1;min-width:50px;border:unset;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-medium, 14px);padding:0 var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-small, 8px);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));font-family:inherit;color:var(--emw--input-typography, #000)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput[disabled],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput[disabled]{color:var(--emw--input-disabled, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput::placeholder,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput::placeholder{color:var(--emw--input-placeholder, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect{min-width:96px;border:unset;white-space:nowrap;height:var(--emw--base-height, 36px);padding:0 var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer{display:flex;justify-content:space-between;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer .validationError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer .validationError{flex:1}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance{white-space:nowrap;justify-content:flex-end}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance .amount,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance .amount{color:var(--emw--color-faded, #A0A29F);margin-right:4px}.playerAccountVault .vaultsContainer{display:flex;flex-direction:column;width:100%}.playerAccountVault .vaultsContainer .vaultToggleButton{display:flex;align-items:center;justify-content:center;width:35px;height:35px;cursor:pointer;border:unset;align-self:flex-end;padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon path{fill:var(--emw--color-white, #fff)}.playerAccountVault .vaultsContainer .vaultToggleButton.active .vaultToggleIcon{transform:rotateZ(180deg)}.playerAccountVault .vaultsContainer .vaultDropdown{width:80%;max-height:0;height:200px;margin:0 auto;display:flex;flex-direction:column;overflow:auto;opacity:0;scrollbar-width:thin;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-white, #fff);font-family:inherit;transition:max-height 0.4s ease-out, opacity 0.4s ease-out}.playerAccountVault .vaultsContainer .vaultDropdown .vaultItem{display:inherit;font-size:var(--emw--font-size-medium, 14px);justify-content:space-between;width:100%;margin:0 auto;box-sizing:border-box;height:var(--emw--base-height, 36px);padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultDropdown.expanded{transition:max-height 1s ease-in, opacity 0.4s ease-in;max-height:1000vh;opacity:1}.playerAccountVault .notificationsContainer{width:100%;min-height:var(--emw--base-height, 36px);padding:0px}.playerAccountVault .notificationsContainer.error{color:var(--emw--color-error, #FF2424)}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, #24B04F)}.playerAccountVault .feesContainer{width:100%;height:var(--emw--base-height, 36px);display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px);padding:0 var(--emw--spacing-small, 10px);box-sizing:border-box}.playerAccountVault .feesContainer .feesLabel{color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .actionsContainer{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .actionsContainer button{flex:1;height:var(--emw--base-height, 36px);border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-weight:var(--emw--font-weight-bold, 500);transition:background 0.3s ease, color 0.3s ease, filter 0.3s ease}.playerAccountVault .actionsContainer .exchangeButton{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--color-primary, #24B04F);border:1px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled.pending{background:var(--emw--color-primary, #24B04F);pointer-events:none;opacity:0.5}.playerAccountVault .skeleton{background-color:rgba(0, 0, 0, 0.11);height:auto;min-height:0.1rem;-webkit-animation:loading 1.5s ease-in-out 0.5s infinite;animation:loading 1.5s ease-in-out 0.5s infinite}.playerAccountVault .skeleton::before{content:" "}@keyframes loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.playerAccountVault .exchangeContainer{display:flex;flex-direction:column;gap:4px}');
|
|
4571
|
+
ln(e, "svelte-1mw4zse", '@charset "UTF-8";*{margin:0;padding:0}.playerAccountVault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);background:var(--emw--widget-background, #F8F8F8);color:var(--emw--typography, #595959);padding:var(--emw--spacing-medium, 16px);position:relative}.playerAccountVault .closeButton{position:absolute;background:none;border:none;top:var(--emw--spacing-medium, 16px);right:var(--emw--spacing-small, 10px);line-height:0;cursor:pointer}.playerAccountVault .closeButton svg{fill:var(--emw--color-faded, #A0A29F)}.playerAccountVault .playerVaultContainer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-smaller, 5px);box-sizing:border-box}.playerAccountVault .amountContainer{display:flex;align-items:center}.playerAccountVault .headerContainer{display:flex;width:100%;gap:var(--emw--spacing-small, 10px);justify-content:space-between;flex-direction:column}.playerAccountVault .headerContainer .headerTitle{font-family:inherit;color:var(--emw--color-secondary, #24B04F);font-size:var(--emw--font-size-large, 16px);font-weight:var(--emw--font-weight-normal, 400)}.playerAccountVault .headerContainer .totalAmount{margin-right:4px;color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .exchangesContainer{width:100%;height:100%;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .exchangeHeader,.playerAccountVault .exchangesContainer .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow{display:flex;align-items:center;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-outer-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]{-moz-appearance:textfield}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput{flex:1;min-width:50px;border:unset;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-medium, 14px);padding:0 var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-small, 8px);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));font-family:inherit;color:var(--emw--input-typography, #000)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput[disabled],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput[disabled]{color:var(--emw--input-disabled, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput::placeholder,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput::placeholder{color:var(--emw--input-placeholder, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect{min-width:96px;border:unset;white-space:nowrap;height:var(--emw--base-height, 36px);padding:0 var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer{display:flex;justify-content:space-between;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer .validationError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer .validationError{flex:1}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance{white-space:nowrap;justify-content:flex-end}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance .amount,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance .amount{color:var(--emw--color-faded, #A0A29F);margin-right:4px}.playerAccountVault .vaultsContainer{display:flex;flex-direction:column;width:100%}.playerAccountVault .vaultsContainer .vaultToggleButton{display:flex;align-items:center;justify-content:center;width:35px;height:35px;cursor:pointer;border:unset;align-self:flex-end;padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon path{fill:var(--emw--color-white, #fff)}.playerAccountVault .vaultsContainer .vaultToggleButton.active .vaultToggleIcon{transform:rotateZ(180deg)}.playerAccountVault .vaultsContainer .vaultDropdown{width:80%;max-height:0;height:200px;margin:0 auto;display:flex;flex-direction:column;overflow:auto;opacity:0;scrollbar-width:thin;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-white, #fff);font-family:inherit;transition:max-height 0.4s ease-out, opacity 0.4s ease-out}.playerAccountVault .vaultsContainer .vaultDropdown .vaultItem{display:inherit;font-size:var(--emw--font-size-medium, 14px);justify-content:space-between;width:100%;margin:0 auto;box-sizing:border-box;height:var(--emw--base-height, 36px);padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultDropdown.expanded{transition:max-height 1s ease-in, opacity 0.4s ease-in;max-height:1000vh;opacity:1}.playerAccountVault .notificationsContainer{width:100%;min-height:var(--emw--base-height, 36px);padding:0px}.playerAccountVault .notificationsContainer.error{color:var(--emw--color-error, #FF2424)}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, #24B04F)}.playerAccountVault .feesContainer{width:100%;height:var(--emw--base-height, 36px);display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px);padding:0 var(--emw--spacing-small, 10px);box-sizing:border-box}.playerAccountVault .feesContainer .feesLabel{color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .actionsContainer{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .actionsContainer button{flex:1;height:var(--emw--base-height, 36px);border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--button-font-size, 14px);border-radius:var(--emw--border-radius-small, 8px);font-weight:var(--emw--font-weight-bold, 500);transition:background 0.3s ease, color 0.3s ease, filter 0.3s ease}.playerAccountVault .actionsContainer .exchangeButton{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--color-primary, #24B04F);border:1px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled.pending{background:var(--emw--color-primary, #24B04F);pointer-events:none;opacity:0.5}.playerAccountVault .skeleton{background-color:rgba(0, 0, 0, 0.11);height:auto;min-height:0.1rem;-webkit-animation:loading 1.5s ease-in-out 0.5s infinite;animation:loading 1.5s ease-in-out 0.5s infinite}.playerAccountVault .skeleton::before{content:" "}@keyframes loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.playerAccountVault .exchangeContainer{display:flex;flex-direction:column;gap:4px}');
|
|
4572
4572
|
}
|
|
4573
4573
|
function Vn(e, t, n) {
|
|
4574
4574
|
const r = e.slice();
|
|
@@ -4596,66 +4596,66 @@ function Gn(e) {
|
|
|
4596
4596
|
}
|
|
4597
4597
|
function $n(e) {
|
|
4598
4598
|
let t, n, r, i;
|
|
4599
|
-
const a = [Va, Ua],
|
|
4600
|
-
function
|
|
4599
|
+
const a = [Va, Ua], l = [];
|
|
4600
|
+
function s(o, u) {
|
|
4601
4601
|
return !/*isBalanceFetched*/
|
|
4602
|
-
|
|
4603
|
-
|
|
4602
|
+
o[16] || !/*isCurrenciesFetched*/
|
|
4603
|
+
o[17] ? 0 : 1;
|
|
4604
4604
|
}
|
|
4605
|
-
return t =
|
|
4605
|
+
return t = s(e), n = l[t] = a[t](e), {
|
|
4606
4606
|
c() {
|
|
4607
4607
|
n.c(), r = Br();
|
|
4608
4608
|
},
|
|
4609
|
-
m(
|
|
4610
|
-
|
|
4609
|
+
m(o, u) {
|
|
4610
|
+
l[t].m(o, u), C(o, r, u), i = !0;
|
|
4611
4611
|
},
|
|
4612
|
-
p(
|
|
4612
|
+
p(o, u) {
|
|
4613
4613
|
let h = t;
|
|
4614
|
-
t =
|
|
4615
|
-
|
|
4616
|
-
}), Le(), n =
|
|
4614
|
+
t = s(o), t === h ? l[t].p(o, u) : (Ie(), X(l[h], 1, 1, () => {
|
|
4615
|
+
l[h] = null;
|
|
4616
|
+
}), Le(), n = l[t], n ? n.p(o, u) : (n = l[t] = a[t](o), n.c()), G(n, 1), n.m(r.parentNode, r));
|
|
4617
4617
|
},
|
|
4618
|
-
i(
|
|
4618
|
+
i(o) {
|
|
4619
4619
|
i || (G(n), i = !0);
|
|
4620
4620
|
},
|
|
4621
|
-
o(
|
|
4621
|
+
o(o) {
|
|
4622
4622
|
X(n), i = !1;
|
|
4623
4623
|
},
|
|
4624
|
-
d(
|
|
4625
|
-
|
|
4624
|
+
d(o) {
|
|
4625
|
+
o && A(r), l[t].d(o);
|
|
4626
4626
|
}
|
|
4627
4627
|
};
|
|
4628
4628
|
}
|
|
4629
4629
|
function Ua(e) {
|
|
4630
4630
|
let t, n, r, i;
|
|
4631
|
-
const a = [$a, Ga],
|
|
4632
|
-
function
|
|
4631
|
+
const a = [$a, Ga], l = [];
|
|
4632
|
+
function s(o, u) {
|
|
4633
4633
|
return (
|
|
4634
4634
|
/*fetchResponse*/
|
|
4635
|
-
|
|
4635
|
+
o[12]?.source === z.BalanceError ? 0 : 1
|
|
4636
4636
|
);
|
|
4637
4637
|
}
|
|
4638
|
-
return n =
|
|
4638
|
+
return n = s(e), r = l[n] = a[n](e), {
|
|
4639
4639
|
c() {
|
|
4640
4640
|
t = w("div"), r.c(), g(t, "class", "headerPlayerBalance amountContainer");
|
|
4641
4641
|
},
|
|
4642
|
-
m(
|
|
4643
|
-
C(
|
|
4642
|
+
m(o, u) {
|
|
4643
|
+
C(o, t, u), l[n].m(t, null), i = !0;
|
|
4644
4644
|
},
|
|
4645
|
-
p(
|
|
4645
|
+
p(o, u) {
|
|
4646
4646
|
let h = n;
|
|
4647
|
-
n =
|
|
4648
|
-
|
|
4649
|
-
}), Le(), r =
|
|
4647
|
+
n = s(o), n === h ? l[n].p(o, u) : (Ie(), X(l[h], 1, 1, () => {
|
|
4648
|
+
l[h] = null;
|
|
4649
|
+
}), Le(), r = l[n], r ? r.p(o, u) : (r = l[n] = a[n](o), r.c()), G(r, 1), r.m(t, null));
|
|
4650
4650
|
},
|
|
4651
|
-
i(
|
|
4651
|
+
i(o) {
|
|
4652
4652
|
i || (G(r), i = !0);
|
|
4653
4653
|
},
|
|
4654
|
-
o(
|
|
4654
|
+
o(o) {
|
|
4655
4655
|
X(r), i = !1;
|
|
4656
4656
|
},
|
|
4657
|
-
d(
|
|
4658
|
-
|
|
4657
|
+
d(o) {
|
|
4658
|
+
o && A(t), l[n].d();
|
|
4659
4659
|
}
|
|
4660
4660
|
};
|
|
4661
4661
|
}
|
|
@@ -4680,28 +4680,28 @@ function Ga(e) {
|
|
|
4680
4680
|
let t, n, r = (
|
|
4681
4681
|
/*playerBalance*/
|
|
4682
4682
|
(e[10]?.amount || 0) + ""
|
|
4683
|
-
), i, a,
|
|
4683
|
+
), i, a, l = (
|
|
4684
4684
|
/*playerBalance*/
|
|
4685
4685
|
(e[10]?.currency || "") + ""
|
|
4686
|
-
),
|
|
4686
|
+
), s;
|
|
4687
4687
|
return {
|
|
4688
4688
|
c() {
|
|
4689
|
-
t = w("span"), t.textContent = `${O("totalBalance")}`, n = P(), i = W(r), a = P(),
|
|
4689
|
+
t = w("span"), t.textContent = `${O("totalBalance")}`, n = P(), i = W(r), a = P(), s = W(l), g(t, "class", "totalAmount");
|
|
4690
4690
|
},
|
|
4691
|
-
m(
|
|
4692
|
-
C(
|
|
4691
|
+
m(o, u) {
|
|
4692
|
+
C(o, t, u), C(o, n, u), C(o, i, u), C(o, a, u), C(o, s, u);
|
|
4693
4693
|
},
|
|
4694
|
-
p(
|
|
4695
|
-
|
|
4694
|
+
p(o, u) {
|
|
4695
|
+
u[0] & /*playerBalance*/
|
|
4696
4696
|
1024 && r !== (r = /*playerBalance*/
|
|
4697
|
-
(
|
|
4698
|
-
1024 &&
|
|
4699
|
-
(
|
|
4697
|
+
(o[10]?.amount || 0) + "") && ne(i, r), u[0] & /*playerBalance*/
|
|
4698
|
+
1024 && l !== (l = /*playerBalance*/
|
|
4699
|
+
(o[10]?.currency || "") + "") && ne(s, l);
|
|
4700
4700
|
},
|
|
4701
4701
|
i: B,
|
|
4702
4702
|
o: B,
|
|
4703
|
-
d(
|
|
4704
|
-
|
|
4703
|
+
d(o) {
|
|
4704
|
+
o && (A(t), A(n), A(i), A(a), A(s));
|
|
4705
4705
|
}
|
|
4706
4706
|
};
|
|
4707
4707
|
}
|
|
@@ -4727,7 +4727,7 @@ function $a(e) {
|
|
|
4727
4727
|
};
|
|
4728
4728
|
}
|
|
4729
4729
|
function ja(e) {
|
|
4730
|
-
let t, n, r, i, a,
|
|
4730
|
+
let t, n, r, i, a, l, s, o, u;
|
|
4731
4731
|
const h = [za, Wa], d = [];
|
|
4732
4732
|
function c(p, v) {
|
|
4733
4733
|
return (
|
|
@@ -4735,39 +4735,39 @@ function ja(e) {
|
|
|
4735
4735
|
p[12]?.source === z.BalanceError ? 0 : 1
|
|
4736
4736
|
);
|
|
4737
4737
|
}
|
|
4738
|
-
return
|
|
4738
|
+
return l = c(e), s = d[l] = h[l](e), {
|
|
4739
4739
|
c() {
|
|
4740
4740
|
t = w("div"), n = w("p"), r = W(
|
|
4741
4741
|
/*validationError*/
|
|
4742
4742
|
e[13]
|
|
4743
|
-
), i = P(), a = w("div"),
|
|
4743
|
+
), i = P(), a = w("div"), s.c(), g(n, "class", "validationError"), g(a, "class", "playerBalance amountContainer"), g(t, "class", o = "balanceContainer " + /*validationError*/
|
|
4744
4744
|
(e[13] ? "hasError" : ""));
|
|
4745
4745
|
},
|
|
4746
4746
|
m(p, v) {
|
|
4747
|
-
C(p, t, v), y(t, n), y(n, r), y(t, i), y(t, a), d[
|
|
4747
|
+
C(p, t, v), y(t, n), y(n, r), y(t, i), y(t, a), d[l].m(a, null), u = !0;
|
|
4748
4748
|
},
|
|
4749
4749
|
p(p, v) {
|
|
4750
|
-
(!
|
|
4750
|
+
(!u || v[0] & /*validationError*/
|
|
4751
4751
|
8192) && ne(
|
|
4752
4752
|
r,
|
|
4753
4753
|
/*validationError*/
|
|
4754
4754
|
p[13]
|
|
4755
4755
|
);
|
|
4756
|
-
let b =
|
|
4757
|
-
|
|
4756
|
+
let b = l;
|
|
4757
|
+
l = c(p), l === b ? d[l].p(p, v) : (Ie(), X(d[b], 1, 1, () => {
|
|
4758
4758
|
d[b] = null;
|
|
4759
|
-
}), Le(),
|
|
4760
|
-
8192 &&
|
|
4761
|
-
(p[13] ? "hasError" : ""))) && g(t, "class",
|
|
4759
|
+
}), Le(), s = d[l], s ? s.p(p, v) : (s = d[l] = h[l](p), s.c()), G(s, 1), s.m(a, null)), (!u || v[0] & /*validationError*/
|
|
4760
|
+
8192 && o !== (o = "balanceContainer " + /*validationError*/
|
|
4761
|
+
(p[13] ? "hasError" : ""))) && g(t, "class", o);
|
|
4762
4762
|
},
|
|
4763
4763
|
i(p) {
|
|
4764
|
-
|
|
4764
|
+
u || (G(s), u = !0);
|
|
4765
4765
|
},
|
|
4766
4766
|
o(p) {
|
|
4767
|
-
X(
|
|
4767
|
+
X(s), u = !1;
|
|
4768
4768
|
},
|
|
4769
4769
|
d(p) {
|
|
4770
|
-
p && A(t), d[
|
|
4770
|
+
p && A(t), d[l].d();
|
|
4771
4771
|
}
|
|
4772
4772
|
};
|
|
4773
4773
|
}
|
|
@@ -4792,28 +4792,28 @@ function Wa(e) {
|
|
|
4792
4792
|
let t, n, r = (
|
|
4793
4793
|
/*selectedCurrencyFrom*/
|
|
4794
4794
|
(e[5]?.amount || 0) + ""
|
|
4795
|
-
), i, a,
|
|
4795
|
+
), i, a, l = (
|
|
4796
4796
|
/*selectedCurrencyFrom*/
|
|
4797
4797
|
(e[5]?.currency || "") + ""
|
|
4798
|
-
),
|
|
4798
|
+
), s;
|
|
4799
4799
|
return {
|
|
4800
4800
|
c() {
|
|
4801
|
-
t = w("span"), t.textContent = `${O("currentBalance")}`, n = P(), i = W(r), a = P(),
|
|
4801
|
+
t = w("span"), t.textContent = `${O("currentBalance")}`, n = P(), i = W(r), a = P(), s = W(l), g(t, "class", "amount");
|
|
4802
4802
|
},
|
|
4803
|
-
m(
|
|
4804
|
-
C(
|
|
4803
|
+
m(o, u) {
|
|
4804
|
+
C(o, t, u), C(o, n, u), C(o, i, u), C(o, a, u), C(o, s, u);
|
|
4805
4805
|
},
|
|
4806
|
-
p(
|
|
4807
|
-
|
|
4806
|
+
p(o, u) {
|
|
4807
|
+
u[0] & /*selectedCurrencyFrom*/
|
|
4808
4808
|
32 && r !== (r = /*selectedCurrencyFrom*/
|
|
4809
|
-
(
|
|
4810
|
-
32 &&
|
|
4811
|
-
(
|
|
4809
|
+
(o[5]?.amount || 0) + "") && ne(i, r), u[0] & /*selectedCurrencyFrom*/
|
|
4810
|
+
32 && l !== (l = /*selectedCurrencyFrom*/
|
|
4811
|
+
(o[5]?.currency || "") + "") && ne(s, l);
|
|
4812
4812
|
},
|
|
4813
4813
|
i: B,
|
|
4814
4814
|
o: B,
|
|
4815
|
-
d(
|
|
4816
|
-
|
|
4815
|
+
d(o) {
|
|
4816
|
+
o && (A(t), A(n), A(i), A(a), A(s));
|
|
4817
4817
|
}
|
|
4818
4818
|
};
|
|
4819
4819
|
}
|
|
@@ -4840,38 +4840,38 @@ function za(e) {
|
|
|
4840
4840
|
}
|
|
4841
4841
|
function Za(e) {
|
|
4842
4842
|
let t, n, r, i;
|
|
4843
|
-
const a = [
|
|
4844
|
-
function
|
|
4843
|
+
const a = [Qa, Ka], l = [];
|
|
4844
|
+
function s(o, u) {
|
|
4845
4845
|
return (
|
|
4846
4846
|
/*fetchResponse*/
|
|
4847
|
-
|
|
4847
|
+
o[12]?.source === z.BalanceError ? 0 : 1
|
|
4848
4848
|
);
|
|
4849
4849
|
}
|
|
4850
|
-
return n =
|
|
4850
|
+
return n = s(e), r = l[n] = a[n](e), {
|
|
4851
4851
|
c() {
|
|
4852
4852
|
t = w("div"), r.c(), g(t, "class", "playerBalance amountContainer");
|
|
4853
4853
|
},
|
|
4854
|
-
m(
|
|
4855
|
-
C(
|
|
4854
|
+
m(o, u) {
|
|
4855
|
+
C(o, t, u), l[n].m(t, null), i = !0;
|
|
4856
4856
|
},
|
|
4857
|
-
p(
|
|
4857
|
+
p(o, u) {
|
|
4858
4858
|
let h = n;
|
|
4859
|
-
n =
|
|
4860
|
-
|
|
4861
|
-
}), Le(), r =
|
|
4859
|
+
n = s(o), n === h ? l[n].p(o, u) : (Ie(), X(l[h], 1, 1, () => {
|
|
4860
|
+
l[h] = null;
|
|
4861
|
+
}), Le(), r = l[n], r ? r.p(o, u) : (r = l[n] = a[n](o), r.c()), G(r, 1), r.m(t, null));
|
|
4862
4862
|
},
|
|
4863
|
-
i(
|
|
4863
|
+
i(o) {
|
|
4864
4864
|
i || (G(r), i = !0);
|
|
4865
4865
|
},
|
|
4866
|
-
o(
|
|
4866
|
+
o(o) {
|
|
4867
4867
|
X(r), i = !1;
|
|
4868
4868
|
},
|
|
4869
|
-
d(
|
|
4870
|
-
|
|
4869
|
+
d(o) {
|
|
4870
|
+
o && A(t), l[n].d();
|
|
4871
4871
|
}
|
|
4872
4872
|
};
|
|
4873
4873
|
}
|
|
4874
|
-
function
|
|
4874
|
+
function qa(e) {
|
|
4875
4875
|
let t;
|
|
4876
4876
|
return {
|
|
4877
4877
|
c() {
|
|
@@ -4892,32 +4892,32 @@ function Ka(e) {
|
|
|
4892
4892
|
let t, n, r = (
|
|
4893
4893
|
/*selectedCurrencyTo*/
|
|
4894
4894
|
(e[6]?.amount || 0) + ""
|
|
4895
|
-
), i, a,
|
|
4895
|
+
), i, a, l = (
|
|
4896
4896
|
/*selectedCurrencyTo*/
|
|
4897
4897
|
(e[6]?.currency || "") + ""
|
|
4898
|
-
),
|
|
4898
|
+
), s;
|
|
4899
4899
|
return {
|
|
4900
4900
|
c() {
|
|
4901
|
-
t = w("span"), t.textContent = `${O("currentBalance")}`, n = P(), i = W(r), a = P(),
|
|
4901
|
+
t = w("span"), t.textContent = `${O("currentBalance")}`, n = P(), i = W(r), a = P(), s = W(l), g(t, "class", "amount");
|
|
4902
4902
|
},
|
|
4903
|
-
m(
|
|
4904
|
-
C(
|
|
4903
|
+
m(o, u) {
|
|
4904
|
+
C(o, t, u), C(o, n, u), C(o, i, u), C(o, a, u), C(o, s, u);
|
|
4905
4905
|
},
|
|
4906
|
-
p(
|
|
4907
|
-
|
|
4906
|
+
p(o, u) {
|
|
4907
|
+
u[0] & /*selectedCurrencyTo*/
|
|
4908
4908
|
64 && r !== (r = /*selectedCurrencyTo*/
|
|
4909
|
-
(
|
|
4910
|
-
64 &&
|
|
4911
|
-
(
|
|
4909
|
+
(o[6]?.amount || 0) + "") && ne(i, r), u[0] & /*selectedCurrencyTo*/
|
|
4910
|
+
64 && l !== (l = /*selectedCurrencyTo*/
|
|
4911
|
+
(o[6]?.currency || "") + "") && ne(s, l);
|
|
4912
4912
|
},
|
|
4913
4913
|
i: B,
|
|
4914
4914
|
o: B,
|
|
4915
|
-
d(
|
|
4916
|
-
|
|
4915
|
+
d(o) {
|
|
4916
|
+
o && (A(t), A(n), A(i), A(a), A(s));
|
|
4917
4917
|
}
|
|
4918
4918
|
};
|
|
4919
4919
|
}
|
|
4920
|
-
function
|
|
4920
|
+
function Qa(e) {
|
|
4921
4921
|
let t, n;
|
|
4922
4922
|
return t = new Dt({}), {
|
|
4923
4923
|
c() {
|
|
@@ -4939,7 +4939,7 @@ function Ya(e) {
|
|
|
4939
4939
|
};
|
|
4940
4940
|
}
|
|
4941
4941
|
function jn(e) {
|
|
4942
|
-
let t, n, r, i, a,
|
|
4942
|
+
let t, n, r, i, a, l, s, o, u, h, d = Tt(
|
|
4943
4943
|
/*dropDownVaults*/
|
|
4944
4944
|
e[19]
|
|
4945
4945
|
), c = [];
|
|
@@ -4947,25 +4947,25 @@ function jn(e) {
|
|
|
4947
4947
|
c[p] = Xn(Vn(e, d, p));
|
|
4948
4948
|
return {
|
|
4949
4949
|
c() {
|
|
4950
|
-
t = w("div"), n = w("button"), r = mn("svg"), i = mn("path"),
|
|
4950
|
+
t = w("div"), n = w("button"), r = mn("svg"), i = mn("path"), l = P(), s = w("div");
|
|
4951
4951
|
for (let p = 0; p < c.length; p += 1)
|
|
4952
4952
|
c[p].c();
|
|
4953
4953
|
g(i, "d", "M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z"), g(i, "fill", "currentColor"), g(r, "class", "vaultToggleIcon"), g(r, "width", "12"), g(r, "height", "7"), g(r, "viewBox", "0 0 12 7"), g(r, "fill", "currentColor"), g(r, "xmlns", "http://www.w3.org/2000/svg"), g(n, "type", "button"), g(n, "class", a = "vaultToggleButton " + /*isVaultDropDownToggled*/
|
|
4954
4954
|
(e[15] && /*dropDownVaults*/
|
|
4955
|
-
e[19].length > 0 ? "active" : "")), g(
|
|
4955
|
+
e[19].length > 0 ? "active" : "")), g(s, "class", o = "vaultDropdown " + /*isVaultDropDownToggled*/
|
|
4956
4956
|
(e[15] && /*dropDownVaults*/
|
|
4957
4957
|
e[19].length > 0 ? "expanded" : "")), g(t, "class", "vaultsContainer");
|
|
4958
4958
|
},
|
|
4959
4959
|
m(p, v) {
|
|
4960
|
-
C(p, t, v), y(t, n), y(n, r), y(r, i), y(t,
|
|
4960
|
+
C(p, t, v), y(t, n), y(n, r), y(r, i), y(t, l), y(t, s);
|
|
4961
4961
|
for (let b = 0; b < c.length; b += 1)
|
|
4962
|
-
c[b] && c[b].m(
|
|
4963
|
-
|
|
4962
|
+
c[b] && c[b].m(s, null);
|
|
4963
|
+
u || (h = te(
|
|
4964
4964
|
n,
|
|
4965
4965
|
"click",
|
|
4966
4966
|
/*handleToggleVaultDropdown*/
|
|
4967
4967
|
e[22]
|
|
4968
|
-
),
|
|
4968
|
+
), u = !0);
|
|
4969
4969
|
},
|
|
4970
4970
|
p(p, v) {
|
|
4971
4971
|
if (v[0] & /*isVaultDropDownToggled, dropDownVaults*/
|
|
@@ -4980,19 +4980,19 @@ function jn(e) {
|
|
|
4980
4980
|
let b;
|
|
4981
4981
|
for (b = 0; b < d.length; b += 1) {
|
|
4982
4982
|
const L = Vn(p, d, b);
|
|
4983
|
-
c[b] ? c[b].p(L, v) : (c[b] = Xn(L), c[b].c(), c[b].m(
|
|
4983
|
+
c[b] ? c[b].p(L, v) : (c[b] = Xn(L), c[b].c(), c[b].m(s, null));
|
|
4984
4984
|
}
|
|
4985
4985
|
for (; b < c.length; b += 1)
|
|
4986
4986
|
c[b].d(1);
|
|
4987
4987
|
c.length = d.length;
|
|
4988
4988
|
}
|
|
4989
4989
|
v[0] & /*isVaultDropDownToggled, dropDownVaults*/
|
|
4990
|
-
557056 &&
|
|
4990
|
+
557056 && o !== (o = "vaultDropdown " + /*isVaultDropDownToggled*/
|
|
4991
4991
|
(p[15] && /*dropDownVaults*/
|
|
4992
|
-
p[19].length > 0 ? "expanded" : "")) && g(
|
|
4992
|
+
p[19].length > 0 ? "expanded" : "")) && g(s, "class", o);
|
|
4993
4993
|
},
|
|
4994
4994
|
d(p) {
|
|
4995
|
-
p && A(t), Zn(c, p),
|
|
4995
|
+
p && A(t), Zn(c, p), u = !1, h();
|
|
4996
4996
|
}
|
|
4997
4997
|
};
|
|
4998
4998
|
}
|
|
@@ -5000,30 +5000,30 @@ function Xn(e) {
|
|
|
5000
5000
|
let t, n, r = (
|
|
5001
5001
|
/*vault*/
|
|
5002
5002
|
e[62]?.currency + ""
|
|
5003
|
-
), i, a,
|
|
5003
|
+
), i, a, l, s = (
|
|
5004
5004
|
/*vault*/
|
|
5005
5005
|
e[62]?.amount + ""
|
|
5006
|
-
),
|
|
5006
|
+
), o, u;
|
|
5007
5007
|
return {
|
|
5008
5008
|
c() {
|
|
5009
|
-
t = w("div"), n = w("p"), i = W(r), a = P(),
|
|
5009
|
+
t = w("div"), n = w("p"), i = W(r), a = P(), l = w("p"), o = W(s), u = P(), g(t, "class", "vaultItem");
|
|
5010
5010
|
},
|
|
5011
5011
|
m(h, d) {
|
|
5012
|
-
C(h, t, d), y(t, n), y(n, i), y(t, a), y(t,
|
|
5012
|
+
C(h, t, d), y(t, n), y(n, i), y(t, a), y(t, l), y(l, o), y(t, u);
|
|
5013
5013
|
},
|
|
5014
5014
|
p(h, d) {
|
|
5015
5015
|
d[0] & /*dropDownVaults*/
|
|
5016
5016
|
524288 && r !== (r = /*vault*/
|
|
5017
5017
|
h[62]?.currency + "") && ne(i, r), d[0] & /*dropDownVaults*/
|
|
5018
|
-
524288 &&
|
|
5019
|
-
h[62]?.amount + "") && ne(
|
|
5018
|
+
524288 && s !== (s = /*vault*/
|
|
5019
|
+
h[62]?.amount + "") && ne(o, s);
|
|
5020
5020
|
},
|
|
5021
5021
|
d(h) {
|
|
5022
5022
|
h && A(t);
|
|
5023
5023
|
}
|
|
5024
5024
|
};
|
|
5025
5025
|
}
|
|
5026
|
-
function
|
|
5026
|
+
function Ya(e) {
|
|
5027
5027
|
let t = `${/*currentFee*/
|
|
5028
5028
|
e[11]?.fees[0]?.amount || 0} ${/*currentFee*/
|
|
5029
5029
|
e[11]?.fees[0]?.currency || ""}`, n;
|
|
@@ -5045,7 +5045,7 @@ function Ja(e) {
|
|
|
5045
5045
|
}
|
|
5046
5046
|
};
|
|
5047
5047
|
}
|
|
5048
|
-
function
|
|
5048
|
+
function Ja(e) {
|
|
5049
5049
|
let t = O("feesUnavailable") + "", n;
|
|
5050
5050
|
return {
|
|
5051
5051
|
c() {
|
|
@@ -5061,17 +5061,17 @@ function qa(e) {
|
|
|
5061
5061
|
};
|
|
5062
5062
|
}
|
|
5063
5063
|
function eo(e) {
|
|
5064
|
-
let t, n, r, i, a,
|
|
5064
|
+
let t, n, r, i, a, l, s, o, u, h, d, c, p, v, b, L, N, R, _, $, M, Z, de, re, j, se, pe, ae, le, Ee, q, Y, ue, Qe, xe, Re, ht, Oe, Ye, ie, me = O(
|
|
5065
5065
|
/*fetchResponse*/
|
|
5066
5066
|
e[12]?.message || ""
|
|
5067
|
-
) + "", we,
|
|
5067
|
+
) + "", we, ge, be, De, J, Ae = O("exchange") + "", ft, ye, ee, Je, et, K = (
|
|
5068
5068
|
/*showclosebutton*/
|
|
5069
5069
|
e[3] === Te.true && Gn(e)
|
|
5070
5070
|
), U = (
|
|
5071
5071
|
/*showtotalbalance*/
|
|
5072
5072
|
e[2] === Te.true && $n(e)
|
|
5073
5073
|
);
|
|
5074
|
-
function
|
|
5074
|
+
function Mt(m) {
|
|
5075
5075
|
e[39](m);
|
|
5076
5076
|
}
|
|
5077
5077
|
let dt = {
|
|
@@ -5094,15 +5094,15 @@ function eo(e) {
|
|
|
5094
5094
|
};
|
|
5095
5095
|
/*selectedCurrencyFrom*/
|
|
5096
5096
|
e[5] !== void 0 && (dt.selected = /*selectedCurrencyFrom*/
|
|
5097
|
-
e[5]), b = new sn({ props: dt }), Ve.push(() => bn(b, "selected",
|
|
5098
|
-
const pt = [Xa, ja],
|
|
5097
|
+
e[5]), b = new sn({ props: dt }), Ve.push(() => bn(b, "selected", Mt));
|
|
5098
|
+
const pt = [Xa, ja], ce = [];
|
|
5099
5099
|
function tt(m, S) {
|
|
5100
5100
|
return !/*isBalanceFetched*/
|
|
5101
5101
|
m[16] || !/*isCurrenciesFetched*/
|
|
5102
5102
|
m[17] ? 0 : 1;
|
|
5103
5103
|
}
|
|
5104
|
-
R = tt(e), _ =
|
|
5105
|
-
function
|
|
5104
|
+
R = tt(e), _ = ce[R] = pt[R](e);
|
|
5105
|
+
function kt(m) {
|
|
5106
5106
|
e[41](m);
|
|
5107
5107
|
}
|
|
5108
5108
|
let mt = {
|
|
@@ -5127,14 +5127,14 @@ function eo(e) {
|
|
|
5127
5127
|
};
|
|
5128
5128
|
/*selectedCurrencyTo*/
|
|
5129
5129
|
e[6] !== void 0 && (mt.selected = /*selectedCurrencyTo*/
|
|
5130
|
-
e[6]), ae = new sn({ props: mt }), Ve.push(() => bn(ae, "selected",
|
|
5131
|
-
const gt = [
|
|
5130
|
+
e[6]), ae = new sn({ props: mt }), Ve.push(() => bn(ae, "selected", kt));
|
|
5131
|
+
const gt = [qa, Za], he = [];
|
|
5132
5132
|
function bt(m, S) {
|
|
5133
5133
|
return !/*isBalanceFetched*/
|
|
5134
5134
|
m[16] || !/*isCurrenciesFetched*/
|
|
5135
5135
|
m[17] ? 0 : 1;
|
|
5136
5136
|
}
|
|
5137
|
-
|
|
5137
|
+
q = bt(e), Y = he[q] = gt[q](e);
|
|
5138
5138
|
let f = (
|
|
5139
5139
|
/*showvaults*/
|
|
5140
5140
|
e[1] === Te.true && jn(e)
|
|
@@ -5142,19 +5142,19 @@ function eo(e) {
|
|
|
5142
5142
|
function E(m, S) {
|
|
5143
5143
|
return (
|
|
5144
5144
|
/*fetchResponse*/
|
|
5145
|
-
m[12]?.source === z.CheckWalletExchangeError ?
|
|
5145
|
+
m[12]?.source === z.CheckWalletExchangeError ? Ja : Ya
|
|
5146
5146
|
);
|
|
5147
5147
|
}
|
|
5148
5148
|
let I = E(e), x = I(e);
|
|
5149
5149
|
return {
|
|
5150
5150
|
c() {
|
|
5151
|
-
t = w("div"), K && K.c(), n = P(), r = w("div"), i = w("h1"), i.textContent = `${O("vaultExchange")}`, a = P(), U && U.c(),
|
|
5151
|
+
t = w("div"), K && K.c(), n = P(), r = w("div"), i = w("h1"), i.textContent = `${O("vaultExchange")}`, a = P(), U && U.c(), l = P(), s = w("div"), o = w("div"), u = w("p"), u.textContent = `${O("exchangeFrom")}`, h = P(), d = w("div"), c = w("input"), v = P(), st(b.$$.fragment), N = P(), _.c(), $ = P(), M = w("div"), Z = w("p"), Z.textContent = `${O("exchangeTo")}`, de = P(), re = w("div"), j = w("input"), pe = P(), st(ae.$$.fragment), Ee = P(), Y.c(), ue = P(), f && f.c(), Qe = P(), xe = w("div"), Re = w("span"), Re.textContent = `${O("feesIncluded")}`, ht = P(), Oe = w("span"), x.c(), Ye = P(), ie = w("div"), we = P(), ge = w("div"), be = w("button"), be.textContent = `${O("reset")}`, De = P(), J = w("button"), ft = W(Ae), g(i, "class", "headerTitle"), g(r, "class", "headerContainer"), g(u, "class", "exchangeHeader"), g(c, "id", "senderInput"), c.disabled = p = !/*session*/
|
|
5152
5152
|
e[0] || !/*isBalanceFetched*/
|
|
5153
5153
|
e[16] || !/*isCurrenciesFetched*/
|
|
5154
|
-
e[17], g(c, "placeholder", O("debitPlaceHolder")), g(c, "class", "exchangeInput"), g(c, "type", "number"), g(c, "aria-label", "Enter exchange amount"), g(c, "inputmode", "decimal"), g(c, "step", "0.000000000000001"), g(c, "min", "0"), g(d, "class", "flexingContainerRow"), g(
|
|
5154
|
+
e[17], g(c, "placeholder", O("debitPlaceHolder")), g(c, "class", "exchangeInput"), g(c, "type", "number"), g(c, "aria-label", "Enter exchange amount"), g(c, "inputmode", "decimal"), g(c, "step", "0.000000000000001"), g(c, "min", "0"), g(d, "class", "flexingContainerRow"), g(o, "class", "containerExchangeFrom exchangeContainer"), g(Z, "class", "exchangeHeader"), g(j, "id", "destinationInput"), j.disabled = se = !/*session*/
|
|
5155
5155
|
e[0] || !/*isBalanceFetched*/
|
|
5156
5156
|
e[16] || !/*isCurrenciesFetched*/
|
|
5157
|
-
e[17], g(j, "placeholder", O("creditPlaceHolder")), g(j, "class", "exchangeInput"), g(j, "type", "number"), j.readOnly = !0, g(j, "min", "0"), g(re, "class", "flexingContainerRow"), g(
|
|
5157
|
+
e[17], g(j, "placeholder", O("creditPlaceHolder")), g(j, "class", "exchangeInput"), g(j, "type", "number"), j.readOnly = !0, g(j, "min", "0"), g(re, "class", "flexingContainerRow"), g(M, "class", "containerExchangeTo exchangeContainer"), g(s, "class", "exchangesContainer"), g(Re, "class", "feesLabel"), g(xe, "class", "feesContainer"), g(ie, "class", "notificationsContainer"), oe(
|
|
5158
5158
|
ie,
|
|
5159
5159
|
"error",
|
|
5160
5160
|
/*fetchResponse*/
|
|
@@ -5164,33 +5164,33 @@ function eo(e) {
|
|
|
5164
5164
|
"success",
|
|
5165
5165
|
/*fetchResponse*/
|
|
5166
5166
|
e[12]?.type === "success"
|
|
5167
|
-
), g(
|
|
5167
|
+
), g(be, "class", "resetButton"), g(be, "type", "button"), g(J, "type", "button"), g(J, "class", "exchangeButton"), J.disabled = ye = /*isExchangeDisabled*/
|
|
5168
5168
|
e[14] || /*isExchangePending*/
|
|
5169
5169
|
e[18] || /*inputExchangeFrom*/
|
|
5170
5170
|
e[8] === 0 && !/*selectedCurrencyFrom*/
|
|
5171
5171
|
e[5]?.amount, oe(
|
|
5172
|
-
|
|
5172
|
+
J,
|
|
5173
5173
|
"disabled",
|
|
5174
5174
|
/*isExchangeDisabled*/
|
|
5175
5175
|
e[14] || /*isExchangePending*/
|
|
5176
5176
|
e[18]
|
|
5177
5177
|
), oe(
|
|
5178
|
-
|
|
5178
|
+
J,
|
|
5179
5179
|
"pending",
|
|
5180
5180
|
/*isExchangePending*/
|
|
5181
5181
|
e[18]
|
|
5182
|
-
), g(
|
|
5182
|
+
), g(ge, "class", "actionsContainer"), g(t, "class", "playerAccountVault");
|
|
5183
5183
|
},
|
|
5184
5184
|
m(m, S) {
|
|
5185
|
-
C(m, t, S), K && K.m(t, null), y(t, n), y(t, r), y(r, i), y(r, a), U && U.m(r, null), y(t,
|
|
5185
|
+
C(m, t, S), K && K.m(t, null), y(t, n), y(t, r), y(r, i), y(r, a), U && U.m(r, null), y(t, l), y(t, s), y(s, o), y(o, u), y(o, h), y(o, d), y(d, c), yt(
|
|
5186
5186
|
c,
|
|
5187
5187
|
/*inputExchangeFrom*/
|
|
5188
5188
|
e[8]
|
|
5189
|
-
), y(d, v), Ge(b, d, null), y(
|
|
5189
|
+
), y(d, v), Ge(b, d, null), y(o, N), ce[R].m(o, null), y(s, $), y(s, M), y(M, Z), y(M, de), y(M, re), y(re, j), yt(
|
|
5190
5190
|
j,
|
|
5191
5191
|
/*inputExchangeTo*/
|
|
5192
5192
|
e[9]
|
|
5193
|
-
), y(re,
|
|
5193
|
+
), y(re, pe), Ge(ae, re, null), y(M, Ee), he[q].m(M, null), y(t, ue), f && f.m(t, null), y(t, Qe), y(t, xe), y(xe, Re), y(xe, ht), y(xe, Oe), x.m(Oe, null), y(t, Ye), y(t, ie), ie.innerHTML = me, y(t, we), y(t, ge), y(ge, be), y(ge, De), y(ge, J), y(J, ft), e[42](t), ee = !0, Je || (et = [
|
|
5194
5194
|
te(
|
|
5195
5195
|
c,
|
|
5196
5196
|
"input",
|
|
@@ -5222,18 +5222,18 @@ function eo(e) {
|
|
|
5222
5222
|
e[40]
|
|
5223
5223
|
),
|
|
5224
5224
|
te(
|
|
5225
|
-
|
|
5225
|
+
be,
|
|
5226
5226
|
"click",
|
|
5227
5227
|
/*handleResetToDefault*/
|
|
5228
5228
|
e[24]
|
|
5229
5229
|
),
|
|
5230
5230
|
te(
|
|
5231
|
-
|
|
5231
|
+
J,
|
|
5232
5232
|
"click",
|
|
5233
5233
|
/*handleExchange*/
|
|
5234
5234
|
e[29]
|
|
5235
5235
|
)
|
|
5236
|
-
],
|
|
5236
|
+
], Je = !0);
|
|
5237
5237
|
},
|
|
5238
5238
|
p(m, S) {
|
|
5239
5239
|
/*showclosebutton*/
|
|
@@ -5264,41 +5264,41 @@ function eo(e) {
|
|
|
5264
5264
|
32 && (L = !0, He.selected = /*selectedCurrencyFrom*/
|
|
5265
5265
|
m[5], gn(() => L = !1)), b.$set(He);
|
|
5266
5266
|
let nt = R;
|
|
5267
|
-
R = tt(m), R === nt ?
|
|
5268
|
-
|
|
5269
|
-
}), Le(), _ =
|
|
5270
|
-
196609 &&
|
|
5267
|
+
R = tt(m), R === nt ? ce[R].p(m, S) : (Ie(), X(ce[nt], 1, 1, () => {
|
|
5268
|
+
ce[nt] = null;
|
|
5269
|
+
}), Le(), _ = ce[R], _ ? _.p(m, S) : (_ = ce[R] = pt[R](m), _.c()), G(_, 1), _.m(o, null)), (!ee || S[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5270
|
+
196609 && se !== (se = !/*session*/
|
|
5271
5271
|
m[0] || !/*isBalanceFetched*/
|
|
5272
5272
|
m[16] || !/*isCurrenciesFetched*/
|
|
5273
|
-
m[17])) && (j.disabled =
|
|
5273
|
+
m[17])) && (j.disabled = se), S[0] & /*inputExchangeTo*/
|
|
5274
5274
|
512 && Ct(j.value) !== /*inputExchangeTo*/
|
|
5275
5275
|
m[9] && yt(
|
|
5276
5276
|
j,
|
|
5277
5277
|
/*inputExchangeTo*/
|
|
5278
5278
|
m[9]
|
|
5279
5279
|
);
|
|
5280
|
-
const
|
|
5280
|
+
const k = {};
|
|
5281
5281
|
S[0] & /*showcurrencysymbol*/
|
|
5282
|
-
16 && (
|
|
5282
|
+
16 && (k.withSymbol = /*showcurrencysymbol*/
|
|
5283
5283
|
m[4]), S[0] & /*session, validationError, isBalanceFetched, isCurrenciesFetched*/
|
|
5284
|
-
204801 && (
|
|
5284
|
+
204801 && (k.disabled = !/*session*/
|
|
5285
5285
|
m[0] || !!/*validationError*/
|
|
5286
5286
|
m[13] || !/*isBalanceFetched*/
|
|
5287
5287
|
m[16] || !/*isCurrenciesFetched*/
|
|
5288
5288
|
m[17]), S[0] & /*optionsTo*/
|
|
5289
|
-
2097152 && (
|
|
5290
|
-
m[21]), !
|
|
5291
|
-
64 && (
|
|
5292
|
-
m[6], gn(() =>
|
|
5293
|
-
let
|
|
5294
|
-
|
|
5295
|
-
|
|
5296
|
-
}), Le(),
|
|
5297
|
-
m[1] === Te.true ? f ? f.p(m, S) : (f = jn(m), f.c(), f.m(t,
|
|
5298
|
-
4096) &&
|
|
5289
|
+
2097152 && (k.options = /*optionsTo*/
|
|
5290
|
+
m[21]), !le && S[0] & /*selectedCurrencyTo*/
|
|
5291
|
+
64 && (le = !0, k.selected = /*selectedCurrencyTo*/
|
|
5292
|
+
m[6], gn(() => le = !1)), ae.$set(k);
|
|
5293
|
+
let ve = q;
|
|
5294
|
+
q = bt(m), q === ve ? he[q].p(m, S) : (Ie(), X(he[ve], 1, 1, () => {
|
|
5295
|
+
he[ve] = null;
|
|
5296
|
+
}), Le(), Y = he[q], Y ? Y.p(m, S) : (Y = he[q] = gt[q](m), Y.c()), G(Y, 1), Y.m(M, null)), /*showvaults*/
|
|
5297
|
+
m[1] === Te.true ? f ? f.p(m, S) : (f = jn(m), f.c(), f.m(t, Qe)) : f && (f.d(1), f = null), I === (I = E(m)) && x ? x.p(m, S) : (x.d(1), x = I(m), x && (x.c(), x.m(Oe, null))), (!ee || S[0] & /*fetchResponse*/
|
|
5298
|
+
4096) && me !== (me = O(
|
|
5299
5299
|
/*fetchResponse*/
|
|
5300
5300
|
m[12]?.message || ""
|
|
5301
|
-
) + "") && (ie.innerHTML =
|
|
5301
|
+
) + "") && (ie.innerHTML = me), (!ee || S[0] & /*fetchResponse*/
|
|
5302
5302
|
4096) && oe(
|
|
5303
5303
|
ie,
|
|
5304
5304
|
"error",
|
|
@@ -5311,45 +5311,45 @@ function eo(e) {
|
|
|
5311
5311
|
/*fetchResponse*/
|
|
5312
5312
|
m[12]?.type === "success"
|
|
5313
5313
|
), (!ee || S[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
|
|
5314
|
-
278816 &&
|
|
5314
|
+
278816 && ye !== (ye = /*isExchangeDisabled*/
|
|
5315
5315
|
m[14] || /*isExchangePending*/
|
|
5316
5316
|
m[18] || /*inputExchangeFrom*/
|
|
5317
5317
|
m[8] === 0 && !/*selectedCurrencyFrom*/
|
|
5318
|
-
m[5]?.amount)) && (
|
|
5318
|
+
m[5]?.amount)) && (J.disabled = ye), (!ee || S[0] & /*isExchangeDisabled, isExchangePending*/
|
|
5319
5319
|
278528) && oe(
|
|
5320
|
-
|
|
5320
|
+
J,
|
|
5321
5321
|
"disabled",
|
|
5322
5322
|
/*isExchangeDisabled*/
|
|
5323
5323
|
m[14] || /*isExchangePending*/
|
|
5324
5324
|
m[18]
|
|
5325
5325
|
), (!ee || S[0] & /*isExchangePending*/
|
|
5326
5326
|
262144) && oe(
|
|
5327
|
-
|
|
5327
|
+
J,
|
|
5328
5328
|
"pending",
|
|
5329
5329
|
/*isExchangePending*/
|
|
5330
5330
|
m[18]
|
|
5331
5331
|
);
|
|
5332
5332
|
},
|
|
5333
5333
|
i(m) {
|
|
5334
|
-
ee || (G(U), G(b.$$.fragment, m), G(_), G(ae.$$.fragment, m), G(
|
|
5334
|
+
ee || (G(U), G(b.$$.fragment, m), G(_), G(ae.$$.fragment, m), G(Y), ee = !0);
|
|
5335
5335
|
},
|
|
5336
5336
|
o(m) {
|
|
5337
|
-
X(U), X(b.$$.fragment, m), X(_), X(ae.$$.fragment, m), X(
|
|
5337
|
+
X(U), X(b.$$.fragment, m), X(_), X(ae.$$.fragment, m), X(Y), ee = !1;
|
|
5338
5338
|
},
|
|
5339
5339
|
d(m) {
|
|
5340
|
-
m && A(t), K && K.d(), U && U.d(), $e(b),
|
|
5340
|
+
m && A(t), K && K.d(), U && U.d(), $e(b), ce[R].d(), $e(ae), he[q].d(), f && f.d(), x.d(), e[42](null), Je = !1, _e(et);
|
|
5341
5341
|
}
|
|
5342
5342
|
};
|
|
5343
5343
|
}
|
|
5344
5344
|
function to(e, t, n) {
|
|
5345
|
-
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang:
|
|
5345
|
+
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang: l = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: o = "" } = t, { translationurl: u = "" } = t, { playercurrency: h = "" } = t, { showvaults: d = "true" } = t, { showtotalbalance: c = "true" } = t, { showclosebutton: p = "true" } = t, { showcurrencysymbol: v = "true" } = t, b = null, L = null, N = 0, R = 0, _ = 0, $ = null, M = null, Z = null, de = "", re = !0, j = !1, se = !1, pe = !1, ae = !1, le = [], Ee = [], q = [], Y = [], ue;
|
|
5346
5346
|
Ta({ withLocale: "en", translations: {} }), Object.keys(Ln).forEach((f) => {
|
|
5347
5347
|
In(f, Ln[f]);
|
|
5348
5348
|
});
|
|
5349
|
-
const
|
|
5350
|
-
Ba(
|
|
5349
|
+
const Qe = () => {
|
|
5350
|
+
Ba(l);
|
|
5351
5351
|
}, xe = () => {
|
|
5352
|
-
fetch(
|
|
5352
|
+
fetch(u).then((f) => f.json()).then((f) => {
|
|
5353
5353
|
Object.keys(f).forEach((E) => {
|
|
5354
5354
|
In(E, f[E]);
|
|
5355
5355
|
});
|
|
@@ -5358,13 +5358,13 @@ function to(e, t, n) {
|
|
|
5358
5358
|
});
|
|
5359
5359
|
}, Re = () => {
|
|
5360
5360
|
let f = document.createElement("style");
|
|
5361
|
-
f.innerHTML =
|
|
5361
|
+
f.innerHTML = s, ue.appendChild(f);
|
|
5362
5362
|
}, ht = () => {
|
|
5363
|
-
let f, E = new URL(
|
|
5363
|
+
let f, E = new URL(o), I = document.createElement("style");
|
|
5364
5364
|
fetch(E.href).then((x) => x.text()).then((x) => {
|
|
5365
5365
|
I.innerHTML = x, f && clearTimeout(f), f = setTimeout(
|
|
5366
5366
|
() => {
|
|
5367
|
-
|
|
5367
|
+
ue.appendChild(I);
|
|
5368
5368
|
},
|
|
5369
5369
|
1
|
|
5370
5370
|
);
|
|
@@ -5377,7 +5377,7 @@ function to(e, t, n) {
|
|
|
5377
5377
|
},
|
|
5378
5378
|
window.location.href
|
|
5379
5379
|
));
|
|
5380
|
-
},
|
|
5380
|
+
}, Ye = () => {
|
|
5381
5381
|
window.postMessage(
|
|
5382
5382
|
{
|
|
5383
5383
|
type: Wt.VaultWidgetClosed
|
|
@@ -5385,19 +5385,19 @@ function to(e, t, n) {
|
|
|
5385
5385
|
window.location.href
|
|
5386
5386
|
);
|
|
5387
5387
|
}, ie = () => {
|
|
5388
|
-
n(14, re = !0), we(),
|
|
5389
|
-
},
|
|
5388
|
+
n(14, re = !0), we(), ge(), be(), De(), window.postMessage({ type: Wt.VaultWidgetReset }, window.location.href);
|
|
5389
|
+
}, me = () => {
|
|
5390
5390
|
n(14, re = !0), n(9, _ = 0);
|
|
5391
5391
|
}, we = () => {
|
|
5392
|
-
n(11,
|
|
5393
|
-
}, me = () => {
|
|
5394
|
-
n(8, N = 0), n(9, _ = 0);
|
|
5392
|
+
n(11, M = null);
|
|
5395
5393
|
}, ge = () => {
|
|
5396
|
-
n(
|
|
5394
|
+
n(8, N = 0), n(9, _ = 0);
|
|
5395
|
+
}, be = () => {
|
|
5396
|
+
n(13, de = "");
|
|
5397
5397
|
}, De = () => {
|
|
5398
5398
|
n(12, Z = null);
|
|
5399
|
-
},
|
|
5400
|
-
f && n(13,
|
|
5399
|
+
}, J = (f) => {
|
|
5400
|
+
f && n(13, de = f);
|
|
5401
5401
|
}, Ae = ({ type: f, message: E, source: I = "" }) => {
|
|
5402
5402
|
let x;
|
|
5403
5403
|
switch (n(12, Z = { message: E, source: I, type: f }), f) {
|
|
@@ -5415,10 +5415,10 @@ function to(e, t, n) {
|
|
|
5415
5415
|
}
|
|
5416
5416
|
}, ft = () => new Promise((f, E) => {
|
|
5417
5417
|
const I = Z?.message.includes(Pa.InvalidSession);
|
|
5418
|
-
I && E(), isNaN(Number(N)) && (
|
|
5419
|
-
}),
|
|
5418
|
+
I && E(), isNaN(Number(N)) && (me(), we(), E(O("invalidValue"))), N > b?.amount && (me(), we(), E(O("exceededValue"))), N === null && !I && (me(), we(), E()), N === 0 && N === 0 && !I && (ie(), E()), (!b || !L) && !I && E(), be(), f();
|
|
5419
|
+
}), ye = async (f, E) => {
|
|
5420
5420
|
const I = await f.json();
|
|
5421
|
-
return f?.status >= 200 && f?.status < 400 ? I : (E === z.CheckWalletExchangeError &&
|
|
5421
|
+
return f?.status >= 200 && f?.status < 400 ? I : (E === z.CheckWalletExchangeError && me(), !se && E === z.BalanceError && (n(16, se = !0), n(17, pe = !0)), !pe && E === z.CurrenciesError && n(17, pe = !0), Ae({
|
|
5422
5422
|
type: Ce.error,
|
|
5423
5423
|
message: O(I?.thirdPartyResponse?.code) || O(I?.thirdPartyResponse?.errorCode) || "generalError",
|
|
5424
5424
|
source: E
|
|
@@ -5432,32 +5432,32 @@ function to(e, t, n) {
|
|
|
5432
5432
|
"Content-Type": "application/json",
|
|
5433
5433
|
Accept: "application/json"
|
|
5434
5434
|
}
|
|
5435
|
-
}).then((m) =>
|
|
5435
|
+
}).then((m) => ye(m, z.CurrenciesError)).then((m) => {
|
|
5436
5436
|
f(m?.currencies);
|
|
5437
5437
|
}).catch((m) => {
|
|
5438
|
-
Ae({
|
|
5438
|
+
n(17, pe = !0), console.error("There was an error on the allowed currencies request.", m), Ae({
|
|
5439
5439
|
type: Ce.error,
|
|
5440
5440
|
message: O("generalError"),
|
|
5441
5441
|
source: z.CurrenciesError
|
|
5442
|
-
}), E()
|
|
5442
|
+
}), E();
|
|
5443
5443
|
}).finally(() => {
|
|
5444
|
-
n(17,
|
|
5444
|
+
n(17, pe = !0);
|
|
5445
5445
|
});
|
|
5446
|
-
}),
|
|
5446
|
+
}), Je = ({ data: f, shouldUpdateSelectedCurrencies: E, allowed: I = [] }) => {
|
|
5447
5447
|
const { items: x = [], totalAmount: m = {}, totalRealAmount: S } = f || {};
|
|
5448
|
-
n(10, $ = Object.entries(S || m).map(([
|
|
5448
|
+
n(10, $ = Object.entries(S || m).map(([k = "", ve = 0]) => ({ currency: k, amount: ve }))[0]);
|
|
5449
5449
|
let He = null;
|
|
5450
|
-
const nt = new Map(I.map((
|
|
5451
|
-
for (const
|
|
5452
|
-
if (
|
|
5453
|
-
const
|
|
5454
|
-
if (
|
|
5450
|
+
const nt = new Map(I.map((k) => [k.code, k]));
|
|
5451
|
+
for (const k of x)
|
|
5452
|
+
if (k?.type === Rn.Real) {
|
|
5453
|
+
const ve = nt.get(k?.currency);
|
|
5454
|
+
if (ve && ve.code === k?.currency) {
|
|
5455
5455
|
const rt = {
|
|
5456
|
-
...
|
|
5457
|
-
...
|
|
5458
|
-
symbol: Sa[
|
|
5456
|
+
...k,
|
|
5457
|
+
...ve,
|
|
5458
|
+
symbol: Sa[k?.currency]?.[0]
|
|
5459
5459
|
};
|
|
5460
|
-
n(37,
|
|
5460
|
+
n(37, le = [...le, rt]), k?.currency === $?.currency && n(10, $ = { ...$, ...rt }), k?.currency !== $?.currency && k?.walletAccountType === Rn.Vault && n(19, Ee = [...Ee, rt]), E && k?.amount > 0 && n(5, b = $?.currency ? $ : He), b && b?.currency === k?.currency && n(5, b = rt), L && L?.currency === k?.currency && n(6, L = rt);
|
|
5461
5461
|
}
|
|
5462
5462
|
}
|
|
5463
5463
|
}, et = (f = !0) => {
|
|
@@ -5469,22 +5469,22 @@ function to(e, t, n) {
|
|
|
5469
5469
|
"Content-Type": "application/json",
|
|
5470
5470
|
Accept: "application/json"
|
|
5471
5471
|
}
|
|
5472
|
-
}).then((x) =>
|
|
5472
|
+
}).then((x) => ye(x, z.BalanceError)).then((x) => {
|
|
5473
5473
|
x && ee().then((m) => {
|
|
5474
|
-
n(37,
|
|
5474
|
+
n(37, le = []), n(19, Ee = []), Je({
|
|
5475
5475
|
data: x,
|
|
5476
5476
|
shouldUpdateSelectedCurrencies: f,
|
|
5477
5477
|
allowed: m
|
|
5478
5478
|
});
|
|
5479
5479
|
});
|
|
5480
5480
|
}).catch((x) => {
|
|
5481
|
-
Ae({
|
|
5481
|
+
n(16, se = !0), console.error("There was an error with the player balance request.", x), Ae({
|
|
5482
5482
|
type: Ce.error,
|
|
5483
5483
|
message: O("generalError"),
|
|
5484
5484
|
source: z.BalanceError
|
|
5485
|
-
})
|
|
5485
|
+
});
|
|
5486
5486
|
}).finally(() => {
|
|
5487
|
-
n(16,
|
|
5487
|
+
n(16, se = !0);
|
|
5488
5488
|
});
|
|
5489
5489
|
}, U = Ia(() => {
|
|
5490
5490
|
ft().then(() => {
|
|
@@ -5504,8 +5504,8 @@ function to(e, t, n) {
|
|
|
5504
5504
|
},
|
|
5505
5505
|
body: Dn(E)
|
|
5506
5506
|
};
|
|
5507
|
-
fetch(f, I).then((x) =>
|
|
5508
|
-
x && (Z?.source === z.CheckWalletExchangeError && De(), Array.isArray(x?.fees?.fees) && n(11,
|
|
5507
|
+
fetch(f, I).then((x) => ye(x, z.CheckWalletExchangeError)).then((x) => {
|
|
5508
|
+
x && (Z?.source === z.CheckWalletExchangeError && De(), Array.isArray(x?.fees?.fees) && n(11, M = x.fees), Array.isArray(x?.walletActions) && n(9, _ = x.walletActions.find((m) => m?.directionName === "Credit")?.amount || 0), N > 0 && b?.currency && L?.currency && h && n(14, re = !1));
|
|
5509
5509
|
}).catch((x) => {
|
|
5510
5510
|
Ae({
|
|
5511
5511
|
type: Ce.error,
|
|
@@ -5514,9 +5514,9 @@ function to(e, t, n) {
|
|
|
5514
5514
|
}), console.error("There was a problem with the wallet exchange request.", x);
|
|
5515
5515
|
});
|
|
5516
5516
|
}).catch((f) => {
|
|
5517
|
-
|
|
5517
|
+
J(f);
|
|
5518
5518
|
});
|
|
5519
|
-
}, 500),
|
|
5519
|
+
}, 500), Mt = (f) => {
|
|
5520
5520
|
const E = f.target.value, [I, x] = E.split(".");
|
|
5521
5521
|
!x && E.length >= zt && n(8, N = E.slice(0, zt)), x && b?.type === On.Fiat && (x.length <= b?.precision ? (n(8, N = E), R = E) : n(8, N = R)), x && b?.type === On.CryptoCurrency && (E.length <= zt ? (n(8, N = E), R = E) : n(8, N = R)), U();
|
|
5522
5522
|
}, dt = (f) => {
|
|
@@ -5524,11 +5524,11 @@ function to(e, t, n) {
|
|
|
5524
5524
|
[">", "<", ","].includes(E) && f.preventDefault(), E && !E.match(/[\d.]/) && f.preventDefault(), E === "." && f.target.value.includes(".") && f.preventDefault();
|
|
5525
5525
|
}, pt = () => {
|
|
5526
5526
|
N === 0 && n(8, N = null);
|
|
5527
|
-
},
|
|
5527
|
+
}, ce = () => {
|
|
5528
5528
|
const f = new URL(`${a}/v2/player/${i}/wallet-exchange`);
|
|
5529
5529
|
n(18, ae = !0);
|
|
5530
5530
|
const E = {
|
|
5531
|
-
feeDetails:
|
|
5531
|
+
feeDetails: M,
|
|
5532
5532
|
userId: i,
|
|
5533
5533
|
amount: N,
|
|
5534
5534
|
currency: b?.currency,
|
|
@@ -5544,7 +5544,7 @@ function to(e, t, n) {
|
|
|
5544
5544
|
},
|
|
5545
5545
|
body: Dn(E)
|
|
5546
5546
|
};
|
|
5547
|
-
fetch(f, I).then((x) =>
|
|
5547
|
+
fetch(f, I).then((x) => ye(x, z.WalletExchangeError)).then((x) => {
|
|
5548
5548
|
x && (Ae({
|
|
5549
5549
|
type: Ce.success,
|
|
5550
5550
|
message: O("exchangeSuccess"),
|
|
@@ -5557,7 +5557,7 @@ function to(e, t, n) {
|
|
|
5557
5557
|
source: z.WalletExchangeError
|
|
5558
5558
|
}), console.error("There was an error with the wallet exchange request.", x);
|
|
5559
5559
|
}).finally(() => {
|
|
5560
|
-
n(18, ae = !1),
|
|
5560
|
+
n(18, ae = !1), ge(), we();
|
|
5561
5561
|
});
|
|
5562
5562
|
}, tt = (f) => {
|
|
5563
5563
|
const { data: { type: E } = {} } = f || {};
|
|
@@ -5566,14 +5566,14 @@ function to(e, t, n) {
|
|
|
5566
5566
|
ie();
|
|
5567
5567
|
break;
|
|
5568
5568
|
case Nn.CloseVaultWidget:
|
|
5569
|
-
|
|
5569
|
+
Ye();
|
|
5570
5570
|
break;
|
|
5571
5571
|
}
|
|
5572
5572
|
};
|
|
5573
5573
|
Kn(() => (window.addEventListener("message", tt), () => {
|
|
5574
5574
|
window.removeEventListener("message", tt);
|
|
5575
5575
|
}));
|
|
5576
|
-
function
|
|
5576
|
+
function kt() {
|
|
5577
5577
|
N = Ct(this.value), n(8, N);
|
|
5578
5578
|
}
|
|
5579
5579
|
function mt(f) {
|
|
@@ -5582,30 +5582,30 @@ function to(e, t, n) {
|
|
|
5582
5582
|
function gt() {
|
|
5583
5583
|
_ = Ct(this.value), n(9, _);
|
|
5584
5584
|
}
|
|
5585
|
-
function
|
|
5585
|
+
function he(f) {
|
|
5586
5586
|
L = f, n(6, L);
|
|
5587
5587
|
}
|
|
5588
5588
|
function bt(f) {
|
|
5589
5589
|
Ve[f ? "unshift" : "push"](() => {
|
|
5590
|
-
|
|
5590
|
+
ue = f, n(7, ue);
|
|
5591
5591
|
});
|
|
5592
5592
|
}
|
|
5593
5593
|
return e.$$set = (f) => {
|
|
5594
|
-
"session" in f && n(0, r = f.session), "userid" in f && n(30, i = f.userid), "endpoint" in f && n(31, a = f.endpoint), "lang" in f && n(32,
|
|
5594
|
+
"session" in f && n(0, r = f.session), "userid" in f && n(30, i = f.userid), "endpoint" in f && n(31, a = f.endpoint), "lang" in f && n(32, l = f.lang), "clientstyling" in f && n(33, s = f.clientstyling), "clientstylingurl" in f && n(34, o = f.clientstylingurl), "translationurl" in f && n(35, u = f.translationurl), "playercurrency" in f && n(36, h = f.playercurrency), "showvaults" in f && n(1, d = f.showvaults), "showtotalbalance" in f && n(2, c = f.showtotalbalance), "showclosebutton" in f && n(3, p = f.showclosebutton), "showcurrencysymbol" in f && n(4, v = f.showcurrencysymbol);
|
|
5595
5595
|
}, e.$$.update = () => {
|
|
5596
5596
|
e.$$.dirty[1] & /*lang*/
|
|
5597
|
-
2 &&
|
|
5598
|
-
1073741825 | e.$$.dirty[1] & /*endpoint, playercurrency*/
|
|
5599
|
-
33 && r && i && a && h && et(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5597
|
+
2 && l && Qe(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5600
5598
|
128 | e.$$.dirty[1] & /*clientstyling*/
|
|
5601
|
-
4 &&
|
|
5599
|
+
4 && s && ue && Re(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5602
5600
|
128 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5603
|
-
8 &&
|
|
5604
|
-
16 &&
|
|
5601
|
+
8 && o && ue && ht(), e.$$.dirty[1] & /*translationurl*/
|
|
5602
|
+
16 && u && xe(), e.$$.dirty[0] & /*session, userid*/
|
|
5603
|
+
1073741825 | e.$$.dirty[1] & /*endpoint, playercurrency*/
|
|
5604
|
+
33 && r && i && a && h && et(), e.$$.dirty[0] & /*selectedCurrencyTo*/
|
|
5605
5605
|
64 | e.$$.dirty[1] & /*filteredBalances*/
|
|
5606
|
-
64 && n(20,
|
|
5606
|
+
64 && n(20, q = le.filter((f) => f?.amount > 0 && f?.currency !== L?.currency)), e.$$.dirty[0] & /*selectedCurrencyFrom*/
|
|
5607
5607
|
32 | e.$$.dirty[1] & /*filteredBalances*/
|
|
5608
|
-
64 && n(21,
|
|
5608
|
+
64 && n(21, Y = le.filter((f) => b?.currency !== f?.currency));
|
|
5609
5609
|
}, [
|
|
5610
5610
|
r,
|
|
5611
5611
|
d,
|
|
@@ -5614,41 +5614,41 @@ function to(e, t, n) {
|
|
|
5614
5614
|
v,
|
|
5615
5615
|
b,
|
|
5616
5616
|
L,
|
|
5617
|
-
|
|
5617
|
+
ue,
|
|
5618
5618
|
N,
|
|
5619
5619
|
_,
|
|
5620
5620
|
$,
|
|
5621
|
-
|
|
5621
|
+
M,
|
|
5622
5622
|
Z,
|
|
5623
|
-
|
|
5623
|
+
de,
|
|
5624
5624
|
re,
|
|
5625
5625
|
j,
|
|
5626
|
-
|
|
5627
|
-
|
|
5626
|
+
se,
|
|
5627
|
+
pe,
|
|
5628
5628
|
ae,
|
|
5629
5629
|
Ee,
|
|
5630
|
-
|
|
5631
|
-
|
|
5630
|
+
q,
|
|
5631
|
+
Y,
|
|
5632
5632
|
Oe,
|
|
5633
|
-
|
|
5633
|
+
Ye,
|
|
5634
5634
|
ie,
|
|
5635
5635
|
U,
|
|
5636
|
-
|
|
5636
|
+
Mt,
|
|
5637
5637
|
dt,
|
|
5638
5638
|
pt,
|
|
5639
|
-
|
|
5639
|
+
ce,
|
|
5640
5640
|
i,
|
|
5641
5641
|
a,
|
|
5642
|
+
l,
|
|
5643
|
+
s,
|
|
5642
5644
|
o,
|
|
5643
5645
|
u,
|
|
5644
|
-
s,
|
|
5645
|
-
l,
|
|
5646
5646
|
h,
|
|
5647
|
-
|
|
5648
|
-
|
|
5647
|
+
le,
|
|
5648
|
+
kt,
|
|
5649
5649
|
mt,
|
|
5650
5650
|
gt,
|
|
5651
|
-
|
|
5651
|
+
he,
|
|
5652
5652
|
bt
|
|
5653
5653
|
];
|
|
5654
5654
|
}
|