@everymatrix/player-account-vault 0.1.0 → 0.1.2
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/PlayerAccountVault-BYxvJWG7.cjs +16 -0
- package/components/{PlayerAccountVault-B346YGlN.js → PlayerAccountVault-BfiulnCp.js} +1091 -1053
- package/components/{PlayerAccountVault-BTfuBmOV.js → PlayerAccountVault-STYNKftI.js} +1425 -1387
- package/es2015/player-account-vault.cjs +1 -1
- package/es2015/player-account-vault.js +1 -1
- package/package.json +1 -1
- package/components/PlayerAccountVault-CwhAUth0.cjs +0 -3
|
@@ -1,47 +1,48 @@
|
|
|
1
|
-
function
|
|
1
|
+
function re() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function xn(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function zt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function _e(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(xn);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ft(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function En(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function qn(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function _n(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
|
-
for (const
|
|
24
|
-
|
|
25
|
-
return
|
|
23
|
+
for (const r of t)
|
|
24
|
+
r(void 0);
|
|
25
|
+
return re;
|
|
26
26
|
}
|
|
27
|
-
const
|
|
28
|
-
return
|
|
27
|
+
const n = e.subscribe(...t);
|
|
28
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Jn(e, t, n) {
|
|
31
|
+
e.$$.on_destroy.push(_n(t, n));
|
|
32
32
|
}
|
|
33
33
|
function m(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const
|
|
38
|
-
if (!
|
|
36
|
+
function Qn(e, t, n) {
|
|
37
|
+
const r = Yn(e);
|
|
38
|
+
if (!r.getElementById(t)) {
|
|
39
39
|
const i = E("style");
|
|
40
|
-
i.id = t, i.textContent =
|
|
40
|
+
i.id = t, i.textContent = n, Kn(r, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
if (!e)
|
|
43
|
+
function Yn(e) {
|
|
44
|
+
if (!e)
|
|
45
|
+
return document;
|
|
45
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
46
47
|
return t && /** @type {ShadowRoot} */
|
|
47
48
|
t.host ? (
|
|
@@ -49,169 +50,170 @@ function qr(e) {
|
|
|
49
50
|
t
|
|
50
51
|
) : e.ownerDocument;
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function Kn(e, t) {
|
|
53
54
|
return m(
|
|
54
55
|
/** @type {Document} */
|
|
55
56
|
e.head || e,
|
|
56
57
|
t
|
|
57
58
|
), t.sheet;
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
-
e.insertBefore(t,
|
|
60
|
+
function J(e, t, n) {
|
|
61
|
+
e.insertBefore(t, n || null);
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
+
function W(e) {
|
|
63
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
-
for (let
|
|
67
|
-
e[
|
|
66
|
+
function Et(e, t) {
|
|
67
|
+
for (let n = 0; n < e.length; n += 1)
|
|
68
|
+
e[n] && e[n].d(t);
|
|
68
69
|
}
|
|
69
70
|
function E(e) {
|
|
70
71
|
return document.createElement(e);
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
+
function Xt(e) {
|
|
73
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
+
function k(e) {
|
|
76
77
|
return document.createTextNode(e);
|
|
77
78
|
}
|
|
78
|
-
function
|
|
79
|
-
return
|
|
79
|
+
function M() {
|
|
80
|
+
return k(" ");
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
82
|
+
function wn() {
|
|
83
|
+
return k("");
|
|
83
84
|
}
|
|
84
|
-
function
|
|
85
|
-
return e.addEventListener(t,
|
|
85
|
+
function Y(e, t, n, r) {
|
|
86
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
-
|
|
88
|
+
function H(e, t, n) {
|
|
89
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
89
90
|
}
|
|
90
|
-
function
|
|
91
|
+
function ft(e) {
|
|
91
92
|
return e === "" ? null : +e;
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
+
function er(e) {
|
|
94
95
|
return Array.from(e.childNodes);
|
|
95
96
|
}
|
|
96
|
-
function
|
|
97
|
+
function X(e, t) {
|
|
97
98
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
98
99
|
t);
|
|
99
100
|
}
|
|
100
101
|
function ve(e, t) {
|
|
101
102
|
e.value = t ?? "";
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
-
|
|
104
|
+
function Wt(e, t, n, r) {
|
|
105
|
+
n == null ? e.style.removeProperty(t) : e.style.setProperty(t, n, "");
|
|
105
106
|
}
|
|
106
|
-
function
|
|
107
|
-
for (let
|
|
108
|
-
const i = e.options[
|
|
107
|
+
function st(e, t, n) {
|
|
108
|
+
for (let r = 0; r < e.options.length; r += 1) {
|
|
109
|
+
const i = e.options[r];
|
|
109
110
|
if (i.__value === t) {
|
|
110
111
|
i.selected = !0;
|
|
111
112
|
return;
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
|
-
(!
|
|
115
|
+
(!n || t !== void 0) && (e.selectedIndex = -1);
|
|
115
116
|
}
|
|
116
|
-
function
|
|
117
|
+
function Zt(e) {
|
|
117
118
|
const t = e.querySelector(":checked");
|
|
118
119
|
return t && t.__value;
|
|
119
120
|
}
|
|
120
|
-
function
|
|
121
|
-
e.classList.toggle(t, !!
|
|
121
|
+
function G(e, t, n) {
|
|
122
|
+
e.classList.toggle(t, !!n);
|
|
122
123
|
}
|
|
123
|
-
function
|
|
124
|
+
function tr(e) {
|
|
124
125
|
const t = {};
|
|
125
126
|
return e.childNodes.forEach(
|
|
126
127
|
/** @param {Element} node */
|
|
127
|
-
(
|
|
128
|
-
t[
|
|
128
|
+
(n) => {
|
|
129
|
+
t[n.slot || "default"] = !0;
|
|
129
130
|
}
|
|
130
131
|
), t;
|
|
131
132
|
}
|
|
132
|
-
let
|
|
133
|
+
let Gt;
|
|
133
134
|
function Ye(e) {
|
|
134
|
-
|
|
135
|
+
Gt = e;
|
|
135
136
|
}
|
|
136
|
-
const
|
|
137
|
-
let
|
|
138
|
-
const
|
|
139
|
-
let
|
|
140
|
-
function
|
|
141
|
-
|
|
137
|
+
const De = [], pt = [];
|
|
138
|
+
let Ue = [];
|
|
139
|
+
const qt = [], nr = /* @__PURE__ */ Promise.resolve();
|
|
140
|
+
let Ct = !1;
|
|
141
|
+
function rr() {
|
|
142
|
+
Ct || (Ct = !0, nr.then(oe));
|
|
142
143
|
}
|
|
143
144
|
function Ke(e) {
|
|
144
|
-
|
|
145
|
+
Ue.push(e);
|
|
145
146
|
}
|
|
146
|
-
const
|
|
147
|
-
let
|
|
148
|
-
function
|
|
149
|
-
if (
|
|
147
|
+
const _t = /* @__PURE__ */ new Set();
|
|
148
|
+
let Le = 0;
|
|
149
|
+
function oe() {
|
|
150
|
+
if (Le !== 0)
|
|
150
151
|
return;
|
|
151
|
-
const e =
|
|
152
|
+
const e = Gt;
|
|
152
153
|
do {
|
|
153
154
|
try {
|
|
154
|
-
for (;
|
|
155
|
-
const t =
|
|
156
|
-
|
|
155
|
+
for (; Le < De.length; ) {
|
|
156
|
+
const t = De[Le];
|
|
157
|
+
Le++, Ye(t), ir(t.$$);
|
|
157
158
|
}
|
|
158
159
|
} catch (t) {
|
|
159
|
-
throw
|
|
160
|
+
throw De.length = 0, Le = 0, t;
|
|
160
161
|
}
|
|
161
|
-
for (Ye(null),
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
for (Ye(null), De.length = 0, Le = 0; pt.length; )
|
|
163
|
+
pt.pop()();
|
|
164
|
+
for (let t = 0; t < Ue.length; t += 1) {
|
|
165
|
+
const n = Ue[t];
|
|
166
|
+
_t.has(n) || (_t.add(n), n());
|
|
165
167
|
}
|
|
166
|
-
|
|
167
|
-
} while (
|
|
168
|
-
for (;
|
|
169
|
-
|
|
170
|
-
|
|
168
|
+
Ue.length = 0;
|
|
169
|
+
} while (De.length);
|
|
170
|
+
for (; qt.length; )
|
|
171
|
+
qt.pop()();
|
|
172
|
+
Ct = !1, _t.clear(), Ye(e);
|
|
171
173
|
}
|
|
172
|
-
function
|
|
174
|
+
function ir(e) {
|
|
173
175
|
if (e.fragment !== null) {
|
|
174
176
|
e.update(), _e(e.before_update);
|
|
175
177
|
const t = e.dirty;
|
|
176
178
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ke);
|
|
177
179
|
}
|
|
178
180
|
}
|
|
179
|
-
function
|
|
180
|
-
const t = [],
|
|
181
|
-
|
|
181
|
+
function ar(e) {
|
|
182
|
+
const t = [], n = [];
|
|
183
|
+
Ue.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ue = t;
|
|
182
184
|
}
|
|
183
|
-
const
|
|
184
|
-
function
|
|
185
|
-
e && e.i && (
|
|
185
|
+
const or = /* @__PURE__ */ new Set();
|
|
186
|
+
function sr(e, t) {
|
|
187
|
+
e && e.i && (or.delete(e), e.i(t));
|
|
186
188
|
}
|
|
187
|
-
function
|
|
189
|
+
function Me(e) {
|
|
188
190
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
189
191
|
}
|
|
190
|
-
function
|
|
191
|
-
const { fragment:
|
|
192
|
-
|
|
193
|
-
const a = e.$$.on_mount.map(
|
|
192
|
+
function lr(e, t, n) {
|
|
193
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
194
|
+
r && r.m(t, n), Ke(() => {
|
|
195
|
+
const a = e.$$.on_mount.map(xn).filter(Ft);
|
|
194
196
|
e.$$.on_destroy ? e.$$.on_destroy.push(...a) : _e(a), e.$$.on_mount = [];
|
|
195
197
|
}), i.forEach(Ke);
|
|
196
198
|
}
|
|
197
|
-
function
|
|
198
|
-
const
|
|
199
|
-
|
|
199
|
+
function ur(e, t) {
|
|
200
|
+
const n = e.$$;
|
|
201
|
+
n.fragment !== null && (ar(n.after_update), _e(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
200
202
|
}
|
|
201
|
-
function
|
|
202
|
-
e.$$.dirty[0] === -1 && (
|
|
203
|
+
function cr(e, t) {
|
|
204
|
+
e.$$.dirty[0] === -1 && (De.push(e), rr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
203
205
|
}
|
|
204
|
-
function
|
|
205
|
-
const c =
|
|
206
|
+
function hr(e, t, n, r, i, a, o = null, s = [-1]) {
|
|
207
|
+
const c = Gt;
|
|
206
208
|
Ye(e);
|
|
207
|
-
const
|
|
209
|
+
const u = e.$$ = {
|
|
208
210
|
fragment: null,
|
|
209
211
|
ctx: [],
|
|
210
212
|
// state
|
|
211
213
|
props: a,
|
|
212
|
-
update:
|
|
214
|
+
update: re,
|
|
213
215
|
not_equal: i,
|
|
214
|
-
bound:
|
|
216
|
+
bound: zt(),
|
|
215
217
|
// lifecycle
|
|
216
218
|
on_mount: [],
|
|
217
219
|
on_destroy: [],
|
|
@@ -220,28 +222,28 @@ function ln(e, t, r, n, i, a, o = null, s = [-1]) {
|
|
|
220
222
|
after_update: [],
|
|
221
223
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
222
224
|
// everything else
|
|
223
|
-
callbacks:
|
|
225
|
+
callbacks: zt(),
|
|
224
226
|
dirty: s,
|
|
225
227
|
skip_bound: !1,
|
|
226
228
|
root: t.target || c.$$.root
|
|
227
229
|
};
|
|
228
|
-
o && o(
|
|
229
|
-
let
|
|
230
|
-
if (
|
|
231
|
-
const v =
|
|
232
|
-
return
|
|
233
|
-
}) : [],
|
|
230
|
+
o && o(u.root);
|
|
231
|
+
let l = !1;
|
|
232
|
+
if (u.ctx = n ? n(e, t.props || {}, (f, d, ...y) => {
|
|
233
|
+
const v = y.length ? y[0] : d;
|
|
234
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), l && cr(e, f)), d;
|
|
235
|
+
}) : [], u.update(), l = !0, _e(u.before_update), u.fragment = r ? r(u.ctx) : !1, t.target) {
|
|
234
236
|
if (t.hydrate) {
|
|
235
|
-
const
|
|
236
|
-
|
|
237
|
+
const f = er(t.target);
|
|
238
|
+
u.fragment && u.fragment.l(f), f.forEach(W);
|
|
237
239
|
} else
|
|
238
|
-
|
|
239
|
-
t.intro &&
|
|
240
|
+
u.fragment && u.fragment.c();
|
|
241
|
+
t.intro && sr(e.$$.fragment), lr(e, t.target, t.anchor), oe();
|
|
240
242
|
}
|
|
241
243
|
Ye(c);
|
|
242
244
|
}
|
|
243
|
-
let
|
|
244
|
-
typeof HTMLElement == "function" && (
|
|
245
|
+
let Tn;
|
|
246
|
+
typeof HTMLElement == "function" && (Tn = class extends HTMLElement {
|
|
245
247
|
/** The Svelte component constructor */
|
|
246
248
|
$$ctor;
|
|
247
249
|
/** Slots */
|
|
@@ -260,20 +262,20 @@ typeof HTMLElement == "function" && (Er = class extends HTMLElement {
|
|
|
260
262
|
$$l = {};
|
|
261
263
|
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
262
264
|
$$l_u = /* @__PURE__ */ new Map();
|
|
263
|
-
constructor(e, t,
|
|
264
|
-
super(), this.$$ctor = e, this.$$s = t,
|
|
265
|
+
constructor(e, t, n) {
|
|
266
|
+
super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
|
|
265
267
|
}
|
|
266
|
-
addEventListener(e, t,
|
|
268
|
+
addEventListener(e, t, n) {
|
|
267
269
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
268
|
-
const
|
|
269
|
-
this.$$l_u.set(t,
|
|
270
|
+
const r = this.$$c.$on(e, t);
|
|
271
|
+
this.$$l_u.set(t, r);
|
|
270
272
|
}
|
|
271
|
-
super.addEventListener(e, t,
|
|
273
|
+
super.addEventListener(e, t, n);
|
|
272
274
|
}
|
|
273
|
-
removeEventListener(e, t,
|
|
274
|
-
if (super.removeEventListener(e, t,
|
|
275
|
-
const
|
|
276
|
-
|
|
275
|
+
removeEventListener(e, t, n) {
|
|
276
|
+
if (super.removeEventListener(e, t, n), this.$$c) {
|
|
277
|
+
const r = this.$$l_u.get(t);
|
|
278
|
+
r && (r(), this.$$l_u.delete(t));
|
|
277
279
|
}
|
|
278
280
|
}
|
|
279
281
|
async connectedCallback() {
|
|
@@ -283,26 +285,26 @@ typeof HTMLElement == "function" && (Er = class extends HTMLElement {
|
|
|
283
285
|
let a;
|
|
284
286
|
return {
|
|
285
287
|
c: function() {
|
|
286
|
-
a = E("slot"), i !== "default" &&
|
|
288
|
+
a = E("slot"), i !== "default" && H(a, "name", i);
|
|
287
289
|
},
|
|
288
290
|
/**
|
|
289
291
|
* @param {HTMLElement} target
|
|
290
292
|
* @param {HTMLElement} [anchor]
|
|
291
293
|
*/
|
|
292
|
-
m: function(c,
|
|
293
|
-
|
|
294
|
+
m: function(c, u) {
|
|
295
|
+
J(c, a, u);
|
|
294
296
|
},
|
|
295
297
|
d: function(c) {
|
|
296
|
-
c &&
|
|
298
|
+
c && W(a);
|
|
297
299
|
}
|
|
298
300
|
};
|
|
299
301
|
};
|
|
300
302
|
};
|
|
301
303
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
302
304
|
return;
|
|
303
|
-
const t = {},
|
|
305
|
+
const t = {}, n = tr(this);
|
|
304
306
|
for (const i of this.$$s)
|
|
305
|
-
i in
|
|
307
|
+
i in n && (t[i] = [e(i)]);
|
|
306
308
|
for (const i of this.attributes) {
|
|
307
309
|
const a = this.$$g_p(i.name);
|
|
308
310
|
a in this.$$d || (this.$$d[a] = ut(a, i.value, this.$$p_d, "toProp"));
|
|
@@ -319,7 +321,7 @@ typeof HTMLElement == "function" && (Er = class extends HTMLElement {
|
|
|
319
321
|
}
|
|
320
322
|
}
|
|
321
323
|
});
|
|
322
|
-
const
|
|
324
|
+
const r = () => {
|
|
323
325
|
this.$$r = !0;
|
|
324
326
|
for (const i in this.$$p_d)
|
|
325
327
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
@@ -333,7 +335,7 @@ typeof HTMLElement == "function" && (Er = class extends HTMLElement {
|
|
|
333
335
|
}
|
|
334
336
|
this.$$r = !1;
|
|
335
337
|
};
|
|
336
|
-
this.$$c.$$.after_update.push(
|
|
338
|
+
this.$$c.$$.after_update.push(r), r();
|
|
337
339
|
for (const i in this.$$l)
|
|
338
340
|
for (const a of this.$$l[i]) {
|
|
339
341
|
const o = this.$$c.$on(i, a);
|
|
@@ -344,8 +346,8 @@ typeof HTMLElement == "function" && (Er = class extends HTMLElement {
|
|
|
344
346
|
}
|
|
345
347
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
346
348
|
// and setting attributes through setAttribute etc, this is helpful
|
|
347
|
-
attributeChangedCallback(e, t,
|
|
348
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ut(e,
|
|
349
|
+
attributeChangedCallback(e, t, n) {
|
|
350
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ut(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
349
351
|
}
|
|
350
352
|
disconnectedCallback() {
|
|
351
353
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -358,11 +360,11 @@ typeof HTMLElement == "function" && (Er = class extends HTMLElement {
|
|
|
358
360
|
) || e;
|
|
359
361
|
}
|
|
360
362
|
});
|
|
361
|
-
function ut(e, t,
|
|
362
|
-
const i =
|
|
363
|
-
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !
|
|
363
|
+
function ut(e, t, n, r) {
|
|
364
|
+
const i = n[e]?.type;
|
|
365
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
364
366
|
return t;
|
|
365
|
-
if (
|
|
367
|
+
if (r === "toAttribute")
|
|
366
368
|
switch (i) {
|
|
367
369
|
case "Object":
|
|
368
370
|
case "Array":
|
|
@@ -387,10 +389,10 @@ function ut(e, t, r, n) {
|
|
|
387
389
|
return t;
|
|
388
390
|
}
|
|
389
391
|
}
|
|
390
|
-
function
|
|
391
|
-
let o = class extends
|
|
392
|
+
function fr(e, t, n, r, i, a) {
|
|
393
|
+
let o = class extends Tn {
|
|
392
394
|
constructor() {
|
|
393
|
-
super(e,
|
|
395
|
+
super(e, n, i), this.$$p_d = t;
|
|
394
396
|
}
|
|
395
397
|
static get observedAttributes() {
|
|
396
398
|
return Object.keys(t).map(
|
|
@@ -407,7 +409,7 @@ function cn(e, t, r, n, i, a) {
|
|
|
407
409
|
c = ut(s, c, t), this.$$d[s] = c, this.$$c?.$set({ [s]: c });
|
|
408
410
|
}
|
|
409
411
|
});
|
|
410
|
-
}),
|
|
412
|
+
}), r.forEach((s) => {
|
|
411
413
|
Object.defineProperty(o.prototype, s, {
|
|
412
414
|
get() {
|
|
413
415
|
return this.$$c?.[s];
|
|
@@ -416,7 +418,7 @@ function cn(e, t, r, n, i, a) {
|
|
|
416
418
|
}), e.element = /** @type {any} */
|
|
417
419
|
o, o;
|
|
418
420
|
}
|
|
419
|
-
class
|
|
421
|
+
class pr {
|
|
420
422
|
/**
|
|
421
423
|
* ### PRIVATE API
|
|
422
424
|
*
|
|
@@ -435,7 +437,7 @@ class hn {
|
|
|
435
437
|
$$set = void 0;
|
|
436
438
|
/** @returns {void} */
|
|
437
439
|
$destroy() {
|
|
438
|
-
|
|
440
|
+
ur(this, 1), this.$destroy = re;
|
|
439
441
|
}
|
|
440
442
|
/**
|
|
441
443
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -443,13 +445,13 @@ class hn {
|
|
|
443
445
|
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
444
446
|
* @returns {() => void}
|
|
445
447
|
*/
|
|
446
|
-
$on(t,
|
|
447
|
-
if (!
|
|
448
|
-
return
|
|
449
|
-
const
|
|
450
|
-
return
|
|
451
|
-
const i =
|
|
452
|
-
i !== -1 &&
|
|
448
|
+
$on(t, n) {
|
|
449
|
+
if (!Ft(n))
|
|
450
|
+
return re;
|
|
451
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
452
|
+
return r.push(n), () => {
|
|
453
|
+
const i = r.indexOf(n);
|
|
454
|
+
i !== -1 && r.splice(i, 1);
|
|
453
455
|
};
|
|
454
456
|
}
|
|
455
457
|
/**
|
|
@@ -457,290 +459,310 @@ class hn {
|
|
|
457
459
|
* @returns {void}
|
|
458
460
|
*/
|
|
459
461
|
$set(t) {
|
|
460
|
-
this.$$set && !
|
|
462
|
+
this.$$set && !qn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
461
463
|
}
|
|
462
464
|
}
|
|
463
|
-
const
|
|
464
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
465
|
-
const
|
|
466
|
-
function
|
|
465
|
+
const mr = "4";
|
|
466
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mr);
|
|
467
|
+
const Re = [];
|
|
468
|
+
function dr(e, t) {
|
|
467
469
|
return {
|
|
468
|
-
subscribe:
|
|
470
|
+
subscribe: gt(e, t).subscribe
|
|
469
471
|
};
|
|
470
472
|
}
|
|
471
|
-
function
|
|
472
|
-
let
|
|
473
|
-
const
|
|
473
|
+
function gt(e, t = re) {
|
|
474
|
+
let n;
|
|
475
|
+
const r = /* @__PURE__ */ new Set();
|
|
474
476
|
function i(s) {
|
|
475
|
-
if (
|
|
476
|
-
const c = !
|
|
477
|
-
for (const
|
|
478
|
-
|
|
477
|
+
if (En(e, s) && (e = s, n)) {
|
|
478
|
+
const c = !Re.length;
|
|
479
|
+
for (const u of r)
|
|
480
|
+
u[1](), Re.push(u, e);
|
|
479
481
|
if (c) {
|
|
480
|
-
for (let
|
|
481
|
-
|
|
482
|
-
|
|
482
|
+
for (let u = 0; u < Re.length; u += 2)
|
|
483
|
+
Re[u][0](Re[u + 1]);
|
|
484
|
+
Re.length = 0;
|
|
483
485
|
}
|
|
484
486
|
}
|
|
485
487
|
}
|
|
486
488
|
function a(s) {
|
|
487
489
|
i(s(e));
|
|
488
490
|
}
|
|
489
|
-
function o(s, c =
|
|
490
|
-
const
|
|
491
|
-
return
|
|
492
|
-
|
|
491
|
+
function o(s, c = re) {
|
|
492
|
+
const u = [s, c];
|
|
493
|
+
return r.add(u), r.size === 1 && (n = t(i, a) || re), s(e), () => {
|
|
494
|
+
r.delete(u), r.size === 0 && n && (n(), n = null);
|
|
493
495
|
};
|
|
494
496
|
}
|
|
495
497
|
return { set: i, update: a, subscribe: o };
|
|
496
498
|
}
|
|
497
|
-
function
|
|
498
|
-
const
|
|
499
|
+
function je(e, t, n) {
|
|
500
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
499
501
|
if (!i.every(Boolean))
|
|
500
502
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
501
503
|
const a = t.length < 2;
|
|
502
|
-
return
|
|
504
|
+
return dr(n, (o, s) => {
|
|
503
505
|
let c = !1;
|
|
504
|
-
const
|
|
505
|
-
let
|
|
506
|
+
const u = [];
|
|
507
|
+
let l = 0, f = re;
|
|
506
508
|
const d = () => {
|
|
507
|
-
if (
|
|
509
|
+
if (l)
|
|
508
510
|
return;
|
|
509
|
-
|
|
510
|
-
const v = t(
|
|
511
|
-
a ? o(v) :
|
|
512
|
-
},
|
|
513
|
-
(v, I) =>
|
|
511
|
+
f();
|
|
512
|
+
const v = t(r ? u[0] : u, o, s);
|
|
513
|
+
a ? o(v) : f = Ft(v) ? v : re;
|
|
514
|
+
}, y = i.map(
|
|
515
|
+
(v, I) => _n(
|
|
514
516
|
v,
|
|
515
|
-
(
|
|
516
|
-
|
|
517
|
+
(U) => {
|
|
518
|
+
u[I] = U, l &= ~(1 << I), c && d();
|
|
517
519
|
},
|
|
518
520
|
() => {
|
|
519
|
-
|
|
521
|
+
l |= 1 << I;
|
|
520
522
|
}
|
|
521
523
|
)
|
|
522
524
|
);
|
|
523
525
|
return c = !0, d(), function() {
|
|
524
|
-
_e(
|
|
526
|
+
_e(y), f(), c = !1;
|
|
525
527
|
};
|
|
526
528
|
});
|
|
527
529
|
}
|
|
528
|
-
function
|
|
530
|
+
function gr(e) {
|
|
529
531
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
530
532
|
}
|
|
531
|
-
var
|
|
532
|
-
return
|
|
533
|
+
var br = function(t) {
|
|
534
|
+
return yr(t) && !vr(t);
|
|
533
535
|
};
|
|
534
|
-
function
|
|
536
|
+
function yr(e) {
|
|
535
537
|
return !!e && typeof e == "object";
|
|
536
538
|
}
|
|
537
|
-
function
|
|
539
|
+
function vr(e) {
|
|
538
540
|
var t = Object.prototype.toString.call(e);
|
|
539
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
541
|
+
return t === "[object RegExp]" || t === "[object Date]" || _r(e);
|
|
540
542
|
}
|
|
541
|
-
var
|
|
542
|
-
function
|
|
543
|
-
return e.$$typeof ===
|
|
543
|
+
var xr = typeof Symbol == "function" && Symbol.for, Er = xr ? Symbol.for("react.element") : 60103;
|
|
544
|
+
function _r(e) {
|
|
545
|
+
return e.$$typeof === Er;
|
|
544
546
|
}
|
|
545
|
-
function
|
|
547
|
+
function wr(e) {
|
|
546
548
|
return Array.isArray(e) ? [] : {};
|
|
547
549
|
}
|
|
548
550
|
function et(e, t) {
|
|
549
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
551
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Fe(wr(e), e, t) : e;
|
|
550
552
|
}
|
|
551
|
-
function
|
|
552
|
-
return e.concat(t).map(function(
|
|
553
|
-
return et(
|
|
553
|
+
function Tr(e, t, n) {
|
|
554
|
+
return e.concat(t).map(function(r) {
|
|
555
|
+
return et(r, n);
|
|
554
556
|
});
|
|
555
557
|
}
|
|
556
|
-
function
|
|
558
|
+
function Hr(e, t) {
|
|
557
559
|
if (!t.customMerge)
|
|
558
|
-
return
|
|
559
|
-
var
|
|
560
|
-
return typeof
|
|
560
|
+
return Fe;
|
|
561
|
+
var n = t.customMerge(e);
|
|
562
|
+
return typeof n == "function" ? n : Fe;
|
|
561
563
|
}
|
|
562
|
-
function
|
|
564
|
+
function Ar(e) {
|
|
563
565
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
564
566
|
return Object.propertyIsEnumerable.call(e, t);
|
|
565
567
|
}) : [];
|
|
566
568
|
}
|
|
567
|
-
function
|
|
568
|
-
return Object.keys(e).concat(
|
|
569
|
+
function Jt(e) {
|
|
570
|
+
return Object.keys(e).concat(Ar(e));
|
|
569
571
|
}
|
|
570
|
-
function
|
|
572
|
+
function Hn(e, t) {
|
|
571
573
|
try {
|
|
572
574
|
return t in e;
|
|
573
575
|
} catch {
|
|
574
576
|
return !1;
|
|
575
577
|
}
|
|
576
578
|
}
|
|
577
|
-
function
|
|
578
|
-
return
|
|
579
|
+
function Br(e, t) {
|
|
580
|
+
return Hn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
579
581
|
}
|
|
580
|
-
function
|
|
581
|
-
var
|
|
582
|
-
return
|
|
583
|
-
|
|
584
|
-
}),
|
|
585
|
-
|
|
586
|
-
}),
|
|
587
|
-
}
|
|
588
|
-
function
|
|
589
|
-
|
|
590
|
-
var
|
|
591
|
-
return a ?
|
|
592
|
-
}
|
|
593
|
-
|
|
582
|
+
function Sr(e, t, n) {
|
|
583
|
+
var r = {};
|
|
584
|
+
return n.isMergeableObject(e) && Jt(e).forEach(function(i) {
|
|
585
|
+
r[i] = et(e[i], n);
|
|
586
|
+
}), Jt(t).forEach(function(i) {
|
|
587
|
+
Br(e, i) || (Hn(e, i) && n.isMergeableObject(t[i]) ? r[i] = Hr(i, n)(e[i], t[i], n) : r[i] = et(t[i], n));
|
|
588
|
+
}), r;
|
|
589
|
+
}
|
|
590
|
+
function Fe(e, t, n) {
|
|
591
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Tr, n.isMergeableObject = n.isMergeableObject || br, n.cloneUnlessOtherwiseSpecified = et;
|
|
592
|
+
var r = Array.isArray(t), i = Array.isArray(e), a = r === i;
|
|
593
|
+
return a ? r ? n.arrayMerge(e, t, n) : Sr(e, t, n) : et(t, n);
|
|
594
|
+
}
|
|
595
|
+
Fe.all = function(t, n) {
|
|
594
596
|
if (!Array.isArray(t))
|
|
595
597
|
throw new Error("first argument should be an array");
|
|
596
|
-
return t.reduce(function(
|
|
597
|
-
return
|
|
598
|
+
return t.reduce(function(r, i) {
|
|
599
|
+
return Fe(r, i, n);
|
|
598
600
|
}, {});
|
|
599
601
|
};
|
|
600
|
-
var
|
|
601
|
-
const
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
602
|
+
var Cr = Fe, Pr = Cr;
|
|
603
|
+
const Ir = /* @__PURE__ */ gr(Pr);
|
|
604
|
+
/*! *****************************************************************************
|
|
605
|
+
Copyright (c) Microsoft Corporation.
|
|
606
|
+
|
|
607
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
608
|
+
purpose with or without fee is hereby granted.
|
|
609
|
+
|
|
610
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
611
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
612
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
613
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
614
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
615
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
616
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
617
|
+
***************************************************************************** */
|
|
618
|
+
var Pt = function(e, t) {
|
|
619
|
+
return Pt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
620
|
+
n.__proto__ = r;
|
|
621
|
+
} || function(n, r) {
|
|
622
|
+
for (var i in r)
|
|
623
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
624
|
+
}, Pt(e, t);
|
|
608
625
|
};
|
|
609
|
-
function
|
|
626
|
+
function bt(e, t) {
|
|
610
627
|
if (typeof t != "function" && t !== null)
|
|
611
628
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
612
|
-
|
|
613
|
-
function
|
|
629
|
+
Pt(e, t);
|
|
630
|
+
function n() {
|
|
614
631
|
this.constructor = e;
|
|
615
632
|
}
|
|
616
|
-
e.prototype = t === null ? Object.create(t) : (
|
|
617
|
-
}
|
|
618
|
-
var
|
|
619
|
-
return
|
|
620
|
-
for (var
|
|
621
|
-
|
|
622
|
-
for (var a in
|
|
633
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
634
|
+
}
|
|
635
|
+
var B = function() {
|
|
636
|
+
return B = Object.assign || function(t) {
|
|
637
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
638
|
+
n = arguments[r];
|
|
639
|
+
for (var a in n)
|
|
640
|
+
Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
623
641
|
}
|
|
624
642
|
return t;
|
|
625
|
-
},
|
|
643
|
+
}, B.apply(this, arguments);
|
|
626
644
|
};
|
|
627
|
-
function
|
|
628
|
-
var
|
|
629
|
-
for (var
|
|
645
|
+
function Nr(e, t) {
|
|
646
|
+
var n = {};
|
|
647
|
+
for (var r in e)
|
|
648
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
630
649
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
631
|
-
for (var i = 0,
|
|
632
|
-
t.indexOf(
|
|
633
|
-
return
|
|
650
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
651
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
652
|
+
return n;
|
|
634
653
|
}
|
|
635
|
-
function
|
|
636
|
-
if (
|
|
637
|
-
|
|
638
|
-
|
|
654
|
+
function wt(e, t, n) {
|
|
655
|
+
if (arguments.length === 2)
|
|
656
|
+
for (var r = 0, i = t.length, a; r < i; r++)
|
|
657
|
+
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
658
|
+
return e.concat(a || t);
|
|
639
659
|
}
|
|
640
|
-
function
|
|
641
|
-
var
|
|
660
|
+
function Tt(e, t) {
|
|
661
|
+
var n = t && t.cache ? t.cache : Ur, r = t && t.serializer ? t.serializer : Dr, i = t && t.strategy ? t.strategy : Lr;
|
|
642
662
|
return i(e, {
|
|
643
|
-
cache:
|
|
644
|
-
serializer:
|
|
663
|
+
cache: n,
|
|
664
|
+
serializer: r
|
|
645
665
|
});
|
|
646
666
|
}
|
|
647
|
-
function
|
|
667
|
+
function Or(e) {
|
|
648
668
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
649
669
|
}
|
|
650
|
-
function
|
|
651
|
-
var i =
|
|
652
|
-
return typeof a > "u" && (a = e.call(this,
|
|
670
|
+
function An(e, t, n, r) {
|
|
671
|
+
var i = Or(r) ? r : n(r), a = t.get(i);
|
|
672
|
+
return typeof a > "u" && (a = e.call(this, r), t.set(i, a)), a;
|
|
673
|
+
}
|
|
674
|
+
function Bn(e, t, n) {
|
|
675
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), a = t.get(i);
|
|
676
|
+
return typeof a > "u" && (a = e.apply(this, r), t.set(i, a)), a;
|
|
653
677
|
}
|
|
654
|
-
function
|
|
655
|
-
|
|
656
|
-
return typeof a > "u" && (a = e.apply(this, n), t.set(i, a)), a;
|
|
678
|
+
function kt(e, t, n, r, i) {
|
|
679
|
+
return n.bind(t, e, r, i);
|
|
657
680
|
}
|
|
658
|
-
function
|
|
659
|
-
|
|
681
|
+
function Lr(e, t) {
|
|
682
|
+
var n = e.length === 1 ? An : Bn;
|
|
683
|
+
return kt(e, this, n, t.cache.create(), t.serializer);
|
|
660
684
|
}
|
|
661
|
-
function
|
|
662
|
-
|
|
663
|
-
return Tr(e, this, r, t.cache.create(), t.serializer);
|
|
685
|
+
function Mr(e, t) {
|
|
686
|
+
return kt(e, this, Bn, t.cache.create(), t.serializer);
|
|
664
687
|
}
|
|
665
|
-
function
|
|
666
|
-
return
|
|
688
|
+
function Rr(e, t) {
|
|
689
|
+
return kt(e, this, An, t.cache.create(), t.serializer);
|
|
667
690
|
}
|
|
668
|
-
var
|
|
691
|
+
var Dr = function() {
|
|
669
692
|
return JSON.stringify(arguments);
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
}()
|
|
682
|
-
), Dn = {
|
|
693
|
+
};
|
|
694
|
+
function $t() {
|
|
695
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
696
|
+
}
|
|
697
|
+
$t.prototype.get = function(e) {
|
|
698
|
+
return this.cache[e];
|
|
699
|
+
};
|
|
700
|
+
$t.prototype.set = function(e, t) {
|
|
701
|
+
this.cache[e] = t;
|
|
702
|
+
};
|
|
703
|
+
var Ur = {
|
|
683
704
|
create: function() {
|
|
684
|
-
return new
|
|
705
|
+
return new $t();
|
|
685
706
|
}
|
|
686
|
-
},
|
|
687
|
-
variadic:
|
|
688
|
-
|
|
707
|
+
}, Ht = {
|
|
708
|
+
variadic: Mr,
|
|
709
|
+
monadic: Rr
|
|
710
|
+
}, w;
|
|
689
711
|
(function(e) {
|
|
690
712
|
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
691
|
-
})(
|
|
713
|
+
})(w || (w = {}));
|
|
692
714
|
var C;
|
|
693
715
|
(function(e) {
|
|
694
716
|
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";
|
|
695
717
|
})(C || (C = {}));
|
|
696
|
-
var
|
|
718
|
+
var Ge;
|
|
697
719
|
(function(e) {
|
|
698
720
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
699
|
-
})(
|
|
700
|
-
function
|
|
721
|
+
})(Ge || (Ge = {}));
|
|
722
|
+
function Qt(e) {
|
|
701
723
|
return e.type === C.literal;
|
|
702
724
|
}
|
|
703
|
-
function
|
|
725
|
+
function Fr(e) {
|
|
704
726
|
return e.type === C.argument;
|
|
705
727
|
}
|
|
706
|
-
function
|
|
728
|
+
function Sn(e) {
|
|
707
729
|
return e.type === C.number;
|
|
708
730
|
}
|
|
709
|
-
function
|
|
731
|
+
function Cn(e) {
|
|
710
732
|
return e.type === C.date;
|
|
711
733
|
}
|
|
712
|
-
function
|
|
734
|
+
function Pn(e) {
|
|
713
735
|
return e.type === C.time;
|
|
714
736
|
}
|
|
715
|
-
function
|
|
737
|
+
function In(e) {
|
|
716
738
|
return e.type === C.select;
|
|
717
739
|
}
|
|
718
|
-
function
|
|
740
|
+
function Nn(e) {
|
|
719
741
|
return e.type === C.plural;
|
|
720
742
|
}
|
|
721
|
-
function
|
|
743
|
+
function Gr(e) {
|
|
722
744
|
return e.type === C.pound;
|
|
723
745
|
}
|
|
724
|
-
function
|
|
746
|
+
function On(e) {
|
|
725
747
|
return e.type === C.tag;
|
|
726
748
|
}
|
|
727
|
-
function
|
|
728
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
749
|
+
function Ln(e) {
|
|
750
|
+
return !!(e && typeof e == "object" && e.type === Ge.number);
|
|
729
751
|
}
|
|
730
|
-
function
|
|
731
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
752
|
+
function It(e) {
|
|
753
|
+
return !!(e && typeof e == "object" && e.type === Ge.dateTime);
|
|
732
754
|
}
|
|
733
|
-
var
|
|
734
|
-
function
|
|
755
|
+
var Mn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, kr = /(?:[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;
|
|
756
|
+
function $r(e) {
|
|
735
757
|
var t = {};
|
|
736
|
-
return e.replace(
|
|
737
|
-
var
|
|
738
|
-
switch (
|
|
758
|
+
return e.replace(kr, function(n) {
|
|
759
|
+
var r = n.length;
|
|
760
|
+
switch (n[0]) {
|
|
739
761
|
case "G":
|
|
740
|
-
t.era =
|
|
762
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
741
763
|
break;
|
|
742
764
|
case "y":
|
|
743
|
-
t.year =
|
|
765
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
744
766
|
break;
|
|
745
767
|
case "Y":
|
|
746
768
|
case "u":
|
|
@@ -752,30 +774,30 @@ function kn(e) {
|
|
|
752
774
|
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
753
775
|
case "M":
|
|
754
776
|
case "L":
|
|
755
|
-
t.month = ["numeric", "2-digit", "short", "long", "narrow"][
|
|
777
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
756
778
|
break;
|
|
757
779
|
case "w":
|
|
758
780
|
case "W":
|
|
759
781
|
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
760
782
|
case "d":
|
|
761
|
-
t.day = ["numeric", "2-digit"][
|
|
783
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
762
784
|
break;
|
|
763
785
|
case "D":
|
|
764
786
|
case "F":
|
|
765
787
|
case "g":
|
|
766
788
|
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
767
789
|
case "E":
|
|
768
|
-
t.weekday =
|
|
790
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
769
791
|
break;
|
|
770
792
|
case "e":
|
|
771
|
-
if (
|
|
793
|
+
if (r < 4)
|
|
772
794
|
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
773
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
795
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
774
796
|
break;
|
|
775
797
|
case "c":
|
|
776
|
-
if (
|
|
798
|
+
if (r < 4)
|
|
777
799
|
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
778
|
-
t.weekday = ["short", "long", "narrow", "short"][
|
|
800
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
779
801
|
break;
|
|
780
802
|
case "a":
|
|
781
803
|
t.hour12 = !0;
|
|
@@ -784,32 +806,32 @@ function kn(e) {
|
|
|
784
806
|
case "B":
|
|
785
807
|
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
786
808
|
case "h":
|
|
787
|
-
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][
|
|
809
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
788
810
|
break;
|
|
789
811
|
case "H":
|
|
790
|
-
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][
|
|
812
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
791
813
|
break;
|
|
792
814
|
case "K":
|
|
793
|
-
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][
|
|
815
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
794
816
|
break;
|
|
795
817
|
case "k":
|
|
796
|
-
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][
|
|
818
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
797
819
|
break;
|
|
798
820
|
case "j":
|
|
799
821
|
case "J":
|
|
800
822
|
case "C":
|
|
801
823
|
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
802
824
|
case "m":
|
|
803
|
-
t.minute = ["numeric", "2-digit"][
|
|
825
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
804
826
|
break;
|
|
805
827
|
case "s":
|
|
806
|
-
t.second = ["numeric", "2-digit"][
|
|
828
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
807
829
|
break;
|
|
808
830
|
case "S":
|
|
809
831
|
case "A":
|
|
810
832
|
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
811
833
|
case "z":
|
|
812
|
-
t.timeZoneName =
|
|
834
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
813
835
|
break;
|
|
814
836
|
case "Z":
|
|
815
837
|
case "O":
|
|
@@ -822,36 +844,36 @@ function kn(e) {
|
|
|
822
844
|
return "";
|
|
823
845
|
}), t;
|
|
824
846
|
}
|
|
825
|
-
var
|
|
826
|
-
function
|
|
847
|
+
var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
848
|
+
function Vr(e) {
|
|
827
849
|
if (e.length === 0)
|
|
828
850
|
throw new Error("Number skeleton cannot be empty");
|
|
829
|
-
for (var t = e.split(
|
|
851
|
+
for (var t = e.split(jr).filter(function(d) {
|
|
830
852
|
return d.length > 0;
|
|
831
|
-
}),
|
|
832
|
-
var a = i[
|
|
853
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
854
|
+
var a = i[r], o = a.split("/");
|
|
833
855
|
if (o.length === 0)
|
|
834
856
|
throw new Error("Invalid number skeleton");
|
|
835
|
-
for (var s = o[0], c = o.slice(1),
|
|
836
|
-
var
|
|
837
|
-
if (
|
|
857
|
+
for (var s = o[0], c = o.slice(1), u = 0, l = c; u < l.length; u++) {
|
|
858
|
+
var f = l[u];
|
|
859
|
+
if (f.length === 0)
|
|
838
860
|
throw new Error("Invalid number skeleton");
|
|
839
861
|
}
|
|
840
|
-
|
|
862
|
+
n.push({ stem: s, options: c });
|
|
841
863
|
}
|
|
842
|
-
return
|
|
864
|
+
return n;
|
|
843
865
|
}
|
|
844
|
-
function
|
|
866
|
+
function zr(e) {
|
|
845
867
|
return e.replace(/^(.*?)-/, "");
|
|
846
868
|
}
|
|
847
|
-
var
|
|
848
|
-
function
|
|
869
|
+
var Yt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Rn = /^(@+)?(\+|#+)?[rs]?$/g, Xr = /(\*)(0+)|(#+)(0+)|(0+)/g, Dn = /^(0+)$/;
|
|
870
|
+
function Kt(e) {
|
|
849
871
|
var t = {};
|
|
850
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
851
|
-
return typeof i != "string" ? (t.minimumSignificantDigits =
|
|
872
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Rn, function(n, r, i) {
|
|
873
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
852
874
|
}), t;
|
|
853
875
|
}
|
|
854
|
-
function
|
|
876
|
+
function Un(e) {
|
|
855
877
|
switch (e) {
|
|
856
878
|
case "sign-auto":
|
|
857
879
|
return {
|
|
@@ -891,27 +913,27 @@ function Mr(e) {
|
|
|
891
913
|
};
|
|
892
914
|
}
|
|
893
915
|
}
|
|
894
|
-
function
|
|
916
|
+
function Wr(e) {
|
|
895
917
|
var t;
|
|
896
918
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
897
919
|
notation: "engineering"
|
|
898
920
|
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
899
921
|
notation: "scientific"
|
|
900
922
|
}, e = e.slice(1)), t) {
|
|
901
|
-
var
|
|
902
|
-
if (
|
|
923
|
+
var n = e.slice(0, 2);
|
|
924
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Dn.test(e))
|
|
903
925
|
throw new Error("Malformed concise eng/scientific notation");
|
|
904
926
|
t.minimumIntegerDigits = e.length;
|
|
905
927
|
}
|
|
906
928
|
return t;
|
|
907
929
|
}
|
|
908
|
-
function
|
|
909
|
-
var t = {},
|
|
910
|
-
return
|
|
930
|
+
function en(e) {
|
|
931
|
+
var t = {}, n = Un(e);
|
|
932
|
+
return n || t;
|
|
911
933
|
}
|
|
912
|
-
function
|
|
913
|
-
for (var t = {},
|
|
914
|
-
var i = n
|
|
934
|
+
function Zr(e) {
|
|
935
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
936
|
+
var i = r[n];
|
|
915
937
|
switch (i.stem) {
|
|
916
938
|
case "percent":
|
|
917
939
|
case "%":
|
|
@@ -933,7 +955,7 @@ function Wn(e) {
|
|
|
933
955
|
continue;
|
|
934
956
|
case "measure-unit":
|
|
935
957
|
case "unit":
|
|
936
|
-
t.style = "unit", t.unit =
|
|
958
|
+
t.style = "unit", t.unit = zr(i.options[0]);
|
|
937
959
|
continue;
|
|
938
960
|
case "compact-short":
|
|
939
961
|
case "K":
|
|
@@ -944,13 +966,13 @@ function Wn(e) {
|
|
|
944
966
|
t.notation = "compact", t.compactDisplay = "long";
|
|
945
967
|
continue;
|
|
946
968
|
case "scientific":
|
|
947
|
-
t =
|
|
948
|
-
return
|
|
969
|
+
t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(c, u) {
|
|
970
|
+
return B(B({}, c), en(u));
|
|
949
971
|
}, {}));
|
|
950
972
|
continue;
|
|
951
973
|
case "engineering":
|
|
952
|
-
t =
|
|
953
|
-
return
|
|
974
|
+
t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(c, u) {
|
|
975
|
+
return B(B({}, c), en(u));
|
|
954
976
|
}, {}));
|
|
955
977
|
continue;
|
|
956
978
|
case "notation-simple":
|
|
@@ -995,45 +1017,45 @@ function Wn(e) {
|
|
|
995
1017
|
case "integer-width":
|
|
996
1018
|
if (i.options.length > 1)
|
|
997
1019
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
998
|
-
i.options[0].replace(
|
|
999
|
-
if (
|
|
1000
|
-
t.minimumIntegerDigits =
|
|
1020
|
+
i.options[0].replace(Xr, function(c, u, l, f, d, y) {
|
|
1021
|
+
if (u)
|
|
1022
|
+
t.minimumIntegerDigits = l.length;
|
|
1001
1023
|
else {
|
|
1002
|
-
if (
|
|
1024
|
+
if (f && d)
|
|
1003
1025
|
throw new Error("We currently do not support maximum integer digits");
|
|
1004
|
-
if (
|
|
1026
|
+
if (y)
|
|
1005
1027
|
throw new Error("We currently do not support exact integer digits");
|
|
1006
1028
|
}
|
|
1007
1029
|
return "";
|
|
1008
1030
|
});
|
|
1009
1031
|
continue;
|
|
1010
1032
|
}
|
|
1011
|
-
if (
|
|
1033
|
+
if (Dn.test(i.stem)) {
|
|
1012
1034
|
t.minimumIntegerDigits = i.stem.length;
|
|
1013
1035
|
continue;
|
|
1014
1036
|
}
|
|
1015
|
-
if (
|
|
1037
|
+
if (Yt.test(i.stem)) {
|
|
1016
1038
|
if (i.options.length > 1)
|
|
1017
1039
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1018
|
-
i.stem.replace(
|
|
1019
|
-
return
|
|
1040
|
+
i.stem.replace(Yt, function(c, u, l, f, d, y) {
|
|
1041
|
+
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && y ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + y.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
1020
1042
|
});
|
|
1021
1043
|
var a = i.options[0];
|
|
1022
|
-
a === "w" ? t =
|
|
1044
|
+
a === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : a && (t = B(B({}, t), Kt(a)));
|
|
1023
1045
|
continue;
|
|
1024
1046
|
}
|
|
1025
|
-
if (
|
|
1026
|
-
t =
|
|
1047
|
+
if (Rn.test(i.stem)) {
|
|
1048
|
+
t = B(B({}, t), Kt(i.stem));
|
|
1027
1049
|
continue;
|
|
1028
1050
|
}
|
|
1029
|
-
var o =
|
|
1030
|
-
o && (t =
|
|
1031
|
-
var s =
|
|
1032
|
-
s && (t =
|
|
1051
|
+
var o = Un(i.stem);
|
|
1052
|
+
o && (t = B(B({}, t), o));
|
|
1053
|
+
var s = Wr(i.stem);
|
|
1054
|
+
s && (t = B(B({}, t), s));
|
|
1033
1055
|
}
|
|
1034
1056
|
return t;
|
|
1035
1057
|
}
|
|
1036
|
-
var
|
|
1058
|
+
var lt = {
|
|
1037
1059
|
"001": [
|
|
1038
1060
|
"H",
|
|
1039
1061
|
"h"
|
|
@@ -2448,22 +2470,23 @@ var st = {
|
|
|
2448
2470
|
"h"
|
|
2449
2471
|
]
|
|
2450
2472
|
};
|
|
2451
|
-
function
|
|
2452
|
-
for (var
|
|
2453
|
-
var i = e.charAt(
|
|
2473
|
+
function qr(e, t) {
|
|
2474
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
2475
|
+
var i = e.charAt(r);
|
|
2454
2476
|
if (i === "j") {
|
|
2455
|
-
for (var a = 0;
|
|
2456
|
-
a++,
|
|
2457
|
-
var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = "a",
|
|
2458
|
-
for ((
|
|
2459
|
-
|
|
2477
|
+
for (var a = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2478
|
+
a++, r++;
|
|
2479
|
+
var o = 1 + (a & 1), s = a < 2 ? 1 : 3 + (a >> 1), c = "a", u = Jr(t);
|
|
2480
|
+
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2481
|
+
n += c;
|
|
2460
2482
|
for (; o-- > 0; )
|
|
2461
|
-
|
|
2462
|
-
} else
|
|
2483
|
+
n = u + n;
|
|
2484
|
+
} else
|
|
2485
|
+
i === "J" ? n += "H" : n += i;
|
|
2463
2486
|
}
|
|
2464
|
-
return
|
|
2487
|
+
return n;
|
|
2465
2488
|
}
|
|
2466
|
-
function
|
|
2489
|
+
function Jr(e) {
|
|
2467
2490
|
var t = e.hourCycle;
|
|
2468
2491
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2469
2492
|
e.hourCycles && // @ts-ignore
|
|
@@ -2480,73 +2503,73 @@ function qn(e) {
|
|
|
2480
2503
|
default:
|
|
2481
2504
|
throw new Error("Invalid hourCycle");
|
|
2482
2505
|
}
|
|
2483
|
-
var
|
|
2484
|
-
|
|
2485
|
-
var i =
|
|
2506
|
+
var n = e.language, r;
|
|
2507
|
+
n !== "root" && (r = e.maximize().region);
|
|
2508
|
+
var i = lt[r || ""] || lt[n || ""] || lt["".concat(n, "-001")] || lt["001"];
|
|
2486
2509
|
return i[0];
|
|
2487
2510
|
}
|
|
2488
|
-
var
|
|
2489
|
-
function
|
|
2511
|
+
var At, Qr = new RegExp("^".concat(Mn.source, "*")), Yr = new RegExp("".concat(Mn.source, "*$"));
|
|
2512
|
+
function T(e, t) {
|
|
2490
2513
|
return { start: e, end: t };
|
|
2491
2514
|
}
|
|
2492
|
-
var
|
|
2515
|
+
var Kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), ei = !!String.fromCodePoint, ti = !!Object.fromEntries, ni = !!String.prototype.codePointAt, ri = !!String.prototype.trimStart, ii = !!String.prototype.trimEnd, ai = !!Number.isSafeInteger, oi = ai ? Number.isSafeInteger : function(e) {
|
|
2493
2516
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2494
|
-
},
|
|
2517
|
+
}, Nt = !0;
|
|
2495
2518
|
try {
|
|
2496
|
-
var
|
|
2497
|
-
|
|
2519
|
+
var si = Gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2520
|
+
Nt = ((At = si.exec("a")) === null || At === void 0 ? void 0 : At[0]) === "a";
|
|
2498
2521
|
} catch {
|
|
2499
|
-
|
|
2522
|
+
Nt = !1;
|
|
2500
2523
|
}
|
|
2501
|
-
var
|
|
2524
|
+
var tn = Kr ? (
|
|
2502
2525
|
// Native
|
|
2503
|
-
function(t,
|
|
2504
|
-
return t.startsWith(
|
|
2526
|
+
function(t, n, r) {
|
|
2527
|
+
return t.startsWith(n, r);
|
|
2505
2528
|
}
|
|
2506
2529
|
) : (
|
|
2507
2530
|
// For IE11
|
|
2508
|
-
function(t,
|
|
2509
|
-
return t.slice(
|
|
2531
|
+
function(t, n, r) {
|
|
2532
|
+
return t.slice(r, r + n.length) === n;
|
|
2510
2533
|
}
|
|
2511
|
-
),
|
|
2534
|
+
), Ot = ei ? String.fromCodePoint : (
|
|
2512
2535
|
// IE11
|
|
2513
2536
|
function() {
|
|
2514
|
-
for (var t = [],
|
|
2515
|
-
t[
|
|
2516
|
-
for (var
|
|
2537
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2538
|
+
t[n] = arguments[n];
|
|
2539
|
+
for (var r = "", i = t.length, a = 0, o; i > a; ) {
|
|
2517
2540
|
if (o = t[a++], o > 1114111)
|
|
2518
2541
|
throw RangeError(o + " is not a valid code point");
|
|
2519
|
-
|
|
2542
|
+
r += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
|
|
2520
2543
|
}
|
|
2521
|
-
return
|
|
2544
|
+
return r;
|
|
2522
2545
|
}
|
|
2523
|
-
),
|
|
2546
|
+
), nn = (
|
|
2524
2547
|
// native
|
|
2525
|
-
|
|
2548
|
+
ti ? Object.fromEntries : (
|
|
2526
2549
|
// Ponyfill
|
|
2527
2550
|
function(t) {
|
|
2528
|
-
for (var
|
|
2529
|
-
var a = i[
|
|
2530
|
-
|
|
2551
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2552
|
+
var a = i[r], o = a[0], s = a[1];
|
|
2553
|
+
n[o] = s;
|
|
2531
2554
|
}
|
|
2532
|
-
return
|
|
2555
|
+
return n;
|
|
2533
2556
|
}
|
|
2534
2557
|
)
|
|
2535
|
-
),
|
|
2558
|
+
), Fn = ni ? (
|
|
2536
2559
|
// Native
|
|
2537
|
-
function(t,
|
|
2538
|
-
return t.codePointAt(
|
|
2560
|
+
function(t, n) {
|
|
2561
|
+
return t.codePointAt(n);
|
|
2539
2562
|
}
|
|
2540
2563
|
) : (
|
|
2541
2564
|
// IE 11
|
|
2542
|
-
function(t,
|
|
2543
|
-
var
|
|
2544
|
-
if (!(
|
|
2545
|
-
var i = t.charCodeAt(
|
|
2546
|
-
return i < 55296 || i > 56319 ||
|
|
2565
|
+
function(t, n) {
|
|
2566
|
+
var r = t.length;
|
|
2567
|
+
if (!(n < 0 || n >= r)) {
|
|
2568
|
+
var i = t.charCodeAt(n), a;
|
|
2569
|
+
return i < 55296 || i > 56319 || n + 1 === r || (a = t.charCodeAt(n + 1)) < 56320 || a > 57343 ? i : (i - 55296 << 10) + (a - 56320) + 65536;
|
|
2547
2570
|
}
|
|
2548
2571
|
}
|
|
2549
|
-
),
|
|
2572
|
+
), li = ri ? (
|
|
2550
2573
|
// Native
|
|
2551
2574
|
function(t) {
|
|
2552
2575
|
return t.trimStart();
|
|
@@ -2554,9 +2577,9 @@ var Kt = Yn ? (
|
|
|
2554
2577
|
) : (
|
|
2555
2578
|
// Ponyfill
|
|
2556
2579
|
function(t) {
|
|
2557
|
-
return t.replace(
|
|
2580
|
+
return t.replace(Qr, "");
|
|
2558
2581
|
}
|
|
2559
|
-
), ui =
|
|
2582
|
+
), ui = ii ? (
|
|
2560
2583
|
// Native
|
|
2561
2584
|
function(t) {
|
|
2562
2585
|
return t.trimEnd();
|
|
@@ -2564,69 +2587,69 @@ var Kt = Yn ? (
|
|
|
2564
2587
|
) : (
|
|
2565
2588
|
// Ponyfill
|
|
2566
2589
|
function(t) {
|
|
2567
|
-
return t.replace(
|
|
2590
|
+
return t.replace(Yr, "");
|
|
2568
2591
|
}
|
|
2569
2592
|
);
|
|
2570
|
-
function
|
|
2593
|
+
function Gn(e, t) {
|
|
2571
2594
|
return new RegExp(e, t);
|
|
2572
2595
|
}
|
|
2573
|
-
var
|
|
2574
|
-
if (
|
|
2575
|
-
var
|
|
2576
|
-
|
|
2577
|
-
var
|
|
2578
|
-
|
|
2579
|
-
var i =
|
|
2580
|
-
return (
|
|
2596
|
+
var Lt;
|
|
2597
|
+
if (Nt) {
|
|
2598
|
+
var rn = Gn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2599
|
+
Lt = function(t, n) {
|
|
2600
|
+
var r;
|
|
2601
|
+
rn.lastIndex = n;
|
|
2602
|
+
var i = rn.exec(t);
|
|
2603
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2581
2604
|
};
|
|
2582
2605
|
} else
|
|
2583
|
-
|
|
2584
|
-
for (var
|
|
2585
|
-
var i =
|
|
2586
|
-
if (i === void 0 ||
|
|
2606
|
+
Lt = function(t, n) {
|
|
2607
|
+
for (var r = []; ; ) {
|
|
2608
|
+
var i = Fn(t, n);
|
|
2609
|
+
if (i === void 0 || kn(i) || pi(i))
|
|
2587
2610
|
break;
|
|
2588
|
-
|
|
2611
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2589
2612
|
}
|
|
2590
|
-
return
|
|
2613
|
+
return Ot.apply(void 0, r);
|
|
2591
2614
|
};
|
|
2592
|
-
var
|
|
2615
|
+
var ci = (
|
|
2593
2616
|
/** @class */
|
|
2594
2617
|
function() {
|
|
2595
|
-
function e(t,
|
|
2596
|
-
|
|
2618
|
+
function e(t, n) {
|
|
2619
|
+
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
|
|
2597
2620
|
}
|
|
2598
2621
|
return e.prototype.parse = function() {
|
|
2599
2622
|
if (this.offset() !== 0)
|
|
2600
2623
|
throw Error("parser can only be used once");
|
|
2601
2624
|
return this.parseMessage(0, "", !1);
|
|
2602
|
-
}, e.prototype.parseMessage = function(t,
|
|
2625
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2603
2626
|
for (var i = []; !this.isEOF(); ) {
|
|
2604
2627
|
var a = this.char();
|
|
2605
2628
|
if (a === 123) {
|
|
2606
|
-
var o = this.parseArgument(t,
|
|
2629
|
+
var o = this.parseArgument(t, r);
|
|
2607
2630
|
if (o.err)
|
|
2608
2631
|
return o;
|
|
2609
2632
|
i.push(o.val);
|
|
2610
2633
|
} else {
|
|
2611
2634
|
if (a === 125 && t > 0)
|
|
2612
2635
|
break;
|
|
2613
|
-
if (a === 35 && (
|
|
2636
|
+
if (a === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2614
2637
|
var s = this.clonePosition();
|
|
2615
2638
|
this.bump(), i.push({
|
|
2616
2639
|
type: C.pound,
|
|
2617
|
-
location:
|
|
2640
|
+
location: T(s, this.clonePosition())
|
|
2618
2641
|
});
|
|
2619
2642
|
} else if (a === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2620
|
-
if (
|
|
2643
|
+
if (r)
|
|
2621
2644
|
break;
|
|
2622
|
-
return this.error(
|
|
2623
|
-
} else if (a === 60 && !this.ignoreTag &&
|
|
2624
|
-
var o = this.parseTag(t,
|
|
2645
|
+
return this.error(w.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
|
|
2646
|
+
} else if (a === 60 && !this.ignoreTag && Mt(this.peek() || 0)) {
|
|
2647
|
+
var o = this.parseTag(t, n);
|
|
2625
2648
|
if (o.err)
|
|
2626
2649
|
return o;
|
|
2627
2650
|
i.push(o.val);
|
|
2628
2651
|
} else {
|
|
2629
|
-
var o = this.parseLiteral(t,
|
|
2652
|
+
var o = this.parseLiteral(t, n);
|
|
2630
2653
|
if (o.err)
|
|
2631
2654
|
return o;
|
|
2632
2655
|
i.push(o.val);
|
|
@@ -2634,8 +2657,8 @@ var li = (
|
|
|
2634
2657
|
}
|
|
2635
2658
|
}
|
|
2636
2659
|
return { val: i, err: null };
|
|
2637
|
-
}, e.prototype.parseTag = function(t,
|
|
2638
|
-
var
|
|
2660
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
2661
|
+
var r = this.clonePosition();
|
|
2639
2662
|
this.bump();
|
|
2640
2663
|
var i = this.parseTagName();
|
|
2641
2664
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
@@ -2643,45 +2666,45 @@ var li = (
|
|
|
2643
2666
|
val: {
|
|
2644
2667
|
type: C.literal,
|
|
2645
2668
|
value: "<".concat(i, "/>"),
|
|
2646
|
-
location:
|
|
2669
|
+
location: T(r, this.clonePosition())
|
|
2647
2670
|
},
|
|
2648
2671
|
err: null
|
|
2649
2672
|
};
|
|
2650
2673
|
if (this.bumpIf(">")) {
|
|
2651
|
-
var a = this.parseMessage(t + 1,
|
|
2674
|
+
var a = this.parseMessage(t + 1, n, !0);
|
|
2652
2675
|
if (a.err)
|
|
2653
2676
|
return a;
|
|
2654
2677
|
var o = a.val, s = this.clonePosition();
|
|
2655
2678
|
if (this.bumpIf("</")) {
|
|
2656
|
-
if (this.isEOF() || !
|
|
2657
|
-
return this.error(
|
|
2658
|
-
var c = this.clonePosition(),
|
|
2659
|
-
return i !==
|
|
2679
|
+
if (this.isEOF() || !Mt(this.char()))
|
|
2680
|
+
return this.error(w.INVALID_TAG, T(s, this.clonePosition()));
|
|
2681
|
+
var c = this.clonePosition(), u = this.parseTagName();
|
|
2682
|
+
return i !== u ? this.error(w.UNMATCHED_CLOSING_TAG, T(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2660
2683
|
val: {
|
|
2661
2684
|
type: C.tag,
|
|
2662
2685
|
value: i,
|
|
2663
2686
|
children: o,
|
|
2664
|
-
location:
|
|
2687
|
+
location: T(r, this.clonePosition())
|
|
2665
2688
|
},
|
|
2666
2689
|
err: null
|
|
2667
|
-
} : this.error(
|
|
2690
|
+
} : this.error(w.INVALID_TAG, T(s, this.clonePosition())));
|
|
2668
2691
|
} else
|
|
2669
|
-
return this.error(
|
|
2692
|
+
return this.error(w.UNCLOSED_TAG, T(r, this.clonePosition()));
|
|
2670
2693
|
} else
|
|
2671
|
-
return this.error(
|
|
2694
|
+
return this.error(w.INVALID_TAG, T(r, this.clonePosition()));
|
|
2672
2695
|
}, e.prototype.parseTagName = function() {
|
|
2673
2696
|
var t = this.offset();
|
|
2674
|
-
for (this.bump(); !this.isEOF() &&
|
|
2697
|
+
for (this.bump(); !this.isEOF() && fi(this.char()); )
|
|
2675
2698
|
this.bump();
|
|
2676
2699
|
return this.message.slice(t, this.offset());
|
|
2677
|
-
}, e.prototype.parseLiteral = function(t,
|
|
2678
|
-
for (var
|
|
2679
|
-
var a = this.tryParseQuote(
|
|
2700
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
2701
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2702
|
+
var a = this.tryParseQuote(n);
|
|
2680
2703
|
if (a) {
|
|
2681
2704
|
i += a;
|
|
2682
2705
|
continue;
|
|
2683
2706
|
}
|
|
2684
|
-
var o = this.tryParseUnquoted(t,
|
|
2707
|
+
var o = this.tryParseUnquoted(t, n);
|
|
2685
2708
|
if (o) {
|
|
2686
2709
|
i += o;
|
|
2687
2710
|
continue;
|
|
@@ -2693,14 +2716,14 @@ var li = (
|
|
|
2693
2716
|
}
|
|
2694
2717
|
break;
|
|
2695
2718
|
}
|
|
2696
|
-
var c =
|
|
2719
|
+
var c = T(r, this.clonePosition());
|
|
2697
2720
|
return {
|
|
2698
2721
|
val: { type: C.literal, value: i, location: c },
|
|
2699
2722
|
err: null
|
|
2700
2723
|
};
|
|
2701
2724
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2702
2725
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2703
|
-
!
|
|
2726
|
+
!hi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2704
2727
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2705
2728
|
if (this.isEOF() || this.char() !== 39)
|
|
2706
2729
|
return null;
|
|
@@ -2720,37 +2743,37 @@ var li = (
|
|
|
2720
2743
|
return null;
|
|
2721
2744
|
}
|
|
2722
2745
|
this.bump();
|
|
2723
|
-
var
|
|
2746
|
+
var n = [this.char()];
|
|
2724
2747
|
for (this.bump(); !this.isEOF(); ) {
|
|
2725
|
-
var
|
|
2726
|
-
if (
|
|
2748
|
+
var r = this.char();
|
|
2749
|
+
if (r === 39)
|
|
2727
2750
|
if (this.peek() === 39)
|
|
2728
|
-
|
|
2751
|
+
n.push(39), this.bump();
|
|
2729
2752
|
else {
|
|
2730
2753
|
this.bump();
|
|
2731
2754
|
break;
|
|
2732
2755
|
}
|
|
2733
2756
|
else
|
|
2734
|
-
|
|
2757
|
+
n.push(r);
|
|
2735
2758
|
this.bump();
|
|
2736
2759
|
}
|
|
2737
|
-
return
|
|
2738
|
-
}, e.prototype.tryParseUnquoted = function(t,
|
|
2760
|
+
return Ot.apply(void 0, n);
|
|
2761
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2739
2762
|
if (this.isEOF())
|
|
2740
2763
|
return null;
|
|
2741
|
-
var
|
|
2742
|
-
return
|
|
2743
|
-
}, e.prototype.parseArgument = function(t,
|
|
2744
|
-
var
|
|
2764
|
+
var r = this.char();
|
|
2765
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), Ot(r));
|
|
2766
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
2767
|
+
var r = this.clonePosition();
|
|
2745
2768
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2746
|
-
return this.error(
|
|
2769
|
+
return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
|
|
2747
2770
|
if (this.char() === 125)
|
|
2748
|
-
return this.bump(), this.error(
|
|
2771
|
+
return this.bump(), this.error(w.EMPTY_ARGUMENT, T(r, this.clonePosition()));
|
|
2749
2772
|
var i = this.parseIdentifierIfPossible().value;
|
|
2750
2773
|
if (!i)
|
|
2751
|
-
return this.error(
|
|
2774
|
+
return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
|
|
2752
2775
|
if (this.bumpSpace(), this.isEOF())
|
|
2753
|
-
return this.error(
|
|
2776
|
+
return this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition()));
|
|
2754
2777
|
switch (this.char()) {
|
|
2755
2778
|
case 125:
|
|
2756
2779
|
return this.bump(), {
|
|
@@ -2758,66 +2781,66 @@ var li = (
|
|
|
2758
2781
|
type: C.argument,
|
|
2759
2782
|
// value does not include the opening and closing braces.
|
|
2760
2783
|
value: i,
|
|
2761
|
-
location:
|
|
2784
|
+
location: T(r, this.clonePosition())
|
|
2762
2785
|
},
|
|
2763
2786
|
err: null
|
|
2764
2787
|
};
|
|
2765
2788
|
case 44:
|
|
2766
|
-
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(
|
|
2789
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2767
2790
|
default:
|
|
2768
|
-
return this.error(
|
|
2791
|
+
return this.error(w.MALFORMED_ARGUMENT, T(r, this.clonePosition()));
|
|
2769
2792
|
}
|
|
2770
2793
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2771
|
-
var t = this.clonePosition(),
|
|
2794
|
+
var t = this.clonePosition(), n = this.offset(), r = Lt(this.message, n), i = n + r.length;
|
|
2772
2795
|
this.bumpTo(i);
|
|
2773
|
-
var a = this.clonePosition(), o =
|
|
2774
|
-
return { value:
|
|
2775
|
-
}, e.prototype.parseArgumentOptions = function(t,
|
|
2796
|
+
var a = this.clonePosition(), o = T(t, a);
|
|
2797
|
+
return { value: r, location: o };
|
|
2798
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2776
2799
|
var a, o = this.clonePosition(), s = this.parseIdentifierIfPossible().value, c = this.clonePosition();
|
|
2777
2800
|
switch (s) {
|
|
2778
2801
|
case "":
|
|
2779
|
-
return this.error(
|
|
2802
|
+
return this.error(w.EXPECT_ARGUMENT_TYPE, T(o, c));
|
|
2780
2803
|
case "number":
|
|
2781
2804
|
case "date":
|
|
2782
2805
|
case "time": {
|
|
2783
2806
|
this.bumpSpace();
|
|
2784
|
-
var
|
|
2807
|
+
var u = null;
|
|
2785
2808
|
if (this.bumpIf(",")) {
|
|
2786
2809
|
this.bumpSpace();
|
|
2787
|
-
var
|
|
2788
|
-
if (
|
|
2789
|
-
return
|
|
2790
|
-
var d = ui(
|
|
2810
|
+
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2811
|
+
if (f.err)
|
|
2812
|
+
return f;
|
|
2813
|
+
var d = ui(f.val);
|
|
2791
2814
|
if (d.length === 0)
|
|
2792
|
-
return this.error(
|
|
2793
|
-
var
|
|
2794
|
-
|
|
2815
|
+
return this.error(w.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
|
|
2816
|
+
var y = T(l, this.clonePosition());
|
|
2817
|
+
u = { style: d, styleLocation: y };
|
|
2795
2818
|
}
|
|
2796
2819
|
var v = this.tryParseArgumentClose(i);
|
|
2797
2820
|
if (v.err)
|
|
2798
2821
|
return v;
|
|
2799
|
-
var I =
|
|
2800
|
-
if (
|
|
2801
|
-
var
|
|
2822
|
+
var I = T(i, this.clonePosition());
|
|
2823
|
+
if (u && tn(u?.style, "::", 0)) {
|
|
2824
|
+
var U = li(u.style.slice(2));
|
|
2802
2825
|
if (s === "number") {
|
|
2803
|
-
var
|
|
2804
|
-
return
|
|
2805
|
-
val: { type: C.number, value:
|
|
2826
|
+
var f = this.parseNumberSkeletonFromString(U, u.styleLocation);
|
|
2827
|
+
return f.err ? f : {
|
|
2828
|
+
val: { type: C.number, value: r, location: I, style: f.val },
|
|
2806
2829
|
err: null
|
|
2807
2830
|
};
|
|
2808
2831
|
} else {
|
|
2809
|
-
if (
|
|
2810
|
-
return this.error(
|
|
2811
|
-
var N =
|
|
2812
|
-
this.locale && (N =
|
|
2832
|
+
if (U.length === 0)
|
|
2833
|
+
return this.error(w.EXPECT_DATE_TIME_SKELETON, I);
|
|
2834
|
+
var N = U;
|
|
2835
|
+
this.locale && (N = qr(U, this.locale));
|
|
2813
2836
|
var d = {
|
|
2814
|
-
type:
|
|
2837
|
+
type: Ge.dateTime,
|
|
2815
2838
|
pattern: N,
|
|
2816
|
-
location:
|
|
2817
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2818
|
-
},
|
|
2839
|
+
location: u.styleLocation,
|
|
2840
|
+
parsedOptions: this.shouldParseSkeletons ? $r(N) : {}
|
|
2841
|
+
}, R = s === "date" ? C.date : C.time;
|
|
2819
2842
|
return {
|
|
2820
|
-
val: { type:
|
|
2843
|
+
val: { type: R, value: r, location: I, style: d },
|
|
2821
2844
|
err: null
|
|
2822
2845
|
};
|
|
2823
2846
|
}
|
|
@@ -2825,9 +2848,9 @@ var li = (
|
|
|
2825
2848
|
return {
|
|
2826
2849
|
val: {
|
|
2827
2850
|
type: s === "number" ? C.number : s === "date" ? C.date : C.time,
|
|
2828
|
-
value:
|
|
2851
|
+
value: r,
|
|
2829
2852
|
location: I,
|
|
2830
|
-
style: (a =
|
|
2853
|
+
style: (a = u?.style) !== null && a !== void 0 ? a : null
|
|
2831
2854
|
},
|
|
2832
2855
|
err: null
|
|
2833
2856
|
};
|
|
@@ -2835,61 +2858,61 @@ var li = (
|
|
|
2835
2858
|
case "plural":
|
|
2836
2859
|
case "selectordinal":
|
|
2837
2860
|
case "select": {
|
|
2838
|
-
var
|
|
2861
|
+
var D = this.clonePosition();
|
|
2839
2862
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2840
|
-
return this.error(
|
|
2863
|
+
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, T(D, B({}, D)));
|
|
2841
2864
|
this.bumpSpace();
|
|
2842
2865
|
var P = this.parseIdentifierIfPossible(), O = 0;
|
|
2843
2866
|
if (s !== "select" && P.value === "offset") {
|
|
2844
2867
|
if (!this.bumpIf(":"))
|
|
2845
|
-
return this.error(
|
|
2868
|
+
return this.error(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, T(this.clonePosition(), this.clonePosition()));
|
|
2846
2869
|
this.bumpSpace();
|
|
2847
|
-
var
|
|
2848
|
-
if (
|
|
2849
|
-
return
|
|
2850
|
-
this.bumpSpace(), P = this.parseIdentifierIfPossible(), O =
|
|
2870
|
+
var f = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, w.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2871
|
+
if (f.err)
|
|
2872
|
+
return f;
|
|
2873
|
+
this.bumpSpace(), P = this.parseIdentifierIfPossible(), O = f.val;
|
|
2851
2874
|
}
|
|
2852
|
-
var
|
|
2853
|
-
if (
|
|
2854
|
-
return
|
|
2875
|
+
var Z = this.tryParsePluralOrSelectOptions(t, s, n, P);
|
|
2876
|
+
if (Z.err)
|
|
2877
|
+
return Z;
|
|
2855
2878
|
var v = this.tryParseArgumentClose(i);
|
|
2856
2879
|
if (v.err)
|
|
2857
2880
|
return v;
|
|
2858
|
-
var
|
|
2881
|
+
var K = T(i, this.clonePosition());
|
|
2859
2882
|
return s === "select" ? {
|
|
2860
2883
|
val: {
|
|
2861
2884
|
type: C.select,
|
|
2862
|
-
value:
|
|
2863
|
-
options:
|
|
2864
|
-
location:
|
|
2885
|
+
value: r,
|
|
2886
|
+
options: nn(Z.val),
|
|
2887
|
+
location: K
|
|
2865
2888
|
},
|
|
2866
2889
|
err: null
|
|
2867
2890
|
} : {
|
|
2868
2891
|
val: {
|
|
2869
2892
|
type: C.plural,
|
|
2870
|
-
value:
|
|
2871
|
-
options:
|
|
2893
|
+
value: r,
|
|
2894
|
+
options: nn(Z.val),
|
|
2872
2895
|
offset: O,
|
|
2873
2896
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2874
|
-
location:
|
|
2897
|
+
location: K
|
|
2875
2898
|
},
|
|
2876
2899
|
err: null
|
|
2877
2900
|
};
|
|
2878
2901
|
}
|
|
2879
2902
|
default:
|
|
2880
|
-
return this.error(
|
|
2903
|
+
return this.error(w.INVALID_ARGUMENT_TYPE, T(o, c));
|
|
2881
2904
|
}
|
|
2882
2905
|
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2883
|
-
return this.isEOF() || this.char() !== 125 ? this.error(
|
|
2906
|
+
return this.isEOF() || this.char() !== 125 ? this.error(w.EXPECT_ARGUMENT_CLOSING_BRACE, T(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2884
2907
|
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2885
|
-
for (var t = 0,
|
|
2886
|
-
var
|
|
2887
|
-
switch (
|
|
2908
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2909
|
+
var r = this.char();
|
|
2910
|
+
switch (r) {
|
|
2888
2911
|
case 39: {
|
|
2889
2912
|
this.bump();
|
|
2890
2913
|
var i = this.clonePosition();
|
|
2891
2914
|
if (!this.bumpUntil("'"))
|
|
2892
|
-
return this.error(
|
|
2915
|
+
return this.error(w.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, T(i, this.clonePosition()));
|
|
2893
2916
|
this.bump();
|
|
2894
2917
|
break;
|
|
2895
2918
|
}
|
|
@@ -2902,7 +2925,7 @@ var li = (
|
|
|
2902
2925
|
t -= 1;
|
|
2903
2926
|
else
|
|
2904
2927
|
return {
|
|
2905
|
-
val: this.message.slice(
|
|
2928
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
2906
2929
|
err: null
|
|
2907
2930
|
};
|
|
2908
2931
|
break;
|
|
@@ -2913,61 +2936,61 @@ var li = (
|
|
|
2913
2936
|
}
|
|
2914
2937
|
}
|
|
2915
2938
|
return {
|
|
2916
|
-
val: this.message.slice(
|
|
2939
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
2917
2940
|
err: null
|
|
2918
2941
|
};
|
|
2919
|
-
}, e.prototype.parseNumberSkeletonFromString = function(t,
|
|
2920
|
-
var
|
|
2942
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2943
|
+
var r = [];
|
|
2921
2944
|
try {
|
|
2922
|
-
|
|
2945
|
+
r = Vr(t);
|
|
2923
2946
|
} catch {
|
|
2924
|
-
return this.error(
|
|
2947
|
+
return this.error(w.INVALID_NUMBER_SKELETON, n);
|
|
2925
2948
|
}
|
|
2926
2949
|
return {
|
|
2927
2950
|
val: {
|
|
2928
|
-
type:
|
|
2929
|
-
tokens:
|
|
2930
|
-
location:
|
|
2931
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2951
|
+
type: Ge.number,
|
|
2952
|
+
tokens: r,
|
|
2953
|
+
location: n,
|
|
2954
|
+
parsedOptions: this.shouldParseSkeletons ? Zr(r) : {}
|
|
2932
2955
|
},
|
|
2933
2956
|
err: null
|
|
2934
2957
|
};
|
|
2935
|
-
}, e.prototype.tryParsePluralOrSelectOptions = function(t,
|
|
2936
|
-
for (var a, o = !1, s = [], c = /* @__PURE__ */ new Set(),
|
|
2937
|
-
if (
|
|
2938
|
-
var
|
|
2939
|
-
if (
|
|
2940
|
-
var d = this.tryParseDecimalInteger(
|
|
2958
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2959
|
+
for (var a, o = !1, s = [], c = /* @__PURE__ */ new Set(), u = i.value, l = i.location; ; ) {
|
|
2960
|
+
if (u.length === 0) {
|
|
2961
|
+
var f = this.clonePosition();
|
|
2962
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
2963
|
+
var d = this.tryParseDecimalInteger(w.EXPECT_PLURAL_ARGUMENT_SELECTOR, w.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2941
2964
|
if (d.err)
|
|
2942
2965
|
return d;
|
|
2943
|
-
|
|
2966
|
+
l = T(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
|
|
2944
2967
|
} else
|
|
2945
2968
|
break;
|
|
2946
2969
|
}
|
|
2947
|
-
if (c.has(
|
|
2948
|
-
return this.error(
|
|
2949
|
-
|
|
2950
|
-
var
|
|
2970
|
+
if (c.has(u))
|
|
2971
|
+
return this.error(n === "select" ? w.DUPLICATE_SELECT_ARGUMENT_SELECTOR : w.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, l);
|
|
2972
|
+
u === "other" && (o = !0), this.bumpSpace();
|
|
2973
|
+
var y = this.clonePosition();
|
|
2951
2974
|
if (!this.bumpIf("{"))
|
|
2952
|
-
return this.error(
|
|
2953
|
-
var v = this.parseMessage(t + 1,
|
|
2975
|
+
return this.error(n === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : w.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, T(this.clonePosition(), this.clonePosition()));
|
|
2976
|
+
var v = this.parseMessage(t + 1, n, r);
|
|
2954
2977
|
if (v.err)
|
|
2955
2978
|
return v;
|
|
2956
|
-
var I = this.tryParseArgumentClose(
|
|
2979
|
+
var I = this.tryParseArgumentClose(y);
|
|
2957
2980
|
if (I.err)
|
|
2958
2981
|
return I;
|
|
2959
2982
|
s.push([
|
|
2960
|
-
|
|
2983
|
+
u,
|
|
2961
2984
|
{
|
|
2962
2985
|
value: v.val,
|
|
2963
|
-
location:
|
|
2986
|
+
location: T(y, this.clonePosition())
|
|
2964
2987
|
}
|
|
2965
|
-
]), c.add(
|
|
2988
|
+
]), c.add(u), this.bumpSpace(), a = this.parseIdentifierIfPossible(), u = a.value, l = a.location;
|
|
2966
2989
|
}
|
|
2967
|
-
return s.length === 0 ? this.error(
|
|
2968
|
-
}, e.prototype.tryParseDecimalInteger = function(t,
|
|
2969
|
-
var
|
|
2970
|
-
this.bumpIf("+") || this.bumpIf("-") && (
|
|
2990
|
+
return s.length === 0 ? this.error(n === "select" ? w.EXPECT_SELECT_ARGUMENT_SELECTOR : w.EXPECT_PLURAL_ARGUMENT_SELECTOR, T(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(w.MISSING_OTHER_CLAUSE, T(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
2991
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
2992
|
+
var r = 1, i = this.clonePosition();
|
|
2993
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
2971
2994
|
for (var a = !1, o = 0; !this.isEOF(); ) {
|
|
2972
2995
|
var s = this.char();
|
|
2973
2996
|
if (s >= 48 && s <= 57)
|
|
@@ -2975,8 +2998,8 @@ var li = (
|
|
|
2975
2998
|
else
|
|
2976
2999
|
break;
|
|
2977
3000
|
}
|
|
2978
|
-
var c =
|
|
2979
|
-
return a ? (o *=
|
|
3001
|
+
var c = T(i, this.clonePosition());
|
|
3002
|
+
return a ? (o *= r, oi(o) ? { val: o, err: null } : this.error(n, c)) : this.error(t, c);
|
|
2980
3003
|
}, e.prototype.offset = function() {
|
|
2981
3004
|
return this.position.offset;
|
|
2982
3005
|
}, e.prototype.isEOF = function() {
|
|
@@ -2991,17 +3014,17 @@ var li = (
|
|
|
2991
3014
|
var t = this.position.offset;
|
|
2992
3015
|
if (t >= this.message.length)
|
|
2993
3016
|
throw Error("out of bound");
|
|
2994
|
-
var
|
|
2995
|
-
if (
|
|
3017
|
+
var n = Fn(this.message, t);
|
|
3018
|
+
if (n === void 0)
|
|
2996
3019
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2997
|
-
return
|
|
2998
|
-
}, e.prototype.error = function(t,
|
|
3020
|
+
return n;
|
|
3021
|
+
}, e.prototype.error = function(t, n) {
|
|
2999
3022
|
return {
|
|
3000
3023
|
val: null,
|
|
3001
3024
|
err: {
|
|
3002
3025
|
kind: t,
|
|
3003
3026
|
message: this.message,
|
|
3004
|
-
location:
|
|
3027
|
+
location: n
|
|
3005
3028
|
}
|
|
3006
3029
|
};
|
|
3007
3030
|
}, e.prototype.bump = function() {
|
|
@@ -3010,300 +3033,301 @@ var li = (
|
|
|
3010
3033
|
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);
|
|
3011
3034
|
}
|
|
3012
3035
|
}, e.prototype.bumpIf = function(t) {
|
|
3013
|
-
if (
|
|
3014
|
-
for (var
|
|
3036
|
+
if (tn(this.message, t, this.offset())) {
|
|
3037
|
+
for (var n = 0; n < t.length; n++)
|
|
3015
3038
|
this.bump();
|
|
3016
3039
|
return !0;
|
|
3017
3040
|
}
|
|
3018
3041
|
return !1;
|
|
3019
3042
|
}, e.prototype.bumpUntil = function(t) {
|
|
3020
|
-
var
|
|
3021
|
-
return
|
|
3043
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3044
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3022
3045
|
}, e.prototype.bumpTo = function(t) {
|
|
3023
3046
|
if (this.offset() > t)
|
|
3024
3047
|
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3025
3048
|
for (t = Math.min(t, this.message.length); ; ) {
|
|
3026
|
-
var
|
|
3027
|
-
if (
|
|
3049
|
+
var n = this.offset();
|
|
3050
|
+
if (n === t)
|
|
3028
3051
|
break;
|
|
3029
|
-
if (
|
|
3052
|
+
if (n > t)
|
|
3030
3053
|
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3031
3054
|
if (this.bump(), this.isEOF())
|
|
3032
3055
|
break;
|
|
3033
3056
|
}
|
|
3034
3057
|
}, e.prototype.bumpSpace = function() {
|
|
3035
|
-
for (; !this.isEOF() &&
|
|
3058
|
+
for (; !this.isEOF() && kn(this.char()); )
|
|
3036
3059
|
this.bump();
|
|
3037
3060
|
}, e.prototype.peek = function() {
|
|
3038
3061
|
if (this.isEOF())
|
|
3039
3062
|
return null;
|
|
3040
|
-
var t = this.char(),
|
|
3041
|
-
return
|
|
3063
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3064
|
+
return r ?? null;
|
|
3042
3065
|
}, e;
|
|
3043
3066
|
}()
|
|
3044
3067
|
);
|
|
3045
|
-
function
|
|
3068
|
+
function Mt(e) {
|
|
3046
3069
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3047
3070
|
}
|
|
3048
|
-
function ci(e) {
|
|
3049
|
-
return Lt(e) || e === 47;
|
|
3050
|
-
}
|
|
3051
3071
|
function hi(e) {
|
|
3072
|
+
return Mt(e) || e === 47;
|
|
3073
|
+
}
|
|
3074
|
+
function fi(e) {
|
|
3052
3075
|
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;
|
|
3053
3076
|
}
|
|
3054
|
-
function
|
|
3077
|
+
function kn(e) {
|
|
3055
3078
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3056
3079
|
}
|
|
3057
|
-
function
|
|
3080
|
+
function pi(e) {
|
|
3058
3081
|
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;
|
|
3059
3082
|
}
|
|
3060
|
-
function
|
|
3083
|
+
function Rt(e) {
|
|
3061
3084
|
e.forEach(function(t) {
|
|
3062
|
-
if (delete t.location,
|
|
3063
|
-
for (var
|
|
3064
|
-
delete t.options[
|
|
3065
|
-
else
|
|
3085
|
+
if (delete t.location, In(t) || Nn(t))
|
|
3086
|
+
for (var n in t.options)
|
|
3087
|
+
delete t.options[n].location, Rt(t.options[n].value);
|
|
3088
|
+
else
|
|
3089
|
+
Sn(t) && Ln(t.style) || (Cn(t) || Pn(t)) && It(t.style) ? delete t.style.location : On(t) && Rt(t.children);
|
|
3066
3090
|
});
|
|
3067
3091
|
}
|
|
3068
|
-
function
|
|
3069
|
-
t === void 0 && (t = {}), t =
|
|
3070
|
-
var
|
|
3071
|
-
if (
|
|
3072
|
-
var
|
|
3073
|
-
throw
|
|
3092
|
+
function mi(e, t) {
|
|
3093
|
+
t === void 0 && (t = {}), t = B({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3094
|
+
var n = new ci(e, t).parse();
|
|
3095
|
+
if (n.err) {
|
|
3096
|
+
var r = SyntaxError(w[n.err.kind]);
|
|
3097
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3074
3098
|
}
|
|
3075
|
-
return t?.captureLocation ||
|
|
3099
|
+
return t?.captureLocation || Rt(n.val), n.val;
|
|
3076
3100
|
}
|
|
3077
|
-
var
|
|
3101
|
+
var ke;
|
|
3078
3102
|
(function(e) {
|
|
3079
3103
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3080
|
-
})(
|
|
3081
|
-
var
|
|
3104
|
+
})(ke || (ke = {}));
|
|
3105
|
+
var yt = (
|
|
3082
3106
|
/** @class */
|
|
3083
3107
|
function(e) {
|
|
3084
|
-
|
|
3085
|
-
function t(
|
|
3086
|
-
var a = e.call(this,
|
|
3087
|
-
return a.code =
|
|
3108
|
+
bt(t, e);
|
|
3109
|
+
function t(n, r, i) {
|
|
3110
|
+
var a = e.call(this, n) || this;
|
|
3111
|
+
return a.code = r, a.originalMessage = i, a;
|
|
3088
3112
|
}
|
|
3089
3113
|
return t.prototype.toString = function() {
|
|
3090
3114
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3091
3115
|
}, t;
|
|
3092
3116
|
}(Error)
|
|
3093
|
-
),
|
|
3117
|
+
), an = (
|
|
3094
3118
|
/** @class */
|
|
3095
3119
|
function(e) {
|
|
3096
|
-
|
|
3097
|
-
function t(
|
|
3098
|
-
return e.call(this, 'Invalid values for "'.concat(
|
|
3120
|
+
bt(t, e);
|
|
3121
|
+
function t(n, r, i, a) {
|
|
3122
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ke.INVALID_VALUE, a) || this;
|
|
3099
3123
|
}
|
|
3100
3124
|
return t;
|
|
3101
|
-
}(
|
|
3102
|
-
),
|
|
3125
|
+
}(yt)
|
|
3126
|
+
), di = (
|
|
3103
3127
|
/** @class */
|
|
3104
3128
|
function(e) {
|
|
3105
|
-
|
|
3106
|
-
function t(
|
|
3107
|
-
return e.call(this, 'Value for "'.concat(
|
|
3129
|
+
bt(t, e);
|
|
3130
|
+
function t(n, r, i) {
|
|
3131
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), ke.INVALID_VALUE, i) || this;
|
|
3108
3132
|
}
|
|
3109
3133
|
return t;
|
|
3110
|
-
}(
|
|
3111
|
-
),
|
|
3134
|
+
}(yt)
|
|
3135
|
+
), gi = (
|
|
3112
3136
|
/** @class */
|
|
3113
3137
|
function(e) {
|
|
3114
|
-
|
|
3115
|
-
function t(
|
|
3116
|
-
return e.call(this, 'The intl string context variable "'.concat(
|
|
3138
|
+
bt(t, e);
|
|
3139
|
+
function t(n, r) {
|
|
3140
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), ke.MISSING_VALUE, r) || this;
|
|
3117
3141
|
}
|
|
3118
3142
|
return t;
|
|
3119
|
-
}(
|
|
3120
|
-
),
|
|
3143
|
+
}(yt)
|
|
3144
|
+
), V;
|
|
3121
3145
|
(function(e) {
|
|
3122
3146
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3123
|
-
})(
|
|
3124
|
-
function
|
|
3125
|
-
return e.length < 2 ? e : e.reduce(function(t,
|
|
3126
|
-
var
|
|
3127
|
-
return !
|
|
3147
|
+
})(V || (V = {}));
|
|
3148
|
+
function bi(e) {
|
|
3149
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3150
|
+
var r = t[t.length - 1];
|
|
3151
|
+
return !r || r.type !== V.literal || n.type !== V.literal ? t.push(n) : r.value += n.value, t;
|
|
3128
3152
|
}, []);
|
|
3129
3153
|
}
|
|
3130
|
-
function
|
|
3154
|
+
function yi(e) {
|
|
3131
3155
|
return typeof e == "function";
|
|
3132
3156
|
}
|
|
3133
|
-
function
|
|
3134
|
-
if (e.length === 1 &&
|
|
3157
|
+
function ct(e, t, n, r, i, a, o) {
|
|
3158
|
+
if (e.length === 1 && Qt(e[0]))
|
|
3135
3159
|
return [
|
|
3136
3160
|
{
|
|
3137
|
-
type:
|
|
3161
|
+
type: V.literal,
|
|
3138
3162
|
value: e[0].value
|
|
3139
3163
|
}
|
|
3140
3164
|
];
|
|
3141
|
-
for (var s = [], c = 0,
|
|
3142
|
-
var
|
|
3143
|
-
if (
|
|
3165
|
+
for (var s = [], c = 0, u = e; c < u.length; c++) {
|
|
3166
|
+
var l = u[c];
|
|
3167
|
+
if (Qt(l)) {
|
|
3144
3168
|
s.push({
|
|
3145
|
-
type:
|
|
3146
|
-
value:
|
|
3169
|
+
type: V.literal,
|
|
3170
|
+
value: l.value
|
|
3147
3171
|
});
|
|
3148
3172
|
continue;
|
|
3149
3173
|
}
|
|
3150
|
-
if (
|
|
3174
|
+
if (Gr(l)) {
|
|
3151
3175
|
typeof a == "number" && s.push({
|
|
3152
|
-
type:
|
|
3153
|
-
value:
|
|
3176
|
+
type: V.literal,
|
|
3177
|
+
value: n.getNumberFormat(t).format(a)
|
|
3154
3178
|
});
|
|
3155
3179
|
continue;
|
|
3156
3180
|
}
|
|
3157
|
-
var
|
|
3158
|
-
if (!(i &&
|
|
3159
|
-
throw new
|
|
3160
|
-
var d = i[
|
|
3161
|
-
if (
|
|
3181
|
+
var f = l.value;
|
|
3182
|
+
if (!(i && f in i))
|
|
3183
|
+
throw new gi(f, o);
|
|
3184
|
+
var d = i[f];
|
|
3185
|
+
if (Fr(l)) {
|
|
3162
3186
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
|
|
3163
|
-
type: typeof d == "string" ?
|
|
3187
|
+
type: typeof d == "string" ? V.literal : V.object,
|
|
3164
3188
|
value: d
|
|
3165
3189
|
});
|
|
3166
3190
|
continue;
|
|
3167
3191
|
}
|
|
3168
|
-
if (
|
|
3169
|
-
var
|
|
3192
|
+
if (Cn(l)) {
|
|
3193
|
+
var y = typeof l.style == "string" ? r.date[l.style] : It(l.style) ? l.style.parsedOptions : void 0;
|
|
3170
3194
|
s.push({
|
|
3171
|
-
type:
|
|
3172
|
-
value:
|
|
3195
|
+
type: V.literal,
|
|
3196
|
+
value: n.getDateTimeFormat(t, y).format(d)
|
|
3173
3197
|
});
|
|
3174
3198
|
continue;
|
|
3175
3199
|
}
|
|
3176
|
-
if (
|
|
3177
|
-
var
|
|
3200
|
+
if (Pn(l)) {
|
|
3201
|
+
var y = typeof l.style == "string" ? r.time[l.style] : It(l.style) ? l.style.parsedOptions : r.time.medium;
|
|
3178
3202
|
s.push({
|
|
3179
|
-
type:
|
|
3180
|
-
value:
|
|
3203
|
+
type: V.literal,
|
|
3204
|
+
value: n.getDateTimeFormat(t, y).format(d)
|
|
3181
3205
|
});
|
|
3182
3206
|
continue;
|
|
3183
3207
|
}
|
|
3184
|
-
if (
|
|
3185
|
-
var
|
|
3186
|
-
|
|
3187
|
-
type:
|
|
3188
|
-
value:
|
|
3208
|
+
if (Sn(l)) {
|
|
3209
|
+
var y = typeof l.style == "string" ? r.number[l.style] : Ln(l.style) ? l.style.parsedOptions : void 0;
|
|
3210
|
+
y && y.scale && (d = d * (y.scale || 1)), s.push({
|
|
3211
|
+
type: V.literal,
|
|
3212
|
+
value: n.getNumberFormat(t, y).format(d)
|
|
3189
3213
|
});
|
|
3190
3214
|
continue;
|
|
3191
3215
|
}
|
|
3192
|
-
if (
|
|
3193
|
-
var v =
|
|
3194
|
-
if (!
|
|
3195
|
-
throw new
|
|
3196
|
-
var N =
|
|
3216
|
+
if (On(l)) {
|
|
3217
|
+
var v = l.children, I = l.value, U = i[I];
|
|
3218
|
+
if (!yi(U))
|
|
3219
|
+
throw new di(I, "function", o);
|
|
3220
|
+
var N = ct(v, t, n, r, i, a), R = U(N.map(function(O) {
|
|
3197
3221
|
return O.value;
|
|
3198
3222
|
}));
|
|
3199
|
-
Array.isArray(
|
|
3223
|
+
Array.isArray(R) || (R = [R]), s.push.apply(s, R.map(function(O) {
|
|
3200
3224
|
return {
|
|
3201
|
-
type: typeof O == "string" ?
|
|
3225
|
+
type: typeof O == "string" ? V.literal : V.object,
|
|
3202
3226
|
value: O
|
|
3203
3227
|
};
|
|
3204
3228
|
}));
|
|
3205
3229
|
}
|
|
3206
|
-
if (
|
|
3207
|
-
var
|
|
3208
|
-
if (!
|
|
3209
|
-
throw new
|
|
3210
|
-
s.push.apply(s,
|
|
3230
|
+
if (In(l)) {
|
|
3231
|
+
var D = l.options[d] || l.options.other;
|
|
3232
|
+
if (!D)
|
|
3233
|
+
throw new an(l.value, d, Object.keys(l.options), o);
|
|
3234
|
+
s.push.apply(s, ct(D.value, t, n, r, i));
|
|
3211
3235
|
continue;
|
|
3212
3236
|
}
|
|
3213
|
-
if (
|
|
3214
|
-
var
|
|
3215
|
-
if (!
|
|
3237
|
+
if (Nn(l)) {
|
|
3238
|
+
var D = l.options["=".concat(d)];
|
|
3239
|
+
if (!D) {
|
|
3216
3240
|
if (!Intl.PluralRules)
|
|
3217
|
-
throw new
|
|
3241
|
+
throw new yt(`Intl.PluralRules is not available in this environment.
|
|
3218
3242
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3219
|
-
`,
|
|
3220
|
-
var P =
|
|
3221
|
-
|
|
3243
|
+
`, ke.MISSING_INTL_API, o);
|
|
3244
|
+
var P = n.getPluralRules(t, { type: l.pluralType }).select(d - (l.offset || 0));
|
|
3245
|
+
D = l.options[P] || l.options.other;
|
|
3222
3246
|
}
|
|
3223
|
-
if (!
|
|
3224
|
-
throw new
|
|
3225
|
-
s.push.apply(s,
|
|
3247
|
+
if (!D)
|
|
3248
|
+
throw new an(l.value, d, Object.keys(l.options), o);
|
|
3249
|
+
s.push.apply(s, ct(D.value, t, n, r, i, d - (l.offset || 0)));
|
|
3226
3250
|
continue;
|
|
3227
3251
|
}
|
|
3228
3252
|
}
|
|
3229
|
-
return
|
|
3253
|
+
return bi(s);
|
|
3230
3254
|
}
|
|
3231
|
-
function
|
|
3232
|
-
return t ?
|
|
3233
|
-
return r
|
|
3255
|
+
function vi(e, t) {
|
|
3256
|
+
return t ? B(B(B({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3257
|
+
return n[r] = B(B({}, e[r]), t[r] || {}), n;
|
|
3234
3258
|
}, {})) : e;
|
|
3235
3259
|
}
|
|
3236
|
-
function
|
|
3237
|
-
return t ? Object.keys(e).reduce(function(
|
|
3238
|
-
return r
|
|
3239
|
-
},
|
|
3260
|
+
function xi(e, t) {
|
|
3261
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3262
|
+
return n[r] = vi(e[r], t[r]), n;
|
|
3263
|
+
}, B({}, e)) : e;
|
|
3240
3264
|
}
|
|
3241
|
-
function
|
|
3265
|
+
function Bt(e) {
|
|
3242
3266
|
return {
|
|
3243
3267
|
create: function() {
|
|
3244
3268
|
return {
|
|
3245
3269
|
get: function(t) {
|
|
3246
3270
|
return e[t];
|
|
3247
3271
|
},
|
|
3248
|
-
set: function(t,
|
|
3249
|
-
e[t] =
|
|
3272
|
+
set: function(t, n) {
|
|
3273
|
+
e[t] = n;
|
|
3250
3274
|
}
|
|
3251
3275
|
};
|
|
3252
3276
|
}
|
|
3253
3277
|
};
|
|
3254
3278
|
}
|
|
3255
|
-
function
|
|
3279
|
+
function Ei(e) {
|
|
3256
3280
|
return e === void 0 && (e = {
|
|
3257
3281
|
number: {},
|
|
3258
3282
|
dateTime: {},
|
|
3259
3283
|
pluralRules: {}
|
|
3260
3284
|
}), {
|
|
3261
|
-
getNumberFormat:
|
|
3262
|
-
for (var t,
|
|
3263
|
-
r
|
|
3264
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3285
|
+
getNumberFormat: Tt(function() {
|
|
3286
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3287
|
+
n[r] = arguments[r];
|
|
3288
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, wt([void 0], n, !1)))();
|
|
3265
3289
|
}, {
|
|
3266
|
-
cache:
|
|
3267
|
-
strategy:
|
|
3290
|
+
cache: Bt(e.number),
|
|
3291
|
+
strategy: Ht.variadic
|
|
3268
3292
|
}),
|
|
3269
|
-
getDateTimeFormat:
|
|
3270
|
-
for (var t,
|
|
3271
|
-
r
|
|
3272
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3293
|
+
getDateTimeFormat: Tt(function() {
|
|
3294
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3295
|
+
n[r] = arguments[r];
|
|
3296
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, wt([void 0], n, !1)))();
|
|
3273
3297
|
}, {
|
|
3274
|
-
cache:
|
|
3275
|
-
strategy:
|
|
3298
|
+
cache: Bt(e.dateTime),
|
|
3299
|
+
strategy: Ht.variadic
|
|
3276
3300
|
}),
|
|
3277
|
-
getPluralRules:
|
|
3278
|
-
for (var t,
|
|
3279
|
-
r
|
|
3280
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3301
|
+
getPluralRules: Tt(function() {
|
|
3302
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3303
|
+
n[r] = arguments[r];
|
|
3304
|
+
return new ((t = Intl.PluralRules).bind.apply(t, wt([void 0], n, !1)))();
|
|
3281
3305
|
}, {
|
|
3282
|
-
cache:
|
|
3283
|
-
strategy:
|
|
3306
|
+
cache: Bt(e.pluralRules),
|
|
3307
|
+
strategy: Ht.variadic
|
|
3284
3308
|
})
|
|
3285
3309
|
};
|
|
3286
3310
|
}
|
|
3287
|
-
var
|
|
3311
|
+
var _i = (
|
|
3288
3312
|
/** @class */
|
|
3289
3313
|
function() {
|
|
3290
|
-
function e(t,
|
|
3291
|
-
|
|
3314
|
+
function e(t, n, r, i) {
|
|
3315
|
+
n === void 0 && (n = e.defaultLocale);
|
|
3292
3316
|
var a = this;
|
|
3293
3317
|
if (this.formatterCache = {
|
|
3294
3318
|
number: {},
|
|
3295
3319
|
dateTime: {},
|
|
3296
3320
|
pluralRules: {}
|
|
3297
3321
|
}, this.format = function(c) {
|
|
3298
|
-
var
|
|
3299
|
-
if (
|
|
3300
|
-
return
|
|
3301
|
-
var
|
|
3302
|
-
return !
|
|
3322
|
+
var u = a.formatToParts(c);
|
|
3323
|
+
if (u.length === 1)
|
|
3324
|
+
return u[0].value;
|
|
3325
|
+
var l = u.reduce(function(f, d) {
|
|
3326
|
+
return !f.length || d.type !== V.literal || typeof f[f.length - 1] != "string" ? f.push(d.value) : f[f.length - 1] += d.value, f;
|
|
3303
3327
|
}, []);
|
|
3304
|
-
return
|
|
3328
|
+
return l.length <= 1 ? l[0] || "" : l;
|
|
3305
3329
|
}, this.formatToParts = function(c) {
|
|
3306
|
-
return
|
|
3330
|
+
return ct(a.ast, a.locales, a.formatters, a.formats, c, void 0, a.message);
|
|
3307
3331
|
}, this.resolvedOptions = function() {
|
|
3308
3332
|
var c;
|
|
3309
3333
|
return {
|
|
@@ -3311,18 +3335,18 @@ var Ei = (
|
|
|
3311
3335
|
};
|
|
3312
3336
|
}, this.getAst = function() {
|
|
3313
3337
|
return a.ast;
|
|
3314
|
-
}, this.locales =
|
|
3338
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3315
3339
|
if (this.message = t, !e.__parse)
|
|
3316
3340
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3317
3341
|
var o = i || {};
|
|
3318
3342
|
o.formatters;
|
|
3319
|
-
var s =
|
|
3320
|
-
this.ast = e.__parse(t,
|
|
3343
|
+
var s = Nr(o, ["formatters"]);
|
|
3344
|
+
this.ast = e.__parse(t, B(B({}, s), { locale: this.resolvedLocale }));
|
|
3321
3345
|
} else
|
|
3322
3346
|
this.ast = t;
|
|
3323
3347
|
if (!Array.isArray(this.ast))
|
|
3324
3348
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3325
|
-
this.formats =
|
|
3349
|
+
this.formats = xi(e.formats, r), this.formatters = i && i.formatters || Ei(this.formatterCache);
|
|
3326
3350
|
}
|
|
3327
3351
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3328
3352
|
get: function() {
|
|
@@ -3332,10 +3356,10 @@ var Ei = (
|
|
|
3332
3356
|
configurable: !0
|
|
3333
3357
|
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3334
3358
|
if (!(typeof Intl.Locale > "u")) {
|
|
3335
|
-
var
|
|
3336
|
-
return
|
|
3359
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3360
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3337
3361
|
}
|
|
3338
|
-
}, e.__parse =
|
|
3362
|
+
}, e.__parse = mi, e.formats = {
|
|
3339
3363
|
number: {
|
|
3340
3364
|
integer: {
|
|
3341
3365
|
maximumFractionDigits: 0
|
|
@@ -3396,113 +3420,113 @@ var Ei = (
|
|
|
3396
3420
|
}, e;
|
|
3397
3421
|
}()
|
|
3398
3422
|
);
|
|
3399
|
-
function
|
|
3423
|
+
function wi(e, t) {
|
|
3400
3424
|
if (t == null)
|
|
3401
3425
|
return;
|
|
3402
3426
|
if (t in e)
|
|
3403
3427
|
return e[t];
|
|
3404
|
-
const
|
|
3405
|
-
let
|
|
3406
|
-
for (let i = 0; i <
|
|
3407
|
-
if (typeof
|
|
3428
|
+
const n = t.split(".");
|
|
3429
|
+
let r = e;
|
|
3430
|
+
for (let i = 0; i < n.length; i++)
|
|
3431
|
+
if (typeof r == "object") {
|
|
3408
3432
|
if (i > 0) {
|
|
3409
|
-
const a =
|
|
3410
|
-
if (a in
|
|
3411
|
-
|
|
3433
|
+
const a = n.slice(i, n.length).join(".");
|
|
3434
|
+
if (a in r) {
|
|
3435
|
+
r = r[a];
|
|
3412
3436
|
break;
|
|
3413
3437
|
}
|
|
3414
3438
|
}
|
|
3415
|
-
|
|
3439
|
+
r = r[n[i]];
|
|
3416
3440
|
} else
|
|
3417
|
-
|
|
3418
|
-
return
|
|
3441
|
+
r = void 0;
|
|
3442
|
+
return r;
|
|
3419
3443
|
}
|
|
3420
|
-
const xe = {},
|
|
3444
|
+
const xe = {}, Ti = (e, t, n) => n && (t in xe || (xe[t] = {}), e in xe[t] || (xe[t][e] = n), n), $n = (e, t) => {
|
|
3421
3445
|
if (t == null)
|
|
3422
3446
|
return;
|
|
3423
3447
|
if (t in xe && e in xe[t])
|
|
3424
3448
|
return xe[t][e];
|
|
3425
|
-
const
|
|
3426
|
-
for (let
|
|
3427
|
-
const i = r
|
|
3449
|
+
const n = vt(t);
|
|
3450
|
+
for (let r = 0; r < n.length; r++) {
|
|
3451
|
+
const i = n[r], a = Ai(i, e);
|
|
3428
3452
|
if (a)
|
|
3429
|
-
return
|
|
3453
|
+
return Ti(e, t, a);
|
|
3430
3454
|
}
|
|
3431
3455
|
};
|
|
3432
|
-
let
|
|
3433
|
-
const
|
|
3434
|
-
function
|
|
3435
|
-
return
|
|
3456
|
+
let jt;
|
|
3457
|
+
const Ve = gt({});
|
|
3458
|
+
function Hi(e) {
|
|
3459
|
+
return jt[e] || null;
|
|
3436
3460
|
}
|
|
3437
|
-
function
|
|
3438
|
-
return e in
|
|
3461
|
+
function jn(e) {
|
|
3462
|
+
return e in jt;
|
|
3439
3463
|
}
|
|
3440
|
-
function
|
|
3441
|
-
if (!
|
|
3464
|
+
function Ai(e, t) {
|
|
3465
|
+
if (!jn(e))
|
|
3442
3466
|
return null;
|
|
3443
|
-
const
|
|
3444
|
-
return
|
|
3467
|
+
const n = Hi(e);
|
|
3468
|
+
return wi(n, t);
|
|
3445
3469
|
}
|
|
3446
|
-
function
|
|
3470
|
+
function Bi(e) {
|
|
3447
3471
|
if (e == null)
|
|
3448
3472
|
return;
|
|
3449
|
-
const t =
|
|
3450
|
-
for (let
|
|
3451
|
-
const
|
|
3452
|
-
if (
|
|
3453
|
-
return
|
|
3473
|
+
const t = vt(e);
|
|
3474
|
+
for (let n = 0; n < t.length; n++) {
|
|
3475
|
+
const r = t[n];
|
|
3476
|
+
if (jn(r))
|
|
3477
|
+
return r;
|
|
3454
3478
|
}
|
|
3455
3479
|
}
|
|
3456
|
-
function
|
|
3457
|
-
delete xe[e],
|
|
3480
|
+
function Vn(e, ...t) {
|
|
3481
|
+
delete xe[e], Ve.update((n) => (n[e] = Ir.all([n[e] || {}, ...t]), n));
|
|
3458
3482
|
}
|
|
3459
|
-
|
|
3460
|
-
[
|
|
3483
|
+
je(
|
|
3484
|
+
[Ve],
|
|
3461
3485
|
([e]) => Object.keys(e)
|
|
3462
3486
|
);
|
|
3463
|
-
|
|
3464
|
-
const
|
|
3465
|
-
function
|
|
3466
|
-
|
|
3467
|
-
}
|
|
3468
|
-
function
|
|
3469
|
-
return
|
|
3470
|
-
}
|
|
3471
|
-
function
|
|
3472
|
-
return
|
|
3473
|
-
const
|
|
3474
|
-
return [t,
|
|
3487
|
+
Ve.subscribe((e) => jt = e);
|
|
3488
|
+
const ht = {};
|
|
3489
|
+
function Si(e, t) {
|
|
3490
|
+
ht[e].delete(t), ht[e].size === 0 && delete ht[e];
|
|
3491
|
+
}
|
|
3492
|
+
function zn(e) {
|
|
3493
|
+
return ht[e];
|
|
3494
|
+
}
|
|
3495
|
+
function Ci(e) {
|
|
3496
|
+
return vt(e).map((t) => {
|
|
3497
|
+
const n = zn(t);
|
|
3498
|
+
return [t, n ? [...n] : []];
|
|
3475
3499
|
}).filter(([, t]) => t.length > 0);
|
|
3476
3500
|
}
|
|
3477
|
-
function
|
|
3478
|
-
return e == null ? !1 :
|
|
3501
|
+
function Dt(e) {
|
|
3502
|
+
return e == null ? !1 : vt(e).some(
|
|
3479
3503
|
(t) => {
|
|
3480
|
-
var
|
|
3481
|
-
return (
|
|
3504
|
+
var n;
|
|
3505
|
+
return (n = zn(t)) == null ? void 0 : n.size;
|
|
3482
3506
|
}
|
|
3483
3507
|
);
|
|
3484
3508
|
}
|
|
3485
|
-
function
|
|
3509
|
+
function Pi(e, t) {
|
|
3486
3510
|
return Promise.all(
|
|
3487
|
-
t.map((
|
|
3488
|
-
).then((
|
|
3511
|
+
t.map((r) => (Si(e, r), r().then((i) => i.default || i)))
|
|
3512
|
+
).then((r) => Vn(e, ...r));
|
|
3489
3513
|
}
|
|
3490
3514
|
const Qe = {};
|
|
3491
|
-
function
|
|
3492
|
-
if (!
|
|
3515
|
+
function Xn(e) {
|
|
3516
|
+
if (!Dt(e))
|
|
3493
3517
|
return e in Qe ? Qe[e] : Promise.resolve();
|
|
3494
|
-
const t =
|
|
3518
|
+
const t = Ci(e);
|
|
3495
3519
|
return Qe[e] = Promise.all(
|
|
3496
3520
|
t.map(
|
|
3497
|
-
([
|
|
3521
|
+
([n, r]) => Pi(n, r)
|
|
3498
3522
|
)
|
|
3499
3523
|
).then(() => {
|
|
3500
|
-
if (
|
|
3501
|
-
return
|
|
3524
|
+
if (Dt(e))
|
|
3525
|
+
return Xn(e);
|
|
3502
3526
|
delete Qe[e];
|
|
3503
3527
|
}), Qe[e];
|
|
3504
3528
|
}
|
|
3505
|
-
const
|
|
3529
|
+
const Ii = {
|
|
3506
3530
|
number: {
|
|
3507
3531
|
scientific: { notation: "scientific" },
|
|
3508
3532
|
engineering: { notation: "engineering" },
|
|
@@ -3531,183 +3555,183 @@ const Pi = {
|
|
|
3531
3555
|
timeZoneName: "short"
|
|
3532
3556
|
}
|
|
3533
3557
|
}
|
|
3534
|
-
},
|
|
3558
|
+
}, Ni = {
|
|
3535
3559
|
fallbackLocale: null,
|
|
3536
3560
|
loadingDelay: 200,
|
|
3537
|
-
formats:
|
|
3561
|
+
formats: Ii,
|
|
3538
3562
|
warnOnMissingMessages: !0,
|
|
3539
3563
|
handleMissingMessage: void 0,
|
|
3540
3564
|
ignoreTag: !0
|
|
3541
|
-
},
|
|
3542
|
-
function
|
|
3543
|
-
return
|
|
3544
|
-
}
|
|
3545
|
-
const
|
|
3546
|
-
var
|
|
3547
|
-
for (var
|
|
3548
|
-
|
|
3549
|
-
if (
|
|
3550
|
-
for (var
|
|
3551
|
-
|
|
3565
|
+
}, Oi = Ni;
|
|
3566
|
+
function $e() {
|
|
3567
|
+
return Oi;
|
|
3568
|
+
}
|
|
3569
|
+
const St = gt(!1);
|
|
3570
|
+
var Li = Object.defineProperty, Mi = Object.defineProperties, Ri = Object.getOwnPropertyDescriptors, on = Object.getOwnPropertySymbols, Di = Object.prototype.hasOwnProperty, Ui = Object.prototype.propertyIsEnumerable, sn = (e, t, n) => t in e ? Li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fi = (e, t) => {
|
|
3571
|
+
for (var n in t || (t = {}))
|
|
3572
|
+
Di.call(t, n) && sn(e, n, t[n]);
|
|
3573
|
+
if (on)
|
|
3574
|
+
for (var n of on(t))
|
|
3575
|
+
Ui.call(t, n) && sn(e, n, t[n]);
|
|
3552
3576
|
return e;
|
|
3553
|
-
},
|
|
3554
|
-
let
|
|
3555
|
-
const
|
|
3556
|
-
function
|
|
3557
|
-
return e.split("-").map((t,
|
|
3577
|
+
}, Gi = (e, t) => Mi(e, Ri(t));
|
|
3578
|
+
let Ut;
|
|
3579
|
+
const mt = gt(null);
|
|
3580
|
+
function ln(e) {
|
|
3581
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3558
3582
|
}
|
|
3559
|
-
function
|
|
3560
|
-
const
|
|
3561
|
-
return t ? [.../* @__PURE__ */ new Set([...
|
|
3583
|
+
function vt(e, t = $e().fallbackLocale) {
|
|
3584
|
+
const n = ln(e);
|
|
3585
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...ln(t)])] : n;
|
|
3562
3586
|
}
|
|
3563
|
-
function
|
|
3564
|
-
return
|
|
3587
|
+
function Be() {
|
|
3588
|
+
return Ut ?? void 0;
|
|
3565
3589
|
}
|
|
3566
|
-
|
|
3567
|
-
|
|
3590
|
+
mt.subscribe((e) => {
|
|
3591
|
+
Ut = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3568
3592
|
});
|
|
3569
|
-
const
|
|
3570
|
-
if (e &&
|
|
3571
|
-
const { loadingDelay: t } =
|
|
3572
|
-
let
|
|
3573
|
-
return typeof window < "u" &&
|
|
3574
|
-
() =>
|
|
3593
|
+
const ki = (e) => {
|
|
3594
|
+
if (e && Bi(e) && Dt(e)) {
|
|
3595
|
+
const { loadingDelay: t } = $e();
|
|
3596
|
+
let n;
|
|
3597
|
+
return typeof window < "u" && Be() != null && t ? n = window.setTimeout(
|
|
3598
|
+
() => St.set(!0),
|
|
3575
3599
|
t
|
|
3576
|
-
) :
|
|
3577
|
-
|
|
3600
|
+
) : St.set(!0), Xn(e).then(() => {
|
|
3601
|
+
mt.set(e);
|
|
3578
3602
|
}).finally(() => {
|
|
3579
|
-
clearTimeout(
|
|
3603
|
+
clearTimeout(n), St.set(!1);
|
|
3580
3604
|
});
|
|
3581
3605
|
}
|
|
3582
|
-
return
|
|
3583
|
-
}, Ee = Fi(
|
|
3584
|
-
set:
|
|
3585
|
-
}),
|
|
3606
|
+
return mt.set(e);
|
|
3607
|
+
}, Ee = Gi(Fi({}, mt), {
|
|
3608
|
+
set: ki
|
|
3609
|
+
}), xt = (e) => {
|
|
3586
3610
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3587
|
-
return (
|
|
3588
|
-
const i = JSON.stringify(
|
|
3589
|
-
return i in t ? t[i] : t[i] = e(
|
|
3611
|
+
return (r) => {
|
|
3612
|
+
const i = JSON.stringify(r);
|
|
3613
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
3590
3614
|
};
|
|
3591
3615
|
};
|
|
3592
|
-
var
|
|
3593
|
-
for (var
|
|
3594
|
-
|
|
3595
|
-
if (
|
|
3596
|
-
for (var
|
|
3597
|
-
|
|
3616
|
+
var $i = Object.defineProperty, dt = Object.getOwnPropertySymbols, Wn = Object.prototype.hasOwnProperty, Zn = Object.prototype.propertyIsEnumerable, un = (e, t, n) => t in e ? $i(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Vt = (e, t) => {
|
|
3617
|
+
for (var n in t || (t = {}))
|
|
3618
|
+
Wn.call(t, n) && un(e, n, t[n]);
|
|
3619
|
+
if (dt)
|
|
3620
|
+
for (var n of dt(t))
|
|
3621
|
+
Zn.call(t, n) && un(e, n, t[n]);
|
|
3598
3622
|
return e;
|
|
3599
|
-
},
|
|
3600
|
-
var
|
|
3601
|
-
for (var
|
|
3602
|
-
|
|
3603
|
-
if (e != null &&
|
|
3604
|
-
for (var
|
|
3605
|
-
t.indexOf(
|
|
3606
|
-
return
|
|
3623
|
+
}, ze = (e, t) => {
|
|
3624
|
+
var n = {};
|
|
3625
|
+
for (var r in e)
|
|
3626
|
+
Wn.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3627
|
+
if (e != null && dt)
|
|
3628
|
+
for (var r of dt(e))
|
|
3629
|
+
t.indexOf(r) < 0 && Zn.call(e, r) && (n[r] = e[r]);
|
|
3630
|
+
return n;
|
|
3607
3631
|
};
|
|
3608
3632
|
const tt = (e, t) => {
|
|
3609
|
-
const { formats:
|
|
3610
|
-
if (e in
|
|
3611
|
-
return
|
|
3633
|
+
const { formats: n } = $e();
|
|
3634
|
+
if (e in n && t in n[e])
|
|
3635
|
+
return n[e][t];
|
|
3612
3636
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3613
|
-
},
|
|
3637
|
+
}, ji = xt(
|
|
3614
3638
|
(e) => {
|
|
3615
|
-
var t = e, { locale:
|
|
3616
|
-
if (
|
|
3639
|
+
var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
|
|
3640
|
+
if (n == null)
|
|
3617
3641
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3618
|
-
return
|
|
3642
|
+
return r && (i = tt("number", r)), new Intl.NumberFormat(n, i);
|
|
3619
3643
|
}
|
|
3620
|
-
),
|
|
3644
|
+
), Vi = xt(
|
|
3621
3645
|
(e) => {
|
|
3622
|
-
var t = e, { locale:
|
|
3623
|
-
if (
|
|
3646
|
+
var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
|
|
3647
|
+
if (n == null)
|
|
3624
3648
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3625
|
-
return
|
|
3649
|
+
return r ? i = tt("date", r) : Object.keys(i).length === 0 && (i = tt("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3626
3650
|
}
|
|
3627
|
-
),
|
|
3651
|
+
), zi = xt(
|
|
3628
3652
|
(e) => {
|
|
3629
|
-
var t = e, { locale:
|
|
3630
|
-
if (
|
|
3653
|
+
var t = e, { locale: n, format: r } = t, i = ze(t, ["locale", "format"]);
|
|
3654
|
+
if (n == null)
|
|
3631
3655
|
throw new Error(
|
|
3632
3656
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3633
3657
|
);
|
|
3634
|
-
return
|
|
3658
|
+
return r ? i = tt("time", r) : Object.keys(i).length === 0 && (i = tt("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3635
3659
|
}
|
|
3636
|
-
),
|
|
3660
|
+
), Xi = (e = {}) => {
|
|
3637
3661
|
var t = e, {
|
|
3638
|
-
locale:
|
|
3639
|
-
} = t,
|
|
3662
|
+
locale: n = Be()
|
|
3663
|
+
} = t, r = ze(t, [
|
|
3640
3664
|
"locale"
|
|
3641
3665
|
]);
|
|
3642
|
-
return
|
|
3643
|
-
},
|
|
3666
|
+
return ji(Vt({ locale: n }, r));
|
|
3667
|
+
}, Wi = (e = {}) => {
|
|
3644
3668
|
var t = e, {
|
|
3645
|
-
locale:
|
|
3646
|
-
} = t,
|
|
3669
|
+
locale: n = Be()
|
|
3670
|
+
} = t, r = ze(t, [
|
|
3647
3671
|
"locale"
|
|
3648
3672
|
]);
|
|
3649
|
-
return
|
|
3650
|
-
},
|
|
3673
|
+
return Vi(Vt({ locale: n }, r));
|
|
3674
|
+
}, Zi = (e = {}) => {
|
|
3651
3675
|
var t = e, {
|
|
3652
|
-
locale:
|
|
3653
|
-
} = t,
|
|
3676
|
+
locale: n = Be()
|
|
3677
|
+
} = t, r = ze(t, [
|
|
3654
3678
|
"locale"
|
|
3655
3679
|
]);
|
|
3656
|
-
return
|
|
3657
|
-
},
|
|
3680
|
+
return zi(Vt({ locale: n }, r));
|
|
3681
|
+
}, qi = xt(
|
|
3658
3682
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3659
|
-
(e, t =
|
|
3660
|
-
ignoreTag:
|
|
3683
|
+
(e, t = Be()) => new _i(e, t, $e().formats, {
|
|
3684
|
+
ignoreTag: $e().ignoreTag
|
|
3661
3685
|
})
|
|
3662
|
-
),
|
|
3663
|
-
var
|
|
3686
|
+
), Ji = (e, t = {}) => {
|
|
3687
|
+
var n, r, i, a;
|
|
3664
3688
|
let o = t;
|
|
3665
3689
|
typeof e == "object" && (o = e, e = o.id);
|
|
3666
3690
|
const {
|
|
3667
3691
|
values: s,
|
|
3668
|
-
locale: c =
|
|
3669
|
-
default:
|
|
3692
|
+
locale: c = Be(),
|
|
3693
|
+
default: u
|
|
3670
3694
|
} = o;
|
|
3671
3695
|
if (c == null)
|
|
3672
3696
|
throw new Error(
|
|
3673
3697
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3674
3698
|
);
|
|
3675
|
-
let
|
|
3676
|
-
if (!
|
|
3677
|
-
|
|
3678
|
-
else if (typeof
|
|
3699
|
+
let l = $n(e, c);
|
|
3700
|
+
if (!l)
|
|
3701
|
+
l = (a = (i = (r = (n = $e()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: c, id: e, defaultValue: u })) != null ? i : u) != null ? a : e;
|
|
3702
|
+
else if (typeof l != "string")
|
|
3679
3703
|
return console.warn(
|
|
3680
|
-
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof
|
|
3681
|
-
),
|
|
3704
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3705
|
+
), l;
|
|
3682
3706
|
if (!s)
|
|
3683
|
-
return
|
|
3684
|
-
let
|
|
3707
|
+
return l;
|
|
3708
|
+
let f = l;
|
|
3685
3709
|
try {
|
|
3686
|
-
|
|
3710
|
+
f = qi(l, c).format(s);
|
|
3687
3711
|
} catch (d) {
|
|
3688
3712
|
d instanceof Error && console.warn(
|
|
3689
3713
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3690
3714
|
d.message
|
|
3691
3715
|
);
|
|
3692
3716
|
}
|
|
3693
|
-
return
|
|
3694
|
-
},
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
function
|
|
3700
|
-
Ee.subscribe((
|
|
3701
|
-
|
|
3717
|
+
return f;
|
|
3718
|
+
}, Qi = (e, t) => Zi(t).format(e), Yi = (e, t) => Wi(t).format(e), Ki = (e, t) => Xi(t).format(e), ea = (e, t = Be()) => $n(e, t), ta = je([Ee, Ve], () => Ji);
|
|
3719
|
+
je([Ee], () => Qi);
|
|
3720
|
+
je([Ee], () => Yi);
|
|
3721
|
+
je([Ee], () => Ki);
|
|
3722
|
+
je([Ee, Ve], () => ea);
|
|
3723
|
+
function na({ withLocale: e, translations: t }) {
|
|
3724
|
+
Ee.subscribe((n) => {
|
|
3725
|
+
n == null && (Ve.set(t), Ee.set(e));
|
|
3702
3726
|
});
|
|
3703
3727
|
}
|
|
3704
|
-
function
|
|
3705
|
-
|
|
3728
|
+
function cn(e, t) {
|
|
3729
|
+
Vn(e, t);
|
|
3706
3730
|
}
|
|
3707
3731
|
function ra(e) {
|
|
3708
3732
|
Ee.set(e);
|
|
3709
3733
|
}
|
|
3710
|
-
const
|
|
3734
|
+
const hn = {
|
|
3711
3735
|
en: {
|
|
3712
3736
|
vaultExchange: "Vault Exchange",
|
|
3713
3737
|
debitPlaceHolder: "Debit amount",
|
|
@@ -3756,187 +3780,187 @@ const ur = {
|
|
|
3756
3780
|
"gm.payments.internal_server_error": "Cüzdan değişiminde bir hata oluştu"
|
|
3757
3781
|
}
|
|
3758
3782
|
};
|
|
3759
|
-
function
|
|
3760
|
-
|
|
3783
|
+
function ia(e) {
|
|
3784
|
+
Qn(e, "svelte-1d83vyn", "*{margin:0;padding:0}.player-account-vault{max-width:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:auto;font-family:inherit;overflow:hidden;border:1px solid var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #22B04E) 0px 0px 10px;gap:var(--emw--spacing-medium, 15px)}.player-account-vault .playerVaultContainer{width:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:var(--emw--spacing-small, 10px);color:var(--emfe-w-pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-small, 5px);padding:var(--emw--spacing-medium, 10px);box-sizing:border-box}.player-account-vault .playerVaultContainer .balanceContainer{display:flex;flex-direction:column;justify-content:center;align-items:flex-end;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400);gap:var(--emw--spacing-small, 10px);font-family:inherit}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-large, 25px)}.player-account-vault .playerVaultContainer .headerContainer{margin-right:auto;margin-bottom:auto}.player-account-vault .playerVaultContainer .headerContainer h1{width:100%;text-align:center;font-family:inherit;font-size:var(--emw--font-size-medium, 20px);font-weight:var(--emw--font-weight-normal, 400)}.player-account-vault .containerExchanges{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;position:relative;gap:var(--emw--spacing-small, 10px);background:var(--emfe-w-color-primary, #22B04E);padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom,.player-account-vault .containerExchanges .containerExchangeTo{width:inherit;height:inherit;display:flex;flex-direction:column;justify-content:center;align-self:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .exchangeHeader,.player-account-vault .containerExchanges .containerExchangeTo .exchangeHeader{font-size:inherit;font-family:inherit;color:var(--emfe-w-color-white, #fff);font-family:inherit}.player-account-vault .containerExchanges .containerExchangeFrom .flexingContainerRow,.player-account-vault .containerExchanges .containerExchangeTo .flexingContainerRow{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:var(--emw--spacing-small, 10px)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect{display:flex;flex-direction:column;justify-content:space-evenly;align-items:center;gap:var(--emw--spacing-small, 10px);max-width:200px}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{text-align:center;padding:5px 0px;margin:0;border:2px solid var(--emw--button-border-color, #22B04E);color:var(--emfe-w-color-black, #000000)}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect input,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect input{width:100%}.player-account-vault .containerExchanges .containerExchangeFrom .containerInputSelect select,.player-account-vault .containerExchanges .containerExchangeTo .containerInputSelect select{width:100%}.player-account-vault .containerExchanges .exchangeDetailsWrapper{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 20px) var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 25px) var(--emw--spacing-medium, 10px)}.player-account-vault .containerExchanges .containerIconExchange{margin:auto;padding-top:20px}.player-account-vault .containerExchanges .containerIconExchange .iconExchange{width:20px;height:20px;transform:rotateZ(-90deg)}.player-account-vault .containerExchanges .containerIconExchange .iconExchange path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault{width:15px;height:15px;position:absolute;top:85%;right:5%;padding:var(--emw--spacing-medium, 10px);background:var(--emfe-w-color-primary, #22B04E);border:3px solid var(--emfe-w-color-white, #fff);border-radius:var(--emw--border-radius-medium, 20px);cursor:pointer}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault{transform:rotateZ(0deg);transition:all 0.3s ease-in-out}.player-account-vault .containerExchanges .containerIconVault .iconToggleVault path{fill:var(--emfe-w-color-white, #fff)}.player-account-vault .containerExchanges .containerIconVault.active .iconToggleVault{transform:rotateZ(180deg)}.player-account-vault .vaultDropDown{width:100%;height:0px;margin:0px;display:flex;flex-direction:column;box-sizing:border-box;overflow:auto;scrollbar-width:none;transition:all 0.5s ease-in-out;opacity:0;gap:var(--emw--spacing-small, 10px);font-size:var(--emw--font-size-medium, 15px);color:var(--emw--color-white, #fff);font-family:inherit}.player-account-vault .vaultDropDown div{display:inherit;flex-direction:row;justify-content:space-between;padding:var(--emw--spacing-medium, 15px) var(--emw--spacing-large, 30px);background:var(--emfe-w-color-primary, #22B04E);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px}.player-account-vault .vaultDropDown.active{padding:var(--emw--spacing-large, 20px) var(--emw--spacing-medium, 10px);opacity:1}.player-account-vault .notificationsContainer{width:100%;max-height:0px;padding:0px;box-sizing:border-box;transition:all 0.5s ease-in-out}.player-account-vault .notificationsContainer div{text-align:center;padding:var(--emw--spacing-medium, 15px);border-radius:var(--emw--border-radius-medium, 6px);box-shadow:var(--emfe-w-color-primary, #52474d) 0px 0px 6px;color:var(--emfe-w-color-white, #fff);opacity:0;transform:scale(0);transition:inherit;box-sizing:inherit;font-family:inherit}.player-account-vault .notificationsContainer .error{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909))}.player-account-vault .notificationsContainer .success{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #22B04E))}.player-account-vault .notificationsContainer .action{transform:scale(1);opacity:1;background-color:var(--emfe-w-color-success, var(--emfe-w-color-primary, #abb022))}.player-account-vault .notificationsContainer.error,.player-account-vault .notificationsContainer.success,.player-account-vault .notificationsContainer.action{max-height:200px;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer{width:100%;height:100%;display:flex;flex-direction:row;justify-content:space-between;align-items:center;box-sizing:border-box;padding:var(--emw--spacing-medium, 10px)}.player-account-vault .actionsContainer button{width:100px;height:30px;border:none;cursor:pointer;font-family:inherit;font-size:var(--emw--font-size-medium, 15px);border-radius:var(--emw--button-border-radius, 5px);background:var(--emfe-w-color-primary, #22B04E);color:var(--emfe-w-button-typography, var(--emw--button-text-color, #FFFFFF))}.player-account-vault .actionsContainer .disabled{cursor:default;background:var(--emfe-w-color-gray-150, #828282)}@media only screen and (max-width: 300px){.player-account-vault .playerVaultContainer .headerContainer h1{text-align:left;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer p{text-align:right;font-size:var(--emw--font-size-medium, 15px)}.player-account-vault .playerVaultContainer .balanceContainer .playerBalance{font-size:var(--emw--font-size-medium, 20px)}}");
|
|
3761
3785
|
}
|
|
3762
|
-
function
|
|
3763
|
-
const
|
|
3764
|
-
return
|
|
3786
|
+
function fn(e, t, n) {
|
|
3787
|
+
const r = e.slice();
|
|
3788
|
+
return r[64] = t[n], r[65] = t, r[66] = n, r;
|
|
3765
3789
|
}
|
|
3766
|
-
function
|
|
3767
|
-
const
|
|
3768
|
-
return
|
|
3790
|
+
function pn(e, t, n) {
|
|
3791
|
+
const r = e.slice();
|
|
3792
|
+
return r[67] = t[n], r;
|
|
3769
3793
|
}
|
|
3770
|
-
function
|
|
3771
|
-
const
|
|
3772
|
-
return
|
|
3794
|
+
function mn(e, t, n) {
|
|
3795
|
+
const r = e.slice();
|
|
3796
|
+
return r[67] = t[n], r;
|
|
3773
3797
|
}
|
|
3774
|
-
function
|
|
3775
|
-
let t,
|
|
3798
|
+
function dn(e) {
|
|
3799
|
+
let t, n = (
|
|
3776
3800
|
/*balance*/
|
|
3777
3801
|
e[67].currency + ""
|
|
3778
|
-
),
|
|
3802
|
+
), r, i, a;
|
|
3779
3803
|
return {
|
|
3780
3804
|
c() {
|
|
3781
|
-
t = E("option"),
|
|
3805
|
+
t = E("option"), r = k(n), i = M(), t.__value = a = /*balance*/
|
|
3782
3806
|
e[67].currency, ve(t, t.__value);
|
|
3783
3807
|
},
|
|
3784
3808
|
m(o, s) {
|
|
3785
|
-
|
|
3809
|
+
J(o, t, s), m(t, r), m(t, i);
|
|
3786
3810
|
},
|
|
3787
3811
|
p(o, s) {
|
|
3788
3812
|
s[0] & /*playerFilteredBalances*/
|
|
3789
|
-
8192 &&
|
|
3790
|
-
o[67].currency + "") &&
|
|
3813
|
+
8192 && n !== (n = /*balance*/
|
|
3814
|
+
o[67].currency + "") && X(r, n), s[0] & /*playerFilteredBalances*/
|
|
3791
3815
|
8192 && a !== (a = /*balance*/
|
|
3792
3816
|
o[67].currency) && (t.__value = a, ve(t, t.__value));
|
|
3793
3817
|
},
|
|
3794
3818
|
d(o) {
|
|
3795
|
-
o &&
|
|
3819
|
+
o && W(t);
|
|
3796
3820
|
}
|
|
3797
3821
|
};
|
|
3798
3822
|
}
|
|
3799
|
-
function
|
|
3800
|
-
let t,
|
|
3823
|
+
function gn(e) {
|
|
3824
|
+
let t, n = (
|
|
3801
3825
|
/*balance*/
|
|
3802
|
-
e[67].amount > 0 &&
|
|
3826
|
+
e[67].amount > 0 && dn(e)
|
|
3803
3827
|
);
|
|
3804
3828
|
return {
|
|
3805
3829
|
c() {
|
|
3806
|
-
|
|
3830
|
+
n && n.c(), t = wn();
|
|
3807
3831
|
},
|
|
3808
|
-
m(
|
|
3809
|
-
|
|
3832
|
+
m(r, i) {
|
|
3833
|
+
n && n.m(r, i), J(r, t, i);
|
|
3810
3834
|
},
|
|
3811
|
-
p(
|
|
3835
|
+
p(r, i) {
|
|
3812
3836
|
/*balance*/
|
|
3813
|
-
|
|
3837
|
+
r[67].amount > 0 ? n ? n.p(r, i) : (n = dn(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
3814
3838
|
},
|
|
3815
|
-
d(
|
|
3816
|
-
|
|
3839
|
+
d(r) {
|
|
3840
|
+
r && W(t), n && n.d(r);
|
|
3817
3841
|
}
|
|
3818
3842
|
};
|
|
3819
3843
|
}
|
|
3820
|
-
function
|
|
3821
|
-
let t,
|
|
3844
|
+
function bn(e) {
|
|
3845
|
+
let t, n = (
|
|
3822
3846
|
/*balance*/
|
|
3823
3847
|
e[67].currency + ""
|
|
3824
|
-
),
|
|
3848
|
+
), r, i, a;
|
|
3825
3849
|
return {
|
|
3826
3850
|
c() {
|
|
3827
|
-
t = E("option"),
|
|
3851
|
+
t = E("option"), r = k(n), i = M(), t.__value = a = /*balance*/
|
|
3828
3852
|
e[67].currency, ve(t, t.__value);
|
|
3829
3853
|
},
|
|
3830
3854
|
m(o, s) {
|
|
3831
|
-
|
|
3855
|
+
J(o, t, s), m(t, r), m(t, i);
|
|
3832
3856
|
},
|
|
3833
3857
|
p(o, s) {
|
|
3834
3858
|
s[0] & /*playerFilteredBalances*/
|
|
3835
|
-
8192 &&
|
|
3836
|
-
o[67].currency + "") &&
|
|
3859
|
+
8192 && n !== (n = /*balance*/
|
|
3860
|
+
o[67].currency + "") && X(r, n), s[0] & /*playerFilteredBalances*/
|
|
3837
3861
|
8192 && a !== (a = /*balance*/
|
|
3838
3862
|
o[67].currency) && (t.__value = a, ve(t, t.__value));
|
|
3839
3863
|
},
|
|
3840
3864
|
d(o) {
|
|
3841
|
-
o &&
|
|
3865
|
+
o && W(t);
|
|
3842
3866
|
}
|
|
3843
3867
|
};
|
|
3844
3868
|
}
|
|
3845
|
-
function
|
|
3846
|
-
let t,
|
|
3869
|
+
function yn(e) {
|
|
3870
|
+
let t, n = (
|
|
3847
3871
|
/*selectedCurrencyFrom*/
|
|
3848
3872
|
e[1] !== /*balance*/
|
|
3849
|
-
e[67].currency &&
|
|
3873
|
+
e[67].currency && bn(e)
|
|
3850
3874
|
);
|
|
3851
3875
|
return {
|
|
3852
3876
|
c() {
|
|
3853
|
-
|
|
3877
|
+
n && n.c(), t = wn();
|
|
3854
3878
|
},
|
|
3855
|
-
m(
|
|
3856
|
-
|
|
3879
|
+
m(r, i) {
|
|
3880
|
+
n && n.m(r, i), J(r, t, i);
|
|
3857
3881
|
},
|
|
3858
|
-
p(
|
|
3882
|
+
p(r, i) {
|
|
3859
3883
|
/*selectedCurrencyFrom*/
|
|
3860
|
-
|
|
3861
|
-
|
|
3884
|
+
r[1] !== /*balance*/
|
|
3885
|
+
r[67].currency ? n ? n.p(r, i) : (n = bn(r), n.c(), n.m(t.parentNode, t)) : n && (n.d(1), n = null);
|
|
3862
3886
|
},
|
|
3863
|
-
d(
|
|
3864
|
-
|
|
3887
|
+
d(r) {
|
|
3888
|
+
r && W(t), n && n.d(r);
|
|
3865
3889
|
}
|
|
3866
3890
|
};
|
|
3867
3891
|
}
|
|
3868
|
-
function
|
|
3869
|
-
let t,
|
|
3892
|
+
function vn(e) {
|
|
3893
|
+
let t, n, r = (
|
|
3870
3894
|
/*vault*/
|
|
3871
3895
|
e[64].currency + ""
|
|
3872
3896
|
), i, a, o, s = (
|
|
3873
3897
|
/*vault*/
|
|
3874
3898
|
e[64].amount + ""
|
|
3875
|
-
), c,
|
|
3899
|
+
), c, u, l = (
|
|
3876
3900
|
/*index*/
|
|
3877
3901
|
e[66]
|
|
3878
3902
|
);
|
|
3879
|
-
const
|
|
3903
|
+
const f = () => (
|
|
3880
3904
|
/*div_binding*/
|
|
3881
|
-
e[37](t,
|
|
3905
|
+
e[37](t, l)
|
|
3882
3906
|
), d = () => (
|
|
3883
3907
|
/*div_binding*/
|
|
3884
|
-
e[37](null,
|
|
3908
|
+
e[37](null, l)
|
|
3885
3909
|
);
|
|
3886
3910
|
return {
|
|
3887
3911
|
c() {
|
|
3888
|
-
t = E("div"),
|
|
3912
|
+
t = E("div"), n = E("p"), i = k(r), a = M(), o = E("p"), c = k(s), u = M(), H(t, "class", "vaultItem");
|
|
3889
3913
|
},
|
|
3890
|
-
m(
|
|
3891
|
-
|
|
3914
|
+
m(y, v) {
|
|
3915
|
+
J(y, t, v), m(t, n), m(n, i), m(t, a), m(t, o), m(o, c), m(t, u), f();
|
|
3892
3916
|
},
|
|
3893
|
-
p(
|
|
3894
|
-
e =
|
|
3895
|
-
16384 &&
|
|
3896
|
-
e[64].currency + "") &&
|
|
3917
|
+
p(y, v) {
|
|
3918
|
+
e = y, v[0] & /*dropDownVaults*/
|
|
3919
|
+
16384 && r !== (r = /*vault*/
|
|
3920
|
+
e[64].currency + "") && X(i, r), v[0] & /*dropDownVaults*/
|
|
3897
3921
|
16384 && s !== (s = /*vault*/
|
|
3898
|
-
e[64].amount + "") &&
|
|
3899
|
-
e[66] && (d(),
|
|
3900
|
-
e[66],
|
|
3922
|
+
e[64].amount + "") && X(c, s), l !== /*index*/
|
|
3923
|
+
e[66] && (d(), l = /*index*/
|
|
3924
|
+
e[66], f());
|
|
3901
3925
|
},
|
|
3902
|
-
d(
|
|
3903
|
-
|
|
3926
|
+
d(y) {
|
|
3927
|
+
y && W(t), d();
|
|
3904
3928
|
}
|
|
3905
3929
|
};
|
|
3906
3930
|
}
|
|
3907
|
-
function
|
|
3908
|
-
let t,
|
|
3931
|
+
function aa(e) {
|
|
3932
|
+
let t, n = (
|
|
3909
3933
|
/*$_*/
|
|
3910
3934
|
e[18]("Exchange") + ""
|
|
3911
|
-
),
|
|
3935
|
+
), r, i, a, o = (
|
|
3912
3936
|
/*$_*/
|
|
3913
3937
|
e[18]("Reset") + ""
|
|
3914
|
-
), s, c,
|
|
3938
|
+
), s, c, u;
|
|
3915
3939
|
return {
|
|
3916
3940
|
c() {
|
|
3917
|
-
t = E("button"),
|
|
3918
|
-
e[6],
|
|
3941
|
+
t = E("button"), r = k(n), i = M(), a = E("button"), s = k(o), t.disabled = /*exchangeDisabled*/
|
|
3942
|
+
e[6], G(
|
|
3919
3943
|
t,
|
|
3920
3944
|
"disabled",
|
|
3921
3945
|
/*exchangeDisabled*/
|
|
3922
3946
|
e[6]
|
|
3923
3947
|
), a.disabled = /*exchangeDisabled*/
|
|
3924
|
-
e[6],
|
|
3948
|
+
e[6], G(
|
|
3925
3949
|
a,
|
|
3926
3950
|
"disabled",
|
|
3927
3951
|
/*exchangeDisabled*/
|
|
3928
3952
|
e[6]
|
|
3929
3953
|
);
|
|
3930
3954
|
},
|
|
3931
|
-
m(
|
|
3932
|
-
|
|
3933
|
-
|
|
3955
|
+
m(l, f) {
|
|
3956
|
+
J(l, t, f), m(t, r), J(l, i, f), J(l, a, f), m(a, s), c || (u = [
|
|
3957
|
+
Y(
|
|
3934
3958
|
t,
|
|
3935
3959
|
"click",
|
|
3936
3960
|
/*walletExchange*/
|
|
3937
3961
|
e[21]
|
|
3938
3962
|
),
|
|
3939
|
-
|
|
3963
|
+
Y(
|
|
3940
3964
|
a,
|
|
3941
3965
|
"click",
|
|
3942
3966
|
/*resetUiToDefault*/
|
|
@@ -3944,55 +3968,55 @@ function ia(e) {
|
|
|
3944
3968
|
)
|
|
3945
3969
|
], c = !0);
|
|
3946
3970
|
},
|
|
3947
|
-
p(
|
|
3948
|
-
|
|
3949
|
-
262144 &&
|
|
3950
|
-
|
|
3971
|
+
p(l, f) {
|
|
3972
|
+
f[0] & /*$_*/
|
|
3973
|
+
262144 && n !== (n = /*$_*/
|
|
3974
|
+
l[18]("Exchange") + "") && X(r, n), f[0] & /*exchangeDisabled*/
|
|
3951
3975
|
64 && (t.disabled = /*exchangeDisabled*/
|
|
3952
|
-
|
|
3953
|
-
64 &&
|
|
3976
|
+
l[6]), f[0] & /*exchangeDisabled*/
|
|
3977
|
+
64 && G(
|
|
3954
3978
|
t,
|
|
3955
3979
|
"disabled",
|
|
3956
3980
|
/*exchangeDisabled*/
|
|
3957
|
-
|
|
3958
|
-
),
|
|
3981
|
+
l[6]
|
|
3982
|
+
), f[0] & /*$_*/
|
|
3959
3983
|
262144 && o !== (o = /*$_*/
|
|
3960
|
-
|
|
3984
|
+
l[18]("Reset") + "") && X(s, o), f[0] & /*exchangeDisabled*/
|
|
3961
3985
|
64 && (a.disabled = /*exchangeDisabled*/
|
|
3962
|
-
|
|
3963
|
-
64 &&
|
|
3986
|
+
l[6]), f[0] & /*exchangeDisabled*/
|
|
3987
|
+
64 && G(
|
|
3964
3988
|
a,
|
|
3965
3989
|
"disabled",
|
|
3966
3990
|
/*exchangeDisabled*/
|
|
3967
|
-
|
|
3991
|
+
l[6]
|
|
3968
3992
|
);
|
|
3969
3993
|
},
|
|
3970
|
-
d(
|
|
3971
|
-
|
|
3994
|
+
d(l) {
|
|
3995
|
+
l && (W(t), W(i), W(a)), c = !1, _e(u);
|
|
3972
3996
|
}
|
|
3973
3997
|
};
|
|
3974
3998
|
}
|
|
3975
|
-
function
|
|
3976
|
-
let t,
|
|
3999
|
+
function oa(e) {
|
|
4000
|
+
let t, n = (
|
|
3977
4001
|
/*$_*/
|
|
3978
4002
|
e[18]("Accept") + ""
|
|
3979
|
-
),
|
|
4003
|
+
), r, i, a, o = (
|
|
3980
4004
|
/*$_*/
|
|
3981
4005
|
e[18]("Decline") + ""
|
|
3982
|
-
), s, c,
|
|
4006
|
+
), s, c, u;
|
|
3983
4007
|
return {
|
|
3984
4008
|
c() {
|
|
3985
|
-
t = E("button"),
|
|
4009
|
+
t = E("button"), r = k(n), i = M(), a = E("button"), s = k(o);
|
|
3986
4010
|
},
|
|
3987
|
-
m(
|
|
3988
|
-
|
|
3989
|
-
|
|
4011
|
+
m(l, f) {
|
|
4012
|
+
J(l, t, f), m(t, r), J(l, i, f), J(l, a, f), m(a, s), c || (u = [
|
|
4013
|
+
Y(
|
|
3990
4014
|
t,
|
|
3991
4015
|
"click",
|
|
3992
4016
|
/*feeAcceptStep*/
|
|
3993
4017
|
e[22]
|
|
3994
4018
|
),
|
|
3995
|
-
|
|
4019
|
+
Y(
|
|
3996
4020
|
a,
|
|
3997
4021
|
"click",
|
|
3998
4022
|
/*resetUiToDefault*/
|
|
@@ -4000,452 +4024,465 @@ function aa(e) {
|
|
|
4000
4024
|
)
|
|
4001
4025
|
], c = !0);
|
|
4002
4026
|
},
|
|
4003
|
-
p(
|
|
4004
|
-
|
|
4005
|
-
262144 &&
|
|
4006
|
-
|
|
4027
|
+
p(l, f) {
|
|
4028
|
+
f[0] & /*$_*/
|
|
4029
|
+
262144 && n !== (n = /*$_*/
|
|
4030
|
+
l[18]("Accept") + "") && X(r, n), f[0] & /*$_*/
|
|
4007
4031
|
262144 && o !== (o = /*$_*/
|
|
4008
|
-
|
|
4032
|
+
l[18]("Decline") + "") && X(s, o);
|
|
4009
4033
|
},
|
|
4010
|
-
d(
|
|
4011
|
-
|
|
4034
|
+
d(l) {
|
|
4035
|
+
l && (W(t), W(i), W(a)), c = !1, _e(u);
|
|
4012
4036
|
}
|
|
4013
4037
|
};
|
|
4014
4038
|
}
|
|
4015
|
-
function
|
|
4016
|
-
let t,
|
|
4039
|
+
function sa(e) {
|
|
4040
|
+
let t, n, r, i, a = (
|
|
4017
4041
|
/*$_*/
|
|
4018
4042
|
e[18]("vaultExchange") + ""
|
|
4019
|
-
), o, s, c,
|
|
4043
|
+
), o, s, c, u, l = (
|
|
4020
4044
|
/*$_*/
|
|
4021
4045
|
e[18]("currentBalance") + ""
|
|
4022
|
-
),
|
|
4046
|
+
), f, d, y, v = (
|
|
4023
4047
|
/*playerBalance*/
|
|
4024
4048
|
e[15].amount + ""
|
|
4025
|
-
), I,
|
|
4049
|
+
), I, U, N = (
|
|
4026
4050
|
/*playerBalance*/
|
|
4027
4051
|
e[15].currency + ""
|
|
4028
|
-
),
|
|
4052
|
+
), R, D, P, O, Z, K = (
|
|
4029
4053
|
/*$_*/
|
|
4030
4054
|
e[18]("exchangeFrom") + ""
|
|
4031
|
-
),
|
|
4055
|
+
), ie, we, se, le, $, q, ue, F, Se, Q, Xe, ee, ce, he = (
|
|
4032
4056
|
/*$_*/
|
|
4033
4057
|
e[18]("exchangeTo") + ""
|
|
4034
|
-
),
|
|
4058
|
+
), We, nt, fe, j, Te, He, Ze, te, rt, pe, me, Ce, Pe, it, ne, Ie, qe, L, z, Ne, Oe = (
|
|
4035
4059
|
/*$_*/
|
|
4036
4060
|
e[18](
|
|
4037
4061
|
/*errorCode*/
|
|
4038
4062
|
e[3]
|
|
4039
4063
|
) + ""
|
|
4040
|
-
),
|
|
4064
|
+
), at, Ae, Je, ot, de = Me(
|
|
4041
4065
|
/*playerFilteredBalances*/
|
|
4042
4066
|
e[13]
|
|
4043
|
-
),
|
|
4044
|
-
for (let
|
|
4045
|
-
|
|
4046
|
-
let
|
|
4067
|
+
), h = [];
|
|
4068
|
+
for (let p = 0; p < de.length; p += 1)
|
|
4069
|
+
h[p] = gn(mn(e, de, p));
|
|
4070
|
+
let b = Me(
|
|
4047
4071
|
/*playerFilteredBalances*/
|
|
4048
4072
|
e[13]
|
|
4049
|
-
),
|
|
4050
|
-
for (let
|
|
4051
|
-
|
|
4052
|
-
let
|
|
4073
|
+
), x = [];
|
|
4074
|
+
for (let p = 0; p < b.length; p += 1)
|
|
4075
|
+
x[p] = yn(pn(e, b, p));
|
|
4076
|
+
let S = Me(
|
|
4053
4077
|
/*dropDownVaults*/
|
|
4054
4078
|
e[14]
|
|
4055
|
-
),
|
|
4056
|
-
for (let
|
|
4057
|
-
|
|
4058
|
-
function
|
|
4079
|
+
), _ = [];
|
|
4080
|
+
for (let p = 0; p < S.length; p += 1)
|
|
4081
|
+
_[p] = vn(fn(e, S, p));
|
|
4082
|
+
function ge(p, A) {
|
|
4059
4083
|
return (
|
|
4060
4084
|
/*hasTransactionFee*/
|
|
4061
|
-
|
|
4062
|
-
|
|
4085
|
+
p[12] && !/*isFeeAccepted*/
|
|
4086
|
+
p[11] ? oa : aa
|
|
4063
4087
|
);
|
|
4064
4088
|
}
|
|
4065
|
-
let
|
|
4089
|
+
let be = ge(e), ae = be(e);
|
|
4066
4090
|
return {
|
|
4067
4091
|
c() {
|
|
4068
|
-
t = E("div"),
|
|
4069
|
-
for (let
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
for (let
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
for (let
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
e[18]("debitPlaceHolder")),
|
|
4092
|
+
t = E("div"), n = E("div"), r = E("div"), i = E("h1"), o = k(a), s = M(), c = E("div"), u = E("p"), f = k(l), d = M(), y = E("p"), I = k(v), U = M(), R = k(N), D = M(), P = E("div"), O = E("div"), Z = E("p"), ie = k(K), we = M(), se = E("div"), le = E("div"), $ = E("input"), ue = M(), F = E("select");
|
|
4093
|
+
for (let p = 0; p < h.length; p += 1)
|
|
4094
|
+
h[p].c();
|
|
4095
|
+
Se = M(), Q = E("div"), Q.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="6 5 20 20" class="iconExchange"><path 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"></path></svg>', Xe = M(), ee = E("div"), ce = E("p"), We = k(he), nt = M(), fe = E("div"), j = E("input"), Ze = M(), te = E("select");
|
|
4096
|
+
for (let p = 0; p < x.length; p += 1)
|
|
4097
|
+
x[p].c();
|
|
4098
|
+
rt = M(), pe = E("div"), me = Xt("svg"), Ce = Xt("path"), it = M(), ne = E("div");
|
|
4099
|
+
for (let p = 0; p < _.length; p += 1)
|
|
4100
|
+
_[p].c();
|
|
4101
|
+
qe = M(), L = E("div"), z = E("div"), Ne = E("p"), at = M(), Ae = E("div"), ae.c(), H(r, "class", "headerContainer"), H(y, "class", "playerBalance"), H(c, "class", "balanceContainer"), H(n, "class", "playerVaultContainer"), H(Z, "class", "exchangeHeader"), H($, "placeholder", q = /*$_*/
|
|
4102
|
+
e[18]("debitPlaceHolder")), H($, "type", "number"), H($, "min", "0"), /*selectedCurrencyFrom*/
|
|
4079
4103
|
e[1] === void 0 && Ke(() => (
|
|
4080
4104
|
/*select0_change_handler*/
|
|
4081
|
-
e[33].call(
|
|
4082
|
-
)),
|
|
4083
|
-
e[4] === 0,
|
|
4084
|
-
e[18]("creditPlaceHolder")),
|
|
4105
|
+
e[33].call(F)
|
|
4106
|
+
)), H(le, "class", "containerInputSelect"), H(se, "class", "flexingContainerRow"), H(O, "class", "containerExchangeFrom"), H(Q, "class", "containerIconExchange"), H(ce, "class", "exchangeHeader"), j.disabled = Te = /*inputExchangeFrom*/
|
|
4107
|
+
e[4] === 0, H(j, "placeholder", He = /*$_*/
|
|
4108
|
+
e[18]("creditPlaceHolder")), H(j, "type", "number"), H(j, "min", "0"), j.readOnly = !0, /*selectedCurrencyTo*/
|
|
4085
4109
|
e[2] === void 0 && Ke(() => (
|
|
4086
4110
|
/*select1_change_handler*/
|
|
4087
|
-
e[35].call(
|
|
4088
|
-
)),
|
|
4111
|
+
e[35].call(te)
|
|
4112
|
+
)), H(fe, "class", "containerInputSelect"), H(ee, "class", "containerExchangeTo"), H(Ce, "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"), H(me, "xmlns", "http://www.w3.org/2000/svg"), H(me, "viewBox", "6 5 20 20"), H(me, "class", "iconToggleVault"), H(pe, "class", Pe = "containerIconVault " + /*isVaultDropDownToggled*/
|
|
4089
4113
|
(e[7] && /*dropDownVaults*/
|
|
4090
|
-
e[14].length > 0 ? "active" : "")),
|
|
4114
|
+
e[14].length > 0 ? "active" : "")), H(P, "class", "containerExchanges"), H(ne, "class", Ie = "vaultDropDown " + /*isVaultDropDownToggled*/
|
|
4091
4115
|
(e[7] && /*dropDownVaults*/
|
|
4092
|
-
e[14].length > 0 ? "active" : "")),
|
|
4093
|
-
|
|
4116
|
+
e[14].length > 0 ? "active" : "")), Wt(
|
|
4117
|
+
ne,
|
|
4094
4118
|
"height",
|
|
4095
4119
|
/*calculateHeight*/
|
|
4096
4120
|
e[0]
|
|
4097
|
-
),
|
|
4098
|
-
|
|
4121
|
+
), G(
|
|
4122
|
+
z,
|
|
4099
4123
|
"error",
|
|
4100
4124
|
/*isError*/
|
|
4101
4125
|
e[8]
|
|
4102
|
-
),
|
|
4103
|
-
|
|
4126
|
+
), G(
|
|
4127
|
+
z,
|
|
4104
4128
|
"success",
|
|
4105
4129
|
/*isSuccess*/
|
|
4106
4130
|
e[9]
|
|
4107
|
-
),
|
|
4108
|
-
|
|
4131
|
+
), G(
|
|
4132
|
+
z,
|
|
4109
4133
|
"action",
|
|
4110
4134
|
/*isAction*/
|
|
4111
4135
|
e[10]
|
|
4112
|
-
),
|
|
4113
|
-
|
|
4136
|
+
), H(L, "class", "notificationsContainer"), G(
|
|
4137
|
+
L,
|
|
4114
4138
|
"error",
|
|
4115
4139
|
/*isError*/
|
|
4116
4140
|
e[8]
|
|
4117
|
-
),
|
|
4118
|
-
|
|
4141
|
+
), G(
|
|
4142
|
+
L,
|
|
4119
4143
|
"success",
|
|
4120
4144
|
/*isSuccess*/
|
|
4121
4145
|
e[9]
|
|
4122
|
-
),
|
|
4123
|
-
|
|
4146
|
+
), G(
|
|
4147
|
+
L,
|
|
4124
4148
|
"action",
|
|
4125
4149
|
/*isAction*/
|
|
4126
4150
|
e[10]
|
|
4127
|
-
),
|
|
4151
|
+
), H(Ae, "class", "actionsContainer"), H(t, "class", "player-account-vault");
|
|
4128
4152
|
},
|
|
4129
|
-
m(
|
|
4130
|
-
|
|
4131
|
-
|
|
4153
|
+
m(p, A) {
|
|
4154
|
+
J(p, t, A), m(t, n), m(n, r), m(r, i), m(i, o), m(n, s), m(n, c), m(c, u), m(u, f), m(c, d), m(c, y), m(y, I), m(y, U), m(y, R), m(t, D), m(t, P), m(P, O), m(O, Z), m(Z, ie), m(O, we), m(O, se), m(se, le), m(le, $), ve(
|
|
4155
|
+
$,
|
|
4132
4156
|
/*inputExchangeFrom*/
|
|
4133
4157
|
e[4]
|
|
4134
|
-
), m(
|
|
4135
|
-
for (let g = 0; g <
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4158
|
+
), m(le, ue), m(le, F);
|
|
4159
|
+
for (let g = 0; g < h.length; g += 1)
|
|
4160
|
+
h[g] && h[g].m(F, null);
|
|
4161
|
+
st(
|
|
4162
|
+
F,
|
|
4139
4163
|
/*selectedCurrencyFrom*/
|
|
4140
4164
|
e[1],
|
|
4141
4165
|
!0
|
|
4142
|
-
), m(P,
|
|
4143
|
-
|
|
4166
|
+
), m(P, Se), m(P, Q), m(P, Xe), m(P, ee), m(ee, ce), m(ce, We), m(ee, nt), m(ee, fe), m(fe, j), ve(
|
|
4167
|
+
j,
|
|
4144
4168
|
/*inputExchangeTo*/
|
|
4145
4169
|
e[5]
|
|
4146
|
-
), m(
|
|
4147
|
-
for (let g = 0; g <
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4170
|
+
), m(fe, Ze), m(fe, te);
|
|
4171
|
+
for (let g = 0; g < x.length; g += 1)
|
|
4172
|
+
x[g] && x[g].m(te, null);
|
|
4173
|
+
st(
|
|
4174
|
+
te,
|
|
4151
4175
|
/*selectedCurrencyTo*/
|
|
4152
4176
|
e[2],
|
|
4153
4177
|
!0
|
|
4154
|
-
), m(P,
|
|
4155
|
-
for (let g = 0; g <
|
|
4156
|
-
|
|
4157
|
-
e[38](
|
|
4158
|
-
|
|
4159
|
-
|
|
4178
|
+
), m(P, rt), m(P, pe), m(pe, me), m(me, Ce), m(t, it), m(t, ne);
|
|
4179
|
+
for (let g = 0; g < _.length; g += 1)
|
|
4180
|
+
_[g] && _[g].m(ne, null);
|
|
4181
|
+
e[38](ne), m(t, qe), m(t, L), m(L, z), m(z, Ne), Ne.innerHTML = Oe, m(t, at), m(t, Ae), ae.m(Ae, null), Je || (ot = [
|
|
4182
|
+
Y(
|
|
4183
|
+
$,
|
|
4160
4184
|
"input",
|
|
4161
4185
|
/*input0_input_handler*/
|
|
4162
4186
|
e[32]
|
|
4163
4187
|
),
|
|
4164
|
-
|
|
4165
|
-
|
|
4188
|
+
Y(
|
|
4189
|
+
$,
|
|
4166
4190
|
"input",
|
|
4167
4191
|
/*debouncedExchangeInterogation*/
|
|
4168
4192
|
e[20]
|
|
4169
4193
|
),
|
|
4170
|
-
|
|
4171
|
-
|
|
4194
|
+
Y(
|
|
4195
|
+
F,
|
|
4172
4196
|
"change",
|
|
4173
4197
|
/*select0_change_handler*/
|
|
4174
4198
|
e[33]
|
|
4175
4199
|
),
|
|
4176
|
-
|
|
4177
|
-
|
|
4200
|
+
Y(
|
|
4201
|
+
F,
|
|
4178
4202
|
"change",
|
|
4179
4203
|
/*debouncedExchangeInterogation*/
|
|
4180
4204
|
e[20]
|
|
4181
4205
|
),
|
|
4182
|
-
|
|
4183
|
-
|
|
4206
|
+
Y(
|
|
4207
|
+
j,
|
|
4184
4208
|
"input",
|
|
4185
4209
|
/*input1_input_handler*/
|
|
4186
4210
|
e[34]
|
|
4187
4211
|
),
|
|
4188
|
-
|
|
4189
|
-
|
|
4212
|
+
Y(
|
|
4213
|
+
te,
|
|
4190
4214
|
"change",
|
|
4191
4215
|
/*select1_change_handler*/
|
|
4192
4216
|
e[35]
|
|
4193
4217
|
),
|
|
4194
|
-
|
|
4195
|
-
|
|
4218
|
+
Y(
|
|
4219
|
+
te,
|
|
4196
4220
|
"change",
|
|
4197
4221
|
/*debouncedExchangeInterogation*/
|
|
4198
4222
|
e[20]
|
|
4199
4223
|
),
|
|
4200
|
-
|
|
4201
|
-
|
|
4224
|
+
Y(
|
|
4225
|
+
pe,
|
|
4202
4226
|
"click",
|
|
4203
4227
|
/*click_handler*/
|
|
4204
4228
|
e[36]
|
|
4205
4229
|
)
|
|
4206
|
-
],
|
|
4230
|
+
], Je = !0);
|
|
4207
4231
|
},
|
|
4208
|
-
p(
|
|
4209
|
-
if (
|
|
4232
|
+
p(p, A) {
|
|
4233
|
+
if (A[0] & /*$_*/
|
|
4210
4234
|
262144 && a !== (a = /*$_*/
|
|
4211
|
-
|
|
4212
|
-
262144 &&
|
|
4213
|
-
|
|
4235
|
+
p[18]("vaultExchange") + "") && X(o, a), A[0] & /*$_*/
|
|
4236
|
+
262144 && l !== (l = /*$_*/
|
|
4237
|
+
p[18]("currentBalance") + "") && X(f, l), A[0] & /*playerBalance*/
|
|
4214
4238
|
32768 && v !== (v = /*playerBalance*/
|
|
4215
|
-
|
|
4239
|
+
p[15].amount + "") && X(I, v), A[0] & /*playerBalance*/
|
|
4216
4240
|
32768 && N !== (N = /*playerBalance*/
|
|
4217
|
-
|
|
4218
|
-
262144 &&
|
|
4219
|
-
|
|
4220
|
-
262144 &&
|
|
4221
|
-
|
|
4222
|
-
16 &&
|
|
4223
|
-
|
|
4224
|
-
|
|
4241
|
+
p[15].currency + "") && X(R, N), A[0] & /*$_*/
|
|
4242
|
+
262144 && K !== (K = /*$_*/
|
|
4243
|
+
p[18]("exchangeFrom") + "") && X(ie, K), A[0] & /*$_*/
|
|
4244
|
+
262144 && q !== (q = /*$_*/
|
|
4245
|
+
p[18]("debitPlaceHolder")) && H($, "placeholder", q), A[0] & /*inputExchangeFrom*/
|
|
4246
|
+
16 && ft($.value) !== /*inputExchangeFrom*/
|
|
4247
|
+
p[4] && ve(
|
|
4248
|
+
$,
|
|
4225
4249
|
/*inputExchangeFrom*/
|
|
4226
|
-
|
|
4227
|
-
),
|
|
4250
|
+
p[4]
|
|
4251
|
+
), A[0] & /*playerFilteredBalances*/
|
|
4228
4252
|
8192) {
|
|
4229
|
-
|
|
4253
|
+
de = Me(
|
|
4230
4254
|
/*playerFilteredBalances*/
|
|
4231
|
-
|
|
4255
|
+
p[13]
|
|
4232
4256
|
);
|
|
4233
4257
|
let g;
|
|
4234
|
-
for (g = 0; g <
|
|
4235
|
-
const ye =
|
|
4236
|
-
|
|
4258
|
+
for (g = 0; g < de.length; g += 1) {
|
|
4259
|
+
const ye = mn(p, de, g);
|
|
4260
|
+
h[g] ? h[g].p(ye, A) : (h[g] = gn(ye), h[g].c(), h[g].m(F, null));
|
|
4237
4261
|
}
|
|
4238
|
-
for (; g <
|
|
4239
|
-
|
|
4240
|
-
|
|
4262
|
+
for (; g < h.length; g += 1)
|
|
4263
|
+
h[g].d(1);
|
|
4264
|
+
h.length = de.length;
|
|
4241
4265
|
}
|
|
4242
|
-
if (
|
|
4243
|
-
8194 &&
|
|
4244
|
-
|
|
4266
|
+
if (A[0] & /*selectedCurrencyFrom, playerFilteredBalances*/
|
|
4267
|
+
8194 && st(
|
|
4268
|
+
F,
|
|
4245
4269
|
/*selectedCurrencyFrom*/
|
|
4246
|
-
|
|
4247
|
-
),
|
|
4248
|
-
262144 &&
|
|
4249
|
-
|
|
4250
|
-
16 &&
|
|
4251
|
-
|
|
4252
|
-
262144 &&
|
|
4253
|
-
|
|
4254
|
-
32 &&
|
|
4255
|
-
|
|
4256
|
-
|
|
4270
|
+
p[1]
|
|
4271
|
+
), A[0] & /*$_*/
|
|
4272
|
+
262144 && he !== (he = /*$_*/
|
|
4273
|
+
p[18]("exchangeTo") + "") && X(We, he), A[0] & /*inputExchangeFrom*/
|
|
4274
|
+
16 && Te !== (Te = /*inputExchangeFrom*/
|
|
4275
|
+
p[4] === 0) && (j.disabled = Te), A[0] & /*$_*/
|
|
4276
|
+
262144 && He !== (He = /*$_*/
|
|
4277
|
+
p[18]("creditPlaceHolder")) && H(j, "placeholder", He), A[0] & /*inputExchangeTo*/
|
|
4278
|
+
32 && ft(j.value) !== /*inputExchangeTo*/
|
|
4279
|
+
p[5] && ve(
|
|
4280
|
+
j,
|
|
4257
4281
|
/*inputExchangeTo*/
|
|
4258
|
-
|
|
4259
|
-
),
|
|
4282
|
+
p[5]
|
|
4283
|
+
), A[0] & /*playerFilteredBalances, selectedCurrencyFrom*/
|
|
4260
4284
|
8194) {
|
|
4261
|
-
|
|
4285
|
+
b = Me(
|
|
4262
4286
|
/*playerFilteredBalances*/
|
|
4263
|
-
|
|
4287
|
+
p[13]
|
|
4264
4288
|
);
|
|
4265
4289
|
let g;
|
|
4266
|
-
for (g = 0; g <
|
|
4267
|
-
const ye =
|
|
4268
|
-
|
|
4290
|
+
for (g = 0; g < b.length; g += 1) {
|
|
4291
|
+
const ye = pn(p, b, g);
|
|
4292
|
+
x[g] ? x[g].p(ye, A) : (x[g] = yn(ye), x[g].c(), x[g].m(te, null));
|
|
4269
4293
|
}
|
|
4270
|
-
for (; g <
|
|
4271
|
-
|
|
4272
|
-
|
|
4294
|
+
for (; g < x.length; g += 1)
|
|
4295
|
+
x[g].d(1);
|
|
4296
|
+
x.length = b.length;
|
|
4273
4297
|
}
|
|
4274
|
-
if (
|
|
4275
|
-
8196 &&
|
|
4276
|
-
|
|
4298
|
+
if (A[0] & /*selectedCurrencyTo, playerFilteredBalances*/
|
|
4299
|
+
8196 && st(
|
|
4300
|
+
te,
|
|
4277
4301
|
/*selectedCurrencyTo*/
|
|
4278
|
-
|
|
4279
|
-
),
|
|
4302
|
+
p[2]
|
|
4303
|
+
), A[0] & /*isVaultDropDownToggled, dropDownVaults*/
|
|
4280
4304
|
16512 && Pe !== (Pe = "containerIconVault " + /*isVaultDropDownToggled*/
|
|
4281
|
-
(
|
|
4282
|
-
|
|
4305
|
+
(p[7] && /*dropDownVaults*/
|
|
4306
|
+
p[14].length > 0 ? "active" : "")) && H(pe, "class", Pe), A[0] & /*elements, dropDownVaults*/
|
|
4283
4307
|
147456) {
|
|
4284
|
-
|
|
4308
|
+
S = Me(
|
|
4285
4309
|
/*dropDownVaults*/
|
|
4286
|
-
|
|
4310
|
+
p[14]
|
|
4287
4311
|
);
|
|
4288
4312
|
let g;
|
|
4289
|
-
for (g = 0; g <
|
|
4290
|
-
const ye =
|
|
4291
|
-
|
|
4313
|
+
for (g = 0; g < S.length; g += 1) {
|
|
4314
|
+
const ye = fn(p, S, g);
|
|
4315
|
+
_[g] ? _[g].p(ye, A) : (_[g] = vn(ye), _[g].c(), _[g].m(ne, null));
|
|
4292
4316
|
}
|
|
4293
|
-
for (; g <
|
|
4294
|
-
|
|
4295
|
-
|
|
4317
|
+
for (; g < _.length; g += 1)
|
|
4318
|
+
_[g].d(1);
|
|
4319
|
+
_.length = S.length;
|
|
4296
4320
|
}
|
|
4297
|
-
|
|
4298
|
-
16512 &&
|
|
4299
|
-
(
|
|
4300
|
-
|
|
4301
|
-
1 &&
|
|
4302
|
-
|
|
4321
|
+
A[0] & /*isVaultDropDownToggled, dropDownVaults*/
|
|
4322
|
+
16512 && Ie !== (Ie = "vaultDropDown " + /*isVaultDropDownToggled*/
|
|
4323
|
+
(p[7] && /*dropDownVaults*/
|
|
4324
|
+
p[14].length > 0 ? "active" : "")) && H(ne, "class", Ie), A[0] & /*calculateHeight*/
|
|
4325
|
+
1 && Wt(
|
|
4326
|
+
ne,
|
|
4303
4327
|
"height",
|
|
4304
4328
|
/*calculateHeight*/
|
|
4305
|
-
|
|
4306
|
-
),
|
|
4307
|
-
262152 &&
|
|
4308
|
-
|
|
4329
|
+
p[0]
|
|
4330
|
+
), A[0] & /*$_, errorCode*/
|
|
4331
|
+
262152 && Oe !== (Oe = /*$_*/
|
|
4332
|
+
p[18](
|
|
4309
4333
|
/*errorCode*/
|
|
4310
|
-
|
|
4311
|
-
) + "") && (
|
|
4312
|
-
256 &&
|
|
4313
|
-
|
|
4334
|
+
p[3]
|
|
4335
|
+
) + "") && (Ne.innerHTML = Oe), A[0] & /*isError*/
|
|
4336
|
+
256 && G(
|
|
4337
|
+
z,
|
|
4314
4338
|
"error",
|
|
4315
4339
|
/*isError*/
|
|
4316
|
-
|
|
4317
|
-
),
|
|
4318
|
-
512 &&
|
|
4319
|
-
|
|
4340
|
+
p[8]
|
|
4341
|
+
), A[0] & /*isSuccess*/
|
|
4342
|
+
512 && G(
|
|
4343
|
+
z,
|
|
4320
4344
|
"success",
|
|
4321
4345
|
/*isSuccess*/
|
|
4322
|
-
|
|
4323
|
-
),
|
|
4324
|
-
1024 &&
|
|
4325
|
-
|
|
4346
|
+
p[9]
|
|
4347
|
+
), A[0] & /*isAction*/
|
|
4348
|
+
1024 && G(
|
|
4349
|
+
z,
|
|
4326
4350
|
"action",
|
|
4327
4351
|
/*isAction*/
|
|
4328
|
-
|
|
4329
|
-
),
|
|
4330
|
-
256 &&
|
|
4331
|
-
|
|
4352
|
+
p[10]
|
|
4353
|
+
), A[0] & /*isError*/
|
|
4354
|
+
256 && G(
|
|
4355
|
+
L,
|
|
4332
4356
|
"error",
|
|
4333
4357
|
/*isError*/
|
|
4334
|
-
|
|
4335
|
-
),
|
|
4336
|
-
512 &&
|
|
4337
|
-
|
|
4358
|
+
p[8]
|
|
4359
|
+
), A[0] & /*isSuccess*/
|
|
4360
|
+
512 && G(
|
|
4361
|
+
L,
|
|
4338
4362
|
"success",
|
|
4339
4363
|
/*isSuccess*/
|
|
4340
|
-
|
|
4341
|
-
),
|
|
4342
|
-
1024 &&
|
|
4343
|
-
|
|
4364
|
+
p[9]
|
|
4365
|
+
), A[0] & /*isAction*/
|
|
4366
|
+
1024 && G(
|
|
4367
|
+
L,
|
|
4344
4368
|
"action",
|
|
4345
4369
|
/*isAction*/
|
|
4346
|
-
|
|
4347
|
-
),
|
|
4370
|
+
p[10]
|
|
4371
|
+
), be === (be = ge(p)) && ae ? ae.p(p, A) : (ae.d(1), ae = be(p), ae && (ae.c(), ae.m(Ae, null)));
|
|
4348
4372
|
},
|
|
4349
|
-
i:
|
|
4350
|
-
o:
|
|
4351
|
-
d(
|
|
4352
|
-
|
|
4373
|
+
i: re,
|
|
4374
|
+
o: re,
|
|
4375
|
+
d(p) {
|
|
4376
|
+
p && W(t), Et(h, p), Et(x, p), Et(_, p), e[38](null), ae.d(), Je = !1, _e(ot);
|
|
4353
4377
|
}
|
|
4354
4378
|
};
|
|
4355
4379
|
}
|
|
4356
|
-
function
|
|
4357
|
-
let
|
|
4358
|
-
return function(...
|
|
4359
|
-
|
|
4380
|
+
function la(e, t) {
|
|
4381
|
+
let n;
|
|
4382
|
+
return function(...r) {
|
|
4383
|
+
n && clearTimeout(n), n = setTimeout(
|
|
4360
4384
|
() => {
|
|
4361
|
-
e.apply(
|
|
4385
|
+
e.apply(r);
|
|
4362
4386
|
},
|
|
4363
4387
|
t
|
|
4364
4388
|
);
|
|
4365
4389
|
};
|
|
4366
4390
|
}
|
|
4367
|
-
function ua(e, t,
|
|
4368
|
-
let
|
|
4369
|
-
|
|
4370
|
-
let { session: i = "", userid: a = "", endpoint: o = "", lang: s = "en" } = t, { clientstyling: c = "", clientstylingurl:
|
|
4371
|
-
const
|
|
4391
|
+
function ua(e, t, n) {
|
|
4392
|
+
let r;
|
|
4393
|
+
Jn(e, ta, (h) => n(18, r = h));
|
|
4394
|
+
let { session: i = "", userid: a = "", endpoint: o = "", lang: s = "en" } = t, { clientstyling: c = "", clientstylingurl: u = "", translationurl: l = "" } = t, { playercurrency: f = "" } = t, d = "", y = "", v = "", I = "", U = "", N = 0, R = 0, D = 0, P = !0, O = !1, Z = !1, K = !1, ie = !1, we = !0, se = !1, le = [], $ = [], q = [], ue = [], F = [], Se = [], Q = {}, Xe = {}, ee, ce = null, he = [];
|
|
4395
|
+
const We = () => {
|
|
4372
4396
|
ra(s);
|
|
4373
4397
|
};
|
|
4374
|
-
|
|
4375
|
-
const
|
|
4376
|
-
fetch(
|
|
4377
|
-
Object.keys(
|
|
4378
|
-
|
|
4398
|
+
na({ withLocale: "en", translations: {} });
|
|
4399
|
+
const nt = () => {
|
|
4400
|
+
fetch(l).then((b) => b.json()).then((b) => {
|
|
4401
|
+
Object.keys(b).forEach((x) => {
|
|
4402
|
+
cn(x, b[x]);
|
|
4379
4403
|
});
|
|
4380
|
-
}).catch((
|
|
4381
|
-
console.error("There was a problem with the translations request.",
|
|
4404
|
+
}).catch((b) => {
|
|
4405
|
+
console.error("There was a problem with the translations request.", b);
|
|
4382
4406
|
});
|
|
4383
4407
|
};
|
|
4384
|
-
Object.keys(
|
|
4385
|
-
|
|
4408
|
+
Object.keys(hn).forEach((h) => {
|
|
4409
|
+
cn(h, hn[h]);
|
|
4386
4410
|
});
|
|
4387
|
-
const
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4411
|
+
const fe = () => {
|
|
4412
|
+
let h = document.createElement("style");
|
|
4413
|
+
h.innerHTML = c, ee.appendChild(h);
|
|
4414
|
+
}, j = () => {
|
|
4415
|
+
let h = new URL(u), b = document.createElement("style");
|
|
4416
|
+
fetch(h.href).then((x) => x.text()).then((x) => {
|
|
4417
|
+
b.innerHTML = x, setTimeout(
|
|
4418
|
+
() => {
|
|
4419
|
+
ee.appendChild(b);
|
|
4420
|
+
},
|
|
4421
|
+
1
|
|
4422
|
+
);
|
|
4423
|
+
});
|
|
4424
|
+
}, Te = (h) => {
|
|
4425
|
+
O && F.length === 0 || (h.preventDefault(), n(7, O = !O), n(0, d = O ? He() : "0px"));
|
|
4426
|
+
}, He = () => {
|
|
4427
|
+
if (F.length === 0)
|
|
4428
|
+
return n(0, d = "0px");
|
|
4429
|
+
const h = he[0]?.clientHeight, b = F.length, x = 30, S = parseFloat(getComputedStyle(ce).getPropertyValue("gap"));
|
|
4430
|
+
return n(0, d = `${b * h + b * S + x}px`);
|
|
4431
|
+
}, Ze = () => new Promise((h, b) => {
|
|
4432
|
+
let x = new URL(`${o}/v2/player/${a}/balance`);
|
|
4433
|
+
fetch(x, {
|
|
4397
4434
|
method: "GET",
|
|
4398
4435
|
headers: {
|
|
4399
4436
|
"X-SessionID": i,
|
|
4400
4437
|
"Content-Type": "application/json",
|
|
4401
4438
|
Accept: "application/json"
|
|
4402
4439
|
}
|
|
4403
|
-
}).then((
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
}),
|
|
4440
|
+
}).then((_) => z(_)).then((_) => {
|
|
4441
|
+
_ && (n(13, q = []), $ = [], ue = [], n(14, F = []), le = _.items, rt().then((ge) => {
|
|
4442
|
+
ge.forEach((be) => {
|
|
4443
|
+
Se.push(be.code);
|
|
4444
|
+
}), te(_), h();
|
|
4408
4445
|
}));
|
|
4409
|
-
}).catch((
|
|
4410
|
-
|
|
4446
|
+
}).catch((_) => {
|
|
4447
|
+
b(), L("error", r("generalError")), console.error("There was an error with the player balance request.", _);
|
|
4411
4448
|
});
|
|
4412
|
-
}),
|
|
4413
|
-
if (
|
|
4414
|
-
if (
|
|
4415
|
-
switch (
|
|
4449
|
+
}), te = (h) => {
|
|
4450
|
+
if (le.forEach((b) => {
|
|
4451
|
+
if (b.type === "Real" && !(!Se.includes(b.currency) && Se.length > 0))
|
|
4452
|
+
switch (n(13, q = q.concat(b)), b.walletAccountType) {
|
|
4416
4453
|
case "Ordinary":
|
|
4417
|
-
|
|
4454
|
+
$ = $.concat(b);
|
|
4418
4455
|
break;
|
|
4419
4456
|
case "Vault":
|
|
4420
|
-
if (
|
|
4457
|
+
if (ue = ue.concat(b), b.amount === 0)
|
|
4421
4458
|
return;
|
|
4422
|
-
|
|
4459
|
+
n(14, F = F.concat(b));
|
|
4423
4460
|
break;
|
|
4424
4461
|
}
|
|
4425
|
-
}),
|
|
4426
|
-
return
|
|
4427
|
-
|
|
4428
|
-
},
|
|
4429
|
-
let
|
|
4430
|
-
fetch(
|
|
4462
|
+
}), n(15, Q = Object.entries(h.totalCashAmount).map(([b, x]) => ({ currency: b, amount: x }))[0]), Q.amount === 0 && !ue.find((b) => b.amount > 0))
|
|
4463
|
+
return L("error", r("userHasNoBalances"));
|
|
4464
|
+
n(1, y = Q.amount === 0 ? ue.find((b) => b.amount > 0).currency : Q.currency), n(2, v = Q.amount === 0 ? Q.currency : ue.find((b) => b.type === "Real").currency);
|
|
4465
|
+
}, rt = () => new Promise((h, b) => {
|
|
4466
|
+
let x = new URL(`${o}/v1/player/${a}/wallet-exchange/currencies`);
|
|
4467
|
+
fetch(x, {
|
|
4431
4468
|
method: "GET",
|
|
4432
4469
|
headers: {
|
|
4433
4470
|
"X-SessionId": i,
|
|
4434
4471
|
"Content-Type": "application/json",
|
|
4435
4472
|
Accept: "application/json"
|
|
4436
4473
|
}
|
|
4437
|
-
}).then((
|
|
4438
|
-
|
|
4439
|
-
}).catch((
|
|
4440
|
-
|
|
4474
|
+
}).then((_) => z(_)).then((_) => {
|
|
4475
|
+
_.length !== 0 && h(_.currencies);
|
|
4476
|
+
}).catch((_) => {
|
|
4477
|
+
b(), L("error", r("generalError")), console.error("There was an error on the allowed currencies request.", _);
|
|
4441
4478
|
});
|
|
4442
|
-
}),
|
|
4443
|
-
|
|
4444
|
-
const
|
|
4445
|
-
N >
|
|
4446
|
-
}),
|
|
4447
|
-
|
|
4448
|
-
let
|
|
4479
|
+
}), pe = () => new Promise((h, b) => {
|
|
4480
|
+
y === v && n(2, v = q.find((S) => S.currency !== y)?.currency), N <= 0 && (qe(), b());
|
|
4481
|
+
const x = q.find((S) => S.currency === y);
|
|
4482
|
+
N > x.amount && n(4, N = x.amount), h();
|
|
4483
|
+
}), me = () => {
|
|
4484
|
+
pe().then(() => {
|
|
4485
|
+
let h = new URL(`${o}/v2/player/${a}/check/wallet-exchange`), x = {
|
|
4449
4486
|
method: "POST",
|
|
4450
4487
|
headers: {
|
|
4451
4488
|
"X-SessionID": i,
|
|
@@ -4455,30 +4492,31 @@ function ua(e, t, r) {
|
|
|
4455
4492
|
body: JSON.stringify({
|
|
4456
4493
|
userId: a,
|
|
4457
4494
|
amount: N,
|
|
4458
|
-
currency:
|
|
4459
|
-
fromCurrency:
|
|
4495
|
+
currency: y,
|
|
4496
|
+
fromCurrency: y,
|
|
4460
4497
|
toCurrency: v,
|
|
4461
|
-
payload: { PlayerCurrency:
|
|
4498
|
+
payload: { PlayerCurrency: f }
|
|
4462
4499
|
})
|
|
4463
4500
|
};
|
|
4464
|
-
fetch(
|
|
4465
|
-
if (!
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4501
|
+
fetch(h, x).then((S) => z(S)).then((S) => {
|
|
4502
|
+
if (!S)
|
|
4503
|
+
return;
|
|
4504
|
+
if (n(12, se = !1), n(11, we = !1), n(10, ie = !1), S.feeDetails && S.feeDetails.fees.length > 0) {
|
|
4505
|
+
n(12, se = !0);
|
|
4506
|
+
let ge = S.feeDetails.fees.find((be) => be.id);
|
|
4507
|
+
ne(ge);
|
|
4470
4508
|
} else
|
|
4471
|
-
|
|
4472
|
-
const
|
|
4473
|
-
|
|
4474
|
-
}).catch((
|
|
4475
|
-
|
|
4509
|
+
n(6, P = !1);
|
|
4510
|
+
const _ = S.walletActions.find((ge) => ge.directionName === "Credit").amount;
|
|
4511
|
+
n(5, R = Ce(_));
|
|
4512
|
+
}).catch((S) => {
|
|
4513
|
+
L("error", r("generalError")), console.error("There was a problem with the wallet exchange request.", S);
|
|
4476
4514
|
});
|
|
4477
|
-
}).catch((
|
|
4478
|
-
|
|
4515
|
+
}).catch((h) => {
|
|
4516
|
+
L("error", r("walletExchangeError"));
|
|
4479
4517
|
});
|
|
4480
|
-
},
|
|
4481
|
-
let
|
|
4518
|
+
}, Ce = (h) => Math.abs(h) < 1e-6 || Math.abs(h) >= 1e6 ? h.toFixed(12).replace(/\.?0+$/, "") : h.toString(), Pe = la(me, 500), it = () => {
|
|
4519
|
+
let h = new URL(`${o}/v2/player/${a}/wallet-exchange`), x = {
|
|
4482
4520
|
method: "PUT",
|
|
4483
4521
|
headers: {
|
|
4484
4522
|
"X-SessionID": i,
|
|
@@ -4488,160 +4526,160 @@ function ua(e, t, r) {
|
|
|
4488
4526
|
body: JSON.stringify({
|
|
4489
4527
|
userId: a,
|
|
4490
4528
|
amount: N,
|
|
4491
|
-
currency:
|
|
4492
|
-
fromCurrency:
|
|
4529
|
+
currency: y,
|
|
4530
|
+
fromCurrency: y,
|
|
4493
4531
|
toCurrency: v,
|
|
4494
|
-
payload: { PlayerCurrency:
|
|
4532
|
+
payload: { PlayerCurrency: f }
|
|
4495
4533
|
})
|
|
4496
4534
|
};
|
|
4497
|
-
fetch(
|
|
4498
|
-
|
|
4499
|
-
!
|
|
4500
|
-
}).catch((
|
|
4501
|
-
console.error("There was an error with fetching the players balance.",
|
|
4535
|
+
fetch(h, x).then((S) => z(S)).then((S) => {
|
|
4536
|
+
S && (n(10, ie = !1), n(4, N = 0), n(5, R = 0), L("success", "exchangeSuccess"), Ze().then((_) => {
|
|
4537
|
+
!_ || !O || He();
|
|
4538
|
+
}).catch((_) => {
|
|
4539
|
+
console.error("There was an error with fetching the players balance.", _);
|
|
4502
4540
|
}));
|
|
4503
|
-
}).catch((
|
|
4504
|
-
|
|
4541
|
+
}).catch((S) => {
|
|
4542
|
+
L("error", r("generalError")), console.error("There was an error with the wallet exchange request.", S);
|
|
4505
4543
|
});
|
|
4506
|
-
},
|
|
4507
|
-
|
|
4508
|
-
values: { amount:
|
|
4544
|
+
}, ne = (h) => {
|
|
4545
|
+
D = h.amount, I = h.currency, n(11, we = !1), L("action", r("feeAcceptNotification", {
|
|
4546
|
+
values: { amount: D, currency: I }
|
|
4509
4547
|
}));
|
|
4510
|
-
},
|
|
4511
|
-
|
|
4512
|
-
let
|
|
4513
|
-
exchageAmount:
|
|
4514
|
-
exchageCurrency:
|
|
4515
|
-
exchangedAmount:
|
|
4548
|
+
}, Ie = () => {
|
|
4549
|
+
n(10, ie = !1), n(6, P = !1), n(11, we = !0);
|
|
4550
|
+
let b = {
|
|
4551
|
+
exchageAmount: Ce(N - D),
|
|
4552
|
+
exchageCurrency: y,
|
|
4553
|
+
exchangedAmount: R,
|
|
4516
4554
|
exchangedCurrency: v,
|
|
4517
|
-
feeAmount:
|
|
4555
|
+
feeAmount: D,
|
|
4518
4556
|
feeCurrency: I
|
|
4519
4557
|
};
|
|
4520
|
-
|
|
4521
|
-
},
|
|
4522
|
-
|
|
4523
|
-
},
|
|
4524
|
-
switch (
|
|
4558
|
+
L("action", r("feeExchangeNotification", { values: b }));
|
|
4559
|
+
}, qe = () => {
|
|
4560
|
+
n(10, ie = !1), n(12, se = !1), n(6, P = !0), n(5, R = 0), n(4, N = 0);
|
|
4561
|
+
}, L = (h, b) => {
|
|
4562
|
+
switch (h) {
|
|
4525
4563
|
case "error":
|
|
4526
|
-
|
|
4564
|
+
n(8, Z = !0), n(6, P = !0), window.postMessage(
|
|
4527
4565
|
{
|
|
4528
4566
|
type: "WidgetNotification",
|
|
4529
|
-
data: { type: "error", message:
|
|
4567
|
+
data: { type: "error", message: b }
|
|
4530
4568
|
},
|
|
4531
4569
|
window.location.href
|
|
4532
4570
|
), setTimeout(
|
|
4533
4571
|
() => {
|
|
4534
|
-
|
|
4572
|
+
n(8, Z = !1);
|
|
4535
4573
|
},
|
|
4536
4574
|
2e3
|
|
4537
4575
|
);
|
|
4538
4576
|
break;
|
|
4539
4577
|
case "success":
|
|
4540
|
-
|
|
4578
|
+
n(9, K = !0), n(6, P = !0), window.postMessage(
|
|
4541
4579
|
{
|
|
4542
4580
|
type: "WidgetNotification",
|
|
4543
|
-
data: { type: "success", message:
|
|
4581
|
+
data: { type: "success", message: b }
|
|
4544
4582
|
},
|
|
4545
4583
|
window.location.href
|
|
4546
4584
|
), setTimeout(
|
|
4547
4585
|
() => {
|
|
4548
|
-
|
|
4586
|
+
n(9, K = !1);
|
|
4549
4587
|
},
|
|
4550
4588
|
2e3
|
|
4551
4589
|
);
|
|
4552
4590
|
break;
|
|
4553
4591
|
case "action":
|
|
4554
|
-
|
|
4592
|
+
n(10, ie = !0);
|
|
4555
4593
|
break;
|
|
4556
4594
|
}
|
|
4557
|
-
|
|
4558
|
-
},
|
|
4559
|
-
function
|
|
4560
|
-
N =
|
|
4595
|
+
n(3, U = b);
|
|
4596
|
+
}, z = async (h) => h.status >= 300 ? (Xe = await h.json(), n(3, U = Xe.thirdPartyResponse.errorCode), L("error", U || "generalError")) : h.json();
|
|
4597
|
+
function Ne() {
|
|
4598
|
+
N = ft(this.value), n(4, N);
|
|
4561
4599
|
}
|
|
4562
|
-
function
|
|
4563
|
-
|
|
4600
|
+
function Oe() {
|
|
4601
|
+
y = Zt(this), n(1, y), n(13, q);
|
|
4564
4602
|
}
|
|
4565
|
-
function
|
|
4566
|
-
|
|
4603
|
+
function at() {
|
|
4604
|
+
R = ft(this.value), n(5, R);
|
|
4567
4605
|
}
|
|
4568
|
-
function
|
|
4569
|
-
v =
|
|
4606
|
+
function Ae() {
|
|
4607
|
+
v = Zt(this), n(2, v), n(13, q);
|
|
4570
4608
|
}
|
|
4571
|
-
const
|
|
4572
|
-
|
|
4609
|
+
const Je = (h) => {
|
|
4610
|
+
Te(h);
|
|
4573
4611
|
};
|
|
4574
|
-
function
|
|
4575
|
-
|
|
4576
|
-
|
|
4612
|
+
function ot(h, b) {
|
|
4613
|
+
pt[h ? "unshift" : "push"](() => {
|
|
4614
|
+
he[b] = h, n(17, he);
|
|
4577
4615
|
});
|
|
4578
4616
|
}
|
|
4579
|
-
function
|
|
4580
|
-
|
|
4581
|
-
|
|
4617
|
+
function de(h) {
|
|
4618
|
+
pt[h ? "unshift" : "push"](() => {
|
|
4619
|
+
ce = h, n(16, ce);
|
|
4582
4620
|
});
|
|
4583
4621
|
}
|
|
4584
|
-
return e.$$set = (
|
|
4585
|
-
"session" in
|
|
4622
|
+
return e.$$set = (h) => {
|
|
4623
|
+
"session" in h && n(24, i = h.session), "userid" in h && n(25, a = h.userid), "endpoint" in h && n(26, o = h.endpoint), "lang" in h && n(27, s = h.lang), "clientstyling" in h && n(28, c = h.clientstyling), "clientstylingurl" in h && n(29, u = h.clientstylingurl), "translationurl" in h && n(30, l = h.translationurl), "playercurrency" in h && n(31, f = h.playercurrency);
|
|
4586
4624
|
}, e.$$.update = () => {
|
|
4587
4625
|
e.$$.dirty[0] & /*session*/
|
|
4588
4626
|
16777216, e.$$.dirty[0] & /*lang*/
|
|
4589
|
-
134217728 && s &&
|
|
4627
|
+
134217728 && s && We(), e.$$.dirty[0] & /*session, userid, endpoint*/
|
|
4590
4628
|
117440512 | e.$$.dirty[1] & /*playercurrency*/
|
|
4591
|
-
1 && i && a && o &&
|
|
4592
|
-
268435456, e.$$.dirty[0] & /*clientstylingurl*/
|
|
4593
|
-
536870912, e.$$.dirty[0] & /*translationurl*/
|
|
4594
|
-
1073741824 &&
|
|
4629
|
+
1 && i && a && o && f && Ze(), e.$$.dirty[0] & /*clientstyling*/
|
|
4630
|
+
268435456 && c && ee && fe(), e.$$.dirty[0] & /*clientstylingurl*/
|
|
4631
|
+
536870912 && u && ee && j(), e.$$.dirty[0] & /*translationurl*/
|
|
4632
|
+
1073741824 && l && nt();
|
|
4595
4633
|
}, [
|
|
4596
4634
|
d,
|
|
4597
|
-
|
|
4635
|
+
y,
|
|
4598
4636
|
v,
|
|
4599
|
-
|
|
4637
|
+
U,
|
|
4600
4638
|
N,
|
|
4601
|
-
|
|
4639
|
+
R,
|
|
4602
4640
|
P,
|
|
4603
4641
|
O,
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4642
|
+
Z,
|
|
4643
|
+
K,
|
|
4644
|
+
ie,
|
|
4607
4645
|
we,
|
|
4646
|
+
se,
|
|
4647
|
+
q,
|
|
4648
|
+
F,
|
|
4649
|
+
Q,
|
|
4608
4650
|
ce,
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
re,
|
|
4613
|
-
pe,
|
|
4614
|
-
n,
|
|
4615
|
-
We,
|
|
4616
|
-
ge,
|
|
4617
|
-
be,
|
|
4651
|
+
he,
|
|
4652
|
+
r,
|
|
4653
|
+
Te,
|
|
4618
4654
|
Pe,
|
|
4619
|
-
|
|
4655
|
+
it,
|
|
4656
|
+
Ie,
|
|
4657
|
+
qe,
|
|
4620
4658
|
i,
|
|
4621
4659
|
a,
|
|
4622
4660
|
o,
|
|
4623
4661
|
s,
|
|
4624
4662
|
c,
|
|
4625
|
-
l,
|
|
4626
4663
|
u,
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
K,
|
|
4630
|
-
ie,
|
|
4631
|
-
Ie,
|
|
4664
|
+
l,
|
|
4665
|
+
f,
|
|
4632
4666
|
Ne,
|
|
4633
|
-
|
|
4634
|
-
|
|
4667
|
+
Oe,
|
|
4668
|
+
at,
|
|
4669
|
+
Ae,
|
|
4670
|
+
Je,
|
|
4671
|
+
ot,
|
|
4672
|
+
de
|
|
4635
4673
|
];
|
|
4636
4674
|
}
|
|
4637
|
-
class
|
|
4675
|
+
class ca extends pr {
|
|
4638
4676
|
constructor(t) {
|
|
4639
|
-
super(),
|
|
4677
|
+
super(), hr(
|
|
4640
4678
|
this,
|
|
4641
4679
|
t,
|
|
4642
4680
|
ua,
|
|
4643
|
-
|
|
4644
|
-
|
|
4681
|
+
sa,
|
|
4682
|
+
En,
|
|
4645
4683
|
{
|
|
4646
4684
|
session: 24,
|
|
4647
4685
|
userid: 25,
|
|
@@ -4652,7 +4690,7 @@ class la extends hn {
|
|
|
4652
4690
|
translationurl: 30,
|
|
4653
4691
|
playercurrency: 31
|
|
4654
4692
|
},
|
|
4655
|
-
|
|
4693
|
+
ia,
|
|
4656
4694
|
[-1, -1, -1]
|
|
4657
4695
|
);
|
|
4658
4696
|
}
|
|
@@ -4660,52 +4698,52 @@ class la extends hn {
|
|
|
4660
4698
|
return this.$$.ctx[24];
|
|
4661
4699
|
}
|
|
4662
4700
|
set session(t) {
|
|
4663
|
-
this.$$set({ session: t }),
|
|
4701
|
+
this.$$set({ session: t }), oe();
|
|
4664
4702
|
}
|
|
4665
4703
|
get userid() {
|
|
4666
4704
|
return this.$$.ctx[25];
|
|
4667
4705
|
}
|
|
4668
4706
|
set userid(t) {
|
|
4669
|
-
this.$$set({ userid: t }),
|
|
4707
|
+
this.$$set({ userid: t }), oe();
|
|
4670
4708
|
}
|
|
4671
4709
|
get endpoint() {
|
|
4672
4710
|
return this.$$.ctx[26];
|
|
4673
4711
|
}
|
|
4674
4712
|
set endpoint(t) {
|
|
4675
|
-
this.$$set({ endpoint: t }),
|
|
4713
|
+
this.$$set({ endpoint: t }), oe();
|
|
4676
4714
|
}
|
|
4677
4715
|
get lang() {
|
|
4678
4716
|
return this.$$.ctx[27];
|
|
4679
4717
|
}
|
|
4680
4718
|
set lang(t) {
|
|
4681
|
-
this.$$set({ lang: t }),
|
|
4719
|
+
this.$$set({ lang: t }), oe();
|
|
4682
4720
|
}
|
|
4683
4721
|
get clientstyling() {
|
|
4684
4722
|
return this.$$.ctx[28];
|
|
4685
4723
|
}
|
|
4686
4724
|
set clientstyling(t) {
|
|
4687
|
-
this.$$set({ clientstyling: t }),
|
|
4725
|
+
this.$$set({ clientstyling: t }), oe();
|
|
4688
4726
|
}
|
|
4689
4727
|
get clientstylingurl() {
|
|
4690
4728
|
return this.$$.ctx[29];
|
|
4691
4729
|
}
|
|
4692
4730
|
set clientstylingurl(t) {
|
|
4693
|
-
this.$$set({ clientstylingurl: t }),
|
|
4731
|
+
this.$$set({ clientstylingurl: t }), oe();
|
|
4694
4732
|
}
|
|
4695
4733
|
get translationurl() {
|
|
4696
4734
|
return this.$$.ctx[30];
|
|
4697
4735
|
}
|
|
4698
4736
|
set translationurl(t) {
|
|
4699
|
-
this.$$set({ translationurl: t }),
|
|
4737
|
+
this.$$set({ translationurl: t }), oe();
|
|
4700
4738
|
}
|
|
4701
4739
|
get playercurrency() {
|
|
4702
4740
|
return this.$$.ctx[31];
|
|
4703
4741
|
}
|
|
4704
4742
|
set playercurrency(t) {
|
|
4705
|
-
this.$$set({ playercurrency: t }),
|
|
4743
|
+
this.$$set({ playercurrency: t }), oe();
|
|
4706
4744
|
}
|
|
4707
4745
|
}
|
|
4708
|
-
|
|
4746
|
+
fr(ca, { session: {}, userid: {}, endpoint: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, playercurrency: {} }, [], [], !0);
|
|
4709
4747
|
export {
|
|
4710
|
-
|
|
4748
|
+
ca as P
|
|
4711
4749
|
};
|