@everymatrix/player-account-balance-modal 1.77.26 → 1.77.28
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/{PlayerAccountBalanceModal-CQrAbzrK.js → PlayerAccountBalanceModal-D2KIfuVF.js} +1279 -1275
- package/components/{PlayerAccountBalanceModal-BK4_j7a9.js → PlayerAccountBalanceModal-DixkMh33.js} +1103 -1099
- package/components/PlayerAccountBalanceModal-jZVdpTAX.cjs +9 -0
- package/es2015/player-account-balance-modal.cjs +1 -1
- package/es2015/player-account-balance-modal.js +1 -1
- package/esnext/player-account-balance-modal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModal-B5pEKQHd.cjs +0 -22
package/components/{PlayerAccountBalanceModal-BK4_j7a9.js → PlayerAccountBalanceModal-DixkMh33.js}
RENAMED
|
@@ -2,43 +2,43 @@ var ur = Object.defineProperty, lr = Object.defineProperties;
|
|
|
2
2
|
var hr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var sn = Object.getOwnPropertySymbols;
|
|
4
4
|
var cr = Object.prototype.hasOwnProperty, fr = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Rt = Math.pow, Lt = (e, t, n) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Nt = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
cr.call(t, n) &&
|
|
7
|
+
cr.call(t, n) && Lt(e, n, t[n]);
|
|
8
8
|
if (sn)
|
|
9
9
|
for (var n of sn(t))
|
|
10
|
-
fr.call(t, n) &&
|
|
10
|
+
fr.call(t, n) && Lt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var oe = (e, t, n) => (
|
|
14
|
-
var
|
|
15
|
-
var o = (
|
|
12
|
+
}, Mt = (e, t) => lr(e, hr(t));
|
|
13
|
+
var oe = (e, t, n) => (Lt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var Pt = (e, t, n) => new Promise((r, i) => {
|
|
15
|
+
var o = (c) => {
|
|
16
16
|
try {
|
|
17
|
-
s(n.next(
|
|
17
|
+
s(n.next(c));
|
|
18
18
|
} catch (l) {
|
|
19
19
|
i(l);
|
|
20
20
|
}
|
|
21
|
-
}, u = (
|
|
21
|
+
}, u = (c) => {
|
|
22
22
|
try {
|
|
23
|
-
s(n.throw(
|
|
23
|
+
s(n.throw(c));
|
|
24
24
|
} catch (l) {
|
|
25
25
|
i(l);
|
|
26
26
|
}
|
|
27
|
-
}, s = (
|
|
27
|
+
}, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, u);
|
|
28
28
|
s((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function ae() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Ln(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
35
|
function un() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ke(e) {
|
|
39
|
+
e.forEach(Ln);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function nn(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
44
|
function Rn(e, t) {
|
|
@@ -65,7 +65,7 @@ function M(e, t) {
|
|
|
65
65
|
function mr(e, t, n) {
|
|
66
66
|
const r = gr(e);
|
|
67
67
|
if (!r.getElementById(t)) {
|
|
68
|
-
const i =
|
|
68
|
+
const i = $("style");
|
|
69
69
|
i.id = t, i.textContent = n, br(r, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
@@ -89,14 +89,14 @@ function br(e, t) {
|
|
|
89
89
|
function fe(e, t, n) {
|
|
90
90
|
e.insertBefore(t, n || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ue(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
95
|
function Mn(e, t) {
|
|
96
96
|
for (let n = 0; n < e.length; n += 1)
|
|
97
97
|
e[n] && e[n].d(t);
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function $(e) {
|
|
100
100
|
return document.createElement(e);
|
|
101
101
|
}
|
|
102
102
|
function Ee(e) {
|
|
@@ -111,13 +111,13 @@ function yr() {
|
|
|
111
111
|
function dt(e, t, n, r) {
|
|
112
112
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function Z(e, t, n) {
|
|
115
115
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
116
116
|
}
|
|
117
117
|
function vr(e) {
|
|
118
118
|
return Array.from(e.childNodes);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function He(e, t) {
|
|
121
121
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
122
122
|
t);
|
|
123
123
|
}
|
|
@@ -130,65 +130,65 @@ function Er(e) {
|
|
|
130
130
|
}
|
|
131
131
|
), t;
|
|
132
132
|
}
|
|
133
|
-
let
|
|
134
|
-
function
|
|
135
|
-
|
|
133
|
+
let tt;
|
|
134
|
+
function et(e) {
|
|
135
|
+
tt = e;
|
|
136
136
|
}
|
|
137
137
|
function xr() {
|
|
138
|
-
if (!
|
|
138
|
+
if (!tt)
|
|
139
139
|
throw new Error("Function called outside component initialization");
|
|
140
|
-
return
|
|
140
|
+
return tt;
|
|
141
141
|
}
|
|
142
142
|
function _r(e) {
|
|
143
143
|
xr().$$.on_mount.push(e);
|
|
144
144
|
}
|
|
145
|
-
const
|
|
146
|
-
let
|
|
145
|
+
const De = [], kt = [];
|
|
146
|
+
let Fe = [];
|
|
147
147
|
const ln = [], Tr = /* @__PURE__ */ Promise.resolve();
|
|
148
|
-
let
|
|
148
|
+
let Vt = !1;
|
|
149
149
|
function Br() {
|
|
150
|
-
|
|
150
|
+
Vt || (Vt = !0, Tr.then(X));
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
|
|
152
|
+
function Xt(e) {
|
|
153
|
+
Fe.push(e);
|
|
154
154
|
}
|
|
155
|
-
const
|
|
156
|
-
let
|
|
157
|
-
function
|
|
158
|
-
if (
|
|
155
|
+
const It = /* @__PURE__ */ new Set();
|
|
156
|
+
let Pe = 0;
|
|
157
|
+
function X() {
|
|
158
|
+
if (Pe !== 0)
|
|
159
159
|
return;
|
|
160
|
-
const e =
|
|
160
|
+
const e = tt;
|
|
161
161
|
do {
|
|
162
162
|
try {
|
|
163
|
-
for (;
|
|
164
|
-
const t = Pe
|
|
165
|
-
|
|
163
|
+
for (; Pe < De.length; ) {
|
|
164
|
+
const t = De[Pe];
|
|
165
|
+
Pe++, et(t), Sr(t.$$);
|
|
166
166
|
}
|
|
167
167
|
} catch (t) {
|
|
168
|
-
throw
|
|
168
|
+
throw De.length = 0, Pe = 0, t;
|
|
169
169
|
}
|
|
170
|
-
for (
|
|
171
|
-
|
|
172
|
-
for (let t = 0; t <
|
|
173
|
-
const n =
|
|
174
|
-
|
|
170
|
+
for (et(null), De.length = 0, Pe = 0; kt.length; )
|
|
171
|
+
kt.pop()();
|
|
172
|
+
for (let t = 0; t < Fe.length; t += 1) {
|
|
173
|
+
const n = Fe[t];
|
|
174
|
+
It.has(n) || (It.add(n), n());
|
|
175
175
|
}
|
|
176
|
-
|
|
177
|
-
} while (
|
|
176
|
+
Fe.length = 0;
|
|
177
|
+
} while (De.length);
|
|
178
178
|
for (; ln.length; )
|
|
179
179
|
ln.pop()();
|
|
180
|
-
|
|
180
|
+
Vt = !1, It.clear(), et(e);
|
|
181
181
|
}
|
|
182
182
|
function Sr(e) {
|
|
183
183
|
if (e.fragment !== null) {
|
|
184
|
-
e.update(),
|
|
184
|
+
e.update(), ke(e.before_update);
|
|
185
185
|
const t = e.dirty;
|
|
186
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
186
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Xt);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
function wr(e) {
|
|
190
190
|
const t = [], n = [];
|
|
191
|
-
|
|
191
|
+
Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
|
|
192
192
|
}
|
|
193
193
|
const Ar = /* @__PURE__ */ new Set();
|
|
194
194
|
function Cr(e, t) {
|
|
@@ -199,21 +199,21 @@ function pt(e) {
|
|
|
199
199
|
}
|
|
200
200
|
function Hr(e, t, n) {
|
|
201
201
|
const { fragment: r, after_update: i } = e.$$;
|
|
202
|
-
r && r.m(t, n),
|
|
203
|
-
const o = e.$$.on_mount.map(
|
|
204
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
205
|
-
}), i.forEach(
|
|
202
|
+
r && r.m(t, n), Xt(() => {
|
|
203
|
+
const o = e.$$.on_mount.map(Ln).filter(nn);
|
|
204
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ke(o), e.$$.on_mount = [];
|
|
205
|
+
}), i.forEach(Xt);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Or(e, t) {
|
|
208
208
|
const n = e.$$;
|
|
209
|
-
n.fragment !== null && (wr(n.after_update),
|
|
209
|
+
n.fragment !== null && (wr(n.after_update), ke(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
e.$$.dirty[0] === -1 && (
|
|
211
|
+
function Lr(e, t) {
|
|
212
|
+
e.$$.dirty[0] === -1 && (De.push(e), Br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
213
213
|
}
|
|
214
214
|
function Rr(e, t, n, r, i, o, u = null, s = [-1]) {
|
|
215
|
-
const
|
|
216
|
-
|
|
215
|
+
const c = tt;
|
|
216
|
+
et(e);
|
|
217
217
|
const l = e.$$ = {
|
|
218
218
|
fragment: null,
|
|
219
219
|
ctx: [],
|
|
@@ -228,27 +228,27 @@ function Rr(e, t, n, r, i, o, u = null, s = [-1]) {
|
|
|
228
228
|
on_disconnect: [],
|
|
229
229
|
before_update: [],
|
|
230
230
|
after_update: [],
|
|
231
|
-
context: new Map(t.context || (
|
|
231
|
+
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
232
232
|
// everything else
|
|
233
233
|
callbacks: un(),
|
|
234
234
|
dirty: s,
|
|
235
235
|
skip_bound: !1,
|
|
236
|
-
root: t.target ||
|
|
236
|
+
root: t.target || c.$$.root
|
|
237
237
|
};
|
|
238
238
|
u && u(l.root);
|
|
239
|
-
let
|
|
240
|
-
if (l.ctx = n ? n(e, t.props || {}, (g,
|
|
241
|
-
const T = x.length ? x[0] :
|
|
242
|
-
return l.ctx && i(l.ctx[g], l.ctx[g] = T) && (!l.skip_bound && l.bound[g] && l.bound[g](T),
|
|
243
|
-
}) : [], l.update(),
|
|
239
|
+
let f = !1;
|
|
240
|
+
if (l.ctx = n ? n(e, t.props || {}, (g, y, ...x) => {
|
|
241
|
+
const T = x.length ? x[0] : y;
|
|
242
|
+
return l.ctx && i(l.ctx[g], l.ctx[g] = T) && (!l.skip_bound && l.bound[g] && l.bound[g](T), f && Lr(e, g)), y;
|
|
243
|
+
}) : [], l.update(), f = !0, ke(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
244
244
|
if (t.hydrate) {
|
|
245
245
|
const g = vr(t.target);
|
|
246
|
-
l.fragment && l.fragment.l(g), g.forEach(
|
|
246
|
+
l.fragment && l.fragment.l(g), g.forEach(ue);
|
|
247
247
|
} else
|
|
248
248
|
l.fragment && l.fragment.c();
|
|
249
|
-
t.intro && Cr(e.$$.fragment), Hr(e, t.target, t.anchor),
|
|
249
|
+
t.intro && Cr(e.$$.fragment), Hr(e, t.target, t.anchor), X();
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
et(c);
|
|
252
252
|
}
|
|
253
253
|
let Pn;
|
|
254
254
|
typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
@@ -288,24 +288,24 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
connectedCallback() {
|
|
291
|
-
return
|
|
291
|
+
return Pt(this, null, function* () {
|
|
292
292
|
if (this.$$cn = !0, !this.$$c) {
|
|
293
293
|
let t = function(o) {
|
|
294
294
|
return () => {
|
|
295
295
|
let u;
|
|
296
296
|
return {
|
|
297
297
|
c: function() {
|
|
298
|
-
u =
|
|
298
|
+
u = $("slot"), o !== "default" && Z(u, "name", o);
|
|
299
299
|
},
|
|
300
300
|
/**
|
|
301
301
|
* @param {HTMLElement} target
|
|
302
302
|
* @param {HTMLElement} [anchor]
|
|
303
303
|
*/
|
|
304
|
-
m: function(l,
|
|
305
|
-
fe(l, u,
|
|
304
|
+
m: function(l, f) {
|
|
305
|
+
fe(l, u, f);
|
|
306
306
|
},
|
|
307
307
|
d: function(l) {
|
|
308
|
-
l &&
|
|
308
|
+
l && ue(u);
|
|
309
309
|
}
|
|
310
310
|
};
|
|
311
311
|
};
|
|
@@ -323,7 +323,7 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
323
323
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
324
324
|
this.$$c = new this.$$ctor({
|
|
325
325
|
target: this.shadowRoot || this,
|
|
326
|
-
props:
|
|
326
|
+
props: Mt(Nt({}, this.$$d), {
|
|
327
327
|
$$slots: n,
|
|
328
328
|
$$scope: {
|
|
329
329
|
ctx: []
|
|
@@ -417,16 +417,16 @@ function Nr(e, t, n, r, i, o) {
|
|
|
417
417
|
get() {
|
|
418
418
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
419
419
|
},
|
|
420
|
-
set(
|
|
420
|
+
set(c) {
|
|
421
421
|
var l;
|
|
422
|
-
|
|
422
|
+
c = ht(s, c, t), this.$$d[s] = c, (l = this.$$c) == null || l.$set({ [s]: c });
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
425
|
}), r.forEach((s) => {
|
|
426
426
|
Object.defineProperty(u.prototype, s, {
|
|
427
427
|
get() {
|
|
428
|
-
var
|
|
429
|
-
return (
|
|
428
|
+
var c;
|
|
429
|
+
return (c = this.$$c) == null ? void 0 : c[s];
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
432
|
}), e.element = /** @type {any} */
|
|
@@ -453,7 +453,7 @@ class Mr {
|
|
|
453
453
|
}
|
|
454
454
|
/** @returns {void} */
|
|
455
455
|
$destroy() {
|
|
456
|
-
|
|
456
|
+
Or(this, 1), this.$destroy = ae;
|
|
457
457
|
}
|
|
458
458
|
/**
|
|
459
459
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -462,7 +462,7 @@ class Mr {
|
|
|
462
462
|
* @returns {() => void}
|
|
463
463
|
*/
|
|
464
464
|
$on(t, n) {
|
|
465
|
-
if (!
|
|
465
|
+
if (!nn(n))
|
|
466
466
|
return ae;
|
|
467
467
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
468
468
|
return r.push(n), () => {
|
|
@@ -503,66 +503,66 @@ function Fr(e, t, n) {
|
|
|
503
503
|
});
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
|
-
const
|
|
506
|
+
const Ie = [];
|
|
507
507
|
function Ur(e, t) {
|
|
508
508
|
return {
|
|
509
|
-
subscribe:
|
|
509
|
+
subscribe: yt(e, t).subscribe
|
|
510
510
|
};
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function yt(e, t = ae) {
|
|
513
513
|
let n;
|
|
514
514
|
const r = /* @__PURE__ */ new Set();
|
|
515
515
|
function i(s) {
|
|
516
516
|
if (Rn(e, s) && (e = s, n)) {
|
|
517
|
-
const
|
|
517
|
+
const c = !Ie.length;
|
|
518
518
|
for (const l of r)
|
|
519
|
-
l[1](),
|
|
520
|
-
if (
|
|
521
|
-
for (let l = 0; l <
|
|
522
|
-
|
|
523
|
-
|
|
519
|
+
l[1](), Ie.push(l, e);
|
|
520
|
+
if (c) {
|
|
521
|
+
for (let l = 0; l < Ie.length; l += 2)
|
|
522
|
+
Ie[l][0](Ie[l + 1]);
|
|
523
|
+
Ie.length = 0;
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
function o(s) {
|
|
528
528
|
i(s(e));
|
|
529
529
|
}
|
|
530
|
-
function u(s,
|
|
531
|
-
const l = [s,
|
|
530
|
+
function u(s, c = ae) {
|
|
531
|
+
const l = [s, c];
|
|
532
532
|
return r.add(l), r.size === 1 && (n = t(i, o) || ae), s(e), () => {
|
|
533
533
|
r.delete(l), r.size === 0 && n && (n(), n = null);
|
|
534
534
|
};
|
|
535
535
|
}
|
|
536
536
|
return { set: i, update: o, subscribe: u };
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Ve(e, t, n) {
|
|
539
539
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
540
540
|
if (!i.every(Boolean))
|
|
541
541
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
542
542
|
const o = t.length < 2;
|
|
543
543
|
return Ur(n, (u, s) => {
|
|
544
|
-
let
|
|
544
|
+
let c = !1;
|
|
545
545
|
const l = [];
|
|
546
|
-
let
|
|
547
|
-
const
|
|
548
|
-
if (
|
|
546
|
+
let f = 0, g = ae;
|
|
547
|
+
const y = () => {
|
|
548
|
+
if (f)
|
|
549
549
|
return;
|
|
550
550
|
g();
|
|
551
551
|
const T = t(r ? l[0] : l, u, s);
|
|
552
|
-
o ? u(T) : g =
|
|
552
|
+
o ? u(T) : g = nn(T) ? T : ae;
|
|
553
553
|
}, x = i.map(
|
|
554
554
|
(T, P) => Nn(
|
|
555
555
|
T,
|
|
556
|
-
(
|
|
557
|
-
l[P] =
|
|
556
|
+
(j) => {
|
|
557
|
+
l[P] = j, f &= ~(1 << P), c && y();
|
|
558
558
|
},
|
|
559
559
|
() => {
|
|
560
|
-
|
|
560
|
+
f |= 1 << P;
|
|
561
561
|
}
|
|
562
562
|
)
|
|
563
563
|
);
|
|
564
|
-
return
|
|
565
|
-
|
|
564
|
+
return c = !0, y(), function() {
|
|
565
|
+
ke(x), g(), c = !1;
|
|
566
566
|
};
|
|
567
567
|
});
|
|
568
568
|
}
|
|
@@ -587,19 +587,19 @@ function Wr(e) {
|
|
|
587
587
|
function Zr(e) {
|
|
588
588
|
return Array.isArray(e) ? [] : {};
|
|
589
589
|
}
|
|
590
|
-
function
|
|
591
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
590
|
+
function nt(e, t) {
|
|
591
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ue(Zr(e), e, t) : e;
|
|
592
592
|
}
|
|
593
593
|
function qr(e, t, n) {
|
|
594
594
|
return e.concat(t).map(function(r) {
|
|
595
|
-
return
|
|
595
|
+
return nt(r, n);
|
|
596
596
|
});
|
|
597
597
|
}
|
|
598
598
|
function Qr(e, t) {
|
|
599
599
|
if (!t.customMerge)
|
|
600
|
-
return
|
|
600
|
+
return Ue;
|
|
601
601
|
var n = t.customMerge(e);
|
|
602
|
-
return typeof n == "function" ? n :
|
|
602
|
+
return typeof n == "function" ? n : Ue;
|
|
603
603
|
}
|
|
604
604
|
function Jr(e) {
|
|
605
605
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -622,65 +622,51 @@ function Yr(e, t) {
|
|
|
622
622
|
function Kr(e, t, n) {
|
|
623
623
|
var r = {};
|
|
624
624
|
return n.isMergeableObject(e) && hn(e).forEach(function(i) {
|
|
625
|
-
r[i] =
|
|
625
|
+
r[i] = nt(e[i], n);
|
|
626
626
|
}), hn(t).forEach(function(i) {
|
|
627
|
-
Yr(e, i) || (In(e, i) && n.isMergeableObject(t[i]) ? r[i] = Qr(i, n)(e[i], t[i], n) : r[i] =
|
|
627
|
+
Yr(e, i) || (In(e, i) && n.isMergeableObject(t[i]) ? r[i] = Qr(i, n)(e[i], t[i], n) : r[i] = nt(t[i], n));
|
|
628
628
|
}), r;
|
|
629
629
|
}
|
|
630
|
-
function
|
|
631
|
-
n = n || {}, n.arrayMerge = n.arrayMerge || qr, n.isMergeableObject = n.isMergeableObject || jr, n.cloneUnlessOtherwiseSpecified =
|
|
630
|
+
function Ue(e, t, n) {
|
|
631
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || qr, n.isMergeableObject = n.isMergeableObject || jr, n.cloneUnlessOtherwiseSpecified = nt;
|
|
632
632
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
633
|
-
return o ? r ? n.arrayMerge(e, t, n) : Kr(e, t, n) :
|
|
633
|
+
return o ? r ? n.arrayMerge(e, t, n) : Kr(e, t, n) : nt(t, n);
|
|
634
634
|
}
|
|
635
|
-
|
|
635
|
+
Ue.all = function(t, n) {
|
|
636
636
|
if (!Array.isArray(t))
|
|
637
637
|
throw new Error("first argument should be an array");
|
|
638
638
|
return t.reduce(function(r, i) {
|
|
639
|
-
return
|
|
639
|
+
return Ue(r, i, n);
|
|
640
640
|
}, {});
|
|
641
641
|
};
|
|
642
|
-
var ei =
|
|
642
|
+
var ei = Ue, ti = ei;
|
|
643
643
|
const ni = /* @__PURE__ */ $r(ti);
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
648
|
-
purpose with or without fee is hereby granted.
|
|
649
|
-
|
|
650
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
651
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
652
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
653
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
654
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
655
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
656
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
657
|
-
***************************************************************************** */
|
|
658
|
-
var Vt = function(e, t) {
|
|
659
|
-
return Vt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
644
|
+
var zt = function(e, t) {
|
|
645
|
+
return zt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
660
646
|
n.__proto__ = r;
|
|
661
647
|
} || function(n, r) {
|
|
662
648
|
for (var i in r)
|
|
663
649
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
664
|
-
},
|
|
650
|
+
}, zt(e, t);
|
|
665
651
|
};
|
|
666
|
-
function
|
|
652
|
+
function vt(e, t) {
|
|
667
653
|
if (typeof t != "function" && t !== null)
|
|
668
654
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
669
|
-
|
|
655
|
+
zt(e, t);
|
|
670
656
|
function n() {
|
|
671
657
|
this.constructor = e;
|
|
672
658
|
}
|
|
673
659
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
674
660
|
}
|
|
675
|
-
var
|
|
676
|
-
return
|
|
661
|
+
var ce = function() {
|
|
662
|
+
return ce = Object.assign || function(t) {
|
|
677
663
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
678
664
|
n = arguments[r];
|
|
679
665
|
for (var o in n)
|
|
680
666
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
681
667
|
}
|
|
682
668
|
return t;
|
|
683
|
-
},
|
|
669
|
+
}, ce.apply(this, arguments);
|
|
684
670
|
};
|
|
685
671
|
function ri(e, t) {
|
|
686
672
|
var n = {};
|
|
@@ -691,14 +677,14 @@ function ri(e, t) {
|
|
|
691
677
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
692
678
|
return n;
|
|
693
679
|
}
|
|
694
|
-
function
|
|
695
|
-
if (arguments.length === 2)
|
|
680
|
+
function Dt(e, t, n) {
|
|
681
|
+
if (n || arguments.length === 2)
|
|
696
682
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
697
683
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
698
|
-
return e.concat(o || t);
|
|
684
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
699
685
|
}
|
|
700
|
-
function
|
|
701
|
-
var n = t && t.cache ? t.cache :
|
|
686
|
+
function Ft(e, t) {
|
|
687
|
+
var n = t && t.cache ? t.cache : hi, r = t && t.serializer ? t.serializer : ui, i = t && t.strategy ? t.strategy : ai;
|
|
702
688
|
return i(e, {
|
|
703
689
|
cache: n,
|
|
704
690
|
serializer: r
|
|
@@ -707,95 +693,103 @@ function It(e, t) {
|
|
|
707
693
|
function ii(e) {
|
|
708
694
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
709
695
|
}
|
|
710
|
-
function
|
|
696
|
+
function oi(e, t, n, r) {
|
|
711
697
|
var i = ii(r) ? r : n(r), o = t.get(i);
|
|
712
698
|
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
713
699
|
}
|
|
714
|
-
function
|
|
700
|
+
function Dn(e, t, n) {
|
|
715
701
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
716
702
|
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
717
703
|
}
|
|
718
|
-
function
|
|
704
|
+
function Fn(e, t, n, r, i) {
|
|
719
705
|
return n.bind(t, e, r, i);
|
|
720
706
|
}
|
|
721
|
-
function oi(e, t) {
|
|
722
|
-
var n = e.length === 1 ? Dn : Fn;
|
|
723
|
-
return tn(e, this, n, t.cache.create(), t.serializer);
|
|
724
|
-
}
|
|
725
707
|
function ai(e, t) {
|
|
726
|
-
|
|
708
|
+
var n = e.length === 1 ? oi : Dn;
|
|
709
|
+
return Fn(e, this, n, t.cache.create(), t.serializer);
|
|
727
710
|
}
|
|
728
711
|
function si(e, t) {
|
|
729
|
-
return
|
|
712
|
+
return Fn(e, this, Dn, t.cache.create(), t.serializer);
|
|
730
713
|
}
|
|
731
714
|
var ui = function() {
|
|
732
715
|
return JSON.stringify(arguments);
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
716
|
+
}, li = (
|
|
717
|
+
/** @class */
|
|
718
|
+
function() {
|
|
719
|
+
function e() {
|
|
720
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
721
|
+
}
|
|
722
|
+
return e.prototype.get = function(t) {
|
|
723
|
+
return this.cache[t];
|
|
724
|
+
}, e.prototype.set = function(t, n) {
|
|
725
|
+
this.cache[t] = n;
|
|
726
|
+
}, e;
|
|
727
|
+
}()
|
|
728
|
+
), hi = {
|
|
744
729
|
create: function() {
|
|
745
|
-
return new
|
|
730
|
+
return new li();
|
|
746
731
|
}
|
|
747
|
-
},
|
|
748
|
-
variadic:
|
|
749
|
-
|
|
750
|
-
|
|
732
|
+
}, Ut = {
|
|
733
|
+
variadic: si
|
|
734
|
+
}, mt = function() {
|
|
735
|
+
return mt = Object.assign || function(t) {
|
|
736
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
737
|
+
n = arguments[r];
|
|
738
|
+
for (var o in n)
|
|
739
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
740
|
+
}
|
|
741
|
+
return t;
|
|
742
|
+
}, mt.apply(this, arguments);
|
|
743
|
+
};
|
|
744
|
+
var C;
|
|
751
745
|
(function(e) {
|
|
752
746
|
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";
|
|
753
|
-
})(
|
|
754
|
-
var
|
|
747
|
+
})(C || (C = {}));
|
|
748
|
+
var D;
|
|
755
749
|
(function(e) {
|
|
756
750
|
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";
|
|
757
|
-
})(
|
|
758
|
-
var
|
|
751
|
+
})(D || (D = {}));
|
|
752
|
+
var Ge;
|
|
759
753
|
(function(e) {
|
|
760
754
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
761
|
-
})(
|
|
755
|
+
})(Ge || (Ge = {}));
|
|
762
756
|
function cn(e) {
|
|
763
|
-
return e.type ===
|
|
757
|
+
return e.type === D.literal;
|
|
764
758
|
}
|
|
765
|
-
function
|
|
766
|
-
return e.type ===
|
|
759
|
+
function ci(e) {
|
|
760
|
+
return e.type === D.argument;
|
|
767
761
|
}
|
|
768
762
|
function Un(e) {
|
|
769
|
-
return e.type ===
|
|
763
|
+
return e.type === D.number;
|
|
770
764
|
}
|
|
771
765
|
function Gn(e) {
|
|
772
|
-
return e.type ===
|
|
766
|
+
return e.type === D.date;
|
|
773
767
|
}
|
|
774
768
|
function $n(e) {
|
|
775
|
-
return e.type ===
|
|
769
|
+
return e.type === D.time;
|
|
776
770
|
}
|
|
777
771
|
function jn(e) {
|
|
778
|
-
return e.type ===
|
|
772
|
+
return e.type === D.select;
|
|
779
773
|
}
|
|
780
774
|
function kn(e) {
|
|
781
|
-
return e.type ===
|
|
775
|
+
return e.type === D.plural;
|
|
782
776
|
}
|
|
783
|
-
function
|
|
784
|
-
return e.type ===
|
|
777
|
+
function fi(e) {
|
|
778
|
+
return e.type === D.pound;
|
|
785
779
|
}
|
|
786
780
|
function Vn(e) {
|
|
787
|
-
return e.type ===
|
|
781
|
+
return e.type === D.tag;
|
|
788
782
|
}
|
|
789
783
|
function Xn(e) {
|
|
790
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
784
|
+
return !!(e && typeof e == "object" && e.type === Ge.number);
|
|
791
785
|
}
|
|
792
|
-
function
|
|
793
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
786
|
+
function Wt(e) {
|
|
787
|
+
return !!(e && typeof e == "object" && e.type === Ge.dateTime);
|
|
794
788
|
}
|
|
795
|
-
var zn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
796
|
-
function
|
|
789
|
+
var zn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, di = /(?:[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;
|
|
790
|
+
function pi(e) {
|
|
797
791
|
var t = {};
|
|
798
|
-
return e.replace(
|
|
792
|
+
return e.replace(di, function(n) {
|
|
799
793
|
var r = n.length;
|
|
800
794
|
switch (n[0]) {
|
|
801
795
|
case "G":
|
|
@@ -884,29 +878,39 @@ function di(e) {
|
|
|
884
878
|
return "";
|
|
885
879
|
}), t;
|
|
886
880
|
}
|
|
887
|
-
var
|
|
888
|
-
function
|
|
881
|
+
var U = function() {
|
|
882
|
+
return U = Object.assign || function(t) {
|
|
883
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
884
|
+
n = arguments[r];
|
|
885
|
+
for (var o in n)
|
|
886
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
887
|
+
}
|
|
888
|
+
return t;
|
|
889
|
+
}, U.apply(this, arguments);
|
|
890
|
+
};
|
|
891
|
+
var mi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
892
|
+
function gi(e) {
|
|
889
893
|
if (e.length === 0)
|
|
890
894
|
throw new Error("Number skeleton cannot be empty");
|
|
891
|
-
for (var t = e.split(
|
|
892
|
-
return
|
|
895
|
+
for (var t = e.split(mi).filter(function(y) {
|
|
896
|
+
return y.length > 0;
|
|
893
897
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
894
898
|
var o = i[r], u = o.split("/");
|
|
895
899
|
if (u.length === 0)
|
|
896
900
|
throw new Error("Invalid number skeleton");
|
|
897
|
-
for (var s = u[0],
|
|
898
|
-
var g =
|
|
901
|
+
for (var s = u[0], c = u.slice(1), l = 0, f = c; l < f.length; l++) {
|
|
902
|
+
var g = f[l];
|
|
899
903
|
if (g.length === 0)
|
|
900
904
|
throw new Error("Invalid number skeleton");
|
|
901
905
|
}
|
|
902
|
-
n.push({ stem: s, options:
|
|
906
|
+
n.push({ stem: s, options: c });
|
|
903
907
|
}
|
|
904
908
|
return n;
|
|
905
909
|
}
|
|
906
|
-
function
|
|
910
|
+
function bi(e) {
|
|
907
911
|
return e.replace(/^(.*?)-/, "");
|
|
908
912
|
}
|
|
909
|
-
var fn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wn = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
913
|
+
var fn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wn = /^(@+)?(\+|#+)?[rs]?$/g, yi = /(\*)(0+)|(#+)(0+)|(0+)/g, Zn = /^(0+)$/;
|
|
910
914
|
function dn(e) {
|
|
911
915
|
var t = {};
|
|
912
916
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wn, function(n, r, i) {
|
|
@@ -953,7 +957,7 @@ function qn(e) {
|
|
|
953
957
|
};
|
|
954
958
|
}
|
|
955
959
|
}
|
|
956
|
-
function
|
|
960
|
+
function vi(e) {
|
|
957
961
|
var t;
|
|
958
962
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
959
963
|
notation: "engineering"
|
|
@@ -971,7 +975,7 @@ function pn(e) {
|
|
|
971
975
|
var t = {}, n = qn(e);
|
|
972
976
|
return n || t;
|
|
973
977
|
}
|
|
974
|
-
function
|
|
978
|
+
function Ei(e) {
|
|
975
979
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
976
980
|
var i = r[n];
|
|
977
981
|
switch (i.stem) {
|
|
@@ -995,7 +999,7 @@ function vi(e) {
|
|
|
995
999
|
continue;
|
|
996
1000
|
case "measure-unit":
|
|
997
1001
|
case "unit":
|
|
998
|
-
t.style = "unit", t.unit =
|
|
1002
|
+
t.style = "unit", t.unit = bi(i.options[0]);
|
|
999
1003
|
continue;
|
|
1000
1004
|
case "compact-short":
|
|
1001
1005
|
case "K":
|
|
@@ -1006,13 +1010,13 @@ function vi(e) {
|
|
|
1006
1010
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1007
1011
|
continue;
|
|
1008
1012
|
case "scientific":
|
|
1009
|
-
t =
|
|
1010
|
-
return
|
|
1013
|
+
t = U(U(U({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
|
|
1014
|
+
return U(U({}, c), pn(l));
|
|
1011
1015
|
}, {}));
|
|
1012
1016
|
continue;
|
|
1013
1017
|
case "engineering":
|
|
1014
|
-
t =
|
|
1015
|
-
return
|
|
1018
|
+
t = U(U(U({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
|
|
1019
|
+
return U(U({}, c), pn(l));
|
|
1016
1020
|
}, {}));
|
|
1017
1021
|
continue;
|
|
1018
1022
|
case "notation-simple":
|
|
@@ -1057,11 +1061,11 @@ function vi(e) {
|
|
|
1057
1061
|
case "integer-width":
|
|
1058
1062
|
if (i.options.length > 1)
|
|
1059
1063
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1060
|
-
i.options[0].replace(
|
|
1064
|
+
i.options[0].replace(yi, function(c, l, f, g, y, x) {
|
|
1061
1065
|
if (l)
|
|
1062
|
-
t.minimumIntegerDigits =
|
|
1066
|
+
t.minimumIntegerDigits = f.length;
|
|
1063
1067
|
else {
|
|
1064
|
-
if (g &&
|
|
1068
|
+
if (g && y)
|
|
1065
1069
|
throw new Error("We currently do not support maximum integer digits");
|
|
1066
1070
|
if (x)
|
|
1067
1071
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1077,21 +1081,21 @@ function vi(e) {
|
|
|
1077
1081
|
if (fn.test(i.stem)) {
|
|
1078
1082
|
if (i.options.length > 1)
|
|
1079
1083
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1080
|
-
i.stem.replace(fn, function(
|
|
1081
|
-
return
|
|
1084
|
+
i.stem.replace(fn, function(c, l, f, g, y, x) {
|
|
1085
|
+
return f === "*" ? t.minimumFractionDigits = l.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : y && x ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + x.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1082
1086
|
});
|
|
1083
1087
|
var o = i.options[0];
|
|
1084
|
-
o === "w" ? t =
|
|
1088
|
+
o === "w" ? t = U(U({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = U(U({}, t), dn(o)));
|
|
1085
1089
|
continue;
|
|
1086
1090
|
}
|
|
1087
1091
|
if (Wn.test(i.stem)) {
|
|
1088
|
-
t =
|
|
1092
|
+
t = U(U({}, t), dn(i.stem));
|
|
1089
1093
|
continue;
|
|
1090
1094
|
}
|
|
1091
1095
|
var u = qn(i.stem);
|
|
1092
|
-
u && (t =
|
|
1093
|
-
var s =
|
|
1094
|
-
s && (t =
|
|
1096
|
+
u && (t = U(U({}, t), u));
|
|
1097
|
+
var s = vi(i.stem);
|
|
1098
|
+
s && (t = U(U({}, t), s));
|
|
1095
1099
|
}
|
|
1096
1100
|
return t;
|
|
1097
1101
|
}
|
|
@@ -2510,15 +2514,15 @@ var lt = {
|
|
|
2510
2514
|
"h"
|
|
2511
2515
|
]
|
|
2512
2516
|
};
|
|
2513
|
-
function
|
|
2517
|
+
function xi(e, t) {
|
|
2514
2518
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2515
2519
|
var i = e.charAt(r);
|
|
2516
2520
|
if (i === "j") {
|
|
2517
2521
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2518
2522
|
o++, r++;
|
|
2519
|
-
var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1),
|
|
2523
|
+
var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = _i(t);
|
|
2520
2524
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
2521
|
-
n +=
|
|
2525
|
+
n += c;
|
|
2522
2526
|
for (; u-- > 0; )
|
|
2523
2527
|
n = l + n;
|
|
2524
2528
|
} else
|
|
@@ -2526,7 +2530,7 @@ function Ei(e, t) {
|
|
|
2526
2530
|
}
|
|
2527
2531
|
return n;
|
|
2528
2532
|
}
|
|
2529
|
-
function
|
|
2533
|
+
function _i(e) {
|
|
2530
2534
|
var t = e.hourCycle;
|
|
2531
2535
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2532
2536
|
e.hourCycles && // @ts-ignore
|
|
@@ -2548,20 +2552,20 @@ function xi(e) {
|
|
|
2548
2552
|
var i = lt[r || ""] || lt[n || ""] || lt["".concat(n, "-001")] || lt["001"];
|
|
2549
2553
|
return i[0];
|
|
2550
2554
|
}
|
|
2551
|
-
var
|
|
2552
|
-
function
|
|
2555
|
+
var Gt, Ti = new RegExp("^".concat(zn.source, "*")), Bi = new RegExp("".concat(zn.source, "*$"));
|
|
2556
|
+
function H(e, t) {
|
|
2553
2557
|
return { start: e, end: t };
|
|
2554
2558
|
}
|
|
2555
|
-
var
|
|
2559
|
+
var Si = !!String.prototype.startsWith && "_a".startsWith("a", 1), wi = !!String.fromCodePoint, Ai = !!Object.fromEntries, Ci = !!String.prototype.codePointAt, Hi = !!String.prototype.trimStart, Oi = !!String.prototype.trimEnd, Li = !!Number.isSafeInteger, Ri = Li ? Number.isSafeInteger : function(e) {
|
|
2556
2560
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2557
|
-
},
|
|
2561
|
+
}, Zt = !0;
|
|
2558
2562
|
try {
|
|
2559
|
-
var
|
|
2560
|
-
|
|
2563
|
+
var Ni = Jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2564
|
+
Zt = ((Gt = Ni.exec("a")) === null || Gt === void 0 ? void 0 : Gt[0]) === "a";
|
|
2561
2565
|
} catch (e) {
|
|
2562
|
-
|
|
2566
|
+
Zt = !1;
|
|
2563
2567
|
}
|
|
2564
|
-
var mn =
|
|
2568
|
+
var mn = Si ? (
|
|
2565
2569
|
// Native
|
|
2566
2570
|
function(t, n, r) {
|
|
2567
2571
|
return t.startsWith(n, r);
|
|
@@ -2571,7 +2575,7 @@ var mn = Bi ? (
|
|
|
2571
2575
|
function(t, n, r) {
|
|
2572
2576
|
return t.slice(r, r + n.length) === n;
|
|
2573
2577
|
}
|
|
2574
|
-
),
|
|
2578
|
+
), qt = wi ? String.fromCodePoint : (
|
|
2575
2579
|
// IE11
|
|
2576
2580
|
function() {
|
|
2577
2581
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2585,7 +2589,7 @@ var mn = Bi ? (
|
|
|
2585
2589
|
}
|
|
2586
2590
|
), gn = (
|
|
2587
2591
|
// native
|
|
2588
|
-
|
|
2592
|
+
Ai ? Object.fromEntries : (
|
|
2589
2593
|
// Ponyfill
|
|
2590
2594
|
function(t) {
|
|
2591
2595
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2595,7 +2599,7 @@ var mn = Bi ? (
|
|
|
2595
2599
|
return n;
|
|
2596
2600
|
}
|
|
2597
2601
|
)
|
|
2598
|
-
), Qn =
|
|
2602
|
+
), Qn = Ci ? (
|
|
2599
2603
|
// Native
|
|
2600
2604
|
function(t, n) {
|
|
2601
2605
|
return t.codePointAt(n);
|
|
@@ -2609,7 +2613,7 @@ var mn = Bi ? (
|
|
|
2609
2613
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2610
2614
|
}
|
|
2611
2615
|
}
|
|
2612
|
-
),
|
|
2616
|
+
), Mi = Hi ? (
|
|
2613
2617
|
// Native
|
|
2614
2618
|
function(t) {
|
|
2615
2619
|
return t.trimStart();
|
|
@@ -2617,9 +2621,9 @@ var mn = Bi ? (
|
|
|
2617
2621
|
) : (
|
|
2618
2622
|
// Ponyfill
|
|
2619
2623
|
function(t) {
|
|
2620
|
-
return t.replace(
|
|
2624
|
+
return t.replace(Ti, "");
|
|
2621
2625
|
}
|
|
2622
|
-
),
|
|
2626
|
+
), Pi = Oi ? (
|
|
2623
2627
|
// Native
|
|
2624
2628
|
function(t) {
|
|
2625
2629
|
return t.trimEnd();
|
|
@@ -2627,32 +2631,32 @@ var mn = Bi ? (
|
|
|
2627
2631
|
) : (
|
|
2628
2632
|
// Ponyfill
|
|
2629
2633
|
function(t) {
|
|
2630
|
-
return t.replace(
|
|
2634
|
+
return t.replace(Bi, "");
|
|
2631
2635
|
}
|
|
2632
2636
|
);
|
|
2633
2637
|
function Jn(e, t) {
|
|
2634
2638
|
return new RegExp(e, t);
|
|
2635
2639
|
}
|
|
2636
|
-
var
|
|
2637
|
-
if (
|
|
2640
|
+
var Qt;
|
|
2641
|
+
if (Zt) {
|
|
2638
2642
|
var bn = Jn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2639
|
-
|
|
2643
|
+
Qt = function(t, n) {
|
|
2640
2644
|
var r;
|
|
2641
2645
|
bn.lastIndex = n;
|
|
2642
2646
|
var i = bn.exec(t);
|
|
2643
2647
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2644
2648
|
};
|
|
2645
2649
|
} else
|
|
2646
|
-
|
|
2650
|
+
Qt = function(t, n) {
|
|
2647
2651
|
for (var r = []; ; ) {
|
|
2648
2652
|
var i = Qn(t, n);
|
|
2649
|
-
if (i === void 0 || Yn(i) ||
|
|
2653
|
+
if (i === void 0 || Yn(i) || Ui(i))
|
|
2650
2654
|
break;
|
|
2651
2655
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2652
2656
|
}
|
|
2653
|
-
return
|
|
2657
|
+
return qt.apply(void 0, r);
|
|
2654
2658
|
};
|
|
2655
|
-
var
|
|
2659
|
+
var Ii = (
|
|
2656
2660
|
/** @class */
|
|
2657
2661
|
function() {
|
|
2658
2662
|
function e(t, n) {
|
|
@@ -2676,14 +2680,14 @@ var Pi = (
|
|
|
2676
2680
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2677
2681
|
var s = this.clonePosition();
|
|
2678
2682
|
this.bump(), i.push({
|
|
2679
|
-
type:
|
|
2680
|
-
location:
|
|
2683
|
+
type: D.pound,
|
|
2684
|
+
location: H(s, this.clonePosition())
|
|
2681
2685
|
});
|
|
2682
2686
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2683
2687
|
if (r)
|
|
2684
2688
|
break;
|
|
2685
|
-
return this.error(
|
|
2686
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2689
|
+
return this.error(C.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
|
|
2690
|
+
} else if (o === 60 && !this.ignoreTag && Jt(this.peek() || 0)) {
|
|
2687
2691
|
var u = this.parseTag(t, n);
|
|
2688
2692
|
if (u.err)
|
|
2689
2693
|
return u;
|
|
@@ -2704,9 +2708,9 @@ var Pi = (
|
|
|
2704
2708
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2705
2709
|
return {
|
|
2706
2710
|
val: {
|
|
2707
|
-
type:
|
|
2711
|
+
type: D.literal,
|
|
2708
2712
|
value: "<".concat(i, "/>"),
|
|
2709
|
-
location:
|
|
2713
|
+
location: H(r, this.clonePosition())
|
|
2710
2714
|
},
|
|
2711
2715
|
err: null
|
|
2712
2716
|
};
|
|
@@ -2716,25 +2720,25 @@ var Pi = (
|
|
|
2716
2720
|
return o;
|
|
2717
2721
|
var u = o.val, s = this.clonePosition();
|
|
2718
2722
|
if (this.bumpIf("</")) {
|
|
2719
|
-
if (this.isEOF() || !
|
|
2720
|
-
return this.error(
|
|
2721
|
-
var
|
|
2722
|
-
return i !== l ? this.error(
|
|
2723
|
+
if (this.isEOF() || !Jt(this.char()))
|
|
2724
|
+
return this.error(C.INVALID_TAG, H(s, this.clonePosition()));
|
|
2725
|
+
var c = this.clonePosition(), l = this.parseTagName();
|
|
2726
|
+
return i !== l ? this.error(C.UNMATCHED_CLOSING_TAG, H(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2723
2727
|
val: {
|
|
2724
|
-
type:
|
|
2728
|
+
type: D.tag,
|
|
2725
2729
|
value: i,
|
|
2726
2730
|
children: u,
|
|
2727
|
-
location:
|
|
2731
|
+
location: H(r, this.clonePosition())
|
|
2728
2732
|
},
|
|
2729
2733
|
err: null
|
|
2730
|
-
} : this.error(
|
|
2734
|
+
} : this.error(C.INVALID_TAG, H(s, this.clonePosition())));
|
|
2731
2735
|
} else
|
|
2732
|
-
return this.error(
|
|
2736
|
+
return this.error(C.UNCLOSED_TAG, H(r, this.clonePosition()));
|
|
2733
2737
|
} else
|
|
2734
|
-
return this.error(
|
|
2738
|
+
return this.error(C.INVALID_TAG, H(r, this.clonePosition()));
|
|
2735
2739
|
}, e.prototype.parseTagName = function() {
|
|
2736
2740
|
var t = this.offset();
|
|
2737
|
-
for (this.bump(); !this.isEOF() &&
|
|
2741
|
+
for (this.bump(); !this.isEOF() && Fi(this.char()); )
|
|
2738
2742
|
this.bump();
|
|
2739
2743
|
return this.message.slice(t, this.offset());
|
|
2740
2744
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2756,14 +2760,14 @@ var Pi = (
|
|
|
2756
2760
|
}
|
|
2757
2761
|
break;
|
|
2758
2762
|
}
|
|
2759
|
-
var
|
|
2763
|
+
var c = H(r, this.clonePosition());
|
|
2760
2764
|
return {
|
|
2761
|
-
val: { type:
|
|
2765
|
+
val: { type: D.literal, value: i, location: c },
|
|
2762
2766
|
err: null
|
|
2763
2767
|
};
|
|
2764
2768
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2765
2769
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2766
|
-
!
|
|
2770
|
+
!Di(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2767
2771
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2768
2772
|
if (this.isEOF() || this.char() !== 39)
|
|
2769
2773
|
return null;
|
|
@@ -2797,49 +2801,49 @@ var Pi = (
|
|
|
2797
2801
|
n.push(r);
|
|
2798
2802
|
this.bump();
|
|
2799
2803
|
}
|
|
2800
|
-
return
|
|
2804
|
+
return qt.apply(void 0, n);
|
|
2801
2805
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2802
2806
|
if (this.isEOF())
|
|
2803
2807
|
return null;
|
|
2804
2808
|
var r = this.char();
|
|
2805
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2809
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), qt(r));
|
|
2806
2810
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2807
2811
|
var r = this.clonePosition();
|
|
2808
2812
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2809
|
-
return this.error(
|
|
2813
|
+
return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition()));
|
|
2810
2814
|
if (this.char() === 125)
|
|
2811
|
-
return this.bump(), this.error(
|
|
2815
|
+
return this.bump(), this.error(C.EMPTY_ARGUMENT, H(r, this.clonePosition()));
|
|
2812
2816
|
var i = this.parseIdentifierIfPossible().value;
|
|
2813
2817
|
if (!i)
|
|
2814
|
-
return this.error(
|
|
2818
|
+
return this.error(C.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
|
|
2815
2819
|
if (this.bumpSpace(), this.isEOF())
|
|
2816
|
-
return this.error(
|
|
2820
|
+
return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition()));
|
|
2817
2821
|
switch (this.char()) {
|
|
2818
2822
|
case 125:
|
|
2819
2823
|
return this.bump(), {
|
|
2820
2824
|
val: {
|
|
2821
|
-
type:
|
|
2825
|
+
type: D.argument,
|
|
2822
2826
|
// value does not include the opening and closing braces.
|
|
2823
2827
|
value: i,
|
|
2824
|
-
location:
|
|
2828
|
+
location: H(r, this.clonePosition())
|
|
2825
2829
|
},
|
|
2826
2830
|
err: null
|
|
2827
2831
|
};
|
|
2828
2832
|
case 44:
|
|
2829
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2833
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2830
2834
|
default:
|
|
2831
|
-
return this.error(
|
|
2835
|
+
return this.error(C.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
|
|
2832
2836
|
}
|
|
2833
2837
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2834
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2838
|
+
var t = this.clonePosition(), n = this.offset(), r = Qt(this.message, n), i = n + r.length;
|
|
2835
2839
|
this.bumpTo(i);
|
|
2836
|
-
var o = this.clonePosition(), u =
|
|
2840
|
+
var o = this.clonePosition(), u = H(t, o);
|
|
2837
2841
|
return { value: r, location: u };
|
|
2838
2842
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2839
|
-
var o, u = this.clonePosition(), s = this.parseIdentifierIfPossible().value,
|
|
2843
|
+
var o, u = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
2840
2844
|
switch (s) {
|
|
2841
2845
|
case "":
|
|
2842
|
-
return this.error(
|
|
2846
|
+
return this.error(C.EXPECT_ARGUMENT_TYPE, H(u, c));
|
|
2843
2847
|
case "number":
|
|
2844
2848
|
case "date":
|
|
2845
2849
|
case "time": {
|
|
@@ -2847,47 +2851,47 @@ var Pi = (
|
|
|
2847
2851
|
var l = null;
|
|
2848
2852
|
if (this.bumpIf(",")) {
|
|
2849
2853
|
this.bumpSpace();
|
|
2850
|
-
var
|
|
2854
|
+
var f = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
|
|
2851
2855
|
if (g.err)
|
|
2852
2856
|
return g;
|
|
2853
|
-
var
|
|
2854
|
-
if (
|
|
2855
|
-
return this.error(
|
|
2856
|
-
var x =
|
|
2857
|
-
l = { style:
|
|
2857
|
+
var y = Pi(g.val);
|
|
2858
|
+
if (y.length === 0)
|
|
2859
|
+
return this.error(C.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
|
|
2860
|
+
var x = H(f, this.clonePosition());
|
|
2861
|
+
l = { style: y, styleLocation: x };
|
|
2858
2862
|
}
|
|
2859
2863
|
var T = this.tryParseArgumentClose(i);
|
|
2860
2864
|
if (T.err)
|
|
2861
2865
|
return T;
|
|
2862
|
-
var P =
|
|
2866
|
+
var P = H(i, this.clonePosition());
|
|
2863
2867
|
if (l && mn(l == null ? void 0 : l.style, "::", 0)) {
|
|
2864
|
-
var
|
|
2868
|
+
var j = Mi(l.style.slice(2));
|
|
2865
2869
|
if (s === "number") {
|
|
2866
|
-
var g = this.parseNumberSkeletonFromString(
|
|
2870
|
+
var g = this.parseNumberSkeletonFromString(j, l.styleLocation);
|
|
2867
2871
|
return g.err ? g : {
|
|
2868
|
-
val: { type:
|
|
2872
|
+
val: { type: D.number, value: r, location: P, style: g.val },
|
|
2869
2873
|
err: null
|
|
2870
2874
|
};
|
|
2871
2875
|
} else {
|
|
2872
|
-
if (
|
|
2873
|
-
return this.error(
|
|
2874
|
-
var
|
|
2875
|
-
this.locale && (
|
|
2876
|
-
var
|
|
2877
|
-
type:
|
|
2878
|
-
pattern:
|
|
2876
|
+
if (j.length === 0)
|
|
2877
|
+
return this.error(C.EXPECT_DATE_TIME_SKELETON, P);
|
|
2878
|
+
var z = j;
|
|
2879
|
+
this.locale && (z = xi(j, this.locale));
|
|
2880
|
+
var y = {
|
|
2881
|
+
type: Ge.dateTime,
|
|
2882
|
+
pattern: z,
|
|
2879
2883
|
location: l.styleLocation,
|
|
2880
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2881
|
-
},
|
|
2884
|
+
parsedOptions: this.shouldParseSkeletons ? pi(z) : {}
|
|
2885
|
+
}, G = s === "date" ? D.date : D.time;
|
|
2882
2886
|
return {
|
|
2883
|
-
val: { type:
|
|
2887
|
+
val: { type: G, value: r, location: P, style: y },
|
|
2884
2888
|
err: null
|
|
2885
2889
|
};
|
|
2886
2890
|
}
|
|
2887
2891
|
}
|
|
2888
2892
|
return {
|
|
2889
2893
|
val: {
|
|
2890
|
-
type: s === "number" ?
|
|
2894
|
+
type: s === "number" ? D.number : s === "date" ? D.date : D.time,
|
|
2891
2895
|
value: r,
|
|
2892
2896
|
location: P,
|
|
2893
2897
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
@@ -2900,50 +2904,50 @@ var Pi = (
|
|
|
2900
2904
|
case "select": {
|
|
2901
2905
|
var B = this.clonePosition();
|
|
2902
2906
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2903
|
-
return this.error(
|
|
2907
|
+
return this.error(C.EXPECT_SELECT_ARGUMENT_OPTIONS, H(B, mt({}, B)));
|
|
2904
2908
|
this.bumpSpace();
|
|
2905
|
-
var
|
|
2906
|
-
if (s !== "select" &&
|
|
2909
|
+
var w = this.parseIdentifierIfPossible(), I = 0;
|
|
2910
|
+
if (s !== "select" && w.value === "offset") {
|
|
2907
2911
|
if (!this.bumpIf(":"))
|
|
2908
|
-
return this.error(
|
|
2912
|
+
return this.error(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
|
|
2909
2913
|
this.bumpSpace();
|
|
2910
|
-
var g = this.tryParseDecimalInteger(
|
|
2914
|
+
var g = this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, C.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2911
2915
|
if (g.err)
|
|
2912
2916
|
return g;
|
|
2913
|
-
this.bumpSpace(),
|
|
2917
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), I = g.val;
|
|
2914
2918
|
}
|
|
2915
|
-
var
|
|
2916
|
-
if (
|
|
2917
|
-
return
|
|
2919
|
+
var R = this.tryParsePluralOrSelectOptions(t, s, n, w);
|
|
2920
|
+
if (R.err)
|
|
2921
|
+
return R;
|
|
2918
2922
|
var T = this.tryParseArgumentClose(i);
|
|
2919
2923
|
if (T.err)
|
|
2920
2924
|
return T;
|
|
2921
|
-
var
|
|
2925
|
+
var K = H(i, this.clonePosition());
|
|
2922
2926
|
return s === "select" ? {
|
|
2923
2927
|
val: {
|
|
2924
|
-
type:
|
|
2928
|
+
type: D.select,
|
|
2925
2929
|
value: r,
|
|
2926
|
-
options: gn(
|
|
2927
|
-
location:
|
|
2930
|
+
options: gn(R.val),
|
|
2931
|
+
location: K
|
|
2928
2932
|
},
|
|
2929
2933
|
err: null
|
|
2930
2934
|
} : {
|
|
2931
2935
|
val: {
|
|
2932
|
-
type:
|
|
2936
|
+
type: D.plural,
|
|
2933
2937
|
value: r,
|
|
2934
|
-
options: gn(
|
|
2935
|
-
offset:
|
|
2938
|
+
options: gn(R.val),
|
|
2939
|
+
offset: I,
|
|
2936
2940
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2937
|
-
location:
|
|
2941
|
+
location: K
|
|
2938
2942
|
},
|
|
2939
2943
|
err: null
|
|
2940
2944
|
};
|
|
2941
2945
|
}
|
|
2942
2946
|
default:
|
|
2943
|
-
return this.error(
|
|
2947
|
+
return this.error(C.INVALID_ARGUMENT_TYPE, H(u, c));
|
|
2944
2948
|
}
|
|
2945
2949
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2946
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2950
|
+
return this.isEOF() || this.char() !== 125 ? this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE, H(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2947
2951
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2948
2952
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2949
2953
|
var r = this.char();
|
|
@@ -2952,7 +2956,7 @@ var Pi = (
|
|
|
2952
2956
|
this.bump();
|
|
2953
2957
|
var i = this.clonePosition();
|
|
2954
2958
|
if (!this.bumpUntil("'"))
|
|
2955
|
-
return this.error(
|
|
2959
|
+
return this.error(C.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, H(i, this.clonePosition()));
|
|
2956
2960
|
this.bump();
|
|
2957
2961
|
break;
|
|
2958
2962
|
}
|
|
@@ -2982,37 +2986,37 @@ var Pi = (
|
|
|
2982
2986
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2983
2987
|
var r = [];
|
|
2984
2988
|
try {
|
|
2985
|
-
r =
|
|
2989
|
+
r = gi(t);
|
|
2986
2990
|
} catch (i) {
|
|
2987
|
-
return this.error(
|
|
2991
|
+
return this.error(C.INVALID_NUMBER_SKELETON, n);
|
|
2988
2992
|
}
|
|
2989
2993
|
return {
|
|
2990
2994
|
val: {
|
|
2991
|
-
type:
|
|
2995
|
+
type: Ge.number,
|
|
2992
2996
|
tokens: r,
|
|
2993
2997
|
location: n,
|
|
2994
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2998
|
+
parsedOptions: this.shouldParseSkeletons ? Ei(r) : {}
|
|
2995
2999
|
},
|
|
2996
3000
|
err: null
|
|
2997
3001
|
};
|
|
2998
3002
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2999
|
-
for (var o, u = !1, s = [],
|
|
3003
|
+
for (var o, u = !1, s = [], c = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
|
|
3000
3004
|
if (l.length === 0) {
|
|
3001
3005
|
var g = this.clonePosition();
|
|
3002
3006
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3003
|
-
var
|
|
3004
|
-
if (
|
|
3005
|
-
return
|
|
3006
|
-
|
|
3007
|
+
var y = this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_SELECTOR, C.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3008
|
+
if (y.err)
|
|
3009
|
+
return y;
|
|
3010
|
+
f = H(g, this.clonePosition()), l = this.message.slice(g.offset, this.offset());
|
|
3007
3011
|
} else
|
|
3008
3012
|
break;
|
|
3009
3013
|
}
|
|
3010
|
-
if (
|
|
3011
|
-
return this.error(n === "select" ?
|
|
3014
|
+
if (c.has(l))
|
|
3015
|
+
return this.error(n === "select" ? C.DUPLICATE_SELECT_ARGUMENT_SELECTOR : C.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
3012
3016
|
l === "other" && (u = !0), this.bumpSpace();
|
|
3013
3017
|
var x = this.clonePosition();
|
|
3014
3018
|
if (!this.bumpIf("{"))
|
|
3015
|
-
return this.error(n === "select" ?
|
|
3019
|
+
return this.error(n === "select" ? C.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : C.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, H(this.clonePosition(), this.clonePosition()));
|
|
3016
3020
|
var T = this.parseMessage(t + 1, n, r);
|
|
3017
3021
|
if (T.err)
|
|
3018
3022
|
return T;
|
|
@@ -3023,11 +3027,11 @@ var Pi = (
|
|
|
3023
3027
|
l,
|
|
3024
3028
|
{
|
|
3025
3029
|
value: T.val,
|
|
3026
|
-
location:
|
|
3030
|
+
location: H(x, this.clonePosition())
|
|
3027
3031
|
}
|
|
3028
|
-
]),
|
|
3032
|
+
]), c.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, f = o.location;
|
|
3029
3033
|
}
|
|
3030
|
-
return s.length === 0 ? this.error(n === "select" ?
|
|
3034
|
+
return s.length === 0 ? this.error(n === "select" ? C.EXPECT_SELECT_ARGUMENT_SELECTOR : C.EXPECT_PLURAL_ARGUMENT_SELECTOR, H(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(C.MISSING_OTHER_CLAUSE, H(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3031
3035
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3032
3036
|
var r = 1, i = this.clonePosition();
|
|
3033
3037
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
@@ -3038,8 +3042,8 @@ var Pi = (
|
|
|
3038
3042
|
else
|
|
3039
3043
|
break;
|
|
3040
3044
|
}
|
|
3041
|
-
var
|
|
3042
|
-
return o ? (u *= r,
|
|
3045
|
+
var c = H(i, this.clonePosition());
|
|
3046
|
+
return o ? (u *= r, Ri(u) ? { val: u, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3043
3047
|
}, e.prototype.offset = function() {
|
|
3044
3048
|
return this.position.offset;
|
|
3045
3049
|
}, e.prototype.isEOF = function() {
|
|
@@ -3105,47 +3109,47 @@ var Pi = (
|
|
|
3105
3109
|
}, e;
|
|
3106
3110
|
}()
|
|
3107
3111
|
);
|
|
3108
|
-
function
|
|
3112
|
+
function Jt(e) {
|
|
3109
3113
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3110
3114
|
}
|
|
3111
|
-
function Ii(e) {
|
|
3112
|
-
return qt(e) || e === 47;
|
|
3113
|
-
}
|
|
3114
3115
|
function Di(e) {
|
|
3116
|
+
return Jt(e) || e === 47;
|
|
3117
|
+
}
|
|
3118
|
+
function Fi(e) {
|
|
3115
3119
|
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;
|
|
3116
3120
|
}
|
|
3117
3121
|
function Yn(e) {
|
|
3118
3122
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3119
3123
|
}
|
|
3120
|
-
function
|
|
3124
|
+
function Ui(e) {
|
|
3121
3125
|
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;
|
|
3122
3126
|
}
|
|
3123
|
-
function
|
|
3127
|
+
function Yt(e) {
|
|
3124
3128
|
e.forEach(function(t) {
|
|
3125
3129
|
if (delete t.location, jn(t) || kn(t))
|
|
3126
3130
|
for (var n in t.options)
|
|
3127
|
-
delete t.options[n].location,
|
|
3131
|
+
delete t.options[n].location, Yt(t.options[n].value);
|
|
3128
3132
|
else
|
|
3129
|
-
Un(t) && Xn(t.style) || (Gn(t) || $n(t)) &&
|
|
3133
|
+
Un(t) && Xn(t.style) || (Gn(t) || $n(t)) && Wt(t.style) ? delete t.style.location : Vn(t) && Yt(t.children);
|
|
3130
3134
|
});
|
|
3131
3135
|
}
|
|
3132
|
-
function
|
|
3133
|
-
t === void 0 && (t = {}), t =
|
|
3134
|
-
var n = new
|
|
3136
|
+
function Gi(e, t) {
|
|
3137
|
+
t === void 0 && (t = {}), t = mt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3138
|
+
var n = new Ii(e, t).parse();
|
|
3135
3139
|
if (n.err) {
|
|
3136
|
-
var r = SyntaxError(
|
|
3140
|
+
var r = SyntaxError(C[n.err.kind]);
|
|
3137
3141
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3138
3142
|
}
|
|
3139
|
-
return t != null && t.captureLocation ||
|
|
3143
|
+
return t != null && t.captureLocation || Yt(n.val), n.val;
|
|
3140
3144
|
}
|
|
3141
|
-
var
|
|
3145
|
+
var $e;
|
|
3142
3146
|
(function(e) {
|
|
3143
3147
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3144
|
-
})(
|
|
3145
|
-
var
|
|
3148
|
+
})($e || ($e = {}));
|
|
3149
|
+
var Et = (
|
|
3146
3150
|
/** @class */
|
|
3147
3151
|
function(e) {
|
|
3148
|
-
|
|
3152
|
+
vt(t, e);
|
|
3149
3153
|
function t(n, r, i) {
|
|
3150
3154
|
var o = e.call(this, n) || this;
|
|
3151
3155
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3157,152 +3161,152 @@ var vt = (
|
|
|
3157
3161
|
), yn = (
|
|
3158
3162
|
/** @class */
|
|
3159
3163
|
function(e) {
|
|
3160
|
-
|
|
3164
|
+
vt(t, e);
|
|
3161
3165
|
function t(n, r, i, o) {
|
|
3162
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3166
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), $e.INVALID_VALUE, o) || this;
|
|
3163
3167
|
}
|
|
3164
3168
|
return t;
|
|
3165
|
-
}(
|
|
3166
|
-
),
|
|
3169
|
+
}(Et)
|
|
3170
|
+
), $i = (
|
|
3167
3171
|
/** @class */
|
|
3168
3172
|
function(e) {
|
|
3169
|
-
|
|
3173
|
+
vt(t, e);
|
|
3170
3174
|
function t(n, r, i) {
|
|
3171
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3175
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), $e.INVALID_VALUE, i) || this;
|
|
3172
3176
|
}
|
|
3173
3177
|
return t;
|
|
3174
|
-
}(
|
|
3175
|
-
),
|
|
3178
|
+
}(Et)
|
|
3179
|
+
), ji = (
|
|
3176
3180
|
/** @class */
|
|
3177
3181
|
function(e) {
|
|
3178
|
-
|
|
3182
|
+
vt(t, e);
|
|
3179
3183
|
function t(n, r) {
|
|
3180
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3184
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), $e.MISSING_VALUE, r) || this;
|
|
3181
3185
|
}
|
|
3182
3186
|
return t;
|
|
3183
|
-
}(
|
|
3184
|
-
),
|
|
3187
|
+
}(Et)
|
|
3188
|
+
), Y;
|
|
3185
3189
|
(function(e) {
|
|
3186
3190
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3187
|
-
})(
|
|
3188
|
-
function
|
|
3191
|
+
})(Y || (Y = {}));
|
|
3192
|
+
function ki(e) {
|
|
3189
3193
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3190
3194
|
var r = t[t.length - 1];
|
|
3191
|
-
return !r || r.type !==
|
|
3195
|
+
return !r || r.type !== Y.literal || n.type !== Y.literal ? t.push(n) : r.value += n.value, t;
|
|
3192
3196
|
}, []);
|
|
3193
3197
|
}
|
|
3194
|
-
function
|
|
3198
|
+
function Vi(e) {
|
|
3195
3199
|
return typeof e == "function";
|
|
3196
3200
|
}
|
|
3197
3201
|
function ct(e, t, n, r, i, o, u) {
|
|
3198
3202
|
if (e.length === 1 && cn(e[0]))
|
|
3199
3203
|
return [
|
|
3200
3204
|
{
|
|
3201
|
-
type:
|
|
3205
|
+
type: Y.literal,
|
|
3202
3206
|
value: e[0].value
|
|
3203
3207
|
}
|
|
3204
3208
|
];
|
|
3205
|
-
for (var s = [],
|
|
3206
|
-
var
|
|
3207
|
-
if (cn(
|
|
3209
|
+
for (var s = [], c = 0, l = e; c < l.length; c++) {
|
|
3210
|
+
var f = l[c];
|
|
3211
|
+
if (cn(f)) {
|
|
3208
3212
|
s.push({
|
|
3209
|
-
type:
|
|
3210
|
-
value:
|
|
3213
|
+
type: Y.literal,
|
|
3214
|
+
value: f.value
|
|
3211
3215
|
});
|
|
3212
3216
|
continue;
|
|
3213
3217
|
}
|
|
3214
|
-
if (
|
|
3218
|
+
if (fi(f)) {
|
|
3215
3219
|
typeof o == "number" && s.push({
|
|
3216
|
-
type:
|
|
3220
|
+
type: Y.literal,
|
|
3217
3221
|
value: n.getNumberFormat(t).format(o)
|
|
3218
3222
|
});
|
|
3219
3223
|
continue;
|
|
3220
3224
|
}
|
|
3221
|
-
var g =
|
|
3225
|
+
var g = f.value;
|
|
3222
3226
|
if (!(i && g in i))
|
|
3223
|
-
throw new
|
|
3224
|
-
var
|
|
3225
|
-
if (
|
|
3226
|
-
(!
|
|
3227
|
-
type: typeof
|
|
3228
|
-
value:
|
|
3227
|
+
throw new ji(g, u);
|
|
3228
|
+
var y = i[g];
|
|
3229
|
+
if (ci(f)) {
|
|
3230
|
+
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), s.push({
|
|
3231
|
+
type: typeof y == "string" ? Y.literal : Y.object,
|
|
3232
|
+
value: y
|
|
3229
3233
|
});
|
|
3230
3234
|
continue;
|
|
3231
3235
|
}
|
|
3232
|
-
if (Gn(
|
|
3233
|
-
var x = typeof
|
|
3236
|
+
if (Gn(f)) {
|
|
3237
|
+
var x = typeof f.style == "string" ? r.date[f.style] : Wt(f.style) ? f.style.parsedOptions : void 0;
|
|
3234
3238
|
s.push({
|
|
3235
|
-
type:
|
|
3236
|
-
value: n.getDateTimeFormat(t, x).format(
|
|
3239
|
+
type: Y.literal,
|
|
3240
|
+
value: n.getDateTimeFormat(t, x).format(y)
|
|
3237
3241
|
});
|
|
3238
3242
|
continue;
|
|
3239
3243
|
}
|
|
3240
|
-
if ($n(
|
|
3241
|
-
var x = typeof
|
|
3244
|
+
if ($n(f)) {
|
|
3245
|
+
var x = typeof f.style == "string" ? r.time[f.style] : Wt(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3242
3246
|
s.push({
|
|
3243
|
-
type:
|
|
3244
|
-
value: n.getDateTimeFormat(t, x).format(
|
|
3247
|
+
type: Y.literal,
|
|
3248
|
+
value: n.getDateTimeFormat(t, x).format(y)
|
|
3245
3249
|
});
|
|
3246
3250
|
continue;
|
|
3247
3251
|
}
|
|
3248
|
-
if (Un(
|
|
3249
|
-
var x = typeof
|
|
3250
|
-
x && x.scale && (
|
|
3251
|
-
type:
|
|
3252
|
-
value: n.getNumberFormat(t, x).format(
|
|
3252
|
+
if (Un(f)) {
|
|
3253
|
+
var x = typeof f.style == "string" ? r.number[f.style] : Xn(f.style) ? f.style.parsedOptions : void 0;
|
|
3254
|
+
x && x.scale && (y = y * (x.scale || 1)), s.push({
|
|
3255
|
+
type: Y.literal,
|
|
3256
|
+
value: n.getNumberFormat(t, x).format(y)
|
|
3253
3257
|
});
|
|
3254
3258
|
continue;
|
|
3255
3259
|
}
|
|
3256
|
-
if (Vn(
|
|
3257
|
-
var T =
|
|
3258
|
-
if (!
|
|
3259
|
-
throw new
|
|
3260
|
-
var
|
|
3261
|
-
return
|
|
3260
|
+
if (Vn(f)) {
|
|
3261
|
+
var T = f.children, P = f.value, j = i[P];
|
|
3262
|
+
if (!Vi(j))
|
|
3263
|
+
throw new $i(P, "function", u);
|
|
3264
|
+
var z = ct(T, t, n, r, i, o), G = j(z.map(function(I) {
|
|
3265
|
+
return I.value;
|
|
3262
3266
|
}));
|
|
3263
|
-
Array.isArray(
|
|
3267
|
+
Array.isArray(G) || (G = [G]), s.push.apply(s, G.map(function(I) {
|
|
3264
3268
|
return {
|
|
3265
|
-
type: typeof
|
|
3266
|
-
value:
|
|
3269
|
+
type: typeof I == "string" ? Y.literal : Y.object,
|
|
3270
|
+
value: I
|
|
3267
3271
|
};
|
|
3268
3272
|
}));
|
|
3269
3273
|
}
|
|
3270
|
-
if (jn(
|
|
3271
|
-
var B =
|
|
3274
|
+
if (jn(f)) {
|
|
3275
|
+
var B = f.options[y] || f.options.other;
|
|
3272
3276
|
if (!B)
|
|
3273
|
-
throw new yn(
|
|
3277
|
+
throw new yn(f.value, y, Object.keys(f.options), u);
|
|
3274
3278
|
s.push.apply(s, ct(B.value, t, n, r, i));
|
|
3275
3279
|
continue;
|
|
3276
3280
|
}
|
|
3277
|
-
if (kn(
|
|
3278
|
-
var B =
|
|
3281
|
+
if (kn(f)) {
|
|
3282
|
+
var B = f.options["=".concat(y)];
|
|
3279
3283
|
if (!B) {
|
|
3280
3284
|
if (!Intl.PluralRules)
|
|
3281
|
-
throw new
|
|
3285
|
+
throw new Et(`Intl.PluralRules is not available in this environment.
|
|
3282
3286
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3283
|
-
`,
|
|
3284
|
-
var
|
|
3285
|
-
B =
|
|
3287
|
+
`, $e.MISSING_INTL_API, u);
|
|
3288
|
+
var w = n.getPluralRules(t, { type: f.pluralType }).select(y - (f.offset || 0));
|
|
3289
|
+
B = f.options[w] || f.options.other;
|
|
3286
3290
|
}
|
|
3287
3291
|
if (!B)
|
|
3288
|
-
throw new yn(
|
|
3289
|
-
s.push.apply(s, ct(B.value, t, n, r, i,
|
|
3292
|
+
throw new yn(f.value, y, Object.keys(f.options), u);
|
|
3293
|
+
s.push.apply(s, ct(B.value, t, n, r, i, y - (f.offset || 0)));
|
|
3290
3294
|
continue;
|
|
3291
3295
|
}
|
|
3292
3296
|
}
|
|
3293
|
-
return
|
|
3297
|
+
return ki(s);
|
|
3294
3298
|
}
|
|
3295
|
-
function
|
|
3296
|
-
return t ?
|
|
3297
|
-
return n[r] =
|
|
3299
|
+
function Xi(e, t) {
|
|
3300
|
+
return t ? ce(ce(ce({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3301
|
+
return n[r] = ce(ce({}, e[r]), t[r] || {}), n;
|
|
3298
3302
|
}, {})) : e;
|
|
3299
3303
|
}
|
|
3300
|
-
function
|
|
3304
|
+
function zi(e, t) {
|
|
3301
3305
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3302
|
-
return n[r] =
|
|
3303
|
-
},
|
|
3306
|
+
return n[r] = Xi(e[r], t[r]), n;
|
|
3307
|
+
}, ce({}, e)) : e;
|
|
3304
3308
|
}
|
|
3305
|
-
function
|
|
3309
|
+
function $t(e) {
|
|
3306
3310
|
return {
|
|
3307
3311
|
create: function() {
|
|
3308
3312
|
return {
|
|
@@ -3316,39 +3320,39 @@ function Ut(e) {
|
|
|
3316
3320
|
}
|
|
3317
3321
|
};
|
|
3318
3322
|
}
|
|
3319
|
-
function
|
|
3323
|
+
function Wi(e) {
|
|
3320
3324
|
return e === void 0 && (e = {
|
|
3321
3325
|
number: {},
|
|
3322
3326
|
dateTime: {},
|
|
3323
3327
|
pluralRules: {}
|
|
3324
3328
|
}), {
|
|
3325
|
-
getNumberFormat:
|
|
3329
|
+
getNumberFormat: Ft(function() {
|
|
3326
3330
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3327
3331
|
n[r] = arguments[r];
|
|
3328
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3332
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Dt([void 0], n, !1)))();
|
|
3329
3333
|
}, {
|
|
3330
|
-
cache:
|
|
3331
|
-
strategy:
|
|
3334
|
+
cache: $t(e.number),
|
|
3335
|
+
strategy: Ut.variadic
|
|
3332
3336
|
}),
|
|
3333
|
-
getDateTimeFormat:
|
|
3337
|
+
getDateTimeFormat: Ft(function() {
|
|
3334
3338
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3335
3339
|
n[r] = arguments[r];
|
|
3336
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3340
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Dt([void 0], n, !1)))();
|
|
3337
3341
|
}, {
|
|
3338
|
-
cache:
|
|
3339
|
-
strategy:
|
|
3342
|
+
cache: $t(e.dateTime),
|
|
3343
|
+
strategy: Ut.variadic
|
|
3340
3344
|
}),
|
|
3341
|
-
getPluralRules:
|
|
3345
|
+
getPluralRules: Ft(function() {
|
|
3342
3346
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3343
3347
|
n[r] = arguments[r];
|
|
3344
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3348
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Dt([void 0], n, !1)))();
|
|
3345
3349
|
}, {
|
|
3346
|
-
cache:
|
|
3347
|
-
strategy:
|
|
3350
|
+
cache: $t(e.pluralRules),
|
|
3351
|
+
strategy: Ut.variadic
|
|
3348
3352
|
})
|
|
3349
3353
|
};
|
|
3350
3354
|
}
|
|
3351
|
-
var
|
|
3355
|
+
var Zi = (
|
|
3352
3356
|
/** @class */
|
|
3353
3357
|
function() {
|
|
3354
3358
|
function e(t, n, r, i) {
|
|
@@ -3358,20 +3362,20 @@ var Wi = (
|
|
|
3358
3362
|
number: {},
|
|
3359
3363
|
dateTime: {},
|
|
3360
3364
|
pluralRules: {}
|
|
3361
|
-
}, this.format = function(
|
|
3362
|
-
var l = o.formatToParts(
|
|
3365
|
+
}, this.format = function(c) {
|
|
3366
|
+
var l = o.formatToParts(c);
|
|
3363
3367
|
if (l.length === 1)
|
|
3364
3368
|
return l[0].value;
|
|
3365
|
-
var
|
|
3366
|
-
return !g.length ||
|
|
3369
|
+
var f = l.reduce(function(g, y) {
|
|
3370
|
+
return !g.length || y.type !== Y.literal || typeof g[g.length - 1] != "string" ? g.push(y.value) : g[g.length - 1] += y.value, g;
|
|
3367
3371
|
}, []);
|
|
3368
|
-
return
|
|
3369
|
-
}, this.formatToParts = function(
|
|
3370
|
-
return ct(o.ast, o.locales, o.formatters, o.formats,
|
|
3372
|
+
return f.length <= 1 ? f[0] || "" : f;
|
|
3373
|
+
}, this.formatToParts = function(c) {
|
|
3374
|
+
return ct(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3371
3375
|
}, this.resolvedOptions = function() {
|
|
3372
|
-
var
|
|
3376
|
+
var c;
|
|
3373
3377
|
return {
|
|
3374
|
-
locale: ((
|
|
3378
|
+
locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3375
3379
|
};
|
|
3376
3380
|
}, this.getAst = function() {
|
|
3377
3381
|
return o.ast;
|
|
@@ -3381,12 +3385,12 @@ var Wi = (
|
|
|
3381
3385
|
var u = i || {};
|
|
3382
3386
|
u.formatters;
|
|
3383
3387
|
var s = ri(u, ["formatters"]);
|
|
3384
|
-
this.ast = e.__parse(t,
|
|
3388
|
+
this.ast = e.__parse(t, ce(ce({}, s), { locale: this.resolvedLocale }));
|
|
3385
3389
|
} else
|
|
3386
3390
|
this.ast = t;
|
|
3387
3391
|
if (!Array.isArray(this.ast))
|
|
3388
3392
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3389
|
-
this.formats =
|
|
3393
|
+
this.formats = zi(e.formats, r), this.formatters = i && i.formatters || Wi(this.formatterCache);
|
|
3390
3394
|
}
|
|
3391
3395
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3392
3396
|
get: function() {
|
|
@@ -3399,7 +3403,7 @@ var Wi = (
|
|
|
3399
3403
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3400
3404
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3401
3405
|
}
|
|
3402
|
-
}, e.__parse =
|
|
3406
|
+
}, e.__parse = Gi, e.formats = {
|
|
3403
3407
|
number: {
|
|
3404
3408
|
integer: {
|
|
3405
3409
|
maximumFractionDigits: 0
|
|
@@ -3460,7 +3464,7 @@ var Wi = (
|
|
|
3460
3464
|
}, e;
|
|
3461
3465
|
}()
|
|
3462
3466
|
);
|
|
3463
|
-
function
|
|
3467
|
+
function qi(e, t) {
|
|
3464
3468
|
if (t == null)
|
|
3465
3469
|
return;
|
|
3466
3470
|
if (t in e)
|
|
@@ -3481,36 +3485,36 @@ function Zi(e, t) {
|
|
|
3481
3485
|
r = void 0;
|
|
3482
3486
|
return r;
|
|
3483
3487
|
}
|
|
3484
|
-
const
|
|
3488
|
+
const we = {}, Qi = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = n), n), Kn = (e, t) => {
|
|
3485
3489
|
if (t == null)
|
|
3486
3490
|
return;
|
|
3487
|
-
if (t in
|
|
3488
|
-
return
|
|
3489
|
-
const n =
|
|
3491
|
+
if (t in we && e in we[t])
|
|
3492
|
+
return we[t][e];
|
|
3493
|
+
const n = xt(t);
|
|
3490
3494
|
for (let r = 0; r < n.length; r++) {
|
|
3491
|
-
const i = n[r], o =
|
|
3495
|
+
const i = n[r], o = Yi(i, e);
|
|
3492
3496
|
if (o)
|
|
3493
|
-
return
|
|
3497
|
+
return Qi(e, t, o);
|
|
3494
3498
|
}
|
|
3495
3499
|
};
|
|
3496
3500
|
let rn;
|
|
3497
|
-
const
|
|
3498
|
-
function
|
|
3501
|
+
const it = yt({});
|
|
3502
|
+
function Ji(e) {
|
|
3499
3503
|
return rn[e] || null;
|
|
3500
3504
|
}
|
|
3501
3505
|
function er(e) {
|
|
3502
3506
|
return e in rn;
|
|
3503
3507
|
}
|
|
3504
|
-
function
|
|
3508
|
+
function Yi(e, t) {
|
|
3505
3509
|
if (!er(e))
|
|
3506
3510
|
return null;
|
|
3507
|
-
const n =
|
|
3508
|
-
return
|
|
3511
|
+
const n = Ji(e);
|
|
3512
|
+
return qi(n, t);
|
|
3509
3513
|
}
|
|
3510
|
-
function
|
|
3514
|
+
function Ki(e) {
|
|
3511
3515
|
if (e == null)
|
|
3512
3516
|
return;
|
|
3513
|
-
const t =
|
|
3517
|
+
const t = xt(e);
|
|
3514
3518
|
for (let n = 0; n < t.length; n++) {
|
|
3515
3519
|
const r = t[n];
|
|
3516
3520
|
if (er(r))
|
|
@@ -3518,55 +3522,55 @@ function Yi(e) {
|
|
|
3518
3522
|
}
|
|
3519
3523
|
}
|
|
3520
3524
|
function tr(e, ...t) {
|
|
3521
|
-
delete
|
|
3525
|
+
delete we[e], it.update((n) => (n[e] = ni.all([n[e] || {}, ...t]), n));
|
|
3522
3526
|
}
|
|
3523
|
-
|
|
3524
|
-
[
|
|
3527
|
+
Ve(
|
|
3528
|
+
[it],
|
|
3525
3529
|
([e]) => Object.keys(e)
|
|
3526
3530
|
);
|
|
3527
|
-
|
|
3531
|
+
it.subscribe((e) => rn = e);
|
|
3528
3532
|
const ft = {};
|
|
3529
|
-
function
|
|
3533
|
+
function eo(e, t) {
|
|
3530
3534
|
ft[e].delete(t), ft[e].size === 0 && delete ft[e];
|
|
3531
3535
|
}
|
|
3532
3536
|
function nr(e) {
|
|
3533
3537
|
return ft[e];
|
|
3534
3538
|
}
|
|
3535
|
-
function
|
|
3536
|
-
return
|
|
3539
|
+
function to(e) {
|
|
3540
|
+
return xt(e).map((t) => {
|
|
3537
3541
|
const n = nr(t);
|
|
3538
3542
|
return [t, n ? [...n] : []];
|
|
3539
3543
|
}).filter(([, t]) => t.length > 0);
|
|
3540
3544
|
}
|
|
3541
|
-
function
|
|
3542
|
-
return e == null ? !1 :
|
|
3545
|
+
function Kt(e) {
|
|
3546
|
+
return e == null ? !1 : xt(e).some(
|
|
3543
3547
|
(t) => {
|
|
3544
3548
|
var n;
|
|
3545
3549
|
return (n = nr(t)) == null ? void 0 : n.size;
|
|
3546
3550
|
}
|
|
3547
3551
|
);
|
|
3548
3552
|
}
|
|
3549
|
-
function
|
|
3553
|
+
function no(e, t) {
|
|
3550
3554
|
return Promise.all(
|
|
3551
|
-
t.map((r) => (
|
|
3555
|
+
t.map((r) => (eo(e, r), r().then((i) => i.default || i)))
|
|
3552
3556
|
).then((r) => tr(e, ...r));
|
|
3553
3557
|
}
|
|
3554
|
-
const
|
|
3558
|
+
const Ke = {};
|
|
3555
3559
|
function rr(e) {
|
|
3556
|
-
if (!
|
|
3557
|
-
return e in
|
|
3558
|
-
const t =
|
|
3559
|
-
return
|
|
3560
|
+
if (!Kt(e))
|
|
3561
|
+
return e in Ke ? Ke[e] : Promise.resolve();
|
|
3562
|
+
const t = to(e);
|
|
3563
|
+
return Ke[e] = Promise.all(
|
|
3560
3564
|
t.map(
|
|
3561
|
-
([n, r]) =>
|
|
3565
|
+
([n, r]) => no(n, r)
|
|
3562
3566
|
)
|
|
3563
3567
|
).then(() => {
|
|
3564
|
-
if (
|
|
3568
|
+
if (Kt(e))
|
|
3565
3569
|
return rr(e);
|
|
3566
|
-
delete
|
|
3567
|
-
}),
|
|
3570
|
+
delete Ke[e];
|
|
3571
|
+
}), Ke[e];
|
|
3568
3572
|
}
|
|
3569
|
-
const
|
|
3573
|
+
const ro = {
|
|
3570
3574
|
number: {
|
|
3571
3575
|
scientific: { notation: "scientific" },
|
|
3572
3576
|
engineering: { notation: "engineering" },
|
|
@@ -3595,176 +3599,176 @@ const no = {
|
|
|
3595
3599
|
timeZoneName: "short"
|
|
3596
3600
|
}
|
|
3597
3601
|
}
|
|
3598
|
-
},
|
|
3602
|
+
}, io = {
|
|
3599
3603
|
fallbackLocale: null,
|
|
3600
3604
|
loadingDelay: 200,
|
|
3601
|
-
formats:
|
|
3605
|
+
formats: ro,
|
|
3602
3606
|
warnOnMissingMessages: !0,
|
|
3603
3607
|
handleMissingMessage: void 0,
|
|
3604
3608
|
ignoreTag: !0
|
|
3605
|
-
},
|
|
3606
|
-
function
|
|
3607
|
-
return
|
|
3609
|
+
}, oo = io;
|
|
3610
|
+
function je() {
|
|
3611
|
+
return oo;
|
|
3608
3612
|
}
|
|
3609
|
-
const
|
|
3610
|
-
var
|
|
3613
|
+
const jt = yt(!1);
|
|
3614
|
+
var ao = Object.defineProperty, so = Object.defineProperties, uo = Object.getOwnPropertyDescriptors, vn = Object.getOwnPropertySymbols, lo = Object.prototype.hasOwnProperty, ho = Object.prototype.propertyIsEnumerable, En = (e, t, n) => t in e ? ao(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, co = (e, t) => {
|
|
3611
3615
|
for (var n in t || (t = {}))
|
|
3612
|
-
|
|
3616
|
+
lo.call(t, n) && En(e, n, t[n]);
|
|
3613
3617
|
if (vn)
|
|
3614
3618
|
for (var n of vn(t))
|
|
3615
|
-
|
|
3619
|
+
ho.call(t, n) && En(e, n, t[n]);
|
|
3616
3620
|
return e;
|
|
3617
|
-
},
|
|
3618
|
-
let
|
|
3619
|
-
const
|
|
3621
|
+
}, fo = (e, t) => so(e, uo(t));
|
|
3622
|
+
let en;
|
|
3623
|
+
const gt = yt(null);
|
|
3620
3624
|
function xn(e) {
|
|
3621
3625
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3622
3626
|
}
|
|
3623
|
-
function
|
|
3627
|
+
function xt(e, t = je().fallbackLocale) {
|
|
3624
3628
|
const n = xn(e);
|
|
3625
3629
|
return t ? [.../* @__PURE__ */ new Set([...n, ...xn(t)])] : n;
|
|
3626
3630
|
}
|
|
3627
|
-
function
|
|
3628
|
-
return
|
|
3631
|
+
function Oe() {
|
|
3632
|
+
return en != null ? en : void 0;
|
|
3629
3633
|
}
|
|
3630
|
-
|
|
3631
|
-
|
|
3634
|
+
gt.subscribe((e) => {
|
|
3635
|
+
en = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3632
3636
|
});
|
|
3633
|
-
const
|
|
3634
|
-
if (e &&
|
|
3635
|
-
const { loadingDelay: t } =
|
|
3637
|
+
const po = (e) => {
|
|
3638
|
+
if (e && Ki(e) && Kt(e)) {
|
|
3639
|
+
const { loadingDelay: t } = je();
|
|
3636
3640
|
let n;
|
|
3637
|
-
return typeof window != "undefined" &&
|
|
3638
|
-
() =>
|
|
3641
|
+
return typeof window != "undefined" && Oe() != null && t ? n = window.setTimeout(
|
|
3642
|
+
() => jt.set(!0),
|
|
3639
3643
|
t
|
|
3640
|
-
) :
|
|
3641
|
-
|
|
3644
|
+
) : jt.set(!0), rr(e).then(() => {
|
|
3645
|
+
gt.set(e);
|
|
3642
3646
|
}).finally(() => {
|
|
3643
|
-
clearTimeout(n),
|
|
3647
|
+
clearTimeout(n), jt.set(!1);
|
|
3644
3648
|
});
|
|
3645
3649
|
}
|
|
3646
|
-
return
|
|
3647
|
-
},
|
|
3648
|
-
set:
|
|
3649
|
-
}),
|
|
3650
|
+
return gt.set(e);
|
|
3651
|
+
}, Xe = fo(co({}, gt), {
|
|
3652
|
+
set: po
|
|
3653
|
+
}), _t = (e) => {
|
|
3650
3654
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3651
3655
|
return (r) => {
|
|
3652
3656
|
const i = JSON.stringify(r);
|
|
3653
3657
|
return i in t ? t[i] : t[i] = e(r);
|
|
3654
3658
|
};
|
|
3655
3659
|
};
|
|
3656
|
-
var
|
|
3660
|
+
var mo = Object.defineProperty, bt = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, or = Object.prototype.propertyIsEnumerable, _n = (e, t, n) => t in e ? mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, on = (e, t) => {
|
|
3657
3661
|
for (var n in t || (t = {}))
|
|
3658
3662
|
ir.call(t, n) && _n(e, n, t[n]);
|
|
3659
|
-
if (
|
|
3660
|
-
for (var n of
|
|
3663
|
+
if (bt)
|
|
3664
|
+
for (var n of bt(t))
|
|
3661
3665
|
or.call(t, n) && _n(e, n, t[n]);
|
|
3662
3666
|
return e;
|
|
3663
|
-
},
|
|
3667
|
+
}, ze = (e, t) => {
|
|
3664
3668
|
var n = {};
|
|
3665
3669
|
for (var r in e)
|
|
3666
3670
|
ir.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3667
|
-
if (e != null &&
|
|
3668
|
-
for (var r of
|
|
3671
|
+
if (e != null && bt)
|
|
3672
|
+
for (var r of bt(e))
|
|
3669
3673
|
t.indexOf(r) < 0 && or.call(e, r) && (n[r] = e[r]);
|
|
3670
3674
|
return n;
|
|
3671
3675
|
};
|
|
3672
|
-
const
|
|
3673
|
-
const { formats: n } =
|
|
3676
|
+
const rt = (e, t) => {
|
|
3677
|
+
const { formats: n } = je();
|
|
3674
3678
|
if (e in n && t in n[e])
|
|
3675
3679
|
return n[e][t];
|
|
3676
3680
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3677
|
-
},
|
|
3681
|
+
}, go = _t(
|
|
3678
3682
|
(e) => {
|
|
3679
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3683
|
+
var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
|
|
3680
3684
|
if (n == null)
|
|
3681
3685
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3682
|
-
return r && (i =
|
|
3686
|
+
return r && (i = rt("number", r)), new Intl.NumberFormat(n, i);
|
|
3683
3687
|
}
|
|
3684
|
-
),
|
|
3688
|
+
), bo = _t(
|
|
3685
3689
|
(e) => {
|
|
3686
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3690
|
+
var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
|
|
3687
3691
|
if (n == null)
|
|
3688
3692
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3689
|
-
return r ? i =
|
|
3693
|
+
return r ? i = rt("date", r) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3690
3694
|
}
|
|
3691
|
-
),
|
|
3695
|
+
), yo = _t(
|
|
3692
3696
|
(e) => {
|
|
3693
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3697
|
+
var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
|
|
3694
3698
|
if (n == null)
|
|
3695
3699
|
throw new Error(
|
|
3696
3700
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3697
3701
|
);
|
|
3698
|
-
return r ? i =
|
|
3702
|
+
return r ? i = rt("time", r) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3699
3703
|
}
|
|
3700
|
-
),
|
|
3701
|
-
var t = e, {
|
|
3702
|
-
locale: n = He()
|
|
3703
|
-
} = t, r = Ve(t, [
|
|
3704
|
-
"locale"
|
|
3705
|
-
]);
|
|
3706
|
-
return mo(on({ locale: n }, r));
|
|
3707
|
-
}, vo = (e = {}) => {
|
|
3704
|
+
), vo = (e = {}) => {
|
|
3708
3705
|
var t = e, {
|
|
3709
|
-
locale: n =
|
|
3710
|
-
} = t, r =
|
|
3706
|
+
locale: n = Oe()
|
|
3707
|
+
} = t, r = ze(t, [
|
|
3711
3708
|
"locale"
|
|
3712
3709
|
]);
|
|
3713
3710
|
return go(on({ locale: n }, r));
|
|
3714
3711
|
}, Eo = (e = {}) => {
|
|
3715
3712
|
var t = e, {
|
|
3716
|
-
locale: n =
|
|
3717
|
-
} = t, r =
|
|
3713
|
+
locale: n = Oe()
|
|
3714
|
+
} = t, r = ze(t, [
|
|
3718
3715
|
"locale"
|
|
3719
3716
|
]);
|
|
3720
3717
|
return bo(on({ locale: n }, r));
|
|
3721
|
-
}, xo =
|
|
3718
|
+
}, xo = (e = {}) => {
|
|
3719
|
+
var t = e, {
|
|
3720
|
+
locale: n = Oe()
|
|
3721
|
+
} = t, r = ze(t, [
|
|
3722
|
+
"locale"
|
|
3723
|
+
]);
|
|
3724
|
+
return yo(on({ locale: n }, r));
|
|
3725
|
+
}, _o = _t(
|
|
3722
3726
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3723
|
-
(e, t =
|
|
3724
|
-
ignoreTag:
|
|
3727
|
+
(e, t = Oe()) => new Zi(e, t, je().formats, {
|
|
3728
|
+
ignoreTag: je().ignoreTag
|
|
3725
3729
|
})
|
|
3726
|
-
),
|
|
3730
|
+
), To = (e, t = {}) => {
|
|
3727
3731
|
var n, r, i, o;
|
|
3728
3732
|
let u = t;
|
|
3729
3733
|
typeof e == "object" && (u = e, e = u.id);
|
|
3730
3734
|
const {
|
|
3731
3735
|
values: s,
|
|
3732
|
-
locale:
|
|
3736
|
+
locale: c = Oe(),
|
|
3733
3737
|
default: l
|
|
3734
3738
|
} = u;
|
|
3735
|
-
if (
|
|
3739
|
+
if (c == null)
|
|
3736
3740
|
throw new Error(
|
|
3737
3741
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3738
3742
|
);
|
|
3739
|
-
let
|
|
3740
|
-
if (!
|
|
3741
|
-
|
|
3742
|
-
else if (typeof
|
|
3743
|
+
let f = Kn(e, c);
|
|
3744
|
+
if (!f)
|
|
3745
|
+
f = (o = (i = (r = (n = je()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
3746
|
+
else if (typeof f != "string")
|
|
3743
3747
|
return console.warn(
|
|
3744
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3745
|
-
),
|
|
3748
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3749
|
+
), f;
|
|
3746
3750
|
if (!s)
|
|
3747
|
-
return
|
|
3748
|
-
let g =
|
|
3751
|
+
return f;
|
|
3752
|
+
let g = f;
|
|
3749
3753
|
try {
|
|
3750
|
-
g =
|
|
3751
|
-
} catch (
|
|
3752
|
-
|
|
3754
|
+
g = _o(f, c).format(s);
|
|
3755
|
+
} catch (y) {
|
|
3756
|
+
y instanceof Error && console.warn(
|
|
3753
3757
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3754
|
-
|
|
3758
|
+
y.message
|
|
3755
3759
|
);
|
|
3756
3760
|
}
|
|
3757
3761
|
return g;
|
|
3758
|
-
},
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3762
|
+
}, Bo = (e, t) => xo(t).format(e), So = (e, t) => Eo(t).format(e), wo = (e, t) => vo(t).format(e), Ao = (e, t = Oe()) => Kn(e, t), Co = Ve([Xe, it], () => To);
|
|
3763
|
+
Ve([Xe], () => Bo);
|
|
3764
|
+
Ve([Xe], () => So);
|
|
3765
|
+
Ve([Xe], () => wo);
|
|
3766
|
+
Ve([Xe, it], () => Ao);
|
|
3763
3767
|
function Tn(e, t) {
|
|
3764
3768
|
tr(e, t);
|
|
3765
3769
|
}
|
|
3766
|
-
function
|
|
3767
|
-
|
|
3770
|
+
function Ho(e) {
|
|
3771
|
+
Xe.set(e);
|
|
3768
3772
|
}
|
|
3769
3773
|
const Bn = {
|
|
3770
3774
|
en: {
|
|
@@ -3966,7 +3970,7 @@ const Bn = {
|
|
|
3966
3970
|
Loading: "Loading ..."
|
|
3967
3971
|
}
|
|
3968
3972
|
};
|
|
3969
|
-
var
|
|
3973
|
+
var tn = { exports: {} };
|
|
3970
3974
|
/** @license
|
|
3971
3975
|
* eventsource.js
|
|
3972
3976
|
* Available under MIT License (MIT)
|
|
@@ -3974,7 +3978,7 @@ var Kt = { exports: {} };
|
|
|
3974
3978
|
*/
|
|
3975
3979
|
(function(e, t) {
|
|
3976
3980
|
(function(n) {
|
|
3977
|
-
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, s = n.ActiveXObject,
|
|
3981
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, s = n.ActiveXObject, c = n.EventSource, l = n.document, f = n.Promise, g = n.fetch, y = n.Response, x = n.TextDecoder, T = n.TextEncoder, P = n.AbortController;
|
|
3978
3982
|
if (typeof window != "undefined" && typeof l != "undefined" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(a) {
|
|
3979
3983
|
l.readyState = "complete";
|
|
3980
3984
|
}, !1)), o == null && s != null && (o = function() {
|
|
@@ -3986,15 +3990,15 @@ var Kt = { exports: {} };
|
|
|
3986
3990
|
}), Date.now || (Date.now = function() {
|
|
3987
3991
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3988
3992
|
}), P == null) {
|
|
3989
|
-
var
|
|
3993
|
+
var j = g;
|
|
3990
3994
|
g = function(a, h) {
|
|
3991
|
-
var
|
|
3992
|
-
return
|
|
3993
|
-
var v =
|
|
3994
|
-
return
|
|
3995
|
-
status:
|
|
3996
|
-
statusText:
|
|
3997
|
-
headers:
|
|
3995
|
+
var m = h.signal;
|
|
3996
|
+
return j(a, { headers: h.headers, credentials: h.credentials, cache: h.cache }).then(function(d) {
|
|
3997
|
+
var v = d.body.getReader();
|
|
3998
|
+
return m._reader = v, m._aborted && m._reader.cancel(), {
|
|
3999
|
+
status: d.status,
|
|
4000
|
+
statusText: d.statusText,
|
|
4001
|
+
headers: d.headers,
|
|
3998
4002
|
body: {
|
|
3999
4003
|
getReader: function() {
|
|
4000
4004
|
return v;
|
|
@@ -4011,35 +4015,35 @@ var Kt = { exports: {} };
|
|
|
4011
4015
|
};
|
|
4012
4016
|
};
|
|
4013
4017
|
}
|
|
4014
|
-
function
|
|
4018
|
+
function z() {
|
|
4015
4019
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
4016
4020
|
}
|
|
4017
|
-
|
|
4018
|
-
function h(
|
|
4019
|
-
if (
|
|
4020
|
-
return
|
|
4021
|
-
if (
|
|
4022
|
-
return
|
|
4023
|
-
if (
|
|
4024
|
-
return
|
|
4021
|
+
z.prototype.decode = function(a) {
|
|
4022
|
+
function h(O, L, S) {
|
|
4023
|
+
if (S === 1)
|
|
4024
|
+
return O >= 128 >> L && O << L <= 2047;
|
|
4025
|
+
if (S === 2)
|
|
4026
|
+
return O >= 2048 >> L && O << L <= 55295 || O >= 57344 >> L && O << L <= 65535;
|
|
4027
|
+
if (S === 3)
|
|
4028
|
+
return O >= 65536 >> L && O << L <= 1114111;
|
|
4025
4029
|
throw new Error();
|
|
4026
4030
|
}
|
|
4027
|
-
function
|
|
4028
|
-
if (
|
|
4029
|
-
return
|
|
4030
|
-
if (
|
|
4031
|
-
return
|
|
4032
|
-
if (
|
|
4031
|
+
function m(O, L) {
|
|
4032
|
+
if (O === 6 * 1)
|
|
4033
|
+
return L >> 6 > 15 ? 3 : L > 31 ? 2 : 1;
|
|
4034
|
+
if (O === 6 * 2)
|
|
4035
|
+
return L > 15 ? 3 : 2;
|
|
4036
|
+
if (O === 6 * 3)
|
|
4033
4037
|
return 3;
|
|
4034
4038
|
throw new Error();
|
|
4035
4039
|
}
|
|
4036
|
-
for (var
|
|
4037
|
-
var
|
|
4038
|
-
|
|
4040
|
+
for (var d = 65533, v = "", p = this.bitsNeeded, _ = this.codePoint, N = 0; N < a.length; N += 1) {
|
|
4041
|
+
var A = a[N];
|
|
4042
|
+
p !== 0 && (A < 128 || A > 191 || !h(_ << 6 | A & 63, p - 6, m(p, _))) && (p = 0, _ = d, v += String.fromCharCode(_)), p === 0 ? (A >= 0 && A <= 127 ? (p = 0, _ = A) : A >= 192 && A <= 223 ? (p = 6 * 1, _ = A & 31) : A >= 224 && A <= 239 ? (p = 6 * 2, _ = A & 15) : A >= 240 && A <= 247 ? (p = 6 * 3, _ = A & 7) : (p = 0, _ = d), p !== 0 && !h(_, p, m(p, _)) && (p = 0, _ = d)) : (p -= 6, _ = _ << 6 | A & 63), p === 0 && (_ <= 65535 ? v += String.fromCharCode(_) : (v += String.fromCharCode(55296 + (_ - 65535 - 1 >> 10)), v += String.fromCharCode(56320 + (_ - 65535 - 1 & 1023))));
|
|
4039
4043
|
}
|
|
4040
|
-
return this.bitsNeeded =
|
|
4044
|
+
return this.bitsNeeded = p, this.codePoint = _, v;
|
|
4041
4045
|
};
|
|
4042
|
-
var
|
|
4046
|
+
var G = function() {
|
|
4043
4047
|
try {
|
|
4044
4048
|
return new x().decode(new T().encode("test"), { stream: !0 }) === "test";
|
|
4045
4049
|
} catch (a) {
|
|
@@ -4047,83 +4051,83 @@ var Kt = { exports: {} };
|
|
|
4047
4051
|
}
|
|
4048
4052
|
return !1;
|
|
4049
4053
|
};
|
|
4050
|
-
(x == null || T == null || !
|
|
4054
|
+
(x == null || T == null || !G()) && (x = z);
|
|
4051
4055
|
var B = function() {
|
|
4052
4056
|
};
|
|
4053
|
-
function
|
|
4057
|
+
function w(a) {
|
|
4054
4058
|
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = B, this.onload = B, this.onerror = B, this.onreadystatechange = B, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = B;
|
|
4055
4059
|
}
|
|
4056
|
-
|
|
4060
|
+
w.prototype.open = function(a, h) {
|
|
4057
4061
|
this._abort(!0);
|
|
4058
|
-
var
|
|
4059
|
-
this._abort = function(
|
|
4060
|
-
|
|
4062
|
+
var m = this, d = this._xhr, v = 1, p = 0;
|
|
4063
|
+
this._abort = function(S) {
|
|
4064
|
+
m._sendTimeout !== 0 && (i(m._sendTimeout), m._sendTimeout = 0), (v === 1 || v === 2 || v === 3) && (v = 4, d.onload = B, d.onerror = B, d.onabort = B, d.onprogress = B, d.onreadystatechange = B, d.abort(), p !== 0 && (i(p), p = 0), S || (m.readyState = 4, m.onabort(null), m.onreadystatechange())), v = 0;
|
|
4061
4065
|
};
|
|
4062
|
-
var
|
|
4066
|
+
var _ = function() {
|
|
4063
4067
|
if (v === 1) {
|
|
4064
|
-
var
|
|
4065
|
-
if ("contentType" in
|
|
4066
|
-
|
|
4068
|
+
var S = 0, F = "", ge = void 0;
|
|
4069
|
+
if ("contentType" in d)
|
|
4070
|
+
S = 200, F = "OK", ge = d.contentType;
|
|
4067
4071
|
else
|
|
4068
4072
|
try {
|
|
4069
|
-
|
|
4070
|
-
} catch (
|
|
4071
|
-
|
|
4073
|
+
S = d.status, F = d.statusText, ge = d.getResponseHeader("Content-Type");
|
|
4074
|
+
} catch (Je) {
|
|
4075
|
+
S = 0, F = "", ge = void 0;
|
|
4072
4076
|
}
|
|
4073
|
-
|
|
4077
|
+
S !== 0 && (v = 2, m.readyState = 2, m.status = S, m.statusText = F, m._contentType = ge, m.onreadystatechange());
|
|
4074
4078
|
}
|
|
4075
|
-
},
|
|
4076
|
-
if (
|
|
4079
|
+
}, N = function() {
|
|
4080
|
+
if (_(), v === 2 || v === 3) {
|
|
4077
4081
|
v = 3;
|
|
4078
|
-
var
|
|
4082
|
+
var S = "";
|
|
4079
4083
|
try {
|
|
4080
|
-
|
|
4081
|
-
} catch (
|
|
4084
|
+
S = d.responseText;
|
|
4085
|
+
} catch (F) {
|
|
4082
4086
|
}
|
|
4083
|
-
|
|
4087
|
+
m.readyState = 3, m.responseText = S, m.onprogress();
|
|
4084
4088
|
}
|
|
4085
|
-
},
|
|
4086
|
-
if ((
|
|
4089
|
+
}, A = function(S, F) {
|
|
4090
|
+
if ((F == null || F.preventDefault == null) && (F = {
|
|
4087
4091
|
preventDefault: B
|
|
4088
|
-
}),
|
|
4089
|
-
if (v = 4,
|
|
4090
|
-
|
|
4091
|
-
else if (
|
|
4092
|
-
|
|
4093
|
-
else if (
|
|
4094
|
-
|
|
4092
|
+
}), N(), v === 1 || v === 2 || v === 3) {
|
|
4093
|
+
if (v = 4, p !== 0 && (i(p), p = 0), m.readyState = 4, S === "load")
|
|
4094
|
+
m.onload(F);
|
|
4095
|
+
else if (S === "error")
|
|
4096
|
+
m.onerror(F);
|
|
4097
|
+
else if (S === "abort")
|
|
4098
|
+
m.onabort(F);
|
|
4095
4099
|
else
|
|
4096
4100
|
throw new TypeError();
|
|
4097
|
-
|
|
4101
|
+
m.onreadystatechange();
|
|
4098
4102
|
}
|
|
4099
|
-
},
|
|
4100
|
-
|
|
4101
|
-
},
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
}, 500),
|
|
4103
|
+
}, O = function(S) {
|
|
4104
|
+
d != null && (d.readyState === 4 ? (!("onload" in d) || !("onerror" in d) || !("onabort" in d)) && A(d.responseText === "" ? "error" : "load", S) : d.readyState === 3 ? "onprogress" in d || N() : d.readyState === 2 && _());
|
|
4105
|
+
}, L = function() {
|
|
4106
|
+
p = r(function() {
|
|
4107
|
+
L();
|
|
4108
|
+
}, 500), d.readyState === 3 && N();
|
|
4105
4109
|
};
|
|
4106
|
-
"onload" in
|
|
4107
|
-
|
|
4108
|
-
}), "onerror" in
|
|
4109
|
-
|
|
4110
|
-
}), "onabort" in
|
|
4111
|
-
|
|
4112
|
-
}), "onprogress" in
|
|
4113
|
-
|
|
4114
|
-
}), ("contentType" in
|
|
4115
|
-
|
|
4110
|
+
"onload" in d && (d.onload = function(S) {
|
|
4111
|
+
A("load", S);
|
|
4112
|
+
}), "onerror" in d && (d.onerror = function(S) {
|
|
4113
|
+
A("error", S);
|
|
4114
|
+
}), "onabort" in d && (d.onabort = function(S) {
|
|
4115
|
+
A("abort", S);
|
|
4116
|
+
}), "onprogress" in d && (d.onprogress = N), "onreadystatechange" in d && (d.onreadystatechange = function(S) {
|
|
4117
|
+
O(S);
|
|
4118
|
+
}), ("contentType" in d || !("ontimeout" in o.prototype)) && (h += (h.indexOf("?") === -1 ? "?" : "&") + "padding=true"), d.open(a, h, !0), "readyState" in d && (p = r(function() {
|
|
4119
|
+
L();
|
|
4116
4120
|
}, 0));
|
|
4117
|
-
},
|
|
4121
|
+
}, w.prototype.abort = function() {
|
|
4118
4122
|
this._abort(!1);
|
|
4119
|
-
},
|
|
4123
|
+
}, w.prototype.getResponseHeader = function(a) {
|
|
4120
4124
|
return this._contentType;
|
|
4121
|
-
},
|
|
4122
|
-
var
|
|
4123
|
-
"setRequestHeader" in
|
|
4124
|
-
},
|
|
4125
|
+
}, w.prototype.setRequestHeader = function(a, h) {
|
|
4126
|
+
var m = this._xhr;
|
|
4127
|
+
"setRequestHeader" in m && m.setRequestHeader(a, h);
|
|
4128
|
+
}, w.prototype.getAllResponseHeaders = function() {
|
|
4125
4129
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4126
|
-
},
|
|
4130
|
+
}, w.prototype.send = function() {
|
|
4127
4131
|
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && l != null && l.readyState != null && l.readyState !== "complete") {
|
|
4128
4132
|
var a = this;
|
|
4129
4133
|
a._sendTimeout = r(function() {
|
|
@@ -4135,283 +4139,283 @@ var Kt = { exports: {} };
|
|
|
4135
4139
|
"withCredentials" in h && (h.withCredentials = this.withCredentials);
|
|
4136
4140
|
try {
|
|
4137
4141
|
h.send(void 0);
|
|
4138
|
-
} catch (
|
|
4139
|
-
throw
|
|
4142
|
+
} catch (m) {
|
|
4143
|
+
throw m;
|
|
4140
4144
|
}
|
|
4141
4145
|
};
|
|
4142
|
-
function
|
|
4146
|
+
function I(a) {
|
|
4143
4147
|
return a.replace(/[A-Z]/g, function(h) {
|
|
4144
4148
|
return String.fromCharCode(h.charCodeAt(0) + 32);
|
|
4145
4149
|
});
|
|
4146
4150
|
}
|
|
4147
|
-
function
|
|
4148
|
-
for (var h = /* @__PURE__ */ Object.create(null),
|
|
4149
|
-
`),
|
|
4150
|
-
var v =
|
|
4151
|
-
h[
|
|
4151
|
+
function R(a) {
|
|
4152
|
+
for (var h = /* @__PURE__ */ Object.create(null), m = a.split(`\r
|
|
4153
|
+
`), d = 0; d < m.length; d += 1) {
|
|
4154
|
+
var v = m[d], p = v.split(": "), _ = p.shift(), N = p.join(": ");
|
|
4155
|
+
h[I(_)] = N;
|
|
4152
4156
|
}
|
|
4153
4157
|
this._map = h;
|
|
4154
4158
|
}
|
|
4155
|
-
|
|
4156
|
-
return this._map[
|
|
4159
|
+
R.prototype.get = function(a) {
|
|
4160
|
+
return this._map[I(a)];
|
|
4157
4161
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4158
|
-
function
|
|
4162
|
+
function K() {
|
|
4159
4163
|
}
|
|
4160
|
-
|
|
4164
|
+
K.prototype.open = function(a, h, m, d, v, p, _) {
|
|
4161
4165
|
a.open("GET", v);
|
|
4162
|
-
var
|
|
4166
|
+
var N = 0;
|
|
4163
4167
|
a.onprogress = function() {
|
|
4164
|
-
var
|
|
4165
|
-
|
|
4166
|
-
}, a.onerror = function(
|
|
4167
|
-
|
|
4168
|
+
var O = a.responseText, L = O.slice(N);
|
|
4169
|
+
N += L.length, m(L);
|
|
4170
|
+
}, a.onerror = function(O) {
|
|
4171
|
+
O.preventDefault(), d(new Error("NetworkError"));
|
|
4168
4172
|
}, a.onload = function() {
|
|
4169
|
-
|
|
4173
|
+
d(null);
|
|
4170
4174
|
}, a.onabort = function() {
|
|
4171
|
-
|
|
4175
|
+
d(null);
|
|
4172
4176
|
}, a.onreadystatechange = function() {
|
|
4173
4177
|
if (a.readyState === o.HEADERS_RECEIVED) {
|
|
4174
|
-
var
|
|
4175
|
-
h(
|
|
4178
|
+
var O = a.status, L = a.statusText, S = a.getResponseHeader("Content-Type"), F = a.getAllResponseHeaders();
|
|
4179
|
+
h(O, L, S, new R(F));
|
|
4176
4180
|
}
|
|
4177
|
-
}, a.withCredentials =
|
|
4178
|
-
for (var
|
|
4179
|
-
Object.prototype.hasOwnProperty.call(
|
|
4181
|
+
}, a.withCredentials = p;
|
|
4182
|
+
for (var A in _)
|
|
4183
|
+
Object.prototype.hasOwnProperty.call(_, A) && a.setRequestHeader(A, _[A]);
|
|
4180
4184
|
return a.send(), a;
|
|
4181
4185
|
};
|
|
4182
|
-
function
|
|
4186
|
+
function de(a) {
|
|
4183
4187
|
this._headers = a;
|
|
4184
4188
|
}
|
|
4185
|
-
|
|
4189
|
+
de.prototype.get = function(a) {
|
|
4186
4190
|
return this._headers.get(a);
|
|
4187
4191
|
};
|
|
4188
|
-
function
|
|
4192
|
+
function pe() {
|
|
4189
4193
|
}
|
|
4190
|
-
|
|
4191
|
-
var
|
|
4194
|
+
pe.prototype.open = function(a, h, m, d, v, p, _) {
|
|
4195
|
+
var N = null, A = new P(), O = A.signal, L = new x();
|
|
4192
4196
|
return g(v, {
|
|
4193
|
-
headers:
|
|
4194
|
-
credentials:
|
|
4195
|
-
signal:
|
|
4197
|
+
headers: _,
|
|
4198
|
+
credentials: p ? "include" : "same-origin",
|
|
4199
|
+
signal: O,
|
|
4196
4200
|
cache: "no-store"
|
|
4197
|
-
}).then(function(
|
|
4198
|
-
return
|
|
4199
|
-
var
|
|
4200
|
-
|
|
4201
|
-
if (
|
|
4202
|
-
|
|
4201
|
+
}).then(function(S) {
|
|
4202
|
+
return N = S.body.getReader(), h(S.status, S.statusText, S.headers.get("Content-Type"), new de(S.headers)), new f(function(F, ge) {
|
|
4203
|
+
var Je = function() {
|
|
4204
|
+
N.read().then(function(ne) {
|
|
4205
|
+
if (ne.done)
|
|
4206
|
+
F(void 0);
|
|
4203
4207
|
else {
|
|
4204
|
-
var
|
|
4205
|
-
|
|
4208
|
+
var q = L.decode(ne.value, { stream: !0 });
|
|
4209
|
+
m(q), Je();
|
|
4206
4210
|
}
|
|
4207
|
-
}).catch(function(
|
|
4208
|
-
ge(
|
|
4211
|
+
}).catch(function(ne) {
|
|
4212
|
+
ge(ne);
|
|
4209
4213
|
});
|
|
4210
4214
|
};
|
|
4211
|
-
|
|
4215
|
+
Je();
|
|
4212
4216
|
});
|
|
4213
|
-
}).catch(function(
|
|
4214
|
-
if (
|
|
4215
|
-
return
|
|
4216
|
-
}).then(function(
|
|
4217
|
-
|
|
4217
|
+
}).catch(function(S) {
|
|
4218
|
+
if (S.name !== "AbortError")
|
|
4219
|
+
return S;
|
|
4220
|
+
}).then(function(S) {
|
|
4221
|
+
d(S);
|
|
4218
4222
|
}), {
|
|
4219
4223
|
abort: function() {
|
|
4220
|
-
|
|
4224
|
+
N != null && N.cancel(), A.abort();
|
|
4221
4225
|
}
|
|
4222
4226
|
};
|
|
4223
4227
|
};
|
|
4224
|
-
function
|
|
4228
|
+
function ee() {
|
|
4225
4229
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4226
4230
|
}
|
|
4227
|
-
function
|
|
4231
|
+
function _e(a) {
|
|
4228
4232
|
r(function() {
|
|
4229
4233
|
throw a;
|
|
4230
4234
|
}, 0);
|
|
4231
4235
|
}
|
|
4232
|
-
|
|
4236
|
+
ee.prototype.dispatchEvent = function(a) {
|
|
4233
4237
|
a.target = this;
|
|
4234
4238
|
var h = this._listeners[a.type];
|
|
4235
4239
|
if (h != null)
|
|
4236
|
-
for (var
|
|
4237
|
-
var v = h[
|
|
4240
|
+
for (var m = h.length, d = 0; d < m; d += 1) {
|
|
4241
|
+
var v = h[d];
|
|
4238
4242
|
try {
|
|
4239
4243
|
typeof v.handleEvent == "function" ? v.handleEvent(a) : v.call(this, a);
|
|
4240
|
-
} catch (
|
|
4241
|
-
|
|
4244
|
+
} catch (p) {
|
|
4245
|
+
_e(p);
|
|
4242
4246
|
}
|
|
4243
4247
|
}
|
|
4244
|
-
},
|
|
4248
|
+
}, ee.prototype.addEventListener = function(a, h) {
|
|
4245
4249
|
a = String(a);
|
|
4246
|
-
var
|
|
4247
|
-
|
|
4248
|
-
for (var v = !1,
|
|
4249
|
-
|
|
4250
|
-
v ||
|
|
4251
|
-
},
|
|
4250
|
+
var m = this._listeners, d = m[a];
|
|
4251
|
+
d == null && (d = [], m[a] = d);
|
|
4252
|
+
for (var v = !1, p = 0; p < d.length; p += 1)
|
|
4253
|
+
d[p] === h && (v = !0);
|
|
4254
|
+
v || d.push(h);
|
|
4255
|
+
}, ee.prototype.removeEventListener = function(a, h) {
|
|
4252
4256
|
a = String(a);
|
|
4253
|
-
var
|
|
4254
|
-
if (
|
|
4255
|
-
for (var v = [],
|
|
4256
|
-
|
|
4257
|
-
v.length === 0 ? delete
|
|
4257
|
+
var m = this._listeners, d = m[a];
|
|
4258
|
+
if (d != null) {
|
|
4259
|
+
for (var v = [], p = 0; p < d.length; p += 1)
|
|
4260
|
+
d[p] !== h && v.push(d[p]);
|
|
4261
|
+
v.length === 0 ? delete m[a] : m[a] = v;
|
|
4258
4262
|
}
|
|
4259
4263
|
};
|
|
4260
|
-
function
|
|
4264
|
+
function E(a) {
|
|
4261
4265
|
this.type = a, this.target = void 0;
|
|
4262
4266
|
}
|
|
4263
|
-
function
|
|
4264
|
-
|
|
4267
|
+
function Te(a, h) {
|
|
4268
|
+
E.call(this, a), this.data = h.data, this.lastEventId = h.lastEventId;
|
|
4265
4269
|
}
|
|
4266
|
-
|
|
4267
|
-
function
|
|
4268
|
-
|
|
4270
|
+
Te.prototype = Object.create(E.prototype);
|
|
4271
|
+
function We(a, h) {
|
|
4272
|
+
E.call(this, a), this.status = h.status, this.statusText = h.statusText, this.headers = h.headers;
|
|
4269
4273
|
}
|
|
4270
|
-
|
|
4271
|
-
function
|
|
4272
|
-
|
|
4274
|
+
We.prototype = Object.create(E.prototype);
|
|
4275
|
+
function ot(a, h) {
|
|
4276
|
+
E.call(this, a), this.error = h.error;
|
|
4273
4277
|
}
|
|
4274
|
-
|
|
4275
|
-
var
|
|
4276
|
-
var
|
|
4277
|
-
return
|
|
4278
|
-
},
|
|
4279
|
-
return Math.min(Math.max(a,
|
|
4280
|
-
},
|
|
4278
|
+
ot.prototype = Object.create(E.prototype);
|
|
4279
|
+
var Ze = -1, le = 0, Be = 1, me = 2, Le = -1, he = 0, Ae = 1, qe = 2, Tt = 3, at = /^text\/event\-stream(;.*)?$/i, Bt = 1e3, St = 18e6, Qe = function(a, h) {
|
|
4280
|
+
var m = a == null ? h : parseInt(a, 10);
|
|
4281
|
+
return m !== m && (m = h), Re(m);
|
|
4282
|
+
}, Re = function(a) {
|
|
4283
|
+
return Math.min(Math.max(a, Bt), St);
|
|
4284
|
+
}, Se = function(a, h, m) {
|
|
4281
4285
|
try {
|
|
4282
|
-
typeof h == "function" && h.call(a,
|
|
4283
|
-
} catch (
|
|
4284
|
-
|
|
4286
|
+
typeof h == "function" && h.call(a, m);
|
|
4287
|
+
} catch (d) {
|
|
4288
|
+
_e(d);
|
|
4285
4289
|
}
|
|
4286
4290
|
};
|
|
4287
|
-
function
|
|
4288
|
-
|
|
4291
|
+
function te(a, h) {
|
|
4292
|
+
ee.call(this), h = h || {}, 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, Ct(this, a, h);
|
|
4289
4293
|
}
|
|
4290
|
-
function
|
|
4294
|
+
function wt() {
|
|
4291
4295
|
return o != null && "withCredentials" in o.prototype || u == null ? new o() : new u();
|
|
4292
4296
|
}
|
|
4293
|
-
var
|
|
4294
|
-
function
|
|
4297
|
+
var At = g != null && y != null && "body" in y.prototype;
|
|
4298
|
+
function Ct(a, h, m) {
|
|
4295
4299
|
h = String(h);
|
|
4296
|
-
var
|
|
4297
|
-
if (
|
|
4298
|
-
if (
|
|
4299
|
-
|
|
4300
|
-
var
|
|
4301
|
-
status:
|
|
4302
|
-
statusText:
|
|
4303
|
-
headers:
|
|
4300
|
+
var d = !!m.withCredentials, v = m.lastEventIdQueryParameterName || "lastEventId", p = Re(1e3), _ = Qe(m.heartbeatTimeout, 45e3), N = "", A = p, O = !1, L = 0, S = m.headers || {}, F = m.Transport, ge = At && F == null ? void 0 : new w(F != null ? new F() : wt()), Je = F != null && typeof F != "string" ? new F() : ge == null ? new pe() : new K(), ne = void 0, q = 0, se = Ze, Ne = "", st = "", be = "", ut = "", Q = he, Ht = 0, Ce = 0, ar = function(V, k, re, ie) {
|
|
4301
|
+
if (se === le)
|
|
4302
|
+
if (V === 200 && re != null && at.test(re)) {
|
|
4303
|
+
se = Be, O = Date.now(), A = p, a.readyState = Be;
|
|
4304
|
+
var J = new We("open", {
|
|
4305
|
+
status: V,
|
|
4306
|
+
statusText: k,
|
|
4307
|
+
headers: ie
|
|
4304
4308
|
});
|
|
4305
|
-
a.dispatchEvent(
|
|
4309
|
+
a.dispatchEvent(J), Se(a, a.onopen, J);
|
|
4306
4310
|
} else {
|
|
4307
|
-
var
|
|
4308
|
-
|
|
4309
|
-
var
|
|
4310
|
-
status:
|
|
4311
|
-
statusText:
|
|
4312
|
-
headers:
|
|
4311
|
+
var W = "";
|
|
4312
|
+
V !== 200 ? (k && (k = k.replace(/\s+/g, " ")), W = "EventSource's response has a status " + V + " " + k + " that is not 200. Aborting the connection.") : W = "EventSource's response has a Content-Type specifying an unsupported type: " + (re == null ? "-" : re.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
|
|
4313
|
+
var J = new We("error", {
|
|
4314
|
+
status: V,
|
|
4315
|
+
statusText: k,
|
|
4316
|
+
headers: ie
|
|
4313
4317
|
});
|
|
4314
|
-
a.dispatchEvent(
|
|
4318
|
+
a.dispatchEvent(J), Se(a, a.onerror, J), console.error(W);
|
|
4315
4319
|
}
|
|
4316
|
-
}, sr = function(
|
|
4317
|
-
if (
|
|
4318
|
-
for (var
|
|
4319
|
-
var
|
|
4320
|
-
(
|
|
4320
|
+
}, sr = function(V) {
|
|
4321
|
+
if (se === Be) {
|
|
4322
|
+
for (var k = -1, re = 0; re < V.length; re += 1) {
|
|
4323
|
+
var ie = V.charCodeAt(re);
|
|
4324
|
+
(ie === 10 || ie === 13) && (k = re);
|
|
4321
4325
|
}
|
|
4322
|
-
var
|
|
4323
|
-
ut = (
|
|
4324
|
-
for (var
|
|
4325
|
-
var
|
|
4326
|
-
if (
|
|
4327
|
-
|
|
4328
|
-
else if (
|
|
4329
|
-
if (
|
|
4330
|
-
|
|
4331
|
-
var ye =
|
|
4332
|
-
ye === "data" ? (
|
|
4333
|
-
`,
|
|
4334
|
-
|
|
4335
|
-
},
|
|
4326
|
+
var J = (k !== -1 ? ut : "") + V.slice(0, k + 1);
|
|
4327
|
+
ut = (k === -1 ? ut : "") + V.slice(k + 1), V !== "" && (O = Date.now(), L += V.length);
|
|
4328
|
+
for (var W = 0; W < J.length; W += 1) {
|
|
4329
|
+
var ie = J.charCodeAt(W);
|
|
4330
|
+
if (Q === Le && ie === 10)
|
|
4331
|
+
Q = he;
|
|
4332
|
+
else if (Q === Le && (Q = he), ie === 13 || ie === 10) {
|
|
4333
|
+
if (Q !== he) {
|
|
4334
|
+
Q === Ae && (Ce = W + 1);
|
|
4335
|
+
var ye = J.slice(Ht, Ce - 1), ve = J.slice(Ce + (Ce < W && J.charCodeAt(Ce) === 32 ? 1 : 0), W);
|
|
4336
|
+
ye === "data" ? (Ne += `
|
|
4337
|
+
`, Ne += ve) : ye === "id" ? st = ve : ye === "event" ? be = ve : ye === "retry" ? (p = Qe(ve, p), A = p) : ye === "heartbeatTimeout" && (_ = Qe(ve, _), q !== 0 && (i(q), q = r(function() {
|
|
4338
|
+
Ye();
|
|
4339
|
+
}, _)));
|
|
4336
4340
|
}
|
|
4337
|
-
if (
|
|
4338
|
-
if (
|
|
4339
|
-
|
|
4340
|
-
var
|
|
4341
|
-
data:
|
|
4341
|
+
if (Q === he) {
|
|
4342
|
+
if (Ne !== "") {
|
|
4343
|
+
N = st, be === "" && (be = "message");
|
|
4344
|
+
var Me = new Te(be, {
|
|
4345
|
+
data: Ne.slice(1),
|
|
4342
4346
|
lastEventId: st
|
|
4343
4347
|
});
|
|
4344
|
-
if (a.dispatchEvent(
|
|
4348
|
+
if (a.dispatchEvent(Me), be === "open" ? Se(a, a.onopen, Me) : be === "message" ? Se(a, a.onmessage, Me) : be === "error" && Se(a, a.onerror, Me), se === me)
|
|
4345
4349
|
return;
|
|
4346
4350
|
}
|
|
4347
|
-
|
|
4351
|
+
Ne = "", be = "";
|
|
4348
4352
|
}
|
|
4349
|
-
|
|
4353
|
+
Q = ie === 13 ? Le : he;
|
|
4350
4354
|
} else
|
|
4351
|
-
|
|
4355
|
+
Q === he && (Ht = W, Q = Ae), Q === Ae ? ie === 58 && (Ce = W + 1, Q = qe) : Q === qe && (Q = Tt);
|
|
4352
4356
|
}
|
|
4353
4357
|
}
|
|
4354
|
-
}, an = function(
|
|
4355
|
-
if (
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
},
|
|
4359
|
-
var
|
|
4360
|
-
a.dispatchEvent(
|
|
4358
|
+
}, an = function(V) {
|
|
4359
|
+
if (se === Be || se === le) {
|
|
4360
|
+
se = Ze, q !== 0 && (i(q), q = 0), q = r(function() {
|
|
4361
|
+
Ye();
|
|
4362
|
+
}, A), A = Re(Math.min(p * 16, A * 2)), a.readyState = le;
|
|
4363
|
+
var k = new ot("error", { error: V });
|
|
4364
|
+
a.dispatchEvent(k), Se(a, a.onerror, k), V != null && console.error(V);
|
|
4361
4365
|
}
|
|
4362
|
-
},
|
|
4363
|
-
|
|
4364
|
-
},
|
|
4365
|
-
if (
|
|
4366
|
-
if (!
|
|
4367
|
-
an(new Error("No activity within " +
|
|
4366
|
+
}, Ot = function() {
|
|
4367
|
+
se = me, ne != null && (ne.abort(), ne = void 0), q !== 0 && (i(q), q = 0), a.readyState = me;
|
|
4368
|
+
}, Ye = function() {
|
|
4369
|
+
if (q = 0, se !== Ze) {
|
|
4370
|
+
if (!O && ne != null)
|
|
4371
|
+
an(new Error("No activity within " + _ + " milliseconds. " + (se === le ? "No response received." : L + " chars received.") + " Reconnecting.")), ne != null && (ne.abort(), ne = void 0);
|
|
4368
4372
|
else {
|
|
4369
|
-
var
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
},
|
|
4373
|
+
var V = Math.max((O || Date.now()) + _ - Date.now(), 1);
|
|
4374
|
+
O = !1, q = r(function() {
|
|
4375
|
+
Ye();
|
|
4376
|
+
}, V);
|
|
4373
4377
|
}
|
|
4374
4378
|
return;
|
|
4375
4379
|
}
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
},
|
|
4379
|
-
var
|
|
4380
|
-
if (h.slice(0, 5) !== "data:" && h.slice(0, 5) !== "blob:" &&
|
|
4381
|
-
var
|
|
4382
|
-
|
|
4383
|
-
return
|
|
4384
|
-
}),
|
|
4380
|
+
O = !1, L = 0, q = r(function() {
|
|
4381
|
+
Ye();
|
|
4382
|
+
}, _), se = le, Ne = "", be = "", st = N, ut = "", Ht = 0, Ce = 0, Q = he;
|
|
4383
|
+
var k = h;
|
|
4384
|
+
if (h.slice(0, 5) !== "data:" && h.slice(0, 5) !== "blob:" && N !== "") {
|
|
4385
|
+
var re = h.indexOf("?");
|
|
4386
|
+
k = re === -1 ? h : h.slice(0, re + 1) + h.slice(re + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ve, Me) {
|
|
4387
|
+
return Me === v ? "" : ve;
|
|
4388
|
+
}), k += (h.indexOf("?") === -1 ? "?" : "&") + v + "=" + encodeURIComponent(N);
|
|
4385
4389
|
}
|
|
4386
|
-
var
|
|
4387
|
-
|
|
4388
|
-
var
|
|
4389
|
-
if (
|
|
4390
|
-
for (var ye in
|
|
4391
|
-
Object.prototype.hasOwnProperty.call(
|
|
4390
|
+
var ie = a.withCredentials, J = {};
|
|
4391
|
+
J.Accept = "text/event-stream";
|
|
4392
|
+
var W = a.headers;
|
|
4393
|
+
if (W != null)
|
|
4394
|
+
for (var ye in W)
|
|
4395
|
+
Object.prototype.hasOwnProperty.call(W, ye) && (J[ye] = W[ye]);
|
|
4392
4396
|
try {
|
|
4393
|
-
|
|
4397
|
+
ne = Je.open(ge, ar, sr, an, k, ie, J);
|
|
4394
4398
|
} catch (ve) {
|
|
4395
|
-
throw
|
|
4399
|
+
throw Ot(), ve;
|
|
4396
4400
|
}
|
|
4397
4401
|
};
|
|
4398
|
-
a.url = h, a.readyState =
|
|
4402
|
+
a.url = h, a.readyState = le, a.withCredentials = d, a.headers = S, a._close = Ot, Ye();
|
|
4399
4403
|
}
|
|
4400
|
-
|
|
4404
|
+
te.prototype = Object.create(ee.prototype), te.prototype.CONNECTING = le, te.prototype.OPEN = Be, te.prototype.CLOSED = me, te.prototype.close = function() {
|
|
4401
4405
|
this._close();
|
|
4402
|
-
},
|
|
4403
|
-
var
|
|
4404
|
-
o != null && (
|
|
4406
|
+
}, te.CONNECTING = le, te.OPEN = Be, te.CLOSED = me, te.prototype.withCredentials = void 0;
|
|
4407
|
+
var b = c;
|
|
4408
|
+
o != null && (c == null || !("withCredentials" in c.prototype)) && (b = te), function(a) {
|
|
4405
4409
|
{
|
|
4406
4410
|
var h = a(t);
|
|
4407
4411
|
h !== void 0 && (e.exports = h);
|
|
4408
4412
|
}
|
|
4409
4413
|
}(function(a) {
|
|
4410
|
-
a.EventSourcePolyfill =
|
|
4414
|
+
a.EventSourcePolyfill = te, a.NativeEventSource = c, a.EventSource = b;
|
|
4411
4415
|
});
|
|
4412
4416
|
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : Gr : globalThis);
|
|
4413
|
-
})(
|
|
4414
|
-
var
|
|
4417
|
+
})(tn, tn.exports);
|
|
4418
|
+
var Oo = tn.exports;
|
|
4415
4419
|
function Lo(e) {
|
|
4416
4420
|
mr(e, "svelte-gv6dm2", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.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;background:transparent;border:none;font:inherit;color:inherit}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));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, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.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, #07072A))}.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, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
|
|
4417
4421
|
}
|
|
@@ -4423,7 +4427,7 @@ function wn(e, t, n) {
|
|
|
4423
4427
|
const r = e.slice();
|
|
4424
4428
|
return r[52] = t[n], r;
|
|
4425
4429
|
}
|
|
4426
|
-
function
|
|
4430
|
+
function Ro(e) {
|
|
4427
4431
|
let t, n = (
|
|
4428
4432
|
/*balances*/
|
|
4429
4433
|
(e[3].Total ? (
|
|
@@ -4433,24 +4437,24 @@ function Oo(e) {
|
|
|
4433
4437
|
e[3].Total[0].amount
|
|
4434
4438
|
)
|
|
4435
4439
|
) : "0") + ""
|
|
4436
|
-
), r, i, o, u, s,
|
|
4440
|
+
), r, i, o, u, s, c, l, f = (
|
|
4437
4441
|
/*isModalDisplayed*/
|
|
4438
4442
|
e[2] && An(e)
|
|
4439
4443
|
);
|
|
4440
4444
|
return {
|
|
4441
4445
|
c() {
|
|
4442
|
-
t =
|
|
4446
|
+
t = $("button"), r = Ee(n), i = xe(), o = $("span"), o.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', u = xe(), f && f.c(), s = yr(), Z(t, "class", "BalanceValue");
|
|
4443
4447
|
},
|
|
4444
|
-
m(g,
|
|
4445
|
-
fe(g, t,
|
|
4448
|
+
m(g, y) {
|
|
4449
|
+
fe(g, t, y), M(t, r), M(t, i), M(t, o), fe(g, u, y), f && f.m(g, y), fe(g, s, y), c || (l = dt(
|
|
4446
4450
|
t,
|
|
4447
4451
|
"click",
|
|
4448
4452
|
/*click_handler*/
|
|
4449
4453
|
e[23]
|
|
4450
|
-
),
|
|
4454
|
+
), c = !0);
|
|
4451
4455
|
},
|
|
4452
|
-
p(g,
|
|
4453
|
-
|
|
4456
|
+
p(g, y) {
|
|
4457
|
+
y[0] & /*balances*/
|
|
4454
4458
|
8 && n !== (n = /*balances*/
|
|
4455
4459
|
(g[3].Total ? (
|
|
4456
4460
|
/*formatBalance*/
|
|
@@ -4458,22 +4462,22 @@ function Oo(e) {
|
|
|
4458
4462
|
/*balances*/
|
|
4459
4463
|
g[3].Total[0].amount
|
|
4460
4464
|
)
|
|
4461
|
-
) : "0") + "") &&
|
|
4462
|
-
g[2] ?
|
|
4465
|
+
) : "0") + "") && He(r, n), /*isModalDisplayed*/
|
|
4466
|
+
g[2] ? f ? f.p(g, y) : (f = An(g), f.c(), f.m(s.parentNode, s)) : f && (f.d(1), f = null);
|
|
4463
4467
|
},
|
|
4464
4468
|
d(g) {
|
|
4465
|
-
g && (
|
|
4469
|
+
g && (ue(t), ue(u), ue(s)), f && f.d(g), c = !1, l();
|
|
4466
4470
|
}
|
|
4467
4471
|
};
|
|
4468
4472
|
}
|
|
4469
|
-
function
|
|
4473
|
+
function No(e) {
|
|
4470
4474
|
let t, n = (
|
|
4471
4475
|
/*$_*/
|
|
4472
4476
|
e[4]("Loading") + ""
|
|
4473
4477
|
), r;
|
|
4474
4478
|
return {
|
|
4475
4479
|
c() {
|
|
4476
|
-
t =
|
|
4480
|
+
t = $("p"), r = Ee(n);
|
|
4477
4481
|
},
|
|
4478
4482
|
m(i, o) {
|
|
4479
4483
|
fe(i, t, o), M(t, r);
|
|
@@ -4481,10 +4485,10 @@ function Ro(e) {
|
|
|
4481
4485
|
p(i, o) {
|
|
4482
4486
|
o[0] & /*$_*/
|
|
4483
4487
|
16 && n !== (n = /*$_*/
|
|
4484
|
-
i[4]("Loading") + "") &&
|
|
4488
|
+
i[4]("Loading") + "") && He(r, n);
|
|
4485
4489
|
},
|
|
4486
4490
|
d(i) {
|
|
4487
|
-
i &&
|
|
4491
|
+
i && ue(t);
|
|
4488
4492
|
}
|
|
4489
4493
|
};
|
|
4490
4494
|
}
|
|
@@ -4492,27 +4496,27 @@ function An(e) {
|
|
|
4492
4496
|
let t, n, r, i, o, u, s = (
|
|
4493
4497
|
/*$_*/
|
|
4494
4498
|
e[4]("Title") + ""
|
|
4495
|
-
),
|
|
4499
|
+
), c, l, f, g, y, x, T = (
|
|
4496
4500
|
/*$_*/
|
|
4497
4501
|
e[4]("DepositButton") + ""
|
|
4498
|
-
), P,
|
|
4502
|
+
), P, j, z, G = pt(Object.keys(
|
|
4499
4503
|
/*balances*/
|
|
4500
4504
|
e[3]
|
|
4501
4505
|
)), B = [];
|
|
4502
|
-
for (let
|
|
4503
|
-
B[
|
|
4506
|
+
for (let w = 0; w < G.length; w += 1)
|
|
4507
|
+
B[w] = Hn(Sn(e, G, w));
|
|
4504
4508
|
return {
|
|
4505
4509
|
c() {
|
|
4506
|
-
t =
|
|
4507
|
-
for (let
|
|
4508
|
-
B[
|
|
4509
|
-
g = xe(),
|
|
4510
|
+
t = $("div"), n = $("button"), r = xe(), i = $("div"), o = $("div"), u = $("p"), c = Ee(s), l = xe(), f = $("div");
|
|
4511
|
+
for (let w = 0; w < B.length; w += 1)
|
|
4512
|
+
B[w].c();
|
|
4513
|
+
g = xe(), y = $("div"), x = $("button"), P = Ee(T), Z(n, "class", "BalanceModalClose"), Z(u, "class", "BalanceModalTitle"), Z(o, "class", "BalanceModalHeader"), Z(f, "class", "BalanceModalBody"), Z(x, "class", "BalanceModalAction"), Z(y, "class", "BalanceModalFooter"), Z(i, "class", "BalanceModal"), Z(t, "class", "BalanceModalWrapper");
|
|
4510
4514
|
},
|
|
4511
|
-
m(
|
|
4512
|
-
fe(
|
|
4513
|
-
for (let
|
|
4514
|
-
B[
|
|
4515
|
-
M(i, g), M(i,
|
|
4515
|
+
m(w, I) {
|
|
4516
|
+
fe(w, t, I), M(t, n), M(t, r), M(t, i), M(i, o), M(o, u), M(u, c), M(i, l), M(i, f);
|
|
4517
|
+
for (let R = 0; R < B.length; R += 1)
|
|
4518
|
+
B[R] && B[R].m(f, null);
|
|
4519
|
+
M(i, g), M(i, y), M(y, x), M(x, P), j || (z = [
|
|
4516
4520
|
dt(
|
|
4517
4521
|
n,
|
|
4518
4522
|
"click",
|
|
@@ -4525,32 +4529,32 @@ function An(e) {
|
|
|
4525
4529
|
/*click_handler_2*/
|
|
4526
4530
|
e[25]
|
|
4527
4531
|
)
|
|
4528
|
-
],
|
|
4532
|
+
], j = !0);
|
|
4529
4533
|
},
|
|
4530
|
-
p(
|
|
4531
|
-
if (
|
|
4534
|
+
p(w, I) {
|
|
4535
|
+
if (I[0] & /*$_*/
|
|
4532
4536
|
16 && s !== (s = /*$_*/
|
|
4533
|
-
|
|
4537
|
+
w[4]("Title") + "") && He(c, s), I[0] & /*balances, formatBalance, $_*/
|
|
4534
4538
|
56) {
|
|
4535
|
-
|
|
4539
|
+
G = pt(Object.keys(
|
|
4536
4540
|
/*balances*/
|
|
4537
|
-
|
|
4541
|
+
w[3]
|
|
4538
4542
|
));
|
|
4539
|
-
let
|
|
4540
|
-
for (
|
|
4541
|
-
const
|
|
4542
|
-
B[
|
|
4543
|
+
let R;
|
|
4544
|
+
for (R = 0; R < G.length; R += 1) {
|
|
4545
|
+
const K = Sn(w, G, R);
|
|
4546
|
+
B[R] ? B[R].p(K, I) : (B[R] = Hn(K), B[R].c(), B[R].m(f, null));
|
|
4543
4547
|
}
|
|
4544
|
-
for (;
|
|
4545
|
-
B[
|
|
4546
|
-
B.length =
|
|
4548
|
+
for (; R < B.length; R += 1)
|
|
4549
|
+
B[R].d(1);
|
|
4550
|
+
B.length = G.length;
|
|
4547
4551
|
}
|
|
4548
|
-
|
|
4552
|
+
I[0] & /*$_*/
|
|
4549
4553
|
16 && T !== (T = /*$_*/
|
|
4550
|
-
|
|
4554
|
+
w[4]("DepositButton") + "") && He(P, T);
|
|
4551
4555
|
},
|
|
4552
|
-
d(
|
|
4553
|
-
|
|
4556
|
+
d(w) {
|
|
4557
|
+
w && ue(t), Mn(B, w), j = !1, ke(z);
|
|
4554
4558
|
}
|
|
4555
4559
|
};
|
|
4556
4560
|
}
|
|
@@ -4570,19 +4574,19 @@ function Cn(e) {
|
|
|
4570
4574
|
e[52].productType
|
|
4571
4575
|
)
|
|
4572
4576
|
) : "") + ""
|
|
4573
|
-
), s,
|
|
4577
|
+
), s, c, l, f, g = (
|
|
4574
4578
|
/*formatBalance*/
|
|
4575
4579
|
e[5](
|
|
4576
4580
|
/*b*/
|
|
4577
4581
|
e[52].amount
|
|
4578
4582
|
) + ""
|
|
4579
|
-
),
|
|
4583
|
+
), y;
|
|
4580
4584
|
return {
|
|
4581
4585
|
c() {
|
|
4582
|
-
t =
|
|
4586
|
+
t = $("div"), n = $("p"), i = Ee(r), o = xe(), s = Ee(u), c = xe(), l = $("p"), f = $("span"), y = Ee(g), Z(n, "class", "BalanceModalText"), Z(f, "class", "BalanceModalAmount"), Z(l, "class", "BalanceModalValue"), Z(t, "class", "BalanceModalRowLine");
|
|
4583
4587
|
},
|
|
4584
4588
|
m(x, T) {
|
|
4585
|
-
fe(x, t, T), M(t, n), M(n, i), M(n, o), M(n, s), M(t,
|
|
4589
|
+
fe(x, t, T), M(t, n), M(n, i), M(n, o), M(n, s), M(t, c), M(t, l), M(l, f), M(f, y);
|
|
4586
4590
|
},
|
|
4587
4591
|
p(x, T) {
|
|
4588
4592
|
T[0] & /*$_, balances*/
|
|
@@ -4590,7 +4594,7 @@ function Cn(e) {
|
|
|
4590
4594
|
x[4](
|
|
4591
4595
|
/*k*/
|
|
4592
4596
|
x[49]
|
|
4593
|
-
) + "") &&
|
|
4597
|
+
) + "") && He(i, r), T[0] & /*balances, $_*/
|
|
4594
4598
|
24 && u !== (u = /*b*/
|
|
4595
4599
|
(x[52].productType ? (
|
|
4596
4600
|
/*$_*/
|
|
@@ -4598,15 +4602,15 @@ function Cn(e) {
|
|
|
4598
4602
|
/*b*/
|
|
4599
4603
|
x[52].productType
|
|
4600
4604
|
)
|
|
4601
|
-
) : "") + "") &&
|
|
4605
|
+
) : "") + "") && He(s, u), T[0] & /*balances*/
|
|
4602
4606
|
8 && g !== (g = /*formatBalance*/
|
|
4603
4607
|
x[5](
|
|
4604
4608
|
/*b*/
|
|
4605
4609
|
x[52].amount
|
|
4606
|
-
) + "") &&
|
|
4610
|
+
) + "") && He(y, g);
|
|
4607
4611
|
},
|
|
4608
4612
|
d(x) {
|
|
4609
|
-
x &&
|
|
4613
|
+
x && ue(t);
|
|
4610
4614
|
}
|
|
4611
4615
|
};
|
|
4612
4616
|
}
|
|
@@ -4622,10 +4626,10 @@ function Hn(e) {
|
|
|
4622
4626
|
i[o] = Cn(wn(e, r, o));
|
|
4623
4627
|
return {
|
|
4624
4628
|
c() {
|
|
4625
|
-
t =
|
|
4629
|
+
t = $("div");
|
|
4626
4630
|
for (let o = 0; o < i.length; o += 1)
|
|
4627
4631
|
i[o].c();
|
|
4628
|
-
n = xe(),
|
|
4632
|
+
n = xe(), Z(t, "class", "BalanceModalRowBoth");
|
|
4629
4633
|
},
|
|
4630
4634
|
m(o, u) {
|
|
4631
4635
|
fe(o, t, u);
|
|
@@ -4645,8 +4649,8 @@ function Hn(e) {
|
|
|
4645
4649
|
);
|
|
4646
4650
|
let s;
|
|
4647
4651
|
for (s = 0; s < r.length; s += 1) {
|
|
4648
|
-
const
|
|
4649
|
-
i[s] ? i[s].p(
|
|
4652
|
+
const c = wn(o, r, s);
|
|
4653
|
+
i[s] ? i[s].p(c, u) : (i[s] = Cn(c), i[s].c(), i[s].m(t, n));
|
|
4650
4654
|
}
|
|
4651
4655
|
for (; s < i.length; s += 1)
|
|
4652
4656
|
i[s].d(1);
|
|
@@ -4654,15 +4658,15 @@ function Hn(e) {
|
|
|
4654
4658
|
}
|
|
4655
4659
|
},
|
|
4656
4660
|
d(o) {
|
|
4657
|
-
o &&
|
|
4661
|
+
o && ue(t), Mn(i, o);
|
|
4658
4662
|
}
|
|
4659
4663
|
};
|
|
4660
4664
|
}
|
|
4661
|
-
function
|
|
4665
|
+
function On(e) {
|
|
4662
4666
|
let t, n, r;
|
|
4663
4667
|
return {
|
|
4664
4668
|
c() {
|
|
4665
|
-
t =
|
|
4669
|
+
t = $("button"), Z(t, "class", "ShowBalanceModalOverlay");
|
|
4666
4670
|
},
|
|
4667
4671
|
m(i, o) {
|
|
4668
4672
|
fe(i, t, o), n || (r = dt(
|
|
@@ -4674,103 +4678,103 @@ function Ln(e) {
|
|
|
4674
4678
|
},
|
|
4675
4679
|
p: ae,
|
|
4676
4680
|
d(i) {
|
|
4677
|
-
i &&
|
|
4681
|
+
i && ue(t), n = !1, r();
|
|
4678
4682
|
}
|
|
4679
4683
|
};
|
|
4680
4684
|
}
|
|
4681
|
-
function
|
|
4685
|
+
function Mo(e) {
|
|
4682
4686
|
let t, n, r;
|
|
4683
|
-
function i(
|
|
4687
|
+
function i(c, l) {
|
|
4684
4688
|
return (
|
|
4685
4689
|
/*isLoading*/
|
|
4686
|
-
|
|
4690
|
+
c[1] ? No : Ro
|
|
4687
4691
|
);
|
|
4688
4692
|
}
|
|
4689
4693
|
let o = i(e), u = o(e), s = (
|
|
4690
4694
|
/*isModalDisplayed*/
|
|
4691
|
-
e[2] &&
|
|
4695
|
+
e[2] && On(e)
|
|
4692
4696
|
);
|
|
4693
4697
|
return {
|
|
4694
4698
|
c() {
|
|
4695
|
-
t =
|
|
4699
|
+
t = $("div"), n = $("div"), u.c(), r = xe(), s && s.c(), Z(n, "class", "ShowBalance");
|
|
4696
4700
|
},
|
|
4697
|
-
m(
|
|
4698
|
-
fe(
|
|
4701
|
+
m(c, l) {
|
|
4702
|
+
fe(c, t, l), M(t, n), u.m(n, null), M(t, r), s && s.m(t, null), e[27](t);
|
|
4699
4703
|
},
|
|
4700
|
-
p(
|
|
4701
|
-
o === (o = i(
|
|
4702
|
-
|
|
4704
|
+
p(c, l) {
|
|
4705
|
+
o === (o = i(c)) && u ? u.p(c, l) : (u.d(1), u = o(c), u && (u.c(), u.m(n, null))), /*isModalDisplayed*/
|
|
4706
|
+
c[2] ? s ? s.p(c, l) : (s = On(c), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4703
4707
|
},
|
|
4704
4708
|
i: ae,
|
|
4705
4709
|
o: ae,
|
|
4706
|
-
d(
|
|
4707
|
-
|
|
4710
|
+
d(c) {
|
|
4711
|
+
c && ue(t), u.d(), s && s.d(), e[27](null);
|
|
4708
4712
|
}
|
|
4709
4713
|
};
|
|
4710
4714
|
}
|
|
4711
|
-
function
|
|
4715
|
+
function Po(e, t, n) {
|
|
4712
4716
|
let r;
|
|
4713
|
-
pr(e,
|
|
4714
|
-
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: s = "en" } = t, { mbsource:
|
|
4715
|
-
const E = {},
|
|
4716
|
-
fetch(g).then((
|
|
4717
|
+
pr(e, Co, (b) => n(4, r = b));
|
|
4718
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: s = "en" } = t, { mbsource: c } = t, { clientstyling: l = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: g = "" } = t, { gmversion: y = "gm16" } = t, { displaybalanceoption: x = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencylocale: P = "en" } = t, { currencydisplay: j = "symbol" } = t, { maximumfractiondigits: z = "2" } = t, { minimumfractiondigits: G = "0" } = t, { customdisplayformat: B = "" } = t, w, I = !0, R = !1, K = !1, de, pe = "", ee = [], _e;
|
|
4719
|
+
const E = {}, Te = ["totalCashAmount", "totalRealAmount"], We = () => {
|
|
4720
|
+
fetch(g).then((b) => b.json()).then((b) => Object.keys(b).forEach((a) => Tn(a, b[a]))).catch((b) => console.log(b));
|
|
4717
4721
|
};
|
|
4718
|
-
Object.keys(Bn).forEach((
|
|
4719
|
-
const
|
|
4722
|
+
Object.keys(Bn).forEach((b) => Tn(b, Bn[b]));
|
|
4723
|
+
const ot = (b) => {
|
|
4720
4724
|
if (B)
|
|
4721
|
-
return
|
|
4722
|
-
const
|
|
4725
|
+
return Ze(b);
|
|
4726
|
+
const a = P || s, h = {
|
|
4723
4727
|
style: "currency",
|
|
4724
|
-
currency:
|
|
4728
|
+
currency: pe,
|
|
4725
4729
|
useGrouping: !0,
|
|
4726
|
-
currencyDisplay:
|
|
4727
|
-
maximumFractionDigits:
|
|
4728
|
-
minimumFractionDigits:
|
|
4730
|
+
currencyDisplay: j || "code",
|
|
4731
|
+
maximumFractionDigits: z === "" || isNaN(Number(z)) ? 2 : Number(z),
|
|
4732
|
+
minimumFractionDigits: G === "" || isNaN(Number(G)) ? 0 : Number(G)
|
|
4729
4733
|
};
|
|
4730
|
-
return new Intl.NumberFormat(
|
|
4731
|
-
},
|
|
4732
|
-
const
|
|
4733
|
-
let
|
|
4734
|
-
for (const
|
|
4735
|
-
switch (
|
|
4734
|
+
return new Intl.NumberFormat(a, h).format(b);
|
|
4735
|
+
}, Ze = (b) => {
|
|
4736
|
+
const a = [];
|
|
4737
|
+
let h = "";
|
|
4738
|
+
for (const m of B)
|
|
4739
|
+
switch (m) {
|
|
4736
4740
|
default:
|
|
4737
|
-
|
|
4741
|
+
h += m;
|
|
4738
4742
|
break;
|
|
4739
4743
|
case "{":
|
|
4740
|
-
|
|
4744
|
+
h && a.push(h), h = "";
|
|
4741
4745
|
break;
|
|
4742
4746
|
case "}":
|
|
4743
|
-
const [
|
|
4744
|
-
if (
|
|
4745
|
-
|
|
4746
|
-
else if (
|
|
4747
|
-
let
|
|
4748
|
-
|
|
4749
|
-
let [
|
|
4750
|
-
|
|
4751
|
-
for (let
|
|
4752
|
-
(
|
|
4753
|
-
|
|
4747
|
+
const [d, v] = h.split("|");
|
|
4748
|
+
if (h = "", d.toLowerCase() === "currency")
|
|
4749
|
+
h = pe;
|
|
4750
|
+
else if (d.toLowerCase() === "amount") {
|
|
4751
|
+
let p = ",", _ = ".", N = 2;
|
|
4752
|
+
v && (v[0] !== " " && (p = v[0]), v[1] !== " " && (_ = v[1]), v[2] !== " " && !isNaN(Number(v[2])) && (N = Number(v[2])));
|
|
4753
|
+
let [A, O] = String(Math.floor(b * Rt(10, N)) / Rt(10, N)).split(".");
|
|
4754
|
+
h += A[0];
|
|
4755
|
+
for (let L = 1; L < A.length; ++L)
|
|
4756
|
+
(A.length - L) % 3 === 0 ? h += p + A[L] : h += A[L];
|
|
4757
|
+
O && (h += _ + O);
|
|
4754
4758
|
}
|
|
4755
|
-
|
|
4759
|
+
h && a.push(h), h = "";
|
|
4756
4760
|
break;
|
|
4757
4761
|
}
|
|
4758
|
-
return
|
|
4759
|
-
},
|
|
4760
|
-
var
|
|
4761
|
-
n(1,
|
|
4762
|
-
const
|
|
4762
|
+
return a.push(h), a.join("");
|
|
4763
|
+
}, le = () => Pt(this, null, function* () {
|
|
4764
|
+
var a, h, m;
|
|
4765
|
+
n(1, I = !0);
|
|
4766
|
+
const b = new URL(`${u}/v1/player/${i}/account`);
|
|
4763
4767
|
try {
|
|
4764
|
-
const
|
|
4768
|
+
const d = yield fetch(b, {
|
|
4765
4769
|
method: "GET",
|
|
4766
4770
|
headers: { "X-SessionID": o }
|
|
4767
|
-
}),
|
|
4768
|
-
if (
|
|
4769
|
-
|
|
4771
|
+
}), v = yield d.json();
|
|
4772
|
+
if (d.ok)
|
|
4773
|
+
ee = v.items, pe = (a = ee.find((p) => p.displayName === "Casino")) == null ? void 0 : a.currency, n(3, E.Total = [{ amount: v.totalAmount[pe] }], E), n(
|
|
4770
4774
|
3,
|
|
4771
4775
|
E.Real = [
|
|
4772
4776
|
{
|
|
4773
|
-
amount: (
|
|
4777
|
+
amount: (h = ee.find((p) => p.displayName === "Casino")) == null ? void 0 : h.balanceAmount
|
|
4774
4778
|
}
|
|
4775
4779
|
],
|
|
4776
4780
|
E
|
|
@@ -4778,46 +4782,46 @@ function Mo(e, t, n) {
|
|
|
4778
4782
|
3,
|
|
4779
4783
|
E.Bonus = [
|
|
4780
4784
|
{
|
|
4781
|
-
amount: (
|
|
4785
|
+
amount: (m = ee.find((p) => p.displayName === "UBS")) == null ? void 0 : m.balanceAmount
|
|
4782
4786
|
}
|
|
4783
4787
|
],
|
|
4784
4788
|
E
|
|
4785
4789
|
);
|
|
4786
4790
|
else
|
|
4787
4791
|
throw new Error("Failed to fetch balance data !");
|
|
4788
|
-
} catch (
|
|
4789
|
-
console.log("Balance error: ",
|
|
4792
|
+
} catch (d) {
|
|
4793
|
+
console.log("Balance error: ", d);
|
|
4790
4794
|
} finally {
|
|
4791
|
-
n(1,
|
|
4795
|
+
n(1, I = !1);
|
|
4792
4796
|
}
|
|
4793
|
-
}),
|
|
4794
|
-
n(1,
|
|
4795
|
-
const
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
const
|
|
4799
|
-
if (
|
|
4800
|
-
|
|
4797
|
+
}), Be = () => {
|
|
4798
|
+
n(1, I = !0);
|
|
4799
|
+
const b = new URL(`${u}/v2/player/${i}/balance`), a = new Headers();
|
|
4800
|
+
a.append("X-SessionID", o), fetch(b, { method: "GET", headers: a }).then((m) => m.json()).then((m) => {
|
|
4801
|
+
m[T] || n(7, T = Te[0]);
|
|
4802
|
+
const d = m.items.find((p) => p.type === "Real" && p.walletAccountType === "Ordinary");
|
|
4803
|
+
if (pe = d.currency, K = !!d.productType, n(3, E.Total = [{ amount: 0 }], E), n(3, E.Real = [], E), n(3, E.Bonus = [], E), n(3, E.Credit = [], E), !K) {
|
|
4804
|
+
_e = {
|
|
4801
4805
|
lastOrdinaryAfterAmount: 0,
|
|
4802
4806
|
showCreditLineAfterAmount: !1
|
|
4803
|
-
}, n(3, E.Total[0].amount =
|
|
4804
|
-
for (const
|
|
4805
|
-
switch (
|
|
4807
|
+
}, n(3, E.Total[0].amount = m[T][pe], E);
|
|
4808
|
+
for (const p of m.items)
|
|
4809
|
+
switch (p.type) {
|
|
4806
4810
|
case "Bonus":
|
|
4807
|
-
E.Bonus.length === 0 ? E.Bonus.push({ amount:
|
|
4811
|
+
E.Bonus.length === 0 ? E.Bonus.push({ amount: p.amount }) : n(3, E.Bonus[0].amount += p.amount, E);
|
|
4808
4812
|
break;
|
|
4809
4813
|
case "Real":
|
|
4810
|
-
if (
|
|
4814
|
+
if (p.creditLine && E.Credit.length === 0 && E.Credit.push({ amount: p.creditLine }), T === "totalRealAmount")
|
|
4811
4815
|
continue;
|
|
4812
|
-
E.Real.length === 0 ? E.Real.push({ amount:
|
|
4816
|
+
E.Real.length === 0 ? E.Real.push({ amount: p.amount }) : n(3, E.Real[0].amount += p.amount, E);
|
|
4813
4817
|
break;
|
|
4814
4818
|
}
|
|
4815
|
-
for (const [
|
|
4816
|
-
|
|
4817
|
-
n(1,
|
|
4819
|
+
for (const [p, _] of Object.entries(E))
|
|
4820
|
+
_.length < 1 && delete E[p];
|
|
4821
|
+
n(1, I = !1);
|
|
4818
4822
|
return;
|
|
4819
4823
|
}
|
|
4820
|
-
|
|
4824
|
+
_e = {
|
|
4821
4825
|
Casino: {
|
|
4822
4826
|
lastOrdinaryAfterAmount: 0,
|
|
4823
4827
|
showCreditLineAfterAmount: !1
|
|
@@ -4827,195 +4831,195 @@ function Mo(e, t, n) {
|
|
|
4827
4831
|
showCreditLineAfterAmount: !1
|
|
4828
4832
|
}
|
|
4829
4833
|
};
|
|
4830
|
-
let
|
|
4831
|
-
x && x !== "All" && (
|
|
4832
|
-
for (const
|
|
4833
|
-
let
|
|
4834
|
-
switch (
|
|
4834
|
+
let v = m.items;
|
|
4835
|
+
x && x !== "All" && (v = m.items.filter((p) => p.productType === x));
|
|
4836
|
+
for (const p of v) {
|
|
4837
|
+
let _;
|
|
4838
|
+
switch (p.type) {
|
|
4835
4839
|
case "Bonus":
|
|
4836
|
-
|
|
4837
|
-
amount:
|
|
4838
|
-
productType:
|
|
4840
|
+
_ = E.Bonus.findIndex((N) => N.productType === p.productType), _ > 0 ? n(3, E.Bonus[_].amount += p.amount, E) : E.Bonus.push({
|
|
4841
|
+
amount: p.amount,
|
|
4842
|
+
productType: p.productType
|
|
4839
4843
|
});
|
|
4840
4844
|
break;
|
|
4841
4845
|
case "Real":
|
|
4842
|
-
|
|
4843
|
-
amount:
|
|
4844
|
-
productType:
|
|
4845
|
-
}),
|
|
4846
|
-
amount:
|
|
4847
|
-
productType:
|
|
4846
|
+
p.creditLine && E.Credit.push({
|
|
4847
|
+
amount: p.creditLine,
|
|
4848
|
+
productType: p.productType
|
|
4849
|
+
}), _ = E.Real.findIndex((N) => N.productType === p.productType), _ > 0 ? n(3, E.Real[_].amount += p.amount, E) : E.Real.push({
|
|
4850
|
+
amount: p.amount,
|
|
4851
|
+
productType: p.productType
|
|
4848
4852
|
});
|
|
4849
4853
|
break;
|
|
4850
4854
|
}
|
|
4851
4855
|
}
|
|
4852
|
-
|
|
4853
|
-
for (const [
|
|
4854
|
-
|
|
4855
|
-
n(1,
|
|
4856
|
+
qe();
|
|
4857
|
+
for (const [p, _] of Object.entries(E))
|
|
4858
|
+
_.length < 1 && delete E[p];
|
|
4859
|
+
n(1, I = !1);
|
|
4856
4860
|
}).catch(() => {
|
|
4857
|
-
throw n(1,
|
|
4861
|
+
throw n(1, I = !1), new Error("Failed to fetch balance data !");
|
|
4858
4862
|
});
|
|
4859
|
-
},
|
|
4863
|
+
}, me = () => {
|
|
4860
4864
|
if (de && de.close(), o.length < 1)
|
|
4861
4865
|
return;
|
|
4862
|
-
let
|
|
4863
|
-
switch (
|
|
4866
|
+
let b, a;
|
|
4867
|
+
switch (y) {
|
|
4864
4868
|
case "gm16":
|
|
4865
|
-
|
|
4869
|
+
b = new URL(`${u}/v2/player/${i}/information/updates`), a = (d) => Tt(d);
|
|
4866
4870
|
break;
|
|
4867
4871
|
case "gmcore":
|
|
4868
|
-
|
|
4872
|
+
b = new URL(`${u}/v1/player/${i}/balance/updates`), a = (d) => he(d);
|
|
4869
4873
|
break;
|
|
4870
4874
|
}
|
|
4871
|
-
const
|
|
4875
|
+
const h = {
|
|
4872
4876
|
accept: "text/event-stream",
|
|
4873
4877
|
"X-SessionId": o
|
|
4874
|
-
},
|
|
4875
|
-
de =
|
|
4876
|
-
},
|
|
4877
|
-
let
|
|
4878
|
+
}, m = new Oo.EventSourcePolyfill(b, { headers: h });
|
|
4879
|
+
de = m, m.addEventListener("message", a);
|
|
4880
|
+
}, Le = (b) => {
|
|
4881
|
+
let a;
|
|
4878
4882
|
try {
|
|
4879
|
-
|
|
4880
|
-
} catch (
|
|
4881
|
-
console.log("Balance stream failed: ",
|
|
4883
|
+
a = JSON.parse(b);
|
|
4884
|
+
} catch (h) {
|
|
4885
|
+
console.log("Balance stream failed: ", h);
|
|
4882
4886
|
return;
|
|
4883
4887
|
}
|
|
4884
|
-
return
|
|
4885
|
-
},
|
|
4886
|
-
var
|
|
4887
|
-
const
|
|
4888
|
-
if (!
|
|
4889
|
-
|
|
4888
|
+
return a;
|
|
4889
|
+
}, he = (b) => {
|
|
4890
|
+
var d, v;
|
|
4891
|
+
const a = Le(b.data);
|
|
4892
|
+
if (!a) {
|
|
4893
|
+
me();
|
|
4890
4894
|
return;
|
|
4891
4895
|
}
|
|
4892
|
-
let
|
|
4893
|
-
const
|
|
4894
|
-
|
|
4895
|
-
balanceAmount:
|
|
4896
|
-
})),
|
|
4897
|
-
},
|
|
4898
|
-
let
|
|
4899
|
-
switch (
|
|
4896
|
+
let h = "0";
|
|
4897
|
+
const m = a.balanceChange;
|
|
4898
|
+
ee = ee.map((p) => (m && m[p.id] && (p = Mt(Nt({}, p), {
|
|
4899
|
+
balanceAmount: m[p.id].afterAmount
|
|
4900
|
+
})), h = (parseFloat(p == null ? void 0 : p.balanceAmount) + parseFloat(h)).toString(), p)), n(3, E.Real = [{ amount: (d = ee[0]) == null ? void 0 : d.balanceAmount }], E), n(3, E.Bonus = [{ amount: (v = ee[1]) == null ? void 0 : v.balanceAmount }], E), n(3, E.Total = [{ amount: Number(h) }], E);
|
|
4901
|
+
}, Ae = (b, a, h) => {
|
|
4902
|
+
let m = null;
|
|
4903
|
+
switch (h.walletAccountType) {
|
|
4900
4904
|
case "Ordinary":
|
|
4901
|
-
(
|
|
4905
|
+
(h.afterAmount !== h.affectedAmount || a.lastOrdinaryAfterAmount === 0) && (a.lastOrdinaryAfterAmount = h.afterAmount, a.showCreditLineAfterAmount || (m = h.afterAmount));
|
|
4902
4906
|
break;
|
|
4903
4907
|
case "CreditLine":
|
|
4904
|
-
|
|
4908
|
+
h.afterAmount !== 0 ? (m = h.afterAmount, a.showCreditLineAfterAmount = !0) : (m = a.lastOrdinaryAfterAmount, a.showCreditLineAfterAmount = !1);
|
|
4905
4909
|
break;
|
|
4906
4910
|
default:
|
|
4907
|
-
|
|
4911
|
+
m = h.afterAmount;
|
|
4908
4912
|
}
|
|
4909
|
-
return
|
|
4910
|
-
},
|
|
4913
|
+
return m === null ? b : m;
|
|
4914
|
+
}, qe = () => {
|
|
4911
4915
|
switch (T) {
|
|
4912
4916
|
case "totalCashAmount":
|
|
4913
|
-
let
|
|
4914
|
-
for (const
|
|
4915
|
-
for (const
|
|
4916
|
-
|
|
4917
|
-
n(3, E.Total[0].amount =
|
|
4917
|
+
let b = 0;
|
|
4918
|
+
for (const h of ["Real", "Bonus"])
|
|
4919
|
+
for (const m of E[h])
|
|
4920
|
+
b += Math.max(m.amount, 0);
|
|
4921
|
+
n(3, E.Total[0].amount = b, E);
|
|
4918
4922
|
break;
|
|
4919
4923
|
case "totalRealAmount":
|
|
4920
|
-
if (!
|
|
4924
|
+
if (!K)
|
|
4921
4925
|
return;
|
|
4922
|
-
let
|
|
4923
|
-
for (const
|
|
4924
|
-
|
|
4925
|
-
n(3, E.Total[0].amount =
|
|
4926
|
+
let a = 0;
|
|
4927
|
+
for (const h of E.Real)
|
|
4928
|
+
a += h.amount;
|
|
4929
|
+
n(3, E.Total[0].amount = a, E);
|
|
4926
4930
|
}
|
|
4927
|
-
},
|
|
4928
|
-
const
|
|
4929
|
-
if (!
|
|
4930
|
-
|
|
4931
|
+
}, Tt = (b) => {
|
|
4932
|
+
const a = Le(b.data);
|
|
4933
|
+
if (!a) {
|
|
4934
|
+
me();
|
|
4931
4935
|
return;
|
|
4932
4936
|
}
|
|
4933
|
-
if (
|
|
4937
|
+
if (Bt(a == null ? void 0 : a.type) || a.type !== "BALANCE_UPDATE_V2")
|
|
4934
4938
|
return;
|
|
4935
|
-
const
|
|
4936
|
-
for (const [
|
|
4937
|
-
if (T === "totalRealAmount" &&
|
|
4938
|
-
for (const
|
|
4939
|
-
if (!
|
|
4940
|
-
|
|
4939
|
+
const h = a.body.balanceChange;
|
|
4940
|
+
for (const [m, d] of Object.entries(h))
|
|
4941
|
+
if (T === "totalRealAmount" && m === "Real" && !K && n(3, E.Total[0].amount = Ae(E.Total[0].amount, _e, d), E), !!E[m])
|
|
4942
|
+
for (const v of E[m]) {
|
|
4943
|
+
if (!K) {
|
|
4944
|
+
v.amount = m === "Real" ? Ae(v.amount, _e, d) : d.afterAmount;
|
|
4941
4945
|
continue;
|
|
4942
4946
|
}
|
|
4943
|
-
|
|
4947
|
+
d.productType === v.productType && (v.amount = m === "Real" ? Ae(v.amount, _e[v.productType], d) : d.afterAmount);
|
|
4944
4948
|
}
|
|
4945
|
-
|
|
4946
|
-
},
|
|
4947
|
-
n(2,
|
|
4948
|
-
},
|
|
4949
|
-
|
|
4950
|
-
},
|
|
4951
|
-
switch (
|
|
4949
|
+
qe();
|
|
4950
|
+
}, at = () => {
|
|
4951
|
+
n(2, R = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
4952
|
+
}, Bt = (b) => b === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, St = () => {
|
|
4953
|
+
Te.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${Te}. Using default value ('${Te[0]}').`), n(7, T = Te[0]));
|
|
4954
|
+
}, Qe = () => {
|
|
4955
|
+
switch (Ho(s), St(), y) {
|
|
4952
4956
|
case "gmcore":
|
|
4953
|
-
|
|
4957
|
+
le();
|
|
4954
4958
|
break;
|
|
4955
4959
|
case "gm16":
|
|
4956
|
-
|
|
4960
|
+
Be();
|
|
4957
4961
|
break;
|
|
4958
4962
|
default:
|
|
4959
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
4963
|
+
throw Error(`Invalid apiversion attribute: ${y}`);
|
|
4960
4964
|
}
|
|
4961
|
-
},
|
|
4962
|
-
_r(() => (window.addEventListener("message",
|
|
4963
|
-
window.
|
|
4965
|
+
}, Re = (b) => b.data && b.data.type === "LogoutSuccessfull" && de.close();
|
|
4966
|
+
_r(() => (window.addEventListener("message", Re, !1), () => {
|
|
4967
|
+
window.removeEventListener("message", Re), de && de.close();
|
|
4964
4968
|
}));
|
|
4965
|
-
const
|
|
4966
|
-
function
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
+
const Se = () => n(2, R = !0), te = () => n(2, R = !1), wt = () => at(), At = () => n(2, R = !1);
|
|
4970
|
+
function Ct(b) {
|
|
4971
|
+
kt[b ? "unshift" : "push"](() => {
|
|
4972
|
+
w = b, n(0, w);
|
|
4969
4973
|
});
|
|
4970
4974
|
}
|
|
4971
|
-
return e.$$set = (
|
|
4972
|
-
"userid" in
|
|
4975
|
+
return e.$$set = (b) => {
|
|
4976
|
+
"userid" in b && n(8, i = b.userid), "session" in b && n(9, o = b.session), "endpoint" in b && n(10, u = b.endpoint), "lang" in b && n(11, s = b.lang), "mbsource" in b && n(12, c = b.mbsource), "clientstyling" in b && n(13, l = b.clientstyling), "clientstylingurl" in b && n(14, f = b.clientstylingurl), "translationurl" in b && n(15, g = b.translationurl), "gmversion" in b && n(16, y = b.gmversion), "displaybalanceoption" in b && n(17, x = b.displaybalanceoption), "totalcalculationmode" in b && n(7, T = b.totalcalculationmode), "currencylocale" in b && n(18, P = b.currencylocale), "currencydisplay" in b && n(19, j = b.currencydisplay), "maximumfractiondigits" in b && n(20, z = b.maximumfractiondigits), "minimumfractiondigits" in b && n(21, G = b.minimumfractiondigits), "customdisplayformat" in b && n(22, B = b.customdisplayformat);
|
|
4973
4977
|
}, e.$$.update = () => {
|
|
4974
4978
|
e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
4975
|
-
200448 && u && i && o && s &&
|
|
4976
|
-
67328 && u && i && o &&
|
|
4977
|
-
8193 && l &&
|
|
4978
|
-
16385 &&
|
|
4979
|
-
4097 &&
|
|
4980
|
-
32768 && g &&
|
|
4979
|
+
200448 && u && i && o && s && y && x && Qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
4980
|
+
67328 && u && i && o && y && me(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4981
|
+
8193 && l && w && Ir(w, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4982
|
+
16385 && f && w && Dr(w, f), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4983
|
+
4097 && w && Fr(w, `${c}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4984
|
+
32768 && g && We();
|
|
4981
4985
|
}, [
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4986
|
+
w,
|
|
4987
|
+
I,
|
|
4988
|
+
R,
|
|
4985
4989
|
E,
|
|
4986
4990
|
r,
|
|
4987
|
-
Xe,
|
|
4988
4991
|
ot,
|
|
4992
|
+
at,
|
|
4989
4993
|
T,
|
|
4990
4994
|
i,
|
|
4991
4995
|
o,
|
|
4992
4996
|
u,
|
|
4993
4997
|
s,
|
|
4994
|
-
|
|
4998
|
+
c,
|
|
4995
4999
|
l,
|
|
4996
|
-
|
|
5000
|
+
f,
|
|
4997
5001
|
g,
|
|
4998
|
-
|
|
5002
|
+
y,
|
|
4999
5003
|
x,
|
|
5000
5004
|
P,
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5005
|
+
j,
|
|
5006
|
+
z,
|
|
5007
|
+
G,
|
|
5004
5008
|
B,
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
St,
|
|
5009
|
+
Se,
|
|
5010
|
+
te,
|
|
5008
5011
|
wt,
|
|
5009
|
-
|
|
5012
|
+
At,
|
|
5013
|
+
Ct
|
|
5010
5014
|
];
|
|
5011
5015
|
}
|
|
5012
|
-
class
|
|
5016
|
+
class Io extends Mr {
|
|
5013
5017
|
constructor(t) {
|
|
5014
5018
|
super(), Rr(
|
|
5015
5019
|
this,
|
|
5016
5020
|
t,
|
|
5021
|
+
Po,
|
|
5017
5022
|
Mo,
|
|
5018
|
-
No,
|
|
5019
5023
|
Rn,
|
|
5020
5024
|
{
|
|
5021
5025
|
userid: 8,
|
|
@@ -5043,100 +5047,100 @@ class Po extends Mr {
|
|
|
5043
5047
|
return this.$$.ctx[8];
|
|
5044
5048
|
}
|
|
5045
5049
|
set userid(t) {
|
|
5046
|
-
this.$$set({ userid: t }),
|
|
5050
|
+
this.$$set({ userid: t }), X();
|
|
5047
5051
|
}
|
|
5048
5052
|
get session() {
|
|
5049
5053
|
return this.$$.ctx[9];
|
|
5050
5054
|
}
|
|
5051
5055
|
set session(t) {
|
|
5052
|
-
this.$$set({ session: t }),
|
|
5056
|
+
this.$$set({ session: t }), X();
|
|
5053
5057
|
}
|
|
5054
5058
|
get endpoint() {
|
|
5055
5059
|
return this.$$.ctx[10];
|
|
5056
5060
|
}
|
|
5057
5061
|
set endpoint(t) {
|
|
5058
|
-
this.$$set({ endpoint: t }),
|
|
5062
|
+
this.$$set({ endpoint: t }), X();
|
|
5059
5063
|
}
|
|
5060
5064
|
get lang() {
|
|
5061
5065
|
return this.$$.ctx[11];
|
|
5062
5066
|
}
|
|
5063
5067
|
set lang(t) {
|
|
5064
|
-
this.$$set({ lang: t }),
|
|
5068
|
+
this.$$set({ lang: t }), X();
|
|
5065
5069
|
}
|
|
5066
5070
|
get mbsource() {
|
|
5067
5071
|
return this.$$.ctx[12];
|
|
5068
5072
|
}
|
|
5069
5073
|
set mbsource(t) {
|
|
5070
|
-
this.$$set({ mbsource: t }),
|
|
5074
|
+
this.$$set({ mbsource: t }), X();
|
|
5071
5075
|
}
|
|
5072
5076
|
get clientstyling() {
|
|
5073
5077
|
return this.$$.ctx[13];
|
|
5074
5078
|
}
|
|
5075
5079
|
set clientstyling(t) {
|
|
5076
|
-
this.$$set({ clientstyling: t }),
|
|
5080
|
+
this.$$set({ clientstyling: t }), X();
|
|
5077
5081
|
}
|
|
5078
5082
|
get clientstylingurl() {
|
|
5079
5083
|
return this.$$.ctx[14];
|
|
5080
5084
|
}
|
|
5081
5085
|
set clientstylingurl(t) {
|
|
5082
|
-
this.$$set({ clientstylingurl: t }),
|
|
5086
|
+
this.$$set({ clientstylingurl: t }), X();
|
|
5083
5087
|
}
|
|
5084
5088
|
get translationurl() {
|
|
5085
5089
|
return this.$$.ctx[15];
|
|
5086
5090
|
}
|
|
5087
5091
|
set translationurl(t) {
|
|
5088
|
-
this.$$set({ translationurl: t }),
|
|
5092
|
+
this.$$set({ translationurl: t }), X();
|
|
5089
5093
|
}
|
|
5090
5094
|
get gmversion() {
|
|
5091
5095
|
return this.$$.ctx[16];
|
|
5092
5096
|
}
|
|
5093
5097
|
set gmversion(t) {
|
|
5094
|
-
this.$$set({ gmversion: t }),
|
|
5098
|
+
this.$$set({ gmversion: t }), X();
|
|
5095
5099
|
}
|
|
5096
5100
|
get displaybalanceoption() {
|
|
5097
5101
|
return this.$$.ctx[17];
|
|
5098
5102
|
}
|
|
5099
5103
|
set displaybalanceoption(t) {
|
|
5100
|
-
this.$$set({ displaybalanceoption: t }),
|
|
5104
|
+
this.$$set({ displaybalanceoption: t }), X();
|
|
5101
5105
|
}
|
|
5102
5106
|
get totalcalculationmode() {
|
|
5103
5107
|
return this.$$.ctx[7];
|
|
5104
5108
|
}
|
|
5105
5109
|
set totalcalculationmode(t) {
|
|
5106
|
-
this.$$set({ totalcalculationmode: t }),
|
|
5110
|
+
this.$$set({ totalcalculationmode: t }), X();
|
|
5107
5111
|
}
|
|
5108
5112
|
get currencylocale() {
|
|
5109
5113
|
return this.$$.ctx[18];
|
|
5110
5114
|
}
|
|
5111
5115
|
set currencylocale(t) {
|
|
5112
|
-
this.$$set({ currencylocale: t }),
|
|
5116
|
+
this.$$set({ currencylocale: t }), X();
|
|
5113
5117
|
}
|
|
5114
5118
|
get currencydisplay() {
|
|
5115
5119
|
return this.$$.ctx[19];
|
|
5116
5120
|
}
|
|
5117
5121
|
set currencydisplay(t) {
|
|
5118
|
-
this.$$set({ currencydisplay: t }),
|
|
5122
|
+
this.$$set({ currencydisplay: t }), X();
|
|
5119
5123
|
}
|
|
5120
5124
|
get maximumfractiondigits() {
|
|
5121
5125
|
return this.$$.ctx[20];
|
|
5122
5126
|
}
|
|
5123
5127
|
set maximumfractiondigits(t) {
|
|
5124
|
-
this.$$set({ maximumfractiondigits: t }),
|
|
5128
|
+
this.$$set({ maximumfractiondigits: t }), X();
|
|
5125
5129
|
}
|
|
5126
5130
|
get minimumfractiondigits() {
|
|
5127
5131
|
return this.$$.ctx[21];
|
|
5128
5132
|
}
|
|
5129
5133
|
set minimumfractiondigits(t) {
|
|
5130
|
-
this.$$set({ minimumfractiondigits: t }),
|
|
5134
|
+
this.$$set({ minimumfractiondigits: t }), X();
|
|
5131
5135
|
}
|
|
5132
5136
|
get customdisplayformat() {
|
|
5133
5137
|
return this.$$.ctx[22];
|
|
5134
5138
|
}
|
|
5135
5139
|
set customdisplayformat(t) {
|
|
5136
|
-
this.$$set({ customdisplayformat: t }),
|
|
5140
|
+
this.$$set({ customdisplayformat: t }), X();
|
|
5137
5141
|
}
|
|
5138
5142
|
}
|
|
5139
|
-
Nr(
|
|
5143
|
+
Nr(Io, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
|
|
5140
5144
|
export {
|
|
5141
|
-
|
|
5145
|
+
Io as default
|
|
5142
5146
|
};
|