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