@everymatrix/general-player-login-form-nd 1.77.20 → 1.77.21
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/{GeneralPlayerLoginFormNd-Dz48iQSX.js → GeneralPlayerLoginFormNd-1DxGEPP9.js} +855 -812
- package/components/{GeneralPlayerLoginFormNd-B01BY938.js → GeneralPlayerLoginFormNd-CUIevjh8.js} +831 -788
- package/components/GeneralPlayerLoginFormNd-Dv0P7KwS.cjs +18 -0
- package/components/{GeneralPlayerSmsVerificationForm-D2b0nmmS.js → GeneralPlayerSmsVerificationForm-BKWeCfRG.js} +1 -1
- package/components/{GeneralPlayerSmsVerificationForm-Ddx2w2-K.js → GeneralPlayerSmsVerificationForm-DJahVXQg.js} +1 -1
- package/components/{GeneralPlayerSmsVerificationForm-Cq1-KjdA.cjs → GeneralPlayerSmsVerificationForm-Dx63x365.cjs} +1 -1
- package/es2015/general-player-login-form-nd.cjs +1 -1
- package/es2015/general-player-login-form-nd.js +1 -1
- package/esnext/general-player-login-form-nd.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerLoginFormNd-BV7zK-4o.cjs +0 -18
package/components/{GeneralPlayerLoginFormNd-B01BY938.js → GeneralPlayerLoginFormNd-CUIevjh8.js}
RENAMED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
function Z() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function Sr(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Zt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function Le(e) {
|
|
10
|
+
e.forEach(Sr);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Vt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Pr(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
18
|
let tt;
|
|
19
|
-
function
|
|
19
|
+
function qt(e, t) {
|
|
20
20
|
return e === t ? !0 : (tt || (tt = document.createElement("a")), tt.href = t, e === tt.href);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function an(e) {
|
|
23
23
|
return Object.keys(e).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Tr(e, ...t) {
|
|
26
26
|
if (e == null) {
|
|
27
27
|
for (const n of t)
|
|
28
28
|
n(void 0);
|
|
@@ -31,20 +31,20 @@ function wr(e, ...t) {
|
|
|
31
31
|
const r = e.subscribe(...t);
|
|
32
32
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
e.$$.on_destroy.push(
|
|
34
|
+
function ln(e, t, r) {
|
|
35
|
+
e.$$.on_destroy.push(Tr(t, r));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function m(e, t) {
|
|
38
38
|
e.appendChild(t);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const n =
|
|
40
|
+
function un(e, t, r) {
|
|
41
|
+
const n = cn(e);
|
|
42
42
|
if (!n.getElementById(t)) {
|
|
43
|
-
const i =
|
|
44
|
-
i.id = t, i.textContent = r,
|
|
43
|
+
const i = E("style");
|
|
44
|
+
i.id = t, i.textContent = r, hn(n, i);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function cn(e) {
|
|
48
48
|
if (!e)
|
|
49
49
|
return document;
|
|
50
50
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -54,8 +54,8 @@ function on(e) {
|
|
|
54
54
|
t
|
|
55
55
|
) : e.ownerDocument;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return
|
|
57
|
+
function hn(e, t) {
|
|
58
|
+
return m(
|
|
59
59
|
/** @type {Document} */
|
|
60
60
|
e.head || e,
|
|
61
61
|
t
|
|
@@ -67,10 +67,10 @@ function L(e, t, r) {
|
|
|
67
67
|
function I(e) {
|
|
68
68
|
e.parentNode && e.parentNode.removeChild(e);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function E(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function C(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
76
|
function N(e) {
|
|
@@ -79,10 +79,10 @@ function N(e) {
|
|
|
79
79
|
function j() {
|
|
80
80
|
return N(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function fn() {
|
|
83
83
|
return N("");
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function se(e, t, r, n) {
|
|
86
86
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
87
87
|
}
|
|
88
88
|
function h(e, t, r) {
|
|
@@ -92,7 +92,7 @@ function W(e, t, r) {
|
|
|
92
92
|
const n = t.toLowerCase();
|
|
93
93
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : h(e, t, r);
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function dn(e) {
|
|
96
96
|
return Array.from(e.childNodes);
|
|
97
97
|
}
|
|
98
98
|
function te(e, t) {
|
|
@@ -102,7 +102,7 @@ function te(e, t) {
|
|
|
102
102
|
function rt(e, t) {
|
|
103
103
|
e.value = t ?? "";
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function mn(e) {
|
|
106
106
|
const t = {};
|
|
107
107
|
return e.childNodes.forEach(
|
|
108
108
|
/** @param {Element} node */
|
|
@@ -111,87 +111,87 @@ function un(e) {
|
|
|
111
111
|
}
|
|
112
112
|
), t;
|
|
113
113
|
}
|
|
114
|
-
let
|
|
115
|
-
function
|
|
116
|
-
|
|
114
|
+
let Ve;
|
|
115
|
+
function je(e) {
|
|
116
|
+
Ve = e;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
119
|
-
if (!
|
|
118
|
+
function pn() {
|
|
119
|
+
if (!Ve)
|
|
120
120
|
throw new Error("Function called outside component initialization");
|
|
121
|
-
return
|
|
121
|
+
return Ve;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
|
|
123
|
+
function gn(e) {
|
|
124
|
+
pn().$$.on_mount.push(e);
|
|
125
125
|
}
|
|
126
126
|
const He = [], ut = [];
|
|
127
127
|
let Be = [];
|
|
128
|
-
const
|
|
129
|
-
let
|
|
130
|
-
function
|
|
131
|
-
|
|
128
|
+
const Jt = [], bn = /* @__PURE__ */ Promise.resolve();
|
|
129
|
+
let Ht = !1;
|
|
130
|
+
function vn() {
|
|
131
|
+
Ht || (Ht = !0, bn.then(K));
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Bt(e) {
|
|
134
134
|
Be.push(e);
|
|
135
135
|
}
|
|
136
|
-
const
|
|
136
|
+
const yt = /* @__PURE__ */ new Set();
|
|
137
137
|
let Pe = 0;
|
|
138
138
|
function K() {
|
|
139
139
|
if (Pe !== 0)
|
|
140
140
|
return;
|
|
141
|
-
const e =
|
|
141
|
+
const e = Ve;
|
|
142
142
|
do {
|
|
143
143
|
try {
|
|
144
144
|
for (; Pe < He.length; ) {
|
|
145
145
|
const t = He[Pe];
|
|
146
|
-
Pe++,
|
|
146
|
+
Pe++, je(t), yn(t.$$);
|
|
147
147
|
}
|
|
148
148
|
} catch (t) {
|
|
149
149
|
throw He.length = 0, Pe = 0, t;
|
|
150
150
|
}
|
|
151
|
-
for (
|
|
151
|
+
for (je(null), He.length = 0, Pe = 0; ut.length; )
|
|
152
152
|
ut.pop()();
|
|
153
153
|
for (let t = 0; t < Be.length; t += 1) {
|
|
154
154
|
const r = Be[t];
|
|
155
|
-
|
|
155
|
+
yt.has(r) || (yt.add(r), r());
|
|
156
156
|
}
|
|
157
157
|
Be.length = 0;
|
|
158
158
|
} while (He.length);
|
|
159
|
-
for (;
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
for (; Jt.length; )
|
|
160
|
+
Jt.pop()();
|
|
161
|
+
Ht = !1, yt.clear(), je(e);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function yn(e) {
|
|
164
164
|
if (e.fragment !== null) {
|
|
165
|
-
e.update(),
|
|
165
|
+
e.update(), Le(e.before_update);
|
|
166
166
|
const t = e.dirty;
|
|
167
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
167
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Bt);
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function _n(e) {
|
|
171
171
|
const t = [], r = [];
|
|
172
172
|
Be.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Be = t;
|
|
173
173
|
}
|
|
174
|
-
const
|
|
175
|
-
function
|
|
176
|
-
e && e.i && (
|
|
174
|
+
const wn = /* @__PURE__ */ new Set();
|
|
175
|
+
function En(e, t) {
|
|
176
|
+
e && e.i && (wn.delete(e), e.i(t));
|
|
177
177
|
}
|
|
178
|
-
function
|
|
178
|
+
function xn(e, t, r) {
|
|
179
179
|
const { fragment: n, after_update: i } = e.$$;
|
|
180
|
-
n && n.m(t, r),
|
|
181
|
-
const o = e.$$.on_mount.map(
|
|
182
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
183
|
-
}), i.forEach(
|
|
180
|
+
n && n.m(t, r), Bt(() => {
|
|
181
|
+
const o = e.$$.on_mount.map(Sr).filter(Vt);
|
|
182
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Le(o), e.$$.on_mount = [];
|
|
183
|
+
}), i.forEach(Bt);
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function Sn(e, t) {
|
|
186
186
|
const r = e.$$;
|
|
187
|
-
r.fragment !== null && (
|
|
187
|
+
r.fragment !== null && (_n(r.after_update), Le(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
e.$$.dirty[0] === -1 && (He.push(e),
|
|
189
|
+
function Pn(e, t) {
|
|
190
|
+
e.$$.dirty[0] === -1 && (He.push(e), vn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
const c =
|
|
194
|
-
|
|
192
|
+
function Tn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
193
|
+
const c = Ve;
|
|
194
|
+
je(e);
|
|
195
195
|
const l = e.$$ = {
|
|
196
196
|
fragment: null,
|
|
197
197
|
ctx: [],
|
|
@@ -199,7 +199,7 @@ function wn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
199
199
|
props: o,
|
|
200
200
|
update: Z,
|
|
201
201
|
not_equal: i,
|
|
202
|
-
bound:
|
|
202
|
+
bound: Zt(),
|
|
203
203
|
// lifecycle
|
|
204
204
|
on_mount: [],
|
|
205
205
|
on_destroy: [],
|
|
@@ -208,28 +208,28 @@ function wn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
208
208
|
after_update: [],
|
|
209
209
|
context: new Map(t.context || (c ? c.$$.context : [])),
|
|
210
210
|
// everything else
|
|
211
|
-
callbacks:
|
|
211
|
+
callbacks: Zt(),
|
|
212
212
|
dirty: a,
|
|
213
213
|
skip_bound: !1,
|
|
214
214
|
root: t.target || c.$$.root
|
|
215
215
|
};
|
|
216
216
|
s && s(l.root);
|
|
217
217
|
let u = !1;
|
|
218
|
-
if (l.ctx = r ? r(e, t.props || {}, (f,
|
|
219
|
-
const y = b.length ? b[0] :
|
|
220
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = y) && (!l.skip_bound && l.bound[f] && l.bound[f](y), u &&
|
|
221
|
-
}) : [], l.update(), u = !0,
|
|
218
|
+
if (l.ctx = r ? r(e, t.props || {}, (f, d, ...b) => {
|
|
219
|
+
const y = b.length ? b[0] : d;
|
|
220
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = y) && (!l.skip_bound && l.bound[f] && l.bound[f](y), u && Pn(e, f)), d;
|
|
221
|
+
}) : [], l.update(), u = !0, Le(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
222
222
|
if (t.hydrate) {
|
|
223
|
-
const f =
|
|
223
|
+
const f = dn(t.target);
|
|
224
224
|
l.fragment && l.fragment.l(f), f.forEach(I);
|
|
225
225
|
} else
|
|
226
226
|
l.fragment && l.fragment.c();
|
|
227
|
-
t.intro &&
|
|
227
|
+
t.intro && En(e.$$.fragment), xn(e, t.target, t.anchor), K();
|
|
228
228
|
}
|
|
229
|
-
|
|
229
|
+
je(c);
|
|
230
230
|
}
|
|
231
|
-
let
|
|
232
|
-
typeof HTMLElement == "function" && (
|
|
231
|
+
let Hr;
|
|
232
|
+
typeof HTMLElement == "function" && (Hr = class extends HTMLElement {
|
|
233
233
|
/** The Svelte component constructor */
|
|
234
234
|
$$ctor;
|
|
235
235
|
/** Slots */
|
|
@@ -271,7 +271,7 @@ typeof HTMLElement == "function" && (Er = class extends HTMLElement {
|
|
|
271
271
|
let o;
|
|
272
272
|
return {
|
|
273
273
|
c: function() {
|
|
274
|
-
o =
|
|
274
|
+
o = E("slot"), i !== "default" && h(o, "name", i);
|
|
275
275
|
},
|
|
276
276
|
/**
|
|
277
277
|
* @param {HTMLElement} target
|
|
@@ -288,7 +288,7 @@ typeof HTMLElement == "function" && (Er = class extends HTMLElement {
|
|
|
288
288
|
};
|
|
289
289
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
290
290
|
return;
|
|
291
|
-
const t = {}, r =
|
|
291
|
+
const t = {}, r = mn(this);
|
|
292
292
|
for (const i of this.$$s)
|
|
293
293
|
i in r && (t[i] = [e(i)]);
|
|
294
294
|
for (const i of this.attributes) {
|
|
@@ -375,8 +375,8 @@ function ot(e, t, r, n) {
|
|
|
375
375
|
return t;
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
|
-
function
|
|
379
|
-
let s = class extends
|
|
378
|
+
function Hn(e, t, r, n, i, o) {
|
|
379
|
+
let s = class extends Hr {
|
|
380
380
|
constructor() {
|
|
381
381
|
super(e, r, i), this.$$p_d = t;
|
|
382
382
|
}
|
|
@@ -404,7 +404,7 @@ function En(e, t, r, n, i, o) {
|
|
|
404
404
|
}), e.element = /** @type {any} */
|
|
405
405
|
s, s;
|
|
406
406
|
}
|
|
407
|
-
class
|
|
407
|
+
class Bn {
|
|
408
408
|
/**
|
|
409
409
|
* ### PRIVATE API
|
|
410
410
|
*
|
|
@@ -423,7 +423,7 @@ class xn {
|
|
|
423
423
|
$$set = void 0;
|
|
424
424
|
/** @returns {void} */
|
|
425
425
|
$destroy() {
|
|
426
|
-
|
|
426
|
+
Sn(this, 1), this.$destroy = Z;
|
|
427
427
|
}
|
|
428
428
|
/**
|
|
429
429
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -432,7 +432,7 @@ class xn {
|
|
|
432
432
|
* @returns {() => void}
|
|
433
433
|
*/
|
|
434
434
|
$on(t, r) {
|
|
435
|
-
if (!
|
|
435
|
+
if (!Vt(r))
|
|
436
436
|
return Z;
|
|
437
437
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
438
438
|
return n.push(r), () => {
|
|
@@ -445,11 +445,11 @@ class xn {
|
|
|
445
445
|
* @returns {void}
|
|
446
446
|
*/
|
|
447
447
|
$set(t) {
|
|
448
|
-
this.$$set && !
|
|
448
|
+
this.$$set && !an(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
const
|
|
452
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
451
|
+
const An = "4";
|
|
452
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(An);
|
|
453
453
|
/*! *****************************************************************************
|
|
454
454
|
Copyright (c) Microsoft Corporation.
|
|
455
455
|
|
|
@@ -464,43 +464,24 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
464
464
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
465
465
|
PERFORMANCE OF THIS SOFTWARE.
|
|
466
466
|
***************************************************************************** */
|
|
467
|
-
var
|
|
468
|
-
return
|
|
467
|
+
var At = function(e, t) {
|
|
468
|
+
return At = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
469
469
|
r.__proto__ = n;
|
|
470
470
|
} || function(r, n) {
|
|
471
471
|
for (var i in n)
|
|
472
472
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
473
|
-
},
|
|
473
|
+
}, At(e, t);
|
|
474
474
|
};
|
|
475
|
-
function
|
|
475
|
+
function We(e, t) {
|
|
476
476
|
if (typeof t != "function" && t !== null)
|
|
477
477
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
478
|
-
|
|
478
|
+
At(e, t);
|
|
479
479
|
function r() {
|
|
480
480
|
this.constructor = e;
|
|
481
481
|
}
|
|
482
482
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
483
483
|
}
|
|
484
|
-
|
|
485
|
-
return E = Object.assign || function(t) {
|
|
486
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
487
|
-
r = arguments[n];
|
|
488
|
-
for (var o in r)
|
|
489
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
490
|
-
}
|
|
491
|
-
return t;
|
|
492
|
-
}, E.apply(this, arguments);
|
|
493
|
-
};
|
|
494
|
-
function Pn(e, t) {
|
|
495
|
-
var r = {};
|
|
496
|
-
for (var n in e)
|
|
497
|
-
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
498
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
499
|
-
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
500
|
-
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
501
|
-
return r;
|
|
502
|
-
}
|
|
503
|
-
function Ht(e) {
|
|
484
|
+
function It(e) {
|
|
504
485
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
505
486
|
if (r)
|
|
506
487
|
return r.call(e);
|
|
@@ -512,7 +493,7 @@ function Ht(e) {
|
|
|
512
493
|
};
|
|
513
494
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
514
495
|
}
|
|
515
|
-
function
|
|
496
|
+
function Ot(e, t) {
|
|
516
497
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
517
498
|
if (!r)
|
|
518
499
|
return e;
|
|
@@ -532,22 +513,22 @@ function Bt(e, t) {
|
|
|
532
513
|
}
|
|
533
514
|
return o;
|
|
534
515
|
}
|
|
535
|
-
function
|
|
536
|
-
if (
|
|
516
|
+
function Ct(e, t, r) {
|
|
517
|
+
if (arguments.length === 2)
|
|
537
518
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
538
519
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
539
520
|
return e.concat(o || t);
|
|
540
521
|
}
|
|
541
|
-
function
|
|
522
|
+
function ae(e) {
|
|
542
523
|
return typeof e == "function";
|
|
543
524
|
}
|
|
544
|
-
function
|
|
525
|
+
function Br(e) {
|
|
545
526
|
var t = function(n) {
|
|
546
527
|
Error.call(n), n.stack = new Error().stack;
|
|
547
528
|
}, r = e(t);
|
|
548
529
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
549
530
|
}
|
|
550
|
-
var
|
|
531
|
+
var _t = Br(function(e) {
|
|
551
532
|
return function(r) {
|
|
552
533
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
553
534
|
` + r.map(function(n, i) {
|
|
@@ -556,13 +537,13 @@ var vt = xr(function(e) {
|
|
|
556
537
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
557
538
|
};
|
|
558
539
|
});
|
|
559
|
-
function
|
|
540
|
+
function Lt(e, t) {
|
|
560
541
|
if (e) {
|
|
561
542
|
var r = e.indexOf(t);
|
|
562
543
|
0 <= r && e.splice(r, 1);
|
|
563
544
|
}
|
|
564
545
|
}
|
|
565
|
-
var
|
|
546
|
+
var dt = function() {
|
|
566
547
|
function e(t) {
|
|
567
548
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
568
549
|
}
|
|
@@ -574,7 +555,7 @@ var ft = function() {
|
|
|
574
555
|
if (s)
|
|
575
556
|
if (this._parentage = null, Array.isArray(s))
|
|
576
557
|
try {
|
|
577
|
-
for (var a =
|
|
558
|
+
for (var a = It(s), c = a.next(); !c.done; c = a.next()) {
|
|
578
559
|
var l = c.value;
|
|
579
560
|
l.remove(this);
|
|
580
561
|
}
|
|
@@ -591,29 +572,29 @@ var ft = function() {
|
|
|
591
572
|
else
|
|
592
573
|
s.remove(this);
|
|
593
574
|
var u = this.initialTeardown;
|
|
594
|
-
if (
|
|
575
|
+
if (ae(u))
|
|
595
576
|
try {
|
|
596
577
|
u();
|
|
597
578
|
} catch (g) {
|
|
598
|
-
o = g instanceof
|
|
579
|
+
o = g instanceof _t ? g.errors : [g];
|
|
599
580
|
}
|
|
600
581
|
var f = this._finalizers;
|
|
601
582
|
if (f) {
|
|
602
583
|
this._finalizers = null;
|
|
603
584
|
try {
|
|
604
|
-
for (var
|
|
585
|
+
for (var d = It(f), b = d.next(); !b.done; b = d.next()) {
|
|
605
586
|
var y = b.value;
|
|
606
587
|
try {
|
|
607
|
-
|
|
588
|
+
Qt(y);
|
|
608
589
|
} catch (g) {
|
|
609
|
-
o = o ?? [], g instanceof
|
|
590
|
+
o = o ?? [], g instanceof _t ? o = Ct(Ct([], Ot(o)), Ot(g.errors)) : o.push(g);
|
|
610
591
|
}
|
|
611
592
|
}
|
|
612
593
|
} catch (g) {
|
|
613
594
|
n = { error: g };
|
|
614
595
|
} finally {
|
|
615
596
|
try {
|
|
616
|
-
b && !b.done && (i =
|
|
597
|
+
b && !b.done && (i = d.return) && i.call(d);
|
|
617
598
|
} finally {
|
|
618
599
|
if (n)
|
|
619
600
|
throw n.error;
|
|
@@ -621,13 +602,13 @@ var ft = function() {
|
|
|
621
602
|
}
|
|
622
603
|
}
|
|
623
604
|
if (o)
|
|
624
|
-
throw new
|
|
605
|
+
throw new _t(o);
|
|
625
606
|
}
|
|
626
607
|
}, e.prototype.add = function(t) {
|
|
627
608
|
var r;
|
|
628
609
|
if (t && t !== this)
|
|
629
610
|
if (this.closed)
|
|
630
|
-
|
|
611
|
+
Qt(t);
|
|
631
612
|
else {
|
|
632
613
|
if (t instanceof e) {
|
|
633
614
|
if (t.closed || t._hasParent(this))
|
|
@@ -644,52 +625,52 @@ var ft = function() {
|
|
|
644
625
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
645
626
|
}, e.prototype._removeParent = function(t) {
|
|
646
627
|
var r = this._parentage;
|
|
647
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
628
|
+
r === t ? this._parentage = null : Array.isArray(r) && Lt(r, t);
|
|
648
629
|
}, e.prototype.remove = function(t) {
|
|
649
630
|
var r = this._finalizers;
|
|
650
|
-
r &&
|
|
631
|
+
r && Lt(r, t), t instanceof e && t._removeParent(this);
|
|
651
632
|
}, e.EMPTY = function() {
|
|
652
633
|
var t = new e();
|
|
653
634
|
return t.closed = !0, t;
|
|
654
635
|
}(), e;
|
|
655
|
-
}(),
|
|
656
|
-
function
|
|
657
|
-
return e instanceof
|
|
636
|
+
}(), Ar = dt.EMPTY;
|
|
637
|
+
function Ir(e) {
|
|
638
|
+
return e instanceof dt || e && "closed" in e && ae(e.remove) && ae(e.add) && ae(e.unsubscribe);
|
|
658
639
|
}
|
|
659
|
-
function
|
|
660
|
-
|
|
640
|
+
function Qt(e) {
|
|
641
|
+
ae(e) ? e() : e.unsubscribe();
|
|
661
642
|
}
|
|
662
|
-
var
|
|
643
|
+
var In = {
|
|
663
644
|
Promise: void 0
|
|
664
|
-
},
|
|
645
|
+
}, On = {
|
|
665
646
|
setTimeout: function(e, t) {
|
|
666
647
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
667
648
|
r[n - 2] = arguments[n];
|
|
668
|
-
return setTimeout.apply(void 0,
|
|
649
|
+
return setTimeout.apply(void 0, Ct([e, t], Ot(r)));
|
|
669
650
|
},
|
|
670
651
|
clearTimeout: function(e) {
|
|
671
652
|
return clearTimeout(e);
|
|
672
653
|
},
|
|
673
654
|
delegate: void 0
|
|
674
655
|
};
|
|
675
|
-
function
|
|
676
|
-
|
|
656
|
+
function Cn(e) {
|
|
657
|
+
On.setTimeout(function() {
|
|
677
658
|
throw e;
|
|
678
659
|
});
|
|
679
660
|
}
|
|
680
|
-
function
|
|
661
|
+
function Yt() {
|
|
681
662
|
}
|
|
682
663
|
function st(e) {
|
|
683
664
|
e();
|
|
684
665
|
}
|
|
685
|
-
var
|
|
686
|
-
|
|
666
|
+
var Or = function(e) {
|
|
667
|
+
We(t, e);
|
|
687
668
|
function t(r) {
|
|
688
669
|
var n = e.call(this) || this;
|
|
689
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
670
|
+
return n.isStopped = !1, r ? (n.destination = r, Ir(r) && r.add(n)) : n.destination = Nn, n;
|
|
690
671
|
}
|
|
691
672
|
return t.create = function(r, n, i) {
|
|
692
|
-
return new
|
|
673
|
+
return new Mt(r, n, i);
|
|
693
674
|
}, t.prototype.next = function(r) {
|
|
694
675
|
this.isStopped || this._next(r);
|
|
695
676
|
}, t.prototype.error = function(r) {
|
|
@@ -713,7 +694,7 @@ var Tr = function(e) {
|
|
|
713
694
|
this.unsubscribe();
|
|
714
695
|
}
|
|
715
696
|
}, t;
|
|
716
|
-
}(
|
|
697
|
+
}(dt), Ln = function() {
|
|
717
698
|
function e(t) {
|
|
718
699
|
this.partialObserver = t;
|
|
719
700
|
}
|
|
@@ -744,43 +725,43 @@ var Tr = function(e) {
|
|
|
744
725
|
nt(r);
|
|
745
726
|
}
|
|
746
727
|
}, e;
|
|
747
|
-
}(),
|
|
748
|
-
|
|
728
|
+
}(), Mt = function(e) {
|
|
729
|
+
We(t, e);
|
|
749
730
|
function t(r, n, i) {
|
|
750
731
|
var o = e.call(this) || this, s;
|
|
751
|
-
return
|
|
732
|
+
return ae(r) || !r ? s = {
|
|
752
733
|
next: r ?? void 0,
|
|
753
734
|
error: n ?? void 0,
|
|
754
735
|
complete: i ?? void 0
|
|
755
|
-
} : s = r, o.destination = new
|
|
736
|
+
} : s = r, o.destination = new Ln(s), o;
|
|
756
737
|
}
|
|
757
738
|
return t;
|
|
758
|
-
}(
|
|
739
|
+
}(Or);
|
|
759
740
|
function nt(e) {
|
|
760
|
-
|
|
741
|
+
Cn(e);
|
|
761
742
|
}
|
|
762
|
-
function
|
|
743
|
+
function Mn(e) {
|
|
763
744
|
throw e;
|
|
764
745
|
}
|
|
765
|
-
var
|
|
746
|
+
var Nn = {
|
|
766
747
|
closed: !0,
|
|
767
|
-
next:
|
|
768
|
-
error:
|
|
769
|
-
complete:
|
|
770
|
-
},
|
|
748
|
+
next: Yt,
|
|
749
|
+
error: Mn,
|
|
750
|
+
complete: Yt
|
|
751
|
+
}, Rn = function() {
|
|
771
752
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
772
753
|
}();
|
|
773
|
-
function
|
|
754
|
+
function Un(e) {
|
|
774
755
|
return e;
|
|
775
756
|
}
|
|
776
|
-
function
|
|
777
|
-
return e.length === 0 ?
|
|
757
|
+
function Fn(e) {
|
|
758
|
+
return e.length === 0 ? Un : e.length === 1 ? e[0] : function(r) {
|
|
778
759
|
return e.reduce(function(n, i) {
|
|
779
760
|
return i(n);
|
|
780
761
|
}, r);
|
|
781
762
|
};
|
|
782
763
|
}
|
|
783
|
-
var
|
|
764
|
+
var Kt = function() {
|
|
784
765
|
function e(t) {
|
|
785
766
|
t && (this._subscribe = t);
|
|
786
767
|
}
|
|
@@ -788,7 +769,7 @@ var Zt = function() {
|
|
|
788
769
|
var r = new e();
|
|
789
770
|
return r.source = this, r.operator = t, r;
|
|
790
771
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
791
|
-
var i = this, o =
|
|
772
|
+
var i = this, o = kn(t) ? t : new Mt(t, r, n);
|
|
792
773
|
return st(function() {
|
|
793
774
|
var s = i, a = s.operator, c = s.source;
|
|
794
775
|
o.add(a ? a.call(o, c) : c ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -801,8 +782,8 @@ var Zt = function() {
|
|
|
801
782
|
}
|
|
802
783
|
}, e.prototype.forEach = function(t, r) {
|
|
803
784
|
var n = this;
|
|
804
|
-
return r =
|
|
805
|
-
var s = new
|
|
785
|
+
return r = er(r), new r(function(i, o) {
|
|
786
|
+
var s = new Mt({
|
|
806
787
|
next: function(a) {
|
|
807
788
|
try {
|
|
808
789
|
t(a);
|
|
@@ -818,15 +799,15 @@ var Zt = function() {
|
|
|
818
799
|
}, e.prototype._subscribe = function(t) {
|
|
819
800
|
var r;
|
|
820
801
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
821
|
-
}, e.prototype[
|
|
802
|
+
}, e.prototype[Rn] = function() {
|
|
822
803
|
return this;
|
|
823
804
|
}, e.prototype.pipe = function() {
|
|
824
805
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
825
806
|
t[r] = arguments[r];
|
|
826
|
-
return
|
|
807
|
+
return Fn(t)(this);
|
|
827
808
|
}, e.prototype.toPromise = function(t) {
|
|
828
809
|
var r = this;
|
|
829
|
-
return t =
|
|
810
|
+
return t = er(t), new t(function(n, i) {
|
|
830
811
|
var o;
|
|
831
812
|
r.subscribe(function(s) {
|
|
832
813
|
return o = s;
|
|
@@ -840,32 +821,32 @@ var Zt = function() {
|
|
|
840
821
|
return new e(t);
|
|
841
822
|
}, e;
|
|
842
823
|
}();
|
|
843
|
-
function
|
|
824
|
+
function er(e) {
|
|
844
825
|
var t;
|
|
845
|
-
return (t = e ??
|
|
826
|
+
return (t = e ?? In.Promise) !== null && t !== void 0 ? t : Promise;
|
|
846
827
|
}
|
|
847
|
-
function
|
|
848
|
-
return e &&
|
|
828
|
+
function Dn(e) {
|
|
829
|
+
return e && ae(e.next) && ae(e.error) && ae(e.complete);
|
|
849
830
|
}
|
|
850
|
-
function
|
|
851
|
-
return e && e instanceof
|
|
831
|
+
function kn(e) {
|
|
832
|
+
return e && e instanceof Or || Dn(e) && Ir(e);
|
|
852
833
|
}
|
|
853
|
-
var
|
|
834
|
+
var $n = Br(function(e) {
|
|
854
835
|
return function() {
|
|
855
836
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
856
837
|
};
|
|
857
|
-
}),
|
|
858
|
-
|
|
838
|
+
}), Cr = function(e) {
|
|
839
|
+
We(t, e);
|
|
859
840
|
function t() {
|
|
860
841
|
var r = e.call(this) || this;
|
|
861
842
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
862
843
|
}
|
|
863
844
|
return t.prototype.lift = function(r) {
|
|
864
|
-
var n = new
|
|
845
|
+
var n = new tr(this, this);
|
|
865
846
|
return n.operator = r, n;
|
|
866
847
|
}, t.prototype._throwIfClosed = function() {
|
|
867
848
|
if (this.closed)
|
|
868
|
-
throw new
|
|
849
|
+
throw new $n();
|
|
869
850
|
}, t.prototype.next = function(r) {
|
|
870
851
|
var n = this;
|
|
871
852
|
st(function() {
|
|
@@ -873,7 +854,7 @@ var Un = xr(function(e) {
|
|
|
873
854
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
874
855
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
875
856
|
try {
|
|
876
|
-
for (var s =
|
|
857
|
+
for (var s = It(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
877
858
|
var c = a.value;
|
|
878
859
|
c.next(r);
|
|
879
860
|
}
|
|
@@ -922,20 +903,20 @@ var Un = xr(function(e) {
|
|
|
922
903
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
923
904
|
}, t.prototype._innerSubscribe = function(r) {
|
|
924
905
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
925
|
-
return o || s ?
|
|
926
|
-
n.currentObservers = null,
|
|
906
|
+
return o || s ? Ar : (this.currentObservers = null, a.push(r), new dt(function() {
|
|
907
|
+
n.currentObservers = null, Lt(a, r);
|
|
927
908
|
}));
|
|
928
909
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
929
910
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
930
911
|
i ? r.error(o) : s && r.complete();
|
|
931
912
|
}, t.prototype.asObservable = function() {
|
|
932
|
-
var r = new
|
|
913
|
+
var r = new Kt();
|
|
933
914
|
return r.source = this, r;
|
|
934
915
|
}, t.create = function(r, n) {
|
|
935
|
-
return new
|
|
916
|
+
return new tr(r, n);
|
|
936
917
|
}, t;
|
|
937
|
-
}(
|
|
938
|
-
|
|
918
|
+
}(Kt), tr = function(e) {
|
|
919
|
+
We(t, e);
|
|
939
920
|
function t(r, n) {
|
|
940
921
|
var i = e.call(this) || this;
|
|
941
922
|
return i.destination = r, i.source = n, i;
|
|
@@ -951,17 +932,17 @@ var Un = xr(function(e) {
|
|
|
951
932
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
952
933
|
}, t.prototype._subscribe = function(r) {
|
|
953
934
|
var n, i;
|
|
954
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
935
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ar;
|
|
955
936
|
}, t;
|
|
956
|
-
}(
|
|
937
|
+
}(Cr), Lr = {
|
|
957
938
|
now: function() {
|
|
958
|
-
return (
|
|
939
|
+
return (Lr.delegate || Date).now();
|
|
959
940
|
},
|
|
960
941
|
delegate: void 0
|
|
961
|
-
},
|
|
962
|
-
|
|
942
|
+
}, Gn = function(e) {
|
|
943
|
+
We(t, e);
|
|
963
944
|
function t(r, n, i) {
|
|
964
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
945
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Lr);
|
|
965
946
|
var o = e.call(this) || this;
|
|
966
947
|
return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
|
|
967
948
|
}
|
|
@@ -981,15 +962,15 @@ var Un = xr(function(e) {
|
|
|
981
962
|
l && o.splice(0, l + 1);
|
|
982
963
|
}
|
|
983
964
|
}, t;
|
|
984
|
-
}(
|
|
985
|
-
const
|
|
986
|
-
if (
|
|
987
|
-
const r = new
|
|
988
|
-
|
|
965
|
+
}(Cr);
|
|
966
|
+
const rr = [], nr = {}, jn = (e, t = 0) => {
|
|
967
|
+
if (rr.indexOf(e) == -1) {
|
|
968
|
+
const r = new Gn(t);
|
|
969
|
+
nr[e] = r, rr.push(e);
|
|
989
970
|
}
|
|
990
|
-
return
|
|
971
|
+
return nr[e];
|
|
991
972
|
}, Te = [];
|
|
992
|
-
function
|
|
973
|
+
function Vn(e, t) {
|
|
993
974
|
return {
|
|
994
975
|
subscribe: mt(e, t).subscribe
|
|
995
976
|
};
|
|
@@ -998,7 +979,7 @@ function mt(e, t = Z) {
|
|
|
998
979
|
let r;
|
|
999
980
|
const n = /* @__PURE__ */ new Set();
|
|
1000
981
|
function i(a) {
|
|
1001
|
-
if (
|
|
982
|
+
if (Pr(e, a) && (e = a, r)) {
|
|
1002
983
|
const c = !Te.length;
|
|
1003
984
|
for (const l of n)
|
|
1004
985
|
l[1](), Te.push(l, e);
|
|
@@ -1020,142 +1001,184 @@ function mt(e, t = Z) {
|
|
|
1020
1001
|
}
|
|
1021
1002
|
return { set: i, update: o, subscribe: s };
|
|
1022
1003
|
}
|
|
1023
|
-
function
|
|
1004
|
+
function Me(e, t, r) {
|
|
1024
1005
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
1025
1006
|
if (!i.every(Boolean))
|
|
1026
1007
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1027
1008
|
const o = t.length < 2;
|
|
1028
|
-
return
|
|
1009
|
+
return Vn(r, (s, a) => {
|
|
1029
1010
|
let c = !1;
|
|
1030
1011
|
const l = [];
|
|
1031
1012
|
let u = 0, f = Z;
|
|
1032
|
-
const
|
|
1013
|
+
const d = () => {
|
|
1033
1014
|
if (u)
|
|
1034
1015
|
return;
|
|
1035
1016
|
f();
|
|
1036
1017
|
const y = t(n ? l[0] : l, s, a);
|
|
1037
|
-
o ? s(y) : f =
|
|
1018
|
+
o ? s(y) : f = Vt(y) ? y : Z;
|
|
1038
1019
|
}, b = i.map(
|
|
1039
|
-
(y, g) =>
|
|
1020
|
+
(y, g) => Tr(
|
|
1040
1021
|
y,
|
|
1041
|
-
(
|
|
1042
|
-
l[g] =
|
|
1022
|
+
(x) => {
|
|
1023
|
+
l[g] = x, u &= ~(1 << g), c && d();
|
|
1043
1024
|
},
|
|
1044
1025
|
() => {
|
|
1045
1026
|
u |= 1 << g;
|
|
1046
1027
|
}
|
|
1047
1028
|
)
|
|
1048
1029
|
);
|
|
1049
|
-
return c = !0,
|
|
1050
|
-
|
|
1030
|
+
return c = !0, d(), function() {
|
|
1031
|
+
Le(b), f(), c = !1;
|
|
1051
1032
|
};
|
|
1052
1033
|
});
|
|
1053
1034
|
}
|
|
1054
|
-
function
|
|
1035
|
+
function zn(e) {
|
|
1055
1036
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1056
1037
|
}
|
|
1057
|
-
var
|
|
1058
|
-
return
|
|
1038
|
+
var Xn = function(t) {
|
|
1039
|
+
return Wn(t) && !Zn(t);
|
|
1059
1040
|
};
|
|
1060
|
-
function
|
|
1041
|
+
function Wn(e) {
|
|
1061
1042
|
return !!e && typeof e == "object";
|
|
1062
1043
|
}
|
|
1063
|
-
function
|
|
1044
|
+
function Zn(e) {
|
|
1064
1045
|
var t = Object.prototype.toString.call(e);
|
|
1065
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1046
|
+
return t === "[object RegExp]" || t === "[object Date]" || Qn(e);
|
|
1066
1047
|
}
|
|
1067
|
-
var
|
|
1068
|
-
function
|
|
1069
|
-
return e.$$typeof ===
|
|
1048
|
+
var qn = typeof Symbol == "function" && Symbol.for, Jn = qn ? Symbol.for("react.element") : 60103;
|
|
1049
|
+
function Qn(e) {
|
|
1050
|
+
return e.$$typeof === Jn;
|
|
1070
1051
|
}
|
|
1071
|
-
function
|
|
1052
|
+
function Yn(e) {
|
|
1072
1053
|
return Array.isArray(e) ? [] : {};
|
|
1073
1054
|
}
|
|
1074
|
-
function
|
|
1075
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
1055
|
+
function ze(e, t) {
|
|
1056
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ae(Yn(e), e, t) : e;
|
|
1076
1057
|
}
|
|
1077
|
-
function
|
|
1058
|
+
function Kn(e, t, r) {
|
|
1078
1059
|
return e.concat(t).map(function(n) {
|
|
1079
|
-
return
|
|
1060
|
+
return ze(n, r);
|
|
1080
1061
|
});
|
|
1081
1062
|
}
|
|
1082
|
-
function
|
|
1063
|
+
function ei(e, t) {
|
|
1083
1064
|
if (!t.customMerge)
|
|
1084
|
-
return
|
|
1065
|
+
return Ae;
|
|
1085
1066
|
var r = t.customMerge(e);
|
|
1086
|
-
return typeof r == "function" ? r :
|
|
1067
|
+
return typeof r == "function" ? r : Ae;
|
|
1087
1068
|
}
|
|
1088
|
-
function
|
|
1069
|
+
function ti(e) {
|
|
1089
1070
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1090
1071
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1091
1072
|
}) : [];
|
|
1092
1073
|
}
|
|
1093
|
-
function
|
|
1094
|
-
return Object.keys(e).concat(
|
|
1074
|
+
function ir(e) {
|
|
1075
|
+
return Object.keys(e).concat(ti(e));
|
|
1095
1076
|
}
|
|
1096
|
-
function
|
|
1077
|
+
function Mr(e, t) {
|
|
1097
1078
|
try {
|
|
1098
1079
|
return t in e;
|
|
1099
1080
|
} catch {
|
|
1100
1081
|
return !1;
|
|
1101
1082
|
}
|
|
1102
1083
|
}
|
|
1103
|
-
function
|
|
1104
|
-
return
|
|
1084
|
+
function ri(e, t) {
|
|
1085
|
+
return Mr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1105
1086
|
}
|
|
1106
|
-
function
|
|
1087
|
+
function ni(e, t, r) {
|
|
1107
1088
|
var n = {};
|
|
1108
|
-
return r.isMergeableObject(e) &&
|
|
1109
|
-
n[i] =
|
|
1110
|
-
}),
|
|
1111
|
-
|
|
1089
|
+
return r.isMergeableObject(e) && ir(e).forEach(function(i) {
|
|
1090
|
+
n[i] = ze(e[i], r);
|
|
1091
|
+
}), ir(t).forEach(function(i) {
|
|
1092
|
+
ri(e, i) || (Mr(e, i) && r.isMergeableObject(t[i]) ? n[i] = ei(i, r)(e[i], t[i], r) : n[i] = ze(t[i], r));
|
|
1112
1093
|
}), n;
|
|
1113
1094
|
}
|
|
1114
|
-
function
|
|
1115
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1095
|
+
function Ae(e, t, r) {
|
|
1096
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Kn, r.isMergeableObject = r.isMergeableObject || Xn, r.cloneUnlessOtherwiseSpecified = ze;
|
|
1116
1097
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1117
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1098
|
+
return o ? n ? r.arrayMerge(e, t, r) : ni(e, t, r) : ze(t, r);
|
|
1118
1099
|
}
|
|
1119
|
-
|
|
1100
|
+
Ae.all = function(t, r) {
|
|
1120
1101
|
if (!Array.isArray(t))
|
|
1121
1102
|
throw new Error("first argument should be an array");
|
|
1122
1103
|
return t.reduce(function(n, i) {
|
|
1123
|
-
return
|
|
1104
|
+
return Ae(n, i, r);
|
|
1124
1105
|
}, {});
|
|
1125
1106
|
};
|
|
1126
|
-
var
|
|
1127
|
-
const
|
|
1128
|
-
function
|
|
1129
|
-
|
|
1107
|
+
var ii = Ae, oi = ii;
|
|
1108
|
+
const si = /* @__PURE__ */ zn(oi);
|
|
1109
|
+
var Nt = function(e, t) {
|
|
1110
|
+
return Nt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
1111
|
+
r.__proto__ = n;
|
|
1112
|
+
} || function(r, n) {
|
|
1113
|
+
for (var i in n)
|
|
1114
|
+
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
1115
|
+
}, Nt(e, t);
|
|
1116
|
+
};
|
|
1117
|
+
function pt(e, t) {
|
|
1118
|
+
if (typeof t != "function" && t !== null)
|
|
1119
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
1120
|
+
Nt(e, t);
|
|
1121
|
+
function r() {
|
|
1122
|
+
this.constructor = e;
|
|
1123
|
+
}
|
|
1124
|
+
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
1125
|
+
}
|
|
1126
|
+
var ie = function() {
|
|
1127
|
+
return ie = Object.assign || function(t) {
|
|
1128
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1129
|
+
r = arguments[n];
|
|
1130
|
+
for (var o in r)
|
|
1131
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1132
|
+
}
|
|
1133
|
+
return t;
|
|
1134
|
+
}, ie.apply(this, arguments);
|
|
1135
|
+
};
|
|
1136
|
+
function ai(e, t) {
|
|
1137
|
+
var r = {};
|
|
1138
|
+
for (var n in e)
|
|
1139
|
+
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
1140
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1141
|
+
for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
|
|
1142
|
+
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
1143
|
+
return r;
|
|
1144
|
+
}
|
|
1145
|
+
function wt(e, t, r) {
|
|
1146
|
+
if (r || arguments.length === 2)
|
|
1147
|
+
for (var n = 0, i = t.length, o; n < i; n++)
|
|
1148
|
+
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
1149
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
1150
|
+
}
|
|
1151
|
+
function Et(e, t) {
|
|
1152
|
+
var r = t && t.cache ? t.cache : mi, n = t && t.serializer ? t.serializer : fi, i = t && t.strategy ? t.strategy : ci;
|
|
1130
1153
|
return i(e, {
|
|
1131
1154
|
cache: r,
|
|
1132
1155
|
serializer: n
|
|
1133
1156
|
});
|
|
1134
1157
|
}
|
|
1135
|
-
function
|
|
1158
|
+
function li(e) {
|
|
1136
1159
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1137
1160
|
}
|
|
1138
|
-
function
|
|
1139
|
-
var i =
|
|
1161
|
+
function ui(e, t, r, n) {
|
|
1162
|
+
var i = li(n) ? n : r(n), o = t.get(i);
|
|
1140
1163
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1141
1164
|
}
|
|
1142
|
-
function
|
|
1165
|
+
function Nr(e, t, r) {
|
|
1143
1166
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1144
1167
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1145
1168
|
}
|
|
1146
|
-
function
|
|
1169
|
+
function Rr(e, t, r, n, i) {
|
|
1147
1170
|
return r.bind(t, e, n, i);
|
|
1148
1171
|
}
|
|
1149
|
-
function
|
|
1150
|
-
var r = e.length === 1 ?
|
|
1151
|
-
return
|
|
1172
|
+
function ci(e, t) {
|
|
1173
|
+
var r = e.length === 1 ? ui : Nr;
|
|
1174
|
+
return Rr(e, this, r, t.cache.create(), t.serializer);
|
|
1152
1175
|
}
|
|
1153
|
-
function
|
|
1154
|
-
return
|
|
1176
|
+
function hi(e, t) {
|
|
1177
|
+
return Rr(e, this, Nr, t.cache.create(), t.serializer);
|
|
1155
1178
|
}
|
|
1156
|
-
var
|
|
1179
|
+
var fi = function() {
|
|
1157
1180
|
return JSON.stringify(arguments);
|
|
1158
|
-
},
|
|
1181
|
+
}, di = (
|
|
1159
1182
|
/** @class */
|
|
1160
1183
|
function() {
|
|
1161
1184
|
function e() {
|
|
@@ -1167,61 +1190,71 @@ var ai = function() {
|
|
|
1167
1190
|
this.cache[t] = r;
|
|
1168
1191
|
}, e;
|
|
1169
1192
|
}()
|
|
1170
|
-
),
|
|
1193
|
+
), mi = {
|
|
1171
1194
|
create: function() {
|
|
1172
|
-
return new
|
|
1195
|
+
return new di();
|
|
1173
1196
|
}
|
|
1174
|
-
},
|
|
1175
|
-
variadic:
|
|
1176
|
-
},
|
|
1197
|
+
}, xt = {
|
|
1198
|
+
variadic: hi
|
|
1199
|
+
}, ct = function() {
|
|
1200
|
+
return ct = Object.assign || function(t) {
|
|
1201
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1202
|
+
r = arguments[n];
|
|
1203
|
+
for (var o in r)
|
|
1204
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1205
|
+
}
|
|
1206
|
+
return t;
|
|
1207
|
+
}, ct.apply(this, arguments);
|
|
1208
|
+
};
|
|
1209
|
+
var _;
|
|
1177
1210
|
(function(e) {
|
|
1178
1211
|
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";
|
|
1179
1212
|
})(_ || (_ = {}));
|
|
1180
|
-
var
|
|
1213
|
+
var P;
|
|
1181
1214
|
(function(e) {
|
|
1182
1215
|
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";
|
|
1183
|
-
})(
|
|
1184
|
-
var
|
|
1216
|
+
})(P || (P = {}));
|
|
1217
|
+
var Ie;
|
|
1185
1218
|
(function(e) {
|
|
1186
1219
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1187
|
-
})(
|
|
1188
|
-
function
|
|
1189
|
-
return e.type ===
|
|
1220
|
+
})(Ie || (Ie = {}));
|
|
1221
|
+
function or(e) {
|
|
1222
|
+
return e.type === P.literal;
|
|
1190
1223
|
}
|
|
1191
|
-
function
|
|
1192
|
-
return e.type ===
|
|
1224
|
+
function pi(e) {
|
|
1225
|
+
return e.type === P.argument;
|
|
1193
1226
|
}
|
|
1194
|
-
function
|
|
1195
|
-
return e.type ===
|
|
1227
|
+
function Ur(e) {
|
|
1228
|
+
return e.type === P.number;
|
|
1196
1229
|
}
|
|
1197
|
-
function
|
|
1198
|
-
return e.type ===
|
|
1230
|
+
function Fr(e) {
|
|
1231
|
+
return e.type === P.date;
|
|
1199
1232
|
}
|
|
1200
|
-
function
|
|
1201
|
-
return e.type ===
|
|
1233
|
+
function Dr(e) {
|
|
1234
|
+
return e.type === P.time;
|
|
1202
1235
|
}
|
|
1203
|
-
function
|
|
1204
|
-
return e.type ===
|
|
1236
|
+
function kr(e) {
|
|
1237
|
+
return e.type === P.select;
|
|
1205
1238
|
}
|
|
1206
|
-
function
|
|
1207
|
-
return e.type ===
|
|
1239
|
+
function $r(e) {
|
|
1240
|
+
return e.type === P.plural;
|
|
1208
1241
|
}
|
|
1209
|
-
function
|
|
1210
|
-
return e.type ===
|
|
1242
|
+
function gi(e) {
|
|
1243
|
+
return e.type === P.pound;
|
|
1211
1244
|
}
|
|
1212
|
-
function
|
|
1213
|
-
return e.type ===
|
|
1245
|
+
function Gr(e) {
|
|
1246
|
+
return e.type === P.tag;
|
|
1214
1247
|
}
|
|
1215
|
-
function
|
|
1216
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1248
|
+
function jr(e) {
|
|
1249
|
+
return !!(e && typeof e == "object" && e.type === Ie.number);
|
|
1217
1250
|
}
|
|
1218
|
-
function
|
|
1219
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1251
|
+
function Rt(e) {
|
|
1252
|
+
return !!(e && typeof e == "object" && e.type === Ie.dateTime);
|
|
1220
1253
|
}
|
|
1221
|
-
var
|
|
1222
|
-
function
|
|
1254
|
+
var Vr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, bi = /(?:[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;
|
|
1255
|
+
function vi(e) {
|
|
1223
1256
|
var t = {};
|
|
1224
|
-
return e.replace(
|
|
1257
|
+
return e.replace(bi, function(r) {
|
|
1225
1258
|
var n = r.length;
|
|
1226
1259
|
switch (r[0]) {
|
|
1227
1260
|
case "G":
|
|
@@ -1310,12 +1343,22 @@ function mi(e) {
|
|
|
1310
1343
|
return "";
|
|
1311
1344
|
}), t;
|
|
1312
1345
|
}
|
|
1313
|
-
var
|
|
1314
|
-
function
|
|
1346
|
+
var T = function() {
|
|
1347
|
+
return T = Object.assign || function(t) {
|
|
1348
|
+
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1349
|
+
r = arguments[n];
|
|
1350
|
+
for (var o in r)
|
|
1351
|
+
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1352
|
+
}
|
|
1353
|
+
return t;
|
|
1354
|
+
}, T.apply(this, arguments);
|
|
1355
|
+
};
|
|
1356
|
+
var yi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1357
|
+
function _i(e) {
|
|
1315
1358
|
if (e.length === 0)
|
|
1316
1359
|
throw new Error("Number skeleton cannot be empty");
|
|
1317
|
-
for (var t = e.split(
|
|
1318
|
-
return
|
|
1360
|
+
for (var t = e.split(yi).filter(function(d) {
|
|
1361
|
+
return d.length > 0;
|
|
1319
1362
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1320
1363
|
var o = i[n], s = o.split("/");
|
|
1321
1364
|
if (s.length === 0)
|
|
@@ -1329,17 +1372,17 @@ function pi(e) {
|
|
|
1329
1372
|
}
|
|
1330
1373
|
return r;
|
|
1331
1374
|
}
|
|
1332
|
-
function
|
|
1375
|
+
function wi(e) {
|
|
1333
1376
|
return e.replace(/^(.*?)-/, "");
|
|
1334
1377
|
}
|
|
1335
|
-
var
|
|
1336
|
-
function
|
|
1378
|
+
var sr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, zr = /^(@+)?(\+|#+)?[rs]?$/g, Ei = /(\*)(0+)|(#+)(0+)|(0+)/g, Xr = /^(0+)$/;
|
|
1379
|
+
function ar(e) {
|
|
1337
1380
|
var t = {};
|
|
1338
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1381
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(zr, function(r, n, i) {
|
|
1339
1382
|
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)), "";
|
|
1340
1383
|
}), t;
|
|
1341
1384
|
}
|
|
1342
|
-
function
|
|
1385
|
+
function Wr(e) {
|
|
1343
1386
|
switch (e) {
|
|
1344
1387
|
case "sign-auto":
|
|
1345
1388
|
return {
|
|
@@ -1379,7 +1422,7 @@ function $r(e) {
|
|
|
1379
1422
|
};
|
|
1380
1423
|
}
|
|
1381
1424
|
}
|
|
1382
|
-
function
|
|
1425
|
+
function xi(e) {
|
|
1383
1426
|
var t;
|
|
1384
1427
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1385
1428
|
notation: "engineering"
|
|
@@ -1387,17 +1430,17 @@ function vi(e) {
|
|
|
1387
1430
|
notation: "scientific"
|
|
1388
1431
|
}, e = e.slice(1)), t) {
|
|
1389
1432
|
var r = e.slice(0, 2);
|
|
1390
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1433
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Xr.test(e))
|
|
1391
1434
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1392
1435
|
t.minimumIntegerDigits = e.length;
|
|
1393
1436
|
}
|
|
1394
1437
|
return t;
|
|
1395
1438
|
}
|
|
1396
|
-
function
|
|
1397
|
-
var t = {}, r =
|
|
1439
|
+
function lr(e) {
|
|
1440
|
+
var t = {}, r = Wr(e);
|
|
1398
1441
|
return r || t;
|
|
1399
1442
|
}
|
|
1400
|
-
function
|
|
1443
|
+
function Si(e) {
|
|
1401
1444
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1402
1445
|
var i = n[r];
|
|
1403
1446
|
switch (i.stem) {
|
|
@@ -1421,7 +1464,7 @@ function yi(e) {
|
|
|
1421
1464
|
continue;
|
|
1422
1465
|
case "measure-unit":
|
|
1423
1466
|
case "unit":
|
|
1424
|
-
t.style = "unit", t.unit =
|
|
1467
|
+
t.style = "unit", t.unit = wi(i.options[0]);
|
|
1425
1468
|
continue;
|
|
1426
1469
|
case "compact-short":
|
|
1427
1470
|
case "K":
|
|
@@ -1432,13 +1475,13 @@ function yi(e) {
|
|
|
1432
1475
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1433
1476
|
continue;
|
|
1434
1477
|
case "scientific":
|
|
1435
|
-
t =
|
|
1436
|
-
return
|
|
1478
|
+
t = T(T(T({}, t), { notation: "scientific" }), i.options.reduce(function(c, l) {
|
|
1479
|
+
return T(T({}, c), lr(l));
|
|
1437
1480
|
}, {}));
|
|
1438
1481
|
continue;
|
|
1439
1482
|
case "engineering":
|
|
1440
|
-
t =
|
|
1441
|
-
return
|
|
1483
|
+
t = T(T(T({}, t), { notation: "engineering" }), i.options.reduce(function(c, l) {
|
|
1484
|
+
return T(T({}, c), lr(l));
|
|
1442
1485
|
}, {}));
|
|
1443
1486
|
continue;
|
|
1444
1487
|
case "notation-simple":
|
|
@@ -1483,11 +1526,11 @@ function yi(e) {
|
|
|
1483
1526
|
case "integer-width":
|
|
1484
1527
|
if (i.options.length > 1)
|
|
1485
1528
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1486
|
-
i.options[0].replace(
|
|
1529
|
+
i.options[0].replace(Ei, function(c, l, u, f, d, b) {
|
|
1487
1530
|
if (l)
|
|
1488
1531
|
t.minimumIntegerDigits = u.length;
|
|
1489
1532
|
else {
|
|
1490
|
-
if (f &&
|
|
1533
|
+
if (f && d)
|
|
1491
1534
|
throw new Error("We currently do not support maximum integer digits");
|
|
1492
1535
|
if (b)
|
|
1493
1536
|
throw new Error("We currently do not support exact integer digits");
|
|
@@ -1496,28 +1539,28 @@ function yi(e) {
|
|
|
1496
1539
|
});
|
|
1497
1540
|
continue;
|
|
1498
1541
|
}
|
|
1499
|
-
if (
|
|
1542
|
+
if (Xr.test(i.stem)) {
|
|
1500
1543
|
t.minimumIntegerDigits = i.stem.length;
|
|
1501
1544
|
continue;
|
|
1502
1545
|
}
|
|
1503
|
-
if (
|
|
1546
|
+
if (sr.test(i.stem)) {
|
|
1504
1547
|
if (i.options.length > 1)
|
|
1505
1548
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1506
|
-
i.stem.replace(
|
|
1507
|
-
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length :
|
|
1549
|
+
i.stem.replace(sr, function(c, l, u, f, d, b) {
|
|
1550
|
+
return u === "*" ? t.minimumFractionDigits = l.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && b ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + b.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1508
1551
|
});
|
|
1509
1552
|
var o = i.options[0];
|
|
1510
|
-
o === "w" ? t =
|
|
1553
|
+
o === "w" ? t = T(T({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = T(T({}, t), ar(o)));
|
|
1511
1554
|
continue;
|
|
1512
1555
|
}
|
|
1513
|
-
if (
|
|
1514
|
-
t =
|
|
1556
|
+
if (zr.test(i.stem)) {
|
|
1557
|
+
t = T(T({}, t), ar(i.stem));
|
|
1515
1558
|
continue;
|
|
1516
1559
|
}
|
|
1517
|
-
var s =
|
|
1518
|
-
s && (t =
|
|
1519
|
-
var a =
|
|
1520
|
-
a && (t =
|
|
1560
|
+
var s = Wr(i.stem);
|
|
1561
|
+
s && (t = T(T({}, t), s));
|
|
1562
|
+
var a = xi(i.stem);
|
|
1563
|
+
a && (t = T(T({}, t), a));
|
|
1521
1564
|
}
|
|
1522
1565
|
return t;
|
|
1523
1566
|
}
|
|
@@ -2936,13 +2979,13 @@ var it = {
|
|
|
2936
2979
|
"h"
|
|
2937
2980
|
]
|
|
2938
2981
|
};
|
|
2939
|
-
function
|
|
2982
|
+
function Pi(e, t) {
|
|
2940
2983
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2941
2984
|
var i = e.charAt(n);
|
|
2942
2985
|
if (i === "j") {
|
|
2943
2986
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2944
2987
|
o++, n++;
|
|
2945
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", l =
|
|
2988
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), c = "a", l = Ti(t);
|
|
2946
2989
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2947
2990
|
r += c;
|
|
2948
2991
|
for (; s-- > 0; )
|
|
@@ -2952,7 +2995,7 @@ function _i(e, t) {
|
|
|
2952
2995
|
}
|
|
2953
2996
|
return r;
|
|
2954
2997
|
}
|
|
2955
|
-
function
|
|
2998
|
+
function Ti(e) {
|
|
2956
2999
|
var t = e.hourCycle;
|
|
2957
3000
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2958
3001
|
e.hourCycles && // @ts-ignore
|
|
@@ -2974,20 +3017,20 @@ function wi(e) {
|
|
|
2974
3017
|
var i = it[n || ""] || it[r || ""] || it["".concat(r, "-001")] || it["001"];
|
|
2975
3018
|
return i[0];
|
|
2976
3019
|
}
|
|
2977
|
-
var
|
|
3020
|
+
var St, Hi = new RegExp("^".concat(Vr.source, "*")), Bi = new RegExp("".concat(Vr.source, "*$"));
|
|
2978
3021
|
function w(e, t) {
|
|
2979
3022
|
return { start: e, end: t };
|
|
2980
3023
|
}
|
|
2981
|
-
var
|
|
3024
|
+
var Ai = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ii = !!String.fromCodePoint, Oi = !!Object.fromEntries, Ci = !!String.prototype.codePointAt, Li = !!String.prototype.trimStart, Mi = !!String.prototype.trimEnd, Ni = !!Number.isSafeInteger, Ri = Ni ? Number.isSafeInteger : function(e) {
|
|
2982
3025
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2983
|
-
},
|
|
3026
|
+
}, Ut = !0;
|
|
2984
3027
|
try {
|
|
2985
|
-
var
|
|
2986
|
-
|
|
3028
|
+
var Ui = qr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3029
|
+
Ut = ((St = Ui.exec("a")) === null || St === void 0 ? void 0 : St[0]) === "a";
|
|
2987
3030
|
} catch {
|
|
2988
|
-
|
|
3031
|
+
Ut = !1;
|
|
2989
3032
|
}
|
|
2990
|
-
var
|
|
3033
|
+
var ur = Ai ? (
|
|
2991
3034
|
// Native
|
|
2992
3035
|
function(t, r, n) {
|
|
2993
3036
|
return t.startsWith(r, n);
|
|
@@ -2997,7 +3040,7 @@ var ir = Si ? (
|
|
|
2997
3040
|
function(t, r, n) {
|
|
2998
3041
|
return t.slice(n, n + r.length) === r;
|
|
2999
3042
|
}
|
|
3000
|
-
),
|
|
3043
|
+
), Ft = Ii ? String.fromCodePoint : (
|
|
3001
3044
|
// IE11
|
|
3002
3045
|
function() {
|
|
3003
3046
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3009,9 +3052,9 @@ var ir = Si ? (
|
|
|
3009
3052
|
}
|
|
3010
3053
|
return n;
|
|
3011
3054
|
}
|
|
3012
|
-
),
|
|
3055
|
+
), cr = (
|
|
3013
3056
|
// native
|
|
3014
|
-
|
|
3057
|
+
Oi ? Object.fromEntries : (
|
|
3015
3058
|
// Ponyfill
|
|
3016
3059
|
function(t) {
|
|
3017
3060
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3021,7 +3064,7 @@ var ir = Si ? (
|
|
|
3021
3064
|
return r;
|
|
3022
3065
|
}
|
|
3023
3066
|
)
|
|
3024
|
-
),
|
|
3067
|
+
), Zr = Ci ? (
|
|
3025
3068
|
// Native
|
|
3026
3069
|
function(t, r) {
|
|
3027
3070
|
return t.codePointAt(r);
|
|
@@ -3035,7 +3078,7 @@ var ir = Si ? (
|
|
|
3035
3078
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3036
3079
|
}
|
|
3037
3080
|
}
|
|
3038
|
-
),
|
|
3081
|
+
), Fi = Li ? (
|
|
3039
3082
|
// Native
|
|
3040
3083
|
function(t) {
|
|
3041
3084
|
return t.trimStart();
|
|
@@ -3043,9 +3086,9 @@ var ir = Si ? (
|
|
|
3043
3086
|
) : (
|
|
3044
3087
|
// Ponyfill
|
|
3045
3088
|
function(t) {
|
|
3046
|
-
return t.replace(
|
|
3089
|
+
return t.replace(Hi, "");
|
|
3047
3090
|
}
|
|
3048
|
-
),
|
|
3091
|
+
), Di = Mi ? (
|
|
3049
3092
|
// Native
|
|
3050
3093
|
function(t) {
|
|
3051
3094
|
return t.trimEnd();
|
|
@@ -3053,32 +3096,32 @@ var ir = Si ? (
|
|
|
3053
3096
|
) : (
|
|
3054
3097
|
// Ponyfill
|
|
3055
3098
|
function(t) {
|
|
3056
|
-
return t.replace(
|
|
3099
|
+
return t.replace(Bi, "");
|
|
3057
3100
|
}
|
|
3058
3101
|
);
|
|
3059
|
-
function
|
|
3102
|
+
function qr(e, t) {
|
|
3060
3103
|
return new RegExp(e, t);
|
|
3061
3104
|
}
|
|
3062
|
-
var
|
|
3063
|
-
if (
|
|
3064
|
-
var
|
|
3065
|
-
|
|
3105
|
+
var Dt;
|
|
3106
|
+
if (Ut) {
|
|
3107
|
+
var hr = qr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3108
|
+
Dt = function(t, r) {
|
|
3066
3109
|
var n;
|
|
3067
|
-
|
|
3068
|
-
var i =
|
|
3110
|
+
hr.lastIndex = r;
|
|
3111
|
+
var i = hr.exec(t);
|
|
3069
3112
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3070
3113
|
};
|
|
3071
3114
|
} else
|
|
3072
|
-
|
|
3115
|
+
Dt = function(t, r) {
|
|
3073
3116
|
for (var n = []; ; ) {
|
|
3074
|
-
var i =
|
|
3075
|
-
if (i === void 0 ||
|
|
3117
|
+
var i = Zr(t, r);
|
|
3118
|
+
if (i === void 0 || Jr(i) || ji(i))
|
|
3076
3119
|
break;
|
|
3077
3120
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3078
3121
|
}
|
|
3079
|
-
return
|
|
3122
|
+
return Ft.apply(void 0, n);
|
|
3080
3123
|
};
|
|
3081
|
-
var
|
|
3124
|
+
var ki = (
|
|
3082
3125
|
/** @class */
|
|
3083
3126
|
function() {
|
|
3084
3127
|
function e(t, r) {
|
|
@@ -3102,14 +3145,14 @@ var Ni = (
|
|
|
3102
3145
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
3103
3146
|
var a = this.clonePosition();
|
|
3104
3147
|
this.bump(), i.push({
|
|
3105
|
-
type:
|
|
3148
|
+
type: P.pound,
|
|
3106
3149
|
location: w(a, this.clonePosition())
|
|
3107
3150
|
});
|
|
3108
3151
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
3109
3152
|
if (n)
|
|
3110
3153
|
break;
|
|
3111
3154
|
return this.error(_.UNMATCHED_CLOSING_TAG, w(this.clonePosition(), this.clonePosition()));
|
|
3112
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3155
|
+
} else if (o === 60 && !this.ignoreTag && kt(this.peek() || 0)) {
|
|
3113
3156
|
var s = this.parseTag(t, r);
|
|
3114
3157
|
if (s.err)
|
|
3115
3158
|
return s;
|
|
@@ -3130,7 +3173,7 @@ var Ni = (
|
|
|
3130
3173
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
3131
3174
|
return {
|
|
3132
3175
|
val: {
|
|
3133
|
-
type:
|
|
3176
|
+
type: P.literal,
|
|
3134
3177
|
value: "<".concat(i, "/>"),
|
|
3135
3178
|
location: w(n, this.clonePosition())
|
|
3136
3179
|
},
|
|
@@ -3142,12 +3185,12 @@ var Ni = (
|
|
|
3142
3185
|
return o;
|
|
3143
3186
|
var s = o.val, a = this.clonePosition();
|
|
3144
3187
|
if (this.bumpIf("</")) {
|
|
3145
|
-
if (this.isEOF() || !
|
|
3188
|
+
if (this.isEOF() || !kt(this.char()))
|
|
3146
3189
|
return this.error(_.INVALID_TAG, w(a, this.clonePosition()));
|
|
3147
3190
|
var c = this.clonePosition(), l = this.parseTagName();
|
|
3148
3191
|
return i !== l ? this.error(_.UNMATCHED_CLOSING_TAG, w(c, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3149
3192
|
val: {
|
|
3150
|
-
type:
|
|
3193
|
+
type: P.tag,
|
|
3151
3194
|
value: i,
|
|
3152
3195
|
children: s,
|
|
3153
3196
|
location: w(n, this.clonePosition())
|
|
@@ -3160,7 +3203,7 @@ var Ni = (
|
|
|
3160
3203
|
return this.error(_.INVALID_TAG, w(n, this.clonePosition()));
|
|
3161
3204
|
}, e.prototype.parseTagName = function() {
|
|
3162
3205
|
var t = this.offset();
|
|
3163
|
-
for (this.bump(); !this.isEOF() &&
|
|
3206
|
+
for (this.bump(); !this.isEOF() && Gi(this.char()); )
|
|
3164
3207
|
this.bump();
|
|
3165
3208
|
return this.message.slice(t, this.offset());
|
|
3166
3209
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3184,12 +3227,12 @@ var Ni = (
|
|
|
3184
3227
|
}
|
|
3185
3228
|
var c = w(n, this.clonePosition());
|
|
3186
3229
|
return {
|
|
3187
|
-
val: { type:
|
|
3230
|
+
val: { type: P.literal, value: i, location: c },
|
|
3188
3231
|
err: null
|
|
3189
3232
|
};
|
|
3190
3233
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3191
3234
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3192
|
-
|
|
3235
|
+
!$i(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3193
3236
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3194
3237
|
if (this.isEOF() || this.char() !== 39)
|
|
3195
3238
|
return null;
|
|
@@ -3223,12 +3266,12 @@ var Ni = (
|
|
|
3223
3266
|
r.push(n);
|
|
3224
3267
|
this.bump();
|
|
3225
3268
|
}
|
|
3226
|
-
return
|
|
3269
|
+
return Ft.apply(void 0, r);
|
|
3227
3270
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3228
3271
|
if (this.isEOF())
|
|
3229
3272
|
return null;
|
|
3230
3273
|
var n = this.char();
|
|
3231
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3274
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ft(n));
|
|
3232
3275
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3233
3276
|
var n = this.clonePosition();
|
|
3234
3277
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3244,7 +3287,7 @@ var Ni = (
|
|
|
3244
3287
|
case 125:
|
|
3245
3288
|
return this.bump(), {
|
|
3246
3289
|
val: {
|
|
3247
|
-
type:
|
|
3290
|
+
type: P.argument,
|
|
3248
3291
|
// value does not include the opening and closing braces.
|
|
3249
3292
|
value: i,
|
|
3250
3293
|
location: w(n, this.clonePosition())
|
|
@@ -3257,7 +3300,7 @@ var Ni = (
|
|
|
3257
3300
|
return this.error(_.MALFORMED_ARGUMENT, w(n, this.clonePosition()));
|
|
3258
3301
|
}
|
|
3259
3302
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3260
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3303
|
+
var t = this.clonePosition(), r = this.offset(), n = Dt(this.message, r), i = r + n.length;
|
|
3261
3304
|
this.bumpTo(i);
|
|
3262
3305
|
var o = this.clonePosition(), s = w(t, o);
|
|
3263
3306
|
return { value: n, location: s };
|
|
@@ -3276,44 +3319,44 @@ var Ni = (
|
|
|
3276
3319
|
var u = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3277
3320
|
if (f.err)
|
|
3278
3321
|
return f;
|
|
3279
|
-
var
|
|
3280
|
-
if (
|
|
3322
|
+
var d = Di(f.val);
|
|
3323
|
+
if (d.length === 0)
|
|
3281
3324
|
return this.error(_.EXPECT_ARGUMENT_STYLE, w(this.clonePosition(), this.clonePosition()));
|
|
3282
3325
|
var b = w(u, this.clonePosition());
|
|
3283
|
-
l = { style:
|
|
3326
|
+
l = { style: d, styleLocation: b };
|
|
3284
3327
|
}
|
|
3285
3328
|
var y = this.tryParseArgumentClose(i);
|
|
3286
3329
|
if (y.err)
|
|
3287
3330
|
return y;
|
|
3288
3331
|
var g = w(i, this.clonePosition());
|
|
3289
|
-
if (l &&
|
|
3290
|
-
var
|
|
3332
|
+
if (l && ur(l?.style, "::", 0)) {
|
|
3333
|
+
var x = Fi(l.style.slice(2));
|
|
3291
3334
|
if (a === "number") {
|
|
3292
|
-
var f = this.parseNumberSkeletonFromString(
|
|
3335
|
+
var f = this.parseNumberSkeletonFromString(x, l.styleLocation);
|
|
3293
3336
|
return f.err ? f : {
|
|
3294
|
-
val: { type:
|
|
3337
|
+
val: { type: P.number, value: n, location: g, style: f.val },
|
|
3295
3338
|
err: null
|
|
3296
3339
|
};
|
|
3297
3340
|
} else {
|
|
3298
|
-
if (
|
|
3341
|
+
if (x.length === 0)
|
|
3299
3342
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, g);
|
|
3300
|
-
var
|
|
3301
|
-
this.locale && (
|
|
3302
|
-
var
|
|
3303
|
-
type:
|
|
3304
|
-
pattern:
|
|
3343
|
+
var O = x;
|
|
3344
|
+
this.locale && (O = Pi(x, this.locale));
|
|
3345
|
+
var d = {
|
|
3346
|
+
type: Ie.dateTime,
|
|
3347
|
+
pattern: O,
|
|
3305
3348
|
location: l.styleLocation,
|
|
3306
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3307
|
-
}, z = a === "date" ?
|
|
3349
|
+
parsedOptions: this.shouldParseSkeletons ? vi(O) : {}
|
|
3350
|
+
}, z = a === "date" ? P.date : P.time;
|
|
3308
3351
|
return {
|
|
3309
|
-
val: { type: z, value: n, location: g, style:
|
|
3352
|
+
val: { type: z, value: n, location: g, style: d },
|
|
3310
3353
|
err: null
|
|
3311
3354
|
};
|
|
3312
3355
|
}
|
|
3313
3356
|
}
|
|
3314
3357
|
return {
|
|
3315
3358
|
val: {
|
|
3316
|
-
type: a === "number" ?
|
|
3359
|
+
type: a === "number" ? P.number : a === "date" ? P.date : P.time,
|
|
3317
3360
|
value: n,
|
|
3318
3361
|
location: g,
|
|
3319
3362
|
style: (o = l?.style) !== null && o !== void 0 ? o : null
|
|
@@ -3326,7 +3369,7 @@ var Ni = (
|
|
|
3326
3369
|
case "select": {
|
|
3327
3370
|
var R = this.clonePosition();
|
|
3328
3371
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3329
|
-
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, w(R,
|
|
3372
|
+
return this.error(_.EXPECT_SELECT_ARGUMENT_OPTIONS, w(R, ct({}, R)));
|
|
3330
3373
|
this.bumpSpace();
|
|
3331
3374
|
var U = this.parseIdentifierIfPossible(), A = 0;
|
|
3332
3375
|
if (a !== "select" && U.value === "offset") {
|
|
@@ -3347,17 +3390,17 @@ var Ni = (
|
|
|
3347
3390
|
var H = w(i, this.clonePosition());
|
|
3348
3391
|
return a === "select" ? {
|
|
3349
3392
|
val: {
|
|
3350
|
-
type:
|
|
3393
|
+
type: P.select,
|
|
3351
3394
|
value: n,
|
|
3352
|
-
options:
|
|
3395
|
+
options: cr(re.val),
|
|
3353
3396
|
location: H
|
|
3354
3397
|
},
|
|
3355
3398
|
err: null
|
|
3356
3399
|
} : {
|
|
3357
3400
|
val: {
|
|
3358
|
-
type:
|
|
3401
|
+
type: P.plural,
|
|
3359
3402
|
value: n,
|
|
3360
|
-
options:
|
|
3403
|
+
options: cr(re.val),
|
|
3361
3404
|
offset: A,
|
|
3362
3405
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3363
3406
|
location: H
|
|
@@ -3408,16 +3451,16 @@ var Ni = (
|
|
|
3408
3451
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3409
3452
|
var n = [];
|
|
3410
3453
|
try {
|
|
3411
|
-
n =
|
|
3454
|
+
n = _i(t);
|
|
3412
3455
|
} catch {
|
|
3413
3456
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3414
3457
|
}
|
|
3415
3458
|
return {
|
|
3416
3459
|
val: {
|
|
3417
|
-
type:
|
|
3460
|
+
type: Ie.number,
|
|
3418
3461
|
tokens: n,
|
|
3419
3462
|
location: r,
|
|
3420
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3463
|
+
parsedOptions: this.shouldParseSkeletons ? Si(n) : {}
|
|
3421
3464
|
},
|
|
3422
3465
|
err: null
|
|
3423
3466
|
};
|
|
@@ -3426,9 +3469,9 @@ var Ni = (
|
|
|
3426
3469
|
if (l.length === 0) {
|
|
3427
3470
|
var f = this.clonePosition();
|
|
3428
3471
|
if (r !== "select" && this.bumpIf("=")) {
|
|
3429
|
-
var
|
|
3430
|
-
if (
|
|
3431
|
-
return
|
|
3472
|
+
var d = this.tryParseDecimalInteger(_.EXPECT_PLURAL_ARGUMENT_SELECTOR, _.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
3473
|
+
if (d.err)
|
|
3474
|
+
return d;
|
|
3432
3475
|
u = w(f, this.clonePosition()), l = this.message.slice(f.offset, this.offset());
|
|
3433
3476
|
} else
|
|
3434
3477
|
break;
|
|
@@ -3465,7 +3508,7 @@ var Ni = (
|
|
|
3465
3508
|
break;
|
|
3466
3509
|
}
|
|
3467
3510
|
var c = w(i, this.clonePosition());
|
|
3468
|
-
return o ? (s *= n,
|
|
3511
|
+
return o ? (s *= n, Ri(s) ? { val: s, err: null } : this.error(r, c)) : this.error(t, c);
|
|
3469
3512
|
}, e.prototype.offset = function() {
|
|
3470
3513
|
return this.position.offset;
|
|
3471
3514
|
}, e.prototype.isEOF = function() {
|
|
@@ -3480,7 +3523,7 @@ var Ni = (
|
|
|
3480
3523
|
var t = this.position.offset;
|
|
3481
3524
|
if (t >= this.message.length)
|
|
3482
3525
|
throw Error("out of bound");
|
|
3483
|
-
var r =
|
|
3526
|
+
var r = Zr(this.message, t);
|
|
3484
3527
|
if (r === void 0)
|
|
3485
3528
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3486
3529
|
return r;
|
|
@@ -3499,7 +3542,7 @@ var Ni = (
|
|
|
3499
3542
|
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);
|
|
3500
3543
|
}
|
|
3501
3544
|
}, e.prototype.bumpIf = function(t) {
|
|
3502
|
-
if (
|
|
3545
|
+
if (ur(this.message, t, this.offset())) {
|
|
3503
3546
|
for (var r = 0; r < t.length; r++)
|
|
3504
3547
|
this.bump();
|
|
3505
3548
|
return !0;
|
|
@@ -3521,7 +3564,7 @@ var Ni = (
|
|
|
3521
3564
|
break;
|
|
3522
3565
|
}
|
|
3523
3566
|
}, e.prototype.bumpSpace = function() {
|
|
3524
|
-
for (; !this.isEOF() &&
|
|
3567
|
+
for (; !this.isEOF() && Jr(this.char()); )
|
|
3525
3568
|
this.bump();
|
|
3526
3569
|
}, e.prototype.peek = function() {
|
|
3527
3570
|
if (this.isEOF())
|
|
@@ -3531,47 +3574,47 @@ var Ni = (
|
|
|
3531
3574
|
}, e;
|
|
3532
3575
|
}()
|
|
3533
3576
|
);
|
|
3534
|
-
function
|
|
3577
|
+
function kt(e) {
|
|
3535
3578
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3536
3579
|
}
|
|
3537
|
-
function
|
|
3538
|
-
return
|
|
3580
|
+
function $i(e) {
|
|
3581
|
+
return kt(e) || e === 47;
|
|
3539
3582
|
}
|
|
3540
|
-
function
|
|
3583
|
+
function Gi(e) {
|
|
3541
3584
|
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;
|
|
3542
3585
|
}
|
|
3543
|
-
function
|
|
3586
|
+
function Jr(e) {
|
|
3544
3587
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3545
3588
|
}
|
|
3546
|
-
function
|
|
3589
|
+
function ji(e) {
|
|
3547
3590
|
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;
|
|
3548
3591
|
}
|
|
3549
|
-
function
|
|
3592
|
+
function $t(e) {
|
|
3550
3593
|
e.forEach(function(t) {
|
|
3551
|
-
if (delete t.location,
|
|
3594
|
+
if (delete t.location, kr(t) || $r(t))
|
|
3552
3595
|
for (var r in t.options)
|
|
3553
|
-
delete t.options[r].location,
|
|
3596
|
+
delete t.options[r].location, $t(t.options[r].value);
|
|
3554
3597
|
else
|
|
3555
|
-
|
|
3598
|
+
Ur(t) && jr(t.style) || (Fr(t) || Dr(t)) && Rt(t.style) ? delete t.style.location : Gr(t) && $t(t.children);
|
|
3556
3599
|
});
|
|
3557
3600
|
}
|
|
3558
|
-
function
|
|
3559
|
-
t === void 0 && (t = {}), t =
|
|
3560
|
-
var r = new
|
|
3601
|
+
function Vi(e, t) {
|
|
3602
|
+
t === void 0 && (t = {}), t = ct({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3603
|
+
var r = new ki(e, t).parse();
|
|
3561
3604
|
if (r.err) {
|
|
3562
3605
|
var n = SyntaxError(_[r.err.kind]);
|
|
3563
3606
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3564
3607
|
}
|
|
3565
|
-
return t?.captureLocation ||
|
|
3608
|
+
return t?.captureLocation || $t(r.val), r.val;
|
|
3566
3609
|
}
|
|
3567
3610
|
var Oe;
|
|
3568
3611
|
(function(e) {
|
|
3569
3612
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3570
3613
|
})(Oe || (Oe = {}));
|
|
3571
|
-
var
|
|
3614
|
+
var gt = (
|
|
3572
3615
|
/** @class */
|
|
3573
3616
|
function(e) {
|
|
3574
|
-
|
|
3617
|
+
pt(t, e);
|
|
3575
3618
|
function t(r, n, i) {
|
|
3576
3619
|
var o = e.call(this, r) || this;
|
|
3577
3620
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3580,48 +3623,48 @@ var dt = (
|
|
|
3580
3623
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3581
3624
|
}, t;
|
|
3582
3625
|
}(Error)
|
|
3583
|
-
),
|
|
3626
|
+
), fr = (
|
|
3584
3627
|
/** @class */
|
|
3585
3628
|
function(e) {
|
|
3586
|
-
|
|
3629
|
+
pt(t, e);
|
|
3587
3630
|
function t(r, n, i, o) {
|
|
3588
3631
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Oe.INVALID_VALUE, o) || this;
|
|
3589
3632
|
}
|
|
3590
3633
|
return t;
|
|
3591
|
-
}(
|
|
3592
|
-
),
|
|
3634
|
+
}(gt)
|
|
3635
|
+
), zi = (
|
|
3593
3636
|
/** @class */
|
|
3594
3637
|
function(e) {
|
|
3595
|
-
|
|
3638
|
+
pt(t, e);
|
|
3596
3639
|
function t(r, n, i) {
|
|
3597
3640
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Oe.INVALID_VALUE, i) || this;
|
|
3598
3641
|
}
|
|
3599
3642
|
return t;
|
|
3600
|
-
}(
|
|
3601
|
-
),
|
|
3643
|
+
}(gt)
|
|
3644
|
+
), Xi = (
|
|
3602
3645
|
/** @class */
|
|
3603
3646
|
function(e) {
|
|
3604
|
-
|
|
3647
|
+
pt(t, e);
|
|
3605
3648
|
function t(r, n) {
|
|
3606
3649
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Oe.MISSING_VALUE, n) || this;
|
|
3607
3650
|
}
|
|
3608
3651
|
return t;
|
|
3609
|
-
}(
|
|
3652
|
+
}(gt)
|
|
3610
3653
|
), V;
|
|
3611
3654
|
(function(e) {
|
|
3612
3655
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3613
3656
|
})(V || (V = {}));
|
|
3614
|
-
function
|
|
3657
|
+
function Wi(e) {
|
|
3615
3658
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3616
3659
|
var n = t[t.length - 1];
|
|
3617
3660
|
return !n || n.type !== V.literal || r.type !== V.literal ? t.push(r) : n.value += r.value, t;
|
|
3618
3661
|
}, []);
|
|
3619
3662
|
}
|
|
3620
|
-
function
|
|
3663
|
+
function Zi(e) {
|
|
3621
3664
|
return typeof e == "function";
|
|
3622
3665
|
}
|
|
3623
3666
|
function at(e, t, r, n, i, o, s) {
|
|
3624
|
-
if (e.length === 1 &&
|
|
3667
|
+
if (e.length === 1 && or(e[0]))
|
|
3625
3668
|
return [
|
|
3626
3669
|
{
|
|
3627
3670
|
type: V.literal,
|
|
@@ -3630,14 +3673,14 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3630
3673
|
];
|
|
3631
3674
|
for (var a = [], c = 0, l = e; c < l.length; c++) {
|
|
3632
3675
|
var u = l[c];
|
|
3633
|
-
if (
|
|
3676
|
+
if (or(u)) {
|
|
3634
3677
|
a.push({
|
|
3635
3678
|
type: V.literal,
|
|
3636
3679
|
value: u.value
|
|
3637
3680
|
});
|
|
3638
3681
|
continue;
|
|
3639
3682
|
}
|
|
3640
|
-
if (
|
|
3683
|
+
if (gi(u)) {
|
|
3641
3684
|
typeof o == "number" && a.push({
|
|
3642
3685
|
type: V.literal,
|
|
3643
3686
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3646,44 +3689,44 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3646
3689
|
}
|
|
3647
3690
|
var f = u.value;
|
|
3648
3691
|
if (!(i && f in i))
|
|
3649
|
-
throw new
|
|
3650
|
-
var
|
|
3651
|
-
if (
|
|
3652
|
-
(!
|
|
3653
|
-
type: typeof
|
|
3654
|
-
value:
|
|
3692
|
+
throw new Xi(f, s);
|
|
3693
|
+
var d = i[f];
|
|
3694
|
+
if (pi(u)) {
|
|
3695
|
+
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
|
|
3696
|
+
type: typeof d == "string" ? V.literal : V.object,
|
|
3697
|
+
value: d
|
|
3655
3698
|
});
|
|
3656
3699
|
continue;
|
|
3657
3700
|
}
|
|
3658
|
-
if (
|
|
3659
|
-
var b = typeof u.style == "string" ? n.date[u.style] :
|
|
3701
|
+
if (Fr(u)) {
|
|
3702
|
+
var b = typeof u.style == "string" ? n.date[u.style] : Rt(u.style) ? u.style.parsedOptions : void 0;
|
|
3660
3703
|
a.push({
|
|
3661
3704
|
type: V.literal,
|
|
3662
|
-
value: r.getDateTimeFormat(t, b).format(
|
|
3705
|
+
value: r.getDateTimeFormat(t, b).format(d)
|
|
3663
3706
|
});
|
|
3664
3707
|
continue;
|
|
3665
3708
|
}
|
|
3666
|
-
if (
|
|
3667
|
-
var b = typeof u.style == "string" ? n.time[u.style] :
|
|
3709
|
+
if (Dr(u)) {
|
|
3710
|
+
var b = typeof u.style == "string" ? n.time[u.style] : Rt(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3668
3711
|
a.push({
|
|
3669
3712
|
type: V.literal,
|
|
3670
|
-
value: r.getDateTimeFormat(t, b).format(
|
|
3713
|
+
value: r.getDateTimeFormat(t, b).format(d)
|
|
3671
3714
|
});
|
|
3672
3715
|
continue;
|
|
3673
3716
|
}
|
|
3674
|
-
if (
|
|
3675
|
-
var b = typeof u.style == "string" ? n.number[u.style] :
|
|
3676
|
-
b && b.scale && (
|
|
3717
|
+
if (Ur(u)) {
|
|
3718
|
+
var b = typeof u.style == "string" ? n.number[u.style] : jr(u.style) ? u.style.parsedOptions : void 0;
|
|
3719
|
+
b && b.scale && (d = d * (b.scale || 1)), a.push({
|
|
3677
3720
|
type: V.literal,
|
|
3678
|
-
value: r.getNumberFormat(t, b).format(
|
|
3721
|
+
value: r.getNumberFormat(t, b).format(d)
|
|
3679
3722
|
});
|
|
3680
3723
|
continue;
|
|
3681
3724
|
}
|
|
3682
|
-
if (
|
|
3683
|
-
var y = u.children, g = u.value,
|
|
3684
|
-
if (!
|
|
3685
|
-
throw new
|
|
3686
|
-
var
|
|
3725
|
+
if (Gr(u)) {
|
|
3726
|
+
var y = u.children, g = u.value, x = i[g];
|
|
3727
|
+
if (!Zi(x))
|
|
3728
|
+
throw new zi(g, "function", s);
|
|
3729
|
+
var O = at(y, t, r, n, i, o), z = x(O.map(function(A) {
|
|
3687
3730
|
return A.value;
|
|
3688
3731
|
}));
|
|
3689
3732
|
Array.isArray(z) || (z = [z]), a.push.apply(a, z.map(function(A) {
|
|
@@ -3693,42 +3736,42 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3693
3736
|
};
|
|
3694
3737
|
}));
|
|
3695
3738
|
}
|
|
3696
|
-
if (
|
|
3697
|
-
var R = u.options[
|
|
3739
|
+
if (kr(u)) {
|
|
3740
|
+
var R = u.options[d] || u.options.other;
|
|
3698
3741
|
if (!R)
|
|
3699
|
-
throw new
|
|
3742
|
+
throw new fr(u.value, d, Object.keys(u.options), s);
|
|
3700
3743
|
a.push.apply(a, at(R.value, t, r, n, i));
|
|
3701
3744
|
continue;
|
|
3702
3745
|
}
|
|
3703
|
-
if (
|
|
3704
|
-
var R = u.options["=".concat(
|
|
3746
|
+
if ($r(u)) {
|
|
3747
|
+
var R = u.options["=".concat(d)];
|
|
3705
3748
|
if (!R) {
|
|
3706
3749
|
if (!Intl.PluralRules)
|
|
3707
|
-
throw new
|
|
3750
|
+
throw new gt(`Intl.PluralRules is not available in this environment.
|
|
3708
3751
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3709
3752
|
`, Oe.MISSING_INTL_API, s);
|
|
3710
|
-
var U = r.getPluralRules(t, { type: u.pluralType }).select(
|
|
3753
|
+
var U = r.getPluralRules(t, { type: u.pluralType }).select(d - (u.offset || 0));
|
|
3711
3754
|
R = u.options[U] || u.options.other;
|
|
3712
3755
|
}
|
|
3713
3756
|
if (!R)
|
|
3714
|
-
throw new
|
|
3715
|
-
a.push.apply(a, at(R.value, t, r, n, i,
|
|
3757
|
+
throw new fr(u.value, d, Object.keys(u.options), s);
|
|
3758
|
+
a.push.apply(a, at(R.value, t, r, n, i, d - (u.offset || 0)));
|
|
3716
3759
|
continue;
|
|
3717
3760
|
}
|
|
3718
3761
|
}
|
|
3719
|
-
return
|
|
3762
|
+
return Wi(a);
|
|
3720
3763
|
}
|
|
3721
|
-
function
|
|
3722
|
-
return t ?
|
|
3723
|
-
return r[n] =
|
|
3764
|
+
function qi(e, t) {
|
|
3765
|
+
return t ? ie(ie(ie({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3766
|
+
return r[n] = ie(ie({}, e[n]), t[n] || {}), r;
|
|
3724
3767
|
}, {})) : e;
|
|
3725
3768
|
}
|
|
3726
|
-
function
|
|
3769
|
+
function Ji(e, t) {
|
|
3727
3770
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3728
|
-
return r[n] =
|
|
3729
|
-
},
|
|
3771
|
+
return r[n] = qi(e[n], t[n]), r;
|
|
3772
|
+
}, ie({}, e)) : e;
|
|
3730
3773
|
}
|
|
3731
|
-
function
|
|
3774
|
+
function Pt(e) {
|
|
3732
3775
|
return {
|
|
3733
3776
|
create: function() {
|
|
3734
3777
|
return {
|
|
@@ -3742,39 +3785,39 @@ function Et(e) {
|
|
|
3742
3785
|
}
|
|
3743
3786
|
};
|
|
3744
3787
|
}
|
|
3745
|
-
function
|
|
3788
|
+
function Qi(e) {
|
|
3746
3789
|
return e === void 0 && (e = {
|
|
3747
3790
|
number: {},
|
|
3748
3791
|
dateTime: {},
|
|
3749
3792
|
pluralRules: {}
|
|
3750
3793
|
}), {
|
|
3751
|
-
getNumberFormat:
|
|
3794
|
+
getNumberFormat: Et(function() {
|
|
3752
3795
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3753
3796
|
r[n] = arguments[n];
|
|
3754
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3797
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, wt([void 0], r, !1)))();
|
|
3755
3798
|
}, {
|
|
3756
|
-
cache:
|
|
3757
|
-
strategy:
|
|
3799
|
+
cache: Pt(e.number),
|
|
3800
|
+
strategy: xt.variadic
|
|
3758
3801
|
}),
|
|
3759
|
-
getDateTimeFormat:
|
|
3802
|
+
getDateTimeFormat: Et(function() {
|
|
3760
3803
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3761
3804
|
r[n] = arguments[n];
|
|
3762
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3805
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, wt([void 0], r, !1)))();
|
|
3763
3806
|
}, {
|
|
3764
|
-
cache:
|
|
3765
|
-
strategy:
|
|
3807
|
+
cache: Pt(e.dateTime),
|
|
3808
|
+
strategy: xt.variadic
|
|
3766
3809
|
}),
|
|
3767
|
-
getPluralRules:
|
|
3810
|
+
getPluralRules: Et(function() {
|
|
3768
3811
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3769
3812
|
r[n] = arguments[n];
|
|
3770
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3813
|
+
return new ((t = Intl.PluralRules).bind.apply(t, wt([void 0], r, !1)))();
|
|
3771
3814
|
}, {
|
|
3772
|
-
cache:
|
|
3773
|
-
strategy:
|
|
3815
|
+
cache: Pt(e.pluralRules),
|
|
3816
|
+
strategy: xt.variadic
|
|
3774
3817
|
})
|
|
3775
3818
|
};
|
|
3776
3819
|
}
|
|
3777
|
-
var
|
|
3820
|
+
var Yi = (
|
|
3778
3821
|
/** @class */
|
|
3779
3822
|
function() {
|
|
3780
3823
|
function e(t, r, n, i) {
|
|
@@ -3788,8 +3831,8 @@ var Wi = (
|
|
|
3788
3831
|
var l = o.formatToParts(c);
|
|
3789
3832
|
if (l.length === 1)
|
|
3790
3833
|
return l[0].value;
|
|
3791
|
-
var u = l.reduce(function(f,
|
|
3792
|
-
return !f.length ||
|
|
3834
|
+
var u = l.reduce(function(f, d) {
|
|
3835
|
+
return !f.length || d.type !== V.literal || typeof f[f.length - 1] != "string" ? f.push(d.value) : f[f.length - 1] += d.value, f;
|
|
3793
3836
|
}, []);
|
|
3794
3837
|
return u.length <= 1 ? u[0] || "" : u;
|
|
3795
3838
|
}, this.formatToParts = function(c) {
|
|
@@ -3806,13 +3849,13 @@ var Wi = (
|
|
|
3806
3849
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3807
3850
|
var s = i || {};
|
|
3808
3851
|
s.formatters;
|
|
3809
|
-
var a =
|
|
3810
|
-
this.ast = e.__parse(t,
|
|
3852
|
+
var a = ai(s, ["formatters"]);
|
|
3853
|
+
this.ast = e.__parse(t, ie(ie({}, a), { locale: this.resolvedLocale }));
|
|
3811
3854
|
} else
|
|
3812
3855
|
this.ast = t;
|
|
3813
3856
|
if (!Array.isArray(this.ast))
|
|
3814
3857
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3815
|
-
this.formats =
|
|
3858
|
+
this.formats = Ji(e.formats, n), this.formatters = i && i.formatters || Qi(this.formatterCache);
|
|
3816
3859
|
}
|
|
3817
3860
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3818
3861
|
get: function() {
|
|
@@ -3825,7 +3868,7 @@ var Wi = (
|
|
|
3825
3868
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3826
3869
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3827
3870
|
}
|
|
3828
|
-
}, e.__parse =
|
|
3871
|
+
}, e.__parse = Vi, e.formats = {
|
|
3829
3872
|
number: {
|
|
3830
3873
|
integer: {
|
|
3831
3874
|
maximumFractionDigits: 0
|
|
@@ -3886,7 +3929,7 @@ var Wi = (
|
|
|
3886
3929
|
}, e;
|
|
3887
3930
|
}()
|
|
3888
3931
|
);
|
|
3889
|
-
function
|
|
3932
|
+
function Ki(e, t) {
|
|
3890
3933
|
if (t == null)
|
|
3891
3934
|
return;
|
|
3892
3935
|
if (t in e)
|
|
@@ -3907,92 +3950,92 @@ function Zi(e, t) {
|
|
|
3907
3950
|
n = void 0;
|
|
3908
3951
|
return n;
|
|
3909
3952
|
}
|
|
3910
|
-
const ue = {},
|
|
3953
|
+
const ue = {}, eo = (e, t, r) => r && (t in ue || (ue[t] = {}), e in ue[t] || (ue[t][e] = r), r), Qr = (e, t) => {
|
|
3911
3954
|
if (t == null)
|
|
3912
3955
|
return;
|
|
3913
3956
|
if (t in ue && e in ue[t])
|
|
3914
3957
|
return ue[t][e];
|
|
3915
|
-
const r =
|
|
3958
|
+
const r = bt(t);
|
|
3916
3959
|
for (let n = 0; n < r.length; n++) {
|
|
3917
|
-
const i = r[n], o =
|
|
3960
|
+
const i = r[n], o = ro(i, e);
|
|
3918
3961
|
if (o)
|
|
3919
|
-
return
|
|
3962
|
+
return eo(e, t, o);
|
|
3920
3963
|
}
|
|
3921
3964
|
};
|
|
3922
|
-
let
|
|
3923
|
-
const
|
|
3924
|
-
function
|
|
3925
|
-
return
|
|
3965
|
+
let zt;
|
|
3966
|
+
const Ne = mt({});
|
|
3967
|
+
function to(e) {
|
|
3968
|
+
return zt[e] || null;
|
|
3926
3969
|
}
|
|
3927
|
-
function
|
|
3928
|
-
return e in
|
|
3970
|
+
function Yr(e) {
|
|
3971
|
+
return e in zt;
|
|
3929
3972
|
}
|
|
3930
|
-
function
|
|
3931
|
-
if (!
|
|
3973
|
+
function ro(e, t) {
|
|
3974
|
+
if (!Yr(e))
|
|
3932
3975
|
return null;
|
|
3933
|
-
const r =
|
|
3934
|
-
return
|
|
3976
|
+
const r = to(e);
|
|
3977
|
+
return Ki(r, t);
|
|
3935
3978
|
}
|
|
3936
|
-
function
|
|
3979
|
+
function no(e) {
|
|
3937
3980
|
if (e == null)
|
|
3938
3981
|
return;
|
|
3939
|
-
const t =
|
|
3982
|
+
const t = bt(e);
|
|
3940
3983
|
for (let r = 0; r < t.length; r++) {
|
|
3941
3984
|
const n = t[r];
|
|
3942
|
-
if (
|
|
3985
|
+
if (Yr(n))
|
|
3943
3986
|
return n;
|
|
3944
3987
|
}
|
|
3945
3988
|
}
|
|
3946
|
-
function
|
|
3947
|
-
delete ue[e],
|
|
3989
|
+
function Kr(e, ...t) {
|
|
3990
|
+
delete ue[e], Ne.update((r) => (r[e] = si.all([r[e] || {}, ...t]), r));
|
|
3948
3991
|
}
|
|
3949
|
-
|
|
3950
|
-
[
|
|
3992
|
+
Me(
|
|
3993
|
+
[Ne],
|
|
3951
3994
|
([e]) => Object.keys(e)
|
|
3952
3995
|
);
|
|
3953
|
-
|
|
3996
|
+
Ne.subscribe((e) => zt = e);
|
|
3954
3997
|
const lt = {};
|
|
3955
|
-
function
|
|
3998
|
+
function io(e, t) {
|
|
3956
3999
|
lt[e].delete(t), lt[e].size === 0 && delete lt[e];
|
|
3957
4000
|
}
|
|
3958
|
-
function
|
|
4001
|
+
function en(e) {
|
|
3959
4002
|
return lt[e];
|
|
3960
4003
|
}
|
|
3961
|
-
function
|
|
3962
|
-
return
|
|
3963
|
-
const r =
|
|
4004
|
+
function oo(e) {
|
|
4005
|
+
return bt(e).map((t) => {
|
|
4006
|
+
const r = en(t);
|
|
3964
4007
|
return [t, r ? [...r] : []];
|
|
3965
4008
|
}).filter(([, t]) => t.length > 0);
|
|
3966
4009
|
}
|
|
3967
|
-
function
|
|
3968
|
-
return e == null ? !1 :
|
|
4010
|
+
function Gt(e) {
|
|
4011
|
+
return e == null ? !1 : bt(e).some(
|
|
3969
4012
|
(t) => {
|
|
3970
4013
|
var r;
|
|
3971
|
-
return (r =
|
|
4014
|
+
return (r = en(t)) == null ? void 0 : r.size;
|
|
3972
4015
|
}
|
|
3973
4016
|
);
|
|
3974
4017
|
}
|
|
3975
|
-
function
|
|
4018
|
+
function so(e, t) {
|
|
3976
4019
|
return Promise.all(
|
|
3977
|
-
t.map((n) => (
|
|
3978
|
-
).then((n) =>
|
|
4020
|
+
t.map((n) => (io(e, n), n().then((i) => i.default || i)))
|
|
4021
|
+
).then((n) => Kr(e, ...n));
|
|
3979
4022
|
}
|
|
3980
|
-
const
|
|
3981
|
-
function
|
|
3982
|
-
if (!
|
|
3983
|
-
return e in
|
|
3984
|
-
const t =
|
|
3985
|
-
return
|
|
4023
|
+
const Ge = {};
|
|
4024
|
+
function tn(e) {
|
|
4025
|
+
if (!Gt(e))
|
|
4026
|
+
return e in Ge ? Ge[e] : Promise.resolve();
|
|
4027
|
+
const t = oo(e);
|
|
4028
|
+
return Ge[e] = Promise.all(
|
|
3986
4029
|
t.map(
|
|
3987
|
-
([r, n]) =>
|
|
4030
|
+
([r, n]) => so(r, n)
|
|
3988
4031
|
)
|
|
3989
4032
|
).then(() => {
|
|
3990
|
-
if (
|
|
3991
|
-
return
|
|
3992
|
-
delete
|
|
3993
|
-
}),
|
|
4033
|
+
if (Gt(e))
|
|
4034
|
+
return tn(e);
|
|
4035
|
+
delete Ge[e];
|
|
4036
|
+
}), Ge[e];
|
|
3994
4037
|
}
|
|
3995
|
-
const
|
|
4038
|
+
const ao = {
|
|
3996
4039
|
number: {
|
|
3997
4040
|
scientific: { notation: "scientific" },
|
|
3998
4041
|
engineering: { notation: "engineering" },
|
|
@@ -4021,135 +4064,135 @@ const ro = {
|
|
|
4021
4064
|
timeZoneName: "short"
|
|
4022
4065
|
}
|
|
4023
4066
|
}
|
|
4024
|
-
},
|
|
4067
|
+
}, lo = {
|
|
4025
4068
|
fallbackLocale: null,
|
|
4026
4069
|
loadingDelay: 200,
|
|
4027
|
-
formats:
|
|
4070
|
+
formats: ao,
|
|
4028
4071
|
warnOnMissingMessages: !0,
|
|
4029
4072
|
handleMissingMessage: void 0,
|
|
4030
4073
|
ignoreTag: !0
|
|
4031
|
-
},
|
|
4032
|
-
function
|
|
4033
|
-
return
|
|
4074
|
+
}, uo = lo;
|
|
4075
|
+
function Ce() {
|
|
4076
|
+
return uo;
|
|
4034
4077
|
}
|
|
4035
|
-
const
|
|
4036
|
-
var
|
|
4078
|
+
const Tt = mt(!1);
|
|
4079
|
+
var co = Object.defineProperty, ho = Object.defineProperties, fo = Object.getOwnPropertyDescriptors, dr = Object.getOwnPropertySymbols, mo = Object.prototype.hasOwnProperty, po = Object.prototype.propertyIsEnumerable, mr = (e, t, r) => t in e ? co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, go = (e, t) => {
|
|
4037
4080
|
for (var r in t || (t = {}))
|
|
4038
|
-
|
|
4039
|
-
if (
|
|
4040
|
-
for (var r of
|
|
4041
|
-
|
|
4081
|
+
mo.call(t, r) && mr(e, r, t[r]);
|
|
4082
|
+
if (dr)
|
|
4083
|
+
for (var r of dr(t))
|
|
4084
|
+
po.call(t, r) && mr(e, r, t[r]);
|
|
4042
4085
|
return e;
|
|
4043
|
-
},
|
|
4044
|
-
let
|
|
4045
|
-
const
|
|
4046
|
-
function
|
|
4086
|
+
}, bo = (e, t) => ho(e, fo(t));
|
|
4087
|
+
let jt;
|
|
4088
|
+
const ht = mt(null);
|
|
4089
|
+
function pr(e) {
|
|
4047
4090
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4048
4091
|
}
|
|
4049
|
-
function
|
|
4050
|
-
const r =
|
|
4051
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4092
|
+
function bt(e, t = Ce().fallbackLocale) {
|
|
4093
|
+
const r = pr(e);
|
|
4094
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...pr(t)])] : r;
|
|
4052
4095
|
}
|
|
4053
4096
|
function ve() {
|
|
4054
|
-
return
|
|
4097
|
+
return jt ?? void 0;
|
|
4055
4098
|
}
|
|
4056
|
-
|
|
4057
|
-
|
|
4099
|
+
ht.subscribe((e) => {
|
|
4100
|
+
jt = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4058
4101
|
});
|
|
4059
|
-
const
|
|
4060
|
-
if (e &&
|
|
4061
|
-
const { loadingDelay: t } =
|
|
4102
|
+
const vo = (e) => {
|
|
4103
|
+
if (e && no(e) && Gt(e)) {
|
|
4104
|
+
const { loadingDelay: t } = Ce();
|
|
4062
4105
|
let r;
|
|
4063
4106
|
return typeof window < "u" && ve() != null && t ? r = window.setTimeout(
|
|
4064
|
-
() =>
|
|
4107
|
+
() => Tt.set(!0),
|
|
4065
4108
|
t
|
|
4066
|
-
) :
|
|
4067
|
-
|
|
4109
|
+
) : Tt.set(!0), tn(e).then(() => {
|
|
4110
|
+
ht.set(e);
|
|
4068
4111
|
}).finally(() => {
|
|
4069
|
-
clearTimeout(r),
|
|
4112
|
+
clearTimeout(r), Tt.set(!1);
|
|
4070
4113
|
});
|
|
4071
4114
|
}
|
|
4072
|
-
return
|
|
4073
|
-
}, ce =
|
|
4074
|
-
set:
|
|
4075
|
-
}),
|
|
4115
|
+
return ht.set(e);
|
|
4116
|
+
}, ce = bo(go({}, ht), {
|
|
4117
|
+
set: vo
|
|
4118
|
+
}), vt = (e) => {
|
|
4076
4119
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4077
4120
|
return (n) => {
|
|
4078
4121
|
const i = JSON.stringify(n);
|
|
4079
4122
|
return i in t ? t[i] : t[i] = e(n);
|
|
4080
4123
|
};
|
|
4081
4124
|
};
|
|
4082
|
-
var
|
|
4125
|
+
var yo = Object.defineProperty, ft = Object.getOwnPropertySymbols, rn = Object.prototype.hasOwnProperty, nn = Object.prototype.propertyIsEnumerable, gr = (e, t, r) => t in e ? yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Xt = (e, t) => {
|
|
4083
4126
|
for (var r in t || (t = {}))
|
|
4084
|
-
|
|
4085
|
-
if (
|
|
4086
|
-
for (var r of
|
|
4087
|
-
|
|
4127
|
+
rn.call(t, r) && gr(e, r, t[r]);
|
|
4128
|
+
if (ft)
|
|
4129
|
+
for (var r of ft(t))
|
|
4130
|
+
nn.call(t, r) && gr(e, r, t[r]);
|
|
4088
4131
|
return e;
|
|
4089
|
-
},
|
|
4132
|
+
}, Re = (e, t) => {
|
|
4090
4133
|
var r = {};
|
|
4091
4134
|
for (var n in e)
|
|
4092
|
-
|
|
4093
|
-
if (e != null &&
|
|
4094
|
-
for (var n of
|
|
4095
|
-
t.indexOf(n) < 0 &&
|
|
4135
|
+
rn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4136
|
+
if (e != null && ft)
|
|
4137
|
+
for (var n of ft(e))
|
|
4138
|
+
t.indexOf(n) < 0 && nn.call(e, n) && (r[n] = e[n]);
|
|
4096
4139
|
return r;
|
|
4097
4140
|
};
|
|
4098
|
-
const
|
|
4099
|
-
const { formats: r } =
|
|
4141
|
+
const Xe = (e, t) => {
|
|
4142
|
+
const { formats: r } = Ce();
|
|
4100
4143
|
if (e in r && t in r[e])
|
|
4101
4144
|
return r[e][t];
|
|
4102
4145
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4103
|
-
},
|
|
4146
|
+
}, _o = vt(
|
|
4104
4147
|
(e) => {
|
|
4105
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4148
|
+
var t = e, { locale: r, format: n } = t, i = Re(t, ["locale", "format"]);
|
|
4106
4149
|
if (r == null)
|
|
4107
4150
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4108
|
-
return n && (i =
|
|
4151
|
+
return n && (i = Xe("number", n)), new Intl.NumberFormat(r, i);
|
|
4109
4152
|
}
|
|
4110
|
-
),
|
|
4153
|
+
), wo = vt(
|
|
4111
4154
|
(e) => {
|
|
4112
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4155
|
+
var t = e, { locale: r, format: n } = t, i = Re(t, ["locale", "format"]);
|
|
4113
4156
|
if (r == null)
|
|
4114
4157
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4115
|
-
return n ? i =
|
|
4158
|
+
return n ? i = Xe("date", n) : Object.keys(i).length === 0 && (i = Xe("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4116
4159
|
}
|
|
4117
|
-
),
|
|
4160
|
+
), Eo = vt(
|
|
4118
4161
|
(e) => {
|
|
4119
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
4162
|
+
var t = e, { locale: r, format: n } = t, i = Re(t, ["locale", "format"]);
|
|
4120
4163
|
if (r == null)
|
|
4121
4164
|
throw new Error(
|
|
4122
4165
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
4123
4166
|
);
|
|
4124
|
-
return n ? i =
|
|
4167
|
+
return n ? i = Xe("time", n) : Object.keys(i).length === 0 && (i = Xe("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4125
4168
|
}
|
|
4126
|
-
),
|
|
4169
|
+
), xo = (e = {}) => {
|
|
4127
4170
|
var t = e, {
|
|
4128
4171
|
locale: r = ve()
|
|
4129
|
-
} = t, n =
|
|
4172
|
+
} = t, n = Re(t, [
|
|
4130
4173
|
"locale"
|
|
4131
4174
|
]);
|
|
4132
|
-
return
|
|
4133
|
-
},
|
|
4175
|
+
return _o(Xt({ locale: r }, n));
|
|
4176
|
+
}, So = (e = {}) => {
|
|
4134
4177
|
var t = e, {
|
|
4135
4178
|
locale: r = ve()
|
|
4136
|
-
} = t, n =
|
|
4179
|
+
} = t, n = Re(t, [
|
|
4137
4180
|
"locale"
|
|
4138
4181
|
]);
|
|
4139
|
-
return
|
|
4140
|
-
},
|
|
4182
|
+
return wo(Xt({ locale: r }, n));
|
|
4183
|
+
}, Po = (e = {}) => {
|
|
4141
4184
|
var t = e, {
|
|
4142
4185
|
locale: r = ve()
|
|
4143
|
-
} = t, n =
|
|
4186
|
+
} = t, n = Re(t, [
|
|
4144
4187
|
"locale"
|
|
4145
4188
|
]);
|
|
4146
|
-
return
|
|
4147
|
-
},
|
|
4189
|
+
return Eo(Xt({ locale: r }, n));
|
|
4190
|
+
}, To = vt(
|
|
4148
4191
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4149
|
-
(e, t = ve()) => new
|
|
4150
|
-
ignoreTag:
|
|
4192
|
+
(e, t = ve()) => new Yi(e, t, Ce().formats, {
|
|
4193
|
+
ignoreTag: Ce().ignoreTag
|
|
4151
4194
|
})
|
|
4152
|
-
),
|
|
4195
|
+
), Ho = (e, t = {}) => {
|
|
4153
4196
|
var r, n, i, o;
|
|
4154
4197
|
let s = t;
|
|
4155
4198
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4162,9 +4205,9 @@ const We = (e, t) => {
|
|
|
4162
4205
|
throw new Error(
|
|
4163
4206
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4164
4207
|
);
|
|
4165
|
-
let u =
|
|
4208
|
+
let u = Qr(e, c);
|
|
4166
4209
|
if (!u)
|
|
4167
|
-
u = (o = (i = (n = (r =
|
|
4210
|
+
u = (o = (i = (n = (r = Ce()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: c, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4168
4211
|
else if (typeof u != "string")
|
|
4169
4212
|
return console.warn(
|
|
4170
4213
|
`[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.`
|
|
@@ -4173,33 +4216,33 @@ const We = (e, t) => {
|
|
|
4173
4216
|
return u;
|
|
4174
4217
|
let f = u;
|
|
4175
4218
|
try {
|
|
4176
|
-
f =
|
|
4177
|
-
} catch (
|
|
4178
|
-
|
|
4219
|
+
f = To(u, c).format(a);
|
|
4220
|
+
} catch (d) {
|
|
4221
|
+
d instanceof Error && console.warn(
|
|
4179
4222
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
4180
|
-
|
|
4223
|
+
d.message
|
|
4181
4224
|
);
|
|
4182
4225
|
}
|
|
4183
4226
|
return f;
|
|
4184
|
-
},
|
|
4185
|
-
|
|
4186
|
-
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
window.emWidgets = { topic:
|
|
4190
|
-
const
|
|
4191
|
-
function
|
|
4227
|
+
}, Bo = (e, t) => Po(t).format(e), Ao = (e, t) => So(t).format(e), Io = (e, t) => xo(t).format(e), Oo = (e, t = ve()) => Qr(e, t), Co = Me([ce, Ne], () => Ho);
|
|
4228
|
+
Me([ce], () => Bo);
|
|
4229
|
+
Me([ce], () => Ao);
|
|
4230
|
+
Me([ce], () => Io);
|
|
4231
|
+
Me([ce, Ne], () => Oo);
|
|
4232
|
+
window.emWidgets = { topic: jn };
|
|
4233
|
+
const Lo = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i));
|
|
4234
|
+
function Mo({ withLocale: e, translations: t }) {
|
|
4192
4235
|
ce.subscribe((r) => {
|
|
4193
|
-
r == null && (
|
|
4236
|
+
r == null && (Ne.set(t), ce.set(e));
|
|
4194
4237
|
});
|
|
4195
4238
|
}
|
|
4196
|
-
function
|
|
4197
|
-
|
|
4239
|
+
function br(e, t) {
|
|
4240
|
+
Kr(e, t);
|
|
4198
4241
|
}
|
|
4199
|
-
function
|
|
4242
|
+
function No(e) {
|
|
4200
4243
|
ce.set(e);
|
|
4201
4244
|
}
|
|
4202
|
-
const
|
|
4245
|
+
const vr = {
|
|
4203
4246
|
en: {
|
|
4204
4247
|
loginTitle: "Welcome",
|
|
4205
4248
|
loginSubtitle: "Don't have an account yet?",
|
|
@@ -4344,13 +4387,13 @@ const mr = {
|
|
|
4344
4387
|
successMessage: "Login successful"
|
|
4345
4388
|
}
|
|
4346
4389
|
};
|
|
4347
|
-
function
|
|
4390
|
+
function Ro(e, t) {
|
|
4348
4391
|
if (e) {
|
|
4349
4392
|
const r = document.createElement("style");
|
|
4350
4393
|
r.innerHTML = t, e.appendChild(r);
|
|
4351
4394
|
}
|
|
4352
4395
|
}
|
|
4353
|
-
function
|
|
4396
|
+
function Uo(e, t) {
|
|
4354
4397
|
const r = new URL(t);
|
|
4355
4398
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4356
4399
|
const i = document.createElement("style");
|
|
@@ -4359,7 +4402,7 @@ function Oo(e, t) {
|
|
|
4359
4402
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4360
4403
|
});
|
|
4361
4404
|
}
|
|
4362
|
-
function
|
|
4405
|
+
function Fo(e, t, r) {
|
|
4363
4406
|
if (window.emMessageBus) {
|
|
4364
4407
|
const n = document.createElement("style");
|
|
4365
4408
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4379,18 +4422,18 @@ if (typeof window < "u") {
|
|
|
4379
4422
|
}
|
|
4380
4423
|
};
|
|
4381
4424
|
};
|
|
4382
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-
|
|
4425
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-DJahVXQg.js").then(({ default: t }) => {
|
|
4383
4426
|
!customElements.get("general-player-sms-verification-form") && customElements.define("general-player-sms-verification-form", t.element);
|
|
4384
4427
|
});
|
|
4385
4428
|
}
|
|
4386
|
-
function
|
|
4387
|
-
|
|
4429
|
+
function Do(e) {
|
|
4430
|
+
un(e, "svelte-7c22cn", '.grecaptcha-badge{opacity:0}input,select{font-family:inherit}.PlayerLoginFormWrapper{height:100%;border-radius:var(--emw--border-radius-medium, 15px)}.FormContainer{width:100%}.FormLogin{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));padding:50px}.FormHeaderTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-light, 300);padding:0;text-transform:uppercase;margin:0}.PasswordContainer{position:relative}.FormRequired{color:var(--emw--color-error, var(--emw--color-error, #ed0909))}.FormHeaderSubtitle{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);margin:5px 0 0 0}.FormRegisterCallToAction{color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-normal, 400);text-decoration:none;cursor:pointer}.FormContent{padding-top:20px}.UserContainer,.PasswordContainer,.CaptchaContainer{color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));display:flex;flex-direction:column;position:relative}.UserContainer label,.PasswordContainer label,.CaptchaContainer label{font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.UserContainer input,.PasswordContainer input,.CaptchaContainer input{width:100%;height:44px;border-radius:15px;border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444));box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}.UserContainer input:focus,.PasswordContainer input:focus,.CaptchaContainer input:focus{border:2px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));outline:none}.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.CaptchaContainer.InvalidField input{border:1px solid var(--emw--color-error, var(--emw--color-error, #ed0909));background:var(--emw--color-pale, #FBECF4);outline:none;color:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.PasswordContainer input{padding:5px 30px 5px 15px}.TogglePasswordVisibility{height:13px;position:absolute;right:8px;bottom:55px}.TogglePasswordVisibility.InvalidToggle path,.TogglePasswordVisibility.InvalidToggle circle,.TogglePasswordVisibility.InvalidToggle rect{fill:var(--emw--color-error, var(--emw--color-error, #ed0909))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emw--registration-contrast, var(--emw--color-typography-cotrast, #444444))}.SignInButton{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);color:var(--emw--button-typography, var(--emw--button-text-color, #FFFFFF));font-family:var(--emw--button-typography);width:100%;height:60px;padding:0;text-transform:uppercase;font-size:var(--emw--font-size-medium, 16px);cursor:pointer}.SignInButton[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-150, #828282);cursor:not-allowed}.ForgotPasswordButton{border:0;background:transparent;font-size:var(--emw--font-size-small, 14px);font-weight:var(--emw--font-weight-light, 300);color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));margin-top:15px;cursor:pointer}.PasswordContainer,.UserContainer{padding-bottom:40px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-error, #ed0909));font-size:10px;position:absolute;top:55px;padding-top:5px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:var(--emw--font-size-x-small, 12px);color:var(--emw--color-error, var(--emw--color-error, #ed0909))}.FormMobileContainer{height:100%}.FormMobileContainer .FormLogin{padding:40px 20px}.FormMobileContainer .SignInButton,.FormMobileContainer .UserContainer input,.FormMobileContainer .PasswordContainer input,.FormMobileContainer .CaptchaContainer{max-width:unset;border-radius:var(--emw--border-radius-medium, 15px)}.ModalLoaderWrapper{display:flex;height:100%;align-items:center}.ModalLoader{display:block;width:80px;height:80px;margin:0 auto}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--registration-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}input::-ms-reveal,input::-ms-clear{display:none}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}');
|
|
4388
4431
|
}
|
|
4389
|
-
function
|
|
4432
|
+
function yr(e) {
|
|
4390
4433
|
let t, r;
|
|
4391
4434
|
return {
|
|
4392
4435
|
c() {
|
|
4393
|
-
t =
|
|
4436
|
+
t = E("script"), qt(t.src, r = "//www.google.com/recaptcha/api.js?render=" + /*captchakey*/
|
|
4394
4437
|
e[1]) || h(t, "src", r), t.async = !0, t.defer = !0;
|
|
4395
4438
|
},
|
|
4396
4439
|
m(n, i) {
|
|
@@ -4398,7 +4441,7 @@ function dr(e) {
|
|
|
4398
4441
|
},
|
|
4399
4442
|
p(n, i) {
|
|
4400
4443
|
i[0] & /*captchakey*/
|
|
4401
|
-
2 && !
|
|
4444
|
+
2 && !qt(t.src, r = "//www.google.com/recaptcha/api.js?render=" + /*captchakey*/
|
|
4402
4445
|
n[1]) && h(t, "src", r);
|
|
4403
4446
|
},
|
|
4404
4447
|
d(n) {
|
|
@@ -4406,22 +4449,22 @@ function dr(e) {
|
|
|
4406
4449
|
}
|
|
4407
4450
|
};
|
|
4408
4451
|
}
|
|
4409
|
-
function
|
|
4452
|
+
function ko(e) {
|
|
4410
4453
|
let t, r, n;
|
|
4411
4454
|
function i(a, c) {
|
|
4412
4455
|
return (
|
|
4413
4456
|
/*startSmsValidation*/
|
|
4414
|
-
a[21] ?
|
|
4457
|
+
a[21] ? jo : Go
|
|
4415
4458
|
);
|
|
4416
4459
|
}
|
|
4417
4460
|
let o = i(e), s = o(e);
|
|
4418
4461
|
return {
|
|
4419
4462
|
c() {
|
|
4420
|
-
t =
|
|
4463
|
+
t = E("div"), r = E("div"), s.c(), h(r, "class", "FormLogin"), h(t, "class", n = "FormContainer " + /*mobileView*/
|
|
4421
4464
|
(e[11] ? "FormMobileContainer" : ""));
|
|
4422
4465
|
},
|
|
4423
4466
|
m(a, c) {
|
|
4424
|
-
L(a, t, c),
|
|
4467
|
+
L(a, t, c), m(t, r), s.m(r, null);
|
|
4425
4468
|
},
|
|
4426
4469
|
p(a, c) {
|
|
4427
4470
|
o === (o = i(a)) && s ? s.p(a, c) : (s.d(1), s = o(a), s && (s.c(), s.m(r, null))), c[0] & /*mobileView*/
|
|
@@ -4433,11 +4476,11 @@ function No(e) {
|
|
|
4433
4476
|
}
|
|
4434
4477
|
};
|
|
4435
4478
|
}
|
|
4436
|
-
function
|
|
4479
|
+
function $o(e) {
|
|
4437
4480
|
let t;
|
|
4438
4481
|
return {
|
|
4439
4482
|
c() {
|
|
4440
|
-
t =
|
|
4483
|
+
t = E("div"), t.innerHTML = '<div class="ModalLoader"></div>', h(t, "class", "ModalLoaderWrapper");
|
|
4441
4484
|
},
|
|
4442
4485
|
m(r, n) {
|
|
4443
4486
|
L(r, t, n);
|
|
@@ -4448,7 +4491,7 @@ function Ro(e) {
|
|
|
4448
4491
|
}
|
|
4449
4492
|
};
|
|
4450
4493
|
}
|
|
4451
|
-
function
|
|
4494
|
+
function Go(e) {
|
|
4452
4495
|
let t, r, n = (
|
|
4453
4496
|
/*$_*/
|
|
4454
4497
|
e[22]("loginTitle") + ""
|
|
@@ -4458,158 +4501,158 @@ function Uo(e) {
|
|
|
4458
4501
|
), c, l, u, f = (
|
|
4459
4502
|
/*$_*/
|
|
4460
4503
|
e[22]("loginSubtitleRegister") + ""
|
|
4461
|
-
),
|
|
4504
|
+
), d, b, y, g, x, O, z = (
|
|
4462
4505
|
/*$_*/
|
|
4463
4506
|
e[22]("loginUsername") + ""
|
|
4464
|
-
), R, U, A, re, H,
|
|
4507
|
+
), R, U, A, re, H, oe, he, J, le, B, ne, X = (
|
|
4465
4508
|
/*$_*/
|
|
4466
4509
|
e[22]("loginPassword") + ""
|
|
4467
|
-
),
|
|
4510
|
+
), Ue, Ze, fe, de, M, ye, qe, _e, we, me, Fe, Ee, Q, pe = (
|
|
4468
4511
|
/*$_*/
|
|
4469
4512
|
e[22]("loginButton") + ""
|
|
4470
4513
|
), xe, Je, ge, be = (
|
|
4471
4514
|
/*$_*/
|
|
4472
4515
|
e[22]("loginForgotPassword") + ""
|
|
4473
|
-
),
|
|
4516
|
+
), De, ke, Qe, F = (
|
|
4474
4517
|
/*invalidName*/
|
|
4475
|
-
e[14] &&
|
|
4518
|
+
e[14] && _r(e)
|
|
4476
4519
|
);
|
|
4477
|
-
function Ye(v,
|
|
4520
|
+
function Ye(v, S) {
|
|
4478
4521
|
return (
|
|
4479
4522
|
/*isPasswordVisible*/
|
|
4480
|
-
v[19] ?
|
|
4523
|
+
v[19] ? zo : Vo
|
|
4481
4524
|
);
|
|
4482
4525
|
}
|
|
4483
4526
|
let Se = Ye(e), Y = Se(e), D = (
|
|
4484
4527
|
/*invalidPassword*/
|
|
4485
4528
|
e[15] && /*simplepasswordvalidation*/
|
|
4486
|
-
e[2] !== "true" &&
|
|
4529
|
+
e[2] !== "true" && wr(e)
|
|
4487
4530
|
), k = (
|
|
4488
4531
|
/*invalidPassword*/
|
|
4489
4532
|
e[15] && /*simplepasswordvalidation*/
|
|
4490
|
-
e[2] === "true" &&
|
|
4491
|
-
),
|
|
4533
|
+
e[2] === "true" && Er(e)
|
|
4534
|
+
), $ = (
|
|
4492
4535
|
/*errorMessage*/
|
|
4493
|
-
e[16] &&
|
|
4536
|
+
e[16] && xr(e)
|
|
4494
4537
|
);
|
|
4495
4538
|
return {
|
|
4496
4539
|
c() {
|
|
4497
|
-
t =
|
|
4498
|
-
e[6] ? "username email" : "off"), H.required = !0, h(
|
|
4540
|
+
t = E("div"), r = E("h4"), i = N(n), o = j(), s = E("p"), c = N(a), l = j(), u = E("span"), d = N(f), b = j(), y = E("div"), g = E("form"), x = E("div"), O = E("label"), R = N(z), U = N(":"), A = E("span"), A.textContent = "*", re = j(), H = E("input"), he = j(), F && F.c(), le = j(), B = E("div"), ne = E("label"), Ue = N(X), Ze = N(":"), fe = E("span"), fe.textContent = "*", de = j(), M = E("input"), qe = j(), Y.c(), _e = j(), D && D.c(), we = j(), k && k.c(), Fe = j(), $ && $.c(), Ee = j(), Q = E("button"), xe = N(pe), Je = j(), ge = E("button"), De = N(be), h(r, "class", "FormHeaderTitle"), h(u, "class", "FormRegisterCallToAction"), h(s, "class", "FormHeaderSubtitle"), h(t, "class", "FormHeader"), h(A, "class", "FormRequired"), h(O, "for", "username"), h(H, "type", "text"), h(H, "id", "email"), h(H, "name", "email"), h(H, "autocomplete", oe = /*savecredentials*/
|
|
4541
|
+
e[6] ? "username email" : "off"), H.required = !0, h(x, "class", J = "UserContainer " + /*invalidName*/
|
|
4499
4542
|
(e[14] ? "InvalidField" : "")), h(fe, "class", "FormRequired"), h(ne, "for", "current-password"), h(M, "type", "password"), h(M, "name", "current-password"), h(M, "id", "current-password"), h(M, "autocomplete", ye = /*savecredentials*/
|
|
4500
|
-
e[6] ? "current-password" : "off"), h(M, "aria-describedby", "password-constraints"), M.required = !0, h(B, "class",
|
|
4543
|
+
e[6] ? "current-password" : "off"), h(M, "aria-describedby", "password-constraints"), M.required = !0, h(B, "class", me = "PasswordContainer " + /*invalidPassword*/
|
|
4501
4544
|
(e[15] ? "InvalidField" : "")), h(Q, "class", "SignInButton"), Q.disabled = /*isFormDataInvalid*/
|
|
4502
4545
|
e[20], h(Q, "id", "signin-button"), h(ge, "class", "ForgotPasswordButton"), h(g, "id", "signin"), h(y, "class", "FormContent");
|
|
4503
4546
|
},
|
|
4504
|
-
m(v,
|
|
4505
|
-
L(v, t,
|
|
4547
|
+
m(v, S) {
|
|
4548
|
+
L(v, t, S), m(t, r), m(r, i), m(t, o), m(t, s), m(s, c), m(s, l), m(s, u), m(u, d), L(v, b, S), L(v, y, S), m(y, g), m(g, x), m(x, O), m(O, R), m(O, U), m(O, A), m(x, re), m(x, H), rt(
|
|
4506
4549
|
H,
|
|
4507
4550
|
/*userValue*/
|
|
4508
4551
|
e[12]
|
|
4509
|
-
),
|
|
4552
|
+
), m(x, he), F && F.m(x, null), m(g, le), m(g, B), m(B, ne), m(ne, Ue), m(ne, Ze), m(ne, fe), m(B, de), m(B, M), rt(
|
|
4510
4553
|
M,
|
|
4511
4554
|
/*userPassword*/
|
|
4512
4555
|
e[13]
|
|
4513
|
-
), e[36](M),
|
|
4514
|
-
|
|
4556
|
+
), e[36](M), m(B, qe), Y.m(B, null), m(B, _e), D && D.m(B, null), m(B, we), k && k.m(B, null), m(g, Fe), $ && $.m(g, null), m(g, Ee), m(g, Q), m(Q, xe), m(g, Je), m(g, ge), m(ge, De), ke || (Qe = [
|
|
4557
|
+
se(
|
|
4515
4558
|
u,
|
|
4516
4559
|
"click",
|
|
4517
4560
|
/*click_handler*/
|
|
4518
4561
|
e[33]
|
|
4519
4562
|
),
|
|
4520
|
-
|
|
4563
|
+
se(
|
|
4521
4564
|
H,
|
|
4522
4565
|
"input",
|
|
4523
4566
|
/*input0_input_handler*/
|
|
4524
4567
|
e[34]
|
|
4525
4568
|
),
|
|
4526
|
-
|
|
4569
|
+
se(
|
|
4527
4570
|
H,
|
|
4528
4571
|
"input",
|
|
4529
4572
|
/*validateUserName*/
|
|
4530
4573
|
e[28]
|
|
4531
4574
|
),
|
|
4532
|
-
|
|
4575
|
+
se(
|
|
4533
4576
|
M,
|
|
4534
4577
|
"input",
|
|
4535
4578
|
/*input1_input_handler*/
|
|
4536
4579
|
e[35]
|
|
4537
4580
|
),
|
|
4538
|
-
|
|
4581
|
+
se(
|
|
4539
4582
|
M,
|
|
4540
4583
|
"input",
|
|
4541
4584
|
/*validatePassword*/
|
|
4542
4585
|
e[29]
|
|
4543
4586
|
),
|
|
4544
|
-
|
|
4587
|
+
se(
|
|
4545
4588
|
Q,
|
|
4546
4589
|
"click",
|
|
4547
4590
|
/*click_handler_3*/
|
|
4548
4591
|
e[39]
|
|
4549
4592
|
),
|
|
4550
|
-
|
|
4593
|
+
se(
|
|
4551
4594
|
ge,
|
|
4552
4595
|
"click",
|
|
4553
4596
|
/*click_handler_4*/
|
|
4554
4597
|
e[40]
|
|
4555
4598
|
)
|
|
4556
|
-
],
|
|
4599
|
+
], ke = !0);
|
|
4557
4600
|
},
|
|
4558
|
-
p(v,
|
|
4559
|
-
|
|
4601
|
+
p(v, S) {
|
|
4602
|
+
S[0] & /*$_*/
|
|
4560
4603
|
4194304 && n !== (n = /*$_*/
|
|
4561
|
-
v[22]("loginTitle") + "") && te(i, n),
|
|
4604
|
+
v[22]("loginTitle") + "") && te(i, n), S[0] & /*$_*/
|
|
4562
4605
|
4194304 && a !== (a = /*$_*/
|
|
4563
|
-
v[22]("loginSubtitle") + "") && te(c, a),
|
|
4606
|
+
v[22]("loginSubtitle") + "") && te(c, a), S[0] & /*$_*/
|
|
4564
4607
|
4194304 && f !== (f = /*$_*/
|
|
4565
|
-
v[22]("loginSubtitleRegister") + "") && te(
|
|
4608
|
+
v[22]("loginSubtitleRegister") + "") && te(d, f), S[0] & /*$_*/
|
|
4566
4609
|
4194304 && z !== (z = /*$_*/
|
|
4567
|
-
v[22]("loginUsername") + "") && te(R, z),
|
|
4568
|
-
64 &&
|
|
4569
|
-
v[6] ? "username email" : "off") && h(H, "autocomplete",
|
|
4610
|
+
v[22]("loginUsername") + "") && te(R, z), S[0] & /*savecredentials*/
|
|
4611
|
+
64 && oe !== (oe = /*savecredentials*/
|
|
4612
|
+
v[6] ? "username email" : "off") && h(H, "autocomplete", oe), S[0] & /*userValue*/
|
|
4570
4613
|
4096 && H.value !== /*userValue*/
|
|
4571
4614
|
v[12] && rt(
|
|
4572
4615
|
H,
|
|
4573
4616
|
/*userValue*/
|
|
4574
4617
|
v[12]
|
|
4575
4618
|
), /*invalidName*/
|
|
4576
|
-
v[14] ? F ? F.p(v,
|
|
4619
|
+
v[14] ? F ? F.p(v, S) : (F = _r(v), F.c(), F.m(x, null)) : F && (F.d(1), F = null), S[0] & /*invalidName*/
|
|
4577
4620
|
16384 && J !== (J = "UserContainer " + /*invalidName*/
|
|
4578
|
-
(v[14] ? "InvalidField" : "")) && h(
|
|
4621
|
+
(v[14] ? "InvalidField" : "")) && h(x, "class", J), S[0] & /*$_*/
|
|
4579
4622
|
4194304 && X !== (X = /*$_*/
|
|
4580
|
-
v[22]("loginPassword") + "") && te(
|
|
4623
|
+
v[22]("loginPassword") + "") && te(Ue, X), S[0] & /*savecredentials*/
|
|
4581
4624
|
64 && ye !== (ye = /*savecredentials*/
|
|
4582
|
-
v[6] ? "current-password" : "off") && h(M, "autocomplete", ye),
|
|
4625
|
+
v[6] ? "current-password" : "off") && h(M, "autocomplete", ye), S[0] & /*userPassword*/
|
|
4583
4626
|
8192 && M.value !== /*userPassword*/
|
|
4584
4627
|
v[13] && rt(
|
|
4585
4628
|
M,
|
|
4586
4629
|
/*userPassword*/
|
|
4587
4630
|
v[13]
|
|
4588
|
-
), Se === (Se = Ye(v)) && Y ? Y.p(v,
|
|
4631
|
+
), Se === (Se = Ye(v)) && Y ? Y.p(v, S) : (Y.d(1), Y = Se(v), Y && (Y.c(), Y.m(B, _e))), /*invalidPassword*/
|
|
4589
4632
|
v[15] && /*simplepasswordvalidation*/
|
|
4590
|
-
v[2] !== "true" ? D ? D.p(v,
|
|
4633
|
+
v[2] !== "true" ? D ? D.p(v, S) : (D = wr(v), D.c(), D.m(B, we)) : D && (D.d(1), D = null), /*invalidPassword*/
|
|
4591
4634
|
v[15] && /*simplepasswordvalidation*/
|
|
4592
|
-
v[2] === "true" ? k ? k.p(v,
|
|
4593
|
-
32768 &&
|
|
4594
|
-
(v[15] ? "InvalidField" : "")) && h(B, "class",
|
|
4595
|
-
v[16] ?
|
|
4635
|
+
v[2] === "true" ? k ? k.p(v, S) : (k = Er(v), k.c(), k.m(B, null)) : k && (k.d(1), k = null), S[0] & /*invalidPassword*/
|
|
4636
|
+
32768 && me !== (me = "PasswordContainer " + /*invalidPassword*/
|
|
4637
|
+
(v[15] ? "InvalidField" : "")) && h(B, "class", me), /*errorMessage*/
|
|
4638
|
+
v[16] ? $ ? $.p(v, S) : ($ = xr(v), $.c(), $.m(g, Ee)) : $ && ($.d(1), $ = null), S[0] & /*$_*/
|
|
4596
4639
|
4194304 && pe !== (pe = /*$_*/
|
|
4597
|
-
v[22]("loginButton") + "") && te(xe, pe),
|
|
4640
|
+
v[22]("loginButton") + "") && te(xe, pe), S[0] & /*isFormDataInvalid*/
|
|
4598
4641
|
1048576 && (Q.disabled = /*isFormDataInvalid*/
|
|
4599
|
-
v[20]),
|
|
4642
|
+
v[20]), S[0] & /*$_*/
|
|
4600
4643
|
4194304 && be !== (be = /*$_*/
|
|
4601
|
-
v[22]("loginForgotPassword") + "") && te(
|
|
4644
|
+
v[22]("loginForgotPassword") + "") && te(De, be);
|
|
4602
4645
|
},
|
|
4603
4646
|
d(v) {
|
|
4604
|
-
v && (I(t), I(b), I(y)), F && F.d(), e[36](null), Y.d(), D && D.d(), k && k.d(),
|
|
4647
|
+
v && (I(t), I(b), I(y)), F && F.d(), e[36](null), Y.d(), D && D.d(), k && k.d(), $ && $.d(), ke = !1, Le(Qe);
|
|
4605
4648
|
}
|
|
4606
4649
|
};
|
|
4607
4650
|
}
|
|
4608
|
-
function
|
|
4651
|
+
function jo(e) {
|
|
4609
4652
|
let t;
|
|
4610
4653
|
return {
|
|
4611
4654
|
c() {
|
|
4612
|
-
t =
|
|
4655
|
+
t = E("general-player-sms-verification-form"), W(
|
|
4613
4656
|
t,
|
|
4614
4657
|
"endpoint",
|
|
4615
4658
|
/*endpoint*/
|
|
@@ -4699,17 +4742,17 @@ function Fo(e) {
|
|
|
4699
4742
|
}
|
|
4700
4743
|
};
|
|
4701
4744
|
}
|
|
4702
|
-
function
|
|
4745
|
+
function _r(e) {
|
|
4703
4746
|
let t, r = (
|
|
4704
4747
|
/*$_*/
|
|
4705
4748
|
e[22]("loginUsernameError") + ""
|
|
4706
4749
|
), n;
|
|
4707
4750
|
return {
|
|
4708
4751
|
c() {
|
|
4709
|
-
t =
|
|
4752
|
+
t = E("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4710
4753
|
},
|
|
4711
4754
|
m(i, o) {
|
|
4712
|
-
L(i, t, o),
|
|
4755
|
+
L(i, t, o), m(t, n);
|
|
4713
4756
|
},
|
|
4714
4757
|
p(i, o) {
|
|
4715
4758
|
o[0] & /*$_*/
|
|
@@ -4721,14 +4764,14 @@ function pr(e) {
|
|
|
4721
4764
|
}
|
|
4722
4765
|
};
|
|
4723
4766
|
}
|
|
4724
|
-
function
|
|
4767
|
+
function Vo(e) {
|
|
4725
4768
|
let t, r, n, i, o, s, a, c, l;
|
|
4726
4769
|
return {
|
|
4727
4770
|
c() {
|
|
4728
|
-
t =
|
|
4771
|
+
t = C("svg"), r = C("defs"), n = C("style"), i = N(".a{fill:var(--emw--registration-typography, var(--emw--color-background, #07072A));}"), o = C("g"), s = C("path"), a = C("circle"), h(s, "class", "a"), h(s, "d", "M23.541,38.332a11.467,11.467,0,0,1-4.886-1.611,34.413,34.413,0,0,1-3.976-2.469,1.1,1.1,0,0,1-.494-.936,1.21,1.21,0,0,1,.442-.962A37.986,37.986,0,0,1,18.6,29.625a16.06,16.06,0,0,1,2.521-1.248,6.862,6.862,0,0,1,2.417-.546,6.862,6.862,0,0,1,2.417.546,20.541,20.541,0,0,1,2.547,1.248,45.872,45.872,0,0,1,4.054,2.729,1.159,1.159,0,0,1,.468.962,1.067,1.067,0,0,1-.52.936,36.353,36.353,0,0,1-4.054,2.469A11.2,11.2,0,0,1,23.541,38.332Zm0-9.46a9.813,9.813,0,0,0-4.392,1.663,44.138,44.138,0,0,0-3.873,2.651.13.13,0,0,0,0,.208,36.5,36.5,0,0,0,3.873,2.391,10.372,10.372,0,0,0,4.392,1.481,11.051,11.051,0,0,0,4.444-1.481,40.2,40.2,0,0,0,3.925-2.391.13.13,0,0,0,0-.208h0a34.132,34.132,0,0,0-3.925-2.651A10.072,10.072,0,0,0,23.541,28.872Z"), h(s, "transform", "translate(0)"), h(a, "class", "a"), h(a, "cx", "2.779"), h(a, "cy", "2.779"), h(a, "r", "2.779"), h(a, "transform", "translate(20.827 30.303)"), h(o, "transform", "translate(-14.185 -27.832)"), h(t, "class", "TogglePasswordVisibility"), h(t, "xmlns", "http://www.w3.org/2000/svg"), h(t, "width", "18.843"), h(t, "height", "10.5"), h(t, "viewBox", "0 0 18.843 10.5");
|
|
4729
4772
|
},
|
|
4730
4773
|
m(u, f) {
|
|
4731
|
-
L(u, t, f),
|
|
4774
|
+
L(u, t, f), m(t, r), m(r, n), m(n, i), m(t, o), m(o, s), m(o, a), c || (l = se(
|
|
4732
4775
|
t,
|
|
4733
4776
|
"click",
|
|
4734
4777
|
/*click_handler_2*/
|
|
@@ -4741,14 +4784,14 @@ function Do(e) {
|
|
|
4741
4784
|
}
|
|
4742
4785
|
};
|
|
4743
4786
|
}
|
|
4744
|
-
function
|
|
4745
|
-
let t, r, n, i, o, s, a, c, l, u, f,
|
|
4787
|
+
function zo(e) {
|
|
4788
|
+
let t, r, n, i, o, s, a, c, l, u, f, d, b, y, g;
|
|
4746
4789
|
return {
|
|
4747
4790
|
c() {
|
|
4748
|
-
t =
|
|
4791
|
+
t = C("svg"), r = C("defs"), n = C("style"), i = N(".a{fill:var(--emw--registration-typography, var(--emw--color-background, #07072A));}"), o = C("g"), s = C("circle"), a = C("g"), c = C("path"), l = C("path"), u = C("g"), f = C("path"), d = C("path"), b = C("rect"), h(s, "class", "a"), h(s, "cx", "0.05"), h(s, "cy", "0.05"), h(s, "r", "0.05"), h(s, "transform", "translate(121.017 31.148)"), h(c, "class", "a"), h(c, "d", "M147.413,43.174a2.774,2.774,0,0,0-3.229-3.943Z"), h(c, "transform", "translate(-142.164 -39.123)"), h(l, "class", "a"), h(l, "d", "M137.031,43.1a2.778,2.778,0,0,0,3.447,4.209Z"), h(l, "transform", "translate(-136.413 -42.068)"), h(a, "transform", "translate(117.499 27.37)"), h(f, "class", "a"), h(f, "d", "M122.538,42.061a7.043,7.043,0,0,1-2.325.53,10.373,10.373,0,0,1-4.393-1.482,36.509,36.509,0,0,1-3.873-2.391.13.13,0,0,1,0-.208,44.141,44.141,0,0,1,3.873-2.651c.394-.233.768-.437,1.13-.622l-.686-.838c-.322.167-.651.347-.99.55a37.989,37.989,0,0,0-3.977,2.729,1.21,1.21,0,0,0-.442.962,1.1,1.1,0,0,0,.494.936,34.416,34.416,0,0,0,3.977,2.469,11.468,11.468,0,0,0,4.886,1.611,8.427,8.427,0,0,0,3.039-.725Z"), h(f, "transform", "translate(-110.856 -33.157)"), h(d, "class", "a"), h(d, "d", "M149.119,34.14a45.875,45.875,0,0,0-4.055-2.729,20.541,20.541,0,0,0-2.547-1.248,5.6,5.6,0,0,0-4.79-.017l.7.856a5.254,5.254,0,0,1,1.672-.346,10.072,10.072,0,0,1,4.445,1.663,34.132,34.132,0,0,1,3.925,2.651.13.13,0,0,1,0,.208,40.2,40.2,0,0,1-3.925,2.391c-.179.092-.352.176-.525.26l.684.835c.1-.054.2-.1.309-.159a36.356,36.356,0,0,0,4.055-2.469,1.067,1.067,0,0,0,.52-.936A1.159,1.159,0,0,0,149.119,34.14Z"), h(d, "transform", "translate(-130.743 -29.617)"), h(u, "transform", "translate(110.856 24.899)"), h(b, "class", "a"), h(b, "width", "0.972"), h(b, "height", "15.861"), h(b, "rx", "0.486"), h(b, "transform", "translate(114.827 23.858) rotate(-39.315)"), h(o, "transform", "translate(-110.856 -23.242)"), h(t, "class", "TogglePasswordVisibility"), h(t, "xmlns", "http://www.w3.org/2000/svg"), h(t, "width", "18.844"), h(t, "height", "12.887"), h(t, "viewBox", "0 0 18.844 12.887");
|
|
4749
4792
|
},
|
|
4750
|
-
m(
|
|
4751
|
-
L(
|
|
4793
|
+
m(x, O) {
|
|
4794
|
+
L(x, t, O), m(t, r), m(r, n), m(n, i), m(t, o), m(o, s), m(o, a), m(a, c), m(a, l), m(o, u), m(u, f), m(u, d), m(o, b), y || (g = se(
|
|
4752
4795
|
t,
|
|
4753
4796
|
"click",
|
|
4754
4797
|
/*click_handler_1*/
|
|
@@ -4756,22 +4799,22 @@ function ko(e) {
|
|
|
4756
4799
|
), y = !0);
|
|
4757
4800
|
},
|
|
4758
4801
|
p: Z,
|
|
4759
|
-
d(
|
|
4760
|
-
|
|
4802
|
+
d(x) {
|
|
4803
|
+
x && I(t), y = !1, g();
|
|
4761
4804
|
}
|
|
4762
4805
|
};
|
|
4763
4806
|
}
|
|
4764
|
-
function
|
|
4807
|
+
function wr(e) {
|
|
4765
4808
|
let t, r = (
|
|
4766
4809
|
/*$_*/
|
|
4767
4810
|
e[22]("loginPasswordError") + ""
|
|
4768
4811
|
), n;
|
|
4769
4812
|
return {
|
|
4770
4813
|
c() {
|
|
4771
|
-
t =
|
|
4814
|
+
t = E("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4772
4815
|
},
|
|
4773
4816
|
m(i, o) {
|
|
4774
|
-
L(i, t, o),
|
|
4817
|
+
L(i, t, o), m(t, n);
|
|
4775
4818
|
},
|
|
4776
4819
|
p(i, o) {
|
|
4777
4820
|
o[0] & /*$_*/
|
|
@@ -4783,17 +4826,17 @@ function gr(e) {
|
|
|
4783
4826
|
}
|
|
4784
4827
|
};
|
|
4785
4828
|
}
|
|
4786
|
-
function
|
|
4829
|
+
function Er(e) {
|
|
4787
4830
|
let t, r = (
|
|
4788
4831
|
/*$_*/
|
|
4789
4832
|
e[22]("loginSimplePasswordError") + ""
|
|
4790
4833
|
), n;
|
|
4791
4834
|
return {
|
|
4792
4835
|
c() {
|
|
4793
|
-
t =
|
|
4836
|
+
t = E("p"), n = N(r), h(t, "class", "InvalidInput");
|
|
4794
4837
|
},
|
|
4795
4838
|
m(i, o) {
|
|
4796
|
-
L(i, t, o),
|
|
4839
|
+
L(i, t, o), m(t, n);
|
|
4797
4840
|
},
|
|
4798
4841
|
p(i, o) {
|
|
4799
4842
|
o[0] & /*$_*/
|
|
@@ -4805,17 +4848,17 @@ function br(e) {
|
|
|
4805
4848
|
}
|
|
4806
4849
|
};
|
|
4807
4850
|
}
|
|
4808
|
-
function
|
|
4851
|
+
function xr(e) {
|
|
4809
4852
|
let t, r;
|
|
4810
4853
|
return {
|
|
4811
4854
|
c() {
|
|
4812
|
-
t =
|
|
4855
|
+
t = E("p"), r = N(
|
|
4813
4856
|
/*errorMessage*/
|
|
4814
4857
|
e[16]
|
|
4815
4858
|
), h(t, "class", "ErrorMessage");
|
|
4816
4859
|
},
|
|
4817
4860
|
m(n, i) {
|
|
4818
|
-
L(n, t, i),
|
|
4861
|
+
L(n, t, i), m(t, r);
|
|
4819
4862
|
},
|
|
4820
4863
|
p(n, i) {
|
|
4821
4864
|
i[0] & /*errorMessage*/
|
|
@@ -4830,21 +4873,21 @@ function vr(e) {
|
|
|
4830
4873
|
}
|
|
4831
4874
|
};
|
|
4832
4875
|
}
|
|
4833
|
-
function
|
|
4876
|
+
function Xo(e) {
|
|
4834
4877
|
let t, r, n, i, o, s = (
|
|
4835
4878
|
/*captchakey*/
|
|
4836
|
-
e[1] &&
|
|
4879
|
+
e[1] && yr(e)
|
|
4837
4880
|
);
|
|
4838
4881
|
function a(u, f) {
|
|
4839
4882
|
return (
|
|
4840
4883
|
/*isLoading*/
|
|
4841
|
-
u[17] ?
|
|
4884
|
+
u[17] ? $o : ko
|
|
4842
4885
|
);
|
|
4843
4886
|
}
|
|
4844
4887
|
let c = a(e), l = c(e);
|
|
4845
4888
|
return {
|
|
4846
4889
|
c() {
|
|
4847
|
-
s && s.c(), t =
|
|
4890
|
+
s && s.c(), t = fn(), r = j(), n = E("div"), i = j(), o = E("div"), l.c(), h(n, "class", "g-recaptcha"), h(
|
|
4848
4891
|
n,
|
|
4849
4892
|
"data-sitekey",
|
|
4850
4893
|
/*captchakey*/
|
|
@@ -4852,11 +4895,11 @@ function Go(e) {
|
|
|
4852
4895
|
), h(o, "class", "PlayerLoginFormWrapper");
|
|
4853
4896
|
},
|
|
4854
4897
|
m(u, f) {
|
|
4855
|
-
s && s.m(document.head, null),
|
|
4898
|
+
s && s.m(document.head, null), m(document.head, t), L(u, r, f), L(u, n, f), L(u, i, f), L(u, o, f), l.m(o, null), e[41](o);
|
|
4856
4899
|
},
|
|
4857
4900
|
p(u, f) {
|
|
4858
4901
|
/*captchakey*/
|
|
4859
|
-
u[1] ? s ? s.p(u, f) : (s =
|
|
4902
|
+
u[1] ? s ? s.p(u, f) : (s = yr(u), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null), f[0] & /*captchakey*/
|
|
4860
4903
|
2 && h(
|
|
4861
4904
|
n,
|
|
4862
4905
|
"data-sitekey",
|
|
@@ -4871,27 +4914,27 @@ function Go(e) {
|
|
|
4871
4914
|
}
|
|
4872
4915
|
};
|
|
4873
4916
|
}
|
|
4874
|
-
let
|
|
4875
|
-
function
|
|
4917
|
+
let Wo = "Please use this code {0} to activate your account";
|
|
4918
|
+
function Zo(e, t, r) {
|
|
4876
4919
|
let n;
|
|
4877
|
-
|
|
4878
|
-
let { endpoint: i = "" } = t, { captchakey: o = "" } = t, { lang: s = "en" } = t, { smsverification: a = "false" } = t, { simplepasswordvalidation: c = "false" } = t, { mbsource: l } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl:
|
|
4920
|
+
ln(e, Co, (p) => r(22, n = p));
|
|
4921
|
+
let { endpoint: i = "" } = t, { captchakey: o = "" } = t, { lang: s = "en" } = t, { smsverification: a = "false" } = t, { simplepasswordvalidation: c = "false" } = t, { mbsource: l } = t, { clientstyling: u = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: d = "" } = t, { savecredentials: b = "" } = t, y, g, x = !1, O, z = !1, R = window.navigator.userAgent, U = "", A = "", re = { username: "", password: "" }, H = !1, oe = !1, he = "", J = !1, le, B = !1, ne = !0, X, Ue = +localStorage.getItem("smsTimer") || 0, Ze = Date.now() / 1e3 - Ue, fe = localStorage.getItem("smsValidation") == "true" && Ze < 60, de = {
|
|
4879
4922
|
user: /^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,
|
|
4880
4923
|
email: /^[^<>()*{}=/|?`~[\]\\,;:\%#^\s@\"$&!@]+@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z0-9]+\.)+[a-zA-Z]{2,}))$/i,
|
|
4881
4924
|
password: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/
|
|
4882
4925
|
};
|
|
4883
|
-
|
|
4926
|
+
Mo({ withLocale: "en", translations: {} });
|
|
4884
4927
|
const M = () => {
|
|
4885
|
-
fetch(
|
|
4928
|
+
fetch(d).then((q) => q.json()).then((q) => {
|
|
4886
4929
|
Object.keys(q).forEach((ee) => {
|
|
4887
|
-
|
|
4930
|
+
br(ee, q[ee]);
|
|
4888
4931
|
});
|
|
4889
4932
|
}).catch((q) => {
|
|
4890
4933
|
console.log(q);
|
|
4891
4934
|
});
|
|
4892
4935
|
};
|
|
4893
|
-
Object.keys(
|
|
4894
|
-
|
|
4936
|
+
Object.keys(vr).forEach((p) => {
|
|
4937
|
+
br(p, vr[p]);
|
|
4895
4938
|
});
|
|
4896
4939
|
const ye = () => new Promise((p, q) => {
|
|
4897
4940
|
grecaptcha.ready(() => {
|
|
@@ -4900,14 +4943,14 @@ function jo(e, t, r) {
|
|
|
4900
4943
|
});
|
|
4901
4944
|
});
|
|
4902
4945
|
}), qe = () => {
|
|
4903
|
-
c == "true" && (
|
|
4946
|
+
c == "true" && (de.password = /^(?!.* ).{8,20}$/);
|
|
4904
4947
|
}, _e = () => {
|
|
4905
|
-
r(19, B = !0),
|
|
4948
|
+
r(19, B = !0), me();
|
|
4906
4949
|
}, we = () => {
|
|
4907
|
-
r(19, B = !1),
|
|
4908
|
-
},
|
|
4950
|
+
r(19, B = !1), me();
|
|
4951
|
+
}, me = () => {
|
|
4909
4952
|
r(18, le.type = B ? "text" : "password", le);
|
|
4910
|
-
},
|
|
4953
|
+
}, Fe = () => {
|
|
4911
4954
|
window.postMessage({ type: "ToRegister" }, window.location.href);
|
|
4912
4955
|
}, Ee = (p) => {
|
|
4913
4956
|
p.preventDefault(), window.postMessage({ type: "NavForgotPassword" }, window.location.href);
|
|
@@ -4917,12 +4960,12 @@ function jo(e, t, r) {
|
|
|
4917
4960
|
username: U,
|
|
4918
4961
|
password: A,
|
|
4919
4962
|
token: q
|
|
4920
|
-
}, r(17, J = !0),
|
|
4963
|
+
}, r(17, J = !0), ke(re));
|
|
4921
4964
|
});
|
|
4922
|
-
}, pe = (p) => !!((
|
|
4923
|
-
r(14, H = !pe(U)), r(20, ne = !(!H && !
|
|
4965
|
+
}, pe = (p) => !!((de.user.test(p) || de.email.test(p)) && p.length <= 100), xe = (p) => !!de.password.test(p), Je = () => {
|
|
4966
|
+
r(14, H = !pe(U)), r(20, ne = !(!H && !oe && A));
|
|
4924
4967
|
}, ge = () => {
|
|
4925
|
-
r(15,
|
|
4968
|
+
r(15, oe = !xe(A)), r(20, ne = !(!H && !oe && U));
|
|
4926
4969
|
}, be = (p) => {
|
|
4927
4970
|
if (p.data)
|
|
4928
4971
|
switch (p.data.type) {
|
|
@@ -4936,20 +4979,20 @@ function jo(e, t, r) {
|
|
|
4936
4979
|
Q();
|
|
4937
4980
|
break;
|
|
4938
4981
|
}
|
|
4939
|
-
},
|
|
4982
|
+
}, De = (p) => {
|
|
4940
4983
|
typeof gtag == "function" && gtag("event", "Login", {
|
|
4941
4984
|
context: "GeneralPlayerLoginRegisterPage"
|
|
4942
4985
|
});
|
|
4943
|
-
},
|
|
4986
|
+
}, ke = async ({ username: p, password: q, token: ee }) => {
|
|
4944
4987
|
let Ke = {
|
|
4945
4988
|
"Content-Type": "application/json",
|
|
4946
4989
|
"g-recaptcha-response": ee
|
|
4947
|
-
}, et = { username: p, password: q },
|
|
4990
|
+
}, et = { username: p, password: q }, sn = {
|
|
4948
4991
|
method: "POST",
|
|
4949
4992
|
headers: Ke,
|
|
4950
4993
|
body: JSON.stringify(et)
|
|
4951
4994
|
};
|
|
4952
|
-
fetch(`${i}/v1/player/login/player`,
|
|
4995
|
+
fetch(`${i}/v1/player/login/player`, sn).then((G) => (G.status >= 500 && (r(16, he = "Server might not be responsing"), r(17, J = !1), window.postMessage(
|
|
4953
4996
|
{
|
|
4954
4997
|
type: "WidgetNotification",
|
|
4955
4998
|
data: {
|
|
@@ -4958,13 +5001,13 @@ function jo(e, t, r) {
|
|
|
4958
5001
|
}
|
|
4959
5002
|
},
|
|
4960
5003
|
window.location.href
|
|
4961
|
-
)),
|
|
4962
|
-
if (
|
|
5004
|
+
)), G.json())).then((G) => {
|
|
5005
|
+
if (G.actions !== void 0 && window.postMessage({ type: "PlayerActions" }, window.location.href), a === "true" && G.code === 4 && (r(8, y = G.detail.userId), r(10, O = G.detail.phonePrefix + G.detail.phone), r(21, fe = !0), Qe(O, y), localStorage.setItem("smsValidation", "true"), localStorage.setItem("playerData", JSON.stringify({ playerid: y, number: O }))), G.sessionID) {
|
|
4963
5006
|
if (window.postMessage(
|
|
4964
5007
|
{
|
|
4965
5008
|
type: "UserSessionID",
|
|
4966
|
-
session:
|
|
4967
|
-
userid:
|
|
5009
|
+
session: G.sessionID,
|
|
5010
|
+
userid: G.universalID
|
|
4968
5011
|
},
|
|
4969
5012
|
window.location.href
|
|
4970
5013
|
), window.postMessage(
|
|
@@ -4983,10 +5026,10 @@ function jo(e, t, r) {
|
|
|
4983
5026
|
});
|
|
4984
5027
|
navigator.credentials.store($e);
|
|
4985
5028
|
}
|
|
4986
|
-
|
|
5029
|
+
De();
|
|
4987
5030
|
} else
|
|
4988
5031
|
try {
|
|
4989
|
-
let $e =
|
|
5032
|
+
let $e = G.error;
|
|
4990
5033
|
r(16, he = $e), r(17, J = !1), window.postMessage(
|
|
4991
5034
|
{
|
|
4992
5035
|
type: "WidgetNotification",
|
|
@@ -4995,11 +5038,11 @@ function jo(e, t, r) {
|
|
|
4995
5038
|
window.location.href
|
|
4996
5039
|
);
|
|
4997
5040
|
} catch {
|
|
4998
|
-
let
|
|
4999
|
-
r(16, he =
|
|
5041
|
+
let Wt = G.error.substring(G.error.indexOf("errorMessage") + 13, G.error.length);
|
|
5042
|
+
r(16, he = Wt), r(17, J = !1), window.postMessage(
|
|
5000
5043
|
{
|
|
5001
5044
|
type: "WidgetNotification",
|
|
5002
|
-
data: { type: "error", message:
|
|
5045
|
+
data: { type: "error", message: Wt }
|
|
5003
5046
|
},
|
|
5004
5047
|
window.location.href
|
|
5005
5048
|
);
|
|
@@ -5016,26 +5059,26 @@ function jo(e, t, r) {
|
|
|
5016
5059
|
},
|
|
5017
5060
|
body: JSON.stringify({
|
|
5018
5061
|
userId: q,
|
|
5019
|
-
messageTemplate:
|
|
5062
|
+
messageTemplate: Wo,
|
|
5020
5063
|
destination: p
|
|
5021
5064
|
})
|
|
5022
5065
|
}), Ke = await ee.json();
|
|
5023
5066
|
if (ee.ok) {
|
|
5024
5067
|
r(9, g = Ke.id);
|
|
5025
5068
|
let et = Ke.maxValidationAttempts;
|
|
5026
|
-
|
|
5069
|
+
x = !1;
|
|
5027
5070
|
} else
|
|
5028
|
-
throw
|
|
5071
|
+
throw x = !0, new Error("Failed to fetch");
|
|
5029
5072
|
} catch (ee) {
|
|
5030
|
-
|
|
5073
|
+
x = !0, console.error(ee);
|
|
5031
5074
|
}
|
|
5032
5075
|
}, F = () => {
|
|
5033
|
-
|
|
5076
|
+
No(s);
|
|
5034
5077
|
};
|
|
5035
|
-
|
|
5078
|
+
gn(() => (window.addEventListener("message", be, !1), window.postMessage({ type: "LoginRegisterModalActive" }, window.location.href), r(11, z = Lo(R)), () => {
|
|
5036
5079
|
window.removeEventListener("message", be);
|
|
5037
5080
|
}));
|
|
5038
|
-
const Ye = () =>
|
|
5081
|
+
const Ye = () => Fe();
|
|
5039
5082
|
function Se() {
|
|
5040
5083
|
U = this.value, r(12, U);
|
|
5041
5084
|
}
|
|
@@ -5047,22 +5090,22 @@ function jo(e, t, r) {
|
|
|
5047
5090
|
le = p, r(18, le);
|
|
5048
5091
|
});
|
|
5049
5092
|
}
|
|
5050
|
-
const k = () => we(),
|
|
5051
|
-
function
|
|
5093
|
+
const k = () => we(), $ = () => _e(), v = (p) => Q(p), S = (p) => Ee(p);
|
|
5094
|
+
function on(p) {
|
|
5052
5095
|
ut[p ? "unshift" : "push"](() => {
|
|
5053
5096
|
X = p, r(7, X);
|
|
5054
5097
|
});
|
|
5055
5098
|
}
|
|
5056
5099
|
return e.$$set = (p) => {
|
|
5057
|
-
"endpoint" in p && r(0, i = p.endpoint), "captchakey" in p && r(1, o = p.captchakey), "lang" in p && r(30, s = p.lang), "smsverification" in p && r(31, a = p.smsverification), "simplepasswordvalidation" in p && r(2, c = p.simplepasswordvalidation), "mbsource" in p && r(3, l = p.mbsource), "clientstyling" in p && r(4, u = p.clientstyling), "clientstylingurl" in p && r(5, f = p.clientstylingurl), "translationurl" in p && r(32,
|
|
5100
|
+
"endpoint" in p && r(0, i = p.endpoint), "captchakey" in p && r(1, o = p.captchakey), "lang" in p && r(30, s = p.lang), "smsverification" in p && r(31, a = p.smsverification), "simplepasswordvalidation" in p && r(2, c = p.simplepasswordvalidation), "mbsource" in p && r(3, l = p.mbsource), "clientstyling" in p && r(4, u = p.clientstyling), "clientstylingurl" in p && r(5, f = p.clientstylingurl), "translationurl" in p && r(32, d = p.translationurl), "savecredentials" in p && r(6, b = p.savecredentials);
|
|
5058
5101
|
}, e.$$.update = () => {
|
|
5059
5102
|
e.$$.dirty[0] & /*endpoint, lang*/
|
|
5060
5103
|
1073741825 && i && s && F(), e.$$.dirty[0] & /*simplepasswordvalidation*/
|
|
5061
5104
|
4 && c && qe(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5062
|
-
144 && u && X &&
|
|
5063
|
-
160 && f && X &&
|
|
5064
|
-
136 && l && X &&
|
|
5065
|
-
2 &&
|
|
5105
|
+
144 && u && X && Ro(X, u), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5106
|
+
160 && f && X && Uo(X, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5107
|
+
136 && l && X && Fo(X, `${l}.Style`), e.$$.dirty[1] & /*translationurl*/
|
|
5108
|
+
2 && d && M();
|
|
5066
5109
|
}, [
|
|
5067
5110
|
i,
|
|
5068
5111
|
o,
|
|
@@ -5074,12 +5117,12 @@ function jo(e, t, r) {
|
|
|
5074
5117
|
X,
|
|
5075
5118
|
y,
|
|
5076
5119
|
g,
|
|
5077
|
-
|
|
5120
|
+
O,
|
|
5078
5121
|
z,
|
|
5079
5122
|
U,
|
|
5080
5123
|
A,
|
|
5081
5124
|
H,
|
|
5082
|
-
|
|
5125
|
+
oe,
|
|
5083
5126
|
he,
|
|
5084
5127
|
J,
|
|
5085
5128
|
le,
|
|
@@ -5089,33 +5132,33 @@ function jo(e, t, r) {
|
|
|
5089
5132
|
n,
|
|
5090
5133
|
_e,
|
|
5091
5134
|
we,
|
|
5092
|
-
|
|
5135
|
+
Fe,
|
|
5093
5136
|
Ee,
|
|
5094
5137
|
Q,
|
|
5095
5138
|
Je,
|
|
5096
5139
|
ge,
|
|
5097
5140
|
s,
|
|
5098
5141
|
a,
|
|
5099
|
-
|
|
5142
|
+
d,
|
|
5100
5143
|
Ye,
|
|
5101
5144
|
Se,
|
|
5102
5145
|
Y,
|
|
5103
5146
|
D,
|
|
5104
5147
|
k,
|
|
5105
|
-
|
|
5148
|
+
$,
|
|
5106
5149
|
v,
|
|
5107
|
-
|
|
5108
|
-
|
|
5150
|
+
S,
|
|
5151
|
+
on
|
|
5109
5152
|
];
|
|
5110
5153
|
}
|
|
5111
|
-
class
|
|
5154
|
+
class qo extends Bn {
|
|
5112
5155
|
constructor(t) {
|
|
5113
|
-
super(),
|
|
5156
|
+
super(), Tn(
|
|
5114
5157
|
this,
|
|
5115
5158
|
t,
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5159
|
+
Zo,
|
|
5160
|
+
Xo,
|
|
5161
|
+
Pr,
|
|
5119
5162
|
{
|
|
5120
5163
|
endpoint: 0,
|
|
5121
5164
|
captchakey: 1,
|
|
@@ -5128,7 +5171,7 @@ class Vo extends xn {
|
|
|
5128
5171
|
translationurl: 32,
|
|
5129
5172
|
savecredentials: 6
|
|
5130
5173
|
},
|
|
5131
|
-
|
|
5174
|
+
Do,
|
|
5132
5175
|
[-1, -1]
|
|
5133
5176
|
);
|
|
5134
5177
|
}
|
|
@@ -5193,35 +5236,35 @@ class Vo extends xn {
|
|
|
5193
5236
|
this.$$set({ savecredentials: t }), K();
|
|
5194
5237
|
}
|
|
5195
5238
|
}
|
|
5196
|
-
|
|
5239
|
+
Hn(qo, { endpoint: {}, captchakey: {}, lang: {}, smsverification: {}, simplepasswordvalidation: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, savecredentials: {} }, [], [], !0);
|
|
5197
5240
|
export {
|
|
5198
5241
|
ce as $,
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5242
|
+
qo as G,
|
|
5243
|
+
Bn as S,
|
|
5244
|
+
Ne as a,
|
|
5245
|
+
Kr as b,
|
|
5246
|
+
Hn as c,
|
|
5247
|
+
un as d,
|
|
5205
5248
|
I as e,
|
|
5206
5249
|
K as f,
|
|
5207
5250
|
te as g,
|
|
5208
5251
|
rt as h,
|
|
5209
|
-
|
|
5252
|
+
Tn as i,
|
|
5210
5253
|
h as j,
|
|
5211
5254
|
L as k,
|
|
5212
|
-
|
|
5213
|
-
|
|
5255
|
+
m as l,
|
|
5256
|
+
se as m,
|
|
5214
5257
|
Z as n,
|
|
5215
|
-
|
|
5258
|
+
E as o,
|
|
5216
5259
|
j as p,
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5260
|
+
ln as q,
|
|
5261
|
+
Le as r,
|
|
5262
|
+
Pr as s,
|
|
5220
5263
|
N as t,
|
|
5221
|
-
|
|
5264
|
+
gn as u,
|
|
5222
5265
|
ut as v,
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5266
|
+
Co as w,
|
|
5267
|
+
Ro as x,
|
|
5268
|
+
Uo as y,
|
|
5269
|
+
Fo as z
|
|
5227
5270
|
};
|