@everymatrix/player-account-balance-modal 1.86.3 → 1.86.5
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-B0E6wnNM.js → PlayerAccountBalanceModal-BlnRw3qy.js} +1086 -1082
- package/components/PlayerAccountBalanceModal-CoLTeWQ3.cjs +9 -0
- package/components/{PlayerAccountBalanceModal-C75Gl_LI.js → PlayerAccountBalanceModal-R_7aUobI.js} +1074 -1070
- 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-ClxrTa4q.cjs +0 -22
package/components/{PlayerAccountBalanceModal-C75Gl_LI.js → PlayerAccountBalanceModal-R_7aUobI.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function oe() {
|
|
2
2
|
}
|
|
3
3
|
function Bn(e) {
|
|
4
4
|
return e();
|
|
@@ -6,10 +6,10 @@ function Bn(e) {
|
|
|
6
6
|
function en() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function je(e) {
|
|
10
10
|
e.forEach(Bn);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Qt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
15
|
function Sn(e, t) {
|
|
@@ -22,7 +22,7 @@ function wn(e, ...t) {
|
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const r of t)
|
|
24
24
|
r(void 0);
|
|
25
|
-
return
|
|
25
|
+
return oe;
|
|
26
26
|
}
|
|
27
27
|
const n = e.subscribe(...t);
|
|
28
28
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
@@ -57,7 +57,7 @@ function or(e, t) {
|
|
|
57
57
|
t
|
|
58
58
|
), t.sheet;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function fe(e, t, n) {
|
|
61
61
|
e.insertBefore(t, n || null);
|
|
62
62
|
}
|
|
63
63
|
function le(e) {
|
|
@@ -70,16 +70,16 @@ function An(e, t) {
|
|
|
70
70
|
function G(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function ve(e) {
|
|
74
74
|
return document.createTextNode(e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return
|
|
76
|
+
function Ee() {
|
|
77
|
+
return ve(" ");
|
|
78
78
|
}
|
|
79
79
|
function ar() {
|
|
80
|
-
return
|
|
80
|
+
return ve("");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function dt(e, t, n, r) {
|
|
83
83
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
84
84
|
}
|
|
85
85
|
function z(e, t, n) {
|
|
@@ -88,7 +88,7 @@ function z(e, t, n) {
|
|
|
88
88
|
function sr(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Ce(e, t) {
|
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
93
93
|
t);
|
|
94
94
|
}
|
|
@@ -113,84 +113,84 @@ function lr() {
|
|
|
113
113
|
function hr(e) {
|
|
114
114
|
lr().$$.on_mount.push(e);
|
|
115
115
|
}
|
|
116
|
-
const
|
|
117
|
-
let
|
|
116
|
+
const Pe = [], Dt = [];
|
|
117
|
+
let Ie = [];
|
|
118
118
|
const tn = [], cr = /* @__PURE__ */ Promise.resolve();
|
|
119
|
-
let
|
|
119
|
+
let Ft = !1;
|
|
120
120
|
function fr() {
|
|
121
|
-
|
|
121
|
+
Ft || (Ft = !0, cr.then($));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
|
|
123
|
+
function Ut(e) {
|
|
124
|
+
Ie.push(e);
|
|
125
125
|
}
|
|
126
|
-
const
|
|
127
|
-
let
|
|
128
|
-
function
|
|
129
|
-
if (
|
|
126
|
+
const Ot = /* @__PURE__ */ new Set();
|
|
127
|
+
let Ne = 0;
|
|
128
|
+
function $() {
|
|
129
|
+
if (Ne !== 0)
|
|
130
130
|
return;
|
|
131
131
|
const e = Ke;
|
|
132
132
|
do {
|
|
133
133
|
try {
|
|
134
|
-
for (;
|
|
135
|
-
const t =
|
|
136
|
-
|
|
134
|
+
for (; Ne < Pe.length; ) {
|
|
135
|
+
const t = Pe[Ne];
|
|
136
|
+
Ne++, Ye(t), dr(t.$$);
|
|
137
137
|
}
|
|
138
138
|
} catch (t) {
|
|
139
|
-
throw
|
|
139
|
+
throw Pe.length = 0, Ne = 0, t;
|
|
140
140
|
}
|
|
141
|
-
for (Ye(null),
|
|
142
|
-
|
|
143
|
-
for (let t = 0; t <
|
|
144
|
-
const n =
|
|
145
|
-
|
|
141
|
+
for (Ye(null), Pe.length = 0, Ne = 0; Dt.length; )
|
|
142
|
+
Dt.pop()();
|
|
143
|
+
for (let t = 0; t < Ie.length; t += 1) {
|
|
144
|
+
const n = Ie[t];
|
|
145
|
+
Ot.has(n) || (Ot.add(n), n());
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
} while (
|
|
147
|
+
Ie.length = 0;
|
|
148
|
+
} while (Pe.length);
|
|
149
149
|
for (; tn.length; )
|
|
150
150
|
tn.pop()();
|
|
151
|
-
|
|
151
|
+
Ft = !1, Ot.clear(), Ye(e);
|
|
152
152
|
}
|
|
153
153
|
function dr(e) {
|
|
154
154
|
if (e.fragment !== null) {
|
|
155
|
-
e.update(),
|
|
155
|
+
e.update(), je(e.before_update);
|
|
156
156
|
const t = e.dirty;
|
|
157
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
157
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ut);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
function pr(e) {
|
|
161
161
|
const t = [], n = [];
|
|
162
|
-
|
|
162
|
+
Ie.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ie = t;
|
|
163
163
|
}
|
|
164
164
|
const mr = /* @__PURE__ */ new Set();
|
|
165
165
|
function gr(e, t) {
|
|
166
166
|
e && e.i && (mr.delete(e), e.i(t));
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function pt(e) {
|
|
169
169
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
170
170
|
}
|
|
171
171
|
function br(e, t, n) {
|
|
172
172
|
const { fragment: r, after_update: i } = e.$$;
|
|
173
|
-
r && r.m(t, n),
|
|
174
|
-
const o = e.$$.on_mount.map(Bn).filter(
|
|
175
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
176
|
-
}), i.forEach(
|
|
173
|
+
r && r.m(t, n), Ut(() => {
|
|
174
|
+
const o = e.$$.on_mount.map(Bn).filter(Qt);
|
|
175
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : je(o), e.$$.on_mount = [];
|
|
176
|
+
}), i.forEach(Ut);
|
|
177
177
|
}
|
|
178
178
|
function yr(e, t) {
|
|
179
179
|
const n = e.$$;
|
|
180
|
-
n.fragment !== null && (pr(n.after_update),
|
|
180
|
+
n.fragment !== null && (pr(n.after_update), je(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
181
181
|
}
|
|
182
182
|
function vr(e, t) {
|
|
183
|
-
e.$$.dirty[0] === -1 && (
|
|
183
|
+
e.$$.dirty[0] === -1 && (Pe.push(e), fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
184
184
|
}
|
|
185
|
-
function Er(e, t, n, r, i, o,
|
|
186
|
-
const
|
|
185
|
+
function Er(e, t, n, r, i, o, l = null, s = [-1]) {
|
|
186
|
+
const p = Ke;
|
|
187
187
|
Ye(e);
|
|
188
188
|
const c = e.$$ = {
|
|
189
189
|
fragment: null,
|
|
190
190
|
ctx: [],
|
|
191
191
|
// state
|
|
192
192
|
props: o,
|
|
193
|
-
update:
|
|
193
|
+
update: oe,
|
|
194
194
|
not_equal: i,
|
|
195
195
|
bound: en(),
|
|
196
196
|
// lifecycle
|
|
@@ -199,27 +199,27 @@ function Er(e, t, n, r, i, o, u = null, s = [-1]) {
|
|
|
199
199
|
on_disconnect: [],
|
|
200
200
|
before_update: [],
|
|
201
201
|
after_update: [],
|
|
202
|
-
context: new Map(t.context || (
|
|
202
|
+
context: new Map(t.context || (p ? p.$$.context : [])),
|
|
203
203
|
// everything else
|
|
204
204
|
callbacks: en(),
|
|
205
205
|
dirty: s,
|
|
206
206
|
skip_bound: !1,
|
|
207
|
-
root: t.target ||
|
|
207
|
+
root: t.target || p.$$.root
|
|
208
208
|
};
|
|
209
|
-
|
|
210
|
-
let
|
|
209
|
+
l && l(c.root);
|
|
210
|
+
let d = !1;
|
|
211
211
|
if (c.ctx = n ? n(e, t.props || {}, (g, b, ..._) => {
|
|
212
212
|
const B = _.length ? _[0] : b;
|
|
213
|
-
return c.ctx && i(c.ctx[g], c.ctx[g] = B) && (!c.skip_bound && c.bound[g] && c.bound[g](B),
|
|
214
|
-
}) : [], c.update(),
|
|
213
|
+
return c.ctx && i(c.ctx[g], c.ctx[g] = B) && (!c.skip_bound && c.bound[g] && c.bound[g](B), d && vr(e, g)), b;
|
|
214
|
+
}) : [], c.update(), d = !0, je(c.before_update), c.fragment = r ? r(c.ctx) : !1, t.target) {
|
|
215
215
|
if (t.hydrate) {
|
|
216
216
|
const g = sr(t.target);
|
|
217
217
|
c.fragment && c.fragment.l(g), g.forEach(le);
|
|
218
218
|
} else
|
|
219
219
|
c.fragment && c.fragment.c();
|
|
220
|
-
t.intro && gr(e.$$.fragment), br(e, t.target, t.anchor),
|
|
220
|
+
t.intro && gr(e.$$.fragment), br(e, t.target, t.anchor), $();
|
|
221
221
|
}
|
|
222
|
-
Ye(
|
|
222
|
+
Ye(p);
|
|
223
223
|
}
|
|
224
224
|
let Cn;
|
|
225
225
|
typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
|
|
@@ -270,11 +270,11 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
|
|
|
270
270
|
* @param {HTMLElement} target
|
|
271
271
|
* @param {HTMLElement} [anchor]
|
|
272
272
|
*/
|
|
273
|
-
m: function(
|
|
274
|
-
|
|
273
|
+
m: function(p, c) {
|
|
274
|
+
fe(p, o, c);
|
|
275
275
|
},
|
|
276
|
-
d: function(
|
|
277
|
-
|
|
276
|
+
d: function(p) {
|
|
277
|
+
p && le(o);
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
};
|
|
@@ -286,7 +286,7 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
|
|
|
286
286
|
i in n && (t[i] = [e(i)]);
|
|
287
287
|
for (const i of this.attributes) {
|
|
288
288
|
const o = this.$$g_p(i.name);
|
|
289
|
-
o in this.$$d || (this.$$d[o] =
|
|
289
|
+
o in this.$$d || (this.$$d[o] = ht(o, i.value, this.$$p_d, "toProp"));
|
|
290
290
|
}
|
|
291
291
|
for (const i in this.$$p_d)
|
|
292
292
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -304,7 +304,7 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
|
|
|
304
304
|
this.$$r = !0;
|
|
305
305
|
for (const i in this.$$p_d)
|
|
306
306
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
307
|
-
const o =
|
|
307
|
+
const o = ht(
|
|
308
308
|
i,
|
|
309
309
|
this.$$d[i],
|
|
310
310
|
this.$$p_d,
|
|
@@ -317,8 +317,8 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
|
|
|
317
317
|
this.$$c.$$.after_update.push(r), r();
|
|
318
318
|
for (const i in this.$$l)
|
|
319
319
|
for (const o of this.$$l[i]) {
|
|
320
|
-
const
|
|
321
|
-
this.$$l_u.set(o,
|
|
320
|
+
const l = this.$$c.$on(i, o);
|
|
321
|
+
this.$$l_u.set(o, l);
|
|
322
322
|
}
|
|
323
323
|
this.$$l = {};
|
|
324
324
|
}
|
|
@@ -326,7 +326,7 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
|
|
|
326
326
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
327
327
|
// and setting attributes through setAttribute etc, this is helpful
|
|
328
328
|
attributeChangedCallback(e, t, n) {
|
|
329
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
329
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ht(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
330
330
|
}
|
|
331
331
|
disconnectedCallback() {
|
|
332
332
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -339,7 +339,7 @@ typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
|
|
|
339
339
|
) || e;
|
|
340
340
|
}
|
|
341
341
|
});
|
|
342
|
-
function
|
|
342
|
+
function ht(e, t, n, r) {
|
|
343
343
|
const i = n[e]?.type;
|
|
344
344
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
345
345
|
return t;
|
|
@@ -369,7 +369,7 @@ function ct(e, t, n, r) {
|
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
function xr(e, t, n, r, i, o) {
|
|
372
|
-
let
|
|
372
|
+
let l = class extends Cn {
|
|
373
373
|
constructor() {
|
|
374
374
|
super(e, n, i), this.$$p_d = t;
|
|
375
375
|
}
|
|
@@ -380,22 +380,22 @@ function xr(e, t, n, r, i, o) {
|
|
|
380
380
|
}
|
|
381
381
|
};
|
|
382
382
|
return Object.keys(t).forEach((s) => {
|
|
383
|
-
Object.defineProperty(
|
|
383
|
+
Object.defineProperty(l.prototype, s, {
|
|
384
384
|
get() {
|
|
385
385
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
386
386
|
},
|
|
387
|
-
set(
|
|
388
|
-
|
|
387
|
+
set(p) {
|
|
388
|
+
p = ht(s, p, t), this.$$d[s] = p, this.$$c?.$set({ [s]: p });
|
|
389
389
|
}
|
|
390
390
|
});
|
|
391
391
|
}), r.forEach((s) => {
|
|
392
|
-
Object.defineProperty(
|
|
392
|
+
Object.defineProperty(l.prototype, s, {
|
|
393
393
|
get() {
|
|
394
394
|
return this.$$c?.[s];
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
}), e.element = /** @type {any} */
|
|
398
|
-
|
|
398
|
+
l, l;
|
|
399
399
|
}
|
|
400
400
|
class _r {
|
|
401
401
|
/**
|
|
@@ -416,7 +416,7 @@ class _r {
|
|
|
416
416
|
$$set = void 0;
|
|
417
417
|
/** @returns {void} */
|
|
418
418
|
$destroy() {
|
|
419
|
-
yr(this, 1), this.$destroy =
|
|
419
|
+
yr(this, 1), this.$destroy = oe;
|
|
420
420
|
}
|
|
421
421
|
/**
|
|
422
422
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -425,8 +425,8 @@ class _r {
|
|
|
425
425
|
* @returns {() => void}
|
|
426
426
|
*/
|
|
427
427
|
$on(t, n) {
|
|
428
|
-
if (!
|
|
429
|
-
return
|
|
428
|
+
if (!Qt(n))
|
|
429
|
+
return oe;
|
|
430
430
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
431
431
|
return r.push(n), () => {
|
|
432
432
|
const i = r.indexOf(n);
|
|
@@ -468,66 +468,66 @@ function wr(e, t, n) {
|
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
const
|
|
471
|
+
const Me = [];
|
|
472
472
|
function Ar(e, t) {
|
|
473
473
|
return {
|
|
474
474
|
subscribe: yt(e, t).subscribe
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
|
-
function yt(e, t =
|
|
477
|
+
function yt(e, t = oe) {
|
|
478
478
|
let n;
|
|
479
479
|
const r = /* @__PURE__ */ new Set();
|
|
480
480
|
function i(s) {
|
|
481
481
|
if (Sn(e, s) && (e = s, n)) {
|
|
482
|
-
const
|
|
482
|
+
const p = !Me.length;
|
|
483
483
|
for (const c of r)
|
|
484
|
-
c[1](),
|
|
485
|
-
if (
|
|
486
|
-
for (let c = 0; c <
|
|
487
|
-
|
|
488
|
-
|
|
484
|
+
c[1](), Me.push(c, e);
|
|
485
|
+
if (p) {
|
|
486
|
+
for (let c = 0; c < Me.length; c += 2)
|
|
487
|
+
Me[c][0](Me[c + 1]);
|
|
488
|
+
Me.length = 0;
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
492
|
function o(s) {
|
|
493
493
|
i(s(e));
|
|
494
494
|
}
|
|
495
|
-
function
|
|
496
|
-
const c = [s,
|
|
497
|
-
return r.add(c), r.size === 1 && (n = t(i, o) ||
|
|
495
|
+
function l(s, p = oe) {
|
|
496
|
+
const c = [s, p];
|
|
497
|
+
return r.add(c), r.size === 1 && (n = t(i, o) || oe), s(e), () => {
|
|
498
498
|
r.delete(c), r.size === 0 && n && (n(), n = null);
|
|
499
499
|
};
|
|
500
500
|
}
|
|
501
|
-
return { set: i, update: o, subscribe:
|
|
501
|
+
return { set: i, update: o, subscribe: l };
|
|
502
502
|
}
|
|
503
503
|
function ke(e, t, n) {
|
|
504
504
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
505
505
|
if (!i.every(Boolean))
|
|
506
506
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
507
507
|
const o = t.length < 2;
|
|
508
|
-
return Ar(n, (
|
|
509
|
-
let
|
|
508
|
+
return Ar(n, (l, s) => {
|
|
509
|
+
let p = !1;
|
|
510
510
|
const c = [];
|
|
511
|
-
let
|
|
511
|
+
let d = 0, g = oe;
|
|
512
512
|
const b = () => {
|
|
513
|
-
if (
|
|
513
|
+
if (d)
|
|
514
514
|
return;
|
|
515
515
|
g();
|
|
516
|
-
const B = t(r ? c[0] : c,
|
|
517
|
-
o ?
|
|
516
|
+
const B = t(r ? c[0] : c, l, s);
|
|
517
|
+
o ? l(B) : g = Qt(B) ? B : oe;
|
|
518
518
|
}, _ = i.map(
|
|
519
519
|
(B, I) => wn(
|
|
520
520
|
B,
|
|
521
|
-
(
|
|
522
|
-
c[I] =
|
|
521
|
+
(j) => {
|
|
522
|
+
c[I] = j, d &= ~(1 << I), p && b();
|
|
523
523
|
},
|
|
524
524
|
() => {
|
|
525
|
-
|
|
525
|
+
d |= 1 << I;
|
|
526
526
|
}
|
|
527
527
|
)
|
|
528
528
|
);
|
|
529
|
-
return
|
|
530
|
-
|
|
529
|
+
return p = !0, b(), function() {
|
|
530
|
+
je(_), g(), p = !1;
|
|
531
531
|
};
|
|
532
532
|
});
|
|
533
533
|
}
|
|
@@ -535,10 +535,10 @@ var Cr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
535
535
|
function Hr(e) {
|
|
536
536
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
537
537
|
}
|
|
538
|
-
var
|
|
539
|
-
return
|
|
538
|
+
var Or = function(t) {
|
|
539
|
+
return Lr(t) && !Rr(t);
|
|
540
540
|
};
|
|
541
|
-
function
|
|
541
|
+
function Lr(e) {
|
|
542
542
|
return !!e && typeof e == "object";
|
|
543
543
|
}
|
|
544
544
|
function Rr(e) {
|
|
@@ -553,7 +553,7 @@ function Ir(e) {
|
|
|
553
553
|
return Array.isArray(e) ? [] : {};
|
|
554
554
|
}
|
|
555
555
|
function et(e, t) {
|
|
556
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
556
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? De(Ir(e), e, t) : e;
|
|
557
557
|
}
|
|
558
558
|
function Dr(e, t, n) {
|
|
559
559
|
return e.concat(t).map(function(r) {
|
|
@@ -562,9 +562,9 @@ function Dr(e, t, n) {
|
|
|
562
562
|
}
|
|
563
563
|
function Fr(e, t) {
|
|
564
564
|
if (!t.customMerge)
|
|
565
|
-
return
|
|
565
|
+
return De;
|
|
566
566
|
var n = t.customMerge(e);
|
|
567
|
-
return typeof n == "function" ? n :
|
|
567
|
+
return typeof n == "function" ? n : De;
|
|
568
568
|
}
|
|
569
569
|
function Ur(e) {
|
|
570
570
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -584,7 +584,7 @@ function Hn(e, t) {
|
|
|
584
584
|
function Gr(e, t) {
|
|
585
585
|
return Hn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function jr(e, t, n) {
|
|
588
588
|
var r = {};
|
|
589
589
|
return n.isMergeableObject(e) && nn(e).forEach(function(i) {
|
|
590
590
|
r[i] = et(e[i], n);
|
|
@@ -592,60 +592,46 @@ function kr(e, t, n) {
|
|
|
592
592
|
Gr(e, i) || (Hn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fr(i, n)(e[i], t[i], n) : r[i] = et(t[i], n));
|
|
593
593
|
}), r;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
596
|
-
n = n || {}, n.arrayMerge = n.arrayMerge || Dr, n.isMergeableObject = n.isMergeableObject ||
|
|
595
|
+
function De(e, t, n) {
|
|
596
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Dr, n.isMergeableObject = n.isMergeableObject || Or, n.cloneUnlessOtherwiseSpecified = et;
|
|
597
597
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
598
|
-
return o ? r ? n.arrayMerge(e, t, n) :
|
|
598
|
+
return o ? r ? n.arrayMerge(e, t, n) : jr(e, t, n) : et(t, n);
|
|
599
599
|
}
|
|
600
|
-
|
|
600
|
+
De.all = function(t, n) {
|
|
601
601
|
if (!Array.isArray(t))
|
|
602
602
|
throw new Error("first argument should be an array");
|
|
603
603
|
return t.reduce(function(r, i) {
|
|
604
|
-
return
|
|
604
|
+
return De(r, i, n);
|
|
605
605
|
}, {});
|
|
606
606
|
};
|
|
607
|
-
var
|
|
608
|
-
const Vr = /* @__PURE__ */ Hr(
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
613
|
-
purpose with or without fee is hereby granted.
|
|
614
|
-
|
|
615
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
616
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
617
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
618
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
619
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
620
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
621
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
622
|
-
***************************************************************************** */
|
|
623
|
-
var Ft = function(e, t) {
|
|
624
|
-
return Ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
607
|
+
var kr = De, $r = kr;
|
|
608
|
+
const Vr = /* @__PURE__ */ Hr($r);
|
|
609
|
+
var Gt = function(e, t) {
|
|
610
|
+
return Gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
625
611
|
n.__proto__ = r;
|
|
626
612
|
} || function(n, r) {
|
|
627
613
|
for (var i in r)
|
|
628
614
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
629
|
-
},
|
|
615
|
+
}, Gt(e, t);
|
|
630
616
|
};
|
|
631
617
|
function vt(e, t) {
|
|
632
618
|
if (typeof t != "function" && t !== null)
|
|
633
619
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
634
|
-
|
|
620
|
+
Gt(e, t);
|
|
635
621
|
function n() {
|
|
636
622
|
this.constructor = e;
|
|
637
623
|
}
|
|
638
624
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
639
625
|
}
|
|
640
|
-
var
|
|
641
|
-
return
|
|
626
|
+
var ce = function() {
|
|
627
|
+
return ce = Object.assign || function(t) {
|
|
642
628
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
643
629
|
n = arguments[r];
|
|
644
630
|
for (var o in n)
|
|
645
631
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
646
632
|
}
|
|
647
633
|
return t;
|
|
648
|
-
},
|
|
634
|
+
}, ce.apply(this, arguments);
|
|
649
635
|
};
|
|
650
636
|
function Xr(e, t) {
|
|
651
637
|
var n = {};
|
|
@@ -656,14 +642,14 @@ function Xr(e, t) {
|
|
|
656
642
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
657
643
|
return n;
|
|
658
644
|
}
|
|
659
|
-
function
|
|
660
|
-
if (arguments.length === 2)
|
|
645
|
+
function Lt(e, t, n) {
|
|
646
|
+
if (n || arguments.length === 2)
|
|
661
647
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
662
648
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
663
|
-
return e.concat(o || t);
|
|
649
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
664
650
|
}
|
|
665
|
-
function
|
|
666
|
-
var n = t && t.cache ? t.cache :
|
|
651
|
+
function Rt(e, t) {
|
|
652
|
+
var n = t && t.cache ? t.cache : Yr, r = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : Zr;
|
|
667
653
|
return i(e, {
|
|
668
654
|
cache: n,
|
|
669
655
|
serializer: r
|
|
@@ -672,7 +658,7 @@ function Lt(e, t) {
|
|
|
672
658
|
function zr(e) {
|
|
673
659
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
674
660
|
}
|
|
675
|
-
function
|
|
661
|
+
function Wr(e, t, n, r) {
|
|
676
662
|
var i = zr(r) ? r : n(r), o = t.get(i);
|
|
677
663
|
return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
|
|
678
664
|
}
|
|
@@ -680,87 +666,95 @@ function On(e, t, n) {
|
|
|
680
666
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
681
667
|
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
682
668
|
}
|
|
683
|
-
function
|
|
669
|
+
function Ln(e, t, n, r, i) {
|
|
684
670
|
return n.bind(t, e, r, i);
|
|
685
671
|
}
|
|
686
|
-
function Wr(e, t) {
|
|
687
|
-
var n = e.length === 1 ? Ln : On;
|
|
688
|
-
return qt(e, this, n, t.cache.create(), t.serializer);
|
|
689
|
-
}
|
|
690
672
|
function Zr(e, t) {
|
|
691
|
-
|
|
673
|
+
var n = e.length === 1 ? Wr : On;
|
|
674
|
+
return Ln(e, this, n, t.cache.create(), t.serializer);
|
|
692
675
|
}
|
|
693
676
|
function qr(e, t) {
|
|
694
|
-
return
|
|
677
|
+
return Ln(e, this, On, t.cache.create(), t.serializer);
|
|
695
678
|
}
|
|
696
679
|
var Qr = function() {
|
|
697
680
|
return JSON.stringify(arguments);
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
681
|
+
}, Jr = (
|
|
682
|
+
/** @class */
|
|
683
|
+
function() {
|
|
684
|
+
function e() {
|
|
685
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
686
|
+
}
|
|
687
|
+
return e.prototype.get = function(t) {
|
|
688
|
+
return this.cache[t];
|
|
689
|
+
}, e.prototype.set = function(t, n) {
|
|
690
|
+
this.cache[t] = n;
|
|
691
|
+
}, e;
|
|
692
|
+
}()
|
|
693
|
+
), Yr = {
|
|
709
694
|
create: function() {
|
|
710
|
-
return new
|
|
695
|
+
return new Jr();
|
|
711
696
|
}
|
|
712
|
-
},
|
|
713
|
-
variadic:
|
|
714
|
-
|
|
715
|
-
|
|
697
|
+
}, Nt = {
|
|
698
|
+
variadic: qr
|
|
699
|
+
}, mt = function() {
|
|
700
|
+
return mt = Object.assign || function(t) {
|
|
701
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
702
|
+
n = arguments[r];
|
|
703
|
+
for (var o in n)
|
|
704
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
705
|
+
}
|
|
706
|
+
return t;
|
|
707
|
+
}, mt.apply(this, arguments);
|
|
708
|
+
};
|
|
709
|
+
var H;
|
|
716
710
|
(function(e) {
|
|
717
711
|
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";
|
|
718
712
|
})(H || (H = {}));
|
|
719
|
-
var
|
|
713
|
+
var D;
|
|
720
714
|
(function(e) {
|
|
721
715
|
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";
|
|
722
|
-
})(
|
|
723
|
-
var
|
|
716
|
+
})(D || (D = {}));
|
|
717
|
+
var Fe;
|
|
724
718
|
(function(e) {
|
|
725
719
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
726
|
-
})(
|
|
720
|
+
})(Fe || (Fe = {}));
|
|
727
721
|
function rn(e) {
|
|
728
|
-
return e.type ===
|
|
722
|
+
return e.type === D.literal;
|
|
729
723
|
}
|
|
730
|
-
function
|
|
731
|
-
return e.type ===
|
|
724
|
+
function Kr(e) {
|
|
725
|
+
return e.type === D.argument;
|
|
732
726
|
}
|
|
733
727
|
function Rn(e) {
|
|
734
|
-
return e.type ===
|
|
728
|
+
return e.type === D.number;
|
|
735
729
|
}
|
|
736
730
|
function Nn(e) {
|
|
737
|
-
return e.type ===
|
|
731
|
+
return e.type === D.date;
|
|
738
732
|
}
|
|
739
733
|
function Mn(e) {
|
|
740
|
-
return e.type ===
|
|
734
|
+
return e.type === D.time;
|
|
741
735
|
}
|
|
742
736
|
function Pn(e) {
|
|
743
|
-
return e.type ===
|
|
737
|
+
return e.type === D.select;
|
|
744
738
|
}
|
|
745
739
|
function In(e) {
|
|
746
|
-
return e.type ===
|
|
740
|
+
return e.type === D.plural;
|
|
747
741
|
}
|
|
748
|
-
function
|
|
749
|
-
return e.type ===
|
|
742
|
+
function ei(e) {
|
|
743
|
+
return e.type === D.pound;
|
|
750
744
|
}
|
|
751
745
|
function Dn(e) {
|
|
752
|
-
return e.type ===
|
|
746
|
+
return e.type === D.tag;
|
|
753
747
|
}
|
|
754
748
|
function Fn(e) {
|
|
755
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
749
|
+
return !!(e && typeof e == "object" && e.type === Fe.number);
|
|
756
750
|
}
|
|
757
|
-
function
|
|
758
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
751
|
+
function jt(e) {
|
|
752
|
+
return !!(e && typeof e == "object" && e.type === Fe.dateTime);
|
|
759
753
|
}
|
|
760
|
-
var Un = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
761
|
-
function
|
|
754
|
+
var Un = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ti = /(?:[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;
|
|
755
|
+
function ni(e) {
|
|
762
756
|
var t = {};
|
|
763
|
-
return e.replace(
|
|
757
|
+
return e.replace(ti, function(n) {
|
|
764
758
|
var r = n.length;
|
|
765
759
|
switch (n[0]) {
|
|
766
760
|
case "G":
|
|
@@ -849,36 +843,46 @@ function ti(e) {
|
|
|
849
843
|
return "";
|
|
850
844
|
}), t;
|
|
851
845
|
}
|
|
852
|
-
var
|
|
853
|
-
function
|
|
846
|
+
var F = function() {
|
|
847
|
+
return F = Object.assign || function(t) {
|
|
848
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
849
|
+
n = arguments[r];
|
|
850
|
+
for (var o in n)
|
|
851
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
852
|
+
}
|
|
853
|
+
return t;
|
|
854
|
+
}, F.apply(this, arguments);
|
|
855
|
+
};
|
|
856
|
+
var ri = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
857
|
+
function ii(e) {
|
|
854
858
|
if (e.length === 0)
|
|
855
859
|
throw new Error("Number skeleton cannot be empty");
|
|
856
|
-
for (var t = e.split(
|
|
860
|
+
for (var t = e.split(ri).filter(function(b) {
|
|
857
861
|
return b.length > 0;
|
|
858
862
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
859
|
-
var o = i[r],
|
|
860
|
-
if (
|
|
863
|
+
var o = i[r], l = o.split("/");
|
|
864
|
+
if (l.length === 0)
|
|
861
865
|
throw new Error("Invalid number skeleton");
|
|
862
|
-
for (var s =
|
|
863
|
-
var g =
|
|
866
|
+
for (var s = l[0], p = l.slice(1), c = 0, d = p; c < d.length; c++) {
|
|
867
|
+
var g = d[c];
|
|
864
868
|
if (g.length === 0)
|
|
865
869
|
throw new Error("Invalid number skeleton");
|
|
866
870
|
}
|
|
867
|
-
n.push({ stem: s, options:
|
|
871
|
+
n.push({ stem: s, options: p });
|
|
868
872
|
}
|
|
869
873
|
return n;
|
|
870
874
|
}
|
|
871
|
-
function
|
|
875
|
+
function oi(e) {
|
|
872
876
|
return e.replace(/^(.*?)-/, "");
|
|
873
877
|
}
|
|
874
|
-
var on = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gn = /^(@+)?(\+|#+)?[rs]?$/g,
|
|
878
|
+
var on = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gn = /^(@+)?(\+|#+)?[rs]?$/g, ai = /(\*)(0+)|(#+)(0+)|(0+)/g, jn = /^(0+)$/;
|
|
875
879
|
function an(e) {
|
|
876
880
|
var t = {};
|
|
877
881
|
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gn, function(n, r, i) {
|
|
878
882
|
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
879
883
|
}), t;
|
|
880
884
|
}
|
|
881
|
-
function
|
|
885
|
+
function kn(e) {
|
|
882
886
|
switch (e) {
|
|
883
887
|
case "sign-auto":
|
|
884
888
|
return {
|
|
@@ -918,7 +922,7 @@ function $n(e) {
|
|
|
918
922
|
};
|
|
919
923
|
}
|
|
920
924
|
}
|
|
921
|
-
function
|
|
925
|
+
function si(e) {
|
|
922
926
|
var t;
|
|
923
927
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
924
928
|
notation: "engineering"
|
|
@@ -926,17 +930,17 @@ function ai(e) {
|
|
|
926
930
|
notation: "scientific"
|
|
927
931
|
}, e = e.slice(1)), t) {
|
|
928
932
|
var n = e.slice(0, 2);
|
|
929
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
933
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !jn.test(e))
|
|
930
934
|
throw new Error("Malformed concise eng/scientific notation");
|
|
931
935
|
t.minimumIntegerDigits = e.length;
|
|
932
936
|
}
|
|
933
937
|
return t;
|
|
934
938
|
}
|
|
935
939
|
function sn(e) {
|
|
936
|
-
var t = {}, n =
|
|
940
|
+
var t = {}, n = kn(e);
|
|
937
941
|
return n || t;
|
|
938
942
|
}
|
|
939
|
-
function
|
|
943
|
+
function ui(e) {
|
|
940
944
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
941
945
|
var i = r[n];
|
|
942
946
|
switch (i.stem) {
|
|
@@ -960,7 +964,7 @@ function si(e) {
|
|
|
960
964
|
continue;
|
|
961
965
|
case "measure-unit":
|
|
962
966
|
case "unit":
|
|
963
|
-
t.style = "unit", t.unit =
|
|
967
|
+
t.style = "unit", t.unit = oi(i.options[0]);
|
|
964
968
|
continue;
|
|
965
969
|
case "compact-short":
|
|
966
970
|
case "K":
|
|
@@ -971,13 +975,13 @@ function si(e) {
|
|
|
971
975
|
t.notation = "compact", t.compactDisplay = "long";
|
|
972
976
|
continue;
|
|
973
977
|
case "scientific":
|
|
974
|
-
t =
|
|
975
|
-
return
|
|
978
|
+
t = F(F(F({}, t), { notation: "scientific" }), i.options.reduce(function(p, c) {
|
|
979
|
+
return F(F({}, p), sn(c));
|
|
976
980
|
}, {}));
|
|
977
981
|
continue;
|
|
978
982
|
case "engineering":
|
|
979
|
-
t =
|
|
980
|
-
return
|
|
983
|
+
t = F(F(F({}, t), { notation: "engineering" }), i.options.reduce(function(p, c) {
|
|
984
|
+
return F(F({}, p), sn(c));
|
|
981
985
|
}, {}));
|
|
982
986
|
continue;
|
|
983
987
|
case "notation-simple":
|
|
@@ -1022,9 +1026,9 @@ function si(e) {
|
|
|
1022
1026
|
case "integer-width":
|
|
1023
1027
|
if (i.options.length > 1)
|
|
1024
1028
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1025
|
-
i.options[0].replace(
|
|
1029
|
+
i.options[0].replace(ai, function(p, c, d, g, b, _) {
|
|
1026
1030
|
if (c)
|
|
1027
|
-
t.minimumIntegerDigits =
|
|
1031
|
+
t.minimumIntegerDigits = d.length;
|
|
1028
1032
|
else {
|
|
1029
1033
|
if (g && b)
|
|
1030
1034
|
throw new Error("We currently do not support maximum integer digits");
|
|
@@ -1035,32 +1039,32 @@ function si(e) {
|
|
|
1035
1039
|
});
|
|
1036
1040
|
continue;
|
|
1037
1041
|
}
|
|
1038
|
-
if (
|
|
1042
|
+
if (jn.test(i.stem)) {
|
|
1039
1043
|
t.minimumIntegerDigits = i.stem.length;
|
|
1040
1044
|
continue;
|
|
1041
1045
|
}
|
|
1042
1046
|
if (on.test(i.stem)) {
|
|
1043
1047
|
if (i.options.length > 1)
|
|
1044
1048
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1045
|
-
i.stem.replace(on, function(
|
|
1046
|
-
return
|
|
1049
|
+
i.stem.replace(on, function(p, c, d, g, b, _) {
|
|
1050
|
+
return d === "*" ? t.minimumFractionDigits = c.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && _ ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + _.length) : (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length), "";
|
|
1047
1051
|
});
|
|
1048
1052
|
var o = i.options[0];
|
|
1049
|
-
o === "w" ? t =
|
|
1053
|
+
o === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = F(F({}, t), an(o)));
|
|
1050
1054
|
continue;
|
|
1051
1055
|
}
|
|
1052
1056
|
if (Gn.test(i.stem)) {
|
|
1053
|
-
t =
|
|
1057
|
+
t = F(F({}, t), an(i.stem));
|
|
1054
1058
|
continue;
|
|
1055
1059
|
}
|
|
1056
|
-
var
|
|
1057
|
-
|
|
1058
|
-
var s =
|
|
1059
|
-
s && (t =
|
|
1060
|
+
var l = kn(i.stem);
|
|
1061
|
+
l && (t = F(F({}, t), l));
|
|
1062
|
+
var s = si(i.stem);
|
|
1063
|
+
s && (t = F(F({}, t), s));
|
|
1060
1064
|
}
|
|
1061
1065
|
return t;
|
|
1062
1066
|
}
|
|
1063
|
-
var
|
|
1067
|
+
var lt = {
|
|
1064
1068
|
"001": [
|
|
1065
1069
|
"H",
|
|
1066
1070
|
"h"
|
|
@@ -2475,23 +2479,23 @@ var ht = {
|
|
|
2475
2479
|
"h"
|
|
2476
2480
|
]
|
|
2477
2481
|
};
|
|
2478
|
-
function
|
|
2482
|
+
function li(e, t) {
|
|
2479
2483
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2480
2484
|
var i = e.charAt(r);
|
|
2481
2485
|
if (i === "j") {
|
|
2482
2486
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2483
2487
|
o++, r++;
|
|
2484
|
-
var
|
|
2488
|
+
var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), p = "a", c = hi(t);
|
|
2485
2489
|
for ((c == "H" || c == "k") && (s = 0); s-- > 0; )
|
|
2486
|
-
n +=
|
|
2487
|
-
for (;
|
|
2490
|
+
n += p;
|
|
2491
|
+
for (; l-- > 0; )
|
|
2488
2492
|
n = c + n;
|
|
2489
2493
|
} else
|
|
2490
2494
|
i === "J" ? n += "H" : n += i;
|
|
2491
2495
|
}
|
|
2492
2496
|
return n;
|
|
2493
2497
|
}
|
|
2494
|
-
function
|
|
2498
|
+
function hi(e) {
|
|
2495
2499
|
var t = e.hourCycle;
|
|
2496
2500
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2497
2501
|
e.hourCycles && // @ts-ignore
|
|
@@ -2510,23 +2514,23 @@ function li(e) {
|
|
|
2510
2514
|
}
|
|
2511
2515
|
var n = e.language, r;
|
|
2512
2516
|
n !== "root" && (r = e.maximize().region);
|
|
2513
|
-
var i =
|
|
2517
|
+
var i = lt[r || ""] || lt[n || ""] || lt["".concat(n, "-001")] || lt["001"];
|
|
2514
2518
|
return i[0];
|
|
2515
2519
|
}
|
|
2516
|
-
var
|
|
2520
|
+
var Mt, ci = new RegExp("^".concat(Un.source, "*")), fi = new RegExp("".concat(Un.source, "*$"));
|
|
2517
2521
|
function O(e, t) {
|
|
2518
2522
|
return { start: e, end: t };
|
|
2519
2523
|
}
|
|
2520
|
-
var
|
|
2524
|
+
var di = !!String.prototype.startsWith && "_a".startsWith("a", 1), pi = !!String.fromCodePoint, mi = !!Object.fromEntries, gi = !!String.prototype.codePointAt, bi = !!String.prototype.trimStart, yi = !!String.prototype.trimEnd, vi = !!Number.isSafeInteger, Ei = vi ? Number.isSafeInteger : function(e) {
|
|
2521
2525
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2522
|
-
},
|
|
2526
|
+
}, kt = !0;
|
|
2523
2527
|
try {
|
|
2524
|
-
var
|
|
2525
|
-
|
|
2528
|
+
var xi = Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2529
|
+
kt = ((Mt = xi.exec("a")) === null || Mt === void 0 ? void 0 : Mt[0]) === "a";
|
|
2526
2530
|
} catch {
|
|
2527
|
-
|
|
2531
|
+
kt = !1;
|
|
2528
2532
|
}
|
|
2529
|
-
var un =
|
|
2533
|
+
var un = di ? (
|
|
2530
2534
|
// Native
|
|
2531
2535
|
function(t, n, r) {
|
|
2532
2536
|
return t.startsWith(n, r);
|
|
@@ -2536,31 +2540,31 @@ var un = fi ? (
|
|
|
2536
2540
|
function(t, n, r) {
|
|
2537
2541
|
return t.slice(r, r + n.length) === n;
|
|
2538
2542
|
}
|
|
2539
|
-
),
|
|
2543
|
+
), $t = pi ? String.fromCodePoint : (
|
|
2540
2544
|
// IE11
|
|
2541
2545
|
function() {
|
|
2542
2546
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2543
2547
|
t[n] = arguments[n];
|
|
2544
|
-
for (var r = "", i = t.length, o = 0,
|
|
2545
|
-
if (
|
|
2546
|
-
throw RangeError(
|
|
2547
|
-
r +=
|
|
2548
|
+
for (var r = "", i = t.length, o = 0, l; i > o; ) {
|
|
2549
|
+
if (l = t[o++], l > 1114111)
|
|
2550
|
+
throw RangeError(l + " is not a valid code point");
|
|
2551
|
+
r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
|
|
2548
2552
|
}
|
|
2549
2553
|
return r;
|
|
2550
2554
|
}
|
|
2551
2555
|
), ln = (
|
|
2552
2556
|
// native
|
|
2553
|
-
|
|
2557
|
+
mi ? Object.fromEntries : (
|
|
2554
2558
|
// Ponyfill
|
|
2555
2559
|
function(t) {
|
|
2556
2560
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2557
|
-
var o = i[r],
|
|
2558
|
-
n[
|
|
2561
|
+
var o = i[r], l = o[0], s = o[1];
|
|
2562
|
+
n[l] = s;
|
|
2559
2563
|
}
|
|
2560
2564
|
return n;
|
|
2561
2565
|
}
|
|
2562
2566
|
)
|
|
2563
|
-
),
|
|
2567
|
+
), $n = gi ? (
|
|
2564
2568
|
// Native
|
|
2565
2569
|
function(t, n) {
|
|
2566
2570
|
return t.codePointAt(n);
|
|
@@ -2574,7 +2578,7 @@ var un = fi ? (
|
|
|
2574
2578
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2575
2579
|
}
|
|
2576
2580
|
}
|
|
2577
|
-
),
|
|
2581
|
+
), _i = bi ? (
|
|
2578
2582
|
// Native
|
|
2579
2583
|
function(t) {
|
|
2580
2584
|
return t.trimStart();
|
|
@@ -2582,9 +2586,9 @@ var un = fi ? (
|
|
|
2582
2586
|
) : (
|
|
2583
2587
|
// Ponyfill
|
|
2584
2588
|
function(t) {
|
|
2585
|
-
return t.replace(
|
|
2589
|
+
return t.replace(ci, "");
|
|
2586
2590
|
}
|
|
2587
|
-
),
|
|
2591
|
+
), Ti = yi ? (
|
|
2588
2592
|
// Native
|
|
2589
2593
|
function(t) {
|
|
2590
2594
|
return t.trimEnd();
|
|
@@ -2592,32 +2596,32 @@ var un = fi ? (
|
|
|
2592
2596
|
) : (
|
|
2593
2597
|
// Ponyfill
|
|
2594
2598
|
function(t) {
|
|
2595
|
-
return t.replace(
|
|
2599
|
+
return t.replace(fi, "");
|
|
2596
2600
|
}
|
|
2597
2601
|
);
|
|
2598
2602
|
function Vn(e, t) {
|
|
2599
2603
|
return new RegExp(e, t);
|
|
2600
2604
|
}
|
|
2601
|
-
var
|
|
2602
|
-
if (
|
|
2605
|
+
var Vt;
|
|
2606
|
+
if (kt) {
|
|
2603
2607
|
var hn = Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2604
|
-
|
|
2608
|
+
Vt = function(t, n) {
|
|
2605
2609
|
var r;
|
|
2606
2610
|
hn.lastIndex = n;
|
|
2607
2611
|
var i = hn.exec(t);
|
|
2608
2612
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2609
2613
|
};
|
|
2610
2614
|
} else
|
|
2611
|
-
|
|
2615
|
+
Vt = function(t, n) {
|
|
2612
2616
|
for (var r = []; ; ) {
|
|
2613
|
-
var i =
|
|
2614
|
-
if (i === void 0 || Xn(i) ||
|
|
2617
|
+
var i = $n(t, n);
|
|
2618
|
+
if (i === void 0 || Xn(i) || Ai(i))
|
|
2615
2619
|
break;
|
|
2616
2620
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2617
2621
|
}
|
|
2618
|
-
return
|
|
2622
|
+
return $t.apply(void 0, r);
|
|
2619
2623
|
};
|
|
2620
|
-
var
|
|
2624
|
+
var Bi = (
|
|
2621
2625
|
/** @class */
|
|
2622
2626
|
function() {
|
|
2623
2627
|
function e(t, n) {
|
|
@@ -2631,33 +2635,33 @@ var Ti = (
|
|
|
2631
2635
|
for (var i = []; !this.isEOF(); ) {
|
|
2632
2636
|
var o = this.char();
|
|
2633
2637
|
if (o === 123) {
|
|
2634
|
-
var
|
|
2635
|
-
if (
|
|
2636
|
-
return
|
|
2637
|
-
i.push(
|
|
2638
|
+
var l = this.parseArgument(t, r);
|
|
2639
|
+
if (l.err)
|
|
2640
|
+
return l;
|
|
2641
|
+
i.push(l.val);
|
|
2638
2642
|
} else {
|
|
2639
2643
|
if (o === 125 && t > 0)
|
|
2640
2644
|
break;
|
|
2641
2645
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2642
2646
|
var s = this.clonePosition();
|
|
2643
2647
|
this.bump(), i.push({
|
|
2644
|
-
type:
|
|
2648
|
+
type: D.pound,
|
|
2645
2649
|
location: O(s, this.clonePosition())
|
|
2646
2650
|
});
|
|
2647
2651
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2648
2652
|
if (r)
|
|
2649
2653
|
break;
|
|
2650
2654
|
return this.error(H.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
|
|
2651
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2652
|
-
var
|
|
2653
|
-
if (
|
|
2654
|
-
return
|
|
2655
|
-
i.push(
|
|
2655
|
+
} else if (o === 60 && !this.ignoreTag && Xt(this.peek() || 0)) {
|
|
2656
|
+
var l = this.parseTag(t, n);
|
|
2657
|
+
if (l.err)
|
|
2658
|
+
return l;
|
|
2659
|
+
i.push(l.val);
|
|
2656
2660
|
} else {
|
|
2657
|
-
var
|
|
2658
|
-
if (
|
|
2659
|
-
return
|
|
2660
|
-
i.push(
|
|
2661
|
+
var l = this.parseLiteral(t, n);
|
|
2662
|
+
if (l.err)
|
|
2663
|
+
return l;
|
|
2664
|
+
i.push(l.val);
|
|
2661
2665
|
}
|
|
2662
2666
|
}
|
|
2663
2667
|
}
|
|
@@ -2669,7 +2673,7 @@ var Ti = (
|
|
|
2669
2673
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2670
2674
|
return {
|
|
2671
2675
|
val: {
|
|
2672
|
-
type:
|
|
2676
|
+
type: D.literal,
|
|
2673
2677
|
value: "<".concat(i, "/>"),
|
|
2674
2678
|
location: O(r, this.clonePosition())
|
|
2675
2679
|
},
|
|
@@ -2679,16 +2683,16 @@ var Ti = (
|
|
|
2679
2683
|
var o = this.parseMessage(t + 1, n, !0);
|
|
2680
2684
|
if (o.err)
|
|
2681
2685
|
return o;
|
|
2682
|
-
var
|
|
2686
|
+
var l = o.val, s = this.clonePosition();
|
|
2683
2687
|
if (this.bumpIf("</")) {
|
|
2684
|
-
if (this.isEOF() || !
|
|
2688
|
+
if (this.isEOF() || !Xt(this.char()))
|
|
2685
2689
|
return this.error(H.INVALID_TAG, O(s, this.clonePosition()));
|
|
2686
|
-
var
|
|
2687
|
-
return i !== c ? this.error(H.UNMATCHED_CLOSING_TAG, O(
|
|
2690
|
+
var p = this.clonePosition(), c = this.parseTagName();
|
|
2691
|
+
return i !== c ? this.error(H.UNMATCHED_CLOSING_TAG, O(p, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2688
2692
|
val: {
|
|
2689
|
-
type:
|
|
2693
|
+
type: D.tag,
|
|
2690
2694
|
value: i,
|
|
2691
|
-
children:
|
|
2695
|
+
children: l,
|
|
2692
2696
|
location: O(r, this.clonePosition())
|
|
2693
2697
|
},
|
|
2694
2698
|
err: null
|
|
@@ -2699,7 +2703,7 @@ var Ti = (
|
|
|
2699
2703
|
return this.error(H.INVALID_TAG, O(r, this.clonePosition()));
|
|
2700
2704
|
}, e.prototype.parseTagName = function() {
|
|
2701
2705
|
var t = this.offset();
|
|
2702
|
-
for (this.bump(); !this.isEOF() &&
|
|
2706
|
+
for (this.bump(); !this.isEOF() && wi(this.char()); )
|
|
2703
2707
|
this.bump();
|
|
2704
2708
|
return this.message.slice(t, this.offset());
|
|
2705
2709
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2709,9 +2713,9 @@ var Ti = (
|
|
|
2709
2713
|
i += o;
|
|
2710
2714
|
continue;
|
|
2711
2715
|
}
|
|
2712
|
-
var
|
|
2713
|
-
if (
|
|
2714
|
-
i +=
|
|
2716
|
+
var l = this.tryParseUnquoted(t, n);
|
|
2717
|
+
if (l) {
|
|
2718
|
+
i += l;
|
|
2715
2719
|
continue;
|
|
2716
2720
|
}
|
|
2717
2721
|
var s = this.tryParseLeftAngleBracket();
|
|
@@ -2721,14 +2725,14 @@ var Ti = (
|
|
|
2721
2725
|
}
|
|
2722
2726
|
break;
|
|
2723
2727
|
}
|
|
2724
|
-
var
|
|
2728
|
+
var p = O(r, this.clonePosition());
|
|
2725
2729
|
return {
|
|
2726
|
-
val: { type:
|
|
2730
|
+
val: { type: D.literal, value: i, location: p },
|
|
2727
2731
|
err: null
|
|
2728
2732
|
};
|
|
2729
2733
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2730
2734
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2731
|
-
!
|
|
2735
|
+
!Si(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2732
2736
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2733
2737
|
if (this.isEOF() || this.char() !== 39)
|
|
2734
2738
|
return null;
|
|
@@ -2762,12 +2766,12 @@ var Ti = (
|
|
|
2762
2766
|
n.push(r);
|
|
2763
2767
|
this.bump();
|
|
2764
2768
|
}
|
|
2765
|
-
return
|
|
2769
|
+
return $t.apply(void 0, n);
|
|
2766
2770
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2767
2771
|
if (this.isEOF())
|
|
2768
2772
|
return null;
|
|
2769
2773
|
var r = this.char();
|
|
2770
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2774
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), $t(r));
|
|
2771
2775
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2772
2776
|
var r = this.clonePosition();
|
|
2773
2777
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2783,7 +2787,7 @@ var Ti = (
|
|
|
2783
2787
|
case 125:
|
|
2784
2788
|
return this.bump(), {
|
|
2785
2789
|
val: {
|
|
2786
|
-
type:
|
|
2790
|
+
type: D.argument,
|
|
2787
2791
|
// value does not include the opening and closing braces.
|
|
2788
2792
|
value: i,
|
|
2789
2793
|
location: O(r, this.clonePosition())
|
|
@@ -2796,15 +2800,15 @@ var Ti = (
|
|
|
2796
2800
|
return this.error(H.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
|
|
2797
2801
|
}
|
|
2798
2802
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2799
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2803
|
+
var t = this.clonePosition(), n = this.offset(), r = Vt(this.message, n), i = n + r.length;
|
|
2800
2804
|
this.bumpTo(i);
|
|
2801
|
-
var o = this.clonePosition(),
|
|
2802
|
-
return { value: r, location:
|
|
2805
|
+
var o = this.clonePosition(), l = O(t, o);
|
|
2806
|
+
return { value: r, location: l };
|
|
2803
2807
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2804
|
-
var o,
|
|
2808
|
+
var o, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, p = this.clonePosition();
|
|
2805
2809
|
switch (s) {
|
|
2806
2810
|
case "":
|
|
2807
|
-
return this.error(H.EXPECT_ARGUMENT_TYPE, O(
|
|
2811
|
+
return this.error(H.EXPECT_ARGUMENT_TYPE, O(l, p));
|
|
2808
2812
|
case "number":
|
|
2809
2813
|
case "date":
|
|
2810
2814
|
case "time": {
|
|
@@ -2812,13 +2816,13 @@ var Ti = (
|
|
|
2812
2816
|
var c = null;
|
|
2813
2817
|
if (this.bumpIf(",")) {
|
|
2814
2818
|
this.bumpSpace();
|
|
2815
|
-
var
|
|
2819
|
+
var d = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
|
|
2816
2820
|
if (g.err)
|
|
2817
2821
|
return g;
|
|
2818
|
-
var b =
|
|
2822
|
+
var b = Ti(g.val);
|
|
2819
2823
|
if (b.length === 0)
|
|
2820
2824
|
return this.error(H.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
|
|
2821
|
-
var _ = O(
|
|
2825
|
+
var _ = O(d, this.clonePosition());
|
|
2822
2826
|
c = { style: b, styleLocation: _ };
|
|
2823
2827
|
}
|
|
2824
2828
|
var B = this.tryParseArgumentClose(i);
|
|
@@ -2826,24 +2830,24 @@ var Ti = (
|
|
|
2826
2830
|
return B;
|
|
2827
2831
|
var I = O(i, this.clonePosition());
|
|
2828
2832
|
if (c && un(c?.style, "::", 0)) {
|
|
2829
|
-
var
|
|
2833
|
+
var j = _i(c.style.slice(2));
|
|
2830
2834
|
if (s === "number") {
|
|
2831
|
-
var g = this.parseNumberSkeletonFromString(
|
|
2835
|
+
var g = this.parseNumberSkeletonFromString(j, c.styleLocation);
|
|
2832
2836
|
return g.err ? g : {
|
|
2833
|
-
val: { type:
|
|
2837
|
+
val: { type: D.number, value: r, location: I, style: g.val },
|
|
2834
2838
|
err: null
|
|
2835
2839
|
};
|
|
2836
2840
|
} else {
|
|
2837
|
-
if (
|
|
2841
|
+
if (j.length === 0)
|
|
2838
2842
|
return this.error(H.EXPECT_DATE_TIME_SKELETON, I);
|
|
2839
|
-
var
|
|
2840
|
-
this.locale && (
|
|
2843
|
+
var W = j;
|
|
2844
|
+
this.locale && (W = li(j, this.locale));
|
|
2841
2845
|
var b = {
|
|
2842
|
-
type:
|
|
2843
|
-
pattern:
|
|
2846
|
+
type: Fe.dateTime,
|
|
2847
|
+
pattern: W,
|
|
2844
2848
|
location: c.styleLocation,
|
|
2845
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2846
|
-
}, U = s === "date" ?
|
|
2849
|
+
parsedOptions: this.shouldParseSkeletons ? ni(W) : {}
|
|
2850
|
+
}, U = s === "date" ? D.date : D.time;
|
|
2847
2851
|
return {
|
|
2848
2852
|
val: { type: U, value: r, location: I, style: b },
|
|
2849
2853
|
err: null
|
|
@@ -2852,7 +2856,7 @@ var Ti = (
|
|
|
2852
2856
|
}
|
|
2853
2857
|
return {
|
|
2854
2858
|
val: {
|
|
2855
|
-
type: s === "number" ?
|
|
2859
|
+
type: s === "number" ? D.number : s === "date" ? D.date : D.time,
|
|
2856
2860
|
value: r,
|
|
2857
2861
|
location: I,
|
|
2858
2862
|
style: (o = c?.style) !== null && o !== void 0 ? o : null
|
|
@@ -2863,49 +2867,49 @@ var Ti = (
|
|
|
2863
2867
|
case "plural":
|
|
2864
2868
|
case "selectordinal":
|
|
2865
2869
|
case "select": {
|
|
2866
|
-
var
|
|
2870
|
+
var w = this.clonePosition();
|
|
2867
2871
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2868
|
-
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(
|
|
2872
|
+
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, O(w, mt({}, w)));
|
|
2869
2873
|
this.bumpSpace();
|
|
2870
|
-
var
|
|
2871
|
-
if (s !== "select" &&
|
|
2874
|
+
var A = this.parseIdentifierIfPossible(), P = 0;
|
|
2875
|
+
if (s !== "select" && A.value === "offset") {
|
|
2872
2876
|
if (!this.bumpIf(":"))
|
|
2873
2877
|
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
|
|
2874
2878
|
this.bumpSpace();
|
|
2875
2879
|
var g = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2876
2880
|
if (g.err)
|
|
2877
2881
|
return g;
|
|
2878
|
-
this.bumpSpace(),
|
|
2882
|
+
this.bumpSpace(), A = this.parseIdentifierIfPossible(), P = g.val;
|
|
2879
2883
|
}
|
|
2880
|
-
var
|
|
2881
|
-
if (
|
|
2882
|
-
return
|
|
2884
|
+
var L = this.tryParsePluralOrSelectOptions(t, s, n, A);
|
|
2885
|
+
if (L.err)
|
|
2886
|
+
return L;
|
|
2883
2887
|
var B = this.tryParseArgumentClose(i);
|
|
2884
2888
|
if (B.err)
|
|
2885
2889
|
return B;
|
|
2886
|
-
var
|
|
2890
|
+
var Y = O(i, this.clonePosition());
|
|
2887
2891
|
return s === "select" ? {
|
|
2888
2892
|
val: {
|
|
2889
|
-
type:
|
|
2893
|
+
type: D.select,
|
|
2890
2894
|
value: r,
|
|
2891
|
-
options: ln(
|
|
2892
|
-
location:
|
|
2895
|
+
options: ln(L.val),
|
|
2896
|
+
location: Y
|
|
2893
2897
|
},
|
|
2894
2898
|
err: null
|
|
2895
2899
|
} : {
|
|
2896
2900
|
val: {
|
|
2897
|
-
type:
|
|
2901
|
+
type: D.plural,
|
|
2898
2902
|
value: r,
|
|
2899
|
-
options: ln(
|
|
2903
|
+
options: ln(L.val),
|
|
2900
2904
|
offset: P,
|
|
2901
2905
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2902
|
-
location:
|
|
2906
|
+
location: Y
|
|
2903
2907
|
},
|
|
2904
2908
|
err: null
|
|
2905
2909
|
};
|
|
2906
2910
|
}
|
|
2907
2911
|
default:
|
|
2908
|
-
return this.error(H.INVALID_ARGUMENT_TYPE, O(
|
|
2912
|
+
return this.error(H.INVALID_ARGUMENT_TYPE, O(l, p));
|
|
2909
2913
|
}
|
|
2910
2914
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2911
2915
|
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
@@ -2947,34 +2951,34 @@ var Ti = (
|
|
|
2947
2951
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2948
2952
|
var r = [];
|
|
2949
2953
|
try {
|
|
2950
|
-
r =
|
|
2954
|
+
r = ii(t);
|
|
2951
2955
|
} catch {
|
|
2952
2956
|
return this.error(H.INVALID_NUMBER_SKELETON, n);
|
|
2953
2957
|
}
|
|
2954
2958
|
return {
|
|
2955
2959
|
val: {
|
|
2956
|
-
type:
|
|
2960
|
+
type: Fe.number,
|
|
2957
2961
|
tokens: r,
|
|
2958
2962
|
location: n,
|
|
2959
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2963
|
+
parsedOptions: this.shouldParseSkeletons ? ui(r) : {}
|
|
2960
2964
|
},
|
|
2961
2965
|
err: null
|
|
2962
2966
|
};
|
|
2963
2967
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2964
|
-
for (var o,
|
|
2968
|
+
for (var o, l = !1, s = [], p = /* @__PURE__ */ new Set(), c = i.value, d = i.location; ; ) {
|
|
2965
2969
|
if (c.length === 0) {
|
|
2966
2970
|
var g = this.clonePosition();
|
|
2967
2971
|
if (n !== "select" && this.bumpIf("=")) {
|
|
2968
2972
|
var b = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2969
2973
|
if (b.err)
|
|
2970
2974
|
return b;
|
|
2971
|
-
|
|
2975
|
+
d = O(g, this.clonePosition()), c = this.message.slice(g.offset, this.offset());
|
|
2972
2976
|
} else
|
|
2973
2977
|
break;
|
|
2974
2978
|
}
|
|
2975
|
-
if (
|
|
2976
|
-
return this.error(n === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,
|
|
2977
|
-
c === "other" && (
|
|
2979
|
+
if (p.has(c))
|
|
2980
|
+
return this.error(n === "select" ? H.DUPLICATE_SELECT_ARGUMENT_SELECTOR : H.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
|
|
2981
|
+
c === "other" && (l = !0), this.bumpSpace();
|
|
2978
2982
|
var _ = this.clonePosition();
|
|
2979
2983
|
if (!this.bumpIf("{"))
|
|
2980
2984
|
return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
|
|
@@ -2990,21 +2994,21 @@ var Ti = (
|
|
|
2990
2994
|
value: B.val,
|
|
2991
2995
|
location: O(_, this.clonePosition())
|
|
2992
2996
|
}
|
|
2993
|
-
]),
|
|
2997
|
+
]), p.add(c), this.bumpSpace(), o = this.parseIdentifierIfPossible(), c = o.value, d = o.location;
|
|
2994
2998
|
}
|
|
2995
|
-
return s.length === 0 ? this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !
|
|
2999
|
+
return s.length === 0 ? this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(H.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2996
3000
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
2997
3001
|
var r = 1, i = this.clonePosition();
|
|
2998
3002
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
2999
|
-
for (var o = !1,
|
|
3003
|
+
for (var o = !1, l = 0; !this.isEOF(); ) {
|
|
3000
3004
|
var s = this.char();
|
|
3001
3005
|
if (s >= 48 && s <= 57)
|
|
3002
|
-
o = !0,
|
|
3006
|
+
o = !0, l = l * 10 + (s - 48), this.bump();
|
|
3003
3007
|
else
|
|
3004
3008
|
break;
|
|
3005
3009
|
}
|
|
3006
|
-
var
|
|
3007
|
-
return o ? (
|
|
3010
|
+
var p = O(i, this.clonePosition());
|
|
3011
|
+
return o ? (l *= r, Ei(l) ? { val: l, err: null } : this.error(n, p)) : this.error(t, p);
|
|
3008
3012
|
}, e.prototype.offset = function() {
|
|
3009
3013
|
return this.position.offset;
|
|
3010
3014
|
}, e.prototype.isEOF = function() {
|
|
@@ -3019,7 +3023,7 @@ var Ti = (
|
|
|
3019
3023
|
var t = this.position.offset;
|
|
3020
3024
|
if (t >= this.message.length)
|
|
3021
3025
|
throw Error("out of bound");
|
|
3022
|
-
var n =
|
|
3026
|
+
var n = $n(this.message, t);
|
|
3023
3027
|
if (n === void 0)
|
|
3024
3028
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3025
3029
|
return n;
|
|
@@ -3070,43 +3074,43 @@ var Ti = (
|
|
|
3070
3074
|
}, e;
|
|
3071
3075
|
}()
|
|
3072
3076
|
);
|
|
3073
|
-
function
|
|
3077
|
+
function Xt(e) {
|
|
3074
3078
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3075
3079
|
}
|
|
3076
|
-
function Bi(e) {
|
|
3077
|
-
return jt(e) || e === 47;
|
|
3078
|
-
}
|
|
3079
3080
|
function Si(e) {
|
|
3081
|
+
return Xt(e) || e === 47;
|
|
3082
|
+
}
|
|
3083
|
+
function wi(e) {
|
|
3080
3084
|
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;
|
|
3081
3085
|
}
|
|
3082
3086
|
function Xn(e) {
|
|
3083
3087
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3084
3088
|
}
|
|
3085
|
-
function
|
|
3089
|
+
function Ai(e) {
|
|
3086
3090
|
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;
|
|
3087
3091
|
}
|
|
3088
|
-
function
|
|
3092
|
+
function zt(e) {
|
|
3089
3093
|
e.forEach(function(t) {
|
|
3090
3094
|
if (delete t.location, Pn(t) || In(t))
|
|
3091
3095
|
for (var n in t.options)
|
|
3092
|
-
delete t.options[n].location,
|
|
3096
|
+
delete t.options[n].location, zt(t.options[n].value);
|
|
3093
3097
|
else
|
|
3094
|
-
Rn(t) && Fn(t.style) || (Nn(t) || Mn(t)) &&
|
|
3098
|
+
Rn(t) && Fn(t.style) || (Nn(t) || Mn(t)) && jt(t.style) ? delete t.style.location : Dn(t) && zt(t.children);
|
|
3095
3099
|
});
|
|
3096
3100
|
}
|
|
3097
|
-
function
|
|
3098
|
-
t === void 0 && (t = {}), t =
|
|
3099
|
-
var n = new
|
|
3101
|
+
function Ci(e, t) {
|
|
3102
|
+
t === void 0 && (t = {}), t = mt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3103
|
+
var n = new Bi(e, t).parse();
|
|
3100
3104
|
if (n.err) {
|
|
3101
3105
|
var r = SyntaxError(H[n.err.kind]);
|
|
3102
3106
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3103
3107
|
}
|
|
3104
|
-
return t?.captureLocation ||
|
|
3108
|
+
return t?.captureLocation || zt(n.val), n.val;
|
|
3105
3109
|
}
|
|
3106
|
-
var
|
|
3110
|
+
var Ue;
|
|
3107
3111
|
(function(e) {
|
|
3108
3112
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3109
|
-
})(
|
|
3113
|
+
})(Ue || (Ue = {}));
|
|
3110
3114
|
var Et = (
|
|
3111
3115
|
/** @class */
|
|
3112
3116
|
function(e) {
|
|
@@ -3124,150 +3128,150 @@ var Et = (
|
|
|
3124
3128
|
function(e) {
|
|
3125
3129
|
vt(t, e);
|
|
3126
3130
|
function t(n, r, i, o) {
|
|
3127
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3131
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ue.INVALID_VALUE, o) || this;
|
|
3128
3132
|
}
|
|
3129
3133
|
return t;
|
|
3130
3134
|
}(Et)
|
|
3131
|
-
),
|
|
3135
|
+
), Hi = (
|
|
3132
3136
|
/** @class */
|
|
3133
3137
|
function(e) {
|
|
3134
3138
|
vt(t, e);
|
|
3135
3139
|
function t(n, r, i) {
|
|
3136
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3140
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ue.INVALID_VALUE, i) || this;
|
|
3137
3141
|
}
|
|
3138
3142
|
return t;
|
|
3139
3143
|
}(Et)
|
|
3140
|
-
),
|
|
3144
|
+
), Oi = (
|
|
3141
3145
|
/** @class */
|
|
3142
3146
|
function(e) {
|
|
3143
3147
|
vt(t, e);
|
|
3144
3148
|
function t(n, r) {
|
|
3145
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3149
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ue.MISSING_VALUE, r) || this;
|
|
3146
3150
|
}
|
|
3147
3151
|
return t;
|
|
3148
3152
|
}(Et)
|
|
3149
|
-
),
|
|
3153
|
+
), J;
|
|
3150
3154
|
(function(e) {
|
|
3151
3155
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3152
|
-
})(
|
|
3156
|
+
})(J || (J = {}));
|
|
3153
3157
|
function Li(e) {
|
|
3154
3158
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3155
3159
|
var r = t[t.length - 1];
|
|
3156
|
-
return !r || r.type !==
|
|
3160
|
+
return !r || r.type !== J.literal || n.type !== J.literal ? t.push(n) : r.value += n.value, t;
|
|
3157
3161
|
}, []);
|
|
3158
3162
|
}
|
|
3159
|
-
function
|
|
3163
|
+
function Ri(e) {
|
|
3160
3164
|
return typeof e == "function";
|
|
3161
3165
|
}
|
|
3162
|
-
function
|
|
3166
|
+
function ct(e, t, n, r, i, o, l) {
|
|
3163
3167
|
if (e.length === 1 && rn(e[0]))
|
|
3164
3168
|
return [
|
|
3165
3169
|
{
|
|
3166
|
-
type:
|
|
3170
|
+
type: J.literal,
|
|
3167
3171
|
value: e[0].value
|
|
3168
3172
|
}
|
|
3169
3173
|
];
|
|
3170
|
-
for (var s = [],
|
|
3171
|
-
var
|
|
3172
|
-
if (rn(
|
|
3174
|
+
for (var s = [], p = 0, c = e; p < c.length; p++) {
|
|
3175
|
+
var d = c[p];
|
|
3176
|
+
if (rn(d)) {
|
|
3173
3177
|
s.push({
|
|
3174
|
-
type:
|
|
3175
|
-
value:
|
|
3178
|
+
type: J.literal,
|
|
3179
|
+
value: d.value
|
|
3176
3180
|
});
|
|
3177
3181
|
continue;
|
|
3178
3182
|
}
|
|
3179
|
-
if (
|
|
3183
|
+
if (ei(d)) {
|
|
3180
3184
|
typeof o == "number" && s.push({
|
|
3181
|
-
type:
|
|
3185
|
+
type: J.literal,
|
|
3182
3186
|
value: n.getNumberFormat(t).format(o)
|
|
3183
3187
|
});
|
|
3184
3188
|
continue;
|
|
3185
3189
|
}
|
|
3186
|
-
var g =
|
|
3190
|
+
var g = d.value;
|
|
3187
3191
|
if (!(i && g in i))
|
|
3188
|
-
throw new
|
|
3192
|
+
throw new Oi(g, l);
|
|
3189
3193
|
var b = i[g];
|
|
3190
|
-
if (
|
|
3194
|
+
if (Kr(d)) {
|
|
3191
3195
|
(!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), s.push({
|
|
3192
|
-
type: typeof b == "string" ?
|
|
3196
|
+
type: typeof b == "string" ? J.literal : J.object,
|
|
3193
3197
|
value: b
|
|
3194
3198
|
});
|
|
3195
3199
|
continue;
|
|
3196
3200
|
}
|
|
3197
|
-
if (Nn(
|
|
3198
|
-
var _ = typeof
|
|
3201
|
+
if (Nn(d)) {
|
|
3202
|
+
var _ = typeof d.style == "string" ? r.date[d.style] : jt(d.style) ? d.style.parsedOptions : void 0;
|
|
3199
3203
|
s.push({
|
|
3200
|
-
type:
|
|
3204
|
+
type: J.literal,
|
|
3201
3205
|
value: n.getDateTimeFormat(t, _).format(b)
|
|
3202
3206
|
});
|
|
3203
3207
|
continue;
|
|
3204
3208
|
}
|
|
3205
|
-
if (Mn(
|
|
3206
|
-
var _ = typeof
|
|
3209
|
+
if (Mn(d)) {
|
|
3210
|
+
var _ = typeof d.style == "string" ? r.time[d.style] : jt(d.style) ? d.style.parsedOptions : r.time.medium;
|
|
3207
3211
|
s.push({
|
|
3208
|
-
type:
|
|
3212
|
+
type: J.literal,
|
|
3209
3213
|
value: n.getDateTimeFormat(t, _).format(b)
|
|
3210
3214
|
});
|
|
3211
3215
|
continue;
|
|
3212
3216
|
}
|
|
3213
|
-
if (Rn(
|
|
3214
|
-
var _ = typeof
|
|
3217
|
+
if (Rn(d)) {
|
|
3218
|
+
var _ = typeof d.style == "string" ? r.number[d.style] : Fn(d.style) ? d.style.parsedOptions : void 0;
|
|
3215
3219
|
_ && _.scale && (b = b * (_.scale || 1)), s.push({
|
|
3216
|
-
type:
|
|
3220
|
+
type: J.literal,
|
|
3217
3221
|
value: n.getNumberFormat(t, _).format(b)
|
|
3218
3222
|
});
|
|
3219
3223
|
continue;
|
|
3220
3224
|
}
|
|
3221
|
-
if (Dn(
|
|
3222
|
-
var B =
|
|
3223
|
-
if (!
|
|
3224
|
-
throw new
|
|
3225
|
-
var
|
|
3225
|
+
if (Dn(d)) {
|
|
3226
|
+
var B = d.children, I = d.value, j = i[I];
|
|
3227
|
+
if (!Ri(j))
|
|
3228
|
+
throw new Hi(I, "function", l);
|
|
3229
|
+
var W = ct(B, t, n, r, i, o), U = j(W.map(function(P) {
|
|
3226
3230
|
return P.value;
|
|
3227
3231
|
}));
|
|
3228
3232
|
Array.isArray(U) || (U = [U]), s.push.apply(s, U.map(function(P) {
|
|
3229
3233
|
return {
|
|
3230
|
-
type: typeof P == "string" ?
|
|
3234
|
+
type: typeof P == "string" ? J.literal : J.object,
|
|
3231
3235
|
value: P
|
|
3232
3236
|
};
|
|
3233
3237
|
}));
|
|
3234
3238
|
}
|
|
3235
|
-
if (Pn(
|
|
3236
|
-
var
|
|
3237
|
-
if (!
|
|
3238
|
-
throw new cn(
|
|
3239
|
-
s.push.apply(s,
|
|
3239
|
+
if (Pn(d)) {
|
|
3240
|
+
var w = d.options[b] || d.options.other;
|
|
3241
|
+
if (!w)
|
|
3242
|
+
throw new cn(d.value, b, Object.keys(d.options), l);
|
|
3243
|
+
s.push.apply(s, ct(w.value, t, n, r, i));
|
|
3240
3244
|
continue;
|
|
3241
3245
|
}
|
|
3242
|
-
if (In(
|
|
3243
|
-
var
|
|
3244
|
-
if (!
|
|
3246
|
+
if (In(d)) {
|
|
3247
|
+
var w = d.options["=".concat(b)];
|
|
3248
|
+
if (!w) {
|
|
3245
3249
|
if (!Intl.PluralRules)
|
|
3246
3250
|
throw new Et(`Intl.PluralRules is not available in this environment.
|
|
3247
3251
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3248
|
-
`,
|
|
3249
|
-
var
|
|
3250
|
-
|
|
3252
|
+
`, Ue.MISSING_INTL_API, l);
|
|
3253
|
+
var A = n.getPluralRules(t, { type: d.pluralType }).select(b - (d.offset || 0));
|
|
3254
|
+
w = d.options[A] || d.options.other;
|
|
3251
3255
|
}
|
|
3252
|
-
if (!
|
|
3253
|
-
throw new cn(
|
|
3254
|
-
s.push.apply(s,
|
|
3256
|
+
if (!w)
|
|
3257
|
+
throw new cn(d.value, b, Object.keys(d.options), l);
|
|
3258
|
+
s.push.apply(s, ct(w.value, t, n, r, i, b - (d.offset || 0)));
|
|
3255
3259
|
continue;
|
|
3256
3260
|
}
|
|
3257
3261
|
}
|
|
3258
3262
|
return Li(s);
|
|
3259
3263
|
}
|
|
3260
|
-
function
|
|
3261
|
-
return t ?
|
|
3262
|
-
return n[r] =
|
|
3264
|
+
function Ni(e, t) {
|
|
3265
|
+
return t ? ce(ce(ce({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3266
|
+
return n[r] = ce(ce({}, e[r]), t[r] || {}), n;
|
|
3263
3267
|
}, {})) : e;
|
|
3264
3268
|
}
|
|
3265
|
-
function
|
|
3269
|
+
function Mi(e, t) {
|
|
3266
3270
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3267
|
-
return n[r] =
|
|
3268
|
-
},
|
|
3271
|
+
return n[r] = Ni(e[r], t[r]), n;
|
|
3272
|
+
}, ce({}, e)) : e;
|
|
3269
3273
|
}
|
|
3270
|
-
function
|
|
3274
|
+
function Pt(e) {
|
|
3271
3275
|
return {
|
|
3272
3276
|
create: function() {
|
|
3273
3277
|
return {
|
|
@@ -3281,39 +3285,39 @@ function Nt(e) {
|
|
|
3281
3285
|
}
|
|
3282
3286
|
};
|
|
3283
3287
|
}
|
|
3284
|
-
function
|
|
3288
|
+
function Pi(e) {
|
|
3285
3289
|
return e === void 0 && (e = {
|
|
3286
3290
|
number: {},
|
|
3287
3291
|
dateTime: {},
|
|
3288
3292
|
pluralRules: {}
|
|
3289
3293
|
}), {
|
|
3290
|
-
getNumberFormat:
|
|
3294
|
+
getNumberFormat: Rt(function() {
|
|
3291
3295
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3292
3296
|
n[r] = arguments[r];
|
|
3293
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3297
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Lt([void 0], n, !1)))();
|
|
3294
3298
|
}, {
|
|
3295
|
-
cache:
|
|
3296
|
-
strategy:
|
|
3299
|
+
cache: Pt(e.number),
|
|
3300
|
+
strategy: Nt.variadic
|
|
3297
3301
|
}),
|
|
3298
|
-
getDateTimeFormat:
|
|
3302
|
+
getDateTimeFormat: Rt(function() {
|
|
3299
3303
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3300
3304
|
n[r] = arguments[r];
|
|
3301
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3305
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Lt([void 0], n, !1)))();
|
|
3302
3306
|
}, {
|
|
3303
|
-
cache:
|
|
3304
|
-
strategy:
|
|
3307
|
+
cache: Pt(e.dateTime),
|
|
3308
|
+
strategy: Nt.variadic
|
|
3305
3309
|
}),
|
|
3306
|
-
getPluralRules:
|
|
3310
|
+
getPluralRules: Rt(function() {
|
|
3307
3311
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3308
3312
|
n[r] = arguments[r];
|
|
3309
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3313
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Lt([void 0], n, !1)))();
|
|
3310
3314
|
}, {
|
|
3311
|
-
cache:
|
|
3312
|
-
strategy:
|
|
3315
|
+
cache: Pt(e.pluralRules),
|
|
3316
|
+
strategy: Nt.variadic
|
|
3313
3317
|
})
|
|
3314
3318
|
};
|
|
3315
3319
|
}
|
|
3316
|
-
var
|
|
3320
|
+
var Ii = (
|
|
3317
3321
|
/** @class */
|
|
3318
3322
|
function() {
|
|
3319
3323
|
function e(t, n, r, i) {
|
|
@@ -3323,35 +3327,35 @@ var Pi = (
|
|
|
3323
3327
|
number: {},
|
|
3324
3328
|
dateTime: {},
|
|
3325
3329
|
pluralRules: {}
|
|
3326
|
-
}, this.format = function(
|
|
3327
|
-
var c = o.formatToParts(
|
|
3330
|
+
}, this.format = function(p) {
|
|
3331
|
+
var c = o.formatToParts(p);
|
|
3328
3332
|
if (c.length === 1)
|
|
3329
3333
|
return c[0].value;
|
|
3330
|
-
var
|
|
3331
|
-
return !g.length || b.type !==
|
|
3334
|
+
var d = c.reduce(function(g, b) {
|
|
3335
|
+
return !g.length || b.type !== J.literal || typeof g[g.length - 1] != "string" ? g.push(b.value) : g[g.length - 1] += b.value, g;
|
|
3332
3336
|
}, []);
|
|
3333
|
-
return
|
|
3334
|
-
}, this.formatToParts = function(
|
|
3335
|
-
return
|
|
3337
|
+
return d.length <= 1 ? d[0] || "" : d;
|
|
3338
|
+
}, this.formatToParts = function(p) {
|
|
3339
|
+
return ct(o.ast, o.locales, o.formatters, o.formats, p, void 0, o.message);
|
|
3336
3340
|
}, this.resolvedOptions = function() {
|
|
3337
|
-
var
|
|
3341
|
+
var p;
|
|
3338
3342
|
return {
|
|
3339
|
-
locale: ((
|
|
3343
|
+
locale: ((p = o.resolvedLocale) === null || p === void 0 ? void 0 : p.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3340
3344
|
};
|
|
3341
3345
|
}, this.getAst = function() {
|
|
3342
3346
|
return o.ast;
|
|
3343
3347
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3344
3348
|
if (this.message = t, !e.__parse)
|
|
3345
3349
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3346
|
-
var
|
|
3347
|
-
|
|
3348
|
-
var s = Xr(
|
|
3349
|
-
this.ast = e.__parse(t,
|
|
3350
|
+
var l = i || {};
|
|
3351
|
+
l.formatters;
|
|
3352
|
+
var s = Xr(l, ["formatters"]);
|
|
3353
|
+
this.ast = e.__parse(t, ce(ce({}, s), { locale: this.resolvedLocale }));
|
|
3350
3354
|
} else
|
|
3351
3355
|
this.ast = t;
|
|
3352
3356
|
if (!Array.isArray(this.ast))
|
|
3353
3357
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3354
|
-
this.formats =
|
|
3358
|
+
this.formats = Mi(e.formats, r), this.formatters = i && i.formatters || Pi(this.formatterCache);
|
|
3355
3359
|
}
|
|
3356
3360
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3357
3361
|
get: function() {
|
|
@@ -3364,7 +3368,7 @@ var Pi = (
|
|
|
3364
3368
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3365
3369
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3366
3370
|
}
|
|
3367
|
-
}, e.__parse =
|
|
3371
|
+
}, e.__parse = Ci, e.formats = {
|
|
3368
3372
|
number: {
|
|
3369
3373
|
integer: {
|
|
3370
3374
|
maximumFractionDigits: 0
|
|
@@ -3425,7 +3429,7 @@ var Pi = (
|
|
|
3425
3429
|
}, e;
|
|
3426
3430
|
}()
|
|
3427
3431
|
);
|
|
3428
|
-
function
|
|
3432
|
+
function Di(e, t) {
|
|
3429
3433
|
if (t == null)
|
|
3430
3434
|
return;
|
|
3431
3435
|
if (t in e)
|
|
@@ -3446,33 +3450,33 @@ function Ii(e, t) {
|
|
|
3446
3450
|
r = void 0;
|
|
3447
3451
|
return r;
|
|
3448
3452
|
}
|
|
3449
|
-
const Be = {},
|
|
3453
|
+
const Be = {}, Fi = (e, t, n) => n && (t in Be || (Be[t] = {}), e in Be[t] || (Be[t][e] = n), n), zn = (e, t) => {
|
|
3450
3454
|
if (t == null)
|
|
3451
3455
|
return;
|
|
3452
3456
|
if (t in Be && e in Be[t])
|
|
3453
3457
|
return Be[t][e];
|
|
3454
3458
|
const n = xt(t);
|
|
3455
3459
|
for (let r = 0; r < n.length; r++) {
|
|
3456
|
-
const i = n[r], o =
|
|
3460
|
+
const i = n[r], o = Gi(i, e);
|
|
3457
3461
|
if (o)
|
|
3458
|
-
return
|
|
3462
|
+
return Fi(e, t, o);
|
|
3459
3463
|
}
|
|
3460
3464
|
};
|
|
3461
3465
|
let Jt;
|
|
3462
3466
|
const nt = yt({});
|
|
3463
|
-
function
|
|
3467
|
+
function Ui(e) {
|
|
3464
3468
|
return Jt[e] || null;
|
|
3465
3469
|
}
|
|
3466
3470
|
function Wn(e) {
|
|
3467
3471
|
return e in Jt;
|
|
3468
3472
|
}
|
|
3469
|
-
function
|
|
3473
|
+
function Gi(e, t) {
|
|
3470
3474
|
if (!Wn(e))
|
|
3471
3475
|
return null;
|
|
3472
|
-
const n =
|
|
3473
|
-
return
|
|
3476
|
+
const n = Ui(e);
|
|
3477
|
+
return Di(n, t);
|
|
3474
3478
|
}
|
|
3475
|
-
function
|
|
3479
|
+
function ji(e) {
|
|
3476
3480
|
if (e == null)
|
|
3477
3481
|
return;
|
|
3478
3482
|
const t = xt(e);
|
|
@@ -3490,12 +3494,12 @@ ke(
|
|
|
3490
3494
|
([e]) => Object.keys(e)
|
|
3491
3495
|
);
|
|
3492
3496
|
nt.subscribe((e) => Jt = e);
|
|
3493
|
-
const
|
|
3497
|
+
const ft = {};
|
|
3494
3498
|
function ki(e, t) {
|
|
3495
|
-
|
|
3499
|
+
ft[e].delete(t), ft[e].size === 0 && delete ft[e];
|
|
3496
3500
|
}
|
|
3497
3501
|
function qn(e) {
|
|
3498
|
-
return
|
|
3502
|
+
return ft[e];
|
|
3499
3503
|
}
|
|
3500
3504
|
function $i(e) {
|
|
3501
3505
|
return xt(e).map((t) => {
|
|
@@ -3503,7 +3507,7 @@ function $i(e) {
|
|
|
3503
3507
|
return [t, n ? [...n] : []];
|
|
3504
3508
|
}).filter(([, t]) => t.length > 0);
|
|
3505
3509
|
}
|
|
3506
|
-
function
|
|
3510
|
+
function Wt(e) {
|
|
3507
3511
|
return e == null ? !1 : xt(e).some(
|
|
3508
3512
|
(t) => {
|
|
3509
3513
|
var n;
|
|
@@ -3511,27 +3515,27 @@ function Xt(e) {
|
|
|
3511
3515
|
}
|
|
3512
3516
|
);
|
|
3513
3517
|
}
|
|
3514
|
-
function
|
|
3518
|
+
function Vi(e, t) {
|
|
3515
3519
|
return Promise.all(
|
|
3516
3520
|
t.map((r) => (ki(e, r), r().then((i) => i.default || i)))
|
|
3517
3521
|
).then((r) => Zn(e, ...r));
|
|
3518
3522
|
}
|
|
3519
3523
|
const Je = {};
|
|
3520
3524
|
function Qn(e) {
|
|
3521
|
-
if (!
|
|
3525
|
+
if (!Wt(e))
|
|
3522
3526
|
return e in Je ? Je[e] : Promise.resolve();
|
|
3523
3527
|
const t = $i(e);
|
|
3524
3528
|
return Je[e] = Promise.all(
|
|
3525
3529
|
t.map(
|
|
3526
|
-
([n, r]) =>
|
|
3530
|
+
([n, r]) => Vi(n, r)
|
|
3527
3531
|
)
|
|
3528
3532
|
).then(() => {
|
|
3529
|
-
if (
|
|
3533
|
+
if (Wt(e))
|
|
3530
3534
|
return Qn(e);
|
|
3531
3535
|
delete Je[e];
|
|
3532
3536
|
}), Je[e];
|
|
3533
3537
|
}
|
|
3534
|
-
const
|
|
3538
|
+
const Xi = {
|
|
3535
3539
|
number: {
|
|
3536
3540
|
scientific: { notation: "scientific" },
|
|
3537
3541
|
engineering: { notation: "engineering" },
|
|
@@ -3560,57 +3564,57 @@ const Vi = {
|
|
|
3560
3564
|
timeZoneName: "short"
|
|
3561
3565
|
}
|
|
3562
3566
|
}
|
|
3563
|
-
},
|
|
3567
|
+
}, zi = {
|
|
3564
3568
|
fallbackLocale: null,
|
|
3565
3569
|
loadingDelay: 200,
|
|
3566
|
-
formats:
|
|
3570
|
+
formats: Xi,
|
|
3567
3571
|
warnOnMissingMessages: !0,
|
|
3568
3572
|
handleMissingMessage: void 0,
|
|
3569
3573
|
ignoreTag: !0
|
|
3570
|
-
},
|
|
3571
|
-
function
|
|
3572
|
-
return
|
|
3574
|
+
}, Wi = zi;
|
|
3575
|
+
function Ge() {
|
|
3576
|
+
return Wi;
|
|
3573
3577
|
}
|
|
3574
|
-
const
|
|
3575
|
-
var
|
|
3578
|
+
const It = yt(!1);
|
|
3579
|
+
var Zi = Object.defineProperty, qi = Object.defineProperties, Qi = Object.getOwnPropertyDescriptors, fn = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, dn = (e, t, n) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ki = (e, t) => {
|
|
3576
3580
|
for (var n in t || (t = {}))
|
|
3577
|
-
|
|
3581
|
+
Ji.call(t, n) && dn(e, n, t[n]);
|
|
3578
3582
|
if (fn)
|
|
3579
3583
|
for (var n of fn(t))
|
|
3580
|
-
|
|
3584
|
+
Yi.call(t, n) && dn(e, n, t[n]);
|
|
3581
3585
|
return e;
|
|
3582
|
-
},
|
|
3583
|
-
let
|
|
3586
|
+
}, eo = (e, t) => qi(e, Qi(t));
|
|
3587
|
+
let Zt;
|
|
3584
3588
|
const gt = yt(null);
|
|
3585
3589
|
function pn(e) {
|
|
3586
3590
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3587
3591
|
}
|
|
3588
|
-
function xt(e, t =
|
|
3592
|
+
function xt(e, t = Ge().fallbackLocale) {
|
|
3589
3593
|
const n = pn(e);
|
|
3590
3594
|
return t ? [.../* @__PURE__ */ new Set([...n, ...pn(t)])] : n;
|
|
3591
3595
|
}
|
|
3592
|
-
function
|
|
3593
|
-
return
|
|
3596
|
+
function He() {
|
|
3597
|
+
return Zt ?? void 0;
|
|
3594
3598
|
}
|
|
3595
3599
|
gt.subscribe((e) => {
|
|
3596
|
-
|
|
3600
|
+
Zt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3597
3601
|
});
|
|
3598
|
-
const
|
|
3599
|
-
if (e &&
|
|
3600
|
-
const { loadingDelay: t } =
|
|
3602
|
+
const to = (e) => {
|
|
3603
|
+
if (e && ji(e) && Wt(e)) {
|
|
3604
|
+
const { loadingDelay: t } = Ge();
|
|
3601
3605
|
let n;
|
|
3602
|
-
return typeof window < "u" &&
|
|
3603
|
-
() =>
|
|
3606
|
+
return typeof window < "u" && He() != null && t ? n = window.setTimeout(
|
|
3607
|
+
() => It.set(!0),
|
|
3604
3608
|
t
|
|
3605
|
-
) :
|
|
3609
|
+
) : It.set(!0), Qn(e).then(() => {
|
|
3606
3610
|
gt.set(e);
|
|
3607
3611
|
}).finally(() => {
|
|
3608
|
-
clearTimeout(n),
|
|
3612
|
+
clearTimeout(n), It.set(!1);
|
|
3609
3613
|
});
|
|
3610
3614
|
}
|
|
3611
3615
|
return gt.set(e);
|
|
3612
|
-
}, $e = Ki(
|
|
3613
|
-
set:
|
|
3616
|
+
}, $e = eo(Ki({}, gt), {
|
|
3617
|
+
set: to
|
|
3614
3618
|
}), _t = (e) => {
|
|
3615
3619
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3616
3620
|
return (r) => {
|
|
@@ -3618,14 +3622,14 @@ const eo = (e) => {
|
|
|
3618
3622
|
return i in t ? t[i] : t[i] = e(r);
|
|
3619
3623
|
};
|
|
3620
3624
|
};
|
|
3621
|
-
var
|
|
3625
|
+
var no = Object.defineProperty, bt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, mn = (e, t, n) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yt = (e, t) => {
|
|
3622
3626
|
for (var n in t || (t = {}))
|
|
3623
3627
|
Jn.call(t, n) && mn(e, n, t[n]);
|
|
3624
3628
|
if (bt)
|
|
3625
3629
|
for (var n of bt(t))
|
|
3626
3630
|
Yn.call(t, n) && mn(e, n, t[n]);
|
|
3627
3631
|
return e;
|
|
3628
|
-
},
|
|
3632
|
+
}, Ve = (e, t) => {
|
|
3629
3633
|
var n = {};
|
|
3630
3634
|
for (var r in e)
|
|
3631
3635
|
Jn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -3635,84 +3639,84 @@ var to = Object.defineProperty, bt = Object.getOwnPropertySymbols, Jn = Object.p
|
|
|
3635
3639
|
return n;
|
|
3636
3640
|
};
|
|
3637
3641
|
const tt = (e, t) => {
|
|
3638
|
-
const { formats: n } =
|
|
3642
|
+
const { formats: n } = Ge();
|
|
3639
3643
|
if (e in n && t in n[e])
|
|
3640
3644
|
return n[e][t];
|
|
3641
3645
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3642
|
-
},
|
|
3646
|
+
}, ro = _t(
|
|
3643
3647
|
(e) => {
|
|
3644
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3648
|
+
var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
|
|
3645
3649
|
if (n == null)
|
|
3646
3650
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3647
3651
|
return r && (i = tt("number", r)), new Intl.NumberFormat(n, i);
|
|
3648
3652
|
}
|
|
3649
|
-
),
|
|
3653
|
+
), io = _t(
|
|
3650
3654
|
(e) => {
|
|
3651
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3655
|
+
var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
|
|
3652
3656
|
if (n == null)
|
|
3653
3657
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3654
3658
|
return r ? i = tt("date", r) : Object.keys(i).length === 0 && (i = tt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3655
3659
|
}
|
|
3656
|
-
),
|
|
3660
|
+
), oo = _t(
|
|
3657
3661
|
(e) => {
|
|
3658
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3662
|
+
var t = e, { locale: n, format: r } = t, i = Ve(t, ["locale", "format"]);
|
|
3659
3663
|
if (n == null)
|
|
3660
3664
|
throw new Error(
|
|
3661
3665
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3662
3666
|
);
|
|
3663
3667
|
return r ? i = tt("time", r) : Object.keys(i).length === 0 && (i = tt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3664
3668
|
}
|
|
3665
|
-
),
|
|
3666
|
-
var t = e, {
|
|
3667
|
-
locale: n = Ce()
|
|
3668
|
-
} = t, r = je(t, [
|
|
3669
|
-
"locale"
|
|
3670
|
-
]);
|
|
3671
|
-
return no(Yt({ locale: n }, r));
|
|
3672
|
-
}, ao = (e = {}) => {
|
|
3669
|
+
), ao = (e = {}) => {
|
|
3673
3670
|
var t = e, {
|
|
3674
|
-
locale: n =
|
|
3675
|
-
} = t, r =
|
|
3671
|
+
locale: n = He()
|
|
3672
|
+
} = t, r = Ve(t, [
|
|
3676
3673
|
"locale"
|
|
3677
3674
|
]);
|
|
3678
3675
|
return ro(Yt({ locale: n }, r));
|
|
3679
3676
|
}, so = (e = {}) => {
|
|
3680
3677
|
var t = e, {
|
|
3681
|
-
locale: n =
|
|
3682
|
-
} = t, r =
|
|
3678
|
+
locale: n = He()
|
|
3679
|
+
} = t, r = Ve(t, [
|
|
3683
3680
|
"locale"
|
|
3684
3681
|
]);
|
|
3685
3682
|
return io(Yt({ locale: n }, r));
|
|
3686
|
-
}, uo =
|
|
3683
|
+
}, uo = (e = {}) => {
|
|
3684
|
+
var t = e, {
|
|
3685
|
+
locale: n = He()
|
|
3686
|
+
} = t, r = Ve(t, [
|
|
3687
|
+
"locale"
|
|
3688
|
+
]);
|
|
3689
|
+
return oo(Yt({ locale: n }, r));
|
|
3690
|
+
}, lo = _t(
|
|
3687
3691
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3688
|
-
(e, t =
|
|
3689
|
-
ignoreTag:
|
|
3692
|
+
(e, t = He()) => new Ii(e, t, Ge().formats, {
|
|
3693
|
+
ignoreTag: Ge().ignoreTag
|
|
3690
3694
|
})
|
|
3691
|
-
),
|
|
3695
|
+
), ho = (e, t = {}) => {
|
|
3692
3696
|
var n, r, i, o;
|
|
3693
|
-
let
|
|
3694
|
-
typeof e == "object" && (
|
|
3697
|
+
let l = t;
|
|
3698
|
+
typeof e == "object" && (l = e, e = l.id);
|
|
3695
3699
|
const {
|
|
3696
3700
|
values: s,
|
|
3697
|
-
locale:
|
|
3701
|
+
locale: p = He(),
|
|
3698
3702
|
default: c
|
|
3699
|
-
} =
|
|
3700
|
-
if (
|
|
3703
|
+
} = l;
|
|
3704
|
+
if (p == null)
|
|
3701
3705
|
throw new Error(
|
|
3702
3706
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3703
3707
|
);
|
|
3704
|
-
let
|
|
3705
|
-
if (!
|
|
3706
|
-
|
|
3707
|
-
else if (typeof
|
|
3708
|
+
let d = zn(e, p);
|
|
3709
|
+
if (!d)
|
|
3710
|
+
d = (o = (i = (r = (n = Ge()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: p, id: e, defaultValue: c })) != null ? i : c) != null ? o : e;
|
|
3711
|
+
else if (typeof d != "string")
|
|
3708
3712
|
return console.warn(
|
|
3709
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3710
|
-
),
|
|
3713
|
+
`[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.`
|
|
3714
|
+
), d;
|
|
3711
3715
|
if (!s)
|
|
3712
|
-
return
|
|
3713
|
-
let g =
|
|
3716
|
+
return d;
|
|
3717
|
+
let g = d;
|
|
3714
3718
|
try {
|
|
3715
|
-
g =
|
|
3719
|
+
g = lo(d, p).format(s);
|
|
3716
3720
|
} catch (b) {
|
|
3717
3721
|
b instanceof Error && console.warn(
|
|
3718
3722
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3720,15 +3724,15 @@ const tt = (e, t) => {
|
|
|
3720
3724
|
);
|
|
3721
3725
|
}
|
|
3722
3726
|
return g;
|
|
3723
|
-
},
|
|
3724
|
-
ke([$e], () => ho);
|
|
3727
|
+
}, co = (e, t) => uo(t).format(e), fo = (e, t) => so(t).format(e), po = (e, t) => ao(t).format(e), mo = (e, t = He()) => zn(e, t), go = ke([$e, nt], () => ho);
|
|
3725
3728
|
ke([$e], () => co);
|
|
3726
3729
|
ke([$e], () => fo);
|
|
3727
|
-
ke([$e
|
|
3730
|
+
ke([$e], () => po);
|
|
3731
|
+
ke([$e, nt], () => mo);
|
|
3728
3732
|
function gn(e, t) {
|
|
3729
3733
|
Zn(e, t);
|
|
3730
3734
|
}
|
|
3731
|
-
function
|
|
3735
|
+
function bo(e) {
|
|
3732
3736
|
$e.set(e);
|
|
3733
3737
|
}
|
|
3734
3738
|
const bn = {
|
|
@@ -3931,7 +3935,7 @@ const bn = {
|
|
|
3931
3935
|
Loading: "Loading ..."
|
|
3932
3936
|
}
|
|
3933
3937
|
};
|
|
3934
|
-
var
|
|
3938
|
+
var qt = { exports: {} };
|
|
3935
3939
|
/** @license
|
|
3936
3940
|
* eventsource.js
|
|
3937
3941
|
* Available under MIT License (MIT)
|
|
@@ -3939,27 +3943,27 @@ var Wt = { exports: {} };
|
|
|
3939
3943
|
*/
|
|
3940
3944
|
(function(e, t) {
|
|
3941
3945
|
(function(n) {
|
|
3942
|
-
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest,
|
|
3943
|
-
if (typeof window < "u" && typeof c < "u" && !("readyState" in c) && c.body == null && (c.readyState = "loading", window.addEventListener("load", function(
|
|
3946
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, p = n.EventSource, c = n.document, d = n.Promise, g = n.fetch, b = n.Response, _ = n.TextDecoder, B = n.TextEncoder, I = n.AbortController;
|
|
3947
|
+
if (typeof window < "u" && typeof c < "u" && !("readyState" in c) && c.body == null && (c.readyState = "loading", window.addEventListener("load", function(h) {
|
|
3944
3948
|
c.readyState = "complete";
|
|
3945
3949
|
}, !1)), o == null && s != null && (o = function() {
|
|
3946
3950
|
return new s("Microsoft.XMLHTTP");
|
|
3947
|
-
}), Object.create == null && (Object.create = function(
|
|
3948
|
-
function
|
|
3951
|
+
}), Object.create == null && (Object.create = function(h) {
|
|
3952
|
+
function a() {
|
|
3949
3953
|
}
|
|
3950
|
-
return
|
|
3954
|
+
return a.prototype = h, new a();
|
|
3951
3955
|
}), Date.now || (Date.now = function() {
|
|
3952
3956
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3953
3957
|
}), I == null) {
|
|
3954
|
-
var
|
|
3955
|
-
g = function(
|
|
3956
|
-
var
|
|
3957
|
-
return
|
|
3958
|
-
var m =
|
|
3959
|
-
return
|
|
3960
|
-
status:
|
|
3961
|
-
statusText:
|
|
3962
|
-
headers:
|
|
3958
|
+
var j = g;
|
|
3959
|
+
g = function(h, a) {
|
|
3960
|
+
var f = a.signal;
|
|
3961
|
+
return j(h, { headers: a.headers, credentials: a.credentials, cache: a.cache }).then(function(u) {
|
|
3962
|
+
var m = u.body.getReader();
|
|
3963
|
+
return f._reader = m, f._aborted && f._reader.cancel(), {
|
|
3964
|
+
status: u.status,
|
|
3965
|
+
statusText: u.statusText,
|
|
3966
|
+
headers: u.headers,
|
|
3963
3967
|
body: {
|
|
3964
3968
|
getReader: function() {
|
|
3965
3969
|
return m;
|
|
@@ -3976,408 +3980,408 @@ var Wt = { exports: {} };
|
|
|
3976
3980
|
};
|
|
3977
3981
|
};
|
|
3978
3982
|
}
|
|
3979
|
-
function
|
|
3983
|
+
function W() {
|
|
3980
3984
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
3981
3985
|
}
|
|
3982
|
-
|
|
3983
|
-
function
|
|
3984
|
-
if (
|
|
3985
|
-
return
|
|
3986
|
-
if (
|
|
3987
|
-
return
|
|
3988
|
-
if (
|
|
3989
|
-
return
|
|
3986
|
+
W.prototype.decode = function(h) {
|
|
3987
|
+
function a(C, R, S) {
|
|
3988
|
+
if (S === 1)
|
|
3989
|
+
return C >= 128 >> R && C << R <= 2047;
|
|
3990
|
+
if (S === 2)
|
|
3991
|
+
return C >= 2048 >> R && C << R <= 55295 || C >= 57344 >> R && C << R <= 65535;
|
|
3992
|
+
if (S === 3)
|
|
3993
|
+
return C >= 65536 >> R && C << R <= 1114111;
|
|
3990
3994
|
throw new Error();
|
|
3991
3995
|
}
|
|
3992
|
-
function
|
|
3993
|
-
if (
|
|
3994
|
-
return
|
|
3995
|
-
if (
|
|
3996
|
-
return
|
|
3997
|
-
if (
|
|
3996
|
+
function f(C, R) {
|
|
3997
|
+
if (C === 6 * 1)
|
|
3998
|
+
return R >> 6 > 15 ? 3 : R > 31 ? 2 : 1;
|
|
3999
|
+
if (C === 6 * 2)
|
|
4000
|
+
return R > 15 ? 3 : 2;
|
|
4001
|
+
if (C === 6 * 3)
|
|
3998
4002
|
return 3;
|
|
3999
4003
|
throw new Error();
|
|
4000
4004
|
}
|
|
4001
|
-
for (var
|
|
4002
|
-
var
|
|
4003
|
-
|
|
4005
|
+
for (var u = 65533, m = "", y = this.bitsNeeded, E = this.codePoint, x = 0; x < h.length; x += 1) {
|
|
4006
|
+
var T = h[x];
|
|
4007
|
+
y !== 0 && (T < 128 || T > 191 || !a(E << 6 | T & 63, y - 6, f(y, E))) && (y = 0, E = u, m += String.fromCharCode(E)), y === 0 ? (T >= 0 && T <= 127 ? (y = 0, E = T) : T >= 192 && T <= 223 ? (y = 6 * 1, E = T & 31) : T >= 224 && T <= 239 ? (y = 6 * 2, E = T & 15) : T >= 240 && T <= 247 ? (y = 6 * 3, E = T & 7) : (y = 0, E = u), y !== 0 && !a(E, y, f(y, E)) && (y = 0, E = u)) : (y -= 6, E = E << 6 | T & 63), y === 0 && (E <= 65535 ? m += String.fromCharCode(E) : (m += String.fromCharCode(55296 + (E - 65535 - 1 >> 10)), m += String.fromCharCode(56320 + (E - 65535 - 1 & 1023))));
|
|
4004
4008
|
}
|
|
4005
|
-
return this.bitsNeeded =
|
|
4009
|
+
return this.bitsNeeded = y, this.codePoint = E, m;
|
|
4006
4010
|
};
|
|
4007
4011
|
var U = function() {
|
|
4008
4012
|
try {
|
|
4009
4013
|
return new _().decode(new B().encode("test"), { stream: !0 }) === "test";
|
|
4010
|
-
} catch (
|
|
4011
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " +
|
|
4014
|
+
} catch (h) {
|
|
4015
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
|
|
4012
4016
|
}
|
|
4013
4017
|
return !1;
|
|
4014
4018
|
};
|
|
4015
|
-
(_ == null || B == null || !U()) && (_ =
|
|
4016
|
-
var
|
|
4019
|
+
(_ == null || B == null || !U()) && (_ = W);
|
|
4020
|
+
var w = function() {
|
|
4017
4021
|
};
|
|
4018
|
-
function
|
|
4019
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
4022
|
+
function A(h) {
|
|
4023
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = w, this.onload = w, this.onerror = w, this.onreadystatechange = w, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = w;
|
|
4020
4024
|
}
|
|
4021
|
-
|
|
4025
|
+
A.prototype.open = function(h, a) {
|
|
4022
4026
|
this._abort(!0);
|
|
4023
|
-
var
|
|
4024
|
-
this._abort = function(
|
|
4025
|
-
|
|
4027
|
+
var f = this, u = this._xhr, m = 1, y = 0;
|
|
4028
|
+
this._abort = function(S) {
|
|
4029
|
+
f._sendTimeout !== 0 && (i(f._sendTimeout), f._sendTimeout = 0), (m === 1 || m === 2 || m === 3) && (m = 4, u.onload = w, u.onerror = w, u.onabort = w, u.onprogress = w, u.onreadystatechange = w, u.abort(), y !== 0 && (i(y), y = 0), S || (f.readyState = 4, f.onabort(null), f.onreadystatechange())), m = 0;
|
|
4026
4030
|
};
|
|
4027
|
-
var
|
|
4031
|
+
var E = function() {
|
|
4028
4032
|
if (m === 1) {
|
|
4029
|
-
var
|
|
4030
|
-
if ("contentType" in
|
|
4031
|
-
|
|
4033
|
+
var S = 0, N = "", me = void 0;
|
|
4034
|
+
if ("contentType" in u)
|
|
4035
|
+
S = 200, N = "OK", me = u.contentType;
|
|
4032
4036
|
else
|
|
4033
4037
|
try {
|
|
4034
|
-
|
|
4038
|
+
S = u.status, N = u.statusText, me = u.getResponseHeader("Content-Type");
|
|
4035
4039
|
} catch {
|
|
4036
|
-
|
|
4040
|
+
S = 0, N = "", me = void 0;
|
|
4037
4041
|
}
|
|
4038
|
-
|
|
4042
|
+
S !== 0 && (m = 2, f.readyState = 2, f.status = S, f.statusText = N, f._contentType = me, f.onreadystatechange());
|
|
4039
4043
|
}
|
|
4040
|
-
},
|
|
4041
|
-
if (
|
|
4044
|
+
}, x = function() {
|
|
4045
|
+
if (E(), m === 2 || m === 3) {
|
|
4042
4046
|
m = 3;
|
|
4043
|
-
var
|
|
4047
|
+
var S = "";
|
|
4044
4048
|
try {
|
|
4045
|
-
|
|
4049
|
+
S = u.responseText;
|
|
4046
4050
|
} catch {
|
|
4047
4051
|
}
|
|
4048
|
-
|
|
4052
|
+
f.readyState = 3, f.responseText = S, f.onprogress();
|
|
4049
4053
|
}
|
|
4050
|
-
},
|
|
4051
|
-
if ((
|
|
4052
|
-
preventDefault:
|
|
4053
|
-
}),
|
|
4054
|
-
if (m = 4,
|
|
4055
|
-
|
|
4056
|
-
else if (
|
|
4057
|
-
|
|
4058
|
-
else if (
|
|
4059
|
-
|
|
4054
|
+
}, T = function(S, N) {
|
|
4055
|
+
if ((N == null || N.preventDefault == null) && (N = {
|
|
4056
|
+
preventDefault: w
|
|
4057
|
+
}), x(), m === 1 || m === 2 || m === 3) {
|
|
4058
|
+
if (m = 4, y !== 0 && (i(y), y = 0), f.readyState = 4, S === "load")
|
|
4059
|
+
f.onload(N);
|
|
4060
|
+
else if (S === "error")
|
|
4061
|
+
f.onerror(N);
|
|
4062
|
+
else if (S === "abort")
|
|
4063
|
+
f.onabort(N);
|
|
4060
4064
|
else
|
|
4061
4065
|
throw new TypeError();
|
|
4062
|
-
|
|
4066
|
+
f.onreadystatechange();
|
|
4063
4067
|
}
|
|
4064
|
-
},
|
|
4065
|
-
|
|
4066
|
-
},
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
}, 500),
|
|
4068
|
+
}, C = function(S) {
|
|
4069
|
+
u != null && (u.readyState === 4 ? (!("onload" in u) || !("onerror" in u) || !("onabort" in u)) && T(u.responseText === "" ? "error" : "load", S) : u.readyState === 3 ? "onprogress" in u || x() : u.readyState === 2 && E());
|
|
4070
|
+
}, R = function() {
|
|
4071
|
+
y = r(function() {
|
|
4072
|
+
R();
|
|
4073
|
+
}, 500), u.readyState === 3 && x();
|
|
4070
4074
|
};
|
|
4071
|
-
"onload" in
|
|
4072
|
-
|
|
4073
|
-
}), "onerror" in
|
|
4074
|
-
|
|
4075
|
-
}), "onabort" in
|
|
4076
|
-
|
|
4077
|
-
}), "onprogress" in
|
|
4078
|
-
|
|
4079
|
-
}), ("contentType" in
|
|
4080
|
-
|
|
4075
|
+
"onload" in u && (u.onload = function(S) {
|
|
4076
|
+
T("load", S);
|
|
4077
|
+
}), "onerror" in u && (u.onerror = function(S) {
|
|
4078
|
+
T("error", S);
|
|
4079
|
+
}), "onabort" in u && (u.onabort = function(S) {
|
|
4080
|
+
T("abort", S);
|
|
4081
|
+
}), "onprogress" in u && (u.onprogress = x), "onreadystatechange" in u && (u.onreadystatechange = function(S) {
|
|
4082
|
+
C(S);
|
|
4083
|
+
}), ("contentType" in u || !("ontimeout" in o.prototype)) && (a += (a.indexOf("?") === -1 ? "?" : "&") + "padding=true"), u.open(h, a, !0), "readyState" in u && (y = r(function() {
|
|
4084
|
+
R();
|
|
4081
4085
|
}, 0));
|
|
4082
|
-
},
|
|
4086
|
+
}, A.prototype.abort = function() {
|
|
4083
4087
|
this._abort(!1);
|
|
4084
|
-
},
|
|
4088
|
+
}, A.prototype.getResponseHeader = function(h) {
|
|
4085
4089
|
return this._contentType;
|
|
4086
|
-
},
|
|
4087
|
-
var
|
|
4088
|
-
"setRequestHeader" in
|
|
4089
|
-
},
|
|
4090
|
+
}, A.prototype.setRequestHeader = function(h, a) {
|
|
4091
|
+
var f = this._xhr;
|
|
4092
|
+
"setRequestHeader" in f && f.setRequestHeader(h, a);
|
|
4093
|
+
}, A.prototype.getAllResponseHeaders = function() {
|
|
4090
4094
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4091
|
-
},
|
|
4095
|
+
}, A.prototype.send = function() {
|
|
4092
4096
|
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && c != null && c.readyState != null && c.readyState !== "complete") {
|
|
4093
|
-
var
|
|
4094
|
-
|
|
4095
|
-
|
|
4097
|
+
var h = this;
|
|
4098
|
+
h._sendTimeout = r(function() {
|
|
4099
|
+
h._sendTimeout = 0, h.send();
|
|
4096
4100
|
}, 4);
|
|
4097
4101
|
return;
|
|
4098
4102
|
}
|
|
4099
|
-
var
|
|
4100
|
-
"withCredentials" in
|
|
4103
|
+
var a = this._xhr;
|
|
4104
|
+
"withCredentials" in a && (a.withCredentials = this.withCredentials);
|
|
4101
4105
|
try {
|
|
4102
|
-
|
|
4103
|
-
} catch (
|
|
4104
|
-
throw
|
|
4106
|
+
a.send(void 0);
|
|
4107
|
+
} catch (f) {
|
|
4108
|
+
throw f;
|
|
4105
4109
|
}
|
|
4106
4110
|
};
|
|
4107
|
-
function P(
|
|
4108
|
-
return
|
|
4109
|
-
return String.fromCharCode(
|
|
4111
|
+
function P(h) {
|
|
4112
|
+
return h.replace(/[A-Z]/g, function(a) {
|
|
4113
|
+
return String.fromCharCode(a.charCodeAt(0) + 32);
|
|
4110
4114
|
});
|
|
4111
4115
|
}
|
|
4112
|
-
function
|
|
4113
|
-
for (var
|
|
4114
|
-
`),
|
|
4115
|
-
var m =
|
|
4116
|
-
|
|
4116
|
+
function L(h) {
|
|
4117
|
+
for (var a = /* @__PURE__ */ Object.create(null), f = h.split(`\r
|
|
4118
|
+
`), u = 0; u < f.length; u += 1) {
|
|
4119
|
+
var m = f[u], y = m.split(": "), E = y.shift(), x = y.join(": ");
|
|
4120
|
+
a[P(E)] = x;
|
|
4117
4121
|
}
|
|
4118
|
-
this._map =
|
|
4122
|
+
this._map = a;
|
|
4119
4123
|
}
|
|
4120
|
-
|
|
4121
|
-
return this._map[P(
|
|
4124
|
+
L.prototype.get = function(h) {
|
|
4125
|
+
return this._map[P(h)];
|
|
4122
4126
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4123
|
-
function
|
|
4127
|
+
function Y() {
|
|
4124
4128
|
}
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
var
|
|
4128
|
-
|
|
4129
|
-
var
|
|
4130
|
-
|
|
4131
|
-
},
|
|
4132
|
-
|
|
4133
|
-
},
|
|
4134
|
-
|
|
4135
|
-
},
|
|
4136
|
-
|
|
4137
|
-
},
|
|
4138
|
-
if (
|
|
4139
|
-
var
|
|
4140
|
-
|
|
4129
|
+
Y.prototype.open = function(h, a, f, u, m, y, E) {
|
|
4130
|
+
h.open("GET", m);
|
|
4131
|
+
var x = 0;
|
|
4132
|
+
h.onprogress = function() {
|
|
4133
|
+
var C = h.responseText, R = C.slice(x);
|
|
4134
|
+
x += R.length, f(R);
|
|
4135
|
+
}, h.onerror = function(C) {
|
|
4136
|
+
C.preventDefault(), u(new Error("NetworkError"));
|
|
4137
|
+
}, h.onload = function() {
|
|
4138
|
+
u(null);
|
|
4139
|
+
}, h.onabort = function() {
|
|
4140
|
+
u(null);
|
|
4141
|
+
}, h.onreadystatechange = function() {
|
|
4142
|
+
if (h.readyState === o.HEADERS_RECEIVED) {
|
|
4143
|
+
var C = h.status, R = h.statusText, S = h.getResponseHeader("Content-Type"), N = h.getAllResponseHeaders();
|
|
4144
|
+
a(C, R, S, new L(N));
|
|
4141
4145
|
}
|
|
4142
|
-
},
|
|
4143
|
-
for (var
|
|
4144
|
-
Object.prototype.hasOwnProperty.call(
|
|
4145
|
-
return
|
|
4146
|
+
}, h.withCredentials = y;
|
|
4147
|
+
for (var T in E)
|
|
4148
|
+
Object.prototype.hasOwnProperty.call(E, T) && h.setRequestHeader(T, E[T]);
|
|
4149
|
+
return h.send(), h;
|
|
4146
4150
|
};
|
|
4147
|
-
function
|
|
4148
|
-
this._headers =
|
|
4151
|
+
function xe(h) {
|
|
4152
|
+
this._headers = h;
|
|
4149
4153
|
}
|
|
4150
|
-
|
|
4151
|
-
return this._headers.get(
|
|
4154
|
+
xe.prototype.get = function(h) {
|
|
4155
|
+
return this._headers.get(h);
|
|
4152
4156
|
};
|
|
4153
|
-
function
|
|
4157
|
+
function de() {
|
|
4154
4158
|
}
|
|
4155
|
-
|
|
4156
|
-
var
|
|
4159
|
+
de.prototype.open = function(h, a, f, u, m, y, E) {
|
|
4160
|
+
var x = null, T = new I(), C = T.signal, R = new _();
|
|
4157
4161
|
return g(m, {
|
|
4158
|
-
headers:
|
|
4159
|
-
credentials:
|
|
4160
|
-
signal:
|
|
4162
|
+
headers: E,
|
|
4163
|
+
credentials: y ? "include" : "same-origin",
|
|
4164
|
+
signal: C,
|
|
4161
4165
|
cache: "no-store"
|
|
4162
|
-
}).then(function(
|
|
4163
|
-
return
|
|
4166
|
+
}).then(function(S) {
|
|
4167
|
+
return x = S.body.getReader(), a(S.status, S.statusText, S.headers.get("Content-Type"), new xe(S.headers)), new d(function(N, me) {
|
|
4164
4168
|
var qe = function() {
|
|
4165
|
-
|
|
4166
|
-
if (
|
|
4167
|
-
|
|
4169
|
+
x.read().then(function(ee) {
|
|
4170
|
+
if (ee.done)
|
|
4171
|
+
N(void 0);
|
|
4168
4172
|
else {
|
|
4169
|
-
var
|
|
4170
|
-
|
|
4173
|
+
var Z = R.decode(ee.value, { stream: !0 });
|
|
4174
|
+
f(Z), qe();
|
|
4171
4175
|
}
|
|
4172
|
-
}).catch(function(
|
|
4173
|
-
|
|
4176
|
+
}).catch(function(ee) {
|
|
4177
|
+
me(ee);
|
|
4174
4178
|
});
|
|
4175
4179
|
};
|
|
4176
4180
|
qe();
|
|
4177
4181
|
});
|
|
4178
|
-
}).catch(function(
|
|
4179
|
-
if (
|
|
4180
|
-
return
|
|
4181
|
-
}).then(function(
|
|
4182
|
-
|
|
4182
|
+
}).catch(function(S) {
|
|
4183
|
+
if (S.name !== "AbortError")
|
|
4184
|
+
return S;
|
|
4185
|
+
}).then(function(S) {
|
|
4186
|
+
u(S);
|
|
4183
4187
|
}), {
|
|
4184
4188
|
abort: function() {
|
|
4185
|
-
|
|
4189
|
+
x?.cancel(), T.abort();
|
|
4186
4190
|
}
|
|
4187
4191
|
};
|
|
4188
4192
|
};
|
|
4189
|
-
function
|
|
4193
|
+
function re() {
|
|
4190
4194
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4191
4195
|
}
|
|
4192
|
-
function
|
|
4196
|
+
function ae(h) {
|
|
4193
4197
|
r(function() {
|
|
4194
|
-
throw
|
|
4198
|
+
throw h;
|
|
4195
4199
|
}, 0);
|
|
4196
4200
|
}
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
var
|
|
4200
|
-
if (
|
|
4201
|
-
for (var
|
|
4202
|
-
var m =
|
|
4201
|
+
re.prototype.dispatchEvent = function(h) {
|
|
4202
|
+
h.target = this;
|
|
4203
|
+
var a = this._listeners[h.type];
|
|
4204
|
+
if (a != null)
|
|
4205
|
+
for (var f = a.length, u = 0; u < f; u += 1) {
|
|
4206
|
+
var m = a[u];
|
|
4203
4207
|
try {
|
|
4204
|
-
typeof m.handleEvent == "function" ? m.handleEvent(
|
|
4205
|
-
} catch (
|
|
4206
|
-
|
|
4208
|
+
typeof m.handleEvent == "function" ? m.handleEvent(h) : m.call(this, h);
|
|
4209
|
+
} catch (y) {
|
|
4210
|
+
ae(y);
|
|
4207
4211
|
}
|
|
4208
4212
|
}
|
|
4209
|
-
},
|
|
4210
|
-
|
|
4211
|
-
var
|
|
4212
|
-
|
|
4213
|
-
for (var m = !1,
|
|
4214
|
-
|
|
4215
|
-
m ||
|
|
4216
|
-
},
|
|
4217
|
-
|
|
4218
|
-
var
|
|
4219
|
-
if (
|
|
4220
|
-
for (var m = [],
|
|
4221
|
-
|
|
4222
|
-
m.length === 0 ? delete
|
|
4213
|
+
}, re.prototype.addEventListener = function(h, a) {
|
|
4214
|
+
h = String(h);
|
|
4215
|
+
var f = this._listeners, u = f[h];
|
|
4216
|
+
u == null && (u = [], f[h] = u);
|
|
4217
|
+
for (var m = !1, y = 0; y < u.length; y += 1)
|
|
4218
|
+
u[y] === a && (m = !0);
|
|
4219
|
+
m || u.push(a);
|
|
4220
|
+
}, re.prototype.removeEventListener = function(h, a) {
|
|
4221
|
+
h = String(h);
|
|
4222
|
+
var f = this._listeners, u = f[h];
|
|
4223
|
+
if (u != null) {
|
|
4224
|
+
for (var m = [], y = 0; y < u.length; y += 1)
|
|
4225
|
+
u[y] !== a && m.push(u[y]);
|
|
4226
|
+
m.length === 0 ? delete f[h] : f[h] = m;
|
|
4223
4227
|
}
|
|
4224
4228
|
};
|
|
4225
|
-
function
|
|
4226
|
-
this.type =
|
|
4229
|
+
function ie(h) {
|
|
4230
|
+
this.type = h, this.target = void 0;
|
|
4227
4231
|
}
|
|
4228
|
-
function
|
|
4229
|
-
|
|
4232
|
+
function v(h, a) {
|
|
4233
|
+
ie.call(this, h), this.data = a.data, this.lastEventId = a.lastEventId;
|
|
4230
4234
|
}
|
|
4231
|
-
|
|
4232
|
-
function
|
|
4233
|
-
|
|
4235
|
+
v.prototype = Object.create(ie.prototype);
|
|
4236
|
+
function pe(h, a) {
|
|
4237
|
+
ie.call(this, h), this.status = a.status, this.statusText = a.statusText, this.headers = a.headers;
|
|
4234
4238
|
}
|
|
4235
|
-
|
|
4236
|
-
function
|
|
4237
|
-
|
|
4239
|
+
pe.prototype = Object.create(ie.prototype);
|
|
4240
|
+
function rt(h, a) {
|
|
4241
|
+
ie.call(this, h), this.error = a.error;
|
|
4238
4242
|
}
|
|
4239
|
-
|
|
4240
|
-
var
|
|
4241
|
-
var
|
|
4242
|
-
return
|
|
4243
|
-
}, Ze = function(
|
|
4244
|
-
return Math.min(Math.max(
|
|
4245
|
-
}, Te = function(
|
|
4243
|
+
rt.prototype = Object.create(ie.prototype);
|
|
4244
|
+
var Xe = -1, he = 0, _e = 1, Se = 2, we = -1, se = 0, ze = 1, Oe = 2, it = 3, Tt = /^text\/event\-stream(;.*)?$/i, ot = 1e3, Bt = 18e6, We = function(h, a) {
|
|
4245
|
+
var f = h == null ? a : parseInt(h, 10);
|
|
4246
|
+
return f !== f && (f = a), Ze(f);
|
|
4247
|
+
}, Ze = function(h) {
|
|
4248
|
+
return Math.min(Math.max(h, ot), Bt);
|
|
4249
|
+
}, Te = function(h, a, f) {
|
|
4246
4250
|
try {
|
|
4247
|
-
typeof
|
|
4248
|
-
} catch (
|
|
4249
|
-
|
|
4251
|
+
typeof a == "function" && a.call(h, f);
|
|
4252
|
+
} catch (u) {
|
|
4253
|
+
ae(u);
|
|
4250
4254
|
}
|
|
4251
4255
|
};
|
|
4252
|
-
function
|
|
4253
|
-
|
|
4256
|
+
function K(h, a) {
|
|
4257
|
+
re.call(this), a = a || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, At(this, h, a);
|
|
4254
4258
|
}
|
|
4255
|
-
function
|
|
4256
|
-
return o != null && "withCredentials" in o.prototype ||
|
|
4259
|
+
function St() {
|
|
4260
|
+
return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
|
|
4257
4261
|
}
|
|
4258
|
-
var
|
|
4259
|
-
function
|
|
4260
|
-
|
|
4261
|
-
var
|
|
4262
|
+
var wt = g != null && b != null && "body" in b.prototype;
|
|
4263
|
+
function At(h, a, f) {
|
|
4264
|
+
a = String(a);
|
|
4265
|
+
var u = !!f.withCredentials, m = f.lastEventIdQueryParameterName || "lastEventId", y = Ze(1e3), E = We(f.heartbeatTimeout, 45e3), x = "", T = y, C = !1, R = 0, S = f.headers || {}, N = f.Transport, me = wt && N == null ? void 0 : new A(N != null ? new N() : St()), qe = N != null && typeof N != "string" ? new N() : me == null ? new de() : new Y(), ee = void 0, Z = 0, ue = Xe, Le = "", st = "", ge = "", ut = "", q = se, Ct = 0, Ae = 0, Kn = function(V, k, te, ne) {
|
|
4262
4266
|
if (ue === he)
|
|
4263
|
-
if (V === 200 &&
|
|
4264
|
-
ue = _e,
|
|
4265
|
-
var
|
|
4267
|
+
if (V === 200 && te != null && Tt.test(te)) {
|
|
4268
|
+
ue = _e, C = Date.now(), T = y, h.readyState = _e;
|
|
4269
|
+
var Q = new pe("open", {
|
|
4266
4270
|
status: V,
|
|
4267
|
-
statusText:
|
|
4268
|
-
headers:
|
|
4271
|
+
statusText: k,
|
|
4272
|
+
headers: ne
|
|
4269
4273
|
});
|
|
4270
|
-
|
|
4274
|
+
h.dispatchEvent(Q), Te(h, h.onopen, Q);
|
|
4271
4275
|
} else {
|
|
4272
4276
|
var X = "";
|
|
4273
|
-
V !== 200 ? (
|
|
4274
|
-
var
|
|
4277
|
+
V !== 200 ? (k && (k = k.replace(/\s+/g, " ")), X = "EventSource's response has a status " + V + " " + k + " that is not 200. Aborting the connection.") : X = "EventSource's response has a Content-Type specifying an unsupported type: " + (te == null ? "-" : te.replace(/\s+/g, " ")) + ". Aborting the connection.", Ht();
|
|
4278
|
+
var Q = new pe("error", {
|
|
4275
4279
|
status: V,
|
|
4276
|
-
statusText:
|
|
4277
|
-
headers:
|
|
4280
|
+
statusText: k,
|
|
4281
|
+
headers: ne
|
|
4278
4282
|
});
|
|
4279
|
-
|
|
4283
|
+
h.dispatchEvent(Q), Te(h, h.onerror, Q), console.error(X);
|
|
4280
4284
|
}
|
|
4281
4285
|
}, er = function(V) {
|
|
4282
4286
|
if (ue === _e) {
|
|
4283
|
-
for (var
|
|
4284
|
-
var
|
|
4285
|
-
(
|
|
4287
|
+
for (var k = -1, te = 0; te < V.length; te += 1) {
|
|
4288
|
+
var ne = V.charCodeAt(te);
|
|
4289
|
+
(ne === 10 || ne === 13) && (k = te);
|
|
4286
4290
|
}
|
|
4287
|
-
var
|
|
4288
|
-
|
|
4289
|
-
for (var X = 0; X <
|
|
4290
|
-
var
|
|
4291
|
-
if (
|
|
4292
|
-
|
|
4293
|
-
else if (
|
|
4294
|
-
if (
|
|
4295
|
-
|
|
4296
|
-
var
|
|
4297
|
-
|
|
4298
|
-
`, Le +=
|
|
4291
|
+
var Q = (k !== -1 ? ut : "") + V.slice(0, k + 1);
|
|
4292
|
+
ut = (k === -1 ? ut : "") + V.slice(k + 1), V !== "" && (C = Date.now(), R += V.length);
|
|
4293
|
+
for (var X = 0; X < Q.length; X += 1) {
|
|
4294
|
+
var ne = Q.charCodeAt(X);
|
|
4295
|
+
if (q === we && ne === 10)
|
|
4296
|
+
q = se;
|
|
4297
|
+
else if (q === we && (q = se), ne === 13 || ne === 10) {
|
|
4298
|
+
if (q !== se) {
|
|
4299
|
+
q === ze && (Ae = X + 1);
|
|
4300
|
+
var be = Q.slice(Ct, Ae - 1), ye = Q.slice(Ae + (Ae < X && Q.charCodeAt(Ae) === 32 ? 1 : 0), X);
|
|
4301
|
+
be === "data" ? (Le += `
|
|
4302
|
+
`, Le += ye) : be === "id" ? st = ye : be === "event" ? ge = ye : be === "retry" ? (y = We(ye, y), T = y) : be === "heartbeatTimeout" && (E = We(ye, E), Z !== 0 && (i(Z), Z = r(function() {
|
|
4299
4303
|
Qe();
|
|
4300
|
-
},
|
|
4304
|
+
}, E)));
|
|
4301
4305
|
}
|
|
4302
|
-
if (
|
|
4306
|
+
if (q === se) {
|
|
4303
4307
|
if (Le !== "") {
|
|
4304
|
-
|
|
4305
|
-
var
|
|
4308
|
+
x = st, ge === "" && (ge = "message");
|
|
4309
|
+
var Re = new v(ge, {
|
|
4306
4310
|
data: Le.slice(1),
|
|
4307
|
-
lastEventId:
|
|
4311
|
+
lastEventId: st
|
|
4308
4312
|
});
|
|
4309
|
-
if (
|
|
4313
|
+
if (h.dispatchEvent(Re), ge === "open" ? Te(h, h.onopen, Re) : ge === "message" ? Te(h, h.onmessage, Re) : ge === "error" && Te(h, h.onerror, Re), ue === Se)
|
|
4310
4314
|
return;
|
|
4311
4315
|
}
|
|
4312
|
-
Le = "",
|
|
4316
|
+
Le = "", ge = "";
|
|
4313
4317
|
}
|
|
4314
|
-
|
|
4318
|
+
q = ne === 13 ? we : se;
|
|
4315
4319
|
} else
|
|
4316
|
-
|
|
4320
|
+
q === se && (Ct = X, q = ze), q === ze ? ne === 58 && (Ae = X + 1, q = Oe) : q === Oe && (q = it);
|
|
4317
4321
|
}
|
|
4318
4322
|
}
|
|
4319
4323
|
}, Kt = function(V) {
|
|
4320
4324
|
if (ue === _e || ue === he) {
|
|
4321
|
-
ue =
|
|
4325
|
+
ue = Xe, Z !== 0 && (i(Z), Z = 0), Z = r(function() {
|
|
4322
4326
|
Qe();
|
|
4323
|
-
},
|
|
4324
|
-
var
|
|
4325
|
-
|
|
4327
|
+
}, T), T = Ze(Math.min(y * 16, T * 2)), h.readyState = he;
|
|
4328
|
+
var k = new rt("error", { error: V });
|
|
4329
|
+
h.dispatchEvent(k), Te(h, h.onerror, k), V != null && console.error(V);
|
|
4326
4330
|
}
|
|
4327
|
-
},
|
|
4328
|
-
ue = Se,
|
|
4331
|
+
}, Ht = function() {
|
|
4332
|
+
ue = Se, ee != null && (ee.abort(), ee = void 0), Z !== 0 && (i(Z), Z = 0), h.readyState = Se;
|
|
4329
4333
|
}, Qe = function() {
|
|
4330
|
-
if (
|
|
4331
|
-
if (!
|
|
4332
|
-
Kt(new Error("No activity within " +
|
|
4334
|
+
if (Z = 0, ue !== Xe) {
|
|
4335
|
+
if (!C && ee != null)
|
|
4336
|
+
Kt(new Error("No activity within " + E + " milliseconds. " + (ue === he ? "No response received." : R + " chars received.") + " Reconnecting.")), ee != null && (ee.abort(), ee = void 0);
|
|
4333
4337
|
else {
|
|
4334
|
-
var V = Math.max((
|
|
4335
|
-
|
|
4338
|
+
var V = Math.max((C || Date.now()) + E - Date.now(), 1);
|
|
4339
|
+
C = !1, Z = r(function() {
|
|
4336
4340
|
Qe();
|
|
4337
4341
|
}, V);
|
|
4338
4342
|
}
|
|
4339
4343
|
return;
|
|
4340
4344
|
}
|
|
4341
|
-
|
|
4345
|
+
C = !1, R = 0, Z = r(function() {
|
|
4342
4346
|
Qe();
|
|
4343
|
-
},
|
|
4344
|
-
var
|
|
4345
|
-
if (
|
|
4346
|
-
var
|
|
4347
|
-
|
|
4348
|
-
return
|
|
4349
|
-
}),
|
|
4347
|
+
}, E), ue = he, Le = "", ge = "", st = x, ut = "", Ct = 0, Ae = 0, q = se;
|
|
4348
|
+
var k = a;
|
|
4349
|
+
if (a.slice(0, 5) !== "data:" && a.slice(0, 5) !== "blob:" && x !== "") {
|
|
4350
|
+
var te = a.indexOf("?");
|
|
4351
|
+
k = te === -1 ? a : a.slice(0, te + 1) + a.slice(te + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ye, Re) {
|
|
4352
|
+
return Re === m ? "" : ye;
|
|
4353
|
+
}), k += (a.indexOf("?") === -1 ? "?" : "&") + m + "=" + encodeURIComponent(x);
|
|
4350
4354
|
}
|
|
4351
|
-
var
|
|
4352
|
-
|
|
4353
|
-
var X =
|
|
4355
|
+
var ne = h.withCredentials, Q = {};
|
|
4356
|
+
Q.Accept = "text/event-stream";
|
|
4357
|
+
var X = h.headers;
|
|
4354
4358
|
if (X != null)
|
|
4355
|
-
for (var
|
|
4356
|
-
Object.prototype.hasOwnProperty.call(X,
|
|
4359
|
+
for (var be in X)
|
|
4360
|
+
Object.prototype.hasOwnProperty.call(X, be) && (Q[be] = X[be]);
|
|
4357
4361
|
try {
|
|
4358
|
-
|
|
4359
|
-
} catch (
|
|
4360
|
-
throw
|
|
4362
|
+
ee = qe.open(me, Kn, er, Kt, k, ne, Q);
|
|
4363
|
+
} catch (ye) {
|
|
4364
|
+
throw Ht(), ye;
|
|
4361
4365
|
}
|
|
4362
4366
|
};
|
|
4363
|
-
|
|
4367
|
+
h.url = a, h.readyState = he, h.withCredentials = u, h.headers = S, h._close = Ht, Qe();
|
|
4364
4368
|
}
|
|
4365
|
-
|
|
4369
|
+
K.prototype = Object.create(re.prototype), K.prototype.CONNECTING = he, K.prototype.OPEN = _e, K.prototype.CLOSED = Se, K.prototype.close = function() {
|
|
4366
4370
|
this._close();
|
|
4367
|
-
},
|
|
4368
|
-
var
|
|
4369
|
-
o != null && (
|
|
4371
|
+
}, K.CONNECTING = he, K.OPEN = _e, K.CLOSED = Se, K.prototype.withCredentials = void 0;
|
|
4372
|
+
var at = p;
|
|
4373
|
+
o != null && (p == null || !("withCredentials" in p.prototype)) && (at = K), function(h) {
|
|
4370
4374
|
{
|
|
4371
|
-
var
|
|
4372
|
-
|
|
4375
|
+
var a = h(t);
|
|
4376
|
+
a !== void 0 && (e.exports = a);
|
|
4373
4377
|
}
|
|
4374
|
-
}(function(
|
|
4375
|
-
|
|
4378
|
+
}(function(h) {
|
|
4379
|
+
h.EventSourcePolyfill = K, h.NativeEventSource = p, h.EventSource = at;
|
|
4376
4380
|
});
|
|
4377
4381
|
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Cr : globalThis);
|
|
4378
|
-
})(
|
|
4379
|
-
var
|
|
4380
|
-
function
|
|
4382
|
+
})(qt, qt.exports);
|
|
4383
|
+
var yo = qt.exports;
|
|
4384
|
+
function vo(e) {
|
|
4381
4385
|
rr(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}');
|
|
4382
4386
|
}
|
|
4383
4387
|
function yn(e, t, n) {
|
|
@@ -4388,7 +4392,7 @@ function vn(e, t, n) {
|
|
|
4388
4392
|
const r = e.slice();
|
|
4389
4393
|
return r[54] = t[n], r;
|
|
4390
4394
|
}
|
|
4391
|
-
function
|
|
4395
|
+
function Eo(e) {
|
|
4392
4396
|
let t, n = (
|
|
4393
4397
|
/*balances*/
|
|
4394
4398
|
(e[3].Total ? (
|
|
@@ -4398,21 +4402,21 @@ function vo(e) {
|
|
|
4398
4402
|
e[3].Total[0].amount
|
|
4399
4403
|
)
|
|
4400
4404
|
) : "0") + ""
|
|
4401
|
-
), r, i, o,
|
|
4405
|
+
), r, i, o, l, s, p, c, d = (
|
|
4402
4406
|
/*isModalDisplayed*/
|
|
4403
4407
|
e[2] && En(e)
|
|
4404
4408
|
);
|
|
4405
4409
|
return {
|
|
4406
4410
|
c() {
|
|
4407
|
-
t = G("button"), r =
|
|
4411
|
+
t = G("button"), r = ve(n), i = Ee(), o = G("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>', l = Ee(), d && d.c(), s = ar(), z(t, "class", "BalanceValue");
|
|
4408
4412
|
},
|
|
4409
4413
|
m(g, b) {
|
|
4410
|
-
|
|
4414
|
+
fe(g, t, b), M(t, r), M(t, i), M(t, o), fe(g, l, b), d && d.m(g, b), fe(g, s, b), p || (c = dt(
|
|
4411
4415
|
t,
|
|
4412
4416
|
"click",
|
|
4413
4417
|
/*click_handler*/
|
|
4414
4418
|
e[25]
|
|
4415
|
-
),
|
|
4419
|
+
), p = !0);
|
|
4416
4420
|
},
|
|
4417
4421
|
p(g, b) {
|
|
4418
4422
|
b[0] & /*balances*/
|
|
@@ -4423,30 +4427,30 @@ function vo(e) {
|
|
|
4423
4427
|
/*balances*/
|
|
4424
4428
|
g[3].Total[0].amount
|
|
4425
4429
|
)
|
|
4426
|
-
) : "0") + "") &&
|
|
4427
|
-
g[2] ?
|
|
4430
|
+
) : "0") + "") && Ce(r, n), /*isModalDisplayed*/
|
|
4431
|
+
g[2] ? d ? d.p(g, b) : (d = En(g), d.c(), d.m(s.parentNode, s)) : d && (d.d(1), d = null);
|
|
4428
4432
|
},
|
|
4429
4433
|
d(g) {
|
|
4430
|
-
g && (le(t), le(
|
|
4434
|
+
g && (le(t), le(l), le(s)), d && d.d(g), p = !1, c();
|
|
4431
4435
|
}
|
|
4432
4436
|
};
|
|
4433
4437
|
}
|
|
4434
|
-
function
|
|
4438
|
+
function xo(e) {
|
|
4435
4439
|
let t, n = (
|
|
4436
4440
|
/*$_*/
|
|
4437
4441
|
e[4]("Loading") + ""
|
|
4438
4442
|
), r;
|
|
4439
4443
|
return {
|
|
4440
4444
|
c() {
|
|
4441
|
-
t = G("p"), r =
|
|
4445
|
+
t = G("p"), r = ve(n);
|
|
4442
4446
|
},
|
|
4443
4447
|
m(i, o) {
|
|
4444
|
-
|
|
4448
|
+
fe(i, t, o), M(t, r);
|
|
4445
4449
|
},
|
|
4446
4450
|
p(i, o) {
|
|
4447
4451
|
o[0] & /*$_*/
|
|
4448
4452
|
16 && n !== (n = /*$_*/
|
|
4449
|
-
i[4]("Loading") + "") &&
|
|
4453
|
+
i[4]("Loading") + "") && Ce(r, n);
|
|
4450
4454
|
},
|
|
4451
4455
|
d(i) {
|
|
4452
4456
|
i && le(t);
|
|
@@ -4454,68 +4458,68 @@ function Eo(e) {
|
|
|
4454
4458
|
};
|
|
4455
4459
|
}
|
|
4456
4460
|
function En(e) {
|
|
4457
|
-
let t, n, r, i, o,
|
|
4461
|
+
let t, n, r, i, o, l, s = (
|
|
4458
4462
|
/*$_*/
|
|
4459
4463
|
e[4]("Title") + ""
|
|
4460
|
-
),
|
|
4464
|
+
), p, c, d, g, b, _, B = (
|
|
4461
4465
|
/*$_*/
|
|
4462
4466
|
e[4]("DepositButton") + ""
|
|
4463
|
-
), I,
|
|
4467
|
+
), I, j, W, U = pt(Object.keys(
|
|
4464
4468
|
/*balances*/
|
|
4465
4469
|
e[3]
|
|
4466
|
-
)),
|
|
4467
|
-
for (let
|
|
4468
|
-
|
|
4470
|
+
)), w = [];
|
|
4471
|
+
for (let A = 0; A < U.length; A += 1)
|
|
4472
|
+
w[A] = _n(yn(e, U, A));
|
|
4469
4473
|
return {
|
|
4470
4474
|
c() {
|
|
4471
|
-
t = G("div"), n = G("button"), r =
|
|
4472
|
-
for (let
|
|
4473
|
-
|
|
4474
|
-
g =
|
|
4475
|
+
t = G("div"), n = G("button"), r = Ee(), i = G("div"), o = G("div"), l = G("p"), p = ve(s), c = Ee(), d = G("div");
|
|
4476
|
+
for (let A = 0; A < w.length; A += 1)
|
|
4477
|
+
w[A].c();
|
|
4478
|
+
g = Ee(), b = G("div"), _ = G("button"), I = ve(B), z(n, "class", "BalanceModalClose"), z(l, "class", "BalanceModalTitle"), z(o, "class", "BalanceModalHeader"), z(d, "class", "BalanceModalBody"), z(_, "class", "BalanceModalAction"), z(b, "class", "BalanceModalFooter"), z(i, "class", "BalanceModal"), z(t, "class", "BalanceModalWrapper");
|
|
4475
4479
|
},
|
|
4476
|
-
m(
|
|
4477
|
-
|
|
4478
|
-
for (let
|
|
4479
|
-
|
|
4480
|
-
M(i, g), M(i, b), M(b, _), M(_, I),
|
|
4481
|
-
|
|
4480
|
+
m(A, P) {
|
|
4481
|
+
fe(A, t, P), M(t, n), M(t, r), M(t, i), M(i, o), M(o, l), M(l, p), M(i, c), M(i, d);
|
|
4482
|
+
for (let L = 0; L < w.length; L += 1)
|
|
4483
|
+
w[L] && w[L].m(d, null);
|
|
4484
|
+
M(i, g), M(i, b), M(b, _), M(_, I), j || (W = [
|
|
4485
|
+
dt(
|
|
4482
4486
|
n,
|
|
4483
4487
|
"click",
|
|
4484
4488
|
/*click_handler_1*/
|
|
4485
4489
|
e[26]
|
|
4486
4490
|
),
|
|
4487
|
-
|
|
4491
|
+
dt(
|
|
4488
4492
|
_,
|
|
4489
4493
|
"click",
|
|
4490
4494
|
/*click_handler_2*/
|
|
4491
4495
|
e[27]
|
|
4492
4496
|
)
|
|
4493
|
-
],
|
|
4497
|
+
], j = !0);
|
|
4494
4498
|
},
|
|
4495
|
-
p(
|
|
4499
|
+
p(A, P) {
|
|
4496
4500
|
if (P[0] & /*$_*/
|
|
4497
4501
|
16 && s !== (s = /*$_*/
|
|
4498
|
-
|
|
4502
|
+
A[4]("Title") + "") && Ce(p, s), P[0] & /*balances, formatBalance, getProductType, $_*/
|
|
4499
4503
|
184) {
|
|
4500
|
-
U =
|
|
4504
|
+
U = pt(Object.keys(
|
|
4501
4505
|
/*balances*/
|
|
4502
|
-
|
|
4506
|
+
A[3]
|
|
4503
4507
|
));
|
|
4504
|
-
let
|
|
4505
|
-
for (
|
|
4506
|
-
const
|
|
4507
|
-
|
|
4508
|
+
let L;
|
|
4509
|
+
for (L = 0; L < U.length; L += 1) {
|
|
4510
|
+
const Y = yn(A, U, L);
|
|
4511
|
+
w[L] ? w[L].p(Y, P) : (w[L] = _n(Y), w[L].c(), w[L].m(d, null));
|
|
4508
4512
|
}
|
|
4509
|
-
for (;
|
|
4510
|
-
|
|
4511
|
-
|
|
4513
|
+
for (; L < w.length; L += 1)
|
|
4514
|
+
w[L].d(1);
|
|
4515
|
+
w.length = U.length;
|
|
4512
4516
|
}
|
|
4513
4517
|
P[0] & /*$_*/
|
|
4514
4518
|
16 && B !== (B = /*$_*/
|
|
4515
|
-
|
|
4519
|
+
A[4]("DepositButton") + "") && Ce(I, B);
|
|
4516
4520
|
},
|
|
4517
|
-
d(
|
|
4518
|
-
|
|
4521
|
+
d(A) {
|
|
4522
|
+
A && le(t), An(w, A), j = !1, je(W);
|
|
4519
4523
|
}
|
|
4520
4524
|
};
|
|
4521
4525
|
}
|
|
@@ -4526,13 +4530,13 @@ function xn(e) {
|
|
|
4526
4530
|
/*k*/
|
|
4527
4531
|
e[51]
|
|
4528
4532
|
) + ""
|
|
4529
|
-
), i, o,
|
|
4533
|
+
), i, o, l = (
|
|
4530
4534
|
/*getProductType*/
|
|
4531
4535
|
e[7](
|
|
4532
4536
|
/*balance*/
|
|
4533
4537
|
e[54]
|
|
4534
4538
|
) + ""
|
|
4535
|
-
), s,
|
|
4539
|
+
), s, p, c, d, g = (
|
|
4536
4540
|
/*formatBalance*/
|
|
4537
4541
|
e[5](
|
|
4538
4542
|
/*balance*/
|
|
@@ -4541,10 +4545,10 @@ function xn(e) {
|
|
|
4541
4545
|
), b;
|
|
4542
4546
|
return {
|
|
4543
4547
|
c() {
|
|
4544
|
-
t = G("div"), n = G("p"), i =
|
|
4548
|
+
t = G("div"), n = G("p"), i = ve(r), o = Ee(), s = ve(l), p = Ee(), c = G("p"), d = G("span"), b = ve(g), z(n, "class", "BalanceModalText"), z(d, "class", "BalanceModalAmount"), z(c, "class", "BalanceModalValue"), z(t, "class", "BalanceModalRowLine");
|
|
4545
4549
|
},
|
|
4546
4550
|
m(_, B) {
|
|
4547
|
-
|
|
4551
|
+
fe(_, t, B), M(t, n), M(n, i), M(n, o), M(n, s), M(t, p), M(t, c), M(c, d), M(d, b);
|
|
4548
4552
|
},
|
|
4549
4553
|
p(_, B) {
|
|
4550
4554
|
B[0] & /*$_, balances*/
|
|
@@ -4552,17 +4556,17 @@ function xn(e) {
|
|
|
4552
4556
|
_[4](
|
|
4553
4557
|
/*k*/
|
|
4554
4558
|
_[51]
|
|
4555
|
-
) + "") &&
|
|
4556
|
-
8 &&
|
|
4559
|
+
) + "") && Ce(i, r), B[0] & /*balances*/
|
|
4560
|
+
8 && l !== (l = /*getProductType*/
|
|
4557
4561
|
_[7](
|
|
4558
4562
|
/*balance*/
|
|
4559
4563
|
_[54]
|
|
4560
|
-
) + "") &&
|
|
4564
|
+
) + "") && Ce(s, l), B[0] & /*balances*/
|
|
4561
4565
|
8 && g !== (g = /*formatBalance*/
|
|
4562
4566
|
_[5](
|
|
4563
4567
|
/*balance*/
|
|
4564
4568
|
_[54].amount
|
|
4565
|
-
) + "") &&
|
|
4569
|
+
) + "") && Ce(b, g);
|
|
4566
4570
|
},
|
|
4567
4571
|
d(_) {
|
|
4568
4572
|
_ && le(t);
|
|
@@ -4570,7 +4574,7 @@ function xn(e) {
|
|
|
4570
4574
|
};
|
|
4571
4575
|
}
|
|
4572
4576
|
function _n(e) {
|
|
4573
|
-
let t, n, r =
|
|
4577
|
+
let t, n, r = pt(
|
|
4574
4578
|
/*balances*/
|
|
4575
4579
|
e[3][
|
|
4576
4580
|
/*k*/
|
|
@@ -4584,18 +4588,18 @@ function _n(e) {
|
|
|
4584
4588
|
t = G("div");
|
|
4585
4589
|
for (let o = 0; o < i.length; o += 1)
|
|
4586
4590
|
i[o].c();
|
|
4587
|
-
n =
|
|
4591
|
+
n = Ee(), z(t, "class", "BalanceModalRowBoth");
|
|
4588
4592
|
},
|
|
4589
|
-
m(o,
|
|
4590
|
-
|
|
4593
|
+
m(o, l) {
|
|
4594
|
+
fe(o, t, l);
|
|
4591
4595
|
for (let s = 0; s < i.length; s += 1)
|
|
4592
4596
|
i[s] && i[s].m(t, null);
|
|
4593
4597
|
M(t, n);
|
|
4594
4598
|
},
|
|
4595
|
-
p(o,
|
|
4596
|
-
if (
|
|
4599
|
+
p(o, l) {
|
|
4600
|
+
if (l[0] & /*formatBalance, balances, getProductType, $_*/
|
|
4597
4601
|
184) {
|
|
4598
|
-
r =
|
|
4602
|
+
r = pt(
|
|
4599
4603
|
/*balances*/
|
|
4600
4604
|
o[3][
|
|
4601
4605
|
/*k*/
|
|
@@ -4604,8 +4608,8 @@ function _n(e) {
|
|
|
4604
4608
|
);
|
|
4605
4609
|
let s;
|
|
4606
4610
|
for (s = 0; s < r.length; s += 1) {
|
|
4607
|
-
const
|
|
4608
|
-
i[s] ? i[s].p(
|
|
4611
|
+
const p = vn(o, r, s);
|
|
4612
|
+
i[s] ? i[s].p(p, l) : (i[s] = xn(p), i[s].c(), i[s].m(t, n));
|
|
4609
4613
|
}
|
|
4610
4614
|
for (; s < i.length; s += 1)
|
|
4611
4615
|
i[s].d(1);
|
|
@@ -4624,158 +4628,158 @@ function Tn(e) {
|
|
|
4624
4628
|
t = G("button"), z(t, "class", "ShowBalanceModalOverlay");
|
|
4625
4629
|
},
|
|
4626
4630
|
m(i, o) {
|
|
4627
|
-
|
|
4631
|
+
fe(i, t, o), n || (r = dt(
|
|
4628
4632
|
t,
|
|
4629
4633
|
"click",
|
|
4630
4634
|
/*click_handler_3*/
|
|
4631
4635
|
e[28]
|
|
4632
4636
|
), n = !0);
|
|
4633
4637
|
},
|
|
4634
|
-
p:
|
|
4638
|
+
p: oe,
|
|
4635
4639
|
d(i) {
|
|
4636
4640
|
i && le(t), n = !1, r();
|
|
4637
4641
|
}
|
|
4638
4642
|
};
|
|
4639
4643
|
}
|
|
4640
|
-
function
|
|
4644
|
+
function _o(e) {
|
|
4641
4645
|
let t, n, r;
|
|
4642
|
-
function i(
|
|
4646
|
+
function i(p, c) {
|
|
4643
4647
|
return (
|
|
4644
4648
|
/*isLoading*/
|
|
4645
|
-
|
|
4649
|
+
p[1] ? xo : Eo
|
|
4646
4650
|
);
|
|
4647
4651
|
}
|
|
4648
|
-
let o = i(e),
|
|
4652
|
+
let o = i(e), l = o(e), s = (
|
|
4649
4653
|
/*isModalDisplayed*/
|
|
4650
4654
|
e[2] && Tn(e)
|
|
4651
4655
|
);
|
|
4652
4656
|
return {
|
|
4653
4657
|
c() {
|
|
4654
|
-
t = G("div"), n = G("div"),
|
|
4658
|
+
t = G("div"), n = G("div"), l.c(), r = Ee(), s && s.c(), z(n, "class", "ShowBalance");
|
|
4655
4659
|
},
|
|
4656
|
-
m(
|
|
4657
|
-
|
|
4660
|
+
m(p, c) {
|
|
4661
|
+
fe(p, t, c), M(t, n), l.m(n, null), M(t, r), s && s.m(t, null), e[29](t);
|
|
4658
4662
|
},
|
|
4659
|
-
p(
|
|
4660
|
-
o === (o = i(
|
|
4661
|
-
|
|
4663
|
+
p(p, c) {
|
|
4664
|
+
o === (o = i(p)) && l ? l.p(p, c) : (l.d(1), l = o(p), l && (l.c(), l.m(n, null))), /*isModalDisplayed*/
|
|
4665
|
+
p[2] ? s ? s.p(p, c) : (s = Tn(p), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4662
4666
|
},
|
|
4663
|
-
i:
|
|
4664
|
-
o:
|
|
4665
|
-
d(
|
|
4666
|
-
|
|
4667
|
+
i: oe,
|
|
4668
|
+
o: oe,
|
|
4669
|
+
d(p) {
|
|
4670
|
+
p && le(t), l.d(), s && s.d(), e[29](null);
|
|
4667
4671
|
}
|
|
4668
4672
|
};
|
|
4669
4673
|
}
|
|
4670
|
-
function
|
|
4674
|
+
function To(e, t, n) {
|
|
4671
4675
|
let r;
|
|
4672
|
-
nr(e,
|
|
4673
|
-
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint:
|
|
4674
|
-
const
|
|
4675
|
-
fetch(g).then((a) => a.json()).then((a) => Object.keys(a).forEach((
|
|
4676
|
+
nr(e, go, (a) => n(4, r = a));
|
|
4677
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: p = "" } = t, { clientstyling: c = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, { gmversion: b = "gm16" } = t, { displaybalanceoption: _ = "All" } = t, { totalcalculationmode: B = "totalCashAmount" } = t, { hideproducttype: I = "" } = t, { currencylocale: j = "en" } = t, { currencydisplay: W = "symbol" } = t, { maximumfractiondigits: U = "2" } = t, { minimumfractiondigits: w = "0" } = t, { customdisplayformat: A = "" } = t, P, L = !0, Y = !1, xe = !1, de, re = "", ae = [], ie;
|
|
4678
|
+
const v = {}, pe = ["totalCashAmount", "totalRealAmount"], rt = () => {
|
|
4679
|
+
fetch(g).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => gn(f, a[f]))).catch((a) => console.log(a));
|
|
4676
4680
|
};
|
|
4677
4681
|
Object.keys(bn).forEach((a) => gn(a, bn[a]));
|
|
4678
|
-
const
|
|
4679
|
-
if (
|
|
4680
|
-
return
|
|
4681
|
-
const
|
|
4682
|
+
const Xe = (a) => {
|
|
4683
|
+
if (A)
|
|
4684
|
+
return he(a);
|
|
4685
|
+
const f = j || s, u = {
|
|
4682
4686
|
style: "currency",
|
|
4683
|
-
currency:
|
|
4687
|
+
currency: re,
|
|
4684
4688
|
useGrouping: !0,
|
|
4685
|
-
currencyDisplay:
|
|
4689
|
+
currencyDisplay: W || "code",
|
|
4686
4690
|
maximumFractionDigits: U === "" || isNaN(Number(U)) ? 2 : Number(U),
|
|
4687
|
-
minimumFractionDigits:
|
|
4691
|
+
minimumFractionDigits: w === "" || isNaN(Number(w)) ? 0 : Number(w)
|
|
4688
4692
|
};
|
|
4689
|
-
return new Intl.NumberFormat(
|
|
4690
|
-
},
|
|
4691
|
-
const
|
|
4692
|
-
let
|
|
4693
|
-
for (const
|
|
4694
|
-
switch (
|
|
4693
|
+
return new Intl.NumberFormat(f, u).format(a);
|
|
4694
|
+
}, he = (a) => {
|
|
4695
|
+
const f = [];
|
|
4696
|
+
let u = "";
|
|
4697
|
+
for (const m of A)
|
|
4698
|
+
switch (m) {
|
|
4695
4699
|
default:
|
|
4696
|
-
|
|
4700
|
+
u += m;
|
|
4697
4701
|
break;
|
|
4698
4702
|
case "{":
|
|
4699
|
-
|
|
4703
|
+
u && f.push(u), u = "";
|
|
4700
4704
|
break;
|
|
4701
4705
|
case "}":
|
|
4702
|
-
const [
|
|
4703
|
-
if (
|
|
4704
|
-
|
|
4705
|
-
else if (
|
|
4706
|
-
let
|
|
4707
|
-
|
|
4708
|
-
let [
|
|
4709
|
-
|
|
4710
|
-
for (let
|
|
4711
|
-
(
|
|
4712
|
-
|
|
4706
|
+
const [y, E] = u.split("|");
|
|
4707
|
+
if (u = "", y.toLowerCase() === "currency")
|
|
4708
|
+
u = re;
|
|
4709
|
+
else if (y.toLowerCase() === "amount") {
|
|
4710
|
+
let x = ",", T = ".", C = 2;
|
|
4711
|
+
E && (E[0] !== " " && (x = E[0]), E[1] !== " " && (T = E[1]), E[2] !== " " && !isNaN(Number(E[2])) && (C = Number(E[2])));
|
|
4712
|
+
let [R, S] = String(Math.floor(a * 10 ** C) / 10 ** C).split(".");
|
|
4713
|
+
u += R[0];
|
|
4714
|
+
for (let N = 1; N < R.length; ++N)
|
|
4715
|
+
(R.length - N) % 3 === 0 ? u += x + R[N] : u += R[N];
|
|
4716
|
+
S && (u += T + S);
|
|
4713
4717
|
}
|
|
4714
|
-
|
|
4718
|
+
u && f.push(u), u = "";
|
|
4715
4719
|
break;
|
|
4716
4720
|
}
|
|
4717
|
-
return
|
|
4718
|
-
},
|
|
4719
|
-
n(1,
|
|
4720
|
-
const a = new URL(`${
|
|
4721
|
+
return f.push(u), f.join("");
|
|
4722
|
+
}, _e = async () => {
|
|
4723
|
+
n(1, L = !0);
|
|
4724
|
+
const a = new URL(`${l}/v1/player/${i}/account`);
|
|
4721
4725
|
try {
|
|
4722
|
-
const
|
|
4726
|
+
const f = await fetch(a, {
|
|
4723
4727
|
method: "GET",
|
|
4724
4728
|
headers: { "X-SessionID": o }
|
|
4725
|
-
}),
|
|
4726
|
-
if (
|
|
4727
|
-
|
|
4729
|
+
}), u = await f.json();
|
|
4730
|
+
if (f.ok)
|
|
4731
|
+
ae = u.items, re = ae.find((m) => m.displayName === "Casino")?.currency, n(3, v.Total = [{ amount: u.totalAmount[re] }], v), n(
|
|
4728
4732
|
3,
|
|
4729
|
-
|
|
4733
|
+
v.Real = [
|
|
4730
4734
|
{
|
|
4731
|
-
amount:
|
|
4735
|
+
amount: ae.find((m) => m.displayName === "Casino")?.balanceAmount
|
|
4732
4736
|
}
|
|
4733
4737
|
],
|
|
4734
|
-
|
|
4738
|
+
v
|
|
4735
4739
|
), n(
|
|
4736
4740
|
3,
|
|
4737
|
-
|
|
4741
|
+
v.Bonus = [
|
|
4738
4742
|
{
|
|
4739
|
-
amount:
|
|
4743
|
+
amount: ae.find((m) => m.displayName === "UBS")?.balanceAmount
|
|
4740
4744
|
}
|
|
4741
4745
|
],
|
|
4742
|
-
|
|
4746
|
+
v
|
|
4743
4747
|
);
|
|
4744
4748
|
else
|
|
4745
4749
|
throw new Error("Failed to fetch balance data !");
|
|
4746
|
-
} catch (
|
|
4747
|
-
console.log("Balance error: ",
|
|
4750
|
+
} catch (f) {
|
|
4751
|
+
console.log("Balance error: ", f);
|
|
4748
4752
|
} finally {
|
|
4749
|
-
n(1,
|
|
4753
|
+
n(1, L = !1);
|
|
4750
4754
|
}
|
|
4751
|
-
},
|
|
4752
|
-
n(1,
|
|
4753
|
-
const a = new URL(`${
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
const
|
|
4757
|
-
if (
|
|
4758
|
-
|
|
4755
|
+
}, Se = () => {
|
|
4756
|
+
n(1, L = !0);
|
|
4757
|
+
const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
|
|
4758
|
+
f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((m) => m.json()).then((m) => {
|
|
4759
|
+
m[B] || n(8, B = pe[0]);
|
|
4760
|
+
const y = m.items.find((x) => x.type === "Real" && x.walletAccountType === "Ordinary");
|
|
4761
|
+
if (re = y.currency, xe = !!y.productType, n(3, v.Total = [{ amount: 0 }], v), n(3, v.Real = [], v), n(3, v.Bonus = [], v), n(3, v.Credit = [], v), !xe) {
|
|
4762
|
+
ie = {
|
|
4759
4763
|
lastOrdinaryAfterAmount: 0,
|
|
4760
4764
|
showCreditLineAfterAmount: !1
|
|
4761
|
-
}, n(3,
|
|
4762
|
-
for (const
|
|
4763
|
-
switch (
|
|
4765
|
+
}, n(3, v.Total[0].amount = m[B][re], v);
|
|
4766
|
+
for (const x of m.items)
|
|
4767
|
+
switch (x.type) {
|
|
4764
4768
|
case "Bonus":
|
|
4765
|
-
|
|
4769
|
+
v.Bonus.length === 0 ? v.Bonus.push({ amount: x.amount }) : n(3, v.Bonus[0].amount += x.amount, v);
|
|
4766
4770
|
break;
|
|
4767
4771
|
case "Real":
|
|
4768
|
-
if (
|
|
4772
|
+
if (x.creditLine && v.Credit.length === 0 && v.Credit.push({ amount: x.creditLine }), B === "totalRealAmount")
|
|
4769
4773
|
continue;
|
|
4770
|
-
|
|
4774
|
+
v.Real.length === 0 ? v.Real.push({ amount: x.amount }) : n(3, v.Real[0].amount += x.amount, v);
|
|
4771
4775
|
break;
|
|
4772
4776
|
}
|
|
4773
|
-
for (const [
|
|
4774
|
-
|
|
4775
|
-
n(1,
|
|
4777
|
+
for (const [x, T] of Object.entries(v))
|
|
4778
|
+
T.length < 1 && delete v[x];
|
|
4779
|
+
n(1, L = !1);
|
|
4776
4780
|
return;
|
|
4777
4781
|
}
|
|
4778
|
-
|
|
4782
|
+
ie = {
|
|
4779
4783
|
Casino: {
|
|
4780
4784
|
lastOrdinaryAfterAmount: 0,
|
|
4781
4785
|
showCreditLineAfterAmount: !1
|
|
@@ -4785,200 +4789,200 @@ function _o(e, t, n) {
|
|
|
4785
4789
|
showCreditLineAfterAmount: !1
|
|
4786
4790
|
}
|
|
4787
4791
|
};
|
|
4788
|
-
let
|
|
4789
|
-
_ && _ !== "All" && (
|
|
4790
|
-
for (const
|
|
4791
|
-
let
|
|
4792
|
-
switch (
|
|
4792
|
+
let E = m.items;
|
|
4793
|
+
_ && _ !== "All" && (E = m.items.filter((x) => x.productType === _));
|
|
4794
|
+
for (const x of E) {
|
|
4795
|
+
let T;
|
|
4796
|
+
switch (x.type) {
|
|
4793
4797
|
case "Bonus":
|
|
4794
|
-
|
|
4795
|
-
amount:
|
|
4796
|
-
productType:
|
|
4798
|
+
T = v.Bonus.findIndex((C) => C.productType === x.productType), T > 0 ? n(3, v.Bonus[T].amount += x.amount, v) : v.Bonus.push({
|
|
4799
|
+
amount: x.amount,
|
|
4800
|
+
productType: x.productType
|
|
4797
4801
|
});
|
|
4798
4802
|
break;
|
|
4799
4803
|
case "Real":
|
|
4800
|
-
|
|
4801
|
-
amount:
|
|
4802
|
-
productType:
|
|
4803
|
-
}),
|
|
4804
|
-
amount:
|
|
4805
|
-
productType:
|
|
4804
|
+
x.creditLine && v.Credit.push({
|
|
4805
|
+
amount: x.creditLine,
|
|
4806
|
+
productType: x.productType
|
|
4807
|
+
}), T = v.Real.findIndex((C) => C.productType === x.productType), T > 0 ? n(3, v.Real[T].amount += x.amount, v) : v.Real.push({
|
|
4808
|
+
amount: x.amount,
|
|
4809
|
+
productType: x.productType
|
|
4806
4810
|
});
|
|
4807
4811
|
break;
|
|
4808
4812
|
}
|
|
4809
4813
|
}
|
|
4810
4814
|
it();
|
|
4811
|
-
for (const [
|
|
4812
|
-
|
|
4813
|
-
window.postMessage({ type: "playerBalanceInfo", balance:
|
|
4815
|
+
for (const [x, T] of Object.entries(v))
|
|
4816
|
+
T.length < 1 && delete v[x];
|
|
4817
|
+
window.postMessage({ type: "playerBalanceInfo", balance: m }, window.location.href), n(1, L = !1);
|
|
4814
4818
|
}).catch(() => {
|
|
4815
|
-
throw n(1,
|
|
4819
|
+
throw n(1, L = !1), new Error("Failed to fetch balance data !");
|
|
4816
4820
|
});
|
|
4817
|
-
},
|
|
4818
|
-
if (
|
|
4821
|
+
}, we = () => {
|
|
4822
|
+
if (de && de.close(), o.length < 1)
|
|
4819
4823
|
return;
|
|
4820
|
-
let a,
|
|
4824
|
+
let a, f;
|
|
4821
4825
|
switch (b) {
|
|
4822
4826
|
case "gm16":
|
|
4823
|
-
a = new URL(`${
|
|
4827
|
+
a = new URL(`${l}/v2/player/${i}/information/updates`), f = (y) => Tt(y);
|
|
4824
4828
|
break;
|
|
4825
4829
|
case "gmcore":
|
|
4826
|
-
a = new URL(`${
|
|
4830
|
+
a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (y) => ze(y);
|
|
4827
4831
|
break;
|
|
4828
4832
|
}
|
|
4829
|
-
const
|
|
4833
|
+
const u = {
|
|
4830
4834
|
accept: "text/event-stream",
|
|
4831
4835
|
"X-SessionId": o
|
|
4832
|
-
},
|
|
4833
|
-
|
|
4834
|
-
},
|
|
4835
|
-
let
|
|
4836
|
+
}, m = new yo.EventSourcePolyfill(a, { headers: u });
|
|
4837
|
+
de = m, m.addEventListener("message", f);
|
|
4838
|
+
}, se = (a) => {
|
|
4839
|
+
let f;
|
|
4836
4840
|
try {
|
|
4837
|
-
|
|
4838
|
-
} catch (
|
|
4839
|
-
console.log("Balance stream failed: ",
|
|
4841
|
+
f = JSON.parse(a);
|
|
4842
|
+
} catch (u) {
|
|
4843
|
+
console.log("Balance stream failed: ", u);
|
|
4840
4844
|
return;
|
|
4841
4845
|
}
|
|
4842
|
-
return
|
|
4843
|
-
},
|
|
4844
|
-
const
|
|
4845
|
-
if (!
|
|
4846
|
-
|
|
4846
|
+
return f;
|
|
4847
|
+
}, ze = (a) => {
|
|
4848
|
+
const f = se(a.data);
|
|
4849
|
+
if (!f) {
|
|
4850
|
+
we();
|
|
4847
4851
|
return;
|
|
4848
4852
|
}
|
|
4849
|
-
let
|
|
4850
|
-
const
|
|
4851
|
-
|
|
4852
|
-
...
|
|
4853
|
-
balanceAmount:
|
|
4854
|
-
}),
|
|
4855
|
-
},
|
|
4856
|
-
let
|
|
4857
|
-
switch (
|
|
4853
|
+
let u = "0";
|
|
4854
|
+
const m = f.balanceChange;
|
|
4855
|
+
ae = ae.map((y) => (m && m[y.id] && (y = {
|
|
4856
|
+
...y,
|
|
4857
|
+
balanceAmount: m[y.id].afterAmount
|
|
4858
|
+
}), u = (parseFloat(y?.balanceAmount) + parseFloat(u)).toString(), y)), n(3, v.Real = [{ amount: ae[0]?.balanceAmount }], v), n(3, v.Bonus = [{ amount: ae[1]?.balanceAmount }], v), n(3, v.Total = [{ amount: Number(u) }], v);
|
|
4859
|
+
}, Oe = (a, f, u) => {
|
|
4860
|
+
let m = null;
|
|
4861
|
+
switch (u.walletAccountType) {
|
|
4858
4862
|
case "Ordinary":
|
|
4859
|
-
(
|
|
4863
|
+
(u.afterAmount !== u.affectedAmount || f.lastOrdinaryAfterAmount === 0) && (f.lastOrdinaryAfterAmount = u.afterAmount, f.showCreditLineAfterAmount || (m = u.afterAmount));
|
|
4860
4864
|
break;
|
|
4861
4865
|
case "CreditLine":
|
|
4862
|
-
|
|
4866
|
+
u.afterAmount !== 0 ? (m = u.afterAmount, f.showCreditLineAfterAmount = !0) : (m = f.lastOrdinaryAfterAmount, f.showCreditLineAfterAmount = !1);
|
|
4863
4867
|
break;
|
|
4864
4868
|
default:
|
|
4865
|
-
|
|
4869
|
+
m = u.afterAmount;
|
|
4866
4870
|
}
|
|
4867
|
-
return
|
|
4871
|
+
return m === null ? a : m;
|
|
4868
4872
|
}, it = () => {
|
|
4869
4873
|
switch (B) {
|
|
4870
4874
|
case "totalCashAmount":
|
|
4871
4875
|
let a = 0;
|
|
4872
|
-
for (const
|
|
4873
|
-
for (const
|
|
4874
|
-
a += Math.max(
|
|
4875
|
-
n(3,
|
|
4876
|
+
for (const u of ["Real", "Bonus"])
|
|
4877
|
+
for (const m of v[u])
|
|
4878
|
+
a += Math.max(m.amount, 0);
|
|
4879
|
+
n(3, v.Total[0].amount = a, v);
|
|
4876
4880
|
break;
|
|
4877
4881
|
case "totalRealAmount":
|
|
4878
|
-
if (!
|
|
4882
|
+
if (!xe)
|
|
4879
4883
|
return;
|
|
4880
|
-
let
|
|
4881
|
-
for (const
|
|
4882
|
-
|
|
4883
|
-
n(3,
|
|
4884
|
+
let f = 0;
|
|
4885
|
+
for (const u of v.Real)
|
|
4886
|
+
f += u.amount;
|
|
4887
|
+
n(3, v.Total[0].amount = f, v);
|
|
4884
4888
|
}
|
|
4885
4889
|
}, Tt = (a) => {
|
|
4886
|
-
const
|
|
4887
|
-
if (!
|
|
4888
|
-
|
|
4890
|
+
const f = se(a.data);
|
|
4891
|
+
if (!f) {
|
|
4892
|
+
we();
|
|
4889
4893
|
return;
|
|
4890
4894
|
}
|
|
4891
|
-
if (
|
|
4895
|
+
if (Bt(f?.type) || f.type !== "BALANCE_UPDATE_V2")
|
|
4892
4896
|
return;
|
|
4893
|
-
const
|
|
4894
|
-
for (const [
|
|
4895
|
-
if (B === "totalRealAmount" &&
|
|
4896
|
-
for (const
|
|
4897
|
-
if (!
|
|
4898
|
-
|
|
4897
|
+
const u = f.body.balanceChange;
|
|
4898
|
+
for (const [m, y] of Object.entries(u))
|
|
4899
|
+
if (B === "totalRealAmount" && m === "Real" && !xe && n(3, v.Total[0].amount = Oe(v.Total[0].amount, ie, y), v), !!v[m])
|
|
4900
|
+
for (const E of v[m]) {
|
|
4901
|
+
if (!xe) {
|
|
4902
|
+
E.amount = m === "Real" ? Oe(E.amount, ie, y) : y.afterAmount;
|
|
4899
4903
|
continue;
|
|
4900
4904
|
}
|
|
4901
|
-
|
|
4905
|
+
y.productType === E.productType && (E.amount = m === "Real" ? Oe(E.amount, ie[E.productType], y) : y.afterAmount);
|
|
4902
4906
|
}
|
|
4903
4907
|
it();
|
|
4904
4908
|
}, ot = () => {
|
|
4905
|
-
n(2,
|
|
4906
|
-
},
|
|
4907
|
-
|
|
4908
|
-
},
|
|
4909
|
-
const
|
|
4910
|
-
return !a.productType ||
|
|
4911
|
-
},
|
|
4912
|
-
switch (
|
|
4909
|
+
n(2, Y = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
4910
|
+
}, Bt = (a) => a === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, We = () => {
|
|
4911
|
+
pe.includes(B) || (console.error(`Unsupported value ('${B}') for totalcalculationmode parameter. Only the following values are supported ${pe}. Using default value ('${pe[0]}').`), n(8, B = pe[0]));
|
|
4912
|
+
}, Ze = (a) => {
|
|
4913
|
+
const f = I.split(",").map((u) => u.trim());
|
|
4914
|
+
return !a.productType || f.includes(a.productType) ? "" : r(a.productType);
|
|
4915
|
+
}, Te = () => {
|
|
4916
|
+
switch (bo(s), We(), b) {
|
|
4913
4917
|
case "gmcore":
|
|
4914
|
-
|
|
4918
|
+
_e();
|
|
4915
4919
|
break;
|
|
4916
4920
|
case "gm16":
|
|
4917
|
-
|
|
4921
|
+
Se();
|
|
4918
4922
|
break;
|
|
4919
4923
|
default:
|
|
4920
4924
|
throw Error(`Invalid apiversion attribute: ${b}`);
|
|
4921
4925
|
}
|
|
4922
|
-
},
|
|
4923
|
-
hr(() => (window.addEventListener("message",
|
|
4924
|
-
window.
|
|
4926
|
+
}, K = (a) => a.data && a.data.type === "LogoutSuccessfull" && de.close();
|
|
4927
|
+
hr(() => (window.addEventListener("message", K, !1), () => {
|
|
4928
|
+
window.removeEventListener("message", K), de && de.close();
|
|
4925
4929
|
}));
|
|
4926
|
-
const
|
|
4927
|
-
function
|
|
4928
|
-
|
|
4930
|
+
const St = () => n(2, Y = !0), wt = () => n(2, Y = !1), At = () => ot(), at = () => n(2, Y = !1);
|
|
4931
|
+
function h(a) {
|
|
4932
|
+
Dt[a ? "unshift" : "push"](() => {
|
|
4929
4933
|
P = a, n(0, P);
|
|
4930
4934
|
});
|
|
4931
4935
|
}
|
|
4932
4936
|
return e.$$set = (a) => {
|
|
4933
|
-
"userid" in a && n(9, i = a.userid), "session" in a && n(10, o = a.session), "endpoint" in a && n(11,
|
|
4937
|
+
"userid" in a && n(9, i = a.userid), "session" in a && n(10, o = a.session), "endpoint" in a && n(11, l = a.endpoint), "lang" in a && n(12, s = a.lang), "mbsource" in a && n(13, p = a.mbsource), "clientstyling" in a && n(14, c = a.clientstyling), "clientstylingurl" in a && n(15, d = a.clientstylingurl), "translationurl" in a && n(16, g = a.translationurl), "gmversion" in a && n(17, b = a.gmversion), "displaybalanceoption" in a && n(18, _ = a.displaybalanceoption), "totalcalculationmode" in a && n(8, B = a.totalcalculationmode), "hideproducttype" in a && n(19, I = a.hideproducttype), "currencylocale" in a && n(20, j = a.currencylocale), "currencydisplay" in a && n(21, W = a.currencydisplay), "maximumfractiondigits" in a && n(22, U = a.maximumfractiondigits), "minimumfractiondigits" in a && n(23, w = a.minimumfractiondigits), "customdisplayformat" in a && n(24, A = a.customdisplayformat);
|
|
4934
4938
|
}, e.$$.update = () => {
|
|
4935
4939
|
e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
4936
|
-
400896 &&
|
|
4937
|
-
134656 &&
|
|
4940
|
+
400896 && l && i && o && s && b && _ && Te(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
4941
|
+
134656 && l && i && o && b && we(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4938
4942
|
16385 && c && P && Br(P, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4939
|
-
32769 &&
|
|
4940
|
-
8193 && P && wr(P, `${
|
|
4941
|
-
65536 && g &&
|
|
4943
|
+
32769 && d && P && Sr(P, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4944
|
+
8193 && P && wr(P, `${p}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4945
|
+
65536 && g && rt();
|
|
4942
4946
|
}, [
|
|
4943
4947
|
P,
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4948
|
+
L,
|
|
4949
|
+
Y,
|
|
4950
|
+
v,
|
|
4947
4951
|
r,
|
|
4948
|
-
|
|
4952
|
+
Xe,
|
|
4949
4953
|
ot,
|
|
4950
|
-
|
|
4954
|
+
Ze,
|
|
4951
4955
|
B,
|
|
4952
4956
|
i,
|
|
4953
4957
|
o,
|
|
4954
|
-
|
|
4958
|
+
l,
|
|
4955
4959
|
s,
|
|
4956
|
-
|
|
4960
|
+
p,
|
|
4957
4961
|
c,
|
|
4958
|
-
|
|
4962
|
+
d,
|
|
4959
4963
|
g,
|
|
4960
4964
|
b,
|
|
4961
4965
|
_,
|
|
4962
4966
|
I,
|
|
4963
|
-
|
|
4964
|
-
|
|
4967
|
+
j,
|
|
4968
|
+
W,
|
|
4965
4969
|
U,
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
Bt,
|
|
4970
|
+
w,
|
|
4971
|
+
A,
|
|
4969
4972
|
St,
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
+
wt,
|
|
4974
|
+
At,
|
|
4975
|
+
at,
|
|
4976
|
+
h
|
|
4973
4977
|
];
|
|
4974
4978
|
}
|
|
4975
|
-
class
|
|
4979
|
+
class Bo extends _r {
|
|
4976
4980
|
constructor(t) {
|
|
4977
4981
|
super(), Er(
|
|
4978
4982
|
this,
|
|
4979
4983
|
t,
|
|
4984
|
+
To,
|
|
4980
4985
|
_o,
|
|
4981
|
-
xo,
|
|
4982
4986
|
Sn,
|
|
4983
4987
|
{
|
|
4984
4988
|
userid: 9,
|
|
@@ -4999,7 +5003,7 @@ class To extends _r {
|
|
|
4999
5003
|
minimumfractiondigits: 23,
|
|
5000
5004
|
customdisplayformat: 24
|
|
5001
5005
|
},
|
|
5002
|
-
|
|
5006
|
+
vo,
|
|
5003
5007
|
[-1, -1]
|
|
5004
5008
|
);
|
|
5005
5009
|
}
|
|
@@ -5007,106 +5011,106 @@ class To extends _r {
|
|
|
5007
5011
|
return this.$$.ctx[9];
|
|
5008
5012
|
}
|
|
5009
5013
|
set userid(t) {
|
|
5010
|
-
this.$$set({ userid: t }),
|
|
5014
|
+
this.$$set({ userid: t }), $();
|
|
5011
5015
|
}
|
|
5012
5016
|
get session() {
|
|
5013
5017
|
return this.$$.ctx[10];
|
|
5014
5018
|
}
|
|
5015
5019
|
set session(t) {
|
|
5016
|
-
this.$$set({ session: t }),
|
|
5020
|
+
this.$$set({ session: t }), $();
|
|
5017
5021
|
}
|
|
5018
5022
|
get endpoint() {
|
|
5019
5023
|
return this.$$.ctx[11];
|
|
5020
5024
|
}
|
|
5021
5025
|
set endpoint(t) {
|
|
5022
|
-
this.$$set({ endpoint: t }),
|
|
5026
|
+
this.$$set({ endpoint: t }), $();
|
|
5023
5027
|
}
|
|
5024
5028
|
get lang() {
|
|
5025
5029
|
return this.$$.ctx[12];
|
|
5026
5030
|
}
|
|
5027
5031
|
set lang(t) {
|
|
5028
|
-
this.$$set({ lang: t }),
|
|
5032
|
+
this.$$set({ lang: t }), $();
|
|
5029
5033
|
}
|
|
5030
5034
|
get mbsource() {
|
|
5031
5035
|
return this.$$.ctx[13];
|
|
5032
5036
|
}
|
|
5033
5037
|
set mbsource(t) {
|
|
5034
|
-
this.$$set({ mbsource: t }),
|
|
5038
|
+
this.$$set({ mbsource: t }), $();
|
|
5035
5039
|
}
|
|
5036
5040
|
get clientstyling() {
|
|
5037
5041
|
return this.$$.ctx[14];
|
|
5038
5042
|
}
|
|
5039
5043
|
set clientstyling(t) {
|
|
5040
|
-
this.$$set({ clientstyling: t }),
|
|
5044
|
+
this.$$set({ clientstyling: t }), $();
|
|
5041
5045
|
}
|
|
5042
5046
|
get clientstylingurl() {
|
|
5043
5047
|
return this.$$.ctx[15];
|
|
5044
5048
|
}
|
|
5045
5049
|
set clientstylingurl(t) {
|
|
5046
|
-
this.$$set({ clientstylingurl: t }),
|
|
5050
|
+
this.$$set({ clientstylingurl: t }), $();
|
|
5047
5051
|
}
|
|
5048
5052
|
get translationurl() {
|
|
5049
5053
|
return this.$$.ctx[16];
|
|
5050
5054
|
}
|
|
5051
5055
|
set translationurl(t) {
|
|
5052
|
-
this.$$set({ translationurl: t }),
|
|
5056
|
+
this.$$set({ translationurl: t }), $();
|
|
5053
5057
|
}
|
|
5054
5058
|
get gmversion() {
|
|
5055
5059
|
return this.$$.ctx[17];
|
|
5056
5060
|
}
|
|
5057
5061
|
set gmversion(t) {
|
|
5058
|
-
this.$$set({ gmversion: t }),
|
|
5062
|
+
this.$$set({ gmversion: t }), $();
|
|
5059
5063
|
}
|
|
5060
5064
|
get displaybalanceoption() {
|
|
5061
5065
|
return this.$$.ctx[18];
|
|
5062
5066
|
}
|
|
5063
5067
|
set displaybalanceoption(t) {
|
|
5064
|
-
this.$$set({ displaybalanceoption: t }),
|
|
5068
|
+
this.$$set({ displaybalanceoption: t }), $();
|
|
5065
5069
|
}
|
|
5066
5070
|
get totalcalculationmode() {
|
|
5067
5071
|
return this.$$.ctx[8];
|
|
5068
5072
|
}
|
|
5069
5073
|
set totalcalculationmode(t) {
|
|
5070
|
-
this.$$set({ totalcalculationmode: t }),
|
|
5074
|
+
this.$$set({ totalcalculationmode: t }), $();
|
|
5071
5075
|
}
|
|
5072
5076
|
get hideproducttype() {
|
|
5073
5077
|
return this.$$.ctx[19];
|
|
5074
5078
|
}
|
|
5075
5079
|
set hideproducttype(t) {
|
|
5076
|
-
this.$$set({ hideproducttype: t }),
|
|
5080
|
+
this.$$set({ hideproducttype: t }), $();
|
|
5077
5081
|
}
|
|
5078
5082
|
get currencylocale() {
|
|
5079
5083
|
return this.$$.ctx[20];
|
|
5080
5084
|
}
|
|
5081
5085
|
set currencylocale(t) {
|
|
5082
|
-
this.$$set({ currencylocale: t }),
|
|
5086
|
+
this.$$set({ currencylocale: t }), $();
|
|
5083
5087
|
}
|
|
5084
5088
|
get currencydisplay() {
|
|
5085
5089
|
return this.$$.ctx[21];
|
|
5086
5090
|
}
|
|
5087
5091
|
set currencydisplay(t) {
|
|
5088
|
-
this.$$set({ currencydisplay: t }),
|
|
5092
|
+
this.$$set({ currencydisplay: t }), $();
|
|
5089
5093
|
}
|
|
5090
5094
|
get maximumfractiondigits() {
|
|
5091
5095
|
return this.$$.ctx[22];
|
|
5092
5096
|
}
|
|
5093
5097
|
set maximumfractiondigits(t) {
|
|
5094
|
-
this.$$set({ maximumfractiondigits: t }),
|
|
5098
|
+
this.$$set({ maximumfractiondigits: t }), $();
|
|
5095
5099
|
}
|
|
5096
5100
|
get minimumfractiondigits() {
|
|
5097
5101
|
return this.$$.ctx[23];
|
|
5098
5102
|
}
|
|
5099
5103
|
set minimumfractiondigits(t) {
|
|
5100
|
-
this.$$set({ minimumfractiondigits: t }),
|
|
5104
|
+
this.$$set({ minimumfractiondigits: t }), $();
|
|
5101
5105
|
}
|
|
5102
5106
|
get customdisplayformat() {
|
|
5103
5107
|
return this.$$.ctx[24];
|
|
5104
5108
|
}
|
|
5105
5109
|
set customdisplayformat(t) {
|
|
5106
|
-
this.$$set({ customdisplayformat: t }),
|
|
5110
|
+
this.$$set({ customdisplayformat: t }), $();
|
|
5107
5111
|
}
|
|
5108
5112
|
}
|
|
5109
|
-
xr(
|
|
5113
|
+
xr(Bo, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, hideproducttype: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
|
|
5110
5114
|
export {
|
|
5111
|
-
|
|
5115
|
+
Bo as P
|
|
5112
5116
|
};
|