@everymatrix/player-account-vault 1.77.19 → 1.77.20
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-C-672FjU.cjs +16 -0
- package/components/{PlayerAccountVault--UlOBOmV.js → PlayerAccountVault-C3iBYDgz.js} +967 -973
- package/components/{PlayerAccountVault-BUdtoBGP.js → PlayerAccountVault-Dg3TqyvM.js} +969 -975
- package/es2015/player-account-vault.cjs +1 -1
- package/es2015/player-account-vault.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountVault-BBwHMjxj.cjs +0 -3
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function B() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function lr(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Cn() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function _e(e) {
|
|
10
|
+
e.forEach(lr);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function pt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Pt(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Fr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function ur(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const r of t)
|
|
24
24
|
r(void 0);
|
|
@@ -27,24 +27,24 @@ function hr(e, ...t) {
|
|
|
27
27
|
const n = e.subscribe(...t);
|
|
28
28
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Vr(e) {
|
|
31
31
|
let t;
|
|
32
|
-
return
|
|
32
|
+
return ur(e, (n) => t = n)(), t;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
return e &&
|
|
34
|
+
function Ur(e) {
|
|
35
|
+
return e && pt(e.destroy) ? e.destroy : B;
|
|
36
36
|
}
|
|
37
37
|
function v(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const r =
|
|
40
|
+
function bn(e, t, n) {
|
|
41
|
+
const r = Gr(e);
|
|
42
42
|
if (!r.getElementById(t)) {
|
|
43
43
|
const i = w("style");
|
|
44
|
-
i.id = t, i.textContent = n,
|
|
44
|
+
i.id = t, i.textContent = n, $r(r, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Gr(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,7 +54,7 @@ function jr(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function $r(e, t) {
|
|
58
58
|
return v(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
@@ -67,29 +67,29 @@ function T(e, t, n) {
|
|
|
67
67
|
function A(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function cr(e, t) {
|
|
71
71
|
for (let n = 0; n < e.length; n += 1)
|
|
72
72
|
e[n] && e[n].d(t);
|
|
73
73
|
}
|
|
74
74
|
function w(e) {
|
|
75
75
|
return document.createElement(e);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Tn(e) {
|
|
78
78
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
79
79
|
}
|
|
80
80
|
function z(e) {
|
|
81
81
|
return document.createTextNode(e);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function L() {
|
|
84
84
|
return z(" ");
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function jr() {
|
|
87
87
|
return z("");
|
|
88
88
|
}
|
|
89
89
|
function re(e, t, n, r) {
|
|
90
90
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Wr(e) {
|
|
93
93
|
return function(t) {
|
|
94
94
|
return t.stopPropagation(), e.call(this, t);
|
|
95
95
|
};
|
|
@@ -97,23 +97,23 @@ function zr(e) {
|
|
|
97
97
|
function m(e, t, n) {
|
|
98
98
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Bt(e) {
|
|
101
101
|
return e === "" ? null : +e;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Xr(e) {
|
|
104
104
|
return Array.from(e.childNodes);
|
|
105
105
|
}
|
|
106
106
|
function ie(e, t) {
|
|
107
107
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
108
108
|
t);
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function _t(e, t) {
|
|
111
111
|
e.value = t ?? "";
|
|
112
112
|
}
|
|
113
113
|
function le(e, t, n) {
|
|
114
114
|
e.classList.toggle(t, !!n);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function zr(e) {
|
|
117
117
|
const t = {};
|
|
118
118
|
return e.childNodes.forEach(
|
|
119
119
|
/** @param {Element} node */
|
|
@@ -122,125 +122,125 @@ function qr(e) {
|
|
|
122
122
|
}
|
|
123
123
|
), t;
|
|
124
124
|
}
|
|
125
|
-
let
|
|
126
|
-
function
|
|
127
|
-
|
|
125
|
+
let lt;
|
|
126
|
+
function st(e) {
|
|
127
|
+
lt = e;
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (!
|
|
129
|
+
function hr() {
|
|
130
|
+
if (!lt)
|
|
131
131
|
throw new Error("Function called outside component initialization");
|
|
132
|
-
return
|
|
132
|
+
return lt;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
135
|
-
|
|
134
|
+
function fr(e) {
|
|
135
|
+
hr().$$.on_mount.push(e);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
|
|
137
|
+
function Zr(e) {
|
|
138
|
+
hr().$$.on_destroy.push(e);
|
|
139
139
|
}
|
|
140
|
-
const
|
|
141
|
-
let
|
|
142
|
-
const
|
|
143
|
-
let
|
|
144
|
-
function
|
|
145
|
-
|
|
140
|
+
const Ue = [], $e = [];
|
|
141
|
+
let Ge = [];
|
|
142
|
+
const Jt = [], qr = /* @__PURE__ */ Promise.resolve();
|
|
143
|
+
let en = !1;
|
|
144
|
+
function Kr() {
|
|
145
|
+
en || (en = !0, qr.then(G));
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
|
|
147
|
+
function tn(e) {
|
|
148
|
+
Ge.push(e);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
|
|
150
|
+
function Sn(e) {
|
|
151
|
+
Jt.push(e);
|
|
152
152
|
}
|
|
153
|
-
const
|
|
154
|
-
let
|
|
153
|
+
const Gt = /* @__PURE__ */ new Set();
|
|
154
|
+
let Fe = 0;
|
|
155
155
|
function G() {
|
|
156
|
-
if (
|
|
156
|
+
if (Fe !== 0)
|
|
157
157
|
return;
|
|
158
|
-
const e =
|
|
158
|
+
const e = lt;
|
|
159
159
|
do {
|
|
160
160
|
try {
|
|
161
|
-
for (;
|
|
162
|
-
const t =
|
|
163
|
-
|
|
161
|
+
for (; Fe < Ue.length; ) {
|
|
162
|
+
const t = Ue[Fe];
|
|
163
|
+
Fe++, st(t), Qr(t.$$);
|
|
164
164
|
}
|
|
165
165
|
} catch (t) {
|
|
166
|
-
throw
|
|
166
|
+
throw Ue.length = 0, Fe = 0, t;
|
|
167
167
|
}
|
|
168
|
-
for (
|
|
169
|
-
|
|
170
|
-
for (let t = 0; t <
|
|
171
|
-
const n =
|
|
172
|
-
|
|
168
|
+
for (st(null), Ue.length = 0, Fe = 0; $e.length; )
|
|
169
|
+
$e.pop()();
|
|
170
|
+
for (let t = 0; t < Ge.length; t += 1) {
|
|
171
|
+
const n = Ge[t];
|
|
172
|
+
Gt.has(n) || (Gt.add(n), n());
|
|
173
173
|
}
|
|
174
|
-
|
|
175
|
-
} while (
|
|
176
|
-
for (;
|
|
177
|
-
|
|
178
|
-
|
|
174
|
+
Ge.length = 0;
|
|
175
|
+
} while (Ue.length);
|
|
176
|
+
for (; Jt.length; )
|
|
177
|
+
Jt.pop()();
|
|
178
|
+
en = !1, Gt.clear(), st(e);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function Qr(e) {
|
|
181
181
|
if (e.fragment !== null) {
|
|
182
|
-
e.update(),
|
|
182
|
+
e.update(), _e(e.before_update);
|
|
183
183
|
const t = e.dirty;
|
|
184
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
184
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(tn);
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Yr(e) {
|
|
188
188
|
const t = [], n = [];
|
|
189
|
-
|
|
189
|
+
Ge.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ge = t;
|
|
190
190
|
}
|
|
191
|
-
const
|
|
192
|
-
let
|
|
193
|
-
function
|
|
194
|
-
|
|
191
|
+
const At = /* @__PURE__ */ new Set();
|
|
192
|
+
let Ne;
|
|
193
|
+
function Pe() {
|
|
194
|
+
Ne = {
|
|
195
195
|
r: 0,
|
|
196
196
|
c: [],
|
|
197
|
-
p:
|
|
197
|
+
p: Ne
|
|
198
198
|
// parent group
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
|
|
201
|
+
function Oe() {
|
|
202
|
+
Ne.r || _e(Ne.c), Ne = Ne.p;
|
|
203
203
|
}
|
|
204
204
|
function $(e, t) {
|
|
205
|
-
e && e.i && (
|
|
205
|
+
e && e.i && (At.delete(e), e.i(t));
|
|
206
206
|
}
|
|
207
207
|
function X(e, t, n, r) {
|
|
208
208
|
if (e && e.o) {
|
|
209
|
-
if (
|
|
209
|
+
if (At.has(e))
|
|
210
210
|
return;
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
At.add(e), Ne.c.push(() => {
|
|
212
|
+
At.delete(e), r && (n && e.d(1), r());
|
|
213
213
|
}), e.o(t);
|
|
214
214
|
} else
|
|
215
215
|
r && r();
|
|
216
216
|
}
|
|
217
|
-
function
|
|
217
|
+
function Ht(e) {
|
|
218
218
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
219
219
|
}
|
|
220
|
-
function
|
|
220
|
+
function Bn(e, t, n) {
|
|
221
221
|
const r = e.$$.props[t];
|
|
222
222
|
r !== void 0 && (e.$$.bound[r] = n, n(e.$$.ctx[r]));
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function ut(e) {
|
|
225
225
|
e && e.c();
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function je(e, t, n) {
|
|
228
228
|
const { fragment: r, after_update: i } = e.$$;
|
|
229
|
-
r && r.m(t, n),
|
|
230
|
-
const a = e.$$.on_mount.map(
|
|
231
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...a) :
|
|
232
|
-
}), i.forEach(
|
|
229
|
+
r && r.m(t, n), tn(() => {
|
|
230
|
+
const a = e.$$.on_mount.map(lr).filter(pt);
|
|
231
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : _e(a), e.$$.on_mount = [];
|
|
232
|
+
}), i.forEach(tn);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function We(e, t) {
|
|
235
235
|
const n = e.$$;
|
|
236
|
-
n.fragment !== null && (
|
|
236
|
+
n.fragment !== null && (Yr(n.after_update), _e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
e.$$.dirty[0] === -1 && (
|
|
238
|
+
function Jr(e, t) {
|
|
239
|
+
e.$$.dirty[0] === -1 && (Ue.push(e), Kr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
const s =
|
|
243
|
-
|
|
241
|
+
function vn(e, t, n, r, i, a, o = null, l = [-1]) {
|
|
242
|
+
const s = lt;
|
|
243
|
+
st(e);
|
|
244
244
|
const u = e.$$ = {
|
|
245
245
|
fragment: null,
|
|
246
246
|
ctx: [],
|
|
@@ -248,7 +248,7 @@ function _n(e, t, n, r, i, a, o = null, l = [-1]) {
|
|
|
248
248
|
props: a,
|
|
249
249
|
update: B,
|
|
250
250
|
not_equal: i,
|
|
251
|
-
bound:
|
|
251
|
+
bound: Cn(),
|
|
252
252
|
// lifecycle
|
|
253
253
|
on_mount: [],
|
|
254
254
|
on_destroy: [],
|
|
@@ -257,7 +257,7 @@ function _n(e, t, n, r, i, a, o = null, l = [-1]) {
|
|
|
257
257
|
after_update: [],
|
|
258
258
|
context: new Map(t.context || (s ? s.$$.context : [])),
|
|
259
259
|
// everything else
|
|
260
|
-
callbacks:
|
|
260
|
+
callbacks: Cn(),
|
|
261
261
|
dirty: l,
|
|
262
262
|
skip_bound: !1,
|
|
263
263
|
root: t.target || s.$$.root
|
|
@@ -266,19 +266,19 @@ function _n(e, t, n, r, i, a, o = null, l = [-1]) {
|
|
|
266
266
|
let h = !1;
|
|
267
267
|
if (u.ctx = n ? n(e, t.props || {}, (f, c, ...g) => {
|
|
268
268
|
const b = g.length ? g[0] : c;
|
|
269
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h &&
|
|
270
|
-
}) : [], u.update(), h = !0,
|
|
269
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h && Jr(e, f)), c;
|
|
270
|
+
}) : [], u.update(), h = !0, _e(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
271
271
|
if (t.hydrate) {
|
|
272
|
-
const f =
|
|
272
|
+
const f = Xr(t.target);
|
|
273
273
|
u.fragment && u.fragment.l(f), f.forEach(A);
|
|
274
274
|
} else
|
|
275
275
|
u.fragment && u.fragment.c();
|
|
276
|
-
t.intro && $(e.$$.fragment),
|
|
276
|
+
t.intro && $(e.$$.fragment), je(e, t.target, t.anchor), G();
|
|
277
277
|
}
|
|
278
|
-
|
|
278
|
+
st(s);
|
|
279
279
|
}
|
|
280
|
-
let
|
|
281
|
-
typeof HTMLElement == "function" && (
|
|
280
|
+
let pr;
|
|
281
|
+
typeof HTMLElement == "function" && (pr = class extends HTMLElement {
|
|
282
282
|
/** The Svelte component constructor */
|
|
283
283
|
$$ctor;
|
|
284
284
|
/** Slots */
|
|
@@ -337,12 +337,12 @@ typeof HTMLElement == "function" && (dr = class extends HTMLElement {
|
|
|
337
337
|
};
|
|
338
338
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
339
339
|
return;
|
|
340
|
-
const t = {}, n =
|
|
340
|
+
const t = {}, n = zr(this);
|
|
341
341
|
for (const i of this.$$s)
|
|
342
342
|
i in n && (t[i] = [e(i)]);
|
|
343
343
|
for (const i of this.attributes) {
|
|
344
344
|
const a = this.$$g_p(i.name);
|
|
345
|
-
a in this.$$d || (this.$$d[a] =
|
|
345
|
+
a in this.$$d || (this.$$d[a] = Ct(a, i.value, this.$$p_d, "toProp"));
|
|
346
346
|
}
|
|
347
347
|
for (const i in this.$$p_d)
|
|
348
348
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -360,7 +360,7 @@ typeof HTMLElement == "function" && (dr = class extends HTMLElement {
|
|
|
360
360
|
this.$$r = !0;
|
|
361
361
|
for (const i in this.$$p_d)
|
|
362
362
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
363
|
-
const a =
|
|
363
|
+
const a = Ct(
|
|
364
364
|
i,
|
|
365
365
|
this.$$d[i],
|
|
366
366
|
this.$$p_d,
|
|
@@ -382,7 +382,7 @@ typeof HTMLElement == "function" && (dr = class extends HTMLElement {
|
|
|
382
382
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
383
383
|
// and setting attributes through setAttribute etc, this is helpful
|
|
384
384
|
attributeChangedCallback(e, t, n) {
|
|
385
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
385
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ct(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
386
386
|
}
|
|
387
387
|
disconnectedCallback() {
|
|
388
388
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -395,7 +395,7 @@ typeof HTMLElement == "function" && (dr = class extends HTMLElement {
|
|
|
395
395
|
) || e;
|
|
396
396
|
}
|
|
397
397
|
});
|
|
398
|
-
function
|
|
398
|
+
function Ct(e, t, n, r) {
|
|
399
399
|
const i = n[e]?.type;
|
|
400
400
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
401
401
|
return t;
|
|
@@ -424,8 +424,8 @@ function Tt(e, t, n, r) {
|
|
|
424
424
|
return t;
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
let o = class extends
|
|
427
|
+
function En(e, t, n, r, i, a) {
|
|
428
|
+
let o = class extends pr {
|
|
429
429
|
constructor() {
|
|
430
430
|
super(e, n, i), this.$$p_d = t;
|
|
431
431
|
}
|
|
@@ -441,7 +441,7 @@ function xn(e, t, n, r, i, a) {
|
|
|
441
441
|
return this.$$c && l in this.$$c ? this.$$c[l] : this.$$d[l];
|
|
442
442
|
},
|
|
443
443
|
set(s) {
|
|
444
|
-
s =
|
|
444
|
+
s = Ct(l, s, t), this.$$d[l] = s, this.$$c?.$set({ [l]: s });
|
|
445
445
|
}
|
|
446
446
|
});
|
|
447
447
|
}), r.forEach((l) => {
|
|
@@ -453,7 +453,7 @@ function xn(e, t, n, r, i, a) {
|
|
|
453
453
|
}), e.element = /** @type {any} */
|
|
454
454
|
o, o;
|
|
455
455
|
}
|
|
456
|
-
class
|
|
456
|
+
class _n {
|
|
457
457
|
/**
|
|
458
458
|
* ### PRIVATE API
|
|
459
459
|
*
|
|
@@ -472,7 +472,7 @@ class wn {
|
|
|
472
472
|
$$set = void 0;
|
|
473
473
|
/** @returns {void} */
|
|
474
474
|
$destroy() {
|
|
475
|
-
|
|
475
|
+
We(this, 1), this.$destroy = B;
|
|
476
476
|
}
|
|
477
477
|
/**
|
|
478
478
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -481,7 +481,7 @@ class wn {
|
|
|
481
481
|
* @returns {() => void}
|
|
482
482
|
*/
|
|
483
483
|
$on(t, n) {
|
|
484
|
-
if (!
|
|
484
|
+
if (!pt(n))
|
|
485
485
|
return B;
|
|
486
486
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
487
487
|
return r.push(n), () => {
|
|
@@ -494,26 +494,26 @@ class wn {
|
|
|
494
494
|
* @returns {void}
|
|
495
495
|
*/
|
|
496
496
|
$set(t) {
|
|
497
|
-
this.$$set && !
|
|
497
|
+
this.$$set && !Fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
|
-
const
|
|
501
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
502
|
-
function
|
|
500
|
+
const ei = "4";
|
|
501
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ei);
|
|
502
|
+
function It(e, t) {
|
|
503
503
|
var n;
|
|
504
504
|
t === void 0 && (t = "0");
|
|
505
505
|
var r = 0, i = -1;
|
|
506
|
-
e[0] == "-" && (e = e.substring(1),
|
|
507
|
-
var a =
|
|
508
|
-
return r ? r == 2 ? "-" + q(a) : e.length < a.length ? q(a.substring(1)) : "-" + q(
|
|
506
|
+
e[0] == "-" && (e = e.substring(1), nn(e) || (r++, i = 1, e.length)), t[0] == "-" && (t = t.substring(1), nn(t) || (r++, i = 2, t.length)), e = q(e), t = q(t), n = xn(q(e), q(t)), e = n[0], t = n[1], r == 1 && (i === 1 ? e = $t(e) : i === 2 && (t = $t(t)));
|
|
507
|
+
var a = gr(e, t);
|
|
508
|
+
return r ? r == 2 ? "-" + q(a) : e.length < a.length ? q(a.substring(1)) : "-" + q($t(a)) : q(a);
|
|
509
509
|
}
|
|
510
|
-
function
|
|
511
|
-
if (
|
|
510
|
+
function $t(e) {
|
|
511
|
+
if (nn(e))
|
|
512
512
|
return e;
|
|
513
513
|
for (var t = "", n = e.length, r = e.split(".")[1], i = r ? r.length : 0, a = 0; a < n; a++)
|
|
514
514
|
e[a] >= "0" && e[a] <= "9" ? t += 9 - parseInt(e[a]) : t += e[a];
|
|
515
515
|
var o = i > 0 ? "0." + new Array(i).join("0") + "1" : "1";
|
|
516
|
-
return
|
|
516
|
+
return gr(t, o);
|
|
517
517
|
}
|
|
518
518
|
function q(e) {
|
|
519
519
|
var t = e.split(".");
|
|
@@ -521,13 +521,13 @@ function q(e) {
|
|
|
521
521
|
t[0] = t[0].substring(1);
|
|
522
522
|
return t[0] + (t[1] ? "." + t[1] : "");
|
|
523
523
|
}
|
|
524
|
-
function
|
|
524
|
+
function xn(e, t) {
|
|
525
525
|
var n = e.split("."), r = t.split("."), i = n[0].length, a = r[0].length;
|
|
526
526
|
return i > a ? r[0] = new Array(Math.abs(i - a) + 1).join("0") + (r[0] ? r[0] : "") : n[0] = new Array(Math.abs(i - a) + 1).join("0") + (n[0] ? n[0] : ""), i = n[1] ? n[1].length : 0, a = r[1] ? r[1].length : 0, (i || a) && (i > a ? r[1] = (r[1] ? r[1] : "") + new Array(Math.abs(i - a) + 1).join("0") : n[1] = (n[1] ? n[1] : "") + new Array(Math.abs(i - a) + 1).join("0")), e = n[0] + (n[1] ? "." + n[1] : ""), t = r[0] + (r[1] ? "." + r[1] : ""), [e, t];
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function gr(e, t) {
|
|
529
529
|
var n;
|
|
530
|
-
n =
|
|
530
|
+
n = xn(e, t), e = n[0], t = n[1];
|
|
531
531
|
for (var r = "", i = 0, a = e.length - 1; a >= 0; a--) {
|
|
532
532
|
if (e[a] === ".") {
|
|
533
533
|
r = "." + r;
|
|
@@ -538,17 +538,17 @@ function mr(e, t) {
|
|
|
538
538
|
}
|
|
539
539
|
return i ? i.toString() + r : r;
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function nn(e) {
|
|
542
542
|
return /^0[0]*[.]{0,1}[0]*$/.test(e);
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function Hn(e) {
|
|
545
545
|
return (typeof e == "number" || typeof e == "bigint") && (e = e.toString()), e[0] == "-" ? e.substring(1) : e;
|
|
546
546
|
}
|
|
547
547
|
var V;
|
|
548
548
|
(function(e) {
|
|
549
549
|
e[e.CEILING = 0] = "CEILING", e[e.DOWN = 1] = "DOWN", e[e.FLOOR = 2] = "FLOOR", e[e.HALF_DOWN = 3] = "HALF_DOWN", e[e.HALF_EVEN = 4] = "HALF_EVEN", e[e.HALF_UP = 5] = "HALF_UP", e[e.UNNECESSARY = 6] = "UNNECESSARY", e[e.UP = 7] = "UP";
|
|
550
550
|
})(V || (V = {}));
|
|
551
|
-
function
|
|
551
|
+
function ct(e, t, n) {
|
|
552
552
|
if (t === void 0 && (t = 0), n === void 0 && (n = V.HALF_EVEN), n === V.UNNECESSARY)
|
|
553
553
|
throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");
|
|
554
554
|
(typeof e == "number" || typeof e == "bigint") && (e = e.toString());
|
|
@@ -559,10 +559,10 @@ function ht(e, t, n) {
|
|
|
559
559
|
if (t = -t, a.length <= t)
|
|
560
560
|
return "0";
|
|
561
561
|
var l = a.substr(0, a.length - t);
|
|
562
|
-
return e = l + "." + a.substr(a.length - t) + o, l =
|
|
562
|
+
return e = l + "." + a.substr(a.length - t) + o, l = ct(e, 0, n), (r ? "-" : "") + l + new Array(t + 1).join("0");
|
|
563
563
|
}
|
|
564
564
|
if (t == 0)
|
|
565
|
-
return a.length,
|
|
565
|
+
return a.length, In(i[1], a, r, n) && (a = jt(a)), (r && parseInt(a) ? "-" : "") + a;
|
|
566
566
|
if (i[1]) {
|
|
567
567
|
if (i[1].length < t)
|
|
568
568
|
return (r ? "-" : "") + a + "." + i[1] + new Array(t - i[1].length + 1).join("0");
|
|
@@ -570,9 +570,9 @@ function ht(e, t, n) {
|
|
|
570
570
|
return (r ? "-" : "") + a + "." + new Array(t + 1).join("0");
|
|
571
571
|
o = i[1].substring(0, t);
|
|
572
572
|
var s = i[1].substring(t);
|
|
573
|
-
return s &&
|
|
573
|
+
return s && In(s, o, r, n) && (o = jt(o), o.length > t) ? (r ? "-" : "") + jt(a, parseInt(o[0])) + "." + o.substring(1) : (r && (parseInt(a) || parseInt(o)) ? "-" : "") + a + "." + o;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function In(e, t, n, r) {
|
|
576
576
|
if (!e || e === new Array(e.length + 1).join("0") || r === V.DOWN || !n && r === V.FLOOR || n && r === V.CEILING)
|
|
577
577
|
return !1;
|
|
578
578
|
if (r === V.UP || n && r === V.FLOOR || !n && r === V.CEILING)
|
|
@@ -592,7 +592,7 @@ function Nn(e, t, n, r) {
|
|
|
592
592
|
return parseInt(t[t.length - 1]) % 2 == 1;
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function jt(e, t) {
|
|
596
596
|
t === void 0 && (t = 0), t || (t = 1), typeof e == "number" && e.toString();
|
|
597
597
|
for (var n = e.length - 1, r = "", i = n; i >= 0; i--) {
|
|
598
598
|
var a = parseInt(e[i]) + t;
|
|
@@ -600,7 +600,7 @@ function Xt(e, t) {
|
|
|
600
600
|
}
|
|
601
601
|
return t && (r += t), r.split("").reverse().join("");
|
|
602
602
|
}
|
|
603
|
-
function
|
|
603
|
+
function Be(e) {
|
|
604
604
|
var t = e[0] === "-";
|
|
605
605
|
for (t && (e = e.substr(1)); e[0] == "0"; )
|
|
606
606
|
e = e.substr(1);
|
|
@@ -609,14 +609,14 @@ function He(e) {
|
|
|
609
609
|
e = e.substr(0, e.length - 1);
|
|
610
610
|
return e == "" || e == "." ? e = "0" : e[e.length - 1] == "." && (e = e.substr(0, e.length - 1)), e[0] == "." && (e = "0" + e), t && e != "0" && (e = "-" + e), e;
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function rn(e, t) {
|
|
613
613
|
e = e.toString(), t = t.toString();
|
|
614
614
|
var n = 0;
|
|
615
|
-
e[0] == "-" && (n++, e = e.substr(1)), t[0] == "-" && (n++, t = t.substr(1)), e =
|
|
615
|
+
e[0] == "-" && (n++, e = e.substr(1)), t[0] == "-" && (n++, t = t.substr(1)), e = Be(e), t = Be(t);
|
|
616
616
|
var r = 0, i = 0;
|
|
617
617
|
e.indexOf(".") != -1 && (r = e.length - e.indexOf(".") - 1), t.indexOf(".") != -1 && (i = t.length - t.indexOf(".") - 1);
|
|
618
618
|
var a = r + i;
|
|
619
|
-
if (e =
|
|
619
|
+
if (e = Be(e.replace(".", "")), t = Be(t.replace(".", "")), e.length < t.length) {
|
|
620
620
|
var o = e;
|
|
621
621
|
e = t, t = o;
|
|
622
622
|
}
|
|
@@ -629,12 +629,12 @@ function on(e, t) {
|
|
|
629
629
|
u[b] > -1 && u[b] < e.length && (g += parseInt(e[u[b]--]) * parseInt(t[b]));
|
|
630
630
|
g += s, s = Math.floor(g / 10), f = g % 10 + f, h--;
|
|
631
631
|
}
|
|
632
|
-
return f =
|
|
632
|
+
return f = Be(ti(f, a)), n == 1 && (f = "-" + f), f;
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function ti(e, t) {
|
|
635
635
|
return t == 0 ? e : (e = t >= e.length ? new Array(t - e.length + 1).join("0") + e : e, e.substr(0, e.length - t) + "." + e.substr(e.length - t, t));
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function an(e, t, n, r) {
|
|
638
638
|
if (n === void 0 && (n = 8), r === void 0 && (r = V.HALF_EVEN), t == 0)
|
|
639
639
|
throw new Error("Cannot divide by 0");
|
|
640
640
|
if (e = e.toString(), t = t.toString(), e = e.replace(/(\.\d*?[1-9])0+$/g, "$1").replace(/\.0+$/, ""), t = t.replace(/(\.\d*?[1-9])0+$/g, "$1").replace(/\.0+$/, ""), e == 0)
|
|
@@ -662,46 +662,46 @@ function sn(e, t, n, r) {
|
|
|
662
662
|
}
|
|
663
663
|
for (n = n + 2; s <= n; ) {
|
|
664
664
|
for (var g = 0; parseInt(f) >= parseInt(t); )
|
|
665
|
-
f =
|
|
665
|
+
f = It(f, "-" + t), g++;
|
|
666
666
|
h += g, e ? (e[0] == "." && (h += ".", s++, e = e.substring(1)), f = f + e.substring(0, 1), e = e.substring(1)) : (s || (h += "."), s++, f = f + "0");
|
|
667
667
|
}
|
|
668
|
-
return (i == 1 ? "-" : "") + q(
|
|
668
|
+
return (i == 1 ? "-" : "") + q(ct(h, n - 2, r));
|
|
669
669
|
}
|
|
670
|
-
function
|
|
671
|
-
return e = e.toString(), t = t.toString(), t =
|
|
670
|
+
function on(e, t) {
|
|
671
|
+
return e = e.toString(), t = t.toString(), t = sn(t), It(e, t);
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function sn(e) {
|
|
674
674
|
return e[0] == "-" ? e = e.substr(1) : e = "-" + e, e;
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function Ln(e, t) {
|
|
677
677
|
if (t == 0)
|
|
678
678
|
throw new Error("Cannot divide by 0");
|
|
679
|
-
e = e.toString(), t = t.toString(),
|
|
679
|
+
e = e.toString(), t = t.toString(), Nn(e), Nn(t);
|
|
680
680
|
var n = "";
|
|
681
681
|
e[0] == "-" && (n = "-", e = e.substr(1)), t[0] == "-" && (t = t.substr(1));
|
|
682
|
-
var r =
|
|
682
|
+
var r = on(e, rn(t, ct(an(e, t), 0, V.FLOOR)));
|
|
683
683
|
return n + r;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
685
|
+
function Nn(e) {
|
|
686
686
|
if (e.indexOf(".") != -1)
|
|
687
687
|
throw new Error("Modulus of non-integers not supported");
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function Pn(e, t) {
|
|
690
690
|
var n, r, i = !1;
|
|
691
691
|
if (n = [e, t].map(function(o) {
|
|
692
|
-
return
|
|
692
|
+
return Be(o);
|
|
693
693
|
}), e = n[0], t = n[1], e[0] == "-" && t[0] != "-")
|
|
694
694
|
return -1;
|
|
695
695
|
if (e[0] != "-" && t[0] == "-")
|
|
696
696
|
return 1;
|
|
697
|
-
if (e[0] == "-" && t[0] == "-" && (e = e.substr(1), t = t.substr(1), i = !0), r =
|
|
697
|
+
if (e[0] == "-" && t[0] == "-" && (e = e.substr(1), t = t.substr(1), i = !0), r = xn(e, t), e = r[0], t = r[1], e.localeCompare(t) == 0)
|
|
698
698
|
return 0;
|
|
699
699
|
for (var a = 0; a < e.length; a++)
|
|
700
700
|
if (e[a] != t[a])
|
|
701
701
|
return e[a] > t[a] ? i ? -1 : 1 : i ? 1 : -1;
|
|
702
702
|
return 0;
|
|
703
703
|
}
|
|
704
|
-
var
|
|
704
|
+
var ni = (
|
|
705
705
|
/** @class */
|
|
706
706
|
function() {
|
|
707
707
|
function e(t) {
|
|
@@ -739,15 +739,15 @@ var ii = (
|
|
|
739
739
|
}, e.round = function(t, n, r) {
|
|
740
740
|
if (n === void 0 && (n = 0), r === void 0 && (r = V.HALF_EVEN), t = e.validate(t), isNaN(n))
|
|
741
741
|
throw Error("Precision is not a number: " + n);
|
|
742
|
-
return
|
|
742
|
+
return ct(t, n, r);
|
|
743
743
|
}, e.prototype.round = function(t, n) {
|
|
744
744
|
if (t === void 0 && (t = 0), n === void 0 && (n = V.HALF_EVEN), isNaN(t))
|
|
745
745
|
throw Error("Precision is not a number: " + t);
|
|
746
|
-
return new e(
|
|
746
|
+
return new e(ct(this.value, t, n));
|
|
747
747
|
}, e.abs = function(t) {
|
|
748
|
-
return t = e.validate(t),
|
|
748
|
+
return t = e.validate(t), Hn(t);
|
|
749
749
|
}, e.prototype.abs = function() {
|
|
750
|
-
return new e(
|
|
750
|
+
return new e(Hn(this.value));
|
|
751
751
|
}, e.floor = function(t) {
|
|
752
752
|
return t = e.validate(t), t.indexOf(".") === -1 ? t : e.round(t, 0, V.FLOOR);
|
|
753
753
|
}, e.prototype.floor = function() {
|
|
@@ -757,58 +757,58 @@ var ii = (
|
|
|
757
757
|
}, e.prototype.ceil = function() {
|
|
758
758
|
return this.value.indexOf(".") === -1 ? new e(this.value) : new e(this.value).round(0, V.CEILING);
|
|
759
759
|
}, e.add = function(t, n) {
|
|
760
|
-
return t = e.validate(t), n = e.validate(n),
|
|
760
|
+
return t = e.validate(t), n = e.validate(n), It(t, n);
|
|
761
761
|
}, e.prototype.add = function(t) {
|
|
762
|
-
return new e(
|
|
762
|
+
return new e(It(this.value, t.getValue()));
|
|
763
763
|
}, e.subtract = function(t, n) {
|
|
764
|
-
return t = e.validate(t), n = e.validate(n),
|
|
764
|
+
return t = e.validate(t), n = e.validate(n), on(t, n);
|
|
765
765
|
}, e.prototype.subtract = function(t) {
|
|
766
|
-
return new e(
|
|
766
|
+
return new e(on(this.value, t.getValue()));
|
|
767
767
|
}, e.multiply = function(t, n) {
|
|
768
|
-
return t = e.validate(t), n = e.validate(n),
|
|
768
|
+
return t = e.validate(t), n = e.validate(n), rn(t, n);
|
|
769
769
|
}, e.prototype.multiply = function(t) {
|
|
770
|
-
return new e(
|
|
770
|
+
return new e(rn(this.value, t.getValue()));
|
|
771
771
|
}, e.divide = function(t, n, r, i) {
|
|
772
|
-
return t = e.validate(t), n = e.validate(n),
|
|
772
|
+
return t = e.validate(t), n = e.validate(n), an(t, n, r, i);
|
|
773
773
|
}, e.prototype.divide = function(t, n, r) {
|
|
774
|
-
return new e(
|
|
774
|
+
return new e(an(this.value, t.getValue(), n, r));
|
|
775
775
|
}, e.modulus = function(t, n) {
|
|
776
|
-
return t = e.validate(t), n = e.validate(n),
|
|
776
|
+
return t = e.validate(t), n = e.validate(n), Ln(t, n);
|
|
777
777
|
}, e.prototype.modulus = function(t) {
|
|
778
|
-
return new e(
|
|
778
|
+
return new e(Ln(this.value, t.getValue()));
|
|
779
779
|
}, e.compareTo = function(t, n) {
|
|
780
|
-
return t = e.validate(t), n = e.validate(n),
|
|
780
|
+
return t = e.validate(t), n = e.validate(n), Pn(t, n);
|
|
781
781
|
}, e.prototype.compareTo = function(t) {
|
|
782
|
-
return
|
|
782
|
+
return Pn(this.value, t.getValue());
|
|
783
783
|
}, e.negate = function(t) {
|
|
784
|
-
return t = e.validate(t),
|
|
784
|
+
return t = e.validate(t), sn(t);
|
|
785
785
|
}, e.prototype.negate = function() {
|
|
786
|
-
return new e(
|
|
786
|
+
return new e(sn(this.value));
|
|
787
787
|
}, e.stripTrailingZero = function(t) {
|
|
788
|
-
return t = e.validate(t),
|
|
788
|
+
return t = e.validate(t), Be(t);
|
|
789
789
|
}, e.prototype.stripTrailingZero = function() {
|
|
790
|
-
return new e(
|
|
790
|
+
return new e(Be(this.value));
|
|
791
791
|
}, e.RoundingModes = V, e;
|
|
792
792
|
}()
|
|
793
793
|
);
|
|
794
|
-
const
|
|
795
|
-
function
|
|
794
|
+
const Ve = [];
|
|
795
|
+
function ri(e, t) {
|
|
796
796
|
return {
|
|
797
|
-
subscribe:
|
|
797
|
+
subscribe: Ot(e, t).subscribe
|
|
798
798
|
};
|
|
799
799
|
}
|
|
800
|
-
function
|
|
800
|
+
function Ot(e, t = B) {
|
|
801
801
|
let n;
|
|
802
802
|
const r = /* @__PURE__ */ new Set();
|
|
803
803
|
function i(l) {
|
|
804
|
-
if (
|
|
805
|
-
const s = !
|
|
804
|
+
if (Pt(e, l) && (e = l, n)) {
|
|
805
|
+
const s = !Ve.length;
|
|
806
806
|
for (const u of r)
|
|
807
|
-
u[1](),
|
|
807
|
+
u[1](), Ve.push(u, e);
|
|
808
808
|
if (s) {
|
|
809
|
-
for (let u = 0; u <
|
|
810
|
-
|
|
811
|
-
|
|
809
|
+
for (let u = 0; u < Ve.length; u += 2)
|
|
810
|
+
Ve[u][0](Ve[u + 1]);
|
|
811
|
+
Ve.length = 0;
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
814
|
}
|
|
@@ -823,12 +823,12 @@ function Dt(e, t = B) {
|
|
|
823
823
|
}
|
|
824
824
|
return { set: i, update: a, subscribe: o };
|
|
825
825
|
}
|
|
826
|
-
function
|
|
826
|
+
function Ke(e, t, n) {
|
|
827
827
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
828
828
|
if (!i.every(Boolean))
|
|
829
829
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
830
830
|
const a = t.length < 2;
|
|
831
|
-
return
|
|
831
|
+
return ri(n, (o, l) => {
|
|
832
832
|
let s = !1;
|
|
833
833
|
const u = [];
|
|
834
834
|
let h = 0, f = B;
|
|
@@ -837,12 +837,12 @@ function Qe(e, t, n) {
|
|
|
837
837
|
return;
|
|
838
838
|
f();
|
|
839
839
|
const b = t(r ? u[0] : u, o, l);
|
|
840
|
-
a ? o(b) : f =
|
|
840
|
+
a ? o(b) : f = pt(b) ? b : B;
|
|
841
841
|
}, g = i.map(
|
|
842
|
-
(b, y) =>
|
|
842
|
+
(b, y) => ur(
|
|
843
843
|
b,
|
|
844
|
-
(
|
|
845
|
-
u[y] =
|
|
844
|
+
(P) => {
|
|
845
|
+
u[y] = P, h &= ~(1 << y), s && c();
|
|
846
846
|
},
|
|
847
847
|
() => {
|
|
848
848
|
h |= 1 << y;
|
|
@@ -850,112 +850,126 @@ function Qe(e, t, n) {
|
|
|
850
850
|
)
|
|
851
851
|
);
|
|
852
852
|
return s = !0, c(), function() {
|
|
853
|
-
|
|
853
|
+
_e(g), f(), s = !1;
|
|
854
854
|
};
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function ii(e) {
|
|
858
858
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
859
859
|
}
|
|
860
|
-
var
|
|
861
|
-
return
|
|
860
|
+
var ai = function(t) {
|
|
861
|
+
return oi(t) && !si(t);
|
|
862
862
|
};
|
|
863
|
-
function
|
|
863
|
+
function oi(e) {
|
|
864
864
|
return !!e && typeof e == "object";
|
|
865
865
|
}
|
|
866
|
-
function
|
|
866
|
+
function si(e) {
|
|
867
867
|
var t = Object.prototype.toString.call(e);
|
|
868
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
868
|
+
return t === "[object RegExp]" || t === "[object Date]" || ci(e);
|
|
869
869
|
}
|
|
870
|
-
var
|
|
871
|
-
function
|
|
872
|
-
return e.$$typeof ===
|
|
870
|
+
var li = typeof Symbol == "function" && Symbol.for, ui = li ? Symbol.for("react.element") : 60103;
|
|
871
|
+
function ci(e) {
|
|
872
|
+
return e.$$typeof === ui;
|
|
873
873
|
}
|
|
874
|
-
function
|
|
874
|
+
function hi(e) {
|
|
875
875
|
return Array.isArray(e) ? [] : {};
|
|
876
876
|
}
|
|
877
|
-
function
|
|
878
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
877
|
+
function ht(e, t) {
|
|
878
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Xe(hi(e), e, t) : e;
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function fi(e, t, n) {
|
|
881
881
|
return e.concat(t).map(function(r) {
|
|
882
|
-
return
|
|
882
|
+
return ht(r, n);
|
|
883
883
|
});
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function pi(e, t) {
|
|
886
886
|
if (!t.customMerge)
|
|
887
|
-
return
|
|
887
|
+
return Xe;
|
|
888
888
|
var n = t.customMerge(e);
|
|
889
|
-
return typeof n == "function" ? n :
|
|
889
|
+
return typeof n == "function" ? n : Xe;
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function gi(e) {
|
|
892
892
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
893
893
|
return Object.propertyIsEnumerable.call(e, t);
|
|
894
894
|
}) : [];
|
|
895
895
|
}
|
|
896
|
-
function
|
|
897
|
-
return Object.keys(e).concat(
|
|
896
|
+
function On(e) {
|
|
897
|
+
return Object.keys(e).concat(gi(e));
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function dr(e, t) {
|
|
900
900
|
try {
|
|
901
901
|
return t in e;
|
|
902
902
|
} catch {
|
|
903
903
|
return !1;
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
|
-
function
|
|
907
|
-
return
|
|
906
|
+
function di(e, t) {
|
|
907
|
+
return dr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function mi(e, t, n) {
|
|
910
910
|
var r = {};
|
|
911
|
-
return n.isMergeableObject(e) &&
|
|
912
|
-
r[i] =
|
|
913
|
-
}),
|
|
914
|
-
|
|
911
|
+
return n.isMergeableObject(e) && On(e).forEach(function(i) {
|
|
912
|
+
r[i] = ht(e[i], n);
|
|
913
|
+
}), On(t).forEach(function(i) {
|
|
914
|
+
di(e, i) || (dr(e, i) && n.isMergeableObject(t[i]) ? r[i] = pi(i, n)(e[i], t[i], n) : r[i] = ht(t[i], n));
|
|
915
915
|
}), r;
|
|
916
916
|
}
|
|
917
|
-
function
|
|
918
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
917
|
+
function Xe(e, t, n) {
|
|
918
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || fi, n.isMergeableObject = n.isMergeableObject || ai, n.cloneUnlessOtherwiseSpecified = ht;
|
|
919
919
|
var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
|
|
920
|
-
return a ? r ? n.arrayMerge(e, t, n) :
|
|
920
|
+
return a ? r ? n.arrayMerge(e, t, n) : mi(e, t, n) : ht(t, n);
|
|
921
921
|
}
|
|
922
|
-
|
|
922
|
+
Xe.all = function(t, n) {
|
|
923
923
|
if (!Array.isArray(t))
|
|
924
924
|
throw new Error("first argument should be an array");
|
|
925
925
|
return t.reduce(function(r, i) {
|
|
926
|
-
return
|
|
926
|
+
return Xe(r, i, n);
|
|
927
927
|
}, {});
|
|
928
928
|
};
|
|
929
|
-
var
|
|
930
|
-
const
|
|
931
|
-
|
|
932
|
-
|
|
929
|
+
var yi = Xe, bi = yi;
|
|
930
|
+
const vi = /* @__PURE__ */ ii(bi);
|
|
931
|
+
/*! *****************************************************************************
|
|
932
|
+
Copyright (c) Microsoft Corporation.
|
|
933
|
+
|
|
934
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
935
|
+
purpose with or without fee is hereby granted.
|
|
936
|
+
|
|
937
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
938
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
939
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
940
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
941
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
942
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
943
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
944
|
+
***************************************************************************** */
|
|
945
|
+
var ln = function(e, t) {
|
|
946
|
+
return ln = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
933
947
|
n.__proto__ = r;
|
|
934
948
|
} || function(n, r) {
|
|
935
949
|
for (var i in r)
|
|
936
950
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
937
|
-
},
|
|
951
|
+
}, ln(e, t);
|
|
938
952
|
};
|
|
939
|
-
function
|
|
953
|
+
function Rt(e, t) {
|
|
940
954
|
if (typeof t != "function" && t !== null)
|
|
941
955
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
942
|
-
|
|
956
|
+
ln(e, t);
|
|
943
957
|
function n() {
|
|
944
958
|
this.constructor = e;
|
|
945
959
|
}
|
|
946
960
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
947
961
|
}
|
|
948
|
-
var
|
|
949
|
-
return
|
|
962
|
+
var I = function() {
|
|
963
|
+
return I = Object.assign || function(t) {
|
|
950
964
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
951
965
|
n = arguments[r];
|
|
952
966
|
for (var a in n)
|
|
953
967
|
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
954
968
|
}
|
|
955
969
|
return t;
|
|
956
|
-
},
|
|
970
|
+
}, I.apply(this, arguments);
|
|
957
971
|
};
|
|
958
|
-
function
|
|
972
|
+
function Ei(e, t) {
|
|
959
973
|
var n = {};
|
|
960
974
|
for (var r in e)
|
|
961
975
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -964,43 +978,43 @@ function xi(e, t) {
|
|
|
964
978
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
965
979
|
return n;
|
|
966
980
|
}
|
|
967
|
-
function
|
|
968
|
-
if (
|
|
981
|
+
function Wt(e, t, n) {
|
|
982
|
+
if (arguments.length === 2)
|
|
969
983
|
for (var r = 0, i = t.length, a; r < i; r++)
|
|
970
984
|
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
971
|
-
return e.concat(a ||
|
|
985
|
+
return e.concat(a || t);
|
|
972
986
|
}
|
|
973
|
-
function
|
|
974
|
-
var n = t && t.cache ? t.cache :
|
|
987
|
+
function Xt(e, t) {
|
|
988
|
+
var n = t && t.cache ? t.cache : Si, r = t && t.serializer ? t.serializer : Ci, i = t && t.strategy ? t.strategy : wi;
|
|
975
989
|
return i(e, {
|
|
976
990
|
cache: n,
|
|
977
991
|
serializer: r
|
|
978
992
|
});
|
|
979
993
|
}
|
|
980
|
-
function
|
|
994
|
+
function _i(e) {
|
|
981
995
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
982
996
|
}
|
|
983
|
-
function
|
|
984
|
-
var i =
|
|
997
|
+
function xi(e, t, n, r) {
|
|
998
|
+
var i = _i(r) ? r : n(r), a = t.get(i);
|
|
985
999
|
return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
|
|
986
1000
|
}
|
|
987
|
-
function
|
|
1001
|
+
function mr(e, t, n) {
|
|
988
1002
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
989
1003
|
return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
|
|
990
1004
|
}
|
|
991
|
-
function
|
|
1005
|
+
function yr(e, t, n, r, i) {
|
|
992
1006
|
return n.bind(t, e, r, i);
|
|
993
1007
|
}
|
|
994
|
-
function
|
|
995
|
-
var n = e.length === 1 ?
|
|
996
|
-
return
|
|
1008
|
+
function wi(e, t) {
|
|
1009
|
+
var n = e.length === 1 ? xi : mr;
|
|
1010
|
+
return yr(e, this, n, t.cache.create(), t.serializer);
|
|
997
1011
|
}
|
|
998
|
-
function
|
|
999
|
-
return
|
|
1012
|
+
function Ai(e, t) {
|
|
1013
|
+
return yr(e, this, mr, t.cache.create(), t.serializer);
|
|
1000
1014
|
}
|
|
1001
|
-
var
|
|
1015
|
+
var Ci = function() {
|
|
1002
1016
|
return JSON.stringify(arguments);
|
|
1003
|
-
},
|
|
1017
|
+
}, Ti = (
|
|
1004
1018
|
/** @class */
|
|
1005
1019
|
function() {
|
|
1006
1020
|
function e() {
|
|
@@ -1012,71 +1026,61 @@ var Si = function() {
|
|
|
1012
1026
|
this.cache[t] = n;
|
|
1013
1027
|
}, e;
|
|
1014
1028
|
}()
|
|
1015
|
-
),
|
|
1029
|
+
), Si = {
|
|
1016
1030
|
create: function() {
|
|
1017
|
-
return new
|
|
1031
|
+
return new Ti();
|
|
1018
1032
|
}
|
|
1019
|
-
},
|
|
1020
|
-
variadic:
|
|
1021
|
-
},
|
|
1022
|
-
return Nt = Object.assign || function(t) {
|
|
1023
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1024
|
-
n = arguments[r];
|
|
1025
|
-
for (var a in n)
|
|
1026
|
-
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
1027
|
-
}
|
|
1028
|
-
return t;
|
|
1029
|
-
}, Nt.apply(this, arguments);
|
|
1030
|
-
};
|
|
1031
|
-
var S;
|
|
1033
|
+
}, zt = {
|
|
1034
|
+
variadic: Ai
|
|
1035
|
+
}, S;
|
|
1032
1036
|
(function(e) {
|
|
1033
1037
|
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";
|
|
1034
1038
|
})(S || (S = {}));
|
|
1035
|
-
var
|
|
1039
|
+
var k;
|
|
1036
1040
|
(function(e) {
|
|
1037
1041
|
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";
|
|
1038
|
-
})(
|
|
1039
|
-
var
|
|
1042
|
+
})(k || (k = {}));
|
|
1043
|
+
var ze;
|
|
1040
1044
|
(function(e) {
|
|
1041
1045
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1042
|
-
})(
|
|
1043
|
-
function
|
|
1044
|
-
return e.type ===
|
|
1046
|
+
})(ze || (ze = {}));
|
|
1047
|
+
function Rn(e) {
|
|
1048
|
+
return e.type === k.literal;
|
|
1049
|
+
}
|
|
1050
|
+
function Bi(e) {
|
|
1051
|
+
return e.type === k.argument;
|
|
1052
|
+
}
|
|
1053
|
+
function br(e) {
|
|
1054
|
+
return e.type === k.number;
|
|
1045
1055
|
}
|
|
1046
|
-
function
|
|
1047
|
-
return e.type ===
|
|
1056
|
+
function vr(e) {
|
|
1057
|
+
return e.type === k.date;
|
|
1048
1058
|
}
|
|
1049
1059
|
function Er(e) {
|
|
1050
|
-
return e.type ===
|
|
1060
|
+
return e.type === k.time;
|
|
1051
1061
|
}
|
|
1052
1062
|
function _r(e) {
|
|
1053
|
-
return e.type ===
|
|
1063
|
+
return e.type === k.select;
|
|
1054
1064
|
}
|
|
1055
1065
|
function xr(e) {
|
|
1056
|
-
return e.type ===
|
|
1066
|
+
return e.type === k.plural;
|
|
1067
|
+
}
|
|
1068
|
+
function Hi(e) {
|
|
1069
|
+
return e.type === k.pound;
|
|
1057
1070
|
}
|
|
1058
1071
|
function wr(e) {
|
|
1059
|
-
return e.type ===
|
|
1072
|
+
return e.type === k.tag;
|
|
1060
1073
|
}
|
|
1061
1074
|
function Ar(e) {
|
|
1062
|
-
return e.type ===
|
|
1063
|
-
}
|
|
1064
|
-
function Li(e) {
|
|
1065
|
-
return e.type === D.pound;
|
|
1066
|
-
}
|
|
1067
|
-
function Cr(e) {
|
|
1068
|
-
return e.type === D.tag;
|
|
1069
|
-
}
|
|
1070
|
-
function Tr(e) {
|
|
1071
|
-
return !!(e && typeof e == "object" && e.type === Ze.number);
|
|
1075
|
+
return !!(e && typeof e == "object" && e.type === ze.number);
|
|
1072
1076
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1077
|
+
function un(e) {
|
|
1078
|
+
return !!(e && typeof e == "object" && e.type === ze.dateTime);
|
|
1075
1079
|
}
|
|
1076
|
-
var
|
|
1077
|
-
function
|
|
1080
|
+
var Cr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Ii = /(?:[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;
|
|
1081
|
+
function Li(e) {
|
|
1078
1082
|
var t = {};
|
|
1079
|
-
return e.replace(
|
|
1083
|
+
return e.replace(Ii, function(n) {
|
|
1080
1084
|
var r = n.length;
|
|
1081
1085
|
switch (n[0]) {
|
|
1082
1086
|
case "G":
|
|
@@ -1165,21 +1169,11 @@ function Pi(e) {
|
|
|
1165
1169
|
return "";
|
|
1166
1170
|
}), t;
|
|
1167
1171
|
}
|
|
1168
|
-
var
|
|
1169
|
-
|
|
1170
|
-
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
1171
|
-
n = arguments[r];
|
|
1172
|
-
for (var a in n)
|
|
1173
|
-
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
1174
|
-
}
|
|
1175
|
-
return t;
|
|
1176
|
-
}, F.apply(this, arguments);
|
|
1177
|
-
};
|
|
1178
|
-
var Oi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1179
|
-
function Ri(e) {
|
|
1172
|
+
var Ni = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1173
|
+
function Pi(e) {
|
|
1180
1174
|
if (e.length === 0)
|
|
1181
1175
|
throw new Error("Number skeleton cannot be empty");
|
|
1182
|
-
for (var t = e.split(
|
|
1176
|
+
for (var t = e.split(Ni).filter(function(c) {
|
|
1183
1177
|
return c.length > 0;
|
|
1184
1178
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
1185
1179
|
var a = i[r], o = a.split("/");
|
|
@@ -1194,17 +1188,17 @@ function Ri(e) {
|
|
|
1194
1188
|
}
|
|
1195
1189
|
return n;
|
|
1196
1190
|
}
|
|
1197
|
-
function
|
|
1191
|
+
function Oi(e) {
|
|
1198
1192
|
return e.replace(/^(.*?)-/, "");
|
|
1199
1193
|
}
|
|
1200
|
-
var
|
|
1201
|
-
function
|
|
1194
|
+
var Dn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Tr = /^(@+)?(\+|#+)?[rs]?$/g, Ri = /(\*)(0+)|(#+)(0+)|(0+)/g, Sr = /^(0+)$/;
|
|
1195
|
+
function kn(e) {
|
|
1202
1196
|
var t = {};
|
|
1203
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1197
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Tr, function(n, r, i) {
|
|
1204
1198
|
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)), "";
|
|
1205
1199
|
}), t;
|
|
1206
1200
|
}
|
|
1207
|
-
function
|
|
1201
|
+
function Br(e) {
|
|
1208
1202
|
switch (e) {
|
|
1209
1203
|
case "sign-auto":
|
|
1210
1204
|
return {
|
|
@@ -1244,7 +1238,7 @@ function Ir(e) {
|
|
|
1244
1238
|
};
|
|
1245
1239
|
}
|
|
1246
1240
|
}
|
|
1247
|
-
function
|
|
1241
|
+
function Di(e) {
|
|
1248
1242
|
var t;
|
|
1249
1243
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1250
1244
|
notation: "engineering"
|
|
@@ -1252,17 +1246,17 @@ function Mi(e) {
|
|
|
1252
1246
|
notation: "scientific"
|
|
1253
1247
|
}, e = e.slice(1)), t) {
|
|
1254
1248
|
var n = e.slice(0, 2);
|
|
1255
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1249
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Sr.test(e))
|
|
1256
1250
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1257
1251
|
t.minimumIntegerDigits = e.length;
|
|
1258
1252
|
}
|
|
1259
1253
|
return t;
|
|
1260
1254
|
}
|
|
1261
|
-
function
|
|
1262
|
-
var t = {}, n =
|
|
1255
|
+
function Mn(e) {
|
|
1256
|
+
var t = {}, n = Br(e);
|
|
1263
1257
|
return n || t;
|
|
1264
1258
|
}
|
|
1265
|
-
function
|
|
1259
|
+
function ki(e) {
|
|
1266
1260
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1267
1261
|
var i = r[n];
|
|
1268
1262
|
switch (i.stem) {
|
|
@@ -1286,7 +1280,7 @@ function Fi(e) {
|
|
|
1286
1280
|
continue;
|
|
1287
1281
|
case "measure-unit":
|
|
1288
1282
|
case "unit":
|
|
1289
|
-
t.style = "unit", t.unit =
|
|
1283
|
+
t.style = "unit", t.unit = Oi(i.options[0]);
|
|
1290
1284
|
continue;
|
|
1291
1285
|
case "compact-short":
|
|
1292
1286
|
case "K":
|
|
@@ -1297,13 +1291,13 @@ function Fi(e) {
|
|
|
1297
1291
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1298
1292
|
continue;
|
|
1299
1293
|
case "scientific":
|
|
1300
|
-
t =
|
|
1301
|
-
return
|
|
1294
|
+
t = I(I(I({}, t), { notation: "scientific" }), i.options.reduce(function(s, u) {
|
|
1295
|
+
return I(I({}, s), Mn(u));
|
|
1302
1296
|
}, {}));
|
|
1303
1297
|
continue;
|
|
1304
1298
|
case "engineering":
|
|
1305
|
-
t =
|
|
1306
|
-
return
|
|
1299
|
+
t = I(I(I({}, t), { notation: "engineering" }), i.options.reduce(function(s, u) {
|
|
1300
|
+
return I(I({}, s), Mn(u));
|
|
1307
1301
|
}, {}));
|
|
1308
1302
|
continue;
|
|
1309
1303
|
case "notation-simple":
|
|
@@ -1348,7 +1342,7 @@ function Fi(e) {
|
|
|
1348
1342
|
case "integer-width":
|
|
1349
1343
|
if (i.options.length > 1)
|
|
1350
1344
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1351
|
-
i.options[0].replace(
|
|
1345
|
+
i.options[0].replace(Ri, function(s, u, h, f, c, g) {
|
|
1352
1346
|
if (u)
|
|
1353
1347
|
t.minimumIntegerDigits = h.length;
|
|
1354
1348
|
else {
|
|
@@ -1361,32 +1355,32 @@ function Fi(e) {
|
|
|
1361
1355
|
});
|
|
1362
1356
|
continue;
|
|
1363
1357
|
}
|
|
1364
|
-
if (
|
|
1358
|
+
if (Sr.test(i.stem)) {
|
|
1365
1359
|
t.minimumIntegerDigits = i.stem.length;
|
|
1366
1360
|
continue;
|
|
1367
1361
|
}
|
|
1368
|
-
if (
|
|
1362
|
+
if (Dn.test(i.stem)) {
|
|
1369
1363
|
if (i.options.length > 1)
|
|
1370
1364
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1371
|
-
i.stem.replace(
|
|
1365
|
+
i.stem.replace(Dn, function(s, u, h, f, c, g) {
|
|
1372
1366
|
return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && g ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + g.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1373
1367
|
});
|
|
1374
1368
|
var a = i.options[0];
|
|
1375
|
-
a === "w" ? t =
|
|
1369
|
+
a === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = I(I({}, t), kn(a)));
|
|
1376
1370
|
continue;
|
|
1377
1371
|
}
|
|
1378
|
-
if (
|
|
1379
|
-
t =
|
|
1372
|
+
if (Tr.test(i.stem)) {
|
|
1373
|
+
t = I(I({}, t), kn(i.stem));
|
|
1380
1374
|
continue;
|
|
1381
1375
|
}
|
|
1382
|
-
var o =
|
|
1383
|
-
o && (t =
|
|
1384
|
-
var l =
|
|
1385
|
-
l && (t =
|
|
1376
|
+
var o = Br(i.stem);
|
|
1377
|
+
o && (t = I(I({}, t), o));
|
|
1378
|
+
var l = Di(i.stem);
|
|
1379
|
+
l && (t = I(I({}, t), l));
|
|
1386
1380
|
}
|
|
1387
1381
|
return t;
|
|
1388
1382
|
}
|
|
1389
|
-
var
|
|
1383
|
+
var xt = {
|
|
1390
1384
|
"001": [
|
|
1391
1385
|
"H",
|
|
1392
1386
|
"h"
|
|
@@ -2801,13 +2795,13 @@ var wt = {
|
|
|
2801
2795
|
"h"
|
|
2802
2796
|
]
|
|
2803
2797
|
};
|
|
2804
|
-
function
|
|
2798
|
+
function Mi(e, t) {
|
|
2805
2799
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2806
2800
|
var i = e.charAt(r);
|
|
2807
2801
|
if (i === "j") {
|
|
2808
2802
|
for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2809
2803
|
a++, r++;
|
|
2810
|
-
var o = 1 + (a & 1), l = a < 2 ? 1 : 3 + (a >> 1), s = "a", u =
|
|
2804
|
+
var o = 1 + (a & 1), l = a < 2 ? 1 : 3 + (a >> 1), s = "a", u = Fi(t);
|
|
2811
2805
|
for ((u == "H" || u == "k") && (l = 0); l-- > 0; )
|
|
2812
2806
|
n += s;
|
|
2813
2807
|
for (; o-- > 0; )
|
|
@@ -2817,7 +2811,7 @@ function Vi(e, t) {
|
|
|
2817
2811
|
}
|
|
2818
2812
|
return n;
|
|
2819
2813
|
}
|
|
2820
|
-
function
|
|
2814
|
+
function Fi(e) {
|
|
2821
2815
|
var t = e.hourCycle;
|
|
2822
2816
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2823
2817
|
e.hourCycles && // @ts-ignore
|
|
@@ -2836,23 +2830,23 @@ function Ui(e) {
|
|
|
2836
2830
|
}
|
|
2837
2831
|
var n = e.language, r;
|
|
2838
2832
|
n !== "root" && (r = e.maximize().region);
|
|
2839
|
-
var i =
|
|
2833
|
+
var i = xt[r || ""] || xt[n || ""] || xt["".concat(n, "-001")] || xt["001"];
|
|
2840
2834
|
return i[0];
|
|
2841
2835
|
}
|
|
2842
|
-
var
|
|
2836
|
+
var Zt, Vi = new RegExp("^".concat(Cr.source, "*")), Ui = new RegExp("".concat(Cr.source, "*$"));
|
|
2843
2837
|
function H(e, t) {
|
|
2844
2838
|
return { start: e, end: t };
|
|
2845
2839
|
}
|
|
2846
|
-
var
|
|
2840
|
+
var Gi = !!String.prototype.startsWith && "_a".startsWith("a", 1), $i = !!String.fromCodePoint, ji = !!Object.fromEntries, Wi = !!String.prototype.codePointAt, Xi = !!String.prototype.trimStart, zi = !!String.prototype.trimEnd, Zi = !!Number.isSafeInteger, qi = Zi ? Number.isSafeInteger : function(e) {
|
|
2847
2841
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2848
|
-
},
|
|
2842
|
+
}, cn = !0;
|
|
2849
2843
|
try {
|
|
2850
|
-
var
|
|
2851
|
-
|
|
2844
|
+
var Ki = Ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2845
|
+
cn = ((Zt = Ki.exec("a")) === null || Zt === void 0 ? void 0 : Zt[0]) === "a";
|
|
2852
2846
|
} catch {
|
|
2853
|
-
|
|
2847
|
+
cn = !1;
|
|
2854
2848
|
}
|
|
2855
|
-
var
|
|
2849
|
+
var Fn = Gi ? (
|
|
2856
2850
|
// Native
|
|
2857
2851
|
function(t, n, r) {
|
|
2858
2852
|
return t.startsWith(n, r);
|
|
@@ -2862,7 +2856,7 @@ var Un = ji ? (
|
|
|
2862
2856
|
function(t, n, r) {
|
|
2863
2857
|
return t.slice(r, r + n.length) === n;
|
|
2864
2858
|
}
|
|
2865
|
-
),
|
|
2859
|
+
), hn = $i ? String.fromCodePoint : (
|
|
2866
2860
|
// IE11
|
|
2867
2861
|
function() {
|
|
2868
2862
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2874,9 +2868,9 @@ var Un = ji ? (
|
|
|
2874
2868
|
}
|
|
2875
2869
|
return r;
|
|
2876
2870
|
}
|
|
2877
|
-
),
|
|
2871
|
+
), Vn = (
|
|
2878
2872
|
// native
|
|
2879
|
-
|
|
2873
|
+
ji ? Object.fromEntries : (
|
|
2880
2874
|
// Ponyfill
|
|
2881
2875
|
function(t) {
|
|
2882
2876
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2886,7 +2880,7 @@ var Un = ji ? (
|
|
|
2886
2880
|
return n;
|
|
2887
2881
|
}
|
|
2888
2882
|
)
|
|
2889
|
-
),
|
|
2883
|
+
), Hr = Wi ? (
|
|
2890
2884
|
// Native
|
|
2891
2885
|
function(t, n) {
|
|
2892
2886
|
return t.codePointAt(n);
|
|
@@ -2900,7 +2894,7 @@ var Un = ji ? (
|
|
|
2900
2894
|
return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2901
2895
|
}
|
|
2902
2896
|
}
|
|
2903
|
-
),
|
|
2897
|
+
), Qi = Xi ? (
|
|
2904
2898
|
// Native
|
|
2905
2899
|
function(t) {
|
|
2906
2900
|
return t.trimStart();
|
|
@@ -2908,9 +2902,9 @@ var Un = ji ? (
|
|
|
2908
2902
|
) : (
|
|
2909
2903
|
// Ponyfill
|
|
2910
2904
|
function(t) {
|
|
2911
|
-
return t.replace(
|
|
2905
|
+
return t.replace(Vi, "");
|
|
2912
2906
|
}
|
|
2913
|
-
),
|
|
2907
|
+
), Yi = zi ? (
|
|
2914
2908
|
// Native
|
|
2915
2909
|
function(t) {
|
|
2916
2910
|
return t.trimEnd();
|
|
@@ -2918,32 +2912,32 @@ var Un = ji ? (
|
|
|
2918
2912
|
) : (
|
|
2919
2913
|
// Ponyfill
|
|
2920
2914
|
function(t) {
|
|
2921
|
-
return t.replace(
|
|
2915
|
+
return t.replace(Ui, "");
|
|
2922
2916
|
}
|
|
2923
2917
|
);
|
|
2924
|
-
function
|
|
2918
|
+
function Ir(e, t) {
|
|
2925
2919
|
return new RegExp(e, t);
|
|
2926
2920
|
}
|
|
2927
|
-
var
|
|
2928
|
-
if (
|
|
2929
|
-
var
|
|
2930
|
-
|
|
2921
|
+
var fn;
|
|
2922
|
+
if (cn) {
|
|
2923
|
+
var Un = Ir("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2924
|
+
fn = function(t, n) {
|
|
2931
2925
|
var r;
|
|
2932
|
-
|
|
2933
|
-
var i =
|
|
2926
|
+
Un.lastIndex = n;
|
|
2927
|
+
var i = Un.exec(t);
|
|
2934
2928
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2935
2929
|
};
|
|
2936
2930
|
} else
|
|
2937
|
-
|
|
2931
|
+
fn = function(t, n) {
|
|
2938
2932
|
for (var r = []; ; ) {
|
|
2939
|
-
var i =
|
|
2940
|
-
if (i === void 0 ||
|
|
2933
|
+
var i = Hr(t, n);
|
|
2934
|
+
if (i === void 0 || Lr(i) || na(i))
|
|
2941
2935
|
break;
|
|
2942
2936
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2943
2937
|
}
|
|
2944
|
-
return
|
|
2938
|
+
return hn.apply(void 0, r);
|
|
2945
2939
|
};
|
|
2946
|
-
var
|
|
2940
|
+
var Ji = (
|
|
2947
2941
|
/** @class */
|
|
2948
2942
|
function() {
|
|
2949
2943
|
function e(t, n) {
|
|
@@ -2967,14 +2961,14 @@ var ta = (
|
|
|
2967
2961
|
if (a === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2968
2962
|
var l = this.clonePosition();
|
|
2969
2963
|
this.bump(), i.push({
|
|
2970
|
-
type:
|
|
2964
|
+
type: k.pound,
|
|
2971
2965
|
location: H(l, this.clonePosition())
|
|
2972
2966
|
});
|
|
2973
2967
|
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2974
2968
|
if (r)
|
|
2975
2969
|
break;
|
|
2976
2970
|
return this.error(S.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
|
|
2977
|
-
} else if (a === 60 && !this.ignoreTag &&
|
|
2971
|
+
} else if (a === 60 && !this.ignoreTag && pn(this.peek() || 0)) {
|
|
2978
2972
|
var o = this.parseTag(t, n);
|
|
2979
2973
|
if (o.err)
|
|
2980
2974
|
return o;
|
|
@@ -2995,7 +2989,7 @@ var ta = (
|
|
|
2995
2989
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2996
2990
|
return {
|
|
2997
2991
|
val: {
|
|
2998
|
-
type:
|
|
2992
|
+
type: k.literal,
|
|
2999
2993
|
value: "<".concat(i, "/>"),
|
|
3000
2994
|
location: H(r, this.clonePosition())
|
|
3001
2995
|
},
|
|
@@ -3007,12 +3001,12 @@ var ta = (
|
|
|
3007
3001
|
return a;
|
|
3008
3002
|
var o = a.val, l = this.clonePosition();
|
|
3009
3003
|
if (this.bumpIf("</")) {
|
|
3010
|
-
if (this.isEOF() || !
|
|
3004
|
+
if (this.isEOF() || !pn(this.char()))
|
|
3011
3005
|
return this.error(S.INVALID_TAG, H(l, this.clonePosition()));
|
|
3012
3006
|
var s = this.clonePosition(), u = this.parseTagName();
|
|
3013
3007
|
return i !== u ? this.error(S.UNMATCHED_CLOSING_TAG, H(s, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3014
3008
|
val: {
|
|
3015
|
-
type:
|
|
3009
|
+
type: k.tag,
|
|
3016
3010
|
value: i,
|
|
3017
3011
|
children: o,
|
|
3018
3012
|
location: H(r, this.clonePosition())
|
|
@@ -3025,7 +3019,7 @@ var ta = (
|
|
|
3025
3019
|
return this.error(S.INVALID_TAG, H(r, this.clonePosition()));
|
|
3026
3020
|
}, e.prototype.parseTagName = function() {
|
|
3027
3021
|
var t = this.offset();
|
|
3028
|
-
for (this.bump(); !this.isEOF() &&
|
|
3022
|
+
for (this.bump(); !this.isEOF() && ta(this.char()); )
|
|
3029
3023
|
this.bump();
|
|
3030
3024
|
return this.message.slice(t, this.offset());
|
|
3031
3025
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -3049,12 +3043,12 @@ var ta = (
|
|
|
3049
3043
|
}
|
|
3050
3044
|
var s = H(r, this.clonePosition());
|
|
3051
3045
|
return {
|
|
3052
|
-
val: { type:
|
|
3046
|
+
val: { type: k.literal, value: i, location: s },
|
|
3053
3047
|
err: null
|
|
3054
3048
|
};
|
|
3055
3049
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3056
3050
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3057
|
-
!
|
|
3051
|
+
!ea(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3058
3052
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3059
3053
|
if (this.isEOF() || this.char() !== 39)
|
|
3060
3054
|
return null;
|
|
@@ -3088,12 +3082,12 @@ var ta = (
|
|
|
3088
3082
|
n.push(r);
|
|
3089
3083
|
this.bump();
|
|
3090
3084
|
}
|
|
3091
|
-
return
|
|
3085
|
+
return hn.apply(void 0, n);
|
|
3092
3086
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
3093
3087
|
if (this.isEOF())
|
|
3094
3088
|
return null;
|
|
3095
3089
|
var r = this.char();
|
|
3096
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
3090
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), hn(r));
|
|
3097
3091
|
}, e.prototype.parseArgument = function(t, n) {
|
|
3098
3092
|
var r = this.clonePosition();
|
|
3099
3093
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3109,7 +3103,7 @@ var ta = (
|
|
|
3109
3103
|
case 125:
|
|
3110
3104
|
return this.bump(), {
|
|
3111
3105
|
val: {
|
|
3112
|
-
type:
|
|
3106
|
+
type: k.argument,
|
|
3113
3107
|
// value does not include the opening and closing braces.
|
|
3114
3108
|
value: i,
|
|
3115
3109
|
location: H(r, this.clonePosition())
|
|
@@ -3122,7 +3116,7 @@ var ta = (
|
|
|
3122
3116
|
return this.error(S.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
|
|
3123
3117
|
}
|
|
3124
3118
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3125
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
3119
|
+
var t = this.clonePosition(), n = this.offset(), r = fn(this.message, n), i = n + r.length;
|
|
3126
3120
|
this.bumpTo(i);
|
|
3127
3121
|
var a = this.clonePosition(), o = H(t, a);
|
|
3128
3122
|
return { value: r, location: o };
|
|
@@ -3141,7 +3135,7 @@ var ta = (
|
|
|
3141
3135
|
var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3142
3136
|
if (f.err)
|
|
3143
3137
|
return f;
|
|
3144
|
-
var c =
|
|
3138
|
+
var c = Yi(f.val);
|
|
3145
3139
|
if (c.length === 0)
|
|
3146
3140
|
return this.error(S.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
|
|
3147
3141
|
var g = H(h, this.clonePosition());
|
|
@@ -3151,34 +3145,34 @@ var ta = (
|
|
|
3151
3145
|
if (b.err)
|
|
3152
3146
|
return b;
|
|
3153
3147
|
var y = H(i, this.clonePosition());
|
|
3154
|
-
if (u &&
|
|
3155
|
-
var
|
|
3148
|
+
if (u && Fn(u?.style, "::", 0)) {
|
|
3149
|
+
var P = Qi(u.style.slice(2));
|
|
3156
3150
|
if (l === "number") {
|
|
3157
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3151
|
+
var f = this.parseNumberSkeletonFromString(P, u.styleLocation);
|
|
3158
3152
|
return f.err ? f : {
|
|
3159
|
-
val: { type:
|
|
3153
|
+
val: { type: k.number, value: r, location: y, style: f.val },
|
|
3160
3154
|
err: null
|
|
3161
3155
|
};
|
|
3162
3156
|
} else {
|
|
3163
|
-
if (
|
|
3157
|
+
if (P.length === 0)
|
|
3164
3158
|
return this.error(S.EXPECT_DATE_TIME_SKELETON, y);
|
|
3165
|
-
var
|
|
3166
|
-
this.locale && (
|
|
3159
|
+
var O = P;
|
|
3160
|
+
this.locale && (O = Mi(P, this.locale));
|
|
3167
3161
|
var c = {
|
|
3168
|
-
type:
|
|
3169
|
-
pattern:
|
|
3162
|
+
type: ze.dateTime,
|
|
3163
|
+
pattern: O,
|
|
3170
3164
|
location: u.styleLocation,
|
|
3171
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3172
|
-
},
|
|
3165
|
+
parsedOptions: this.shouldParseSkeletons ? Li(O) : {}
|
|
3166
|
+
}, R = l === "date" ? k.date : k.time;
|
|
3173
3167
|
return {
|
|
3174
|
-
val: { type:
|
|
3168
|
+
val: { type: R, value: r, location: y, style: c },
|
|
3175
3169
|
err: null
|
|
3176
3170
|
};
|
|
3177
3171
|
}
|
|
3178
3172
|
}
|
|
3179
3173
|
return {
|
|
3180
3174
|
val: {
|
|
3181
|
-
type: l === "number" ?
|
|
3175
|
+
type: l === "number" ? k.number : l === "date" ? k.date : k.time,
|
|
3182
3176
|
value: r,
|
|
3183
3177
|
location: y,
|
|
3184
3178
|
style: (a = u?.style) !== null && a !== void 0 ? a : null
|
|
@@ -3191,9 +3185,9 @@ var ta = (
|
|
|
3191
3185
|
case "select": {
|
|
3192
3186
|
var E = this.clonePosition();
|
|
3193
3187
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3194
|
-
return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS, H(E,
|
|
3188
|
+
return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS, H(E, I({}, E)));
|
|
3195
3189
|
this.bumpSpace();
|
|
3196
|
-
var j = this.parseIdentifierIfPossible(),
|
|
3190
|
+
var j = this.parseIdentifierIfPossible(), M = 0;
|
|
3197
3191
|
if (l !== "select" && j.value === "offset") {
|
|
3198
3192
|
if (!this.bumpIf(":"))
|
|
3199
3193
|
return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
|
|
@@ -3201,7 +3195,7 @@ var ta = (
|
|
|
3201
3195
|
var f = this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
3202
3196
|
if (f.err)
|
|
3203
3197
|
return f;
|
|
3204
|
-
this.bumpSpace(), j = this.parseIdentifierIfPossible(),
|
|
3198
|
+
this.bumpSpace(), j = this.parseIdentifierIfPossible(), M = f.val;
|
|
3205
3199
|
}
|
|
3206
3200
|
var K = this.tryParsePluralOrSelectOptions(t, l, n, j);
|
|
3207
3201
|
if (K.err)
|
|
@@ -3209,23 +3203,23 @@ var ta = (
|
|
|
3209
3203
|
var b = this.tryParseArgumentClose(i);
|
|
3210
3204
|
if (b.err)
|
|
3211
3205
|
return b;
|
|
3212
|
-
var
|
|
3206
|
+
var ge = H(i, this.clonePosition());
|
|
3213
3207
|
return l === "select" ? {
|
|
3214
3208
|
val: {
|
|
3215
|
-
type:
|
|
3209
|
+
type: k.select,
|
|
3216
3210
|
value: r,
|
|
3217
|
-
options:
|
|
3218
|
-
location:
|
|
3211
|
+
options: Vn(K.val),
|
|
3212
|
+
location: ge
|
|
3219
3213
|
},
|
|
3220
3214
|
err: null
|
|
3221
3215
|
} : {
|
|
3222
3216
|
val: {
|
|
3223
|
-
type:
|
|
3217
|
+
type: k.plural,
|
|
3224
3218
|
value: r,
|
|
3225
|
-
options:
|
|
3226
|
-
offset:
|
|
3219
|
+
options: Vn(K.val),
|
|
3220
|
+
offset: M,
|
|
3227
3221
|
pluralType: l === "plural" ? "cardinal" : "ordinal",
|
|
3228
|
-
location:
|
|
3222
|
+
location: ge
|
|
3229
3223
|
},
|
|
3230
3224
|
err: null
|
|
3231
3225
|
};
|
|
@@ -3273,16 +3267,16 @@ var ta = (
|
|
|
3273
3267
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3274
3268
|
var r = [];
|
|
3275
3269
|
try {
|
|
3276
|
-
r =
|
|
3270
|
+
r = Pi(t);
|
|
3277
3271
|
} catch {
|
|
3278
3272
|
return this.error(S.INVALID_NUMBER_SKELETON, n);
|
|
3279
3273
|
}
|
|
3280
3274
|
return {
|
|
3281
3275
|
val: {
|
|
3282
|
-
type:
|
|
3276
|
+
type: ze.number,
|
|
3283
3277
|
tokens: r,
|
|
3284
3278
|
location: n,
|
|
3285
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3279
|
+
parsedOptions: this.shouldParseSkeletons ? ki(r) : {}
|
|
3286
3280
|
},
|
|
3287
3281
|
err: null
|
|
3288
3282
|
};
|
|
@@ -3330,7 +3324,7 @@ var ta = (
|
|
|
3330
3324
|
break;
|
|
3331
3325
|
}
|
|
3332
3326
|
var s = H(i, this.clonePosition());
|
|
3333
|
-
return a ? (o *= r,
|
|
3327
|
+
return a ? (o *= r, qi(o) ? { val: o, err: null } : this.error(n, s)) : this.error(t, s);
|
|
3334
3328
|
}, e.prototype.offset = function() {
|
|
3335
3329
|
return this.position.offset;
|
|
3336
3330
|
}, e.prototype.isEOF = function() {
|
|
@@ -3345,7 +3339,7 @@ var ta = (
|
|
|
3345
3339
|
var t = this.position.offset;
|
|
3346
3340
|
if (t >= this.message.length)
|
|
3347
3341
|
throw Error("out of bound");
|
|
3348
|
-
var n =
|
|
3342
|
+
var n = Hr(this.message, t);
|
|
3349
3343
|
if (n === void 0)
|
|
3350
3344
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3351
3345
|
return n;
|
|
@@ -3364,7 +3358,7 @@ var ta = (
|
|
|
3364
3358
|
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);
|
|
3365
3359
|
}
|
|
3366
3360
|
}, e.prototype.bumpIf = function(t) {
|
|
3367
|
-
if (
|
|
3361
|
+
if (Fn(this.message, t, this.offset())) {
|
|
3368
3362
|
for (var n = 0; n < t.length; n++)
|
|
3369
3363
|
this.bump();
|
|
3370
3364
|
return !0;
|
|
@@ -3386,7 +3380,7 @@ var ta = (
|
|
|
3386
3380
|
break;
|
|
3387
3381
|
}
|
|
3388
3382
|
}, e.prototype.bumpSpace = function() {
|
|
3389
|
-
for (; !this.isEOF() &&
|
|
3383
|
+
for (; !this.isEOF() && Lr(this.char()); )
|
|
3390
3384
|
this.bump();
|
|
3391
3385
|
}, e.prototype.peek = function() {
|
|
3392
3386
|
if (this.isEOF())
|
|
@@ -3396,47 +3390,47 @@ var ta = (
|
|
|
3396
3390
|
}, e;
|
|
3397
3391
|
}()
|
|
3398
3392
|
);
|
|
3399
|
-
function
|
|
3393
|
+
function pn(e) {
|
|
3400
3394
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3401
3395
|
}
|
|
3402
|
-
function
|
|
3403
|
-
return
|
|
3396
|
+
function ea(e) {
|
|
3397
|
+
return pn(e) || e === 47;
|
|
3404
3398
|
}
|
|
3405
|
-
function
|
|
3399
|
+
function ta(e) {
|
|
3406
3400
|
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;
|
|
3407
3401
|
}
|
|
3408
|
-
function
|
|
3402
|
+
function Lr(e) {
|
|
3409
3403
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3410
3404
|
}
|
|
3411
|
-
function
|
|
3405
|
+
function na(e) {
|
|
3412
3406
|
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;
|
|
3413
3407
|
}
|
|
3414
|
-
function
|
|
3408
|
+
function gn(e) {
|
|
3415
3409
|
e.forEach(function(t) {
|
|
3416
|
-
if (delete t.location,
|
|
3410
|
+
if (delete t.location, _r(t) || xr(t))
|
|
3417
3411
|
for (var n in t.options)
|
|
3418
|
-
delete t.options[n].location,
|
|
3412
|
+
delete t.options[n].location, gn(t.options[n].value);
|
|
3419
3413
|
else
|
|
3420
|
-
|
|
3414
|
+
br(t) && Ar(t.style) || (vr(t) || Er(t)) && un(t.style) ? delete t.style.location : wr(t) && gn(t.children);
|
|
3421
3415
|
});
|
|
3422
3416
|
}
|
|
3423
|
-
function
|
|
3424
|
-
t === void 0 && (t = {}), t =
|
|
3425
|
-
var n = new
|
|
3417
|
+
function ra(e, t) {
|
|
3418
|
+
t === void 0 && (t = {}), t = I({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3419
|
+
var n = new Ji(e, t).parse();
|
|
3426
3420
|
if (n.err) {
|
|
3427
3421
|
var r = SyntaxError(S[n.err.kind]);
|
|
3428
3422
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3429
3423
|
}
|
|
3430
|
-
return t?.captureLocation ||
|
|
3424
|
+
return t?.captureLocation || gn(n.val), n.val;
|
|
3431
3425
|
}
|
|
3432
|
-
var
|
|
3426
|
+
var Ze;
|
|
3433
3427
|
(function(e) {
|
|
3434
3428
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3435
|
-
})(
|
|
3436
|
-
var
|
|
3429
|
+
})(Ze || (Ze = {}));
|
|
3430
|
+
var Dt = (
|
|
3437
3431
|
/** @class */
|
|
3438
3432
|
function(e) {
|
|
3439
|
-
|
|
3433
|
+
Rt(t, e);
|
|
3440
3434
|
function t(n, r, i) {
|
|
3441
3435
|
var a = e.call(this, n) || this;
|
|
3442
3436
|
return a.code = r, a.originalMessage = i, a;
|
|
@@ -3445,48 +3439,48 @@ var Mt = (
|
|
|
3445
3439
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3446
3440
|
}, t;
|
|
3447
3441
|
}(Error)
|
|
3448
|
-
),
|
|
3442
|
+
), Gn = (
|
|
3449
3443
|
/** @class */
|
|
3450
3444
|
function(e) {
|
|
3451
|
-
|
|
3445
|
+
Rt(t, e);
|
|
3452
3446
|
function t(n, r, i, a) {
|
|
3453
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3447
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ze.INVALID_VALUE, a) || this;
|
|
3454
3448
|
}
|
|
3455
3449
|
return t;
|
|
3456
|
-
}(
|
|
3457
|
-
),
|
|
3450
|
+
}(Dt)
|
|
3451
|
+
), ia = (
|
|
3458
3452
|
/** @class */
|
|
3459
3453
|
function(e) {
|
|
3460
|
-
|
|
3454
|
+
Rt(t, e);
|
|
3461
3455
|
function t(n, r, i) {
|
|
3462
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3456
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ze.INVALID_VALUE, i) || this;
|
|
3463
3457
|
}
|
|
3464
3458
|
return t;
|
|
3465
|
-
}(
|
|
3466
|
-
),
|
|
3459
|
+
}(Dt)
|
|
3460
|
+
), aa = (
|
|
3467
3461
|
/** @class */
|
|
3468
3462
|
function(e) {
|
|
3469
|
-
|
|
3463
|
+
Rt(t, e);
|
|
3470
3464
|
function t(n, r) {
|
|
3471
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3465
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ze.MISSING_VALUE, r) || this;
|
|
3472
3466
|
}
|
|
3473
3467
|
return t;
|
|
3474
|
-
}(
|
|
3468
|
+
}(Dt)
|
|
3475
3469
|
), J;
|
|
3476
3470
|
(function(e) {
|
|
3477
3471
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3478
3472
|
})(J || (J = {}));
|
|
3479
|
-
function
|
|
3473
|
+
function oa(e) {
|
|
3480
3474
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3481
3475
|
var r = t[t.length - 1];
|
|
3482
3476
|
return !r || r.type !== J.literal || n.type !== J.literal ? t.push(n) : r.value += n.value, t;
|
|
3483
3477
|
}, []);
|
|
3484
3478
|
}
|
|
3485
|
-
function
|
|
3479
|
+
function sa(e) {
|
|
3486
3480
|
return typeof e == "function";
|
|
3487
3481
|
}
|
|
3488
|
-
function
|
|
3489
|
-
if (e.length === 1 &&
|
|
3482
|
+
function Tt(e, t, n, r, i, a, o) {
|
|
3483
|
+
if (e.length === 1 && Rn(e[0]))
|
|
3490
3484
|
return [
|
|
3491
3485
|
{
|
|
3492
3486
|
type: J.literal,
|
|
@@ -3495,14 +3489,14 @@ function St(e, t, n, r, i, a, o) {
|
|
|
3495
3489
|
];
|
|
3496
3490
|
for (var l = [], s = 0, u = e; s < u.length; s++) {
|
|
3497
3491
|
var h = u[s];
|
|
3498
|
-
if (
|
|
3492
|
+
if (Rn(h)) {
|
|
3499
3493
|
l.push({
|
|
3500
3494
|
type: J.literal,
|
|
3501
3495
|
value: h.value
|
|
3502
3496
|
});
|
|
3503
3497
|
continue;
|
|
3504
3498
|
}
|
|
3505
|
-
if (
|
|
3499
|
+
if (Hi(h)) {
|
|
3506
3500
|
typeof a == "number" && l.push({
|
|
3507
3501
|
type: J.literal,
|
|
3508
3502
|
value: n.getNumberFormat(t).format(a)
|
|
@@ -3511,89 +3505,89 @@ function St(e, t, n, r, i, a, o) {
|
|
|
3511
3505
|
}
|
|
3512
3506
|
var f = h.value;
|
|
3513
3507
|
if (!(i && f in i))
|
|
3514
|
-
throw new
|
|
3508
|
+
throw new aa(f, o);
|
|
3515
3509
|
var c = i[f];
|
|
3516
|
-
if (
|
|
3510
|
+
if (Bi(h)) {
|
|
3517
3511
|
(!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), l.push({
|
|
3518
3512
|
type: typeof c == "string" ? J.literal : J.object,
|
|
3519
3513
|
value: c
|
|
3520
3514
|
});
|
|
3521
3515
|
continue;
|
|
3522
3516
|
}
|
|
3523
|
-
if (
|
|
3524
|
-
var g = typeof h.style == "string" ? r.date[h.style] :
|
|
3517
|
+
if (vr(h)) {
|
|
3518
|
+
var g = typeof h.style == "string" ? r.date[h.style] : un(h.style) ? h.style.parsedOptions : void 0;
|
|
3525
3519
|
l.push({
|
|
3526
3520
|
type: J.literal,
|
|
3527
3521
|
value: n.getDateTimeFormat(t, g).format(c)
|
|
3528
3522
|
});
|
|
3529
3523
|
continue;
|
|
3530
3524
|
}
|
|
3531
|
-
if (
|
|
3532
|
-
var g = typeof h.style == "string" ? r.time[h.style] :
|
|
3525
|
+
if (Er(h)) {
|
|
3526
|
+
var g = typeof h.style == "string" ? r.time[h.style] : un(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3533
3527
|
l.push({
|
|
3534
3528
|
type: J.literal,
|
|
3535
3529
|
value: n.getDateTimeFormat(t, g).format(c)
|
|
3536
3530
|
});
|
|
3537
3531
|
continue;
|
|
3538
3532
|
}
|
|
3539
|
-
if (
|
|
3540
|
-
var g = typeof h.style == "string" ? r.number[h.style] :
|
|
3533
|
+
if (br(h)) {
|
|
3534
|
+
var g = typeof h.style == "string" ? r.number[h.style] : Ar(h.style) ? h.style.parsedOptions : void 0;
|
|
3541
3535
|
g && g.scale && (c = c * (g.scale || 1)), l.push({
|
|
3542
3536
|
type: J.literal,
|
|
3543
3537
|
value: n.getNumberFormat(t, g).format(c)
|
|
3544
3538
|
});
|
|
3545
3539
|
continue;
|
|
3546
3540
|
}
|
|
3547
|
-
if (
|
|
3548
|
-
var b = h.children, y = h.value,
|
|
3549
|
-
if (!
|
|
3550
|
-
throw new
|
|
3551
|
-
var
|
|
3552
|
-
return
|
|
3541
|
+
if (wr(h)) {
|
|
3542
|
+
var b = h.children, y = h.value, P = i[y];
|
|
3543
|
+
if (!sa(P))
|
|
3544
|
+
throw new ia(y, "function", o);
|
|
3545
|
+
var O = Tt(b, t, n, r, i, a), R = P(O.map(function(M) {
|
|
3546
|
+
return M.value;
|
|
3553
3547
|
}));
|
|
3554
|
-
Array.isArray(
|
|
3548
|
+
Array.isArray(R) || (R = [R]), l.push.apply(l, R.map(function(M) {
|
|
3555
3549
|
return {
|
|
3556
|
-
type: typeof
|
|
3557
|
-
value:
|
|
3550
|
+
type: typeof M == "string" ? J.literal : J.object,
|
|
3551
|
+
value: M
|
|
3558
3552
|
};
|
|
3559
3553
|
}));
|
|
3560
3554
|
}
|
|
3561
|
-
if (
|
|
3555
|
+
if (_r(h)) {
|
|
3562
3556
|
var E = h.options[c] || h.options.other;
|
|
3563
3557
|
if (!E)
|
|
3564
|
-
throw new
|
|
3565
|
-
l.push.apply(l,
|
|
3558
|
+
throw new Gn(h.value, c, Object.keys(h.options), o);
|
|
3559
|
+
l.push.apply(l, Tt(E.value, t, n, r, i));
|
|
3566
3560
|
continue;
|
|
3567
3561
|
}
|
|
3568
|
-
if (
|
|
3562
|
+
if (xr(h)) {
|
|
3569
3563
|
var E = h.options["=".concat(c)];
|
|
3570
3564
|
if (!E) {
|
|
3571
3565
|
if (!Intl.PluralRules)
|
|
3572
|
-
throw new
|
|
3566
|
+
throw new Dt(`Intl.PluralRules is not available in this environment.
|
|
3573
3567
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3574
|
-
`,
|
|
3568
|
+
`, Ze.MISSING_INTL_API, o);
|
|
3575
3569
|
var j = n.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
|
|
3576
3570
|
E = h.options[j] || h.options.other;
|
|
3577
3571
|
}
|
|
3578
3572
|
if (!E)
|
|
3579
|
-
throw new
|
|
3580
|
-
l.push.apply(l,
|
|
3573
|
+
throw new Gn(h.value, c, Object.keys(h.options), o);
|
|
3574
|
+
l.push.apply(l, Tt(E.value, t, n, r, i, c - (h.offset || 0)));
|
|
3581
3575
|
continue;
|
|
3582
3576
|
}
|
|
3583
3577
|
}
|
|
3584
|
-
return
|
|
3578
|
+
return oa(l);
|
|
3585
3579
|
}
|
|
3586
|
-
function
|
|
3587
|
-
return t ?
|
|
3588
|
-
return n[r] =
|
|
3580
|
+
function la(e, t) {
|
|
3581
|
+
return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3582
|
+
return n[r] = I(I({}, e[r]), t[r] || {}), n;
|
|
3589
3583
|
}, {})) : e;
|
|
3590
3584
|
}
|
|
3591
|
-
function
|
|
3585
|
+
function ua(e, t) {
|
|
3592
3586
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3593
|
-
return n[r] =
|
|
3594
|
-
},
|
|
3587
|
+
return n[r] = la(e[r], t[r]), n;
|
|
3588
|
+
}, I({}, e)) : e;
|
|
3595
3589
|
}
|
|
3596
|
-
function
|
|
3590
|
+
function qt(e) {
|
|
3597
3591
|
return {
|
|
3598
3592
|
create: function() {
|
|
3599
3593
|
return {
|
|
@@ -3607,39 +3601,39 @@ function Qt(e) {
|
|
|
3607
3601
|
}
|
|
3608
3602
|
};
|
|
3609
3603
|
}
|
|
3610
|
-
function
|
|
3604
|
+
function ca(e) {
|
|
3611
3605
|
return e === void 0 && (e = {
|
|
3612
3606
|
number: {},
|
|
3613
3607
|
dateTime: {},
|
|
3614
3608
|
pluralRules: {}
|
|
3615
3609
|
}), {
|
|
3616
|
-
getNumberFormat:
|
|
3610
|
+
getNumberFormat: Xt(function() {
|
|
3617
3611
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3618
3612
|
n[r] = arguments[r];
|
|
3619
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3613
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Wt([void 0], n, !1)))();
|
|
3620
3614
|
}, {
|
|
3621
|
-
cache:
|
|
3622
|
-
strategy:
|
|
3615
|
+
cache: qt(e.number),
|
|
3616
|
+
strategy: zt.variadic
|
|
3623
3617
|
}),
|
|
3624
|
-
getDateTimeFormat:
|
|
3618
|
+
getDateTimeFormat: Xt(function() {
|
|
3625
3619
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3626
3620
|
n[r] = arguments[r];
|
|
3627
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3621
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Wt([void 0], n, !1)))();
|
|
3628
3622
|
}, {
|
|
3629
|
-
cache:
|
|
3630
|
-
strategy:
|
|
3623
|
+
cache: qt(e.dateTime),
|
|
3624
|
+
strategy: zt.variadic
|
|
3631
3625
|
}),
|
|
3632
|
-
getPluralRules:
|
|
3626
|
+
getPluralRules: Xt(function() {
|
|
3633
3627
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3634
3628
|
n[r] = arguments[r];
|
|
3635
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3629
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Wt([void 0], n, !1)))();
|
|
3636
3630
|
}, {
|
|
3637
|
-
cache:
|
|
3638
|
-
strategy:
|
|
3631
|
+
cache: qt(e.pluralRules),
|
|
3632
|
+
strategy: zt.variadic
|
|
3639
3633
|
})
|
|
3640
3634
|
};
|
|
3641
3635
|
}
|
|
3642
|
-
var
|
|
3636
|
+
var ha = (
|
|
3643
3637
|
/** @class */
|
|
3644
3638
|
function() {
|
|
3645
3639
|
function e(t, n, r, i) {
|
|
@@ -3658,7 +3652,7 @@ var pa = (
|
|
|
3658
3652
|
}, []);
|
|
3659
3653
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3660
3654
|
}, this.formatToParts = function(s) {
|
|
3661
|
-
return
|
|
3655
|
+
return Tt(a.ast, a.locales, a.formatters, a.formats, s, void 0, a.message);
|
|
3662
3656
|
}, this.resolvedOptions = function() {
|
|
3663
3657
|
var s;
|
|
3664
3658
|
return {
|
|
@@ -3671,13 +3665,13 @@ var pa = (
|
|
|
3671
3665
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3672
3666
|
var o = i || {};
|
|
3673
3667
|
o.formatters;
|
|
3674
|
-
var l =
|
|
3675
|
-
this.ast = e.__parse(t,
|
|
3668
|
+
var l = Ei(o, ["formatters"]);
|
|
3669
|
+
this.ast = e.__parse(t, I(I({}, l), { locale: this.resolvedLocale }));
|
|
3676
3670
|
} else
|
|
3677
3671
|
this.ast = t;
|
|
3678
3672
|
if (!Array.isArray(this.ast))
|
|
3679
3673
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3680
|
-
this.formats =
|
|
3674
|
+
this.formats = ua(e.formats, r), this.formatters = i && i.formatters || ca(this.formatterCache);
|
|
3681
3675
|
}
|
|
3682
3676
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3683
3677
|
get: function() {
|
|
@@ -3690,7 +3684,7 @@ var pa = (
|
|
|
3690
3684
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3691
3685
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3692
3686
|
}
|
|
3693
|
-
}, e.__parse =
|
|
3687
|
+
}, e.__parse = ra, e.formats = {
|
|
3694
3688
|
number: {
|
|
3695
3689
|
integer: {
|
|
3696
3690
|
maximumFractionDigits: 0
|
|
@@ -3751,7 +3745,7 @@ var pa = (
|
|
|
3751
3745
|
}, e;
|
|
3752
3746
|
}()
|
|
3753
3747
|
);
|
|
3754
|
-
function
|
|
3748
|
+
function fa(e, t) {
|
|
3755
3749
|
if (t == null)
|
|
3756
3750
|
return;
|
|
3757
3751
|
if (t in e)
|
|
@@ -3772,92 +3766,92 @@ function ga(e, t) {
|
|
|
3772
3766
|
r = void 0;
|
|
3773
3767
|
return r;
|
|
3774
3768
|
}
|
|
3775
|
-
const
|
|
3769
|
+
const He = {}, pa = (e, t, n) => n && (t in He || (He[t] = {}), e in He[t] || (He[t][e] = n), n), Nr = (e, t) => {
|
|
3776
3770
|
if (t == null)
|
|
3777
3771
|
return;
|
|
3778
|
-
if (t in
|
|
3779
|
-
return
|
|
3780
|
-
const n =
|
|
3772
|
+
if (t in He && e in He[t])
|
|
3773
|
+
return He[t][e];
|
|
3774
|
+
const n = kt(t);
|
|
3781
3775
|
for (let r = 0; r < n.length; r++) {
|
|
3782
|
-
const i = n[r], a =
|
|
3776
|
+
const i = n[r], a = da(i, e);
|
|
3783
3777
|
if (a)
|
|
3784
|
-
return
|
|
3778
|
+
return pa(e, t, a);
|
|
3785
3779
|
}
|
|
3786
3780
|
};
|
|
3787
|
-
let
|
|
3788
|
-
const
|
|
3789
|
-
function
|
|
3790
|
-
return
|
|
3781
|
+
let wn;
|
|
3782
|
+
const Qe = Ot({});
|
|
3783
|
+
function ga(e) {
|
|
3784
|
+
return wn[e] || null;
|
|
3791
3785
|
}
|
|
3792
|
-
function
|
|
3793
|
-
return e in
|
|
3786
|
+
function Pr(e) {
|
|
3787
|
+
return e in wn;
|
|
3794
3788
|
}
|
|
3795
|
-
function
|
|
3796
|
-
if (!
|
|
3789
|
+
function da(e, t) {
|
|
3790
|
+
if (!Pr(e))
|
|
3797
3791
|
return null;
|
|
3798
|
-
const n =
|
|
3799
|
-
return
|
|
3792
|
+
const n = ga(e);
|
|
3793
|
+
return fa(n, t);
|
|
3800
3794
|
}
|
|
3801
|
-
function
|
|
3795
|
+
function ma(e) {
|
|
3802
3796
|
if (e == null)
|
|
3803
3797
|
return;
|
|
3804
|
-
const t =
|
|
3798
|
+
const t = kt(e);
|
|
3805
3799
|
for (let n = 0; n < t.length; n++) {
|
|
3806
3800
|
const r = t[n];
|
|
3807
|
-
if (
|
|
3801
|
+
if (Pr(r))
|
|
3808
3802
|
return r;
|
|
3809
3803
|
}
|
|
3810
3804
|
}
|
|
3811
|
-
function
|
|
3812
|
-
delete
|
|
3805
|
+
function Or(e, ...t) {
|
|
3806
|
+
delete He[e], Qe.update((n) => (n[e] = vi.all([n[e] || {}, ...t]), n));
|
|
3813
3807
|
}
|
|
3814
|
-
|
|
3815
|
-
[
|
|
3808
|
+
Ke(
|
|
3809
|
+
[Qe],
|
|
3816
3810
|
([e]) => Object.keys(e)
|
|
3817
3811
|
);
|
|
3818
|
-
|
|
3819
|
-
const
|
|
3820
|
-
function
|
|
3821
|
-
|
|
3812
|
+
Qe.subscribe((e) => wn = e);
|
|
3813
|
+
const St = {};
|
|
3814
|
+
function ya(e, t) {
|
|
3815
|
+
St[e].delete(t), St[e].size === 0 && delete St[e];
|
|
3822
3816
|
}
|
|
3823
|
-
function
|
|
3824
|
-
return
|
|
3817
|
+
function Rr(e) {
|
|
3818
|
+
return St[e];
|
|
3825
3819
|
}
|
|
3826
|
-
function
|
|
3827
|
-
return
|
|
3828
|
-
const n =
|
|
3820
|
+
function ba(e) {
|
|
3821
|
+
return kt(e).map((t) => {
|
|
3822
|
+
const n = Rr(t);
|
|
3829
3823
|
return [t, n ? [...n] : []];
|
|
3830
3824
|
}).filter(([, t]) => t.length > 0);
|
|
3831
3825
|
}
|
|
3832
|
-
function
|
|
3833
|
-
return e == null ? !1 :
|
|
3826
|
+
function dn(e) {
|
|
3827
|
+
return e == null ? !1 : kt(e).some(
|
|
3834
3828
|
(t) => {
|
|
3835
3829
|
var n;
|
|
3836
|
-
return (n =
|
|
3830
|
+
return (n = Rr(t)) == null ? void 0 : n.size;
|
|
3837
3831
|
}
|
|
3838
3832
|
);
|
|
3839
3833
|
}
|
|
3840
|
-
function
|
|
3834
|
+
function va(e, t) {
|
|
3841
3835
|
return Promise.all(
|
|
3842
|
-
t.map((r) => (
|
|
3843
|
-
).then((r) =>
|
|
3844
|
-
}
|
|
3845
|
-
const
|
|
3846
|
-
function
|
|
3847
|
-
if (!
|
|
3848
|
-
return e in
|
|
3849
|
-
const t =
|
|
3850
|
-
return
|
|
3836
|
+
t.map((r) => (ya(e, r), r().then((i) => i.default || i)))
|
|
3837
|
+
).then((r) => Or(e, ...r));
|
|
3838
|
+
}
|
|
3839
|
+
const ot = {};
|
|
3840
|
+
function Dr(e) {
|
|
3841
|
+
if (!dn(e))
|
|
3842
|
+
return e in ot ? ot[e] : Promise.resolve();
|
|
3843
|
+
const t = ba(e);
|
|
3844
|
+
return ot[e] = Promise.all(
|
|
3851
3845
|
t.map(
|
|
3852
|
-
([n, r]) =>
|
|
3846
|
+
([n, r]) => va(n, r)
|
|
3853
3847
|
)
|
|
3854
3848
|
).then(() => {
|
|
3855
|
-
if (
|
|
3856
|
-
return
|
|
3857
|
-
delete
|
|
3858
|
-
}),
|
|
3849
|
+
if (dn(e))
|
|
3850
|
+
return Dr(e);
|
|
3851
|
+
delete ot[e];
|
|
3852
|
+
}), ot[e];
|
|
3859
3853
|
}
|
|
3860
|
-
const
|
|
3854
|
+
const Ea = {
|
|
3861
3855
|
number: {
|
|
3862
3856
|
scientific: { notation: "scientific" },
|
|
3863
3857
|
engineering: { notation: "engineering" },
|
|
@@ -3886,150 +3880,150 @@ const xa = {
|
|
|
3886
3880
|
timeZoneName: "short"
|
|
3887
3881
|
}
|
|
3888
3882
|
}
|
|
3889
|
-
},
|
|
3883
|
+
}, _a = {
|
|
3890
3884
|
fallbackLocale: null,
|
|
3891
3885
|
loadingDelay: 200,
|
|
3892
|
-
formats:
|
|
3886
|
+
formats: Ea,
|
|
3893
3887
|
warnOnMissingMessages: !0,
|
|
3894
3888
|
handleMissingMessage: void 0,
|
|
3895
3889
|
ignoreTag: !0
|
|
3896
|
-
},
|
|
3897
|
-
function
|
|
3898
|
-
return
|
|
3890
|
+
}, xa = _a;
|
|
3891
|
+
function qe() {
|
|
3892
|
+
return xa;
|
|
3899
3893
|
}
|
|
3900
|
-
const
|
|
3901
|
-
var
|
|
3894
|
+
const Kt = Ot(!1);
|
|
3895
|
+
var wa = Object.defineProperty, Aa = Object.defineProperties, Ca = Object.getOwnPropertyDescriptors, $n = Object.getOwnPropertySymbols, Ta = Object.prototype.hasOwnProperty, Sa = Object.prototype.propertyIsEnumerable, jn = (e, t, n) => t in e ? wa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ba = (e, t) => {
|
|
3902
3896
|
for (var n in t || (t = {}))
|
|
3903
|
-
|
|
3904
|
-
if (
|
|
3905
|
-
for (var n of
|
|
3906
|
-
|
|
3897
|
+
Ta.call(t, n) && jn(e, n, t[n]);
|
|
3898
|
+
if ($n)
|
|
3899
|
+
for (var n of $n(t))
|
|
3900
|
+
Sa.call(t, n) && jn(e, n, t[n]);
|
|
3907
3901
|
return e;
|
|
3908
|
-
},
|
|
3909
|
-
let
|
|
3910
|
-
const
|
|
3911
|
-
function
|
|
3902
|
+
}, Ha = (e, t) => Aa(e, Ca(t));
|
|
3903
|
+
let mn;
|
|
3904
|
+
const Lt = Ot(null);
|
|
3905
|
+
function Wn(e) {
|
|
3912
3906
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3913
3907
|
}
|
|
3914
|
-
function
|
|
3915
|
-
const n =
|
|
3916
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3908
|
+
function kt(e, t = qe().fallbackLocale) {
|
|
3909
|
+
const n = Wn(e);
|
|
3910
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Wn(t)])] : n;
|
|
3917
3911
|
}
|
|
3918
|
-
function
|
|
3919
|
-
return
|
|
3912
|
+
function Re() {
|
|
3913
|
+
return mn ?? void 0;
|
|
3920
3914
|
}
|
|
3921
|
-
|
|
3922
|
-
|
|
3915
|
+
Lt.subscribe((e) => {
|
|
3916
|
+
mn = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3923
3917
|
});
|
|
3924
|
-
const
|
|
3925
|
-
if (e &&
|
|
3926
|
-
const { loadingDelay: t } =
|
|
3918
|
+
const Ia = (e) => {
|
|
3919
|
+
if (e && ma(e) && dn(e)) {
|
|
3920
|
+
const { loadingDelay: t } = qe();
|
|
3927
3921
|
let n;
|
|
3928
|
-
return typeof window < "u" &&
|
|
3929
|
-
() =>
|
|
3922
|
+
return typeof window < "u" && Re() != null && t ? n = window.setTimeout(
|
|
3923
|
+
() => Kt.set(!0),
|
|
3930
3924
|
t
|
|
3931
|
-
) :
|
|
3932
|
-
|
|
3925
|
+
) : Kt.set(!0), Dr(e).then(() => {
|
|
3926
|
+
Lt.set(e);
|
|
3933
3927
|
}).finally(() => {
|
|
3934
|
-
clearTimeout(n),
|
|
3928
|
+
clearTimeout(n), Kt.set(!1);
|
|
3935
3929
|
});
|
|
3936
3930
|
}
|
|
3937
|
-
return
|
|
3938
|
-
},
|
|
3939
|
-
set:
|
|
3940
|
-
}),
|
|
3931
|
+
return Lt.set(e);
|
|
3932
|
+
}, Ie = Ha(Ba({}, Lt), {
|
|
3933
|
+
set: Ia
|
|
3934
|
+
}), Mt = (e) => {
|
|
3941
3935
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3942
3936
|
return (r) => {
|
|
3943
3937
|
const i = JSON.stringify(r);
|
|
3944
3938
|
return i in t ? t[i] : t[i] = e(r);
|
|
3945
3939
|
};
|
|
3946
3940
|
};
|
|
3947
|
-
var
|
|
3941
|
+
var La = Object.defineProperty, Nt = Object.getOwnPropertySymbols, kr = Object.prototype.hasOwnProperty, Mr = Object.prototype.propertyIsEnumerable, Xn = (e, t, n) => t in e ? La(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, An = (e, t) => {
|
|
3948
3942
|
for (var n in t || (t = {}))
|
|
3949
|
-
|
|
3950
|
-
if (
|
|
3951
|
-
for (var n of
|
|
3952
|
-
|
|
3943
|
+
kr.call(t, n) && Xn(e, n, t[n]);
|
|
3944
|
+
if (Nt)
|
|
3945
|
+
for (var n of Nt(t))
|
|
3946
|
+
Mr.call(t, n) && Xn(e, n, t[n]);
|
|
3953
3947
|
return e;
|
|
3954
|
-
},
|
|
3948
|
+
}, Ye = (e, t) => {
|
|
3955
3949
|
var n = {};
|
|
3956
3950
|
for (var r in e)
|
|
3957
|
-
|
|
3958
|
-
if (e != null &&
|
|
3959
|
-
for (var r of
|
|
3960
|
-
t.indexOf(r) < 0 &&
|
|
3951
|
+
kr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3952
|
+
if (e != null && Nt)
|
|
3953
|
+
for (var r of Nt(e))
|
|
3954
|
+
t.indexOf(r) < 0 && Mr.call(e, r) && (n[r] = e[r]);
|
|
3961
3955
|
return n;
|
|
3962
3956
|
};
|
|
3963
|
-
const
|
|
3964
|
-
const { formats: n } =
|
|
3957
|
+
const ft = (e, t) => {
|
|
3958
|
+
const { formats: n } = qe();
|
|
3965
3959
|
if (e in n && t in n[e])
|
|
3966
3960
|
return n[e][t];
|
|
3967
3961
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3968
|
-
},
|
|
3962
|
+
}, Na = Mt(
|
|
3969
3963
|
(e) => {
|
|
3970
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3964
|
+
var t = e, { locale: n, format: r } = t, i = Ye(t, ["locale", "format"]);
|
|
3971
3965
|
if (n == null)
|
|
3972
3966
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3973
|
-
return r && (i =
|
|
3967
|
+
return r && (i = ft("number", r)), new Intl.NumberFormat(n, i);
|
|
3974
3968
|
}
|
|
3975
|
-
),
|
|
3969
|
+
), Pa = Mt(
|
|
3976
3970
|
(e) => {
|
|
3977
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3971
|
+
var t = e, { locale: n, format: r } = t, i = Ye(t, ["locale", "format"]);
|
|
3978
3972
|
if (n == null)
|
|
3979
3973
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3980
|
-
return r ? i =
|
|
3974
|
+
return r ? i = ft("date", r) : Object.keys(i).length === 0 && (i = ft("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3981
3975
|
}
|
|
3982
|
-
),
|
|
3976
|
+
), Oa = Mt(
|
|
3983
3977
|
(e) => {
|
|
3984
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3978
|
+
var t = e, { locale: n, format: r } = t, i = Ye(t, ["locale", "format"]);
|
|
3985
3979
|
if (n == null)
|
|
3986
3980
|
throw new Error(
|
|
3987
3981
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3988
3982
|
);
|
|
3989
|
-
return r ? i =
|
|
3983
|
+
return r ? i = ft("time", r) : Object.keys(i).length === 0 && (i = ft("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3990
3984
|
}
|
|
3991
|
-
),
|
|
3985
|
+
), Ra = (e = {}) => {
|
|
3992
3986
|
var t = e, {
|
|
3993
|
-
locale: n =
|
|
3994
|
-
} = t, r =
|
|
3987
|
+
locale: n = Re()
|
|
3988
|
+
} = t, r = Ye(t, [
|
|
3995
3989
|
"locale"
|
|
3996
3990
|
]);
|
|
3997
|
-
return
|
|
3998
|
-
},
|
|
3991
|
+
return Na(An({ locale: n }, r));
|
|
3992
|
+
}, Da = (e = {}) => {
|
|
3999
3993
|
var t = e, {
|
|
4000
|
-
locale: n =
|
|
4001
|
-
} = t, r =
|
|
3994
|
+
locale: n = Re()
|
|
3995
|
+
} = t, r = Ye(t, [
|
|
4002
3996
|
"locale"
|
|
4003
3997
|
]);
|
|
4004
|
-
return
|
|
4005
|
-
},
|
|
3998
|
+
return Pa(An({ locale: n }, r));
|
|
3999
|
+
}, ka = (e = {}) => {
|
|
4006
4000
|
var t = e, {
|
|
4007
|
-
locale: n =
|
|
4008
|
-
} = t, r =
|
|
4001
|
+
locale: n = Re()
|
|
4002
|
+
} = t, r = Ye(t, [
|
|
4009
4003
|
"locale"
|
|
4010
4004
|
]);
|
|
4011
|
-
return
|
|
4012
|
-
},
|
|
4005
|
+
return Oa(An({ locale: n }, r));
|
|
4006
|
+
}, Ma = Mt(
|
|
4013
4007
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4014
|
-
(e, t =
|
|
4015
|
-
ignoreTag:
|
|
4008
|
+
(e, t = Re()) => new ha(e, t, qe().formats, {
|
|
4009
|
+
ignoreTag: qe().ignoreTag
|
|
4016
4010
|
})
|
|
4017
|
-
),
|
|
4011
|
+
), Fa = (e, t = {}) => {
|
|
4018
4012
|
var n, r, i, a;
|
|
4019
4013
|
let o = t;
|
|
4020
4014
|
typeof e == "object" && (o = e, e = o.id);
|
|
4021
4015
|
const {
|
|
4022
4016
|
values: l,
|
|
4023
|
-
locale: s =
|
|
4017
|
+
locale: s = Re(),
|
|
4024
4018
|
default: u
|
|
4025
4019
|
} = o;
|
|
4026
4020
|
if (s == null)
|
|
4027
4021
|
throw new Error(
|
|
4028
4022
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4029
4023
|
);
|
|
4030
|
-
let h =
|
|
4024
|
+
let h = Nr(e, s);
|
|
4031
4025
|
if (!h)
|
|
4032
|
-
h = (a = (i = (r = (n =
|
|
4026
|
+
h = (a = (i = (r = (n = qe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: s, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
|
|
4033
4027
|
else if (typeof h != "string")
|
|
4034
4028
|
return console.warn(
|
|
4035
4029
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -4038,7 +4032,7 @@ const pt = (e, t) => {
|
|
|
4038
4032
|
return h;
|
|
4039
4033
|
let f = h;
|
|
4040
4034
|
try {
|
|
4041
|
-
f =
|
|
4035
|
+
f = Ma(h, s).format(l);
|
|
4042
4036
|
} catch (c) {
|
|
4043
4037
|
c instanceof Error && console.warn(
|
|
4044
4038
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4046,23 +4040,23 @@ const pt = (e, t) => {
|
|
|
4046
4040
|
);
|
|
4047
4041
|
}
|
|
4048
4042
|
return f;
|
|
4049
|
-
},
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
function
|
|
4055
|
-
|
|
4056
|
-
n == null && (
|
|
4043
|
+
}, Va = (e, t) => ka(t).format(e), Ua = (e, t) => Da(t).format(e), Ga = (e, t) => Ra(t).format(e), $a = (e, t = Re()) => Nr(e, t), ja = Ke([Ie, Qe], () => Fa);
|
|
4044
|
+
Ke([Ie], () => Va);
|
|
4045
|
+
Ke([Ie], () => Ua);
|
|
4046
|
+
Ke([Ie], () => Ga);
|
|
4047
|
+
Ke([Ie, Qe], () => $a);
|
|
4048
|
+
function Wa({ withLocale: e, translations: t }) {
|
|
4049
|
+
Ie.subscribe((n) => {
|
|
4050
|
+
n == null && (Qe.set(t), Ie.set(e));
|
|
4057
4051
|
});
|
|
4058
4052
|
}
|
|
4059
|
-
function
|
|
4060
|
-
|
|
4053
|
+
function zn(e, t) {
|
|
4054
|
+
Or(e, t);
|
|
4061
4055
|
}
|
|
4062
|
-
function
|
|
4063
|
-
|
|
4056
|
+
function Xa(e) {
|
|
4057
|
+
Ie.set(e);
|
|
4064
4058
|
}
|
|
4065
|
-
const
|
|
4059
|
+
const D = Vr(ja), Zn = {
|
|
4066
4060
|
en: {
|
|
4067
4061
|
vaultExchange: "Vault Exchange",
|
|
4068
4062
|
debitPlaceHolder: "Debit amount",
|
|
@@ -4171,7 +4165,7 @@ const R = Gr(Xa), Kn = {
|
|
|
4171
4165
|
10114: "Kullanıcı hesabı aktif değil.",
|
|
4172
4166
|
10115: "İşlem niyeti bulunamadı."
|
|
4173
4167
|
}
|
|
4174
|
-
},
|
|
4168
|
+
}, za = {
|
|
4175
4169
|
"1INCH": "",
|
|
4176
4170
|
AAVE: "",
|
|
4177
4171
|
ADA: "₳",
|
|
@@ -4447,40 +4441,40 @@ const R = Gr(Xa), Kn = {
|
|
|
4447
4441
|
ZMK: "",
|
|
4448
4442
|
ZMW: "",
|
|
4449
4443
|
ZWD: "Z$"
|
|
4450
|
-
},
|
|
4444
|
+
}, Za = 6e3, qa = {
|
|
4451
4445
|
InvalidSession: "Invalid session"
|
|
4452
4446
|
}, Z = {
|
|
4453
4447
|
BalanceError: "BalanceError",
|
|
4454
4448
|
CheckWalletExchangeError: "CheckWalletExchangeError",
|
|
4455
4449
|
WalletExchangeError: "WalletExchangeError",
|
|
4456
4450
|
CurrenciesError: "CurrenciesError"
|
|
4457
|
-
},
|
|
4451
|
+
}, qn = {
|
|
4458
4452
|
ResetVaultWidget: "ResetVaultWidget",
|
|
4459
4453
|
CloseVaultWidget: "CloseVaultWidget"
|
|
4460
|
-
},
|
|
4454
|
+
}, Qt = {
|
|
4461
4455
|
VaultWidgetReset: "VaultWidgetReset",
|
|
4462
4456
|
VaultWidgetClosed: "VaultWidgetClosed",
|
|
4463
4457
|
VaultDropdownToggled: "VaultDropdownToggled"
|
|
4464
|
-
},
|
|
4458
|
+
}, Kn = {
|
|
4465
4459
|
Real: "Real",
|
|
4466
4460
|
Vault: "Vault"
|
|
4467
|
-
},
|
|
4461
|
+
}, Te = {
|
|
4468
4462
|
success: "success",
|
|
4469
4463
|
error: "error"
|
|
4470
|
-
},
|
|
4464
|
+
}, Yt = String(Number.MAX_SAFE_INTEGER).length + 1, wt = {
|
|
4471
4465
|
ArrowDown: "ArrowDown",
|
|
4472
4466
|
ArrowUp: "ArrowUp",
|
|
4473
4467
|
Enter: "Enter",
|
|
4474
4468
|
Escape: "Escape"
|
|
4475
|
-
},
|
|
4469
|
+
}, Se = {
|
|
4476
4470
|
true: "true"
|
|
4477
|
-
},
|
|
4471
|
+
}, Qn = {
|
|
4478
4472
|
Fiat: "Fiat",
|
|
4479
4473
|
CryptoCurrency: "CryptoCurrency"
|
|
4480
|
-
},
|
|
4474
|
+
}, Ka = {
|
|
4481
4475
|
Credit: "Credit"
|
|
4482
4476
|
};
|
|
4483
|
-
function
|
|
4477
|
+
function Qa(e, t) {
|
|
4484
4478
|
let n;
|
|
4485
4479
|
return function(...r) {
|
|
4486
4480
|
n && clearTimeout(n), n = setTimeout(() => {
|
|
@@ -4488,14 +4482,14 @@ function Ja(e, t) {
|
|
|
4488
4482
|
}, t);
|
|
4489
4483
|
};
|
|
4490
4484
|
}
|
|
4491
|
-
const
|
|
4485
|
+
const Yn = (e, t = null, n = 2) => {
|
|
4492
4486
|
try {
|
|
4493
4487
|
return JSON.stringify(e, t, n);
|
|
4494
4488
|
} catch (r) {
|
|
4495
4489
|
return console.warn("Failed to stringify:", r), null;
|
|
4496
4490
|
}
|
|
4497
4491
|
};
|
|
4498
|
-
function
|
|
4492
|
+
function Ya(e) {
|
|
4499
4493
|
const t = (n) => {
|
|
4500
4494
|
e.contains(n.target) || e.dispatchEvent(new CustomEvent("outclick"));
|
|
4501
4495
|
};
|
|
@@ -4505,14 +4499,14 @@ function eo(e) {
|
|
|
4505
4499
|
}
|
|
4506
4500
|
};
|
|
4507
4501
|
}
|
|
4508
|
-
function
|
|
4509
|
-
|
|
4502
|
+
function Ja(e) {
|
|
4503
|
+
bn(e, "svelte-1g9pqha", ".selectWrapper.svelte-1g9pqha.svelte-1g9pqha{position:relative;min-width:96px;font-family:inherit;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px)}.selectButton.svelte-1g9pqha.svelte-1g9pqha{width:100%;height:100%;cursor:pointer;text-align:left;border:unset;display:flex;align-items:center;justify-content:space-between;color:var(--emw--select-typography, #595959);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));padding:0 var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);border-radius:var(--emw--border-radius-small, 8px);font-family:inherit}.selectButton.svelte-1g9pqha.svelte-1g9pqha:focus-visible{outline:none}.label.svelte-1g9pqha.svelte-1g9pqha{display:flex;align-items:center}.selectDropdownWrapper.svelte-1g9pqha.svelte-1g9pqha{position:absolute;top:calc(100% + 2px);left:0;right:0;overflow:hidden;z-index:100;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px)}.selectDropdown.svelte-1g9pqha.svelte-1g9pqha{display:flex;flex-direction:column;gap:4px;max-height:150px;overflow-y:auto;scrollbar-width:thin}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha{height:24px;flex:0 0 24px;display:flex;align-items:center;;;padding:0 var(--emw--spacing-small, 10px);cursor:pointer;transition:all 0.3s ease}.selectDropdown.svelte-1g9pqha li.svelte-1g9pqha:hover,.selectDropdown.svelte-1g9pqha li.active.svelte-1g9pqha{background:var(--emw--selected-option, #f0f0f0)}.symbol.svelte-1g9pqha.svelte-1g9pqha{display:inline-flex;width:14px;height:14px;border-radius:50%;align-items:center;justify-content:center;line-height:0;margin-right:5px;overflow:hidden;background:var(--emw--symbol-background, #595959);font-size:var(--emw--font-size-small, 12px);color:var(--emw--symbol-typography, #fff)}");
|
|
4510
4504
|
}
|
|
4511
|
-
function
|
|
4505
|
+
function Jn(e, t, n) {
|
|
4512
4506
|
const r = e.slice();
|
|
4513
4507
|
return r[16] = t[n], r[18] = n, r;
|
|
4514
4508
|
}
|
|
4515
|
-
function
|
|
4509
|
+
function er(e) {
|
|
4516
4510
|
let t, n = (
|
|
4517
4511
|
/*selected*/
|
|
4518
4512
|
(e[0]?.symbol || "") + ""
|
|
@@ -4534,13 +4528,13 @@ function nr(e) {
|
|
|
4534
4528
|
}
|
|
4535
4529
|
};
|
|
4536
4530
|
}
|
|
4537
|
-
function
|
|
4538
|
-
let t, n, r =
|
|
4531
|
+
function tr(e) {
|
|
4532
|
+
let t, n, r = Ht(
|
|
4539
4533
|
/*options*/
|
|
4540
4534
|
e[1]
|
|
4541
4535
|
), i = [];
|
|
4542
4536
|
for (let a = 0; a < r.length; a += 1)
|
|
4543
|
-
i[a] =
|
|
4537
|
+
i[a] = nr(Jn(e, r, a));
|
|
4544
4538
|
return {
|
|
4545
4539
|
c() {
|
|
4546
4540
|
t = w("div"), n = w("ul");
|
|
@@ -4557,14 +4551,14 @@ function rr(e) {
|
|
|
4557
4551
|
p(a, o) {
|
|
4558
4552
|
if (o & /*options, selected, activeIndex, handleChange*/
|
|
4559
4553
|
547) {
|
|
4560
|
-
r =
|
|
4554
|
+
r = Ht(
|
|
4561
4555
|
/*options*/
|
|
4562
4556
|
a[1]
|
|
4563
4557
|
);
|
|
4564
4558
|
let l;
|
|
4565
4559
|
for (l = 0; l < r.length; l += 1) {
|
|
4566
|
-
const s =
|
|
4567
|
-
i[l] ? i[l].p(s, o) : (i[l] =
|
|
4560
|
+
const s = Jn(a, r, l);
|
|
4561
|
+
i[l] ? i[l].p(s, o) : (i[l] = nr(s), i[l].c(), i[l].m(n, null));
|
|
4568
4562
|
}
|
|
4569
4563
|
for (; l < i.length; l += 1)
|
|
4570
4564
|
i[l].d(1);
|
|
@@ -4572,11 +4566,11 @@ function rr(e) {
|
|
|
4572
4566
|
}
|
|
4573
4567
|
},
|
|
4574
4568
|
d(a) {
|
|
4575
|
-
a && A(t),
|
|
4569
|
+
a && A(t), cr(i, a), e[14](null);
|
|
4576
4570
|
}
|
|
4577
4571
|
};
|
|
4578
4572
|
}
|
|
4579
|
-
function
|
|
4573
|
+
function nr(e) {
|
|
4580
4574
|
let t, n, r = (
|
|
4581
4575
|
/*option*/
|
|
4582
4576
|
e[16]?.symbol + ""
|
|
@@ -4586,7 +4580,7 @@ function ir(e) {
|
|
|
4586
4580
|
), l, s, u, h, f;
|
|
4587
4581
|
return {
|
|
4588
4582
|
c() {
|
|
4589
|
-
t = w("li"), n = w("span"), i = z(r), a =
|
|
4583
|
+
t = w("li"), n = w("span"), i = z(r), a = L(), l = z(o), s = L(), m(n, "class", "symbol svelte-1g9pqha"), m(t, "role", "option"), m(t, "aria-selected", u = /*option*/
|
|
4590
4584
|
e[16]?.currency === /*selected*/
|
|
4591
4585
|
e[0]?.currency || /*index*/
|
|
4592
4586
|
e[18] === /*activeIndex*/
|
|
@@ -4602,9 +4596,9 @@ function ir(e) {
|
|
|
4602
4596
|
},
|
|
4603
4597
|
m(c, g) {
|
|
4604
4598
|
T(c, t, g), v(t, n), v(n, i), v(t, a), v(t, l), v(t, s), h || (f = [
|
|
4605
|
-
re(t, "keydown",
|
|
4599
|
+
re(t, "keydown", to),
|
|
4606
4600
|
re(t, "click", function() {
|
|
4607
|
-
|
|
4601
|
+
pt(
|
|
4608
4602
|
/*handleChange*/
|
|
4609
4603
|
e[9](
|
|
4610
4604
|
/*option*/
|
|
@@ -4643,11 +4637,11 @@ function ir(e) {
|
|
|
4643
4637
|
);
|
|
4644
4638
|
},
|
|
4645
4639
|
d(c) {
|
|
4646
|
-
c && A(t), h = !1,
|
|
4640
|
+
c && A(t), h = !1, _e(f);
|
|
4647
4641
|
}
|
|
4648
4642
|
};
|
|
4649
4643
|
}
|
|
4650
|
-
function
|
|
4644
|
+
function eo(e) {
|
|
4651
4645
|
let t, n, r, i, a = (
|
|
4652
4646
|
/*selected*/
|
|
4653
4647
|
(e[0]?.currency || /*placeholder*/
|
|
@@ -4655,14 +4649,14 @@ function no(e) {
|
|
|
4655
4649
|
), o, l, s, u, h, f, c = (
|
|
4656
4650
|
/*selected*/
|
|
4657
4651
|
e[0]?.symbol && /*withSymbol*/
|
|
4658
|
-
e[3] ===
|
|
4652
|
+
e[3] === Se.true && er(e)
|
|
4659
4653
|
), g = (
|
|
4660
4654
|
/*open*/
|
|
4661
|
-
e[7] &&
|
|
4655
|
+
e[7] && tr(e)
|
|
4662
4656
|
);
|
|
4663
4657
|
return {
|
|
4664
4658
|
c() {
|
|
4665
|
-
t = w("div"), n = w("button"), r = w("span"), c && c.c(), i =
|
|
4659
|
+
t = w("div"), n = w("button"), r = w("span"), c && c.c(), i = L(), o = z(a), l = L(), s = w("span"), s.innerHTML = '<svg width="12" height="7" viewBox="0 0 12 7" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z" fill="currentColor"></path></svg>', u = L(), g && g.c(), m(r, "class", "label svelte-1g9pqha"), m(s, "class", "arrow"), le(
|
|
4666
4660
|
s,
|
|
4667
4661
|
"open",
|
|
4668
4662
|
/*open*/
|
|
@@ -4683,11 +4677,11 @@ function no(e) {
|
|
|
4683
4677
|
/*handleKeyDown*/
|
|
4684
4678
|
e[11]
|
|
4685
4679
|
),
|
|
4686
|
-
re(n, "click",
|
|
4680
|
+
re(n, "click", Wr(
|
|
4687
4681
|
/*handleToggleDropdown*/
|
|
4688
4682
|
e[8]
|
|
4689
4683
|
)),
|
|
4690
|
-
|
|
4684
|
+
Ur(Ya.call(null, t)),
|
|
4691
4685
|
re(
|
|
4692
4686
|
t,
|
|
4693
4687
|
"outclick",
|
|
@@ -4699,7 +4693,7 @@ function no(e) {
|
|
|
4699
4693
|
p(b, [y]) {
|
|
4700
4694
|
/*selected*/
|
|
4701
4695
|
b[0]?.symbol && /*withSymbol*/
|
|
4702
|
-
b[3] ===
|
|
4696
|
+
b[3] === Se.true ? c ? c.p(b, y) : (c = er(b), c.c(), c.m(r, i)) : c && (c.d(1), c = null), y & /*selected, placeholder*/
|
|
4703
4697
|
5 && a !== (a = /*selected*/
|
|
4704
4698
|
(b[0]?.currency || /*placeholder*/
|
|
4705
4699
|
b[2]) + "") && ie(o, a), y & /*open*/
|
|
@@ -4717,18 +4711,18 @@ function no(e) {
|
|
|
4717
4711
|
), y & /*disabled*/
|
|
4718
4712
|
16 && (n.disabled = /*disabled*/
|
|
4719
4713
|
b[4]), /*open*/
|
|
4720
|
-
b[7] ? g ? g.p(b, y) : (g =
|
|
4714
|
+
b[7] ? g ? g.p(b, y) : (g = tr(b), g.c(), g.m(t, null)) : g && (g.d(1), g = null);
|
|
4721
4715
|
},
|
|
4722
4716
|
i: B,
|
|
4723
4717
|
o: B,
|
|
4724
4718
|
d(b) {
|
|
4725
|
-
b && A(t), c && c.d(), g && g.d(), h = !1,
|
|
4719
|
+
b && A(t), c && c.d(), g && g.d(), h = !1, _e(f);
|
|
4726
4720
|
}
|
|
4727
4721
|
};
|
|
4728
4722
|
}
|
|
4729
|
-
const
|
|
4730
|
-
function
|
|
4731
|
-
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: a =
|
|
4723
|
+
const to = (e) => e.preventDefault();
|
|
4724
|
+
function no(e, t, n) {
|
|
4725
|
+
let { options: r = [] } = t, { selected: i = null } = t, { placeholder: a = D("select") } = t, { withSymbol: o = "true" } = t, { id: l } = t, { disabled: s = !1 } = t, { onChange: u = () => {
|
|
4732
4726
|
} } = t, h = -1, f, c = !1;
|
|
4733
4727
|
const g = () => {
|
|
4734
4728
|
r.length !== 0 && (n(7, c = !c), c && (n(5, h = r.findIndex((E) => E?.currency === i?.currency)), setTimeout(() => f?.focus(), 0), window.dispatchEvent(new CustomEvent("dropdown-opened", { detail: l }))));
|
|
@@ -4736,18 +4730,18 @@ function io(e, t, n) {
|
|
|
4736
4730
|
E.detail !== l && c && n(7, c = !1);
|
|
4737
4731
|
}, y = (E, j) => () => {
|
|
4738
4732
|
n(7, c = !1), n(0, i = E), u && typeof u == "function" && u(E, j);
|
|
4739
|
-
},
|
|
4733
|
+
}, P = () => {
|
|
4740
4734
|
n(7, c = !1);
|
|
4741
|
-
},
|
|
4742
|
-
c && (E.key ===
|
|
4735
|
+
}, O = (E) => {
|
|
4736
|
+
c && (E.key === wt.ArrowDown ? (E.preventDefault(), n(5, h = (h + 1) % r.length)) : E.key === wt.ArrowUp ? (E.preventDefault(), n(5, h = (h - 1 + r.length) % r.length)) : E.key === wt.Enter ? (E.preventDefault(), y(i, h)()) : E.key === wt.Escape && n(7, c = !1));
|
|
4743
4737
|
};
|
|
4744
|
-
|
|
4738
|
+
fr(() => {
|
|
4745
4739
|
window.addEventListener("dropdown-opened", b);
|
|
4746
|
-
}),
|
|
4740
|
+
}), Zr(() => {
|
|
4747
4741
|
window.removeEventListener("dropdown-opened", b);
|
|
4748
4742
|
});
|
|
4749
|
-
function
|
|
4750
|
-
|
|
4743
|
+
function R(E) {
|
|
4744
|
+
$e[E ? "unshift" : "push"](() => {
|
|
4751
4745
|
f = E, n(6, f);
|
|
4752
4746
|
});
|
|
4753
4747
|
}
|
|
@@ -4764,21 +4758,21 @@ function io(e, t, n) {
|
|
|
4764
4758
|
c,
|
|
4765
4759
|
g,
|
|
4766
4760
|
y,
|
|
4767
|
-
N,
|
|
4768
4761
|
P,
|
|
4762
|
+
O,
|
|
4769
4763
|
l,
|
|
4770
4764
|
u,
|
|
4771
|
-
|
|
4765
|
+
R
|
|
4772
4766
|
];
|
|
4773
4767
|
}
|
|
4774
|
-
class
|
|
4768
|
+
class yn extends _n {
|
|
4775
4769
|
constructor(t) {
|
|
4776
|
-
super(),
|
|
4770
|
+
super(), vn(
|
|
4777
4771
|
this,
|
|
4778
4772
|
t,
|
|
4779
|
-
io,
|
|
4780
4773
|
no,
|
|
4781
|
-
|
|
4774
|
+
eo,
|
|
4775
|
+
Pt,
|
|
4782
4776
|
{
|
|
4783
4777
|
options: 1,
|
|
4784
4778
|
selected: 0,
|
|
@@ -4788,7 +4782,7 @@ class vn extends wn {
|
|
|
4788
4782
|
disabled: 4,
|
|
4789
4783
|
onChange: 13
|
|
4790
4784
|
},
|
|
4791
|
-
|
|
4785
|
+
Ja
|
|
4792
4786
|
);
|
|
4793
4787
|
}
|
|
4794
4788
|
get options() {
|
|
@@ -4834,15 +4828,15 @@ class vn extends wn {
|
|
|
4834
4828
|
this.$$set({ onChange: t }), G();
|
|
4835
4829
|
}
|
|
4836
4830
|
}
|
|
4837
|
-
|
|
4838
|
-
function
|
|
4839
|
-
|
|
4831
|
+
En(yn, { options: {}, selected: {}, placeholder: {}, withSymbol: {}, id: {}, disabled: { type: "Boolean" }, onChange: {} }, [], [], !0);
|
|
4832
|
+
function ro(e) {
|
|
4833
|
+
bn(e, "svelte-2fhtvy", ".warningIcon.svelte-2fhtvy{line-height:1;margin-right:0.4rem}");
|
|
4840
4834
|
}
|
|
4841
|
-
function
|
|
4842
|
-
let t, n, r =
|
|
4835
|
+
function io(e) {
|
|
4836
|
+
let t, n, r = D("balanceUnavailable") + "", i;
|
|
4843
4837
|
return {
|
|
4844
4838
|
c() {
|
|
4845
|
-
t = w("span"), t.innerHTML = '<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><g><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z" style="fill-rule:nonzero;"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z" style="fill-rule:nonzero;"></path></g></svg>', n =
|
|
4839
|
+
t = w("span"), t.innerHTML = '<svg fill="currentColor" width="20px" height="20px" viewBox="0 0 64 64" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><g><path d="M32.427,7.987c2.183,0.124 4,1.165 5.096,3.281l17.936,36.208c1.739,3.66 -0.954,8.585 -5.373,8.656l-36.119,0c-4.022,-0.064 -7.322,-4.631 -5.352,-8.696l18.271,-36.207c0.342,-0.65 0.498,-0.838 0.793,-1.179c1.186,-1.375 2.483,-2.111 4.748,-2.063Zm-0.295,3.997c-0.687,0.034 -1.316,0.419 -1.659,1.017c-6.312,11.979 -12.397,24.081 -18.301,36.267c-0.546,1.225 0.391,2.797 1.762,2.863c12.06,0.195 24.125,0.195 36.185,0c1.325,-0.064 2.321,-1.584 1.769,-2.85c-5.793,-12.184 -11.765,-24.286 -17.966,-36.267c-0.366,-0.651 -0.903,-1.042 -1.79,-1.03Z" style="fill-rule:nonzero;"></path><path d="M33.631,40.581l-3.348,0l-0.368,-16.449l4.1,0l-0.384,16.449Zm-3.828,5.03c0,-0.609 0.197,-1.113 0.592,-1.514c0.396,-0.4 0.935,-0.601 1.618,-0.601c0.684,0 1.223,0.201 1.618,0.601c0.395,0.401 0.593,0.905 0.593,1.514c0,0.587 -0.193,1.078 -0.577,1.473c-0.385,0.395 -0.929,0.593 -1.634,0.593c-0.705,0 -1.249,-0.198 -1.634,-0.593c-0.384,-0.395 -0.576,-0.886 -0.576,-1.473Z" style="fill-rule:nonzero;"></path></g></svg>', n = L(), i = z(r), m(t, "class", "warningIcon svelte-2fhtvy");
|
|
4846
4840
|
},
|
|
4847
4841
|
m(a, o) {
|
|
4848
4842
|
T(a, t, o), T(a, n, o), T(a, i, o);
|
|
@@ -4855,20 +4849,20 @@ function oo(e) {
|
|
|
4855
4849
|
}
|
|
4856
4850
|
};
|
|
4857
4851
|
}
|
|
4858
|
-
class
|
|
4852
|
+
class Ft extends _n {
|
|
4859
4853
|
constructor(t) {
|
|
4860
|
-
super(),
|
|
4854
|
+
super(), vn(this, t, null, io, Pt, {}, ro);
|
|
4861
4855
|
}
|
|
4862
4856
|
}
|
|
4863
|
-
|
|
4864
|
-
function
|
|
4865
|
-
En(e, "svelte-1mw4zse", '@charset "UTF-8";*{margin:0;padding:0}.playerAccountVault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);background:var(--emw--widget-background, #F8F8F8);color:var(--emw--typography, #595959);padding:var(--emw--spacing-medium, 16px);position:relative}.playerAccountVault .closeButton{position:absolute;background:none;border:none;top:var(--emw--spacing-medium, 16px);right:var(--emw--spacing-small, 10px);line-height:0;cursor:pointer}.playerAccountVault .closeButton svg{fill:var(--emw--color-faded, #A0A29F)}.playerAccountVault .playerVaultContainer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-smaller, 5px);box-sizing:border-box}.playerAccountVault .amountContainer{display:flex;align-items:center}.playerAccountVault .headerContainer{display:flex;width:100%;gap:var(--emw--spacing-small, 10px);justify-content:space-between;flex-direction:column}.playerAccountVault .headerContainer .headerTitle{font-family:inherit;color:var(--emw--color-secondary, #24B04F);font-size:var(--emw--font-size-large, 16px);font-weight:var(--emw--font-weight-normal, 400)}.playerAccountVault .headerContainer .totalAmount{margin-right:4px;color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .exchangesContainer{width:100%;height:100%;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .exchangeHeader,.playerAccountVault .exchangesContainer .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow{display:flex;align-items:center;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-outer-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]{-moz-appearance:textfield}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput{flex:1;min-width:50px;border:unset;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-medium, 14px);padding:0 var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-small, 8px);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));font-family:inherit;color:var(--emw--input-typography, #000)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput[disabled],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput[disabled]{color:var(--emw--input-disabled, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput::placeholder,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput::placeholder{color:var(--emw--input-placeholder, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect{min-width:96px;border:unset;white-space:nowrap;height:var(--emw--base-height, 36px);padding:0 var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer{display:flex;justify-content:space-between;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer .validationError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer .validationError{flex:1}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance{white-space:nowrap;justify-content:flex-end}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance .amount,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance .amount{color:var(--emw--color-faded, #A0A29F);margin-right:4px}.playerAccountVault .vaultsContainer{display:flex;flex-direction:column;width:100%}.playerAccountVault .vaultsContainer .vaultToggleButton{display:flex;align-items:center;justify-content:center;width:35px;height:35px;cursor:pointer;border:unset;align-self:flex-end;padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon path{fill:var(--emw--color-white, #fff)}.playerAccountVault .vaultsContainer .vaultToggleButton.active .vaultToggleIcon{transform:rotateZ(180deg)}.playerAccountVault .vaultsContainer .vaultDropdown{width:80%;max-height:0;height:200px;margin:0 auto;display:flex;flex-direction:column;overflow:auto;opacity:0;scrollbar-width:thin;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-white, #fff);font-family:inherit;transition:max-height 0.4s ease-out, opacity 0.4s ease-out}.playerAccountVault .vaultsContainer .vaultDropdown .vaultItem{display:inherit;font-size:var(--emw--font-size-medium, 14px);justify-content:space-between;width:100%;margin:0 auto;box-sizing:border-box;height:var(--emw--base-height, 36px);padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultDropdown.expanded{transition:max-height 1s ease-in, opacity 0.4s ease-in;max-height:1000vh;opacity:1}.playerAccountVault .notificationsContainer{width:100%;min-height:var(--emw--base-height, 36px);padding:0px}.playerAccountVault .notificationsContainer.error{color:var(--emw--color-error, #FF2424)}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, #24B04F)}.playerAccountVault .feesContainer{width:100%;height:var(--emw--base-height, 36px);display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px);padding:0 var(--emw--spacing-small, 10px);box-sizing:border-box}.playerAccountVault .feesContainer .feesLabel{color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .actionsContainer{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .actionsContainer button{flex:1;height:var(--emw--base-height, 36px);border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--button-font-size, 14px);border-radius:var(--emw--border-radius-small, 8px);font-weight:var(--emw--font-weight-bold, 500);transition:background 0.3s ease, color 0.3s ease, filter 0.3s ease}.playerAccountVault .actionsContainer .exchangeButton{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--color-primary, #24B04F);border:1px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled.pending{background:var(--emw--color-primary, #24B04F);pointer-events:none;opacity:0.5}.playerAccountVault .skeleton{background-color:rgba(0, 0, 0, 0.11);height:auto;min-height:0.1rem;-webkit-animation:loading 1.5s ease-in-out 0.5s infinite;animation:loading 1.5s ease-in-out 0.5s infinite}.playerAccountVault .skeleton::before{content:" "}@keyframes loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.playerAccountVault .exchangeContainer{display:flex;flex-direction:column;gap:4px}');
|
|
4857
|
+
En(Ft, {}, [], [], !0);
|
|
4858
|
+
function ao(e) {
|
|
4859
|
+
bn(e, "svelte-1mw4zse", '@charset "UTF-8";*{margin:0;padding:0}.playerAccountVault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-small, 12px);background:var(--emw--widget-background, #F8F8F8);color:var(--emw--typography, #595959);padding:var(--emw--spacing-medium, 16px);position:relative}.playerAccountVault .closeButton{position:absolute;background:none;border:none;top:var(--emw--spacing-medium, 16px);right:var(--emw--spacing-small, 10px);line-height:0;cursor:pointer}.playerAccountVault .closeButton svg{fill:var(--emw--color-faded, #A0A29F)}.playerAccountVault .playerVaultContainer{width:100%;display:flex;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-smaller, 5px);box-sizing:border-box}.playerAccountVault .amountContainer{display:flex;align-items:center}.playerAccountVault .headerContainer{display:flex;width:100%;gap:var(--emw--spacing-small, 10px);justify-content:space-between;flex-direction:column}.playerAccountVault .headerContainer .headerTitle{font-family:inherit;color:var(--emw--color-secondary, #24B04F);font-size:var(--emw--font-size-large, 16px);font-weight:var(--emw--font-weight-normal, 400)}.playerAccountVault .headerContainer .totalAmount{margin-right:4px;color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .exchangesContainer{width:100%;height:100%;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .exchangeHeader,.playerAccountVault .exchangesContainer .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;font-family:inherit}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow{display:flex;align-items:center;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number]::-webkit-outer-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-inner-spin-button,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow input[type=number],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow input[type=number]{-moz-appearance:textfield}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput{flex:1;min-width:50px;border:unset;height:var(--emw--base-height, 36px);font-size:var(--emw--font-size-medium, 14px);padding:0 var(--emw--spacing-small, 10px);border-radius:var(--emw--border-radius-small, 8px);background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));font-family:inherit;color:var(--emw--input-typography, #000)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput[disabled],.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput[disabled]{color:var(--emw--input-disabled, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .exchangeInput::placeholder,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .exchangeInput::placeholder{color:var(--emw--input-placeholder, #a0a29f)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect{min-width:96px;border:unset;white-space:nowrap;height:var(--emw--base-height, 36px);padding:0 var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .flexingContainerRow .currenciesSelect:focus,.playerAccountVault .exchangesContainer .containerExchangeTo .flexingContainerRow .currenciesSelect:focus{outline:none}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer{display:flex;justify-content:space-between;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer.hasError span,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer.hasError span{color:var(--emw--color-error, #ed0909)}.playerAccountVault .exchangesContainer .containerExchangeFrom .balanceContainer .validationError,.playerAccountVault .exchangesContainer .containerExchangeTo .balanceContainer .validationError{flex:1}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance{white-space:nowrap;justify-content:flex-end}.playerAccountVault .exchangesContainer .containerExchangeFrom .playerBalance .amount,.playerAccountVault .exchangesContainer .containerExchangeTo .playerBalance .amount{color:var(--emw--color-faded, #A0A29F);margin-right:4px}.playerAccountVault .vaultsContainer{display:flex;flex-direction:column;width:100%}.playerAccountVault .vaultsContainer .vaultToggleButton{display:flex;align-items:center;justify-content:center;width:35px;height:35px;cursor:pointer;border:unset;align-self:flex-end;padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.playerAccountVault .vaultsContainer .vaultToggleButton .vaultToggleIcon path{fill:var(--emw--color-white, #fff)}.playerAccountVault .vaultsContainer .vaultToggleButton.active .vaultToggleIcon{transform:rotateZ(180deg)}.playerAccountVault .vaultsContainer .vaultDropdown{width:80%;max-height:0;height:200px;margin:0 auto;display:flex;flex-direction:column;overflow:auto;opacity:0;scrollbar-width:thin;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 14px);color:var(--emw--color-white, #fff);font-family:inherit;transition:max-height 0.4s ease-out, opacity 0.4s ease-out}.playerAccountVault .vaultsContainer .vaultDropdown .vaultItem{display:inherit;font-size:var(--emw--font-size-medium, 14px);justify-content:space-between;width:100%;margin:0 auto;box-sizing:border-box;height:var(--emw--base-height, 36px);padding:var(--emw--spacing-small, 10px);background:var(--emw--color-primary, #24B04F);border-radius:var(--emw--border-radius-small, 8px)}.playerAccountVault .vaultsContainer .vaultDropdown.expanded{transition:max-height 1s ease-in, opacity 0.4s ease-in;max-height:1000vh;opacity:1}.playerAccountVault .notificationsContainer{width:100%;min-height:var(--emw--base-height, 36px);padding:0px}.playerAccountVault .notificationsContainer.error{color:var(--emw--color-error, #FF2424)}.playerAccountVault .notificationsContainer.success{color:var(--emw--color-success, #24B04F)}.playerAccountVault .feesContainer{width:100%;height:var(--emw--base-height, 36px);display:flex;align-items:center;justify-content:space-between;background-color:rgba(255, 255, 255, var(--emw--background-opacity, 0.9));-webkit-backdrop-filter:blur(var(--emw--filter-blur, 31.5px));backdrop-filter:blur(var(--emw--filter-blur, 31.5px));border-radius:var(--emw--border-radius-small, 8px);padding:0 var(--emw--spacing-small, 10px);box-sizing:border-box}.playerAccountVault .feesContainer .feesLabel{color:var(--emw--color-faded, #A0A29F)}.playerAccountVault .actionsContainer{width:100%;height:100%;display:flex;justify-content:space-between;align-items:center;box-sizing:border-box;gap:var(--emw--spacing-small, 10px)}.playerAccountVault .actionsContainer button{flex:1;height:var(--emw--base-height, 36px);border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--button-font-size, 14px);border-radius:var(--emw--border-radius-small, 8px);font-weight:var(--emw--font-weight-bold, 500);transition:background 0.3s ease, color 0.3s ease, filter 0.3s ease}.playerAccountVault .actionsContainer .exchangeButton{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton:hover{filter:brightness(110%)}.playerAccountVault .actionsContainer .resetButton{background:transparent;color:var(--emw--color-primary, #24B04F);border:1px solid var(--emw--color-primary, #24B04F)}.playerAccountVault .actionsContainer .resetButton:hover{background:var(--emw--color-primary, #24B04F);color:var(--emw--button-typography, #fff)}.playerAccountVault .actionsContainer .exchangeButton.disabled{cursor:default;filter:none;background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled:hover{background:var(--emw--button-disabled, #595959)}.playerAccountVault .actionsContainer .exchangeButton.disabled.pending{background:var(--emw--color-primary, #24B04F);pointer-events:none;opacity:0.5}.playerAccountVault .skeleton{background-color:rgba(0, 0, 0, 0.11);height:auto;min-height:0.1rem;-webkit-animation:loading 1.5s ease-in-out 0.5s infinite;animation:loading 1.5s ease-in-out 0.5s infinite}.playerAccountVault .skeleton::before{content:" "}@keyframes loading{0%{opacity:1}50%{opacity:0.4}100%{opacity:1}}.playerAccountVault .exchangeContainer{display:flex;flex-direction:column;gap:4px}');
|
|
4866
4860
|
}
|
|
4867
|
-
function
|
|
4861
|
+
function rr(e, t, n) {
|
|
4868
4862
|
const r = e.slice();
|
|
4869
4863
|
return r[62] = t[n], r;
|
|
4870
4864
|
}
|
|
4871
|
-
function
|
|
4865
|
+
function ir(e) {
|
|
4872
4866
|
let t, n, r;
|
|
4873
4867
|
return {
|
|
4874
4868
|
c() {
|
|
@@ -4888,9 +4882,9 @@ function or(e) {
|
|
|
4888
4882
|
}
|
|
4889
4883
|
};
|
|
4890
4884
|
}
|
|
4891
|
-
function
|
|
4885
|
+
function ar(e) {
|
|
4892
4886
|
let t, n, r, i;
|
|
4893
|
-
const a = [
|
|
4887
|
+
const a = [so, oo], o = [];
|
|
4894
4888
|
function l(s, u) {
|
|
4895
4889
|
return !/*isBalanceFetched*/
|
|
4896
4890
|
s[16] || !/*isCurrenciesFetched*/
|
|
@@ -4898,16 +4892,16 @@ function sr(e) {
|
|
|
4898
4892
|
}
|
|
4899
4893
|
return t = l(e), n = o[t] = a[t](e), {
|
|
4900
4894
|
c() {
|
|
4901
|
-
n.c(), r =
|
|
4895
|
+
n.c(), r = jr();
|
|
4902
4896
|
},
|
|
4903
4897
|
m(s, u) {
|
|
4904
4898
|
o[t].m(s, u), T(s, r, u), i = !0;
|
|
4905
4899
|
},
|
|
4906
4900
|
p(s, u) {
|
|
4907
4901
|
let h = t;
|
|
4908
|
-
t = l(s), t === h ? o[t].p(s, u) : (
|
|
4902
|
+
t = l(s), t === h ? o[t].p(s, u) : (Pe(), X(o[h], 1, 1, () => {
|
|
4909
4903
|
o[h] = null;
|
|
4910
|
-
}),
|
|
4904
|
+
}), Oe(), n = o[t], n ? n.p(s, u) : (n = o[t] = a[t](s), n.c()), $(n, 1), n.m(r.parentNode, r));
|
|
4911
4905
|
},
|
|
4912
4906
|
i(s) {
|
|
4913
4907
|
i || ($(n), i = !0);
|
|
@@ -4920,9 +4914,9 @@ function sr(e) {
|
|
|
4920
4914
|
}
|
|
4921
4915
|
};
|
|
4922
4916
|
}
|
|
4923
|
-
function
|
|
4917
|
+
function oo(e) {
|
|
4924
4918
|
let t, n, r, i;
|
|
4925
|
-
const a = [
|
|
4919
|
+
const a = [uo, lo], o = [];
|
|
4926
4920
|
function l(s, u) {
|
|
4927
4921
|
return (
|
|
4928
4922
|
/*fetchResponse*/
|
|
@@ -4938,9 +4932,9 @@ function lo(e) {
|
|
|
4938
4932
|
},
|
|
4939
4933
|
p(s, u) {
|
|
4940
4934
|
let h = n;
|
|
4941
|
-
n = l(s), n === h ? o[n].p(s, u) : (
|
|
4935
|
+
n = l(s), n === h ? o[n].p(s, u) : (Pe(), X(o[h], 1, 1, () => {
|
|
4942
4936
|
o[h] = null;
|
|
4943
|
-
}),
|
|
4937
|
+
}), Oe(), r = o[n], r ? r.p(s, u) : (r = o[n] = a[n](s), r.c()), $(r, 1), r.m(t, null));
|
|
4944
4938
|
},
|
|
4945
4939
|
i(s) {
|
|
4946
4940
|
i || ($(r), i = !0);
|
|
@@ -4953,7 +4947,7 @@ function lo(e) {
|
|
|
4953
4947
|
}
|
|
4954
4948
|
};
|
|
4955
4949
|
}
|
|
4956
|
-
function
|
|
4950
|
+
function so(e) {
|
|
4957
4951
|
let t;
|
|
4958
4952
|
return {
|
|
4959
4953
|
c() {
|
|
@@ -4970,7 +4964,7 @@ function uo(e) {
|
|
|
4970
4964
|
}
|
|
4971
4965
|
};
|
|
4972
4966
|
}
|
|
4973
|
-
function
|
|
4967
|
+
function lo(e) {
|
|
4974
4968
|
let t, n, r = (
|
|
4975
4969
|
/*playerBalance*/
|
|
4976
4970
|
(e[10]?.amount || 0) + ""
|
|
@@ -4980,7 +4974,7 @@ function co(e) {
|
|
|
4980
4974
|
), l;
|
|
4981
4975
|
return {
|
|
4982
4976
|
c() {
|
|
4983
|
-
t = w("span"), t.textContent = `${
|
|
4977
|
+
t = w("span"), t.textContent = `${D("totalBalance")}`, n = L(), i = z(r), a = L(), l = z(o), m(t, "class", "totalAmount");
|
|
4984
4978
|
},
|
|
4985
4979
|
m(s, u) {
|
|
4986
4980
|
T(s, t, u), T(s, n, u), T(s, i, u), T(s, a, u), T(s, l, u);
|
|
@@ -4999,14 +4993,14 @@ function co(e) {
|
|
|
4999
4993
|
}
|
|
5000
4994
|
};
|
|
5001
4995
|
}
|
|
5002
|
-
function
|
|
4996
|
+
function uo(e) {
|
|
5003
4997
|
let t, n;
|
|
5004
|
-
return t = new
|
|
4998
|
+
return t = new Ft({}), {
|
|
5005
4999
|
c() {
|
|
5006
|
-
|
|
5000
|
+
ut(t.$$.fragment);
|
|
5007
5001
|
},
|
|
5008
5002
|
m(r, i) {
|
|
5009
|
-
|
|
5003
|
+
je(t, r, i), n = !0;
|
|
5010
5004
|
},
|
|
5011
5005
|
p: B,
|
|
5012
5006
|
i(r) {
|
|
@@ -5016,13 +5010,13 @@ function ho(e) {
|
|
|
5016
5010
|
X(t.$$.fragment, r), n = !1;
|
|
5017
5011
|
},
|
|
5018
5012
|
d(r) {
|
|
5019
|
-
|
|
5013
|
+
We(t, r);
|
|
5020
5014
|
}
|
|
5021
5015
|
};
|
|
5022
5016
|
}
|
|
5023
|
-
function
|
|
5017
|
+
function co(e) {
|
|
5024
5018
|
let t, n, r, i, a, o, l, s, u;
|
|
5025
|
-
const h = [
|
|
5019
|
+
const h = [po, fo], f = [];
|
|
5026
5020
|
function c(g, b) {
|
|
5027
5021
|
return (
|
|
5028
5022
|
/*fetchResponse*/
|
|
@@ -5034,7 +5028,7 @@ function fo(e) {
|
|
|
5034
5028
|
t = w("div"), n = w("p"), r = z(
|
|
5035
5029
|
/*validationError*/
|
|
5036
5030
|
e[13]
|
|
5037
|
-
), i =
|
|
5031
|
+
), i = L(), a = w("div"), l.c(), m(n, "class", "validationError"), m(a, "class", "playerBalance amountContainer"), m(t, "class", s = "balanceContainer " + /*validationError*/
|
|
5038
5032
|
(e[13] ? "hasError" : ""));
|
|
5039
5033
|
},
|
|
5040
5034
|
m(g, b) {
|
|
@@ -5048,9 +5042,9 @@ function fo(e) {
|
|
|
5048
5042
|
g[13]
|
|
5049
5043
|
);
|
|
5050
5044
|
let y = o;
|
|
5051
|
-
o = c(g), o === y ? f[o].p(g, b) : (
|
|
5045
|
+
o = c(g), o === y ? f[o].p(g, b) : (Pe(), X(f[y], 1, 1, () => {
|
|
5052
5046
|
f[y] = null;
|
|
5053
|
-
}),
|
|
5047
|
+
}), Oe(), l = f[o], l ? l.p(g, b) : (l = f[o] = h[o](g), l.c()), $(l, 1), l.m(a, null)), (!u || b[0] & /*validationError*/
|
|
5054
5048
|
8192 && s !== (s = "balanceContainer " + /*validationError*/
|
|
5055
5049
|
(g[13] ? "hasError" : ""))) && m(t, "class", s);
|
|
5056
5050
|
},
|
|
@@ -5065,7 +5059,7 @@ function fo(e) {
|
|
|
5065
5059
|
}
|
|
5066
5060
|
};
|
|
5067
5061
|
}
|
|
5068
|
-
function
|
|
5062
|
+
function ho(e) {
|
|
5069
5063
|
let t;
|
|
5070
5064
|
return {
|
|
5071
5065
|
c() {
|
|
@@ -5082,7 +5076,7 @@ function po(e) {
|
|
|
5082
5076
|
}
|
|
5083
5077
|
};
|
|
5084
5078
|
}
|
|
5085
|
-
function
|
|
5079
|
+
function fo(e) {
|
|
5086
5080
|
let t, n, r = (
|
|
5087
5081
|
/*selectedCurrencyFrom*/
|
|
5088
5082
|
(e[5]?.amount || 0) + ""
|
|
@@ -5092,7 +5086,7 @@ function go(e) {
|
|
|
5092
5086
|
), l;
|
|
5093
5087
|
return {
|
|
5094
5088
|
c() {
|
|
5095
|
-
t = w("span"), t.textContent = `${
|
|
5089
|
+
t = w("span"), t.textContent = `${D("currentBalance")}`, n = L(), i = z(r), a = L(), l = z(o), m(t, "class", "amount");
|
|
5096
5090
|
},
|
|
5097
5091
|
m(s, u) {
|
|
5098
5092
|
T(s, t, u), T(s, n, u), T(s, i, u), T(s, a, u), T(s, l, u);
|
|
@@ -5111,14 +5105,14 @@ function go(e) {
|
|
|
5111
5105
|
}
|
|
5112
5106
|
};
|
|
5113
5107
|
}
|
|
5114
|
-
function
|
|
5108
|
+
function po(e) {
|
|
5115
5109
|
let t, n;
|
|
5116
|
-
return t = new
|
|
5110
|
+
return t = new Ft({}), {
|
|
5117
5111
|
c() {
|
|
5118
|
-
|
|
5112
|
+
ut(t.$$.fragment);
|
|
5119
5113
|
},
|
|
5120
5114
|
m(r, i) {
|
|
5121
|
-
|
|
5115
|
+
je(t, r, i), n = !0;
|
|
5122
5116
|
},
|
|
5123
5117
|
p: B,
|
|
5124
5118
|
i(r) {
|
|
@@ -5128,13 +5122,13 @@ function mo(e) {
|
|
|
5128
5122
|
X(t.$$.fragment, r), n = !1;
|
|
5129
5123
|
},
|
|
5130
5124
|
d(r) {
|
|
5131
|
-
|
|
5125
|
+
We(t, r);
|
|
5132
5126
|
}
|
|
5133
5127
|
};
|
|
5134
5128
|
}
|
|
5135
|
-
function
|
|
5129
|
+
function go(e) {
|
|
5136
5130
|
let t, n, r, i;
|
|
5137
|
-
const a = [
|
|
5131
|
+
const a = [bo, yo], o = [];
|
|
5138
5132
|
function l(s, u) {
|
|
5139
5133
|
return (
|
|
5140
5134
|
/*fetchResponse*/
|
|
@@ -5150,9 +5144,9 @@ function yo(e) {
|
|
|
5150
5144
|
},
|
|
5151
5145
|
p(s, u) {
|
|
5152
5146
|
let h = n;
|
|
5153
|
-
n = l(s), n === h ? o[n].p(s, u) : (
|
|
5147
|
+
n = l(s), n === h ? o[n].p(s, u) : (Pe(), X(o[h], 1, 1, () => {
|
|
5154
5148
|
o[h] = null;
|
|
5155
|
-
}),
|
|
5149
|
+
}), Oe(), r = o[n], r ? r.p(s, u) : (r = o[n] = a[n](s), r.c()), $(r, 1), r.m(t, null));
|
|
5156
5150
|
},
|
|
5157
5151
|
i(s) {
|
|
5158
5152
|
i || ($(r), i = !0);
|
|
@@ -5165,7 +5159,7 @@ function yo(e) {
|
|
|
5165
5159
|
}
|
|
5166
5160
|
};
|
|
5167
5161
|
}
|
|
5168
|
-
function
|
|
5162
|
+
function mo(e) {
|
|
5169
5163
|
let t;
|
|
5170
5164
|
return {
|
|
5171
5165
|
c() {
|
|
@@ -5182,7 +5176,7 @@ function bo(e) {
|
|
|
5182
5176
|
}
|
|
5183
5177
|
};
|
|
5184
5178
|
}
|
|
5185
|
-
function
|
|
5179
|
+
function yo(e) {
|
|
5186
5180
|
let t, n, r = (
|
|
5187
5181
|
/*selectedCurrencyTo*/
|
|
5188
5182
|
(e[6]?.amount || 0) + ""
|
|
@@ -5192,7 +5186,7 @@ function vo(e) {
|
|
|
5192
5186
|
), l;
|
|
5193
5187
|
return {
|
|
5194
5188
|
c() {
|
|
5195
|
-
t = w("span"), t.textContent = `${
|
|
5189
|
+
t = w("span"), t.textContent = `${D("currentBalance")}`, n = L(), i = z(r), a = L(), l = z(o), m(t, "class", "amount");
|
|
5196
5190
|
},
|
|
5197
5191
|
m(s, u) {
|
|
5198
5192
|
T(s, t, u), T(s, n, u), T(s, i, u), T(s, a, u), T(s, l, u);
|
|
@@ -5211,14 +5205,14 @@ function vo(e) {
|
|
|
5211
5205
|
}
|
|
5212
5206
|
};
|
|
5213
5207
|
}
|
|
5214
|
-
function
|
|
5208
|
+
function bo(e) {
|
|
5215
5209
|
let t, n;
|
|
5216
|
-
return t = new
|
|
5210
|
+
return t = new Ft({}), {
|
|
5217
5211
|
c() {
|
|
5218
|
-
|
|
5212
|
+
ut(t.$$.fragment);
|
|
5219
5213
|
},
|
|
5220
5214
|
m(r, i) {
|
|
5221
|
-
|
|
5215
|
+
je(t, r, i), n = !0;
|
|
5222
5216
|
},
|
|
5223
5217
|
p: B,
|
|
5224
5218
|
i(r) {
|
|
@@ -5228,20 +5222,20 @@ function Eo(e) {
|
|
|
5228
5222
|
X(t.$$.fragment, r), n = !1;
|
|
5229
5223
|
},
|
|
5230
5224
|
d(r) {
|
|
5231
|
-
|
|
5225
|
+
We(t, r);
|
|
5232
5226
|
}
|
|
5233
5227
|
};
|
|
5234
5228
|
}
|
|
5235
|
-
function
|
|
5236
|
-
let t, n, r, i, a, o, l, s, u, h, f =
|
|
5229
|
+
function or(e) {
|
|
5230
|
+
let t, n, r, i, a, o, l, s, u, h, f = Ht(
|
|
5237
5231
|
/*dropDownVaults*/
|
|
5238
5232
|
e[19]
|
|
5239
5233
|
), c = [];
|
|
5240
5234
|
for (let g = 0; g < f.length; g += 1)
|
|
5241
|
-
c[g] =
|
|
5235
|
+
c[g] = sr(rr(e, f, g));
|
|
5242
5236
|
return {
|
|
5243
5237
|
c() {
|
|
5244
|
-
t = w("div"), n = w("button"), r =
|
|
5238
|
+
t = w("div"), n = w("button"), r = Tn("svg"), i = Tn("path"), o = L(), l = w("div");
|
|
5245
5239
|
for (let g = 0; g < c.length; g += 1)
|
|
5246
5240
|
c[g].c();
|
|
5247
5241
|
m(i, "d", "M0.984228 0.664666C0.928537 0.612038 0.863025 0.570896 0.791433 0.543587C0.719842 0.516278 0.643572 0.503337 0.566979 0.505504C0.490386 0.50767 0.41497 0.524902 0.345037 0.556215C0.275103 0.587527 0.212022 0.632308 0.159395 0.687999C0.106768 0.74369 0.0656252 0.809203 0.0383161 0.880794C0.0110071 0.952386 -0.00193361 1.02866 0.000233093 1.10525C0.0023998 1.18184 0.0196314 1.25726 0.050944 1.32719C0.0822566 1.39712 0.127037 1.46021 0.182728 1.51283L5.43273 6.47117C5.54104 6.57356 5.68443 6.63061 5.83348 6.63061C5.98253 6.63061 6.12592 6.57356 6.23423 6.47117L11.4848 1.51283C11.5417 1.46055 11.5877 1.39748 11.62 1.32729C11.6523 1.2571 11.6704 1.18119 11.6731 1.10396C11.6759 1.02673 11.6633 0.949723 11.636 0.877415C11.6087 0.805107 11.5674 0.738937 11.5143 0.68275C11.4612 0.626563 11.3976 0.581479 11.3269 0.550115C11.2563 0.518751 11.1801 0.501734 11.1029 0.500051C11.0256 0.498369 10.9488 0.512054 10.8769 0.540313C10.8049 0.568572 10.7393 0.610841 10.6839 0.664665L5.83348 5.245L0.984228 0.664666Z"), m(i, "fill", "currentColor"), m(r, "class", "vaultToggleIcon"), m(r, "width", "12"), m(r, "height", "7"), m(r, "viewBox", "0 0 12 7"), m(r, "fill", "currentColor"), m(r, "xmlns", "http://www.w3.org/2000/svg"), m(n, "type", "button"), m(n, "class", a = "vaultToggleButton " + /*isVaultDropDownToggled*/
|
|
@@ -5267,14 +5261,14 @@ function lr(e) {
|
|
|
5267
5261
|
(g[15] && /*dropDownVaults*/
|
|
5268
5262
|
g[19].length > 0 ? "active" : "")) && m(n, "class", a), b[0] & /*dropDownVaults*/
|
|
5269
5263
|
524288) {
|
|
5270
|
-
f =
|
|
5264
|
+
f = Ht(
|
|
5271
5265
|
/*dropDownVaults*/
|
|
5272
5266
|
g[19]
|
|
5273
5267
|
);
|
|
5274
5268
|
let y;
|
|
5275
5269
|
for (y = 0; y < f.length; y += 1) {
|
|
5276
|
-
const
|
|
5277
|
-
c[y] ? c[y].p(
|
|
5270
|
+
const P = rr(g, f, y);
|
|
5271
|
+
c[y] ? c[y].p(P, b) : (c[y] = sr(P), c[y].c(), c[y].m(l, null));
|
|
5278
5272
|
}
|
|
5279
5273
|
for (; y < c.length; y += 1)
|
|
5280
5274
|
c[y].d(1);
|
|
@@ -5286,11 +5280,11 @@ function lr(e) {
|
|
|
5286
5280
|
g[19].length > 0 ? "expanded" : "")) && m(l, "class", s);
|
|
5287
5281
|
},
|
|
5288
5282
|
d(g) {
|
|
5289
|
-
g && A(t),
|
|
5283
|
+
g && A(t), cr(c, g), u = !1, h();
|
|
5290
5284
|
}
|
|
5291
5285
|
};
|
|
5292
5286
|
}
|
|
5293
|
-
function
|
|
5287
|
+
function sr(e) {
|
|
5294
5288
|
let t, n, r = (
|
|
5295
5289
|
/*vault*/
|
|
5296
5290
|
e[62]?.currency + ""
|
|
@@ -5300,7 +5294,7 @@ function ur(e) {
|
|
|
5300
5294
|
), s, u;
|
|
5301
5295
|
return {
|
|
5302
5296
|
c() {
|
|
5303
|
-
t = w("div"), n = w("p"), i = z(r), a =
|
|
5297
|
+
t = w("div"), n = w("p"), i = z(r), a = L(), o = w("p"), s = z(l), u = L(), m(t, "class", "vaultItem");
|
|
5304
5298
|
},
|
|
5305
5299
|
m(h, f) {
|
|
5306
5300
|
T(h, t, f), v(t, n), v(n, i), v(t, a), v(t, o), v(o, s), v(t, u);
|
|
@@ -5317,7 +5311,7 @@ function ur(e) {
|
|
|
5317
5311
|
}
|
|
5318
5312
|
};
|
|
5319
5313
|
}
|
|
5320
|
-
function
|
|
5314
|
+
function vo(e) {
|
|
5321
5315
|
let t = `${/*currentFee*/
|
|
5322
5316
|
e[11]?.fees[0]?.amount || 0} ${/*currentFee*/
|
|
5323
5317
|
e[11]?.fees[0]?.currency || ""}`, n;
|
|
@@ -5339,8 +5333,8 @@ function _o(e) {
|
|
|
5339
5333
|
}
|
|
5340
5334
|
};
|
|
5341
5335
|
}
|
|
5342
|
-
function
|
|
5343
|
-
let t =
|
|
5336
|
+
function Eo(e) {
|
|
5337
|
+
let t = D("feesUnavailable") + "", n;
|
|
5344
5338
|
return {
|
|
5345
5339
|
c() {
|
|
5346
5340
|
n = z(t);
|
|
@@ -5354,21 +5348,21 @@ function xo(e) {
|
|
|
5354
5348
|
}
|
|
5355
5349
|
};
|
|
5356
5350
|
}
|
|
5357
|
-
function
|
|
5358
|
-
let t, n, r, i, a, o, l, s, u, h, f, c, g, b, y,
|
|
5351
|
+
function _o(e) {
|
|
5352
|
+
let t, n, r, i, a, o, l, s, u, h, f, c, g, b, y, P, O, R, E, j, M, K, ge, ae, W, ue, de, se, ce, xe, Q, ee, he, Je, we, De, gt, ke, et, oe, me = D(
|
|
5359
5353
|
/*fetchResponse*/
|
|
5360
5354
|
e[12]?.message || ""
|
|
5361
|
-
) + "",
|
|
5355
|
+
) + "", Ae, ye, be, Me, te, Ce = D("exchange") + "", dt, ve, ne, tt, nt, Y = (
|
|
5362
5356
|
/*showclosebutton*/
|
|
5363
|
-
e[3] ===
|
|
5357
|
+
e[3] === Se.true && ir(e)
|
|
5364
5358
|
), U = (
|
|
5365
5359
|
/*showtotalbalance*/
|
|
5366
|
-
e[2] ===
|
|
5360
|
+
e[2] === Se.true && ar(e)
|
|
5367
5361
|
);
|
|
5368
|
-
function
|
|
5362
|
+
function Vt(d) {
|
|
5369
5363
|
e[39](d);
|
|
5370
5364
|
}
|
|
5371
|
-
let
|
|
5365
|
+
let mt = {
|
|
5372
5366
|
id: "senderSelect",
|
|
5373
5367
|
withSymbol: (
|
|
5374
5368
|
/*showcurrencysymbol*/
|
|
@@ -5387,19 +5381,19 @@ function wo(e) {
|
|
|
5387
5381
|
)
|
|
5388
5382
|
};
|
|
5389
5383
|
/*selectedCurrencyFrom*/
|
|
5390
|
-
e[5] !== void 0 && (
|
|
5391
|
-
e[5]), y = new
|
|
5392
|
-
const
|
|
5393
|
-
function
|
|
5384
|
+
e[5] !== void 0 && (mt.selected = /*selectedCurrencyFrom*/
|
|
5385
|
+
e[5]), y = new yn({ props: mt }), $e.push(() => Bn(y, "selected", Vt));
|
|
5386
|
+
const yt = [ho, co], fe = [];
|
|
5387
|
+
function rt(d, C) {
|
|
5394
5388
|
return !/*isBalanceFetched*/
|
|
5395
5389
|
d[16] || !/*isCurrenciesFetched*/
|
|
5396
5390
|
d[17] ? 0 : 1;
|
|
5397
5391
|
}
|
|
5398
|
-
|
|
5399
|
-
function
|
|
5392
|
+
R = rt(e), E = fe[R] = yt[R](e);
|
|
5393
|
+
function Ut(d) {
|
|
5400
5394
|
e[41](d);
|
|
5401
5395
|
}
|
|
5402
|
-
let
|
|
5396
|
+
let bt = {
|
|
5403
5397
|
id: "destinationSelect",
|
|
5404
5398
|
withSymbol: (
|
|
5405
5399
|
/*showcurrencysymbol*/
|
|
@@ -5420,35 +5414,35 @@ function wo(e) {
|
|
|
5420
5414
|
)
|
|
5421
5415
|
};
|
|
5422
5416
|
/*selectedCurrencyTo*/
|
|
5423
|
-
e[6] !== void 0 && (
|
|
5424
|
-
e[6]), se = new
|
|
5425
|
-
const
|
|
5426
|
-
function
|
|
5417
|
+
e[6] !== void 0 && (bt.selected = /*selectedCurrencyTo*/
|
|
5418
|
+
e[6]), se = new yn({ props: bt }), $e.push(() => Bn(se, "selected", Ut));
|
|
5419
|
+
const vt = [mo, go], pe = [];
|
|
5420
|
+
function Et(d, C) {
|
|
5427
5421
|
return !/*isBalanceFetched*/
|
|
5428
5422
|
d[16] || !/*isCurrenciesFetched*/
|
|
5429
5423
|
d[17] ? 0 : 1;
|
|
5430
5424
|
}
|
|
5431
|
-
Q =
|
|
5425
|
+
Q = Et(e), ee = pe[Q] = vt[Q](e);
|
|
5432
5426
|
let p = (
|
|
5433
5427
|
/*showvaults*/
|
|
5434
|
-
e[1] ===
|
|
5428
|
+
e[1] === Se.true && or(e)
|
|
5435
5429
|
);
|
|
5436
5430
|
function _(d, C) {
|
|
5437
5431
|
return (
|
|
5438
5432
|
/*fetchResponse*/
|
|
5439
|
-
d[12]?.source === Z.CheckWalletExchangeError ?
|
|
5433
|
+
d[12]?.source === Z.CheckWalletExchangeError ? Eo : vo
|
|
5440
5434
|
);
|
|
5441
5435
|
}
|
|
5442
|
-
let
|
|
5436
|
+
let N = _(e), x = N(e);
|
|
5443
5437
|
return {
|
|
5444
5438
|
c() {
|
|
5445
|
-
t = w("div"), Y && Y.c(), n =
|
|
5439
|
+
t = w("div"), Y && Y.c(), n = L(), r = w("div"), i = w("h1"), i.textContent = `${D("vaultExchange")}`, a = L(), U && U.c(), o = L(), l = w("div"), s = w("div"), u = w("p"), u.textContent = `${D("exchangeFrom")}`, h = L(), f = w("div"), c = w("input"), b = L(), ut(y.$$.fragment), O = L(), E.c(), j = L(), M = w("div"), K = w("p"), K.textContent = `${D("exchangeTo")}`, ge = L(), ae = w("div"), W = w("input"), de = L(), ut(se.$$.fragment), xe = L(), ee.c(), he = L(), p && p.c(), Je = L(), we = w("div"), De = w("span"), De.textContent = `${D("feesIncluded")}`, gt = L(), ke = w("span"), x.c(), et = L(), oe = w("div"), Ae = L(), ye = w("div"), be = w("button"), be.textContent = `${D("reset")}`, Me = L(), te = w("button"), dt = z(Ce), m(i, "class", "headerTitle"), m(r, "class", "headerContainer"), m(u, "class", "exchangeHeader"), m(c, "id", "senderInput"), c.disabled = g = !/*session*/
|
|
5446
5440
|
e[0] || !/*isBalanceFetched*/
|
|
5447
5441
|
e[16] || !/*isCurrenciesFetched*/
|
|
5448
|
-
e[17], m(c, "placeholder",
|
|
5442
|
+
e[17], m(c, "placeholder", D("debitPlaceHolder")), m(c, "class", "exchangeInput"), m(c, "type", "number"), m(c, "aria-label", "Enter exchange amount"), m(c, "inputmode", "decimal"), m(c, "step", "0.000000000000001"), m(c, "min", "0"), m(f, "class", "flexingContainerRow"), m(s, "class", "containerExchangeFrom exchangeContainer"), m(K, "class", "exchangeHeader"), m(W, "id", "destinationInput"), W.disabled = ue = !/*session*/
|
|
5449
5443
|
e[0] || !/*isBalanceFetched*/
|
|
5450
5444
|
e[16] || !/*isCurrenciesFetched*/
|
|
5451
|
-
e[17], m(W, "placeholder",
|
|
5445
|
+
e[17], m(W, "placeholder", D("creditPlaceHolder")), m(W, "class", "exchangeInput"), m(W, "type", "number"), W.readOnly = !0, m(W, "min", "0"), m(ae, "class", "flexingContainerRow"), m(M, "class", "containerExchangeTo exchangeContainer"), m(l, "class", "exchangesContainer"), m(De, "class", "feesLabel"), m(we, "class", "feesContainer"), m(oe, "class", "notificationsContainer"), le(
|
|
5452
5446
|
oe,
|
|
5453
5447
|
"error",
|
|
5454
5448
|
/*fetchResponse*/
|
|
@@ -5458,7 +5452,7 @@ function wo(e) {
|
|
|
5458
5452
|
"success",
|
|
5459
5453
|
/*fetchResponse*/
|
|
5460
5454
|
e[12]?.type === "success"
|
|
5461
|
-
), m(
|
|
5455
|
+
), m(be, "class", "resetButton"), m(be, "type", "button"), m(te, "type", "button"), m(te, "class", "exchangeButton"), te.disabled = ve = /*isExchangeDisabled*/
|
|
5462
5456
|
e[14] || /*isExchangePending*/
|
|
5463
5457
|
e[18] || /*inputExchangeFrom*/
|
|
5464
5458
|
e[8] === 0 && !/*selectedCurrencyFrom*/
|
|
@@ -5473,18 +5467,18 @@ function wo(e) {
|
|
|
5473
5467
|
"pending",
|
|
5474
5468
|
/*isExchangePending*/
|
|
5475
5469
|
e[18]
|
|
5476
|
-
), m(
|
|
5470
|
+
), m(ye, "class", "actionsContainer"), m(t, "class", "playerAccountVault");
|
|
5477
5471
|
},
|
|
5478
5472
|
m(d, C) {
|
|
5479
|
-
T(d, t, C), Y && Y.m(t, null), v(t, n), v(t, r), v(r, i), v(r, a), U && U.m(r, null), v(t, o), v(t, l), v(l, s), v(s, u), v(s, h), v(s, f), v(f, c),
|
|
5473
|
+
T(d, t, C), Y && Y.m(t, null), v(t, n), v(t, r), v(r, i), v(r, a), U && U.m(r, null), v(t, o), v(t, l), v(l, s), v(s, u), v(s, h), v(s, f), v(f, c), _t(
|
|
5480
5474
|
c,
|
|
5481
5475
|
/*inputExchangeFrom*/
|
|
5482
5476
|
e[8]
|
|
5483
|
-
), v(f, b),
|
|
5477
|
+
), v(f, b), je(y, f, null), v(s, O), fe[R].m(s, null), v(l, j), v(l, M), v(M, K), v(M, ge), v(M, ae), v(ae, W), _t(
|
|
5484
5478
|
W,
|
|
5485
5479
|
/*inputExchangeTo*/
|
|
5486
5480
|
e[9]
|
|
5487
|
-
), v(ae,
|
|
5481
|
+
), v(ae, de), je(se, ae, null), v(M, xe), pe[Q].m(M, null), v(t, he), p && p.m(t, null), v(t, Je), v(t, we), v(we, De), v(we, gt), v(we, ke), x.m(ke, null), v(t, et), v(t, oe), oe.innerHTML = me, v(t, Ae), v(t, ye), v(ye, be), v(ye, Me), v(ye, te), v(te, dt), e[42](t), ne = !0, tt || (nt = [
|
|
5488
5482
|
re(
|
|
5489
5483
|
c,
|
|
5490
5484
|
"input",
|
|
@@ -5516,7 +5510,7 @@ function wo(e) {
|
|
|
5516
5510
|
e[40]
|
|
5517
5511
|
),
|
|
5518
5512
|
re(
|
|
5519
|
-
|
|
5513
|
+
be,
|
|
5520
5514
|
"click",
|
|
5521
5515
|
/*handleResetToDefault*/
|
|
5522
5516
|
e[24]
|
|
@@ -5527,72 +5521,72 @@ function wo(e) {
|
|
|
5527
5521
|
/*handleExchange*/
|
|
5528
5522
|
e[29]
|
|
5529
5523
|
)
|
|
5530
|
-
],
|
|
5524
|
+
], tt = !0);
|
|
5531
5525
|
},
|
|
5532
5526
|
p(d, C) {
|
|
5533
5527
|
/*showclosebutton*/
|
|
5534
|
-
d[3] ===
|
|
5535
|
-
d[2] ===
|
|
5536
|
-
4 && $(U, 1)) : (U =
|
|
5528
|
+
d[3] === Se.true ? Y ? Y.p(d, C) : (Y = ir(d), Y.c(), Y.m(t, n)) : Y && (Y.d(1), Y = null), /*showtotalbalance*/
|
|
5529
|
+
d[2] === Se.true ? U ? (U.p(d, C), C[0] & /*showtotalbalance*/
|
|
5530
|
+
4 && $(U, 1)) : (U = ar(d), U.c(), $(U, 1), U.m(r, null)) : U && (Pe(), X(U, 1, 1, () => {
|
|
5537
5531
|
U = null;
|
|
5538
|
-
}),
|
|
5532
|
+
}), Oe()), (!ne || C[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5539
5533
|
196609 && g !== (g = !/*session*/
|
|
5540
5534
|
d[0] || !/*isBalanceFetched*/
|
|
5541
5535
|
d[16] || !/*isCurrenciesFetched*/
|
|
5542
5536
|
d[17])) && (c.disabled = g), C[0] & /*inputExchangeFrom*/
|
|
5543
|
-
256 &&
|
|
5544
|
-
d[8] &&
|
|
5537
|
+
256 && Bt(c.value) !== /*inputExchangeFrom*/
|
|
5538
|
+
d[8] && _t(
|
|
5545
5539
|
c,
|
|
5546
5540
|
/*inputExchangeFrom*/
|
|
5547
5541
|
d[8]
|
|
5548
5542
|
);
|
|
5549
|
-
const
|
|
5543
|
+
const Le = {};
|
|
5550
5544
|
C[0] & /*showcurrencysymbol*/
|
|
5551
|
-
16 && (
|
|
5545
|
+
16 && (Le.withSymbol = /*showcurrencysymbol*/
|
|
5552
5546
|
d[4]), C[0] & /*isBalanceFetched, isCurrenciesFetched*/
|
|
5553
|
-
196608 && (
|
|
5547
|
+
196608 && (Le.disabled = !/*isBalanceFetched*/
|
|
5554
5548
|
d[16] || !/*isCurrenciesFetched*/
|
|
5555
5549
|
d[17]), C[0] & /*optionsFrom*/
|
|
5556
|
-
1048576 && (
|
|
5557
|
-
d[20]), !
|
|
5558
|
-
32 && (
|
|
5559
|
-
d[5],
|
|
5560
|
-
let
|
|
5561
|
-
|
|
5562
|
-
fe[
|
|
5563
|
-
}),
|
|
5550
|
+
1048576 && (Le.options = /*optionsFrom*/
|
|
5551
|
+
d[20]), !P && C[0] & /*selectedCurrencyFrom*/
|
|
5552
|
+
32 && (P = !0, Le.selected = /*selectedCurrencyFrom*/
|
|
5553
|
+
d[5], Sn(() => P = !1)), y.$set(Le);
|
|
5554
|
+
let it = R;
|
|
5555
|
+
R = rt(d), R === it ? fe[R].p(d, C) : (Pe(), X(fe[it], 1, 1, () => {
|
|
5556
|
+
fe[it] = null;
|
|
5557
|
+
}), Oe(), E = fe[R], E ? E.p(d, C) : (E = fe[R] = yt[R](d), E.c()), $(E, 1), E.m(s, null)), (!ne || C[0] & /*session, isBalanceFetched, isCurrenciesFetched*/
|
|
5564
5558
|
196609 && ue !== (ue = !/*session*/
|
|
5565
5559
|
d[0] || !/*isBalanceFetched*/
|
|
5566
5560
|
d[16] || !/*isCurrenciesFetched*/
|
|
5567
5561
|
d[17])) && (W.disabled = ue), C[0] & /*inputExchangeTo*/
|
|
5568
|
-
512 &&
|
|
5569
|
-
d[9] &&
|
|
5562
|
+
512 && Bt(W.value) !== /*inputExchangeTo*/
|
|
5563
|
+
d[9] && _t(
|
|
5570
5564
|
W,
|
|
5571
5565
|
/*inputExchangeTo*/
|
|
5572
5566
|
d[9]
|
|
5573
5567
|
);
|
|
5574
|
-
const
|
|
5568
|
+
const F = {};
|
|
5575
5569
|
C[0] & /*showcurrencysymbol*/
|
|
5576
|
-
16 && (
|
|
5570
|
+
16 && (F.withSymbol = /*showcurrencysymbol*/
|
|
5577
5571
|
d[4]), C[0] & /*session, validationError, isBalanceFetched, isCurrenciesFetched*/
|
|
5578
|
-
204801 && (
|
|
5572
|
+
204801 && (F.disabled = !/*session*/
|
|
5579
5573
|
d[0] || !!/*validationError*/
|
|
5580
5574
|
d[13] || !/*isBalanceFetched*/
|
|
5581
5575
|
d[16] || !/*isCurrenciesFetched*/
|
|
5582
5576
|
d[17]), C[0] & /*optionsTo*/
|
|
5583
|
-
2097152 && (
|
|
5577
|
+
2097152 && (F.options = /*optionsTo*/
|
|
5584
5578
|
d[21]), !ce && C[0] & /*selectedCurrencyTo*/
|
|
5585
|
-
64 && (ce = !0,
|
|
5586
|
-
d[6],
|
|
5587
|
-
let
|
|
5588
|
-
Q =
|
|
5589
|
-
pe[
|
|
5590
|
-
}),
|
|
5591
|
-
d[1] ===
|
|
5592
|
-
4096) &&
|
|
5579
|
+
64 && (ce = !0, F.selected = /*selectedCurrencyTo*/
|
|
5580
|
+
d[6], Sn(() => ce = !1)), se.$set(F);
|
|
5581
|
+
let Ee = Q;
|
|
5582
|
+
Q = Et(d), Q === Ee ? pe[Q].p(d, C) : (Pe(), X(pe[Ee], 1, 1, () => {
|
|
5583
|
+
pe[Ee] = null;
|
|
5584
|
+
}), Oe(), ee = pe[Q], ee ? ee.p(d, C) : (ee = pe[Q] = vt[Q](d), ee.c()), $(ee, 1), ee.m(M, null)), /*showvaults*/
|
|
5585
|
+
d[1] === Se.true ? p ? p.p(d, C) : (p = or(d), p.c(), p.m(t, Je)) : p && (p.d(1), p = null), N === (N = _(d)) && x ? x.p(d, C) : (x.d(1), x = N(d), x && (x.c(), x.m(ke, null))), (!ne || C[0] & /*fetchResponse*/
|
|
5586
|
+
4096) && me !== (me = D(
|
|
5593
5587
|
/*fetchResponse*/
|
|
5594
5588
|
d[12]?.message || ""
|
|
5595
|
-
) + "") && (oe.innerHTML =
|
|
5589
|
+
) + "") && (oe.innerHTML = me), (!ne || C[0] & /*fetchResponse*/
|
|
5596
5590
|
4096) && le(
|
|
5597
5591
|
oe,
|
|
5598
5592
|
"error",
|
|
@@ -5605,11 +5599,11 @@ function wo(e) {
|
|
|
5605
5599
|
/*fetchResponse*/
|
|
5606
5600
|
d[12]?.type === "success"
|
|
5607
5601
|
), (!ne || C[0] & /*isExchangeDisabled, isExchangePending, inputExchangeFrom, selectedCurrencyFrom*/
|
|
5608
|
-
278816 &&
|
|
5602
|
+
278816 && ve !== (ve = /*isExchangeDisabled*/
|
|
5609
5603
|
d[14] || /*isExchangePending*/
|
|
5610
5604
|
d[18] || /*inputExchangeFrom*/
|
|
5611
5605
|
d[8] === 0 && !/*selectedCurrencyFrom*/
|
|
5612
|
-
d[5]?.amount)) && (te.disabled =
|
|
5606
|
+
d[5]?.amount)) && (te.disabled = ve), (!ne || C[0] & /*isExchangeDisabled, isExchangePending*/
|
|
5613
5607
|
278528) && le(
|
|
5614
5608
|
te,
|
|
5615
5609
|
"disabled",
|
|
@@ -5631,130 +5625,130 @@ function wo(e) {
|
|
|
5631
5625
|
X(U), X(y.$$.fragment, d), X(E), X(se.$$.fragment, d), X(ee), ne = !1;
|
|
5632
5626
|
},
|
|
5633
5627
|
d(d) {
|
|
5634
|
-
d && A(t), Y && Y.d(), U && U.d(),
|
|
5628
|
+
d && A(t), Y && Y.d(), U && U.d(), We(y), fe[R].d(), We(se), pe[Q].d(), p && p.d(), x.d(), e[42](null), tt = !1, _e(nt);
|
|
5635
5629
|
}
|
|
5636
5630
|
};
|
|
5637
5631
|
}
|
|
5638
|
-
function
|
|
5639
|
-
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang: o = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: u = "" } = t, { playercurrency: h = "" } = t, { showvaults: f = "true" } = t, { showtotalbalance: c = "true" } = t, { showclosebutton: g = "true" } = t, { showcurrencysymbol: b = "true" } = t, y = null,
|
|
5640
|
-
|
|
5641
|
-
|
|
5632
|
+
function xo(e, t, n) {
|
|
5633
|
+
let { session: r = "" } = t, { userid: i = "" } = t, { endpoint: a = "" } = t, { lang: o = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: s = "" } = t, { translationurl: u = "" } = t, { playercurrency: h = "" } = t, { showvaults: f = "true" } = t, { showtotalbalance: c = "true" } = t, { showclosebutton: g = "true" } = t, { showcurrencysymbol: b = "true" } = t, y = null, P = null, O = 0, R = 0, E = 0, j = null, M = null, K = null, ge = "", ae = !0, W = !1, ue = !1, de = !1, se = !1, ce = [], xe = [], Q = [], ee = [], he;
|
|
5634
|
+
Wa({ withLocale: "en", translations: {} }), Object.keys(Zn).forEach((p) => {
|
|
5635
|
+
zn(p, Zn[p]);
|
|
5642
5636
|
});
|
|
5643
|
-
const
|
|
5644
|
-
|
|
5645
|
-
},
|
|
5637
|
+
const Je = () => {
|
|
5638
|
+
Xa(o);
|
|
5639
|
+
}, we = () => {
|
|
5646
5640
|
fetch(u).then((p) => p.json()).then((p) => {
|
|
5647
5641
|
Object.keys(p).forEach((_) => {
|
|
5648
|
-
|
|
5642
|
+
zn(_, p[_]);
|
|
5649
5643
|
});
|
|
5650
5644
|
}).catch((p) => {
|
|
5651
5645
|
console.error("There was a problem with the translations request.", p);
|
|
5652
5646
|
});
|
|
5653
|
-
},
|
|
5647
|
+
}, De = () => {
|
|
5654
5648
|
let p = document.createElement("style");
|
|
5655
5649
|
p.innerHTML = l, he.appendChild(p);
|
|
5656
|
-
},
|
|
5657
|
-
let p, _ = new URL(s),
|
|
5650
|
+
}, gt = () => {
|
|
5651
|
+
let p, _ = new URL(s), N = document.createElement("style");
|
|
5658
5652
|
fetch(_.href).then((x) => x.text()).then((x) => {
|
|
5659
|
-
|
|
5653
|
+
N.innerHTML = x, p && clearTimeout(p), p = setTimeout(
|
|
5660
5654
|
() => {
|
|
5661
|
-
he.appendChild(
|
|
5655
|
+
he.appendChild(N);
|
|
5662
5656
|
},
|
|
5663
5657
|
1
|
|
5664
5658
|
);
|
|
5665
5659
|
});
|
|
5666
|
-
},
|
|
5667
|
-
|
|
5660
|
+
}, ke = () => {
|
|
5661
|
+
xe.length !== 0 && (n(15, W = !W), window.postMessage(
|
|
5668
5662
|
{
|
|
5669
|
-
type:
|
|
5663
|
+
type: Qt.VaultDropdownToggled,
|
|
5670
5664
|
state: W
|
|
5671
5665
|
},
|
|
5672
5666
|
window.location.href
|
|
5673
5667
|
));
|
|
5674
|
-
},
|
|
5668
|
+
}, et = () => {
|
|
5675
5669
|
window.postMessage(
|
|
5676
5670
|
{
|
|
5677
|
-
type:
|
|
5671
|
+
type: Qt.VaultWidgetClosed
|
|
5678
5672
|
},
|
|
5679
5673
|
window.location.href
|
|
5680
5674
|
);
|
|
5681
5675
|
}, oe = () => {
|
|
5682
|
-
n(14, ae = !0),
|
|
5683
|
-
},
|
|
5676
|
+
n(14, ae = !0), Ae(), ye(), be(), Me(), window.postMessage({ type: Qt.VaultWidgetReset }, window.location.href);
|
|
5677
|
+
}, me = () => {
|
|
5684
5678
|
n(14, ae = !0), n(9, E = 0);
|
|
5685
|
-
},
|
|
5686
|
-
n(11,
|
|
5679
|
+
}, Ae = () => {
|
|
5680
|
+
n(11, M = null);
|
|
5681
|
+
}, ye = () => {
|
|
5682
|
+
n(8, O = 0), n(9, E = 0);
|
|
5687
5683
|
}, be = () => {
|
|
5688
|
-
n(
|
|
5689
|
-
},
|
|
5690
|
-
n(13, de = "");
|
|
5691
|
-
}, Fe = () => {
|
|
5684
|
+
n(13, ge = "");
|
|
5685
|
+
}, Me = () => {
|
|
5692
5686
|
n(12, K = null);
|
|
5693
5687
|
}, te = (p) => {
|
|
5694
|
-
p && n(13,
|
|
5695
|
-
},
|
|
5688
|
+
p && n(13, ge = p);
|
|
5689
|
+
}, Ce = ({ type: p, message: _, source: N = "" }) => {
|
|
5696
5690
|
let x;
|
|
5697
|
-
switch (n(12, K = { message: _, source:
|
|
5698
|
-
case
|
|
5699
|
-
n(14, ae = !0), window.postMessage({ type:
|
|
5691
|
+
switch (n(12, K = { message: _, source: N, type: p }), p) {
|
|
5692
|
+
case Te.error:
|
|
5693
|
+
n(14, ae = !0), window.postMessage({ type: N, data: { type: p, message: _ } }, window.location.href);
|
|
5700
5694
|
break;
|
|
5701
|
-
case
|
|
5702
|
-
n(14, ae = !0), window.postMessage({ type:
|
|
5695
|
+
case Te.success:
|
|
5696
|
+
n(14, ae = !0), window.postMessage({ type: N, data: { type: p, message: _ } }, window.location.href), x && clearTimeout(x), x = setTimeout(
|
|
5703
5697
|
() => {
|
|
5704
|
-
|
|
5698
|
+
Me();
|
|
5705
5699
|
},
|
|
5706
|
-
|
|
5700
|
+
Za
|
|
5707
5701
|
);
|
|
5708
5702
|
break;
|
|
5709
5703
|
}
|
|
5710
|
-
},
|
|
5711
|
-
const
|
|
5712
|
-
|
|
5713
|
-
}),
|
|
5714
|
-
const
|
|
5715
|
-
return p?.status >= 200 && p?.status < 400 ?
|
|
5716
|
-
type:
|
|
5717
|
-
message:
|
|
5704
|
+
}, dt = () => new Promise((p, _) => {
|
|
5705
|
+
const N = K?.message.includes(qa.InvalidSession);
|
|
5706
|
+
N && _(), isNaN(Number(O)) && (me(), Ae(), _(D("invalidValue"))), O > y?.amount && (me(), Ae(), _(D("exceededValue"))), O === null && !N && (me(), Ae(), _()), O === 0 && O === 0 && !N && (oe(), _()), (!y || !P) && !N && _(), be(), p();
|
|
5707
|
+
}), ve = async (p, _) => {
|
|
5708
|
+
const N = await p.json();
|
|
5709
|
+
return p?.status >= 200 && p?.status < 400 ? N : (_ === Z.CheckWalletExchangeError && me(), !ue && _ === Z.BalanceError && (n(16, ue = !0), n(17, de = !0)), !de && _ === Z.CurrenciesError && n(17, de = !0), Ce({
|
|
5710
|
+
type: Te.error,
|
|
5711
|
+
message: D(N?.thirdPartyResponse?.code) || D(N?.thirdPartyResponse?.errorCode) || "generalError",
|
|
5718
5712
|
source: _
|
|
5719
5713
|
}));
|
|
5720
5714
|
}, ne = () => new Promise((p, _) => {
|
|
5721
|
-
const
|
|
5722
|
-
fetch(
|
|
5715
|
+
const N = new URL(`${a}/v1/player/${i}/wallet-exchange/currencies`);
|
|
5716
|
+
fetch(N, {
|
|
5723
5717
|
method: "GET",
|
|
5724
5718
|
headers: {
|
|
5725
5719
|
"X-SessionId": r,
|
|
5726
5720
|
"Content-Type": "application/json",
|
|
5727
5721
|
Accept: "application/json"
|
|
5728
5722
|
}
|
|
5729
|
-
}).then((d) =>
|
|
5723
|
+
}).then((d) => ve(d, Z.CurrenciesError)).then((d) => {
|
|
5730
5724
|
p(d?.currencies);
|
|
5731
5725
|
}).catch((d) => {
|
|
5732
|
-
n(17,
|
|
5733
|
-
type:
|
|
5734
|
-
message:
|
|
5726
|
+
n(17, de = !0), console.error("There was an error on the allowed currencies request.", d), Ce({
|
|
5727
|
+
type: Te.error,
|
|
5728
|
+
message: D("generalError"),
|
|
5735
5729
|
source: Z.CurrenciesError
|
|
5736
5730
|
}), _();
|
|
5737
5731
|
}).finally(() => {
|
|
5738
|
-
n(17,
|
|
5732
|
+
n(17, de = !0);
|
|
5739
5733
|
});
|
|
5740
|
-
}),
|
|
5734
|
+
}), tt = ({ data: p, shouldUpdateSelectedCurrencies: _, allowed: N = [] }) => {
|
|
5741
5735
|
const { items: x = [], totalAmount: d = {}, totalRealAmount: C } = p || {};
|
|
5742
|
-
n(10, j = Object.entries(C || d).map(([
|
|
5743
|
-
let
|
|
5744
|
-
const
|
|
5745
|
-
for (const
|
|
5746
|
-
if (
|
|
5747
|
-
const
|
|
5748
|
-
if (
|
|
5749
|
-
const
|
|
5750
|
-
...
|
|
5751
|
-
...
|
|
5752
|
-
symbol:
|
|
5736
|
+
n(10, j = Object.entries(C || d).map(([F = "", Ee = 0]) => ({ currency: F, amount: Ee }))[0]);
|
|
5737
|
+
let Le = null;
|
|
5738
|
+
const it = new Map(N.map((F) => [F.code, F]));
|
|
5739
|
+
for (const F of x)
|
|
5740
|
+
if (F?.type === Kn.Real) {
|
|
5741
|
+
const Ee = it.get(F?.currency);
|
|
5742
|
+
if (Ee && Ee.code === F?.currency) {
|
|
5743
|
+
const at = {
|
|
5744
|
+
...F,
|
|
5745
|
+
...Ee,
|
|
5746
|
+
symbol: za[F?.currency]?.[0]
|
|
5753
5747
|
};
|
|
5754
|
-
n(37, ce = [...ce,
|
|
5748
|
+
n(37, ce = [...ce, at]), F?.currency === j?.currency && n(10, j = { ...j, ...at }), F?.currency !== j?.currency && F?.walletAccountType === Kn.Vault && n(19, xe = [...xe, at]), _ && F?.amount > 0 && n(5, y = j?.currency ? j : Le), y && y?.currency === F?.currency && n(5, y = at), P && P?.currency === F?.currency && n(6, P = at);
|
|
5755
5749
|
}
|
|
5756
5750
|
}
|
|
5757
|
-
},
|
|
5751
|
+
}, nt = (p = !0) => {
|
|
5758
5752
|
const _ = new URL(`${a}/v2/player/${i}/balance`);
|
|
5759
5753
|
fetch(_, {
|
|
5760
5754
|
method: "GET",
|
|
@@ -5763,130 +5757,130 @@ function Ao(e, t, n) {
|
|
|
5763
5757
|
"Content-Type": "application/json",
|
|
5764
5758
|
Accept: "application/json"
|
|
5765
5759
|
}
|
|
5766
|
-
}).then((x) =>
|
|
5760
|
+
}).then((x) => ve(x, Z.BalanceError)).then((x) => {
|
|
5767
5761
|
x && ne().then((d) => {
|
|
5768
|
-
n(37, ce = []), n(19,
|
|
5762
|
+
n(37, ce = []), n(19, xe = []), tt({
|
|
5769
5763
|
data: x,
|
|
5770
5764
|
shouldUpdateSelectedCurrencies: p,
|
|
5771
5765
|
allowed: d
|
|
5772
5766
|
});
|
|
5773
5767
|
});
|
|
5774
5768
|
}).catch((x) => {
|
|
5775
|
-
n(16, ue = !0), console.error("There was an error with the player balance request.", x),
|
|
5776
|
-
type:
|
|
5777
|
-
message:
|
|
5769
|
+
n(16, ue = !0), console.error("There was an error with the player balance request.", x), Ce({
|
|
5770
|
+
type: Te.error,
|
|
5771
|
+
message: D("generalError"),
|
|
5778
5772
|
source: Z.BalanceError
|
|
5779
5773
|
});
|
|
5780
5774
|
}).finally(() => {
|
|
5781
5775
|
n(16, ue = !0);
|
|
5782
5776
|
});
|
|
5783
|
-
}, U =
|
|
5784
|
-
|
|
5777
|
+
}, U = Qa(() => {
|
|
5778
|
+
dt().then(() => {
|
|
5785
5779
|
const p = new URL(`${a}/v2/player/${i}/check/wallet-exchange`), _ = {
|
|
5786
5780
|
userId: i,
|
|
5787
|
-
amount:
|
|
5781
|
+
amount: O,
|
|
5788
5782
|
currency: y?.currency,
|
|
5789
5783
|
fromCurrency: y?.currency,
|
|
5790
|
-
toCurrency:
|
|
5784
|
+
toCurrency: P?.currency,
|
|
5791
5785
|
payload: { PlayerCurrency: h }
|
|
5792
|
-
},
|
|
5786
|
+
}, N = {
|
|
5793
5787
|
method: "POST",
|
|
5794
5788
|
headers: {
|
|
5795
5789
|
"X-SessionId": r,
|
|
5796
5790
|
"Content-Type": "application/json",
|
|
5797
5791
|
Accept: "application/json"
|
|
5798
5792
|
},
|
|
5799
|
-
body:
|
|
5793
|
+
body: Yn(_)
|
|
5800
5794
|
};
|
|
5801
|
-
fetch(p,
|
|
5795
|
+
fetch(p, N).then((x) => ve(x, Z.CheckWalletExchangeError)).then((x) => {
|
|
5802
5796
|
if (x) {
|
|
5803
|
-
if (K?.source === Z.CheckWalletExchangeError &&
|
|
5804
|
-
const d = x.walletActions.find((C) => C?.directionName ===
|
|
5805
|
-
n(9, E = new
|
|
5797
|
+
if (K?.source === Z.CheckWalletExchangeError && Me(), Array.isArray(x?.fees?.fees) && n(11, M = x.fees), Array.isArray(x?.walletActions)) {
|
|
5798
|
+
const d = x.walletActions.find((C) => C?.directionName === Ka.Credit)?.amount || 0;
|
|
5799
|
+
n(9, E = new ni(d)?.getValue());
|
|
5806
5800
|
}
|
|
5807
|
-
|
|
5801
|
+
O > 0 && E > 0 && y?.currency && P?.currency && h && n(14, ae = !1);
|
|
5808
5802
|
}
|
|
5809
5803
|
}).catch((x) => {
|
|
5810
|
-
|
|
5811
|
-
type:
|
|
5812
|
-
message:
|
|
5804
|
+
Ce({
|
|
5805
|
+
type: Te.error,
|
|
5806
|
+
message: D("generalError"),
|
|
5813
5807
|
source: Z.CheckWalletExchangeError
|
|
5814
5808
|
}), console.error("There was a problem with the wallet exchange request.", x);
|
|
5815
5809
|
});
|
|
5816
5810
|
}).catch((p) => {
|
|
5817
5811
|
te(p);
|
|
5818
5812
|
});
|
|
5819
|
-
}, 500),
|
|
5820
|
-
const _ = p.target.value, [
|
|
5821
|
-
!x && _.length >=
|
|
5822
|
-
},
|
|
5813
|
+
}, 500), Vt = (p) => {
|
|
5814
|
+
const _ = p.target.value, [N, x] = _.split(".");
|
|
5815
|
+
!x && _.length >= Yt && n(8, O = _.slice(0, Yt)), x && y?.type === Qn.Fiat && (x.length <= y?.precision ? (n(8, O = _), R = _) : n(8, O = R)), x && y?.type === Qn.CryptoCurrency && (_.length <= Yt ? (n(8, O = _), R = _) : n(8, O = R)), U();
|
|
5816
|
+
}, mt = (p) => {
|
|
5823
5817
|
const _ = p.data;
|
|
5824
5818
|
[">", "<", ","].includes(_) && p.preventDefault(), _ && !_.match(/[\d.]/) && p.preventDefault(), _ === "." && p.target.value.includes(".") && p.preventDefault();
|
|
5825
|
-
},
|
|
5826
|
-
|
|
5819
|
+
}, yt = () => {
|
|
5820
|
+
O === 0 && n(8, O = null);
|
|
5827
5821
|
}, fe = () => {
|
|
5828
5822
|
const p = new URL(`${a}/v2/player/${i}/wallet-exchange`);
|
|
5829
5823
|
n(18, se = !0);
|
|
5830
5824
|
const _ = {
|
|
5831
|
-
feeDetails:
|
|
5825
|
+
feeDetails: M,
|
|
5832
5826
|
userId: i,
|
|
5833
|
-
amount:
|
|
5827
|
+
amount: O,
|
|
5834
5828
|
currency: y?.currency,
|
|
5835
5829
|
fromCurrency: y?.currency,
|
|
5836
|
-
toCurrency:
|
|
5830
|
+
toCurrency: P?.currency,
|
|
5837
5831
|
payload: { PlayerCurrency: h }
|
|
5838
|
-
},
|
|
5832
|
+
}, N = {
|
|
5839
5833
|
method: "PUT",
|
|
5840
5834
|
headers: {
|
|
5841
5835
|
"X-SessionId": r,
|
|
5842
5836
|
"Content-Type": "application/json",
|
|
5843
5837
|
Accept: "application/json"
|
|
5844
5838
|
},
|
|
5845
|
-
body:
|
|
5839
|
+
body: Yn(_)
|
|
5846
5840
|
};
|
|
5847
|
-
fetch(p,
|
|
5848
|
-
x && (
|
|
5849
|
-
type:
|
|
5850
|
-
message:
|
|
5841
|
+
fetch(p, N).then((x) => ve(x, Z.WalletExchangeError)).then((x) => {
|
|
5842
|
+
x && (Ce({
|
|
5843
|
+
type: Te.success,
|
|
5844
|
+
message: D("exchangeSuccess"),
|
|
5851
5845
|
source: "ExchangeSuccess"
|
|
5852
|
-
}),
|
|
5846
|
+
}), nt(!1));
|
|
5853
5847
|
}).catch((x) => {
|
|
5854
|
-
|
|
5855
|
-
type:
|
|
5856
|
-
message:
|
|
5848
|
+
Ce({
|
|
5849
|
+
type: Te.error,
|
|
5850
|
+
message: D("generalError"),
|
|
5857
5851
|
source: Z.WalletExchangeError
|
|
5858
5852
|
}), console.error("There was an error with the wallet exchange request.", x);
|
|
5859
5853
|
}).finally(() => {
|
|
5860
|
-
n(18, se = !1),
|
|
5854
|
+
n(18, se = !1), ye(), Ae();
|
|
5861
5855
|
});
|
|
5862
|
-
},
|
|
5856
|
+
}, rt = (p) => {
|
|
5863
5857
|
const { data: { type: _ } = {} } = p || {};
|
|
5864
5858
|
switch (_) {
|
|
5865
|
-
case
|
|
5859
|
+
case qn.ResetVaultWidget:
|
|
5866
5860
|
oe();
|
|
5867
5861
|
break;
|
|
5868
|
-
case
|
|
5869
|
-
|
|
5862
|
+
case qn.CloseVaultWidget:
|
|
5863
|
+
et();
|
|
5870
5864
|
break;
|
|
5871
5865
|
}
|
|
5872
5866
|
};
|
|
5873
|
-
|
|
5874
|
-
window.removeEventListener("message",
|
|
5867
|
+
fr(() => (window.addEventListener("message", rt), () => {
|
|
5868
|
+
window.removeEventListener("message", rt);
|
|
5875
5869
|
}));
|
|
5876
|
-
function
|
|
5877
|
-
|
|
5870
|
+
function Ut() {
|
|
5871
|
+
O = Bt(this.value), n(8, O);
|
|
5878
5872
|
}
|
|
5879
|
-
function
|
|
5873
|
+
function bt(p) {
|
|
5880
5874
|
y = p, n(5, y);
|
|
5881
5875
|
}
|
|
5882
|
-
function
|
|
5883
|
-
E =
|
|
5876
|
+
function vt() {
|
|
5877
|
+
E = Bt(this.value), n(9, E);
|
|
5884
5878
|
}
|
|
5885
5879
|
function pe(p) {
|
|
5886
|
-
|
|
5880
|
+
P = p, n(6, P);
|
|
5887
5881
|
}
|
|
5888
|
-
function
|
|
5889
|
-
|
|
5882
|
+
function Et(p) {
|
|
5883
|
+
$e[p ? "unshift" : "push"](() => {
|
|
5890
5884
|
he = p, n(7, he);
|
|
5891
5885
|
});
|
|
5892
5886
|
}
|
|
@@ -5894,16 +5888,16 @@ function Ao(e, t, n) {
|
|
|
5894
5888
|
"session" in p && n(0, r = p.session), "userid" in p && n(30, i = p.userid), "endpoint" in p && n(31, a = p.endpoint), "lang" in p && n(32, o = p.lang), "clientstyling" in p && n(33, l = p.clientstyling), "clientstylingurl" in p && n(34, s = p.clientstylingurl), "translationurl" in p && n(35, u = p.translationurl), "playercurrency" in p && n(36, h = p.playercurrency), "showvaults" in p && n(1, f = p.showvaults), "showtotalbalance" in p && n(2, c = p.showtotalbalance), "showclosebutton" in p && n(3, g = p.showclosebutton), "showcurrencysymbol" in p && n(4, b = p.showcurrencysymbol);
|
|
5895
5889
|
}, e.$$.update = () => {
|
|
5896
5890
|
e.$$.dirty[1] & /*lang*/
|
|
5897
|
-
2 && o &&
|
|
5891
|
+
2 && o && Je(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5898
5892
|
128 | e.$$.dirty[1] & /*clientstyling*/
|
|
5899
|
-
4 && l && he &&
|
|
5893
|
+
4 && l && he && De(), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5900
5894
|
128 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5901
|
-
8 && s && he &&
|
|
5902
|
-
16 && u &&
|
|
5895
|
+
8 && s && he && gt(), e.$$.dirty[1] & /*translationurl*/
|
|
5896
|
+
16 && u && we(), e.$$.dirty[0] & /*session, userid*/
|
|
5903
5897
|
1073741825 | e.$$.dirty[1] & /*endpoint, playercurrency*/
|
|
5904
|
-
33 && r && i && a && h &&
|
|
5898
|
+
33 && r && i && a && h && nt(), e.$$.dirty[0] & /*selectedCurrencyTo*/
|
|
5905
5899
|
64 | e.$$.dirty[1] & /*filteredBalances*/
|
|
5906
|
-
64 && n(20, Q = ce.filter((p) => p?.amount > 0 && p?.currency !==
|
|
5900
|
+
64 && n(20, Q = ce.filter((p) => p?.amount > 0 && p?.currency !== P?.currency)), e.$$.dirty[0] & /*selectedCurrencyFrom*/
|
|
5907
5901
|
32 | e.$$.dirty[1] & /*filteredBalances*/
|
|
5908
5902
|
64 && n(21, ee = ce.filter((p) => y?.currency !== p?.currency));
|
|
5909
5903
|
}, [
|
|
@@ -5913,29 +5907,29 @@ function Ao(e, t, n) {
|
|
|
5913
5907
|
g,
|
|
5914
5908
|
b,
|
|
5915
5909
|
y,
|
|
5916
|
-
N,
|
|
5917
|
-
he,
|
|
5918
5910
|
P,
|
|
5911
|
+
he,
|
|
5912
|
+
O,
|
|
5919
5913
|
E,
|
|
5920
5914
|
j,
|
|
5921
|
-
|
|
5915
|
+
M,
|
|
5922
5916
|
K,
|
|
5923
|
-
|
|
5917
|
+
ge,
|
|
5924
5918
|
ae,
|
|
5925
5919
|
W,
|
|
5926
5920
|
ue,
|
|
5927
|
-
|
|
5921
|
+
de,
|
|
5928
5922
|
se,
|
|
5929
|
-
|
|
5923
|
+
xe,
|
|
5930
5924
|
Q,
|
|
5931
5925
|
ee,
|
|
5932
|
-
|
|
5933
|
-
|
|
5926
|
+
ke,
|
|
5927
|
+
et,
|
|
5934
5928
|
oe,
|
|
5935
5929
|
U,
|
|
5936
|
-
|
|
5930
|
+
Vt,
|
|
5931
|
+
mt,
|
|
5937
5932
|
yt,
|
|
5938
|
-
bt,
|
|
5939
5933
|
fe,
|
|
5940
5934
|
i,
|
|
5941
5935
|
a,
|
|
@@ -5945,21 +5939,21 @@ function Ao(e, t, n) {
|
|
|
5945
5939
|
u,
|
|
5946
5940
|
h,
|
|
5947
5941
|
ce,
|
|
5948
|
-
|
|
5942
|
+
Ut,
|
|
5943
|
+
bt,
|
|
5949
5944
|
vt,
|
|
5950
|
-
Et,
|
|
5951
5945
|
pe,
|
|
5952
|
-
|
|
5946
|
+
Et
|
|
5953
5947
|
];
|
|
5954
5948
|
}
|
|
5955
|
-
class
|
|
5949
|
+
class wo extends _n {
|
|
5956
5950
|
constructor(t) {
|
|
5957
|
-
super(),
|
|
5951
|
+
super(), vn(
|
|
5958
5952
|
this,
|
|
5959
5953
|
t,
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5954
|
+
xo,
|
|
5955
|
+
_o,
|
|
5956
|
+
Pt,
|
|
5963
5957
|
{
|
|
5964
5958
|
session: 0,
|
|
5965
5959
|
userid: 30,
|
|
@@ -5974,7 +5968,7 @@ class Co extends wn {
|
|
|
5974
5968
|
showclosebutton: 3,
|
|
5975
5969
|
showcurrencysymbol: 4
|
|
5976
5970
|
},
|
|
5977
|
-
|
|
5971
|
+
ao,
|
|
5978
5972
|
[-1, -1, -1]
|
|
5979
5973
|
);
|
|
5980
5974
|
}
|
|
@@ -6051,7 +6045,7 @@ class Co extends wn {
|
|
|
6051
6045
|
this.$$set({ showcurrencysymbol: t }), G();
|
|
6052
6046
|
}
|
|
6053
6047
|
}
|
|
6054
|
-
|
|
6048
|
+
En(wo, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {}, showvaults: {}, showtotalbalance: {}, showclosebutton: {}, showcurrencysymbol: {} }, [], [], !0);
|
|
6055
6049
|
export {
|
|
6056
|
-
|
|
6050
|
+
wo as P
|
|
6057
6051
|
};
|