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