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