@everymatrix/player-account-balance-modal-nd 1.54.12 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/PlayerAccountBalanceModalNd-B0yfSLU3.cjs +15 -0
- package/components/{PlayerAccountBalanceModalNd-BHCiKY4G.js → PlayerAccountBalanceModalNd-Bmecg9Hv.js} +1206 -1187
- package/components/{PlayerAccountBalanceModalNd-BAeICRDi.js → PlayerAccountBalanceModalNd-DhxTyQKU.js} +1247 -1228
- package/es2015/player-account-balance-modal-nd.cjs +1 -1
- package/es2015/player-account-balance-modal-nd.js +1 -1
- package/esnext/player-account-balance-modal-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModalNd-DpL_C3Ey.cjs +0 -15
|
@@ -6,7 +6,7 @@ function Sn(e) {
|
|
|
6
6
|
function tn() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function je(e) {
|
|
10
10
|
e.forEach(Sn);
|
|
11
11
|
}
|
|
12
12
|
function Qt(e) {
|
|
@@ -27,16 +27,16 @@ function Cn(e, ...t) {
|
|
|
27
27
|
const n = e.subscribe(...t);
|
|
28
28
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function or(e, t, n) {
|
|
31
31
|
e.$$.on_destroy.push(Cn(t, n));
|
|
32
32
|
}
|
|
33
33
|
function C(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function ar(e, t, n) {
|
|
37
37
|
const r = sr(e);
|
|
38
38
|
if (!r.getElementById(t)) {
|
|
39
|
-
const i =
|
|
39
|
+
const i = j("style");
|
|
40
40
|
i.id = t, i.textContent = n, lr(r, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
@@ -59,38 +59,38 @@ function lr(e, t) {
|
|
|
59
59
|
function me(e, t, n) {
|
|
60
60
|
e.insertBefore(t, n || null);
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function fe(e) {
|
|
63
63
|
e.parentNode && e.parentNode.removeChild(e);
|
|
64
64
|
}
|
|
65
65
|
function Hn(e, t) {
|
|
66
66
|
for (let n = 0; n < e.length; n += 1)
|
|
67
67
|
e[n] && e[n].d(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function j(e) {
|
|
70
70
|
return document.createElement(e);
|
|
71
71
|
}
|
|
72
72
|
function nn(e) {
|
|
73
73
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function he(e) {
|
|
76
76
|
return document.createTextNode(e);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return
|
|
78
|
+
function de() {
|
|
79
|
+
return he(" ");
|
|
80
80
|
}
|
|
81
81
|
function ur() {
|
|
82
|
-
return
|
|
82
|
+
return he("");
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function pt(e, t, n, r) {
|
|
85
85
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function N(e, t, n) {
|
|
88
88
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
89
89
|
}
|
|
90
90
|
function cr(e) {
|
|
91
91
|
return Array.from(e.childNodes);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Ee(e, t) {
|
|
94
94
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
95
95
|
t);
|
|
96
96
|
}
|
|
@@ -103,93 +103,93 @@ function hr(e) {
|
|
|
103
103
|
}
|
|
104
104
|
), t;
|
|
105
105
|
}
|
|
106
|
-
let
|
|
107
|
-
function
|
|
108
|
-
|
|
106
|
+
let et;
|
|
107
|
+
function Ke(e) {
|
|
108
|
+
et = e;
|
|
109
109
|
}
|
|
110
110
|
function fr() {
|
|
111
|
-
if (!
|
|
112
|
-
return
|
|
111
|
+
if (!et) throw new Error("Function called outside component initialization");
|
|
112
|
+
return et;
|
|
113
113
|
}
|
|
114
114
|
function dr(e) {
|
|
115
115
|
fr().$$.on_mount.push(e);
|
|
116
116
|
}
|
|
117
|
-
const
|
|
118
|
-
let
|
|
117
|
+
const De = [], Dt = [];
|
|
118
|
+
let Ue = [];
|
|
119
119
|
const rn = [], pr = /* @__PURE__ */ Promise.resolve();
|
|
120
120
|
let Ut = !1;
|
|
121
121
|
function mr() {
|
|
122
|
-
Ut || (Ut = !0, pr.then(
|
|
122
|
+
Ut || (Ut = !0, pr.then(J));
|
|
123
123
|
}
|
|
124
124
|
function Ft(e) {
|
|
125
|
-
|
|
125
|
+
Ue.push(e);
|
|
126
126
|
}
|
|
127
127
|
const Ot = /* @__PURE__ */ new Set();
|
|
128
|
-
let
|
|
129
|
-
function
|
|
130
|
-
if (
|
|
128
|
+
let Ie = 0;
|
|
129
|
+
function J() {
|
|
130
|
+
if (Ie !== 0)
|
|
131
131
|
return;
|
|
132
|
-
const e =
|
|
132
|
+
const e = et;
|
|
133
133
|
do {
|
|
134
134
|
try {
|
|
135
|
-
for (;
|
|
136
|
-
const t = Ie
|
|
137
|
-
|
|
135
|
+
for (; Ie < De.length; ) {
|
|
136
|
+
const t = De[Ie];
|
|
137
|
+
Ie++, Ke(t), gr(t.$$);
|
|
138
138
|
}
|
|
139
139
|
} catch (t) {
|
|
140
|
-
throw
|
|
140
|
+
throw De.length = 0, Ie = 0, t;
|
|
141
141
|
}
|
|
142
|
-
for (
|
|
143
|
-
for (let t = 0; t <
|
|
144
|
-
const n =
|
|
142
|
+
for (Ke(null), De.length = 0, Ie = 0; Dt.length; ) Dt.pop()();
|
|
143
|
+
for (let t = 0; t < Ue.length; t += 1) {
|
|
144
|
+
const n = Ue[t];
|
|
145
145
|
Ot.has(n) || (Ot.add(n), n());
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
} while (
|
|
147
|
+
Ue.length = 0;
|
|
148
|
+
} while (De.length);
|
|
149
149
|
for (; rn.length; )
|
|
150
150
|
rn.pop()();
|
|
151
|
-
Ut = !1, Ot.clear(),
|
|
151
|
+
Ut = !1, Ot.clear(), Ke(e);
|
|
152
152
|
}
|
|
153
153
|
function gr(e) {
|
|
154
154
|
if (e.fragment !== null) {
|
|
155
|
-
e.update(),
|
|
155
|
+
e.update(), je(e.before_update);
|
|
156
156
|
const t = e.dirty;
|
|
157
157
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ft);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
function br(e) {
|
|
161
161
|
const t = [], n = [];
|
|
162
|
-
|
|
162
|
+
Ue.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ue = t;
|
|
163
163
|
}
|
|
164
164
|
const yr = /* @__PURE__ */ new Set();
|
|
165
165
|
function vr(e, t) {
|
|
166
166
|
e && e.i && (yr.delete(e), e.i(t));
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function mt(e) {
|
|
169
169
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
170
170
|
}
|
|
171
171
|
function Er(e, t, n) {
|
|
172
172
|
const { fragment: r, after_update: i } = e.$$;
|
|
173
173
|
r && r.m(t, n), Ft(() => {
|
|
174
|
-
const
|
|
175
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
174
|
+
const o = e.$$.on_mount.map(Sn).filter(Qt);
|
|
175
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : je(o), e.$$.on_mount = [];
|
|
176
176
|
}), i.forEach(Ft);
|
|
177
177
|
}
|
|
178
178
|
function xr(e, t) {
|
|
179
179
|
const n = e.$$;
|
|
180
|
-
n.fragment !== null && (br(n.after_update),
|
|
180
|
+
n.fragment !== null && (br(n.after_update), je(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
181
181
|
}
|
|
182
182
|
function _r(e, t) {
|
|
183
|
-
e.$$.dirty[0] === -1 && (
|
|
183
|
+
e.$$.dirty[0] === -1 && (De.push(e), mr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
184
184
|
}
|
|
185
|
-
function Br(e, t, n, r, i,
|
|
186
|
-
const h =
|
|
187
|
-
|
|
185
|
+
function Br(e, t, n, r, i, o, l = null, s = [-1]) {
|
|
186
|
+
const h = et;
|
|
187
|
+
Ke(e);
|
|
188
188
|
const u = e.$$ = {
|
|
189
189
|
fragment: null,
|
|
190
190
|
ctx: [],
|
|
191
191
|
// state
|
|
192
|
-
props:
|
|
192
|
+
props: o,
|
|
193
193
|
update: se,
|
|
194
194
|
not_equal: i,
|
|
195
195
|
bound: tn(),
|
|
@@ -208,18 +208,18 @@ function Br(e, t, n, r, i, a, l = null, s = [-1]) {
|
|
|
208
208
|
};
|
|
209
209
|
l && l(u.root);
|
|
210
210
|
let d = !1;
|
|
211
|
-
if (u.ctx = n ? n(e, t.props || {}, (
|
|
212
|
-
const
|
|
213
|
-
return u.ctx && i(u.ctx[
|
|
214
|
-
}) : [], u.update(), d = !0,
|
|
211
|
+
if (u.ctx = n ? n(e, t.props || {}, (m, g, ..._) => {
|
|
212
|
+
const B = _.length ? _[0] : g;
|
|
213
|
+
return u.ctx && i(u.ctx[m], u.ctx[m] = B) && (!u.skip_bound && u.bound[m] && u.bound[m](B), d && _r(e, m)), g;
|
|
214
|
+
}) : [], u.update(), d = !0, je(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
215
215
|
if (t.hydrate) {
|
|
216
|
-
const
|
|
217
|
-
u.fragment && u.fragment.l(
|
|
216
|
+
const m = cr(t.target);
|
|
217
|
+
u.fragment && u.fragment.l(m), m.forEach(fe);
|
|
218
218
|
} else
|
|
219
219
|
u.fragment && u.fragment.c();
|
|
220
|
-
t.intro && vr(e.$$.fragment), Er(e, t.target, t.anchor),
|
|
220
|
+
t.intro && vr(e.$$.fragment), Er(e, t.target, t.anchor), J();
|
|
221
221
|
}
|
|
222
|
-
|
|
222
|
+
Ke(h);
|
|
223
223
|
}
|
|
224
224
|
let On;
|
|
225
225
|
typeof HTMLElement == "function" && (On = class extends HTMLElement {
|
|
@@ -261,20 +261,20 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
|
|
|
261
261
|
if (this.$$cn = !0, !this.$$c) {
|
|
262
262
|
let e = function(i) {
|
|
263
263
|
return () => {
|
|
264
|
-
let
|
|
264
|
+
let o;
|
|
265
265
|
return {
|
|
266
266
|
c: function() {
|
|
267
|
-
|
|
267
|
+
o = j("slot"), i !== "default" && N(o, "name", i);
|
|
268
268
|
},
|
|
269
269
|
/**
|
|
270
270
|
* @param {HTMLElement} target
|
|
271
271
|
* @param {HTMLElement} [anchor]
|
|
272
272
|
*/
|
|
273
273
|
m: function(h, u) {
|
|
274
|
-
me(h,
|
|
274
|
+
me(h, o, u);
|
|
275
275
|
},
|
|
276
276
|
d: function(h) {
|
|
277
|
-
h &&
|
|
277
|
+
h && fe(o);
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
};
|
|
@@ -285,8 +285,8 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
|
|
|
285
285
|
for (const i of this.$$s)
|
|
286
286
|
i in n && (t[i] = [e(i)]);
|
|
287
287
|
for (const i of this.attributes) {
|
|
288
|
-
const
|
|
289
|
-
|
|
288
|
+
const o = this.$$g_p(i.name);
|
|
289
|
+
o in this.$$d || (this.$$d[o] = ct(o, i.value, this.$$p_d, "toProp"));
|
|
290
290
|
}
|
|
291
291
|
for (const i in this.$$p_d)
|
|
292
292
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -304,21 +304,21 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
|
|
|
304
304
|
this.$$r = !0;
|
|
305
305
|
for (const i in this.$$p_d)
|
|
306
306
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
307
|
-
const
|
|
307
|
+
const o = ct(
|
|
308
308
|
i,
|
|
309
309
|
this.$$d[i],
|
|
310
310
|
this.$$p_d,
|
|
311
311
|
"toAttribute"
|
|
312
312
|
);
|
|
313
|
-
|
|
313
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
|
314
314
|
}
|
|
315
315
|
this.$$r = !1;
|
|
316
316
|
};
|
|
317
317
|
this.$$c.$$.after_update.push(r), r();
|
|
318
318
|
for (const i in this.$$l)
|
|
319
|
-
for (const
|
|
320
|
-
const l = this.$$c.$on(i,
|
|
321
|
-
this.$$l_u.set(
|
|
319
|
+
for (const o of this.$$l[i]) {
|
|
320
|
+
const l = this.$$c.$on(i, o);
|
|
321
|
+
this.$$l_u.set(o, l);
|
|
322
322
|
}
|
|
323
323
|
this.$$l = {};
|
|
324
324
|
}
|
|
@@ -326,7 +326,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
|
|
|
326
326
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
327
327
|
// and setting attributes through setAttribute etc, this is helpful
|
|
328
328
|
attributeChangedCallback(e, t, n) {
|
|
329
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
329
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ct(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
330
330
|
}
|
|
331
331
|
disconnectedCallback() {
|
|
332
332
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -339,7 +339,7 @@ typeof HTMLElement == "function" && (On = class extends HTMLElement {
|
|
|
339
339
|
) || e;
|
|
340
340
|
}
|
|
341
341
|
});
|
|
342
|
-
function
|
|
342
|
+
function ct(e, t, n, r) {
|
|
343
343
|
const i = n[e]?.type;
|
|
344
344
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
345
345
|
return t;
|
|
@@ -368,7 +368,7 @@ function ut(e, t, n, r) {
|
|
|
368
368
|
return t;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
function Tr(e, t, n, r, i,
|
|
371
|
+
function Tr(e, t, n, r, i, o) {
|
|
372
372
|
let l = class extends On {
|
|
373
373
|
constructor() {
|
|
374
374
|
super(e, n, i), this.$$p_d = t;
|
|
@@ -385,7 +385,7 @@ function Tr(e, t, n, r, i, a) {
|
|
|
385
385
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
386
386
|
},
|
|
387
387
|
set(h) {
|
|
388
|
-
h =
|
|
388
|
+
h = ct(s, h, t), this.$$d[s] = h, this.$$c?.$set({ [s]: h });
|
|
389
389
|
}
|
|
390
390
|
});
|
|
391
391
|
}), r.forEach((s) => {
|
|
@@ -443,111 +443,134 @@ class wr {
|
|
|
443
443
|
}
|
|
444
444
|
const Sr = "4";
|
|
445
445
|
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Sr);
|
|
446
|
-
const Ne = [];
|
|
447
446
|
function Ar(e, t) {
|
|
447
|
+
if (e) {
|
|
448
|
+
const n = document.createElement("style");
|
|
449
|
+
n.innerHTML = t, e.appendChild(n);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
function Cr(e, t) {
|
|
453
|
+
const n = new URL(t);
|
|
454
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
455
|
+
const i = document.createElement("style");
|
|
456
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
457
|
+
}).catch((r) => {
|
|
458
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
function Hr(e, t, n) {
|
|
462
|
+
if (window.emMessageBus) {
|
|
463
|
+
const r = document.createElement("style");
|
|
464
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
465
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
const Pe = [];
|
|
470
|
+
function Or(e, t) {
|
|
448
471
|
return {
|
|
449
|
-
subscribe:
|
|
472
|
+
subscribe: yt(e, t).subscribe
|
|
450
473
|
};
|
|
451
474
|
}
|
|
452
|
-
function
|
|
475
|
+
function yt(e, t = se) {
|
|
453
476
|
let n;
|
|
454
477
|
const r = /* @__PURE__ */ new Set();
|
|
455
478
|
function i(s) {
|
|
456
479
|
if (An(e, s) && (e = s, n)) {
|
|
457
|
-
const h = !
|
|
480
|
+
const h = !Pe.length;
|
|
458
481
|
for (const u of r)
|
|
459
|
-
u[1](),
|
|
482
|
+
u[1](), Pe.push(u, e);
|
|
460
483
|
if (h) {
|
|
461
|
-
for (let u = 0; u <
|
|
462
|
-
|
|
463
|
-
|
|
484
|
+
for (let u = 0; u < Pe.length; u += 2)
|
|
485
|
+
Pe[u][0](Pe[u + 1]);
|
|
486
|
+
Pe.length = 0;
|
|
464
487
|
}
|
|
465
488
|
}
|
|
466
489
|
}
|
|
467
|
-
function
|
|
490
|
+
function o(s) {
|
|
468
491
|
i(s(e));
|
|
469
492
|
}
|
|
470
493
|
function l(s, h = se) {
|
|
471
494
|
const u = [s, h];
|
|
472
|
-
return r.add(u), r.size === 1 && (n = t(i,
|
|
495
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || se), s(e), () => {
|
|
473
496
|
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
474
497
|
};
|
|
475
498
|
}
|
|
476
|
-
return { set: i, update:
|
|
499
|
+
return { set: i, update: o, subscribe: l };
|
|
477
500
|
}
|
|
478
|
-
function
|
|
501
|
+
function Ve(e, t, n) {
|
|
479
502
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
480
503
|
if (!i.every(Boolean))
|
|
481
504
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
482
|
-
const
|
|
483
|
-
return
|
|
505
|
+
const o = t.length < 2;
|
|
506
|
+
return Or(n, (l, s) => {
|
|
484
507
|
let h = !1;
|
|
485
508
|
const u = [];
|
|
486
|
-
let d = 0,
|
|
487
|
-
const
|
|
509
|
+
let d = 0, m = se;
|
|
510
|
+
const g = () => {
|
|
488
511
|
if (d)
|
|
489
512
|
return;
|
|
490
|
-
|
|
491
|
-
const
|
|
492
|
-
|
|
493
|
-
},
|
|
494
|
-
(
|
|
495
|
-
|
|
496
|
-
(
|
|
497
|
-
u[
|
|
513
|
+
m();
|
|
514
|
+
const B = t(r ? u[0] : u, l, s);
|
|
515
|
+
o ? l(B) : m = Qt(B) ? B : se;
|
|
516
|
+
}, _ = i.map(
|
|
517
|
+
(B, T) => Cn(
|
|
518
|
+
B,
|
|
519
|
+
(x) => {
|
|
520
|
+
u[T] = x, d &= ~(1 << T), h && g();
|
|
498
521
|
},
|
|
499
522
|
() => {
|
|
500
|
-
d |= 1 <<
|
|
523
|
+
d |= 1 << T;
|
|
501
524
|
}
|
|
502
525
|
)
|
|
503
526
|
);
|
|
504
|
-
return h = !0,
|
|
505
|
-
|
|
527
|
+
return h = !0, g(), function() {
|
|
528
|
+
je(_), m(), h = !1;
|
|
506
529
|
};
|
|
507
530
|
});
|
|
508
531
|
}
|
|
509
|
-
var
|
|
510
|
-
function
|
|
532
|
+
var Rr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
533
|
+
function Lr(e) {
|
|
511
534
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
512
535
|
}
|
|
513
|
-
var
|
|
514
|
-
return
|
|
536
|
+
var Mr = function(t) {
|
|
537
|
+
return Nr(t) && !Ir(t);
|
|
515
538
|
};
|
|
516
|
-
function
|
|
539
|
+
function Nr(e) {
|
|
517
540
|
return !!e && typeof e == "object";
|
|
518
541
|
}
|
|
519
|
-
function
|
|
542
|
+
function Ir(e) {
|
|
520
543
|
var t = Object.prototype.toString.call(e);
|
|
521
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
544
|
+
return t === "[object RegExp]" || t === "[object Date]" || Ur(e);
|
|
522
545
|
}
|
|
523
|
-
var
|
|
524
|
-
function
|
|
525
|
-
return e.$$typeof ===
|
|
546
|
+
var Pr = typeof Symbol == "function" && Symbol.for, Dr = Pr ? Symbol.for("react.element") : 60103;
|
|
547
|
+
function Ur(e) {
|
|
548
|
+
return e.$$typeof === Dr;
|
|
526
549
|
}
|
|
527
|
-
function
|
|
550
|
+
function Fr(e) {
|
|
528
551
|
return Array.isArray(e) ? [] : {};
|
|
529
552
|
}
|
|
530
|
-
function
|
|
531
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
553
|
+
function tt(e, t) {
|
|
554
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Fe(Fr(e), e, t) : e;
|
|
532
555
|
}
|
|
533
|
-
function
|
|
556
|
+
function Gr(e, t, n) {
|
|
534
557
|
return e.concat(t).map(function(r) {
|
|
535
|
-
return
|
|
558
|
+
return tt(r, n);
|
|
536
559
|
});
|
|
537
560
|
}
|
|
538
|
-
function
|
|
561
|
+
function $r(e, t) {
|
|
539
562
|
if (!t.customMerge)
|
|
540
|
-
return
|
|
563
|
+
return Fe;
|
|
541
564
|
var n = t.customMerge(e);
|
|
542
|
-
return typeof n == "function" ? n :
|
|
565
|
+
return typeof n == "function" ? n : Fe;
|
|
543
566
|
}
|
|
544
|
-
function
|
|
567
|
+
function kr(e) {
|
|
545
568
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
546
569
|
return Object.propertyIsEnumerable.call(e, t);
|
|
547
570
|
}) : [];
|
|
548
571
|
}
|
|
549
|
-
function
|
|
550
|
-
return Object.keys(e).concat(
|
|
572
|
+
function on(e) {
|
|
573
|
+
return Object.keys(e).concat(kr(e));
|
|
551
574
|
}
|
|
552
575
|
function Rn(e, t) {
|
|
553
576
|
try {
|
|
@@ -556,31 +579,31 @@ function Rn(e, t) {
|
|
|
556
579
|
return !1;
|
|
557
580
|
}
|
|
558
581
|
}
|
|
559
|
-
function
|
|
582
|
+
function jr(e, t) {
|
|
560
583
|
return Rn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
561
584
|
}
|
|
562
|
-
function
|
|
585
|
+
function Vr(e, t, n) {
|
|
563
586
|
var r = {};
|
|
564
|
-
return n.isMergeableObject(e) &&
|
|
565
|
-
r[i] =
|
|
566
|
-
}),
|
|
567
|
-
|
|
587
|
+
return n.isMergeableObject(e) && on(e).forEach(function(i) {
|
|
588
|
+
r[i] = tt(e[i], n);
|
|
589
|
+
}), on(t).forEach(function(i) {
|
|
590
|
+
jr(e, i) || (Rn(e, i) && n.isMergeableObject(t[i]) ? r[i] = $r(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
|
|
568
591
|
}), r;
|
|
569
592
|
}
|
|
570
|
-
function
|
|
571
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
572
|
-
var r = Array.isArray(t), i = Array.isArray(e),
|
|
573
|
-
return
|
|
593
|
+
function Fe(e, t, n) {
|
|
594
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Gr, n.isMergeableObject = n.isMergeableObject || Mr, n.cloneUnlessOtherwiseSpecified = tt;
|
|
595
|
+
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
596
|
+
return o ? r ? n.arrayMerge(e, t, n) : Vr(e, t, n) : tt(t, n);
|
|
574
597
|
}
|
|
575
|
-
|
|
598
|
+
Fe.all = function(t, n) {
|
|
576
599
|
if (!Array.isArray(t))
|
|
577
600
|
throw new Error("first argument should be an array");
|
|
578
601
|
return t.reduce(function(r, i) {
|
|
579
|
-
return
|
|
602
|
+
return Fe(r, i, n);
|
|
580
603
|
}, {});
|
|
581
604
|
};
|
|
582
|
-
var
|
|
583
|
-
const
|
|
605
|
+
var Xr = Fe, zr = Xr;
|
|
606
|
+
const Wr = /* @__PURE__ */ Lr(zr);
|
|
584
607
|
var Gt = function(e, t) {
|
|
585
608
|
return Gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
586
609
|
n.__proto__ = r;
|
|
@@ -588,7 +611,7 @@ var Gt = function(e, t) {
|
|
|
588
611
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
589
612
|
}, Gt(e, t);
|
|
590
613
|
};
|
|
591
|
-
function
|
|
614
|
+
function vt(e, t) {
|
|
592
615
|
if (typeof t != "function" && t !== null)
|
|
593
616
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
594
617
|
Gt(e, t);
|
|
@@ -601,12 +624,12 @@ var I = function() {
|
|
|
601
624
|
return I = Object.assign || function(t) {
|
|
602
625
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
603
626
|
n = arguments[r];
|
|
604
|
-
for (var
|
|
627
|
+
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
605
628
|
}
|
|
606
629
|
return t;
|
|
607
630
|
}, I.apply(this, arguments);
|
|
608
631
|
};
|
|
609
|
-
function
|
|
632
|
+
function Zr(e, t) {
|
|
610
633
|
var n = {};
|
|
611
634
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
612
635
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -615,41 +638,41 @@ function Xr(e, t) {
|
|
|
615
638
|
return n;
|
|
616
639
|
}
|
|
617
640
|
function Rt(e, t, n) {
|
|
618
|
-
if (n || arguments.length === 2) for (var r = 0, i = t.length,
|
|
619
|
-
(
|
|
620
|
-
return e.concat(
|
|
641
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, o; r < i; r++)
|
|
642
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
643
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
621
644
|
}
|
|
622
645
|
function Lt(e, t) {
|
|
623
|
-
var n = t && t.cache ? t.cache :
|
|
646
|
+
var n = t && t.cache ? t.cache : ti, r = t && t.serializer ? t.serializer : Kr, i = t && t.strategy ? t.strategy : Jr;
|
|
624
647
|
return i(e, {
|
|
625
648
|
cache: n,
|
|
626
649
|
serializer: r
|
|
627
650
|
});
|
|
628
651
|
}
|
|
629
|
-
function
|
|
652
|
+
function qr(e) {
|
|
630
653
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
631
654
|
}
|
|
632
|
-
function
|
|
633
|
-
var i =
|
|
634
|
-
return typeof
|
|
655
|
+
function Qr(e, t, n, r) {
|
|
656
|
+
var i = qr(r) ? r : n(r), o = t.get(i);
|
|
657
|
+
return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
|
|
635
658
|
}
|
|
636
659
|
function Ln(e, t, n) {
|
|
637
|
-
var r = Array.prototype.slice.call(arguments, 3), i = n(r),
|
|
638
|
-
return typeof
|
|
660
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
661
|
+
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
639
662
|
}
|
|
640
663
|
function Mn(e, t, n, r, i) {
|
|
641
664
|
return n.bind(t, e, r, i);
|
|
642
665
|
}
|
|
643
|
-
function
|
|
644
|
-
var n = e.length === 1 ?
|
|
666
|
+
function Jr(e, t) {
|
|
667
|
+
var n = e.length === 1 ? Qr : Ln;
|
|
645
668
|
return Mn(e, this, n, t.cache.create(), t.serializer);
|
|
646
669
|
}
|
|
647
|
-
function
|
|
670
|
+
function Yr(e, t) {
|
|
648
671
|
return Mn(e, this, Ln, t.cache.create(), t.serializer);
|
|
649
672
|
}
|
|
650
|
-
var
|
|
673
|
+
var Kr = function() {
|
|
651
674
|
return JSON.stringify(arguments);
|
|
652
|
-
},
|
|
675
|
+
}, ei = (
|
|
653
676
|
/** @class */
|
|
654
677
|
function() {
|
|
655
678
|
function e() {
|
|
@@ -661,61 +684,61 @@ var Qr = function() {
|
|
|
661
684
|
this.cache[t] = n;
|
|
662
685
|
}, e;
|
|
663
686
|
}()
|
|
664
|
-
),
|
|
687
|
+
), ti = {
|
|
665
688
|
create: function() {
|
|
666
|
-
return new
|
|
689
|
+
return new ei();
|
|
667
690
|
}
|
|
668
691
|
}, Mt = {
|
|
669
|
-
variadic:
|
|
670
|
-
},
|
|
692
|
+
variadic: Yr
|
|
693
|
+
}, O;
|
|
671
694
|
(function(e) {
|
|
672
695
|
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";
|
|
673
|
-
})(
|
|
674
|
-
var
|
|
696
|
+
})(O || (O = {}));
|
|
697
|
+
var k;
|
|
675
698
|
(function(e) {
|
|
676
699
|
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";
|
|
677
|
-
})(
|
|
678
|
-
var
|
|
700
|
+
})(k || (k = {}));
|
|
701
|
+
var Ge;
|
|
679
702
|
(function(e) {
|
|
680
703
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
681
|
-
})(
|
|
682
|
-
function
|
|
683
|
-
return e.type ===
|
|
704
|
+
})(Ge || (Ge = {}));
|
|
705
|
+
function an(e) {
|
|
706
|
+
return e.type === k.literal;
|
|
684
707
|
}
|
|
685
|
-
function
|
|
686
|
-
return e.type ===
|
|
708
|
+
function ni(e) {
|
|
709
|
+
return e.type === k.argument;
|
|
687
710
|
}
|
|
688
711
|
function Nn(e) {
|
|
689
|
-
return e.type ===
|
|
712
|
+
return e.type === k.number;
|
|
690
713
|
}
|
|
691
714
|
function In(e) {
|
|
692
|
-
return e.type ===
|
|
715
|
+
return e.type === k.date;
|
|
693
716
|
}
|
|
694
717
|
function Pn(e) {
|
|
695
|
-
return e.type ===
|
|
718
|
+
return e.type === k.time;
|
|
696
719
|
}
|
|
697
720
|
function Dn(e) {
|
|
698
|
-
return e.type ===
|
|
721
|
+
return e.type === k.select;
|
|
699
722
|
}
|
|
700
723
|
function Un(e) {
|
|
701
|
-
return e.type ===
|
|
724
|
+
return e.type === k.plural;
|
|
702
725
|
}
|
|
703
|
-
function
|
|
704
|
-
return e.type ===
|
|
726
|
+
function ri(e) {
|
|
727
|
+
return e.type === k.pound;
|
|
705
728
|
}
|
|
706
729
|
function Fn(e) {
|
|
707
|
-
return e.type ===
|
|
730
|
+
return e.type === k.tag;
|
|
708
731
|
}
|
|
709
732
|
function Gn(e) {
|
|
710
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
733
|
+
return !!(e && typeof e == "object" && e.type === Ge.number);
|
|
711
734
|
}
|
|
712
735
|
function $t(e) {
|
|
713
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
736
|
+
return !!(e && typeof e == "object" && e.type === Ge.dateTime);
|
|
714
737
|
}
|
|
715
|
-
var $n = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
716
|
-
function
|
|
738
|
+
var $n = /[ \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;
|
|
739
|
+
function oi(e) {
|
|
717
740
|
var t = {};
|
|
718
|
-
return e.replace(
|
|
741
|
+
return e.replace(ii, function(n) {
|
|
719
742
|
var r = n.length;
|
|
720
743
|
switch (n[0]) {
|
|
721
744
|
case "G":
|
|
@@ -804,29 +827,29 @@ function ni(e) {
|
|
|
804
827
|
return "";
|
|
805
828
|
}), t;
|
|
806
829
|
}
|
|
807
|
-
var
|
|
808
|
-
function
|
|
830
|
+
var ai = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
831
|
+
function si(e) {
|
|
809
832
|
if (e.length === 0)
|
|
810
833
|
throw new Error("Number skeleton cannot be empty");
|
|
811
|
-
for (var t = e.split(
|
|
812
|
-
return
|
|
834
|
+
for (var t = e.split(ai).filter(function(g) {
|
|
835
|
+
return g.length > 0;
|
|
813
836
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
814
|
-
var
|
|
837
|
+
var o = i[r], l = o.split("/");
|
|
815
838
|
if (l.length === 0)
|
|
816
839
|
throw new Error("Invalid number skeleton");
|
|
817
840
|
for (var s = l[0], h = l.slice(1), u = 0, d = h; u < d.length; u++) {
|
|
818
|
-
var
|
|
819
|
-
if (
|
|
841
|
+
var m = d[u];
|
|
842
|
+
if (m.length === 0)
|
|
820
843
|
throw new Error("Invalid number skeleton");
|
|
821
844
|
}
|
|
822
845
|
n.push({ stem: s, options: h });
|
|
823
846
|
}
|
|
824
847
|
return n;
|
|
825
848
|
}
|
|
826
|
-
function
|
|
849
|
+
function li(e) {
|
|
827
850
|
return e.replace(/^(.*?)-/, "");
|
|
828
851
|
}
|
|
829
|
-
var sn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kn = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
852
|
+
var sn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, kn = /^(@+)?(\+|#+)?[rs]?$/g, ui = /(\*)(0+)|(#+)(0+)|(0+)/g, jn = /^(0+)$/;
|
|
830
853
|
function ln(e) {
|
|
831
854
|
var t = {};
|
|
832
855
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(kn, function(n, r, i) {
|
|
@@ -873,7 +896,7 @@ function Vn(e) {
|
|
|
873
896
|
};
|
|
874
897
|
}
|
|
875
898
|
}
|
|
876
|
-
function
|
|
899
|
+
function ci(e) {
|
|
877
900
|
var t;
|
|
878
901
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
879
902
|
notation: "engineering"
|
|
@@ -891,7 +914,7 @@ function un(e) {
|
|
|
891
914
|
var t = {}, n = Vn(e);
|
|
892
915
|
return n || t;
|
|
893
916
|
}
|
|
894
|
-
function
|
|
917
|
+
function hi(e) {
|
|
895
918
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
896
919
|
var i = r[n];
|
|
897
920
|
switch (i.stem) {
|
|
@@ -915,7 +938,7 @@ function li(e) {
|
|
|
915
938
|
continue;
|
|
916
939
|
case "measure-unit":
|
|
917
940
|
case "unit":
|
|
918
|
-
t.style = "unit", t.unit =
|
|
941
|
+
t.style = "unit", t.unit = li(i.options[0]);
|
|
919
942
|
continue;
|
|
920
943
|
case "compact-short":
|
|
921
944
|
case "K":
|
|
@@ -977,13 +1000,13 @@ function li(e) {
|
|
|
977
1000
|
case "integer-width":
|
|
978
1001
|
if (i.options.length > 1)
|
|
979
1002
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
980
|
-
i.options[0].replace(
|
|
1003
|
+
i.options[0].replace(ui, function(h, u, d, m, g, _) {
|
|
981
1004
|
if (u)
|
|
982
1005
|
t.minimumIntegerDigits = d.length;
|
|
983
1006
|
else {
|
|
984
|
-
if (
|
|
1007
|
+
if (m && g)
|
|
985
1008
|
throw new Error("We currently do not support maximum integer digits");
|
|
986
|
-
if (
|
|
1009
|
+
if (_)
|
|
987
1010
|
throw new Error("We currently do not support exact integer digits");
|
|
988
1011
|
}
|
|
989
1012
|
return "";
|
|
@@ -997,11 +1020,11 @@ function li(e) {
|
|
|
997
1020
|
if (sn.test(i.stem)) {
|
|
998
1021
|
if (i.options.length > 1)
|
|
999
1022
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1000
|
-
i.stem.replace(sn, function(h, u, d,
|
|
1001
|
-
return d === "*" ? t.minimumFractionDigits = u.length :
|
|
1023
|
+
i.stem.replace(sn, function(h, u, d, m, g, _) {
|
|
1024
|
+
return d === "*" ? t.minimumFractionDigits = u.length : m && m[0] === "#" ? t.maximumFractionDigits = m.length : g && _ ? (t.minimumFractionDigits = g.length, t.maximumFractionDigits = g.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1002
1025
|
});
|
|
1003
|
-
var
|
|
1004
|
-
|
|
1026
|
+
var o = i.options[0];
|
|
1027
|
+
o === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = I(I({}, t), ln(o)));
|
|
1005
1028
|
continue;
|
|
1006
1029
|
}
|
|
1007
1030
|
if (kn.test(i.stem)) {
|
|
@@ -1010,12 +1033,12 @@ function li(e) {
|
|
|
1010
1033
|
}
|
|
1011
1034
|
var l = Vn(i.stem);
|
|
1012
1035
|
l && (t = I(I({}, t), l));
|
|
1013
|
-
var s =
|
|
1036
|
+
var s = ci(i.stem);
|
|
1014
1037
|
s && (t = I(I({}, t), s));
|
|
1015
1038
|
}
|
|
1016
1039
|
return t;
|
|
1017
1040
|
}
|
|
1018
|
-
var
|
|
1041
|
+
var ut = {
|
|
1019
1042
|
"001": [
|
|
1020
1043
|
"H",
|
|
1021
1044
|
"h"
|
|
@@ -2430,13 +2453,13 @@ var lt = {
|
|
|
2430
2453
|
"h"
|
|
2431
2454
|
]
|
|
2432
2455
|
};
|
|
2433
|
-
function
|
|
2456
|
+
function fi(e, t) {
|
|
2434
2457
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2435
2458
|
var i = e.charAt(r);
|
|
2436
2459
|
if (i === "j") {
|
|
2437
|
-
for (var
|
|
2438
|
-
|
|
2439
|
-
var l = 1 + (
|
|
2460
|
+
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2461
|
+
o++, r++;
|
|
2462
|
+
var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = di(t);
|
|
2440
2463
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2441
2464
|
n += h;
|
|
2442
2465
|
for (; l-- > 0; )
|
|
@@ -2445,7 +2468,7 @@ function ui(e, t) {
|
|
|
2445
2468
|
}
|
|
2446
2469
|
return n;
|
|
2447
2470
|
}
|
|
2448
|
-
function
|
|
2471
|
+
function di(e) {
|
|
2449
2472
|
var t = e.hourCycle;
|
|
2450
2473
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2451
2474
|
e.hourCycles && // @ts-ignore
|
|
@@ -2464,23 +2487,23 @@ function ci(e) {
|
|
|
2464
2487
|
}
|
|
2465
2488
|
var n = e.language, r;
|
|
2466
2489
|
n !== "root" && (r = e.maximize().region);
|
|
2467
|
-
var i =
|
|
2490
|
+
var i = ut[r || ""] || ut[n || ""] || ut["".concat(n, "-001")] || ut["001"];
|
|
2468
2491
|
return i[0];
|
|
2469
2492
|
}
|
|
2470
|
-
var Nt,
|
|
2471
|
-
function
|
|
2493
|
+
var Nt, pi = new RegExp("^".concat($n.source, "*")), mi = new RegExp("".concat($n.source, "*$"));
|
|
2494
|
+
function M(e, t) {
|
|
2472
2495
|
return { start: e, end: t };
|
|
2473
2496
|
}
|
|
2474
|
-
var
|
|
2497
|
+
var gi = !!String.prototype.startsWith && "_a".startsWith("a", 1), bi = !!String.fromCodePoint, yi = !!Object.fromEntries, vi = !!String.prototype.codePointAt, Ei = !!String.prototype.trimStart, xi = !!String.prototype.trimEnd, _i = !!Number.isSafeInteger, Bi = _i ? Number.isSafeInteger : function(e) {
|
|
2475
2498
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2476
2499
|
}, kt = !0;
|
|
2477
2500
|
try {
|
|
2478
|
-
var
|
|
2479
|
-
kt = ((Nt =
|
|
2501
|
+
var Ti = zn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2502
|
+
kt = ((Nt = Ti.exec("a")) === null || Nt === void 0 ? void 0 : Nt[0]) === "a";
|
|
2480
2503
|
} catch {
|
|
2481
2504
|
kt = !1;
|
|
2482
2505
|
}
|
|
2483
|
-
var cn =
|
|
2506
|
+
var cn = gi ? (
|
|
2484
2507
|
// Native
|
|
2485
2508
|
function(t, n, r) {
|
|
2486
2509
|
return t.startsWith(n, r);
|
|
@@ -2490,13 +2513,13 @@ var cn = di ? (
|
|
|
2490
2513
|
function(t, n, r) {
|
|
2491
2514
|
return t.slice(r, r + n.length) === n;
|
|
2492
2515
|
}
|
|
2493
|
-
), jt =
|
|
2516
|
+
), jt = bi ? String.fromCodePoint : (
|
|
2494
2517
|
// IE11
|
|
2495
2518
|
function() {
|
|
2496
2519
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2497
2520
|
t[n] = arguments[n];
|
|
2498
|
-
for (var r = "", i = t.length,
|
|
2499
|
-
if (l = t[
|
|
2521
|
+
for (var r = "", i = t.length, o = 0, l; i > o; ) {
|
|
2522
|
+
if (l = t[o++], l > 1114111)
|
|
2500
2523
|
throw RangeError(l + " is not a valid code point");
|
|
2501
2524
|
r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
|
|
2502
2525
|
}
|
|
@@ -2504,17 +2527,17 @@ var cn = di ? (
|
|
|
2504
2527
|
}
|
|
2505
2528
|
), hn = (
|
|
2506
2529
|
// native
|
|
2507
|
-
|
|
2530
|
+
yi ? Object.fromEntries : (
|
|
2508
2531
|
// Ponyfill
|
|
2509
2532
|
function(t) {
|
|
2510
2533
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2511
|
-
var
|
|
2534
|
+
var o = i[r], l = o[0], s = o[1];
|
|
2512
2535
|
n[l] = s;
|
|
2513
2536
|
}
|
|
2514
2537
|
return n;
|
|
2515
2538
|
}
|
|
2516
2539
|
)
|
|
2517
|
-
), Xn =
|
|
2540
|
+
), Xn = vi ? (
|
|
2518
2541
|
// Native
|
|
2519
2542
|
function(t, n) {
|
|
2520
2543
|
return t.codePointAt(n);
|
|
@@ -2524,11 +2547,11 @@ var cn = di ? (
|
|
|
2524
2547
|
function(t, n) {
|
|
2525
2548
|
var r = t.length;
|
|
2526
2549
|
if (!(n < 0 || n >= r)) {
|
|
2527
|
-
var i = t.charCodeAt(n),
|
|
2528
|
-
return i < 55296 || i > 56319 || n + 1 === r || (
|
|
2550
|
+
var i = t.charCodeAt(n), o;
|
|
2551
|
+
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2529
2552
|
}
|
|
2530
2553
|
}
|
|
2531
|
-
),
|
|
2554
|
+
), wi = Ei ? (
|
|
2532
2555
|
// Native
|
|
2533
2556
|
function(t) {
|
|
2534
2557
|
return t.trimStart();
|
|
@@ -2536,9 +2559,9 @@ var cn = di ? (
|
|
|
2536
2559
|
) : (
|
|
2537
2560
|
// Ponyfill
|
|
2538
2561
|
function(t) {
|
|
2539
|
-
return t.replace(
|
|
2562
|
+
return t.replace(pi, "");
|
|
2540
2563
|
}
|
|
2541
|
-
),
|
|
2564
|
+
), Si = xi ? (
|
|
2542
2565
|
// Native
|
|
2543
2566
|
function(t) {
|
|
2544
2567
|
return t.trimEnd();
|
|
@@ -2546,7 +2569,7 @@ var cn = di ? (
|
|
|
2546
2569
|
) : (
|
|
2547
2570
|
// Ponyfill
|
|
2548
2571
|
function(t) {
|
|
2549
|
-
return t.replace(
|
|
2572
|
+
return t.replace(mi, "");
|
|
2550
2573
|
}
|
|
2551
2574
|
);
|
|
2552
2575
|
function zn(e, t) {
|
|
@@ -2565,13 +2588,13 @@ if (kt) {
|
|
|
2565
2588
|
Vt = function(t, n) {
|
|
2566
2589
|
for (var r = []; ; ) {
|
|
2567
2590
|
var i = Xn(t, n);
|
|
2568
|
-
if (i === void 0 || Wn(i) ||
|
|
2591
|
+
if (i === void 0 || Wn(i) || Oi(i))
|
|
2569
2592
|
break;
|
|
2570
2593
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2571
2594
|
}
|
|
2572
2595
|
return jt.apply(void 0, r);
|
|
2573
2596
|
};
|
|
2574
|
-
var
|
|
2597
|
+
var Ai = (
|
|
2575
2598
|
/** @class */
|
|
2576
2599
|
function() {
|
|
2577
2600
|
function e(t, n) {
|
|
@@ -2583,26 +2606,26 @@ var Ti = (
|
|
|
2583
2606
|
return this.parseMessage(0, "", !1);
|
|
2584
2607
|
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2585
2608
|
for (var i = []; !this.isEOF(); ) {
|
|
2586
|
-
var
|
|
2587
|
-
if (
|
|
2609
|
+
var o = this.char();
|
|
2610
|
+
if (o === 123) {
|
|
2588
2611
|
var l = this.parseArgument(t, r);
|
|
2589
2612
|
if (l.err)
|
|
2590
2613
|
return l;
|
|
2591
2614
|
i.push(l.val);
|
|
2592
2615
|
} else {
|
|
2593
|
-
if (
|
|
2616
|
+
if (o === 125 && t > 0)
|
|
2594
2617
|
break;
|
|
2595
|
-
if (
|
|
2618
|
+
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2596
2619
|
var s = this.clonePosition();
|
|
2597
2620
|
this.bump(), i.push({
|
|
2598
|
-
type:
|
|
2599
|
-
location:
|
|
2621
|
+
type: k.pound,
|
|
2622
|
+
location: M(s, this.clonePosition())
|
|
2600
2623
|
});
|
|
2601
|
-
} else if (
|
|
2624
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2602
2625
|
if (r)
|
|
2603
2626
|
break;
|
|
2604
|
-
return this.error(
|
|
2605
|
-
} else if (
|
|
2627
|
+
return this.error(O.UNMATCHED_CLOSING_TAG, M(this.clonePosition(), this.clonePosition()));
|
|
2628
|
+
} else if (o === 60 && !this.ignoreTag && Xt(this.peek() || 0)) {
|
|
2606
2629
|
var l = this.parseTag(t, n);
|
|
2607
2630
|
if (l.err)
|
|
2608
2631
|
return l;
|
|
@@ -2623,44 +2646,44 @@ var Ti = (
|
|
|
2623
2646
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2624
2647
|
return {
|
|
2625
2648
|
val: {
|
|
2626
|
-
type:
|
|
2649
|
+
type: k.literal,
|
|
2627
2650
|
value: "<".concat(i, "/>"),
|
|
2628
|
-
location:
|
|
2651
|
+
location: M(r, this.clonePosition())
|
|
2629
2652
|
},
|
|
2630
2653
|
err: null
|
|
2631
2654
|
};
|
|
2632
2655
|
if (this.bumpIf(">")) {
|
|
2633
|
-
var
|
|
2634
|
-
if (
|
|
2635
|
-
return
|
|
2636
|
-
var l =
|
|
2656
|
+
var o = this.parseMessage(t + 1, n, !0);
|
|
2657
|
+
if (o.err)
|
|
2658
|
+
return o;
|
|
2659
|
+
var l = o.val, s = this.clonePosition();
|
|
2637
2660
|
if (this.bumpIf("</")) {
|
|
2638
2661
|
if (this.isEOF() || !Xt(this.char()))
|
|
2639
|
-
return this.error(
|
|
2662
|
+
return this.error(O.INVALID_TAG, M(s, this.clonePosition()));
|
|
2640
2663
|
var h = this.clonePosition(), u = this.parseTagName();
|
|
2641
|
-
return i !== u ? this.error(
|
|
2664
|
+
return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG, M(h, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2642
2665
|
val: {
|
|
2643
|
-
type:
|
|
2666
|
+
type: k.tag,
|
|
2644
2667
|
value: i,
|
|
2645
2668
|
children: l,
|
|
2646
|
-
location:
|
|
2669
|
+
location: M(r, this.clonePosition())
|
|
2647
2670
|
},
|
|
2648
2671
|
err: null
|
|
2649
|
-
} : this.error(
|
|
2672
|
+
} : this.error(O.INVALID_TAG, M(s, this.clonePosition())));
|
|
2650
2673
|
} else
|
|
2651
|
-
return this.error(
|
|
2674
|
+
return this.error(O.UNCLOSED_TAG, M(r, this.clonePosition()));
|
|
2652
2675
|
} else
|
|
2653
|
-
return this.error(
|
|
2676
|
+
return this.error(O.INVALID_TAG, M(r, this.clonePosition()));
|
|
2654
2677
|
}, e.prototype.parseTagName = function() {
|
|
2655
2678
|
var t = this.offset();
|
|
2656
|
-
for (this.bump(); !this.isEOF() &&
|
|
2679
|
+
for (this.bump(); !this.isEOF() && Hi(this.char()); )
|
|
2657
2680
|
this.bump();
|
|
2658
2681
|
return this.message.slice(t, this.offset());
|
|
2659
2682
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
2660
2683
|
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2661
|
-
var
|
|
2662
|
-
if (
|
|
2663
|
-
i +=
|
|
2684
|
+
var o = this.tryParseQuote(n);
|
|
2685
|
+
if (o) {
|
|
2686
|
+
i += o;
|
|
2664
2687
|
continue;
|
|
2665
2688
|
}
|
|
2666
2689
|
var l = this.tryParseUnquoted(t, n);
|
|
@@ -2675,14 +2698,14 @@ var Ti = (
|
|
|
2675
2698
|
}
|
|
2676
2699
|
break;
|
|
2677
2700
|
}
|
|
2678
|
-
var h =
|
|
2701
|
+
var h = M(r, this.clonePosition());
|
|
2679
2702
|
return {
|
|
2680
|
-
val: { type:
|
|
2703
|
+
val: { type: k.literal, value: i, location: h },
|
|
2681
2704
|
err: null
|
|
2682
2705
|
};
|
|
2683
2706
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2684
2707
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2685
|
-
!
|
|
2708
|
+
!Ci(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2686
2709
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2687
2710
|
if (this.isEOF() || this.char() !== 39)
|
|
2688
2711
|
return null;
|
|
@@ -2725,40 +2748,40 @@ var Ti = (
|
|
|
2725
2748
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2726
2749
|
var r = this.clonePosition();
|
|
2727
2750
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2728
|
-
return this.error(
|
|
2751
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
|
|
2729
2752
|
if (this.char() === 125)
|
|
2730
|
-
return this.bump(), this.error(
|
|
2753
|
+
return this.bump(), this.error(O.EMPTY_ARGUMENT, M(r, this.clonePosition()));
|
|
2731
2754
|
var i = this.parseIdentifierIfPossible().value;
|
|
2732
2755
|
if (!i)
|
|
2733
|
-
return this.error(
|
|
2756
|
+
return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
|
|
2734
2757
|
if (this.bumpSpace(), this.isEOF())
|
|
2735
|
-
return this.error(
|
|
2758
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
|
|
2736
2759
|
switch (this.char()) {
|
|
2737
2760
|
case 125:
|
|
2738
2761
|
return this.bump(), {
|
|
2739
2762
|
val: {
|
|
2740
|
-
type:
|
|
2763
|
+
type: k.argument,
|
|
2741
2764
|
// value does not include the opening and closing braces.
|
|
2742
2765
|
value: i,
|
|
2743
|
-
location:
|
|
2766
|
+
location: M(r, this.clonePosition())
|
|
2744
2767
|
},
|
|
2745
2768
|
err: null
|
|
2746
2769
|
};
|
|
2747
2770
|
case 44:
|
|
2748
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2771
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2749
2772
|
default:
|
|
2750
|
-
return this.error(
|
|
2773
|
+
return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
|
|
2751
2774
|
}
|
|
2752
2775
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2753
2776
|
var t = this.clonePosition(), n = this.offset(), r = Vt(this.message, n), i = n + r.length;
|
|
2754
2777
|
this.bumpTo(i);
|
|
2755
|
-
var
|
|
2778
|
+
var o = this.clonePosition(), l = M(t, o);
|
|
2756
2779
|
return { value: r, location: l };
|
|
2757
2780
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2758
|
-
var
|
|
2781
|
+
var o, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, h = this.clonePosition();
|
|
2759
2782
|
switch (s) {
|
|
2760
2783
|
case "":
|
|
2761
|
-
return this.error(
|
|
2784
|
+
return this.error(O.EXPECT_ARGUMENT_TYPE, M(l, h));
|
|
2762
2785
|
case "number":
|
|
2763
2786
|
case "date":
|
|
2764
2787
|
case "time": {
|
|
@@ -2766,50 +2789,50 @@ var Ti = (
|
|
|
2766
2789
|
var u = null;
|
|
2767
2790
|
if (this.bumpIf(",")) {
|
|
2768
2791
|
this.bumpSpace();
|
|
2769
|
-
var d = this.clonePosition(),
|
|
2770
|
-
if (
|
|
2771
|
-
return
|
|
2772
|
-
var
|
|
2773
|
-
if (
|
|
2774
|
-
return this.error(
|
|
2775
|
-
var
|
|
2776
|
-
u = { style:
|
|
2792
|
+
var d = this.clonePosition(), m = this.parseSimpleArgStyleIfPossible();
|
|
2793
|
+
if (m.err)
|
|
2794
|
+
return m;
|
|
2795
|
+
var g = Si(m.val);
|
|
2796
|
+
if (g.length === 0)
|
|
2797
|
+
return this.error(O.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
|
|
2798
|
+
var _ = M(d, this.clonePosition());
|
|
2799
|
+
u = { style: g, styleLocation: _ };
|
|
2777
2800
|
}
|
|
2778
|
-
var
|
|
2779
|
-
if (
|
|
2780
|
-
return
|
|
2781
|
-
var
|
|
2801
|
+
var B = this.tryParseArgumentClose(i);
|
|
2802
|
+
if (B.err)
|
|
2803
|
+
return B;
|
|
2804
|
+
var T = M(i, this.clonePosition());
|
|
2782
2805
|
if (u && cn(u?.style, "::", 0)) {
|
|
2783
|
-
var
|
|
2806
|
+
var x = wi(u.style.slice(2));
|
|
2784
2807
|
if (s === "number") {
|
|
2785
|
-
var
|
|
2786
|
-
return
|
|
2787
|
-
val: { type:
|
|
2808
|
+
var m = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
2809
|
+
return m.err ? m : {
|
|
2810
|
+
val: { type: k.number, value: r, location: T, style: m.val },
|
|
2788
2811
|
err: null
|
|
2789
2812
|
};
|
|
2790
2813
|
} else {
|
|
2791
|
-
if (
|
|
2792
|
-
return this.error(
|
|
2793
|
-
var
|
|
2794
|
-
this.locale && (
|
|
2795
|
-
var
|
|
2796
|
-
type:
|
|
2797
|
-
pattern:
|
|
2814
|
+
if (x.length === 0)
|
|
2815
|
+
return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
|
|
2816
|
+
var S = x;
|
|
2817
|
+
this.locale && (S = fi(x, this.locale));
|
|
2818
|
+
var g = {
|
|
2819
|
+
type: Ge.dateTime,
|
|
2820
|
+
pattern: S,
|
|
2798
2821
|
location: u.styleLocation,
|
|
2799
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2800
|
-
},
|
|
2822
|
+
parsedOptions: this.shouldParseSkeletons ? oi(S) : {}
|
|
2823
|
+
}, D = s === "date" ? k.date : k.time;
|
|
2801
2824
|
return {
|
|
2802
|
-
val: { type:
|
|
2825
|
+
val: { type: D, value: r, location: T, style: g },
|
|
2803
2826
|
err: null
|
|
2804
2827
|
};
|
|
2805
2828
|
}
|
|
2806
2829
|
}
|
|
2807
2830
|
return {
|
|
2808
2831
|
val: {
|
|
2809
|
-
type: s === "number" ?
|
|
2832
|
+
type: s === "number" ? k.number : s === "date" ? k.date : k.time,
|
|
2810
2833
|
value: r,
|
|
2811
|
-
location:
|
|
2812
|
-
style: (
|
|
2834
|
+
location: T,
|
|
2835
|
+
style: (o = u?.style) !== null && o !== void 0 ? o : null
|
|
2813
2836
|
},
|
|
2814
2837
|
err: null
|
|
2815
2838
|
};
|
|
@@ -2817,52 +2840,52 @@ var Ti = (
|
|
|
2817
2840
|
case "plural":
|
|
2818
2841
|
case "selectordinal":
|
|
2819
2842
|
case "select": {
|
|
2820
|
-
var
|
|
2843
|
+
var H = this.clonePosition();
|
|
2821
2844
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2822
|
-
return this.error(
|
|
2845
|
+
return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(H, I({}, H)));
|
|
2823
2846
|
this.bumpSpace();
|
|
2824
|
-
var
|
|
2825
|
-
if (s !== "select" &&
|
|
2847
|
+
var U = this.parseIdentifierIfPossible(), W = 0;
|
|
2848
|
+
if (s !== "select" && U.value === "offset") {
|
|
2826
2849
|
if (!this.bumpIf(":"))
|
|
2827
|
-
return this.error(
|
|
2850
|
+
return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
|
|
2828
2851
|
this.bumpSpace();
|
|
2829
|
-
var
|
|
2830
|
-
if (
|
|
2831
|
-
return
|
|
2832
|
-
this.bumpSpace(),
|
|
2852
|
+
var m = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2853
|
+
if (m.err)
|
|
2854
|
+
return m;
|
|
2855
|
+
this.bumpSpace(), U = this.parseIdentifierIfPossible(), W = m.val;
|
|
2833
2856
|
}
|
|
2834
|
-
var
|
|
2835
|
-
if (
|
|
2836
|
-
return
|
|
2837
|
-
var
|
|
2838
|
-
if (
|
|
2839
|
-
return
|
|
2840
|
-
var
|
|
2857
|
+
var q = this.tryParsePluralOrSelectOptions(t, s, n, U);
|
|
2858
|
+
if (q.err)
|
|
2859
|
+
return q;
|
|
2860
|
+
var B = this.tryParseArgumentClose(i);
|
|
2861
|
+
if (B.err)
|
|
2862
|
+
return B;
|
|
2863
|
+
var Y = M(i, this.clonePosition());
|
|
2841
2864
|
return s === "select" ? {
|
|
2842
2865
|
val: {
|
|
2843
|
-
type:
|
|
2866
|
+
type: k.select,
|
|
2844
2867
|
value: r,
|
|
2845
|
-
options: hn(
|
|
2846
|
-
location:
|
|
2868
|
+
options: hn(q.val),
|
|
2869
|
+
location: Y
|
|
2847
2870
|
},
|
|
2848
2871
|
err: null
|
|
2849
2872
|
} : {
|
|
2850
2873
|
val: {
|
|
2851
|
-
type:
|
|
2874
|
+
type: k.plural,
|
|
2852
2875
|
value: r,
|
|
2853
|
-
options: hn(
|
|
2854
|
-
offset:
|
|
2876
|
+
options: hn(q.val),
|
|
2877
|
+
offset: W,
|
|
2855
2878
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2856
|
-
location:
|
|
2879
|
+
location: Y
|
|
2857
2880
|
},
|
|
2858
2881
|
err: null
|
|
2859
2882
|
};
|
|
2860
2883
|
}
|
|
2861
2884
|
default:
|
|
2862
|
-
return this.error(
|
|
2885
|
+
return this.error(O.INVALID_ARGUMENT_TYPE, M(l, h));
|
|
2863
2886
|
}
|
|
2864
2887
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2865
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2888
|
+
return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2866
2889
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2867
2890
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2868
2891
|
var r = this.char();
|
|
@@ -2871,7 +2894,7 @@ var Ti = (
|
|
|
2871
2894
|
this.bump();
|
|
2872
2895
|
var i = this.clonePosition();
|
|
2873
2896
|
if (!this.bumpUntil("'"))
|
|
2874
|
-
return this.error(
|
|
2897
|
+
return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, M(i, this.clonePosition()));
|
|
2875
2898
|
this.bump();
|
|
2876
2899
|
break;
|
|
2877
2900
|
}
|
|
@@ -2901,64 +2924,64 @@ var Ti = (
|
|
|
2901
2924
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2902
2925
|
var r = [];
|
|
2903
2926
|
try {
|
|
2904
|
-
r =
|
|
2927
|
+
r = si(t);
|
|
2905
2928
|
} catch {
|
|
2906
|
-
return this.error(
|
|
2929
|
+
return this.error(O.INVALID_NUMBER_SKELETON, n);
|
|
2907
2930
|
}
|
|
2908
2931
|
return {
|
|
2909
2932
|
val: {
|
|
2910
|
-
type:
|
|
2933
|
+
type: Ge.number,
|
|
2911
2934
|
tokens: r,
|
|
2912
2935
|
location: n,
|
|
2913
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2936
|
+
parsedOptions: this.shouldParseSkeletons ? hi(r) : {}
|
|
2914
2937
|
},
|
|
2915
2938
|
err: null
|
|
2916
2939
|
};
|
|
2917
2940
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2918
|
-
for (var
|
|
2941
|
+
for (var o, l = !1, s = [], h = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
|
|
2919
2942
|
if (u.length === 0) {
|
|
2920
|
-
var
|
|
2943
|
+
var m = this.clonePosition();
|
|
2921
2944
|
if (n !== "select" && this.bumpIf("=")) {
|
|
2922
|
-
var
|
|
2923
|
-
if (
|
|
2924
|
-
return
|
|
2925
|
-
d =
|
|
2945
|
+
var g = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2946
|
+
if (g.err)
|
|
2947
|
+
return g;
|
|
2948
|
+
d = M(m, this.clonePosition()), u = this.message.slice(m.offset, this.offset());
|
|
2926
2949
|
} else
|
|
2927
2950
|
break;
|
|
2928
2951
|
}
|
|
2929
2952
|
if (h.has(u))
|
|
2930
|
-
return this.error(n === "select" ?
|
|
2953
|
+
return this.error(n === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
|
|
2931
2954
|
u === "other" && (l = !0), this.bumpSpace();
|
|
2932
|
-
var
|
|
2955
|
+
var _ = this.clonePosition();
|
|
2933
2956
|
if (!this.bumpIf("{"))
|
|
2934
|
-
return this.error(n === "select" ?
|
|
2935
|
-
var
|
|
2936
|
-
if (
|
|
2937
|
-
return
|
|
2938
|
-
var
|
|
2939
|
-
if (
|
|
2940
|
-
return
|
|
2957
|
+
return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
|
|
2958
|
+
var B = this.parseMessage(t + 1, n, r);
|
|
2959
|
+
if (B.err)
|
|
2960
|
+
return B;
|
|
2961
|
+
var T = this.tryParseArgumentClose(_);
|
|
2962
|
+
if (T.err)
|
|
2963
|
+
return T;
|
|
2941
2964
|
s.push([
|
|
2942
2965
|
u,
|
|
2943
2966
|
{
|
|
2944
|
-
value:
|
|
2945
|
-
location:
|
|
2967
|
+
value: B.val,
|
|
2968
|
+
location: M(_, this.clonePosition())
|
|
2946
2969
|
}
|
|
2947
|
-
]), h.add(u), this.bumpSpace(),
|
|
2970
|
+
]), h.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, d = o.location;
|
|
2948
2971
|
}
|
|
2949
|
-
return s.length === 0 ? this.error(n === "select" ?
|
|
2972
|
+
return s.length === 0 ? this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, M(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(O.MISSING_OTHER_CLAUSE, M(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2950
2973
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
2951
2974
|
var r = 1, i = this.clonePosition();
|
|
2952
2975
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
2953
|
-
for (var
|
|
2976
|
+
for (var o = !1, l = 0; !this.isEOF(); ) {
|
|
2954
2977
|
var s = this.char();
|
|
2955
2978
|
if (s >= 48 && s <= 57)
|
|
2956
|
-
|
|
2979
|
+
o = !0, l = l * 10 + (s - 48), this.bump();
|
|
2957
2980
|
else
|
|
2958
2981
|
break;
|
|
2959
2982
|
}
|
|
2960
|
-
var h =
|
|
2961
|
-
return
|
|
2983
|
+
var h = M(i, this.clonePosition());
|
|
2984
|
+
return o ? (l *= r, Bi(l) ? { val: l, err: null } : this.error(n, h)) : this.error(t, h);
|
|
2962
2985
|
}, e.prototype.offset = function() {
|
|
2963
2986
|
return this.position.offset;
|
|
2964
2987
|
}, e.prototype.isEOF = function() {
|
|
@@ -3027,16 +3050,16 @@ var Ti = (
|
|
|
3027
3050
|
function Xt(e) {
|
|
3028
3051
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3029
3052
|
}
|
|
3030
|
-
function
|
|
3053
|
+
function Ci(e) {
|
|
3031
3054
|
return Xt(e) || e === 47;
|
|
3032
3055
|
}
|
|
3033
|
-
function
|
|
3056
|
+
function Hi(e) {
|
|
3034
3057
|
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;
|
|
3035
3058
|
}
|
|
3036
3059
|
function Wn(e) {
|
|
3037
3060
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3038
3061
|
}
|
|
3039
|
-
function
|
|
3062
|
+
function Oi(e) {
|
|
3040
3063
|
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;
|
|
3041
3064
|
}
|
|
3042
3065
|
function zt(e) {
|
|
@@ -3047,26 +3070,26 @@ function zt(e) {
|
|
|
3047
3070
|
else Nn(t) && Gn(t.style) || (In(t) || Pn(t)) && $t(t.style) ? delete t.style.location : Fn(t) && zt(t.children);
|
|
3048
3071
|
});
|
|
3049
3072
|
}
|
|
3050
|
-
function
|
|
3073
|
+
function Ri(e, t) {
|
|
3051
3074
|
t === void 0 && (t = {}), t = I({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3052
|
-
var n = new
|
|
3075
|
+
var n = new Ai(e, t).parse();
|
|
3053
3076
|
if (n.err) {
|
|
3054
|
-
var r = SyntaxError(
|
|
3077
|
+
var r = SyntaxError(O[n.err.kind]);
|
|
3055
3078
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3056
3079
|
}
|
|
3057
3080
|
return t?.captureLocation || zt(n.val), n.val;
|
|
3058
3081
|
}
|
|
3059
|
-
var
|
|
3082
|
+
var $e;
|
|
3060
3083
|
(function(e) {
|
|
3061
3084
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3062
|
-
})(
|
|
3063
|
-
var
|
|
3085
|
+
})($e || ($e = {}));
|
|
3086
|
+
var Et = (
|
|
3064
3087
|
/** @class */
|
|
3065
3088
|
function(e) {
|
|
3066
|
-
|
|
3089
|
+
vt(t, e);
|
|
3067
3090
|
function t(n, r, i) {
|
|
3068
|
-
var
|
|
3069
|
-
return
|
|
3091
|
+
var o = e.call(this, n) || this;
|
|
3092
|
+
return o.code = r, o.originalMessage = i, o;
|
|
3070
3093
|
}
|
|
3071
3094
|
return t.prototype.toString = function() {
|
|
3072
3095
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
@@ -3075,149 +3098,149 @@ var vt = (
|
|
|
3075
3098
|
), dn = (
|
|
3076
3099
|
/** @class */
|
|
3077
3100
|
function(e) {
|
|
3078
|
-
|
|
3079
|
-
function t(n, r, i,
|
|
3080
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3101
|
+
vt(t, e);
|
|
3102
|
+
function t(n, r, i, o) {
|
|
3103
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, o) || this;
|
|
3081
3104
|
}
|
|
3082
3105
|
return t;
|
|
3083
|
-
}(
|
|
3084
|
-
),
|
|
3106
|
+
}(Et)
|
|
3107
|
+
), Li = (
|
|
3085
3108
|
/** @class */
|
|
3086
3109
|
function(e) {
|
|
3087
|
-
|
|
3110
|
+
vt(t, e);
|
|
3088
3111
|
function t(n, r, i) {
|
|
3089
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3112
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), $e.INVALID_VALUE, i) || this;
|
|
3090
3113
|
}
|
|
3091
3114
|
return t;
|
|
3092
|
-
}(
|
|
3093
|
-
),
|
|
3115
|
+
}(Et)
|
|
3116
|
+
), Mi = (
|
|
3094
3117
|
/** @class */
|
|
3095
3118
|
function(e) {
|
|
3096
|
-
|
|
3119
|
+
vt(t, e);
|
|
3097
3120
|
function t(n, r) {
|
|
3098
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3121
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), $e.MISSING_VALUE, r) || this;
|
|
3099
3122
|
}
|
|
3100
3123
|
return t;
|
|
3101
|
-
}(
|
|
3102
|
-
),
|
|
3124
|
+
}(Et)
|
|
3125
|
+
), ne;
|
|
3103
3126
|
(function(e) {
|
|
3104
3127
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3105
|
-
})(
|
|
3106
|
-
function
|
|
3128
|
+
})(ne || (ne = {}));
|
|
3129
|
+
function Ni(e) {
|
|
3107
3130
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3108
3131
|
var r = t[t.length - 1];
|
|
3109
|
-
return !r || r.type !==
|
|
3132
|
+
return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
|
|
3110
3133
|
}, []);
|
|
3111
3134
|
}
|
|
3112
|
-
function
|
|
3135
|
+
function Ii(e) {
|
|
3113
3136
|
return typeof e == "function";
|
|
3114
3137
|
}
|
|
3115
|
-
function
|
|
3116
|
-
if (e.length === 1 &&
|
|
3138
|
+
function ht(e, t, n, r, i, o, l) {
|
|
3139
|
+
if (e.length === 1 && an(e[0]))
|
|
3117
3140
|
return [
|
|
3118
3141
|
{
|
|
3119
|
-
type:
|
|
3142
|
+
type: ne.literal,
|
|
3120
3143
|
value: e[0].value
|
|
3121
3144
|
}
|
|
3122
3145
|
];
|
|
3123
3146
|
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
3124
3147
|
var d = u[h];
|
|
3125
|
-
if (
|
|
3148
|
+
if (an(d)) {
|
|
3126
3149
|
s.push({
|
|
3127
|
-
type:
|
|
3150
|
+
type: ne.literal,
|
|
3128
3151
|
value: d.value
|
|
3129
3152
|
});
|
|
3130
3153
|
continue;
|
|
3131
3154
|
}
|
|
3132
|
-
if (
|
|
3133
|
-
typeof
|
|
3134
|
-
type:
|
|
3135
|
-
value: n.getNumberFormat(t).format(
|
|
3155
|
+
if (ri(d)) {
|
|
3156
|
+
typeof o == "number" && s.push({
|
|
3157
|
+
type: ne.literal,
|
|
3158
|
+
value: n.getNumberFormat(t).format(o)
|
|
3136
3159
|
});
|
|
3137
3160
|
continue;
|
|
3138
3161
|
}
|
|
3139
|
-
var
|
|
3140
|
-
if (!(i &&
|
|
3141
|
-
throw new
|
|
3142
|
-
var
|
|
3143
|
-
if (
|
|
3144
|
-
(!
|
|
3145
|
-
type: typeof
|
|
3146
|
-
value:
|
|
3162
|
+
var m = d.value;
|
|
3163
|
+
if (!(i && m in i))
|
|
3164
|
+
throw new Mi(m, l);
|
|
3165
|
+
var g = i[m];
|
|
3166
|
+
if (ni(d)) {
|
|
3167
|
+
(!g || typeof g == "string" || typeof g == "number") && (g = typeof g == "string" || typeof g == "number" ? String(g) : ""), s.push({
|
|
3168
|
+
type: typeof g == "string" ? ne.literal : ne.object,
|
|
3169
|
+
value: g
|
|
3147
3170
|
});
|
|
3148
3171
|
continue;
|
|
3149
3172
|
}
|
|
3150
3173
|
if (In(d)) {
|
|
3151
|
-
var
|
|
3174
|
+
var _ = typeof d.style == "string" ? r.date[d.style] : $t(d.style) ? d.style.parsedOptions : void 0;
|
|
3152
3175
|
s.push({
|
|
3153
|
-
type:
|
|
3154
|
-
value: n.getDateTimeFormat(t,
|
|
3176
|
+
type: ne.literal,
|
|
3177
|
+
value: n.getDateTimeFormat(t, _).format(g)
|
|
3155
3178
|
});
|
|
3156
3179
|
continue;
|
|
3157
3180
|
}
|
|
3158
3181
|
if (Pn(d)) {
|
|
3159
|
-
var
|
|
3182
|
+
var _ = typeof d.style == "string" ? r.time[d.style] : $t(d.style) ? d.style.parsedOptions : r.time.medium;
|
|
3160
3183
|
s.push({
|
|
3161
|
-
type:
|
|
3162
|
-
value: n.getDateTimeFormat(t,
|
|
3184
|
+
type: ne.literal,
|
|
3185
|
+
value: n.getDateTimeFormat(t, _).format(g)
|
|
3163
3186
|
});
|
|
3164
3187
|
continue;
|
|
3165
3188
|
}
|
|
3166
3189
|
if (Nn(d)) {
|
|
3167
|
-
var
|
|
3168
|
-
|
|
3169
|
-
type:
|
|
3170
|
-
value: n.getNumberFormat(t,
|
|
3190
|
+
var _ = typeof d.style == "string" ? r.number[d.style] : Gn(d.style) ? d.style.parsedOptions : void 0;
|
|
3191
|
+
_ && _.scale && (g = g * (_.scale || 1)), s.push({
|
|
3192
|
+
type: ne.literal,
|
|
3193
|
+
value: n.getNumberFormat(t, _).format(g)
|
|
3171
3194
|
});
|
|
3172
3195
|
continue;
|
|
3173
3196
|
}
|
|
3174
3197
|
if (Fn(d)) {
|
|
3175
|
-
var
|
|
3176
|
-
if (!
|
|
3177
|
-
throw new
|
|
3178
|
-
var
|
|
3179
|
-
return
|
|
3198
|
+
var B = d.children, T = d.value, x = i[T];
|
|
3199
|
+
if (!Ii(x))
|
|
3200
|
+
throw new Li(T, "function", l);
|
|
3201
|
+
var S = ht(B, t, n, r, i, o), D = x(S.map(function(W) {
|
|
3202
|
+
return W.value;
|
|
3180
3203
|
}));
|
|
3181
|
-
Array.isArray(
|
|
3204
|
+
Array.isArray(D) || (D = [D]), s.push.apply(s, D.map(function(W) {
|
|
3182
3205
|
return {
|
|
3183
|
-
type: typeof
|
|
3184
|
-
value:
|
|
3206
|
+
type: typeof W == "string" ? ne.literal : ne.object,
|
|
3207
|
+
value: W
|
|
3185
3208
|
};
|
|
3186
3209
|
}));
|
|
3187
3210
|
}
|
|
3188
3211
|
if (Dn(d)) {
|
|
3189
|
-
var
|
|
3190
|
-
if (!
|
|
3191
|
-
throw new dn(d.value,
|
|
3192
|
-
s.push.apply(s,
|
|
3212
|
+
var H = d.options[g] || d.options.other;
|
|
3213
|
+
if (!H)
|
|
3214
|
+
throw new dn(d.value, g, Object.keys(d.options), l);
|
|
3215
|
+
s.push.apply(s, ht(H.value, t, n, r, i));
|
|
3193
3216
|
continue;
|
|
3194
3217
|
}
|
|
3195
3218
|
if (Un(d)) {
|
|
3196
|
-
var
|
|
3197
|
-
if (!
|
|
3219
|
+
var H = d.options["=".concat(g)];
|
|
3220
|
+
if (!H) {
|
|
3198
3221
|
if (!Intl.PluralRules)
|
|
3199
|
-
throw new
|
|
3222
|
+
throw new Et(`Intl.PluralRules is not available in this environment.
|
|
3200
3223
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3201
|
-
`,
|
|
3202
|
-
var
|
|
3203
|
-
|
|
3224
|
+
`, $e.MISSING_INTL_API, l);
|
|
3225
|
+
var U = n.getPluralRules(t, { type: d.pluralType }).select(g - (d.offset || 0));
|
|
3226
|
+
H = d.options[U] || d.options.other;
|
|
3204
3227
|
}
|
|
3205
|
-
if (!
|
|
3206
|
-
throw new dn(d.value,
|
|
3207
|
-
s.push.apply(s,
|
|
3228
|
+
if (!H)
|
|
3229
|
+
throw new dn(d.value, g, Object.keys(d.options), l);
|
|
3230
|
+
s.push.apply(s, ht(H.value, t, n, r, i, g - (d.offset || 0)));
|
|
3208
3231
|
continue;
|
|
3209
3232
|
}
|
|
3210
3233
|
}
|
|
3211
|
-
return
|
|
3234
|
+
return Ni(s);
|
|
3212
3235
|
}
|
|
3213
|
-
function
|
|
3236
|
+
function Pi(e, t) {
|
|
3214
3237
|
return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3215
3238
|
return n[r] = I(I({}, e[r]), t[r] || {}), n;
|
|
3216
3239
|
}, {})) : e;
|
|
3217
3240
|
}
|
|
3218
|
-
function
|
|
3241
|
+
function Di(e, t) {
|
|
3219
3242
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3220
|
-
return n[r] =
|
|
3243
|
+
return n[r] = Pi(e[r], t[r]), n;
|
|
3221
3244
|
}, I({}, e)) : e;
|
|
3222
3245
|
}
|
|
3223
3246
|
function It(e) {
|
|
@@ -3234,7 +3257,7 @@ function It(e) {
|
|
|
3234
3257
|
}
|
|
3235
3258
|
};
|
|
3236
3259
|
}
|
|
3237
|
-
function
|
|
3260
|
+
function Ui(e) {
|
|
3238
3261
|
return e === void 0 && (e = {
|
|
3239
3262
|
number: {},
|
|
3240
3263
|
dateTime: {},
|
|
@@ -3266,45 +3289,45 @@ function Ii(e) {
|
|
|
3266
3289
|
})
|
|
3267
3290
|
};
|
|
3268
3291
|
}
|
|
3269
|
-
var
|
|
3292
|
+
var Fi = (
|
|
3270
3293
|
/** @class */
|
|
3271
3294
|
function() {
|
|
3272
3295
|
function e(t, n, r, i) {
|
|
3273
3296
|
n === void 0 && (n = e.defaultLocale);
|
|
3274
|
-
var
|
|
3297
|
+
var o = this;
|
|
3275
3298
|
if (this.formatterCache = {
|
|
3276
3299
|
number: {},
|
|
3277
3300
|
dateTime: {},
|
|
3278
3301
|
pluralRules: {}
|
|
3279
3302
|
}, this.format = function(h) {
|
|
3280
|
-
var u =
|
|
3303
|
+
var u = o.formatToParts(h);
|
|
3281
3304
|
if (u.length === 1)
|
|
3282
3305
|
return u[0].value;
|
|
3283
|
-
var d = u.reduce(function(
|
|
3284
|
-
return !
|
|
3306
|
+
var d = u.reduce(function(m, g) {
|
|
3307
|
+
return !m.length || g.type !== ne.literal || typeof m[m.length - 1] != "string" ? m.push(g.value) : m[m.length - 1] += g.value, m;
|
|
3285
3308
|
}, []);
|
|
3286
3309
|
return d.length <= 1 ? d[0] || "" : d;
|
|
3287
3310
|
}, this.formatToParts = function(h) {
|
|
3288
|
-
return
|
|
3311
|
+
return ht(o.ast, o.locales, o.formatters, o.formats, h, void 0, o.message);
|
|
3289
3312
|
}, this.resolvedOptions = function() {
|
|
3290
3313
|
var h;
|
|
3291
3314
|
return {
|
|
3292
|
-
locale: ((h =
|
|
3315
|
+
locale: ((h = o.resolvedLocale) === null || h === void 0 ? void 0 : h.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3293
3316
|
};
|
|
3294
3317
|
}, this.getAst = function() {
|
|
3295
|
-
return
|
|
3318
|
+
return o.ast;
|
|
3296
3319
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3297
3320
|
if (this.message = t, !e.__parse)
|
|
3298
3321
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3299
3322
|
var l = i || {};
|
|
3300
3323
|
l.formatters;
|
|
3301
|
-
var s =
|
|
3324
|
+
var s = Zr(l, ["formatters"]);
|
|
3302
3325
|
this.ast = e.__parse(t, I(I({}, s), { locale: this.resolvedLocale }));
|
|
3303
3326
|
} else
|
|
3304
3327
|
this.ast = t;
|
|
3305
3328
|
if (!Array.isArray(this.ast))
|
|
3306
3329
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3307
|
-
this.formats =
|
|
3330
|
+
this.formats = Di(e.formats, r), this.formatters = i && i.formatters || Ui(this.formatterCache);
|
|
3308
3331
|
}
|
|
3309
3332
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3310
3333
|
get: function() {
|
|
@@ -3317,7 +3340,7 @@ var Pi = (
|
|
|
3317
3340
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3318
3341
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3319
3342
|
}
|
|
3320
|
-
}, e.__parse =
|
|
3343
|
+
}, e.__parse = Ri, e.formats = {
|
|
3321
3344
|
number: {
|
|
3322
3345
|
integer: {
|
|
3323
3346
|
maximumFractionDigits: 0
|
|
@@ -3378,7 +3401,7 @@ var Pi = (
|
|
|
3378
3401
|
}, e;
|
|
3379
3402
|
}()
|
|
3380
3403
|
);
|
|
3381
|
-
function
|
|
3404
|
+
function Gi(e, t) {
|
|
3382
3405
|
if (t == null)
|
|
3383
3406
|
return;
|
|
3384
3407
|
if (t in e)
|
|
@@ -3388,9 +3411,9 @@ function Di(e, t) {
|
|
|
3388
3411
|
for (let i = 0; i < n.length; i++)
|
|
3389
3412
|
if (typeof r == "object") {
|
|
3390
3413
|
if (i > 0) {
|
|
3391
|
-
const
|
|
3392
|
-
if (
|
|
3393
|
-
r = r[
|
|
3414
|
+
const o = n.slice(i, n.length).join(".");
|
|
3415
|
+
if (o in r) {
|
|
3416
|
+
r = r[o];
|
|
3394
3417
|
break;
|
|
3395
3418
|
}
|
|
3396
3419
|
}
|
|
@@ -3399,36 +3422,36 @@ function Di(e, t) {
|
|
|
3399
3422
|
r = void 0;
|
|
3400
3423
|
return r;
|
|
3401
3424
|
}
|
|
3402
|
-
const we = {},
|
|
3425
|
+
const we = {}, $i = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = n), n), Zn = (e, t) => {
|
|
3403
3426
|
if (t == null)
|
|
3404
3427
|
return;
|
|
3405
3428
|
if (t in we && e in we[t])
|
|
3406
3429
|
return we[t][e];
|
|
3407
|
-
const n =
|
|
3430
|
+
const n = xt(t);
|
|
3408
3431
|
for (let r = 0; r < n.length; r++) {
|
|
3409
|
-
const i = n[r],
|
|
3410
|
-
if (
|
|
3411
|
-
return
|
|
3432
|
+
const i = n[r], o = ji(i, e);
|
|
3433
|
+
if (o)
|
|
3434
|
+
return $i(e, t, o);
|
|
3412
3435
|
}
|
|
3413
3436
|
};
|
|
3414
3437
|
let Jt;
|
|
3415
|
-
const
|
|
3416
|
-
function
|
|
3438
|
+
const rt = yt({});
|
|
3439
|
+
function ki(e) {
|
|
3417
3440
|
return Jt[e] || null;
|
|
3418
3441
|
}
|
|
3419
3442
|
function qn(e) {
|
|
3420
3443
|
return e in Jt;
|
|
3421
3444
|
}
|
|
3422
|
-
function
|
|
3445
|
+
function ji(e, t) {
|
|
3423
3446
|
if (!qn(e))
|
|
3424
3447
|
return null;
|
|
3425
|
-
const n =
|
|
3426
|
-
return
|
|
3448
|
+
const n = ki(e);
|
|
3449
|
+
return Gi(n, t);
|
|
3427
3450
|
}
|
|
3428
|
-
function
|
|
3451
|
+
function Vi(e) {
|
|
3429
3452
|
if (e == null)
|
|
3430
3453
|
return;
|
|
3431
|
-
const t =
|
|
3454
|
+
const t = xt(e);
|
|
3432
3455
|
for (let n = 0; n < t.length; n++) {
|
|
3433
3456
|
const r = t[n];
|
|
3434
3457
|
if (qn(r))
|
|
@@ -3436,55 +3459,55 @@ function $i(e) {
|
|
|
3436
3459
|
}
|
|
3437
3460
|
}
|
|
3438
3461
|
function Qn(e, ...t) {
|
|
3439
|
-
delete we[e],
|
|
3462
|
+
delete we[e], rt.update((n) => (n[e] = Wr.all([n[e] || {}, ...t]), n));
|
|
3440
3463
|
}
|
|
3441
|
-
|
|
3442
|
-
[
|
|
3464
|
+
Ve(
|
|
3465
|
+
[rt],
|
|
3443
3466
|
([e]) => Object.keys(e)
|
|
3444
3467
|
);
|
|
3445
|
-
|
|
3446
|
-
const
|
|
3447
|
-
function
|
|
3448
|
-
|
|
3468
|
+
rt.subscribe((e) => Jt = e);
|
|
3469
|
+
const ft = {};
|
|
3470
|
+
function Xi(e, t) {
|
|
3471
|
+
ft[e].delete(t), ft[e].size === 0 && delete ft[e];
|
|
3449
3472
|
}
|
|
3450
3473
|
function Jn(e) {
|
|
3451
|
-
return
|
|
3474
|
+
return ft[e];
|
|
3452
3475
|
}
|
|
3453
|
-
function
|
|
3454
|
-
return
|
|
3476
|
+
function zi(e) {
|
|
3477
|
+
return xt(e).map((t) => {
|
|
3455
3478
|
const n = Jn(t);
|
|
3456
3479
|
return [t, n ? [...n] : []];
|
|
3457
3480
|
}).filter(([, t]) => t.length > 0);
|
|
3458
3481
|
}
|
|
3459
3482
|
function Wt(e) {
|
|
3460
|
-
return e == null ? !1 :
|
|
3483
|
+
return e == null ? !1 : xt(e).some(
|
|
3461
3484
|
(t) => {
|
|
3462
3485
|
var n;
|
|
3463
3486
|
return (n = Jn(t)) == null ? void 0 : n.size;
|
|
3464
3487
|
}
|
|
3465
3488
|
);
|
|
3466
3489
|
}
|
|
3467
|
-
function
|
|
3490
|
+
function Wi(e, t) {
|
|
3468
3491
|
return Promise.all(
|
|
3469
|
-
t.map((r) => (
|
|
3492
|
+
t.map((r) => (Xi(e, r), r().then((i) => i.default || i)))
|
|
3470
3493
|
).then((r) => Qn(e, ...r));
|
|
3471
3494
|
}
|
|
3472
|
-
const
|
|
3495
|
+
const Ye = {};
|
|
3473
3496
|
function Yn(e) {
|
|
3474
3497
|
if (!Wt(e))
|
|
3475
|
-
return e in
|
|
3476
|
-
const t =
|
|
3477
|
-
return
|
|
3498
|
+
return e in Ye ? Ye[e] : Promise.resolve();
|
|
3499
|
+
const t = zi(e);
|
|
3500
|
+
return Ye[e] = Promise.all(
|
|
3478
3501
|
t.map(
|
|
3479
|
-
([n, r]) =>
|
|
3502
|
+
([n, r]) => Wi(n, r)
|
|
3480
3503
|
)
|
|
3481
3504
|
).then(() => {
|
|
3482
3505
|
if (Wt(e))
|
|
3483
3506
|
return Yn(e);
|
|
3484
|
-
delete
|
|
3485
|
-
}),
|
|
3507
|
+
delete Ye[e];
|
|
3508
|
+
}), Ye[e];
|
|
3486
3509
|
}
|
|
3487
|
-
const
|
|
3510
|
+
const Zi = {
|
|
3488
3511
|
number: {
|
|
3489
3512
|
scientific: { notation: "scientific" },
|
|
3490
3513
|
engineering: { notation: "engineering" },
|
|
@@ -3513,141 +3536,141 @@ const Xi = {
|
|
|
3513
3536
|
timeZoneName: "short"
|
|
3514
3537
|
}
|
|
3515
3538
|
}
|
|
3516
|
-
},
|
|
3539
|
+
}, qi = {
|
|
3517
3540
|
fallbackLocale: null,
|
|
3518
3541
|
loadingDelay: 200,
|
|
3519
|
-
formats:
|
|
3542
|
+
formats: Zi,
|
|
3520
3543
|
warnOnMissingMessages: !0,
|
|
3521
3544
|
handleMissingMessage: void 0,
|
|
3522
3545
|
ignoreTag: !0
|
|
3523
|
-
},
|
|
3524
|
-
function
|
|
3525
|
-
return
|
|
3546
|
+
}, Qi = qi;
|
|
3547
|
+
function ke() {
|
|
3548
|
+
return Qi;
|
|
3526
3549
|
}
|
|
3527
|
-
const Pt =
|
|
3528
|
-
var
|
|
3550
|
+
const Pt = yt(!1);
|
|
3551
|
+
var Ji = Object.defineProperty, Yi = Object.defineProperties, Ki = Object.getOwnPropertyDescriptors, pn = Object.getOwnPropertySymbols, eo = Object.prototype.hasOwnProperty, to = Object.prototype.propertyIsEnumerable, mn = (e, t, n) => t in e ? Ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, no = (e, t) => {
|
|
3529
3552
|
for (var n in t || (t = {}))
|
|
3530
|
-
|
|
3553
|
+
eo.call(t, n) && mn(e, n, t[n]);
|
|
3531
3554
|
if (pn)
|
|
3532
3555
|
for (var n of pn(t))
|
|
3533
|
-
|
|
3556
|
+
to.call(t, n) && mn(e, n, t[n]);
|
|
3534
3557
|
return e;
|
|
3535
|
-
},
|
|
3558
|
+
}, ro = (e, t) => Yi(e, Ki(t));
|
|
3536
3559
|
let Zt;
|
|
3537
|
-
const
|
|
3560
|
+
const gt = yt(null);
|
|
3538
3561
|
function gn(e) {
|
|
3539
3562
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3540
3563
|
}
|
|
3541
|
-
function
|
|
3564
|
+
function xt(e, t = ke().fallbackLocale) {
|
|
3542
3565
|
const n = gn(e);
|
|
3543
3566
|
return t ? [.../* @__PURE__ */ new Set([...n, ...gn(t)])] : n;
|
|
3544
3567
|
}
|
|
3545
|
-
function
|
|
3568
|
+
function He() {
|
|
3546
3569
|
return Zt ?? void 0;
|
|
3547
3570
|
}
|
|
3548
|
-
|
|
3571
|
+
gt.subscribe((e) => {
|
|
3549
3572
|
Zt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3550
3573
|
});
|
|
3551
|
-
const
|
|
3552
|
-
if (e &&
|
|
3553
|
-
const { loadingDelay: t } =
|
|
3574
|
+
const io = (e) => {
|
|
3575
|
+
if (e && Vi(e) && Wt(e)) {
|
|
3576
|
+
const { loadingDelay: t } = ke();
|
|
3554
3577
|
let n;
|
|
3555
|
-
return typeof window < "u" &&
|
|
3578
|
+
return typeof window < "u" && He() != null && t ? n = window.setTimeout(
|
|
3556
3579
|
() => Pt.set(!0),
|
|
3557
3580
|
t
|
|
3558
3581
|
) : Pt.set(!0), Yn(e).then(() => {
|
|
3559
|
-
|
|
3582
|
+
gt.set(e);
|
|
3560
3583
|
}).finally(() => {
|
|
3561
3584
|
clearTimeout(n), Pt.set(!1);
|
|
3562
3585
|
});
|
|
3563
3586
|
}
|
|
3564
|
-
return
|
|
3565
|
-
},
|
|
3566
|
-
set:
|
|
3567
|
-
}),
|
|
3587
|
+
return gt.set(e);
|
|
3588
|
+
}, Xe = ro(no({}, gt), {
|
|
3589
|
+
set: io
|
|
3590
|
+
}), _t = (e) => {
|
|
3568
3591
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3569
3592
|
return (r) => {
|
|
3570
3593
|
const i = JSON.stringify(r);
|
|
3571
3594
|
return i in t ? t[i] : t[i] = e(r);
|
|
3572
3595
|
};
|
|
3573
3596
|
};
|
|
3574
|
-
var
|
|
3597
|
+
var oo = Object.defineProperty, bt = Object.getOwnPropertySymbols, Kn = Object.prototype.hasOwnProperty, er = Object.prototype.propertyIsEnumerable, bn = (e, t, n) => t in e ? oo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yt = (e, t) => {
|
|
3575
3598
|
for (var n in t || (t = {}))
|
|
3576
3599
|
Kn.call(t, n) && bn(e, n, t[n]);
|
|
3577
|
-
if (
|
|
3578
|
-
for (var n of
|
|
3600
|
+
if (bt)
|
|
3601
|
+
for (var n of bt(t))
|
|
3579
3602
|
er.call(t, n) && bn(e, n, t[n]);
|
|
3580
3603
|
return e;
|
|
3581
|
-
},
|
|
3604
|
+
}, ze = (e, t) => {
|
|
3582
3605
|
var n = {};
|
|
3583
3606
|
for (var r in e)
|
|
3584
3607
|
Kn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3585
|
-
if (e != null &&
|
|
3586
|
-
for (var r of
|
|
3608
|
+
if (e != null && bt)
|
|
3609
|
+
for (var r of bt(e))
|
|
3587
3610
|
t.indexOf(r) < 0 && er.call(e, r) && (n[r] = e[r]);
|
|
3588
3611
|
return n;
|
|
3589
3612
|
};
|
|
3590
|
-
const
|
|
3591
|
-
const { formats: n } =
|
|
3613
|
+
const nt = (e, t) => {
|
|
3614
|
+
const { formats: n } = ke();
|
|
3592
3615
|
if (e in n && t in n[e])
|
|
3593
3616
|
return n[e][t];
|
|
3594
3617
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3595
|
-
},
|
|
3618
|
+
}, ao = _t(
|
|
3596
3619
|
(e) => {
|
|
3597
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3620
|
+
var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
|
|
3598
3621
|
if (n == null)
|
|
3599
3622
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3600
|
-
return r && (i =
|
|
3623
|
+
return r && (i = nt("number", r)), new Intl.NumberFormat(n, i);
|
|
3601
3624
|
}
|
|
3602
|
-
),
|
|
3625
|
+
), so = _t(
|
|
3603
3626
|
(e) => {
|
|
3604
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3627
|
+
var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
|
|
3605
3628
|
if (n == null)
|
|
3606
3629
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3607
|
-
return r ? i =
|
|
3630
|
+
return r ? i = nt("date", r) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3608
3631
|
}
|
|
3609
|
-
),
|
|
3632
|
+
), lo = _t(
|
|
3610
3633
|
(e) => {
|
|
3611
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3634
|
+
var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
|
|
3612
3635
|
if (n == null)
|
|
3613
3636
|
throw new Error(
|
|
3614
3637
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3615
3638
|
);
|
|
3616
|
-
return r ? i =
|
|
3639
|
+
return r ? i = nt("time", r) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3617
3640
|
}
|
|
3618
|
-
),
|
|
3641
|
+
), uo = (e = {}) => {
|
|
3619
3642
|
var t = e, {
|
|
3620
|
-
locale: n =
|
|
3621
|
-
} = t, r =
|
|
3643
|
+
locale: n = He()
|
|
3644
|
+
} = t, r = ze(t, [
|
|
3622
3645
|
"locale"
|
|
3623
3646
|
]);
|
|
3624
|
-
return
|
|
3625
|
-
},
|
|
3647
|
+
return ao(Yt({ locale: n }, r));
|
|
3648
|
+
}, co = (e = {}) => {
|
|
3626
3649
|
var t = e, {
|
|
3627
|
-
locale: n =
|
|
3628
|
-
} = t, r =
|
|
3650
|
+
locale: n = He()
|
|
3651
|
+
} = t, r = ze(t, [
|
|
3629
3652
|
"locale"
|
|
3630
3653
|
]);
|
|
3631
|
-
return
|
|
3632
|
-
},
|
|
3654
|
+
return so(Yt({ locale: n }, r));
|
|
3655
|
+
}, ho = (e = {}) => {
|
|
3633
3656
|
var t = e, {
|
|
3634
|
-
locale: n =
|
|
3635
|
-
} = t, r =
|
|
3657
|
+
locale: n = He()
|
|
3658
|
+
} = t, r = ze(t, [
|
|
3636
3659
|
"locale"
|
|
3637
3660
|
]);
|
|
3638
|
-
return
|
|
3639
|
-
},
|
|
3661
|
+
return lo(Yt({ locale: n }, r));
|
|
3662
|
+
}, fo = _t(
|
|
3640
3663
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3641
|
-
(e, t =
|
|
3642
|
-
ignoreTag:
|
|
3664
|
+
(e, t = He()) => new Fi(e, t, ke().formats, {
|
|
3665
|
+
ignoreTag: ke().ignoreTag
|
|
3643
3666
|
})
|
|
3644
|
-
),
|
|
3645
|
-
var n, r, i,
|
|
3667
|
+
), po = (e, t = {}) => {
|
|
3668
|
+
var n, r, i, o;
|
|
3646
3669
|
let l = t;
|
|
3647
3670
|
typeof e == "object" && (l = e, e = l.id);
|
|
3648
3671
|
const {
|
|
3649
3672
|
values: s,
|
|
3650
|
-
locale: h =
|
|
3673
|
+
locale: h = He(),
|
|
3651
3674
|
default: u
|
|
3652
3675
|
} = l;
|
|
3653
3676
|
if (h == null)
|
|
@@ -3656,33 +3679,33 @@ const tt = (e, t) => {
|
|
|
3656
3679
|
);
|
|
3657
3680
|
let d = Zn(e, h);
|
|
3658
3681
|
if (!d)
|
|
3659
|
-
d = (
|
|
3682
|
+
d = (o = (i = (r = (n = ke()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3660
3683
|
else if (typeof d != "string")
|
|
3661
3684
|
return console.warn(
|
|
3662
3685
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3663
3686
|
), d;
|
|
3664
3687
|
if (!s)
|
|
3665
3688
|
return d;
|
|
3666
|
-
let
|
|
3689
|
+
let m = d;
|
|
3667
3690
|
try {
|
|
3668
|
-
|
|
3669
|
-
} catch (
|
|
3670
|
-
|
|
3691
|
+
m = fo(d, h).format(s);
|
|
3692
|
+
} catch (g) {
|
|
3693
|
+
g instanceof Error && console.warn(
|
|
3671
3694
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3672
|
-
|
|
3695
|
+
g.message
|
|
3673
3696
|
);
|
|
3674
3697
|
}
|
|
3675
|
-
return
|
|
3676
|
-
},
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3698
|
+
return m;
|
|
3699
|
+
}, mo = (e, t) => ho(t).format(e), go = (e, t) => co(t).format(e), bo = (e, t) => uo(t).format(e), yo = (e, t = He()) => Zn(e, t), vo = Ve([Xe, rt], () => po);
|
|
3700
|
+
Ve([Xe], () => mo);
|
|
3701
|
+
Ve([Xe], () => go);
|
|
3702
|
+
Ve([Xe], () => bo);
|
|
3703
|
+
Ve([Xe, rt], () => yo);
|
|
3681
3704
|
function yn(e, t) {
|
|
3682
3705
|
Qn(e, t);
|
|
3683
3706
|
}
|
|
3684
|
-
function
|
|
3685
|
-
|
|
3707
|
+
function Eo(e) {
|
|
3708
|
+
Xe.set(e);
|
|
3686
3709
|
}
|
|
3687
3710
|
const vn = {
|
|
3688
3711
|
en: {
|
|
@@ -3892,35 +3915,35 @@ var qt = { exports: {} };
|
|
|
3892
3915
|
*/
|
|
3893
3916
|
(function(e, t) {
|
|
3894
3917
|
(function(n) {
|
|
3895
|
-
var r = n.setTimeout, i = n.clearTimeout,
|
|
3896
|
-
if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(
|
|
3918
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, h = n.EventSource, u = n.document, d = n.Promise, m = n.fetch, g = n.Response, _ = n.TextDecoder, B = n.TextEncoder, T = n.AbortController;
|
|
3919
|
+
if (typeof window < "u" && typeof u < "u" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(a) {
|
|
3897
3920
|
u.readyState = "complete";
|
|
3898
|
-
}, !1)),
|
|
3921
|
+
}, !1)), o == null && s != null && (o = function() {
|
|
3899
3922
|
return new s("Microsoft.XMLHTTP");
|
|
3900
|
-
}), Object.create == null && (Object.create = function(
|
|
3901
|
-
function
|
|
3923
|
+
}), Object.create == null && (Object.create = function(a) {
|
|
3924
|
+
function f() {
|
|
3902
3925
|
}
|
|
3903
|
-
return
|
|
3926
|
+
return f.prototype = a, new f();
|
|
3904
3927
|
}), Date.now || (Date.now = function() {
|
|
3905
3928
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3906
|
-
}),
|
|
3907
|
-
var
|
|
3908
|
-
|
|
3909
|
-
var p =
|
|
3910
|
-
return
|
|
3911
|
-
var
|
|
3912
|
-
return p._reader =
|
|
3913
|
-
status:
|
|
3914
|
-
statusText:
|
|
3915
|
-
headers:
|
|
3929
|
+
}), T == null) {
|
|
3930
|
+
var x = m;
|
|
3931
|
+
m = function(a, f) {
|
|
3932
|
+
var p = f.signal;
|
|
3933
|
+
return x(a, { headers: f.headers, credentials: f.credentials, cache: f.cache }).then(function(c) {
|
|
3934
|
+
var v = c.body.getReader();
|
|
3935
|
+
return p._reader = v, p._aborted && p._reader.cancel(), {
|
|
3936
|
+
status: c.status,
|
|
3937
|
+
statusText: c.statusText,
|
|
3938
|
+
headers: c.headers,
|
|
3916
3939
|
body: {
|
|
3917
3940
|
getReader: function() {
|
|
3918
|
-
return
|
|
3941
|
+
return v;
|
|
3919
3942
|
}
|
|
3920
3943
|
}
|
|
3921
3944
|
};
|
|
3922
3945
|
});
|
|
3923
|
-
},
|
|
3946
|
+
}, T = function() {
|
|
3924
3947
|
this.signal = {
|
|
3925
3948
|
_reader: null,
|
|
3926
3949
|
_aborted: !1
|
|
@@ -3929,407 +3952,407 @@ var qt = { exports: {} };
|
|
|
3929
3952
|
};
|
|
3930
3953
|
};
|
|
3931
3954
|
}
|
|
3932
|
-
function
|
|
3955
|
+
function S() {
|
|
3933
3956
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
3934
3957
|
}
|
|
3935
|
-
|
|
3936
|
-
function
|
|
3937
|
-
if (
|
|
3938
|
-
return
|
|
3939
|
-
if (
|
|
3940
|
-
return
|
|
3941
|
-
if (
|
|
3942
|
-
return
|
|
3958
|
+
S.prototype.decode = function(a) {
|
|
3959
|
+
function f(P, G, w) {
|
|
3960
|
+
if (w === 1)
|
|
3961
|
+
return P >= 128 >> G && P << G <= 2047;
|
|
3962
|
+
if (w === 2)
|
|
3963
|
+
return P >= 2048 >> G && P << G <= 55295 || P >= 57344 >> G && P << G <= 65535;
|
|
3964
|
+
if (w === 3)
|
|
3965
|
+
return P >= 65536 >> G && P << G <= 1114111;
|
|
3943
3966
|
throw new Error();
|
|
3944
3967
|
}
|
|
3945
|
-
function p(
|
|
3946
|
-
if (
|
|
3947
|
-
return
|
|
3948
|
-
if (
|
|
3949
|
-
return
|
|
3950
|
-
if (
|
|
3968
|
+
function p(P, G) {
|
|
3969
|
+
if (P === 6 * 1)
|
|
3970
|
+
return G >> 6 > 15 ? 3 : G > 31 ? 2 : 1;
|
|
3971
|
+
if (P === 6 * 2)
|
|
3972
|
+
return G > 15 ? 3 : 2;
|
|
3973
|
+
if (P === 6 * 3)
|
|
3951
3974
|
return 3;
|
|
3952
3975
|
throw new Error();
|
|
3953
3976
|
}
|
|
3954
|
-
for (var
|
|
3955
|
-
var
|
|
3956
|
-
|
|
3977
|
+
for (var c = 65533, v = "", E = this.bitsNeeded, y = this.codePoint, L = 0; L < a.length; L += 1) {
|
|
3978
|
+
var A = a[L];
|
|
3979
|
+
E !== 0 && (A < 128 || A > 191 || !f(y << 6 | A & 63, E - 6, p(E, y))) && (E = 0, y = c, v += String.fromCharCode(y)), E === 0 ? (A >= 0 && A <= 127 ? (E = 0, y = A) : A >= 192 && A <= 223 ? (E = 6 * 1, y = A & 31) : A >= 224 && A <= 239 ? (E = 6 * 2, y = A & 15) : A >= 240 && A <= 247 ? (E = 6 * 3, y = A & 7) : (E = 0, y = c), E !== 0 && !f(y, E, p(E, y)) && (E = 0, y = c)) : (E -= 6, y = y << 6 | A & 63), E === 0 && (y <= 65535 ? v += String.fromCharCode(y) : (v += String.fromCharCode(55296 + (y - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (y - 65535 - 1 & 1023))));
|
|
3957
3980
|
}
|
|
3958
|
-
return this.bitsNeeded =
|
|
3981
|
+
return this.bitsNeeded = E, this.codePoint = y, v;
|
|
3959
3982
|
};
|
|
3960
|
-
var
|
|
3983
|
+
var D = function() {
|
|
3961
3984
|
try {
|
|
3962
|
-
return new
|
|
3963
|
-
} catch (
|
|
3964
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " +
|
|
3985
|
+
return new _().decode(new B().encode("test"), { stream: !0 }) === "test";
|
|
3986
|
+
} catch (a) {
|
|
3987
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
|
|
3965
3988
|
}
|
|
3966
3989
|
return !1;
|
|
3967
3990
|
};
|
|
3968
|
-
(
|
|
3969
|
-
var
|
|
3991
|
+
(_ == null || B == null || !D()) && (_ = S);
|
|
3992
|
+
var H = function() {
|
|
3970
3993
|
};
|
|
3971
|
-
function
|
|
3972
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
3994
|
+
function U(a) {
|
|
3995
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = H, this.onload = H, this.onerror = H, this.onreadystatechange = H, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = H;
|
|
3973
3996
|
}
|
|
3974
|
-
|
|
3997
|
+
U.prototype.open = function(a, f) {
|
|
3975
3998
|
this._abort(!0);
|
|
3976
|
-
var p = this,
|
|
3977
|
-
this._abort = function(
|
|
3978
|
-
p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (
|
|
3999
|
+
var p = this, c = this._xhr, v = 1, E = 0;
|
|
4000
|
+
this._abort = function(w) {
|
|
4001
|
+
p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (v === 1 || v === 2 || v === 3) && (v = 4, c.onload = H, c.onerror = H, c.onabort = H, c.onprogress = H, c.onreadystatechange = H, c.abort(), E !== 0 && (i(E), E = 0), w || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), v = 0;
|
|
3979
4002
|
};
|
|
3980
|
-
var
|
|
3981
|
-
if (
|
|
3982
|
-
var
|
|
3983
|
-
if ("contentType" in
|
|
3984
|
-
|
|
4003
|
+
var y = function() {
|
|
4004
|
+
if (v === 1) {
|
|
4005
|
+
var w = 0, V = "", ge = void 0;
|
|
4006
|
+
if ("contentType" in c)
|
|
4007
|
+
w = 200, V = "OK", ge = c.contentType;
|
|
3985
4008
|
else
|
|
3986
4009
|
try {
|
|
3987
|
-
|
|
4010
|
+
w = c.status, V = c.statusText, ge = c.getResponseHeader("Content-Type");
|
|
3988
4011
|
} catch {
|
|
3989
|
-
|
|
4012
|
+
w = 0, V = "", ge = void 0;
|
|
3990
4013
|
}
|
|
3991
|
-
|
|
4014
|
+
w !== 0 && (v = 2, p.readyState = 2, p.status = w, p.statusText = V, p._contentType = ge, p.onreadystatechange());
|
|
3992
4015
|
}
|
|
3993
|
-
},
|
|
3994
|
-
if (
|
|
3995
|
-
|
|
3996
|
-
var
|
|
4016
|
+
}, L = function() {
|
|
4017
|
+
if (y(), v === 2 || v === 3) {
|
|
4018
|
+
v = 3;
|
|
4019
|
+
var w = "";
|
|
3997
4020
|
try {
|
|
3998
|
-
|
|
4021
|
+
w = c.responseText;
|
|
3999
4022
|
} catch {
|
|
4000
4023
|
}
|
|
4001
|
-
p.readyState = 3, p.responseText =
|
|
4024
|
+
p.readyState = 3, p.responseText = w, p.onprogress();
|
|
4002
4025
|
}
|
|
4003
|
-
},
|
|
4004
|
-
if ((
|
|
4005
|
-
preventDefault:
|
|
4006
|
-
}),
|
|
4007
|
-
if (
|
|
4008
|
-
p.onload(
|
|
4009
|
-
else if (
|
|
4010
|
-
p.onerror(
|
|
4011
|
-
else if (
|
|
4012
|
-
p.onabort(
|
|
4026
|
+
}, A = function(w, V) {
|
|
4027
|
+
if ((V == null || V.preventDefault == null) && (V = {
|
|
4028
|
+
preventDefault: H
|
|
4029
|
+
}), L(), v === 1 || v === 2 || v === 3) {
|
|
4030
|
+
if (v = 4, E !== 0 && (i(E), E = 0), p.readyState = 4, w === "load")
|
|
4031
|
+
p.onload(V);
|
|
4032
|
+
else if (w === "error")
|
|
4033
|
+
p.onerror(V);
|
|
4034
|
+
else if (w === "abort")
|
|
4035
|
+
p.onabort(V);
|
|
4013
4036
|
else
|
|
4014
4037
|
throw new TypeError();
|
|
4015
4038
|
p.onreadystatechange();
|
|
4016
4039
|
}
|
|
4017
|
-
},
|
|
4018
|
-
|
|
4019
|
-
},
|
|
4020
|
-
|
|
4021
|
-
|
|
4022
|
-
}, 500),
|
|
4040
|
+
}, P = function(w) {
|
|
4041
|
+
c != null && (c.readyState === 4 ? (!("onload" in c) || !("onerror" in c) || !("onabort" in c)) && A(c.responseText === "" ? "error" : "load", w) : c.readyState === 3 ? "onprogress" in c || L() : c.readyState === 2 && y());
|
|
4042
|
+
}, G = function() {
|
|
4043
|
+
E = r(function() {
|
|
4044
|
+
G();
|
|
4045
|
+
}, 500), c.readyState === 3 && L();
|
|
4023
4046
|
};
|
|
4024
|
-
"onload" in
|
|
4025
|
-
|
|
4026
|
-
}), "onerror" in
|
|
4027
|
-
|
|
4028
|
-
}), "onabort" in
|
|
4029
|
-
|
|
4030
|
-
}), "onprogress" in
|
|
4031
|
-
|
|
4032
|
-
}), ("contentType" in
|
|
4033
|
-
|
|
4047
|
+
"onload" in c && (c.onload = function(w) {
|
|
4048
|
+
A("load", w);
|
|
4049
|
+
}), "onerror" in c && (c.onerror = function(w) {
|
|
4050
|
+
A("error", w);
|
|
4051
|
+
}), "onabort" in c && (c.onabort = function(w) {
|
|
4052
|
+
A("abort", w);
|
|
4053
|
+
}), "onprogress" in c && (c.onprogress = L), "onreadystatechange" in c && (c.onreadystatechange = function(w) {
|
|
4054
|
+
P(w);
|
|
4055
|
+
}), ("contentType" in c || !("ontimeout" in o.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), c.open(a, f, !0), "readyState" in c && (E = r(function() {
|
|
4056
|
+
G();
|
|
4034
4057
|
}, 0));
|
|
4035
|
-
},
|
|
4058
|
+
}, U.prototype.abort = function() {
|
|
4036
4059
|
this._abort(!1);
|
|
4037
|
-
},
|
|
4060
|
+
}, U.prototype.getResponseHeader = function(a) {
|
|
4038
4061
|
return this._contentType;
|
|
4039
|
-
},
|
|
4062
|
+
}, U.prototype.setRequestHeader = function(a, f) {
|
|
4040
4063
|
var p = this._xhr;
|
|
4041
|
-
"setRequestHeader" in p && p.setRequestHeader(
|
|
4042
|
-
},
|
|
4064
|
+
"setRequestHeader" in p && p.setRequestHeader(a, f);
|
|
4065
|
+
}, U.prototype.getAllResponseHeaders = function() {
|
|
4043
4066
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4044
|
-
},
|
|
4045
|
-
if ((!("ontimeout" in
|
|
4046
|
-
var
|
|
4047
|
-
|
|
4048
|
-
|
|
4067
|
+
}, U.prototype.send = function() {
|
|
4068
|
+
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
|
|
4069
|
+
var a = this;
|
|
4070
|
+
a._sendTimeout = r(function() {
|
|
4071
|
+
a._sendTimeout = 0, a.send();
|
|
4049
4072
|
}, 4);
|
|
4050
4073
|
return;
|
|
4051
4074
|
}
|
|
4052
|
-
var
|
|
4053
|
-
"withCredentials" in
|
|
4075
|
+
var f = this._xhr;
|
|
4076
|
+
"withCredentials" in f && (f.withCredentials = this.withCredentials);
|
|
4054
4077
|
try {
|
|
4055
|
-
|
|
4078
|
+
f.send(void 0);
|
|
4056
4079
|
} catch (p) {
|
|
4057
4080
|
throw p;
|
|
4058
4081
|
}
|
|
4059
4082
|
};
|
|
4060
|
-
function
|
|
4061
|
-
return
|
|
4062
|
-
return String.fromCharCode(
|
|
4083
|
+
function W(a) {
|
|
4084
|
+
return a.replace(/[A-Z]/g, function(f) {
|
|
4085
|
+
return String.fromCharCode(f.charCodeAt(0) + 32);
|
|
4063
4086
|
});
|
|
4064
4087
|
}
|
|
4065
|
-
function
|
|
4066
|
-
for (var
|
|
4067
|
-
`),
|
|
4068
|
-
var
|
|
4069
|
-
|
|
4088
|
+
function q(a) {
|
|
4089
|
+
for (var f = /* @__PURE__ */ Object.create(null), p = a.split(`\r
|
|
4090
|
+
`), c = 0; c < p.length; c += 1) {
|
|
4091
|
+
var v = p[c], E = v.split(": "), y = E.shift(), L = E.join(": ");
|
|
4092
|
+
f[W(y)] = L;
|
|
4070
4093
|
}
|
|
4071
|
-
this._map =
|
|
4094
|
+
this._map = f;
|
|
4072
4095
|
}
|
|
4073
|
-
|
|
4074
|
-
return this._map[
|
|
4075
|
-
},
|
|
4076
|
-
function
|
|
4096
|
+
q.prototype.get = function(a) {
|
|
4097
|
+
return this._map[W(a)];
|
|
4098
|
+
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4099
|
+
function Y() {
|
|
4077
4100
|
}
|
|
4078
|
-
|
|
4079
|
-
|
|
4080
|
-
var
|
|
4081
|
-
|
|
4082
|
-
var
|
|
4083
|
-
|
|
4084
|
-
},
|
|
4085
|
-
|
|
4086
|
-
},
|
|
4087
|
-
|
|
4088
|
-
},
|
|
4089
|
-
|
|
4090
|
-
},
|
|
4091
|
-
if (
|
|
4092
|
-
var
|
|
4093
|
-
|
|
4101
|
+
Y.prototype.open = function(a, f, p, c, v, E, y) {
|
|
4102
|
+
a.open("GET", v);
|
|
4103
|
+
var L = 0;
|
|
4104
|
+
a.onprogress = function() {
|
|
4105
|
+
var P = a.responseText, G = P.slice(L);
|
|
4106
|
+
L += G.length, p(G);
|
|
4107
|
+
}, a.onerror = function(P) {
|
|
4108
|
+
P.preventDefault(), c(new Error("NetworkError"));
|
|
4109
|
+
}, a.onload = function() {
|
|
4110
|
+
c(null);
|
|
4111
|
+
}, a.onabort = function() {
|
|
4112
|
+
c(null);
|
|
4113
|
+
}, a.onreadystatechange = function() {
|
|
4114
|
+
if (a.readyState === o.HEADERS_RECEIVED) {
|
|
4115
|
+
var P = a.status, G = a.statusText, w = a.getResponseHeader("Content-Type"), V = a.getAllResponseHeaders();
|
|
4116
|
+
f(P, G, w, new q(V));
|
|
4094
4117
|
}
|
|
4095
|
-
},
|
|
4096
|
-
for (var
|
|
4097
|
-
Object.prototype.hasOwnProperty.call(
|
|
4098
|
-
return
|
|
4118
|
+
}, a.withCredentials = E;
|
|
4119
|
+
for (var A in y)
|
|
4120
|
+
Object.prototype.hasOwnProperty.call(y, A) && a.setRequestHeader(A, y[A]);
|
|
4121
|
+
return a.send(), a;
|
|
4099
4122
|
};
|
|
4100
|
-
function
|
|
4101
|
-
this._headers =
|
|
4123
|
+
function $(a) {
|
|
4124
|
+
this._headers = a;
|
|
4102
4125
|
}
|
|
4103
|
-
|
|
4104
|
-
return this._headers.get(
|
|
4126
|
+
$.prototype.get = function(a) {
|
|
4127
|
+
return this._headers.get(a);
|
|
4105
4128
|
};
|
|
4106
|
-
function
|
|
4129
|
+
function R() {
|
|
4107
4130
|
}
|
|
4108
|
-
|
|
4109
|
-
var
|
|
4110
|
-
return
|
|
4111
|
-
headers:
|
|
4112
|
-
credentials:
|
|
4113
|
-
signal:
|
|
4131
|
+
R.prototype.open = function(a, f, p, c, v, E, y) {
|
|
4132
|
+
var L = null, A = new T(), P = A.signal, G = new _();
|
|
4133
|
+
return m(v, {
|
|
4134
|
+
headers: y,
|
|
4135
|
+
credentials: E ? "include" : "same-origin",
|
|
4136
|
+
signal: P,
|
|
4114
4137
|
cache: "no-store"
|
|
4115
|
-
}).then(function(
|
|
4116
|
-
return
|
|
4117
|
-
var
|
|
4118
|
-
|
|
4138
|
+
}).then(function(w) {
|
|
4139
|
+
return L = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new $(w.headers)), new d(function(V, ge) {
|
|
4140
|
+
var Qe = function() {
|
|
4141
|
+
L.read().then(function(ie) {
|
|
4119
4142
|
if (ie.done)
|
|
4120
|
-
|
|
4143
|
+
V(void 0);
|
|
4121
4144
|
else {
|
|
4122
|
-
var
|
|
4123
|
-
p(
|
|
4145
|
+
var K = G.decode(ie.value, { stream: !0 });
|
|
4146
|
+
p(K), Qe();
|
|
4124
4147
|
}
|
|
4125
4148
|
}).catch(function(ie) {
|
|
4126
|
-
|
|
4149
|
+
ge(ie);
|
|
4127
4150
|
});
|
|
4128
4151
|
};
|
|
4129
|
-
|
|
4152
|
+
Qe();
|
|
4130
4153
|
});
|
|
4131
|
-
}).catch(function(
|
|
4132
|
-
if (
|
|
4133
|
-
return
|
|
4134
|
-
}).then(function(
|
|
4135
|
-
|
|
4154
|
+
}).catch(function(w) {
|
|
4155
|
+
if (w.name !== "AbortError")
|
|
4156
|
+
return w;
|
|
4157
|
+
}).then(function(w) {
|
|
4158
|
+
c(w);
|
|
4136
4159
|
}), {
|
|
4137
4160
|
abort: function() {
|
|
4138
|
-
|
|
4161
|
+
L?.cancel(), A.abort();
|
|
4139
4162
|
}
|
|
4140
4163
|
};
|
|
4141
4164
|
};
|
|
4142
|
-
function
|
|
4165
|
+
function X() {
|
|
4143
4166
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4144
4167
|
}
|
|
4145
|
-
function
|
|
4168
|
+
function F(a) {
|
|
4146
4169
|
r(function() {
|
|
4147
|
-
throw
|
|
4170
|
+
throw a;
|
|
4148
4171
|
}, 0);
|
|
4149
4172
|
}
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
var
|
|
4153
|
-
if (
|
|
4154
|
-
for (var p =
|
|
4155
|
-
var
|
|
4173
|
+
X.prototype.dispatchEvent = function(a) {
|
|
4174
|
+
a.target = this;
|
|
4175
|
+
var f = this._listeners[a.type];
|
|
4176
|
+
if (f != null)
|
|
4177
|
+
for (var p = f.length, c = 0; c < p; c += 1) {
|
|
4178
|
+
var v = f[c];
|
|
4156
4179
|
try {
|
|
4157
|
-
typeof
|
|
4158
|
-
} catch (
|
|
4159
|
-
|
|
4180
|
+
typeof v.handleEvent == "function" ? v.handleEvent(a) : v.call(this, a);
|
|
4181
|
+
} catch (E) {
|
|
4182
|
+
F(E);
|
|
4160
4183
|
}
|
|
4161
4184
|
}
|
|
4162
|
-
},
|
|
4163
|
-
|
|
4164
|
-
var p = this._listeners,
|
|
4165
|
-
|
|
4166
|
-
for (var
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
},
|
|
4170
|
-
|
|
4171
|
-
var p = this._listeners,
|
|
4172
|
-
if (
|
|
4173
|
-
for (var
|
|
4174
|
-
|
|
4175
|
-
|
|
4185
|
+
}, X.prototype.addEventListener = function(a, f) {
|
|
4186
|
+
a = String(a);
|
|
4187
|
+
var p = this._listeners, c = p[a];
|
|
4188
|
+
c == null && (c = [], p[a] = c);
|
|
4189
|
+
for (var v = !1, E = 0; E < c.length; E += 1)
|
|
4190
|
+
c[E] === f && (v = !0);
|
|
4191
|
+
v || c.push(f);
|
|
4192
|
+
}, X.prototype.removeEventListener = function(a, f) {
|
|
4193
|
+
a = String(a);
|
|
4194
|
+
var p = this._listeners, c = p[a];
|
|
4195
|
+
if (c != null) {
|
|
4196
|
+
for (var v = [], E = 0; E < c.length; E += 1)
|
|
4197
|
+
c[E] !== f && v.push(c[E]);
|
|
4198
|
+
v.length === 0 ? delete p[a] : p[a] = v;
|
|
4176
4199
|
}
|
|
4177
4200
|
};
|
|
4178
|
-
function
|
|
4179
|
-
this.type =
|
|
4201
|
+
function b(a) {
|
|
4202
|
+
this.type = a, this.target = void 0;
|
|
4180
4203
|
}
|
|
4181
|
-
function
|
|
4182
|
-
|
|
4204
|
+
function xe(a, f) {
|
|
4205
|
+
b.call(this, a), this.data = f.data, this.lastEventId = f.lastEventId;
|
|
4183
4206
|
}
|
|
4184
|
-
|
|
4185
|
-
function
|
|
4186
|
-
|
|
4207
|
+
xe.prototype = Object.create(b.prototype);
|
|
4208
|
+
function We(a, f) {
|
|
4209
|
+
b.call(this, a), this.status = f.status, this.statusText = f.statusText, this.headers = f.headers;
|
|
4187
4210
|
}
|
|
4188
|
-
|
|
4189
|
-
function
|
|
4190
|
-
|
|
4211
|
+
We.prototype = Object.create(b.prototype);
|
|
4212
|
+
function _e(a, f) {
|
|
4213
|
+
b.call(this, a), this.error = f.error;
|
|
4191
4214
|
}
|
|
4192
|
-
|
|
4193
|
-
var
|
|
4194
|
-
var p =
|
|
4195
|
-
return p !== p && (p =
|
|
4196
|
-
},
|
|
4197
|
-
return Math.min(Math.max(
|
|
4198
|
-
}, Te = function(
|
|
4215
|
+
_e.prototype = Object.create(b.prototype);
|
|
4216
|
+
var Oe = -1, pe = 0, Be = 1, Se = 2, Ae = -1, le = 0, Ze = 1, Re = 2, it = 3, Bt = /^text\/event\-stream(;.*)?$/i, ot = 1e3, Tt = 18e6, qe = function(a, f) {
|
|
4217
|
+
var p = a == null ? f : parseInt(a, 10);
|
|
4218
|
+
return p !== p && (p = f), Le(p);
|
|
4219
|
+
}, Le = function(a) {
|
|
4220
|
+
return Math.min(Math.max(a, ot), Tt);
|
|
4221
|
+
}, Te = function(a, f, p) {
|
|
4199
4222
|
try {
|
|
4200
|
-
typeof
|
|
4201
|
-
} catch (
|
|
4202
|
-
|
|
4223
|
+
typeof f == "function" && f.call(a, p);
|
|
4224
|
+
} catch (c) {
|
|
4225
|
+
F(c);
|
|
4203
4226
|
}
|
|
4204
4227
|
};
|
|
4205
|
-
function re(
|
|
4206
|
-
|
|
4228
|
+
function re(a, f) {
|
|
4229
|
+
X.call(this), f = f || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, At(this, a, f);
|
|
4207
4230
|
}
|
|
4208
4231
|
function wt() {
|
|
4209
|
-
return
|
|
4232
|
+
return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
|
|
4210
4233
|
}
|
|
4211
|
-
var St =
|
|
4212
|
-
function At(
|
|
4213
|
-
|
|
4214
|
-
var
|
|
4215
|
-
if (
|
|
4216
|
-
if (Z === 200 &&
|
|
4217
|
-
|
|
4218
|
-
var
|
|
4234
|
+
var St = m != null && g != null && "body" in g.prototype;
|
|
4235
|
+
function At(a, f, p) {
|
|
4236
|
+
f = String(f);
|
|
4237
|
+
var c = !!p.withCredentials, v = p.lastEventIdQueryParameterName || "lastEventId", E = Le(1e3), y = qe(p.heartbeatTimeout, 45e3), L = "", A = E, P = !1, G = 0, w = p.headers || {}, V = p.Transport, ge = St && V == null ? void 0 : new U(V != null ? new V() : wt()), Qe = V != null && typeof V != "string" ? new V() : ge == null ? new R() : new Y(), ie = void 0, K = 0, ue = Oe, Me = "", st = "", be = "", lt = "", ee = le, Ct = 0, Ce = 0, nr = function(Z, z, oe, ae) {
|
|
4238
|
+
if (ue === pe)
|
|
4239
|
+
if (Z === 200 && oe != null && Bt.test(oe)) {
|
|
4240
|
+
ue = Be, P = Date.now(), A = E, a.readyState = Be;
|
|
4241
|
+
var te = new We("open", {
|
|
4219
4242
|
status: Z,
|
|
4220
4243
|
statusText: z,
|
|
4221
|
-
headers:
|
|
4244
|
+
headers: ae
|
|
4222
4245
|
});
|
|
4223
|
-
|
|
4246
|
+
a.dispatchEvent(te), Te(a, a.onopen, te);
|
|
4224
4247
|
} else {
|
|
4225
|
-
var
|
|
4226
|
-
Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")),
|
|
4227
|
-
var
|
|
4248
|
+
var Q = "";
|
|
4249
|
+
Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), Q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : Q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Ht();
|
|
4250
|
+
var te = new We("error", {
|
|
4228
4251
|
status: Z,
|
|
4229
4252
|
statusText: z,
|
|
4230
|
-
headers:
|
|
4253
|
+
headers: ae
|
|
4231
4254
|
});
|
|
4232
|
-
|
|
4255
|
+
a.dispatchEvent(te), Te(a, a.onerror, te), console.error(Q);
|
|
4233
4256
|
}
|
|
4234
4257
|
}, rr = function(Z) {
|
|
4235
|
-
if (
|
|
4236
|
-
for (var z = -1,
|
|
4237
|
-
var
|
|
4238
|
-
(
|
|
4258
|
+
if (ue === Be) {
|
|
4259
|
+
for (var z = -1, oe = 0; oe < Z.length; oe += 1) {
|
|
4260
|
+
var ae = Z.charCodeAt(oe);
|
|
4261
|
+
(ae === 10 || ae === 13) && (z = oe);
|
|
4239
4262
|
}
|
|
4240
|
-
var
|
|
4241
|
-
|
|
4242
|
-
for (var
|
|
4243
|
-
var
|
|
4244
|
-
if (
|
|
4245
|
-
|
|
4246
|
-
else if (
|
|
4247
|
-
if (
|
|
4248
|
-
|
|
4249
|
-
var
|
|
4250
|
-
|
|
4251
|
-
`,
|
|
4252
|
-
|
|
4253
|
-
},
|
|
4263
|
+
var te = (z !== -1 ? lt : "") + Z.slice(0, z + 1);
|
|
4264
|
+
lt = (z === -1 ? lt : "") + Z.slice(z + 1), Z !== "" && (P = Date.now(), G += Z.length);
|
|
4265
|
+
for (var Q = 0; Q < te.length; Q += 1) {
|
|
4266
|
+
var ae = te.charCodeAt(Q);
|
|
4267
|
+
if (ee === Ae && ae === 10)
|
|
4268
|
+
ee = le;
|
|
4269
|
+
else if (ee === Ae && (ee = le), ae === 13 || ae === 10) {
|
|
4270
|
+
if (ee !== le) {
|
|
4271
|
+
ee === Ze && (Ce = Q + 1);
|
|
4272
|
+
var ye = te.slice(Ct, Ce - 1), ve = te.slice(Ce + (Ce < Q && te.charCodeAt(Ce) === 32 ? 1 : 0), Q);
|
|
4273
|
+
ye === "data" ? (Me += `
|
|
4274
|
+
`, Me += ve) : ye === "id" ? st = ve : ye === "event" ? be = ve : ye === "retry" ? (E = qe(ve, E), A = E) : ye === "heartbeatTimeout" && (y = qe(ve, y), K !== 0 && (i(K), K = r(function() {
|
|
4275
|
+
Je();
|
|
4276
|
+
}, y)));
|
|
4254
4277
|
}
|
|
4255
|
-
if (
|
|
4256
|
-
if (
|
|
4257
|
-
|
|
4258
|
-
var
|
|
4259
|
-
data:
|
|
4260
|
-
lastEventId:
|
|
4278
|
+
if (ee === le) {
|
|
4279
|
+
if (Me !== "") {
|
|
4280
|
+
L = st, be === "" && (be = "message");
|
|
4281
|
+
var Ne = new xe(be, {
|
|
4282
|
+
data: Me.slice(1),
|
|
4283
|
+
lastEventId: st
|
|
4261
4284
|
});
|
|
4262
|
-
if (
|
|
4285
|
+
if (a.dispatchEvent(Ne), be === "open" ? Te(a, a.onopen, Ne) : be === "message" ? Te(a, a.onmessage, Ne) : be === "error" && Te(a, a.onerror, Ne), ue === Se)
|
|
4263
4286
|
return;
|
|
4264
4287
|
}
|
|
4265
|
-
|
|
4288
|
+
Me = "", be = "";
|
|
4266
4289
|
}
|
|
4267
|
-
|
|
4290
|
+
ee = ae === 13 ? Ae : le;
|
|
4268
4291
|
} else
|
|
4269
|
-
|
|
4292
|
+
ee === le && (Ct = Q, ee = Ze), ee === Ze ? ae === 58 && (Ce = Q + 1, ee = Re) : ee === Re && (ee = it);
|
|
4270
4293
|
}
|
|
4271
4294
|
}
|
|
4272
4295
|
}, en = function(Z) {
|
|
4273
|
-
if (
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
},
|
|
4277
|
-
var z = new
|
|
4278
|
-
|
|
4296
|
+
if (ue === Be || ue === pe) {
|
|
4297
|
+
ue = Oe, K !== 0 && (i(K), K = 0), K = r(function() {
|
|
4298
|
+
Je();
|
|
4299
|
+
}, A), A = Le(Math.min(E * 16, A * 2)), a.readyState = pe;
|
|
4300
|
+
var z = new _e("error", { error: Z });
|
|
4301
|
+
a.dispatchEvent(z), Te(a, a.onerror, z), Z != null && console.error(Z);
|
|
4279
4302
|
}
|
|
4280
4303
|
}, Ht = function() {
|
|
4281
|
-
|
|
4282
|
-
},
|
|
4283
|
-
if (
|
|
4284
|
-
if (!
|
|
4285
|
-
en(new Error("No activity within " +
|
|
4304
|
+
ue = Se, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Se;
|
|
4305
|
+
}, Je = function() {
|
|
4306
|
+
if (K = 0, ue !== Oe) {
|
|
4307
|
+
if (!P && ie != null)
|
|
4308
|
+
en(new Error("No activity within " + y + " milliseconds. " + (ue === pe ? "No response received." : G + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
|
|
4286
4309
|
else {
|
|
4287
|
-
var Z = Math.max((
|
|
4288
|
-
|
|
4289
|
-
|
|
4310
|
+
var Z = Math.max((P || Date.now()) + y - Date.now(), 1);
|
|
4311
|
+
P = !1, K = r(function() {
|
|
4312
|
+
Je();
|
|
4290
4313
|
}, Z);
|
|
4291
4314
|
}
|
|
4292
4315
|
return;
|
|
4293
4316
|
}
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
},
|
|
4297
|
-
var z =
|
|
4298
|
-
if (
|
|
4299
|
-
var
|
|
4300
|
-
z =
|
|
4301
|
-
return
|
|
4302
|
-
}), z += (
|
|
4317
|
+
P = !1, G = 0, K = r(function() {
|
|
4318
|
+
Je();
|
|
4319
|
+
}, y), ue = pe, Me = "", be = "", st = L, lt = "", Ct = 0, Ce = 0, ee = le;
|
|
4320
|
+
var z = f;
|
|
4321
|
+
if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" && L !== "") {
|
|
4322
|
+
var oe = f.indexOf("?");
|
|
4323
|
+
z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ve, Ne) {
|
|
4324
|
+
return Ne === v ? "" : ve;
|
|
4325
|
+
}), z += (f.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(L);
|
|
4303
4326
|
}
|
|
4304
|
-
var
|
|
4305
|
-
|
|
4306
|
-
var
|
|
4307
|
-
if (
|
|
4308
|
-
for (var
|
|
4309
|
-
Object.prototype.hasOwnProperty.call(
|
|
4327
|
+
var ae = a.withCredentials, te = {};
|
|
4328
|
+
te.Accept = "text/event-stream";
|
|
4329
|
+
var Q = a.headers;
|
|
4330
|
+
if (Q != null)
|
|
4331
|
+
for (var ye in Q)
|
|
4332
|
+
Object.prototype.hasOwnProperty.call(Q, ye) && (te[ye] = Q[ye]);
|
|
4310
4333
|
try {
|
|
4311
|
-
ie =
|
|
4312
|
-
} catch (
|
|
4313
|
-
throw Ht(),
|
|
4334
|
+
ie = Qe.open(ge, nr, rr, en, z, ae, te);
|
|
4335
|
+
} catch (ve) {
|
|
4336
|
+
throw Ht(), ve;
|
|
4314
4337
|
}
|
|
4315
4338
|
};
|
|
4316
|
-
|
|
4339
|
+
a.url = f, a.readyState = pe, a.withCredentials = c, a.headers = w, a._close = Ht, Je();
|
|
4317
4340
|
}
|
|
4318
|
-
re.prototype = Object.create(
|
|
4341
|
+
re.prototype = Object.create(X.prototype), re.prototype.CONNECTING = pe, re.prototype.OPEN = Be, re.prototype.CLOSED = Se, re.prototype.close = function() {
|
|
4319
4342
|
this._close();
|
|
4320
|
-
}, re.CONNECTING =
|
|
4343
|
+
}, re.CONNECTING = pe, re.OPEN = Be, re.CLOSED = Se, re.prototype.withCredentials = void 0;
|
|
4321
4344
|
var at = h;
|
|
4322
|
-
|
|
4345
|
+
o != null && (h == null || !("withCredentials" in h.prototype)) && (at = re), function(a) {
|
|
4323
4346
|
{
|
|
4324
|
-
var
|
|
4325
|
-
|
|
4347
|
+
var f = a(t);
|
|
4348
|
+
f !== void 0 && (e.exports = f);
|
|
4326
4349
|
}
|
|
4327
|
-
}(function(
|
|
4328
|
-
|
|
4350
|
+
}(function(a) {
|
|
4351
|
+
a.EventSourcePolyfill = re, a.NativeEventSource = h, a.EventSource = at;
|
|
4329
4352
|
});
|
|
4330
|
-
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self :
|
|
4353
|
+
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Rr : globalThis);
|
|
4331
4354
|
})(qt, qt.exports);
|
|
4332
|
-
var
|
|
4355
|
+
var xo = qt.exports;
|
|
4333
4356
|
/*!
|
|
4334
4357
|
* currency.js - v2.0.4
|
|
4335
4358
|
* http://scurker.github.io/currency.js
|
|
@@ -4337,7 +4360,7 @@ var ba = qt.exports;
|
|
|
4337
4360
|
* Copyright (c) 2021 Jason Wilson
|
|
4338
4361
|
* Released under MIT license
|
|
4339
4362
|
*/
|
|
4340
|
-
var
|
|
4363
|
+
var _o = {
|
|
4341
4364
|
symbol: "$",
|
|
4342
4365
|
separator: ",",
|
|
4343
4366
|
decimal: ".",
|
|
@@ -4345,43 +4368,43 @@ var ya = {
|
|
|
4345
4368
|
precision: 2,
|
|
4346
4369
|
pattern: "!#",
|
|
4347
4370
|
negativePattern: "-!#",
|
|
4348
|
-
format:
|
|
4371
|
+
format: So,
|
|
4349
4372
|
fromCents: !1
|
|
4350
4373
|
}, tr = function(t) {
|
|
4351
4374
|
return Math.round(t);
|
|
4352
4375
|
}, Kt = function(t) {
|
|
4353
4376
|
return Math.pow(10, t);
|
|
4354
|
-
},
|
|
4377
|
+
}, Bo = function(t, n) {
|
|
4355
4378
|
return tr(t / n) * n;
|
|
4356
|
-
},
|
|
4357
|
-
function
|
|
4379
|
+
}, To = /(\d)(?=(\d{3})+\b)/g, wo = /(\d)(?=(\d\d)+\d\b)/g;
|
|
4380
|
+
function ce(e, t) {
|
|
4358
4381
|
var n = this;
|
|
4359
|
-
if (!(n instanceof
|
|
4360
|
-
return new
|
|
4361
|
-
var r = Object.assign({},
|
|
4362
|
-
n.intValue =
|
|
4382
|
+
if (!(n instanceof ce))
|
|
4383
|
+
return new ce(e, t);
|
|
4384
|
+
var r = Object.assign({}, _o, t), i = Kt(r.precision), o = dt(e, r);
|
|
4385
|
+
n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = wo : r.groups = To, this.s = r, this.p = i;
|
|
4363
4386
|
}
|
|
4364
|
-
function
|
|
4365
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal,
|
|
4387
|
+
function dt(e, t) {
|
|
4388
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, l = t.precision, s = t.fromCents, h = Kt(l), u = typeof e == "number", d = e instanceof ce;
|
|
4366
4389
|
if (d && s)
|
|
4367
4390
|
return e.intValue;
|
|
4368
4391
|
if (u || d)
|
|
4369
4392
|
r = d ? e.value : e;
|
|
4370
4393
|
else if (typeof e == "string") {
|
|
4371
|
-
var
|
|
4372
|
-
r = e.replace(/\((.*)\)/, "-$1").replace(
|
|
4394
|
+
var m = new RegExp("[^-\\d" + i + "]", "g"), g = new RegExp("\\" + i, "g");
|
|
4395
|
+
r = e.replace(/\((.*)\)/, "-$1").replace(m, "").replace(g, "."), r = r || 0;
|
|
4373
4396
|
} else {
|
|
4374
|
-
if (
|
|
4397
|
+
if (o)
|
|
4375
4398
|
throw Error("Invalid Input");
|
|
4376
4399
|
r = 0;
|
|
4377
4400
|
}
|
|
4378
4401
|
return s || (r *= h, r = r.toFixed(4)), n ? tr(r) : r;
|
|
4379
4402
|
}
|
|
4380
|
-
function
|
|
4381
|
-
var n = t.pattern, r = t.negativePattern, i = t.symbol,
|
|
4382
|
-
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" +
|
|
4403
|
+
function So(e, t) {
|
|
4404
|
+
var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, l = t.decimal, s = t.groups, h = ("" + e).replace(/^-/, "").split("."), u = h[0], d = h[1];
|
|
4405
|
+
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + o) + (d ? l + d : ""));
|
|
4383
4406
|
}
|
|
4384
|
-
|
|
4407
|
+
ce.prototype = {
|
|
4385
4408
|
/**
|
|
4386
4409
|
* Adds values together.
|
|
4387
4410
|
* @param {number} number
|
|
@@ -4389,7 +4412,7 @@ ue.prototype = {
|
|
|
4389
4412
|
*/
|
|
4390
4413
|
add: function(t) {
|
|
4391
4414
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4392
|
-
return
|
|
4415
|
+
return ce((n += dt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4393
4416
|
},
|
|
4394
4417
|
/**
|
|
4395
4418
|
* Subtracts value.
|
|
@@ -4398,7 +4421,7 @@ ue.prototype = {
|
|
|
4398
4421
|
*/
|
|
4399
4422
|
subtract: function(t) {
|
|
4400
4423
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4401
|
-
return
|
|
4424
|
+
return ce((n -= dt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4402
4425
|
},
|
|
4403
4426
|
/**
|
|
4404
4427
|
* Multiplies values.
|
|
@@ -4407,7 +4430,7 @@ ue.prototype = {
|
|
|
4407
4430
|
*/
|
|
4408
4431
|
multiply: function(t) {
|
|
4409
4432
|
var n = this.intValue, r = this.s;
|
|
4410
|
-
return
|
|
4433
|
+
return ce((n *= t) / (r.fromCents ? 1 : Kt(r.precision)), r);
|
|
4411
4434
|
},
|
|
4412
4435
|
/**
|
|
4413
4436
|
* Divides value.
|
|
@@ -4416,7 +4439,7 @@ ue.prototype = {
|
|
|
4416
4439
|
*/
|
|
4417
4440
|
divide: function(t) {
|
|
4418
4441
|
var n = this.intValue, r = this.s;
|
|
4419
|
-
return
|
|
4442
|
+
return ce(n /= dt(t, r, !1), r);
|
|
4420
4443
|
},
|
|
4421
4444
|
/**
|
|
4422
4445
|
* Takes the currency amount and distributes the values evenly. Any extra pennies
|
|
@@ -4425,11 +4448,11 @@ ue.prototype = {
|
|
|
4425
4448
|
* @returns {array}
|
|
4426
4449
|
*/
|
|
4427
4450
|
distribute: function(t) {
|
|
4428
|
-
for (var n = this.intValue, r = this.p, i = this.s,
|
|
4429
|
-
var u =
|
|
4430
|
-
s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / h)),
|
|
4451
|
+
for (var n = this.intValue, r = this.p, i = this.s, o = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t), s = Math.abs(n - l * t), h = i.fromCents ? 1 : r; t !== 0; t--) {
|
|
4452
|
+
var u = ce(l / h, i);
|
|
4453
|
+
s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / h)), o.push(u);
|
|
4431
4454
|
}
|
|
4432
|
-
return
|
|
4455
|
+
return o;
|
|
4433
4456
|
},
|
|
4434
4457
|
/**
|
|
4435
4458
|
* Returns the dollar value.
|
|
@@ -4461,7 +4484,7 @@ ue.prototype = {
|
|
|
4461
4484
|
*/
|
|
4462
4485
|
toString: function() {
|
|
4463
4486
|
var t = this.intValue, n = this.p, r = this.s;
|
|
4464
|
-
return
|
|
4487
|
+
return Bo(t / n, r.increment).toFixed(r.precision);
|
|
4465
4488
|
},
|
|
4466
4489
|
/**
|
|
4467
4490
|
* Value for JSON serialization.
|
|
@@ -4471,8 +4494,8 @@ ue.prototype = {
|
|
|
4471
4494
|
return this.value;
|
|
4472
4495
|
}
|
|
4473
4496
|
};
|
|
4474
|
-
function
|
|
4475
|
-
|
|
4497
|
+
function Ao(e) {
|
|
4498
|
+
ar(e, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
|
|
4476
4499
|
}
|
|
4477
4500
|
function En(e, t, n) {
|
|
4478
4501
|
const r = e.slice();
|
|
@@ -4482,7 +4505,7 @@ function xn(e, t, n) {
|
|
|
4482
4505
|
const r = e.slice();
|
|
4483
4506
|
return r[53] = t[n], r;
|
|
4484
4507
|
}
|
|
4485
|
-
function
|
|
4508
|
+
function Co(e) {
|
|
4486
4509
|
let t, n, r = (
|
|
4487
4510
|
/*balances*/
|
|
4488
4511
|
(e[1].Total ? (
|
|
@@ -4492,147 +4515,147 @@ function Ta(e) {
|
|
|
4492
4515
|
e[1].Total[0].amount
|
|
4493
4516
|
)
|
|
4494
4517
|
) : "0") + ""
|
|
4495
|
-
), i,
|
|
4518
|
+
), i, o, l, s, h, u, d, m, g, _, B, T, x = (
|
|
4496
4519
|
/*showBalance*/
|
|
4497
4520
|
e[4] && _n(e)
|
|
4498
4521
|
);
|
|
4499
4522
|
return {
|
|
4500
4523
|
c() {
|
|
4501
|
-
t =
|
|
4524
|
+
t = j("div"), n = j("p"), i = he(r), o = de(), l = he(
|
|
4502
4525
|
/*currency*/
|
|
4503
4526
|
e[5]
|
|
4504
|
-
), s =
|
|
4505
|
-
e[3] ? "TriangleActive" : "TriangleInactive"),
|
|
4527
|
+
), s = de(), h = j("span"), u = nn("svg"), d = nn("path"), g = de(), x && x.c(), _ = ur(), N(d, "id", "arrow"), N(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), N(d, "transform", "translate(-274.511 -441.088)"), N(d, "fill", "#d1d1d1"), N(u, "xmlns", "http://www.w3.org/2000/svg"), N(u, "width", "14"), N(u, "height", "6.835"), N(u, "viewBox", "0 0 14 6.835"), N(h, "class", m = /*modalOpened*/
|
|
4528
|
+
e[3] ? "TriangleActive" : "TriangleInactive"), N(t, "class", "BalanceValue");
|
|
4506
4529
|
},
|
|
4507
|
-
m(
|
|
4508
|
-
me(
|
|
4530
|
+
m(S, D) {
|
|
4531
|
+
me(S, t, D), C(t, n), C(n, i), C(n, o), C(n, l), C(t, s), C(t, h), C(h, u), C(u, d), me(S, g, D), x && x.m(S, D), me(S, _, D), B || (T = pt(
|
|
4509
4532
|
t,
|
|
4510
4533
|
"click",
|
|
4511
4534
|
/*click_handler*/
|
|
4512
|
-
e[
|
|
4513
|
-
),
|
|
4535
|
+
e[25]
|
|
4536
|
+
), B = !0);
|
|
4514
4537
|
},
|
|
4515
|
-
p(
|
|
4516
|
-
|
|
4538
|
+
p(S, D) {
|
|
4539
|
+
D[0] & /*balances*/
|
|
4517
4540
|
2 && r !== (r = /*balances*/
|
|
4518
|
-
(
|
|
4541
|
+
(S[1].Total ? (
|
|
4519
4542
|
/*formatBalance*/
|
|
4520
|
-
|
|
4543
|
+
S[8](
|
|
4521
4544
|
/*balances*/
|
|
4522
|
-
|
|
4545
|
+
S[1].Total[0].amount
|
|
4523
4546
|
)
|
|
4524
|
-
) : "0") + "") &&
|
|
4525
|
-
32 &&
|
|
4547
|
+
) : "0") + "") && Ee(i, r), D[0] & /*currency*/
|
|
4548
|
+
32 && Ee(
|
|
4526
4549
|
l,
|
|
4527
4550
|
/*currency*/
|
|
4528
|
-
|
|
4529
|
-
),
|
|
4530
|
-
8 &&
|
|
4531
|
-
|
|
4532
|
-
|
|
4551
|
+
S[5]
|
|
4552
|
+
), D[0] & /*modalOpened*/
|
|
4553
|
+
8 && m !== (m = /*modalOpened*/
|
|
4554
|
+
S[3] ? "TriangleActive" : "TriangleInactive") && N(h, "class", m), /*showBalance*/
|
|
4555
|
+
S[4] ? x ? x.p(S, D) : (x = _n(S), x.c(), x.m(_.parentNode, _)) : x && (x.d(1), x = null);
|
|
4533
4556
|
},
|
|
4534
|
-
d(
|
|
4535
|
-
|
|
4557
|
+
d(S) {
|
|
4558
|
+
S && (fe(t), fe(g), fe(_)), x && x.d(S), B = !1, T();
|
|
4536
4559
|
}
|
|
4537
4560
|
};
|
|
4538
4561
|
}
|
|
4539
|
-
function
|
|
4562
|
+
function Ho(e) {
|
|
4540
4563
|
let t, n = (
|
|
4541
4564
|
/*$_*/
|
|
4542
4565
|
e[6]("Loading") + ""
|
|
4543
4566
|
), r;
|
|
4544
4567
|
return {
|
|
4545
4568
|
c() {
|
|
4546
|
-
t =
|
|
4569
|
+
t = j("p"), r = he(n), N(t, "class", "Loading");
|
|
4547
4570
|
},
|
|
4548
|
-
m(i,
|
|
4549
|
-
me(i, t,
|
|
4571
|
+
m(i, o) {
|
|
4572
|
+
me(i, t, o), C(t, r);
|
|
4550
4573
|
},
|
|
4551
|
-
p(i,
|
|
4552
|
-
|
|
4574
|
+
p(i, o) {
|
|
4575
|
+
o[0] & /*$_*/
|
|
4553
4576
|
64 && n !== (n = /*$_*/
|
|
4554
|
-
i[6]("Loading") + "") &&
|
|
4577
|
+
i[6]("Loading") + "") && Ee(r, n);
|
|
4555
4578
|
},
|
|
4556
4579
|
d(i) {
|
|
4557
|
-
i &&
|
|
4580
|
+
i && fe(t);
|
|
4558
4581
|
}
|
|
4559
4582
|
};
|
|
4560
4583
|
}
|
|
4561
4584
|
function _n(e) {
|
|
4562
|
-
let t, n, r, i,
|
|
4585
|
+
let t, n, r, i, o, l, s, h, u = (
|
|
4563
4586
|
/*$_*/
|
|
4564
4587
|
e[6]("Title") + ""
|
|
4565
|
-
), d,
|
|
4588
|
+
), d, m, g, _, B, T, x = (
|
|
4566
4589
|
/*$_*/
|
|
4567
4590
|
e[6]("DepositButton") + ""
|
|
4568
|
-
),
|
|
4591
|
+
), S, D, H, U, W, q, Y = mt(Object.keys(
|
|
4569
4592
|
/*balances*/
|
|
4570
4593
|
e[1]
|
|
4571
|
-
)),
|
|
4572
|
-
for (let
|
|
4573
|
-
|
|
4594
|
+
)), $ = [];
|
|
4595
|
+
for (let R = 0; R < Y.length; R += 1)
|
|
4596
|
+
$[R] = Tn(En(e, Y, R));
|
|
4574
4597
|
return {
|
|
4575
4598
|
c() {
|
|
4576
|
-
t =
|
|
4577
|
-
for (let
|
|
4578
|
-
|
|
4579
|
-
|
|
4580
|
-
(e[3] ? "Open" : "")),
|
|
4581
|
-
(e[3] ? "Open" : "")),
|
|
4582
|
-
(e[3] ? "Open" : "")),
|
|
4599
|
+
t = j("div"), n = j("div"), i = de(), o = j("div"), l = j("div"), s = j("div"), h = j("p"), d = he(u), m = de(), g = j("div");
|
|
4600
|
+
for (let R = 0; R < $.length; R += 1)
|
|
4601
|
+
$[R].c();
|
|
4602
|
+
_ = de(), B = j("div"), T = j("button"), S = he(x), N(n, "class", r = "BalanceModalClose " + /*modalOpened*/
|
|
4603
|
+
(e[3] ? "Open" : "")), N(h, "class", "BalanceModalTitle"), N(s, "class", "BalanceModalHeader"), N(g, "class", "BalanceModalBody"), N(T, "class", "BalanceModalAction"), N(B, "class", "BalanceModalFooter"), N(l, "class", D = "ModalContent " + /*modalOpened*/
|
|
4604
|
+
(e[3] ? "Open" : "")), N(o, "class", H = "BalanceModal " + /*modalOpened*/
|
|
4605
|
+
(e[3] ? "Open" : "")), N(t, "class", U = "BalanceModalWrapper " + /*modalOpened*/
|
|
4583
4606
|
(e[3] ? "Open" : ""));
|
|
4584
4607
|
},
|
|
4585
|
-
m(
|
|
4586
|
-
me(
|
|
4587
|
-
for (let
|
|
4588
|
-
|
|
4589
|
-
C(l,
|
|
4590
|
-
|
|
4608
|
+
m(R, X) {
|
|
4609
|
+
me(R, t, X), C(t, n), C(t, i), C(t, o), C(o, l), C(l, s), C(s, h), C(h, d), C(l, m), C(l, g);
|
|
4610
|
+
for (let F = 0; F < $.length; F += 1)
|
|
4611
|
+
$[F] && $[F].m(g, null);
|
|
4612
|
+
C(l, _), C(l, B), C(B, T), C(T, S), W || (q = [
|
|
4613
|
+
pt(
|
|
4591
4614
|
n,
|
|
4592
4615
|
"click",
|
|
4593
4616
|
/*click_handler_1*/
|
|
4594
|
-
e[
|
|
4617
|
+
e[26]
|
|
4595
4618
|
),
|
|
4596
|
-
|
|
4597
|
-
|
|
4619
|
+
pt(
|
|
4620
|
+
T,
|
|
4598
4621
|
"click",
|
|
4599
4622
|
/*click_handler_2*/
|
|
4600
|
-
e[
|
|
4623
|
+
e[27]
|
|
4601
4624
|
)
|
|
4602
|
-
],
|
|
4625
|
+
], W = !0);
|
|
4603
4626
|
},
|
|
4604
|
-
p(
|
|
4605
|
-
if (
|
|
4627
|
+
p(R, X) {
|
|
4628
|
+
if (X[0] & /*modalOpened*/
|
|
4606
4629
|
8 && r !== (r = "BalanceModalClose " + /*modalOpened*/
|
|
4607
|
-
(
|
|
4630
|
+
(R[3] ? "Open" : "")) && N(n, "class", r), X[0] & /*$_*/
|
|
4608
4631
|
64 && u !== (u = /*$_*/
|
|
4609
|
-
|
|
4632
|
+
R[6]("Title") + "") && Ee(d, u), X[0] & /*balances, currency, formatBalance, $_*/
|
|
4610
4633
|
354) {
|
|
4611
|
-
|
|
4634
|
+
Y = mt(Object.keys(
|
|
4612
4635
|
/*balances*/
|
|
4613
|
-
|
|
4636
|
+
R[1]
|
|
4614
4637
|
));
|
|
4615
|
-
let
|
|
4616
|
-
for (
|
|
4617
|
-
const
|
|
4618
|
-
|
|
4638
|
+
let F;
|
|
4639
|
+
for (F = 0; F < Y.length; F += 1) {
|
|
4640
|
+
const b = En(R, Y, F);
|
|
4641
|
+
$[F] ? $[F].p(b, X) : ($[F] = Tn(b), $[F].c(), $[F].m(g, null));
|
|
4619
4642
|
}
|
|
4620
|
-
for (;
|
|
4621
|
-
|
|
4622
|
-
|
|
4643
|
+
for (; F < $.length; F += 1)
|
|
4644
|
+
$[F].d(1);
|
|
4645
|
+
$.length = Y.length;
|
|
4623
4646
|
}
|
|
4624
|
-
|
|
4625
|
-
64 &&
|
|
4626
|
-
|
|
4627
|
-
8 &&
|
|
4628
|
-
(
|
|
4629
|
-
8 &&
|
|
4630
|
-
(
|
|
4631
|
-
8 &&
|
|
4632
|
-
(
|
|
4647
|
+
X[0] & /*$_*/
|
|
4648
|
+
64 && x !== (x = /*$_*/
|
|
4649
|
+
R[6]("DepositButton") + "") && Ee(S, x), X[0] & /*modalOpened*/
|
|
4650
|
+
8 && D !== (D = "ModalContent " + /*modalOpened*/
|
|
4651
|
+
(R[3] ? "Open" : "")) && N(l, "class", D), X[0] & /*modalOpened*/
|
|
4652
|
+
8 && H !== (H = "BalanceModal " + /*modalOpened*/
|
|
4653
|
+
(R[3] ? "Open" : "")) && N(o, "class", H), X[0] & /*modalOpened*/
|
|
4654
|
+
8 && U !== (U = "BalanceModalWrapper " + /*modalOpened*/
|
|
4655
|
+
(R[3] ? "Open" : "")) && N(t, "class", U);
|
|
4633
4656
|
},
|
|
4634
|
-
d(
|
|
4635
|
-
|
|
4657
|
+
d(R) {
|
|
4658
|
+
R && fe(t), Hn($, R), W = !1, je(q);
|
|
4636
4659
|
}
|
|
4637
4660
|
};
|
|
4638
4661
|
}
|
|
@@ -4643,7 +4666,7 @@ function Bn(e) {
|
|
|
4643
4666
|
/*k*/
|
|
4644
4667
|
e[50]
|
|
4645
4668
|
) + ""
|
|
4646
|
-
), i,
|
|
4669
|
+
), i, o, l = (
|
|
4647
4670
|
/*b*/
|
|
4648
4671
|
(e[53].productType ? (
|
|
4649
4672
|
/*$_*/
|
|
@@ -4652,7 +4675,7 @@ function Bn(e) {
|
|
|
4652
4675
|
e[53].productType
|
|
4653
4676
|
)
|
|
4654
4677
|
) : "") + ""
|
|
4655
|
-
), s, h, u, d,
|
|
4678
|
+
), s, h, u, d, m = (
|
|
4656
4679
|
/*b*/
|
|
4657
4680
|
(e[53].amount ? (
|
|
4658
4681
|
/*formatBalance*/
|
|
@@ -4661,87 +4684,87 @@ function Bn(e) {
|
|
|
4661
4684
|
e[53].amount
|
|
4662
4685
|
)
|
|
4663
4686
|
) : "0") + ""
|
|
4664
|
-
),
|
|
4687
|
+
), g, _, B, T;
|
|
4665
4688
|
return {
|
|
4666
4689
|
c() {
|
|
4667
|
-
t =
|
|
4690
|
+
t = j("div"), n = j("p"), i = he(r), o = de(), s = he(l), h = de(), u = j("p"), d = j("span"), g = he(m), _ = de(), B = j("span"), T = he(
|
|
4668
4691
|
/*currency*/
|
|
4669
4692
|
e[5]
|
|
4670
|
-
),
|
|
4693
|
+
), N(n, "class", "BalanceModalText"), N(d, "class", "BalanceModalAmount"), N(B, "class", "BalanceModalCurrency"), N(u, "class", "BalanceModalValue"), N(t, "class", "BalanceModalRowLine");
|
|
4671
4694
|
},
|
|
4672
|
-
m(
|
|
4673
|
-
me(
|
|
4695
|
+
m(x, S) {
|
|
4696
|
+
me(x, t, S), C(t, n), C(n, i), C(n, o), C(n, s), C(t, h), C(t, u), C(u, d), C(d, g), C(u, _), C(u, B), C(B, T);
|
|
4674
4697
|
},
|
|
4675
|
-
p(
|
|
4676
|
-
|
|
4698
|
+
p(x, S) {
|
|
4699
|
+
S[0] & /*$_, balances*/
|
|
4677
4700
|
66 && r !== (r = /*$_*/
|
|
4678
|
-
|
|
4701
|
+
x[6](
|
|
4679
4702
|
/*k*/
|
|
4680
|
-
|
|
4681
|
-
) + "") &&
|
|
4703
|
+
x[50]
|
|
4704
|
+
) + "") && Ee(i, r), S[0] & /*balances, $_*/
|
|
4682
4705
|
66 && l !== (l = /*b*/
|
|
4683
|
-
(
|
|
4706
|
+
(x[53].productType ? (
|
|
4684
4707
|
/*$_*/
|
|
4685
|
-
|
|
4708
|
+
x[6](
|
|
4686
4709
|
/*b*/
|
|
4687
|
-
|
|
4710
|
+
x[53].productType
|
|
4688
4711
|
)
|
|
4689
|
-
) : "") + "") &&
|
|
4690
|
-
2 &&
|
|
4691
|
-
(
|
|
4712
|
+
) : "") + "") && Ee(s, l), S[0] & /*balances*/
|
|
4713
|
+
2 && m !== (m = /*b*/
|
|
4714
|
+
(x[53].amount ? (
|
|
4692
4715
|
/*formatBalance*/
|
|
4693
|
-
|
|
4716
|
+
x[8](
|
|
4694
4717
|
/*b*/
|
|
4695
|
-
|
|
4718
|
+
x[53].amount
|
|
4696
4719
|
)
|
|
4697
|
-
) : "0") + "") &&
|
|
4698
|
-
32 &&
|
|
4699
|
-
|
|
4720
|
+
) : "0") + "") && Ee(g, m), S[0] & /*currency*/
|
|
4721
|
+
32 && Ee(
|
|
4722
|
+
T,
|
|
4700
4723
|
/*currency*/
|
|
4701
|
-
|
|
4724
|
+
x[5]
|
|
4702
4725
|
);
|
|
4703
4726
|
},
|
|
4704
|
-
d(
|
|
4705
|
-
|
|
4727
|
+
d(x) {
|
|
4728
|
+
x && fe(t);
|
|
4706
4729
|
}
|
|
4707
4730
|
};
|
|
4708
4731
|
}
|
|
4709
4732
|
function Tn(e) {
|
|
4710
|
-
let t, n, r =
|
|
4733
|
+
let t, n, r = mt(
|
|
4711
4734
|
/*balances*/
|
|
4712
4735
|
e[1][
|
|
4713
4736
|
/*k*/
|
|
4714
4737
|
e[50]
|
|
4715
4738
|
]
|
|
4716
4739
|
), i = [];
|
|
4717
|
-
for (let
|
|
4718
|
-
i[
|
|
4740
|
+
for (let o = 0; o < r.length; o += 1)
|
|
4741
|
+
i[o] = Bn(xn(e, r, o));
|
|
4719
4742
|
return {
|
|
4720
4743
|
c() {
|
|
4721
|
-
t =
|
|
4722
|
-
for (let
|
|
4723
|
-
i[
|
|
4724
|
-
n =
|
|
4744
|
+
t = j("div");
|
|
4745
|
+
for (let o = 0; o < i.length; o += 1)
|
|
4746
|
+
i[o].c();
|
|
4747
|
+
n = de(), N(t, "class", "BalanceModalRowBoth");
|
|
4725
4748
|
},
|
|
4726
|
-
m(
|
|
4727
|
-
me(
|
|
4749
|
+
m(o, l) {
|
|
4750
|
+
me(o, t, l);
|
|
4728
4751
|
for (let s = 0; s < i.length; s += 1)
|
|
4729
4752
|
i[s] && i[s].m(t, null);
|
|
4730
4753
|
C(t, n);
|
|
4731
4754
|
},
|
|
4732
|
-
p(
|
|
4755
|
+
p(o, l) {
|
|
4733
4756
|
if (l[0] & /*currency, balances, formatBalance, $_*/
|
|
4734
4757
|
354) {
|
|
4735
|
-
r =
|
|
4758
|
+
r = mt(
|
|
4736
4759
|
/*balances*/
|
|
4737
|
-
|
|
4760
|
+
o[1][
|
|
4738
4761
|
/*k*/
|
|
4739
|
-
|
|
4762
|
+
o[50]
|
|
4740
4763
|
]
|
|
4741
4764
|
);
|
|
4742
4765
|
let s;
|
|
4743
4766
|
for (s = 0; s < r.length; s += 1) {
|
|
4744
|
-
const h = xn(
|
|
4767
|
+
const h = xn(o, r, s);
|
|
4745
4768
|
i[s] ? i[s].p(h, l) : (i[s] = Bn(h), i[s].c(), i[s].m(t, n));
|
|
4746
4769
|
}
|
|
4747
4770
|
for (; s < i.length; s += 1)
|
|
@@ -4749,8 +4772,8 @@ function Tn(e) {
|
|
|
4749
4772
|
i.length = r.length;
|
|
4750
4773
|
}
|
|
4751
4774
|
},
|
|
4752
|
-
d(
|
|
4753
|
-
|
|
4775
|
+
d(o) {
|
|
4776
|
+
o && fe(t), Hn(i, o);
|
|
4754
4777
|
}
|
|
4755
4778
|
};
|
|
4756
4779
|
}
|
|
@@ -4758,62 +4781,62 @@ function wn(e) {
|
|
|
4758
4781
|
let t, n, r;
|
|
4759
4782
|
return {
|
|
4760
4783
|
c() {
|
|
4761
|
-
t =
|
|
4784
|
+
t = j("div"), N(t, "class", "ShowBalanceModalOverlay");
|
|
4762
4785
|
},
|
|
4763
|
-
m(i,
|
|
4764
|
-
me(i, t,
|
|
4786
|
+
m(i, o) {
|
|
4787
|
+
me(i, t, o), n || (r = pt(
|
|
4765
4788
|
t,
|
|
4766
4789
|
"click",
|
|
4767
4790
|
/*click_handler_3*/
|
|
4768
|
-
e[
|
|
4791
|
+
e[28]
|
|
4769
4792
|
), n = !0);
|
|
4770
4793
|
},
|
|
4771
4794
|
p: se,
|
|
4772
4795
|
d(i) {
|
|
4773
|
-
i &&
|
|
4796
|
+
i && fe(t), n = !1, r();
|
|
4774
4797
|
}
|
|
4775
4798
|
};
|
|
4776
4799
|
}
|
|
4777
|
-
function
|
|
4800
|
+
function Oo(e) {
|
|
4778
4801
|
let t, n, r;
|
|
4779
4802
|
function i(h, u) {
|
|
4780
4803
|
return (
|
|
4781
4804
|
/*isLoading*/
|
|
4782
|
-
h[2] ?
|
|
4805
|
+
h[2] ? Ho : Co
|
|
4783
4806
|
);
|
|
4784
4807
|
}
|
|
4785
|
-
let
|
|
4808
|
+
let o = i(e), l = o(e), s = (
|
|
4786
4809
|
/*showBalance*/
|
|
4787
4810
|
e[4] && wn(e)
|
|
4788
4811
|
);
|
|
4789
4812
|
return {
|
|
4790
4813
|
c() {
|
|
4791
|
-
t =
|
|
4814
|
+
t = j("div"), n = j("div"), l.c(), r = de(), s && s.c(), N(n, "class", "ShowBalance");
|
|
4792
4815
|
},
|
|
4793
4816
|
m(h, u) {
|
|
4794
|
-
me(h, t, u), C(t, n), l.m(n, null), C(t, r), s && s.m(t, null), e[
|
|
4817
|
+
me(h, t, u), C(t, n), l.m(n, null), C(t, r), s && s.m(t, null), e[29](t);
|
|
4795
4818
|
},
|
|
4796
4819
|
p(h, u) {
|
|
4797
|
-
|
|
4820
|
+
o === (o = i(h)) && l ? l.p(h, u) : (l.d(1), l = o(h), l && (l.c(), l.m(n, null))), /*showBalance*/
|
|
4798
4821
|
h[4] ? s ? s.p(h, u) : (s = wn(h), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4799
4822
|
},
|
|
4800
4823
|
i: se,
|
|
4801
4824
|
o: se,
|
|
4802
4825
|
d(h) {
|
|
4803
|
-
h &&
|
|
4826
|
+
h && fe(t), l.d(), s && s.d(), e[29](null);
|
|
4804
4827
|
}
|
|
4805
4828
|
};
|
|
4806
4829
|
}
|
|
4807
|
-
function
|
|
4830
|
+
function Ro(e, t, n) {
|
|
4808
4831
|
let r;
|
|
4809
|
-
|
|
4810
|
-
let { userid: i = "" } = t, { session:
|
|
4811
|
-
const
|
|
4812
|
-
fetch(
|
|
4832
|
+
or(e, vo, (a) => n(6, r = a));
|
|
4833
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: h } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: m = "" } = t, { customlocaleidentifier: g = "" } = t, { gmversion: _ = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencyseparator: x = "" } = t, { currencydecimal: S = "" } = t, { currencyprecision: D = "" } = t, H, U, W, q, Y = !1, $ = "", R = [], X, F = !1;
|
|
4834
|
+
const b = {}, xe = ["totalCashAmount", "totalRealAmount"], We = () => {
|
|
4835
|
+
fetch(m).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => yn(f, a[f]))).catch((a) => console.log(a));
|
|
4813
4836
|
};
|
|
4814
|
-
Object.keys(vn).forEach((
|
|
4815
|
-
const
|
|
4816
|
-
switch (
|
|
4837
|
+
Object.keys(vn).forEach((a) => yn(a, vn[a]));
|
|
4838
|
+
const _e = (a) => {
|
|
4839
|
+
switch (a) {
|
|
4817
4840
|
case "balance":
|
|
4818
4841
|
window.postMessage(
|
|
4819
4842
|
{
|
|
@@ -4821,10 +4844,10 @@ function Aa(e, t, n) {
|
|
|
4821
4844
|
status: "open"
|
|
4822
4845
|
},
|
|
4823
4846
|
window.location.href
|
|
4824
|
-
), n(4,
|
|
4847
|
+
), n(4, Y = !0), setTimeout(() => n(3, W = !0), 150);
|
|
4825
4848
|
break;
|
|
4826
4849
|
case "closebalance":
|
|
4827
|
-
n(3,
|
|
4850
|
+
n(3, W = !1), window.postMessage(
|
|
4828
4851
|
{
|
|
4829
4852
|
type: "BalanceModalStatus",
|
|
4830
4853
|
status: "close"
|
|
@@ -4832,85 +4855,85 @@ function Aa(e, t, n) {
|
|
|
4832
4855
|
window.location.href
|
|
4833
4856
|
), setTimeout(
|
|
4834
4857
|
() => {
|
|
4835
|
-
n(4,
|
|
4858
|
+
n(4, Y = !1);
|
|
4836
4859
|
},
|
|
4837
4860
|
150
|
|
4838
4861
|
);
|
|
4839
4862
|
break;
|
|
4840
4863
|
}
|
|
4841
|
-
},
|
|
4842
|
-
if (
|
|
4843
|
-
return
|
|
4844
|
-
},
|
|
4845
|
-
separator:
|
|
4846
|
-
decimal:
|
|
4864
|
+
}, Oe = () => {
|
|
4865
|
+
if (g.includes(s))
|
|
4866
|
+
return g;
|
|
4867
|
+
}, pe = (a) => g ? new Intl.NumberFormat(Oe(), { useGrouping: !0 }).format(a) : x && S ? ce(a, {
|
|
4868
|
+
separator: x,
|
|
4869
|
+
decimal: S,
|
|
4847
4870
|
symbol: "",
|
|
4848
|
-
precision: parseInt(
|
|
4849
|
-
}).format() :
|
|
4871
|
+
precision: parseInt(D || "2", 10)
|
|
4872
|
+
}).format() : ce(a, {
|
|
4850
4873
|
separator: ".",
|
|
4851
4874
|
decimal: ",",
|
|
4852
4875
|
symbol: "",
|
|
4853
|
-
precision: parseInt(
|
|
4854
|
-
}).format(),
|
|
4855
|
-
n(2,
|
|
4856
|
-
const
|
|
4876
|
+
precision: parseInt(D || "2", 10)
|
|
4877
|
+
}).format(), Be = async () => {
|
|
4878
|
+
n(2, H = !0);
|
|
4879
|
+
const a = new URL(`${l}/v1/player/${i}/account`);
|
|
4857
4880
|
try {
|
|
4858
|
-
const
|
|
4881
|
+
const f = await fetch(a, {
|
|
4859
4882
|
method: "GET",
|
|
4860
|
-
headers: { "X-SessionID":
|
|
4861
|
-
}),
|
|
4862
|
-
if (
|
|
4863
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href),
|
|
4883
|
+
headers: { "X-SessionID": o }
|
|
4884
|
+
}), p = await f.json();
|
|
4885
|
+
if (f.ok)
|
|
4886
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), R = p.items, n(5, $ = R.find((c) => c.displayName === "Casino")?.currency), n(1, b.Total = [{ amount: p.totalAmount[$] }], b), n(
|
|
4864
4887
|
1,
|
|
4865
|
-
|
|
4888
|
+
b.Real = [
|
|
4866
4889
|
{
|
|
4867
|
-
amount:
|
|
4890
|
+
amount: R.find((c) => c.displayName === "Casino")?.balanceAmount
|
|
4868
4891
|
}
|
|
4869
4892
|
],
|
|
4870
|
-
|
|
4893
|
+
b
|
|
4871
4894
|
), n(
|
|
4872
4895
|
1,
|
|
4873
|
-
|
|
4896
|
+
b.Bonus = [
|
|
4874
4897
|
{
|
|
4875
|
-
amount:
|
|
4898
|
+
amount: R.find((c) => c.displayName === "UBS")?.balanceAmount
|
|
4876
4899
|
}
|
|
4877
4900
|
],
|
|
4878
|
-
|
|
4901
|
+
b
|
|
4879
4902
|
);
|
|
4880
4903
|
else
|
|
4881
4904
|
throw new Error("Failed to fetch balance data !");
|
|
4882
|
-
} catch (
|
|
4883
|
-
console.log("Balance error: ",
|
|
4905
|
+
} catch (f) {
|
|
4906
|
+
console.log("Balance error: ", f);
|
|
4884
4907
|
} finally {
|
|
4885
|
-
n(2,
|
|
4908
|
+
n(2, H = !1);
|
|
4886
4909
|
}
|
|
4887
|
-
},
|
|
4888
|
-
n(2,
|
|
4889
|
-
const
|
|
4890
|
-
|
|
4891
|
-
|
|
4892
|
-
const v =
|
|
4893
|
-
if (n(5,
|
|
4894
|
-
|
|
4910
|
+
}, Se = () => {
|
|
4911
|
+
n(2, H = !0);
|
|
4912
|
+
const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
|
|
4913
|
+
f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((c) => c.json()).then((c) => {
|
|
4914
|
+
c[T] || n(10, T = xe[0]);
|
|
4915
|
+
const v = c.items.find((y) => y.type === "Real" && y.walletAccountType === "Ordinary");
|
|
4916
|
+
if (n(5, $ = v.currency), F = !!v.productType, n(1, b.Total = [{ amount: 0 }], b), n(1, b.Real = [], b), n(1, b.Bonus = [], b), n(1, b.Credit = [], b), !F) {
|
|
4917
|
+
X = {
|
|
4895
4918
|
lastOrdinaryAfterAmount: 0,
|
|
4896
4919
|
showCreditLineAfterAmount: !1
|
|
4897
|
-
}, n(1,
|
|
4898
|
-
for (const
|
|
4899
|
-
switch (
|
|
4920
|
+
}, n(1, b.Total[0].amount = c[T][$], b);
|
|
4921
|
+
for (const y of c.items)
|
|
4922
|
+
switch (y.type) {
|
|
4900
4923
|
case "Bonus":
|
|
4901
|
-
|
|
4924
|
+
b.Bonus.length === 0 ? b.Bonus.push({ amount: y.amount }) : n(1, b.Bonus[0].amount += y.amount, b);
|
|
4902
4925
|
break;
|
|
4903
4926
|
case "Real":
|
|
4904
|
-
if (
|
|
4905
|
-
|
|
4927
|
+
if (y.creditLine && b.Credit.length === 0 && b.Credit.push({ amount: y.creditLine }), T === "totalRealAmount") continue;
|
|
4928
|
+
b.Real.length === 0 ? b.Real.push({ amount: y.amount }) : n(1, b.Real[0].amount += y.amount, b);
|
|
4906
4929
|
break;
|
|
4907
4930
|
}
|
|
4908
|
-
for (const [
|
|
4909
|
-
|
|
4910
|
-
n(2,
|
|
4931
|
+
for (const [y, L] of Object.entries(b))
|
|
4932
|
+
L.length < 1 && delete b[y];
|
|
4933
|
+
n(2, H = !1);
|
|
4911
4934
|
return;
|
|
4912
4935
|
}
|
|
4913
|
-
|
|
4936
|
+
X = {
|
|
4914
4937
|
Casino: {
|
|
4915
4938
|
lastOrdinaryAfterAmount: 0,
|
|
4916
4939
|
showCreditLineAfterAmount: !1
|
|
@@ -4920,228 +4943,218 @@ function Aa(e, t, n) {
|
|
|
4920
4943
|
showCreditLineAfterAmount: !1
|
|
4921
4944
|
}
|
|
4922
4945
|
};
|
|
4923
|
-
let
|
|
4924
|
-
B && B !== "All" && (
|
|
4925
|
-
for (const
|
|
4926
|
-
let
|
|
4927
|
-
switch (
|
|
4946
|
+
let E = c.items;
|
|
4947
|
+
B && B !== "All" && (E = c.items.filter((y) => y.productType === B));
|
|
4948
|
+
for (const y of E) {
|
|
4949
|
+
let L;
|
|
4950
|
+
switch (y.type) {
|
|
4928
4951
|
case "Bonus":
|
|
4929
|
-
|
|
4930
|
-
amount:
|
|
4931
|
-
productType:
|
|
4952
|
+
L = b.Bonus.findIndex((A) => A.productType === y.productType), L > 0 ? n(1, b.Bonus[L].amount += y.amount, b) : b.Bonus.push({
|
|
4953
|
+
amount: y.amount,
|
|
4954
|
+
productType: y.productType
|
|
4932
4955
|
});
|
|
4933
4956
|
break;
|
|
4934
4957
|
case "Real":
|
|
4935
|
-
|
|
4936
|
-
amount:
|
|
4937
|
-
productType:
|
|
4938
|
-
}),
|
|
4939
|
-
amount:
|
|
4940
|
-
productType:
|
|
4958
|
+
y.creditLine && b.Credit.push({
|
|
4959
|
+
amount: y.creditLine,
|
|
4960
|
+
productType: y.productType
|
|
4961
|
+
}), L = b.Real.findIndex((A) => A.productType === y.productType), L > 0 ? n(1, b.Real[L].amount += y.amount, b) : b.Real.push({
|
|
4962
|
+
amount: y.amount,
|
|
4963
|
+
productType: y.productType
|
|
4941
4964
|
});
|
|
4942
4965
|
break;
|
|
4943
4966
|
}
|
|
4944
4967
|
}
|
|
4945
|
-
|
|
4946
|
-
for (const [
|
|
4947
|
-
|
|
4948
|
-
n(2,
|
|
4949
|
-
}).catch((
|
|
4950
|
-
throw n(2,
|
|
4968
|
+
it();
|
|
4969
|
+
for (const [y, L] of Object.entries(b))
|
|
4970
|
+
L.length < 1 && delete b[y];
|
|
4971
|
+
n(2, H = !1);
|
|
4972
|
+
}).catch((c) => {
|
|
4973
|
+
throw n(2, H = !1), new Error("Failed to fetch balance data !");
|
|
4951
4974
|
});
|
|
4952
|
-
},
|
|
4953
|
-
if (
|
|
4954
|
-
let
|
|
4955
|
-
switch (
|
|
4975
|
+
}, Ae = () => {
|
|
4976
|
+
if (q && q.close(), o.length < 1) return;
|
|
4977
|
+
let a, f;
|
|
4978
|
+
switch (_) {
|
|
4956
4979
|
case "gm16":
|
|
4957
|
-
|
|
4980
|
+
a = new URL(`${l}/v2/player/${i}/information/updates`), f = (v) => Bt(v);
|
|
4958
4981
|
break;
|
|
4959
4982
|
case "gmcore":
|
|
4960
|
-
|
|
4983
|
+
a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (v) => Ze(v);
|
|
4961
4984
|
break;
|
|
4962
4985
|
}
|
|
4963
|
-
const
|
|
4986
|
+
const p = {
|
|
4964
4987
|
accept: "text/event-stream",
|
|
4965
|
-
"X-SessionId":
|
|
4966
|
-
},
|
|
4967
|
-
|
|
4968
|
-
},
|
|
4969
|
-
let
|
|
4988
|
+
"X-SessionId": o
|
|
4989
|
+
}, c = new xo.EventSourcePolyfill(a, { headers: p });
|
|
4990
|
+
q = c, c.addEventListener("message", f);
|
|
4991
|
+
}, le = (a) => {
|
|
4992
|
+
let f;
|
|
4970
4993
|
try {
|
|
4971
|
-
|
|
4972
|
-
} catch (
|
|
4973
|
-
console.log("Balance stream failed: ",
|
|
4994
|
+
f = JSON.parse(a);
|
|
4995
|
+
} catch (p) {
|
|
4996
|
+
console.log("Balance stream failed: ", p);
|
|
4974
4997
|
return;
|
|
4975
4998
|
}
|
|
4976
|
-
return
|
|
4977
|
-
},
|
|
4978
|
-
const
|
|
4979
|
-
if (!
|
|
4980
|
-
|
|
4999
|
+
return f;
|
|
5000
|
+
}, Ze = (a) => {
|
|
5001
|
+
const f = le(a.data);
|
|
5002
|
+
if (!f) {
|
|
5003
|
+
Ae();
|
|
4981
5004
|
return;
|
|
4982
5005
|
}
|
|
4983
|
-
let
|
|
4984
|
-
const
|
|
4985
|
-
|
|
5006
|
+
let p = "0";
|
|
5007
|
+
const c = f.balanceChange;
|
|
5008
|
+
R = R.map((v) => (c && c[v.id] && (v = {
|
|
4986
5009
|
...v,
|
|
4987
|
-
balanceAmount:
|
|
4988
|
-
}),
|
|
4989
|
-
},
|
|
4990
|
-
let
|
|
4991
|
-
switch (
|
|
5010
|
+
balanceAmount: c[v.id].afterAmount
|
|
5011
|
+
}), p = (parseFloat(v?.balanceAmount) + parseFloat(p)).toString(), v)), n(1, b.Real = [{ amount: R[0]?.balanceAmount }], b), n(1, b.Bonus = [{ amount: R[1]?.balanceAmount }], b), n(1, b.Total = [{ amount: Number(p) }], b);
|
|
5012
|
+
}, Re = (a, f, p) => {
|
|
5013
|
+
let c = null;
|
|
5014
|
+
switch (p.walletAccountType) {
|
|
4992
5015
|
case "Ordinary":
|
|
4993
|
-
|
|
5016
|
+
p.afterAmount !== p.affectedAmount && (f.lastOrdinaryAfterAmount = p.afterAmount, f.showCreditLineAfterAmount || (c = p.afterAmount));
|
|
4994
5017
|
break;
|
|
4995
5018
|
case "CreditLine":
|
|
4996
|
-
|
|
5019
|
+
p.afterAmount !== 0 ? (c = p.afterAmount, f.showCreditLineAfterAmount = !0) : (c = f.lastOrdinaryAfterAmount, f.showCreditLineAfterAmount = !1);
|
|
4997
5020
|
break;
|
|
4998
5021
|
default:
|
|
4999
|
-
|
|
5022
|
+
c = p.afterAmount;
|
|
5000
5023
|
}
|
|
5001
|
-
return
|
|
5002
|
-
},
|
|
5003
|
-
switch (
|
|
5024
|
+
return c === null ? a : c;
|
|
5025
|
+
}, it = () => {
|
|
5026
|
+
switch (T) {
|
|
5004
5027
|
case "totalCashAmount":
|
|
5005
|
-
let
|
|
5006
|
-
for (const
|
|
5007
|
-
for (const
|
|
5008
|
-
|
|
5009
|
-
n(1,
|
|
5028
|
+
let a = 0;
|
|
5029
|
+
for (const p of ["Real", "Bonus"])
|
|
5030
|
+
for (const c of b[p])
|
|
5031
|
+
a += Math.max(c.amount, 0);
|
|
5032
|
+
n(1, b.Total[0].amount = a, b);
|
|
5010
5033
|
break;
|
|
5011
5034
|
case "totalRealAmount":
|
|
5012
|
-
if (!
|
|
5013
|
-
let
|
|
5014
|
-
for (const
|
|
5015
|
-
|
|
5016
|
-
n(1,
|
|
5035
|
+
if (!F) return;
|
|
5036
|
+
let f = 0;
|
|
5037
|
+
for (const p of b.Real)
|
|
5038
|
+
f += p.amount;
|
|
5039
|
+
n(1, b.Total[0].amount = f, b);
|
|
5017
5040
|
}
|
|
5018
|
-
},
|
|
5019
|
-
const
|
|
5020
|
-
if (!
|
|
5021
|
-
|
|
5041
|
+
}, Bt = (a) => {
|
|
5042
|
+
const f = le(a.data);
|
|
5043
|
+
if (!f) {
|
|
5044
|
+
Ae();
|
|
5022
5045
|
return;
|
|
5023
5046
|
}
|
|
5024
|
-
if (
|
|
5047
|
+
if (f.type !== "BALANCE_UPDATE_V2")
|
|
5025
5048
|
return;
|
|
5026
|
-
const
|
|
5027
|
-
for (const [
|
|
5028
|
-
if (
|
|
5029
|
-
for (const
|
|
5030
|
-
if (!
|
|
5031
|
-
|
|
5049
|
+
const p = f.body.balanceChange;
|
|
5050
|
+
for (const [c, v] of Object.entries(p))
|
|
5051
|
+
if (T === "totalRealAmount" && c === "Real" && !F && n(1, b.Total[0].amount = Re(b.Total[0].amount, X, v), b), !!b[c])
|
|
5052
|
+
for (const E of b[c]) {
|
|
5053
|
+
if (!F) {
|
|
5054
|
+
E.amount = c === "Real" ? Re(E.amount, X, v) : v.afterAmount;
|
|
5032
5055
|
continue;
|
|
5033
5056
|
}
|
|
5034
|
-
v.productType ===
|
|
5057
|
+
v.productType === E.productType && (E.amount = c === "Real" ? Re(E.amount, X[E.productType], v) : v.afterAmount);
|
|
5035
5058
|
}
|
|
5036
|
-
|
|
5037
|
-
},
|
|
5038
|
-
|
|
5039
|
-
}, Bt = () => {
|
|
5040
|
-
J.includes(x) || (console.error(`Unsupported value ('${x}') for totalcalculationmode parameter. Only the following values are supported ${J}. Using default value ('${J[0]}').`), n(10, x = J[0]));
|
|
5059
|
+
it();
|
|
5060
|
+
}, ot = () => {
|
|
5061
|
+
_e("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5041
5062
|
}, Tt = () => {
|
|
5042
|
-
|
|
5063
|
+
xe.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${xe}. Using default value ('${xe[0]}').`), n(10, T = xe[0]));
|
|
5064
|
+
}, qe = () => {
|
|
5065
|
+
switch (Eo(s), Tt(), _) {
|
|
5043
5066
|
case "gmcore":
|
|
5044
|
-
|
|
5067
|
+
Be();
|
|
5045
5068
|
break;
|
|
5046
5069
|
case "gm16":
|
|
5047
|
-
|
|
5070
|
+
Se();
|
|
5048
5071
|
break;
|
|
5049
5072
|
default:
|
|
5050
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
5073
|
+
throw Error(`Invalid apiversion attribute: ${_}`);
|
|
5051
5074
|
}
|
|
5052
|
-
},
|
|
5053
|
-
const o = document.createElement("style");
|
|
5054
|
-
o.innerHTML = h, O.appendChild(o);
|
|
5055
|
-
}, Te = () => {
|
|
5056
|
-
const o = new URL(u), p = document.createElement("style");
|
|
5057
|
-
fetch(o.href).then((f) => f.text()).then((f) => {
|
|
5058
|
-
p.innerHTML = f, setTimeout(
|
|
5059
|
-
() => {
|
|
5060
|
-
O.appendChild(p);
|
|
5061
|
-
},
|
|
5062
|
-
1
|
|
5063
|
-
);
|
|
5064
|
-
});
|
|
5065
|
-
}, re = () => {
|
|
5075
|
+
}, Le = (a) => a.data && a.data.type === "LogoutSuccessfull" && q.close(), Te = () => {
|
|
5066
5076
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5067
5077
|
};
|
|
5068
|
-
dr(() => (window.addEventListener("message",
|
|
5069
|
-
window.removeEventListener("message",
|
|
5078
|
+
dr(() => (window.addEventListener("message", Le, !1), () => {
|
|
5079
|
+
window.removeEventListener("message", Le), q && q.close();
|
|
5070
5080
|
}));
|
|
5071
|
-
const
|
|
5072
|
-
function
|
|
5073
|
-
Dt[
|
|
5074
|
-
|
|
5081
|
+
const re = () => _e("balance"), wt = () => _e("closebalance"), St = () => ot(), At = () => _e("closeBalance");
|
|
5082
|
+
function at(a) {
|
|
5083
|
+
Dt[a ? "unshift" : "push"](() => {
|
|
5084
|
+
U = a, n(0, U);
|
|
5075
5085
|
});
|
|
5076
5086
|
}
|
|
5077
|
-
return e.$$set = (
|
|
5078
|
-
"userid" in
|
|
5087
|
+
return e.$$set = (a) => {
|
|
5088
|
+
"userid" in a && n(11, i = a.userid), "session" in a && n(12, o = a.session), "endpoint" in a && n(13, l = a.endpoint), "lang" in a && n(14, s = a.lang), "mbsource" in a && n(15, h = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18, m = a.translationurl), "customlocaleidentifier" in a && n(19, g = a.customlocaleidentifier), "gmversion" in a && n(20, _ = a.gmversion), "displaybalanceoption" in a && n(21, B = a.displaybalanceoption), "totalcalculationmode" in a && n(10, T = a.totalcalculationmode), "currencyseparator" in a && n(22, x = a.currencyseparator), "currencydecimal" in a && n(23, S = a.currencydecimal), "currencyprecision" in a && n(24, D = a.currencyprecision);
|
|
5079
5089
|
}, e.$$.update = () => {
|
|
5080
5090
|
e.$$.dirty[0] & /*lang*/
|
|
5081
|
-
16384 && s &&
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5091
|
+
16384 && s && Oe(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5092
|
+
3176448 && l && i && o && s && _ && B && qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5093
|
+
1062912 && l && i && o && _ && Ae(), e.$$.dirty[0] & /*translationurl*/
|
|
5094
|
+
262144 && m && We(), e.$$.dirty[0] & /*balances*/
|
|
5095
|
+
2 && b.Total && Te(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5096
|
+
65537 && u && U && Ar(U, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5097
|
+
131073 && d && U && Cr(U, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5098
|
+
32769 && h && U && Hr(U, `${h}.Style`);
|
|
5088
5099
|
}, [
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
j,
|
|
5093
|
-
ne,
|
|
5100
|
+
U,
|
|
5101
|
+
b,
|
|
5102
|
+
H,
|
|
5094
5103
|
W,
|
|
5104
|
+
Y,
|
|
5105
|
+
$,
|
|
5095
5106
|
r,
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5107
|
+
_e,
|
|
5108
|
+
pe,
|
|
5109
|
+
ot,
|
|
5110
|
+
T,
|
|
5100
5111
|
i,
|
|
5101
|
-
|
|
5112
|
+
o,
|
|
5102
5113
|
l,
|
|
5103
5114
|
s,
|
|
5104
5115
|
h,
|
|
5105
5116
|
u,
|
|
5106
5117
|
d,
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
B,
|
|
5110
|
-
H,
|
|
5118
|
+
m,
|
|
5119
|
+
g,
|
|
5111
5120
|
_,
|
|
5112
|
-
|
|
5121
|
+
B,
|
|
5122
|
+
x,
|
|
5123
|
+
S,
|
|
5124
|
+
D,
|
|
5125
|
+
re,
|
|
5113
5126
|
wt,
|
|
5114
5127
|
St,
|
|
5115
5128
|
At,
|
|
5116
|
-
at
|
|
5117
|
-
c
|
|
5129
|
+
at
|
|
5118
5130
|
];
|
|
5119
5131
|
}
|
|
5120
|
-
class
|
|
5132
|
+
class Lo extends wr {
|
|
5121
5133
|
constructor(t) {
|
|
5122
5134
|
super(), Br(
|
|
5123
5135
|
this,
|
|
5124
5136
|
t,
|
|
5125
|
-
|
|
5126
|
-
|
|
5137
|
+
Ro,
|
|
5138
|
+
Oo,
|
|
5127
5139
|
An,
|
|
5128
5140
|
{
|
|
5129
5141
|
userid: 11,
|
|
5130
5142
|
session: 12,
|
|
5131
5143
|
endpoint: 13,
|
|
5132
5144
|
lang: 14,
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5145
|
+
mbsource: 15,
|
|
5146
|
+
clientstyling: 16,
|
|
5147
|
+
clientstylingurl: 17,
|
|
5148
|
+
translationurl: 18,
|
|
5149
|
+
customlocaleidentifier: 19,
|
|
5150
|
+
gmversion: 20,
|
|
5151
|
+
displaybalanceoption: 21,
|
|
5139
5152
|
totalcalculationmode: 10,
|
|
5140
|
-
currencyseparator:
|
|
5141
|
-
currencydecimal:
|
|
5142
|
-
currencyprecision:
|
|
5153
|
+
currencyseparator: 22,
|
|
5154
|
+
currencydecimal: 23,
|
|
5155
|
+
currencyprecision: 24
|
|
5143
5156
|
},
|
|
5144
|
-
|
|
5157
|
+
Ao,
|
|
5145
5158
|
[-1, -1]
|
|
5146
5159
|
);
|
|
5147
5160
|
}
|
|
@@ -5149,88 +5162,94 @@ class Ca extends wr {
|
|
|
5149
5162
|
return this.$$.ctx[11];
|
|
5150
5163
|
}
|
|
5151
5164
|
set userid(t) {
|
|
5152
|
-
this.$$set({ userid: t }),
|
|
5165
|
+
this.$$set({ userid: t }), J();
|
|
5153
5166
|
}
|
|
5154
5167
|
get session() {
|
|
5155
5168
|
return this.$$.ctx[12];
|
|
5156
5169
|
}
|
|
5157
5170
|
set session(t) {
|
|
5158
|
-
this.$$set({ session: t }),
|
|
5171
|
+
this.$$set({ session: t }), J();
|
|
5159
5172
|
}
|
|
5160
5173
|
get endpoint() {
|
|
5161
5174
|
return this.$$.ctx[13];
|
|
5162
5175
|
}
|
|
5163
5176
|
set endpoint(t) {
|
|
5164
|
-
this.$$set({ endpoint: t }),
|
|
5177
|
+
this.$$set({ endpoint: t }), J();
|
|
5165
5178
|
}
|
|
5166
5179
|
get lang() {
|
|
5167
5180
|
return this.$$.ctx[14];
|
|
5168
5181
|
}
|
|
5169
5182
|
set lang(t) {
|
|
5170
|
-
this.$$set({ lang: t }),
|
|
5183
|
+
this.$$set({ lang: t }), J();
|
|
5171
5184
|
}
|
|
5172
|
-
get
|
|
5185
|
+
get mbsource() {
|
|
5173
5186
|
return this.$$.ctx[15];
|
|
5174
5187
|
}
|
|
5188
|
+
set mbsource(t) {
|
|
5189
|
+
this.$$set({ mbsource: t }), J();
|
|
5190
|
+
}
|
|
5191
|
+
get clientstyling() {
|
|
5192
|
+
return this.$$.ctx[16];
|
|
5193
|
+
}
|
|
5175
5194
|
set clientstyling(t) {
|
|
5176
|
-
this.$$set({ clientstyling: t }),
|
|
5195
|
+
this.$$set({ clientstyling: t }), J();
|
|
5177
5196
|
}
|
|
5178
5197
|
get clientstylingurl() {
|
|
5179
|
-
return this.$$.ctx[
|
|
5198
|
+
return this.$$.ctx[17];
|
|
5180
5199
|
}
|
|
5181
5200
|
set clientstylingurl(t) {
|
|
5182
|
-
this.$$set({ clientstylingurl: t }),
|
|
5201
|
+
this.$$set({ clientstylingurl: t }), J();
|
|
5183
5202
|
}
|
|
5184
5203
|
get translationurl() {
|
|
5185
|
-
return this.$$.ctx[
|
|
5204
|
+
return this.$$.ctx[18];
|
|
5186
5205
|
}
|
|
5187
5206
|
set translationurl(t) {
|
|
5188
|
-
this.$$set({ translationurl: t }),
|
|
5207
|
+
this.$$set({ translationurl: t }), J();
|
|
5189
5208
|
}
|
|
5190
5209
|
get customlocaleidentifier() {
|
|
5191
|
-
return this.$$.ctx[
|
|
5210
|
+
return this.$$.ctx[19];
|
|
5192
5211
|
}
|
|
5193
5212
|
set customlocaleidentifier(t) {
|
|
5194
|
-
this.$$set({ customlocaleidentifier: t }),
|
|
5213
|
+
this.$$set({ customlocaleidentifier: t }), J();
|
|
5195
5214
|
}
|
|
5196
5215
|
get gmversion() {
|
|
5197
|
-
return this.$$.ctx[
|
|
5216
|
+
return this.$$.ctx[20];
|
|
5198
5217
|
}
|
|
5199
5218
|
set gmversion(t) {
|
|
5200
|
-
this.$$set({ gmversion: t }),
|
|
5219
|
+
this.$$set({ gmversion: t }), J();
|
|
5201
5220
|
}
|
|
5202
5221
|
get displaybalanceoption() {
|
|
5203
|
-
return this.$$.ctx[
|
|
5222
|
+
return this.$$.ctx[21];
|
|
5204
5223
|
}
|
|
5205
5224
|
set displaybalanceoption(t) {
|
|
5206
|
-
this.$$set({ displaybalanceoption: t }),
|
|
5225
|
+
this.$$set({ displaybalanceoption: t }), J();
|
|
5207
5226
|
}
|
|
5208
5227
|
get totalcalculationmode() {
|
|
5209
5228
|
return this.$$.ctx[10];
|
|
5210
5229
|
}
|
|
5211
5230
|
set totalcalculationmode(t) {
|
|
5212
|
-
this.$$set({ totalcalculationmode: t }),
|
|
5231
|
+
this.$$set({ totalcalculationmode: t }), J();
|
|
5213
5232
|
}
|
|
5214
5233
|
get currencyseparator() {
|
|
5215
|
-
return this.$$.ctx[
|
|
5234
|
+
return this.$$.ctx[22];
|
|
5216
5235
|
}
|
|
5217
5236
|
set currencyseparator(t) {
|
|
5218
|
-
this.$$set({ currencyseparator: t }),
|
|
5237
|
+
this.$$set({ currencyseparator: t }), J();
|
|
5219
5238
|
}
|
|
5220
5239
|
get currencydecimal() {
|
|
5221
|
-
return this.$$.ctx[
|
|
5240
|
+
return this.$$.ctx[23];
|
|
5222
5241
|
}
|
|
5223
5242
|
set currencydecimal(t) {
|
|
5224
|
-
this.$$set({ currencydecimal: t }),
|
|
5243
|
+
this.$$set({ currencydecimal: t }), J();
|
|
5225
5244
|
}
|
|
5226
5245
|
get currencyprecision() {
|
|
5227
|
-
return this.$$.ctx[
|
|
5246
|
+
return this.$$.ctx[24];
|
|
5228
5247
|
}
|
|
5229
5248
|
set currencyprecision(t) {
|
|
5230
|
-
this.$$set({ currencyprecision: t }),
|
|
5249
|
+
this.$$set({ currencyprecision: t }), J();
|
|
5231
5250
|
}
|
|
5232
5251
|
}
|
|
5233
|
-
Tr(
|
|
5252
|
+
Tr(Lo, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
|
|
5234
5253
|
export {
|
|
5235
|
-
|
|
5254
|
+
Lo as P
|
|
5236
5255
|
};
|