@everymatrix/player-account-balance-modal-nd 1.74.3 → 1.74.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountBalanceModalNd-aF42S6lR.js → PlayerAccountBalanceModalNd-B0LdCyHY.js} +1382 -1368
- package/components/PlayerAccountBalanceModalNd-BXdAvssr.cjs +24 -0
- package/components/{PlayerAccountBalanceModalNd-lPXKhPip.js → PlayerAccountBalanceModalNd-C6lbN4sl.js} +1455 -1441
- package/es2015/player-account-balance-modal-nd.cjs +1 -1
- package/es2015/player-account-balance-modal-nd.js +1 -1
- package/esnext/player-account-balance-modal-nd.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModalNd-D5dg567p.cjs +0 -24
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var Lr = Object.defineProperty, Pr = Object.defineProperties;
|
|
2
|
+
var Ir = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var gn = Object.getOwnPropertySymbols;
|
|
4
|
+
var Nr = Object.prototype.hasOwnProperty, Dr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var It = Math.pow, Pt = (e, t, n) => t in e ? Lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Nt = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
Nr.call(t, n) && Pt(e, n, t[n]);
|
|
8
|
+
if (gn)
|
|
9
|
+
for (var n of gn(t))
|
|
10
|
+
Dr.call(t, n) && Pt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, Dt = (e, t) =>
|
|
13
|
-
var
|
|
12
|
+
}, Dt = (e, t) => Pr(e, Ir(t));
|
|
13
|
+
var he = (e, t, n) => (Pt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
14
|
var Ut = (e, t, n) => new Promise((r, i) => {
|
|
15
|
-
var o = (
|
|
15
|
+
var o = (u) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
} catch (
|
|
19
|
-
i(
|
|
17
|
+
a(n.next(u));
|
|
18
|
+
} catch (l) {
|
|
19
|
+
i(l);
|
|
20
20
|
}
|
|
21
|
-
},
|
|
21
|
+
}, s = (u) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
24
|
-
} catch (
|
|
25
|
-
i(
|
|
23
|
+
a(n.throw(u));
|
|
24
|
+
} catch (l) {
|
|
25
|
+
i(l);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, a = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(o, s);
|
|
28
|
+
a((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function fe() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function qn(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function yn() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ze(e) {
|
|
39
|
+
e.forEach(qn);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function hn(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Yn(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Ur(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Qn(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const r of t)
|
|
53
53
|
r(void 0);
|
|
54
|
-
return
|
|
54
|
+
return fe;
|
|
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 Fr(e, t, n) {
|
|
60
|
+
e.$$.on_destroy.push(Qn(t, n));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function I(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const r =
|
|
65
|
+
function Gr(e, t, n) {
|
|
66
|
+
const r = jr(e);
|
|
67
67
|
if (!r.getElementById(t)) {
|
|
68
68
|
const i = j("style");
|
|
69
|
-
i.id = t, i.textContent = n,
|
|
69
|
+
i.id = t, i.textContent = n, kr(r, i);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function jr(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,52 +79,52 @@ function Ur(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function kr(e, t) {
|
|
83
|
+
return I(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
87
87
|
), t.sheet;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function ye(e, t, n) {
|
|
90
90
|
e.insertBefore(t, n || null);
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function be(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Jn(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 j(e) {
|
|
100
100
|
return document.createElement(e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function vn(e) {
|
|
103
103
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function Se(e) {
|
|
106
106
|
return document.createTextNode(e);
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function Te() {
|
|
109
|
+
return Se(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
111
|
+
function $r() {
|
|
112
|
+
return Se("");
|
|
113
113
|
}
|
|
114
114
|
function Et(e, t, n, r) {
|
|
115
115
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function R(e, t, n) {
|
|
118
118
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Vr(e) {
|
|
121
121
|
return Array.from(e.childNodes);
|
|
122
122
|
}
|
|
123
123
|
function Re(e, t) {
|
|
124
124
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
125
125
|
t);
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Xr(e) {
|
|
128
128
|
const t = {};
|
|
129
129
|
return e.childNodes.forEach(
|
|
130
130
|
/** @param {Element} node */
|
|
@@ -137,144 +137,144 @@ let it;
|
|
|
137
137
|
function rt(e) {
|
|
138
138
|
it = e;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function zr() {
|
|
141
141
|
if (!it)
|
|
142
142
|
throw new Error("Function called outside component initialization");
|
|
143
143
|
return it;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
145
|
+
function Wr(e) {
|
|
146
|
+
zr().$$.on_mount.push(e);
|
|
147
147
|
}
|
|
148
|
-
const
|
|
149
|
-
let
|
|
150
|
-
const
|
|
151
|
-
let
|
|
152
|
-
function
|
|
153
|
-
|
|
148
|
+
const Fe = [], Wt = [];
|
|
149
|
+
let Ge = [];
|
|
150
|
+
const En = [], Zr = /* @__PURE__ */ Promise.resolve();
|
|
151
|
+
let Zt = !1;
|
|
152
|
+
function qr() {
|
|
153
|
+
Zt || (Zt = !0, Zr.then(Y));
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
|
|
155
|
+
function qt(e) {
|
|
156
|
+
Ge.push(e);
|
|
157
157
|
}
|
|
158
158
|
const Ft = /* @__PURE__ */ new Set();
|
|
159
|
-
let
|
|
160
|
-
function
|
|
161
|
-
if (
|
|
159
|
+
let De = 0;
|
|
160
|
+
function Y() {
|
|
161
|
+
if (De !== 0)
|
|
162
162
|
return;
|
|
163
163
|
const e = it;
|
|
164
164
|
do {
|
|
165
165
|
try {
|
|
166
|
-
for (;
|
|
167
|
-
const t =
|
|
168
|
-
|
|
166
|
+
for (; De < Fe.length; ) {
|
|
167
|
+
const t = Fe[De];
|
|
168
|
+
De++, rt(t), Yr(t.$$);
|
|
169
169
|
}
|
|
170
170
|
} catch (t) {
|
|
171
|
-
throw
|
|
171
|
+
throw Fe.length = 0, De = 0, t;
|
|
172
172
|
}
|
|
173
|
-
for (rt(null),
|
|
174
|
-
|
|
175
|
-
for (let t = 0; t <
|
|
176
|
-
const n =
|
|
173
|
+
for (rt(null), Fe.length = 0, De = 0; Wt.length; )
|
|
174
|
+
Wt.pop()();
|
|
175
|
+
for (let t = 0; t < Ge.length; t += 1) {
|
|
176
|
+
const n = Ge[t];
|
|
177
177
|
Ft.has(n) || (Ft.add(n), n());
|
|
178
178
|
}
|
|
179
|
-
|
|
180
|
-
} while (
|
|
181
|
-
for (;
|
|
182
|
-
|
|
183
|
-
|
|
179
|
+
Ge.length = 0;
|
|
180
|
+
} while (Fe.length);
|
|
181
|
+
for (; En.length; )
|
|
182
|
+
En.pop()();
|
|
183
|
+
Zt = !1, Ft.clear(), rt(e);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Yr(e) {
|
|
186
186
|
if (e.fragment !== null) {
|
|
187
|
-
e.update(),
|
|
187
|
+
e.update(), ze(e.before_update);
|
|
188
188
|
const t = e.dirty;
|
|
189
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
189
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(qt);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Qr(e) {
|
|
193
193
|
const t = [], n = [];
|
|
194
|
-
|
|
194
|
+
Ge.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ge = t;
|
|
195
195
|
}
|
|
196
|
-
const
|
|
197
|
-
function
|
|
198
|
-
e && e.i && (
|
|
196
|
+
const Jr = /* @__PURE__ */ new Set();
|
|
197
|
+
function Kr(e, t) {
|
|
198
|
+
e && e.i && (Jr.delete(e), e.i(t));
|
|
199
199
|
}
|
|
200
200
|
function _t(e) {
|
|
201
201
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function ei(e, t, n) {
|
|
204
204
|
const { fragment: r, after_update: i } = e.$$;
|
|
205
|
-
r && r.m(t, n),
|
|
206
|
-
const o = e.$$.on_mount.map(
|
|
207
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
208
|
-
}), i.forEach(
|
|
205
|
+
r && r.m(t, n), qt(() => {
|
|
206
|
+
const o = e.$$.on_mount.map(qn).filter(hn);
|
|
207
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ze(o), e.$$.on_mount = [];
|
|
208
|
+
}), i.forEach(qt);
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function ti(e, t) {
|
|
211
211
|
const n = e.$$;
|
|
212
|
-
n.fragment !== null && (
|
|
212
|
+
n.fragment !== null && (Qr(n.after_update), ze(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 ni(e, t) {
|
|
215
|
+
e.$$.dirty[0] === -1 && (Fe.push(e), qr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
const
|
|
217
|
+
function ri(e, t, n, r, i, o, s = null, a = [-1]) {
|
|
218
|
+
const u = it;
|
|
219
219
|
rt(e);
|
|
220
|
-
const
|
|
220
|
+
const l = e.$$ = {
|
|
221
221
|
fragment: null,
|
|
222
222
|
ctx: [],
|
|
223
223
|
// state
|
|
224
224
|
props: o,
|
|
225
|
-
update:
|
|
225
|
+
update: fe,
|
|
226
226
|
not_equal: i,
|
|
227
|
-
bound:
|
|
227
|
+
bound: yn(),
|
|
228
228
|
// lifecycle
|
|
229
229
|
on_mount: [],
|
|
230
230
|
on_destroy: [],
|
|
231
231
|
on_disconnect: [],
|
|
232
232
|
before_update: [],
|
|
233
233
|
after_update: [],
|
|
234
|
-
context: new Map(t.context || (
|
|
234
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
235
235
|
// everything else
|
|
236
|
-
callbacks:
|
|
237
|
-
dirty:
|
|
236
|
+
callbacks: yn(),
|
|
237
|
+
dirty: a,
|
|
238
238
|
skip_bound: !1,
|
|
239
|
-
root: t.target ||
|
|
239
|
+
root: t.target || u.$$.root
|
|
240
240
|
};
|
|
241
|
-
|
|
241
|
+
s && s(l.root);
|
|
242
242
|
let f = !1;
|
|
243
|
-
if (
|
|
244
|
-
const
|
|
245
|
-
return
|
|
246
|
-
}),
|
|
243
|
+
if (l.ctx = n ? n(e, t.props || {}, (b, m, ...S) => {
|
|
244
|
+
const _ = S.length ? S[0] : m;
|
|
245
|
+
return l.ctx && i(l.ctx[b], l.ctx[b] = _) && (!l.skip_bound && l.bound[b] && l.bound[b](_), f && ni(e, b)), m;
|
|
246
|
+
}) : [], l.update(), f = !0, ze(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
247
247
|
if (t.hydrate) {
|
|
248
|
-
const b =
|
|
249
|
-
|
|
248
|
+
const b = Vr(t.target);
|
|
249
|
+
l.fragment && l.fragment.l(b), b.forEach(be);
|
|
250
250
|
} else
|
|
251
|
-
|
|
252
|
-
t.intro &&
|
|
251
|
+
l.fragment && l.fragment.c();
|
|
252
|
+
t.intro && Kr(e.$$.fragment), ei(e, t.target, t.anchor), Y();
|
|
253
253
|
}
|
|
254
|
-
rt(
|
|
254
|
+
rt(u);
|
|
255
255
|
}
|
|
256
|
-
let
|
|
257
|
-
typeof HTMLElement == "function" && (
|
|
256
|
+
let Kn;
|
|
257
|
+
typeof HTMLElement == "function" && (Kn = class extends HTMLElement {
|
|
258
258
|
constructor(t, n, r) {
|
|
259
259
|
super();
|
|
260
260
|
/** The Svelte component constructor */
|
|
261
|
-
|
|
261
|
+
he(this, "$$ctor");
|
|
262
262
|
/** Slots */
|
|
263
|
-
|
|
263
|
+
he(this, "$$s");
|
|
264
264
|
/** The Svelte component instance */
|
|
265
|
-
|
|
265
|
+
he(this, "$$c");
|
|
266
266
|
/** Whether or not the custom element is connected */
|
|
267
|
-
|
|
267
|
+
he(this, "$$cn", !1);
|
|
268
268
|
/** Component props data */
|
|
269
|
-
|
|
269
|
+
he(this, "$$d", {});
|
|
270
270
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
271
|
-
|
|
271
|
+
he(this, "$$r", !1);
|
|
272
272
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
273
|
-
|
|
273
|
+
he(this, "$$p_d", {});
|
|
274
274
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
275
|
-
|
|
275
|
+
he(this, "$$l", {});
|
|
276
276
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
277
|
-
|
|
277
|
+
he(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) {
|
|
@@ -295,38 +295,38 @@ typeof HTMLElement == "function" && (Qn = class extends HTMLElement {
|
|
|
295
295
|
if (this.$$cn = !0, !this.$$c) {
|
|
296
296
|
let t = function(o) {
|
|
297
297
|
return () => {
|
|
298
|
-
let
|
|
298
|
+
let s;
|
|
299
299
|
return {
|
|
300
300
|
c: function() {
|
|
301
|
-
|
|
301
|
+
s = j("slot"), o !== "default" && R(s, "name", o);
|
|
302
302
|
},
|
|
303
303
|
/**
|
|
304
304
|
* @param {HTMLElement} target
|
|
305
305
|
* @param {HTMLElement} [anchor]
|
|
306
306
|
*/
|
|
307
|
-
m: function(
|
|
308
|
-
|
|
307
|
+
m: function(l, f) {
|
|
308
|
+
ye(l, s, f);
|
|
309
309
|
},
|
|
310
|
-
d: function(
|
|
311
|
-
|
|
310
|
+
d: function(l) {
|
|
311
|
+
l && be(s);
|
|
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 =
|
|
318
|
+
const n = {}, r = Xr(this);
|
|
319
319
|
for (const o of this.$$s)
|
|
320
320
|
o in r && (n[o] = [t(o)]);
|
|
321
321
|
for (const o of this.attributes) {
|
|
322
|
-
const
|
|
323
|
-
|
|
322
|
+
const s = this.$$g_p(o.name);
|
|
323
|
+
s in this.$$d || (this.$$d[s] = bt(s, o.value, this.$$p_d, "toProp"));
|
|
324
324
|
}
|
|
325
325
|
for (const o in this.$$p_d)
|
|
326
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
|
-
props: Dt(
|
|
329
|
+
props: Dt(Nt({}, this.$$d), {
|
|
330
330
|
$$slots: n,
|
|
331
331
|
$$scope: {
|
|
332
332
|
ctx: []
|
|
@@ -337,21 +337,21 @@ typeof HTMLElement == "function" && (Qn = class extends HTMLElement {
|
|
|
337
337
|
this.$$r = !0;
|
|
338
338
|
for (const o in this.$$p_d)
|
|
339
339
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
340
|
-
const
|
|
340
|
+
const s = bt(
|
|
341
341
|
o,
|
|
342
342
|
this.$$d[o],
|
|
343
343
|
this.$$p_d,
|
|
344
344
|
"toAttribute"
|
|
345
345
|
);
|
|
346
|
-
|
|
346
|
+
s == null ? this.removeAttribute(this.$$p_d[o].attribute || o) : this.setAttribute(this.$$p_d[o].attribute || o, s);
|
|
347
347
|
}
|
|
348
348
|
this.$$r = !1;
|
|
349
349
|
};
|
|
350
350
|
this.$$c.$$.after_update.push(i), i();
|
|
351
351
|
for (const o in this.$$l)
|
|
352
|
-
for (const
|
|
353
|
-
const
|
|
354
|
-
this.$$l_u.set(
|
|
352
|
+
for (const s of this.$$l[o]) {
|
|
353
|
+
const a = this.$$c.$on(o, s);
|
|
354
|
+
this.$$l_u.set(s, a);
|
|
355
355
|
}
|
|
356
356
|
this.$$l = {};
|
|
357
357
|
}
|
|
@@ -404,38 +404,38 @@ function bt(e, t, n, r) {
|
|
|
404
404
|
return t;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
let
|
|
407
|
+
function ii(e, t, n, r, i, o) {
|
|
408
|
+
let s = class extends Kn {
|
|
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
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
415
415
|
);
|
|
416
416
|
}
|
|
417
417
|
};
|
|
418
|
-
return Object.keys(t).forEach((
|
|
419
|
-
Object.defineProperty(
|
|
418
|
+
return Object.keys(t).forEach((a) => {
|
|
419
|
+
Object.defineProperty(s.prototype, a, {
|
|
420
420
|
get() {
|
|
421
|
-
return this.$$c &&
|
|
421
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
422
422
|
},
|
|
423
|
-
set(
|
|
424
|
-
var
|
|
425
|
-
|
|
423
|
+
set(u) {
|
|
424
|
+
var l;
|
|
425
|
+
u = bt(a, u, t), this.$$d[a] = u, (l = this.$$c) == null || l.$set({ [a]: u });
|
|
426
426
|
}
|
|
427
427
|
});
|
|
428
|
-
}), r.forEach((
|
|
429
|
-
Object.defineProperty(
|
|
428
|
+
}), r.forEach((a) => {
|
|
429
|
+
Object.defineProperty(s.prototype, a, {
|
|
430
430
|
get() {
|
|
431
|
-
var
|
|
432
|
-
return (
|
|
431
|
+
var u;
|
|
432
|
+
return (u = this.$$c) == null ? void 0 : u[a];
|
|
433
433
|
}
|
|
434
434
|
});
|
|
435
435
|
}), e.element = /** @type {any} */
|
|
436
|
-
|
|
436
|
+
s, s;
|
|
437
437
|
}
|
|
438
|
-
class
|
|
438
|
+
class oi {
|
|
439
439
|
constructor() {
|
|
440
440
|
/**
|
|
441
441
|
* ### PRIVATE API
|
|
@@ -444,7 +444,7 @@ class ni {
|
|
|
444
444
|
*
|
|
445
445
|
* @type {any}
|
|
446
446
|
*/
|
|
447
|
-
|
|
447
|
+
he(this, "$$");
|
|
448
448
|
/**
|
|
449
449
|
* ### PRIVATE API
|
|
450
450
|
*
|
|
@@ -452,11 +452,11 @@ class ni {
|
|
|
452
452
|
*
|
|
453
453
|
* @type {any}
|
|
454
454
|
*/
|
|
455
|
-
|
|
455
|
+
he(this, "$$set");
|
|
456
456
|
}
|
|
457
457
|
/** @returns {void} */
|
|
458
458
|
$destroy() {
|
|
459
|
-
|
|
459
|
+
ti(this, 1), this.$destroy = fe;
|
|
460
460
|
}
|
|
461
461
|
/**
|
|
462
462
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -465,8 +465,8 @@ class ni {
|
|
|
465
465
|
* @returns {() => void}
|
|
466
466
|
*/
|
|
467
467
|
$on(t, n) {
|
|
468
|
-
if (!
|
|
469
|
-
return
|
|
468
|
+
if (!hn(n))
|
|
469
|
+
return fe;
|
|
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 ni {
|
|
|
478
478
|
* @returns {void}
|
|
479
479
|
*/
|
|
480
480
|
$set(t) {
|
|
481
|
-
this.$$set && !
|
|
481
|
+
this.$$set && !Ur(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 ai = "4";
|
|
485
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ai);
|
|
486
|
+
function si(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 li(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 oi(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 ui(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 ai(e, t, n) {
|
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
|
-
const
|
|
510
|
-
function
|
|
509
|
+
const Ue = [];
|
|
510
|
+
function ci(e, t) {
|
|
511
511
|
return {
|
|
512
512
|
subscribe: St(e, t).subscribe
|
|
513
513
|
};
|
|
514
514
|
}
|
|
515
|
-
function St(e, t =
|
|
515
|
+
function St(e, t = fe) {
|
|
516
516
|
let n;
|
|
517
517
|
const r = /* @__PURE__ */ new Set();
|
|
518
|
-
function i(
|
|
519
|
-
if (
|
|
520
|
-
const
|
|
521
|
-
for (const
|
|
522
|
-
|
|
523
|
-
if (
|
|
524
|
-
for (let
|
|
525
|
-
|
|
526
|
-
|
|
518
|
+
function i(a) {
|
|
519
|
+
if (Yn(e, a) && (e = a, n)) {
|
|
520
|
+
const u = !Ue.length;
|
|
521
|
+
for (const l of r)
|
|
522
|
+
l[1](), Ue.push(l, e);
|
|
523
|
+
if (u) {
|
|
524
|
+
for (let l = 0; l < Ue.length; l += 2)
|
|
525
|
+
Ue[l][0](Ue[l + 1]);
|
|
526
|
+
Ue.length = 0;
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
function o(
|
|
531
|
-
i(
|
|
530
|
+
function o(a) {
|
|
531
|
+
i(a(e));
|
|
532
532
|
}
|
|
533
|
-
function a
|
|
534
|
-
const
|
|
535
|
-
return r.add(
|
|
536
|
-
r.delete(
|
|
533
|
+
function s(a, u = fe) {
|
|
534
|
+
const l = [a, u];
|
|
535
|
+
return r.add(l), r.size === 1 && (n = t(i, o) || fe), a(e), () => {
|
|
536
|
+
r.delete(l), r.size === 0 && n && (n(), n = null);
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
return { set: i, update: o, subscribe:
|
|
539
|
+
return { set: i, update: o, subscribe: s };
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function We(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
545
|
const o = t.length < 2;
|
|
546
|
-
return
|
|
547
|
-
let
|
|
548
|
-
const
|
|
549
|
-
let f = 0, b =
|
|
546
|
+
return ci(n, (s, a) => {
|
|
547
|
+
let u = !1;
|
|
548
|
+
const l = [];
|
|
549
|
+
let f = 0, b = fe;
|
|
550
550
|
const m = () => {
|
|
551
551
|
if (f)
|
|
552
552
|
return;
|
|
553
553
|
b();
|
|
554
|
-
const
|
|
555
|
-
o ?
|
|
554
|
+
const _ = t(r ? l[0] : l, s, a);
|
|
555
|
+
o ? s(_) : b = hn(_) ? _ : fe;
|
|
556
556
|
}, S = i.map(
|
|
557
|
-
(
|
|
558
|
-
|
|
559
|
-
(
|
|
560
|
-
|
|
557
|
+
(_, T) => Qn(
|
|
558
|
+
_,
|
|
559
|
+
(N) => {
|
|
560
|
+
l[T] = N, f &= ~(1 << T), u && m();
|
|
561
561
|
},
|
|
562
562
|
() => {
|
|
563
|
-
f |= 1 <<
|
|
563
|
+
f |= 1 << T;
|
|
564
564
|
}
|
|
565
565
|
)
|
|
566
566
|
);
|
|
567
|
-
return
|
|
568
|
-
|
|
567
|
+
return u = !0, m(), function() {
|
|
568
|
+
ze(S), b(), u = !1;
|
|
569
569
|
};
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
|
-
var
|
|
573
|
-
function
|
|
572
|
+
var hi = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
573
|
+
function fi(e) {
|
|
574
574
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
return
|
|
576
|
+
var di = function(t) {
|
|
577
|
+
return pi(t) && !mi(t);
|
|
578
578
|
};
|
|
579
|
-
function
|
|
579
|
+
function pi(e) {
|
|
580
580
|
return !!e && typeof e == "object";
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function mi(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]" || yi(e);
|
|
585
585
|
}
|
|
586
|
-
var
|
|
587
|
-
function
|
|
588
|
-
return e.$$typeof ===
|
|
586
|
+
var bi = typeof Symbol == "function" && Symbol.for, gi = bi ? Symbol.for("react.element") : 60103;
|
|
587
|
+
function yi(e) {
|
|
588
|
+
return e.$$typeof === gi;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function vi(e) {
|
|
591
591
|
return Array.isArray(e) ? [] : {};
|
|
592
592
|
}
|
|
593
593
|
function ot(e, t) {
|
|
594
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
594
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? ke(vi(e), e, t) : e;
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Ei(e, t, n) {
|
|
597
597
|
return e.concat(t).map(function(r) {
|
|
598
598
|
return ot(r, n);
|
|
599
599
|
});
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function _i(e, t) {
|
|
602
602
|
if (!t.customMerge)
|
|
603
|
-
return
|
|
603
|
+
return ke;
|
|
604
604
|
var n = t.customMerge(e);
|
|
605
|
-
return typeof n == "function" ? n :
|
|
605
|
+
return typeof n == "function" ? n : ke;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function xi(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 _n(e) {
|
|
613
|
+
return Object.keys(e).concat(xi(e));
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function er(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 wi(e, t) {
|
|
623
|
+
return er(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Si(e, t, n) {
|
|
626
626
|
var r = {};
|
|
627
|
-
return n.isMergeableObject(e) &&
|
|
627
|
+
return n.isMergeableObject(e) && _n(e).forEach(function(i) {
|
|
628
628
|
r[i] = ot(e[i], n);
|
|
629
|
-
}),
|
|
630
|
-
|
|
629
|
+
}), _n(t).forEach(function(i) {
|
|
630
|
+
wi(e, i) || (er(e, i) && n.isMergeableObject(t[i]) ? r[i] = _i(i, n)(e[i], t[i], n) : r[i] = ot(t[i], n));
|
|
631
631
|
}), r;
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
633
|
+
function ke(e, t, n) {
|
|
634
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Ei, n.isMergeableObject = n.isMergeableObject || di, n.cloneUnlessOtherwiseSpecified = ot;
|
|
635
635
|
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
636
|
-
return o ? r ? n.arrayMerge(e, t, n) :
|
|
636
|
+
return o ? r ? n.arrayMerge(e, t, n) : Si(e, t, n) : ot(t, n);
|
|
637
637
|
}
|
|
638
|
-
|
|
638
|
+
ke.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 ke(r, i, n);
|
|
643
643
|
}, {});
|
|
644
644
|
};
|
|
645
|
-
var
|
|
646
|
-
const
|
|
645
|
+
var Ti = ke, Bi = Ti;
|
|
646
|
+
const Ai = /* @__PURE__ */ fi(Bi);
|
|
647
647
|
/*! *****************************************************************************
|
|
648
648
|
Copyright (c) Microsoft Corporation.
|
|
649
649
|
|
|
@@ -658,34 +658,34 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
658
658
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
659
659
|
PERFORMANCE OF THIS SOFTWARE.
|
|
660
660
|
***************************************************************************** */
|
|
661
|
-
var
|
|
662
|
-
return
|
|
661
|
+
var Yt = function(e, t) {
|
|
662
|
+
return Yt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
663
663
|
n.__proto__ = r;
|
|
664
664
|
} || function(n, r) {
|
|
665
665
|
for (var i in r)
|
|
666
666
|
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
667
|
-
},
|
|
667
|
+
}, Yt(e, t);
|
|
668
668
|
};
|
|
669
|
-
function
|
|
669
|
+
function Ae(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
|
+
Yt(e, t);
|
|
673
673
|
function n() {
|
|
674
674
|
this.constructor = e;
|
|
675
675
|
}
|
|
676
676
|
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
677
677
|
}
|
|
678
|
-
var
|
|
679
|
-
return
|
|
678
|
+
var P = function() {
|
|
679
|
+
return P = Object.assign || function(t) {
|
|
680
680
|
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
681
681
|
n = arguments[r];
|
|
682
682
|
for (var o in n)
|
|
683
683
|
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
684
684
|
}
|
|
685
685
|
return t;
|
|
686
|
-
},
|
|
686
|
+
}, P.apply(this, arguments);
|
|
687
687
|
};
|
|
688
|
-
function
|
|
688
|
+
function Ci(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]);
|
|
@@ -694,7 +694,7 @@ function Ti(e, t) {
|
|
|
694
694
|
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
695
695
|
return n;
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function Qt(e) {
|
|
698
698
|
var t = typeof Symbol == "function" && Symbol.iterator, n = t && e[t], r = 0;
|
|
699
699
|
if (n)
|
|
700
700
|
return n.call(e);
|
|
@@ -706,133 +706,131 @@ function Yt(e) {
|
|
|
706
706
|
};
|
|
707
707
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
708
708
|
}
|
|
709
|
-
function
|
|
709
|
+
function Jt(e, t) {
|
|
710
710
|
var n = typeof Symbol == "function" && e[Symbol.iterator];
|
|
711
711
|
if (!n)
|
|
712
712
|
return e;
|
|
713
|
-
var r = n.call(e), i, o = [],
|
|
713
|
+
var r = n.call(e), i, o = [], s;
|
|
714
714
|
try {
|
|
715
715
|
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
|
|
716
716
|
o.push(i.value);
|
|
717
|
-
} catch (
|
|
718
|
-
|
|
717
|
+
} catch (a) {
|
|
718
|
+
s = { error: a };
|
|
719
719
|
} finally {
|
|
720
720
|
try {
|
|
721
721
|
i && !i.done && (n = r.return) && n.call(r);
|
|
722
722
|
} finally {
|
|
723
|
-
if (
|
|
724
|
-
throw
|
|
723
|
+
if (s)
|
|
724
|
+
throw s.error;
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
return o;
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function je(e, t, n) {
|
|
730
730
|
if (n || arguments.length === 2)
|
|
731
731
|
for (var r = 0, i = t.length, o; r < i; r++)
|
|
732
732
|
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
733
733
|
return e.concat(o || t);
|
|
734
734
|
}
|
|
735
735
|
function Gt(e, t) {
|
|
736
|
-
var n = t && t.cache ? t.cache :
|
|
736
|
+
var n = t && t.cache ? t.cache : Pi, r = t && t.serializer ? t.serializer : Li, i = t && t.strategy ? t.strategy : Oi;
|
|
737
737
|
return i(e, {
|
|
738
738
|
cache: n,
|
|
739
739
|
serializer: r
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function Hi(e) {
|
|
743
743
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
744
744
|
}
|
|
745
|
-
function
|
|
746
|
-
var i =
|
|
745
|
+
function tr(e, t, n, r) {
|
|
746
|
+
var i = Hi(r) ? r : n(r), o = t.get(i);
|
|
747
747
|
return typeof o == "undefined" && (o = e.call(this, r), t.set(i, o)), o;
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function nr(e, t, n) {
|
|
750
750
|
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
751
751
|
return typeof o == "undefined" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
752
752
|
}
|
|
753
|
-
function
|
|
753
|
+
function fn(e, t, n, r, i) {
|
|
754
754
|
return n.bind(t, e, r, i);
|
|
755
755
|
}
|
|
756
|
-
function
|
|
757
|
-
var n = e.length === 1 ?
|
|
758
|
-
return
|
|
756
|
+
function Oi(e, t) {
|
|
757
|
+
var n = e.length === 1 ? tr : nr;
|
|
758
|
+
return fn(e, this, n, t.cache.create(), t.serializer);
|
|
759
759
|
}
|
|
760
|
-
function
|
|
761
|
-
return
|
|
760
|
+
function Mi(e, t) {
|
|
761
|
+
return fn(e, this, nr, t.cache.create(), t.serializer);
|
|
762
762
|
}
|
|
763
|
-
function
|
|
764
|
-
return
|
|
763
|
+
function Ri(e, t) {
|
|
764
|
+
return fn(e, this, tr, t.cache.create(), t.serializer);
|
|
765
765
|
}
|
|
766
|
-
var
|
|
766
|
+
var Li = function() {
|
|
767
767
|
return JSON.stringify(arguments);
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
}()
|
|
780
|
-
), Ri = {
|
|
768
|
+
};
|
|
769
|
+
function dn() {
|
|
770
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
771
|
+
}
|
|
772
|
+
dn.prototype.get = function(e) {
|
|
773
|
+
return this.cache[e];
|
|
774
|
+
};
|
|
775
|
+
dn.prototype.set = function(e, t) {
|
|
776
|
+
this.cache[e] = t;
|
|
777
|
+
};
|
|
778
|
+
var Pi = {
|
|
781
779
|
create: function() {
|
|
782
|
-
return new
|
|
780
|
+
return new dn();
|
|
783
781
|
}
|
|
784
782
|
}, jt = {
|
|
785
|
-
variadic:
|
|
786
|
-
monadic:
|
|
787
|
-
},
|
|
783
|
+
variadic: Mi,
|
|
784
|
+
monadic: Ri
|
|
785
|
+
}, O;
|
|
788
786
|
(function(e) {
|
|
789
787
|
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";
|
|
790
|
-
})(
|
|
788
|
+
})(O || (O = {}));
|
|
791
789
|
var G;
|
|
792
790
|
(function(e) {
|
|
793
791
|
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";
|
|
794
792
|
})(G || (G = {}));
|
|
795
|
-
var
|
|
793
|
+
var $e;
|
|
796
794
|
(function(e) {
|
|
797
795
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
798
|
-
})(
|
|
799
|
-
function
|
|
796
|
+
})($e || ($e = {}));
|
|
797
|
+
function xn(e) {
|
|
800
798
|
return e.type === G.literal;
|
|
801
799
|
}
|
|
802
|
-
function
|
|
800
|
+
function Ii(e) {
|
|
803
801
|
return e.type === G.argument;
|
|
804
802
|
}
|
|
805
|
-
function
|
|
803
|
+
function rr(e) {
|
|
806
804
|
return e.type === G.number;
|
|
807
805
|
}
|
|
808
|
-
function
|
|
806
|
+
function ir(e) {
|
|
809
807
|
return e.type === G.date;
|
|
810
808
|
}
|
|
811
|
-
function
|
|
809
|
+
function or(e) {
|
|
812
810
|
return e.type === G.time;
|
|
813
811
|
}
|
|
814
|
-
function
|
|
812
|
+
function ar(e) {
|
|
815
813
|
return e.type === G.select;
|
|
816
814
|
}
|
|
817
|
-
function
|
|
815
|
+
function sr(e) {
|
|
818
816
|
return e.type === G.plural;
|
|
819
817
|
}
|
|
820
|
-
function
|
|
818
|
+
function Ni(e) {
|
|
821
819
|
return e.type === G.pound;
|
|
822
820
|
}
|
|
823
|
-
function
|
|
821
|
+
function lr(e) {
|
|
824
822
|
return e.type === G.tag;
|
|
825
823
|
}
|
|
826
|
-
function
|
|
827
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
824
|
+
function ur(e) {
|
|
825
|
+
return !!(e && typeof e == "object" && e.type === $e.number);
|
|
828
826
|
}
|
|
829
|
-
function
|
|
830
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
827
|
+
function Kt(e) {
|
|
828
|
+
return !!(e && typeof e == "object" && e.type === $e.dateTime);
|
|
831
829
|
}
|
|
832
|
-
var
|
|
833
|
-
function
|
|
830
|
+
var cr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Di = /(?:[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;
|
|
831
|
+
function Ui(e) {
|
|
834
832
|
var t = {};
|
|
835
|
-
return e.replace(
|
|
833
|
+
return e.replace(Di, function(n) {
|
|
836
834
|
var r = n.length;
|
|
837
835
|
switch (n[0]) {
|
|
838
836
|
case "G":
|
|
@@ -921,36 +919,36 @@ function Ii(e) {
|
|
|
921
919
|
return "";
|
|
922
920
|
}), t;
|
|
923
921
|
}
|
|
924
|
-
var
|
|
925
|
-
function
|
|
922
|
+
var Fi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
923
|
+
function Gi(e) {
|
|
926
924
|
if (e.length === 0)
|
|
927
925
|
throw new Error("Number skeleton cannot be empty");
|
|
928
|
-
for (var t = e.split(
|
|
926
|
+
for (var t = e.split(Fi).filter(function(m) {
|
|
929
927
|
return m.length > 0;
|
|
930
928
|
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
931
|
-
var o = i[r],
|
|
932
|
-
if (
|
|
929
|
+
var o = i[r], s = o.split("/");
|
|
930
|
+
if (s.length === 0)
|
|
933
931
|
throw new Error("Invalid number skeleton");
|
|
934
|
-
for (var
|
|
935
|
-
var b = f[
|
|
932
|
+
for (var a = s[0], u = s.slice(1), l = 0, f = u; l < f.length; l++) {
|
|
933
|
+
var b = f[l];
|
|
936
934
|
if (b.length === 0)
|
|
937
935
|
throw new Error("Invalid number skeleton");
|
|
938
936
|
}
|
|
939
|
-
n.push({ stem:
|
|
937
|
+
n.push({ stem: a, options: u });
|
|
940
938
|
}
|
|
941
939
|
return n;
|
|
942
940
|
}
|
|
943
|
-
function
|
|
941
|
+
function ji(e) {
|
|
944
942
|
return e.replace(/^(.*?)-/, "");
|
|
945
943
|
}
|
|
946
|
-
var
|
|
947
|
-
function
|
|
944
|
+
var wn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, hr = /^(@+)?(\+|#+)?[rs]?$/g, ki = /(\*)(0+)|(#+)(0+)|(0+)/g, fr = /^(0+)$/;
|
|
945
|
+
function Sn(e) {
|
|
948
946
|
var t = {};
|
|
949
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
947
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(hr, function(n, r, i) {
|
|
950
948
|
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)), "";
|
|
951
949
|
}), t;
|
|
952
950
|
}
|
|
953
|
-
function
|
|
951
|
+
function dr(e) {
|
|
954
952
|
switch (e) {
|
|
955
953
|
case "sign-auto":
|
|
956
954
|
return {
|
|
@@ -990,7 +988,7 @@ function hr(e) {
|
|
|
990
988
|
};
|
|
991
989
|
}
|
|
992
990
|
}
|
|
993
|
-
function
|
|
991
|
+
function $i(e) {
|
|
994
992
|
var t;
|
|
995
993
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
996
994
|
notation: "engineering"
|
|
@@ -998,17 +996,17 @@ function ji(e) {
|
|
|
998
996
|
notation: "scientific"
|
|
999
997
|
}, e = e.slice(1)), t) {
|
|
1000
998
|
var n = e.slice(0, 2);
|
|
1001
|
-
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
999
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !fr.test(e))
|
|
1002
1000
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1003
1001
|
t.minimumIntegerDigits = e.length;
|
|
1004
1002
|
}
|
|
1005
1003
|
return t;
|
|
1006
1004
|
}
|
|
1007
|
-
function
|
|
1008
|
-
var t = {}, n =
|
|
1005
|
+
function Tn(e) {
|
|
1006
|
+
var t = {}, n = dr(e);
|
|
1009
1007
|
return n || t;
|
|
1010
1008
|
}
|
|
1011
|
-
function
|
|
1009
|
+
function Vi(e) {
|
|
1012
1010
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
1013
1011
|
var i = r[n];
|
|
1014
1012
|
switch (i.stem) {
|
|
@@ -1032,7 +1030,7 @@ function ki(e) {
|
|
|
1032
1030
|
continue;
|
|
1033
1031
|
case "measure-unit":
|
|
1034
1032
|
case "unit":
|
|
1035
|
-
t.style = "unit", t.unit =
|
|
1033
|
+
t.style = "unit", t.unit = ji(i.options[0]);
|
|
1036
1034
|
continue;
|
|
1037
1035
|
case "compact-short":
|
|
1038
1036
|
case "K":
|
|
@@ -1043,13 +1041,13 @@ function ki(e) {
|
|
|
1043
1041
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1044
1042
|
continue;
|
|
1045
1043
|
case "scientific":
|
|
1046
|
-
t =
|
|
1047
|
-
return
|
|
1044
|
+
t = P(P(P({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1045
|
+
return P(P({}, u), Tn(l));
|
|
1048
1046
|
}, {}));
|
|
1049
1047
|
continue;
|
|
1050
1048
|
case "engineering":
|
|
1051
|
-
t =
|
|
1052
|
-
return
|
|
1049
|
+
t = P(P(P({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1050
|
+
return P(P({}, u), Tn(l));
|
|
1053
1051
|
}, {}));
|
|
1054
1052
|
continue;
|
|
1055
1053
|
case "notation-simple":
|
|
@@ -1094,8 +1092,8 @@ function ki(e) {
|
|
|
1094
1092
|
case "integer-width":
|
|
1095
1093
|
if (i.options.length > 1)
|
|
1096
1094
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1097
|
-
i.options[0].replace(
|
|
1098
|
-
if (
|
|
1095
|
+
i.options[0].replace(ki, function(u, l, f, b, m, S) {
|
|
1096
|
+
if (l)
|
|
1099
1097
|
t.minimumIntegerDigits = f.length;
|
|
1100
1098
|
else {
|
|
1101
1099
|
if (b && m)
|
|
@@ -1107,28 +1105,28 @@ function ki(e) {
|
|
|
1107
1105
|
});
|
|
1108
1106
|
continue;
|
|
1109
1107
|
}
|
|
1110
|
-
if (
|
|
1108
|
+
if (fr.test(i.stem)) {
|
|
1111
1109
|
t.minimumIntegerDigits = i.stem.length;
|
|
1112
1110
|
continue;
|
|
1113
1111
|
}
|
|
1114
|
-
if (
|
|
1112
|
+
if (wn.test(i.stem)) {
|
|
1115
1113
|
if (i.options.length > 1)
|
|
1116
1114
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1117
|
-
i.stem.replace(
|
|
1118
|
-
return f === "*" ? t.minimumFractionDigits =
|
|
1115
|
+
i.stem.replace(wn, function(u, l, f, b, m, S) {
|
|
1116
|
+
return f === "*" ? t.minimumFractionDigits = l.length : b && b[0] === "#" ? t.maximumFractionDigits = b.length : m && S ? (t.minimumFractionDigits = m.length, t.maximumFractionDigits = m.length + S.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1119
1117
|
});
|
|
1120
1118
|
var o = i.options[0];
|
|
1121
|
-
o === "w" ? t =
|
|
1119
|
+
o === "w" ? t = P(P({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = P(P({}, t), Sn(o)));
|
|
1122
1120
|
continue;
|
|
1123
1121
|
}
|
|
1124
|
-
if (
|
|
1125
|
-
t =
|
|
1122
|
+
if (hr.test(i.stem)) {
|
|
1123
|
+
t = P(P({}, t), Sn(i.stem));
|
|
1126
1124
|
continue;
|
|
1127
1125
|
}
|
|
1128
|
-
var
|
|
1129
|
-
|
|
1130
|
-
var
|
|
1131
|
-
|
|
1126
|
+
var s = dr(i.stem);
|
|
1127
|
+
s && (t = P(P({}, t), s));
|
|
1128
|
+
var a = $i(i.stem);
|
|
1129
|
+
a && (t = P(P({}, t), a));
|
|
1132
1130
|
}
|
|
1133
1131
|
return t;
|
|
1134
1132
|
}
|
|
@@ -2547,23 +2545,23 @@ var pt = {
|
|
|
2547
2545
|
"h"
|
|
2548
2546
|
]
|
|
2549
2547
|
};
|
|
2550
|
-
function
|
|
2548
|
+
function Xi(e, t) {
|
|
2551
2549
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2552
2550
|
var i = e.charAt(r);
|
|
2553
2551
|
if (i === "j") {
|
|
2554
2552
|
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2555
2553
|
o++, r++;
|
|
2556
|
-
var
|
|
2557
|
-
for ((
|
|
2558
|
-
n +=
|
|
2559
|
-
for (;
|
|
2560
|
-
n =
|
|
2554
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = zi(t);
|
|
2555
|
+
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2556
|
+
n += u;
|
|
2557
|
+
for (; s-- > 0; )
|
|
2558
|
+
n = l + n;
|
|
2561
2559
|
} else
|
|
2562
2560
|
i === "J" ? n += "H" : n += i;
|
|
2563
2561
|
}
|
|
2564
2562
|
return n;
|
|
2565
2563
|
}
|
|
2566
|
-
function
|
|
2564
|
+
function zi(e) {
|
|
2567
2565
|
var t = e.hourCycle;
|
|
2568
2566
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2569
2567
|
e.hourCycles && // @ts-ignore
|
|
@@ -2585,20 +2583,20 @@ function Vi(e) {
|
|
|
2585
2583
|
var i = pt[r || ""] || pt[n || ""] || pt["".concat(n, "-001")] || pt["001"];
|
|
2586
2584
|
return i[0];
|
|
2587
2585
|
}
|
|
2588
|
-
var kt,
|
|
2589
|
-
function
|
|
2586
|
+
var kt, Wi = new RegExp("^".concat(cr.source, "*")), Zi = new RegExp("".concat(cr.source, "*$"));
|
|
2587
|
+
function M(e, t) {
|
|
2590
2588
|
return { start: e, end: t };
|
|
2591
2589
|
}
|
|
2592
|
-
var
|
|
2590
|
+
var qi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Yi = !!String.fromCodePoint, Qi = !!Object.fromEntries, Ji = !!String.prototype.codePointAt, Ki = !!String.prototype.trimStart, eo = !!String.prototype.trimEnd, to = !!Number.isSafeInteger, no = to ? Number.isSafeInteger : function(e) {
|
|
2593
2591
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2594
|
-
},
|
|
2592
|
+
}, en = !0;
|
|
2595
2593
|
try {
|
|
2596
|
-
var
|
|
2597
|
-
|
|
2594
|
+
var ro = mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2595
|
+
en = ((kt = ro.exec("a")) === null || kt === void 0 ? void 0 : kt[0]) === "a";
|
|
2598
2596
|
} catch (e) {
|
|
2599
|
-
|
|
2597
|
+
en = !1;
|
|
2600
2598
|
}
|
|
2601
|
-
var
|
|
2599
|
+
var Bn = qi ? (
|
|
2602
2600
|
// Native
|
|
2603
2601
|
function(t, n, r) {
|
|
2604
2602
|
return t.startsWith(n, r);
|
|
@@ -2608,31 +2606,31 @@ var Sn = Wi ? (
|
|
|
2608
2606
|
function(t, n, r) {
|
|
2609
2607
|
return t.slice(r, r + n.length) === n;
|
|
2610
2608
|
}
|
|
2611
|
-
),
|
|
2609
|
+
), tn = Yi ? String.fromCodePoint : (
|
|
2612
2610
|
// IE11
|
|
2613
2611
|
function() {
|
|
2614
2612
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2615
2613
|
t[n] = arguments[n];
|
|
2616
|
-
for (var r = "", i = t.length, o = 0,
|
|
2617
|
-
if (
|
|
2618
|
-
throw RangeError(
|
|
2619
|
-
r +=
|
|
2614
|
+
for (var r = "", i = t.length, o = 0, s; i > o; ) {
|
|
2615
|
+
if (s = t[o++], s > 1114111)
|
|
2616
|
+
throw RangeError(s + " is not a valid code point");
|
|
2617
|
+
r += s < 65536 ? String.fromCharCode(s) : String.fromCharCode(((s -= 65536) >> 10) + 55296, s % 1024 + 56320);
|
|
2620
2618
|
}
|
|
2621
2619
|
return r;
|
|
2622
2620
|
}
|
|
2623
|
-
),
|
|
2621
|
+
), An = (
|
|
2624
2622
|
// native
|
|
2625
|
-
|
|
2623
|
+
Qi ? Object.fromEntries : (
|
|
2626
2624
|
// Ponyfill
|
|
2627
2625
|
function(t) {
|
|
2628
2626
|
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2629
|
-
var o = i[r],
|
|
2630
|
-
n[
|
|
2627
|
+
var o = i[r], s = o[0], a = o[1];
|
|
2628
|
+
n[s] = a;
|
|
2631
2629
|
}
|
|
2632
2630
|
return n;
|
|
2633
2631
|
}
|
|
2634
2632
|
)
|
|
2635
|
-
),
|
|
2633
|
+
), pr = Ji ? (
|
|
2636
2634
|
// Native
|
|
2637
2635
|
function(t, n) {
|
|
2638
2636
|
return t.codePointAt(n);
|
|
@@ -2646,7 +2644,7 @@ var Sn = Wi ? (
|
|
|
2646
2644
|
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2647
2645
|
}
|
|
2648
2646
|
}
|
|
2649
|
-
),
|
|
2647
|
+
), io = Ki ? (
|
|
2650
2648
|
// Native
|
|
2651
2649
|
function(t) {
|
|
2652
2650
|
return t.trimStart();
|
|
@@ -2654,9 +2652,9 @@ var Sn = Wi ? (
|
|
|
2654
2652
|
) : (
|
|
2655
2653
|
// Ponyfill
|
|
2656
2654
|
function(t) {
|
|
2657
|
-
return t.replace(
|
|
2655
|
+
return t.replace(Wi, "");
|
|
2658
2656
|
}
|
|
2659
|
-
),
|
|
2657
|
+
), oo = eo ? (
|
|
2660
2658
|
// Native
|
|
2661
2659
|
function(t) {
|
|
2662
2660
|
return t.trimEnd();
|
|
@@ -2664,32 +2662,32 @@ var Sn = Wi ? (
|
|
|
2664
2662
|
) : (
|
|
2665
2663
|
// Ponyfill
|
|
2666
2664
|
function(t) {
|
|
2667
|
-
return t.replace(
|
|
2665
|
+
return t.replace(Zi, "");
|
|
2668
2666
|
}
|
|
2669
2667
|
);
|
|
2670
|
-
function
|
|
2668
|
+
function mr(e, t) {
|
|
2671
2669
|
return new RegExp(e, t);
|
|
2672
2670
|
}
|
|
2673
|
-
var
|
|
2674
|
-
if (
|
|
2675
|
-
var
|
|
2676
|
-
|
|
2671
|
+
var nn;
|
|
2672
|
+
if (en) {
|
|
2673
|
+
var Cn = mr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2674
|
+
nn = function(t, n) {
|
|
2677
2675
|
var r;
|
|
2678
|
-
|
|
2679
|
-
var i =
|
|
2676
|
+
Cn.lastIndex = n;
|
|
2677
|
+
var i = Cn.exec(t);
|
|
2680
2678
|
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2681
2679
|
};
|
|
2682
2680
|
} else
|
|
2683
|
-
|
|
2681
|
+
nn = function(t, n) {
|
|
2684
2682
|
for (var r = []; ; ) {
|
|
2685
|
-
var i =
|
|
2686
|
-
if (i === void 0 ||
|
|
2683
|
+
var i = pr(t, n);
|
|
2684
|
+
if (i === void 0 || br(i) || uo(i))
|
|
2687
2685
|
break;
|
|
2688
2686
|
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2689
2687
|
}
|
|
2690
|
-
return
|
|
2688
|
+
return tn.apply(void 0, r);
|
|
2691
2689
|
};
|
|
2692
|
-
var
|
|
2690
|
+
var ao = (
|
|
2693
2691
|
/** @class */
|
|
2694
2692
|
function() {
|
|
2695
2693
|
function e(t, n) {
|
|
@@ -2703,33 +2701,33 @@ var io = (
|
|
|
2703
2701
|
for (var i = []; !this.isEOF(); ) {
|
|
2704
2702
|
var o = this.char();
|
|
2705
2703
|
if (o === 123) {
|
|
2706
|
-
var
|
|
2707
|
-
if (
|
|
2708
|
-
return
|
|
2709
|
-
i.push(
|
|
2704
|
+
var s = this.parseArgument(t, r);
|
|
2705
|
+
if (s.err)
|
|
2706
|
+
return s;
|
|
2707
|
+
i.push(s.val);
|
|
2710
2708
|
} else {
|
|
2711
2709
|
if (o === 125 && t > 0)
|
|
2712
2710
|
break;
|
|
2713
2711
|
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2714
|
-
var
|
|
2712
|
+
var a = this.clonePosition();
|
|
2715
2713
|
this.bump(), i.push({
|
|
2716
2714
|
type: G.pound,
|
|
2717
|
-
location:
|
|
2715
|
+
location: M(a, this.clonePosition())
|
|
2718
2716
|
});
|
|
2719
2717
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2720
2718
|
if (r)
|
|
2721
2719
|
break;
|
|
2722
|
-
return this.error(
|
|
2723
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2724
|
-
var
|
|
2725
|
-
if (
|
|
2726
|
-
return
|
|
2727
|
-
i.push(
|
|
2720
|
+
return this.error(O.UNMATCHED_CLOSING_TAG, M(this.clonePosition(), this.clonePosition()));
|
|
2721
|
+
} else if (o === 60 && !this.ignoreTag && rn(this.peek() || 0)) {
|
|
2722
|
+
var s = this.parseTag(t, n);
|
|
2723
|
+
if (s.err)
|
|
2724
|
+
return s;
|
|
2725
|
+
i.push(s.val);
|
|
2728
2726
|
} else {
|
|
2729
|
-
var
|
|
2730
|
-
if (
|
|
2731
|
-
return
|
|
2732
|
-
i.push(
|
|
2727
|
+
var s = this.parseLiteral(t, n);
|
|
2728
|
+
if (s.err)
|
|
2729
|
+
return s;
|
|
2730
|
+
i.push(s.val);
|
|
2733
2731
|
}
|
|
2734
2732
|
}
|
|
2735
2733
|
}
|
|
@@ -2743,7 +2741,7 @@ var io = (
|
|
|
2743
2741
|
val: {
|
|
2744
2742
|
type: G.literal,
|
|
2745
2743
|
value: "<".concat(i, "/>"),
|
|
2746
|
-
location:
|
|
2744
|
+
location: M(r, this.clonePosition())
|
|
2747
2745
|
},
|
|
2748
2746
|
err: null
|
|
2749
2747
|
};
|
|
@@ -2751,27 +2749,27 @@ var io = (
|
|
|
2751
2749
|
var o = this.parseMessage(t + 1, n, !0);
|
|
2752
2750
|
if (o.err)
|
|
2753
2751
|
return o;
|
|
2754
|
-
var
|
|
2752
|
+
var s = o.val, a = this.clonePosition();
|
|
2755
2753
|
if (this.bumpIf("</")) {
|
|
2756
|
-
if (this.isEOF() || !
|
|
2757
|
-
return this.error(
|
|
2758
|
-
var
|
|
2759
|
-
return i !==
|
|
2754
|
+
if (this.isEOF() || !rn(this.char()))
|
|
2755
|
+
return this.error(O.INVALID_TAG, M(a, this.clonePosition()));
|
|
2756
|
+
var u = this.clonePosition(), l = this.parseTagName();
|
|
2757
|
+
return i !== l ? this.error(O.UNMATCHED_CLOSING_TAG, M(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2760
2758
|
val: {
|
|
2761
2759
|
type: G.tag,
|
|
2762
2760
|
value: i,
|
|
2763
|
-
children:
|
|
2764
|
-
location:
|
|
2761
|
+
children: s,
|
|
2762
|
+
location: M(r, this.clonePosition())
|
|
2765
2763
|
},
|
|
2766
2764
|
err: null
|
|
2767
|
-
} : this.error(
|
|
2765
|
+
} : this.error(O.INVALID_TAG, M(a, this.clonePosition())));
|
|
2768
2766
|
} else
|
|
2769
|
-
return this.error(
|
|
2767
|
+
return this.error(O.UNCLOSED_TAG, M(r, this.clonePosition()));
|
|
2770
2768
|
} else
|
|
2771
|
-
return this.error(
|
|
2769
|
+
return this.error(O.INVALID_TAG, M(r, this.clonePosition()));
|
|
2772
2770
|
}, e.prototype.parseTagName = function() {
|
|
2773
2771
|
var t = this.offset();
|
|
2774
|
-
for (this.bump(); !this.isEOF() &&
|
|
2772
|
+
for (this.bump(); !this.isEOF() && lo(this.char()); )
|
|
2775
2773
|
this.bump();
|
|
2776
2774
|
return this.message.slice(t, this.offset());
|
|
2777
2775
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
@@ -2781,26 +2779,26 @@ var io = (
|
|
|
2781
2779
|
i += o;
|
|
2782
2780
|
continue;
|
|
2783
2781
|
}
|
|
2784
|
-
var
|
|
2785
|
-
if (a) {
|
|
2786
|
-
i += a;
|
|
2787
|
-
continue;
|
|
2788
|
-
}
|
|
2789
|
-
var s = this.tryParseLeftAngleBracket();
|
|
2782
|
+
var s = this.tryParseUnquoted(t, n);
|
|
2790
2783
|
if (s) {
|
|
2791
2784
|
i += s;
|
|
2792
2785
|
continue;
|
|
2793
2786
|
}
|
|
2787
|
+
var a = this.tryParseLeftAngleBracket();
|
|
2788
|
+
if (a) {
|
|
2789
|
+
i += a;
|
|
2790
|
+
continue;
|
|
2791
|
+
}
|
|
2794
2792
|
break;
|
|
2795
2793
|
}
|
|
2796
|
-
var
|
|
2794
|
+
var u = M(r, this.clonePosition());
|
|
2797
2795
|
return {
|
|
2798
|
-
val: { type: G.literal, value: i, location:
|
|
2796
|
+
val: { type: G.literal, value: i, location: u },
|
|
2799
2797
|
err: null
|
|
2800
2798
|
};
|
|
2801
2799
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2802
2800
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2803
|
-
!
|
|
2801
|
+
!so(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2804
2802
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2805
2803
|
if (this.isEOF() || this.char() !== 39)
|
|
2806
2804
|
return null;
|
|
@@ -2834,23 +2832,23 @@ var io = (
|
|
|
2834
2832
|
n.push(r);
|
|
2835
2833
|
this.bump();
|
|
2836
2834
|
}
|
|
2837
|
-
return
|
|
2835
|
+
return tn.apply(void 0, n);
|
|
2838
2836
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2839
2837
|
if (this.isEOF())
|
|
2840
2838
|
return null;
|
|
2841
2839
|
var r = this.char();
|
|
2842
|
-
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(),
|
|
2840
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), tn(r));
|
|
2843
2841
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2844
2842
|
var r = this.clonePosition();
|
|
2845
2843
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2846
|
-
return this.error(
|
|
2844
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
|
|
2847
2845
|
if (this.char() === 125)
|
|
2848
|
-
return this.bump(), this.error(
|
|
2846
|
+
return this.bump(), this.error(O.EMPTY_ARGUMENT, M(r, this.clonePosition()));
|
|
2849
2847
|
var i = this.parseIdentifierIfPossible().value;
|
|
2850
2848
|
if (!i)
|
|
2851
|
-
return this.error(
|
|
2849
|
+
return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
|
|
2852
2850
|
if (this.bumpSpace(), this.isEOF())
|
|
2853
|
-
return this.error(
|
|
2851
|
+
return this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition()));
|
|
2854
2852
|
switch (this.char()) {
|
|
2855
2853
|
case 125:
|
|
2856
2854
|
return this.bump(), {
|
|
@@ -2858,76 +2856,76 @@ var io = (
|
|
|
2858
2856
|
type: G.argument,
|
|
2859
2857
|
// value does not include the opening and closing braces.
|
|
2860
2858
|
value: i,
|
|
2861
|
-
location:
|
|
2859
|
+
location: M(r, this.clonePosition())
|
|
2862
2860
|
},
|
|
2863
2861
|
err: null
|
|
2864
2862
|
};
|
|
2865
2863
|
case 44:
|
|
2866
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2864
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2867
2865
|
default:
|
|
2868
|
-
return this.error(
|
|
2866
|
+
return this.error(O.MALFORMED_ARGUMENT, M(r, this.clonePosition()));
|
|
2869
2867
|
}
|
|
2870
2868
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2871
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2869
|
+
var t = this.clonePosition(), n = this.offset(), r = nn(this.message, n), i = n + r.length;
|
|
2872
2870
|
this.bumpTo(i);
|
|
2873
|
-
var o = this.clonePosition(),
|
|
2874
|
-
return { value: r, location:
|
|
2871
|
+
var o = this.clonePosition(), s = M(t, o);
|
|
2872
|
+
return { value: r, location: s };
|
|
2875
2873
|
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2876
|
-
var o,
|
|
2877
|
-
switch (
|
|
2874
|
+
var o, s = this.clonePosition(), a = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2875
|
+
switch (a) {
|
|
2878
2876
|
case "":
|
|
2879
|
-
return this.error(
|
|
2877
|
+
return this.error(O.EXPECT_ARGUMENT_TYPE, M(s, u));
|
|
2880
2878
|
case "number":
|
|
2881
2879
|
case "date":
|
|
2882
2880
|
case "time": {
|
|
2883
2881
|
this.bumpSpace();
|
|
2884
|
-
var
|
|
2882
|
+
var l = null;
|
|
2885
2883
|
if (this.bumpIf(",")) {
|
|
2886
2884
|
this.bumpSpace();
|
|
2887
2885
|
var f = this.clonePosition(), b = this.parseSimpleArgStyleIfPossible();
|
|
2888
2886
|
if (b.err)
|
|
2889
2887
|
return b;
|
|
2890
|
-
var m =
|
|
2888
|
+
var m = oo(b.val);
|
|
2891
2889
|
if (m.length === 0)
|
|
2892
|
-
return this.error(
|
|
2893
|
-
var S =
|
|
2894
|
-
|
|
2890
|
+
return this.error(O.EXPECT_ARGUMENT_STYLE, M(this.clonePosition(), this.clonePosition()));
|
|
2891
|
+
var S = M(f, this.clonePosition());
|
|
2892
|
+
l = { style: m, styleLocation: S };
|
|
2895
2893
|
}
|
|
2896
|
-
var
|
|
2897
|
-
if (
|
|
2898
|
-
return
|
|
2899
|
-
var
|
|
2900
|
-
if (
|
|
2901
|
-
var
|
|
2902
|
-
if (
|
|
2903
|
-
var b = this.parseNumberSkeletonFromString(
|
|
2894
|
+
var _ = this.tryParseArgumentClose(i);
|
|
2895
|
+
if (_.err)
|
|
2896
|
+
return _;
|
|
2897
|
+
var T = M(i, this.clonePosition());
|
|
2898
|
+
if (l && Bn(l == null ? void 0 : l.style, "::", 0)) {
|
|
2899
|
+
var N = io(l.style.slice(2));
|
|
2900
|
+
if (a === "number") {
|
|
2901
|
+
var b = this.parseNumberSkeletonFromString(N, l.styleLocation);
|
|
2904
2902
|
return b.err ? b : {
|
|
2905
|
-
val: { type: G.number, value: r, location:
|
|
2903
|
+
val: { type: G.number, value: r, location: T, style: b.val },
|
|
2906
2904
|
err: null
|
|
2907
2905
|
};
|
|
2908
2906
|
} else {
|
|
2909
|
-
if (
|
|
2910
|
-
return this.error(
|
|
2911
|
-
var W =
|
|
2912
|
-
this.locale && (W =
|
|
2907
|
+
if (N.length === 0)
|
|
2908
|
+
return this.error(O.EXPECT_DATE_TIME_SKELETON, T);
|
|
2909
|
+
var W = N;
|
|
2910
|
+
this.locale && (W = Xi(N, this.locale));
|
|
2913
2911
|
var m = {
|
|
2914
|
-
type:
|
|
2912
|
+
type: $e.dateTime,
|
|
2915
2913
|
pattern: W,
|
|
2916
|
-
location:
|
|
2917
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2918
|
-
}, V =
|
|
2914
|
+
location: l.styleLocation,
|
|
2915
|
+
parsedOptions: this.shouldParseSkeletons ? Ui(W) : {}
|
|
2916
|
+
}, V = a === "date" ? G.date : G.time;
|
|
2919
2917
|
return {
|
|
2920
|
-
val: { type: V, value: r, location:
|
|
2918
|
+
val: { type: V, value: r, location: T, style: m },
|
|
2921
2919
|
err: null
|
|
2922
2920
|
};
|
|
2923
2921
|
}
|
|
2924
2922
|
}
|
|
2925
2923
|
return {
|
|
2926
2924
|
val: {
|
|
2927
|
-
type:
|
|
2925
|
+
type: a === "number" ? G.number : a === "date" ? G.date : G.time,
|
|
2928
2926
|
value: r,
|
|
2929
|
-
location:
|
|
2930
|
-
style: (o =
|
|
2927
|
+
location: T,
|
|
2928
|
+
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
2931
2929
|
},
|
|
2932
2930
|
err: null
|
|
2933
2931
|
};
|
|
@@ -2935,52 +2933,52 @@ var io = (
|
|
|
2935
2933
|
case "plural":
|
|
2936
2934
|
case "selectordinal":
|
|
2937
2935
|
case "select": {
|
|
2938
|
-
var
|
|
2936
|
+
var L = this.clonePosition();
|
|
2939
2937
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2940
|
-
return this.error(
|
|
2938
|
+
return this.error(O.EXPECT_SELECT_ARGUMENT_OPTIONS, M(L, P({}, L)));
|
|
2941
2939
|
this.bumpSpace();
|
|
2942
|
-
var
|
|
2943
|
-
if (
|
|
2940
|
+
var U = this.parseIdentifierIfPossible(), Q = 0;
|
|
2941
|
+
if (a !== "select" && U.value === "offset") {
|
|
2944
2942
|
if (!this.bumpIf(":"))
|
|
2945
|
-
return this.error(
|
|
2943
|
+
return this.error(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, M(this.clonePosition(), this.clonePosition()));
|
|
2946
2944
|
this.bumpSpace();
|
|
2947
|
-
var b = this.tryParseDecimalInteger(
|
|
2945
|
+
var b = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2948
2946
|
if (b.err)
|
|
2949
2947
|
return b;
|
|
2950
|
-
this.bumpSpace(),
|
|
2948
|
+
this.bumpSpace(), U = this.parseIdentifierIfPossible(), Q = b.val;
|
|
2951
2949
|
}
|
|
2952
|
-
var
|
|
2953
|
-
if (
|
|
2954
|
-
return
|
|
2955
|
-
var
|
|
2956
|
-
if (
|
|
2957
|
-
return
|
|
2958
|
-
var
|
|
2959
|
-
return
|
|
2950
|
+
var Z = this.tryParsePluralOrSelectOptions(t, a, n, U);
|
|
2951
|
+
if (Z.err)
|
|
2952
|
+
return Z;
|
|
2953
|
+
var _ = this.tryParseArgumentClose(i);
|
|
2954
|
+
if (_.err)
|
|
2955
|
+
return _;
|
|
2956
|
+
var ee = M(i, this.clonePosition());
|
|
2957
|
+
return a === "select" ? {
|
|
2960
2958
|
val: {
|
|
2961
2959
|
type: G.select,
|
|
2962
2960
|
value: r,
|
|
2963
|
-
options:
|
|
2964
|
-
location:
|
|
2961
|
+
options: An(Z.val),
|
|
2962
|
+
location: ee
|
|
2965
2963
|
},
|
|
2966
2964
|
err: null
|
|
2967
2965
|
} : {
|
|
2968
2966
|
val: {
|
|
2969
2967
|
type: G.plural,
|
|
2970
2968
|
value: r,
|
|
2971
|
-
options:
|
|
2972
|
-
offset:
|
|
2973
|
-
pluralType:
|
|
2974
|
-
location:
|
|
2969
|
+
options: An(Z.val),
|
|
2970
|
+
offset: Q,
|
|
2971
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2972
|
+
location: ee
|
|
2975
2973
|
},
|
|
2976
2974
|
err: null
|
|
2977
2975
|
};
|
|
2978
2976
|
}
|
|
2979
2977
|
default:
|
|
2980
|
-
return this.error(
|
|
2978
|
+
return this.error(O.INVALID_ARGUMENT_TYPE, M(s, u));
|
|
2981
2979
|
}
|
|
2982
2980
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2983
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2981
|
+
return this.isEOF() || this.char() !== 125 ? this.error(O.EXPECT_ARGUMENT_CLOSING_BRACE, M(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2984
2982
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2985
2983
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2986
2984
|
var r = this.char();
|
|
@@ -2989,7 +2987,7 @@ var io = (
|
|
|
2989
2987
|
this.bump();
|
|
2990
2988
|
var i = this.clonePosition();
|
|
2991
2989
|
if (!this.bumpUntil("'"))
|
|
2992
|
-
return this.error(
|
|
2990
|
+
return this.error(O.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, M(i, this.clonePosition()));
|
|
2993
2991
|
this.bump();
|
|
2994
2992
|
break;
|
|
2995
2993
|
}
|
|
@@ -3019,64 +3017,64 @@ var io = (
|
|
|
3019
3017
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
3020
3018
|
var r = [];
|
|
3021
3019
|
try {
|
|
3022
|
-
r =
|
|
3020
|
+
r = Gi(t);
|
|
3023
3021
|
} catch (i) {
|
|
3024
|
-
return this.error(
|
|
3022
|
+
return this.error(O.INVALID_NUMBER_SKELETON, n);
|
|
3025
3023
|
}
|
|
3026
3024
|
return {
|
|
3027
3025
|
val: {
|
|
3028
|
-
type:
|
|
3026
|
+
type: $e.number,
|
|
3029
3027
|
tokens: r,
|
|
3030
3028
|
location: n,
|
|
3031
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3029
|
+
parsedOptions: this.shouldParseSkeletons ? Vi(r) : {}
|
|
3032
3030
|
},
|
|
3033
3031
|
err: null
|
|
3034
3032
|
};
|
|
3035
3033
|
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
3036
|
-
for (var o,
|
|
3037
|
-
if (
|
|
3034
|
+
for (var o, s = !1, a = [], u = /* @__PURE__ */ new Set(), l = i.value, f = i.location; ; ) {
|
|
3035
|
+
if (l.length === 0) {
|
|
3038
3036
|
var b = this.clonePosition();
|
|
3039
3037
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3040
|
-
var m = this.tryParseDecimalInteger(
|
|
3038
|
+
var m = this.tryParseDecimalInteger(O.EXPECT_PLURAL_ARGUMENT_SELECTOR, O.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3041
3039
|
if (m.err)
|
|
3042
3040
|
return m;
|
|
3043
|
-
f =
|
|
3041
|
+
f = M(b, this.clonePosition()), l = this.message.slice(b.offset, this.offset());
|
|
3044
3042
|
} else
|
|
3045
3043
|
break;
|
|
3046
3044
|
}
|
|
3047
|
-
if (
|
|
3048
|
-
return this.error(n === "select" ?
|
|
3049
|
-
|
|
3045
|
+
if (u.has(l))
|
|
3046
|
+
return this.error(n === "select" ? O.DUPLICATE_SELECT_ARGUMENT_SELECTOR : O.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, f);
|
|
3047
|
+
l === "other" && (s = !0), this.bumpSpace();
|
|
3050
3048
|
var S = this.clonePosition();
|
|
3051
3049
|
if (!this.bumpIf("{"))
|
|
3052
|
-
return this.error(n === "select" ?
|
|
3053
|
-
var
|
|
3054
|
-
if (
|
|
3055
|
-
return
|
|
3056
|
-
var
|
|
3057
|
-
if (
|
|
3058
|
-
return
|
|
3059
|
-
|
|
3060
|
-
|
|
3050
|
+
return this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : O.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, M(this.clonePosition(), this.clonePosition()));
|
|
3051
|
+
var _ = this.parseMessage(t + 1, n, r);
|
|
3052
|
+
if (_.err)
|
|
3053
|
+
return _;
|
|
3054
|
+
var T = this.tryParseArgumentClose(S);
|
|
3055
|
+
if (T.err)
|
|
3056
|
+
return T;
|
|
3057
|
+
a.push([
|
|
3058
|
+
l,
|
|
3061
3059
|
{
|
|
3062
|
-
value:
|
|
3063
|
-
location:
|
|
3060
|
+
value: _.val,
|
|
3061
|
+
location: M(S, this.clonePosition())
|
|
3064
3062
|
}
|
|
3065
|
-
]),
|
|
3063
|
+
]), u.add(l), this.bumpSpace(), o = this.parseIdentifierIfPossible(), l = o.value, f = o.location;
|
|
3066
3064
|
}
|
|
3067
|
-
return
|
|
3065
|
+
return a.length === 0 ? this.error(n === "select" ? O.EXPECT_SELECT_ARGUMENT_SELECTOR : O.EXPECT_PLURAL_ARGUMENT_SELECTOR, M(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !s ? this.error(O.MISSING_OTHER_CLAUSE, M(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3068
3066
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3069
3067
|
var r = 1, i = this.clonePosition();
|
|
3070
3068
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3071
|
-
for (var o = !1,
|
|
3072
|
-
var
|
|
3073
|
-
if (
|
|
3074
|
-
o = !0,
|
|
3069
|
+
for (var o = !1, s = 0; !this.isEOF(); ) {
|
|
3070
|
+
var a = this.char();
|
|
3071
|
+
if (a >= 48 && a <= 57)
|
|
3072
|
+
o = !0, s = s * 10 + (a - 48), this.bump();
|
|
3075
3073
|
else
|
|
3076
3074
|
break;
|
|
3077
3075
|
}
|
|
3078
|
-
var
|
|
3079
|
-
return o ? (
|
|
3076
|
+
var u = M(i, this.clonePosition());
|
|
3077
|
+
return o ? (s *= r, no(s) ? { val: s, err: null } : this.error(n, u)) : this.error(t, u);
|
|
3080
3078
|
}, e.prototype.offset = function() {
|
|
3081
3079
|
return this.position.offset;
|
|
3082
3080
|
}, e.prototype.isEOF = function() {
|
|
@@ -3091,7 +3089,7 @@ var io = (
|
|
|
3091
3089
|
var t = this.position.offset;
|
|
3092
3090
|
if (t >= this.message.length)
|
|
3093
3091
|
throw Error("out of bound");
|
|
3094
|
-
var n =
|
|
3092
|
+
var n = pr(this.message, t);
|
|
3095
3093
|
if (n === void 0)
|
|
3096
3094
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3097
3095
|
return n;
|
|
@@ -3110,7 +3108,7 @@ var io = (
|
|
|
3110
3108
|
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);
|
|
3111
3109
|
}
|
|
3112
3110
|
}, e.prototype.bumpIf = function(t) {
|
|
3113
|
-
if (
|
|
3111
|
+
if (Bn(this.message, t, this.offset())) {
|
|
3114
3112
|
for (var n = 0; n < t.length; n++)
|
|
3115
3113
|
this.bump();
|
|
3116
3114
|
return !0;
|
|
@@ -3132,7 +3130,7 @@ var io = (
|
|
|
3132
3130
|
break;
|
|
3133
3131
|
}
|
|
3134
3132
|
}, e.prototype.bumpSpace = function() {
|
|
3135
|
-
for (; !this.isEOF() &&
|
|
3133
|
+
for (; !this.isEOF() && br(this.char()); )
|
|
3136
3134
|
this.bump();
|
|
3137
3135
|
}, e.prototype.peek = function() {
|
|
3138
3136
|
if (this.isEOF())
|
|
@@ -3142,47 +3140,47 @@ var io = (
|
|
|
3142
3140
|
}, e;
|
|
3143
3141
|
}()
|
|
3144
3142
|
);
|
|
3145
|
-
function
|
|
3143
|
+
function rn(e) {
|
|
3146
3144
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3147
3145
|
}
|
|
3148
|
-
function
|
|
3149
|
-
return
|
|
3146
|
+
function so(e) {
|
|
3147
|
+
return rn(e) || e === 47;
|
|
3150
3148
|
}
|
|
3151
|
-
function
|
|
3149
|
+
function lo(e) {
|
|
3152
3150
|
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;
|
|
3153
3151
|
}
|
|
3154
|
-
function
|
|
3152
|
+
function br(e) {
|
|
3155
3153
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3156
3154
|
}
|
|
3157
|
-
function
|
|
3155
|
+
function uo(e) {
|
|
3158
3156
|
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;
|
|
3159
3157
|
}
|
|
3160
|
-
function
|
|
3158
|
+
function on(e) {
|
|
3161
3159
|
e.forEach(function(t) {
|
|
3162
|
-
if (delete t.location,
|
|
3160
|
+
if (delete t.location, ar(t) || sr(t))
|
|
3163
3161
|
for (var n in t.options)
|
|
3164
|
-
delete t.options[n].location,
|
|
3162
|
+
delete t.options[n].location, on(t.options[n].value);
|
|
3165
3163
|
else
|
|
3166
|
-
|
|
3164
|
+
rr(t) && ur(t.style) || (ir(t) || or(t)) && Kt(t.style) ? delete t.style.location : lr(t) && on(t.children);
|
|
3167
3165
|
});
|
|
3168
3166
|
}
|
|
3169
|
-
function
|
|
3170
|
-
t === void 0 && (t = {}), t =
|
|
3171
|
-
var n = new
|
|
3167
|
+
function co(e, t) {
|
|
3168
|
+
t === void 0 && (t = {}), t = P({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3169
|
+
var n = new ao(e, t).parse();
|
|
3172
3170
|
if (n.err) {
|
|
3173
|
-
var r = SyntaxError(
|
|
3171
|
+
var r = SyntaxError(O[n.err.kind]);
|
|
3174
3172
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3175
3173
|
}
|
|
3176
|
-
return t != null && t.captureLocation ||
|
|
3174
|
+
return t != null && t.captureLocation || on(n.val), n.val;
|
|
3177
3175
|
}
|
|
3178
|
-
var
|
|
3176
|
+
var Ve;
|
|
3179
3177
|
(function(e) {
|
|
3180
3178
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3181
|
-
})(
|
|
3179
|
+
})(Ve || (Ve = {}));
|
|
3182
3180
|
var Tt = (
|
|
3183
3181
|
/** @class */
|
|
3184
3182
|
function(e) {
|
|
3185
|
-
|
|
3183
|
+
Ae(t, e);
|
|
3186
3184
|
function t(n, r, i) {
|
|
3187
3185
|
var o = e.call(this, n) || this;
|
|
3188
3186
|
return o.code = r, o.originalMessage = i, o;
|
|
@@ -3191,153 +3189,153 @@ var Tt = (
|
|
|
3191
3189
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3192
3190
|
}, t;
|
|
3193
3191
|
}(Error)
|
|
3194
|
-
),
|
|
3192
|
+
), Hn = (
|
|
3195
3193
|
/** @class */
|
|
3196
3194
|
function(e) {
|
|
3197
|
-
|
|
3195
|
+
Ae(t, e);
|
|
3198
3196
|
function t(n, r, i, o) {
|
|
3199
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3197
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ve.INVALID_VALUE, o) || this;
|
|
3200
3198
|
}
|
|
3201
3199
|
return t;
|
|
3202
3200
|
}(Tt)
|
|
3203
|
-
),
|
|
3201
|
+
), ho = (
|
|
3204
3202
|
/** @class */
|
|
3205
3203
|
function(e) {
|
|
3206
|
-
|
|
3204
|
+
Ae(t, e);
|
|
3207
3205
|
function t(n, r, i) {
|
|
3208
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3206
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Ve.INVALID_VALUE, i) || this;
|
|
3209
3207
|
}
|
|
3210
3208
|
return t;
|
|
3211
3209
|
}(Tt)
|
|
3212
|
-
),
|
|
3210
|
+
), fo = (
|
|
3213
3211
|
/** @class */
|
|
3214
3212
|
function(e) {
|
|
3215
|
-
|
|
3213
|
+
Ae(t, e);
|
|
3216
3214
|
function t(n, r) {
|
|
3217
|
-
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'),
|
|
3215
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Ve.MISSING_VALUE, r) || this;
|
|
3218
3216
|
}
|
|
3219
3217
|
return t;
|
|
3220
3218
|
}(Tt)
|
|
3221
|
-
),
|
|
3219
|
+
), oe;
|
|
3222
3220
|
(function(e) {
|
|
3223
3221
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3224
|
-
})(
|
|
3225
|
-
function
|
|
3222
|
+
})(oe || (oe = {}));
|
|
3223
|
+
function po(e) {
|
|
3226
3224
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3227
3225
|
var r = t[t.length - 1];
|
|
3228
|
-
return !r || r.type !==
|
|
3226
|
+
return !r || r.type !== oe.literal || n.type !== oe.literal ? t.push(n) : r.value += n.value, t;
|
|
3229
3227
|
}, []);
|
|
3230
3228
|
}
|
|
3231
|
-
function
|
|
3229
|
+
function mo(e) {
|
|
3232
3230
|
return typeof e == "function";
|
|
3233
3231
|
}
|
|
3234
|
-
function gt(e, t, n, r, i, o,
|
|
3235
|
-
if (e.length === 1 &&
|
|
3232
|
+
function gt(e, t, n, r, i, o, s) {
|
|
3233
|
+
if (e.length === 1 && xn(e[0]))
|
|
3236
3234
|
return [
|
|
3237
3235
|
{
|
|
3238
|
-
type:
|
|
3236
|
+
type: oe.literal,
|
|
3239
3237
|
value: e[0].value
|
|
3240
3238
|
}
|
|
3241
3239
|
];
|
|
3242
|
-
for (var
|
|
3243
|
-
var f = u
|
|
3244
|
-
if (
|
|
3245
|
-
|
|
3246
|
-
type:
|
|
3240
|
+
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
3241
|
+
var f = l[u];
|
|
3242
|
+
if (xn(f)) {
|
|
3243
|
+
a.push({
|
|
3244
|
+
type: oe.literal,
|
|
3247
3245
|
value: f.value
|
|
3248
3246
|
});
|
|
3249
3247
|
continue;
|
|
3250
3248
|
}
|
|
3251
|
-
if (
|
|
3252
|
-
typeof o == "number" &&
|
|
3253
|
-
type:
|
|
3249
|
+
if (Ni(f)) {
|
|
3250
|
+
typeof o == "number" && a.push({
|
|
3251
|
+
type: oe.literal,
|
|
3254
3252
|
value: n.getNumberFormat(t).format(o)
|
|
3255
3253
|
});
|
|
3256
3254
|
continue;
|
|
3257
3255
|
}
|
|
3258
3256
|
var b = f.value;
|
|
3259
3257
|
if (!(i && b in i))
|
|
3260
|
-
throw new
|
|
3258
|
+
throw new fo(b, s);
|
|
3261
3259
|
var m = i[b];
|
|
3262
|
-
if (
|
|
3263
|
-
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""),
|
|
3264
|
-
type: typeof m == "string" ?
|
|
3260
|
+
if (Ii(f)) {
|
|
3261
|
+
(!m || typeof m == "string" || typeof m == "number") && (m = typeof m == "string" || typeof m == "number" ? String(m) : ""), a.push({
|
|
3262
|
+
type: typeof m == "string" ? oe.literal : oe.object,
|
|
3265
3263
|
value: m
|
|
3266
3264
|
});
|
|
3267
3265
|
continue;
|
|
3268
3266
|
}
|
|
3269
|
-
if (
|
|
3270
|
-
var S = typeof f.style == "string" ? r.date[f.style] :
|
|
3271
|
-
|
|
3272
|
-
type:
|
|
3267
|
+
if (ir(f)) {
|
|
3268
|
+
var S = typeof f.style == "string" ? r.date[f.style] : Kt(f.style) ? f.style.parsedOptions : void 0;
|
|
3269
|
+
a.push({
|
|
3270
|
+
type: oe.literal,
|
|
3273
3271
|
value: n.getDateTimeFormat(t, S).format(m)
|
|
3274
3272
|
});
|
|
3275
3273
|
continue;
|
|
3276
3274
|
}
|
|
3277
|
-
if (
|
|
3278
|
-
var S = typeof f.style == "string" ? r.time[f.style] :
|
|
3279
|
-
|
|
3280
|
-
type:
|
|
3275
|
+
if (or(f)) {
|
|
3276
|
+
var S = typeof f.style == "string" ? r.time[f.style] : Kt(f.style) ? f.style.parsedOptions : r.time.medium;
|
|
3277
|
+
a.push({
|
|
3278
|
+
type: oe.literal,
|
|
3281
3279
|
value: n.getDateTimeFormat(t, S).format(m)
|
|
3282
3280
|
});
|
|
3283
3281
|
continue;
|
|
3284
3282
|
}
|
|
3285
|
-
if (
|
|
3286
|
-
var S = typeof f.style == "string" ? r.number[f.style] :
|
|
3287
|
-
S && S.scale && (m = m * (S.scale || 1)),
|
|
3288
|
-
type:
|
|
3283
|
+
if (rr(f)) {
|
|
3284
|
+
var S = typeof f.style == "string" ? r.number[f.style] : ur(f.style) ? f.style.parsedOptions : void 0;
|
|
3285
|
+
S && S.scale && (m = m * (S.scale || 1)), a.push({
|
|
3286
|
+
type: oe.literal,
|
|
3289
3287
|
value: n.getNumberFormat(t, S).format(m)
|
|
3290
3288
|
});
|
|
3291
3289
|
continue;
|
|
3292
3290
|
}
|
|
3293
|
-
if (
|
|
3294
|
-
var
|
|
3295
|
-
if (!
|
|
3296
|
-
throw new
|
|
3297
|
-
var W = gt(
|
|
3298
|
-
return
|
|
3291
|
+
if (lr(f)) {
|
|
3292
|
+
var _ = f.children, T = f.value, N = i[T];
|
|
3293
|
+
if (!mo(N))
|
|
3294
|
+
throw new ho(T, "function", s);
|
|
3295
|
+
var W = gt(_, t, n, r, i, o), V = N(W.map(function(Q) {
|
|
3296
|
+
return Q.value;
|
|
3299
3297
|
}));
|
|
3300
|
-
Array.isArray(V) || (V = [V]),
|
|
3298
|
+
Array.isArray(V) || (V = [V]), a.push.apply(a, V.map(function(Q) {
|
|
3301
3299
|
return {
|
|
3302
|
-
type: typeof
|
|
3303
|
-
value:
|
|
3300
|
+
type: typeof Q == "string" ? oe.literal : oe.object,
|
|
3301
|
+
value: Q
|
|
3304
3302
|
};
|
|
3305
3303
|
}));
|
|
3306
3304
|
}
|
|
3307
|
-
if (
|
|
3308
|
-
var
|
|
3309
|
-
if (!
|
|
3310
|
-
throw new
|
|
3311
|
-
|
|
3305
|
+
if (ar(f)) {
|
|
3306
|
+
var L = f.options[m] || f.options.other;
|
|
3307
|
+
if (!L)
|
|
3308
|
+
throw new Hn(f.value, m, Object.keys(f.options), s);
|
|
3309
|
+
a.push.apply(a, gt(L.value, t, n, r, i));
|
|
3312
3310
|
continue;
|
|
3313
3311
|
}
|
|
3314
|
-
if (
|
|
3315
|
-
var
|
|
3316
|
-
if (!
|
|
3312
|
+
if (sr(f)) {
|
|
3313
|
+
var L = f.options["=".concat(m)];
|
|
3314
|
+
if (!L) {
|
|
3317
3315
|
if (!Intl.PluralRules)
|
|
3318
3316
|
throw new Tt(`Intl.PluralRules is not available in this environment.
|
|
3319
3317
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3320
|
-
`,
|
|
3321
|
-
var
|
|
3322
|
-
|
|
3318
|
+
`, Ve.MISSING_INTL_API, s);
|
|
3319
|
+
var U = n.getPluralRules(t, { type: f.pluralType }).select(m - (f.offset || 0));
|
|
3320
|
+
L = f.options[U] || f.options.other;
|
|
3323
3321
|
}
|
|
3324
|
-
if (!
|
|
3325
|
-
throw new
|
|
3326
|
-
|
|
3322
|
+
if (!L)
|
|
3323
|
+
throw new Hn(f.value, m, Object.keys(f.options), s);
|
|
3324
|
+
a.push.apply(a, gt(L.value, t, n, r, i, m - (f.offset || 0)));
|
|
3327
3325
|
continue;
|
|
3328
3326
|
}
|
|
3329
3327
|
}
|
|
3330
|
-
return
|
|
3328
|
+
return po(a);
|
|
3331
3329
|
}
|
|
3332
|
-
function
|
|
3333
|
-
return t ?
|
|
3334
|
-
return n[r] =
|
|
3330
|
+
function bo(e, t) {
|
|
3331
|
+
return t ? P(P(P({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3332
|
+
return n[r] = P(P({}, e[r]), t[r] || {}), n;
|
|
3335
3333
|
}, {})) : e;
|
|
3336
3334
|
}
|
|
3337
|
-
function
|
|
3335
|
+
function go(e, t) {
|
|
3338
3336
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3339
|
-
return n[r] =
|
|
3340
|
-
},
|
|
3337
|
+
return n[r] = bo(e[r], t[r]), n;
|
|
3338
|
+
}, P({}, e)) : e;
|
|
3341
3339
|
}
|
|
3342
3340
|
function $t(e) {
|
|
3343
3341
|
return {
|
|
@@ -3353,7 +3351,7 @@ function $t(e) {
|
|
|
3353
3351
|
}
|
|
3354
3352
|
};
|
|
3355
3353
|
}
|
|
3356
|
-
function
|
|
3354
|
+
function yo(e) {
|
|
3357
3355
|
return e === void 0 && (e = {
|
|
3358
3356
|
number: {},
|
|
3359
3357
|
dateTime: {},
|
|
@@ -3362,7 +3360,7 @@ function bo(e) {
|
|
|
3362
3360
|
getNumberFormat: Gt(function() {
|
|
3363
3361
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3364
3362
|
n[r] = arguments[r];
|
|
3365
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3363
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, je([void 0], n, !1)))();
|
|
3366
3364
|
}, {
|
|
3367
3365
|
cache: $t(e.number),
|
|
3368
3366
|
strategy: jt.variadic
|
|
@@ -3370,7 +3368,7 @@ function bo(e) {
|
|
|
3370
3368
|
getDateTimeFormat: Gt(function() {
|
|
3371
3369
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3372
3370
|
n[r] = arguments[r];
|
|
3373
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3371
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, je([void 0], n, !1)))();
|
|
3374
3372
|
}, {
|
|
3375
3373
|
cache: $t(e.dateTime),
|
|
3376
3374
|
strategy: jt.variadic
|
|
@@ -3378,14 +3376,14 @@ function bo(e) {
|
|
|
3378
3376
|
getPluralRules: Gt(function() {
|
|
3379
3377
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3380
3378
|
n[r] = arguments[r];
|
|
3381
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3379
|
+
return new ((t = Intl.PluralRules).bind.apply(t, je([void 0], n, !1)))();
|
|
3382
3380
|
}, {
|
|
3383
3381
|
cache: $t(e.pluralRules),
|
|
3384
3382
|
strategy: jt.variadic
|
|
3385
3383
|
})
|
|
3386
3384
|
};
|
|
3387
3385
|
}
|
|
3388
|
-
var
|
|
3386
|
+
var vo = (
|
|
3389
3387
|
/** @class */
|
|
3390
3388
|
function() {
|
|
3391
3389
|
function e(t, n, r, i) {
|
|
@@ -3395,35 +3393,35 @@ var go = (
|
|
|
3395
3393
|
number: {},
|
|
3396
3394
|
dateTime: {},
|
|
3397
3395
|
pluralRules: {}
|
|
3398
|
-
}, this.format = function(
|
|
3399
|
-
var
|
|
3400
|
-
if (
|
|
3401
|
-
return
|
|
3402
|
-
var f =
|
|
3403
|
-
return !b.length || m.type !==
|
|
3396
|
+
}, this.format = function(u) {
|
|
3397
|
+
var l = o.formatToParts(u);
|
|
3398
|
+
if (l.length === 1)
|
|
3399
|
+
return l[0].value;
|
|
3400
|
+
var f = l.reduce(function(b, m) {
|
|
3401
|
+
return !b.length || m.type !== oe.literal || typeof b[b.length - 1] != "string" ? b.push(m.value) : b[b.length - 1] += m.value, b;
|
|
3404
3402
|
}, []);
|
|
3405
3403
|
return f.length <= 1 ? f[0] || "" : f;
|
|
3406
|
-
}, this.formatToParts = function(
|
|
3407
|
-
return gt(o.ast, o.locales, o.formatters, o.formats,
|
|
3404
|
+
}, this.formatToParts = function(u) {
|
|
3405
|
+
return gt(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3408
3406
|
}, this.resolvedOptions = function() {
|
|
3409
|
-
var
|
|
3407
|
+
var u;
|
|
3410
3408
|
return {
|
|
3411
|
-
locale: ((
|
|
3409
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3412
3410
|
};
|
|
3413
3411
|
}, this.getAst = function() {
|
|
3414
3412
|
return o.ast;
|
|
3415
3413
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3416
3414
|
if (this.message = t, !e.__parse)
|
|
3417
3415
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3418
|
-
var
|
|
3419
|
-
|
|
3420
|
-
var
|
|
3421
|
-
this.ast = e.__parse(t,
|
|
3416
|
+
var s = i || {};
|
|
3417
|
+
s.formatters;
|
|
3418
|
+
var a = Ci(s, ["formatters"]);
|
|
3419
|
+
this.ast = e.__parse(t, P(P({}, a), { locale: this.resolvedLocale }));
|
|
3422
3420
|
} else
|
|
3423
3421
|
this.ast = t;
|
|
3424
3422
|
if (!Array.isArray(this.ast))
|
|
3425
3423
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3426
|
-
this.formats =
|
|
3424
|
+
this.formats = go(e.formats, r), this.formatters = i && i.formatters || yo(this.formatterCache);
|
|
3427
3425
|
}
|
|
3428
3426
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3429
3427
|
get: function() {
|
|
@@ -3436,7 +3434,7 @@ var go = (
|
|
|
3436
3434
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3437
3435
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3438
3436
|
}
|
|
3439
|
-
}, e.__parse =
|
|
3437
|
+
}, e.__parse = co, e.formats = {
|
|
3440
3438
|
number: {
|
|
3441
3439
|
integer: {
|
|
3442
3440
|
maximumFractionDigits: 0
|
|
@@ -3497,7 +3495,7 @@ var go = (
|
|
|
3497
3495
|
}, e;
|
|
3498
3496
|
}()
|
|
3499
3497
|
);
|
|
3500
|
-
function
|
|
3498
|
+
function Eo(e, t) {
|
|
3501
3499
|
if (t == null)
|
|
3502
3500
|
return;
|
|
3503
3501
|
if (t in e)
|
|
@@ -3518,92 +3516,92 @@ function yo(e, t) {
|
|
|
3518
3516
|
r = void 0;
|
|
3519
3517
|
return r;
|
|
3520
3518
|
}
|
|
3521
|
-
const
|
|
3519
|
+
const Oe = {}, _o = (e, t, n) => n && (t in Oe || (Oe[t] = {}), e in Oe[t] || (Oe[t][e] = n), n), gr = (e, t) => {
|
|
3522
3520
|
if (t == null)
|
|
3523
3521
|
return;
|
|
3524
|
-
if (t in
|
|
3525
|
-
return
|
|
3522
|
+
if (t in Oe && e in Oe[t])
|
|
3523
|
+
return Oe[t][e];
|
|
3526
3524
|
const n = Bt(t);
|
|
3527
3525
|
for (let r = 0; r < n.length; r++) {
|
|
3528
|
-
const i = n[r], o =
|
|
3526
|
+
const i = n[r], o = wo(i, e);
|
|
3529
3527
|
if (o)
|
|
3530
|
-
return
|
|
3528
|
+
return _o(e, t, o);
|
|
3531
3529
|
}
|
|
3532
3530
|
};
|
|
3533
|
-
let
|
|
3531
|
+
let pn;
|
|
3534
3532
|
const st = St({});
|
|
3535
|
-
function
|
|
3536
|
-
return
|
|
3533
|
+
function xo(e) {
|
|
3534
|
+
return pn[e] || null;
|
|
3537
3535
|
}
|
|
3538
|
-
function
|
|
3539
|
-
return e in
|
|
3536
|
+
function yr(e) {
|
|
3537
|
+
return e in pn;
|
|
3540
3538
|
}
|
|
3541
|
-
function
|
|
3542
|
-
if (!
|
|
3539
|
+
function wo(e, t) {
|
|
3540
|
+
if (!yr(e))
|
|
3543
3541
|
return null;
|
|
3544
|
-
const n =
|
|
3545
|
-
return
|
|
3542
|
+
const n = xo(e);
|
|
3543
|
+
return Eo(n, t);
|
|
3546
3544
|
}
|
|
3547
|
-
function
|
|
3545
|
+
function So(e) {
|
|
3548
3546
|
if (e == null)
|
|
3549
3547
|
return;
|
|
3550
3548
|
const t = Bt(e);
|
|
3551
3549
|
for (let n = 0; n < t.length; n++) {
|
|
3552
3550
|
const r = t[n];
|
|
3553
|
-
if (
|
|
3551
|
+
if (yr(r))
|
|
3554
3552
|
return r;
|
|
3555
3553
|
}
|
|
3556
3554
|
}
|
|
3557
|
-
function
|
|
3558
|
-
delete
|
|
3555
|
+
function vr(e, ...t) {
|
|
3556
|
+
delete Oe[e], st.update((n) => (n[e] = Ai.all([n[e] || {}, ...t]), n));
|
|
3559
3557
|
}
|
|
3560
|
-
|
|
3558
|
+
We(
|
|
3561
3559
|
[st],
|
|
3562
3560
|
([e]) => Object.keys(e)
|
|
3563
3561
|
);
|
|
3564
|
-
st.subscribe((e) =>
|
|
3562
|
+
st.subscribe((e) => pn = e);
|
|
3565
3563
|
const yt = {};
|
|
3566
|
-
function
|
|
3564
|
+
function To(e, t) {
|
|
3567
3565
|
yt[e].delete(t), yt[e].size === 0 && delete yt[e];
|
|
3568
3566
|
}
|
|
3569
|
-
function
|
|
3567
|
+
function Er(e) {
|
|
3570
3568
|
return yt[e];
|
|
3571
3569
|
}
|
|
3572
|
-
function
|
|
3570
|
+
function Bo(e) {
|
|
3573
3571
|
return Bt(e).map((t) => {
|
|
3574
|
-
const n =
|
|
3572
|
+
const n = Er(t);
|
|
3575
3573
|
return [t, n ? [...n] : []];
|
|
3576
3574
|
}).filter(([, t]) => t.length > 0);
|
|
3577
3575
|
}
|
|
3578
|
-
function
|
|
3576
|
+
function an(e) {
|
|
3579
3577
|
return e == null ? !1 : Bt(e).some(
|
|
3580
3578
|
(t) => {
|
|
3581
3579
|
var n;
|
|
3582
|
-
return (n =
|
|
3580
|
+
return (n = Er(t)) == null ? void 0 : n.size;
|
|
3583
3581
|
}
|
|
3584
3582
|
);
|
|
3585
3583
|
}
|
|
3586
|
-
function
|
|
3584
|
+
function Ao(e, t) {
|
|
3587
3585
|
return Promise.all(
|
|
3588
|
-
t.map((r) => (
|
|
3589
|
-
).then((r) =>
|
|
3586
|
+
t.map((r) => (To(e, r), r().then((i) => i.default || i)))
|
|
3587
|
+
).then((r) => vr(e, ...r));
|
|
3590
3588
|
}
|
|
3591
3589
|
const nt = {};
|
|
3592
|
-
function
|
|
3593
|
-
if (!
|
|
3590
|
+
function _r(e) {
|
|
3591
|
+
if (!an(e))
|
|
3594
3592
|
return e in nt ? nt[e] : Promise.resolve();
|
|
3595
|
-
const t =
|
|
3593
|
+
const t = Bo(e);
|
|
3596
3594
|
return nt[e] = Promise.all(
|
|
3597
3595
|
t.map(
|
|
3598
|
-
([n, r]) =>
|
|
3596
|
+
([n, r]) => Ao(n, r)
|
|
3599
3597
|
)
|
|
3600
3598
|
).then(() => {
|
|
3601
|
-
if (
|
|
3602
|
-
return
|
|
3599
|
+
if (an(e))
|
|
3600
|
+
return _r(e);
|
|
3603
3601
|
delete nt[e];
|
|
3604
3602
|
}), nt[e];
|
|
3605
3603
|
}
|
|
3606
|
-
const
|
|
3604
|
+
const Co = {
|
|
3607
3605
|
number: {
|
|
3608
3606
|
scientific: { notation: "scientific" },
|
|
3609
3607
|
engineering: { notation: "engineering" },
|
|
@@ -3632,57 +3630,57 @@ const Bo = {
|
|
|
3632
3630
|
timeZoneName: "short"
|
|
3633
3631
|
}
|
|
3634
3632
|
}
|
|
3635
|
-
},
|
|
3633
|
+
}, Ho = {
|
|
3636
3634
|
fallbackLocale: null,
|
|
3637
3635
|
loadingDelay: 200,
|
|
3638
|
-
formats:
|
|
3636
|
+
formats: Co,
|
|
3639
3637
|
warnOnMissingMessages: !0,
|
|
3640
3638
|
handleMissingMessage: void 0,
|
|
3641
3639
|
ignoreTag: !0
|
|
3642
|
-
},
|
|
3643
|
-
function
|
|
3644
|
-
return
|
|
3640
|
+
}, Oo = Ho;
|
|
3641
|
+
function Xe() {
|
|
3642
|
+
return Oo;
|
|
3645
3643
|
}
|
|
3646
3644
|
const Vt = St(!1);
|
|
3647
|
-
var
|
|
3648
|
-
for (var n in t)
|
|
3649
|
-
|
|
3650
|
-
if (
|
|
3651
|
-
for (var n of
|
|
3652
|
-
|
|
3645
|
+
var Mo = Object.defineProperty, Ro = Object.defineProperties, Lo = Object.getOwnPropertyDescriptors, On = Object.getOwnPropertySymbols, Po = Object.prototype.hasOwnProperty, Io = Object.prototype.propertyIsEnumerable, Mn = (e, t, n) => t in e ? Mo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, No = (e, t) => {
|
|
3646
|
+
for (var n in t || (t = {}))
|
|
3647
|
+
Po.call(t, n) && Mn(e, n, t[n]);
|
|
3648
|
+
if (On)
|
|
3649
|
+
for (var n of On(t))
|
|
3650
|
+
Io.call(t, n) && Mn(e, n, t[n]);
|
|
3653
3651
|
return e;
|
|
3654
|
-
},
|
|
3655
|
-
let
|
|
3652
|
+
}, Do = (e, t) => Ro(e, Lo(t));
|
|
3653
|
+
let sn;
|
|
3656
3654
|
const xt = St(null);
|
|
3657
|
-
function
|
|
3655
|
+
function Rn(e) {
|
|
3658
3656
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3659
3657
|
}
|
|
3660
|
-
function Bt(e, t =
|
|
3661
|
-
const n =
|
|
3662
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3658
|
+
function Bt(e, t = Xe().fallbackLocale) {
|
|
3659
|
+
const n = Rn(e);
|
|
3660
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...Rn(t)])] : n;
|
|
3663
3661
|
}
|
|
3664
3662
|
function Le() {
|
|
3665
|
-
return
|
|
3663
|
+
return sn != null ? sn : void 0;
|
|
3666
3664
|
}
|
|
3667
3665
|
xt.subscribe((e) => {
|
|
3668
|
-
|
|
3666
|
+
sn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3669
3667
|
});
|
|
3670
|
-
const
|
|
3671
|
-
if (e &&
|
|
3672
|
-
const { loadingDelay: t } =
|
|
3668
|
+
const Uo = (e) => {
|
|
3669
|
+
if (e && So(e) && an(e)) {
|
|
3670
|
+
const { loadingDelay: t } = Xe();
|
|
3673
3671
|
let n;
|
|
3674
3672
|
return typeof window != "undefined" && Le() != null && t ? n = window.setTimeout(
|
|
3675
3673
|
() => Vt.set(!0),
|
|
3676
3674
|
t
|
|
3677
|
-
) : Vt.set(!0),
|
|
3675
|
+
) : Vt.set(!0), _r(e).then(() => {
|
|
3678
3676
|
xt.set(e);
|
|
3679
3677
|
}).finally(() => {
|
|
3680
3678
|
clearTimeout(n), Vt.set(!1);
|
|
3681
3679
|
});
|
|
3682
3680
|
}
|
|
3683
3681
|
return xt.set(e);
|
|
3684
|
-
},
|
|
3685
|
-
set:
|
|
3682
|
+
}, Ze = Do(No({}, xt), {
|
|
3683
|
+
set: Uo
|
|
3686
3684
|
}), At = (e) => {
|
|
3687
3685
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3688
3686
|
return (r) => {
|
|
@@ -3690,101 +3688,101 @@ const Io = (e) => {
|
|
|
3690
3688
|
return i in t ? t[i] : t[i] = e(r);
|
|
3691
3689
|
};
|
|
3692
3690
|
};
|
|
3693
|
-
var
|
|
3691
|
+
var Fo = Object.defineProperty, wt = Object.getOwnPropertySymbols, xr = Object.prototype.hasOwnProperty, wr = Object.prototype.propertyIsEnumerable, Ln = (e, t, n) => t in e ? Fo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, mn = (e, t) => {
|
|
3694
3692
|
for (var n in t || (t = {}))
|
|
3695
|
-
|
|
3693
|
+
xr.call(t, n) && Ln(e, n, t[n]);
|
|
3696
3694
|
if (wt)
|
|
3697
3695
|
for (var n of wt(t))
|
|
3698
|
-
|
|
3696
|
+
wr.call(t, n) && Ln(e, n, t[n]);
|
|
3699
3697
|
return e;
|
|
3700
|
-
},
|
|
3698
|
+
}, qe = (e, t) => {
|
|
3701
3699
|
var n = {};
|
|
3702
3700
|
for (var r in e)
|
|
3703
|
-
|
|
3701
|
+
xr.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3704
3702
|
if (e != null && wt)
|
|
3705
3703
|
for (var r of wt(e))
|
|
3706
|
-
t.indexOf(r) < 0 &&
|
|
3704
|
+
t.indexOf(r) < 0 && wr.call(e, r) && (n[r] = e[r]);
|
|
3707
3705
|
return n;
|
|
3708
3706
|
};
|
|
3709
3707
|
const at = (e, t) => {
|
|
3710
|
-
const { formats: n } =
|
|
3708
|
+
const { formats: n } = Xe();
|
|
3711
3709
|
if (e in n && t in n[e])
|
|
3712
3710
|
return n[e][t];
|
|
3713
3711
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3714
|
-
},
|
|
3712
|
+
}, Go = At(
|
|
3715
3713
|
(e) => {
|
|
3716
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3714
|
+
var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
|
|
3717
3715
|
if (n == null)
|
|
3718
3716
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3719
3717
|
return r && (i = at("number", r)), new Intl.NumberFormat(n, i);
|
|
3720
3718
|
}
|
|
3721
|
-
),
|
|
3719
|
+
), jo = At(
|
|
3722
3720
|
(e) => {
|
|
3723
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3721
|
+
var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
|
|
3724
3722
|
if (n == null)
|
|
3725
3723
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3726
3724
|
return r ? i = at("date", r) : Object.keys(i).length === 0 && (i = at("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3727
3725
|
}
|
|
3728
|
-
),
|
|
3726
|
+
), ko = At(
|
|
3729
3727
|
(e) => {
|
|
3730
|
-
var t = e, { locale: n, format: r } = t, i =
|
|
3728
|
+
var t = e, { locale: n, format: r } = t, i = qe(t, ["locale", "format"]);
|
|
3731
3729
|
if (n == null)
|
|
3732
3730
|
throw new Error(
|
|
3733
3731
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3734
3732
|
);
|
|
3735
3733
|
return r ? i = at("time", r) : Object.keys(i).length === 0 && (i = at("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3736
3734
|
}
|
|
3737
|
-
),
|
|
3735
|
+
), $o = (e = {}) => {
|
|
3738
3736
|
var t = e, {
|
|
3739
3737
|
locale: n = Le()
|
|
3740
|
-
} = t, r =
|
|
3738
|
+
} = t, r = qe(t, [
|
|
3741
3739
|
"locale"
|
|
3742
3740
|
]);
|
|
3743
|
-
return
|
|
3744
|
-
},
|
|
3741
|
+
return Go(mn({ locale: n }, r));
|
|
3742
|
+
}, Vo = (e = {}) => {
|
|
3745
3743
|
var t = e, {
|
|
3746
3744
|
locale: n = Le()
|
|
3747
|
-
} = t, r =
|
|
3745
|
+
} = t, r = qe(t, [
|
|
3748
3746
|
"locale"
|
|
3749
3747
|
]);
|
|
3750
|
-
return
|
|
3751
|
-
},
|
|
3748
|
+
return jo(mn({ locale: n }, r));
|
|
3749
|
+
}, Xo = (e = {}) => {
|
|
3752
3750
|
var t = e, {
|
|
3753
3751
|
locale: n = Le()
|
|
3754
|
-
} = t, r =
|
|
3752
|
+
} = t, r = qe(t, [
|
|
3755
3753
|
"locale"
|
|
3756
3754
|
]);
|
|
3757
|
-
return
|
|
3758
|
-
},
|
|
3755
|
+
return ko(mn({ locale: n }, r));
|
|
3756
|
+
}, zo = At(
|
|
3759
3757
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3760
|
-
(e, t = Le()) => new
|
|
3761
|
-
ignoreTag:
|
|
3758
|
+
(e, t = Le()) => new vo(e, t, Xe().formats, {
|
|
3759
|
+
ignoreTag: Xe().ignoreTag
|
|
3762
3760
|
})
|
|
3763
|
-
),
|
|
3761
|
+
), Wo = (e, t = {}) => {
|
|
3764
3762
|
var n, r, i, o;
|
|
3765
|
-
let
|
|
3766
|
-
typeof e == "object" && (
|
|
3763
|
+
let s = t;
|
|
3764
|
+
typeof e == "object" && (s = e, e = s.id);
|
|
3767
3765
|
const {
|
|
3768
|
-
values:
|
|
3769
|
-
locale:
|
|
3770
|
-
default:
|
|
3771
|
-
} =
|
|
3772
|
-
if (
|
|
3766
|
+
values: a,
|
|
3767
|
+
locale: u = Le(),
|
|
3768
|
+
default: l
|
|
3769
|
+
} = s;
|
|
3770
|
+
if (u == null)
|
|
3773
3771
|
throw new Error(
|
|
3774
3772
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3775
3773
|
);
|
|
3776
|
-
let f =
|
|
3774
|
+
let f = gr(e, u);
|
|
3777
3775
|
if (!f)
|
|
3778
|
-
f = (o = (i = (r = (n =
|
|
3776
|
+
f = (o = (i = (r = (n = Xe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
3779
3777
|
else if (typeof f != "string")
|
|
3780
3778
|
return console.warn(
|
|
3781
3779
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3782
3780
|
), f;
|
|
3783
|
-
if (!
|
|
3781
|
+
if (!a)
|
|
3784
3782
|
return f;
|
|
3785
3783
|
let b = f;
|
|
3786
3784
|
try {
|
|
3787
|
-
b =
|
|
3785
|
+
b = zo(f, u).format(a);
|
|
3788
3786
|
} catch (m) {
|
|
3789
3787
|
m instanceof Error && console.warn(
|
|
3790
3788
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3792,18 +3790,18 @@ const at = (e, t) => {
|
|
|
3792
3790
|
);
|
|
3793
3791
|
}
|
|
3794
3792
|
return b;
|
|
3795
|
-
},
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
function
|
|
3801
|
-
|
|
3802
|
-
}
|
|
3803
|
-
function
|
|
3804
|
-
|
|
3805
|
-
}
|
|
3806
|
-
const
|
|
3793
|
+
}, Zo = (e, t) => Xo(t).format(e), qo = (e, t) => Vo(t).format(e), Yo = (e, t) => $o(t).format(e), Qo = (e, t = Le()) => gr(e, t), Jo = We([Ze, st], () => Wo);
|
|
3794
|
+
We([Ze], () => Zo);
|
|
3795
|
+
We([Ze], () => qo);
|
|
3796
|
+
We([Ze], () => Yo);
|
|
3797
|
+
We([Ze, st], () => Qo);
|
|
3798
|
+
function Pn(e, t) {
|
|
3799
|
+
vr(e, t);
|
|
3800
|
+
}
|
|
3801
|
+
function Ko(e) {
|
|
3802
|
+
Ze.set(e);
|
|
3803
|
+
}
|
|
3804
|
+
const In = {
|
|
3807
3805
|
en: {
|
|
3808
3806
|
Title: "Your Balance",
|
|
3809
3807
|
Total: "Total Balance",
|
|
@@ -4003,7 +4001,7 @@ const Ln = {
|
|
|
4003
4001
|
Loading: "Loading ..."
|
|
4004
4002
|
}
|
|
4005
4003
|
};
|
|
4006
|
-
var
|
|
4004
|
+
var ln = { exports: {} };
|
|
4007
4005
|
/** @license
|
|
4008
4006
|
* eventsource.js
|
|
4009
4007
|
* Available under MIT License (MIT)
|
|
@@ -4011,35 +4009,35 @@ var sn = { exports: {} };
|
|
|
4011
4009
|
*/
|
|
4012
4010
|
(function(e, t) {
|
|
4013
4011
|
(function(n) {
|
|
4014
|
-
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest,
|
|
4015
|
-
if (typeof window != "undefined" && typeof
|
|
4016
|
-
|
|
4017
|
-
}, !1)), o == null &&
|
|
4018
|
-
return new
|
|
4012
|
+
var r = n.setTimeout, i = n.clearTimeout, o = n.XMLHttpRequest, s = n.XDomainRequest, a = n.ActiveXObject, u = n.EventSource, l = n.document, f = n.Promise, b = n.fetch, m = n.Response, S = n.TextDecoder, _ = n.TextEncoder, T = n.AbortController;
|
|
4013
|
+
if (typeof window != "undefined" && typeof l != "undefined" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(h) {
|
|
4014
|
+
l.readyState = "complete";
|
|
4015
|
+
}, !1)), o == null && a != null && (o = function() {
|
|
4016
|
+
return new a("Microsoft.XMLHTTP");
|
|
4019
4017
|
}), Object.create == null && (Object.create = function(h) {
|
|
4020
4018
|
function y() {
|
|
4021
4019
|
}
|
|
4022
4020
|
return y.prototype = h, new y();
|
|
4023
4021
|
}), Date.now || (Date.now = function() {
|
|
4024
4022
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
4025
|
-
}),
|
|
4026
|
-
var
|
|
4023
|
+
}), T == null) {
|
|
4024
|
+
var N = b;
|
|
4027
4025
|
b = function(h, y) {
|
|
4028
|
-
var
|
|
4029
|
-
return
|
|
4030
|
-
var
|
|
4031
|
-
return
|
|
4026
|
+
var w = y.signal;
|
|
4027
|
+
return N(h, { headers: y.headers, credentials: y.credentials, cache: y.cache }).then(function(g) {
|
|
4028
|
+
var C = g.body.getReader();
|
|
4029
|
+
return w._reader = C, w._aborted && w._reader.cancel(), {
|
|
4032
4030
|
status: g.status,
|
|
4033
4031
|
statusText: g.statusText,
|
|
4034
4032
|
headers: g.headers,
|
|
4035
4033
|
body: {
|
|
4036
4034
|
getReader: function() {
|
|
4037
|
-
return
|
|
4035
|
+
return C;
|
|
4038
4036
|
}
|
|
4039
4037
|
}
|
|
4040
4038
|
};
|
|
4041
4039
|
});
|
|
4042
|
-
},
|
|
4040
|
+
}, T = function() {
|
|
4043
4041
|
this.signal = {
|
|
4044
4042
|
_reader: null,
|
|
4045
4043
|
_aborted: !1
|
|
@@ -4052,116 +4050,116 @@ var sn = { exports: {} };
|
|
|
4052
4050
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
4053
4051
|
}
|
|
4054
4052
|
W.prototype.decode = function(h) {
|
|
4055
|
-
function y(
|
|
4056
|
-
if (
|
|
4057
|
-
return
|
|
4058
|
-
if (
|
|
4059
|
-
return
|
|
4060
|
-
if (
|
|
4061
|
-
return
|
|
4053
|
+
function y(B, A, d) {
|
|
4054
|
+
if (d === 1)
|
|
4055
|
+
return B >= 128 >> A && B << A <= 2047;
|
|
4056
|
+
if (d === 2)
|
|
4057
|
+
return B >= 2048 >> A && B << A <= 55295 || B >= 57344 >> A && B << A <= 65535;
|
|
4058
|
+
if (d === 3)
|
|
4059
|
+
return B >= 65536 >> A && B << A <= 1114111;
|
|
4062
4060
|
throw new Error();
|
|
4063
4061
|
}
|
|
4064
|
-
function
|
|
4065
|
-
if (
|
|
4066
|
-
return
|
|
4067
|
-
if (
|
|
4068
|
-
return
|
|
4069
|
-
if (
|
|
4062
|
+
function w(B, A) {
|
|
4063
|
+
if (B === 6 * 1)
|
|
4064
|
+
return A >> 6 > 15 ? 3 : A > 31 ? 2 : 1;
|
|
4065
|
+
if (B === 6 * 2)
|
|
4066
|
+
return A > 15 ? 3 : 2;
|
|
4067
|
+
if (B === 6 * 3)
|
|
4070
4068
|
return 3;
|
|
4071
4069
|
throw new Error();
|
|
4072
4070
|
}
|
|
4073
|
-
for (var g = 65533,
|
|
4074
|
-
var
|
|
4075
|
-
|
|
4071
|
+
for (var g = 65533, C = "", c = this.bitsNeeded, p = this.codePoint, E = 0; E < h.length; E += 1) {
|
|
4072
|
+
var v = h[E];
|
|
4073
|
+
c !== 0 && (v < 128 || v > 191 || !y(p << 6 | v & 63, c - 6, w(c, p))) && (c = 0, p = g, C += String.fromCharCode(p)), c === 0 ? (v >= 0 && v <= 127 ? (c = 0, p = v) : v >= 192 && v <= 223 ? (c = 6 * 1, p = v & 31) : v >= 224 && v <= 239 ? (c = 6 * 2, p = v & 15) : v >= 240 && v <= 247 ? (c = 6 * 3, p = v & 7) : (c = 0, p = g), c !== 0 && !y(p, c, w(c, p)) && (c = 0, p = g)) : (c -= 6, p = p << 6 | v & 63), c === 0 && (p <= 65535 ? C += String.fromCharCode(p) : (C += String.fromCharCode(55296 + (p - 65535 - 1 >> 10)), C += String.fromCharCode(56320 + (p - 65535 - 1 & 1023))));
|
|
4076
4074
|
}
|
|
4077
|
-
return this.bitsNeeded =
|
|
4075
|
+
return this.bitsNeeded = c, this.codePoint = p, C;
|
|
4078
4076
|
};
|
|
4079
4077
|
var V = function() {
|
|
4080
4078
|
try {
|
|
4081
|
-
return new S().decode(new
|
|
4079
|
+
return new S().decode(new _().encode("test"), { stream: !0 }) === "test";
|
|
4082
4080
|
} catch (h) {
|
|
4083
4081
|
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
|
|
4084
4082
|
}
|
|
4085
4083
|
return !1;
|
|
4086
4084
|
};
|
|
4087
|
-
(S == null ||
|
|
4088
|
-
var
|
|
4085
|
+
(S == null || _ == null || !V()) && (S = W);
|
|
4086
|
+
var L = function() {
|
|
4089
4087
|
};
|
|
4090
|
-
function
|
|
4091
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress =
|
|
4088
|
+
function U(h) {
|
|
4089
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = L, this.onload = L, this.onerror = L, this.onreadystatechange = L, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = L;
|
|
4092
4090
|
}
|
|
4093
|
-
|
|
4091
|
+
U.prototype.open = function(h, y) {
|
|
4094
4092
|
this._abort(!0);
|
|
4095
|
-
var
|
|
4096
|
-
this._abort = function(
|
|
4097
|
-
|
|
4093
|
+
var w = this, g = this._xhr, C = 1, c = 0;
|
|
4094
|
+
this._abort = function(d) {
|
|
4095
|
+
w._sendTimeout !== 0 && (i(w._sendTimeout), w._sendTimeout = 0), (C === 1 || C === 2 || C === 3) && (C = 4, g.onload = L, g.onerror = L, g.onabort = L, g.onprogress = L, g.onreadystatechange = L, g.abort(), c !== 0 && (i(c), c = 0), d || (w.readyState = 4, w.onabort(null), w.onreadystatechange())), C = 0;
|
|
4098
4096
|
};
|
|
4099
4097
|
var p = function() {
|
|
4100
|
-
if (
|
|
4101
|
-
var
|
|
4098
|
+
if (C === 1) {
|
|
4099
|
+
var d = 0, H = "", J = void 0;
|
|
4102
4100
|
if ("contentType" in g)
|
|
4103
|
-
|
|
4101
|
+
d = 200, H = "OK", J = g.contentType;
|
|
4104
4102
|
else
|
|
4105
4103
|
try {
|
|
4106
|
-
|
|
4107
|
-
} catch (
|
|
4108
|
-
|
|
4104
|
+
d = g.status, H = g.statusText, J = g.getResponseHeader("Content-Type");
|
|
4105
|
+
} catch (pe) {
|
|
4106
|
+
d = 0, H = "", J = void 0;
|
|
4109
4107
|
}
|
|
4110
|
-
|
|
4108
|
+
d !== 0 && (C = 2, w.readyState = 2, w.status = d, w.statusText = H, w._contentType = J, w.onreadystatechange());
|
|
4111
4109
|
}
|
|
4112
|
-
},
|
|
4113
|
-
if (p(),
|
|
4114
|
-
|
|
4115
|
-
var
|
|
4110
|
+
}, E = function() {
|
|
4111
|
+
if (p(), C === 2 || C === 3) {
|
|
4112
|
+
C = 3;
|
|
4113
|
+
var d = "";
|
|
4116
4114
|
try {
|
|
4117
|
-
|
|
4118
|
-
} catch (
|
|
4115
|
+
d = g.responseText;
|
|
4116
|
+
} catch (H) {
|
|
4119
4117
|
}
|
|
4120
|
-
|
|
4118
|
+
w.readyState = 3, w.responseText = d, w.onprogress();
|
|
4121
4119
|
}
|
|
4122
|
-
},
|
|
4123
|
-
if ((
|
|
4124
|
-
preventDefault:
|
|
4125
|
-
}),
|
|
4126
|
-
if (
|
|
4127
|
-
|
|
4128
|
-
else if (
|
|
4129
|
-
|
|
4130
|
-
else if (
|
|
4131
|
-
|
|
4120
|
+
}, v = function(d, H) {
|
|
4121
|
+
if ((H == null || H.preventDefault == null) && (H = {
|
|
4122
|
+
preventDefault: L
|
|
4123
|
+
}), E(), C === 1 || C === 2 || C === 3) {
|
|
4124
|
+
if (C = 4, c !== 0 && (i(c), c = 0), w.readyState = 4, d === "load")
|
|
4125
|
+
w.onload(H);
|
|
4126
|
+
else if (d === "error")
|
|
4127
|
+
w.onerror(H);
|
|
4128
|
+
else if (d === "abort")
|
|
4129
|
+
w.onabort(H);
|
|
4132
4130
|
else
|
|
4133
4131
|
throw new TypeError();
|
|
4134
|
-
|
|
4132
|
+
w.onreadystatechange();
|
|
4135
4133
|
}
|
|
4136
|
-
},
|
|
4137
|
-
g != null && (g.readyState === 4 ? (!("onload" in g) || !("onerror" in g) || !("onabort" in g)) &&
|
|
4138
|
-
},
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
}, 500), g.readyState === 3 &&
|
|
4134
|
+
}, B = function(d) {
|
|
4135
|
+
g != null && (g.readyState === 4 ? (!("onload" in g) || !("onerror" in g) || !("onabort" in g)) && v(g.responseText === "" ? "error" : "load", d) : g.readyState === 3 ? "onprogress" in g || E() : g.readyState === 2 && p());
|
|
4136
|
+
}, A = function() {
|
|
4137
|
+
c = r(function() {
|
|
4138
|
+
A();
|
|
4139
|
+
}, 500), g.readyState === 3 && E();
|
|
4142
4140
|
};
|
|
4143
|
-
"onload" in g && (g.onload = function(
|
|
4144
|
-
|
|
4145
|
-
}), "onerror" in g && (g.onerror = function(
|
|
4146
|
-
|
|
4147
|
-
}), "onabort" in g && (g.onabort = function(
|
|
4148
|
-
|
|
4149
|
-
}), "onprogress" in g && (g.onprogress =
|
|
4150
|
-
|
|
4151
|
-
}), ("contentType" in g || !("ontimeout" in o.prototype)) && (y += (y.indexOf("?") === -1 ? "?" : "&") + "padding=true"), g.open(h, y, !0), "readyState" in g && (
|
|
4152
|
-
|
|
4141
|
+
"onload" in g && (g.onload = function(d) {
|
|
4142
|
+
v("load", d);
|
|
4143
|
+
}), "onerror" in g && (g.onerror = function(d) {
|
|
4144
|
+
v("error", d);
|
|
4145
|
+
}), "onabort" in g && (g.onabort = function(d) {
|
|
4146
|
+
v("abort", d);
|
|
4147
|
+
}), "onprogress" in g && (g.onprogress = E), "onreadystatechange" in g && (g.onreadystatechange = function(d) {
|
|
4148
|
+
B(d);
|
|
4149
|
+
}), ("contentType" in g || !("ontimeout" in o.prototype)) && (y += (y.indexOf("?") === -1 ? "?" : "&") + "padding=true"), g.open(h, y, !0), "readyState" in g && (c = r(function() {
|
|
4150
|
+
A();
|
|
4153
4151
|
}, 0));
|
|
4154
|
-
},
|
|
4152
|
+
}, U.prototype.abort = function() {
|
|
4155
4153
|
this._abort(!1);
|
|
4156
|
-
},
|
|
4154
|
+
}, U.prototype.getResponseHeader = function(h) {
|
|
4157
4155
|
return this._contentType;
|
|
4158
|
-
},
|
|
4159
|
-
var
|
|
4160
|
-
"setRequestHeader" in
|
|
4161
|
-
},
|
|
4156
|
+
}, U.prototype.setRequestHeader = function(h, y) {
|
|
4157
|
+
var w = this._xhr;
|
|
4158
|
+
"setRequestHeader" in w && w.setRequestHeader(h, y);
|
|
4159
|
+
}, U.prototype.getAllResponseHeaders = function() {
|
|
4162
4160
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4163
|
-
},
|
|
4164
|
-
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) &&
|
|
4161
|
+
}, U.prototype.send = function() {
|
|
4162
|
+
if ((!("ontimeout" in o.prototype) || !("sendAsBinary" in o.prototype) && !("mozAnon" in o.prototype)) && l != null && l.readyState != null && l.readyState !== "complete") {
|
|
4165
4163
|
var h = this;
|
|
4166
4164
|
h._sendTimeout = r(function() {
|
|
4167
4165
|
h._sendTimeout = 0, h.send();
|
|
@@ -4172,293 +4170,293 @@ var sn = { exports: {} };
|
|
|
4172
4170
|
"withCredentials" in y && (y.withCredentials = this.withCredentials);
|
|
4173
4171
|
try {
|
|
4174
4172
|
y.send(void 0);
|
|
4175
|
-
} catch (
|
|
4176
|
-
throw
|
|
4173
|
+
} catch (w) {
|
|
4174
|
+
throw w;
|
|
4177
4175
|
}
|
|
4178
4176
|
};
|
|
4179
|
-
function
|
|
4177
|
+
function Q(h) {
|
|
4180
4178
|
return h.replace(/[A-Z]/g, function(y) {
|
|
4181
4179
|
return String.fromCharCode(y.charCodeAt(0) + 32);
|
|
4182
4180
|
});
|
|
4183
4181
|
}
|
|
4184
|
-
function
|
|
4185
|
-
for (var y = /* @__PURE__ */ Object.create(null),
|
|
4186
|
-
`), g = 0; g <
|
|
4187
|
-
var
|
|
4188
|
-
y[
|
|
4182
|
+
function Z(h) {
|
|
4183
|
+
for (var y = /* @__PURE__ */ Object.create(null), w = h.split(`\r
|
|
4184
|
+
`), g = 0; g < w.length; g += 1) {
|
|
4185
|
+
var C = w[g], c = C.split(": "), p = c.shift(), E = c.join(": ");
|
|
4186
|
+
y[Q(p)] = E;
|
|
4189
4187
|
}
|
|
4190
4188
|
this._map = y;
|
|
4191
4189
|
}
|
|
4192
|
-
|
|
4193
|
-
return this._map[
|
|
4190
|
+
Z.prototype.get = function(h) {
|
|
4191
|
+
return this._map[Q(h)];
|
|
4194
4192
|
}, o != null && o.HEADERS_RECEIVED == null && (o.HEADERS_RECEIVED = 2);
|
|
4195
|
-
function
|
|
4193
|
+
function ee() {
|
|
4196
4194
|
}
|
|
4197
|
-
|
|
4198
|
-
h.open("GET",
|
|
4199
|
-
var
|
|
4195
|
+
ee.prototype.open = function(h, y, w, g, C, c, p) {
|
|
4196
|
+
h.open("GET", C);
|
|
4197
|
+
var E = 0;
|
|
4200
4198
|
h.onprogress = function() {
|
|
4201
|
-
var
|
|
4202
|
-
|
|
4203
|
-
}, h.onerror = function(
|
|
4204
|
-
|
|
4199
|
+
var B = h.responseText, A = B.slice(E);
|
|
4200
|
+
E += A.length, w(A);
|
|
4201
|
+
}, h.onerror = function(B) {
|
|
4202
|
+
B.preventDefault(), g(new Error("NetworkError"));
|
|
4205
4203
|
}, h.onload = function() {
|
|
4206
4204
|
g(null);
|
|
4207
4205
|
}, h.onabort = function() {
|
|
4208
4206
|
g(null);
|
|
4209
4207
|
}, h.onreadystatechange = function() {
|
|
4210
4208
|
if (h.readyState === o.HEADERS_RECEIVED) {
|
|
4211
|
-
var
|
|
4212
|
-
y(
|
|
4209
|
+
var B = h.status, A = h.statusText, d = h.getResponseHeader("Content-Type"), H = h.getAllResponseHeaders();
|
|
4210
|
+
y(B, A, d, new Z(H));
|
|
4213
4211
|
}
|
|
4214
|
-
}, h.withCredentials =
|
|
4215
|
-
for (var
|
|
4216
|
-
Object.prototype.hasOwnProperty.call(p,
|
|
4212
|
+
}, h.withCredentials = c;
|
|
4213
|
+
for (var v in p)
|
|
4214
|
+
Object.prototype.hasOwnProperty.call(p, v) && h.setRequestHeader(v, p[v]);
|
|
4217
4215
|
return h.send(), h;
|
|
4218
4216
|
};
|
|
4219
|
-
function
|
|
4217
|
+
function F(h) {
|
|
4220
4218
|
this._headers = h;
|
|
4221
4219
|
}
|
|
4222
|
-
|
|
4220
|
+
F.prototype.get = function(h) {
|
|
4223
4221
|
return this._headers.get(h);
|
|
4224
4222
|
};
|
|
4225
|
-
function
|
|
4223
|
+
function D() {
|
|
4226
4224
|
}
|
|
4227
|
-
|
|
4228
|
-
var
|
|
4229
|
-
return b(
|
|
4225
|
+
D.prototype.open = function(h, y, w, g, C, c, p) {
|
|
4226
|
+
var E = null, v = new T(), B = v.signal, A = new S();
|
|
4227
|
+
return b(C, {
|
|
4230
4228
|
headers: p,
|
|
4231
|
-
credentials:
|
|
4232
|
-
signal:
|
|
4229
|
+
credentials: c ? "include" : "same-origin",
|
|
4230
|
+
signal: B,
|
|
4233
4231
|
cache: "no-store"
|
|
4234
|
-
}).then(function(
|
|
4235
|
-
return
|
|
4236
|
-
var
|
|
4237
|
-
|
|
4238
|
-
if (
|
|
4239
|
-
|
|
4232
|
+
}).then(function(d) {
|
|
4233
|
+
return E = d.body.getReader(), y(d.status, d.statusText, d.headers.get("Content-Type"), new F(d.headers)), new f(function(H, J) {
|
|
4234
|
+
var pe = function() {
|
|
4235
|
+
E.read().then(function(ne) {
|
|
4236
|
+
if (ne.done)
|
|
4237
|
+
H(void 0);
|
|
4240
4238
|
else {
|
|
4241
|
-
var
|
|
4242
|
-
|
|
4239
|
+
var $ = A.decode(ne.value, { stream: !0 });
|
|
4240
|
+
w($), pe();
|
|
4243
4241
|
}
|
|
4244
|
-
}).catch(function(
|
|
4245
|
-
|
|
4242
|
+
}).catch(function(ne) {
|
|
4243
|
+
J(ne);
|
|
4246
4244
|
});
|
|
4247
4245
|
};
|
|
4248
|
-
|
|
4246
|
+
pe();
|
|
4249
4247
|
});
|
|
4250
|
-
}).catch(function(
|
|
4251
|
-
if (
|
|
4252
|
-
return
|
|
4253
|
-
}).then(function(
|
|
4254
|
-
g(
|
|
4248
|
+
}).catch(function(d) {
|
|
4249
|
+
if (d.name !== "AbortError")
|
|
4250
|
+
return d;
|
|
4251
|
+
}).then(function(d) {
|
|
4252
|
+
g(d);
|
|
4255
4253
|
}), {
|
|
4256
4254
|
abort: function() {
|
|
4257
|
-
|
|
4255
|
+
E != null && E.cancel(), v.abort();
|
|
4258
4256
|
}
|
|
4259
4257
|
};
|
|
4260
4258
|
};
|
|
4261
|
-
function
|
|
4259
|
+
function X() {
|
|
4262
4260
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4263
4261
|
}
|
|
4264
|
-
function
|
|
4262
|
+
function k(h) {
|
|
4265
4263
|
r(function() {
|
|
4266
4264
|
throw h;
|
|
4267
4265
|
}, 0);
|
|
4268
4266
|
}
|
|
4269
|
-
|
|
4267
|
+
X.prototype.dispatchEvent = function(h) {
|
|
4270
4268
|
h.target = this;
|
|
4271
4269
|
var y = this._listeners[h.type];
|
|
4272
4270
|
if (y != null)
|
|
4273
|
-
for (var
|
|
4274
|
-
var
|
|
4271
|
+
for (var w = y.length, g = 0; g < w; g += 1) {
|
|
4272
|
+
var C = y[g];
|
|
4275
4273
|
try {
|
|
4276
|
-
typeof
|
|
4277
|
-
} catch (
|
|
4278
|
-
|
|
4274
|
+
typeof C.handleEvent == "function" ? C.handleEvent(h) : C.call(this, h);
|
|
4275
|
+
} catch (c) {
|
|
4276
|
+
k(c);
|
|
4279
4277
|
}
|
|
4280
4278
|
}
|
|
4281
|
-
},
|
|
4279
|
+
}, X.prototype.addEventListener = function(h, y) {
|
|
4282
4280
|
h = String(h);
|
|
4283
|
-
var
|
|
4284
|
-
g == null && (g = [],
|
|
4285
|
-
for (var
|
|
4286
|
-
g[
|
|
4287
|
-
|
|
4288
|
-
},
|
|
4281
|
+
var w = this._listeners, g = w[h];
|
|
4282
|
+
g == null && (g = [], w[h] = g);
|
|
4283
|
+
for (var C = !1, c = 0; c < g.length; c += 1)
|
|
4284
|
+
g[c] === y && (C = !0);
|
|
4285
|
+
C || g.push(y);
|
|
4286
|
+
}, X.prototype.removeEventListener = function(h, y) {
|
|
4289
4287
|
h = String(h);
|
|
4290
|
-
var
|
|
4288
|
+
var w = this._listeners, g = w[h];
|
|
4291
4289
|
if (g != null) {
|
|
4292
|
-
for (var
|
|
4293
|
-
g[
|
|
4294
|
-
|
|
4290
|
+
for (var C = [], c = 0; c < g.length; c += 1)
|
|
4291
|
+
g[c] !== y && C.push(g[c]);
|
|
4292
|
+
C.length === 0 ? delete w[h] : w[h] = C;
|
|
4295
4293
|
}
|
|
4296
4294
|
};
|
|
4297
|
-
function
|
|
4295
|
+
function te(h) {
|
|
4298
4296
|
this.type = h, this.target = void 0;
|
|
4299
4297
|
}
|
|
4300
|
-
function
|
|
4301
|
-
|
|
4298
|
+
function ve(h, y) {
|
|
4299
|
+
te.call(this, h), this.data = y.data, this.lastEventId = y.lastEventId;
|
|
4302
4300
|
}
|
|
4303
|
-
|
|
4304
|
-
function
|
|
4305
|
-
|
|
4301
|
+
ve.prototype = Object.create(te.prototype);
|
|
4302
|
+
function ce(h, y) {
|
|
4303
|
+
te.call(this, h), this.status = y.status, this.statusText = y.statusText, this.headers = y.headers;
|
|
4306
4304
|
}
|
|
4307
|
-
|
|
4308
|
-
function
|
|
4309
|
-
|
|
4305
|
+
ce.prototype = Object.create(te.prototype);
|
|
4306
|
+
function Ce(h, y) {
|
|
4307
|
+
te.call(this, h), this.error = y.error;
|
|
4310
4308
|
}
|
|
4311
|
-
|
|
4312
|
-
var
|
|
4313
|
-
var
|
|
4314
|
-
return
|
|
4315
|
-
},
|
|
4316
|
-
return Math.min(Math.max(h,
|
|
4317
|
-
},
|
|
4309
|
+
Ce.prototype = Object.create(te.prototype);
|
|
4310
|
+
var x = -1, ae = 0, He = 1, de = 2, Ye = -1, ge = 0, Qe = 1, lt = 2, Je = 3, ut = /^text\/event\-stream(;.*)?$/i, Ht = 1e3, Ke = 18e6, Pe = function(h, y) {
|
|
4311
|
+
var w = h == null ? y : parseInt(h, 10);
|
|
4312
|
+
return w !== w && (w = y), et(w);
|
|
4313
|
+
}, et = function(h) {
|
|
4314
|
+
return Math.min(Math.max(h, Ht), Ke);
|
|
4315
|
+
}, Ee = function(h, y, w) {
|
|
4318
4316
|
try {
|
|
4319
|
-
typeof y == "function" && y.call(h,
|
|
4317
|
+
typeof y == "function" && y.call(h, w);
|
|
4320
4318
|
} catch (g) {
|
|
4321
|
-
|
|
4319
|
+
k(g);
|
|
4322
4320
|
}
|
|
4323
4321
|
};
|
|
4324
|
-
function
|
|
4325
|
-
|
|
4322
|
+
function se(h, y) {
|
|
4323
|
+
X.call(this), y = y || {}, this.onopen = void 0, this.onmessage = void 0, this.onerror = void 0, this.url = void 0, this.readyState = void 0, this.withCredentials = void 0, this.headers = void 0, this._close = void 0, ct(this, h, y);
|
|
4326
4324
|
}
|
|
4327
4325
|
function Ot() {
|
|
4328
|
-
return o != null && "withCredentials" in o.prototype ||
|
|
4326
|
+
return o != null && "withCredentials" in o.prototype || s == null ? new o() : new s();
|
|
4329
4327
|
}
|
|
4330
|
-
var
|
|
4331
|
-
function
|
|
4328
|
+
var Mt = b != null && m != null && "body" in m.prototype;
|
|
4329
|
+
function ct(h, y, w) {
|
|
4332
4330
|
y = String(y);
|
|
4333
|
-
var g = !!
|
|
4334
|
-
if (
|
|
4335
|
-
if (
|
|
4336
|
-
|
|
4337
|
-
var
|
|
4338
|
-
status:
|
|
4331
|
+
var g = !!w.withCredentials, C = w.lastEventIdQueryParameterName || "lastEventId", c = et(1e3), p = Pe(w.heartbeatTimeout, 45e3), E = "", v = c, B = !1, A = 0, d = w.headers || {}, H = w.Transport, J = Mt && H == null ? void 0 : new U(H != null ? new H() : Ot()), pe = H != null && typeof H != "string" ? new H() : J == null ? new D() : new ee(), ne = void 0, $ = 0, me = x, Ie = "", ft = "", _e = "", dt = "", re = ge, Rt = 0, Me = 0, Mr = function(q, z, le, ue) {
|
|
4332
|
+
if (me === ae)
|
|
4333
|
+
if (q === 200 && le != null && ut.test(le)) {
|
|
4334
|
+
me = He, B = Date.now(), v = c, h.readyState = He;
|
|
4335
|
+
var ie = new ce("open", {
|
|
4336
|
+
status: q,
|
|
4339
4337
|
statusText: z,
|
|
4340
4338
|
headers: ue
|
|
4341
4339
|
});
|
|
4342
|
-
h.dispatchEvent(
|
|
4340
|
+
h.dispatchEvent(ie), Ee(h, h.onopen, ie);
|
|
4343
4341
|
} else {
|
|
4344
|
-
var
|
|
4345
|
-
|
|
4346
|
-
var
|
|
4347
|
-
status:
|
|
4342
|
+
var K = "";
|
|
4343
|
+
q !== 200 ? (z && (z = z.replace(/\s+/g, " ")), K = "EventSource's response has a status " + q + " " + z + " that is not 200. Aborting the connection.") : K = "EventSource's response has a Content-Type specifying an unsupported type: " + (le == null ? "-" : le.replace(/\s+/g, " ")) + ". Aborting the connection.", Lt();
|
|
4344
|
+
var ie = new ce("error", {
|
|
4345
|
+
status: q,
|
|
4348
4346
|
statusText: z,
|
|
4349
4347
|
headers: ue
|
|
4350
4348
|
});
|
|
4351
|
-
h.dispatchEvent(
|
|
4349
|
+
h.dispatchEvent(ie), Ee(h, h.onerror, ie), console.error(K);
|
|
4352
4350
|
}
|
|
4353
|
-
},
|
|
4354
|
-
if (
|
|
4355
|
-
for (var z = -1,
|
|
4356
|
-
var ue =
|
|
4357
|
-
(ue === 10 || ue === 13) && (z =
|
|
4351
|
+
}, Rr = function(q) {
|
|
4352
|
+
if (me === He) {
|
|
4353
|
+
for (var z = -1, le = 0; le < q.length; le += 1) {
|
|
4354
|
+
var ue = q.charCodeAt(le);
|
|
4355
|
+
(ue === 10 || ue === 13) && (z = le);
|
|
4358
4356
|
}
|
|
4359
|
-
var
|
|
4360
|
-
dt = (z === -1 ? dt : "") +
|
|
4361
|
-
for (var
|
|
4362
|
-
var ue =
|
|
4363
|
-
if (
|
|
4364
|
-
|
|
4365
|
-
else if (
|
|
4366
|
-
if (
|
|
4367
|
-
|
|
4368
|
-
var
|
|
4369
|
-
|
|
4370
|
-
`, Ie +=
|
|
4357
|
+
var ie = (z !== -1 ? dt : "") + q.slice(0, z + 1);
|
|
4358
|
+
dt = (z === -1 ? dt : "") + q.slice(z + 1), q !== "" && (B = Date.now(), A += q.length);
|
|
4359
|
+
for (var K = 0; K < ie.length; K += 1) {
|
|
4360
|
+
var ue = ie.charCodeAt(K);
|
|
4361
|
+
if (re === Ye && ue === 10)
|
|
4362
|
+
re = ge;
|
|
4363
|
+
else if (re === Ye && (re = ge), ue === 13 || ue === 10) {
|
|
4364
|
+
if (re !== ge) {
|
|
4365
|
+
re === Qe && (Me = K + 1);
|
|
4366
|
+
var xe = ie.slice(Rt, Me - 1), we = ie.slice(Me + (Me < K && ie.charCodeAt(Me) === 32 ? 1 : 0), K);
|
|
4367
|
+
xe === "data" ? (Ie += `
|
|
4368
|
+
`, Ie += we) : xe === "id" ? ft = we : xe === "event" ? _e = we : xe === "retry" ? (c = Pe(we, c), v = c) : xe === "heartbeatTimeout" && (p = Pe(we, p), $ !== 0 && (i($), $ = r(function() {
|
|
4371
4369
|
tt();
|
|
4372
4370
|
}, p)));
|
|
4373
4371
|
}
|
|
4374
|
-
if (
|
|
4372
|
+
if (re === ge) {
|
|
4375
4373
|
if (Ie !== "") {
|
|
4376
|
-
|
|
4377
|
-
var
|
|
4374
|
+
E = ft, _e === "" && (_e = "message");
|
|
4375
|
+
var Ne = new ve(_e, {
|
|
4378
4376
|
data: Ie.slice(1),
|
|
4379
4377
|
lastEventId: ft
|
|
4380
4378
|
});
|
|
4381
|
-
if (h.dispatchEvent(
|
|
4379
|
+
if (h.dispatchEvent(Ne), _e === "open" ? Ee(h, h.onopen, Ne) : _e === "message" ? Ee(h, h.onmessage, Ne) : _e === "error" && Ee(h, h.onerror, Ne), me === de)
|
|
4382
4380
|
return;
|
|
4383
4381
|
}
|
|
4384
|
-
Ie = "",
|
|
4382
|
+
Ie = "", _e = "";
|
|
4385
4383
|
}
|
|
4386
|
-
|
|
4384
|
+
re = ue === 13 ? Ye : ge;
|
|
4387
4385
|
} else
|
|
4388
|
-
|
|
4386
|
+
re === ge && (Rt = K, re = Qe), re === Qe ? ue === 58 && (Me = K + 1, re = lt) : re === lt && (re = Je);
|
|
4389
4387
|
}
|
|
4390
4388
|
}
|
|
4391
|
-
},
|
|
4392
|
-
if (
|
|
4393
|
-
|
|
4389
|
+
}, bn = function(q) {
|
|
4390
|
+
if (me === He || me === ae) {
|
|
4391
|
+
me = x, $ !== 0 && (i($), $ = 0), $ = r(function() {
|
|
4394
4392
|
tt();
|
|
4395
|
-
},
|
|
4396
|
-
var z = new
|
|
4397
|
-
h.dispatchEvent(z),
|
|
4393
|
+
}, v), v = et(Math.min(c * 16, v * 2)), h.readyState = ae;
|
|
4394
|
+
var z = new Ce("error", { error: q });
|
|
4395
|
+
h.dispatchEvent(z), Ee(h, h.onerror, z), q != null && console.error(q);
|
|
4398
4396
|
}
|
|
4399
4397
|
}, Lt = function() {
|
|
4400
|
-
|
|
4398
|
+
me = de, ne != null && (ne.abort(), ne = void 0), $ !== 0 && (i($), $ = 0), h.readyState = de;
|
|
4401
4399
|
}, tt = function() {
|
|
4402
|
-
if (
|
|
4403
|
-
if (!
|
|
4404
|
-
|
|
4400
|
+
if ($ = 0, me !== x) {
|
|
4401
|
+
if (!B && ne != null)
|
|
4402
|
+
bn(new Error("No activity within " + p + " milliseconds. " + (me === ae ? "No response received." : A + " chars received.") + " Reconnecting.")), ne != null && (ne.abort(), ne = void 0);
|
|
4405
4403
|
else {
|
|
4406
|
-
var
|
|
4407
|
-
|
|
4404
|
+
var q = Math.max((B || Date.now()) + p - Date.now(), 1);
|
|
4405
|
+
B = !1, $ = r(function() {
|
|
4408
4406
|
tt();
|
|
4409
|
-
},
|
|
4407
|
+
}, q);
|
|
4410
4408
|
}
|
|
4411
4409
|
return;
|
|
4412
4410
|
}
|
|
4413
|
-
|
|
4411
|
+
B = !1, A = 0, $ = r(function() {
|
|
4414
4412
|
tt();
|
|
4415
|
-
}, p),
|
|
4413
|
+
}, p), me = ae, Ie = "", _e = "", ft = E, dt = "", Rt = 0, Me = 0, re = ge;
|
|
4416
4414
|
var z = y;
|
|
4417
|
-
if (y.slice(0, 5) !== "data:" && y.slice(0, 5) !== "blob:" &&
|
|
4418
|
-
var
|
|
4419
|
-
z =
|
|
4420
|
-
return
|
|
4421
|
-
}), z += (y.indexOf("?") === -1 ? "?" : "&") +
|
|
4415
|
+
if (y.slice(0, 5) !== "data:" && y.slice(0, 5) !== "blob:" && E !== "") {
|
|
4416
|
+
var le = y.indexOf("?");
|
|
4417
|
+
z = le === -1 ? y : y.slice(0, le + 1) + y.slice(le + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(we, Ne) {
|
|
4418
|
+
return Ne === C ? "" : we;
|
|
4419
|
+
}), z += (y.indexOf("?") === -1 ? "?" : "&") + C + "=" + encodeURIComponent(E);
|
|
4422
4420
|
}
|
|
4423
|
-
var ue = h.withCredentials,
|
|
4424
|
-
|
|
4425
|
-
var
|
|
4426
|
-
if (
|
|
4427
|
-
for (var
|
|
4428
|
-
Object.prototype.hasOwnProperty.call(
|
|
4421
|
+
var ue = h.withCredentials, ie = {};
|
|
4422
|
+
ie.Accept = "text/event-stream";
|
|
4423
|
+
var K = h.headers;
|
|
4424
|
+
if (K != null)
|
|
4425
|
+
for (var xe in K)
|
|
4426
|
+
Object.prototype.hasOwnProperty.call(K, xe) && (ie[xe] = K[xe]);
|
|
4429
4427
|
try {
|
|
4430
|
-
|
|
4431
|
-
} catch (
|
|
4432
|
-
throw Lt(),
|
|
4428
|
+
ne = pe.open(J, Mr, Rr, bn, z, ue, ie);
|
|
4429
|
+
} catch (we) {
|
|
4430
|
+
throw Lt(), we;
|
|
4433
4431
|
}
|
|
4434
4432
|
};
|
|
4435
|
-
h.url = y, h.readyState =
|
|
4433
|
+
h.url = y, h.readyState = ae, h.withCredentials = g, h.headers = d, h._close = Lt, tt();
|
|
4436
4434
|
}
|
|
4437
|
-
|
|
4435
|
+
se.prototype = Object.create(X.prototype), se.prototype.CONNECTING = ae, se.prototype.OPEN = He, se.prototype.CLOSED = de, se.prototype.close = function() {
|
|
4438
4436
|
this._close();
|
|
4439
|
-
},
|
|
4440
|
-
var ht =
|
|
4441
|
-
o != null && (
|
|
4437
|
+
}, se.CONNECTING = ae, se.OPEN = He, se.CLOSED = de, se.prototype.withCredentials = void 0;
|
|
4438
|
+
var ht = u;
|
|
4439
|
+
o != null && (u == null || !("withCredentials" in u.prototype)) && (ht = se), function(h) {
|
|
4442
4440
|
{
|
|
4443
4441
|
var y = h(t);
|
|
4444
4442
|
y !== void 0 && (e.exports = y);
|
|
4445
4443
|
}
|
|
4446
4444
|
}(function(h) {
|
|
4447
|
-
h.EventSourcePolyfill =
|
|
4445
|
+
h.EventSourcePolyfill = se, h.NativeEventSource = u, h.EventSource = ht;
|
|
4448
4446
|
});
|
|
4449
|
-
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self :
|
|
4450
|
-
})(
|
|
4451
|
-
var
|
|
4452
|
-
function
|
|
4447
|
+
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : hi : globalThis);
|
|
4448
|
+
})(ln, ln.exports);
|
|
4449
|
+
var ea = ln.exports;
|
|
4450
|
+
function Be(e) {
|
|
4453
4451
|
return typeof e == "function";
|
|
4454
4452
|
}
|
|
4455
|
-
function
|
|
4453
|
+
function Sr(e) {
|
|
4456
4454
|
var t = function(r) {
|
|
4457
4455
|
Error.call(r), r.stack = new Error().stack;
|
|
4458
4456
|
}, n = e(t);
|
|
4459
4457
|
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
4460
4458
|
}
|
|
4461
|
-
var Xt =
|
|
4459
|
+
var Xt = Sr(function(e) {
|
|
4462
4460
|
return function(n) {
|
|
4463
4461
|
e(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
4464
4462
|
` + n.map(function(r, i) {
|
|
@@ -4481,47 +4479,47 @@ var Ct = function() {
|
|
|
4481
4479
|
var t, n, r, i, o;
|
|
4482
4480
|
if (!this.closed) {
|
|
4483
4481
|
this.closed = !0;
|
|
4484
|
-
var
|
|
4485
|
-
if (
|
|
4486
|
-
if (this._parentage = null, Array.isArray(
|
|
4482
|
+
var s = this._parentage;
|
|
4483
|
+
if (s)
|
|
4484
|
+
if (this._parentage = null, Array.isArray(s))
|
|
4487
4485
|
try {
|
|
4488
|
-
for (var
|
|
4489
|
-
var
|
|
4490
|
-
|
|
4486
|
+
for (var a = Qt(s), u = a.next(); !u.done; u = a.next()) {
|
|
4487
|
+
var l = u.value;
|
|
4488
|
+
l.remove(this);
|
|
4491
4489
|
}
|
|
4492
|
-
} catch (
|
|
4493
|
-
t = { error:
|
|
4490
|
+
} catch (T) {
|
|
4491
|
+
t = { error: T };
|
|
4494
4492
|
} finally {
|
|
4495
4493
|
try {
|
|
4496
|
-
|
|
4494
|
+
u && !u.done && (n = a.return) && n.call(a);
|
|
4497
4495
|
} finally {
|
|
4498
4496
|
if (t)
|
|
4499
4497
|
throw t.error;
|
|
4500
4498
|
}
|
|
4501
4499
|
}
|
|
4502
4500
|
else
|
|
4503
|
-
|
|
4501
|
+
s.remove(this);
|
|
4504
4502
|
var f = this.initialTeardown;
|
|
4505
|
-
if (
|
|
4503
|
+
if (Be(f))
|
|
4506
4504
|
try {
|
|
4507
4505
|
f();
|
|
4508
|
-
} catch (
|
|
4509
|
-
o =
|
|
4506
|
+
} catch (T) {
|
|
4507
|
+
o = T instanceof Xt ? T.errors : [T];
|
|
4510
4508
|
}
|
|
4511
4509
|
var b = this._finalizers;
|
|
4512
4510
|
if (b) {
|
|
4513
4511
|
this._finalizers = null;
|
|
4514
4512
|
try {
|
|
4515
|
-
for (var m =
|
|
4516
|
-
var
|
|
4513
|
+
for (var m = Qt(b), S = m.next(); !S.done; S = m.next()) {
|
|
4514
|
+
var _ = S.value;
|
|
4517
4515
|
try {
|
|
4518
|
-
|
|
4519
|
-
} catch (
|
|
4520
|
-
o = o != null ? o : [],
|
|
4516
|
+
Nn(_);
|
|
4517
|
+
} catch (T) {
|
|
4518
|
+
o = o != null ? o : [], T instanceof Xt ? o = je(je([], Jt(o)), Jt(T.errors)) : o.push(T);
|
|
4521
4519
|
}
|
|
4522
4520
|
}
|
|
4523
|
-
} catch (
|
|
4524
|
-
r = { error:
|
|
4521
|
+
} catch (T) {
|
|
4522
|
+
r = { error: T };
|
|
4525
4523
|
} finally {
|
|
4526
4524
|
try {
|
|
4527
4525
|
S && !S.done && (i = m.return) && i.call(m);
|
|
@@ -4538,7 +4536,7 @@ var Ct = function() {
|
|
|
4538
4536
|
var n;
|
|
4539
4537
|
if (t && t !== this)
|
|
4540
4538
|
if (this.closed)
|
|
4541
|
-
|
|
4539
|
+
Nn(t);
|
|
4542
4540
|
else {
|
|
4543
4541
|
if (t instanceof e) {
|
|
4544
4542
|
if (t.closed || t._hasParent(this))
|
|
@@ -4563,48 +4561,48 @@ var Ct = function() {
|
|
|
4563
4561
|
var t = new e();
|
|
4564
4562
|
return t.closed = !0, t;
|
|
4565
4563
|
}(), e;
|
|
4566
|
-
}(),
|
|
4567
|
-
function
|
|
4568
|
-
return e instanceof Ct || e && "closed" in e &&
|
|
4564
|
+
}(), Tr = Ct.EMPTY;
|
|
4565
|
+
function Br(e) {
|
|
4566
|
+
return e instanceof Ct || e && "closed" in e && Be(e.remove) && Be(e.add) && Be(e.unsubscribe);
|
|
4569
4567
|
}
|
|
4570
|
-
function
|
|
4571
|
-
|
|
4568
|
+
function Nn(e) {
|
|
4569
|
+
Be(e) ? e() : e.unsubscribe();
|
|
4572
4570
|
}
|
|
4573
|
-
var
|
|
4571
|
+
var Ar = {
|
|
4574
4572
|
onUnhandledError: null,
|
|
4575
4573
|
onStoppedNotification: null,
|
|
4576
4574
|
Promise: void 0,
|
|
4577
4575
|
useDeprecatedSynchronousErrorHandling: !1,
|
|
4578
4576
|
useDeprecatedNextContext: !1
|
|
4579
|
-
},
|
|
4577
|
+
}, ta = {
|
|
4580
4578
|
setTimeout: function(e, t) {
|
|
4581
4579
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
4582
4580
|
n[r - 2] = arguments[r];
|
|
4583
|
-
return setTimeout.apply(void 0,
|
|
4581
|
+
return setTimeout.apply(void 0, je([e, t], Jt(n)));
|
|
4584
4582
|
},
|
|
4585
4583
|
clearTimeout: function(e) {
|
|
4586
4584
|
return clearTimeout(e);
|
|
4587
4585
|
},
|
|
4588
4586
|
delegate: void 0
|
|
4589
4587
|
};
|
|
4590
|
-
function
|
|
4591
|
-
|
|
4588
|
+
function na(e) {
|
|
4589
|
+
ta.setTimeout(function() {
|
|
4592
4590
|
throw e;
|
|
4593
4591
|
});
|
|
4594
4592
|
}
|
|
4595
|
-
function
|
|
4593
|
+
function Dn() {
|
|
4596
4594
|
}
|
|
4597
4595
|
function vt(e) {
|
|
4598
4596
|
e();
|
|
4599
4597
|
}
|
|
4600
|
-
var
|
|
4601
|
-
|
|
4598
|
+
var Cr = function(e) {
|
|
4599
|
+
Ae(t, e);
|
|
4602
4600
|
function t(n) {
|
|
4603
4601
|
var r = e.call(this) || this;
|
|
4604
|
-
return r.isStopped = !1, n ? (r.destination = n,
|
|
4602
|
+
return r.isStopped = !1, n ? (r.destination = n, Br(n) && n.add(r)) : r.destination = aa, r;
|
|
4605
4603
|
}
|
|
4606
4604
|
return t.create = function(n, r, i) {
|
|
4607
|
-
return new
|
|
4605
|
+
return new cn(n, r, i);
|
|
4608
4606
|
}, t.prototype.next = function(n) {
|
|
4609
4607
|
this.isStopped || this._next(n);
|
|
4610
4608
|
}, t.prototype.error = function(n) {
|
|
@@ -4628,7 +4626,11 @@ var Tr = function(e) {
|
|
|
4628
4626
|
this.unsubscribe();
|
|
4629
4627
|
}
|
|
4630
4628
|
}, t;
|
|
4631
|
-
}(Ct),
|
|
4629
|
+
}(Ct), ra = Function.prototype.bind;
|
|
4630
|
+
function zt(e, t) {
|
|
4631
|
+
return ra.call(e, t);
|
|
4632
|
+
}
|
|
4633
|
+
var ia = function() {
|
|
4632
4634
|
function e(t) {
|
|
4633
4635
|
this.partialObserver = t;
|
|
4634
4636
|
}
|
|
@@ -4659,43 +4661,55 @@ var Tr = function(e) {
|
|
|
4659
4661
|
mt(n);
|
|
4660
4662
|
}
|
|
4661
4663
|
}, e;
|
|
4662
|
-
}(),
|
|
4663
|
-
|
|
4664
|
+
}(), cn = function(e) {
|
|
4665
|
+
Ae(t, e);
|
|
4664
4666
|
function t(n, r, i) {
|
|
4665
|
-
var o = e.call(this) || this,
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4667
|
+
var o = e.call(this) || this, s;
|
|
4668
|
+
if (Be(n) || !n)
|
|
4669
|
+
s = {
|
|
4670
|
+
next: n != null ? n : void 0,
|
|
4671
|
+
error: r != null ? r : void 0,
|
|
4672
|
+
complete: i != null ? i : void 0
|
|
4673
|
+
};
|
|
4674
|
+
else {
|
|
4675
|
+
var a;
|
|
4676
|
+
o && Ar.useDeprecatedNextContext ? (a = Object.create(n), a.unsubscribe = function() {
|
|
4677
|
+
return o.unsubscribe();
|
|
4678
|
+
}, s = {
|
|
4679
|
+
next: n.next && zt(n.next, a),
|
|
4680
|
+
error: n.error && zt(n.error, a),
|
|
4681
|
+
complete: n.complete && zt(n.complete, a)
|
|
4682
|
+
}) : s = n;
|
|
4683
|
+
}
|
|
4684
|
+
return o.destination = new ia(s), o;
|
|
4671
4685
|
}
|
|
4672
4686
|
return t;
|
|
4673
|
-
}(
|
|
4687
|
+
}(Cr);
|
|
4674
4688
|
function mt(e) {
|
|
4675
|
-
|
|
4689
|
+
na(e);
|
|
4676
4690
|
}
|
|
4677
|
-
function
|
|
4691
|
+
function oa(e) {
|
|
4678
4692
|
throw e;
|
|
4679
4693
|
}
|
|
4680
|
-
var
|
|
4694
|
+
var aa = {
|
|
4681
4695
|
closed: !0,
|
|
4682
|
-
next:
|
|
4683
|
-
error:
|
|
4684
|
-
complete:
|
|
4685
|
-
},
|
|
4696
|
+
next: Dn,
|
|
4697
|
+
error: oa,
|
|
4698
|
+
complete: Dn
|
|
4699
|
+
}, sa = function() {
|
|
4686
4700
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
4687
4701
|
}();
|
|
4688
|
-
function
|
|
4702
|
+
function la(e) {
|
|
4689
4703
|
return e;
|
|
4690
4704
|
}
|
|
4691
|
-
function
|
|
4692
|
-
return e.length === 0 ?
|
|
4705
|
+
function ua(e) {
|
|
4706
|
+
return e.length === 0 ? la : e.length === 1 ? e[0] : function(n) {
|
|
4693
4707
|
return e.reduce(function(r, i) {
|
|
4694
4708
|
return i(r);
|
|
4695
4709
|
}, n);
|
|
4696
4710
|
};
|
|
4697
4711
|
}
|
|
4698
|
-
var
|
|
4712
|
+
var Un = function() {
|
|
4699
4713
|
function e(t) {
|
|
4700
4714
|
t && (this._subscribe = t);
|
|
4701
4715
|
}
|
|
@@ -4703,10 +4717,10 @@ var In = function() {
|
|
|
4703
4717
|
var n = new e();
|
|
4704
4718
|
return n.source = this, n.operator = t, n;
|
|
4705
4719
|
}, e.prototype.subscribe = function(t, n, r) {
|
|
4706
|
-
var i = this, o =
|
|
4720
|
+
var i = this, o = ha(t) ? t : new cn(t, n, r);
|
|
4707
4721
|
return vt(function() {
|
|
4708
|
-
var
|
|
4709
|
-
o.add(
|
|
4722
|
+
var s = i, a = s.operator, u = s.source;
|
|
4723
|
+
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
4710
4724
|
}), o;
|
|
4711
4725
|
}, e.prototype._trySubscribe = function(t) {
|
|
4712
4726
|
try {
|
|
@@ -4716,37 +4730,37 @@ var In = function() {
|
|
|
4716
4730
|
}
|
|
4717
4731
|
}, e.prototype.forEach = function(t, n) {
|
|
4718
4732
|
var r = this;
|
|
4719
|
-
return n =
|
|
4720
|
-
var
|
|
4721
|
-
next: function(
|
|
4733
|
+
return n = Fn(n), new n(function(i, o) {
|
|
4734
|
+
var s = new cn({
|
|
4735
|
+
next: function(a) {
|
|
4722
4736
|
try {
|
|
4723
|
-
t(
|
|
4724
|
-
} catch (
|
|
4725
|
-
o(
|
|
4737
|
+
t(a);
|
|
4738
|
+
} catch (u) {
|
|
4739
|
+
o(u), s.unsubscribe();
|
|
4726
4740
|
}
|
|
4727
4741
|
},
|
|
4728
4742
|
error: o,
|
|
4729
4743
|
complete: i
|
|
4730
4744
|
});
|
|
4731
|
-
r.subscribe(
|
|
4745
|
+
r.subscribe(s);
|
|
4732
4746
|
});
|
|
4733
4747
|
}, e.prototype._subscribe = function(t) {
|
|
4734
4748
|
var n;
|
|
4735
4749
|
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t);
|
|
4736
|
-
}, e.prototype[
|
|
4750
|
+
}, e.prototype[sa] = function() {
|
|
4737
4751
|
return this;
|
|
4738
4752
|
}, e.prototype.pipe = function() {
|
|
4739
4753
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
4740
4754
|
t[n] = arguments[n];
|
|
4741
|
-
return
|
|
4755
|
+
return ua(t)(this);
|
|
4742
4756
|
}, e.prototype.toPromise = function(t) {
|
|
4743
4757
|
var n = this;
|
|
4744
|
-
return t =
|
|
4758
|
+
return t = Fn(t), new t(function(r, i) {
|
|
4745
4759
|
var o;
|
|
4746
|
-
n.subscribe(function(
|
|
4747
|
-
return o =
|
|
4748
|
-
}, function(
|
|
4749
|
-
return i(
|
|
4760
|
+
n.subscribe(function(s) {
|
|
4761
|
+
return o = s;
|
|
4762
|
+
}, function(s) {
|
|
4763
|
+
return i(s);
|
|
4750
4764
|
}, function() {
|
|
4751
4765
|
return r(o);
|
|
4752
4766
|
});
|
|
@@ -4755,32 +4769,32 @@ var In = function() {
|
|
|
4755
4769
|
return new e(t);
|
|
4756
4770
|
}, e;
|
|
4757
4771
|
}();
|
|
4758
|
-
function
|
|
4772
|
+
function Fn(e) {
|
|
4759
4773
|
var t;
|
|
4760
|
-
return (t = e != null ? e :
|
|
4774
|
+
return (t = e != null ? e : Ar.Promise) !== null && t !== void 0 ? t : Promise;
|
|
4761
4775
|
}
|
|
4762
|
-
function
|
|
4763
|
-
return e &&
|
|
4776
|
+
function ca(e) {
|
|
4777
|
+
return e && Be(e.next) && Be(e.error) && Be(e.complete);
|
|
4764
4778
|
}
|
|
4765
|
-
function
|
|
4766
|
-
return e && e instanceof
|
|
4779
|
+
function ha(e) {
|
|
4780
|
+
return e && e instanceof Cr || ca(e) && Br(e);
|
|
4767
4781
|
}
|
|
4768
|
-
var
|
|
4782
|
+
var fa = Sr(function(e) {
|
|
4769
4783
|
return function() {
|
|
4770
4784
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
4771
4785
|
};
|
|
4772
|
-
}),
|
|
4773
|
-
|
|
4786
|
+
}), Hr = function(e) {
|
|
4787
|
+
Ae(t, e);
|
|
4774
4788
|
function t() {
|
|
4775
4789
|
var n = e.call(this) || this;
|
|
4776
4790
|
return n.closed = !1, n.currentObservers = null, n.observers = [], n.isStopped = !1, n.hasError = !1, n.thrownError = null, n;
|
|
4777
4791
|
}
|
|
4778
4792
|
return t.prototype.lift = function(n) {
|
|
4779
|
-
var r = new
|
|
4793
|
+
var r = new Gn(this, this);
|
|
4780
4794
|
return r.operator = n, r;
|
|
4781
4795
|
}, t.prototype._throwIfClosed = function() {
|
|
4782
4796
|
if (this.closed)
|
|
4783
|
-
throw new
|
|
4797
|
+
throw new fa();
|
|
4784
4798
|
}, t.prototype.next = function(n) {
|
|
4785
4799
|
var r = this;
|
|
4786
4800
|
vt(function() {
|
|
@@ -4788,15 +4802,15 @@ var ca = xr(function(e) {
|
|
|
4788
4802
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
4789
4803
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
4790
4804
|
try {
|
|
4791
|
-
for (var
|
|
4792
|
-
var
|
|
4793
|
-
|
|
4805
|
+
for (var s = Qt(r.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
4806
|
+
var u = a.value;
|
|
4807
|
+
u.next(n);
|
|
4794
4808
|
}
|
|
4795
|
-
} catch (
|
|
4796
|
-
i = { error:
|
|
4809
|
+
} catch (l) {
|
|
4810
|
+
i = { error: l };
|
|
4797
4811
|
} finally {
|
|
4798
4812
|
try {
|
|
4799
|
-
|
|
4813
|
+
a && !a.done && (o = s.return) && o.call(s);
|
|
4800
4814
|
} finally {
|
|
4801
4815
|
if (i)
|
|
4802
4816
|
throw i.error;
|
|
@@ -4836,21 +4850,21 @@ var ca = xr(function(e) {
|
|
|
4836
4850
|
}, t.prototype._subscribe = function(n) {
|
|
4837
4851
|
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
4838
4852
|
}, t.prototype._innerSubscribe = function(n) {
|
|
4839
|
-
var r = this, i = this, o = i.hasError,
|
|
4840
|
-
return o ||
|
|
4841
|
-
r.currentObservers = null, un(
|
|
4853
|
+
var r = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
4854
|
+
return o || s ? Tr : (this.currentObservers = null, a.push(n), new Ct(function() {
|
|
4855
|
+
r.currentObservers = null, un(a, n);
|
|
4842
4856
|
}));
|
|
4843
4857
|
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
4844
|
-
var r = this, i = r.hasError, o = r.thrownError,
|
|
4845
|
-
i ? n.error(o) :
|
|
4858
|
+
var r = this, i = r.hasError, o = r.thrownError, s = r.isStopped;
|
|
4859
|
+
i ? n.error(o) : s && n.complete();
|
|
4846
4860
|
}, t.prototype.asObservable = function() {
|
|
4847
|
-
var n = new
|
|
4861
|
+
var n = new Un();
|
|
4848
4862
|
return n.source = this, n;
|
|
4849
4863
|
}, t.create = function(n, r) {
|
|
4850
|
-
return new
|
|
4864
|
+
return new Gn(n, r);
|
|
4851
4865
|
}, t;
|
|
4852
|
-
}(
|
|
4853
|
-
|
|
4866
|
+
}(Un), Gn = function(e) {
|
|
4867
|
+
Ae(t, e);
|
|
4854
4868
|
function t(n, r) {
|
|
4855
4869
|
var i = e.call(this) || this;
|
|
4856
4870
|
return i.destination = n, i.source = r, i;
|
|
@@ -4866,58 +4880,58 @@ var ca = xr(function(e) {
|
|
|
4866
4880
|
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
4867
4881
|
}, t.prototype._subscribe = function(n) {
|
|
4868
4882
|
var r, i;
|
|
4869
|
-
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i :
|
|
4883
|
+
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : Tr;
|
|
4870
4884
|
}, t;
|
|
4871
|
-
}(
|
|
4885
|
+
}(Hr), Or = {
|
|
4872
4886
|
now: function() {
|
|
4873
|
-
return (
|
|
4887
|
+
return (Or.delegate || Date).now();
|
|
4874
4888
|
},
|
|
4875
4889
|
delegate: void 0
|
|
4876
|
-
},
|
|
4877
|
-
|
|
4890
|
+
}, da = function(e) {
|
|
4891
|
+
Ae(t, e);
|
|
4878
4892
|
function t(n, r, i) {
|
|
4879
|
-
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i =
|
|
4893
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = Or);
|
|
4880
4894
|
var o = e.call(this) || this;
|
|
4881
4895
|
return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
|
|
4882
4896
|
}
|
|
4883
4897
|
return t.prototype.next = function(n) {
|
|
4884
|
-
var r = this, i = r.isStopped, o = r._buffer,
|
|
4885
|
-
i || (o.push(n), !
|
|
4898
|
+
var r = this, i = r.isStopped, o = r._buffer, s = r._infiniteTimeWindow, a = r._timestampProvider, u = r._windowTime;
|
|
4899
|
+
i || (o.push(n), !s && o.push(a.now() + u)), this._trimBuffer(), e.prototype.next.call(this, n);
|
|
4886
4900
|
}, t.prototype._subscribe = function(n) {
|
|
4887
4901
|
this._throwIfClosed(), this._trimBuffer();
|
|
4888
|
-
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow,
|
|
4889
|
-
n.next(
|
|
4902
|
+
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, s = i._buffer, a = s.slice(), u = 0; u < a.length && !n.closed; u += o ? 1 : 2)
|
|
4903
|
+
n.next(a[u]);
|
|
4890
4904
|
return this._checkFinalizedStatuses(n), r;
|
|
4891
4905
|
}, t.prototype._trimBuffer = function() {
|
|
4892
|
-
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer,
|
|
4893
|
-
if (r < 1 / 0 &&
|
|
4894
|
-
for (var
|
|
4895
|
-
|
|
4896
|
-
|
|
4906
|
+
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, s = n._infiniteTimeWindow, a = (s ? 1 : 2) * r;
|
|
4907
|
+
if (r < 1 / 0 && a < o.length && o.splice(0, o.length - a), !s) {
|
|
4908
|
+
for (var u = i.now(), l = 0, f = 1; f < o.length && o[f] <= u; f += 2)
|
|
4909
|
+
l = f;
|
|
4910
|
+
l && o.splice(0, l + 1);
|
|
4897
4911
|
}
|
|
4898
4912
|
}, t;
|
|
4899
|
-
}(
|
|
4900
|
-
const
|
|
4901
|
-
if (
|
|
4902
|
-
const n = new
|
|
4903
|
-
|
|
4913
|
+
}(Hr);
|
|
4914
|
+
const jn = [], kn = {}, pa = (e, t = 0) => {
|
|
4915
|
+
if (jn.indexOf(e) == -1) {
|
|
4916
|
+
const n = new da(t);
|
|
4917
|
+
kn[e] = n, jn.push(e);
|
|
4904
4918
|
}
|
|
4905
|
-
return
|
|
4919
|
+
return kn[e];
|
|
4906
4920
|
};
|
|
4907
|
-
window.emWidgets = { topic:
|
|
4908
|
-
const
|
|
4909
|
-
function
|
|
4910
|
-
|
|
4921
|
+
window.emWidgets = { topic: pa };
|
|
4922
|
+
const ma = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4923
|
+
function ba(e) {
|
|
4924
|
+
Gr(e, "svelte-lfsn3o", '*,*::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;background:transparent;border:none;font:inherit;color:inherit;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, #22B04E));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;background:transparent;border:none;font:inherit;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}');
|
|
4911
4925
|
}
|
|
4912
|
-
function
|
|
4926
|
+
function $n(e, t, n) {
|
|
4913
4927
|
const r = e.slice();
|
|
4914
4928
|
return r[54] = t[n], r;
|
|
4915
4929
|
}
|
|
4916
|
-
function
|
|
4930
|
+
function Vn(e, t, n) {
|
|
4917
4931
|
const r = e.slice();
|
|
4918
4932
|
return r[57] = t[n], r;
|
|
4919
4933
|
}
|
|
4920
|
-
function
|
|
4934
|
+
function ga(e) {
|
|
4921
4935
|
let t, n, r = (
|
|
4922
4936
|
/*balances*/
|
|
4923
4937
|
(e[1].Total ? (
|
|
@@ -4927,53 +4941,53 @@ function ma(e) {
|
|
|
4927
4941
|
e[1].Total[0].amount
|
|
4928
4942
|
)
|
|
4929
4943
|
) : "0") + ""
|
|
4930
|
-
), i, o, a,
|
|
4944
|
+
), i, o, s, a, u, l, f, b, m, S, _ = (
|
|
4931
4945
|
/*showBalance*/
|
|
4932
|
-
e[4] &&
|
|
4946
|
+
e[4] && Xn(e)
|
|
4933
4947
|
);
|
|
4934
4948
|
return {
|
|
4935
4949
|
c() {
|
|
4936
|
-
t = j("button"), n = j("p"), i =
|
|
4937
|
-
e[3] ? "TriangleActive" : "TriangleInactive"),
|
|
4950
|
+
t = j("button"), n = j("p"), i = Se(r), o = Te(), s = j("span"), a = vn("svg"), u = vn("path"), f = Te(), _ && _.c(), b = $r(), R(u, "id", "arrow"), R(u, "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"), R(u, "transform", "translate(-274.511 -441.088)"), R(u, "fill", "#d1d1d1"), R(a, "xmlns", "http://www.w3.org/2000/svg"), R(a, "width", "14"), R(a, "height", "6.835"), R(a, "viewBox", "0 0 14 6.835"), R(s, "class", l = /*isModalDisplayed*/
|
|
4951
|
+
e[3] ? "TriangleActive" : "TriangleInactive"), R(t, "class", "BalanceValue");
|
|
4938
4952
|
},
|
|
4939
|
-
m(
|
|
4940
|
-
|
|
4953
|
+
m(T, N) {
|
|
4954
|
+
ye(T, t, N), I(t, n), I(n, i), I(t, o), I(t, s), I(s, a), I(a, u), ye(T, f, N), _ && _.m(T, N), ye(T, b, N), m || (S = Et(
|
|
4941
4955
|
t,
|
|
4942
4956
|
"click",
|
|
4943
4957
|
/*click_handler*/
|
|
4944
4958
|
e[26]
|
|
4945
4959
|
), m = !0);
|
|
4946
4960
|
},
|
|
4947
|
-
p(
|
|
4948
|
-
|
|
4961
|
+
p(T, N) {
|
|
4962
|
+
N[0] & /*balances*/
|
|
4949
4963
|
2 && r !== (r = /*balances*/
|
|
4950
|
-
(
|
|
4964
|
+
(T[1].Total ? (
|
|
4951
4965
|
/*formatBalance*/
|
|
4952
|
-
|
|
4966
|
+
T[8](
|
|
4953
4967
|
/*balances*/
|
|
4954
|
-
|
|
4968
|
+
T[1].Total[0].amount
|
|
4955
4969
|
)
|
|
4956
|
-
) : "0") + "") && Re(i, r),
|
|
4957
|
-
8 &&
|
|
4958
|
-
|
|
4959
|
-
|
|
4970
|
+
) : "0") + "") && Re(i, r), N[0] & /*isModalDisplayed*/
|
|
4971
|
+
8 && l !== (l = /*isModalDisplayed*/
|
|
4972
|
+
T[3] ? "TriangleActive" : "TriangleInactive") && R(s, "class", l), /*showBalance*/
|
|
4973
|
+
T[4] ? _ ? _.p(T, N) : (_ = Xn(T), _.c(), _.m(b.parentNode, b)) : _ && (_.d(1), _ = null);
|
|
4960
4974
|
},
|
|
4961
|
-
d(
|
|
4962
|
-
|
|
4975
|
+
d(T) {
|
|
4976
|
+
T && (be(t), be(f), be(b)), _ && _.d(T), m = !1, S();
|
|
4963
4977
|
}
|
|
4964
4978
|
};
|
|
4965
4979
|
}
|
|
4966
|
-
function
|
|
4980
|
+
function ya(e) {
|
|
4967
4981
|
let t, n = (
|
|
4968
4982
|
/*$_*/
|
|
4969
4983
|
e[6]("Loading") + ""
|
|
4970
4984
|
), r;
|
|
4971
4985
|
return {
|
|
4972
4986
|
c() {
|
|
4973
|
-
t = j("p"), r =
|
|
4987
|
+
t = j("p"), r = Se(n), R(t, "class", "Loading");
|
|
4974
4988
|
},
|
|
4975
4989
|
m(i, o) {
|
|
4976
|
-
|
|
4990
|
+
ye(i, t, o), I(t, r);
|
|
4977
4991
|
},
|
|
4978
4992
|
p(i, o) {
|
|
4979
4993
|
o[0] & /*$_*/
|
|
@@ -4981,39 +4995,39 @@ function ba(e) {
|
|
|
4981
4995
|
i[6]("Loading") + "") && Re(r, n);
|
|
4982
4996
|
},
|
|
4983
4997
|
d(i) {
|
|
4984
|
-
i &&
|
|
4998
|
+
i && be(t);
|
|
4985
4999
|
}
|
|
4986
5000
|
};
|
|
4987
5001
|
}
|
|
4988
|
-
function
|
|
4989
|
-
let t, n, r, i, o, a,
|
|
5002
|
+
function Xn(e) {
|
|
5003
|
+
let t, n, r, i, o, s, a, u, l = (
|
|
4990
5004
|
/*$_*/
|
|
4991
5005
|
e[6]("Title") + ""
|
|
4992
|
-
), f, b, m, S,
|
|
5006
|
+
), f, b, m, S, _, T, N = (
|
|
4993
5007
|
/*$_*/
|
|
4994
5008
|
e[6]("DepositButton") + ""
|
|
4995
|
-
), W, V,
|
|
5009
|
+
), W, V, L, U, Q, Z, ee = _t(Object.keys(
|
|
4996
5010
|
/*balances*/
|
|
4997
5011
|
e[1]
|
|
4998
|
-
)),
|
|
4999
|
-
for (let
|
|
5000
|
-
|
|
5012
|
+
)), F = [];
|
|
5013
|
+
for (let D = 0; D < ee.length; D += 1)
|
|
5014
|
+
F[D] = Wn($n(e, ee, D));
|
|
5001
5015
|
return {
|
|
5002
5016
|
c() {
|
|
5003
|
-
t = j("div"), n = j("button"), i =
|
|
5004
|
-
for (let
|
|
5005
|
-
|
|
5006
|
-
S =
|
|
5007
|
-
(e[3] ? "Open" : "")),
|
|
5008
|
-
(e[3] ? "Open" : "")),
|
|
5009
|
-
(e[3] ? "Open" : "")),
|
|
5017
|
+
t = j("div"), n = j("button"), i = Te(), o = j("div"), s = j("div"), a = j("div"), u = j("p"), f = Se(l), b = Te(), m = j("div");
|
|
5018
|
+
for (let D = 0; D < F.length; D += 1)
|
|
5019
|
+
F[D].c();
|
|
5020
|
+
S = Te(), _ = j("div"), T = j("button"), W = Se(N), R(n, "class", r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
5021
|
+
(e[3] ? "Open" : "")), R(u, "class", "BalanceModalTitle"), R(a, "class", "BalanceModalHeader"), R(m, "class", "BalanceModalBody"), R(T, "class", "BalanceModalAction"), R(_, "class", "BalanceModalFooter"), R(s, "class", V = "ModalContent " + /*isModalDisplayed*/
|
|
5022
|
+
(e[3] ? "Open" : "")), R(o, "class", L = "BalanceModal " + /*isModalDisplayed*/
|
|
5023
|
+
(e[3] ? "Open" : "")), R(t, "class", U = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
5010
5024
|
(e[3] ? "Open" : ""));
|
|
5011
5025
|
},
|
|
5012
|
-
m(
|
|
5013
|
-
|
|
5014
|
-
for (let
|
|
5015
|
-
|
|
5016
|
-
|
|
5026
|
+
m(D, X) {
|
|
5027
|
+
ye(D, t, X), I(t, n), I(t, i), I(t, o), I(o, s), I(s, a), I(a, u), I(u, f), I(s, b), I(s, m);
|
|
5028
|
+
for (let k = 0; k < F.length; k += 1)
|
|
5029
|
+
F[k] && F[k].m(m, null);
|
|
5030
|
+
I(s, S), I(s, _), I(_, T), I(T, W), Q || (Z = [
|
|
5017
5031
|
Et(
|
|
5018
5032
|
n,
|
|
5019
5033
|
"click",
|
|
@@ -5021,56 +5035,56 @@ function $n(e) {
|
|
|
5021
5035
|
e[27]
|
|
5022
5036
|
),
|
|
5023
5037
|
Et(
|
|
5024
|
-
|
|
5038
|
+
T,
|
|
5025
5039
|
"click",
|
|
5026
5040
|
/*click_handler_2*/
|
|
5027
5041
|
e[28]
|
|
5028
5042
|
)
|
|
5029
|
-
],
|
|
5043
|
+
], Q = !0);
|
|
5030
5044
|
},
|
|
5031
|
-
p(
|
|
5032
|
-
if (
|
|
5045
|
+
p(D, X) {
|
|
5046
|
+
if (X[0] & /*isModalDisplayed*/
|
|
5033
5047
|
8 && r !== (r = "BalanceModalClose " + /*isModalDisplayed*/
|
|
5034
|
-
(
|
|
5035
|
-
64 &&
|
|
5036
|
-
|
|
5048
|
+
(D[3] ? "Open" : "")) && R(n, "class", r), X[0] & /*$_*/
|
|
5049
|
+
64 && l !== (l = /*$_*/
|
|
5050
|
+
D[6]("Title") + "") && Re(f, l), X[0] & /*balances, formatBalance, $_*/
|
|
5037
5051
|
322) {
|
|
5038
|
-
|
|
5052
|
+
ee = _t(Object.keys(
|
|
5039
5053
|
/*balances*/
|
|
5040
|
-
|
|
5054
|
+
D[1]
|
|
5041
5055
|
));
|
|
5042
|
-
let
|
|
5043
|
-
for (
|
|
5044
|
-
const
|
|
5045
|
-
|
|
5056
|
+
let k;
|
|
5057
|
+
for (k = 0; k < ee.length; k += 1) {
|
|
5058
|
+
const te = $n(D, ee, k);
|
|
5059
|
+
F[k] ? F[k].p(te, X) : (F[k] = Wn(te), F[k].c(), F[k].m(m, null));
|
|
5046
5060
|
}
|
|
5047
|
-
for (;
|
|
5048
|
-
|
|
5049
|
-
|
|
5061
|
+
for (; k < F.length; k += 1)
|
|
5062
|
+
F[k].d(1);
|
|
5063
|
+
F.length = ee.length;
|
|
5050
5064
|
}
|
|
5051
|
-
|
|
5052
|
-
64 &&
|
|
5053
|
-
|
|
5065
|
+
X[0] & /*$_*/
|
|
5066
|
+
64 && N !== (N = /*$_*/
|
|
5067
|
+
D[6]("DepositButton") + "") && Re(W, N), X[0] & /*isModalDisplayed*/
|
|
5054
5068
|
8 && V !== (V = "ModalContent " + /*isModalDisplayed*/
|
|
5055
|
-
(
|
|
5056
|
-
8 &&
|
|
5057
|
-
(
|
|
5058
|
-
8 &&
|
|
5059
|
-
(
|
|
5069
|
+
(D[3] ? "Open" : "")) && R(s, "class", V), X[0] & /*isModalDisplayed*/
|
|
5070
|
+
8 && L !== (L = "BalanceModal " + /*isModalDisplayed*/
|
|
5071
|
+
(D[3] ? "Open" : "")) && R(o, "class", L), X[0] & /*isModalDisplayed*/
|
|
5072
|
+
8 && U !== (U = "BalanceModalWrapper " + /*isModalDisplayed*/
|
|
5073
|
+
(D[3] ? "Open" : "")) && R(t, "class", U);
|
|
5060
5074
|
},
|
|
5061
|
-
d(
|
|
5062
|
-
|
|
5075
|
+
d(D) {
|
|
5076
|
+
D && be(t), Jn(F, D), Q = !1, ze(Z);
|
|
5063
5077
|
}
|
|
5064
5078
|
};
|
|
5065
5079
|
}
|
|
5066
|
-
function
|
|
5080
|
+
function zn(e) {
|
|
5067
5081
|
let t, n, r = (
|
|
5068
5082
|
/*$_*/
|
|
5069
5083
|
e[6](
|
|
5070
5084
|
/*k*/
|
|
5071
5085
|
e[54]
|
|
5072
5086
|
) + ""
|
|
5073
|
-
), i, o,
|
|
5087
|
+
), i, o, s = (
|
|
5074
5088
|
/*b*/
|
|
5075
5089
|
(e[57].productType ? (
|
|
5076
5090
|
/*$_*/
|
|
@@ -5079,7 +5093,7 @@ function Vn(e) {
|
|
|
5079
5093
|
e[57].productType
|
|
5080
5094
|
)
|
|
5081
5095
|
) : "") + ""
|
|
5082
|
-
),
|
|
5096
|
+
), a, u, l, f, b = (
|
|
5083
5097
|
/*formatBalance*/
|
|
5084
5098
|
e[8](
|
|
5085
5099
|
/*b*/
|
|
@@ -5088,26 +5102,26 @@ function Vn(e) {
|
|
|
5088
5102
|
), m;
|
|
5089
5103
|
return {
|
|
5090
5104
|
c() {
|
|
5091
|
-
t = j("div"), n = j("p"), i =
|
|
5105
|
+
t = j("div"), n = j("p"), i = Se(r), o = Te(), a = Se(s), u = Te(), l = j("p"), f = j("span"), m = Se(b), R(n, "class", "BalanceModalText"), R(f, "class", "BalanceModalAmount"), R(l, "class", "BalanceModalValue"), R(t, "class", "BalanceModalRowLine");
|
|
5092
5106
|
},
|
|
5093
|
-
m(S,
|
|
5094
|
-
|
|
5107
|
+
m(S, _) {
|
|
5108
|
+
ye(S, t, _), I(t, n), I(n, i), I(n, o), I(n, a), I(t, u), I(t, l), I(l, f), I(f, m);
|
|
5095
5109
|
},
|
|
5096
|
-
p(S,
|
|
5097
|
-
|
|
5110
|
+
p(S, _) {
|
|
5111
|
+
_[0] & /*$_, balances*/
|
|
5098
5112
|
66 && r !== (r = /*$_*/
|
|
5099
5113
|
S[6](
|
|
5100
5114
|
/*k*/
|
|
5101
5115
|
S[54]
|
|
5102
|
-
) + "") && Re(i, r),
|
|
5103
|
-
66 &&
|
|
5116
|
+
) + "") && Re(i, r), _[0] & /*balances, $_*/
|
|
5117
|
+
66 && s !== (s = /*b*/
|
|
5104
5118
|
(S[57].productType ? (
|
|
5105
5119
|
/*$_*/
|
|
5106
5120
|
S[6](
|
|
5107
5121
|
/*b*/
|
|
5108
5122
|
S[57].productType
|
|
5109
5123
|
)
|
|
5110
|
-
) : "") + "") && Re(
|
|
5124
|
+
) : "") + "") && Re(a, s), _[0] & /*balances*/
|
|
5111
5125
|
2 && b !== (b = /*formatBalance*/
|
|
5112
5126
|
S[8](
|
|
5113
5127
|
/*b*/
|
|
@@ -5115,11 +5129,11 @@ function Vn(e) {
|
|
|
5115
5129
|
) + "") && Re(m, b);
|
|
5116
5130
|
},
|
|
5117
5131
|
d(S) {
|
|
5118
|
-
S &&
|
|
5132
|
+
S && be(t);
|
|
5119
5133
|
}
|
|
5120
5134
|
};
|
|
5121
5135
|
}
|
|
5122
|
-
function
|
|
5136
|
+
function Wn(e) {
|
|
5123
5137
|
let t, n, r = _t(
|
|
5124
5138
|
/*balances*/
|
|
5125
5139
|
e[1][
|
|
@@ -5128,22 +5142,22 @@ function Xn(e) {
|
|
|
5128
5142
|
]
|
|
5129
5143
|
), i = [];
|
|
5130
5144
|
for (let o = 0; o < r.length; o += 1)
|
|
5131
|
-
i[o] = Vn(
|
|
5145
|
+
i[o] = zn(Vn(e, r, o));
|
|
5132
5146
|
return {
|
|
5133
5147
|
c() {
|
|
5134
5148
|
t = j("div");
|
|
5135
5149
|
for (let o = 0; o < i.length; o += 1)
|
|
5136
5150
|
i[o].c();
|
|
5137
|
-
n =
|
|
5151
|
+
n = Te(), R(t, "class", "BalanceModalRowBoth");
|
|
5138
5152
|
},
|
|
5139
|
-
m(o,
|
|
5140
|
-
|
|
5141
|
-
for (let
|
|
5142
|
-
i[
|
|
5143
|
-
|
|
5153
|
+
m(o, s) {
|
|
5154
|
+
ye(o, t, s);
|
|
5155
|
+
for (let a = 0; a < i.length; a += 1)
|
|
5156
|
+
i[a] && i[a].m(t, null);
|
|
5157
|
+
I(t, n);
|
|
5144
5158
|
},
|
|
5145
|
-
p(o,
|
|
5146
|
-
if (
|
|
5159
|
+
p(o, s) {
|
|
5160
|
+
if (s[0] & /*formatBalance, balances, $_*/
|
|
5147
5161
|
322) {
|
|
5148
5162
|
r = _t(
|
|
5149
5163
|
/*balances*/
|
|
@@ -5152,83 +5166,83 @@ function Xn(e) {
|
|
|
5152
5166
|
o[54]
|
|
5153
5167
|
]
|
|
5154
5168
|
);
|
|
5155
|
-
let
|
|
5156
|
-
for (
|
|
5157
|
-
const
|
|
5158
|
-
i[
|
|
5169
|
+
let a;
|
|
5170
|
+
for (a = 0; a < r.length; a += 1) {
|
|
5171
|
+
const u = Vn(o, r, a);
|
|
5172
|
+
i[a] ? i[a].p(u, s) : (i[a] = zn(u), i[a].c(), i[a].m(t, n));
|
|
5159
5173
|
}
|
|
5160
|
-
for (;
|
|
5161
|
-
i[
|
|
5174
|
+
for (; a < i.length; a += 1)
|
|
5175
|
+
i[a].d(1);
|
|
5162
5176
|
i.length = r.length;
|
|
5163
5177
|
}
|
|
5164
5178
|
},
|
|
5165
5179
|
d(o) {
|
|
5166
|
-
o &&
|
|
5180
|
+
o && be(t), Jn(i, o);
|
|
5167
5181
|
}
|
|
5168
5182
|
};
|
|
5169
5183
|
}
|
|
5170
|
-
function
|
|
5184
|
+
function Zn(e) {
|
|
5171
5185
|
let t, n, r;
|
|
5172
5186
|
return {
|
|
5173
5187
|
c() {
|
|
5174
|
-
t = j("button"),
|
|
5188
|
+
t = j("button"), R(t, "class", "ShowBalanceModalOverlay");
|
|
5175
5189
|
},
|
|
5176
5190
|
m(i, o) {
|
|
5177
|
-
|
|
5191
|
+
ye(i, t, o), n || (r = Et(
|
|
5178
5192
|
t,
|
|
5179
5193
|
"click",
|
|
5180
5194
|
/*click_handler_3*/
|
|
5181
5195
|
e[29]
|
|
5182
5196
|
), n = !0);
|
|
5183
5197
|
},
|
|
5184
|
-
p:
|
|
5198
|
+
p: fe,
|
|
5185
5199
|
d(i) {
|
|
5186
|
-
i &&
|
|
5200
|
+
i && be(t), n = !1, r();
|
|
5187
5201
|
}
|
|
5188
5202
|
};
|
|
5189
5203
|
}
|
|
5190
|
-
function
|
|
5204
|
+
function va(e) {
|
|
5191
5205
|
let t, n, r, i;
|
|
5192
|
-
function o(
|
|
5206
|
+
function o(l, f) {
|
|
5193
5207
|
return (
|
|
5194
5208
|
/*isLoading*/
|
|
5195
|
-
|
|
5209
|
+
l[2] ? ya : ga
|
|
5196
5210
|
);
|
|
5197
5211
|
}
|
|
5198
|
-
let
|
|
5212
|
+
let s = o(e), a = s(e), u = (
|
|
5199
5213
|
/*showBalance*/
|
|
5200
|
-
e[4] &&
|
|
5214
|
+
e[4] && Zn(e)
|
|
5201
5215
|
);
|
|
5202
5216
|
return {
|
|
5203
5217
|
c() {
|
|
5204
|
-
t = j("div"), n = j("div"),
|
|
5218
|
+
t = j("div"), n = j("div"), a.c(), i = Te(), u && u.c(), R(n, "class", r = "ShowBalance " + /*mobileView*/
|
|
5205
5219
|
(e[5] ? "Mobile" : ""));
|
|
5206
5220
|
},
|
|
5207
|
-
m(
|
|
5208
|
-
|
|
5221
|
+
m(l, f) {
|
|
5222
|
+
ye(l, t, f), I(t, n), a.m(n, null), I(t, i), u && u.m(t, null), e[30](t);
|
|
5209
5223
|
},
|
|
5210
|
-
p(
|
|
5211
|
-
|
|
5224
|
+
p(l, f) {
|
|
5225
|
+
s === (s = o(l)) && a ? a.p(l, f) : (a.d(1), a = s(l), a && (a.c(), a.m(n, null))), f[0] & /*mobileView*/
|
|
5212
5226
|
32 && r !== (r = "ShowBalance " + /*mobileView*/
|
|
5213
|
-
(
|
|
5214
|
-
|
|
5227
|
+
(l[5] ? "Mobile" : "")) && R(n, "class", r), /*showBalance*/
|
|
5228
|
+
l[4] ? u ? u.p(l, f) : (u = Zn(l), u.c(), u.m(t, null)) : u && (u.d(1), u = null);
|
|
5215
5229
|
},
|
|
5216
|
-
i:
|
|
5217
|
-
o:
|
|
5218
|
-
d(
|
|
5219
|
-
|
|
5230
|
+
i: fe,
|
|
5231
|
+
o: fe,
|
|
5232
|
+
d(l) {
|
|
5233
|
+
l && be(t), a.d(), u && u.d(), e[30](null);
|
|
5220
5234
|
}
|
|
5221
5235
|
};
|
|
5222
5236
|
}
|
|
5223
|
-
function
|
|
5237
|
+
function Ea(e, t, n) {
|
|
5224
5238
|
let r;
|
|
5225
|
-
|
|
5226
|
-
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint:
|
|
5227
|
-
const
|
|
5228
|
-
fetch(b).then((c) => c.json()).then((c) => Object.keys(c).forEach((
|
|
5239
|
+
Fr(e, Jo, (c) => n(6, r = c));
|
|
5240
|
+
let { userid: i = "" } = t, { session: o = "" } = t, { endpoint: s = "" } = t, { lang: a = "en" } = t, { mbsource: u } = t, { clientstyling: l = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: b = "" } = t, { gmversion: m = "gm16" } = t, { displaybalanceoption: S = "All" } = t, { totalcalculationmode: _ = "totalCashAmount" } = t, { currencylocale: T = "en" } = t, { currencydisplay: N = "symbol" } = t, { maximumfractiondigits: W = "2" } = t, { minimumfractiondigits: V = "0" } = t, { customdisplayformat: L = "" } = t, U, Q, Z = !0, ee = !1, F = !1, D = !1, X = !1, k = window.navigator.userAgent, te, ve = "", ce = [], Ce;
|
|
5241
|
+
const x = {}, ae = ["totalCashAmount", "totalRealAmount"], He = () => {
|
|
5242
|
+
fetch(b).then((c) => c.json()).then((c) => Object.keys(c).forEach((p) => Pn(p, c[p]))).catch((c) => console.log(c));
|
|
5229
5243
|
};
|
|
5230
|
-
Object.keys(
|
|
5231
|
-
const
|
|
5244
|
+
Object.keys(In).forEach((c) => Pn(c, In[c]));
|
|
5245
|
+
const de = (c) => {
|
|
5232
5246
|
switch (c) {
|
|
5233
5247
|
case "balance":
|
|
5234
5248
|
window.postMessage(
|
|
@@ -5237,10 +5251,10 @@ function ya(e, t, n) {
|
|
|
5237
5251
|
status: "open"
|
|
5238
5252
|
},
|
|
5239
5253
|
window.location.href
|
|
5240
|
-
), n(4,
|
|
5254
|
+
), n(4, D = !0), setTimeout(() => n(3, ee = !0), 150);
|
|
5241
5255
|
break;
|
|
5242
5256
|
case "closebalance":
|
|
5243
|
-
n(3,
|
|
5257
|
+
n(3, ee = !1), window.postMessage(
|
|
5244
5258
|
{
|
|
5245
5259
|
type: "BalanceModalStatus",
|
|
5246
5260
|
status: "close"
|
|
@@ -5248,114 +5262,114 @@ function ya(e, t, n) {
|
|
|
5248
5262
|
window.location.href
|
|
5249
5263
|
), setTimeout(
|
|
5250
5264
|
() => {
|
|
5251
|
-
n(4,
|
|
5265
|
+
n(4, D = !1);
|
|
5252
5266
|
},
|
|
5253
5267
|
150
|
|
5254
5268
|
);
|
|
5255
5269
|
break;
|
|
5256
5270
|
}
|
|
5257
|
-
},
|
|
5258
|
-
if (
|
|
5259
|
-
return
|
|
5260
|
-
const
|
|
5271
|
+
}, Ye = (c) => {
|
|
5272
|
+
if (L)
|
|
5273
|
+
return ge(c);
|
|
5274
|
+
const p = T || a, E = {
|
|
5261
5275
|
style: "currency",
|
|
5262
|
-
currency:
|
|
5276
|
+
currency: ve,
|
|
5263
5277
|
useGrouping: !0,
|
|
5264
|
-
currencyDisplay:
|
|
5278
|
+
currencyDisplay: N || "code",
|
|
5265
5279
|
maximumFractionDigits: W === "" || isNaN(Number(W)) ? 2 : Number(W),
|
|
5266
5280
|
minimumFractionDigits: V === "" || isNaN(Number(V)) ? 0 : Number(V)
|
|
5267
5281
|
};
|
|
5268
|
-
return new Intl.NumberFormat(
|
|
5269
|
-
},
|
|
5270
|
-
const
|
|
5271
|
-
let
|
|
5272
|
-
for (const
|
|
5273
|
-
switch (
|
|
5282
|
+
return new Intl.NumberFormat(p, E).format(c);
|
|
5283
|
+
}, ge = (c) => {
|
|
5284
|
+
const p = [];
|
|
5285
|
+
let E = "";
|
|
5286
|
+
for (const v of L)
|
|
5287
|
+
switch (v) {
|
|
5274
5288
|
default:
|
|
5275
|
-
|
|
5289
|
+
E += v;
|
|
5276
5290
|
break;
|
|
5277
5291
|
case "{":
|
|
5278
|
-
|
|
5292
|
+
E && p.push(E), E = "";
|
|
5279
5293
|
break;
|
|
5280
5294
|
case "}":
|
|
5281
|
-
const [
|
|
5282
|
-
if (
|
|
5283
|
-
|
|
5284
|
-
else if (
|
|
5285
|
-
let
|
|
5286
|
-
|
|
5287
|
-
let [
|
|
5288
|
-
|
|
5289
|
-
for (let
|
|
5290
|
-
(
|
|
5291
|
-
|
|
5295
|
+
const [B, A] = E.split("|");
|
|
5296
|
+
if (E = "", B.toLowerCase() === "currency")
|
|
5297
|
+
E = ve;
|
|
5298
|
+
else if (B.toLowerCase() === "amount") {
|
|
5299
|
+
let d = ",", H = ".", J = 2;
|
|
5300
|
+
A && (A[0] !== " " && (d = A[0]), A[1] !== " " && (H = A[1]), A[2] !== " " && !isNaN(Number(A[2])) && (J = Number(A[2])));
|
|
5301
|
+
let [pe, ne] = String(Math.floor(c * It(10, J)) / It(10, J)).split(".");
|
|
5302
|
+
E += pe[0];
|
|
5303
|
+
for (let $ = 1; $ < pe.length; ++$)
|
|
5304
|
+
(pe.length - $) % 3 === 0 ? E += d + pe[$] : E += pe[$];
|
|
5305
|
+
ne && (E += H + ne);
|
|
5292
5306
|
}
|
|
5293
|
-
|
|
5307
|
+
E && p.push(E), E = "";
|
|
5294
5308
|
break;
|
|
5295
5309
|
}
|
|
5296
|
-
return
|
|
5297
|
-
},
|
|
5298
|
-
var
|
|
5299
|
-
n(2,
|
|
5300
|
-
const c = new URL(`${
|
|
5310
|
+
return p.push(E), p.join("");
|
|
5311
|
+
}, Qe = () => Ut(this, null, function* () {
|
|
5312
|
+
var p, E, v;
|
|
5313
|
+
n(2, Z = !0);
|
|
5314
|
+
const c = new URL(`${s}/v1/player/${i}/account`);
|
|
5301
5315
|
try {
|
|
5302
|
-
const
|
|
5316
|
+
const B = yield fetch(c, {
|
|
5303
5317
|
method: "GET",
|
|
5304
5318
|
headers: { "X-SessionID": o }
|
|
5305
|
-
}),
|
|
5306
|
-
if (
|
|
5307
|
-
window.postMessage({ type: "BalancedFetched" }, window.location.href),
|
|
5319
|
+
}), A = yield B.json();
|
|
5320
|
+
if (B.ok)
|
|
5321
|
+
window.postMessage({ type: "BalancedFetched" }, window.location.href), ce = A.items, ve = (p = ce.find((d) => d.displayName === "Casino")) == null ? void 0 : p.currency, n(1, x.Total = [{ amount: A.totalAmount[ve] }], x), n(
|
|
5308
5322
|
1,
|
|
5309
|
-
|
|
5323
|
+
x.Real = [
|
|
5310
5324
|
{
|
|
5311
|
-
amount: (
|
|
5325
|
+
amount: (E = ce.find((d) => d.displayName === "Casino")) == null ? void 0 : E.balanceAmount
|
|
5312
5326
|
}
|
|
5313
5327
|
],
|
|
5314
|
-
|
|
5328
|
+
x
|
|
5315
5329
|
), n(
|
|
5316
5330
|
1,
|
|
5317
|
-
|
|
5331
|
+
x.Bonus = [
|
|
5318
5332
|
{
|
|
5319
|
-
amount: (
|
|
5333
|
+
amount: (v = ce.find((d) => d.displayName === "UBS")) == null ? void 0 : v.balanceAmount
|
|
5320
5334
|
}
|
|
5321
5335
|
],
|
|
5322
|
-
|
|
5336
|
+
x
|
|
5323
5337
|
);
|
|
5324
5338
|
else
|
|
5325
5339
|
throw new Error("Failed to fetch balance data !");
|
|
5326
|
-
} catch (
|
|
5327
|
-
console.log("Balance error: ",
|
|
5340
|
+
} catch (B) {
|
|
5341
|
+
console.log("Balance error: ", B);
|
|
5328
5342
|
} finally {
|
|
5329
|
-
n(2,
|
|
5343
|
+
n(2, Z = !1);
|
|
5330
5344
|
}
|
|
5331
|
-
}),
|
|
5332
|
-
n(2,
|
|
5333
|
-
const c = new URL(`${
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
const
|
|
5337
|
-
if (
|
|
5338
|
-
|
|
5345
|
+
}), lt = () => {
|
|
5346
|
+
n(2, Z = !0);
|
|
5347
|
+
const c = new URL(`${s}/v2/player/${i}/balance`), p = new Headers();
|
|
5348
|
+
p.append("X-SessionID", o), fetch(c, { method: "GET", headers: p }).then((v) => v.json()).then((v) => {
|
|
5349
|
+
v[_] || n(10, _ = ae[0]);
|
|
5350
|
+
const B = v.items.find((d) => d.type === "Real" && d.walletAccountType === "Ordinary");
|
|
5351
|
+
if (ve = B.currency, F = !!B.productType, n(1, x.Total = [{ amount: 0 }], x), n(1, x.Real = [], x), n(1, x.Bonus = [], x), n(1, x.Credit = [], x), !F) {
|
|
5352
|
+
Ce = {
|
|
5339
5353
|
lastOrdinaryAfterAmount: 0,
|
|
5340
5354
|
showCreditLineAfterAmount: !1
|
|
5341
|
-
}, n(1,
|
|
5342
|
-
for (const
|
|
5343
|
-
switch (
|
|
5355
|
+
}, n(1, x.Total[0].amount = v[_][ve], x);
|
|
5356
|
+
for (const d of v.items)
|
|
5357
|
+
switch (d.type) {
|
|
5344
5358
|
case "Bonus":
|
|
5345
|
-
|
|
5359
|
+
x.Bonus.length === 0 ? x.Bonus.push({ amount: d.amount }) : n(1, x.Bonus[0].amount += d.amount, x);
|
|
5346
5360
|
break;
|
|
5347
5361
|
case "Real":
|
|
5348
|
-
if (
|
|
5362
|
+
if (d.creditLine && x.Credit.length === 0 && x.Credit.push({ amount: d.creditLine }), _ === "totalRealAmount")
|
|
5349
5363
|
continue;
|
|
5350
|
-
|
|
5364
|
+
x.Real.length === 0 ? x.Real.push({ amount: d.amount }) : n(1, x.Real[0].amount += d.amount, x);
|
|
5351
5365
|
break;
|
|
5352
5366
|
}
|
|
5353
|
-
for (const [
|
|
5354
|
-
|
|
5355
|
-
n(2,
|
|
5367
|
+
for (const [d, H] of Object.entries(x))
|
|
5368
|
+
H.length < 1 && delete x[d];
|
|
5369
|
+
n(2, Z = !1);
|
|
5356
5370
|
return;
|
|
5357
5371
|
}
|
|
5358
|
-
|
|
5372
|
+
Ce = {
|
|
5359
5373
|
Casino: {
|
|
5360
5374
|
lastOrdinaryAfterAmount: 0,
|
|
5361
5375
|
showCreditLineAfterAmount: !1
|
|
@@ -5365,202 +5379,202 @@ function ya(e, t, n) {
|
|
|
5365
5379
|
showCreditLineAfterAmount: !1
|
|
5366
5380
|
}
|
|
5367
5381
|
};
|
|
5368
|
-
let
|
|
5369
|
-
S && S !== "All" && (
|
|
5370
|
-
for (const
|
|
5371
|
-
let
|
|
5372
|
-
switch (
|
|
5382
|
+
let A = v.items;
|
|
5383
|
+
S && S !== "All" && (A = v.items.filter((d) => d.productType === S));
|
|
5384
|
+
for (const d of A) {
|
|
5385
|
+
let H;
|
|
5386
|
+
switch (d.type) {
|
|
5373
5387
|
case "Bonus":
|
|
5374
|
-
|
|
5375
|
-
amount:
|
|
5376
|
-
productType:
|
|
5388
|
+
H = x.Bonus.findIndex((J) => J.productType === d.productType), H > 0 ? n(1, x.Bonus[H].amount += d.amount, x) : x.Bonus.push({
|
|
5389
|
+
amount: d.amount,
|
|
5390
|
+
productType: d.productType
|
|
5377
5391
|
});
|
|
5378
5392
|
break;
|
|
5379
5393
|
case "Real":
|
|
5380
|
-
|
|
5381
|
-
amount:
|
|
5382
|
-
productType:
|
|
5383
|
-
}),
|
|
5384
|
-
amount:
|
|
5385
|
-
productType:
|
|
5394
|
+
d.creditLine && x.Credit.push({
|
|
5395
|
+
amount: d.creditLine,
|
|
5396
|
+
productType: d.productType
|
|
5397
|
+
}), H = x.Real.findIndex((J) => J.productType === d.productType), H > 0 ? n(1, x.Real[H].amount += d.amount, x) : x.Real.push({
|
|
5398
|
+
amount: d.amount,
|
|
5399
|
+
productType: d.productType
|
|
5386
5400
|
});
|
|
5387
5401
|
break;
|
|
5388
5402
|
}
|
|
5389
5403
|
}
|
|
5390
|
-
|
|
5391
|
-
for (const [
|
|
5392
|
-
|
|
5393
|
-
n(2,
|
|
5394
|
-
}).catch((
|
|
5395
|
-
throw n(2,
|
|
5404
|
+
Pe();
|
|
5405
|
+
for (const [d, H] of Object.entries(x))
|
|
5406
|
+
H.length < 1 && delete x[d];
|
|
5407
|
+
n(2, Z = !1);
|
|
5408
|
+
}).catch((v) => {
|
|
5409
|
+
throw n(2, Z = !1), console.log("Balance fetch error", v), new Error("Failed to fetch balance data!");
|
|
5396
5410
|
});
|
|
5397
|
-
},
|
|
5398
|
-
if (
|
|
5411
|
+
}, Je = () => {
|
|
5412
|
+
if (te && te.close(), o.length < 1)
|
|
5399
5413
|
return;
|
|
5400
|
-
let c,
|
|
5414
|
+
let c, p;
|
|
5401
5415
|
switch (m) {
|
|
5402
5416
|
case "gm16":
|
|
5403
|
-
c = new URL(`${
|
|
5417
|
+
c = new URL(`${s}/v2/player/${i}/information/updates`), p = (B) => et(B);
|
|
5404
5418
|
break;
|
|
5405
5419
|
case "gmcore":
|
|
5406
|
-
c = new URL(`${
|
|
5420
|
+
c = new URL(`${s}/v1/player/${i}/balance/updates`), p = (B) => Ht(B);
|
|
5407
5421
|
break;
|
|
5408
5422
|
}
|
|
5409
|
-
const
|
|
5423
|
+
const E = {
|
|
5410
5424
|
accept: "text/event-stream",
|
|
5411
5425
|
"X-SessionId": o
|
|
5412
|
-
},
|
|
5413
|
-
|
|
5426
|
+
}, v = new ea.EventSourcePolyfill(c, { headers: E });
|
|
5427
|
+
te = v, v.addEventListener("message", p);
|
|
5414
5428
|
}, ut = (c) => {
|
|
5415
|
-
let
|
|
5429
|
+
let p;
|
|
5416
5430
|
try {
|
|
5417
|
-
|
|
5418
|
-
} catch (
|
|
5419
|
-
console.log("Balance stream failed: ",
|
|
5431
|
+
p = JSON.parse(c);
|
|
5432
|
+
} catch (E) {
|
|
5433
|
+
console.log("Balance stream failed: ", E);
|
|
5420
5434
|
return;
|
|
5421
5435
|
}
|
|
5422
|
-
return
|
|
5436
|
+
return p;
|
|
5423
5437
|
}, Ht = (c) => {
|
|
5424
|
-
var
|
|
5425
|
-
const
|
|
5426
|
-
if (!
|
|
5427
|
-
|
|
5438
|
+
var B, A;
|
|
5439
|
+
const p = ut(c.data);
|
|
5440
|
+
if (!p) {
|
|
5441
|
+
Je();
|
|
5428
5442
|
return;
|
|
5429
5443
|
}
|
|
5430
|
-
let
|
|
5431
|
-
const
|
|
5432
|
-
|
|
5433
|
-
balanceAmount:
|
|
5434
|
-
})),
|
|
5435
|
-
}, Ke = (c,
|
|
5436
|
-
let
|
|
5437
|
-
switch (
|
|
5444
|
+
let E = "0";
|
|
5445
|
+
const v = p.balanceChange;
|
|
5446
|
+
ce = ce.map((d) => (v && v[d.id] && (d = Dt(Nt({}, d), {
|
|
5447
|
+
balanceAmount: v[d.id].afterAmount
|
|
5448
|
+
})), E = (parseFloat(d == null ? void 0 : d.balanceAmount) + parseFloat(E)).toString(), d)), n(1, x.Real = [{ amount: (B = ce[0]) == null ? void 0 : B.balanceAmount }], x), n(1, x.Bonus = [{ amount: (A = ce[1]) == null ? void 0 : A.balanceAmount }], x), n(1, x.Total = [{ amount: Number(E) }], x);
|
|
5449
|
+
}, Ke = (c, p, E) => {
|
|
5450
|
+
let v = null;
|
|
5451
|
+
switch (E.walletAccountType) {
|
|
5438
5452
|
case "Ordinary":
|
|
5439
|
-
(
|
|
5453
|
+
(E.afterAmount !== E.affectedAmount || p.lastOrdinaryAfterAmount === 0) && (p.lastOrdinaryAfterAmount = E.afterAmount, p.showCreditLineAfterAmount || (v = E.afterAmount));
|
|
5440
5454
|
break;
|
|
5441
5455
|
case "CreditLine":
|
|
5442
|
-
|
|
5456
|
+
E.afterAmount !== 0 ? (v = E.afterAmount, p.showCreditLineAfterAmount = !0) : (v = p.lastOrdinaryAfterAmount, p.showCreditLineAfterAmount = !1);
|
|
5443
5457
|
break;
|
|
5444
5458
|
default:
|
|
5445
|
-
|
|
5459
|
+
v = E.afterAmount;
|
|
5446
5460
|
}
|
|
5447
|
-
return
|
|
5448
|
-
},
|
|
5449
|
-
switch (
|
|
5461
|
+
return v === null ? c : v;
|
|
5462
|
+
}, Pe = () => {
|
|
5463
|
+
switch (_) {
|
|
5450
5464
|
case "totalCashAmount":
|
|
5451
5465
|
let c = 0;
|
|
5452
|
-
for (const
|
|
5453
|
-
for (const
|
|
5454
|
-
c += Math.max(
|
|
5455
|
-
n(1,
|
|
5466
|
+
for (const E of ["Real", "Bonus"])
|
|
5467
|
+
for (const v of x[E])
|
|
5468
|
+
c += Math.max(v.amount, 0);
|
|
5469
|
+
n(1, x.Total[0].amount = c, x);
|
|
5456
5470
|
break;
|
|
5457
5471
|
case "totalRealAmount":
|
|
5458
|
-
if (!
|
|
5472
|
+
if (!F)
|
|
5459
5473
|
return;
|
|
5460
|
-
let
|
|
5461
|
-
for (const
|
|
5462
|
-
|
|
5463
|
-
n(1,
|
|
5474
|
+
let p = 0;
|
|
5475
|
+
for (const E of x.Real)
|
|
5476
|
+
p += E.amount;
|
|
5477
|
+
n(1, x.Total[0].amount = p, x);
|
|
5464
5478
|
}
|
|
5465
5479
|
}, et = (c) => {
|
|
5466
|
-
const
|
|
5467
|
-
if (!
|
|
5468
|
-
|
|
5480
|
+
const p = ut(c.data);
|
|
5481
|
+
if (!p) {
|
|
5482
|
+
Je();
|
|
5469
5483
|
return;
|
|
5470
5484
|
}
|
|
5471
|
-
if (
|
|
5485
|
+
if (se(p == null ? void 0 : p.type) || p.type !== "BALANCE_UPDATE_V2")
|
|
5472
5486
|
return;
|
|
5473
|
-
const
|
|
5474
|
-
for (const [
|
|
5475
|
-
if (
|
|
5476
|
-
for (const
|
|
5477
|
-
if (!
|
|
5478
|
-
|
|
5487
|
+
const E = p.body.balanceChange;
|
|
5488
|
+
for (const [v, B] of Object.entries(E))
|
|
5489
|
+
if (_ === "totalRealAmount" && v === "Real" && !F && n(1, x.Total[0].amount = Ke(x.Total[0].amount, Ce, B), x), !!x[v])
|
|
5490
|
+
for (const A of x[v]) {
|
|
5491
|
+
if (!F) {
|
|
5492
|
+
A.amount = v === "Real" ? Ke(A.amount, Ce, B) : B.afterAmount;
|
|
5479
5493
|
continue;
|
|
5480
5494
|
}
|
|
5481
|
-
|
|
5495
|
+
B.productType === A.productType && (A.amount = v === "Real" ? Ke(A.amount, Ce[A.productType], B) : B.afterAmount);
|
|
5482
5496
|
}
|
|
5483
|
-
|
|
5484
|
-
},
|
|
5485
|
-
|
|
5486
|
-
},
|
|
5487
|
-
|
|
5488
|
-
},
|
|
5489
|
-
switch (
|
|
5497
|
+
Pe();
|
|
5498
|
+
}, Ee = () => {
|
|
5499
|
+
de("closebalance"), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
5500
|
+
}, se = (c) => c === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, Ot = () => {
|
|
5501
|
+
ae.includes(_) || (console.error(`Unsupported value ('${_}') for totalcalculationmode parameter. Only the following values are supported ${ae}. Using default value ('${ae[0]}').`), n(10, _ = ae[0]));
|
|
5502
|
+
}, Mt = () => {
|
|
5503
|
+
switch (Ko(a), Ot(), m) {
|
|
5490
5504
|
case "gmcore":
|
|
5491
|
-
|
|
5505
|
+
Qe();
|
|
5492
5506
|
break;
|
|
5493
5507
|
case "gm16":
|
|
5494
|
-
|
|
5508
|
+
lt();
|
|
5495
5509
|
break;
|
|
5496
5510
|
default:
|
|
5497
5511
|
throw Error(`Invalid apiversion attribute: ${m}`);
|
|
5498
5512
|
}
|
|
5499
|
-
}, ct = (c) => c.data && c.data.type === "LogoutSuccessfull" &&
|
|
5513
|
+
}, ct = (c) => c.data && c.data.type === "LogoutSuccessfull" && te.close(), ht = () => {
|
|
5500
5514
|
window.postMessage({ type: "UpdateBalanceBackground" }, window.location.href);
|
|
5501
5515
|
};
|
|
5502
|
-
|
|
5503
|
-
window.removeEventListener("message", ct),
|
|
5516
|
+
Wr(() => (window.addEventListener("message", ct, !1), n(5, X = ma(k)), () => {
|
|
5517
|
+
window.emMessageBus && Q && Q.unsubscribe(), window.removeEventListener("message", ct), te && te.close();
|
|
5504
5518
|
}));
|
|
5505
|
-
const
|
|
5506
|
-
function
|
|
5507
|
-
|
|
5508
|
-
|
|
5519
|
+
const h = () => de("balance"), y = () => de("closebalance"), w = () => Ee(), g = () => de("closebalance");
|
|
5520
|
+
function C(c) {
|
|
5521
|
+
Wt[c ? "unshift" : "push"](() => {
|
|
5522
|
+
U = c, n(0, U);
|
|
5509
5523
|
});
|
|
5510
5524
|
}
|
|
5511
5525
|
return e.$$set = (c) => {
|
|
5512
|
-
"userid" in c && n(11, i = c.userid), "session" in c && n(12, o = c.session), "endpoint" in c && n(13,
|
|
5526
|
+
"userid" in c && n(11, i = c.userid), "session" in c && n(12, o = c.session), "endpoint" in c && n(13, s = c.endpoint), "lang" in c && n(14, a = c.lang), "mbsource" in c && n(15, u = c.mbsource), "clientstyling" in c && n(16, l = c.clientstyling), "clientstylingurl" in c && n(17, f = c.clientstylingurl), "translationurl" in c && n(18, b = c.translationurl), "gmversion" in c && n(19, m = c.gmversion), "displaybalanceoption" in c && n(20, S = c.displaybalanceoption), "totalcalculationmode" in c && n(10, _ = c.totalcalculationmode), "currencylocale" in c && n(21, T = c.currencylocale), "currencydisplay" in c && n(22, N = c.currencydisplay), "maximumfractiondigits" in c && n(23, W = c.maximumfractiondigits), "minimumfractiondigits" in c && n(24, V = c.minimumfractiondigits), "customdisplayformat" in c && n(25, L = c.customdisplayformat);
|
|
5513
5527
|
}, e.$$.update = () => {
|
|
5514
5528
|
e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
5515
|
-
1603584 &&
|
|
5516
|
-
538624 &&
|
|
5517
|
-
262144 && b &&
|
|
5518
|
-
2 &&
|
|
5519
|
-
65537 &&
|
|
5520
|
-
131073 && f &&
|
|
5521
|
-
32769 &&
|
|
5529
|
+
1603584 && s && i && o && a && m && S && Mt(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5530
|
+
538624 && s && i && o && m && Je(), e.$$.dirty[0] & /*translationurl*/
|
|
5531
|
+
262144 && b && He(), e.$$.dirty[0] & /*balances*/
|
|
5532
|
+
2 && x.Total && ht(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5533
|
+
65537 && l && U && si(U, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5534
|
+
131073 && f && U && li(U, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5535
|
+
32769 && u && U && ui(U, `${u}.Style`);
|
|
5522
5536
|
}, [
|
|
5523
|
-
D,
|
|
5524
|
-
w,
|
|
5525
|
-
k,
|
|
5526
|
-
oe,
|
|
5527
|
-
$,
|
|
5528
5537
|
U,
|
|
5538
|
+
x,
|
|
5539
|
+
Z,
|
|
5540
|
+
ee,
|
|
5541
|
+
D,
|
|
5542
|
+
X,
|
|
5529
5543
|
r,
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5544
|
+
de,
|
|
5545
|
+
Ye,
|
|
5546
|
+
Ee,
|
|
5547
|
+
_,
|
|
5534
5548
|
i,
|
|
5535
5549
|
o,
|
|
5536
|
-
a,
|
|
5537
5550
|
s,
|
|
5538
|
-
|
|
5551
|
+
a,
|
|
5539
5552
|
u,
|
|
5553
|
+
l,
|
|
5540
5554
|
f,
|
|
5541
5555
|
b,
|
|
5542
5556
|
m,
|
|
5543
5557
|
S,
|
|
5544
|
-
|
|
5545
|
-
|
|
5558
|
+
T,
|
|
5559
|
+
N,
|
|
5546
5560
|
W,
|
|
5547
5561
|
V,
|
|
5548
|
-
|
|
5549
|
-
ht,
|
|
5562
|
+
L,
|
|
5550
5563
|
h,
|
|
5551
5564
|
y,
|
|
5552
|
-
|
|
5553
|
-
g
|
|
5565
|
+
w,
|
|
5566
|
+
g,
|
|
5567
|
+
C
|
|
5554
5568
|
];
|
|
5555
5569
|
}
|
|
5556
|
-
class
|
|
5570
|
+
class _a extends oi {
|
|
5557
5571
|
constructor(t) {
|
|
5558
|
-
super(),
|
|
5572
|
+
super(), ri(
|
|
5559
5573
|
this,
|
|
5560
5574
|
t,
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5575
|
+
Ea,
|
|
5576
|
+
va,
|
|
5577
|
+
Yn,
|
|
5564
5578
|
{
|
|
5565
5579
|
userid: 11,
|
|
5566
5580
|
session: 12,
|
|
@@ -5579,7 +5593,7 @@ class va extends ni {
|
|
|
5579
5593
|
minimumfractiondigits: 24,
|
|
5580
5594
|
customdisplayformat: 25
|
|
5581
5595
|
},
|
|
5582
|
-
|
|
5596
|
+
ba,
|
|
5583
5597
|
[-1, -1]
|
|
5584
5598
|
);
|
|
5585
5599
|
}
|
|
@@ -5587,100 +5601,100 @@ class va extends ni {
|
|
|
5587
5601
|
return this.$$.ctx[11];
|
|
5588
5602
|
}
|
|
5589
5603
|
set userid(t) {
|
|
5590
|
-
this.$$set({ userid: t }),
|
|
5604
|
+
this.$$set({ userid: t }), Y();
|
|
5591
5605
|
}
|
|
5592
5606
|
get session() {
|
|
5593
5607
|
return this.$$.ctx[12];
|
|
5594
5608
|
}
|
|
5595
5609
|
set session(t) {
|
|
5596
|
-
this.$$set({ session: t }),
|
|
5610
|
+
this.$$set({ session: t }), Y();
|
|
5597
5611
|
}
|
|
5598
5612
|
get endpoint() {
|
|
5599
5613
|
return this.$$.ctx[13];
|
|
5600
5614
|
}
|
|
5601
5615
|
set endpoint(t) {
|
|
5602
|
-
this.$$set({ endpoint: t }),
|
|
5616
|
+
this.$$set({ endpoint: t }), Y();
|
|
5603
5617
|
}
|
|
5604
5618
|
get lang() {
|
|
5605
5619
|
return this.$$.ctx[14];
|
|
5606
5620
|
}
|
|
5607
5621
|
set lang(t) {
|
|
5608
|
-
this.$$set({ lang: t }),
|
|
5622
|
+
this.$$set({ lang: t }), Y();
|
|
5609
5623
|
}
|
|
5610
5624
|
get mbsource() {
|
|
5611
5625
|
return this.$$.ctx[15];
|
|
5612
5626
|
}
|
|
5613
5627
|
set mbsource(t) {
|
|
5614
|
-
this.$$set({ mbsource: t }),
|
|
5628
|
+
this.$$set({ mbsource: t }), Y();
|
|
5615
5629
|
}
|
|
5616
5630
|
get clientstyling() {
|
|
5617
5631
|
return this.$$.ctx[16];
|
|
5618
5632
|
}
|
|
5619
5633
|
set clientstyling(t) {
|
|
5620
|
-
this.$$set({ clientstyling: t }),
|
|
5634
|
+
this.$$set({ clientstyling: t }), Y();
|
|
5621
5635
|
}
|
|
5622
5636
|
get clientstylingurl() {
|
|
5623
5637
|
return this.$$.ctx[17];
|
|
5624
5638
|
}
|
|
5625
5639
|
set clientstylingurl(t) {
|
|
5626
|
-
this.$$set({ clientstylingurl: t }),
|
|
5640
|
+
this.$$set({ clientstylingurl: t }), Y();
|
|
5627
5641
|
}
|
|
5628
5642
|
get translationurl() {
|
|
5629
5643
|
return this.$$.ctx[18];
|
|
5630
5644
|
}
|
|
5631
5645
|
set translationurl(t) {
|
|
5632
|
-
this.$$set({ translationurl: t }),
|
|
5646
|
+
this.$$set({ translationurl: t }), Y();
|
|
5633
5647
|
}
|
|
5634
5648
|
get gmversion() {
|
|
5635
5649
|
return this.$$.ctx[19];
|
|
5636
5650
|
}
|
|
5637
5651
|
set gmversion(t) {
|
|
5638
|
-
this.$$set({ gmversion: t }),
|
|
5652
|
+
this.$$set({ gmversion: t }), Y();
|
|
5639
5653
|
}
|
|
5640
5654
|
get displaybalanceoption() {
|
|
5641
5655
|
return this.$$.ctx[20];
|
|
5642
5656
|
}
|
|
5643
5657
|
set displaybalanceoption(t) {
|
|
5644
|
-
this.$$set({ displaybalanceoption: t }),
|
|
5658
|
+
this.$$set({ displaybalanceoption: t }), Y();
|
|
5645
5659
|
}
|
|
5646
5660
|
get totalcalculationmode() {
|
|
5647
5661
|
return this.$$.ctx[10];
|
|
5648
5662
|
}
|
|
5649
5663
|
set totalcalculationmode(t) {
|
|
5650
|
-
this.$$set({ totalcalculationmode: t }),
|
|
5664
|
+
this.$$set({ totalcalculationmode: t }), Y();
|
|
5651
5665
|
}
|
|
5652
5666
|
get currencylocale() {
|
|
5653
5667
|
return this.$$.ctx[21];
|
|
5654
5668
|
}
|
|
5655
5669
|
set currencylocale(t) {
|
|
5656
|
-
this.$$set({ currencylocale: t }),
|
|
5670
|
+
this.$$set({ currencylocale: t }), Y();
|
|
5657
5671
|
}
|
|
5658
5672
|
get currencydisplay() {
|
|
5659
5673
|
return this.$$.ctx[22];
|
|
5660
5674
|
}
|
|
5661
5675
|
set currencydisplay(t) {
|
|
5662
|
-
this.$$set({ currencydisplay: t }),
|
|
5676
|
+
this.$$set({ currencydisplay: t }), Y();
|
|
5663
5677
|
}
|
|
5664
5678
|
get maximumfractiondigits() {
|
|
5665
5679
|
return this.$$.ctx[23];
|
|
5666
5680
|
}
|
|
5667
5681
|
set maximumfractiondigits(t) {
|
|
5668
|
-
this.$$set({ maximumfractiondigits: t }),
|
|
5682
|
+
this.$$set({ maximumfractiondigits: t }), Y();
|
|
5669
5683
|
}
|
|
5670
5684
|
get minimumfractiondigits() {
|
|
5671
5685
|
return this.$$.ctx[24];
|
|
5672
5686
|
}
|
|
5673
5687
|
set minimumfractiondigits(t) {
|
|
5674
|
-
this.$$set({ minimumfractiondigits: t }),
|
|
5688
|
+
this.$$set({ minimumfractiondigits: t }), Y();
|
|
5675
5689
|
}
|
|
5676
5690
|
get customdisplayformat() {
|
|
5677
5691
|
return this.$$.ctx[25];
|
|
5678
5692
|
}
|
|
5679
5693
|
set customdisplayformat(t) {
|
|
5680
|
-
this.$$set({ customdisplayformat: t }),
|
|
5694
|
+
this.$$set({ customdisplayformat: t }), Y();
|
|
5681
5695
|
}
|
|
5682
5696
|
}
|
|
5683
|
-
|
|
5697
|
+
ii(_a, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
|
|
5684
5698
|
export {
|
|
5685
|
-
|
|
5699
|
+
_a as default
|
|
5686
5700
|
};
|