@everymatrix/player-account-vault 0.19.11 → 0.19.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerAccountVault-B-jaJVWl.cjs +3 -0
- package/components/{PlayerAccountVault-CaHAbTnV.js → PlayerAccountVault-BtEskMQw.js} +956 -955
- package/components/{PlayerAccountVault-DSv7WtZd.js → PlayerAccountVault-CAoIke7v.js} +588 -588
- package/es2015/player-account-vault.cjs +1 -1
- package/es2015/player-account-vault.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountVault-DAU8Ricg.cjs +0 -3
|
@@ -2,29 +2,29 @@ var Lr = Object.defineProperty, Nr = Object.defineProperties;
|
|
|
2
2
|
var Rr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var wn = Object.getOwnPropertySymbols;
|
|
4
4
|
var Or = Object.prototype.hasOwnProperty, Dr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Gt = (e, t, n) => t in e ? Lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fe = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
Or.call(t, n) &&
|
|
7
|
+
Or.call(t, n) && Gt(e, n, t[n]);
|
|
8
8
|
if (wn)
|
|
9
9
|
for (var n of wn(t))
|
|
10
|
-
Dr.call(t, n) &&
|
|
10
|
+
Dr.call(t, n) && Gt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var le = (e, t, n) => (
|
|
14
|
-
var
|
|
15
|
-
var
|
|
12
|
+
}, $t = (e, t) => Nr(e, Rr(t));
|
|
13
|
+
var le = (e, t, n) => (Gt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var jt = (e, t, n) => new Promise((r, i) => {
|
|
15
|
+
var o = (l) => {
|
|
16
16
|
try {
|
|
17
17
|
s(n.next(l));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, a = (l) => {
|
|
22
22
|
try {
|
|
23
23
|
s(n.throw(l));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
}, s = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(
|
|
27
|
+
}, s = (l) => l.done ? r(l.value) : Promise.resolve(l.value).then(o, a);
|
|
28
28
|
s((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function L() {
|
|
@@ -38,10 +38,10 @@ function An() {
|
|
|
38
38
|
function we(e) {
|
|
39
39
|
e.forEach(nr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function pt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Nt(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
function Mr(e) {
|
|
@@ -61,7 +61,7 @@ function kr(e) {
|
|
|
61
61
|
return rr(e, (n) => t = n)(), t;
|
|
62
62
|
}
|
|
63
63
|
function Ur(e) {
|
|
64
|
-
return e &&
|
|
64
|
+
return e && pt(e.destroy) ? e.destroy : L;
|
|
65
65
|
}
|
|
66
66
|
function v(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
@@ -126,7 +126,7 @@ function $r(e) {
|
|
|
126
126
|
function b(e, t, n) {
|
|
127
127
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function St(e) {
|
|
130
130
|
return e === "" ? null : +e;
|
|
131
131
|
}
|
|
132
132
|
function jr(e) {
|
|
@@ -136,7 +136,7 @@ function re(e, t) {
|
|
|
136
136
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
137
137
|
t);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function _t(e, t) {
|
|
140
140
|
e.value = t == null ? "" : t;
|
|
141
141
|
}
|
|
142
142
|
function ue(e, t, n) {
|
|
@@ -151,73 +151,73 @@ function Xr(e) {
|
|
|
151
151
|
}
|
|
152
152
|
), t;
|
|
153
153
|
}
|
|
154
|
-
let
|
|
155
|
-
function
|
|
156
|
-
|
|
154
|
+
let ut;
|
|
155
|
+
function lt(e) {
|
|
156
|
+
ut = e;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
if (!
|
|
158
|
+
function or() {
|
|
159
|
+
if (!ut)
|
|
160
160
|
throw new Error("Function called outside component initialization");
|
|
161
|
-
return
|
|
161
|
+
return ut;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
|
|
163
|
+
function ar(e) {
|
|
164
|
+
or().$$.on_mount.push(e);
|
|
165
165
|
}
|
|
166
166
|
function Wr(e) {
|
|
167
|
-
|
|
167
|
+
or().$$.on_destroy.push(e);
|
|
168
168
|
}
|
|
169
|
-
const
|
|
170
|
-
let
|
|
171
|
-
const
|
|
172
|
-
let
|
|
169
|
+
const je = [], We = [];
|
|
170
|
+
let Xe = [];
|
|
171
|
+
const en = [], zr = /* @__PURE__ */ Promise.resolve();
|
|
172
|
+
let tn = !1;
|
|
173
173
|
function Zr() {
|
|
174
|
-
|
|
174
|
+
tn || (tn = !0, zr.then(G));
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
|
|
176
|
+
function nn(e) {
|
|
177
|
+
Xe.push(e);
|
|
178
178
|
}
|
|
179
179
|
function Tn(e) {
|
|
180
|
-
|
|
180
|
+
en.push(e);
|
|
181
181
|
}
|
|
182
|
-
const
|
|
183
|
-
let
|
|
182
|
+
const Xt = /* @__PURE__ */ new Set();
|
|
183
|
+
let Ge = 0;
|
|
184
184
|
function G() {
|
|
185
|
-
if (
|
|
185
|
+
if (Ge !== 0)
|
|
186
186
|
return;
|
|
187
|
-
const e =
|
|
187
|
+
const e = ut;
|
|
188
188
|
do {
|
|
189
189
|
try {
|
|
190
|
-
for (;
|
|
191
|
-
const t =
|
|
192
|
-
|
|
190
|
+
for (; Ge < je.length; ) {
|
|
191
|
+
const t = je[Ge];
|
|
192
|
+
Ge++, lt(t), qr(t.$$);
|
|
193
193
|
}
|
|
194
194
|
} catch (t) {
|
|
195
|
-
throw
|
|
195
|
+
throw je.length = 0, Ge = 0, t;
|
|
196
196
|
}
|
|
197
|
-
for (
|
|
198
|
-
|
|
199
|
-
for (let t = 0; t <
|
|
200
|
-
const n =
|
|
201
|
-
|
|
197
|
+
for (lt(null), je.length = 0, Ge = 0; We.length; )
|
|
198
|
+
We.pop()();
|
|
199
|
+
for (let t = 0; t < Xe.length; t += 1) {
|
|
200
|
+
const n = Xe[t];
|
|
201
|
+
Xt.has(n) || (Xt.add(n), n());
|
|
202
202
|
}
|
|
203
|
-
|
|
204
|
-
} while (
|
|
205
|
-
for (;
|
|
206
|
-
|
|
207
|
-
|
|
203
|
+
Xe.length = 0;
|
|
204
|
+
} while (je.length);
|
|
205
|
+
for (; en.length; )
|
|
206
|
+
en.pop()();
|
|
207
|
+
tn = !1, Xt.clear(), lt(e);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function qr(e) {
|
|
210
210
|
if (e.fragment !== null) {
|
|
211
211
|
e.update(), we(e.before_update);
|
|
212
212
|
const t = e.dirty;
|
|
213
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
213
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(nn);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
function Kr(e) {
|
|
217
217
|
const t = [], n = [];
|
|
218
|
-
|
|
218
|
+
Xe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Xe = t;
|
|
219
219
|
}
|
|
220
|
-
const
|
|
220
|
+
const At = /* @__PURE__ */ new Set();
|
|
221
221
|
let Ne;
|
|
222
222
|
function Re() {
|
|
223
223
|
Ne = {
|
|
@@ -231,50 +231,50 @@ function Oe() {
|
|
|
231
231
|
Ne.r || we(Ne.c), Ne = Ne.p;
|
|
232
232
|
}
|
|
233
233
|
function $(e, t) {
|
|
234
|
-
e && e.i && (
|
|
234
|
+
e && e.i && (At.delete(e), e.i(t));
|
|
235
235
|
}
|
|
236
236
|
function z(e, t, n, r) {
|
|
237
237
|
if (e && e.o) {
|
|
238
|
-
if (
|
|
238
|
+
if (At.has(e))
|
|
239
239
|
return;
|
|
240
|
-
|
|
241
|
-
|
|
240
|
+
At.add(e), Ne.c.push(() => {
|
|
241
|
+
At.delete(e), r && (n && e.d(1), r());
|
|
242
242
|
}), e.o(t);
|
|
243
243
|
} else
|
|
244
244
|
r && r();
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Ht(e) {
|
|
247
247
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
248
248
|
}
|
|
249
249
|
function Bn(e, t, n) {
|
|
250
250
|
const r = e.$$.props[t];
|
|
251
251
|
r !== void 0 && (e.$$.bound[r] = n, n(e.$$.ctx[r]));
|
|
252
252
|
}
|
|
253
|
-
function
|
|
253
|
+
function ct(e) {
|
|
254
254
|
e && e.c();
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function ze(e, t, n) {
|
|
257
257
|
const { fragment: r, after_update: i } = e.$$;
|
|
258
|
-
r && r.m(t, n),
|
|
259
|
-
const
|
|
260
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
261
|
-
}), i.forEach(
|
|
258
|
+
r && r.m(t, n), nn(() => {
|
|
259
|
+
const o = e.$$.on_mount.map(nr).filter(pt);
|
|
260
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : we(o), e.$$.on_mount = [];
|
|
261
|
+
}), i.forEach(nn);
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function Ze(e, t) {
|
|
264
264
|
const n = e.$$;
|
|
265
265
|
n.fragment !== null && (Kr(n.after_update), we(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
e.$$.dirty[0] === -1 && (
|
|
267
|
+
function Qr(e, t) {
|
|
268
|
+
e.$$.dirty[0] === -1 && (je.push(e), Zr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
const l =
|
|
272
|
-
|
|
270
|
+
function mn(e, t, n, r, i, o, a = null, s = [-1]) {
|
|
271
|
+
const l = ut;
|
|
272
|
+
lt(e);
|
|
273
273
|
const u = e.$$ = {
|
|
274
274
|
fragment: null,
|
|
275
275
|
ctx: [],
|
|
276
276
|
// state
|
|
277
|
-
props:
|
|
277
|
+
props: o,
|
|
278
278
|
update: L,
|
|
279
279
|
not_equal: i,
|
|
280
280
|
bound: An(),
|
|
@@ -291,20 +291,20 @@ function pn(e, t, n, r, i, a, o = null, s = [-1]) {
|
|
|
291
291
|
skip_bound: !1,
|
|
292
292
|
root: t.target || l.$$.root
|
|
293
293
|
};
|
|
294
|
-
|
|
294
|
+
a && a(u.root);
|
|
295
295
|
let c = !1;
|
|
296
296
|
if (u.ctx = n ? n(e, t.props || {}, (f, h, ...m) => {
|
|
297
297
|
const _ = m.length ? m[0] : h;
|
|
298
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = _) && (!u.skip_bound && u.bound[f] && u.bound[f](_), c &&
|
|
298
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = _) && (!u.skip_bound && u.bound[f] && u.bound[f](_), c && Qr(e, f)), h;
|
|
299
299
|
}) : [], u.update(), c = !0, we(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
300
300
|
if (t.hydrate) {
|
|
301
301
|
const f = jr(t.target);
|
|
302
302
|
u.fragment && u.fragment.l(f), f.forEach(S);
|
|
303
303
|
} else
|
|
304
304
|
u.fragment && u.fragment.c();
|
|
305
|
-
t.intro && $(e.$$.fragment),
|
|
305
|
+
t.intro && $(e.$$.fragment), ze(e, t.target, t.anchor), G();
|
|
306
306
|
}
|
|
307
|
-
|
|
307
|
+
lt(l);
|
|
308
308
|
}
|
|
309
309
|
let sr;
|
|
310
310
|
typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
@@ -344,24 +344,24 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
connectedCallback() {
|
|
347
|
-
return
|
|
347
|
+
return jt(this, null, function* () {
|
|
348
348
|
if (this.$$cn = !0, !this.$$c) {
|
|
349
|
-
let t = function(
|
|
349
|
+
let t = function(o) {
|
|
350
350
|
return () => {
|
|
351
|
-
let
|
|
351
|
+
let a;
|
|
352
352
|
return {
|
|
353
353
|
c: function() {
|
|
354
|
-
|
|
354
|
+
a = A("slot"), o !== "default" && b(a, "name", o);
|
|
355
355
|
},
|
|
356
356
|
/**
|
|
357
357
|
* @param {HTMLElement} target
|
|
358
358
|
* @param {HTMLElement} [anchor]
|
|
359
359
|
*/
|
|
360
360
|
m: function(u, c) {
|
|
361
|
-
H(u,
|
|
361
|
+
H(u, a, c);
|
|
362
362
|
},
|
|
363
363
|
d: function(u) {
|
|
364
|
-
u && S(
|
|
364
|
+
u && S(a);
|
|
365
365
|
}
|
|
366
366
|
};
|
|
367
367
|
};
|
|
@@ -369,17 +369,17 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
369
369
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
370
370
|
return;
|
|
371
371
|
const n = {}, r = Xr(this);
|
|
372
|
-
for (const
|
|
373
|
-
|
|
374
|
-
for (const
|
|
375
|
-
const
|
|
376
|
-
|
|
372
|
+
for (const o of this.$$s)
|
|
373
|
+
o in r && (n[o] = [t(o)]);
|
|
374
|
+
for (const o of this.attributes) {
|
|
375
|
+
const a = this.$$g_p(o.name);
|
|
376
|
+
a in this.$$d || (this.$$d[a] = Ct(a, o.value, this.$$p_d, "toProp"));
|
|
377
377
|
}
|
|
378
|
-
for (const
|
|
379
|
-
!(
|
|
378
|
+
for (const o in this.$$p_d)
|
|
379
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
380
380
|
this.$$c = new this.$$ctor({
|
|
381
381
|
target: this.shadowRoot || this,
|
|
382
|
-
props:
|
|
382
|
+
props: $t(Fe({}, this.$$d), {
|
|
383
383
|
$$slots: n,
|
|
384
384
|
$$scope: {
|
|
385
385
|
ctx: []
|
|
@@ -388,23 +388,23 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
388
388
|
});
|
|
389
389
|
const i = () => {
|
|
390
390
|
this.$$r = !0;
|
|
391
|
-
for (const
|
|
392
|
-
if (this.$$d[
|
|
393
|
-
const
|
|
394
|
-
|
|
395
|
-
this.$$d[
|
|
391
|
+
for (const o in this.$$p_d)
|
|
392
|
+
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
393
|
+
const a = Ct(
|
|
394
|
+
o,
|
|
395
|
+
this.$$d[o],
|
|
396
396
|
this.$$p_d,
|
|
397
397
|
"toAttribute"
|
|
398
398
|
);
|
|
399
|
-
|
|
399
|
+
a == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, a);
|
|
400
400
|
}
|
|
401
401
|
this.$$r = !1;
|
|
402
402
|
};
|
|
403
403
|
this.$$c.$$.after_update.push(i), i();
|
|
404
|
-
for (const
|
|
405
|
-
for (const
|
|
406
|
-
const s = this.$$c.$on(
|
|
407
|
-
this.$$l_u.set(
|
|
404
|
+
for (const o in this.$$l)
|
|
405
|
+
for (const a of this.$$l[o]) {
|
|
406
|
+
const s = this.$$c.$on(o, a);
|
|
407
|
+
this.$$l_u.set(a, s);
|
|
408
408
|
}
|
|
409
409
|
this.$$l = {};
|
|
410
410
|
}
|
|
@@ -414,7 +414,7 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
414
414
|
// and setting attributes through setAttribute etc, this is helpful
|
|
415
415
|
attributeChangedCallback(t, n, r) {
|
|
416
416
|
var i;
|
|
417
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
417
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ct(t, r, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
418
418
|
}
|
|
419
419
|
disconnectedCallback() {
|
|
420
420
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -427,9 +427,9 @@ typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
|
427
427
|
) || t;
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
|
-
function
|
|
431
|
-
var
|
|
432
|
-
const i = (
|
|
430
|
+
function Ct(e, t, n, r) {
|
|
431
|
+
var o;
|
|
432
|
+
const i = (o = n[e]) == null ? void 0 : o.type;
|
|
433
433
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
434
434
|
return t;
|
|
435
435
|
if (r === "toAttribute")
|
|
@@ -457,8 +457,8 @@ function At(e, t, n, r) {
|
|
|
457
457
|
return t;
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
function
|
|
461
|
-
let
|
|
460
|
+
function gn(e, t, n, r, i, o) {
|
|
461
|
+
let a = class extends sr {
|
|
462
462
|
constructor() {
|
|
463
463
|
super(e, n, i), this.$$p_d = t;
|
|
464
464
|
}
|
|
@@ -469,26 +469,26 @@ function mn(e, t, n, r, i, a) {
|
|
|
469
469
|
}
|
|
470
470
|
};
|
|
471
471
|
return Object.keys(t).forEach((s) => {
|
|
472
|
-
Object.defineProperty(
|
|
472
|
+
Object.defineProperty(a.prototype, s, {
|
|
473
473
|
get() {
|
|
474
474
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
475
475
|
},
|
|
476
476
|
set(l) {
|
|
477
477
|
var u;
|
|
478
|
-
l =
|
|
478
|
+
l = Ct(s, l, t), this.$$d[s] = l, (u = this.$$c) == null || u.$set({ [s]: l });
|
|
479
479
|
}
|
|
480
480
|
});
|
|
481
481
|
}), r.forEach((s) => {
|
|
482
|
-
Object.defineProperty(
|
|
482
|
+
Object.defineProperty(a.prototype, s, {
|
|
483
483
|
get() {
|
|
484
484
|
var l;
|
|
485
485
|
return (l = this.$$c) == null ? void 0 : l[s];
|
|
486
486
|
}
|
|
487
487
|
});
|
|
488
488
|
}), e.element = /** @type {any} */
|
|
489
|
-
|
|
489
|
+
a, a;
|
|
490
490
|
}
|
|
491
|
-
class
|
|
491
|
+
class bn {
|
|
492
492
|
constructor() {
|
|
493
493
|
/**
|
|
494
494
|
* ### PRIVATE API
|
|
@@ -509,7 +509,7 @@ class gn {
|
|
|
509
509
|
}
|
|
510
510
|
/** @returns {void} */
|
|
511
511
|
$destroy() {
|
|
512
|
-
|
|
512
|
+
Ze(this, 1), this.$destroy = L;
|
|
513
513
|
}
|
|
514
514
|
/**
|
|
515
515
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -518,7 +518,7 @@ class gn {
|
|
|
518
518
|
* @returns {() => void}
|
|
519
519
|
*/
|
|
520
520
|
$on(t, n) {
|
|
521
|
-
if (!
|
|
521
|
+
if (!pt(n))
|
|
522
522
|
return L;
|
|
523
523
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
524
524
|
return r.push(n), () => {
|
|
@@ -534,46 +534,46 @@ class gn {
|
|
|
534
534
|
this.$$set && !Mr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
const
|
|
538
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
539
|
-
const
|
|
540
|
-
function
|
|
537
|
+
const Yr = "4";
|
|
538
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Yr);
|
|
539
|
+
const $e = [];
|
|
540
|
+
function Jr(e, t) {
|
|
541
541
|
return {
|
|
542
|
-
subscribe:
|
|
542
|
+
subscribe: Rt(e, t).subscribe
|
|
543
543
|
};
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function Rt(e, t = L) {
|
|
546
546
|
let n;
|
|
547
547
|
const r = /* @__PURE__ */ new Set();
|
|
548
548
|
function i(s) {
|
|
549
|
-
if (
|
|
550
|
-
const l =
|
|
549
|
+
if (Nt(e, s) && (e = s, n)) {
|
|
550
|
+
const l = !$e.length;
|
|
551
551
|
for (const u of r)
|
|
552
|
-
u[1](),
|
|
552
|
+
u[1](), $e.push(u, e);
|
|
553
553
|
if (l) {
|
|
554
|
-
for (let u = 0; u <
|
|
555
|
-
|
|
556
|
-
|
|
554
|
+
for (let u = 0; u < $e.length; u += 2)
|
|
555
|
+
$e[u][0]($e[u + 1]);
|
|
556
|
+
$e.length = 0;
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function o(s) {
|
|
561
561
|
i(s(e));
|
|
562
562
|
}
|
|
563
|
-
function
|
|
563
|
+
function a(s, l = L) {
|
|
564
564
|
const u = [s, l];
|
|
565
|
-
return r.add(u), r.size === 1 && (n = t(i,
|
|
565
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || L), s(e), () => {
|
|
566
566
|
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
|
-
return { set: i, update:
|
|
569
|
+
return { set: i, update: o, subscribe: a };
|
|
570
570
|
}
|
|
571
571
|
function Je(e, t, n) {
|
|
572
572
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
573
573
|
if (!i.every(Boolean))
|
|
574
574
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
575
|
-
const
|
|
576
|
-
return
|
|
575
|
+
const o = t.length < 2;
|
|
576
|
+
return Jr(n, (a, s) => {
|
|
577
577
|
let l = !1;
|
|
578
578
|
const u = [];
|
|
579
579
|
let c = 0, f = L;
|
|
@@ -581,16 +581,16 @@ function Je(e, t, n) {
|
|
|
581
581
|
if (c)
|
|
582
582
|
return;
|
|
583
583
|
f();
|
|
584
|
-
const _ = t(r ? u[0] : u,
|
|
585
|
-
|
|
584
|
+
const _ = t(r ? u[0] : u, a, s);
|
|
585
|
+
o ? a(_) : f = pt(_) ? _ : L;
|
|
586
586
|
}, m = i.map(
|
|
587
|
-
(_,
|
|
587
|
+
(_, d) => rr(
|
|
588
588
|
_,
|
|
589
589
|
(E) => {
|
|
590
|
-
u[
|
|
590
|
+
u[d] = E, c &= ~(1 << d), l && h();
|
|
591
591
|
},
|
|
592
592
|
() => {
|
|
593
|
-
c |= 1 <<
|
|
593
|
+
c |= 1 << d;
|
|
594
594
|
}
|
|
595
595
|
)
|
|
596
596
|
);
|
|
@@ -610,28 +610,28 @@ function ni(e) {
|
|
|
610
610
|
}
|
|
611
611
|
function ri(e) {
|
|
612
612
|
var t = Object.prototype.toString.call(e);
|
|
613
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
613
|
+
return t === "[object RegExp]" || t === "[object Date]" || ai(e);
|
|
614
614
|
}
|
|
615
|
-
var ii = typeof Symbol == "function" && Symbol.for,
|
|
616
|
-
function
|
|
617
|
-
return e.$$typeof ===
|
|
615
|
+
var ii = typeof Symbol == "function" && Symbol.for, oi = ii ? Symbol.for("react.element") : 60103;
|
|
616
|
+
function ai(e) {
|
|
617
|
+
return e.$$typeof === oi;
|
|
618
618
|
}
|
|
619
619
|
function si(e) {
|
|
620
620
|
return Array.isArray(e) ? [] : {};
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
622
|
+
function ht(e, t) {
|
|
623
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? qe(si(e), e, t) : e;
|
|
624
624
|
}
|
|
625
625
|
function li(e, t, n) {
|
|
626
626
|
return e.concat(t).map(function(r) {
|
|
627
|
-
return
|
|
627
|
+
return ht(r, n);
|
|
628
628
|
});
|
|
629
629
|
}
|
|
630
630
|
function ui(e, t) {
|
|
631
631
|
if (!t.customMerge)
|
|
632
|
-
return
|
|
632
|
+
return qe;
|
|
633
633
|
var n = t.customMerge(e);
|
|
634
|
-
return typeof n == "function" ? n :
|
|
634
|
+
return typeof n == "function" ? n : qe;
|
|
635
635
|
}
|
|
636
636
|
function ci(e) {
|
|
637
637
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -654,37 +654,37 @@ function hi(e, t) {
|
|
|
654
654
|
function fi(e, t, n) {
|
|
655
655
|
var r = {};
|
|
656
656
|
return n.isMergeableObject(e) && Sn(e).forEach(function(i) {
|
|
657
|
-
r[i] =
|
|
657
|
+
r[i] = ht(e[i], n);
|
|
658
658
|
}), Sn(t).forEach(function(i) {
|
|
659
|
-
hi(e, i) || (lr(e, i) && n.isMergeableObject(t[i]) ? r[i] = ui(i, n)(e[i], t[i], n) : r[i] =
|
|
659
|
+
hi(e, i) || (lr(e, i) && n.isMergeableObject(t[i]) ? r[i] = ui(i, n)(e[i], t[i], n) : r[i] = ht(t[i], n));
|
|
660
660
|
}), r;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
n = n || {}, n.arrayMerge = n.arrayMerge || li, n.isMergeableObject = n.isMergeableObject || ti, n.cloneUnlessOtherwiseSpecified =
|
|
664
|
-
var r = Array.isArray(t), i = Array.isArray(e),
|
|
665
|
-
return
|
|
662
|
+
function qe(e, t, n) {
|
|
663
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || li, n.isMergeableObject = n.isMergeableObject || ti, n.cloneUnlessOtherwiseSpecified = ht;
|
|
664
|
+
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
665
|
+
return o ? r ? n.arrayMerge(e, t, n) : fi(e, t, n) : ht(t, n);
|
|
666
666
|
}
|
|
667
|
-
|
|
667
|
+
qe.all = function(t, n) {
|
|
668
668
|
if (!Array.isArray(t))
|
|
669
669
|
throw new Error("first argument should be an array");
|
|
670
670
|
return t.reduce(function(r, i) {
|
|
671
|
-
return
|
|
671
|
+
return qe(r, i, n);
|
|
672
672
|
}, {});
|
|
673
673
|
};
|
|
674
|
-
var
|
|
675
|
-
const mi = /* @__PURE__ */ ei(
|
|
676
|
-
var
|
|
677
|
-
return
|
|
674
|
+
var pi = qe, di = pi;
|
|
675
|
+
const mi = /* @__PURE__ */ ei(di);
|
|
676
|
+
var rn = function(e, t) {
|
|
677
|
+
return rn = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
678
678
|
n.__proto__ = r;
|
|
679
679
|
} || function(n, r) {
|
|
680
680
|
for (var i in r)
|
|
681
681
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
682
|
-
},
|
|
682
|
+
}, rn(e, t);
|
|
683
683
|
};
|
|
684
|
-
function
|
|
684
|
+
function Ot(e, t) {
|
|
685
685
|
if (typeof t != "function" && t !== null)
|
|
686
686
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
687
|
-
|
|
687
|
+
rn(e, t);
|
|
688
688
|
function n() {
|
|
689
689
|
this.constructor = e;
|
|
690
690
|
}
|
|
@@ -694,8 +694,8 @@ var me = function() {
|
|
|
694
694
|
return me = Object.assign || function(t) {
|
|
695
695
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
696
696
|
n = arguments[r];
|
|
697
|
-
for (var
|
|
698
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
697
|
+
for (var o in n)
|
|
698
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
699
699
|
}
|
|
700
700
|
return t;
|
|
701
701
|
}, me.apply(this, arguments);
|
|
@@ -709,13 +709,13 @@ function gi(e, t) {
|
|
|
709
709
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
710
710
|
return n;
|
|
711
711
|
}
|
|
712
|
-
function
|
|
712
|
+
function Wt(e, t, n) {
|
|
713
713
|
if (n || arguments.length === 2)
|
|
714
|
-
for (var r = 0, i = t.length,
|
|
715
|
-
(
|
|
716
|
-
return e.concat(
|
|
714
|
+
for (var r = 0, i = t.length, o; r < i; r++)
|
|
715
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
716
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
717
717
|
}
|
|
718
|
-
function
|
|
718
|
+
function zt(e, t) {
|
|
719
719
|
var n = t && t.cache ? t.cache : wi, r = t && t.serializer ? t.serializer : _i, i = t && t.strategy ? t.strategy : vi;
|
|
720
720
|
return i(e, {
|
|
721
721
|
cache: n,
|
|
@@ -726,12 +726,12 @@ function bi(e) {
|
|
|
726
726
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
727
727
|
}
|
|
728
728
|
function yi(e, t, n, r) {
|
|
729
|
-
var i = bi(r) ? r : n(r),
|
|
730
|
-
return typeof
|
|
729
|
+
var i = bi(r) ? r : n(r), o = t.get(i);
|
|
730
|
+
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
731
731
|
}
|
|
732
732
|
function ur(e, t, n) {
|
|
733
|
-
var r = Array.prototype.slice.call(arguments, 3), i = n(r),
|
|
734
|
-
return typeof
|
|
733
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
734
|
+
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
735
735
|
}
|
|
736
736
|
function cr(e, t, n, r, i) {
|
|
737
737
|
return n.bind(t, e, r, i);
|
|
@@ -761,30 +761,30 @@ var _i = function() {
|
|
|
761
761
|
create: function() {
|
|
762
762
|
return new xi();
|
|
763
763
|
}
|
|
764
|
-
},
|
|
764
|
+
}, Zt = {
|
|
765
765
|
variadic: Ei
|
|
766
|
-
},
|
|
767
|
-
return
|
|
766
|
+
}, It = function() {
|
|
767
|
+
return It = Object.assign || function(t) {
|
|
768
768
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
769
769
|
n = arguments[r];
|
|
770
|
-
for (var
|
|
771
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
770
|
+
for (var o in n)
|
|
771
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
772
772
|
}
|
|
773
773
|
return t;
|
|
774
|
-
},
|
|
774
|
+
}, It.apply(this, arguments);
|
|
775
775
|
};
|
|
776
|
-
var
|
|
776
|
+
var P;
|
|
777
777
|
(function(e) {
|
|
778
778
|
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";
|
|
779
|
-
})(
|
|
779
|
+
})(P || (P = {}));
|
|
780
780
|
var U;
|
|
781
781
|
(function(e) {
|
|
782
782
|
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";
|
|
783
783
|
})(U || (U = {}));
|
|
784
|
-
var
|
|
784
|
+
var Ke;
|
|
785
785
|
(function(e) {
|
|
786
786
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
787
|
-
})(
|
|
787
|
+
})(Ke || (Ke = {}));
|
|
788
788
|
function Hn(e) {
|
|
789
789
|
return e.type === U.literal;
|
|
790
790
|
}
|
|
@@ -797,10 +797,10 @@ function hr(e) {
|
|
|
797
797
|
function fr(e) {
|
|
798
798
|
return e.type === U.date;
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function pr(e) {
|
|
801
801
|
return e.type === U.time;
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function dr(e) {
|
|
804
804
|
return e.type === U.select;
|
|
805
805
|
}
|
|
806
806
|
function mr(e) {
|
|
@@ -813,10 +813,10 @@ function gr(e) {
|
|
|
813
813
|
return e.type === U.tag;
|
|
814
814
|
}
|
|
815
815
|
function br(e) {
|
|
816
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
816
|
+
return !!(e && typeof e == "object" && e.type === Ke.number);
|
|
817
817
|
}
|
|
818
|
-
function
|
|
819
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
818
|
+
function on(e) {
|
|
819
|
+
return !!(e && typeof e == "object" && e.type === Ke.dateTime);
|
|
820
820
|
}
|
|
821
821
|
var yr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ti = /(?:[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;
|
|
822
822
|
function Bi(e) {
|
|
@@ -914,8 +914,8 @@ var V = function() {
|
|
|
914
914
|
return V = Object.assign || function(t) {
|
|
915
915
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
916
916
|
n = arguments[r];
|
|
917
|
-
for (var
|
|
918
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
917
|
+
for (var o in n)
|
|
918
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
919
919
|
}
|
|
920
920
|
return t;
|
|
921
921
|
}, V.apply(this, arguments);
|
|
@@ -927,10 +927,10 @@ function Hi(e) {
|
|
|
927
927
|
for (var t = e.split(Si).filter(function(h) {
|
|
928
928
|
return h.length > 0;
|
|
929
929
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
930
|
-
var
|
|
931
|
-
if (
|
|
930
|
+
var o = i[r], a = o.split("/");
|
|
931
|
+
if (a.length === 0)
|
|
932
932
|
throw new Error("Invalid number skeleton");
|
|
933
|
-
for (var s =
|
|
933
|
+
for (var s = a[0], l = a.slice(1), u = 0, c = l; u < c.length; u++) {
|
|
934
934
|
var f = c[u];
|
|
935
935
|
if (f.length === 0)
|
|
936
936
|
throw new Error("Invalid number skeleton");
|
|
@@ -939,11 +939,11 @@ function Hi(e) {
|
|
|
939
939
|
}
|
|
940
940
|
return n;
|
|
941
941
|
}
|
|
942
|
-
function
|
|
942
|
+
function Ii(e) {
|
|
943
943
|
return e.replace(/^(.*?)-/, "");
|
|
944
944
|
}
|
|
945
|
-
var
|
|
946
|
-
function
|
|
945
|
+
var In = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, vr = /^(@+)?(\+|#+)?[rs]?$/g, Pi = /(\*)(0+)|(#+)(0+)|(0+)/g, Er = /^(0+)$/;
|
|
946
|
+
function Pn(e) {
|
|
947
947
|
var t = {};
|
|
948
948
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(vr, function(n, r, i) {
|
|
949
949
|
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)), "";
|
|
@@ -1031,7 +1031,7 @@ function Ni(e) {
|
|
|
1031
1031
|
continue;
|
|
1032
1032
|
case "measure-unit":
|
|
1033
1033
|
case "unit":
|
|
1034
|
-
t.style = "unit", t.unit =
|
|
1034
|
+
t.style = "unit", t.unit = Ii(i.options[0]);
|
|
1035
1035
|
continue;
|
|
1036
1036
|
case "compact-short":
|
|
1037
1037
|
case "K":
|
|
@@ -1093,7 +1093,7 @@ function Ni(e) {
|
|
|
1093
1093
|
case "integer-width":
|
|
1094
1094
|
if (i.options.length > 1)
|
|
1095
1095
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1096
|
-
i.options[0].replace(
|
|
1096
|
+
i.options[0].replace(Pi, function(l, u, c, f, h, m) {
|
|
1097
1097
|
if (u)
|
|
1098
1098
|
t.minimumIntegerDigits = c.length;
|
|
1099
1099
|
else {
|
|
@@ -1110,28 +1110,28 @@ function Ni(e) {
|
|
|
1110
1110
|
t.minimumIntegerDigits = i.stem.length;
|
|
1111
1111
|
continue;
|
|
1112
1112
|
}
|
|
1113
|
-
if (
|
|
1113
|
+
if (In.test(i.stem)) {
|
|
1114
1114
|
if (i.options.length > 1)
|
|
1115
1115
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1116
|
-
i.stem.replace(
|
|
1116
|
+
i.stem.replace(In, function(l, u, c, f, h, m) {
|
|
1117
1117
|
return c === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : h && m ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1118
1118
|
});
|
|
1119
|
-
var
|
|
1120
|
-
|
|
1119
|
+
var o = i.options[0];
|
|
1120
|
+
o === "w" ? t = V(V({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = V(V({}, t), Pn(o)));
|
|
1121
1121
|
continue;
|
|
1122
1122
|
}
|
|
1123
1123
|
if (vr.test(i.stem)) {
|
|
1124
|
-
t = V(V({}, t),
|
|
1124
|
+
t = V(V({}, t), Pn(i.stem));
|
|
1125
1125
|
continue;
|
|
1126
1126
|
}
|
|
1127
|
-
var
|
|
1128
|
-
|
|
1127
|
+
var a = _r(i.stem);
|
|
1128
|
+
a && (t = V(V({}, t), a));
|
|
1129
1129
|
var s = Li(i.stem);
|
|
1130
1130
|
s && (t = V(V({}, t), s));
|
|
1131
1131
|
}
|
|
1132
1132
|
return t;
|
|
1133
1133
|
}
|
|
1134
|
-
var
|
|
1134
|
+
var xt = {
|
|
1135
1135
|
"001": [
|
|
1136
1136
|
"H",
|
|
1137
1137
|
"h"
|
|
@@ -2550,12 +2550,12 @@ function Ri(e, t) {
|
|
|
2550
2550
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2551
2551
|
var i = e.charAt(r);
|
|
2552
2552
|
if (i === "j") {
|
|
2553
|
-
for (var
|
|
2554
|
-
|
|
2555
|
-
var
|
|
2553
|
+
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2554
|
+
o++, r++;
|
|
2555
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Oi(t);
|
|
2556
2556
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2557
2557
|
n += l;
|
|
2558
|
-
for (;
|
|
2558
|
+
for (; a-- > 0; )
|
|
2559
2559
|
n = u + n;
|
|
2560
2560
|
} else
|
|
2561
2561
|
i === "J" ? n += "H" : n += i;
|
|
@@ -2581,10 +2581,10 @@ function Oi(e) {
|
|
|
2581
2581
|
}
|
|
2582
2582
|
var n = e.language, r;
|
|
2583
2583
|
n !== "root" && (r = e.maximize().region);
|
|
2584
|
-
var i =
|
|
2584
|
+
var i = xt[r || ""] || xt[n || ""] || xt["".concat(n, "-001")] || xt["001"];
|
|
2585
2585
|
return i[0];
|
|
2586
2586
|
}
|
|
2587
|
-
var
|
|
2587
|
+
var qt, Di = new RegExp("^".concat(yr.source, "*")), Mi = new RegExp("".concat(yr.source, "*$"));
|
|
2588
2588
|
function N(e, t) {
|
|
2589
2589
|
return { start: e, end: t };
|
|
2590
2590
|
}
|
|
@@ -2593,7 +2593,7 @@ var ki = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ui = !!String
|
|
|
2593
2593
|
}, an = !0;
|
|
2594
2594
|
try {
|
|
2595
2595
|
var Wi = wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2596
|
-
an = ((
|
|
2596
|
+
an = ((qt = Wi.exec("a")) === null || qt === void 0 ? void 0 : qt[0]) === "a";
|
|
2597
2597
|
} catch (e) {
|
|
2598
2598
|
an = !1;
|
|
2599
2599
|
}
|
|
@@ -2607,15 +2607,15 @@ var Nn = ki ? (
|
|
|
2607
2607
|
function(t, n, r) {
|
|
2608
2608
|
return t.slice(r, r + n.length) === n;
|
|
2609
2609
|
}
|
|
2610
|
-
),
|
|
2610
|
+
), sn = Ui ? String.fromCodePoint : (
|
|
2611
2611
|
// IE11
|
|
2612
2612
|
function() {
|
|
2613
2613
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2614
2614
|
t[n] = arguments[n];
|
|
2615
|
-
for (var r = "", i = t.length,
|
|
2616
|
-
if (
|
|
2617
|
-
throw RangeError(
|
|
2618
|
-
r +=
|
|
2615
|
+
for (var r = "", i = t.length, o = 0, a; i > o; ) {
|
|
2616
|
+
if (a = t[o++], a > 1114111)
|
|
2617
|
+
throw RangeError(a + " is not a valid code point");
|
|
2618
|
+
r += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
|
|
2619
2619
|
}
|
|
2620
2620
|
return r;
|
|
2621
2621
|
}
|
|
@@ -2625,8 +2625,8 @@ var Nn = ki ? (
|
|
|
2625
2625
|
// Ponyfill
|
|
2626
2626
|
function(t) {
|
|
2627
2627
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2628
|
-
var
|
|
2629
|
-
n[
|
|
2628
|
+
var o = i[r], a = o[0], s = o[1];
|
|
2629
|
+
n[a] = s;
|
|
2630
2630
|
}
|
|
2631
2631
|
return n;
|
|
2632
2632
|
}
|
|
@@ -2641,8 +2641,8 @@ var Nn = ki ? (
|
|
|
2641
2641
|
function(t, n) {
|
|
2642
2642
|
var r = t.length;
|
|
2643
2643
|
if (!(n < 0 || n >= r)) {
|
|
2644
|
-
var i = t.charCodeAt(n),
|
|
2645
|
-
return i < 55296 || i > 56319 || n + 1 === r || (
|
|
2644
|
+
var i = t.charCodeAt(n), o;
|
|
2645
|
+
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2646
2646
|
}
|
|
2647
2647
|
}
|
|
2648
2648
|
), zi = Gi ? (
|
|
@@ -2669,26 +2669,26 @@ var Nn = ki ? (
|
|
|
2669
2669
|
function wr(e, t) {
|
|
2670
2670
|
return new RegExp(e, t);
|
|
2671
2671
|
}
|
|
2672
|
-
var
|
|
2672
|
+
var ln;
|
|
2673
2673
|
if (an) {
|
|
2674
2674
|
var On = wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2675
|
-
|
|
2675
|
+
ln = function(t, n) {
|
|
2676
2676
|
var r;
|
|
2677
2677
|
On.lastIndex = n;
|
|
2678
2678
|
var i = On.exec(t);
|
|
2679
2679
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2680
2680
|
};
|
|
2681
2681
|
} else
|
|
2682
|
-
|
|
2682
|
+
ln = function(t, n) {
|
|
2683
2683
|
for (var r = []; ; ) {
|
|
2684
2684
|
var i = xr(t, n);
|
|
2685
|
-
if (i === void 0 || Ar(i) ||
|
|
2685
|
+
if (i === void 0 || Ar(i) || Yi(i))
|
|
2686
2686
|
break;
|
|
2687
2687
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2688
2688
|
}
|
|
2689
|
-
return
|
|
2689
|
+
return sn.apply(void 0, r);
|
|
2690
2690
|
};
|
|
2691
|
-
var
|
|
2691
|
+
var qi = (
|
|
2692
2692
|
/** @class */
|
|
2693
2693
|
function() {
|
|
2694
2694
|
function e(t, n) {
|
|
@@ -2700,35 +2700,35 @@ var Qi = (
|
|
|
2700
2700
|
return this.parseMessage(0, "", !1);
|
|
2701
2701
|
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2702
2702
|
for (var i = []; !this.isEOF(); ) {
|
|
2703
|
-
var
|
|
2704
|
-
if (
|
|
2705
|
-
var
|
|
2706
|
-
if (
|
|
2707
|
-
return
|
|
2708
|
-
i.push(
|
|
2703
|
+
var o = this.char();
|
|
2704
|
+
if (o === 123) {
|
|
2705
|
+
var a = this.parseArgument(t, r);
|
|
2706
|
+
if (a.err)
|
|
2707
|
+
return a;
|
|
2708
|
+
i.push(a.val);
|
|
2709
2709
|
} else {
|
|
2710
|
-
if (
|
|
2710
|
+
if (o === 125 && t > 0)
|
|
2711
2711
|
break;
|
|
2712
|
-
if (
|
|
2712
|
+
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2713
2713
|
var s = this.clonePosition();
|
|
2714
2714
|
this.bump(), i.push({
|
|
2715
2715
|
type: U.pound,
|
|
2716
2716
|
location: N(s, this.clonePosition())
|
|
2717
2717
|
});
|
|
2718
|
-
} else if (
|
|
2718
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2719
2719
|
if (r)
|
|
2720
2720
|
break;
|
|
2721
|
-
return this.error(
|
|
2722
|
-
} else if (
|
|
2723
|
-
var
|
|
2724
|
-
if (
|
|
2725
|
-
return
|
|
2726
|
-
i.push(
|
|
2721
|
+
return this.error(P.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
|
|
2722
|
+
} else if (o === 60 && !this.ignoreTag && un(this.peek() || 0)) {
|
|
2723
|
+
var a = this.parseTag(t, n);
|
|
2724
|
+
if (a.err)
|
|
2725
|
+
return a;
|
|
2726
|
+
i.push(a.val);
|
|
2727
2727
|
} else {
|
|
2728
|
-
var
|
|
2729
|
-
if (
|
|
2730
|
-
return
|
|
2731
|
-
i.push(
|
|
2728
|
+
var a = this.parseLiteral(t, n);
|
|
2729
|
+
if (a.err)
|
|
2730
|
+
return a;
|
|
2731
|
+
i.push(a.val);
|
|
2732
2732
|
}
|
|
2733
2733
|
}
|
|
2734
2734
|
}
|
|
@@ -2747,44 +2747,44 @@ var Qi = (
|
|
|
2747
2747
|
err: null
|
|
2748
2748
|
};
|
|
2749
2749
|
if (this.bumpIf(">")) {
|
|
2750
|
-
var
|
|
2751
|
-
if (
|
|
2752
|
-
return
|
|
2753
|
-
var
|
|
2750
|
+
var o = this.parseMessage(t + 1, n, !0);
|
|
2751
|
+
if (o.err)
|
|
2752
|
+
return o;
|
|
2753
|
+
var a = o.val, s = this.clonePosition();
|
|
2754
2754
|
if (this.bumpIf("</")) {
|
|
2755
|
-
if (this.isEOF() || !
|
|
2756
|
-
return this.error(
|
|
2755
|
+
if (this.isEOF() || !un(this.char()))
|
|
2756
|
+
return this.error(P.INVALID_TAG, N(s, this.clonePosition()));
|
|
2757
2757
|
var l = this.clonePosition(), u = this.parseTagName();
|
|
2758
|
-
return i !== u ? this.error(
|
|
2758
|
+
return i !== u ? this.error(P.UNMATCHED_CLOSING_TAG, N(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2759
2759
|
val: {
|
|
2760
2760
|
type: U.tag,
|
|
2761
2761
|
value: i,
|
|
2762
|
-
children:
|
|
2762
|
+
children: a,
|
|
2763
2763
|
location: N(r, this.clonePosition())
|
|
2764
2764
|
},
|
|
2765
2765
|
err: null
|
|
2766
|
-
} : this.error(
|
|
2766
|
+
} : this.error(P.INVALID_TAG, N(s, this.clonePosition())));
|
|
2767
2767
|
} else
|
|
2768
|
-
return this.error(
|
|
2768
|
+
return this.error(P.UNCLOSED_TAG, N(r, this.clonePosition()));
|
|
2769
2769
|
} else
|
|
2770
|
-
return this.error(
|
|
2770
|
+
return this.error(P.INVALID_TAG, N(r, this.clonePosition()));
|
|
2771
2771
|
}, e.prototype.parseTagName = function() {
|
|
2772
2772
|
var t = this.offset();
|
|
2773
|
-
for (this.bump(); !this.isEOF() &&
|
|
2773
|
+
for (this.bump(); !this.isEOF() && Qi(this.char()); )
|
|
2774
2774
|
this.bump();
|
|
2775
2775
|
return this.message.slice(t, this.offset());
|
|
2776
2776
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
2777
2777
|
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2778
|
-
var
|
|
2779
|
-
if (a) {
|
|
2780
|
-
i += a;
|
|
2781
|
-
continue;
|
|
2782
|
-
}
|
|
2783
|
-
var o = this.tryParseUnquoted(t, n);
|
|
2778
|
+
var o = this.tryParseQuote(n);
|
|
2784
2779
|
if (o) {
|
|
2785
2780
|
i += o;
|
|
2786
2781
|
continue;
|
|
2787
2782
|
}
|
|
2783
|
+
var a = this.tryParseUnquoted(t, n);
|
|
2784
|
+
if (a) {
|
|
2785
|
+
i += a;
|
|
2786
|
+
continue;
|
|
2787
|
+
}
|
|
2788
2788
|
var s = this.tryParseLeftAngleBracket();
|
|
2789
2789
|
if (s) {
|
|
2790
2790
|
i += s;
|
|
@@ -2833,23 +2833,23 @@ var Qi = (
|
|
|
2833
2833
|
n.push(r);
|
|
2834
2834
|
this.bump();
|
|
2835
2835
|
}
|
|
2836
|
-
return
|
|
2836
|
+
return sn.apply(void 0, n);
|
|
2837
2837
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2838
2838
|
if (this.isEOF())
|
|
2839
2839
|
return null;
|
|
2840
2840
|
var r = this.char();
|
|
2841
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2841
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), sn(r));
|
|
2842
2842
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2843
2843
|
var r = this.clonePosition();
|
|
2844
2844
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2845
|
-
return this.error(
|
|
2845
|
+
return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, N(r, this.clonePosition()));
|
|
2846
2846
|
if (this.char() === 125)
|
|
2847
|
-
return this.bump(), this.error(
|
|
2847
|
+
return this.bump(), this.error(P.EMPTY_ARGUMENT, N(r, this.clonePosition()));
|
|
2848
2848
|
var i = this.parseIdentifierIfPossible().value;
|
|
2849
2849
|
if (!i)
|
|
2850
|
-
return this.error(
|
|
2850
|
+
return this.error(P.MALFORMED_ARGUMENT, N(r, this.clonePosition()));
|
|
2851
2851
|
if (this.bumpSpace(), this.isEOF())
|
|
2852
|
-
return this.error(
|
|
2852
|
+
return this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, N(r, this.clonePosition()));
|
|
2853
2853
|
switch (this.char()) {
|
|
2854
2854
|
case 125:
|
|
2855
2855
|
return this.bump(), {
|
|
@@ -2862,20 +2862,20 @@ var Qi = (
|
|
|
2862
2862
|
err: null
|
|
2863
2863
|
};
|
|
2864
2864
|
case 44:
|
|
2865
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2865
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, N(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2866
2866
|
default:
|
|
2867
|
-
return this.error(
|
|
2867
|
+
return this.error(P.MALFORMED_ARGUMENT, N(r, this.clonePosition()));
|
|
2868
2868
|
}
|
|
2869
2869
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2870
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2870
|
+
var t = this.clonePosition(), n = this.offset(), r = ln(this.message, n), i = n + r.length;
|
|
2871
2871
|
this.bumpTo(i);
|
|
2872
|
-
var
|
|
2873
|
-
return { value: r, location:
|
|
2872
|
+
var o = this.clonePosition(), a = N(t, o);
|
|
2873
|
+
return { value: r, location: a };
|
|
2874
2874
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2875
|
-
var
|
|
2875
|
+
var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
|
|
2876
2876
|
switch (s) {
|
|
2877
2877
|
case "":
|
|
2878
|
-
return this.error(
|
|
2878
|
+
return this.error(P.EXPECT_ARGUMENT_TYPE, N(a, l));
|
|
2879
2879
|
case "number":
|
|
2880
2880
|
case "date":
|
|
2881
2881
|
case "time": {
|
|
@@ -2888,35 +2888,35 @@ var Qi = (
|
|
|
2888
2888
|
return f;
|
|
2889
2889
|
var h = Zi(f.val);
|
|
2890
2890
|
if (h.length === 0)
|
|
2891
|
-
return this.error(
|
|
2891
|
+
return this.error(P.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
|
|
2892
2892
|
var m = N(c, this.clonePosition());
|
|
2893
2893
|
u = { style: h, styleLocation: m };
|
|
2894
2894
|
}
|
|
2895
2895
|
var _ = this.tryParseArgumentClose(i);
|
|
2896
2896
|
if (_.err)
|
|
2897
2897
|
return _;
|
|
2898
|
-
var
|
|
2898
|
+
var d = N(i, this.clonePosition());
|
|
2899
2899
|
if (u && Nn(u == null ? void 0 : u.style, "::", 0)) {
|
|
2900
2900
|
var E = zi(u.style.slice(2));
|
|
2901
2901
|
if (s === "number") {
|
|
2902
2902
|
var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
|
|
2903
2903
|
return f.err ? f : {
|
|
2904
|
-
val: { type: U.number, value: r, location:
|
|
2904
|
+
val: { type: U.number, value: r, location: d, style: f.val },
|
|
2905
2905
|
err: null
|
|
2906
2906
|
};
|
|
2907
2907
|
} else {
|
|
2908
2908
|
if (E.length === 0)
|
|
2909
|
-
return this.error(
|
|
2909
|
+
return this.error(P.EXPECT_DATE_TIME_SKELETON, d);
|
|
2910
2910
|
var C = E;
|
|
2911
2911
|
this.locale && (C = Ri(E, this.locale));
|
|
2912
2912
|
var h = {
|
|
2913
|
-
type:
|
|
2913
|
+
type: Ke.dateTime,
|
|
2914
2914
|
pattern: C,
|
|
2915
2915
|
location: u.styleLocation,
|
|
2916
2916
|
parsedOptions: this.shouldParseSkeletons ? Bi(C) : {}
|
|
2917
2917
|
}, R = s === "date" ? U.date : U.time;
|
|
2918
2918
|
return {
|
|
2919
|
-
val: { type: R, value: r, location:
|
|
2919
|
+
val: { type: R, value: r, location: d, style: h },
|
|
2920
2920
|
err: null
|
|
2921
2921
|
};
|
|
2922
2922
|
}
|
|
@@ -2925,8 +2925,8 @@ var Qi = (
|
|
|
2925
2925
|
val: {
|
|
2926
2926
|
type: s === "number" ? U.number : s === "date" ? U.date : U.time,
|
|
2927
2927
|
value: r,
|
|
2928
|
-
location:
|
|
2929
|
-
style: (
|
|
2928
|
+
location: d,
|
|
2929
|
+
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2930
2930
|
},
|
|
2931
2931
|
err: null
|
|
2932
2932
|
};
|
|
@@ -2936,14 +2936,14 @@ var Qi = (
|
|
|
2936
2936
|
case "select": {
|
|
2937
2937
|
var y = this.clonePosition();
|
|
2938
2938
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2939
|
-
return this.error(
|
|
2939
|
+
return this.error(P.EXPECT_SELECT_ARGUMENT_OPTIONS, N(y, It({}, y)));
|
|
2940
2940
|
this.bumpSpace();
|
|
2941
2941
|
var D = this.parseIdentifierIfPossible(), M = 0;
|
|
2942
2942
|
if (s !== "select" && D.value === "offset") {
|
|
2943
2943
|
if (!this.bumpIf(":"))
|
|
2944
|
-
return this.error(
|
|
2944
|
+
return this.error(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, N(this.clonePosition(), this.clonePosition()));
|
|
2945
2945
|
this.bumpSpace();
|
|
2946
|
-
var f = this.tryParseDecimalInteger(
|
|
2946
|
+
var f = this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, P.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2947
2947
|
if (f.err)
|
|
2948
2948
|
return f;
|
|
2949
2949
|
this.bumpSpace(), D = this.parseIdentifierIfPossible(), M = f.val;
|
|
@@ -2976,10 +2976,10 @@ var Qi = (
|
|
|
2976
2976
|
};
|
|
2977
2977
|
}
|
|
2978
2978
|
default:
|
|
2979
|
-
return this.error(
|
|
2979
|
+
return this.error(P.INVALID_ARGUMENT_TYPE, N(a, l));
|
|
2980
2980
|
}
|
|
2981
2981
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2982
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2982
|
+
return this.isEOF() || this.char() !== 125 ? this.error(P.EXPECT_ARGUMENT_CLOSING_BRACE, N(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2983
2983
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2984
2984
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2985
2985
|
var r = this.char();
|
|
@@ -2988,7 +2988,7 @@ var Qi = (
|
|
|
2988
2988
|
this.bump();
|
|
2989
2989
|
var i = this.clonePosition();
|
|
2990
2990
|
if (!this.bumpUntil("'"))
|
|
2991
|
-
return this.error(
|
|
2991
|
+
return this.error(P.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, N(i, this.clonePosition()));
|
|
2992
2992
|
this.bump();
|
|
2993
2993
|
break;
|
|
2994
2994
|
}
|
|
@@ -3020,11 +3020,11 @@ var Qi = (
|
|
|
3020
3020
|
try {
|
|
3021
3021
|
r = Hi(t);
|
|
3022
3022
|
} catch (i) {
|
|
3023
|
-
return this.error(
|
|
3023
|
+
return this.error(P.INVALID_NUMBER_SKELETON, n);
|
|
3024
3024
|
}
|
|
3025
3025
|
return {
|
|
3026
3026
|
val: {
|
|
3027
|
-
type:
|
|
3027
|
+
type: Ke.number,
|
|
3028
3028
|
tokens: r,
|
|
3029
3029
|
location: n,
|
|
3030
3030
|
parsedOptions: this.shouldParseSkeletons ? Ni(r) : {}
|
|
@@ -3032,11 +3032,11 @@ var Qi = (
|
|
|
3032
3032
|
err: null
|
|
3033
3033
|
};
|
|
3034
3034
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3035
|
-
for (var
|
|
3035
|
+
for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, c = i.location; ; ) {
|
|
3036
3036
|
if (u.length === 0) {
|
|
3037
3037
|
var f = this.clonePosition();
|
|
3038
3038
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3039
|
-
var h = this.tryParseDecimalInteger(
|
|
3039
|
+
var h = this.tryParseDecimalInteger(P.EXPECT_PLURAL_ARGUMENT_SELECTOR, P.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3040
3040
|
if (h.err)
|
|
3041
3041
|
return h;
|
|
3042
3042
|
c = N(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
@@ -3044,38 +3044,38 @@ var Qi = (
|
|
|
3044
3044
|
break;
|
|
3045
3045
|
}
|
|
3046
3046
|
if (l.has(u))
|
|
3047
|
-
return this.error(n === "select" ?
|
|
3048
|
-
u === "other" && (
|
|
3047
|
+
return this.error(n === "select" ? P.DUPLICATE_SELECT_ARGUMENT_SELECTOR : P.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, c);
|
|
3048
|
+
u === "other" && (a = !0), this.bumpSpace();
|
|
3049
3049
|
var m = this.clonePosition();
|
|
3050
3050
|
if (!this.bumpIf("{"))
|
|
3051
|
-
return this.error(n === "select" ?
|
|
3051
|
+
return this.error(n === "select" ? P.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : P.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, N(this.clonePosition(), this.clonePosition()));
|
|
3052
3052
|
var _ = this.parseMessage(t + 1, n, r);
|
|
3053
3053
|
if (_.err)
|
|
3054
3054
|
return _;
|
|
3055
|
-
var
|
|
3056
|
-
if (
|
|
3057
|
-
return
|
|
3055
|
+
var d = this.tryParseArgumentClose(m);
|
|
3056
|
+
if (d.err)
|
|
3057
|
+
return d;
|
|
3058
3058
|
s.push([
|
|
3059
3059
|
u,
|
|
3060
3060
|
{
|
|
3061
3061
|
value: _.val,
|
|
3062
3062
|
location: N(m, this.clonePosition())
|
|
3063
3063
|
}
|
|
3064
|
-
]), l.add(u), this.bumpSpace(),
|
|
3064
|
+
]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, c = o.location;
|
|
3065
3065
|
}
|
|
3066
|
-
return s.length === 0 ? this.error(n === "select" ?
|
|
3066
|
+
return s.length === 0 ? this.error(n === "select" ? P.EXPECT_SELECT_ARGUMENT_SELECTOR : P.EXPECT_PLURAL_ARGUMENT_SELECTOR, N(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(P.MISSING_OTHER_CLAUSE, N(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3067
3067
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3068
3068
|
var r = 1, i = this.clonePosition();
|
|
3069
3069
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3070
|
-
for (var
|
|
3070
|
+
for (var o = !1, a = 0; !this.isEOF(); ) {
|
|
3071
3071
|
var s = this.char();
|
|
3072
3072
|
if (s >= 48 && s <= 57)
|
|
3073
|
-
|
|
3073
|
+
o = !0, a = a * 10 + (s - 48), this.bump();
|
|
3074
3074
|
else
|
|
3075
3075
|
break;
|
|
3076
3076
|
}
|
|
3077
3077
|
var l = N(i, this.clonePosition());
|
|
3078
|
-
return
|
|
3078
|
+
return o ? (a *= r, Xi(a) ? { val: a, err: null } : this.error(n, l)) : this.error(t, l);
|
|
3079
3079
|
}, e.prototype.offset = function() {
|
|
3080
3080
|
return this.position.offset;
|
|
3081
3081
|
}, e.prototype.isEOF = function() {
|
|
@@ -3141,50 +3141,50 @@ var Qi = (
|
|
|
3141
3141
|
}, e;
|
|
3142
3142
|
}()
|
|
3143
3143
|
);
|
|
3144
|
-
function
|
|
3144
|
+
function un(e) {
|
|
3145
3145
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3146
3146
|
}
|
|
3147
3147
|
function Ki(e) {
|
|
3148
|
-
return
|
|
3148
|
+
return un(e) || e === 47;
|
|
3149
3149
|
}
|
|
3150
|
-
function
|
|
3150
|
+
function Qi(e) {
|
|
3151
3151
|
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;
|
|
3152
3152
|
}
|
|
3153
3153
|
function Ar(e) {
|
|
3154
3154
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3156
|
+
function Yi(e) {
|
|
3157
3157
|
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;
|
|
3158
3158
|
}
|
|
3159
|
-
function
|
|
3159
|
+
function cn(e) {
|
|
3160
3160
|
e.forEach(function(t) {
|
|
3161
|
-
if (delete t.location,
|
|
3161
|
+
if (delete t.location, dr(t) || mr(t))
|
|
3162
3162
|
for (var n in t.options)
|
|
3163
|
-
delete t.options[n].location,
|
|
3163
|
+
delete t.options[n].location, cn(t.options[n].value);
|
|
3164
3164
|
else
|
|
3165
|
-
hr(t) && br(t.style) || (fr(t) ||
|
|
3165
|
+
hr(t) && br(t.style) || (fr(t) || pr(t)) && on(t.style) ? delete t.style.location : gr(t) && cn(t.children);
|
|
3166
3166
|
});
|
|
3167
3167
|
}
|
|
3168
|
-
function
|
|
3169
|
-
t === void 0 && (t = {}), t =
|
|
3170
|
-
var n = new
|
|
3168
|
+
function Ji(e, t) {
|
|
3169
|
+
t === void 0 && (t = {}), t = It({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3170
|
+
var n = new qi(e, t).parse();
|
|
3171
3171
|
if (n.err) {
|
|
3172
|
-
var r = SyntaxError(
|
|
3172
|
+
var r = SyntaxError(P[n.err.kind]);
|
|
3173
3173
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3174
3174
|
}
|
|
3175
|
-
return t != null && t.captureLocation ||
|
|
3175
|
+
return t != null && t.captureLocation || cn(n.val), n.val;
|
|
3176
3176
|
}
|
|
3177
|
-
var
|
|
3177
|
+
var Qe;
|
|
3178
3178
|
(function(e) {
|
|
3179
3179
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3180
|
-
})(
|
|
3181
|
-
var
|
|
3180
|
+
})(Qe || (Qe = {}));
|
|
3181
|
+
var Dt = (
|
|
3182
3182
|
/** @class */
|
|
3183
3183
|
function(e) {
|
|
3184
|
-
|
|
3184
|
+
Ot(t, e);
|
|
3185
3185
|
function t(n, r, i) {
|
|
3186
|
-
var
|
|
3187
|
-
return
|
|
3186
|
+
var o = e.call(this, n) || this;
|
|
3187
|
+
return o.code = r, o.originalMessage = i, o;
|
|
3188
3188
|
}
|
|
3189
3189
|
return t.prototype.toString = function() {
|
|
3190
3190
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3193,48 +3193,48 @@ var Ot = (
|
|
|
3193
3193
|
), Dn = (
|
|
3194
3194
|
/** @class */
|
|
3195
3195
|
function(e) {
|
|
3196
|
-
|
|
3197
|
-
function t(n, r, i,
|
|
3198
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3196
|
+
Ot(t, e);
|
|
3197
|
+
function t(n, r, i, o) {
|
|
3198
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Qe.INVALID_VALUE, o) || this;
|
|
3199
3199
|
}
|
|
3200
3200
|
return t;
|
|
3201
|
-
}(
|
|
3202
|
-
),
|
|
3201
|
+
}(Dt)
|
|
3202
|
+
), eo = (
|
|
3203
3203
|
/** @class */
|
|
3204
3204
|
function(e) {
|
|
3205
|
-
|
|
3205
|
+
Ot(t, e);
|
|
3206
3206
|
function t(n, r, i) {
|
|
3207
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3207
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Qe.INVALID_VALUE, i) || this;
|
|
3208
3208
|
}
|
|
3209
3209
|
return t;
|
|
3210
|
-
}(
|
|
3211
|
-
),
|
|
3210
|
+
}(Dt)
|
|
3211
|
+
), to = (
|
|
3212
3212
|
/** @class */
|
|
3213
3213
|
function(e) {
|
|
3214
|
-
|
|
3214
|
+
Ot(t, e);
|
|
3215
3215
|
function t(n, r) {
|
|
3216
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3216
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Qe.MISSING_VALUE, r) || this;
|
|
3217
3217
|
}
|
|
3218
3218
|
return t;
|
|
3219
|
-
}(
|
|
3220
|
-
),
|
|
3219
|
+
}(Dt)
|
|
3220
|
+
), Y;
|
|
3221
3221
|
(function(e) {
|
|
3222
3222
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3223
|
-
})(
|
|
3224
|
-
function
|
|
3223
|
+
})(Y || (Y = {}));
|
|
3224
|
+
function no(e) {
|
|
3225
3225
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3226
3226
|
var r = t[t.length - 1];
|
|
3227
|
-
return !r || r.type !==
|
|
3227
|
+
return !r || r.type !== Y.literal || n.type !== Y.literal ? t.push(n) : r.value += n.value, t;
|
|
3228
3228
|
}, []);
|
|
3229
3229
|
}
|
|
3230
|
-
function
|
|
3230
|
+
function ro(e) {
|
|
3231
3231
|
return typeof e == "function";
|
|
3232
3232
|
}
|
|
3233
|
-
function
|
|
3233
|
+
function Tt(e, t, n, r, i, o, a) {
|
|
3234
3234
|
if (e.length === 1 && Hn(e[0]))
|
|
3235
3235
|
return [
|
|
3236
3236
|
{
|
|
3237
|
-
type:
|
|
3237
|
+
type: Y.literal,
|
|
3238
3238
|
value: e[0].value
|
|
3239
3239
|
}
|
|
3240
3240
|
];
|
|
@@ -3242,41 +3242,41 @@ function Ct(e, t, n, r, i, a, o) {
|
|
|
3242
3242
|
var c = u[l];
|
|
3243
3243
|
if (Hn(c)) {
|
|
3244
3244
|
s.push({
|
|
3245
|
-
type:
|
|
3245
|
+
type: Y.literal,
|
|
3246
3246
|
value: c.value
|
|
3247
3247
|
});
|
|
3248
3248
|
continue;
|
|
3249
3249
|
}
|
|
3250
3250
|
if (Ci(c)) {
|
|
3251
|
-
typeof
|
|
3252
|
-
type:
|
|
3253
|
-
value: n.getNumberFormat(t).format(
|
|
3251
|
+
typeof o == "number" && s.push({
|
|
3252
|
+
type: Y.literal,
|
|
3253
|
+
value: n.getNumberFormat(t).format(o)
|
|
3254
3254
|
});
|
|
3255
3255
|
continue;
|
|
3256
3256
|
}
|
|
3257
3257
|
var f = c.value;
|
|
3258
3258
|
if (!(i && f in i))
|
|
3259
|
-
throw new
|
|
3259
|
+
throw new to(f, a);
|
|
3260
3260
|
var h = i[f];
|
|
3261
3261
|
if (Ai(c)) {
|
|
3262
3262
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), s.push({
|
|
3263
|
-
type: typeof h == "string" ?
|
|
3263
|
+
type: typeof h == "string" ? Y.literal : Y.object,
|
|
3264
3264
|
value: h
|
|
3265
3265
|
});
|
|
3266
3266
|
continue;
|
|
3267
3267
|
}
|
|
3268
3268
|
if (fr(c)) {
|
|
3269
|
-
var m = typeof c.style == "string" ? r.date[c.style] :
|
|
3269
|
+
var m = typeof c.style == "string" ? r.date[c.style] : on(c.style) ? c.style.parsedOptions : void 0;
|
|
3270
3270
|
s.push({
|
|
3271
|
-
type:
|
|
3271
|
+
type: Y.literal,
|
|
3272
3272
|
value: n.getDateTimeFormat(t, m).format(h)
|
|
3273
3273
|
});
|
|
3274
3274
|
continue;
|
|
3275
3275
|
}
|
|
3276
|
-
if (
|
|
3277
|
-
var m = typeof c.style == "string" ? r.time[c.style] :
|
|
3276
|
+
if (pr(c)) {
|
|
3277
|
+
var m = typeof c.style == "string" ? r.time[c.style] : on(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
3278
3278
|
s.push({
|
|
3279
|
-
type:
|
|
3279
|
+
type: Y.literal,
|
|
3280
3280
|
value: n.getDateTimeFormat(t, m).format(h)
|
|
3281
3281
|
});
|
|
3282
3282
|
continue;
|
|
@@ -3284,61 +3284,61 @@ function Ct(e, t, n, r, i, a, o) {
|
|
|
3284
3284
|
if (hr(c)) {
|
|
3285
3285
|
var m = typeof c.style == "string" ? r.number[c.style] : br(c.style) ? c.style.parsedOptions : void 0;
|
|
3286
3286
|
m && m.scale && (h = h * (m.scale || 1)), s.push({
|
|
3287
|
-
type:
|
|
3287
|
+
type: Y.literal,
|
|
3288
3288
|
value: n.getNumberFormat(t, m).format(h)
|
|
3289
3289
|
});
|
|
3290
3290
|
continue;
|
|
3291
3291
|
}
|
|
3292
3292
|
if (gr(c)) {
|
|
3293
|
-
var _ = c.children,
|
|
3294
|
-
if (!
|
|
3295
|
-
throw new
|
|
3296
|
-
var C =
|
|
3293
|
+
var _ = c.children, d = c.value, E = i[d];
|
|
3294
|
+
if (!ro(E))
|
|
3295
|
+
throw new eo(d, "function", a);
|
|
3296
|
+
var C = Tt(_, t, n, r, i, o), R = E(C.map(function(M) {
|
|
3297
3297
|
return M.value;
|
|
3298
3298
|
}));
|
|
3299
3299
|
Array.isArray(R) || (R = [R]), s.push.apply(s, R.map(function(M) {
|
|
3300
3300
|
return {
|
|
3301
|
-
type: typeof M == "string" ?
|
|
3301
|
+
type: typeof M == "string" ? Y.literal : Y.object,
|
|
3302
3302
|
value: M
|
|
3303
3303
|
};
|
|
3304
3304
|
}));
|
|
3305
3305
|
}
|
|
3306
|
-
if (
|
|
3306
|
+
if (dr(c)) {
|
|
3307
3307
|
var y = c.options[h] || c.options.other;
|
|
3308
3308
|
if (!y)
|
|
3309
|
-
throw new Dn(c.value, h, Object.keys(c.options),
|
|
3310
|
-
s.push.apply(s,
|
|
3309
|
+
throw new Dn(c.value, h, Object.keys(c.options), a);
|
|
3310
|
+
s.push.apply(s, Tt(y.value, t, n, r, i));
|
|
3311
3311
|
continue;
|
|
3312
3312
|
}
|
|
3313
3313
|
if (mr(c)) {
|
|
3314
3314
|
var y = c.options["=".concat(h)];
|
|
3315
3315
|
if (!y) {
|
|
3316
3316
|
if (!Intl.PluralRules)
|
|
3317
|
-
throw new
|
|
3317
|
+
throw new Dt(`Intl.PluralRules is not available in this environment.
|
|
3318
3318
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3319
|
-
`,
|
|
3319
|
+
`, Qe.MISSING_INTL_API, a);
|
|
3320
3320
|
var D = n.getPluralRules(t, { type: c.pluralType }).select(h - (c.offset || 0));
|
|
3321
3321
|
y = c.options[D] || c.options.other;
|
|
3322
3322
|
}
|
|
3323
3323
|
if (!y)
|
|
3324
|
-
throw new Dn(c.value, h, Object.keys(c.options),
|
|
3325
|
-
s.push.apply(s,
|
|
3324
|
+
throw new Dn(c.value, h, Object.keys(c.options), a);
|
|
3325
|
+
s.push.apply(s, Tt(y.value, t, n, r, i, h - (c.offset || 0)));
|
|
3326
3326
|
continue;
|
|
3327
3327
|
}
|
|
3328
3328
|
}
|
|
3329
|
-
return
|
|
3329
|
+
return no(s);
|
|
3330
3330
|
}
|
|
3331
|
-
function
|
|
3331
|
+
function io(e, t) {
|
|
3332
3332
|
return t ? me(me(me({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3333
3333
|
return n[r] = me(me({}, e[r]), t[r] || {}), n;
|
|
3334
3334
|
}, {})) : e;
|
|
3335
3335
|
}
|
|
3336
|
-
function
|
|
3336
|
+
function oo(e, t) {
|
|
3337
3337
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3338
|
-
return n[r] =
|
|
3338
|
+
return n[r] = io(e[r], t[r]), n;
|
|
3339
3339
|
}, me({}, e)) : e;
|
|
3340
3340
|
}
|
|
3341
|
-
function
|
|
3341
|
+
function Kt(e) {
|
|
3342
3342
|
return {
|
|
3343
3343
|
create: function() {
|
|
3344
3344
|
return {
|
|
@@ -3352,77 +3352,77 @@ function Qt(e) {
|
|
|
3352
3352
|
}
|
|
3353
3353
|
};
|
|
3354
3354
|
}
|
|
3355
|
-
function
|
|
3355
|
+
function ao(e) {
|
|
3356
3356
|
return e === void 0 && (e = {
|
|
3357
3357
|
number: {},
|
|
3358
3358
|
dateTime: {},
|
|
3359
3359
|
pluralRules: {}
|
|
3360
3360
|
}), {
|
|
3361
|
-
getNumberFormat:
|
|
3361
|
+
getNumberFormat: zt(function() {
|
|
3362
3362
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3363
3363
|
n[r] = arguments[r];
|
|
3364
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3364
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Wt([void 0], n, !1)))();
|
|
3365
3365
|
}, {
|
|
3366
|
-
cache:
|
|
3367
|
-
strategy:
|
|
3366
|
+
cache: Kt(e.number),
|
|
3367
|
+
strategy: Zt.variadic
|
|
3368
3368
|
}),
|
|
3369
|
-
getDateTimeFormat:
|
|
3369
|
+
getDateTimeFormat: zt(function() {
|
|
3370
3370
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3371
3371
|
n[r] = arguments[r];
|
|
3372
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3372
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Wt([void 0], n, !1)))();
|
|
3373
3373
|
}, {
|
|
3374
|
-
cache:
|
|
3375
|
-
strategy:
|
|
3374
|
+
cache: Kt(e.dateTime),
|
|
3375
|
+
strategy: Zt.variadic
|
|
3376
3376
|
}),
|
|
3377
|
-
getPluralRules:
|
|
3377
|
+
getPluralRules: zt(function() {
|
|
3378
3378
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3379
3379
|
n[r] = arguments[r];
|
|
3380
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3380
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Wt([void 0], n, !1)))();
|
|
3381
3381
|
}, {
|
|
3382
|
-
cache:
|
|
3383
|
-
strategy:
|
|
3382
|
+
cache: Kt(e.pluralRules),
|
|
3383
|
+
strategy: Zt.variadic
|
|
3384
3384
|
})
|
|
3385
3385
|
};
|
|
3386
3386
|
}
|
|
3387
|
-
var
|
|
3387
|
+
var so = (
|
|
3388
3388
|
/** @class */
|
|
3389
3389
|
function() {
|
|
3390
3390
|
function e(t, n, r, i) {
|
|
3391
3391
|
n === void 0 && (n = e.defaultLocale);
|
|
3392
|
-
var
|
|
3392
|
+
var o = this;
|
|
3393
3393
|
if (this.formatterCache = {
|
|
3394
3394
|
number: {},
|
|
3395
3395
|
dateTime: {},
|
|
3396
3396
|
pluralRules: {}
|
|
3397
3397
|
}, this.format = function(l) {
|
|
3398
|
-
var u =
|
|
3398
|
+
var u = o.formatToParts(l);
|
|
3399
3399
|
if (u.length === 1)
|
|
3400
3400
|
return u[0].value;
|
|
3401
3401
|
var c = u.reduce(function(f, h) {
|
|
3402
|
-
return !f.length || h.type !==
|
|
3402
|
+
return !f.length || h.type !== Y.literal || typeof f[f.length - 1] != "string" ? f.push(h.value) : f[f.length - 1] += h.value, f;
|
|
3403
3403
|
}, []);
|
|
3404
3404
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3405
3405
|
}, this.formatToParts = function(l) {
|
|
3406
|
-
return
|
|
3406
|
+
return Tt(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
|
|
3407
3407
|
}, this.resolvedOptions = function() {
|
|
3408
3408
|
var l;
|
|
3409
3409
|
return {
|
|
3410
|
-
locale: ((l =
|
|
3410
|
+
locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3411
3411
|
};
|
|
3412
3412
|
}, this.getAst = function() {
|
|
3413
|
-
return
|
|
3413
|
+
return o.ast;
|
|
3414
3414
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3415
3415
|
if (this.message = t, !e.__parse)
|
|
3416
3416
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3417
|
-
var
|
|
3418
|
-
|
|
3419
|
-
var s = gi(
|
|
3417
|
+
var a = i || {};
|
|
3418
|
+
a.formatters;
|
|
3419
|
+
var s = gi(a, ["formatters"]);
|
|
3420
3420
|
this.ast = e.__parse(t, me(me({}, s), { locale: this.resolvedLocale }));
|
|
3421
3421
|
} else
|
|
3422
3422
|
this.ast = t;
|
|
3423
3423
|
if (!Array.isArray(this.ast))
|
|
3424
3424
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3425
|
-
this.formats =
|
|
3425
|
+
this.formats = oo(e.formats, r), this.formatters = i && i.formatters || ao(this.formatterCache);
|
|
3426
3426
|
}
|
|
3427
3427
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3428
3428
|
get: function() {
|
|
@@ -3435,7 +3435,7 @@ var sa = (
|
|
|
3435
3435
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3436
3436
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3437
3437
|
}
|
|
3438
|
-
}, e.__parse =
|
|
3438
|
+
}, e.__parse = Ji, e.formats = {
|
|
3439
3439
|
number: {
|
|
3440
3440
|
integer: {
|
|
3441
3441
|
maximumFractionDigits: 0
|
|
@@ -3496,7 +3496,7 @@ var sa = (
|
|
|
3496
3496
|
}, e;
|
|
3497
3497
|
}()
|
|
3498
3498
|
);
|
|
3499
|
-
function
|
|
3499
|
+
function lo(e, t) {
|
|
3500
3500
|
if (t == null)
|
|
3501
3501
|
return;
|
|
3502
3502
|
if (t in e)
|
|
@@ -3506,9 +3506,9 @@ function la(e, t) {
|
|
|
3506
3506
|
for (let i = 0; i < n.length; i++)
|
|
3507
3507
|
if (typeof r == "object") {
|
|
3508
3508
|
if (i > 0) {
|
|
3509
|
-
const
|
|
3510
|
-
if (
|
|
3511
|
-
r = r[
|
|
3509
|
+
const o = n.slice(i, n.length).join(".");
|
|
3510
|
+
if (o in r) {
|
|
3511
|
+
r = r[o];
|
|
3512
3512
|
break;
|
|
3513
3513
|
}
|
|
3514
3514
|
}
|
|
@@ -3517,36 +3517,36 @@ function la(e, t) {
|
|
|
3517
3517
|
r = void 0;
|
|
3518
3518
|
return r;
|
|
3519
3519
|
}
|
|
3520
|
-
const
|
|
3520
|
+
const Pe = {}, uo = (e, t, n) => n && (t in Pe || (Pe[t] = {}), e in Pe[t] || (Pe[t][e] = n), n), Cr = (e, t) => {
|
|
3521
3521
|
if (t == null)
|
|
3522
3522
|
return;
|
|
3523
|
-
if (t in
|
|
3524
|
-
return
|
|
3525
|
-
const n =
|
|
3523
|
+
if (t in Pe && e in Pe[t])
|
|
3524
|
+
return Pe[t][e];
|
|
3525
|
+
const n = Mt(t);
|
|
3526
3526
|
for (let r = 0; r < n.length; r++) {
|
|
3527
|
-
const i = n[r],
|
|
3528
|
-
if (
|
|
3529
|
-
return
|
|
3527
|
+
const i = n[r], o = ho(i, e);
|
|
3528
|
+
if (o)
|
|
3529
|
+
return uo(e, t, o);
|
|
3530
3530
|
}
|
|
3531
3531
|
};
|
|
3532
|
-
let
|
|
3533
|
-
const
|
|
3534
|
-
function
|
|
3535
|
-
return
|
|
3532
|
+
let yn;
|
|
3533
|
+
const et = Rt({});
|
|
3534
|
+
function co(e) {
|
|
3535
|
+
return yn[e] || null;
|
|
3536
3536
|
}
|
|
3537
3537
|
function Tr(e) {
|
|
3538
|
-
return e in
|
|
3538
|
+
return e in yn;
|
|
3539
3539
|
}
|
|
3540
|
-
function
|
|
3540
|
+
function ho(e, t) {
|
|
3541
3541
|
if (!Tr(e))
|
|
3542
3542
|
return null;
|
|
3543
|
-
const n =
|
|
3544
|
-
return
|
|
3543
|
+
const n = co(e);
|
|
3544
|
+
return lo(n, t);
|
|
3545
3545
|
}
|
|
3546
|
-
function
|
|
3546
|
+
function fo(e) {
|
|
3547
3547
|
if (e == null)
|
|
3548
3548
|
return;
|
|
3549
|
-
const t =
|
|
3549
|
+
const t = Mt(e);
|
|
3550
3550
|
for (let n = 0; n < t.length; n++) {
|
|
3551
3551
|
const r = t[n];
|
|
3552
3552
|
if (Tr(r))
|
|
@@ -3554,55 +3554,55 @@ function fa(e) {
|
|
|
3554
3554
|
}
|
|
3555
3555
|
}
|
|
3556
3556
|
function Br(e, ...t) {
|
|
3557
|
-
delete
|
|
3557
|
+
delete Pe[e], et.update((n) => (n[e] = mi.all([n[e] || {}, ...t]), n));
|
|
3558
3558
|
}
|
|
3559
3559
|
Je(
|
|
3560
|
-
[
|
|
3560
|
+
[et],
|
|
3561
3561
|
([e]) => Object.keys(e)
|
|
3562
3562
|
);
|
|
3563
|
-
|
|
3564
|
-
const
|
|
3565
|
-
function
|
|
3566
|
-
|
|
3563
|
+
et.subscribe((e) => yn = e);
|
|
3564
|
+
const Bt = {};
|
|
3565
|
+
function po(e, t) {
|
|
3566
|
+
Bt[e].delete(t), Bt[e].size === 0 && delete Bt[e];
|
|
3567
3567
|
}
|
|
3568
3568
|
function Sr(e) {
|
|
3569
|
-
return
|
|
3569
|
+
return Bt[e];
|
|
3570
3570
|
}
|
|
3571
|
-
function
|
|
3572
|
-
return
|
|
3571
|
+
function mo(e) {
|
|
3572
|
+
return Mt(e).map((t) => {
|
|
3573
3573
|
const n = Sr(t);
|
|
3574
3574
|
return [t, n ? [...n] : []];
|
|
3575
3575
|
}).filter(([, t]) => t.length > 0);
|
|
3576
3576
|
}
|
|
3577
|
-
function
|
|
3578
|
-
return e == null ? !1 :
|
|
3577
|
+
function hn(e) {
|
|
3578
|
+
return e == null ? !1 : Mt(e).some(
|
|
3579
3579
|
(t) => {
|
|
3580
3580
|
var n;
|
|
3581
3581
|
return (n = Sr(t)) == null ? void 0 : n.size;
|
|
3582
3582
|
}
|
|
3583
3583
|
);
|
|
3584
3584
|
}
|
|
3585
|
-
function
|
|
3585
|
+
function go(e, t) {
|
|
3586
3586
|
return Promise.all(
|
|
3587
|
-
t.map((r) => (
|
|
3587
|
+
t.map((r) => (po(e, r), r().then((i) => i.default || i)))
|
|
3588
3588
|
).then((r) => Br(e, ...r));
|
|
3589
3589
|
}
|
|
3590
|
-
const
|
|
3590
|
+
const st = {};
|
|
3591
3591
|
function Hr(e) {
|
|
3592
|
-
if (!
|
|
3593
|
-
return e in
|
|
3594
|
-
const t =
|
|
3595
|
-
return
|
|
3592
|
+
if (!hn(e))
|
|
3593
|
+
return e in st ? st[e] : Promise.resolve();
|
|
3594
|
+
const t = mo(e);
|
|
3595
|
+
return st[e] = Promise.all(
|
|
3596
3596
|
t.map(
|
|
3597
|
-
([n, r]) =>
|
|
3597
|
+
([n, r]) => go(n, r)
|
|
3598
3598
|
)
|
|
3599
3599
|
).then(() => {
|
|
3600
|
-
if (
|
|
3600
|
+
if (hn(e))
|
|
3601
3601
|
return Hr(e);
|
|
3602
|
-
delete
|
|
3603
|
-
}),
|
|
3602
|
+
delete st[e];
|
|
3603
|
+
}), st[e];
|
|
3604
3604
|
}
|
|
3605
|
-
const
|
|
3605
|
+
const bo = {
|
|
3606
3606
|
number: {
|
|
3607
3607
|
scientific: { notation: "scientific" },
|
|
3608
3608
|
engineering: { notation: "engineering" },
|
|
@@ -3631,150 +3631,150 @@ const ga = {
|
|
|
3631
3631
|
timeZoneName: "short"
|
|
3632
3632
|
}
|
|
3633
3633
|
}
|
|
3634
|
-
},
|
|
3634
|
+
}, yo = {
|
|
3635
3635
|
fallbackLocale: null,
|
|
3636
3636
|
loadingDelay: 200,
|
|
3637
|
-
formats:
|
|
3637
|
+
formats: bo,
|
|
3638
3638
|
warnOnMissingMessages: !0,
|
|
3639
3639
|
handleMissingMessage: void 0,
|
|
3640
3640
|
ignoreTag: !0
|
|
3641
|
-
},
|
|
3641
|
+
}, vo = yo;
|
|
3642
3642
|
function Ye() {
|
|
3643
|
-
return
|
|
3643
|
+
return vo;
|
|
3644
3644
|
}
|
|
3645
|
-
const
|
|
3646
|
-
var
|
|
3645
|
+
const Qt = Rt(!1);
|
|
3646
|
+
var Eo = Object.defineProperty, _o = Object.defineProperties, xo = Object.getOwnPropertyDescriptors, Mn = Object.getOwnPropertySymbols, wo = Object.prototype.hasOwnProperty, Ao = Object.prototype.propertyIsEnumerable, kn = (e, t, n) => t in e ? Eo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Co = (e, t) => {
|
|
3647
3647
|
for (var n in t || (t = {}))
|
|
3648
|
-
|
|
3648
|
+
wo.call(t, n) && kn(e, n, t[n]);
|
|
3649
3649
|
if (Mn)
|
|
3650
3650
|
for (var n of Mn(t))
|
|
3651
|
-
|
|
3651
|
+
Ao.call(t, n) && kn(e, n, t[n]);
|
|
3652
3652
|
return e;
|
|
3653
|
-
},
|
|
3654
|
-
let
|
|
3655
|
-
const Pt =
|
|
3653
|
+
}, To = (e, t) => _o(e, xo(t));
|
|
3654
|
+
let fn;
|
|
3655
|
+
const Pt = Rt(null);
|
|
3656
3656
|
function Un(e) {
|
|
3657
3657
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3658
3658
|
}
|
|
3659
|
-
function
|
|
3659
|
+
function Mt(e, t = Ye().fallbackLocale) {
|
|
3660
3660
|
const n = Un(e);
|
|
3661
3661
|
return t ? [.../* @__PURE__ */ new Set([...n, ...Un(t)])] : n;
|
|
3662
3662
|
}
|
|
3663
3663
|
function De() {
|
|
3664
|
-
return
|
|
3664
|
+
return fn != null ? fn : void 0;
|
|
3665
3665
|
}
|
|
3666
3666
|
Pt.subscribe((e) => {
|
|
3667
|
-
|
|
3667
|
+
fn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3668
3668
|
});
|
|
3669
|
-
const
|
|
3670
|
-
if (e &&
|
|
3669
|
+
const Bo = (e) => {
|
|
3670
|
+
if (e && fo(e) && hn(e)) {
|
|
3671
3671
|
const { loadingDelay: t } = Ye();
|
|
3672
3672
|
let n;
|
|
3673
3673
|
return typeof window != "undefined" && De() != null && t ? n = window.setTimeout(
|
|
3674
|
-
() =>
|
|
3674
|
+
() => Qt.set(!0),
|
|
3675
3675
|
t
|
|
3676
|
-
) :
|
|
3676
|
+
) : Qt.set(!0), Hr(e).then(() => {
|
|
3677
3677
|
Pt.set(e);
|
|
3678
3678
|
}).finally(() => {
|
|
3679
|
-
clearTimeout(n),
|
|
3679
|
+
clearTimeout(n), Qt.set(!1);
|
|
3680
3680
|
});
|
|
3681
3681
|
}
|
|
3682
3682
|
return Pt.set(e);
|
|
3683
|
-
}, Le =
|
|
3684
|
-
set:
|
|
3685
|
-
}),
|
|
3683
|
+
}, Le = To(Co({}, Pt), {
|
|
3684
|
+
set: Bo
|
|
3685
|
+
}), kt = (e) => {
|
|
3686
3686
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3687
3687
|
return (r) => {
|
|
3688
3688
|
const i = JSON.stringify(r);
|
|
3689
3689
|
return i in t ? t[i] : t[i] = e(r);
|
|
3690
3690
|
};
|
|
3691
3691
|
};
|
|
3692
|
-
var
|
|
3692
|
+
var So = Object.defineProperty, Lt = Object.getOwnPropertySymbols, Ir = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable, Vn = (e, t, n) => t in e ? So(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, vn = (e, t) => {
|
|
3693
3693
|
for (var n in t || (t = {}))
|
|
3694
|
-
|
|
3695
|
-
if (
|
|
3696
|
-
for (var n of
|
|
3697
|
-
|
|
3694
|
+
Ir.call(t, n) && Vn(e, n, t[n]);
|
|
3695
|
+
if (Lt)
|
|
3696
|
+
for (var n of Lt(t))
|
|
3697
|
+
Pr.call(t, n) && Vn(e, n, t[n]);
|
|
3698
3698
|
return e;
|
|
3699
|
-
},
|
|
3699
|
+
}, tt = (e, t) => {
|
|
3700
3700
|
var n = {};
|
|
3701
3701
|
for (var r in e)
|
|
3702
|
-
|
|
3703
|
-
if (e != null &&
|
|
3704
|
-
for (var r of
|
|
3705
|
-
t.indexOf(r) < 0 &&
|
|
3702
|
+
Ir.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3703
|
+
if (e != null && Lt)
|
|
3704
|
+
for (var r of Lt(e))
|
|
3705
|
+
t.indexOf(r) < 0 && Pr.call(e, r) && (n[r] = e[r]);
|
|
3706
3706
|
return n;
|
|
3707
3707
|
};
|
|
3708
|
-
const
|
|
3708
|
+
const ft = (e, t) => {
|
|
3709
3709
|
const { formats: n } = Ye();
|
|
3710
3710
|
if (e in n && t in n[e])
|
|
3711
3711
|
return n[e][t];
|
|
3712
3712
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3713
|
-
},
|
|
3713
|
+
}, Ho = kt(
|
|
3714
3714
|
(e) => {
|
|
3715
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3715
|
+
var t = e, { locale: n, format: r } = t, i = tt(t, ["locale", "format"]);
|
|
3716
3716
|
if (n == null)
|
|
3717
3717
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3718
|
-
return r && (i =
|
|
3718
|
+
return r && (i = ft("number", r)), new Intl.NumberFormat(n, i);
|
|
3719
3719
|
}
|
|
3720
|
-
),
|
|
3720
|
+
), Io = kt(
|
|
3721
3721
|
(e) => {
|
|
3722
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3722
|
+
var t = e, { locale: n, format: r } = t, i = tt(t, ["locale", "format"]);
|
|
3723
3723
|
if (n == null)
|
|
3724
3724
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3725
|
-
return r ? i =
|
|
3725
|
+
return r ? i = ft("date", r) : Object.keys(i).length === 0 && (i = ft("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3726
3726
|
}
|
|
3727
|
-
),
|
|
3727
|
+
), Po = kt(
|
|
3728
3728
|
(e) => {
|
|
3729
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3729
|
+
var t = e, { locale: n, format: r } = t, i = tt(t, ["locale", "format"]);
|
|
3730
3730
|
if (n == null)
|
|
3731
3731
|
throw new Error(
|
|
3732
3732
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3733
3733
|
);
|
|
3734
|
-
return r ? i =
|
|
3734
|
+
return r ? i = ft("time", r) : Object.keys(i).length === 0 && (i = ft("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3735
3735
|
}
|
|
3736
|
-
),
|
|
3736
|
+
), Lo = (e = {}) => {
|
|
3737
3737
|
var t = e, {
|
|
3738
3738
|
locale: n = De()
|
|
3739
|
-
} = t, r =
|
|
3739
|
+
} = t, r = tt(t, [
|
|
3740
3740
|
"locale"
|
|
3741
3741
|
]);
|
|
3742
|
-
return
|
|
3743
|
-
},
|
|
3742
|
+
return Ho(vn({ locale: n }, r));
|
|
3743
|
+
}, No = (e = {}) => {
|
|
3744
3744
|
var t = e, {
|
|
3745
3745
|
locale: n = De()
|
|
3746
|
-
} = t, r =
|
|
3746
|
+
} = t, r = tt(t, [
|
|
3747
3747
|
"locale"
|
|
3748
3748
|
]);
|
|
3749
|
-
return
|
|
3750
|
-
},
|
|
3749
|
+
return Io(vn({ locale: n }, r));
|
|
3750
|
+
}, Ro = (e = {}) => {
|
|
3751
3751
|
var t = e, {
|
|
3752
3752
|
locale: n = De()
|
|
3753
|
-
} = t, r =
|
|
3753
|
+
} = t, r = tt(t, [
|
|
3754
3754
|
"locale"
|
|
3755
3755
|
]);
|
|
3756
|
-
return
|
|
3757
|
-
},
|
|
3756
|
+
return Po(vn({ locale: n }, r));
|
|
3757
|
+
}, Oo = kt(
|
|
3758
3758
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3759
|
-
(e, t = De()) => new
|
|
3759
|
+
(e, t = De()) => new so(e, t, Ye().formats, {
|
|
3760
3760
|
ignoreTag: Ye().ignoreTag
|
|
3761
3761
|
})
|
|
3762
|
-
),
|
|
3763
|
-
var n, r, i,
|
|
3764
|
-
let
|
|
3765
|
-
typeof e == "object" && (
|
|
3762
|
+
), Do = (e, t = {}) => {
|
|
3763
|
+
var n, r, i, o;
|
|
3764
|
+
let a = t;
|
|
3765
|
+
typeof e == "object" && (a = e, e = a.id);
|
|
3766
3766
|
const {
|
|
3767
3767
|
values: s,
|
|
3768
3768
|
locale: l = De(),
|
|
3769
3769
|
default: u
|
|
3770
|
-
} =
|
|
3770
|
+
} = a;
|
|
3771
3771
|
if (l == null)
|
|
3772
3772
|
throw new Error(
|
|
3773
3773
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3774
3774
|
);
|
|
3775
3775
|
let c = Cr(e, l);
|
|
3776
3776
|
if (!c)
|
|
3777
|
-
c = (
|
|
3777
|
+
c = (o = (i = (r = (n = Ye()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3778
3778
|
else if (typeof c != "string")
|
|
3779
3779
|
return console.warn(
|
|
3780
3780
|
`[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.`
|
|
@@ -3783,7 +3783,7 @@ const ht = (e, t) => {
|
|
|
3783
3783
|
return c;
|
|
3784
3784
|
let f = c;
|
|
3785
3785
|
try {
|
|
3786
|
-
f =
|
|
3786
|
+
f = Oo(c, l).format(s);
|
|
3787
3787
|
} catch (h) {
|
|
3788
3788
|
h instanceof Error && console.warn(
|
|
3789
3789
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3791,23 +3791,23 @@ const ht = (e, t) => {
|
|
|
3791
3791
|
);
|
|
3792
3792
|
}
|
|
3793
3793
|
return f;
|
|
3794
|
-
},
|
|
3795
|
-
Je([Le], () =>
|
|
3796
|
-
Je([Le], () =>
|
|
3797
|
-
Je([Le], () =>
|
|
3798
|
-
Je([Le,
|
|
3799
|
-
function
|
|
3794
|
+
}, Mo = (e, t) => Ro(t).format(e), ko = (e, t) => No(t).format(e), Uo = (e, t) => Lo(t).format(e), Vo = (e, t = De()) => Cr(e, t), Fo = Je([Le, et], () => Do);
|
|
3795
|
+
Je([Le], () => Mo);
|
|
3796
|
+
Je([Le], () => ko);
|
|
3797
|
+
Je([Le], () => Uo);
|
|
3798
|
+
Je([Le, et], () => Vo);
|
|
3799
|
+
function Go({ withLocale: e, translations: t }) {
|
|
3800
3800
|
Le.subscribe((n) => {
|
|
3801
|
-
n == null && (
|
|
3801
|
+
n == null && (et.set(t), Le.set(e));
|
|
3802
3802
|
});
|
|
3803
3803
|
}
|
|
3804
3804
|
function Fn(e, t) {
|
|
3805
3805
|
Br(e, t);
|
|
3806
3806
|
}
|
|
3807
|
-
function
|
|
3807
|
+
function $o(e) {
|
|
3808
3808
|
Le.set(e);
|
|
3809
3809
|
}
|
|
3810
|
-
const k = kr(
|
|
3810
|
+
const k = kr(Fo), Gn = {
|
|
3811
3811
|
en: {
|
|
3812
3812
|
vaultExchange: "Vault Exchange",
|
|
3813
3813
|
debitPlaceHolder: "Debit amount",
|
|
@@ -3916,7 +3916,7 @@ const k = kr(Va), Gn = {
|
|
|
3916
3916
|
10114: "Kullanıcı hesabı aktif değil.",
|
|
3917
3917
|
10115: "İşlem niyeti bulunamadı."
|
|
3918
3918
|
}
|
|
3919
|
-
},
|
|
3919
|
+
}, jo = {
|
|
3920
3920
|
"1INCH": "",
|
|
3921
3921
|
AAVE: "",
|
|
3922
3922
|
ADA: "₳",
|
|
@@ -3993,7 +3993,7 @@ const k = kr(Va), Gn = {
|
|
|
3993
3993
|
DASH: "Đ",
|
|
3994
3994
|
DCR: "",
|
|
3995
3995
|
DJF: "",
|
|
3996
|
-
DKK: "
|
|
3996
|
+
DKK: "KR",
|
|
3997
3997
|
DOGE: "Ð",
|
|
3998
3998
|
DOP: "RD$",
|
|
3999
3999
|
DOT: "●",
|
|
@@ -4043,7 +4043,7 @@ const k = kr(Va), Gn = {
|
|
|
4043
4043
|
IOTX: "",
|
|
4044
4044
|
IQD: "د.ع",
|
|
4045
4045
|
IRR: "﷼",
|
|
4046
|
-
ISK: "
|
|
4046
|
+
ISK: "KR",
|
|
4047
4047
|
JMD: "J$",
|
|
4048
4048
|
JOD: "د.ا",
|
|
4049
4049
|
JPY: "¥",
|
|
@@ -4098,7 +4098,7 @@ const k = kr(Va), Gn = {
|
|
|
4098
4098
|
NEXO: "",
|
|
4099
4099
|
NGN: "₦",
|
|
4100
4100
|
NIO: "C$",
|
|
4101
|
-
NOK: "
|
|
4101
|
+
NOK: "KR",
|
|
4102
4102
|
NPR: "₨",
|
|
4103
4103
|
NZD: "$",
|
|
4104
4104
|
OKB: "",
|
|
@@ -4115,7 +4115,7 @@ const k = kr(Va), Gn = {
|
|
|
4115
4115
|
QAR: "﷼",
|
|
4116
4116
|
QNT: "",
|
|
4117
4117
|
QTUM: "",
|
|
4118
|
-
RON: "
|
|
4118
|
+
RON: "LEI",
|
|
4119
4119
|
ROSE: "",
|
|
4120
4120
|
RSD: "Дин.",
|
|
4121
4121
|
RUB: "₽",
|
|
@@ -4128,7 +4128,7 @@ const k = kr(Va), Gn = {
|
|
|
4128
4128
|
SCC: "",
|
|
4129
4129
|
SCR: "₨",
|
|
4130
4130
|
SDG: "د.س",
|
|
4131
|
-
SEK: "
|
|
4131
|
+
SEK: "KR",
|
|
4132
4132
|
SGD: "$",
|
|
4133
4133
|
SHIB: "",
|
|
4134
4134
|
SHP: "£",
|
|
@@ -4192,9 +4192,9 @@ const k = kr(Va), Gn = {
|
|
|
4192
4192
|
ZMK: "",
|
|
4193
4193
|
ZMW: "",
|
|
4194
4194
|
ZWD: "Z$"
|
|
4195
|
-
},
|
|
4195
|
+
}, Xo = 6e3, Wo = {
|
|
4196
4196
|
InvalidSession: "Invalid session"
|
|
4197
|
-
},
|
|
4197
|
+
}, q = {
|
|
4198
4198
|
BalanceError: "BalanceError",
|
|
4199
4199
|
CheckWalletExchangeError: "CheckWalletExchangeError",
|
|
4200
4200
|
WalletExchangeError: "WalletExchangeError",
|
|
@@ -4212,18 +4212,18 @@ const k = kr(Va), Gn = {
|
|
|
4212
4212
|
}, He = {
|
|
4213
4213
|
success: "success",
|
|
4214
4214
|
error: "error"
|
|
4215
|
-
}, Jt = String(Number.MAX_SAFE_INTEGER).length + 1,
|
|
4215
|
+
}, Jt = String(Number.MAX_SAFE_INTEGER).length + 1, wt = {
|
|
4216
4216
|
ArrowDown: "ArrowDown",
|
|
4217
4217
|
ArrowUp: "ArrowUp",
|
|
4218
4218
|
Enter: "Enter",
|
|
4219
4219
|
Escape: "Escape"
|
|
4220
|
-
},
|
|
4220
|
+
}, Ie = {
|
|
4221
4221
|
true: "true"
|
|
4222
4222
|
}, Xn = {
|
|
4223
4223
|
Fiat: "Fiat",
|
|
4224
4224
|
CryptoCurrency: "CryptoCurrency"
|
|
4225
4225
|
};
|
|
4226
|
-
function
|
|
4226
|
+
function zo(e, t) {
|
|
4227
4227
|
let n;
|
|
4228
4228
|
return function(...r) {
|
|
4229
4229
|
n && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -4238,7 +4238,7 @@ const Wn = (e, t = null, n = 2) => {
|
|
|
4238
4238
|
return console.warn("Failed to stringify:", r), null;
|
|
4239
4239
|
}
|
|
4240
4240
|
};
|
|
4241
|
-
function
|
|
4241
|
+
function Zo(e) {
|
|
4242
4242
|
const t = (n) => {
|
|
4243
4243
|
e.contains(n.target) || e.dispatchEvent(new CustomEvent("outclick"));
|
|
4244
4244
|
};
|
|
@@ -4248,8 +4248,8 @@ function za(e) {
|
|
|
4248
4248
|
}
|
|
4249
4249
|
};
|
|
4250
4250
|
}
|
|
4251
|
-
function
|
|
4252
|
-
dn(e, "svelte-
|
|
4251
|
+
function qo(e) {
|
|
4252
|
+
dn(e, "svelte-1g9pqha", ".selectWrapper.svelte-1g9pqha.svelte-1g9pqha{position:relative;min-width:96px;font-family:inherit;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px)}.selectButton.svelte-1g9pqha.svelte-1g9pqha{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;display:flex;align-items:center;justify-content:space-between;color:var(--emw--select-typography, #595959);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));padding:0 var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-family:inherit}.selectButton.svelte-1g9pqha.svelte-1g9pqha:focus-visible{outline:none}.label.svelte-1g9pqha.svelte-1g9pqha{display:flex;align-items:center}.selectDropdownWrapper.svelte-1g9pqha.svelte-1g9pqha{position:absolute;top:calc(100% + 2px);left:0;right:0;overflow:hidden;z-index:100;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px)}.selectDropdown.svelte-1g9pqha.svelte-1g9pqha{display:flex;flex-direction:column;gap:4px;max-height:150px;overflow-y:auto;scrollbar-width:thin}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha{height:24px;flex:0 0 24px;display:flex;align-items:center;;;padding:0 var(--emw--spacing-small, 10px);cursor:pointer;transition:all 0.3s ease}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha:hover,.selectDropdown.svelte-1g9pqha li.active.svelte-1g9pqha{background:var(--emw--selected-option, #f0f0f0)}.symbol.svelte-1g9pqha.svelte-1g9pqha{display:inline-flex;width:14px;height:14px;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw--symbol-background, #595959);font-size:var(--emw--font-size-small, 12px);color:var(--emw--symbol-typography, #fff)}");
|
|
4253
4253
|
}
|
|
4254
4254
|
function zn(e, t, n) {
|
|
4255
4255
|
const r = e.slice();
|
|
@@ -4263,61 +4263,61 @@ function Zn(e) {
|
|
|
4263
4263
|
), r;
|
|
4264
4264
|
return {
|
|
4265
4265
|
c() {
|
|
4266
|
-
t = A("span"), r = Z(n), b(t, "class", "symbol svelte-
|
|
4266
|
+
t = A("span"), r = Z(n), b(t, "class", "symbol svelte-1g9pqha");
|
|
4267
4267
|
},
|
|
4268
|
-
m(
|
|
4269
|
-
H(
|
|
4268
|
+
m(o, a) {
|
|
4269
|
+
H(o, t, a), v(t, r);
|
|
4270
4270
|
},
|
|
4271
|
-
p(
|
|
4271
|
+
p(o, a) {
|
|
4272
4272
|
var s;
|
|
4273
|
-
|
|
4273
|
+
a & /*selected*/
|
|
4274
4274
|
1 && n !== (n = /*selected*/
|
|
4275
|
-
(((s =
|
|
4275
|
+
(((s = o[0]) == null ? void 0 : s.symbol) || "") + "") && re(r, n);
|
|
4276
4276
|
},
|
|
4277
|
-
d(
|
|
4278
|
-
|
|
4277
|
+
d(o) {
|
|
4278
|
+
o && S(t);
|
|
4279
4279
|
}
|
|
4280
4280
|
};
|
|
4281
4281
|
}
|
|
4282
|
-
function
|
|
4283
|
-
let t, n =
|
|
4282
|
+
function qn(e) {
|
|
4283
|
+
let t, n, r = Ht(
|
|
4284
4284
|
/*options*/
|
|
4285
4285
|
e[1]
|
|
4286
|
-
),
|
|
4287
|
-
for (let
|
|
4288
|
-
|
|
4286
|
+
), i = [];
|
|
4287
|
+
for (let o = 0; o < r.length; o += 1)
|
|
4288
|
+
i[o] = Kn(zn(e, r, o));
|
|
4289
4289
|
return {
|
|
4290
4290
|
c() {
|
|
4291
|
-
t = A("ul");
|
|
4292
|
-
for (let
|
|
4293
|
-
|
|
4294
|
-
b(
|
|
4291
|
+
t = A("div"), n = A("ul");
|
|
4292
|
+
for (let o = 0; o < i.length; o += 1)
|
|
4293
|
+
i[o].c();
|
|
4294
|
+
b(n, "class", "selectDropdown svelte-1g9pqha"), b(t, "class", "selectDropdownWrapper svelte-1g9pqha");
|
|
4295
4295
|
},
|
|
4296
|
-
m(
|
|
4297
|
-
H(
|
|
4298
|
-
for (let
|
|
4299
|
-
|
|
4300
|
-
e[14](
|
|
4296
|
+
m(o, a) {
|
|
4297
|
+
H(o, t, a), v(t, n);
|
|
4298
|
+
for (let s = 0; s < i.length; s += 1)
|
|
4299
|
+
i[s] && i[s].m(n, null);
|
|
4300
|
+
e[14](n);
|
|
4301
4301
|
},
|
|
4302
|
-
p(
|
|
4302
|
+
p(o, a) {
|
|
4303
4303
|
if (a & /*options, selected, activeIndex, handleChange*/
|
|
4304
4304
|
547) {
|
|
4305
|
-
|
|
4305
|
+
r = Ht(
|
|
4306
4306
|
/*options*/
|
|
4307
|
-
|
|
4307
|
+
o[1]
|
|
4308
4308
|
);
|
|
4309
|
-
let
|
|
4310
|
-
for (
|
|
4311
|
-
const
|
|
4312
|
-
|
|
4309
|
+
let s;
|
|
4310
|
+
for (s = 0; s < r.length; s += 1) {
|
|
4311
|
+
const l = zn(o, r, s);
|
|
4312
|
+
i[s] ? i[s].p(l, a) : (i[s] = Kn(l), i[s].c(), i[s].m(n, null));
|
|
4313
4313
|
}
|
|
4314
|
-
for (;
|
|
4315
|
-
|
|
4316
|
-
|
|
4314
|
+
for (; s < i.length; s += 1)
|
|
4315
|
+
i[s].d(1);
|
|
4316
|
+
i.length = r.length;
|
|
4317
4317
|
}
|
|
4318
4318
|
},
|
|
4319
|
-
d(
|
|
4320
|
-
|
|
4319
|
+
d(o) {
|
|
4320
|
+
o && S(t), ir(i, o), e[14](null);
|
|
4321
4321
|
}
|
|
4322
4322
|
};
|
|
4323
4323
|
}
|
|
@@ -4326,18 +4326,18 @@ function Kn(e) {
|
|
|
4326
4326
|
let t, n, r = (
|
|
4327
4327
|
/*option*/
|
|
4328
4328
|
((h = e[16]) == null ? void 0 : h.symbol) + ""
|
|
4329
|
-
), i,
|
|
4329
|
+
), i, o, a = (
|
|
4330
4330
|
/*option*/
|
|
4331
4331
|
((m = e[16]) == null ? void 0 : m.currency) + ""
|
|
4332
4332
|
), s, l, u, c, f;
|
|
4333
4333
|
return {
|
|
4334
4334
|
c() {
|
|
4335
|
-
var _,
|
|
4336
|
-
t = A("li"), n = A("span"), i = Z(r),
|
|
4335
|
+
var _, d, E, C;
|
|
4336
|
+
t = A("li"), n = A("span"), i = Z(r), o = O(), s = Z(a), l = O(), b(n, "class", "symbol svelte-1g9pqha"), b(t, "role", "option"), b(t, "aria-selected", u = /*option*/
|
|
4337
4337
|
((_ = e[16]) == null ? void 0 : _.currency) === /*selected*/
|
|
4338
|
-
((
|
|
4338
|
+
((d = e[0]) == null ? void 0 : d.currency) || /*index*/
|
|
4339
4339
|
e[18] === /*activeIndex*/
|
|
4340
|
-
e[5]), b(t, "class", "svelte-
|
|
4340
|
+
e[5]), b(t, "class", "svelte-1g9pqha"), ue(
|
|
4341
4341
|
t,
|
|
4342
4342
|
"active",
|
|
4343
4343
|
/*option*/
|
|
@@ -4347,11 +4347,11 @@ function Kn(e) {
|
|
|
4347
4347
|
e[5]
|
|
4348
4348
|
);
|
|
4349
4349
|
},
|
|
4350
|
-
m(_,
|
|
4351
|
-
H(_, t,
|
|
4352
|
-
ne(t, "keydown",
|
|
4350
|
+
m(_, d) {
|
|
4351
|
+
H(_, t, d), v(t, n), v(n, i), v(t, o), v(t, s), v(t, l), c || (f = [
|
|
4352
|
+
ne(t, "keydown", Qo),
|
|
4353
4353
|
ne(t, "click", function() {
|
|
4354
|
-
|
|
4354
|
+
pt(
|
|
4355
4355
|
/*handleChange*/
|
|
4356
4356
|
e[9](
|
|
4357
4357
|
/*option*/
|
|
@@ -4368,18 +4368,18 @@ function Kn(e) {
|
|
|
4368
4368
|
})
|
|
4369
4369
|
], c = !0);
|
|
4370
4370
|
},
|
|
4371
|
-
p(_,
|
|
4371
|
+
p(_, d) {
|
|
4372
4372
|
var E, C, R, y, D, M;
|
|
4373
|
-
e = _,
|
|
4373
|
+
e = _, d & /*options*/
|
|
4374
4374
|
2 && r !== (r = /*option*/
|
|
4375
|
-
((E = e[16]) == null ? void 0 : E.symbol) + "") && re(i, r),
|
|
4376
|
-
2 &&
|
|
4377
|
-
((C = e[16]) == null ? void 0 : C.currency) + "") && re(s,
|
|
4375
|
+
((E = e[16]) == null ? void 0 : E.symbol) + "") && re(i, r), d & /*options*/
|
|
4376
|
+
2 && a !== (a = /*option*/
|
|
4377
|
+
((C = e[16]) == null ? void 0 : C.currency) + "") && re(s, a), d & /*options, selected, activeIndex*/
|
|
4378
4378
|
35 && u !== (u = /*option*/
|
|
4379
4379
|
((R = e[16]) == null ? void 0 : R.currency) === /*selected*/
|
|
4380
4380
|
((y = e[0]) == null ? void 0 : y.currency) || /*index*/
|
|
4381
4381
|
e[18] === /*activeIndex*/
|
|
4382
|
-
e[5]) && b(t, "aria-selected", u),
|
|
4382
|
+
e[5]) && b(t, "aria-selected", u), d & /*options, selected, activeIndex*/
|
|
4383
4383
|
35 && ue(
|
|
4384
4384
|
t,
|
|
4385
4385
|
"active",
|
|
@@ -4395,37 +4395,37 @@ function Kn(e) {
|
|
|
4395
4395
|
}
|
|
4396
4396
|
};
|
|
4397
4397
|
}
|
|
4398
|
-
function
|
|
4399
|
-
var _,
|
|
4400
|
-
let t, n, r, i,
|
|
4398
|
+
function Ko(e) {
|
|
4399
|
+
var _, d;
|
|
4400
|
+
let t, n, r, i, o = (
|
|
4401
4401
|
/*selected*/
|
|
4402
4402
|
(((_ = e[0]) == null ? void 0 : _.currency) || /*placeholder*/
|
|
4403
4403
|
e[2]) + ""
|
|
4404
|
-
),
|
|
4404
|
+
), a, s, l, u, c, f, h = (
|
|
4405
4405
|
/*selected*/
|
|
4406
|
-
((
|
|
4407
|
-
e[3] ===
|
|
4406
|
+
((d = e[0]) == null ? void 0 : d.symbol) && /*withSymbol*/
|
|
4407
|
+
e[3] === Ie.true && Zn(e)
|
|
4408
4408
|
), m = (
|
|
4409
4409
|
/*open*/
|
|
4410
|
-
e[7] &&
|
|
4410
|
+
e[7] && qn(e)
|
|
4411
4411
|
);
|
|
4412
4412
|
return {
|
|
4413
4413
|
c() {
|
|
4414
|
-
t = A("div"), n = A("button"), r = A("span"), h && h.c(), i = O(),
|
|
4414
|
+
t = A("div"), n = A("button"), r = A("span"), h && h.c(), i = O(), a = Z(o), s = O(), l = A("span"), l.innerHTML = '<svg width="12" height="7" viewBox="0 0 12 7" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z" fill="currentColor"></path></svg>', u = O(), m && m.c(), b(r, "class", "label svelte-1g9pqha"), b(l, "class", "arrow"), ue(
|
|
4415
4415
|
l,
|
|
4416
4416
|
"open",
|
|
4417
4417
|
/*open*/
|
|
4418
4418
|
e[7]
|
|
4419
|
-
), b(n, "class", "selectButton svelte-
|
|
4419
|
+
), b(n, "class", "selectButton svelte-1g9pqha"), b(n, "aria-haspopup", "listbox"), b(
|
|
4420
4420
|
n,
|
|
4421
4421
|
"aria-expanded",
|
|
4422
4422
|
/*open*/
|
|
4423
4423
|
e[7]
|
|
4424
4424
|
), b(n, "aria-controls", "custom-select"), b(n, "tabindex", "0"), n.disabled = /*disabled*/
|
|
4425
|
-
e[4], b(t, "class", "selectWrapper svelte-
|
|
4425
|
+
e[4], b(t, "class", "selectWrapper svelte-1g9pqha");
|
|
4426
4426
|
},
|
|
4427
4427
|
m(E, C) {
|
|
4428
|
-
H(E, t, C), v(t, n), v(n, r), h && h.m(r, null), v(r, i), v(r,
|
|
4428
|
+
H(E, t, C), v(t, n), v(n, r), h && h.m(r, null), v(r, i), v(r, a), v(n, s), v(n, l), v(t, u), m && m.m(t, null), c || (f = [
|
|
4429
4429
|
ne(
|
|
4430
4430
|
n,
|
|
4431
4431
|
"keydown",
|
|
@@ -4436,7 +4436,7 @@ function Qa(e) {
|
|
|
4436
4436
|
/*handleToggleDropdown*/
|
|
4437
4437
|
e[8]
|
|
4438
4438
|
)),
|
|
4439
|
-
Ur(
|
|
4439
|
+
Ur(Zo.call(null, t)),
|
|
4440
4440
|
ne(
|
|
4441
4441
|
t,
|
|
4442
4442
|
"outclick",
|
|
@@ -4449,10 +4449,10 @@ function Qa(e) {
|
|
|
4449
4449
|
var R, y;
|
|
4450
4450
|
/*selected*/
|
|
4451
4451
|
(R = E[0]) != null && R.symbol && /*withSymbol*/
|
|
4452
|
-
E[3] ===
|
|
4453
|
-
5 &&
|
|
4452
|
+
E[3] === Ie.true ? h ? h.p(E, C) : (h = Zn(E), h.c(), h.m(r, i)) : h && (h.d(1), h = null), C & /*selected, placeholder*/
|
|
4453
|
+
5 && o !== (o = /*selected*/
|
|
4454
4454
|
(((y = E[0]) == null ? void 0 : y.currency) || /*placeholder*/
|
|
4455
|
-
E[2]) + "") && re(
|
|
4455
|
+
E[2]) + "") && re(a, o), C & /*open*/
|
|
4456
4456
|
128 && ue(
|
|
4457
4457
|
l,
|
|
4458
4458
|
"open",
|
|
@@ -4467,7 +4467,7 @@ function Qa(e) {
|
|
|
4467
4467
|
), C & /*disabled*/
|
|
4468
4468
|
16 && (n.disabled = /*disabled*/
|
|
4469
4469
|
E[4]), /*open*/
|
|
4470
|
-
E[7] ? m ? m.p(E, C) : (m =
|
|
4470
|
+
E[7] ? m ? m.p(E, C) : (m = qn(E), m.c(), m.m(t, null)) : m && (m.d(1), m = null);
|
|
4471
4471
|
},
|
|
4472
4472
|
i: L,
|
|
4473
4473
|
o: L,
|
|
@@ -4476,44 +4476,44 @@ function Qa(e) {
|
|
|
4476
4476
|
}
|
|
4477
4477
|
};
|
|
4478
4478
|
}
|
|
4479
|
-
const
|
|
4480
|
-
function
|
|
4481
|
-
let { options: r = [] } = t, { selected: i = null } = t, { placeholder:
|
|
4479
|
+
const Qo = (e) => e.preventDefault();
|
|
4480
|
+
function Yo(e, t, n) {
|
|
4481
|
+
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: o = k("select") } = t, { withSymbol: a = "true" } = t, { id: s } = t, { disabled: l = !1 } = t, { onChange: u = () => {
|
|
4482
4482
|
} } = t, c = -1, f, h = !1;
|
|
4483
4483
|
const m = () => {
|
|
4484
4484
|
r.length !== 0 && (n(7, h = !h), h && (n(5, c = r.findIndex((y) => (y == null ? void 0 : y.currency) === (i == null ? void 0 : i.currency))), setTimeout(() => f == null ? void 0 : f.focus(), 0), window.dispatchEvent(new CustomEvent("dropdown-opened", { detail: s }))));
|
|
4485
4485
|
}, _ = (y) => {
|
|
4486
4486
|
y.detail !== s && h && n(7, h = !1);
|
|
4487
|
-
},
|
|
4487
|
+
}, d = (y, D) => () => {
|
|
4488
4488
|
n(7, h = !1), n(0, i = y), u && typeof u == "function" && u(y, D);
|
|
4489
4489
|
}, E = () => {
|
|
4490
4490
|
n(7, h = !1);
|
|
4491
4491
|
}, C = (y) => {
|
|
4492
|
-
h && (y.key ===
|
|
4492
|
+
h && (y.key === wt.ArrowDown ? (y.preventDefault(), n(5, c = (c + 1) % r.length)) : y.key === wt.ArrowUp ? (y.preventDefault(), n(5, c = (c - 1 + r.length) % r.length)) : y.key === wt.Enter ? (y.preventDefault(), d(i, c)()) : y.key === wt.Escape && n(7, h = !1));
|
|
4493
4493
|
};
|
|
4494
|
-
|
|
4494
|
+
ar(() => {
|
|
4495
4495
|
window.addEventListener("dropdown-opened", _);
|
|
4496
4496
|
}), Wr(() => {
|
|
4497
4497
|
window.removeEventListener("dropdown-opened", _);
|
|
4498
4498
|
});
|
|
4499
4499
|
function R(y) {
|
|
4500
|
-
|
|
4500
|
+
We[y ? "unshift" : "push"](() => {
|
|
4501
4501
|
f = y, n(6, f);
|
|
4502
4502
|
});
|
|
4503
4503
|
}
|
|
4504
4504
|
return e.$$set = (y) => {
|
|
4505
|
-
"options" in y && n(1, r = y.options), "selected" in y && n(0, i = y.selected), "placeholder" in y && n(2,
|
|
4505
|
+
"options" in y && n(1, r = y.options), "selected" in y && n(0, i = y.selected), "placeholder" in y && n(2, o = y.placeholder), "withSymbol" in y && n(3, a = y.withSymbol), "id" in y && n(12, s = y.id), "disabled" in y && n(4, l = y.disabled), "onChange" in y && n(13, u = y.onChange);
|
|
4506
4506
|
}, [
|
|
4507
4507
|
i,
|
|
4508
4508
|
r,
|
|
4509
|
-
a,
|
|
4510
4509
|
o,
|
|
4510
|
+
a,
|
|
4511
4511
|
l,
|
|
4512
4512
|
c,
|
|
4513
4513
|
f,
|
|
4514
4514
|
h,
|
|
4515
4515
|
m,
|
|
4516
|
-
|
|
4516
|
+
d,
|
|
4517
4517
|
E,
|
|
4518
4518
|
C,
|
|
4519
4519
|
s,
|
|
@@ -4521,14 +4521,14 @@ function Ya(e, t, n) {
|
|
|
4521
4521
|
R
|
|
4522
4522
|
];
|
|
4523
4523
|
}
|
|
4524
|
-
class
|
|
4524
|
+
class pn extends bn {
|
|
4525
4525
|
constructor(t) {
|
|
4526
|
-
super(),
|
|
4526
|
+
super(), mn(
|
|
4527
4527
|
this,
|
|
4528
4528
|
t,
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4529
|
+
Yo,
|
|
4530
|
+
Ko,
|
|
4531
|
+
Nt,
|
|
4532
4532
|
{
|
|
4533
4533
|
options: 1,
|
|
4534
4534
|
selected: 0,
|
|
@@ -4538,7 +4538,7 @@ class fn extends gn {
|
|
|
4538
4538
|
disabled: 4,
|
|
4539
4539
|
onChange: 13
|
|
4540
4540
|
},
|
|
4541
|
-
|
|
4541
|
+
qo
|
|
4542
4542
|
);
|
|
4543
4543
|
}
|
|
4544
4544
|
get options() {
|
|
@@ -4584,48 +4584,48 @@ class fn extends gn {
|
|
|
4584
4584
|
this.$$set({ onChange: t }), G();
|
|
4585
4585
|
}
|
|
4586
4586
|
}
|
|
4587
|
-
|
|
4588
|
-
function
|
|
4587
|
+
gn(pn, { options: {}, selected: {}, placeholder: {}, withSymbol: {}, id: {}, disabled: { type: "Boolean" }, onChange: {} }, [], [], !0);
|
|
4588
|
+
function Jo(e) {
|
|
4589
4589
|
dn(e, "svelte-2fhtvy", ".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}");
|
|
4590
4590
|
}
|
|
4591
|
-
function
|
|
4591
|
+
function ea(e) {
|
|
4592
4592
|
let t, n, r = k("balanceUnavailable") + "", i;
|
|
4593
4593
|
return {
|
|
4594
4594
|
c() {
|
|
4595
4595
|
t = A("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 = O(), i = Z(r), b(t, "class", "warningIcon svelte-2fhtvy");
|
|
4596
4596
|
},
|
|
4597
|
-
m(
|
|
4598
|
-
H(
|
|
4597
|
+
m(o, a) {
|
|
4598
|
+
H(o, t, a), H(o, n, a), H(o, i, a);
|
|
4599
4599
|
},
|
|
4600
4600
|
p: L,
|
|
4601
4601
|
i: L,
|
|
4602
4602
|
o: L,
|
|
4603
|
-
d(
|
|
4604
|
-
|
|
4603
|
+
d(o) {
|
|
4604
|
+
o && (S(t), S(n), S(i));
|
|
4605
4605
|
}
|
|
4606
4606
|
};
|
|
4607
4607
|
}
|
|
4608
|
-
class
|
|
4608
|
+
class Ut extends bn {
|
|
4609
4609
|
constructor(t) {
|
|
4610
|
-
super(),
|
|
4610
|
+
super(), mn(this, t, null, ea, Nt, {}, Jo);
|
|
4611
4611
|
}
|
|
4612
4612
|
}
|
|
4613
|
-
|
|
4614
|
-
function
|
|
4615
|
-
dn(e, "svelte-rr3qrx", '@charset "UTF-8";*{margin:0;padding:0}.playerAccountVault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);background:var(--emw--widget-background, #F8F8F8);color:var(--emw--typography, #595959);padding:var(--emw--spacing-medium, 16px);position:relative}.playerAccountVault .closeButton{position:absolute;background:none;border:none;top:var(--emw--spacing-medium, 16px);right:var(--emw--spacing-small, 10px);line-height:0;cursor:pointer}.playerAccountVault .closeButton svg{fill:var(--emw--color-faded, #A0A29F)}.playerAccountVault .playerVaultContainer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-smaller, 5px);box-sizing:border-box}.playerAccountVault .amountContainer{display:flex;align-items:center}.playerAccountVault .headerContainer{display:flex;width:100%;gap:var(--emw--spacing-small, 10px);justify-content:space-between;flex-direction:column}.playerAccountVault .headerContainer .headerTitle{font-family:inherit;color:var(--emw--color-secondary, #24B04F);font-size:var(--emw--font-size-large, 16px);font-weight:var(--emw--font-weight-normal, 400)}.playerAccountVault .headerContainer .totalAmount{margin-right:4px;color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .exchangesContainer{width:100%;height:100%;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .exchangeHeader,.playerAccountVault .exchangesContainer .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow{display:flex;align-items:center;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-outer-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]{-moz-appearance:textfield}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput{flex:1;min-width:50px;border:unset;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-medium, 14px);padding:0 var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-small, 8px);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));font-family:inherit;color:var(--emw--input-typography, #000)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput[disabled],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput[disabled]{color:var(--emw--input-disabled, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput::placeholder,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput::placeholder{color:var(--emw--input-placeholder, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect{min-width:96px;border:unset;white-space:nowrap;height:var(--emw--base-height, 36px);padding:0 var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer{display:flex;justify-content:space-between;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer .validationError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer .validationError{flex:1}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance{white-space:nowrap;justify-content:flex-end}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance .amount,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance .amount{color:var(--emw--color-faded, #A0A29F);margin-right:4px}.playerAccountVault .vaultsContainer{display:flex;flex-direction:column;width:100%}.playerAccountVault .vaultsContainer .vaultToggleButton{display:flex;align-items:center;justify-content:center;width:35px;height:35px;cursor:pointer;border:unset;align-self:flex-end;padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon path{fill:var(--emw--color-white, #fff)}.playerAccountVault .vaultsContainer .vaultToggleButton.active .vaultToggleIcon{transform:rotateZ(180deg)}.playerAccountVault .vaultsContainer .vaultDropdown{width:80%;max-height:0;height:200px;margin:0 auto;display:flex;flex-direction:column;overflow:auto;opacity:0;scrollbar-width:thin;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-white, #fff);font-family:inherit;transition:max-height 0.4s ease-out, opacity 0.4s ease-out}.playerAccountVault .vaultsContainer .vaultDropdown .vaultItem{display:inherit;font-size:var(--emw--font-size-medium, 14px);justify-content:space-between;width:100%;margin:0 auto;box-sizing:border-box;height:var(--emw--base-height, 36px);padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultDropdown.expanded{transition:max-height 1s ease-in, opacity 0.4s ease-in;max-height:1000vh;opacity:1}.playerAccountVault .notificationsContainer{width:100%;min-height:var(--emw--base-height, 36px);padding:0px}.playerAccountVault .notificationsContainer.error{color:var(--emw--color-error, #FF2424)}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, #24B04F)}.playerAccountVault .feesContainer{width:100%;height:var(--emw--base-height, 36px);display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px);padding:0 var(--emw--spacing-small, 10px);box-sizing:border-box}.playerAccountVault .feesContainer .feesLabel{color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .actionsContainer{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .actionsContainer button{flex:1;height:var(--emw--base-height, 36px);border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-weight:var(--emw--font-weight-bold, 500);transition:background 0.3s ease, color 0.3s ease, filter 0.3s ease}.playerAccountVault .actionsContainer .exchangeButton{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--color-primary, #24B04F);border:1px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled.pending{background:var(--emw--color-primary, #24B04F);pointer-events:none;opacity:0.5}.playerAccountVault .skeleton{background-color:rgba(0, 0, 0, 0.11);height:auto;min-height:0.1rem;-webkit-animation:loading 1.5s ease-in-out 0.5s infinite;animation:loading 1.5s ease-in-out 0.5s infinite}.playerAccountVault .skeleton::before{content:" "}@keyframes loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.playerAccountVault .exchangeContainer{display:flex;flex-direction:column;gap:4px}');
|
|
4613
|
+
gn(Ut, {}, [], [], !0);
|
|
4614
|
+
function ta(e) {
|
|
4615
|
+
dn(e, "svelte-1mw4zse", '@charset "UTF-8";*{margin:0;padding:0}.playerAccountVault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);background:var(--emw--widget-background, #F8F8F8);color:var(--emw--typography, #595959);padding:var(--emw--spacing-medium, 16px);position:relative}.playerAccountVault .closeButton{position:absolute;background:none;border:none;top:var(--emw--spacing-medium, 16px);right:var(--emw--spacing-small, 10px);line-height:0;cursor:pointer}.playerAccountVault .closeButton svg{fill:var(--emw--color-faded, #A0A29F)}.playerAccountVault .playerVaultContainer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-smaller, 5px);box-sizing:border-box}.playerAccountVault .amountContainer{display:flex;align-items:center}.playerAccountVault .headerContainer{display:flex;width:100%;gap:var(--emw--spacing-small, 10px);justify-content:space-between;flex-direction:column}.playerAccountVault .headerContainer .headerTitle{font-family:inherit;color:var(--emw--color-secondary, #24B04F);font-size:var(--emw--font-size-large, 16px);font-weight:var(--emw--font-weight-normal, 400)}.playerAccountVault .headerContainer .totalAmount{margin-right:4px;color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .exchangesContainer{width:100%;height:100%;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .exchangeHeader,.playerAccountVault .exchangesContainer .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow{display:flex;align-items:center;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-outer-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]{-moz-appearance:textfield}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput{flex:1;min-width:50px;border:unset;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-medium, 14px);padding:0 var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-small, 8px);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));font-family:inherit;color:var(--emw--input-typography, #000)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput[disabled],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput[disabled]{color:var(--emw--input-disabled, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput::placeholder,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput::placeholder{color:var(--emw--input-placeholder, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect{min-width:96px;border:unset;white-space:nowrap;height:var(--emw--base-height, 36px);padding:0 var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer{display:flex;justify-content:space-between;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer .validationError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer .validationError{flex:1}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance{white-space:nowrap;justify-content:flex-end}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance .amount,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance .amount{color:var(--emw--color-faded, #A0A29F);margin-right:4px}.playerAccountVault .vaultsContainer{display:flex;flex-direction:column;width:100%}.playerAccountVault .vaultsContainer .vaultToggleButton{display:flex;align-items:center;justify-content:center;width:35px;height:35px;cursor:pointer;border:unset;align-self:flex-end;padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon path{fill:var(--emw--color-white, #fff)}.playerAccountVault .vaultsContainer .vaultToggleButton.active .vaultToggleIcon{transform:rotateZ(180deg)}.playerAccountVault .vaultsContainer .vaultDropdown{width:80%;max-height:0;height:200px;margin:0 auto;display:flex;flex-direction:column;overflow:auto;opacity:0;scrollbar-width:thin;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-white, #fff);font-family:inherit;transition:max-height 0.4s ease-out, opacity 0.4s ease-out}.playerAccountVault .vaultsContainer .vaultDropdown .vaultItem{display:inherit;font-size:var(--emw--font-size-medium, 14px);justify-content:space-between;width:100%;margin:0 auto;box-sizing:border-box;height:var(--emw--base-height, 36px);padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultDropdown.expanded{transition:max-height 1s ease-in, opacity 0.4s ease-in;max-height:1000vh;opacity:1}.playerAccountVault .notificationsContainer{width:100%;min-height:var(--emw--base-height, 36px);padding:0px}.playerAccountVault .notificationsContainer.error{color:var(--emw--color-error, #FF2424)}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, #24B04F)}.playerAccountVault .feesContainer{width:100%;height:var(--emw--base-height, 36px);display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px);padding:0 var(--emw--spacing-small, 10px);box-sizing:border-box}.playerAccountVault .feesContainer .feesLabel{color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .actionsContainer{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .actionsContainer button{flex:1;height:var(--emw--base-height, 36px);border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--button-font-size, 14px);border-radius:var(--emw--border-radius-small, 8px);font-weight:var(--emw--font-weight-bold, 500);transition:background 0.3s ease, color 0.3s ease, filter 0.3s ease}.playerAccountVault .actionsContainer .exchangeButton{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--color-primary, #24B04F);border:1px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled.pending{background:var(--emw--color-primary, #24B04F);pointer-events:none;opacity:0.5}.playerAccountVault .skeleton{background-color:rgba(0, 0, 0, 0.11);height:auto;min-height:0.1rem;-webkit-animation:loading 1.5s ease-in-out 0.5s infinite;animation:loading 1.5s ease-in-out 0.5s infinite}.playerAccountVault .skeleton::before{content:" "}@keyframes loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.playerAccountVault .exchangeContainer{display:flex;flex-direction:column;gap:4px}');
|
|
4616
4616
|
}
|
|
4617
|
-
function
|
|
4617
|
+
function Qn(e, t, n) {
|
|
4618
4618
|
const r = e.slice();
|
|
4619
4619
|
return r[62] = t[n], r;
|
|
4620
4620
|
}
|
|
4621
|
-
function
|
|
4621
|
+
function Yn(e) {
|
|
4622
4622
|
let t, n, r;
|
|
4623
4623
|
return {
|
|
4624
4624
|
c() {
|
|
4625
4625
|
t = A("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>', b(t, "type", "button"), b(t, "class", "closeButton");
|
|
4626
4626
|
},
|
|
4627
|
-
m(i,
|
|
4628
|
-
H(i, t,
|
|
4627
|
+
m(i, o) {
|
|
4628
|
+
H(i, t, o), n || (r = ne(
|
|
4629
4629
|
t,
|
|
4630
4630
|
"click",
|
|
4631
4631
|
/*handleCloseWidget*/
|
|
@@ -4638,26 +4638,26 @@ function Jn(e) {
|
|
|
4638
4638
|
}
|
|
4639
4639
|
};
|
|
4640
4640
|
}
|
|
4641
|
-
function
|
|
4641
|
+
function Jn(e) {
|
|
4642
4642
|
let t, n, r, i;
|
|
4643
|
-
const
|
|
4643
|
+
const o = [ra, na], a = [];
|
|
4644
4644
|
function s(l, u) {
|
|
4645
4645
|
return !/*isBalanceFetched*/
|
|
4646
4646
|
l[16] || !/*isCurrenciesFetched*/
|
|
4647
4647
|
l[17] ? 0 : 1;
|
|
4648
4648
|
}
|
|
4649
|
-
return t = s(e), n =
|
|
4649
|
+
return t = s(e), n = a[t] = o[t](e), {
|
|
4650
4650
|
c() {
|
|
4651
4651
|
n.c(), r = Gr();
|
|
4652
4652
|
},
|
|
4653
4653
|
m(l, u) {
|
|
4654
|
-
|
|
4654
|
+
a[t].m(l, u), H(l, r, u), i = !0;
|
|
4655
4655
|
},
|
|
4656
4656
|
p(l, u) {
|
|
4657
4657
|
let c = t;
|
|
4658
|
-
t = s(l), t === c ?
|
|
4659
|
-
|
|
4660
|
-
}), Oe(), n =
|
|
4658
|
+
t = s(l), t === c ? a[t].p(l, u) : (Re(), z(a[c], 1, 1, () => {
|
|
4659
|
+
a[c] = null;
|
|
4660
|
+
}), Oe(), n = a[t], n ? n.p(l, u) : (n = a[t] = o[t](l), n.c()), $(n, 1), n.m(r.parentNode, r));
|
|
4661
4661
|
},
|
|
4662
4662
|
i(l) {
|
|
4663
4663
|
i || ($(n), i = !0);
|
|
@@ -4666,32 +4666,32 @@ function qn(e) {
|
|
|
4666
4666
|
z(n), i = !1;
|
|
4667
4667
|
},
|
|
4668
4668
|
d(l) {
|
|
4669
|
-
l && S(r),
|
|
4669
|
+
l && S(r), a[t].d(l);
|
|
4670
4670
|
}
|
|
4671
4671
|
};
|
|
4672
4672
|
}
|
|
4673
|
-
function
|
|
4673
|
+
function na(e) {
|
|
4674
4674
|
let t, n, r, i;
|
|
4675
|
-
const
|
|
4675
|
+
const o = [oa, ia], a = [];
|
|
4676
4676
|
function s(l, u) {
|
|
4677
4677
|
var c;
|
|
4678
4678
|
return (
|
|
4679
4679
|
/*fetchResponse*/
|
|
4680
|
-
((c = l[12]) == null ? void 0 : c.source) ===
|
|
4680
|
+
((c = l[12]) == null ? void 0 : c.source) === q.BalanceError ? 0 : 1
|
|
4681
4681
|
);
|
|
4682
4682
|
}
|
|
4683
|
-
return n = s(e), r =
|
|
4683
|
+
return n = s(e), r = a[n] = o[n](e), {
|
|
4684
4684
|
c() {
|
|
4685
4685
|
t = A("div"), r.c(), b(t, "class", "headerPlayerBalance amountContainer");
|
|
4686
4686
|
},
|
|
4687
4687
|
m(l, u) {
|
|
4688
|
-
H(l, t, u),
|
|
4688
|
+
H(l, t, u), a[n].m(t, null), i = !0;
|
|
4689
4689
|
},
|
|
4690
4690
|
p(l, u) {
|
|
4691
4691
|
let c = n;
|
|
4692
|
-
n = s(l), n === c ?
|
|
4693
|
-
|
|
4694
|
-
}), Oe(), r =
|
|
4692
|
+
n = s(l), n === c ? a[n].p(l, u) : (Re(), z(a[c], 1, 1, () => {
|
|
4693
|
+
a[c] = null;
|
|
4694
|
+
}), Oe(), r = a[n], r ? r.p(l, u) : (r = a[n] = o[n](l), r.c()), $(r, 1), r.m(t, null));
|
|
4695
4695
|
},
|
|
4696
4696
|
i(l) {
|
|
4697
4697
|
i || ($(r), i = !0);
|
|
@@ -4700,11 +4700,11 @@ function to(e) {
|
|
|
4700
4700
|
z(r), i = !1;
|
|
4701
4701
|
},
|
|
4702
4702
|
d(l) {
|
|
4703
|
-
l && S(t),
|
|
4703
|
+
l && S(t), a[n].d();
|
|
4704
4704
|
}
|
|
4705
4705
|
};
|
|
4706
4706
|
}
|
|
4707
|
-
function
|
|
4707
|
+
function ra(e) {
|
|
4708
4708
|
let t;
|
|
4709
4709
|
return {
|
|
4710
4710
|
c() {
|
|
@@ -4721,45 +4721,45 @@ function no(e) {
|
|
|
4721
4721
|
}
|
|
4722
4722
|
};
|
|
4723
4723
|
}
|
|
4724
|
-
function
|
|
4724
|
+
function ia(e) {
|
|
4725
4725
|
var l, u;
|
|
4726
4726
|
let t, n, r = (
|
|
4727
4727
|
/*playerBalance*/
|
|
4728
4728
|
(((l = e[10]) == null ? void 0 : l.amount) || 0) + ""
|
|
4729
|
-
), i,
|
|
4729
|
+
), i, o, a = (
|
|
4730
4730
|
/*playerBalance*/
|
|
4731
4731
|
(((u = e[10]) == null ? void 0 : u.currency) || "") + ""
|
|
4732
4732
|
), s;
|
|
4733
4733
|
return {
|
|
4734
4734
|
c() {
|
|
4735
|
-
t = A("span"), t.textContent = `${k("totalBalance")}`, n = O(), i = Z(r),
|
|
4735
|
+
t = A("span"), t.textContent = `${k("totalBalance")}`, n = O(), i = Z(r), o = O(), s = Z(a), b(t, "class", "totalAmount");
|
|
4736
4736
|
},
|
|
4737
4737
|
m(c, f) {
|
|
4738
|
-
H(c, t, f), H(c, n, f), H(c, i, f), H(c,
|
|
4738
|
+
H(c, t, f), H(c, n, f), H(c, i, f), H(c, o, f), H(c, s, f);
|
|
4739
4739
|
},
|
|
4740
4740
|
p(c, f) {
|
|
4741
4741
|
var h, m;
|
|
4742
4742
|
f[0] & /*playerBalance*/
|
|
4743
4743
|
1024 && r !== (r = /*playerBalance*/
|
|
4744
4744
|
(((h = c[10]) == null ? void 0 : h.amount) || 0) + "") && re(i, r), f[0] & /*playerBalance*/
|
|
4745
|
-
1024 &&
|
|
4746
|
-
(((m = c[10]) == null ? void 0 : m.currency) || "") + "") && re(s,
|
|
4745
|
+
1024 && a !== (a = /*playerBalance*/
|
|
4746
|
+
(((m = c[10]) == null ? void 0 : m.currency) || "") + "") && re(s, a);
|
|
4747
4747
|
},
|
|
4748
4748
|
i: L,
|
|
4749
4749
|
o: L,
|
|
4750
4750
|
d(c) {
|
|
4751
|
-
c && (S(t), S(n), S(i), S(
|
|
4751
|
+
c && (S(t), S(n), S(i), S(o), S(s));
|
|
4752
4752
|
}
|
|
4753
4753
|
};
|
|
4754
4754
|
}
|
|
4755
|
-
function
|
|
4755
|
+
function oa(e) {
|
|
4756
4756
|
let t, n;
|
|
4757
|
-
return t = new
|
|
4757
|
+
return t = new Ut({}), {
|
|
4758
4758
|
c() {
|
|
4759
|
-
|
|
4759
|
+
ct(t.$$.fragment);
|
|
4760
4760
|
},
|
|
4761
4761
|
m(r, i) {
|
|
4762
|
-
|
|
4762
|
+
ze(t, r, i), n = !0;
|
|
4763
4763
|
},
|
|
4764
4764
|
p: L,
|
|
4765
4765
|
i(r) {
|
|
@@ -4769,30 +4769,30 @@ function io(e) {
|
|
|
4769
4769
|
z(t.$$.fragment, r), n = !1;
|
|
4770
4770
|
},
|
|
4771
4771
|
d(r) {
|
|
4772
|
-
|
|
4772
|
+
Ze(t, r);
|
|
4773
4773
|
}
|
|
4774
4774
|
};
|
|
4775
4775
|
}
|
|
4776
|
-
function
|
|
4777
|
-
let t, n, r, i,
|
|
4778
|
-
const c = [
|
|
4776
|
+
function aa(e) {
|
|
4777
|
+
let t, n, r, i, o, a, s, l, u;
|
|
4778
|
+
const c = [ua, la], f = [];
|
|
4779
4779
|
function h(m, _) {
|
|
4780
|
-
var
|
|
4780
|
+
var d;
|
|
4781
4781
|
return (
|
|
4782
4782
|
/*fetchResponse*/
|
|
4783
|
-
((
|
|
4783
|
+
((d = m[12]) == null ? void 0 : d.source) === q.BalanceError ? 0 : 1
|
|
4784
4784
|
);
|
|
4785
4785
|
}
|
|
4786
|
-
return
|
|
4786
|
+
return a = h(e), s = f[a] = c[a](e), {
|
|
4787
4787
|
c() {
|
|
4788
4788
|
t = A("div"), n = A("p"), r = Z(
|
|
4789
4789
|
/*validationError*/
|
|
4790
4790
|
e[13]
|
|
4791
|
-
), i = O(),
|
|
4791
|
+
), i = O(), o = A("div"), s.c(), b(n, "class", "validationError"), b(o, "class", "playerBalance amountContainer"), b(t, "class", l = "balanceContainer " + /*validationError*/
|
|
4792
4792
|
(e[13] ? "hasError" : ""));
|
|
4793
4793
|
},
|
|
4794
4794
|
m(m, _) {
|
|
4795
|
-
H(m, t, _), v(t, n), v(n, r), v(t, i), v(t,
|
|
4795
|
+
H(m, t, _), v(t, n), v(n, r), v(t, i), v(t, o), f[a].m(o, null), u = !0;
|
|
4796
4796
|
},
|
|
4797
4797
|
p(m, _) {
|
|
4798
4798
|
(!u || _[0] & /*validationError*/
|
|
@@ -4801,10 +4801,10 @@ function ao(e) {
|
|
|
4801
4801
|
/*validationError*/
|
|
4802
4802
|
m[13]
|
|
4803
4803
|
);
|
|
4804
|
-
let
|
|
4805
|
-
|
|
4806
|
-
f[
|
|
4807
|
-
}), Oe(), s = f[
|
|
4804
|
+
let d = a;
|
|
4805
|
+
a = h(m), a === d ? f[a].p(m, _) : (Re(), z(f[d], 1, 1, () => {
|
|
4806
|
+
f[d] = null;
|
|
4807
|
+
}), Oe(), s = f[a], s ? s.p(m, _) : (s = f[a] = c[a](m), s.c()), $(s, 1), s.m(o, null)), (!u || _[0] & /*validationError*/
|
|
4808
4808
|
8192 && l !== (l = "balanceContainer " + /*validationError*/
|
|
4809
4809
|
(m[13] ? "hasError" : ""))) && b(t, "class", l);
|
|
4810
4810
|
},
|
|
@@ -4815,11 +4815,11 @@ function ao(e) {
|
|
|
4815
4815
|
z(s), u = !1;
|
|
4816
4816
|
},
|
|
4817
4817
|
d(m) {
|
|
4818
|
-
m && S(t), f[
|
|
4818
|
+
m && S(t), f[a].d();
|
|
4819
4819
|
}
|
|
4820
4820
|
};
|
|
4821
4821
|
}
|
|
4822
|
-
function
|
|
4822
|
+
function sa(e) {
|
|
4823
4823
|
let t;
|
|
4824
4824
|
return {
|
|
4825
4825
|
c() {
|
|
@@ -4836,45 +4836,45 @@ function oo(e) {
|
|
|
4836
4836
|
}
|
|
4837
4837
|
};
|
|
4838
4838
|
}
|
|
4839
|
-
function
|
|
4839
|
+
function la(e) {
|
|
4840
4840
|
var l, u;
|
|
4841
4841
|
let t, n, r = (
|
|
4842
4842
|
/*selectedCurrencyFrom*/
|
|
4843
4843
|
(((l = e[5]) == null ? void 0 : l.amount) || 0) + ""
|
|
4844
|
-
), i,
|
|
4844
|
+
), i, o, a = (
|
|
4845
4845
|
/*selectedCurrencyFrom*/
|
|
4846
4846
|
(((u = e[5]) == null ? void 0 : u.currency) || "") + ""
|
|
4847
4847
|
), s;
|
|
4848
4848
|
return {
|
|
4849
4849
|
c() {
|
|
4850
|
-
t = A("span"), t.textContent = `${k("currentBalance")}`, n = O(), i = Z(r),
|
|
4850
|
+
t = A("span"), t.textContent = `${k("currentBalance")}`, n = O(), i = Z(r), o = O(), s = Z(a), b(t, "class", "amount");
|
|
4851
4851
|
},
|
|
4852
4852
|
m(c, f) {
|
|
4853
|
-
H(c, t, f), H(c, n, f), H(c, i, f), H(c,
|
|
4853
|
+
H(c, t, f), H(c, n, f), H(c, i, f), H(c, o, f), H(c, s, f);
|
|
4854
4854
|
},
|
|
4855
4855
|
p(c, f) {
|
|
4856
4856
|
var h, m;
|
|
4857
4857
|
f[0] & /*selectedCurrencyFrom*/
|
|
4858
4858
|
32 && r !== (r = /*selectedCurrencyFrom*/
|
|
4859
4859
|
(((h = c[5]) == null ? void 0 : h.amount) || 0) + "") && re(i, r), f[0] & /*selectedCurrencyFrom*/
|
|
4860
|
-
32 &&
|
|
4861
|
-
(((m = c[5]) == null ? void 0 : m.currency) || "") + "") && re(s,
|
|
4860
|
+
32 && a !== (a = /*selectedCurrencyFrom*/
|
|
4861
|
+
(((m = c[5]) == null ? void 0 : m.currency) || "") + "") && re(s, a);
|
|
4862
4862
|
},
|
|
4863
4863
|
i: L,
|
|
4864
4864
|
o: L,
|
|
4865
4865
|
d(c) {
|
|
4866
|
-
c && (S(t), S(n), S(i), S(
|
|
4866
|
+
c && (S(t), S(n), S(i), S(o), S(s));
|
|
4867
4867
|
}
|
|
4868
4868
|
};
|
|
4869
4869
|
}
|
|
4870
|
-
function
|
|
4870
|
+
function ua(e) {
|
|
4871
4871
|
let t, n;
|
|
4872
|
-
return t = new
|
|
4872
|
+
return t = new Ut({}), {
|
|
4873
4873
|
c() {
|
|
4874
|
-
|
|
4874
|
+
ct(t.$$.fragment);
|
|
4875
4875
|
},
|
|
4876
4876
|
m(r, i) {
|
|
4877
|
-
|
|
4877
|
+
ze(t, r, i), n = !0;
|
|
4878
4878
|
},
|
|
4879
4879
|
p: L,
|
|
4880
4880
|
i(r) {
|
|
@@ -4884,32 +4884,32 @@ function lo(e) {
|
|
|
4884
4884
|
z(t.$$.fragment, r), n = !1;
|
|
4885
4885
|
},
|
|
4886
4886
|
d(r) {
|
|
4887
|
-
|
|
4887
|
+
Ze(t, r);
|
|
4888
4888
|
}
|
|
4889
4889
|
};
|
|
4890
4890
|
}
|
|
4891
|
-
function
|
|
4891
|
+
function ca(e) {
|
|
4892
4892
|
let t, n, r, i;
|
|
4893
|
-
const
|
|
4893
|
+
const o = [pa, fa], a = [];
|
|
4894
4894
|
function s(l, u) {
|
|
4895
4895
|
var c;
|
|
4896
4896
|
return (
|
|
4897
4897
|
/*fetchResponse*/
|
|
4898
|
-
((c = l[12]) == null ? void 0 : c.source) ===
|
|
4898
|
+
((c = l[12]) == null ? void 0 : c.source) === q.BalanceError ? 0 : 1
|
|
4899
4899
|
);
|
|
4900
4900
|
}
|
|
4901
|
-
return n = s(e), r =
|
|
4901
|
+
return n = s(e), r = a[n] = o[n](e), {
|
|
4902
4902
|
c() {
|
|
4903
4903
|
t = A("div"), r.c(), b(t, "class", "playerBalance amountContainer");
|
|
4904
4904
|
},
|
|
4905
4905
|
m(l, u) {
|
|
4906
|
-
H(l, t, u),
|
|
4906
|
+
H(l, t, u), a[n].m(t, null), i = !0;
|
|
4907
4907
|
},
|
|
4908
4908
|
p(l, u) {
|
|
4909
4909
|
let c = n;
|
|
4910
|
-
n = s(l), n === c ?
|
|
4911
|
-
|
|
4912
|
-
}), Oe(), r =
|
|
4910
|
+
n = s(l), n === c ? a[n].p(l, u) : (Re(), z(a[c], 1, 1, () => {
|
|
4911
|
+
a[c] = null;
|
|
4912
|
+
}), Oe(), r = a[n], r ? r.p(l, u) : (r = a[n] = o[n](l), r.c()), $(r, 1), r.m(t, null));
|
|
4913
4913
|
},
|
|
4914
4914
|
i(l) {
|
|
4915
4915
|
i || ($(r), i = !0);
|
|
@@ -4918,11 +4918,11 @@ function uo(e) {
|
|
|
4918
4918
|
z(r), i = !1;
|
|
4919
4919
|
},
|
|
4920
4920
|
d(l) {
|
|
4921
|
-
l && S(t),
|
|
4921
|
+
l && S(t), a[n].d();
|
|
4922
4922
|
}
|
|
4923
4923
|
};
|
|
4924
4924
|
}
|
|
4925
|
-
function
|
|
4925
|
+
function ha(e) {
|
|
4926
4926
|
let t;
|
|
4927
4927
|
return {
|
|
4928
4928
|
c() {
|
|
@@ -4939,45 +4939,45 @@ function co(e) {
|
|
|
4939
4939
|
}
|
|
4940
4940
|
};
|
|
4941
4941
|
}
|
|
4942
|
-
function
|
|
4942
|
+
function fa(e) {
|
|
4943
4943
|
var l, u;
|
|
4944
4944
|
let t, n, r = (
|
|
4945
4945
|
/*selectedCurrencyTo*/
|
|
4946
4946
|
(((l = e[6]) == null ? void 0 : l.amount) || 0) + ""
|
|
4947
|
-
), i,
|
|
4947
|
+
), i, o, a = (
|
|
4948
4948
|
/*selectedCurrencyTo*/
|
|
4949
4949
|
(((u = e[6]) == null ? void 0 : u.currency) || "") + ""
|
|
4950
4950
|
), s;
|
|
4951
4951
|
return {
|
|
4952
4952
|
c() {
|
|
4953
|
-
t = A("span"), t.textContent = `${k("currentBalance")}`, n = O(), i = Z(r),
|
|
4953
|
+
t = A("span"), t.textContent = `${k("currentBalance")}`, n = O(), i = Z(r), o = O(), s = Z(a), b(t, "class", "amount");
|
|
4954
4954
|
},
|
|
4955
4955
|
m(c, f) {
|
|
4956
|
-
H(c, t, f), H(c, n, f), H(c, i, f), H(c,
|
|
4956
|
+
H(c, t, f), H(c, n, f), H(c, i, f), H(c, o, f), H(c, s, f);
|
|
4957
4957
|
},
|
|
4958
4958
|
p(c, f) {
|
|
4959
4959
|
var h, m;
|
|
4960
4960
|
f[0] & /*selectedCurrencyTo*/
|
|
4961
4961
|
64 && r !== (r = /*selectedCurrencyTo*/
|
|
4962
4962
|
(((h = c[6]) == null ? void 0 : h.amount) || 0) + "") && re(i, r), f[0] & /*selectedCurrencyTo*/
|
|
4963
|
-
64 &&
|
|
4964
|
-
(((m = c[6]) == null ? void 0 : m.currency) || "") + "") && re(s,
|
|
4963
|
+
64 && a !== (a = /*selectedCurrencyTo*/
|
|
4964
|
+
(((m = c[6]) == null ? void 0 : m.currency) || "") + "") && re(s, a);
|
|
4965
4965
|
},
|
|
4966
4966
|
i: L,
|
|
4967
4967
|
o: L,
|
|
4968
4968
|
d(c) {
|
|
4969
|
-
c && (S(t), S(n), S(i), S(
|
|
4969
|
+
c && (S(t), S(n), S(i), S(o), S(s));
|
|
4970
4970
|
}
|
|
4971
4971
|
};
|
|
4972
4972
|
}
|
|
4973
|
-
function
|
|
4973
|
+
function pa(e) {
|
|
4974
4974
|
let t, n;
|
|
4975
|
-
return t = new
|
|
4975
|
+
return t = new Ut({}), {
|
|
4976
4976
|
c() {
|
|
4977
|
-
|
|
4977
|
+
ct(t.$$.fragment);
|
|
4978
4978
|
},
|
|
4979
4979
|
m(r, i) {
|
|
4980
|
-
|
|
4980
|
+
ze(t, r, i), n = !0;
|
|
4981
4981
|
},
|
|
4982
4982
|
p: L,
|
|
4983
4983
|
i(r) {
|
|
@@ -4987,32 +4987,32 @@ function fo(e) {
|
|
|
4987
4987
|
z(t.$$.fragment, r), n = !1;
|
|
4988
4988
|
},
|
|
4989
4989
|
d(r) {
|
|
4990
|
-
|
|
4990
|
+
Ze(t, r);
|
|
4991
4991
|
}
|
|
4992
4992
|
};
|
|
4993
4993
|
}
|
|
4994
4994
|
function er(e) {
|
|
4995
|
-
let t, n, r, i,
|
|
4995
|
+
let t, n, r, i, o, a, s, l, u, c, f = Ht(
|
|
4996
4996
|
/*dropDownVaults*/
|
|
4997
4997
|
e[19]
|
|
4998
4998
|
), h = [];
|
|
4999
4999
|
for (let m = 0; m < f.length; m += 1)
|
|
5000
|
-
h[m] = tr(
|
|
5000
|
+
h[m] = tr(Qn(e, f, m));
|
|
5001
5001
|
return {
|
|
5002
5002
|
c() {
|
|
5003
|
-
t = A("div"), n = A("button"), r = Cn("svg"), i = Cn("path"),
|
|
5003
|
+
t = A("div"), n = A("button"), r = Cn("svg"), i = Cn("path"), a = O(), s = A("div");
|
|
5004
5004
|
for (let m = 0; m < h.length; m += 1)
|
|
5005
5005
|
h[m].c();
|
|
5006
|
-
b(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"), b(i, "fill", "currentColor"), b(r, "class", "vaultToggleIcon"), b(r, "width", "12"), b(r, "height", "7"), b(r, "viewBox", "0 0 12 7"), b(r, "fill", "currentColor"), b(r, "xmlns", "http://www.w3.org/2000/svg"), b(n, "type", "button"), b(n, "class",
|
|
5006
|
+
b(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"), b(i, "fill", "currentColor"), b(r, "class", "vaultToggleIcon"), b(r, "width", "12"), b(r, "height", "7"), b(r, "viewBox", "0 0 12 7"), b(r, "fill", "currentColor"), b(r, "xmlns", "http://www.w3.org/2000/svg"), b(n, "type", "button"), b(n, "class", o = "vaultToggleButton " + /*isVaultDropDownToggled*/
|
|
5007
5007
|
(e[15] && /*dropDownVaults*/
|
|
5008
5008
|
e[19].length > 0 ? "active" : "")), b(s, "class", l = "vaultDropdown " + /*isVaultDropDownToggled*/
|
|
5009
5009
|
(e[15] && /*dropDownVaults*/
|
|
5010
5010
|
e[19].length > 0 ? "expanded" : "")), b(t, "class", "vaultsContainer");
|
|
5011
5011
|
},
|
|
5012
5012
|
m(m, _) {
|
|
5013
|
-
H(m, t, _), v(t, n), v(n, r), v(r, i), v(t,
|
|
5014
|
-
for (let
|
|
5015
|
-
h[
|
|
5013
|
+
H(m, t, _), v(t, n), v(n, r), v(r, i), v(t, a), v(t, s);
|
|
5014
|
+
for (let d = 0; d < h.length; d += 1)
|
|
5015
|
+
h[d] && h[d].m(s, null);
|
|
5016
5016
|
u || (c = ne(
|
|
5017
5017
|
n,
|
|
5018
5018
|
"click",
|
|
@@ -5022,21 +5022,21 @@ function er(e) {
|
|
|
5022
5022
|
},
|
|
5023
5023
|
p(m, _) {
|
|
5024
5024
|
if (_[0] & /*isVaultDropDownToggled, dropDownVaults*/
|
|
5025
|
-
557056 &&
|
|
5025
|
+
557056 && o !== (o = "vaultToggleButton " + /*isVaultDropDownToggled*/
|
|
5026
5026
|
(m[15] && /*dropDownVaults*/
|
|
5027
|
-
m[19].length > 0 ? "active" : "")) && b(n, "class",
|
|
5027
|
+
m[19].length > 0 ? "active" : "")) && b(n, "class", o), _[0] & /*dropDownVaults*/
|
|
5028
5028
|
524288) {
|
|
5029
|
-
f =
|
|
5029
|
+
f = Ht(
|
|
5030
5030
|
/*dropDownVaults*/
|
|
5031
5031
|
m[19]
|
|
5032
5032
|
);
|
|
5033
|
-
let
|
|
5034
|
-
for (
|
|
5035
|
-
const E =
|
|
5036
|
-
h[
|
|
5033
|
+
let d;
|
|
5034
|
+
for (d = 0; d < f.length; d += 1) {
|
|
5035
|
+
const E = Qn(m, f, d);
|
|
5036
|
+
h[d] ? h[d].p(E, _) : (h[d] = tr(E), h[d].c(), h[d].m(s, null));
|
|
5037
5037
|
}
|
|
5038
|
-
for (;
|
|
5039
|
-
h[
|
|
5038
|
+
for (; d < h.length; d += 1)
|
|
5039
|
+
h[d].d(1);
|
|
5040
5040
|
h.length = f.length;
|
|
5041
5041
|
}
|
|
5042
5042
|
_[0] & /*isVaultDropDownToggled, dropDownVaults*/
|
|
@@ -5054,35 +5054,35 @@ function tr(e) {
|
|
|
5054
5054
|
let t, n, r = (
|
|
5055
5055
|
/*vault*/
|
|
5056
5056
|
((c = e[62]) == null ? void 0 : c.currency) + ""
|
|
5057
|
-
), i,
|
|
5057
|
+
), i, o, a, s = (
|
|
5058
5058
|
/*vault*/
|
|
5059
5059
|
((f = e[62]) == null ? void 0 : f.amount) + ""
|
|
5060
5060
|
), l, u;
|
|
5061
5061
|
return {
|
|
5062
5062
|
c() {
|
|
5063
|
-
t = A("div"), n = A("p"), i = Z(r),
|
|
5063
|
+
t = A("div"), n = A("p"), i = Z(r), o = O(), a = A("p"), l = Z(s), u = O(), b(t, "class", "vaultItem");
|
|
5064
5064
|
},
|
|
5065
5065
|
m(h, m) {
|
|
5066
|
-
H(h, t, m), v(t, n), v(n, i), v(t,
|
|
5066
|
+
H(h, t, m), v(t, n), v(n, i), v(t, o), v(t, a), v(a, l), v(t, u);
|
|
5067
5067
|
},
|
|
5068
5068
|
p(h, m) {
|
|
5069
|
-
var _,
|
|
5069
|
+
var _, d;
|
|
5070
5070
|
m[0] & /*dropDownVaults*/
|
|
5071
5071
|
524288 && r !== (r = /*vault*/
|
|
5072
5072
|
((_ = h[62]) == null ? void 0 : _.currency) + "") && re(i, r), m[0] & /*dropDownVaults*/
|
|
5073
5073
|
524288 && s !== (s = /*vault*/
|
|
5074
|
-
((
|
|
5074
|
+
((d = h[62]) == null ? void 0 : d.amount) + "") && re(l, s);
|
|
5075
5075
|
},
|
|
5076
5076
|
d(h) {
|
|
5077
5077
|
h && S(t);
|
|
5078
5078
|
}
|
|
5079
5079
|
};
|
|
5080
5080
|
}
|
|
5081
|
-
function
|
|
5082
|
-
var r, i,
|
|
5081
|
+
function da(e) {
|
|
5082
|
+
var r, i, o, a;
|
|
5083
5083
|
let t = `${/*currentFee*/
|
|
5084
5084
|
((i = (r = e[11]) == null ? void 0 : r.fees[0]) == null ? void 0 : i.amount) || 0} ${/*currentFee*/
|
|
5085
|
-
((
|
|
5085
|
+
((a = (o = e[11]) == null ? void 0 : o.fees[0]) == null ? void 0 : a.currency) || ""}`, n;
|
|
5086
5086
|
return {
|
|
5087
5087
|
c() {
|
|
5088
5088
|
n = Z(t);
|
|
@@ -5102,7 +5102,7 @@ function po(e) {
|
|
|
5102
5102
|
}
|
|
5103
5103
|
};
|
|
5104
5104
|
}
|
|
5105
|
-
function
|
|
5105
|
+
function ma(e) {
|
|
5106
5106
|
let t = k("feesUnavailable") + "", n;
|
|
5107
5107
|
return {
|
|
5108
5108
|
c() {
|
|
@@ -5117,22 +5117,22 @@ function mo(e) {
|
|
|
5117
5117
|
}
|
|
5118
5118
|
};
|
|
5119
5119
|
}
|
|
5120
|
-
function
|
|
5120
|
+
function ga(e) {
|
|
5121
5121
|
var j;
|
|
5122
|
-
let t, n, r, i,
|
|
5122
|
+
let t, n, r, i, o, a, s, l, u, c, f, h, m, _, d, E, C, R, y, D, M, X, ge, ie, W, ce, be, se, he, Ae, K, J, fe, nt, Ce, Me, dt, ke, rt, oe, ye = k(
|
|
5123
5123
|
/*fetchResponse*/
|
|
5124
5124
|
((j = e[12]) == null ? void 0 : j.message) || ""
|
|
5125
|
-
) + "",
|
|
5125
|
+
) + "", Te, ve, Ee, Ue, ee, Be = k("exchange") + "", mt, _e, te, it, ot, Q = (
|
|
5126
5126
|
/*showclosebutton*/
|
|
5127
|
-
e[3] ===
|
|
5127
|
+
e[3] === Ie.true && Yn(e)
|
|
5128
5128
|
), F = (
|
|
5129
5129
|
/*showtotalbalance*/
|
|
5130
|
-
e[2] ===
|
|
5130
|
+
e[2] === Ie.true && Jn(e)
|
|
5131
5131
|
);
|
|
5132
|
-
function
|
|
5132
|
+
function Vt(g) {
|
|
5133
5133
|
e[39](g);
|
|
5134
5134
|
}
|
|
5135
|
-
let
|
|
5135
|
+
let gt = {
|
|
5136
5136
|
id: "senderSelect",
|
|
5137
5137
|
withSymbol: (
|
|
5138
5138
|
/*showcurrencysymbol*/
|
|
@@ -5151,19 +5151,19 @@ function go(e) {
|
|
|
5151
5151
|
)
|
|
5152
5152
|
};
|
|
5153
5153
|
/*selectedCurrencyFrom*/
|
|
5154
|
-
e[5] !== void 0 && (
|
|
5155
|
-
e[5]),
|
|
5156
|
-
const
|
|
5157
|
-
function at(g,
|
|
5154
|
+
e[5] !== void 0 && (gt.selected = /*selectedCurrencyFrom*/
|
|
5155
|
+
e[5]), d = new pn({ props: gt }), We.push(() => Bn(d, "selected", Vt));
|
|
5156
|
+
const bt = [sa, aa], pe = [];
|
|
5157
|
+
function at(g, B) {
|
|
5158
5158
|
return !/*isBalanceFetched*/
|
|
5159
5159
|
g[16] || !/*isCurrenciesFetched*/
|
|
5160
5160
|
g[17] ? 0 : 1;
|
|
5161
5161
|
}
|
|
5162
|
-
R = at(e), y =
|
|
5163
|
-
function
|
|
5162
|
+
R = at(e), y = pe[R] = bt[R](e);
|
|
5163
|
+
function Ft(g) {
|
|
5164
5164
|
e[41](g);
|
|
5165
5165
|
}
|
|
5166
|
-
let
|
|
5166
|
+
let yt = {
|
|
5167
5167
|
id: "destinationSelect",
|
|
5168
5168
|
withSymbol: (
|
|
5169
5169
|
/*showcurrencysymbol*/
|
|
@@ -5184,51 +5184,51 @@ function go(e) {
|
|
|
5184
5184
|
)
|
|
5185
5185
|
};
|
|
5186
5186
|
/*selectedCurrencyTo*/
|
|
5187
|
-
e[6] !== void 0 && (
|
|
5188
|
-
e[6]), se = new
|
|
5189
|
-
const
|
|
5190
|
-
function
|
|
5187
|
+
e[6] !== void 0 && (yt.selected = /*selectedCurrencyTo*/
|
|
5188
|
+
e[6]), se = new pn({ props: yt }), We.push(() => Bn(se, "selected", Ft));
|
|
5189
|
+
const vt = [ha, ca], de = [];
|
|
5190
|
+
function Et(g, B) {
|
|
5191
5191
|
return !/*isBalanceFetched*/
|
|
5192
5192
|
g[16] || !/*isCurrenciesFetched*/
|
|
5193
5193
|
g[17] ? 0 : 1;
|
|
5194
5194
|
}
|
|
5195
|
-
K =
|
|
5196
|
-
let
|
|
5195
|
+
K = Et(e), J = de[K] = vt[K](e);
|
|
5196
|
+
let p = (
|
|
5197
5197
|
/*showvaults*/
|
|
5198
|
-
e[1] ===
|
|
5198
|
+
e[1] === Ie.true && er(e)
|
|
5199
5199
|
);
|
|
5200
|
-
function w(g,
|
|
5201
|
-
var
|
|
5200
|
+
function w(g, B) {
|
|
5201
|
+
var ae;
|
|
5202
5202
|
return (
|
|
5203
5203
|
/*fetchResponse*/
|
|
5204
|
-
((
|
|
5204
|
+
((ae = g[12]) == null ? void 0 : ae.source) === q.CheckWalletExchangeError ? ma : da
|
|
5205
5205
|
);
|
|
5206
5206
|
}
|
|
5207
|
-
let
|
|
5207
|
+
let I = w(e), x = I(e);
|
|
5208
5208
|
return {
|
|
5209
5209
|
c() {
|
|
5210
|
-
var g,
|
|
5211
|
-
t = A("div"),
|
|
5210
|
+
var g, B, ae;
|
|
5211
|
+
t = A("div"), Q && Q.c(), n = O(), r = A("div"), i = A("h1"), i.textContent = `${k("vaultExchange")}`, o = O(), F && F.c(), a = O(), s = A("div"), l = A("div"), u = A("p"), u.textContent = `${k("exchangeFrom")}`, c = O(), f = A("div"), h = A("input"), _ = O(), ct(d.$$.fragment), C = O(), y.c(), D = O(), M = A("div"), X = A("p"), X.textContent = `${k("exchangeTo")}`, ge = O(), ie = A("div"), W = A("input"), be = O(), ct(se.$$.fragment), Ae = O(), J.c(), fe = O(), p && p.c(), nt = O(), Ce = A("div"), Me = A("span"), Me.textContent = `${k("feesIncluded")}`, dt = O(), ke = A("span"), x.c(), rt = O(), oe = A("div"), Te = O(), ve = A("div"), Ee = A("button"), Ee.textContent = `${k("reset")}`, Ue = O(), ee = A("button"), mt = Z(Be), b(i, "class", "headerTitle"), b(r, "class", "headerContainer"), b(u, "class", "exchangeHeader"), b(h, "id", "senderInput"), h.disabled = m = !/*session*/
|
|
5212
5212
|
e[0] || !/*isBalanceFetched*/
|
|
5213
5213
|
e[16] || !/*isCurrenciesFetched*/
|
|
5214
|
-
e[17], b(h, "placeholder", k("debitPlaceHolder")), b(h, "class", "exchangeInput"), b(h, "type", "number"), b(h, "aria-label", "Enter exchange amount"), b(h, "inputmode", "decimal"), b(h, "step", "0.000000000000001"), b(h, "min", "0"), b(f, "class", "flexingContainerRow"), b(l, "class", "containerExchangeFrom exchangeContainer"), b(X, "class", "exchangeHeader"), b(W, "id", "destinationInput"), W.disabled =
|
|
5214
|
+
e[17], b(h, "placeholder", k("debitPlaceHolder")), b(h, "class", "exchangeInput"), b(h, "type", "number"), b(h, "aria-label", "Enter exchange amount"), b(h, "inputmode", "decimal"), b(h, "step", "0.000000000000001"), b(h, "min", "0"), b(f, "class", "flexingContainerRow"), b(l, "class", "containerExchangeFrom exchangeContainer"), b(X, "class", "exchangeHeader"), b(W, "id", "destinationInput"), W.disabled = ce = !/*session*/
|
|
5215
5215
|
e[0] || !/*isBalanceFetched*/
|
|
5216
5216
|
e[16] || !/*isCurrenciesFetched*/
|
|
5217
|
-
e[17], b(W, "placeholder", k("creditPlaceHolder")), b(W, "class", "exchangeInput"), b(W, "type", "number"), W.readOnly = !0, b(W, "min", "0"), b(ie, "class", "flexingContainerRow"), b(M, "class", "containerExchangeTo exchangeContainer"), b(s, "class", "exchangesContainer"), b(Me, "class", "feesLabel"), b(
|
|
5218
|
-
|
|
5217
|
+
e[17], b(W, "placeholder", k("creditPlaceHolder")), b(W, "class", "exchangeInput"), b(W, "type", "number"), W.readOnly = !0, b(W, "min", "0"), b(ie, "class", "flexingContainerRow"), b(M, "class", "containerExchangeTo exchangeContainer"), b(s, "class", "exchangesContainer"), b(Me, "class", "feesLabel"), b(Ce, "class", "feesContainer"), b(oe, "class", "notificationsContainer"), ue(
|
|
5218
|
+
oe,
|
|
5219
5219
|
"error",
|
|
5220
5220
|
/*fetchResponse*/
|
|
5221
5221
|
((g = e[12]) == null ? void 0 : g.type) === "error"
|
|
5222
5222
|
), ue(
|
|
5223
|
-
|
|
5223
|
+
oe,
|
|
5224
5224
|
"success",
|
|
5225
5225
|
/*fetchResponse*/
|
|
5226
|
-
((
|
|
5226
|
+
((B = e[12]) == null ? void 0 : B.type) === "success"
|
|
5227
5227
|
), b(Ee, "class", "resetButton"), b(Ee, "type", "button"), b(ee, "type", "button"), b(ee, "class", "exchangeButton"), ee.disabled = _e = /*isExchangeDisabled*/
|
|
5228
5228
|
e[14] || /*isExchangePending*/
|
|
5229
5229
|
e[18] || /*inputExchangeFrom*/
|
|
5230
5230
|
e[8] === 0 && !/*selectedCurrencyFrom*/
|
|
5231
|
-
((
|
|
5231
|
+
((ae = e[5]) != null && ae.amount), ue(
|
|
5232
5232
|
ee,
|
|
5233
5233
|
"disabled",
|
|
5234
5234
|
/*isExchangeDisabled*/
|
|
@@ -5241,16 +5241,16 @@ function go(e) {
|
|
|
5241
5241
|
e[18]
|
|
5242
5242
|
), b(ve, "class", "actionsContainer"), b(t, "class", "playerAccountVault");
|
|
5243
5243
|
},
|
|
5244
|
-
m(g,
|
|
5245
|
-
H(g, t,
|
|
5244
|
+
m(g, B) {
|
|
5245
|
+
H(g, t, B), Q && Q.m(t, null), v(t, n), v(t, r), v(r, i), v(r, o), F && F.m(r, null), v(t, a), v(t, s), v(s, l), v(l, u), v(l, c), v(l, f), v(f, h), _t(
|
|
5246
5246
|
h,
|
|
5247
5247
|
/*inputExchangeFrom*/
|
|
5248
5248
|
e[8]
|
|
5249
|
-
), v(f, _),
|
|
5249
|
+
), v(f, _), ze(d, f, null), v(l, C), pe[R].m(l, null), v(s, D), v(s, M), v(M, X), v(M, ge), v(M, ie), v(ie, W), _t(
|
|
5250
5250
|
W,
|
|
5251
5251
|
/*inputExchangeTo*/
|
|
5252
5252
|
e[9]
|
|
5253
|
-
), v(ie,
|
|
5253
|
+
), v(ie, be), ze(se, ie, null), v(M, Ae), de[K].m(M, null), v(t, fe), p && p.m(t, null), v(t, nt), v(t, Ce), v(Ce, Me), v(Ce, dt), v(Ce, ke), x.m(ke, null), v(t, rt), v(t, oe), oe.innerHTML = ye, v(t, Te), v(t, ve), v(ve, Ee), v(ve, Ue), v(ve, ee), v(ee, mt), e[42](t), te = !0, it || (ot = [
|
|
5254
5254
|
ne(
|
|
5255
5255
|
h,
|
|
5256
5256
|
"input",
|
|
@@ -5293,97 +5293,97 @@ function go(e) {
|
|
|
5293
5293
|
/*handleExchange*/
|
|
5294
5294
|
e[29]
|
|
5295
5295
|
)
|
|
5296
|
-
],
|
|
5296
|
+
], it = !0);
|
|
5297
5297
|
},
|
|
5298
|
-
p(g,
|
|
5299
|
-
var
|
|
5298
|
+
p(g, B) {
|
|
5299
|
+
var Se, En, _n, xn;
|
|
5300
5300
|
/*showclosebutton*/
|
|
5301
|
-
g[3] ===
|
|
5302
|
-
g[2] ===
|
|
5303
|
-
4 && $(F, 1)) : (F =
|
|
5301
|
+
g[3] === Ie.true ? Q ? Q.p(g, B) : (Q = Yn(g), Q.c(), Q.m(t, n)) : Q && (Q.d(1), Q = null), /*showtotalbalance*/
|
|
5302
|
+
g[2] === Ie.true ? F ? (F.p(g, B), B[0] & /*showtotalbalance*/
|
|
5303
|
+
4 && $(F, 1)) : (F = Jn(g), F.c(), $(F, 1), F.m(r, null)) : F && (Re(), z(F, 1, 1, () => {
|
|
5304
5304
|
F = null;
|
|
5305
|
-
}), Oe()), (!te ||
|
|
5305
|
+
}), Oe()), (!te || B[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5306
5306
|
196609 && m !== (m = !/*session*/
|
|
5307
5307
|
g[0] || !/*isBalanceFetched*/
|
|
5308
5308
|
g[16] || !/*isCurrenciesFetched*/
|
|
5309
|
-
g[17])) && (h.disabled = m),
|
|
5310
|
-
256 &&
|
|
5311
|
-
g[8] &&
|
|
5309
|
+
g[17])) && (h.disabled = m), B[0] & /*inputExchangeFrom*/
|
|
5310
|
+
256 && St(h.value) !== /*inputExchangeFrom*/
|
|
5311
|
+
g[8] && _t(
|
|
5312
5312
|
h,
|
|
5313
5313
|
/*inputExchangeFrom*/
|
|
5314
5314
|
g[8]
|
|
5315
5315
|
);
|
|
5316
|
-
const
|
|
5317
|
-
|
|
5318
|
-
16 && (
|
|
5319
|
-
g[4]),
|
|
5320
|
-
196608 && (
|
|
5316
|
+
const ae = {};
|
|
5317
|
+
B[0] & /*showcurrencysymbol*/
|
|
5318
|
+
16 && (ae.withSymbol = /*showcurrencysymbol*/
|
|
5319
|
+
g[4]), B[0] & /*isBalanceFetched, isCurrenciesFetched*/
|
|
5320
|
+
196608 && (ae.disabled = !/*isBalanceFetched*/
|
|
5321
5321
|
g[16] || !/*isCurrenciesFetched*/
|
|
5322
|
-
g[17]),
|
|
5323
|
-
1048576 && (
|
|
5324
|
-
g[20]), !E &&
|
|
5325
|
-
32 && (E = !0,
|
|
5326
|
-
g[5], Tn(() => E = !1)),
|
|
5327
|
-
let
|
|
5328
|
-
R = at(g), R ===
|
|
5329
|
-
|
|
5330
|
-
}), Oe(), y =
|
|
5331
|
-
196609 &&
|
|
5322
|
+
g[17]), B[0] & /*optionsFrom*/
|
|
5323
|
+
1048576 && (ae.options = /*optionsFrom*/
|
|
5324
|
+
g[20]), !E && B[0] & /*selectedCurrencyFrom*/
|
|
5325
|
+
32 && (E = !0, ae.selected = /*selectedCurrencyFrom*/
|
|
5326
|
+
g[5], Tn(() => E = !1)), d.$set(ae);
|
|
5327
|
+
let Ve = R;
|
|
5328
|
+
R = at(g), R === Ve ? pe[R].p(g, B) : (Re(), z(pe[Ve], 1, 1, () => {
|
|
5329
|
+
pe[Ve] = null;
|
|
5330
|
+
}), Oe(), y = pe[R], y ? y.p(g, B) : (y = pe[R] = bt[R](g), y.c()), $(y, 1), y.m(l, null)), (!te || B[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5331
|
+
196609 && ce !== (ce = !/*session*/
|
|
5332
5332
|
g[0] || !/*isBalanceFetched*/
|
|
5333
5333
|
g[16] || !/*isCurrenciesFetched*/
|
|
5334
|
-
g[17])) && (W.disabled =
|
|
5335
|
-
512 &&
|
|
5336
|
-
g[9] &&
|
|
5334
|
+
g[17])) && (W.disabled = ce), B[0] & /*inputExchangeTo*/
|
|
5335
|
+
512 && St(W.value) !== /*inputExchangeTo*/
|
|
5336
|
+
g[9] && _t(
|
|
5337
5337
|
W,
|
|
5338
5338
|
/*inputExchangeTo*/
|
|
5339
5339
|
g[9]
|
|
5340
5340
|
);
|
|
5341
|
-
const
|
|
5342
|
-
|
|
5343
|
-
16 && (
|
|
5344
|
-
g[4]),
|
|
5345
|
-
204801 && (
|
|
5341
|
+
const T = {};
|
|
5342
|
+
B[0] & /*showcurrencysymbol*/
|
|
5343
|
+
16 && (T.withSymbol = /*showcurrencysymbol*/
|
|
5344
|
+
g[4]), B[0] & /*session, validationError, isBalanceFetched, isCurrenciesFetched*/
|
|
5345
|
+
204801 && (T.disabled = !/*session*/
|
|
5346
5346
|
g[0] || !!/*validationError*/
|
|
5347
5347
|
g[13] || !/*isBalanceFetched*/
|
|
5348
5348
|
g[16] || !/*isCurrenciesFetched*/
|
|
5349
|
-
g[17]),
|
|
5350
|
-
2097152 && (
|
|
5351
|
-
g[21]), !he &&
|
|
5352
|
-
64 && (he = !0,
|
|
5353
|
-
g[6], Tn(() => he = !1)), se.$set(
|
|
5349
|
+
g[17]), B[0] & /*optionsTo*/
|
|
5350
|
+
2097152 && (T.options = /*optionsTo*/
|
|
5351
|
+
g[21]), !he && B[0] & /*selectedCurrencyTo*/
|
|
5352
|
+
64 && (he = !0, T.selected = /*selectedCurrencyTo*/
|
|
5353
|
+
g[6], Tn(() => he = !1)), se.$set(T);
|
|
5354
5354
|
let xe = K;
|
|
5355
|
-
K =
|
|
5356
|
-
|
|
5357
|
-
}), Oe(),
|
|
5358
|
-
g[1] ===
|
|
5355
|
+
K = Et(g), K === xe ? de[K].p(g, B) : (Re(), z(de[xe], 1, 1, () => {
|
|
5356
|
+
de[xe] = null;
|
|
5357
|
+
}), Oe(), J = de[K], J ? J.p(g, B) : (J = de[K] = vt[K](g), J.c()), $(J, 1), J.m(M, null)), /*showvaults*/
|
|
5358
|
+
g[1] === Ie.true ? p ? p.p(g, B) : (p = er(g), p.c(), p.m(t, nt)) : p && (p.d(1), p = null), I === (I = w(g)) && x ? x.p(g, B) : (x.d(1), x = I(g), x && (x.c(), x.m(ke, null))), (!te || B[0] & /*fetchResponse*/
|
|
5359
5359
|
4096) && ye !== (ye = k(
|
|
5360
5360
|
/*fetchResponse*/
|
|
5361
|
-
((
|
|
5362
|
-
) + "") && (
|
|
5361
|
+
((Se = g[12]) == null ? void 0 : Se.message) || ""
|
|
5362
|
+
) + "") && (oe.innerHTML = ye), (!te || B[0] & /*fetchResponse*/
|
|
5363
5363
|
4096) && ue(
|
|
5364
|
-
|
|
5364
|
+
oe,
|
|
5365
5365
|
"error",
|
|
5366
5366
|
/*fetchResponse*/
|
|
5367
5367
|
((En = g[12]) == null ? void 0 : En.type) === "error"
|
|
5368
|
-
), (!te ||
|
|
5368
|
+
), (!te || B[0] & /*fetchResponse*/
|
|
5369
5369
|
4096) && ue(
|
|
5370
|
-
|
|
5370
|
+
oe,
|
|
5371
5371
|
"success",
|
|
5372
5372
|
/*fetchResponse*/
|
|
5373
5373
|
((_n = g[12]) == null ? void 0 : _n.type) === "success"
|
|
5374
|
-
), (!te ||
|
|
5374
|
+
), (!te || B[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
|
|
5375
5375
|
278816 && _e !== (_e = /*isExchangeDisabled*/
|
|
5376
5376
|
g[14] || /*isExchangePending*/
|
|
5377
5377
|
g[18] || /*inputExchangeFrom*/
|
|
5378
5378
|
g[8] === 0 && !/*selectedCurrencyFrom*/
|
|
5379
|
-
((xn = g[5]) != null && xn.amount))) && (ee.disabled = _e), (!te ||
|
|
5379
|
+
((xn = g[5]) != null && xn.amount))) && (ee.disabled = _e), (!te || B[0] & /*isExchangeDisabled, isExchangePending*/
|
|
5380
5380
|
278528) && ue(
|
|
5381
5381
|
ee,
|
|
5382
5382
|
"disabled",
|
|
5383
5383
|
/*isExchangeDisabled*/
|
|
5384
5384
|
g[14] || /*isExchangePending*/
|
|
5385
5385
|
g[18]
|
|
5386
|
-
), (!te ||
|
|
5386
|
+
), (!te || B[0] & /*isExchangePending*/
|
|
5387
5387
|
262144) && ue(
|
|
5388
5388
|
ee,
|
|
5389
5389
|
"pending",
|
|
@@ -5392,64 +5392,64 @@ function go(e) {
|
|
|
5392
5392
|
);
|
|
5393
5393
|
},
|
|
5394
5394
|
i(g) {
|
|
5395
|
-
te || ($(F), $(
|
|
5395
|
+
te || ($(F), $(d.$$.fragment, g), $(y), $(se.$$.fragment, g), $(J), te = !0);
|
|
5396
5396
|
},
|
|
5397
5397
|
o(g) {
|
|
5398
|
-
z(F), z(
|
|
5398
|
+
z(F), z(d.$$.fragment, g), z(y), z(se.$$.fragment, g), z(J), te = !1;
|
|
5399
5399
|
},
|
|
5400
5400
|
d(g) {
|
|
5401
|
-
g && S(t),
|
|
5401
|
+
g && S(t), Q && Q.d(), F && F.d(), Ze(d), pe[R].d(), Ze(se), de[K].d(), p && p.d(), x.d(), e[42](null), it = !1, we(ot);
|
|
5402
5402
|
}
|
|
5403
5403
|
};
|
|
5404
5404
|
}
|
|
5405
|
-
function
|
|
5406
|
-
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint:
|
|
5407
|
-
|
|
5408
|
-
Fn(
|
|
5405
|
+
function ba(e, t, n) {
|
|
5406
|
+
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: o = "" } = t, { lang: a = "en" } = t, { clientstyling: s = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: u = "" } = t, { playercurrency: c = "" } = t, { showvaults: f = "true" } = t, { showtotalbalance: h = "true" } = t, { showclosebutton: m = "true" } = t, { showcurrencysymbol: _ = "true" } = t, d = null, E = null, C = 0, R = 0, y = 0, D = null, M = null, X = null, ge = "", ie = !0, W = !1, ce = !1, be = !1, se = !1, he = [], Ae = [], K = [], J = [], fe;
|
|
5407
|
+
Go({ withLocale: "en", translations: {} }), Object.keys(Gn).forEach((p) => {
|
|
5408
|
+
Fn(p, Gn[p]);
|
|
5409
5409
|
});
|
|
5410
|
-
const
|
|
5411
|
-
|
|
5412
|
-
},
|
|
5413
|
-
fetch(u).then((
|
|
5414
|
-
Object.keys(
|
|
5415
|
-
Fn(w,
|
|
5410
|
+
const nt = () => {
|
|
5411
|
+
$o(a);
|
|
5412
|
+
}, Ce = () => {
|
|
5413
|
+
fetch(u).then((p) => p.json()).then((p) => {
|
|
5414
|
+
Object.keys(p).forEach((w) => {
|
|
5415
|
+
Fn(w, p[w]);
|
|
5416
5416
|
});
|
|
5417
|
-
}).catch((
|
|
5418
|
-
console.error("There was a problem with the translations request.",
|
|
5417
|
+
}).catch((p) => {
|
|
5418
|
+
console.error("There was a problem with the translations request.", p);
|
|
5419
5419
|
});
|
|
5420
5420
|
}, Me = () => {
|
|
5421
|
-
let
|
|
5422
|
-
|
|
5421
|
+
let p = document.createElement("style");
|
|
5422
|
+
p.innerHTML = s, fe.appendChild(p);
|
|
5423
5423
|
}, dt = () => {
|
|
5424
|
-
let
|
|
5424
|
+
let p, w = new URL(l), I = document.createElement("style");
|
|
5425
5425
|
fetch(w.href).then((x) => x.text()).then((x) => {
|
|
5426
|
-
|
|
5426
|
+
I.innerHTML = x, p && clearTimeout(p), p = setTimeout(
|
|
5427
5427
|
() => {
|
|
5428
|
-
fe.appendChild(
|
|
5428
|
+
fe.appendChild(I);
|
|
5429
5429
|
},
|
|
5430
5430
|
1
|
|
5431
5431
|
);
|
|
5432
5432
|
});
|
|
5433
5433
|
}, ke = () => {
|
|
5434
|
-
|
|
5434
|
+
Ae.length !== 0 && (n(15, W = !W), window.postMessage(
|
|
5435
5435
|
{
|
|
5436
5436
|
type: Yt.VaultDropdownToggled,
|
|
5437
5437
|
state: W
|
|
5438
5438
|
},
|
|
5439
5439
|
window.location.href
|
|
5440
5440
|
));
|
|
5441
|
-
},
|
|
5441
|
+
}, rt = () => {
|
|
5442
5442
|
window.postMessage(
|
|
5443
5443
|
{
|
|
5444
5444
|
type: Yt.VaultWidgetClosed
|
|
5445
5445
|
},
|
|
5446
5446
|
window.location.href
|
|
5447
5447
|
);
|
|
5448
|
-
},
|
|
5449
|
-
n(14, ie = !0),
|
|
5448
|
+
}, oe = () => {
|
|
5449
|
+
n(14, ie = !0), Te(), ve(), Ee(), Ue(), window.postMessage({ type: Yt.VaultWidgetReset }, window.location.href);
|
|
5450
5450
|
}, ye = () => {
|
|
5451
5451
|
n(14, ie = !0), n(9, y = 0);
|
|
5452
|
-
},
|
|
5452
|
+
}, Te = () => {
|
|
5453
5453
|
n(11, M = null);
|
|
5454
5454
|
}, ve = () => {
|
|
5455
5455
|
n(8, C = 0), n(9, y = 0);
|
|
@@ -5457,71 +5457,72 @@ function bo(e, t, n) {
|
|
|
5457
5457
|
n(13, ge = "");
|
|
5458
5458
|
}, Ue = () => {
|
|
5459
5459
|
n(12, X = null);
|
|
5460
|
-
}, ee = (
|
|
5461
|
-
|
|
5462
|
-
},
|
|
5460
|
+
}, ee = (p) => {
|
|
5461
|
+
p && n(13, ge = p);
|
|
5462
|
+
}, Be = ({ type: p, message: w, source: I = "" }) => {
|
|
5463
5463
|
let x;
|
|
5464
|
-
switch (n(12, X = { message: w, source:
|
|
5464
|
+
switch (n(12, X = { message: w, source: I, type: p }), p) {
|
|
5465
5465
|
case He.error:
|
|
5466
|
-
n(14, ie = !0), window.postMessage({ type:
|
|
5466
|
+
n(14, ie = !0), window.postMessage({ type: I, data: { type: p, message: w } }, window.location.href);
|
|
5467
5467
|
break;
|
|
5468
5468
|
case He.success:
|
|
5469
|
-
n(14, ie = !0), window.postMessage({ type:
|
|
5469
|
+
n(14, ie = !0), window.postMessage({ type: I, data: { type: p, message: w } }, window.location.href), x && clearTimeout(x), x = setTimeout(
|
|
5470
5470
|
() => {
|
|
5471
5471
|
Ue();
|
|
5472
5472
|
},
|
|
5473
|
-
|
|
5473
|
+
Xo
|
|
5474
5474
|
);
|
|
5475
5475
|
break;
|
|
5476
5476
|
}
|
|
5477
|
-
},
|
|
5478
|
-
const
|
|
5479
|
-
|
|
5480
|
-
}), _e = (
|
|
5477
|
+
}, mt = () => new Promise((p, w) => {
|
|
5478
|
+
const I = X == null ? void 0 : X.message.includes(Wo.InvalidSession);
|
|
5479
|
+
I && w(), isNaN(Number(C)) && (ye(), Te(), w(k("invalidValue"))), C > (d == null ? void 0 : d.amount) && (ye(), Te(), w(k("exceededValue"))), C === null && !I && (ye(), Te(), w()), C === 0 && C === 0 && !I && (oe(), w()), (!d || !E) && !I && w(), Ee(), p();
|
|
5480
|
+
}), _e = (p, w) => jt(this, null, function* () {
|
|
5481
5481
|
var x, j;
|
|
5482
|
-
const
|
|
5483
|
-
return (
|
|
5482
|
+
const I = yield p.json();
|
|
5483
|
+
return (p == null ? void 0 : p.status) >= 200 && (p == null ? void 0 : p.status) < 400 ? I : (w === q.CheckWalletExchangeError && ye(), !ce && w === q.BalanceError && (n(16, ce = !0), n(17, be = !0)), !be && w === q.CurrenciesError && n(17, be = !0), Be({
|
|
5484
5484
|
type: He.error,
|
|
5485
|
-
message: k((x =
|
|
5485
|
+
message: k((x = I == null ? void 0 : I.thirdPartyResponse) == null ? void 0 : x.code) || k((j = I == null ? void 0 : I.thirdPartyResponse) == null ? void 0 : j.errorCode) || "generalError",
|
|
5486
5486
|
source: w
|
|
5487
5487
|
}));
|
|
5488
|
-
}), te = () => new Promise((
|
|
5489
|
-
const
|
|
5490
|
-
fetch(
|
|
5488
|
+
}), te = () => new Promise((p, w) => {
|
|
5489
|
+
const I = new URL(`${o}/v1/player/${i}/wallet-exchange/currencies`);
|
|
5490
|
+
fetch(I, {
|
|
5491
5491
|
method: "GET",
|
|
5492
5492
|
headers: {
|
|
5493
5493
|
"X-SessionId": r,
|
|
5494
5494
|
"Content-Type": "application/json",
|
|
5495
5495
|
Accept: "application/json"
|
|
5496
5496
|
}
|
|
5497
|
-
}).then((j) => _e(j,
|
|
5498
|
-
|
|
5497
|
+
}).then((j) => _e(j, q.CurrenciesError)).then((j) => {
|
|
5498
|
+
p(j == null ? void 0 : j.currencies);
|
|
5499
5499
|
}).catch((j) => {
|
|
5500
|
-
|
|
5500
|
+
n(17, be = !0), console.error("There was an error on the allowed currencies request.", j), Be({
|
|
5501
5501
|
type: He.error,
|
|
5502
5502
|
message: k("generalError"),
|
|
5503
|
-
source:
|
|
5504
|
-
}), w()
|
|
5503
|
+
source: q.CurrenciesError
|
|
5504
|
+
}), w();
|
|
5505
5505
|
}).finally(() => {
|
|
5506
|
-
n(17,
|
|
5506
|
+
n(17, be = !0);
|
|
5507
5507
|
});
|
|
5508
|
-
}),
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5508
|
+
}), it = ({ data: p, shouldUpdateSelectedCurrencies: w, allowed: I = [] }) => {
|
|
5509
|
+
var Ve;
|
|
5510
|
+
const { items: x = [], totalAmount: j = {}, totalRealAmount: g } = p || {};
|
|
5511
|
+
n(10, D = Object.entries(g || j).map(([T = "", xe = 0]) => ({ currency: T, amount: xe }))[0]);
|
|
5512
|
+
let B = null;
|
|
5513
|
+
const ae = new Map(I.map((T) => [T.code, T]));
|
|
5514
|
+
for (const T of x)
|
|
5515
|
+
if ((T == null ? void 0 : T.type) === jn.Real) {
|
|
5516
|
+
const xe = ae.get(T == null ? void 0 : T.currency);
|
|
5517
|
+
if (xe && xe.code === (T == null ? void 0 : T.currency)) {
|
|
5518
|
+
const Se = $t(Fe(Fe({}, T), xe), {
|
|
5519
|
+
symbol: (Ve = jo[T == null ? void 0 : T.currency]) == null ? void 0 : Ve[0]
|
|
5519
5520
|
});
|
|
5520
|
-
n(37, he = [...he,
|
|
5521
|
+
n(37, he = [...he, Se]), (T == null ? void 0 : T.currency) === (D == null ? void 0 : D.currency) && n(10, D = Fe(Fe({}, D), Se)), (T == null ? void 0 : T.currency) !== (D == null ? void 0 : D.currency) && (T == null ? void 0 : T.walletAccountType) === jn.Vault && n(19, Ae = [...Ae, Se]), w && (T == null ? void 0 : T.amount) > 0 && n(5, d = D != null && D.currency ? D : B), d && (d == null ? void 0 : d.currency) === (T == null ? void 0 : T.currency) && n(5, d = Se), E && (E == null ? void 0 : E.currency) === (T == null ? void 0 : T.currency) && n(6, E = Se);
|
|
5521
5522
|
}
|
|
5522
5523
|
}
|
|
5523
|
-
},
|
|
5524
|
-
const w = new URL(`${
|
|
5524
|
+
}, ot = (p = !0) => {
|
|
5525
|
+
const w = new URL(`${o}/v2/player/${i}/balance`);
|
|
5525
5526
|
fetch(w, {
|
|
5526
5527
|
method: "GET",
|
|
5527
5528
|
headers: {
|
|
@@ -5529,33 +5530,33 @@ function bo(e, t, n) {
|
|
|
5529
5530
|
"Content-Type": "application/json",
|
|
5530
5531
|
Accept: "application/json"
|
|
5531
5532
|
}
|
|
5532
|
-
}).then((x) => _e(x,
|
|
5533
|
+
}).then((x) => _e(x, q.BalanceError)).then((x) => {
|
|
5533
5534
|
x && te().then((j) => {
|
|
5534
|
-
n(37, he = []), n(19,
|
|
5535
|
+
n(37, he = []), n(19, Ae = []), it({
|
|
5535
5536
|
data: x,
|
|
5536
|
-
shouldUpdateSelectedCurrencies:
|
|
5537
|
+
shouldUpdateSelectedCurrencies: p,
|
|
5537
5538
|
allowed: j
|
|
5538
5539
|
});
|
|
5539
5540
|
});
|
|
5540
5541
|
}).catch((x) => {
|
|
5541
|
-
|
|
5542
|
+
n(16, ce = !0), console.error("There was an error with the player balance request.", x), Be({
|
|
5542
5543
|
type: He.error,
|
|
5543
5544
|
message: k("generalError"),
|
|
5544
|
-
source:
|
|
5545
|
-
})
|
|
5545
|
+
source: q.BalanceError
|
|
5546
|
+
});
|
|
5546
5547
|
}).finally(() => {
|
|
5547
|
-
n(16,
|
|
5548
|
+
n(16, ce = !0);
|
|
5548
5549
|
});
|
|
5549
|
-
}, F =
|
|
5550
|
-
|
|
5551
|
-
const
|
|
5550
|
+
}, F = zo(() => {
|
|
5551
|
+
mt().then(() => {
|
|
5552
|
+
const p = new URL(`${o}/v2/player/${i}/check/wallet-exchange`), w = {
|
|
5552
5553
|
userId: i,
|
|
5553
5554
|
amount: C,
|
|
5554
|
-
currency:
|
|
5555
|
-
fromCurrency:
|
|
5555
|
+
currency: d == null ? void 0 : d.currency,
|
|
5556
|
+
fromCurrency: d == null ? void 0 : d.currency,
|
|
5556
5557
|
toCurrency: E == null ? void 0 : E.currency,
|
|
5557
5558
|
payload: { PlayerCurrency: c }
|
|
5558
|
-
},
|
|
5559
|
+
}, I = {
|
|
5559
5560
|
method: "POST",
|
|
5560
5561
|
headers: {
|
|
5561
5562
|
"X-SessionId": r,
|
|
@@ -5564,39 +5565,39 @@ function bo(e, t, n) {
|
|
|
5564
5565
|
},
|
|
5565
5566
|
body: Wn(w)
|
|
5566
5567
|
};
|
|
5567
|
-
fetch(
|
|
5568
|
+
fetch(p, I).then((x) => _e(x, q.CheckWalletExchangeError)).then((x) => {
|
|
5568
5569
|
var j, g;
|
|
5569
|
-
x && ((X == null ? void 0 : X.source) ===
|
|
5570
|
+
x && ((X == null ? void 0 : X.source) === q.CheckWalletExchangeError && Ue(), Array.isArray((j = x == null ? void 0 : x.fees) == null ? void 0 : j.fees) && n(11, M = x.fees), Array.isArray(x == null ? void 0 : x.walletActions) && n(9, y = ((g = x.walletActions.find((B) => (B == null ? void 0 : B.directionName) === "Credit")) == null ? void 0 : g.amount) || 0), C > 0 && (d != null && d.currency) && (E != null && E.currency) && c && n(14, ie = !1));
|
|
5570
5571
|
}).catch((x) => {
|
|
5571
|
-
|
|
5572
|
+
Be({
|
|
5572
5573
|
type: He.error,
|
|
5573
5574
|
message: k("generalError"),
|
|
5574
|
-
source:
|
|
5575
|
+
source: q.CheckWalletExchangeError
|
|
5575
5576
|
}), console.error("There was a problem with the wallet exchange request.", x);
|
|
5576
5577
|
});
|
|
5577
|
-
}).catch((
|
|
5578
|
-
ee(
|
|
5578
|
+
}).catch((p) => {
|
|
5579
|
+
ee(p);
|
|
5579
5580
|
});
|
|
5580
|
-
}, 500),
|
|
5581
|
-
const w =
|
|
5582
|
-
!x && w.length >= Jt && n(8, C = w.slice(0, Jt)), x && (
|
|
5583
|
-
},
|
|
5584
|
-
const w =
|
|
5585
|
-
[">", "<", ","].includes(w) &&
|
|
5586
|
-
},
|
|
5581
|
+
}, 500), Vt = (p) => {
|
|
5582
|
+
const w = p.target.value, [I, x] = w.split(".");
|
|
5583
|
+
!x && w.length >= Jt && n(8, C = w.slice(0, Jt)), x && (d == null ? void 0 : d.type) === Xn.Fiat && (x.length <= (d == null ? void 0 : d.precision) ? (n(8, C = w), R = w) : n(8, C = R)), x && (d == null ? void 0 : d.type) === Xn.CryptoCurrency && (w.length <= Jt ? (n(8, C = w), R = w) : n(8, C = R)), F();
|
|
5584
|
+
}, gt = (p) => {
|
|
5585
|
+
const w = p.data;
|
|
5586
|
+
[">", "<", ","].includes(w) && p.preventDefault(), w && !w.match(/[\d.]/) && p.preventDefault(), w === "." && p.target.value.includes(".") && p.preventDefault();
|
|
5587
|
+
}, bt = () => {
|
|
5587
5588
|
C === 0 && n(8, C = null);
|
|
5588
|
-
},
|
|
5589
|
-
const
|
|
5589
|
+
}, pe = () => {
|
|
5590
|
+
const p = new URL(`${o}/v2/player/${i}/wallet-exchange`);
|
|
5590
5591
|
n(18, se = !0);
|
|
5591
5592
|
const w = {
|
|
5592
5593
|
feeDetails: M,
|
|
5593
5594
|
userId: i,
|
|
5594
5595
|
amount: C,
|
|
5595
|
-
currency:
|
|
5596
|
-
fromCurrency:
|
|
5596
|
+
currency: d == null ? void 0 : d.currency,
|
|
5597
|
+
fromCurrency: d == null ? void 0 : d.currency,
|
|
5597
5598
|
toCurrency: E == null ? void 0 : E.currency,
|
|
5598
5599
|
payload: { PlayerCurrency: c }
|
|
5599
|
-
},
|
|
5600
|
+
}, I = {
|
|
5600
5601
|
method: "PUT",
|
|
5601
5602
|
headers: {
|
|
5602
5603
|
"X-SessionId": r,
|
|
@@ -5605,75 +5606,75 @@ function bo(e, t, n) {
|
|
|
5605
5606
|
},
|
|
5606
5607
|
body: Wn(w)
|
|
5607
5608
|
};
|
|
5608
|
-
fetch(
|
|
5609
|
-
x && (
|
|
5609
|
+
fetch(p, I).then((x) => _e(x, q.WalletExchangeError)).then((x) => {
|
|
5610
|
+
x && (Be({
|
|
5610
5611
|
type: He.success,
|
|
5611
5612
|
message: k("exchangeSuccess"),
|
|
5612
5613
|
source: "ExchangeSuccess"
|
|
5613
|
-
}),
|
|
5614
|
+
}), ot(!1));
|
|
5614
5615
|
}).catch((x) => {
|
|
5615
|
-
|
|
5616
|
+
Be({
|
|
5616
5617
|
type: He.error,
|
|
5617
5618
|
message: k("generalError"),
|
|
5618
|
-
source:
|
|
5619
|
+
source: q.WalletExchangeError
|
|
5619
5620
|
}), console.error("There was an error with the wallet exchange request.", x);
|
|
5620
5621
|
}).finally(() => {
|
|
5621
|
-
n(18, se = !1), ve(),
|
|
5622
|
+
n(18, se = !1), ve(), Te();
|
|
5622
5623
|
});
|
|
5623
|
-
}, at = (
|
|
5624
|
-
const { data: { type: w } = {} } =
|
|
5624
|
+
}, at = (p) => {
|
|
5625
|
+
const { data: { type: w } = {} } = p || {};
|
|
5625
5626
|
switch (w) {
|
|
5626
5627
|
case $n.ResetVaultWidget:
|
|
5627
|
-
|
|
5628
|
+
oe();
|
|
5628
5629
|
break;
|
|
5629
5630
|
case $n.CloseVaultWidget:
|
|
5630
|
-
|
|
5631
|
+
rt();
|
|
5631
5632
|
break;
|
|
5632
5633
|
}
|
|
5633
5634
|
};
|
|
5634
|
-
|
|
5635
|
+
ar(() => (window.addEventListener("message", at), () => {
|
|
5635
5636
|
window.removeEventListener("message", at);
|
|
5636
5637
|
}));
|
|
5637
|
-
function
|
|
5638
|
-
C =
|
|
5638
|
+
function Ft() {
|
|
5639
|
+
C = St(this.value), n(8, C);
|
|
5639
5640
|
}
|
|
5640
|
-
function
|
|
5641
|
-
|
|
5641
|
+
function yt(p) {
|
|
5642
|
+
d = p, n(5, d);
|
|
5642
5643
|
}
|
|
5643
|
-
function
|
|
5644
|
-
y =
|
|
5644
|
+
function vt() {
|
|
5645
|
+
y = St(this.value), n(9, y);
|
|
5645
5646
|
}
|
|
5646
|
-
function
|
|
5647
|
-
E =
|
|
5647
|
+
function de(p) {
|
|
5648
|
+
E = p, n(6, E);
|
|
5648
5649
|
}
|
|
5649
|
-
function
|
|
5650
|
-
|
|
5651
|
-
fe =
|
|
5650
|
+
function Et(p) {
|
|
5651
|
+
We[p ? "unshift" : "push"](() => {
|
|
5652
|
+
fe = p, n(7, fe);
|
|
5652
5653
|
});
|
|
5653
5654
|
}
|
|
5654
|
-
return e.$$set = (
|
|
5655
|
-
"session" in
|
|
5655
|
+
return e.$$set = (p) => {
|
|
5656
|
+
"session" in p && n(0, r = p.session), "userid" in p && n(30, i = p.userid), "endpoint" in p && n(31, o = p.endpoint), "lang" in p && n(32, a = p.lang), "clientstyling" in p && n(33, s = p.clientstyling), "clientstylingurl" in p && n(34, l = p.clientstylingurl), "translationurl" in p && n(35, u = p.translationurl), "playercurrency" in p && n(36, c = p.playercurrency), "showvaults" in p && n(1, f = p.showvaults), "showtotalbalance" in p && n(2, h = p.showtotalbalance), "showclosebutton" in p && n(3, m = p.showclosebutton), "showcurrencysymbol" in p && n(4, _ = p.showcurrencysymbol);
|
|
5656
5657
|
}, e.$$.update = () => {
|
|
5657
5658
|
e.$$.dirty[1] & /*lang*/
|
|
5658
|
-
2 &&
|
|
5659
|
-
1073741825 | e.$$.dirty[1] & /*endpoint, playercurrency*/
|
|
5660
|
-
33 && r && i && a && c && it(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5659
|
+
2 && a && nt(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5661
5660
|
128 | e.$$.dirty[1] & /*clientstyling*/
|
|
5662
5661
|
4 && s && fe && Me(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5663
5662
|
128 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5664
5663
|
8 && l && fe && dt(), e.$$.dirty[1] & /*translationurl*/
|
|
5665
|
-
16 && u &&
|
|
5664
|
+
16 && u && Ce(), e.$$.dirty[0] & /*session, userid*/
|
|
5665
|
+
1073741825 | e.$$.dirty[1] & /*endpoint, playercurrency*/
|
|
5666
|
+
33 && r && i && o && c && ot(), e.$$.dirty[0] & /*selectedCurrencyTo*/
|
|
5666
5667
|
64 | e.$$.dirty[1] & /*filteredBalances*/
|
|
5667
|
-
64 && n(20, K = he.filter((
|
|
5668
|
+
64 && n(20, K = he.filter((p) => (p == null ? void 0 : p.amount) > 0 && (p == null ? void 0 : p.currency) !== (E == null ? void 0 : E.currency))), e.$$.dirty[0] & /*selectedCurrencyFrom*/
|
|
5668
5669
|
32 | e.$$.dirty[1] & /*filteredBalances*/
|
|
5669
|
-
64 && n(21,
|
|
5670
|
+
64 && n(21, J = he.filter((p) => (d == null ? void 0 : d.currency) !== (p == null ? void 0 : p.currency)));
|
|
5670
5671
|
}, [
|
|
5671
5672
|
r,
|
|
5672
5673
|
f,
|
|
5673
5674
|
h,
|
|
5674
5675
|
m,
|
|
5675
5676
|
_,
|
|
5676
|
-
|
|
5677
|
+
d,
|
|
5677
5678
|
E,
|
|
5678
5679
|
fe,
|
|
5679
5680
|
C,
|
|
@@ -5684,43 +5685,43 @@ function bo(e, t, n) {
|
|
|
5684
5685
|
ge,
|
|
5685
5686
|
ie,
|
|
5686
5687
|
W,
|
|
5688
|
+
ce,
|
|
5687
5689
|
be,
|
|
5688
|
-
Ae,
|
|
5689
5690
|
se,
|
|
5690
|
-
|
|
5691
|
+
Ae,
|
|
5691
5692
|
K,
|
|
5692
|
-
|
|
5693
|
+
J,
|
|
5693
5694
|
ke,
|
|
5694
|
-
|
|
5695
|
-
|
|
5695
|
+
rt,
|
|
5696
|
+
oe,
|
|
5696
5697
|
F,
|
|
5697
|
-
|
|
5698
|
-
mt,
|
|
5698
|
+
Vt,
|
|
5699
5699
|
gt,
|
|
5700
|
-
|
|
5700
|
+
bt,
|
|
5701
|
+
pe,
|
|
5701
5702
|
i,
|
|
5702
|
-
a,
|
|
5703
5703
|
o,
|
|
5704
|
+
a,
|
|
5704
5705
|
s,
|
|
5705
5706
|
l,
|
|
5706
5707
|
u,
|
|
5707
5708
|
c,
|
|
5708
5709
|
he,
|
|
5709
|
-
|
|
5710
|
-
bt,
|
|
5710
|
+
Ft,
|
|
5711
5711
|
yt,
|
|
5712
|
-
|
|
5713
|
-
|
|
5712
|
+
vt,
|
|
5713
|
+
de,
|
|
5714
|
+
Et
|
|
5714
5715
|
];
|
|
5715
5716
|
}
|
|
5716
|
-
class
|
|
5717
|
+
class ya extends bn {
|
|
5717
5718
|
constructor(t) {
|
|
5718
|
-
super(),
|
|
5719
|
+
super(), mn(
|
|
5719
5720
|
this,
|
|
5720
5721
|
t,
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5722
|
+
ba,
|
|
5723
|
+
ga,
|
|
5724
|
+
Nt,
|
|
5724
5725
|
{
|
|
5725
5726
|
session: 0,
|
|
5726
5727
|
userid: 30,
|
|
@@ -5735,7 +5736,7 @@ class yo extends gn {
|
|
|
5735
5736
|
showclosebutton: 3,
|
|
5736
5737
|
showcurrencysymbol: 4
|
|
5737
5738
|
},
|
|
5738
|
-
|
|
5739
|
+
ta,
|
|
5739
5740
|
[-1, -1, -1]
|
|
5740
5741
|
);
|
|
5741
5742
|
}
|
|
@@ -5812,7 +5813,7 @@ class yo extends gn {
|
|
|
5812
5813
|
this.$$set({ showcurrencysymbol: t }), G();
|
|
5813
5814
|
}
|
|
5814
5815
|
}
|
|
5815
|
-
|
|
5816
|
+
gn(ya, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, showvaults: {}, showtotalbalance: {}, showclosebutton: {}, showcurrencysymbol: {} }, [], [], !0);
|
|
5816
5817
|
export {
|
|
5817
|
-
|
|
5818
|
+
ya as default
|
|
5818
5819
|
};
|