@everymatrix/general-player-login-form 1.57.0 → 1.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/GeneralPlayerLoginForm-B_RIuNyv.cjs +18 -0
- package/components/{GeneralPlayerLoginForm-CpQQFRGV.js → GeneralPlayerLoginForm-BzKMMDfT.js} +520 -542
- package/components/{GeneralPlayerLoginForm-gauMqg_k.js → GeneralPlayerLoginForm-CwP6Sgw0.js} +537 -559
- package/components/{GeneralPlayerSmsVerificationForm-BH31XK9j.js → GeneralPlayerSmsVerificationForm-CNxcHrMs.js} +23 -23
- package/components/{GeneralPlayerSmsVerificationForm-CfMK7ptU.cjs → GeneralPlayerSmsVerificationForm-D98ShybB.cjs} +1 -1
- package/components/{GeneralPlayerSmsVerificationForm-gXNvsXYD.js → GeneralPlayerSmsVerificationForm-DksfvWzQ.js} +25 -25
- package/es2015/general-player-login-form.cjs +1 -1
- package/es2015/general-player-login-form.js +1 -1
- package/esnext/general-player-login-form.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerLoginForm-ByIgeDmT.cjs +0 -18
package/components/{GeneralPlayerLoginForm-gauMqg_k.js → GeneralPlayerLoginForm-CwP6Sgw0.js}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var vt = (e, t, r) => t in e ?
|
|
1
|
+
var cn = Object.defineProperty, hn = Object.defineProperties;
|
|
2
|
+
var fn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Wt = Object.getOwnPropertySymbols;
|
|
4
|
+
var dn = Object.prototype.hasOwnProperty, mn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var vt = (e, t, r) => t in e ? cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Zt = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
dn.call(t, r) && vt(e, r, t[r]);
|
|
8
|
+
if (Wt)
|
|
9
|
+
for (var r of Wt(t))
|
|
10
|
+
mn.call(t, r) && vt(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
12
|
+
}, qt = (e, t) => hn(e, fn(t));
|
|
13
13
|
var K = (e, t, r) => (vt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var et = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (u) => {
|
|
@@ -29,29 +29,29 @@ var et = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function Z() {
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Tr(e) {
|
|
33
33
|
return e();
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Jt() {
|
|
36
36
|
return /* @__PURE__ */ Object.create(null);
|
|
37
37
|
}
|
|
38
38
|
function Ne(e) {
|
|
39
|
-
e.forEach(
|
|
39
|
+
e.forEach(Tr);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Gt(e) {
|
|
42
42
|
return typeof e == "function";
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Hr(e, t) {
|
|
45
45
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
46
46
|
}
|
|
47
47
|
let tt;
|
|
48
|
-
function
|
|
48
|
+
function Qt(e, t) {
|
|
49
49
|
return e === t ? !0 : (tt || (tt = document.createElement("a")), tt.href = t, e === tt.href);
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function pn(e) {
|
|
52
52
|
return Object.keys(e).length === 0;
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Br(e, ...t) {
|
|
55
55
|
if (e == null) {
|
|
56
56
|
for (const n of t)
|
|
57
57
|
n(void 0);
|
|
@@ -60,20 +60,20 @@ function Cr(e, ...t) {
|
|
|
60
60
|
const r = e.subscribe(...t);
|
|
61
61
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
e.$$.on_destroy.push(
|
|
63
|
+
function gn(e, t, r) {
|
|
64
|
+
e.$$.on_destroy.push(Br(t, r));
|
|
65
65
|
}
|
|
66
66
|
function m(e, t) {
|
|
67
67
|
e.appendChild(t);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
const n =
|
|
69
|
+
function bn(e, t, r) {
|
|
70
|
+
const n = vn(e);
|
|
71
71
|
if (!n.getElementById(t)) {
|
|
72
72
|
const i = x("style");
|
|
73
|
-
i.id = t, i.textContent = r,
|
|
73
|
+
i.id = t, i.textContent = r, yn(n, i);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function vn(e) {
|
|
77
77
|
if (!e)
|
|
78
78
|
return document;
|
|
79
79
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -83,7 +83,7 @@ function wn(e) {
|
|
|
83
83
|
t
|
|
84
84
|
) : e.ownerDocument;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function yn(e, t) {
|
|
87
87
|
return m(
|
|
88
88
|
/** @type {Document} */
|
|
89
89
|
e.head || e,
|
|
@@ -108,7 +108,7 @@ function N(e) {
|
|
|
108
108
|
function j() {
|
|
109
109
|
return N(" ");
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function _n() {
|
|
112
112
|
return N("");
|
|
113
113
|
}
|
|
114
114
|
function se(e, t, r, n) {
|
|
@@ -121,7 +121,7 @@ function W(e, t, r) {
|
|
|
121
121
|
const n = t.toLowerCase();
|
|
122
122
|
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);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function En(e) {
|
|
125
125
|
return Array.from(e.childNodes);
|
|
126
126
|
}
|
|
127
127
|
function re(e, t) {
|
|
@@ -131,7 +131,7 @@ function re(e, t) {
|
|
|
131
131
|
function rt(e, t) {
|
|
132
132
|
e.value = t == null ? "" : t;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function wn(e) {
|
|
135
135
|
const t = {};
|
|
136
136
|
return e.childNodes.forEach(
|
|
137
137
|
/** @param {Element} node */
|
|
@@ -144,22 +144,22 @@ let Xe;
|
|
|
144
144
|
function ze(e) {
|
|
145
145
|
Xe = e;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function xn() {
|
|
148
148
|
if (!Xe)
|
|
149
149
|
throw new Error("Function called outside component initialization");
|
|
150
150
|
return Xe;
|
|
151
151
|
}
|
|
152
|
-
function
|
|
153
|
-
|
|
152
|
+
function Sn(e) {
|
|
153
|
+
xn().$$.on_mount.push(e);
|
|
154
154
|
}
|
|
155
155
|
const Be = [], ut = [];
|
|
156
156
|
let Ae = [];
|
|
157
|
-
const
|
|
158
|
-
let
|
|
159
|
-
function
|
|
160
|
-
|
|
157
|
+
const Yt = [], Pn = /* @__PURE__ */ Promise.resolve();
|
|
158
|
+
let Tt = !1;
|
|
159
|
+
function Tn() {
|
|
160
|
+
Tt || (Tt = !0, Pn.then(ee));
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function Ht(e) {
|
|
163
163
|
Ae.push(e);
|
|
164
164
|
}
|
|
165
165
|
const yt = /* @__PURE__ */ new Set();
|
|
@@ -172,7 +172,7 @@ function ee() {
|
|
|
172
172
|
try {
|
|
173
173
|
for (; Te < Be.length; ) {
|
|
174
174
|
const t = Be[Te];
|
|
175
|
-
Te++, ze(t),
|
|
175
|
+
Te++, ze(t), Hn(t.$$);
|
|
176
176
|
}
|
|
177
177
|
} catch (t) {
|
|
178
178
|
throw Be.length = 0, Te = 0, t;
|
|
@@ -185,40 +185,40 @@ function ee() {
|
|
|
185
185
|
}
|
|
186
186
|
Ae.length = 0;
|
|
187
187
|
} while (Be.length);
|
|
188
|
-
for (;
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
for (; Yt.length; )
|
|
189
|
+
Yt.pop()();
|
|
190
|
+
Tt = !1, yt.clear(), ze(e);
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Hn(e) {
|
|
193
193
|
if (e.fragment !== null) {
|
|
194
194
|
e.update(), Ne(e.before_update);
|
|
195
195
|
const t = e.dirty;
|
|
196
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
196
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ht);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function Bn(e) {
|
|
200
200
|
const t = [], r = [];
|
|
201
201
|
Ae.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Ae = t;
|
|
202
202
|
}
|
|
203
|
-
const
|
|
204
|
-
function
|
|
205
|
-
e && e.i && (
|
|
203
|
+
const An = /* @__PURE__ */ new Set();
|
|
204
|
+
function In(e, t) {
|
|
205
|
+
e && e.i && (An.delete(e), e.i(t));
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Cn(e, t, r) {
|
|
208
208
|
const { fragment: n, after_update: i } = e.$$;
|
|
209
|
-
n && n.m(t, r),
|
|
210
|
-
const o = e.$$.on_mount.map(
|
|
209
|
+
n && n.m(t, r), Ht(() => {
|
|
210
|
+
const o = e.$$.on_mount.map(Tr).filter(Gt);
|
|
211
211
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ne(o), e.$$.on_mount = [];
|
|
212
|
-
}), i.forEach(
|
|
212
|
+
}), i.forEach(Ht);
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function On(e, t) {
|
|
215
215
|
const r = e.$$;
|
|
216
|
-
r.fragment !== null && (
|
|
216
|
+
r.fragment !== null && (Bn(r.after_update), Ne(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
219
|
-
e.$$.dirty[0] === -1 && (Be.push(e),
|
|
218
|
+
function Ln(e, t) {
|
|
219
|
+
e.$$.dirty[0] === -1 && (Be.push(e), Tn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Mn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
222
222
|
const u = Xe;
|
|
223
223
|
ze(e);
|
|
224
224
|
const l = e.$$ = {
|
|
@@ -228,7 +228,7 @@ function Fn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
228
228
|
props: o,
|
|
229
229
|
update: Z,
|
|
230
230
|
not_equal: i,
|
|
231
|
-
bound:
|
|
231
|
+
bound: Jt(),
|
|
232
232
|
// lifecycle
|
|
233
233
|
on_mount: [],
|
|
234
234
|
on_destroy: [],
|
|
@@ -237,7 +237,7 @@ function Fn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
237
237
|
after_update: [],
|
|
238
238
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
239
239
|
// everything else
|
|
240
|
-
callbacks:
|
|
240
|
+
callbacks: Jt(),
|
|
241
241
|
dirty: a,
|
|
242
242
|
skip_bound: !1,
|
|
243
243
|
root: t.target || u.$$.root
|
|
@@ -246,19 +246,19 @@ function Fn(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
246
246
|
let c = !1;
|
|
247
247
|
if (l.ctx = r ? r(e, t.props || {}, (f, d, ...b) => {
|
|
248
248
|
const y = b.length ? b[0] : d;
|
|
249
|
-
return l.ctx && i(l.ctx[f], l.ctx[f] = y) && (!l.skip_bound && l.bound[f] && l.bound[f](y), c &&
|
|
249
|
+
return l.ctx && i(l.ctx[f], l.ctx[f] = y) && (!l.skip_bound && l.bound[f] && l.bound[f](y), c && Ln(e, f)), d;
|
|
250
250
|
}) : [], l.update(), c = !0, Ne(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
251
251
|
if (t.hydrate) {
|
|
252
|
-
const f =
|
|
252
|
+
const f = En(t.target);
|
|
253
253
|
l.fragment && l.fragment.l(f), f.forEach(I);
|
|
254
254
|
} else
|
|
255
255
|
l.fragment && l.fragment.c();
|
|
256
|
-
t.intro &&
|
|
256
|
+
t.intro && In(e.$$.fragment), Cn(e, t.target, t.anchor), ee();
|
|
257
257
|
}
|
|
258
258
|
ze(u);
|
|
259
259
|
}
|
|
260
|
-
let
|
|
261
|
-
typeof HTMLElement == "function" && (
|
|
260
|
+
let Ar;
|
|
261
|
+
typeof HTMLElement == "function" && (Ar = class extends HTMLElement {
|
|
262
262
|
constructor(t, r, n) {
|
|
263
263
|
super();
|
|
264
264
|
/** The Svelte component constructor */
|
|
@@ -319,7 +319,7 @@ typeof HTMLElement == "function" && (Or = class extends HTMLElement {
|
|
|
319
319
|
};
|
|
320
320
|
if (yield Promise.resolve(), !this.$$cn || this.$$c)
|
|
321
321
|
return;
|
|
322
|
-
const r = {}, n =
|
|
322
|
+
const r = {}, n = wn(this);
|
|
323
323
|
for (const o of this.$$s)
|
|
324
324
|
o in n && (r[o] = [t(o)]);
|
|
325
325
|
for (const o of this.attributes) {
|
|
@@ -330,7 +330,7 @@ typeof HTMLElement == "function" && (Or = class extends HTMLElement {
|
|
|
330
330
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
331
331
|
this.$$c = new this.$$ctor({
|
|
332
332
|
target: this.shadowRoot || this,
|
|
333
|
-
props:
|
|
333
|
+
props: qt(Zt({}, this.$$d), {
|
|
334
334
|
$$slots: r,
|
|
335
335
|
$$scope: {
|
|
336
336
|
ctx: []
|
|
@@ -408,8 +408,8 @@ function ot(e, t, r, n) {
|
|
|
408
408
|
return t;
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
|
-
function
|
|
412
|
-
let s = class extends
|
|
411
|
+
function Nn(e, t, r, n, i, o) {
|
|
412
|
+
let s = class extends Ar {
|
|
413
413
|
constructor() {
|
|
414
414
|
super(e, r, i), this.$$p_d = t;
|
|
415
415
|
}
|
|
@@ -439,7 +439,7 @@ function Dn(e, t, r, n, i, o) {
|
|
|
439
439
|
}), e.element = /** @type {any} */
|
|
440
440
|
s, s;
|
|
441
441
|
}
|
|
442
|
-
class
|
|
442
|
+
class Rn {
|
|
443
443
|
constructor() {
|
|
444
444
|
/**
|
|
445
445
|
* ### PRIVATE API
|
|
@@ -460,7 +460,7 @@ class kn {
|
|
|
460
460
|
}
|
|
461
461
|
/** @returns {void} */
|
|
462
462
|
$destroy() {
|
|
463
|
-
|
|
463
|
+
On(this, 1), this.$destroy = Z;
|
|
464
464
|
}
|
|
465
465
|
/**
|
|
466
466
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -469,7 +469,7 @@ class kn {
|
|
|
469
469
|
* @returns {() => void}
|
|
470
470
|
*/
|
|
471
471
|
$on(t, r) {
|
|
472
|
-
if (
|
|
472
|
+
if (!Gt(r))
|
|
473
473
|
return Z;
|
|
474
474
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
475
475
|
return n.push(r), () => {
|
|
@@ -482,11 +482,11 @@ class kn {
|
|
|
482
482
|
* @returns {void}
|
|
483
483
|
*/
|
|
484
484
|
$set(t) {
|
|
485
|
-
this.$$set && !
|
|
485
|
+
this.$$set && !pn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
const
|
|
489
|
-
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
488
|
+
const Un = "4";
|
|
489
|
+
typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Un);
|
|
490
490
|
/*! *****************************************************************************
|
|
491
491
|
Copyright (c) Microsoft Corporation.
|
|
492
492
|
|
|
@@ -501,18 +501,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
501
501
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
502
502
|
PERFORMANCE OF THIS SOFTWARE.
|
|
503
503
|
***************************************************************************** */
|
|
504
|
-
var
|
|
505
|
-
return
|
|
504
|
+
var Bt = function(e, t) {
|
|
505
|
+
return Bt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
506
506
|
r.__proto__ = n;
|
|
507
507
|
} || function(r, n) {
|
|
508
508
|
for (var i in n)
|
|
509
509
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
510
|
-
},
|
|
510
|
+
}, Bt(e, t);
|
|
511
511
|
};
|
|
512
512
|
function le(e, t) {
|
|
513
513
|
if (typeof t != "function" && t !== null)
|
|
514
514
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
515
|
-
|
|
515
|
+
Bt(e, t);
|
|
516
516
|
function r() {
|
|
517
517
|
this.constructor = e;
|
|
518
518
|
}
|
|
@@ -528,7 +528,7 @@ var w = function() {
|
|
|
528
528
|
return t;
|
|
529
529
|
}, w.apply(this, arguments);
|
|
530
530
|
};
|
|
531
|
-
function
|
|
531
|
+
function Fn(e, t) {
|
|
532
532
|
var r = {};
|
|
533
533
|
for (var n in e)
|
|
534
534
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -537,7 +537,7 @@ function $n(e, t) {
|
|
|
537
537
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
538
538
|
return r;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function At(e) {
|
|
541
541
|
var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
|
|
542
542
|
if (r)
|
|
543
543
|
return r.call(e);
|
|
@@ -549,7 +549,7 @@ function It(e) {
|
|
|
549
549
|
};
|
|
550
550
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function It(e, t) {
|
|
553
553
|
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
554
554
|
if (!r)
|
|
555
555
|
return e;
|
|
@@ -578,13 +578,13 @@ function Ie(e, t, r) {
|
|
|
578
578
|
function ae(e) {
|
|
579
579
|
return typeof e == "function";
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function Ir(e) {
|
|
582
582
|
var t = function(n) {
|
|
583
583
|
Error.call(n), n.stack = new Error().stack;
|
|
584
584
|
}, r = e(t);
|
|
585
585
|
return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
|
|
586
586
|
}
|
|
587
|
-
var _t =
|
|
587
|
+
var _t = Ir(function(e) {
|
|
588
588
|
return function(r) {
|
|
589
589
|
e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
|
|
590
590
|
` + r.map(function(n, i) {
|
|
@@ -593,7 +593,7 @@ var _t = Lr(function(e) {
|
|
|
593
593
|
`) : "", this.name = "UnsubscriptionError", this.errors = r;
|
|
594
594
|
};
|
|
595
595
|
});
|
|
596
|
-
function
|
|
596
|
+
function Ct(e, t) {
|
|
597
597
|
if (e) {
|
|
598
598
|
var r = e.indexOf(t);
|
|
599
599
|
0 <= r && e.splice(r, 1);
|
|
@@ -611,7 +611,7 @@ var ft = function() {
|
|
|
611
611
|
if (s)
|
|
612
612
|
if (this._parentage = null, Array.isArray(s))
|
|
613
613
|
try {
|
|
614
|
-
for (var a =
|
|
614
|
+
for (var a = At(s), u = a.next(); !u.done; u = a.next()) {
|
|
615
615
|
var l = u.value;
|
|
616
616
|
l.remove(this);
|
|
617
617
|
}
|
|
@@ -638,12 +638,12 @@ var ft = function() {
|
|
|
638
638
|
if (f) {
|
|
639
639
|
this._finalizers = null;
|
|
640
640
|
try {
|
|
641
|
-
for (var d =
|
|
641
|
+
for (var d = At(f), b = d.next(); !b.done; b = d.next()) {
|
|
642
642
|
var y = b.value;
|
|
643
643
|
try {
|
|
644
|
-
|
|
644
|
+
Kt(y);
|
|
645
645
|
} catch (g) {
|
|
646
|
-
o = o != null ? o : [], g instanceof _t ? o = Ie(Ie([],
|
|
646
|
+
o = o != null ? o : [], g instanceof _t ? o = Ie(Ie([], It(o)), It(g.errors)) : o.push(g);
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
} catch (g) {
|
|
@@ -664,7 +664,7 @@ var ft = function() {
|
|
|
664
664
|
var r;
|
|
665
665
|
if (t && t !== this)
|
|
666
666
|
if (this.closed)
|
|
667
|
-
|
|
667
|
+
Kt(t);
|
|
668
668
|
else {
|
|
669
669
|
if (t instanceof e) {
|
|
670
670
|
if (t.closed || t._hasParent(this))
|
|
@@ -681,56 +681,52 @@ var ft = function() {
|
|
|
681
681
|
this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
|
|
682
682
|
}, e.prototype._removeParent = function(t) {
|
|
683
683
|
var r = this._parentage;
|
|
684
|
-
r === t ? this._parentage = null : Array.isArray(r) &&
|
|
684
|
+
r === t ? this._parentage = null : Array.isArray(r) && Ct(r, t);
|
|
685
685
|
}, e.prototype.remove = function(t) {
|
|
686
686
|
var r = this._finalizers;
|
|
687
|
-
r &&
|
|
687
|
+
r && Ct(r, t), t instanceof e && t._removeParent(this);
|
|
688
688
|
}, e.EMPTY = function() {
|
|
689
689
|
var t = new e();
|
|
690
690
|
return t.closed = !0, t;
|
|
691
691
|
}(), e;
|
|
692
|
-
}(),
|
|
693
|
-
function
|
|
692
|
+
}(), Cr = ft.EMPTY;
|
|
693
|
+
function Or(e) {
|
|
694
694
|
return e instanceof ft || e && "closed" in e && ae(e.remove) && ae(e.add) && ae(e.unsubscribe);
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function Kt(e) {
|
|
697
697
|
ae(e) ? e() : e.unsubscribe();
|
|
698
698
|
}
|
|
699
|
-
var
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
Promise: void 0,
|
|
703
|
-
useDeprecatedSynchronousErrorHandling: !1,
|
|
704
|
-
useDeprecatedNextContext: !1
|
|
705
|
-
}, jn = {
|
|
699
|
+
var Dn = {
|
|
700
|
+
Promise: void 0
|
|
701
|
+
}, kn = {
|
|
706
702
|
setTimeout: function(e, t) {
|
|
707
703
|
for (var r = [], n = 2; n < arguments.length; n++)
|
|
708
704
|
r[n - 2] = arguments[n];
|
|
709
|
-
return setTimeout.apply(void 0, Ie([e, t],
|
|
705
|
+
return setTimeout.apply(void 0, Ie([e, t], It(r)));
|
|
710
706
|
},
|
|
711
707
|
clearTimeout: function(e) {
|
|
712
708
|
return clearTimeout(e);
|
|
713
709
|
},
|
|
714
710
|
delegate: void 0
|
|
715
711
|
};
|
|
716
|
-
function
|
|
717
|
-
|
|
712
|
+
function Gn(e) {
|
|
713
|
+
kn.setTimeout(function() {
|
|
718
714
|
throw e;
|
|
719
715
|
});
|
|
720
716
|
}
|
|
721
|
-
function
|
|
717
|
+
function er() {
|
|
722
718
|
}
|
|
723
719
|
function st(e) {
|
|
724
720
|
e();
|
|
725
721
|
}
|
|
726
|
-
var
|
|
722
|
+
var Lr = function(e) {
|
|
727
723
|
le(t, e);
|
|
728
724
|
function t(r) {
|
|
729
725
|
var n = e.call(this) || this;
|
|
730
|
-
return n.isStopped = !1, r ? (n.destination = r,
|
|
726
|
+
return n.isStopped = !1, r ? (n.destination = r, Or(r) && r.add(n)) : n.destination = Vn, n;
|
|
731
727
|
}
|
|
732
728
|
return t.create = function(r, n, i) {
|
|
733
|
-
return new
|
|
729
|
+
return new Ot(r, n, i);
|
|
734
730
|
}, t.prototype.next = function(r) {
|
|
735
731
|
this.isStopped || this._next(r);
|
|
736
732
|
}, t.prototype.error = function(r) {
|
|
@@ -754,11 +750,7 @@ var Ur = function(e) {
|
|
|
754
750
|
this.unsubscribe();
|
|
755
751
|
}
|
|
756
752
|
}, t;
|
|
757
|
-
}(ft),
|
|
758
|
-
function Et(e, t) {
|
|
759
|
-
return zn.call(e, t);
|
|
760
|
-
}
|
|
761
|
-
var Xn = function() {
|
|
753
|
+
}(ft), $n = function() {
|
|
762
754
|
function e(t) {
|
|
763
755
|
this.partialObserver = t;
|
|
764
756
|
}
|
|
@@ -789,55 +781,43 @@ var Xn = function() {
|
|
|
789
781
|
nt(r);
|
|
790
782
|
}
|
|
791
783
|
}, e;
|
|
792
|
-
}(),
|
|
784
|
+
}(), Ot = function(e) {
|
|
793
785
|
le(t, e);
|
|
794
786
|
function t(r, n, i) {
|
|
795
787
|
var o = e.call(this) || this, s;
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
};
|
|
802
|
-
else {
|
|
803
|
-
var a;
|
|
804
|
-
o && Rr.useDeprecatedNextContext ? (a = Object.create(r), a.unsubscribe = function() {
|
|
805
|
-
return o.unsubscribe();
|
|
806
|
-
}, s = {
|
|
807
|
-
next: r.next && Et(r.next, a),
|
|
808
|
-
error: r.error && Et(r.error, a),
|
|
809
|
-
complete: r.complete && Et(r.complete, a)
|
|
810
|
-
}) : s = r;
|
|
811
|
-
}
|
|
812
|
-
return o.destination = new Xn(s), o;
|
|
788
|
+
return ae(r) || !r ? s = {
|
|
789
|
+
next: r != null ? r : void 0,
|
|
790
|
+
error: n != null ? n : void 0,
|
|
791
|
+
complete: i != null ? i : void 0
|
|
792
|
+
} : s = r, o.destination = new $n(s), o;
|
|
813
793
|
}
|
|
814
794
|
return t;
|
|
815
|
-
}(
|
|
795
|
+
}(Lr);
|
|
816
796
|
function nt(e) {
|
|
817
|
-
|
|
797
|
+
Gn(e);
|
|
818
798
|
}
|
|
819
|
-
function
|
|
799
|
+
function jn(e) {
|
|
820
800
|
throw e;
|
|
821
801
|
}
|
|
822
|
-
var
|
|
802
|
+
var Vn = {
|
|
823
803
|
closed: !0,
|
|
824
|
-
next:
|
|
825
|
-
error:
|
|
826
|
-
complete:
|
|
827
|
-
},
|
|
804
|
+
next: er,
|
|
805
|
+
error: jn,
|
|
806
|
+
complete: er
|
|
807
|
+
}, zn = function() {
|
|
828
808
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
829
809
|
}();
|
|
830
|
-
function
|
|
810
|
+
function Xn(e) {
|
|
831
811
|
return e;
|
|
832
812
|
}
|
|
833
|
-
function
|
|
834
|
-
return e.length === 0 ?
|
|
813
|
+
function Wn(e) {
|
|
814
|
+
return e.length === 0 ? Xn : e.length === 1 ? e[0] : function(r) {
|
|
835
815
|
return e.reduce(function(n, i) {
|
|
836
816
|
return i(n);
|
|
837
817
|
}, r);
|
|
838
818
|
};
|
|
839
819
|
}
|
|
840
|
-
var
|
|
820
|
+
var tr = function() {
|
|
841
821
|
function e(t) {
|
|
842
822
|
t && (this._subscribe = t);
|
|
843
823
|
}
|
|
@@ -845,7 +825,7 @@ var ir = function() {
|
|
|
845
825
|
var r = new e();
|
|
846
826
|
return r.source = this, r.operator = t, r;
|
|
847
827
|
}, e.prototype.subscribe = function(t, r, n) {
|
|
848
|
-
var i = this, o =
|
|
828
|
+
var i = this, o = qn(t) ? t : new Ot(t, r, n);
|
|
849
829
|
return st(function() {
|
|
850
830
|
var s = i, a = s.operator, u = s.source;
|
|
851
831
|
o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
|
|
@@ -858,8 +838,8 @@ var ir = function() {
|
|
|
858
838
|
}
|
|
859
839
|
}, e.prototype.forEach = function(t, r) {
|
|
860
840
|
var n = this;
|
|
861
|
-
return r =
|
|
862
|
-
var s = new
|
|
841
|
+
return r = rr(r), new r(function(i, o) {
|
|
842
|
+
var s = new Ot({
|
|
863
843
|
next: function(a) {
|
|
864
844
|
try {
|
|
865
845
|
t(a);
|
|
@@ -875,15 +855,15 @@ var ir = function() {
|
|
|
875
855
|
}, e.prototype._subscribe = function(t) {
|
|
876
856
|
var r;
|
|
877
857
|
return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
|
|
878
|
-
}, e.prototype[
|
|
858
|
+
}, e.prototype[zn] = function() {
|
|
879
859
|
return this;
|
|
880
860
|
}, e.prototype.pipe = function() {
|
|
881
861
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
882
862
|
t[r] = arguments[r];
|
|
883
|
-
return
|
|
863
|
+
return Wn(t)(this);
|
|
884
864
|
}, e.prototype.toPromise = function(t) {
|
|
885
865
|
var r = this;
|
|
886
|
-
return t =
|
|
866
|
+
return t = rr(t), new t(function(n, i) {
|
|
887
867
|
var o;
|
|
888
868
|
r.subscribe(function(s) {
|
|
889
869
|
return o = s;
|
|
@@ -897,32 +877,32 @@ var ir = function() {
|
|
|
897
877
|
return new e(t);
|
|
898
878
|
}, e;
|
|
899
879
|
}();
|
|
900
|
-
function
|
|
880
|
+
function rr(e) {
|
|
901
881
|
var t;
|
|
902
|
-
return (t = e != null ? e :
|
|
882
|
+
return (t = e != null ? e : Dn.Promise) !== null && t !== void 0 ? t : Promise;
|
|
903
883
|
}
|
|
904
|
-
function
|
|
884
|
+
function Zn(e) {
|
|
905
885
|
return e && ae(e.next) && ae(e.error) && ae(e.complete);
|
|
906
886
|
}
|
|
907
|
-
function
|
|
908
|
-
return e && e instanceof
|
|
887
|
+
function qn(e) {
|
|
888
|
+
return e && e instanceof Lr || Zn(e) && Or(e);
|
|
909
889
|
}
|
|
910
|
-
var
|
|
890
|
+
var Jn = Ir(function(e) {
|
|
911
891
|
return function() {
|
|
912
892
|
e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
913
893
|
};
|
|
914
|
-
}),
|
|
894
|
+
}), Mr = function(e) {
|
|
915
895
|
le(t, e);
|
|
916
896
|
function t() {
|
|
917
897
|
var r = e.call(this) || this;
|
|
918
898
|
return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
|
|
919
899
|
}
|
|
920
900
|
return t.prototype.lift = function(r) {
|
|
921
|
-
var n = new
|
|
901
|
+
var n = new nr(this, this);
|
|
922
902
|
return n.operator = r, n;
|
|
923
903
|
}, t.prototype._throwIfClosed = function() {
|
|
924
904
|
if (this.closed)
|
|
925
|
-
throw new
|
|
905
|
+
throw new Jn();
|
|
926
906
|
}, t.prototype.next = function(r) {
|
|
927
907
|
var n = this;
|
|
928
908
|
st(function() {
|
|
@@ -930,7 +910,7 @@ var ei = Lr(function(e) {
|
|
|
930
910
|
if (n._throwIfClosed(), !n.isStopped) {
|
|
931
911
|
n.currentObservers || (n.currentObservers = Array.from(n.observers));
|
|
932
912
|
try {
|
|
933
|
-
for (var s =
|
|
913
|
+
for (var s = At(n.currentObservers), a = s.next(); !a.done; a = s.next()) {
|
|
934
914
|
var u = a.value;
|
|
935
915
|
u.next(r);
|
|
936
916
|
}
|
|
@@ -979,19 +959,19 @@ var ei = Lr(function(e) {
|
|
|
979
959
|
return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
|
|
980
960
|
}, t.prototype._innerSubscribe = function(r) {
|
|
981
961
|
var n = this, i = this, o = i.hasError, s = i.isStopped, a = i.observers;
|
|
982
|
-
return o || s ?
|
|
983
|
-
n.currentObservers = null,
|
|
962
|
+
return o || s ? Cr : (this.currentObservers = null, a.push(r), new ft(function() {
|
|
963
|
+
n.currentObservers = null, Ct(a, r);
|
|
984
964
|
}));
|
|
985
965
|
}, t.prototype._checkFinalizedStatuses = function(r) {
|
|
986
966
|
var n = this, i = n.hasError, o = n.thrownError, s = n.isStopped;
|
|
987
967
|
i ? r.error(o) : s && r.complete();
|
|
988
968
|
}, t.prototype.asObservable = function() {
|
|
989
|
-
var r = new
|
|
969
|
+
var r = new tr();
|
|
990
970
|
return r.source = this, r;
|
|
991
971
|
}, t.create = function(r, n) {
|
|
992
|
-
return new
|
|
972
|
+
return new nr(r, n);
|
|
993
973
|
}, t;
|
|
994
|
-
}(
|
|
974
|
+
}(tr), nr = function(e) {
|
|
995
975
|
le(t, e);
|
|
996
976
|
function t(r, n) {
|
|
997
977
|
var i = e.call(this) || this;
|
|
@@ -1008,17 +988,17 @@ var ei = Lr(function(e) {
|
|
|
1008
988
|
(n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
|
|
1009
989
|
}, t.prototype._subscribe = function(r) {
|
|
1010
990
|
var n, i;
|
|
1011
|
-
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i :
|
|
991
|
+
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Cr;
|
|
1012
992
|
}, t;
|
|
1013
|
-
}(
|
|
993
|
+
}(Mr), Nr = {
|
|
1014
994
|
now: function() {
|
|
1015
|
-
return (
|
|
995
|
+
return (Nr.delegate || Date).now();
|
|
1016
996
|
},
|
|
1017
997
|
delegate: void 0
|
|
1018
|
-
},
|
|
998
|
+
}, Qn = function(e) {
|
|
1019
999
|
le(t, e);
|
|
1020
1000
|
function t(r, n, i) {
|
|
1021
|
-
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i =
|
|
1001
|
+
r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Nr);
|
|
1022
1002
|
var o = e.call(this) || this;
|
|
1023
1003
|
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;
|
|
1024
1004
|
}
|
|
@@ -1038,15 +1018,15 @@ var ei = Lr(function(e) {
|
|
|
1038
1018
|
l && o.splice(0, l + 1);
|
|
1039
1019
|
}
|
|
1040
1020
|
}, t;
|
|
1041
|
-
}(
|
|
1042
|
-
const
|
|
1043
|
-
if (
|
|
1044
|
-
const r = new
|
|
1045
|
-
|
|
1021
|
+
}(Mr);
|
|
1022
|
+
const ir = [], or = {}, Yn = (e, t = 0) => {
|
|
1023
|
+
if (ir.indexOf(e) == -1) {
|
|
1024
|
+
const r = new Qn(t);
|
|
1025
|
+
or[e] = r, ir.push(e);
|
|
1046
1026
|
}
|
|
1047
|
-
return
|
|
1027
|
+
return or[e];
|
|
1048
1028
|
}, He = [];
|
|
1049
|
-
function
|
|
1029
|
+
function Kn(e, t) {
|
|
1050
1030
|
return {
|
|
1051
1031
|
subscribe: dt(e, t).subscribe
|
|
1052
1032
|
};
|
|
@@ -1055,7 +1035,7 @@ function dt(e, t = Z) {
|
|
|
1055
1035
|
let r;
|
|
1056
1036
|
const n = /* @__PURE__ */ new Set();
|
|
1057
1037
|
function i(a) {
|
|
1058
|
-
if (
|
|
1038
|
+
if (Hr(e, a) && (e = a, r)) {
|
|
1059
1039
|
const u = !He.length;
|
|
1060
1040
|
for (const l of n)
|
|
1061
1041
|
l[1](), He.push(l, e);
|
|
@@ -1082,7 +1062,7 @@ function Re(e, t, r) {
|
|
|
1082
1062
|
if (!i.every(Boolean))
|
|
1083
1063
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
1084
1064
|
const o = t.length < 2;
|
|
1085
|
-
return
|
|
1065
|
+
return Kn(r, (s, a) => {
|
|
1086
1066
|
let u = !1;
|
|
1087
1067
|
const l = [];
|
|
1088
1068
|
let c = 0, f = Z;
|
|
@@ -1091,9 +1071,9 @@ function Re(e, t, r) {
|
|
|
1091
1071
|
return;
|
|
1092
1072
|
f();
|
|
1093
1073
|
const y = t(n ? l[0] : l, s, a);
|
|
1094
|
-
o ? s(y) : f =
|
|
1074
|
+
o ? s(y) : f = Gt(y) ? y : Z;
|
|
1095
1075
|
}, b = i.map(
|
|
1096
|
-
(y, g) =>
|
|
1076
|
+
(y, g) => Br(
|
|
1097
1077
|
y,
|
|
1098
1078
|
(S) => {
|
|
1099
1079
|
l[g] = S, c &= ~(1 << g), u && d();
|
|
@@ -1108,70 +1088,70 @@ function Re(e, t, r) {
|
|
|
1108
1088
|
};
|
|
1109
1089
|
});
|
|
1110
1090
|
}
|
|
1111
|
-
function
|
|
1091
|
+
function ei(e) {
|
|
1112
1092
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1113
1093
|
}
|
|
1114
|
-
var
|
|
1115
|
-
return
|
|
1094
|
+
var ti = function(t) {
|
|
1095
|
+
return ri(t) && !ni(t);
|
|
1116
1096
|
};
|
|
1117
|
-
function
|
|
1097
|
+
function ri(e) {
|
|
1118
1098
|
return !!e && typeof e == "object";
|
|
1119
1099
|
}
|
|
1120
|
-
function
|
|
1100
|
+
function ni(e) {
|
|
1121
1101
|
var t = Object.prototype.toString.call(e);
|
|
1122
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
1102
|
+
return t === "[object RegExp]" || t === "[object Date]" || si(e);
|
|
1123
1103
|
}
|
|
1124
|
-
var
|
|
1125
|
-
function
|
|
1126
|
-
return e.$$typeof ===
|
|
1104
|
+
var ii = typeof Symbol == "function" && Symbol.for, oi = ii ? Symbol.for("react.element") : 60103;
|
|
1105
|
+
function si(e) {
|
|
1106
|
+
return e.$$typeof === oi;
|
|
1127
1107
|
}
|
|
1128
|
-
function
|
|
1108
|
+
function ai(e) {
|
|
1129
1109
|
return Array.isArray(e) ? [] : {};
|
|
1130
1110
|
}
|
|
1131
1111
|
function We(e, t) {
|
|
1132
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? Ce(
|
|
1112
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ce(ai(e), e, t) : e;
|
|
1133
1113
|
}
|
|
1134
|
-
function
|
|
1114
|
+
function li(e, t, r) {
|
|
1135
1115
|
return e.concat(t).map(function(n) {
|
|
1136
1116
|
return We(n, r);
|
|
1137
1117
|
});
|
|
1138
1118
|
}
|
|
1139
|
-
function
|
|
1119
|
+
function ui(e, t) {
|
|
1140
1120
|
if (!t.customMerge)
|
|
1141
1121
|
return Ce;
|
|
1142
1122
|
var r = t.customMerge(e);
|
|
1143
1123
|
return typeof r == "function" ? r : Ce;
|
|
1144
1124
|
}
|
|
1145
|
-
function
|
|
1125
|
+
function ci(e) {
|
|
1146
1126
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
1147
1127
|
return Object.propertyIsEnumerable.call(e, t);
|
|
1148
1128
|
}) : [];
|
|
1149
1129
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return Object.keys(e).concat(
|
|
1130
|
+
function sr(e) {
|
|
1131
|
+
return Object.keys(e).concat(ci(e));
|
|
1152
1132
|
}
|
|
1153
|
-
function
|
|
1133
|
+
function Rr(e, t) {
|
|
1154
1134
|
try {
|
|
1155
1135
|
return t in e;
|
|
1156
1136
|
} catch (r) {
|
|
1157
1137
|
return !1;
|
|
1158
1138
|
}
|
|
1159
1139
|
}
|
|
1160
|
-
function
|
|
1161
|
-
return
|
|
1140
|
+
function hi(e, t) {
|
|
1141
|
+
return Rr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
1162
1142
|
}
|
|
1163
|
-
function
|
|
1143
|
+
function fi(e, t, r) {
|
|
1164
1144
|
var n = {};
|
|
1165
|
-
return r.isMergeableObject(e) &&
|
|
1145
|
+
return r.isMergeableObject(e) && sr(e).forEach(function(i) {
|
|
1166
1146
|
n[i] = We(e[i], r);
|
|
1167
|
-
}),
|
|
1168
|
-
|
|
1147
|
+
}), sr(t).forEach(function(i) {
|
|
1148
|
+
hi(e, i) || (Rr(e, i) && r.isMergeableObject(t[i]) ? n[i] = ui(i, r)(e[i], t[i], r) : n[i] = We(t[i], r));
|
|
1169
1149
|
}), n;
|
|
1170
1150
|
}
|
|
1171
1151
|
function Ce(e, t, r) {
|
|
1172
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
1152
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || li, r.isMergeableObject = r.isMergeableObject || ti, r.cloneUnlessOtherwiseSpecified = We;
|
|
1173
1153
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
1174
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
1154
|
+
return o ? n ? r.arrayMerge(e, t, r) : fi(e, t, r) : We(t, r);
|
|
1175
1155
|
}
|
|
1176
1156
|
Ce.all = function(t, r) {
|
|
1177
1157
|
if (!Array.isArray(t))
|
|
@@ -1180,58 +1160,56 @@ Ce.all = function(t, r) {
|
|
|
1180
1160
|
return Ce(n, i, r);
|
|
1181
1161
|
}, {});
|
|
1182
1162
|
};
|
|
1183
|
-
var
|
|
1184
|
-
const
|
|
1185
|
-
function
|
|
1186
|
-
var r = t && t.cache ? t.cache :
|
|
1163
|
+
var di = Ce, mi = di;
|
|
1164
|
+
const pi = /* @__PURE__ */ ei(mi);
|
|
1165
|
+
function Et(e, t) {
|
|
1166
|
+
var r = t && t.cache ? t.cache : wi, n = t && t.serializer ? t.serializer : _i, i = t && t.strategy ? t.strategy : vi;
|
|
1187
1167
|
return i(e, {
|
|
1188
1168
|
cache: r,
|
|
1189
1169
|
serializer: n
|
|
1190
1170
|
});
|
|
1191
1171
|
}
|
|
1192
|
-
function
|
|
1172
|
+
function gi(e) {
|
|
1193
1173
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
1194
1174
|
}
|
|
1195
|
-
function
|
|
1196
|
-
var i =
|
|
1175
|
+
function bi(e, t, r, n) {
|
|
1176
|
+
var i = gi(n) ? n : r(n), o = t.get(i);
|
|
1197
1177
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
1198
1178
|
}
|
|
1199
|
-
function
|
|
1179
|
+
function Ur(e, t, r) {
|
|
1200
1180
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
1201
1181
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
1202
1182
|
}
|
|
1203
|
-
function
|
|
1183
|
+
function Fr(e, t, r, n, i) {
|
|
1204
1184
|
return r.bind(t, e, n, i);
|
|
1205
1185
|
}
|
|
1206
|
-
function
|
|
1207
|
-
var r = e.length === 1 ?
|
|
1208
|
-
return
|
|
1209
|
-
}
|
|
1210
|
-
function wi(e, t) {
|
|
1211
|
-
return jt(e, this, $r, t.cache.create(), t.serializer);
|
|
1186
|
+
function vi(e, t) {
|
|
1187
|
+
var r = e.length === 1 ? bi : Ur;
|
|
1188
|
+
return Fr(e, this, r, t.cache.create(), t.serializer);
|
|
1212
1189
|
}
|
|
1213
|
-
function
|
|
1214
|
-
return
|
|
1190
|
+
function yi(e, t) {
|
|
1191
|
+
return Fr(e, this, Ur, t.cache.create(), t.serializer);
|
|
1215
1192
|
}
|
|
1216
|
-
var
|
|
1193
|
+
var _i = function() {
|
|
1217
1194
|
return JSON.stringify(arguments);
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1195
|
+
}, Ei = (
|
|
1196
|
+
/** @class */
|
|
1197
|
+
function() {
|
|
1198
|
+
function e() {
|
|
1199
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1200
|
+
}
|
|
1201
|
+
return e.prototype.get = function(t) {
|
|
1202
|
+
return this.cache[t];
|
|
1203
|
+
}, e.prototype.set = function(t, r) {
|
|
1204
|
+
this.cache[t] = r;
|
|
1205
|
+
}, e;
|
|
1206
|
+
}()
|
|
1207
|
+
), wi = {
|
|
1229
1208
|
create: function() {
|
|
1230
|
-
return new
|
|
1209
|
+
return new Ei();
|
|
1231
1210
|
}
|
|
1232
|
-
},
|
|
1233
|
-
variadic:
|
|
1234
|
-
monadic: xi
|
|
1211
|
+
}, wt = {
|
|
1212
|
+
variadic: yi
|
|
1235
1213
|
}, _;
|
|
1236
1214
|
(function(e) {
|
|
1237
1215
|
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";
|
|
@@ -1244,43 +1222,43 @@ var Oe;
|
|
|
1244
1222
|
(function(e) {
|
|
1245
1223
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1246
1224
|
})(Oe || (Oe = {}));
|
|
1247
|
-
function
|
|
1225
|
+
function ar(e) {
|
|
1248
1226
|
return e.type === T.literal;
|
|
1249
1227
|
}
|
|
1250
|
-
function
|
|
1228
|
+
function xi(e) {
|
|
1251
1229
|
return e.type === T.argument;
|
|
1252
1230
|
}
|
|
1253
|
-
function
|
|
1231
|
+
function Dr(e) {
|
|
1254
1232
|
return e.type === T.number;
|
|
1255
1233
|
}
|
|
1256
|
-
function
|
|
1234
|
+
function kr(e) {
|
|
1257
1235
|
return e.type === T.date;
|
|
1258
1236
|
}
|
|
1259
|
-
function
|
|
1237
|
+
function Gr(e) {
|
|
1260
1238
|
return e.type === T.time;
|
|
1261
1239
|
}
|
|
1262
|
-
function
|
|
1240
|
+
function $r(e) {
|
|
1263
1241
|
return e.type === T.select;
|
|
1264
1242
|
}
|
|
1265
|
-
function
|
|
1243
|
+
function jr(e) {
|
|
1266
1244
|
return e.type === T.plural;
|
|
1267
1245
|
}
|
|
1268
|
-
function
|
|
1246
|
+
function Si(e) {
|
|
1269
1247
|
return e.type === T.pound;
|
|
1270
1248
|
}
|
|
1271
|
-
function
|
|
1249
|
+
function Vr(e) {
|
|
1272
1250
|
return e.type === T.tag;
|
|
1273
1251
|
}
|
|
1274
|
-
function
|
|
1252
|
+
function zr(e) {
|
|
1275
1253
|
return !!(e && typeof e == "object" && e.type === Oe.number);
|
|
1276
1254
|
}
|
|
1277
|
-
function
|
|
1255
|
+
function Lt(e) {
|
|
1278
1256
|
return !!(e && typeof e == "object" && e.type === Oe.dateTime);
|
|
1279
1257
|
}
|
|
1280
|
-
var
|
|
1281
|
-
function
|
|
1258
|
+
var Xr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pi = /(?:[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;
|
|
1259
|
+
function Ti(e) {
|
|
1282
1260
|
var t = {};
|
|
1283
|
-
return e.replace(
|
|
1261
|
+
return e.replace(Pi, function(r) {
|
|
1284
1262
|
var n = r.length;
|
|
1285
1263
|
switch (r[0]) {
|
|
1286
1264
|
case "G":
|
|
@@ -1369,11 +1347,11 @@ function Ai(e) {
|
|
|
1369
1347
|
return "";
|
|
1370
1348
|
}), t;
|
|
1371
1349
|
}
|
|
1372
|
-
var
|
|
1373
|
-
function
|
|
1350
|
+
var Hi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1351
|
+
function Bi(e) {
|
|
1374
1352
|
if (e.length === 0)
|
|
1375
1353
|
throw new Error("Number skeleton cannot be empty");
|
|
1376
|
-
for (var t = e.split(
|
|
1354
|
+
for (var t = e.split(Hi).filter(function(d) {
|
|
1377
1355
|
return d.length > 0;
|
|
1378
1356
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1379
1357
|
var o = i[n], s = o.split("/");
|
|
@@ -1388,17 +1366,17 @@ function Ci(e) {
|
|
|
1388
1366
|
}
|
|
1389
1367
|
return r;
|
|
1390
1368
|
}
|
|
1391
|
-
function
|
|
1369
|
+
function Ai(e) {
|
|
1392
1370
|
return e.replace(/^(.*?)-/, "");
|
|
1393
1371
|
}
|
|
1394
|
-
var
|
|
1395
|
-
function
|
|
1372
|
+
var lr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Wr = /^(@+)?(\+|#+)?[rs]?$/g, Ii = /(\*)(0+)|(#+)(0+)|(0+)/g, Zr = /^(0+)$/;
|
|
1373
|
+
function ur(e) {
|
|
1396
1374
|
var t = {};
|
|
1397
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
1375
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Wr, function(r, n, i) {
|
|
1398
1376
|
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)), "";
|
|
1399
1377
|
}), t;
|
|
1400
1378
|
}
|
|
1401
|
-
function
|
|
1379
|
+
function qr(e) {
|
|
1402
1380
|
switch (e) {
|
|
1403
1381
|
case "sign-auto":
|
|
1404
1382
|
return {
|
|
@@ -1438,7 +1416,7 @@ function Kr(e) {
|
|
|
1438
1416
|
};
|
|
1439
1417
|
}
|
|
1440
1418
|
}
|
|
1441
|
-
function
|
|
1419
|
+
function Ci(e) {
|
|
1442
1420
|
var t;
|
|
1443
1421
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1444
1422
|
notation: "engineering"
|
|
@@ -1446,17 +1424,17 @@ function Mi(e) {
|
|
|
1446
1424
|
notation: "scientific"
|
|
1447
1425
|
}, e = e.slice(1)), t) {
|
|
1448
1426
|
var r = e.slice(0, 2);
|
|
1449
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
1427
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Zr.test(e))
|
|
1450
1428
|
throw new Error("Malformed concise eng/scientific notation");
|
|
1451
1429
|
t.minimumIntegerDigits = e.length;
|
|
1452
1430
|
}
|
|
1453
1431
|
return t;
|
|
1454
1432
|
}
|
|
1455
|
-
function
|
|
1456
|
-
var t = {}, r =
|
|
1433
|
+
function cr(e) {
|
|
1434
|
+
var t = {}, r = qr(e);
|
|
1457
1435
|
return r || t;
|
|
1458
1436
|
}
|
|
1459
|
-
function
|
|
1437
|
+
function Oi(e) {
|
|
1460
1438
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1461
1439
|
var i = n[r];
|
|
1462
1440
|
switch (i.stem) {
|
|
@@ -1480,7 +1458,7 @@ function Ni(e) {
|
|
|
1480
1458
|
continue;
|
|
1481
1459
|
case "measure-unit":
|
|
1482
1460
|
case "unit":
|
|
1483
|
-
t.style = "unit", t.unit =
|
|
1461
|
+
t.style = "unit", t.unit = Ai(i.options[0]);
|
|
1484
1462
|
continue;
|
|
1485
1463
|
case "compact-short":
|
|
1486
1464
|
case "K":
|
|
@@ -1492,12 +1470,12 @@ function Ni(e) {
|
|
|
1492
1470
|
continue;
|
|
1493
1471
|
case "scientific":
|
|
1494
1472
|
t = w(w(w({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
1495
|
-
return w(w({}, u),
|
|
1473
|
+
return w(w({}, u), cr(l));
|
|
1496
1474
|
}, {}));
|
|
1497
1475
|
continue;
|
|
1498
1476
|
case "engineering":
|
|
1499
1477
|
t = w(w(w({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
1500
|
-
return w(w({}, u),
|
|
1478
|
+
return w(w({}, u), cr(l));
|
|
1501
1479
|
}, {}));
|
|
1502
1480
|
continue;
|
|
1503
1481
|
case "notation-simple":
|
|
@@ -1542,7 +1520,7 @@ function Ni(e) {
|
|
|
1542
1520
|
case "integer-width":
|
|
1543
1521
|
if (i.options.length > 1)
|
|
1544
1522
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1545
|
-
i.options[0].replace(
|
|
1523
|
+
i.options[0].replace(Ii, function(u, l, c, f, d, b) {
|
|
1546
1524
|
if (l)
|
|
1547
1525
|
t.minimumIntegerDigits = c.length;
|
|
1548
1526
|
else {
|
|
@@ -1555,27 +1533,27 @@ function Ni(e) {
|
|
|
1555
1533
|
});
|
|
1556
1534
|
continue;
|
|
1557
1535
|
}
|
|
1558
|
-
if (
|
|
1536
|
+
if (Zr.test(i.stem)) {
|
|
1559
1537
|
t.minimumIntegerDigits = i.stem.length;
|
|
1560
1538
|
continue;
|
|
1561
1539
|
}
|
|
1562
|
-
if (
|
|
1540
|
+
if (lr.test(i.stem)) {
|
|
1563
1541
|
if (i.options.length > 1)
|
|
1564
1542
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1565
|
-
i.stem.replace(
|
|
1543
|
+
i.stem.replace(lr, function(u, l, c, f, d, b) {
|
|
1566
1544
|
return c === "*" ? 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), "";
|
|
1567
1545
|
});
|
|
1568
1546
|
var o = i.options[0];
|
|
1569
|
-
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t),
|
|
1547
|
+
o === "w" ? t = w(w({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = w(w({}, t), ur(o)));
|
|
1570
1548
|
continue;
|
|
1571
1549
|
}
|
|
1572
|
-
if (
|
|
1573
|
-
t = w(w({}, t),
|
|
1550
|
+
if (Wr.test(i.stem)) {
|
|
1551
|
+
t = w(w({}, t), ur(i.stem));
|
|
1574
1552
|
continue;
|
|
1575
1553
|
}
|
|
1576
|
-
var s =
|
|
1554
|
+
var s = qr(i.stem);
|
|
1577
1555
|
s && (t = w(w({}, t), s));
|
|
1578
|
-
var a =
|
|
1556
|
+
var a = Ci(i.stem);
|
|
1579
1557
|
a && (t = w(w({}, t), a));
|
|
1580
1558
|
}
|
|
1581
1559
|
return t;
|
|
@@ -2995,13 +2973,13 @@ var it = {
|
|
|
2995
2973
|
"h"
|
|
2996
2974
|
]
|
|
2997
2975
|
};
|
|
2998
|
-
function
|
|
2976
|
+
function Li(e, t) {
|
|
2999
2977
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
3000
2978
|
var i = e.charAt(n);
|
|
3001
2979
|
if (i === "j") {
|
|
3002
2980
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
3003
2981
|
o++, n++;
|
|
3004
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l =
|
|
2982
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Mi(t);
|
|
3005
2983
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
3006
2984
|
r += u;
|
|
3007
2985
|
for (; s-- > 0; )
|
|
@@ -3011,7 +2989,7 @@ function Ri(e, t) {
|
|
|
3011
2989
|
}
|
|
3012
2990
|
return r;
|
|
3013
2991
|
}
|
|
3014
|
-
function
|
|
2992
|
+
function Mi(e) {
|
|
3015
2993
|
var t = e.hourCycle;
|
|
3016
2994
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
3017
2995
|
e.hourCycles && // @ts-ignore
|
|
@@ -3033,20 +3011,20 @@ function Ui(e) {
|
|
|
3033
3011
|
var i = it[n || ""] || it[r || ""] || it["".concat(r, "-001")] || it["001"];
|
|
3034
3012
|
return i[0];
|
|
3035
3013
|
}
|
|
3036
|
-
var
|
|
3014
|
+
var xt, Ni = new RegExp("^".concat(Xr.source, "*")), Ri = new RegExp("".concat(Xr.source, "*$"));
|
|
3037
3015
|
function E(e, t) {
|
|
3038
3016
|
return { start: e, end: t };
|
|
3039
3017
|
}
|
|
3040
|
-
var
|
|
3018
|
+
var Ui = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fi = !!String.fromCodePoint, Di = !!Object.fromEntries, ki = !!String.prototype.codePointAt, Gi = !!String.prototype.trimStart, $i = !!String.prototype.trimEnd, ji = !!Number.isSafeInteger, Vi = ji ? Number.isSafeInteger : function(e) {
|
|
3041
3019
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
3042
|
-
},
|
|
3020
|
+
}, Mt = !0;
|
|
3043
3021
|
try {
|
|
3044
|
-
var
|
|
3045
|
-
|
|
3022
|
+
var zi = Qr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3023
|
+
Mt = ((xt = zi.exec("a")) === null || xt === void 0 ? void 0 : xt[0]) === "a";
|
|
3046
3024
|
} catch (e) {
|
|
3047
|
-
|
|
3025
|
+
Mt = !1;
|
|
3048
3026
|
}
|
|
3049
|
-
var
|
|
3027
|
+
var hr = Ui ? (
|
|
3050
3028
|
// Native
|
|
3051
3029
|
function(t, r, n) {
|
|
3052
3030
|
return t.startsWith(r, n);
|
|
@@ -3056,7 +3034,7 @@ var mr = ki ? (
|
|
|
3056
3034
|
function(t, r, n) {
|
|
3057
3035
|
return t.slice(n, n + r.length) === r;
|
|
3058
3036
|
}
|
|
3059
|
-
),
|
|
3037
|
+
), Nt = Fi ? String.fromCodePoint : (
|
|
3060
3038
|
// IE11
|
|
3061
3039
|
function() {
|
|
3062
3040
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -3068,9 +3046,9 @@ var mr = ki ? (
|
|
|
3068
3046
|
}
|
|
3069
3047
|
return n;
|
|
3070
3048
|
}
|
|
3071
|
-
),
|
|
3049
|
+
), fr = (
|
|
3072
3050
|
// native
|
|
3073
|
-
|
|
3051
|
+
Di ? Object.fromEntries : (
|
|
3074
3052
|
// Ponyfill
|
|
3075
3053
|
function(t) {
|
|
3076
3054
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -3080,7 +3058,7 @@ var mr = ki ? (
|
|
|
3080
3058
|
return r;
|
|
3081
3059
|
}
|
|
3082
3060
|
)
|
|
3083
|
-
),
|
|
3061
|
+
), Jr = ki ? (
|
|
3084
3062
|
// Native
|
|
3085
3063
|
function(t, r) {
|
|
3086
3064
|
return t.codePointAt(r);
|
|
@@ -3094,7 +3072,7 @@ var mr = ki ? (
|
|
|
3094
3072
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
3095
3073
|
}
|
|
3096
3074
|
}
|
|
3097
|
-
),
|
|
3075
|
+
), Xi = Gi ? (
|
|
3098
3076
|
// Native
|
|
3099
3077
|
function(t) {
|
|
3100
3078
|
return t.trimStart();
|
|
@@ -3102,9 +3080,9 @@ var mr = ki ? (
|
|
|
3102
3080
|
) : (
|
|
3103
3081
|
// Ponyfill
|
|
3104
3082
|
function(t) {
|
|
3105
|
-
return t.replace(
|
|
3083
|
+
return t.replace(Ni, "");
|
|
3106
3084
|
}
|
|
3107
|
-
),
|
|
3085
|
+
), Wi = $i ? (
|
|
3108
3086
|
// Native
|
|
3109
3087
|
function(t) {
|
|
3110
3088
|
return t.trimEnd();
|
|
@@ -3112,32 +3090,32 @@ var mr = ki ? (
|
|
|
3112
3090
|
) : (
|
|
3113
3091
|
// Ponyfill
|
|
3114
3092
|
function(t) {
|
|
3115
|
-
return t.replace(
|
|
3093
|
+
return t.replace(Ri, "");
|
|
3116
3094
|
}
|
|
3117
3095
|
);
|
|
3118
|
-
function
|
|
3096
|
+
function Qr(e, t) {
|
|
3119
3097
|
return new RegExp(e, t);
|
|
3120
3098
|
}
|
|
3121
|
-
var
|
|
3122
|
-
if (
|
|
3123
|
-
var
|
|
3124
|
-
|
|
3099
|
+
var Rt;
|
|
3100
|
+
if (Mt) {
|
|
3101
|
+
var dr = Qr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
3102
|
+
Rt = function(t, r) {
|
|
3125
3103
|
var n;
|
|
3126
|
-
|
|
3127
|
-
var i =
|
|
3104
|
+
dr.lastIndex = r;
|
|
3105
|
+
var i = dr.exec(t);
|
|
3128
3106
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
3129
3107
|
};
|
|
3130
3108
|
} else
|
|
3131
|
-
|
|
3109
|
+
Rt = function(t, r) {
|
|
3132
3110
|
for (var n = []; ; ) {
|
|
3133
|
-
var i =
|
|
3134
|
-
if (i === void 0 ||
|
|
3111
|
+
var i = Jr(t, r);
|
|
3112
|
+
if (i === void 0 || Yr(i) || Qi(i))
|
|
3135
3113
|
break;
|
|
3136
3114
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
3137
3115
|
}
|
|
3138
|
-
return
|
|
3116
|
+
return Nt.apply(void 0, n);
|
|
3139
3117
|
};
|
|
3140
|
-
var
|
|
3118
|
+
var Zi = (
|
|
3141
3119
|
/** @class */
|
|
3142
3120
|
function() {
|
|
3143
3121
|
function e(t, r) {
|
|
@@ -3168,7 +3146,7 @@ var Qi = (
|
|
|
3168
3146
|
if (n)
|
|
3169
3147
|
break;
|
|
3170
3148
|
return this.error(_.UNMATCHED_CLOSING_TAG, E(this.clonePosition(), this.clonePosition()));
|
|
3171
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
3149
|
+
} else if (o === 60 && !this.ignoreTag && Ut(this.peek() || 0)) {
|
|
3172
3150
|
var s = this.parseTag(t, r);
|
|
3173
3151
|
if (s.err)
|
|
3174
3152
|
return s;
|
|
@@ -3201,7 +3179,7 @@ var Qi = (
|
|
|
3201
3179
|
return o;
|
|
3202
3180
|
var s = o.val, a = this.clonePosition();
|
|
3203
3181
|
if (this.bumpIf("</")) {
|
|
3204
|
-
if (this.isEOF() || !
|
|
3182
|
+
if (this.isEOF() || !Ut(this.char()))
|
|
3205
3183
|
return this.error(_.INVALID_TAG, E(a, this.clonePosition()));
|
|
3206
3184
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
3207
3185
|
return i !== l ? this.error(_.UNMATCHED_CLOSING_TAG, E(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -3219,7 +3197,7 @@ var Qi = (
|
|
|
3219
3197
|
return this.error(_.INVALID_TAG, E(n, this.clonePosition()));
|
|
3220
3198
|
}, e.prototype.parseTagName = function() {
|
|
3221
3199
|
var t = this.offset();
|
|
3222
|
-
for (this.bump(); !this.isEOF() &&
|
|
3200
|
+
for (this.bump(); !this.isEOF() && Ji(this.char()); )
|
|
3223
3201
|
this.bump();
|
|
3224
3202
|
return this.message.slice(t, this.offset());
|
|
3225
3203
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3248,7 +3226,7 @@ var Qi = (
|
|
|
3248
3226
|
};
|
|
3249
3227
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3250
3228
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3251
|
-
!
|
|
3229
|
+
!qi(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3252
3230
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3253
3231
|
if (this.isEOF() || this.char() !== 39)
|
|
3254
3232
|
return null;
|
|
@@ -3282,12 +3260,12 @@ var Qi = (
|
|
|
3282
3260
|
r.push(n);
|
|
3283
3261
|
this.bump();
|
|
3284
3262
|
}
|
|
3285
|
-
return
|
|
3263
|
+
return Nt.apply(void 0, r);
|
|
3286
3264
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3287
3265
|
if (this.isEOF())
|
|
3288
3266
|
return null;
|
|
3289
3267
|
var n = this.char();
|
|
3290
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3268
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Nt(n));
|
|
3291
3269
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3292
3270
|
var n = this.clonePosition();
|
|
3293
3271
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3316,7 +3294,7 @@ var Qi = (
|
|
|
3316
3294
|
return this.error(_.MALFORMED_ARGUMENT, E(n, this.clonePosition()));
|
|
3317
3295
|
}
|
|
3318
3296
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3319
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3297
|
+
var t = this.clonePosition(), r = this.offset(), n = Rt(this.message, r), i = r + n.length;
|
|
3320
3298
|
this.bumpTo(i);
|
|
3321
3299
|
var o = this.clonePosition(), s = E(t, o);
|
|
3322
3300
|
return { value: n, location: s };
|
|
@@ -3335,7 +3313,7 @@ var Qi = (
|
|
|
3335
3313
|
var c = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
3336
3314
|
if (f.err)
|
|
3337
3315
|
return f;
|
|
3338
|
-
var d =
|
|
3316
|
+
var d = Wi(f.val);
|
|
3339
3317
|
if (d.length === 0)
|
|
3340
3318
|
return this.error(_.EXPECT_ARGUMENT_STYLE, E(this.clonePosition(), this.clonePosition()));
|
|
3341
3319
|
var b = E(c, this.clonePosition());
|
|
@@ -3345,8 +3323,8 @@ var Qi = (
|
|
|
3345
3323
|
if (y.err)
|
|
3346
3324
|
return y;
|
|
3347
3325
|
var g = E(i, this.clonePosition());
|
|
3348
|
-
if (l &&
|
|
3349
|
-
var S =
|
|
3326
|
+
if (l && hr(l == null ? void 0 : l.style, "::", 0)) {
|
|
3327
|
+
var S = Xi(l.style.slice(2));
|
|
3350
3328
|
if (a === "number") {
|
|
3351
3329
|
var f = this.parseNumberSkeletonFromString(S, l.styleLocation);
|
|
3352
3330
|
return f.err ? f : {
|
|
@@ -3357,12 +3335,12 @@ var Qi = (
|
|
|
3357
3335
|
if (S.length === 0)
|
|
3358
3336
|
return this.error(_.EXPECT_DATE_TIME_SKELETON, g);
|
|
3359
3337
|
var C = S;
|
|
3360
|
-
this.locale && (C =
|
|
3338
|
+
this.locale && (C = Li(S, this.locale));
|
|
3361
3339
|
var d = {
|
|
3362
3340
|
type: Oe.dateTime,
|
|
3363
3341
|
pattern: C,
|
|
3364
3342
|
location: l.styleLocation,
|
|
3365
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3343
|
+
parsedOptions: this.shouldParseSkeletons ? Ti(C) : {}
|
|
3366
3344
|
}, z = a === "date" ? T.date : T.time;
|
|
3367
3345
|
return {
|
|
3368
3346
|
val: { type: z, value: n, location: g, style: d },
|
|
@@ -3408,7 +3386,7 @@ var Qi = (
|
|
|
3408
3386
|
val: {
|
|
3409
3387
|
type: T.select,
|
|
3410
3388
|
value: n,
|
|
3411
|
-
options:
|
|
3389
|
+
options: fr(ne.val),
|
|
3412
3390
|
location: H
|
|
3413
3391
|
},
|
|
3414
3392
|
err: null
|
|
@@ -3416,7 +3394,7 @@ var Qi = (
|
|
|
3416
3394
|
val: {
|
|
3417
3395
|
type: T.plural,
|
|
3418
3396
|
value: n,
|
|
3419
|
-
options:
|
|
3397
|
+
options: fr(ne.val),
|
|
3420
3398
|
offset: A,
|
|
3421
3399
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3422
3400
|
location: H
|
|
@@ -3467,7 +3445,7 @@ var Qi = (
|
|
|
3467
3445
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3468
3446
|
var n = [];
|
|
3469
3447
|
try {
|
|
3470
|
-
n =
|
|
3448
|
+
n = Bi(t);
|
|
3471
3449
|
} catch (i) {
|
|
3472
3450
|
return this.error(_.INVALID_NUMBER_SKELETON, r);
|
|
3473
3451
|
}
|
|
@@ -3476,7 +3454,7 @@ var Qi = (
|
|
|
3476
3454
|
type: Oe.number,
|
|
3477
3455
|
tokens: n,
|
|
3478
3456
|
location: r,
|
|
3479
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3457
|
+
parsedOptions: this.shouldParseSkeletons ? Oi(n) : {}
|
|
3480
3458
|
},
|
|
3481
3459
|
err: null
|
|
3482
3460
|
};
|
|
@@ -3524,7 +3502,7 @@ var Qi = (
|
|
|
3524
3502
|
break;
|
|
3525
3503
|
}
|
|
3526
3504
|
var u = E(i, this.clonePosition());
|
|
3527
|
-
return o ? (s *= n,
|
|
3505
|
+
return o ? (s *= n, Vi(s) ? { val: s, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3528
3506
|
}, e.prototype.offset = function() {
|
|
3529
3507
|
return this.position.offset;
|
|
3530
3508
|
}, e.prototype.isEOF = function() {
|
|
@@ -3539,7 +3517,7 @@ var Qi = (
|
|
|
3539
3517
|
var t = this.position.offset;
|
|
3540
3518
|
if (t >= this.message.length)
|
|
3541
3519
|
throw Error("out of bound");
|
|
3542
|
-
var r =
|
|
3520
|
+
var r = Jr(this.message, t);
|
|
3543
3521
|
if (r === void 0)
|
|
3544
3522
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3545
3523
|
return r;
|
|
@@ -3558,7 +3536,7 @@ var Qi = (
|
|
|
3558
3536
|
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);
|
|
3559
3537
|
}
|
|
3560
3538
|
}, e.prototype.bumpIf = function(t) {
|
|
3561
|
-
if (
|
|
3539
|
+
if (hr(this.message, t, this.offset())) {
|
|
3562
3540
|
for (var r = 0; r < t.length; r++)
|
|
3563
3541
|
this.bump();
|
|
3564
3542
|
return !0;
|
|
@@ -3580,7 +3558,7 @@ var Qi = (
|
|
|
3580
3558
|
break;
|
|
3581
3559
|
}
|
|
3582
3560
|
}, e.prototype.bumpSpace = function() {
|
|
3583
|
-
for (; !this.isEOF() &&
|
|
3561
|
+
for (; !this.isEOF() && Yr(this.char()); )
|
|
3584
3562
|
this.bump();
|
|
3585
3563
|
}, e.prototype.peek = function() {
|
|
3586
3564
|
if (this.isEOF())
|
|
@@ -3590,38 +3568,38 @@ var Qi = (
|
|
|
3590
3568
|
}, e;
|
|
3591
3569
|
}()
|
|
3592
3570
|
);
|
|
3593
|
-
function
|
|
3571
|
+
function Ut(e) {
|
|
3594
3572
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3595
3573
|
}
|
|
3596
|
-
function
|
|
3597
|
-
return
|
|
3574
|
+
function qi(e) {
|
|
3575
|
+
return Ut(e) || e === 47;
|
|
3598
3576
|
}
|
|
3599
|
-
function
|
|
3577
|
+
function Ji(e) {
|
|
3600
3578
|
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;
|
|
3601
3579
|
}
|
|
3602
|
-
function
|
|
3580
|
+
function Yr(e) {
|
|
3603
3581
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3604
3582
|
}
|
|
3605
|
-
function
|
|
3583
|
+
function Qi(e) {
|
|
3606
3584
|
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;
|
|
3607
3585
|
}
|
|
3608
|
-
function
|
|
3586
|
+
function Ft(e) {
|
|
3609
3587
|
e.forEach(function(t) {
|
|
3610
|
-
if (delete t.location,
|
|
3588
|
+
if (delete t.location, $r(t) || jr(t))
|
|
3611
3589
|
for (var r in t.options)
|
|
3612
|
-
delete t.options[r].location,
|
|
3590
|
+
delete t.options[r].location, Ft(t.options[r].value);
|
|
3613
3591
|
else
|
|
3614
|
-
|
|
3592
|
+
Dr(t) && zr(t.style) || (kr(t) || Gr(t)) && Lt(t.style) ? delete t.style.location : Vr(t) && Ft(t.children);
|
|
3615
3593
|
});
|
|
3616
3594
|
}
|
|
3617
|
-
function
|
|
3595
|
+
function Yi(e, t) {
|
|
3618
3596
|
t === void 0 && (t = {}), t = w({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3619
|
-
var r = new
|
|
3597
|
+
var r = new Zi(e, t).parse();
|
|
3620
3598
|
if (r.err) {
|
|
3621
3599
|
var n = SyntaxError(_[r.err.kind]);
|
|
3622
3600
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3623
3601
|
}
|
|
3624
|
-
return t != null && t.captureLocation ||
|
|
3602
|
+
return t != null && t.captureLocation || Ft(r.val), r.val;
|
|
3625
3603
|
}
|
|
3626
3604
|
var Le;
|
|
3627
3605
|
(function(e) {
|
|
@@ -3639,7 +3617,7 @@ var mt = (
|
|
|
3639
3617
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3640
3618
|
}, t;
|
|
3641
3619
|
}(Error)
|
|
3642
|
-
),
|
|
3620
|
+
), mr = (
|
|
3643
3621
|
/** @class */
|
|
3644
3622
|
function(e) {
|
|
3645
3623
|
le(t, e);
|
|
@@ -3648,7 +3626,7 @@ var mt = (
|
|
|
3648
3626
|
}
|
|
3649
3627
|
return t;
|
|
3650
3628
|
}(mt)
|
|
3651
|
-
),
|
|
3629
|
+
), Ki = (
|
|
3652
3630
|
/** @class */
|
|
3653
3631
|
function(e) {
|
|
3654
3632
|
le(t, e);
|
|
@@ -3657,7 +3635,7 @@ var mt = (
|
|
|
3657
3635
|
}
|
|
3658
3636
|
return t;
|
|
3659
3637
|
}(mt)
|
|
3660
|
-
),
|
|
3638
|
+
), eo = (
|
|
3661
3639
|
/** @class */
|
|
3662
3640
|
function(e) {
|
|
3663
3641
|
le(t, e);
|
|
@@ -3670,17 +3648,17 @@ var mt = (
|
|
|
3670
3648
|
(function(e) {
|
|
3671
3649
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3672
3650
|
})(V || (V = {}));
|
|
3673
|
-
function
|
|
3651
|
+
function to(e) {
|
|
3674
3652
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3675
3653
|
var n = t[t.length - 1];
|
|
3676
3654
|
return !n || n.type !== V.literal || r.type !== V.literal ? t.push(r) : n.value += r.value, t;
|
|
3677
3655
|
}, []);
|
|
3678
3656
|
}
|
|
3679
|
-
function
|
|
3657
|
+
function ro(e) {
|
|
3680
3658
|
return typeof e == "function";
|
|
3681
3659
|
}
|
|
3682
3660
|
function at(e, t, r, n, i, o, s) {
|
|
3683
|
-
if (e.length === 1 &&
|
|
3661
|
+
if (e.length === 1 && ar(e[0]))
|
|
3684
3662
|
return [
|
|
3685
3663
|
{
|
|
3686
3664
|
type: V.literal,
|
|
@@ -3689,14 +3667,14 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3689
3667
|
];
|
|
3690
3668
|
for (var a = [], u = 0, l = e; u < l.length; u++) {
|
|
3691
3669
|
var c = l[u];
|
|
3692
|
-
if (
|
|
3670
|
+
if (ar(c)) {
|
|
3693
3671
|
a.push({
|
|
3694
3672
|
type: V.literal,
|
|
3695
3673
|
value: c.value
|
|
3696
3674
|
});
|
|
3697
3675
|
continue;
|
|
3698
3676
|
}
|
|
3699
|
-
if (
|
|
3677
|
+
if (Si(c)) {
|
|
3700
3678
|
typeof o == "number" && a.push({
|
|
3701
3679
|
type: V.literal,
|
|
3702
3680
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3705,43 +3683,43 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3705
3683
|
}
|
|
3706
3684
|
var f = c.value;
|
|
3707
3685
|
if (!(i && f in i))
|
|
3708
|
-
throw new
|
|
3686
|
+
throw new eo(f, s);
|
|
3709
3687
|
var d = i[f];
|
|
3710
|
-
if (
|
|
3688
|
+
if (xi(c)) {
|
|
3711
3689
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), a.push({
|
|
3712
3690
|
type: typeof d == "string" ? V.literal : V.object,
|
|
3713
3691
|
value: d
|
|
3714
3692
|
});
|
|
3715
3693
|
continue;
|
|
3716
3694
|
}
|
|
3717
|
-
if (
|
|
3718
|
-
var b = typeof c.style == "string" ? n.date[c.style] :
|
|
3695
|
+
if (kr(c)) {
|
|
3696
|
+
var b = typeof c.style == "string" ? n.date[c.style] : Lt(c.style) ? c.style.parsedOptions : void 0;
|
|
3719
3697
|
a.push({
|
|
3720
3698
|
type: V.literal,
|
|
3721
3699
|
value: r.getDateTimeFormat(t, b).format(d)
|
|
3722
3700
|
});
|
|
3723
3701
|
continue;
|
|
3724
3702
|
}
|
|
3725
|
-
if (
|
|
3726
|
-
var b = typeof c.style == "string" ? n.time[c.style] :
|
|
3703
|
+
if (Gr(c)) {
|
|
3704
|
+
var b = typeof c.style == "string" ? n.time[c.style] : Lt(c.style) ? c.style.parsedOptions : n.time.medium;
|
|
3727
3705
|
a.push({
|
|
3728
3706
|
type: V.literal,
|
|
3729
3707
|
value: r.getDateTimeFormat(t, b).format(d)
|
|
3730
3708
|
});
|
|
3731
3709
|
continue;
|
|
3732
3710
|
}
|
|
3733
|
-
if (
|
|
3734
|
-
var b = typeof c.style == "string" ? n.number[c.style] :
|
|
3711
|
+
if (Dr(c)) {
|
|
3712
|
+
var b = typeof c.style == "string" ? n.number[c.style] : zr(c.style) ? c.style.parsedOptions : void 0;
|
|
3735
3713
|
b && b.scale && (d = d * (b.scale || 1)), a.push({
|
|
3736
3714
|
type: V.literal,
|
|
3737
3715
|
value: r.getNumberFormat(t, b).format(d)
|
|
3738
3716
|
});
|
|
3739
3717
|
continue;
|
|
3740
3718
|
}
|
|
3741
|
-
if (
|
|
3719
|
+
if (Vr(c)) {
|
|
3742
3720
|
var y = c.children, g = c.value, S = i[g];
|
|
3743
|
-
if (!
|
|
3744
|
-
throw new
|
|
3721
|
+
if (!ro(S))
|
|
3722
|
+
throw new Ki(g, "function", s);
|
|
3745
3723
|
var C = at(y, t, r, n, i, o), z = S(C.map(function(A) {
|
|
3746
3724
|
return A.value;
|
|
3747
3725
|
}));
|
|
@@ -3752,14 +3730,14 @@ function at(e, t, r, n, i, o, s) {
|
|
|
3752
3730
|
};
|
|
3753
3731
|
}));
|
|
3754
3732
|
}
|
|
3755
|
-
if (
|
|
3733
|
+
if ($r(c)) {
|
|
3756
3734
|
var R = c.options[d] || c.options.other;
|
|
3757
3735
|
if (!R)
|
|
3758
|
-
throw new
|
|
3736
|
+
throw new mr(c.value, d, Object.keys(c.options), s);
|
|
3759
3737
|
a.push.apply(a, at(R.value, t, r, n, i));
|
|
3760
3738
|
continue;
|
|
3761
3739
|
}
|
|
3762
|
-
if (
|
|
3740
|
+
if (jr(c)) {
|
|
3763
3741
|
var R = c.options["=".concat(d)];
|
|
3764
3742
|
if (!R) {
|
|
3765
3743
|
if (!Intl.PluralRules)
|
|
@@ -3770,24 +3748,24 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3770
3748
|
R = c.options[U] || c.options.other;
|
|
3771
3749
|
}
|
|
3772
3750
|
if (!R)
|
|
3773
|
-
throw new
|
|
3751
|
+
throw new mr(c.value, d, Object.keys(c.options), s);
|
|
3774
3752
|
a.push.apply(a, at(R.value, t, r, n, i, d - (c.offset || 0)));
|
|
3775
3753
|
continue;
|
|
3776
3754
|
}
|
|
3777
3755
|
}
|
|
3778
|
-
return
|
|
3756
|
+
return to(a);
|
|
3779
3757
|
}
|
|
3780
|
-
function
|
|
3758
|
+
function no(e, t) {
|
|
3781
3759
|
return t ? w(w(w({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3782
3760
|
return r[n] = w(w({}, e[n]), t[n] || {}), r;
|
|
3783
3761
|
}, {})) : e;
|
|
3784
3762
|
}
|
|
3785
|
-
function
|
|
3763
|
+
function io(e, t) {
|
|
3786
3764
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3787
|
-
return r[n] =
|
|
3765
|
+
return r[n] = no(e[n], t[n]), r;
|
|
3788
3766
|
}, w({}, e)) : e;
|
|
3789
3767
|
}
|
|
3790
|
-
function
|
|
3768
|
+
function St(e) {
|
|
3791
3769
|
return {
|
|
3792
3770
|
create: function() {
|
|
3793
3771
|
return {
|
|
@@ -3801,39 +3779,39 @@ function Pt(e) {
|
|
|
3801
3779
|
}
|
|
3802
3780
|
};
|
|
3803
3781
|
}
|
|
3804
|
-
function
|
|
3782
|
+
function oo(e) {
|
|
3805
3783
|
return e === void 0 && (e = {
|
|
3806
3784
|
number: {},
|
|
3807
3785
|
dateTime: {},
|
|
3808
3786
|
pluralRules: {}
|
|
3809
3787
|
}), {
|
|
3810
|
-
getNumberFormat:
|
|
3788
|
+
getNumberFormat: Et(function() {
|
|
3811
3789
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3812
3790
|
r[n] = arguments[n];
|
|
3813
3791
|
return new ((t = Intl.NumberFormat).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3814
3792
|
}, {
|
|
3815
|
-
cache:
|
|
3816
|
-
strategy:
|
|
3793
|
+
cache: St(e.number),
|
|
3794
|
+
strategy: wt.variadic
|
|
3817
3795
|
}),
|
|
3818
|
-
getDateTimeFormat:
|
|
3796
|
+
getDateTimeFormat: Et(function() {
|
|
3819
3797
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3820
3798
|
r[n] = arguments[n];
|
|
3821
3799
|
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3822
3800
|
}, {
|
|
3823
|
-
cache:
|
|
3824
|
-
strategy:
|
|
3801
|
+
cache: St(e.dateTime),
|
|
3802
|
+
strategy: wt.variadic
|
|
3825
3803
|
}),
|
|
3826
|
-
getPluralRules:
|
|
3804
|
+
getPluralRules: Et(function() {
|
|
3827
3805
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3828
3806
|
r[n] = arguments[n];
|
|
3829
3807
|
return new ((t = Intl.PluralRules).bind.apply(t, Ie([void 0], r, !1)))();
|
|
3830
3808
|
}, {
|
|
3831
|
-
cache:
|
|
3832
|
-
strategy:
|
|
3809
|
+
cache: St(e.pluralRules),
|
|
3810
|
+
strategy: wt.variadic
|
|
3833
3811
|
})
|
|
3834
3812
|
};
|
|
3835
3813
|
}
|
|
3836
|
-
var
|
|
3814
|
+
var so = (
|
|
3837
3815
|
/** @class */
|
|
3838
3816
|
function() {
|
|
3839
3817
|
function e(t, r, n, i) {
|
|
@@ -3865,13 +3843,13 @@ var uo = (
|
|
|
3865
3843
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3866
3844
|
var s = i || {};
|
|
3867
3845
|
s.formatters;
|
|
3868
|
-
var a =
|
|
3846
|
+
var a = Fn(s, ["formatters"]);
|
|
3869
3847
|
this.ast = e.__parse(t, w(w({}, a), { locale: this.resolvedLocale }));
|
|
3870
3848
|
} else
|
|
3871
3849
|
this.ast = t;
|
|
3872
3850
|
if (!Array.isArray(this.ast))
|
|
3873
3851
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3874
|
-
this.formats =
|
|
3852
|
+
this.formats = io(e.formats, n), this.formatters = i && i.formatters || oo(this.formatterCache);
|
|
3875
3853
|
}
|
|
3876
3854
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3877
3855
|
get: function() {
|
|
@@ -3884,7 +3862,7 @@ var uo = (
|
|
|
3884
3862
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3885
3863
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3886
3864
|
}
|
|
3887
|
-
}, e.__parse =
|
|
3865
|
+
}, e.__parse = Yi, e.formats = {
|
|
3888
3866
|
number: {
|
|
3889
3867
|
integer: {
|
|
3890
3868
|
maximumFractionDigits: 0
|
|
@@ -3945,7 +3923,7 @@ var uo = (
|
|
|
3945
3923
|
}, e;
|
|
3946
3924
|
}()
|
|
3947
3925
|
);
|
|
3948
|
-
function
|
|
3926
|
+
function ao(e, t) {
|
|
3949
3927
|
if (t == null)
|
|
3950
3928
|
return;
|
|
3951
3929
|
if (t in e)
|
|
@@ -3966,92 +3944,92 @@ function co(e, t) {
|
|
|
3966
3944
|
n = void 0;
|
|
3967
3945
|
return n;
|
|
3968
3946
|
}
|
|
3969
|
-
const ce = {},
|
|
3947
|
+
const ce = {}, lo = (e, t, r) => r && (t in ce || (ce[t] = {}), e in ce[t] || (ce[t][e] = r), r), Kr = (e, t) => {
|
|
3970
3948
|
if (t == null)
|
|
3971
3949
|
return;
|
|
3972
3950
|
if (t in ce && e in ce[t])
|
|
3973
3951
|
return ce[t][e];
|
|
3974
3952
|
const r = pt(t);
|
|
3975
3953
|
for (let n = 0; n < r.length; n++) {
|
|
3976
|
-
const i = r[n], o =
|
|
3954
|
+
const i = r[n], o = co(i, e);
|
|
3977
3955
|
if (o)
|
|
3978
|
-
return
|
|
3956
|
+
return lo(e, t, o);
|
|
3979
3957
|
}
|
|
3980
3958
|
};
|
|
3981
|
-
let
|
|
3959
|
+
let $t;
|
|
3982
3960
|
const Ue = dt({});
|
|
3983
|
-
function
|
|
3984
|
-
return
|
|
3961
|
+
function uo(e) {
|
|
3962
|
+
return $t[e] || null;
|
|
3985
3963
|
}
|
|
3986
|
-
function
|
|
3987
|
-
return e in
|
|
3964
|
+
function en(e) {
|
|
3965
|
+
return e in $t;
|
|
3988
3966
|
}
|
|
3989
|
-
function
|
|
3990
|
-
if (!
|
|
3967
|
+
function co(e, t) {
|
|
3968
|
+
if (!en(e))
|
|
3991
3969
|
return null;
|
|
3992
|
-
const r =
|
|
3993
|
-
return
|
|
3970
|
+
const r = uo(e);
|
|
3971
|
+
return ao(r, t);
|
|
3994
3972
|
}
|
|
3995
|
-
function
|
|
3973
|
+
function ho(e) {
|
|
3996
3974
|
if (e == null)
|
|
3997
3975
|
return;
|
|
3998
3976
|
const t = pt(e);
|
|
3999
3977
|
for (let r = 0; r < t.length; r++) {
|
|
4000
3978
|
const n = t[r];
|
|
4001
|
-
if (
|
|
3979
|
+
if (en(n))
|
|
4002
3980
|
return n;
|
|
4003
3981
|
}
|
|
4004
3982
|
}
|
|
4005
|
-
function
|
|
4006
|
-
delete ce[e], Ue.update((r) => (r[e] =
|
|
3983
|
+
function tn(e, ...t) {
|
|
3984
|
+
delete ce[e], Ue.update((r) => (r[e] = pi.all([r[e] || {}, ...t]), r));
|
|
4007
3985
|
}
|
|
4008
3986
|
Re(
|
|
4009
3987
|
[Ue],
|
|
4010
3988
|
([e]) => Object.keys(e)
|
|
4011
3989
|
);
|
|
4012
|
-
Ue.subscribe((e) =>
|
|
3990
|
+
Ue.subscribe((e) => $t = e);
|
|
4013
3991
|
const lt = {};
|
|
4014
|
-
function
|
|
3992
|
+
function fo(e, t) {
|
|
4015
3993
|
lt[e].delete(t), lt[e].size === 0 && delete lt[e];
|
|
4016
3994
|
}
|
|
4017
|
-
function
|
|
3995
|
+
function rn(e) {
|
|
4018
3996
|
return lt[e];
|
|
4019
3997
|
}
|
|
4020
|
-
function
|
|
3998
|
+
function mo(e) {
|
|
4021
3999
|
return pt(e).map((t) => {
|
|
4022
|
-
const r =
|
|
4000
|
+
const r = rn(t);
|
|
4023
4001
|
return [t, r ? [...r] : []];
|
|
4024
4002
|
}).filter(([, t]) => t.length > 0);
|
|
4025
4003
|
}
|
|
4026
|
-
function
|
|
4004
|
+
function Dt(e) {
|
|
4027
4005
|
return e == null ? !1 : pt(e).some(
|
|
4028
4006
|
(t) => {
|
|
4029
4007
|
var r;
|
|
4030
|
-
return (r =
|
|
4008
|
+
return (r = rn(t)) == null ? void 0 : r.size;
|
|
4031
4009
|
}
|
|
4032
4010
|
);
|
|
4033
4011
|
}
|
|
4034
|
-
function
|
|
4012
|
+
function po(e, t) {
|
|
4035
4013
|
return Promise.all(
|
|
4036
|
-
t.map((n) => (
|
|
4037
|
-
).then((n) =>
|
|
4014
|
+
t.map((n) => (fo(e, n), n().then((i) => i.default || i)))
|
|
4015
|
+
).then((n) => tn(e, ...n));
|
|
4038
4016
|
}
|
|
4039
4017
|
const Ve = {};
|
|
4040
|
-
function
|
|
4041
|
-
if (!
|
|
4018
|
+
function nn(e) {
|
|
4019
|
+
if (!Dt(e))
|
|
4042
4020
|
return e in Ve ? Ve[e] : Promise.resolve();
|
|
4043
|
-
const t =
|
|
4021
|
+
const t = mo(e);
|
|
4044
4022
|
return Ve[e] = Promise.all(
|
|
4045
4023
|
t.map(
|
|
4046
|
-
([r, n]) =>
|
|
4024
|
+
([r, n]) => po(r, n)
|
|
4047
4025
|
)
|
|
4048
4026
|
).then(() => {
|
|
4049
|
-
if (
|
|
4050
|
-
return
|
|
4027
|
+
if (Dt(e))
|
|
4028
|
+
return nn(e);
|
|
4051
4029
|
delete Ve[e];
|
|
4052
4030
|
}), Ve[e];
|
|
4053
4031
|
}
|
|
4054
|
-
const
|
|
4032
|
+
const go = {
|
|
4055
4033
|
number: {
|
|
4056
4034
|
scientific: { notation: "scientific" },
|
|
4057
4035
|
engineering: { notation: "engineering" },
|
|
@@ -4080,57 +4058,57 @@ const yo = {
|
|
|
4080
4058
|
timeZoneName: "short"
|
|
4081
4059
|
}
|
|
4082
4060
|
}
|
|
4083
|
-
},
|
|
4061
|
+
}, bo = {
|
|
4084
4062
|
fallbackLocale: null,
|
|
4085
4063
|
loadingDelay: 200,
|
|
4086
|
-
formats:
|
|
4064
|
+
formats: go,
|
|
4087
4065
|
warnOnMissingMessages: !0,
|
|
4088
4066
|
handleMissingMessage: void 0,
|
|
4089
4067
|
ignoreTag: !0
|
|
4090
|
-
},
|
|
4068
|
+
}, vo = bo;
|
|
4091
4069
|
function Me() {
|
|
4092
|
-
return
|
|
4070
|
+
return vo;
|
|
4093
4071
|
}
|
|
4094
|
-
const
|
|
4095
|
-
var
|
|
4072
|
+
const Pt = dt(!1);
|
|
4073
|
+
var yo = Object.defineProperty, _o = Object.defineProperties, Eo = Object.getOwnPropertyDescriptors, pr = Object.getOwnPropertySymbols, wo = Object.prototype.hasOwnProperty, xo = Object.prototype.propertyIsEnumerable, gr = (e, t, r) => t in e ? yo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, So = (e, t) => {
|
|
4096
4074
|
for (var r in t || (t = {}))
|
|
4097
|
-
|
|
4098
|
-
if (
|
|
4099
|
-
for (var r of
|
|
4100
|
-
|
|
4075
|
+
wo.call(t, r) && gr(e, r, t[r]);
|
|
4076
|
+
if (pr)
|
|
4077
|
+
for (var r of pr(t))
|
|
4078
|
+
xo.call(t, r) && gr(e, r, t[r]);
|
|
4101
4079
|
return e;
|
|
4102
|
-
},
|
|
4103
|
-
let
|
|
4080
|
+
}, Po = (e, t) => _o(e, Eo(t));
|
|
4081
|
+
let kt;
|
|
4104
4082
|
const ct = dt(null);
|
|
4105
|
-
function
|
|
4083
|
+
function br(e) {
|
|
4106
4084
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
4107
4085
|
}
|
|
4108
4086
|
function pt(e, t = Me().fallbackLocale) {
|
|
4109
|
-
const r =
|
|
4110
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
4087
|
+
const r = br(e);
|
|
4088
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...br(t)])] : r;
|
|
4111
4089
|
}
|
|
4112
4090
|
function ye() {
|
|
4113
|
-
return
|
|
4091
|
+
return kt != null ? kt : void 0;
|
|
4114
4092
|
}
|
|
4115
4093
|
ct.subscribe((e) => {
|
|
4116
|
-
|
|
4094
|
+
kt = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
4117
4095
|
});
|
|
4118
|
-
const
|
|
4119
|
-
if (e &&
|
|
4096
|
+
const To = (e) => {
|
|
4097
|
+
if (e && ho(e) && Dt(e)) {
|
|
4120
4098
|
const { loadingDelay: t } = Me();
|
|
4121
4099
|
let r;
|
|
4122
4100
|
return typeof window != "undefined" && ye() != null && t ? r = window.setTimeout(
|
|
4123
|
-
() =>
|
|
4101
|
+
() => Pt.set(!0),
|
|
4124
4102
|
t
|
|
4125
|
-
) :
|
|
4103
|
+
) : Pt.set(!0), nn(e).then(() => {
|
|
4126
4104
|
ct.set(e);
|
|
4127
4105
|
}).finally(() => {
|
|
4128
|
-
clearTimeout(r),
|
|
4106
|
+
clearTimeout(r), Pt.set(!1);
|
|
4129
4107
|
});
|
|
4130
4108
|
}
|
|
4131
4109
|
return ct.set(e);
|
|
4132
|
-
}, he =
|
|
4133
|
-
set:
|
|
4110
|
+
}, he = Po(So({}, ct), {
|
|
4111
|
+
set: To
|
|
4134
4112
|
}), gt = (e) => {
|
|
4135
4113
|
const t = /* @__PURE__ */ Object.create(null);
|
|
4136
4114
|
return (n) => {
|
|
@@ -4138,20 +4116,20 @@ const Ao = (e) => {
|
|
|
4138
4116
|
return i in t ? t[i] : t[i] = e(n);
|
|
4139
4117
|
};
|
|
4140
4118
|
};
|
|
4141
|
-
var
|
|
4119
|
+
var Ho = Object.defineProperty, ht = Object.getOwnPropertySymbols, on = Object.prototype.hasOwnProperty, sn = Object.prototype.propertyIsEnumerable, vr = (e, t, r) => t in e ? Ho(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, jt = (e, t) => {
|
|
4142
4120
|
for (var r in t || (t = {}))
|
|
4143
|
-
|
|
4121
|
+
on.call(t, r) && vr(e, r, t[r]);
|
|
4144
4122
|
if (ht)
|
|
4145
4123
|
for (var r of ht(t))
|
|
4146
|
-
|
|
4124
|
+
sn.call(t, r) && vr(e, r, t[r]);
|
|
4147
4125
|
return e;
|
|
4148
4126
|
}, Fe = (e, t) => {
|
|
4149
4127
|
var r = {};
|
|
4150
4128
|
for (var n in e)
|
|
4151
|
-
|
|
4129
|
+
on.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
4152
4130
|
if (e != null && ht)
|
|
4153
4131
|
for (var n of ht(e))
|
|
4154
|
-
t.indexOf(n) < 0 &&
|
|
4132
|
+
t.indexOf(n) < 0 && sn.call(e, n) && (r[n] = e[n]);
|
|
4155
4133
|
return r;
|
|
4156
4134
|
};
|
|
4157
4135
|
const Ze = (e, t) => {
|
|
@@ -4159,21 +4137,21 @@ const Ze = (e, t) => {
|
|
|
4159
4137
|
if (e in r && t in r[e])
|
|
4160
4138
|
return r[e][t];
|
|
4161
4139
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
4162
|
-
},
|
|
4140
|
+
}, Bo = gt(
|
|
4163
4141
|
(e) => {
|
|
4164
4142
|
var t = e, { locale: r, format: n } = t, i = Fe(t, ["locale", "format"]);
|
|
4165
4143
|
if (r == null)
|
|
4166
4144
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
4167
4145
|
return n && (i = Ze("number", n)), new Intl.NumberFormat(r, i);
|
|
4168
4146
|
}
|
|
4169
|
-
),
|
|
4147
|
+
), Ao = gt(
|
|
4170
4148
|
(e) => {
|
|
4171
4149
|
var t = e, { locale: r, format: n } = t, i = Fe(t, ["locale", "format"]);
|
|
4172
4150
|
if (r == null)
|
|
4173
4151
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
4174
4152
|
return n ? i = Ze("date", n) : Object.keys(i).length === 0 && (i = Ze("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
4175
4153
|
}
|
|
4176
|
-
),
|
|
4154
|
+
), Io = gt(
|
|
4177
4155
|
(e) => {
|
|
4178
4156
|
var t = e, { locale: r, format: n } = t, i = Fe(t, ["locale", "format"]);
|
|
4179
4157
|
if (r == null)
|
|
@@ -4182,33 +4160,33 @@ const Ze = (e, t) => {
|
|
|
4182
4160
|
);
|
|
4183
4161
|
return n ? i = Ze("time", n) : Object.keys(i).length === 0 && (i = Ze("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
4184
4162
|
}
|
|
4185
|
-
),
|
|
4163
|
+
), Co = (e = {}) => {
|
|
4186
4164
|
var t = e, {
|
|
4187
4165
|
locale: r = ye()
|
|
4188
4166
|
} = t, n = Fe(t, [
|
|
4189
4167
|
"locale"
|
|
4190
4168
|
]);
|
|
4191
|
-
return
|
|
4192
|
-
},
|
|
4169
|
+
return Bo(jt({ locale: r }, n));
|
|
4170
|
+
}, Oo = (e = {}) => {
|
|
4193
4171
|
var t = e, {
|
|
4194
4172
|
locale: r = ye()
|
|
4195
4173
|
} = t, n = Fe(t, [
|
|
4196
4174
|
"locale"
|
|
4197
4175
|
]);
|
|
4198
|
-
return
|
|
4199
|
-
},
|
|
4176
|
+
return Ao(jt({ locale: r }, n));
|
|
4177
|
+
}, Lo = (e = {}) => {
|
|
4200
4178
|
var t = e, {
|
|
4201
4179
|
locale: r = ye()
|
|
4202
4180
|
} = t, n = Fe(t, [
|
|
4203
4181
|
"locale"
|
|
4204
4182
|
]);
|
|
4205
|
-
return
|
|
4206
|
-
},
|
|
4183
|
+
return Io(jt({ locale: r }, n));
|
|
4184
|
+
}, Mo = gt(
|
|
4207
4185
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4208
|
-
(e, t = ye()) => new
|
|
4186
|
+
(e, t = ye()) => new so(e, t, Me().formats, {
|
|
4209
4187
|
ignoreTag: Me().ignoreTag
|
|
4210
4188
|
})
|
|
4211
|
-
),
|
|
4189
|
+
), No = (e, t = {}) => {
|
|
4212
4190
|
var r, n, i, o;
|
|
4213
4191
|
let s = t;
|
|
4214
4192
|
typeof e == "object" && (s = e, e = s.id);
|
|
@@ -4221,7 +4199,7 @@ const Ze = (e, t) => {
|
|
|
4221
4199
|
throw new Error(
|
|
4222
4200
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
4223
4201
|
);
|
|
4224
|
-
let c =
|
|
4202
|
+
let c = Kr(e, u);
|
|
4225
4203
|
if (!c)
|
|
4226
4204
|
c = (o = (i = (n = (r = Me()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
4227
4205
|
else if (typeof c != "string")
|
|
@@ -4232,7 +4210,7 @@ const Ze = (e, t) => {
|
|
|
4232
4210
|
return c;
|
|
4233
4211
|
let f = c;
|
|
4234
4212
|
try {
|
|
4235
|
-
f =
|
|
4213
|
+
f = Mo(c, u).format(a);
|
|
4236
4214
|
} catch (d) {
|
|
4237
4215
|
d instanceof Error && console.warn(
|
|
4238
4216
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4240,20 +4218,20 @@ const Ze = (e, t) => {
|
|
|
4240
4218
|
);
|
|
4241
4219
|
}
|
|
4242
4220
|
return f;
|
|
4243
|
-
},
|
|
4244
|
-
Re([he], () =>
|
|
4245
|
-
Re([he], () =>
|
|
4246
|
-
Re([he], () =>
|
|
4247
|
-
Re([he, Ue], () =>
|
|
4248
|
-
window.emWidgets = { topic:
|
|
4249
|
-
const
|
|
4250
|
-
function
|
|
4221
|
+
}, Ro = (e, t) => Lo(t).format(e), Uo = (e, t) => Oo(t).format(e), Fo = (e, t) => Co(t).format(e), Do = (e, t = ye()) => Kr(e, t), ko = Re([he, Ue], () => No);
|
|
4222
|
+
Re([he], () => Ro);
|
|
4223
|
+
Re([he], () => Uo);
|
|
4224
|
+
Re([he], () => Fo);
|
|
4225
|
+
Re([he, Ue], () => Do);
|
|
4226
|
+
window.emWidgets = { topic: Yn };
|
|
4227
|
+
const Go = (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));
|
|
4228
|
+
function $o(e, t) {
|
|
4251
4229
|
if (e) {
|
|
4252
4230
|
const r = document.createElement("style");
|
|
4253
4231
|
r.innerHTML = t, e.appendChild(r);
|
|
4254
4232
|
}
|
|
4255
4233
|
}
|
|
4256
|
-
function
|
|
4234
|
+
function jo(e, t) {
|
|
4257
4235
|
const r = new URL(t);
|
|
4258
4236
|
fetch(r.href).then((n) => n.text()).then((n) => {
|
|
4259
4237
|
const i = document.createElement("style");
|
|
@@ -4262,7 +4240,7 @@ function Xo(e, t) {
|
|
|
4262
4240
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4263
4241
|
});
|
|
4264
4242
|
}
|
|
4265
|
-
function
|
|
4243
|
+
function Vo(e, t, r) {
|
|
4266
4244
|
if (window.emMessageBus) {
|
|
4267
4245
|
const n = document.createElement("style");
|
|
4268
4246
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4282,22 +4260,22 @@ if (typeof window != "undefined") {
|
|
|
4282
4260
|
}
|
|
4283
4261
|
};
|
|
4284
4262
|
};
|
|
4285
|
-
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-
|
|
4263
|
+
customElements.define = e(customElements.define), import("./GeneralPlayerSmsVerificationForm-DksfvWzQ.js").then(({ default: t }) => {
|
|
4286
4264
|
!customElements.get("general-player-sms-verification-form") && customElements.define("general-player-sms-verification-form", t.element);
|
|
4287
4265
|
});
|
|
4288
4266
|
}
|
|
4289
|
-
function
|
|
4267
|
+
function zo({ withLocale: e, translations: t }) {
|
|
4290
4268
|
he.subscribe((r) => {
|
|
4291
4269
|
r == null && (Ue.set(t), he.set(e));
|
|
4292
4270
|
});
|
|
4293
4271
|
}
|
|
4294
|
-
function
|
|
4295
|
-
|
|
4272
|
+
function yr(e, t) {
|
|
4273
|
+
tn(e, t);
|
|
4296
4274
|
}
|
|
4297
|
-
function
|
|
4275
|
+
function Xo(e) {
|
|
4298
4276
|
he.set(e);
|
|
4299
4277
|
}
|
|
4300
|
-
const
|
|
4278
|
+
const _r = {
|
|
4301
4279
|
en: {
|
|
4302
4280
|
loginTitle: "Welcome",
|
|
4303
4281
|
loginSubtitle: "Don't have an account yet?",
|
|
@@ -4442,14 +4420,14 @@ const xr = {
|
|
|
4442
4420
|
successMessage: "Login successful"
|
|
4443
4421
|
}
|
|
4444
4422
|
};
|
|
4445
|
-
function
|
|
4446
|
-
|
|
4423
|
+
function Wo(e) {
|
|
4424
|
+
bn(e, "svelte-b3dr9t", '.grecaptcha-badge{opacity:0}.PlayerLoginFormWrapper{height:100%}.FormContainer{width:100%}.FormLogin{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));padding:50px}.FormHeaderTitle{color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A));font-size:20px;font-weight:300;padding:0;text-transform:uppercase;margin:0}.PasswordContainer{position:relative}.FormRequired{color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.FormHeaderSubtitle{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));font-size:14px;font-weight:300;margin:5px 0 0 0}.FormRegisterCallToAction{color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.FormContent{padding-top:20px}.UserContainer,.PasswordContainer,.CaptchaContainer{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;position:relative}.UserContainer label,.PasswordContainer label,.CaptchaContainer label{font-size:14px;font-weight:300;padding-bottom:5px}.UserContainer input,.PasswordContainer input,.CaptchaContainer input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px}.UserContainer.InvalidField input,.PasswordContainer.InvalidField input,.CaptchaContainer.InvalidField input{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));background:var(--emw--color-pale, #FBECF4);color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C))}.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--registration-color-primary, var(--emw--color-primary, #D0046C))}.TogglePasswordVisibility path,.TogglePasswordVisibility circle,.TogglePasswordVisibility rect{fill:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B))}.SignInButton{color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));background:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));border-radius:5px;width:100%;height:60px;padding:0;text-transform:uppercase;font-size:18px;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:14px;font-weight:300;color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C));margin-top:15px;cursor:pointer}.PasswordContainer,.UserContainer{padding-bottom:40px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;position:absolute;top:55px;padding-top:5px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.FormMobileContainer{height:100%}.FormMobileContainer .FormLogin{padding:40px 20px}.FormMobileContainer .SignInButton,.FormMobileContainer .UserContainer input,.FormMobileContainer .PasswordContainer input,.FormMobileContainer .CaptchaContainer{max-width:unset}.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, #D0046C));border-color:var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--registration-color-primary, var(--emw--color-primary, #D0046C)) 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)}}');
|
|
4447
4425
|
}
|
|
4448
|
-
function
|
|
4426
|
+
function Er(e) {
|
|
4449
4427
|
let t, r;
|
|
4450
4428
|
return {
|
|
4451
4429
|
c() {
|
|
4452
|
-
t = x("script"),
|
|
4430
|
+
t = x("script"), Qt(t.src, r = "//www.google.com/recaptcha/api.js?render=" + /*captchakey*/
|
|
4453
4431
|
e[1]) || h(t, "src", r), t.async = !0, t.defer = !0;
|
|
4454
4432
|
},
|
|
4455
4433
|
m(n, i) {
|
|
@@ -4457,7 +4435,7 @@ function Sr(e) {
|
|
|
4457
4435
|
},
|
|
4458
4436
|
p(n, i) {
|
|
4459
4437
|
i[0] & /*captchakey*/
|
|
4460
|
-
2 && !
|
|
4438
|
+
2 && !Qt(t.src, r = "//www.google.com/recaptcha/api.js?render=" + /*captchakey*/
|
|
4461
4439
|
n[1]) && h(t, "src", r);
|
|
4462
4440
|
},
|
|
4463
4441
|
d(n) {
|
|
@@ -4465,12 +4443,12 @@ function Sr(e) {
|
|
|
4465
4443
|
}
|
|
4466
4444
|
};
|
|
4467
4445
|
}
|
|
4468
|
-
function
|
|
4446
|
+
function Zo(e) {
|
|
4469
4447
|
let t, r, n;
|
|
4470
4448
|
function i(a, u) {
|
|
4471
4449
|
return (
|
|
4472
4450
|
/*startSmsValidation*/
|
|
4473
|
-
a[21] ?
|
|
4451
|
+
a[21] ? Qo : Jo
|
|
4474
4452
|
);
|
|
4475
4453
|
}
|
|
4476
4454
|
let o = i(e), s = o(e);
|
|
@@ -4492,7 +4470,7 @@ function Qo(e) {
|
|
|
4492
4470
|
}
|
|
4493
4471
|
};
|
|
4494
4472
|
}
|
|
4495
|
-
function
|
|
4473
|
+
function qo(e) {
|
|
4496
4474
|
let t;
|
|
4497
4475
|
return {
|
|
4498
4476
|
c() {
|
|
@@ -4507,7 +4485,7 @@ function Yo(e) {
|
|
|
4507
4485
|
}
|
|
4508
4486
|
};
|
|
4509
4487
|
}
|
|
4510
|
-
function
|
|
4488
|
+
function Jo(e) {
|
|
4511
4489
|
let t, r, n = (
|
|
4512
4490
|
/*$_*/
|
|
4513
4491
|
e[22]("loginTitle") + ""
|
|
@@ -4531,25 +4509,25 @@ function Ko(e) {
|
|
|
4531
4509
|
e[22]("loginForgotPassword") + ""
|
|
4532
4510
|
), Ge, $e, Ye, F = (
|
|
4533
4511
|
/*invalidName*/
|
|
4534
|
-
e[14] &&
|
|
4512
|
+
e[14] && wr(e)
|
|
4535
4513
|
);
|
|
4536
4514
|
function Ke(v, P) {
|
|
4537
4515
|
return (
|
|
4538
4516
|
/*isPasswordVisible*/
|
|
4539
|
-
v[19] ?
|
|
4517
|
+
v[19] ? Ko : Yo
|
|
4540
4518
|
);
|
|
4541
4519
|
}
|
|
4542
4520
|
let Pe = Ke(e), Y = Pe(e), D = (
|
|
4543
4521
|
/*invalidPassword*/
|
|
4544
4522
|
e[15] && /*simplepasswordvalidation*/
|
|
4545
|
-
e[2] !== "true" &&
|
|
4523
|
+
e[2] !== "true" && xr(e)
|
|
4546
4524
|
), k = (
|
|
4547
4525
|
/*invalidPassword*/
|
|
4548
4526
|
e[15] && /*simplepasswordvalidation*/
|
|
4549
|
-
e[2] === "true" &&
|
|
4527
|
+
e[2] === "true" && Sr(e)
|
|
4550
4528
|
), G = (
|
|
4551
4529
|
/*errorMessage*/
|
|
4552
|
-
e[16] &&
|
|
4530
|
+
e[16] && Pr(e)
|
|
4553
4531
|
);
|
|
4554
4532
|
return {
|
|
4555
4533
|
c() {
|
|
@@ -4632,7 +4610,7 @@ function Ko(e) {
|
|
|
4632
4610
|
/*userValue*/
|
|
4633
4611
|
v[12]
|
|
4634
4612
|
), /*invalidName*/
|
|
4635
|
-
v[14] ? F ? F.p(v, P) : (F =
|
|
4613
|
+
v[14] ? F ? F.p(v, P) : (F = wr(v), F.c(), F.m(S, null)) : F && (F.d(1), F = null), P[0] & /*invalidName*/
|
|
4636
4614
|
16384 && J !== (J = "UserContainer " + /*invalidName*/
|
|
4637
4615
|
(v[14] ? "InvalidField" : "")) && h(S, "class", J), P[0] & /*$_*/
|
|
4638
4616
|
4194304 && X !== (X = /*$_*/
|
|
@@ -4646,12 +4624,12 @@ function Ko(e) {
|
|
|
4646
4624
|
v[13]
|
|
4647
4625
|
), Pe === (Pe = Ke(v)) && Y ? Y.p(v, P) : (Y.d(1), Y = Pe(v), Y && (Y.c(), Y.m(B, Ee))), /*invalidPassword*/
|
|
4648
4626
|
v[15] && /*simplepasswordvalidation*/
|
|
4649
|
-
v[2] !== "true" ? D ? D.p(v, P) : (D =
|
|
4627
|
+
v[2] !== "true" ? D ? D.p(v, P) : (D = xr(v), D.c(), D.m(B, we)) : D && (D.d(1), D = null), /*invalidPassword*/
|
|
4650
4628
|
v[15] && /*simplepasswordvalidation*/
|
|
4651
|
-
v[2] === "true" ? k ? k.p(v, P) : (k =
|
|
4629
|
+
v[2] === "true" ? k ? k.p(v, P) : (k = Sr(v), k.c(), k.m(B, null)) : k && (k.d(1), k = null), P[0] & /*invalidPassword*/
|
|
4652
4630
|
32768 && pe !== (pe = "PasswordContainer " + /*invalidPassword*/
|
|
4653
4631
|
(v[15] ? "InvalidField" : "")) && h(B, "class", pe), /*errorMessage*/
|
|
4654
|
-
v[16] ? G ? G.p(v, P) : (G =
|
|
4632
|
+
v[16] ? G ? G.p(v, P) : (G = Pr(v), G.c(), G.m(g, xe)) : G && (G.d(1), G = null), P[0] & /*$_*/
|
|
4655
4633
|
4194304 && ge !== (ge = /*$_*/
|
|
4656
4634
|
v[22]("loginButton") + "") && re(Se, ge), P[0] & /*isFormDataInvalid*/
|
|
4657
4635
|
1048576 && (Q.disabled = /*isFormDataInvalid*/
|
|
@@ -4664,7 +4642,7 @@ function Ko(e) {
|
|
|
4664
4642
|
}
|
|
4665
4643
|
};
|
|
4666
4644
|
}
|
|
4667
|
-
function
|
|
4645
|
+
function Qo(e) {
|
|
4668
4646
|
let t;
|
|
4669
4647
|
return {
|
|
4670
4648
|
c() {
|
|
@@ -4758,7 +4736,7 @@ function es(e) {
|
|
|
4758
4736
|
}
|
|
4759
4737
|
};
|
|
4760
4738
|
}
|
|
4761
|
-
function
|
|
4739
|
+
function wr(e) {
|
|
4762
4740
|
let t, r = (
|
|
4763
4741
|
/*$_*/
|
|
4764
4742
|
e[22]("loginUsernameError") + ""
|
|
@@ -4780,7 +4758,7 @@ function Pr(e) {
|
|
|
4780
4758
|
}
|
|
4781
4759
|
};
|
|
4782
4760
|
}
|
|
4783
|
-
function
|
|
4761
|
+
function Yo(e) {
|
|
4784
4762
|
let t, r, n, i, o, s, a, u, l;
|
|
4785
4763
|
return {
|
|
4786
4764
|
c() {
|
|
@@ -4800,7 +4778,7 @@ function ts(e) {
|
|
|
4800
4778
|
}
|
|
4801
4779
|
};
|
|
4802
4780
|
}
|
|
4803
|
-
function
|
|
4781
|
+
function Ko(e) {
|
|
4804
4782
|
let t, r, n, i, o, s, a, u, l, c, f, d, b, y, g;
|
|
4805
4783
|
return {
|
|
4806
4784
|
c() {
|
|
@@ -4820,7 +4798,7 @@ function rs(e) {
|
|
|
4820
4798
|
}
|
|
4821
4799
|
};
|
|
4822
4800
|
}
|
|
4823
|
-
function
|
|
4801
|
+
function xr(e) {
|
|
4824
4802
|
let t, r = (
|
|
4825
4803
|
/*$_*/
|
|
4826
4804
|
e[22]("loginPasswordError") + ""
|
|
@@ -4842,7 +4820,7 @@ function Tr(e) {
|
|
|
4842
4820
|
}
|
|
4843
4821
|
};
|
|
4844
4822
|
}
|
|
4845
|
-
function
|
|
4823
|
+
function Sr(e) {
|
|
4846
4824
|
let t, r = (
|
|
4847
4825
|
/*$_*/
|
|
4848
4826
|
e[22]("loginSimplePasswordError") + ""
|
|
@@ -4864,7 +4842,7 @@ function Hr(e) {
|
|
|
4864
4842
|
}
|
|
4865
4843
|
};
|
|
4866
4844
|
}
|
|
4867
|
-
function
|
|
4845
|
+
function Pr(e) {
|
|
4868
4846
|
let t, r;
|
|
4869
4847
|
return {
|
|
4870
4848
|
c() {
|
|
@@ -4889,21 +4867,21 @@ function Br(e) {
|
|
|
4889
4867
|
}
|
|
4890
4868
|
};
|
|
4891
4869
|
}
|
|
4892
|
-
function
|
|
4870
|
+
function es(e) {
|
|
4893
4871
|
let t, r, n, i, o, s = (
|
|
4894
4872
|
/*captchakey*/
|
|
4895
|
-
e[1] &&
|
|
4873
|
+
e[1] && Er(e)
|
|
4896
4874
|
);
|
|
4897
4875
|
function a(c, f) {
|
|
4898
4876
|
return (
|
|
4899
4877
|
/*isLoading*/
|
|
4900
|
-
c[17] ?
|
|
4878
|
+
c[17] ? qo : Zo
|
|
4901
4879
|
);
|
|
4902
4880
|
}
|
|
4903
4881
|
let u = a(e), l = u(e);
|
|
4904
4882
|
return {
|
|
4905
4883
|
c() {
|
|
4906
|
-
s && s.c(), t =
|
|
4884
|
+
s && s.c(), t = _n(), r = j(), n = x("div"), i = j(), o = x("div"), l.c(), h(n, "class", "g-recaptcha"), h(
|
|
4907
4885
|
n,
|
|
4908
4886
|
"data-sitekey",
|
|
4909
4887
|
/*captchakey*/
|
|
@@ -4915,7 +4893,7 @@ function ns(e) {
|
|
|
4915
4893
|
},
|
|
4916
4894
|
p(c, f) {
|
|
4917
4895
|
/*captchakey*/
|
|
4918
|
-
c[1] ? s ? s.p(c, f) : (s =
|
|
4896
|
+
c[1] ? s ? s.p(c, f) : (s = Er(c), s.c(), s.m(t.parentNode, t)) : s && (s.d(1), s = null), f[0] & /*captchakey*/
|
|
4919
4897
|
2 && h(
|
|
4920
4898
|
n,
|
|
4921
4899
|
"data-sitekey",
|
|
@@ -4930,27 +4908,27 @@ function ns(e) {
|
|
|
4930
4908
|
}
|
|
4931
4909
|
};
|
|
4932
4910
|
}
|
|
4933
|
-
let
|
|
4934
|
-
function
|
|
4911
|
+
let ts = "Please use this code {0} to activate your account";
|
|
4912
|
+
function rs(e, t, r) {
|
|
4935
4913
|
let n;
|
|
4936
|
-
|
|
4914
|
+
gn(e, ko, (p) => r(22, n = p));
|
|
4937
4915
|
let { endpoint: i = "" } = t, { captchakey: o = "" } = t, { lang: s = "en" } = t, { smsverification: a = "false" } = t, { simplepasswordvalidation: u = "false" } = t, { mbsource: l } = t, { clientstyling: c = "" } = t, { clientstylingurl: f = "" } = t, { translationurl: d = "" } = t, { savecredentials: b = "" } = t, y, g, S = !1, C, z = !1, R = window.navigator.userAgent, U = "", A = "", ne = { username: "", password: "" }, H = !1, oe = !1, fe = "", J = !1, ue, B = !1, ie = !0, X, De = +localStorage.getItem("smsTimer") || 0, qe = Date.now() / 1e3 - De, de = localStorage.getItem("smsValidation") == "true" && qe < 60, me = {
|
|
4938
4916
|
user: /^(?!(?:.*\d){9})(?=(?:.*[a-zA-Z]){4})^[a-zA-Z\d]*$/,
|
|
4939
4917
|
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,
|
|
4940
4918
|
password: /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[^\w\s]).{8,20}$/
|
|
4941
4919
|
};
|
|
4942
|
-
|
|
4920
|
+
zo({ withLocale: "en", translations: {} });
|
|
4943
4921
|
const O = () => {
|
|
4944
4922
|
fetch(d).then((q) => q.json()).then((q) => {
|
|
4945
4923
|
Object.keys(q).forEach((te) => {
|
|
4946
|
-
|
|
4924
|
+
yr(te, q[te]);
|
|
4947
4925
|
});
|
|
4948
4926
|
}).catch((q) => {
|
|
4949
4927
|
console.log(q);
|
|
4950
4928
|
});
|
|
4951
4929
|
};
|
|
4952
|
-
Object.keys(
|
|
4953
|
-
|
|
4930
|
+
Object.keys(_r).forEach((p) => {
|
|
4931
|
+
yr(p, _r[p]);
|
|
4954
4932
|
});
|
|
4955
4933
|
const _e = () => new Promise((p, q) => {
|
|
4956
4934
|
grecaptcha.ready(() => {
|
|
@@ -4999,16 +4977,16 @@ function os(e, t, r) {
|
|
|
4999
4977
|
typeof gtag == "function" && gtag("event", "Login", {
|
|
5000
4978
|
context: "GeneralPlayerLoginRegisterPage"
|
|
5001
4979
|
});
|
|
5002
|
-
}, $e = (
|
|
5003
|
-
let
|
|
4980
|
+
}, $e = (Vt) => et(this, [Vt], function* ({ username: p, password: q, token: te }) {
|
|
4981
|
+
let zt = {
|
|
5004
4982
|
"Content-Type": "application/json",
|
|
5005
4983
|
"g-recaptcha-response": te
|
|
5006
|
-
}, bt = { username: p, password: q },
|
|
4984
|
+
}, bt = { username: p, password: q }, un = {
|
|
5007
4985
|
method: "POST",
|
|
5008
|
-
headers:
|
|
4986
|
+
headers: zt,
|
|
5009
4987
|
body: JSON.stringify(bt)
|
|
5010
4988
|
};
|
|
5011
|
-
fetch(`${i}/v1/player/login/player`,
|
|
4989
|
+
fetch(`${i}/v1/player/login/player`, un).then(($) => ($.status >= 500 && (r(16, fe = "Server might not be responsing"), r(17, J = !1), window.postMessage(
|
|
5012
4990
|
{
|
|
5013
4991
|
type: "WidgetNotification",
|
|
5014
4992
|
data: {
|
|
@@ -5054,11 +5032,11 @@ function os(e, t, r) {
|
|
|
5054
5032
|
window.location.href
|
|
5055
5033
|
);
|
|
5056
5034
|
} catch (je) {
|
|
5057
|
-
let
|
|
5058
|
-
r(16, fe =
|
|
5035
|
+
let Xt = $.error.substring($.error.indexOf("errorMessage") + 13, $.error.length);
|
|
5036
|
+
r(16, fe = Xt), r(17, J = !1), window.postMessage(
|
|
5059
5037
|
{
|
|
5060
5038
|
type: "WidgetNotification",
|
|
5061
|
-
data: { type: "error", message:
|
|
5039
|
+
data: { type: "error", message: Xt }
|
|
5062
5040
|
},
|
|
5063
5041
|
window.location.href
|
|
5064
5042
|
);
|
|
@@ -5075,13 +5053,13 @@ function os(e, t, r) {
|
|
|
5075
5053
|
},
|
|
5076
5054
|
body: JSON.stringify({
|
|
5077
5055
|
userId: q,
|
|
5078
|
-
messageTemplate:
|
|
5056
|
+
messageTemplate: ts,
|
|
5079
5057
|
destination: p
|
|
5080
5058
|
})
|
|
5081
|
-
}),
|
|
5059
|
+
}), Vt = yield te.json();
|
|
5082
5060
|
if (te.ok) {
|
|
5083
|
-
r(9, g =
|
|
5084
|
-
let
|
|
5061
|
+
r(9, g = Vt.id);
|
|
5062
|
+
let zt = Vt.maxValidationAttempts;
|
|
5085
5063
|
S = !1;
|
|
5086
5064
|
} else
|
|
5087
5065
|
throw S = !0, new Error("Failed to fetch");
|
|
@@ -5089,9 +5067,9 @@ function os(e, t, r) {
|
|
|
5089
5067
|
S = !0, console.error(te);
|
|
5090
5068
|
}
|
|
5091
5069
|
}), F = () => {
|
|
5092
|
-
|
|
5070
|
+
Xo(s);
|
|
5093
5071
|
};
|
|
5094
|
-
|
|
5072
|
+
Sn(() => (window.addEventListener("message", ve, !1), window.postMessage({ type: "LoginRegisterModalActive" }, window.location.href), r(11, z = Go(R)), () => {
|
|
5095
5073
|
window.removeEventListener("message", ve);
|
|
5096
5074
|
}));
|
|
5097
5075
|
const Ke = () => ke();
|
|
@@ -5107,7 +5085,7 @@ function os(e, t, r) {
|
|
|
5107
5085
|
});
|
|
5108
5086
|
}
|
|
5109
5087
|
const k = () => we(), G = () => Ee(), v = (p) => Q(p), P = (p) => xe(p);
|
|
5110
|
-
function
|
|
5088
|
+
function ln(p) {
|
|
5111
5089
|
ut[p ? "unshift" : "push"](() => {
|
|
5112
5090
|
X = p, r(7, X);
|
|
5113
5091
|
});
|
|
@@ -5118,9 +5096,9 @@ function os(e, t, r) {
|
|
|
5118
5096
|
e.$$.dirty[0] & /*endpoint, lang*/
|
|
5119
5097
|
1073741825 && i && s && F(), e.$$.dirty[0] & /*simplepasswordvalidation*/
|
|
5120
5098
|
4 && u && Je(), e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
5121
|
-
144 && c && X &&
|
|
5122
|
-
160 && f && X &&
|
|
5123
|
-
136 && l && X &&
|
|
5099
|
+
144 && c && X && $o(X, c), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
5100
|
+
160 && f && X && jo(X, f), e.$$.dirty[0] & /*mbsource, customStylingContainer*/
|
|
5101
|
+
136 && l && X && Vo(X, `${l}.Style`), e.$$.dirty[1] & /*translationurl*/
|
|
5124
5102
|
2 && d && O();
|
|
5125
5103
|
}, [
|
|
5126
5104
|
i,
|
|
@@ -5164,17 +5142,17 @@ function os(e, t, r) {
|
|
|
5164
5142
|
G,
|
|
5165
5143
|
v,
|
|
5166
5144
|
P,
|
|
5167
|
-
|
|
5145
|
+
ln
|
|
5168
5146
|
];
|
|
5169
5147
|
}
|
|
5170
|
-
class
|
|
5148
|
+
class an extends Rn {
|
|
5171
5149
|
constructor(t) {
|
|
5172
|
-
super(),
|
|
5150
|
+
super(), Mn(
|
|
5173
5151
|
this,
|
|
5174
5152
|
t,
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5153
|
+
rs,
|
|
5154
|
+
es,
|
|
5155
|
+
Hr,
|
|
5178
5156
|
{
|
|
5179
5157
|
endpoint: 0,
|
|
5180
5158
|
captchakey: 1,
|
|
@@ -5187,7 +5165,7 @@ class hn extends kn {
|
|
|
5187
5165
|
translationurl: 32,
|
|
5188
5166
|
savecredentials: 6
|
|
5189
5167
|
},
|
|
5190
|
-
|
|
5168
|
+
Wo,
|
|
5191
5169
|
[-1, -1]
|
|
5192
5170
|
);
|
|
5193
5171
|
}
|
|
@@ -5252,39 +5230,39 @@ class hn extends kn {
|
|
|
5252
5230
|
this.$$set({ savecredentials: t }), ee();
|
|
5253
5231
|
}
|
|
5254
5232
|
}
|
|
5255
|
-
|
|
5256
|
-
const
|
|
5233
|
+
Nn(an, { endpoint: {}, captchakey: {}, lang: {}, smsverification: {}, simplepasswordvalidation: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, savecredentials: {} }, [], [], !0);
|
|
5234
|
+
const is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5257
5235
|
__proto__: null,
|
|
5258
|
-
default:
|
|
5236
|
+
default: an
|
|
5259
5237
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5260
5238
|
export {
|
|
5261
5239
|
he as $,
|
|
5262
|
-
|
|
5263
|
-
|
|
5240
|
+
is as G,
|
|
5241
|
+
Rn as S,
|
|
5264
5242
|
Ue as a,
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5243
|
+
tn as b,
|
|
5244
|
+
bn as c,
|
|
5245
|
+
I as d,
|
|
5246
|
+
re as e,
|
|
5269
5247
|
ee as f,
|
|
5270
|
-
|
|
5248
|
+
rt as g,
|
|
5271
5249
|
h,
|
|
5272
|
-
|
|
5250
|
+
Mn as i,
|
|
5273
5251
|
M as j,
|
|
5274
5252
|
m as k,
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5253
|
+
se as l,
|
|
5254
|
+
x as m,
|
|
5255
|
+
Z as n,
|
|
5256
|
+
j as o,
|
|
5257
|
+
gn as p,
|
|
5258
|
+
Sn as q,
|
|
5281
5259
|
Ne as r,
|
|
5282
|
-
|
|
5260
|
+
Hr as s,
|
|
5283
5261
|
N as t,
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5262
|
+
ut as u,
|
|
5263
|
+
$o as v,
|
|
5264
|
+
jo as w,
|
|
5265
|
+
Vo as x,
|
|
5266
|
+
Nn as y,
|
|
5267
|
+
ko as z
|
|
5290
5268
|
};
|