@everymatrix/player-account-balance-modal 1.76.3 → 1.76.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountBalanceModal-CJJruDUN.js → PlayerAccountBalanceModal-D2KIfuVF.js} +871 -869
- package/components/{PlayerAccountBalanceModal-BeQeyJxx.js → PlayerAccountBalanceModal-DixkMh33.js} +875 -873
- package/components/PlayerAccountBalanceModal-jZVdpTAX.cjs +9 -0
- package/es2015/player-account-balance-modal.cjs +1 -1
- package/es2015/player-account-balance-modal.js +1 -1
- package/esnext/player-account-balance-modal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModal-DAeiD5mi.cjs +0 -22
package/components/{PlayerAccountBalanceModal-CJJruDUN.js → PlayerAccountBalanceModal-D2KIfuVF.js}
RENAMED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function oe() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Bn(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function en() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function je(e) {
|
|
10
|
+
e.forEach(Bn);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Qt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Sn(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function tr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function wn(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const r of t)
|
|
24
24
|
r(void 0);
|
|
@@ -27,20 +27,20 @@ function Sn(e, ...t) {
|
|
|
27
27
|
const n = e.subscribe(...t);
|
|
28
28
|
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function nr(e, t, n) {
|
|
31
|
+
e.$$.on_destroy.push(wn(t, n));
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function M(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const r =
|
|
36
|
+
function rr(e, t, n) {
|
|
37
|
+
const r = ir(e);
|
|
38
38
|
if (!r.getElementById(t)) {
|
|
39
39
|
const i = $("style");
|
|
40
|
-
i.id = t, i.textContent = n,
|
|
40
|
+
i.id = t, i.textContent = n, or(r, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function ir(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,49 +50,49 @@ function rr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return
|
|
53
|
+
function or(e, t) {
|
|
54
|
+
return M(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
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 se(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function An(e, t) {
|
|
67
67
|
for (let n = 0; n < e.length; n += 1)
|
|
68
68
|
e[n] && e[n].d(t);
|
|
69
69
|
}
|
|
70
70
|
function $(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function ve(e) {
|
|
74
74
|
return document.createTextNode(e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
return
|
|
76
|
+
function Ee() {
|
|
77
|
+
return ve(" ");
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return
|
|
79
|
+
function ar() {
|
|
80
|
+
return ve("");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ft(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) {
|
|
86
86
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function sr(e) {
|
|
89
89
|
return Array.from(e.childNodes);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Ce(e, t) {
|
|
92
92
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
93
93
|
t);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function ur(e) {
|
|
96
96
|
const t = {};
|
|
97
97
|
return e.childNodes.forEach(
|
|
98
98
|
/** @param {Element} node */
|
|
@@ -101,90 +101,90 @@ function sr(e) {
|
|
|
101
101
|
}
|
|
102
102
|
), t;
|
|
103
103
|
}
|
|
104
|
-
let
|
|
105
|
-
function
|
|
106
|
-
|
|
104
|
+
let et;
|
|
105
|
+
function Ke(e) {
|
|
106
|
+
et = e;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
if (!
|
|
108
|
+
function lr() {
|
|
109
|
+
if (!et)
|
|
110
110
|
throw new Error("Function called outside component initialization");
|
|
111
|
-
return
|
|
111
|
+
return et;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
114
|
-
|
|
113
|
+
function hr(e) {
|
|
114
|
+
lr().$$.on_mount.push(e);
|
|
115
115
|
}
|
|
116
|
-
const
|
|
117
|
-
let
|
|
118
|
-
const
|
|
119
|
-
let
|
|
120
|
-
function
|
|
121
|
-
|
|
116
|
+
const Ie = [], Dt = [];
|
|
117
|
+
let De = [];
|
|
118
|
+
const tn = [], cr = /* @__PURE__ */ Promise.resolve();
|
|
119
|
+
let Ft = !1;
|
|
120
|
+
function fr() {
|
|
121
|
+
Ft || (Ft = !0, cr.then(X));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
|
|
123
|
+
function Ut(e) {
|
|
124
|
+
De.push(e);
|
|
125
125
|
}
|
|
126
|
-
const
|
|
127
|
-
let
|
|
126
|
+
const Ot = /* @__PURE__ */ new Set();
|
|
127
|
+
let Me = 0;
|
|
128
128
|
function X() {
|
|
129
|
-
if (
|
|
129
|
+
if (Me !== 0)
|
|
130
130
|
return;
|
|
131
|
-
const e =
|
|
131
|
+
const e = et;
|
|
132
132
|
do {
|
|
133
133
|
try {
|
|
134
|
-
for (;
|
|
135
|
-
const t =
|
|
136
|
-
|
|
134
|
+
for (; Me < Ie.length; ) {
|
|
135
|
+
const t = Ie[Me];
|
|
136
|
+
Me++, Ke(t), dr(t.$$);
|
|
137
137
|
}
|
|
138
138
|
} catch (t) {
|
|
139
|
-
throw
|
|
139
|
+
throw Ie.length = 0, Me = 0, t;
|
|
140
140
|
}
|
|
141
|
-
for (
|
|
142
|
-
|
|
143
|
-
for (let t = 0; t <
|
|
144
|
-
const n =
|
|
145
|
-
|
|
141
|
+
for (Ke(null), Ie.length = 0, Me = 0; Dt.length; )
|
|
142
|
+
Dt.pop()();
|
|
143
|
+
for (let t = 0; t < De.length; t += 1) {
|
|
144
|
+
const n = De[t];
|
|
145
|
+
Ot.has(n) || (Ot.add(n), n());
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
} while (
|
|
149
|
-
for (;
|
|
150
|
-
|
|
151
|
-
|
|
147
|
+
De.length = 0;
|
|
148
|
+
} while (Ie.length);
|
|
149
|
+
for (; tn.length; )
|
|
150
|
+
tn.pop()();
|
|
151
|
+
Ft = !1, Ot.clear(), Ke(e);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function dr(e) {
|
|
154
154
|
if (e.fragment !== null) {
|
|
155
|
-
e.update(),
|
|
155
|
+
e.update(), je(e.before_update);
|
|
156
156
|
const t = e.dirty;
|
|
157
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
157
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ut);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function pr(e) {
|
|
161
161
|
const t = [], n = [];
|
|
162
|
-
|
|
162
|
+
De.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), De = t;
|
|
163
163
|
}
|
|
164
|
-
const
|
|
165
|
-
function
|
|
166
|
-
e && e.i && (
|
|
164
|
+
const mr = /* @__PURE__ */ new Set();
|
|
165
|
+
function gr(e, t) {
|
|
166
|
+
e && e.i && (mr.delete(e), e.i(t));
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function dt(e) {
|
|
169
169
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
170
170
|
}
|
|
171
|
-
function
|
|
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(
|
|
175
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
176
|
-
}), i.forEach(
|
|
173
|
+
r && r.m(t, n), Ut(() => {
|
|
174
|
+
const o = e.$$.on_mount.map(Bn).filter(Qt);
|
|
175
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : je(o), e.$$.on_mount = [];
|
|
176
|
+
}), i.forEach(Ut);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function yr(e, t) {
|
|
179
179
|
const n = e.$$;
|
|
180
|
-
n.fragment !== null && (
|
|
180
|
+
n.fragment !== null && (pr(n.after_update), je(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
e.$$.dirty[0] === -1 && (
|
|
182
|
+
function vr(e, t) {
|
|
183
|
+
e.$$.dirty[0] === -1 && (Ie.push(e), fr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
const d =
|
|
187
|
-
|
|
185
|
+
function Er(e, t, n, r, i, o, u = null, s = [-1]) {
|
|
186
|
+
const d = et;
|
|
187
|
+
Ke(e);
|
|
188
188
|
const h = e.$$ = {
|
|
189
189
|
fragment: null,
|
|
190
190
|
ctx: [],
|
|
@@ -192,7 +192,7 @@ function vr(e, t, n, r, i, o, u = null, s = [-1]) {
|
|
|
192
192
|
props: o,
|
|
193
193
|
update: oe,
|
|
194
194
|
not_equal: i,
|
|
195
|
-
bound:
|
|
195
|
+
bound: en(),
|
|
196
196
|
// lifecycle
|
|
197
197
|
on_mount: [],
|
|
198
198
|
on_destroy: [],
|
|
@@ -201,28 +201,28 @@ function vr(e, t, n, r, i, o, u = null, s = [-1]) {
|
|
|
201
201
|
after_update: [],
|
|
202
202
|
context: new Map(t.context || (d ? d.$$.context : [])),
|
|
203
203
|
// everything else
|
|
204
|
-
callbacks:
|
|
204
|
+
callbacks: en(),
|
|
205
205
|
dirty: s,
|
|
206
206
|
skip_bound: !1,
|
|
207
207
|
root: t.target || d.$$.root
|
|
208
208
|
};
|
|
209
209
|
u && u(h.root);
|
|
210
210
|
let c = !1;
|
|
211
|
-
if (h.ctx = n(e, t.props || {}, (g, y, ...x) => {
|
|
211
|
+
if (h.ctx = n ? n(e, t.props || {}, (g, y, ...x) => {
|
|
212
212
|
const T = x.length ? x[0] : y;
|
|
213
|
-
return h.ctx && i(h.ctx[g], h.ctx[g] = T) && (!h.skip_bound && h.bound[g] && h.bound[g](T), c &&
|
|
214
|
-
}), h.update(), c = !0,
|
|
213
|
+
return h.ctx && i(h.ctx[g], h.ctx[g] = T) && (!h.skip_bound && h.bound[g] && h.bound[g](T), c && vr(e, g)), y;
|
|
214
|
+
}) : [], h.update(), c = !0, je(h.before_update), h.fragment = r ? r(h.ctx) : !1, t.target) {
|
|
215
215
|
if (t.hydrate) {
|
|
216
|
-
const g =
|
|
216
|
+
const g = sr(t.target);
|
|
217
217
|
h.fragment && h.fragment.l(g), g.forEach(se);
|
|
218
218
|
} else
|
|
219
219
|
h.fragment && h.fragment.c();
|
|
220
|
-
t.intro &&
|
|
220
|
+
t.intro && gr(e.$$.fragment), br(e, t.target, t.anchor), X();
|
|
221
221
|
}
|
|
222
|
-
|
|
222
|
+
Ke(d);
|
|
223
223
|
}
|
|
224
|
-
let
|
|
225
|
-
typeof HTMLElement == "function" && (
|
|
224
|
+
let Cn;
|
|
225
|
+
typeof HTMLElement == "function" && (Cn = class extends HTMLElement {
|
|
226
226
|
/** The Svelte component constructor */
|
|
227
227
|
$$ctor;
|
|
228
228
|
/** Slots */
|
|
@@ -271,7 +271,7 @@ typeof HTMLElement == "function" && (An = class extends HTMLElement {
|
|
|
271
271
|
* @param {HTMLElement} [anchor]
|
|
272
272
|
*/
|
|
273
273
|
m: function(d, h) {
|
|
274
|
-
|
|
274
|
+
ce(d, o, h);
|
|
275
275
|
},
|
|
276
276
|
d: function(d) {
|
|
277
277
|
d && se(o);
|
|
@@ -281,12 +281,12 @@ typeof HTMLElement == "function" && (An = class extends HTMLElement {
|
|
|
281
281
|
};
|
|
282
282
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
283
283
|
return;
|
|
284
|
-
const t = {}, n =
|
|
284
|
+
const t = {}, n = ur(this);
|
|
285
285
|
for (const i of this.$$s)
|
|
286
286
|
i in n && (t[i] = [e(i)]);
|
|
287
287
|
for (const i of this.attributes) {
|
|
288
288
|
const o = this.$$g_p(i.name);
|
|
289
|
-
o in this.$$d || (this.$$d[o] =
|
|
289
|
+
o in this.$$d || (this.$$d[o] = lt(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" && (An = 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 = lt(
|
|
308
308
|
i,
|
|
309
309
|
this.$$d[i],
|
|
310
310
|
this.$$p_d,
|
|
@@ -326,7 +326,7 @@ typeof HTMLElement == "function" && (An = 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] = lt(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" && (An = class extends HTMLElement {
|
|
|
339
339
|
) || e;
|
|
340
340
|
}
|
|
341
341
|
});
|
|
342
|
-
function
|
|
342
|
+
function lt(e, t, n, r) {
|
|
343
343
|
const i = n[e]?.type;
|
|
344
344
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
345
345
|
return t;
|
|
@@ -368,8 +368,8 @@ function ut(e, t, n, r) {
|
|
|
368
368
|
return t;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
let u = class extends
|
|
371
|
+
function xr(e, t, n, r, i, o) {
|
|
372
|
+
let u = class extends Cn {
|
|
373
373
|
constructor() {
|
|
374
374
|
super(e, n, i), this.$$p_d = t;
|
|
375
375
|
}
|
|
@@ -385,7 +385,7 @@ function Er(e, t, n, r, i, o) {
|
|
|
385
385
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
386
386
|
},
|
|
387
387
|
set(d) {
|
|
388
|
-
d =
|
|
388
|
+
d = lt(s, d, t), this.$$d[s] = d, this.$$c?.$set({ [s]: d });
|
|
389
389
|
}
|
|
390
390
|
});
|
|
391
391
|
}), r.forEach((s) => {
|
|
@@ -397,7 +397,7 @@ function Er(e, t, n, r, i, o) {
|
|
|
397
397
|
}), e.element = /** @type {any} */
|
|
398
398
|
u, u;
|
|
399
399
|
}
|
|
400
|
-
class
|
|
400
|
+
class _r {
|
|
401
401
|
/**
|
|
402
402
|
* ### PRIVATE API
|
|
403
403
|
*
|
|
@@ -416,7 +416,7 @@ class xr {
|
|
|
416
416
|
$$set = void 0;
|
|
417
417
|
/** @returns {void} */
|
|
418
418
|
$destroy() {
|
|
419
|
-
|
|
419
|
+
yr(this, 1), this.$destroy = oe;
|
|
420
420
|
}
|
|
421
421
|
/**
|
|
422
422
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -425,7 +425,7 @@ class xr {
|
|
|
425
425
|
* @returns {() => void}
|
|
426
426
|
*/
|
|
427
427
|
$on(t, n) {
|
|
428
|
-
if (!
|
|
428
|
+
if (!Qt(n))
|
|
429
429
|
return oe;
|
|
430
430
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
431
431
|
return r.push(n), () => {
|
|
@@ -438,18 +438,18 @@ class xr {
|
|
|
438
438
|
* @returns {void}
|
|
439
439
|
*/
|
|
440
440
|
$set(t) {
|
|
441
|
-
this.$$set && !
|
|
441
|
+
this.$$set && !tr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
const
|
|
445
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
446
|
-
function
|
|
444
|
+
const Tr = "4";
|
|
445
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Tr);
|
|
446
|
+
function Br(e, t) {
|
|
447
447
|
if (e) {
|
|
448
448
|
const n = document.createElement("style");
|
|
449
449
|
n.innerHTML = t, e.appendChild(n);
|
|
450
450
|
}
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Sr(e, t) {
|
|
453
453
|
const n = new URL(t);
|
|
454
454
|
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
455
455
|
const i = document.createElement("style");
|
|
@@ -458,7 +458,7 @@ function Br(e, t) {
|
|
|
458
458
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function wr(e, t, n) {
|
|
462
462
|
if (window.emMessageBus) {
|
|
463
463
|
const r = document.createElement("style");
|
|
464
464
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -466,24 +466,24 @@ function Sr(e, t, n) {
|
|
|
466
466
|
});
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
const
|
|
470
|
-
function
|
|
469
|
+
const Pe = [];
|
|
470
|
+
function Ar(e, t) {
|
|
471
471
|
return {
|
|
472
|
-
subscribe:
|
|
472
|
+
subscribe: bt(e, t).subscribe
|
|
473
473
|
};
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function bt(e, t = oe) {
|
|
476
476
|
let n;
|
|
477
477
|
const r = /* @__PURE__ */ new Set();
|
|
478
478
|
function i(s) {
|
|
479
|
-
if (
|
|
480
|
-
const d = !
|
|
479
|
+
if (Sn(e, s) && (e = s, n)) {
|
|
480
|
+
const d = !Pe.length;
|
|
481
481
|
for (const h of r)
|
|
482
|
-
h[1](),
|
|
482
|
+
h[1](), Pe.push(h, e);
|
|
483
483
|
if (d) {
|
|
484
|
-
for (let h = 0; h <
|
|
485
|
-
|
|
486
|
-
|
|
484
|
+
for (let h = 0; h < Pe.length; h += 2)
|
|
485
|
+
Pe[h][0](Pe[h + 1]);
|
|
486
|
+
Pe.length = 0;
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
}
|
|
@@ -503,7 +503,7 @@ function ke(e, t, n) {
|
|
|
503
503
|
if (!i.every(Boolean))
|
|
504
504
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
505
505
|
const o = t.length < 2;
|
|
506
|
-
return
|
|
506
|
+
return Ar(n, (u, s) => {
|
|
507
507
|
let d = !1;
|
|
508
508
|
const h = [];
|
|
509
509
|
let c = 0, g = oe;
|
|
@@ -512,140 +512,126 @@ function ke(e, t, n) {
|
|
|
512
512
|
return;
|
|
513
513
|
g();
|
|
514
514
|
const T = t(r ? h[0] : h, u, s);
|
|
515
|
-
o ? u(T) : g =
|
|
515
|
+
o ? u(T) : g = Qt(T) ? T : oe;
|
|
516
516
|
}, x = i.map(
|
|
517
|
-
(T,
|
|
517
|
+
(T, P) => wn(
|
|
518
518
|
T,
|
|
519
|
-
(
|
|
520
|
-
h[
|
|
519
|
+
(j) => {
|
|
520
|
+
h[P] = j, c &= ~(1 << P), d && y();
|
|
521
521
|
},
|
|
522
522
|
() => {
|
|
523
|
-
c |= 1 <<
|
|
523
|
+
c |= 1 << P;
|
|
524
524
|
}
|
|
525
525
|
)
|
|
526
526
|
);
|
|
527
527
|
return d = !0, y(), function() {
|
|
528
|
-
|
|
528
|
+
je(x), g(), d = !1;
|
|
529
529
|
};
|
|
530
530
|
});
|
|
531
531
|
}
|
|
532
|
-
var
|
|
533
|
-
function
|
|
532
|
+
var Cr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
533
|
+
function Hr(e) {
|
|
534
534
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
535
535
|
}
|
|
536
|
-
var
|
|
537
|
-
return Lr(t) && !
|
|
536
|
+
var Or = function(t) {
|
|
537
|
+
return Lr(t) && !Rr(t);
|
|
538
538
|
};
|
|
539
539
|
function Lr(e) {
|
|
540
540
|
return !!e && typeof e == "object";
|
|
541
541
|
}
|
|
542
|
-
function
|
|
542
|
+
function Rr(e) {
|
|
543
543
|
var t = Object.prototype.toString.call(e);
|
|
544
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
545
|
-
}
|
|
546
|
-
var Rr = typeof Symbol == "function" && Symbol.for, Nr = Rr ? Symbol.for("react.element") : 60103;
|
|
547
|
-
function Mr(e) {
|
|
548
|
-
return e.$$typeof === Nr;
|
|
544
|
+
return t === "[object RegExp]" || t === "[object Date]" || Pr(e);
|
|
549
545
|
}
|
|
546
|
+
var Nr = typeof Symbol == "function" && Symbol.for, Mr = Nr ? Symbol.for("react.element") : 60103;
|
|
550
547
|
function Pr(e) {
|
|
548
|
+
return e.$$typeof === Mr;
|
|
549
|
+
}
|
|
550
|
+
function Ir(e) {
|
|
551
551
|
return Array.isArray(e) ? [] : {};
|
|
552
552
|
}
|
|
553
|
-
function
|
|
554
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
553
|
+
function tt(e, t) {
|
|
554
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Fe(Ir(e), e, t) : e;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function Dr(e, t, n) {
|
|
557
557
|
return e.concat(t).map(function(r) {
|
|
558
|
-
return
|
|
558
|
+
return tt(r, n);
|
|
559
559
|
});
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function Fr(e, t) {
|
|
562
562
|
if (!t.customMerge)
|
|
563
|
-
return
|
|
563
|
+
return Fe;
|
|
564
564
|
var n = t.customMerge(e);
|
|
565
|
-
return typeof n == "function" ? n :
|
|
565
|
+
return typeof n == "function" ? n : Fe;
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Ur(e) {
|
|
568
568
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
569
569
|
return Object.propertyIsEnumerable.call(e, t);
|
|
570
570
|
}) : [];
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
return Object.keys(e).concat(
|
|
572
|
+
function nn(e) {
|
|
573
|
+
return Object.keys(e).concat(Ur(e));
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function Hn(e, t) {
|
|
576
576
|
try {
|
|
577
577
|
return t in e;
|
|
578
578
|
} catch {
|
|
579
579
|
return !1;
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
function
|
|
583
|
-
return
|
|
582
|
+
function Gr(e, t) {
|
|
583
|
+
return Hn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function $r(e, t, n) {
|
|
586
586
|
var r = {};
|
|
587
|
-
return n.isMergeableObject(e) &&
|
|
588
|
-
r[i] =
|
|
589
|
-
}),
|
|
590
|
-
|
|
587
|
+
return n.isMergeableObject(e) && nn(e).forEach(function(i) {
|
|
588
|
+
r[i] = tt(e[i], n);
|
|
589
|
+
}), nn(t).forEach(function(i) {
|
|
590
|
+
Gr(e, i) || (Hn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Fr(i, n)(e[i], t[i], n) : r[i] = tt(t[i], n));
|
|
591
591
|
}), r;
|
|
592
592
|
}
|
|
593
|
-
function
|
|
594
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
593
|
+
function Fe(e, t, n) {
|
|
594
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Dr, n.isMergeableObject = n.isMergeableObject || Or, n.cloneUnlessOtherwiseSpecified = tt;
|
|
595
595
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
596
|
-
return o ? r ? n.arrayMerge(e, t, n) :
|
|
596
|
+
return o ? r ? n.arrayMerge(e, t, n) : $r(e, t, n) : tt(t, n);
|
|
597
597
|
}
|
|
598
|
-
|
|
598
|
+
Fe.all = function(t, n) {
|
|
599
599
|
if (!Array.isArray(t))
|
|
600
600
|
throw new Error("first argument should be an array");
|
|
601
601
|
return t.reduce(function(r, i) {
|
|
602
|
-
return
|
|
602
|
+
return Fe(r, i, n);
|
|
603
603
|
}, {});
|
|
604
604
|
};
|
|
605
|
-
var
|
|
606
|
-
const
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
611
|
-
purpose with or without fee is hereby granted.
|
|
612
|
-
|
|
613
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
614
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
615
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
616
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
617
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
618
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
619
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
620
|
-
***************************************************************************** */
|
|
621
|
-
var Ft = function(e, t) {
|
|
622
|
-
return Ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
605
|
+
var jr = Fe, kr = jr;
|
|
606
|
+
const Vr = /* @__PURE__ */ Hr(kr);
|
|
607
|
+
var Gt = function(e, t) {
|
|
608
|
+
return Gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
623
609
|
n.__proto__ = r;
|
|
624
610
|
} || function(n, r) {
|
|
625
611
|
for (var i in r)
|
|
626
612
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
627
|
-
},
|
|
613
|
+
}, Gt(e, t);
|
|
628
614
|
};
|
|
629
|
-
function
|
|
615
|
+
function yt(e, t) {
|
|
630
616
|
if (typeof t != "function" && t !== null)
|
|
631
617
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
632
|
-
|
|
618
|
+
Gt(e, t);
|
|
633
619
|
function n() {
|
|
634
620
|
this.constructor = e;
|
|
635
621
|
}
|
|
636
622
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
637
623
|
}
|
|
638
|
-
var
|
|
639
|
-
return
|
|
624
|
+
var he = function() {
|
|
625
|
+
return he = Object.assign || function(t) {
|
|
640
626
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
641
627
|
n = arguments[r];
|
|
642
628
|
for (var o in n)
|
|
643
629
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
644
630
|
}
|
|
645
631
|
return t;
|
|
646
|
-
},
|
|
632
|
+
}, he.apply(this, arguments);
|
|
647
633
|
};
|
|
648
|
-
function
|
|
634
|
+
function Xr(e, t) {
|
|
649
635
|
var n = {};
|
|
650
636
|
for (var r in e)
|
|
651
637
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
@@ -654,46 +640,43 @@ function Vr(e, t) {
|
|
|
654
640
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
655
641
|
return n;
|
|
656
642
|
}
|
|
657
|
-
function
|
|
658
|
-
if (arguments.length === 2)
|
|
643
|
+
function Lt(e, t, n) {
|
|
644
|
+
if (n || arguments.length === 2)
|
|
659
645
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
660
646
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
661
|
-
return e.concat(o || t);
|
|
647
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
662
648
|
}
|
|
663
|
-
function
|
|
664
|
-
var n = t && t.cache ? t.cache :
|
|
649
|
+
function Rt(e, t) {
|
|
650
|
+
var n = t && t.cache ? t.cache : Yr, r = t && t.serializer ? t.serializer : Qr, i = t && t.strategy ? t.strategy : Zr;
|
|
665
651
|
return i(e, {
|
|
666
652
|
cache: n,
|
|
667
653
|
serializer: r
|
|
668
654
|
});
|
|
669
655
|
}
|
|
670
|
-
function
|
|
656
|
+
function zr(e) {
|
|
671
657
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
672
658
|
}
|
|
673
|
-
function
|
|
674
|
-
var i =
|
|
659
|
+
function Wr(e, t, n, r) {
|
|
660
|
+
var i = zr(r) ? r : n(r), o = t.get(i);
|
|
675
661
|
return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
|
|
676
662
|
}
|
|
677
|
-
function
|
|
663
|
+
function On(e, t, n) {
|
|
678
664
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
679
665
|
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
680
666
|
}
|
|
681
|
-
function
|
|
667
|
+
function Ln(e, t, n, r, i) {
|
|
682
668
|
return n.bind(t, e, r, i);
|
|
683
669
|
}
|
|
684
|
-
function zr(e, t) {
|
|
685
|
-
var n = e.length === 1 ? Hn : Ln;
|
|
686
|
-
return qt(e, this, n, t.cache.create(), t.serializer);
|
|
687
|
-
}
|
|
688
|
-
function Wr(e, t) {
|
|
689
|
-
return qt(e, this, Ln, t.cache.create(), t.serializer);
|
|
690
|
-
}
|
|
691
670
|
function Zr(e, t) {
|
|
692
|
-
|
|
671
|
+
var n = e.length === 1 ? Wr : On;
|
|
672
|
+
return Ln(e, this, n, t.cache.create(), t.serializer);
|
|
673
|
+
}
|
|
674
|
+
function qr(e, t) {
|
|
675
|
+
return Ln(e, this, On, t.cache.create(), t.serializer);
|
|
693
676
|
}
|
|
694
|
-
var
|
|
677
|
+
var Qr = function() {
|
|
695
678
|
return JSON.stringify(arguments);
|
|
696
|
-
},
|
|
679
|
+
}, Jr = (
|
|
697
680
|
/** @class */
|
|
698
681
|
function() {
|
|
699
682
|
function e() {
|
|
@@ -705,62 +688,71 @@ var qr = function() {
|
|
|
705
688
|
this.cache[t] = n;
|
|
706
689
|
}, e;
|
|
707
690
|
}()
|
|
708
|
-
),
|
|
691
|
+
), Yr = {
|
|
709
692
|
create: function() {
|
|
710
|
-
return new
|
|
693
|
+
return new Jr();
|
|
711
694
|
}
|
|
712
|
-
},
|
|
713
|
-
variadic:
|
|
714
|
-
|
|
715
|
-
|
|
695
|
+
}, Nt = {
|
|
696
|
+
variadic: qr
|
|
697
|
+
}, pt = function() {
|
|
698
|
+
return pt = Object.assign || function(t) {
|
|
699
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
700
|
+
n = arguments[r];
|
|
701
|
+
for (var o in n)
|
|
702
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
703
|
+
}
|
|
704
|
+
return t;
|
|
705
|
+
}, pt.apply(this, arguments);
|
|
706
|
+
};
|
|
707
|
+
var C;
|
|
716
708
|
(function(e) {
|
|
717
709
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
718
710
|
})(C || (C = {}));
|
|
719
|
-
var
|
|
711
|
+
var D;
|
|
720
712
|
(function(e) {
|
|
721
713
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
722
|
-
})(
|
|
723
|
-
var
|
|
714
|
+
})(D || (D = {}));
|
|
715
|
+
var Ue;
|
|
724
716
|
(function(e) {
|
|
725
717
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
726
|
-
})(
|
|
727
|
-
function
|
|
728
|
-
return e.type ===
|
|
729
|
-
}
|
|
730
|
-
function Yr(e) {
|
|
731
|
-
return e.type === F.argument;
|
|
718
|
+
})(Ue || (Ue = {}));
|
|
719
|
+
function rn(e) {
|
|
720
|
+
return e.type === D.literal;
|
|
732
721
|
}
|
|
733
|
-
function
|
|
734
|
-
return e.type ===
|
|
722
|
+
function Kr(e) {
|
|
723
|
+
return e.type === D.argument;
|
|
735
724
|
}
|
|
736
725
|
function Rn(e) {
|
|
737
|
-
return e.type ===
|
|
726
|
+
return e.type === D.number;
|
|
738
727
|
}
|
|
739
728
|
function Nn(e) {
|
|
740
|
-
return e.type ===
|
|
729
|
+
return e.type === D.date;
|
|
741
730
|
}
|
|
742
731
|
function Mn(e) {
|
|
743
|
-
return e.type ===
|
|
732
|
+
return e.type === D.time;
|
|
744
733
|
}
|
|
745
734
|
function Pn(e) {
|
|
746
|
-
return e.type ===
|
|
747
|
-
}
|
|
748
|
-
function Kr(e) {
|
|
749
|
-
return e.type === F.pound;
|
|
735
|
+
return e.type === D.select;
|
|
750
736
|
}
|
|
751
737
|
function In(e) {
|
|
752
|
-
return e.type ===
|
|
738
|
+
return e.type === D.plural;
|
|
739
|
+
}
|
|
740
|
+
function ei(e) {
|
|
741
|
+
return e.type === D.pound;
|
|
753
742
|
}
|
|
754
743
|
function Dn(e) {
|
|
755
|
-
return
|
|
744
|
+
return e.type === D.tag;
|
|
756
745
|
}
|
|
757
|
-
function
|
|
758
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
746
|
+
function Fn(e) {
|
|
747
|
+
return !!(e && typeof e == "object" && e.type === Ue.number);
|
|
759
748
|
}
|
|
760
|
-
|
|
761
|
-
|
|
749
|
+
function $t(e) {
|
|
750
|
+
return !!(e && typeof e == "object" && e.type === Ue.dateTime);
|
|
751
|
+
}
|
|
752
|
+
var Un = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, ti = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
|
|
753
|
+
function ni(e) {
|
|
762
754
|
var t = {};
|
|
763
|
-
return e.replace(
|
|
755
|
+
return e.replace(ti, function(n) {
|
|
764
756
|
var r = n.length;
|
|
765
757
|
switch (n[0]) {
|
|
766
758
|
case "G":
|
|
@@ -849,11 +841,21 @@ function ti(e) {
|
|
|
849
841
|
return "";
|
|
850
842
|
}), t;
|
|
851
843
|
}
|
|
852
|
-
var
|
|
853
|
-
function
|
|
844
|
+
var U = function() {
|
|
845
|
+
return U = Object.assign || function(t) {
|
|
846
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
847
|
+
n = arguments[r];
|
|
848
|
+
for (var o in n)
|
|
849
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
850
|
+
}
|
|
851
|
+
return t;
|
|
852
|
+
}, U.apply(this, arguments);
|
|
853
|
+
};
|
|
854
|
+
var ri = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
855
|
+
function ii(e) {
|
|
854
856
|
if (e.length === 0)
|
|
855
857
|
throw new Error("Number skeleton cannot be empty");
|
|
856
|
-
for (var t = e.split(
|
|
858
|
+
for (var t = e.split(ri).filter(function(y) {
|
|
857
859
|
return y.length > 0;
|
|
858
860
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
859
861
|
var o = i[r], u = o.split("/");
|
|
@@ -868,17 +870,17 @@ function ri(e) {
|
|
|
868
870
|
}
|
|
869
871
|
return n;
|
|
870
872
|
}
|
|
871
|
-
function
|
|
873
|
+
function oi(e) {
|
|
872
874
|
return e.replace(/^(.*?)-/, "");
|
|
873
875
|
}
|
|
874
|
-
var
|
|
875
|
-
function
|
|
876
|
+
var on = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Gn = /^(@+)?(\+|#+)?[rs]?$/g, ai = /(\*)(0+)|(#+)(0+)|(0+)/g, $n = /^(0+)$/;
|
|
877
|
+
function an(e) {
|
|
876
878
|
var t = {};
|
|
877
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
879
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Gn, function(n, r, i) {
|
|
878
880
|
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
879
881
|
}), t;
|
|
880
882
|
}
|
|
881
|
-
function
|
|
883
|
+
function jn(e) {
|
|
882
884
|
switch (e) {
|
|
883
885
|
case "sign-auto":
|
|
884
886
|
return {
|
|
@@ -918,7 +920,7 @@ function $n(e) {
|
|
|
918
920
|
};
|
|
919
921
|
}
|
|
920
922
|
}
|
|
921
|
-
function
|
|
923
|
+
function si(e) {
|
|
922
924
|
var t;
|
|
923
925
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
924
926
|
notation: "engineering"
|
|
@@ -926,17 +928,17 @@ function ai(e) {
|
|
|
926
928
|
notation: "scientific"
|
|
927
929
|
}, e = e.slice(1)), t) {
|
|
928
930
|
var n = e.slice(0, 2);
|
|
929
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)),
|
|
931
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !$n.test(e))
|
|
930
932
|
throw new Error("Malformed concise eng/scientific notation");
|
|
931
933
|
t.minimumIntegerDigits = e.length;
|
|
932
934
|
}
|
|
933
935
|
return t;
|
|
934
936
|
}
|
|
935
|
-
function
|
|
936
|
-
var t = {}, n =
|
|
937
|
+
function sn(e) {
|
|
938
|
+
var t = {}, n = jn(e);
|
|
937
939
|
return n || t;
|
|
938
940
|
}
|
|
939
|
-
function
|
|
941
|
+
function ui(e) {
|
|
940
942
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
941
943
|
var i = r[n];
|
|
942
944
|
switch (i.stem) {
|
|
@@ -960,7 +962,7 @@ function si(e) {
|
|
|
960
962
|
continue;
|
|
961
963
|
case "measure-unit":
|
|
962
964
|
case "unit":
|
|
963
|
-
t.style = "unit", t.unit =
|
|
965
|
+
t.style = "unit", t.unit = oi(i.options[0]);
|
|
964
966
|
continue;
|
|
965
967
|
case "compact-short":
|
|
966
968
|
case "K":
|
|
@@ -971,13 +973,13 @@ function si(e) {
|
|
|
971
973
|
t.notation = "compact", t.compactDisplay = "long";
|
|
972
974
|
continue;
|
|
973
975
|
case "scientific":
|
|
974
|
-
t =
|
|
975
|
-
return
|
|
976
|
+
t = U(U(U({}, t), { notation: "scientific" }), i.options.reduce(function(d, h) {
|
|
977
|
+
return U(U({}, d), sn(h));
|
|
976
978
|
}, {}));
|
|
977
979
|
continue;
|
|
978
980
|
case "engineering":
|
|
979
|
-
t =
|
|
980
|
-
return
|
|
981
|
+
t = U(U(U({}, t), { notation: "engineering" }), i.options.reduce(function(d, h) {
|
|
982
|
+
return U(U({}, d), sn(h));
|
|
981
983
|
}, {}));
|
|
982
984
|
continue;
|
|
983
985
|
case "notation-simple":
|
|
@@ -1022,7 +1024,7 @@ function si(e) {
|
|
|
1022
1024
|
case "integer-width":
|
|
1023
1025
|
if (i.options.length > 1)
|
|
1024
1026
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1025
|
-
i.options[0].replace(
|
|
1027
|
+
i.options[0].replace(ai, function(d, h, c, g, y, x) {
|
|
1026
1028
|
if (h)
|
|
1027
1029
|
t.minimumIntegerDigits = c.length;
|
|
1028
1030
|
else {
|
|
@@ -1035,32 +1037,32 @@ function si(e) {
|
|
|
1035
1037
|
});
|
|
1036
1038
|
continue;
|
|
1037
1039
|
}
|
|
1038
|
-
if (
|
|
1040
|
+
if ($n.test(i.stem)) {
|
|
1039
1041
|
t.minimumIntegerDigits = i.stem.length;
|
|
1040
1042
|
continue;
|
|
1041
1043
|
}
|
|
1042
|
-
if (
|
|
1044
|
+
if (on.test(i.stem)) {
|
|
1043
1045
|
if (i.options.length > 1)
|
|
1044
1046
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1045
|
-
i.stem.replace(
|
|
1047
|
+
i.stem.replace(on, function(d, h, c, g, y, x) {
|
|
1046
1048
|
return c === "*" ? t.minimumFractionDigits = h.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : y && x ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + x.length) : (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length), "";
|
|
1047
1049
|
});
|
|
1048
1050
|
var o = i.options[0];
|
|
1049
|
-
o === "w" ? t =
|
|
1051
|
+
o === "w" ? t = U(U({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = U(U({}, t), an(o)));
|
|
1050
1052
|
continue;
|
|
1051
1053
|
}
|
|
1052
|
-
if (
|
|
1053
|
-
t =
|
|
1054
|
+
if (Gn.test(i.stem)) {
|
|
1055
|
+
t = U(U({}, t), an(i.stem));
|
|
1054
1056
|
continue;
|
|
1055
1057
|
}
|
|
1056
|
-
var u =
|
|
1057
|
-
u && (t =
|
|
1058
|
-
var s =
|
|
1059
|
-
s && (t =
|
|
1058
|
+
var u = jn(i.stem);
|
|
1059
|
+
u && (t = U(U({}, t), u));
|
|
1060
|
+
var s = si(i.stem);
|
|
1061
|
+
s && (t = U(U({}, t), s));
|
|
1060
1062
|
}
|
|
1061
1063
|
return t;
|
|
1062
1064
|
}
|
|
1063
|
-
var
|
|
1065
|
+
var ut = {
|
|
1064
1066
|
"001": [
|
|
1065
1067
|
"H",
|
|
1066
1068
|
"h"
|
|
@@ -2475,13 +2477,13 @@ var st = {
|
|
|
2475
2477
|
"h"
|
|
2476
2478
|
]
|
|
2477
2479
|
};
|
|
2478
|
-
function
|
|
2480
|
+
function li(e, t) {
|
|
2479
2481
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2480
2482
|
var i = e.charAt(r);
|
|
2481
2483
|
if (i === "j") {
|
|
2482
2484
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2483
2485
|
o++, r++;
|
|
2484
|
-
var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), d = "a", h =
|
|
2486
|
+
var u = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), d = "a", h = hi(t);
|
|
2485
2487
|
for ((h == "H" || h == "k") && (s = 0); s-- > 0; )
|
|
2486
2488
|
n += d;
|
|
2487
2489
|
for (; u-- > 0; )
|
|
@@ -2491,7 +2493,7 @@ function ui(e, t) {
|
|
|
2491
2493
|
}
|
|
2492
2494
|
return n;
|
|
2493
2495
|
}
|
|
2494
|
-
function
|
|
2496
|
+
function hi(e) {
|
|
2495
2497
|
var t = e.hourCycle;
|
|
2496
2498
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2497
2499
|
e.hourCycles && // @ts-ignore
|
|
@@ -2510,23 +2512,23 @@ function li(e) {
|
|
|
2510
2512
|
}
|
|
2511
2513
|
var n = e.language, r;
|
|
2512
2514
|
n !== "root" && (r = e.maximize().region);
|
|
2513
|
-
var i =
|
|
2515
|
+
var i = ut[r || ""] || ut[n || ""] || ut["".concat(n, "-001")] || ut["001"];
|
|
2514
2516
|
return i[0];
|
|
2515
2517
|
}
|
|
2516
|
-
var
|
|
2518
|
+
var Mt, ci = new RegExp("^".concat(Un.source, "*")), fi = new RegExp("".concat(Un.source, "*$"));
|
|
2517
2519
|
function H(e, t) {
|
|
2518
2520
|
return { start: e, end: t };
|
|
2519
2521
|
}
|
|
2520
|
-
var
|
|
2522
|
+
var di = !!String.prototype.startsWith && "_a".startsWith("a", 1), pi = !!String.fromCodePoint, mi = !!Object.fromEntries, gi = !!String.prototype.codePointAt, bi = !!String.prototype.trimStart, yi = !!String.prototype.trimEnd, vi = !!Number.isSafeInteger, Ei = vi ? Number.isSafeInteger : function(e) {
|
|
2521
2523
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2522
|
-
},
|
|
2524
|
+
}, jt = !0;
|
|
2523
2525
|
try {
|
|
2524
|
-
var
|
|
2525
|
-
|
|
2526
|
+
var xi = Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2527
|
+
jt = ((Mt = xi.exec("a")) === null || Mt === void 0 ? void 0 : Mt[0]) === "a";
|
|
2526
2528
|
} catch {
|
|
2527
|
-
|
|
2529
|
+
jt = !1;
|
|
2528
2530
|
}
|
|
2529
|
-
var
|
|
2531
|
+
var un = di ? (
|
|
2530
2532
|
// Native
|
|
2531
2533
|
function(t, n, r) {
|
|
2532
2534
|
return t.startsWith(n, r);
|
|
@@ -2536,7 +2538,7 @@ var sn = fi ? (
|
|
|
2536
2538
|
function(t, n, r) {
|
|
2537
2539
|
return t.slice(r, r + n.length) === n;
|
|
2538
2540
|
}
|
|
2539
|
-
),
|
|
2541
|
+
), kt = pi ? String.fromCodePoint : (
|
|
2540
2542
|
// IE11
|
|
2541
2543
|
function() {
|
|
2542
2544
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
@@ -2548,9 +2550,9 @@ var sn = fi ? (
|
|
|
2548
2550
|
}
|
|
2549
2551
|
return r;
|
|
2550
2552
|
}
|
|
2551
|
-
),
|
|
2553
|
+
), ln = (
|
|
2552
2554
|
// native
|
|
2553
|
-
|
|
2555
|
+
mi ? Object.fromEntries : (
|
|
2554
2556
|
// Ponyfill
|
|
2555
2557
|
function(t) {
|
|
2556
2558
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
@@ -2560,7 +2562,7 @@ var sn = fi ? (
|
|
|
2560
2562
|
return n;
|
|
2561
2563
|
}
|
|
2562
2564
|
)
|
|
2563
|
-
), kn =
|
|
2565
|
+
), kn = gi ? (
|
|
2564
2566
|
// Native
|
|
2565
2567
|
function(t, n) {
|
|
2566
2568
|
return t.codePointAt(n);
|
|
@@ -2574,7 +2576,7 @@ var sn = fi ? (
|
|
|
2574
2576
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2575
2577
|
}
|
|
2576
2578
|
}
|
|
2577
|
-
),
|
|
2579
|
+
), _i = bi ? (
|
|
2578
2580
|
// Native
|
|
2579
2581
|
function(t) {
|
|
2580
2582
|
return t.trimStart();
|
|
@@ -2582,9 +2584,9 @@ var sn = fi ? (
|
|
|
2582
2584
|
) : (
|
|
2583
2585
|
// Ponyfill
|
|
2584
2586
|
function(t) {
|
|
2585
|
-
return t.replace(
|
|
2587
|
+
return t.replace(ci, "");
|
|
2586
2588
|
}
|
|
2587
|
-
),
|
|
2589
|
+
), Ti = yi ? (
|
|
2588
2590
|
// Native
|
|
2589
2591
|
function(t) {
|
|
2590
2592
|
return t.trimEnd();
|
|
@@ -2592,32 +2594,32 @@ var sn = fi ? (
|
|
|
2592
2594
|
) : (
|
|
2593
2595
|
// Ponyfill
|
|
2594
2596
|
function(t) {
|
|
2595
|
-
return t.replace(
|
|
2597
|
+
return t.replace(fi, "");
|
|
2596
2598
|
}
|
|
2597
2599
|
);
|
|
2598
|
-
function
|
|
2600
|
+
function Vn(e, t) {
|
|
2599
2601
|
return new RegExp(e, t);
|
|
2600
2602
|
}
|
|
2601
|
-
var
|
|
2602
|
-
if (
|
|
2603
|
-
var
|
|
2604
|
-
|
|
2603
|
+
var Vt;
|
|
2604
|
+
if (jt) {
|
|
2605
|
+
var hn = Vn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2606
|
+
Vt = function(t, n) {
|
|
2605
2607
|
var r;
|
|
2606
|
-
|
|
2607
|
-
var i =
|
|
2608
|
+
hn.lastIndex = n;
|
|
2609
|
+
var i = hn.exec(t);
|
|
2608
2610
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2609
2611
|
};
|
|
2610
2612
|
} else
|
|
2611
|
-
|
|
2613
|
+
Vt = function(t, n) {
|
|
2612
2614
|
for (var r = []; ; ) {
|
|
2613
2615
|
var i = kn(t, n);
|
|
2614
|
-
if (i === void 0 ||
|
|
2616
|
+
if (i === void 0 || Xn(i) || Ai(i))
|
|
2615
2617
|
break;
|
|
2616
2618
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2617
2619
|
}
|
|
2618
|
-
return
|
|
2620
|
+
return kt.apply(void 0, r);
|
|
2619
2621
|
};
|
|
2620
|
-
var
|
|
2622
|
+
var Bi = (
|
|
2621
2623
|
/** @class */
|
|
2622
2624
|
function() {
|
|
2623
2625
|
function e(t, n) {
|
|
@@ -2641,14 +2643,14 @@ var Ti = (
|
|
|
2641
2643
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2642
2644
|
var s = this.clonePosition();
|
|
2643
2645
|
this.bump(), i.push({
|
|
2644
|
-
type:
|
|
2646
|
+
type: D.pound,
|
|
2645
2647
|
location: H(s, this.clonePosition())
|
|
2646
2648
|
});
|
|
2647
2649
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2648
2650
|
if (r)
|
|
2649
2651
|
break;
|
|
2650
2652
|
return this.error(C.UNMATCHED_CLOSING_TAG, H(this.clonePosition(), this.clonePosition()));
|
|
2651
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2653
|
+
} else if (o === 60 && !this.ignoreTag && Xt(this.peek() || 0)) {
|
|
2652
2654
|
var u = this.parseTag(t, n);
|
|
2653
2655
|
if (u.err)
|
|
2654
2656
|
return u;
|
|
@@ -2669,7 +2671,7 @@ var Ti = (
|
|
|
2669
2671
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2670
2672
|
return {
|
|
2671
2673
|
val: {
|
|
2672
|
-
type:
|
|
2674
|
+
type: D.literal,
|
|
2673
2675
|
value: "<".concat(i, "/>"),
|
|
2674
2676
|
location: H(r, this.clonePosition())
|
|
2675
2677
|
},
|
|
@@ -2681,12 +2683,12 @@ var Ti = (
|
|
|
2681
2683
|
return o;
|
|
2682
2684
|
var u = o.val, s = this.clonePosition();
|
|
2683
2685
|
if (this.bumpIf("</")) {
|
|
2684
|
-
if (this.isEOF() || !
|
|
2686
|
+
if (this.isEOF() || !Xt(this.char()))
|
|
2685
2687
|
return this.error(C.INVALID_TAG, H(s, this.clonePosition()));
|
|
2686
2688
|
var d = this.clonePosition(), h = this.parseTagName();
|
|
2687
2689
|
return i !== h ? this.error(C.UNMATCHED_CLOSING_TAG, H(d, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2688
2690
|
val: {
|
|
2689
|
-
type:
|
|
2691
|
+
type: D.tag,
|
|
2690
2692
|
value: i,
|
|
2691
2693
|
children: u,
|
|
2692
2694
|
location: H(r, this.clonePosition())
|
|
@@ -2699,7 +2701,7 @@ var Ti = (
|
|
|
2699
2701
|
return this.error(C.INVALID_TAG, H(r, this.clonePosition()));
|
|
2700
2702
|
}, e.prototype.parseTagName = function() {
|
|
2701
2703
|
var t = this.offset();
|
|
2702
|
-
for (this.bump(); !this.isEOF() &&
|
|
2704
|
+
for (this.bump(); !this.isEOF() && wi(this.char()); )
|
|
2703
2705
|
this.bump();
|
|
2704
2706
|
return this.message.slice(t, this.offset());
|
|
2705
2707
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2723,12 +2725,12 @@ var Ti = (
|
|
|
2723
2725
|
}
|
|
2724
2726
|
var d = H(r, this.clonePosition());
|
|
2725
2727
|
return {
|
|
2726
|
-
val: { type:
|
|
2728
|
+
val: { type: D.literal, value: i, location: d },
|
|
2727
2729
|
err: null
|
|
2728
2730
|
};
|
|
2729
2731
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2730
2732
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2731
|
-
!
|
|
2733
|
+
!Si(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2732
2734
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2733
2735
|
if (this.isEOF() || this.char() !== 39)
|
|
2734
2736
|
return null;
|
|
@@ -2762,12 +2764,12 @@ var Ti = (
|
|
|
2762
2764
|
n.push(r);
|
|
2763
2765
|
this.bump();
|
|
2764
2766
|
}
|
|
2765
|
-
return
|
|
2767
|
+
return kt.apply(void 0, n);
|
|
2766
2768
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2767
2769
|
if (this.isEOF())
|
|
2768
2770
|
return null;
|
|
2769
2771
|
var r = this.char();
|
|
2770
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2772
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), kt(r));
|
|
2771
2773
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2772
2774
|
var r = this.clonePosition();
|
|
2773
2775
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2783,7 +2785,7 @@ var Ti = (
|
|
|
2783
2785
|
case 125:
|
|
2784
2786
|
return this.bump(), {
|
|
2785
2787
|
val: {
|
|
2786
|
-
type:
|
|
2788
|
+
type: D.argument,
|
|
2787
2789
|
// value does not include the opening and closing braces.
|
|
2788
2790
|
value: i,
|
|
2789
2791
|
location: H(r, this.clonePosition())
|
|
@@ -2796,7 +2798,7 @@ var Ti = (
|
|
|
2796
2798
|
return this.error(C.MALFORMED_ARGUMENT, H(r, this.clonePosition()));
|
|
2797
2799
|
}
|
|
2798
2800
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2799
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2801
|
+
var t = this.clonePosition(), n = this.offset(), r = Vt(this.message, n), i = n + r.length;
|
|
2800
2802
|
this.bumpTo(i);
|
|
2801
2803
|
var o = this.clonePosition(), u = H(t, o);
|
|
2802
2804
|
return { value: r, location: u };
|
|
@@ -2815,7 +2817,7 @@ var Ti = (
|
|
|
2815
2817
|
var c = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
|
|
2816
2818
|
if (g.err)
|
|
2817
2819
|
return g;
|
|
2818
|
-
var y =
|
|
2820
|
+
var y = Ti(g.val);
|
|
2819
2821
|
if (y.length === 0)
|
|
2820
2822
|
return this.error(C.EXPECT_ARGUMENT_STYLE, H(this.clonePosition(), this.clonePosition()));
|
|
2821
2823
|
var x = H(c, this.clonePosition());
|
|
@@ -2824,37 +2826,37 @@ var Ti = (
|
|
|
2824
2826
|
var T = this.tryParseArgumentClose(i);
|
|
2825
2827
|
if (T.err)
|
|
2826
2828
|
return T;
|
|
2827
|
-
var
|
|
2828
|
-
if (h &&
|
|
2829
|
-
var
|
|
2829
|
+
var P = H(i, this.clonePosition());
|
|
2830
|
+
if (h && un(h?.style, "::", 0)) {
|
|
2831
|
+
var j = _i(h.style.slice(2));
|
|
2830
2832
|
if (s === "number") {
|
|
2831
|
-
var g = this.parseNumberSkeletonFromString(
|
|
2833
|
+
var g = this.parseNumberSkeletonFromString(j, h.styleLocation);
|
|
2832
2834
|
return g.err ? g : {
|
|
2833
|
-
val: { type:
|
|
2835
|
+
val: { type: D.number, value: r, location: P, style: g.val },
|
|
2834
2836
|
err: null
|
|
2835
2837
|
};
|
|
2836
2838
|
} else {
|
|
2837
|
-
if (
|
|
2838
|
-
return this.error(C.EXPECT_DATE_TIME_SKELETON,
|
|
2839
|
-
var z =
|
|
2840
|
-
this.locale && (z =
|
|
2839
|
+
if (j.length === 0)
|
|
2840
|
+
return this.error(C.EXPECT_DATE_TIME_SKELETON, P);
|
|
2841
|
+
var z = j;
|
|
2842
|
+
this.locale && (z = li(j, this.locale));
|
|
2841
2843
|
var y = {
|
|
2842
|
-
type:
|
|
2844
|
+
type: Ue.dateTime,
|
|
2843
2845
|
pattern: z,
|
|
2844
2846
|
location: h.styleLocation,
|
|
2845
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2846
|
-
}, G = s === "date" ?
|
|
2847
|
+
parsedOptions: this.shouldParseSkeletons ? ni(z) : {}
|
|
2848
|
+
}, G = s === "date" ? D.date : D.time;
|
|
2847
2849
|
return {
|
|
2848
|
-
val: { type: G, value: r, location:
|
|
2850
|
+
val: { type: G, value: r, location: P, style: y },
|
|
2849
2851
|
err: null
|
|
2850
2852
|
};
|
|
2851
2853
|
}
|
|
2852
2854
|
}
|
|
2853
2855
|
return {
|
|
2854
2856
|
val: {
|
|
2855
|
-
type: s === "number" ?
|
|
2857
|
+
type: s === "number" ? D.number : s === "date" ? D.date : D.time,
|
|
2856
2858
|
value: r,
|
|
2857
|
-
location:
|
|
2859
|
+
location: P,
|
|
2858
2860
|
style: (o = h?.style) !== null && o !== void 0 ? o : null
|
|
2859
2861
|
},
|
|
2860
2862
|
err: null
|
|
@@ -2865,9 +2867,9 @@ var Ti = (
|
|
|
2865
2867
|
case "select": {
|
|
2866
2868
|
var B = this.clonePosition();
|
|
2867
2869
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2868
|
-
return this.error(C.EXPECT_SELECT_ARGUMENT_OPTIONS, H(B,
|
|
2870
|
+
return this.error(C.EXPECT_SELECT_ARGUMENT_OPTIONS, H(B, pt({}, B)));
|
|
2869
2871
|
this.bumpSpace();
|
|
2870
|
-
var w = this.parseIdentifierIfPossible(),
|
|
2872
|
+
var w = this.parseIdentifierIfPossible(), I = 0;
|
|
2871
2873
|
if (s !== "select" && w.value === "offset") {
|
|
2872
2874
|
if (!this.bumpIf(":"))
|
|
2873
2875
|
return this.error(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H(this.clonePosition(), this.clonePosition()));
|
|
@@ -2875,29 +2877,29 @@ var Ti = (
|
|
|
2875
2877
|
var g = this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, C.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2876
2878
|
if (g.err)
|
|
2877
2879
|
return g;
|
|
2878
|
-
this.bumpSpace(), w = this.parseIdentifierIfPossible(),
|
|
2880
|
+
this.bumpSpace(), w = this.parseIdentifierIfPossible(), I = g.val;
|
|
2879
2881
|
}
|
|
2880
|
-
var
|
|
2881
|
-
if (
|
|
2882
|
-
return
|
|
2882
|
+
var R = this.tryParsePluralOrSelectOptions(t, s, n, w);
|
|
2883
|
+
if (R.err)
|
|
2884
|
+
return R;
|
|
2883
2885
|
var T = this.tryParseArgumentClose(i);
|
|
2884
2886
|
if (T.err)
|
|
2885
2887
|
return T;
|
|
2886
2888
|
var K = H(i, this.clonePosition());
|
|
2887
2889
|
return s === "select" ? {
|
|
2888
2890
|
val: {
|
|
2889
|
-
type:
|
|
2891
|
+
type: D.select,
|
|
2890
2892
|
value: r,
|
|
2891
|
-
options:
|
|
2893
|
+
options: ln(R.val),
|
|
2892
2894
|
location: K
|
|
2893
2895
|
},
|
|
2894
2896
|
err: null
|
|
2895
2897
|
} : {
|
|
2896
2898
|
val: {
|
|
2897
|
-
type:
|
|
2899
|
+
type: D.plural,
|
|
2898
2900
|
value: r,
|
|
2899
|
-
options:
|
|
2900
|
-
offset:
|
|
2901
|
+
options: ln(R.val),
|
|
2902
|
+
offset: I,
|
|
2901
2903
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2902
2904
|
location: K
|
|
2903
2905
|
},
|
|
@@ -2947,16 +2949,16 @@ var Ti = (
|
|
|
2947
2949
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2948
2950
|
var r = [];
|
|
2949
2951
|
try {
|
|
2950
|
-
r =
|
|
2952
|
+
r = ii(t);
|
|
2951
2953
|
} catch {
|
|
2952
2954
|
return this.error(C.INVALID_NUMBER_SKELETON, n);
|
|
2953
2955
|
}
|
|
2954
2956
|
return {
|
|
2955
2957
|
val: {
|
|
2956
|
-
type:
|
|
2958
|
+
type: Ue.number,
|
|
2957
2959
|
tokens: r,
|
|
2958
2960
|
location: n,
|
|
2959
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2961
|
+
parsedOptions: this.shouldParseSkeletons ? ui(r) : {}
|
|
2960
2962
|
},
|
|
2961
2963
|
err: null
|
|
2962
2964
|
};
|
|
@@ -2981,9 +2983,9 @@ var Ti = (
|
|
|
2981
2983
|
var T = this.parseMessage(t + 1, n, r);
|
|
2982
2984
|
if (T.err)
|
|
2983
2985
|
return T;
|
|
2984
|
-
var
|
|
2985
|
-
if (
|
|
2986
|
-
return
|
|
2986
|
+
var P = this.tryParseArgumentClose(x);
|
|
2987
|
+
if (P.err)
|
|
2988
|
+
return P;
|
|
2987
2989
|
s.push([
|
|
2988
2990
|
h,
|
|
2989
2991
|
{
|
|
@@ -3004,7 +3006,7 @@ var Ti = (
|
|
|
3004
3006
|
break;
|
|
3005
3007
|
}
|
|
3006
3008
|
var d = H(i, this.clonePosition());
|
|
3007
|
-
return o ? (u *= r,
|
|
3009
|
+
return o ? (u *= r, Ei(u) ? { val: u, err: null } : this.error(n, d)) : this.error(t, d);
|
|
3008
3010
|
}, e.prototype.offset = function() {
|
|
3009
3011
|
return this.position.offset;
|
|
3010
3012
|
}, e.prototype.isEOF = function() {
|
|
@@ -3038,7 +3040,7 @@ var Ti = (
|
|
|
3038
3040
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3039
3041
|
}
|
|
3040
3042
|
}, e.prototype.bumpIf = function(t) {
|
|
3041
|
-
if (
|
|
3043
|
+
if (un(this.message, t, this.offset())) {
|
|
3042
3044
|
for (var n = 0; n < t.length; n++)
|
|
3043
3045
|
this.bump();
|
|
3044
3046
|
return !0;
|
|
@@ -3060,7 +3062,7 @@ var Ti = (
|
|
|
3060
3062
|
break;
|
|
3061
3063
|
}
|
|
3062
3064
|
}, e.prototype.bumpSpace = function() {
|
|
3063
|
-
for (; !this.isEOF() &&
|
|
3065
|
+
for (; !this.isEOF() && Xn(this.char()); )
|
|
3064
3066
|
this.bump();
|
|
3065
3067
|
}, e.prototype.peek = function() {
|
|
3066
3068
|
if (this.isEOF())
|
|
@@ -3070,47 +3072,47 @@ var Ti = (
|
|
|
3070
3072
|
}, e;
|
|
3071
3073
|
}()
|
|
3072
3074
|
);
|
|
3073
|
-
function
|
|
3075
|
+
function Xt(e) {
|
|
3074
3076
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3075
3077
|
}
|
|
3076
|
-
function Bi(e) {
|
|
3077
|
-
return jt(e) || e === 47;
|
|
3078
|
-
}
|
|
3079
3078
|
function Si(e) {
|
|
3079
|
+
return Xt(e) || e === 47;
|
|
3080
|
+
}
|
|
3081
|
+
function wi(e) {
|
|
3080
3082
|
return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
|
|
3081
3083
|
}
|
|
3082
|
-
function
|
|
3084
|
+
function Xn(e) {
|
|
3083
3085
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3084
3086
|
}
|
|
3085
|
-
function
|
|
3087
|
+
function Ai(e) {
|
|
3086
3088
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3087
3089
|
}
|
|
3088
|
-
function
|
|
3090
|
+
function zt(e) {
|
|
3089
3091
|
e.forEach(function(t) {
|
|
3090
|
-
if (delete t.location,
|
|
3092
|
+
if (delete t.location, Pn(t) || In(t))
|
|
3091
3093
|
for (var n in t.options)
|
|
3092
|
-
delete t.options[n].location,
|
|
3094
|
+
delete t.options[n].location, zt(t.options[n].value);
|
|
3093
3095
|
else
|
|
3094
|
-
|
|
3096
|
+
Rn(t) && Fn(t.style) || (Nn(t) || Mn(t)) && $t(t.style) ? delete t.style.location : Dn(t) && zt(t.children);
|
|
3095
3097
|
});
|
|
3096
3098
|
}
|
|
3097
|
-
function
|
|
3098
|
-
t === void 0 && (t = {}), t =
|
|
3099
|
-
var n = new
|
|
3099
|
+
function Ci(e, t) {
|
|
3100
|
+
t === void 0 && (t = {}), t = pt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3101
|
+
var n = new Bi(e, t).parse();
|
|
3100
3102
|
if (n.err) {
|
|
3101
3103
|
var r = SyntaxError(C[n.err.kind]);
|
|
3102
3104
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3103
3105
|
}
|
|
3104
|
-
return t?.captureLocation ||
|
|
3106
|
+
return t?.captureLocation || zt(n.val), n.val;
|
|
3105
3107
|
}
|
|
3106
|
-
var
|
|
3108
|
+
var Ge;
|
|
3107
3109
|
(function(e) {
|
|
3108
3110
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3109
|
-
})(
|
|
3110
|
-
var
|
|
3111
|
+
})(Ge || (Ge = {}));
|
|
3112
|
+
var vt = (
|
|
3111
3113
|
/** @class */
|
|
3112
3114
|
function(e) {
|
|
3113
|
-
|
|
3115
|
+
yt(t, e);
|
|
3114
3116
|
function t(n, r, i) {
|
|
3115
3117
|
var o = e.call(this, n) || this;
|
|
3116
3118
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3119,33 +3121,33 @@ var bt = (
|
|
|
3119
3121
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3120
3122
|
}, t;
|
|
3121
3123
|
}(Error)
|
|
3122
|
-
),
|
|
3124
|
+
), cn = (
|
|
3123
3125
|
/** @class */
|
|
3124
3126
|
function(e) {
|
|
3125
|
-
|
|
3127
|
+
yt(t, e);
|
|
3126
3128
|
function t(n, r, i, o) {
|
|
3127
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3129
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, o) || this;
|
|
3128
3130
|
}
|
|
3129
3131
|
return t;
|
|
3130
|
-
}(
|
|
3131
|
-
),
|
|
3132
|
+
}(vt)
|
|
3133
|
+
), Hi = (
|
|
3132
3134
|
/** @class */
|
|
3133
3135
|
function(e) {
|
|
3134
|
-
|
|
3136
|
+
yt(t, e);
|
|
3135
3137
|
function t(n, r, i) {
|
|
3136
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3138
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ge.INVALID_VALUE, i) || this;
|
|
3137
3139
|
}
|
|
3138
3140
|
return t;
|
|
3139
|
-
}(
|
|
3140
|
-
),
|
|
3141
|
+
}(vt)
|
|
3142
|
+
), Oi = (
|
|
3141
3143
|
/** @class */
|
|
3142
3144
|
function(e) {
|
|
3143
|
-
|
|
3145
|
+
yt(t, e);
|
|
3144
3146
|
function t(n, r) {
|
|
3145
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3147
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ge.MISSING_VALUE, r) || this;
|
|
3146
3148
|
}
|
|
3147
3149
|
return t;
|
|
3148
|
-
}(
|
|
3150
|
+
}(vt)
|
|
3149
3151
|
), Y;
|
|
3150
3152
|
(function(e) {
|
|
3151
3153
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
@@ -3156,11 +3158,11 @@ function Li(e) {
|
|
|
3156
3158
|
return !r || r.type !== Y.literal || n.type !== Y.literal ? t.push(n) : r.value += n.value, t;
|
|
3157
3159
|
}, []);
|
|
3158
3160
|
}
|
|
3159
|
-
function
|
|
3161
|
+
function Ri(e) {
|
|
3160
3162
|
return typeof e == "function";
|
|
3161
3163
|
}
|
|
3162
|
-
function
|
|
3163
|
-
if (e.length === 1 &&
|
|
3164
|
+
function ht(e, t, n, r, i, o, u) {
|
|
3165
|
+
if (e.length === 1 && rn(e[0]))
|
|
3164
3166
|
return [
|
|
3165
3167
|
{
|
|
3166
3168
|
type: Y.literal,
|
|
@@ -3169,14 +3171,14 @@ function lt(e, t, n, r, i, o, u) {
|
|
|
3169
3171
|
];
|
|
3170
3172
|
for (var s = [], d = 0, h = e; d < h.length; d++) {
|
|
3171
3173
|
var c = h[d];
|
|
3172
|
-
if (
|
|
3174
|
+
if (rn(c)) {
|
|
3173
3175
|
s.push({
|
|
3174
3176
|
type: Y.literal,
|
|
3175
3177
|
value: c.value
|
|
3176
3178
|
});
|
|
3177
3179
|
continue;
|
|
3178
3180
|
}
|
|
3179
|
-
if (
|
|
3181
|
+
if (ei(c)) {
|
|
3180
3182
|
typeof o == "number" && s.push({
|
|
3181
3183
|
type: Y.literal,
|
|
3182
3184
|
value: n.getNumberFormat(t).format(o)
|
|
@@ -3185,89 +3187,89 @@ function lt(e, t, n, r, i, o, u) {
|
|
|
3185
3187
|
}
|
|
3186
3188
|
var g = c.value;
|
|
3187
3189
|
if (!(i && g in i))
|
|
3188
|
-
throw new
|
|
3190
|
+
throw new Oi(g, u);
|
|
3189
3191
|
var y = i[g];
|
|
3190
|
-
if (
|
|
3192
|
+
if (Kr(c)) {
|
|
3191
3193
|
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), s.push({
|
|
3192
3194
|
type: typeof y == "string" ? Y.literal : Y.object,
|
|
3193
3195
|
value: y
|
|
3194
3196
|
});
|
|
3195
3197
|
continue;
|
|
3196
3198
|
}
|
|
3197
|
-
if (
|
|
3198
|
-
var x = typeof c.style == "string" ? r.date[c.style] :
|
|
3199
|
+
if (Nn(c)) {
|
|
3200
|
+
var x = typeof c.style == "string" ? r.date[c.style] : $t(c.style) ? c.style.parsedOptions : void 0;
|
|
3199
3201
|
s.push({
|
|
3200
3202
|
type: Y.literal,
|
|
3201
3203
|
value: n.getDateTimeFormat(t, x).format(y)
|
|
3202
3204
|
});
|
|
3203
3205
|
continue;
|
|
3204
3206
|
}
|
|
3205
|
-
if (
|
|
3206
|
-
var x = typeof c.style == "string" ? r.time[c.style] :
|
|
3207
|
+
if (Mn(c)) {
|
|
3208
|
+
var x = typeof c.style == "string" ? r.time[c.style] : $t(c.style) ? c.style.parsedOptions : r.time.medium;
|
|
3207
3209
|
s.push({
|
|
3208
3210
|
type: Y.literal,
|
|
3209
3211
|
value: n.getDateTimeFormat(t, x).format(y)
|
|
3210
3212
|
});
|
|
3211
3213
|
continue;
|
|
3212
3214
|
}
|
|
3213
|
-
if (
|
|
3214
|
-
var x = typeof c.style == "string" ? r.number[c.style] :
|
|
3215
|
+
if (Rn(c)) {
|
|
3216
|
+
var x = typeof c.style == "string" ? r.number[c.style] : Fn(c.style) ? c.style.parsedOptions : void 0;
|
|
3215
3217
|
x && x.scale && (y = y * (x.scale || 1)), s.push({
|
|
3216
3218
|
type: Y.literal,
|
|
3217
3219
|
value: n.getNumberFormat(t, x).format(y)
|
|
3218
3220
|
});
|
|
3219
3221
|
continue;
|
|
3220
3222
|
}
|
|
3221
|
-
if (
|
|
3222
|
-
var T = c.children,
|
|
3223
|
-
if (!
|
|
3224
|
-
throw new
|
|
3225
|
-
var z =
|
|
3226
|
-
return
|
|
3223
|
+
if (Dn(c)) {
|
|
3224
|
+
var T = c.children, P = c.value, j = i[P];
|
|
3225
|
+
if (!Ri(j))
|
|
3226
|
+
throw new Hi(P, "function", u);
|
|
3227
|
+
var z = ht(T, t, n, r, i, o), G = j(z.map(function(I) {
|
|
3228
|
+
return I.value;
|
|
3227
3229
|
}));
|
|
3228
|
-
Array.isArray(G) || (G = [G]), s.push.apply(s, G.map(function(
|
|
3230
|
+
Array.isArray(G) || (G = [G]), s.push.apply(s, G.map(function(I) {
|
|
3229
3231
|
return {
|
|
3230
|
-
type: typeof
|
|
3231
|
-
value:
|
|
3232
|
+
type: typeof I == "string" ? Y.literal : Y.object,
|
|
3233
|
+
value: I
|
|
3232
3234
|
};
|
|
3233
3235
|
}));
|
|
3234
3236
|
}
|
|
3235
|
-
if (
|
|
3237
|
+
if (Pn(c)) {
|
|
3236
3238
|
var B = c.options[y] || c.options.other;
|
|
3237
3239
|
if (!B)
|
|
3238
|
-
throw new
|
|
3239
|
-
s.push.apply(s,
|
|
3240
|
+
throw new cn(c.value, y, Object.keys(c.options), u);
|
|
3241
|
+
s.push.apply(s, ht(B.value, t, n, r, i));
|
|
3240
3242
|
continue;
|
|
3241
3243
|
}
|
|
3242
|
-
if (
|
|
3244
|
+
if (In(c)) {
|
|
3243
3245
|
var B = c.options["=".concat(y)];
|
|
3244
3246
|
if (!B) {
|
|
3245
3247
|
if (!Intl.PluralRules)
|
|
3246
|
-
throw new
|
|
3248
|
+
throw new vt(`Intl.PluralRules is not available in this environment.
|
|
3247
3249
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3248
|
-
`,
|
|
3250
|
+
`, Ge.MISSING_INTL_API, u);
|
|
3249
3251
|
var w = n.getPluralRules(t, { type: c.pluralType }).select(y - (c.offset || 0));
|
|
3250
3252
|
B = c.options[w] || c.options.other;
|
|
3251
3253
|
}
|
|
3252
3254
|
if (!B)
|
|
3253
|
-
throw new
|
|
3254
|
-
s.push.apply(s,
|
|
3255
|
+
throw new cn(c.value, y, Object.keys(c.options), u);
|
|
3256
|
+
s.push.apply(s, ht(B.value, t, n, r, i, y - (c.offset || 0)));
|
|
3255
3257
|
continue;
|
|
3256
3258
|
}
|
|
3257
3259
|
}
|
|
3258
3260
|
return Li(s);
|
|
3259
3261
|
}
|
|
3260
|
-
function
|
|
3261
|
-
return t ?
|
|
3262
|
-
return n[r] =
|
|
3262
|
+
function Ni(e, t) {
|
|
3263
|
+
return t ? he(he(he({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3264
|
+
return n[r] = he(he({}, e[r]), t[r] || {}), n;
|
|
3263
3265
|
}, {})) : e;
|
|
3264
3266
|
}
|
|
3265
|
-
function
|
|
3267
|
+
function Mi(e, t) {
|
|
3266
3268
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3267
|
-
return n[r] =
|
|
3268
|
-
},
|
|
3269
|
+
return n[r] = Ni(e[r], t[r]), n;
|
|
3270
|
+
}, he({}, e)) : e;
|
|
3269
3271
|
}
|
|
3270
|
-
function
|
|
3272
|
+
function Pt(e) {
|
|
3271
3273
|
return {
|
|
3272
3274
|
create: function() {
|
|
3273
3275
|
return {
|
|
@@ -3281,39 +3283,39 @@ function Nt(e) {
|
|
|
3281
3283
|
}
|
|
3282
3284
|
};
|
|
3283
3285
|
}
|
|
3284
|
-
function
|
|
3286
|
+
function Pi(e) {
|
|
3285
3287
|
return e === void 0 && (e = {
|
|
3286
3288
|
number: {},
|
|
3287
3289
|
dateTime: {},
|
|
3288
3290
|
pluralRules: {}
|
|
3289
3291
|
}), {
|
|
3290
|
-
getNumberFormat:
|
|
3292
|
+
getNumberFormat: Rt(function() {
|
|
3291
3293
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3292
3294
|
n[r] = arguments[r];
|
|
3293
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3295
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Lt([void 0], n, !1)))();
|
|
3294
3296
|
}, {
|
|
3295
|
-
cache:
|
|
3296
|
-
strategy:
|
|
3297
|
+
cache: Pt(e.number),
|
|
3298
|
+
strategy: Nt.variadic
|
|
3297
3299
|
}),
|
|
3298
|
-
getDateTimeFormat:
|
|
3300
|
+
getDateTimeFormat: Rt(function() {
|
|
3299
3301
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3300
3302
|
n[r] = arguments[r];
|
|
3301
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3303
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Lt([void 0], n, !1)))();
|
|
3302
3304
|
}, {
|
|
3303
|
-
cache:
|
|
3304
|
-
strategy:
|
|
3305
|
+
cache: Pt(e.dateTime),
|
|
3306
|
+
strategy: Nt.variadic
|
|
3305
3307
|
}),
|
|
3306
|
-
getPluralRules:
|
|
3308
|
+
getPluralRules: Rt(function() {
|
|
3307
3309
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3308
3310
|
n[r] = arguments[r];
|
|
3309
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3311
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Lt([void 0], n, !1)))();
|
|
3310
3312
|
}, {
|
|
3311
|
-
cache:
|
|
3312
|
-
strategy:
|
|
3313
|
+
cache: Pt(e.pluralRules),
|
|
3314
|
+
strategy: Nt.variadic
|
|
3313
3315
|
})
|
|
3314
3316
|
};
|
|
3315
3317
|
}
|
|
3316
|
-
var
|
|
3318
|
+
var Ii = (
|
|
3317
3319
|
/** @class */
|
|
3318
3320
|
function() {
|
|
3319
3321
|
function e(t, n, r, i) {
|
|
@@ -3332,7 +3334,7 @@ var Pi = (
|
|
|
3332
3334
|
}, []);
|
|
3333
3335
|
return c.length <= 1 ? c[0] || "" : c;
|
|
3334
3336
|
}, this.formatToParts = function(d) {
|
|
3335
|
-
return
|
|
3337
|
+
return ht(o.ast, o.locales, o.formatters, o.formats, d, void 0, o.message);
|
|
3336
3338
|
}, this.resolvedOptions = function() {
|
|
3337
3339
|
var d;
|
|
3338
3340
|
return {
|
|
@@ -3345,13 +3347,13 @@ var Pi = (
|
|
|
3345
3347
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3346
3348
|
var u = i || {};
|
|
3347
3349
|
u.formatters;
|
|
3348
|
-
var s =
|
|
3349
|
-
this.ast = e.__parse(t,
|
|
3350
|
+
var s = Xr(u, ["formatters"]);
|
|
3351
|
+
this.ast = e.__parse(t, he(he({}, s), { locale: this.resolvedLocale }));
|
|
3350
3352
|
} else
|
|
3351
3353
|
this.ast = t;
|
|
3352
3354
|
if (!Array.isArray(this.ast))
|
|
3353
3355
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3354
|
-
this.formats =
|
|
3356
|
+
this.formats = Mi(e.formats, r), this.formatters = i && i.formatters || Pi(this.formatterCache);
|
|
3355
3357
|
}
|
|
3356
3358
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3357
3359
|
get: function() {
|
|
@@ -3364,7 +3366,7 @@ var Pi = (
|
|
|
3364
3366
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3365
3367
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3366
3368
|
}
|
|
3367
|
-
}, e.__parse =
|
|
3369
|
+
}, e.__parse = Ci, e.formats = {
|
|
3368
3370
|
number: {
|
|
3369
3371
|
integer: {
|
|
3370
3372
|
maximumFractionDigits: 0
|
|
@@ -3425,7 +3427,7 @@ var Pi = (
|
|
|
3425
3427
|
}, e;
|
|
3426
3428
|
}()
|
|
3427
3429
|
);
|
|
3428
|
-
function
|
|
3430
|
+
function Di(e, t) {
|
|
3429
3431
|
if (t == null)
|
|
3430
3432
|
return;
|
|
3431
3433
|
if (t in e)
|
|
@@ -3446,92 +3448,92 @@ function Ii(e, t) {
|
|
|
3446
3448
|
r = void 0;
|
|
3447
3449
|
return r;
|
|
3448
3450
|
}
|
|
3449
|
-
const
|
|
3451
|
+
const Se = {}, Fi = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), zn = (e, t) => {
|
|
3450
3452
|
if (t == null)
|
|
3451
3453
|
return;
|
|
3452
|
-
if (t in
|
|
3453
|
-
return
|
|
3454
|
-
const n =
|
|
3454
|
+
if (t in Se && e in Se[t])
|
|
3455
|
+
return Se[t][e];
|
|
3456
|
+
const n = Et(t);
|
|
3455
3457
|
for (let r = 0; r < n.length; r++) {
|
|
3456
|
-
const i = n[r], o =
|
|
3458
|
+
const i = n[r], o = Gi(i, e);
|
|
3457
3459
|
if (o)
|
|
3458
|
-
return
|
|
3460
|
+
return Fi(e, t, o);
|
|
3459
3461
|
}
|
|
3460
3462
|
};
|
|
3461
|
-
let
|
|
3462
|
-
const
|
|
3463
|
-
function
|
|
3464
|
-
return
|
|
3463
|
+
let Jt;
|
|
3464
|
+
const rt = bt({});
|
|
3465
|
+
function Ui(e) {
|
|
3466
|
+
return Jt[e] || null;
|
|
3465
3467
|
}
|
|
3466
|
-
function
|
|
3467
|
-
return e in
|
|
3468
|
+
function Wn(e) {
|
|
3469
|
+
return e in Jt;
|
|
3468
3470
|
}
|
|
3469
|
-
function
|
|
3470
|
-
if (!
|
|
3471
|
+
function Gi(e, t) {
|
|
3472
|
+
if (!Wn(e))
|
|
3471
3473
|
return null;
|
|
3472
|
-
const n =
|
|
3473
|
-
return
|
|
3474
|
+
const n = Ui(e);
|
|
3475
|
+
return Di(n, t);
|
|
3474
3476
|
}
|
|
3475
|
-
function
|
|
3477
|
+
function $i(e) {
|
|
3476
3478
|
if (e == null)
|
|
3477
3479
|
return;
|
|
3478
|
-
const t =
|
|
3480
|
+
const t = Et(e);
|
|
3479
3481
|
for (let n = 0; n < t.length; n++) {
|
|
3480
3482
|
const r = t[n];
|
|
3481
|
-
if (
|
|
3483
|
+
if (Wn(r))
|
|
3482
3484
|
return r;
|
|
3483
3485
|
}
|
|
3484
3486
|
}
|
|
3485
|
-
function
|
|
3486
|
-
delete
|
|
3487
|
+
function Zn(e, ...t) {
|
|
3488
|
+
delete Se[e], rt.update((n) => (n[e] = Vr.all([n[e] || {}, ...t]), n));
|
|
3487
3489
|
}
|
|
3488
3490
|
ke(
|
|
3489
|
-
[
|
|
3491
|
+
[rt],
|
|
3490
3492
|
([e]) => Object.keys(e)
|
|
3491
3493
|
);
|
|
3492
|
-
|
|
3493
|
-
const
|
|
3494
|
-
function
|
|
3495
|
-
|
|
3494
|
+
rt.subscribe((e) => Jt = e);
|
|
3495
|
+
const ct = {};
|
|
3496
|
+
function ji(e, t) {
|
|
3497
|
+
ct[e].delete(t), ct[e].size === 0 && delete ct[e];
|
|
3496
3498
|
}
|
|
3497
|
-
function
|
|
3498
|
-
return
|
|
3499
|
+
function qn(e) {
|
|
3500
|
+
return ct[e];
|
|
3499
3501
|
}
|
|
3500
3502
|
function ki(e) {
|
|
3501
|
-
return
|
|
3502
|
-
const n =
|
|
3503
|
+
return Et(e).map((t) => {
|
|
3504
|
+
const n = qn(t);
|
|
3503
3505
|
return [t, n ? [...n] : []];
|
|
3504
3506
|
}).filter(([, t]) => t.length > 0);
|
|
3505
3507
|
}
|
|
3506
|
-
function
|
|
3507
|
-
return e == null ? !1 :
|
|
3508
|
+
function Wt(e) {
|
|
3509
|
+
return e == null ? !1 : Et(e).some(
|
|
3508
3510
|
(t) => {
|
|
3509
3511
|
var n;
|
|
3510
|
-
return (n =
|
|
3512
|
+
return (n = qn(t)) == null ? void 0 : n.size;
|
|
3511
3513
|
}
|
|
3512
3514
|
);
|
|
3513
3515
|
}
|
|
3514
|
-
function
|
|
3516
|
+
function Vi(e, t) {
|
|
3515
3517
|
return Promise.all(
|
|
3516
|
-
t.map((r) => (
|
|
3517
|
-
).then((r) =>
|
|
3518
|
+
t.map((r) => (ji(e, r), r().then((i) => i.default || i)))
|
|
3519
|
+
).then((r) => Zn(e, ...r));
|
|
3518
3520
|
}
|
|
3519
|
-
const
|
|
3520
|
-
function
|
|
3521
|
-
if (!
|
|
3522
|
-
return e in
|
|
3521
|
+
const Ye = {};
|
|
3522
|
+
function Qn(e) {
|
|
3523
|
+
if (!Wt(e))
|
|
3524
|
+
return e in Ye ? Ye[e] : Promise.resolve();
|
|
3523
3525
|
const t = ki(e);
|
|
3524
|
-
return
|
|
3526
|
+
return Ye[e] = Promise.all(
|
|
3525
3527
|
t.map(
|
|
3526
|
-
([n, r]) =>
|
|
3528
|
+
([n, r]) => Vi(n, r)
|
|
3527
3529
|
)
|
|
3528
3530
|
).then(() => {
|
|
3529
|
-
if (
|
|
3530
|
-
return
|
|
3531
|
-
delete
|
|
3532
|
-
}),
|
|
3531
|
+
if (Wt(e))
|
|
3532
|
+
return Qn(e);
|
|
3533
|
+
delete Ye[e];
|
|
3534
|
+
}), Ye[e];
|
|
3533
3535
|
}
|
|
3534
|
-
const
|
|
3536
|
+
const Xi = {
|
|
3535
3537
|
number: {
|
|
3536
3538
|
scientific: { notation: "scientific" },
|
|
3537
3539
|
engineering: { notation: "engineering" },
|
|
@@ -3560,150 +3562,150 @@ const Vi = {
|
|
|
3560
3562
|
timeZoneName: "short"
|
|
3561
3563
|
}
|
|
3562
3564
|
}
|
|
3563
|
-
},
|
|
3565
|
+
}, zi = {
|
|
3564
3566
|
fallbackLocale: null,
|
|
3565
3567
|
loadingDelay: 200,
|
|
3566
|
-
formats:
|
|
3568
|
+
formats: Xi,
|
|
3567
3569
|
warnOnMissingMessages: !0,
|
|
3568
3570
|
handleMissingMessage: void 0,
|
|
3569
3571
|
ignoreTag: !0
|
|
3570
|
-
},
|
|
3571
|
-
function
|
|
3572
|
-
return
|
|
3573
|
-
}
|
|
3574
|
-
const
|
|
3575
|
-
var
|
|
3576
|
-
for (var n in t)
|
|
3577
|
-
|
|
3578
|
-
if (
|
|
3579
|
-
for (var n of
|
|
3580
|
-
|
|
3572
|
+
}, Wi = zi;
|
|
3573
|
+
function $e() {
|
|
3574
|
+
return Wi;
|
|
3575
|
+
}
|
|
3576
|
+
const It = bt(!1);
|
|
3577
|
+
var Zi = Object.defineProperty, qi = Object.defineProperties, Qi = Object.getOwnPropertyDescriptors, fn = Object.getOwnPropertySymbols, Ji = Object.prototype.hasOwnProperty, Yi = Object.prototype.propertyIsEnumerable, dn = (e, t, n) => t in e ? Zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ki = (e, t) => {
|
|
3578
|
+
for (var n in t || (t = {}))
|
|
3579
|
+
Ji.call(t, n) && dn(e, n, t[n]);
|
|
3580
|
+
if (fn)
|
|
3581
|
+
for (var n of fn(t))
|
|
3582
|
+
Yi.call(t, n) && dn(e, n, t[n]);
|
|
3581
3583
|
return e;
|
|
3582
|
-
},
|
|
3583
|
-
let
|
|
3584
|
-
const
|
|
3585
|
-
function
|
|
3584
|
+
}, eo = (e, t) => qi(e, Qi(t));
|
|
3585
|
+
let Zt;
|
|
3586
|
+
const mt = bt(null);
|
|
3587
|
+
function pn(e) {
|
|
3586
3588
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3587
3589
|
}
|
|
3588
|
-
function
|
|
3589
|
-
const n =
|
|
3590
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3590
|
+
function Et(e, t = $e().fallbackLocale) {
|
|
3591
|
+
const n = pn(e);
|
|
3592
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...pn(t)])] : n;
|
|
3591
3593
|
}
|
|
3592
|
-
function
|
|
3593
|
-
return
|
|
3594
|
+
function He() {
|
|
3595
|
+
return Zt ?? void 0;
|
|
3594
3596
|
}
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
+
mt.subscribe((e) => {
|
|
3598
|
+
Zt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3597
3599
|
});
|
|
3598
|
-
const
|
|
3599
|
-
if (e &&
|
|
3600
|
-
const { loadingDelay: t } =
|
|
3600
|
+
const to = (e) => {
|
|
3601
|
+
if (e && $i(e) && Wt(e)) {
|
|
3602
|
+
const { loadingDelay: t } = $e();
|
|
3601
3603
|
let n;
|
|
3602
|
-
return typeof window < "u" &&
|
|
3603
|
-
() =>
|
|
3604
|
+
return typeof window < "u" && He() != null && t ? n = window.setTimeout(
|
|
3605
|
+
() => It.set(!0),
|
|
3604
3606
|
t
|
|
3605
|
-
) :
|
|
3606
|
-
|
|
3607
|
+
) : It.set(!0), Qn(e).then(() => {
|
|
3608
|
+
mt.set(e);
|
|
3607
3609
|
}).finally(() => {
|
|
3608
|
-
clearTimeout(n),
|
|
3610
|
+
clearTimeout(n), It.set(!1);
|
|
3609
3611
|
});
|
|
3610
3612
|
}
|
|
3611
|
-
return
|
|
3612
|
-
},
|
|
3613
|
-
set:
|
|
3614
|
-
}),
|
|
3613
|
+
return mt.set(e);
|
|
3614
|
+
}, Ve = eo(Ki({}, mt), {
|
|
3615
|
+
set: to
|
|
3616
|
+
}), xt = (e) => {
|
|
3615
3617
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3616
3618
|
return (r) => {
|
|
3617
3619
|
const i = JSON.stringify(r);
|
|
3618
3620
|
return i in t ? t[i] : t[i] = e(r);
|
|
3619
3621
|
};
|
|
3620
3622
|
};
|
|
3621
|
-
var
|
|
3623
|
+
var no = Object.defineProperty, gt = Object.getOwnPropertySymbols, Jn = Object.prototype.hasOwnProperty, Yn = Object.prototype.propertyIsEnumerable, mn = (e, t, n) => t in e ? no(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Yt = (e, t) => {
|
|
3622
3624
|
for (var n in t || (t = {}))
|
|
3623
|
-
|
|
3624
|
-
if (
|
|
3625
|
-
for (var n of
|
|
3626
|
-
|
|
3625
|
+
Jn.call(t, n) && mn(e, n, t[n]);
|
|
3626
|
+
if (gt)
|
|
3627
|
+
for (var n of gt(t))
|
|
3628
|
+
Yn.call(t, n) && mn(e, n, t[n]);
|
|
3627
3629
|
return e;
|
|
3628
|
-
},
|
|
3630
|
+
}, Xe = (e, t) => {
|
|
3629
3631
|
var n = {};
|
|
3630
3632
|
for (var r in e)
|
|
3631
|
-
|
|
3632
|
-
if (e != null &&
|
|
3633
|
-
for (var r of
|
|
3634
|
-
t.indexOf(r) < 0 &&
|
|
3633
|
+
Jn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3634
|
+
if (e != null && gt)
|
|
3635
|
+
for (var r of gt(e))
|
|
3636
|
+
t.indexOf(r) < 0 && Yn.call(e, r) && (n[r] = e[r]);
|
|
3635
3637
|
return n;
|
|
3636
3638
|
};
|
|
3637
|
-
const
|
|
3638
|
-
const { formats: n } =
|
|
3639
|
+
const nt = (e, t) => {
|
|
3640
|
+
const { formats: n } = $e();
|
|
3639
3641
|
if (e in n && t in n[e])
|
|
3640
3642
|
return n[e][t];
|
|
3641
3643
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3642
|
-
},
|
|
3644
|
+
}, ro = xt(
|
|
3643
3645
|
(e) => {
|
|
3644
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3646
|
+
var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
|
|
3645
3647
|
if (n == null)
|
|
3646
3648
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3647
|
-
return r && (i =
|
|
3649
|
+
return r && (i = nt("number", r)), new Intl.NumberFormat(n, i);
|
|
3648
3650
|
}
|
|
3649
|
-
),
|
|
3651
|
+
), io = xt(
|
|
3650
3652
|
(e) => {
|
|
3651
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3653
|
+
var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
|
|
3652
3654
|
if (n == null)
|
|
3653
3655
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3654
|
-
return r ? i =
|
|
3656
|
+
return r ? i = nt("date", r) : Object.keys(i).length === 0 && (i = nt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3655
3657
|
}
|
|
3656
|
-
),
|
|
3658
|
+
), oo = xt(
|
|
3657
3659
|
(e) => {
|
|
3658
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3660
|
+
var t = e, { locale: n, format: r } = t, i = Xe(t, ["locale", "format"]);
|
|
3659
3661
|
if (n == null)
|
|
3660
3662
|
throw new Error(
|
|
3661
3663
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3662
3664
|
);
|
|
3663
|
-
return r ? i =
|
|
3665
|
+
return r ? i = nt("time", r) : Object.keys(i).length === 0 && (i = nt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3664
3666
|
}
|
|
3665
|
-
),
|
|
3667
|
+
), ao = (e = {}) => {
|
|
3666
3668
|
var t = e, {
|
|
3667
|
-
locale: n =
|
|
3668
|
-
} = t, r =
|
|
3669
|
+
locale: n = He()
|
|
3670
|
+
} = t, r = Xe(t, [
|
|
3669
3671
|
"locale"
|
|
3670
3672
|
]);
|
|
3671
|
-
return
|
|
3672
|
-
},
|
|
3673
|
+
return ro(Yt({ locale: n }, r));
|
|
3674
|
+
}, so = (e = {}) => {
|
|
3673
3675
|
var t = e, {
|
|
3674
|
-
locale: n =
|
|
3675
|
-
} = t, r =
|
|
3676
|
+
locale: n = He()
|
|
3677
|
+
} = t, r = Xe(t, [
|
|
3676
3678
|
"locale"
|
|
3677
3679
|
]);
|
|
3678
|
-
return
|
|
3679
|
-
},
|
|
3680
|
+
return io(Yt({ locale: n }, r));
|
|
3681
|
+
}, uo = (e = {}) => {
|
|
3680
3682
|
var t = e, {
|
|
3681
|
-
locale: n =
|
|
3682
|
-
} = t, r =
|
|
3683
|
+
locale: n = He()
|
|
3684
|
+
} = t, r = Xe(t, [
|
|
3683
3685
|
"locale"
|
|
3684
3686
|
]);
|
|
3685
|
-
return
|
|
3686
|
-
},
|
|
3687
|
+
return oo(Yt({ locale: n }, r));
|
|
3688
|
+
}, lo = xt(
|
|
3687
3689
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3688
|
-
(e, t =
|
|
3689
|
-
ignoreTag:
|
|
3690
|
+
(e, t = He()) => new Ii(e, t, $e().formats, {
|
|
3691
|
+
ignoreTag: $e().ignoreTag
|
|
3690
3692
|
})
|
|
3691
|
-
),
|
|
3693
|
+
), ho = (e, t = {}) => {
|
|
3692
3694
|
var n, r, i, o;
|
|
3693
3695
|
let u = t;
|
|
3694
3696
|
typeof e == "object" && (u = e, e = u.id);
|
|
3695
3697
|
const {
|
|
3696
3698
|
values: s,
|
|
3697
|
-
locale: d =
|
|
3699
|
+
locale: d = He(),
|
|
3698
3700
|
default: h
|
|
3699
3701
|
} = u;
|
|
3700
3702
|
if (d == null)
|
|
3701
3703
|
throw new Error(
|
|
3702
3704
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3703
3705
|
);
|
|
3704
|
-
let c =
|
|
3706
|
+
let c = zn(e, d);
|
|
3705
3707
|
if (!c)
|
|
3706
|
-
c = (o = (i = (r = (n =
|
|
3708
|
+
c = (o = (i = (r = (n = $e()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: d, id: e, defaultValue: h })) != null ? i : h) != null ? o : e;
|
|
3707
3709
|
else if (typeof c != "string")
|
|
3708
3710
|
return console.warn(
|
|
3709
3711
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
@@ -3712,7 +3714,7 @@ const tt = (e, t) => {
|
|
|
3712
3714
|
return c;
|
|
3713
3715
|
let g = c;
|
|
3714
3716
|
try {
|
|
3715
|
-
g =
|
|
3717
|
+
g = lo(c, d).format(s);
|
|
3716
3718
|
} catch (y) {
|
|
3717
3719
|
y instanceof Error && console.warn(
|
|
3718
3720
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3720,18 +3722,18 @@ const tt = (e, t) => {
|
|
|
3720
3722
|
);
|
|
3721
3723
|
}
|
|
3722
3724
|
return g;
|
|
3723
|
-
},
|
|
3724
|
-
ke([
|
|
3725
|
-
ke([
|
|
3726
|
-
ke([
|
|
3727
|
-
ke([
|
|
3728
|
-
function
|
|
3729
|
-
|
|
3730
|
-
}
|
|
3731
|
-
function
|
|
3732
|
-
|
|
3733
|
-
}
|
|
3734
|
-
const
|
|
3725
|
+
}, co = (e, t) => uo(t).format(e), fo = (e, t) => so(t).format(e), po = (e, t) => ao(t).format(e), mo = (e, t = He()) => zn(e, t), go = ke([Ve, rt], () => ho);
|
|
3726
|
+
ke([Ve], () => co);
|
|
3727
|
+
ke([Ve], () => fo);
|
|
3728
|
+
ke([Ve], () => po);
|
|
3729
|
+
ke([Ve, rt], () => mo);
|
|
3730
|
+
function gn(e, t) {
|
|
3731
|
+
Zn(e, t);
|
|
3732
|
+
}
|
|
3733
|
+
function bo(e) {
|
|
3734
|
+
Ve.set(e);
|
|
3735
|
+
}
|
|
3736
|
+
const bn = {
|
|
3735
3737
|
en: {
|
|
3736
3738
|
Title: "Your Balance",
|
|
3737
3739
|
Total: "Total Balance",
|
|
@@ -3931,7 +3933,7 @@ const gn = {
|
|
|
3931
3933
|
Loading: "Loading ..."
|
|
3932
3934
|
}
|
|
3933
3935
|
};
|
|
3934
|
-
var
|
|
3936
|
+
var qt = { exports: {} };
|
|
3935
3937
|
/** @license
|
|
3936
3938
|
* eventsource.js
|
|
3937
3939
|
* Available under MIT License (MIT)
|
|
@@ -3939,7 +3941,7 @@ var Wt = { exports: {} };
|
|
|
3939
3941
|
*/
|
|
3940
3942
|
(function(e, t) {
|
|
3941
3943
|
(function(n) {
|
|
3942
|
-
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, s = n.ActiveXObject, d = n.EventSource, h = n.document, c = n.Promise, g = n.fetch, y = n.Response, x = n.TextDecoder, T = n.TextEncoder,
|
|
3944
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, u = n.XDomainRequest, s = n.ActiveXObject, d = n.EventSource, h = n.document, c = n.Promise, g = n.fetch, y = n.Response, x = n.TextDecoder, T = n.TextEncoder, P = n.AbortController;
|
|
3943
3945
|
if (typeof window < "u" && typeof h < "u" && !("readyState" in h) && h.body == null && (h.readyState = "loading", window.addEventListener("load", function(a) {
|
|
3944
3946
|
h.readyState = "complete";
|
|
3945
3947
|
}, !1)), o == null && s != null && (o = function() {
|
|
@@ -3950,11 +3952,11 @@ var Wt = { exports: {} };
|
|
|
3950
3952
|
return l.prototype = a, new l();
|
|
3951
3953
|
}), Date.now || (Date.now = function() {
|
|
3952
3954
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3953
|
-
}),
|
|
3954
|
-
var
|
|
3955
|
+
}), P == null) {
|
|
3956
|
+
var j = g;
|
|
3955
3957
|
g = function(a, l) {
|
|
3956
3958
|
var f = l.signal;
|
|
3957
|
-
return
|
|
3959
|
+
return j(a, { headers: l.headers, credentials: l.credentials, cache: l.cache }).then(function(p) {
|
|
3958
3960
|
var E = p.body.getReader();
|
|
3959
3961
|
return f._reader = E, f._aborted && f._reader.cancel(), {
|
|
3960
3962
|
status: p.status,
|
|
@@ -3967,7 +3969,7 @@ var Wt = { exports: {} };
|
|
|
3967
3969
|
}
|
|
3968
3970
|
};
|
|
3969
3971
|
});
|
|
3970
|
-
},
|
|
3972
|
+
}, P = function() {
|
|
3971
3973
|
this.signal = {
|
|
3972
3974
|
_reader: null,
|
|
3973
3975
|
_aborted: !1
|
|
@@ -3980,26 +3982,26 @@ var Wt = { exports: {} };
|
|
|
3980
3982
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
3981
3983
|
}
|
|
3982
3984
|
z.prototype.decode = function(a) {
|
|
3983
|
-
function l(
|
|
3985
|
+
function l(O, L, S) {
|
|
3984
3986
|
if (S === 1)
|
|
3985
|
-
return
|
|
3987
|
+
return O >= 128 >> L && O << L <= 2047;
|
|
3986
3988
|
if (S === 2)
|
|
3987
|
-
return
|
|
3989
|
+
return O >= 2048 >> L && O << L <= 55295 || O >= 57344 >> L && O << L <= 65535;
|
|
3988
3990
|
if (S === 3)
|
|
3989
|
-
return
|
|
3991
|
+
return O >= 65536 >> L && O << L <= 1114111;
|
|
3990
3992
|
throw new Error();
|
|
3991
3993
|
}
|
|
3992
|
-
function f(
|
|
3993
|
-
if (
|
|
3994
|
-
return
|
|
3995
|
-
if (
|
|
3996
|
-
return
|
|
3997
|
-
if (
|
|
3994
|
+
function f(O, L) {
|
|
3995
|
+
if (O === 6 * 1)
|
|
3996
|
+
return L >> 6 > 15 ? 3 : L > 31 ? 2 : 1;
|
|
3997
|
+
if (O === 6 * 2)
|
|
3998
|
+
return L > 15 ? 3 : 2;
|
|
3999
|
+
if (O === 6 * 3)
|
|
3998
4000
|
return 3;
|
|
3999
4001
|
throw new Error();
|
|
4000
4002
|
}
|
|
4001
|
-
for (var p = 65533, E = "", m = this.bitsNeeded, _ = this.codePoint,
|
|
4002
|
-
var A = a[
|
|
4003
|
+
for (var p = 65533, E = "", m = this.bitsNeeded, _ = this.codePoint, N = 0; N < a.length; N += 1) {
|
|
4004
|
+
var A = a[N];
|
|
4003
4005
|
m !== 0 && (A < 128 || A > 191 || !l(_ << 6 | A & 63, m - 6, f(m, _))) && (m = 0, _ = p, E += String.fromCharCode(_)), m === 0 ? (A >= 0 && A <= 127 ? (m = 0, _ = A) : A >= 192 && A <= 223 ? (m = 6 * 1, _ = A & 31) : A >= 224 && A <= 239 ? (m = 6 * 2, _ = A & 15) : A >= 240 && A <= 247 ? (m = 6 * 3, _ = A & 7) : (m = 0, _ = p), m !== 0 && !l(_, m, f(m, _)) && (m = 0, _ = p)) : (m -= 6, _ = _ << 6 | A & 63), m === 0 && (_ <= 65535 ? E += String.fromCharCode(_) : (E += String.fromCharCode(55296 + (_ - 65535 - 1 >> 10)), E += String.fromCharCode(56320 + (_ - 65535 - 1 & 1023))));
|
|
4004
4006
|
}
|
|
4005
4007
|
return this.bitsNeeded = m, this.codePoint = _, E;
|
|
@@ -4026,18 +4028,18 @@ var Wt = { exports: {} };
|
|
|
4026
4028
|
};
|
|
4027
4029
|
var _ = function() {
|
|
4028
4030
|
if (E === 1) {
|
|
4029
|
-
var S = 0,
|
|
4031
|
+
var S = 0, F = "", me = void 0;
|
|
4030
4032
|
if ("contentType" in p)
|
|
4031
|
-
S = 200,
|
|
4033
|
+
S = 200, F = "OK", me = p.contentType;
|
|
4032
4034
|
else
|
|
4033
4035
|
try {
|
|
4034
|
-
S = p.status,
|
|
4036
|
+
S = p.status, F = p.statusText, me = p.getResponseHeader("Content-Type");
|
|
4035
4037
|
} catch {
|
|
4036
|
-
S = 0,
|
|
4038
|
+
S = 0, F = "", me = void 0;
|
|
4037
4039
|
}
|
|
4038
|
-
S !== 0 && (E = 2, f.readyState = 2, f.status = S, f.statusText =
|
|
4040
|
+
S !== 0 && (E = 2, f.readyState = 2, f.status = S, f.statusText = F, f._contentType = me, f.onreadystatechange());
|
|
4039
4041
|
}
|
|
4040
|
-
},
|
|
4042
|
+
}, N = function() {
|
|
4041
4043
|
if (_(), E === 2 || E === 3) {
|
|
4042
4044
|
E = 3;
|
|
4043
4045
|
var S = "";
|
|
@@ -4047,26 +4049,26 @@ var Wt = { exports: {} };
|
|
|
4047
4049
|
}
|
|
4048
4050
|
f.readyState = 3, f.responseText = S, f.onprogress();
|
|
4049
4051
|
}
|
|
4050
|
-
}, A = function(S,
|
|
4051
|
-
if ((
|
|
4052
|
+
}, A = function(S, F) {
|
|
4053
|
+
if ((F == null || F.preventDefault == null) && (F = {
|
|
4052
4054
|
preventDefault: B
|
|
4053
|
-
}),
|
|
4055
|
+
}), N(), E === 1 || E === 2 || E === 3) {
|
|
4054
4056
|
if (E = 4, m !== 0 && (i(m), m = 0), f.readyState = 4, S === "load")
|
|
4055
|
-
f.onload(
|
|
4057
|
+
f.onload(F);
|
|
4056
4058
|
else if (S === "error")
|
|
4057
|
-
f.onerror(
|
|
4059
|
+
f.onerror(F);
|
|
4058
4060
|
else if (S === "abort")
|
|
4059
|
-
f.onabort(
|
|
4061
|
+
f.onabort(F);
|
|
4060
4062
|
else
|
|
4061
4063
|
throw new TypeError();
|
|
4062
4064
|
f.onreadystatechange();
|
|
4063
4065
|
}
|
|
4064
|
-
},
|
|
4065
|
-
p != null && (p.readyState === 4 ? (!("onload" in p) || !("onerror" in p) || !("onabort" in p)) && A(p.responseText === "" ? "error" : "load", S) : p.readyState === 3 ? "onprogress" in p ||
|
|
4066
|
-
},
|
|
4066
|
+
}, O = function(S) {
|
|
4067
|
+
p != null && (p.readyState === 4 ? (!("onload" in p) || !("onerror" in p) || !("onabort" in p)) && A(p.responseText === "" ? "error" : "load", S) : p.readyState === 3 ? "onprogress" in p || N() : p.readyState === 2 && _());
|
|
4068
|
+
}, L = function() {
|
|
4067
4069
|
m = r(function() {
|
|
4068
|
-
|
|
4069
|
-
}, 500), p.readyState === 3 &&
|
|
4070
|
+
L();
|
|
4071
|
+
}, 500), p.readyState === 3 && N();
|
|
4070
4072
|
};
|
|
4071
4073
|
"onload" in p && (p.onload = function(S) {
|
|
4072
4074
|
A("load", S);
|
|
@@ -4074,10 +4076,10 @@ var Wt = { exports: {} };
|
|
|
4074
4076
|
A("error", S);
|
|
4075
4077
|
}), "onabort" in p && (p.onabort = function(S) {
|
|
4076
4078
|
A("abort", S);
|
|
4077
|
-
}), "onprogress" in p && (p.onprogress =
|
|
4078
|
-
|
|
4079
|
+
}), "onprogress" in p && (p.onprogress = N), "onreadystatechange" in p && (p.onreadystatechange = function(S) {
|
|
4080
|
+
O(S);
|
|
4079
4081
|
}), ("contentType" in p || !("ontimeout" in o.prototype)) && (l += (l.indexOf("?") === -1 ? "?" : "&") + "padding=true"), p.open(a, l, !0), "readyState" in p && (m = r(function() {
|
|
4080
|
-
|
|
4082
|
+
L();
|
|
4081
4083
|
}, 0));
|
|
4082
4084
|
}, w.prototype.abort = function() {
|
|
4083
4085
|
this._abort(!1);
|
|
@@ -4104,76 +4106,76 @@ var Wt = { exports: {} };
|
|
|
4104
4106
|
throw f;
|
|
4105
4107
|
}
|
|
4106
4108
|
};
|
|
4107
|
-
function
|
|
4109
|
+
function I(a) {
|
|
4108
4110
|
return a.replace(/[A-Z]/g, function(l) {
|
|
4109
4111
|
return String.fromCharCode(l.charCodeAt(0) + 32);
|
|
4110
4112
|
});
|
|
4111
4113
|
}
|
|
4112
|
-
function
|
|
4114
|
+
function R(a) {
|
|
4113
4115
|
for (var l = /* @__PURE__ */ Object.create(null), f = a.split(`\r
|
|
4114
4116
|
`), p = 0; p < f.length; p += 1) {
|
|
4115
|
-
var E = f[p], m = E.split(": "), _ = m.shift(),
|
|
4116
|
-
l[
|
|
4117
|
+
var E = f[p], m = E.split(": "), _ = m.shift(), N = m.join(": ");
|
|
4118
|
+
l[I(_)] = N;
|
|
4117
4119
|
}
|
|
4118
4120
|
this._map = l;
|
|
4119
4121
|
}
|
|
4120
|
-
|
|
4121
|
-
return this._map[
|
|
4122
|
+
R.prototype.get = function(a) {
|
|
4123
|
+
return this._map[I(a)];
|
|
4122
4124
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4123
4125
|
function K() {
|
|
4124
4126
|
}
|
|
4125
4127
|
K.prototype.open = function(a, l, f, p, E, m, _) {
|
|
4126
4128
|
a.open("GET", E);
|
|
4127
|
-
var
|
|
4129
|
+
var N = 0;
|
|
4128
4130
|
a.onprogress = function() {
|
|
4129
|
-
var
|
|
4130
|
-
|
|
4131
|
-
}, a.onerror = function(
|
|
4132
|
-
|
|
4131
|
+
var O = a.responseText, L = O.slice(N);
|
|
4132
|
+
N += L.length, f(L);
|
|
4133
|
+
}, a.onerror = function(O) {
|
|
4134
|
+
O.preventDefault(), p(new Error("NetworkError"));
|
|
4133
4135
|
}, a.onload = function() {
|
|
4134
4136
|
p(null);
|
|
4135
4137
|
}, a.onabort = function() {
|
|
4136
4138
|
p(null);
|
|
4137
4139
|
}, a.onreadystatechange = function() {
|
|
4138
4140
|
if (a.readyState === o.HEADERS_RECEIVED) {
|
|
4139
|
-
var
|
|
4140
|
-
l(
|
|
4141
|
+
var O = a.status, L = a.statusText, S = a.getResponseHeader("Content-Type"), F = a.getAllResponseHeaders();
|
|
4142
|
+
l(O, L, S, new R(F));
|
|
4141
4143
|
}
|
|
4142
4144
|
}, a.withCredentials = m;
|
|
4143
4145
|
for (var A in _)
|
|
4144
4146
|
Object.prototype.hasOwnProperty.call(_, A) && a.setRequestHeader(A, _[A]);
|
|
4145
4147
|
return a.send(), a;
|
|
4146
4148
|
};
|
|
4147
|
-
function
|
|
4149
|
+
function fe(a) {
|
|
4148
4150
|
this._headers = a;
|
|
4149
4151
|
}
|
|
4150
|
-
|
|
4152
|
+
fe.prototype.get = function(a) {
|
|
4151
4153
|
return this._headers.get(a);
|
|
4152
4154
|
};
|
|
4153
|
-
function
|
|
4155
|
+
function de() {
|
|
4154
4156
|
}
|
|
4155
|
-
|
|
4156
|
-
var
|
|
4157
|
+
de.prototype.open = function(a, l, f, p, E, m, _) {
|
|
4158
|
+
var N = null, A = new P(), O = A.signal, L = new x();
|
|
4157
4159
|
return g(E, {
|
|
4158
4160
|
headers: _,
|
|
4159
4161
|
credentials: m ? "include" : "same-origin",
|
|
4160
|
-
signal:
|
|
4162
|
+
signal: O,
|
|
4161
4163
|
cache: "no-store"
|
|
4162
4164
|
}).then(function(S) {
|
|
4163
|
-
return
|
|
4164
|
-
var
|
|
4165
|
-
|
|
4165
|
+
return N = S.body.getReader(), l(S.status, S.statusText, S.headers.get("Content-Type"), new fe(S.headers)), new c(function(F, me) {
|
|
4166
|
+
var Qe = function() {
|
|
4167
|
+
N.read().then(function(ne) {
|
|
4166
4168
|
if (ne.done)
|
|
4167
|
-
|
|
4169
|
+
F(void 0);
|
|
4168
4170
|
else {
|
|
4169
|
-
var q =
|
|
4170
|
-
f(q),
|
|
4171
|
+
var q = L.decode(ne.value, { stream: !0 });
|
|
4172
|
+
f(q), Qe();
|
|
4171
4173
|
}
|
|
4172
4174
|
}).catch(function(ne) {
|
|
4173
|
-
|
|
4175
|
+
me(ne);
|
|
4174
4176
|
});
|
|
4175
4177
|
};
|
|
4176
|
-
|
|
4178
|
+
Qe();
|
|
4177
4179
|
});
|
|
4178
4180
|
}).catch(function(S) {
|
|
4179
4181
|
if (S.name !== "AbortError")
|
|
@@ -4182,14 +4184,14 @@ var Wt = { exports: {} };
|
|
|
4182
4184
|
p(S);
|
|
4183
4185
|
}), {
|
|
4184
4186
|
abort: function() {
|
|
4185
|
-
|
|
4187
|
+
N?.cancel(), A.abort();
|
|
4186
4188
|
}
|
|
4187
4189
|
};
|
|
4188
4190
|
};
|
|
4189
4191
|
function ee() {
|
|
4190
4192
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4191
4193
|
}
|
|
4192
|
-
function
|
|
4194
|
+
function xe(a) {
|
|
4193
4195
|
r(function() {
|
|
4194
4196
|
throw a;
|
|
4195
4197
|
}, 0);
|
|
@@ -4203,7 +4205,7 @@ var Wt = { exports: {} };
|
|
|
4203
4205
|
try {
|
|
4204
4206
|
typeof E.handleEvent == "function" ? E.handleEvent(a) : E.call(this, a);
|
|
4205
4207
|
} catch (m) {
|
|
4206
|
-
|
|
4208
|
+
xe(m);
|
|
4207
4209
|
}
|
|
4208
4210
|
}
|
|
4209
4211
|
}, ee.prototype.addEventListener = function(a, l) {
|
|
@@ -4225,146 +4227,146 @@ var Wt = { exports: {} };
|
|
|
4225
4227
|
function v(a) {
|
|
4226
4228
|
this.type = a, this.target = void 0;
|
|
4227
4229
|
}
|
|
4228
|
-
function
|
|
4230
|
+
function _e(a, l) {
|
|
4229
4231
|
v.call(this, a), this.data = l.data, this.lastEventId = l.lastEventId;
|
|
4230
4232
|
}
|
|
4231
|
-
|
|
4232
|
-
function
|
|
4233
|
+
_e.prototype = Object.create(v.prototype);
|
|
4234
|
+
function ze(a, l) {
|
|
4233
4235
|
v.call(this, a), this.status = l.status, this.statusText = l.statusText, this.headers = l.headers;
|
|
4234
4236
|
}
|
|
4235
|
-
|
|
4236
|
-
function
|
|
4237
|
+
ze.prototype = Object.create(v.prototype);
|
|
4238
|
+
function it(a, l) {
|
|
4237
4239
|
v.call(this, a), this.error = l.error;
|
|
4238
4240
|
}
|
|
4239
|
-
|
|
4240
|
-
var
|
|
4241
|
+
it.prototype = Object.create(v.prototype);
|
|
4242
|
+
var We = -1, ue = 0, Te = 1, pe = 2, Oe = -1, le = 0, we = 1, Ze = 2, _t = 3, ot = /^text\/event\-stream(;.*)?$/i, Tt = 1e3, Bt = 18e6, qe = function(a, l) {
|
|
4241
4243
|
var f = a == null ? l : parseInt(a, 10);
|
|
4242
4244
|
return f !== f && (f = l), Le(f);
|
|
4243
4245
|
}, Le = function(a) {
|
|
4244
|
-
return Math.min(Math.max(a,
|
|
4245
|
-
},
|
|
4246
|
+
return Math.min(Math.max(a, Tt), Bt);
|
|
4247
|
+
}, Be = function(a, l, f) {
|
|
4246
4248
|
try {
|
|
4247
4249
|
typeof l == "function" && l.call(a, f);
|
|
4248
4250
|
} catch (p) {
|
|
4249
|
-
|
|
4251
|
+
xe(p);
|
|
4250
4252
|
}
|
|
4251
4253
|
};
|
|
4252
4254
|
function te(a, l) {
|
|
4253
|
-
ee.call(this), l = l || {}, 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,
|
|
4255
|
+
ee.call(this), l = l || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, At(this, a, l);
|
|
4254
4256
|
}
|
|
4255
|
-
function
|
|
4257
|
+
function St() {
|
|
4256
4258
|
return o != null && "withCredentials" in o.prototype || u == null ? new o() : new u();
|
|
4257
4259
|
}
|
|
4258
|
-
var
|
|
4259
|
-
function
|
|
4260
|
+
var wt = g != null && y != null && "body" in y.prototype;
|
|
4261
|
+
function At(a, l, f) {
|
|
4260
4262
|
l = String(l);
|
|
4261
|
-
var p = !!f.withCredentials, E = f.lastEventIdQueryParameterName || "lastEventId", m = Le(1e3), _ =
|
|
4263
|
+
var p = !!f.withCredentials, E = f.lastEventIdQueryParameterName || "lastEventId", m = Le(1e3), _ = qe(f.heartbeatTimeout, 45e3), N = "", A = m, O = !1, L = 0, S = f.headers || {}, F = f.Transport, me = wt && F == null ? void 0 : new w(F != null ? new F() : St()), Qe = F != null && typeof F != "string" ? new F() : me == null ? new de() : new K(), ne = void 0, q = 0, ae = We, Re = "", at = "", ge = "", st = "", Q = le, Ct = 0, Ae = 0, Kn = function(V, k, re, ie) {
|
|
4262
4264
|
if (ae === ue)
|
|
4263
|
-
if (V === 200 && re != null &&
|
|
4264
|
-
ae =
|
|
4265
|
-
var J = new
|
|
4265
|
+
if (V === 200 && re != null && ot.test(re)) {
|
|
4266
|
+
ae = Te, O = Date.now(), A = m, a.readyState = Te;
|
|
4267
|
+
var J = new ze("open", {
|
|
4266
4268
|
status: V,
|
|
4267
|
-
statusText:
|
|
4269
|
+
statusText: k,
|
|
4268
4270
|
headers: ie
|
|
4269
4271
|
});
|
|
4270
|
-
a.dispatchEvent(J),
|
|
4272
|
+
a.dispatchEvent(J), Be(a, a.onopen, J);
|
|
4271
4273
|
} else {
|
|
4272
4274
|
var W = "";
|
|
4273
|
-
V !== 200 ? (
|
|
4274
|
-
var J = new
|
|
4275
|
+
V !== 200 ? (k && (k = k.replace(/\s+/g, " ")), W = "EventSource's response has a status " + V + " " + k + " that is not 200. Aborting the connection.") : W = "EventSource's response has a Content-Type specifying an unsupported type: " + (re == null ? "-" : re.replace(/\s+/g, " ")) + ". Aborting the connection.", Ht();
|
|
4276
|
+
var J = new ze("error", {
|
|
4275
4277
|
status: V,
|
|
4276
|
-
statusText:
|
|
4278
|
+
statusText: k,
|
|
4277
4279
|
headers: ie
|
|
4278
4280
|
});
|
|
4279
|
-
a.dispatchEvent(J),
|
|
4281
|
+
a.dispatchEvent(J), Be(a, a.onerror, J), console.error(W);
|
|
4280
4282
|
}
|
|
4281
|
-
},
|
|
4282
|
-
if (ae ===
|
|
4283
|
-
for (var
|
|
4283
|
+
}, er = function(V) {
|
|
4284
|
+
if (ae === Te) {
|
|
4285
|
+
for (var k = -1, re = 0; re < V.length; re += 1) {
|
|
4284
4286
|
var ie = V.charCodeAt(re);
|
|
4285
|
-
(ie === 10 || ie === 13) && (
|
|
4287
|
+
(ie === 10 || ie === 13) && (k = re);
|
|
4286
4288
|
}
|
|
4287
|
-
var J = (
|
|
4288
|
-
|
|
4289
|
+
var J = (k !== -1 ? st : "") + V.slice(0, k + 1);
|
|
4290
|
+
st = (k === -1 ? st : "") + V.slice(k + 1), V !== "" && (O = Date.now(), L += V.length);
|
|
4289
4291
|
for (var W = 0; W < J.length; W += 1) {
|
|
4290
4292
|
var ie = J.charCodeAt(W);
|
|
4291
|
-
if (Q ===
|
|
4293
|
+
if (Q === Oe && ie === 10)
|
|
4292
4294
|
Q = le;
|
|
4293
|
-
else if (Q ===
|
|
4295
|
+
else if (Q === Oe && (Q = le), ie === 13 || ie === 10) {
|
|
4294
4296
|
if (Q !== le) {
|
|
4295
|
-
Q ===
|
|
4296
|
-
var
|
|
4297
|
-
|
|
4298
|
-
`,
|
|
4299
|
-
|
|
4297
|
+
Q === we && (Ae = W + 1);
|
|
4298
|
+
var be = J.slice(Ct, Ae - 1), ye = J.slice(Ae + (Ae < W && J.charCodeAt(Ae) === 32 ? 1 : 0), W);
|
|
4299
|
+
be === "data" ? (Re += `
|
|
4300
|
+
`, Re += ye) : be === "id" ? at = ye : be === "event" ? ge = ye : be === "retry" ? (m = qe(ye, m), A = m) : be === "heartbeatTimeout" && (_ = qe(ye, _), q !== 0 && (i(q), q = r(function() {
|
|
4301
|
+
Je();
|
|
4300
4302
|
}, _)));
|
|
4301
4303
|
}
|
|
4302
4304
|
if (Q === le) {
|
|
4303
|
-
if (
|
|
4304
|
-
|
|
4305
|
-
var
|
|
4306
|
-
data:
|
|
4307
|
-
lastEventId:
|
|
4305
|
+
if (Re !== "") {
|
|
4306
|
+
N = at, ge === "" && (ge = "message");
|
|
4307
|
+
var Ne = new _e(ge, {
|
|
4308
|
+
data: Re.slice(1),
|
|
4309
|
+
lastEventId: at
|
|
4308
4310
|
});
|
|
4309
|
-
if (a.dispatchEvent(
|
|
4311
|
+
if (a.dispatchEvent(Ne), ge === "open" ? Be(a, a.onopen, Ne) : ge === "message" ? Be(a, a.onmessage, Ne) : ge === "error" && Be(a, a.onerror, Ne), ae === pe)
|
|
4310
4312
|
return;
|
|
4311
4313
|
}
|
|
4312
|
-
|
|
4314
|
+
Re = "", ge = "";
|
|
4313
4315
|
}
|
|
4314
|
-
Q = ie === 13 ?
|
|
4316
|
+
Q = ie === 13 ? Oe : le;
|
|
4315
4317
|
} else
|
|
4316
|
-
Q === le && (
|
|
4318
|
+
Q === le && (Ct = W, Q = we), Q === we ? ie === 58 && (Ae = W + 1, Q = Ze) : Q === Ze && (Q = _t);
|
|
4317
4319
|
}
|
|
4318
4320
|
}
|
|
4319
|
-
},
|
|
4320
|
-
if (ae ===
|
|
4321
|
-
ae =
|
|
4322
|
-
|
|
4321
|
+
}, Kt = function(V) {
|
|
4322
|
+
if (ae === Te || ae === ue) {
|
|
4323
|
+
ae = We, q !== 0 && (i(q), q = 0), q = r(function() {
|
|
4324
|
+
Je();
|
|
4323
4325
|
}, A), A = Le(Math.min(m * 16, A * 2)), a.readyState = ue;
|
|
4324
|
-
var
|
|
4325
|
-
a.dispatchEvent(
|
|
4326
|
+
var k = new it("error", { error: V });
|
|
4327
|
+
a.dispatchEvent(k), Be(a, a.onerror, k), V != null && console.error(V);
|
|
4326
4328
|
}
|
|
4327
|
-
},
|
|
4328
|
-
ae =
|
|
4329
|
-
},
|
|
4330
|
-
if (q = 0, ae !==
|
|
4331
|
-
if (!
|
|
4332
|
-
|
|
4329
|
+
}, Ht = function() {
|
|
4330
|
+
ae = pe, ne != null && (ne.abort(), ne = void 0), q !== 0 && (i(q), q = 0), a.readyState = pe;
|
|
4331
|
+
}, Je = function() {
|
|
4332
|
+
if (q = 0, ae !== We) {
|
|
4333
|
+
if (!O && ne != null)
|
|
4334
|
+
Kt(new Error("No activity within " + _ + " milliseconds. " + (ae === ue ? "No response received." : L + " chars received.") + " Reconnecting.")), ne != null && (ne.abort(), ne = void 0);
|
|
4333
4335
|
else {
|
|
4334
|
-
var V = Math.max((
|
|
4335
|
-
|
|
4336
|
-
|
|
4336
|
+
var V = Math.max((O || Date.now()) + _ - Date.now(), 1);
|
|
4337
|
+
O = !1, q = r(function() {
|
|
4338
|
+
Je();
|
|
4337
4339
|
}, V);
|
|
4338
4340
|
}
|
|
4339
4341
|
return;
|
|
4340
4342
|
}
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
}, _), ae = ue,
|
|
4344
|
-
var
|
|
4345
|
-
if (l.slice(0, 5) !== "data:" && l.slice(0, 5) !== "blob:" &&
|
|
4343
|
+
O = !1, L = 0, q = r(function() {
|
|
4344
|
+
Je();
|
|
4345
|
+
}, _), ae = ue, Re = "", ge = "", at = N, st = "", Ct = 0, Ae = 0, Q = le;
|
|
4346
|
+
var k = l;
|
|
4347
|
+
if (l.slice(0, 5) !== "data:" && l.slice(0, 5) !== "blob:" && N !== "") {
|
|
4346
4348
|
var re = l.indexOf("?");
|
|
4347
|
-
|
|
4348
|
-
return
|
|
4349
|
-
}),
|
|
4349
|
+
k = re === -1 ? l : l.slice(0, re + 1) + l.slice(re + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(ye, Ne) {
|
|
4350
|
+
return Ne === E ? "" : ye;
|
|
4351
|
+
}), k += (l.indexOf("?") === -1 ? "?" : "&") + E + "=" + encodeURIComponent(N);
|
|
4350
4352
|
}
|
|
4351
4353
|
var ie = a.withCredentials, J = {};
|
|
4352
4354
|
J.Accept = "text/event-stream";
|
|
4353
4355
|
var W = a.headers;
|
|
4354
4356
|
if (W != null)
|
|
4355
|
-
for (var
|
|
4356
|
-
Object.prototype.hasOwnProperty.call(W,
|
|
4357
|
+
for (var be in W)
|
|
4358
|
+
Object.prototype.hasOwnProperty.call(W, be) && (J[be] = W[be]);
|
|
4357
4359
|
try {
|
|
4358
|
-
ne =
|
|
4359
|
-
} catch (
|
|
4360
|
-
throw
|
|
4360
|
+
ne = Qe.open(me, Kn, er, Kt, k, ie, J);
|
|
4361
|
+
} catch (ye) {
|
|
4362
|
+
throw Ht(), ye;
|
|
4361
4363
|
}
|
|
4362
4364
|
};
|
|
4363
|
-
a.url = l, a.readyState = ue, a.withCredentials = p, a.headers = S, a._close =
|
|
4365
|
+
a.url = l, a.readyState = ue, a.withCredentials = p, a.headers = S, a._close = Ht, Je();
|
|
4364
4366
|
}
|
|
4365
|
-
te.prototype = Object.create(ee.prototype), te.prototype.CONNECTING = ue, te.prototype.OPEN =
|
|
4367
|
+
te.prototype = Object.create(ee.prototype), te.prototype.CONNECTING = ue, te.prototype.OPEN = Te, te.prototype.CLOSED = pe, te.prototype.close = function() {
|
|
4366
4368
|
this._close();
|
|
4367
|
-
}, te.CONNECTING = ue, te.OPEN =
|
|
4369
|
+
}, te.CONNECTING = ue, te.OPEN = Te, te.CLOSED = pe, te.prototype.withCredentials = void 0;
|
|
4368
4370
|
var b = d;
|
|
4369
4371
|
o != null && (d == null || !("withCredentials" in d.prototype)) && (b = te), function(a) {
|
|
4370
4372
|
{
|
|
@@ -4374,21 +4376,21 @@ var Wt = { exports: {} };
|
|
|
4374
4376
|
}(function(a) {
|
|
4375
4377
|
a.EventSourcePolyfill = te, a.NativeEventSource = d, a.EventSource = b;
|
|
4376
4378
|
});
|
|
4377
|
-
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self :
|
|
4378
|
-
})(
|
|
4379
|
-
var
|
|
4380
|
-
function
|
|
4381
|
-
|
|
4379
|
+
})(typeof globalThis > "u" ? typeof window < "u" ? window : typeof self < "u" ? self : Cr : globalThis);
|
|
4380
|
+
})(qt, qt.exports);
|
|
4381
|
+
var yo = qt.exports;
|
|
4382
|
+
function vo(e) {
|
|
4383
|
+
rr(e, "svelte-gv6dm2", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap;background:transparent;border:none;font:inherit;color:inherit}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
|
|
4382
4384
|
}
|
|
4383
|
-
function
|
|
4385
|
+
function yn(e, t, n) {
|
|
4384
4386
|
const r = e.slice();
|
|
4385
4387
|
return r[49] = t[n], r;
|
|
4386
4388
|
}
|
|
4387
|
-
function
|
|
4389
|
+
function vn(e, t, n) {
|
|
4388
4390
|
const r = e.slice();
|
|
4389
4391
|
return r[52] = t[n], r;
|
|
4390
4392
|
}
|
|
4391
|
-
function
|
|
4393
|
+
function Eo(e) {
|
|
4392
4394
|
let t, n = (
|
|
4393
4395
|
/*balances*/
|
|
4394
4396
|
(e[3].Total ? (
|
|
@@ -4400,14 +4402,14 @@ function vo(e) {
|
|
|
4400
4402
|
) : "0") + ""
|
|
4401
4403
|
), r, i, o, u, s, d, h, c = (
|
|
4402
4404
|
/*isModalDisplayed*/
|
|
4403
|
-
e[2] &&
|
|
4405
|
+
e[2] && En(e)
|
|
4404
4406
|
);
|
|
4405
4407
|
return {
|
|
4406
4408
|
c() {
|
|
4407
|
-
t = $("button"), r =
|
|
4409
|
+
t = $("button"), r = ve(n), i = Ee(), o = $("span"), o.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', u = Ee(), c && c.c(), s = ar(), Z(t, "class", "BalanceValue");
|
|
4408
4410
|
},
|
|
4409
4411
|
m(g, y) {
|
|
4410
|
-
|
|
4412
|
+
ce(g, t, y), M(t, r), M(t, i), M(t, o), ce(g, u, y), c && c.m(g, y), ce(g, s, y), d || (h = ft(
|
|
4411
4413
|
t,
|
|
4412
4414
|
"click",
|
|
4413
4415
|
/*click_handler*/
|
|
@@ -4423,103 +4425,103 @@ function vo(e) {
|
|
|
4423
4425
|
/*balances*/
|
|
4424
4426
|
g[3].Total[0].amount
|
|
4425
4427
|
)
|
|
4426
|
-
) : "0") + "") &&
|
|
4427
|
-
g[2] ? c ? c.p(g, y) : (c =
|
|
4428
|
+
) : "0") + "") && Ce(r, n), /*isModalDisplayed*/
|
|
4429
|
+
g[2] ? c ? c.p(g, y) : (c = En(g), c.c(), c.m(s.parentNode, s)) : c && (c.d(1), c = null);
|
|
4428
4430
|
},
|
|
4429
4431
|
d(g) {
|
|
4430
4432
|
g && (se(t), se(u), se(s)), c && c.d(g), d = !1, h();
|
|
4431
4433
|
}
|
|
4432
4434
|
};
|
|
4433
4435
|
}
|
|
4434
|
-
function
|
|
4436
|
+
function xo(e) {
|
|
4435
4437
|
let t, n = (
|
|
4436
4438
|
/*$_*/
|
|
4437
4439
|
e[4]("Loading") + ""
|
|
4438
4440
|
), r;
|
|
4439
4441
|
return {
|
|
4440
4442
|
c() {
|
|
4441
|
-
t = $("p"), r =
|
|
4443
|
+
t = $("p"), r = ve(n);
|
|
4442
4444
|
},
|
|
4443
4445
|
m(i, o) {
|
|
4444
|
-
|
|
4446
|
+
ce(i, t, o), M(t, r);
|
|
4445
4447
|
},
|
|
4446
4448
|
p(i, o) {
|
|
4447
4449
|
o[0] & /*$_*/
|
|
4448
4450
|
16 && n !== (n = /*$_*/
|
|
4449
|
-
i[4]("Loading") + "") &&
|
|
4451
|
+
i[4]("Loading") + "") && Ce(r, n);
|
|
4450
4452
|
},
|
|
4451
4453
|
d(i) {
|
|
4452
4454
|
i && se(t);
|
|
4453
4455
|
}
|
|
4454
4456
|
};
|
|
4455
4457
|
}
|
|
4456
|
-
function
|
|
4458
|
+
function En(e) {
|
|
4457
4459
|
let t, n, r, i, o, u, s = (
|
|
4458
4460
|
/*$_*/
|
|
4459
4461
|
e[4]("Title") + ""
|
|
4460
4462
|
), d, h, c, g, y, x, T = (
|
|
4461
4463
|
/*$_*/
|
|
4462
4464
|
e[4]("DepositButton") + ""
|
|
4463
|
-
),
|
|
4465
|
+
), P, j, z, G = dt(Object.keys(
|
|
4464
4466
|
/*balances*/
|
|
4465
4467
|
e[3]
|
|
4466
4468
|
)), B = [];
|
|
4467
4469
|
for (let w = 0; w < G.length; w += 1)
|
|
4468
|
-
B[w] =
|
|
4470
|
+
B[w] = _n(yn(e, G, w));
|
|
4469
4471
|
return {
|
|
4470
4472
|
c() {
|
|
4471
|
-
t = $("div"), n = $("button"), r =
|
|
4473
|
+
t = $("div"), n = $("button"), r = Ee(), i = $("div"), o = $("div"), u = $("p"), d = ve(s), h = Ee(), c = $("div");
|
|
4472
4474
|
for (let w = 0; w < B.length; w += 1)
|
|
4473
4475
|
B[w].c();
|
|
4474
|
-
g =
|
|
4476
|
+
g = Ee(), y = $("div"), x = $("button"), P = ve(T), Z(n, "class", "BalanceModalClose"), Z(u, "class", "BalanceModalTitle"), Z(o, "class", "BalanceModalHeader"), Z(c, "class", "BalanceModalBody"), Z(x, "class", "BalanceModalAction"), Z(y, "class", "BalanceModalFooter"), Z(i, "class", "BalanceModal"), Z(t, "class", "BalanceModalWrapper");
|
|
4475
4477
|
},
|
|
4476
|
-
m(w,
|
|
4477
|
-
|
|
4478
|
-
for (let
|
|
4479
|
-
B[
|
|
4480
|
-
|
|
4481
|
-
|
|
4478
|
+
m(w, I) {
|
|
4479
|
+
ce(w, t, I), M(t, n), M(t, r), M(t, i), M(i, o), M(o, u), M(u, d), M(i, h), M(i, c);
|
|
4480
|
+
for (let R = 0; R < B.length; R += 1)
|
|
4481
|
+
B[R] && B[R].m(c, null);
|
|
4482
|
+
M(i, g), M(i, y), M(y, x), M(x, P), j || (z = [
|
|
4483
|
+
ft(
|
|
4482
4484
|
n,
|
|
4483
4485
|
"click",
|
|
4484
4486
|
/*click_handler_1*/
|
|
4485
4487
|
e[24]
|
|
4486
4488
|
),
|
|
4487
|
-
|
|
4489
|
+
ft(
|
|
4488
4490
|
x,
|
|
4489
4491
|
"click",
|
|
4490
4492
|
/*click_handler_2*/
|
|
4491
4493
|
e[25]
|
|
4492
4494
|
)
|
|
4493
|
-
],
|
|
4495
|
+
], j = !0);
|
|
4494
4496
|
},
|
|
4495
|
-
p(w,
|
|
4496
|
-
if (
|
|
4497
|
+
p(w, I) {
|
|
4498
|
+
if (I[0] & /*$_*/
|
|
4497
4499
|
16 && s !== (s = /*$_*/
|
|
4498
|
-
w[4]("Title") + "") &&
|
|
4500
|
+
w[4]("Title") + "") && Ce(d, s), I[0] & /*balances, formatBalance, $_*/
|
|
4499
4501
|
56) {
|
|
4500
|
-
G =
|
|
4502
|
+
G = dt(Object.keys(
|
|
4501
4503
|
/*balances*/
|
|
4502
4504
|
w[3]
|
|
4503
4505
|
));
|
|
4504
|
-
let
|
|
4505
|
-
for (
|
|
4506
|
-
const K =
|
|
4507
|
-
B[
|
|
4506
|
+
let R;
|
|
4507
|
+
for (R = 0; R < G.length; R += 1) {
|
|
4508
|
+
const K = yn(w, G, R);
|
|
4509
|
+
B[R] ? B[R].p(K, I) : (B[R] = _n(K), B[R].c(), B[R].m(c, null));
|
|
4508
4510
|
}
|
|
4509
|
-
for (;
|
|
4510
|
-
B[
|
|
4511
|
+
for (; R < B.length; R += 1)
|
|
4512
|
+
B[R].d(1);
|
|
4511
4513
|
B.length = G.length;
|
|
4512
4514
|
}
|
|
4513
|
-
|
|
4515
|
+
I[0] & /*$_*/
|
|
4514
4516
|
16 && T !== (T = /*$_*/
|
|
4515
|
-
w[4]("DepositButton") + "") &&
|
|
4517
|
+
w[4]("DepositButton") + "") && Ce(P, T);
|
|
4516
4518
|
},
|
|
4517
4519
|
d(w) {
|
|
4518
|
-
w && se(t),
|
|
4520
|
+
w && se(t), An(B, w), j = !1, je(z);
|
|
4519
4521
|
}
|
|
4520
4522
|
};
|
|
4521
4523
|
}
|
|
4522
|
-
function
|
|
4524
|
+
function xn(e) {
|
|
4523
4525
|
let t, n, r = (
|
|
4524
4526
|
/*$_*/
|
|
4525
4527
|
e[4](
|
|
@@ -4544,10 +4546,10 @@ function En(e) {
|
|
|
4544
4546
|
), y;
|
|
4545
4547
|
return {
|
|
4546
4548
|
c() {
|
|
4547
|
-
t = $("div"), n = $("p"), i =
|
|
4549
|
+
t = $("div"), n = $("p"), i = ve(r), o = Ee(), s = ve(u), d = Ee(), h = $("p"), c = $("span"), y = ve(g), Z(n, "class", "BalanceModalText"), Z(c, "class", "BalanceModalAmount"), Z(h, "class", "BalanceModalValue"), Z(t, "class", "BalanceModalRowLine");
|
|
4548
4550
|
},
|
|
4549
4551
|
m(x, T) {
|
|
4550
|
-
|
|
4552
|
+
ce(x, t, T), M(t, n), M(n, i), M(n, o), M(n, s), M(t, d), M(t, h), M(h, c), M(c, y);
|
|
4551
4553
|
},
|
|
4552
4554
|
p(x, T) {
|
|
4553
4555
|
T[0] & /*$_, balances*/
|
|
@@ -4555,7 +4557,7 @@ function En(e) {
|
|
|
4555
4557
|
x[4](
|
|
4556
4558
|
/*k*/
|
|
4557
4559
|
x[49]
|
|
4558
|
-
) + "") &&
|
|
4560
|
+
) + "") && Ce(i, r), T[0] & /*balances, $_*/
|
|
4559
4561
|
24 && u !== (u = /*b*/
|
|
4560
4562
|
(x[52].productType ? (
|
|
4561
4563
|
/*$_*/
|
|
@@ -4563,20 +4565,20 @@ function En(e) {
|
|
|
4563
4565
|
/*b*/
|
|
4564
4566
|
x[52].productType
|
|
4565
4567
|
)
|
|
4566
|
-
) : "") + "") &&
|
|
4568
|
+
) : "") + "") && Ce(s, u), T[0] & /*balances*/
|
|
4567
4569
|
8 && g !== (g = /*formatBalance*/
|
|
4568
4570
|
x[5](
|
|
4569
4571
|
/*b*/
|
|
4570
4572
|
x[52].amount
|
|
4571
|
-
) + "") &&
|
|
4573
|
+
) + "") && Ce(y, g);
|
|
4572
4574
|
},
|
|
4573
4575
|
d(x) {
|
|
4574
4576
|
x && se(t);
|
|
4575
4577
|
}
|
|
4576
4578
|
};
|
|
4577
4579
|
}
|
|
4578
|
-
function
|
|
4579
|
-
let t, n, r =
|
|
4580
|
+
function _n(e) {
|
|
4581
|
+
let t, n, r = dt(
|
|
4580
4582
|
/*balances*/
|
|
4581
4583
|
e[3][
|
|
4582
4584
|
/*k*/
|
|
@@ -4584,24 +4586,24 @@ function xn(e) {
|
|
|
4584
4586
|
]
|
|
4585
4587
|
), i = [];
|
|
4586
4588
|
for (let o = 0; o < r.length; o += 1)
|
|
4587
|
-
i[o] =
|
|
4589
|
+
i[o] = xn(vn(e, r, o));
|
|
4588
4590
|
return {
|
|
4589
4591
|
c() {
|
|
4590
4592
|
t = $("div");
|
|
4591
4593
|
for (let o = 0; o < i.length; o += 1)
|
|
4592
4594
|
i[o].c();
|
|
4593
|
-
n =
|
|
4595
|
+
n = Ee(), Z(t, "class", "BalanceModalRowBoth");
|
|
4594
4596
|
},
|
|
4595
4597
|
m(o, u) {
|
|
4596
|
-
|
|
4598
|
+
ce(o, t, u);
|
|
4597
4599
|
for (let s = 0; s < i.length; s += 1)
|
|
4598
4600
|
i[s] && i[s].m(t, null);
|
|
4599
|
-
|
|
4601
|
+
M(t, n);
|
|
4600
4602
|
},
|
|
4601
4603
|
p(o, u) {
|
|
4602
4604
|
if (u[0] & /*formatBalance, balances, $_*/
|
|
4603
4605
|
56) {
|
|
4604
|
-
r =
|
|
4606
|
+
r = dt(
|
|
4605
4607
|
/*balances*/
|
|
4606
4608
|
o[3][
|
|
4607
4609
|
/*k*/
|
|
@@ -4610,8 +4612,8 @@ function xn(e) {
|
|
|
4610
4612
|
);
|
|
4611
4613
|
let s;
|
|
4612
4614
|
for (s = 0; s < r.length; s += 1) {
|
|
4613
|
-
const d =
|
|
4614
|
-
i[s] ? i[s].p(d, u) : (i[s] =
|
|
4615
|
+
const d = vn(o, r, s);
|
|
4616
|
+
i[s] ? i[s].p(d, u) : (i[s] = xn(d), i[s].c(), i[s].m(t, n));
|
|
4615
4617
|
}
|
|
4616
4618
|
for (; s < i.length; s += 1)
|
|
4617
4619
|
i[s].d(1);
|
|
@@ -4619,18 +4621,18 @@ function xn(e) {
|
|
|
4619
4621
|
}
|
|
4620
4622
|
},
|
|
4621
4623
|
d(o) {
|
|
4622
|
-
o && se(t),
|
|
4624
|
+
o && se(t), An(i, o);
|
|
4623
4625
|
}
|
|
4624
4626
|
};
|
|
4625
4627
|
}
|
|
4626
|
-
function
|
|
4628
|
+
function Tn(e) {
|
|
4627
4629
|
let t, n, r;
|
|
4628
4630
|
return {
|
|
4629
4631
|
c() {
|
|
4630
4632
|
t = $("button"), Z(t, "class", "ShowBalanceModalOverlay");
|
|
4631
4633
|
},
|
|
4632
4634
|
m(i, o) {
|
|
4633
|
-
|
|
4635
|
+
ce(i, t, o), n || (r = ft(
|
|
4634
4636
|
t,
|
|
4635
4637
|
"click",
|
|
4636
4638
|
/*click_handler_3*/
|
|
@@ -4643,28 +4645,28 @@ function _n(e) {
|
|
|
4643
4645
|
}
|
|
4644
4646
|
};
|
|
4645
4647
|
}
|
|
4646
|
-
function
|
|
4648
|
+
function _o(e) {
|
|
4647
4649
|
let t, n, r;
|
|
4648
4650
|
function i(d, h) {
|
|
4649
4651
|
return (
|
|
4650
4652
|
/*isLoading*/
|
|
4651
|
-
d[1] ?
|
|
4653
|
+
d[1] ? xo : Eo
|
|
4652
4654
|
);
|
|
4653
4655
|
}
|
|
4654
4656
|
let o = i(e), u = o(e), s = (
|
|
4655
4657
|
/*isModalDisplayed*/
|
|
4656
|
-
e[2] &&
|
|
4658
|
+
e[2] && Tn(e)
|
|
4657
4659
|
);
|
|
4658
4660
|
return {
|
|
4659
4661
|
c() {
|
|
4660
|
-
t = $("div"), n = $("div"), u.c(), r =
|
|
4662
|
+
t = $("div"), n = $("div"), u.c(), r = Ee(), s && s.c(), Z(n, "class", "ShowBalance");
|
|
4661
4663
|
},
|
|
4662
4664
|
m(d, h) {
|
|
4663
|
-
|
|
4665
|
+
ce(d, t, h), M(t, n), u.m(n, null), M(t, r), s && s.m(t, null), e[27](t);
|
|
4664
4666
|
},
|
|
4665
4667
|
p(d, h) {
|
|
4666
4668
|
o === (o = i(d)) && u ? u.p(d, h) : (u.d(1), u = o(d), u && (u.c(), u.m(n, null))), /*isModalDisplayed*/
|
|
4667
|
-
d[2] ? s ? s.p(d, h) : (s =
|
|
4669
|
+
d[2] ? s ? s.p(d, h) : (s = Tn(d), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4668
4670
|
},
|
|
4669
4671
|
i: oe,
|
|
4670
4672
|
o: oe,
|
|
@@ -4673,27 +4675,27 @@ function xo(e) {
|
|
|
4673
4675
|
}
|
|
4674
4676
|
};
|
|
4675
4677
|
}
|
|
4676
|
-
function
|
|
4678
|
+
function To(e, t, n) {
|
|
4677
4679
|
let r;
|
|
4678
|
-
|
|
4679
|
-
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: s = "en" } = t, { mbsource: d } = t, { clientstyling: h = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: g = "" } = t, { gmversion: y = "gm16" } = t, { displaybalanceoption: x = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencylocale:
|
|
4680
|
-
const v = {},
|
|
4681
|
-
fetch(g).then((b) => b.json()).then((b) => Object.keys(b).forEach((a) =>
|
|
4680
|
+
nr(e, go, (b) => n(4, r = b));
|
|
4681
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: u = "" } = t, { lang: s = "en" } = t, { mbsource: d } = t, { clientstyling: h = "" } = t, { clientstylingurl: c = "" } = t, { translationurl: g = "" } = t, { gmversion: y = "gm16" } = t, { displaybalanceoption: x = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencylocale: P = "en" } = t, { currencydisplay: j = "symbol" } = t, { maximumfractiondigits: z = "2" } = t, { minimumfractiondigits: G = "0" } = t, { customdisplayformat: B = "" } = t, w, I = !0, R = !1, K = !1, fe, de = "", ee = [], xe;
|
|
4682
|
+
const v = {}, _e = ["totalCashAmount", "totalRealAmount"], ze = () => {
|
|
4683
|
+
fetch(g).then((b) => b.json()).then((b) => Object.keys(b).forEach((a) => gn(a, b[a]))).catch((b) => console.log(b));
|
|
4682
4684
|
};
|
|
4683
|
-
Object.keys(
|
|
4684
|
-
const
|
|
4685
|
+
Object.keys(bn).forEach((b) => gn(b, bn[b]));
|
|
4686
|
+
const it = (b) => {
|
|
4685
4687
|
if (B)
|
|
4686
|
-
return
|
|
4687
|
-
const a =
|
|
4688
|
+
return We(b);
|
|
4689
|
+
const a = P || s, l = {
|
|
4688
4690
|
style: "currency",
|
|
4689
|
-
currency:
|
|
4691
|
+
currency: de,
|
|
4690
4692
|
useGrouping: !0,
|
|
4691
|
-
currencyDisplay:
|
|
4693
|
+
currencyDisplay: j || "code",
|
|
4692
4694
|
maximumFractionDigits: z === "" || isNaN(Number(z)) ? 2 : Number(z),
|
|
4693
4695
|
minimumFractionDigits: G === "" || isNaN(Number(G)) ? 0 : Number(G)
|
|
4694
4696
|
};
|
|
4695
4697
|
return new Intl.NumberFormat(a, l).format(b);
|
|
4696
|
-
},
|
|
4698
|
+
}, We = (b) => {
|
|
4697
4699
|
const a = [];
|
|
4698
4700
|
let l = "";
|
|
4699
4701
|
for (const f of B)
|
|
@@ -4707,22 +4709,22 @@ function _o(e, t, n) {
|
|
|
4707
4709
|
case "}":
|
|
4708
4710
|
const [p, E] = l.split("|");
|
|
4709
4711
|
if (l = "", p.toLowerCase() === "currency")
|
|
4710
|
-
l =
|
|
4712
|
+
l = de;
|
|
4711
4713
|
else if (p.toLowerCase() === "amount") {
|
|
4712
|
-
let m = ",", _ = ".",
|
|
4713
|
-
E && (E[0] !== " " && (m = E[0]), E[1] !== " " && (_ = E[1]), E[2] !== " " && !isNaN(Number(E[2])) && (
|
|
4714
|
-
let [A,
|
|
4714
|
+
let m = ",", _ = ".", N = 2;
|
|
4715
|
+
E && (E[0] !== " " && (m = E[0]), E[1] !== " " && (_ = E[1]), E[2] !== " " && !isNaN(Number(E[2])) && (N = Number(E[2])));
|
|
4716
|
+
let [A, O] = String(Math.floor(b * 10 ** N) / 10 ** N).split(".");
|
|
4715
4717
|
l += A[0];
|
|
4716
|
-
for (let
|
|
4717
|
-
(A.length -
|
|
4718
|
-
|
|
4718
|
+
for (let L = 1; L < A.length; ++L)
|
|
4719
|
+
(A.length - L) % 3 === 0 ? l += m + A[L] : l += A[L];
|
|
4720
|
+
O && (l += _ + O);
|
|
4719
4721
|
}
|
|
4720
4722
|
l && a.push(l), l = "";
|
|
4721
4723
|
break;
|
|
4722
4724
|
}
|
|
4723
4725
|
return a.push(l), a.join("");
|
|
4724
4726
|
}, ue = async () => {
|
|
4725
|
-
n(1,
|
|
4727
|
+
n(1, I = !0);
|
|
4726
4728
|
const b = new URL(`${u}/v1/player/${i}/account`);
|
|
4727
4729
|
try {
|
|
4728
4730
|
const a = await fetch(b, {
|
|
@@ -4730,7 +4732,7 @@ function _o(e, t, n) {
|
|
|
4730
4732
|
headers: { "X-SessionID": o }
|
|
4731
4733
|
}), l = await a.json();
|
|
4732
4734
|
if (a.ok)
|
|
4733
|
-
ee = l.items,
|
|
4735
|
+
ee = l.items, de = ee.find((f) => f.displayName === "Casino")?.currency, n(3, v.Total = [{ amount: l.totalAmount[de] }], v), n(
|
|
4734
4736
|
3,
|
|
4735
4737
|
v.Real = [
|
|
4736
4738
|
{
|
|
@@ -4752,19 +4754,19 @@ function _o(e, t, n) {
|
|
|
4752
4754
|
} catch (a) {
|
|
4753
4755
|
console.log("Balance error: ", a);
|
|
4754
4756
|
} finally {
|
|
4755
|
-
n(1,
|
|
4757
|
+
n(1, I = !1);
|
|
4756
4758
|
}
|
|
4757
|
-
},
|
|
4758
|
-
n(1,
|
|
4759
|
+
}, Te = () => {
|
|
4760
|
+
n(1, I = !0);
|
|
4759
4761
|
const b = new URL(`${u}/v2/player/${i}/balance`), a = new Headers();
|
|
4760
4762
|
a.append("X-SessionID", o), fetch(b, { method: "GET", headers: a }).then((f) => f.json()).then((f) => {
|
|
4761
|
-
f[T] || n(7, T =
|
|
4763
|
+
f[T] || n(7, T = _e[0]);
|
|
4762
4764
|
const p = f.items.find((m) => m.type === "Real" && m.walletAccountType === "Ordinary");
|
|
4763
|
-
if (
|
|
4764
|
-
|
|
4765
|
+
if (de = p.currency, K = !!p.productType, n(3, v.Total = [{ amount: 0 }], v), n(3, v.Real = [], v), n(3, v.Bonus = [], v), n(3, v.Credit = [], v), !K) {
|
|
4766
|
+
xe = {
|
|
4765
4767
|
lastOrdinaryAfterAmount: 0,
|
|
4766
4768
|
showCreditLineAfterAmount: !1
|
|
4767
|
-
}, n(3, v.Total[0].amount = f[T][
|
|
4769
|
+
}, n(3, v.Total[0].amount = f[T][de], v);
|
|
4768
4770
|
for (const m of f.items)
|
|
4769
4771
|
switch (m.type) {
|
|
4770
4772
|
case "Bonus":
|
|
@@ -4778,10 +4780,10 @@ function _o(e, t, n) {
|
|
|
4778
4780
|
}
|
|
4779
4781
|
for (const [m, _] of Object.entries(v))
|
|
4780
4782
|
_.length < 1 && delete v[m];
|
|
4781
|
-
n(1,
|
|
4783
|
+
n(1, I = !1);
|
|
4782
4784
|
return;
|
|
4783
4785
|
}
|
|
4784
|
-
|
|
4786
|
+
xe = {
|
|
4785
4787
|
Casino: {
|
|
4786
4788
|
lastOrdinaryAfterAmount: 0,
|
|
4787
4789
|
showCreditLineAfterAmount: !1
|
|
@@ -4797,7 +4799,7 @@ function _o(e, t, n) {
|
|
|
4797
4799
|
let _;
|
|
4798
4800
|
switch (m.type) {
|
|
4799
4801
|
case "Bonus":
|
|
4800
|
-
_ = v.Bonus.findIndex((
|
|
4802
|
+
_ = v.Bonus.findIndex((N) => N.productType === m.productType), _ > 0 ? n(3, v.Bonus[_].amount += m.amount, v) : v.Bonus.push({
|
|
4801
4803
|
amount: m.amount,
|
|
4802
4804
|
productType: m.productType
|
|
4803
4805
|
});
|
|
@@ -4806,27 +4808,27 @@ function _o(e, t, n) {
|
|
|
4806
4808
|
m.creditLine && v.Credit.push({
|
|
4807
4809
|
amount: m.creditLine,
|
|
4808
4810
|
productType: m.productType
|
|
4809
|
-
}), _ = v.Real.findIndex((
|
|
4811
|
+
}), _ = v.Real.findIndex((N) => N.productType === m.productType), _ > 0 ? n(3, v.Real[_].amount += m.amount, v) : v.Real.push({
|
|
4810
4812
|
amount: m.amount,
|
|
4811
4813
|
productType: m.productType
|
|
4812
4814
|
});
|
|
4813
4815
|
break;
|
|
4814
4816
|
}
|
|
4815
4817
|
}
|
|
4816
|
-
|
|
4818
|
+
Ze();
|
|
4817
4819
|
for (const [m, _] of Object.entries(v))
|
|
4818
4820
|
_.length < 1 && delete v[m];
|
|
4819
|
-
n(1,
|
|
4821
|
+
n(1, I = !1);
|
|
4820
4822
|
}).catch(() => {
|
|
4821
|
-
throw n(1,
|
|
4823
|
+
throw n(1, I = !1), new Error("Failed to fetch balance data !");
|
|
4822
4824
|
});
|
|
4823
|
-
},
|
|
4824
|
-
if (
|
|
4825
|
+
}, pe = () => {
|
|
4826
|
+
if (fe && fe.close(), o.length < 1)
|
|
4825
4827
|
return;
|
|
4826
4828
|
let b, a;
|
|
4827
4829
|
switch (y) {
|
|
4828
4830
|
case "gm16":
|
|
4829
|
-
b = new URL(`${u}/v2/player/${i}/information/updates`), a = (p) =>
|
|
4831
|
+
b = new URL(`${u}/v2/player/${i}/information/updates`), a = (p) => _t(p);
|
|
4830
4832
|
break;
|
|
4831
4833
|
case "gmcore":
|
|
4832
4834
|
b = new URL(`${u}/v1/player/${i}/balance/updates`), a = (p) => le(p);
|
|
@@ -4835,9 +4837,9 @@ function _o(e, t, n) {
|
|
|
4835
4837
|
const l = {
|
|
4836
4838
|
accept: "text/event-stream",
|
|
4837
4839
|
"X-SessionId": o
|
|
4838
|
-
}, f = new
|
|
4839
|
-
|
|
4840
|
-
},
|
|
4840
|
+
}, f = new yo.EventSourcePolyfill(b, { headers: l });
|
|
4841
|
+
fe = f, f.addEventListener("message", a);
|
|
4842
|
+
}, Oe = (b) => {
|
|
4841
4843
|
let a;
|
|
4842
4844
|
try {
|
|
4843
4845
|
a = JSON.parse(b);
|
|
@@ -4847,9 +4849,9 @@ function _o(e, t, n) {
|
|
|
4847
4849
|
}
|
|
4848
4850
|
return a;
|
|
4849
4851
|
}, le = (b) => {
|
|
4850
|
-
const a =
|
|
4852
|
+
const a = Oe(b.data);
|
|
4851
4853
|
if (!a) {
|
|
4852
|
-
|
|
4854
|
+
pe();
|
|
4853
4855
|
return;
|
|
4854
4856
|
}
|
|
4855
4857
|
let l = "0";
|
|
@@ -4858,7 +4860,7 @@ function _o(e, t, n) {
|
|
|
4858
4860
|
...p,
|
|
4859
4861
|
balanceAmount: f[p.id].afterAmount
|
|
4860
4862
|
}), l = (parseFloat(p?.balanceAmount) + parseFloat(l)).toString(), p)), n(3, v.Real = [{ amount: ee[0]?.balanceAmount }], v), n(3, v.Bonus = [{ amount: ee[1]?.balanceAmount }], v), n(3, v.Total = [{ amount: Number(l) }], v);
|
|
4861
|
-
},
|
|
4863
|
+
}, we = (b, a, l) => {
|
|
4862
4864
|
let f = null;
|
|
4863
4865
|
switch (l.walletAccountType) {
|
|
4864
4866
|
case "Ordinary":
|
|
@@ -4871,7 +4873,7 @@ function _o(e, t, n) {
|
|
|
4871
4873
|
f = l.afterAmount;
|
|
4872
4874
|
}
|
|
4873
4875
|
return f === null ? b : f;
|
|
4874
|
-
},
|
|
4876
|
+
}, Ze = () => {
|
|
4875
4877
|
switch (T) {
|
|
4876
4878
|
case "totalCashAmount":
|
|
4877
4879
|
let b = 0;
|
|
@@ -4888,68 +4890,68 @@ function _o(e, t, n) {
|
|
|
4888
4890
|
a += l.amount;
|
|
4889
4891
|
n(3, v.Total[0].amount = a, v);
|
|
4890
4892
|
}
|
|
4891
|
-
},
|
|
4892
|
-
const a =
|
|
4893
|
+
}, _t = (b) => {
|
|
4894
|
+
const a = Oe(b.data);
|
|
4893
4895
|
if (!a) {
|
|
4894
|
-
|
|
4896
|
+
pe();
|
|
4895
4897
|
return;
|
|
4896
4898
|
}
|
|
4897
|
-
if (
|
|
4899
|
+
if (Tt(a?.type) || a.type !== "BALANCE_UPDATE_V2")
|
|
4898
4900
|
return;
|
|
4899
4901
|
const l = a.body.balanceChange;
|
|
4900
4902
|
for (const [f, p] of Object.entries(l))
|
|
4901
|
-
if (T === "totalRealAmount" && f === "Real" && !K && n(3, v.Total[0].amount =
|
|
4903
|
+
if (T === "totalRealAmount" && f === "Real" && !K && n(3, v.Total[0].amount = we(v.Total[0].amount, xe, p), v), !!v[f])
|
|
4902
4904
|
for (const E of v[f]) {
|
|
4903
4905
|
if (!K) {
|
|
4904
|
-
E.amount = f === "Real" ?
|
|
4906
|
+
E.amount = f === "Real" ? we(E.amount, xe, p) : p.afterAmount;
|
|
4905
4907
|
continue;
|
|
4906
4908
|
}
|
|
4907
|
-
p.productType === E.productType && (E.amount = f === "Real" ?
|
|
4909
|
+
p.productType === E.productType && (E.amount = f === "Real" ? we(E.amount, xe[E.productType], p) : p.afterAmount);
|
|
4908
4910
|
}
|
|
4909
|
-
|
|
4910
|
-
},
|
|
4911
|
-
n(2,
|
|
4912
|
-
},
|
|
4913
|
-
|
|
4914
|
-
},
|
|
4915
|
-
switch (
|
|
4911
|
+
Ze();
|
|
4912
|
+
}, ot = () => {
|
|
4913
|
+
n(2, R = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
4914
|
+
}, Tt = (b) => b === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, Bt = () => {
|
|
4915
|
+
_e.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${_e}. Using default value ('${_e[0]}').`), n(7, T = _e[0]));
|
|
4916
|
+
}, qe = () => {
|
|
4917
|
+
switch (bo(s), Bt(), y) {
|
|
4916
4918
|
case "gmcore":
|
|
4917
4919
|
ue();
|
|
4918
4920
|
break;
|
|
4919
4921
|
case "gm16":
|
|
4920
|
-
|
|
4922
|
+
Te();
|
|
4921
4923
|
break;
|
|
4922
4924
|
default:
|
|
4923
4925
|
throw Error(`Invalid apiversion attribute: ${y}`);
|
|
4924
4926
|
}
|
|
4925
|
-
}, Le = (b) => b.data && b.data.type === "LogoutSuccessfull" &&
|
|
4926
|
-
|
|
4927
|
-
window.removeEventListener("message", Le),
|
|
4927
|
+
}, Le = (b) => b.data && b.data.type === "LogoutSuccessfull" && fe.close();
|
|
4928
|
+
hr(() => (window.addEventListener("message", Le, !1), () => {
|
|
4929
|
+
window.removeEventListener("message", Le), fe && fe.close();
|
|
4928
4930
|
}));
|
|
4929
|
-
const
|
|
4930
|
-
function
|
|
4931
|
-
|
|
4931
|
+
const Be = () => n(2, R = !0), te = () => n(2, R = !1), St = () => ot(), wt = () => n(2, R = !1);
|
|
4932
|
+
function At(b) {
|
|
4933
|
+
Dt[b ? "unshift" : "push"](() => {
|
|
4932
4934
|
w = b, n(0, w);
|
|
4933
4935
|
});
|
|
4934
4936
|
}
|
|
4935
4937
|
return e.$$set = (b) => {
|
|
4936
|
-
"userid" in b && n(8, i = b.userid), "session" in b && n(9, o = b.session), "endpoint" in b && n(10, u = b.endpoint), "lang" in b && n(11, s = b.lang), "mbsource" in b && n(12, d = b.mbsource), "clientstyling" in b && n(13, h = b.clientstyling), "clientstylingurl" in b && n(14, c = b.clientstylingurl), "translationurl" in b && n(15, g = b.translationurl), "gmversion" in b && n(16, y = b.gmversion), "displaybalanceoption" in b && n(17, x = b.displaybalanceoption), "totalcalculationmode" in b && n(7, T = b.totalcalculationmode), "currencylocale" in b && n(18,
|
|
4938
|
+
"userid" in b && n(8, i = b.userid), "session" in b && n(9, o = b.session), "endpoint" in b && n(10, u = b.endpoint), "lang" in b && n(11, s = b.lang), "mbsource" in b && n(12, d = b.mbsource), "clientstyling" in b && n(13, h = b.clientstyling), "clientstylingurl" in b && n(14, c = b.clientstylingurl), "translationurl" in b && n(15, g = b.translationurl), "gmversion" in b && n(16, y = b.gmversion), "displaybalanceoption" in b && n(17, x = b.displaybalanceoption), "totalcalculationmode" in b && n(7, T = b.totalcalculationmode), "currencylocale" in b && n(18, P = b.currencylocale), "currencydisplay" in b && n(19, j = b.currencydisplay), "maximumfractiondigits" in b && n(20, z = b.maximumfractiondigits), "minimumfractiondigits" in b && n(21, G = b.minimumfractiondigits), "customdisplayformat" in b && n(22, B = b.customdisplayformat);
|
|
4937
4939
|
}, e.$$.update = () => {
|
|
4938
4940
|
e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
4939
|
-
200448 && u && i && o && s && y && x &&
|
|
4940
|
-
67328 && u && i && o && y &&
|
|
4941
|
-
8193 && h && w &&
|
|
4942
|
-
16385 && c && w &&
|
|
4943
|
-
4097 && w &&
|
|
4944
|
-
32768 && g &&
|
|
4941
|
+
200448 && u && i && o && s && y && x && qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
4942
|
+
67328 && u && i && o && y && pe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4943
|
+
8193 && h && w && Br(w, h), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4944
|
+
16385 && c && w && Sr(w, c), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
4945
|
+
4097 && w && wr(w, `${d}.Style`), e.$$.dirty[0] & /*translationurl*/
|
|
4946
|
+
32768 && g && ze();
|
|
4945
4947
|
}, [
|
|
4946
4948
|
w,
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
+
I,
|
|
4950
|
+
R,
|
|
4949
4951
|
v,
|
|
4950
4952
|
r,
|
|
4951
|
-
rt,
|
|
4952
4953
|
it,
|
|
4954
|
+
ot,
|
|
4953
4955
|
T,
|
|
4954
4956
|
i,
|
|
4955
4957
|
o,
|
|
@@ -4961,26 +4963,26 @@ function _o(e, t, n) {
|
|
|
4961
4963
|
g,
|
|
4962
4964
|
y,
|
|
4963
4965
|
x,
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
+
P,
|
|
4967
|
+
j,
|
|
4966
4968
|
z,
|
|
4967
4969
|
G,
|
|
4968
4970
|
B,
|
|
4969
|
-
|
|
4971
|
+
Be,
|
|
4970
4972
|
te,
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4973
|
+
St,
|
|
4974
|
+
wt,
|
|
4975
|
+
At
|
|
4974
4976
|
];
|
|
4975
4977
|
}
|
|
4976
|
-
class
|
|
4978
|
+
class Bo extends _r {
|
|
4977
4979
|
constructor(t) {
|
|
4978
|
-
super(),
|
|
4980
|
+
super(), Er(
|
|
4979
4981
|
this,
|
|
4980
4982
|
t,
|
|
4983
|
+
To,
|
|
4981
4984
|
_o,
|
|
4982
|
-
|
|
4983
|
-
Bn,
|
|
4985
|
+
Sn,
|
|
4984
4986
|
{
|
|
4985
4987
|
userid: 8,
|
|
4986
4988
|
session: 9,
|
|
@@ -4999,7 +5001,7 @@ class To extends xr {
|
|
|
4999
5001
|
minimumfractiondigits: 21,
|
|
5000
5002
|
customdisplayformat: 22
|
|
5001
5003
|
},
|
|
5002
|
-
|
|
5004
|
+
vo,
|
|
5003
5005
|
[-1, -1]
|
|
5004
5006
|
);
|
|
5005
5007
|
}
|
|
@@ -5100,7 +5102,7 @@ class To extends xr {
|
|
|
5100
5102
|
this.$$set({ customdisplayformat: t }), X();
|
|
5101
5103
|
}
|
|
5102
5104
|
}
|
|
5103
|
-
|
|
5105
|
+
xr(Bo, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
|
|
5104
5106
|
export {
|
|
5105
|
-
|
|
5107
|
+
Bo as P
|
|
5106
5108
|
};
|