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