@everymatrix/general-player-sms-verification-form 1.54.12 → 1.55.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/{GeneralPlayerSmsVerificationForm-3zGohhSt.js → GeneralPlayerSmsVerificationForm-Ba2loy8y.js} +344 -342
- package/components/{GeneralPlayerSmsVerificationForm-CNEhQ6hn.js → GeneralPlayerSmsVerificationForm-Bocty56w.js} +333 -331
- package/components/GeneralPlayerSmsVerificationForm-CFar80th.cjs +3 -0
- package/es2015/general-player-sms-verification-form.cjs +1 -1
- package/es2015/general-player-sms-verification-form.js +1 -1
- package/esnext/general-player-sms-verification-form.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerSmsVerificationForm-DyJ0tzSZ.cjs +0 -3
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
function $() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function yt(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Ye() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
9
|
function oe(e) {
|
|
10
|
-
e.forEach(
|
|
10
|
+
e.forEach(yt);
|
|
11
11
|
}
|
|
12
12
|
function We(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function Et(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Wt(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function xt(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
@@ -27,20 +27,20 @@ function yt(e, ...t) {
|
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function Zt(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(xt(t, r));
|
|
32
32
|
}
|
|
33
33
|
function E(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function Jt(e, t, r) {
|
|
37
|
+
const n = Qt(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
39
|
const i = M("style");
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
i.id = t, i.textContent = r, qt(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Qt(e) {
|
|
44
44
|
if (!e) return document;
|
|
45
45
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
46
46
|
return t && /** @type {ShadowRoot} */
|
|
@@ -49,7 +49,7 @@ function Zt(e) {
|
|
|
49
49
|
t
|
|
50
50
|
) : e.ownerDocument;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function qt(e, t) {
|
|
53
53
|
return E(
|
|
54
54
|
/** @type {Document} */
|
|
55
55
|
e.head || e,
|
|
@@ -77,17 +77,17 @@ function be(e, t, r, n) {
|
|
|
77
77
|
function A(e, t, r) {
|
|
78
78
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function Yt(e) {
|
|
81
81
|
return Array.from(e.childNodes);
|
|
82
82
|
}
|
|
83
83
|
function F(e, t) {
|
|
84
84
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
85
85
|
t);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Ke(e, t) {
|
|
88
88
|
e.value = t ?? "";
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Kt(e) {
|
|
91
91
|
const t = {};
|
|
92
92
|
return e.childNodes.forEach(
|
|
93
93
|
/** @param {Element} node */
|
|
@@ -100,19 +100,19 @@ let ce;
|
|
|
100
100
|
function he(e) {
|
|
101
101
|
ce = e;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function er() {
|
|
104
104
|
if (!ce) throw new Error("Function called outside component initialization");
|
|
105
105
|
return ce;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
|
|
107
|
+
function tr(e) {
|
|
108
|
+
er().$$.on_mount.push(e);
|
|
109
109
|
}
|
|
110
110
|
const K = [], Le = [];
|
|
111
111
|
let ee = [];
|
|
112
|
-
const
|
|
112
|
+
const et = [], rr = /* @__PURE__ */ Promise.resolve();
|
|
113
113
|
let Re = !1;
|
|
114
|
-
function
|
|
115
|
-
Re || (Re = !0,
|
|
114
|
+
function nr() {
|
|
115
|
+
Re || (Re = !0, rr.then(D));
|
|
116
116
|
}
|
|
117
117
|
function $e(e) {
|
|
118
118
|
ee.push(e);
|
|
@@ -127,7 +127,7 @@ function D() {
|
|
|
127
127
|
try {
|
|
128
128
|
for (; q < K.length; ) {
|
|
129
129
|
const t = K[q];
|
|
130
|
-
q++, he(t),
|
|
130
|
+
q++, he(t), ir(t.$$);
|
|
131
131
|
}
|
|
132
132
|
} catch (t) {
|
|
133
133
|
throw K.length = 0, q = 0, t;
|
|
@@ -139,40 +139,40 @@ function D() {
|
|
|
139
139
|
}
|
|
140
140
|
ee.length = 0;
|
|
141
141
|
} while (K.length);
|
|
142
|
-
for (;
|
|
143
|
-
|
|
142
|
+
for (; et.length; )
|
|
143
|
+
et.pop()();
|
|
144
144
|
Re = !1, we.clear(), he(e);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function ir(e) {
|
|
147
147
|
if (e.fragment !== null) {
|
|
148
148
|
e.update(), oe(e.before_update);
|
|
149
149
|
const t = e.dirty;
|
|
150
150
|
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach($e);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function or(e) {
|
|
154
154
|
const t = [], r = [];
|
|
155
155
|
ee.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), ee = t;
|
|
156
156
|
}
|
|
157
|
-
const
|
|
158
|
-
function
|
|
159
|
-
e && e.i && (
|
|
157
|
+
const sr = /* @__PURE__ */ new Set();
|
|
158
|
+
function ar(e, t) {
|
|
159
|
+
e && e.i && (sr.delete(e), e.i(t));
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function ur(e, t, r) {
|
|
162
162
|
const { fragment: n, after_update: i } = e.$$;
|
|
163
163
|
n && n.m(t, r), $e(() => {
|
|
164
|
-
const o = e.$$.on_mount.map(
|
|
164
|
+
const o = e.$$.on_mount.map(yt).filter(We);
|
|
165
165
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : oe(o), e.$$.on_mount = [];
|
|
166
166
|
}), i.forEach($e);
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function lr(e, t) {
|
|
169
169
|
const r = e.$$;
|
|
170
|
-
r.fragment !== null && (
|
|
170
|
+
r.fragment !== null && (or(r.after_update), oe(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
171
171
|
}
|
|
172
|
-
function
|
|
173
|
-
e.$$.dirty[0] === -1 && (K.push(e),
|
|
172
|
+
function hr(e, t) {
|
|
173
|
+
e.$$.dirty[0] === -1 && (K.push(e), nr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function cr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
176
176
|
const h = ce;
|
|
177
177
|
he(e);
|
|
178
178
|
const u = e.$$ = {
|
|
@@ -182,7 +182,7 @@ function lr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
182
182
|
props: o,
|
|
183
183
|
update: $,
|
|
184
184
|
not_equal: i,
|
|
185
|
-
bound:
|
|
185
|
+
bound: Ye(),
|
|
186
186
|
// lifecycle
|
|
187
187
|
on_mount: [],
|
|
188
188
|
on_destroy: [],
|
|
@@ -191,7 +191,7 @@ function lr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
191
191
|
after_update: [],
|
|
192
192
|
context: new Map(t.context || (h ? h.$$.context : [])),
|
|
193
193
|
// everything else
|
|
194
|
-
callbacks:
|
|
194
|
+
callbacks: Ye(),
|
|
195
195
|
dirty: s,
|
|
196
196
|
skip_bound: !1,
|
|
197
197
|
root: t.target || h.$$.root
|
|
@@ -200,19 +200,19 @@ function lr(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
200
200
|
let l = !1;
|
|
201
201
|
if (u.ctx = r ? r(e, t.props || {}, (f, d, ...b) => {
|
|
202
202
|
const v = b.length ? b[0] : d;
|
|
203
|
-
return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), l &&
|
|
203
|
+
return u.ctx && i(u.ctx[f], u.ctx[f] = v) && (!u.skip_bound && u.bound[f] && u.bound[f](v), l && hr(e, f)), d;
|
|
204
204
|
}) : [], u.update(), l = !0, oe(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
|
|
205
205
|
if (t.hydrate) {
|
|
206
|
-
const f =
|
|
206
|
+
const f = Yt(t.target);
|
|
207
207
|
u.fragment && u.fragment.l(f), f.forEach(k);
|
|
208
208
|
} else
|
|
209
209
|
u.fragment && u.fragment.c();
|
|
210
|
-
t.intro &&
|
|
210
|
+
t.intro && ar(e.$$.fragment), ur(e, t.target, t.anchor), D();
|
|
211
211
|
}
|
|
212
212
|
he(h);
|
|
213
213
|
}
|
|
214
|
-
let
|
|
215
|
-
typeof HTMLElement == "function" && (
|
|
214
|
+
let _t;
|
|
215
|
+
typeof HTMLElement == "function" && (_t = class extends HTMLElement {
|
|
216
216
|
/** The Svelte component constructor */
|
|
217
217
|
$$ctor;
|
|
218
218
|
/** Slots */
|
|
@@ -271,7 +271,7 @@ typeof HTMLElement == "function" && (Et = class extends HTMLElement {
|
|
|
271
271
|
};
|
|
272
272
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
273
273
|
return;
|
|
274
|
-
const t = {}, r =
|
|
274
|
+
const t = {}, r = Kt(this);
|
|
275
275
|
for (const i of this.$$s)
|
|
276
276
|
i in r && (t[i] = [e(i)]);
|
|
277
277
|
for (const i of this.attributes) {
|
|
@@ -358,8 +358,8 @@ function ve(e, t, r, n) {
|
|
|
358
358
|
return t;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
362
|
-
let a = class extends
|
|
361
|
+
function fr(e, t, r, n, i, o) {
|
|
362
|
+
let a = class extends _t {
|
|
363
363
|
constructor() {
|
|
364
364
|
super(e, r, i), this.$$p_d = t;
|
|
365
365
|
}
|
|
@@ -387,7 +387,7 @@ function hr(e, t, r, n, i, o) {
|
|
|
387
387
|
}), e.element = /** @type {any} */
|
|
388
388
|
a, a;
|
|
389
389
|
}
|
|
390
|
-
class
|
|
390
|
+
class dr {
|
|
391
391
|
/**
|
|
392
392
|
* ### PRIVATE API
|
|
393
393
|
*
|
|
@@ -406,7 +406,7 @@ class cr {
|
|
|
406
406
|
$$set = void 0;
|
|
407
407
|
/** @returns {void} */
|
|
408
408
|
$destroy() {
|
|
409
|
-
|
|
409
|
+
lr(this, 1), this.$destroy = $;
|
|
410
410
|
}
|
|
411
411
|
/**
|
|
412
412
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -428,13 +428,13 @@ class cr {
|
|
|
428
428
|
* @returns {void}
|
|
429
429
|
*/
|
|
430
430
|
$set(t) {
|
|
431
|
-
this.$$set && !
|
|
431
|
+
this.$$set && !Wt(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
|
-
const
|
|
435
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
434
|
+
const mr = "4";
|
|
435
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(mr);
|
|
436
436
|
const Y = [];
|
|
437
|
-
function
|
|
437
|
+
function pr(e, t) {
|
|
438
438
|
return {
|
|
439
439
|
subscribe: Se(e, t).subscribe
|
|
440
440
|
};
|
|
@@ -443,7 +443,7 @@ function Se(e, t = $) {
|
|
|
443
443
|
let r;
|
|
444
444
|
const n = /* @__PURE__ */ new Set();
|
|
445
445
|
function i(s) {
|
|
446
|
-
if (
|
|
446
|
+
if (Et(e, s) && (e = s, r)) {
|
|
447
447
|
const h = !Y.length;
|
|
448
448
|
for (const u of n)
|
|
449
449
|
u[1](), Y.push(u, e);
|
|
@@ -470,7 +470,7 @@ function se(e, t, r) {
|
|
|
470
470
|
if (!i.every(Boolean))
|
|
471
471
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
472
472
|
const o = t.length < 2;
|
|
473
|
-
return
|
|
473
|
+
return pr(r, (a, s) => {
|
|
474
474
|
let h = !1;
|
|
475
475
|
const u = [];
|
|
476
476
|
let l = 0, f = $;
|
|
@@ -481,7 +481,7 @@ function se(e, t, r) {
|
|
|
481
481
|
const v = t(n ? u[0] : u, a, s);
|
|
482
482
|
o ? a(v) : f = We(v) ? v : $;
|
|
483
483
|
}, b = i.map(
|
|
484
|
-
(v, _) =>
|
|
484
|
+
(v, _) => xt(
|
|
485
485
|
v,
|
|
486
486
|
(S) => {
|
|
487
487
|
u[_] = S, l &= ~(1 << _), h && d();
|
|
@@ -496,70 +496,70 @@ function se(e, t, r) {
|
|
|
496
496
|
};
|
|
497
497
|
});
|
|
498
498
|
}
|
|
499
|
-
function
|
|
499
|
+
function br(e) {
|
|
500
500
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
501
501
|
}
|
|
502
|
-
var
|
|
503
|
-
return
|
|
502
|
+
var gr = function(t) {
|
|
503
|
+
return vr(t) && !yr(t);
|
|
504
504
|
};
|
|
505
|
-
function
|
|
505
|
+
function vr(e) {
|
|
506
506
|
return !!e && typeof e == "object";
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function yr(e) {
|
|
509
509
|
var t = Object.prototype.toString.call(e);
|
|
510
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
510
|
+
return t === "[object RegExp]" || t === "[object Date]" || _r(e);
|
|
511
511
|
}
|
|
512
|
-
var
|
|
513
|
-
function
|
|
514
|
-
return e.$$typeof ===
|
|
512
|
+
var Er = typeof Symbol == "function" && Symbol.for, xr = Er ? Symbol.for("react.element") : 60103;
|
|
513
|
+
function _r(e) {
|
|
514
|
+
return e.$$typeof === xr;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
516
|
+
function Sr(e) {
|
|
517
517
|
return Array.isArray(e) ? [] : {};
|
|
518
518
|
}
|
|
519
519
|
function fe(e, t) {
|
|
520
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? te(
|
|
520
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? te(Sr(e), e, t) : e;
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Tr(e, t, r) {
|
|
523
523
|
return e.concat(t).map(function(n) {
|
|
524
524
|
return fe(n, r);
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
|
-
function
|
|
527
|
+
function Hr(e, t) {
|
|
528
528
|
if (!t.customMerge)
|
|
529
529
|
return te;
|
|
530
530
|
var r = t.customMerge(e);
|
|
531
531
|
return typeof r == "function" ? r : te;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Ar(e) {
|
|
534
534
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
535
535
|
return Object.propertyIsEnumerable.call(e, t);
|
|
536
536
|
}) : [];
|
|
537
537
|
}
|
|
538
|
-
function
|
|
539
|
-
return Object.keys(e).concat(
|
|
538
|
+
function tt(e) {
|
|
539
|
+
return Object.keys(e).concat(Ar(e));
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function St(e, t) {
|
|
542
542
|
try {
|
|
543
543
|
return t in e;
|
|
544
544
|
} catch {
|
|
545
545
|
return !1;
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
return
|
|
548
|
+
function Br(e, t) {
|
|
549
|
+
return St(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function wr(e, t, r) {
|
|
552
552
|
var n = {};
|
|
553
|
-
return r.isMergeableObject(e) &&
|
|
553
|
+
return r.isMergeableObject(e) && tt(e).forEach(function(i) {
|
|
554
554
|
n[i] = fe(e[i], r);
|
|
555
|
-
}),
|
|
556
|
-
|
|
555
|
+
}), tt(t).forEach(function(i) {
|
|
556
|
+
Br(e, i) || (St(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hr(i, r)(e[i], t[i], r) : n[i] = fe(t[i], r));
|
|
557
557
|
}), n;
|
|
558
558
|
}
|
|
559
559
|
function te(e, t, r) {
|
|
560
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
560
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Tr, r.isMergeableObject = r.isMergeableObject || gr, r.cloneUnlessOtherwiseSpecified = fe;
|
|
561
561
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
562
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
562
|
+
return o ? n ? r.arrayMerge(e, t, r) : wr(e, t, r) : fe(t, r);
|
|
563
563
|
}
|
|
564
564
|
te.all = function(t, r) {
|
|
565
565
|
if (!Array.isArray(t))
|
|
@@ -568,8 +568,8 @@ te.all = function(t, r) {
|
|
|
568
568
|
return te(n, i, r);
|
|
569
569
|
}, {});
|
|
570
570
|
};
|
|
571
|
-
var
|
|
572
|
-
const
|
|
571
|
+
var Pr = te, Cr = Pr;
|
|
572
|
+
const Ir = /* @__PURE__ */ br(Cr);
|
|
573
573
|
var Ue = function(e, t) {
|
|
574
574
|
return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
575
575
|
r.__proto__ = n;
|
|
@@ -595,7 +595,7 @@ var g = function() {
|
|
|
595
595
|
return t;
|
|
596
596
|
}, g.apply(this, arguments);
|
|
597
597
|
};
|
|
598
|
-
function
|
|
598
|
+
function Nr(e, t) {
|
|
599
599
|
var r = {};
|
|
600
600
|
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
601
601
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -609,53 +609,55 @@ function Pe(e, t, r) {
|
|
|
609
609
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
610
610
|
}
|
|
611
611
|
function Ce(e, t) {
|
|
612
|
-
var r = t && t.cache ? t.cache :
|
|
612
|
+
var r = t && t.cache ? t.cache : Ur, n = t && t.serializer ? t.serializer : $r, i = t && t.strategy ? t.strategy : Mr;
|
|
613
613
|
return i(e, {
|
|
614
614
|
cache: r,
|
|
615
615
|
serializer: n
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
|
-
function
|
|
618
|
+
function Or(e) {
|
|
619
619
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
var i =
|
|
621
|
+
function Tt(e, t, r, n) {
|
|
622
|
+
var i = Or(n) ? n : r(n), o = t.get(i);
|
|
623
623
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
624
624
|
}
|
|
625
|
-
function
|
|
625
|
+
function Ht(e, t, r) {
|
|
626
626
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
627
627
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Ze(e, t, r, n, i) {
|
|
630
630
|
return r.bind(t, e, n, i);
|
|
631
631
|
}
|
|
632
|
-
function Or(e, t) {
|
|
633
|
-
var r = e.length === 1 ? Nr : _t;
|
|
634
|
-
return St(e, this, r, t.cache.create(), t.serializer);
|
|
635
|
-
}
|
|
636
632
|
function Mr(e, t) {
|
|
637
|
-
|
|
633
|
+
var r = e.length === 1 ? Tt : Ht;
|
|
634
|
+
return Ze(e, this, r, t.cache.create(), t.serializer);
|
|
635
|
+
}
|
|
636
|
+
function Lr(e, t) {
|
|
637
|
+
return Ze(e, this, Ht, t.cache.create(), t.serializer);
|
|
638
|
+
}
|
|
639
|
+
function Rr(e, t) {
|
|
640
|
+
return Ze(e, this, Tt, t.cache.create(), t.serializer);
|
|
638
641
|
}
|
|
639
|
-
var
|
|
642
|
+
var $r = function() {
|
|
640
643
|
return JSON.stringify(arguments);
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
}()
|
|
653
|
-
), $r = {
|
|
644
|
+
};
|
|
645
|
+
function Je() {
|
|
646
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
647
|
+
}
|
|
648
|
+
Je.prototype.get = function(e) {
|
|
649
|
+
return this.cache[e];
|
|
650
|
+
};
|
|
651
|
+
Je.prototype.set = function(e, t) {
|
|
652
|
+
this.cache[e] = t;
|
|
653
|
+
};
|
|
654
|
+
var Ur = {
|
|
654
655
|
create: function() {
|
|
655
|
-
return new
|
|
656
|
+
return new Je();
|
|
656
657
|
}
|
|
657
658
|
}, Ie = {
|
|
658
|
-
variadic:
|
|
659
|
+
variadic: Lr,
|
|
660
|
+
monadic: Rr
|
|
659
661
|
}, m;
|
|
660
662
|
(function(e) {
|
|
661
663
|
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";
|
|
@@ -668,43 +670,43 @@ var re;
|
|
|
668
670
|
(function(e) {
|
|
669
671
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
670
672
|
})(re || (re = {}));
|
|
671
|
-
function
|
|
673
|
+
function rt(e) {
|
|
672
674
|
return e.type === x.literal;
|
|
673
675
|
}
|
|
674
|
-
function
|
|
676
|
+
function Dr(e) {
|
|
675
677
|
return e.type === x.argument;
|
|
676
678
|
}
|
|
677
|
-
function
|
|
679
|
+
function At(e) {
|
|
678
680
|
return e.type === x.number;
|
|
679
681
|
}
|
|
680
|
-
function
|
|
682
|
+
function Bt(e) {
|
|
681
683
|
return e.type === x.date;
|
|
682
684
|
}
|
|
683
|
-
function
|
|
685
|
+
function wt(e) {
|
|
684
686
|
return e.type === x.time;
|
|
685
687
|
}
|
|
686
|
-
function
|
|
688
|
+
function Pt(e) {
|
|
687
689
|
return e.type === x.select;
|
|
688
690
|
}
|
|
689
|
-
function
|
|
691
|
+
function Ct(e) {
|
|
690
692
|
return e.type === x.plural;
|
|
691
693
|
}
|
|
692
|
-
function
|
|
694
|
+
function Fr(e) {
|
|
693
695
|
return e.type === x.pound;
|
|
694
696
|
}
|
|
695
|
-
function
|
|
697
|
+
function It(e) {
|
|
696
698
|
return e.type === x.tag;
|
|
697
699
|
}
|
|
698
|
-
function
|
|
700
|
+
function Nt(e) {
|
|
699
701
|
return !!(e && typeof e == "object" && e.type === re.number);
|
|
700
702
|
}
|
|
701
703
|
function De(e) {
|
|
702
704
|
return !!(e && typeof e == "object" && e.type === re.dateTime);
|
|
703
705
|
}
|
|
704
|
-
var
|
|
705
|
-
function
|
|
706
|
+
var Ot = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Gr = /(?:[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;
|
|
707
|
+
function kr(e) {
|
|
706
708
|
var t = {};
|
|
707
|
-
return e.replace(
|
|
709
|
+
return e.replace(Gr, function(r) {
|
|
708
710
|
var n = r.length;
|
|
709
711
|
switch (r[0]) {
|
|
710
712
|
case "G":
|
|
@@ -793,11 +795,11 @@ function Gr(e) {
|
|
|
793
795
|
return "";
|
|
794
796
|
}), t;
|
|
795
797
|
}
|
|
796
|
-
var
|
|
797
|
-
function
|
|
798
|
+
var jr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
799
|
+
function Vr(e) {
|
|
798
800
|
if (e.length === 0)
|
|
799
801
|
throw new Error("Number skeleton cannot be empty");
|
|
800
|
-
for (var t = e.split(
|
|
802
|
+
for (var t = e.split(jr).filter(function(d) {
|
|
801
803
|
return d.length > 0;
|
|
802
804
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
803
805
|
var o = i[n], a = o.split("/");
|
|
@@ -812,17 +814,17 @@ function jr(e) {
|
|
|
812
814
|
}
|
|
813
815
|
return r;
|
|
814
816
|
}
|
|
815
|
-
function
|
|
817
|
+
function Xr(e) {
|
|
816
818
|
return e.replace(/^(.*?)-/, "");
|
|
817
819
|
}
|
|
818
|
-
var
|
|
819
|
-
function
|
|
820
|
+
var nt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, Mt = /^(@+)?(\+|#+)?[rs]?$/g, zr = /(\*)(0+)|(#+)(0+)|(0+)/g, Lt = /^(0+)$/;
|
|
821
|
+
function it(e) {
|
|
820
822
|
var t = {};
|
|
821
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
823
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(Mt, function(r, n, i) {
|
|
822
824
|
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)), "";
|
|
823
825
|
}), t;
|
|
824
826
|
}
|
|
825
|
-
function
|
|
827
|
+
function Rt(e) {
|
|
826
828
|
switch (e) {
|
|
827
829
|
case "sign-auto":
|
|
828
830
|
return {
|
|
@@ -862,7 +864,7 @@ function Mt(e) {
|
|
|
862
864
|
};
|
|
863
865
|
}
|
|
864
866
|
}
|
|
865
|
-
function
|
|
867
|
+
function Wr(e) {
|
|
866
868
|
var t;
|
|
867
869
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
868
870
|
notation: "engineering"
|
|
@@ -870,17 +872,17 @@ function zr(e) {
|
|
|
870
872
|
notation: "scientific"
|
|
871
873
|
}, e = e.slice(1)), t) {
|
|
872
874
|
var r = e.slice(0, 2);
|
|
873
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
875
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Lt.test(e))
|
|
874
876
|
throw new Error("Malformed concise eng/scientific notation");
|
|
875
877
|
t.minimumIntegerDigits = e.length;
|
|
876
878
|
}
|
|
877
879
|
return t;
|
|
878
880
|
}
|
|
879
|
-
function
|
|
880
|
-
var t = {}, r =
|
|
881
|
+
function ot(e) {
|
|
882
|
+
var t = {}, r = Rt(e);
|
|
881
883
|
return r || t;
|
|
882
884
|
}
|
|
883
|
-
function
|
|
885
|
+
function Zr(e) {
|
|
884
886
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
885
887
|
var i = n[r];
|
|
886
888
|
switch (i.stem) {
|
|
@@ -904,7 +906,7 @@ function Wr(e) {
|
|
|
904
906
|
continue;
|
|
905
907
|
case "measure-unit":
|
|
906
908
|
case "unit":
|
|
907
|
-
t.style = "unit", t.unit =
|
|
909
|
+
t.style = "unit", t.unit = Xr(i.options[0]);
|
|
908
910
|
continue;
|
|
909
911
|
case "compact-short":
|
|
910
912
|
case "K":
|
|
@@ -916,12 +918,12 @@ function Wr(e) {
|
|
|
916
918
|
continue;
|
|
917
919
|
case "scientific":
|
|
918
920
|
t = g(g(g({}, t), { notation: "scientific" }), i.options.reduce(function(h, u) {
|
|
919
|
-
return g(g({}, h),
|
|
921
|
+
return g(g({}, h), ot(u));
|
|
920
922
|
}, {}));
|
|
921
923
|
continue;
|
|
922
924
|
case "engineering":
|
|
923
925
|
t = g(g(g({}, t), { notation: "engineering" }), i.options.reduce(function(h, u) {
|
|
924
|
-
return g(g({}, h),
|
|
926
|
+
return g(g({}, h), ot(u));
|
|
925
927
|
}, {}));
|
|
926
928
|
continue;
|
|
927
929
|
case "notation-simple":
|
|
@@ -966,7 +968,7 @@ function Wr(e) {
|
|
|
966
968
|
case "integer-width":
|
|
967
969
|
if (i.options.length > 1)
|
|
968
970
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
969
|
-
i.options[0].replace(
|
|
971
|
+
i.options[0].replace(zr, function(h, u, l, f, d, b) {
|
|
970
972
|
if (u)
|
|
971
973
|
t.minimumIntegerDigits = l.length;
|
|
972
974
|
else {
|
|
@@ -979,27 +981,27 @@ function Wr(e) {
|
|
|
979
981
|
});
|
|
980
982
|
continue;
|
|
981
983
|
}
|
|
982
|
-
if (
|
|
984
|
+
if (Lt.test(i.stem)) {
|
|
983
985
|
t.minimumIntegerDigits = i.stem.length;
|
|
984
986
|
continue;
|
|
985
987
|
}
|
|
986
|
-
if (
|
|
988
|
+
if (nt.test(i.stem)) {
|
|
987
989
|
if (i.options.length > 1)
|
|
988
990
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
989
|
-
i.stem.replace(
|
|
991
|
+
i.stem.replace(nt, function(h, u, l, f, d, b) {
|
|
990
992
|
return l === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : d && b ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + b.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
|
|
991
993
|
});
|
|
992
994
|
var o = i.options[0];
|
|
993
|
-
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t),
|
|
995
|
+
o === "w" ? t = g(g({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = g(g({}, t), it(o)));
|
|
994
996
|
continue;
|
|
995
997
|
}
|
|
996
|
-
if (
|
|
997
|
-
t = g(g({}, t),
|
|
998
|
+
if (Mt.test(i.stem)) {
|
|
999
|
+
t = g(g({}, t), it(i.stem));
|
|
998
1000
|
continue;
|
|
999
1001
|
}
|
|
1000
|
-
var a =
|
|
1002
|
+
var a = Rt(i.stem);
|
|
1001
1003
|
a && (t = g(g({}, t), a));
|
|
1002
|
-
var s =
|
|
1004
|
+
var s = Wr(i.stem);
|
|
1003
1005
|
s && (t = g(g({}, t), s));
|
|
1004
1006
|
}
|
|
1005
1007
|
return t;
|
|
@@ -2419,13 +2421,13 @@ var ge = {
|
|
|
2419
2421
|
"h"
|
|
2420
2422
|
]
|
|
2421
2423
|
};
|
|
2422
|
-
function
|
|
2424
|
+
function Jr(e, t) {
|
|
2423
2425
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2424
2426
|
var i = e.charAt(n);
|
|
2425
2427
|
if (i === "j") {
|
|
2426
2428
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2427
2429
|
o++, n++;
|
|
2428
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u =
|
|
2430
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), h = "a", u = Qr(t);
|
|
2429
2431
|
for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
|
|
2430
2432
|
r += h;
|
|
2431
2433
|
for (; a-- > 0; )
|
|
@@ -2434,7 +2436,7 @@ function Zr(e, t) {
|
|
|
2434
2436
|
}
|
|
2435
2437
|
return r;
|
|
2436
2438
|
}
|
|
2437
|
-
function
|
|
2439
|
+
function Qr(e) {
|
|
2438
2440
|
var t = e.hourCycle;
|
|
2439
2441
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2440
2442
|
e.hourCycles && // @ts-ignore
|
|
@@ -2456,20 +2458,20 @@ function Jr(e) {
|
|
|
2456
2458
|
var i = ge[n || ""] || ge[r || ""] || ge["".concat(r, "-001")] || ge["001"];
|
|
2457
2459
|
return i[0];
|
|
2458
2460
|
}
|
|
2459
|
-
var Ne,
|
|
2461
|
+
var Ne, qr = new RegExp("^".concat(Ot.source, "*")), Yr = new RegExp("".concat(Ot.source, "*$"));
|
|
2460
2462
|
function p(e, t) {
|
|
2461
2463
|
return { start: e, end: t };
|
|
2462
2464
|
}
|
|
2463
|
-
var
|
|
2465
|
+
var Kr = !!String.prototype.startsWith && "_a".startsWith("a", 1), en = !!String.fromCodePoint, tn = !!Object.fromEntries, rn = !!String.prototype.codePointAt, nn = !!String.prototype.trimStart, on = !!String.prototype.trimEnd, sn = !!Number.isSafeInteger, an = sn ? Number.isSafeInteger : function(e) {
|
|
2464
2466
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2465
2467
|
}, Fe = !0;
|
|
2466
2468
|
try {
|
|
2467
|
-
var
|
|
2468
|
-
Fe = ((Ne =
|
|
2469
|
+
var un = Ut("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2470
|
+
Fe = ((Ne = un.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
|
|
2469
2471
|
} catch {
|
|
2470
2472
|
Fe = !1;
|
|
2471
2473
|
}
|
|
2472
|
-
var
|
|
2474
|
+
var st = Kr ? (
|
|
2473
2475
|
// Native
|
|
2474
2476
|
function(t, r, n) {
|
|
2475
2477
|
return t.startsWith(r, n);
|
|
@@ -2479,7 +2481,7 @@ var it = Yr ? (
|
|
|
2479
2481
|
function(t, r, n) {
|
|
2480
2482
|
return t.slice(n, n + r.length) === r;
|
|
2481
2483
|
}
|
|
2482
|
-
), Ge =
|
|
2484
|
+
), Ge = en ? String.fromCodePoint : (
|
|
2483
2485
|
// IE11
|
|
2484
2486
|
function() {
|
|
2485
2487
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2491,9 +2493,9 @@ var it = Yr ? (
|
|
|
2491
2493
|
}
|
|
2492
2494
|
return n;
|
|
2493
2495
|
}
|
|
2494
|
-
),
|
|
2496
|
+
), at = (
|
|
2495
2497
|
// native
|
|
2496
|
-
|
|
2498
|
+
tn ? Object.fromEntries : (
|
|
2497
2499
|
// Ponyfill
|
|
2498
2500
|
function(t) {
|
|
2499
2501
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2503,7 +2505,7 @@ var it = Yr ? (
|
|
|
2503
2505
|
return r;
|
|
2504
2506
|
}
|
|
2505
2507
|
)
|
|
2506
|
-
),
|
|
2508
|
+
), $t = rn ? (
|
|
2507
2509
|
// Native
|
|
2508
2510
|
function(t, r) {
|
|
2509
2511
|
return t.codePointAt(r);
|
|
@@ -2517,7 +2519,7 @@ var it = Yr ? (
|
|
|
2517
2519
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2518
2520
|
}
|
|
2519
2521
|
}
|
|
2520
|
-
),
|
|
2522
|
+
), ln = nn ? (
|
|
2521
2523
|
// Native
|
|
2522
2524
|
function(t) {
|
|
2523
2525
|
return t.trimStart();
|
|
@@ -2525,9 +2527,9 @@ var it = Yr ? (
|
|
|
2525
2527
|
) : (
|
|
2526
2528
|
// Ponyfill
|
|
2527
2529
|
function(t) {
|
|
2528
|
-
return t.replace(
|
|
2530
|
+
return t.replace(qr, "");
|
|
2529
2531
|
}
|
|
2530
|
-
),
|
|
2532
|
+
), hn = on ? (
|
|
2531
2533
|
// Native
|
|
2532
2534
|
function(t) {
|
|
2533
2535
|
return t.trimEnd();
|
|
@@ -2535,32 +2537,32 @@ var it = Yr ? (
|
|
|
2535
2537
|
) : (
|
|
2536
2538
|
// Ponyfill
|
|
2537
2539
|
function(t) {
|
|
2538
|
-
return t.replace(
|
|
2540
|
+
return t.replace(Yr, "");
|
|
2539
2541
|
}
|
|
2540
2542
|
);
|
|
2541
|
-
function
|
|
2543
|
+
function Ut(e, t) {
|
|
2542
2544
|
return new RegExp(e, t);
|
|
2543
2545
|
}
|
|
2544
2546
|
var ke;
|
|
2545
2547
|
if (Fe) {
|
|
2546
|
-
var
|
|
2548
|
+
var ut = Ut("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2547
2549
|
ke = function(t, r) {
|
|
2548
2550
|
var n;
|
|
2549
|
-
|
|
2550
|
-
var i =
|
|
2551
|
+
ut.lastIndex = r;
|
|
2552
|
+
var i = ut.exec(t);
|
|
2551
2553
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2552
2554
|
};
|
|
2553
2555
|
} else
|
|
2554
2556
|
ke = function(t, r) {
|
|
2555
2557
|
for (var n = []; ; ) {
|
|
2556
|
-
var i =
|
|
2557
|
-
if (i === void 0 ||
|
|
2558
|
+
var i = $t(t, r);
|
|
2559
|
+
if (i === void 0 || Dt(i) || mn(i))
|
|
2558
2560
|
break;
|
|
2559
2561
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2560
2562
|
}
|
|
2561
2563
|
return Ge.apply(void 0, n);
|
|
2562
2564
|
};
|
|
2563
|
-
var
|
|
2565
|
+
var cn = (
|
|
2564
2566
|
/** @class */
|
|
2565
2567
|
function() {
|
|
2566
2568
|
function e(t, r) {
|
|
@@ -2642,7 +2644,7 @@ var hn = (
|
|
|
2642
2644
|
return this.error(m.INVALID_TAG, p(n, this.clonePosition()));
|
|
2643
2645
|
}, e.prototype.parseTagName = function() {
|
|
2644
2646
|
var t = this.offset();
|
|
2645
|
-
for (this.bump(); !this.isEOF() &&
|
|
2647
|
+
for (this.bump(); !this.isEOF() && dn(this.char()); )
|
|
2646
2648
|
this.bump();
|
|
2647
2649
|
return this.message.slice(t, this.offset());
|
|
2648
2650
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2671,7 +2673,7 @@ var hn = (
|
|
|
2671
2673
|
};
|
|
2672
2674
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2673
2675
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2674
|
-
!
|
|
2676
|
+
!fn(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2675
2677
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2676
2678
|
if (this.isEOF() || this.char() !== 39)
|
|
2677
2679
|
return null;
|
|
@@ -2758,7 +2760,7 @@ var hn = (
|
|
|
2758
2760
|
var l = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
|
|
2759
2761
|
if (f.err)
|
|
2760
2762
|
return f;
|
|
2761
|
-
var d =
|
|
2763
|
+
var d = hn(f.val);
|
|
2762
2764
|
if (d.length === 0)
|
|
2763
2765
|
return this.error(m.EXPECT_ARGUMENT_STYLE, p(this.clonePosition(), this.clonePosition()));
|
|
2764
2766
|
var b = p(l, this.clonePosition());
|
|
@@ -2768,8 +2770,8 @@ var hn = (
|
|
|
2768
2770
|
if (v.err)
|
|
2769
2771
|
return v;
|
|
2770
2772
|
var _ = p(i, this.clonePosition());
|
|
2771
|
-
if (u &&
|
|
2772
|
-
var S =
|
|
2773
|
+
if (u && st(u?.style, "::", 0)) {
|
|
2774
|
+
var S = ln(u.style.slice(2));
|
|
2773
2775
|
if (s === "number") {
|
|
2774
2776
|
var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
|
|
2775
2777
|
return f.err ? f : {
|
|
@@ -2780,12 +2782,12 @@ var hn = (
|
|
|
2780
2782
|
if (S.length === 0)
|
|
2781
2783
|
return this.error(m.EXPECT_DATE_TIME_SKELETON, _);
|
|
2782
2784
|
var R = S;
|
|
2783
|
-
this.locale && (R =
|
|
2785
|
+
this.locale && (R = Jr(S, this.locale));
|
|
2784
2786
|
var d = {
|
|
2785
2787
|
type: re.dateTime,
|
|
2786
2788
|
pattern: R,
|
|
2787
2789
|
location: u.styleLocation,
|
|
2788
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2790
|
+
parsedOptions: this.shouldParseSkeletons ? kr(R) : {}
|
|
2789
2791
|
}, N = s === "date" ? x.date : x.time;
|
|
2790
2792
|
return {
|
|
2791
2793
|
val: { type: N, value: n, location: _, style: d },
|
|
@@ -2831,7 +2833,7 @@ var hn = (
|
|
|
2831
2833
|
val: {
|
|
2832
2834
|
type: x.select,
|
|
2833
2835
|
value: n,
|
|
2834
|
-
options:
|
|
2836
|
+
options: at(U.val),
|
|
2835
2837
|
location: j
|
|
2836
2838
|
},
|
|
2837
2839
|
err: null
|
|
@@ -2839,7 +2841,7 @@ var hn = (
|
|
|
2839
2841
|
val: {
|
|
2840
2842
|
type: x.plural,
|
|
2841
2843
|
value: n,
|
|
2842
|
-
options:
|
|
2844
|
+
options: at(U.val),
|
|
2843
2845
|
offset: I,
|
|
2844
2846
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2845
2847
|
location: j
|
|
@@ -2890,7 +2892,7 @@ var hn = (
|
|
|
2890
2892
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2891
2893
|
var n = [];
|
|
2892
2894
|
try {
|
|
2893
|
-
n =
|
|
2895
|
+
n = Vr(t);
|
|
2894
2896
|
} catch {
|
|
2895
2897
|
return this.error(m.INVALID_NUMBER_SKELETON, r);
|
|
2896
2898
|
}
|
|
@@ -2899,7 +2901,7 @@ var hn = (
|
|
|
2899
2901
|
type: re.number,
|
|
2900
2902
|
tokens: n,
|
|
2901
2903
|
location: r,
|
|
2902
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2904
|
+
parsedOptions: this.shouldParseSkeletons ? Zr(n) : {}
|
|
2903
2905
|
},
|
|
2904
2906
|
err: null
|
|
2905
2907
|
};
|
|
@@ -2947,7 +2949,7 @@ var hn = (
|
|
|
2947
2949
|
break;
|
|
2948
2950
|
}
|
|
2949
2951
|
var h = p(i, this.clonePosition());
|
|
2950
|
-
return o ? (a *= n,
|
|
2952
|
+
return o ? (a *= n, an(a) ? { val: a, err: null } : this.error(r, h)) : this.error(t, h);
|
|
2951
2953
|
}, e.prototype.offset = function() {
|
|
2952
2954
|
return this.position.offset;
|
|
2953
2955
|
}, e.prototype.isEOF = function() {
|
|
@@ -2962,7 +2964,7 @@ var hn = (
|
|
|
2962
2964
|
var t = this.position.offset;
|
|
2963
2965
|
if (t >= this.message.length)
|
|
2964
2966
|
throw Error("out of bound");
|
|
2965
|
-
var r =
|
|
2967
|
+
var r = $t(this.message, t);
|
|
2966
2968
|
if (r === void 0)
|
|
2967
2969
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
2968
2970
|
return r;
|
|
@@ -2981,7 +2983,7 @@ var hn = (
|
|
|
2981
2983
|
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);
|
|
2982
2984
|
}
|
|
2983
2985
|
}, e.prototype.bumpIf = function(t) {
|
|
2984
|
-
if (
|
|
2986
|
+
if (st(this.message, t, this.offset())) {
|
|
2985
2987
|
for (var r = 0; r < t.length; r++)
|
|
2986
2988
|
this.bump();
|
|
2987
2989
|
return !0;
|
|
@@ -3003,7 +3005,7 @@ var hn = (
|
|
|
3003
3005
|
break;
|
|
3004
3006
|
}
|
|
3005
3007
|
}, e.prototype.bumpSpace = function() {
|
|
3006
|
-
for (; !this.isEOF() &&
|
|
3008
|
+
for (; !this.isEOF() && Dt(this.char()); )
|
|
3007
3009
|
this.bump();
|
|
3008
3010
|
}, e.prototype.peek = function() {
|
|
3009
3011
|
if (this.isEOF())
|
|
@@ -3016,29 +3018,29 @@ var hn = (
|
|
|
3016
3018
|
function je(e) {
|
|
3017
3019
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3018
3020
|
}
|
|
3019
|
-
function
|
|
3021
|
+
function fn(e) {
|
|
3020
3022
|
return je(e) || e === 47;
|
|
3021
3023
|
}
|
|
3022
|
-
function
|
|
3024
|
+
function dn(e) {
|
|
3023
3025
|
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;
|
|
3024
3026
|
}
|
|
3025
|
-
function
|
|
3027
|
+
function Dt(e) {
|
|
3026
3028
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3027
3029
|
}
|
|
3028
|
-
function
|
|
3030
|
+
function mn(e) {
|
|
3029
3031
|
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;
|
|
3030
3032
|
}
|
|
3031
3033
|
function Ve(e) {
|
|
3032
3034
|
e.forEach(function(t) {
|
|
3033
|
-
if (delete t.location,
|
|
3035
|
+
if (delete t.location, Pt(t) || Ct(t))
|
|
3034
3036
|
for (var r in t.options)
|
|
3035
3037
|
delete t.options[r].location, Ve(t.options[r].value);
|
|
3036
|
-
else
|
|
3038
|
+
else At(t) && Nt(t.style) || (Bt(t) || wt(t)) && De(t.style) ? delete t.style.location : It(t) && Ve(t.children);
|
|
3037
3039
|
});
|
|
3038
3040
|
}
|
|
3039
|
-
function
|
|
3041
|
+
function pn(e, t) {
|
|
3040
3042
|
t === void 0 && (t = {}), t = g({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3041
|
-
var r = new
|
|
3043
|
+
var r = new cn(e, t).parse();
|
|
3042
3044
|
if (r.err) {
|
|
3043
3045
|
var n = SyntaxError(m[r.err.kind]);
|
|
3044
3046
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
@@ -3061,7 +3063,7 @@ var He = (
|
|
|
3061
3063
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3062
3064
|
}, t;
|
|
3063
3065
|
}(Error)
|
|
3064
|
-
),
|
|
3066
|
+
), lt = (
|
|
3065
3067
|
/** @class */
|
|
3066
3068
|
function(e) {
|
|
3067
3069
|
Te(t, e);
|
|
@@ -3070,7 +3072,7 @@ var He = (
|
|
|
3070
3072
|
}
|
|
3071
3073
|
return t;
|
|
3072
3074
|
}(He)
|
|
3073
|
-
),
|
|
3075
|
+
), bn = (
|
|
3074
3076
|
/** @class */
|
|
3075
3077
|
function(e) {
|
|
3076
3078
|
Te(t, e);
|
|
@@ -3079,7 +3081,7 @@ var He = (
|
|
|
3079
3081
|
}
|
|
3080
3082
|
return t;
|
|
3081
3083
|
}(He)
|
|
3082
|
-
),
|
|
3084
|
+
), gn = (
|
|
3083
3085
|
/** @class */
|
|
3084
3086
|
function(e) {
|
|
3085
3087
|
Te(t, e);
|
|
@@ -3092,17 +3094,17 @@ var He = (
|
|
|
3092
3094
|
(function(e) {
|
|
3093
3095
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3094
3096
|
})(C || (C = {}));
|
|
3095
|
-
function
|
|
3097
|
+
function vn(e) {
|
|
3096
3098
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3097
3099
|
var n = t[t.length - 1];
|
|
3098
3100
|
return !n || n.type !== C.literal || r.type !== C.literal ? t.push(r) : n.value += r.value, t;
|
|
3099
3101
|
}, []);
|
|
3100
3102
|
}
|
|
3101
|
-
function
|
|
3103
|
+
function yn(e) {
|
|
3102
3104
|
return typeof e == "function";
|
|
3103
3105
|
}
|
|
3104
3106
|
function ye(e, t, r, n, i, o, a) {
|
|
3105
|
-
if (e.length === 1 &&
|
|
3107
|
+
if (e.length === 1 && rt(e[0]))
|
|
3106
3108
|
return [
|
|
3107
3109
|
{
|
|
3108
3110
|
type: C.literal,
|
|
@@ -3111,14 +3113,14 @@ function ye(e, t, r, n, i, o, a) {
|
|
|
3111
3113
|
];
|
|
3112
3114
|
for (var s = [], h = 0, u = e; h < u.length; h++) {
|
|
3113
3115
|
var l = u[h];
|
|
3114
|
-
if (
|
|
3116
|
+
if (rt(l)) {
|
|
3115
3117
|
s.push({
|
|
3116
3118
|
type: C.literal,
|
|
3117
3119
|
value: l.value
|
|
3118
3120
|
});
|
|
3119
3121
|
continue;
|
|
3120
3122
|
}
|
|
3121
|
-
if (
|
|
3123
|
+
if (Fr(l)) {
|
|
3122
3124
|
typeof o == "number" && s.push({
|
|
3123
3125
|
type: C.literal,
|
|
3124
3126
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3127,16 +3129,16 @@ function ye(e, t, r, n, i, o, a) {
|
|
|
3127
3129
|
}
|
|
3128
3130
|
var f = l.value;
|
|
3129
3131
|
if (!(i && f in i))
|
|
3130
|
-
throw new
|
|
3132
|
+
throw new gn(f, a);
|
|
3131
3133
|
var d = i[f];
|
|
3132
|
-
if (
|
|
3134
|
+
if (Dr(l)) {
|
|
3133
3135
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
|
|
3134
3136
|
type: typeof d == "string" ? C.literal : C.object,
|
|
3135
3137
|
value: d
|
|
3136
3138
|
});
|
|
3137
3139
|
continue;
|
|
3138
3140
|
}
|
|
3139
|
-
if (
|
|
3141
|
+
if (Bt(l)) {
|
|
3140
3142
|
var b = typeof l.style == "string" ? n.date[l.style] : De(l.style) ? l.style.parsedOptions : void 0;
|
|
3141
3143
|
s.push({
|
|
3142
3144
|
type: C.literal,
|
|
@@ -3144,7 +3146,7 @@ function ye(e, t, r, n, i, o, a) {
|
|
|
3144
3146
|
});
|
|
3145
3147
|
continue;
|
|
3146
3148
|
}
|
|
3147
|
-
if (
|
|
3149
|
+
if (wt(l)) {
|
|
3148
3150
|
var b = typeof l.style == "string" ? n.time[l.style] : De(l.style) ? l.style.parsedOptions : n.time.medium;
|
|
3149
3151
|
s.push({
|
|
3150
3152
|
type: C.literal,
|
|
@@ -3152,18 +3154,18 @@ function ye(e, t, r, n, i, o, a) {
|
|
|
3152
3154
|
});
|
|
3153
3155
|
continue;
|
|
3154
3156
|
}
|
|
3155
|
-
if (
|
|
3156
|
-
var b = typeof l.style == "string" ? n.number[l.style] :
|
|
3157
|
+
if (At(l)) {
|
|
3158
|
+
var b = typeof l.style == "string" ? n.number[l.style] : Nt(l.style) ? l.style.parsedOptions : void 0;
|
|
3157
3159
|
b && b.scale && (d = d * (b.scale || 1)), s.push({
|
|
3158
3160
|
type: C.literal,
|
|
3159
3161
|
value: r.getNumberFormat(t, b).format(d)
|
|
3160
3162
|
});
|
|
3161
3163
|
continue;
|
|
3162
3164
|
}
|
|
3163
|
-
if (
|
|
3165
|
+
if (It(l)) {
|
|
3164
3166
|
var v = l.children, _ = l.value, S = i[_];
|
|
3165
|
-
if (!
|
|
3166
|
-
throw new
|
|
3167
|
+
if (!yn(S))
|
|
3168
|
+
throw new bn(_, "function", a);
|
|
3167
3169
|
var R = ye(v, t, r, n, i, o), N = S(R.map(function(I) {
|
|
3168
3170
|
return I.value;
|
|
3169
3171
|
}));
|
|
@@ -3174,14 +3176,14 @@ function ye(e, t, r, n, i, o, a) {
|
|
|
3174
3176
|
};
|
|
3175
3177
|
}));
|
|
3176
3178
|
}
|
|
3177
|
-
if (
|
|
3179
|
+
if (Pt(l)) {
|
|
3178
3180
|
var T = l.options[d] || l.options.other;
|
|
3179
3181
|
if (!T)
|
|
3180
|
-
throw new
|
|
3182
|
+
throw new lt(l.value, d, Object.keys(l.options), a);
|
|
3181
3183
|
s.push.apply(s, ye(T.value, t, r, n, i));
|
|
3182
3184
|
continue;
|
|
3183
3185
|
}
|
|
3184
|
-
if (
|
|
3186
|
+
if (Ct(l)) {
|
|
3185
3187
|
var T = l.options["=".concat(d)];
|
|
3186
3188
|
if (!T) {
|
|
3187
3189
|
if (!Intl.PluralRules)
|
|
@@ -3192,21 +3194,21 @@ Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
|
3192
3194
|
T = l.options[H] || l.options.other;
|
|
3193
3195
|
}
|
|
3194
3196
|
if (!T)
|
|
3195
|
-
throw new
|
|
3197
|
+
throw new lt(l.value, d, Object.keys(l.options), a);
|
|
3196
3198
|
s.push.apply(s, ye(T.value, t, r, n, i, d - (l.offset || 0)));
|
|
3197
3199
|
continue;
|
|
3198
3200
|
}
|
|
3199
3201
|
}
|
|
3200
|
-
return
|
|
3202
|
+
return vn(s);
|
|
3201
3203
|
}
|
|
3202
|
-
function
|
|
3204
|
+
function En(e, t) {
|
|
3203
3205
|
return t ? g(g(g({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3204
3206
|
return r[n] = g(g({}, e[n]), t[n] || {}), r;
|
|
3205
3207
|
}, {})) : e;
|
|
3206
3208
|
}
|
|
3207
|
-
function
|
|
3209
|
+
function xn(e, t) {
|
|
3208
3210
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3209
|
-
return r[n] =
|
|
3211
|
+
return r[n] = En(e[n], t[n]), r;
|
|
3210
3212
|
}, g({}, e)) : e;
|
|
3211
3213
|
}
|
|
3212
3214
|
function Oe(e) {
|
|
@@ -3223,7 +3225,7 @@ function Oe(e) {
|
|
|
3223
3225
|
}
|
|
3224
3226
|
};
|
|
3225
3227
|
}
|
|
3226
|
-
function
|
|
3228
|
+
function _n(e) {
|
|
3227
3229
|
return e === void 0 && (e = {
|
|
3228
3230
|
number: {},
|
|
3229
3231
|
dateTime: {},
|
|
@@ -3255,7 +3257,7 @@ function xn(e) {
|
|
|
3255
3257
|
})
|
|
3256
3258
|
};
|
|
3257
3259
|
}
|
|
3258
|
-
var
|
|
3260
|
+
var Sn = (
|
|
3259
3261
|
/** @class */
|
|
3260
3262
|
function() {
|
|
3261
3263
|
function e(t, r, n, i) {
|
|
@@ -3287,13 +3289,13 @@ var _n = (
|
|
|
3287
3289
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3288
3290
|
var a = i || {};
|
|
3289
3291
|
a.formatters;
|
|
3290
|
-
var s =
|
|
3292
|
+
var s = Nr(a, ["formatters"]);
|
|
3291
3293
|
this.ast = e.__parse(t, g(g({}, s), { locale: this.resolvedLocale }));
|
|
3292
3294
|
} else
|
|
3293
3295
|
this.ast = t;
|
|
3294
3296
|
if (!Array.isArray(this.ast))
|
|
3295
3297
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3296
|
-
this.formats =
|
|
3298
|
+
this.formats = xn(e.formats, n), this.formatters = i && i.formatters || _n(this.formatterCache);
|
|
3297
3299
|
}
|
|
3298
3300
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3299
3301
|
get: function() {
|
|
@@ -3306,7 +3308,7 @@ var _n = (
|
|
|
3306
3308
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3307
3309
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3308
3310
|
}
|
|
3309
|
-
}, e.__parse =
|
|
3311
|
+
}, e.__parse = pn, e.formats = {
|
|
3310
3312
|
number: {
|
|
3311
3313
|
integer: {
|
|
3312
3314
|
maximumFractionDigits: 0
|
|
@@ -3367,7 +3369,7 @@ var _n = (
|
|
|
3367
3369
|
}, e;
|
|
3368
3370
|
}()
|
|
3369
3371
|
);
|
|
3370
|
-
function
|
|
3372
|
+
function Tn(e, t) {
|
|
3371
3373
|
if (t == null)
|
|
3372
3374
|
return;
|
|
3373
3375
|
if (t in e)
|
|
@@ -3388,60 +3390,60 @@ function Sn(e, t) {
|
|
|
3388
3390
|
n = void 0;
|
|
3389
3391
|
return n;
|
|
3390
3392
|
}
|
|
3391
|
-
const G = {},
|
|
3393
|
+
const G = {}, Hn = (e, t, r) => r && (t in G || (G[t] = {}), e in G[t] || (G[t][e] = r), r), Ft = (e, t) => {
|
|
3392
3394
|
if (t == null)
|
|
3393
3395
|
return;
|
|
3394
3396
|
if (t in G && e in G[t])
|
|
3395
3397
|
return G[t][e];
|
|
3396
3398
|
const r = Ae(t);
|
|
3397
3399
|
for (let n = 0; n < r.length; n++) {
|
|
3398
|
-
const i = r[n], o =
|
|
3400
|
+
const i = r[n], o = Bn(i, e);
|
|
3399
3401
|
if (o)
|
|
3400
|
-
return
|
|
3402
|
+
return Hn(e, t, o);
|
|
3401
3403
|
}
|
|
3402
3404
|
};
|
|
3403
|
-
let
|
|
3405
|
+
let Qe;
|
|
3404
3406
|
const ae = Se({});
|
|
3405
|
-
function
|
|
3406
|
-
return
|
|
3407
|
+
function An(e) {
|
|
3408
|
+
return Qe[e] || null;
|
|
3407
3409
|
}
|
|
3408
|
-
function
|
|
3409
|
-
return e in
|
|
3410
|
+
function Gt(e) {
|
|
3411
|
+
return e in Qe;
|
|
3410
3412
|
}
|
|
3411
|
-
function
|
|
3412
|
-
if (!
|
|
3413
|
+
function Bn(e, t) {
|
|
3414
|
+
if (!Gt(e))
|
|
3413
3415
|
return null;
|
|
3414
|
-
const r =
|
|
3415
|
-
return
|
|
3416
|
+
const r = An(e);
|
|
3417
|
+
return Tn(r, t);
|
|
3416
3418
|
}
|
|
3417
|
-
function
|
|
3419
|
+
function wn(e) {
|
|
3418
3420
|
if (e == null)
|
|
3419
3421
|
return;
|
|
3420
3422
|
const t = Ae(e);
|
|
3421
3423
|
for (let r = 0; r < t.length; r++) {
|
|
3422
3424
|
const n = t[r];
|
|
3423
|
-
if (
|
|
3425
|
+
if (Gt(n))
|
|
3424
3426
|
return n;
|
|
3425
3427
|
}
|
|
3426
3428
|
}
|
|
3427
|
-
function
|
|
3428
|
-
delete G[e], ae.update((r) => (r[e] =
|
|
3429
|
+
function kt(e, ...t) {
|
|
3430
|
+
delete G[e], ae.update((r) => (r[e] = Ir.all([r[e] || {}, ...t]), r));
|
|
3429
3431
|
}
|
|
3430
3432
|
se(
|
|
3431
3433
|
[ae],
|
|
3432
3434
|
([e]) => Object.keys(e)
|
|
3433
3435
|
);
|
|
3434
|
-
ae.subscribe((e) =>
|
|
3436
|
+
ae.subscribe((e) => Qe = e);
|
|
3435
3437
|
const Ee = {};
|
|
3436
|
-
function
|
|
3438
|
+
function Pn(e, t) {
|
|
3437
3439
|
Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
|
|
3438
3440
|
}
|
|
3439
|
-
function
|
|
3441
|
+
function jt(e) {
|
|
3440
3442
|
return Ee[e];
|
|
3441
3443
|
}
|
|
3442
|
-
function
|
|
3444
|
+
function Cn(e) {
|
|
3443
3445
|
return Ae(e).map((t) => {
|
|
3444
|
-
const r =
|
|
3446
|
+
const r = jt(t);
|
|
3445
3447
|
return [t, r ? [...r] : []];
|
|
3446
3448
|
}).filter(([, t]) => t.length > 0);
|
|
3447
3449
|
}
|
|
@@ -3449,31 +3451,31 @@ function Xe(e) {
|
|
|
3449
3451
|
return e == null ? !1 : Ae(e).some(
|
|
3450
3452
|
(t) => {
|
|
3451
3453
|
var r;
|
|
3452
|
-
return (r =
|
|
3454
|
+
return (r = jt(t)) == null ? void 0 : r.size;
|
|
3453
3455
|
}
|
|
3454
3456
|
);
|
|
3455
3457
|
}
|
|
3456
|
-
function
|
|
3458
|
+
function In(e, t) {
|
|
3457
3459
|
return Promise.all(
|
|
3458
|
-
t.map((n) => (
|
|
3459
|
-
).then((n) =>
|
|
3460
|
+
t.map((n) => (Pn(e, n), n().then((i) => i.default || i)))
|
|
3461
|
+
).then((n) => kt(e, ...n));
|
|
3460
3462
|
}
|
|
3461
3463
|
const le = {};
|
|
3462
|
-
function
|
|
3464
|
+
function Vt(e) {
|
|
3463
3465
|
if (!Xe(e))
|
|
3464
3466
|
return e in le ? le[e] : Promise.resolve();
|
|
3465
|
-
const t =
|
|
3467
|
+
const t = Cn(e);
|
|
3466
3468
|
return le[e] = Promise.all(
|
|
3467
3469
|
t.map(
|
|
3468
|
-
([r, n]) =>
|
|
3470
|
+
([r, n]) => In(r, n)
|
|
3469
3471
|
)
|
|
3470
3472
|
).then(() => {
|
|
3471
3473
|
if (Xe(e))
|
|
3472
|
-
return
|
|
3474
|
+
return Vt(e);
|
|
3473
3475
|
delete le[e];
|
|
3474
3476
|
}), le[e];
|
|
3475
3477
|
}
|
|
3476
|
-
const
|
|
3478
|
+
const Nn = {
|
|
3477
3479
|
number: {
|
|
3478
3480
|
scientific: { notation: "scientific" },
|
|
3479
3481
|
engineering: { notation: "engineering" },
|
|
@@ -3502,34 +3504,34 @@ const In = {
|
|
|
3502
3504
|
timeZoneName: "short"
|
|
3503
3505
|
}
|
|
3504
3506
|
}
|
|
3505
|
-
},
|
|
3507
|
+
}, On = {
|
|
3506
3508
|
fallbackLocale: null,
|
|
3507
3509
|
loadingDelay: 200,
|
|
3508
|
-
formats:
|
|
3510
|
+
formats: Nn,
|
|
3509
3511
|
warnOnMissingMessages: !0,
|
|
3510
3512
|
handleMissingMessage: void 0,
|
|
3511
3513
|
ignoreTag: !0
|
|
3512
|
-
},
|
|
3514
|
+
}, Mn = On;
|
|
3513
3515
|
function ie() {
|
|
3514
|
-
return
|
|
3516
|
+
return Mn;
|
|
3515
3517
|
}
|
|
3516
3518
|
const Me = Se(!1);
|
|
3517
|
-
var
|
|
3519
|
+
var Ln = Object.defineProperty, Rn = Object.defineProperties, $n = Object.getOwnPropertyDescriptors, ht = Object.getOwnPropertySymbols, Un = Object.prototype.hasOwnProperty, Dn = Object.prototype.propertyIsEnumerable, ct = (e, t, r) => t in e ? Ln(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fn = (e, t) => {
|
|
3518
3520
|
for (var r in t || (t = {}))
|
|
3519
|
-
|
|
3520
|
-
if (
|
|
3521
|
-
for (var r of
|
|
3522
|
-
|
|
3521
|
+
Un.call(t, r) && ct(e, r, t[r]);
|
|
3522
|
+
if (ht)
|
|
3523
|
+
for (var r of ht(t))
|
|
3524
|
+
Dn.call(t, r) && ct(e, r, t[r]);
|
|
3523
3525
|
return e;
|
|
3524
|
-
},
|
|
3526
|
+
}, Gn = (e, t) => Rn(e, $n(t));
|
|
3525
3527
|
let ze;
|
|
3526
3528
|
const xe = Se(null);
|
|
3527
|
-
function
|
|
3529
|
+
function ft(e) {
|
|
3528
3530
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3529
3531
|
}
|
|
3530
3532
|
function Ae(e, t = ie().fallbackLocale) {
|
|
3531
|
-
const r =
|
|
3532
|
-
return t ? [.../* @__PURE__ */ new Set([...r, ...
|
|
3533
|
+
const r = ft(e);
|
|
3534
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...ft(t)])] : r;
|
|
3533
3535
|
}
|
|
3534
3536
|
function Z() {
|
|
3535
3537
|
return ze ?? void 0;
|
|
@@ -3537,22 +3539,22 @@ function Z() {
|
|
|
3537
3539
|
xe.subscribe((e) => {
|
|
3538
3540
|
ze = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3539
3541
|
});
|
|
3540
|
-
const
|
|
3541
|
-
if (e &&
|
|
3542
|
+
const kn = (e) => {
|
|
3543
|
+
if (e && wn(e) && Xe(e)) {
|
|
3542
3544
|
const { loadingDelay: t } = ie();
|
|
3543
3545
|
let r;
|
|
3544
3546
|
return typeof window < "u" && Z() != null && t ? r = window.setTimeout(
|
|
3545
3547
|
() => Me.set(!0),
|
|
3546
3548
|
t
|
|
3547
|
-
) : Me.set(!0),
|
|
3549
|
+
) : Me.set(!0), Vt(e).then(() => {
|
|
3548
3550
|
xe.set(e);
|
|
3549
3551
|
}).finally(() => {
|
|
3550
3552
|
clearTimeout(r), Me.set(!1);
|
|
3551
3553
|
});
|
|
3552
3554
|
}
|
|
3553
3555
|
return xe.set(e);
|
|
3554
|
-
}, z = Fn(
|
|
3555
|
-
set:
|
|
3556
|
+
}, z = Gn(Fn({}, xe), {
|
|
3557
|
+
set: kn
|
|
3556
3558
|
}), Be = (e) => {
|
|
3557
3559
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3558
3560
|
return (n) => {
|
|
@@ -3560,20 +3562,20 @@ const Gn = (e) => {
|
|
|
3560
3562
|
return i in t ? t[i] : t[i] = e(n);
|
|
3561
3563
|
};
|
|
3562
3564
|
};
|
|
3563
|
-
var
|
|
3565
|
+
var jn = Object.defineProperty, _e = Object.getOwnPropertySymbols, Xt = Object.prototype.hasOwnProperty, zt = Object.prototype.propertyIsEnumerable, dt = (e, t, r) => t in e ? jn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, qe = (e, t) => {
|
|
3564
3566
|
for (var r in t || (t = {}))
|
|
3565
|
-
|
|
3567
|
+
Xt.call(t, r) && dt(e, r, t[r]);
|
|
3566
3568
|
if (_e)
|
|
3567
3569
|
for (var r of _e(t))
|
|
3568
|
-
|
|
3570
|
+
zt.call(t, r) && dt(e, r, t[r]);
|
|
3569
3571
|
return e;
|
|
3570
3572
|
}, ue = (e, t) => {
|
|
3571
3573
|
var r = {};
|
|
3572
3574
|
for (var n in e)
|
|
3573
|
-
|
|
3575
|
+
Xt.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3574
3576
|
if (e != null && _e)
|
|
3575
3577
|
for (var n of _e(e))
|
|
3576
|
-
t.indexOf(n) < 0 &&
|
|
3578
|
+
t.indexOf(n) < 0 && zt.call(e, n) && (r[n] = e[n]);
|
|
3577
3579
|
return r;
|
|
3578
3580
|
};
|
|
3579
3581
|
const de = (e, t) => {
|
|
@@ -3581,21 +3583,21 @@ const de = (e, t) => {
|
|
|
3581
3583
|
if (e in r && t in r[e])
|
|
3582
3584
|
return r[e][t];
|
|
3583
3585
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3584
|
-
},
|
|
3586
|
+
}, Vn = Be(
|
|
3585
3587
|
(e) => {
|
|
3586
3588
|
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3587
3589
|
if (r == null)
|
|
3588
3590
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3589
3591
|
return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
|
|
3590
3592
|
}
|
|
3591
|
-
),
|
|
3593
|
+
), Xn = Be(
|
|
3592
3594
|
(e) => {
|
|
3593
3595
|
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3594
3596
|
if (r == null)
|
|
3595
3597
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3596
3598
|
return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3597
3599
|
}
|
|
3598
|
-
),
|
|
3600
|
+
), zn = Be(
|
|
3599
3601
|
(e) => {
|
|
3600
3602
|
var t = e, { locale: r, format: n } = t, i = ue(t, ["locale", "format"]);
|
|
3601
3603
|
if (r == null)
|
|
@@ -3604,33 +3606,33 @@ const de = (e, t) => {
|
|
|
3604
3606
|
);
|
|
3605
3607
|
return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3606
3608
|
}
|
|
3607
|
-
),
|
|
3609
|
+
), Wn = (e = {}) => {
|
|
3608
3610
|
var t = e, {
|
|
3609
3611
|
locale: r = Z()
|
|
3610
3612
|
} = t, n = ue(t, [
|
|
3611
3613
|
"locale"
|
|
3612
3614
|
]);
|
|
3613
|
-
return
|
|
3614
|
-
},
|
|
3615
|
+
return Vn(qe({ locale: r }, n));
|
|
3616
|
+
}, Zn = (e = {}) => {
|
|
3615
3617
|
var t = e, {
|
|
3616
3618
|
locale: r = Z()
|
|
3617
3619
|
} = t, n = ue(t, [
|
|
3618
3620
|
"locale"
|
|
3619
3621
|
]);
|
|
3620
|
-
return
|
|
3621
|
-
},
|
|
3622
|
+
return Xn(qe({ locale: r }, n));
|
|
3623
|
+
}, Jn = (e = {}) => {
|
|
3622
3624
|
var t = e, {
|
|
3623
3625
|
locale: r = Z()
|
|
3624
3626
|
} = t, n = ue(t, [
|
|
3625
3627
|
"locale"
|
|
3626
3628
|
]);
|
|
3627
|
-
return
|
|
3628
|
-
},
|
|
3629
|
+
return zn(qe({ locale: r }, n));
|
|
3630
|
+
}, Qn = Be(
|
|
3629
3631
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3630
|
-
(e, t = Z()) => new
|
|
3632
|
+
(e, t = Z()) => new Sn(e, t, ie().formats, {
|
|
3631
3633
|
ignoreTag: ie().ignoreTag
|
|
3632
3634
|
})
|
|
3633
|
-
),
|
|
3635
|
+
), qn = (e, t = {}) => {
|
|
3634
3636
|
var r, n, i, o;
|
|
3635
3637
|
let a = t;
|
|
3636
3638
|
typeof e == "object" && (a = e, e = a.id);
|
|
@@ -3643,7 +3645,7 @@ const de = (e, t) => {
|
|
|
3643
3645
|
throw new Error(
|
|
3644
3646
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3645
3647
|
);
|
|
3646
|
-
let l =
|
|
3648
|
+
let l = Ft(e, h);
|
|
3647
3649
|
if (!l)
|
|
3648
3650
|
l = (o = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: h, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
|
|
3649
3651
|
else if (typeof l != "string")
|
|
@@ -3654,7 +3656,7 @@ const de = (e, t) => {
|
|
|
3654
3656
|
return l;
|
|
3655
3657
|
let f = l;
|
|
3656
3658
|
try {
|
|
3657
|
-
f =
|
|
3659
|
+
f = Qn(l, h).format(s);
|
|
3658
3660
|
} catch (d) {
|
|
3659
3661
|
d instanceof Error && console.warn(
|
|
3660
3662
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3662,20 +3664,20 @@ const de = (e, t) => {
|
|
|
3662
3664
|
);
|
|
3663
3665
|
}
|
|
3664
3666
|
return f;
|
|
3665
|
-
},
|
|
3666
|
-
se([z], () => qn);
|
|
3667
|
+
}, Yn = (e, t) => Jn(t).format(e), Kn = (e, t) => Zn(t).format(e), ei = (e, t) => Wn(t).format(e), ti = (e, t = Z()) => Ft(e, t), ri = se([z, ae], () => qn);
|
|
3667
3668
|
se([z], () => Yn);
|
|
3668
3669
|
se([z], () => Kn);
|
|
3669
|
-
se([z
|
|
3670
|
-
|
|
3670
|
+
se([z], () => ei);
|
|
3671
|
+
se([z, ae], () => ti);
|
|
3672
|
+
function ni({ withLocale: e, translations: t }) {
|
|
3671
3673
|
z.subscribe((r) => {
|
|
3672
3674
|
r == null && (ae.set(t), z.set(e));
|
|
3673
3675
|
});
|
|
3674
3676
|
}
|
|
3675
|
-
function
|
|
3676
|
-
|
|
3677
|
+
function mt(e, t) {
|
|
3678
|
+
kt(e, t);
|
|
3677
3679
|
}
|
|
3678
|
-
const
|
|
3680
|
+
const pt = {
|
|
3679
3681
|
en: {
|
|
3680
3682
|
title: "Please enter the verification code you received on your number",
|
|
3681
3683
|
errorTitle: "Your code was invalid, you can resend the code and try again",
|
|
@@ -3782,10 +3784,10 @@ const dt = {
|
|
|
3782
3784
|
loginSMSHint: "A new verification code has been sent to your phone number"
|
|
3783
3785
|
}
|
|
3784
3786
|
};
|
|
3785
|
-
function ni(e) {
|
|
3786
|
-
Wt(e, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{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}.Field.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))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{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;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
|
|
3787
|
-
}
|
|
3788
3787
|
function ii(e) {
|
|
3788
|
+
Jt(e, "svelte-uutjwi", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Title{font-size:14px;margin:0;padding-bottom:20px}.Field{color:var(--emw--registration-contrast, var(--emw--color-gray-300, #58586B));display:flex;flex-direction:column;padding-bottom:30px;position:relative}.Field label{font-size:14px;font-weight:300;padding-bottom:5px}.Field input,.Field select{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}.Field.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))}.Field.Hidden{display:none}.LoginSMSHint{margin-top:20px}.InvalidInput{color:var(--emw--color-error, var(--emw--color-red, #ed0909));font-size:10px;line-height:10px}.ErrorMessage{margin:0 0 15px 0;font-size:12px;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.Button{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;margin-top:24px}.Button[disabled]{background:var(--emw--color-gray-100, #E6E6E6);border:1px solid var(--emw--color-gray-100, #E6E6E6);cursor:not-allowed}.Button.SmsVerificationResend{background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #F9F8F8));color:var(--emw--registration-typography, var(--emw--color-contrast, #07072A))}");
|
|
3789
|
+
}
|
|
3790
|
+
function oi(e) {
|
|
3789
3791
|
let t = (
|
|
3790
3792
|
/*$_*/
|
|
3791
3793
|
e[5]("errorTitle") + ""
|
|
@@ -3807,7 +3809,7 @@ function ii(e) {
|
|
|
3807
3809
|
}
|
|
3808
3810
|
};
|
|
3809
3811
|
}
|
|
3810
|
-
function
|
|
3812
|
+
function si(e) {
|
|
3811
3813
|
let t = (
|
|
3812
3814
|
/*$_*/
|
|
3813
3815
|
e[5]("title") + ""
|
|
@@ -3829,7 +3831,7 @@ function oi(e) {
|
|
|
3829
3831
|
}
|
|
3830
3832
|
};
|
|
3831
3833
|
}
|
|
3832
|
-
function
|
|
3834
|
+
function bt(e) {
|
|
3833
3835
|
let t, r = (
|
|
3834
3836
|
/*$_*/
|
|
3835
3837
|
e[5]("smsCodeError") + ""
|
|
@@ -3851,7 +3853,7 @@ function mt(e) {
|
|
|
3851
3853
|
}
|
|
3852
3854
|
};
|
|
3853
3855
|
}
|
|
3854
|
-
function
|
|
3856
|
+
function gt(e) {
|
|
3855
3857
|
let t, r = (
|
|
3856
3858
|
/*$_*/
|
|
3857
3859
|
e[5]("resendMessage") + ""
|
|
@@ -3873,7 +3875,7 @@ function pt(e) {
|
|
|
3873
3875
|
}
|
|
3874
3876
|
};
|
|
3875
3877
|
}
|
|
3876
|
-
function
|
|
3878
|
+
function vt(e) {
|
|
3877
3879
|
let t, r, n = (
|
|
3878
3880
|
/*secondsLeft*/
|
|
3879
3881
|
e[4] < 10 ? "0" : ""
|
|
@@ -3903,7 +3905,7 @@ function bt(e) {
|
|
|
3903
3905
|
}
|
|
3904
3906
|
};
|
|
3905
3907
|
}
|
|
3906
|
-
function
|
|
3908
|
+
function ai(e) {
|
|
3907
3909
|
let t, r, n, i, o, a = (
|
|
3908
3910
|
/*$_*/
|
|
3909
3911
|
e[5]("code") + ""
|
|
@@ -3917,16 +3919,16 @@ function si(e) {
|
|
|
3917
3919
|
function pe(c, y) {
|
|
3918
3920
|
return (
|
|
3919
3921
|
/*isSmsValid*/
|
|
3920
|
-
c[2] ?
|
|
3922
|
+
c[2] ? si : oi
|
|
3921
3923
|
);
|
|
3922
3924
|
}
|
|
3923
3925
|
let V = pe(e), O = V(e), B = !/*isSmsValid*/
|
|
3924
|
-
e[2] &&
|
|
3926
|
+
e[2] && bt(e), w = (
|
|
3925
3927
|
/*timer*/
|
|
3926
|
-
e[3] &&
|
|
3928
|
+
e[3] && gt(e)
|
|
3927
3929
|
), P = (
|
|
3928
3930
|
/*timer*/
|
|
3929
|
-
e[3] &&
|
|
3931
|
+
e[3] && vt(e)
|
|
3930
3932
|
);
|
|
3931
3933
|
return {
|
|
3932
3934
|
c() {
|
|
@@ -3935,7 +3937,7 @@ function si(e) {
|
|
|
3935
3937
|
e[3], A(t, "class", "Container SmsVerificationContainer");
|
|
3936
3938
|
},
|
|
3937
3939
|
m(c, y) {
|
|
3938
|
-
W(c, t, y), E(t, r), O.m(r, null), E(t, n), E(t, i), E(i, o), E(o, s), E(o, h), E(o, u), E(i, l), E(i, f),
|
|
3940
|
+
W(c, t, y), E(t, r), O.m(r, null), E(t, n), E(t, i), E(i, o), E(o, s), E(o, h), E(o, u), E(i, l), E(i, f), Ke(
|
|
3939
3941
|
f,
|
|
3940
3942
|
/*smsCode*/
|
|
3941
3943
|
e[1]
|
|
@@ -3971,20 +3973,20 @@ function si(e) {
|
|
|
3971
3973
|
32 && a !== (a = /*$_*/
|
|
3972
3974
|
c[5]("code") + "") && F(s, a), y & /*smsCode*/
|
|
3973
3975
|
2 && f.value !== /*smsCode*/
|
|
3974
|
-
c[1] &&
|
|
3976
|
+
c[1] && Ke(
|
|
3975
3977
|
f,
|
|
3976
3978
|
/*smsCode*/
|
|
3977
3979
|
c[1]
|
|
3978
3980
|
), /*isSmsValid*/
|
|
3979
|
-
c[2] ? B && (B.d(1), B = null) : B ? B.p(c, y) : (B =
|
|
3981
|
+
c[2] ? B && (B.d(1), B = null) : B ? B.p(c, y) : (B = bt(c), B.c(), B.m(i, null)), y & /*isSmsValid*/
|
|
3980
3982
|
4 && b !== (b = "Field SmsVerificationField " + (/*isSmsValid*/
|
|
3981
3983
|
c[2] ? "" : "InvalidField")) && A(i, "class", b), /*timer*/
|
|
3982
|
-
c[3] ? w ? w.p(c, y) : (w =
|
|
3984
|
+
c[3] ? w ? w.p(c, y) : (w = gt(c), w.c(), w.m(t, _)) : w && (w.d(1), w = null), y & /*$_*/
|
|
3983
3985
|
32 && R !== (R = /*$_*/
|
|
3984
3986
|
c[5]("activate") + "") && F(N, R), y & /*$_*/
|
|
3985
3987
|
32 && I !== (I = /*$_*/
|
|
3986
3988
|
c[5]("resend") + "") && F(U, I), /*timer*/
|
|
3987
|
-
c[3] ? P ? P.p(c, y) : (P =
|
|
3989
|
+
c[3] ? P ? P.p(c, y) : (P = vt(c), P.c(), P.m(H, null)) : P && (P.d(1), P = null), y & /*timer*/
|
|
3988
3990
|
8 && (H.disabled = /*timer*/
|
|
3989
3991
|
c[3]);
|
|
3990
3992
|
},
|
|
@@ -3995,23 +3997,23 @@ function si(e) {
|
|
|
3995
3997
|
}
|
|
3996
3998
|
};
|
|
3997
3999
|
}
|
|
3998
|
-
function
|
|
4000
|
+
function ui(e, t, r) {
|
|
3999
4001
|
let n;
|
|
4000
|
-
|
|
4002
|
+
Zt(e, ri, (c) => r(5, n = c));
|
|
4001
4003
|
let { endpoint: i = "" } = t, { tokenid: o = "" } = t, { playerid: a = "" } = t, { smstemplate: s = "Please use this code {0} to activate your accout" } = t, { number: h = "" } = t, { clientstyling: u = "" } = t, { clientstylingurl: l = "" } = t, { translationurl: f = "" } = t, d, b = !0, v = !1, _, S, R = +localStorage.getItem("smsTimer") || 0, N = Date.now() / 1e3 - R, T = 60 - Math.floor(N);
|
|
4002
4004
|
const H = { numeric: /^[0-9]{0,6}$/ };
|
|
4003
|
-
|
|
4005
|
+
ni({ withLocale: "en", translations: {} });
|
|
4004
4006
|
const I = () => {
|
|
4005
4007
|
fetch(f).then((y) => y.json()).then((y) => {
|
|
4006
4008
|
Object.keys(y).forEach((Q) => {
|
|
4007
|
-
|
|
4009
|
+
mt(Q, y[Q]);
|
|
4008
4010
|
});
|
|
4009
4011
|
}).catch((y) => {
|
|
4010
4012
|
console.log(y);
|
|
4011
4013
|
});
|
|
4012
4014
|
};
|
|
4013
|
-
Object.keys(
|
|
4014
|
-
|
|
4015
|
+
Object.keys(pt).forEach((c) => {
|
|
4016
|
+
mt(c, pt[c]);
|
|
4015
4017
|
});
|
|
4016
4018
|
const U = async () => {
|
|
4017
4019
|
try {
|
|
@@ -4087,7 +4089,7 @@ function ai(e, t, r) {
|
|
|
4087
4089
|
}, O = (c) => {
|
|
4088
4090
|
!H.numeric.test(c.key) && c.keyCode !== 8 && c.keyCode !== 9 && c.keyCode !== 46 && c.preventDefault();
|
|
4089
4091
|
};
|
|
4090
|
-
|
|
4092
|
+
tr(() => {
|
|
4091
4093
|
if (!a || !h) {
|
|
4092
4094
|
let c = JSON.parse(localStorage.getItem("playerData"));
|
|
4093
4095
|
r(10, a = c.playerid), r(11, h = c.number);
|
|
@@ -4134,14 +4136,14 @@ function ai(e, t, r) {
|
|
|
4134
4136
|
P
|
|
4135
4137
|
];
|
|
4136
4138
|
}
|
|
4137
|
-
class
|
|
4139
|
+
class li extends dr {
|
|
4138
4140
|
constructor(t) {
|
|
4139
|
-
super(),
|
|
4141
|
+
super(), cr(
|
|
4140
4142
|
this,
|
|
4141
4143
|
t,
|
|
4144
|
+
ui,
|
|
4142
4145
|
ai,
|
|
4143
|
-
|
|
4144
|
-
vt,
|
|
4146
|
+
Et,
|
|
4145
4147
|
{
|
|
4146
4148
|
endpoint: 12,
|
|
4147
4149
|
tokenid: 9,
|
|
@@ -4152,7 +4154,7 @@ class ui extends cr {
|
|
|
4152
4154
|
clientstylingurl: 15,
|
|
4153
4155
|
translationurl: 16
|
|
4154
4156
|
},
|
|
4155
|
-
|
|
4157
|
+
ii
|
|
4156
4158
|
);
|
|
4157
4159
|
}
|
|
4158
4160
|
get endpoint() {
|
|
@@ -4204,7 +4206,7 @@ class ui extends cr {
|
|
|
4204
4206
|
this.$$set({ translationurl: t }), D();
|
|
4205
4207
|
}
|
|
4206
4208
|
}
|
|
4207
|
-
|
|
4209
|
+
fr(li, { endpoint: {}, tokenid: {}, playerid: {}, smstemplate: {}, number: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
|
|
4208
4210
|
export {
|
|
4209
|
-
|
|
4211
|
+
li as G
|
|
4210
4212
|
};
|