@everymatrix/player-account-vault 0.19.8 → 0.19.10
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-DqqlFpzx.js → PlayerAccountVault-DPG24nvP.js} +1295 -1324
- package/components/PlayerAccountVault-Qgw_kZD3.cjs +3 -0
- package/components/{PlayerAccountVault-DlvJ0h2m.js → PlayerAccountVault-ZWbGntb2.js} +1269 -1298
- package/es2015/player-account-vault.cjs +1 -1
- package/es2015/player-account-vault.js +1 -1
- package/package.json +2 -2
- package/components/PlayerAccountVault-D2U-yg2W.cjs +0 -3
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
function
|
|
1
|
+
function S() {
|
|
2
2
|
}
|
|
3
3
|
function $n(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function fn() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function ve(e) {
|
|
10
10
|
e.forEach($n);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ot(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Tt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function br(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
21
|
function jn(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const r of t)
|
|
24
24
|
r(void 0);
|
|
25
|
-
return
|
|
25
|
+
return S;
|
|
26
26
|
}
|
|
27
27
|
const n = e.subscribe(...t);
|
|
28
28
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function yr(e) {
|
|
31
31
|
let t;
|
|
32
32
|
return jn(e, (n) => t = n)(), t;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
return e &&
|
|
34
|
+
function vr(e) {
|
|
35
|
+
return e && ot(e.destroy) ? e.destroy : S;
|
|
36
36
|
}
|
|
37
37
|
function y(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const r =
|
|
40
|
+
function on(e, t, n) {
|
|
41
|
+
const r = _r(e);
|
|
42
42
|
if (!r.getElementById(t)) {
|
|
43
|
-
const i =
|
|
44
|
-
i.id = t, i.textContent = n,
|
|
43
|
+
const i = E("style");
|
|
44
|
+
i.id = t, i.textContent = n, Er(r, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function _r(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,39 +54,39 @@ function Er(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Er(e, t) {
|
|
58
58
|
return y(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
61
61
|
t
|
|
62
62
|
), t.sheet;
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function T(e, t, n) {
|
|
65
65
|
e.insertBefore(t, n || null);
|
|
66
66
|
}
|
|
67
|
-
function
|
|
67
|
+
function C(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
70
|
function Xn(e, t) {
|
|
71
71
|
for (let n = 0; n < e.length; n += 1)
|
|
72
72
|
e[n] && e[n].d(t);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function E(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function dn(e) {
|
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function z(e) {
|
|
81
81
|
return document.createTextNode(e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
84
|
-
return
|
|
83
|
+
function I() {
|
|
84
|
+
return z(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
86
|
+
function xr() {
|
|
87
|
+
return z("");
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function ie(e, t, n, r) {
|
|
90
90
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
91
91
|
}
|
|
92
92
|
function wr(e) {
|
|
@@ -97,20 +97,20 @@ function wr(e) {
|
|
|
97
97
|
function m(e, t, n) {
|
|
98
98
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Et(e) {
|
|
101
101
|
return e === "" ? null : +e;
|
|
102
102
|
}
|
|
103
103
|
function Ar(e) {
|
|
104
104
|
return Array.from(e.childNodes);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function te(e, t) {
|
|
107
107
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
108
108
|
t);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function pt(e, t) {
|
|
111
111
|
e.value = t ?? "";
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function le(e, t, n) {
|
|
114
114
|
e.classList.toggle(t, !!n);
|
|
115
115
|
}
|
|
116
116
|
function Cr(e) {
|
|
@@ -122,130 +122,130 @@ function Cr(e) {
|
|
|
122
122
|
}
|
|
123
123
|
), t;
|
|
124
124
|
}
|
|
125
|
-
let
|
|
126
|
-
function
|
|
127
|
-
|
|
125
|
+
let nt;
|
|
126
|
+
function tt(e) {
|
|
127
|
+
nt = e;
|
|
128
128
|
}
|
|
129
129
|
function Tr() {
|
|
130
|
-
if (!
|
|
130
|
+
if (!nt)
|
|
131
131
|
throw new Error("Function called outside component initialization");
|
|
132
|
-
return
|
|
132
|
+
return nt;
|
|
133
133
|
}
|
|
134
134
|
function Br(e) {
|
|
135
135
|
Tr().$$.on_mount.push(e);
|
|
136
136
|
}
|
|
137
|
-
const
|
|
138
|
-
let
|
|
139
|
-
const
|
|
140
|
-
let
|
|
137
|
+
const Me = [], Ue = [];
|
|
138
|
+
let Fe = [];
|
|
139
|
+
const Wt = [], Sr = /* @__PURE__ */ Promise.resolve();
|
|
140
|
+
let zt = !1;
|
|
141
141
|
function Hr() {
|
|
142
|
-
|
|
142
|
+
zt || (zt = !0, Sr.then(G));
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
|
|
144
|
+
function Zt(e) {
|
|
145
|
+
Fe.push(e);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
|
|
147
|
+
function pn(e) {
|
|
148
|
+
Wt.push(e);
|
|
149
149
|
}
|
|
150
|
-
const
|
|
151
|
-
let
|
|
152
|
-
function
|
|
153
|
-
if (
|
|
150
|
+
const Mt = /* @__PURE__ */ new Set();
|
|
151
|
+
let ke = 0;
|
|
152
|
+
function G() {
|
|
153
|
+
if (ke !== 0)
|
|
154
154
|
return;
|
|
155
|
-
const e =
|
|
155
|
+
const e = nt;
|
|
156
156
|
do {
|
|
157
157
|
try {
|
|
158
|
-
for (;
|
|
159
|
-
const t =
|
|
160
|
-
|
|
158
|
+
for (; ke < Me.length; ) {
|
|
159
|
+
const t = Me[ke];
|
|
160
|
+
ke++, tt(t), Pr(t.$$);
|
|
161
161
|
}
|
|
162
162
|
} catch (t) {
|
|
163
|
-
throw
|
|
163
|
+
throw Me.length = 0, ke = 0, t;
|
|
164
164
|
}
|
|
165
|
-
for (
|
|
166
|
-
|
|
167
|
-
for (let t = 0; t <
|
|
168
|
-
const n =
|
|
169
|
-
|
|
165
|
+
for (tt(null), Me.length = 0, ke = 0; Ue.length; )
|
|
166
|
+
Ue.pop()();
|
|
167
|
+
for (let t = 0; t < Fe.length; t += 1) {
|
|
168
|
+
const n = Fe[t];
|
|
169
|
+
Mt.has(n) || (Mt.add(n), n());
|
|
170
170
|
}
|
|
171
|
-
|
|
172
|
-
} while (
|
|
173
|
-
for (;
|
|
174
|
-
|
|
175
|
-
|
|
171
|
+
Fe.length = 0;
|
|
172
|
+
} while (Me.length);
|
|
173
|
+
for (; Wt.length; )
|
|
174
|
+
Wt.pop()();
|
|
175
|
+
zt = !1, Mt.clear(), tt(e);
|
|
176
176
|
}
|
|
177
177
|
function Pr(e) {
|
|
178
178
|
if (e.fragment !== null) {
|
|
179
|
-
e.update(),
|
|
179
|
+
e.update(), ve(e.before_update);
|
|
180
180
|
const t = e.dirty;
|
|
181
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
181
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Zt);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
function Ir(e) {
|
|
185
185
|
const t = [], n = [];
|
|
186
|
-
|
|
186
|
+
Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
|
|
187
187
|
}
|
|
188
|
-
const
|
|
189
|
-
let
|
|
190
|
-
function
|
|
191
|
-
|
|
188
|
+
const bt = /* @__PURE__ */ new Set();
|
|
189
|
+
let Be;
|
|
190
|
+
function Se() {
|
|
191
|
+
Be = {
|
|
192
192
|
r: 0,
|
|
193
193
|
c: [],
|
|
194
|
-
p:
|
|
194
|
+
p: Be
|
|
195
195
|
// parent group
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
|
-
function
|
|
199
|
-
|
|
198
|
+
function He() {
|
|
199
|
+
Be.r || ve(Be.c), Be = Be.p;
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
e && e.i && (
|
|
201
|
+
function U(e, t) {
|
|
202
|
+
e && e.i && (bt.delete(e), e.i(t));
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function W(e, t, n, r) {
|
|
205
205
|
if (e && e.o) {
|
|
206
|
-
if (
|
|
206
|
+
if (bt.has(e))
|
|
207
207
|
return;
|
|
208
|
-
|
|
209
|
-
|
|
208
|
+
bt.add(e), Be.c.push(() => {
|
|
209
|
+
bt.delete(e), r && (n && e.d(1), r());
|
|
210
210
|
}), e.o(t);
|
|
211
211
|
} else
|
|
212
212
|
r && r();
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function xt(e) {
|
|
215
215
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function mn(e, t, n) {
|
|
218
218
|
const r = e.$$.props[t];
|
|
219
219
|
r !== void 0 && (e.$$.bound[r] = n, n(e.$$.ctx[r]));
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function rt(e) {
|
|
222
222
|
e && e.c();
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function Ve(e, t, n) {
|
|
225
225
|
const { fragment: r, after_update: i } = e.$$;
|
|
226
|
-
r && r.m(t, n),
|
|
227
|
-
const a = e.$$.on_mount.map($n).filter(
|
|
228
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...a) :
|
|
229
|
-
}), i.forEach(
|
|
226
|
+
r && r.m(t, n), Zt(() => {
|
|
227
|
+
const a = e.$$.on_mount.map($n).filter(ot);
|
|
228
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : ve(a), e.$$.on_mount = [];
|
|
229
|
+
}), i.forEach(Zt);
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function Ge(e, t) {
|
|
232
232
|
const n = e.$$;
|
|
233
|
-
n.fragment !== null && (Ir(n.after_update),
|
|
233
|
+
n.fragment !== null && (Ir(n.after_update), ve(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
234
234
|
}
|
|
235
235
|
function Lr(e, t) {
|
|
236
|
-
e.$$.dirty[0] === -1 && (
|
|
236
|
+
e.$$.dirty[0] === -1 && (Me.push(e), Hr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
const s =
|
|
240
|
-
|
|
238
|
+
function sn(e, t, n, r, i, a, o = null, u = [-1]) {
|
|
239
|
+
const s = nt;
|
|
240
|
+
tt(e);
|
|
241
241
|
const l = e.$$ = {
|
|
242
242
|
fragment: null,
|
|
243
243
|
ctx: [],
|
|
244
244
|
// state
|
|
245
245
|
props: a,
|
|
246
|
-
update:
|
|
246
|
+
update: S,
|
|
247
247
|
not_equal: i,
|
|
248
|
-
bound:
|
|
248
|
+
bound: fn(),
|
|
249
249
|
// lifecycle
|
|
250
250
|
on_mount: [],
|
|
251
251
|
on_destroy: [],
|
|
@@ -254,28 +254,28 @@ function on(e, t, n, r, i, a, o = null, u = [-1]) {
|
|
|
254
254
|
after_update: [],
|
|
255
255
|
context: new Map(t.context || (s ? s.$$.context : [])),
|
|
256
256
|
// everything else
|
|
257
|
-
callbacks:
|
|
257
|
+
callbacks: fn(),
|
|
258
258
|
dirty: u,
|
|
259
259
|
skip_bound: !1,
|
|
260
260
|
root: t.target || s.$$.root
|
|
261
261
|
};
|
|
262
262
|
o && o(l.root);
|
|
263
263
|
let c = !1;
|
|
264
|
-
if (l.ctx = n ? n(e, t.props || {}, (
|
|
265
|
-
const v =
|
|
266
|
-
return l.ctx && i(l.ctx[
|
|
267
|
-
}) : [], l.update(), c = !0,
|
|
264
|
+
if (l.ctx = n ? n(e, t.props || {}, (d, h, ...p) => {
|
|
265
|
+
const v = p.length ? p[0] : h;
|
|
266
|
+
return l.ctx && i(l.ctx[d], l.ctx[d] = v) && (!l.skip_bound && l.bound[d] && l.bound[d](v), c && Lr(e, d)), h;
|
|
267
|
+
}) : [], l.update(), c = !0, ve(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
268
268
|
if (t.hydrate) {
|
|
269
|
-
const
|
|
270
|
-
l.fragment && l.fragment.l(
|
|
269
|
+
const d = Ar(t.target);
|
|
270
|
+
l.fragment && l.fragment.l(d), d.forEach(C);
|
|
271
271
|
} else
|
|
272
272
|
l.fragment && l.fragment.c();
|
|
273
|
-
t.intro &&
|
|
273
|
+
t.intro && U(e.$$.fragment), Ve(e, t.target, t.anchor), G();
|
|
274
274
|
}
|
|
275
|
-
|
|
275
|
+
tt(s);
|
|
276
276
|
}
|
|
277
|
-
let
|
|
278
|
-
typeof HTMLElement == "function" && (
|
|
277
|
+
let Wn;
|
|
278
|
+
typeof HTMLElement == "function" && (Wn = class extends HTMLElement {
|
|
279
279
|
/** The Svelte component constructor */
|
|
280
280
|
$$ctor;
|
|
281
281
|
/** Slots */
|
|
@@ -317,17 +317,17 @@ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
|
|
|
317
317
|
let a;
|
|
318
318
|
return {
|
|
319
319
|
c: function() {
|
|
320
|
-
a =
|
|
320
|
+
a = E("slot"), i !== "default" && m(a, "name", i);
|
|
321
321
|
},
|
|
322
322
|
/**
|
|
323
323
|
* @param {HTMLElement} target
|
|
324
324
|
* @param {HTMLElement} [anchor]
|
|
325
325
|
*/
|
|
326
326
|
m: function(s, l) {
|
|
327
|
-
|
|
327
|
+
T(s, a, l);
|
|
328
328
|
},
|
|
329
329
|
d: function(s) {
|
|
330
|
-
s &&
|
|
330
|
+
s && C(a);
|
|
331
331
|
}
|
|
332
332
|
};
|
|
333
333
|
};
|
|
@@ -339,7 +339,7 @@ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
|
|
|
339
339
|
i in n && (t[i] = [e(i)]);
|
|
340
340
|
for (const i of this.attributes) {
|
|
341
341
|
const a = this.$$g_p(i.name);
|
|
342
|
-
a in this.$$d || (this.$$d[a] =
|
|
342
|
+
a in this.$$d || (this.$$d[a] = yt(a, i.value, this.$$p_d, "toProp"));
|
|
343
343
|
}
|
|
344
344
|
for (const i in this.$$p_d)
|
|
345
345
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -357,7 +357,7 @@ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
|
|
|
357
357
|
this.$$r = !0;
|
|
358
358
|
for (const i in this.$$p_d)
|
|
359
359
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
360
|
-
const a =
|
|
360
|
+
const a = yt(
|
|
361
361
|
i,
|
|
362
362
|
this.$$d[i],
|
|
363
363
|
this.$$p_d,
|
|
@@ -379,7 +379,7 @@ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
|
|
|
379
379
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
380
380
|
// and setting attributes through setAttribute etc, this is helpful
|
|
381
381
|
attributeChangedCallback(e, t, n) {
|
|
382
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
382
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = yt(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
383
383
|
}
|
|
384
384
|
disconnectedCallback() {
|
|
385
385
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -392,7 +392,7 @@ typeof HTMLElement == "function" && (zn = class extends HTMLElement {
|
|
|
392
392
|
) || e;
|
|
393
393
|
}
|
|
394
394
|
});
|
|
395
|
-
function
|
|
395
|
+
function yt(e, t, n, r) {
|
|
396
396
|
const i = n[e]?.type;
|
|
397
397
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
398
398
|
return t;
|
|
@@ -421,8 +421,8 @@ function _t(e, t, n, r) {
|
|
|
421
421
|
return t;
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
let o = class extends
|
|
424
|
+
function ln(e, t, n, r, i, a) {
|
|
425
|
+
let o = class extends Wn {
|
|
426
426
|
constructor() {
|
|
427
427
|
super(e, n, i), this.$$p_d = t;
|
|
428
428
|
}
|
|
@@ -438,7 +438,7 @@ function sn(e, t, n, r, i, a) {
|
|
|
438
438
|
return this.$$c && u in this.$$c ? this.$$c[u] : this.$$d[u];
|
|
439
439
|
},
|
|
440
440
|
set(s) {
|
|
441
|
-
s =
|
|
441
|
+
s = yt(u, s, t), this.$$d[u] = s, this.$$c?.$set({ [u]: s });
|
|
442
442
|
}
|
|
443
443
|
});
|
|
444
444
|
}), r.forEach((u) => {
|
|
@@ -450,7 +450,7 @@ function sn(e, t, n, r, i, a) {
|
|
|
450
450
|
}), e.element = /** @type {any} */
|
|
451
451
|
o, o;
|
|
452
452
|
}
|
|
453
|
-
class
|
|
453
|
+
class un {
|
|
454
454
|
/**
|
|
455
455
|
* ### PRIVATE API
|
|
456
456
|
*
|
|
@@ -469,7 +469,7 @@ class ln {
|
|
|
469
469
|
$$set = void 0;
|
|
470
470
|
/** @returns {void} */
|
|
471
471
|
$destroy() {
|
|
472
|
-
|
|
472
|
+
Ge(this, 1), this.$destroy = S;
|
|
473
473
|
}
|
|
474
474
|
/**
|
|
475
475
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -478,8 +478,8 @@ class ln {
|
|
|
478
478
|
* @returns {() => void}
|
|
479
479
|
*/
|
|
480
480
|
$on(t, n) {
|
|
481
|
-
if (!
|
|
482
|
-
return
|
|
481
|
+
if (!ot(n))
|
|
482
|
+
return S;
|
|
483
483
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
484
484
|
return r.push(n), () => {
|
|
485
485
|
const i = r.indexOf(n);
|
|
@@ -491,44 +491,44 @@ class ln {
|
|
|
491
491
|
* @returns {void}
|
|
492
492
|
*/
|
|
493
493
|
$set(t) {
|
|
494
|
-
this.$$set && !
|
|
494
|
+
this.$$set && !br(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
497
|
const Nr = "4";
|
|
498
498
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Nr);
|
|
499
|
-
const
|
|
499
|
+
const De = [];
|
|
500
500
|
function Or(e, t) {
|
|
501
501
|
return {
|
|
502
|
-
subscribe:
|
|
502
|
+
subscribe: Bt(e, t).subscribe
|
|
503
503
|
};
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function Bt(e, t = S) {
|
|
506
506
|
let n;
|
|
507
507
|
const r = /* @__PURE__ */ new Set();
|
|
508
508
|
function i(u) {
|
|
509
|
-
if (
|
|
510
|
-
const s = !
|
|
509
|
+
if (Tt(e, u) && (e = u, n)) {
|
|
510
|
+
const s = !De.length;
|
|
511
511
|
for (const l of r)
|
|
512
|
-
l[1](),
|
|
512
|
+
l[1](), De.push(l, e);
|
|
513
513
|
if (s) {
|
|
514
|
-
for (let l = 0; l <
|
|
515
|
-
|
|
516
|
-
|
|
514
|
+
for (let l = 0; l < De.length; l += 2)
|
|
515
|
+
De[l][0](De[l + 1]);
|
|
516
|
+
De.length = 0;
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
function a(u) {
|
|
521
521
|
i(u(e));
|
|
522
522
|
}
|
|
523
|
-
function o(u, s =
|
|
523
|
+
function o(u, s = S) {
|
|
524
524
|
const l = [u, s];
|
|
525
|
-
return r.add(l), r.size === 1 && (n = t(i, a) ||
|
|
525
|
+
return r.add(l), r.size === 1 && (n = t(i, a) || S), u(e), () => {
|
|
526
526
|
r.delete(l), r.size === 0 && n && (n(), n = null);
|
|
527
527
|
};
|
|
528
528
|
}
|
|
529
529
|
return { set: i, update: a, subscribe: o };
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function ze(e, t, n) {
|
|
532
532
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
533
533
|
if (!i.every(Boolean))
|
|
534
534
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -536,18 +536,18 @@ function Qe(e, t, n) {
|
|
|
536
536
|
return Or(n, (o, u) => {
|
|
537
537
|
let s = !1;
|
|
538
538
|
const l = [];
|
|
539
|
-
let c = 0,
|
|
539
|
+
let c = 0, d = S;
|
|
540
540
|
const h = () => {
|
|
541
541
|
if (c)
|
|
542
542
|
return;
|
|
543
|
-
|
|
543
|
+
d();
|
|
544
544
|
const v = t(r ? l[0] : l, o, u);
|
|
545
|
-
a ? o(v) :
|
|
546
|
-
},
|
|
545
|
+
a ? o(v) : d = ot(v) ? v : S;
|
|
546
|
+
}, p = i.map(
|
|
547
547
|
(v, b) => jn(
|
|
548
548
|
v,
|
|
549
|
-
(
|
|
550
|
-
l[b] =
|
|
549
|
+
(N) => {
|
|
550
|
+
l[b] = N, c &= ~(1 << b), s && h();
|
|
551
551
|
},
|
|
552
552
|
() => {
|
|
553
553
|
c |= 1 << b;
|
|
@@ -555,7 +555,7 @@ function Qe(e, t, n) {
|
|
|
555
555
|
)
|
|
556
556
|
);
|
|
557
557
|
return s = !0, h(), function() {
|
|
558
|
-
|
|
558
|
+
ve(p), d(), s = !1;
|
|
559
559
|
};
|
|
560
560
|
});
|
|
561
561
|
}
|
|
@@ -579,29 +579,29 @@ function Vr(e) {
|
|
|
579
579
|
function Gr(e) {
|
|
580
580
|
return Array.isArray(e) ? [] : {};
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
582
|
+
function it(e, t) {
|
|
583
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? $e(Gr(e), e, t) : e;
|
|
584
584
|
}
|
|
585
585
|
function $r(e, t, n) {
|
|
586
586
|
return e.concat(t).map(function(r) {
|
|
587
|
-
return
|
|
587
|
+
return it(r, n);
|
|
588
588
|
});
|
|
589
589
|
}
|
|
590
590
|
function jr(e, t) {
|
|
591
591
|
if (!t.customMerge)
|
|
592
|
-
return
|
|
592
|
+
return $e;
|
|
593
593
|
var n = t.customMerge(e);
|
|
594
|
-
return typeof n == "function" ? n :
|
|
594
|
+
return typeof n == "function" ? n : $e;
|
|
595
595
|
}
|
|
596
596
|
function Xr(e) {
|
|
597
597
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
598
598
|
return Object.propertyIsEnumerable.call(e, t);
|
|
599
599
|
}) : [];
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function gn(e) {
|
|
602
602
|
return Object.keys(e).concat(Xr(e));
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function zn(e, t) {
|
|
605
605
|
try {
|
|
606
606
|
return t in e;
|
|
607
607
|
} catch {
|
|
@@ -609,56 +609,56 @@ function Zn(e, t) {
|
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
function Wr(e, t) {
|
|
612
|
-
return
|
|
612
|
+
return zn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
613
613
|
}
|
|
614
614
|
function zr(e, t, n) {
|
|
615
615
|
var r = {};
|
|
616
|
-
return n.isMergeableObject(e) &&
|
|
617
|
-
r[i] =
|
|
618
|
-
}),
|
|
619
|
-
Wr(e, i) || (
|
|
616
|
+
return n.isMergeableObject(e) && gn(e).forEach(function(i) {
|
|
617
|
+
r[i] = it(e[i], n);
|
|
618
|
+
}), gn(t).forEach(function(i) {
|
|
619
|
+
Wr(e, i) || (zn(e, i) && n.isMergeableObject(t[i]) ? r[i] = jr(i, n)(e[i], t[i], n) : r[i] = it(t[i], n));
|
|
620
620
|
}), r;
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
n = n || {}, n.arrayMerge = n.arrayMerge || $r, n.isMergeableObject = n.isMergeableObject || kr, n.cloneUnlessOtherwiseSpecified =
|
|
622
|
+
function $e(e, t, n) {
|
|
623
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || $r, n.isMergeableObject = n.isMergeableObject || kr, n.cloneUnlessOtherwiseSpecified = it;
|
|
624
624
|
var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
|
|
625
|
-
return a ? r ? n.arrayMerge(e, t, n) : zr(e, t, n) :
|
|
625
|
+
return a ? r ? n.arrayMerge(e, t, n) : zr(e, t, n) : it(t, n);
|
|
626
626
|
}
|
|
627
|
-
|
|
627
|
+
$e.all = function(t, n) {
|
|
628
628
|
if (!Array.isArray(t))
|
|
629
629
|
throw new Error("first argument should be an array");
|
|
630
630
|
return t.reduce(function(r, i) {
|
|
631
|
-
return
|
|
631
|
+
return $e(r, i, n);
|
|
632
632
|
}, {});
|
|
633
633
|
};
|
|
634
|
-
var Zr =
|
|
634
|
+
var Zr = $e, Qr = Zr;
|
|
635
635
|
const Kr = /* @__PURE__ */ Rr(Qr);
|
|
636
|
-
var
|
|
637
|
-
return
|
|
636
|
+
var Qt = function(e, t) {
|
|
637
|
+
return Qt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
638
638
|
n.__proto__ = r;
|
|
639
639
|
} || function(n, r) {
|
|
640
640
|
for (var i in r)
|
|
641
641
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
642
|
-
},
|
|
642
|
+
}, Qt(e, t);
|
|
643
643
|
};
|
|
644
|
-
function
|
|
644
|
+
function St(e, t) {
|
|
645
645
|
if (typeof t != "function" && t !== null)
|
|
646
646
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
647
|
-
|
|
647
|
+
Qt(e, t);
|
|
648
648
|
function n() {
|
|
649
649
|
this.constructor = e;
|
|
650
650
|
}
|
|
651
651
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
652
652
|
}
|
|
653
|
-
var
|
|
654
|
-
return
|
|
653
|
+
var pe = function() {
|
|
654
|
+
return pe = Object.assign || function(t) {
|
|
655
655
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
656
656
|
n = arguments[r];
|
|
657
657
|
for (var a in n)
|
|
658
658
|
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
659
659
|
}
|
|
660
660
|
return t;
|
|
661
|
-
},
|
|
661
|
+
}, pe.apply(this, arguments);
|
|
662
662
|
};
|
|
663
663
|
function Yr(e, t) {
|
|
664
664
|
var n = {};
|
|
@@ -669,13 +669,13 @@ function Yr(e, t) {
|
|
|
669
669
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
670
670
|
return n;
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function Ft(e, t, n) {
|
|
673
673
|
if (n || arguments.length === 2)
|
|
674
674
|
for (var r = 0, i = t.length, a; r < i; r++)
|
|
675
675
|
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
676
676
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
677
677
|
}
|
|
678
|
-
function
|
|
678
|
+
function Ut(e, t) {
|
|
679
679
|
var n = t && t.cache ? t.cache : ii, r = t && t.serializer ? t.serializer : ni, i = t && t.strategy ? t.strategy : ei;
|
|
680
680
|
return i(e, {
|
|
681
681
|
cache: n,
|
|
@@ -689,19 +689,19 @@ function qr(e, t, n, r) {
|
|
|
689
689
|
var i = Jr(r) ? r : n(r), a = t.get(i);
|
|
690
690
|
return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function Zn(e, t, n) {
|
|
693
693
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
694
694
|
return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function Qn(e, t, n, r, i) {
|
|
697
697
|
return n.bind(t, e, r, i);
|
|
698
698
|
}
|
|
699
699
|
function ei(e, t) {
|
|
700
|
-
var n = e.length === 1 ? qr :
|
|
701
|
-
return
|
|
700
|
+
var n = e.length === 1 ? qr : Zn;
|
|
701
|
+
return Qn(e, this, n, t.cache.create(), t.serializer);
|
|
702
702
|
}
|
|
703
703
|
function ti(e, t) {
|
|
704
|
-
return
|
|
704
|
+
return Qn(e, this, Zn, t.cache.create(), t.serializer);
|
|
705
705
|
}
|
|
706
706
|
var ni = function() {
|
|
707
707
|
return JSON.stringify(arguments);
|
|
@@ -721,64 +721,64 @@ var ni = function() {
|
|
|
721
721
|
create: function() {
|
|
722
722
|
return new ri();
|
|
723
723
|
}
|
|
724
|
-
},
|
|
724
|
+
}, Vt = {
|
|
725
725
|
variadic: ti
|
|
726
|
-
},
|
|
727
|
-
return
|
|
726
|
+
}, wt = function() {
|
|
727
|
+
return wt = Object.assign || function(t) {
|
|
728
728
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
729
729
|
n = arguments[r];
|
|
730
730
|
for (var a in n)
|
|
731
731
|
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
732
732
|
}
|
|
733
733
|
return t;
|
|
734
|
-
},
|
|
734
|
+
}, wt.apply(this, arguments);
|
|
735
735
|
};
|
|
736
|
-
var
|
|
736
|
+
var B;
|
|
737
737
|
(function(e) {
|
|
738
738
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
739
|
-
})(
|
|
740
|
-
var
|
|
739
|
+
})(B || (B = {}));
|
|
740
|
+
var k;
|
|
741
741
|
(function(e) {
|
|
742
742
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
743
|
-
})(
|
|
744
|
-
var
|
|
743
|
+
})(k || (k = {}));
|
|
744
|
+
var je;
|
|
745
745
|
(function(e) {
|
|
746
746
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
747
|
-
})(
|
|
748
|
-
function
|
|
749
|
-
return e.type ===
|
|
747
|
+
})(je || (je = {}));
|
|
748
|
+
function bn(e) {
|
|
749
|
+
return e.type === k.literal;
|
|
750
750
|
}
|
|
751
751
|
function ai(e) {
|
|
752
|
-
return e.type ===
|
|
752
|
+
return e.type === k.argument;
|
|
753
|
+
}
|
|
754
|
+
function Kn(e) {
|
|
755
|
+
return e.type === k.number;
|
|
753
756
|
}
|
|
754
757
|
function Yn(e) {
|
|
755
|
-
return e.type ===
|
|
758
|
+
return e.type === k.date;
|
|
756
759
|
}
|
|
757
760
|
function Jn(e) {
|
|
758
|
-
return e.type ===
|
|
761
|
+
return e.type === k.time;
|
|
759
762
|
}
|
|
760
763
|
function qn(e) {
|
|
761
|
-
return e.type ===
|
|
764
|
+
return e.type === k.select;
|
|
762
765
|
}
|
|
763
766
|
function er(e) {
|
|
764
|
-
return e.type ===
|
|
765
|
-
}
|
|
766
|
-
function tr(e) {
|
|
767
|
-
return e.type === D.plural;
|
|
767
|
+
return e.type === k.plural;
|
|
768
768
|
}
|
|
769
769
|
function oi(e) {
|
|
770
|
-
return e.type ===
|
|
770
|
+
return e.type === k.pound;
|
|
771
771
|
}
|
|
772
|
-
function
|
|
773
|
-
return e.type ===
|
|
772
|
+
function tr(e) {
|
|
773
|
+
return e.type === k.tag;
|
|
774
774
|
}
|
|
775
|
-
function
|
|
776
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
775
|
+
function nr(e) {
|
|
776
|
+
return !!(e && typeof e == "object" && e.type === je.number);
|
|
777
777
|
}
|
|
778
|
-
function
|
|
779
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
778
|
+
function Kt(e) {
|
|
779
|
+
return !!(e && typeof e == "object" && e.type === je.dateTime);
|
|
780
780
|
}
|
|
781
|
-
var
|
|
781
|
+
var rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, si = /(?:[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;
|
|
782
782
|
function li(e) {
|
|
783
783
|
var t = {};
|
|
784
784
|
return e.replace(si, function(n) {
|
|
@@ -870,15 +870,15 @@ function li(e) {
|
|
|
870
870
|
return "";
|
|
871
871
|
}), t;
|
|
872
872
|
}
|
|
873
|
-
var
|
|
874
|
-
return
|
|
873
|
+
var F = function() {
|
|
874
|
+
return F = Object.assign || function(t) {
|
|
875
875
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
876
876
|
n = arguments[r];
|
|
877
877
|
for (var a in n)
|
|
878
878
|
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
879
879
|
}
|
|
880
880
|
return t;
|
|
881
|
-
},
|
|
881
|
+
}, F.apply(this, arguments);
|
|
882
882
|
};
|
|
883
883
|
var ui = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
884
884
|
function ci(e) {
|
|
@@ -891,8 +891,8 @@ function ci(e) {
|
|
|
891
891
|
if (o.length === 0)
|
|
892
892
|
throw new Error("Invalid number skeleton");
|
|
893
893
|
for (var u = o[0], s = o.slice(1), l = 0, c = s; l < c.length; l++) {
|
|
894
|
-
var
|
|
895
|
-
if (
|
|
894
|
+
var d = c[l];
|
|
895
|
+
if (d.length === 0)
|
|
896
896
|
throw new Error("Invalid number skeleton");
|
|
897
897
|
}
|
|
898
898
|
n.push({ stem: u, options: s });
|
|
@@ -902,14 +902,14 @@ function ci(e) {
|
|
|
902
902
|
function hi(e) {
|
|
903
903
|
return e.replace(/^(.*?)-/, "");
|
|
904
904
|
}
|
|
905
|
-
var
|
|
906
|
-
function
|
|
905
|
+
var yn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, ir = /^(@+)?(\+|#+)?[rs]?$/g, fi = /(\*)(0+)|(#+)(0+)|(0+)/g, ar = /^(0+)$/;
|
|
906
|
+
function vn(e) {
|
|
907
907
|
var t = {};
|
|
908
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
908
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(ir, function(n, r, i) {
|
|
909
909
|
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
910
910
|
}), t;
|
|
911
911
|
}
|
|
912
|
-
function
|
|
912
|
+
function or(e) {
|
|
913
913
|
switch (e) {
|
|
914
914
|
case "sign-auto":
|
|
915
915
|
return {
|
|
@@ -957,14 +957,14 @@ function di(e) {
|
|
|
957
957
|
notation: "scientific"
|
|
958
958
|
}, e = e.slice(1)), t) {
|
|
959
959
|
var n = e.slice(0, 2);
|
|
960
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
960
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ar.test(e))
|
|
961
961
|
throw new Error("Malformed concise eng/scientific notation");
|
|
962
962
|
t.minimumIntegerDigits = e.length;
|
|
963
963
|
}
|
|
964
964
|
return t;
|
|
965
965
|
}
|
|
966
|
-
function
|
|
967
|
-
var t = {}, n =
|
|
966
|
+
function _n(e) {
|
|
967
|
+
var t = {}, n = or(e);
|
|
968
968
|
return n || t;
|
|
969
969
|
}
|
|
970
970
|
function pi(e) {
|
|
@@ -1002,13 +1002,13 @@ function pi(e) {
|
|
|
1002
1002
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1003
1003
|
continue;
|
|
1004
1004
|
case "scientific":
|
|
1005
|
-
t =
|
|
1006
|
-
return
|
|
1005
|
+
t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(s, l) {
|
|
1006
|
+
return F(F({}, s), _n(l));
|
|
1007
1007
|
}, {}));
|
|
1008
1008
|
continue;
|
|
1009
1009
|
case "engineering":
|
|
1010
|
-
t =
|
|
1011
|
-
return
|
|
1010
|
+
t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(s, l) {
|
|
1011
|
+
return F(F({}, s), _n(l));
|
|
1012
1012
|
}, {}));
|
|
1013
1013
|
continue;
|
|
1014
1014
|
case "notation-simple":
|
|
@@ -1053,45 +1053,45 @@ function pi(e) {
|
|
|
1053
1053
|
case "integer-width":
|
|
1054
1054
|
if (i.options.length > 1)
|
|
1055
1055
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1056
|
-
i.options[0].replace(fi, function(s, l, c,
|
|
1056
|
+
i.options[0].replace(fi, function(s, l, c, d, h, p) {
|
|
1057
1057
|
if (l)
|
|
1058
1058
|
t.minimumIntegerDigits = c.length;
|
|
1059
1059
|
else {
|
|
1060
|
-
if (
|
|
1060
|
+
if (d && h)
|
|
1061
1061
|
throw new Error("We currently do not support maximum integer digits");
|
|
1062
|
-
if (
|
|
1062
|
+
if (p)
|
|
1063
1063
|
throw new Error("We currently do not support exact integer digits");
|
|
1064
1064
|
}
|
|
1065
1065
|
return "";
|
|
1066
1066
|
});
|
|
1067
1067
|
continue;
|
|
1068
1068
|
}
|
|
1069
|
-
if (
|
|
1069
|
+
if (ar.test(i.stem)) {
|
|
1070
1070
|
t.minimumIntegerDigits = i.stem.length;
|
|
1071
1071
|
continue;
|
|
1072
1072
|
}
|
|
1073
|
-
if (
|
|
1073
|
+
if (yn.test(i.stem)) {
|
|
1074
1074
|
if (i.options.length > 1)
|
|
1075
1075
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1076
|
-
i.stem.replace(
|
|
1077
|
-
return c === "*" ? t.minimumFractionDigits = l.length :
|
|
1076
|
+
i.stem.replace(yn, function(s, l, c, d, h, p) {
|
|
1077
|
+
return c === "*" ? t.minimumFractionDigits = l.length : d && d[0] === "#" ? t.maximumFractionDigits = d.length : h && p ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + p.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1078
1078
|
});
|
|
1079
1079
|
var a = i.options[0];
|
|
1080
|
-
a === "w" ? t =
|
|
1080
|
+
a === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = F(F({}, t), vn(a)));
|
|
1081
1081
|
continue;
|
|
1082
1082
|
}
|
|
1083
|
-
if (
|
|
1084
|
-
t =
|
|
1083
|
+
if (ir.test(i.stem)) {
|
|
1084
|
+
t = F(F({}, t), vn(i.stem));
|
|
1085
1085
|
continue;
|
|
1086
1086
|
}
|
|
1087
|
-
var o =
|
|
1088
|
-
o && (t =
|
|
1087
|
+
var o = or(i.stem);
|
|
1088
|
+
o && (t = F(F({}, t), o));
|
|
1089
1089
|
var u = di(i.stem);
|
|
1090
|
-
u && (t =
|
|
1090
|
+
u && (t = F(F({}, t), u));
|
|
1091
1091
|
}
|
|
1092
1092
|
return t;
|
|
1093
1093
|
}
|
|
1094
|
-
var
|
|
1094
|
+
var mt = {
|
|
1095
1095
|
"001": [
|
|
1096
1096
|
"H",
|
|
1097
1097
|
"h"
|
|
@@ -2541,23 +2541,23 @@ function gi(e) {
|
|
|
2541
2541
|
}
|
|
2542
2542
|
var n = e.language, r;
|
|
2543
2543
|
n !== "root" && (r = e.maximize().region);
|
|
2544
|
-
var i =
|
|
2544
|
+
var i = mt[r || ""] || mt[n || ""] || mt["".concat(n, "-001")] || mt["001"];
|
|
2545
2545
|
return i[0];
|
|
2546
2546
|
}
|
|
2547
|
-
var
|
|
2548
|
-
function
|
|
2547
|
+
var Gt, bi = new RegExp("^".concat(rr.source, "*")), yi = new RegExp("".concat(rr.source, "*$"));
|
|
2548
|
+
function P(e, t) {
|
|
2549
2549
|
return { start: e, end: t };
|
|
2550
2550
|
}
|
|
2551
2551
|
var vi = !!String.prototype.startsWith && "_a".startsWith("a", 1), _i = !!String.fromCodePoint, Ei = !!Object.fromEntries, xi = !!String.prototype.codePointAt, wi = !!String.prototype.trimStart, Ai = !!String.prototype.trimEnd, Ci = !!Number.isSafeInteger, Ti = Ci ? Number.isSafeInteger : function(e) {
|
|
2552
2552
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2553
|
-
},
|
|
2553
|
+
}, Yt = !0;
|
|
2554
2554
|
try {
|
|
2555
|
-
var Bi =
|
|
2556
|
-
|
|
2555
|
+
var Bi = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2556
|
+
Yt = ((Gt = Bi.exec("a")) === null || Gt === void 0 ? void 0 : Gt[0]) === "a";
|
|
2557
2557
|
} catch {
|
|
2558
|
-
|
|
2558
|
+
Yt = !1;
|
|
2559
2559
|
}
|
|
2560
|
-
var
|
|
2560
|
+
var En = vi ? (
|
|
2561
2561
|
// Native
|
|
2562
2562
|
function(t, n, r) {
|
|
2563
2563
|
return t.startsWith(n, r);
|
|
@@ -2567,7 +2567,7 @@ var _n = vi ? (
|
|
|
2567
2567
|
function(t, n, r) {
|
|
2568
2568
|
return t.slice(r, r + n.length) === n;
|
|
2569
2569
|
}
|
|
2570
|
-
),
|
|
2570
|
+
), Jt = _i ? String.fromCodePoint : (
|
|
2571
2571
|
// IE11
|
|
2572
2572
|
function() {
|
|
2573
2573
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2579,7 +2579,7 @@ var _n = vi ? (
|
|
|
2579
2579
|
}
|
|
2580
2580
|
return r;
|
|
2581
2581
|
}
|
|
2582
|
-
),
|
|
2582
|
+
), xn = (
|
|
2583
2583
|
// native
|
|
2584
2584
|
Ei ? Object.fromEntries : (
|
|
2585
2585
|
// Ponyfill
|
|
@@ -2591,7 +2591,7 @@ var _n = vi ? (
|
|
|
2591
2591
|
return n;
|
|
2592
2592
|
}
|
|
2593
2593
|
)
|
|
2594
|
-
),
|
|
2594
|
+
), sr = xi ? (
|
|
2595
2595
|
// Native
|
|
2596
2596
|
function(t, n) {
|
|
2597
2597
|
return t.codePointAt(n);
|
|
@@ -2626,27 +2626,27 @@ var _n = vi ? (
|
|
|
2626
2626
|
return t.replace(yi, "");
|
|
2627
2627
|
}
|
|
2628
2628
|
);
|
|
2629
|
-
function
|
|
2629
|
+
function lr(e, t) {
|
|
2630
2630
|
return new RegExp(e, t);
|
|
2631
2631
|
}
|
|
2632
|
-
var
|
|
2633
|
-
if (
|
|
2634
|
-
var
|
|
2635
|
-
|
|
2632
|
+
var qt;
|
|
2633
|
+
if (Yt) {
|
|
2634
|
+
var wn = lr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2635
|
+
qt = function(t, n) {
|
|
2636
2636
|
var r;
|
|
2637
|
-
|
|
2638
|
-
var i =
|
|
2637
|
+
wn.lastIndex = n;
|
|
2638
|
+
var i = wn.exec(t);
|
|
2639
2639
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2640
2640
|
};
|
|
2641
2641
|
} else
|
|
2642
|
-
|
|
2642
|
+
qt = function(t, n) {
|
|
2643
2643
|
for (var r = []; ; ) {
|
|
2644
|
-
var i =
|
|
2645
|
-
if (i === void 0 ||
|
|
2644
|
+
var i = sr(t, n);
|
|
2645
|
+
if (i === void 0 || ur(i) || Ni(i))
|
|
2646
2646
|
break;
|
|
2647
2647
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2648
2648
|
}
|
|
2649
|
-
return
|
|
2649
|
+
return Jt.apply(void 0, r);
|
|
2650
2650
|
};
|
|
2651
2651
|
var Pi = (
|
|
2652
2652
|
/** @class */
|
|
@@ -2672,14 +2672,14 @@ var Pi = (
|
|
|
2672
2672
|
if (a === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2673
2673
|
var u = this.clonePosition();
|
|
2674
2674
|
this.bump(), i.push({
|
|
2675
|
-
type:
|
|
2676
|
-
location:
|
|
2675
|
+
type: k.pound,
|
|
2676
|
+
location: P(u, this.clonePosition())
|
|
2677
2677
|
});
|
|
2678
2678
|
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2679
2679
|
if (r)
|
|
2680
2680
|
break;
|
|
2681
|
-
return this.error(
|
|
2682
|
-
} else if (a === 60 && !this.ignoreTag &&
|
|
2681
|
+
return this.error(B.UNMATCHED_CLOSING_TAG, P(this.clonePosition(), this.clonePosition()));
|
|
2682
|
+
} else if (a === 60 && !this.ignoreTag && en(this.peek() || 0)) {
|
|
2683
2683
|
var o = this.parseTag(t, n);
|
|
2684
2684
|
if (o.err)
|
|
2685
2685
|
return o;
|
|
@@ -2700,9 +2700,9 @@ var Pi = (
|
|
|
2700
2700
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2701
2701
|
return {
|
|
2702
2702
|
val: {
|
|
2703
|
-
type:
|
|
2703
|
+
type: k.literal,
|
|
2704
2704
|
value: "<".concat(i, "/>"),
|
|
2705
|
-
location:
|
|
2705
|
+
location: P(r, this.clonePosition())
|
|
2706
2706
|
},
|
|
2707
2707
|
err: null
|
|
2708
2708
|
};
|
|
@@ -2712,22 +2712,22 @@ var Pi = (
|
|
|
2712
2712
|
return a;
|
|
2713
2713
|
var o = a.val, u = this.clonePosition();
|
|
2714
2714
|
if (this.bumpIf("</")) {
|
|
2715
|
-
if (this.isEOF() || !
|
|
2716
|
-
return this.error(
|
|
2715
|
+
if (this.isEOF() || !en(this.char()))
|
|
2716
|
+
return this.error(B.INVALID_TAG, P(u, this.clonePosition()));
|
|
2717
2717
|
var s = this.clonePosition(), l = this.parseTagName();
|
|
2718
|
-
return i !== l ? this.error(
|
|
2718
|
+
return i !== l ? this.error(B.UNMATCHED_CLOSING_TAG, P(s, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2719
2719
|
val: {
|
|
2720
|
-
type:
|
|
2720
|
+
type: k.tag,
|
|
2721
2721
|
value: i,
|
|
2722
2722
|
children: o,
|
|
2723
|
-
location:
|
|
2723
|
+
location: P(r, this.clonePosition())
|
|
2724
2724
|
},
|
|
2725
2725
|
err: null
|
|
2726
|
-
} : this.error(
|
|
2726
|
+
} : this.error(B.INVALID_TAG, P(u, this.clonePosition())));
|
|
2727
2727
|
} else
|
|
2728
|
-
return this.error(
|
|
2728
|
+
return this.error(B.UNCLOSED_TAG, P(r, this.clonePosition()));
|
|
2729
2729
|
} else
|
|
2730
|
-
return this.error(
|
|
2730
|
+
return this.error(B.INVALID_TAG, P(r, this.clonePosition()));
|
|
2731
2731
|
}, e.prototype.parseTagName = function() {
|
|
2732
2732
|
var t = this.offset();
|
|
2733
2733
|
for (this.bump(); !this.isEOF() && Li(this.char()); )
|
|
@@ -2752,9 +2752,9 @@ var Pi = (
|
|
|
2752
2752
|
}
|
|
2753
2753
|
break;
|
|
2754
2754
|
}
|
|
2755
|
-
var s =
|
|
2755
|
+
var s = P(r, this.clonePosition());
|
|
2756
2756
|
return {
|
|
2757
|
-
val: { type:
|
|
2757
|
+
val: { type: k.literal, value: i, location: s },
|
|
2758
2758
|
err: null
|
|
2759
2759
|
};
|
|
2760
2760
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
@@ -2793,49 +2793,49 @@ var Pi = (
|
|
|
2793
2793
|
n.push(r);
|
|
2794
2794
|
this.bump();
|
|
2795
2795
|
}
|
|
2796
|
-
return
|
|
2796
|
+
return Jt.apply(void 0, n);
|
|
2797
2797
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2798
2798
|
if (this.isEOF())
|
|
2799
2799
|
return null;
|
|
2800
2800
|
var r = this.char();
|
|
2801
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2801
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Jt(r));
|
|
2802
2802
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2803
2803
|
var r = this.clonePosition();
|
|
2804
2804
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2805
|
-
return this.error(
|
|
2805
|
+
return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, P(r, this.clonePosition()));
|
|
2806
2806
|
if (this.char() === 125)
|
|
2807
|
-
return this.bump(), this.error(
|
|
2807
|
+
return this.bump(), this.error(B.EMPTY_ARGUMENT, P(r, this.clonePosition()));
|
|
2808
2808
|
var i = this.parseIdentifierIfPossible().value;
|
|
2809
2809
|
if (!i)
|
|
2810
|
-
return this.error(
|
|
2810
|
+
return this.error(B.MALFORMED_ARGUMENT, P(r, this.clonePosition()));
|
|
2811
2811
|
if (this.bumpSpace(), this.isEOF())
|
|
2812
|
-
return this.error(
|
|
2812
|
+
return this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, P(r, this.clonePosition()));
|
|
2813
2813
|
switch (this.char()) {
|
|
2814
2814
|
case 125:
|
|
2815
2815
|
return this.bump(), {
|
|
2816
2816
|
val: {
|
|
2817
|
-
type:
|
|
2817
|
+
type: k.argument,
|
|
2818
2818
|
// value does not include the opening and closing braces.
|
|
2819
2819
|
value: i,
|
|
2820
|
-
location:
|
|
2820
|
+
location: P(r, this.clonePosition())
|
|
2821
2821
|
},
|
|
2822
2822
|
err: null
|
|
2823
2823
|
};
|
|
2824
2824
|
case 44:
|
|
2825
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2825
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, P(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2826
2826
|
default:
|
|
2827
|
-
return this.error(
|
|
2827
|
+
return this.error(B.MALFORMED_ARGUMENT, P(r, this.clonePosition()));
|
|
2828
2828
|
}
|
|
2829
2829
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2830
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2830
|
+
var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
|
|
2831
2831
|
this.bumpTo(i);
|
|
2832
|
-
var a = this.clonePosition(), o =
|
|
2832
|
+
var a = this.clonePosition(), o = P(t, a);
|
|
2833
2833
|
return { value: r, location: o };
|
|
2834
2834
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2835
2835
|
var a, o = this.clonePosition(), u = this.parseIdentifierIfPossible().value, s = this.clonePosition();
|
|
2836
2836
|
switch (u) {
|
|
2837
2837
|
case "":
|
|
2838
|
-
return this.error(
|
|
2838
|
+
return this.error(B.EXPECT_ARGUMENT_TYPE, P(o, s));
|
|
2839
2839
|
case "number":
|
|
2840
2840
|
case "date":
|
|
2841
2841
|
case "time": {
|
|
@@ -2843,38 +2843,38 @@ var Pi = (
|
|
|
2843
2843
|
var l = null;
|
|
2844
2844
|
if (this.bumpIf(",")) {
|
|
2845
2845
|
this.bumpSpace();
|
|
2846
|
-
var c = this.clonePosition(),
|
|
2847
|
-
if (
|
|
2848
|
-
return
|
|
2849
|
-
var h = Hi(
|
|
2846
|
+
var c = this.clonePosition(), d = this.parseSimpleArgStyleIfPossible();
|
|
2847
|
+
if (d.err)
|
|
2848
|
+
return d;
|
|
2849
|
+
var h = Hi(d.val);
|
|
2850
2850
|
if (h.length === 0)
|
|
2851
|
-
return this.error(
|
|
2852
|
-
var
|
|
2853
|
-
l = { style: h, styleLocation:
|
|
2851
|
+
return this.error(B.EXPECT_ARGUMENT_STYLE, P(this.clonePosition(), this.clonePosition()));
|
|
2852
|
+
var p = P(c, this.clonePosition());
|
|
2853
|
+
l = { style: h, styleLocation: p };
|
|
2854
2854
|
}
|
|
2855
2855
|
var v = this.tryParseArgumentClose(i);
|
|
2856
2856
|
if (v.err)
|
|
2857
2857
|
return v;
|
|
2858
|
-
var b =
|
|
2859
|
-
if (l &&
|
|
2860
|
-
var
|
|
2858
|
+
var b = P(i, this.clonePosition());
|
|
2859
|
+
if (l && En(l?.style, "::", 0)) {
|
|
2860
|
+
var N = Si(l.style.slice(2));
|
|
2861
2861
|
if (u === "number") {
|
|
2862
|
-
var
|
|
2863
|
-
return
|
|
2864
|
-
val: { type:
|
|
2862
|
+
var d = this.parseNumberSkeletonFromString(N, l.styleLocation);
|
|
2863
|
+
return d.err ? d : {
|
|
2864
|
+
val: { type: k.number, value: r, location: b, style: d.val },
|
|
2865
2865
|
err: null
|
|
2866
2866
|
};
|
|
2867
2867
|
} else {
|
|
2868
|
-
if (
|
|
2869
|
-
return this.error(
|
|
2870
|
-
var
|
|
2871
|
-
this.locale && (
|
|
2868
|
+
if (N.length === 0)
|
|
2869
|
+
return this.error(B.EXPECT_DATE_TIME_SKELETON, b);
|
|
2870
|
+
var _ = N;
|
|
2871
|
+
this.locale && (_ = mi(N, this.locale));
|
|
2872
2872
|
var h = {
|
|
2873
|
-
type:
|
|
2874
|
-
pattern:
|
|
2873
|
+
type: je.dateTime,
|
|
2874
|
+
pattern: _,
|
|
2875
2875
|
location: l.styleLocation,
|
|
2876
|
-
parsedOptions: this.shouldParseSkeletons ? li(
|
|
2877
|
-
}, O = u === "date" ?
|
|
2876
|
+
parsedOptions: this.shouldParseSkeletons ? li(_) : {}
|
|
2877
|
+
}, O = u === "date" ? k.date : k.time;
|
|
2878
2878
|
return {
|
|
2879
2879
|
val: { type: O, value: r, location: b, style: h },
|
|
2880
2880
|
err: null
|
|
@@ -2883,7 +2883,7 @@ var Pi = (
|
|
|
2883
2883
|
}
|
|
2884
2884
|
return {
|
|
2885
2885
|
val: {
|
|
2886
|
-
type: u === "number" ?
|
|
2886
|
+
type: u === "number" ? k.number : u === "date" ? k.date : k.time,
|
|
2887
2887
|
value: r,
|
|
2888
2888
|
location: b,
|
|
2889
2889
|
style: (a = l?.style) !== null && a !== void 0 ? a : null
|
|
@@ -2894,52 +2894,52 @@ var Pi = (
|
|
|
2894
2894
|
case "plural":
|
|
2895
2895
|
case "selectordinal":
|
|
2896
2896
|
case "select": {
|
|
2897
|
-
var
|
|
2897
|
+
var L = this.clonePosition();
|
|
2898
2898
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2899
|
-
return this.error(
|
|
2899
|
+
return this.error(B.EXPECT_SELECT_ARGUMENT_OPTIONS, P(L, wt({}, L)));
|
|
2900
2900
|
this.bumpSpace();
|
|
2901
|
-
var
|
|
2902
|
-
if (u !== "select" &&
|
|
2901
|
+
var ae = this.parseIdentifierIfPossible(), D = 0;
|
|
2902
|
+
if (u !== "select" && ae.value === "offset") {
|
|
2903
2903
|
if (!this.bumpIf(":"))
|
|
2904
|
-
return this.error(
|
|
2904
|
+
return this.error(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, P(this.clonePosition(), this.clonePosition()));
|
|
2905
2905
|
this.bumpSpace();
|
|
2906
|
-
var
|
|
2907
|
-
if (
|
|
2908
|
-
return
|
|
2909
|
-
this.bumpSpace(),
|
|
2906
|
+
var d = this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, B.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2907
|
+
if (d.err)
|
|
2908
|
+
return d;
|
|
2909
|
+
this.bumpSpace(), ae = this.parseIdentifierIfPossible(), D = d.val;
|
|
2910
2910
|
}
|
|
2911
|
-
var
|
|
2912
|
-
if (
|
|
2913
|
-
return
|
|
2911
|
+
var ne = this.tryParsePluralOrSelectOptions(t, u, n, ae);
|
|
2912
|
+
if (ne.err)
|
|
2913
|
+
return ne;
|
|
2914
2914
|
var v = this.tryParseArgumentClose(i);
|
|
2915
2915
|
if (v.err)
|
|
2916
2916
|
return v;
|
|
2917
|
-
var
|
|
2917
|
+
var oe = P(i, this.clonePosition());
|
|
2918
2918
|
return u === "select" ? {
|
|
2919
2919
|
val: {
|
|
2920
|
-
type:
|
|
2920
|
+
type: k.select,
|
|
2921
2921
|
value: r,
|
|
2922
|
-
options:
|
|
2923
|
-
location:
|
|
2922
|
+
options: xn(ne.val),
|
|
2923
|
+
location: oe
|
|
2924
2924
|
},
|
|
2925
2925
|
err: null
|
|
2926
2926
|
} : {
|
|
2927
2927
|
val: {
|
|
2928
|
-
type:
|
|
2928
|
+
type: k.plural,
|
|
2929
2929
|
value: r,
|
|
2930
|
-
options:
|
|
2931
|
-
offset:
|
|
2930
|
+
options: xn(ne.val),
|
|
2931
|
+
offset: D,
|
|
2932
2932
|
pluralType: u === "plural" ? "cardinal" : "ordinal",
|
|
2933
|
-
location:
|
|
2933
|
+
location: oe
|
|
2934
2934
|
},
|
|
2935
2935
|
err: null
|
|
2936
2936
|
};
|
|
2937
2937
|
}
|
|
2938
2938
|
default:
|
|
2939
|
-
return this.error(
|
|
2939
|
+
return this.error(B.INVALID_ARGUMENT_TYPE, P(o, s));
|
|
2940
2940
|
}
|
|
2941
2941
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2942
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2942
|
+
return this.isEOF() || this.char() !== 125 ? this.error(B.EXPECT_ARGUMENT_CLOSING_BRACE, P(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2943
2943
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2944
2944
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2945
2945
|
var r = this.char();
|
|
@@ -2948,7 +2948,7 @@ var Pi = (
|
|
|
2948
2948
|
this.bump();
|
|
2949
2949
|
var i = this.clonePosition();
|
|
2950
2950
|
if (!this.bumpUntil("'"))
|
|
2951
|
-
return this.error(
|
|
2951
|
+
return this.error(B.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, P(i, this.clonePosition()));
|
|
2952
2952
|
this.bump();
|
|
2953
2953
|
break;
|
|
2954
2954
|
}
|
|
@@ -2980,11 +2980,11 @@ var Pi = (
|
|
|
2980
2980
|
try {
|
|
2981
2981
|
r = ci(t);
|
|
2982
2982
|
} catch {
|
|
2983
|
-
return this.error(
|
|
2983
|
+
return this.error(B.INVALID_NUMBER_SKELETON, n);
|
|
2984
2984
|
}
|
|
2985
2985
|
return {
|
|
2986
2986
|
val: {
|
|
2987
|
-
type:
|
|
2987
|
+
type: je.number,
|
|
2988
2988
|
tokens: r,
|
|
2989
2989
|
location: n,
|
|
2990
2990
|
parsedOptions: this.shouldParseSkeletons ? pi(r) : {}
|
|
@@ -2994,36 +2994,36 @@ var Pi = (
|
|
|
2994
2994
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2995
2995
|
for (var a, o = !1, u = [], s = /* @__PURE__ */ new Set(), l = i.value, c = i.location; ; ) {
|
|
2996
2996
|
if (l.length === 0) {
|
|
2997
|
-
var
|
|
2997
|
+
var d = this.clonePosition();
|
|
2998
2998
|
if (n !== "select" && this.bumpIf("=")) {
|
|
2999
|
-
var h = this.tryParseDecimalInteger(
|
|
2999
|
+
var h = this.tryParseDecimalInteger(B.EXPECT_PLURAL_ARGUMENT_SELECTOR, B.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3000
3000
|
if (h.err)
|
|
3001
3001
|
return h;
|
|
3002
|
-
c =
|
|
3002
|
+
c = P(d, this.clonePosition()), l = this.message.slice(d.offset, this.offset());
|
|
3003
3003
|
} else
|
|
3004
3004
|
break;
|
|
3005
3005
|
}
|
|
3006
3006
|
if (s.has(l))
|
|
3007
|
-
return this.error(n === "select" ?
|
|
3007
|
+
return this.error(n === "select" ? B.DUPLICATE_SELECT_ARGUMENT_SELECTOR : B.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3008
3008
|
l === "other" && (o = !0), this.bumpSpace();
|
|
3009
|
-
var
|
|
3009
|
+
var p = this.clonePosition();
|
|
3010
3010
|
if (!this.bumpIf("{"))
|
|
3011
|
-
return this.error(n === "select" ?
|
|
3011
|
+
return this.error(n === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : B.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, P(this.clonePosition(), this.clonePosition()));
|
|
3012
3012
|
var v = this.parseMessage(t + 1, n, r);
|
|
3013
3013
|
if (v.err)
|
|
3014
3014
|
return v;
|
|
3015
|
-
var b = this.tryParseArgumentClose(
|
|
3015
|
+
var b = this.tryParseArgumentClose(p);
|
|
3016
3016
|
if (b.err)
|
|
3017
3017
|
return b;
|
|
3018
3018
|
u.push([
|
|
3019
3019
|
l,
|
|
3020
3020
|
{
|
|
3021
3021
|
value: v.val,
|
|
3022
|
-
location:
|
|
3022
|
+
location: P(p, this.clonePosition())
|
|
3023
3023
|
}
|
|
3024
3024
|
]), s.add(l), this.bumpSpace(), a = this.parseIdentifierIfPossible(), l = a.value, c = a.location;
|
|
3025
3025
|
}
|
|
3026
|
-
return u.length === 0 ? this.error(n === "select" ?
|
|
3026
|
+
return u.length === 0 ? this.error(n === "select" ? B.EXPECT_SELECT_ARGUMENT_SELECTOR : B.EXPECT_PLURAL_ARGUMENT_SELECTOR, P(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(B.MISSING_OTHER_CLAUSE, P(this.clonePosition(), this.clonePosition())) : { val: u, err: null };
|
|
3027
3027
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3028
3028
|
var r = 1, i = this.clonePosition();
|
|
3029
3029
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
@@ -3034,7 +3034,7 @@ var Pi = (
|
|
|
3034
3034
|
else
|
|
3035
3035
|
break;
|
|
3036
3036
|
}
|
|
3037
|
-
var s =
|
|
3037
|
+
var s = P(i, this.clonePosition());
|
|
3038
3038
|
return a ? (o *= r, Ti(o) ? { val: o, err: null } : this.error(n, s)) : this.error(t, s);
|
|
3039
3039
|
}, e.prototype.offset = function() {
|
|
3040
3040
|
return this.position.offset;
|
|
@@ -3050,7 +3050,7 @@ var Pi = (
|
|
|
3050
3050
|
var t = this.position.offset;
|
|
3051
3051
|
if (t >= this.message.length)
|
|
3052
3052
|
throw Error("out of bound");
|
|
3053
|
-
var n =
|
|
3053
|
+
var n = sr(this.message, t);
|
|
3054
3054
|
if (n === void 0)
|
|
3055
3055
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3056
3056
|
return n;
|
|
@@ -3069,7 +3069,7 @@ var Pi = (
|
|
|
3069
3069
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3070
3070
|
}
|
|
3071
3071
|
}, e.prototype.bumpIf = function(t) {
|
|
3072
|
-
if (
|
|
3072
|
+
if (En(this.message, t, this.offset())) {
|
|
3073
3073
|
for (var n = 0; n < t.length; n++)
|
|
3074
3074
|
this.bump();
|
|
3075
3075
|
return !0;
|
|
@@ -3091,7 +3091,7 @@ var Pi = (
|
|
|
3091
3091
|
break;
|
|
3092
3092
|
}
|
|
3093
3093
|
}, e.prototype.bumpSpace = function() {
|
|
3094
|
-
for (; !this.isEOF() &&
|
|
3094
|
+
for (; !this.isEOF() && ur(this.char()); )
|
|
3095
3095
|
this.bump();
|
|
3096
3096
|
}, e.prototype.peek = function() {
|
|
3097
3097
|
if (this.isEOF())
|
|
@@ -3101,47 +3101,47 @@ var Pi = (
|
|
|
3101
3101
|
}, e;
|
|
3102
3102
|
}()
|
|
3103
3103
|
);
|
|
3104
|
-
function
|
|
3104
|
+
function en(e) {
|
|
3105
3105
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3106
3106
|
}
|
|
3107
3107
|
function Ii(e) {
|
|
3108
|
-
return
|
|
3108
|
+
return en(e) || e === 47;
|
|
3109
3109
|
}
|
|
3110
3110
|
function Li(e) {
|
|
3111
3111
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3112
3112
|
}
|
|
3113
|
-
function
|
|
3113
|
+
function ur(e) {
|
|
3114
3114
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3115
3115
|
}
|
|
3116
3116
|
function Ni(e) {
|
|
3117
3117
|
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;
|
|
3118
3118
|
}
|
|
3119
|
-
function
|
|
3119
|
+
function tn(e) {
|
|
3120
3120
|
e.forEach(function(t) {
|
|
3121
|
-
if (delete t.location,
|
|
3121
|
+
if (delete t.location, qn(t) || er(t))
|
|
3122
3122
|
for (var n in t.options)
|
|
3123
|
-
delete t.options[n].location,
|
|
3123
|
+
delete t.options[n].location, tn(t.options[n].value);
|
|
3124
3124
|
else
|
|
3125
|
-
|
|
3125
|
+
Kn(t) && nr(t.style) || (Yn(t) || Jn(t)) && Kt(t.style) ? delete t.style.location : tr(t) && tn(t.children);
|
|
3126
3126
|
});
|
|
3127
3127
|
}
|
|
3128
3128
|
function Oi(e, t) {
|
|
3129
|
-
t === void 0 && (t = {}), t =
|
|
3129
|
+
t === void 0 && (t = {}), t = wt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3130
3130
|
var n = new Pi(e, t).parse();
|
|
3131
3131
|
if (n.err) {
|
|
3132
|
-
var r = SyntaxError(
|
|
3132
|
+
var r = SyntaxError(B[n.err.kind]);
|
|
3133
3133
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3134
3134
|
}
|
|
3135
|
-
return t?.captureLocation ||
|
|
3135
|
+
return t?.captureLocation || tn(n.val), n.val;
|
|
3136
3136
|
}
|
|
3137
|
-
var
|
|
3137
|
+
var Xe;
|
|
3138
3138
|
(function(e) {
|
|
3139
3139
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3140
|
-
})(
|
|
3141
|
-
var
|
|
3140
|
+
})(Xe || (Xe = {}));
|
|
3141
|
+
var Ht = (
|
|
3142
3142
|
/** @class */
|
|
3143
3143
|
function(e) {
|
|
3144
|
-
|
|
3144
|
+
St(t, e);
|
|
3145
3145
|
function t(n, r, i) {
|
|
3146
3146
|
var a = e.call(this, n) || this;
|
|
3147
3147
|
return a.code = r, a.originalMessage = i, a;
|
|
@@ -3150,155 +3150,155 @@ var It = (
|
|
|
3150
3150
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3151
3151
|
}, t;
|
|
3152
3152
|
}(Error)
|
|
3153
|
-
),
|
|
3153
|
+
), An = (
|
|
3154
3154
|
/** @class */
|
|
3155
3155
|
function(e) {
|
|
3156
|
-
|
|
3156
|
+
St(t, e);
|
|
3157
3157
|
function t(n, r, i, a) {
|
|
3158
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3158
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Xe.INVALID_VALUE, a) || this;
|
|
3159
3159
|
}
|
|
3160
3160
|
return t;
|
|
3161
|
-
}(
|
|
3161
|
+
}(Ht)
|
|
3162
3162
|
), Ri = (
|
|
3163
3163
|
/** @class */
|
|
3164
3164
|
function(e) {
|
|
3165
|
-
|
|
3165
|
+
St(t, e);
|
|
3166
3166
|
function t(n, r, i) {
|
|
3167
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3167
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Xe.INVALID_VALUE, i) || this;
|
|
3168
3168
|
}
|
|
3169
3169
|
return t;
|
|
3170
|
-
}(
|
|
3170
|
+
}(Ht)
|
|
3171
3171
|
), ki = (
|
|
3172
3172
|
/** @class */
|
|
3173
3173
|
function(e) {
|
|
3174
|
-
|
|
3174
|
+
St(t, e);
|
|
3175
3175
|
function t(n, r) {
|
|
3176
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3176
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Xe.MISSING_VALUE, r) || this;
|
|
3177
3177
|
}
|
|
3178
3178
|
return t;
|
|
3179
|
-
}(
|
|
3180
|
-
),
|
|
3179
|
+
}(Ht)
|
|
3180
|
+
), q;
|
|
3181
3181
|
(function(e) {
|
|
3182
3182
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3183
|
-
})(
|
|
3183
|
+
})(q || (q = {}));
|
|
3184
3184
|
function Di(e) {
|
|
3185
3185
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3186
3186
|
var r = t[t.length - 1];
|
|
3187
|
-
return !r || r.type !==
|
|
3187
|
+
return !r || r.type !== q.literal || n.type !== q.literal ? t.push(n) : r.value += n.value, t;
|
|
3188
3188
|
}, []);
|
|
3189
3189
|
}
|
|
3190
3190
|
function Mi(e) {
|
|
3191
3191
|
return typeof e == "function";
|
|
3192
3192
|
}
|
|
3193
|
-
function
|
|
3194
|
-
if (e.length === 1 &&
|
|
3193
|
+
function vt(e, t, n, r, i, a, o) {
|
|
3194
|
+
if (e.length === 1 && bn(e[0]))
|
|
3195
3195
|
return [
|
|
3196
3196
|
{
|
|
3197
|
-
type:
|
|
3197
|
+
type: q.literal,
|
|
3198
3198
|
value: e[0].value
|
|
3199
3199
|
}
|
|
3200
3200
|
];
|
|
3201
3201
|
for (var u = [], s = 0, l = e; s < l.length; s++) {
|
|
3202
3202
|
var c = l[s];
|
|
3203
|
-
if (
|
|
3203
|
+
if (bn(c)) {
|
|
3204
3204
|
u.push({
|
|
3205
|
-
type:
|
|
3205
|
+
type: q.literal,
|
|
3206
3206
|
value: c.value
|
|
3207
3207
|
});
|
|
3208
3208
|
continue;
|
|
3209
3209
|
}
|
|
3210
3210
|
if (oi(c)) {
|
|
3211
3211
|
typeof a == "number" && u.push({
|
|
3212
|
-
type:
|
|
3212
|
+
type: q.literal,
|
|
3213
3213
|
value: n.getNumberFormat(t).format(a)
|
|
3214
3214
|
});
|
|
3215
3215
|
continue;
|
|
3216
3216
|
}
|
|
3217
|
-
var
|
|
3218
|
-
if (!(i &&
|
|
3219
|
-
throw new ki(
|
|
3220
|
-
var h = i[
|
|
3217
|
+
var d = c.value;
|
|
3218
|
+
if (!(i && d in i))
|
|
3219
|
+
throw new ki(d, o);
|
|
3220
|
+
var h = i[d];
|
|
3221
3221
|
if (ai(c)) {
|
|
3222
3222
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), u.push({
|
|
3223
|
-
type: typeof h == "string" ?
|
|
3223
|
+
type: typeof h == "string" ? q.literal : q.object,
|
|
3224
3224
|
value: h
|
|
3225
3225
|
});
|
|
3226
3226
|
continue;
|
|
3227
3227
|
}
|
|
3228
|
-
if (
|
|
3229
|
-
var
|
|
3228
|
+
if (Yn(c)) {
|
|
3229
|
+
var p = typeof c.style == "string" ? r.date[c.style] : Kt(c.style) ? c.style.parsedOptions : void 0;
|
|
3230
3230
|
u.push({
|
|
3231
|
-
type:
|
|
3232
|
-
value: n.getDateTimeFormat(t,
|
|
3231
|
+
type: q.literal,
|
|
3232
|
+
value: n.getDateTimeFormat(t, p).format(h)
|
|
3233
3233
|
});
|
|
3234
3234
|
continue;
|
|
3235
3235
|
}
|
|
3236
|
-
if (
|
|
3237
|
-
var
|
|
3236
|
+
if (Jn(c)) {
|
|
3237
|
+
var p = typeof c.style == "string" ? r.time[c.style] : Kt(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
3238
3238
|
u.push({
|
|
3239
|
-
type:
|
|
3240
|
-
value: n.getDateTimeFormat(t,
|
|
3239
|
+
type: q.literal,
|
|
3240
|
+
value: n.getDateTimeFormat(t, p).format(h)
|
|
3241
3241
|
});
|
|
3242
3242
|
continue;
|
|
3243
3243
|
}
|
|
3244
|
-
if (
|
|
3245
|
-
var
|
|
3246
|
-
|
|
3247
|
-
type:
|
|
3248
|
-
value: n.getNumberFormat(t,
|
|
3244
|
+
if (Kn(c)) {
|
|
3245
|
+
var p = typeof c.style == "string" ? r.number[c.style] : nr(c.style) ? c.style.parsedOptions : void 0;
|
|
3246
|
+
p && p.scale && (h = h * (p.scale || 1)), u.push({
|
|
3247
|
+
type: q.literal,
|
|
3248
|
+
value: n.getNumberFormat(t, p).format(h)
|
|
3249
3249
|
});
|
|
3250
3250
|
continue;
|
|
3251
3251
|
}
|
|
3252
|
-
if (
|
|
3253
|
-
var v = c.children, b = c.value,
|
|
3254
|
-
if (!Mi(
|
|
3252
|
+
if (tr(c)) {
|
|
3253
|
+
var v = c.children, b = c.value, N = i[b];
|
|
3254
|
+
if (!Mi(N))
|
|
3255
3255
|
throw new Ri(b, "function", o);
|
|
3256
|
-
var
|
|
3257
|
-
return
|
|
3256
|
+
var _ = vt(v, t, n, r, i, a), O = N(_.map(function(D) {
|
|
3257
|
+
return D.value;
|
|
3258
3258
|
}));
|
|
3259
|
-
Array.isArray(O) || (O = [O]), u.push.apply(u, O.map(function(
|
|
3259
|
+
Array.isArray(O) || (O = [O]), u.push.apply(u, O.map(function(D) {
|
|
3260
3260
|
return {
|
|
3261
|
-
type: typeof
|
|
3262
|
-
value:
|
|
3261
|
+
type: typeof D == "string" ? q.literal : q.object,
|
|
3262
|
+
value: D
|
|
3263
3263
|
};
|
|
3264
3264
|
}));
|
|
3265
3265
|
}
|
|
3266
|
-
if (
|
|
3267
|
-
var
|
|
3268
|
-
if (!
|
|
3269
|
-
throw new
|
|
3270
|
-
u.push.apply(u,
|
|
3266
|
+
if (qn(c)) {
|
|
3267
|
+
var L = c.options[h] || c.options.other;
|
|
3268
|
+
if (!L)
|
|
3269
|
+
throw new An(c.value, h, Object.keys(c.options), o);
|
|
3270
|
+
u.push.apply(u, vt(L.value, t, n, r, i));
|
|
3271
3271
|
continue;
|
|
3272
3272
|
}
|
|
3273
|
-
if (
|
|
3274
|
-
var
|
|
3275
|
-
if (!
|
|
3273
|
+
if (er(c)) {
|
|
3274
|
+
var L = c.options["=".concat(h)];
|
|
3275
|
+
if (!L) {
|
|
3276
3276
|
if (!Intl.PluralRules)
|
|
3277
|
-
throw new
|
|
3277
|
+
throw new Ht(`Intl.PluralRules is not available in this environment.
|
|
3278
3278
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3279
|
-
`,
|
|
3280
|
-
var
|
|
3281
|
-
|
|
3279
|
+
`, Xe.MISSING_INTL_API, o);
|
|
3280
|
+
var ae = n.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
|
|
3281
|
+
L = c.options[ae] || c.options.other;
|
|
3282
3282
|
}
|
|
3283
|
-
if (!
|
|
3284
|
-
throw new
|
|
3285
|
-
u.push.apply(u,
|
|
3283
|
+
if (!L)
|
|
3284
|
+
throw new An(c.value, h, Object.keys(c.options), o);
|
|
3285
|
+
u.push.apply(u, vt(L.value, t, n, r, i, h - (c.offset || 0)));
|
|
3286
3286
|
continue;
|
|
3287
3287
|
}
|
|
3288
3288
|
}
|
|
3289
3289
|
return Di(u);
|
|
3290
3290
|
}
|
|
3291
3291
|
function Fi(e, t) {
|
|
3292
|
-
return t ?
|
|
3293
|
-
return n[r] =
|
|
3292
|
+
return t ? pe(pe(pe({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3293
|
+
return n[r] = pe(pe({}, e[r]), t[r] || {}), n;
|
|
3294
3294
|
}, {})) : e;
|
|
3295
3295
|
}
|
|
3296
3296
|
function Ui(e, t) {
|
|
3297
3297
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3298
3298
|
return n[r] = Fi(e[r], t[r]), n;
|
|
3299
|
-
},
|
|
3299
|
+
}, pe({}, e)) : e;
|
|
3300
3300
|
}
|
|
3301
|
-
function
|
|
3301
|
+
function $t(e) {
|
|
3302
3302
|
return {
|
|
3303
3303
|
create: function() {
|
|
3304
3304
|
return {
|
|
@@ -3318,29 +3318,29 @@ function Vi(e) {
|
|
|
3318
3318
|
dateTime: {},
|
|
3319
3319
|
pluralRules: {}
|
|
3320
3320
|
}), {
|
|
3321
|
-
getNumberFormat:
|
|
3321
|
+
getNumberFormat: Ut(function() {
|
|
3322
3322
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3323
3323
|
n[r] = arguments[r];
|
|
3324
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3324
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ft([void 0], n, !1)))();
|
|
3325
3325
|
}, {
|
|
3326
|
-
cache:
|
|
3327
|
-
strategy:
|
|
3326
|
+
cache: $t(e.number),
|
|
3327
|
+
strategy: Vt.variadic
|
|
3328
3328
|
}),
|
|
3329
|
-
getDateTimeFormat:
|
|
3329
|
+
getDateTimeFormat: Ut(function() {
|
|
3330
3330
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3331
3331
|
n[r] = arguments[r];
|
|
3332
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3332
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ft([void 0], n, !1)))();
|
|
3333
3333
|
}, {
|
|
3334
|
-
cache:
|
|
3335
|
-
strategy:
|
|
3334
|
+
cache: $t(e.dateTime),
|
|
3335
|
+
strategy: Vt.variadic
|
|
3336
3336
|
}),
|
|
3337
|
-
getPluralRules:
|
|
3337
|
+
getPluralRules: Ut(function() {
|
|
3338
3338
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3339
3339
|
n[r] = arguments[r];
|
|
3340
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3340
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ft([void 0], n, !1)))();
|
|
3341
3341
|
}, {
|
|
3342
|
-
cache:
|
|
3343
|
-
strategy:
|
|
3342
|
+
cache: $t(e.pluralRules),
|
|
3343
|
+
strategy: Vt.variadic
|
|
3344
3344
|
})
|
|
3345
3345
|
};
|
|
3346
3346
|
}
|
|
@@ -3358,12 +3358,12 @@ var Gi = (
|
|
|
3358
3358
|
var l = a.formatToParts(s);
|
|
3359
3359
|
if (l.length === 1)
|
|
3360
3360
|
return l[0].value;
|
|
3361
|
-
var c = l.reduce(function(
|
|
3362
|
-
return !
|
|
3361
|
+
var c = l.reduce(function(d, h) {
|
|
3362
|
+
return !d.length || h.type !== q.literal || typeof d[d.length - 1] != "string" ? d.push(h.value) : d[d.length - 1] += h.value, d;
|
|
3363
3363
|
}, []);
|
|
3364
3364
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3365
3365
|
}, this.formatToParts = function(s) {
|
|
3366
|
-
return
|
|
3366
|
+
return vt(a.ast, a.locales, a.formatters, a.formats, s, void 0, a.message);
|
|
3367
3367
|
}, this.resolvedOptions = function() {
|
|
3368
3368
|
var s;
|
|
3369
3369
|
return {
|
|
@@ -3377,7 +3377,7 @@ var Gi = (
|
|
|
3377
3377
|
var o = i || {};
|
|
3378
3378
|
o.formatters;
|
|
3379
3379
|
var u = Yr(o, ["formatters"]);
|
|
3380
|
-
this.ast = e.__parse(t,
|
|
3380
|
+
this.ast = e.__parse(t, pe(pe({}, u), { locale: this.resolvedLocale }));
|
|
3381
3381
|
} else
|
|
3382
3382
|
this.ast = t;
|
|
3383
3383
|
if (!Array.isArray(this.ast))
|
|
@@ -3477,28 +3477,28 @@ function $i(e, t) {
|
|
|
3477
3477
|
r = void 0;
|
|
3478
3478
|
return r;
|
|
3479
3479
|
}
|
|
3480
|
-
const
|
|
3480
|
+
const we = {}, ji = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = n), n), cr = (e, t) => {
|
|
3481
3481
|
if (t == null)
|
|
3482
3482
|
return;
|
|
3483
|
-
if (t in
|
|
3484
|
-
return
|
|
3485
|
-
const n =
|
|
3483
|
+
if (t in we && e in we[t])
|
|
3484
|
+
return we[t][e];
|
|
3485
|
+
const n = Pt(t);
|
|
3486
3486
|
for (let r = 0; r < n.length; r++) {
|
|
3487
3487
|
const i = n[r], a = Wi(i, e);
|
|
3488
3488
|
if (a)
|
|
3489
3489
|
return ji(e, t, a);
|
|
3490
3490
|
}
|
|
3491
3491
|
};
|
|
3492
|
-
let
|
|
3493
|
-
const
|
|
3492
|
+
let cn;
|
|
3493
|
+
const Ze = Bt({});
|
|
3494
3494
|
function Xi(e) {
|
|
3495
|
-
return
|
|
3495
|
+
return cn[e] || null;
|
|
3496
3496
|
}
|
|
3497
|
-
function
|
|
3498
|
-
return e in
|
|
3497
|
+
function hr(e) {
|
|
3498
|
+
return e in cn;
|
|
3499
3499
|
}
|
|
3500
3500
|
function Wi(e, t) {
|
|
3501
|
-
if (!
|
|
3501
|
+
if (!hr(e))
|
|
3502
3502
|
return null;
|
|
3503
3503
|
const n = Xi(e);
|
|
3504
3504
|
return $i(n, t);
|
|
@@ -3506,61 +3506,61 @@ function Wi(e, t) {
|
|
|
3506
3506
|
function zi(e) {
|
|
3507
3507
|
if (e == null)
|
|
3508
3508
|
return;
|
|
3509
|
-
const t =
|
|
3509
|
+
const t = Pt(e);
|
|
3510
3510
|
for (let n = 0; n < t.length; n++) {
|
|
3511
3511
|
const r = t[n];
|
|
3512
|
-
if (
|
|
3512
|
+
if (hr(r))
|
|
3513
3513
|
return r;
|
|
3514
3514
|
}
|
|
3515
3515
|
}
|
|
3516
|
-
function
|
|
3517
|
-
delete
|
|
3516
|
+
function fr(e, ...t) {
|
|
3517
|
+
delete we[e], Ze.update((n) => (n[e] = Kr.all([n[e] || {}, ...t]), n));
|
|
3518
3518
|
}
|
|
3519
|
-
|
|
3520
|
-
[
|
|
3519
|
+
ze(
|
|
3520
|
+
[Ze],
|
|
3521
3521
|
([e]) => Object.keys(e)
|
|
3522
3522
|
);
|
|
3523
|
-
|
|
3524
|
-
const
|
|
3523
|
+
Ze.subscribe((e) => cn = e);
|
|
3524
|
+
const _t = {};
|
|
3525
3525
|
function Zi(e, t) {
|
|
3526
|
-
|
|
3526
|
+
_t[e].delete(t), _t[e].size === 0 && delete _t[e];
|
|
3527
3527
|
}
|
|
3528
|
-
function
|
|
3529
|
-
return
|
|
3528
|
+
function dr(e) {
|
|
3529
|
+
return _t[e];
|
|
3530
3530
|
}
|
|
3531
3531
|
function Qi(e) {
|
|
3532
|
-
return
|
|
3533
|
-
const n =
|
|
3532
|
+
return Pt(e).map((t) => {
|
|
3533
|
+
const n = dr(t);
|
|
3534
3534
|
return [t, n ? [...n] : []];
|
|
3535
3535
|
}).filter(([, t]) => t.length > 0);
|
|
3536
3536
|
}
|
|
3537
|
-
function
|
|
3538
|
-
return e == null ? !1 :
|
|
3537
|
+
function nn(e) {
|
|
3538
|
+
return e == null ? !1 : Pt(e).some(
|
|
3539
3539
|
(t) => {
|
|
3540
3540
|
var n;
|
|
3541
|
-
return (n =
|
|
3541
|
+
return (n = dr(t)) == null ? void 0 : n.size;
|
|
3542
3542
|
}
|
|
3543
3543
|
);
|
|
3544
3544
|
}
|
|
3545
3545
|
function Ki(e, t) {
|
|
3546
3546
|
return Promise.all(
|
|
3547
3547
|
t.map((r) => (Zi(e, r), r().then((i) => i.default || i)))
|
|
3548
|
-
).then((r) =>
|
|
3548
|
+
).then((r) => fr(e, ...r));
|
|
3549
3549
|
}
|
|
3550
|
-
const
|
|
3551
|
-
function
|
|
3552
|
-
if (!
|
|
3553
|
-
return e in
|
|
3550
|
+
const et = {};
|
|
3551
|
+
function pr(e) {
|
|
3552
|
+
if (!nn(e))
|
|
3553
|
+
return e in et ? et[e] : Promise.resolve();
|
|
3554
3554
|
const t = Qi(e);
|
|
3555
|
-
return
|
|
3555
|
+
return et[e] = Promise.all(
|
|
3556
3556
|
t.map(
|
|
3557
3557
|
([n, r]) => Ki(n, r)
|
|
3558
3558
|
)
|
|
3559
3559
|
).then(() => {
|
|
3560
|
-
if (
|
|
3561
|
-
return
|
|
3562
|
-
delete
|
|
3563
|
-
}),
|
|
3560
|
+
if (nn(e))
|
|
3561
|
+
return pr(e);
|
|
3562
|
+
delete et[e];
|
|
3563
|
+
}), et[e];
|
|
3564
3564
|
}
|
|
3565
3565
|
const Yi = {
|
|
3566
3566
|
number: {
|
|
@@ -3599,125 +3599,125 @@ const Yi = {
|
|
|
3599
3599
|
handleMissingMessage: void 0,
|
|
3600
3600
|
ignoreTag: !0
|
|
3601
3601
|
}, qi = Ji;
|
|
3602
|
-
function
|
|
3602
|
+
function We() {
|
|
3603
3603
|
return qi;
|
|
3604
3604
|
}
|
|
3605
|
-
const
|
|
3606
|
-
var ea = Object.defineProperty, ta = Object.defineProperties, na = Object.getOwnPropertyDescriptors,
|
|
3605
|
+
const jt = Bt(!1);
|
|
3606
|
+
var ea = Object.defineProperty, ta = Object.defineProperties, na = Object.getOwnPropertyDescriptors, Cn = Object.getOwnPropertySymbols, ra = Object.prototype.hasOwnProperty, ia = Object.prototype.propertyIsEnumerable, Tn = (e, t, n) => t in e ? ea(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, aa = (e, t) => {
|
|
3607
3607
|
for (var n in t || (t = {}))
|
|
3608
|
-
ra.call(t, n) &&
|
|
3609
|
-
if (
|
|
3610
|
-
for (var n of
|
|
3611
|
-
ia.call(t, n) &&
|
|
3608
|
+
ra.call(t, n) && Tn(e, n, t[n]);
|
|
3609
|
+
if (Cn)
|
|
3610
|
+
for (var n of Cn(t))
|
|
3611
|
+
ia.call(t, n) && Tn(e, n, t[n]);
|
|
3612
3612
|
return e;
|
|
3613
3613
|
}, oa = (e, t) => ta(e, na(t));
|
|
3614
|
-
let
|
|
3615
|
-
const
|
|
3616
|
-
function
|
|
3614
|
+
let rn;
|
|
3615
|
+
const At = Bt(null);
|
|
3616
|
+
function Bn(e) {
|
|
3617
3617
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3618
3618
|
}
|
|
3619
|
-
function
|
|
3620
|
-
const n =
|
|
3621
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3619
|
+
function Pt(e, t = We().fallbackLocale) {
|
|
3620
|
+
const n = Bn(e);
|
|
3621
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Bn(t)])] : n;
|
|
3622
3622
|
}
|
|
3623
|
-
function
|
|
3624
|
-
return
|
|
3623
|
+
function Pe() {
|
|
3624
|
+
return rn ?? void 0;
|
|
3625
3625
|
}
|
|
3626
|
-
|
|
3627
|
-
|
|
3626
|
+
At.subscribe((e) => {
|
|
3627
|
+
rn = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3628
3628
|
});
|
|
3629
3629
|
const sa = (e) => {
|
|
3630
|
-
if (e && zi(e) &&
|
|
3631
|
-
const { loadingDelay: t } =
|
|
3630
|
+
if (e && zi(e) && nn(e)) {
|
|
3631
|
+
const { loadingDelay: t } = We();
|
|
3632
3632
|
let n;
|
|
3633
|
-
return typeof window < "u" &&
|
|
3634
|
-
() =>
|
|
3633
|
+
return typeof window < "u" && Pe() != null && t ? n = window.setTimeout(
|
|
3634
|
+
() => jt.set(!0),
|
|
3635
3635
|
t
|
|
3636
|
-
) :
|
|
3637
|
-
|
|
3636
|
+
) : jt.set(!0), pr(e).then(() => {
|
|
3637
|
+
At.set(e);
|
|
3638
3638
|
}).finally(() => {
|
|
3639
|
-
clearTimeout(n),
|
|
3639
|
+
clearTimeout(n), jt.set(!1);
|
|
3640
3640
|
});
|
|
3641
3641
|
}
|
|
3642
|
-
return
|
|
3643
|
-
},
|
|
3642
|
+
return At.set(e);
|
|
3643
|
+
}, Ae = oa(aa({}, At), {
|
|
3644
3644
|
set: sa
|
|
3645
|
-
}),
|
|
3645
|
+
}), It = (e) => {
|
|
3646
3646
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3647
3647
|
return (r) => {
|
|
3648
3648
|
const i = JSON.stringify(r);
|
|
3649
3649
|
return i in t ? t[i] : t[i] = e(r);
|
|
3650
3650
|
};
|
|
3651
3651
|
};
|
|
3652
|
-
var la = Object.defineProperty,
|
|
3652
|
+
var la = Object.defineProperty, Ct = Object.getOwnPropertySymbols, mr = Object.prototype.hasOwnProperty, gr = Object.prototype.propertyIsEnumerable, Sn = (e, t, n) => t in e ? la(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, hn = (e, t) => {
|
|
3653
3653
|
for (var n in t || (t = {}))
|
|
3654
|
-
|
|
3655
|
-
if (
|
|
3656
|
-
for (var n of
|
|
3657
|
-
|
|
3654
|
+
mr.call(t, n) && Sn(e, n, t[n]);
|
|
3655
|
+
if (Ct)
|
|
3656
|
+
for (var n of Ct(t))
|
|
3657
|
+
gr.call(t, n) && Sn(e, n, t[n]);
|
|
3658
3658
|
return e;
|
|
3659
|
-
},
|
|
3659
|
+
}, Qe = (e, t) => {
|
|
3660
3660
|
var n = {};
|
|
3661
3661
|
for (var r in e)
|
|
3662
|
-
|
|
3663
|
-
if (e != null &&
|
|
3664
|
-
for (var r of
|
|
3665
|
-
t.indexOf(r) < 0 &&
|
|
3662
|
+
mr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3663
|
+
if (e != null && Ct)
|
|
3664
|
+
for (var r of Ct(e))
|
|
3665
|
+
t.indexOf(r) < 0 && gr.call(e, r) && (n[r] = e[r]);
|
|
3666
3666
|
return n;
|
|
3667
3667
|
};
|
|
3668
|
-
const
|
|
3669
|
-
const { formats: n } =
|
|
3668
|
+
const at = (e, t) => {
|
|
3669
|
+
const { formats: n } = We();
|
|
3670
3670
|
if (e in n && t in n[e])
|
|
3671
3671
|
return n[e][t];
|
|
3672
3672
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3673
|
-
}, ua =
|
|
3673
|
+
}, ua = It(
|
|
3674
3674
|
(e) => {
|
|
3675
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3675
|
+
var t = e, { locale: n, format: r } = t, i = Qe(t, ["locale", "format"]);
|
|
3676
3676
|
if (n == null)
|
|
3677
3677
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3678
|
-
return r && (i =
|
|
3678
|
+
return r && (i = at("number", r)), new Intl.NumberFormat(n, i);
|
|
3679
3679
|
}
|
|
3680
|
-
), ca =
|
|
3680
|
+
), ca = It(
|
|
3681
3681
|
(e) => {
|
|
3682
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3682
|
+
var t = e, { locale: n, format: r } = t, i = Qe(t, ["locale", "format"]);
|
|
3683
3683
|
if (n == null)
|
|
3684
3684
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3685
|
-
return r ? i =
|
|
3685
|
+
return r ? i = at("date", r) : Object.keys(i).length === 0 && (i = at("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3686
3686
|
}
|
|
3687
|
-
), ha =
|
|
3687
|
+
), ha = It(
|
|
3688
3688
|
(e) => {
|
|
3689
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3689
|
+
var t = e, { locale: n, format: r } = t, i = Qe(t, ["locale", "format"]);
|
|
3690
3690
|
if (n == null)
|
|
3691
3691
|
throw new Error(
|
|
3692
3692
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3693
3693
|
);
|
|
3694
|
-
return r ? i =
|
|
3694
|
+
return r ? i = at("time", r) : Object.keys(i).length === 0 && (i = at("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3695
3695
|
}
|
|
3696
3696
|
), fa = (e = {}) => {
|
|
3697
3697
|
var t = e, {
|
|
3698
|
-
locale: n =
|
|
3699
|
-
} = t, r =
|
|
3698
|
+
locale: n = Pe()
|
|
3699
|
+
} = t, r = Qe(t, [
|
|
3700
3700
|
"locale"
|
|
3701
3701
|
]);
|
|
3702
|
-
return ua(
|
|
3702
|
+
return ua(hn({ locale: n }, r));
|
|
3703
3703
|
}, da = (e = {}) => {
|
|
3704
3704
|
var t = e, {
|
|
3705
|
-
locale: n =
|
|
3706
|
-
} = t, r =
|
|
3705
|
+
locale: n = Pe()
|
|
3706
|
+
} = t, r = Qe(t, [
|
|
3707
3707
|
"locale"
|
|
3708
3708
|
]);
|
|
3709
|
-
return ca(
|
|
3709
|
+
return ca(hn({ locale: n }, r));
|
|
3710
3710
|
}, pa = (e = {}) => {
|
|
3711
3711
|
var t = e, {
|
|
3712
|
-
locale: n =
|
|
3713
|
-
} = t, r =
|
|
3712
|
+
locale: n = Pe()
|
|
3713
|
+
} = t, r = Qe(t, [
|
|
3714
3714
|
"locale"
|
|
3715
3715
|
]);
|
|
3716
|
-
return ha(
|
|
3717
|
-
}, ma =
|
|
3716
|
+
return ha(hn({ locale: n }, r));
|
|
3717
|
+
}, ma = It(
|
|
3718
3718
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3719
|
-
(e, t =
|
|
3720
|
-
ignoreTag:
|
|
3719
|
+
(e, t = Pe()) => new Gi(e, t, We().formats, {
|
|
3720
|
+
ignoreTag: We().ignoreTag
|
|
3721
3721
|
})
|
|
3722
3722
|
), ga = (e, t = {}) => {
|
|
3723
3723
|
var n, r, i, a;
|
|
@@ -3725,49 +3725,49 @@ const st = (e, t) => {
|
|
|
3725
3725
|
typeof e == "object" && (o = e, e = o.id);
|
|
3726
3726
|
const {
|
|
3727
3727
|
values: u,
|
|
3728
|
-
locale: s =
|
|
3728
|
+
locale: s = Pe(),
|
|
3729
3729
|
default: l
|
|
3730
3730
|
} = o;
|
|
3731
3731
|
if (s == null)
|
|
3732
3732
|
throw new Error(
|
|
3733
3733
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3734
3734
|
);
|
|
3735
|
-
let c =
|
|
3735
|
+
let c = cr(e, s);
|
|
3736
3736
|
if (!c)
|
|
3737
|
-
c = (a = (i = (r = (n =
|
|
3737
|
+
c = (a = (i = (r = (n = We()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: s, id: e, defaultValue: l })) != null ? i : l) != null ? a : e;
|
|
3738
3738
|
else if (typeof c != "string")
|
|
3739
3739
|
return console.warn(
|
|
3740
3740
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3741
3741
|
), c;
|
|
3742
3742
|
if (!u)
|
|
3743
3743
|
return c;
|
|
3744
|
-
let
|
|
3744
|
+
let d = c;
|
|
3745
3745
|
try {
|
|
3746
|
-
|
|
3746
|
+
d = ma(c, s).format(u);
|
|
3747
3747
|
} catch (h) {
|
|
3748
3748
|
h instanceof Error && console.warn(
|
|
3749
3749
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3750
3750
|
h.message
|
|
3751
3751
|
);
|
|
3752
3752
|
}
|
|
3753
|
-
return
|
|
3754
|
-
}, ba = (e, t) => pa(t).format(e), ya = (e, t) => da(t).format(e), va = (e, t) => fa(t).format(e), _a = (e, t =
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3753
|
+
return d;
|
|
3754
|
+
}, ba = (e, t) => pa(t).format(e), ya = (e, t) => da(t).format(e), va = (e, t) => fa(t).format(e), _a = (e, t = Pe()) => cr(e, t), Ea = ze([Ae, Ze], () => ga);
|
|
3755
|
+
ze([Ae], () => ba);
|
|
3756
|
+
ze([Ae], () => ya);
|
|
3757
|
+
ze([Ae], () => va);
|
|
3758
|
+
ze([Ae, Ze], () => _a);
|
|
3759
3759
|
function xa({ withLocale: e, translations: t }) {
|
|
3760
|
-
|
|
3761
|
-
n == null && (
|
|
3760
|
+
Ae.subscribe((n) => {
|
|
3761
|
+
n == null && (Ze.set(t), Ae.set(e));
|
|
3762
3762
|
});
|
|
3763
3763
|
}
|
|
3764
|
-
function
|
|
3765
|
-
|
|
3764
|
+
function Hn(e, t) {
|
|
3765
|
+
fr(e, t);
|
|
3766
3766
|
}
|
|
3767
3767
|
function wa(e) {
|
|
3768
|
-
|
|
3768
|
+
Ae.set(e);
|
|
3769
3769
|
}
|
|
3770
|
-
const R =
|
|
3770
|
+
const R = yr(Ea), Pn = {
|
|
3771
3771
|
en: {
|
|
3772
3772
|
vaultExchange: "Vault Exchange",
|
|
3773
3773
|
debitPlaceHolder: "Debit amount",
|
|
@@ -4152,29 +4152,31 @@ const R = vr(Ea), Hn = {
|
|
|
4152
4152
|
ZWD: "Z$"
|
|
4153
4153
|
}, Ca = 6e3, Ta = {
|
|
4154
4154
|
InvalidSession: "Invalid session"
|
|
4155
|
-
},
|
|
4155
|
+
}, K = {
|
|
4156
4156
|
BalanceError: "BalanceError",
|
|
4157
4157
|
CheckWalletExchangeError: "CheckWalletExchangeError",
|
|
4158
4158
|
WalletExchangeError: "WalletExchangeError",
|
|
4159
4159
|
CurrenciesError: "CurrenciesError"
|
|
4160
|
-
},
|
|
4160
|
+
}, In = {
|
|
4161
4161
|
ResetVaultWidget: "ResetVaultWidget",
|
|
4162
4162
|
CloseVaultWidget: "CloseVaultWidget"
|
|
4163
|
-
},
|
|
4163
|
+
}, Xt = {
|
|
4164
4164
|
VaultWidgetReset: "VaultWidgetReset",
|
|
4165
4165
|
VaultWidgetClosed: "VaultWidgetClosed",
|
|
4166
4166
|
VaultDropdownToggled: "VaultDropdownToggled"
|
|
4167
|
-
},
|
|
4167
|
+
}, Ln = {
|
|
4168
4168
|
Real: "Real",
|
|
4169
4169
|
Vault: "Vault"
|
|
4170
|
-
},
|
|
4170
|
+
}, Ee = {
|
|
4171
4171
|
success: "success",
|
|
4172
4172
|
error: "error"
|
|
4173
|
-
}, Ba = String(Number.MAX_SAFE_INTEGER) + 1,
|
|
4173
|
+
}, Ba = String(Number.MAX_SAFE_INTEGER) + 1, gt = {
|
|
4174
4174
|
ArrowDown: "ArrowDown",
|
|
4175
4175
|
ArrowUp: "ArrowUp",
|
|
4176
4176
|
Enter: "Enter",
|
|
4177
4177
|
Escape: "Escape"
|
|
4178
|
+
}, xe = {
|
|
4179
|
+
true: "true"
|
|
4178
4180
|
};
|
|
4179
4181
|
function Sa(e, t) {
|
|
4180
4182
|
let n;
|
|
@@ -4184,7 +4186,7 @@ function Sa(e, t) {
|
|
|
4184
4186
|
}, t);
|
|
4185
4187
|
};
|
|
4186
4188
|
}
|
|
4187
|
-
const
|
|
4189
|
+
const Nn = (e, t = null, n = 2) => {
|
|
4188
4190
|
try {
|
|
4189
4191
|
return JSON.stringify(e, t, n);
|
|
4190
4192
|
} catch (r) {
|
|
@@ -4202,50 +4204,50 @@ function Ha(e) {
|
|
|
4202
4204
|
};
|
|
4203
4205
|
}
|
|
4204
4206
|
function Pa(e) {
|
|
4205
|
-
|
|
4207
|
+
on(e, "svelte-1fe9nk9", ".selectWrapper.svelte-1fe9nk9.svelte-1fe9nk9{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-1fe9nk9.svelte-1fe9nk9{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;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));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}.label.svelte-1fe9nk9.svelte-1fe9nk9{display:flex;align-items:center}.selectDropdown.svelte-1fe9nk9.svelte-1fe9nk9{position:absolute;top:calc(100% + 2px);left:0;right:0;display:flex;flex-direction:column;gap:4px;max-height:200px;overflow-y:auto;scrollbar-width:thin;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-1fe9nk9 li.svelte-1fe9nk9{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-1fe9nk9 li.svelte-1fe9nk9:hover,.selectDropdown.svelte-1fe9nk9 li.active.svelte-1fe9nk9{background:var(--emw--selected-option, var(--emw-w-color-gray-150, #f0f0f0))}.symbol.svelte-1fe9nk9.svelte-1fe9nk9{display:inline-flex;width:1rem;height:1rem;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw-typography, var(--emw-w-color-gray-450, #595959));font-size:var(--emw--font-size-small, 12px);color:var(--emw--button-typography, var(--emw--color-white, #fff))}");
|
|
4206
4208
|
}
|
|
4207
|
-
function
|
|
4209
|
+
function On(e, t, n) {
|
|
4208
4210
|
const r = e.slice();
|
|
4209
4211
|
return r[14] = t[n], r[16] = n, r;
|
|
4210
4212
|
}
|
|
4211
|
-
function
|
|
4213
|
+
function Rn(e) {
|
|
4212
4214
|
let t, n = (
|
|
4213
4215
|
/*selected*/
|
|
4214
4216
|
(e[0]?.symbol || "") + ""
|
|
4215
4217
|
), r;
|
|
4216
4218
|
return {
|
|
4217
4219
|
c() {
|
|
4218
|
-
t =
|
|
4220
|
+
t = E("span"), r = z(n), m(t, "class", "symbol svelte-1fe9nk9");
|
|
4219
4221
|
},
|
|
4220
4222
|
m(i, a) {
|
|
4221
|
-
|
|
4223
|
+
T(i, t, a), y(t, r);
|
|
4222
4224
|
},
|
|
4223
4225
|
p(i, a) {
|
|
4224
4226
|
a & /*selected*/
|
|
4225
4227
|
1 && n !== (n = /*selected*/
|
|
4226
|
-
(i[0]?.symbol || "") + "") &&
|
|
4228
|
+
(i[0]?.symbol || "") + "") && te(r, n);
|
|
4227
4229
|
},
|
|
4228
4230
|
d(i) {
|
|
4229
|
-
i &&
|
|
4231
|
+
i && C(t);
|
|
4230
4232
|
}
|
|
4231
4233
|
};
|
|
4232
4234
|
}
|
|
4233
|
-
function
|
|
4234
|
-
let t, n =
|
|
4235
|
+
function kn(e) {
|
|
4236
|
+
let t, n = xt(
|
|
4235
4237
|
/*options*/
|
|
4236
4238
|
e[1]
|
|
4237
4239
|
), r = [];
|
|
4238
4240
|
for (let i = 0; i < n.length; i += 1)
|
|
4239
|
-
r[i] =
|
|
4241
|
+
r[i] = Dn(On(e, n, i));
|
|
4240
4242
|
return {
|
|
4241
4243
|
c() {
|
|
4242
|
-
t =
|
|
4244
|
+
t = E("ul");
|
|
4243
4245
|
for (let i = 0; i < r.length; i += 1)
|
|
4244
4246
|
r[i].c();
|
|
4245
4247
|
m(t, "class", "selectDropdown svelte-1fe9nk9");
|
|
4246
4248
|
},
|
|
4247
4249
|
m(i, a) {
|
|
4248
|
-
|
|
4250
|
+
T(i, t, a);
|
|
4249
4251
|
for (let o = 0; o < r.length; o += 1)
|
|
4250
4252
|
r[o] && r[o].m(t, null);
|
|
4251
4253
|
e[13](t);
|
|
@@ -4253,14 +4255,14 @@ function Rn(e) {
|
|
|
4253
4255
|
p(i, a) {
|
|
4254
4256
|
if (a & /*options, selected, activeIndex, handleChange*/
|
|
4255
4257
|
547) {
|
|
4256
|
-
n =
|
|
4258
|
+
n = xt(
|
|
4257
4259
|
/*options*/
|
|
4258
4260
|
i[1]
|
|
4259
4261
|
);
|
|
4260
4262
|
let o;
|
|
4261
4263
|
for (o = 0; o < n.length; o += 1) {
|
|
4262
|
-
const u =
|
|
4263
|
-
r[o] ? r[o].p(u, a) : (r[o] =
|
|
4264
|
+
const u = On(i, n, o);
|
|
4265
|
+
r[o] ? r[o].p(u, a) : (r[o] = Dn(u), r[o].c(), r[o].m(t, null));
|
|
4264
4266
|
}
|
|
4265
4267
|
for (; o < r.length; o += 1)
|
|
4266
4268
|
r[o].d(1);
|
|
@@ -4268,25 +4270,25 @@ function Rn(e) {
|
|
|
4268
4270
|
}
|
|
4269
4271
|
},
|
|
4270
4272
|
d(i) {
|
|
4271
|
-
i &&
|
|
4273
|
+
i && C(t), Xn(r, i), e[13](null);
|
|
4272
4274
|
}
|
|
4273
4275
|
};
|
|
4274
4276
|
}
|
|
4275
|
-
function
|
|
4277
|
+
function Dn(e) {
|
|
4276
4278
|
let t, n, r = (
|
|
4277
4279
|
/*option*/
|
|
4278
4280
|
e[14]?.symbol + ""
|
|
4279
4281
|
), i, a, o = (
|
|
4280
4282
|
/*option*/
|
|
4281
4283
|
e[14]?.currency + ""
|
|
4282
|
-
), u, s, l, c,
|
|
4284
|
+
), u, s, l, c, d;
|
|
4283
4285
|
return {
|
|
4284
4286
|
c() {
|
|
4285
|
-
t =
|
|
4287
|
+
t = E("li"), n = E("span"), i = z(r), a = I(), u = z(o), s = I(), m(n, "class", "symbol svelte-1fe9nk9"), m(t, "role", "option"), m(t, "aria-selected", l = /*option*/
|
|
4286
4288
|
e[14]?.currency === /*selected*/
|
|
4287
4289
|
e[0]?.currency || /*index*/
|
|
4288
4290
|
e[16] === /*activeIndex*/
|
|
4289
|
-
e[5]), m(t, "class", "svelte-1fe9nk9"),
|
|
4291
|
+
e[5]), m(t, "class", "svelte-1fe9nk9"), le(
|
|
4290
4292
|
t,
|
|
4291
4293
|
"active",
|
|
4292
4294
|
/*option*/
|
|
@@ -4296,11 +4298,11 @@ function kn(e) {
|
|
|
4296
4298
|
e[5]
|
|
4297
4299
|
);
|
|
4298
4300
|
},
|
|
4299
|
-
m(h,
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4301
|
+
m(h, p) {
|
|
4302
|
+
T(h, t, p), y(t, n), y(n, i), y(t, a), y(t, u), y(t, s), c || (d = [
|
|
4303
|
+
ie(t, "keydown", La),
|
|
4304
|
+
ie(t, "click", function() {
|
|
4305
|
+
ot(
|
|
4304
4306
|
/*handleChange*/
|
|
4305
4307
|
e[9](
|
|
4306
4308
|
/*option*/
|
|
@@ -4317,18 +4319,18 @@ function kn(e) {
|
|
|
4317
4319
|
})
|
|
4318
4320
|
], c = !0);
|
|
4319
4321
|
},
|
|
4320
|
-
p(h,
|
|
4321
|
-
e = h,
|
|
4322
|
+
p(h, p) {
|
|
4323
|
+
e = h, p & /*options*/
|
|
4322
4324
|
2 && r !== (r = /*option*/
|
|
4323
|
-
e[14]?.symbol + "") &&
|
|
4325
|
+
e[14]?.symbol + "") && te(i, r), p & /*options*/
|
|
4324
4326
|
2 && o !== (o = /*option*/
|
|
4325
|
-
e[14]?.currency + "") &&
|
|
4327
|
+
e[14]?.currency + "") && te(u, o), p & /*options, selected, activeIndex*/
|
|
4326
4328
|
35 && l !== (l = /*option*/
|
|
4327
4329
|
e[14]?.currency === /*selected*/
|
|
4328
4330
|
e[0]?.currency || /*index*/
|
|
4329
4331
|
e[16] === /*activeIndex*/
|
|
4330
|
-
e[5]) && m(t, "aria-selected", l),
|
|
4331
|
-
35 &&
|
|
4332
|
+
e[5]) && m(t, "aria-selected", l), p & /*options, selected, activeIndex*/
|
|
4333
|
+
35 && le(
|
|
4332
4334
|
t,
|
|
4333
4335
|
"active",
|
|
4334
4336
|
/*option*/
|
|
@@ -4339,7 +4341,7 @@ function kn(e) {
|
|
|
4339
4341
|
);
|
|
4340
4342
|
},
|
|
4341
4343
|
d(h) {
|
|
4342
|
-
h &&
|
|
4344
|
+
h && C(t), c = !1, ve(d);
|
|
4343
4345
|
}
|
|
4344
4346
|
};
|
|
4345
4347
|
}
|
|
@@ -4348,17 +4350,17 @@ function Ia(e) {
|
|
|
4348
4350
|
/*selected*/
|
|
4349
4351
|
(e[0]?.currency || /*placeholder*/
|
|
4350
4352
|
e[2]) + ""
|
|
4351
|
-
), o, u, s, l, c,
|
|
4353
|
+
), o, u, s, l, c, d, h = (
|
|
4352
4354
|
/*selected*/
|
|
4353
4355
|
e[0]?.symbol && /*withSymbol*/
|
|
4354
|
-
e[
|
|
4355
|
-
),
|
|
4356
|
+
e[3] === xe.true && Rn(e)
|
|
4357
|
+
), p = (
|
|
4356
4358
|
/*open*/
|
|
4357
|
-
e[7] &&
|
|
4359
|
+
e[7] && kn(e)
|
|
4358
4360
|
);
|
|
4359
4361
|
return {
|
|
4360
4362
|
c() {
|
|
4361
|
-
t =
|
|
4363
|
+
t = E("div"), n = E("button"), r = E("span"), h && h.c(), i = I(), o = z(a), u = I(), s = E("span"), s.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>', l = I(), p && p.c(), m(r, "class", "label svelte-1fe9nk9"), m(s, "class", "arrow"), le(
|
|
4362
4364
|
s,
|
|
4363
4365
|
"open",
|
|
4364
4366
|
/*open*/
|
|
@@ -4369,22 +4371,22 @@ function Ia(e) {
|
|
|
4369
4371
|
/*open*/
|
|
4370
4372
|
e[7]
|
|
4371
4373
|
), m(n, "aria-controls", "custom-select"), m(n, "tabindex", "0"), n.disabled = /*disabled*/
|
|
4372
|
-
e[
|
|
4374
|
+
e[4], m(t, "class", "selectWrapper svelte-1fe9nk9");
|
|
4373
4375
|
},
|
|
4374
4376
|
m(v, b) {
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
+
T(v, t, b), y(t, n), y(n, r), h && h.m(r, null), y(r, i), y(r, o), y(n, u), y(n, s), y(t, l), p && p.m(t, null), c || (d = [
|
|
4378
|
+
ie(
|
|
4377
4379
|
n,
|
|
4378
4380
|
"keydown",
|
|
4379
4381
|
/*handleKeyDown*/
|
|
4380
4382
|
e[11]
|
|
4381
4383
|
),
|
|
4382
|
-
|
|
4384
|
+
ie(n, "click", wr(
|
|
4383
4385
|
/*handleToggleDropdown*/
|
|
4384
4386
|
e[8]
|
|
4385
4387
|
)),
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
+
vr(Ha.call(null, t)),
|
|
4389
|
+
ie(
|
|
4388
4390
|
t,
|
|
4389
4391
|
"outclick",
|
|
4390
4392
|
/*handleOutClick*/
|
|
@@ -4395,11 +4397,11 @@ function Ia(e) {
|
|
|
4395
4397
|
p(v, [b]) {
|
|
4396
4398
|
/*selected*/
|
|
4397
4399
|
v[0]?.symbol && /*withSymbol*/
|
|
4398
|
-
v[
|
|
4400
|
+
v[3] === xe.true ? h ? h.p(v, b) : (h = Rn(v), h.c(), h.m(r, i)) : h && (h.d(1), h = null), b & /*selected, placeholder*/
|
|
4399
4401
|
5 && a !== (a = /*selected*/
|
|
4400
4402
|
(v[0]?.currency || /*placeholder*/
|
|
4401
|
-
v[2]) + "") &&
|
|
4402
|
-
128 &&
|
|
4403
|
+
v[2]) + "") && te(o, a), b & /*open*/
|
|
4404
|
+
128 && le(
|
|
4403
4405
|
s,
|
|
4404
4406
|
"open",
|
|
4405
4407
|
/*open*/
|
|
@@ -4411,37 +4413,37 @@ function Ia(e) {
|
|
|
4411
4413
|
/*open*/
|
|
4412
4414
|
v[7]
|
|
4413
4415
|
), b & /*disabled*/
|
|
4414
|
-
|
|
4415
|
-
v[
|
|
4416
|
-
v[7] ?
|
|
4416
|
+
16 && (n.disabled = /*disabled*/
|
|
4417
|
+
v[4]), /*open*/
|
|
4418
|
+
v[7] ? p ? p.p(v, b) : (p = kn(v), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
|
|
4417
4419
|
},
|
|
4418
|
-
i:
|
|
4419
|
-
o:
|
|
4420
|
+
i: S,
|
|
4421
|
+
o: S,
|
|
4420
4422
|
d(v) {
|
|
4421
|
-
v &&
|
|
4423
|
+
v && C(t), h && h.d(), p && p.d(), c = !1, ve(d);
|
|
4422
4424
|
}
|
|
4423
4425
|
};
|
|
4424
4426
|
}
|
|
4425
4427
|
const La = (e) => e.preventDefault();
|
|
4426
4428
|
function Na(e, t, n) {
|
|
4427
|
-
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: a = R("select") } = t, {
|
|
4428
|
-
} } = t, l = -1, c,
|
|
4429
|
+
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: a = R("select") } = t, { withSymbol: o = "true" } = t, { disabled: u = !1 } = t, { onChange: s = () => {
|
|
4430
|
+
} } = t, l = -1, c, d = !1;
|
|
4429
4431
|
const h = () => {
|
|
4430
|
-
r.length !== 0 && (n(7,
|
|
4431
|
-
},
|
|
4432
|
-
n(7,
|
|
4432
|
+
r.length !== 0 && (n(7, d = !d), d && (n(5, l = r.findIndex((_) => _?.currency === i?.currency)), setTimeout(() => c?.focus(), 0)));
|
|
4433
|
+
}, p = (_, O) => () => {
|
|
4434
|
+
n(7, d = !1), n(0, i = _), s && typeof s == "function" && s(_, O);
|
|
4433
4435
|
}, v = () => {
|
|
4434
|
-
n(7,
|
|
4435
|
-
}, b = (
|
|
4436
|
-
|
|
4436
|
+
n(7, d = !1);
|
|
4437
|
+
}, b = (_) => {
|
|
4438
|
+
d && (_.key === gt.ArrowDown ? (_.preventDefault(), n(5, l = (l + 1) % r.length)) : _.key === gt.ArrowUp ? (_.preventDefault(), n(5, l = (l - 1 + r.length) % r.length)) : _.key === gt.Enter ? (_.preventDefault(), p(i, l)()) : _.key === gt.Escape && n(7, d = !1));
|
|
4437
4439
|
};
|
|
4438
|
-
function
|
|
4439
|
-
|
|
4440
|
-
c =
|
|
4440
|
+
function N(_) {
|
|
4441
|
+
Ue[_ ? "unshift" : "push"](() => {
|
|
4442
|
+
c = _, n(6, c);
|
|
4441
4443
|
});
|
|
4442
4444
|
}
|
|
4443
|
-
return e.$$set = (
|
|
4444
|
-
"options" in
|
|
4445
|
+
return e.$$set = (_) => {
|
|
4446
|
+
"options" in _ && n(1, r = _.options), "selected" in _ && n(0, i = _.selected), "placeholder" in _ && n(2, a = _.placeholder), "withSymbol" in _ && n(3, o = _.withSymbol), "disabled" in _ && n(4, u = _.disabled), "onChange" in _ && n(12, s = _.onChange);
|
|
4445
4447
|
}, [
|
|
4446
4448
|
i,
|
|
4447
4449
|
r,
|
|
@@ -4450,29 +4452,29 @@ function Na(e, t, n) {
|
|
|
4450
4452
|
u,
|
|
4451
4453
|
l,
|
|
4452
4454
|
c,
|
|
4453
|
-
f,
|
|
4454
|
-
h,
|
|
4455
4455
|
d,
|
|
4456
|
+
h,
|
|
4457
|
+
p,
|
|
4456
4458
|
v,
|
|
4457
4459
|
b,
|
|
4458
4460
|
s,
|
|
4459
|
-
|
|
4461
|
+
N
|
|
4460
4462
|
];
|
|
4461
4463
|
}
|
|
4462
|
-
class
|
|
4464
|
+
class an extends un {
|
|
4463
4465
|
constructor(t) {
|
|
4464
|
-
super(),
|
|
4466
|
+
super(), sn(
|
|
4465
4467
|
this,
|
|
4466
4468
|
t,
|
|
4467
4469
|
Na,
|
|
4468
4470
|
Ia,
|
|
4469
|
-
|
|
4471
|
+
Tt,
|
|
4470
4472
|
{
|
|
4471
4473
|
options: 1,
|
|
4472
4474
|
selected: 0,
|
|
4473
4475
|
placeholder: 2,
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
+
withSymbol: 3,
|
|
4477
|
+
disabled: 4,
|
|
4476
4478
|
onChange: 12
|
|
4477
4479
|
},
|
|
4478
4480
|
Pa
|
|
@@ -4482,363 +4484,90 @@ class rn extends ln {
|
|
|
4482
4484
|
return this.$$.ctx[1];
|
|
4483
4485
|
}
|
|
4484
4486
|
set options(t) {
|
|
4485
|
-
this.$$set({ options: t }),
|
|
4487
|
+
this.$$set({ options: t }), G();
|
|
4486
4488
|
}
|
|
4487
4489
|
get selected() {
|
|
4488
4490
|
return this.$$.ctx[0];
|
|
4489
4491
|
}
|
|
4490
4492
|
set selected(t) {
|
|
4491
|
-
this.$$set({ selected: t }),
|
|
4493
|
+
this.$$set({ selected: t }), G();
|
|
4492
4494
|
}
|
|
4493
4495
|
get placeholder() {
|
|
4494
4496
|
return this.$$.ctx[2];
|
|
4495
4497
|
}
|
|
4496
4498
|
set placeholder(t) {
|
|
4497
|
-
this.$$set({ placeholder: t }),
|
|
4499
|
+
this.$$set({ placeholder: t }), G();
|
|
4498
4500
|
}
|
|
4499
|
-
get
|
|
4501
|
+
get withSymbol() {
|
|
4500
4502
|
return this.$$.ctx[3];
|
|
4501
4503
|
}
|
|
4502
|
-
set
|
|
4503
|
-
this.$$set({
|
|
4504
|
+
set withSymbol(t) {
|
|
4505
|
+
this.$$set({ withSymbol: t }), G();
|
|
4504
4506
|
}
|
|
4505
|
-
get
|
|
4507
|
+
get disabled() {
|
|
4506
4508
|
return this.$$.ctx[4];
|
|
4507
4509
|
}
|
|
4508
|
-
set
|
|
4509
|
-
this.$$set({
|
|
4510
|
+
set disabled(t) {
|
|
4511
|
+
this.$$set({ disabled: t }), G();
|
|
4510
4512
|
}
|
|
4511
4513
|
get onChange() {
|
|
4512
4514
|
return this.$$.ctx[12];
|
|
4513
4515
|
}
|
|
4514
4516
|
set onChange(t) {
|
|
4515
|
-
this.$$set({ onChange: t }),
|
|
4517
|
+
this.$$set({ onChange: t }), G();
|
|
4516
4518
|
}
|
|
4517
4519
|
}
|
|
4518
|
-
|
|
4520
|
+
ln(an, { options: {}, selected: {}, placeholder: {}, withSymbol: {}, disabled: { type: "Boolean" }, onChange: {} }, [], [], !0);
|
|
4519
4521
|
function Oa(e) {
|
|
4520
|
-
|
|
4522
|
+
on(e, "svelte-2fhtvy", ".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}");
|
|
4521
4523
|
}
|
|
4522
4524
|
function Ra(e) {
|
|
4523
4525
|
let t, n, r = R("balanceUnavailable") + "", i;
|
|
4524
4526
|
return {
|
|
4525
4527
|
c() {
|
|
4526
|
-
t =
|
|
4528
|
+
t = E("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 = I(), i = z(r), m(t, "class", "warningIcon svelte-2fhtvy");
|
|
4527
4529
|
},
|
|
4528
4530
|
m(a, o) {
|
|
4529
|
-
|
|
4531
|
+
T(a, t, o), T(a, n, o), T(a, i, o);
|
|
4530
4532
|
},
|
|
4531
|
-
p:
|
|
4532
|
-
i:
|
|
4533
|
-
o:
|
|
4533
|
+
p: S,
|
|
4534
|
+
i: S,
|
|
4535
|
+
o: S,
|
|
4534
4536
|
d(a) {
|
|
4535
|
-
a && (
|
|
4537
|
+
a && (C(t), C(n), C(i));
|
|
4536
4538
|
}
|
|
4537
4539
|
};
|
|
4538
4540
|
}
|
|
4539
|
-
class
|
|
4541
|
+
class Lt extends un {
|
|
4540
4542
|
constructor(t) {
|
|
4541
|
-
super(),
|
|
4543
|
+
super(), sn(this, t, null, Ra, Tt, {}, Oa);
|
|
4542
4544
|
}
|
|
4543
4545
|
}
|
|
4544
|
-
|
|
4546
|
+
ln(Lt, {}, [], [], !0);
|
|
4545
4547
|
function ka(e) {
|
|
4546
|
-
an(e, "svelte-vp2pzr", '@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, var(--emw--color-gray-450, #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}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.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, var(--emw--color-red, #ed0909))}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, var(--emw--color-red, #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, var(--emw--color-red, #FF2424))}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, var(--emw--color-primary, #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, var(--emw--color-white, #fff))}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--typography, var(--emw--color-gray-450, #595959));border:2px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, var(--emw--color-white, #fff))}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, var(--emw--color-gray-450, #595959))}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, var(--emw--color-gray-450, #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}');
|
|
4548
|
+
on(e, "svelte-vp2pzr", '@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, var(--emw--color-gray-450, #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}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.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, var(--emw--color-red, #ed0909))}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, var(--emw--color-red, #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, var(--emw--color-red, #FF2424))}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, var(--emw--color-primary, #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, var(--emw--color-white, #fff))}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--typography, var(--emw--color-gray-450, #595959));border:2px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, var(--emw--color-white, #fff))}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, var(--emw--color-gray-450, #595959))}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, var(--emw--color-gray-450, #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}');
|
|
4547
4549
|
}
|
|
4548
|
-
function
|
|
4550
|
+
function Mn(e, t, n) {
|
|
4549
4551
|
const r = e.slice();
|
|
4550
|
-
return r[
|
|
4551
|
-
}
|
|
4552
|
-
function Mn(e) {
|
|
4553
|
-
let t, n, r, i, a, o, u, s, l, c, f, h, d, v, b, L, E, O, I, ie, F, te, ae, se, X, he, Oe, le, fe, Ee, Z, Y, de, Je, xe, Re, ut, ke, qe, ne, we = R(
|
|
4554
|
-
/*fetchResponse*/
|
|
4555
|
-
e[12]?.message || ""
|
|
4556
|
-
) + "", Pe, ge, be, De, J, Ae = R("exchange") + "", ct, ye, q, et, tt, Q = (
|
|
4557
|
-
/*showclosebutton*/
|
|
4558
|
-
e[3] && Fn(e)
|
|
4559
|
-
), V = (
|
|
4560
|
-
/*showtotalbalance*/
|
|
4561
|
-
e[2] && Un(e)
|
|
4562
|
-
);
|
|
4563
|
-
function Rt(g) {
|
|
4564
|
-
e[39](g);
|
|
4565
|
-
}
|
|
4566
|
-
let ht = {
|
|
4567
|
-
withSymbol: (
|
|
4568
|
-
/*showcurrencysymbol*/
|
|
4569
|
-
e[4]
|
|
4570
|
-
),
|
|
4571
|
-
disabled: !/*isBalanceFetched*/
|
|
4572
|
-
e[16] || !/*isCurrenciesFetched*/
|
|
4573
|
-
e[17],
|
|
4574
|
-
options: (
|
|
4575
|
-
/*optionsFrom*/
|
|
4576
|
-
e[21]
|
|
4577
|
-
),
|
|
4578
|
-
onChange: (
|
|
4579
|
-
/*checkWalletExchangeDebounced*/
|
|
4580
|
-
e[26]
|
|
4581
|
-
)
|
|
4582
|
-
};
|
|
4583
|
-
/*selectedCurrencyFrom*/
|
|
4584
|
-
e[5] !== void 0 && (ht.selected = /*selectedCurrencyFrom*/
|
|
4585
|
-
e[5]), b = new rn({ props: ht }), Ge.push(() => pn(b, "selected", Rt));
|
|
4586
|
-
const ft = [Ga, Va], ue = [];
|
|
4587
|
-
function dt(g, S) {
|
|
4588
|
-
return !/*isBalanceFetched*/
|
|
4589
|
-
g[16] || !/*isCurrenciesFetched*/
|
|
4590
|
-
g[17] ? 0 : 1;
|
|
4591
|
-
}
|
|
4592
|
-
O = dt(e), I = ue[O] = ft[O](e);
|
|
4593
|
-
function kt(g) {
|
|
4594
|
-
e[41](g);
|
|
4595
|
-
}
|
|
4596
|
-
let pt = {
|
|
4597
|
-
withSymbol: (
|
|
4598
|
-
/*showcurrencysymbol*/
|
|
4599
|
-
e[4]
|
|
4600
|
-
),
|
|
4601
|
-
disabled: !/*session*/
|
|
4602
|
-
e[0] || !!/*validationError*/
|
|
4603
|
-
e[13] || !/*isBalanceFetched*/
|
|
4604
|
-
e[16] || !/*isCurrenciesFetched*/
|
|
4605
|
-
e[17],
|
|
4606
|
-
options: (
|
|
4607
|
-
/*optionsTo*/
|
|
4608
|
-
e[22]
|
|
4609
|
-
),
|
|
4610
|
-
onChange: (
|
|
4611
|
-
/*checkWalletExchangeDebounced*/
|
|
4612
|
-
e[26]
|
|
4613
|
-
)
|
|
4614
|
-
};
|
|
4615
|
-
/*selectedCurrencyTo*/
|
|
4616
|
-
e[6] !== void 0 && (pt.selected = /*selectedCurrencyTo*/
|
|
4617
|
-
e[6]), le = new rn({ props: pt }), Ge.push(() => pn(le, "selected", kt));
|
|
4618
|
-
const mt = [Wa, Xa], pe = [];
|
|
4619
|
-
function p(g, S) {
|
|
4620
|
-
return !/*isBalanceFetched*/
|
|
4621
|
-
g[16] || !/*isCurrenciesFetched*/
|
|
4622
|
-
g[17] ? 0 : 1;
|
|
4623
|
-
}
|
|
4624
|
-
Z = p(e), Y = pe[Z] = mt[Z](e);
|
|
4625
|
-
let _ = (
|
|
4626
|
-
/*showvaults*/
|
|
4627
|
-
e[1] && Vn(e)
|
|
4628
|
-
);
|
|
4629
|
-
function N(g, S) {
|
|
4630
|
-
return (
|
|
4631
|
-
/*fetchResponse*/
|
|
4632
|
-
g[12]?.source === z.CheckWalletExchangeError ? Ka : Qa
|
|
4633
|
-
);
|
|
4634
|
-
}
|
|
4635
|
-
let w = N(e), k = w(e);
|
|
4636
|
-
return {
|
|
4637
|
-
c() {
|
|
4638
|
-
t = x("div"), Q && Q.c(), n = P(), r = x("div"), i = x("h1"), i.textContent = `${R("vaultExchange")}`, a = P(), V && V.c(), o = P(), u = x("div"), s = x("div"), l = x("p"), l.textContent = `${R("exchangeFrom")}`, c = P(), f = x("div"), h = x("input"), v = P(), at(b.$$.fragment), E = P(), I.c(), ie = P(), F = x("div"), te = x("p"), te.textContent = `${R("exchangeTo")}`, ae = P(), se = x("div"), X = x("input"), Oe = P(), at(le.$$.fragment), Ee = P(), Y.c(), de = P(), _ && _.c(), Je = P(), xe = x("div"), Re = x("span"), Re.textContent = `${R("feesIncluded")}`, ut = P(), ke = x("span"), k.c(), qe = P(), ne = x("div"), Pe = P(), ge = x("div"), be = x("button"), be.textContent = `${R("reset")}`, De = P(), J = x("button"), ct = W(Ae), m(i, "class", "headerTitle"), m(r, "class", "headerContainer"), m(l, "class", "exchangeHeader"), m(h, "id", "senderInput"), h.disabled = d = !/*session*/
|
|
4639
|
-
e[0] || !/*isBalanceFetched*/
|
|
4640
|
-
e[16] || !/*isCurrenciesFetched*/
|
|
4641
|
-
e[17], m(h, "placeholder", R("debitPlaceHolder")), m(h, "class", "exchangeInput"), m(h, "type", "number"), m(h, "aria-label", "Enter exchange amount"), m(h, "inputmode", "decimal"), m(h, "step", "0.000000000000000001"), m(h, "min", "0"), m(f, "class", "flexingContainerRow"), m(s, "class", "containerExchangeFrom exchangeContainer"), m(te, "class", "exchangeHeader"), m(X, "id", "destinationInput"), X.disabled = he = !/*session*/
|
|
4642
|
-
e[0] || !/*isBalanceFetched*/
|
|
4643
|
-
e[16] || !/*isCurrenciesFetched*/
|
|
4644
|
-
e[17], m(X, "placeholder", R("creditPlaceHolder")), m(X, "class", "exchangeInput"), m(X, "type", "number"), X.readOnly = !0, m(X, "min", "0"), m(se, "class", "flexingContainerRow"), m(F, "class", "containerExchangeTo exchangeContainer"), m(u, "class", "exchangesContainer"), m(Re, "class", "feesLabel"), m(xe, "class", "feesContainer"), m(ne, "class", "notificationsContainer"), oe(
|
|
4645
|
-
ne,
|
|
4646
|
-
"error",
|
|
4647
|
-
/*fetchResponse*/
|
|
4648
|
-
e[12]?.type === "error"
|
|
4649
|
-
), oe(
|
|
4650
|
-
ne,
|
|
4651
|
-
"success",
|
|
4652
|
-
/*fetchResponse*/
|
|
4653
|
-
e[12]?.type === "success"
|
|
4654
|
-
), m(be, "class", "resetButton"), m(be, "type", "button"), m(J, "type", "button"), m(J, "class", "exchangeButton"), J.disabled = ye = /*isExchangeDisabled*/
|
|
4655
|
-
e[14] || /*isExchangePending*/
|
|
4656
|
-
e[18] || /*inputExchangeFrom*/
|
|
4657
|
-
e[8] === 0 && !/*selectedCurrencyFrom*/
|
|
4658
|
-
e[5]?.amount, oe(
|
|
4659
|
-
J,
|
|
4660
|
-
"disabled",
|
|
4661
|
-
/*isExchangeDisabled*/
|
|
4662
|
-
e[14] || /*isExchangePending*/
|
|
4663
|
-
e[18]
|
|
4664
|
-
), oe(
|
|
4665
|
-
J,
|
|
4666
|
-
"pending",
|
|
4667
|
-
/*isExchangePending*/
|
|
4668
|
-
e[18]
|
|
4669
|
-
), m(ge, "class", "actionsContainer"), m(t, "class", "playerAccountVault");
|
|
4670
|
-
},
|
|
4671
|
-
m(g, S) {
|
|
4672
|
-
C(g, t, S), Q && Q.m(t, null), y(t, n), y(t, r), y(r, i), y(r, a), V && V.m(r, null), y(t, o), y(t, u), y(u, s), y(s, l), y(s, c), y(s, f), y(f, h), gt(
|
|
4673
|
-
h,
|
|
4674
|
-
/*inputExchangeFrom*/
|
|
4675
|
-
e[8]
|
|
4676
|
-
), y(f, v), $e(b, f, null), y(s, E), ue[O].m(s, null), y(u, ie), y(u, F), y(F, te), y(F, ae), y(F, se), y(se, X), gt(
|
|
4677
|
-
X,
|
|
4678
|
-
/*inputExchangeTo*/
|
|
4679
|
-
e[9]
|
|
4680
|
-
), y(se, Oe), $e(le, se, null), y(F, Ee), pe[Z].m(F, null), y(t, de), _ && _.m(t, null), y(t, Je), y(t, xe), y(xe, Re), y(xe, ut), y(xe, ke), k.m(ke, null), y(t, qe), y(t, ne), ne.innerHTML = we, y(t, Pe), y(t, ge), y(ge, be), y(ge, De), y(ge, J), y(J, ct), e[42](t), q = !0, et || (tt = [
|
|
4681
|
-
re(
|
|
4682
|
-
h,
|
|
4683
|
-
"input",
|
|
4684
|
-
/*input0_input_handler*/
|
|
4685
|
-
e[38]
|
|
4686
|
-
),
|
|
4687
|
-
re(
|
|
4688
|
-
h,
|
|
4689
|
-
"input",
|
|
4690
|
-
/*handleInputChange*/
|
|
4691
|
-
e[27]
|
|
4692
|
-
),
|
|
4693
|
-
re(
|
|
4694
|
-
h,
|
|
4695
|
-
"beforeinput",
|
|
4696
|
-
/*handleBeforeInput*/
|
|
4697
|
-
e[28]
|
|
4698
|
-
),
|
|
4699
|
-
re(
|
|
4700
|
-
X,
|
|
4701
|
-
"input",
|
|
4702
|
-
/*input1_input_handler*/
|
|
4703
|
-
e[40]
|
|
4704
|
-
),
|
|
4705
|
-
re(
|
|
4706
|
-
be,
|
|
4707
|
-
"click",
|
|
4708
|
-
/*handleResetToDefault*/
|
|
4709
|
-
e[25]
|
|
4710
|
-
),
|
|
4711
|
-
re(
|
|
4712
|
-
J,
|
|
4713
|
-
"click",
|
|
4714
|
-
/*handleExchange*/
|
|
4715
|
-
e[29]
|
|
4716
|
-
)
|
|
4717
|
-
], et = !0);
|
|
4718
|
-
},
|
|
4719
|
-
p(g, S) {
|
|
4720
|
-
/*showclosebutton*/
|
|
4721
|
-
g[3] ? Q ? Q.p(g, S) : (Q = Fn(g), Q.c(), Q.m(t, n)) : Q && (Q.d(1), Q = null), /*showtotalbalance*/
|
|
4722
|
-
g[2] ? V ? (V.p(g, S), S[0] & /*showtotalbalance*/
|
|
4723
|
-
4 && M(V, 1)) : (V = Un(g), V.c(), M(V, 1), V.m(r, null)) : V && (Be(), G(V, 1, 1, () => {
|
|
4724
|
-
V = null;
|
|
4725
|
-
}), Se()), (!q || S[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
4726
|
-
196609 && d !== (d = !/*session*/
|
|
4727
|
-
g[0] || !/*isBalanceFetched*/
|
|
4728
|
-
g[16] || !/*isCurrenciesFetched*/
|
|
4729
|
-
g[17])) && (h.disabled = d), S[0] & /*inputExchangeFrom*/
|
|
4730
|
-
256 && wt(h.value) !== /*inputExchangeFrom*/
|
|
4731
|
-
g[8] && gt(
|
|
4732
|
-
h,
|
|
4733
|
-
/*inputExchangeFrom*/
|
|
4734
|
-
g[8]
|
|
4735
|
-
);
|
|
4736
|
-
const Ie = {};
|
|
4737
|
-
S[0] & /*showcurrencysymbol*/
|
|
4738
|
-
16 && (Ie.withSymbol = /*showcurrencysymbol*/
|
|
4739
|
-
g[4]), S[0] & /*isBalanceFetched, isCurrenciesFetched*/
|
|
4740
|
-
196608 && (Ie.disabled = !/*isBalanceFetched*/
|
|
4741
|
-
g[16] || !/*isCurrenciesFetched*/
|
|
4742
|
-
g[17]), S[0] & /*optionsFrom*/
|
|
4743
|
-
2097152 && (Ie.options = /*optionsFrom*/
|
|
4744
|
-
g[21]), !L && S[0] & /*selectedCurrencyFrom*/
|
|
4745
|
-
32 && (L = !0, Ie.selected = /*selectedCurrencyFrom*/
|
|
4746
|
-
g[5], dn(() => L = !1)), b.$set(Ie);
|
|
4747
|
-
let $ = O;
|
|
4748
|
-
O = dt(g), O === $ ? ue[O].p(g, S) : (Be(), G(ue[$], 1, 1, () => {
|
|
4749
|
-
ue[$] = null;
|
|
4750
|
-
}), Se(), I = ue[O], I ? I.p(g, S) : (I = ue[O] = ft[O](g), I.c()), M(I, 1), I.m(s, null)), (!q || S[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
4751
|
-
196609 && he !== (he = !/*session*/
|
|
4752
|
-
g[0] || !/*isBalanceFetched*/
|
|
4753
|
-
g[16] || !/*isCurrenciesFetched*/
|
|
4754
|
-
g[17])) && (X.disabled = he), S[0] & /*inputExchangeTo*/
|
|
4755
|
-
512 && wt(X.value) !== /*inputExchangeTo*/
|
|
4756
|
-
g[9] && gt(
|
|
4757
|
-
X,
|
|
4758
|
-
/*inputExchangeTo*/
|
|
4759
|
-
g[9]
|
|
4760
|
-
);
|
|
4761
|
-
const ce = {};
|
|
4762
|
-
S[0] & /*showcurrencysymbol*/
|
|
4763
|
-
16 && (ce.withSymbol = /*showcurrencysymbol*/
|
|
4764
|
-
g[4]), S[0] & /*session, validationError, isBalanceFetched, isCurrenciesFetched*/
|
|
4765
|
-
204801 && (ce.disabled = !/*session*/
|
|
4766
|
-
g[0] || !!/*validationError*/
|
|
4767
|
-
g[13] || !/*isBalanceFetched*/
|
|
4768
|
-
g[16] || !/*isCurrenciesFetched*/
|
|
4769
|
-
g[17]), S[0] & /*optionsTo*/
|
|
4770
|
-
4194304 && (ce.options = /*optionsTo*/
|
|
4771
|
-
g[22]), !fe && S[0] & /*selectedCurrencyTo*/
|
|
4772
|
-
64 && (fe = !0, ce.selected = /*selectedCurrencyTo*/
|
|
4773
|
-
g[6], dn(() => fe = !1)), le.$set(ce);
|
|
4774
|
-
let ve = Z;
|
|
4775
|
-
Z = p(g), Z === ve ? pe[Z].p(g, S) : (Be(), G(pe[ve], 1, 1, () => {
|
|
4776
|
-
pe[ve] = null;
|
|
4777
|
-
}), Se(), Y = pe[Z], Y ? Y.p(g, S) : (Y = pe[Z] = mt[Z](g), Y.c()), M(Y, 1), Y.m(F, null)), /*showvaults*/
|
|
4778
|
-
g[1] ? _ ? _.p(g, S) : (_ = Vn(g), _.c(), _.m(t, Je)) : _ && (_.d(1), _ = null), w === (w = N(g)) && k ? k.p(g, S) : (k.d(1), k = w(g), k && (k.c(), k.m(ke, null))), (!q || S[0] & /*fetchResponse*/
|
|
4779
|
-
4096) && we !== (we = R(
|
|
4780
|
-
/*fetchResponse*/
|
|
4781
|
-
g[12]?.message || ""
|
|
4782
|
-
) + "") && (ne.innerHTML = we), (!q || S[0] & /*fetchResponse*/
|
|
4783
|
-
4096) && oe(
|
|
4784
|
-
ne,
|
|
4785
|
-
"error",
|
|
4786
|
-
/*fetchResponse*/
|
|
4787
|
-
g[12]?.type === "error"
|
|
4788
|
-
), (!q || S[0] & /*fetchResponse*/
|
|
4789
|
-
4096) && oe(
|
|
4790
|
-
ne,
|
|
4791
|
-
"success",
|
|
4792
|
-
/*fetchResponse*/
|
|
4793
|
-
g[12]?.type === "success"
|
|
4794
|
-
), (!q || S[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
|
|
4795
|
-
278816 && ye !== (ye = /*isExchangeDisabled*/
|
|
4796
|
-
g[14] || /*isExchangePending*/
|
|
4797
|
-
g[18] || /*inputExchangeFrom*/
|
|
4798
|
-
g[8] === 0 && !/*selectedCurrencyFrom*/
|
|
4799
|
-
g[5]?.amount)) && (J.disabled = ye), (!q || S[0] & /*isExchangeDisabled, isExchangePending*/
|
|
4800
|
-
278528) && oe(
|
|
4801
|
-
J,
|
|
4802
|
-
"disabled",
|
|
4803
|
-
/*isExchangeDisabled*/
|
|
4804
|
-
g[14] || /*isExchangePending*/
|
|
4805
|
-
g[18]
|
|
4806
|
-
), (!q || S[0] & /*isExchangePending*/
|
|
4807
|
-
262144) && oe(
|
|
4808
|
-
J,
|
|
4809
|
-
"pending",
|
|
4810
|
-
/*isExchangePending*/
|
|
4811
|
-
g[18]
|
|
4812
|
-
);
|
|
4813
|
-
},
|
|
4814
|
-
i(g) {
|
|
4815
|
-
q || (M(V), M(b.$$.fragment, g), M(I), M(le.$$.fragment, g), M(Y), q = !0);
|
|
4816
|
-
},
|
|
4817
|
-
o(g) {
|
|
4818
|
-
G(V), G(b.$$.fragment, g), G(I), G(le.$$.fragment, g), G(Y), q = !1;
|
|
4819
|
-
},
|
|
4820
|
-
d(g) {
|
|
4821
|
-
g && A(t), Q && Q.d(), V && V.d(), je(b), ue[O].d(), je(le), pe[Z].d(), _ && _.d(), k.d(), e[42](null), et = !1, _e(tt);
|
|
4822
|
-
}
|
|
4823
|
-
};
|
|
4552
|
+
return r[60] = t[n], r;
|
|
4824
4553
|
}
|
|
4825
4554
|
function Fn(e) {
|
|
4826
4555
|
let t, n, r;
|
|
4827
4556
|
return {
|
|
4828
4557
|
c() {
|
|
4829
|
-
t =
|
|
4558
|
+
t = E("button"), t.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13.414 12l4.95-4.95-1.414-1.414-4.95 4.95-4.95-4.95L5.636 7.05l4.95 4.95-4.95 4.95 1.414 1.414 4.95-4.95 4.95 4.95 1.414-1.414-4.95-4.95z"></path></svg>', m(t, "type", "button"), m(t, "class", "closeButton");
|
|
4830
4559
|
},
|
|
4831
4560
|
m(i, a) {
|
|
4832
|
-
|
|
4561
|
+
T(i, t, a), n || (r = ie(
|
|
4833
4562
|
t,
|
|
4834
4563
|
"click",
|
|
4835
4564
|
/*handleCloseWidget*/
|
|
4836
|
-
e[
|
|
4565
|
+
e[23]
|
|
4837
4566
|
), n = !0);
|
|
4838
4567
|
},
|
|
4839
|
-
p:
|
|
4568
|
+
p: S,
|
|
4840
4569
|
d(i) {
|
|
4841
|
-
i &&
|
|
4570
|
+
i && C(t), n = !1, r();
|
|
4842
4571
|
}
|
|
4843
4572
|
};
|
|
4844
4573
|
}
|
|
@@ -4852,25 +4581,25 @@ function Un(e) {
|
|
|
4852
4581
|
}
|
|
4853
4582
|
return t = u(e), n = o[t] = a[t](e), {
|
|
4854
4583
|
c() {
|
|
4855
|
-
n.c(), r =
|
|
4584
|
+
n.c(), r = xr();
|
|
4856
4585
|
},
|
|
4857
4586
|
m(s, l) {
|
|
4858
|
-
o[t].m(s, l),
|
|
4587
|
+
o[t].m(s, l), T(s, r, l), i = !0;
|
|
4859
4588
|
},
|
|
4860
4589
|
p(s, l) {
|
|
4861
4590
|
let c = t;
|
|
4862
|
-
t = u(s), t === c ? o[t].p(s, l) : (
|
|
4591
|
+
t = u(s), t === c ? o[t].p(s, l) : (Se(), W(o[c], 1, 1, () => {
|
|
4863
4592
|
o[c] = null;
|
|
4864
|
-
}),
|
|
4593
|
+
}), He(), n = o[t], n ? n.p(s, l) : (n = o[t] = a[t](s), n.c()), U(n, 1), n.m(r.parentNode, r));
|
|
4865
4594
|
},
|
|
4866
4595
|
i(s) {
|
|
4867
|
-
i || (
|
|
4596
|
+
i || (U(n), i = !0);
|
|
4868
4597
|
},
|
|
4869
4598
|
o(s) {
|
|
4870
|
-
|
|
4599
|
+
W(n), i = !1;
|
|
4871
4600
|
},
|
|
4872
4601
|
d(s) {
|
|
4873
|
-
s &&
|
|
4602
|
+
s && C(r), o[t].d(s);
|
|
4874
4603
|
}
|
|
4875
4604
|
};
|
|
4876
4605
|
}
|
|
@@ -4880,30 +4609,30 @@ function Da(e) {
|
|
|
4880
4609
|
function u(s, l) {
|
|
4881
4610
|
return (
|
|
4882
4611
|
/*fetchResponse*/
|
|
4883
|
-
s[12]?.source ===
|
|
4612
|
+
s[12]?.source === K.BalanceError ? 0 : 1
|
|
4884
4613
|
);
|
|
4885
4614
|
}
|
|
4886
4615
|
return n = u(e), r = o[n] = a[n](e), {
|
|
4887
4616
|
c() {
|
|
4888
|
-
t =
|
|
4617
|
+
t = E("div"), r.c(), m(t, "class", "headerPlayerBalance amountContainer");
|
|
4889
4618
|
},
|
|
4890
4619
|
m(s, l) {
|
|
4891
|
-
|
|
4620
|
+
T(s, t, l), o[n].m(t, null), i = !0;
|
|
4892
4621
|
},
|
|
4893
4622
|
p(s, l) {
|
|
4894
4623
|
let c = n;
|
|
4895
|
-
n = u(s), n === c ? o[n].p(s, l) : (
|
|
4624
|
+
n = u(s), n === c ? o[n].p(s, l) : (Se(), W(o[c], 1, 1, () => {
|
|
4896
4625
|
o[c] = null;
|
|
4897
|
-
}),
|
|
4626
|
+
}), He(), r = o[n], r ? r.p(s, l) : (r = o[n] = a[n](s), r.c()), U(r, 1), r.m(t, null));
|
|
4898
4627
|
},
|
|
4899
4628
|
i(s) {
|
|
4900
|
-
i || (
|
|
4629
|
+
i || (U(r), i = !0);
|
|
4901
4630
|
},
|
|
4902
4631
|
o(s) {
|
|
4903
|
-
|
|
4632
|
+
W(r), i = !1;
|
|
4904
4633
|
},
|
|
4905
4634
|
d(s) {
|
|
4906
|
-
s &&
|
|
4635
|
+
s && C(t), o[n].d();
|
|
4907
4636
|
}
|
|
4908
4637
|
};
|
|
4909
4638
|
}
|
|
@@ -4911,16 +4640,16 @@ function Ma(e) {
|
|
|
4911
4640
|
let t;
|
|
4912
4641
|
return {
|
|
4913
4642
|
c() {
|
|
4914
|
-
t =
|
|
4643
|
+
t = E("div"), m(t, "class", "skeleton");
|
|
4915
4644
|
},
|
|
4916
4645
|
m(n, r) {
|
|
4917
|
-
|
|
4646
|
+
T(n, t, r);
|
|
4918
4647
|
},
|
|
4919
|
-
p:
|
|
4920
|
-
i:
|
|
4921
|
-
o:
|
|
4648
|
+
p: S,
|
|
4649
|
+
i: S,
|
|
4650
|
+
o: S,
|
|
4922
4651
|
d(n) {
|
|
4923
|
-
n &&
|
|
4652
|
+
n && C(t);
|
|
4924
4653
|
}
|
|
4925
4654
|
};
|
|
4926
4655
|
}
|
|
@@ -4934,88 +4663,88 @@ function Fa(e) {
|
|
|
4934
4663
|
), u;
|
|
4935
4664
|
return {
|
|
4936
4665
|
c() {
|
|
4937
|
-
t =
|
|
4666
|
+
t = E("span"), t.textContent = `${R("totalBalance")}`, n = I(), i = z(r), a = I(), u = z(o), m(t, "class", "totalAmount");
|
|
4938
4667
|
},
|
|
4939
4668
|
m(s, l) {
|
|
4940
|
-
|
|
4669
|
+
T(s, t, l), T(s, n, l), T(s, i, l), T(s, a, l), T(s, u, l);
|
|
4941
4670
|
},
|
|
4942
4671
|
p(s, l) {
|
|
4943
4672
|
l[0] & /*playerBalance*/
|
|
4944
4673
|
1024 && r !== (r = /*playerBalance*/
|
|
4945
|
-
(s[10]?.amount || 0) + "") &&
|
|
4674
|
+
(s[10]?.amount || 0) + "") && te(i, r), l[0] & /*playerBalance*/
|
|
4946
4675
|
1024 && o !== (o = /*playerBalance*/
|
|
4947
|
-
(s[10]?.currency || "") + "") &&
|
|
4676
|
+
(s[10]?.currency || "") + "") && te(u, o);
|
|
4948
4677
|
},
|
|
4949
|
-
i:
|
|
4950
|
-
o:
|
|
4678
|
+
i: S,
|
|
4679
|
+
o: S,
|
|
4951
4680
|
d(s) {
|
|
4952
|
-
s && (
|
|
4681
|
+
s && (C(t), C(n), C(i), C(a), C(u));
|
|
4953
4682
|
}
|
|
4954
4683
|
};
|
|
4955
4684
|
}
|
|
4956
4685
|
function Ua(e) {
|
|
4957
4686
|
let t, n;
|
|
4958
|
-
return t = new
|
|
4687
|
+
return t = new Lt({}), {
|
|
4959
4688
|
c() {
|
|
4960
|
-
|
|
4689
|
+
rt(t.$$.fragment);
|
|
4961
4690
|
},
|
|
4962
4691
|
m(r, i) {
|
|
4963
|
-
|
|
4692
|
+
Ve(t, r, i), n = !0;
|
|
4964
4693
|
},
|
|
4965
|
-
p:
|
|
4694
|
+
p: S,
|
|
4966
4695
|
i(r) {
|
|
4967
|
-
n || (
|
|
4696
|
+
n || (U(t.$$.fragment, r), n = !0);
|
|
4968
4697
|
},
|
|
4969
4698
|
o(r) {
|
|
4970
|
-
|
|
4699
|
+
W(t.$$.fragment, r), n = !1;
|
|
4971
4700
|
},
|
|
4972
4701
|
d(r) {
|
|
4973
|
-
|
|
4702
|
+
Ge(t, r);
|
|
4974
4703
|
}
|
|
4975
4704
|
};
|
|
4976
4705
|
}
|
|
4977
4706
|
function Va(e) {
|
|
4978
4707
|
let t, n, r, i, a, o, u, s, l;
|
|
4979
|
-
const c = [ja, $a],
|
|
4980
|
-
function h(
|
|
4708
|
+
const c = [ja, $a], d = [];
|
|
4709
|
+
function h(p, v) {
|
|
4981
4710
|
return (
|
|
4982
4711
|
/*fetchResponse*/
|
|
4983
|
-
|
|
4712
|
+
p[12]?.source === K.BalanceError ? 0 : 1
|
|
4984
4713
|
);
|
|
4985
4714
|
}
|
|
4986
|
-
return o = h(e), u =
|
|
4715
|
+
return o = h(e), u = d[o] = c[o](e), {
|
|
4987
4716
|
c() {
|
|
4988
|
-
t =
|
|
4717
|
+
t = E("div"), n = E("p"), r = z(
|
|
4989
4718
|
/*validationError*/
|
|
4990
4719
|
e[13]
|
|
4991
|
-
), i =
|
|
4720
|
+
), i = I(), a = E("div"), u.c(), m(n, "class", "validationError"), m(a, "class", "playerBalance amountContainer"), m(t, "class", s = "balanceContainer " + /*validationError*/
|
|
4992
4721
|
(e[13] ? "hasError" : ""));
|
|
4993
4722
|
},
|
|
4994
|
-
m(
|
|
4995
|
-
|
|
4723
|
+
m(p, v) {
|
|
4724
|
+
T(p, t, v), y(t, n), y(n, r), y(t, i), y(t, a), d[o].m(a, null), l = !0;
|
|
4996
4725
|
},
|
|
4997
|
-
p(
|
|
4726
|
+
p(p, v) {
|
|
4998
4727
|
(!l || v[0] & /*validationError*/
|
|
4999
|
-
8192) &&
|
|
4728
|
+
8192) && te(
|
|
5000
4729
|
r,
|
|
5001
4730
|
/*validationError*/
|
|
5002
|
-
|
|
4731
|
+
p[13]
|
|
5003
4732
|
);
|
|
5004
4733
|
let b = o;
|
|
5005
|
-
o = h(
|
|
5006
|
-
|
|
5007
|
-
}),
|
|
4734
|
+
o = h(p), o === b ? d[o].p(p, v) : (Se(), W(d[b], 1, 1, () => {
|
|
4735
|
+
d[b] = null;
|
|
4736
|
+
}), He(), u = d[o], u ? u.p(p, v) : (u = d[o] = c[o](p), u.c()), U(u, 1), u.m(a, null)), (!l || v[0] & /*validationError*/
|
|
5008
4737
|
8192 && s !== (s = "balanceContainer " + /*validationError*/
|
|
5009
|
-
(
|
|
4738
|
+
(p[13] ? "hasError" : ""))) && m(t, "class", s);
|
|
5010
4739
|
},
|
|
5011
|
-
i(
|
|
5012
|
-
l || (
|
|
4740
|
+
i(p) {
|
|
4741
|
+
l || (U(u), l = !0);
|
|
5013
4742
|
},
|
|
5014
|
-
o(
|
|
5015
|
-
|
|
4743
|
+
o(p) {
|
|
4744
|
+
W(u), l = !1;
|
|
5016
4745
|
},
|
|
5017
|
-
d(
|
|
5018
|
-
|
|
4746
|
+
d(p) {
|
|
4747
|
+
p && C(t), d[o].d();
|
|
5019
4748
|
}
|
|
5020
4749
|
};
|
|
5021
4750
|
}
|
|
@@ -5023,16 +4752,16 @@ function Ga(e) {
|
|
|
5023
4752
|
let t;
|
|
5024
4753
|
return {
|
|
5025
4754
|
c() {
|
|
5026
|
-
t =
|
|
4755
|
+
t = E("div"), m(t, "class", "skeleton");
|
|
5027
4756
|
},
|
|
5028
4757
|
m(n, r) {
|
|
5029
|
-
|
|
4758
|
+
T(n, t, r);
|
|
5030
4759
|
},
|
|
5031
|
-
p:
|
|
5032
|
-
i:
|
|
5033
|
-
o:
|
|
4760
|
+
p: S,
|
|
4761
|
+
i: S,
|
|
4762
|
+
o: S,
|
|
5034
4763
|
d(n) {
|
|
5035
|
-
n &&
|
|
4764
|
+
n && C(t);
|
|
5036
4765
|
}
|
|
5037
4766
|
};
|
|
5038
4767
|
}
|
|
@@ -5046,43 +4775,43 @@ function $a(e) {
|
|
|
5046
4775
|
), u;
|
|
5047
4776
|
return {
|
|
5048
4777
|
c() {
|
|
5049
|
-
t =
|
|
4778
|
+
t = E("span"), t.textContent = `${R("currentBalance")}`, n = I(), i = z(r), a = I(), u = z(o), m(t, "class", "amount");
|
|
5050
4779
|
},
|
|
5051
4780
|
m(s, l) {
|
|
5052
|
-
|
|
4781
|
+
T(s, t, l), T(s, n, l), T(s, i, l), T(s, a, l), T(s, u, l);
|
|
5053
4782
|
},
|
|
5054
4783
|
p(s, l) {
|
|
5055
4784
|
l[0] & /*selectedCurrencyFrom*/
|
|
5056
4785
|
32 && r !== (r = /*selectedCurrencyFrom*/
|
|
5057
|
-
(s[5]?.amount || 0) + "") &&
|
|
4786
|
+
(s[5]?.amount || 0) + "") && te(i, r), l[0] & /*selectedCurrencyFrom*/
|
|
5058
4787
|
32 && o !== (o = /*selectedCurrencyFrom*/
|
|
5059
|
-
(s[5]?.currency || "") + "") &&
|
|
4788
|
+
(s[5]?.currency || "") + "") && te(u, o);
|
|
5060
4789
|
},
|
|
5061
|
-
i:
|
|
5062
|
-
o:
|
|
4790
|
+
i: S,
|
|
4791
|
+
o: S,
|
|
5063
4792
|
d(s) {
|
|
5064
|
-
s && (
|
|
4793
|
+
s && (C(t), C(n), C(i), C(a), C(u));
|
|
5065
4794
|
}
|
|
5066
4795
|
};
|
|
5067
4796
|
}
|
|
5068
4797
|
function ja(e) {
|
|
5069
4798
|
let t, n;
|
|
5070
|
-
return t = new
|
|
4799
|
+
return t = new Lt({}), {
|
|
5071
4800
|
c() {
|
|
5072
|
-
|
|
4801
|
+
rt(t.$$.fragment);
|
|
5073
4802
|
},
|
|
5074
4803
|
m(r, i) {
|
|
5075
|
-
|
|
4804
|
+
Ve(t, r, i), n = !0;
|
|
5076
4805
|
},
|
|
5077
|
-
p:
|
|
4806
|
+
p: S,
|
|
5078
4807
|
i(r) {
|
|
5079
|
-
n || (
|
|
4808
|
+
n || (U(t.$$.fragment, r), n = !0);
|
|
5080
4809
|
},
|
|
5081
4810
|
o(r) {
|
|
5082
|
-
|
|
4811
|
+
W(t.$$.fragment, r), n = !1;
|
|
5083
4812
|
},
|
|
5084
4813
|
d(r) {
|
|
5085
|
-
|
|
4814
|
+
Ge(t, r);
|
|
5086
4815
|
}
|
|
5087
4816
|
};
|
|
5088
4817
|
}
|
|
@@ -5092,30 +4821,30 @@ function Xa(e) {
|
|
|
5092
4821
|
function u(s, l) {
|
|
5093
4822
|
return (
|
|
5094
4823
|
/*fetchResponse*/
|
|
5095
|
-
s[12]?.source ===
|
|
4824
|
+
s[12]?.source === K.BalanceError ? 0 : 1
|
|
5096
4825
|
);
|
|
5097
4826
|
}
|
|
5098
4827
|
return n = u(e), r = o[n] = a[n](e), {
|
|
5099
4828
|
c() {
|
|
5100
|
-
t =
|
|
4829
|
+
t = E("div"), r.c(), m(t, "class", "playerBalance amountContainer");
|
|
5101
4830
|
},
|
|
5102
4831
|
m(s, l) {
|
|
5103
|
-
|
|
4832
|
+
T(s, t, l), o[n].m(t, null), i = !0;
|
|
5104
4833
|
},
|
|
5105
4834
|
p(s, l) {
|
|
5106
4835
|
let c = n;
|
|
5107
|
-
n = u(s), n === c ? o[n].p(s, l) : (
|
|
4836
|
+
n = u(s), n === c ? o[n].p(s, l) : (Se(), W(o[c], 1, 1, () => {
|
|
5108
4837
|
o[c] = null;
|
|
5109
|
-
}),
|
|
4838
|
+
}), He(), r = o[n], r ? r.p(s, l) : (r = o[n] = a[n](s), r.c()), U(r, 1), r.m(t, null));
|
|
5110
4839
|
},
|
|
5111
4840
|
i(s) {
|
|
5112
|
-
i || (
|
|
4841
|
+
i || (U(r), i = !0);
|
|
5113
4842
|
},
|
|
5114
4843
|
o(s) {
|
|
5115
|
-
|
|
4844
|
+
W(r), i = !1;
|
|
5116
4845
|
},
|
|
5117
4846
|
d(s) {
|
|
5118
|
-
s &&
|
|
4847
|
+
s && C(t), o[n].d();
|
|
5119
4848
|
}
|
|
5120
4849
|
};
|
|
5121
4850
|
}
|
|
@@ -5123,16 +4852,16 @@ function Wa(e) {
|
|
|
5123
4852
|
let t;
|
|
5124
4853
|
return {
|
|
5125
4854
|
c() {
|
|
5126
|
-
t =
|
|
4855
|
+
t = E("div"), m(t, "class", "skeleton");
|
|
5127
4856
|
},
|
|
5128
4857
|
m(n, r) {
|
|
5129
|
-
|
|
4858
|
+
T(n, t, r);
|
|
5130
4859
|
},
|
|
5131
|
-
p:
|
|
5132
|
-
i:
|
|
5133
|
-
o:
|
|
4860
|
+
p: S,
|
|
4861
|
+
i: S,
|
|
4862
|
+
o: S,
|
|
5134
4863
|
d(n) {
|
|
5135
|
-
n &&
|
|
4864
|
+
n && C(t);
|
|
5136
4865
|
}
|
|
5137
4866
|
};
|
|
5138
4867
|
}
|
|
@@ -5146,128 +4875,128 @@ function za(e) {
|
|
|
5146
4875
|
), u;
|
|
5147
4876
|
return {
|
|
5148
4877
|
c() {
|
|
5149
|
-
t =
|
|
4878
|
+
t = E("span"), t.textContent = `${R("currentBalance")}`, n = I(), i = z(r), a = I(), u = z(o), m(t, "class", "amount");
|
|
5150
4879
|
},
|
|
5151
4880
|
m(s, l) {
|
|
5152
|
-
|
|
4881
|
+
T(s, t, l), T(s, n, l), T(s, i, l), T(s, a, l), T(s, u, l);
|
|
5153
4882
|
},
|
|
5154
4883
|
p(s, l) {
|
|
5155
4884
|
l[0] & /*selectedCurrencyTo*/
|
|
5156
4885
|
64 && r !== (r = /*selectedCurrencyTo*/
|
|
5157
|
-
(s[6]?.amount || 0) + "") &&
|
|
4886
|
+
(s[6]?.amount || 0) + "") && te(i, r), l[0] & /*selectedCurrencyTo*/
|
|
5158
4887
|
64 && o !== (o = /*selectedCurrencyTo*/
|
|
5159
|
-
(s[6]?.currency || "") + "") &&
|
|
4888
|
+
(s[6]?.currency || "") + "") && te(u, o);
|
|
5160
4889
|
},
|
|
5161
|
-
i:
|
|
5162
|
-
o:
|
|
4890
|
+
i: S,
|
|
4891
|
+
o: S,
|
|
5163
4892
|
d(s) {
|
|
5164
|
-
s && (
|
|
4893
|
+
s && (C(t), C(n), C(i), C(a), C(u));
|
|
5165
4894
|
}
|
|
5166
4895
|
};
|
|
5167
4896
|
}
|
|
5168
4897
|
function Za(e) {
|
|
5169
4898
|
let t, n;
|
|
5170
|
-
return t = new
|
|
4899
|
+
return t = new Lt({}), {
|
|
5171
4900
|
c() {
|
|
5172
|
-
|
|
4901
|
+
rt(t.$$.fragment);
|
|
5173
4902
|
},
|
|
5174
4903
|
m(r, i) {
|
|
5175
|
-
|
|
4904
|
+
Ve(t, r, i), n = !0;
|
|
5176
4905
|
},
|
|
5177
|
-
p:
|
|
4906
|
+
p: S,
|
|
5178
4907
|
i(r) {
|
|
5179
|
-
n || (
|
|
4908
|
+
n || (U(t.$$.fragment, r), n = !0);
|
|
5180
4909
|
},
|
|
5181
4910
|
o(r) {
|
|
5182
|
-
|
|
4911
|
+
W(t.$$.fragment, r), n = !1;
|
|
5183
4912
|
},
|
|
5184
4913
|
d(r) {
|
|
5185
|
-
|
|
4914
|
+
Ge(t, r);
|
|
5186
4915
|
}
|
|
5187
4916
|
};
|
|
5188
4917
|
}
|
|
5189
4918
|
function Vn(e) {
|
|
5190
|
-
let t, n, r, i, a, o, u, s, l, c,
|
|
4919
|
+
let t, n, r, i, a, o, u, s, l, c, d = xt(
|
|
5191
4920
|
/*dropDownVaults*/
|
|
5192
|
-
e[
|
|
4921
|
+
e[19]
|
|
5193
4922
|
), h = [];
|
|
5194
|
-
for (let
|
|
5195
|
-
h[
|
|
4923
|
+
for (let p = 0; p < d.length; p += 1)
|
|
4924
|
+
h[p] = Gn(Mn(e, d, p));
|
|
5196
4925
|
return {
|
|
5197
4926
|
c() {
|
|
5198
|
-
t =
|
|
5199
|
-
for (let
|
|
5200
|
-
h[
|
|
4927
|
+
t = E("div"), n = E("button"), r = dn("svg"), i = dn("path"), o = I(), u = E("div");
|
|
4928
|
+
for (let p = 0; p < h.length; p += 1)
|
|
4929
|
+
h[p].c();
|
|
5201
4930
|
m(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"), m(i, "fill", "currentColor"), m(r, "class", "vaultToggleIcon"), m(r, "width", "12"), m(r, "height", "7"), m(r, "viewBox", "0 0 12 7"), m(r, "fill", "currentColor"), m(r, "xmlns", "http://www.w3.org/2000/svg"), m(n, "type", "button"), m(n, "class", a = "vaultToggleButton " + /*isVaultDropDownToggled*/
|
|
5202
4931
|
(e[15] && /*dropDownVaults*/
|
|
5203
|
-
e[
|
|
4932
|
+
e[19].length > 0 ? "active" : "")), m(u, "class", s = "vaultDropdown " + /*isVaultDropDownToggled*/
|
|
5204
4933
|
(e[15] && /*dropDownVaults*/
|
|
5205
|
-
e[
|
|
4934
|
+
e[19].length > 0 ? "expanded" : "")), m(t, "class", "vaultsContainer");
|
|
5206
4935
|
},
|
|
5207
|
-
m(
|
|
5208
|
-
|
|
4936
|
+
m(p, v) {
|
|
4937
|
+
T(p, t, v), y(t, n), y(n, r), y(r, i), y(t, o), y(t, u);
|
|
5209
4938
|
for (let b = 0; b < h.length; b += 1)
|
|
5210
4939
|
h[b] && h[b].m(u, null);
|
|
5211
|
-
l || (c =
|
|
4940
|
+
l || (c = ie(
|
|
5212
4941
|
n,
|
|
5213
4942
|
"click",
|
|
5214
4943
|
/*handleToggleVaultDropdown*/
|
|
5215
|
-
e[
|
|
4944
|
+
e[22]
|
|
5216
4945
|
), l = !0);
|
|
5217
4946
|
},
|
|
5218
|
-
p(
|
|
4947
|
+
p(p, v) {
|
|
5219
4948
|
if (v[0] & /*isVaultDropDownToggled, dropDownVaults*/
|
|
5220
|
-
|
|
5221
|
-
(
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
4949
|
+
557056 && a !== (a = "vaultToggleButton " + /*isVaultDropDownToggled*/
|
|
4950
|
+
(p[15] && /*dropDownVaults*/
|
|
4951
|
+
p[19].length > 0 ? "active" : "")) && m(n, "class", a), v[0] & /*dropDownVaults*/
|
|
4952
|
+
524288) {
|
|
4953
|
+
d = xt(
|
|
5225
4954
|
/*dropDownVaults*/
|
|
5226
|
-
|
|
4955
|
+
p[19]
|
|
5227
4956
|
);
|
|
5228
4957
|
let b;
|
|
5229
|
-
for (b = 0; b <
|
|
5230
|
-
const
|
|
5231
|
-
h[b] ? h[b].p(
|
|
4958
|
+
for (b = 0; b < d.length; b += 1) {
|
|
4959
|
+
const N = Mn(p, d, b);
|
|
4960
|
+
h[b] ? h[b].p(N, v) : (h[b] = Gn(N), h[b].c(), h[b].m(u, null));
|
|
5232
4961
|
}
|
|
5233
4962
|
for (; b < h.length; b += 1)
|
|
5234
4963
|
h[b].d(1);
|
|
5235
|
-
h.length =
|
|
4964
|
+
h.length = d.length;
|
|
5236
4965
|
}
|
|
5237
4966
|
v[0] & /*isVaultDropDownToggled, dropDownVaults*/
|
|
5238
|
-
|
|
5239
|
-
(
|
|
5240
|
-
|
|
4967
|
+
557056 && s !== (s = "vaultDropdown " + /*isVaultDropDownToggled*/
|
|
4968
|
+
(p[15] && /*dropDownVaults*/
|
|
4969
|
+
p[19].length > 0 ? "expanded" : "")) && m(u, "class", s);
|
|
5241
4970
|
},
|
|
5242
|
-
d(
|
|
5243
|
-
|
|
4971
|
+
d(p) {
|
|
4972
|
+
p && C(t), Xn(h, p), l = !1, c();
|
|
5244
4973
|
}
|
|
5245
4974
|
};
|
|
5246
4975
|
}
|
|
5247
4976
|
function Gn(e) {
|
|
5248
4977
|
let t, n, r = (
|
|
5249
4978
|
/*vault*/
|
|
5250
|
-
e[
|
|
4979
|
+
e[60]?.currency + ""
|
|
5251
4980
|
), i, a, o, u = (
|
|
5252
4981
|
/*vault*/
|
|
5253
|
-
e[
|
|
4982
|
+
e[60]?.amount + ""
|
|
5254
4983
|
), s, l;
|
|
5255
4984
|
return {
|
|
5256
4985
|
c() {
|
|
5257
|
-
t =
|
|
4986
|
+
t = E("div"), n = E("p"), i = z(r), a = I(), o = E("p"), s = z(u), l = I(), m(t, "class", "vaultItem");
|
|
5258
4987
|
},
|
|
5259
|
-
m(c,
|
|
5260
|
-
|
|
4988
|
+
m(c, d) {
|
|
4989
|
+
T(c, t, d), y(t, n), y(n, i), y(t, a), y(t, o), y(o, s), y(t, l);
|
|
5261
4990
|
},
|
|
5262
|
-
p(c,
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
c[
|
|
5266
|
-
|
|
5267
|
-
c[
|
|
4991
|
+
p(c, d) {
|
|
4992
|
+
d[0] & /*dropDownVaults*/
|
|
4993
|
+
524288 && r !== (r = /*vault*/
|
|
4994
|
+
c[60]?.currency + "") && te(i, r), d[0] & /*dropDownVaults*/
|
|
4995
|
+
524288 && u !== (u = /*vault*/
|
|
4996
|
+
c[60]?.amount + "") && te(s, u);
|
|
5268
4997
|
},
|
|
5269
4998
|
d(c) {
|
|
5270
|
-
c &&
|
|
4999
|
+
c && C(t);
|
|
5271
5000
|
}
|
|
5272
5001
|
};
|
|
5273
5002
|
}
|
|
@@ -5277,19 +5006,19 @@ function Qa(e) {
|
|
|
5277
5006
|
e[11]?.currency || ""}`, n;
|
|
5278
5007
|
return {
|
|
5279
5008
|
c() {
|
|
5280
|
-
n =
|
|
5009
|
+
n = z(t);
|
|
5281
5010
|
},
|
|
5282
5011
|
m(r, i) {
|
|
5283
|
-
|
|
5012
|
+
T(r, n, i);
|
|
5284
5013
|
},
|
|
5285
5014
|
p(r, i) {
|
|
5286
5015
|
i[0] & /*currentFee*/
|
|
5287
5016
|
2048 && t !== (t = `${/*currentFee*/
|
|
5288
5017
|
r[11]?.amount || 0} ${/*currentFee*/
|
|
5289
|
-
r[11]?.currency || ""}`) &&
|
|
5018
|
+
r[11]?.currency || ""}`) && te(n, t);
|
|
5290
5019
|
},
|
|
5291
5020
|
d(r) {
|
|
5292
|
-
r &&
|
|
5021
|
+
r && C(n);
|
|
5293
5022
|
}
|
|
5294
5023
|
};
|
|
5295
5024
|
}
|
|
@@ -5297,344 +5026,586 @@ function Ka(e) {
|
|
|
5297
5026
|
let t = R("feesUnavailable") + "", n;
|
|
5298
5027
|
return {
|
|
5299
5028
|
c() {
|
|
5300
|
-
n =
|
|
5029
|
+
n = z(t);
|
|
5301
5030
|
},
|
|
5302
5031
|
m(r, i) {
|
|
5303
|
-
|
|
5032
|
+
T(r, n, i);
|
|
5304
5033
|
},
|
|
5305
|
-
p:
|
|
5034
|
+
p: S,
|
|
5306
5035
|
d(r) {
|
|
5307
|
-
r &&
|
|
5036
|
+
r && C(n);
|
|
5308
5037
|
}
|
|
5309
5038
|
};
|
|
5310
5039
|
}
|
|
5311
5040
|
function Ya(e) {
|
|
5312
|
-
let t, n, r = (
|
|
5313
|
-
/*
|
|
5314
|
-
e[
|
|
5041
|
+
let t, n, r, i, a, o, u, s, l, c, d, h, p, v, b, N, _, O, L, ae, D, ne, oe, ue, $, he, Ie, Y, me, Ke, J, j, st, Ye, _e, Le, lt, Ce, Ne, re, ge = R(
|
|
5042
|
+
/*fetchResponse*/
|
|
5043
|
+
e[12]?.message || ""
|
|
5044
|
+
) + "", Je, be, fe, ut, X, Nt = R("exchange") + "", Te, Oe, ee, Re, Ot, Q = (
|
|
5045
|
+
/*showclosebutton*/
|
|
5046
|
+
e[3] === xe.true && Fn(e)
|
|
5047
|
+
), V = (
|
|
5048
|
+
/*showtotalbalance*/
|
|
5049
|
+
e[2] === xe.true && Un(e)
|
|
5315
5050
|
);
|
|
5051
|
+
function Rt(g) {
|
|
5052
|
+
e[38](g);
|
|
5053
|
+
}
|
|
5054
|
+
let ct = {
|
|
5055
|
+
withSymbol: (
|
|
5056
|
+
/*showcurrencysymbol*/
|
|
5057
|
+
e[4]
|
|
5058
|
+
),
|
|
5059
|
+
disabled: !/*isBalanceFetched*/
|
|
5060
|
+
e[16] || !/*isCurrenciesFetched*/
|
|
5061
|
+
e[17],
|
|
5062
|
+
options: (
|
|
5063
|
+
/*optionsFrom*/
|
|
5064
|
+
e[20]
|
|
5065
|
+
),
|
|
5066
|
+
onChange: (
|
|
5067
|
+
/*checkWalletExchangeDebounced*/
|
|
5068
|
+
e[25]
|
|
5069
|
+
)
|
|
5070
|
+
};
|
|
5071
|
+
/*selectedCurrencyFrom*/
|
|
5072
|
+
e[5] !== void 0 && (ct.selected = /*selectedCurrencyFrom*/
|
|
5073
|
+
e[5]), b = new an({ props: ct }), Ue.push(() => mn(b, "selected", Rt));
|
|
5074
|
+
const qe = [Ga, Va], de = [];
|
|
5075
|
+
function ht(g, H) {
|
|
5076
|
+
return !/*isBalanceFetched*/
|
|
5077
|
+
g[16] || !/*isCurrenciesFetched*/
|
|
5078
|
+
g[17] ? 0 : 1;
|
|
5079
|
+
}
|
|
5080
|
+
O = ht(e), L = de[O] = qe[O](e);
|
|
5081
|
+
function kt(g) {
|
|
5082
|
+
e[40](g);
|
|
5083
|
+
}
|
|
5084
|
+
let ft = {
|
|
5085
|
+
withSymbol: (
|
|
5086
|
+
/*showcurrencysymbol*/
|
|
5087
|
+
e[4]
|
|
5088
|
+
),
|
|
5089
|
+
disabled: !/*session*/
|
|
5090
|
+
e[0] || !!/*validationError*/
|
|
5091
|
+
e[13] || !/*isBalanceFetched*/
|
|
5092
|
+
e[16] || !/*isCurrenciesFetched*/
|
|
5093
|
+
e[17],
|
|
5094
|
+
options: (
|
|
5095
|
+
/*optionsTo*/
|
|
5096
|
+
e[21]
|
|
5097
|
+
),
|
|
5098
|
+
onChange: (
|
|
5099
|
+
/*checkWalletExchangeDebounced*/
|
|
5100
|
+
e[25]
|
|
5101
|
+
)
|
|
5102
|
+
};
|
|
5103
|
+
/*selectedCurrencyTo*/
|
|
5104
|
+
e[6] !== void 0 && (ft.selected = /*selectedCurrencyTo*/
|
|
5105
|
+
e[6]), Y = new an({ props: ft }), Ue.push(() => mn(Y, "selected", kt));
|
|
5106
|
+
const dt = [Wa, Xa], f = [];
|
|
5107
|
+
function x(g, H) {
|
|
5108
|
+
return !/*isBalanceFetched*/
|
|
5109
|
+
g[16] || !/*isCurrenciesFetched*/
|
|
5110
|
+
g[17] ? 0 : 1;
|
|
5111
|
+
}
|
|
5112
|
+
J = x(e), j = f[J] = dt[J](e);
|
|
5113
|
+
let w = (
|
|
5114
|
+
/*showvaults*/
|
|
5115
|
+
e[1] === xe.true && Vn(e)
|
|
5116
|
+
);
|
|
5117
|
+
function A(g, H) {
|
|
5118
|
+
return (
|
|
5119
|
+
/*fetchResponse*/
|
|
5120
|
+
g[12]?.source === K.CheckWalletExchangeError ? Ka : Qa
|
|
5121
|
+
);
|
|
5122
|
+
}
|
|
5123
|
+
let Z = A(e), se = Z(e);
|
|
5316
5124
|
return {
|
|
5317
5125
|
c() {
|
|
5318
|
-
|
|
5126
|
+
t = E("div"), Q && Q.c(), n = I(), r = E("div"), i = E("h1"), i.textContent = `${R("vaultExchange")}`, a = I(), V && V.c(), o = I(), u = E("div"), s = E("div"), l = E("p"), l.textContent = `${R("exchangeFrom")}`, c = I(), d = E("div"), h = E("input"), v = I(), rt(b.$$.fragment), _ = I(), L.c(), ae = I(), D = E("div"), ne = E("p"), ne.textContent = `${R("exchangeTo")}`, oe = I(), ue = E("div"), $ = E("input"), Ie = I(), rt(Y.$$.fragment), Ke = I(), j.c(), st = I(), w && w.c(), Ye = I(), _e = E("div"), Le = E("span"), Le.textContent = `${R("feesIncluded")}`, lt = I(), Ce = E("span"), se.c(), Ne = I(), re = E("div"), Je = I(), be = E("div"), fe = E("button"), fe.textContent = `${R("reset")}`, ut = I(), X = E("button"), Te = z(Nt), m(i, "class", "headerTitle"), m(r, "class", "headerContainer"), m(l, "class", "exchangeHeader"), m(h, "id", "senderInput"), h.disabled = p = !/*session*/
|
|
5127
|
+
e[0] || !/*isBalanceFetched*/
|
|
5128
|
+
e[16] || !/*isCurrenciesFetched*/
|
|
5129
|
+
e[17], m(h, "placeholder", R("debitPlaceHolder")), m(h, "class", "exchangeInput"), m(h, "type", "number"), m(h, "aria-label", "Enter exchange amount"), m(h, "inputmode", "decimal"), m(h, "step", "0.000000000000000001"), m(h, "min", "0"), m(d, "class", "flexingContainerRow"), m(s, "class", "containerExchangeFrom exchangeContainer"), m(ne, "class", "exchangeHeader"), m($, "id", "destinationInput"), $.disabled = he = !/*session*/
|
|
5130
|
+
e[0] || !/*isBalanceFetched*/
|
|
5131
|
+
e[16] || !/*isCurrenciesFetched*/
|
|
5132
|
+
e[17], m($, "placeholder", R("creditPlaceHolder")), m($, "class", "exchangeInput"), m($, "type", "number"), $.readOnly = !0, m($, "min", "0"), m(ue, "class", "flexingContainerRow"), m(D, "class", "containerExchangeTo exchangeContainer"), m(u, "class", "exchangesContainer"), m(Le, "class", "feesLabel"), m(_e, "class", "feesContainer"), m(re, "class", "notificationsContainer"), le(
|
|
5133
|
+
re,
|
|
5134
|
+
"error",
|
|
5135
|
+
/*fetchResponse*/
|
|
5136
|
+
e[12]?.type === "error"
|
|
5137
|
+
), le(
|
|
5138
|
+
re,
|
|
5139
|
+
"success",
|
|
5140
|
+
/*fetchResponse*/
|
|
5141
|
+
e[12]?.type === "success"
|
|
5142
|
+
), m(fe, "class", "resetButton"), m(fe, "type", "button"), m(X, "type", "button"), m(X, "class", "exchangeButton"), X.disabled = Oe = /*isExchangeDisabled*/
|
|
5143
|
+
e[14] || /*isExchangePending*/
|
|
5144
|
+
e[18] || /*inputExchangeFrom*/
|
|
5145
|
+
e[8] === 0 && !/*selectedCurrencyFrom*/
|
|
5146
|
+
e[5]?.amount, le(
|
|
5147
|
+
X,
|
|
5148
|
+
"disabled",
|
|
5149
|
+
/*isExchangeDisabled*/
|
|
5150
|
+
e[14] || /*isExchangePending*/
|
|
5151
|
+
e[18]
|
|
5152
|
+
), le(
|
|
5153
|
+
X,
|
|
5154
|
+
"pending",
|
|
5155
|
+
/*isExchangePending*/
|
|
5156
|
+
e[18]
|
|
5157
|
+
), m(be, "class", "actionsContainer"), m(t, "class", "playerAccountVault");
|
|
5319
5158
|
},
|
|
5320
|
-
m(
|
|
5321
|
-
|
|
5159
|
+
m(g, H) {
|
|
5160
|
+
T(g, t, H), Q && Q.m(t, null), y(t, n), y(t, r), y(r, i), y(r, a), V && V.m(r, null), y(t, o), y(t, u), y(u, s), y(s, l), y(s, c), y(s, d), y(d, h), pt(
|
|
5161
|
+
h,
|
|
5162
|
+
/*inputExchangeFrom*/
|
|
5163
|
+
e[8]
|
|
5164
|
+
), y(d, v), Ve(b, d, null), y(s, _), de[O].m(s, null), y(u, ae), y(u, D), y(D, ne), y(D, oe), y(D, ue), y(ue, $), pt(
|
|
5165
|
+
$,
|
|
5166
|
+
/*inputExchangeTo*/
|
|
5167
|
+
e[9]
|
|
5168
|
+
), y(ue, Ie), Ve(Y, ue, null), y(D, Ke), f[J].m(D, null), y(t, st), w && w.m(t, null), y(t, Ye), y(t, _e), y(_e, Le), y(_e, lt), y(_e, Ce), se.m(Ce, null), y(t, Ne), y(t, re), re.innerHTML = ge, y(t, Je), y(t, be), y(be, fe), y(be, ut), y(be, X), y(X, Te), e[41](t), ee = !0, Re || (Ot = [
|
|
5169
|
+
ie(
|
|
5170
|
+
h,
|
|
5171
|
+
"input",
|
|
5172
|
+
/*input0_input_handler*/
|
|
5173
|
+
e[37]
|
|
5174
|
+
),
|
|
5175
|
+
ie(
|
|
5176
|
+
h,
|
|
5177
|
+
"input",
|
|
5178
|
+
/*handleInputChange*/
|
|
5179
|
+
e[26]
|
|
5180
|
+
),
|
|
5181
|
+
ie(
|
|
5182
|
+
h,
|
|
5183
|
+
"beforeinput",
|
|
5184
|
+
/*handleBeforeInput*/
|
|
5185
|
+
e[27]
|
|
5186
|
+
),
|
|
5187
|
+
ie(
|
|
5188
|
+
$,
|
|
5189
|
+
"input",
|
|
5190
|
+
/*input1_input_handler*/
|
|
5191
|
+
e[39]
|
|
5192
|
+
),
|
|
5193
|
+
ie(
|
|
5194
|
+
fe,
|
|
5195
|
+
"click",
|
|
5196
|
+
/*handleResetToDefault*/
|
|
5197
|
+
e[24]
|
|
5198
|
+
),
|
|
5199
|
+
ie(
|
|
5200
|
+
X,
|
|
5201
|
+
"click",
|
|
5202
|
+
/*handleExchange*/
|
|
5203
|
+
e[28]
|
|
5204
|
+
)
|
|
5205
|
+
], Re = !0);
|
|
5322
5206
|
},
|
|
5323
|
-
p(
|
|
5324
|
-
/*
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5207
|
+
p(g, H) {
|
|
5208
|
+
/*showclosebutton*/
|
|
5209
|
+
g[3] === xe.true ? Q ? Q.p(g, H) : (Q = Fn(g), Q.c(), Q.m(t, n)) : Q && (Q.d(1), Q = null), /*showtotalbalance*/
|
|
5210
|
+
g[2] === xe.true ? V ? (V.p(g, H), H[0] & /*showtotalbalance*/
|
|
5211
|
+
4 && U(V, 1)) : (V = Un(g), V.c(), U(V, 1), V.m(r, null)) : V && (Se(), W(V, 1, 1, () => {
|
|
5212
|
+
V = null;
|
|
5213
|
+
}), He()), (!ee || H[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5214
|
+
196609 && p !== (p = !/*session*/
|
|
5215
|
+
g[0] || !/*isBalanceFetched*/
|
|
5216
|
+
g[16] || !/*isCurrenciesFetched*/
|
|
5217
|
+
g[17])) && (h.disabled = p), H[0] & /*inputExchangeFrom*/
|
|
5218
|
+
256 && Et(h.value) !== /*inputExchangeFrom*/
|
|
5219
|
+
g[8] && pt(
|
|
5220
|
+
h,
|
|
5221
|
+
/*inputExchangeFrom*/
|
|
5222
|
+
g[8]
|
|
5223
|
+
);
|
|
5224
|
+
const M = {};
|
|
5225
|
+
H[0] & /*showcurrencysymbol*/
|
|
5226
|
+
16 && (M.withSymbol = /*showcurrencysymbol*/
|
|
5227
|
+
g[4]), H[0] & /*isBalanceFetched, isCurrenciesFetched*/
|
|
5228
|
+
196608 && (M.disabled = !/*isBalanceFetched*/
|
|
5229
|
+
g[16] || !/*isCurrenciesFetched*/
|
|
5230
|
+
g[17]), H[0] & /*optionsFrom*/
|
|
5231
|
+
1048576 && (M.options = /*optionsFrom*/
|
|
5232
|
+
g[20]), !N && H[0] & /*selectedCurrencyFrom*/
|
|
5233
|
+
32 && (N = !0, M.selected = /*selectedCurrencyFrom*/
|
|
5234
|
+
g[5], pn(() => N = !1)), b.$set(M);
|
|
5235
|
+
let ye = O;
|
|
5236
|
+
O = ht(g), O === ye ? de[O].p(g, H) : (Se(), W(de[ye], 1, 1, () => {
|
|
5237
|
+
de[ye] = null;
|
|
5238
|
+
}), He(), L = de[O], L ? L.p(g, H) : (L = de[O] = qe[O](g), L.c()), U(L, 1), L.m(s, null)), (!ee || H[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5239
|
+
196609 && he !== (he = !/*session*/
|
|
5240
|
+
g[0] || !/*isBalanceFetched*/
|
|
5241
|
+
g[16] || !/*isCurrenciesFetched*/
|
|
5242
|
+
g[17])) && ($.disabled = he), H[0] & /*inputExchangeTo*/
|
|
5243
|
+
512 && Et($.value) !== /*inputExchangeTo*/
|
|
5244
|
+
g[9] && pt(
|
|
5245
|
+
$,
|
|
5246
|
+
/*inputExchangeTo*/
|
|
5247
|
+
g[9]
|
|
5248
|
+
);
|
|
5249
|
+
const ce = {};
|
|
5250
|
+
H[0] & /*showcurrencysymbol*/
|
|
5251
|
+
16 && (ce.withSymbol = /*showcurrencysymbol*/
|
|
5252
|
+
g[4]), H[0] & /*session, validationError, isBalanceFetched, isCurrenciesFetched*/
|
|
5253
|
+
204801 && (ce.disabled = !/*session*/
|
|
5254
|
+
g[0] || !!/*validationError*/
|
|
5255
|
+
g[13] || !/*isBalanceFetched*/
|
|
5256
|
+
g[16] || !/*isCurrenciesFetched*/
|
|
5257
|
+
g[17]), H[0] & /*optionsTo*/
|
|
5258
|
+
2097152 && (ce.options = /*optionsTo*/
|
|
5259
|
+
g[21]), !me && H[0] & /*selectedCurrencyTo*/
|
|
5260
|
+
64 && (me = !0, ce.selected = /*selectedCurrencyTo*/
|
|
5261
|
+
g[6], pn(() => me = !1)), Y.$set(ce);
|
|
5262
|
+
let Dt = J;
|
|
5263
|
+
J = x(g), J === Dt ? f[J].p(g, H) : (Se(), W(f[Dt], 1, 1, () => {
|
|
5264
|
+
f[Dt] = null;
|
|
5265
|
+
}), He(), j = f[J], j ? j.p(g, H) : (j = f[J] = dt[J](g), j.c()), U(j, 1), j.m(D, null)), /*showvaults*/
|
|
5266
|
+
g[1] === xe.true ? w ? w.p(g, H) : (w = Vn(g), w.c(), w.m(t, Ye)) : w && (w.d(1), w = null), Z === (Z = A(g)) && se ? se.p(g, H) : (se.d(1), se = Z(g), se && (se.c(), se.m(Ce, null))), (!ee || H[0] & /*fetchResponse*/
|
|
5267
|
+
4096) && ge !== (ge = R(
|
|
5268
|
+
/*fetchResponse*/
|
|
5269
|
+
g[12]?.message || ""
|
|
5270
|
+
) + "") && (re.innerHTML = ge), (!ee || H[0] & /*fetchResponse*/
|
|
5271
|
+
4096) && le(
|
|
5272
|
+
re,
|
|
5273
|
+
"error",
|
|
5274
|
+
/*fetchResponse*/
|
|
5275
|
+
g[12]?.type === "error"
|
|
5276
|
+
), (!ee || H[0] & /*fetchResponse*/
|
|
5277
|
+
4096) && le(
|
|
5278
|
+
re,
|
|
5279
|
+
"success",
|
|
5280
|
+
/*fetchResponse*/
|
|
5281
|
+
g[12]?.type === "success"
|
|
5282
|
+
), (!ee || H[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
|
|
5283
|
+
278816 && Oe !== (Oe = /*isExchangeDisabled*/
|
|
5284
|
+
g[14] || /*isExchangePending*/
|
|
5285
|
+
g[18] || /*inputExchangeFrom*/
|
|
5286
|
+
g[8] === 0 && !/*selectedCurrencyFrom*/
|
|
5287
|
+
g[5]?.amount)) && (X.disabled = Oe), (!ee || H[0] & /*isExchangeDisabled, isExchangePending*/
|
|
5288
|
+
278528) && le(
|
|
5289
|
+
X,
|
|
5290
|
+
"disabled",
|
|
5291
|
+
/*isExchangeDisabled*/
|
|
5292
|
+
g[14] || /*isExchangePending*/
|
|
5293
|
+
g[18]
|
|
5294
|
+
), (!ee || H[0] & /*isExchangePending*/
|
|
5295
|
+
262144) && le(
|
|
5296
|
+
X,
|
|
5297
|
+
"pending",
|
|
5298
|
+
/*isExchangePending*/
|
|
5299
|
+
g[18]
|
|
5300
|
+
);
|
|
5329
5301
|
},
|
|
5330
|
-
i(
|
|
5331
|
-
|
|
5302
|
+
i(g) {
|
|
5303
|
+
ee || (U(V), U(b.$$.fragment, g), U(L), U(Y.$$.fragment, g), U(j), ee = !0);
|
|
5332
5304
|
},
|
|
5333
|
-
o(
|
|
5334
|
-
|
|
5305
|
+
o(g) {
|
|
5306
|
+
W(V), W(b.$$.fragment, g), W(L), W(Y.$$.fragment, g), W(j), ee = !1;
|
|
5335
5307
|
},
|
|
5336
|
-
d(
|
|
5337
|
-
|
|
5308
|
+
d(g) {
|
|
5309
|
+
g && C(t), Q && Q.d(), V && V.d(), Ge(b), de[O].d(), Ge(Y), f[J].d(), w && w.d(), se.d(), e[41](null), Re = !1, ve(Ot);
|
|
5338
5310
|
}
|
|
5339
5311
|
};
|
|
5340
5312
|
}
|
|
5341
5313
|
function Ja(e, t, n) {
|
|
5342
|
-
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang: o = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: l = "" } = t, { playercurrency: c = "" } = t, { showvaults:
|
|
5343
|
-
xa({ withLocale: "en", translations: {} }), Object.keys(
|
|
5344
|
-
|
|
5314
|
+
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang: o = "en" } = t, { clientstyling: u = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: l = "" } = t, { playercurrency: c = "" } = t, { showvaults: d = "true" } = t, { showtotalbalance: h = "true" } = t, { showclosebutton: p = "true" } = t, { showcurrencysymbol: v = "true" } = t, b = null, N = null, _ = 0, O = 0, L = null, ae = null, D = null, ne = "", oe = !0, ue = !1, $ = !1, he = !1, Ie = !1, Y = [], me = [], Ke = [], J = [], j;
|
|
5315
|
+
xa({ withLocale: "en", translations: {} }), Object.keys(Pn).forEach((f) => {
|
|
5316
|
+
Hn(f, Pn[f]);
|
|
5345
5317
|
});
|
|
5346
|
-
const
|
|
5318
|
+
const st = () => {
|
|
5347
5319
|
wa(o);
|
|
5348
|
-
},
|
|
5349
|
-
fetch(l).then((
|
|
5350
|
-
Object.keys(
|
|
5351
|
-
|
|
5320
|
+
}, Ye = () => {
|
|
5321
|
+
fetch(l).then((f) => f.json()).then((f) => {
|
|
5322
|
+
Object.keys(f).forEach((x) => {
|
|
5323
|
+
Hn(x, f[x]);
|
|
5352
5324
|
});
|
|
5353
|
-
}).catch((
|
|
5354
|
-
console.error("There was a problem with the translations request.",
|
|
5325
|
+
}).catch((f) => {
|
|
5326
|
+
console.error("There was a problem with the translations request.", f);
|
|
5355
5327
|
});
|
|
5356
|
-
},
|
|
5357
|
-
let
|
|
5358
|
-
|
|
5359
|
-
},
|
|
5360
|
-
let
|
|
5361
|
-
fetch(
|
|
5362
|
-
|
|
5328
|
+
}, _e = () => {
|
|
5329
|
+
let f = document.createElement("style");
|
|
5330
|
+
f.innerHTML = u, j.appendChild(f);
|
|
5331
|
+
}, Le = () => {
|
|
5332
|
+
let f, x = new URL(s), w = document.createElement("style");
|
|
5333
|
+
fetch(x.href).then((A) => A.text()).then((A) => {
|
|
5334
|
+
w.innerHTML = A, f && clearTimeout(f), f = setTimeout(
|
|
5363
5335
|
() => {
|
|
5364
|
-
|
|
5336
|
+
j.appendChild(w);
|
|
5365
5337
|
},
|
|
5366
5338
|
1
|
|
5367
5339
|
);
|
|
5368
5340
|
});
|
|
5369
|
-
},
|
|
5370
|
-
|
|
5341
|
+
}, lt = () => {
|
|
5342
|
+
me.length !== 0 && (n(15, ue = !ue), window.postMessage(
|
|
5371
5343
|
{
|
|
5372
|
-
type:
|
|
5373
|
-
state:
|
|
5344
|
+
type: Xt.VaultDropdownToggled,
|
|
5345
|
+
state: ue
|
|
5374
5346
|
},
|
|
5375
5347
|
window.location.href
|
|
5376
5348
|
));
|
|
5377
|
-
},
|
|
5378
|
-
|
|
5349
|
+
}, Ce = () => {
|
|
5350
|
+
window.postMessage(
|
|
5379
5351
|
{
|
|
5380
|
-
type:
|
|
5352
|
+
type: Xt.VaultWidgetClosed
|
|
5381
5353
|
},
|
|
5382
5354
|
window.location.href
|
|
5383
5355
|
);
|
|
5384
|
-
},
|
|
5385
|
-
n(14,
|
|
5386
|
-
},
|
|
5387
|
-
n(14,
|
|
5388
|
-
}, Pe = () => {
|
|
5389
|
-
n(11, ie = null);
|
|
5356
|
+
}, Ne = () => {
|
|
5357
|
+
n(14, oe = !0), ge(), Je(), be(), fe(), window.postMessage({ type: Xt.VaultWidgetReset }, window.location.href);
|
|
5358
|
+
}, re = () => {
|
|
5359
|
+
n(14, oe = !0), n(9, O = 0);
|
|
5390
5360
|
}, ge = () => {
|
|
5391
|
-
n(
|
|
5361
|
+
n(11, ae = null);
|
|
5362
|
+
}, Je = () => {
|
|
5363
|
+
n(8, _ = 0), n(9, O = 0);
|
|
5392
5364
|
}, be = () => {
|
|
5393
|
-
n(13,
|
|
5394
|
-
},
|
|
5395
|
-
n(12,
|
|
5396
|
-
},
|
|
5397
|
-
|
|
5398
|
-
},
|
|
5399
|
-
let
|
|
5400
|
-
switch (n(12,
|
|
5401
|
-
case
|
|
5402
|
-
n(14,
|
|
5365
|
+
n(13, ne = "");
|
|
5366
|
+
}, fe = () => {
|
|
5367
|
+
n(12, D = null);
|
|
5368
|
+
}, ut = (f) => {
|
|
5369
|
+
f && n(13, ne = f);
|
|
5370
|
+
}, X = ({ type: f, message: x, source: w = "" }) => {
|
|
5371
|
+
let A;
|
|
5372
|
+
switch (n(12, D = { message: x, source: w, type: f }), f) {
|
|
5373
|
+
case Ee.error:
|
|
5374
|
+
n(14, oe = !0), window.postMessage({ type: w, data: { type: f, message: x } }, window.location.href);
|
|
5403
5375
|
break;
|
|
5404
|
-
case
|
|
5405
|
-
n(14,
|
|
5376
|
+
case Ee.success:
|
|
5377
|
+
n(14, oe = !0), window.postMessage({ type: w, data: { type: f, message: x } }, window.location.href), A && clearTimeout(A), A = setTimeout(
|
|
5406
5378
|
() => {
|
|
5407
|
-
|
|
5379
|
+
fe();
|
|
5408
5380
|
},
|
|
5409
5381
|
Ca
|
|
5410
5382
|
);
|
|
5411
5383
|
break;
|
|
5412
5384
|
}
|
|
5413
|
-
},
|
|
5414
|
-
const
|
|
5415
|
-
|
|
5416
|
-
}),
|
|
5417
|
-
const
|
|
5418
|
-
return
|
|
5419
|
-
type:
|
|
5420
|
-
message: R(
|
|
5421
|
-
source:
|
|
5385
|
+
}, Nt = () => new Promise((f, x) => {
|
|
5386
|
+
const w = D?.message.includes(Ta.InvalidSession);
|
|
5387
|
+
w && x(), (_ < 0 || _ === null || isNaN(Number(_))) && (re(), ge(), x(R("invalidValue"))), _ > b?.amount && (re(), ge(), x(R("exceededValue"))), _ === 0 && _ === 0 && !w && (Ne(), x()), (!b || !N) && !w && x(), be(), f();
|
|
5388
|
+
}), Te = async (f, x) => {
|
|
5389
|
+
const w = await f.json();
|
|
5390
|
+
return f?.status >= 200 && f?.status < 400 ? w : (x === K.CheckWalletExchangeError && re(), !$ && x === K.BalanceError && (n(16, $ = !0), n(17, he = !0)), !he && x === K.CurrenciesError && n(17, he = !0), X({
|
|
5391
|
+
type: Ee.error,
|
|
5392
|
+
message: R(w?.thirdPartyResponse?.code) || R(w?.thirdPartyResponse?.errorCode) || "generalError",
|
|
5393
|
+
source: x
|
|
5422
5394
|
}));
|
|
5423
|
-
},
|
|
5424
|
-
const
|
|
5425
|
-
fetch(
|
|
5395
|
+
}, Oe = () => new Promise((f, x) => {
|
|
5396
|
+
const w = new URL(`${a}/v1/player/${i}/wallet-exchange/currencies`);
|
|
5397
|
+
fetch(w, {
|
|
5426
5398
|
method: "GET",
|
|
5427
5399
|
headers: {
|
|
5428
5400
|
"X-SessionId": r,
|
|
5429
5401
|
"Content-Type": "application/json",
|
|
5430
5402
|
Accept: "application/json"
|
|
5431
5403
|
}
|
|
5432
|
-
}).then((
|
|
5433
|
-
|
|
5434
|
-
}).catch((
|
|
5435
|
-
|
|
5436
|
-
type:
|
|
5404
|
+
}).then((Z) => Te(Z, K.CurrenciesError)).then((Z) => {
|
|
5405
|
+
f(Z?.currencies);
|
|
5406
|
+
}).catch((Z) => {
|
|
5407
|
+
X({
|
|
5408
|
+
type: Ee.error,
|
|
5437
5409
|
message: R("generalError"),
|
|
5438
|
-
source:
|
|
5439
|
-
}),
|
|
5410
|
+
source: K.CurrenciesError
|
|
5411
|
+
}), x(), console.error("There was an error on the allowed currencies request.", Z);
|
|
5440
5412
|
}).finally(() => {
|
|
5441
5413
|
n(17, he = !0);
|
|
5442
5414
|
});
|
|
5443
|
-
}),
|
|
5444
|
-
const { items:
|
|
5445
|
-
n(10,
|
|
5446
|
-
let
|
|
5447
|
-
const
|
|
5448
|
-
for (const
|
|
5449
|
-
if (
|
|
5450
|
-
const
|
|
5451
|
-
if (
|
|
5452
|
-
const
|
|
5453
|
-
|
|
5454
|
-
...
|
|
5455
|
-
symbol: Aa[
|
|
5415
|
+
}), ee = ({ data: f, shouldUpdateSelectedCurrencies: x, allowed: w = [] }) => {
|
|
5416
|
+
const { items: A = [], totalAmount: Z = {}, totalRealAmount: se } = f || {};
|
|
5417
|
+
n(10, L = Object.entries(se || Z).map(([M = "", ye = 0]) => ({ currency: M, amount: ye }))[0]);
|
|
5418
|
+
let g = null;
|
|
5419
|
+
const H = new Map(w.map((M) => [M.code, M]));
|
|
5420
|
+
for (const M of A)
|
|
5421
|
+
if (M?.type === Ln.Real) {
|
|
5422
|
+
const ye = H.get(M?.currency);
|
|
5423
|
+
if (ye && ye.code === M?.currency) {
|
|
5424
|
+
const ce = {
|
|
5425
|
+
...M,
|
|
5426
|
+
...ye,
|
|
5427
|
+
symbol: Aa[M?.currency]
|
|
5456
5428
|
};
|
|
5457
|
-
n(
|
|
5429
|
+
n(36, Y = [...Y, ce]), M?.currency === L?.currency && n(10, L = { ...L, ...ce }), M?.currency !== L?.currency && M?.walletAccountType === Ln.Vault && n(19, me = [...me, ce]), x && M?.amount > 0 && n(5, b = L?.currency ? L : g), b && b?.currency === M?.currency && n(5, b = ce), N && N?.currency === M?.currency && n(6, N = ce);
|
|
5458
5430
|
}
|
|
5459
5431
|
}
|
|
5460
|
-
},
|
|
5461
|
-
const
|
|
5462
|
-
fetch(
|
|
5432
|
+
}, Re = (f = !0) => {
|
|
5433
|
+
const x = new URL(`${a}/v2/player/${i}/balance`);
|
|
5434
|
+
fetch(x, {
|
|
5463
5435
|
method: "GET",
|
|
5464
5436
|
headers: {
|
|
5465
5437
|
"X-SessionId": r,
|
|
5466
5438
|
"Content-Type": "application/json",
|
|
5467
5439
|
Accept: "application/json"
|
|
5468
5440
|
}
|
|
5469
|
-
}).then((
|
|
5470
|
-
|
|
5471
|
-
n(
|
|
5472
|
-
data:
|
|
5473
|
-
shouldUpdateSelectedCurrencies:
|
|
5474
|
-
allowed:
|
|
5441
|
+
}).then((A) => Te(A, K.BalanceError)).then((A) => {
|
|
5442
|
+
A && Oe().then((Z) => {
|
|
5443
|
+
n(36, Y = []), n(19, me = []), ee({
|
|
5444
|
+
data: A,
|
|
5445
|
+
shouldUpdateSelectedCurrencies: f,
|
|
5446
|
+
allowed: Z
|
|
5475
5447
|
});
|
|
5476
5448
|
});
|
|
5477
|
-
}).catch((
|
|
5478
|
-
|
|
5479
|
-
type:
|
|
5449
|
+
}).catch((A) => {
|
|
5450
|
+
X({
|
|
5451
|
+
type: Ee.error,
|
|
5480
5452
|
message: R("generalError"),
|
|
5481
|
-
source:
|
|
5482
|
-
}), console.error("There was an error with the player balance request.",
|
|
5453
|
+
source: K.BalanceError
|
|
5454
|
+
}), console.error("There was an error with the player balance request.", A);
|
|
5483
5455
|
}).finally(() => {
|
|
5484
|
-
n(16,
|
|
5456
|
+
n(16, $ = !0);
|
|
5485
5457
|
});
|
|
5486
|
-
},
|
|
5487
|
-
|
|
5488
|
-
const
|
|
5458
|
+
}, Q = Sa(() => {
|
|
5459
|
+
Nt().then(() => {
|
|
5460
|
+
const f = new URL(`${a}/v2/player/${i}/check/wallet-exchange`), x = {
|
|
5489
5461
|
userId: i,
|
|
5490
|
-
amount:
|
|
5462
|
+
amount: _,
|
|
5491
5463
|
currency: b?.currency,
|
|
5492
5464
|
fromCurrency: b?.currency,
|
|
5493
|
-
toCurrency:
|
|
5465
|
+
toCurrency: N?.currency,
|
|
5494
5466
|
payload: { PlayerCurrency: c }
|
|
5495
|
-
},
|
|
5467
|
+
}, w = {
|
|
5496
5468
|
method: "POST",
|
|
5497
5469
|
headers: {
|
|
5498
5470
|
"X-SessionId": r,
|
|
5499
5471
|
"Content-Type": "application/json",
|
|
5500
5472
|
Accept: "application/json"
|
|
5501
5473
|
},
|
|
5502
|
-
body:
|
|
5474
|
+
body: Nn(x)
|
|
5503
5475
|
};
|
|
5504
|
-
fetch(
|
|
5505
|
-
|
|
5506
|
-
}).catch((
|
|
5507
|
-
|
|
5508
|
-
type:
|
|
5476
|
+
fetch(f, w).then((A) => Te(A, K.CheckWalletExchangeError)).then((A) => {
|
|
5477
|
+
A && (D?.source === K.CheckWalletExchangeError && fe(), Array.isArray(A?.fees?.fees) && n(11, ae = A.fees.fees.find((Z) => Z.id)), Array.isArray(A?.walletActions) && n(9, O = A.walletActions.find((Z) => Z?.directionName === "Credit")?.amount || 0), _ > 0 && b?.currency && N?.currency && c && n(14, oe = !1));
|
|
5478
|
+
}).catch((A) => {
|
|
5479
|
+
X({
|
|
5480
|
+
type: Ee.error,
|
|
5509
5481
|
message: R("generalError"),
|
|
5510
|
-
source:
|
|
5511
|
-
}), console.error("There was a problem with the wallet exchange request.",
|
|
5482
|
+
source: K.CheckWalletExchangeError
|
|
5483
|
+
}), console.error("There was a problem with the wallet exchange request.", A);
|
|
5512
5484
|
});
|
|
5513
|
-
}).catch((
|
|
5514
|
-
|
|
5485
|
+
}).catch((f) => {
|
|
5486
|
+
ut(f);
|
|
5515
5487
|
});
|
|
5516
|
-
}, 500),
|
|
5517
|
-
const
|
|
5518
|
-
if (
|
|
5519
|
-
const [
|
|
5520
|
-
|
|
5488
|
+
}, 500), V = (f) => {
|
|
5489
|
+
const x = f.target.value;
|
|
5490
|
+
if (x.length <= Ba) {
|
|
5491
|
+
const [w, A] = x.split(".");
|
|
5492
|
+
A && A.length >= b?.precision && n(8, _ = parseFloat(w + "." + A.slice(0, b?.precision)));
|
|
5521
5493
|
}
|
|
5522
|
-
|
|
5523
|
-
},
|
|
5524
|
-
const
|
|
5525
|
-
[">", "<", ","].includes(
|
|
5526
|
-
},
|
|
5527
|
-
const
|
|
5528
|
-
n(18,
|
|
5529
|
-
const
|
|
5494
|
+
Q();
|
|
5495
|
+
}, Rt = (f) => {
|
|
5496
|
+
const x = f.data;
|
|
5497
|
+
[">", "<", ","].includes(x) && f.preventDefault(), x && !x.match(/[\d.]/) && f.preventDefault(), x === "." && f.target.value.includes(".") && f.preventDefault();
|
|
5498
|
+
}, ct = () => {
|
|
5499
|
+
const f = new URL(`${a}/v2/player/${i}/wallet-exchange`);
|
|
5500
|
+
n(18, Ie = !0);
|
|
5501
|
+
const x = {
|
|
5530
5502
|
userId: i,
|
|
5531
|
-
amount:
|
|
5503
|
+
amount: _,
|
|
5532
5504
|
currency: b?.currency,
|
|
5533
5505
|
fromCurrency: b?.currency,
|
|
5534
|
-
toCurrency:
|
|
5506
|
+
toCurrency: N?.currency,
|
|
5535
5507
|
payload: { PlayerCurrency: c }
|
|
5536
|
-
},
|
|
5508
|
+
}, w = {
|
|
5537
5509
|
method: "PUT",
|
|
5538
5510
|
headers: {
|
|
5539
5511
|
"X-SessionId": r,
|
|
5540
5512
|
"Content-Type": "application/json",
|
|
5541
5513
|
Accept: "application/json"
|
|
5542
5514
|
},
|
|
5543
|
-
body:
|
|
5515
|
+
body: Nn(x)
|
|
5544
5516
|
};
|
|
5545
|
-
fetch(
|
|
5546
|
-
|
|
5547
|
-
type:
|
|
5517
|
+
fetch(f, w).then((A) => Te(A, K.WalletExchangeError)).then((A) => {
|
|
5518
|
+
A && (X({
|
|
5519
|
+
type: Ee.success,
|
|
5548
5520
|
message: R("exchangeSuccess"),
|
|
5549
5521
|
source: "ExchangeSuccess"
|
|
5550
|
-
}),
|
|
5551
|
-
}).catch((
|
|
5552
|
-
|
|
5553
|
-
type:
|
|
5522
|
+
}), Re(!1));
|
|
5523
|
+
}).catch((A) => {
|
|
5524
|
+
X({
|
|
5525
|
+
type: Ee.error,
|
|
5554
5526
|
message: R("generalError"),
|
|
5555
|
-
source:
|
|
5556
|
-
}), console.error("There was an error with the wallet exchange request.",
|
|
5527
|
+
source: K.WalletExchangeError
|
|
5528
|
+
}), console.error("There was an error with the wallet exchange request.", A);
|
|
5557
5529
|
}).finally(() => {
|
|
5558
|
-
n(18,
|
|
5530
|
+
n(18, Ie = !1), Je(), ge();
|
|
5559
5531
|
});
|
|
5560
|
-
},
|
|
5561
|
-
const { data: { type:
|
|
5562
|
-
switch (
|
|
5563
|
-
case
|
|
5564
|
-
|
|
5532
|
+
}, qe = (f) => {
|
|
5533
|
+
const { data: { type: x } = {} } = f || {};
|
|
5534
|
+
switch (x) {
|
|
5535
|
+
case In.ResetVaultWidget:
|
|
5536
|
+
Ne();
|
|
5565
5537
|
break;
|
|
5566
|
-
case
|
|
5567
|
-
|
|
5538
|
+
case In.CloseVaultWidget:
|
|
5539
|
+
Ce();
|
|
5568
5540
|
break;
|
|
5569
5541
|
}
|
|
5570
5542
|
};
|
|
5571
|
-
Br(() => (window.addEventListener("message",
|
|
5572
|
-
window.removeEventListener("message",
|
|
5543
|
+
Br(() => (window.addEventListener("message", qe), () => {
|
|
5544
|
+
window.removeEventListener("message", qe);
|
|
5573
5545
|
}));
|
|
5574
|
-
function
|
|
5575
|
-
|
|
5546
|
+
function de() {
|
|
5547
|
+
_ = Et(this.value), n(8, _);
|
|
5576
5548
|
}
|
|
5577
|
-
function
|
|
5578
|
-
b =
|
|
5549
|
+
function ht(f) {
|
|
5550
|
+
b = f, n(5, b);
|
|
5579
5551
|
}
|
|
5580
|
-
function
|
|
5581
|
-
O =
|
|
5552
|
+
function kt() {
|
|
5553
|
+
O = Et(this.value), n(9, O);
|
|
5582
5554
|
}
|
|
5583
|
-
function
|
|
5584
|
-
|
|
5555
|
+
function ft(f) {
|
|
5556
|
+
N = f, n(6, N);
|
|
5585
5557
|
}
|
|
5586
|
-
function
|
|
5587
|
-
|
|
5588
|
-
|
|
5558
|
+
function dt(f) {
|
|
5559
|
+
Ue[f ? "unshift" : "push"](() => {
|
|
5560
|
+
j = f, n(7, j);
|
|
5589
5561
|
});
|
|
5590
5562
|
}
|
|
5591
|
-
return e.$$set = (
|
|
5592
|
-
"session" in
|
|
5563
|
+
return e.$$set = (f) => {
|
|
5564
|
+
"session" in f && n(0, r = f.session), "userid" in f && n(29, i = f.userid), "endpoint" in f && n(30, a = f.endpoint), "lang" in f && n(31, o = f.lang), "clientstyling" in f && n(32, u = f.clientstyling), "clientstylingurl" in f && n(33, s = f.clientstylingurl), "translationurl" in f && n(34, l = f.translationurl), "playercurrency" in f && n(35, c = f.playercurrency), "showvaults" in f && n(1, d = f.showvaults), "showtotalbalance" in f && n(2, h = f.showtotalbalance), "showclosebutton" in f && n(3, p = f.showclosebutton), "showcurrencysymbol" in f && n(4, v = f.showcurrencysymbol);
|
|
5593
5565
|
}, e.$$.update = () => {
|
|
5594
5566
|
e.$$.dirty[1] & /*lang*/
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5567
|
+
1 && o && st(), e.$$.dirty[0] & /*session, userid, endpoint*/
|
|
5568
|
+
1610612737 | e.$$.dirty[1] & /*playercurrency*/
|
|
5569
|
+
16 && r && i && a && c && Re(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5598
5570
|
128 | e.$$.dirty[1] & /*clientstyling*/
|
|
5599
|
-
|
|
5571
|
+
2 && u && j && _e(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5600
5572
|
128 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5601
|
-
|
|
5602
|
-
|
|
5573
|
+
4 && s && j && Le(), e.$$.dirty[1] & /*translationurl*/
|
|
5574
|
+
8 && l && Ye(), e.$$.dirty[0] & /*selectedCurrencyTo*/
|
|
5603
5575
|
64 | e.$$.dirty[1] & /*filteredBalances*/
|
|
5604
|
-
|
|
5576
|
+
32 && n(20, Ke = Y.filter((f) => f?.amount > 0 && f?.currency !== N?.currency)), e.$$.dirty[0] & /*selectedCurrencyFrom*/
|
|
5605
5577
|
32 | e.$$.dirty[1] & /*filteredBalances*/
|
|
5606
|
-
|
|
5578
|
+
32 && n(21, J = Y.filter((f) => b?.currency !== f?.currency));
|
|
5607
5579
|
}, [
|
|
5608
5580
|
r,
|
|
5609
|
-
f,
|
|
5610
|
-
h,
|
|
5611
5581
|
d,
|
|
5582
|
+
h,
|
|
5583
|
+
p,
|
|
5612
5584
|
v,
|
|
5613
5585
|
b,
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5586
|
+
N,
|
|
5587
|
+
j,
|
|
5588
|
+
_,
|
|
5617
5589
|
O,
|
|
5618
|
-
|
|
5619
|
-
ie,
|
|
5620
|
-
F,
|
|
5621
|
-
te,
|
|
5590
|
+
L,
|
|
5622
5591
|
ae,
|
|
5623
|
-
|
|
5624
|
-
X,
|
|
5625
|
-
he,
|
|
5626
|
-
Oe,
|
|
5627
|
-
le,
|
|
5628
|
-
Ee,
|
|
5629
|
-
Z,
|
|
5630
|
-
Y,
|
|
5631
|
-
ke,
|
|
5632
|
-
qe,
|
|
5592
|
+
D,
|
|
5633
5593
|
ne,
|
|
5594
|
+
oe,
|
|
5595
|
+
ue,
|
|
5596
|
+
$,
|
|
5597
|
+
he,
|
|
5598
|
+
Ie,
|
|
5599
|
+
me,
|
|
5600
|
+
Ke,
|
|
5601
|
+
J,
|
|
5602
|
+
lt,
|
|
5603
|
+
Ce,
|
|
5604
|
+
Ne,
|
|
5605
|
+
Q,
|
|
5634
5606
|
V,
|
|
5635
5607
|
Rt,
|
|
5636
|
-
|
|
5637
|
-
ft,
|
|
5608
|
+
ct,
|
|
5638
5609
|
i,
|
|
5639
5610
|
a,
|
|
5640
5611
|
o,
|
|
@@ -5642,31 +5613,31 @@ function Ja(e, t, n) {
|
|
|
5642
5613
|
s,
|
|
5643
5614
|
l,
|
|
5644
5615
|
c,
|
|
5645
|
-
|
|
5646
|
-
|
|
5616
|
+
Y,
|
|
5617
|
+
de,
|
|
5618
|
+
ht,
|
|
5647
5619
|
kt,
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
pe
|
|
5620
|
+
ft,
|
|
5621
|
+
dt
|
|
5651
5622
|
];
|
|
5652
5623
|
}
|
|
5653
|
-
class qa extends
|
|
5624
|
+
class qa extends un {
|
|
5654
5625
|
constructor(t) {
|
|
5655
|
-
super(),
|
|
5626
|
+
super(), sn(
|
|
5656
5627
|
this,
|
|
5657
5628
|
t,
|
|
5658
5629
|
Ja,
|
|
5659
5630
|
Ya,
|
|
5660
|
-
|
|
5631
|
+
Tt,
|
|
5661
5632
|
{
|
|
5662
5633
|
session: 0,
|
|
5663
|
-
userid:
|
|
5664
|
-
endpoint:
|
|
5665
|
-
lang:
|
|
5666
|
-
clientstyling:
|
|
5667
|
-
clientstylingurl:
|
|
5668
|
-
translationurl:
|
|
5669
|
-
playercurrency:
|
|
5634
|
+
userid: 29,
|
|
5635
|
+
endpoint: 30,
|
|
5636
|
+
lang: 31,
|
|
5637
|
+
clientstyling: 32,
|
|
5638
|
+
clientstylingurl: 33,
|
|
5639
|
+
translationurl: 34,
|
|
5640
|
+
playercurrency: 35,
|
|
5670
5641
|
showvaults: 1,
|
|
5671
5642
|
showtotalbalance: 2,
|
|
5672
5643
|
showclosebutton: 3,
|
|
@@ -5680,76 +5651,76 @@ class qa extends ln {
|
|
|
5680
5651
|
return this.$$.ctx[0];
|
|
5681
5652
|
}
|
|
5682
5653
|
set session(t) {
|
|
5683
|
-
this.$$set({ session: t }),
|
|
5654
|
+
this.$$set({ session: t }), G();
|
|
5684
5655
|
}
|
|
5685
5656
|
get userid() {
|
|
5686
|
-
return this.$$.ctx[
|
|
5657
|
+
return this.$$.ctx[29];
|
|
5687
5658
|
}
|
|
5688
5659
|
set userid(t) {
|
|
5689
|
-
this.$$set({ userid: t }),
|
|
5660
|
+
this.$$set({ userid: t }), G();
|
|
5690
5661
|
}
|
|
5691
5662
|
get endpoint() {
|
|
5692
|
-
return this.$$.ctx[
|
|
5663
|
+
return this.$$.ctx[30];
|
|
5693
5664
|
}
|
|
5694
5665
|
set endpoint(t) {
|
|
5695
|
-
this.$$set({ endpoint: t }),
|
|
5666
|
+
this.$$set({ endpoint: t }), G();
|
|
5696
5667
|
}
|
|
5697
5668
|
get lang() {
|
|
5698
|
-
return this.$$.ctx[
|
|
5669
|
+
return this.$$.ctx[31];
|
|
5699
5670
|
}
|
|
5700
5671
|
set lang(t) {
|
|
5701
|
-
this.$$set({ lang: t }),
|
|
5672
|
+
this.$$set({ lang: t }), G();
|
|
5702
5673
|
}
|
|
5703
5674
|
get clientstyling() {
|
|
5704
|
-
return this.$$.ctx[
|
|
5675
|
+
return this.$$.ctx[32];
|
|
5705
5676
|
}
|
|
5706
5677
|
set clientstyling(t) {
|
|
5707
|
-
this.$$set({ clientstyling: t }),
|
|
5678
|
+
this.$$set({ clientstyling: t }), G();
|
|
5708
5679
|
}
|
|
5709
5680
|
get clientstylingurl() {
|
|
5710
|
-
return this.$$.ctx[
|
|
5681
|
+
return this.$$.ctx[33];
|
|
5711
5682
|
}
|
|
5712
5683
|
set clientstylingurl(t) {
|
|
5713
|
-
this.$$set({ clientstylingurl: t }),
|
|
5684
|
+
this.$$set({ clientstylingurl: t }), G();
|
|
5714
5685
|
}
|
|
5715
5686
|
get translationurl() {
|
|
5716
|
-
return this.$$.ctx[
|
|
5687
|
+
return this.$$.ctx[34];
|
|
5717
5688
|
}
|
|
5718
5689
|
set translationurl(t) {
|
|
5719
|
-
this.$$set({ translationurl: t }),
|
|
5690
|
+
this.$$set({ translationurl: t }), G();
|
|
5720
5691
|
}
|
|
5721
5692
|
get playercurrency() {
|
|
5722
|
-
return this.$$.ctx[
|
|
5693
|
+
return this.$$.ctx[35];
|
|
5723
5694
|
}
|
|
5724
5695
|
set playercurrency(t) {
|
|
5725
|
-
this.$$set({ playercurrency: t }),
|
|
5696
|
+
this.$$set({ playercurrency: t }), G();
|
|
5726
5697
|
}
|
|
5727
5698
|
get showvaults() {
|
|
5728
5699
|
return this.$$.ctx[1];
|
|
5729
5700
|
}
|
|
5730
5701
|
set showvaults(t) {
|
|
5731
|
-
this.$$set({ showvaults: t }),
|
|
5702
|
+
this.$$set({ showvaults: t }), G();
|
|
5732
5703
|
}
|
|
5733
5704
|
get showtotalbalance() {
|
|
5734
5705
|
return this.$$.ctx[2];
|
|
5735
5706
|
}
|
|
5736
5707
|
set showtotalbalance(t) {
|
|
5737
|
-
this.$$set({ showtotalbalance: t }),
|
|
5708
|
+
this.$$set({ showtotalbalance: t }), G();
|
|
5738
5709
|
}
|
|
5739
5710
|
get showclosebutton() {
|
|
5740
5711
|
return this.$$.ctx[3];
|
|
5741
5712
|
}
|
|
5742
5713
|
set showclosebutton(t) {
|
|
5743
|
-
this.$$set({ showclosebutton: t }),
|
|
5714
|
+
this.$$set({ showclosebutton: t }), G();
|
|
5744
5715
|
}
|
|
5745
5716
|
get showcurrencysymbol() {
|
|
5746
5717
|
return this.$$.ctx[4];
|
|
5747
5718
|
}
|
|
5748
5719
|
set showcurrencysymbol(t) {
|
|
5749
|
-
this.$$set({ showcurrencysymbol: t }),
|
|
5720
|
+
this.$$set({ showcurrencysymbol: t }), G();
|
|
5750
5721
|
}
|
|
5751
5722
|
}
|
|
5752
|
-
|
|
5723
|
+
ln(qa, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, showvaults: {}, showtotalbalance: {}, showclosebutton: {}, showcurrencysymbol: {} }, [], [], !0);
|
|
5753
5724
|
export {
|
|
5754
5725
|
qa as P
|
|
5755
5726
|
};
|