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