@everymatrix/general-player-forgot-password-sms-form 1.86.1 → 1.86.3
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/GeneralPlayerForgotPasswordSmsForm-BMUqvxSK.cjs +22 -0
- package/components/{GeneralPlayerForgotPasswordSmsForm-BRROJX4q.js → GeneralPlayerForgotPasswordSmsForm-BcwNVD4p.js} +690 -694
- package/components/{GeneralPlayerForgotPasswordSmsForm-C_Gj2qx9.js → GeneralPlayerForgotPasswordSmsForm-cFt6LmX9.js} +702 -706
- package/es2015/general-player-forgot-password-sms-form.cjs +1 -1
- package/es2015/general-player-forgot-password-sms-form.js +1 -1
- package/esnext/general-player-forgot-password-sms-form.js +1 -1
- package/package.json +1 -1
- package/components/GeneralPlayerForgotPasswordSmsForm-CIXNp0fQ.cjs +0 -9
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var In = Object.defineProperty,
|
|
2
|
-
var
|
|
1
|
+
var In = Object.defineProperty, Mn = Object.defineProperties;
|
|
2
|
+
var Bn = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var ir = Object.getOwnPropertySymbols;
|
|
4
4
|
var On = Object.prototype.hasOwnProperty, kn = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Ct = (e, t, r) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, or = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
|
-
On.call(t, r) &&
|
|
7
|
+
On.call(t, r) && Ct(e, r, t[r]);
|
|
8
8
|
if (ir)
|
|
9
9
|
for (var r of ir(t))
|
|
10
|
-
kn.call(t, r) &&
|
|
10
|
+
kn.call(t, r) && Ct(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, sr = (e, t) =>
|
|
13
|
-
var ce = (e, t, r) => (
|
|
12
|
+
}, sr = (e, t) => Mn(e, Bn(t));
|
|
13
|
+
var ce = (e, t, r) => (Ct(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
14
14
|
var me = (e, t, r) => new Promise((n, i) => {
|
|
15
15
|
var o = (d) => {
|
|
16
16
|
try {
|
|
@@ -29,7 +29,7 @@ var me = (e, t, r) => new Promise((n, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
function ue() {
|
|
31
31
|
}
|
|
32
|
-
const
|
|
32
|
+
const wt = (e) => e;
|
|
33
33
|
function Fr(e) {
|
|
34
34
|
return e();
|
|
35
35
|
}
|
|
@@ -39,7 +39,7 @@ function ar() {
|
|
|
39
39
|
function be(e) {
|
|
40
40
|
e.forEach(Fr);
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function $e(e) {
|
|
43
43
|
return typeof e == "function";
|
|
44
44
|
}
|
|
45
45
|
function jr(e, t) {
|
|
@@ -69,21 +69,21 @@ function Fn(e) {
|
|
|
69
69
|
];
|
|
70
70
|
}
|
|
71
71
|
const Gr = typeof window != "undefined";
|
|
72
|
-
let
|
|
73
|
-
const
|
|
74
|
-
function
|
|
75
|
-
|
|
76
|
-
t.c(e) || (
|
|
77
|
-
}),
|
|
78
|
-
}
|
|
79
|
-
function
|
|
72
|
+
let qt = Gr ? () => window.performance.now() : () => Date.now(), Xt = Gr ? (e) => requestAnimationFrame(e) : ue;
|
|
73
|
+
const Ue = /* @__PURE__ */ new Set();
|
|
74
|
+
function Vr(e) {
|
|
75
|
+
Ue.forEach((t) => {
|
|
76
|
+
t.c(e) || (Ue.delete(t), t.f());
|
|
77
|
+
}), Ue.size !== 0 && Xt(Vr);
|
|
78
|
+
}
|
|
79
|
+
function Wt(e) {
|
|
80
80
|
let t;
|
|
81
|
-
return
|
|
81
|
+
return Ue.size === 0 && Xt(Vr), {
|
|
82
82
|
promise: new Promise((r) => {
|
|
83
|
-
|
|
83
|
+
Ue.add(t = { c: e, f: r });
|
|
84
84
|
}),
|
|
85
85
|
abort() {
|
|
86
|
-
|
|
86
|
+
Ue.delete(t);
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
89
|
}
|
|
@@ -91,13 +91,13 @@ function m(e, t) {
|
|
|
91
91
|
e.appendChild(t);
|
|
92
92
|
}
|
|
93
93
|
function jn(e, t, r) {
|
|
94
|
-
const n =
|
|
94
|
+
const n = Zt(e);
|
|
95
95
|
if (!n.getElementById(t)) {
|
|
96
96
|
const i = x("style");
|
|
97
|
-
i.id = t, i.textContent = r,
|
|
97
|
+
i.id = t, i.textContent = r, $r(n, i);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function Zt(e) {
|
|
101
101
|
if (!e)
|
|
102
102
|
return document;
|
|
103
103
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -109,9 +109,9 @@ function Qt(e) {
|
|
|
109
109
|
}
|
|
110
110
|
function zn(e) {
|
|
111
111
|
const t = x("style");
|
|
112
|
-
return t.textContent = "/* empty */",
|
|
112
|
+
return t.textContent = "/* empty */", $r(Zt(e), t), t.sheet;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function $r(e, t) {
|
|
115
115
|
return m(
|
|
116
116
|
/** @type {Document} */
|
|
117
117
|
e.head || e,
|
|
@@ -131,36 +131,36 @@ function Gn(e, t) {
|
|
|
131
131
|
function x(e) {
|
|
132
132
|
return document.createElement(e);
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function k(e) {
|
|
135
135
|
return document.createTextNode(e);
|
|
136
136
|
}
|
|
137
|
-
function
|
|
138
|
-
return
|
|
137
|
+
function $() {
|
|
138
|
+
return k(" ");
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function Te(e, t, r, n) {
|
|
141
141
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
142
142
|
}
|
|
143
143
|
function p(e, t, r) {
|
|
144
144
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
145
145
|
}
|
|
146
|
-
function
|
|
146
|
+
function Ae(e, t, r) {
|
|
147
147
|
const n = t.toLowerCase();
|
|
148
148
|
n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : p(e, t, r);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Vn(e) {
|
|
151
151
|
return Array.from(e.childNodes);
|
|
152
152
|
}
|
|
153
153
|
function W(e, t) {
|
|
154
154
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
155
155
|
t);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function ft(e, t) {
|
|
158
158
|
e.value = t == null ? "" : t;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function st(e, t, r) {
|
|
161
161
|
e.classList.toggle(t, !!r);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function $n(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
|
|
164
164
|
return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
|
|
165
165
|
}
|
|
166
166
|
function qn(e) {
|
|
@@ -172,8 +172,8 @@ function qn(e) {
|
|
|
172
172
|
}
|
|
173
173
|
), t;
|
|
174
174
|
}
|
|
175
|
-
const
|
|
176
|
-
let
|
|
175
|
+
const ht = /* @__PURE__ */ new Map();
|
|
176
|
+
let pt = 0;
|
|
177
177
|
function Xn(e) {
|
|
178
178
|
let t = 5381, r = e.length;
|
|
179
179
|
for (; r--; )
|
|
@@ -182,9 +182,9 @@ function Xn(e) {
|
|
|
182
182
|
}
|
|
183
183
|
function Wn(e, t) {
|
|
184
184
|
const r = { stylesheet: zn(t), rules: {} };
|
|
185
|
-
return
|
|
185
|
+
return ht.set(e, r), r;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function mt(e, t, r, n, i, o, s, a = 0) {
|
|
188
188
|
const d = 16.666 / n;
|
|
189
189
|
let l = `{
|
|
190
190
|
`;
|
|
@@ -194,74 +194,74 @@ function bt(e, t, r, n, i, o, s, a = 0) {
|
|
|
194
194
|
`;
|
|
195
195
|
}
|
|
196
196
|
const u = l + `100% {${s(r, 1 - r)}}
|
|
197
|
-
}`, c = `__svelte_${Xn(u)}_${a}`, h =
|
|
197
|
+
}`, c = `__svelte_${Xn(u)}_${a}`, h = Zt(e), { stylesheet: g, rules: b } = ht.get(h) || Wn(h, e);
|
|
198
198
|
b[c] || (b[c] = !0, g.insertRule(`@keyframes ${c} ${u}`, g.cssRules.length));
|
|
199
199
|
const w = e.style.animation || "";
|
|
200
|
-
return e.style.animation = `${w ? `${w}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`,
|
|
200
|
+
return e.style.animation = `${w ? `${w}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, pt += 1, c;
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function bt(e, t) {
|
|
203
203
|
const r = (e.style.animation || "").split(", "), n = r.filter(
|
|
204
204
|
t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
|
|
205
205
|
// remove all Svelte animations
|
|
206
206
|
), i = r.length - n.length;
|
|
207
|
-
i && (e.style.animation = n.join(", "),
|
|
207
|
+
i && (e.style.animation = n.join(", "), pt -= i, pt || Zn());
|
|
208
208
|
}
|
|
209
209
|
function Zn() {
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
Xt(() => {
|
|
211
|
+
pt || (ht.forEach((e) => {
|
|
212
212
|
const { ownerNode: t } = e.stylesheet;
|
|
213
213
|
t && Y(t);
|
|
214
|
-
}),
|
|
214
|
+
}), ht.clear());
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
let
|
|
218
|
-
function
|
|
219
|
-
|
|
217
|
+
let et;
|
|
218
|
+
function Ke(e) {
|
|
219
|
+
et = e;
|
|
220
220
|
}
|
|
221
221
|
function Yn() {
|
|
222
|
-
if (!
|
|
222
|
+
if (!et)
|
|
223
223
|
throw new Error("Function called outside component initialization");
|
|
224
|
-
return
|
|
224
|
+
return et;
|
|
225
225
|
}
|
|
226
226
|
function Qn(e) {
|
|
227
227
|
Yn().$$.on_mount.push(e);
|
|
228
228
|
}
|
|
229
|
-
const
|
|
230
|
-
let
|
|
229
|
+
const ke = [], gt = [];
|
|
230
|
+
let De = [];
|
|
231
231
|
const lr = [], Jn = /* @__PURE__ */ Promise.resolve();
|
|
232
|
-
let
|
|
232
|
+
let Ot = !1;
|
|
233
233
|
function Kn() {
|
|
234
|
-
|
|
234
|
+
Ot || (Ot = !0, Jn.then(se));
|
|
235
235
|
}
|
|
236
236
|
function he(e) {
|
|
237
|
-
|
|
237
|
+
De.push(e);
|
|
238
238
|
}
|
|
239
|
-
const
|
|
240
|
-
let
|
|
239
|
+
const Rt = /* @__PURE__ */ new Set();
|
|
240
|
+
let Be = 0;
|
|
241
241
|
function se() {
|
|
242
|
-
if (
|
|
242
|
+
if (Be !== 0)
|
|
243
243
|
return;
|
|
244
|
-
const e =
|
|
244
|
+
const e = et;
|
|
245
245
|
do {
|
|
246
246
|
try {
|
|
247
|
-
for (;
|
|
248
|
-
const t =
|
|
249
|
-
|
|
247
|
+
for (; Be < ke.length; ) {
|
|
248
|
+
const t = ke[Be];
|
|
249
|
+
Be++, Ke(t), ei(t.$$);
|
|
250
250
|
}
|
|
251
251
|
} catch (t) {
|
|
252
|
-
throw
|
|
252
|
+
throw ke.length = 0, Be = 0, t;
|
|
253
253
|
}
|
|
254
|
-
for (
|
|
255
|
-
|
|
256
|
-
for (let t = 0; t <
|
|
257
|
-
const r =
|
|
258
|
-
|
|
254
|
+
for (Ke(null), ke.length = 0, Be = 0; gt.length; )
|
|
255
|
+
gt.pop()();
|
|
256
|
+
for (let t = 0; t < De.length; t += 1) {
|
|
257
|
+
const r = De[t];
|
|
258
|
+
Rt.has(r) || (Rt.add(r), r());
|
|
259
259
|
}
|
|
260
|
-
|
|
261
|
-
} while (
|
|
260
|
+
De.length = 0;
|
|
261
|
+
} while (ke.length);
|
|
262
262
|
for (; lr.length; )
|
|
263
263
|
lr.pop()();
|
|
264
|
-
|
|
264
|
+
Ot = !1, Rt.clear(), Ke(e);
|
|
265
265
|
}
|
|
266
266
|
function ei(e) {
|
|
267
267
|
if (e.fragment !== null) {
|
|
@@ -272,64 +272,64 @@ function ei(e) {
|
|
|
272
272
|
}
|
|
273
273
|
function ti(e) {
|
|
274
274
|
const t = [], r = [];
|
|
275
|
-
|
|
275
|
+
De.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), De = t;
|
|
276
276
|
}
|
|
277
|
-
let
|
|
278
|
-
function
|
|
279
|
-
return
|
|
280
|
-
|
|
281
|
-
})),
|
|
277
|
+
let Qe;
|
|
278
|
+
function Yt() {
|
|
279
|
+
return Qe || (Qe = Promise.resolve(), Qe.then(() => {
|
|
280
|
+
Qe = null;
|
|
281
|
+
})), Qe;
|
|
282
282
|
}
|
|
283
|
-
function
|
|
284
|
-
e.dispatchEvent(
|
|
283
|
+
function Ne(e, t, r) {
|
|
284
|
+
e.dispatchEvent($n(`${t ? "intro" : "outro"}${r}`));
|
|
285
285
|
}
|
|
286
|
-
const
|
|
287
|
-
let
|
|
288
|
-
function
|
|
289
|
-
|
|
286
|
+
const lt = /* @__PURE__ */ new Set();
|
|
287
|
+
let _e;
|
|
288
|
+
function tt() {
|
|
289
|
+
_e = {
|
|
290
290
|
r: 0,
|
|
291
291
|
c: [],
|
|
292
|
-
p:
|
|
292
|
+
p: _e
|
|
293
293
|
// parent group
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
function
|
|
297
|
-
|
|
296
|
+
function rt() {
|
|
297
|
+
_e.r || be(_e.c), _e = _e.p;
|
|
298
298
|
}
|
|
299
299
|
function fe(e, t) {
|
|
300
|
-
e && e.i && (
|
|
300
|
+
e && e.i && (lt.delete(e), e.i(t));
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function Fe(e, t, r, n) {
|
|
303
303
|
if (e && e.o) {
|
|
304
|
-
if (
|
|
304
|
+
if (lt.has(e))
|
|
305
305
|
return;
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
lt.add(e), _e.c.push(() => {
|
|
307
|
+
lt.delete(e), n && (r && e.d(1), n());
|
|
308
308
|
}), e.o(t);
|
|
309
309
|
} else
|
|
310
310
|
n && n();
|
|
311
311
|
}
|
|
312
|
-
const
|
|
312
|
+
const Qt = { duration: 0 };
|
|
313
313
|
function ri(e, t, r) {
|
|
314
314
|
const n = { direction: "in" };
|
|
315
315
|
let i = t(e, r, n), o = !1, s, a, d = 0;
|
|
316
316
|
function l() {
|
|
317
|
-
s &&
|
|
317
|
+
s && bt(e, s);
|
|
318
318
|
}
|
|
319
319
|
function u() {
|
|
320
320
|
const {
|
|
321
321
|
delay: h = 0,
|
|
322
322
|
duration: g = 300,
|
|
323
|
-
easing: b =
|
|
323
|
+
easing: b = wt,
|
|
324
324
|
tick: w = ue,
|
|
325
325
|
css: P
|
|
326
|
-
} = i ||
|
|
327
|
-
P && (s =
|
|
328
|
-
const S =
|
|
329
|
-
a && a.abort(), o = !0, he(() =>
|
|
326
|
+
} = i || Qt;
|
|
327
|
+
P && (s = mt(e, 0, 1, g, h, b, P, d++)), w(0, 1);
|
|
328
|
+
const S = qt() + h, E = S + g;
|
|
329
|
+
a && a.abort(), o = !0, he(() => Ne(e, !0, "start")), a = Wt((_) => {
|
|
330
330
|
if (o) {
|
|
331
331
|
if (_ >= E)
|
|
332
|
-
return w(1, 0),
|
|
332
|
+
return w(1, 0), Ne(e, !0, "end"), l(), o = !1;
|
|
333
333
|
if (_ >= S) {
|
|
334
334
|
const H = b((_ - S) / g);
|
|
335
335
|
w(H, 1 - H);
|
|
@@ -341,7 +341,7 @@ function ri(e, t, r) {
|
|
|
341
341
|
let c = !1;
|
|
342
342
|
return {
|
|
343
343
|
start() {
|
|
344
|
-
c || (c = !0,
|
|
344
|
+
c || (c = !0, bt(e), $e(i) ? (i = i(n), Yt().then(u)) : u());
|
|
345
345
|
},
|
|
346
346
|
invalidate() {
|
|
347
347
|
c = !1;
|
|
@@ -354,24 +354,24 @@ function ri(e, t, r) {
|
|
|
354
354
|
function ni(e, t, r) {
|
|
355
355
|
const n = { direction: "out" };
|
|
356
356
|
let i = t(e, r, n), o = !0, s;
|
|
357
|
-
const a =
|
|
357
|
+
const a = _e;
|
|
358
358
|
a.r += 1;
|
|
359
359
|
let d;
|
|
360
360
|
function l() {
|
|
361
361
|
const {
|
|
362
362
|
delay: u = 0,
|
|
363
363
|
duration: c = 300,
|
|
364
|
-
easing: h =
|
|
364
|
+
easing: h = wt,
|
|
365
365
|
tick: g = ue,
|
|
366
366
|
css: b
|
|
367
|
-
} = i ||
|
|
368
|
-
b && (s =
|
|
369
|
-
const w =
|
|
370
|
-
he(() =>
|
|
371
|
-
e.inert, e.inert = !0),
|
|
367
|
+
} = i || Qt;
|
|
368
|
+
b && (s = mt(e, 1, 0, c, u, h, b));
|
|
369
|
+
const w = qt() + u, P = w + c;
|
|
370
|
+
he(() => Ne(e, !1, "start")), "inert" in e && (d = /** @type {HTMLElement} */
|
|
371
|
+
e.inert, e.inert = !0), Wt((S) => {
|
|
372
372
|
if (o) {
|
|
373
373
|
if (S >= P)
|
|
374
|
-
return g(0, 1),
|
|
374
|
+
return g(0, 1), Ne(e, !1, "end"), --a.r || be(a.c), !1;
|
|
375
375
|
if (S >= w) {
|
|
376
376
|
const E = h((S - w) / c);
|
|
377
377
|
g(1 - E, E);
|
|
@@ -380,18 +380,18 @@ function ni(e, t, r) {
|
|
|
380
380
|
return o;
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
-
return
|
|
383
|
+
return $e(i) ? Yt().then(() => {
|
|
384
384
|
i = i(n), l();
|
|
385
385
|
}) : l(), {
|
|
386
386
|
end(u) {
|
|
387
|
-
u && "inert" in e && (e.inert = d), u && i.tick && i.tick(1, 0), o && (s &&
|
|
387
|
+
u && "inert" in e && (e.inert = d), u && i.tick && i.tick(1, 0), o && (s && bt(e, s), o = !1);
|
|
388
388
|
}
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function Pe(e, t, r, n) {
|
|
392
392
|
let o = t(e, r, { direction: "both" }), s = n ? 0 : 1, a = null, d = null, l = null, u;
|
|
393
393
|
function c() {
|
|
394
|
-
l &&
|
|
394
|
+
l && bt(e, l);
|
|
395
395
|
}
|
|
396
396
|
function h(b, w) {
|
|
397
397
|
const P = (
|
|
@@ -412,16 +412,16 @@ function xe(e, t, r, n) {
|
|
|
412
412
|
const {
|
|
413
413
|
delay: w = 0,
|
|
414
414
|
duration: P = 300,
|
|
415
|
-
easing: S =
|
|
415
|
+
easing: S = wt,
|
|
416
416
|
tick: E = ue,
|
|
417
417
|
css: _
|
|
418
|
-
} = o ||
|
|
419
|
-
start:
|
|
418
|
+
} = o || Qt, H = {
|
|
419
|
+
start: qt() + w,
|
|
420
420
|
b
|
|
421
421
|
};
|
|
422
|
-
b || (H.group =
|
|
423
|
-
e.inert, e.inert = !0)), a || d ? d = H : (_ && (c(), l =
|
|
424
|
-
if (d && T > d.start && (a = h(d, P), d = null,
|
|
422
|
+
b || (H.group = _e, _e.r += 1), "inert" in e && (b ? u !== void 0 && (e.inert = u) : (u = /** @type {HTMLElement} */
|
|
423
|
+
e.inert, e.inert = !0)), a || d ? d = H : (_ && (c(), l = mt(e, s, b, P, w, S, _)), b && E(0, 1), a = h(H, P), he(() => Ne(e, b, "start")), Wt((T) => {
|
|
424
|
+
if (d && T > d.start && (a = h(d, P), d = null, Ne(e, a.b, "start"), _ && (c(), l = mt(
|
|
425
425
|
e,
|
|
426
426
|
s,
|
|
427
427
|
a.b,
|
|
@@ -431,10 +431,10 @@ function xe(e, t, r, n) {
|
|
|
431
431
|
o.css
|
|
432
432
|
))), a) {
|
|
433
433
|
if (T >= a.end)
|
|
434
|
-
E(s = a.b, 1 - s),
|
|
434
|
+
E(s = a.b, 1 - s), Ne(e, a.b, "end"), d || (a.b ? c() : --a.group.r || be(a.group.c)), a = null;
|
|
435
435
|
else if (T >= a.start) {
|
|
436
|
-
const
|
|
437
|
-
s = a.a + a.d * S(
|
|
436
|
+
const j = T - a.start;
|
|
437
|
+
s = a.a + a.d * S(j / a.duration), E(s, 1 - s);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
return !!(a || d);
|
|
@@ -442,7 +442,7 @@ function xe(e, t, r, n) {
|
|
|
442
442
|
}
|
|
443
443
|
return {
|
|
444
444
|
run(b) {
|
|
445
|
-
|
|
445
|
+
$e(o) ? Yt().then(() => {
|
|
446
446
|
o = o({ direction: b ? "in" : "out" }), g(b);
|
|
447
447
|
}) : g(b);
|
|
448
448
|
},
|
|
@@ -457,7 +457,7 @@ function ur(e) {
|
|
|
457
457
|
function ii(e, t, r) {
|
|
458
458
|
const { fragment: n, after_update: i } = e.$$;
|
|
459
459
|
n && n.m(t, r), he(() => {
|
|
460
|
-
const o = e.$$.on_mount.map(Fr).filter(
|
|
460
|
+
const o = e.$$.on_mount.map(Fr).filter($e);
|
|
461
461
|
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : be(o), e.$$.on_mount = [];
|
|
462
462
|
}), i.forEach(he);
|
|
463
463
|
}
|
|
@@ -466,11 +466,11 @@ function oi(e, t) {
|
|
|
466
466
|
r.fragment !== null && (ti(r.after_update), be(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
467
467
|
}
|
|
468
468
|
function si(e, t) {
|
|
469
|
-
e.$$.dirty[0] === -1 && (
|
|
469
|
+
e.$$.dirty[0] === -1 && (ke.push(e), Kn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
470
470
|
}
|
|
471
471
|
function ai(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
472
|
-
const d =
|
|
473
|
-
|
|
472
|
+
const d = et;
|
|
473
|
+
Ke(e);
|
|
474
474
|
const l = e.$$ = {
|
|
475
475
|
fragment: null,
|
|
476
476
|
ctx: [],
|
|
@@ -499,13 +499,13 @@ function ai(e, t, r, n, i, o, s = null, a = [-1]) {
|
|
|
499
499
|
return l.ctx && i(l.ctx[c], l.ctx[c] = b) && (!l.skip_bound && l.bound[c] && l.bound[c](b), u && si(e, c)), h;
|
|
500
500
|
}) : [], l.update(), u = !0, be(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
501
501
|
if (t.hydrate) {
|
|
502
|
-
const c =
|
|
502
|
+
const c = Vn(t.target);
|
|
503
503
|
l.fragment && l.fragment.l(c), c.forEach(Y);
|
|
504
504
|
} else
|
|
505
505
|
l.fragment && l.fragment.c();
|
|
506
506
|
t.intro && fe(e.$$.fragment), ii(e, t.target, t.anchor), se();
|
|
507
507
|
}
|
|
508
|
-
|
|
508
|
+
Ke(d);
|
|
509
509
|
}
|
|
510
510
|
let qr;
|
|
511
511
|
typeof HTMLElement == "function" && (qr = class extends HTMLElement {
|
|
@@ -574,7 +574,7 @@ typeof HTMLElement == "function" && (qr = class extends HTMLElement {
|
|
|
574
574
|
o in n && (r[o] = [t(o)]);
|
|
575
575
|
for (const o of this.attributes) {
|
|
576
576
|
const s = this.$$g_p(o.name);
|
|
577
|
-
s in this.$$d || (this.$$d[s] =
|
|
577
|
+
s in this.$$d || (this.$$d[s] = ut(s, o.value, this.$$p_d, "toProp"));
|
|
578
578
|
}
|
|
579
579
|
for (const o in this.$$p_d)
|
|
580
580
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
@@ -591,7 +591,7 @@ typeof HTMLElement == "function" && (qr = class extends HTMLElement {
|
|
|
591
591
|
this.$$r = !0;
|
|
592
592
|
for (const o in this.$$p_d)
|
|
593
593
|
if (this.$$d[o] = this.$$c.$$.ctx[this.$$c.$$.props[o]], this.$$p_d[o].reflect) {
|
|
594
|
-
const s =
|
|
594
|
+
const s = ut(
|
|
595
595
|
o,
|
|
596
596
|
this.$$d[o],
|
|
597
597
|
this.$$p_d,
|
|
@@ -615,7 +615,7 @@ typeof HTMLElement == "function" && (qr = class extends HTMLElement {
|
|
|
615
615
|
// and setting attributes through setAttribute etc, this is helpful
|
|
616
616
|
attributeChangedCallback(t, r, n) {
|
|
617
617
|
var i;
|
|
618
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
618
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ut(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
|
|
619
619
|
}
|
|
620
620
|
disconnectedCallback() {
|
|
621
621
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -628,7 +628,7 @@ typeof HTMLElement == "function" && (qr = class extends HTMLElement {
|
|
|
628
628
|
) || t;
|
|
629
629
|
}
|
|
630
630
|
});
|
|
631
|
-
function
|
|
631
|
+
function ut(e, t, r, n) {
|
|
632
632
|
var o;
|
|
633
633
|
const i = (o = r[e]) == null ? void 0 : o.type;
|
|
634
634
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
@@ -676,7 +676,7 @@ function li(e, t, r, n, i, o) {
|
|
|
676
676
|
},
|
|
677
677
|
set(d) {
|
|
678
678
|
var l;
|
|
679
|
-
d =
|
|
679
|
+
d = ut(a, d, t), this.$$d[a] = d, (l = this.$$c) == null || l.$set({ [a]: d });
|
|
680
680
|
}
|
|
681
681
|
});
|
|
682
682
|
}), n.forEach((a) => {
|
|
@@ -719,7 +719,7 @@ class ui {
|
|
|
719
719
|
* @returns {() => void}
|
|
720
720
|
*/
|
|
721
721
|
$on(t, r) {
|
|
722
|
-
if (
|
|
722
|
+
if (!$e(r))
|
|
723
723
|
return ue;
|
|
724
724
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
725
725
|
return n.push(r), () => {
|
|
@@ -744,10 +744,10 @@ function fi(e) {
|
|
|
744
744
|
const t = e - 1;
|
|
745
745
|
return t * t * t + 1;
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function Lt(e) {
|
|
748
748
|
return --e * e * e * e * e + 1;
|
|
749
749
|
}
|
|
750
|
-
function
|
|
750
|
+
function Ce(e, { delay: t = 0, duration: r = 400, easing: n = ci, amount: i = 5, opacity: o = 0 } = {}) {
|
|
751
751
|
const s = getComputedStyle(e), a = +s.opacity, d = s.filter === "none" ? "" : s.filter, l = a * (1 - o), [u, c] = Fn(i);
|
|
752
752
|
return {
|
|
753
753
|
delay: t,
|
|
@@ -756,7 +756,7 @@ function Re(e, { delay: t = 0, duration: r = 400, easing: n = ci, amount: i = 5,
|
|
|
756
756
|
css: (h, g) => `opacity: ${a - l * g}; filter: ${d} blur(${g * u}${c});`
|
|
757
757
|
};
|
|
758
758
|
}
|
|
759
|
-
function dr(e, { delay: t = 0, duration: r = 400, easing: n =
|
|
759
|
+
function dr(e, { delay: t = 0, duration: r = 400, easing: n = wt } = {}) {
|
|
760
760
|
const i = +getComputedStyle(e).opacity;
|
|
761
761
|
return {
|
|
762
762
|
delay: t,
|
|
@@ -777,24 +777,24 @@ function cr(e, { delay: t = 0, duration: r = 400, easing: n = fi, start: i = 0,
|
|
|
777
777
|
`
|
|
778
778
|
};
|
|
779
779
|
}
|
|
780
|
-
const
|
|
780
|
+
const Oe = [];
|
|
781
781
|
function hi(e, t) {
|
|
782
782
|
return {
|
|
783
|
-
subscribe:
|
|
783
|
+
subscribe: _t(e, t).subscribe
|
|
784
784
|
};
|
|
785
785
|
}
|
|
786
|
-
function
|
|
786
|
+
function _t(e, t = ue) {
|
|
787
787
|
let r;
|
|
788
788
|
const n = /* @__PURE__ */ new Set();
|
|
789
789
|
function i(a) {
|
|
790
790
|
if (jr(e, a) && (e = a, r)) {
|
|
791
|
-
const d = !
|
|
791
|
+
const d = !Oe.length;
|
|
792
792
|
for (const l of n)
|
|
793
|
-
l[1](),
|
|
793
|
+
l[1](), Oe.push(l, e);
|
|
794
794
|
if (d) {
|
|
795
|
-
for (let l = 0; l <
|
|
796
|
-
|
|
797
|
-
|
|
795
|
+
for (let l = 0; l < Oe.length; l += 2)
|
|
796
|
+
Oe[l][0](Oe[l + 1]);
|
|
797
|
+
Oe.length = 0;
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
800
|
}
|
|
@@ -809,7 +809,7 @@ function xt(e, t = ue) {
|
|
|
809
809
|
}
|
|
810
810
|
return { set: i, update: o, subscribe: s };
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function qe(e, t, r) {
|
|
813
813
|
const n = !Array.isArray(e), i = n ? [e] : e;
|
|
814
814
|
if (!i.every(Boolean))
|
|
815
815
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
@@ -823,7 +823,7 @@ function Xe(e, t, r) {
|
|
|
823
823
|
return;
|
|
824
824
|
c();
|
|
825
825
|
const b = t(n ? l[0] : l, s, a);
|
|
826
|
-
o ? s(b) : c =
|
|
826
|
+
o ? s(b) : c = $e(b) ? b : ue;
|
|
827
827
|
}, g = i.map(
|
|
828
828
|
(b, w) => zr(
|
|
829
829
|
b,
|
|
@@ -860,19 +860,19 @@ function wi(e) {
|
|
|
860
860
|
function _i(e) {
|
|
861
861
|
return Array.isArray(e) ? [] : {};
|
|
862
862
|
}
|
|
863
|
-
function
|
|
864
|
-
return t.clone !== !1 && t.isMergeableObject(e) ?
|
|
863
|
+
function nt(e, t) {
|
|
864
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? je(_i(e), e, t) : e;
|
|
865
865
|
}
|
|
866
866
|
function Pi(e, t, r) {
|
|
867
867
|
return e.concat(t).map(function(n) {
|
|
868
|
-
return
|
|
868
|
+
return nt(n, r);
|
|
869
869
|
});
|
|
870
870
|
}
|
|
871
871
|
function xi(e, t) {
|
|
872
872
|
if (!t.customMerge)
|
|
873
|
-
return
|
|
873
|
+
return je;
|
|
874
874
|
var r = t.customMerge(e);
|
|
875
|
-
return typeof r == "function" ? r :
|
|
875
|
+
return typeof r == "function" ? r : je;
|
|
876
876
|
}
|
|
877
877
|
function Ei(e) {
|
|
878
878
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
@@ -895,51 +895,65 @@ function Si(e, t) {
|
|
|
895
895
|
function Ti(e, t, r) {
|
|
896
896
|
var n = {};
|
|
897
897
|
return r.isMergeableObject(e) && fr(e).forEach(function(i) {
|
|
898
|
-
n[i] =
|
|
898
|
+
n[i] = nt(e[i], r);
|
|
899
899
|
}), fr(t).forEach(function(i) {
|
|
900
|
-
Si(e, i) || (Xr(e, i) && r.isMergeableObject(t[i]) ? n[i] = xi(i, r)(e[i], t[i], r) : n[i] =
|
|
900
|
+
Si(e, i) || (Xr(e, i) && r.isMergeableObject(t[i]) ? n[i] = xi(i, r)(e[i], t[i], r) : n[i] = nt(t[i], r));
|
|
901
901
|
}), n;
|
|
902
902
|
}
|
|
903
|
-
function
|
|
904
|
-
r = r || {}, r.arrayMerge = r.arrayMerge || Pi, r.isMergeableObject = r.isMergeableObject || mi, r.cloneUnlessOtherwiseSpecified =
|
|
903
|
+
function je(e, t, r) {
|
|
904
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || Pi, r.isMergeableObject = r.isMergeableObject || mi, r.cloneUnlessOtherwiseSpecified = nt;
|
|
905
905
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
906
|
-
return o ? n ? r.arrayMerge(e, t, r) : Ti(e, t, r) :
|
|
906
|
+
return o ? n ? r.arrayMerge(e, t, r) : Ti(e, t, r) : nt(t, r);
|
|
907
907
|
}
|
|
908
|
-
|
|
908
|
+
je.all = function(t, r) {
|
|
909
909
|
if (!Array.isArray(t))
|
|
910
910
|
throw new Error("first argument should be an array");
|
|
911
911
|
return t.reduce(function(n, i) {
|
|
912
|
-
return
|
|
912
|
+
return je(n, i, r);
|
|
913
913
|
}, {});
|
|
914
914
|
};
|
|
915
|
-
var Ci =
|
|
915
|
+
var Ci = je, Ri = Ci;
|
|
916
916
|
const Li = /* @__PURE__ */ pi(Ri);
|
|
917
|
-
|
|
918
|
-
|
|
917
|
+
/*! *****************************************************************************
|
|
918
|
+
Copyright (c) Microsoft Corporation.
|
|
919
|
+
|
|
920
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
921
|
+
purpose with or without fee is hereby granted.
|
|
922
|
+
|
|
923
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
924
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
925
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
926
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
927
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
928
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
929
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
930
|
+
***************************************************************************** */
|
|
931
|
+
var kt = function(e, t) {
|
|
932
|
+
return kt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
919
933
|
r.__proto__ = n;
|
|
920
934
|
} || function(r, n) {
|
|
921
935
|
for (var i in n)
|
|
922
936
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
923
|
-
},
|
|
937
|
+
}, kt(e, t);
|
|
924
938
|
};
|
|
925
|
-
function
|
|
939
|
+
function Pt(e, t) {
|
|
926
940
|
if (typeof t != "function" && t !== null)
|
|
927
941
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
928
|
-
|
|
942
|
+
kt(e, t);
|
|
929
943
|
function r() {
|
|
930
944
|
this.constructor = e;
|
|
931
945
|
}
|
|
932
946
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
933
947
|
}
|
|
934
|
-
var
|
|
935
|
-
return
|
|
948
|
+
var B = function() {
|
|
949
|
+
return B = Object.assign || function(t) {
|
|
936
950
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
937
951
|
r = arguments[n];
|
|
938
952
|
for (var o in r)
|
|
939
953
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
940
954
|
}
|
|
941
955
|
return t;
|
|
942
|
-
},
|
|
956
|
+
}, B.apply(this, arguments);
|
|
943
957
|
};
|
|
944
958
|
function Hi(e, t) {
|
|
945
959
|
var r = {};
|
|
@@ -950,14 +964,14 @@ function Hi(e, t) {
|
|
|
950
964
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
951
965
|
return r;
|
|
952
966
|
}
|
|
953
|
-
function
|
|
954
|
-
if (
|
|
967
|
+
function Ht(e, t, r) {
|
|
968
|
+
if (arguments.length === 2)
|
|
955
969
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
956
970
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
957
|
-
return e.concat(o ||
|
|
971
|
+
return e.concat(o || t);
|
|
958
972
|
}
|
|
959
|
-
function
|
|
960
|
-
var r = t && t.cache ? t.cache :
|
|
973
|
+
function At(e, t) {
|
|
974
|
+
var r = t && t.cache ? t.cache : Oi, n = t && t.serializer ? t.serializer : Bi, i = t && t.strategy ? t.strategy : Ni;
|
|
961
975
|
return i(e, {
|
|
962
976
|
cache: r,
|
|
963
977
|
serializer: n
|
|
@@ -966,103 +980,95 @@ function It(e, t) {
|
|
|
966
980
|
function Ai(e) {
|
|
967
981
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
968
982
|
}
|
|
969
|
-
function
|
|
983
|
+
function Wr(e, t, r, n) {
|
|
970
984
|
var i = Ai(n) ? n : r(n), o = t.get(i);
|
|
971
985
|
return typeof o == "undefined" && (o = e.call(this, n), t.set(i, o)), o;
|
|
972
986
|
}
|
|
973
|
-
function
|
|
987
|
+
function Zr(e, t, r) {
|
|
974
988
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
975
989
|
return typeof o == "undefined" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
976
990
|
}
|
|
977
|
-
function
|
|
991
|
+
function Jt(e, t, r, n, i) {
|
|
978
992
|
return r.bind(t, e, n, i);
|
|
979
993
|
}
|
|
994
|
+
function Ni(e, t) {
|
|
995
|
+
var r = e.length === 1 ? Wr : Zr;
|
|
996
|
+
return Jt(e, this, r, t.cache.create(), t.serializer);
|
|
997
|
+
}
|
|
980
998
|
function Ii(e, t) {
|
|
981
|
-
|
|
982
|
-
return Zr(e, this, r, t.cache.create(), t.serializer);
|
|
999
|
+
return Jt(e, this, Zr, t.cache.create(), t.serializer);
|
|
983
1000
|
}
|
|
984
|
-
function
|
|
985
|
-
return
|
|
1001
|
+
function Mi(e, t) {
|
|
1002
|
+
return Jt(e, this, Wr, t.cache.create(), t.serializer);
|
|
986
1003
|
}
|
|
987
|
-
var
|
|
1004
|
+
var Bi = function() {
|
|
988
1005
|
return JSON.stringify(arguments);
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
}()
|
|
1001
|
-
), ki = {
|
|
1006
|
+
};
|
|
1007
|
+
function Kt() {
|
|
1008
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
1009
|
+
}
|
|
1010
|
+
Kt.prototype.get = function(e) {
|
|
1011
|
+
return this.cache[e];
|
|
1012
|
+
};
|
|
1013
|
+
Kt.prototype.set = function(e, t) {
|
|
1014
|
+
this.cache[e] = t;
|
|
1015
|
+
};
|
|
1016
|
+
var Oi = {
|
|
1002
1017
|
create: function() {
|
|
1003
|
-
return new
|
|
1018
|
+
return new Kt();
|
|
1004
1019
|
}
|
|
1005
|
-
},
|
|
1006
|
-
variadic:
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1010
|
-
r = arguments[n];
|
|
1011
|
-
for (var o in r)
|
|
1012
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1013
|
-
}
|
|
1014
|
-
return t;
|
|
1015
|
-
}, yt.apply(this, arguments);
|
|
1016
|
-
};
|
|
1017
|
-
var A;
|
|
1020
|
+
}, Nt = {
|
|
1021
|
+
variadic: Ii,
|
|
1022
|
+
monadic: Mi
|
|
1023
|
+
}, A;
|
|
1018
1024
|
(function(e) {
|
|
1019
1025
|
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";
|
|
1020
1026
|
})(A || (A = {}));
|
|
1021
|
-
var
|
|
1027
|
+
var z;
|
|
1022
1028
|
(function(e) {
|
|
1023
1029
|
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
1024
|
-
})(
|
|
1025
|
-
var
|
|
1030
|
+
})(z || (z = {}));
|
|
1031
|
+
var ze;
|
|
1026
1032
|
(function(e) {
|
|
1027
1033
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
1028
|
-
})(
|
|
1034
|
+
})(ze || (ze = {}));
|
|
1029
1035
|
function hr(e) {
|
|
1030
|
-
return e.type ===
|
|
1036
|
+
return e.type === z.literal;
|
|
1031
1037
|
}
|
|
1032
|
-
function
|
|
1033
|
-
return e.type ===
|
|
1038
|
+
function ki(e) {
|
|
1039
|
+
return e.type === z.argument;
|
|
1034
1040
|
}
|
|
1035
1041
|
function Yr(e) {
|
|
1036
|
-
return e.type ===
|
|
1042
|
+
return e.type === z.number;
|
|
1037
1043
|
}
|
|
1038
1044
|
function Qr(e) {
|
|
1039
|
-
return e.type ===
|
|
1045
|
+
return e.type === z.date;
|
|
1040
1046
|
}
|
|
1041
1047
|
function Jr(e) {
|
|
1042
|
-
return e.type ===
|
|
1048
|
+
return e.type === z.time;
|
|
1043
1049
|
}
|
|
1044
1050
|
function Kr(e) {
|
|
1045
|
-
return e.type ===
|
|
1051
|
+
return e.type === z.select;
|
|
1046
1052
|
}
|
|
1047
1053
|
function en(e) {
|
|
1048
|
-
return e.type ===
|
|
1054
|
+
return e.type === z.plural;
|
|
1049
1055
|
}
|
|
1050
|
-
function
|
|
1051
|
-
return e.type ===
|
|
1056
|
+
function Ui(e) {
|
|
1057
|
+
return e.type === z.pound;
|
|
1052
1058
|
}
|
|
1053
1059
|
function tn(e) {
|
|
1054
|
-
return e.type ===
|
|
1060
|
+
return e.type === z.tag;
|
|
1055
1061
|
}
|
|
1056
1062
|
function rn(e) {
|
|
1057
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1063
|
+
return !!(e && typeof e == "object" && e.type === ze.number);
|
|
1058
1064
|
}
|
|
1059
|
-
function
|
|
1060
|
-
return !!(e && typeof e == "object" && e.type ===
|
|
1065
|
+
function Ut(e) {
|
|
1066
|
+
return !!(e && typeof e == "object" && e.type === ze.dateTime);
|
|
1061
1067
|
}
|
|
1062
|
-
var nn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
|
|
1063
|
-
function
|
|
1068
|
+
var nn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Di = /(?:[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;
|
|
1069
|
+
function Fi(e) {
|
|
1064
1070
|
var t = {};
|
|
1065
|
-
return e.replace(
|
|
1071
|
+
return e.replace(Di, function(r) {
|
|
1066
1072
|
var n = r.length;
|
|
1067
1073
|
switch (r[0]) {
|
|
1068
1074
|
case "G":
|
|
@@ -1151,21 +1157,11 @@ function ji(e) {
|
|
|
1151
1157
|
return "";
|
|
1152
1158
|
}), t;
|
|
1153
1159
|
}
|
|
1154
|
-
var
|
|
1155
|
-
|
|
1156
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
1157
|
-
r = arguments[n];
|
|
1158
|
-
for (var o in r)
|
|
1159
|
-
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
1160
|
-
}
|
|
1161
|
-
return t;
|
|
1162
|
-
}, $.apply(this, arguments);
|
|
1163
|
-
};
|
|
1164
|
-
var zi = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1165
|
-
function Gi(e) {
|
|
1160
|
+
var ji = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
1161
|
+
function zi(e) {
|
|
1166
1162
|
if (e.length === 0)
|
|
1167
1163
|
throw new Error("Number skeleton cannot be empty");
|
|
1168
|
-
for (var t = e.split(
|
|
1164
|
+
for (var t = e.split(ji).filter(function(h) {
|
|
1169
1165
|
return h.length > 0;
|
|
1170
1166
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
1171
1167
|
var o = i[n], s = o.split("/");
|
|
@@ -1180,7 +1176,7 @@ function Gi(e) {
|
|
|
1180
1176
|
}
|
|
1181
1177
|
return r;
|
|
1182
1178
|
}
|
|
1183
|
-
function
|
|
1179
|
+
function Gi(e) {
|
|
1184
1180
|
return e.replace(/^(.*?)-/, "");
|
|
1185
1181
|
}
|
|
1186
1182
|
var pr = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, on = /^(@+)?(\+|#+)?[rs]?$/g, Vi = /(\*)(0+)|(#+)(0+)|(0+)/g, sn = /^(0+)$/;
|
|
@@ -1230,7 +1226,7 @@ function an(e) {
|
|
|
1230
1226
|
};
|
|
1231
1227
|
}
|
|
1232
1228
|
}
|
|
1233
|
-
function
|
|
1229
|
+
function $i(e) {
|
|
1234
1230
|
var t;
|
|
1235
1231
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
1236
1232
|
notation: "engineering"
|
|
@@ -1248,7 +1244,7 @@ function br(e) {
|
|
|
1248
1244
|
var t = {}, r = an(e);
|
|
1249
1245
|
return r || t;
|
|
1250
1246
|
}
|
|
1251
|
-
function
|
|
1247
|
+
function qi(e) {
|
|
1252
1248
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
1253
1249
|
var i = n[r];
|
|
1254
1250
|
switch (i.stem) {
|
|
@@ -1272,7 +1268,7 @@ function Xi(e) {
|
|
|
1272
1268
|
continue;
|
|
1273
1269
|
case "measure-unit":
|
|
1274
1270
|
case "unit":
|
|
1275
|
-
t.style = "unit", t.unit =
|
|
1271
|
+
t.style = "unit", t.unit = Gi(i.options[0]);
|
|
1276
1272
|
continue;
|
|
1277
1273
|
case "compact-short":
|
|
1278
1274
|
case "K":
|
|
@@ -1283,13 +1279,13 @@ function Xi(e) {
|
|
|
1283
1279
|
t.notation = "compact", t.compactDisplay = "long";
|
|
1284
1280
|
continue;
|
|
1285
1281
|
case "scientific":
|
|
1286
|
-
t =
|
|
1287
|
-
return
|
|
1282
|
+
t = B(B(B({}, t), { notation: "scientific" }), i.options.reduce(function(d, l) {
|
|
1283
|
+
return B(B({}, d), br(l));
|
|
1288
1284
|
}, {}));
|
|
1289
1285
|
continue;
|
|
1290
1286
|
case "engineering":
|
|
1291
|
-
t =
|
|
1292
|
-
return
|
|
1287
|
+
t = B(B(B({}, t), { notation: "engineering" }), i.options.reduce(function(d, l) {
|
|
1288
|
+
return B(B({}, d), br(l));
|
|
1293
1289
|
}, {}));
|
|
1294
1290
|
continue;
|
|
1295
1291
|
case "notation-simple":
|
|
@@ -1358,21 +1354,21 @@ function Xi(e) {
|
|
|
1358
1354
|
return u === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : h && g ? (t.minimumFractionDigits = h.length, t.maximumFractionDigits = h.length + g.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1359
1355
|
});
|
|
1360
1356
|
var o = i.options[0];
|
|
1361
|
-
o === "w" ? t =
|
|
1357
|
+
o === "w" ? t = B(B({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = B(B({}, t), mr(o)));
|
|
1362
1358
|
continue;
|
|
1363
1359
|
}
|
|
1364
1360
|
if (on.test(i.stem)) {
|
|
1365
|
-
t =
|
|
1361
|
+
t = B(B({}, t), mr(i.stem));
|
|
1366
1362
|
continue;
|
|
1367
1363
|
}
|
|
1368
1364
|
var s = an(i.stem);
|
|
1369
|
-
s && (t =
|
|
1370
|
-
var a =
|
|
1371
|
-
a && (t =
|
|
1365
|
+
s && (t = B(B({}, t), s));
|
|
1366
|
+
var a = $i(i.stem);
|
|
1367
|
+
a && (t = B(B({}, t), a));
|
|
1372
1368
|
}
|
|
1373
1369
|
return t;
|
|
1374
1370
|
}
|
|
1375
|
-
var
|
|
1371
|
+
var at = {
|
|
1376
1372
|
"001": [
|
|
1377
1373
|
"H",
|
|
1378
1374
|
"h"
|
|
@@ -2787,13 +2783,13 @@ var lt = {
|
|
|
2787
2783
|
"h"
|
|
2788
2784
|
]
|
|
2789
2785
|
};
|
|
2790
|
-
function
|
|
2786
|
+
function Xi(e, t) {
|
|
2791
2787
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2792
2788
|
var i = e.charAt(n);
|
|
2793
2789
|
if (i === "j") {
|
|
2794
2790
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2795
2791
|
o++, n++;
|
|
2796
|
-
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), d = "a", l =
|
|
2792
|
+
var s = 1 + (o & 1), a = o < 2 ? 1 : 3 + (o >> 1), d = "a", l = Wi(t);
|
|
2797
2793
|
for ((l == "H" || l == "k") && (a = 0); a-- > 0; )
|
|
2798
2794
|
r += d;
|
|
2799
2795
|
for (; s-- > 0; )
|
|
@@ -2803,7 +2799,7 @@ function Wi(e, t) {
|
|
|
2803
2799
|
}
|
|
2804
2800
|
return r;
|
|
2805
2801
|
}
|
|
2806
|
-
function
|
|
2802
|
+
function Wi(e) {
|
|
2807
2803
|
var t = e.hourCycle;
|
|
2808
2804
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2809
2805
|
e.hourCycles && // @ts-ignore
|
|
@@ -2822,23 +2818,23 @@ function Zi(e) {
|
|
|
2822
2818
|
}
|
|
2823
2819
|
var r = e.language, n;
|
|
2824
2820
|
r !== "root" && (n = e.maximize().region);
|
|
2825
|
-
var i =
|
|
2821
|
+
var i = at[n || ""] || at[r || ""] || at["".concat(r, "-001")] || at["001"];
|
|
2826
2822
|
return i[0];
|
|
2827
2823
|
}
|
|
2828
|
-
var
|
|
2824
|
+
var It, Zi = new RegExp("^".concat(nn.source, "*")), Yi = new RegExp("".concat(nn.source, "*$"));
|
|
2829
2825
|
function N(e, t) {
|
|
2830
2826
|
return { start: e, end: t };
|
|
2831
2827
|
}
|
|
2832
|
-
var
|
|
2828
|
+
var Qi = !!String.prototype.startsWith && "_a".startsWith("a", 1), Ji = !!String.fromCodePoint, Ki = !!Object.fromEntries, eo = !!String.prototype.codePointAt, to = !!String.prototype.trimStart, ro = !!String.prototype.trimEnd, no = !!Number.isSafeInteger, io = no ? Number.isSafeInteger : function(e) {
|
|
2833
2829
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2834
|
-
},
|
|
2830
|
+
}, Dt = !0;
|
|
2835
2831
|
try {
|
|
2836
|
-
var
|
|
2837
|
-
|
|
2832
|
+
var oo = un("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2833
|
+
Dt = ((It = oo.exec("a")) === null || It === void 0 ? void 0 : It[0]) === "a";
|
|
2838
2834
|
} catch (e) {
|
|
2839
|
-
|
|
2835
|
+
Dt = !1;
|
|
2840
2836
|
}
|
|
2841
|
-
var gr =
|
|
2837
|
+
var gr = Qi ? (
|
|
2842
2838
|
// Native
|
|
2843
2839
|
function(t, r, n) {
|
|
2844
2840
|
return t.startsWith(r, n);
|
|
@@ -2848,7 +2844,7 @@ var gr = Ji ? (
|
|
|
2848
2844
|
function(t, r, n) {
|
|
2849
2845
|
return t.slice(n, n + r.length) === r;
|
|
2850
2846
|
}
|
|
2851
|
-
),
|
|
2847
|
+
), Ft = Ji ? String.fromCodePoint : (
|
|
2852
2848
|
// IE11
|
|
2853
2849
|
function() {
|
|
2854
2850
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2862,7 +2858,7 @@ var gr = Ji ? (
|
|
|
2862
2858
|
}
|
|
2863
2859
|
), vr = (
|
|
2864
2860
|
// native
|
|
2865
|
-
|
|
2861
|
+
Ki ? Object.fromEntries : (
|
|
2866
2862
|
// Ponyfill
|
|
2867
2863
|
function(t) {
|
|
2868
2864
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2872,7 +2868,7 @@ var gr = Ji ? (
|
|
|
2872
2868
|
return r;
|
|
2873
2869
|
}
|
|
2874
2870
|
)
|
|
2875
|
-
), ln =
|
|
2871
|
+
), ln = eo ? (
|
|
2876
2872
|
// Native
|
|
2877
2873
|
function(t, r) {
|
|
2878
2874
|
return t.codePointAt(r);
|
|
@@ -2886,7 +2882,7 @@ var gr = Ji ? (
|
|
|
2886
2882
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2887
2883
|
}
|
|
2888
2884
|
}
|
|
2889
|
-
),
|
|
2885
|
+
), so = to ? (
|
|
2890
2886
|
// Native
|
|
2891
2887
|
function(t) {
|
|
2892
2888
|
return t.trimStart();
|
|
@@ -2894,9 +2890,9 @@ var gr = Ji ? (
|
|
|
2894
2890
|
) : (
|
|
2895
2891
|
// Ponyfill
|
|
2896
2892
|
function(t) {
|
|
2897
|
-
return t.replace(
|
|
2893
|
+
return t.replace(Zi, "");
|
|
2898
2894
|
}
|
|
2899
|
-
),
|
|
2895
|
+
), ao = ro ? (
|
|
2900
2896
|
// Native
|
|
2901
2897
|
function(t) {
|
|
2902
2898
|
return t.trimEnd();
|
|
@@ -2904,32 +2900,32 @@ var gr = Ji ? (
|
|
|
2904
2900
|
) : (
|
|
2905
2901
|
// Ponyfill
|
|
2906
2902
|
function(t) {
|
|
2907
|
-
return t.replace(
|
|
2903
|
+
return t.replace(Yi, "");
|
|
2908
2904
|
}
|
|
2909
2905
|
);
|
|
2910
2906
|
function un(e, t) {
|
|
2911
2907
|
return new RegExp(e, t);
|
|
2912
2908
|
}
|
|
2913
|
-
var
|
|
2914
|
-
if (
|
|
2909
|
+
var jt;
|
|
2910
|
+
if (Dt) {
|
|
2915
2911
|
var yr = un("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2916
|
-
|
|
2912
|
+
jt = function(t, r) {
|
|
2917
2913
|
var n;
|
|
2918
2914
|
yr.lastIndex = r;
|
|
2919
2915
|
var i = yr.exec(t);
|
|
2920
2916
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2921
2917
|
};
|
|
2922
2918
|
} else
|
|
2923
|
-
|
|
2919
|
+
jt = function(t, r) {
|
|
2924
2920
|
for (var n = []; ; ) {
|
|
2925
2921
|
var i = ln(t, r);
|
|
2926
|
-
if (i === void 0 || dn(i) ||
|
|
2922
|
+
if (i === void 0 || dn(i) || fo(i))
|
|
2927
2923
|
break;
|
|
2928
2924
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2929
2925
|
}
|
|
2930
|
-
return
|
|
2926
|
+
return Ft.apply(void 0, n);
|
|
2931
2927
|
};
|
|
2932
|
-
var
|
|
2928
|
+
var lo = (
|
|
2933
2929
|
/** @class */
|
|
2934
2930
|
function() {
|
|
2935
2931
|
function e(t, r) {
|
|
@@ -2953,14 +2949,14 @@ var uo = (
|
|
|
2953
2949
|
if (o === 35 && (r === "plural" || r === "selectordinal")) {
|
|
2954
2950
|
var a = this.clonePosition();
|
|
2955
2951
|
this.bump(), i.push({
|
|
2956
|
-
type:
|
|
2952
|
+
type: z.pound,
|
|
2957
2953
|
location: N(a, this.clonePosition())
|
|
2958
2954
|
});
|
|
2959
2955
|
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2960
2956
|
if (n)
|
|
2961
2957
|
break;
|
|
2962
2958
|
return this.error(A.UNMATCHED_CLOSING_TAG, N(this.clonePosition(), this.clonePosition()));
|
|
2963
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2959
|
+
} else if (o === 60 && !this.ignoreTag && zt(this.peek() || 0)) {
|
|
2964
2960
|
var s = this.parseTag(t, r);
|
|
2965
2961
|
if (s.err)
|
|
2966
2962
|
return s;
|
|
@@ -2981,7 +2977,7 @@ var uo = (
|
|
|
2981
2977
|
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2982
2978
|
return {
|
|
2983
2979
|
val: {
|
|
2984
|
-
type:
|
|
2980
|
+
type: z.literal,
|
|
2985
2981
|
value: "<".concat(i, "/>"),
|
|
2986
2982
|
location: N(n, this.clonePosition())
|
|
2987
2983
|
},
|
|
@@ -2993,12 +2989,12 @@ var uo = (
|
|
|
2993
2989
|
return o;
|
|
2994
2990
|
var s = o.val, a = this.clonePosition();
|
|
2995
2991
|
if (this.bumpIf("</")) {
|
|
2996
|
-
if (this.isEOF() ||
|
|
2992
|
+
if (this.isEOF() || !zt(this.char()))
|
|
2997
2993
|
return this.error(A.INVALID_TAG, N(a, this.clonePosition()));
|
|
2998
2994
|
var d = this.clonePosition(), l = this.parseTagName();
|
|
2999
2995
|
return i !== l ? this.error(A.UNMATCHED_CLOSING_TAG, N(d, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
3000
2996
|
val: {
|
|
3001
|
-
type:
|
|
2997
|
+
type: z.tag,
|
|
3002
2998
|
value: i,
|
|
3003
2999
|
children: s,
|
|
3004
3000
|
location: N(n, this.clonePosition())
|
|
@@ -3011,7 +3007,7 @@ var uo = (
|
|
|
3011
3007
|
return this.error(A.INVALID_TAG, N(n, this.clonePosition()));
|
|
3012
3008
|
}, e.prototype.parseTagName = function() {
|
|
3013
3009
|
var t = this.offset();
|
|
3014
|
-
for (this.bump(); !this.isEOF() &&
|
|
3010
|
+
for (this.bump(); !this.isEOF() && co(this.char()); )
|
|
3015
3011
|
this.bump();
|
|
3016
3012
|
return this.message.slice(t, this.offset());
|
|
3017
3013
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -3035,12 +3031,12 @@ var uo = (
|
|
|
3035
3031
|
}
|
|
3036
3032
|
var d = N(n, this.clonePosition());
|
|
3037
3033
|
return {
|
|
3038
|
-
val: { type:
|
|
3034
|
+
val: { type: z.literal, value: i, location: d },
|
|
3039
3035
|
err: null
|
|
3040
3036
|
};
|
|
3041
3037
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
3042
3038
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
3043
|
-
!
|
|
3039
|
+
!uo(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
3044
3040
|
}, e.prototype.tryParseQuote = function(t) {
|
|
3045
3041
|
if (this.isEOF() || this.char() !== 39)
|
|
3046
3042
|
return null;
|
|
@@ -3074,12 +3070,12 @@ var uo = (
|
|
|
3074
3070
|
r.push(n);
|
|
3075
3071
|
this.bump();
|
|
3076
3072
|
}
|
|
3077
|
-
return
|
|
3073
|
+
return Ft.apply(void 0, r);
|
|
3078
3074
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
3079
3075
|
if (this.isEOF())
|
|
3080
3076
|
return null;
|
|
3081
3077
|
var n = this.char();
|
|
3082
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
3078
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ft(n));
|
|
3083
3079
|
}, e.prototype.parseArgument = function(t, r) {
|
|
3084
3080
|
var n = this.clonePosition();
|
|
3085
3081
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -3095,7 +3091,7 @@ var uo = (
|
|
|
3095
3091
|
case 125:
|
|
3096
3092
|
return this.bump(), {
|
|
3097
3093
|
val: {
|
|
3098
|
-
type:
|
|
3094
|
+
type: z.argument,
|
|
3099
3095
|
// value does not include the opening and closing braces.
|
|
3100
3096
|
value: i,
|
|
3101
3097
|
location: N(n, this.clonePosition())
|
|
@@ -3108,7 +3104,7 @@ var uo = (
|
|
|
3108
3104
|
return this.error(A.MALFORMED_ARGUMENT, N(n, this.clonePosition()));
|
|
3109
3105
|
}
|
|
3110
3106
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
3111
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
3107
|
+
var t = this.clonePosition(), r = this.offset(), n = jt(this.message, r), i = r + n.length;
|
|
3112
3108
|
this.bumpTo(i);
|
|
3113
3109
|
var o = this.clonePosition(), s = N(t, o);
|
|
3114
3110
|
return { value: n, location: s };
|
|
@@ -3127,7 +3123,7 @@ var uo = (
|
|
|
3127
3123
|
var u = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
3128
3124
|
if (c.err)
|
|
3129
3125
|
return c;
|
|
3130
|
-
var h =
|
|
3126
|
+
var h = ao(c.val);
|
|
3131
3127
|
if (h.length === 0)
|
|
3132
3128
|
return this.error(A.EXPECT_ARGUMENT_STYLE, N(this.clonePosition(), this.clonePosition()));
|
|
3133
3129
|
var g = N(u, this.clonePosition());
|
|
@@ -3138,24 +3134,24 @@ var uo = (
|
|
|
3138
3134
|
return b;
|
|
3139
3135
|
var w = N(i, this.clonePosition());
|
|
3140
3136
|
if (l && gr(l == null ? void 0 : l.style, "::", 0)) {
|
|
3141
|
-
var P =
|
|
3137
|
+
var P = so(l.style.slice(2));
|
|
3142
3138
|
if (a === "number") {
|
|
3143
3139
|
var c = this.parseNumberSkeletonFromString(P, l.styleLocation);
|
|
3144
3140
|
return c.err ? c : {
|
|
3145
|
-
val: { type:
|
|
3141
|
+
val: { type: z.number, value: n, location: w, style: c.val },
|
|
3146
3142
|
err: null
|
|
3147
3143
|
};
|
|
3148
3144
|
} else {
|
|
3149
3145
|
if (P.length === 0)
|
|
3150
3146
|
return this.error(A.EXPECT_DATE_TIME_SKELETON, w);
|
|
3151
3147
|
var S = P;
|
|
3152
|
-
this.locale && (S =
|
|
3148
|
+
this.locale && (S = Xi(P, this.locale));
|
|
3153
3149
|
var h = {
|
|
3154
|
-
type:
|
|
3150
|
+
type: ze.dateTime,
|
|
3155
3151
|
pattern: S,
|
|
3156
3152
|
location: l.styleLocation,
|
|
3157
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3158
|
-
}, E = a === "date" ?
|
|
3153
|
+
parsedOptions: this.shouldParseSkeletons ? Fi(S) : {}
|
|
3154
|
+
}, E = a === "date" ? z.date : z.time;
|
|
3159
3155
|
return {
|
|
3160
3156
|
val: { type: E, value: n, location: w, style: h },
|
|
3161
3157
|
err: null
|
|
@@ -3164,7 +3160,7 @@ var uo = (
|
|
|
3164
3160
|
}
|
|
3165
3161
|
return {
|
|
3166
3162
|
val: {
|
|
3167
|
-
type: a === "number" ?
|
|
3163
|
+
type: a === "number" ? z.number : a === "date" ? z.date : z.time,
|
|
3168
3164
|
value: n,
|
|
3169
3165
|
location: w,
|
|
3170
3166
|
style: (o = l == null ? void 0 : l.style) !== null && o !== void 0 ? o : null
|
|
@@ -3177,7 +3173,7 @@ var uo = (
|
|
|
3177
3173
|
case "select": {
|
|
3178
3174
|
var _ = this.clonePosition();
|
|
3179
3175
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
3180
|
-
return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, N(_,
|
|
3176
|
+
return this.error(A.EXPECT_SELECT_ARGUMENT_OPTIONS, N(_, B({}, _)));
|
|
3181
3177
|
this.bumpSpace();
|
|
3182
3178
|
var H = this.parseIdentifierIfPossible(), T = 0;
|
|
3183
3179
|
if (a !== "select" && H.value === "offset") {
|
|
@@ -3189,26 +3185,26 @@ var uo = (
|
|
|
3189
3185
|
return c;
|
|
3190
3186
|
this.bumpSpace(), H = this.parseIdentifierIfPossible(), T = c.val;
|
|
3191
3187
|
}
|
|
3192
|
-
var
|
|
3193
|
-
if (
|
|
3194
|
-
return
|
|
3188
|
+
var j = this.tryParsePluralOrSelectOptions(t, a, r, H);
|
|
3189
|
+
if (j.err)
|
|
3190
|
+
return j;
|
|
3195
3191
|
var b = this.tryParseArgumentClose(i);
|
|
3196
3192
|
if (b.err)
|
|
3197
3193
|
return b;
|
|
3198
3194
|
var C = N(i, this.clonePosition());
|
|
3199
3195
|
return a === "select" ? {
|
|
3200
3196
|
val: {
|
|
3201
|
-
type:
|
|
3197
|
+
type: z.select,
|
|
3202
3198
|
value: n,
|
|
3203
|
-
options: vr(
|
|
3199
|
+
options: vr(j.val),
|
|
3204
3200
|
location: C
|
|
3205
3201
|
},
|
|
3206
3202
|
err: null
|
|
3207
3203
|
} : {
|
|
3208
3204
|
val: {
|
|
3209
|
-
type:
|
|
3205
|
+
type: z.plural,
|
|
3210
3206
|
value: n,
|
|
3211
|
-
options: vr(
|
|
3207
|
+
options: vr(j.val),
|
|
3212
3208
|
offset: T,
|
|
3213
3209
|
pluralType: a === "plural" ? "cardinal" : "ordinal",
|
|
3214
3210
|
location: C
|
|
@@ -3259,16 +3255,16 @@ var uo = (
|
|
|
3259
3255
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
3260
3256
|
var n = [];
|
|
3261
3257
|
try {
|
|
3262
|
-
n =
|
|
3258
|
+
n = zi(t);
|
|
3263
3259
|
} catch (i) {
|
|
3264
3260
|
return this.error(A.INVALID_NUMBER_SKELETON, r);
|
|
3265
3261
|
}
|
|
3266
3262
|
return {
|
|
3267
3263
|
val: {
|
|
3268
|
-
type:
|
|
3264
|
+
type: ze.number,
|
|
3269
3265
|
tokens: n,
|
|
3270
3266
|
location: r,
|
|
3271
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
3267
|
+
parsedOptions: this.shouldParseSkeletons ? qi(n) : {}
|
|
3272
3268
|
},
|
|
3273
3269
|
err: null
|
|
3274
3270
|
};
|
|
@@ -3316,7 +3312,7 @@ var uo = (
|
|
|
3316
3312
|
break;
|
|
3317
3313
|
}
|
|
3318
3314
|
var d = N(i, this.clonePosition());
|
|
3319
|
-
return o ? (s *= n,
|
|
3315
|
+
return o ? (s *= n, io(s) ? { val: s, err: null } : this.error(r, d)) : this.error(t, d);
|
|
3320
3316
|
}, e.prototype.offset = function() {
|
|
3321
3317
|
return this.position.offset;
|
|
3322
3318
|
}, e.prototype.isEOF = function() {
|
|
@@ -3382,47 +3378,47 @@ var uo = (
|
|
|
3382
3378
|
}, e;
|
|
3383
3379
|
}()
|
|
3384
3380
|
);
|
|
3385
|
-
function
|
|
3381
|
+
function zt(e) {
|
|
3386
3382
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3387
3383
|
}
|
|
3388
|
-
function
|
|
3389
|
-
return
|
|
3384
|
+
function uo(e) {
|
|
3385
|
+
return zt(e) || e === 47;
|
|
3390
3386
|
}
|
|
3391
|
-
function
|
|
3387
|
+
function co(e) {
|
|
3392
3388
|
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;
|
|
3393
3389
|
}
|
|
3394
3390
|
function dn(e) {
|
|
3395
3391
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3396
3392
|
}
|
|
3397
|
-
function
|
|
3393
|
+
function fo(e) {
|
|
3398
3394
|
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;
|
|
3399
3395
|
}
|
|
3400
|
-
function
|
|
3396
|
+
function Gt(e) {
|
|
3401
3397
|
e.forEach(function(t) {
|
|
3402
3398
|
if (delete t.location, Kr(t) || en(t))
|
|
3403
3399
|
for (var r in t.options)
|
|
3404
|
-
delete t.options[r].location,
|
|
3400
|
+
delete t.options[r].location, Gt(t.options[r].value);
|
|
3405
3401
|
else
|
|
3406
|
-
Yr(t) && rn(t.style) || (Qr(t) || Jr(t)) &&
|
|
3402
|
+
Yr(t) && rn(t.style) || (Qr(t) || Jr(t)) && Ut(t.style) ? delete t.style.location : tn(t) && Gt(t.children);
|
|
3407
3403
|
});
|
|
3408
3404
|
}
|
|
3409
|
-
function
|
|
3410
|
-
t === void 0 && (t = {}), t =
|
|
3411
|
-
var r = new
|
|
3405
|
+
function ho(e, t) {
|
|
3406
|
+
t === void 0 && (t = {}), t = B({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3407
|
+
var r = new lo(e, t).parse();
|
|
3412
3408
|
if (r.err) {
|
|
3413
3409
|
var n = SyntaxError(A[r.err.kind]);
|
|
3414
3410
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3415
3411
|
}
|
|
3416
|
-
return t != null && t.captureLocation ||
|
|
3412
|
+
return t != null && t.captureLocation || Gt(r.val), r.val;
|
|
3417
3413
|
}
|
|
3418
|
-
var
|
|
3414
|
+
var Ge;
|
|
3419
3415
|
(function(e) {
|
|
3420
3416
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3421
|
-
})(
|
|
3422
|
-
var
|
|
3417
|
+
})(Ge || (Ge = {}));
|
|
3418
|
+
var xt = (
|
|
3423
3419
|
/** @class */
|
|
3424
3420
|
function(e) {
|
|
3425
|
-
|
|
3421
|
+
Pt(t, e);
|
|
3426
3422
|
function t(r, n, i) {
|
|
3427
3423
|
var o = e.call(this, r) || this;
|
|
3428
3424
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3434,44 +3430,44 @@ var St = (
|
|
|
3434
3430
|
), wr = (
|
|
3435
3431
|
/** @class */
|
|
3436
3432
|
function(e) {
|
|
3437
|
-
|
|
3433
|
+
Pt(t, e);
|
|
3438
3434
|
function t(r, n, i, o) {
|
|
3439
|
-
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'),
|
|
3435
|
+
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ge.INVALID_VALUE, o) || this;
|
|
3440
3436
|
}
|
|
3441
3437
|
return t;
|
|
3442
|
-
}(
|
|
3443
|
-
),
|
|
3438
|
+
}(xt)
|
|
3439
|
+
), po = (
|
|
3444
3440
|
/** @class */
|
|
3445
3441
|
function(e) {
|
|
3446
|
-
|
|
3442
|
+
Pt(t, e);
|
|
3447
3443
|
function t(r, n, i) {
|
|
3448
|
-
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n),
|
|
3444
|
+
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ge.INVALID_VALUE, i) || this;
|
|
3449
3445
|
}
|
|
3450
3446
|
return t;
|
|
3451
|
-
}(
|
|
3452
|
-
),
|
|
3447
|
+
}(xt)
|
|
3448
|
+
), mo = (
|
|
3453
3449
|
/** @class */
|
|
3454
3450
|
function(e) {
|
|
3455
|
-
|
|
3451
|
+
Pt(t, e);
|
|
3456
3452
|
function t(r, n) {
|
|
3457
|
-
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'),
|
|
3453
|
+
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ge.MISSING_VALUE, n) || this;
|
|
3458
3454
|
}
|
|
3459
3455
|
return t;
|
|
3460
|
-
}(
|
|
3456
|
+
}(xt)
|
|
3461
3457
|
), ie;
|
|
3462
3458
|
(function(e) {
|
|
3463
3459
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3464
3460
|
})(ie || (ie = {}));
|
|
3465
|
-
function
|
|
3461
|
+
function bo(e) {
|
|
3466
3462
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3467
3463
|
var n = t[t.length - 1];
|
|
3468
3464
|
return !n || n.type !== ie.literal || r.type !== ie.literal ? t.push(r) : n.value += r.value, t;
|
|
3469
3465
|
}, []);
|
|
3470
3466
|
}
|
|
3471
|
-
function
|
|
3467
|
+
function go(e) {
|
|
3472
3468
|
return typeof e == "function";
|
|
3473
3469
|
}
|
|
3474
|
-
function
|
|
3470
|
+
function dt(e, t, r, n, i, o, s) {
|
|
3475
3471
|
if (e.length === 1 && hr(e[0]))
|
|
3476
3472
|
return [
|
|
3477
3473
|
{
|
|
@@ -3488,7 +3484,7 @@ function ct(e, t, r, n, i, o, s) {
|
|
|
3488
3484
|
});
|
|
3489
3485
|
continue;
|
|
3490
3486
|
}
|
|
3491
|
-
if (
|
|
3487
|
+
if (Ui(u)) {
|
|
3492
3488
|
typeof o == "number" && a.push({
|
|
3493
3489
|
type: ie.literal,
|
|
3494
3490
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3497,9 +3493,9 @@ function ct(e, t, r, n, i, o, s) {
|
|
|
3497
3493
|
}
|
|
3498
3494
|
var c = u.value;
|
|
3499
3495
|
if (!(i && c in i))
|
|
3500
|
-
throw new
|
|
3496
|
+
throw new mo(c, s);
|
|
3501
3497
|
var h = i[c];
|
|
3502
|
-
if (
|
|
3498
|
+
if (ki(u)) {
|
|
3503
3499
|
(!h || typeof h == "string" || typeof h == "number") && (h = typeof h == "string" || typeof h == "number" ? String(h) : ""), a.push({
|
|
3504
3500
|
type: typeof h == "string" ? ie.literal : ie.object,
|
|
3505
3501
|
value: h
|
|
@@ -3507,7 +3503,7 @@ function ct(e, t, r, n, i, o, s) {
|
|
|
3507
3503
|
continue;
|
|
3508
3504
|
}
|
|
3509
3505
|
if (Qr(u)) {
|
|
3510
|
-
var g = typeof u.style == "string" ? n.date[u.style] :
|
|
3506
|
+
var g = typeof u.style == "string" ? n.date[u.style] : Ut(u.style) ? u.style.parsedOptions : void 0;
|
|
3511
3507
|
a.push({
|
|
3512
3508
|
type: ie.literal,
|
|
3513
3509
|
value: r.getDateTimeFormat(t, g).format(h)
|
|
@@ -3515,7 +3511,7 @@ function ct(e, t, r, n, i, o, s) {
|
|
|
3515
3511
|
continue;
|
|
3516
3512
|
}
|
|
3517
3513
|
if (Jr(u)) {
|
|
3518
|
-
var g = typeof u.style == "string" ? n.time[u.style] :
|
|
3514
|
+
var g = typeof u.style == "string" ? n.time[u.style] : Ut(u.style) ? u.style.parsedOptions : n.time.medium;
|
|
3519
3515
|
a.push({
|
|
3520
3516
|
type: ie.literal,
|
|
3521
3517
|
value: r.getDateTimeFormat(t, g).format(h)
|
|
@@ -3532,9 +3528,9 @@ function ct(e, t, r, n, i, o, s) {
|
|
|
3532
3528
|
}
|
|
3533
3529
|
if (tn(u)) {
|
|
3534
3530
|
var b = u.children, w = u.value, P = i[w];
|
|
3535
|
-
if (!
|
|
3536
|
-
throw new
|
|
3537
|
-
var S =
|
|
3531
|
+
if (!go(P))
|
|
3532
|
+
throw new po(w, "function", s);
|
|
3533
|
+
var S = dt(b, t, r, n, i, o), E = P(S.map(function(T) {
|
|
3538
3534
|
return T.value;
|
|
3539
3535
|
}));
|
|
3540
3536
|
Array.isArray(E) || (E = [E]), a.push.apply(a, E.map(function(T) {
|
|
@@ -3548,38 +3544,38 @@ function ct(e, t, r, n, i, o, s) {
|
|
|
3548
3544
|
var _ = u.options[h] || u.options.other;
|
|
3549
3545
|
if (!_)
|
|
3550
3546
|
throw new wr(u.value, h, Object.keys(u.options), s);
|
|
3551
|
-
a.push.apply(a,
|
|
3547
|
+
a.push.apply(a, dt(_.value, t, r, n, i));
|
|
3552
3548
|
continue;
|
|
3553
3549
|
}
|
|
3554
3550
|
if (en(u)) {
|
|
3555
3551
|
var _ = u.options["=".concat(h)];
|
|
3556
3552
|
if (!_) {
|
|
3557
3553
|
if (!Intl.PluralRules)
|
|
3558
|
-
throw new
|
|
3554
|
+
throw new xt(`Intl.PluralRules is not available in this environment.
|
|
3559
3555
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3560
|
-
`,
|
|
3556
|
+
`, Ge.MISSING_INTL_API, s);
|
|
3561
3557
|
var H = r.getPluralRules(t, { type: u.pluralType }).select(h - (u.offset || 0));
|
|
3562
3558
|
_ = u.options[H] || u.options.other;
|
|
3563
3559
|
}
|
|
3564
3560
|
if (!_)
|
|
3565
3561
|
throw new wr(u.value, h, Object.keys(u.options), s);
|
|
3566
|
-
a.push.apply(a,
|
|
3562
|
+
a.push.apply(a, dt(_.value, t, r, n, i, h - (u.offset || 0)));
|
|
3567
3563
|
continue;
|
|
3568
3564
|
}
|
|
3569
3565
|
}
|
|
3570
|
-
return
|
|
3566
|
+
return bo(a);
|
|
3571
3567
|
}
|
|
3572
|
-
function
|
|
3573
|
-
return t ?
|
|
3574
|
-
return r[n] =
|
|
3568
|
+
function vo(e, t) {
|
|
3569
|
+
return t ? B(B(B({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3570
|
+
return r[n] = B(B({}, e[n]), t[n] || {}), r;
|
|
3575
3571
|
}, {})) : e;
|
|
3576
3572
|
}
|
|
3577
|
-
function
|
|
3573
|
+
function yo(e, t) {
|
|
3578
3574
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3579
|
-
return r[n] =
|
|
3580
|
-
},
|
|
3575
|
+
return r[n] = vo(e[n], t[n]), r;
|
|
3576
|
+
}, B({}, e)) : e;
|
|
3581
3577
|
}
|
|
3582
|
-
function
|
|
3578
|
+
function Mt(e) {
|
|
3583
3579
|
return {
|
|
3584
3580
|
create: function() {
|
|
3585
3581
|
return {
|
|
@@ -3593,39 +3589,39 @@ function Ot(e) {
|
|
|
3593
3589
|
}
|
|
3594
3590
|
};
|
|
3595
3591
|
}
|
|
3596
|
-
function
|
|
3592
|
+
function wo(e) {
|
|
3597
3593
|
return e === void 0 && (e = {
|
|
3598
3594
|
number: {},
|
|
3599
3595
|
dateTime: {},
|
|
3600
3596
|
pluralRules: {}
|
|
3601
3597
|
}), {
|
|
3602
|
-
getNumberFormat:
|
|
3598
|
+
getNumberFormat: At(function() {
|
|
3603
3599
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3604
3600
|
r[n] = arguments[n];
|
|
3605
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3601
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, Ht([void 0], r, !1)))();
|
|
3606
3602
|
}, {
|
|
3607
|
-
cache:
|
|
3608
|
-
strategy:
|
|
3603
|
+
cache: Mt(e.number),
|
|
3604
|
+
strategy: Nt.variadic
|
|
3609
3605
|
}),
|
|
3610
|
-
getDateTimeFormat:
|
|
3606
|
+
getDateTimeFormat: At(function() {
|
|
3611
3607
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3612
3608
|
r[n] = arguments[n];
|
|
3613
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3609
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, Ht([void 0], r, !1)))();
|
|
3614
3610
|
}, {
|
|
3615
|
-
cache:
|
|
3616
|
-
strategy:
|
|
3611
|
+
cache: Mt(e.dateTime),
|
|
3612
|
+
strategy: Nt.variadic
|
|
3617
3613
|
}),
|
|
3618
|
-
getPluralRules:
|
|
3614
|
+
getPluralRules: At(function() {
|
|
3619
3615
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3620
3616
|
r[n] = arguments[n];
|
|
3621
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3617
|
+
return new ((t = Intl.PluralRules).bind.apply(t, Ht([void 0], r, !1)))();
|
|
3622
3618
|
}, {
|
|
3623
|
-
cache:
|
|
3624
|
-
strategy:
|
|
3619
|
+
cache: Mt(e.pluralRules),
|
|
3620
|
+
strategy: Nt.variadic
|
|
3625
3621
|
})
|
|
3626
3622
|
};
|
|
3627
3623
|
}
|
|
3628
|
-
var
|
|
3624
|
+
var _o = (
|
|
3629
3625
|
/** @class */
|
|
3630
3626
|
function() {
|
|
3631
3627
|
function e(t, r, n, i) {
|
|
@@ -3644,7 +3640,7 @@ var Po = (
|
|
|
3644
3640
|
}, []);
|
|
3645
3641
|
return u.length <= 1 ? u[0] || "" : u;
|
|
3646
3642
|
}, this.formatToParts = function(d) {
|
|
3647
|
-
return
|
|
3643
|
+
return dt(o.ast, o.locales, o.formatters, o.formats, d, void 0, o.message);
|
|
3648
3644
|
}, this.resolvedOptions = function() {
|
|
3649
3645
|
var d;
|
|
3650
3646
|
return {
|
|
@@ -3658,12 +3654,12 @@ var Po = (
|
|
|
3658
3654
|
var s = i || {};
|
|
3659
3655
|
s.formatters;
|
|
3660
3656
|
var a = Hi(s, ["formatters"]);
|
|
3661
|
-
this.ast = e.__parse(t,
|
|
3657
|
+
this.ast = e.__parse(t, B(B({}, a), { locale: this.resolvedLocale }));
|
|
3662
3658
|
} else
|
|
3663
3659
|
this.ast = t;
|
|
3664
3660
|
if (!Array.isArray(this.ast))
|
|
3665
3661
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3666
|
-
this.formats =
|
|
3662
|
+
this.formats = yo(e.formats, n), this.formatters = i && i.formatters || wo(this.formatterCache);
|
|
3667
3663
|
}
|
|
3668
3664
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3669
3665
|
get: function() {
|
|
@@ -3676,7 +3672,7 @@ var Po = (
|
|
|
3676
3672
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3677
3673
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3678
3674
|
}
|
|
3679
|
-
}, e.__parse =
|
|
3675
|
+
}, e.__parse = ho, e.formats = {
|
|
3680
3676
|
number: {
|
|
3681
3677
|
integer: {
|
|
3682
3678
|
maximumFractionDigits: 0
|
|
@@ -3737,7 +3733,7 @@ var Po = (
|
|
|
3737
3733
|
}, e;
|
|
3738
3734
|
}()
|
|
3739
3735
|
);
|
|
3740
|
-
function
|
|
3736
|
+
function Po(e, t) {
|
|
3741
3737
|
if (t == null)
|
|
3742
3738
|
return;
|
|
3743
3739
|
if (t in e)
|
|
@@ -3758,36 +3754,36 @@ function xo(e, t) {
|
|
|
3758
3754
|
n = void 0;
|
|
3759
3755
|
return n;
|
|
3760
3756
|
}
|
|
3761
|
-
const
|
|
3757
|
+
const Se = {}, xo = (e, t, r) => r && (t in Se || (Se[t] = {}), e in Se[t] || (Se[t][e] = r), r), cn = (e, t) => {
|
|
3762
3758
|
if (t == null)
|
|
3763
3759
|
return;
|
|
3764
|
-
if (t in
|
|
3765
|
-
return
|
|
3766
|
-
const r =
|
|
3760
|
+
if (t in Se && e in Se[t])
|
|
3761
|
+
return Se[t][e];
|
|
3762
|
+
const r = Et(t);
|
|
3767
3763
|
for (let n = 0; n < r.length; n++) {
|
|
3768
|
-
const i = r[n], o =
|
|
3764
|
+
const i = r[n], o = So(i, e);
|
|
3769
3765
|
if (o)
|
|
3770
|
-
return
|
|
3766
|
+
return xo(e, t, o);
|
|
3771
3767
|
}
|
|
3772
3768
|
};
|
|
3773
3769
|
let er;
|
|
3774
|
-
const
|
|
3775
|
-
function
|
|
3770
|
+
const Xe = _t({});
|
|
3771
|
+
function Eo(e) {
|
|
3776
3772
|
return er[e] || null;
|
|
3777
3773
|
}
|
|
3778
3774
|
function fn(e) {
|
|
3779
3775
|
return e in er;
|
|
3780
3776
|
}
|
|
3781
|
-
function
|
|
3777
|
+
function So(e, t) {
|
|
3782
3778
|
if (!fn(e))
|
|
3783
3779
|
return null;
|
|
3784
|
-
const r =
|
|
3785
|
-
return
|
|
3780
|
+
const r = Eo(e);
|
|
3781
|
+
return Po(r, t);
|
|
3786
3782
|
}
|
|
3787
|
-
function
|
|
3783
|
+
function To(e) {
|
|
3788
3784
|
if (e == null)
|
|
3789
3785
|
return;
|
|
3790
|
-
const t =
|
|
3786
|
+
const t = Et(e);
|
|
3791
3787
|
for (let r = 0; r < t.length; r++) {
|
|
3792
3788
|
const n = t[r];
|
|
3793
3789
|
if (fn(n))
|
|
@@ -3795,55 +3791,55 @@ function Co(e) {
|
|
|
3795
3791
|
}
|
|
3796
3792
|
}
|
|
3797
3793
|
function hn(e, ...t) {
|
|
3798
|
-
delete
|
|
3794
|
+
delete Se[e], Xe.update((r) => (r[e] = Li.all([r[e] || {}, ...t]), r));
|
|
3799
3795
|
}
|
|
3800
|
-
|
|
3801
|
-
[
|
|
3796
|
+
qe(
|
|
3797
|
+
[Xe],
|
|
3802
3798
|
([e]) => Object.keys(e)
|
|
3803
3799
|
);
|
|
3804
|
-
|
|
3805
|
-
const
|
|
3806
|
-
function
|
|
3807
|
-
|
|
3800
|
+
Xe.subscribe((e) => er = e);
|
|
3801
|
+
const ct = {};
|
|
3802
|
+
function Co(e, t) {
|
|
3803
|
+
ct[e].delete(t), ct[e].size === 0 && delete ct[e];
|
|
3808
3804
|
}
|
|
3809
3805
|
function pn(e) {
|
|
3810
|
-
return
|
|
3806
|
+
return ct[e];
|
|
3811
3807
|
}
|
|
3812
|
-
function
|
|
3813
|
-
return
|
|
3808
|
+
function Ro(e) {
|
|
3809
|
+
return Et(e).map((t) => {
|
|
3814
3810
|
const r = pn(t);
|
|
3815
3811
|
return [t, r ? [...r] : []];
|
|
3816
3812
|
}).filter(([, t]) => t.length > 0);
|
|
3817
3813
|
}
|
|
3818
|
-
function
|
|
3819
|
-
return e == null ? !1 :
|
|
3814
|
+
function Vt(e) {
|
|
3815
|
+
return e == null ? !1 : Et(e).some(
|
|
3820
3816
|
(t) => {
|
|
3821
3817
|
var r;
|
|
3822
3818
|
return (r = pn(t)) == null ? void 0 : r.size;
|
|
3823
3819
|
}
|
|
3824
3820
|
);
|
|
3825
3821
|
}
|
|
3826
|
-
function
|
|
3822
|
+
function Lo(e, t) {
|
|
3827
3823
|
return Promise.all(
|
|
3828
|
-
t.map((n) => (
|
|
3824
|
+
t.map((n) => (Co(e, n), n().then((i) => i.default || i)))
|
|
3829
3825
|
).then((n) => hn(e, ...n));
|
|
3830
3826
|
}
|
|
3831
|
-
const
|
|
3827
|
+
const Je = {};
|
|
3832
3828
|
function mn(e) {
|
|
3833
|
-
if (!
|
|
3834
|
-
return e in
|
|
3835
|
-
const t =
|
|
3836
|
-
return
|
|
3829
|
+
if (!Vt(e))
|
|
3830
|
+
return e in Je ? Je[e] : Promise.resolve();
|
|
3831
|
+
const t = Ro(e);
|
|
3832
|
+
return Je[e] = Promise.all(
|
|
3837
3833
|
t.map(
|
|
3838
|
-
([r, n]) =>
|
|
3834
|
+
([r, n]) => Lo(r, n)
|
|
3839
3835
|
)
|
|
3840
3836
|
).then(() => {
|
|
3841
|
-
if (
|
|
3837
|
+
if (Vt(e))
|
|
3842
3838
|
return mn(e);
|
|
3843
|
-
delete
|
|
3844
|
-
}),
|
|
3839
|
+
delete Je[e];
|
|
3840
|
+
}), Je[e];
|
|
3845
3841
|
}
|
|
3846
|
-
const
|
|
3842
|
+
const Ho = {
|
|
3847
3843
|
number: {
|
|
3848
3844
|
scientific: { notation: "scientific" },
|
|
3849
3845
|
engineering: { notation: "engineering" },
|
|
@@ -3872,141 +3868,141 @@ const Ao = {
|
|
|
3872
3868
|
timeZoneName: "short"
|
|
3873
3869
|
}
|
|
3874
3870
|
}
|
|
3875
|
-
},
|
|
3871
|
+
}, Ao = {
|
|
3876
3872
|
fallbackLocale: null,
|
|
3877
3873
|
loadingDelay: 200,
|
|
3878
|
-
formats:
|
|
3874
|
+
formats: Ho,
|
|
3879
3875
|
warnOnMissingMessages: !0,
|
|
3880
3876
|
handleMissingMessage: void 0,
|
|
3881
3877
|
ignoreTag: !0
|
|
3882
|
-
},
|
|
3878
|
+
}, No = Ao;
|
|
3883
3879
|
function Ve() {
|
|
3884
|
-
return
|
|
3880
|
+
return No;
|
|
3885
3881
|
}
|
|
3886
|
-
const
|
|
3887
|
-
var
|
|
3882
|
+
const Bt = _t(!1);
|
|
3883
|
+
var Io = Object.defineProperty, Mo = Object.defineProperties, Bo = Object.getOwnPropertyDescriptors, _r = Object.getOwnPropertySymbols, Oo = Object.prototype.hasOwnProperty, ko = Object.prototype.propertyIsEnumerable, Pr = (e, t, r) => t in e ? Io(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Uo = (e, t) => {
|
|
3888
3884
|
for (var r in t || (t = {}))
|
|
3889
|
-
|
|
3885
|
+
Oo.call(t, r) && Pr(e, r, t[r]);
|
|
3890
3886
|
if (_r)
|
|
3891
3887
|
for (var r of _r(t))
|
|
3892
|
-
|
|
3888
|
+
ko.call(t, r) && Pr(e, r, t[r]);
|
|
3893
3889
|
return e;
|
|
3894
|
-
},
|
|
3895
|
-
let
|
|
3896
|
-
const
|
|
3890
|
+
}, Do = (e, t) => Mo(e, Bo(t));
|
|
3891
|
+
let $t;
|
|
3892
|
+
const vt = _t(null);
|
|
3897
3893
|
function xr(e) {
|
|
3898
3894
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3899
3895
|
}
|
|
3900
|
-
function
|
|
3896
|
+
function Et(e, t = Ve().fallbackLocale) {
|
|
3901
3897
|
const r = xr(e);
|
|
3902
3898
|
return t ? [.../* @__PURE__ */ new Set([...r, ...xr(t)])] : r;
|
|
3903
3899
|
}
|
|
3904
|
-
function
|
|
3905
|
-
return
|
|
3900
|
+
function Ie() {
|
|
3901
|
+
return $t != null ? $t : void 0;
|
|
3906
3902
|
}
|
|
3907
|
-
|
|
3908
|
-
|
|
3903
|
+
vt.subscribe((e) => {
|
|
3904
|
+
$t = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3909
3905
|
});
|
|
3910
|
-
const
|
|
3911
|
-
if (e &&
|
|
3906
|
+
const Fo = (e) => {
|
|
3907
|
+
if (e && To(e) && Vt(e)) {
|
|
3912
3908
|
const { loadingDelay: t } = Ve();
|
|
3913
3909
|
let r;
|
|
3914
|
-
return typeof window != "undefined" &&
|
|
3915
|
-
() =>
|
|
3910
|
+
return typeof window != "undefined" && Ie() != null && t ? r = window.setTimeout(
|
|
3911
|
+
() => Bt.set(!0),
|
|
3916
3912
|
t
|
|
3917
|
-
) :
|
|
3918
|
-
|
|
3913
|
+
) : Bt.set(!0), mn(e).then(() => {
|
|
3914
|
+
vt.set(e);
|
|
3919
3915
|
}).finally(() => {
|
|
3920
|
-
clearTimeout(r),
|
|
3916
|
+
clearTimeout(r), Bt.set(!1);
|
|
3921
3917
|
});
|
|
3922
3918
|
}
|
|
3923
|
-
return
|
|
3924
|
-
},
|
|
3925
|
-
set:
|
|
3926
|
-
}),
|
|
3919
|
+
return vt.set(e);
|
|
3920
|
+
}, Re = Do(Uo({}, vt), {
|
|
3921
|
+
set: Fo
|
|
3922
|
+
}), St = (e) => {
|
|
3927
3923
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3928
3924
|
return (n) => {
|
|
3929
3925
|
const i = JSON.stringify(n);
|
|
3930
3926
|
return i in t ? t[i] : t[i] = e(n);
|
|
3931
3927
|
};
|
|
3932
3928
|
};
|
|
3933
|
-
var
|
|
3929
|
+
var jo = Object.defineProperty, yt = Object.getOwnPropertySymbols, bn = Object.prototype.hasOwnProperty, gn = Object.prototype.propertyIsEnumerable, Er = (e, t, r) => t in e ? jo(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tr = (e, t) => {
|
|
3934
3930
|
for (var r in t || (t = {}))
|
|
3935
3931
|
bn.call(t, r) && Er(e, r, t[r]);
|
|
3936
|
-
if (
|
|
3937
|
-
for (var r of
|
|
3932
|
+
if (yt)
|
|
3933
|
+
for (var r of yt(t))
|
|
3938
3934
|
gn.call(t, r) && Er(e, r, t[r]);
|
|
3939
3935
|
return e;
|
|
3940
|
-
},
|
|
3936
|
+
}, We = (e, t) => {
|
|
3941
3937
|
var r = {};
|
|
3942
3938
|
for (var n in e)
|
|
3943
3939
|
bn.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3944
|
-
if (e != null &&
|
|
3945
|
-
for (var n of
|
|
3940
|
+
if (e != null && yt)
|
|
3941
|
+
for (var n of yt(e))
|
|
3946
3942
|
t.indexOf(n) < 0 && gn.call(e, n) && (r[n] = e[n]);
|
|
3947
3943
|
return r;
|
|
3948
3944
|
};
|
|
3949
|
-
const
|
|
3945
|
+
const it = (e, t) => {
|
|
3950
3946
|
const { formats: r } = Ve();
|
|
3951
3947
|
if (e in r && t in r[e])
|
|
3952
3948
|
return r[e][t];
|
|
3953
3949
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3954
|
-
},
|
|
3950
|
+
}, zo = St(
|
|
3955
3951
|
(e) => {
|
|
3956
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3952
|
+
var t = e, { locale: r, format: n } = t, i = We(t, ["locale", "format"]);
|
|
3957
3953
|
if (r == null)
|
|
3958
3954
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3959
|
-
return n && (i =
|
|
3955
|
+
return n && (i = it("number", n)), new Intl.NumberFormat(r, i);
|
|
3960
3956
|
}
|
|
3961
|
-
),
|
|
3957
|
+
), Go = St(
|
|
3962
3958
|
(e) => {
|
|
3963
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3959
|
+
var t = e, { locale: r, format: n } = t, i = We(t, ["locale", "format"]);
|
|
3964
3960
|
if (r == null)
|
|
3965
3961
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3966
|
-
return n ? i =
|
|
3962
|
+
return n ? i = it("date", n) : Object.keys(i).length === 0 && (i = it("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3967
3963
|
}
|
|
3968
|
-
), Vo =
|
|
3964
|
+
), Vo = St(
|
|
3969
3965
|
(e) => {
|
|
3970
|
-
var t = e, { locale: r, format: n } = t, i =
|
|
3966
|
+
var t = e, { locale: r, format: n } = t, i = We(t, ["locale", "format"]);
|
|
3971
3967
|
if (r == null)
|
|
3972
3968
|
throw new Error(
|
|
3973
3969
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3974
3970
|
);
|
|
3975
|
-
return n ? i =
|
|
3971
|
+
return n ? i = it("time", n) : Object.keys(i).length === 0 && (i = it("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3976
3972
|
}
|
|
3977
|
-
),
|
|
3973
|
+
), $o = (e = {}) => {
|
|
3978
3974
|
var t = e, {
|
|
3979
|
-
locale: r =
|
|
3980
|
-
} = t, n =
|
|
3975
|
+
locale: r = Ie()
|
|
3976
|
+
} = t, n = We(t, [
|
|
3981
3977
|
"locale"
|
|
3982
3978
|
]);
|
|
3983
|
-
return
|
|
3984
|
-
},
|
|
3979
|
+
return zo(tr({ locale: r }, n));
|
|
3980
|
+
}, qo = (e = {}) => {
|
|
3985
3981
|
var t = e, {
|
|
3986
|
-
locale: r =
|
|
3987
|
-
} = t, n =
|
|
3982
|
+
locale: r = Ie()
|
|
3983
|
+
} = t, n = We(t, [
|
|
3988
3984
|
"locale"
|
|
3989
3985
|
]);
|
|
3990
|
-
return
|
|
3991
|
-
},
|
|
3986
|
+
return Go(tr({ locale: r }, n));
|
|
3987
|
+
}, Xo = (e = {}) => {
|
|
3992
3988
|
var t = e, {
|
|
3993
|
-
locale: r =
|
|
3994
|
-
} = t, n =
|
|
3989
|
+
locale: r = Ie()
|
|
3990
|
+
} = t, n = We(t, [
|
|
3995
3991
|
"locale"
|
|
3996
3992
|
]);
|
|
3997
3993
|
return Vo(tr({ locale: r }, n));
|
|
3998
|
-
},
|
|
3994
|
+
}, Wo = St(
|
|
3999
3995
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
4000
|
-
(e, t =
|
|
3996
|
+
(e, t = Ie()) => new _o(e, t, Ve().formats, {
|
|
4001
3997
|
ignoreTag: Ve().ignoreTag
|
|
4002
3998
|
})
|
|
4003
|
-
),
|
|
3999
|
+
), Zo = (e, t = {}) => {
|
|
4004
4000
|
var r, n, i, o;
|
|
4005
4001
|
let s = t;
|
|
4006
4002
|
typeof e == "object" && (s = e, e = s.id);
|
|
4007
4003
|
const {
|
|
4008
4004
|
values: a,
|
|
4009
|
-
locale: d =
|
|
4005
|
+
locale: d = Ie(),
|
|
4010
4006
|
default: l
|
|
4011
4007
|
} = s;
|
|
4012
4008
|
if (d == null)
|
|
@@ -4024,7 +4020,7 @@ const ot = (e, t) => {
|
|
|
4024
4020
|
return u;
|
|
4025
4021
|
let c = u;
|
|
4026
4022
|
try {
|
|
4027
|
-
c =
|
|
4023
|
+
c = Wo(u, d).format(a);
|
|
4028
4024
|
} catch (h) {
|
|
4029
4025
|
h instanceof Error && console.warn(
|
|
4030
4026
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -4032,29 +4028,29 @@ const ot = (e, t) => {
|
|
|
4032
4028
|
);
|
|
4033
4029
|
}
|
|
4034
4030
|
return c;
|
|
4035
|
-
},
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
function
|
|
4041
|
-
|
|
4042
|
-
r == null && (
|
|
4031
|
+
}, Yo = (e, t) => Xo(t).format(e), Qo = (e, t) => qo(t).format(e), Jo = (e, t) => $o(t).format(e), Ko = (e, t = Ie()) => cn(e, t), es = qe([Re, Xe], () => Zo);
|
|
4032
|
+
qe([Re], () => Yo);
|
|
4033
|
+
qe([Re], () => Qo);
|
|
4034
|
+
qe([Re], () => Jo);
|
|
4035
|
+
qe([Re, Xe], () => Ko);
|
|
4036
|
+
function ts({ withLocale: e, translations: t }) {
|
|
4037
|
+
Re.subscribe((r) => {
|
|
4038
|
+
r == null && (Xe.set(t), Re.set(e));
|
|
4043
4039
|
});
|
|
4044
4040
|
}
|
|
4045
4041
|
function Sr(e, t) {
|
|
4046
4042
|
hn(e, t);
|
|
4047
4043
|
}
|
|
4048
|
-
function
|
|
4049
|
-
|
|
4044
|
+
function rs(e) {
|
|
4045
|
+
Re.set(e);
|
|
4050
4046
|
}
|
|
4051
|
-
function
|
|
4047
|
+
function ns(e, t) {
|
|
4052
4048
|
if (e) {
|
|
4053
4049
|
const r = document.createElement("style");
|
|
4054
4050
|
r.innerHTML = t, e.appendChild(r);
|
|
4055
4051
|
}
|
|
4056
4052
|
}
|
|
4057
|
-
function
|
|
4053
|
+
function is(e, t) {
|
|
4058
4054
|
if (!e || !t)
|
|
4059
4055
|
return;
|
|
4060
4056
|
const r = new URL(t);
|
|
@@ -4065,7 +4061,7 @@ function os(e, t) {
|
|
|
4065
4061
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
4066
4062
|
});
|
|
4067
4063
|
}
|
|
4068
|
-
function
|
|
4064
|
+
function os(e, t, r) {
|
|
4069
4065
|
if (window.emMessageBus) {
|
|
4070
4066
|
const n = document.createElement("style");
|
|
4071
4067
|
window.emMessageBus.subscribe(t, (i) => {
|
|
@@ -4494,7 +4490,7 @@ function Rr(e, t) {
|
|
|
4494
4490
|
} catch (r) {
|
|
4495
4491
|
}
|
|
4496
4492
|
}
|
|
4497
|
-
function
|
|
4493
|
+
function ss(e) {
|
|
4498
4494
|
try {
|
|
4499
4495
|
const t = localStorage.getItem(rr(e));
|
|
4500
4496
|
return t != null ? Math.max(0, parseInt(t, 10)) : null;
|
|
@@ -4502,13 +4498,13 @@ function as(e) {
|
|
|
4502
4498
|
return null;
|
|
4503
4499
|
}
|
|
4504
4500
|
}
|
|
4505
|
-
function
|
|
4501
|
+
function as(e) {
|
|
4506
4502
|
try {
|
|
4507
4503
|
localStorage.removeItem(rr(e));
|
|
4508
4504
|
} catch (t) {
|
|
4509
4505
|
}
|
|
4510
4506
|
}
|
|
4511
|
-
function
|
|
4507
|
+
function ls(e) {
|
|
4512
4508
|
jn(e, "svelte-1nua6jd", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.ResetPwdOverlay{position:fixed;inset:0;background:rgba(17, 24, 39, 0.6);display:grid;place-items:center;z-index:100}.ResetPwdCard{position:relative;width:min(92vw, 520px);background:var(--emw--registration-color-bg, var(--emw--color-gray-50, #f9f8f8));color:var(--emw--color-typography-contrast);border-radius:var(--emw--border-radius-large, 16px);padding:20px;box-shadow:0 10px 30px rgba(0, 0, 0, 0.2)}.ResetPwdClose{position:absolute;top:10px;right:10px;width:20px;height:20px;border:none;background:transparent;color:inherit;font-size:20px;line-height:1;cursor:pointer;transition:background 120ms ease-in-out, filter 120ms ease-in-out}.ResetPwdClose:hover{background:rgba(0, 0, 0, 0.04);filter:brightness(1.02)}.ResetPwdClose:active{filter:brightness(0.98)}.ResetPwdTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));font-size:var(--emw--font-size-large, 20px);font-weight:var(--emw--font-weight-semi-bold, 600);padding:0;margin:0 0 10px 0}.ResetPwdSub{color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));font-weight:var(--emw--font-weight-light, 300);font-size:var(--emw--font-size-medium, 16px);padding:0;margin-bottom:10px}.ResetPwdStepTitle{color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));font-size:var(--emw--font-size-medium, 1rem);font-weight:var(--emw--font-weight-semi-bold, 700);padding:0;margin:0 0 5px 0}.ResetPwdHelp{font-size:var(--emw--font-size-medium, 14px);color:#4b5563;margin-bottom:20px}.ResetPwdRow{display:flex;gap:12px;align-items:flex-end;margin-bottom:8px;flex-wrap:wrap}.ResetPwdField{display:flex;flex-direction:column;min-width:0;position:relative}.ResetPwdFieldPrefix{flex:0 1 100px}.ResetPwdFieldPhone{flex:1 1 160px}vaadin-combo-box{width:100%;border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));border-radius:var(--emw--border-radius-small, 6px);font-size:var(--emw--font-size-medium, 16px);background:transparent;color:inherit}vaadin-combo-box input{width:100%;border-radius:var(--emw--border-radius-small, 6px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));padding:5px;font-size:var(--emw--font-size-small, 14px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--font-size-medium, 16px);line-height:18px}vaadin-combo-box-overlay{z-index:101}.ResetPwdFieldCode{flex:1 1 100%}.ResetPwdFieldMeta{flex:1 1 auto;min-width:200px}.ResetPwdMetaRow{display:flex;gap:12px;justify-content:space-between;margin-bottom:4px;flex-wrap:wrap}.ResetPwdMeta{font-size:var(--emw--font-size-xtra-small, 10px);color:#4b5563}.ResetPwdLabel{display:block;font-size:var(--emw--font-size-small, 12px);font-weight:var(--emw--font-weight-light, 300);padding-bottom:5px}.ResetPwdInput{width:100%;background:transparent;color:inherit;border-radius:var(--emw--border-radius-small, 6px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));padding:6px 12px;box-sizing:border-box;font-size:var(--emw--font-size-medium, 14px);line-height:18px}.ResetPwdInput::placeholder{color:#4b5563}.ResetPwdInput:focus{border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));outline:none}.ResetPwdInput[aria-invalid=true]{box-shadow:0 0 0 2px rgba(185, 28, 28, 0.08);border:1px solid var(--emw--color-error, #fecaca);background:var(--emw--color-pale, #fbecf4);color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444))}.ResetPwdCodeGroup{display:flex;gap:12px}.ResetPwdCodeInput{width:32px;height:32px;text-align:center;font-size:var(--emw--font-size-medium, 16px);border:1px solid var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444));border-radius:var(--emw--border-radius-medium, 10px);background:transparent;color:inherit}.ResetPwdCodeInput:focus{outline:none;border:1px solid var(--emw--registration-color-primary, var(--emw--color-primary, #22b04e));box-shadow:0 0 0 2px rgba(17, 24, 39, 0.08)}.ResetPwdCodeInput[aria-invalid=true]{box-shadow:0 0 0 2px rgba(185, 28, 28, 0.08);border:1px solid var(--emw--color-error, #fecaca);background:var(--emw--color-pale, #fbecf4);color:var(--emw--registration-contrast, var(--emw--color-typography-contrast, #444444))}.ResetPwdErrors{margin-top:8px;margin-bottom:8px}.ResetPwdError{color:var(--emw--color-error, #b91c1c);font-size:var(--emw--font-size-xtra-small, 9px)}.ResetPwdError+.ResetPwdError{margin-top:4px}.ResetPwdHint{color:#92400e;background:#fef3c7;border:1px solid #fde68a;padding:8px 12px;border-radius:var(--emw--border-radius-medium, 10px);font-size:var(--emw--font-size-xtra-small, 9px);margin-top:4px}.ResetPwdButton{width:100%;margin-top:20px;font-family:var(--emw--button-typography, inherit);background:var(--emw--color-primary, #000000);color:var(--emw--button-typography, var(--emw--button-text-color, #ffffff));border:none;border-radius:var(--emw--button-border-radius, 6px);padding:10px;font-size:var(--emw--font-size-small, 14px);cursor:pointer;transition:filter 120ms ease-in-out}.ResetPwdButton:hover{filter:brightness(1.02)}.ResetPwdButton:active{filter:brightness(0.98)}.ResetPwdButton:disabled{opacity:0.6;cursor:not-allowed}.ResetPwdLink{color:var(--emw--color-typography-contrast);cursor:pointer;background:transparent;text-decoration:underline;border:none;padding:8px 0;font-size:var(--emw--font-size-xtra-small, 10px)}.ResetPwdLink[disabled],.ResetPwdLink[aria-disabled=true]{opacity:0.6;cursor:not-allowed;text-decoration:none}@media(min-width: 768px){.ResetPwdFieldPrefix{flex:0 1 140px}.ResetPwdFieldPhone{flex:1 1 200px}.ResetPwdCodeInput{width:48px;height:48px}}@media(prefers-reduced-motion: reduce){.ResetPwdOverlay,.ResetPwdCard{transition:none !important;animation:none !important}}");
|
|
4513
4509
|
}
|
|
4514
4510
|
function Lr(e, t, r) {
|
|
@@ -4522,29 +4518,29 @@ function Hr(e) {
|
|
|
4522
4518
|
), u, c, h, g = (
|
|
4523
4519
|
/*$_*/
|
|
4524
4520
|
e[10]("resetSubtitle") + ""
|
|
4525
|
-
), b, w, P, S, E, _, H, T,
|
|
4521
|
+
), b, w, P, S, E, _, H, T, j, C = (
|
|
4526
4522
|
/*step*/
|
|
4527
4523
|
e[2] === "phone" && Ar(e)
|
|
4528
4524
|
), L = (
|
|
4529
4525
|
/*step*/
|
|
4530
|
-
e[2] === "code" &&
|
|
4526
|
+
e[2] === "code" && Mr(e)
|
|
4531
4527
|
);
|
|
4532
4528
|
return {
|
|
4533
4529
|
c() {
|
|
4534
|
-
t = x("div"), r = x("div"), n = x("button"), i =
|
|
4530
|
+
t = x("div"), r = x("div"), n = x("button"), i = k("×"), a = $(), d = x("h2"), u = k(l), c = $(), h = x("p"), b = k(g), w = $(), C && C.c(), P = $(), L && L.c(), p(n, "class", "ResetPwdClose"), p(n, "type", "button"), p(n, "aria-label", o = /*$_*/
|
|
4535
4531
|
e[10]("close")), p(n, "title", s = /*$_*/
|
|
4536
4532
|
e[10]("close")), p(d, "id", "ResetPwdTitle"), p(d, "class", "ResetPwdTitle"), p(h, "class", "ResetPwdSub"), p(r, "class", "ResetPwdCard"), p(t, "class", "ResetPwdOverlay"), p(t, "role", "dialog"), p(t, "aria-modal", "true"), p(t, "aria-labelledby", "ResetPwdTitle");
|
|
4537
4533
|
},
|
|
4538
|
-
m(
|
|
4539
|
-
te(
|
|
4534
|
+
m(M, Z) {
|
|
4535
|
+
te(M, t, Z), m(t, r), m(r, n), m(n, i), m(r, a), m(r, d), m(d, u), m(r, c), m(r, h), m(h, b), m(r, w), C && C.m(r, null), m(r, P), L && L.m(r, null), H = !0, T || (j = Te(
|
|
4540
4536
|
n,
|
|
4541
4537
|
"click",
|
|
4542
4538
|
/*closeModal*/
|
|
4543
4539
|
e[25]
|
|
4544
4540
|
), T = !0);
|
|
4545
4541
|
},
|
|
4546
|
-
p(
|
|
4547
|
-
e =
|
|
4542
|
+
p(M, Z) {
|
|
4543
|
+
e = M, (!H || Z[0] & /*$_*/
|
|
4548
4544
|
1024 && o !== (o = /*$_*/
|
|
4549
4545
|
e[10]("close"))) && p(n, "aria-label", o), (!H || Z[0] & /*$_*/
|
|
4550
4546
|
1024 && s !== (s = /*$_*/
|
|
@@ -4554,18 +4550,18 @@ function Hr(e) {
|
|
|
4554
4550
|
1024) && g !== (g = /*$_*/
|
|
4555
4551
|
e[10]("resetSubtitle") + "") && W(b, g), /*step*/
|
|
4556
4552
|
e[2] === "phone" ? C ? C.p(e, Z) : (C = Ar(e), C.c(), C.m(r, P)) : C && (C.d(1), C = null), /*step*/
|
|
4557
|
-
e[2] === "code" ? L ? L.p(e, Z) : (L =
|
|
4553
|
+
e[2] === "code" ? L ? L.p(e, Z) : (L = Mr(e), L.c(), L.m(r, null)) : L && (L.d(1), L = null);
|
|
4558
4554
|
},
|
|
4559
|
-
i(
|
|
4560
|
-
H || (
|
|
4555
|
+
i(M) {
|
|
4556
|
+
H || (M && he(() => {
|
|
4561
4557
|
H && (E && E.end(1), S = ri(
|
|
4562
4558
|
r,
|
|
4563
4559
|
cr,
|
|
4564
4560
|
/*cardIn*/
|
|
4565
4561
|
e[23]
|
|
4566
4562
|
), S.start());
|
|
4567
|
-
}),
|
|
4568
|
-
H && (_ || (_ =
|
|
4563
|
+
}), M && he(() => {
|
|
4564
|
+
H && (_ || (_ = Pe(
|
|
4569
4565
|
t,
|
|
4570
4566
|
dr,
|
|
4571
4567
|
/*overlayFade*/
|
|
@@ -4574,13 +4570,13 @@ function Hr(e) {
|
|
|
4574
4570
|
)), _.run(1));
|
|
4575
4571
|
}), H = !0);
|
|
4576
4572
|
},
|
|
4577
|
-
o(
|
|
4578
|
-
S && S.invalidate(),
|
|
4573
|
+
o(M) {
|
|
4574
|
+
S && S.invalidate(), M && (E = ni(
|
|
4579
4575
|
r,
|
|
4580
4576
|
cr,
|
|
4581
4577
|
/*cardOut*/
|
|
4582
4578
|
e[24]
|
|
4583
|
-
)),
|
|
4579
|
+
)), M && (_ || (_ = Pe(
|
|
4584
4580
|
t,
|
|
4585
4581
|
dr,
|
|
4586
4582
|
/*overlayFade*/
|
|
@@ -4588,8 +4584,8 @@ function Hr(e) {
|
|
|
4588
4584
|
!1
|
|
4589
4585
|
)), _.run(0)), H = !1;
|
|
4590
4586
|
},
|
|
4591
|
-
d(
|
|
4592
|
-
|
|
4587
|
+
d(M) {
|
|
4588
|
+
M && Y(t), C && C.d(), L && L.d(), M && E && E.end(), M && _ && _.end(), T = !1, j();
|
|
4593
4589
|
}
|
|
4594
4590
|
};
|
|
4595
4591
|
}
|
|
@@ -4603,7 +4599,7 @@ function Ar(e) {
|
|
|
4603
4599
|
), u, c, h, g, b, w = (
|
|
4604
4600
|
/*$_*/
|
|
4605
4601
|
e[10]("phoneLabel") + ""
|
|
4606
|
-
), P, S, E, _, H, T,
|
|
4602
|
+
), P, S, E, _, H, T, j, C, L, M = (
|
|
4607
4603
|
/*loading*/
|
|
4608
4604
|
(e[11] ? (
|
|
4609
4605
|
/*$_*/
|
|
@@ -4612,29 +4608,29 @@ function Ar(e) {
|
|
|
4612
4608
|
/*$_*/
|
|
4613
4609
|
e[10]("requestCode")
|
|
4614
4610
|
)) + ""
|
|
4615
|
-
), Z, ge,
|
|
4616
|
-
function
|
|
4611
|
+
), Z, ge, xe;
|
|
4612
|
+
function Le(I, R) {
|
|
4617
4613
|
return (
|
|
4618
4614
|
/*phoneprefixeditable*/
|
|
4619
|
-
I[0] === "true" ?
|
|
4615
|
+
I[0] === "true" ? ds : us
|
|
4620
4616
|
);
|
|
4621
4617
|
}
|
|
4622
|
-
let ae =
|
|
4618
|
+
let ae = Le(e), G = ae(e), O = (
|
|
4623
4619
|
/*phoneError*/
|
|
4624
4620
|
e[15] && Nr(e)
|
|
4625
|
-
),
|
|
4621
|
+
), D = (
|
|
4626
4622
|
/*phoneInfo*/
|
|
4627
4623
|
e[16] && Ir(e)
|
|
4628
4624
|
);
|
|
4629
4625
|
return {
|
|
4630
4626
|
c() {
|
|
4631
|
-
t = x("section"), r = x("p"), i =
|
|
4627
|
+
t = x("section"), r = x("p"), i = k(n), o = $(), s = x("div"), a = x("div"), d = x("label"), u = k(l), c = $(), G.c(), h = $(), g = x("div"), b = x("label"), P = k(w), S = $(), E = x("input"), H = $(), T = x("div"), O && O.c(), j = $(), D && D.c(), C = $(), L = x("button"), Z = k(M), p(r, "class", "ResetPwdHelp"), p(d, "class", "ResetPwdLabel"), p(d, "for", "ResetPwdPrefix"), p(a, "class", "ResetPwdField ResetPwdFieldPrefix"), st(
|
|
4632
4628
|
a,
|
|
4633
4629
|
"ResetPwdFieldFilled",
|
|
4634
4630
|
/*mobilePrefix*/
|
|
4635
4631
|
e[14]
|
|
4636
4632
|
), p(b, "class", "ResetPwdLabel"), p(b, "for", "ResetPwdPhone"), p(E, "id", "ResetPwdPhone"), p(E, "class", "ResetPwdInput ResetPwdInputPhone"), p(E, "type", "tel"), p(E, "autocomplete", "tel-national"), p(E, "aria-invalid", _ = /*phoneError*/
|
|
4637
|
-
e[15] ? "true" : "false"), p(g, "class", "ResetPwdField ResetPwdFieldPhone"),
|
|
4633
|
+
e[15] ? "true" : "false"), p(g, "class", "ResetPwdField ResetPwdFieldPhone"), st(
|
|
4638
4634
|
g,
|
|
4639
4635
|
"ResetPwdFieldFilled",
|
|
4640
4636
|
/*phone*/
|
|
@@ -4643,18 +4639,18 @@ function Ar(e) {
|
|
|
4643
4639
|
e[11], p(t, "class", "ResetPwdSection ResetPwdSectionPhone");
|
|
4644
4640
|
},
|
|
4645
4641
|
m(I, R) {
|
|
4646
|
-
te(I, t, R), m(t, r), m(r, i), m(t, o), m(t, s), m(s, a), m(a, d), m(d, u), m(a, c),
|
|
4642
|
+
te(I, t, R), m(t, r), m(r, i), m(t, o), m(t, s), m(s, a), m(a, d), m(d, u), m(a, c), G.m(a, null), m(s, h), m(s, g), m(g, b), m(b, P), m(g, S), m(g, E), ft(
|
|
4647
4643
|
E,
|
|
4648
4644
|
/*phone*/
|
|
4649
4645
|
e[3]
|
|
4650
|
-
), m(t, H), m(t, T),
|
|
4651
|
-
|
|
4646
|
+
), m(t, H), m(t, T), O && O.m(T, null), m(T, j), D && D.m(T, null), m(t, C), m(t, L), m(L, Z), ge || (xe = [
|
|
4647
|
+
Te(
|
|
4652
4648
|
E,
|
|
4653
4649
|
"input",
|
|
4654
4650
|
/*input_input_handler_1*/
|
|
4655
4651
|
e[49]
|
|
4656
4652
|
),
|
|
4657
|
-
|
|
4653
|
+
Te(
|
|
4658
4654
|
L,
|
|
4659
4655
|
"click",
|
|
4660
4656
|
/*handleRequestCode*/
|
|
@@ -4667,8 +4663,8 @@ function Ar(e) {
|
|
|
4667
4663
|
1024 && n !== (n = /*$_*/
|
|
4668
4664
|
I[10]("enterPhoneHelp") + "") && W(i, n), R[0] & /*$_*/
|
|
4669
4665
|
1024 && l !== (l = /*$_*/
|
|
4670
|
-
I[10]("countryCodeLabel") + "") && W(u, l), ae === (ae =
|
|
4671
|
-
16384 &&
|
|
4666
|
+
I[10]("countryCodeLabel") + "") && W(u, l), ae === (ae = Le(I)) && G ? G.p(I, R) : (G.d(1), G = ae(I), G && (G.c(), G.m(a, null))), R[0] & /*mobilePrefix*/
|
|
4667
|
+
16384 && st(
|
|
4672
4668
|
a,
|
|
4673
4669
|
"ResetPwdFieldFilled",
|
|
4674
4670
|
/*mobilePrefix*/
|
|
@@ -4678,42 +4674,42 @@ function Ar(e) {
|
|
|
4678
4674
|
I[10]("phoneLabel") + "") && W(P, w), R[0] & /*phoneError*/
|
|
4679
4675
|
32768 && _ !== (_ = /*phoneError*/
|
|
4680
4676
|
I[15] ? "true" : "false") && p(E, "aria-invalid", _), R[0] & /*phone*/
|
|
4681
|
-
8 &&
|
|
4677
|
+
8 && ft(
|
|
4682
4678
|
E,
|
|
4683
4679
|
/*phone*/
|
|
4684
4680
|
I[3]
|
|
4685
4681
|
), R[0] & /*phone*/
|
|
4686
|
-
8 &&
|
|
4682
|
+
8 && st(
|
|
4687
4683
|
g,
|
|
4688
4684
|
"ResetPwdFieldFilled",
|
|
4689
4685
|
/*phone*/
|
|
4690
4686
|
I[3]
|
|
4691
4687
|
), /*phoneError*/
|
|
4692
|
-
I[15] ?
|
|
4693
|
-
32768 && fe(
|
|
4694
|
-
|
|
4695
|
-
}),
|
|
4696
|
-
I[16] ?
|
|
4697
|
-
65536 && fe(
|
|
4698
|
-
|
|
4699
|
-
}),
|
|
4700
|
-
3072 &&
|
|
4688
|
+
I[15] ? O ? (O.p(I, R), R[0] & /*phoneError*/
|
|
4689
|
+
32768 && fe(O, 1)) : (O = Nr(I), O.c(), fe(O, 1), O.m(T, j)) : O && (tt(), Fe(O, 1, 1, () => {
|
|
4690
|
+
O = null;
|
|
4691
|
+
}), rt()), /*phoneInfo*/
|
|
4692
|
+
I[16] ? D ? (D.p(I, R), R[0] & /*phoneInfo*/
|
|
4693
|
+
65536 && fe(D, 1)) : (D = Ir(I), D.c(), fe(D, 1), D.m(T, null)) : D && (tt(), Fe(D, 1, 1, () => {
|
|
4694
|
+
D = null;
|
|
4695
|
+
}), rt()), R[0] & /*loading, $_*/
|
|
4696
|
+
3072 && M !== (M = /*loading*/
|
|
4701
4697
|
(I[11] ? (
|
|
4702
4698
|
/*$_*/
|
|
4703
4699
|
I[10]("requesting")
|
|
4704
4700
|
) : (
|
|
4705
4701
|
/*$_*/
|
|
4706
4702
|
I[10]("requestCode")
|
|
4707
|
-
)) + "") && W(Z,
|
|
4703
|
+
)) + "") && W(Z, M), R[0] & /*loading*/
|
|
4708
4704
|
2048 && (L.disabled = /*loading*/
|
|
4709
4705
|
I[11]);
|
|
4710
4706
|
},
|
|
4711
4707
|
d(I) {
|
|
4712
|
-
I && Y(t),
|
|
4708
|
+
I && Y(t), G.d(), O && O.d(), D && D.d(), ge = !1, be(xe);
|
|
4713
4709
|
}
|
|
4714
4710
|
};
|
|
4715
4711
|
}
|
|
4716
|
-
function
|
|
4712
|
+
function us(e) {
|
|
4717
4713
|
let t, r, n, i;
|
|
4718
4714
|
return {
|
|
4719
4715
|
c() {
|
|
@@ -4721,11 +4717,11 @@ function ds(e) {
|
|
|
4721
4717
|
e[0] !== "true", p(t, "autocomplete", "tel-country-code");
|
|
4722
4718
|
},
|
|
4723
4719
|
m(o, s) {
|
|
4724
|
-
te(o, t, s),
|
|
4720
|
+
te(o, t, s), ft(
|
|
4725
4721
|
t,
|
|
4726
4722
|
/*mobilePrefix*/
|
|
4727
4723
|
e[14]
|
|
4728
|
-
), n || (i =
|
|
4724
|
+
), n || (i = Te(
|
|
4729
4725
|
t,
|
|
4730
4726
|
"input",
|
|
4731
4727
|
/*input_input_handler*/
|
|
@@ -4737,7 +4733,7 @@ function ds(e) {
|
|
|
4737
4733
|
1 && r !== (r = /*phoneprefixeditable*/
|
|
4738
4734
|
o[0] !== "true") && (t.readOnly = r), s[0] & /*mobilePrefix*/
|
|
4739
4735
|
16384 && t.value !== /*mobilePrefix*/
|
|
4740
|
-
o[14] &&
|
|
4736
|
+
o[14] && ft(
|
|
4741
4737
|
t,
|
|
4742
4738
|
/*mobilePrefix*/
|
|
4743
4739
|
o[14]
|
|
@@ -4748,22 +4744,22 @@ function ds(e) {
|
|
|
4748
4744
|
}
|
|
4749
4745
|
};
|
|
4750
4746
|
}
|
|
4751
|
-
function
|
|
4747
|
+
function ds(e) {
|
|
4752
4748
|
let t, r;
|
|
4753
4749
|
return {
|
|
4754
4750
|
c() {
|
|
4755
|
-
t = x("vaadin-combo-box"),
|
|
4751
|
+
t = x("vaadin-combo-box"), Ae(
|
|
4756
4752
|
t,
|
|
4757
4753
|
"items",
|
|
4758
4754
|
/*phoneCodes*/
|
|
4759
4755
|
e[13]
|
|
4760
|
-
),
|
|
4756
|
+
), Ae(
|
|
4761
4757
|
t,
|
|
4762
4758
|
"value",
|
|
4763
4759
|
/*mobilePrefix*/
|
|
4764
4760
|
e[14]
|
|
4765
|
-
),
|
|
4766
|
-
e[10]("invalidPrefix")),
|
|
4761
|
+
), Ae(t, "errorMessage", r = /*$_*/
|
|
4762
|
+
e[10]("invalidPrefix")), Ae(
|
|
4767
4763
|
t,
|
|
4768
4764
|
"onChange",
|
|
4769
4765
|
/*handlePrefixDropdown*/
|
|
@@ -4775,20 +4771,20 @@ function cs(e) {
|
|
|
4775
4771
|
},
|
|
4776
4772
|
p(n, i) {
|
|
4777
4773
|
i[0] & /*phoneCodes*/
|
|
4778
|
-
8192 &&
|
|
4774
|
+
8192 && Ae(
|
|
4779
4775
|
t,
|
|
4780
4776
|
"items",
|
|
4781
4777
|
/*phoneCodes*/
|
|
4782
4778
|
n[13]
|
|
4783
4779
|
), i[0] & /*mobilePrefix*/
|
|
4784
|
-
16384 &&
|
|
4780
|
+
16384 && Ae(
|
|
4785
4781
|
t,
|
|
4786
4782
|
"value",
|
|
4787
4783
|
/*mobilePrefix*/
|
|
4788
4784
|
n[14]
|
|
4789
4785
|
), i[0] & /*$_*/
|
|
4790
4786
|
1024 && r !== (r = /*$_*/
|
|
4791
|
-
n[10]("invalidPrefix")) &&
|
|
4787
|
+
n[10]("invalidPrefix")) && Ae(t, "errorMessage", r);
|
|
4792
4788
|
},
|
|
4793
4789
|
d(n) {
|
|
4794
4790
|
n && Y(t);
|
|
@@ -4799,7 +4795,7 @@ function Nr(e) {
|
|
|
4799
4795
|
let t, r, n, i;
|
|
4800
4796
|
return {
|
|
4801
4797
|
c() {
|
|
4802
|
-
t = x("div"), r =
|
|
4798
|
+
t = x("div"), r = k(
|
|
4803
4799
|
/*phoneError*/
|
|
4804
4800
|
e[15]
|
|
4805
4801
|
), p(t, "class", "ResetPwdError");
|
|
@@ -4817,11 +4813,11 @@ function Nr(e) {
|
|
|
4817
4813
|
},
|
|
4818
4814
|
i(o) {
|
|
4819
4815
|
i || (o && he(() => {
|
|
4820
|
-
i && (n || (n =
|
|
4816
|
+
i && (n || (n = Pe(t, Ce, { amount: 5 }, !0)), n.run(1));
|
|
4821
4817
|
}), i = !0);
|
|
4822
4818
|
},
|
|
4823
4819
|
o(o) {
|
|
4824
|
-
o && (n || (n =
|
|
4820
|
+
o && (n || (n = Pe(t, Ce, { amount: 5 }, !1)), n.run(0)), i = !1;
|
|
4825
4821
|
},
|
|
4826
4822
|
d(o) {
|
|
4827
4823
|
o && Y(t), o && n && n.end();
|
|
@@ -4832,7 +4828,7 @@ function Ir(e) {
|
|
|
4832
4828
|
let t, r, n, i;
|
|
4833
4829
|
return {
|
|
4834
4830
|
c() {
|
|
4835
|
-
t = x("div"), r =
|
|
4831
|
+
t = x("div"), r = k(
|
|
4836
4832
|
/*phoneInfo*/
|
|
4837
4833
|
e[16]
|
|
4838
4834
|
), p(t, "class", "ResetPwdHint");
|
|
@@ -4850,18 +4846,18 @@ function Ir(e) {
|
|
|
4850
4846
|
},
|
|
4851
4847
|
i(o) {
|
|
4852
4848
|
i || (o && he(() => {
|
|
4853
|
-
i && (n || (n =
|
|
4849
|
+
i && (n || (n = Pe(t, Ce, { amount: 5 }, !0)), n.run(1));
|
|
4854
4850
|
}), i = !0);
|
|
4855
4851
|
},
|
|
4856
4852
|
o(o) {
|
|
4857
|
-
o && (n || (n =
|
|
4853
|
+
o && (n || (n = Pe(t, Ce, { amount: 5 }, !1)), n.run(0)), i = !1;
|
|
4858
4854
|
},
|
|
4859
4855
|
d(o) {
|
|
4860
4856
|
o && Y(t), o && n && n.end();
|
|
4861
4857
|
}
|
|
4862
4858
|
};
|
|
4863
4859
|
}
|
|
4864
|
-
function
|
|
4860
|
+
function Mr(e) {
|
|
4865
4861
|
let t, r, n = (
|
|
4866
4862
|
/*$_*/
|
|
4867
4863
|
e[10]("enterCodeTitle") + ""
|
|
@@ -4874,10 +4870,10 @@ function Br(e) {
|
|
|
4874
4870
|
), d, l, u, c, h, g = (
|
|
4875
4871
|
/*$_*/
|
|
4876
4872
|
e[10]("verificationCodeLabel") + ""
|
|
4877
|
-
), b, w, P, S, E, _, H, T,
|
|
4873
|
+
), b, w, P, S, E, _, H, T, j, C, L, M, Z, ge = (
|
|
4878
4874
|
/*$_*/
|
|
4879
4875
|
e[10]("attemptsLeft") + ""
|
|
4880
|
-
),
|
|
4876
|
+
), xe, Le, ae, G, O, D, I, R, ne, q, pe, ve, Me = (
|
|
4881
4877
|
/*loading*/
|
|
4882
4878
|
(e[11] ? (
|
|
4883
4879
|
/*$_*/
|
|
@@ -4886,16 +4882,16 @@ function Br(e) {
|
|
|
4886
4882
|
/*$_*/
|
|
4887
4883
|
e[10]("submitCode")
|
|
4888
4884
|
)) + ""
|
|
4889
|
-
), ye,
|
|
4885
|
+
), ye, Ee, we, Ze, de = ur(Array(
|
|
4890
4886
|
/*codeLength*/
|
|
4891
4887
|
e[26]
|
|
4892
4888
|
)), re = [];
|
|
4893
4889
|
for (let v = 0; v < de.length; v += 1)
|
|
4894
|
-
re[v] =
|
|
4890
|
+
re[v] = Br(Lr(e, de, v));
|
|
4895
4891
|
let Q = (
|
|
4896
4892
|
/*codeError*/
|
|
4897
4893
|
e[17] && Or(e)
|
|
4898
|
-
),
|
|
4894
|
+
), U = (
|
|
4899
4895
|
/*codeExpiredHint*/
|
|
4900
4896
|
e[18] && /*remainingSeconds*/
|
|
4901
4897
|
e[9] === 0 && kr(e)
|
|
@@ -4903,25 +4899,25 @@ function Br(e) {
|
|
|
4903
4899
|
/*expiresAt*/
|
|
4904
4900
|
e[5] && Ur(e)
|
|
4905
4901
|
);
|
|
4906
|
-
function J(v,
|
|
4902
|
+
function J(v, V) {
|
|
4907
4903
|
return (
|
|
4908
4904
|
/*canResendAt*/
|
|
4909
4905
|
v[6] && /*now*/
|
|
4910
4906
|
v[7] < /*canResendAt*/
|
|
4911
|
-
v[6] ?
|
|
4907
|
+
v[6] ? fs : cs
|
|
4912
4908
|
);
|
|
4913
4909
|
}
|
|
4914
|
-
let
|
|
4910
|
+
let He = J(e), le = He(e);
|
|
4915
4911
|
return {
|
|
4916
4912
|
c() {
|
|
4917
|
-
t = x("section"), r = x("h3"), i =
|
|
4913
|
+
t = x("section"), r = x("h3"), i = k(n), o = $(), s = x("p"), d = k(a), l = $(), u = x("div"), c = x("div"), h = x("label"), b = k(g), w = $(), P = x("div");
|
|
4918
4914
|
for (let v = 0; v < re.length; v += 1)
|
|
4919
4915
|
re[v].c();
|
|
4920
|
-
E =
|
|
4916
|
+
E = $(), _ = x("div"), Q && Q.c(), H = $(), U && U.c(), T = $(), j = x("div"), C = x("div"), L = x("div"), M = x("span"), Z = x("strong"), xe = k(ge), Le = k(":"), ae = $(), G = x("span"), O = k(
|
|
4921
4917
|
/*attemptsRemaining*/
|
|
4922
4918
|
e[4]
|
|
4923
|
-
),
|
|
4924
|
-
e[10]("verificationCodeLabel")), p(c, "class", "ResetPwdField ResetPwdFieldCode"), p(u, "class", "ResetPwdRow"), p(u, "aria-describedby", "ResetPwdRowErrorsCode"), p(_, "id", "ResetPwdRowErrorsCode"), p(_, "class", "ResetPwdErrors"), p(_, "role", "alert"), p(_, "aria-live", "assertive"), p(
|
|
4919
|
+
), D = $(), X && X.c(), I = $(), R = x("button"), le.c(), pe = $(), ve = x("button"), ye = k(Me), p(r, "id", "ResetPwdCodeTitle"), p(r, "class", "ResetPwdStepTitle"), p(s, "class", "ResetPwdHelp"), p(h, "class", "ResetPwdLabel"), p(h, "for", "ResetPwdCode"), p(P, "class", "ResetPwdCodeGroup"), p(P, "role", "group"), p(P, "aria-label", S = /*$_*/
|
|
4920
|
+
e[10]("verificationCodeLabel")), p(c, "class", "ResetPwdField ResetPwdFieldCode"), p(u, "class", "ResetPwdRow"), p(u, "aria-describedby", "ResetPwdRowErrorsCode"), p(_, "id", "ResetPwdRowErrorsCode"), p(_, "class", "ResetPwdErrors"), p(_, "role", "alert"), p(_, "aria-live", "assertive"), p(G, "class", "ResetPwdAttempts"), p(M, "class", "ResetPwdMeta"), p(L, "class", "ResetPwdMetaRow"), p(R, "class", "ResetPwdLink"), p(R, "type", "button"), R.disabled = ne = /*loading*/
|
|
4925
4921
|
e[11] || /*canResendAt*/
|
|
4926
4922
|
e[6] && /*now*/
|
|
4927
4923
|
e[7] < /*canResendAt*/
|
|
@@ -4929,22 +4925,22 @@ function Br(e) {
|
|
|
4929
4925
|
e[11] || /*canResendAt*/
|
|
4930
4926
|
e[6] && /*now*/
|
|
4931
4927
|
e[7] < /*canResendAt*/
|
|
4932
|
-
e[6]), p(C, "class", "ResetPwdField ResetPwdFieldMeta"), p(
|
|
4928
|
+
e[6]), p(C, "class", "ResetPwdField ResetPwdFieldMeta"), p(j, "class", "ResetPwdRow"), p(j, "aria-describedby", "ResetPwdRowErrorsCode"), p(ve, "class", "ResetPwdButton"), p(ve, "type", "button"), ve.disabled = Ee = /*loading*/
|
|
4933
4929
|
e[11] || /*disableSubmitCode*/
|
|
4934
4930
|
e[20], p(t, "class", "ResetPwdSection ResetPwdSectionCode"), p(t, "aria-labelledby", "ResetPwdCodeTitle");
|
|
4935
4931
|
},
|
|
4936
|
-
m(v,
|
|
4937
|
-
te(v, t,
|
|
4932
|
+
m(v, V) {
|
|
4933
|
+
te(v, t, V), m(t, r), m(r, i), m(t, o), m(t, s), m(s, d), m(t, l), m(t, u), m(u, c), m(c, h), m(h, b), m(c, w), m(c, P);
|
|
4938
4934
|
for (let K = 0; K < re.length; K += 1)
|
|
4939
4935
|
re[K] && re[K].m(P, null);
|
|
4940
|
-
m(t, E), m(t, _), Q && Q.m(_, null), m(_, H),
|
|
4941
|
-
|
|
4936
|
+
m(t, E), m(t, _), Q && Q.m(_, null), m(_, H), U && U.m(_, null), m(t, T), m(t, j), m(j, C), m(C, L), m(L, M), m(M, Z), m(Z, xe), m(Z, Le), m(M, ae), m(M, G), m(G, O), m(L, D), X && X.m(L, null), m(C, I), m(C, R), le.m(R, null), m(t, pe), m(t, ve), m(ve, ye), we || (Ze = [
|
|
4937
|
+
Te(
|
|
4942
4938
|
R,
|
|
4943
4939
|
"click",
|
|
4944
4940
|
/*handleResend*/
|
|
4945
4941
|
e[32]
|
|
4946
4942
|
),
|
|
4947
|
-
|
|
4943
|
+
Te(
|
|
4948
4944
|
ve,
|
|
4949
4945
|
"click",
|
|
4950
4946
|
/*handleVerifyCode*/
|
|
@@ -4952,17 +4948,17 @@ function Br(e) {
|
|
|
4952
4948
|
)
|
|
4953
4949
|
], we = !0);
|
|
4954
4950
|
},
|
|
4955
|
-
p(v,
|
|
4956
|
-
if (
|
|
4951
|
+
p(v, V) {
|
|
4952
|
+
if (V[0] & /*$_*/
|
|
4957
4953
|
1024 && n !== (n = /*$_*/
|
|
4958
|
-
v[10]("enterCodeTitle") + "") && W(i, n),
|
|
4954
|
+
v[10]("enterCodeTitle") + "") && W(i, n), V[0] & /*$_*/
|
|
4959
4955
|
1024 && a !== (a = /*$_*/
|
|
4960
4956
|
v[10]("codeSubtitle").replace("{n}", String(
|
|
4961
4957
|
/*codeLength*/
|
|
4962
4958
|
v[26]
|
|
4963
|
-
)) + "") && W(d, a),
|
|
4959
|
+
)) + "") && W(d, a), V[0] & /*$_*/
|
|
4964
4960
|
1024 && g !== (g = /*$_*/
|
|
4965
|
-
v[10]("verificationCodeLabel") + "") && W(b, g),
|
|
4961
|
+
v[10]("verificationCodeLabel") + "") && W(b, g), V[0] & /*codeDigits, codeError, codeInputs, handleCodeInput, handleCodeKeyDown*/
|
|
4966
4962
|
403308800) {
|
|
4967
4963
|
de = ur(Array(
|
|
4968
4964
|
/*codeLength*/
|
|
@@ -4970,43 +4966,43 @@ function Br(e) {
|
|
|
4970
4966
|
));
|
|
4971
4967
|
let K;
|
|
4972
4968
|
for (K = 0; K < de.length; K += 1) {
|
|
4973
|
-
const
|
|
4974
|
-
re[K] ? re[K].p(
|
|
4969
|
+
const Ye = Lr(v, de, K);
|
|
4970
|
+
re[K] ? re[K].p(Ye, V) : (re[K] = Br(Ye), re[K].c(), re[K].m(P, null));
|
|
4975
4971
|
}
|
|
4976
4972
|
for (; K < re.length; K += 1)
|
|
4977
4973
|
re[K].d(1);
|
|
4978
4974
|
re.length = de.length;
|
|
4979
4975
|
}
|
|
4980
|
-
|
|
4976
|
+
V[0] & /*$_*/
|
|
4981
4977
|
1024 && S !== (S = /*$_*/
|
|
4982
4978
|
v[10]("verificationCodeLabel")) && p(P, "aria-label", S), /*codeError*/
|
|
4983
|
-
v[17] ? Q ? (Q.p(v,
|
|
4984
|
-
131072 && fe(Q, 1)) : (Q = Or(v), Q.c(), fe(Q, 1), Q.m(_, H)) : Q && (
|
|
4979
|
+
v[17] ? Q ? (Q.p(v, V), V[0] & /*codeError*/
|
|
4980
|
+
131072 && fe(Q, 1)) : (Q = Or(v), Q.c(), fe(Q, 1), Q.m(_, H)) : Q && (tt(), Fe(Q, 1, 1, () => {
|
|
4985
4981
|
Q = null;
|
|
4986
|
-
}),
|
|
4982
|
+
}), rt()), /*codeExpiredHint*/
|
|
4987
4983
|
v[18] && /*remainingSeconds*/
|
|
4988
|
-
v[9] === 0 ?
|
|
4989
|
-
262656 && fe(
|
|
4990
|
-
|
|
4991
|
-
}),
|
|
4984
|
+
v[9] === 0 ? U ? (U.p(v, V), V[0] & /*codeExpiredHint, remainingSeconds*/
|
|
4985
|
+
262656 && fe(U, 1)) : (U = kr(v), U.c(), fe(U, 1), U.m(_, null)) : U && (tt(), Fe(U, 1, 1, () => {
|
|
4986
|
+
U = null;
|
|
4987
|
+
}), rt()), V[0] & /*$_*/
|
|
4992
4988
|
1024 && ge !== (ge = /*$_*/
|
|
4993
|
-
v[10]("attemptsLeft") + "") && W(
|
|
4989
|
+
v[10]("attemptsLeft") + "") && W(xe, ge), V[0] & /*attemptsRemaining*/
|
|
4994
4990
|
16 && W(
|
|
4995
|
-
|
|
4991
|
+
O,
|
|
4996
4992
|
/*attemptsRemaining*/
|
|
4997
4993
|
v[4]
|
|
4998
4994
|
), /*expiresAt*/
|
|
4999
|
-
v[5] ? X ? X.p(v,
|
|
4995
|
+
v[5] ? X ? X.p(v, V) : (X = Ur(v), X.c(), X.m(L, null)) : X && (X.d(1), X = null), He === (He = J(v)) && le ? le.p(v, V) : (le.d(1), le = He(v), le && (le.c(), le.m(R, null))), V[0] & /*loading, canResendAt, now*/
|
|
5000
4996
|
2240 && ne !== (ne = /*loading*/
|
|
5001
4997
|
v[11] || /*canResendAt*/
|
|
5002
4998
|
v[6] && /*now*/
|
|
5003
4999
|
v[7] < /*canResendAt*/
|
|
5004
|
-
v[6]) && (R.disabled = ne),
|
|
5000
|
+
v[6]) && (R.disabled = ne), V[0] & /*loading, canResendAt, now*/
|
|
5005
5001
|
2240 && q !== (q = /*loading*/
|
|
5006
5002
|
v[11] || /*canResendAt*/
|
|
5007
5003
|
v[6] && /*now*/
|
|
5008
5004
|
v[7] < /*canResendAt*/
|
|
5009
|
-
v[6]) && p(R, "aria-disabled", q),
|
|
5005
|
+
v[6]) && p(R, "aria-disabled", q), V[0] & /*loading, $_*/
|
|
5010
5006
|
3072 && Me !== (Me = /*loading*/
|
|
5011
5007
|
(v[11] ? (
|
|
5012
5008
|
/*$_*/
|
|
@@ -5014,17 +5010,17 @@ function Br(e) {
|
|
|
5014
5010
|
) : (
|
|
5015
5011
|
/*$_*/
|
|
5016
5012
|
v[10]("submitCode")
|
|
5017
|
-
)) + "") && W(ye, Me),
|
|
5018
|
-
1050624 &&
|
|
5013
|
+
)) + "") && W(ye, Me), V[0] & /*loading, disableSubmitCode*/
|
|
5014
|
+
1050624 && Ee !== (Ee = /*loading*/
|
|
5019
5015
|
v[11] || /*disableSubmitCode*/
|
|
5020
|
-
v[20]) && (ve.disabled =
|
|
5016
|
+
v[20]) && (ve.disabled = Ee);
|
|
5021
5017
|
},
|
|
5022
5018
|
d(v) {
|
|
5023
|
-
v && Y(t), Gn(re, v), Q && Q.d(),
|
|
5019
|
+
v && Y(t), Gn(re, v), Q && Q.d(), U && U.d(), X && X.d(), le.d(), we = !1, be(Ze);
|
|
5024
5020
|
}
|
|
5025
5021
|
};
|
|
5026
5022
|
}
|
|
5027
|
-
function
|
|
5023
|
+
function Br(e) {
|
|
5028
5024
|
let t, r, n, i = (
|
|
5029
5025
|
/*index*/
|
|
5030
5026
|
e[74]
|
|
@@ -5067,8 +5063,8 @@ function Mr(e) {
|
|
|
5067
5063
|
},
|
|
5068
5064
|
m(c, h) {
|
|
5069
5065
|
te(c, t, h), a(), o || (s = [
|
|
5070
|
-
|
|
5071
|
-
|
|
5066
|
+
Te(t, "input", l),
|
|
5067
|
+
Te(t, "keydown", u)
|
|
5072
5068
|
], o = !0);
|
|
5073
5069
|
},
|
|
5074
5070
|
p(c, h) {
|
|
@@ -5092,7 +5088,7 @@ function Or(e) {
|
|
|
5092
5088
|
let t, r, n, i;
|
|
5093
5089
|
return {
|
|
5094
5090
|
c() {
|
|
5095
|
-
t = x("div"), r =
|
|
5091
|
+
t = x("div"), r = k(
|
|
5096
5092
|
/*codeError*/
|
|
5097
5093
|
e[17]
|
|
5098
5094
|
), p(t, "class", "ResetPwdError");
|
|
@@ -5110,11 +5106,11 @@ function Or(e) {
|
|
|
5110
5106
|
},
|
|
5111
5107
|
i(o) {
|
|
5112
5108
|
i || (o && he(() => {
|
|
5113
|
-
i && (n || (n =
|
|
5109
|
+
i && (n || (n = Pe(t, Ce, { amount: 5 }, !0)), n.run(1));
|
|
5114
5110
|
}), i = !0);
|
|
5115
5111
|
},
|
|
5116
5112
|
o(o) {
|
|
5117
|
-
o && (n || (n =
|
|
5113
|
+
o && (n || (n = Pe(t, Ce, { amount: 5 }, !1)), n.run(0)), i = !1;
|
|
5118
5114
|
},
|
|
5119
5115
|
d(o) {
|
|
5120
5116
|
o && Y(t), o && n && n.end();
|
|
@@ -5125,7 +5121,7 @@ function kr(e) {
|
|
|
5125
5121
|
let t, r, n, i;
|
|
5126
5122
|
return {
|
|
5127
5123
|
c() {
|
|
5128
|
-
t = x("div"), r =
|
|
5124
|
+
t = x("div"), r = k(
|
|
5129
5125
|
/*codeExpiredHint*/
|
|
5130
5126
|
e[18]
|
|
5131
5127
|
), p(t, "class", "ResetPwdHint");
|
|
@@ -5143,11 +5139,11 @@ function kr(e) {
|
|
|
5143
5139
|
},
|
|
5144
5140
|
i(o) {
|
|
5145
5141
|
i || (o && he(() => {
|
|
5146
|
-
i && (n || (n =
|
|
5142
|
+
i && (n || (n = Pe(t, Ce, { amount: 5 }, !0)), n.run(1));
|
|
5147
5143
|
}), i = !0);
|
|
5148
5144
|
},
|
|
5149
5145
|
o(o) {
|
|
5150
|
-
o && (n || (n =
|
|
5146
|
+
o && (n || (n = Pe(t, Ce, { amount: 5 }, !1)), n.run(0)), i = !1;
|
|
5151
5147
|
},
|
|
5152
5148
|
d(o) {
|
|
5153
5149
|
o && Y(t), o && n && n.end();
|
|
@@ -5161,10 +5157,10 @@ function Ur(e) {
|
|
|
5161
5157
|
), i, o, s, a, d, l;
|
|
5162
5158
|
return {
|
|
5163
5159
|
c() {
|
|
5164
|
-
t = x("span"), r = x("strong"), i =
|
|
5160
|
+
t = x("span"), r = x("strong"), i = k(n), o = k(":"), s = $(), a = x("span"), d = k(
|
|
5165
5161
|
/*remainingSeconds*/
|
|
5166
5162
|
e[9]
|
|
5167
|
-
), l =
|
|
5163
|
+
), l = k("s"), p(a, "class", "ResetPwdExpires"), p(t, "class", "ResetPwdMeta");
|
|
5168
5164
|
},
|
|
5169
5165
|
m(u, c) {
|
|
5170
5166
|
te(u, t, c), m(t, r), m(r, i), m(r, o), m(t, s), m(t, a), m(a, d), m(a, l);
|
|
@@ -5184,14 +5180,14 @@ function Ur(e) {
|
|
|
5184
5180
|
}
|
|
5185
5181
|
};
|
|
5186
5182
|
}
|
|
5187
|
-
function
|
|
5183
|
+
function cs(e) {
|
|
5188
5184
|
let t = (
|
|
5189
5185
|
/*$_*/
|
|
5190
5186
|
e[10]("resendCode") + ""
|
|
5191
5187
|
), r;
|
|
5192
5188
|
return {
|
|
5193
5189
|
c() {
|
|
5194
|
-
r =
|
|
5190
|
+
r = k(t);
|
|
5195
5191
|
},
|
|
5196
5192
|
m(n, i) {
|
|
5197
5193
|
te(n, r, i);
|
|
@@ -5206,17 +5202,17 @@ function fs(e) {
|
|
|
5206
5202
|
}
|
|
5207
5203
|
};
|
|
5208
5204
|
}
|
|
5209
|
-
function
|
|
5205
|
+
function fs(e) {
|
|
5210
5206
|
let t = (
|
|
5211
5207
|
/*$_*/
|
|
5212
5208
|
e[10]("resendCode") + ""
|
|
5213
5209
|
), r, n, i, o, s, a;
|
|
5214
5210
|
return {
|
|
5215
5211
|
c() {
|
|
5216
|
-
r =
|
|
5212
|
+
r = k(t), n = k(" ("), i = x("span"), o = k(
|
|
5217
5213
|
/*resendSeconds*/
|
|
5218
5214
|
e[21]
|
|
5219
|
-
), s =
|
|
5215
|
+
), s = k("s"), a = k(")"), p(i, "class", "ResetPwdResend");
|
|
5220
5216
|
},
|
|
5221
5217
|
m(d, l) {
|
|
5222
5218
|
te(d, r, l), te(d, n, l), te(d, i, l), m(i, o), m(i, s), te(d, a, l);
|
|
@@ -5236,7 +5232,7 @@ function hs(e) {
|
|
|
5236
5232
|
}
|
|
5237
5233
|
};
|
|
5238
5234
|
}
|
|
5239
|
-
function
|
|
5235
|
+
function hs(e) {
|
|
5240
5236
|
let t, r = (
|
|
5241
5237
|
/*isModalOpen*/
|
|
5242
5238
|
e[12] && Hr(e)
|
|
@@ -5251,22 +5247,22 @@ function ps(e) {
|
|
|
5251
5247
|
p(n, i) {
|
|
5252
5248
|
/*isModalOpen*/
|
|
5253
5249
|
n[12] ? r ? (r.p(n, i), i[0] & /*isModalOpen*/
|
|
5254
|
-
4096 && fe(r, 1)) : (r = Hr(n), r.c(), fe(r, 1), r.m(t, null)) : r && (
|
|
5250
|
+
4096 && fe(r, 1)) : (r = Hr(n), r.c(), fe(r, 1), r.m(t, null)) : r && (tt(), Fe(r, 1, 1, () => {
|
|
5255
5251
|
r = null;
|
|
5256
|
-
}),
|
|
5252
|
+
}), rt());
|
|
5257
5253
|
},
|
|
5258
5254
|
i(n) {
|
|
5259
5255
|
fe(r);
|
|
5260
5256
|
},
|
|
5261
5257
|
o(n) {
|
|
5262
|
-
|
|
5258
|
+
Fe(r);
|
|
5263
5259
|
},
|
|
5264
5260
|
d(n) {
|
|
5265
5261
|
n && Y(t), r && r.d(), e[53](null);
|
|
5266
5262
|
}
|
|
5267
5263
|
};
|
|
5268
5264
|
}
|
|
5269
|
-
function
|
|
5265
|
+
function ps(e) {
|
|
5270
5266
|
try {
|
|
5271
5267
|
return JSON.parse(e);
|
|
5272
5268
|
} catch (t) {
|
|
@@ -5282,20 +5278,20 @@ function Dr(e, t = "error") {
|
|
|
5282
5278
|
window.location.href
|
|
5283
5279
|
);
|
|
5284
5280
|
}
|
|
5285
|
-
function
|
|
5281
|
+
function ms(e, t, r) {
|
|
5286
5282
|
let n, i, o, s, a, d, l, u;
|
|
5287
|
-
Dn(e,
|
|
5288
|
-
let { clientstyling: c = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: g = "" } = t, { mbsource: b } = t, { phoneregex: w = "" } = t, { phoneprefixeditable: P = "true" } = t, { smscodelength: S = "6" } = t, { smscodemaxattempts: E = "5" } = t, { smscodettl: _ = "5" } = t, { resenddelay: H = "1" } = t, { endpoint: T = "" } = t, { lang:
|
|
5289
|
-
const ge = { duration: 140, easing:
|
|
5283
|
+
Dn(e, es, (f) => r(10, u = f));
|
|
5284
|
+
let { clientstyling: c = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: g = "" } = t, { mbsource: b } = t, { phoneregex: w = "" } = t, { phoneprefixeditable: P = "true" } = t, { smscodelength: S = "6" } = t, { smscodemaxattempts: E = "5" } = t, { smscodettl: _ = "5" } = t, { resenddelay: H = "1" } = t, { endpoint: T = "" } = t, { lang: j = "en" } = t, C, L = "phone", M = !1, Z = !0;
|
|
5285
|
+
const ge = { duration: 140, easing: Lt }, xe = {
|
|
5290
5286
|
duration: 220,
|
|
5291
5287
|
start: 0.96,
|
|
5292
|
-
easing:
|
|
5293
|
-
},
|
|
5288
|
+
easing: Lt
|
|
5289
|
+
}, Le = {
|
|
5294
5290
|
duration: 140,
|
|
5295
5291
|
start: 1,
|
|
5296
|
-
easing:
|
|
5292
|
+
easing: Lt
|
|
5297
5293
|
};
|
|
5298
|
-
let ae = [],
|
|
5294
|
+
let ae = [], G = "", O = "", D = "", I = "", R = null, ne = "", q = "", pe = /^[\d\.]+$/.test(E) ? Number(E) : 5, ve = Number(/^[\d\.]+$/.test(_) ? _ : 5) * 60 * 1e3, Me = Number(/^[\d\.]+$/.test(H) ? H : 1) * 60 * 1e3, ye = null, Ee = "", we = null, Ze = null, de = Date.now();
|
|
5299
5295
|
setInterval(
|
|
5300
5296
|
() => {
|
|
5301
5297
|
r(7, de = Date.now());
|
|
@@ -5318,66 +5314,66 @@ function bs(e, t, r) {
|
|
|
5318
5314
|
function Q(f) {
|
|
5319
5315
|
return w ? (typeof w == "string" ? new RegExp(w) : w).test(f.trim()) : !1;
|
|
5320
5316
|
}
|
|
5321
|
-
let
|
|
5322
|
-
function
|
|
5323
|
-
const
|
|
5324
|
-
if (
|
|
5325
|
-
r(8, J[y] =
|
|
5326
|
-
else if (
|
|
5327
|
-
const oe =
|
|
5328
|
-
oe.forEach((
|
|
5329
|
-
r(8, J[y + Nn] =
|
|
5317
|
+
let U = Number(S), X = [], J = Array(Number(U)).fill("");
|
|
5318
|
+
function He(f, y) {
|
|
5319
|
+
const F = f.target.value.replace(/\D/g, "");
|
|
5320
|
+
if (F.length === 1)
|
|
5321
|
+
r(8, J[y] = F, J), v(y);
|
|
5322
|
+
else if (F.length > 1) {
|
|
5323
|
+
const oe = F.split("").slice(0, U - y);
|
|
5324
|
+
oe.forEach((ot, Nn) => {
|
|
5325
|
+
r(8, J[y + Nn] = ot, J);
|
|
5330
5326
|
}), K(y + oe.length - 1);
|
|
5331
5327
|
}
|
|
5332
5328
|
ne = J.join("");
|
|
5333
5329
|
}
|
|
5334
5330
|
function le(f, y) {
|
|
5335
|
-
f.key === "Backspace" ? J[y] ? r(8, J[y] = "", J) : y > 0 && (
|
|
5331
|
+
f.key === "Backspace" ? J[y] ? r(8, J[y] = "", J) : y > 0 && (V(y), r(8, J[y - 1] = "", J)) : !/\d/.test(f.key) && f.key !== "Tab" && f.key.length === 1 && f.preventDefault();
|
|
5336
5332
|
}
|
|
5337
5333
|
function v(f) {
|
|
5338
5334
|
var y;
|
|
5339
|
-
f <
|
|
5335
|
+
f < U - 1 && ((y = X[f + 1]) == null || y.focus());
|
|
5340
5336
|
}
|
|
5341
|
-
function
|
|
5337
|
+
function V(f) {
|
|
5342
5338
|
var y;
|
|
5343
5339
|
f > 0 && ((y = X[f - 1]) == null || y.focus());
|
|
5344
5340
|
}
|
|
5345
5341
|
function K(f) {
|
|
5346
5342
|
var y;
|
|
5347
|
-
f >= 0 && f <
|
|
5343
|
+
f >= 0 && f < U && ((y = X[f]) == null || y.focus());
|
|
5348
5344
|
}
|
|
5349
|
-
function
|
|
5345
|
+
function Ye(f, y) {
|
|
5350
5346
|
return me(this, null, function* () {
|
|
5351
|
-
var
|
|
5347
|
+
var ot;
|
|
5352
5348
|
const ee = yield fetch(f, {
|
|
5353
5349
|
method: "POST",
|
|
5354
5350
|
headers: { "Content-Type": "application/json" },
|
|
5355
5351
|
body: void 0
|
|
5356
|
-
}),
|
|
5352
|
+
}), F = yield ee.text(), oe = F ? ps(F) : void 0;
|
|
5357
5353
|
if (!ee.ok)
|
|
5358
|
-
throw new Cr(ee.status, (
|
|
5354
|
+
throw new Cr(ee.status, (ot = oe == null ? void 0 : oe.error) != null ? ot : ee.statusText, oe);
|
|
5359
5355
|
return oe != null ? oe : {};
|
|
5360
5356
|
});
|
|
5361
5357
|
}
|
|
5362
5358
|
function vn(f) {
|
|
5363
5359
|
return me(this, null, function* () {
|
|
5364
|
-
const { mobileNumber: y, mobilePrefix: ee } = f,
|
|
5365
|
-
ee &&
|
|
5366
|
-
const oe = `${T}/v1/player/resetPasswordByMobilePhone?${
|
|
5367
|
-
return yield
|
|
5360
|
+
const { mobileNumber: y, mobilePrefix: ee } = f, F = new URLSearchParams({ mobileNumber: y });
|
|
5361
|
+
ee && F.set("mobilePrefix", ee);
|
|
5362
|
+
const oe = `${T}/v1/player/resetPasswordByMobilePhone?${F.toString()}`;
|
|
5363
|
+
return yield Ye(oe);
|
|
5368
5364
|
});
|
|
5369
5365
|
}
|
|
5370
5366
|
function yn(f) {
|
|
5371
5367
|
return me(this, null, function* () {
|
|
5372
|
-
const { tokenId: y, validationCode: ee } = f,
|
|
5373
|
-
return yield
|
|
5368
|
+
const { tokenId: y, validationCode: ee } = f, F = new URLSearchParams({ tokenId: y, validationCode: ee }), oe = `${T}/v1/player/resetPasswordByMobilePhone/validate?${F.toString()}`;
|
|
5369
|
+
return yield Ye(oe);
|
|
5374
5370
|
});
|
|
5375
5371
|
}
|
|
5376
5372
|
function wn() {
|
|
5377
5373
|
return me(this, null, function* () {
|
|
5378
5374
|
const f = new URL(`${T}/v1/player/operatorSupportedPhoneCodes`), y = yield fetch(f.href);
|
|
5379
5375
|
try {
|
|
5380
|
-
return (yield y.json()).phoneCodes.map((
|
|
5376
|
+
return (yield y.json()).phoneCodes.map((F) => ({ label: F, value: F }));
|
|
5381
5377
|
} catch (ee) {
|
|
5382
5378
|
return [];
|
|
5383
5379
|
}
|
|
@@ -5385,43 +5381,43 @@ function bs(e, t, r) {
|
|
|
5385
5381
|
}
|
|
5386
5382
|
function _n(f) {
|
|
5387
5383
|
const y = f.target.value;
|
|
5388
|
-
r(14,
|
|
5384
|
+
r(14, O = y);
|
|
5389
5385
|
}
|
|
5390
5386
|
function nr() {
|
|
5391
5387
|
return me(this, null, function* () {
|
|
5392
|
-
r(15,
|
|
5388
|
+
r(15, D = ""), r(16, I = ""), r(17, q = ""), r(11, M = !0);
|
|
5393
5389
|
try {
|
|
5394
|
-
if (!Q(
|
|
5395
|
-
r(15,
|
|
5390
|
+
if (!Q(G)) {
|
|
5391
|
+
r(15, D = u("invalidPhone"));
|
|
5396
5392
|
return;
|
|
5397
5393
|
}
|
|
5398
5394
|
const f = yield vn({
|
|
5399
|
-
mobileNumber:
|
|
5400
|
-
mobilePrefix: (
|
|
5395
|
+
mobileNumber: G.trim(),
|
|
5396
|
+
mobilePrefix: (O == null ? void 0 : O.trim()) || void 0
|
|
5401
5397
|
});
|
|
5402
5398
|
if (f != null && f.tokenId) {
|
|
5403
|
-
R = f.tokenId, r(5, ye = Date.now() + ve), r(6, we = Date.now() + Me), r(18,
|
|
5404
|
-
const y =
|
|
5399
|
+
R = f.tokenId, r(5, ye = Date.now() + ve), r(6, we = Date.now() + Me), r(18, Ee = ""), ne = "", r(8, J = Array.from({ length: U }, () => ""));
|
|
5400
|
+
const y = ss(R);
|
|
5405
5401
|
r(4, pe = y != null ? y : Number(E)), Rr(R, pe), r(2, L = "code");
|
|
5406
5402
|
} else
|
|
5407
5403
|
r(16, I = u("genericIfRegistered"));
|
|
5408
5404
|
} catch (f) {
|
|
5409
5405
|
const { message: y, thirdPartyResponse: { message: ee } = {} } = f;
|
|
5410
|
-
r(15,
|
|
5406
|
+
r(15, D = ee || y), Dr(D);
|
|
5411
5407
|
} finally {
|
|
5412
|
-
r(11,
|
|
5408
|
+
r(11, M = !1);
|
|
5413
5409
|
}
|
|
5414
5410
|
});
|
|
5415
5411
|
}
|
|
5416
|
-
function
|
|
5412
|
+
function Tt() {
|
|
5417
5413
|
r(4, pe = Math.max(0, pe - 1)), Rr(R, pe);
|
|
5418
5414
|
}
|
|
5419
5415
|
function Pn() {
|
|
5420
5416
|
return me(this, null, function* () {
|
|
5421
|
-
r(17, q = ""), r(11,
|
|
5417
|
+
r(17, q = ""), r(11, M = !0);
|
|
5422
5418
|
try {
|
|
5423
|
-
if (!ne || ne.trim().length !==
|
|
5424
|
-
r(17, q = u("enterDigitsCode").replace("{n}", String(
|
|
5419
|
+
if (!ne || ne.trim().length !== U || !/^\d+$/.test(ne.trim())) {
|
|
5420
|
+
r(17, q = u("enterDigitsCode").replace("{n}", String(U)));
|
|
5425
5421
|
return;
|
|
5426
5422
|
}
|
|
5427
5423
|
if (!R) {
|
|
@@ -5429,23 +5425,23 @@ function bs(e, t, r) {
|
|
|
5429
5425
|
return;
|
|
5430
5426
|
}
|
|
5431
5427
|
const f = yield yn({ tokenId: R, validationCode: ne.trim() });
|
|
5432
|
-
|
|
5428
|
+
Ze = f.hashKey.charAt(0) === "/" ? f.hashKey.slice(1) : f.hashKey, r(2, L = "password"), as(R), window.postMessage(
|
|
5433
5429
|
{
|
|
5434
5430
|
type: "SwitchToResetPasswordScreen",
|
|
5435
|
-
key:
|
|
5431
|
+
key: Ze
|
|
5436
5432
|
},
|
|
5437
5433
|
window.location.href
|
|
5438
5434
|
);
|
|
5439
5435
|
} catch (f) {
|
|
5440
5436
|
if (r(17, q = u("unableToVerify")), f instanceof Cr) {
|
|
5441
|
-
const y = f.payload, ee = f.status,
|
|
5437
|
+
const y = f.payload, ee = f.status, F = ((y == null ? void 0 : y.error) || "").toLowerCase();
|
|
5442
5438
|
switch (ee) {
|
|
5443
5439
|
case 400: {
|
|
5444
|
-
|
|
5440
|
+
F.includes("invalid validation code") ? (Tt(), r(17, q = pe > 0 ? u("incorrectCode") : u("tooManyAttempts"))) : F.includes("expired") ? (r(17, q = u("codeExpired")), r(18, Ee = u("codeExpired")), r(5, ye = null)) : F.includes("not valid") || F.includes("invalid token") ? r(17, q = u("invalidRequest")) : r(17, q = u("unableToVerify"));
|
|
5445
5441
|
break;
|
|
5446
5442
|
}
|
|
5447
5443
|
case 424: {
|
|
5448
|
-
|
|
5444
|
+
F.includes("input is not match") ? (Tt(), r(17, q = u("incorrectCode"))) : F.includes("validation max attempts exceeded") ? (Tt(), r(17, q = u("tooManyAttempts"))) : r(17, q = u("unableToVerify"));
|
|
5449
5445
|
break;
|
|
5450
5446
|
}
|
|
5451
5447
|
case 404: {
|
|
@@ -5460,24 +5456,24 @@ function bs(e, t, r) {
|
|
|
5460
5456
|
Dr(q);
|
|
5461
5457
|
}
|
|
5462
5458
|
} finally {
|
|
5463
|
-
r(11,
|
|
5459
|
+
r(11, M = !1);
|
|
5464
5460
|
}
|
|
5465
5461
|
});
|
|
5466
5462
|
}
|
|
5467
5463
|
function xn() {
|
|
5468
5464
|
return me(this, null, function* () {
|
|
5469
|
-
|
|
5465
|
+
M || we && de < we || (yield nr());
|
|
5470
5466
|
});
|
|
5471
5467
|
}
|
|
5472
|
-
|
|
5468
|
+
ts({ withLocale: "en", translations: {} });
|
|
5473
5469
|
const En = (f) => me(this, null, function* () {
|
|
5474
5470
|
try {
|
|
5475
5471
|
const y = yield fetch(f);
|
|
5476
5472
|
if (!y.ok)
|
|
5477
5473
|
throw new Error(`Fetch failed with status ${y.status}`);
|
|
5478
5474
|
const ee = yield y.json();
|
|
5479
|
-
for (const
|
|
5480
|
-
Sr(
|
|
5475
|
+
for (const F in ee)
|
|
5476
|
+
Sr(F, ee[F]);
|
|
5481
5477
|
} catch (y) {
|
|
5482
5478
|
console.error("Error fetching translation", y);
|
|
5483
5479
|
}
|
|
@@ -5486,49 +5482,49 @@ function bs(e, t, r) {
|
|
|
5486
5482
|
Sr(f, Tr[f]);
|
|
5487
5483
|
});
|
|
5488
5484
|
const Sn = () => {
|
|
5489
|
-
|
|
5485
|
+
rs(j);
|
|
5490
5486
|
};
|
|
5491
5487
|
Qn(() => me(this, null, function* () {
|
|
5492
5488
|
var f;
|
|
5493
|
-
return r(13, ae = yield wn()), r(14,
|
|
5489
|
+
return r(13, ae = yield wn()), r(14, O = (f = ae == null ? void 0 : ae[0]) == null ? void 0 : f.value), ne && ne.length === U && r(8, J = ne.split("")), () => {
|
|
5494
5490
|
};
|
|
5495
5491
|
}));
|
|
5496
5492
|
function Tn() {
|
|
5497
|
-
|
|
5493
|
+
O = this.value, r(14, O);
|
|
5498
5494
|
}
|
|
5499
5495
|
function Cn() {
|
|
5500
|
-
|
|
5496
|
+
G = this.value, r(3, G);
|
|
5501
5497
|
}
|
|
5502
5498
|
function Rn(f, y) {
|
|
5503
|
-
|
|
5499
|
+
gt[f ? "unshift" : "push"](() => {
|
|
5504
5500
|
X[y] = f, r(19, X);
|
|
5505
5501
|
});
|
|
5506
5502
|
}
|
|
5507
|
-
const Ln = (f, y) =>
|
|
5503
|
+
const Ln = (f, y) => He(y, f), Hn = (f, y) => le(y, f);
|
|
5508
5504
|
function An(f) {
|
|
5509
|
-
|
|
5505
|
+
gt[f ? "unshift" : "push"](() => {
|
|
5510
5506
|
C = f, r(1, C);
|
|
5511
5507
|
});
|
|
5512
5508
|
}
|
|
5513
5509
|
return e.$$set = (f) => {
|
|
5514
|
-
"clientstyling" in f && r(33, c = f.clientstyling), "clientstylingurl" in f && r(34, h = f.clientstylingurl), "translationurl" in f && r(35, g = f.translationurl), "mbsource" in f && r(36, b = f.mbsource), "phoneregex" in f && r(37, w = f.phoneregex), "phoneprefixeditable" in f && r(0, P = f.phoneprefixeditable), "smscodelength" in f && r(38, S = f.smscodelength), "smscodemaxattempts" in f && r(39, E = f.smscodemaxattempts), "smscodettl" in f && r(40, _ = f.smscodettl), "resenddelay" in f && r(41, H = f.resenddelay), "endpoint" in f && r(42, T = f.endpoint), "lang" in f && r(43,
|
|
5510
|
+
"clientstyling" in f && r(33, c = f.clientstyling), "clientstylingurl" in f && r(34, h = f.clientstylingurl), "translationurl" in f && r(35, g = f.translationurl), "mbsource" in f && r(36, b = f.mbsource), "phoneregex" in f && r(37, w = f.phoneregex), "phoneprefixeditable" in f && r(0, P = f.phoneprefixeditable), "smscodelength" in f && r(38, S = f.smscodelength), "smscodemaxattempts" in f && r(39, E = f.smscodemaxattempts), "smscodettl" in f && r(40, _ = f.smscodettl), "resenddelay" in f && r(41, H = f.resenddelay), "endpoint" in f && r(42, T = f.endpoint), "lang" in f && r(43, j = f.lang);
|
|
5515
5511
|
}, e.$$.update = () => {
|
|
5516
5512
|
e.$$.dirty[0] & /*customStylingContainer*/
|
|
5517
5513
|
2 | e.$$.dirty[1] & /*clientstyling*/
|
|
5518
|
-
4 && c && C &&
|
|
5514
|
+
4 && c && C && ns(C, c), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5519
5515
|
2 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
5520
|
-
8 && h && C &&
|
|
5516
|
+
8 && h && C && is(C, h), e.$$.dirty[0] & /*customStylingContainer*/
|
|
5521
5517
|
2 | e.$$.dirty[1] & /*mbsource*/
|
|
5522
|
-
32 && b && C &&
|
|
5523
|
-
4096 &&
|
|
5518
|
+
32 && b && C && os(C, `${b}.Style`), e.$$.dirty[1] & /*lang*/
|
|
5519
|
+
4096 && j && Sn(), e.$$.dirty[1] & /*translationurl*/
|
|
5524
5520
|
16 && g && En(g), e.$$.dirty[0] & /*expiresAt, now*/
|
|
5525
5521
|
160 && r(9, n = ye ? Math.max(0, Math.ceil((ye - de) / 1e3)) : 0), e.$$.dirty[0] & /*canResendAt, now*/
|
|
5526
5522
|
192 && r(21, i = we ? Math.max(0, Math.ceil((we - de) / 1e3)) : 0), e.$$.dirty[0] & /*expiresAt, remainingSeconds*/
|
|
5527
5523
|
544 && r(44, o = !!ye && n === 0), e.$$.dirty[0] & /*step, phone, $_*/
|
|
5528
|
-
1036 && r(15,
|
|
5524
|
+
1036 && r(15, D = L === "phone" && G ? Q(G) ? "" : u("invalidPhone") : ""), e.$$.dirty[0] & /*codeDigits*/
|
|
5529
5525
|
256 && r(46, s = J.join("")), e.$$.dirty[0] & /*codeDigits*/
|
|
5530
5526
|
256 && r(47, a = J.every((f) => /^\d$/.test(f))), e.$$.dirty[1] & /*isCodeFilled, codeCombined*/
|
|
5531
|
-
98304 && r(45, d = a && s.length ===
|
|
5527
|
+
98304 && r(45, d = a && s.length === U), e.$$.dirty[0] & /*codeDigits*/
|
|
5532
5528
|
256 && (ne = J.join("")), e.$$.dirty[0] & /*attemptsRemaining*/
|
|
5533
5529
|
16 | e.$$.dirty[1] & /*isCodeValid, isTokenExpired*/
|
|
5534
5530
|
24576 && r(20, l = !d || o || pe <= 0);
|
|
@@ -5536,7 +5532,7 @@ function bs(e, t, r) {
|
|
|
5536
5532
|
P,
|
|
5537
5533
|
C,
|
|
5538
5534
|
L,
|
|
5539
|
-
|
|
5535
|
+
G,
|
|
5540
5536
|
pe,
|
|
5541
5537
|
ye,
|
|
5542
5538
|
we,
|
|
@@ -5544,23 +5540,23 @@ function bs(e, t, r) {
|
|
|
5544
5540
|
J,
|
|
5545
5541
|
n,
|
|
5546
5542
|
u,
|
|
5547
|
-
|
|
5543
|
+
M,
|
|
5548
5544
|
Z,
|
|
5549
5545
|
ae,
|
|
5550
|
-
|
|
5551
|
-
|
|
5546
|
+
O,
|
|
5547
|
+
D,
|
|
5552
5548
|
I,
|
|
5553
5549
|
q,
|
|
5554
|
-
|
|
5550
|
+
Ee,
|
|
5555
5551
|
X,
|
|
5556
5552
|
l,
|
|
5557
5553
|
i,
|
|
5558
5554
|
ge,
|
|
5559
|
-
|
|
5560
|
-
|
|
5555
|
+
xe,
|
|
5556
|
+
Le,
|
|
5561
5557
|
re,
|
|
5562
|
-
|
|
5563
|
-
|
|
5558
|
+
U,
|
|
5559
|
+
He,
|
|
5564
5560
|
le,
|
|
5565
5561
|
_n,
|
|
5566
5562
|
nr,
|
|
@@ -5576,7 +5572,7 @@ function bs(e, t, r) {
|
|
|
5576
5572
|
_,
|
|
5577
5573
|
H,
|
|
5578
5574
|
T,
|
|
5579
|
-
|
|
5575
|
+
j,
|
|
5580
5576
|
o,
|
|
5581
5577
|
d,
|
|
5582
5578
|
s,
|
|
@@ -5589,13 +5585,13 @@ function bs(e, t, r) {
|
|
|
5589
5585
|
An
|
|
5590
5586
|
];
|
|
5591
5587
|
}
|
|
5592
|
-
class
|
|
5588
|
+
class bs extends ui {
|
|
5593
5589
|
constructor(t) {
|
|
5594
5590
|
super(), ai(
|
|
5595
5591
|
this,
|
|
5596
5592
|
t,
|
|
5597
|
-
|
|
5598
|
-
|
|
5593
|
+
ms,
|
|
5594
|
+
hs,
|
|
5599
5595
|
jr,
|
|
5600
5596
|
{
|
|
5601
5597
|
clientstyling: 33,
|
|
@@ -5611,7 +5607,7 @@ class gs extends ui {
|
|
|
5611
5607
|
endpoint: 42,
|
|
5612
5608
|
lang: 43
|
|
5613
5609
|
},
|
|
5614
|
-
|
|
5610
|
+
ls,
|
|
5615
5611
|
[-1, -1, -1]
|
|
5616
5612
|
);
|
|
5617
5613
|
}
|
|
@@ -5688,7 +5684,7 @@ class gs extends ui {
|
|
|
5688
5684
|
this.$$set({ lang: t }), se();
|
|
5689
5685
|
}
|
|
5690
5686
|
}
|
|
5691
|
-
li(
|
|
5687
|
+
li(bs, { clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {}, phoneregex: {}, phoneprefixeditable: {}, smscodelength: {}, smscodemaxattempts: {}, smscodettl: {}, resenddelay: {}, endpoint: {}, lang: {} }, [], [], !0);
|
|
5692
5688
|
export {
|
|
5693
|
-
|
|
5689
|
+
bs as default
|
|
5694
5690
|
};
|