@everymatrix/cashier-step-up 0.7.26 → 0.7.28
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/{CashierStepUp--Zdd8aV8.js → CashierStepUp-9hqKUFqh.js} +711 -683
- package/components/{CashierStepUp-C6kbH5iC.js → CashierStepUp-BHCLYDxG.js} +783 -754
- package/components/CashierStepUp-DhhKlpRv.cjs +3 -0
- package/es2015/cashier-step-up.cjs +1 -1
- package/es2015/cashier-step-up.js +1 -1
- package/esnext/cashier-step-up.js +1 -1
- package/package.json +1 -1
- package/components/CashierStepUp-DuitlZco.cjs +0 -3
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
function
|
|
1
|
+
function K() {
|
|
2
2
|
}
|
|
3
|
-
function
|
|
3
|
+
function er(e) {
|
|
4
4
|
return e();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Mt() {
|
|
7
7
|
return /* @__PURE__ */ Object.create(null);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
e.forEach(
|
|
9
|
+
function ye(e) {
|
|
10
|
+
e.forEach(er);
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Tt(e) {
|
|
13
13
|
return typeof e == "function";
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function tr(e, t) {
|
|
16
16
|
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Fr(e) {
|
|
19
19
|
return Object.keys(e).length === 0;
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function rr(e, ...t) {
|
|
22
22
|
if (e == null) {
|
|
23
23
|
for (const n of t)
|
|
24
24
|
n(void 0);
|
|
25
|
-
return
|
|
25
|
+
return K;
|
|
26
26
|
}
|
|
27
27
|
const r = e.subscribe(...t);
|
|
28
28
|
return r.unsubscribe ? () => r.unsubscribe() : r;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
e.$$.on_destroy.push(
|
|
30
|
+
function jr(e, t, r) {
|
|
31
|
+
e.$$.on_destroy.push(rr(t, r));
|
|
32
32
|
}
|
|
33
33
|
function y(e, t) {
|
|
34
34
|
e.appendChild(t);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
const n =
|
|
36
|
+
function Vr(e, t, r) {
|
|
37
|
+
const n = $r(e);
|
|
38
38
|
if (!n.getElementById(t)) {
|
|
39
39
|
const i = O("style");
|
|
40
|
-
i.id = t, i.textContent = r,
|
|
40
|
+
i.id = t, i.textContent = r, zr(n, i);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function $r(e) {
|
|
44
44
|
if (!e)
|
|
45
45
|
return document;
|
|
46
46
|
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
@@ -50,7 +50,7 @@ function jr(e) {
|
|
|
50
50
|
t
|
|
51
51
|
) : e.ownerDocument;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function zr(e, t) {
|
|
54
54
|
return y(
|
|
55
55
|
/** @type {Document} */
|
|
56
56
|
e.head || e,
|
|
@@ -63,42 +63,42 @@ function C(e, t, r) {
|
|
|
63
63
|
function H(e) {
|
|
64
64
|
e.parentNode && e.parentNode.removeChild(e);
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Xr(e, t) {
|
|
67
67
|
for (let r = 0; r < e.length; r += 1)
|
|
68
68
|
e[r] && e[r].d(t);
|
|
69
69
|
}
|
|
70
70
|
function O(e) {
|
|
71
71
|
return document.createElement(e);
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function re(e) {
|
|
74
74
|
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
75
|
}
|
|
76
76
|
function k(e) {
|
|
77
77
|
return document.createTextNode(e);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function F() {
|
|
80
80
|
return k(" ");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Wr() {
|
|
83
83
|
return k("");
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function ue(e, t, r, n) {
|
|
86
86
|
return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
|
|
87
87
|
}
|
|
88
88
|
function p(e, t, r) {
|
|
89
89
|
r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Zr(e) {
|
|
92
92
|
return Array.from(e.childNodes);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function j(e, t) {
|
|
95
95
|
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
96
96
|
t);
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function ne(e, t, r) {
|
|
99
99
|
e.classList.toggle(t, !!r);
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function qr(e) {
|
|
102
102
|
const t = {};
|
|
103
103
|
return e.childNodes.forEach(
|
|
104
104
|
/** @param {Element} node */
|
|
@@ -107,98 +107,98 @@ function Wr(e) {
|
|
|
107
107
|
}
|
|
108
108
|
), t;
|
|
109
109
|
}
|
|
110
|
-
let
|
|
111
|
-
function
|
|
112
|
-
|
|
110
|
+
let Ge;
|
|
111
|
+
function Ue(e) {
|
|
112
|
+
Ge = e;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
if (!
|
|
114
|
+
function Qr() {
|
|
115
|
+
if (!Ge)
|
|
116
116
|
throw new Error("Function called outside component initialization");
|
|
117
|
-
return
|
|
117
|
+
return Ge;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
|
|
119
|
+
function Jr(e) {
|
|
120
|
+
Qr().$$.on_mount.push(e);
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const Se = [], Ze = [];
|
|
123
123
|
let Oe = [];
|
|
124
|
-
const
|
|
125
|
-
let
|
|
126
|
-
function
|
|
127
|
-
|
|
124
|
+
const Lt = [], Yr = /* @__PURE__ */ Promise.resolve();
|
|
125
|
+
let dt = !1;
|
|
126
|
+
function Kr() {
|
|
127
|
+
dt || (dt = !0, Yr.then(ie));
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function mt(e) {
|
|
130
130
|
Oe.push(e);
|
|
131
131
|
}
|
|
132
|
-
const
|
|
133
|
-
let
|
|
134
|
-
function
|
|
135
|
-
if (
|
|
132
|
+
const at = /* @__PURE__ */ new Set();
|
|
133
|
+
let xe = 0;
|
|
134
|
+
function ie() {
|
|
135
|
+
if (xe !== 0)
|
|
136
136
|
return;
|
|
137
|
-
const e =
|
|
137
|
+
const e = Ge;
|
|
138
138
|
do {
|
|
139
139
|
try {
|
|
140
|
-
for (;
|
|
141
|
-
const t =
|
|
142
|
-
|
|
140
|
+
for (; xe < Se.length; ) {
|
|
141
|
+
const t = Se[xe];
|
|
142
|
+
xe++, Ue(t), en(t.$$);
|
|
143
143
|
}
|
|
144
144
|
} catch (t) {
|
|
145
|
-
throw
|
|
145
|
+
throw Se.length = 0, xe = 0, t;
|
|
146
146
|
}
|
|
147
|
-
for (
|
|
148
|
-
|
|
147
|
+
for (Ue(null), Se.length = 0, xe = 0; Ze.length; )
|
|
148
|
+
Ze.pop()();
|
|
149
149
|
for (let t = 0; t < Oe.length; t += 1) {
|
|
150
150
|
const r = Oe[t];
|
|
151
|
-
|
|
151
|
+
at.has(r) || (at.add(r), r());
|
|
152
152
|
}
|
|
153
153
|
Oe.length = 0;
|
|
154
|
-
} while (
|
|
155
|
-
for (;
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
} while (Se.length);
|
|
155
|
+
for (; Lt.length; )
|
|
156
|
+
Lt.pop()();
|
|
157
|
+
dt = !1, at.clear(), Ue(e);
|
|
158
158
|
}
|
|
159
|
-
function
|
|
159
|
+
function en(e) {
|
|
160
160
|
if (e.fragment !== null) {
|
|
161
|
-
e.update(),
|
|
161
|
+
e.update(), ye(e.before_update);
|
|
162
162
|
const t = e.dirty;
|
|
163
|
-
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(
|
|
163
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(mt);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function tn(e) {
|
|
167
167
|
const t = [], r = [];
|
|
168
168
|
Oe.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Oe = t;
|
|
169
169
|
}
|
|
170
|
-
const
|
|
171
|
-
function
|
|
172
|
-
e && e.i && (
|
|
170
|
+
const rn = /* @__PURE__ */ new Set();
|
|
171
|
+
function nn(e, t) {
|
|
172
|
+
e && e.i && (rn.delete(e), e.i(t));
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function It(e) {
|
|
175
175
|
return e?.length !== void 0 ? e : Array.from(e);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function on(e, t, r) {
|
|
178
178
|
const { fragment: n, after_update: i } = e.$$;
|
|
179
|
-
n && n.m(t, r),
|
|
180
|
-
const o = e.$$.on_mount.map(
|
|
181
|
-
e.$$.on_destroy ? e.$$.on_destroy.push(...o) :
|
|
182
|
-
}), i.forEach(
|
|
179
|
+
n && n.m(t, r), mt(() => {
|
|
180
|
+
const o = e.$$.on_mount.map(er).filter(Tt);
|
|
181
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : ye(o), e.$$.on_mount = [];
|
|
182
|
+
}), i.forEach(mt);
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function sn(e, t) {
|
|
185
185
|
const r = e.$$;
|
|
186
|
-
r.fragment !== null && (
|
|
186
|
+
r.fragment !== null && (tn(r.after_update), ye(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
e.$$.dirty[0] === -1 && (
|
|
188
|
+
function an(e, t) {
|
|
189
|
+
e.$$.dirty[0] === -1 && (Se.push(e), Kr(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
const u =
|
|
193
|
-
|
|
191
|
+
function ln(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
192
|
+
const u = Ge;
|
|
193
|
+
Ue(e);
|
|
194
194
|
const l = e.$$ = {
|
|
195
195
|
fragment: null,
|
|
196
196
|
ctx: [],
|
|
197
197
|
// state
|
|
198
198
|
props: o,
|
|
199
|
-
update:
|
|
199
|
+
update: K,
|
|
200
200
|
not_equal: i,
|
|
201
|
-
bound:
|
|
201
|
+
bound: Mt(),
|
|
202
202
|
// lifecycle
|
|
203
203
|
on_mount: [],
|
|
204
204
|
on_destroy: [],
|
|
@@ -207,7 +207,7 @@ function sn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
207
207
|
after_update: [],
|
|
208
208
|
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
209
209
|
// everything else
|
|
210
|
-
callbacks:
|
|
210
|
+
callbacks: Mt(),
|
|
211
211
|
dirty: s,
|
|
212
212
|
skip_bound: !1,
|
|
213
213
|
root: t.target || u.$$.root
|
|
@@ -216,19 +216,19 @@ function sn(e, t, r, n, i, o, a = null, s = [-1]) {
|
|
|
216
216
|
let h = !1;
|
|
217
217
|
if (l.ctx = r ? r(e, t.props || {}, (c, d, ..._) => {
|
|
218
218
|
const m = _.length ? _[0] : d;
|
|
219
|
-
return l.ctx && i(l.ctx[c], l.ctx[c] = m) && (!l.skip_bound && l.bound[c] && l.bound[c](m), h &&
|
|
220
|
-
}) : [], l.update(), h = !0,
|
|
219
|
+
return l.ctx && i(l.ctx[c], l.ctx[c] = m) && (!l.skip_bound && l.bound[c] && l.bound[c](m), h && an(e, c)), d;
|
|
220
|
+
}) : [], l.update(), h = !0, ye(l.before_update), l.fragment = n ? n(l.ctx) : !1, t.target) {
|
|
221
221
|
if (t.hydrate) {
|
|
222
|
-
const c =
|
|
222
|
+
const c = Zr(t.target);
|
|
223
223
|
l.fragment && l.fragment.l(c), c.forEach(H);
|
|
224
224
|
} else
|
|
225
225
|
l.fragment && l.fragment.c();
|
|
226
|
-
t.intro &&
|
|
226
|
+
t.intro && nn(e.$$.fragment), on(e, t.target, t.anchor), ie();
|
|
227
227
|
}
|
|
228
|
-
|
|
228
|
+
Ue(u);
|
|
229
229
|
}
|
|
230
|
-
let
|
|
231
|
-
typeof HTMLElement == "function" && (
|
|
230
|
+
let nr;
|
|
231
|
+
typeof HTMLElement == "function" && (nr = class extends HTMLElement {
|
|
232
232
|
/** The Svelte component constructor */
|
|
233
233
|
$$ctor;
|
|
234
234
|
/** Slots */
|
|
@@ -287,12 +287,12 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
|
287
287
|
};
|
|
288
288
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
289
289
|
return;
|
|
290
|
-
const t = {}, r =
|
|
290
|
+
const t = {}, r = qr(this);
|
|
291
291
|
for (const i of this.$$s)
|
|
292
292
|
i in r && (t[i] = [e(i)]);
|
|
293
293
|
for (const i of this.attributes) {
|
|
294
294
|
const o = this.$$g_p(i.name);
|
|
295
|
-
o in this.$$d || (this.$$d[o] =
|
|
295
|
+
o in this.$$d || (this.$$d[o] = ze(o, i.value, this.$$p_d, "toProp"));
|
|
296
296
|
}
|
|
297
297
|
for (const i in this.$$p_d)
|
|
298
298
|
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
@@ -310,7 +310,7 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
|
310
310
|
this.$$r = !0;
|
|
311
311
|
for (const i in this.$$p_d)
|
|
312
312
|
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
313
|
-
const o =
|
|
313
|
+
const o = ze(
|
|
314
314
|
i,
|
|
315
315
|
this.$$d[i],
|
|
316
316
|
this.$$p_d,
|
|
@@ -332,7 +332,7 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
|
332
332
|
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
333
333
|
// and setting attributes through setAttribute etc, this is helpful
|
|
334
334
|
attributeChangedCallback(e, t, r) {
|
|
335
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
335
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = ze(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
336
336
|
}
|
|
337
337
|
disconnectedCallback() {
|
|
338
338
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -345,7 +345,7 @@ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
|
|
|
345
345
|
) || e;
|
|
346
346
|
}
|
|
347
347
|
});
|
|
348
|
-
function
|
|
348
|
+
function ze(e, t, r, n) {
|
|
349
349
|
const i = r[e]?.type;
|
|
350
350
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
|
|
351
351
|
return t;
|
|
@@ -374,8 +374,8 @@ function $e(e, t, r, n) {
|
|
|
374
374
|
return t;
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
let a = class extends
|
|
377
|
+
function un(e, t, r, n, i, o) {
|
|
378
|
+
let a = class extends nr {
|
|
379
379
|
constructor() {
|
|
380
380
|
super(e, r, i), this.$$p_d = t;
|
|
381
381
|
}
|
|
@@ -391,7 +391,7 @@ function an(e, t, r, n, i, o) {
|
|
|
391
391
|
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
392
392
|
},
|
|
393
393
|
set(u) {
|
|
394
|
-
u =
|
|
394
|
+
u = ze(s, u, t), this.$$d[s] = u, this.$$c?.$set({ [s]: u });
|
|
395
395
|
}
|
|
396
396
|
});
|
|
397
397
|
}), n.forEach((s) => {
|
|
@@ -403,7 +403,7 @@ function an(e, t, r, n, i, o) {
|
|
|
403
403
|
}), e.element = /** @type {any} */
|
|
404
404
|
a, a;
|
|
405
405
|
}
|
|
406
|
-
class
|
|
406
|
+
class hn {
|
|
407
407
|
/**
|
|
408
408
|
* ### PRIVATE API
|
|
409
409
|
*
|
|
@@ -422,7 +422,7 @@ class ln {
|
|
|
422
422
|
$$set = void 0;
|
|
423
423
|
/** @returns {void} */
|
|
424
424
|
$destroy() {
|
|
425
|
-
|
|
425
|
+
sn(this, 1), this.$destroy = K;
|
|
426
426
|
}
|
|
427
427
|
/**
|
|
428
428
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -431,8 +431,8 @@ class ln {
|
|
|
431
431
|
* @returns {() => void}
|
|
432
432
|
*/
|
|
433
433
|
$on(t, r) {
|
|
434
|
-
if (!
|
|
435
|
-
return
|
|
434
|
+
if (!Tt(r))
|
|
435
|
+
return K;
|
|
436
436
|
const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
437
437
|
return n.push(r), () => {
|
|
438
438
|
const i = n.indexOf(r);
|
|
@@ -444,18 +444,19 @@ class ln {
|
|
|
444
444
|
* @returns {void}
|
|
445
445
|
*/
|
|
446
446
|
$set(t) {
|
|
447
|
-
this.$$set && !
|
|
447
|
+
this.$$set && !Fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
const
|
|
451
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
452
|
-
|
|
450
|
+
const cn = "4";
|
|
451
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(cn);
|
|
452
|
+
const Te = "__WIDGET_GLOBAL_STYLE_CACHE__";
|
|
453
|
+
function fn(e, t) {
|
|
453
454
|
if (e) {
|
|
454
455
|
const r = document.createElement("style");
|
|
455
456
|
r.innerHTML = t, e.appendChild(r);
|
|
456
457
|
}
|
|
457
458
|
}
|
|
458
|
-
function
|
|
459
|
+
function pn(e, t) {
|
|
459
460
|
if (!e || !t)
|
|
460
461
|
return;
|
|
461
462
|
const r = new URL(t);
|
|
@@ -466,41 +467,68 @@ function cn(e, t) {
|
|
|
466
467
|
console.error("There was an error while trying to load client styling from URL", n);
|
|
467
468
|
});
|
|
468
469
|
}
|
|
469
|
-
function
|
|
470
|
-
if (window.emMessageBus)
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
470
|
+
function dn(e, t, r, n = !1) {
|
|
471
|
+
if (!window.emMessageBus)
|
|
472
|
+
return;
|
|
473
|
+
if (!("adoptedStyleSheets" in Document.prototype) || !n)
|
|
474
|
+
return r = mn(e, t), r;
|
|
475
|
+
window[Te] || (window[Te] = {}), r = gn(e, t);
|
|
476
|
+
const o = r.unsubscribe.bind(r), a = () => {
|
|
477
|
+
if (window[Te][t]) {
|
|
478
|
+
const s = window[Te][t];
|
|
479
|
+
s.refCount > 1 ? s.refCount = s.refCount - 1 : delete window[Te][t];
|
|
480
|
+
}
|
|
481
|
+
o();
|
|
482
|
+
};
|
|
483
|
+
return r.unsubscribe = a, r;
|
|
484
|
+
}
|
|
485
|
+
function mn(e, t) {
|
|
486
|
+
const r = document.createElement("style");
|
|
487
|
+
return window.emMessageBus.subscribe(t, (n) => {
|
|
488
|
+
e && (r.innerHTML = n, e.appendChild(r));
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
function gn(e, t) {
|
|
492
|
+
return window.emMessageBus.subscribe(t, (r) => {
|
|
493
|
+
if (!e)
|
|
494
|
+
return;
|
|
495
|
+
const n = e.getRootNode(), i = window[Te];
|
|
496
|
+
let o = i[t]?.sheet;
|
|
497
|
+
o ? i[t].refCount = i[t].refCount + 1 : (o = new CSSStyleSheet(), o.replaceSync(r), i[t] = {
|
|
498
|
+
sheet: o,
|
|
499
|
+
refCount: 1
|
|
474
500
|
});
|
|
475
|
-
|
|
501
|
+
const a = n.adoptedStyleSheets || [];
|
|
502
|
+
a.includes(o) || (n.adoptedStyleSheets = [...a, o]);
|
|
503
|
+
});
|
|
476
504
|
}
|
|
477
|
-
const
|
|
478
|
-
function
|
|
505
|
+
const we = [];
|
|
506
|
+
function bn(e, t) {
|
|
479
507
|
return {
|
|
480
|
-
subscribe:
|
|
508
|
+
subscribe: Ye(e, t).subscribe
|
|
481
509
|
};
|
|
482
510
|
}
|
|
483
|
-
function
|
|
511
|
+
function Ye(e, t = K) {
|
|
484
512
|
let r;
|
|
485
513
|
const n = /* @__PURE__ */ new Set();
|
|
486
514
|
function i(s) {
|
|
487
|
-
if (
|
|
488
|
-
const u = !
|
|
515
|
+
if (tr(e, s) && (e = s, r)) {
|
|
516
|
+
const u = !we.length;
|
|
489
517
|
for (const l of n)
|
|
490
|
-
l[1](),
|
|
518
|
+
l[1](), we.push(l, e);
|
|
491
519
|
if (u) {
|
|
492
|
-
for (let l = 0; l <
|
|
493
|
-
|
|
494
|
-
|
|
520
|
+
for (let l = 0; l < we.length; l += 2)
|
|
521
|
+
we[l][0](we[l + 1]);
|
|
522
|
+
we.length = 0;
|
|
495
523
|
}
|
|
496
524
|
}
|
|
497
525
|
}
|
|
498
526
|
function o(s) {
|
|
499
527
|
i(s(e));
|
|
500
528
|
}
|
|
501
|
-
function a(s, u =
|
|
529
|
+
function a(s, u = K) {
|
|
502
530
|
const l = [s, u];
|
|
503
|
-
return n.add(l), n.size === 1 && (r = t(i, o) ||
|
|
531
|
+
return n.add(l), n.size === 1 && (r = t(i, o) || K), s(e), () => {
|
|
504
532
|
n.delete(l), n.size === 0 && r && (r(), r = null);
|
|
505
533
|
};
|
|
506
534
|
}
|
|
@@ -511,18 +539,18 @@ function Pe(e, t, r) {
|
|
|
511
539
|
if (!i.every(Boolean))
|
|
512
540
|
throw new Error("derived() expects stores as input, got a falsy value");
|
|
513
541
|
const o = t.length < 2;
|
|
514
|
-
return
|
|
542
|
+
return bn(r, (a, s) => {
|
|
515
543
|
let u = !1;
|
|
516
544
|
const l = [];
|
|
517
|
-
let h = 0, c =
|
|
545
|
+
let h = 0, c = K;
|
|
518
546
|
const d = () => {
|
|
519
547
|
if (h)
|
|
520
548
|
return;
|
|
521
549
|
c();
|
|
522
550
|
const m = t(n ? l[0] : l, a, s);
|
|
523
|
-
o ? a(m) : c =
|
|
551
|
+
o ? a(m) : c = Tt(m) ? m : K;
|
|
524
552
|
}, _ = i.map(
|
|
525
|
-
(m, g) =>
|
|
553
|
+
(m, g) => rr(
|
|
526
554
|
m,
|
|
527
555
|
(E) => {
|
|
528
556
|
l[g] = E, h &= ~(1 << g), u && d();
|
|
@@ -533,74 +561,74 @@ function Pe(e, t, r) {
|
|
|
533
561
|
)
|
|
534
562
|
);
|
|
535
563
|
return u = !0, d(), function() {
|
|
536
|
-
|
|
564
|
+
ye(_), c(), u = !1;
|
|
537
565
|
};
|
|
538
566
|
});
|
|
539
567
|
}
|
|
540
|
-
function
|
|
568
|
+
function yn(e) {
|
|
541
569
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
542
570
|
}
|
|
543
|
-
var
|
|
544
|
-
return
|
|
571
|
+
var _n = function(t) {
|
|
572
|
+
return En(t) && !vn(t);
|
|
545
573
|
};
|
|
546
|
-
function
|
|
574
|
+
function En(e) {
|
|
547
575
|
return !!e && typeof e == "object";
|
|
548
576
|
}
|
|
549
|
-
function
|
|
577
|
+
function vn(e) {
|
|
550
578
|
var t = Object.prototype.toString.call(e);
|
|
551
|
-
return t === "[object RegExp]" || t === "[object Date]" ||
|
|
579
|
+
return t === "[object RegExp]" || t === "[object Date]" || Sn(e);
|
|
552
580
|
}
|
|
553
|
-
var
|
|
554
|
-
function
|
|
555
|
-
return e.$$typeof ===
|
|
581
|
+
var xn = typeof Symbol == "function" && Symbol.for, wn = xn ? Symbol.for("react.element") : 60103;
|
|
582
|
+
function Sn(e) {
|
|
583
|
+
return e.$$typeof === wn;
|
|
556
584
|
}
|
|
557
|
-
function
|
|
585
|
+
function Tn(e) {
|
|
558
586
|
return Array.isArray(e) ? [] : {};
|
|
559
587
|
}
|
|
560
|
-
function
|
|
561
|
-
return t.clone !== !1 && t.isMergeableObject(e) ? He(
|
|
588
|
+
function Fe(e, t) {
|
|
589
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? He(Tn(e), e, t) : e;
|
|
562
590
|
}
|
|
563
|
-
function
|
|
591
|
+
function On(e, t, r) {
|
|
564
592
|
return e.concat(t).map(function(n) {
|
|
565
|
-
return
|
|
593
|
+
return Fe(n, r);
|
|
566
594
|
});
|
|
567
595
|
}
|
|
568
|
-
function
|
|
596
|
+
function Hn(e, t) {
|
|
569
597
|
if (!t.customMerge)
|
|
570
598
|
return He;
|
|
571
599
|
var r = t.customMerge(e);
|
|
572
600
|
return typeof r == "function" ? r : He;
|
|
573
601
|
}
|
|
574
|
-
function
|
|
602
|
+
function An(e) {
|
|
575
603
|
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
576
604
|
return Object.propertyIsEnumerable.call(e, t);
|
|
577
605
|
}) : [];
|
|
578
606
|
}
|
|
579
|
-
function
|
|
580
|
-
return Object.keys(e).concat(
|
|
607
|
+
function Nt(e) {
|
|
608
|
+
return Object.keys(e).concat(An(e));
|
|
581
609
|
}
|
|
582
|
-
function
|
|
610
|
+
function ir(e, t) {
|
|
583
611
|
try {
|
|
584
612
|
return t in e;
|
|
585
613
|
} catch {
|
|
586
614
|
return !1;
|
|
587
615
|
}
|
|
588
616
|
}
|
|
589
|
-
function
|
|
590
|
-
return
|
|
617
|
+
function Cn(e, t) {
|
|
618
|
+
return ir(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
591
619
|
}
|
|
592
|
-
function
|
|
620
|
+
function Bn(e, t, r) {
|
|
593
621
|
var n = {};
|
|
594
|
-
return r.isMergeableObject(e) &&
|
|
595
|
-
n[i] =
|
|
596
|
-
}),
|
|
597
|
-
|
|
622
|
+
return r.isMergeableObject(e) && Nt(e).forEach(function(i) {
|
|
623
|
+
n[i] = Fe(e[i], r);
|
|
624
|
+
}), Nt(t).forEach(function(i) {
|
|
625
|
+
Cn(e, i) || (ir(e, i) && r.isMergeableObject(t[i]) ? n[i] = Hn(i, r)(e[i], t[i], r) : n[i] = Fe(t[i], r));
|
|
598
626
|
}), n;
|
|
599
627
|
}
|
|
600
628
|
function He(e, t, r) {
|
|
601
|
-
r = r || {}, r.arrayMerge = r.arrayMerge ||
|
|
629
|
+
r = r || {}, r.arrayMerge = r.arrayMerge || On, r.isMergeableObject = r.isMergeableObject || _n, r.cloneUnlessOtherwiseSpecified = Fe;
|
|
602
630
|
var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
|
|
603
|
-
return o ? n ? r.arrayMerge(e, t, r) :
|
|
631
|
+
return o ? n ? r.arrayMerge(e, t, r) : Bn(e, t, r) : Fe(t, r);
|
|
604
632
|
}
|
|
605
633
|
He.all = function(t, r) {
|
|
606
634
|
if (!Array.isArray(t))
|
|
@@ -609,36 +637,36 @@ He.all = function(t, r) {
|
|
|
609
637
|
return He(n, i, r);
|
|
610
638
|
}, {});
|
|
611
639
|
};
|
|
612
|
-
var
|
|
613
|
-
const
|
|
614
|
-
var
|
|
615
|
-
return
|
|
640
|
+
var Pn = He, Mn = Pn;
|
|
641
|
+
const Ln = /* @__PURE__ */ yn(Mn);
|
|
642
|
+
var gt = function(e, t) {
|
|
643
|
+
return gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
|
|
616
644
|
r.__proto__ = n;
|
|
617
645
|
} || function(r, n) {
|
|
618
646
|
for (var i in n)
|
|
619
647
|
Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
|
|
620
|
-
},
|
|
648
|
+
}, gt(e, t);
|
|
621
649
|
};
|
|
622
|
-
function
|
|
650
|
+
function Ke(e, t) {
|
|
623
651
|
if (typeof t != "function" && t !== null)
|
|
624
652
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
625
|
-
|
|
653
|
+
gt(e, t);
|
|
626
654
|
function r() {
|
|
627
655
|
this.constructor = e;
|
|
628
656
|
}
|
|
629
657
|
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
630
658
|
}
|
|
631
|
-
var
|
|
632
|
-
return
|
|
659
|
+
var oe = function() {
|
|
660
|
+
return oe = Object.assign || function(t) {
|
|
633
661
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
634
662
|
r = arguments[n];
|
|
635
663
|
for (var o in r)
|
|
636
664
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
637
665
|
}
|
|
638
666
|
return t;
|
|
639
|
-
},
|
|
667
|
+
}, oe.apply(this, arguments);
|
|
640
668
|
};
|
|
641
|
-
function
|
|
669
|
+
function In(e, t) {
|
|
642
670
|
var r = {};
|
|
643
671
|
for (var n in e)
|
|
644
672
|
Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
@@ -647,43 +675,43 @@ function Bn(e, t) {
|
|
|
647
675
|
t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
648
676
|
return r;
|
|
649
677
|
}
|
|
650
|
-
function
|
|
678
|
+
function lt(e, t, r) {
|
|
651
679
|
if (r || arguments.length === 2)
|
|
652
680
|
for (var n = 0, i = t.length, o; n < i; n++)
|
|
653
681
|
(o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
|
|
654
682
|
return e.concat(o || Array.prototype.slice.call(t));
|
|
655
683
|
}
|
|
656
|
-
function
|
|
657
|
-
var r = t && t.cache ? t.cache :
|
|
684
|
+
function ut(e, t) {
|
|
685
|
+
var r = t && t.cache ? t.cache : Fn, n = t && t.serializer ? t.serializer : Un, i = t && t.strategy ? t.strategy : kn;
|
|
658
686
|
return i(e, {
|
|
659
687
|
cache: r,
|
|
660
688
|
serializer: n
|
|
661
689
|
});
|
|
662
690
|
}
|
|
663
|
-
function
|
|
691
|
+
function Nn(e) {
|
|
664
692
|
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
665
693
|
}
|
|
666
|
-
function
|
|
667
|
-
var i =
|
|
694
|
+
function Rn(e, t, r, n) {
|
|
695
|
+
var i = Nn(n) ? n : r(n), o = t.get(i);
|
|
668
696
|
return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
|
|
669
697
|
}
|
|
670
|
-
function
|
|
698
|
+
function or(e, t, r) {
|
|
671
699
|
var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
|
|
672
700
|
return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
|
|
673
701
|
}
|
|
674
|
-
function
|
|
702
|
+
function sr(e, t, r, n, i) {
|
|
675
703
|
return r.bind(t, e, n, i);
|
|
676
704
|
}
|
|
677
|
-
function
|
|
678
|
-
var r = e.length === 1 ?
|
|
679
|
-
return
|
|
705
|
+
function kn(e, t) {
|
|
706
|
+
var r = e.length === 1 ? Rn : or;
|
|
707
|
+
return sr(e, this, r, t.cache.create(), t.serializer);
|
|
680
708
|
}
|
|
681
|
-
function
|
|
682
|
-
return
|
|
709
|
+
function Dn(e, t) {
|
|
710
|
+
return sr(e, this, or, t.cache.create(), t.serializer);
|
|
683
711
|
}
|
|
684
|
-
var
|
|
712
|
+
var Un = function() {
|
|
685
713
|
return JSON.stringify(arguments);
|
|
686
|
-
},
|
|
714
|
+
}, Gn = (
|
|
687
715
|
/** @class */
|
|
688
716
|
function() {
|
|
689
717
|
function e() {
|
|
@@ -695,21 +723,21 @@ var Nn = function() {
|
|
|
695
723
|
this.cache[t] = r;
|
|
696
724
|
}, e;
|
|
697
725
|
}()
|
|
698
|
-
),
|
|
726
|
+
), Fn = {
|
|
699
727
|
create: function() {
|
|
700
|
-
return new
|
|
728
|
+
return new Gn();
|
|
701
729
|
}
|
|
702
|
-
},
|
|
703
|
-
variadic:
|
|
704
|
-
},
|
|
705
|
-
return
|
|
730
|
+
}, ht = {
|
|
731
|
+
variadic: Dn
|
|
732
|
+
}, qe = function() {
|
|
733
|
+
return qe = Object.assign || function(t) {
|
|
706
734
|
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
707
735
|
r = arguments[n];
|
|
708
736
|
for (var o in r)
|
|
709
737
|
Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
710
738
|
}
|
|
711
739
|
return t;
|
|
712
|
-
},
|
|
740
|
+
}, qe.apply(this, arguments);
|
|
713
741
|
};
|
|
714
742
|
var w;
|
|
715
743
|
(function(e) {
|
|
@@ -723,43 +751,43 @@ var Ae;
|
|
|
723
751
|
(function(e) {
|
|
724
752
|
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
725
753
|
})(Ae || (Ae = {}));
|
|
726
|
-
function
|
|
754
|
+
function Rt(e) {
|
|
727
755
|
return e.type === L.literal;
|
|
728
756
|
}
|
|
729
|
-
function
|
|
757
|
+
function jn(e) {
|
|
730
758
|
return e.type === L.argument;
|
|
731
759
|
}
|
|
732
|
-
function
|
|
760
|
+
function ar(e) {
|
|
733
761
|
return e.type === L.number;
|
|
734
762
|
}
|
|
735
|
-
function
|
|
763
|
+
function lr(e) {
|
|
736
764
|
return e.type === L.date;
|
|
737
765
|
}
|
|
738
|
-
function
|
|
766
|
+
function ur(e) {
|
|
739
767
|
return e.type === L.time;
|
|
740
768
|
}
|
|
741
|
-
function
|
|
769
|
+
function hr(e) {
|
|
742
770
|
return e.type === L.select;
|
|
743
771
|
}
|
|
744
|
-
function
|
|
772
|
+
function cr(e) {
|
|
745
773
|
return e.type === L.plural;
|
|
746
774
|
}
|
|
747
|
-
function
|
|
775
|
+
function Vn(e) {
|
|
748
776
|
return e.type === L.pound;
|
|
749
777
|
}
|
|
750
|
-
function
|
|
778
|
+
function fr(e) {
|
|
751
779
|
return e.type === L.tag;
|
|
752
780
|
}
|
|
753
|
-
function
|
|
781
|
+
function pr(e) {
|
|
754
782
|
return !!(e && typeof e == "object" && e.type === Ae.number);
|
|
755
783
|
}
|
|
756
|
-
function
|
|
784
|
+
function bt(e) {
|
|
757
785
|
return !!(e && typeof e == "object" && e.type === Ae.dateTime);
|
|
758
786
|
}
|
|
759
|
-
var
|
|
760
|
-
function
|
|
787
|
+
var dr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, $n = /(?:[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;
|
|
788
|
+
function zn(e) {
|
|
761
789
|
var t = {};
|
|
762
|
-
return e.replace(
|
|
790
|
+
return e.replace($n, function(r) {
|
|
763
791
|
var n = r.length;
|
|
764
792
|
switch (r[0]) {
|
|
765
793
|
case "G":
|
|
@@ -858,11 +886,11 @@ var R = function() {
|
|
|
858
886
|
return t;
|
|
859
887
|
}, R.apply(this, arguments);
|
|
860
888
|
};
|
|
861
|
-
var
|
|
862
|
-
function
|
|
889
|
+
var Xn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
890
|
+
function Wn(e) {
|
|
863
891
|
if (e.length === 0)
|
|
864
892
|
throw new Error("Number skeleton cannot be empty");
|
|
865
|
-
for (var t = e.split(
|
|
893
|
+
for (var t = e.split(Xn).filter(function(d) {
|
|
866
894
|
return d.length > 0;
|
|
867
895
|
}), r = [], n = 0, i = t; n < i.length; n++) {
|
|
868
896
|
var o = i[n], a = o.split("/");
|
|
@@ -877,17 +905,17 @@ function Vn(e) {
|
|
|
877
905
|
}
|
|
878
906
|
return r;
|
|
879
907
|
}
|
|
880
|
-
function
|
|
908
|
+
function Zn(e) {
|
|
881
909
|
return e.replace(/^(.*?)-/, "");
|
|
882
910
|
}
|
|
883
|
-
var
|
|
884
|
-
function
|
|
911
|
+
var kt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mr = /^(@+)?(\+|#+)?[rs]?$/g, qn = /(\*)(0+)|(#+)(0+)|(0+)/g, gr = /^(0+)$/;
|
|
912
|
+
function Dt(e) {
|
|
885
913
|
var t = {};
|
|
886
|
-
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(
|
|
914
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(mr, function(r, n, i) {
|
|
887
915
|
return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
|
|
888
916
|
}), t;
|
|
889
917
|
}
|
|
890
|
-
function
|
|
918
|
+
function br(e) {
|
|
891
919
|
switch (e) {
|
|
892
920
|
case "sign-auto":
|
|
893
921
|
return {
|
|
@@ -927,7 +955,7 @@ function mr(e) {
|
|
|
927
955
|
};
|
|
928
956
|
}
|
|
929
957
|
}
|
|
930
|
-
function
|
|
958
|
+
function Qn(e) {
|
|
931
959
|
var t;
|
|
932
960
|
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
933
961
|
notation: "engineering"
|
|
@@ -935,17 +963,17 @@ function Xn(e) {
|
|
|
935
963
|
notation: "scientific"
|
|
936
964
|
}, e = e.slice(1)), t) {
|
|
937
965
|
var r = e.slice(0, 2);
|
|
938
|
-
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !
|
|
966
|
+
if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !gr.test(e))
|
|
939
967
|
throw new Error("Malformed concise eng/scientific notation");
|
|
940
968
|
t.minimumIntegerDigits = e.length;
|
|
941
969
|
}
|
|
942
970
|
return t;
|
|
943
971
|
}
|
|
944
|
-
function
|
|
945
|
-
var t = {}, r =
|
|
972
|
+
function Ut(e) {
|
|
973
|
+
var t = {}, r = br(e);
|
|
946
974
|
return r || t;
|
|
947
975
|
}
|
|
948
|
-
function
|
|
976
|
+
function Jn(e) {
|
|
949
977
|
for (var t = {}, r = 0, n = e; r < n.length; r++) {
|
|
950
978
|
var i = n[r];
|
|
951
979
|
switch (i.stem) {
|
|
@@ -969,7 +997,7 @@ function Wn(e) {
|
|
|
969
997
|
continue;
|
|
970
998
|
case "measure-unit":
|
|
971
999
|
case "unit":
|
|
972
|
-
t.style = "unit", t.unit =
|
|
1000
|
+
t.style = "unit", t.unit = Zn(i.options[0]);
|
|
973
1001
|
continue;
|
|
974
1002
|
case "compact-short":
|
|
975
1003
|
case "K":
|
|
@@ -981,12 +1009,12 @@ function Wn(e) {
|
|
|
981
1009
|
continue;
|
|
982
1010
|
case "scientific":
|
|
983
1011
|
t = R(R(R({}, t), { notation: "scientific" }), i.options.reduce(function(u, l) {
|
|
984
|
-
return R(R({}, u),
|
|
1012
|
+
return R(R({}, u), Ut(l));
|
|
985
1013
|
}, {}));
|
|
986
1014
|
continue;
|
|
987
1015
|
case "engineering":
|
|
988
1016
|
t = R(R(R({}, t), { notation: "engineering" }), i.options.reduce(function(u, l) {
|
|
989
|
-
return R(R({}, u),
|
|
1017
|
+
return R(R({}, u), Ut(l));
|
|
990
1018
|
}, {}));
|
|
991
1019
|
continue;
|
|
992
1020
|
case "notation-simple":
|
|
@@ -1031,7 +1059,7 @@ function Wn(e) {
|
|
|
1031
1059
|
case "integer-width":
|
|
1032
1060
|
if (i.options.length > 1)
|
|
1033
1061
|
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1034
|
-
i.options[0].replace(
|
|
1062
|
+
i.options[0].replace(qn, function(u, l, h, c, d, _) {
|
|
1035
1063
|
if (l)
|
|
1036
1064
|
t.minimumIntegerDigits = h.length;
|
|
1037
1065
|
else {
|
|
@@ -1044,32 +1072,32 @@ function Wn(e) {
|
|
|
1044
1072
|
});
|
|
1045
1073
|
continue;
|
|
1046
1074
|
}
|
|
1047
|
-
if (
|
|
1075
|
+
if (gr.test(i.stem)) {
|
|
1048
1076
|
t.minimumIntegerDigits = i.stem.length;
|
|
1049
1077
|
continue;
|
|
1050
1078
|
}
|
|
1051
|
-
if (
|
|
1079
|
+
if (kt.test(i.stem)) {
|
|
1052
1080
|
if (i.options.length > 1)
|
|
1053
1081
|
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1054
|
-
i.stem.replace(
|
|
1082
|
+
i.stem.replace(kt, function(u, l, h, c, d, _) {
|
|
1055
1083
|
return h === "*" ? t.minimumFractionDigits = l.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : d && _ ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + _.length) : (t.minimumFractionDigits = l.length, t.maximumFractionDigits = l.length), "";
|
|
1056
1084
|
});
|
|
1057
1085
|
var o = i.options[0];
|
|
1058
|
-
o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t),
|
|
1086
|
+
o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t), Dt(o)));
|
|
1059
1087
|
continue;
|
|
1060
1088
|
}
|
|
1061
|
-
if (
|
|
1062
|
-
t = R(R({}, t),
|
|
1089
|
+
if (mr.test(i.stem)) {
|
|
1090
|
+
t = R(R({}, t), Dt(i.stem));
|
|
1063
1091
|
continue;
|
|
1064
1092
|
}
|
|
1065
|
-
var a =
|
|
1093
|
+
var a = br(i.stem);
|
|
1066
1094
|
a && (t = R(R({}, t), a));
|
|
1067
|
-
var s =
|
|
1095
|
+
var s = Qn(i.stem);
|
|
1068
1096
|
s && (t = R(R({}, t), s));
|
|
1069
1097
|
}
|
|
1070
1098
|
return t;
|
|
1071
1099
|
}
|
|
1072
|
-
var
|
|
1100
|
+
var $e = {
|
|
1073
1101
|
"001": [
|
|
1074
1102
|
"H",
|
|
1075
1103
|
"h"
|
|
@@ -2484,13 +2512,13 @@ var Ve = {
|
|
|
2484
2512
|
"h"
|
|
2485
2513
|
]
|
|
2486
2514
|
};
|
|
2487
|
-
function
|
|
2515
|
+
function Yn(e, t) {
|
|
2488
2516
|
for (var r = "", n = 0; n < e.length; n++) {
|
|
2489
2517
|
var i = e.charAt(n);
|
|
2490
2518
|
if (i === "j") {
|
|
2491
2519
|
for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
|
|
2492
2520
|
o++, n++;
|
|
2493
|
-
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l =
|
|
2521
|
+
var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", l = Kn(t);
|
|
2494
2522
|
for ((l == "H" || l == "k") && (s = 0); s-- > 0; )
|
|
2495
2523
|
r += u;
|
|
2496
2524
|
for (; a-- > 0; )
|
|
@@ -2500,7 +2528,7 @@ function Zn(e, t) {
|
|
|
2500
2528
|
}
|
|
2501
2529
|
return r;
|
|
2502
2530
|
}
|
|
2503
|
-
function
|
|
2531
|
+
function Kn(e) {
|
|
2504
2532
|
var t = e.hourCycle;
|
|
2505
2533
|
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2506
2534
|
e.hourCycles && // @ts-ignore
|
|
@@ -2519,23 +2547,23 @@ function qn(e) {
|
|
|
2519
2547
|
}
|
|
2520
2548
|
var r = e.language, n;
|
|
2521
2549
|
r !== "root" && (n = e.maximize().region);
|
|
2522
|
-
var i =
|
|
2550
|
+
var i = $e[n || ""] || $e[r || ""] || $e["".concat(r, "-001")] || $e["001"];
|
|
2523
2551
|
return i[0];
|
|
2524
2552
|
}
|
|
2525
|
-
var
|
|
2553
|
+
var ct, ei = new RegExp("^".concat(dr.source, "*")), ti = new RegExp("".concat(dr.source, "*$"));
|
|
2526
2554
|
function T(e, t) {
|
|
2527
2555
|
return { start: e, end: t };
|
|
2528
2556
|
}
|
|
2529
|
-
var
|
|
2557
|
+
var ri = !!String.prototype.startsWith && "_a".startsWith("a", 1), ni = !!String.fromCodePoint, ii = !!Object.fromEntries, oi = !!String.prototype.codePointAt, si = !!String.prototype.trimStart, ai = !!String.prototype.trimEnd, li = !!Number.isSafeInteger, ui = li ? Number.isSafeInteger : function(e) {
|
|
2530
2558
|
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2531
|
-
},
|
|
2559
|
+
}, yt = !0;
|
|
2532
2560
|
try {
|
|
2533
|
-
var
|
|
2534
|
-
|
|
2561
|
+
var hi = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2562
|
+
yt = ((ct = hi.exec("a")) === null || ct === void 0 ? void 0 : ct[0]) === "a";
|
|
2535
2563
|
} catch {
|
|
2536
|
-
|
|
2564
|
+
yt = !1;
|
|
2537
2565
|
}
|
|
2538
|
-
var
|
|
2566
|
+
var Gt = ri ? (
|
|
2539
2567
|
// Native
|
|
2540
2568
|
function(t, r, n) {
|
|
2541
2569
|
return t.startsWith(r, n);
|
|
@@ -2545,7 +2573,7 @@ var Dt = Yn ? (
|
|
|
2545
2573
|
function(t, r, n) {
|
|
2546
2574
|
return t.slice(n, n + r.length) === r;
|
|
2547
2575
|
}
|
|
2548
|
-
),
|
|
2576
|
+
), _t = ni ? String.fromCodePoint : (
|
|
2549
2577
|
// IE11
|
|
2550
2578
|
function() {
|
|
2551
2579
|
for (var t = [], r = 0; r < arguments.length; r++)
|
|
@@ -2557,9 +2585,9 @@ var Dt = Yn ? (
|
|
|
2557
2585
|
}
|
|
2558
2586
|
return n;
|
|
2559
2587
|
}
|
|
2560
|
-
),
|
|
2588
|
+
), Ft = (
|
|
2561
2589
|
// native
|
|
2562
|
-
|
|
2590
|
+
ii ? Object.fromEntries : (
|
|
2563
2591
|
// Ponyfill
|
|
2564
2592
|
function(t) {
|
|
2565
2593
|
for (var r = {}, n = 0, i = t; n < i.length; n++) {
|
|
@@ -2569,7 +2597,7 @@ var Dt = Yn ? (
|
|
|
2569
2597
|
return r;
|
|
2570
2598
|
}
|
|
2571
2599
|
)
|
|
2572
|
-
),
|
|
2600
|
+
), yr = oi ? (
|
|
2573
2601
|
// Native
|
|
2574
2602
|
function(t, r) {
|
|
2575
2603
|
return t.codePointAt(r);
|
|
@@ -2583,7 +2611,7 @@ var Dt = Yn ? (
|
|
|
2583
2611
|
return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2584
2612
|
}
|
|
2585
2613
|
}
|
|
2586
|
-
),
|
|
2614
|
+
), ci = si ? (
|
|
2587
2615
|
// Native
|
|
2588
2616
|
function(t) {
|
|
2589
2617
|
return t.trimStart();
|
|
@@ -2591,9 +2619,9 @@ var Dt = Yn ? (
|
|
|
2591
2619
|
) : (
|
|
2592
2620
|
// Ponyfill
|
|
2593
2621
|
function(t) {
|
|
2594
|
-
return t.replace(
|
|
2622
|
+
return t.replace(ei, "");
|
|
2595
2623
|
}
|
|
2596
|
-
),
|
|
2624
|
+
), fi = ai ? (
|
|
2597
2625
|
// Native
|
|
2598
2626
|
function(t) {
|
|
2599
2627
|
return t.trimEnd();
|
|
@@ -2601,32 +2629,32 @@ var Dt = Yn ? (
|
|
|
2601
2629
|
) : (
|
|
2602
2630
|
// Ponyfill
|
|
2603
2631
|
function(t) {
|
|
2604
|
-
return t.replace(
|
|
2632
|
+
return t.replace(ti, "");
|
|
2605
2633
|
}
|
|
2606
2634
|
);
|
|
2607
|
-
function
|
|
2635
|
+
function _r(e, t) {
|
|
2608
2636
|
return new RegExp(e, t);
|
|
2609
2637
|
}
|
|
2610
|
-
var
|
|
2611
|
-
if (
|
|
2612
|
-
var
|
|
2613
|
-
|
|
2638
|
+
var Et;
|
|
2639
|
+
if (yt) {
|
|
2640
|
+
var jt = _r("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2641
|
+
Et = function(t, r) {
|
|
2614
2642
|
var n;
|
|
2615
|
-
|
|
2616
|
-
var i =
|
|
2643
|
+
jt.lastIndex = r;
|
|
2644
|
+
var i = jt.exec(t);
|
|
2617
2645
|
return (n = i[1]) !== null && n !== void 0 ? n : "";
|
|
2618
2646
|
};
|
|
2619
2647
|
} else
|
|
2620
|
-
|
|
2648
|
+
Et = function(t, r) {
|
|
2621
2649
|
for (var n = []; ; ) {
|
|
2622
|
-
var i =
|
|
2623
|
-
if (i === void 0 ||
|
|
2650
|
+
var i = yr(t, r);
|
|
2651
|
+
if (i === void 0 || Er(i) || gi(i))
|
|
2624
2652
|
break;
|
|
2625
2653
|
n.push(i), r += i >= 65536 ? 2 : 1;
|
|
2626
2654
|
}
|
|
2627
|
-
return
|
|
2655
|
+
return _t.apply(void 0, n);
|
|
2628
2656
|
};
|
|
2629
|
-
var
|
|
2657
|
+
var pi = (
|
|
2630
2658
|
/** @class */
|
|
2631
2659
|
function() {
|
|
2632
2660
|
function e(t, r) {
|
|
@@ -2657,7 +2685,7 @@ var ui = (
|
|
|
2657
2685
|
if (n)
|
|
2658
2686
|
break;
|
|
2659
2687
|
return this.error(w.UNMATCHED_CLOSING_TAG, T(this.clonePosition(), this.clonePosition()));
|
|
2660
|
-
} else if (o === 60 && !this.ignoreTag &&
|
|
2688
|
+
} else if (o === 60 && !this.ignoreTag && vt(this.peek() || 0)) {
|
|
2661
2689
|
var a = this.parseTag(t, r);
|
|
2662
2690
|
if (a.err)
|
|
2663
2691
|
return a;
|
|
@@ -2690,7 +2718,7 @@ var ui = (
|
|
|
2690
2718
|
return o;
|
|
2691
2719
|
var a = o.val, s = this.clonePosition();
|
|
2692
2720
|
if (this.bumpIf("</")) {
|
|
2693
|
-
if (this.isEOF() || !
|
|
2721
|
+
if (this.isEOF() || !vt(this.char()))
|
|
2694
2722
|
return this.error(w.INVALID_TAG, T(s, this.clonePosition()));
|
|
2695
2723
|
var u = this.clonePosition(), l = this.parseTagName();
|
|
2696
2724
|
return i !== l ? this.error(w.UNMATCHED_CLOSING_TAG, T(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
@@ -2708,7 +2736,7 @@ var ui = (
|
|
|
2708
2736
|
return this.error(w.INVALID_TAG, T(n, this.clonePosition()));
|
|
2709
2737
|
}, e.prototype.parseTagName = function() {
|
|
2710
2738
|
var t = this.offset();
|
|
2711
|
-
for (this.bump(); !this.isEOF() &&
|
|
2739
|
+
for (this.bump(); !this.isEOF() && mi(this.char()); )
|
|
2712
2740
|
this.bump();
|
|
2713
2741
|
return this.message.slice(t, this.offset());
|
|
2714
2742
|
}, e.prototype.parseLiteral = function(t, r) {
|
|
@@ -2737,7 +2765,7 @@ var ui = (
|
|
|
2737
2765
|
};
|
|
2738
2766
|
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2739
2767
|
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2740
|
-
!
|
|
2768
|
+
!di(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2741
2769
|
}, e.prototype.tryParseQuote = function(t) {
|
|
2742
2770
|
if (this.isEOF() || this.char() !== 39)
|
|
2743
2771
|
return null;
|
|
@@ -2771,12 +2799,12 @@ var ui = (
|
|
|
2771
2799
|
r.push(n);
|
|
2772
2800
|
this.bump();
|
|
2773
2801
|
}
|
|
2774
|
-
return
|
|
2802
|
+
return _t.apply(void 0, r);
|
|
2775
2803
|
}, e.prototype.tryParseUnquoted = function(t, r) {
|
|
2776
2804
|
if (this.isEOF())
|
|
2777
2805
|
return null;
|
|
2778
2806
|
var n = this.char();
|
|
2779
|
-
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(),
|
|
2807
|
+
return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), _t(n));
|
|
2780
2808
|
}, e.prototype.parseArgument = function(t, r) {
|
|
2781
2809
|
var n = this.clonePosition();
|
|
2782
2810
|
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
@@ -2805,7 +2833,7 @@ var ui = (
|
|
|
2805
2833
|
return this.error(w.MALFORMED_ARGUMENT, T(n, this.clonePosition()));
|
|
2806
2834
|
}
|
|
2807
2835
|
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2808
|
-
var t = this.clonePosition(), r = this.offset(), n =
|
|
2836
|
+
var t = this.clonePosition(), r = this.offset(), n = Et(this.message, r), i = r + n.length;
|
|
2809
2837
|
this.bumpTo(i);
|
|
2810
2838
|
var o = this.clonePosition(), a = T(t, o);
|
|
2811
2839
|
return { value: n, location: a };
|
|
@@ -2824,7 +2852,7 @@ var ui = (
|
|
|
2824
2852
|
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2825
2853
|
if (c.err)
|
|
2826
2854
|
return c;
|
|
2827
|
-
var d =
|
|
2855
|
+
var d = fi(c.val);
|
|
2828
2856
|
if (d.length === 0)
|
|
2829
2857
|
return this.error(w.EXPECT_ARGUMENT_STYLE, T(this.clonePosition(), this.clonePosition()));
|
|
2830
2858
|
var _ = T(h, this.clonePosition());
|
|
@@ -2834,8 +2862,8 @@ var ui = (
|
|
|
2834
2862
|
if (m.err)
|
|
2835
2863
|
return m;
|
|
2836
2864
|
var g = T(i, this.clonePosition());
|
|
2837
|
-
if (l &&
|
|
2838
|
-
var E =
|
|
2865
|
+
if (l && Gt(l?.style, "::", 0)) {
|
|
2866
|
+
var E = ci(l.style.slice(2));
|
|
2839
2867
|
if (s === "number") {
|
|
2840
2868
|
var c = this.parseNumberSkeletonFromString(E, l.styleLocation);
|
|
2841
2869
|
return c.err ? c : {
|
|
@@ -2846,12 +2874,12 @@ var ui = (
|
|
|
2846
2874
|
if (E.length === 0)
|
|
2847
2875
|
return this.error(w.EXPECT_DATE_TIME_SKELETON, g);
|
|
2848
2876
|
var S = E;
|
|
2849
|
-
this.locale && (S =
|
|
2877
|
+
this.locale && (S = Yn(E, this.locale));
|
|
2850
2878
|
var d = {
|
|
2851
2879
|
type: Ae.dateTime,
|
|
2852
2880
|
pattern: S,
|
|
2853
2881
|
location: l.styleLocation,
|
|
2854
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2882
|
+
parsedOptions: this.shouldParseSkeletons ? zn(S) : {}
|
|
2855
2883
|
}, P = s === "date" ? L.date : L.time;
|
|
2856
2884
|
return {
|
|
2857
2885
|
val: { type: P, value: n, location: g, style: d },
|
|
@@ -2874,7 +2902,7 @@ var ui = (
|
|
|
2874
2902
|
case "select": {
|
|
2875
2903
|
var I = this.clonePosition();
|
|
2876
2904
|
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2877
|
-
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, T(I,
|
|
2905
|
+
return this.error(w.EXPECT_SELECT_ARGUMENT_OPTIONS, T(I, qe({}, I)));
|
|
2878
2906
|
this.bumpSpace();
|
|
2879
2907
|
var D = this.parseIdentifierIfPossible(), M = 0;
|
|
2880
2908
|
if (s !== "select" && D.value === "offset") {
|
|
@@ -2892,23 +2920,23 @@ var ui = (
|
|
|
2892
2920
|
var m = this.tryParseArgumentClose(i);
|
|
2893
2921
|
if (m.err)
|
|
2894
2922
|
return m;
|
|
2895
|
-
var
|
|
2923
|
+
var ee = T(i, this.clonePosition());
|
|
2896
2924
|
return s === "select" ? {
|
|
2897
2925
|
val: {
|
|
2898
2926
|
type: L.select,
|
|
2899
2927
|
value: n,
|
|
2900
|
-
options:
|
|
2901
|
-
location:
|
|
2928
|
+
options: Ft(N.val),
|
|
2929
|
+
location: ee
|
|
2902
2930
|
},
|
|
2903
2931
|
err: null
|
|
2904
2932
|
} : {
|
|
2905
2933
|
val: {
|
|
2906
2934
|
type: L.plural,
|
|
2907
2935
|
value: n,
|
|
2908
|
-
options:
|
|
2936
|
+
options: Ft(N.val),
|
|
2909
2937
|
offset: M,
|
|
2910
2938
|
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2911
|
-
location:
|
|
2939
|
+
location: ee
|
|
2912
2940
|
},
|
|
2913
2941
|
err: null
|
|
2914
2942
|
};
|
|
@@ -2956,7 +2984,7 @@ var ui = (
|
|
|
2956
2984
|
}, e.prototype.parseNumberSkeletonFromString = function(t, r) {
|
|
2957
2985
|
var n = [];
|
|
2958
2986
|
try {
|
|
2959
|
-
n =
|
|
2987
|
+
n = Wn(t);
|
|
2960
2988
|
} catch {
|
|
2961
2989
|
return this.error(w.INVALID_NUMBER_SKELETON, r);
|
|
2962
2990
|
}
|
|
@@ -2965,7 +2993,7 @@ var ui = (
|
|
|
2965
2993
|
type: Ae.number,
|
|
2966
2994
|
tokens: n,
|
|
2967
2995
|
location: r,
|
|
2968
|
-
parsedOptions: this.shouldParseSkeletons ?
|
|
2996
|
+
parsedOptions: this.shouldParseSkeletons ? Jn(n) : {}
|
|
2969
2997
|
},
|
|
2970
2998
|
err: null
|
|
2971
2999
|
};
|
|
@@ -3013,7 +3041,7 @@ var ui = (
|
|
|
3013
3041
|
break;
|
|
3014
3042
|
}
|
|
3015
3043
|
var u = T(i, this.clonePosition());
|
|
3016
|
-
return o ? (a *= n,
|
|
3044
|
+
return o ? (a *= n, ui(a) ? { val: a, err: null } : this.error(r, u)) : this.error(t, u);
|
|
3017
3045
|
}, e.prototype.offset = function() {
|
|
3018
3046
|
return this.position.offset;
|
|
3019
3047
|
}, e.prototype.isEOF = function() {
|
|
@@ -3028,7 +3056,7 @@ var ui = (
|
|
|
3028
3056
|
var t = this.position.offset;
|
|
3029
3057
|
if (t >= this.message.length)
|
|
3030
3058
|
throw Error("out of bound");
|
|
3031
|
-
var r =
|
|
3059
|
+
var r = yr(this.message, t);
|
|
3032
3060
|
if (r === void 0)
|
|
3033
3061
|
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3034
3062
|
return r;
|
|
@@ -3047,7 +3075,7 @@ var ui = (
|
|
|
3047
3075
|
t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
|
|
3048
3076
|
}
|
|
3049
3077
|
}, e.prototype.bumpIf = function(t) {
|
|
3050
|
-
if (
|
|
3078
|
+
if (Gt(this.message, t, this.offset())) {
|
|
3051
3079
|
for (var r = 0; r < t.length; r++)
|
|
3052
3080
|
this.bump();
|
|
3053
3081
|
return !0;
|
|
@@ -3069,7 +3097,7 @@ var ui = (
|
|
|
3069
3097
|
break;
|
|
3070
3098
|
}
|
|
3071
3099
|
}, e.prototype.bumpSpace = function() {
|
|
3072
|
-
for (; !this.isEOF() &&
|
|
3100
|
+
for (; !this.isEOF() && Er(this.char()); )
|
|
3073
3101
|
this.bump();
|
|
3074
3102
|
}, e.prototype.peek = function() {
|
|
3075
3103
|
if (this.isEOF())
|
|
@@ -3079,47 +3107,47 @@ var ui = (
|
|
|
3079
3107
|
}, e;
|
|
3080
3108
|
}()
|
|
3081
3109
|
);
|
|
3082
|
-
function
|
|
3110
|
+
function vt(e) {
|
|
3083
3111
|
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3084
3112
|
}
|
|
3085
|
-
function
|
|
3086
|
-
return
|
|
3113
|
+
function di(e) {
|
|
3114
|
+
return vt(e) || e === 47;
|
|
3087
3115
|
}
|
|
3088
|
-
function
|
|
3116
|
+
function mi(e) {
|
|
3089
3117
|
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;
|
|
3090
3118
|
}
|
|
3091
|
-
function
|
|
3119
|
+
function Er(e) {
|
|
3092
3120
|
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3093
3121
|
}
|
|
3094
|
-
function
|
|
3122
|
+
function gi(e) {
|
|
3095
3123
|
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;
|
|
3096
3124
|
}
|
|
3097
|
-
function
|
|
3125
|
+
function xt(e) {
|
|
3098
3126
|
e.forEach(function(t) {
|
|
3099
|
-
if (delete t.location,
|
|
3127
|
+
if (delete t.location, hr(t) || cr(t))
|
|
3100
3128
|
for (var r in t.options)
|
|
3101
|
-
delete t.options[r].location,
|
|
3129
|
+
delete t.options[r].location, xt(t.options[r].value);
|
|
3102
3130
|
else
|
|
3103
|
-
|
|
3131
|
+
ar(t) && pr(t.style) || (lr(t) || ur(t)) && bt(t.style) ? delete t.style.location : fr(t) && xt(t.children);
|
|
3104
3132
|
});
|
|
3105
3133
|
}
|
|
3106
|
-
function
|
|
3107
|
-
t === void 0 && (t = {}), t =
|
|
3108
|
-
var r = new
|
|
3134
|
+
function bi(e, t) {
|
|
3135
|
+
t === void 0 && (t = {}), t = qe({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3136
|
+
var r = new pi(e, t).parse();
|
|
3109
3137
|
if (r.err) {
|
|
3110
3138
|
var n = SyntaxError(w[r.err.kind]);
|
|
3111
3139
|
throw n.location = r.err.location, n.originalMessage = r.err.message, n;
|
|
3112
3140
|
}
|
|
3113
|
-
return t?.captureLocation ||
|
|
3141
|
+
return t?.captureLocation || xt(r.val), r.val;
|
|
3114
3142
|
}
|
|
3115
3143
|
var Ce;
|
|
3116
3144
|
(function(e) {
|
|
3117
3145
|
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3118
3146
|
})(Ce || (Ce = {}));
|
|
3119
|
-
var
|
|
3147
|
+
var et = (
|
|
3120
3148
|
/** @class */
|
|
3121
3149
|
function(e) {
|
|
3122
|
-
|
|
3150
|
+
Ke(t, e);
|
|
3123
3151
|
function t(r, n, i) {
|
|
3124
3152
|
var o = e.call(this, r) || this;
|
|
3125
3153
|
return o.code = n, o.originalMessage = i, o;
|
|
@@ -3128,48 +3156,48 @@ var Ke = (
|
|
|
3128
3156
|
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3129
3157
|
}, t;
|
|
3130
3158
|
}(Error)
|
|
3131
|
-
),
|
|
3159
|
+
), Vt = (
|
|
3132
3160
|
/** @class */
|
|
3133
3161
|
function(e) {
|
|
3134
|
-
|
|
3162
|
+
Ke(t, e);
|
|
3135
3163
|
function t(r, n, i, o) {
|
|
3136
3164
|
return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Ce.INVALID_VALUE, o) || this;
|
|
3137
3165
|
}
|
|
3138
3166
|
return t;
|
|
3139
|
-
}(
|
|
3140
|
-
),
|
|
3167
|
+
}(et)
|
|
3168
|
+
), yi = (
|
|
3141
3169
|
/** @class */
|
|
3142
3170
|
function(e) {
|
|
3143
|
-
|
|
3171
|
+
Ke(t, e);
|
|
3144
3172
|
function t(r, n, i) {
|
|
3145
3173
|
return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), Ce.INVALID_VALUE, i) || this;
|
|
3146
3174
|
}
|
|
3147
3175
|
return t;
|
|
3148
|
-
}(
|
|
3149
|
-
),
|
|
3176
|
+
}(et)
|
|
3177
|
+
), _i = (
|
|
3150
3178
|
/** @class */
|
|
3151
3179
|
function(e) {
|
|
3152
|
-
|
|
3180
|
+
Ke(t, e);
|
|
3153
3181
|
function t(r, n) {
|
|
3154
3182
|
return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), Ce.MISSING_VALUE, n) || this;
|
|
3155
3183
|
}
|
|
3156
3184
|
return t;
|
|
3157
|
-
}(
|
|
3185
|
+
}(et)
|
|
3158
3186
|
), Z;
|
|
3159
3187
|
(function(e) {
|
|
3160
3188
|
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3161
3189
|
})(Z || (Z = {}));
|
|
3162
|
-
function
|
|
3190
|
+
function Ei(e) {
|
|
3163
3191
|
return e.length < 2 ? e : e.reduce(function(t, r) {
|
|
3164
3192
|
var n = t[t.length - 1];
|
|
3165
3193
|
return !n || n.type !== Z.literal || r.type !== Z.literal ? t.push(r) : n.value += r.value, t;
|
|
3166
3194
|
}, []);
|
|
3167
3195
|
}
|
|
3168
|
-
function
|
|
3196
|
+
function vi(e) {
|
|
3169
3197
|
return typeof e == "function";
|
|
3170
3198
|
}
|
|
3171
|
-
function
|
|
3172
|
-
if (e.length === 1 &&
|
|
3199
|
+
function Xe(e, t, r, n, i, o, a) {
|
|
3200
|
+
if (e.length === 1 && Rt(e[0]))
|
|
3173
3201
|
return [
|
|
3174
3202
|
{
|
|
3175
3203
|
type: Z.literal,
|
|
@@ -3178,14 +3206,14 @@ function ze(e, t, r, n, i, o, a) {
|
|
|
3178
3206
|
];
|
|
3179
3207
|
for (var s = [], u = 0, l = e; u < l.length; u++) {
|
|
3180
3208
|
var h = l[u];
|
|
3181
|
-
if (
|
|
3209
|
+
if (Rt(h)) {
|
|
3182
3210
|
s.push({
|
|
3183
3211
|
type: Z.literal,
|
|
3184
3212
|
value: h.value
|
|
3185
3213
|
});
|
|
3186
3214
|
continue;
|
|
3187
3215
|
}
|
|
3188
|
-
if (
|
|
3216
|
+
if (Vn(h)) {
|
|
3189
3217
|
typeof o == "number" && s.push({
|
|
3190
3218
|
type: Z.literal,
|
|
3191
3219
|
value: r.getNumberFormat(t).format(o)
|
|
@@ -3194,44 +3222,44 @@ function ze(e, t, r, n, i, o, a) {
|
|
|
3194
3222
|
}
|
|
3195
3223
|
var c = h.value;
|
|
3196
3224
|
if (!(i && c in i))
|
|
3197
|
-
throw new
|
|
3225
|
+
throw new _i(c, a);
|
|
3198
3226
|
var d = i[c];
|
|
3199
|
-
if (
|
|
3227
|
+
if (jn(h)) {
|
|
3200
3228
|
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
|
|
3201
3229
|
type: typeof d == "string" ? Z.literal : Z.object,
|
|
3202
3230
|
value: d
|
|
3203
3231
|
});
|
|
3204
3232
|
continue;
|
|
3205
3233
|
}
|
|
3206
|
-
if (
|
|
3207
|
-
var _ = typeof h.style == "string" ? n.date[h.style] :
|
|
3234
|
+
if (lr(h)) {
|
|
3235
|
+
var _ = typeof h.style == "string" ? n.date[h.style] : bt(h.style) ? h.style.parsedOptions : void 0;
|
|
3208
3236
|
s.push({
|
|
3209
3237
|
type: Z.literal,
|
|
3210
3238
|
value: r.getDateTimeFormat(t, _).format(d)
|
|
3211
3239
|
});
|
|
3212
3240
|
continue;
|
|
3213
3241
|
}
|
|
3214
|
-
if (
|
|
3215
|
-
var _ = typeof h.style == "string" ? n.time[h.style] :
|
|
3242
|
+
if (ur(h)) {
|
|
3243
|
+
var _ = typeof h.style == "string" ? n.time[h.style] : bt(h.style) ? h.style.parsedOptions : n.time.medium;
|
|
3216
3244
|
s.push({
|
|
3217
3245
|
type: Z.literal,
|
|
3218
3246
|
value: r.getDateTimeFormat(t, _).format(d)
|
|
3219
3247
|
});
|
|
3220
3248
|
continue;
|
|
3221
3249
|
}
|
|
3222
|
-
if (
|
|
3223
|
-
var _ = typeof h.style == "string" ? n.number[h.style] :
|
|
3250
|
+
if (ar(h)) {
|
|
3251
|
+
var _ = typeof h.style == "string" ? n.number[h.style] : pr(h.style) ? h.style.parsedOptions : void 0;
|
|
3224
3252
|
_ && _.scale && (d = d * (_.scale || 1)), s.push({
|
|
3225
3253
|
type: Z.literal,
|
|
3226
3254
|
value: r.getNumberFormat(t, _).format(d)
|
|
3227
3255
|
});
|
|
3228
3256
|
continue;
|
|
3229
3257
|
}
|
|
3230
|
-
if (
|
|
3258
|
+
if (fr(h)) {
|
|
3231
3259
|
var m = h.children, g = h.value, E = i[g];
|
|
3232
|
-
if (!
|
|
3233
|
-
throw new
|
|
3234
|
-
var S =
|
|
3260
|
+
if (!vi(E))
|
|
3261
|
+
throw new yi(g, "function", a);
|
|
3262
|
+
var S = Xe(m, t, r, n, i, o), P = E(S.map(function(M) {
|
|
3235
3263
|
return M.value;
|
|
3236
3264
|
}));
|
|
3237
3265
|
Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(M) {
|
|
@@ -3241,42 +3269,42 @@ function ze(e, t, r, n, i, o, a) {
|
|
|
3241
3269
|
};
|
|
3242
3270
|
}));
|
|
3243
3271
|
}
|
|
3244
|
-
if (
|
|
3272
|
+
if (hr(h)) {
|
|
3245
3273
|
var I = h.options[d] || h.options.other;
|
|
3246
3274
|
if (!I)
|
|
3247
|
-
throw new
|
|
3248
|
-
s.push.apply(s,
|
|
3275
|
+
throw new Vt(h.value, d, Object.keys(h.options), a);
|
|
3276
|
+
s.push.apply(s, Xe(I.value, t, r, n, i));
|
|
3249
3277
|
continue;
|
|
3250
3278
|
}
|
|
3251
|
-
if (
|
|
3279
|
+
if (cr(h)) {
|
|
3252
3280
|
var I = h.options["=".concat(d)];
|
|
3253
3281
|
if (!I) {
|
|
3254
3282
|
if (!Intl.PluralRules)
|
|
3255
|
-
throw new
|
|
3283
|
+
throw new et(`Intl.PluralRules is not available in this environment.
|
|
3256
3284
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3257
3285
|
`, Ce.MISSING_INTL_API, a);
|
|
3258
3286
|
var D = r.getPluralRules(t, { type: h.pluralType }).select(d - (h.offset || 0));
|
|
3259
3287
|
I = h.options[D] || h.options.other;
|
|
3260
3288
|
}
|
|
3261
3289
|
if (!I)
|
|
3262
|
-
throw new
|
|
3263
|
-
s.push.apply(s,
|
|
3290
|
+
throw new Vt(h.value, d, Object.keys(h.options), a);
|
|
3291
|
+
s.push.apply(s, Xe(I.value, t, r, n, i, d - (h.offset || 0)));
|
|
3264
3292
|
continue;
|
|
3265
3293
|
}
|
|
3266
3294
|
}
|
|
3267
|
-
return
|
|
3295
|
+
return Ei(s);
|
|
3268
3296
|
}
|
|
3269
|
-
function
|
|
3270
|
-
return t ?
|
|
3271
|
-
return r[n] =
|
|
3297
|
+
function xi(e, t) {
|
|
3298
|
+
return t ? oe(oe(oe({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
|
|
3299
|
+
return r[n] = oe(oe({}, e[n]), t[n] || {}), r;
|
|
3272
3300
|
}, {})) : e;
|
|
3273
3301
|
}
|
|
3274
|
-
function
|
|
3302
|
+
function wi(e, t) {
|
|
3275
3303
|
return t ? Object.keys(e).reduce(function(r, n) {
|
|
3276
|
-
return r[n] =
|
|
3277
|
-
},
|
|
3304
|
+
return r[n] = xi(e[n], t[n]), r;
|
|
3305
|
+
}, oe({}, e)) : e;
|
|
3278
3306
|
}
|
|
3279
|
-
function
|
|
3307
|
+
function ft(e) {
|
|
3280
3308
|
return {
|
|
3281
3309
|
create: function() {
|
|
3282
3310
|
return {
|
|
@@ -3290,39 +3318,39 @@ function ht(e) {
|
|
|
3290
3318
|
}
|
|
3291
3319
|
};
|
|
3292
3320
|
}
|
|
3293
|
-
function
|
|
3321
|
+
function Si(e) {
|
|
3294
3322
|
return e === void 0 && (e = {
|
|
3295
3323
|
number: {},
|
|
3296
3324
|
dateTime: {},
|
|
3297
3325
|
pluralRules: {}
|
|
3298
3326
|
}), {
|
|
3299
|
-
getNumberFormat:
|
|
3327
|
+
getNumberFormat: ut(function() {
|
|
3300
3328
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3301
3329
|
r[n] = arguments[n];
|
|
3302
|
-
return new ((t = Intl.NumberFormat).bind.apply(t,
|
|
3330
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, lt([void 0], r, !1)))();
|
|
3303
3331
|
}, {
|
|
3304
|
-
cache:
|
|
3305
|
-
strategy:
|
|
3332
|
+
cache: ft(e.number),
|
|
3333
|
+
strategy: ht.variadic
|
|
3306
3334
|
}),
|
|
3307
|
-
getDateTimeFormat:
|
|
3335
|
+
getDateTimeFormat: ut(function() {
|
|
3308
3336
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3309
3337
|
r[n] = arguments[n];
|
|
3310
|
-
return new ((t = Intl.DateTimeFormat).bind.apply(t,
|
|
3338
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, lt([void 0], r, !1)))();
|
|
3311
3339
|
}, {
|
|
3312
|
-
cache:
|
|
3313
|
-
strategy:
|
|
3340
|
+
cache: ft(e.dateTime),
|
|
3341
|
+
strategy: ht.variadic
|
|
3314
3342
|
}),
|
|
3315
|
-
getPluralRules:
|
|
3343
|
+
getPluralRules: ut(function() {
|
|
3316
3344
|
for (var t, r = [], n = 0; n < arguments.length; n++)
|
|
3317
3345
|
r[n] = arguments[n];
|
|
3318
|
-
return new ((t = Intl.PluralRules).bind.apply(t,
|
|
3346
|
+
return new ((t = Intl.PluralRules).bind.apply(t, lt([void 0], r, !1)))();
|
|
3319
3347
|
}, {
|
|
3320
|
-
cache:
|
|
3321
|
-
strategy:
|
|
3348
|
+
cache: ft(e.pluralRules),
|
|
3349
|
+
strategy: ht.variadic
|
|
3322
3350
|
})
|
|
3323
3351
|
};
|
|
3324
3352
|
}
|
|
3325
|
-
var
|
|
3353
|
+
var Ti = (
|
|
3326
3354
|
/** @class */
|
|
3327
3355
|
function() {
|
|
3328
3356
|
function e(t, r, n, i) {
|
|
@@ -3341,7 +3369,7 @@ var vi = (
|
|
|
3341
3369
|
}, []);
|
|
3342
3370
|
return h.length <= 1 ? h[0] || "" : h;
|
|
3343
3371
|
}, this.formatToParts = function(u) {
|
|
3344
|
-
return
|
|
3372
|
+
return Xe(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3345
3373
|
}, this.resolvedOptions = function() {
|
|
3346
3374
|
var u;
|
|
3347
3375
|
return {
|
|
@@ -3354,13 +3382,13 @@ var vi = (
|
|
|
3354
3382
|
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3355
3383
|
var a = i || {};
|
|
3356
3384
|
a.formatters;
|
|
3357
|
-
var s =
|
|
3358
|
-
this.ast = e.__parse(t,
|
|
3385
|
+
var s = In(a, ["formatters"]);
|
|
3386
|
+
this.ast = e.__parse(t, oe(oe({}, s), { locale: this.resolvedLocale }));
|
|
3359
3387
|
} else
|
|
3360
3388
|
this.ast = t;
|
|
3361
3389
|
if (!Array.isArray(this.ast))
|
|
3362
3390
|
throw new TypeError("A message must be provided as a String or AST.");
|
|
3363
|
-
this.formats =
|
|
3391
|
+
this.formats = wi(e.formats, n), this.formatters = i && i.formatters || Si(this.formatterCache);
|
|
3364
3392
|
}
|
|
3365
3393
|
return Object.defineProperty(e, "defaultLocale", {
|
|
3366
3394
|
get: function() {
|
|
@@ -3373,7 +3401,7 @@ var vi = (
|
|
|
3373
3401
|
var r = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3374
3402
|
return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3375
3403
|
}
|
|
3376
|
-
}, e.__parse =
|
|
3404
|
+
}, e.__parse = bi, e.formats = {
|
|
3377
3405
|
number: {
|
|
3378
3406
|
integer: {
|
|
3379
3407
|
maximumFractionDigits: 0
|
|
@@ -3434,7 +3462,7 @@ var vi = (
|
|
|
3434
3462
|
}, e;
|
|
3435
3463
|
}()
|
|
3436
3464
|
);
|
|
3437
|
-
function
|
|
3465
|
+
function Oi(e, t) {
|
|
3438
3466
|
if (t == null)
|
|
3439
3467
|
return;
|
|
3440
3468
|
if (t in e)
|
|
@@ -3455,92 +3483,92 @@ function xi(e, t) {
|
|
|
3455
3483
|
n = void 0;
|
|
3456
3484
|
return n;
|
|
3457
3485
|
}
|
|
3458
|
-
const fe = {},
|
|
3486
|
+
const fe = {}, Hi = (e, t, r) => r && (t in fe || (fe[t] = {}), e in fe[t] || (fe[t][e] = r), r), vr = (e, t) => {
|
|
3459
3487
|
if (t == null)
|
|
3460
3488
|
return;
|
|
3461
3489
|
if (t in fe && e in fe[t])
|
|
3462
3490
|
return fe[t][e];
|
|
3463
|
-
const r =
|
|
3491
|
+
const r = tt(t);
|
|
3464
3492
|
for (let n = 0; n < r.length; n++) {
|
|
3465
|
-
const i = r[n], o =
|
|
3493
|
+
const i = r[n], o = Ci(i, e);
|
|
3466
3494
|
if (o)
|
|
3467
|
-
return
|
|
3495
|
+
return Hi(e, t, o);
|
|
3468
3496
|
}
|
|
3469
3497
|
};
|
|
3470
|
-
let
|
|
3471
|
-
const
|
|
3472
|
-
function
|
|
3473
|
-
return
|
|
3498
|
+
let Ot;
|
|
3499
|
+
const Ve = Ye({});
|
|
3500
|
+
function Ai(e) {
|
|
3501
|
+
return Ot[e] || null;
|
|
3474
3502
|
}
|
|
3475
|
-
function
|
|
3476
|
-
return e in
|
|
3503
|
+
function xr(e) {
|
|
3504
|
+
return e in Ot;
|
|
3477
3505
|
}
|
|
3478
|
-
function
|
|
3479
|
-
if (!
|
|
3506
|
+
function Ci(e, t) {
|
|
3507
|
+
if (!xr(e))
|
|
3480
3508
|
return null;
|
|
3481
|
-
const r =
|
|
3482
|
-
return
|
|
3509
|
+
const r = Ai(e);
|
|
3510
|
+
return Oi(r, t);
|
|
3483
3511
|
}
|
|
3484
|
-
function
|
|
3512
|
+
function Bi(e) {
|
|
3485
3513
|
if (e == null)
|
|
3486
3514
|
return;
|
|
3487
|
-
const t =
|
|
3515
|
+
const t = tt(e);
|
|
3488
3516
|
for (let r = 0; r < t.length; r++) {
|
|
3489
3517
|
const n = t[r];
|
|
3490
|
-
if (
|
|
3518
|
+
if (xr(n))
|
|
3491
3519
|
return n;
|
|
3492
3520
|
}
|
|
3493
3521
|
}
|
|
3494
|
-
function
|
|
3495
|
-
delete fe[e],
|
|
3522
|
+
function wr(e, ...t) {
|
|
3523
|
+
delete fe[e], Ve.update((r) => (r[e] = Ln.all([r[e] || {}, ...t]), r));
|
|
3496
3524
|
}
|
|
3497
3525
|
Pe(
|
|
3498
|
-
[
|
|
3526
|
+
[Ve],
|
|
3499
3527
|
([e]) => Object.keys(e)
|
|
3500
3528
|
);
|
|
3501
|
-
|
|
3502
|
-
const
|
|
3503
|
-
function
|
|
3504
|
-
|
|
3529
|
+
Ve.subscribe((e) => Ot = e);
|
|
3530
|
+
const We = {};
|
|
3531
|
+
function Pi(e, t) {
|
|
3532
|
+
We[e].delete(t), We[e].size === 0 && delete We[e];
|
|
3505
3533
|
}
|
|
3506
|
-
function
|
|
3507
|
-
return
|
|
3534
|
+
function Sr(e) {
|
|
3535
|
+
return We[e];
|
|
3508
3536
|
}
|
|
3509
|
-
function
|
|
3510
|
-
return
|
|
3511
|
-
const r =
|
|
3537
|
+
function Mi(e) {
|
|
3538
|
+
return tt(e).map((t) => {
|
|
3539
|
+
const r = Sr(t);
|
|
3512
3540
|
return [t, r ? [...r] : []];
|
|
3513
3541
|
}).filter(([, t]) => t.length > 0);
|
|
3514
3542
|
}
|
|
3515
|
-
function
|
|
3516
|
-
return e == null ? !1 :
|
|
3543
|
+
function wt(e) {
|
|
3544
|
+
return e == null ? !1 : tt(e).some(
|
|
3517
3545
|
(t) => {
|
|
3518
3546
|
var r;
|
|
3519
|
-
return (r =
|
|
3547
|
+
return (r = Sr(t)) == null ? void 0 : r.size;
|
|
3520
3548
|
}
|
|
3521
3549
|
);
|
|
3522
3550
|
}
|
|
3523
|
-
function
|
|
3551
|
+
function Li(e, t) {
|
|
3524
3552
|
return Promise.all(
|
|
3525
|
-
t.map((n) => (
|
|
3526
|
-
).then((n) =>
|
|
3527
|
-
}
|
|
3528
|
-
const
|
|
3529
|
-
function
|
|
3530
|
-
if (!
|
|
3531
|
-
return e in
|
|
3532
|
-
const t =
|
|
3533
|
-
return
|
|
3553
|
+
t.map((n) => (Pi(e, n), n().then((i) => i.default || i)))
|
|
3554
|
+
).then((n) => wr(e, ...n));
|
|
3555
|
+
}
|
|
3556
|
+
const De = {};
|
|
3557
|
+
function Tr(e) {
|
|
3558
|
+
if (!wt(e))
|
|
3559
|
+
return e in De ? De[e] : Promise.resolve();
|
|
3560
|
+
const t = Mi(e);
|
|
3561
|
+
return De[e] = Promise.all(
|
|
3534
3562
|
t.map(
|
|
3535
|
-
([r, n]) =>
|
|
3563
|
+
([r, n]) => Li(r, n)
|
|
3536
3564
|
)
|
|
3537
3565
|
).then(() => {
|
|
3538
|
-
if (
|
|
3539
|
-
return
|
|
3540
|
-
delete
|
|
3541
|
-
}),
|
|
3566
|
+
if (wt(e))
|
|
3567
|
+
return Tr(e);
|
|
3568
|
+
delete De[e];
|
|
3569
|
+
}), De[e];
|
|
3542
3570
|
}
|
|
3543
|
-
const
|
|
3571
|
+
const Ii = {
|
|
3544
3572
|
number: {
|
|
3545
3573
|
scientific: { notation: "scientific" },
|
|
3546
3574
|
engineering: { notation: "engineering" },
|
|
@@ -3569,148 +3597,148 @@ const Bi = {
|
|
|
3569
3597
|
timeZoneName: "short"
|
|
3570
3598
|
}
|
|
3571
3599
|
}
|
|
3572
|
-
},
|
|
3600
|
+
}, Ni = {
|
|
3573
3601
|
fallbackLocale: null,
|
|
3574
3602
|
loadingDelay: 200,
|
|
3575
|
-
formats:
|
|
3603
|
+
formats: Ii,
|
|
3576
3604
|
warnOnMissingMessages: !0,
|
|
3577
3605
|
handleMissingMessage: void 0,
|
|
3578
3606
|
ignoreTag: !0
|
|
3579
|
-
},
|
|
3607
|
+
}, Ri = Ni;
|
|
3580
3608
|
function Be() {
|
|
3581
|
-
return
|
|
3609
|
+
return Ri;
|
|
3582
3610
|
}
|
|
3583
|
-
const
|
|
3584
|
-
var
|
|
3611
|
+
const pt = Ye(!1);
|
|
3612
|
+
var ki = Object.defineProperty, Di = Object.defineProperties, Ui = Object.getOwnPropertyDescriptors, $t = Object.getOwnPropertySymbols, Gi = Object.prototype.hasOwnProperty, Fi = Object.prototype.propertyIsEnumerable, zt = (e, t, r) => t in e ? ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ji = (e, t) => {
|
|
3585
3613
|
for (var r in t || (t = {}))
|
|
3586
|
-
|
|
3587
|
-
if (
|
|
3588
|
-
for (var r of
|
|
3589
|
-
|
|
3614
|
+
Gi.call(t, r) && zt(e, r, t[r]);
|
|
3615
|
+
if ($t)
|
|
3616
|
+
for (var r of $t(t))
|
|
3617
|
+
Fi.call(t, r) && zt(e, r, t[r]);
|
|
3590
3618
|
return e;
|
|
3591
|
-
},
|
|
3592
|
-
let
|
|
3593
|
-
const
|
|
3594
|
-
function
|
|
3619
|
+
}, Vi = (e, t) => Di(e, Ui(t));
|
|
3620
|
+
let St;
|
|
3621
|
+
const Qe = Ye(null);
|
|
3622
|
+
function Xt(e) {
|
|
3595
3623
|
return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
|
|
3596
3624
|
}
|
|
3597
|
-
function
|
|
3598
|
-
const r =
|
|
3599
|
-
return t ? [.../* @__PURE__ */ new Set([...r,
|
|
3625
|
+
function tt(e, t = Be().fallbackLocale) {
|
|
3626
|
+
const r = Xt(e);
|
|
3627
|
+
return t ? [.../* @__PURE__ */ new Set([...r, ...Xt(t)])] : r;
|
|
3600
3628
|
}
|
|
3601
|
-
function
|
|
3602
|
-
return
|
|
3629
|
+
function _e() {
|
|
3630
|
+
return St ?? void 0;
|
|
3603
3631
|
}
|
|
3604
|
-
|
|
3605
|
-
|
|
3632
|
+
Qe.subscribe((e) => {
|
|
3633
|
+
St = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3606
3634
|
});
|
|
3607
|
-
const
|
|
3608
|
-
if (e &&
|
|
3635
|
+
const $i = (e) => {
|
|
3636
|
+
if (e && Bi(e) && wt(e)) {
|
|
3609
3637
|
const { loadingDelay: t } = Be();
|
|
3610
3638
|
let r;
|
|
3611
|
-
return typeof window < "u" &&
|
|
3612
|
-
() =>
|
|
3639
|
+
return typeof window < "u" && _e() != null && t ? r = window.setTimeout(
|
|
3640
|
+
() => pt.set(!0),
|
|
3613
3641
|
t
|
|
3614
|
-
) :
|
|
3615
|
-
|
|
3642
|
+
) : pt.set(!0), Tr(e).then(() => {
|
|
3643
|
+
Qe.set(e);
|
|
3616
3644
|
}).finally(() => {
|
|
3617
|
-
clearTimeout(r),
|
|
3645
|
+
clearTimeout(r), pt.set(!1);
|
|
3618
3646
|
});
|
|
3619
3647
|
}
|
|
3620
|
-
return
|
|
3621
|
-
}, Me =
|
|
3622
|
-
set:
|
|
3623
|
-
}),
|
|
3648
|
+
return Qe.set(e);
|
|
3649
|
+
}, Me = Vi(ji({}, Qe), {
|
|
3650
|
+
set: $i
|
|
3651
|
+
}), rt = (e) => {
|
|
3624
3652
|
const t = /* @__PURE__ */ Object.create(null);
|
|
3625
3653
|
return (n) => {
|
|
3626
3654
|
const i = JSON.stringify(n);
|
|
3627
3655
|
return i in t ? t[i] : t[i] = e(n);
|
|
3628
3656
|
};
|
|
3629
3657
|
};
|
|
3630
|
-
var
|
|
3658
|
+
var zi = Object.defineProperty, Je = Object.getOwnPropertySymbols, Or = Object.prototype.hasOwnProperty, Hr = Object.prototype.propertyIsEnumerable, Wt = (e, t, r) => t in e ? zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ht = (e, t) => {
|
|
3631
3659
|
for (var r in t || (t = {}))
|
|
3632
|
-
|
|
3633
|
-
if (
|
|
3634
|
-
for (var r of
|
|
3635
|
-
|
|
3660
|
+
Or.call(t, r) && Wt(e, r, t[r]);
|
|
3661
|
+
if (Je)
|
|
3662
|
+
for (var r of Je(t))
|
|
3663
|
+
Hr.call(t, r) && Wt(e, r, t[r]);
|
|
3636
3664
|
return e;
|
|
3637
3665
|
}, Le = (e, t) => {
|
|
3638
3666
|
var r = {};
|
|
3639
3667
|
for (var n in e)
|
|
3640
|
-
|
|
3641
|
-
if (e != null &&
|
|
3642
|
-
for (var n of
|
|
3643
|
-
t.indexOf(n) < 0 &&
|
|
3668
|
+
Or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
3669
|
+
if (e != null && Je)
|
|
3670
|
+
for (var n of Je(e))
|
|
3671
|
+
t.indexOf(n) < 0 && Hr.call(e, n) && (r[n] = e[n]);
|
|
3644
3672
|
return r;
|
|
3645
3673
|
};
|
|
3646
|
-
const
|
|
3674
|
+
const je = (e, t) => {
|
|
3647
3675
|
const { formats: r } = Be();
|
|
3648
3676
|
if (e in r && t in r[e])
|
|
3649
3677
|
return r[e][t];
|
|
3650
3678
|
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3651
|
-
},
|
|
3679
|
+
}, Xi = rt(
|
|
3652
3680
|
(e) => {
|
|
3653
3681
|
var t = e, { locale: r, format: n } = t, i = Le(t, ["locale", "format"]);
|
|
3654
3682
|
if (r == null)
|
|
3655
3683
|
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3656
|
-
return n && (i =
|
|
3684
|
+
return n && (i = je("number", n)), new Intl.NumberFormat(r, i);
|
|
3657
3685
|
}
|
|
3658
|
-
),
|
|
3686
|
+
), Wi = rt(
|
|
3659
3687
|
(e) => {
|
|
3660
3688
|
var t = e, { locale: r, format: n } = t, i = Le(t, ["locale", "format"]);
|
|
3661
3689
|
if (r == null)
|
|
3662
3690
|
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3663
|
-
return n ? i =
|
|
3691
|
+
return n ? i = je("date", n) : Object.keys(i).length === 0 && (i = je("date", "short")), new Intl.DateTimeFormat(r, i);
|
|
3664
3692
|
}
|
|
3665
|
-
),
|
|
3693
|
+
), Zi = rt(
|
|
3666
3694
|
(e) => {
|
|
3667
3695
|
var t = e, { locale: r, format: n } = t, i = Le(t, ["locale", "format"]);
|
|
3668
3696
|
if (r == null)
|
|
3669
3697
|
throw new Error(
|
|
3670
3698
|
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3671
3699
|
);
|
|
3672
|
-
return n ? i =
|
|
3700
|
+
return n ? i = je("time", n) : Object.keys(i).length === 0 && (i = je("time", "short")), new Intl.DateTimeFormat(r, i);
|
|
3673
3701
|
}
|
|
3674
|
-
),
|
|
3702
|
+
), qi = (e = {}) => {
|
|
3675
3703
|
var t = e, {
|
|
3676
|
-
locale: r =
|
|
3704
|
+
locale: r = _e()
|
|
3677
3705
|
} = t, n = Le(t, [
|
|
3678
3706
|
"locale"
|
|
3679
3707
|
]);
|
|
3680
|
-
return
|
|
3681
|
-
},
|
|
3708
|
+
return Xi(Ht({ locale: r }, n));
|
|
3709
|
+
}, Qi = (e = {}) => {
|
|
3682
3710
|
var t = e, {
|
|
3683
|
-
locale: r =
|
|
3711
|
+
locale: r = _e()
|
|
3684
3712
|
} = t, n = Le(t, [
|
|
3685
3713
|
"locale"
|
|
3686
3714
|
]);
|
|
3687
|
-
return
|
|
3688
|
-
},
|
|
3715
|
+
return Wi(Ht({ locale: r }, n));
|
|
3716
|
+
}, Ji = (e = {}) => {
|
|
3689
3717
|
var t = e, {
|
|
3690
|
-
locale: r =
|
|
3718
|
+
locale: r = _e()
|
|
3691
3719
|
} = t, n = Le(t, [
|
|
3692
3720
|
"locale"
|
|
3693
3721
|
]);
|
|
3694
|
-
return
|
|
3695
|
-
},
|
|
3722
|
+
return Zi(Ht({ locale: r }, n));
|
|
3723
|
+
}, Yi = rt(
|
|
3696
3724
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3697
|
-
(e, t =
|
|
3725
|
+
(e, t = _e()) => new Ti(e, t, Be().formats, {
|
|
3698
3726
|
ignoreTag: Be().ignoreTag
|
|
3699
3727
|
})
|
|
3700
|
-
),
|
|
3728
|
+
), Ki = (e, t = {}) => {
|
|
3701
3729
|
var r, n, i, o;
|
|
3702
3730
|
let a = t;
|
|
3703
3731
|
typeof e == "object" && (a = e, e = a.id);
|
|
3704
3732
|
const {
|
|
3705
3733
|
values: s,
|
|
3706
|
-
locale: u =
|
|
3734
|
+
locale: u = _e(),
|
|
3707
3735
|
default: l
|
|
3708
3736
|
} = a;
|
|
3709
3737
|
if (u == null)
|
|
3710
3738
|
throw new Error(
|
|
3711
3739
|
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3712
3740
|
);
|
|
3713
|
-
let h =
|
|
3741
|
+
let h = vr(e, u);
|
|
3714
3742
|
if (!h)
|
|
3715
3743
|
h = (o = (i = (n = (r = Be()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: u, id: e, defaultValue: l })) != null ? i : l) != null ? o : e;
|
|
3716
3744
|
else if (typeof h != "string")
|
|
@@ -3721,7 +3749,7 @@ const Ue = (e, t) => {
|
|
|
3721
3749
|
return h;
|
|
3722
3750
|
let c = h;
|
|
3723
3751
|
try {
|
|
3724
|
-
c =
|
|
3752
|
+
c = Yi(h, u).format(s);
|
|
3725
3753
|
} catch (d) {
|
|
3726
3754
|
d instanceof Error && console.warn(
|
|
3727
3755
|
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
@@ -3729,18 +3757,18 @@ const Ue = (e, t) => {
|
|
|
3729
3757
|
);
|
|
3730
3758
|
}
|
|
3731
3759
|
return c;
|
|
3732
|
-
},
|
|
3733
|
-
Pe([Me], () =>
|
|
3734
|
-
Pe([Me], () =>
|
|
3735
|
-
Pe([Me], () =>
|
|
3736
|
-
Pe([Me,
|
|
3737
|
-
function
|
|
3738
|
-
|
|
3739
|
-
}
|
|
3740
|
-
function
|
|
3760
|
+
}, eo = (e, t) => Ji(t).format(e), to = (e, t) => Qi(t).format(e), ro = (e, t) => qi(t).format(e), no = (e, t = _e()) => vr(e, t), io = Pe([Me, Ve], () => Ki);
|
|
3761
|
+
Pe([Me], () => eo);
|
|
3762
|
+
Pe([Me], () => to);
|
|
3763
|
+
Pe([Me], () => ro);
|
|
3764
|
+
Pe([Me, Ve], () => no);
|
|
3765
|
+
function Zt(e, t) {
|
|
3766
|
+
wr(e, t);
|
|
3767
|
+
}
|
|
3768
|
+
function oo(e) {
|
|
3741
3769
|
Me.set(e);
|
|
3742
3770
|
}
|
|
3743
|
-
const
|
|
3771
|
+
const qt = {
|
|
3744
3772
|
en: {
|
|
3745
3773
|
otpTitle: "Code verification is required",
|
|
3746
3774
|
popupMessage: "Please enter the security code received on your SMS/email address to perform the update.",
|
|
@@ -3811,66 +3839,66 @@ const Wt = {
|
|
|
3811
3839
|
waitSeconds: "Veuillez patienter avant de renvoyer le code :"
|
|
3812
3840
|
}
|
|
3813
3841
|
};
|
|
3814
|
-
function
|
|
3815
|
-
|
|
3842
|
+
function so(e) {
|
|
3843
|
+
Vr(e, "svelte-gpy3mu", '*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:inherit}.RadioIndicator{width:20px;height:20px;border-radius:50%;border:2px solid var(--emw--color-typography, #fff);position:relative;flex-shrink:0;margin-right:8px;transition:all 0.2s ease;opacity:0.7}.RadioIndicator.checked::after{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:10px;height:10px;border-radius:50%;opacity:1;background:var(--emw--color-primary, #fff)}.RadioIndicator.checked{border:2px solid var(--emw--color-primary, #fff)}.ModalCloseIcon{padding:0px;position:absolute;right:0;top:0;margin:15px 20px;z-index:20;transition:all 0.3s ease}.ModalCloseIcon svg{width:11px;height:11px;fill:var(--emw--color-primary, red);cursor:pointer}.ModalCloseIcon:hover{transform:rotate(90deg)}.OtpContent{width:100%;display:flex;flex-direction:column;gap:var(--emw--spacing-large, 20px)}.OtpFieldWrapper{display:flex;flex-direction:column;gap:10px}.OtpFieldWrapper h2{margin:0}.OtpButton{text-transform:uppercase;font-weight:var(--emw--font-weight-medium, 500);color:var(--emw--color-typography-button, #000000);text-align:center;font-size:var(--emw--font-size-medium, 16px);font-style:normal;font-family:inherit;height:46px;line-height:normal;border:none;background:var(--emw--color-primary, #f9c408);border-radius:10px;width:100%;margin:var(--emw--spacing-small, 12px) 0;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:var(--emw--spacing-2x-small-plus, 5px);transition:all 0.2s linear}.OtpButton:active{box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-active, #fecd1c)}.OtpButton[disabled],.OtpButton.disabled{filter:saturate(50%);opacity:0.5;cursor:not-allowed;pointer-events:none}.OtpButton:hover:not([disabled]):not(.disabled){box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.2);background-color:var(--emw--color-hover, #dbac03)}@container (max-width: 500px){.OtpDescription{font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-size-big, 20px)}}.OtpDescription{display:flex;color:var(--emw--color-typography, #fff);flex-direction:column;gap:12px;font-size:var(--emw--font-size-small, 12px)}.OtpDescription .Title{font-size:var(--emw--font-medium, 16px);font-weight:var(--emw--font-weight-medium, 600)}.OtpError{display:flex;flex-direction:column;gap:20px;align-items:center}.OtpError .OtpErrorHeader{display:flex;justify-content:center;gap:5px;align-items:center}.OtpError h2{margin:0;color:var(--emw--color-typography, #fff)}.OtpError p{color:var(--emw--color-typography, #fff);text-align:center;font-size:var(--emw--font-size-small, 12px)}.OtpError svg{width:25px;fill:var(--emw--color-error, #dd3434)}.ChannelSelection{display:flex;flex-direction:row;justify-content:space-between}.ChannelCheckbox{display:flex;align-items:center;padding:var(--emw--spacing-medium, 16px);cursor:pointer;transition:all 0.2s ease}.ChannelCheckbox input[type=radio]{display:none}.ChannelCheckbox .ChannelContent{display:flex;align-items:center;gap:3px;width:100%;color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-medium, 16px);font-weight:var(--emw--font-weight-medium, 500)}.ChannelCheckbox .ChannelContent svg{flex-shrink:0;opacity:0.7;width:20px;height:20px}.ChannelCheckbox .ChannelContent span{text-transform:uppercase}.ChannelCheckbox.selected .ChannelContent{color:var(--emw--color-primary, #000000)}.ChannelCheckbox.selected .ChannelContent svg{stroke:var(--emw--color-primary, #000000);opacity:1}.ChannelCheckbox:hover:not(.selected){color:var(--emw--color-active, #fff)}.OtpField{display:flex;justify-content:space-between;margin:10px}.OtpField input{width:45px;font-size:32px;padding:5px;text-align:center;border-radius:5px;margin:6px;font-weight:bold;outline:none;background:var(--emw--color-background);border:0;transition:all 0.1s;box-shadow:inset 0px 0px 0px 1px rgba(255, 255, 255, 0.3);color:var(--emw--color-typography, #fff)}.OtpField input.space{margin-right:1rem !important}.OtpField input:focus{box-shadow:0 0 1px 1px var(--emw--color-primary, #007bff)}.OtpActionButtons{display:flex;justify-content:space-between;gap:40px}.OtpErrorMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpNoticeMessage{color:var(--emw--color-primary, #f9c408);font-weight:bold}.LastWarningMessage{color:var(--emw--color-error, #dd3434);font-weight:bold}.OtpLoaderContainer{width:100%;display:flex;justify-content:center;align-items:center;padding:20px 0}.OtpLoader{width:48px;height:48px;border:5px solid var(--emw--color-secondary, #b3d8ff);border-bottom-color:var(--emw--color-primary, #007bff);border-radius:50%;display:inline-block;box-sizing:border-box;animation:rotation 1s linear infinite}@keyframes rotation{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.OtpTimer{color:var(--emw--color-typography, #fff);font-size:var(--emw--font-size-small, 12px);opacity:0.8}@container (max-width: 500px){.OtpContent{padding:var(--emw--spacing-small, 10px)}.OtpField input{width:40px;font-size:28px;margin:4px}}');
|
|
3816
3844
|
}
|
|
3817
|
-
function
|
|
3845
|
+
function Qt(e, t, r) {
|
|
3818
3846
|
const n = e.slice();
|
|
3819
3847
|
return n[69] = t[r], n[70] = t, n[71] = r, n;
|
|
3820
3848
|
}
|
|
3821
|
-
function
|
|
3849
|
+
function ao(e) {
|
|
3822
3850
|
let t, r, n, i, o, a, s, u, l, h, c, d, _, m, g, E, S, P = (
|
|
3823
3851
|
/*$_*/
|
|
3824
3852
|
e[19]("channelSMS") + ""
|
|
3825
|
-
), I, D, M, N,
|
|
3853
|
+
), I, D, M, N, ee, q, se, pe, ae, B, U, W, de, me, ge = (
|
|
3826
3854
|
/*$_*/
|
|
3827
3855
|
e[19]("channelEmail") + ""
|
|
3828
|
-
), Q,
|
|
3829
|
-
function
|
|
3856
|
+
), Q, Ie, J, $, te, be, Ee;
|
|
3857
|
+
function ve(b, A) {
|
|
3830
3858
|
return (
|
|
3831
3859
|
/*showResendOtp*/
|
|
3832
|
-
b[9] ?
|
|
3860
|
+
b[9] ? co : (
|
|
3833
3861
|
/*showOtpInput*/
|
|
3834
|
-
b[12] ?
|
|
3862
|
+
b[12] ? uo : ho
|
|
3835
3863
|
)
|
|
3836
3864
|
);
|
|
3837
3865
|
}
|
|
3838
|
-
let
|
|
3866
|
+
let le = ve(e), Y = le(e), z = (
|
|
3839
3867
|
/*selectedChannel*/
|
|
3840
|
-
e[0] &&
|
|
3868
|
+
e[0] && Yt(e)
|
|
3841
3869
|
);
|
|
3842
|
-
function
|
|
3870
|
+
function Ne(b, A) {
|
|
3843
3871
|
if (
|
|
3844
3872
|
/*isLoading*/
|
|
3845
3873
|
b[3] && /*showOtpInput*/
|
|
3846
3874
|
b[12]
|
|
3847
3875
|
)
|
|
3848
|
-
return
|
|
3876
|
+
return yo;
|
|
3849
3877
|
if (
|
|
3850
3878
|
/*showOtpInput*/
|
|
3851
3879
|
b[12] && /*config*/
|
|
3852
3880
|
b[4]
|
|
3853
3881
|
)
|
|
3854
|
-
return
|
|
3882
|
+
return bo;
|
|
3855
3883
|
}
|
|
3856
|
-
let he =
|
|
3857
|
-
function
|
|
3884
|
+
let he = Ne(e), V = he && he(e);
|
|
3885
|
+
function Re(b, A) {
|
|
3858
3886
|
if (
|
|
3859
3887
|
/*showResendOtp*/
|
|
3860
3888
|
b[9]
|
|
3861
3889
|
)
|
|
3862
|
-
return
|
|
3890
|
+
return Eo;
|
|
3863
3891
|
if (
|
|
3864
3892
|
/*showOtpInput*/
|
|
3865
3893
|
b[12] && /*config*/
|
|
3866
3894
|
b[4]
|
|
3867
3895
|
)
|
|
3868
|
-
return
|
|
3896
|
+
return _o;
|
|
3869
3897
|
}
|
|
3870
|
-
let
|
|
3898
|
+
let ce = Re(e), G = ce && ce(e);
|
|
3871
3899
|
return {
|
|
3872
3900
|
c() {
|
|
3873
|
-
t = O("div"),
|
|
3901
|
+
t = O("div"), Y.c(), r = F(), n = O("div"), i = O("label"), o = O("div"), a = F(), s = O("input"), l = F(), h = O("div"), c = re("svg"), d = re("path"), _ = re("circle"), m = re("circle"), g = re("circle"), E = F(), S = O("span"), I = k(P), D = F(), M = O("label"), N = O("div"), ee = F(), q = O("input"), pe = F(), ae = O("div"), B = re("svg"), U = re("rect"), W = re("path"), de = F(), me = O("span"), Q = k(ge), Ie = F(), z && z.c(), J = F(), V && V.c(), $ = F(), te = O("div"), G && G.c(), p(t, "class", "OtpDescription"), p(o, "class", "RadioIndicator"), ne(
|
|
3874
3902
|
o,
|
|
3875
3903
|
"checked",
|
|
3876
3904
|
/*selectedChannel*/
|
|
@@ -3879,22 +3907,22 @@ function no(e) {
|
|
|
3879
3907
|
), p(s, "type", "radio"), p(s, "name", "channel"), s.value = /*channels*/
|
|
3880
3908
|
e[20].SMS, s.checked = u = /*selectedChannel*/
|
|
3881
3909
|
e[0] === /*channels*/
|
|
3882
|
-
e[20].SMS, p(d, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), p(_, "cx", "9"), p(_, "cy", "11"), p(_, "r", "0.5"), p(_, "fill", "currentColor"), p(m, "cx", "12"), p(m, "cy", "11"), p(m, "r", "0.5"), p(m, "fill", "currentColor"), p(g, "cx", "15"), p(g, "cy", "11"), p(g, "r", "0.5"), p(g, "fill", "currentColor"), p(c, "xmlns", "http://www.w3.org/2000/svg"), p(c, "width", "24"), p(c, "height", "24"), p(c, "viewBox", "0 0 24 24"), p(c, "fill", "none"), p(c, "stroke", "currentColor"), p(c, "stroke-width", "2"), p(c, "stroke-linecap", "round"), p(c, "stroke-linejoin", "round"), p(h, "class", "ChannelContent"), p(i, "class", "ChannelCheckbox"),
|
|
3910
|
+
e[20].SMS, p(d, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), p(_, "cx", "9"), p(_, "cy", "11"), p(_, "r", "0.5"), p(_, "fill", "currentColor"), p(m, "cx", "12"), p(m, "cy", "11"), p(m, "r", "0.5"), p(m, "fill", "currentColor"), p(g, "cx", "15"), p(g, "cy", "11"), p(g, "r", "0.5"), p(g, "fill", "currentColor"), p(c, "xmlns", "http://www.w3.org/2000/svg"), p(c, "width", "24"), p(c, "height", "24"), p(c, "viewBox", "0 0 24 24"), p(c, "fill", "none"), p(c, "stroke", "currentColor"), p(c, "stroke-width", "2"), p(c, "stroke-linecap", "round"), p(c, "stroke-linejoin", "round"), p(h, "class", "ChannelContent"), p(i, "class", "ChannelCheckbox"), ne(
|
|
3883
3911
|
i,
|
|
3884
3912
|
"selected",
|
|
3885
3913
|
/*selectedChannel*/
|
|
3886
3914
|
e[0] === /*channels*/
|
|
3887
3915
|
e[20].SMS
|
|
3888
|
-
), p(N, "class", "RadioIndicator"),
|
|
3916
|
+
), p(N, "class", "RadioIndicator"), ne(
|
|
3889
3917
|
N,
|
|
3890
3918
|
"checked",
|
|
3891
3919
|
/*selectedChannel*/
|
|
3892
3920
|
e[0] === /*channels*/
|
|
3893
3921
|
e[20].EMAIL
|
|
3894
3922
|
), p(q, "type", "radio"), p(q, "name", "channel"), q.value = /*channels*/
|
|
3895
|
-
e[20].EMAIL, q.checked =
|
|
3923
|
+
e[20].EMAIL, q.checked = se = /*selectedChannel*/
|
|
3896
3924
|
e[0] === /*channels*/
|
|
3897
|
-
e[20].EMAIL, p(U, "x", "2"), p(U, "y", "4"), p(U, "width", "20"), p(U, "height", "16"), p(U, "rx", "2"), p(W, "d", "m2 7 10 6 10-6"), p(B, "xmlns", "http://www.w3.org/2000/svg"), p(B, "width", "24"), p(B, "height", "24"), p(B, "viewBox", "0 0 24 24"), p(B, "fill", "none"), p(B, "stroke", "currentColor"), p(B, "stroke-width", "2"), p(B, "stroke-linecap", "round"), p(B, "stroke-linejoin", "round"), p(
|
|
3925
|
+
e[20].EMAIL, p(U, "x", "2"), p(U, "y", "4"), p(U, "width", "20"), p(U, "height", "16"), p(U, "rx", "2"), p(W, "d", "m2 7 10 6 10-6"), p(B, "xmlns", "http://www.w3.org/2000/svg"), p(B, "width", "24"), p(B, "height", "24"), p(B, "viewBox", "0 0 24 24"), p(B, "fill", "none"), p(B, "stroke", "currentColor"), p(B, "stroke-width", "2"), p(B, "stroke-linecap", "round"), p(B, "stroke-linejoin", "round"), p(ae, "class", "ChannelContent"), p(M, "class", "ChannelCheckbox"), ne(
|
|
3898
3926
|
M,
|
|
3899
3927
|
"selected",
|
|
3900
3928
|
/*selectedChannel*/
|
|
@@ -3903,14 +3931,14 @@ function no(e) {
|
|
|
3903
3931
|
), p(n, "class", "ChannelSelection"), p(te, "class", "OtpActionButtons");
|
|
3904
3932
|
},
|
|
3905
3933
|
m(b, A) {
|
|
3906
|
-
C(b, t, A),
|
|
3907
|
-
|
|
3934
|
+
C(b, t, A), Y.m(t, null), C(b, r, A), C(b, n, A), y(n, i), y(i, o), y(i, a), y(i, s), y(i, l), y(i, h), y(h, c), y(c, d), y(c, _), y(c, m), y(c, g), y(h, E), y(h, S), y(S, I), y(n, D), y(n, M), y(M, N), y(M, ee), y(M, q), y(M, pe), y(M, ae), y(ae, B), y(B, U), y(B, W), y(ae, de), y(ae, me), y(me, Q), C(b, Ie, A), z && z.m(b, A), C(b, J, A), V && V.m(b, A), C(b, $, A), C(b, te, A), G && G.m(te, null), be || (Ee = [
|
|
3935
|
+
ue(
|
|
3908
3936
|
s,
|
|
3909
3937
|
"change",
|
|
3910
3938
|
/*change_handler*/
|
|
3911
3939
|
e[39]
|
|
3912
3940
|
),
|
|
3913
|
-
|
|
3941
|
+
ue(
|
|
3914
3942
|
q,
|
|
3915
3943
|
"change",
|
|
3916
3944
|
/*change_handler_1*/
|
|
@@ -3919,8 +3947,8 @@ function no(e) {
|
|
|
3919
3947
|
], be = !0);
|
|
3920
3948
|
},
|
|
3921
3949
|
p(b, A) {
|
|
3922
|
-
|
|
3923
|
-
1048577 &&
|
|
3950
|
+
le === (le = ve(b)) && Y ? Y.p(b, A) : (Y.d(1), Y = le(b), Y && (Y.c(), Y.m(t, null))), A[0] & /*selectedChannel, channels*/
|
|
3951
|
+
1048577 && ne(
|
|
3924
3952
|
o,
|
|
3925
3953
|
"checked",
|
|
3926
3954
|
/*selectedChannel*/
|
|
@@ -3931,41 +3959,41 @@ function no(e) {
|
|
|
3931
3959
|
b[0] === /*channels*/
|
|
3932
3960
|
b[20].SMS) && (s.checked = u), A[0] & /*$_*/
|
|
3933
3961
|
524288 && P !== (P = /*$_*/
|
|
3934
|
-
b[19]("channelSMS") + "") &&
|
|
3935
|
-
1048577 &&
|
|
3962
|
+
b[19]("channelSMS") + "") && j(I, P), A[0] & /*selectedChannel, channels*/
|
|
3963
|
+
1048577 && ne(
|
|
3936
3964
|
i,
|
|
3937
3965
|
"selected",
|
|
3938
3966
|
/*selectedChannel*/
|
|
3939
3967
|
b[0] === /*channels*/
|
|
3940
3968
|
b[20].SMS
|
|
3941
3969
|
), A[0] & /*selectedChannel, channels*/
|
|
3942
|
-
1048577 &&
|
|
3970
|
+
1048577 && ne(
|
|
3943
3971
|
N,
|
|
3944
3972
|
"checked",
|
|
3945
3973
|
/*selectedChannel*/
|
|
3946
3974
|
b[0] === /*channels*/
|
|
3947
3975
|
b[20].EMAIL
|
|
3948
3976
|
), A[0] & /*selectedChannel*/
|
|
3949
|
-
1 &&
|
|
3977
|
+
1 && se !== (se = /*selectedChannel*/
|
|
3950
3978
|
b[0] === /*channels*/
|
|
3951
|
-
b[20].EMAIL) && (q.checked =
|
|
3979
|
+
b[20].EMAIL) && (q.checked = se), A[0] & /*$_*/
|
|
3952
3980
|
524288 && ge !== (ge = /*$_*/
|
|
3953
|
-
b[19]("channelEmail") + "") &&
|
|
3954
|
-
1048577 &&
|
|
3981
|
+
b[19]("channelEmail") + "") && j(Q, ge), A[0] & /*selectedChannel, channels*/
|
|
3982
|
+
1048577 && ne(
|
|
3955
3983
|
M,
|
|
3956
3984
|
"selected",
|
|
3957
3985
|
/*selectedChannel*/
|
|
3958
3986
|
b[0] === /*channels*/
|
|
3959
3987
|
b[20].EMAIL
|
|
3960
3988
|
), /*selectedChannel*/
|
|
3961
|
-
b[0] ?
|
|
3989
|
+
b[0] ? z ? z.p(b, A) : (z = Yt(b), z.c(), z.m(J.parentNode, J)) : z && (z.d(1), z = null), he === (he = Ne(b)) && V ? V.p(b, A) : (V && V.d(1), V = he && he(b), V && (V.c(), V.m($.parentNode, $))), ce === (ce = Re(b)) && G ? G.p(b, A) : (G && G.d(1), G = ce && ce(b), G && (G.c(), G.m(te, null)));
|
|
3962
3990
|
},
|
|
3963
3991
|
d(b) {
|
|
3964
|
-
b && (H(t), H(r), H(n), H(
|
|
3992
|
+
b && (H(t), H(r), H(n), H(Ie), H(J), H($), H(te)), Y.d(), z && z.d(b), V && V.d(b), G && G.d(), be = !1, ye(Ee);
|
|
3965
3993
|
}
|
|
3966
3994
|
};
|
|
3967
3995
|
}
|
|
3968
|
-
function
|
|
3996
|
+
function lo(e) {
|
|
3969
3997
|
let t, r, n, i, o, a, s = (
|
|
3970
3998
|
/*$_*/
|
|
3971
3999
|
e[19]("errorHeader") + ""
|
|
@@ -3975,13 +4003,13 @@ function io(e) {
|
|
|
3975
4003
|
), g, E, S;
|
|
3976
4004
|
return {
|
|
3977
4005
|
c() {
|
|
3978
|
-
t = O("div"), r = O("div"), n =
|
|
4006
|
+
t = O("div"), r = O("div"), n = re("svg"), i = re("path"), o = F(), a = O("h2"), u = k(s), l = F(), h = O("p"), c = k(
|
|
3979
4007
|
/*errorMessage*/
|
|
3980
4008
|
e[8]
|
|
3981
|
-
), d =
|
|
4009
|
+
), d = F(), _ = O("button"), g = k(m), p(i, "d", "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"), p(n, "xmlns", "http://www.w3.org/2000/svg"), p(n, "viewBox", "0 0 512 512"), p(r, "class", "OtpErrorHeader"), p(_, "class", "OtpButton error"), p(t, "class", "OtpError");
|
|
3982
4010
|
},
|
|
3983
4011
|
m(P, I) {
|
|
3984
|
-
C(P, t, I), y(t, r), y(r, n), y(n, i), y(r, o), y(r, a), y(a, u), y(t, l), y(t, h), y(h, c), y(t, d), y(t, _), y(_, g), E || (S =
|
|
4012
|
+
C(P, t, I), y(t, r), y(r, n), y(n, i), y(r, o), y(r, a), y(a, u), y(t, l), y(t, h), y(h, c), y(t, d), y(t, _), y(_, g), E || (S = ue(
|
|
3985
4013
|
_,
|
|
3986
4014
|
"click",
|
|
3987
4015
|
/*manualClosePopup*/
|
|
@@ -3991,35 +4019,35 @@ function io(e) {
|
|
|
3991
4019
|
p(P, I) {
|
|
3992
4020
|
I[0] & /*$_*/
|
|
3993
4021
|
524288 && s !== (s = /*$_*/
|
|
3994
|
-
P[19]("errorHeader") + "") &&
|
|
3995
|
-
256 &&
|
|
4022
|
+
P[19]("errorHeader") + "") && j(u, s), I[0] & /*errorMessage*/
|
|
4023
|
+
256 && j(
|
|
3996
4024
|
c,
|
|
3997
4025
|
/*errorMessage*/
|
|
3998
4026
|
P[8]
|
|
3999
4027
|
), I[0] & /*$_*/
|
|
4000
4028
|
524288 && m !== (m = /*$_*/
|
|
4001
|
-
P[19]("close") + "") &&
|
|
4029
|
+
P[19]("close") + "") && j(g, m);
|
|
4002
4030
|
},
|
|
4003
4031
|
d(P) {
|
|
4004
4032
|
P && H(t), E = !1, S();
|
|
4005
4033
|
}
|
|
4006
4034
|
};
|
|
4007
4035
|
}
|
|
4008
|
-
function
|
|
4036
|
+
function uo(e) {
|
|
4009
4037
|
let t, r, n, i;
|
|
4010
4038
|
function o(l, h) {
|
|
4011
4039
|
return (
|
|
4012
4040
|
/*isLastWarning*/
|
|
4013
|
-
l[10] ?
|
|
4041
|
+
l[10] ? po : fo
|
|
4014
4042
|
);
|
|
4015
4043
|
}
|
|
4016
4044
|
let a = o(e), s = a(e), u = (
|
|
4017
4045
|
/*hasErrors*/
|
|
4018
|
-
e[6] &&
|
|
4046
|
+
e[6] && Jt(e)
|
|
4019
4047
|
);
|
|
4020
4048
|
return {
|
|
4021
4049
|
c() {
|
|
4022
|
-
t = O("p"), s.c(), n =
|
|
4050
|
+
t = O("p"), s.c(), n = F(), u && u.c(), i = Wr(), p(t, "class", r = /*isLastWarning*/
|
|
4023
4051
|
e[10] ? "LastWarningMessage" : "");
|
|
4024
4052
|
},
|
|
4025
4053
|
m(l, h) {
|
|
@@ -4029,14 +4057,14 @@ function oo(e) {
|
|
|
4029
4057
|
a === (a = o(l)) && s ? s.p(l, h) : (s.d(1), s = a(l), s && (s.c(), s.m(t, null))), h[0] & /*isLastWarning*/
|
|
4030
4058
|
1024 && r !== (r = /*isLastWarning*/
|
|
4031
4059
|
l[10] ? "LastWarningMessage" : "") && p(t, "class", r), /*hasErrors*/
|
|
4032
|
-
l[6] ? u ? u.p(l, h) : (u =
|
|
4060
|
+
l[6] ? u ? u.p(l, h) : (u = Jt(l), u.c(), u.m(i.parentNode, i)) : u && (u.d(1), u = null);
|
|
4033
4061
|
},
|
|
4034
4062
|
d(l) {
|
|
4035
4063
|
l && (H(t), H(n), H(i)), s.d(), u && u.d(l);
|
|
4036
4064
|
}
|
|
4037
4065
|
};
|
|
4038
4066
|
}
|
|
4039
|
-
function
|
|
4067
|
+
function ho(e) {
|
|
4040
4068
|
let t, r = (
|
|
4041
4069
|
/*$_*/
|
|
4042
4070
|
(e[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + ""
|
|
@@ -4051,14 +4079,14 @@ function so(e) {
|
|
|
4051
4079
|
p(i, o) {
|
|
4052
4080
|
o[0] & /*$_*/
|
|
4053
4081
|
524288 && r !== (r = /*$_*/
|
|
4054
|
-
(i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") &&
|
|
4082
|
+
(i[19]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && j(n, r);
|
|
4055
4083
|
},
|
|
4056
4084
|
d(i) {
|
|
4057
4085
|
i && H(t);
|
|
4058
4086
|
}
|
|
4059
4087
|
};
|
|
4060
4088
|
}
|
|
4061
|
-
function
|
|
4089
|
+
function co(e) {
|
|
4062
4090
|
let t, r = (
|
|
4063
4091
|
/*$_*/
|
|
4064
4092
|
e[19]("otpExpiredMessage") + ""
|
|
@@ -4073,14 +4101,14 @@ function ao(e) {
|
|
|
4073
4101
|
p(i, o) {
|
|
4074
4102
|
o[0] & /*$_*/
|
|
4075
4103
|
524288 && r !== (r = /*$_*/
|
|
4076
|
-
i[19]("otpExpiredMessage") + "") &&
|
|
4104
|
+
i[19]("otpExpiredMessage") + "") && j(n, r);
|
|
4077
4105
|
},
|
|
4078
4106
|
d(i) {
|
|
4079
4107
|
i && H(t);
|
|
4080
4108
|
}
|
|
4081
4109
|
};
|
|
4082
4110
|
}
|
|
4083
|
-
function
|
|
4111
|
+
function fo(e) {
|
|
4084
4112
|
let t = (
|
|
4085
4113
|
/*$_*/
|
|
4086
4114
|
e[19]("popupMessage") + ""
|
|
@@ -4095,14 +4123,14 @@ function lo(e) {
|
|
|
4095
4123
|
p(n, i) {
|
|
4096
4124
|
i[0] & /*$_*/
|
|
4097
4125
|
524288 && t !== (t = /*$_*/
|
|
4098
|
-
n[19]("popupMessage") + "") &&
|
|
4126
|
+
n[19]("popupMessage") + "") && j(r, t);
|
|
4099
4127
|
},
|
|
4100
4128
|
d(n) {
|
|
4101
4129
|
n && H(r);
|
|
4102
4130
|
}
|
|
4103
4131
|
};
|
|
4104
4132
|
}
|
|
4105
|
-
function
|
|
4133
|
+
function po(e) {
|
|
4106
4134
|
let t = (
|
|
4107
4135
|
/*$_*/
|
|
4108
4136
|
e[19]("popupMessageLastWarning") + ""
|
|
@@ -4117,14 +4145,14 @@ function uo(e) {
|
|
|
4117
4145
|
p(n, i) {
|
|
4118
4146
|
i[0] & /*$_*/
|
|
4119
4147
|
524288 && t !== (t = /*$_*/
|
|
4120
|
-
n[19]("popupMessageLastWarning") + "") &&
|
|
4148
|
+
n[19]("popupMessageLastWarning") + "") && j(r, t);
|
|
4121
4149
|
},
|
|
4122
4150
|
d(n) {
|
|
4123
4151
|
n && H(r);
|
|
4124
4152
|
}
|
|
4125
4153
|
};
|
|
4126
4154
|
}
|
|
4127
|
-
function
|
|
4155
|
+
function Jt(e) {
|
|
4128
4156
|
let t, r;
|
|
4129
4157
|
return {
|
|
4130
4158
|
c() {
|
|
@@ -4138,7 +4166,7 @@ function qt(e) {
|
|
|
4138
4166
|
},
|
|
4139
4167
|
p(n, i) {
|
|
4140
4168
|
i[0] & /*errorMessage*/
|
|
4141
|
-
256 &&
|
|
4169
|
+
256 && j(
|
|
4142
4170
|
r,
|
|
4143
4171
|
/*errorMessage*/
|
|
4144
4172
|
n[8]
|
|
@@ -4149,24 +4177,24 @@ function qt(e) {
|
|
|
4149
4177
|
}
|
|
4150
4178
|
};
|
|
4151
4179
|
}
|
|
4152
|
-
function
|
|
4180
|
+
function Yt(e) {
|
|
4153
4181
|
let t, r, n, i;
|
|
4154
4182
|
function o(u, l) {
|
|
4155
4183
|
return (
|
|
4156
4184
|
/*currentChannelTimer*/
|
|
4157
|
-
u[17] > 0 ?
|
|
4185
|
+
u[17] > 0 ? go : mo
|
|
4158
4186
|
);
|
|
4159
4187
|
}
|
|
4160
4188
|
let a = o(e), s = a(e);
|
|
4161
4189
|
return {
|
|
4162
4190
|
c() {
|
|
4163
4191
|
t = O("button"), s.c(), p(t, "class", "OtpButton"), t.disabled = r = !/*canSubmitChannel*/
|
|
4164
|
-
e[18],
|
|
4192
|
+
e[18], ne(t, "disabled", !/*canSubmitChannel*/
|
|
4165
4193
|
e[18] || /*waitingForConfig*/
|
|
4166
4194
|
e[16]);
|
|
4167
4195
|
},
|
|
4168
4196
|
m(u, l) {
|
|
4169
|
-
C(u, t, l), s.m(t, null), n || (i =
|
|
4197
|
+
C(u, t, l), s.m(t, null), n || (i = ue(
|
|
4170
4198
|
t,
|
|
4171
4199
|
"click",
|
|
4172
4200
|
/*handleChannelSubmit*/
|
|
@@ -4177,7 +4205,7 @@ function Qt(e) {
|
|
|
4177
4205
|
a === (a = o(u)) && s ? s.p(u, l) : (s.d(1), s = a(u), s && (s.c(), s.m(t, null))), l[0] & /*canSubmitChannel*/
|
|
4178
4206
|
262144 && r !== (r = !/*canSubmitChannel*/
|
|
4179
4207
|
u[18]) && (t.disabled = r), l[0] & /*canSubmitChannel, waitingForConfig*/
|
|
4180
|
-
327680 &&
|
|
4208
|
+
327680 && ne(t, "disabled", !/*canSubmitChannel*/
|
|
4181
4209
|
u[18] || /*waitingForConfig*/
|
|
4182
4210
|
u[16]);
|
|
4183
4211
|
},
|
|
@@ -4186,7 +4214,7 @@ function Qt(e) {
|
|
|
4186
4214
|
}
|
|
4187
4215
|
};
|
|
4188
4216
|
}
|
|
4189
|
-
function
|
|
4217
|
+
function mo(e) {
|
|
4190
4218
|
let t = (
|
|
4191
4219
|
/*$_*/
|
|
4192
4220
|
e[19]("sendCode") + ""
|
|
@@ -4201,14 +4229,14 @@ function ho(e) {
|
|
|
4201
4229
|
p(n, i) {
|
|
4202
4230
|
i[0] & /*$_*/
|
|
4203
4231
|
524288 && t !== (t = /*$_*/
|
|
4204
|
-
n[19]("sendCode") + "") &&
|
|
4232
|
+
n[19]("sendCode") + "") && j(r, t);
|
|
4205
4233
|
},
|
|
4206
4234
|
d(n) {
|
|
4207
4235
|
n && H(r);
|
|
4208
4236
|
}
|
|
4209
4237
|
};
|
|
4210
4238
|
}
|
|
4211
|
-
function
|
|
4239
|
+
function go(e) {
|
|
4212
4240
|
let t = (
|
|
4213
4241
|
/*$_*/
|
|
4214
4242
|
e[19]("waitSeconds") + ""
|
|
@@ -4226,8 +4254,8 @@ function co(e) {
|
|
|
4226
4254
|
p(a, s) {
|
|
4227
4255
|
s[0] & /*$_*/
|
|
4228
4256
|
524288 && t !== (t = /*$_*/
|
|
4229
|
-
a[19]("waitSeconds") + "") &&
|
|
4230
|
-
131072 &&
|
|
4257
|
+
a[19]("waitSeconds") + "") && j(r, t), s[0] & /*currentChannelTimer*/
|
|
4258
|
+
131072 && j(
|
|
4231
4259
|
i,
|
|
4232
4260
|
/*currentChannelTimer*/
|
|
4233
4261
|
a[17]
|
|
@@ -4238,7 +4266,7 @@ function co(e) {
|
|
|
4238
4266
|
}
|
|
4239
4267
|
};
|
|
4240
4268
|
}
|
|
4241
|
-
function
|
|
4269
|
+
function bo(e) {
|
|
4242
4270
|
let t, r, n = (
|
|
4243
4271
|
/*$_*/
|
|
4244
4272
|
e[19]("timeRemaining") + ""
|
|
@@ -4251,15 +4279,15 @@ function fo(e) {
|
|
|
4251
4279
|
), s, u, l = (
|
|
4252
4280
|
/*$_*/
|
|
4253
4281
|
e[19]("minutes") + ""
|
|
4254
|
-
), h, c, d, _ =
|
|
4282
|
+
), h, c, d, _ = It(
|
|
4255
4283
|
/*otp*/
|
|
4256
4284
|
e[2]
|
|
4257
4285
|
), m = [];
|
|
4258
4286
|
for (let g = 0; g < _.length; g += 1)
|
|
4259
|
-
m[g] =
|
|
4287
|
+
m[g] = Kt(Qt(e, _, g));
|
|
4260
4288
|
return {
|
|
4261
4289
|
c() {
|
|
4262
|
-
t = O("div"), r = O("div"), i = k(n), o =
|
|
4290
|
+
t = O("div"), r = O("div"), i = k(n), o = F(), s = k(a), u = F(), h = k(l), c = F(), d = O("div");
|
|
4263
4291
|
for (let g = 0; g < m.length; g += 1)
|
|
4264
4292
|
m[g].c();
|
|
4265
4293
|
p(r, "class", "OtpTimer"), p(d, "class", "OtpField"), p(t, "class", "OtpFieldWrapper");
|
|
@@ -4272,23 +4300,23 @@ function fo(e) {
|
|
|
4272
4300
|
p(g, E) {
|
|
4273
4301
|
if (E[0] & /*$_*/
|
|
4274
4302
|
524288 && n !== (n = /*$_*/
|
|
4275
|
-
g[19]("timeRemaining") + "") &&
|
|
4303
|
+
g[19]("timeRemaining") + "") && j(i, n), E[0] & /*timeLeft*/
|
|
4276
4304
|
32 && a !== (a = /*formatTime*/
|
|
4277
4305
|
g[23](
|
|
4278
4306
|
/*timeLeft*/
|
|
4279
4307
|
g[5]
|
|
4280
|
-
) + "") &&
|
|
4308
|
+
) + "") && j(s, a), E[0] & /*$_*/
|
|
4281
4309
|
524288 && l !== (l = /*$_*/
|
|
4282
|
-
g[19]("minutes") + "") &&
|
|
4310
|
+
g[19]("minutes") + "") && j(h, l), E[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
|
|
4283
4311
|
117458964) {
|
|
4284
|
-
_ =
|
|
4312
|
+
_ = It(
|
|
4285
4313
|
/*otp*/
|
|
4286
4314
|
g[2]
|
|
4287
4315
|
);
|
|
4288
4316
|
let S;
|
|
4289
4317
|
for (S = 0; S < _.length; S += 1) {
|
|
4290
|
-
const P =
|
|
4291
|
-
m[S] ? m[S].p(P, E) : (m[S] =
|
|
4318
|
+
const P = Qt(g, _, S);
|
|
4319
|
+
m[S] ? m[S].p(P, E) : (m[S] = Kt(P), m[S].c(), m[S].m(d, null));
|
|
4292
4320
|
}
|
|
4293
4321
|
for (; S < m.length; S += 1)
|
|
4294
4322
|
m[S].d(1);
|
|
@@ -4296,11 +4324,11 @@ function fo(e) {
|
|
|
4296
4324
|
}
|
|
4297
4325
|
},
|
|
4298
4326
|
d(g) {
|
|
4299
|
-
g && H(t),
|
|
4327
|
+
g && H(t), Xr(m, g);
|
|
4300
4328
|
}
|
|
4301
4329
|
};
|
|
4302
4330
|
}
|
|
4303
|
-
function
|
|
4331
|
+
function yo(e) {
|
|
4304
4332
|
let t;
|
|
4305
4333
|
return {
|
|
4306
4334
|
c() {
|
|
@@ -4309,13 +4337,13 @@ function po(e) {
|
|
|
4309
4337
|
m(r, n) {
|
|
4310
4338
|
C(r, t, n);
|
|
4311
4339
|
},
|
|
4312
|
-
p:
|
|
4340
|
+
p: K,
|
|
4313
4341
|
d(r) {
|
|
4314
4342
|
r && H(t);
|
|
4315
4343
|
}
|
|
4316
4344
|
};
|
|
4317
4345
|
}
|
|
4318
|
-
function
|
|
4346
|
+
function Kt(e) {
|
|
4319
4347
|
let t, r, n, i = (
|
|
4320
4348
|
/*index*/
|
|
4321
4349
|
e[71]
|
|
@@ -4359,9 +4387,9 @@ function Jt(e) {
|
|
|
4359
4387
|
},
|
|
4360
4388
|
m(c, d) {
|
|
4361
4389
|
C(c, t, d), s(), o || (a = [
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4390
|
+
ue(t, "input", l),
|
|
4391
|
+
ue(t, "keydown", h),
|
|
4392
|
+
ue(
|
|
4365
4393
|
t,
|
|
4366
4394
|
"paste",
|
|
4367
4395
|
/*handleOnPasteOtp*/
|
|
@@ -4383,11 +4411,11 @@ function Jt(e) {
|
|
|
4383
4411
|
e[71], s());
|
|
4384
4412
|
},
|
|
4385
4413
|
d(c) {
|
|
4386
|
-
c && H(t), u(), o = !1,
|
|
4414
|
+
c && H(t), u(), o = !1, ye(a);
|
|
4387
4415
|
}
|
|
4388
4416
|
};
|
|
4389
4417
|
}
|
|
4390
|
-
function
|
|
4418
|
+
function _o(e) {
|
|
4391
4419
|
let t, r = (
|
|
4392
4420
|
/*$_*/
|
|
4393
4421
|
e[19]("submit") + ""
|
|
@@ -4401,7 +4429,7 @@ function mo(e) {
|
|
|
4401
4429
|
e[15];
|
|
4402
4430
|
},
|
|
4403
4431
|
m(s, u) {
|
|
4404
|
-
C(s, t, u), y(t, n), o || (a =
|
|
4432
|
+
C(s, t, u), y(t, n), o || (a = ue(
|
|
4405
4433
|
t,
|
|
4406
4434
|
"click",
|
|
4407
4435
|
/*submitOtp*/
|
|
@@ -4411,7 +4439,7 @@ function mo(e) {
|
|
|
4411
4439
|
p(s, u) {
|
|
4412
4440
|
u[0] & /*$_*/
|
|
4413
4441
|
524288 && r !== (r = /*$_*/
|
|
4414
|
-
s[19]("submit") + "") &&
|
|
4442
|
+
s[19]("submit") + "") && j(n, r), u[0] & /*otp, config, isSubmitting, maxAttempts*/
|
|
4415
4443
|
40980 && i !== (i = /*otp*/
|
|
4416
4444
|
s[2].join("").length !== /*config*/
|
|
4417
4445
|
s[4].inputLength || /*isSubmitting*/
|
|
@@ -4423,7 +4451,7 @@ function mo(e) {
|
|
|
4423
4451
|
}
|
|
4424
4452
|
};
|
|
4425
4453
|
}
|
|
4426
|
-
function
|
|
4454
|
+
function Eo(e) {
|
|
4427
4455
|
let t, r = (
|
|
4428
4456
|
/*$_*/
|
|
4429
4457
|
e[19]("resendOtp") + ""
|
|
@@ -4433,7 +4461,7 @@ function go(e) {
|
|
|
4433
4461
|
t = O("button"), n = k(r), p(t, "class", "OtpButton");
|
|
4434
4462
|
},
|
|
4435
4463
|
m(a, s) {
|
|
4436
|
-
C(a, t, s), y(t, n), i || (o =
|
|
4464
|
+
C(a, t, s), y(t, n), i || (o = ue(
|
|
4437
4465
|
t,
|
|
4438
4466
|
"click",
|
|
4439
4467
|
/*handleResendOtp*/
|
|
@@ -4443,19 +4471,19 @@ function go(e) {
|
|
|
4443
4471
|
p(a, s) {
|
|
4444
4472
|
s[0] & /*$_*/
|
|
4445
4473
|
524288 && r !== (r = /*$_*/
|
|
4446
|
-
a[19]("resendOtp") + "") &&
|
|
4474
|
+
a[19]("resendOtp") + "") && j(n, r);
|
|
4447
4475
|
},
|
|
4448
4476
|
d(a) {
|
|
4449
4477
|
a && H(t), i = !1, o();
|
|
4450
4478
|
}
|
|
4451
4479
|
};
|
|
4452
4480
|
}
|
|
4453
|
-
function
|
|
4481
|
+
function vo(e) {
|
|
4454
4482
|
let t;
|
|
4455
4483
|
function r(o, a) {
|
|
4456
4484
|
return (
|
|
4457
4485
|
/*hasConfigErrors*/
|
|
4458
|
-
o[7] ?
|
|
4486
|
+
o[7] ? lo : ao
|
|
4459
4487
|
);
|
|
4460
4488
|
}
|
|
4461
4489
|
let n = r(e), i = n(e);
|
|
@@ -4469,51 +4497,51 @@ function bo(e) {
|
|
|
4469
4497
|
p(o, a) {
|
|
4470
4498
|
n === (n = r(o)) && i ? i.p(o, a) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
|
|
4471
4499
|
},
|
|
4472
|
-
i:
|
|
4473
|
-
o:
|
|
4500
|
+
i: K,
|
|
4501
|
+
o: K,
|
|
4474
4502
|
d(o) {
|
|
4475
4503
|
o && H(t), i.d(), e[44](null);
|
|
4476
4504
|
}
|
|
4477
4505
|
};
|
|
4478
4506
|
}
|
|
4479
|
-
function
|
|
4507
|
+
function xo(e, t, r) {
|
|
4480
4508
|
let n, i, o;
|
|
4481
|
-
|
|
4482
|
-
let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session: c } = t, { translationurl: d } = t, { templateid: _ } = t, m = [], g = !0, E = null, S = 0, P = "", I = "", D = !1, M = !1, N = "",
|
|
4483
|
-
const ve = { SMS: "sms", EMAIL: "email" },
|
|
4509
|
+
jr(e, io, (f) => r(19, o = f));
|
|
4510
|
+
let { clientstyling: a = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: l = "en" } = t, { endpoint: h } = t, { session: c } = t, { translationurl: d } = t, { templateid: _ } = t, m = [], g = !0, E = null, S = 0, P = "", I = "", D = !1, M = !1, N = "", ee = "", q = "", se = !1, pe = !1, ae = !1, B = "", U = {}, W = null, de = !1, me = !1, ge = "", Q, Ie, J = [], $ = null, te = 0, be = !1, Ee = !1;
|
|
4511
|
+
const ve = { SMS: "sms", EMAIL: "email" }, le = {
|
|
4484
4512
|
MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
|
|
4485
4513
|
INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
|
|
4486
4514
|
MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
|
|
4487
4515
|
};
|
|
4488
|
-
Object.keys(
|
|
4489
|
-
|
|
4516
|
+
Object.keys(qt).forEach((f) => {
|
|
4517
|
+
Zt(f, qt[f]);
|
|
4490
4518
|
});
|
|
4491
|
-
const
|
|
4492
|
-
|
|
4493
|
-
},
|
|
4519
|
+
const Y = () => {
|
|
4520
|
+
oo(l);
|
|
4521
|
+
}, z = () => {
|
|
4494
4522
|
fetch(d).then((f) => f.json()).then((f) => {
|
|
4495
4523
|
Object.keys(f).forEach((v) => {
|
|
4496
|
-
|
|
4524
|
+
Zt(v, f[v]);
|
|
4497
4525
|
});
|
|
4498
4526
|
}).catch((f) => {
|
|
4499
4527
|
console.log(f);
|
|
4500
4528
|
});
|
|
4501
|
-
},
|
|
4529
|
+
}, Ne = async (f) => {
|
|
4502
4530
|
if (f.detail?.["x-step-up-required"]) {
|
|
4503
|
-
if (r(7, M = !1), r(6, D = !1), r(8, N = ""),
|
|
4531
|
+
if (r(7, M = !1), r(6, D = !1), r(8, N = ""), ee = f.detail["x-step-up-token"], q = f.detail.flow, !ee || !q) {
|
|
4504
4532
|
r(3, g = !1), r(7, M = !0), r(8, N = o("configError"));
|
|
4505
4533
|
return;
|
|
4506
4534
|
}
|
|
4507
4535
|
r(12, de = !1), r(3, g = !1);
|
|
4508
4536
|
}
|
|
4509
|
-
}, Fe = () => {
|
|
4510
|
-
$ && (clearInterval($), $ = null), W && (clearInterval(W), W = null), r(6, D = !1), r(7, M = !1), r(8, N = ""), r(10, pe = !1), r(2, m = []), r(4, E = null), r(3, g = !0), r(0, B = ""), r(12, de = !1), r(38, U = {});
|
|
4511
4537
|
}, he = () => {
|
|
4512
|
-
|
|
4513
|
-
}, V = () =>
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
const
|
|
4538
|
+
$ && (clearInterval($), $ = null), W && (clearInterval(W), W = null), r(6, D = !1), r(7, M = !1), r(8, N = ""), r(10, pe = !1), r(2, m = []), r(4, E = null), r(3, g = !0), r(0, B = ""), r(12, de = !1), r(38, U = {});
|
|
4539
|
+
}, V = () => {
|
|
4540
|
+
he();
|
|
4541
|
+
}, Re = () => new Promise((f, v) => {
|
|
4542
|
+
const x = new URL(`${h}/api/pam/v1/mfa/challenge/${ee}`), X = new Headers();
|
|
4543
|
+
X.append("accept", "application/json"), X.append("Content-Type", "application/json"), X.append("X-SessionId", `${c}`), r(16, Ee = !0);
|
|
4544
|
+
const st = {
|
|
4517
4545
|
method: "PATCH",
|
|
4518
4546
|
headers: X,
|
|
4519
4547
|
body: JSON.stringify({
|
|
@@ -4521,12 +4549,12 @@ function yo(e, t, r) {
|
|
|
4521
4549
|
templateId: _
|
|
4522
4550
|
})
|
|
4523
4551
|
};
|
|
4524
|
-
fetch(x,
|
|
4525
|
-
r(15,
|
|
4526
|
-
}).catch((
|
|
4552
|
+
fetch(x, st).then((Pt) => Pt.json()).then(() => {
|
|
4553
|
+
r(15, be = !1), A(), nt(), f();
|
|
4554
|
+
}).catch((Pt) => {
|
|
4527
4555
|
v();
|
|
4528
4556
|
});
|
|
4529
|
-
}),
|
|
4557
|
+
}), ce = () => {
|
|
4530
4558
|
W && clearInterval(W), W = setInterval(
|
|
4531
4559
|
() => {
|
|
4532
4560
|
const f = { ...U };
|
|
@@ -4537,61 +4565,61 @@ function yo(e, t, r) {
|
|
|
4537
4565
|
},
|
|
4538
4566
|
1e3
|
|
4539
4567
|
);
|
|
4540
|
-
},
|
|
4568
|
+
}, G = (f) => {
|
|
4541
4569
|
r(0, B = f);
|
|
4542
|
-
},
|
|
4570
|
+
}, b = async () => {
|
|
4543
4571
|
if (!(!B || U[B] && U[B] > 0)) {
|
|
4544
4572
|
r(3, g = !0), _ && _.startsWith("2fa-") && r(30, _ = `2fa-${B}`);
|
|
4545
4573
|
try {
|
|
4546
|
-
await
|
|
4574
|
+
await Re(), await ot(), r(38, U = {
|
|
4547
4575
|
...U,
|
|
4548
4576
|
[B]: 30
|
|
4549
|
-
}),
|
|
4577
|
+
}), ce(), r(12, de = !0), A(), nt();
|
|
4550
4578
|
} catch (f) {
|
|
4551
4579
|
console.error("Error submitting channel:", f), r(6, D = !0), r(8, N = o("submissionError"));
|
|
4552
4580
|
} finally {
|
|
4553
4581
|
r(3, g = !1);
|
|
4554
4582
|
}
|
|
4555
4583
|
}
|
|
4556
|
-
}, b = () => {
|
|
4557
|
-
const f = new Date(P), v = new Date(I), x = /* @__PURE__ */ new Date(), X = v.getTime() - x.getTime();
|
|
4558
|
-
ue = f.getTime() - X;
|
|
4559
|
-
const Ie = Date.now(), it = Math.max(0, Math.floor((ue - Ie) / 1e3));
|
|
4560
|
-
r(5, S = it);
|
|
4561
4584
|
}, A = () => {
|
|
4585
|
+
const f = new Date(P), v = new Date(I), x = /* @__PURE__ */ new Date(), X = v.getTime() - x.getTime();
|
|
4586
|
+
te = f.getTime() - X;
|
|
4587
|
+
const ke = Date.now(), st = Math.max(0, Math.floor((te - ke) / 1e3));
|
|
4588
|
+
r(5, S = st);
|
|
4589
|
+
}, nt = () => {
|
|
4562
4590
|
$ && clearInterval($), $ = setInterval(
|
|
4563
4591
|
() => {
|
|
4564
|
-
const f = Date.now(), v = Math.max(0, Math.floor((
|
|
4565
|
-
r(5, S = v), r(11,
|
|
4592
|
+
const f = Date.now(), v = Math.max(0, Math.floor((te - f) / 1e3));
|
|
4593
|
+
r(5, S = v), r(11, ae = v <= 0), v <= 0 && (clearInterval($), $ = null, r(9, se = !0), r(6, D = !1), r(10, pe = !1));
|
|
4566
4594
|
},
|
|
4567
4595
|
1e3
|
|
4568
4596
|
);
|
|
4569
|
-
},
|
|
4597
|
+
}, Ar = (f) => {
|
|
4570
4598
|
const v = Math.floor(f / 60), x = f % 60;
|
|
4571
4599
|
return `${v.toString().padStart(2, "0")}:${x.toString().padStart(2, "0")}`;
|
|
4572
|
-
},
|
|
4600
|
+
}, it = (f, v) => {
|
|
4573
4601
|
const x = [...m];
|
|
4574
4602
|
x[f] = v.toUpperCase(), r(2, m = x), x.join("") !== ge && r(13, me = !1);
|
|
4575
|
-
},
|
|
4603
|
+
}, Cr = (f) => {
|
|
4576
4604
|
f.preventDefault();
|
|
4577
4605
|
const x = (f.clipboardData?.getData("text")?.trim() || "").slice(0, E.inputLength).split("");
|
|
4578
|
-
r(2, m = [...x, ...Array(E.inputLength - x.length).fill("")]),
|
|
4579
|
-
},
|
|
4606
|
+
r(2, m = [...x, ...Array(E.inputLength - x.length).fill("")]), J[x.length]?.focus(), x.length === E.inputLength && Bt();
|
|
4607
|
+
}, At = (f, v) => {
|
|
4580
4608
|
const x = f.target, X = x.value;
|
|
4581
|
-
/^[a-z0-9]$/i.test(X) && (
|
|
4582
|
-
},
|
|
4609
|
+
/^[a-z0-9]$/i.test(X) && (it(v, X), J[v + 1]?.focus()), x.value = "";
|
|
4610
|
+
}, Ct = (f, v) => {
|
|
4583
4611
|
const x = f.key, X = f.ctrlKey || f.metaKey;
|
|
4584
4612
|
if (/^[a-z0-9]$/i.test(x)) {
|
|
4585
4613
|
if (X && x.toLowerCase() === "v")
|
|
4586
4614
|
return;
|
|
4587
|
-
f.preventDefault(),
|
|
4615
|
+
f.preventDefault(), it(v, x), J[v + 1]?.focus();
|
|
4588
4616
|
} else
|
|
4589
|
-
x === "Backspace" && (f.preventDefault(), m[v] !== "" &&
|
|
4590
|
-
},
|
|
4591
|
-
q == "stateful" && (
|
|
4617
|
+
x === "Backspace" && (f.preventDefault(), m[v] !== "" && it(v, ""), J[v - 1]?.focus());
|
|
4618
|
+
}, Br = () => {
|
|
4619
|
+
q == "stateful" && (Re(), r(9, se = !1));
|
|
4592
4620
|
const f = new CustomEvent("otpResendRequested");
|
|
4593
4621
|
window.dispatchEvent(f);
|
|
4594
|
-
},
|
|
4622
|
+
}, Pr = (f) => {
|
|
4595
4623
|
window.dispatchEvent(new CustomEvent(
|
|
4596
4624
|
"otpSubmitted",
|
|
4597
4625
|
{
|
|
@@ -4602,19 +4630,19 @@ function yo(e, t, r) {
|
|
|
4602
4630
|
}
|
|
4603
4631
|
}
|
|
4604
4632
|
));
|
|
4605
|
-
},
|
|
4606
|
-
const v = new URL(`/api/nwa/api/v1/mfa/challenge/${
|
|
4633
|
+
}, Mr = async (f) => {
|
|
4634
|
+
const v = new URL(`/api/nwa/api/v1/mfa/challenge/${ee}/validate`, h);
|
|
4607
4635
|
v.searchParams.append("input", f);
|
|
4608
4636
|
try {
|
|
4609
4637
|
const x = await fetch(v.href, { method: "POST" });
|
|
4610
4638
|
if (x.status === 200) {
|
|
4611
|
-
|
|
4639
|
+
Lr();
|
|
4612
4640
|
return;
|
|
4613
4641
|
}
|
|
4614
4642
|
const X = await x.json();
|
|
4615
4643
|
throw new Error(X.message);
|
|
4616
4644
|
} catch (x) {
|
|
4617
|
-
if (await
|
|
4645
|
+
if (await ot(), x.message === le.INTERNAL_SERVER_ERROR) {
|
|
4618
4646
|
if (E.numberOfValidateAttempts === E.maxValidationAttempts - 1) {
|
|
4619
4647
|
window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage(
|
|
4620
4648
|
{
|
|
@@ -4628,14 +4656,14 @@ function yo(e, t, r) {
|
|
|
4628
4656
|
), window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4629
4657
|
return;
|
|
4630
4658
|
}
|
|
4631
|
-
r(6, D = !0), r(8, N = o("invalidOtp")),
|
|
4659
|
+
r(6, D = !0), r(8, N = o("invalidOtp")), ot();
|
|
4632
4660
|
return;
|
|
4633
4661
|
}
|
|
4634
|
-
x.message ===
|
|
4662
|
+
x.message === le.MAX_INVALIDATE && (r(6, D = !0), r(8, N = o("invalidOtp"))), x.details === le.MAX_ATTEMPTS_EXCEEDED && r(15, be = !0), console.error("OTP submission failed:", x), r(6, D = !0), r(8, N = o("submissionError"));
|
|
4635
4663
|
} finally {
|
|
4636
4664
|
r(3, g = !1);
|
|
4637
4665
|
}
|
|
4638
|
-
},
|
|
4666
|
+
}, Lr = () => {
|
|
4639
4667
|
window.dispatchEvent(new CustomEvent(
|
|
4640
4668
|
"otpSuccess",
|
|
4641
4669
|
{
|
|
@@ -4644,23 +4672,23 @@ function yo(e, t, r) {
|
|
|
4644
4672
|
}
|
|
4645
4673
|
}
|
|
4646
4674
|
));
|
|
4647
|
-
},
|
|
4675
|
+
}, Ir = () => {
|
|
4648
4676
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4649
|
-
},
|
|
4677
|
+
}, Bt = async () => {
|
|
4650
4678
|
if (m.join("").length !== E.inputLength) {
|
|
4651
4679
|
r(6, D = !0), r(8, N = o("invalidOtp"));
|
|
4652
4680
|
return;
|
|
4653
4681
|
}
|
|
4654
4682
|
const f = m.join("");
|
|
4655
|
-
r(13, me = !0), ge = f, r(3, g = !0), r(6, D = !1), r(8, N = ""), q === "stateless" &&
|
|
4656
|
-
},
|
|
4683
|
+
r(13, me = !0), ge = f, r(3, g = !0), r(6, D = !1), r(8, N = ""), q === "stateless" && Pr(f), q === "stateful" && await Mr(f);
|
|
4684
|
+
}, ot = async () => {
|
|
4657
4685
|
if (h)
|
|
4658
4686
|
try {
|
|
4659
4687
|
r(3, g = !0);
|
|
4660
|
-
const f = new URL(`/api/nwa/api/v1/mfa/challenge/${
|
|
4688
|
+
const f = new URL(`/api/nwa/api/v1/mfa/challenge/${ee}/config`, h), v = await fetch(f.href), x = await v.json();
|
|
4661
4689
|
if (v.ok)
|
|
4662
|
-
r(4, E = x), r(2, m = Array(E.inputLength).fill("")), r(9,
|
|
4663
|
-
else if (x && x.details ===
|
|
4690
|
+
r(4, E = x), r(2, m = Array(E.inputLength).fill("")), r(9, se = !1), P = E.expirationTime, I = E.serverTime, E.numberOfValidateAttempts !== 0 && (r(6, D = !0), r(8, N = o("invalidOtp"))), E.numberOfValidateAttempts === E.maxValidationAttempts - 1 && r(10, pe = !0), r(3, g = !1), A(), nt(), r(16, Ee = !1);
|
|
4691
|
+
else if (x && x.details === le.MAX_ATTEMPTS_EXCEEDED)
|
|
4664
4692
|
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4665
4693
|
else {
|
|
4666
4694
|
const X = x && x.message || `Failed to load config. Status: ${v.status}`;
|
|
@@ -4670,18 +4698,18 @@ function yo(e, t, r) {
|
|
|
4670
4698
|
r(3, g = !1), r(7, M = !0), r(8, N = o("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", f);
|
|
4671
4699
|
}
|
|
4672
4700
|
};
|
|
4673
|
-
|
|
4674
|
-
window.removeEventListener("stepUpAuthRequired",
|
|
4701
|
+
Jr(() => (window.addEventListener("stepUpAuthRequired", Ne, !1), window.addEventListener("closePopup", V, !1), () => {
|
|
4702
|
+
window.removeEventListener("stepUpAuthRequired", Ne), window.removeEventListener("closePopup", V, !1), $ && clearInterval($), W && clearInterval(W);
|
|
4675
4703
|
}));
|
|
4676
|
-
const
|
|
4677
|
-
function
|
|
4678
|
-
|
|
4679
|
-
|
|
4704
|
+
const Nr = () => G(ve.SMS), Rr = () => G(ve.EMAIL);
|
|
4705
|
+
function kr(f, v) {
|
|
4706
|
+
Ze[f ? "unshift" : "push"](() => {
|
|
4707
|
+
J[v] = f, r(14, J);
|
|
4680
4708
|
});
|
|
4681
4709
|
}
|
|
4682
|
-
const
|
|
4683
|
-
function
|
|
4684
|
-
|
|
4710
|
+
const Dr = (f, v) => At(v, f), Ur = (f, v) => Ct(v, f);
|
|
4711
|
+
function Gr(f) {
|
|
4712
|
+
Ze[f ? "unshift" : "push"](() => {
|
|
4685
4713
|
Q = f, r(1, Q);
|
|
4686
4714
|
});
|
|
4687
4715
|
}
|
|
@@ -4690,13 +4718,13 @@ function yo(e, t, r) {
|
|
|
4690
4718
|
}, e.$$.update = () => {
|
|
4691
4719
|
e.$$.dirty[0] & /*customStylingContainer*/
|
|
4692
4720
|
2 | e.$$.dirty[1] & /*clientstyling*/
|
|
4693
|
-
1 && a && Q &&
|
|
4721
|
+
1 && a && Q && fn(Q, a), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4694
4722
|
2 | e.$$.dirty[1] & /*clientstylingurl*/
|
|
4695
|
-
2 && s && Q &&
|
|
4723
|
+
2 && s && Q && pn(Q, s), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4696
4724
|
2 | e.$$.dirty[1] & /*mbsource*/
|
|
4697
|
-
4 && u && Q &&
|
|
4698
|
-
8 && l &&
|
|
4699
|
-
72 && l && d &&
|
|
4725
|
+
4 && u && Q && dn(Q, `${u}.Style`, Ie), e.$$.dirty[1] & /*lang*/
|
|
4726
|
+
8 && l && Y(), e.$$.dirty[1] & /*lang, translationurl*/
|
|
4727
|
+
72 && l && d && z(), e.$$.dirty[0] & /*selectedChannel*/
|
|
4700
4728
|
1 | e.$$.dirty[1] & /*channelSubmitTimers*/
|
|
4701
4729
|
128 && r(18, n = B && (!U[B] || U[B] === 0)), e.$$.dirty[0] & /*selectedChannel*/
|
|
4702
4730
|
1 | e.$$.dirty[1] & /*channelSubmitTimers*/
|
|
@@ -4711,27 +4739,27 @@ function yo(e, t, r) {
|
|
|
4711
4739
|
D,
|
|
4712
4740
|
M,
|
|
4713
4741
|
N,
|
|
4714
|
-
|
|
4742
|
+
se,
|
|
4715
4743
|
pe,
|
|
4716
|
-
|
|
4744
|
+
ae,
|
|
4717
4745
|
de,
|
|
4718
4746
|
me,
|
|
4719
|
-
|
|
4720
|
-
te,
|
|
4747
|
+
J,
|
|
4721
4748
|
be,
|
|
4749
|
+
Ee,
|
|
4722
4750
|
i,
|
|
4723
4751
|
n,
|
|
4724
4752
|
o,
|
|
4725
4753
|
ve,
|
|
4726
|
-
|
|
4727
|
-
|
|
4728
|
-
Or,
|
|
4729
|
-
Hr,
|
|
4730
|
-
Ot,
|
|
4731
|
-
Ht,
|
|
4754
|
+
G,
|
|
4755
|
+
b,
|
|
4732
4756
|
Ar,
|
|
4733
|
-
|
|
4757
|
+
Cr,
|
|
4734
4758
|
At,
|
|
4759
|
+
Ct,
|
|
4760
|
+
Br,
|
|
4761
|
+
Ir,
|
|
4762
|
+
Bt,
|
|
4735
4763
|
_,
|
|
4736
4764
|
a,
|
|
4737
4765
|
s,
|
|
@@ -4741,22 +4769,22 @@ function yo(e, t, r) {
|
|
|
4741
4769
|
c,
|
|
4742
4770
|
d,
|
|
4743
4771
|
U,
|
|
4744
|
-
Lr,
|
|
4745
|
-
Ir,
|
|
4746
4772
|
Nr,
|
|
4747
4773
|
Rr,
|
|
4748
4774
|
kr,
|
|
4749
|
-
Dr
|
|
4775
|
+
Dr,
|
|
4776
|
+
Ur,
|
|
4777
|
+
Gr
|
|
4750
4778
|
];
|
|
4751
4779
|
}
|
|
4752
|
-
class
|
|
4780
|
+
class wo extends hn {
|
|
4753
4781
|
constructor(t) {
|
|
4754
|
-
super(),
|
|
4782
|
+
super(), ln(
|
|
4755
4783
|
this,
|
|
4756
4784
|
t,
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4785
|
+
xo,
|
|
4786
|
+
vo,
|
|
4787
|
+
tr,
|
|
4760
4788
|
{
|
|
4761
4789
|
clientstyling: 31,
|
|
4762
4790
|
clientstylingurl: 32,
|
|
@@ -4767,7 +4795,7 @@ class _o extends ln {
|
|
|
4767
4795
|
translationurl: 37,
|
|
4768
4796
|
templateid: 30
|
|
4769
4797
|
},
|
|
4770
|
-
|
|
4798
|
+
so,
|
|
4771
4799
|
[-1, -1, -1]
|
|
4772
4800
|
);
|
|
4773
4801
|
}
|
|
@@ -4775,52 +4803,52 @@ class _o extends ln {
|
|
|
4775
4803
|
return this.$$.ctx[31];
|
|
4776
4804
|
}
|
|
4777
4805
|
set clientstyling(t) {
|
|
4778
|
-
this.$$set({ clientstyling: t }),
|
|
4806
|
+
this.$$set({ clientstyling: t }), ie();
|
|
4779
4807
|
}
|
|
4780
4808
|
get clientstylingurl() {
|
|
4781
4809
|
return this.$$.ctx[32];
|
|
4782
4810
|
}
|
|
4783
4811
|
set clientstylingurl(t) {
|
|
4784
|
-
this.$$set({ clientstylingurl: t }),
|
|
4812
|
+
this.$$set({ clientstylingurl: t }), ie();
|
|
4785
4813
|
}
|
|
4786
4814
|
get mbsource() {
|
|
4787
4815
|
return this.$$.ctx[33];
|
|
4788
4816
|
}
|
|
4789
4817
|
set mbsource(t) {
|
|
4790
|
-
this.$$set({ mbsource: t }),
|
|
4818
|
+
this.$$set({ mbsource: t }), ie();
|
|
4791
4819
|
}
|
|
4792
4820
|
get lang() {
|
|
4793
4821
|
return this.$$.ctx[34];
|
|
4794
4822
|
}
|
|
4795
4823
|
set lang(t) {
|
|
4796
|
-
this.$$set({ lang: t }),
|
|
4824
|
+
this.$$set({ lang: t }), ie();
|
|
4797
4825
|
}
|
|
4798
4826
|
get endpoint() {
|
|
4799
4827
|
return this.$$.ctx[35];
|
|
4800
4828
|
}
|
|
4801
4829
|
set endpoint(t) {
|
|
4802
|
-
this.$$set({ endpoint: t }),
|
|
4830
|
+
this.$$set({ endpoint: t }), ie();
|
|
4803
4831
|
}
|
|
4804
4832
|
get session() {
|
|
4805
4833
|
return this.$$.ctx[36];
|
|
4806
4834
|
}
|
|
4807
4835
|
set session(t) {
|
|
4808
|
-
this.$$set({ session: t }),
|
|
4836
|
+
this.$$set({ session: t }), ie();
|
|
4809
4837
|
}
|
|
4810
4838
|
get translationurl() {
|
|
4811
4839
|
return this.$$.ctx[37];
|
|
4812
4840
|
}
|
|
4813
4841
|
set translationurl(t) {
|
|
4814
|
-
this.$$set({ translationurl: t }),
|
|
4842
|
+
this.$$set({ translationurl: t }), ie();
|
|
4815
4843
|
}
|
|
4816
4844
|
get templateid() {
|
|
4817
4845
|
return this.$$.ctx[30];
|
|
4818
4846
|
}
|
|
4819
4847
|
set templateid(t) {
|
|
4820
|
-
this.$$set({ templateid: t }),
|
|
4848
|
+
this.$$set({ templateid: t }), ie();
|
|
4821
4849
|
}
|
|
4822
4850
|
}
|
|
4823
|
-
|
|
4851
|
+
un(wo, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
|
|
4824
4852
|
export {
|
|
4825
|
-
|
|
4853
|
+
wo as C
|
|
4826
4854
|
};
|