@everymatrix/player-account-balance-modal-nd 1.55.0 → 1.56.0
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/PlayerAccountBalanceModalNd-B0yfSLU3.cjs +15 -0
- package/components/{PlayerAccountBalanceModalNd-EF5v83ww.js → PlayerAccountBalanceModalNd-Bmecg9Hv.js} +1461 -1444
- package/components/{PlayerAccountBalanceModalNd-C2GEz49a.js → PlayerAccountBalanceModalNd-DhxTyQKU.js} +1393 -1376
- package/es2015/player-account-balance-modal-nd.cjs +1 -1
- package/es2015/player-account-balance-modal-nd.js +1 -1
- package/esnext/player-account-balance-modal-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModalNd-BZ43yp7H.cjs +0 -15
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var Rt = (e, t, n) => t in e ?
|
|
1
|
+
var cr = Object.defineProperty, hr = Object.defineProperties;
|
|
2
|
+
var fr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var sn = Object.getOwnPropertySymbols;
|
|
4
|
+
var dr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Rt = (e, t, n) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Lt = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
dr.call(t, n) && Rt(e, n, t[n]);
|
|
8
|
+
if (sn)
|
|
9
|
+
for (var n of sn(t))
|
|
10
|
+
pr.call(t, n) && Rt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, Mt = (e, t) =>
|
|
12
|
+
}, Mt = (e, t) => hr(e, fr(t));
|
|
13
13
|
var se = (e, t, n) => Rt(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
14
|
var Nt = (e, t, n) => new Promise((r, i) => {
|
|
15
|
-
var
|
|
15
|
+
var o = (c) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
s(n.next(c));
|
|
18
18
|
} catch (u) {
|
|
19
19
|
i(u);
|
|
20
20
|
}
|
|
21
21
|
}, l = (c) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
s(n.throw(c));
|
|
24
24
|
} catch (u) {
|
|
25
25
|
i(u);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, s = (c) => c.done ? r(c.value) : Promise.resolve(c.value).then(o, l);
|
|
28
|
+
s((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
30
|
function le() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Ln(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ln() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function Ve(e) {
|
|
39
|
+
e.forEach(Ln);
|
|
40
40
|
}
|
|
41
41
|
function tn(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Mn(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function mr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Nn(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const r of t)
|
|
53
53
|
r(void 0);
|
|
@@ -56,20 +56,20 @@ function Pn(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 gr(e, t, n) {
|
|
60
|
+
e.$$.on_destroy.push(Nn(t, n));
|
|
61
61
|
}
|
|
62
62
|
function C(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const r =
|
|
65
|
+
function br(e, t, n) {
|
|
66
|
+
const r = yr(e);
|
|
67
67
|
if (!r.getElementById(t)) {
|
|
68
|
-
const i =
|
|
69
|
-
i.id = t, i.textContent = n,
|
|
68
|
+
const i = k("style");
|
|
69
|
+
i.id = t, i.textContent = n, vr(r, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function yr(e) {
|
|
73
73
|
if (!e) return document;
|
|
74
74
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
75
75
|
return t && /** @type {ShadowRoot} */
|
|
@@ -78,7 +78,7 @@ function Er(e) {
|
|
|
78
78
|
t
|
|
79
79
|
) : e.ownerDocument;
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function vr(e, t) {
|
|
82
82
|
return C(
|
|
83
83
|
/** @type {Document} */
|
|
84
84
|
e.head || e,
|
|
@@ -88,42 +88,42 @@ function xr(e, t) {
|
|
|
88
88
|
function ge(e, t, n) {
|
|
89
89
|
e.insertBefore(t, n || null);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function de(e) {
|
|
92
92
|
e.parentNode && e.parentNode.removeChild(e);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function In(e, t) {
|
|
95
95
|
for (let n = 0; n < e.length; n += 1)
|
|
96
96
|
e[n] && e[n].d(t);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function k(e) {
|
|
99
99
|
return document.createElement(e);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function un(e) {
|
|
102
102
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function fe(e) {
|
|
105
105
|
return document.createTextNode(e);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
return
|
|
107
|
+
function pe() {
|
|
108
|
+
return fe(" ");
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
return
|
|
110
|
+
function Er() {
|
|
111
|
+
return fe("");
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function mt(e, t, n, r) {
|
|
114
114
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function N(e, t, n) {
|
|
117
117
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function xr(e) {
|
|
120
120
|
return Array.from(e.childNodes);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function xe(e, t) {
|
|
123
123
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
124
124
|
t);
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function _r(e) {
|
|
127
127
|
const t = {};
|
|
128
128
|
return e.childNodes.forEach(
|
|
129
129
|
/** @param {Element} node */
|
|
@@ -132,96 +132,96 @@ function Tr(e) {
|
|
|
132
132
|
}
|
|
133
133
|
), t;
|
|
134
134
|
}
|
|
135
|
-
let
|
|
136
|
-
function
|
|
137
|
-
|
|
135
|
+
let tt;
|
|
136
|
+
function et(e) {
|
|
137
|
+
tt = e;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
if (!
|
|
141
|
-
return
|
|
139
|
+
function Br() {
|
|
140
|
+
if (!tt) throw new Error("Function called outside component initialization");
|
|
141
|
+
return tt;
|
|
142
142
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
143
|
+
function Tr(e) {
|
|
144
|
+
Br().$$.on_mount.push(e);
|
|
145
145
|
}
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
const
|
|
146
|
+
const Ue = [], jt = [];
|
|
147
|
+
let Fe = [];
|
|
148
|
+
const cn = [], wr = /* @__PURE__ */ Promise.resolve();
|
|
149
149
|
let kt = !1;
|
|
150
|
-
function
|
|
151
|
-
kt || (kt = !0,
|
|
150
|
+
function Sr() {
|
|
151
|
+
kt || (kt = !0, wr.then(J));
|
|
152
152
|
}
|
|
153
153
|
function Vt(e) {
|
|
154
|
-
|
|
154
|
+
Fe.push(e);
|
|
155
155
|
}
|
|
156
156
|
const It = /* @__PURE__ */ new Set();
|
|
157
|
-
let
|
|
158
|
-
function
|
|
159
|
-
if (
|
|
157
|
+
let Pe = 0;
|
|
158
|
+
function J() {
|
|
159
|
+
if (Pe !== 0)
|
|
160
160
|
return;
|
|
161
|
-
const e =
|
|
161
|
+
const e = tt;
|
|
162
162
|
do {
|
|
163
163
|
try {
|
|
164
|
-
for (;
|
|
165
|
-
const t = Pe
|
|
166
|
-
|
|
164
|
+
for (; Pe < Ue.length; ) {
|
|
165
|
+
const t = Ue[Pe];
|
|
166
|
+
Pe++, et(t), Ar(t.$$);
|
|
167
167
|
}
|
|
168
168
|
} catch (t) {
|
|
169
|
-
throw
|
|
169
|
+
throw Ue.length = 0, Pe = 0, t;
|
|
170
170
|
}
|
|
171
|
-
for (
|
|
172
|
-
for (let t = 0; t <
|
|
173
|
-
const n =
|
|
171
|
+
for (et(null), Ue.length = 0, Pe = 0; jt.length; ) jt.pop()();
|
|
172
|
+
for (let t = 0; t < Fe.length; t += 1) {
|
|
173
|
+
const n = Fe[t];
|
|
174
174
|
It.has(n) || (It.add(n), n());
|
|
175
175
|
}
|
|
176
|
-
|
|
177
|
-
} while (
|
|
178
|
-
for (;
|
|
179
|
-
|
|
180
|
-
kt = !1, It.clear(),
|
|
176
|
+
Fe.length = 0;
|
|
177
|
+
} while (Ue.length);
|
|
178
|
+
for (; cn.length; )
|
|
179
|
+
cn.pop()();
|
|
180
|
+
kt = !1, It.clear(), et(e);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Ar(e) {
|
|
183
183
|
if (e.fragment !== null) {
|
|
184
|
-
e.update(),
|
|
184
|
+
e.update(), Ve(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(Vt);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Cr(e) {
|
|
190
190
|
const t = [], n = [];
|
|
191
|
-
|
|
191
|
+
Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
|
|
192
192
|
}
|
|
193
|
-
const
|
|
194
|
-
function
|
|
195
|
-
e && e.i && (
|
|
193
|
+
const Hr = /* @__PURE__ */ new Set();
|
|
194
|
+
function Or(e, t) {
|
|
195
|
+
e && e.i && (Hr.delete(e), e.i(t));
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function gt(e) {
|
|
198
198
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Rr(e, t, n) {
|
|
201
201
|
const { fragment: r, after_update: i } = e.$$;
|
|
202
202
|
r && r.m(t, n), Vt(() => {
|
|
203
|
-
const
|
|
204
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
203
|
+
const o = e.$$.on_mount.map(Ln).filter(tn);
|
|
204
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ve(o), e.$$.on_mount = [];
|
|
205
205
|
}), i.forEach(Vt);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Lr(e, t) {
|
|
208
208
|
const n = e.$$;
|
|
209
|
-
n.fragment !== null && (
|
|
209
|
+
n.fragment !== null && (Cr(n.after_update), Ve(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 Mr(e, t) {
|
|
212
|
+
e.$$.dirty[0] === -1 && (Ue.push(e), Sr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
const c =
|
|
216
|
-
|
|
214
|
+
function Nr(e, t, n, r, i, o, l = null, s = [-1]) {
|
|
215
|
+
const c = tt;
|
|
216
|
+
et(e);
|
|
217
217
|
const u = e.$$ = {
|
|
218
218
|
fragment: null,
|
|
219
219
|
ctx: [],
|
|
220
220
|
// state
|
|
221
|
-
props:
|
|
221
|
+
props: o,
|
|
222
222
|
update: le,
|
|
223
223
|
not_equal: i,
|
|
224
|
-
bound:
|
|
224
|
+
bound: ln(),
|
|
225
225
|
// lifecycle
|
|
226
226
|
on_mount: [],
|
|
227
227
|
on_destroy: [],
|
|
@@ -230,28 +230,28 @@ function Pr(e, t, n, r, i, a, l = null, o = [-1]) {
|
|
|
230
230
|
after_update: [],
|
|
231
231
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
232
232
|
// everything else
|
|
233
|
-
callbacks:
|
|
234
|
-
dirty:
|
|
233
|
+
callbacks: ln(),
|
|
234
|
+
dirty: s,
|
|
235
235
|
skip_bound: !1,
|
|
236
236
|
root: t.target || c.$$.root
|
|
237
237
|
};
|
|
238
238
|
l && l(u.root);
|
|
239
239
|
let d = !1;
|
|
240
|
-
if (u.ctx = n ? n(e, t.props || {}, (
|
|
241
|
-
const
|
|
242
|
-
return u.ctx && i(u.ctx[
|
|
243
|
-
}) : [], u.update(), d = !0,
|
|
240
|
+
if (u.ctx = n ? n(e, t.props || {}, (g, b, ..._) => {
|
|
241
|
+
const B = _.length ? _[0] : b;
|
|
242
|
+
return u.ctx && i(u.ctx[g], u.ctx[g] = B) && (!u.skip_bound && u.bound[g] && u.bound[g](B), d && Mr(e, g)), b;
|
|
243
|
+
}) : [], u.update(), d = !0, Ve(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
244
244
|
if (t.hydrate) {
|
|
245
|
-
const
|
|
246
|
-
u.fragment && u.fragment.l(
|
|
245
|
+
const g = xr(t.target);
|
|
246
|
+
u.fragment && u.fragment.l(g), g.forEach(de);
|
|
247
247
|
} else
|
|
248
248
|
u.fragment && u.fragment.c();
|
|
249
|
-
t.intro &&
|
|
249
|
+
t.intro && Or(e.$$.fragment), Rr(e, t.target, t.anchor), J();
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
et(c);
|
|
252
252
|
}
|
|
253
|
-
let
|
|
254
|
-
typeof HTMLElement == "function" && (
|
|
253
|
+
let Pn;
|
|
254
|
+
typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
255
255
|
constructor(t, n, r) {
|
|
256
256
|
super();
|
|
257
257
|
/** The Svelte component constructor */
|
|
@@ -290,12 +290,12 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
|
|
|
290
290
|
connectedCallback() {
|
|
291
291
|
return Nt(this, null, function* () {
|
|
292
292
|
if (this.$$cn = !0, !this.$$c) {
|
|
293
|
-
let t = function(
|
|
293
|
+
let t = function(o) {
|
|
294
294
|
return () => {
|
|
295
295
|
let l;
|
|
296
296
|
return {
|
|
297
297
|
c: function() {
|
|
298
|
-
l =
|
|
298
|
+
l = k("slot"), o !== "default" && N(l, "name", o);
|
|
299
299
|
},
|
|
300
300
|
/**
|
|
301
301
|
* @param {HTMLElement} target
|
|
@@ -305,22 +305,22 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
|
|
|
305
305
|
ge(u, l, d);
|
|
306
306
|
},
|
|
307
307
|
d: function(u) {
|
|
308
|
-
u &&
|
|
308
|
+
u && de(l);
|
|
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 =
|
|
316
|
-
for (const
|
|
317
|
-
|
|
318
|
-
for (const
|
|
319
|
-
const l = this.$$g_p(
|
|
320
|
-
l in this.$$d || (this.$$d[l] =
|
|
315
|
+
const n = {}, r = _r(this);
|
|
316
|
+
for (const o of this.$$s)
|
|
317
|
+
o in r && (n[o] = [t(o)]);
|
|
318
|
+
for (const o of this.attributes) {
|
|
319
|
+
const l = this.$$g_p(o.name);
|
|
320
|
+
l in this.$$d || (this.$$d[l] = ht(l, o.value, this.$$p_d, "toProp"));
|
|
321
321
|
}
|
|
322
|
-
for (const
|
|
323
|
-
!(
|
|
322
|
+
for (const o in this.$$p_d)
|
|
323
|
+
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
324
324
|
this.$$c = new this.$$ctor({
|
|
325
325
|
target: this.shadowRoot || this,
|
|
326
326
|
props: Mt(Lt({}, this.$$d), {
|
|
@@ -332,23 +332,23 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
|
|
|
332
332
|
});
|
|
333
333
|
const i = () => {
|
|
334
334
|
this.$$r = !0;
|
|
335
|
-
for (const
|
|
336
|
-
if (this.$$d[
|
|
337
|
-
const l =
|
|
338
|
-
|
|
339
|
-
this.$$d[
|
|
335
|
+
for (const o in this.$$p_d)
|
|
336
|
+
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
337
|
+
const l = ht(
|
|
338
|
+
o,
|
|
339
|
+
this.$$d[o],
|
|
340
340
|
this.$$p_d,
|
|
341
341
|
"toAttribute"
|
|
342
342
|
);
|
|
343
|
-
l == null ? this.removeAttribute(this.$$p_d[
|
|
343
|
+
l == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, l);
|
|
344
344
|
}
|
|
345
345
|
this.$$r = !1;
|
|
346
346
|
};
|
|
347
347
|
this.$$c.$$.after_update.push(i), i();
|
|
348
|
-
for (const
|
|
349
|
-
for (const l of this.$$l[
|
|
350
|
-
const
|
|
351
|
-
this.$$l_u.set(l,
|
|
348
|
+
for (const o in this.$$l)
|
|
349
|
+
for (const l of this.$$l[o]) {
|
|
350
|
+
const s = this.$$c.$on(o, l);
|
|
351
|
+
this.$$l_u.set(l, s);
|
|
352
352
|
}
|
|
353
353
|
this.$$l = {};
|
|
354
354
|
}
|
|
@@ -358,7 +358,7 @@ typeof HTMLElement == "function" && (Un = 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] = ht(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,9 +371,9 @@ typeof HTMLElement == "function" && (Un = class extends HTMLElement {
|
|
|
371
371
|
) || t;
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
|
-
function
|
|
375
|
-
var
|
|
376
|
-
const i = (
|
|
374
|
+
function ht(e, t, n, r) {
|
|
375
|
+
var o;
|
|
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])
|
|
378
378
|
return t;
|
|
379
379
|
if (r === "toAttribute")
|
|
@@ -401,38 +401,38 @@ function ct(e, t, n, r) {
|
|
|
401
401
|
return t;
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
let l = class extends
|
|
404
|
+
function Ir(e, t, n, r, i, o) {
|
|
405
|
+
let l = class extends Pn {
|
|
406
406
|
constructor() {
|
|
407
407
|
super(e, n, i), this.$$p_d = t;
|
|
408
408
|
}
|
|
409
409
|
static get observedAttributes() {
|
|
410
410
|
return Object.keys(t).map(
|
|
411
|
-
(
|
|
411
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
412
412
|
);
|
|
413
413
|
}
|
|
414
414
|
};
|
|
415
|
-
return Object.keys(t).forEach((
|
|
416
|
-
Object.defineProperty(l.prototype,
|
|
415
|
+
return Object.keys(t).forEach((s) => {
|
|
416
|
+
Object.defineProperty(l.prototype, s, {
|
|
417
417
|
get() {
|
|
418
|
-
return this.$$c &&
|
|
418
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
419
419
|
},
|
|
420
420
|
set(c) {
|
|
421
421
|
var u;
|
|
422
|
-
c =
|
|
422
|
+
c = ht(s, c, t), this.$$d[s] = c, (u = this.$$c) == null || u.$set({ [s]: c });
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
|
-
}), r.forEach((
|
|
426
|
-
Object.defineProperty(l.prototype,
|
|
425
|
+
}), r.forEach((s) => {
|
|
426
|
+
Object.defineProperty(l.prototype, s, {
|
|
427
427
|
get() {
|
|
428
428
|
var c;
|
|
429
|
-
return (c = this.$$c) == null ? void 0 : c[
|
|
429
|
+
return (c = this.$$c) == null ? void 0 : c[s];
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
432
|
}), e.element = /** @type {any} */
|
|
433
433
|
l, l;
|
|
434
434
|
}
|
|
435
|
-
class
|
|
435
|
+
class Pr {
|
|
436
436
|
constructor() {
|
|
437
437
|
/**
|
|
438
438
|
* ### PRIVATE API
|
|
@@ -453,7 +453,7 @@ class Ur {
|
|
|
453
453
|
}
|
|
454
454
|
/** @returns {void} */
|
|
455
455
|
$destroy() {
|
|
456
|
-
|
|
456
|
+
Lr(this, 1), this.$destroy = le;
|
|
457
457
|
}
|
|
458
458
|
/**
|
|
459
459
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -475,149 +475,172 @@ class Ur {
|
|
|
475
475
|
* @returns {void}
|
|
476
476
|
*/
|
|
477
477
|
$set(t) {
|
|
478
|
-
this.$$set && !
|
|
478
|
+
this.$$set && !mr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
const Dr = "4";
|
|
482
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Dr);
|
|
483
|
+
function Ur(e, t) {
|
|
484
|
+
if (e) {
|
|
485
|
+
const n = document.createElement("style");
|
|
486
|
+
n.innerHTML = t, e.appendChild(n);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
function Fr(e, t) {
|
|
490
|
+
const n = new URL(t);
|
|
491
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
492
|
+
const i = document.createElement("style");
|
|
493
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
494
|
+
}).catch((r) => {
|
|
495
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
function Gr(e, t, n) {
|
|
499
|
+
if (window.emMessageBus) {
|
|
500
|
+
const r = document.createElement("style");
|
|
501
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
502
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
503
|
+
});
|
|
479
504
|
}
|
|
480
505
|
}
|
|
481
|
-
const
|
|
482
|
-
|
|
483
|
-
const Ie = [];
|
|
484
|
-
function Gr(e, t) {
|
|
506
|
+
const De = [];
|
|
507
|
+
function $r(e, t) {
|
|
485
508
|
return {
|
|
486
|
-
subscribe:
|
|
509
|
+
subscribe: vt(e, t).subscribe
|
|
487
510
|
};
|
|
488
511
|
}
|
|
489
|
-
function
|
|
512
|
+
function vt(e, t = le) {
|
|
490
513
|
let n;
|
|
491
514
|
const r = /* @__PURE__ */ new Set();
|
|
492
|
-
function i(
|
|
493
|
-
if (
|
|
494
|
-
const c = !
|
|
515
|
+
function i(s) {
|
|
516
|
+
if (Mn(e, s) && (e = s, n)) {
|
|
517
|
+
const c = !De.length;
|
|
495
518
|
for (const u of r)
|
|
496
|
-
u[1](),
|
|
519
|
+
u[1](), De.push(u, e);
|
|
497
520
|
if (c) {
|
|
498
|
-
for (let u = 0; u <
|
|
499
|
-
|
|
500
|
-
|
|
521
|
+
for (let u = 0; u < De.length; u += 2)
|
|
522
|
+
De[u][0](De[u + 1]);
|
|
523
|
+
De.length = 0;
|
|
501
524
|
}
|
|
502
525
|
}
|
|
503
526
|
}
|
|
504
|
-
function
|
|
505
|
-
i(
|
|
527
|
+
function o(s) {
|
|
528
|
+
i(s(e));
|
|
506
529
|
}
|
|
507
|
-
function l(
|
|
508
|
-
const u = [
|
|
509
|
-
return r.add(u), r.size === 1 && (n = t(i,
|
|
530
|
+
function l(s, c = le) {
|
|
531
|
+
const u = [s, c];
|
|
532
|
+
return r.add(u), r.size === 1 && (n = t(i, o) || le), s(e), () => {
|
|
510
533
|
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
511
534
|
};
|
|
512
535
|
}
|
|
513
|
-
return { set: i, update:
|
|
536
|
+
return { set: i, update: o, subscribe: l };
|
|
514
537
|
}
|
|
515
|
-
function
|
|
538
|
+
function Xe(e, t, n) {
|
|
516
539
|
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
517
540
|
if (!i.every(Boolean))
|
|
518
541
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
519
|
-
const
|
|
520
|
-
return
|
|
542
|
+
const o = t.length < 2;
|
|
543
|
+
return $r(n, (l, s) => {
|
|
521
544
|
let c = !1;
|
|
522
545
|
const u = [];
|
|
523
|
-
let d = 0,
|
|
524
|
-
const
|
|
546
|
+
let d = 0, g = le;
|
|
547
|
+
const b = () => {
|
|
525
548
|
if (d)
|
|
526
549
|
return;
|
|
527
|
-
|
|
528
|
-
const
|
|
529
|
-
|
|
530
|
-
},
|
|
531
|
-
(
|
|
532
|
-
|
|
533
|
-
(
|
|
534
|
-
u[
|
|
550
|
+
g();
|
|
551
|
+
const B = t(r ? u[0] : u, l, s);
|
|
552
|
+
o ? l(B) : g = tn(B) ? B : le;
|
|
553
|
+
}, _ = i.map(
|
|
554
|
+
(B, T) => Nn(
|
|
555
|
+
B,
|
|
556
|
+
(x) => {
|
|
557
|
+
u[T] = x, d &= ~(1 << T), c && b();
|
|
535
558
|
},
|
|
536
559
|
() => {
|
|
537
|
-
d |= 1 <<
|
|
560
|
+
d |= 1 << T;
|
|
538
561
|
}
|
|
539
562
|
)
|
|
540
563
|
);
|
|
541
|
-
return c = !0,
|
|
542
|
-
|
|
564
|
+
return c = !0, b(), function() {
|
|
565
|
+
Ve(_), g(), c = !1;
|
|
543
566
|
};
|
|
544
567
|
});
|
|
545
568
|
}
|
|
546
|
-
var
|
|
547
|
-
function
|
|
569
|
+
var jr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
570
|
+
function kr(e) {
|
|
548
571
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
549
572
|
}
|
|
550
|
-
var
|
|
551
|
-
return
|
|
573
|
+
var Vr = function(t) {
|
|
574
|
+
return Xr(t) && !zr(t);
|
|
552
575
|
};
|
|
553
|
-
function
|
|
576
|
+
function Xr(e) {
|
|
554
577
|
return !!e && typeof e == "object";
|
|
555
578
|
}
|
|
556
|
-
function
|
|
579
|
+
function zr(e) {
|
|
557
580
|
var t = Object.prototype.toString.call(e);
|
|
558
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
559
|
-
}
|
|
560
|
-
var zr = typeof Symbol == "function" && Symbol.for, Wr = zr ? Symbol.for("react.element") : 60103;
|
|
561
|
-
function Zr(e) {
|
|
562
|
-
return e.$$typeof === Wr;
|
|
581
|
+
return t === "[object RegExp]" || t === "[object Date]" || qr(e);
|
|
563
582
|
}
|
|
583
|
+
var Wr = typeof Symbol == "function" && Symbol.for, Zr = Wr ? Symbol.for("react.element") : 60103;
|
|
564
584
|
function qr(e) {
|
|
585
|
+
return e.$$typeof === Zr;
|
|
586
|
+
}
|
|
587
|
+
function Qr(e) {
|
|
565
588
|
return Array.isArray(e) ? [] : {};
|
|
566
589
|
}
|
|
567
|
-
function
|
|
568
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
590
|
+
function nt(e, t) {
|
|
591
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ge(Qr(e), e, t) : e;
|
|
569
592
|
}
|
|
570
|
-
function
|
|
593
|
+
function Jr(e, t, n) {
|
|
571
594
|
return e.concat(t).map(function(r) {
|
|
572
|
-
return
|
|
595
|
+
return nt(r, n);
|
|
573
596
|
});
|
|
574
597
|
}
|
|
575
|
-
function
|
|
598
|
+
function Yr(e, t) {
|
|
576
599
|
if (!t.customMerge)
|
|
577
|
-
return
|
|
600
|
+
return Ge;
|
|
578
601
|
var n = t.customMerge(e);
|
|
579
|
-
return typeof n == "function" ? n :
|
|
602
|
+
return typeof n == "function" ? n : Ge;
|
|
580
603
|
}
|
|
581
|
-
function
|
|
604
|
+
function Kr(e) {
|
|
582
605
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
583
606
|
return Object.propertyIsEnumerable.call(e, t);
|
|
584
607
|
}) : [];
|
|
585
608
|
}
|
|
586
|
-
function
|
|
587
|
-
return Object.keys(e).concat(
|
|
609
|
+
function hn(e) {
|
|
610
|
+
return Object.keys(e).concat(Kr(e));
|
|
588
611
|
}
|
|
589
|
-
function
|
|
612
|
+
function Dn(e, t) {
|
|
590
613
|
try {
|
|
591
614
|
return t in e;
|
|
592
615
|
} catch (n) {
|
|
593
616
|
return !1;
|
|
594
617
|
}
|
|
595
618
|
}
|
|
596
|
-
function
|
|
597
|
-
return
|
|
619
|
+
function ei(e, t) {
|
|
620
|
+
return Dn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
598
621
|
}
|
|
599
|
-
function
|
|
622
|
+
function ti(e, t, n) {
|
|
600
623
|
var r = {};
|
|
601
|
-
return n.isMergeableObject(e) &&
|
|
602
|
-
r[i] =
|
|
603
|
-
}),
|
|
604
|
-
|
|
624
|
+
return n.isMergeableObject(e) && hn(e).forEach(function(i) {
|
|
625
|
+
r[i] = nt(e[i], n);
|
|
626
|
+
}), hn(t).forEach(function(i) {
|
|
627
|
+
ei(e, i) || (Dn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Yr(i, n)(e[i], t[i], n) : r[i] = nt(t[i], n));
|
|
605
628
|
}), r;
|
|
606
629
|
}
|
|
607
|
-
function
|
|
608
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
609
|
-
var r = Array.isArray(t), i = Array.isArray(e),
|
|
610
|
-
return
|
|
630
|
+
function Ge(e, t, n) {
|
|
631
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Jr, n.isMergeableObject = n.isMergeableObject || Vr, n.cloneUnlessOtherwiseSpecified = nt;
|
|
632
|
+
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
633
|
+
return o ? r ? n.arrayMerge(e, t, n) : ti(e, t, n) : nt(t, n);
|
|
611
634
|
}
|
|
612
|
-
|
|
635
|
+
Ge.all = function(t, n) {
|
|
613
636
|
if (!Array.isArray(t))
|
|
614
637
|
throw new Error("first argument should be an array");
|
|
615
638
|
return t.reduce(function(r, i) {
|
|
616
|
-
return
|
|
639
|
+
return Ge(r, i, n);
|
|
617
640
|
}, {});
|
|
618
641
|
};
|
|
619
|
-
var
|
|
620
|
-
const
|
|
642
|
+
var ni = Ge, ri = ni;
|
|
643
|
+
const ii = /* @__PURE__ */ kr(ri);
|
|
621
644
|
var Xt = function(e, t) {
|
|
622
645
|
return Xt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
623
646
|
n.__proto__ = r;
|
|
@@ -625,7 +648,7 @@ var Xt = function(e, t) {
|
|
|
625
648
|
for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
626
649
|
}, Xt(e, t);
|
|
627
650
|
};
|
|
628
|
-
function
|
|
651
|
+
function Et(e, t) {
|
|
629
652
|
if (typeof t != "function" && t !== null)
|
|
630
653
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
631
654
|
Xt(e, t);
|
|
@@ -638,12 +661,12 @@ var I = function() {
|
|
|
638
661
|
return I = Object.assign || function(t) {
|
|
639
662
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
640
663
|
n = arguments[r];
|
|
641
|
-
for (var
|
|
664
|
+
for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
642
665
|
}
|
|
643
666
|
return t;
|
|
644
667
|
}, I.apply(this, arguments);
|
|
645
668
|
};
|
|
646
|
-
function
|
|
669
|
+
function oi(e, t) {
|
|
647
670
|
var n = {};
|
|
648
671
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
649
672
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -652,12 +675,12 @@ function ii(e, t) {
|
|
|
652
675
|
return n;
|
|
653
676
|
}
|
|
654
677
|
function Pt(e, t, n) {
|
|
655
|
-
if (n || arguments.length === 2) for (var r = 0, i = t.length,
|
|
656
|
-
(
|
|
657
|
-
return e.concat(
|
|
678
|
+
if (n || arguments.length === 2) for (var r = 0, i = t.length, o; r < i; r++)
|
|
679
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
680
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
658
681
|
}
|
|
659
682
|
function Dt(e, t) {
|
|
660
|
-
var n = t && t.cache ? t.cache :
|
|
683
|
+
var n = t && t.cache ? t.cache : fi, r = t && t.serializer ? t.serializer : ci, i = t && t.strategy ? t.strategy : li;
|
|
661
684
|
return i(e, {
|
|
662
685
|
cache: n,
|
|
663
686
|
serializer: r
|
|
@@ -666,95 +689,93 @@ function Dt(e, t) {
|
|
|
666
689
|
function ai(e) {
|
|
667
690
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
668
691
|
}
|
|
669
|
-
function
|
|
670
|
-
var i = ai(r) ? r : n(r),
|
|
671
|
-
return typeof
|
|
692
|
+
function si(e, t, n, r) {
|
|
693
|
+
var i = ai(r) ? r : n(r), o = t.get(i);
|
|
694
|
+
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
672
695
|
}
|
|
673
|
-
function
|
|
674
|
-
var r = Array.prototype.slice.call(arguments, 3), i = n(r),
|
|
675
|
-
return typeof
|
|
696
|
+
function Un(e, t, n) {
|
|
697
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
698
|
+
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
676
699
|
}
|
|
677
|
-
function
|
|
700
|
+
function Fn(e, t, n, r, i) {
|
|
678
701
|
return n.bind(t, e, r, i);
|
|
679
702
|
}
|
|
680
|
-
function oi(e, t) {
|
|
681
|
-
var n = e.length === 1 ? Gn : $n;
|
|
682
|
-
return nn(e, this, n, t.cache.create(), t.serializer);
|
|
683
|
-
}
|
|
684
|
-
function si(e, t) {
|
|
685
|
-
return nn(e, this, $n, t.cache.create(), t.serializer);
|
|
686
|
-
}
|
|
687
703
|
function li(e, t) {
|
|
688
|
-
|
|
704
|
+
var n = e.length === 1 ? si : Un;
|
|
705
|
+
return Fn(e, this, n, t.cache.create(), t.serializer);
|
|
689
706
|
}
|
|
690
|
-
|
|
691
|
-
return
|
|
692
|
-
};
|
|
693
|
-
function rn() {
|
|
694
|
-
this.cache = /* @__PURE__ */ Object.create(null);
|
|
707
|
+
function ui(e, t) {
|
|
708
|
+
return Fn(e, this, Un, t.cache.create(), t.serializer);
|
|
695
709
|
}
|
|
696
|
-
|
|
697
|
-
return
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
710
|
+
var ci = function() {
|
|
711
|
+
return JSON.stringify(arguments);
|
|
712
|
+
}, hi = (
|
|
713
|
+
/** @class */
|
|
714
|
+
function() {
|
|
715
|
+
function e() {
|
|
716
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
717
|
+
}
|
|
718
|
+
return e.prototype.get = function(t) {
|
|
719
|
+
return this.cache[t];
|
|
720
|
+
}, e.prototype.set = function(t, n) {
|
|
721
|
+
this.cache[t] = n;
|
|
722
|
+
}, e;
|
|
723
|
+
}()
|
|
724
|
+
), fi = {
|
|
703
725
|
create: function() {
|
|
704
|
-
return new
|
|
726
|
+
return new hi();
|
|
705
727
|
}
|
|
706
728
|
}, Ut = {
|
|
707
|
-
variadic:
|
|
708
|
-
|
|
709
|
-
}, R;
|
|
729
|
+
variadic: ui
|
|
730
|
+
}, O;
|
|
710
731
|
(function(e) {
|
|
711
732
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
712
|
-
})(
|
|
713
|
-
var
|
|
733
|
+
})(O || (O = {}));
|
|
734
|
+
var j;
|
|
714
735
|
(function(e) {
|
|
715
736
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
716
|
-
})(
|
|
717
|
-
var
|
|
737
|
+
})(j || (j = {}));
|
|
738
|
+
var $e;
|
|
718
739
|
(function(e) {
|
|
719
740
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
720
|
-
})(
|
|
721
|
-
function
|
|
722
|
-
return e.type ===
|
|
741
|
+
})($e || ($e = {}));
|
|
742
|
+
function fn(e) {
|
|
743
|
+
return e.type === j.literal;
|
|
723
744
|
}
|
|
724
|
-
function
|
|
725
|
-
return e.type ===
|
|
745
|
+
function di(e) {
|
|
746
|
+
return e.type === j.argument;
|
|
747
|
+
}
|
|
748
|
+
function Gn(e) {
|
|
749
|
+
return e.type === j.number;
|
|
750
|
+
}
|
|
751
|
+
function $n(e) {
|
|
752
|
+
return e.type === j.date;
|
|
726
753
|
}
|
|
727
754
|
function jn(e) {
|
|
728
|
-
return e.type ===
|
|
755
|
+
return e.type === j.time;
|
|
729
756
|
}
|
|
730
757
|
function kn(e) {
|
|
731
|
-
return e.type ===
|
|
758
|
+
return e.type === j.select;
|
|
732
759
|
}
|
|
733
760
|
function Vn(e) {
|
|
734
|
-
return e.type ===
|
|
761
|
+
return e.type === j.plural;
|
|
762
|
+
}
|
|
763
|
+
function pi(e) {
|
|
764
|
+
return e.type === j.pound;
|
|
735
765
|
}
|
|
736
766
|
function Xn(e) {
|
|
737
|
-
return e.type ===
|
|
767
|
+
return e.type === j.tag;
|
|
738
768
|
}
|
|
739
769
|
function zn(e) {
|
|
740
|
-
return e.type ===
|
|
741
|
-
}
|
|
742
|
-
function fi(e) {
|
|
743
|
-
return e.type === G.pound;
|
|
744
|
-
}
|
|
745
|
-
function Wn(e) {
|
|
746
|
-
return e.type === G.tag;
|
|
747
|
-
}
|
|
748
|
-
function Zn(e) {
|
|
749
|
-
return !!(e && typeof e == "object" && e.type === Fe.number);
|
|
770
|
+
return !!(e && typeof e == "object" && e.type === $e.number);
|
|
750
771
|
}
|
|
751
772
|
function zt(e) {
|
|
752
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
773
|
+
return !!(e && typeof e == "object" && e.type === $e.dateTime);
|
|
753
774
|
}
|
|
754
|
-
var
|
|
755
|
-
function
|
|
775
|
+
var Wn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, mi = /(?:[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;
|
|
776
|
+
function gi(e) {
|
|
756
777
|
var t = {};
|
|
757
|
-
return e.replace(
|
|
778
|
+
return e.replace(mi, function(n) {
|
|
758
779
|
var r = n.length;
|
|
759
780
|
switch (n[0]) {
|
|
760
781
|
case "G":
|
|
@@ -843,36 +864,36 @@ function pi(e) {
|
|
|
843
864
|
return "";
|
|
844
865
|
}), t;
|
|
845
866
|
}
|
|
846
|
-
var
|
|
847
|
-
function
|
|
867
|
+
var bi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
868
|
+
function yi(e) {
|
|
848
869
|
if (e.length === 0)
|
|
849
870
|
throw new Error("Number skeleton cannot be empty");
|
|
850
|
-
for (var t = e.split(
|
|
851
|
-
return
|
|
871
|
+
for (var t = e.split(bi).filter(function(b) {
|
|
872
|
+
return b.length > 0;
|
|
852
873
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
853
|
-
var
|
|
874
|
+
var o = i[r], l = o.split("/");
|
|
854
875
|
if (l.length === 0)
|
|
855
876
|
throw new Error("Invalid number skeleton");
|
|
856
|
-
for (var
|
|
857
|
-
var
|
|
858
|
-
if (
|
|
877
|
+
for (var s = l[0], c = l.slice(1), u = 0, d = c; u < d.length; u++) {
|
|
878
|
+
var g = d[u];
|
|
879
|
+
if (g.length === 0)
|
|
859
880
|
throw new Error("Invalid number skeleton");
|
|
860
881
|
}
|
|
861
|
-
n.push({ stem:
|
|
882
|
+
n.push({ stem: s, options: c });
|
|
862
883
|
}
|
|
863
884
|
return n;
|
|
864
885
|
}
|
|
865
|
-
function
|
|
886
|
+
function vi(e) {
|
|
866
887
|
return e.replace(/^(.*?)-/, "");
|
|
867
888
|
}
|
|
868
|
-
var
|
|
869
|
-
function
|
|
889
|
+
var dn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zn = /^(@+)?(\+|#+)?[rs]?$/g, Ei = /(\*)(0+)|(#+)(0+)|(0+)/g, qn = /^(0+)$/;
|
|
890
|
+
function pn(e) {
|
|
870
891
|
var t = {};
|
|
871
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
892
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zn, function(n, r, i) {
|
|
872
893
|
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)), "";
|
|
873
894
|
}), t;
|
|
874
895
|
}
|
|
875
|
-
function
|
|
896
|
+
function Qn(e) {
|
|
876
897
|
switch (e) {
|
|
877
898
|
case "sign-auto":
|
|
878
899
|
return {
|
|
@@ -912,7 +933,7 @@ function Yn(e) {
|
|
|
912
933
|
};
|
|
913
934
|
}
|
|
914
935
|
}
|
|
915
|
-
function
|
|
936
|
+
function xi(e) {
|
|
916
937
|
var t;
|
|
917
938
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
918
939
|
notation: "engineering"
|
|
@@ -920,17 +941,17 @@ function vi(e) {
|
|
|
920
941
|
notation: "scientific"
|
|
921
942
|
}, e = e.slice(1)), t) {
|
|
922
943
|
var n = e.slice(0, 2);
|
|
923
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
944
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !qn.test(e))
|
|
924
945
|
throw new Error("Malformed concise eng/scientific notation");
|
|
925
946
|
t.minimumIntegerDigits = e.length;
|
|
926
947
|
}
|
|
927
948
|
return t;
|
|
928
949
|
}
|
|
929
|
-
function
|
|
930
|
-
var t = {}, n =
|
|
950
|
+
function mn(e) {
|
|
951
|
+
var t = {}, n = Qn(e);
|
|
931
952
|
return n || t;
|
|
932
953
|
}
|
|
933
|
-
function
|
|
954
|
+
function _i(e) {
|
|
934
955
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
935
956
|
var i = r[n];
|
|
936
957
|
switch (i.stem) {
|
|
@@ -954,7 +975,7 @@ function Ei(e) {
|
|
|
954
975
|
continue;
|
|
955
976
|
case "measure-unit":
|
|
956
977
|
case "unit":
|
|
957
|
-
t.style = "unit", t.unit =
|
|
978
|
+
t.style = "unit", t.unit = vi(i.options[0]);
|
|
958
979
|
continue;
|
|
959
980
|
case "compact-short":
|
|
960
981
|
case "K":
|
|
@@ -966,12 +987,12 @@ function Ei(e) {
|
|
|
966
987
|
continue;
|
|
967
988
|
case "scientific":
|
|
968
989
|
t = I(I(I({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
|
|
969
|
-
return I(I({}, c),
|
|
990
|
+
return I(I({}, c), mn(u));
|
|
970
991
|
}, {}));
|
|
971
992
|
continue;
|
|
972
993
|
case "engineering":
|
|
973
994
|
t = I(I(I({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
|
|
974
|
-
return I(I({}, c),
|
|
995
|
+
return I(I({}, c), mn(u));
|
|
975
996
|
}, {}));
|
|
976
997
|
continue;
|
|
977
998
|
case "notation-simple":
|
|
@@ -1016,45 +1037,45 @@ function Ei(e) {
|
|
|
1016
1037
|
case "integer-width":
|
|
1017
1038
|
if (i.options.length > 1)
|
|
1018
1039
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1019
|
-
i.options[0].replace(
|
|
1040
|
+
i.options[0].replace(Ei, function(c, u, d, g, b, _) {
|
|
1020
1041
|
if (u)
|
|
1021
1042
|
t.minimumIntegerDigits = d.length;
|
|
1022
1043
|
else {
|
|
1023
|
-
if (
|
|
1044
|
+
if (g && b)
|
|
1024
1045
|
throw new Error("We currently do not support maximum integer digits");
|
|
1025
|
-
if (
|
|
1046
|
+
if (_)
|
|
1026
1047
|
throw new Error("We currently do not support exact integer digits");
|
|
1027
1048
|
}
|
|
1028
1049
|
return "";
|
|
1029
1050
|
});
|
|
1030
1051
|
continue;
|
|
1031
1052
|
}
|
|
1032
|
-
if (
|
|
1053
|
+
if (qn.test(i.stem)) {
|
|
1033
1054
|
t.minimumIntegerDigits = i.stem.length;
|
|
1034
1055
|
continue;
|
|
1035
1056
|
}
|
|
1036
|
-
if (
|
|
1057
|
+
if (dn.test(i.stem)) {
|
|
1037
1058
|
if (i.options.length > 1)
|
|
1038
1059
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1039
|
-
i.stem.replace(
|
|
1040
|
-
return d === "*" ? t.minimumFractionDigits = u.length :
|
|
1060
|
+
i.stem.replace(dn, function(c, u, d, g, b, _) {
|
|
1061
|
+
return d === "*" ? t.minimumFractionDigits = u.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : b && _ ? (t.minimumFractionDigits = b.length, t.maximumFractionDigits = b.length + _.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1041
1062
|
});
|
|
1042
|
-
var
|
|
1043
|
-
|
|
1063
|
+
var o = i.options[0];
|
|
1064
|
+
o === "w" ? t = I(I({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = I(I({}, t), pn(o)));
|
|
1044
1065
|
continue;
|
|
1045
1066
|
}
|
|
1046
|
-
if (
|
|
1047
|
-
t = I(I({}, t),
|
|
1067
|
+
if (Zn.test(i.stem)) {
|
|
1068
|
+
t = I(I({}, t), pn(i.stem));
|
|
1048
1069
|
continue;
|
|
1049
1070
|
}
|
|
1050
|
-
var l =
|
|
1071
|
+
var l = Qn(i.stem);
|
|
1051
1072
|
l && (t = I(I({}, t), l));
|
|
1052
|
-
var
|
|
1053
|
-
|
|
1073
|
+
var s = xi(i.stem);
|
|
1074
|
+
s && (t = I(I({}, t), s));
|
|
1054
1075
|
}
|
|
1055
1076
|
return t;
|
|
1056
1077
|
}
|
|
1057
|
-
var
|
|
1078
|
+
var ct = {
|
|
1058
1079
|
"001": [
|
|
1059
1080
|
"H",
|
|
1060
1081
|
"h"
|
|
@@ -2469,14 +2490,14 @@ var ut = {
|
|
|
2469
2490
|
"h"
|
|
2470
2491
|
]
|
|
2471
2492
|
};
|
|
2472
|
-
function
|
|
2493
|
+
function Bi(e, t) {
|
|
2473
2494
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2474
2495
|
var i = e.charAt(r);
|
|
2475
2496
|
if (i === "j") {
|
|
2476
|
-
for (var
|
|
2477
|
-
|
|
2478
|
-
var l = 1 + (
|
|
2479
|
-
for ((u == "H" || u == "k") && (
|
|
2497
|
+
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2498
|
+
o++, r++;
|
|
2499
|
+
var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), c = "a", u = Ti(t);
|
|
2500
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2480
2501
|
n += c;
|
|
2481
2502
|
for (; l-- > 0; )
|
|
2482
2503
|
n = u + n;
|
|
@@ -2484,7 +2505,7 @@ function xi(e, t) {
|
|
|
2484
2505
|
}
|
|
2485
2506
|
return n;
|
|
2486
2507
|
}
|
|
2487
|
-
function
|
|
2508
|
+
function Ti(e) {
|
|
2488
2509
|
var t = e.hourCycle;
|
|
2489
2510
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2490
2511
|
e.hourCycles && // @ts-ignore
|
|
@@ -2503,23 +2524,23 @@ function _i(e) {
|
|
|
2503
2524
|
}
|
|
2504
2525
|
var n = e.language, r;
|
|
2505
2526
|
n !== "root" && (r = e.maximize().region);
|
|
2506
|
-
var i =
|
|
2527
|
+
var i = ct[r || ""] || ct[n || ""] || ct["".concat(n, "-001")] || ct["001"];
|
|
2507
2528
|
return i[0];
|
|
2508
2529
|
}
|
|
2509
|
-
var Ft,
|
|
2510
|
-
function
|
|
2530
|
+
var Ft, wi = new RegExp("^".concat(Wn.source, "*")), Si = new RegExp("".concat(Wn.source, "*$"));
|
|
2531
|
+
function M(e, t) {
|
|
2511
2532
|
return { start: e, end: t };
|
|
2512
2533
|
}
|
|
2513
|
-
var
|
|
2534
|
+
var Ai = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ci = !!String.fromCodePoint, Hi = !!Object.fromEntries, Oi = !!String.prototype.codePointAt, Ri = !!String.prototype.trimStart, Li = !!String.prototype.trimEnd, Mi = !!Number.isSafeInteger, Ni = Mi ? Number.isSafeInteger : function(e) {
|
|
2514
2535
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2515
2536
|
}, Wt = !0;
|
|
2516
2537
|
try {
|
|
2517
|
-
var
|
|
2518
|
-
Wt = ((Ft =
|
|
2538
|
+
var Ii = Yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2539
|
+
Wt = ((Ft = Ii.exec("a")) === null || Ft === void 0 ? void 0 : Ft[0]) === "a";
|
|
2519
2540
|
} catch (e) {
|
|
2520
2541
|
Wt = !1;
|
|
2521
2542
|
}
|
|
2522
|
-
var
|
|
2543
|
+
var gn = Ai ? (
|
|
2523
2544
|
// Native
|
|
2524
2545
|
function(t, n, r) {
|
|
2525
2546
|
return t.startsWith(n, r);
|
|
@@ -2529,31 +2550,31 @@ var yn = wi ? (
|
|
|
2529
2550
|
function(t, n, r) {
|
|
2530
2551
|
return t.slice(r, r + n.length) === n;
|
|
2531
2552
|
}
|
|
2532
|
-
), Zt =
|
|
2553
|
+
), Zt = Ci ? String.fromCodePoint : (
|
|
2533
2554
|
// IE11
|
|
2534
2555
|
function() {
|
|
2535
2556
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2536
2557
|
t[n] = arguments[n];
|
|
2537
|
-
for (var r = "", i = t.length,
|
|
2538
|
-
if (l = t[
|
|
2558
|
+
for (var r = "", i = t.length, o = 0, l; i > o; ) {
|
|
2559
|
+
if (l = t[o++], l > 1114111)
|
|
2539
2560
|
throw RangeError(l + " is not a valid code point");
|
|
2540
2561
|
r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
|
|
2541
2562
|
}
|
|
2542
2563
|
return r;
|
|
2543
2564
|
}
|
|
2544
|
-
),
|
|
2565
|
+
), bn = (
|
|
2545
2566
|
// native
|
|
2546
|
-
|
|
2567
|
+
Hi ? Object.fromEntries : (
|
|
2547
2568
|
// Ponyfill
|
|
2548
2569
|
function(t) {
|
|
2549
2570
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2550
|
-
var
|
|
2551
|
-
n[l] =
|
|
2571
|
+
var o = i[r], l = o[0], s = o[1];
|
|
2572
|
+
n[l] = s;
|
|
2552
2573
|
}
|
|
2553
2574
|
return n;
|
|
2554
2575
|
}
|
|
2555
2576
|
)
|
|
2556
|
-
),
|
|
2577
|
+
), Jn = Oi ? (
|
|
2557
2578
|
// Native
|
|
2558
2579
|
function(t, n) {
|
|
2559
2580
|
return t.codePointAt(n);
|
|
@@ -2563,11 +2584,11 @@ var yn = wi ? (
|
|
|
2563
2584
|
function(t, n) {
|
|
2564
2585
|
var r = t.length;
|
|
2565
2586
|
if (!(n < 0 || n >= r)) {
|
|
2566
|
-
var i = t.charCodeAt(n),
|
|
2567
|
-
return i < 55296 || i > 56319 || n + 1 === r || (
|
|
2587
|
+
var i = t.charCodeAt(n), o;
|
|
2588
|
+
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2568
2589
|
}
|
|
2569
2590
|
}
|
|
2570
|
-
),
|
|
2591
|
+
), Pi = Ri ? (
|
|
2571
2592
|
// Native
|
|
2572
2593
|
function(t) {
|
|
2573
2594
|
return t.trimStart();
|
|
@@ -2575,9 +2596,9 @@ var yn = wi ? (
|
|
|
2575
2596
|
) : (
|
|
2576
2597
|
// Ponyfill
|
|
2577
2598
|
function(t) {
|
|
2578
|
-
return t.replace(
|
|
2599
|
+
return t.replace(wi, "");
|
|
2579
2600
|
}
|
|
2580
|
-
),
|
|
2601
|
+
), Di = Li ? (
|
|
2581
2602
|
// Native
|
|
2582
2603
|
function(t) {
|
|
2583
2604
|
return t.trimEnd();
|
|
@@ -2585,32 +2606,32 @@ var yn = wi ? (
|
|
|
2585
2606
|
) : (
|
|
2586
2607
|
// Ponyfill
|
|
2587
2608
|
function(t) {
|
|
2588
|
-
return t.replace(
|
|
2609
|
+
return t.replace(Si, "");
|
|
2589
2610
|
}
|
|
2590
2611
|
);
|
|
2591
|
-
function
|
|
2612
|
+
function Yn(e, t) {
|
|
2592
2613
|
return new RegExp(e, t);
|
|
2593
2614
|
}
|
|
2594
2615
|
var qt;
|
|
2595
2616
|
if (Wt) {
|
|
2596
|
-
var
|
|
2617
|
+
var yn = Yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2597
2618
|
qt = function(t, n) {
|
|
2598
2619
|
var r;
|
|
2599
|
-
|
|
2600
|
-
var i =
|
|
2620
|
+
yn.lastIndex = n;
|
|
2621
|
+
var i = yn.exec(t);
|
|
2601
2622
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2602
2623
|
};
|
|
2603
2624
|
} else
|
|
2604
2625
|
qt = function(t, n) {
|
|
2605
2626
|
for (var r = []; ; ) {
|
|
2606
|
-
var i =
|
|
2607
|
-
if (i === void 0 ||
|
|
2627
|
+
var i = Jn(t, n);
|
|
2628
|
+
if (i === void 0 || Kn(i) || $i(i))
|
|
2608
2629
|
break;
|
|
2609
2630
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2610
2631
|
}
|
|
2611
2632
|
return Zt.apply(void 0, r);
|
|
2612
2633
|
};
|
|
2613
|
-
var
|
|
2634
|
+
var Ui = (
|
|
2614
2635
|
/** @class */
|
|
2615
2636
|
function() {
|
|
2616
2637
|
function e(t, n) {
|
|
@@ -2622,26 +2643,26 @@ var Pi = (
|
|
|
2622
2643
|
return this.parseMessage(0, "", !1);
|
|
2623
2644
|
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2624
2645
|
for (var i = []; !this.isEOF(); ) {
|
|
2625
|
-
var
|
|
2626
|
-
if (
|
|
2646
|
+
var o = this.char();
|
|
2647
|
+
if (o === 123) {
|
|
2627
2648
|
var l = this.parseArgument(t, r);
|
|
2628
2649
|
if (l.err)
|
|
2629
2650
|
return l;
|
|
2630
2651
|
i.push(l.val);
|
|
2631
2652
|
} else {
|
|
2632
|
-
if (
|
|
2653
|
+
if (o === 125 && t > 0)
|
|
2633
2654
|
break;
|
|
2634
|
-
if (
|
|
2635
|
-
var
|
|
2655
|
+
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2656
|
+
var s = this.clonePosition();
|
|
2636
2657
|
this.bump(), i.push({
|
|
2637
|
-
type:
|
|
2638
|
-
location:
|
|
2658
|
+
type: j.pound,
|
|
2659
|
+
location: M(s, this.clonePosition())
|
|
2639
2660
|
});
|
|
2640
|
-
} else if (
|
|
2661
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2641
2662
|
if (r)
|
|
2642
2663
|
break;
|
|
2643
|
-
return this.error(
|
|
2644
|
-
} else if (
|
|
2664
|
+
return this.error(O.UNMATCHED_CLOSING_TAG, M(this.clonePosition(), this.clonePosition()));
|
|
2665
|
+
} else if (o === 60 && !this.ignoreTag && Qt(this.peek() || 0)) {
|
|
2645
2666
|
var l = this.parseTag(t, n);
|
|
2646
2667
|
if (l.err)
|
|
2647
2668
|
return l;
|
|
@@ -2662,44 +2683,44 @@ var Pi = (
|
|
|
2662
2683
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2663
2684
|
return {
|
|
2664
2685
|
val: {
|
|
2665
|
-
type:
|
|
2686
|
+
type: j.literal,
|
|
2666
2687
|
value: "<".concat(i, "/>"),
|
|
2667
|
-
location:
|
|
2688
|
+
location: M(r, this.clonePosition())
|
|
2668
2689
|
},
|
|
2669
2690
|
err: null
|
|
2670
2691
|
};
|
|
2671
2692
|
if (this.bumpIf(">")) {
|
|
2672
|
-
var
|
|
2673
|
-
if (
|
|
2674
|
-
return
|
|
2675
|
-
var l =
|
|
2693
|
+
var o = this.parseMessage(t + 1, n, !0);
|
|
2694
|
+
if (o.err)
|
|
2695
|
+
return o;
|
|
2696
|
+
var l = o.val, s = this.clonePosition();
|
|
2676
2697
|
if (this.bumpIf("</")) {
|
|
2677
2698
|
if (this.isEOF() || !Qt(this.char()))
|
|
2678
|
-
return this.error(
|
|
2699
|
+
return this.error(O.INVALID_TAG, M(s, this.clonePosition()));
|
|
2679
2700
|
var c = this.clonePosition(), u = this.parseTagName();
|
|
2680
|
-
return i !== u ? this.error(
|
|
2701
|
+
return i !== u ? this.error(O.UNMATCHED_CLOSING_TAG, M(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2681
2702
|
val: {
|
|
2682
|
-
type:
|
|
2703
|
+
type: j.tag,
|
|
2683
2704
|
value: i,
|
|
2684
2705
|
children: l,
|
|
2685
|
-
location:
|
|
2706
|
+
location: M(r, this.clonePosition())
|
|
2686
2707
|
},
|
|
2687
2708
|
err: null
|
|
2688
|
-
} : this.error(
|
|
2709
|
+
} : this.error(O.INVALID_TAG, M(s, this.clonePosition())));
|
|
2689
2710
|
} else
|
|
2690
|
-
return this.error(
|
|
2711
|
+
return this.error(O.UNCLOSED_TAG, M(r, this.clonePosition()));
|
|
2691
2712
|
} else
|
|
2692
|
-
return this.error(
|
|
2713
|
+
return this.error(O.INVALID_TAG, M(r, this.clonePosition()));
|
|
2693
2714
|
}, e.prototype.parseTagName = function() {
|
|
2694
2715
|
var t = this.offset();
|
|
2695
|
-
for (this.bump(); !this.isEOF() &&
|
|
2716
|
+
for (this.bump(); !this.isEOF() && Gi(this.char()); )
|
|
2696
2717
|
this.bump();
|
|
2697
2718
|
return this.message.slice(t, this.offset());
|
|
2698
2719
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
2699
2720
|
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2700
|
-
var
|
|
2701
|
-
if (
|
|
2702
|
-
i +=
|
|
2721
|
+
var o = this.tryParseQuote(n);
|
|
2722
|
+
if (o) {
|
|
2723
|
+
i += o;
|
|
2703
2724
|
continue;
|
|
2704
2725
|
}
|
|
2705
2726
|
var l = this.tryParseUnquoted(t, n);
|
|
@@ -2707,21 +2728,21 @@ var Pi = (
|
|
|
2707
2728
|
i += l;
|
|
2708
2729
|
continue;
|
|
2709
2730
|
}
|
|
2710
|
-
var
|
|
2711
|
-
if (
|
|
2712
|
-
i +=
|
|
2731
|
+
var s = this.tryParseLeftAngleBracket();
|
|
2732
|
+
if (s) {
|
|
2733
|
+
i += s;
|
|
2713
2734
|
continue;
|
|
2714
2735
|
}
|
|
2715
2736
|
break;
|
|
2716
2737
|
}
|
|
2717
|
-
var c =
|
|
2738
|
+
var c = M(r, this.clonePosition());
|
|
2718
2739
|
return {
|
|
2719
|
-
val: { type:
|
|
2740
|
+
val: { type: j.literal, value: i, location: c },
|
|
2720
2741
|
err: null
|
|
2721
2742
|
};
|
|
2722
2743
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2723
2744
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2724
|
-
!
|
|
2745
|
+
!Fi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2725
2746
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2726
2747
|
if (this.isEOF() || this.char() !== 39)
|
|
2727
2748
|
return null;
|
|
@@ -2764,40 +2785,40 @@ var Pi = (
|
|
|
2764
2785
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2765
2786
|
var r = this.clonePosition();
|
|
2766
2787
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2767
|
-
return this.error(
|
|
2788
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
|
|
2768
2789
|
if (this.char() === 125)
|
|
2769
|
-
return this.bump(), this.error(
|
|
2790
|
+
return this.bump(), this.error(O.EMPTY_ARGUMENT, M(r, this.clonePosition()));
|
|
2770
2791
|
var i = this.parseIdentifierIfPossible().value;
|
|
2771
2792
|
if (!i)
|
|
2772
|
-
return this.error(
|
|
2793
|
+
return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
|
|
2773
2794
|
if (this.bumpSpace(), this.isEOF())
|
|
2774
|
-
return this.error(
|
|
2795
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
|
|
2775
2796
|
switch (this.char()) {
|
|
2776
2797
|
case 125:
|
|
2777
2798
|
return this.bump(), {
|
|
2778
2799
|
val: {
|
|
2779
|
-
type:
|
|
2800
|
+
type: j.argument,
|
|
2780
2801
|
// value does not include the opening and closing braces.
|
|
2781
2802
|
value: i,
|
|
2782
|
-
location:
|
|
2803
|
+
location: M(r, this.clonePosition())
|
|
2783
2804
|
},
|
|
2784
2805
|
err: null
|
|
2785
2806
|
};
|
|
2786
2807
|
case 44:
|
|
2787
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2808
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2788
2809
|
default:
|
|
2789
|
-
return this.error(
|
|
2810
|
+
return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
|
|
2790
2811
|
}
|
|
2791
2812
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2792
2813
|
var t = this.clonePosition(), n = this.offset(), r = qt(this.message, n), i = n + r.length;
|
|
2793
2814
|
this.bumpTo(i);
|
|
2794
|
-
var
|
|
2815
|
+
var o = this.clonePosition(), l = M(t, o);
|
|
2795
2816
|
return { value: r, location: l };
|
|
2796
2817
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2797
|
-
var
|
|
2798
|
-
switch (
|
|
2818
|
+
var o, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
2819
|
+
switch (s) {
|
|
2799
2820
|
case "":
|
|
2800
|
-
return this.error(
|
|
2821
|
+
return this.error(O.EXPECT_ARGUMENT_TYPE, M(l, c));
|
|
2801
2822
|
case "number":
|
|
2802
2823
|
case "date":
|
|
2803
2824
|
case "time": {
|
|
@@ -2805,50 +2826,50 @@ var Pi = (
|
|
|
2805
2826
|
var u = null;
|
|
2806
2827
|
if (this.bumpIf(",")) {
|
|
2807
2828
|
this.bumpSpace();
|
|
2808
|
-
var d = this.clonePosition(),
|
|
2809
|
-
if (
|
|
2810
|
-
return
|
|
2811
|
-
var
|
|
2812
|
-
if (
|
|
2813
|
-
return this.error(
|
|
2814
|
-
var
|
|
2815
|
-
u = { style:
|
|
2829
|
+
var d = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
|
|
2830
|
+
if (g.err)
|
|
2831
|
+
return g;
|
|
2832
|
+
var b = Di(g.val);
|
|
2833
|
+
if (b.length === 0)
|
|
2834
|
+
return this.error(O.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
|
|
2835
|
+
var _ = M(d, this.clonePosition());
|
|
2836
|
+
u = { style: b, styleLocation: _ };
|
|
2816
2837
|
}
|
|
2817
|
-
var
|
|
2818
|
-
if (
|
|
2819
|
-
return
|
|
2820
|
-
var
|
|
2821
|
-
if (u &&
|
|
2822
|
-
var
|
|
2823
|
-
if (
|
|
2824
|
-
var
|
|
2825
|
-
return
|
|
2826
|
-
val: { type:
|
|
2838
|
+
var B = this.tryParseArgumentClose(i);
|
|
2839
|
+
if (B.err)
|
|
2840
|
+
return B;
|
|
2841
|
+
var T = M(i, this.clonePosition());
|
|
2842
|
+
if (u && gn(u == null ? void 0 : u.style, "::", 0)) {
|
|
2843
|
+
var x = Pi(u.style.slice(2));
|
|
2844
|
+
if (s === "number") {
|
|
2845
|
+
var g = this.parseNumberSkeletonFromString(x, u.styleLocation);
|
|
2846
|
+
return g.err ? g : {
|
|
2847
|
+
val: { type: j.number, value: r, location: T, style: g.val },
|
|
2827
2848
|
err: null
|
|
2828
2849
|
};
|
|
2829
2850
|
} else {
|
|
2830
|
-
if (
|
|
2831
|
-
return this.error(
|
|
2832
|
-
var
|
|
2833
|
-
this.locale && (
|
|
2834
|
-
var
|
|
2835
|
-
type:
|
|
2836
|
-
pattern:
|
|
2851
|
+
if (x.length === 0)
|
|
2852
|
+
return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
|
|
2853
|
+
var S = x;
|
|
2854
|
+
this.locale && (S = Bi(x, this.locale));
|
|
2855
|
+
var b = {
|
|
2856
|
+
type: $e.dateTime,
|
|
2857
|
+
pattern: S,
|
|
2837
2858
|
location: u.styleLocation,
|
|
2838
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2839
|
-
},
|
|
2859
|
+
parsedOptions: this.shouldParseSkeletons ? gi(S) : {}
|
|
2860
|
+
}, D = s === "date" ? j.date : j.time;
|
|
2840
2861
|
return {
|
|
2841
|
-
val: { type:
|
|
2862
|
+
val: { type: D, value: r, location: T, style: b },
|
|
2842
2863
|
err: null
|
|
2843
2864
|
};
|
|
2844
2865
|
}
|
|
2845
2866
|
}
|
|
2846
2867
|
return {
|
|
2847
2868
|
val: {
|
|
2848
|
-
type:
|
|
2869
|
+
type: s === "number" ? j.number : s === "date" ? j.date : j.time,
|
|
2849
2870
|
value: r,
|
|
2850
|
-
location:
|
|
2851
|
-
style: (
|
|
2871
|
+
location: T,
|
|
2872
|
+
style: (o = u == null ? void 0 : u.style) !== null && o !== void 0 ? o : null
|
|
2852
2873
|
},
|
|
2853
2874
|
err: null
|
|
2854
2875
|
};
|
|
@@ -2856,52 +2877,52 @@ var Pi = (
|
|
|
2856
2877
|
case "plural":
|
|
2857
2878
|
case "selectordinal":
|
|
2858
2879
|
case "select": {
|
|
2859
|
-
var
|
|
2880
|
+
var H = this.clonePosition();
|
|
2860
2881
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2861
|
-
return this.error(
|
|
2882
|
+
return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(H, I({}, H)));
|
|
2862
2883
|
this.bumpSpace();
|
|
2863
|
-
var
|
|
2864
|
-
if (
|
|
2884
|
+
var U = this.parseIdentifierIfPossible(), W = 0;
|
|
2885
|
+
if (s !== "select" && U.value === "offset") {
|
|
2865
2886
|
if (!this.bumpIf(":"))
|
|
2866
|
-
return this.error(
|
|
2887
|
+
return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
|
|
2867
2888
|
this.bumpSpace();
|
|
2868
|
-
var
|
|
2869
|
-
if (
|
|
2870
|
-
return
|
|
2871
|
-
this.bumpSpace(),
|
|
2889
|
+
var g = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2890
|
+
if (g.err)
|
|
2891
|
+
return g;
|
|
2892
|
+
this.bumpSpace(), U = this.parseIdentifierIfPossible(), W = g.val;
|
|
2872
2893
|
}
|
|
2873
|
-
var
|
|
2874
|
-
if (
|
|
2875
|
-
return
|
|
2876
|
-
var
|
|
2877
|
-
if (
|
|
2878
|
-
return
|
|
2879
|
-
var
|
|
2880
|
-
return
|
|
2894
|
+
var q = this.tryParsePluralOrSelectOptions(t, s, n, U);
|
|
2895
|
+
if (q.err)
|
|
2896
|
+
return q;
|
|
2897
|
+
var B = this.tryParseArgumentClose(i);
|
|
2898
|
+
if (B.err)
|
|
2899
|
+
return B;
|
|
2900
|
+
var Y = M(i, this.clonePosition());
|
|
2901
|
+
return s === "select" ? {
|
|
2881
2902
|
val: {
|
|
2882
|
-
type:
|
|
2903
|
+
type: j.select,
|
|
2883
2904
|
value: r,
|
|
2884
|
-
options:
|
|
2885
|
-
location:
|
|
2905
|
+
options: bn(q.val),
|
|
2906
|
+
location: Y
|
|
2886
2907
|
},
|
|
2887
2908
|
err: null
|
|
2888
2909
|
} : {
|
|
2889
2910
|
val: {
|
|
2890
|
-
type:
|
|
2911
|
+
type: j.plural,
|
|
2891
2912
|
value: r,
|
|
2892
|
-
options:
|
|
2893
|
-
offset:
|
|
2894
|
-
pluralType:
|
|
2895
|
-
location:
|
|
2913
|
+
options: bn(q.val),
|
|
2914
|
+
offset: W,
|
|
2915
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2916
|
+
location: Y
|
|
2896
2917
|
},
|
|
2897
2918
|
err: null
|
|
2898
2919
|
};
|
|
2899
2920
|
}
|
|
2900
2921
|
default:
|
|
2901
|
-
return this.error(
|
|
2922
|
+
return this.error(O.INVALID_ARGUMENT_TYPE, M(l, c));
|
|
2902
2923
|
}
|
|
2903
2924
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2904
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2925
|
+
return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2905
2926
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2906
2927
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2907
2928
|
var r = this.char();
|
|
@@ -2910,7 +2931,7 @@ var Pi = (
|
|
|
2910
2931
|
this.bump();
|
|
2911
2932
|
var i = this.clonePosition();
|
|
2912
2933
|
if (!this.bumpUntil("'"))
|
|
2913
|
-
return this.error(
|
|
2934
|
+
return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, M(i, this.clonePosition()));
|
|
2914
2935
|
this.bump();
|
|
2915
2936
|
break;
|
|
2916
2937
|
}
|
|
@@ -2940,64 +2961,64 @@ var Pi = (
|
|
|
2940
2961
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2941
2962
|
var r = [];
|
|
2942
2963
|
try {
|
|
2943
|
-
r =
|
|
2964
|
+
r = yi(t);
|
|
2944
2965
|
} catch (i) {
|
|
2945
|
-
return this.error(
|
|
2966
|
+
return this.error(O.INVALID_NUMBER_SKELETON, n);
|
|
2946
2967
|
}
|
|
2947
2968
|
return {
|
|
2948
2969
|
val: {
|
|
2949
|
-
type:
|
|
2970
|
+
type: $e.number,
|
|
2950
2971
|
tokens: r,
|
|
2951
2972
|
location: n,
|
|
2952
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2973
|
+
parsedOptions: this.shouldParseSkeletons ? _i(r) : {}
|
|
2953
2974
|
},
|
|
2954
2975
|
err: null
|
|
2955
2976
|
};
|
|
2956
2977
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2957
|
-
for (var
|
|
2978
|
+
for (var o, l = !1, s = [], c = /* @__PURE__ */ new Set(), u = i.value, d = i.location; ; ) {
|
|
2958
2979
|
if (u.length === 0) {
|
|
2959
|
-
var
|
|
2980
|
+
var g = this.clonePosition();
|
|
2960
2981
|
if (n !== "select" && this.bumpIf("=")) {
|
|
2961
|
-
var
|
|
2962
|
-
if (
|
|
2963
|
-
return
|
|
2964
|
-
d =
|
|
2982
|
+
var b = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2983
|
+
if (b.err)
|
|
2984
|
+
return b;
|
|
2985
|
+
d = M(g, this.clonePosition()), u = this.message.slice(g.offset, this.offset());
|
|
2965
2986
|
} else
|
|
2966
2987
|
break;
|
|
2967
2988
|
}
|
|
2968
2989
|
if (c.has(u))
|
|
2969
|
-
return this.error(n === "select" ?
|
|
2990
|
+
return this.error(n === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, d);
|
|
2970
2991
|
u === "other" && (l = !0), this.bumpSpace();
|
|
2971
|
-
var
|
|
2992
|
+
var _ = this.clonePosition();
|
|
2972
2993
|
if (!this.bumpIf("{"))
|
|
2973
|
-
return this.error(n === "select" ?
|
|
2974
|
-
var
|
|
2975
|
-
if (
|
|
2976
|
-
return
|
|
2977
|
-
var
|
|
2978
|
-
if (
|
|
2979
|
-
return
|
|
2980
|
-
|
|
2994
|
+
return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
|
|
2995
|
+
var B = this.parseMessage(t + 1, n, r);
|
|
2996
|
+
if (B.err)
|
|
2997
|
+
return B;
|
|
2998
|
+
var T = this.tryParseArgumentClose(_);
|
|
2999
|
+
if (T.err)
|
|
3000
|
+
return T;
|
|
3001
|
+
s.push([
|
|
2981
3002
|
u,
|
|
2982
3003
|
{
|
|
2983
|
-
value:
|
|
2984
|
-
location:
|
|
3004
|
+
value: B.val,
|
|
3005
|
+
location: M(_, this.clonePosition())
|
|
2985
3006
|
}
|
|
2986
|
-
]), c.add(u), this.bumpSpace(),
|
|
3007
|
+
]), c.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, d = o.location;
|
|
2987
3008
|
}
|
|
2988
|
-
return
|
|
3009
|
+
return s.length === 0 ? this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, M(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(O.MISSING_OTHER_CLAUSE, M(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2989
3010
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
2990
3011
|
var r = 1, i = this.clonePosition();
|
|
2991
3012
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
2992
|
-
for (var
|
|
2993
|
-
var
|
|
2994
|
-
if (
|
|
2995
|
-
|
|
3013
|
+
for (var o = !1, l = 0; !this.isEOF(); ) {
|
|
3014
|
+
var s = this.char();
|
|
3015
|
+
if (s >= 48 && s <= 57)
|
|
3016
|
+
o = !0, l = l * 10 + (s - 48), this.bump();
|
|
2996
3017
|
else
|
|
2997
3018
|
break;
|
|
2998
3019
|
}
|
|
2999
|
-
var c =
|
|
3000
|
-
return
|
|
3020
|
+
var c = M(i, this.clonePosition());
|
|
3021
|
+
return o ? (l *= r, Ni(l) ? { val: l, err: null } : this.error(n, c)) : this.error(t, c);
|
|
3001
3022
|
}, e.prototype.offset = function() {
|
|
3002
3023
|
return this.position.offset;
|
|
3003
3024
|
}, e.prototype.isEOF = function() {
|
|
@@ -3012,7 +3033,7 @@ var Pi = (
|
|
|
3012
3033
|
var t = this.position.offset;
|
|
3013
3034
|
if (t >= this.message.length)
|
|
3014
3035
|
throw Error("out of bound");
|
|
3015
|
-
var n =
|
|
3036
|
+
var n = Jn(this.message, t);
|
|
3016
3037
|
if (n === void 0)
|
|
3017
3038
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3018
3039
|
return n;
|
|
@@ -3031,7 +3052,7 @@ var Pi = (
|
|
|
3031
3052
|
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);
|
|
3032
3053
|
}
|
|
3033
3054
|
}, e.prototype.bumpIf = function(t) {
|
|
3034
|
-
if (
|
|
3055
|
+
if (gn(this.message, t, this.offset())) {
|
|
3035
3056
|
for (var n = 0; n < t.length; n++)
|
|
3036
3057
|
this.bump();
|
|
3037
3058
|
return !0;
|
|
@@ -3053,7 +3074,7 @@ var Pi = (
|
|
|
3053
3074
|
break;
|
|
3054
3075
|
}
|
|
3055
3076
|
}, e.prototype.bumpSpace = function() {
|
|
3056
|
-
for (; !this.isEOF() &&
|
|
3077
|
+
for (; !this.isEOF() && Kn(this.char()); )
|
|
3057
3078
|
this.bump();
|
|
3058
3079
|
}, e.prototype.peek = function() {
|
|
3059
3080
|
if (this.isEOF())
|
|
@@ -3066,197 +3087,197 @@ var Pi = (
|
|
|
3066
3087
|
function Qt(e) {
|
|
3067
3088
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3068
3089
|
}
|
|
3069
|
-
function
|
|
3090
|
+
function Fi(e) {
|
|
3070
3091
|
return Qt(e) || e === 47;
|
|
3071
3092
|
}
|
|
3072
|
-
function
|
|
3093
|
+
function Gi(e) {
|
|
3073
3094
|
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;
|
|
3074
3095
|
}
|
|
3075
|
-
function
|
|
3096
|
+
function Kn(e) {
|
|
3076
3097
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3077
3098
|
}
|
|
3078
|
-
function
|
|
3099
|
+
function $i(e) {
|
|
3079
3100
|
return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
|
|
3080
3101
|
}
|
|
3081
3102
|
function Jt(e) {
|
|
3082
3103
|
e.forEach(function(t) {
|
|
3083
|
-
if (delete t.location,
|
|
3104
|
+
if (delete t.location, kn(t) || Vn(t))
|
|
3084
3105
|
for (var n in t.options)
|
|
3085
3106
|
delete t.options[n].location, Jt(t.options[n].value);
|
|
3086
|
-
else
|
|
3107
|
+
else Gn(t) && zn(t.style) || ($n(t) || jn(t)) && zt(t.style) ? delete t.style.location : Xn(t) && Jt(t.children);
|
|
3087
3108
|
});
|
|
3088
3109
|
}
|
|
3089
|
-
function
|
|
3110
|
+
function ji(e, t) {
|
|
3090
3111
|
t === void 0 && (t = {}), t = I({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3091
|
-
var n = new
|
|
3112
|
+
var n = new Ui(e, t).parse();
|
|
3092
3113
|
if (n.err) {
|
|
3093
|
-
var r = SyntaxError(
|
|
3114
|
+
var r = SyntaxError(O[n.err.kind]);
|
|
3094
3115
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3095
3116
|
}
|
|
3096
3117
|
return t != null && t.captureLocation || Jt(n.val), n.val;
|
|
3097
3118
|
}
|
|
3098
|
-
var
|
|
3119
|
+
var je;
|
|
3099
3120
|
(function(e) {
|
|
3100
3121
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3101
|
-
})(
|
|
3102
|
-
var
|
|
3122
|
+
})(je || (je = {}));
|
|
3123
|
+
var xt = (
|
|
3103
3124
|
/** @class */
|
|
3104
3125
|
function(e) {
|
|
3105
|
-
|
|
3126
|
+
Et(t, e);
|
|
3106
3127
|
function t(n, r, i) {
|
|
3107
|
-
var
|
|
3108
|
-
return
|
|
3128
|
+
var o = e.call(this, n) || this;
|
|
3129
|
+
return o.code = r, o.originalMessage = i, o;
|
|
3109
3130
|
}
|
|
3110
3131
|
return t.prototype.toString = function() {
|
|
3111
3132
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3112
3133
|
}, t;
|
|
3113
3134
|
}(Error)
|
|
3114
|
-
),
|
|
3135
|
+
), vn = (
|
|
3115
3136
|
/** @class */
|
|
3116
3137
|
function(e) {
|
|
3117
|
-
|
|
3118
|
-
function t(n, r, i,
|
|
3119
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3138
|
+
Et(t, e);
|
|
3139
|
+
function t(n, r, i, o) {
|
|
3140
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), je.INVALID_VALUE, o) || this;
|
|
3120
3141
|
}
|
|
3121
3142
|
return t;
|
|
3122
|
-
}(
|
|
3123
|
-
),
|
|
3143
|
+
}(xt)
|
|
3144
|
+
), ki = (
|
|
3124
3145
|
/** @class */
|
|
3125
3146
|
function(e) {
|
|
3126
|
-
|
|
3147
|
+
Et(t, e);
|
|
3127
3148
|
function t(n, r, i) {
|
|
3128
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3149
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), je.INVALID_VALUE, i) || this;
|
|
3129
3150
|
}
|
|
3130
3151
|
return t;
|
|
3131
|
-
}(
|
|
3132
|
-
),
|
|
3152
|
+
}(xt)
|
|
3153
|
+
), Vi = (
|
|
3133
3154
|
/** @class */
|
|
3134
3155
|
function(e) {
|
|
3135
|
-
|
|
3156
|
+
Et(t, e);
|
|
3136
3157
|
function t(n, r) {
|
|
3137
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3158
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), je.MISSING_VALUE, r) || this;
|
|
3138
3159
|
}
|
|
3139
3160
|
return t;
|
|
3140
|
-
}(
|
|
3141
|
-
),
|
|
3161
|
+
}(xt)
|
|
3162
|
+
), ne;
|
|
3142
3163
|
(function(e) {
|
|
3143
3164
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3144
|
-
})(
|
|
3145
|
-
function
|
|
3165
|
+
})(ne || (ne = {}));
|
|
3166
|
+
function Xi(e) {
|
|
3146
3167
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3147
3168
|
var r = t[t.length - 1];
|
|
3148
|
-
return !r || r.type !==
|
|
3169
|
+
return !r || r.type !== ne.literal || n.type !== ne.literal ? t.push(n) : r.value += n.value, t;
|
|
3149
3170
|
}, []);
|
|
3150
3171
|
}
|
|
3151
|
-
function
|
|
3172
|
+
function zi(e) {
|
|
3152
3173
|
return typeof e == "function";
|
|
3153
3174
|
}
|
|
3154
|
-
function
|
|
3155
|
-
if (e.length === 1 &&
|
|
3175
|
+
function ft(e, t, n, r, i, o, l) {
|
|
3176
|
+
if (e.length === 1 && fn(e[0]))
|
|
3156
3177
|
return [
|
|
3157
3178
|
{
|
|
3158
|
-
type:
|
|
3179
|
+
type: ne.literal,
|
|
3159
3180
|
value: e[0].value
|
|
3160
3181
|
}
|
|
3161
3182
|
];
|
|
3162
|
-
for (var
|
|
3183
|
+
for (var s = [], c = 0, u = e; c < u.length; c++) {
|
|
3163
3184
|
var d = u[c];
|
|
3164
|
-
if (
|
|
3165
|
-
|
|
3166
|
-
type:
|
|
3185
|
+
if (fn(d)) {
|
|
3186
|
+
s.push({
|
|
3187
|
+
type: ne.literal,
|
|
3167
3188
|
value: d.value
|
|
3168
3189
|
});
|
|
3169
3190
|
continue;
|
|
3170
3191
|
}
|
|
3171
|
-
if (
|
|
3172
|
-
typeof
|
|
3173
|
-
type:
|
|
3174
|
-
value: n.getNumberFormat(t).format(
|
|
3192
|
+
if (pi(d)) {
|
|
3193
|
+
typeof o == "number" && s.push({
|
|
3194
|
+
type: ne.literal,
|
|
3195
|
+
value: n.getNumberFormat(t).format(o)
|
|
3175
3196
|
});
|
|
3176
3197
|
continue;
|
|
3177
3198
|
}
|
|
3178
|
-
var
|
|
3179
|
-
if (!(i &&
|
|
3180
|
-
throw new
|
|
3181
|
-
var
|
|
3182
|
-
if (
|
|
3183
|
-
(!
|
|
3184
|
-
type: typeof
|
|
3185
|
-
value:
|
|
3199
|
+
var g = d.value;
|
|
3200
|
+
if (!(i && g in i))
|
|
3201
|
+
throw new Vi(g, l);
|
|
3202
|
+
var b = i[g];
|
|
3203
|
+
if (di(d)) {
|
|
3204
|
+
(!b || typeof b == "string" || typeof b == "number") && (b = typeof b == "string" || typeof b == "number" ? String(b) : ""), s.push({
|
|
3205
|
+
type: typeof b == "string" ? ne.literal : ne.object,
|
|
3206
|
+
value: b
|
|
3186
3207
|
});
|
|
3187
3208
|
continue;
|
|
3188
3209
|
}
|
|
3189
|
-
if (
|
|
3190
|
-
var
|
|
3191
|
-
|
|
3192
|
-
type:
|
|
3193
|
-
value: n.getDateTimeFormat(t,
|
|
3210
|
+
if ($n(d)) {
|
|
3211
|
+
var _ = typeof d.style == "string" ? r.date[d.style] : zt(d.style) ? d.style.parsedOptions : void 0;
|
|
3212
|
+
s.push({
|
|
3213
|
+
type: ne.literal,
|
|
3214
|
+
value: n.getDateTimeFormat(t, _).format(b)
|
|
3194
3215
|
});
|
|
3195
3216
|
continue;
|
|
3196
3217
|
}
|
|
3197
|
-
if (
|
|
3198
|
-
var
|
|
3199
|
-
|
|
3200
|
-
type:
|
|
3201
|
-
value: n.getDateTimeFormat(t,
|
|
3218
|
+
if (jn(d)) {
|
|
3219
|
+
var _ = typeof d.style == "string" ? r.time[d.style] : zt(d.style) ? d.style.parsedOptions : r.time.medium;
|
|
3220
|
+
s.push({
|
|
3221
|
+
type: ne.literal,
|
|
3222
|
+
value: n.getDateTimeFormat(t, _).format(b)
|
|
3202
3223
|
});
|
|
3203
3224
|
continue;
|
|
3204
3225
|
}
|
|
3205
|
-
if (
|
|
3206
|
-
var
|
|
3207
|
-
|
|
3208
|
-
type:
|
|
3209
|
-
value: n.getNumberFormat(t,
|
|
3226
|
+
if (Gn(d)) {
|
|
3227
|
+
var _ = typeof d.style == "string" ? r.number[d.style] : zn(d.style) ? d.style.parsedOptions : void 0;
|
|
3228
|
+
_ && _.scale && (b = b * (_.scale || 1)), s.push({
|
|
3229
|
+
type: ne.literal,
|
|
3230
|
+
value: n.getNumberFormat(t, _).format(b)
|
|
3210
3231
|
});
|
|
3211
3232
|
continue;
|
|
3212
3233
|
}
|
|
3213
|
-
if (
|
|
3214
|
-
var
|
|
3215
|
-
if (!
|
|
3216
|
-
throw new
|
|
3217
|
-
var
|
|
3218
|
-
return
|
|
3234
|
+
if (Xn(d)) {
|
|
3235
|
+
var B = d.children, T = d.value, x = i[T];
|
|
3236
|
+
if (!zi(x))
|
|
3237
|
+
throw new ki(T, "function", l);
|
|
3238
|
+
var S = ft(B, t, n, r, i, o), D = x(S.map(function(W) {
|
|
3239
|
+
return W.value;
|
|
3219
3240
|
}));
|
|
3220
|
-
Array.isArray(
|
|
3241
|
+
Array.isArray(D) || (D = [D]), s.push.apply(s, D.map(function(W) {
|
|
3221
3242
|
return {
|
|
3222
|
-
type: typeof
|
|
3223
|
-
value:
|
|
3243
|
+
type: typeof W == "string" ? ne.literal : ne.object,
|
|
3244
|
+
value: W
|
|
3224
3245
|
};
|
|
3225
3246
|
}));
|
|
3226
3247
|
}
|
|
3227
|
-
if (
|
|
3228
|
-
var
|
|
3229
|
-
if (!
|
|
3230
|
-
throw new
|
|
3231
|
-
|
|
3248
|
+
if (kn(d)) {
|
|
3249
|
+
var H = d.options[b] || d.options.other;
|
|
3250
|
+
if (!H)
|
|
3251
|
+
throw new vn(d.value, b, Object.keys(d.options), l);
|
|
3252
|
+
s.push.apply(s, ft(H.value, t, n, r, i));
|
|
3232
3253
|
continue;
|
|
3233
3254
|
}
|
|
3234
|
-
if (
|
|
3235
|
-
var
|
|
3236
|
-
if (!
|
|
3255
|
+
if (Vn(d)) {
|
|
3256
|
+
var H = d.options["=".concat(b)];
|
|
3257
|
+
if (!H) {
|
|
3237
3258
|
if (!Intl.PluralRules)
|
|
3238
|
-
throw new
|
|
3259
|
+
throw new xt(`Intl.PluralRules is not available in this environment.
|
|
3239
3260
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3240
|
-
`,
|
|
3241
|
-
var
|
|
3242
|
-
|
|
3261
|
+
`, je.MISSING_INTL_API, l);
|
|
3262
|
+
var U = n.getPluralRules(t, { type: d.pluralType }).select(b - (d.offset || 0));
|
|
3263
|
+
H = d.options[U] || d.options.other;
|
|
3243
3264
|
}
|
|
3244
|
-
if (!
|
|
3245
|
-
throw new
|
|
3246
|
-
|
|
3265
|
+
if (!H)
|
|
3266
|
+
throw new vn(d.value, b, Object.keys(d.options), l);
|
|
3267
|
+
s.push.apply(s, ft(H.value, t, n, r, i, b - (d.offset || 0)));
|
|
3247
3268
|
continue;
|
|
3248
3269
|
}
|
|
3249
3270
|
}
|
|
3250
|
-
return
|
|
3271
|
+
return Xi(s);
|
|
3251
3272
|
}
|
|
3252
|
-
function
|
|
3273
|
+
function Wi(e, t) {
|
|
3253
3274
|
return t ? I(I(I({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3254
3275
|
return n[r] = I(I({}, e[r]), t[r] || {}), n;
|
|
3255
3276
|
}, {})) : e;
|
|
3256
3277
|
}
|
|
3257
|
-
function
|
|
3278
|
+
function Zi(e, t) {
|
|
3258
3279
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3259
|
-
return n[r] =
|
|
3280
|
+
return n[r] = Wi(e[r], t[r]), n;
|
|
3260
3281
|
}, I({}, e)) : e;
|
|
3261
3282
|
}
|
|
3262
3283
|
function Gt(e) {
|
|
@@ -3273,7 +3294,7 @@ function Gt(e) {
|
|
|
3273
3294
|
}
|
|
3274
3295
|
};
|
|
3275
3296
|
}
|
|
3276
|
-
function
|
|
3297
|
+
function qi(e) {
|
|
3277
3298
|
return e === void 0 && (e = {
|
|
3278
3299
|
number: {},
|
|
3279
3300
|
dateTime: {},
|
|
@@ -3305,45 +3326,45 @@ function Wi(e) {
|
|
|
3305
3326
|
})
|
|
3306
3327
|
};
|
|
3307
3328
|
}
|
|
3308
|
-
var
|
|
3329
|
+
var Qi = (
|
|
3309
3330
|
/** @class */
|
|
3310
3331
|
function() {
|
|
3311
3332
|
function e(t, n, r, i) {
|
|
3312
3333
|
n === void 0 && (n = e.defaultLocale);
|
|
3313
|
-
var
|
|
3334
|
+
var o = this;
|
|
3314
3335
|
if (this.formatterCache = {
|
|
3315
3336
|
number: {},
|
|
3316
3337
|
dateTime: {},
|
|
3317
3338
|
pluralRules: {}
|
|
3318
3339
|
}, this.format = function(c) {
|
|
3319
|
-
var u =
|
|
3340
|
+
var u = o.formatToParts(c);
|
|
3320
3341
|
if (u.length === 1)
|
|
3321
3342
|
return u[0].value;
|
|
3322
|
-
var d = u.reduce(function(
|
|
3323
|
-
return !
|
|
3343
|
+
var d = u.reduce(function(g, b) {
|
|
3344
|
+
return !g.length || b.type !== ne.literal || typeof g[g.length - 1] != "string" ? g.push(b.value) : g[g.length - 1] += b.value, g;
|
|
3324
3345
|
}, []);
|
|
3325
3346
|
return d.length <= 1 ? d[0] || "" : d;
|
|
3326
3347
|
}, this.formatToParts = function(c) {
|
|
3327
|
-
return
|
|
3348
|
+
return ft(o.ast, o.locales, o.formatters, o.formats, c, void 0, o.message);
|
|
3328
3349
|
}, this.resolvedOptions = function() {
|
|
3329
3350
|
var c;
|
|
3330
3351
|
return {
|
|
3331
|
-
locale: ((c =
|
|
3352
|
+
locale: ((c = o.resolvedLocale) === null || c === void 0 ? void 0 : c.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3332
3353
|
};
|
|
3333
3354
|
}, this.getAst = function() {
|
|
3334
|
-
return
|
|
3355
|
+
return o.ast;
|
|
3335
3356
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3336
3357
|
if (this.message = t, !e.__parse)
|
|
3337
3358
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3338
3359
|
var l = i || {};
|
|
3339
3360
|
l.formatters;
|
|
3340
|
-
var
|
|
3341
|
-
this.ast = e.__parse(t, I(I({},
|
|
3361
|
+
var s = oi(l, ["formatters"]);
|
|
3362
|
+
this.ast = e.__parse(t, I(I({}, s), { locale: this.resolvedLocale }));
|
|
3342
3363
|
} else
|
|
3343
3364
|
this.ast = t;
|
|
3344
3365
|
if (!Array.isArray(this.ast))
|
|
3345
3366
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3346
|
-
this.formats =
|
|
3367
|
+
this.formats = Zi(e.formats, r), this.formatters = i && i.formatters || qi(this.formatterCache);
|
|
3347
3368
|
}
|
|
3348
3369
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3349
3370
|
get: function() {
|
|
@@ -3356,7 +3377,7 @@ var Zi = (
|
|
|
3356
3377
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3357
3378
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3358
3379
|
}
|
|
3359
|
-
}, e.__parse =
|
|
3380
|
+
}, e.__parse = ji, e.formats = {
|
|
3360
3381
|
number: {
|
|
3361
3382
|
integer: {
|
|
3362
3383
|
maximumFractionDigits: 0
|
|
@@ -3417,7 +3438,7 @@ var Zi = (
|
|
|
3417
3438
|
}, e;
|
|
3418
3439
|
}()
|
|
3419
3440
|
);
|
|
3420
|
-
function
|
|
3441
|
+
function Ji(e, t) {
|
|
3421
3442
|
if (t == null)
|
|
3422
3443
|
return;
|
|
3423
3444
|
if (t in e)
|
|
@@ -3427,9 +3448,9 @@ function qi(e, t) {
|
|
|
3427
3448
|
for (let i = 0; i < n.length; i++)
|
|
3428
3449
|
if (typeof r == "object") {
|
|
3429
3450
|
if (i > 0) {
|
|
3430
|
-
const
|
|
3431
|
-
if (
|
|
3432
|
-
r = r[
|
|
3451
|
+
const o = n.slice(i, n.length).join(".");
|
|
3452
|
+
if (o in r) {
|
|
3453
|
+
r = r[o];
|
|
3433
3454
|
break;
|
|
3434
3455
|
}
|
|
3435
3456
|
}
|
|
@@ -3438,92 +3459,92 @@ function qi(e, t) {
|
|
|
3438
3459
|
r = void 0;
|
|
3439
3460
|
return r;
|
|
3440
3461
|
}
|
|
3441
|
-
const Se = {},
|
|
3462
|
+
const Se = {}, Yi = (e, t, n) => n && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = n), n), er = (e, t) => {
|
|
3442
3463
|
if (t == null)
|
|
3443
3464
|
return;
|
|
3444
3465
|
if (t in Se && e in Se[t])
|
|
3445
3466
|
return Se[t][e];
|
|
3446
|
-
const n =
|
|
3467
|
+
const n = _t(t);
|
|
3447
3468
|
for (let r = 0; r < n.length; r++) {
|
|
3448
|
-
const i = n[r],
|
|
3449
|
-
if (
|
|
3450
|
-
return
|
|
3469
|
+
const i = n[r], o = eo(i, e);
|
|
3470
|
+
if (o)
|
|
3471
|
+
return Yi(e, t, o);
|
|
3451
3472
|
}
|
|
3452
3473
|
};
|
|
3453
|
-
let
|
|
3454
|
-
const
|
|
3455
|
-
function
|
|
3456
|
-
return
|
|
3474
|
+
let nn;
|
|
3475
|
+
const it = vt({});
|
|
3476
|
+
function Ki(e) {
|
|
3477
|
+
return nn[e] || null;
|
|
3457
3478
|
}
|
|
3458
|
-
function
|
|
3459
|
-
return e in
|
|
3479
|
+
function tr(e) {
|
|
3480
|
+
return e in nn;
|
|
3460
3481
|
}
|
|
3461
|
-
function
|
|
3462
|
-
if (!
|
|
3482
|
+
function eo(e, t) {
|
|
3483
|
+
if (!tr(e))
|
|
3463
3484
|
return null;
|
|
3464
|
-
const n =
|
|
3465
|
-
return
|
|
3485
|
+
const n = Ki(e);
|
|
3486
|
+
return Ji(n, t);
|
|
3466
3487
|
}
|
|
3467
|
-
function
|
|
3488
|
+
function to(e) {
|
|
3468
3489
|
if (e == null)
|
|
3469
3490
|
return;
|
|
3470
|
-
const t =
|
|
3491
|
+
const t = _t(e);
|
|
3471
3492
|
for (let n = 0; n < t.length; n++) {
|
|
3472
3493
|
const r = t[n];
|
|
3473
|
-
if (
|
|
3494
|
+
if (tr(r))
|
|
3474
3495
|
return r;
|
|
3475
3496
|
}
|
|
3476
3497
|
}
|
|
3477
|
-
function
|
|
3478
|
-
delete Se[e],
|
|
3498
|
+
function nr(e, ...t) {
|
|
3499
|
+
delete Se[e], it.update((n) => (n[e] = ii.all([n[e] || {}, ...t]), n));
|
|
3479
3500
|
}
|
|
3480
|
-
|
|
3481
|
-
[
|
|
3501
|
+
Xe(
|
|
3502
|
+
[it],
|
|
3482
3503
|
([e]) => Object.keys(e)
|
|
3483
3504
|
);
|
|
3484
|
-
|
|
3485
|
-
const
|
|
3486
|
-
function
|
|
3487
|
-
|
|
3505
|
+
it.subscribe((e) => nn = e);
|
|
3506
|
+
const dt = {};
|
|
3507
|
+
function no(e, t) {
|
|
3508
|
+
dt[e].delete(t), dt[e].size === 0 && delete dt[e];
|
|
3488
3509
|
}
|
|
3489
|
-
function
|
|
3490
|
-
return
|
|
3510
|
+
function rr(e) {
|
|
3511
|
+
return dt[e];
|
|
3491
3512
|
}
|
|
3492
|
-
function
|
|
3493
|
-
return
|
|
3494
|
-
const n =
|
|
3513
|
+
function ro(e) {
|
|
3514
|
+
return _t(e).map((t) => {
|
|
3515
|
+
const n = rr(t);
|
|
3495
3516
|
return [t, n ? [...n] : []];
|
|
3496
3517
|
}).filter(([, t]) => t.length > 0);
|
|
3497
3518
|
}
|
|
3498
3519
|
function Yt(e) {
|
|
3499
|
-
return e == null ? !1 :
|
|
3520
|
+
return e == null ? !1 : _t(e).some(
|
|
3500
3521
|
(t) => {
|
|
3501
3522
|
var n;
|
|
3502
|
-
return (n =
|
|
3523
|
+
return (n = rr(t)) == null ? void 0 : n.size;
|
|
3503
3524
|
}
|
|
3504
3525
|
);
|
|
3505
3526
|
}
|
|
3506
|
-
function
|
|
3527
|
+
function io(e, t) {
|
|
3507
3528
|
return Promise.all(
|
|
3508
|
-
t.map((r) => (
|
|
3509
|
-
).then((r) =>
|
|
3529
|
+
t.map((r) => (no(e, r), r().then((i) => i.default || i)))
|
|
3530
|
+
).then((r) => nr(e, ...r));
|
|
3510
3531
|
}
|
|
3511
|
-
const
|
|
3512
|
-
function
|
|
3532
|
+
const Ke = {};
|
|
3533
|
+
function ir(e) {
|
|
3513
3534
|
if (!Yt(e))
|
|
3514
|
-
return e in
|
|
3515
|
-
const t =
|
|
3516
|
-
return
|
|
3535
|
+
return e in Ke ? Ke[e] : Promise.resolve();
|
|
3536
|
+
const t = ro(e);
|
|
3537
|
+
return Ke[e] = Promise.all(
|
|
3517
3538
|
t.map(
|
|
3518
|
-
([n, r]) =>
|
|
3539
|
+
([n, r]) => io(n, r)
|
|
3519
3540
|
)
|
|
3520
3541
|
).then(() => {
|
|
3521
3542
|
if (Yt(e))
|
|
3522
|
-
return
|
|
3523
|
-
delete
|
|
3524
|
-
}),
|
|
3543
|
+
return ir(e);
|
|
3544
|
+
delete Ke[e];
|
|
3545
|
+
}), Ke[e];
|
|
3525
3546
|
}
|
|
3526
|
-
const
|
|
3547
|
+
const oo = {
|
|
3527
3548
|
number: {
|
|
3528
3549
|
scientific: { notation: "scientific" },
|
|
3529
3550
|
engineering: { notation: "engineering" },
|
|
@@ -3552,178 +3573,178 @@ const ra = {
|
|
|
3552
3573
|
timeZoneName: "short"
|
|
3553
3574
|
}
|
|
3554
3575
|
}
|
|
3555
|
-
},
|
|
3576
|
+
}, ao = {
|
|
3556
3577
|
fallbackLocale: null,
|
|
3557
3578
|
loadingDelay: 200,
|
|
3558
|
-
formats:
|
|
3579
|
+
formats: oo,
|
|
3559
3580
|
warnOnMissingMessages: !0,
|
|
3560
3581
|
handleMissingMessage: void 0,
|
|
3561
3582
|
ignoreTag: !0
|
|
3562
|
-
},
|
|
3563
|
-
function
|
|
3564
|
-
return
|
|
3583
|
+
}, so = ao;
|
|
3584
|
+
function ke() {
|
|
3585
|
+
return so;
|
|
3565
3586
|
}
|
|
3566
|
-
const $t =
|
|
3567
|
-
var
|
|
3587
|
+
const $t = vt(!1);
|
|
3588
|
+
var lo = Object.defineProperty, uo = Object.defineProperties, co = Object.getOwnPropertyDescriptors, En = Object.getOwnPropertySymbols, ho = Object.prototype.hasOwnProperty, fo = Object.prototype.propertyIsEnumerable, xn = (e, t, n) => t in e ? lo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, po = (e, t) => {
|
|
3568
3589
|
for (var n in t || (t = {}))
|
|
3569
|
-
|
|
3570
|
-
if (
|
|
3571
|
-
for (var n of
|
|
3572
|
-
|
|
3590
|
+
ho.call(t, n) && xn(e, n, t[n]);
|
|
3591
|
+
if (En)
|
|
3592
|
+
for (var n of En(t))
|
|
3593
|
+
fo.call(t, n) && xn(e, n, t[n]);
|
|
3573
3594
|
return e;
|
|
3574
|
-
},
|
|
3595
|
+
}, mo = (e, t) => uo(e, co(t));
|
|
3575
3596
|
let Kt;
|
|
3576
|
-
const
|
|
3577
|
-
function
|
|
3597
|
+
const bt = vt(null);
|
|
3598
|
+
function _n(e) {
|
|
3578
3599
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3579
3600
|
}
|
|
3580
|
-
function
|
|
3581
|
-
const n =
|
|
3582
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3601
|
+
function _t(e, t = ke().fallbackLocale) {
|
|
3602
|
+
const n = _n(e);
|
|
3603
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ..._n(t)])] : n;
|
|
3583
3604
|
}
|
|
3584
|
-
function
|
|
3605
|
+
function Oe() {
|
|
3585
3606
|
return Kt != null ? Kt : void 0;
|
|
3586
3607
|
}
|
|
3587
|
-
|
|
3608
|
+
bt.subscribe((e) => {
|
|
3588
3609
|
Kt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3589
3610
|
});
|
|
3590
|
-
const
|
|
3591
|
-
if (e &&
|
|
3592
|
-
const { loadingDelay: t } =
|
|
3611
|
+
const go = (e) => {
|
|
3612
|
+
if (e && to(e) && Yt(e)) {
|
|
3613
|
+
const { loadingDelay: t } = ke();
|
|
3593
3614
|
let n;
|
|
3594
|
-
return typeof window != "undefined" &&
|
|
3615
|
+
return typeof window != "undefined" && Oe() != null && t ? n = window.setTimeout(
|
|
3595
3616
|
() => $t.set(!0),
|
|
3596
3617
|
t
|
|
3597
|
-
) : $t.set(!0),
|
|
3598
|
-
|
|
3618
|
+
) : $t.set(!0), ir(e).then(() => {
|
|
3619
|
+
bt.set(e);
|
|
3599
3620
|
}).finally(() => {
|
|
3600
3621
|
clearTimeout(n), $t.set(!1);
|
|
3601
3622
|
});
|
|
3602
3623
|
}
|
|
3603
|
-
return
|
|
3604
|
-
},
|
|
3605
|
-
set:
|
|
3606
|
-
}),
|
|
3624
|
+
return bt.set(e);
|
|
3625
|
+
}, ze = mo(po({}, bt), {
|
|
3626
|
+
set: go
|
|
3627
|
+
}), Bt = (e) => {
|
|
3607
3628
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3608
3629
|
return (r) => {
|
|
3609
3630
|
const i = JSON.stringify(r);
|
|
3610
3631
|
return i in t ? t[i] : t[i] = e(r);
|
|
3611
3632
|
};
|
|
3612
3633
|
};
|
|
3613
|
-
var
|
|
3634
|
+
var bo = Object.defineProperty, yt = Object.getOwnPropertySymbols, or = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, Bn = (e, t, n) => t in e ? bo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, rn = (e, t) => {
|
|
3614
3635
|
for (var n in t || (t = {}))
|
|
3615
|
-
|
|
3616
|
-
if (
|
|
3617
|
-
for (var n of
|
|
3618
|
-
|
|
3636
|
+
or.call(t, n) && Bn(e, n, t[n]);
|
|
3637
|
+
if (yt)
|
|
3638
|
+
for (var n of yt(t))
|
|
3639
|
+
ar.call(t, n) && Bn(e, n, t[n]);
|
|
3619
3640
|
return e;
|
|
3620
|
-
},
|
|
3641
|
+
}, We = (e, t) => {
|
|
3621
3642
|
var n = {};
|
|
3622
3643
|
for (var r in e)
|
|
3623
|
-
|
|
3624
|
-
if (e != null &&
|
|
3625
|
-
for (var r of
|
|
3626
|
-
t.indexOf(r) < 0 &&
|
|
3644
|
+
or.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3645
|
+
if (e != null && yt)
|
|
3646
|
+
for (var r of yt(e))
|
|
3647
|
+
t.indexOf(r) < 0 && ar.call(e, r) && (n[r] = e[r]);
|
|
3627
3648
|
return n;
|
|
3628
3649
|
};
|
|
3629
|
-
const
|
|
3630
|
-
const { formats: n } =
|
|
3650
|
+
const rt = (e, t) => {
|
|
3651
|
+
const { formats: n } = ke();
|
|
3631
3652
|
if (e in n && t in n[e])
|
|
3632
3653
|
return n[e][t];
|
|
3633
3654
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3634
|
-
},
|
|
3655
|
+
}, yo = Bt(
|
|
3635
3656
|
(e) => {
|
|
3636
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3657
|
+
var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
|
|
3637
3658
|
if (n == null)
|
|
3638
3659
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3639
|
-
return r && (i =
|
|
3660
|
+
return r && (i = rt("number", r)), new Intl.NumberFormat(n, i);
|
|
3640
3661
|
}
|
|
3641
|
-
),
|
|
3662
|
+
), vo = Bt(
|
|
3642
3663
|
(e) => {
|
|
3643
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3664
|
+
var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
|
|
3644
3665
|
if (n == null)
|
|
3645
3666
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3646
|
-
return r ? i =
|
|
3667
|
+
return r ? i = rt("date", r) : Object.keys(i).length === 0 && (i = rt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3647
3668
|
}
|
|
3648
|
-
),
|
|
3669
|
+
), Eo = Bt(
|
|
3649
3670
|
(e) => {
|
|
3650
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3671
|
+
var t = e, { locale: n, format: r } = t, i = We(t, ["locale", "format"]);
|
|
3651
3672
|
if (n == null)
|
|
3652
3673
|
throw new Error(
|
|
3653
3674
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3654
3675
|
);
|
|
3655
|
-
return r ? i =
|
|
3676
|
+
return r ? i = rt("time", r) : Object.keys(i).length === 0 && (i = rt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3656
3677
|
}
|
|
3657
|
-
),
|
|
3678
|
+
), xo = (e = {}) => {
|
|
3658
3679
|
var t = e, {
|
|
3659
|
-
locale: n =
|
|
3660
|
-
} = t, r =
|
|
3680
|
+
locale: n = Oe()
|
|
3681
|
+
} = t, r = We(t, [
|
|
3661
3682
|
"locale"
|
|
3662
3683
|
]);
|
|
3663
|
-
return
|
|
3664
|
-
},
|
|
3684
|
+
return yo(rn({ locale: n }, r));
|
|
3685
|
+
}, _o = (e = {}) => {
|
|
3665
3686
|
var t = e, {
|
|
3666
|
-
locale: n =
|
|
3667
|
-
} = t, r =
|
|
3687
|
+
locale: n = Oe()
|
|
3688
|
+
} = t, r = We(t, [
|
|
3668
3689
|
"locale"
|
|
3669
3690
|
]);
|
|
3670
|
-
return
|
|
3671
|
-
},
|
|
3691
|
+
return vo(rn({ locale: n }, r));
|
|
3692
|
+
}, Bo = (e = {}) => {
|
|
3672
3693
|
var t = e, {
|
|
3673
|
-
locale: n =
|
|
3674
|
-
} = t, r =
|
|
3694
|
+
locale: n = Oe()
|
|
3695
|
+
} = t, r = We(t, [
|
|
3675
3696
|
"locale"
|
|
3676
3697
|
]);
|
|
3677
|
-
return
|
|
3678
|
-
},
|
|
3698
|
+
return Eo(rn({ locale: n }, r));
|
|
3699
|
+
}, To = Bt(
|
|
3679
3700
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3680
|
-
(e, t =
|
|
3681
|
-
ignoreTag:
|
|
3701
|
+
(e, t = Oe()) => new Qi(e, t, ke().formats, {
|
|
3702
|
+
ignoreTag: ke().ignoreTag
|
|
3682
3703
|
})
|
|
3683
|
-
),
|
|
3684
|
-
var n, r, i,
|
|
3704
|
+
), wo = (e, t = {}) => {
|
|
3705
|
+
var n, r, i, o;
|
|
3685
3706
|
let l = t;
|
|
3686
3707
|
typeof e == "object" && (l = e, e = l.id);
|
|
3687
3708
|
const {
|
|
3688
|
-
values:
|
|
3689
|
-
locale: c =
|
|
3709
|
+
values: s,
|
|
3710
|
+
locale: c = Oe(),
|
|
3690
3711
|
default: u
|
|
3691
3712
|
} = l;
|
|
3692
3713
|
if (c == null)
|
|
3693
3714
|
throw new Error(
|
|
3694
3715
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3695
3716
|
);
|
|
3696
|
-
let d =
|
|
3717
|
+
let d = er(e, c);
|
|
3697
3718
|
if (!d)
|
|
3698
|
-
d = (
|
|
3719
|
+
d = (o = (i = (r = (n = ke()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3699
3720
|
else if (typeof d != "string")
|
|
3700
3721
|
return console.warn(
|
|
3701
3722
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3702
3723
|
), d;
|
|
3703
|
-
if (!
|
|
3724
|
+
if (!s)
|
|
3704
3725
|
return d;
|
|
3705
|
-
let
|
|
3726
|
+
let g = d;
|
|
3706
3727
|
try {
|
|
3707
|
-
|
|
3708
|
-
} catch (
|
|
3709
|
-
|
|
3728
|
+
g = To(d, c).format(s);
|
|
3729
|
+
} catch (b) {
|
|
3730
|
+
b instanceof Error && console.warn(
|
|
3710
3731
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3711
|
-
|
|
3732
|
+
b.message
|
|
3712
3733
|
);
|
|
3713
3734
|
}
|
|
3714
|
-
return
|
|
3715
|
-
},
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
function
|
|
3721
|
-
|
|
3722
|
-
}
|
|
3723
|
-
function
|
|
3724
|
-
|
|
3725
|
-
}
|
|
3726
|
-
const
|
|
3735
|
+
return g;
|
|
3736
|
+
}, So = (e, t) => Bo(t).format(e), Ao = (e, t) => _o(t).format(e), Co = (e, t) => xo(t).format(e), Ho = (e, t = Oe()) => er(e, t), Oo = Xe([ze, it], () => wo);
|
|
3737
|
+
Xe([ze], () => So);
|
|
3738
|
+
Xe([ze], () => Ao);
|
|
3739
|
+
Xe([ze], () => Co);
|
|
3740
|
+
Xe([ze, it], () => Ho);
|
|
3741
|
+
function Tn(e, t) {
|
|
3742
|
+
nr(e, t);
|
|
3743
|
+
}
|
|
3744
|
+
function Ro(e) {
|
|
3745
|
+
ze.set(e);
|
|
3746
|
+
}
|
|
3747
|
+
const wn = {
|
|
3727
3748
|
en: {
|
|
3728
3749
|
Title: "Your Balance",
|
|
3729
3750
|
Total: "Total Balance",
|
|
@@ -3931,35 +3952,35 @@ var en = { exports: {} };
|
|
|
3931
3952
|
*/
|
|
3932
3953
|
(function(e, t) {
|
|
3933
3954
|
(function(n) {
|
|
3934
|
-
var r = n.setTimeout, i = n.clearTimeout,
|
|
3935
|
-
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(
|
|
3955
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, l = n.XDomainRequest, s = n.ActiveXObject, c = n.EventSource, u = n.document, d = n.Promise, g = n.fetch, b = n.Response, _ = n.TextDecoder, B = n.TextEncoder, T = n.AbortController;
|
|
3956
|
+
if (typeof window != "undefined" && typeof u != "undefined" && !("readyState" in u) && u.body == null && (u.readyState = "loading", window.addEventListener("load", function(a) {
|
|
3936
3957
|
u.readyState = "complete";
|
|
3937
|
-
}, !1)),
|
|
3938
|
-
return new
|
|
3939
|
-
}), Object.create == null && (Object.create = function(
|
|
3940
|
-
function
|
|
3958
|
+
}, !1)), o == null && s != null && (o = function() {
|
|
3959
|
+
return new s("Microsoft.XMLHTTP");
|
|
3960
|
+
}), Object.create == null && (Object.create = function(a) {
|
|
3961
|
+
function f() {
|
|
3941
3962
|
}
|
|
3942
|
-
return
|
|
3963
|
+
return f.prototype = a, new f();
|
|
3943
3964
|
}), Date.now || (Date.now = function() {
|
|
3944
3965
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3945
|
-
}),
|
|
3946
|
-
var
|
|
3947
|
-
|
|
3948
|
-
var p =
|
|
3949
|
-
return
|
|
3950
|
-
var
|
|
3951
|
-
return p._reader =
|
|
3952
|
-
status:
|
|
3953
|
-
statusText:
|
|
3954
|
-
headers:
|
|
3966
|
+
}), T == null) {
|
|
3967
|
+
var x = g;
|
|
3968
|
+
g = function(a, f) {
|
|
3969
|
+
var p = f.signal;
|
|
3970
|
+
return x(a, { headers: f.headers, credentials: f.credentials, cache: f.cache }).then(function(h) {
|
|
3971
|
+
var E = h.body.getReader();
|
|
3972
|
+
return p._reader = E, p._aborted && p._reader.cancel(), {
|
|
3973
|
+
status: h.status,
|
|
3974
|
+
statusText: h.statusText,
|
|
3975
|
+
headers: h.headers,
|
|
3955
3976
|
body: {
|
|
3956
3977
|
getReader: function() {
|
|
3957
|
-
return
|
|
3978
|
+
return E;
|
|
3958
3979
|
}
|
|
3959
3980
|
}
|
|
3960
3981
|
};
|
|
3961
3982
|
});
|
|
3962
|
-
},
|
|
3983
|
+
}, T = function() {
|
|
3963
3984
|
this.signal = {
|
|
3964
3985
|
_reader: null,
|
|
3965
3986
|
_aborted: !1
|
|
@@ -3968,407 +3989,407 @@ var en = { exports: {} };
|
|
|
3968
3989
|
};
|
|
3969
3990
|
};
|
|
3970
3991
|
}
|
|
3971
|
-
function
|
|
3992
|
+
function S() {
|
|
3972
3993
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
3973
3994
|
}
|
|
3974
|
-
|
|
3975
|
-
function
|
|
3976
|
-
if (
|
|
3977
|
-
return
|
|
3978
|
-
if (
|
|
3979
|
-
return
|
|
3980
|
-
if (
|
|
3981
|
-
return
|
|
3995
|
+
S.prototype.decode = function(a) {
|
|
3996
|
+
function f(P, G, w) {
|
|
3997
|
+
if (w === 1)
|
|
3998
|
+
return P >= 128 >> G && P << G <= 2047;
|
|
3999
|
+
if (w === 2)
|
|
4000
|
+
return P >= 2048 >> G && P << G <= 55295 || P >= 57344 >> G && P << G <= 65535;
|
|
4001
|
+
if (w === 3)
|
|
4002
|
+
return P >= 65536 >> G && P << G <= 1114111;
|
|
3982
4003
|
throw new Error();
|
|
3983
4004
|
}
|
|
3984
|
-
function p(
|
|
3985
|
-
if (
|
|
3986
|
-
return
|
|
3987
|
-
if (
|
|
3988
|
-
return
|
|
3989
|
-
if (
|
|
4005
|
+
function p(P, G) {
|
|
4006
|
+
if (P === 6 * 1)
|
|
4007
|
+
return G >> 6 > 15 ? 3 : G > 31 ? 2 : 1;
|
|
4008
|
+
if (P === 6 * 2)
|
|
4009
|
+
return G > 15 ? 3 : 2;
|
|
4010
|
+
if (P === 6 * 3)
|
|
3990
4011
|
return 3;
|
|
3991
4012
|
throw new Error();
|
|
3992
4013
|
}
|
|
3993
|
-
for (var
|
|
3994
|
-
var
|
|
3995
|
-
v !== 0 && (
|
|
4014
|
+
for (var h = 65533, E = "", v = this.bitsNeeded, m = this.codePoint, L = 0; L < a.length; L += 1) {
|
|
4015
|
+
var A = a[L];
|
|
4016
|
+
v !== 0 && (A < 128 || A > 191 || !f(m << 6 | A & 63, v - 6, p(v, m))) && (v = 0, m = h, E += String.fromCharCode(m)), v === 0 ? (A >= 0 && A <= 127 ? (v = 0, m = A) : A >= 192 && A <= 223 ? (v = 6 * 1, m = A & 31) : A >= 224 && A <= 239 ? (v = 6 * 2, m = A & 15) : A >= 240 && A <= 247 ? (v = 6 * 3, m = A & 7) : (v = 0, m = h), v !== 0 && !f(m, v, p(v, m)) && (v = 0, m = h)) : (v -= 6, m = m << 6 | A & 63), v === 0 && (m <= 65535 ? E += String.fromCharCode(m) : (E += String.fromCharCode(55296 + (m - 65535 - 1 >> 10)), E += String.fromCharCode(56320 + (m - 65535 - 1 & 1023))));
|
|
3996
4017
|
}
|
|
3997
|
-
return this.bitsNeeded = v, this.codePoint =
|
|
4018
|
+
return this.bitsNeeded = v, this.codePoint = m, E;
|
|
3998
4019
|
};
|
|
3999
|
-
var
|
|
4020
|
+
var D = function() {
|
|
4000
4021
|
try {
|
|
4001
|
-
return new
|
|
4002
|
-
} catch (
|
|
4003
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " +
|
|
4022
|
+
return new _().decode(new B().encode("test"), { stream: !0 }) === "test";
|
|
4023
|
+
} catch (a) {
|
|
4024
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + a);
|
|
4004
4025
|
}
|
|
4005
4026
|
return !1;
|
|
4006
4027
|
};
|
|
4007
|
-
(
|
|
4008
|
-
var
|
|
4028
|
+
(_ == null || B == null || !D()) && (_ = S);
|
|
4029
|
+
var H = function() {
|
|
4009
4030
|
};
|
|
4010
|
-
function
|
|
4011
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
4031
|
+
function U(a) {
|
|
4032
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = H, this.onload = H, this.onerror = H, this.onreadystatechange = H, this._contentType = "", this._xhr = a, this._sendTimeout = 0, this._abort = H;
|
|
4012
4033
|
}
|
|
4013
|
-
|
|
4034
|
+
U.prototype.open = function(a, f) {
|
|
4014
4035
|
this._abort(!0);
|
|
4015
|
-
var p = this,
|
|
4016
|
-
this._abort = function(
|
|
4017
|
-
p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (
|
|
4036
|
+
var p = this, h = this._xhr, E = 1, v = 0;
|
|
4037
|
+
this._abort = function(w) {
|
|
4038
|
+
p._sendTimeout !== 0 && (i(p._sendTimeout), p._sendTimeout = 0), (E === 1 || E === 2 || E === 3) && (E = 4, h.onload = H, h.onerror = H, h.onabort = H, h.onprogress = H, h.onreadystatechange = H, h.abort(), v !== 0 && (i(v), v = 0), w || (p.readyState = 4, p.onabort(null), p.onreadystatechange())), E = 0;
|
|
4018
4039
|
};
|
|
4019
|
-
var
|
|
4020
|
-
if (
|
|
4021
|
-
var
|
|
4022
|
-
if ("contentType" in
|
|
4023
|
-
|
|
4040
|
+
var m = function() {
|
|
4041
|
+
if (E === 1) {
|
|
4042
|
+
var w = 0, V = "", be = void 0;
|
|
4043
|
+
if ("contentType" in h)
|
|
4044
|
+
w = 200, V = "OK", be = h.contentType;
|
|
4024
4045
|
else
|
|
4025
4046
|
try {
|
|
4026
|
-
|
|
4027
|
-
} catch (
|
|
4028
|
-
|
|
4047
|
+
w = h.status, V = h.statusText, be = h.getResponseHeader("Content-Type");
|
|
4048
|
+
} catch (Je) {
|
|
4049
|
+
w = 0, V = "", be = void 0;
|
|
4029
4050
|
}
|
|
4030
|
-
|
|
4051
|
+
w !== 0 && (E = 2, p.readyState = 2, p.status = w, p.statusText = V, p._contentType = be, p.onreadystatechange());
|
|
4031
4052
|
}
|
|
4032
|
-
},
|
|
4033
|
-
if (
|
|
4034
|
-
|
|
4035
|
-
var
|
|
4053
|
+
}, L = function() {
|
|
4054
|
+
if (m(), E === 2 || E === 3) {
|
|
4055
|
+
E = 3;
|
|
4056
|
+
var w = "";
|
|
4036
4057
|
try {
|
|
4037
|
-
|
|
4038
|
-
} catch (
|
|
4058
|
+
w = h.responseText;
|
|
4059
|
+
} catch (V) {
|
|
4039
4060
|
}
|
|
4040
|
-
p.readyState = 3, p.responseText =
|
|
4061
|
+
p.readyState = 3, p.responseText = w, p.onprogress();
|
|
4041
4062
|
}
|
|
4042
|
-
},
|
|
4043
|
-
if ((
|
|
4044
|
-
preventDefault:
|
|
4045
|
-
}),
|
|
4046
|
-
if (
|
|
4047
|
-
p.onload(
|
|
4048
|
-
else if (
|
|
4049
|
-
p.onerror(
|
|
4050
|
-
else if (
|
|
4051
|
-
p.onabort(
|
|
4063
|
+
}, A = function(w, V) {
|
|
4064
|
+
if ((V == null || V.preventDefault == null) && (V = {
|
|
4065
|
+
preventDefault: H
|
|
4066
|
+
}), L(), E === 1 || E === 2 || E === 3) {
|
|
4067
|
+
if (E = 4, v !== 0 && (i(v), v = 0), p.readyState = 4, w === "load")
|
|
4068
|
+
p.onload(V);
|
|
4069
|
+
else if (w === "error")
|
|
4070
|
+
p.onerror(V);
|
|
4071
|
+
else if (w === "abort")
|
|
4072
|
+
p.onabort(V);
|
|
4052
4073
|
else
|
|
4053
4074
|
throw new TypeError();
|
|
4054
4075
|
p.onreadystatechange();
|
|
4055
4076
|
}
|
|
4056
|
-
},
|
|
4057
|
-
|
|
4058
|
-
},
|
|
4077
|
+
}, P = function(w) {
|
|
4078
|
+
h != null && (h.readyState === 4 ? (!("onload" in h) || !("onerror" in h) || !("onabort" in h)) && A(h.responseText === "" ? "error" : "load", w) : h.readyState === 3 ? "onprogress" in h || L() : h.readyState === 2 && m());
|
|
4079
|
+
}, G = function() {
|
|
4059
4080
|
v = r(function() {
|
|
4060
|
-
|
|
4061
|
-
}, 500),
|
|
4081
|
+
G();
|
|
4082
|
+
}, 500), h.readyState === 3 && L();
|
|
4062
4083
|
};
|
|
4063
|
-
"onload" in
|
|
4064
|
-
|
|
4065
|
-
}), "onerror" in
|
|
4066
|
-
|
|
4067
|
-
}), "onabort" in
|
|
4068
|
-
|
|
4069
|
-
}), "onprogress" in
|
|
4070
|
-
|
|
4071
|
-
}), ("contentType" in
|
|
4072
|
-
|
|
4084
|
+
"onload" in h && (h.onload = function(w) {
|
|
4085
|
+
A("load", w);
|
|
4086
|
+
}), "onerror" in h && (h.onerror = function(w) {
|
|
4087
|
+
A("error", w);
|
|
4088
|
+
}), "onabort" in h && (h.onabort = function(w) {
|
|
4089
|
+
A("abort", w);
|
|
4090
|
+
}), "onprogress" in h && (h.onprogress = L), "onreadystatechange" in h && (h.onreadystatechange = function(w) {
|
|
4091
|
+
P(w);
|
|
4092
|
+
}), ("contentType" in h || !("ontimeout" in o.prototype)) && (f += (f.indexOf("?") === -1 ? "?" : "&") + "padding=true"), h.open(a, f, !0), "readyState" in h && (v = r(function() {
|
|
4093
|
+
G();
|
|
4073
4094
|
}, 0));
|
|
4074
|
-
},
|
|
4095
|
+
}, U.prototype.abort = function() {
|
|
4075
4096
|
this._abort(!1);
|
|
4076
|
-
},
|
|
4097
|
+
}, U.prototype.getResponseHeader = function(a) {
|
|
4077
4098
|
return this._contentType;
|
|
4078
|
-
},
|
|
4099
|
+
}, U.prototype.setRequestHeader = function(a, f) {
|
|
4079
4100
|
var p = this._xhr;
|
|
4080
|
-
"setRequestHeader" in p && p.setRequestHeader(
|
|
4081
|
-
},
|
|
4101
|
+
"setRequestHeader" in p && p.setRequestHeader(a, f);
|
|
4102
|
+
}, U.prototype.getAllResponseHeaders = function() {
|
|
4082
4103
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4083
|
-
},
|
|
4084
|
-
if ((!("ontimeout" in
|
|
4085
|
-
var
|
|
4086
|
-
|
|
4087
|
-
|
|
4104
|
+
}, U.prototype.send = function() {
|
|
4105
|
+
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && u != null && u.readyState != null && u.readyState !== "complete") {
|
|
4106
|
+
var a = this;
|
|
4107
|
+
a._sendTimeout = r(function() {
|
|
4108
|
+
a._sendTimeout = 0, a.send();
|
|
4088
4109
|
}, 4);
|
|
4089
4110
|
return;
|
|
4090
4111
|
}
|
|
4091
|
-
var
|
|
4092
|
-
"withCredentials" in
|
|
4112
|
+
var f = this._xhr;
|
|
4113
|
+
"withCredentials" in f && (f.withCredentials = this.withCredentials);
|
|
4093
4114
|
try {
|
|
4094
|
-
|
|
4115
|
+
f.send(void 0);
|
|
4095
4116
|
} catch (p) {
|
|
4096
4117
|
throw p;
|
|
4097
4118
|
}
|
|
4098
4119
|
};
|
|
4099
|
-
function
|
|
4100
|
-
return
|
|
4101
|
-
return String.fromCharCode(
|
|
4120
|
+
function W(a) {
|
|
4121
|
+
return a.replace(/[A-Z]/g, function(f) {
|
|
4122
|
+
return String.fromCharCode(f.charCodeAt(0) + 32);
|
|
4102
4123
|
});
|
|
4103
4124
|
}
|
|
4104
|
-
function
|
|
4105
|
-
for (var
|
|
4106
|
-
`),
|
|
4107
|
-
var
|
|
4108
|
-
|
|
4125
|
+
function q(a) {
|
|
4126
|
+
for (var f = /* @__PURE__ */ Object.create(null), p = a.split(`\r
|
|
4127
|
+
`), h = 0; h < p.length; h += 1) {
|
|
4128
|
+
var E = p[h], v = E.split(": "), m = v.shift(), L = v.join(": ");
|
|
4129
|
+
f[W(m)] = L;
|
|
4109
4130
|
}
|
|
4110
|
-
this._map =
|
|
4131
|
+
this._map = f;
|
|
4111
4132
|
}
|
|
4112
|
-
|
|
4113
|
-
return this._map[
|
|
4114
|
-
},
|
|
4115
|
-
function
|
|
4133
|
+
q.prototype.get = function(a) {
|
|
4134
|
+
return this._map[W(a)];
|
|
4135
|
+
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4136
|
+
function Y() {
|
|
4116
4137
|
}
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
var
|
|
4120
|
-
|
|
4121
|
-
var
|
|
4122
|
-
|
|
4123
|
-
},
|
|
4124
|
-
|
|
4125
|
-
},
|
|
4126
|
-
|
|
4127
|
-
},
|
|
4128
|
-
|
|
4129
|
-
},
|
|
4130
|
-
if (
|
|
4131
|
-
var
|
|
4132
|
-
|
|
4138
|
+
Y.prototype.open = function(a, f, p, h, E, v, m) {
|
|
4139
|
+
a.open("GET", E);
|
|
4140
|
+
var L = 0;
|
|
4141
|
+
a.onprogress = function() {
|
|
4142
|
+
var P = a.responseText, G = P.slice(L);
|
|
4143
|
+
L += G.length, p(G);
|
|
4144
|
+
}, a.onerror = function(P) {
|
|
4145
|
+
P.preventDefault(), h(new Error("NetworkError"));
|
|
4146
|
+
}, a.onload = function() {
|
|
4147
|
+
h(null);
|
|
4148
|
+
}, a.onabort = function() {
|
|
4149
|
+
h(null);
|
|
4150
|
+
}, a.onreadystatechange = function() {
|
|
4151
|
+
if (a.readyState === o.HEADERS_RECEIVED) {
|
|
4152
|
+
var P = a.status, G = a.statusText, w = a.getResponseHeader("Content-Type"), V = a.getAllResponseHeaders();
|
|
4153
|
+
f(P, G, w, new q(V));
|
|
4133
4154
|
}
|
|
4134
|
-
},
|
|
4135
|
-
for (var
|
|
4136
|
-
Object.prototype.hasOwnProperty.call(
|
|
4137
|
-
return
|
|
4155
|
+
}, a.withCredentials = v;
|
|
4156
|
+
for (var A in m)
|
|
4157
|
+
Object.prototype.hasOwnProperty.call(m, A) && a.setRequestHeader(A, m[A]);
|
|
4158
|
+
return a.send(), a;
|
|
4138
4159
|
};
|
|
4139
|
-
function
|
|
4140
|
-
this._headers =
|
|
4160
|
+
function $(a) {
|
|
4161
|
+
this._headers = a;
|
|
4141
4162
|
}
|
|
4142
|
-
|
|
4143
|
-
return this._headers.get(
|
|
4163
|
+
$.prototype.get = function(a) {
|
|
4164
|
+
return this._headers.get(a);
|
|
4144
4165
|
};
|
|
4145
|
-
function
|
|
4166
|
+
function R() {
|
|
4146
4167
|
}
|
|
4147
|
-
|
|
4148
|
-
var
|
|
4149
|
-
return
|
|
4150
|
-
headers:
|
|
4168
|
+
R.prototype.open = function(a, f, p, h, E, v, m) {
|
|
4169
|
+
var L = null, A = new T(), P = A.signal, G = new _();
|
|
4170
|
+
return g(E, {
|
|
4171
|
+
headers: m,
|
|
4151
4172
|
credentials: v ? "include" : "same-origin",
|
|
4152
|
-
signal:
|
|
4173
|
+
signal: P,
|
|
4153
4174
|
cache: "no-store"
|
|
4154
|
-
}).then(function(
|
|
4155
|
-
return
|
|
4156
|
-
var
|
|
4157
|
-
|
|
4175
|
+
}).then(function(w) {
|
|
4176
|
+
return L = w.body.getReader(), f(w.status, w.statusText, w.headers.get("Content-Type"), new $(w.headers)), new d(function(V, be) {
|
|
4177
|
+
var Je = function() {
|
|
4178
|
+
L.read().then(function(ie) {
|
|
4158
4179
|
if (ie.done)
|
|
4159
|
-
|
|
4180
|
+
V(void 0);
|
|
4160
4181
|
else {
|
|
4161
|
-
var
|
|
4162
|
-
p(
|
|
4182
|
+
var K = G.decode(ie.value, { stream: !0 });
|
|
4183
|
+
p(K), Je();
|
|
4163
4184
|
}
|
|
4164
4185
|
}).catch(function(ie) {
|
|
4165
|
-
|
|
4186
|
+
be(ie);
|
|
4166
4187
|
});
|
|
4167
4188
|
};
|
|
4168
|
-
|
|
4189
|
+
Je();
|
|
4169
4190
|
});
|
|
4170
|
-
}).catch(function(
|
|
4171
|
-
if (
|
|
4172
|
-
return
|
|
4173
|
-
}).then(function(
|
|
4174
|
-
|
|
4191
|
+
}).catch(function(w) {
|
|
4192
|
+
if (w.name !== "AbortError")
|
|
4193
|
+
return w;
|
|
4194
|
+
}).then(function(w) {
|
|
4195
|
+
h(w);
|
|
4175
4196
|
}), {
|
|
4176
4197
|
abort: function() {
|
|
4177
|
-
|
|
4198
|
+
L != null && L.cancel(), A.abort();
|
|
4178
4199
|
}
|
|
4179
4200
|
};
|
|
4180
4201
|
};
|
|
4181
|
-
function
|
|
4202
|
+
function X() {
|
|
4182
4203
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4183
4204
|
}
|
|
4184
|
-
function
|
|
4205
|
+
function F(a) {
|
|
4185
4206
|
r(function() {
|
|
4186
|
-
throw
|
|
4207
|
+
throw a;
|
|
4187
4208
|
}, 0);
|
|
4188
4209
|
}
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
var
|
|
4192
|
-
if (
|
|
4193
|
-
for (var p =
|
|
4194
|
-
var
|
|
4210
|
+
X.prototype.dispatchEvent = function(a) {
|
|
4211
|
+
a.target = this;
|
|
4212
|
+
var f = this._listeners[a.type];
|
|
4213
|
+
if (f != null)
|
|
4214
|
+
for (var p = f.length, h = 0; h < p; h += 1) {
|
|
4215
|
+
var E = f[h];
|
|
4195
4216
|
try {
|
|
4196
|
-
typeof
|
|
4217
|
+
typeof E.handleEvent == "function" ? E.handleEvent(a) : E.call(this, a);
|
|
4197
4218
|
} catch (v) {
|
|
4198
|
-
|
|
4219
|
+
F(v);
|
|
4199
4220
|
}
|
|
4200
4221
|
}
|
|
4201
|
-
},
|
|
4202
|
-
|
|
4203
|
-
var p = this._listeners,
|
|
4204
|
-
|
|
4205
|
-
for (var
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
},
|
|
4209
|
-
|
|
4210
|
-
var p = this._listeners,
|
|
4211
|
-
if (
|
|
4212
|
-
for (var
|
|
4213
|
-
|
|
4214
|
-
|
|
4222
|
+
}, X.prototype.addEventListener = function(a, f) {
|
|
4223
|
+
a = String(a);
|
|
4224
|
+
var p = this._listeners, h = p[a];
|
|
4225
|
+
h == null && (h = [], p[a] = h);
|
|
4226
|
+
for (var E = !1, v = 0; v < h.length; v += 1)
|
|
4227
|
+
h[v] === f && (E = !0);
|
|
4228
|
+
E || h.push(f);
|
|
4229
|
+
}, X.prototype.removeEventListener = function(a, f) {
|
|
4230
|
+
a = String(a);
|
|
4231
|
+
var p = this._listeners, h = p[a];
|
|
4232
|
+
if (h != null) {
|
|
4233
|
+
for (var E = [], v = 0; v < h.length; v += 1)
|
|
4234
|
+
h[v] !== f && E.push(h[v]);
|
|
4235
|
+
E.length === 0 ? delete p[a] : p[a] = E;
|
|
4215
4236
|
}
|
|
4216
4237
|
};
|
|
4217
|
-
function
|
|
4218
|
-
this.type =
|
|
4238
|
+
function y(a) {
|
|
4239
|
+
this.type = a, this.target = void 0;
|
|
4219
4240
|
}
|
|
4220
|
-
function
|
|
4221
|
-
|
|
4241
|
+
function _e(a, f) {
|
|
4242
|
+
y.call(this, a), this.data = f.data, this.lastEventId = f.lastEventId;
|
|
4222
4243
|
}
|
|
4223
|
-
|
|
4224
|
-
function
|
|
4225
|
-
|
|
4244
|
+
_e.prototype = Object.create(y.prototype);
|
|
4245
|
+
function Ze(a, f) {
|
|
4246
|
+
y.call(this, a), this.status = f.status, this.statusText = f.statusText, this.headers = f.headers;
|
|
4226
4247
|
}
|
|
4227
|
-
|
|
4228
|
-
function
|
|
4229
|
-
|
|
4248
|
+
Ze.prototype = Object.create(y.prototype);
|
|
4249
|
+
function Be(a, f) {
|
|
4250
|
+
y.call(this, a), this.error = f.error;
|
|
4230
4251
|
}
|
|
4231
|
-
|
|
4232
|
-
var
|
|
4233
|
-
var p =
|
|
4234
|
-
return p !== p && (p =
|
|
4235
|
-
},
|
|
4236
|
-
return Math.min(Math.max(
|
|
4237
|
-
}, we = function(
|
|
4252
|
+
Be.prototype = Object.create(y.prototype);
|
|
4253
|
+
var Re = -1, me = 0, Te = 1, Ae = 2, Ce = -1, ue = 0, qe = 1, Le = 2, ot = 3, Tt = /^text\/event\-stream(;.*)?$/i, at = 1e3, wt = 18e6, Qe = function(a, f) {
|
|
4254
|
+
var p = a == null ? f : parseInt(a, 10);
|
|
4255
|
+
return p !== p && (p = f), Me(p);
|
|
4256
|
+
}, Me = function(a) {
|
|
4257
|
+
return Math.min(Math.max(a, at), wt);
|
|
4258
|
+
}, we = function(a, f, p) {
|
|
4238
4259
|
try {
|
|
4239
|
-
typeof
|
|
4240
|
-
} catch (
|
|
4241
|
-
|
|
4260
|
+
typeof f == "function" && f.call(a, p);
|
|
4261
|
+
} catch (h) {
|
|
4262
|
+
F(h);
|
|
4242
4263
|
}
|
|
4243
4264
|
};
|
|
4244
|
-
function re(
|
|
4245
|
-
|
|
4265
|
+
function re(a, f) {
|
|
4266
|
+
X.call(this), f = f || {}, 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, Ct(this, a, f);
|
|
4246
4267
|
}
|
|
4247
4268
|
function St() {
|
|
4248
|
-
return
|
|
4269
|
+
return o != null && "withCredentials" in o.prototype || l == null ? new o() : new l();
|
|
4249
4270
|
}
|
|
4250
|
-
var At =
|
|
4251
|
-
function Ct(
|
|
4252
|
-
|
|
4253
|
-
var
|
|
4254
|
-
if (
|
|
4255
|
-
if (Z === 200 &&
|
|
4256
|
-
|
|
4257
|
-
var
|
|
4271
|
+
var At = g != null && b != null && "body" in b.prototype;
|
|
4272
|
+
function Ct(a, f, p) {
|
|
4273
|
+
f = String(f);
|
|
4274
|
+
var h = !!p.withCredentials, E = p.lastEventIdQueryParameterName || "lastEventId", v = Me(1e3), m = Qe(p.heartbeatTimeout, 45e3), L = "", A = v, P = !1, G = 0, w = p.headers || {}, V = p.Transport, be = At && V == null ? void 0 : new U(V != null ? new V() : St()), Je = V != null && typeof V != "string" ? new V() : be == null ? new R() : new Y(), ie = void 0, K = 0, ce = Re, Ne = "", lt = "", ye = "", ut = "", ee = ue, Ht = 0, He = 0, lr = function(Z, z, oe, ae) {
|
|
4275
|
+
if (ce === me)
|
|
4276
|
+
if (Z === 200 && oe != null && Tt.test(oe)) {
|
|
4277
|
+
ce = Te, P = Date.now(), A = v, a.readyState = Te;
|
|
4278
|
+
var te = new Ze("open", {
|
|
4258
4279
|
status: Z,
|
|
4259
4280
|
statusText: z,
|
|
4260
|
-
headers:
|
|
4281
|
+
headers: ae
|
|
4261
4282
|
});
|
|
4262
|
-
|
|
4283
|
+
a.dispatchEvent(te), we(a, a.onopen, te);
|
|
4263
4284
|
} else {
|
|
4264
|
-
var
|
|
4265
|
-
Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")),
|
|
4266
|
-
var
|
|
4285
|
+
var Q = "";
|
|
4286
|
+
Z !== 200 ? (z && (z = z.replace(/\s+/g, " ")), Q = "EventSource's response has a status " + Z + " " + z + " that is not 200. Aborting the connection.") : Q = "EventSource's response has a Content-Type specifying an unsupported type: " + (oe == null ? "-" : oe.replace(/\s+/g, " ")) + ". Aborting the connection.", Ot();
|
|
4287
|
+
var te = new Ze("error", {
|
|
4267
4288
|
status: Z,
|
|
4268
4289
|
statusText: z,
|
|
4269
|
-
headers:
|
|
4290
|
+
headers: ae
|
|
4270
4291
|
});
|
|
4271
|
-
|
|
4292
|
+
a.dispatchEvent(te), we(a, a.onerror, te), console.error(Q);
|
|
4272
4293
|
}
|
|
4273
|
-
},
|
|
4274
|
-
if (
|
|
4275
|
-
for (var z = -1,
|
|
4276
|
-
var
|
|
4277
|
-
(
|
|
4294
|
+
}, ur = function(Z) {
|
|
4295
|
+
if (ce === Te) {
|
|
4296
|
+
for (var z = -1, oe = 0; oe < Z.length; oe += 1) {
|
|
4297
|
+
var ae = Z.charCodeAt(oe);
|
|
4298
|
+
(ae === 10 || ae === 13) && (z = oe);
|
|
4278
4299
|
}
|
|
4279
|
-
var
|
|
4280
|
-
|
|
4281
|
-
for (var
|
|
4282
|
-
var
|
|
4283
|
-
if (
|
|
4284
|
-
|
|
4285
|
-
else if (
|
|
4286
|
-
if (
|
|
4287
|
-
|
|
4288
|
-
var
|
|
4289
|
-
|
|
4290
|
-
`,
|
|
4291
|
-
|
|
4292
|
-
},
|
|
4300
|
+
var te = (z !== -1 ? ut : "") + Z.slice(0, z + 1);
|
|
4301
|
+
ut = (z === -1 ? ut : "") + Z.slice(z + 1), Z !== "" && (P = Date.now(), G += Z.length);
|
|
4302
|
+
for (var Q = 0; Q < te.length; Q += 1) {
|
|
4303
|
+
var ae = te.charCodeAt(Q);
|
|
4304
|
+
if (ee === Ce && ae === 10)
|
|
4305
|
+
ee = ue;
|
|
4306
|
+
else if (ee === Ce && (ee = ue), ae === 13 || ae === 10) {
|
|
4307
|
+
if (ee !== ue) {
|
|
4308
|
+
ee === qe && (He = Q + 1);
|
|
4309
|
+
var ve = te.slice(Ht, He - 1), Ee = te.slice(He + (He < Q && te.charCodeAt(He) === 32 ? 1 : 0), Q);
|
|
4310
|
+
ve === "data" ? (Ne += `
|
|
4311
|
+
`, Ne += Ee) : ve === "id" ? lt = Ee : ve === "event" ? ye = Ee : ve === "retry" ? (v = Qe(Ee, v), A = v) : ve === "heartbeatTimeout" && (m = Qe(Ee, m), K !== 0 && (i(K), K = r(function() {
|
|
4312
|
+
Ye();
|
|
4313
|
+
}, m)));
|
|
4293
4314
|
}
|
|
4294
|
-
if (
|
|
4295
|
-
if (
|
|
4296
|
-
|
|
4297
|
-
var
|
|
4298
|
-
data:
|
|
4299
|
-
lastEventId:
|
|
4315
|
+
if (ee === ue) {
|
|
4316
|
+
if (Ne !== "") {
|
|
4317
|
+
L = lt, ye === "" && (ye = "message");
|
|
4318
|
+
var Ie = new _e(ye, {
|
|
4319
|
+
data: Ne.slice(1),
|
|
4320
|
+
lastEventId: lt
|
|
4300
4321
|
});
|
|
4301
|
-
if (
|
|
4322
|
+
if (a.dispatchEvent(Ie), ye === "open" ? we(a, a.onopen, Ie) : ye === "message" ? we(a, a.onmessage, Ie) : ye === "error" && we(a, a.onerror, Ie), ce === Ae)
|
|
4302
4323
|
return;
|
|
4303
4324
|
}
|
|
4304
|
-
|
|
4325
|
+
Ne = "", ye = "";
|
|
4305
4326
|
}
|
|
4306
|
-
|
|
4327
|
+
ee = ae === 13 ? Ce : ue;
|
|
4307
4328
|
} else
|
|
4308
|
-
|
|
4329
|
+
ee === ue && (Ht = Q, ee = qe), ee === qe ? ae === 58 && (He = Q + 1, ee = Le) : ee === Le && (ee = ot);
|
|
4309
4330
|
}
|
|
4310
4331
|
}
|
|
4311
|
-
},
|
|
4312
|
-
if (
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
},
|
|
4316
|
-
var z = new
|
|
4317
|
-
|
|
4332
|
+
}, an = function(Z) {
|
|
4333
|
+
if (ce === Te || ce === me) {
|
|
4334
|
+
ce = Re, K !== 0 && (i(K), K = 0), K = r(function() {
|
|
4335
|
+
Ye();
|
|
4336
|
+
}, A), A = Me(Math.min(v * 16, A * 2)), a.readyState = me;
|
|
4337
|
+
var z = new Be("error", { error: Z });
|
|
4338
|
+
a.dispatchEvent(z), we(a, a.onerror, z), Z != null && console.error(Z);
|
|
4318
4339
|
}
|
|
4319
4340
|
}, Ot = function() {
|
|
4320
|
-
|
|
4321
|
-
},
|
|
4322
|
-
if (
|
|
4323
|
-
if (!
|
|
4324
|
-
|
|
4341
|
+
ce = Ae, ie != null && (ie.abort(), ie = void 0), K !== 0 && (i(K), K = 0), a.readyState = Ae;
|
|
4342
|
+
}, Ye = function() {
|
|
4343
|
+
if (K = 0, ce !== Re) {
|
|
4344
|
+
if (!P && ie != null)
|
|
4345
|
+
an(new Error("No activity within " + m + " milliseconds. " + (ce === me ? "No response received." : G + " chars received.") + " Reconnecting.")), ie != null && (ie.abort(), ie = void 0);
|
|
4325
4346
|
else {
|
|
4326
|
-
var Z = Math.max((
|
|
4327
|
-
|
|
4328
|
-
|
|
4347
|
+
var Z = Math.max((P || Date.now()) + m - Date.now(), 1);
|
|
4348
|
+
P = !1, K = r(function() {
|
|
4349
|
+
Ye();
|
|
4329
4350
|
}, Z);
|
|
4330
4351
|
}
|
|
4331
4352
|
return;
|
|
4332
4353
|
}
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
},
|
|
4336
|
-
var z =
|
|
4337
|
-
if (
|
|
4338
|
-
var
|
|
4339
|
-
z =
|
|
4340
|
-
return
|
|
4341
|
-
}), z += (
|
|
4354
|
+
P = !1, G = 0, K = r(function() {
|
|
4355
|
+
Ye();
|
|
4356
|
+
}, m), ce = me, Ne = "", ye = "", lt = L, ut = "", Ht = 0, He = 0, ee = ue;
|
|
4357
|
+
var z = f;
|
|
4358
|
+
if (f.slice(0, 5) !== "data:" && f.slice(0, 5) !== "blob:" && L !== "") {
|
|
4359
|
+
var oe = f.indexOf("?");
|
|
4360
|
+
z = oe === -1 ? f : f.slice(0, oe + 1) + f.slice(oe + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(Ee, Ie) {
|
|
4361
|
+
return Ie === E ? "" : Ee;
|
|
4362
|
+
}), z += (f.indexOf("?") === -1 ? "?" : "&") + E + "=" + encodeURIComponent(L);
|
|
4342
4363
|
}
|
|
4343
|
-
var
|
|
4344
|
-
|
|
4345
|
-
var
|
|
4346
|
-
if (
|
|
4347
|
-
for (var
|
|
4348
|
-
Object.prototype.hasOwnProperty.call(
|
|
4364
|
+
var ae = a.withCredentials, te = {};
|
|
4365
|
+
te.Accept = "text/event-stream";
|
|
4366
|
+
var Q = a.headers;
|
|
4367
|
+
if (Q != null)
|
|
4368
|
+
for (var ve in Q)
|
|
4369
|
+
Object.prototype.hasOwnProperty.call(Q, ve) && (te[ve] = Q[ve]);
|
|
4349
4370
|
try {
|
|
4350
|
-
ie =
|
|
4351
|
-
} catch (
|
|
4352
|
-
throw Ot(),
|
|
4371
|
+
ie = Je.open(be, lr, ur, an, z, ae, te);
|
|
4372
|
+
} catch (Ee) {
|
|
4373
|
+
throw Ot(), Ee;
|
|
4353
4374
|
}
|
|
4354
4375
|
};
|
|
4355
|
-
|
|
4376
|
+
a.url = f, a.readyState = me, a.withCredentials = h, a.headers = w, a._close = Ot, Ye();
|
|
4356
4377
|
}
|
|
4357
|
-
re.prototype = Object.create(
|
|
4378
|
+
re.prototype = Object.create(X.prototype), re.prototype.CONNECTING = me, re.prototype.OPEN = Te, re.prototype.CLOSED = Ae, re.prototype.close = function() {
|
|
4358
4379
|
this._close();
|
|
4359
|
-
}, re.CONNECTING =
|
|
4360
|
-
var
|
|
4361
|
-
|
|
4380
|
+
}, re.CONNECTING = me, re.OPEN = Te, re.CLOSED = Ae, re.prototype.withCredentials = void 0;
|
|
4381
|
+
var st = c;
|
|
4382
|
+
o != null && (c == null || !("withCredentials" in c.prototype)) && (st = re), function(a) {
|
|
4362
4383
|
{
|
|
4363
|
-
var
|
|
4364
|
-
|
|
4384
|
+
var f = a(t);
|
|
4385
|
+
f !== void 0 && (e.exports = f);
|
|
4365
4386
|
}
|
|
4366
|
-
}(function(
|
|
4367
|
-
|
|
4387
|
+
}(function(a) {
|
|
4388
|
+
a.EventSourcePolyfill = re, a.NativeEventSource = c, a.EventSource = st;
|
|
4368
4389
|
});
|
|
4369
|
-
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self :
|
|
4390
|
+
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : jr : globalThis);
|
|
4370
4391
|
})(en, en.exports);
|
|
4371
|
-
var
|
|
4392
|
+
var Lo = en.exports;
|
|
4372
4393
|
/*!
|
|
4373
4394
|
* currency.js - v2.0.4
|
|
4374
4395
|
* http://scurker.github.io/currency.js
|
|
@@ -4376,7 +4397,7 @@ var Ha = en.exports;
|
|
|
4376
4397
|
* Copyright (c) 2021 Jason Wilson
|
|
4377
4398
|
* Released under MIT license
|
|
4378
4399
|
*/
|
|
4379
|
-
var
|
|
4400
|
+
var Mo = {
|
|
4380
4401
|
symbol: "$",
|
|
4381
4402
|
separator: ",",
|
|
4382
4403
|
decimal: ".",
|
|
@@ -4384,43 +4405,43 @@ var Oa = {
|
|
|
4384
4405
|
precision: 2,
|
|
4385
4406
|
pattern: "!#",
|
|
4386
4407
|
negativePattern: "-!#",
|
|
4387
|
-
format:
|
|
4408
|
+
format: Do,
|
|
4388
4409
|
fromCents: !1
|
|
4389
|
-
},
|
|
4410
|
+
}, sr = function(t) {
|
|
4390
4411
|
return Math.round(t);
|
|
4391
|
-
},
|
|
4412
|
+
}, on = function(t) {
|
|
4392
4413
|
return Math.pow(10, t);
|
|
4393
|
-
},
|
|
4394
|
-
return
|
|
4395
|
-
},
|
|
4396
|
-
function
|
|
4414
|
+
}, No = function(t, n) {
|
|
4415
|
+
return sr(t / n) * n;
|
|
4416
|
+
}, Io = /(\d)(?=(\d{3})+\b)/g, Po = /(\d)(?=(\d\d)+\d\b)/g;
|
|
4417
|
+
function he(e, t) {
|
|
4397
4418
|
var n = this;
|
|
4398
|
-
if (!(n instanceof
|
|
4399
|
-
return new
|
|
4400
|
-
var r = Object.assign({},
|
|
4401
|
-
n.intValue =
|
|
4402
|
-
}
|
|
4403
|
-
function
|
|
4404
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal,
|
|
4405
|
-
if (d &&
|
|
4419
|
+
if (!(n instanceof he))
|
|
4420
|
+
return new he(e, t);
|
|
4421
|
+
var r = Object.assign({}, Mo, t), i = on(r.precision), o = pt(e, r);
|
|
4422
|
+
n.intValue = o, n.value = o / i, r.increment = r.increment || 1 / i, r.useVedic ? r.groups = Po : r.groups = Io, this.s = r, this.p = i;
|
|
4423
|
+
}
|
|
4424
|
+
function pt(e, t) {
|
|
4425
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0, r = 0, i = t.decimal, o = t.errorOnInvalid, l = t.precision, s = t.fromCents, c = on(l), u = typeof e == "number", d = e instanceof he;
|
|
4426
|
+
if (d && s)
|
|
4406
4427
|
return e.intValue;
|
|
4407
4428
|
if (u || d)
|
|
4408
4429
|
r = d ? e.value : e;
|
|
4409
4430
|
else if (typeof e == "string") {
|
|
4410
|
-
var
|
|
4411
|
-
r = e.replace(/\((.*)\)/, "-$1").replace(
|
|
4431
|
+
var g = new RegExp("[^-\\d" + i + "]", "g"), b = new RegExp("\\" + i, "g");
|
|
4432
|
+
r = e.replace(/\((.*)\)/, "-$1").replace(g, "").replace(b, "."), r = r || 0;
|
|
4412
4433
|
} else {
|
|
4413
|
-
if (
|
|
4434
|
+
if (o)
|
|
4414
4435
|
throw Error("Invalid Input");
|
|
4415
4436
|
r = 0;
|
|
4416
4437
|
}
|
|
4417
|
-
return
|
|
4438
|
+
return s || (r *= c, r = r.toFixed(4)), n ? sr(r) : r;
|
|
4418
4439
|
}
|
|
4419
|
-
function
|
|
4420
|
-
var n = t.pattern, r = t.negativePattern, i = t.symbol,
|
|
4421
|
-
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(
|
|
4440
|
+
function Do(e, t) {
|
|
4441
|
+
var n = t.pattern, r = t.negativePattern, i = t.symbol, o = t.separator, l = t.decimal, s = t.groups, c = ("" + e).replace(/^-/, "").split("."), u = c[0], d = c[1];
|
|
4442
|
+
return (e.value >= 0 ? n : r).replace("!", i).replace("#", u.replace(s, "$1" + o) + (d ? l + d : ""));
|
|
4422
4443
|
}
|
|
4423
|
-
|
|
4444
|
+
he.prototype = {
|
|
4424
4445
|
/**
|
|
4425
4446
|
* Adds values together.
|
|
4426
4447
|
* @param {number} number
|
|
@@ -4428,7 +4449,7 @@ ce.prototype = {
|
|
|
4428
4449
|
*/
|
|
4429
4450
|
add: function(t) {
|
|
4430
4451
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4431
|
-
return
|
|
4452
|
+
return he((n += pt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4432
4453
|
},
|
|
4433
4454
|
/**
|
|
4434
4455
|
* Subtracts value.
|
|
@@ -4437,7 +4458,7 @@ ce.prototype = {
|
|
|
4437
4458
|
*/
|
|
4438
4459
|
subtract: function(t) {
|
|
4439
4460
|
var n = this.intValue, r = this.s, i = this.p;
|
|
4440
|
-
return
|
|
4461
|
+
return he((n -= pt(t, r)) / (r.fromCents ? 1 : i), r);
|
|
4441
4462
|
},
|
|
4442
4463
|
/**
|
|
4443
4464
|
* Multiplies values.
|
|
@@ -4446,7 +4467,7 @@ ce.prototype = {
|
|
|
4446
4467
|
*/
|
|
4447
4468
|
multiply: function(t) {
|
|
4448
4469
|
var n = this.intValue, r = this.s;
|
|
4449
|
-
return
|
|
4470
|
+
return he((n *= t) / (r.fromCents ? 1 : on(r.precision)), r);
|
|
4450
4471
|
},
|
|
4451
4472
|
/**
|
|
4452
4473
|
* Divides value.
|
|
@@ -4455,7 +4476,7 @@ ce.prototype = {
|
|
|
4455
4476
|
*/
|
|
4456
4477
|
divide: function(t) {
|
|
4457
4478
|
var n = this.intValue, r = this.s;
|
|
4458
|
-
return
|
|
4479
|
+
return he(n /= pt(t, r, !1), r);
|
|
4459
4480
|
},
|
|
4460
4481
|
/**
|
|
4461
4482
|
* Takes the currency amount and distributes the values evenly. Any extra pennies
|
|
@@ -4464,11 +4485,11 @@ ce.prototype = {
|
|
|
4464
4485
|
* @returns {array}
|
|
4465
4486
|
*/
|
|
4466
4487
|
distribute: function(t) {
|
|
4467
|
-
for (var n = this.intValue, r = this.p, i = this.s,
|
|
4468
|
-
var u =
|
|
4469
|
-
|
|
4488
|
+
for (var n = this.intValue, r = this.p, i = this.s, o = [], l = Math[n >= 0 ? "floor" : "ceil"](n / t), s = Math.abs(n - l * t), c = i.fromCents ? 1 : r; t !== 0; t--) {
|
|
4489
|
+
var u = he(l / c, i);
|
|
4490
|
+
s-- > 0 && (u = u[n >= 0 ? "add" : "subtract"](1 / c)), o.push(u);
|
|
4470
4491
|
}
|
|
4471
|
-
return
|
|
4492
|
+
return o;
|
|
4472
4493
|
},
|
|
4473
4494
|
/**
|
|
4474
4495
|
* Returns the dollar value.
|
|
@@ -4500,7 +4521,7 @@ ce.prototype = {
|
|
|
4500
4521
|
*/
|
|
4501
4522
|
toString: function() {
|
|
4502
4523
|
var t = this.intValue, n = this.p, r = this.s;
|
|
4503
|
-
return
|
|
4524
|
+
return No(t / n, r.increment).toFixed(r.precision);
|
|
4504
4525
|
},
|
|
4505
4526
|
/**
|
|
4506
4527
|
* Value for JSON serialization.
|
|
@@ -4510,18 +4531,18 @@ ce.prototype = {
|
|
|
4510
4531
|
return this.value;
|
|
4511
4532
|
}
|
|
4512
4533
|
};
|
|
4513
|
-
function
|
|
4514
|
-
|
|
4534
|
+
function Uo(e) {
|
|
4535
|
+
br(e, "svelte-1tsugyl", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}@keyframes growWidthPercent{from{height:0}to{height:100%}}.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}.ShowBalance .BalanceValue svg{width:16px;fill:black}.ShowBalance .BalanceValue span{padding-left:5px}.ShowBalance .BalanceValue .TriangleActive,.ShowBalance .BalanceValue .TriangleInactive{display:block;margin:0 3px;transition:all 0.2s}.ShowBalance .BalanceValue .TriangleActive:hover,.ShowBalance .BalanceValue .TriangleInactive:hover{transform:scale(1.2)}.ShowBalance .BalanceValue .TriangleActive svg,.ShowBalance .BalanceValue .TriangleInactive svg{margin:2px 0px}.ShowBalance .BalanceValue .TriangleActive{transform:scale(1.1) rotateX(180deg) translateY(3px)}.ShowBalance .BalanceValue .TriangleActive:hover{transform:scale(1.1) rotateX(180deg) translateY(3px)}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);position:absolute;top:40px;padding:10px;transform:translateX(-45%);box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919;transition:all 0.2s ease-in;opacity:0}.BalanceModalWrapper:before{content:"";background:linear-gradient(90deg, rgb(42, 79, 55) 0%, rgb(0, 61, 92) 100%);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:50%;width:25px;height:10px;z-index:1}.BalanceModalWrapper.Open{opacity:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;transition:all 0.3s ease;opacity:0}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, white));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, white));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModalClose:hover{transform:scale(1.1)}.BalanceModalClose.Open{opacity:1}.BalanceModal{transition:all 0.2s ease-in;width:270px}.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, white))}.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, white));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, white))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--color-primary);font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:30px;border:none;padding:10px 0;cursor:pointer;transition:all 0.2s ease-in;box-shadow:0px 3px 7px 0px rgba(0, 0, 0, 0.2)}.BalanceModalFooter .BalanceModalAction:hover{background:rgba(255, 255, 255, 0.1);color:var(--emw--color-primary);box-shadow:0px 0px 0px 2px inset var(--emw--color-primary);font-size:14px}.BalanceModalFooter .BalanceModalAction:active{background:rgba(255, 255, 255, 0.5)}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16;opacity:0;transition:all 0.2s linear}.ShowBalanceModalOverlay.Open{opacity:1}');
|
|
4515
4536
|
}
|
|
4516
|
-
function
|
|
4537
|
+
function Sn(e, t, n) {
|
|
4517
4538
|
const r = e.slice();
|
|
4518
4539
|
return r[50] = t[n], r;
|
|
4519
4540
|
}
|
|
4520
|
-
function
|
|
4541
|
+
function An(e, t, n) {
|
|
4521
4542
|
const r = e.slice();
|
|
4522
4543
|
return r[53] = t[n], r;
|
|
4523
4544
|
}
|
|
4524
|
-
function
|
|
4545
|
+
function Fo(e) {
|
|
4525
4546
|
let t, n, r = (
|
|
4526
4547
|
/*balances*/
|
|
4527
4548
|
(e[1].Total ? (
|
|
@@ -4531,158 +4552,158 @@ function Pa(e) {
|
|
|
4531
4552
|
e[1].Total[0].amount
|
|
4532
4553
|
)
|
|
4533
4554
|
) : "0") + ""
|
|
4534
|
-
), i,
|
|
4555
|
+
), i, o, l, s, c, u, d, g, b, _, B, T, x = (
|
|
4535
4556
|
/*showBalance*/
|
|
4536
|
-
e[4] &&
|
|
4557
|
+
e[4] && Cn(e)
|
|
4537
4558
|
);
|
|
4538
4559
|
return {
|
|
4539
4560
|
c() {
|
|
4540
|
-
t =
|
|
4561
|
+
t = k("div"), n = k("p"), i = fe(r), o = pe(), l = fe(
|
|
4541
4562
|
/*currency*/
|
|
4542
4563
|
e[5]
|
|
4543
|
-
),
|
|
4544
|
-
e[3] ? "TriangleActive" : "TriangleInactive"),
|
|
4564
|
+
), s = pe(), c = k("span"), u = un("svg"), d = un("path"), b = pe(), x && x.c(), _ = Er(), N(d, "id", "arrow"), N(d, "d", "M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z"), N(d, "transform", "translate(-274.511 -441.088)"), N(d, "fill", "#d1d1d1"), N(u, "xmlns", "http://www.w3.org/2000/svg"), N(u, "width", "14"), N(u, "height", "6.835"), N(u, "viewBox", "0 0 14 6.835"), N(c, "class", g = /*modalOpened*/
|
|
4565
|
+
e[3] ? "TriangleActive" : "TriangleInactive"), N(t, "class", "BalanceValue");
|
|
4545
4566
|
},
|
|
4546
|
-
m(
|
|
4547
|
-
ge(
|
|
4567
|
+
m(S, D) {
|
|
4568
|
+
ge(S, t, D), C(t, n), C(n, i), C(n, o), C(n, l), C(t, s), C(t, c), C(c, u), C(u, d), ge(S, b, D), x && x.m(S, D), ge(S, _, D), B || (T = mt(
|
|
4548
4569
|
t,
|
|
4549
4570
|
"click",
|
|
4550
4571
|
/*click_handler*/
|
|
4551
|
-
e[
|
|
4552
|
-
),
|
|
4572
|
+
e[25]
|
|
4573
|
+
), B = !0);
|
|
4553
4574
|
},
|
|
4554
|
-
p(
|
|
4555
|
-
|
|
4575
|
+
p(S, D) {
|
|
4576
|
+
D[0] & /*balances*/
|
|
4556
4577
|
2 && r !== (r = /*balances*/
|
|
4557
|
-
(
|
|
4578
|
+
(S[1].Total ? (
|
|
4558
4579
|
/*formatBalance*/
|
|
4559
|
-
|
|
4580
|
+
S[8](
|
|
4560
4581
|
/*balances*/
|
|
4561
|
-
|
|
4582
|
+
S[1].Total[0].amount
|
|
4562
4583
|
)
|
|
4563
|
-
) : "0") + "") &&
|
|
4564
|
-
32 &&
|
|
4584
|
+
) : "0") + "") && xe(i, r), D[0] & /*currency*/
|
|
4585
|
+
32 && xe(
|
|
4565
4586
|
l,
|
|
4566
4587
|
/*currency*/
|
|
4567
|
-
|
|
4568
|
-
),
|
|
4569
|
-
8 &&
|
|
4570
|
-
|
|
4571
|
-
|
|
4588
|
+
S[5]
|
|
4589
|
+
), D[0] & /*modalOpened*/
|
|
4590
|
+
8 && g !== (g = /*modalOpened*/
|
|
4591
|
+
S[3] ? "TriangleActive" : "TriangleInactive") && N(c, "class", g), /*showBalance*/
|
|
4592
|
+
S[4] ? x ? x.p(S, D) : (x = Cn(S), x.c(), x.m(_.parentNode, _)) : x && (x.d(1), x = null);
|
|
4572
4593
|
},
|
|
4573
|
-
d(
|
|
4574
|
-
|
|
4594
|
+
d(S) {
|
|
4595
|
+
S && (de(t), de(b), de(_)), x && x.d(S), B = !1, T();
|
|
4575
4596
|
}
|
|
4576
4597
|
};
|
|
4577
4598
|
}
|
|
4578
|
-
function
|
|
4599
|
+
function Go(e) {
|
|
4579
4600
|
let t, n = (
|
|
4580
4601
|
/*$_*/
|
|
4581
4602
|
e[6]("Loading") + ""
|
|
4582
4603
|
), r;
|
|
4583
4604
|
return {
|
|
4584
4605
|
c() {
|
|
4585
|
-
t =
|
|
4606
|
+
t = k("p"), r = fe(n), N(t, "class", "Loading");
|
|
4586
4607
|
},
|
|
4587
|
-
m(i,
|
|
4588
|
-
ge(i, t,
|
|
4608
|
+
m(i, o) {
|
|
4609
|
+
ge(i, t, o), C(t, r);
|
|
4589
4610
|
},
|
|
4590
|
-
p(i,
|
|
4591
|
-
|
|
4611
|
+
p(i, o) {
|
|
4612
|
+
o[0] & /*$_*/
|
|
4592
4613
|
64 && n !== (n = /*$_*/
|
|
4593
|
-
i[6]("Loading") + "") &&
|
|
4614
|
+
i[6]("Loading") + "") && xe(r, n);
|
|
4594
4615
|
},
|
|
4595
4616
|
d(i) {
|
|
4596
|
-
i &&
|
|
4617
|
+
i && de(t);
|
|
4597
4618
|
}
|
|
4598
4619
|
};
|
|
4599
4620
|
}
|
|
4600
|
-
function
|
|
4601
|
-
let t, n, r, i,
|
|
4621
|
+
function Cn(e) {
|
|
4622
|
+
let t, n, r, i, o, l, s, c, u = (
|
|
4602
4623
|
/*$_*/
|
|
4603
4624
|
e[6]("Title") + ""
|
|
4604
|
-
), d,
|
|
4625
|
+
), d, g, b, _, B, T, x = (
|
|
4605
4626
|
/*$_*/
|
|
4606
4627
|
e[6]("DepositButton") + ""
|
|
4607
|
-
),
|
|
4628
|
+
), S, D, H, U, W, q, Y = gt(Object.keys(
|
|
4608
4629
|
/*balances*/
|
|
4609
4630
|
e[1]
|
|
4610
|
-
)),
|
|
4611
|
-
for (let
|
|
4612
|
-
|
|
4631
|
+
)), $ = [];
|
|
4632
|
+
for (let R = 0; R < Y.length; R += 1)
|
|
4633
|
+
$[R] = On(Sn(e, Y, R));
|
|
4613
4634
|
return {
|
|
4614
4635
|
c() {
|
|
4615
|
-
t =
|
|
4616
|
-
for (let
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
(e[3] ? "Open" : "")),
|
|
4620
|
-
(e[3] ? "Open" : "")),
|
|
4621
|
-
(e[3] ? "Open" : "")),
|
|
4636
|
+
t = k("div"), n = k("div"), i = pe(), o = k("div"), l = k("div"), s = k("div"), c = k("p"), d = fe(u), g = pe(), b = k("div");
|
|
4637
|
+
for (let R = 0; R < $.length; R += 1)
|
|
4638
|
+
$[R].c();
|
|
4639
|
+
_ = pe(), B = k("div"), T = k("button"), S = fe(x), N(n, "class", r = "BalanceModalClose " + /*modalOpened*/
|
|
4640
|
+
(e[3] ? "Open" : "")), N(c, "class", "BalanceModalTitle"), N(s, "class", "BalanceModalHeader"), N(b, "class", "BalanceModalBody"), N(T, "class", "BalanceModalAction"), N(B, "class", "BalanceModalFooter"), N(l, "class", D = "ModalContent " + /*modalOpened*/
|
|
4641
|
+
(e[3] ? "Open" : "")), N(o, "class", H = "BalanceModal " + /*modalOpened*/
|
|
4642
|
+
(e[3] ? "Open" : "")), N(t, "class", U = "BalanceModalWrapper " + /*modalOpened*/
|
|
4622
4643
|
(e[3] ? "Open" : ""));
|
|
4623
4644
|
},
|
|
4624
|
-
m(
|
|
4625
|
-
ge(
|
|
4626
|
-
for (let
|
|
4627
|
-
|
|
4628
|
-
C(l,
|
|
4629
|
-
|
|
4645
|
+
m(R, X) {
|
|
4646
|
+
ge(R, t, X), C(t, n), C(t, i), C(t, o), C(o, l), C(l, s), C(s, c), C(c, d), C(l, g), C(l, b);
|
|
4647
|
+
for (let F = 0; F < $.length; F += 1)
|
|
4648
|
+
$[F] && $[F].m(b, null);
|
|
4649
|
+
C(l, _), C(l, B), C(B, T), C(T, S), W || (q = [
|
|
4650
|
+
mt(
|
|
4630
4651
|
n,
|
|
4631
4652
|
"click",
|
|
4632
4653
|
/*click_handler_1*/
|
|
4633
|
-
e[
|
|
4654
|
+
e[26]
|
|
4634
4655
|
),
|
|
4635
|
-
|
|
4636
|
-
|
|
4656
|
+
mt(
|
|
4657
|
+
T,
|
|
4637
4658
|
"click",
|
|
4638
4659
|
/*click_handler_2*/
|
|
4639
|
-
e[
|
|
4660
|
+
e[27]
|
|
4640
4661
|
)
|
|
4641
|
-
],
|
|
4662
|
+
], W = !0);
|
|
4642
4663
|
},
|
|
4643
|
-
p(
|
|
4644
|
-
if (
|
|
4664
|
+
p(R, X) {
|
|
4665
|
+
if (X[0] & /*modalOpened*/
|
|
4645
4666
|
8 && r !== (r = "BalanceModalClose " + /*modalOpened*/
|
|
4646
|
-
(
|
|
4667
|
+
(R[3] ? "Open" : "")) && N(n, "class", r), X[0] & /*$_*/
|
|
4647
4668
|
64 && u !== (u = /*$_*/
|
|
4648
|
-
|
|
4669
|
+
R[6]("Title") + "") && xe(d, u), X[0] & /*balances, currency, formatBalance, $_*/
|
|
4649
4670
|
354) {
|
|
4650
|
-
|
|
4671
|
+
Y = gt(Object.keys(
|
|
4651
4672
|
/*balances*/
|
|
4652
|
-
|
|
4673
|
+
R[1]
|
|
4653
4674
|
));
|
|
4654
|
-
let
|
|
4655
|
-
for (
|
|
4656
|
-
const
|
|
4657
|
-
|
|
4675
|
+
let F;
|
|
4676
|
+
for (F = 0; F < Y.length; F += 1) {
|
|
4677
|
+
const y = Sn(R, Y, F);
|
|
4678
|
+
$[F] ? $[F].p(y, X) : ($[F] = On(y), $[F].c(), $[F].m(b, null));
|
|
4658
4679
|
}
|
|
4659
|
-
for (;
|
|
4660
|
-
|
|
4661
|
-
|
|
4680
|
+
for (; F < $.length; F += 1)
|
|
4681
|
+
$[F].d(1);
|
|
4682
|
+
$.length = Y.length;
|
|
4662
4683
|
}
|
|
4663
|
-
|
|
4664
|
-
64 &&
|
|
4665
|
-
|
|
4666
|
-
8 &&
|
|
4667
|
-
(
|
|
4668
|
-
8 &&
|
|
4669
|
-
(
|
|
4670
|
-
8 &&
|
|
4671
|
-
(
|
|
4684
|
+
X[0] & /*$_*/
|
|
4685
|
+
64 && x !== (x = /*$_*/
|
|
4686
|
+
R[6]("DepositButton") + "") && xe(S, x), X[0] & /*modalOpened*/
|
|
4687
|
+
8 && D !== (D = "ModalContent " + /*modalOpened*/
|
|
4688
|
+
(R[3] ? "Open" : "")) && N(l, "class", D), X[0] & /*modalOpened*/
|
|
4689
|
+
8 && H !== (H = "BalanceModal " + /*modalOpened*/
|
|
4690
|
+
(R[3] ? "Open" : "")) && N(o, "class", H), X[0] & /*modalOpened*/
|
|
4691
|
+
8 && U !== (U = "BalanceModalWrapper " + /*modalOpened*/
|
|
4692
|
+
(R[3] ? "Open" : "")) && N(t, "class", U);
|
|
4672
4693
|
},
|
|
4673
|
-
d(
|
|
4674
|
-
|
|
4694
|
+
d(R) {
|
|
4695
|
+
R && de(t), In($, R), W = !1, Ve(q);
|
|
4675
4696
|
}
|
|
4676
4697
|
};
|
|
4677
4698
|
}
|
|
4678
|
-
function
|
|
4699
|
+
function Hn(e) {
|
|
4679
4700
|
let t, n, r = (
|
|
4680
4701
|
/*$_*/
|
|
4681
4702
|
e[6](
|
|
4682
4703
|
/*k*/
|
|
4683
4704
|
e[50]
|
|
4684
4705
|
) + ""
|
|
4685
|
-
), i,
|
|
4706
|
+
), i, o, l = (
|
|
4686
4707
|
/*b*/
|
|
4687
4708
|
(e[53].productType ? (
|
|
4688
4709
|
/*$_*/
|
|
@@ -4691,7 +4712,7 @@ function Rn(e) {
|
|
|
4691
4712
|
e[53].productType
|
|
4692
4713
|
)
|
|
4693
4714
|
) : "") + ""
|
|
4694
|
-
),
|
|
4715
|
+
), s, c, u, d, g = (
|
|
4695
4716
|
/*b*/
|
|
4696
4717
|
(e[53].amount ? (
|
|
4697
4718
|
/*formatBalance*/
|
|
@@ -4700,159 +4721,159 @@ function Rn(e) {
|
|
|
4700
4721
|
e[53].amount
|
|
4701
4722
|
)
|
|
4702
4723
|
) : "0") + ""
|
|
4703
|
-
),
|
|
4724
|
+
), b, _, B, T;
|
|
4704
4725
|
return {
|
|
4705
4726
|
c() {
|
|
4706
|
-
t =
|
|
4727
|
+
t = k("div"), n = k("p"), i = fe(r), o = pe(), s = fe(l), c = pe(), u = k("p"), d = k("span"), b = fe(g), _ = pe(), B = k("span"), T = fe(
|
|
4707
4728
|
/*currency*/
|
|
4708
4729
|
e[5]
|
|
4709
|
-
),
|
|
4730
|
+
), N(n, "class", "BalanceModalText"), N(d, "class", "BalanceModalAmount"), N(B, "class", "BalanceModalCurrency"), N(u, "class", "BalanceModalValue"), N(t, "class", "BalanceModalRowLine");
|
|
4710
4731
|
},
|
|
4711
|
-
m(
|
|
4712
|
-
ge(
|
|
4732
|
+
m(x, S) {
|
|
4733
|
+
ge(x, t, S), C(t, n), C(n, i), C(n, o), C(n, s), C(t, c), C(t, u), C(u, d), C(d, b), C(u, _), C(u, B), C(B, T);
|
|
4713
4734
|
},
|
|
4714
|
-
p(
|
|
4715
|
-
|
|
4735
|
+
p(x, S) {
|
|
4736
|
+
S[0] & /*$_, balances*/
|
|
4716
4737
|
66 && r !== (r = /*$_*/
|
|
4717
|
-
|
|
4738
|
+
x[6](
|
|
4718
4739
|
/*k*/
|
|
4719
|
-
|
|
4720
|
-
) + "") &&
|
|
4740
|
+
x[50]
|
|
4741
|
+
) + "") && xe(i, r), S[0] & /*balances, $_*/
|
|
4721
4742
|
66 && l !== (l = /*b*/
|
|
4722
|
-
(
|
|
4743
|
+
(x[53].productType ? (
|
|
4723
4744
|
/*$_*/
|
|
4724
|
-
|
|
4745
|
+
x[6](
|
|
4725
4746
|
/*b*/
|
|
4726
|
-
|
|
4747
|
+
x[53].productType
|
|
4727
4748
|
)
|
|
4728
|
-
) : "") + "") &&
|
|
4729
|
-
2 &&
|
|
4730
|
-
(
|
|
4749
|
+
) : "") + "") && xe(s, l), S[0] & /*balances*/
|
|
4750
|
+
2 && g !== (g = /*b*/
|
|
4751
|
+
(x[53].amount ? (
|
|
4731
4752
|
/*formatBalance*/
|
|
4732
|
-
|
|
4753
|
+
x[8](
|
|
4733
4754
|
/*b*/
|
|
4734
|
-
|
|
4755
|
+
x[53].amount
|
|
4735
4756
|
)
|
|
4736
|
-
) : "0") + "") &&
|
|
4737
|
-
32 &&
|
|
4738
|
-
|
|
4757
|
+
) : "0") + "") && xe(b, g), S[0] & /*currency*/
|
|
4758
|
+
32 && xe(
|
|
4759
|
+
T,
|
|
4739
4760
|
/*currency*/
|
|
4740
|
-
|
|
4761
|
+
x[5]
|
|
4741
4762
|
);
|
|
4742
4763
|
},
|
|
4743
|
-
d(
|
|
4744
|
-
|
|
4764
|
+
d(x) {
|
|
4765
|
+
x && de(t);
|
|
4745
4766
|
}
|
|
4746
4767
|
};
|
|
4747
4768
|
}
|
|
4748
|
-
function
|
|
4749
|
-
let t, n, r =
|
|
4769
|
+
function On(e) {
|
|
4770
|
+
let t, n, r = gt(
|
|
4750
4771
|
/*balances*/
|
|
4751
4772
|
e[1][
|
|
4752
4773
|
/*k*/
|
|
4753
4774
|
e[50]
|
|
4754
4775
|
]
|
|
4755
4776
|
), i = [];
|
|
4756
|
-
for (let
|
|
4757
|
-
i[
|
|
4777
|
+
for (let o = 0; o < r.length; o += 1)
|
|
4778
|
+
i[o] = Hn(An(e, r, o));
|
|
4758
4779
|
return {
|
|
4759
4780
|
c() {
|
|
4760
|
-
t =
|
|
4761
|
-
for (let a = 0; a < i.length; a += 1)
|
|
4762
|
-
i[a].c();
|
|
4763
|
-
n = de(), M(t, "class", "BalanceModalRowBoth");
|
|
4764
|
-
},
|
|
4765
|
-
m(a, l) {
|
|
4766
|
-
ge(a, t, l);
|
|
4781
|
+
t = k("div");
|
|
4767
4782
|
for (let o = 0; o < i.length; o += 1)
|
|
4768
|
-
i[o]
|
|
4783
|
+
i[o].c();
|
|
4784
|
+
n = pe(), N(t, "class", "BalanceModalRowBoth");
|
|
4785
|
+
},
|
|
4786
|
+
m(o, l) {
|
|
4787
|
+
ge(o, t, l);
|
|
4788
|
+
for (let s = 0; s < i.length; s += 1)
|
|
4789
|
+
i[s] && i[s].m(t, null);
|
|
4769
4790
|
C(t, n);
|
|
4770
4791
|
},
|
|
4771
|
-
p(
|
|
4792
|
+
p(o, l) {
|
|
4772
4793
|
if (l[0] & /*currency, balances, formatBalance, $_*/
|
|
4773
4794
|
354) {
|
|
4774
|
-
r =
|
|
4795
|
+
r = gt(
|
|
4775
4796
|
/*balances*/
|
|
4776
|
-
|
|
4797
|
+
o[1][
|
|
4777
4798
|
/*k*/
|
|
4778
|
-
|
|
4799
|
+
o[50]
|
|
4779
4800
|
]
|
|
4780
4801
|
);
|
|
4781
|
-
let
|
|
4782
|
-
for (
|
|
4783
|
-
const c =
|
|
4784
|
-
i[
|
|
4802
|
+
let s;
|
|
4803
|
+
for (s = 0; s < r.length; s += 1) {
|
|
4804
|
+
const c = An(o, r, s);
|
|
4805
|
+
i[s] ? i[s].p(c, l) : (i[s] = Hn(c), i[s].c(), i[s].m(t, n));
|
|
4785
4806
|
}
|
|
4786
|
-
for (;
|
|
4787
|
-
i[
|
|
4807
|
+
for (; s < i.length; s += 1)
|
|
4808
|
+
i[s].d(1);
|
|
4788
4809
|
i.length = r.length;
|
|
4789
4810
|
}
|
|
4790
4811
|
},
|
|
4791
|
-
d(
|
|
4792
|
-
|
|
4812
|
+
d(o) {
|
|
4813
|
+
o && de(t), In(i, o);
|
|
4793
4814
|
}
|
|
4794
4815
|
};
|
|
4795
4816
|
}
|
|
4796
|
-
function
|
|
4817
|
+
function Rn(e) {
|
|
4797
4818
|
let t, n, r;
|
|
4798
4819
|
return {
|
|
4799
4820
|
c() {
|
|
4800
|
-
t =
|
|
4821
|
+
t = k("div"), N(t, "class", "ShowBalanceModalOverlay");
|
|
4801
4822
|
},
|
|
4802
|
-
m(i,
|
|
4803
|
-
ge(i, t,
|
|
4823
|
+
m(i, o) {
|
|
4824
|
+
ge(i, t, o), n || (r = mt(
|
|
4804
4825
|
t,
|
|
4805
4826
|
"click",
|
|
4806
4827
|
/*click_handler_3*/
|
|
4807
|
-
e[
|
|
4828
|
+
e[28]
|
|
4808
4829
|
), n = !0);
|
|
4809
4830
|
},
|
|
4810
4831
|
p: le,
|
|
4811
4832
|
d(i) {
|
|
4812
|
-
i &&
|
|
4833
|
+
i && de(t), n = !1, r();
|
|
4813
4834
|
}
|
|
4814
4835
|
};
|
|
4815
4836
|
}
|
|
4816
|
-
function
|
|
4837
|
+
function $o(e) {
|
|
4817
4838
|
let t, n, r;
|
|
4818
4839
|
function i(c, u) {
|
|
4819
4840
|
return (
|
|
4820
4841
|
/*isLoading*/
|
|
4821
|
-
c[2] ?
|
|
4842
|
+
c[2] ? Go : Fo
|
|
4822
4843
|
);
|
|
4823
4844
|
}
|
|
4824
|
-
let
|
|
4845
|
+
let o = i(e), l = o(e), s = (
|
|
4825
4846
|
/*showBalance*/
|
|
4826
|
-
e[4] &&
|
|
4847
|
+
e[4] && Rn(e)
|
|
4827
4848
|
);
|
|
4828
4849
|
return {
|
|
4829
4850
|
c() {
|
|
4830
|
-
t =
|
|
4851
|
+
t = k("div"), n = k("div"), l.c(), r = pe(), s && s.c(), N(n, "class", "ShowBalance");
|
|
4831
4852
|
},
|
|
4832
4853
|
m(c, u) {
|
|
4833
|
-
ge(c, t, u), C(t, n), l.m(n, null), C(t, r),
|
|
4854
|
+
ge(c, t, u), C(t, n), l.m(n, null), C(t, r), s && s.m(t, null), e[29](t);
|
|
4834
4855
|
},
|
|
4835
4856
|
p(c, u) {
|
|
4836
|
-
|
|
4837
|
-
c[4] ?
|
|
4857
|
+
o === (o = i(c)) && l ? l.p(c, u) : (l.d(1), l = o(c), l && (l.c(), l.m(n, null))), /*showBalance*/
|
|
4858
|
+
c[4] ? s ? s.p(c, u) : (s = Rn(c), s.c(), s.m(t, null)) : s && (s.d(1), s = null);
|
|
4838
4859
|
},
|
|
4839
4860
|
i: le,
|
|
4840
4861
|
o: le,
|
|
4841
4862
|
d(c) {
|
|
4842
|
-
c &&
|
|
4863
|
+
c && de(t), l.d(), s && s.d(), e[29](null);
|
|
4843
4864
|
}
|
|
4844
4865
|
};
|
|
4845
4866
|
}
|
|
4846
|
-
function
|
|
4867
|
+
function jo(e, t, n) {
|
|
4847
4868
|
let r;
|
|
4848
|
-
|
|
4849
|
-
let { userid: i = "" } = t, { session:
|
|
4850
|
-
const
|
|
4851
|
-
fetch(
|
|
4869
|
+
gr(e, Oo, (a) => n(6, r = a));
|
|
4870
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: l = "" } = t, { lang: s = "en" } = t, { mbsource: c } = t, { clientstyling: u = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, { customlocaleidentifier: b = "" } = t, { gmversion: _ = "gm16" } = t, { displaybalanceoption: B = "All" } = t, { totalcalculationmode: T = "totalCashAmount" } = t, { currencyseparator: x = "" } = t, { currencydecimal: S = "" } = t, { currencyprecision: D = "" } = t, H, U, W, q, Y = !1, $ = "", R = [], X, F = !1;
|
|
4871
|
+
const y = {}, _e = ["totalCashAmount", "totalRealAmount"], Ze = () => {
|
|
4872
|
+
fetch(g).then((a) => a.json()).then((a) => Object.keys(a).forEach((f) => Tn(f, a[f]))).catch((a) => console.log(a));
|
|
4852
4873
|
};
|
|
4853
|
-
Object.keys(
|
|
4854
|
-
const
|
|
4855
|
-
switch (
|
|
4874
|
+
Object.keys(wn).forEach((a) => Tn(a, wn[a]));
|
|
4875
|
+
const Be = (a) => {
|
|
4876
|
+
switch (a) {
|
|
4856
4877
|
case "balance":
|
|
4857
4878
|
window.postMessage(
|
|
4858
4879
|
{
|
|
@@ -4860,10 +4881,10 @@ function Fa(e, t, n) {
|
|
|
4860
4881
|
status: "open"
|
|
4861
4882
|
},
|
|
4862
4883
|
window.location.href
|
|
4863
|
-
), n(4,
|
|
4884
|
+
), n(4, Y = !0), setTimeout(() => n(3, W = !0), 150);
|
|
4864
4885
|
break;
|
|
4865
4886
|
case "closebalance":
|
|
4866
|
-
n(3,
|
|
4887
|
+
n(3, W = !1), window.postMessage(
|
|
4867
4888
|
{
|
|
4868
4889
|
type: "BalanceModalStatus",
|
|
4869
4890
|
status: "close"
|
|
@@ -4871,86 +4892,86 @@ function Fa(e, t, n) {
|
|
|
4871
4892
|
window.location.href
|
|
4872
4893
|
), setTimeout(
|
|
4873
4894
|
() => {
|
|
4874
|
-
n(4,
|
|
4895
|
+
n(4, Y = !1);
|
|
4875
4896
|
},
|
|
4876
4897
|
150
|
|
4877
4898
|
);
|
|
4878
4899
|
break;
|
|
4879
4900
|
}
|
|
4880
|
-
},
|
|
4881
|
-
if (b.includes(
|
|
4901
|
+
}, Re = () => {
|
|
4902
|
+
if (b.includes(s))
|
|
4882
4903
|
return b;
|
|
4883
|
-
},
|
|
4884
|
-
separator:
|
|
4885
|
-
decimal:
|
|
4904
|
+
}, me = (a) => b ? new Intl.NumberFormat(Re(), { useGrouping: !0 }).format(a) : x && S ? he(a, {
|
|
4905
|
+
separator: x,
|
|
4906
|
+
decimal: S,
|
|
4886
4907
|
symbol: "",
|
|
4887
|
-
precision: parseInt(
|
|
4888
|
-
}).format() :
|
|
4908
|
+
precision: parseInt(D || "2", 10)
|
|
4909
|
+
}).format() : he(a, {
|
|
4889
4910
|
separator: ".",
|
|
4890
4911
|
decimal: ",",
|
|
4891
4912
|
symbol: "",
|
|
4892
|
-
precision: parseInt(
|
|
4893
|
-
}).format(),
|
|
4894
|
-
var
|
|
4895
|
-
n(2,
|
|
4896
|
-
const
|
|
4913
|
+
precision: parseInt(D || "2", 10)
|
|
4914
|
+
}).format(), Te = () => Nt(this, null, function* () {
|
|
4915
|
+
var f, p, h;
|
|
4916
|
+
n(2, H = !0);
|
|
4917
|
+
const a = new URL(`${l}/v1/player/${i}/account`);
|
|
4897
4918
|
try {
|
|
4898
|
-
const
|
|
4919
|
+
const E = yield fetch(a, {
|
|
4899
4920
|
method: "GET",
|
|
4900
|
-
headers: { "X-SessionID":
|
|
4901
|
-
}),
|
|
4902
|
-
if (
|
|
4903
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href),
|
|
4921
|
+
headers: { "X-SessionID": o }
|
|
4922
|
+
}), v = yield E.json();
|
|
4923
|
+
if (E.ok)
|
|
4924
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), R = v.items, n(5, $ = (f = R.find((m) => m.displayName === "Casino")) == null ? void 0 : f.currency), n(1, y.Total = [{ amount: v.totalAmount[$] }], y), n(
|
|
4904
4925
|
1,
|
|
4905
|
-
|
|
4926
|
+
y.Real = [
|
|
4906
4927
|
{
|
|
4907
|
-
amount: (
|
|
4928
|
+
amount: (p = R.find((m) => m.displayName === "Casino")) == null ? void 0 : p.balanceAmount
|
|
4908
4929
|
}
|
|
4909
4930
|
],
|
|
4910
|
-
|
|
4931
|
+
y
|
|
4911
4932
|
), n(
|
|
4912
4933
|
1,
|
|
4913
|
-
|
|
4934
|
+
y.Bonus = [
|
|
4914
4935
|
{
|
|
4915
|
-
amount: (
|
|
4936
|
+
amount: (h = R.find((m) => m.displayName === "UBS")) == null ? void 0 : h.balanceAmount
|
|
4916
4937
|
}
|
|
4917
4938
|
],
|
|
4918
|
-
|
|
4939
|
+
y
|
|
4919
4940
|
);
|
|
4920
4941
|
else
|
|
4921
4942
|
throw new Error("Failed to fetch balance data !");
|
|
4922
|
-
} catch (
|
|
4923
|
-
console.log("Balance error: ",
|
|
4943
|
+
} catch (E) {
|
|
4944
|
+
console.log("Balance error: ", E);
|
|
4924
4945
|
} finally {
|
|
4925
|
-
n(2,
|
|
4946
|
+
n(2, H = !1);
|
|
4926
4947
|
}
|
|
4927
|
-
}),
|
|
4928
|
-
n(2,
|
|
4929
|
-
const
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
const
|
|
4933
|
-
if (n(5,
|
|
4934
|
-
|
|
4948
|
+
}), Ae = () => {
|
|
4949
|
+
n(2, H = !0);
|
|
4950
|
+
const a = new URL(`${l}/v2/player/${i}/balance`), f = new Headers();
|
|
4951
|
+
f.append("X-SessionID", o), fetch(a, { method: "GET", headers: f }).then((h) => h.json()).then((h) => {
|
|
4952
|
+
h[T] || n(10, T = _e[0]);
|
|
4953
|
+
const E = h.items.find((m) => m.type === "Real" && m.walletAccountType === "Ordinary");
|
|
4954
|
+
if (n(5, $ = E.currency), F = !!E.productType, n(1, y.Total = [{ amount: 0 }], y), n(1, y.Real = [], y), n(1, y.Bonus = [], y), n(1, y.Credit = [], y), !F) {
|
|
4955
|
+
X = {
|
|
4935
4956
|
lastOrdinaryAfterAmount: 0,
|
|
4936
4957
|
showCreditLineAfterAmount: !1
|
|
4937
|
-
}, n(1,
|
|
4938
|
-
for (const
|
|
4939
|
-
switch (
|
|
4958
|
+
}, n(1, y.Total[0].amount = h[T][$], y);
|
|
4959
|
+
for (const m of h.items)
|
|
4960
|
+
switch (m.type) {
|
|
4940
4961
|
case "Bonus":
|
|
4941
|
-
|
|
4962
|
+
y.Bonus.length === 0 ? y.Bonus.push({ amount: m.amount }) : n(1, y.Bonus[0].amount += m.amount, y);
|
|
4942
4963
|
break;
|
|
4943
4964
|
case "Real":
|
|
4944
|
-
if (
|
|
4945
|
-
|
|
4965
|
+
if (m.creditLine && y.Credit.length === 0 && y.Credit.push({ amount: m.creditLine }), T === "totalRealAmount") continue;
|
|
4966
|
+
y.Real.length === 0 ? y.Real.push({ amount: m.amount }) : n(1, y.Real[0].amount += m.amount, y);
|
|
4946
4967
|
break;
|
|
4947
4968
|
}
|
|
4948
|
-
for (const [
|
|
4949
|
-
|
|
4950
|
-
n(2,
|
|
4969
|
+
for (const [m, L] of Object.entries(y))
|
|
4970
|
+
L.length < 1 && delete y[m];
|
|
4971
|
+
n(2, H = !1);
|
|
4951
4972
|
return;
|
|
4952
4973
|
}
|
|
4953
|
-
|
|
4974
|
+
X = {
|
|
4954
4975
|
Casino: {
|
|
4955
4976
|
lastOrdinaryAfterAmount: 0,
|
|
4956
4977
|
showCreditLineAfterAmount: !1
|
|
@@ -4960,228 +4981,218 @@ function Fa(e, t, n) {
|
|
|
4960
4981
|
showCreditLineAfterAmount: !1
|
|
4961
4982
|
}
|
|
4962
4983
|
};
|
|
4963
|
-
let
|
|
4964
|
-
|
|
4965
|
-
for (const
|
|
4966
|
-
let
|
|
4967
|
-
switch (
|
|
4984
|
+
let v = h.items;
|
|
4985
|
+
B && B !== "All" && (v = h.items.filter((m) => m.productType === B));
|
|
4986
|
+
for (const m of v) {
|
|
4987
|
+
let L;
|
|
4988
|
+
switch (m.type) {
|
|
4968
4989
|
case "Bonus":
|
|
4969
|
-
|
|
4970
|
-
amount:
|
|
4971
|
-
productType:
|
|
4990
|
+
L = y.Bonus.findIndex((A) => A.productType === m.productType), L > 0 ? n(1, y.Bonus[L].amount += m.amount, y) : y.Bonus.push({
|
|
4991
|
+
amount: m.amount,
|
|
4992
|
+
productType: m.productType
|
|
4972
4993
|
});
|
|
4973
4994
|
break;
|
|
4974
4995
|
case "Real":
|
|
4975
|
-
|
|
4976
|
-
amount:
|
|
4977
|
-
productType:
|
|
4978
|
-
}),
|
|
4979
|
-
amount:
|
|
4980
|
-
productType:
|
|
4996
|
+
m.creditLine && y.Credit.push({
|
|
4997
|
+
amount: m.creditLine,
|
|
4998
|
+
productType: m.productType
|
|
4999
|
+
}), L = y.Real.findIndex((A) => A.productType === m.productType), L > 0 ? n(1, y.Real[L].amount += m.amount, y) : y.Real.push({
|
|
5000
|
+
amount: m.amount,
|
|
5001
|
+
productType: m.productType
|
|
4981
5002
|
});
|
|
4982
5003
|
break;
|
|
4983
5004
|
}
|
|
4984
5005
|
}
|
|
4985
|
-
|
|
4986
|
-
for (const [
|
|
4987
|
-
|
|
4988
|
-
n(2,
|
|
4989
|
-
}).catch((
|
|
4990
|
-
throw n(2,
|
|
5006
|
+
ot();
|
|
5007
|
+
for (const [m, L] of Object.entries(y))
|
|
5008
|
+
L.length < 1 && delete y[m];
|
|
5009
|
+
n(2, H = !1);
|
|
5010
|
+
}).catch((h) => {
|
|
5011
|
+
throw n(2, H = !1), new Error("Failed to fetch balance data !");
|
|
4991
5012
|
});
|
|
4992
|
-
},
|
|
4993
|
-
if (
|
|
4994
|
-
let
|
|
4995
|
-
switch (
|
|
5013
|
+
}, Ce = () => {
|
|
5014
|
+
if (q && q.close(), o.length < 1) return;
|
|
5015
|
+
let a, f;
|
|
5016
|
+
switch (_) {
|
|
4996
5017
|
case "gm16":
|
|
4997
|
-
|
|
5018
|
+
a = new URL(`${l}/v2/player/${i}/information/updates`), f = (E) => Tt(E);
|
|
4998
5019
|
break;
|
|
4999
5020
|
case "gmcore":
|
|
5000
|
-
|
|
5021
|
+
a = new URL(`${l}/v1/player/${i}/balance/updates`), f = (E) => qe(E);
|
|
5001
5022
|
break;
|
|
5002
5023
|
}
|
|
5003
|
-
const
|
|
5024
|
+
const p = {
|
|
5004
5025
|
accept: "text/event-stream",
|
|
5005
|
-
"X-SessionId":
|
|
5006
|
-
},
|
|
5007
|
-
|
|
5008
|
-
},
|
|
5009
|
-
let
|
|
5026
|
+
"X-SessionId": o
|
|
5027
|
+
}, h = new Lo.EventSourcePolyfill(a, { headers: p });
|
|
5028
|
+
q = h, h.addEventListener("message", f);
|
|
5029
|
+
}, ue = (a) => {
|
|
5030
|
+
let f;
|
|
5010
5031
|
try {
|
|
5011
|
-
|
|
5012
|
-
} catch (
|
|
5013
|
-
console.log("Balance stream failed: ",
|
|
5032
|
+
f = JSON.parse(a);
|
|
5033
|
+
} catch (p) {
|
|
5034
|
+
console.log("Balance stream failed: ", p);
|
|
5014
5035
|
return;
|
|
5015
5036
|
}
|
|
5016
|
-
return
|
|
5017
|
-
},
|
|
5018
|
-
var
|
|
5019
|
-
const
|
|
5020
|
-
if (!
|
|
5021
|
-
|
|
5037
|
+
return f;
|
|
5038
|
+
}, qe = (a) => {
|
|
5039
|
+
var E, v;
|
|
5040
|
+
const f = ue(a.data);
|
|
5041
|
+
if (!f) {
|
|
5042
|
+
Ce();
|
|
5022
5043
|
return;
|
|
5023
5044
|
}
|
|
5024
|
-
let
|
|
5025
|
-
const
|
|
5026
|
-
|
|
5027
|
-
balanceAmount:
|
|
5028
|
-
})),
|
|
5029
|
-
},
|
|
5030
|
-
let
|
|
5031
|
-
switch (
|
|
5045
|
+
let p = "0";
|
|
5046
|
+
const h = f.balanceChange;
|
|
5047
|
+
R = R.map((m) => (h && h[m.id] && (m = Mt(Lt({}, m), {
|
|
5048
|
+
balanceAmount: h[m.id].afterAmount
|
|
5049
|
+
})), p = (parseFloat(m == null ? void 0 : m.balanceAmount) + parseFloat(p)).toString(), m)), n(1, y.Real = [{ amount: (E = R[0]) == null ? void 0 : E.balanceAmount }], y), n(1, y.Bonus = [{ amount: (v = R[1]) == null ? void 0 : v.balanceAmount }], y), n(1, y.Total = [{ amount: Number(p) }], y);
|
|
5050
|
+
}, Le = (a, f, p) => {
|
|
5051
|
+
let h = null;
|
|
5052
|
+
switch (p.walletAccountType) {
|
|
5032
5053
|
case "Ordinary":
|
|
5033
|
-
|
|
5054
|
+
p.afterAmount !== p.affectedAmount && (f.lastOrdinaryAfterAmount = p.afterAmount, f.showCreditLineAfterAmount || (h = p.afterAmount));
|
|
5034
5055
|
break;
|
|
5035
5056
|
case "CreditLine":
|
|
5036
|
-
|
|
5057
|
+
p.afterAmount !== 0 ? (h = p.afterAmount, f.showCreditLineAfterAmount = !0) : (h = f.lastOrdinaryAfterAmount, f.showCreditLineAfterAmount = !1);
|
|
5037
5058
|
break;
|
|
5038
5059
|
default:
|
|
5039
|
-
|
|
5060
|
+
h = p.afterAmount;
|
|
5040
5061
|
}
|
|
5041
|
-
return
|
|
5042
|
-
},
|
|
5043
|
-
switch (
|
|
5062
|
+
return h === null ? a : h;
|
|
5063
|
+
}, ot = () => {
|
|
5064
|
+
switch (T) {
|
|
5044
5065
|
case "totalCashAmount":
|
|
5045
|
-
let
|
|
5046
|
-
for (const
|
|
5047
|
-
for (const
|
|
5048
|
-
|
|
5049
|
-
n(1,
|
|
5066
|
+
let a = 0;
|
|
5067
|
+
for (const p of ["Real", "Bonus"])
|
|
5068
|
+
for (const h of y[p])
|
|
5069
|
+
a += Math.max(h.amount, 0);
|
|
5070
|
+
n(1, y.Total[0].amount = a, y);
|
|
5050
5071
|
break;
|
|
5051
5072
|
case "totalRealAmount":
|
|
5052
|
-
if (!
|
|
5053
|
-
let
|
|
5054
|
-
for (const
|
|
5055
|
-
|
|
5056
|
-
n(1,
|
|
5073
|
+
if (!F) return;
|
|
5074
|
+
let f = 0;
|
|
5075
|
+
for (const p of y.Real)
|
|
5076
|
+
f += p.amount;
|
|
5077
|
+
n(1, y.Total[0].amount = f, y);
|
|
5057
5078
|
}
|
|
5058
|
-
},
|
|
5059
|
-
const
|
|
5060
|
-
if (!
|
|
5061
|
-
|
|
5079
|
+
}, Tt = (a) => {
|
|
5080
|
+
const f = ue(a.data);
|
|
5081
|
+
if (!f) {
|
|
5082
|
+
Ce();
|
|
5062
5083
|
return;
|
|
5063
5084
|
}
|
|
5064
|
-
if (
|
|
5085
|
+
if (f.type !== "BALANCE_UPDATE_V2")
|
|
5065
5086
|
return;
|
|
5066
|
-
const
|
|
5067
|
-
for (const [
|
|
5068
|
-
if (
|
|
5069
|
-
for (const
|
|
5070
|
-
if (!
|
|
5071
|
-
|
|
5087
|
+
const p = f.body.balanceChange;
|
|
5088
|
+
for (const [h, E] of Object.entries(p))
|
|
5089
|
+
if (T === "totalRealAmount" && h === "Real" && !F && n(1, y.Total[0].amount = Le(y.Total[0].amount, X, E), y), !!y[h])
|
|
5090
|
+
for (const v of y[h]) {
|
|
5091
|
+
if (!F) {
|
|
5092
|
+
v.amount = h === "Real" ? Le(v.amount, X, E) : E.afterAmount;
|
|
5072
5093
|
continue;
|
|
5073
5094
|
}
|
|
5074
|
-
|
|
5095
|
+
E.productType === v.productType && (v.amount = h === "Real" ? Le(v.amount, X[v.productType], E) : E.afterAmount);
|
|
5075
5096
|
}
|
|
5076
|
-
|
|
5097
|
+
ot();
|
|
5077
5098
|
}, at = () => {
|
|
5078
|
-
|
|
5079
|
-
}, Tt = () => {
|
|
5080
|
-
J.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${J}. Using default value ('${J[0]}').`), n(10, _ = J[0]));
|
|
5099
|
+
Be("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5081
5100
|
}, wt = () => {
|
|
5082
|
-
|
|
5101
|
+
_e.includes(T) || (console.error(`Unsupported value ('${T}') for totalcalculationmode parameter. Only the following values are supported ${_e}. Using default value ('${_e[0]}').`), n(10, T = _e[0]));
|
|
5102
|
+
}, Qe = () => {
|
|
5103
|
+
switch (Ro(s), wt(), _) {
|
|
5083
5104
|
case "gmcore":
|
|
5084
|
-
|
|
5105
|
+
Te();
|
|
5085
5106
|
break;
|
|
5086
5107
|
case "gm16":
|
|
5087
|
-
|
|
5108
|
+
Ae();
|
|
5088
5109
|
break;
|
|
5089
5110
|
default:
|
|
5090
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
5111
|
+
throw Error(`Invalid apiversion attribute: ${_}`);
|
|
5091
5112
|
}
|
|
5092
|
-
},
|
|
5093
|
-
const s = document.createElement("style");
|
|
5094
|
-
s.innerHTML = c, O.appendChild(s);
|
|
5095
|
-
}, we = () => {
|
|
5096
|
-
const s = new URL(u), p = document.createElement("style");
|
|
5097
|
-
fetch(s.href).then((f) => f.text()).then((f) => {
|
|
5098
|
-
p.innerHTML = f, setTimeout(
|
|
5099
|
-
() => {
|
|
5100
|
-
O.appendChild(p);
|
|
5101
|
-
},
|
|
5102
|
-
1
|
|
5103
|
-
);
|
|
5104
|
-
});
|
|
5105
|
-
}, re = () => {
|
|
5113
|
+
}, Me = (a) => a.data && a.data.type === "LogoutSuccessfull" && q.close(), we = () => {
|
|
5106
5114
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5107
5115
|
};
|
|
5108
|
-
|
|
5109
|
-
window.removeEventListener("message",
|
|
5116
|
+
Tr(() => (window.addEventListener("message", Me, !1), () => {
|
|
5117
|
+
window.removeEventListener("message", Me), q && q.close();
|
|
5110
5118
|
}));
|
|
5111
|
-
const
|
|
5112
|
-
function
|
|
5113
|
-
jt[
|
|
5114
|
-
|
|
5119
|
+
const re = () => Be("balance"), St = () => Be("closebalance"), At = () => at(), Ct = () => Be("closeBalance");
|
|
5120
|
+
function st(a) {
|
|
5121
|
+
jt[a ? "unshift" : "push"](() => {
|
|
5122
|
+
U = a, n(0, U);
|
|
5115
5123
|
});
|
|
5116
5124
|
}
|
|
5117
|
-
return e.$$set = (
|
|
5118
|
-
"userid" in
|
|
5125
|
+
return e.$$set = (a) => {
|
|
5126
|
+
"userid" in a && n(11, i = a.userid), "session" in a && n(12, o = a.session), "endpoint" in a && n(13, l = a.endpoint), "lang" in a && n(14, s = a.lang), "mbsource" in a && n(15, c = a.mbsource), "clientstyling" in a && n(16, u = a.clientstyling), "clientstylingurl" in a && n(17, d = a.clientstylingurl), "translationurl" in a && n(18, g = a.translationurl), "customlocaleidentifier" in a && n(19, b = a.customlocaleidentifier), "gmversion" in a && n(20, _ = a.gmversion), "displaybalanceoption" in a && n(21, B = a.displaybalanceoption), "totalcalculationmode" in a && n(10, T = a.totalcalculationmode), "currencyseparator" in a && n(22, x = a.currencyseparator), "currencydecimal" in a && n(23, S = a.currencydecimal), "currencyprecision" in a && n(24, D = a.currencyprecision);
|
|
5119
5127
|
}, e.$$.update = () => {
|
|
5120
5128
|
e.$$.dirty[0] & /*lang*/
|
|
5121
|
-
16384 &&
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5129
|
+
16384 && s && Re(), e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5130
|
+
3176448 && l && i && o && s && _ && B && Qe(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5131
|
+
1062912 && l && i && o && _ && Ce(), e.$$.dirty[0] & /*translationurl*/
|
|
5132
|
+
262144 && g && Ze(), e.$$.dirty[0] & /*balances*/
|
|
5133
|
+
2 && y.Total && we(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5134
|
+
65537 && u && U && Ur(U, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5135
|
+
131073 && d && U && Fr(U, d), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5136
|
+
32769 && c && U && Gr(U, `${c}.Style`);
|
|
5128
5137
|
}, [
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
k,
|
|
5133
|
-
ne,
|
|
5138
|
+
U,
|
|
5139
|
+
y,
|
|
5140
|
+
H,
|
|
5134
5141
|
W,
|
|
5142
|
+
Y,
|
|
5143
|
+
$,
|
|
5135
5144
|
r,
|
|
5136
|
-
|
|
5137
|
-
|
|
5145
|
+
Be,
|
|
5146
|
+
me,
|
|
5138
5147
|
at,
|
|
5139
|
-
|
|
5148
|
+
T,
|
|
5140
5149
|
i,
|
|
5141
|
-
a,
|
|
5142
|
-
l,
|
|
5143
5150
|
o,
|
|
5151
|
+
l,
|
|
5152
|
+
s,
|
|
5144
5153
|
c,
|
|
5145
5154
|
u,
|
|
5146
5155
|
d,
|
|
5156
|
+
g,
|
|
5147
5157
|
b,
|
|
5148
|
-
|
|
5149
|
-
T,
|
|
5150
|
-
H,
|
|
5158
|
+
_,
|
|
5151
5159
|
B,
|
|
5152
|
-
|
|
5160
|
+
x,
|
|
5161
|
+
S,
|
|
5162
|
+
D,
|
|
5163
|
+
re,
|
|
5153
5164
|
St,
|
|
5154
5165
|
At,
|
|
5155
5166
|
Ct,
|
|
5156
|
-
|
|
5157
|
-
h
|
|
5167
|
+
st
|
|
5158
5168
|
];
|
|
5159
5169
|
}
|
|
5160
|
-
class
|
|
5170
|
+
class ko extends Pr {
|
|
5161
5171
|
constructor(t) {
|
|
5162
|
-
super(),
|
|
5172
|
+
super(), Nr(
|
|
5163
5173
|
this,
|
|
5164
5174
|
t,
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5175
|
+
jo,
|
|
5176
|
+
$o,
|
|
5177
|
+
Mn,
|
|
5168
5178
|
{
|
|
5169
5179
|
userid: 11,
|
|
5170
5180
|
session: 12,
|
|
5171
5181
|
endpoint: 13,
|
|
5172
5182
|
lang: 14,
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5183
|
+
mbsource: 15,
|
|
5184
|
+
clientstyling: 16,
|
|
5185
|
+
clientstylingurl: 17,
|
|
5186
|
+
translationurl: 18,
|
|
5187
|
+
customlocaleidentifier: 19,
|
|
5188
|
+
gmversion: 20,
|
|
5189
|
+
displaybalanceoption: 21,
|
|
5179
5190
|
totalcalculationmode: 10,
|
|
5180
|
-
currencyseparator:
|
|
5181
|
-
currencydecimal:
|
|
5182
|
-
currencyprecision:
|
|
5191
|
+
currencyseparator: 22,
|
|
5192
|
+
currencydecimal: 23,
|
|
5193
|
+
currencyprecision: 24
|
|
5183
5194
|
},
|
|
5184
|
-
|
|
5195
|
+
Uo,
|
|
5185
5196
|
[-1, -1]
|
|
5186
5197
|
);
|
|
5187
5198
|
}
|
|
@@ -5189,88 +5200,94 @@ class Ga extends Ur {
|
|
|
5189
5200
|
return this.$$.ctx[11];
|
|
5190
5201
|
}
|
|
5191
5202
|
set userid(t) {
|
|
5192
|
-
this.$$set({ userid: t }),
|
|
5203
|
+
this.$$set({ userid: t }), J();
|
|
5193
5204
|
}
|
|
5194
5205
|
get session() {
|
|
5195
5206
|
return this.$$.ctx[12];
|
|
5196
5207
|
}
|
|
5197
5208
|
set session(t) {
|
|
5198
|
-
this.$$set({ session: t }),
|
|
5209
|
+
this.$$set({ session: t }), J();
|
|
5199
5210
|
}
|
|
5200
5211
|
get endpoint() {
|
|
5201
5212
|
return this.$$.ctx[13];
|
|
5202
5213
|
}
|
|
5203
5214
|
set endpoint(t) {
|
|
5204
|
-
this.$$set({ endpoint: t }),
|
|
5215
|
+
this.$$set({ endpoint: t }), J();
|
|
5205
5216
|
}
|
|
5206
5217
|
get lang() {
|
|
5207
5218
|
return this.$$.ctx[14];
|
|
5208
5219
|
}
|
|
5209
5220
|
set lang(t) {
|
|
5210
|
-
this.$$set({ lang: t }),
|
|
5221
|
+
this.$$set({ lang: t }), J();
|
|
5211
5222
|
}
|
|
5212
|
-
get
|
|
5223
|
+
get mbsource() {
|
|
5213
5224
|
return this.$$.ctx[15];
|
|
5214
5225
|
}
|
|
5226
|
+
set mbsource(t) {
|
|
5227
|
+
this.$$set({ mbsource: t }), J();
|
|
5228
|
+
}
|
|
5229
|
+
get clientstyling() {
|
|
5230
|
+
return this.$$.ctx[16];
|
|
5231
|
+
}
|
|
5215
5232
|
set clientstyling(t) {
|
|
5216
|
-
this.$$set({ clientstyling: t }),
|
|
5233
|
+
this.$$set({ clientstyling: t }), J();
|
|
5217
5234
|
}
|
|
5218
5235
|
get clientstylingurl() {
|
|
5219
|
-
return this.$$.ctx[
|
|
5236
|
+
return this.$$.ctx[17];
|
|
5220
5237
|
}
|
|
5221
5238
|
set clientstylingurl(t) {
|
|
5222
|
-
this.$$set({ clientstylingurl: t }),
|
|
5239
|
+
this.$$set({ clientstylingurl: t }), J();
|
|
5223
5240
|
}
|
|
5224
5241
|
get translationurl() {
|
|
5225
|
-
return this.$$.ctx[
|
|
5242
|
+
return this.$$.ctx[18];
|
|
5226
5243
|
}
|
|
5227
5244
|
set translationurl(t) {
|
|
5228
|
-
this.$$set({ translationurl: t }),
|
|
5245
|
+
this.$$set({ translationurl: t }), J();
|
|
5229
5246
|
}
|
|
5230
5247
|
get customlocaleidentifier() {
|
|
5231
|
-
return this.$$.ctx[
|
|
5248
|
+
return this.$$.ctx[19];
|
|
5232
5249
|
}
|
|
5233
5250
|
set customlocaleidentifier(t) {
|
|
5234
|
-
this.$$set({ customlocaleidentifier: t }),
|
|
5251
|
+
this.$$set({ customlocaleidentifier: t }), J();
|
|
5235
5252
|
}
|
|
5236
5253
|
get gmversion() {
|
|
5237
|
-
return this.$$.ctx[
|
|
5254
|
+
return this.$$.ctx[20];
|
|
5238
5255
|
}
|
|
5239
5256
|
set gmversion(t) {
|
|
5240
|
-
this.$$set({ gmversion: t }),
|
|
5257
|
+
this.$$set({ gmversion: t }), J();
|
|
5241
5258
|
}
|
|
5242
5259
|
get displaybalanceoption() {
|
|
5243
|
-
return this.$$.ctx[
|
|
5260
|
+
return this.$$.ctx[21];
|
|
5244
5261
|
}
|
|
5245
5262
|
set displaybalanceoption(t) {
|
|
5246
|
-
this.$$set({ displaybalanceoption: t }),
|
|
5263
|
+
this.$$set({ displaybalanceoption: t }), J();
|
|
5247
5264
|
}
|
|
5248
5265
|
get totalcalculationmode() {
|
|
5249
5266
|
return this.$$.ctx[10];
|
|
5250
5267
|
}
|
|
5251
5268
|
set totalcalculationmode(t) {
|
|
5252
|
-
this.$$set({ totalcalculationmode: t }),
|
|
5269
|
+
this.$$set({ totalcalculationmode: t }), J();
|
|
5253
5270
|
}
|
|
5254
5271
|
get currencyseparator() {
|
|
5255
|
-
return this.$$.ctx[
|
|
5272
|
+
return this.$$.ctx[22];
|
|
5256
5273
|
}
|
|
5257
5274
|
set currencyseparator(t) {
|
|
5258
|
-
this.$$set({ currencyseparator: t }),
|
|
5275
|
+
this.$$set({ currencyseparator: t }), J();
|
|
5259
5276
|
}
|
|
5260
5277
|
get currencydecimal() {
|
|
5261
|
-
return this.$$.ctx[
|
|
5278
|
+
return this.$$.ctx[23];
|
|
5262
5279
|
}
|
|
5263
5280
|
set currencydecimal(t) {
|
|
5264
|
-
this.$$set({ currencydecimal: t }),
|
|
5281
|
+
this.$$set({ currencydecimal: t }), J();
|
|
5265
5282
|
}
|
|
5266
5283
|
get currencyprecision() {
|
|
5267
|
-
return this.$$.ctx[
|
|
5284
|
+
return this.$$.ctx[24];
|
|
5268
5285
|
}
|
|
5269
5286
|
set currencyprecision(t) {
|
|
5270
|
-
this.$$set({ currencyprecision: t }),
|
|
5287
|
+
this.$$set({ currencyprecision: t }), J();
|
|
5271
5288
|
}
|
|
5272
5289
|
}
|
|
5273
|
-
|
|
5290
|
+
Ir(ko, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, customlocaleidentifier: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencyseparator: {}, currencydecimal: {}, currencyprecision: {} }, [], [], !0);
|
|
5274
5291
|
export {
|
|
5275
|
-
|
|
5292
|
+
ko as default
|
|
5276
5293
|
};
|