@everymatrix/player-account-balance-modal 1.87.25 → 1.87.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/{PlayerAccountBalanceModal-R_7aUobI.js → PlayerAccountBalanceModal-Ct0scvdD.js} +1471 -1443
- package/components/{PlayerAccountBalanceModal-BlnRw3qy.js → PlayerAccountBalanceModal-EpWuA9il.js} +1467 -1438
- package/components/PlayerAccountBalanceModal-mIgDjCsd.cjs +9 -0
- package/es2015/player-account-balance-modal.cjs +1 -1
- package/es2015/player-account-balance-modal.js +1 -1
- package/esnext/player-account-balance-modal.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountBalanceModal-CoLTeWQ3.cjs +0 -9
package/components/{PlayerAccountBalanceModal-BlnRw3qy.js → PlayerAccountBalanceModal-EpWuA9il.js}
RENAMED
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var lr = Object.defineProperty, hr = Object.defineProperties;
|
|
2
|
+
var cr = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var un = Object.getOwnPropertySymbols;
|
|
4
|
+
var fr = Object.prototype.hasOwnProperty, dr = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Nt = Math.pow, Rt = (e, t, n) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Mt = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var n of
|
|
10
|
-
|
|
7
|
+
fr.call(t, n) && Rt(e, n, t[n]);
|
|
8
|
+
if (un)
|
|
9
|
+
for (var n of un(t))
|
|
10
|
+
dr.call(t, n) && Rt(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var
|
|
12
|
+
}, Pt = (e, t) => hr(e, cr(t));
|
|
13
|
+
var se = (e, t, n) => (Rt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
14
|
+
var It = (e, t, n) => new Promise((r, o) => {
|
|
15
|
+
var i = (f) => {
|
|
16
16
|
try {
|
|
17
|
-
|
|
17
|
+
a(n.next(f));
|
|
18
18
|
} catch (l) {
|
|
19
|
-
|
|
19
|
+
o(l);
|
|
20
20
|
}
|
|
21
21
|
}, u = (f) => {
|
|
22
22
|
try {
|
|
23
|
-
|
|
23
|
+
a(n.throw(f));
|
|
24
24
|
} catch (l) {
|
|
25
|
-
|
|
25
|
+
o(l);
|
|
26
26
|
}
|
|
27
|
-
},
|
|
28
|
-
|
|
27
|
+
}, a = (f) => f.done ? r(f.value) : Promise.resolve(f.value).then(i, u);
|
|
28
|
+
a((n = n.apply(e, t)).next());
|
|
29
29
|
});
|
|
30
|
-
function
|
|
30
|
+
function ue() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Rn(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ln() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
e.forEach(
|
|
38
|
+
function ke(e) {
|
|
39
|
+
e.forEach(Rn);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function rn(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Nn(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function pr(e) {
|
|
48
48
|
return Object.keys(e).length === 0;
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Mn(e, ...t) {
|
|
51
51
|
if (e == null) {
|
|
52
52
|
for (const r of t)
|
|
53
53
|
r(void 0);
|
|
54
|
-
return
|
|
54
|
+
return ue;
|
|
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 mr(e, t, n) {
|
|
60
|
+
e.$$.on_destroy.push(Mn(t, n));
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function R(e, t) {
|
|
63
63
|
e.appendChild(t);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const r =
|
|
65
|
+
function gr(e, t, n) {
|
|
66
|
+
const r = br(e);
|
|
67
67
|
if (!r.getElementById(t)) {
|
|
68
|
-
const
|
|
69
|
-
|
|
68
|
+
const o = G("style");
|
|
69
|
+
o.id = t, o.textContent = n, yr(r, o);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function br(e) {
|
|
73
73
|
if (!e)
|
|
74
74
|
return document;
|
|
75
75
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -79,8 +79,8 @@ function gr(e) {
|
|
|
79
79
|
t
|
|
80
80
|
) : e.ownerDocument;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function yr(e, t) {
|
|
83
|
+
return R(
|
|
84
84
|
/** @type {Document} */
|
|
85
85
|
e.head || e,
|
|
86
86
|
t
|
|
@@ -92,36 +92,36 @@ function de(e, t, n) {
|
|
|
92
92
|
function he(e) {
|
|
93
93
|
e.parentNode && e.parentNode.removeChild(e);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Pn(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 G(e) {
|
|
100
100
|
return document.createElement(e);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function ye(e) {
|
|
103
103
|
return document.createTextNode(e);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
105
|
+
function ve() {
|
|
106
|
+
return ye(" ");
|
|
107
107
|
}
|
|
108
|
-
function
|
|
109
|
-
return
|
|
108
|
+
function vr() {
|
|
109
|
+
return ye("");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function bt(e, t, n, r) {
|
|
112
112
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
113
113
|
}
|
|
114
114
|
function z(e, t, n) {
|
|
115
115
|
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Er(e) {
|
|
118
118
|
return Array.from(e.childNodes);
|
|
119
119
|
}
|
|
120
120
|
function He(e, t) {
|
|
121
121
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
122
122
|
t);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function xr(e) {
|
|
125
125
|
const t = {};
|
|
126
126
|
return e.childNodes.forEach(
|
|
127
127
|
/** @param {Element} node */
|
|
@@ -130,98 +130,98 @@ function Er(e) {
|
|
|
130
130
|
}
|
|
131
131
|
), t;
|
|
132
132
|
}
|
|
133
|
-
let
|
|
134
|
-
function
|
|
135
|
-
|
|
133
|
+
let nt;
|
|
134
|
+
function tt(e) {
|
|
135
|
+
nt = e;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
if (!
|
|
137
|
+
function _r() {
|
|
138
|
+
if (!nt)
|
|
139
139
|
throw new Error("Function called outside component initialization");
|
|
140
|
-
return
|
|
140
|
+
return nt;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
|
|
142
|
+
function Tr(e) {
|
|
143
|
+
_r().$$.on_mount.push(e);
|
|
144
144
|
}
|
|
145
|
-
const Ie = [],
|
|
146
|
-
let
|
|
147
|
-
const
|
|
148
|
-
let
|
|
145
|
+
const Ie = [], Vt = [];
|
|
146
|
+
let Fe = [];
|
|
147
|
+
const hn = [], Sr = /* @__PURE__ */ Promise.resolve();
|
|
148
|
+
let Xt = !1;
|
|
149
149
|
function Br() {
|
|
150
|
-
|
|
150
|
+
Xt || (Xt = !0, Sr.then(k));
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
|
|
152
|
+
function zt(e) {
|
|
153
|
+
Fe.push(e);
|
|
154
154
|
}
|
|
155
|
-
const
|
|
155
|
+
const Dt = /* @__PURE__ */ new Set();
|
|
156
156
|
let Me = 0;
|
|
157
157
|
function k() {
|
|
158
158
|
if (Me !== 0)
|
|
159
159
|
return;
|
|
160
|
-
const e =
|
|
160
|
+
const e = nt;
|
|
161
161
|
do {
|
|
162
162
|
try {
|
|
163
163
|
for (; Me < Ie.length; ) {
|
|
164
164
|
const t = Ie[Me];
|
|
165
|
-
Me++,
|
|
165
|
+
Me++, tt(t), wr(t.$$);
|
|
166
166
|
}
|
|
167
167
|
} catch (t) {
|
|
168
168
|
throw Ie.length = 0, Me = 0, t;
|
|
169
169
|
}
|
|
170
|
-
for (
|
|
171
|
-
|
|
172
|
-
for (let t = 0; t <
|
|
173
|
-
const n =
|
|
174
|
-
|
|
170
|
+
for (tt(null), Ie.length = 0, Me = 0; Vt.length; )
|
|
171
|
+
Vt.pop()();
|
|
172
|
+
for (let t = 0; t < Fe.length; t += 1) {
|
|
173
|
+
const n = Fe[t];
|
|
174
|
+
Dt.has(n) || (Dt.add(n), n());
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
Fe.length = 0;
|
|
177
177
|
} while (Ie.length);
|
|
178
|
-
for (;
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
for (; hn.length; )
|
|
179
|
+
hn.pop()();
|
|
180
|
+
Xt = !1, Dt.clear(), tt(e);
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function wr(e) {
|
|
183
183
|
if (e.fragment !== null) {
|
|
184
|
-
e.update(),
|
|
184
|
+
e.update(), ke(e.before_update);
|
|
185
185
|
const t = e.dirty;
|
|
186
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
186
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(zt);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Ar(e) {
|
|
190
190
|
const t = [], n = [];
|
|
191
|
-
|
|
191
|
+
Fe.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Fe = t;
|
|
192
192
|
}
|
|
193
|
-
const
|
|
194
|
-
function
|
|
195
|
-
e && e.i && (
|
|
193
|
+
const Cr = /* @__PURE__ */ new Set();
|
|
194
|
+
function Hr(e, t) {
|
|
195
|
+
e && e.i && (Cr.delete(e), e.i(t));
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function yt(e) {
|
|
198
198
|
return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
|
|
199
199
|
}
|
|
200
|
-
function
|
|
201
|
-
const { fragment: r, after_update:
|
|
202
|
-
r && r.m(t, n),
|
|
203
|
-
const
|
|
204
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...
|
|
205
|
-
}),
|
|
200
|
+
function Or(e, t, n) {
|
|
201
|
+
const { fragment: r, after_update: o } = e.$$;
|
|
202
|
+
r && r.m(t, n), zt(() => {
|
|
203
|
+
const i = e.$$.on_mount.map(Rn).filter(rn);
|
|
204
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...i) : ke(i), e.$$.on_mount = [];
|
|
205
|
+
}), o.forEach(zt);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Lr(e, t) {
|
|
208
208
|
const n = e.$$;
|
|
209
|
-
n.fragment !== null && (
|
|
209
|
+
n.fragment !== null && (Ar(n.after_update), ke(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Rr(e, t) {
|
|
212
212
|
e.$$.dirty[0] === -1 && (Ie.push(e), Br(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
213
213
|
}
|
|
214
|
-
function
|
|
215
|
-
const f =
|
|
216
|
-
|
|
214
|
+
function Nr(e, t, n, r, o, i, u = null, a = [-1]) {
|
|
215
|
+
const f = nt;
|
|
216
|
+
tt(e);
|
|
217
217
|
const l = e.$$ = {
|
|
218
218
|
fragment: null,
|
|
219
219
|
ctx: [],
|
|
220
220
|
// state
|
|
221
|
-
props:
|
|
222
|
-
update:
|
|
223
|
-
not_equal:
|
|
224
|
-
bound:
|
|
221
|
+
props: i,
|
|
222
|
+
update: ue,
|
|
223
|
+
not_equal: o,
|
|
224
|
+
bound: ln(),
|
|
225
225
|
// lifecycle
|
|
226
226
|
on_mount: [],
|
|
227
227
|
on_destroy: [],
|
|
@@ -230,72 +230,72 @@ function Rr(e, t, n, r, i, o, u = null, s = [-1]) {
|
|
|
230
230
|
after_update: [],
|
|
231
231
|
context: new Map(t.context || (f ? f.$$.context : [])),
|
|
232
232
|
// everything else
|
|
233
|
-
callbacks:
|
|
234
|
-
dirty:
|
|
233
|
+
callbacks: ln(),
|
|
234
|
+
dirty: a,
|
|
235
235
|
skip_bound: !1,
|
|
236
236
|
root: t.target || f.$$.root
|
|
237
237
|
};
|
|
238
238
|
u && u(l.root);
|
|
239
239
|
let d = !1;
|
|
240
|
-
if (l.ctx = n ? n(e, t.props || {}, (
|
|
241
|
-
const B = _.length ? _[0] :
|
|
242
|
-
return l.ctx &&
|
|
243
|
-
}) : [], l.update(), d = !0,
|
|
240
|
+
if (l.ctx = n ? n(e, t.props || {}, (g, y, ..._) => {
|
|
241
|
+
const B = _.length ? _[0] : y;
|
|
242
|
+
return l.ctx && o(l.ctx[g], l.ctx[g] = B) && (!l.skip_bound && l.bound[g] && l.bound[g](B), d && Rr(e, g)), y;
|
|
243
|
+
}) : [], l.update(), d = !0, ke(l.before_update), l.fragment = r ? r(l.ctx) : !1, t.target) {
|
|
244
244
|
if (t.hydrate) {
|
|
245
|
-
const
|
|
246
|
-
l.fragment && l.fragment.l(
|
|
245
|
+
const g = Er(t.target);
|
|
246
|
+
l.fragment && l.fragment.l(g), g.forEach(he);
|
|
247
247
|
} else
|
|
248
248
|
l.fragment && l.fragment.c();
|
|
249
|
-
t.intro &&
|
|
249
|
+
t.intro && Hr(e.$$.fragment), Or(e, t.target, t.anchor), k();
|
|
250
250
|
}
|
|
251
|
-
|
|
251
|
+
tt(f);
|
|
252
252
|
}
|
|
253
|
-
let
|
|
254
|
-
typeof HTMLElement == "function" && (
|
|
253
|
+
let In;
|
|
254
|
+
typeof HTMLElement == "function" && (In = class extends HTMLElement {
|
|
255
255
|
constructor(t, n, r) {
|
|
256
256
|
super();
|
|
257
257
|
/** The Svelte component constructor */
|
|
258
|
-
|
|
258
|
+
se(this, "$$ctor");
|
|
259
259
|
/** Slots */
|
|
260
|
-
|
|
260
|
+
se(this, "$$s");
|
|
261
261
|
/** The Svelte component instance */
|
|
262
|
-
|
|
262
|
+
se(this, "$$c");
|
|
263
263
|
/** Whether or not the custom element is connected */
|
|
264
|
-
|
|
264
|
+
se(this, "$$cn", !1);
|
|
265
265
|
/** Component props data */
|
|
266
|
-
|
|
266
|
+
se(this, "$$d", {});
|
|
267
267
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
268
|
-
|
|
268
|
+
se(this, "$$r", !1);
|
|
269
269
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
270
|
-
|
|
270
|
+
se(this, "$$p_d", {});
|
|
271
271
|
/** @type {Record<string, Function[]>} Event listeners */
|
|
272
|
-
|
|
272
|
+
se(this, "$$l", {});
|
|
273
273
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
274
|
-
|
|
274
|
+
se(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
275
275
|
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
276
276
|
}
|
|
277
277
|
addEventListener(t, n, r) {
|
|
278
278
|
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(n), this.$$c) {
|
|
279
|
-
const
|
|
280
|
-
this.$$l_u.set(n,
|
|
279
|
+
const o = this.$$c.$on(t, n);
|
|
280
|
+
this.$$l_u.set(n, o);
|
|
281
281
|
}
|
|
282
282
|
super.addEventListener(t, n, r);
|
|
283
283
|
}
|
|
284
284
|
removeEventListener(t, n, r) {
|
|
285
285
|
if (super.removeEventListener(t, n, r), this.$$c) {
|
|
286
|
-
const
|
|
287
|
-
|
|
286
|
+
const o = this.$$l_u.get(n);
|
|
287
|
+
o && (o(), this.$$l_u.delete(n));
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
connectedCallback() {
|
|
291
|
-
return
|
|
291
|
+
return It(this, null, function* () {
|
|
292
292
|
if (this.$$cn = !0, !this.$$c) {
|
|
293
|
-
let t = function(
|
|
293
|
+
let t = function(i) {
|
|
294
294
|
return () => {
|
|
295
295
|
let u;
|
|
296
296
|
return {
|
|
297
297
|
c: function() {
|
|
298
|
-
u = G("slot"),
|
|
298
|
+
u = G("slot"), i !== "default" && z(u, "name", i);
|
|
299
299
|
},
|
|
300
300
|
/**
|
|
301
301
|
* @param {HTMLElement} target
|
|
@@ -312,43 +312,43 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
312
312
|
};
|
|
313
313
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
314
314
|
return;
|
|
315
|
-
const n = {}, r =
|
|
316
|
-
for (const
|
|
317
|
-
|
|
318
|
-
for (const
|
|
319
|
-
const u = this.$$g_p(
|
|
320
|
-
u in this.$$d || (this.$$d[u] =
|
|
315
|
+
const n = {}, r = xr(this);
|
|
316
|
+
for (const i of this.$$s)
|
|
317
|
+
i in r && (n[i] = [t(i)]);
|
|
318
|
+
for (const i of this.attributes) {
|
|
319
|
+
const u = this.$$g_p(i.name);
|
|
320
|
+
u in this.$$d || (this.$$d[u] = pt(u, i.value, this.$$p_d, "toProp"));
|
|
321
321
|
}
|
|
322
|
-
for (const
|
|
323
|
-
!(
|
|
322
|
+
for (const i in this.$$p_d)
|
|
323
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
324
324
|
this.$$c = new this.$$ctor({
|
|
325
325
|
target: this.shadowRoot || this,
|
|
326
|
-
props: Mt(
|
|
326
|
+
props: Pt(Mt({}, this.$$d), {
|
|
327
327
|
$$slots: n,
|
|
328
328
|
$$scope: {
|
|
329
329
|
ctx: []
|
|
330
330
|
}
|
|
331
331
|
})
|
|
332
332
|
});
|
|
333
|
-
const
|
|
333
|
+
const o = () => {
|
|
334
334
|
this.$$r = !0;
|
|
335
|
-
for (const
|
|
336
|
-
if (this.$$d[
|
|
337
|
-
const u =
|
|
338
|
-
|
|
339
|
-
this.$$d[
|
|
335
|
+
for (const i in this.$$p_d)
|
|
336
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
337
|
+
const u = pt(
|
|
338
|
+
i,
|
|
339
|
+
this.$$d[i],
|
|
340
340
|
this.$$p_d,
|
|
341
341
|
"toAttribute"
|
|
342
342
|
);
|
|
343
|
-
u == null ? this.removeAttribute(this.$$p_d[
|
|
343
|
+
u == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, u);
|
|
344
344
|
}
|
|
345
345
|
this.$$r = !1;
|
|
346
346
|
};
|
|
347
|
-
this.$$c.$$.after_update.push(
|
|
348
|
-
for (const
|
|
349
|
-
for (const u of this.$$l[
|
|
350
|
-
const
|
|
351
|
-
this.$$l_u.set(u,
|
|
347
|
+
this.$$c.$$.after_update.push(o), o();
|
|
348
|
+
for (const i in this.$$l)
|
|
349
|
+
for (const u of this.$$l[i]) {
|
|
350
|
+
const a = this.$$c.$on(i, u);
|
|
351
|
+
this.$$l_u.set(u, a);
|
|
352
352
|
}
|
|
353
353
|
this.$$l = {};
|
|
354
354
|
}
|
|
@@ -357,8 +357,8 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
357
357
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
358
358
|
// and setting attributes through setAttribute etc, this is helpful
|
|
359
359
|
attributeChangedCallback(t, n, r) {
|
|
360
|
-
var
|
|
361
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
360
|
+
var o;
|
|
361
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = pt(t, r, this.$$p_d, "toProp"), (o = this.$$c) == null || o.$set({ [t]: this.$$d[t] }));
|
|
362
362
|
}
|
|
363
363
|
disconnectedCallback() {
|
|
364
364
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -371,13 +371,13 @@ typeof HTMLElement == "function" && (Pn = class extends HTMLElement {
|
|
|
371
371
|
) || t;
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
|
-
function
|
|
375
|
-
var
|
|
376
|
-
const
|
|
377
|
-
if (t =
|
|
374
|
+
function pt(e, t, n, r) {
|
|
375
|
+
var i;
|
|
376
|
+
const o = (i = n[e]) == null ? void 0 : i.type;
|
|
377
|
+
if (t = o === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
378
378
|
return t;
|
|
379
379
|
if (r === "toAttribute")
|
|
380
|
-
switch (
|
|
380
|
+
switch (o) {
|
|
381
381
|
case "Object":
|
|
382
382
|
case "Array":
|
|
383
383
|
return t == null ? null : JSON.stringify(t);
|
|
@@ -389,7 +389,7 @@ function ct(e, t, n, r) {
|
|
|
389
389
|
return t;
|
|
390
390
|
}
|
|
391
391
|
else
|
|
392
|
-
switch (
|
|
392
|
+
switch (o) {
|
|
393
393
|
case "Object":
|
|
394
394
|
case "Array":
|
|
395
395
|
return t && JSON.parse(t);
|
|
@@ -401,38 +401,38 @@ function ct(e, t, n, r) {
|
|
|
401
401
|
return t;
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
let u = class extends
|
|
404
|
+
function Mr(e, t, n, r, o, i) {
|
|
405
|
+
let u = class extends In {
|
|
406
406
|
constructor() {
|
|
407
|
-
super(e, n,
|
|
407
|
+
super(e, n, o), this.$$p_d = t;
|
|
408
408
|
}
|
|
409
409
|
static get observedAttributes() {
|
|
410
410
|
return Object.keys(t).map(
|
|
411
|
-
(
|
|
411
|
+
(a) => (t[a].attribute || a).toLowerCase()
|
|
412
412
|
);
|
|
413
413
|
}
|
|
414
414
|
};
|
|
415
|
-
return Object.keys(t).forEach((
|
|
416
|
-
Object.defineProperty(u.prototype,
|
|
415
|
+
return Object.keys(t).forEach((a) => {
|
|
416
|
+
Object.defineProperty(u.prototype, a, {
|
|
417
417
|
get() {
|
|
418
|
-
return this.$$c &&
|
|
418
|
+
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
419
419
|
},
|
|
420
420
|
set(f) {
|
|
421
421
|
var l;
|
|
422
|
-
f =
|
|
422
|
+
f = pt(a, f, t), this.$$d[a] = f, (l = this.$$c) == null || l.$set({ [a]: f });
|
|
423
423
|
}
|
|
424
424
|
});
|
|
425
|
-
}), r.forEach((
|
|
426
|
-
Object.defineProperty(u.prototype,
|
|
425
|
+
}), r.forEach((a) => {
|
|
426
|
+
Object.defineProperty(u.prototype, a, {
|
|
427
427
|
get() {
|
|
428
428
|
var f;
|
|
429
|
-
return (f = this.$$c) == null ? void 0 : f[
|
|
429
|
+
return (f = this.$$c) == null ? void 0 : f[a];
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
432
|
}), e.element = /** @type {any} */
|
|
433
433
|
u, u;
|
|
434
434
|
}
|
|
435
|
-
class
|
|
435
|
+
class Pr {
|
|
436
436
|
constructor() {
|
|
437
437
|
/**
|
|
438
438
|
* ### PRIVATE API
|
|
@@ -441,7 +441,7 @@ class Mr {
|
|
|
441
441
|
*
|
|
442
442
|
* @type {any}
|
|
443
443
|
*/
|
|
444
|
-
|
|
444
|
+
se(this, "$$");
|
|
445
445
|
/**
|
|
446
446
|
* ### PRIVATE API
|
|
447
447
|
*
|
|
@@ -449,11 +449,11 @@ class Mr {
|
|
|
449
449
|
*
|
|
450
450
|
* @type {any}
|
|
451
451
|
*/
|
|
452
|
-
|
|
452
|
+
se(this, "$$set");
|
|
453
453
|
}
|
|
454
454
|
/** @returns {void} */
|
|
455
455
|
$destroy() {
|
|
456
|
-
|
|
456
|
+
Lr(this, 1), this.$destroy = ue;
|
|
457
457
|
}
|
|
458
458
|
/**
|
|
459
459
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -462,12 +462,12 @@ class Mr {
|
|
|
462
462
|
* @returns {() => void}
|
|
463
463
|
*/
|
|
464
464
|
$on(t, n) {
|
|
465
|
-
if (!
|
|
466
|
-
return
|
|
465
|
+
if (!rn(n))
|
|
466
|
+
return ue;
|
|
467
467
|
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
468
468
|
return r.push(n), () => {
|
|
469
|
-
const
|
|
470
|
-
|
|
469
|
+
const o = r.indexOf(n);
|
|
470
|
+
o !== -1 && r.splice(o, 1);
|
|
471
471
|
};
|
|
472
472
|
}
|
|
473
473
|
/**
|
|
@@ -475,47 +475,76 @@ class Mr {
|
|
|
475
475
|
* @returns {void}
|
|
476
476
|
*/
|
|
477
477
|
$set(t) {
|
|
478
|
-
this.$$set && !
|
|
478
|
+
this.$$set && !pr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
const
|
|
482
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
483
|
-
|
|
481
|
+
const Ir = "4";
|
|
482
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ir);
|
|
483
|
+
const De = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
484
|
+
function Dr(e, t) {
|
|
484
485
|
if (e) {
|
|
485
486
|
const n = document.createElement("style");
|
|
486
487
|
n.innerHTML = t, e.appendChild(n);
|
|
487
488
|
}
|
|
488
489
|
}
|
|
489
|
-
function
|
|
490
|
+
function Fr(e, t) {
|
|
490
491
|
if (!e || !t)
|
|
491
492
|
return;
|
|
492
493
|
const n = new URL(t);
|
|
493
494
|
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
494
|
-
const
|
|
495
|
-
|
|
495
|
+
const o = document.createElement("style");
|
|
496
|
+
o.innerHTML = r, e && e.appendChild(o);
|
|
496
497
|
}).catch((r) => {
|
|
497
498
|
console.error("There was an error while trying to load client styling from URL", r);
|
|
498
499
|
});
|
|
499
500
|
}
|
|
500
|
-
function
|
|
501
|
-
if (window.emMessageBus)
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
501
|
+
function Ur(e, t, n, r = !1) {
|
|
502
|
+
if (!window.emMessageBus)
|
|
503
|
+
return;
|
|
504
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !r)
|
|
505
|
+
return n = Gr(e, t), n;
|
|
506
|
+
window[De] || (window[De] = {}), n = jr(e, t);
|
|
507
|
+
const i = n.unsubscribe.bind(n), u = () => {
|
|
508
|
+
if (window[De][t]) {
|
|
509
|
+
const a = window[De][t];
|
|
510
|
+
a.refCount > 1 ? a.refCount = a.refCount - 1 : delete window[De][t];
|
|
511
|
+
}
|
|
512
|
+
i();
|
|
513
|
+
};
|
|
514
|
+
return n.unsubscribe = u, n;
|
|
515
|
+
}
|
|
516
|
+
function Gr(e, t) {
|
|
517
|
+
const n = document.createElement("style");
|
|
518
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
519
|
+
e && (n.innerHTML = r, e.appendChild(n));
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
function jr(e, t) {
|
|
523
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
524
|
+
var a;
|
|
525
|
+
if (!e)
|
|
526
|
+
return;
|
|
527
|
+
const r = e.getRootNode(), o = window[De];
|
|
528
|
+
let i = (a = o[t]) == null ? void 0 : a.sheet;
|
|
529
|
+
i ? o[t].refCount = o[t].refCount + 1 : (i = new CSSStyleSheet(), i.replaceSync(n), o[t] = {
|
|
530
|
+
sheet: i,
|
|
531
|
+
refCount: 1
|
|
505
532
|
});
|
|
506
|
-
|
|
533
|
+
const u = r.adoptedStyleSheets || [];
|
|
534
|
+
u.includes(i) || (r.adoptedStyleSheets = [...u, i]);
|
|
535
|
+
});
|
|
507
536
|
}
|
|
508
537
|
const Pe = [];
|
|
509
|
-
function
|
|
538
|
+
function $r(e, t) {
|
|
510
539
|
return {
|
|
511
|
-
subscribe:
|
|
540
|
+
subscribe: _t(e, t).subscribe
|
|
512
541
|
};
|
|
513
542
|
}
|
|
514
|
-
function
|
|
543
|
+
function _t(e, t = ue) {
|
|
515
544
|
let n;
|
|
516
545
|
const r = /* @__PURE__ */ new Set();
|
|
517
|
-
function
|
|
518
|
-
if (
|
|
546
|
+
function o(a) {
|
|
547
|
+
if (Nn(e, a) && (e = a, n)) {
|
|
519
548
|
const f = !Pe.length;
|
|
520
549
|
for (const l of r)
|
|
521
550
|
l[1](), Pe.push(l, e);
|
|
@@ -526,135 +555,135 @@ function vt(e, t = ae) {
|
|
|
526
555
|
}
|
|
527
556
|
}
|
|
528
557
|
}
|
|
529
|
-
function
|
|
530
|
-
|
|
558
|
+
function i(a) {
|
|
559
|
+
o(a(e));
|
|
531
560
|
}
|
|
532
|
-
function u(
|
|
533
|
-
const l = [
|
|
534
|
-
return r.add(l), r.size === 1 && (n = t(
|
|
561
|
+
function u(a, f = ue) {
|
|
562
|
+
const l = [a, f];
|
|
563
|
+
return r.add(l), r.size === 1 && (n = t(o, i) || ue), a(e), () => {
|
|
535
564
|
r.delete(l), r.size === 0 && n && (n(), n = null);
|
|
536
565
|
};
|
|
537
566
|
}
|
|
538
|
-
return { set:
|
|
567
|
+
return { set: o, update: i, subscribe: u };
|
|
539
568
|
}
|
|
540
|
-
function
|
|
541
|
-
const r = !Array.isArray(e),
|
|
542
|
-
if (!
|
|
569
|
+
function Ve(e, t, n) {
|
|
570
|
+
const r = !Array.isArray(e), o = r ? [e] : e;
|
|
571
|
+
if (!o.every(Boolean))
|
|
543
572
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
544
|
-
const
|
|
545
|
-
return
|
|
573
|
+
const i = t.length < 2;
|
|
574
|
+
return $r(n, (u, a) => {
|
|
546
575
|
let f = !1;
|
|
547
576
|
const l = [];
|
|
548
|
-
let d = 0,
|
|
549
|
-
const
|
|
577
|
+
let d = 0, g = ue;
|
|
578
|
+
const y = () => {
|
|
550
579
|
if (d)
|
|
551
580
|
return;
|
|
552
|
-
|
|
553
|
-
const B = t(r ? l[0] : l, u,
|
|
554
|
-
|
|
555
|
-
}, _ =
|
|
556
|
-
(B,
|
|
581
|
+
g();
|
|
582
|
+
const B = t(r ? l[0] : l, u, a);
|
|
583
|
+
i ? u(B) : g = rn(B) ? B : ue;
|
|
584
|
+
}, _ = o.map(
|
|
585
|
+
(B, P) => Mn(
|
|
557
586
|
B,
|
|
558
587
|
(j) => {
|
|
559
|
-
l[
|
|
588
|
+
l[P] = j, d &= ~(1 << P), f && y();
|
|
560
589
|
},
|
|
561
590
|
() => {
|
|
562
|
-
d |= 1 <<
|
|
591
|
+
d |= 1 << P;
|
|
563
592
|
}
|
|
564
593
|
)
|
|
565
594
|
);
|
|
566
|
-
return f = !0,
|
|
567
|
-
|
|
595
|
+
return f = !0, y(), function() {
|
|
596
|
+
ke(_), g(), f = !1;
|
|
568
597
|
};
|
|
569
598
|
});
|
|
570
599
|
}
|
|
571
|
-
var
|
|
572
|
-
function
|
|
600
|
+
var kr = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {};
|
|
601
|
+
function Vr(e) {
|
|
573
602
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
574
603
|
}
|
|
575
|
-
var
|
|
576
|
-
return
|
|
604
|
+
var Xr = function(t) {
|
|
605
|
+
return zr(t) && !Wr(t);
|
|
577
606
|
};
|
|
578
|
-
function
|
|
607
|
+
function zr(e) {
|
|
579
608
|
return !!e && typeof e == "object";
|
|
580
609
|
}
|
|
581
|
-
function
|
|
610
|
+
function Wr(e) {
|
|
582
611
|
var t = Object.prototype.toString.call(e);
|
|
583
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
612
|
+
return t === "[object RegExp]" || t === "[object Date]" || Qr(e);
|
|
584
613
|
}
|
|
585
|
-
var
|
|
586
|
-
function
|
|
587
|
-
return e.$$typeof ===
|
|
614
|
+
var Zr = typeof Symbol == "function" && Symbol.for, qr = Zr ? Symbol.for("react.element") : 60103;
|
|
615
|
+
function Qr(e) {
|
|
616
|
+
return e.$$typeof === qr;
|
|
588
617
|
}
|
|
589
|
-
function
|
|
618
|
+
function Jr(e) {
|
|
590
619
|
return Array.isArray(e) ? [] : {};
|
|
591
620
|
}
|
|
592
|
-
function
|
|
593
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
621
|
+
function rt(e, t) {
|
|
622
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ue(Jr(e), e, t) : e;
|
|
594
623
|
}
|
|
595
|
-
function
|
|
624
|
+
function Yr(e, t, n) {
|
|
596
625
|
return e.concat(t).map(function(r) {
|
|
597
|
-
return
|
|
626
|
+
return rt(r, n);
|
|
598
627
|
});
|
|
599
628
|
}
|
|
600
|
-
function
|
|
629
|
+
function Kr(e, t) {
|
|
601
630
|
if (!t.customMerge)
|
|
602
|
-
return
|
|
631
|
+
return Ue;
|
|
603
632
|
var n = t.customMerge(e);
|
|
604
|
-
return typeof n == "function" ? n :
|
|
633
|
+
return typeof n == "function" ? n : Ue;
|
|
605
634
|
}
|
|
606
|
-
function
|
|
635
|
+
function eo(e) {
|
|
607
636
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
608
637
|
return Object.propertyIsEnumerable.call(e, t);
|
|
609
638
|
}) : [];
|
|
610
639
|
}
|
|
611
|
-
function
|
|
612
|
-
return Object.keys(e).concat(
|
|
640
|
+
function cn(e) {
|
|
641
|
+
return Object.keys(e).concat(eo(e));
|
|
613
642
|
}
|
|
614
|
-
function
|
|
643
|
+
function Dn(e, t) {
|
|
615
644
|
try {
|
|
616
645
|
return t in e;
|
|
617
646
|
} catch (n) {
|
|
618
647
|
return !1;
|
|
619
648
|
}
|
|
620
649
|
}
|
|
621
|
-
function
|
|
622
|
-
return
|
|
650
|
+
function to(e, t) {
|
|
651
|
+
return Dn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
623
652
|
}
|
|
624
|
-
function
|
|
653
|
+
function no(e, t, n) {
|
|
625
654
|
var r = {};
|
|
626
|
-
return n.isMergeableObject(e) &&
|
|
627
|
-
r[
|
|
628
|
-
}),
|
|
629
|
-
|
|
655
|
+
return n.isMergeableObject(e) && cn(e).forEach(function(o) {
|
|
656
|
+
r[o] = rt(e[o], n);
|
|
657
|
+
}), cn(t).forEach(function(o) {
|
|
658
|
+
to(e, o) || (Dn(e, o) && n.isMergeableObject(t[o]) ? r[o] = Kr(o, n)(e[o], t[o], n) : r[o] = rt(t[o], n));
|
|
630
659
|
}), r;
|
|
631
660
|
}
|
|
632
|
-
function
|
|
633
|
-
n = n || {}, n.arrayMerge = n.arrayMerge ||
|
|
634
|
-
var r = Array.isArray(t),
|
|
635
|
-
return
|
|
661
|
+
function Ue(e, t, n) {
|
|
662
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Yr, n.isMergeableObject = n.isMergeableObject || Xr, n.cloneUnlessOtherwiseSpecified = rt;
|
|
663
|
+
var r = Array.isArray(t), o = Array.isArray(e), i = r === o;
|
|
664
|
+
return i ? r ? n.arrayMerge(e, t, n) : no(e, t, n) : rt(t, n);
|
|
636
665
|
}
|
|
637
|
-
|
|
666
|
+
Ue.all = function(t, n) {
|
|
638
667
|
if (!Array.isArray(t))
|
|
639
668
|
throw new Error("first argument should be an array");
|
|
640
|
-
return t.reduce(function(r,
|
|
641
|
-
return
|
|
669
|
+
return t.reduce(function(r, o) {
|
|
670
|
+
return Ue(r, o, n);
|
|
642
671
|
}, {});
|
|
643
672
|
};
|
|
644
|
-
var
|
|
645
|
-
const
|
|
646
|
-
var
|
|
647
|
-
return
|
|
673
|
+
var ro = Ue, oo = ro;
|
|
674
|
+
const io = /* @__PURE__ */ Vr(oo);
|
|
675
|
+
var Wt = function(e, t) {
|
|
676
|
+
return Wt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
648
677
|
n.__proto__ = r;
|
|
649
678
|
} || function(n, r) {
|
|
650
|
-
for (var
|
|
651
|
-
Object.prototype.hasOwnProperty.call(r,
|
|
652
|
-
},
|
|
679
|
+
for (var o in r)
|
|
680
|
+
Object.prototype.hasOwnProperty.call(r, o) && (n[o] = r[o]);
|
|
681
|
+
}, Wt(e, t);
|
|
653
682
|
};
|
|
654
|
-
function
|
|
683
|
+
function Tt(e, t) {
|
|
655
684
|
if (typeof t != "function" && t !== null)
|
|
656
685
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
657
|
-
|
|
686
|
+
Wt(e, t);
|
|
658
687
|
function n() {
|
|
659
688
|
this.constructor = e;
|
|
660
689
|
}
|
|
@@ -662,60 +691,60 @@ function Et(e, t) {
|
|
|
662
691
|
}
|
|
663
692
|
var fe = function() {
|
|
664
693
|
return fe = Object.assign || function(t) {
|
|
665
|
-
for (var n, r = 1,
|
|
694
|
+
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
666
695
|
n = arguments[r];
|
|
667
|
-
for (var
|
|
668
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
696
|
+
for (var i in n)
|
|
697
|
+
Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
669
698
|
}
|
|
670
699
|
return t;
|
|
671
700
|
}, fe.apply(this, arguments);
|
|
672
701
|
};
|
|
673
|
-
function
|
|
702
|
+
function ao(e, t) {
|
|
674
703
|
var n = {};
|
|
675
704
|
for (var r in e)
|
|
676
705
|
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
677
706
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
678
|
-
for (var
|
|
679
|
-
t.indexOf(r[
|
|
707
|
+
for (var o = 0, r = Object.getOwnPropertySymbols(e); o < r.length; o++)
|
|
708
|
+
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
680
709
|
return n;
|
|
681
710
|
}
|
|
682
|
-
function
|
|
711
|
+
function Ft(e, t, n) {
|
|
683
712
|
if (n || arguments.length === 2)
|
|
684
|
-
for (var r = 0,
|
|
685
|
-
(
|
|
686
|
-
return e.concat(
|
|
713
|
+
for (var r = 0, o = t.length, i; r < o; r++)
|
|
714
|
+
(i || !(r in t)) && (i || (i = Array.prototype.slice.call(t, 0, r)), i[r] = t[r]);
|
|
715
|
+
return e.concat(i || Array.prototype.slice.call(t));
|
|
687
716
|
}
|
|
688
|
-
function
|
|
689
|
-
var n = t && t.cache ? t.cache :
|
|
690
|
-
return
|
|
717
|
+
function Ut(e, t) {
|
|
718
|
+
var n = t && t.cache ? t.cache : po, r = t && t.serializer ? t.serializer : co, o = t && t.strategy ? t.strategy : lo;
|
|
719
|
+
return o(e, {
|
|
691
720
|
cache: n,
|
|
692
721
|
serializer: r
|
|
693
722
|
});
|
|
694
723
|
}
|
|
695
|
-
function
|
|
724
|
+
function so(e) {
|
|
696
725
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
697
726
|
}
|
|
698
|
-
function
|
|
699
|
-
var
|
|
700
|
-
return typeof
|
|
727
|
+
function uo(e, t, n, r) {
|
|
728
|
+
var o = so(r) ? r : n(r), i = t.get(o);
|
|
729
|
+
return typeof i == "undefined" && (i = e.call(this, r), t.set(o, i)), i;
|
|
701
730
|
}
|
|
702
|
-
function
|
|
703
|
-
var r = Array.prototype.slice.call(arguments, 3),
|
|
704
|
-
return typeof
|
|
731
|
+
function Fn(e, t, n) {
|
|
732
|
+
var r = Array.prototype.slice.call(arguments, 3), o = n(r), i = t.get(o);
|
|
733
|
+
return typeof i == "undefined" && (i = e.apply(this, r), t.set(o, i)), i;
|
|
705
734
|
}
|
|
706
|
-
function
|
|
707
|
-
return n.bind(t, e, r,
|
|
735
|
+
function Un(e, t, n, r, o) {
|
|
736
|
+
return n.bind(t, e, r, o);
|
|
708
737
|
}
|
|
709
|
-
function
|
|
710
|
-
var n = e.length === 1 ?
|
|
711
|
-
return
|
|
738
|
+
function lo(e, t) {
|
|
739
|
+
var n = e.length === 1 ? uo : Fn;
|
|
740
|
+
return Un(e, this, n, t.cache.create(), t.serializer);
|
|
712
741
|
}
|
|
713
|
-
function
|
|
714
|
-
return
|
|
742
|
+
function ho(e, t) {
|
|
743
|
+
return Un(e, this, Fn, t.cache.create(), t.serializer);
|
|
715
744
|
}
|
|
716
|
-
var
|
|
745
|
+
var co = function() {
|
|
717
746
|
return JSON.stringify(arguments);
|
|
718
|
-
},
|
|
747
|
+
}, fo = (
|
|
719
748
|
/** @class */
|
|
720
749
|
function() {
|
|
721
750
|
function e() {
|
|
@@ -727,21 +756,21 @@ var ui = function() {
|
|
|
727
756
|
this.cache[t] = n;
|
|
728
757
|
}, e;
|
|
729
758
|
}()
|
|
730
|
-
),
|
|
759
|
+
), po = {
|
|
731
760
|
create: function() {
|
|
732
|
-
return new
|
|
761
|
+
return new fo();
|
|
733
762
|
}
|
|
734
|
-
},
|
|
735
|
-
variadic:
|
|
736
|
-
},
|
|
737
|
-
return
|
|
738
|
-
for (var n, r = 1,
|
|
763
|
+
}, Gt = {
|
|
764
|
+
variadic: ho
|
|
765
|
+
}, vt = function() {
|
|
766
|
+
return vt = Object.assign || function(t) {
|
|
767
|
+
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
739
768
|
n = arguments[r];
|
|
740
|
-
for (var
|
|
741
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
769
|
+
for (var i in n)
|
|
770
|
+
Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
742
771
|
}
|
|
743
772
|
return t;
|
|
744
|
-
},
|
|
773
|
+
}, vt.apply(this, arguments);
|
|
745
774
|
};
|
|
746
775
|
var H;
|
|
747
776
|
(function(e) {
|
|
@@ -751,47 +780,47 @@ var D;
|
|
|
751
780
|
(function(e) {
|
|
752
781
|
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";
|
|
753
782
|
})(D || (D = {}));
|
|
754
|
-
var
|
|
783
|
+
var Ge;
|
|
755
784
|
(function(e) {
|
|
756
785
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
757
|
-
})(
|
|
758
|
-
function
|
|
786
|
+
})(Ge || (Ge = {}));
|
|
787
|
+
function fn(e) {
|
|
759
788
|
return e.type === D.literal;
|
|
760
789
|
}
|
|
761
|
-
function
|
|
790
|
+
function mo(e) {
|
|
762
791
|
return e.type === D.argument;
|
|
763
792
|
}
|
|
764
|
-
function
|
|
793
|
+
function Gn(e) {
|
|
765
794
|
return e.type === D.number;
|
|
766
795
|
}
|
|
767
|
-
function
|
|
796
|
+
function jn(e) {
|
|
768
797
|
return e.type === D.date;
|
|
769
798
|
}
|
|
770
|
-
function
|
|
799
|
+
function $n(e) {
|
|
771
800
|
return e.type === D.time;
|
|
772
801
|
}
|
|
773
|
-
function
|
|
802
|
+
function kn(e) {
|
|
774
803
|
return e.type === D.select;
|
|
775
804
|
}
|
|
776
|
-
function
|
|
805
|
+
function Vn(e) {
|
|
777
806
|
return e.type === D.plural;
|
|
778
807
|
}
|
|
779
|
-
function
|
|
808
|
+
function go(e) {
|
|
780
809
|
return e.type === D.pound;
|
|
781
810
|
}
|
|
782
|
-
function
|
|
811
|
+
function Xn(e) {
|
|
783
812
|
return e.type === D.tag;
|
|
784
813
|
}
|
|
785
|
-
function
|
|
786
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
814
|
+
function zn(e) {
|
|
815
|
+
return !!(e && typeof e == "object" && e.type === Ge.number);
|
|
787
816
|
}
|
|
788
|
-
function
|
|
789
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
817
|
+
function Zt(e) {
|
|
818
|
+
return !!(e && typeof e == "object" && e.type === Ge.dateTime);
|
|
790
819
|
}
|
|
791
|
-
var
|
|
792
|
-
function
|
|
820
|
+
var Wn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bo = /(?:[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;
|
|
821
|
+
function yo(e) {
|
|
793
822
|
var t = {};
|
|
794
|
-
return e.replace(
|
|
823
|
+
return e.replace(bo, function(n) {
|
|
795
824
|
var r = n.length;
|
|
796
825
|
switch (n[0]) {
|
|
797
826
|
case "G":
|
|
@@ -882,44 +911,44 @@ function pi(e) {
|
|
|
882
911
|
}
|
|
883
912
|
var F = function() {
|
|
884
913
|
return F = Object.assign || function(t) {
|
|
885
|
-
for (var n, r = 1,
|
|
914
|
+
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
886
915
|
n = arguments[r];
|
|
887
|
-
for (var
|
|
888
|
-
Object.prototype.hasOwnProperty.call(n,
|
|
916
|
+
for (var i in n)
|
|
917
|
+
Object.prototype.hasOwnProperty.call(n, i) && (t[i] = n[i]);
|
|
889
918
|
}
|
|
890
919
|
return t;
|
|
891
920
|
}, F.apply(this, arguments);
|
|
892
921
|
};
|
|
893
|
-
var
|
|
894
|
-
function
|
|
922
|
+
var vo = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
923
|
+
function Eo(e) {
|
|
895
924
|
if (e.length === 0)
|
|
896
925
|
throw new Error("Number skeleton cannot be empty");
|
|
897
|
-
for (var t = e.split(
|
|
898
|
-
return
|
|
899
|
-
}), n = [], r = 0,
|
|
900
|
-
var
|
|
926
|
+
for (var t = e.split(vo).filter(function(y) {
|
|
927
|
+
return y.length > 0;
|
|
928
|
+
}), n = [], r = 0, o = t; r < o.length; r++) {
|
|
929
|
+
var i = o[r], u = i.split("/");
|
|
901
930
|
if (u.length === 0)
|
|
902
931
|
throw new Error("Invalid number skeleton");
|
|
903
|
-
for (var
|
|
904
|
-
var
|
|
905
|
-
if (
|
|
932
|
+
for (var a = u[0], f = u.slice(1), l = 0, d = f; l < d.length; l++) {
|
|
933
|
+
var g = d[l];
|
|
934
|
+
if (g.length === 0)
|
|
906
935
|
throw new Error("Invalid number skeleton");
|
|
907
936
|
}
|
|
908
|
-
n.push({ stem:
|
|
937
|
+
n.push({ stem: a, options: f });
|
|
909
938
|
}
|
|
910
939
|
return n;
|
|
911
940
|
}
|
|
912
|
-
function
|
|
941
|
+
function xo(e) {
|
|
913
942
|
return e.replace(/^(.*?)-/, "");
|
|
914
943
|
}
|
|
915
|
-
var
|
|
916
|
-
function
|
|
944
|
+
var dn = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Zn = /^(@+)?(\+|#+)?[rs]?$/g, _o = /(\*)(0+)|(#+)(0+)|(0+)/g, qn = /^(0+)$/;
|
|
945
|
+
function pn(e) {
|
|
917
946
|
var t = {};
|
|
918
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
919
|
-
return typeof
|
|
947
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Zn, function(n, r, o) {
|
|
948
|
+
return typeof o != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : o === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof o == "string" ? o.length : 0)), "";
|
|
920
949
|
}), t;
|
|
921
950
|
}
|
|
922
|
-
function
|
|
951
|
+
function Qn(e) {
|
|
923
952
|
switch (e) {
|
|
924
953
|
case "sign-auto":
|
|
925
954
|
return {
|
|
@@ -959,7 +988,7 @@ function qn(e) {
|
|
|
959
988
|
};
|
|
960
989
|
}
|
|
961
990
|
}
|
|
962
|
-
function
|
|
991
|
+
function To(e) {
|
|
963
992
|
var t;
|
|
964
993
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
965
994
|
notation: "engineering"
|
|
@@ -967,20 +996,20 @@ function vi(e) {
|
|
|
967
996
|
notation: "scientific"
|
|
968
997
|
}, e = e.slice(1)), t) {
|
|
969
998
|
var n = e.slice(0, 2);
|
|
970
|
-
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)), !qn.test(e))
|
|
971
1000
|
throw new Error("Malformed concise eng/scientific notation");
|
|
972
1001
|
t.minimumIntegerDigits = e.length;
|
|
973
1002
|
}
|
|
974
1003
|
return t;
|
|
975
1004
|
}
|
|
976
|
-
function
|
|
977
|
-
var t = {}, n =
|
|
1005
|
+
function mn(e) {
|
|
1006
|
+
var t = {}, n = Qn(e);
|
|
978
1007
|
return n || t;
|
|
979
1008
|
}
|
|
980
|
-
function
|
|
1009
|
+
function So(e) {
|
|
981
1010
|
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
982
|
-
var
|
|
983
|
-
switch (
|
|
1011
|
+
var o = r[n];
|
|
1012
|
+
switch (o.stem) {
|
|
984
1013
|
case "percent":
|
|
985
1014
|
case "%":
|
|
986
1015
|
t.style = "percent";
|
|
@@ -989,7 +1018,7 @@ function Ei(e) {
|
|
|
989
1018
|
t.style = "percent", t.scale = 100;
|
|
990
1019
|
continue;
|
|
991
1020
|
case "currency":
|
|
992
|
-
t.style = "currency", t.currency =
|
|
1021
|
+
t.style = "currency", t.currency = o.options[0];
|
|
993
1022
|
continue;
|
|
994
1023
|
case "group-off":
|
|
995
1024
|
case ",_":
|
|
@@ -1001,7 +1030,7 @@ function Ei(e) {
|
|
|
1001
1030
|
continue;
|
|
1002
1031
|
case "measure-unit":
|
|
1003
1032
|
case "unit":
|
|
1004
|
-
t.style = "unit", t.unit =
|
|
1033
|
+
t.style = "unit", t.unit = xo(o.options[0]);
|
|
1005
1034
|
continue;
|
|
1006
1035
|
case "compact-short":
|
|
1007
1036
|
case "K":
|
|
@@ -1012,13 +1041,13 @@ function Ei(e) {
|
|
|
1012
1041
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1013
1042
|
continue;
|
|
1014
1043
|
case "scientific":
|
|
1015
|
-
t = F(F(F({}, t), { notation: "scientific" }),
|
|
1016
|
-
return F(F({}, f),
|
|
1044
|
+
t = F(F(F({}, t), { notation: "scientific" }), o.options.reduce(function(f, l) {
|
|
1045
|
+
return F(F({}, f), mn(l));
|
|
1017
1046
|
}, {}));
|
|
1018
1047
|
continue;
|
|
1019
1048
|
case "engineering":
|
|
1020
|
-
t = F(F(F({}, t), { notation: "engineering" }),
|
|
1021
|
-
return F(F({}, f),
|
|
1049
|
+
t = F(F(F({}, t), { notation: "engineering" }), o.options.reduce(function(f, l) {
|
|
1050
|
+
return F(F({}, f), mn(l));
|
|
1022
1051
|
}, {}));
|
|
1023
1052
|
continue;
|
|
1024
1053
|
case "notation-simple":
|
|
@@ -1037,7 +1066,7 @@ function Ei(e) {
|
|
|
1037
1066
|
t.currencyDisplay = "symbol";
|
|
1038
1067
|
continue;
|
|
1039
1068
|
case "scale":
|
|
1040
|
-
t.scale = parseFloat(
|
|
1069
|
+
t.scale = parseFloat(o.options[0]);
|
|
1041
1070
|
continue;
|
|
1042
1071
|
case "rounding-mode-floor":
|
|
1043
1072
|
t.roundingMode = "floor";
|
|
@@ -1061,13 +1090,13 @@ function Ei(e) {
|
|
|
1061
1090
|
t.roundingMode = "halfExpand";
|
|
1062
1091
|
continue;
|
|
1063
1092
|
case "integer-width":
|
|
1064
|
-
if (
|
|
1093
|
+
if (o.options.length > 1)
|
|
1065
1094
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1066
|
-
|
|
1095
|
+
o.options[0].replace(_o, function(f, l, d, g, y, _) {
|
|
1067
1096
|
if (l)
|
|
1068
1097
|
t.minimumIntegerDigits = d.length;
|
|
1069
1098
|
else {
|
|
1070
|
-
if (
|
|
1099
|
+
if (g && y)
|
|
1071
1100
|
throw new Error("We currently do not support maximum integer digits");
|
|
1072
1101
|
if (_)
|
|
1073
1102
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1076,32 +1105,32 @@ function Ei(e) {
|
|
|
1076
1105
|
});
|
|
1077
1106
|
continue;
|
|
1078
1107
|
}
|
|
1079
|
-
if (
|
|
1080
|
-
t.minimumIntegerDigits =
|
|
1108
|
+
if (qn.test(o.stem)) {
|
|
1109
|
+
t.minimumIntegerDigits = o.stem.length;
|
|
1081
1110
|
continue;
|
|
1082
1111
|
}
|
|
1083
|
-
if (
|
|
1084
|
-
if (
|
|
1112
|
+
if (dn.test(o.stem)) {
|
|
1113
|
+
if (o.options.length > 1)
|
|
1085
1114
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1086
|
-
|
|
1087
|
-
return d === "*" ? t.minimumFractionDigits = l.length :
|
|
1115
|
+
o.stem.replace(dn, function(f, l, d, g, y, _) {
|
|
1116
|
+
return d === "*" ? t.minimumFractionDigits = l.length : g && g[0] === "#" ? t.maximumFractionDigits = g.length : y && _ ? (t.minimumFractionDigits = y.length, t.maximumFractionDigits = y.length + _.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1088
1117
|
});
|
|
1089
|
-
var
|
|
1090
|
-
|
|
1118
|
+
var i = o.options[0];
|
|
1119
|
+
i === "w" ? t = F(F({}, t), { trailingZeroDisplay: "stripIfInteger" }) : i && (t = F(F({}, t), pn(i)));
|
|
1091
1120
|
continue;
|
|
1092
1121
|
}
|
|
1093
|
-
if (
|
|
1094
|
-
t = F(F({}, t),
|
|
1122
|
+
if (Zn.test(o.stem)) {
|
|
1123
|
+
t = F(F({}, t), pn(o.stem));
|
|
1095
1124
|
continue;
|
|
1096
1125
|
}
|
|
1097
|
-
var u =
|
|
1126
|
+
var u = Qn(o.stem);
|
|
1098
1127
|
u && (t = F(F({}, t), u));
|
|
1099
|
-
var
|
|
1100
|
-
|
|
1128
|
+
var a = To(o.stem);
|
|
1129
|
+
a && (t = F(F({}, t), a));
|
|
1101
1130
|
}
|
|
1102
1131
|
return t;
|
|
1103
1132
|
}
|
|
1104
|
-
var
|
|
1133
|
+
var dt = {
|
|
1105
1134
|
"001": [
|
|
1106
1135
|
"H",
|
|
1107
1136
|
"h"
|
|
@@ -2516,23 +2545,23 @@ var ht = {
|
|
|
2516
2545
|
"h"
|
|
2517
2546
|
]
|
|
2518
2547
|
};
|
|
2519
|
-
function
|
|
2548
|
+
function Bo(e, t) {
|
|
2520
2549
|
for (var n = "", r = 0; r < e.length; r++) {
|
|
2521
|
-
var
|
|
2522
|
-
if (
|
|
2523
|
-
for (var
|
|
2524
|
-
|
|
2525
|
-
var u = 1 + (
|
|
2526
|
-
for ((l == "H" || l == "k") && (
|
|
2550
|
+
var o = e.charAt(r);
|
|
2551
|
+
if (o === "j") {
|
|
2552
|
+
for (var i = 0; r + 1 < e.length && e.charAt(r + 1) === o; )
|
|
2553
|
+
i++, r++;
|
|
2554
|
+
var u = 1 + (i & 1), a = i < 2 ? 1 : 3 + (i >> 1), f = "a", l = wo(t);
|
|
2555
|
+
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2527
2556
|
n += f;
|
|
2528
2557
|
for (; u-- > 0; )
|
|
2529
2558
|
n = l + n;
|
|
2530
2559
|
} else
|
|
2531
|
-
|
|
2560
|
+
o === "J" ? n += "H" : n += o;
|
|
2532
2561
|
}
|
|
2533
2562
|
return n;
|
|
2534
2563
|
}
|
|
2535
|
-
function
|
|
2564
|
+
function wo(e) {
|
|
2536
2565
|
var t = e.hourCycle;
|
|
2537
2566
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2538
2567
|
e.hourCycles && // @ts-ignore
|
|
@@ -2551,23 +2580,23 @@ function _i(e) {
|
|
|
2551
2580
|
}
|
|
2552
2581
|
var n = e.language, r;
|
|
2553
2582
|
n !== "root" && (r = e.maximize().region);
|
|
2554
|
-
var
|
|
2555
|
-
return
|
|
2583
|
+
var o = dt[r || ""] || dt[n || ""] || dt["".concat(n, "-001")] || dt["001"];
|
|
2584
|
+
return o[0];
|
|
2556
2585
|
}
|
|
2557
|
-
var
|
|
2558
|
-
function
|
|
2586
|
+
var jt, Ao = new RegExp("^".concat(Wn.source, "*")), Co = new RegExp("".concat(Wn.source, "*$"));
|
|
2587
|
+
function L(e, t) {
|
|
2559
2588
|
return { start: e, end: t };
|
|
2560
2589
|
}
|
|
2561
|
-
var
|
|
2590
|
+
var Ho = !!String.prototype.startsWith && "_a".startsWith("a", 1), Oo = !!String.fromCodePoint, Lo = !!Object.fromEntries, Ro = !!String.prototype.codePointAt, No = !!String.prototype.trimStart, Mo = !!String.prototype.trimEnd, Po = !!Number.isSafeInteger, Io = Po ? Number.isSafeInteger : function(e) {
|
|
2562
2591
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2563
|
-
},
|
|
2592
|
+
}, qt = !0;
|
|
2564
2593
|
try {
|
|
2565
|
-
var
|
|
2566
|
-
|
|
2594
|
+
var Do = Yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2595
|
+
qt = ((jt = Do.exec("a")) === null || jt === void 0 ? void 0 : jt[0]) === "a";
|
|
2567
2596
|
} catch (e) {
|
|
2568
|
-
|
|
2597
|
+
qt = !1;
|
|
2569
2598
|
}
|
|
2570
|
-
var
|
|
2599
|
+
var gn = Ho ? (
|
|
2571
2600
|
// Native
|
|
2572
2601
|
function(t, n, r) {
|
|
2573
2602
|
return t.startsWith(n, r);
|
|
@@ -2577,31 +2606,31 @@ var mn = Si ? (
|
|
|
2577
2606
|
function(t, n, r) {
|
|
2578
2607
|
return t.slice(r, r + n.length) === n;
|
|
2579
2608
|
}
|
|
2580
|
-
),
|
|
2609
|
+
), Qt = Oo ? String.fromCodePoint : (
|
|
2581
2610
|
// IE11
|
|
2582
2611
|
function() {
|
|
2583
2612
|
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2584
2613
|
t[n] = arguments[n];
|
|
2585
|
-
for (var r = "",
|
|
2586
|
-
if (u = t[
|
|
2614
|
+
for (var r = "", o = t.length, i = 0, u; o > i; ) {
|
|
2615
|
+
if (u = t[i++], u > 1114111)
|
|
2587
2616
|
throw RangeError(u + " is not a valid code point");
|
|
2588
2617
|
r += u < 65536 ? String.fromCharCode(u) : String.fromCharCode(((u -= 65536) >> 10) + 55296, u % 1024 + 56320);
|
|
2589
2618
|
}
|
|
2590
2619
|
return r;
|
|
2591
2620
|
}
|
|
2592
|
-
),
|
|
2621
|
+
), bn = (
|
|
2593
2622
|
// native
|
|
2594
|
-
|
|
2623
|
+
Lo ? Object.fromEntries : (
|
|
2595
2624
|
// Ponyfill
|
|
2596
2625
|
function(t) {
|
|
2597
|
-
for (var n = {}, r = 0,
|
|
2598
|
-
var
|
|
2599
|
-
n[u] =
|
|
2626
|
+
for (var n = {}, r = 0, o = t; r < o.length; r++) {
|
|
2627
|
+
var i = o[r], u = i[0], a = i[1];
|
|
2628
|
+
n[u] = a;
|
|
2600
2629
|
}
|
|
2601
2630
|
return n;
|
|
2602
2631
|
}
|
|
2603
2632
|
)
|
|
2604
|
-
),
|
|
2633
|
+
), Jn = Ro ? (
|
|
2605
2634
|
// Native
|
|
2606
2635
|
function(t, n) {
|
|
2607
2636
|
return t.codePointAt(n);
|
|
@@ -2611,11 +2640,11 @@ var mn = Si ? (
|
|
|
2611
2640
|
function(t, n) {
|
|
2612
2641
|
var r = t.length;
|
|
2613
2642
|
if (!(n < 0 || n >= r)) {
|
|
2614
|
-
var
|
|
2615
|
-
return
|
|
2643
|
+
var o = t.charCodeAt(n), i;
|
|
2644
|
+
return o < 55296 || o > 56319 || n + 1 === r || (i = t.charCodeAt(n + 1)) < 56320 || i > 57343 ? o : (o - 55296 << 10) + (i - 56320) + 65536;
|
|
2616
2645
|
}
|
|
2617
2646
|
}
|
|
2618
|
-
),
|
|
2647
|
+
), Fo = No ? (
|
|
2619
2648
|
// Native
|
|
2620
2649
|
function(t) {
|
|
2621
2650
|
return t.trimStart();
|
|
@@ -2623,9 +2652,9 @@ var mn = Si ? (
|
|
|
2623
2652
|
) : (
|
|
2624
2653
|
// Ponyfill
|
|
2625
2654
|
function(t) {
|
|
2626
|
-
return t.replace(
|
|
2655
|
+
return t.replace(Ao, "");
|
|
2627
2656
|
}
|
|
2628
|
-
),
|
|
2657
|
+
), Uo = Mo ? (
|
|
2629
2658
|
// Native
|
|
2630
2659
|
function(t) {
|
|
2631
2660
|
return t.trimEnd();
|
|
@@ -2633,32 +2662,32 @@ var mn = Si ? (
|
|
|
2633
2662
|
) : (
|
|
2634
2663
|
// Ponyfill
|
|
2635
2664
|
function(t) {
|
|
2636
|
-
return t.replace(
|
|
2665
|
+
return t.replace(Co, "");
|
|
2637
2666
|
}
|
|
2638
2667
|
);
|
|
2639
|
-
function
|
|
2668
|
+
function Yn(e, t) {
|
|
2640
2669
|
return new RegExp(e, t);
|
|
2641
2670
|
}
|
|
2642
|
-
var
|
|
2643
|
-
if (
|
|
2644
|
-
var
|
|
2645
|
-
|
|
2671
|
+
var Jt;
|
|
2672
|
+
if (qt) {
|
|
2673
|
+
var yn = Yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2674
|
+
Jt = function(t, n) {
|
|
2646
2675
|
var r;
|
|
2647
|
-
|
|
2648
|
-
var
|
|
2649
|
-
return (r =
|
|
2676
|
+
yn.lastIndex = n;
|
|
2677
|
+
var o = yn.exec(t);
|
|
2678
|
+
return (r = o[1]) !== null && r !== void 0 ? r : "";
|
|
2650
2679
|
};
|
|
2651
2680
|
} else
|
|
2652
|
-
|
|
2681
|
+
Jt = function(t, n) {
|
|
2653
2682
|
for (var r = []; ; ) {
|
|
2654
|
-
var
|
|
2655
|
-
if (
|
|
2683
|
+
var o = Jn(t, n);
|
|
2684
|
+
if (o === void 0 || Kn(o) || ko(o))
|
|
2656
2685
|
break;
|
|
2657
|
-
r.push(
|
|
2686
|
+
r.push(o), n += o >= 65536 ? 2 : 1;
|
|
2658
2687
|
}
|
|
2659
|
-
return
|
|
2688
|
+
return Qt.apply(void 0, r);
|
|
2660
2689
|
};
|
|
2661
|
-
var
|
|
2690
|
+
var Go = (
|
|
2662
2691
|
/** @class */
|
|
2663
2692
|
function() {
|
|
2664
2693
|
function e(t, n) {
|
|
@@ -2669,107 +2698,107 @@ var Ii = (
|
|
|
2669
2698
|
throw Error("parser can only be used once");
|
|
2670
2699
|
return this.parseMessage(0, "", !1);
|
|
2671
2700
|
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2672
|
-
for (var
|
|
2673
|
-
var
|
|
2674
|
-
if (
|
|
2701
|
+
for (var o = []; !this.isEOF(); ) {
|
|
2702
|
+
var i = this.char();
|
|
2703
|
+
if (i === 123) {
|
|
2675
2704
|
var u = this.parseArgument(t, r);
|
|
2676
2705
|
if (u.err)
|
|
2677
2706
|
return u;
|
|
2678
|
-
|
|
2707
|
+
o.push(u.val);
|
|
2679
2708
|
} else {
|
|
2680
|
-
if (
|
|
2709
|
+
if (i === 125 && t > 0)
|
|
2681
2710
|
break;
|
|
2682
|
-
if (
|
|
2683
|
-
var
|
|
2684
|
-
this.bump(),
|
|
2711
|
+
if (i === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2712
|
+
var a = this.clonePosition();
|
|
2713
|
+
this.bump(), o.push({
|
|
2685
2714
|
type: D.pound,
|
|
2686
|
-
location:
|
|
2715
|
+
location: L(a, this.clonePosition())
|
|
2687
2716
|
});
|
|
2688
|
-
} else if (
|
|
2717
|
+
} else if (i === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2689
2718
|
if (r)
|
|
2690
2719
|
break;
|
|
2691
|
-
return this.error(H.UNMATCHED_CLOSING_TAG,
|
|
2692
|
-
} else if (
|
|
2720
|
+
return this.error(H.UNMATCHED_CLOSING_TAG, L(this.clonePosition(), this.clonePosition()));
|
|
2721
|
+
} else if (i === 60 && !this.ignoreTag && Yt(this.peek() || 0)) {
|
|
2693
2722
|
var u = this.parseTag(t, n);
|
|
2694
2723
|
if (u.err)
|
|
2695
2724
|
return u;
|
|
2696
|
-
|
|
2725
|
+
o.push(u.val);
|
|
2697
2726
|
} else {
|
|
2698
2727
|
var u = this.parseLiteral(t, n);
|
|
2699
2728
|
if (u.err)
|
|
2700
2729
|
return u;
|
|
2701
|
-
|
|
2730
|
+
o.push(u.val);
|
|
2702
2731
|
}
|
|
2703
2732
|
}
|
|
2704
2733
|
}
|
|
2705
|
-
return { val:
|
|
2734
|
+
return { val: o, err: null };
|
|
2706
2735
|
}, e.prototype.parseTag = function(t, n) {
|
|
2707
2736
|
var r = this.clonePosition();
|
|
2708
2737
|
this.bump();
|
|
2709
|
-
var
|
|
2738
|
+
var o = this.parseTagName();
|
|
2710
2739
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2711
2740
|
return {
|
|
2712
2741
|
val: {
|
|
2713
2742
|
type: D.literal,
|
|
2714
|
-
value: "<".concat(
|
|
2715
|
-
location:
|
|
2743
|
+
value: "<".concat(o, "/>"),
|
|
2744
|
+
location: L(r, this.clonePosition())
|
|
2716
2745
|
},
|
|
2717
2746
|
err: null
|
|
2718
2747
|
};
|
|
2719
2748
|
if (this.bumpIf(">")) {
|
|
2720
|
-
var
|
|
2721
|
-
if (
|
|
2722
|
-
return
|
|
2723
|
-
var u =
|
|
2749
|
+
var i = this.parseMessage(t + 1, n, !0);
|
|
2750
|
+
if (i.err)
|
|
2751
|
+
return i;
|
|
2752
|
+
var u = i.val, a = this.clonePosition();
|
|
2724
2753
|
if (this.bumpIf("</")) {
|
|
2725
|
-
if (this.isEOF() || !
|
|
2726
|
-
return this.error(H.INVALID_TAG,
|
|
2754
|
+
if (this.isEOF() || !Yt(this.char()))
|
|
2755
|
+
return this.error(H.INVALID_TAG, L(a, this.clonePosition()));
|
|
2727
2756
|
var f = this.clonePosition(), l = this.parseTagName();
|
|
2728
|
-
return
|
|
2757
|
+
return o !== l ? this.error(H.UNMATCHED_CLOSING_TAG, L(f, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2729
2758
|
val: {
|
|
2730
2759
|
type: D.tag,
|
|
2731
|
-
value:
|
|
2760
|
+
value: o,
|
|
2732
2761
|
children: u,
|
|
2733
|
-
location:
|
|
2762
|
+
location: L(r, this.clonePosition())
|
|
2734
2763
|
},
|
|
2735
2764
|
err: null
|
|
2736
|
-
} : this.error(H.INVALID_TAG,
|
|
2765
|
+
} : this.error(H.INVALID_TAG, L(a, this.clonePosition())));
|
|
2737
2766
|
} else
|
|
2738
|
-
return this.error(H.UNCLOSED_TAG,
|
|
2767
|
+
return this.error(H.UNCLOSED_TAG, L(r, this.clonePosition()));
|
|
2739
2768
|
} else
|
|
2740
|
-
return this.error(H.INVALID_TAG,
|
|
2769
|
+
return this.error(H.INVALID_TAG, L(r, this.clonePosition()));
|
|
2741
2770
|
}, e.prototype.parseTagName = function() {
|
|
2742
2771
|
var t = this.offset();
|
|
2743
|
-
for (this.bump(); !this.isEOF() &&
|
|
2772
|
+
for (this.bump(); !this.isEOF() && $o(this.char()); )
|
|
2744
2773
|
this.bump();
|
|
2745
2774
|
return this.message.slice(t, this.offset());
|
|
2746
2775
|
}, e.prototype.parseLiteral = function(t, n) {
|
|
2747
|
-
for (var r = this.clonePosition(),
|
|
2748
|
-
var
|
|
2749
|
-
if (
|
|
2750
|
-
|
|
2776
|
+
for (var r = this.clonePosition(), o = ""; ; ) {
|
|
2777
|
+
var i = this.tryParseQuote(n);
|
|
2778
|
+
if (i) {
|
|
2779
|
+
o += i;
|
|
2751
2780
|
continue;
|
|
2752
2781
|
}
|
|
2753
2782
|
var u = this.tryParseUnquoted(t, n);
|
|
2754
2783
|
if (u) {
|
|
2755
|
-
|
|
2784
|
+
o += u;
|
|
2756
2785
|
continue;
|
|
2757
2786
|
}
|
|
2758
|
-
var
|
|
2759
|
-
if (
|
|
2760
|
-
|
|
2787
|
+
var a = this.tryParseLeftAngleBracket();
|
|
2788
|
+
if (a) {
|
|
2789
|
+
o += a;
|
|
2761
2790
|
continue;
|
|
2762
2791
|
}
|
|
2763
2792
|
break;
|
|
2764
2793
|
}
|
|
2765
|
-
var f =
|
|
2794
|
+
var f = L(r, this.clonePosition());
|
|
2766
2795
|
return {
|
|
2767
|
-
val: { type: D.literal, value:
|
|
2796
|
+
val: { type: D.literal, value: o, location: f },
|
|
2768
2797
|
err: null
|
|
2769
2798
|
};
|
|
2770
2799
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2771
2800
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2772
|
-
!
|
|
2801
|
+
!jo(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2773
2802
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2774
2803
|
if (this.isEOF() || this.char() !== 39)
|
|
2775
2804
|
return null;
|
|
@@ -2803,49 +2832,49 @@ var Ii = (
|
|
|
2803
2832
|
n.push(r);
|
|
2804
2833
|
this.bump();
|
|
2805
2834
|
}
|
|
2806
|
-
return
|
|
2835
|
+
return Qt.apply(void 0, n);
|
|
2807
2836
|
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2808
2837
|
if (this.isEOF())
|
|
2809
2838
|
return null;
|
|
2810
2839
|
var r = this.char();
|
|
2811
|
-
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(), Qt(r));
|
|
2812
2841
|
}, e.prototype.parseArgument = function(t, n) {
|
|
2813
2842
|
var r = this.clonePosition();
|
|
2814
2843
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2815
|
-
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2844
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
|
|
2816
2845
|
if (this.char() === 125)
|
|
2817
|
-
return this.bump(), this.error(H.EMPTY_ARGUMENT,
|
|
2818
|
-
var
|
|
2819
|
-
if (!
|
|
2820
|
-
return this.error(H.MALFORMED_ARGUMENT,
|
|
2846
|
+
return this.bump(), this.error(H.EMPTY_ARGUMENT, L(r, this.clonePosition()));
|
|
2847
|
+
var o = this.parseIdentifierIfPossible().value;
|
|
2848
|
+
if (!o)
|
|
2849
|
+
return this.error(H.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
|
|
2821
2850
|
if (this.bumpSpace(), this.isEOF())
|
|
2822
|
-
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2851
|
+
return this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition()));
|
|
2823
2852
|
switch (this.char()) {
|
|
2824
2853
|
case 125:
|
|
2825
2854
|
return this.bump(), {
|
|
2826
2855
|
val: {
|
|
2827
2856
|
type: D.argument,
|
|
2828
2857
|
// value does not include the opening and closing braces.
|
|
2829
|
-
value:
|
|
2830
|
-
location:
|
|
2858
|
+
value: o,
|
|
2859
|
+
location: L(r, this.clonePosition())
|
|
2831
2860
|
},
|
|
2832
2861
|
err: null
|
|
2833
2862
|
};
|
|
2834
2863
|
case 44:
|
|
2835
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2864
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(r, this.clonePosition())) : this.parseArgumentOptions(t, n, o, r);
|
|
2836
2865
|
default:
|
|
2837
|
-
return this.error(H.MALFORMED_ARGUMENT,
|
|
2866
|
+
return this.error(H.MALFORMED_ARGUMENT, L(r, this.clonePosition()));
|
|
2838
2867
|
}
|
|
2839
2868
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2840
|
-
var t = this.clonePosition(), n = this.offset(), r =
|
|
2841
|
-
this.bumpTo(
|
|
2842
|
-
var
|
|
2869
|
+
var t = this.clonePosition(), n = this.offset(), r = Jt(this.message, n), o = n + r.length;
|
|
2870
|
+
this.bumpTo(o);
|
|
2871
|
+
var i = this.clonePosition(), u = L(t, i);
|
|
2843
2872
|
return { value: r, location: u };
|
|
2844
|
-
}, e.prototype.parseArgumentOptions = function(t, n, r,
|
|
2845
|
-
var
|
|
2846
|
-
switch (
|
|
2873
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, o) {
|
|
2874
|
+
var i, u = this.clonePosition(), a = this.parseIdentifierIfPossible().value, f = this.clonePosition();
|
|
2875
|
+
switch (a) {
|
|
2847
2876
|
case "":
|
|
2848
|
-
return this.error(H.EXPECT_ARGUMENT_TYPE,
|
|
2877
|
+
return this.error(H.EXPECT_ARGUMENT_TYPE, L(u, f));
|
|
2849
2878
|
case "number":
|
|
2850
2879
|
case "date":
|
|
2851
2880
|
case "time": {
|
|
@@ -2853,50 +2882,50 @@ var Ii = (
|
|
|
2853
2882
|
var l = null;
|
|
2854
2883
|
if (this.bumpIf(",")) {
|
|
2855
2884
|
this.bumpSpace();
|
|
2856
|
-
var d = this.clonePosition(),
|
|
2857
|
-
if (
|
|
2858
|
-
return
|
|
2859
|
-
var
|
|
2860
|
-
if (
|
|
2861
|
-
return this.error(H.EXPECT_ARGUMENT_STYLE,
|
|
2862
|
-
var _ =
|
|
2863
|
-
l = { style:
|
|
2885
|
+
var d = this.clonePosition(), g = this.parseSimpleArgStyleIfPossible();
|
|
2886
|
+
if (g.err)
|
|
2887
|
+
return g;
|
|
2888
|
+
var y = Uo(g.val);
|
|
2889
|
+
if (y.length === 0)
|
|
2890
|
+
return this.error(H.EXPECT_ARGUMENT_STYLE, L(this.clonePosition(), this.clonePosition()));
|
|
2891
|
+
var _ = L(d, this.clonePosition());
|
|
2892
|
+
l = { style: y, styleLocation: _ };
|
|
2864
2893
|
}
|
|
2865
|
-
var B = this.tryParseArgumentClose(
|
|
2894
|
+
var B = this.tryParseArgumentClose(o);
|
|
2866
2895
|
if (B.err)
|
|
2867
2896
|
return B;
|
|
2868
|
-
var
|
|
2869
|
-
if (l &&
|
|
2870
|
-
var j =
|
|
2871
|
-
if (
|
|
2872
|
-
var
|
|
2873
|
-
return
|
|
2874
|
-
val: { type: D.number, value: r, location:
|
|
2897
|
+
var P = L(o, this.clonePosition());
|
|
2898
|
+
if (l && gn(l == null ? void 0 : l.style, "::", 0)) {
|
|
2899
|
+
var j = Fo(l.style.slice(2));
|
|
2900
|
+
if (a === "number") {
|
|
2901
|
+
var g = this.parseNumberSkeletonFromString(j, l.styleLocation);
|
|
2902
|
+
return g.err ? g : {
|
|
2903
|
+
val: { type: D.number, value: r, location: P, style: g.val },
|
|
2875
2904
|
err: null
|
|
2876
2905
|
};
|
|
2877
2906
|
} else {
|
|
2878
2907
|
if (j.length === 0)
|
|
2879
|
-
return this.error(H.EXPECT_DATE_TIME_SKELETON,
|
|
2880
|
-
var
|
|
2881
|
-
this.locale && (
|
|
2882
|
-
var
|
|
2883
|
-
type:
|
|
2884
|
-
pattern:
|
|
2908
|
+
return this.error(H.EXPECT_DATE_TIME_SKELETON, P);
|
|
2909
|
+
var Z = j;
|
|
2910
|
+
this.locale && (Z = Bo(j, this.locale));
|
|
2911
|
+
var y = {
|
|
2912
|
+
type: Ge.dateTime,
|
|
2913
|
+
pattern: Z,
|
|
2885
2914
|
location: l.styleLocation,
|
|
2886
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2887
|
-
}, U =
|
|
2915
|
+
parsedOptions: this.shouldParseSkeletons ? yo(Z) : {}
|
|
2916
|
+
}, U = a === "date" ? D.date : D.time;
|
|
2888
2917
|
return {
|
|
2889
|
-
val: { type: U, value: r, location:
|
|
2918
|
+
val: { type: U, value: r, location: P, style: y },
|
|
2890
2919
|
err: null
|
|
2891
2920
|
};
|
|
2892
2921
|
}
|
|
2893
2922
|
}
|
|
2894
2923
|
return {
|
|
2895
2924
|
val: {
|
|
2896
|
-
type:
|
|
2925
|
+
type: a === "number" ? D.number : a === "date" ? D.date : D.time,
|
|
2897
2926
|
value: r,
|
|
2898
|
-
location:
|
|
2899
|
-
style: (
|
|
2927
|
+
location: P,
|
|
2928
|
+
style: (i = l == null ? void 0 : l.style) !== null && i !== void 0 ? i : null
|
|
2900
2929
|
},
|
|
2901
2930
|
err: null
|
|
2902
2931
|
};
|
|
@@ -2906,59 +2935,59 @@ var Ii = (
|
|
|
2906
2935
|
case "select": {
|
|
2907
2936
|
var w = this.clonePosition();
|
|
2908
2937
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2909
|
-
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS,
|
|
2938
|
+
return this.error(H.EXPECT_SELECT_ARGUMENT_OPTIONS, L(w, vt({}, w)));
|
|
2910
2939
|
this.bumpSpace();
|
|
2911
|
-
var
|
|
2912
|
-
if (
|
|
2940
|
+
var C = this.parseIdentifierIfPossible(), N = 0;
|
|
2941
|
+
if (a !== "select" && C.value === "offset") {
|
|
2913
2942
|
if (!this.bumpIf(":"))
|
|
2914
|
-
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,
|
|
2943
|
+
return this.error(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, L(this.clonePosition(), this.clonePosition()));
|
|
2915
2944
|
this.bumpSpace();
|
|
2916
|
-
var
|
|
2917
|
-
if (
|
|
2918
|
-
return
|
|
2919
|
-
this.bumpSpace(),
|
|
2945
|
+
var g = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, H.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2946
|
+
if (g.err)
|
|
2947
|
+
return g;
|
|
2948
|
+
this.bumpSpace(), C = this.parseIdentifierIfPossible(), N = g.val;
|
|
2920
2949
|
}
|
|
2921
|
-
var
|
|
2922
|
-
if (
|
|
2923
|
-
return
|
|
2924
|
-
var B = this.tryParseArgumentClose(
|
|
2950
|
+
var M = this.tryParsePluralOrSelectOptions(t, a, n, C);
|
|
2951
|
+
if (M.err)
|
|
2952
|
+
return M;
|
|
2953
|
+
var B = this.tryParseArgumentClose(o);
|
|
2925
2954
|
if (B.err)
|
|
2926
2955
|
return B;
|
|
2927
|
-
var
|
|
2928
|
-
return
|
|
2956
|
+
var W = L(o, this.clonePosition());
|
|
2957
|
+
return a === "select" ? {
|
|
2929
2958
|
val: {
|
|
2930
2959
|
type: D.select,
|
|
2931
2960
|
value: r,
|
|
2932
|
-
options:
|
|
2933
|
-
location:
|
|
2961
|
+
options: bn(M.val),
|
|
2962
|
+
location: W
|
|
2934
2963
|
},
|
|
2935
2964
|
err: null
|
|
2936
2965
|
} : {
|
|
2937
2966
|
val: {
|
|
2938
2967
|
type: D.plural,
|
|
2939
2968
|
value: r,
|
|
2940
|
-
options:
|
|
2941
|
-
offset:
|
|
2942
|
-
pluralType:
|
|
2943
|
-
location:
|
|
2969
|
+
options: bn(M.val),
|
|
2970
|
+
offset: N,
|
|
2971
|
+
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
2972
|
+
location: W
|
|
2944
2973
|
},
|
|
2945
2974
|
err: null
|
|
2946
2975
|
};
|
|
2947
2976
|
}
|
|
2948
2977
|
default:
|
|
2949
|
-
return this.error(H.INVALID_ARGUMENT_TYPE,
|
|
2978
|
+
return this.error(H.INVALID_ARGUMENT_TYPE, L(u, f));
|
|
2950
2979
|
}
|
|
2951
2980
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2952
|
-
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE,
|
|
2981
|
+
return this.isEOF() || this.char() !== 125 ? this.error(H.EXPECT_ARGUMENT_CLOSING_BRACE, L(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2953
2982
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2954
2983
|
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2955
2984
|
var r = this.char();
|
|
2956
2985
|
switch (r) {
|
|
2957
2986
|
case 39: {
|
|
2958
2987
|
this.bump();
|
|
2959
|
-
var
|
|
2988
|
+
var o = this.clonePosition();
|
|
2960
2989
|
if (!this.bumpUntil("'"))
|
|
2961
|
-
return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,
|
|
2990
|
+
return this.error(H.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, L(o, this.clonePosition()));
|
|
2962
2991
|
this.bump();
|
|
2963
2992
|
break;
|
|
2964
2993
|
}
|
|
@@ -2988,28 +3017,28 @@ var Ii = (
|
|
|
2988
3017
|
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2989
3018
|
var r = [];
|
|
2990
3019
|
try {
|
|
2991
|
-
r =
|
|
2992
|
-
} catch (
|
|
3020
|
+
r = Eo(t);
|
|
3021
|
+
} catch (o) {
|
|
2993
3022
|
return this.error(H.INVALID_NUMBER_SKELETON, n);
|
|
2994
3023
|
}
|
|
2995
3024
|
return {
|
|
2996
3025
|
val: {
|
|
2997
|
-
type:
|
|
3026
|
+
type: Ge.number,
|
|
2998
3027
|
tokens: r,
|
|
2999
3028
|
location: n,
|
|
3000
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3029
|
+
parsedOptions: this.shouldParseSkeletons ? So(r) : {}
|
|
3001
3030
|
},
|
|
3002
3031
|
err: null
|
|
3003
3032
|
};
|
|
3004
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r,
|
|
3005
|
-
for (var
|
|
3033
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, o) {
|
|
3034
|
+
for (var i, u = !1, a = [], f = /* @__PURE__ */ new Set(), l = o.value, d = o.location; ; ) {
|
|
3006
3035
|
if (l.length === 0) {
|
|
3007
|
-
var
|
|
3036
|
+
var g = this.clonePosition();
|
|
3008
3037
|
if (n !== "select" && this.bumpIf("=")) {
|
|
3009
|
-
var
|
|
3010
|
-
if (
|
|
3011
|
-
return
|
|
3012
|
-
d =
|
|
3038
|
+
var y = this.tryParseDecimalInteger(H.EXPECT_PLURAL_ARGUMENT_SELECTOR, H.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3039
|
+
if (y.err)
|
|
3040
|
+
return y;
|
|
3041
|
+
d = L(g, this.clonePosition()), l = this.message.slice(g.offset, this.offset());
|
|
3013
3042
|
} else
|
|
3014
3043
|
break;
|
|
3015
3044
|
}
|
|
@@ -3018,34 +3047,34 @@ var Ii = (
|
|
|
3018
3047
|
l === "other" && (u = !0), this.bumpSpace();
|
|
3019
3048
|
var _ = this.clonePosition();
|
|
3020
3049
|
if (!this.bumpIf("{"))
|
|
3021
|
-
return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,
|
|
3050
|
+
return this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : H.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, L(this.clonePosition(), this.clonePosition()));
|
|
3022
3051
|
var B = this.parseMessage(t + 1, n, r);
|
|
3023
3052
|
if (B.err)
|
|
3024
3053
|
return B;
|
|
3025
|
-
var
|
|
3026
|
-
if (
|
|
3027
|
-
return
|
|
3028
|
-
|
|
3054
|
+
var P = this.tryParseArgumentClose(_);
|
|
3055
|
+
if (P.err)
|
|
3056
|
+
return P;
|
|
3057
|
+
a.push([
|
|
3029
3058
|
l,
|
|
3030
3059
|
{
|
|
3031
3060
|
value: B.val,
|
|
3032
|
-
location:
|
|
3061
|
+
location: L(_, this.clonePosition())
|
|
3033
3062
|
}
|
|
3034
|
-
]), f.add(l), this.bumpSpace(),
|
|
3063
|
+
]), f.add(l), this.bumpSpace(), i = this.parseIdentifierIfPossible(), l = i.value, d = i.location;
|
|
3035
3064
|
}
|
|
3036
|
-
return
|
|
3065
|
+
return a.length === 0 ? this.error(n === "select" ? H.EXPECT_SELECT_ARGUMENT_SELECTOR : H.EXPECT_PLURAL_ARGUMENT_SELECTOR, L(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !u ? this.error(H.MISSING_OTHER_CLAUSE, L(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
|
|
3037
3066
|
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3038
|
-
var r = 1,
|
|
3067
|
+
var r = 1, o = this.clonePosition();
|
|
3039
3068
|
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3040
|
-
for (var
|
|
3041
|
-
var
|
|
3042
|
-
if (
|
|
3043
|
-
|
|
3069
|
+
for (var i = !1, u = 0; !this.isEOF(); ) {
|
|
3070
|
+
var a = this.char();
|
|
3071
|
+
if (a >= 48 && a <= 57)
|
|
3072
|
+
i = !0, u = u * 10 + (a - 48), this.bump();
|
|
3044
3073
|
else
|
|
3045
3074
|
break;
|
|
3046
3075
|
}
|
|
3047
|
-
var f =
|
|
3048
|
-
return
|
|
3076
|
+
var f = L(o, this.clonePosition());
|
|
3077
|
+
return i ? (u *= r, Io(u) ? { val: u, err: null } : this.error(n, f)) : this.error(t, f);
|
|
3049
3078
|
}, e.prototype.offset = function() {
|
|
3050
3079
|
return this.position.offset;
|
|
3051
3080
|
}, e.prototype.isEOF = function() {
|
|
@@ -3060,7 +3089,7 @@ var Ii = (
|
|
|
3060
3089
|
var t = this.position.offset;
|
|
3061
3090
|
if (t >= this.message.length)
|
|
3062
3091
|
throw Error("out of bound");
|
|
3063
|
-
var n =
|
|
3092
|
+
var n = Jn(this.message, t);
|
|
3064
3093
|
if (n === void 0)
|
|
3065
3094
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3066
3095
|
return n;
|
|
@@ -3079,7 +3108,7 @@ var Ii = (
|
|
|
3079
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);
|
|
3080
3109
|
}
|
|
3081
3110
|
}, e.prototype.bumpIf = function(t) {
|
|
3082
|
-
if (
|
|
3111
|
+
if (gn(this.message, t, this.offset())) {
|
|
3083
3112
|
for (var n = 0; n < t.length; n++)
|
|
3084
3113
|
this.bump();
|
|
3085
3114
|
return !0;
|
|
@@ -3101,7 +3130,7 @@ var Ii = (
|
|
|
3101
3130
|
break;
|
|
3102
3131
|
}
|
|
3103
3132
|
}, e.prototype.bumpSpace = function() {
|
|
3104
|
-
for (; !this.isEOF() &&
|
|
3133
|
+
for (; !this.isEOF() && Kn(this.char()); )
|
|
3105
3134
|
this.bump();
|
|
3106
3135
|
}, e.prototype.peek = function() {
|
|
3107
3136
|
if (this.isEOF())
|
|
@@ -3111,204 +3140,204 @@ var Ii = (
|
|
|
3111
3140
|
}, e;
|
|
3112
3141
|
}()
|
|
3113
3142
|
);
|
|
3114
|
-
function
|
|
3143
|
+
function Yt(e) {
|
|
3115
3144
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3116
3145
|
}
|
|
3117
|
-
function
|
|
3118
|
-
return
|
|
3146
|
+
function jo(e) {
|
|
3147
|
+
return Yt(e) || e === 47;
|
|
3119
3148
|
}
|
|
3120
|
-
function
|
|
3149
|
+
function $o(e) {
|
|
3121
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;
|
|
3122
3151
|
}
|
|
3123
|
-
function
|
|
3152
|
+
function Kn(e) {
|
|
3124
3153
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3125
3154
|
}
|
|
3126
|
-
function
|
|
3155
|
+
function ko(e) {
|
|
3127
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;
|
|
3128
3157
|
}
|
|
3129
|
-
function
|
|
3158
|
+
function Kt(e) {
|
|
3130
3159
|
e.forEach(function(t) {
|
|
3131
|
-
if (delete t.location,
|
|
3160
|
+
if (delete t.location, kn(t) || Vn(t))
|
|
3132
3161
|
for (var n in t.options)
|
|
3133
|
-
delete t.options[n].location,
|
|
3162
|
+
delete t.options[n].location, Kt(t.options[n].value);
|
|
3134
3163
|
else
|
|
3135
|
-
|
|
3164
|
+
Gn(t) && zn(t.style) || (jn(t) || $n(t)) && Zt(t.style) ? delete t.style.location : Xn(t) && Kt(t.children);
|
|
3136
3165
|
});
|
|
3137
3166
|
}
|
|
3138
|
-
function
|
|
3139
|
-
t === void 0 && (t = {}), t =
|
|
3140
|
-
var n = new
|
|
3167
|
+
function Vo(e, t) {
|
|
3168
|
+
t === void 0 && (t = {}), t = vt({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3169
|
+
var n = new Go(e, t).parse();
|
|
3141
3170
|
if (n.err) {
|
|
3142
3171
|
var r = SyntaxError(H[n.err.kind]);
|
|
3143
3172
|
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3144
3173
|
}
|
|
3145
|
-
return t != null && t.captureLocation ||
|
|
3174
|
+
return t != null && t.captureLocation || Kt(n.val), n.val;
|
|
3146
3175
|
}
|
|
3147
|
-
var
|
|
3176
|
+
var je;
|
|
3148
3177
|
(function(e) {
|
|
3149
3178
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3150
|
-
})(
|
|
3151
|
-
var
|
|
3179
|
+
})(je || (je = {}));
|
|
3180
|
+
var St = (
|
|
3152
3181
|
/** @class */
|
|
3153
3182
|
function(e) {
|
|
3154
|
-
|
|
3155
|
-
function t(n, r,
|
|
3156
|
-
var
|
|
3157
|
-
return
|
|
3183
|
+
Tt(t, e);
|
|
3184
|
+
function t(n, r, o) {
|
|
3185
|
+
var i = e.call(this, n) || this;
|
|
3186
|
+
return i.code = r, i.originalMessage = o, i;
|
|
3158
3187
|
}
|
|
3159
3188
|
return t.prototype.toString = function() {
|
|
3160
3189
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3161
3190
|
}, t;
|
|
3162
3191
|
}(Error)
|
|
3163
|
-
),
|
|
3192
|
+
), vn = (
|
|
3164
3193
|
/** @class */
|
|
3165
3194
|
function(e) {
|
|
3166
|
-
|
|
3167
|
-
function t(n, r,
|
|
3168
|
-
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(
|
|
3195
|
+
Tt(t, e);
|
|
3196
|
+
function t(n, r, o, i) {
|
|
3197
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(o).join('", "'), '"'), je.INVALID_VALUE, i) || this;
|
|
3169
3198
|
}
|
|
3170
3199
|
return t;
|
|
3171
|
-
}(
|
|
3172
|
-
),
|
|
3200
|
+
}(St)
|
|
3201
|
+
), Xo = (
|
|
3173
3202
|
/** @class */
|
|
3174
3203
|
function(e) {
|
|
3175
|
-
|
|
3176
|
-
function t(n, r,
|
|
3177
|
-
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r),
|
|
3204
|
+
Tt(t, e);
|
|
3205
|
+
function t(n, r, o) {
|
|
3206
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), je.INVALID_VALUE, o) || this;
|
|
3178
3207
|
}
|
|
3179
3208
|
return t;
|
|
3180
|
-
}(
|
|
3181
|
-
),
|
|
3209
|
+
}(St)
|
|
3210
|
+
), zo = (
|
|
3182
3211
|
/** @class */
|
|
3183
3212
|
function(e) {
|
|
3184
|
-
|
|
3213
|
+
Tt(t, e);
|
|
3185
3214
|
function t(n, r) {
|
|
3186
|
-
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, '"'), je.MISSING_VALUE, r) || this;
|
|
3187
3216
|
}
|
|
3188
3217
|
return t;
|
|
3189
|
-
}(
|
|
3190
|
-
),
|
|
3218
|
+
}(St)
|
|
3219
|
+
), ee;
|
|
3191
3220
|
(function(e) {
|
|
3192
3221
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3193
|
-
})(
|
|
3194
|
-
function
|
|
3222
|
+
})(ee || (ee = {}));
|
|
3223
|
+
function Wo(e) {
|
|
3195
3224
|
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3196
3225
|
var r = t[t.length - 1];
|
|
3197
|
-
return !r || r.type !==
|
|
3226
|
+
return !r || r.type !== ee.literal || n.type !== ee.literal ? t.push(n) : r.value += n.value, t;
|
|
3198
3227
|
}, []);
|
|
3199
3228
|
}
|
|
3200
|
-
function
|
|
3229
|
+
function Zo(e) {
|
|
3201
3230
|
return typeof e == "function";
|
|
3202
3231
|
}
|
|
3203
|
-
function
|
|
3204
|
-
if (e.length === 1 &&
|
|
3232
|
+
function mt(e, t, n, r, o, i, u) {
|
|
3233
|
+
if (e.length === 1 && fn(e[0]))
|
|
3205
3234
|
return [
|
|
3206
3235
|
{
|
|
3207
|
-
type:
|
|
3236
|
+
type: ee.literal,
|
|
3208
3237
|
value: e[0].value
|
|
3209
3238
|
}
|
|
3210
3239
|
];
|
|
3211
|
-
for (var
|
|
3240
|
+
for (var a = [], f = 0, l = e; f < l.length; f++) {
|
|
3212
3241
|
var d = l[f];
|
|
3213
|
-
if (
|
|
3214
|
-
|
|
3215
|
-
type:
|
|
3242
|
+
if (fn(d)) {
|
|
3243
|
+
a.push({
|
|
3244
|
+
type: ee.literal,
|
|
3216
3245
|
value: d.value
|
|
3217
3246
|
});
|
|
3218
3247
|
continue;
|
|
3219
3248
|
}
|
|
3220
|
-
if (
|
|
3221
|
-
typeof
|
|
3222
|
-
type:
|
|
3223
|
-
value: n.getNumberFormat(t).format(
|
|
3249
|
+
if (go(d)) {
|
|
3250
|
+
typeof i == "number" && a.push({
|
|
3251
|
+
type: ee.literal,
|
|
3252
|
+
value: n.getNumberFormat(t).format(i)
|
|
3224
3253
|
});
|
|
3225
3254
|
continue;
|
|
3226
3255
|
}
|
|
3227
|
-
var
|
|
3228
|
-
if (!(
|
|
3229
|
-
throw new
|
|
3230
|
-
var
|
|
3231
|
-
if (
|
|
3232
|
-
(!
|
|
3233
|
-
type: typeof
|
|
3234
|
-
value:
|
|
3256
|
+
var g = d.value;
|
|
3257
|
+
if (!(o && g in o))
|
|
3258
|
+
throw new zo(g, u);
|
|
3259
|
+
var y = o[g];
|
|
3260
|
+
if (mo(d)) {
|
|
3261
|
+
(!y || typeof y == "string" || typeof y == "number") && (y = typeof y == "string" || typeof y == "number" ? String(y) : ""), a.push({
|
|
3262
|
+
type: typeof y == "string" ? ee.literal : ee.object,
|
|
3263
|
+
value: y
|
|
3235
3264
|
});
|
|
3236
3265
|
continue;
|
|
3237
3266
|
}
|
|
3238
|
-
if (
|
|
3239
|
-
var _ = typeof d.style == "string" ? r.date[d.style] :
|
|
3240
|
-
|
|
3241
|
-
type:
|
|
3242
|
-
value: n.getDateTimeFormat(t, _).format(
|
|
3267
|
+
if (jn(d)) {
|
|
3268
|
+
var _ = typeof d.style == "string" ? r.date[d.style] : Zt(d.style) ? d.style.parsedOptions : void 0;
|
|
3269
|
+
a.push({
|
|
3270
|
+
type: ee.literal,
|
|
3271
|
+
value: n.getDateTimeFormat(t, _).format(y)
|
|
3243
3272
|
});
|
|
3244
3273
|
continue;
|
|
3245
3274
|
}
|
|
3246
|
-
if (
|
|
3247
|
-
var _ = typeof d.style == "string" ? r.time[d.style] :
|
|
3248
|
-
|
|
3249
|
-
type:
|
|
3250
|
-
value: n.getDateTimeFormat(t, _).format(
|
|
3275
|
+
if ($n(d)) {
|
|
3276
|
+
var _ = typeof d.style == "string" ? r.time[d.style] : Zt(d.style) ? d.style.parsedOptions : r.time.medium;
|
|
3277
|
+
a.push({
|
|
3278
|
+
type: ee.literal,
|
|
3279
|
+
value: n.getDateTimeFormat(t, _).format(y)
|
|
3251
3280
|
});
|
|
3252
3281
|
continue;
|
|
3253
3282
|
}
|
|
3254
|
-
if (
|
|
3255
|
-
var _ = typeof d.style == "string" ? r.number[d.style] :
|
|
3256
|
-
_ && _.scale && (
|
|
3257
|
-
type:
|
|
3258
|
-
value: n.getNumberFormat(t, _).format(
|
|
3283
|
+
if (Gn(d)) {
|
|
3284
|
+
var _ = typeof d.style == "string" ? r.number[d.style] : zn(d.style) ? d.style.parsedOptions : void 0;
|
|
3285
|
+
_ && _.scale && (y = y * (_.scale || 1)), a.push({
|
|
3286
|
+
type: ee.literal,
|
|
3287
|
+
value: n.getNumberFormat(t, _).format(y)
|
|
3259
3288
|
});
|
|
3260
3289
|
continue;
|
|
3261
3290
|
}
|
|
3262
|
-
if (
|
|
3263
|
-
var B = d.children,
|
|
3264
|
-
if (!
|
|
3265
|
-
throw new
|
|
3266
|
-
var
|
|
3267
|
-
return
|
|
3291
|
+
if (Xn(d)) {
|
|
3292
|
+
var B = d.children, P = d.value, j = o[P];
|
|
3293
|
+
if (!Zo(j))
|
|
3294
|
+
throw new Xo(P, "function", u);
|
|
3295
|
+
var Z = mt(B, t, n, r, o, i), U = j(Z.map(function(N) {
|
|
3296
|
+
return N.value;
|
|
3268
3297
|
}));
|
|
3269
|
-
Array.isArray(U) || (U = [U]),
|
|
3298
|
+
Array.isArray(U) || (U = [U]), a.push.apply(a, U.map(function(N) {
|
|
3270
3299
|
return {
|
|
3271
|
-
type: typeof
|
|
3272
|
-
value:
|
|
3300
|
+
type: typeof N == "string" ? ee.literal : ee.object,
|
|
3301
|
+
value: N
|
|
3273
3302
|
};
|
|
3274
3303
|
}));
|
|
3275
3304
|
}
|
|
3276
|
-
if (
|
|
3277
|
-
var w = d.options[
|
|
3305
|
+
if (kn(d)) {
|
|
3306
|
+
var w = d.options[y] || d.options.other;
|
|
3278
3307
|
if (!w)
|
|
3279
|
-
throw new
|
|
3280
|
-
|
|
3308
|
+
throw new vn(d.value, y, Object.keys(d.options), u);
|
|
3309
|
+
a.push.apply(a, mt(w.value, t, n, r, o));
|
|
3281
3310
|
continue;
|
|
3282
3311
|
}
|
|
3283
|
-
if (
|
|
3284
|
-
var w = d.options["=".concat(
|
|
3312
|
+
if (Vn(d)) {
|
|
3313
|
+
var w = d.options["=".concat(y)];
|
|
3285
3314
|
if (!w) {
|
|
3286
3315
|
if (!Intl.PluralRules)
|
|
3287
|
-
throw new
|
|
3316
|
+
throw new St(`Intl.PluralRules is not available in this environment.
|
|
3288
3317
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3289
|
-
`,
|
|
3290
|
-
var
|
|
3291
|
-
w = d.options[
|
|
3318
|
+
`, je.MISSING_INTL_API, u);
|
|
3319
|
+
var C = n.getPluralRules(t, { type: d.pluralType }).select(y - (d.offset || 0));
|
|
3320
|
+
w = d.options[C] || d.options.other;
|
|
3292
3321
|
}
|
|
3293
3322
|
if (!w)
|
|
3294
|
-
throw new
|
|
3295
|
-
|
|
3323
|
+
throw new vn(d.value, y, Object.keys(d.options), u);
|
|
3324
|
+
a.push.apply(a, mt(w.value, t, n, r, o, y - (d.offset || 0)));
|
|
3296
3325
|
continue;
|
|
3297
3326
|
}
|
|
3298
3327
|
}
|
|
3299
|
-
return
|
|
3328
|
+
return Wo(a);
|
|
3300
3329
|
}
|
|
3301
|
-
function
|
|
3330
|
+
function qo(e, t) {
|
|
3302
3331
|
return t ? fe(fe(fe({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3303
3332
|
return n[r] = fe(fe({}, e[r]), t[r] || {}), n;
|
|
3304
3333
|
}, {})) : e;
|
|
3305
3334
|
}
|
|
3306
|
-
function
|
|
3335
|
+
function Qo(e, t) {
|
|
3307
3336
|
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3308
|
-
return n[r] =
|
|
3337
|
+
return n[r] = qo(e[r], t[r]), n;
|
|
3309
3338
|
}, fe({}, e)) : e;
|
|
3310
3339
|
}
|
|
3311
|
-
function
|
|
3340
|
+
function $t(e) {
|
|
3312
3341
|
return {
|
|
3313
3342
|
create: function() {
|
|
3314
3343
|
return {
|
|
@@ -3322,77 +3351,77 @@ function jt(e) {
|
|
|
3322
3351
|
}
|
|
3323
3352
|
};
|
|
3324
3353
|
}
|
|
3325
|
-
function
|
|
3354
|
+
function Jo(e) {
|
|
3326
3355
|
return e === void 0 && (e = {
|
|
3327
3356
|
number: {},
|
|
3328
3357
|
dateTime: {},
|
|
3329
3358
|
pluralRules: {}
|
|
3330
3359
|
}), {
|
|
3331
|
-
getNumberFormat:
|
|
3360
|
+
getNumberFormat: Ut(function() {
|
|
3332
3361
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3333
3362
|
n[r] = arguments[r];
|
|
3334
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3363
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ft([void 0], n, !1)))();
|
|
3335
3364
|
}, {
|
|
3336
|
-
cache:
|
|
3337
|
-
strategy:
|
|
3365
|
+
cache: $t(e.number),
|
|
3366
|
+
strategy: Gt.variadic
|
|
3338
3367
|
}),
|
|
3339
|
-
getDateTimeFormat:
|
|
3368
|
+
getDateTimeFormat: Ut(function() {
|
|
3340
3369
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3341
3370
|
n[r] = arguments[r];
|
|
3342
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3371
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ft([void 0], n, !1)))();
|
|
3343
3372
|
}, {
|
|
3344
|
-
cache:
|
|
3345
|
-
strategy:
|
|
3373
|
+
cache: $t(e.dateTime),
|
|
3374
|
+
strategy: Gt.variadic
|
|
3346
3375
|
}),
|
|
3347
|
-
getPluralRules:
|
|
3376
|
+
getPluralRules: Ut(function() {
|
|
3348
3377
|
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3349
3378
|
n[r] = arguments[r];
|
|
3350
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3379
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ft([void 0], n, !1)))();
|
|
3351
3380
|
}, {
|
|
3352
|
-
cache:
|
|
3353
|
-
strategy:
|
|
3381
|
+
cache: $t(e.pluralRules),
|
|
3382
|
+
strategy: Gt.variadic
|
|
3354
3383
|
})
|
|
3355
3384
|
};
|
|
3356
3385
|
}
|
|
3357
|
-
var
|
|
3386
|
+
var Yo = (
|
|
3358
3387
|
/** @class */
|
|
3359
3388
|
function() {
|
|
3360
|
-
function e(t, n, r,
|
|
3389
|
+
function e(t, n, r, o) {
|
|
3361
3390
|
n === void 0 && (n = e.defaultLocale);
|
|
3362
|
-
var
|
|
3391
|
+
var i = this;
|
|
3363
3392
|
if (this.formatterCache = {
|
|
3364
3393
|
number: {},
|
|
3365
3394
|
dateTime: {},
|
|
3366
3395
|
pluralRules: {}
|
|
3367
3396
|
}, this.format = function(f) {
|
|
3368
|
-
var l =
|
|
3397
|
+
var l = i.formatToParts(f);
|
|
3369
3398
|
if (l.length === 1)
|
|
3370
3399
|
return l[0].value;
|
|
3371
|
-
var d = l.reduce(function(
|
|
3372
|
-
return !
|
|
3400
|
+
var d = l.reduce(function(g, y) {
|
|
3401
|
+
return !g.length || y.type !== ee.literal || typeof g[g.length - 1] != "string" ? g.push(y.value) : g[g.length - 1] += y.value, g;
|
|
3373
3402
|
}, []);
|
|
3374
3403
|
return d.length <= 1 ? d[0] || "" : d;
|
|
3375
3404
|
}, this.formatToParts = function(f) {
|
|
3376
|
-
return
|
|
3405
|
+
return mt(i.ast, i.locales, i.formatters, i.formats, f, void 0, i.message);
|
|
3377
3406
|
}, this.resolvedOptions = function() {
|
|
3378
3407
|
var f;
|
|
3379
3408
|
return {
|
|
3380
|
-
locale: ((f =
|
|
3409
|
+
locale: ((f = i.resolvedLocale) === null || f === void 0 ? void 0 : f.toString()) || Intl.NumberFormat.supportedLocalesOf(i.locales)[0]
|
|
3381
3410
|
};
|
|
3382
3411
|
}, this.getAst = function() {
|
|
3383
|
-
return
|
|
3412
|
+
return i.ast;
|
|
3384
3413
|
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3385
3414
|
if (this.message = t, !e.__parse)
|
|
3386
3415
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3387
|
-
var u =
|
|
3416
|
+
var u = o || {};
|
|
3388
3417
|
u.formatters;
|
|
3389
|
-
var
|
|
3390
|
-
this.ast = e.__parse(t, fe(fe({},
|
|
3418
|
+
var a = ao(u, ["formatters"]);
|
|
3419
|
+
this.ast = e.__parse(t, fe(fe({}, a), { locale: this.resolvedLocale }));
|
|
3391
3420
|
} else
|
|
3392
3421
|
this.ast = t;
|
|
3393
3422
|
if (!Array.isArray(this.ast))
|
|
3394
3423
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3395
|
-
this.formats =
|
|
3424
|
+
this.formats = Qo(e.formats, r), this.formatters = o && o.formatters || Jo(this.formatterCache);
|
|
3396
3425
|
}
|
|
3397
3426
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3398
3427
|
get: function() {
|
|
@@ -3405,7 +3434,7 @@ var Zi = (
|
|
|
3405
3434
|
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3406
3435
|
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3407
3436
|
}
|
|
3408
|
-
}, e.__parse =
|
|
3437
|
+
}, e.__parse = Vo, e.formats = {
|
|
3409
3438
|
number: {
|
|
3410
3439
|
integer: {
|
|
3411
3440
|
maximumFractionDigits: 0
|
|
@@ -3466,113 +3495,113 @@ var Zi = (
|
|
|
3466
3495
|
}, e;
|
|
3467
3496
|
}()
|
|
3468
3497
|
);
|
|
3469
|
-
function
|
|
3498
|
+
function Ko(e, t) {
|
|
3470
3499
|
if (t == null)
|
|
3471
3500
|
return;
|
|
3472
3501
|
if (t in e)
|
|
3473
3502
|
return e[t];
|
|
3474
3503
|
const n = t.split(".");
|
|
3475
3504
|
let r = e;
|
|
3476
|
-
for (let
|
|
3505
|
+
for (let o = 0; o < n.length; o++)
|
|
3477
3506
|
if (typeof r == "object") {
|
|
3478
|
-
if (
|
|
3479
|
-
const
|
|
3480
|
-
if (
|
|
3481
|
-
r = r[
|
|
3507
|
+
if (o > 0) {
|
|
3508
|
+
const i = n.slice(o, n.length).join(".");
|
|
3509
|
+
if (i in r) {
|
|
3510
|
+
r = r[i];
|
|
3482
3511
|
break;
|
|
3483
3512
|
}
|
|
3484
3513
|
}
|
|
3485
|
-
r = r[n[
|
|
3514
|
+
r = r[n[o]];
|
|
3486
3515
|
} else
|
|
3487
3516
|
r = void 0;
|
|
3488
3517
|
return r;
|
|
3489
3518
|
}
|
|
3490
|
-
const
|
|
3519
|
+
const we = {}, ei = (e, t, n) => n && (t in we || (we[t] = {}), e in we[t] || (we[t][e] = n), n), er = (e, t) => {
|
|
3491
3520
|
if (t == null)
|
|
3492
3521
|
return;
|
|
3493
|
-
if (t in
|
|
3494
|
-
return
|
|
3495
|
-
const n =
|
|
3522
|
+
if (t in we && e in we[t])
|
|
3523
|
+
return we[t][e];
|
|
3524
|
+
const n = Bt(t);
|
|
3496
3525
|
for (let r = 0; r < n.length; r++) {
|
|
3497
|
-
const
|
|
3498
|
-
if (
|
|
3499
|
-
return
|
|
3526
|
+
const o = n[r], i = ni(o, e);
|
|
3527
|
+
if (i)
|
|
3528
|
+
return ei(e, t, i);
|
|
3500
3529
|
}
|
|
3501
3530
|
};
|
|
3502
|
-
let
|
|
3503
|
-
const
|
|
3504
|
-
function
|
|
3505
|
-
return
|
|
3531
|
+
let on;
|
|
3532
|
+
const it = _t({});
|
|
3533
|
+
function ti(e) {
|
|
3534
|
+
return on[e] || null;
|
|
3506
3535
|
}
|
|
3507
|
-
function
|
|
3508
|
-
return e in
|
|
3536
|
+
function tr(e) {
|
|
3537
|
+
return e in on;
|
|
3509
3538
|
}
|
|
3510
|
-
function
|
|
3511
|
-
if (!
|
|
3539
|
+
function ni(e, t) {
|
|
3540
|
+
if (!tr(e))
|
|
3512
3541
|
return null;
|
|
3513
|
-
const n =
|
|
3514
|
-
return
|
|
3542
|
+
const n = ti(e);
|
|
3543
|
+
return Ko(n, t);
|
|
3515
3544
|
}
|
|
3516
|
-
function
|
|
3545
|
+
function ri(e) {
|
|
3517
3546
|
if (e == null)
|
|
3518
3547
|
return;
|
|
3519
|
-
const t =
|
|
3548
|
+
const t = Bt(e);
|
|
3520
3549
|
for (let n = 0; n < t.length; n++) {
|
|
3521
3550
|
const r = t[n];
|
|
3522
|
-
if (
|
|
3551
|
+
if (tr(r))
|
|
3523
3552
|
return r;
|
|
3524
3553
|
}
|
|
3525
3554
|
}
|
|
3526
|
-
function
|
|
3527
|
-
delete
|
|
3555
|
+
function nr(e, ...t) {
|
|
3556
|
+
delete we[e], it.update((n) => (n[e] = io.all([n[e] || {}, ...t]), n));
|
|
3528
3557
|
}
|
|
3529
|
-
|
|
3530
|
-
[
|
|
3558
|
+
Ve(
|
|
3559
|
+
[it],
|
|
3531
3560
|
([e]) => Object.keys(e)
|
|
3532
3561
|
);
|
|
3533
|
-
|
|
3534
|
-
const
|
|
3535
|
-
function
|
|
3536
|
-
|
|
3562
|
+
it.subscribe((e) => on = e);
|
|
3563
|
+
const gt = {};
|
|
3564
|
+
function oi(e, t) {
|
|
3565
|
+
gt[e].delete(t), gt[e].size === 0 && delete gt[e];
|
|
3537
3566
|
}
|
|
3538
|
-
function
|
|
3539
|
-
return
|
|
3567
|
+
function rr(e) {
|
|
3568
|
+
return gt[e];
|
|
3540
3569
|
}
|
|
3541
|
-
function
|
|
3542
|
-
return
|
|
3543
|
-
const n =
|
|
3570
|
+
function ii(e) {
|
|
3571
|
+
return Bt(e).map((t) => {
|
|
3572
|
+
const n = rr(t);
|
|
3544
3573
|
return [t, n ? [...n] : []];
|
|
3545
3574
|
}).filter(([, t]) => t.length > 0);
|
|
3546
3575
|
}
|
|
3547
|
-
function
|
|
3548
|
-
return e == null ? !1 :
|
|
3576
|
+
function en(e) {
|
|
3577
|
+
return e == null ? !1 : Bt(e).some(
|
|
3549
3578
|
(t) => {
|
|
3550
3579
|
var n;
|
|
3551
|
-
return (n =
|
|
3580
|
+
return (n = rr(t)) == null ? void 0 : n.size;
|
|
3552
3581
|
}
|
|
3553
3582
|
);
|
|
3554
3583
|
}
|
|
3555
|
-
function
|
|
3584
|
+
function ai(e, t) {
|
|
3556
3585
|
return Promise.all(
|
|
3557
|
-
t.map((r) => (
|
|
3558
|
-
).then((r) =>
|
|
3559
|
-
}
|
|
3560
|
-
const
|
|
3561
|
-
function
|
|
3562
|
-
if (!
|
|
3563
|
-
return e in
|
|
3564
|
-
const t =
|
|
3565
|
-
return
|
|
3586
|
+
t.map((r) => (oi(e, r), r().then((o) => o.default || o)))
|
|
3587
|
+
).then((r) => nr(e, ...r));
|
|
3588
|
+
}
|
|
3589
|
+
const et = {};
|
|
3590
|
+
function or(e) {
|
|
3591
|
+
if (!en(e))
|
|
3592
|
+
return e in et ? et[e] : Promise.resolve();
|
|
3593
|
+
const t = ii(e);
|
|
3594
|
+
return et[e] = Promise.all(
|
|
3566
3595
|
t.map(
|
|
3567
|
-
([n, r]) =>
|
|
3596
|
+
([n, r]) => ai(n, r)
|
|
3568
3597
|
)
|
|
3569
3598
|
).then(() => {
|
|
3570
|
-
if (
|
|
3571
|
-
return
|
|
3572
|
-
delete
|
|
3573
|
-
}),
|
|
3599
|
+
if (en(e))
|
|
3600
|
+
return or(e);
|
|
3601
|
+
delete et[e];
|
|
3602
|
+
}), et[e];
|
|
3574
3603
|
}
|
|
3575
|
-
const
|
|
3604
|
+
const si = {
|
|
3576
3605
|
number: {
|
|
3577
3606
|
scientific: { notation: "scientific" },
|
|
3578
3607
|
engineering: { notation: "engineering" },
|
|
@@ -3601,140 +3630,140 @@ const ro = {
|
|
|
3601
3630
|
timeZoneName: "short"
|
|
3602
3631
|
}
|
|
3603
3632
|
}
|
|
3604
|
-
},
|
|
3633
|
+
}, ui = {
|
|
3605
3634
|
fallbackLocale: null,
|
|
3606
3635
|
loadingDelay: 200,
|
|
3607
|
-
formats:
|
|
3636
|
+
formats: si,
|
|
3608
3637
|
warnOnMissingMessages: !0,
|
|
3609
3638
|
handleMissingMessage: void 0,
|
|
3610
3639
|
ignoreTag: !0
|
|
3611
|
-
},
|
|
3612
|
-
function
|
|
3613
|
-
return
|
|
3640
|
+
}, li = ui;
|
|
3641
|
+
function $e() {
|
|
3642
|
+
return li;
|
|
3614
3643
|
}
|
|
3615
|
-
const
|
|
3616
|
-
var
|
|
3644
|
+
const kt = _t(!1);
|
|
3645
|
+
var hi = Object.defineProperty, ci = Object.defineProperties, fi = Object.getOwnPropertyDescriptors, En = Object.getOwnPropertySymbols, di = Object.prototype.hasOwnProperty, pi = Object.prototype.propertyIsEnumerable, xn = (e, t, n) => t in e ? hi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, mi = (e, t) => {
|
|
3617
3646
|
for (var n in t || (t = {}))
|
|
3618
|
-
|
|
3619
|
-
if (
|
|
3620
|
-
for (var n of
|
|
3621
|
-
|
|
3647
|
+
di.call(t, n) && xn(e, n, t[n]);
|
|
3648
|
+
if (En)
|
|
3649
|
+
for (var n of En(t))
|
|
3650
|
+
pi.call(t, n) && xn(e, n, t[n]);
|
|
3622
3651
|
return e;
|
|
3623
|
-
},
|
|
3624
|
-
let
|
|
3625
|
-
const
|
|
3626
|
-
function
|
|
3652
|
+
}, gi = (e, t) => ci(e, fi(t));
|
|
3653
|
+
let tn;
|
|
3654
|
+
const Et = _t(null);
|
|
3655
|
+
function _n(e) {
|
|
3627
3656
|
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3628
3657
|
}
|
|
3629
|
-
function
|
|
3630
|
-
const n =
|
|
3631
|
-
return t ? [.../* @__PURE__ */ new Set([...n, ...
|
|
3658
|
+
function Bt(e, t = $e().fallbackLocale) {
|
|
3659
|
+
const n = _n(e);
|
|
3660
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ..._n(t)])] : n;
|
|
3632
3661
|
}
|
|
3633
3662
|
function Oe() {
|
|
3634
|
-
return
|
|
3663
|
+
return tn != null ? tn : void 0;
|
|
3635
3664
|
}
|
|
3636
|
-
|
|
3637
|
-
|
|
3665
|
+
Et.subscribe((e) => {
|
|
3666
|
+
tn = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3638
3667
|
});
|
|
3639
|
-
const
|
|
3640
|
-
if (e &&
|
|
3641
|
-
const { loadingDelay: t } =
|
|
3668
|
+
const bi = (e) => {
|
|
3669
|
+
if (e && ri(e) && en(e)) {
|
|
3670
|
+
const { loadingDelay: t } = $e();
|
|
3642
3671
|
let n;
|
|
3643
3672
|
return typeof window != "undefined" && Oe() != null && t ? n = window.setTimeout(
|
|
3644
|
-
() =>
|
|
3673
|
+
() => kt.set(!0),
|
|
3645
3674
|
t
|
|
3646
|
-
) :
|
|
3647
|
-
|
|
3675
|
+
) : kt.set(!0), or(e).then(() => {
|
|
3676
|
+
Et.set(e);
|
|
3648
3677
|
}).finally(() => {
|
|
3649
|
-
clearTimeout(n),
|
|
3678
|
+
clearTimeout(n), kt.set(!1);
|
|
3650
3679
|
});
|
|
3651
3680
|
}
|
|
3652
|
-
return
|
|
3653
|
-
},
|
|
3654
|
-
set:
|
|
3655
|
-
}),
|
|
3681
|
+
return Et.set(e);
|
|
3682
|
+
}, Xe = gi(mi({}, Et), {
|
|
3683
|
+
set: bi
|
|
3684
|
+
}), wt = (e) => {
|
|
3656
3685
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3657
3686
|
return (r) => {
|
|
3658
|
-
const
|
|
3659
|
-
return
|
|
3687
|
+
const o = JSON.stringify(r);
|
|
3688
|
+
return o in t ? t[o] : t[o] = e(r);
|
|
3660
3689
|
};
|
|
3661
3690
|
};
|
|
3662
|
-
var
|
|
3691
|
+
var yi = Object.defineProperty, xt = Object.getOwnPropertySymbols, ir = Object.prototype.hasOwnProperty, ar = Object.prototype.propertyIsEnumerable, Tn = (e, t, n) => t in e ? yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, an = (e, t) => {
|
|
3663
3692
|
for (var n in t || (t = {}))
|
|
3664
|
-
ir.call(t, n) &&
|
|
3665
|
-
if (
|
|
3666
|
-
for (var n of
|
|
3667
|
-
|
|
3693
|
+
ir.call(t, n) && Tn(e, n, t[n]);
|
|
3694
|
+
if (xt)
|
|
3695
|
+
for (var n of xt(t))
|
|
3696
|
+
ar.call(t, n) && Tn(e, n, t[n]);
|
|
3668
3697
|
return e;
|
|
3669
|
-
},
|
|
3698
|
+
}, ze = (e, t) => {
|
|
3670
3699
|
var n = {};
|
|
3671
3700
|
for (var r in e)
|
|
3672
3701
|
ir.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3673
|
-
if (e != null &&
|
|
3674
|
-
for (var r of
|
|
3675
|
-
t.indexOf(r) < 0 &&
|
|
3702
|
+
if (e != null && xt)
|
|
3703
|
+
for (var r of xt(e))
|
|
3704
|
+
t.indexOf(r) < 0 && ar.call(e, r) && (n[r] = e[r]);
|
|
3676
3705
|
return n;
|
|
3677
3706
|
};
|
|
3678
|
-
const
|
|
3679
|
-
const { formats: n } =
|
|
3707
|
+
const ot = (e, t) => {
|
|
3708
|
+
const { formats: n } = $e();
|
|
3680
3709
|
if (e in n && t in n[e])
|
|
3681
3710
|
return n[e][t];
|
|
3682
3711
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3683
|
-
},
|
|
3712
|
+
}, vi = wt(
|
|
3684
3713
|
(e) => {
|
|
3685
|
-
var t = e, { locale: n, format: r } = t,
|
|
3714
|
+
var t = e, { locale: n, format: r } = t, o = ze(t, ["locale", "format"]);
|
|
3686
3715
|
if (n == null)
|
|
3687
3716
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3688
|
-
return r && (
|
|
3717
|
+
return r && (o = ot("number", r)), new Intl.NumberFormat(n, o);
|
|
3689
3718
|
}
|
|
3690
|
-
),
|
|
3719
|
+
), Ei = wt(
|
|
3691
3720
|
(e) => {
|
|
3692
|
-
var t = e, { locale: n, format: r } = t,
|
|
3721
|
+
var t = e, { locale: n, format: r } = t, o = ze(t, ["locale", "format"]);
|
|
3693
3722
|
if (n == null)
|
|
3694
3723
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3695
|
-
return r ?
|
|
3724
|
+
return r ? o = ot("date", r) : Object.keys(o).length === 0 && (o = ot("date", "short")), new Intl.DateTimeFormat(n, o);
|
|
3696
3725
|
}
|
|
3697
|
-
),
|
|
3726
|
+
), xi = wt(
|
|
3698
3727
|
(e) => {
|
|
3699
|
-
var t = e, { locale: n, format: r } = t,
|
|
3728
|
+
var t = e, { locale: n, format: r } = t, o = ze(t, ["locale", "format"]);
|
|
3700
3729
|
if (n == null)
|
|
3701
3730
|
throw new Error(
|
|
3702
3731
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3703
3732
|
);
|
|
3704
|
-
return r ?
|
|
3733
|
+
return r ? o = ot("time", r) : Object.keys(o).length === 0 && (o = ot("time", "short")), new Intl.DateTimeFormat(n, o);
|
|
3705
3734
|
}
|
|
3706
|
-
),
|
|
3735
|
+
), _i = (e = {}) => {
|
|
3707
3736
|
var t = e, {
|
|
3708
3737
|
locale: n = Oe()
|
|
3709
|
-
} = t, r =
|
|
3738
|
+
} = t, r = ze(t, [
|
|
3710
3739
|
"locale"
|
|
3711
3740
|
]);
|
|
3712
|
-
return
|
|
3713
|
-
},
|
|
3741
|
+
return vi(an({ locale: n }, r));
|
|
3742
|
+
}, Ti = (e = {}) => {
|
|
3714
3743
|
var t = e, {
|
|
3715
3744
|
locale: n = Oe()
|
|
3716
|
-
} = t, r =
|
|
3745
|
+
} = t, r = ze(t, [
|
|
3717
3746
|
"locale"
|
|
3718
3747
|
]);
|
|
3719
|
-
return
|
|
3720
|
-
},
|
|
3748
|
+
return Ei(an({ locale: n }, r));
|
|
3749
|
+
}, Si = (e = {}) => {
|
|
3721
3750
|
var t = e, {
|
|
3722
3751
|
locale: n = Oe()
|
|
3723
|
-
} = t, r =
|
|
3752
|
+
} = t, r = ze(t, [
|
|
3724
3753
|
"locale"
|
|
3725
3754
|
]);
|
|
3726
|
-
return
|
|
3727
|
-
},
|
|
3755
|
+
return xi(an({ locale: n }, r));
|
|
3756
|
+
}, Bi = wt(
|
|
3728
3757
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3729
|
-
(e, t = Oe()) => new
|
|
3730
|
-
ignoreTag:
|
|
3758
|
+
(e, t = Oe()) => new Yo(e, t, $e().formats, {
|
|
3759
|
+
ignoreTag: $e().ignoreTag
|
|
3731
3760
|
})
|
|
3732
|
-
),
|
|
3733
|
-
var n, r,
|
|
3761
|
+
), wi = (e, t = {}) => {
|
|
3762
|
+
var n, r, o, i;
|
|
3734
3763
|
let u = t;
|
|
3735
3764
|
typeof e == "object" && (u = e, e = u.id);
|
|
3736
3765
|
const {
|
|
3737
|
-
values:
|
|
3766
|
+
values: a,
|
|
3738
3767
|
locale: f = Oe(),
|
|
3739
3768
|
default: l
|
|
3740
3769
|
} = u;
|
|
@@ -3742,35 +3771,35 @@ const nt = (e, t) => {
|
|
|
3742
3771
|
throw new Error(
|
|
3743
3772
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3744
3773
|
);
|
|
3745
|
-
let d =
|
|
3774
|
+
let d = er(e, f);
|
|
3746
3775
|
if (!d)
|
|
3747
|
-
d = (
|
|
3776
|
+
d = (i = (o = (r = (n = $e()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: f, id: e, defaultValue: l })) != null ? o : l) != null ? i : e;
|
|
3748
3777
|
else if (typeof d != "string")
|
|
3749
3778
|
return console.warn(
|
|
3750
3779
|
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3751
3780
|
), d;
|
|
3752
|
-
if (!
|
|
3781
|
+
if (!a)
|
|
3753
3782
|
return d;
|
|
3754
|
-
let
|
|
3783
|
+
let g = d;
|
|
3755
3784
|
try {
|
|
3756
|
-
|
|
3757
|
-
} catch (
|
|
3758
|
-
|
|
3785
|
+
g = Bi(d, f).format(a);
|
|
3786
|
+
} catch (y) {
|
|
3787
|
+
y instanceof Error && console.warn(
|
|
3759
3788
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3760
|
-
|
|
3789
|
+
y.message
|
|
3761
3790
|
);
|
|
3762
3791
|
}
|
|
3763
|
-
return
|
|
3764
|
-
},
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
function
|
|
3770
|
-
|
|
3771
|
-
}
|
|
3772
|
-
function
|
|
3773
|
-
|
|
3792
|
+
return g;
|
|
3793
|
+
}, Ai = (e, t) => Si(t).format(e), Ci = (e, t) => Ti(t).format(e), Hi = (e, t) => _i(t).format(e), Oi = (e, t = Oe()) => er(e, t), Li = Ve([Xe, it], () => wi);
|
|
3794
|
+
Ve([Xe], () => Ai);
|
|
3795
|
+
Ve([Xe], () => Ci);
|
|
3796
|
+
Ve([Xe], () => Hi);
|
|
3797
|
+
Ve([Xe, it], () => Oi);
|
|
3798
|
+
function Sn(e, t) {
|
|
3799
|
+
nr(e, t);
|
|
3800
|
+
}
|
|
3801
|
+
function Ri(e) {
|
|
3802
|
+
Xe.set(e);
|
|
3774
3803
|
}
|
|
3775
3804
|
const Bn = {
|
|
3776
3805
|
en: {
|
|
@@ -3972,7 +4001,7 @@ const Bn = {
|
|
|
3972
4001
|
Loading: "Loading ..."
|
|
3973
4002
|
}
|
|
3974
4003
|
};
|
|
3975
|
-
var
|
|
4004
|
+
var nn = { exports: {} };
|
|
3976
4005
|
/** @license
|
|
3977
4006
|
* eventsource.js
|
|
3978
4007
|
* Available under MIT License (MIT)
|
|
@@ -3980,35 +4009,35 @@ var tn = { exports: {} };
|
|
|
3980
4009
|
*/
|
|
3981
4010
|
(function(e, t) {
|
|
3982
4011
|
(function(n) {
|
|
3983
|
-
var r = n.setTimeout,
|
|
3984
|
-
if (typeof window != "undefined" && typeof l != "undefined" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(
|
|
4012
|
+
var r = n.setTimeout, o = n.clearTimeout, i = n.XMLHttpRequest, u = n.XDomainRequest, a = n.ActiveXObject, f = n.EventSource, l = n.document, d = n.Promise, g = n.fetch, y = n.Response, _ = n.TextDecoder, B = n.TextEncoder, P = n.AbortController;
|
|
4013
|
+
if (typeof window != "undefined" && typeof l != "undefined" && !("readyState" in l) && l.body == null && (l.readyState = "loading", window.addEventListener("load", function(h) {
|
|
3985
4014
|
l.readyState = "complete";
|
|
3986
|
-
}, !1)),
|
|
3987
|
-
return new
|
|
3988
|
-
}), Object.create == null && (Object.create = function(
|
|
3989
|
-
function
|
|
4015
|
+
}, !1)), i == null && a != null && (i = function() {
|
|
4016
|
+
return new a("Microsoft.XMLHTTP");
|
|
4017
|
+
}), Object.create == null && (Object.create = function(h) {
|
|
4018
|
+
function v() {
|
|
3990
4019
|
}
|
|
3991
|
-
return
|
|
4020
|
+
return v.prototype = h, new v();
|
|
3992
4021
|
}), Date.now || (Date.now = function() {
|
|
3993
4022
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
3994
|
-
}),
|
|
3995
|
-
var j =
|
|
3996
|
-
|
|
3997
|
-
var
|
|
3998
|
-
return j(
|
|
3999
|
-
var
|
|
4000
|
-
return
|
|
4001
|
-
status:
|
|
4002
|
-
statusText:
|
|
4003
|
-
headers:
|
|
4023
|
+
}), P == null) {
|
|
4024
|
+
var j = g;
|
|
4025
|
+
g = function(h, v) {
|
|
4026
|
+
var s = v.signal;
|
|
4027
|
+
return j(h, { headers: v.headers, credentials: v.credentials, cache: v.cache }).then(function(c) {
|
|
4028
|
+
var p = c.body.getReader();
|
|
4029
|
+
return s._reader = p, s._aborted && s._reader.cancel(), {
|
|
4030
|
+
status: c.status,
|
|
4031
|
+
statusText: c.statusText,
|
|
4032
|
+
headers: c.headers,
|
|
4004
4033
|
body: {
|
|
4005
4034
|
getReader: function() {
|
|
4006
|
-
return
|
|
4035
|
+
return p;
|
|
4007
4036
|
}
|
|
4008
4037
|
}
|
|
4009
4038
|
};
|
|
4010
4039
|
});
|
|
4011
|
-
},
|
|
4040
|
+
}, P = function() {
|
|
4012
4041
|
this.signal = {
|
|
4013
4042
|
_reader: null,
|
|
4014
4043
|
_aborted: !1
|
|
@@ -4017,419 +4046,419 @@ var tn = { exports: {} };
|
|
|
4017
4046
|
};
|
|
4018
4047
|
};
|
|
4019
4048
|
}
|
|
4020
|
-
function
|
|
4049
|
+
function Z() {
|
|
4021
4050
|
this.bitsNeeded = 0, this.codePoint = 0;
|
|
4022
4051
|
}
|
|
4023
|
-
|
|
4024
|
-
function
|
|
4025
|
-
if (
|
|
4026
|
-
return
|
|
4027
|
-
if (
|
|
4028
|
-
return
|
|
4029
|
-
if (
|
|
4030
|
-
return
|
|
4052
|
+
Z.prototype.decode = function(h) {
|
|
4053
|
+
function v(A, O, T) {
|
|
4054
|
+
if (T === 1)
|
|
4055
|
+
return A >= 128 >> O && A << O <= 2047;
|
|
4056
|
+
if (T === 2)
|
|
4057
|
+
return A >= 2048 >> O && A << O <= 55295 || A >= 57344 >> O && A << O <= 65535;
|
|
4058
|
+
if (T === 3)
|
|
4059
|
+
return A >= 65536 >> O && A << O <= 1114111;
|
|
4031
4060
|
throw new Error();
|
|
4032
4061
|
}
|
|
4033
|
-
function
|
|
4034
|
-
if (
|
|
4035
|
-
return
|
|
4036
|
-
if (
|
|
4037
|
-
return
|
|
4038
|
-
if (
|
|
4062
|
+
function s(A, O) {
|
|
4063
|
+
if (A === 6 * 1)
|
|
4064
|
+
return O >> 6 > 15 ? 3 : O > 31 ? 2 : 1;
|
|
4065
|
+
if (A === 6 * 2)
|
|
4066
|
+
return O > 15 ? 3 : 2;
|
|
4067
|
+
if (A === 6 * 3)
|
|
4039
4068
|
return 3;
|
|
4040
4069
|
throw new Error();
|
|
4041
4070
|
}
|
|
4042
|
-
for (var
|
|
4043
|
-
var
|
|
4044
|
-
|
|
4071
|
+
for (var c = 65533, p = "", m = this.bitsNeeded, E = this.codePoint, S = 0; S < h.length; S += 1) {
|
|
4072
|
+
var b = h[S];
|
|
4073
|
+
m !== 0 && (b < 128 || b > 191 || !v(E << 6 | b & 63, m - 6, s(m, E))) && (m = 0, E = c, p += String.fromCharCode(E)), m === 0 ? (b >= 0 && b <= 127 ? (m = 0, E = b) : b >= 192 && b <= 223 ? (m = 6 * 1, E = b & 31) : b >= 224 && b <= 239 ? (m = 6 * 2, E = b & 15) : b >= 240 && b <= 247 ? (m = 6 * 3, E = b & 7) : (m = 0, E = c), m !== 0 && !v(E, m, s(m, E)) && (m = 0, E = c)) : (m -= 6, E = E << 6 | b & 63), m === 0 && (E <= 65535 ? p += String.fromCharCode(E) : (p += String.fromCharCode(55296 + (E - 65535 - 1 >> 10)), p += String.fromCharCode(56320 + (E - 65535 - 1 & 1023))));
|
|
4045
4074
|
}
|
|
4046
|
-
return this.bitsNeeded =
|
|
4075
|
+
return this.bitsNeeded = m, this.codePoint = E, p;
|
|
4047
4076
|
};
|
|
4048
4077
|
var U = function() {
|
|
4049
4078
|
try {
|
|
4050
4079
|
return new _().decode(new B().encode("test"), { stream: !0 }) === "test";
|
|
4051
|
-
} catch (
|
|
4052
|
-
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " +
|
|
4080
|
+
} catch (h) {
|
|
4081
|
+
console.debug("TextDecoder does not support streaming option. Using polyfill instead: " + h);
|
|
4053
4082
|
}
|
|
4054
4083
|
return !1;
|
|
4055
4084
|
};
|
|
4056
|
-
(_ == null || B == null || !U()) && (_ =
|
|
4085
|
+
(_ == null || B == null || !U()) && (_ = Z);
|
|
4057
4086
|
var w = function() {
|
|
4058
4087
|
};
|
|
4059
|
-
function
|
|
4060
|
-
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = w, this.onload = w, this.onerror = w, this.onreadystatechange = w, this._contentType = "", this._xhr =
|
|
4088
|
+
function C(h) {
|
|
4089
|
+
this.withCredentials = !1, this.readyState = 0, this.status = 0, this.statusText = "", this.responseText = "", this.onprogress = w, this.onload = w, this.onerror = w, this.onreadystatechange = w, this._contentType = "", this._xhr = h, this._sendTimeout = 0, this._abort = w;
|
|
4061
4090
|
}
|
|
4062
|
-
|
|
4091
|
+
C.prototype.open = function(h, v) {
|
|
4063
4092
|
this._abort(!0);
|
|
4064
|
-
var
|
|
4065
|
-
this._abort = function(
|
|
4066
|
-
|
|
4093
|
+
var s = this, c = this._xhr, p = 1, m = 0;
|
|
4094
|
+
this._abort = function(T) {
|
|
4095
|
+
s._sendTimeout !== 0 && (o(s._sendTimeout), s._sendTimeout = 0), (p === 1 || p === 2 || p === 3) && (p = 4, c.onload = w, c.onerror = w, c.onabort = w, c.onprogress = w, c.onreadystatechange = w, c.abort(), m !== 0 && (o(m), m = 0), T || (s.readyState = 4, s.onabort(null), s.onreadystatechange())), p = 0;
|
|
4067
4096
|
};
|
|
4068
4097
|
var E = function() {
|
|
4069
|
-
if (
|
|
4070
|
-
var
|
|
4071
|
-
if ("contentType" in
|
|
4072
|
-
|
|
4098
|
+
if (p === 1) {
|
|
4099
|
+
var T = 0, I = "", Q = void 0;
|
|
4100
|
+
if ("contentType" in c)
|
|
4101
|
+
T = 200, I = "OK", Q = c.contentType;
|
|
4073
4102
|
else
|
|
4074
4103
|
try {
|
|
4075
|
-
|
|
4076
|
-
} catch (
|
|
4077
|
-
|
|
4104
|
+
T = c.status, I = c.statusText, Q = c.getResponseHeader("Content-Type");
|
|
4105
|
+
} catch (Ye) {
|
|
4106
|
+
T = 0, I = "", Q = void 0;
|
|
4078
4107
|
}
|
|
4079
|
-
|
|
4108
|
+
T !== 0 && (p = 2, s.readyState = 2, s.status = T, s.statusText = I, s._contentType = Q, s.onreadystatechange());
|
|
4080
4109
|
}
|
|
4081
|
-
},
|
|
4082
|
-
if (E(),
|
|
4083
|
-
|
|
4084
|
-
var
|
|
4110
|
+
}, S = function() {
|
|
4111
|
+
if (E(), p === 2 || p === 3) {
|
|
4112
|
+
p = 3;
|
|
4113
|
+
var T = "";
|
|
4085
4114
|
try {
|
|
4086
|
-
|
|
4087
|
-
} catch (
|
|
4115
|
+
T = c.responseText;
|
|
4116
|
+
} catch (I) {
|
|
4088
4117
|
}
|
|
4089
|
-
|
|
4118
|
+
s.readyState = 3, s.responseText = T, s.onprogress();
|
|
4090
4119
|
}
|
|
4091
|
-
},
|
|
4092
|
-
if ((
|
|
4120
|
+
}, b = function(T, I) {
|
|
4121
|
+
if ((I == null || I.preventDefault == null) && (I = {
|
|
4093
4122
|
preventDefault: w
|
|
4094
|
-
}),
|
|
4095
|
-
if (
|
|
4096
|
-
|
|
4097
|
-
else if (
|
|
4098
|
-
|
|
4099
|
-
else if (
|
|
4100
|
-
|
|
4123
|
+
}), S(), p === 1 || p === 2 || p === 3) {
|
|
4124
|
+
if (p = 4, m !== 0 && (o(m), m = 0), s.readyState = 4, T === "load")
|
|
4125
|
+
s.onload(I);
|
|
4126
|
+
else if (T === "error")
|
|
4127
|
+
s.onerror(I);
|
|
4128
|
+
else if (T === "abort")
|
|
4129
|
+
s.onabort(I);
|
|
4101
4130
|
else
|
|
4102
4131
|
throw new TypeError();
|
|
4103
|
-
|
|
4132
|
+
s.onreadystatechange();
|
|
4104
4133
|
}
|
|
4105
|
-
},
|
|
4106
|
-
|
|
4107
|
-
},
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
}, 500),
|
|
4134
|
+
}, A = function(T) {
|
|
4135
|
+
c != null && (c.readyState === 4 ? (!("onload" in c) || !("onerror" in c) || !("onabort" in c)) && b(c.responseText === "" ? "error" : "load", T) : c.readyState === 3 ? "onprogress" in c || S() : c.readyState === 2 && E());
|
|
4136
|
+
}, O = function() {
|
|
4137
|
+
m = r(function() {
|
|
4138
|
+
O();
|
|
4139
|
+
}, 500), c.readyState === 3 && S();
|
|
4111
4140
|
};
|
|
4112
|
-
"onload" in
|
|
4113
|
-
|
|
4114
|
-
}), "onerror" in
|
|
4115
|
-
|
|
4116
|
-
}), "onabort" in
|
|
4117
|
-
|
|
4118
|
-
}), "onprogress" in
|
|
4119
|
-
|
|
4120
|
-
}), ("contentType" in
|
|
4121
|
-
|
|
4141
|
+
"onload" in c && (c.onload = function(T) {
|
|
4142
|
+
b("load", T);
|
|
4143
|
+
}), "onerror" in c && (c.onerror = function(T) {
|
|
4144
|
+
b("error", T);
|
|
4145
|
+
}), "onabort" in c && (c.onabort = function(T) {
|
|
4146
|
+
b("abort", T);
|
|
4147
|
+
}), "onprogress" in c && (c.onprogress = S), "onreadystatechange" in c && (c.onreadystatechange = function(T) {
|
|
4148
|
+
A(T);
|
|
4149
|
+
}), ("contentType" in c || !("ontimeout" in i.prototype)) && (v += (v.indexOf("?") === -1 ? "?" : "&") + "padding=true"), c.open(h, v, !0), "readyState" in c && (m = r(function() {
|
|
4150
|
+
O();
|
|
4122
4151
|
}, 0));
|
|
4123
|
-
},
|
|
4152
|
+
}, C.prototype.abort = function() {
|
|
4124
4153
|
this._abort(!1);
|
|
4125
|
-
},
|
|
4154
|
+
}, C.prototype.getResponseHeader = function(h) {
|
|
4126
4155
|
return this._contentType;
|
|
4127
|
-
},
|
|
4128
|
-
var
|
|
4129
|
-
"setRequestHeader" in
|
|
4130
|
-
},
|
|
4156
|
+
}, C.prototype.setRequestHeader = function(h, v) {
|
|
4157
|
+
var s = this._xhr;
|
|
4158
|
+
"setRequestHeader" in s && s.setRequestHeader(h, v);
|
|
4159
|
+
}, C.prototype.getAllResponseHeaders = function() {
|
|
4131
4160
|
return this._xhr.getAllResponseHeaders != null && this._xhr.getAllResponseHeaders() || "";
|
|
4132
|
-
},
|
|
4133
|
-
if ((!("ontimeout" in
|
|
4134
|
-
var
|
|
4135
|
-
|
|
4136
|
-
|
|
4161
|
+
}, C.prototype.send = function() {
|
|
4162
|
+
if ((!("ontimeout" in i.prototype) || !("sendAsBinary" in i.prototype) && !("mozAnon" in i.prototype)) && l != null && l.readyState != null && l.readyState !== "complete") {
|
|
4163
|
+
var h = this;
|
|
4164
|
+
h._sendTimeout = r(function() {
|
|
4165
|
+
h._sendTimeout = 0, h.send();
|
|
4137
4166
|
}, 4);
|
|
4138
4167
|
return;
|
|
4139
4168
|
}
|
|
4140
|
-
var
|
|
4141
|
-
"withCredentials" in
|
|
4169
|
+
var v = this._xhr;
|
|
4170
|
+
"withCredentials" in v && (v.withCredentials = this.withCredentials);
|
|
4142
4171
|
try {
|
|
4143
|
-
|
|
4144
|
-
} catch (
|
|
4145
|
-
throw
|
|
4172
|
+
v.send(void 0);
|
|
4173
|
+
} catch (s) {
|
|
4174
|
+
throw s;
|
|
4146
4175
|
}
|
|
4147
4176
|
};
|
|
4148
|
-
function
|
|
4149
|
-
return
|
|
4150
|
-
return String.fromCharCode(
|
|
4177
|
+
function N(h) {
|
|
4178
|
+
return h.replace(/[A-Z]/g, function(v) {
|
|
4179
|
+
return String.fromCharCode(v.charCodeAt(0) + 32);
|
|
4151
4180
|
});
|
|
4152
4181
|
}
|
|
4153
|
-
function
|
|
4154
|
-
for (var
|
|
4155
|
-
`),
|
|
4156
|
-
var
|
|
4157
|
-
|
|
4182
|
+
function M(h) {
|
|
4183
|
+
for (var v = /* @__PURE__ */ Object.create(null), s = h.split(`\r
|
|
4184
|
+
`), c = 0; c < s.length; c += 1) {
|
|
4185
|
+
var p = s[c], m = p.split(": "), E = m.shift(), S = m.join(": ");
|
|
4186
|
+
v[N(E)] = S;
|
|
4158
4187
|
}
|
|
4159
|
-
this._map =
|
|
4188
|
+
this._map = v;
|
|
4160
4189
|
}
|
|
4161
|
-
|
|
4162
|
-
return this._map[
|
|
4163
|
-
},
|
|
4164
|
-
function
|
|
4190
|
+
M.prototype.get = function(h) {
|
|
4191
|
+
return this._map[N(h)];
|
|
4192
|
+
}, i != null && i.HEADERS_RECEIVED == null && (i.HEADERS_RECEIVED = 2);
|
|
4193
|
+
function W() {
|
|
4165
4194
|
}
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
var
|
|
4169
|
-
|
|
4170
|
-
var
|
|
4171
|
-
|
|
4172
|
-
},
|
|
4173
|
-
|
|
4174
|
-
},
|
|
4175
|
-
|
|
4176
|
-
},
|
|
4177
|
-
|
|
4178
|
-
},
|
|
4179
|
-
if (
|
|
4180
|
-
var
|
|
4181
|
-
|
|
4195
|
+
W.prototype.open = function(h, v, s, c, p, m, E) {
|
|
4196
|
+
h.open("GET", p);
|
|
4197
|
+
var S = 0;
|
|
4198
|
+
h.onprogress = function() {
|
|
4199
|
+
var A = h.responseText, O = A.slice(S);
|
|
4200
|
+
S += O.length, s(O);
|
|
4201
|
+
}, h.onerror = function(A) {
|
|
4202
|
+
A.preventDefault(), c(new Error("NetworkError"));
|
|
4203
|
+
}, h.onload = function() {
|
|
4204
|
+
c(null);
|
|
4205
|
+
}, h.onabort = function() {
|
|
4206
|
+
c(null);
|
|
4207
|
+
}, h.onreadystatechange = function() {
|
|
4208
|
+
if (h.readyState === i.HEADERS_RECEIVED) {
|
|
4209
|
+
var A = h.status, O = h.statusText, T = h.getResponseHeader("Content-Type"), I = h.getAllResponseHeaders();
|
|
4210
|
+
v(A, O, T, new M(I));
|
|
4182
4211
|
}
|
|
4183
|
-
},
|
|
4184
|
-
for (var
|
|
4185
|
-
Object.prototype.hasOwnProperty.call(E,
|
|
4186
|
-
return
|
|
4212
|
+
}, h.withCredentials = m;
|
|
4213
|
+
for (var b in E)
|
|
4214
|
+
Object.prototype.hasOwnProperty.call(E, b) && h.setRequestHeader(b, E[b]);
|
|
4215
|
+
return h.send(), h;
|
|
4187
4216
|
};
|
|
4188
|
-
function
|
|
4189
|
-
this._headers =
|
|
4217
|
+
function Ee(h) {
|
|
4218
|
+
this._headers = h;
|
|
4190
4219
|
}
|
|
4191
|
-
|
|
4192
|
-
return this._headers.get(
|
|
4220
|
+
Ee.prototype.get = function(h) {
|
|
4221
|
+
return this._headers.get(h);
|
|
4193
4222
|
};
|
|
4194
|
-
function
|
|
4223
|
+
function xe() {
|
|
4195
4224
|
}
|
|
4196
|
-
|
|
4197
|
-
var
|
|
4198
|
-
return
|
|
4225
|
+
xe.prototype.open = function(h, v, s, c, p, m, E) {
|
|
4226
|
+
var S = null, b = new P(), A = b.signal, O = new _();
|
|
4227
|
+
return g(p, {
|
|
4199
4228
|
headers: E,
|
|
4200
|
-
credentials:
|
|
4201
|
-
signal:
|
|
4229
|
+
credentials: m ? "include" : "same-origin",
|
|
4230
|
+
signal: A,
|
|
4202
4231
|
cache: "no-store"
|
|
4203
|
-
}).then(function(
|
|
4204
|
-
return
|
|
4205
|
-
var
|
|
4206
|
-
|
|
4207
|
-
if (
|
|
4208
|
-
|
|
4232
|
+
}).then(function(T) {
|
|
4233
|
+
return S = T.body.getReader(), v(T.status, T.statusText, T.headers.get("Content-Type"), new Ee(T.headers)), new d(function(I, Q) {
|
|
4234
|
+
var Ye = function() {
|
|
4235
|
+
S.read().then(function(ne) {
|
|
4236
|
+
if (ne.done)
|
|
4237
|
+
I(void 0);
|
|
4209
4238
|
else {
|
|
4210
|
-
var
|
|
4211
|
-
|
|
4239
|
+
var J = O.decode(ne.value, { stream: !0 });
|
|
4240
|
+
s(J), Ye();
|
|
4212
4241
|
}
|
|
4213
|
-
}).catch(function(
|
|
4214
|
-
|
|
4242
|
+
}).catch(function(ne) {
|
|
4243
|
+
Q(ne);
|
|
4215
4244
|
});
|
|
4216
4245
|
};
|
|
4217
|
-
|
|
4246
|
+
Ye();
|
|
4218
4247
|
});
|
|
4219
|
-
}).catch(function(
|
|
4220
|
-
if (
|
|
4221
|
-
return
|
|
4222
|
-
}).then(function(
|
|
4223
|
-
|
|
4248
|
+
}).catch(function(T) {
|
|
4249
|
+
if (T.name !== "AbortError")
|
|
4250
|
+
return T;
|
|
4251
|
+
}).then(function(T) {
|
|
4252
|
+
c(T);
|
|
4224
4253
|
}), {
|
|
4225
4254
|
abort: function() {
|
|
4226
|
-
|
|
4255
|
+
S != null && S.cancel(), b.abort();
|
|
4227
4256
|
}
|
|
4228
4257
|
};
|
|
4229
4258
|
};
|
|
4230
|
-
function
|
|
4259
|
+
function ie() {
|
|
4231
4260
|
this._listeners = /* @__PURE__ */ Object.create(null);
|
|
4232
4261
|
}
|
|
4233
|
-
function
|
|
4262
|
+
function pe(h) {
|
|
4234
4263
|
r(function() {
|
|
4235
|
-
throw
|
|
4264
|
+
throw h;
|
|
4236
4265
|
}, 0);
|
|
4237
4266
|
}
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
var
|
|
4241
|
-
if (
|
|
4242
|
-
for (var
|
|
4243
|
-
var
|
|
4267
|
+
ie.prototype.dispatchEvent = function(h) {
|
|
4268
|
+
h.target = this;
|
|
4269
|
+
var v = this._listeners[h.type];
|
|
4270
|
+
if (v != null)
|
|
4271
|
+
for (var s = v.length, c = 0; c < s; c += 1) {
|
|
4272
|
+
var p = v[c];
|
|
4244
4273
|
try {
|
|
4245
|
-
typeof
|
|
4246
|
-
} catch (
|
|
4247
|
-
|
|
4274
|
+
typeof p.handleEvent == "function" ? p.handleEvent(h) : p.call(this, h);
|
|
4275
|
+
} catch (m) {
|
|
4276
|
+
pe(m);
|
|
4248
4277
|
}
|
|
4249
4278
|
}
|
|
4250
|
-
},
|
|
4251
|
-
|
|
4252
|
-
var
|
|
4253
|
-
|
|
4254
|
-
for (var
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
},
|
|
4258
|
-
|
|
4259
|
-
var
|
|
4260
|
-
if (
|
|
4261
|
-
for (var
|
|
4262
|
-
|
|
4263
|
-
|
|
4279
|
+
}, ie.prototype.addEventListener = function(h, v) {
|
|
4280
|
+
h = String(h);
|
|
4281
|
+
var s = this._listeners, c = s[h];
|
|
4282
|
+
c == null && (c = [], s[h] = c);
|
|
4283
|
+
for (var p = !1, m = 0; m < c.length; m += 1)
|
|
4284
|
+
c[m] === v && (p = !0);
|
|
4285
|
+
p || c.push(v);
|
|
4286
|
+
}, ie.prototype.removeEventListener = function(h, v) {
|
|
4287
|
+
h = String(h);
|
|
4288
|
+
var s = this._listeners, c = s[h];
|
|
4289
|
+
if (c != null) {
|
|
4290
|
+
for (var p = [], m = 0; m < c.length; m += 1)
|
|
4291
|
+
c[m] !== v && p.push(c[m]);
|
|
4292
|
+
p.length === 0 ? delete s[h] : s[h] = p;
|
|
4264
4293
|
}
|
|
4265
4294
|
};
|
|
4266
|
-
function
|
|
4267
|
-
this.type =
|
|
4295
|
+
function q(h) {
|
|
4296
|
+
this.type = h, this.target = void 0;
|
|
4268
4297
|
}
|
|
4269
|
-
function
|
|
4270
|
-
|
|
4298
|
+
function _e(h, v) {
|
|
4299
|
+
q.call(this, h), this.data = v.data, this.lastEventId = v.lastEventId;
|
|
4271
4300
|
}
|
|
4272
|
-
|
|
4273
|
-
function
|
|
4274
|
-
|
|
4301
|
+
_e.prototype = Object.create(q.prototype);
|
|
4302
|
+
function x(h, v) {
|
|
4303
|
+
q.call(this, h), this.status = v.status, this.statusText = v.statusText, this.headers = v.headers;
|
|
4275
4304
|
}
|
|
4276
|
-
|
|
4277
|
-
function
|
|
4278
|
-
|
|
4305
|
+
x.prototype = Object.create(q.prototype);
|
|
4306
|
+
function Te(h, v) {
|
|
4307
|
+
q.call(this, h), this.error = v.error;
|
|
4279
4308
|
}
|
|
4280
|
-
|
|
4281
|
-
var
|
|
4282
|
-
var
|
|
4283
|
-
return
|
|
4284
|
-
},
|
|
4285
|
-
return Math.min(Math.max(
|
|
4286
|
-
}, Be = function(
|
|
4309
|
+
Te.prototype = Object.create(q.prototype);
|
|
4310
|
+
var We = -1, ce = 0, Se = 1, Ae = 2, Ze = -1, ae = 0, Le = 1, at = 2, qe = 3, st = /^text\/event\-stream(;.*)?$/i, At = 1e3, ut = 18e6, Qe = function(h, v) {
|
|
4311
|
+
var s = h == null ? v : parseInt(h, 10);
|
|
4312
|
+
return s !== s && (s = v), Je(s);
|
|
4313
|
+
}, Je = function(h) {
|
|
4314
|
+
return Math.min(Math.max(h, At), ut);
|
|
4315
|
+
}, Be = function(h, v, s) {
|
|
4287
4316
|
try {
|
|
4288
|
-
typeof
|
|
4289
|
-
} catch (
|
|
4290
|
-
|
|
4317
|
+
typeof v == "function" && v.call(h, s);
|
|
4318
|
+
} catch (c) {
|
|
4319
|
+
pe(c);
|
|
4291
4320
|
}
|
|
4292
4321
|
};
|
|
4293
|
-
function
|
|
4294
|
-
|
|
4322
|
+
function te(h, v) {
|
|
4323
|
+
ie.call(this), v = v || {}, 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, Ht(this, h, v);
|
|
4295
4324
|
}
|
|
4296
|
-
function
|
|
4297
|
-
return
|
|
4325
|
+
function lt() {
|
|
4326
|
+
return i != null && "withCredentials" in i.prototype || u == null ? new i() : new u();
|
|
4298
4327
|
}
|
|
4299
|
-
var
|
|
4300
|
-
function
|
|
4301
|
-
|
|
4302
|
-
var
|
|
4328
|
+
var Ct = g != null && y != null && "body" in y.prototype;
|
|
4329
|
+
function Ht(h, v, s) {
|
|
4330
|
+
v = String(v);
|
|
4331
|
+
var c = !!s.withCredentials, p = s.lastEventIdQueryParameterName || "lastEventId", m = Je(1e3), E = Qe(s.heartbeatTimeout, 45e3), S = "", b = m, A = !1, O = 0, T = s.headers || {}, I = s.Transport, Q = Ct && I == null ? void 0 : new C(I != null ? new I() : lt()), Ye = I != null && typeof I != "string" ? new I() : Q == null ? new xe() : new W(), ne = void 0, J = 0, le = We, Re = "", ct = "", me = "", ft = "", Y = ae, Ot = 0, Ce = 0, sr = function(V, $, re, oe) {
|
|
4303
4332
|
if (le === ce)
|
|
4304
|
-
if (V === 200 &&
|
|
4305
|
-
le =
|
|
4306
|
-
var
|
|
4333
|
+
if (V === 200 && re != null && st.test(re)) {
|
|
4334
|
+
le = Se, A = Date.now(), b = m, h.readyState = Se;
|
|
4335
|
+
var K = new x("open", {
|
|
4307
4336
|
status: V,
|
|
4308
4337
|
statusText: $,
|
|
4309
|
-
headers:
|
|
4338
|
+
headers: oe
|
|
4310
4339
|
});
|
|
4311
|
-
|
|
4340
|
+
h.dispatchEvent(K), Be(h, h.onopen, K);
|
|
4312
4341
|
} else {
|
|
4313
4342
|
var X = "";
|
|
4314
|
-
V !== 200 ? ($ && ($ = $.replace(/\s+/g, " ")), X = "EventSource's response has a status " + V + " " + $ + " that is not 200. Aborting the connection.") : X = "EventSource's response has a Content-Type specifying an unsupported type: " + (
|
|
4315
|
-
var
|
|
4343
|
+
V !== 200 ? ($ && ($ = $.replace(/\s+/g, " ")), X = "EventSource's response has a status " + V + " " + $ + " that is not 200. Aborting the connection.") : X = "EventSource's response has a Content-Type specifying an unsupported type: " + (re == null ? "-" : re.replace(/\s+/g, " ")) + ". Aborting the connection.", Lt();
|
|
4344
|
+
var K = new x("error", {
|
|
4316
4345
|
status: V,
|
|
4317
4346
|
statusText: $,
|
|
4318
|
-
headers:
|
|
4347
|
+
headers: oe
|
|
4319
4348
|
});
|
|
4320
|
-
|
|
4349
|
+
h.dispatchEvent(K), Be(h, h.onerror, K), console.error(X);
|
|
4321
4350
|
}
|
|
4322
|
-
},
|
|
4323
|
-
if (le ===
|
|
4324
|
-
for (var $ = -1,
|
|
4325
|
-
var
|
|
4326
|
-
(
|
|
4351
|
+
}, ur = function(V) {
|
|
4352
|
+
if (le === Se) {
|
|
4353
|
+
for (var $ = -1, re = 0; re < V.length; re += 1) {
|
|
4354
|
+
var oe = V.charCodeAt(re);
|
|
4355
|
+
(oe === 10 || oe === 13) && ($ = re);
|
|
4327
4356
|
}
|
|
4328
|
-
var
|
|
4329
|
-
|
|
4330
|
-
for (var X = 0; X <
|
|
4331
|
-
var
|
|
4332
|
-
if (
|
|
4333
|
-
|
|
4334
|
-
else if (
|
|
4335
|
-
if (
|
|
4336
|
-
|
|
4337
|
-
var
|
|
4338
|
-
|
|
4339
|
-
`, Re +=
|
|
4340
|
-
|
|
4357
|
+
var K = ($ !== -1 ? ft : "") + V.slice(0, $ + 1);
|
|
4358
|
+
ft = ($ === -1 ? ft : "") + V.slice($ + 1), V !== "" && (A = Date.now(), O += V.length);
|
|
4359
|
+
for (var X = 0; X < K.length; X += 1) {
|
|
4360
|
+
var oe = K.charCodeAt(X);
|
|
4361
|
+
if (Y === Ze && oe === 10)
|
|
4362
|
+
Y = ae;
|
|
4363
|
+
else if (Y === Ze && (Y = ae), oe === 13 || oe === 10) {
|
|
4364
|
+
if (Y !== ae) {
|
|
4365
|
+
Y === Le && (Ce = X + 1);
|
|
4366
|
+
var ge = K.slice(Ot, Ce - 1), be = K.slice(Ce + (Ce < X && K.charCodeAt(Ce) === 32 ? 1 : 0), X);
|
|
4367
|
+
ge === "data" ? (Re += `
|
|
4368
|
+
`, Re += be) : ge === "id" ? ct = be : ge === "event" ? me = be : ge === "retry" ? (m = Qe(be, m), b = m) : ge === "heartbeatTimeout" && (E = Qe(be, E), J !== 0 && (o(J), J = r(function() {
|
|
4369
|
+
Ke();
|
|
4341
4370
|
}, E)));
|
|
4342
4371
|
}
|
|
4343
|
-
if (
|
|
4372
|
+
if (Y === ae) {
|
|
4344
4373
|
if (Re !== "") {
|
|
4345
|
-
|
|
4346
|
-
var Ne = new
|
|
4374
|
+
S = ct, me === "" && (me = "message");
|
|
4375
|
+
var Ne = new _e(me, {
|
|
4347
4376
|
data: Re.slice(1),
|
|
4348
|
-
lastEventId:
|
|
4377
|
+
lastEventId: ct
|
|
4349
4378
|
});
|
|
4350
|
-
if (
|
|
4379
|
+
if (h.dispatchEvent(Ne), me === "open" ? Be(h, h.onopen, Ne) : me === "message" ? Be(h, h.onmessage, Ne) : me === "error" && Be(h, h.onerror, Ne), le === Ae)
|
|
4351
4380
|
return;
|
|
4352
4381
|
}
|
|
4353
|
-
Re = "",
|
|
4382
|
+
Re = "", me = "";
|
|
4354
4383
|
}
|
|
4355
|
-
|
|
4384
|
+
Y = oe === 13 ? Ze : ae;
|
|
4356
4385
|
} else
|
|
4357
|
-
|
|
4386
|
+
Y === ae && (Ot = X, Y = Le), Y === Le ? oe === 58 && (Ce = X + 1, Y = at) : Y === at && (Y = qe);
|
|
4358
4387
|
}
|
|
4359
4388
|
}
|
|
4360
|
-
},
|
|
4361
|
-
if (le ===
|
|
4362
|
-
le =
|
|
4363
|
-
|
|
4364
|
-
},
|
|
4365
|
-
var $ = new
|
|
4366
|
-
|
|
4389
|
+
}, sn = function(V) {
|
|
4390
|
+
if (le === Se || le === ce) {
|
|
4391
|
+
le = We, J !== 0 && (o(J), J = 0), J = r(function() {
|
|
4392
|
+
Ke();
|
|
4393
|
+
}, b), b = Je(Math.min(m * 16, b * 2)), h.readyState = ce;
|
|
4394
|
+
var $ = new Te("error", { error: V });
|
|
4395
|
+
h.dispatchEvent($), Be(h, h.onerror, $), V != null && console.error(V);
|
|
4367
4396
|
}
|
|
4368
|
-
},
|
|
4369
|
-
le =
|
|
4370
|
-
},
|
|
4371
|
-
if (
|
|
4372
|
-
if (!
|
|
4373
|
-
|
|
4397
|
+
}, Lt = function() {
|
|
4398
|
+
le = Ae, ne != null && (ne.abort(), ne = void 0), J !== 0 && (o(J), J = 0), h.readyState = Ae;
|
|
4399
|
+
}, Ke = function() {
|
|
4400
|
+
if (J = 0, le !== We) {
|
|
4401
|
+
if (!A && ne != null)
|
|
4402
|
+
sn(new Error("No activity within " + E + " milliseconds. " + (le === ce ? "No response received." : O + " chars received.") + " Reconnecting.")), ne != null && (ne.abort(), ne = void 0);
|
|
4374
4403
|
else {
|
|
4375
|
-
var V = Math.max((
|
|
4376
|
-
|
|
4377
|
-
|
|
4404
|
+
var V = Math.max((A || Date.now()) + E - Date.now(), 1);
|
|
4405
|
+
A = !1, J = r(function() {
|
|
4406
|
+
Ke();
|
|
4378
4407
|
}, V);
|
|
4379
4408
|
}
|
|
4380
4409
|
return;
|
|
4381
4410
|
}
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
}, E), le = ce, Re = "",
|
|
4385
|
-
var $ =
|
|
4386
|
-
if (
|
|
4387
|
-
var
|
|
4388
|
-
$ =
|
|
4389
|
-
return Ne ===
|
|
4390
|
-
}), $ += (
|
|
4411
|
+
A = !1, O = 0, J = r(function() {
|
|
4412
|
+
Ke();
|
|
4413
|
+
}, E), le = ce, Re = "", me = "", ct = S, ft = "", Ot = 0, Ce = 0, Y = ae;
|
|
4414
|
+
var $ = v;
|
|
4415
|
+
if (v.slice(0, 5) !== "data:" && v.slice(0, 5) !== "blob:" && S !== "") {
|
|
4416
|
+
var re = v.indexOf("?");
|
|
4417
|
+
$ = re === -1 ? v : v.slice(0, re + 1) + v.slice(re + 1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g, function(be, Ne) {
|
|
4418
|
+
return Ne === p ? "" : be;
|
|
4419
|
+
}), $ += (v.indexOf("?") === -1 ? "?" : "&") + p + "=" + encodeURIComponent(S);
|
|
4391
4420
|
}
|
|
4392
|
-
var
|
|
4393
|
-
|
|
4394
|
-
var X =
|
|
4421
|
+
var oe = h.withCredentials, K = {};
|
|
4422
|
+
K.Accept = "text/event-stream";
|
|
4423
|
+
var X = h.headers;
|
|
4395
4424
|
if (X != null)
|
|
4396
|
-
for (var
|
|
4397
|
-
Object.prototype.hasOwnProperty.call(X,
|
|
4425
|
+
for (var ge in X)
|
|
4426
|
+
Object.prototype.hasOwnProperty.call(X, ge) && (K[ge] = X[ge]);
|
|
4398
4427
|
try {
|
|
4399
|
-
|
|
4400
|
-
} catch (
|
|
4401
|
-
throw
|
|
4428
|
+
ne = Ye.open(Q, sr, ur, sn, $, oe, K);
|
|
4429
|
+
} catch (be) {
|
|
4430
|
+
throw Lt(), be;
|
|
4402
4431
|
}
|
|
4403
4432
|
};
|
|
4404
|
-
|
|
4433
|
+
h.url = v, h.readyState = ce, h.withCredentials = c, h.headers = T, h._close = Lt, Ke();
|
|
4405
4434
|
}
|
|
4406
|
-
|
|
4435
|
+
te.prototype = Object.create(ie.prototype), te.prototype.CONNECTING = ce, te.prototype.OPEN = Se, te.prototype.CLOSED = Ae, te.prototype.close = function() {
|
|
4407
4436
|
this._close();
|
|
4408
|
-
},
|
|
4409
|
-
var
|
|
4410
|
-
|
|
4437
|
+
}, te.CONNECTING = ce, te.OPEN = Se, te.CLOSED = Ae, te.prototype.withCredentials = void 0;
|
|
4438
|
+
var ht = f;
|
|
4439
|
+
i != null && (f == null || !("withCredentials" in f.prototype)) && (ht = te), function(h) {
|
|
4411
4440
|
{
|
|
4412
|
-
var
|
|
4413
|
-
|
|
4441
|
+
var v = h(t);
|
|
4442
|
+
v !== void 0 && (e.exports = v);
|
|
4414
4443
|
}
|
|
4415
|
-
}(function(
|
|
4416
|
-
|
|
4444
|
+
}(function(h) {
|
|
4445
|
+
h.EventSourcePolyfill = te, h.NativeEventSource = f, h.EventSource = ht;
|
|
4417
4446
|
});
|
|
4418
|
-
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self :
|
|
4419
|
-
})(
|
|
4420
|
-
var
|
|
4421
|
-
function
|
|
4422
|
-
|
|
4447
|
+
})(typeof globalThis == "undefined" ? typeof window != "undefined" ? window : typeof self != "undefined" ? self : kr : globalThis);
|
|
4448
|
+
})(nn, nn.exports);
|
|
4449
|
+
var Ni = nn.exports;
|
|
4450
|
+
function Mi(e) {
|
|
4451
|
+
gr(e, "svelte-gv6dm2", '*,*::before,*::after{font-family:inherit}:host{font-family:inherit}input,textarea,button{font-family:inherit}p{padding:0;margin:0}.ShowBalance{position:relative}.ShowBalance .Loading{font-size:14px;white-space:nowrap;padding-right:10px}.ShowBalance .BalanceValue{font-size:14px;cursor:pointer;display:flex;flex-wrap:nowrap;white-space:nowrap;background:transparent;border:none;font:inherit;color:inherit}.ShowBalance .BalanceValue svg{width:16px}.ShowBalance .BalanceValue span{padding-left:8px}@media only screen and (max-width: 360px){.ShowBalance .BalanceValue{font-size:12px}.ShowBalance .BalanceValue svg{width:12px}}.BalanceModalWrapper{background-color:var(--emw--color-white, #FFFFFF);position:absolute;top:45px;left:50%;transform:translateX(-60%);padding:10px;box-shadow:0px 30px 30px var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));border-radius:5px;z-index:17;box-shadow:0px 5px 20px 0px #191919}.BalanceModalWrapper:before{content:"";background:var(--emw--color-white, #FFFFFF);clip-path:polygon(50% 0, 0% 100%, 100% 100%);position:absolute;top:-8px;left:60%;width:25px;height:10px;transform:translateX(-50%);z-index:1}.BalanceModalClose{position:absolute;top:5px;right:5px;width:20px;height:20px;z-index:1;cursor:pointer;font:inherit}.BalanceModalClose:before{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(45deg)}.BalanceModalClose:after{content:"";background:var(--emw--color-secondary, var(--emw--color-secondary, #FD2839));position:absolute;top:8px;left:0;width:20px;height:2px;transform:rotate(-45deg)}.BalanceModal{position:relative;width:280px}.BalanceModalHeader{display:flex;align-items:center;justify-content:center;padding:20px 0}.BalanceModalHeader .BalanceModalTitle{font-size:16px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalRowBoth{display:flex;flex-direction:column;gap:5px;padding:20px 0;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6)}.BalanceModalRowBoth:last-child{border-bottom:none}.BalanceModalRowBoth .BalanceModalRowLine{display:flex;width:100%;justify-content:space-between}.BalanceModalRowBoth .BalanceModalText{color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A));font-size:14px;text-transform:capitalize}.BalanceModalRowBoth .BalanceModalValue{font-size:14px;font-weight:bold;color:var(--emw--header-contrast, var(--emw--color-contrast, #07072A))}.BalanceModalFooter{display:flex;align-items:center;padding:20px 0 10px}.BalanceModalFooter .BalanceModalAction{background:var(--emw--header-color-primary, var(--emw--color-primary, #22B04E));font-size:12px;color:white;text-transform:uppercase;width:100%;border-radius:5px;border:none;padding:10px 0;cursor:pointer}.BalanceModalFooter .BalanceModalAction:hover,.BalanceModalFooter .BalanceModalActionactive{background:var(--emw--header-contrast, var(--emw--color-background, #07072A))}.ShowBalanceModalOverlay{background-color:rgba(0, 0, 0, 0.7);position:fixed;top:0;bottom:0;left:0;right:0;z-index:16}');
|
|
4423
4452
|
}
|
|
4424
|
-
function
|
|
4453
|
+
function wn(e, t, n) {
|
|
4425
4454
|
const r = e.slice();
|
|
4426
4455
|
return r[51] = t[n], r;
|
|
4427
4456
|
}
|
|
4428
|
-
function
|
|
4457
|
+
function An(e, t, n) {
|
|
4429
4458
|
const r = e.slice();
|
|
4430
4459
|
return r[54] = t[n], r;
|
|
4431
4460
|
}
|
|
4432
|
-
function
|
|
4461
|
+
function Pi(e) {
|
|
4433
4462
|
let t, n = (
|
|
4434
4463
|
/*balances*/
|
|
4435
4464
|
(e[3].Total ? (
|
|
@@ -4439,93 +4468,93 @@ function Ro(e) {
|
|
|
4439
4468
|
e[3].Total[0].amount
|
|
4440
4469
|
)
|
|
4441
4470
|
) : "0") + ""
|
|
4442
|
-
), r,
|
|
4471
|
+
), r, o, i, u, a, f, l, d = (
|
|
4443
4472
|
/*isModalDisplayed*/
|
|
4444
|
-
e[2] &&
|
|
4473
|
+
e[2] && Cn(e)
|
|
4445
4474
|
);
|
|
4446
4475
|
return {
|
|
4447
4476
|
c() {
|
|
4448
|
-
t = G("button"), r =
|
|
4477
|
+
t = G("button"), r = ye(n), o = ve(), i = G("span"), i.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 11.435"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" d="M16.191,19.235l7.562-7.568a1.423,1.423,0,0,1,2.019,0,1.441,1.441,0,0,1,0,2.025L17.2,22.265a1.427,1.427,0,0,1-1.971.042L6.6,13.7a1.429,1.429,0,0,1,2.019-2.025Z" transform="translate(-6.188 -11.246)"></path></svg>', u = ve(), d && d.c(), a = vr(), z(t, "class", "BalanceValue");
|
|
4449
4478
|
},
|
|
4450
|
-
m(
|
|
4451
|
-
de(
|
|
4479
|
+
m(g, y) {
|
|
4480
|
+
de(g, t, y), R(t, r), R(t, o), R(t, i), de(g, u, y), d && d.m(g, y), de(g, a, y), f || (l = bt(
|
|
4452
4481
|
t,
|
|
4453
4482
|
"click",
|
|
4454
4483
|
/*click_handler*/
|
|
4455
4484
|
e[25]
|
|
4456
4485
|
), f = !0);
|
|
4457
4486
|
},
|
|
4458
|
-
p(
|
|
4459
|
-
|
|
4487
|
+
p(g, y) {
|
|
4488
|
+
y[0] & /*balances*/
|
|
4460
4489
|
8 && n !== (n = /*balances*/
|
|
4461
|
-
(
|
|
4490
|
+
(g[3].Total ? (
|
|
4462
4491
|
/*formatBalance*/
|
|
4463
|
-
|
|
4492
|
+
g[5](
|
|
4464
4493
|
/*balances*/
|
|
4465
|
-
|
|
4494
|
+
g[3].Total[0].amount
|
|
4466
4495
|
)
|
|
4467
4496
|
) : "0") + "") && He(r, n), /*isModalDisplayed*/
|
|
4468
|
-
|
|
4497
|
+
g[2] ? d ? d.p(g, y) : (d = Cn(g), d.c(), d.m(a.parentNode, a)) : d && (d.d(1), d = null);
|
|
4469
4498
|
},
|
|
4470
|
-
d(
|
|
4471
|
-
|
|
4499
|
+
d(g) {
|
|
4500
|
+
g && (he(t), he(u), he(a)), d && d.d(g), f = !1, l();
|
|
4472
4501
|
}
|
|
4473
4502
|
};
|
|
4474
4503
|
}
|
|
4475
|
-
function
|
|
4504
|
+
function Ii(e) {
|
|
4476
4505
|
let t, n = (
|
|
4477
4506
|
/*$_*/
|
|
4478
4507
|
e[4]("Loading") + ""
|
|
4479
4508
|
), r;
|
|
4480
4509
|
return {
|
|
4481
4510
|
c() {
|
|
4482
|
-
t = G("p"), r =
|
|
4511
|
+
t = G("p"), r = ye(n);
|
|
4483
4512
|
},
|
|
4484
|
-
m(
|
|
4485
|
-
de(
|
|
4513
|
+
m(o, i) {
|
|
4514
|
+
de(o, t, i), R(t, r);
|
|
4486
4515
|
},
|
|
4487
|
-
p(
|
|
4488
|
-
|
|
4516
|
+
p(o, i) {
|
|
4517
|
+
i[0] & /*$_*/
|
|
4489
4518
|
16 && n !== (n = /*$_*/
|
|
4490
|
-
|
|
4519
|
+
o[4]("Loading") + "") && He(r, n);
|
|
4491
4520
|
},
|
|
4492
|
-
d(
|
|
4493
|
-
|
|
4521
|
+
d(o) {
|
|
4522
|
+
o && he(t);
|
|
4494
4523
|
}
|
|
4495
4524
|
};
|
|
4496
4525
|
}
|
|
4497
|
-
function
|
|
4498
|
-
let t, n, r,
|
|
4526
|
+
function Cn(e) {
|
|
4527
|
+
let t, n, r, o, i, u, a = (
|
|
4499
4528
|
/*$_*/
|
|
4500
4529
|
e[4]("Title") + ""
|
|
4501
|
-
), f, l, d,
|
|
4530
|
+
), f, l, d, g, y, _, B = (
|
|
4502
4531
|
/*$_*/
|
|
4503
4532
|
e[4]("DepositButton") + ""
|
|
4504
|
-
),
|
|
4533
|
+
), P, j, Z, U = yt(Object.keys(
|
|
4505
4534
|
/*balances*/
|
|
4506
4535
|
e[3]
|
|
4507
4536
|
)), w = [];
|
|
4508
|
-
for (let
|
|
4509
|
-
w[
|
|
4537
|
+
for (let C = 0; C < U.length; C += 1)
|
|
4538
|
+
w[C] = On(wn(e, U, C));
|
|
4510
4539
|
return {
|
|
4511
4540
|
c() {
|
|
4512
|
-
t = G("div"), n = G("button"), r =
|
|
4513
|
-
for (let
|
|
4514
|
-
w[
|
|
4515
|
-
|
|
4541
|
+
t = G("div"), n = G("button"), r = ve(), o = G("div"), i = G("div"), u = G("p"), f = ye(a), l = ve(), d = G("div");
|
|
4542
|
+
for (let C = 0; C < w.length; C += 1)
|
|
4543
|
+
w[C].c();
|
|
4544
|
+
g = ve(), y = G("div"), _ = G("button"), P = ye(B), z(n, "class", "BalanceModalClose"), z(u, "class", "BalanceModalTitle"), z(i, "class", "BalanceModalHeader"), z(d, "class", "BalanceModalBody"), z(_, "class", "BalanceModalAction"), z(y, "class", "BalanceModalFooter"), z(o, "class", "BalanceModal"), z(t, "class", "BalanceModalWrapper");
|
|
4516
4545
|
},
|
|
4517
|
-
m(
|
|
4518
|
-
de(
|
|
4519
|
-
for (let
|
|
4520
|
-
w[
|
|
4521
|
-
|
|
4522
|
-
|
|
4546
|
+
m(C, N) {
|
|
4547
|
+
de(C, t, N), R(t, n), R(t, r), R(t, o), R(o, i), R(i, u), R(u, f), R(o, l), R(o, d);
|
|
4548
|
+
for (let M = 0; M < w.length; M += 1)
|
|
4549
|
+
w[M] && w[M].m(d, null);
|
|
4550
|
+
R(o, g), R(o, y), R(y, _), R(_, P), j || (Z = [
|
|
4551
|
+
bt(
|
|
4523
4552
|
n,
|
|
4524
4553
|
"click",
|
|
4525
4554
|
/*click_handler_1*/
|
|
4526
4555
|
e[26]
|
|
4527
4556
|
),
|
|
4528
|
-
|
|
4557
|
+
bt(
|
|
4529
4558
|
_,
|
|
4530
4559
|
"click",
|
|
4531
4560
|
/*click_handler_2*/
|
|
@@ -4533,59 +4562,59 @@ function An(e) {
|
|
|
4533
4562
|
)
|
|
4534
4563
|
], j = !0);
|
|
4535
4564
|
},
|
|
4536
|
-
p(
|
|
4537
|
-
if (
|
|
4538
|
-
16 &&
|
|
4539
|
-
|
|
4565
|
+
p(C, N) {
|
|
4566
|
+
if (N[0] & /*$_*/
|
|
4567
|
+
16 && a !== (a = /*$_*/
|
|
4568
|
+
C[4]("Title") + "") && He(f, a), N[0] & /*balances, formatBalance, getProductType, $_*/
|
|
4540
4569
|
184) {
|
|
4541
|
-
U =
|
|
4570
|
+
U = yt(Object.keys(
|
|
4542
4571
|
/*balances*/
|
|
4543
|
-
|
|
4572
|
+
C[3]
|
|
4544
4573
|
));
|
|
4545
|
-
let
|
|
4546
|
-
for (
|
|
4547
|
-
const
|
|
4548
|
-
w[
|
|
4574
|
+
let M;
|
|
4575
|
+
for (M = 0; M < U.length; M += 1) {
|
|
4576
|
+
const W = wn(C, U, M);
|
|
4577
|
+
w[M] ? w[M].p(W, N) : (w[M] = On(W), w[M].c(), w[M].m(d, null));
|
|
4549
4578
|
}
|
|
4550
|
-
for (;
|
|
4551
|
-
w[
|
|
4579
|
+
for (; M < w.length; M += 1)
|
|
4580
|
+
w[M].d(1);
|
|
4552
4581
|
w.length = U.length;
|
|
4553
4582
|
}
|
|
4554
|
-
|
|
4583
|
+
N[0] & /*$_*/
|
|
4555
4584
|
16 && B !== (B = /*$_*/
|
|
4556
|
-
|
|
4585
|
+
C[4]("DepositButton") + "") && He(P, B);
|
|
4557
4586
|
},
|
|
4558
|
-
d(
|
|
4559
|
-
|
|
4587
|
+
d(C) {
|
|
4588
|
+
C && he(t), Pn(w, C), j = !1, ke(Z);
|
|
4560
4589
|
}
|
|
4561
4590
|
};
|
|
4562
4591
|
}
|
|
4563
|
-
function
|
|
4592
|
+
function Hn(e) {
|
|
4564
4593
|
let t, n, r = (
|
|
4565
4594
|
/*$_*/
|
|
4566
4595
|
e[4](
|
|
4567
4596
|
/*k*/
|
|
4568
4597
|
e[51]
|
|
4569
4598
|
) + ""
|
|
4570
|
-
),
|
|
4599
|
+
), o, i, u = (
|
|
4571
4600
|
/*getProductType*/
|
|
4572
4601
|
e[7](
|
|
4573
4602
|
/*balance*/
|
|
4574
4603
|
e[54]
|
|
4575
4604
|
) + ""
|
|
4576
|
-
),
|
|
4605
|
+
), a, f, l, d, g = (
|
|
4577
4606
|
/*formatBalance*/
|
|
4578
4607
|
e[5](
|
|
4579
4608
|
/*balance*/
|
|
4580
4609
|
e[54].amount
|
|
4581
4610
|
) + ""
|
|
4582
|
-
),
|
|
4611
|
+
), y;
|
|
4583
4612
|
return {
|
|
4584
4613
|
c() {
|
|
4585
|
-
t = G("div"), n = G("p"),
|
|
4614
|
+
t = G("div"), n = G("p"), o = ye(r), i = ve(), a = ye(u), f = ve(), l = G("p"), d = G("span"), y = ye(g), z(n, "class", "BalanceModalText"), z(d, "class", "BalanceModalAmount"), z(l, "class", "BalanceModalValue"), z(t, "class", "BalanceModalRowLine");
|
|
4586
4615
|
},
|
|
4587
4616
|
m(_, B) {
|
|
4588
|
-
de(_, t, B),
|
|
4617
|
+
de(_, t, B), R(t, n), R(n, o), R(n, i), R(n, a), R(t, f), R(t, l), R(l, d), R(d, y);
|
|
4589
4618
|
},
|
|
4590
4619
|
p(_, B) {
|
|
4591
4620
|
B[0] & /*$_, balances*/
|
|
@@ -4593,184 +4622,184 @@ function Cn(e) {
|
|
|
4593
4622
|
_[4](
|
|
4594
4623
|
/*k*/
|
|
4595
4624
|
_[51]
|
|
4596
|
-
) + "") && He(
|
|
4625
|
+
) + "") && He(o, r), B[0] & /*balances*/
|
|
4597
4626
|
8 && u !== (u = /*getProductType*/
|
|
4598
4627
|
_[7](
|
|
4599
4628
|
/*balance*/
|
|
4600
4629
|
_[54]
|
|
4601
|
-
) + "") && He(
|
|
4602
|
-
8 &&
|
|
4630
|
+
) + "") && He(a, u), B[0] & /*balances*/
|
|
4631
|
+
8 && g !== (g = /*formatBalance*/
|
|
4603
4632
|
_[5](
|
|
4604
4633
|
/*balance*/
|
|
4605
4634
|
_[54].amount
|
|
4606
|
-
) + "") && He(
|
|
4635
|
+
) + "") && He(y, g);
|
|
4607
4636
|
},
|
|
4608
4637
|
d(_) {
|
|
4609
4638
|
_ && he(t);
|
|
4610
4639
|
}
|
|
4611
4640
|
};
|
|
4612
4641
|
}
|
|
4613
|
-
function
|
|
4614
|
-
let t, n, r =
|
|
4642
|
+
function On(e) {
|
|
4643
|
+
let t, n, r = yt(
|
|
4615
4644
|
/*balances*/
|
|
4616
4645
|
e[3][
|
|
4617
4646
|
/*k*/
|
|
4618
4647
|
e[51]
|
|
4619
4648
|
]
|
|
4620
|
-
),
|
|
4621
|
-
for (let
|
|
4622
|
-
i
|
|
4649
|
+
), o = [];
|
|
4650
|
+
for (let i = 0; i < r.length; i += 1)
|
|
4651
|
+
o[i] = Hn(An(e, r, i));
|
|
4623
4652
|
return {
|
|
4624
4653
|
c() {
|
|
4625
4654
|
t = G("div");
|
|
4626
|
-
for (let
|
|
4627
|
-
i
|
|
4628
|
-
n =
|
|
4655
|
+
for (let i = 0; i < o.length; i += 1)
|
|
4656
|
+
o[i].c();
|
|
4657
|
+
n = ve(), z(t, "class", "BalanceModalRowBoth");
|
|
4629
4658
|
},
|
|
4630
|
-
m(
|
|
4631
|
-
de(
|
|
4632
|
-
for (let
|
|
4633
|
-
|
|
4634
|
-
|
|
4659
|
+
m(i, u) {
|
|
4660
|
+
de(i, t, u);
|
|
4661
|
+
for (let a = 0; a < o.length; a += 1)
|
|
4662
|
+
o[a] && o[a].m(t, null);
|
|
4663
|
+
R(t, n);
|
|
4635
4664
|
},
|
|
4636
|
-
p(
|
|
4665
|
+
p(i, u) {
|
|
4637
4666
|
if (u[0] & /*formatBalance, balances, getProductType, $_*/
|
|
4638
4667
|
184) {
|
|
4639
|
-
r =
|
|
4668
|
+
r = yt(
|
|
4640
4669
|
/*balances*/
|
|
4641
|
-
|
|
4670
|
+
i[3][
|
|
4642
4671
|
/*k*/
|
|
4643
|
-
|
|
4672
|
+
i[51]
|
|
4644
4673
|
]
|
|
4645
4674
|
);
|
|
4646
|
-
let
|
|
4647
|
-
for (
|
|
4648
|
-
const f =
|
|
4649
|
-
|
|
4675
|
+
let a;
|
|
4676
|
+
for (a = 0; a < r.length; a += 1) {
|
|
4677
|
+
const f = An(i, r, a);
|
|
4678
|
+
o[a] ? o[a].p(f, u) : (o[a] = Hn(f), o[a].c(), o[a].m(t, n));
|
|
4650
4679
|
}
|
|
4651
|
-
for (;
|
|
4652
|
-
|
|
4653
|
-
|
|
4680
|
+
for (; a < o.length; a += 1)
|
|
4681
|
+
o[a].d(1);
|
|
4682
|
+
o.length = r.length;
|
|
4654
4683
|
}
|
|
4655
4684
|
},
|
|
4656
|
-
d(
|
|
4657
|
-
|
|
4685
|
+
d(i) {
|
|
4686
|
+
i && he(t), Pn(o, i);
|
|
4658
4687
|
}
|
|
4659
4688
|
};
|
|
4660
4689
|
}
|
|
4661
|
-
function
|
|
4690
|
+
function Ln(e) {
|
|
4662
4691
|
let t, n, r;
|
|
4663
4692
|
return {
|
|
4664
4693
|
c() {
|
|
4665
4694
|
t = G("button"), z(t, "class", "ShowBalanceModalOverlay");
|
|
4666
4695
|
},
|
|
4667
|
-
m(
|
|
4668
|
-
de(
|
|
4696
|
+
m(o, i) {
|
|
4697
|
+
de(o, t, i), n || (r = bt(
|
|
4669
4698
|
t,
|
|
4670
4699
|
"click",
|
|
4671
4700
|
/*click_handler_3*/
|
|
4672
4701
|
e[28]
|
|
4673
4702
|
), n = !0);
|
|
4674
4703
|
},
|
|
4675
|
-
p:
|
|
4676
|
-
d(
|
|
4677
|
-
|
|
4704
|
+
p: ue,
|
|
4705
|
+
d(o) {
|
|
4706
|
+
o && he(t), n = !1, r();
|
|
4678
4707
|
}
|
|
4679
4708
|
};
|
|
4680
4709
|
}
|
|
4681
|
-
function
|
|
4710
|
+
function Di(e) {
|
|
4682
4711
|
let t, n, r;
|
|
4683
|
-
function
|
|
4712
|
+
function o(f, l) {
|
|
4684
4713
|
return (
|
|
4685
4714
|
/*isLoading*/
|
|
4686
|
-
f[1] ?
|
|
4715
|
+
f[1] ? Ii : Pi
|
|
4687
4716
|
);
|
|
4688
4717
|
}
|
|
4689
|
-
let
|
|
4718
|
+
let i = o(e), u = i(e), a = (
|
|
4690
4719
|
/*isModalDisplayed*/
|
|
4691
|
-
e[2] &&
|
|
4720
|
+
e[2] && Ln(e)
|
|
4692
4721
|
);
|
|
4693
4722
|
return {
|
|
4694
4723
|
c() {
|
|
4695
|
-
t = G("div"), n = G("div"), u.c(), r =
|
|
4724
|
+
t = G("div"), n = G("div"), u.c(), r = ve(), a && a.c(), z(n, "class", "ShowBalance");
|
|
4696
4725
|
},
|
|
4697
4726
|
m(f, l) {
|
|
4698
|
-
de(f, t, l),
|
|
4727
|
+
de(f, t, l), R(t, n), u.m(n, null), R(t, r), a && a.m(t, null), e[29](t);
|
|
4699
4728
|
},
|
|
4700
4729
|
p(f, l) {
|
|
4701
|
-
|
|
4702
|
-
f[2] ?
|
|
4730
|
+
i === (i = o(f)) && u ? u.p(f, l) : (u.d(1), u = i(f), u && (u.c(), u.m(n, null))), /*isModalDisplayed*/
|
|
4731
|
+
f[2] ? a ? a.p(f, l) : (a = Ln(f), a.c(), a.m(t, null)) : a && (a.d(1), a = null);
|
|
4703
4732
|
},
|
|
4704
|
-
i:
|
|
4705
|
-
o:
|
|
4733
|
+
i: ue,
|
|
4734
|
+
o: ue,
|
|
4706
4735
|
d(f) {
|
|
4707
|
-
f && he(t), u.d(),
|
|
4736
|
+
f && he(t), u.d(), a && a.d(), e[29](null);
|
|
4708
4737
|
}
|
|
4709
4738
|
};
|
|
4710
4739
|
}
|
|
4711
|
-
function
|
|
4740
|
+
function Fi(e, t, n) {
|
|
4712
4741
|
let r;
|
|
4713
|
-
|
|
4714
|
-
let { userid:
|
|
4715
|
-
const x = {},
|
|
4716
|
-
fetch(
|
|
4742
|
+
mr(e, Li, (s) => n(4, r = s));
|
|
4743
|
+
let { userid: o = "" } = t, { session: i = "" } = t, { endpoint: u = "" } = t, { lang: a = "en" } = t, { mbsource: f = "" } = t, { clientstyling: l = "" } = t, { clientstylingurl: d = "" } = t, { translationurl: g = "" } = t, { gmversion: y = "gm16" } = t, { displaybalanceoption: _ = "All" } = t, { totalcalculationmode: B = "totalCashAmount" } = t, { hideproducttype: P = "" } = t, { currencylocale: j = "en" } = t, { currencydisplay: Z = "symbol" } = t, { maximumfractiondigits: U = "2" } = t, { minimumfractiondigits: w = "0" } = t, { customdisplayformat: C = "" } = t, N, M, W = !0, Ee = !1, xe = !1, ie, pe = "", q = [], _e;
|
|
4744
|
+
const x = {}, Te = ["totalCashAmount", "totalRealAmount"], We = () => {
|
|
4745
|
+
fetch(g).then((s) => s.json()).then((s) => Object.keys(s).forEach((c) => Sn(c, s[c]))).catch((s) => console.log(s));
|
|
4717
4746
|
};
|
|
4718
|
-
Object.keys(Bn).forEach((
|
|
4719
|
-
const
|
|
4720
|
-
if (
|
|
4721
|
-
return
|
|
4722
|
-
const
|
|
4747
|
+
Object.keys(Bn).forEach((s) => Sn(s, Bn[s]));
|
|
4748
|
+
const ce = (s) => {
|
|
4749
|
+
if (C)
|
|
4750
|
+
return Se(s);
|
|
4751
|
+
const c = j || a, p = {
|
|
4723
4752
|
style: "currency",
|
|
4724
|
-
currency:
|
|
4753
|
+
currency: pe,
|
|
4725
4754
|
useGrouping: !0,
|
|
4726
|
-
currencyDisplay:
|
|
4755
|
+
currencyDisplay: Z || "code",
|
|
4727
4756
|
maximumFractionDigits: U === "" || isNaN(Number(U)) ? 2 : Number(U),
|
|
4728
4757
|
minimumFractionDigits: w === "" || isNaN(Number(w)) ? 0 : Number(w)
|
|
4729
4758
|
};
|
|
4730
|
-
return new Intl.NumberFormat(
|
|
4731
|
-
},
|
|
4732
|
-
const
|
|
4733
|
-
let
|
|
4734
|
-
for (const
|
|
4735
|
-
switch (
|
|
4759
|
+
return new Intl.NumberFormat(c, p).format(s);
|
|
4760
|
+
}, Se = (s) => {
|
|
4761
|
+
const c = [];
|
|
4762
|
+
let p = "";
|
|
4763
|
+
for (const m of C)
|
|
4764
|
+
switch (m) {
|
|
4736
4765
|
default:
|
|
4737
|
-
|
|
4766
|
+
p += m;
|
|
4738
4767
|
break;
|
|
4739
4768
|
case "{":
|
|
4740
|
-
|
|
4769
|
+
p && c.push(p), p = "";
|
|
4741
4770
|
break;
|
|
4742
4771
|
case "}":
|
|
4743
|
-
const [
|
|
4744
|
-
if (
|
|
4745
|
-
|
|
4746
|
-
else if (
|
|
4747
|
-
let
|
|
4748
|
-
|
|
4749
|
-
let [
|
|
4750
|
-
|
|
4751
|
-
for (let
|
|
4752
|
-
(
|
|
4753
|
-
|
|
4772
|
+
const [E, S] = p.split("|");
|
|
4773
|
+
if (p = "", E.toLowerCase() === "currency")
|
|
4774
|
+
p = pe;
|
|
4775
|
+
else if (E.toLowerCase() === "amount") {
|
|
4776
|
+
let b = ",", A = ".", O = 2;
|
|
4777
|
+
S && (S[0] !== " " && (b = S[0]), S[1] !== " " && (A = S[1]), S[2] !== " " && !isNaN(Number(S[2])) && (O = Number(S[2])));
|
|
4778
|
+
let [T, I] = String(Math.floor(s * Nt(10, O)) / Nt(10, O)).split(".");
|
|
4779
|
+
p += T[0];
|
|
4780
|
+
for (let Q = 1; Q < T.length; ++Q)
|
|
4781
|
+
(T.length - Q) % 3 === 0 ? p += b + T[Q] : p += T[Q];
|
|
4782
|
+
I && (p += A + I);
|
|
4754
4783
|
}
|
|
4755
|
-
|
|
4784
|
+
p && c.push(p), p = "";
|
|
4756
4785
|
break;
|
|
4757
4786
|
}
|
|
4758
|
-
return
|
|
4759
|
-
},
|
|
4760
|
-
var
|
|
4761
|
-
n(1,
|
|
4762
|
-
const
|
|
4787
|
+
return c.push(p), c.join("");
|
|
4788
|
+
}, Ae = () => It(this, null, function* () {
|
|
4789
|
+
var c, p, m;
|
|
4790
|
+
n(1, W = !0);
|
|
4791
|
+
const s = new URL(`${u}/v1/player/${o}/account`);
|
|
4763
4792
|
try {
|
|
4764
|
-
const
|
|
4793
|
+
const E = yield fetch(s, {
|
|
4765
4794
|
method: "GET",
|
|
4766
|
-
headers: { "X-SessionID":
|
|
4767
|
-
}),
|
|
4768
|
-
if (
|
|
4769
|
-
|
|
4795
|
+
headers: { "X-SessionID": i }
|
|
4796
|
+
}), S = yield E.json();
|
|
4797
|
+
if (E.ok)
|
|
4798
|
+
q = S.items, pe = (c = q.find((b) => b.displayName === "Casino")) == null ? void 0 : c.currency, n(3, x.Total = [{ amount: S.totalAmount[pe] }], x), n(
|
|
4770
4799
|
3,
|
|
4771
4800
|
x.Real = [
|
|
4772
4801
|
{
|
|
4773
|
-
amount: (
|
|
4802
|
+
amount: (p = q.find((b) => b.displayName === "Casino")) == null ? void 0 : p.balanceAmount
|
|
4774
4803
|
}
|
|
4775
4804
|
],
|
|
4776
4805
|
x
|
|
@@ -4778,46 +4807,46 @@ function Po(e, t, n) {
|
|
|
4778
4807
|
3,
|
|
4779
4808
|
x.Bonus = [
|
|
4780
4809
|
{
|
|
4781
|
-
amount: (
|
|
4810
|
+
amount: (m = q.find((b) => b.displayName === "UBS")) == null ? void 0 : m.balanceAmount
|
|
4782
4811
|
}
|
|
4783
4812
|
],
|
|
4784
4813
|
x
|
|
4785
4814
|
);
|
|
4786
4815
|
else
|
|
4787
4816
|
throw new Error("Failed to fetch balance data !");
|
|
4788
|
-
} catch (
|
|
4789
|
-
console.log("Balance error: ",
|
|
4817
|
+
} catch (E) {
|
|
4818
|
+
console.log("Balance error: ", E);
|
|
4790
4819
|
} finally {
|
|
4791
|
-
n(1,
|
|
4820
|
+
n(1, W = !1);
|
|
4792
4821
|
}
|
|
4793
|
-
}),
|
|
4794
|
-
n(1,
|
|
4795
|
-
const
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
const
|
|
4799
|
-
if (
|
|
4800
|
-
|
|
4822
|
+
}), Ze = () => {
|
|
4823
|
+
n(1, W = !0);
|
|
4824
|
+
const s = new URL(`${u}/v2/player/${o}/balance`), c = new Headers();
|
|
4825
|
+
c.append("X-SessionID", i), fetch(s, { method: "GET", headers: c }).then((m) => m.json()).then((m) => {
|
|
4826
|
+
m[B] || n(8, B = Te[0]);
|
|
4827
|
+
const E = m.items.find((b) => b.type === "Real" && b.walletAccountType === "Ordinary");
|
|
4828
|
+
if (pe = E.currency, xe = !!E.productType, n(3, x.Total = [{ amount: 0 }], x), n(3, x.Real = [], x), n(3, x.Bonus = [], x), n(3, x.Credit = [], x), !xe) {
|
|
4829
|
+
_e = {
|
|
4801
4830
|
lastOrdinaryAfterAmount: 0,
|
|
4802
4831
|
showCreditLineAfterAmount: !1
|
|
4803
|
-
}, n(3, x.Total[0].amount =
|
|
4804
|
-
for (const
|
|
4805
|
-
switch (
|
|
4832
|
+
}, n(3, x.Total[0].amount = m[B][pe], x);
|
|
4833
|
+
for (const b of m.items)
|
|
4834
|
+
switch (b.type) {
|
|
4806
4835
|
case "Bonus":
|
|
4807
|
-
x.Bonus.length === 0 ? x.Bonus.push({ amount:
|
|
4836
|
+
x.Bonus.length === 0 ? x.Bonus.push({ amount: b.amount }) : n(3, x.Bonus[0].amount += b.amount, x);
|
|
4808
4837
|
break;
|
|
4809
4838
|
case "Real":
|
|
4810
|
-
if (
|
|
4839
|
+
if (b.creditLine && x.Credit.length === 0 && x.Credit.push({ amount: b.creditLine }), B === "totalRealAmount")
|
|
4811
4840
|
continue;
|
|
4812
|
-
x.Real.length === 0 ? x.Real.push({ amount:
|
|
4841
|
+
x.Real.length === 0 ? x.Real.push({ amount: b.amount }) : n(3, x.Real[0].amount += b.amount, x);
|
|
4813
4842
|
break;
|
|
4814
4843
|
}
|
|
4815
|
-
for (const [
|
|
4816
|
-
|
|
4817
|
-
n(1,
|
|
4844
|
+
for (const [b, A] of Object.entries(x))
|
|
4845
|
+
A.length < 1 && delete x[b];
|
|
4846
|
+
n(1, W = !1);
|
|
4818
4847
|
return;
|
|
4819
4848
|
}
|
|
4820
|
-
|
|
4849
|
+
_e = {
|
|
4821
4850
|
Casino: {
|
|
4822
4851
|
lastOrdinaryAfterAmount: 0,
|
|
4823
4852
|
showCreditLineAfterAmount: !1
|
|
@@ -4827,201 +4856,201 @@ function Po(e, t, n) {
|
|
|
4827
4856
|
showCreditLineAfterAmount: !1
|
|
4828
4857
|
}
|
|
4829
4858
|
};
|
|
4830
|
-
let
|
|
4831
|
-
_ && _ !== "All" && (
|
|
4832
|
-
for (const
|
|
4833
|
-
let
|
|
4834
|
-
switch (
|
|
4859
|
+
let S = m.items;
|
|
4860
|
+
_ && _ !== "All" && (S = m.items.filter((b) => b.productType === _));
|
|
4861
|
+
for (const b of S) {
|
|
4862
|
+
let A;
|
|
4863
|
+
switch (b.type) {
|
|
4835
4864
|
case "Bonus":
|
|
4836
|
-
|
|
4837
|
-
amount:
|
|
4838
|
-
productType:
|
|
4865
|
+
A = x.Bonus.findIndex((O) => O.productType === b.productType), A > 0 ? n(3, x.Bonus[A].amount += b.amount, x) : x.Bonus.push({
|
|
4866
|
+
amount: b.amount,
|
|
4867
|
+
productType: b.productType
|
|
4839
4868
|
});
|
|
4840
4869
|
break;
|
|
4841
4870
|
case "Real":
|
|
4842
|
-
|
|
4843
|
-
amount:
|
|
4844
|
-
productType:
|
|
4845
|
-
}),
|
|
4846
|
-
amount:
|
|
4847
|
-
productType:
|
|
4871
|
+
b.creditLine && x.Credit.push({
|
|
4872
|
+
amount: b.creditLine,
|
|
4873
|
+
productType: b.productType
|
|
4874
|
+
}), A = x.Real.findIndex((O) => O.productType === b.productType), A > 0 ? n(3, x.Real[A].amount += b.amount, x) : x.Real.push({
|
|
4875
|
+
amount: b.amount,
|
|
4876
|
+
productType: b.productType
|
|
4848
4877
|
});
|
|
4849
4878
|
break;
|
|
4850
4879
|
}
|
|
4851
4880
|
}
|
|
4852
|
-
|
|
4853
|
-
for (const [
|
|
4854
|
-
|
|
4855
|
-
window.postMessage({ type: "playerBalanceInfo", balance:
|
|
4881
|
+
st();
|
|
4882
|
+
for (const [b, A] of Object.entries(x))
|
|
4883
|
+
A.length < 1 && delete x[b];
|
|
4884
|
+
window.postMessage({ type: "playerBalanceInfo", balance: m }, window.location.href), n(1, W = !1);
|
|
4856
4885
|
}).catch(() => {
|
|
4857
|
-
throw n(1,
|
|
4886
|
+
throw n(1, W = !1), new Error("Failed to fetch balance data !");
|
|
4858
4887
|
});
|
|
4859
|
-
},
|
|
4860
|
-
if (
|
|
4888
|
+
}, ae = () => {
|
|
4889
|
+
if (ie && ie.close(), i.length < 1)
|
|
4861
4890
|
return;
|
|
4862
|
-
let
|
|
4863
|
-
switch (
|
|
4891
|
+
let s, c;
|
|
4892
|
+
switch (y) {
|
|
4864
4893
|
case "gm16":
|
|
4865
|
-
|
|
4894
|
+
s = new URL(`${u}/v2/player/${o}/information/updates`), c = (E) => At(E);
|
|
4866
4895
|
break;
|
|
4867
4896
|
case "gmcore":
|
|
4868
|
-
|
|
4897
|
+
s = new URL(`${u}/v1/player/${o}/balance/updates`), c = (E) => at(E);
|
|
4869
4898
|
break;
|
|
4870
4899
|
}
|
|
4871
|
-
const
|
|
4900
|
+
const p = {
|
|
4872
4901
|
accept: "text/event-stream",
|
|
4873
|
-
"X-SessionId":
|
|
4874
|
-
},
|
|
4875
|
-
|
|
4876
|
-
},
|
|
4877
|
-
let
|
|
4902
|
+
"X-SessionId": i
|
|
4903
|
+
}, m = new Ni.EventSourcePolyfill(s, { headers: p });
|
|
4904
|
+
ie = m, m.addEventListener("message", c);
|
|
4905
|
+
}, Le = (s) => {
|
|
4906
|
+
let c;
|
|
4878
4907
|
try {
|
|
4879
|
-
|
|
4880
|
-
} catch (
|
|
4881
|
-
console.log("Balance stream failed: ",
|
|
4908
|
+
c = JSON.parse(s);
|
|
4909
|
+
} catch (p) {
|
|
4910
|
+
console.log("Balance stream failed: ", p);
|
|
4882
4911
|
return;
|
|
4883
4912
|
}
|
|
4884
|
-
return
|
|
4885
|
-
},
|
|
4886
|
-
var
|
|
4887
|
-
const
|
|
4888
|
-
if (!
|
|
4889
|
-
|
|
4913
|
+
return c;
|
|
4914
|
+
}, at = (s) => {
|
|
4915
|
+
var E, S;
|
|
4916
|
+
const c = Le(s.data);
|
|
4917
|
+
if (!c) {
|
|
4918
|
+
ae();
|
|
4890
4919
|
return;
|
|
4891
4920
|
}
|
|
4892
|
-
let
|
|
4893
|
-
const
|
|
4894
|
-
|
|
4895
|
-
balanceAmount:
|
|
4896
|
-
})),
|
|
4897
|
-
},
|
|
4898
|
-
let
|
|
4899
|
-
switch (
|
|
4921
|
+
let p = "0";
|
|
4922
|
+
const m = c.balanceChange;
|
|
4923
|
+
q = q.map((b) => (m && m[b.id] && (b = Pt(Mt({}, b), {
|
|
4924
|
+
balanceAmount: m[b.id].afterAmount
|
|
4925
|
+
})), p = (parseFloat(b == null ? void 0 : b.balanceAmount) + parseFloat(p)).toString(), b)), n(3, x.Real = [{ amount: (E = q[0]) == null ? void 0 : E.balanceAmount }], x), n(3, x.Bonus = [{ amount: (S = q[1]) == null ? void 0 : S.balanceAmount }], x), n(3, x.Total = [{ amount: Number(p) }], x);
|
|
4926
|
+
}, qe = (s, c, p) => {
|
|
4927
|
+
let m = null;
|
|
4928
|
+
switch (p.walletAccountType) {
|
|
4900
4929
|
case "Ordinary":
|
|
4901
|
-
(
|
|
4930
|
+
(p.afterAmount !== p.affectedAmount || c.lastOrdinaryAfterAmount === 0) && (c.lastOrdinaryAfterAmount = p.afterAmount, c.showCreditLineAfterAmount || (m = p.afterAmount));
|
|
4902
4931
|
break;
|
|
4903
4932
|
case "CreditLine":
|
|
4904
|
-
|
|
4933
|
+
p.afterAmount !== 0 ? (m = p.afterAmount, c.showCreditLineAfterAmount = !0) : (m = c.lastOrdinaryAfterAmount, c.showCreditLineAfterAmount = !1);
|
|
4905
4934
|
break;
|
|
4906
4935
|
default:
|
|
4907
|
-
|
|
4936
|
+
m = p.afterAmount;
|
|
4908
4937
|
}
|
|
4909
|
-
return
|
|
4910
|
-
},
|
|
4938
|
+
return m === null ? s : m;
|
|
4939
|
+
}, st = () => {
|
|
4911
4940
|
switch (B) {
|
|
4912
4941
|
case "totalCashAmount":
|
|
4913
|
-
let
|
|
4914
|
-
for (const
|
|
4915
|
-
for (const
|
|
4916
|
-
|
|
4917
|
-
n(3, x.Total[0].amount =
|
|
4942
|
+
let s = 0;
|
|
4943
|
+
for (const p of ["Real", "Bonus"])
|
|
4944
|
+
for (const m of x[p])
|
|
4945
|
+
s += Math.max(m.amount, 0);
|
|
4946
|
+
n(3, x.Total[0].amount = s, x);
|
|
4918
4947
|
break;
|
|
4919
4948
|
case "totalRealAmount":
|
|
4920
|
-
if (!
|
|
4949
|
+
if (!xe)
|
|
4921
4950
|
return;
|
|
4922
|
-
let
|
|
4923
|
-
for (const
|
|
4924
|
-
|
|
4925
|
-
n(3, x.Total[0].amount =
|
|
4951
|
+
let c = 0;
|
|
4952
|
+
for (const p of x.Real)
|
|
4953
|
+
c += p.amount;
|
|
4954
|
+
n(3, x.Total[0].amount = c, x);
|
|
4926
4955
|
}
|
|
4927
|
-
},
|
|
4928
|
-
const
|
|
4929
|
-
if (!
|
|
4930
|
-
|
|
4956
|
+
}, At = (s) => {
|
|
4957
|
+
const c = Le(s.data);
|
|
4958
|
+
if (!c) {
|
|
4959
|
+
ae();
|
|
4931
4960
|
return;
|
|
4932
4961
|
}
|
|
4933
|
-
if (
|
|
4962
|
+
if (Qe(c == null ? void 0 : c.type) || c.type !== "BALANCE_UPDATE_V2")
|
|
4934
4963
|
return;
|
|
4935
|
-
const
|
|
4936
|
-
for (const [
|
|
4937
|
-
if (B === "totalRealAmount" &&
|
|
4938
|
-
for (const
|
|
4939
|
-
if (!
|
|
4940
|
-
|
|
4964
|
+
const p = c.body.balanceChange;
|
|
4965
|
+
for (const [m, E] of Object.entries(p))
|
|
4966
|
+
if (B === "totalRealAmount" && m === "Real" && !xe && n(3, x.Total[0].amount = qe(x.Total[0].amount, _e, E), x), !!x[m])
|
|
4967
|
+
for (const S of x[m]) {
|
|
4968
|
+
if (!xe) {
|
|
4969
|
+
S.amount = m === "Real" ? qe(S.amount, _e, E) : E.afterAmount;
|
|
4941
4970
|
continue;
|
|
4942
4971
|
}
|
|
4943
|
-
|
|
4972
|
+
E.productType === S.productType && (S.amount = m === "Real" ? qe(S.amount, _e[S.productType], E) : E.afterAmount);
|
|
4944
4973
|
}
|
|
4945
|
-
|
|
4946
|
-
},
|
|
4947
|
-
n(2,
|
|
4948
|
-
},
|
|
4949
|
-
|
|
4950
|
-
},
|
|
4951
|
-
const
|
|
4952
|
-
return !
|
|
4953
|
-
},
|
|
4954
|
-
switch (
|
|
4974
|
+
st();
|
|
4975
|
+
}, ut = () => {
|
|
4976
|
+
n(2, Ee = !1), window.postMessage({ type: "GoToDeposit" }, window.location.href), typeof gtag == "function" && gtag("event", "GoToDeposit", { context: "PlayerAccountBalanceModal" });
|
|
4977
|
+
}, Qe = (s) => s === "SESSION_EXPIRATION" ? (window.postMessage({ type: "SessionExpiration" }, window.location.href), !0) : !1, Je = () => {
|
|
4978
|
+
Te.includes(B) || (console.error(`Unsupported value ('${B}') for totalcalculationmode parameter. Only the following values are supported ${Te}. Using default value ('${Te[0]}').`), n(8, B = Te[0]));
|
|
4979
|
+
}, Be = (s) => {
|
|
4980
|
+
const c = P.split(",").map((p) => p.trim());
|
|
4981
|
+
return !s.productType || c.includes(s.productType) ? "" : r(s.productType);
|
|
4982
|
+
}, te = () => {
|
|
4983
|
+
switch (Ri(a), Je(), y) {
|
|
4955
4984
|
case "gmcore":
|
|
4956
|
-
|
|
4985
|
+
Ae();
|
|
4957
4986
|
break;
|
|
4958
4987
|
case "gm16":
|
|
4959
|
-
|
|
4988
|
+
Ze();
|
|
4960
4989
|
break;
|
|
4961
4990
|
default:
|
|
4962
|
-
throw Error(`Invalid apiversion attribute: ${
|
|
4991
|
+
throw Error(`Invalid apiversion attribute: ${y}`);
|
|
4963
4992
|
}
|
|
4964
|
-
},
|
|
4965
|
-
|
|
4966
|
-
window.removeEventListener("message",
|
|
4993
|
+
}, lt = (s) => s.data && s.data.type === "LogoutSuccessfull" && ie.close();
|
|
4994
|
+
Tr(() => (window.addEventListener("message", lt, !1), () => {
|
|
4995
|
+
window.removeEventListener("message", lt), ie && ie.close();
|
|
4967
4996
|
}));
|
|
4968
|
-
const
|
|
4969
|
-
function
|
|
4970
|
-
|
|
4971
|
-
|
|
4997
|
+
const Ct = () => n(2, Ee = !0), Ht = () => n(2, Ee = !1), ht = () => ut(), h = () => n(2, Ee = !1);
|
|
4998
|
+
function v(s) {
|
|
4999
|
+
Vt[s ? "unshift" : "push"](() => {
|
|
5000
|
+
N = s, n(0, N);
|
|
4972
5001
|
});
|
|
4973
5002
|
}
|
|
4974
|
-
return e.$$set = (
|
|
4975
|
-
"userid" in
|
|
5003
|
+
return e.$$set = (s) => {
|
|
5004
|
+
"userid" in s && n(9, o = s.userid), "session" in s && n(10, i = s.session), "endpoint" in s && n(11, u = s.endpoint), "lang" in s && n(12, a = s.lang), "mbsource" in s && n(13, f = s.mbsource), "clientstyling" in s && n(14, l = s.clientstyling), "clientstylingurl" in s && n(15, d = s.clientstylingurl), "translationurl" in s && n(16, g = s.translationurl), "gmversion" in s && n(17, y = s.gmversion), "displaybalanceoption" in s && n(18, _ = s.displaybalanceoption), "totalcalculationmode" in s && n(8, B = s.totalcalculationmode), "hideproducttype" in s && n(19, P = s.hideproducttype), "currencylocale" in s && n(20, j = s.currencylocale), "currencydisplay" in s && n(21, Z = s.currencydisplay), "maximumfractiondigits" in s && n(22, U = s.maximumfractiondigits), "minimumfractiondigits" in s && n(23, w = s.minimumfractiondigits), "customdisplayformat" in s && n(24, C = s.customdisplayformat);
|
|
4976
5005
|
}, e.$$.update = () => {
|
|
4977
5006
|
e.$$.dirty[0] & /*endpoint, userid, session, lang, gmversion, displaybalanceoption*/
|
|
4978
|
-
400896 && u &&
|
|
4979
|
-
134656 && u &&
|
|
4980
|
-
16385 && l &&
|
|
4981
|
-
32769 && d &&
|
|
4982
|
-
8193 &&
|
|
4983
|
-
65536 &&
|
|
5007
|
+
400896 && u && o && i && a && y && _ && te(), e.$$.dirty[0] & /*endpoint, userid, session, gmversion*/
|
|
5008
|
+
134656 && u && o && i && y && ae(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5009
|
+
16385 && l && N && Dr(N, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5010
|
+
32769 && d && N && Fr(N, d), e.$$.dirty[0] & /*customStylingContainer, mbsource*/
|
|
5011
|
+
8193 && N && Ur(N, `${f}.Style`, M), e.$$.dirty[0] & /*translationurl*/
|
|
5012
|
+
65536 && g && We();
|
|
4984
5013
|
}, [
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
5014
|
+
N,
|
|
5015
|
+
W,
|
|
5016
|
+
Ee,
|
|
4988
5017
|
x,
|
|
4989
5018
|
r,
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
5019
|
+
ce,
|
|
5020
|
+
ut,
|
|
5021
|
+
Be,
|
|
4993
5022
|
B,
|
|
4994
|
-
i,
|
|
4995
5023
|
o,
|
|
5024
|
+
i,
|
|
4996
5025
|
u,
|
|
4997
|
-
|
|
5026
|
+
a,
|
|
4998
5027
|
f,
|
|
4999
5028
|
l,
|
|
5000
5029
|
d,
|
|
5001
|
-
|
|
5002
|
-
|
|
5030
|
+
g,
|
|
5031
|
+
y,
|
|
5003
5032
|
_,
|
|
5004
|
-
|
|
5033
|
+
P,
|
|
5005
5034
|
j,
|
|
5006
|
-
|
|
5035
|
+
Z,
|
|
5007
5036
|
U,
|
|
5008
5037
|
w,
|
|
5009
|
-
|
|
5010
|
-
wt,
|
|
5011
|
-
At,
|
|
5038
|
+
C,
|
|
5012
5039
|
Ct,
|
|
5013
|
-
|
|
5014
|
-
|
|
5040
|
+
Ht,
|
|
5041
|
+
ht,
|
|
5042
|
+
h,
|
|
5043
|
+
v
|
|
5015
5044
|
];
|
|
5016
5045
|
}
|
|
5017
|
-
class
|
|
5046
|
+
class Ui extends Pr {
|
|
5018
5047
|
constructor(t) {
|
|
5019
|
-
super(),
|
|
5048
|
+
super(), Nr(
|
|
5020
5049
|
this,
|
|
5021
5050
|
t,
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5051
|
+
Fi,
|
|
5052
|
+
Di,
|
|
5053
|
+
Nn,
|
|
5025
5054
|
{
|
|
5026
5055
|
userid: 9,
|
|
5027
5056
|
session: 10,
|
|
@@ -5041,7 +5070,7 @@ class Io extends Mr {
|
|
|
5041
5070
|
minimumfractiondigits: 23,
|
|
5042
5071
|
customdisplayformat: 24
|
|
5043
5072
|
},
|
|
5044
|
-
|
|
5073
|
+
Mi,
|
|
5045
5074
|
[-1, -1]
|
|
5046
5075
|
);
|
|
5047
5076
|
}
|
|
@@ -5148,7 +5177,7 @@ class Io extends Mr {
|
|
|
5148
5177
|
this.$$set({ customdisplayformat: t }), k();
|
|
5149
5178
|
}
|
|
5150
5179
|
}
|
|
5151
|
-
|
|
5180
|
+
Mr(Ui, { userid: {}, session: {}, endpoint: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, gmversion: {}, displaybalanceoption: {}, totalcalculationmode: {}, hideproducttype: {}, currencylocale: {}, currencydisplay: {}, maximumfractiondigits: {}, minimumfractiondigits: {}, customdisplayformat: {} }, [], [], !0);
|
|
5152
5181
|
export {
|
|
5153
|
-
|
|
5182
|
+
Ui as default
|
|
5154
5183
|
};
|