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