@everymatrix/cashier-step-up 0.5.16 → 0.5.18
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-CTF4zkcp.js +4853 -0
- package/components/CashierStepUp-DiWjURI5.cjs +3 -0
- package/components/CashierStepUp-UCVyknjk.js +4805 -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-6tjo_ts2.js +0 -4631
- package/components/CashierStepUp-BeFAWTec.cjs +0 -3
- package/components/CashierStepUp-DEw3PTWj.js +0 -4582
|
@@ -0,0 +1,4805 @@
|
|
|
1
|
+
function te() {
|
|
2
|
+
}
|
|
3
|
+
function Kt(e) {
|
|
4
|
+
return e();
|
|
5
|
+
}
|
|
6
|
+
function Lt() {
|
|
7
|
+
return /* @__PURE__ */ Object.create(null);
|
|
8
|
+
}
|
|
9
|
+
function Ee(e) {
|
|
10
|
+
e.forEach(Kt);
|
|
11
|
+
}
|
|
12
|
+
function Tt(e) {
|
|
13
|
+
return typeof e == "function";
|
|
14
|
+
}
|
|
15
|
+
function en(e, t) {
|
|
16
|
+
return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
|
|
17
|
+
}
|
|
18
|
+
function Dn(e) {
|
|
19
|
+
return Object.keys(e).length === 0;
|
|
20
|
+
}
|
|
21
|
+
function tn(e, ...t) {
|
|
22
|
+
if (e == null) {
|
|
23
|
+
for (const r of t)
|
|
24
|
+
r(void 0);
|
|
25
|
+
return te;
|
|
26
|
+
}
|
|
27
|
+
const n = e.subscribe(...t);
|
|
28
|
+
return n.unsubscribe ? () => n.unsubscribe() : n;
|
|
29
|
+
}
|
|
30
|
+
function Un(e, t, n) {
|
|
31
|
+
e.$$.on_destroy.push(tn(t, n));
|
|
32
|
+
}
|
|
33
|
+
function g(e, t) {
|
|
34
|
+
e.appendChild(t);
|
|
35
|
+
}
|
|
36
|
+
function Gn(e, t, n) {
|
|
37
|
+
const r = Fn(e);
|
|
38
|
+
if (!r.getElementById(t)) {
|
|
39
|
+
const i = T("style");
|
|
40
|
+
i.id = t, i.textContent = n, jn(r, i);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function Fn(e) {
|
|
44
|
+
if (!e)
|
|
45
|
+
return document;
|
|
46
|
+
const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
|
|
47
|
+
return t && /** @type {ShadowRoot} */
|
|
48
|
+
t.host ? (
|
|
49
|
+
/** @type {ShadowRoot} */
|
|
50
|
+
t
|
|
51
|
+
) : e.ownerDocument;
|
|
52
|
+
}
|
|
53
|
+
function jn(e, t) {
|
|
54
|
+
return g(
|
|
55
|
+
/** @type {Document} */
|
|
56
|
+
e.head || e,
|
|
57
|
+
t
|
|
58
|
+
), t.sheet;
|
|
59
|
+
}
|
|
60
|
+
function C(e, t, n) {
|
|
61
|
+
e.insertBefore(t, n || null);
|
|
62
|
+
}
|
|
63
|
+
function H(e) {
|
|
64
|
+
e.parentNode && e.parentNode.removeChild(e);
|
|
65
|
+
}
|
|
66
|
+
function $n(e, t) {
|
|
67
|
+
for (let n = 0; n < e.length; n += 1)
|
|
68
|
+
e[n] && e[n].d(t);
|
|
69
|
+
}
|
|
70
|
+
function T(e) {
|
|
71
|
+
return document.createElement(e);
|
|
72
|
+
}
|
|
73
|
+
function ee(e) {
|
|
74
|
+
return document.createElementNS("http://www.w3.org/2000/svg", e);
|
|
75
|
+
}
|
|
76
|
+
function I(e) {
|
|
77
|
+
return document.createTextNode(e);
|
|
78
|
+
}
|
|
79
|
+
function D() {
|
|
80
|
+
return I(" ");
|
|
81
|
+
}
|
|
82
|
+
function Vn() {
|
|
83
|
+
return I("");
|
|
84
|
+
}
|
|
85
|
+
function he(e, t, n, r) {
|
|
86
|
+
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n, r);
|
|
87
|
+
}
|
|
88
|
+
function p(e, t, n) {
|
|
89
|
+
n == null ? e.removeAttribute(t) : e.getAttribute(t) !== n && e.setAttribute(t, n);
|
|
90
|
+
}
|
|
91
|
+
function zn(e) {
|
|
92
|
+
return Array.from(e.childNodes);
|
|
93
|
+
}
|
|
94
|
+
function U(e, t) {
|
|
95
|
+
t = "" + t, e.data !== t && (e.data = /** @type {string} */
|
|
96
|
+
t);
|
|
97
|
+
}
|
|
98
|
+
function ae(e, t, n) {
|
|
99
|
+
e.classList.toggle(t, !!n);
|
|
100
|
+
}
|
|
101
|
+
function Xn(e) {
|
|
102
|
+
const t = {};
|
|
103
|
+
return e.childNodes.forEach(
|
|
104
|
+
/** @param {Element} node */
|
|
105
|
+
(n) => {
|
|
106
|
+
t[n.slot || "default"] = !0;
|
|
107
|
+
}
|
|
108
|
+
), t;
|
|
109
|
+
}
|
|
110
|
+
let $e;
|
|
111
|
+
function je(e) {
|
|
112
|
+
$e = e;
|
|
113
|
+
}
|
|
114
|
+
function Wn() {
|
|
115
|
+
if (!$e)
|
|
116
|
+
throw new Error("Function called outside component initialization");
|
|
117
|
+
return $e;
|
|
118
|
+
}
|
|
119
|
+
function Zn(e) {
|
|
120
|
+
Wn().$$.on_mount.push(e);
|
|
121
|
+
}
|
|
122
|
+
const He = [], Je = [];
|
|
123
|
+
let Ce = [];
|
|
124
|
+
const Pt = [], qn = /* @__PURE__ */ Promise.resolve();
|
|
125
|
+
let dt = !1;
|
|
126
|
+
function Qn() {
|
|
127
|
+
dt || (dt = !0, qn.then(le));
|
|
128
|
+
}
|
|
129
|
+
function mt(e) {
|
|
130
|
+
Ce.push(e);
|
|
131
|
+
}
|
|
132
|
+
const at = /* @__PURE__ */ new Set();
|
|
133
|
+
let Te = 0;
|
|
134
|
+
function le() {
|
|
135
|
+
if (Te !== 0)
|
|
136
|
+
return;
|
|
137
|
+
const e = $e;
|
|
138
|
+
do {
|
|
139
|
+
try {
|
|
140
|
+
for (; Te < He.length; ) {
|
|
141
|
+
const t = He[Te];
|
|
142
|
+
Te++, je(t), Jn(t.$$);
|
|
143
|
+
}
|
|
144
|
+
} catch (t) {
|
|
145
|
+
throw He.length = 0, Te = 0, t;
|
|
146
|
+
}
|
|
147
|
+
for (je(null), He.length = 0, Te = 0; Je.length; )
|
|
148
|
+
Je.pop()();
|
|
149
|
+
for (let t = 0; t < Ce.length; t += 1) {
|
|
150
|
+
const n = Ce[t];
|
|
151
|
+
at.has(n) || (at.add(n), n());
|
|
152
|
+
}
|
|
153
|
+
Ce.length = 0;
|
|
154
|
+
} while (He.length);
|
|
155
|
+
for (; Pt.length; )
|
|
156
|
+
Pt.pop()();
|
|
157
|
+
dt = !1, at.clear(), je(e);
|
|
158
|
+
}
|
|
159
|
+
function Jn(e) {
|
|
160
|
+
if (e.fragment !== null) {
|
|
161
|
+
e.update(), Ee(e.before_update);
|
|
162
|
+
const t = e.dirty;
|
|
163
|
+
e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(mt);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function Yn(e) {
|
|
167
|
+
const t = [], n = [];
|
|
168
|
+
Ce.forEach((r) => e.indexOf(r) === -1 ? t.push(r) : n.push(r)), n.forEach((r) => r()), Ce = t;
|
|
169
|
+
}
|
|
170
|
+
const Kn = /* @__PURE__ */ new Set();
|
|
171
|
+
function er(e, t) {
|
|
172
|
+
e && e.i && (Kn.delete(e), e.i(t));
|
|
173
|
+
}
|
|
174
|
+
function Mt(e) {
|
|
175
|
+
return e?.length !== void 0 ? e : Array.from(e);
|
|
176
|
+
}
|
|
177
|
+
function tr(e, t, n) {
|
|
178
|
+
const { fragment: r, after_update: i } = e.$$;
|
|
179
|
+
r && r.m(t, n), mt(() => {
|
|
180
|
+
const o = e.$$.on_mount.map(Kt).filter(Tt);
|
|
181
|
+
e.$$.on_destroy ? e.$$.on_destroy.push(...o) : Ee(o), e.$$.on_mount = [];
|
|
182
|
+
}), i.forEach(mt);
|
|
183
|
+
}
|
|
184
|
+
function nr(e, t) {
|
|
185
|
+
const n = e.$$;
|
|
186
|
+
n.fragment !== null && (Yn(n.after_update), Ee(n.on_destroy), n.fragment && n.fragment.d(t), n.on_destroy = n.fragment = null, n.ctx = []);
|
|
187
|
+
}
|
|
188
|
+
function rr(e, t) {
|
|
189
|
+
e.$$.dirty[0] === -1 && (He.push(e), Qn(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
190
|
+
}
|
|
191
|
+
function ir(e, t, n, r, i, o, l = null, s = [-1]) {
|
|
192
|
+
const u = $e;
|
|
193
|
+
je(e);
|
|
194
|
+
const a = e.$$ = {
|
|
195
|
+
fragment: null,
|
|
196
|
+
ctx: [],
|
|
197
|
+
// state
|
|
198
|
+
props: o,
|
|
199
|
+
update: te,
|
|
200
|
+
not_equal: i,
|
|
201
|
+
bound: Lt(),
|
|
202
|
+
// lifecycle
|
|
203
|
+
on_mount: [],
|
|
204
|
+
on_destroy: [],
|
|
205
|
+
on_disconnect: [],
|
|
206
|
+
before_update: [],
|
|
207
|
+
after_update: [],
|
|
208
|
+
context: new Map(t.context || (u ? u.$$.context : [])),
|
|
209
|
+
// everything else
|
|
210
|
+
callbacks: Lt(),
|
|
211
|
+
dirty: s,
|
|
212
|
+
skip_bound: !1,
|
|
213
|
+
root: t.target || u.$$.root
|
|
214
|
+
};
|
|
215
|
+
l && l(a.root);
|
|
216
|
+
let h = !1;
|
|
217
|
+
if (a.ctx = n ? n(e, t.props || {}, (c, d, ...y) => {
|
|
218
|
+
const b = y.length ? y[0] : d;
|
|
219
|
+
return a.ctx && i(a.ctx[c], a.ctx[c] = b) && (!a.skip_bound && a.bound[c] && a.bound[c](b), h && rr(e, c)), d;
|
|
220
|
+
}) : [], a.update(), h = !0, Ee(a.before_update), a.fragment = r ? r(a.ctx) : !1, t.target) {
|
|
221
|
+
if (t.hydrate) {
|
|
222
|
+
const c = zn(t.target);
|
|
223
|
+
a.fragment && a.fragment.l(c), c.forEach(H);
|
|
224
|
+
} else
|
|
225
|
+
a.fragment && a.fragment.c();
|
|
226
|
+
t.intro && er(e.$$.fragment), tr(e, t.target, t.anchor), le();
|
|
227
|
+
}
|
|
228
|
+
je(u);
|
|
229
|
+
}
|
|
230
|
+
let nn;
|
|
231
|
+
typeof HTMLElement == "function" && (nn = class extends HTMLElement {
|
|
232
|
+
/** The Svelte component constructor */
|
|
233
|
+
$$ctor;
|
|
234
|
+
/** Slots */
|
|
235
|
+
$$s;
|
|
236
|
+
/** The Svelte component instance */
|
|
237
|
+
$$c;
|
|
238
|
+
/** Whether or not the custom element is connected */
|
|
239
|
+
$$cn = !1;
|
|
240
|
+
/** Component props data */
|
|
241
|
+
$$d = {};
|
|
242
|
+
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
243
|
+
$$r = !1;
|
|
244
|
+
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
245
|
+
$$p_d = {};
|
|
246
|
+
/** @type {Record<string, Function[]>} Event listeners */
|
|
247
|
+
$$l = {};
|
|
248
|
+
/** @type {Map<Function, Function>} Event listener unsubscribe functions */
|
|
249
|
+
$$l_u = /* @__PURE__ */ new Map();
|
|
250
|
+
constructor(e, t, n) {
|
|
251
|
+
super(), this.$$ctor = e, this.$$s = t, n && this.attachShadow({ mode: "open" });
|
|
252
|
+
}
|
|
253
|
+
addEventListener(e, t, n) {
|
|
254
|
+
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
255
|
+
const r = this.$$c.$on(e, t);
|
|
256
|
+
this.$$l_u.set(t, r);
|
|
257
|
+
}
|
|
258
|
+
super.addEventListener(e, t, n);
|
|
259
|
+
}
|
|
260
|
+
removeEventListener(e, t, n) {
|
|
261
|
+
if (super.removeEventListener(e, t, n), this.$$c) {
|
|
262
|
+
const r = this.$$l_u.get(t);
|
|
263
|
+
r && (r(), this.$$l_u.delete(t));
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
async connectedCallback() {
|
|
267
|
+
if (this.$$cn = !0, !this.$$c) {
|
|
268
|
+
let e = function(i) {
|
|
269
|
+
return () => {
|
|
270
|
+
let o;
|
|
271
|
+
return {
|
|
272
|
+
c: function() {
|
|
273
|
+
o = T("slot"), i !== "default" && p(o, "name", i);
|
|
274
|
+
},
|
|
275
|
+
/**
|
|
276
|
+
* @param {HTMLElement} target
|
|
277
|
+
* @param {HTMLElement} [anchor]
|
|
278
|
+
*/
|
|
279
|
+
m: function(u, a) {
|
|
280
|
+
C(u, o, a);
|
|
281
|
+
},
|
|
282
|
+
d: function(u) {
|
|
283
|
+
u && H(o);
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
289
|
+
return;
|
|
290
|
+
const t = {}, n = Xn(this);
|
|
291
|
+
for (const i of this.$$s)
|
|
292
|
+
i in n && (t[i] = [e(i)]);
|
|
293
|
+
for (const i of this.attributes) {
|
|
294
|
+
const o = this.$$g_p(i.name);
|
|
295
|
+
o in this.$$d || (this.$$d[o] = Ze(o, i.value, this.$$p_d, "toProp"));
|
|
296
|
+
}
|
|
297
|
+
for (const i in this.$$p_d)
|
|
298
|
+
!(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
299
|
+
this.$$c = new this.$$ctor({
|
|
300
|
+
target: this.shadowRoot || this,
|
|
301
|
+
props: {
|
|
302
|
+
...this.$$d,
|
|
303
|
+
$$slots: t,
|
|
304
|
+
$$scope: {
|
|
305
|
+
ctx: []
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
const r = () => {
|
|
310
|
+
this.$$r = !0;
|
|
311
|
+
for (const i in this.$$p_d)
|
|
312
|
+
if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
|
|
313
|
+
const o = Ze(
|
|
314
|
+
i,
|
|
315
|
+
this.$$d[i],
|
|
316
|
+
this.$$p_d,
|
|
317
|
+
"toAttribute"
|
|
318
|
+
);
|
|
319
|
+
o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
|
|
320
|
+
}
|
|
321
|
+
this.$$r = !1;
|
|
322
|
+
};
|
|
323
|
+
this.$$c.$$.after_update.push(r), r();
|
|
324
|
+
for (const i in this.$$l)
|
|
325
|
+
for (const o of this.$$l[i]) {
|
|
326
|
+
const l = this.$$c.$on(i, o);
|
|
327
|
+
this.$$l_u.set(o, l);
|
|
328
|
+
}
|
|
329
|
+
this.$$l = {};
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
// We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
|
|
333
|
+
// and setting attributes through setAttribute etc, this is helpful
|
|
334
|
+
attributeChangedCallback(e, t, n) {
|
|
335
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Ze(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
336
|
+
}
|
|
337
|
+
disconnectedCallback() {
|
|
338
|
+
this.$$cn = !1, Promise.resolve().then(() => {
|
|
339
|
+
!this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
$$g_p(e) {
|
|
343
|
+
return Object.keys(this.$$p_d).find(
|
|
344
|
+
(t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
|
|
345
|
+
) || e;
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
function Ze(e, t, n, r) {
|
|
349
|
+
const i = n[e]?.type;
|
|
350
|
+
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
351
|
+
return t;
|
|
352
|
+
if (r === "toAttribute")
|
|
353
|
+
switch (i) {
|
|
354
|
+
case "Object":
|
|
355
|
+
case "Array":
|
|
356
|
+
return t == null ? null : JSON.stringify(t);
|
|
357
|
+
case "Boolean":
|
|
358
|
+
return t ? "" : null;
|
|
359
|
+
case "Number":
|
|
360
|
+
return t ?? null;
|
|
361
|
+
default:
|
|
362
|
+
return t;
|
|
363
|
+
}
|
|
364
|
+
else
|
|
365
|
+
switch (i) {
|
|
366
|
+
case "Object":
|
|
367
|
+
case "Array":
|
|
368
|
+
return t && JSON.parse(t);
|
|
369
|
+
case "Boolean":
|
|
370
|
+
return t;
|
|
371
|
+
case "Number":
|
|
372
|
+
return t != null ? +t : t;
|
|
373
|
+
default:
|
|
374
|
+
return t;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
function or(e, t, n, r, i, o) {
|
|
378
|
+
let l = class extends nn {
|
|
379
|
+
constructor() {
|
|
380
|
+
super(e, n, i), this.$$p_d = t;
|
|
381
|
+
}
|
|
382
|
+
static get observedAttributes() {
|
|
383
|
+
return Object.keys(t).map(
|
|
384
|
+
(s) => (t[s].attribute || s).toLowerCase()
|
|
385
|
+
);
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
return Object.keys(t).forEach((s) => {
|
|
389
|
+
Object.defineProperty(l.prototype, s, {
|
|
390
|
+
get() {
|
|
391
|
+
return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
|
|
392
|
+
},
|
|
393
|
+
set(u) {
|
|
394
|
+
u = Ze(s, u, t), this.$$d[s] = u, this.$$c?.$set({ [s]: u });
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
}), r.forEach((s) => {
|
|
398
|
+
Object.defineProperty(l.prototype, s, {
|
|
399
|
+
get() {
|
|
400
|
+
return this.$$c?.[s];
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
}), e.element = /** @type {any} */
|
|
404
|
+
l, l;
|
|
405
|
+
}
|
|
406
|
+
class sr {
|
|
407
|
+
/**
|
|
408
|
+
* ### PRIVATE API
|
|
409
|
+
*
|
|
410
|
+
* Do not use, may change at any time
|
|
411
|
+
*
|
|
412
|
+
* @type {any}
|
|
413
|
+
*/
|
|
414
|
+
$$ = void 0;
|
|
415
|
+
/**
|
|
416
|
+
* ### PRIVATE API
|
|
417
|
+
*
|
|
418
|
+
* Do not use, may change at any time
|
|
419
|
+
*
|
|
420
|
+
* @type {any}
|
|
421
|
+
*/
|
|
422
|
+
$$set = void 0;
|
|
423
|
+
/** @returns {void} */
|
|
424
|
+
$destroy() {
|
|
425
|
+
nr(this, 1), this.$destroy = te;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* @template {Extract<keyof Events, string>} K
|
|
429
|
+
* @param {K} type
|
|
430
|
+
* @param {((e: Events[K]) => void) | null | undefined} callback
|
|
431
|
+
* @returns {() => void}
|
|
432
|
+
*/
|
|
433
|
+
$on(t, n) {
|
|
434
|
+
if (!Tt(n))
|
|
435
|
+
return te;
|
|
436
|
+
const r = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
|
|
437
|
+
return r.push(n), () => {
|
|
438
|
+
const i = r.indexOf(n);
|
|
439
|
+
i !== -1 && r.splice(i, 1);
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* @param {Partial<Props>} props
|
|
444
|
+
* @returns {void}
|
|
445
|
+
*/
|
|
446
|
+
$set(t) {
|
|
447
|
+
this.$$set && !Dn(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
const ar = "4";
|
|
451
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(ar);
|
|
452
|
+
function lr(e, t) {
|
|
453
|
+
if (e) {
|
|
454
|
+
const n = document.createElement("style");
|
|
455
|
+
n.innerHTML = t, e.appendChild(n);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
function ur(e, t) {
|
|
459
|
+
if (!e || !t)
|
|
460
|
+
return;
|
|
461
|
+
const n = new URL(t);
|
|
462
|
+
fetch(n.href).then((r) => r.text()).then((r) => {
|
|
463
|
+
const i = document.createElement("style");
|
|
464
|
+
i.innerHTML = r, e && e.appendChild(i);
|
|
465
|
+
}).catch((r) => {
|
|
466
|
+
console.error("There was an error while trying to load client styling from URL", r);
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
function hr(e, t, n) {
|
|
470
|
+
if (window.emMessageBus) {
|
|
471
|
+
const r = document.createElement("style");
|
|
472
|
+
window.emMessageBus.subscribe(t, (i) => {
|
|
473
|
+
r.innerHTML = i, e && e.appendChild(r);
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
const Oe = [];
|
|
478
|
+
function cr(e, t) {
|
|
479
|
+
return {
|
|
480
|
+
subscribe: tt(e, t).subscribe
|
|
481
|
+
};
|
|
482
|
+
}
|
|
483
|
+
function tt(e, t = te) {
|
|
484
|
+
let n;
|
|
485
|
+
const r = /* @__PURE__ */ new Set();
|
|
486
|
+
function i(s) {
|
|
487
|
+
if (en(e, s) && (e = s, n)) {
|
|
488
|
+
const u = !Oe.length;
|
|
489
|
+
for (const a of r)
|
|
490
|
+
a[1](), Oe.push(a, e);
|
|
491
|
+
if (u) {
|
|
492
|
+
for (let a = 0; a < Oe.length; a += 2)
|
|
493
|
+
Oe[a][0](Oe[a + 1]);
|
|
494
|
+
Oe.length = 0;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
function o(s) {
|
|
499
|
+
i(s(e));
|
|
500
|
+
}
|
|
501
|
+
function l(s, u = te) {
|
|
502
|
+
const a = [s, u];
|
|
503
|
+
return r.add(a), r.size === 1 && (n = t(i, o) || te), s(e), () => {
|
|
504
|
+
r.delete(a), r.size === 0 && n && (n(), n = null);
|
|
505
|
+
};
|
|
506
|
+
}
|
|
507
|
+
return { set: i, update: o, subscribe: l };
|
|
508
|
+
}
|
|
509
|
+
function Me(e, t, n) {
|
|
510
|
+
const r = !Array.isArray(e), i = r ? [e] : e;
|
|
511
|
+
if (!i.every(Boolean))
|
|
512
|
+
throw new Error("derived() expects stores as input, got a falsy value");
|
|
513
|
+
const o = t.length < 2;
|
|
514
|
+
return cr(n, (l, s) => {
|
|
515
|
+
let u = !1;
|
|
516
|
+
const a = [];
|
|
517
|
+
let h = 0, c = te;
|
|
518
|
+
const d = () => {
|
|
519
|
+
if (h)
|
|
520
|
+
return;
|
|
521
|
+
c();
|
|
522
|
+
const b = t(r ? a[0] : a, l, s);
|
|
523
|
+
o ? l(b) : c = Tt(b) ? b : te;
|
|
524
|
+
}, y = i.map(
|
|
525
|
+
(b, m) => tn(
|
|
526
|
+
b,
|
|
527
|
+
(E) => {
|
|
528
|
+
a[m] = E, h &= ~(1 << m), u && d();
|
|
529
|
+
},
|
|
530
|
+
() => {
|
|
531
|
+
h |= 1 << m;
|
|
532
|
+
}
|
|
533
|
+
)
|
|
534
|
+
);
|
|
535
|
+
return u = !0, d(), function() {
|
|
536
|
+
Ee(y), c(), u = !1;
|
|
537
|
+
};
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
function fr(e) {
|
|
541
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
542
|
+
}
|
|
543
|
+
var pr = function(t) {
|
|
544
|
+
return dr(t) && !mr(t);
|
|
545
|
+
};
|
|
546
|
+
function dr(e) {
|
|
547
|
+
return !!e && typeof e == "object";
|
|
548
|
+
}
|
|
549
|
+
function mr(e) {
|
|
550
|
+
var t = Object.prototype.toString.call(e);
|
|
551
|
+
return t === "[object RegExp]" || t === "[object Date]" || _r(e);
|
|
552
|
+
}
|
|
553
|
+
var gr = typeof Symbol == "function" && Symbol.for, br = gr ? Symbol.for("react.element") : 60103;
|
|
554
|
+
function _r(e) {
|
|
555
|
+
return e.$$typeof === br;
|
|
556
|
+
}
|
|
557
|
+
function yr(e) {
|
|
558
|
+
return Array.isArray(e) ? [] : {};
|
|
559
|
+
}
|
|
560
|
+
function Ve(e, t) {
|
|
561
|
+
return t.clone !== !1 && t.isMergeableObject(e) ? Ae(yr(e), e, t) : e;
|
|
562
|
+
}
|
|
563
|
+
function Er(e, t, n) {
|
|
564
|
+
return e.concat(t).map(function(r) {
|
|
565
|
+
return Ve(r, n);
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
function vr(e, t) {
|
|
569
|
+
if (!t.customMerge)
|
|
570
|
+
return Ae;
|
|
571
|
+
var n = t.customMerge(e);
|
|
572
|
+
return typeof n == "function" ? n : Ae;
|
|
573
|
+
}
|
|
574
|
+
function xr(e) {
|
|
575
|
+
return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
|
|
576
|
+
return Object.propertyIsEnumerable.call(e, t);
|
|
577
|
+
}) : [];
|
|
578
|
+
}
|
|
579
|
+
function It(e) {
|
|
580
|
+
return Object.keys(e).concat(xr(e));
|
|
581
|
+
}
|
|
582
|
+
function rn(e, t) {
|
|
583
|
+
try {
|
|
584
|
+
return t in e;
|
|
585
|
+
} catch {
|
|
586
|
+
return !1;
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
function wr(e, t) {
|
|
590
|
+
return rn(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
|
|
591
|
+
}
|
|
592
|
+
function Sr(e, t, n) {
|
|
593
|
+
var r = {};
|
|
594
|
+
return n.isMergeableObject(e) && It(e).forEach(function(i) {
|
|
595
|
+
r[i] = Ve(e[i], n);
|
|
596
|
+
}), It(t).forEach(function(i) {
|
|
597
|
+
wr(e, i) || (rn(e, i) && n.isMergeableObject(t[i]) ? r[i] = vr(i, n)(e[i], t[i], n) : r[i] = Ve(t[i], n));
|
|
598
|
+
}), r;
|
|
599
|
+
}
|
|
600
|
+
function Ae(e, t, n) {
|
|
601
|
+
n = n || {}, n.arrayMerge = n.arrayMerge || Er, n.isMergeableObject = n.isMergeableObject || pr, n.cloneUnlessOtherwiseSpecified = Ve;
|
|
602
|
+
var r = Array.isArray(t), i = Array.isArray(e), o = r === i;
|
|
603
|
+
return o ? r ? n.arrayMerge(e, t, n) : Sr(e, t, n) : Ve(t, n);
|
|
604
|
+
}
|
|
605
|
+
Ae.all = function(t, n) {
|
|
606
|
+
if (!Array.isArray(t))
|
|
607
|
+
throw new Error("first argument should be an array");
|
|
608
|
+
return t.reduce(function(r, i) {
|
|
609
|
+
return Ae(r, i, n);
|
|
610
|
+
}, {});
|
|
611
|
+
};
|
|
612
|
+
var Tr = Ae, Or = Tr;
|
|
613
|
+
const Hr = /* @__PURE__ */ fr(Or);
|
|
614
|
+
var gt = function(e, t) {
|
|
615
|
+
return gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
616
|
+
n.__proto__ = r;
|
|
617
|
+
} || function(n, r) {
|
|
618
|
+
for (var i in r)
|
|
619
|
+
Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
|
|
620
|
+
}, gt(e, t);
|
|
621
|
+
};
|
|
622
|
+
function nt(e, t) {
|
|
623
|
+
if (typeof t != "function" && t !== null)
|
|
624
|
+
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
625
|
+
gt(e, t);
|
|
626
|
+
function n() {
|
|
627
|
+
this.constructor = e;
|
|
628
|
+
}
|
|
629
|
+
e.prototype = t === null ? Object.create(t) : (n.prototype = t.prototype, new n());
|
|
630
|
+
}
|
|
631
|
+
var ue = function() {
|
|
632
|
+
return ue = Object.assign || function(t) {
|
|
633
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
634
|
+
n = arguments[r];
|
|
635
|
+
for (var o in n)
|
|
636
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
637
|
+
}
|
|
638
|
+
return t;
|
|
639
|
+
}, ue.apply(this, arguments);
|
|
640
|
+
};
|
|
641
|
+
function Cr(e, t) {
|
|
642
|
+
var n = {};
|
|
643
|
+
for (var r in e)
|
|
644
|
+
Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
645
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
646
|
+
for (var i = 0, r = Object.getOwnPropertySymbols(e); i < r.length; i++)
|
|
647
|
+
t.indexOf(r[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[i]) && (n[r[i]] = e[r[i]]);
|
|
648
|
+
return n;
|
|
649
|
+
}
|
|
650
|
+
function lt(e, t, n) {
|
|
651
|
+
if (n || arguments.length === 2)
|
|
652
|
+
for (var r = 0, i = t.length, o; r < i; r++)
|
|
653
|
+
(o || !(r in t)) && (o || (o = Array.prototype.slice.call(t, 0, r)), o[r] = t[r]);
|
|
654
|
+
return e.concat(o || Array.prototype.slice.call(t));
|
|
655
|
+
}
|
|
656
|
+
function ut(e, t) {
|
|
657
|
+
var n = t && t.cache ? t.cache : Nr, r = t && t.serializer ? t.serializer : Mr, i = t && t.strategy ? t.strategy : Lr;
|
|
658
|
+
return i(e, {
|
|
659
|
+
cache: n,
|
|
660
|
+
serializer: r
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
function Ar(e) {
|
|
664
|
+
return e == null || typeof e == "number" || typeof e == "boolean";
|
|
665
|
+
}
|
|
666
|
+
function Br(e, t, n, r) {
|
|
667
|
+
var i = Ar(r) ? r : n(r), o = t.get(i);
|
|
668
|
+
return typeof o > "u" && (o = e.call(this, r), t.set(i, o)), o;
|
|
669
|
+
}
|
|
670
|
+
function on(e, t, n) {
|
|
671
|
+
var r = Array.prototype.slice.call(arguments, 3), i = n(r), o = t.get(i);
|
|
672
|
+
return typeof o > "u" && (o = e.apply(this, r), t.set(i, o)), o;
|
|
673
|
+
}
|
|
674
|
+
function sn(e, t, n, r, i) {
|
|
675
|
+
return n.bind(t, e, r, i);
|
|
676
|
+
}
|
|
677
|
+
function Lr(e, t) {
|
|
678
|
+
var n = e.length === 1 ? Br : on;
|
|
679
|
+
return sn(e, this, n, t.cache.create(), t.serializer);
|
|
680
|
+
}
|
|
681
|
+
function Pr(e, t) {
|
|
682
|
+
return sn(e, this, on, t.cache.create(), t.serializer);
|
|
683
|
+
}
|
|
684
|
+
var Mr = function() {
|
|
685
|
+
return JSON.stringify(arguments);
|
|
686
|
+
}, Ir = (
|
|
687
|
+
/** @class */
|
|
688
|
+
function() {
|
|
689
|
+
function e() {
|
|
690
|
+
this.cache = /* @__PURE__ */ Object.create(null);
|
|
691
|
+
}
|
|
692
|
+
return e.prototype.get = function(t) {
|
|
693
|
+
return this.cache[t];
|
|
694
|
+
}, e.prototype.set = function(t, n) {
|
|
695
|
+
this.cache[t] = n;
|
|
696
|
+
}, e;
|
|
697
|
+
}()
|
|
698
|
+
), Nr = {
|
|
699
|
+
create: function() {
|
|
700
|
+
return new Ir();
|
|
701
|
+
}
|
|
702
|
+
}, ht = {
|
|
703
|
+
variadic: Pr
|
|
704
|
+
}, Ye = function() {
|
|
705
|
+
return Ye = Object.assign || function(t) {
|
|
706
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
707
|
+
n = arguments[r];
|
|
708
|
+
for (var o in n)
|
|
709
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
710
|
+
}
|
|
711
|
+
return t;
|
|
712
|
+
}, Ye.apply(this, arguments);
|
|
713
|
+
};
|
|
714
|
+
var S;
|
|
715
|
+
(function(e) {
|
|
716
|
+
e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
|
|
717
|
+
})(S || (S = {}));
|
|
718
|
+
var P;
|
|
719
|
+
(function(e) {
|
|
720
|
+
e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
|
|
721
|
+
})(P || (P = {}));
|
|
722
|
+
var Be;
|
|
723
|
+
(function(e) {
|
|
724
|
+
e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
|
|
725
|
+
})(Be || (Be = {}));
|
|
726
|
+
function Nt(e) {
|
|
727
|
+
return e.type === P.literal;
|
|
728
|
+
}
|
|
729
|
+
function Rr(e) {
|
|
730
|
+
return e.type === P.argument;
|
|
731
|
+
}
|
|
732
|
+
function an(e) {
|
|
733
|
+
return e.type === P.number;
|
|
734
|
+
}
|
|
735
|
+
function ln(e) {
|
|
736
|
+
return e.type === P.date;
|
|
737
|
+
}
|
|
738
|
+
function un(e) {
|
|
739
|
+
return e.type === P.time;
|
|
740
|
+
}
|
|
741
|
+
function hn(e) {
|
|
742
|
+
return e.type === P.select;
|
|
743
|
+
}
|
|
744
|
+
function cn(e) {
|
|
745
|
+
return e.type === P.plural;
|
|
746
|
+
}
|
|
747
|
+
function kr(e) {
|
|
748
|
+
return e.type === P.pound;
|
|
749
|
+
}
|
|
750
|
+
function fn(e) {
|
|
751
|
+
return e.type === P.tag;
|
|
752
|
+
}
|
|
753
|
+
function pn(e) {
|
|
754
|
+
return !!(e && typeof e == "object" && e.type === Be.number);
|
|
755
|
+
}
|
|
756
|
+
function bt(e) {
|
|
757
|
+
return !!(e && typeof e == "object" && e.type === Be.dateTime);
|
|
758
|
+
}
|
|
759
|
+
var dn = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Dr = /(?:[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;
|
|
760
|
+
function Ur(e) {
|
|
761
|
+
var t = {};
|
|
762
|
+
return e.replace(Dr, function(n) {
|
|
763
|
+
var r = n.length;
|
|
764
|
+
switch (n[0]) {
|
|
765
|
+
case "G":
|
|
766
|
+
t.era = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
767
|
+
break;
|
|
768
|
+
case "y":
|
|
769
|
+
t.year = r === 2 ? "2-digit" : "numeric";
|
|
770
|
+
break;
|
|
771
|
+
case "Y":
|
|
772
|
+
case "u":
|
|
773
|
+
case "U":
|
|
774
|
+
case "r":
|
|
775
|
+
throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
|
|
776
|
+
case "q":
|
|
777
|
+
case "Q":
|
|
778
|
+
throw new RangeError("`q/Q` (quarter) patterns are not supported");
|
|
779
|
+
case "M":
|
|
780
|
+
case "L":
|
|
781
|
+
t.month = ["numeric", "2-digit", "short", "long", "narrow"][r - 1];
|
|
782
|
+
break;
|
|
783
|
+
case "w":
|
|
784
|
+
case "W":
|
|
785
|
+
throw new RangeError("`w/W` (week) patterns are not supported");
|
|
786
|
+
case "d":
|
|
787
|
+
t.day = ["numeric", "2-digit"][r - 1];
|
|
788
|
+
break;
|
|
789
|
+
case "D":
|
|
790
|
+
case "F":
|
|
791
|
+
case "g":
|
|
792
|
+
throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
|
|
793
|
+
case "E":
|
|
794
|
+
t.weekday = r === 4 ? "long" : r === 5 ? "narrow" : "short";
|
|
795
|
+
break;
|
|
796
|
+
case "e":
|
|
797
|
+
if (r < 4)
|
|
798
|
+
throw new RangeError("`e..eee` (weekday) patterns are not supported");
|
|
799
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
800
|
+
break;
|
|
801
|
+
case "c":
|
|
802
|
+
if (r < 4)
|
|
803
|
+
throw new RangeError("`c..ccc` (weekday) patterns are not supported");
|
|
804
|
+
t.weekday = ["short", "long", "narrow", "short"][r - 4];
|
|
805
|
+
break;
|
|
806
|
+
case "a":
|
|
807
|
+
t.hour12 = !0;
|
|
808
|
+
break;
|
|
809
|
+
case "b":
|
|
810
|
+
case "B":
|
|
811
|
+
throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
|
|
812
|
+
case "h":
|
|
813
|
+
t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][r - 1];
|
|
814
|
+
break;
|
|
815
|
+
case "H":
|
|
816
|
+
t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][r - 1];
|
|
817
|
+
break;
|
|
818
|
+
case "K":
|
|
819
|
+
t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][r - 1];
|
|
820
|
+
break;
|
|
821
|
+
case "k":
|
|
822
|
+
t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][r - 1];
|
|
823
|
+
break;
|
|
824
|
+
case "j":
|
|
825
|
+
case "J":
|
|
826
|
+
case "C":
|
|
827
|
+
throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
|
|
828
|
+
case "m":
|
|
829
|
+
t.minute = ["numeric", "2-digit"][r - 1];
|
|
830
|
+
break;
|
|
831
|
+
case "s":
|
|
832
|
+
t.second = ["numeric", "2-digit"][r - 1];
|
|
833
|
+
break;
|
|
834
|
+
case "S":
|
|
835
|
+
case "A":
|
|
836
|
+
throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
|
|
837
|
+
case "z":
|
|
838
|
+
t.timeZoneName = r < 4 ? "short" : "long";
|
|
839
|
+
break;
|
|
840
|
+
case "Z":
|
|
841
|
+
case "O":
|
|
842
|
+
case "v":
|
|
843
|
+
case "V":
|
|
844
|
+
case "X":
|
|
845
|
+
case "x":
|
|
846
|
+
throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
|
|
847
|
+
}
|
|
848
|
+
return "";
|
|
849
|
+
}), t;
|
|
850
|
+
}
|
|
851
|
+
var R = function() {
|
|
852
|
+
return R = Object.assign || function(t) {
|
|
853
|
+
for (var n, r = 1, i = arguments.length; r < i; r++) {
|
|
854
|
+
n = arguments[r];
|
|
855
|
+
for (var o in n)
|
|
856
|
+
Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
|
|
857
|
+
}
|
|
858
|
+
return t;
|
|
859
|
+
}, R.apply(this, arguments);
|
|
860
|
+
};
|
|
861
|
+
var Gr = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
|
|
862
|
+
function Fr(e) {
|
|
863
|
+
if (e.length === 0)
|
|
864
|
+
throw new Error("Number skeleton cannot be empty");
|
|
865
|
+
for (var t = e.split(Gr).filter(function(d) {
|
|
866
|
+
return d.length > 0;
|
|
867
|
+
}), n = [], r = 0, i = t; r < i.length; r++) {
|
|
868
|
+
var o = i[r], l = o.split("/");
|
|
869
|
+
if (l.length === 0)
|
|
870
|
+
throw new Error("Invalid number skeleton");
|
|
871
|
+
for (var s = l[0], u = l.slice(1), a = 0, h = u; a < h.length; a++) {
|
|
872
|
+
var c = h[a];
|
|
873
|
+
if (c.length === 0)
|
|
874
|
+
throw new Error("Invalid number skeleton");
|
|
875
|
+
}
|
|
876
|
+
n.push({ stem: s, options: u });
|
|
877
|
+
}
|
|
878
|
+
return n;
|
|
879
|
+
}
|
|
880
|
+
function jr(e) {
|
|
881
|
+
return e.replace(/^(.*?)-/, "");
|
|
882
|
+
}
|
|
883
|
+
var Rt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, mn = /^(@+)?(\+|#+)?[rs]?$/g, $r = /(\*)(0+)|(#+)(0+)|(0+)/g, gn = /^(0+)$/;
|
|
884
|
+
function kt(e) {
|
|
885
|
+
var t = {};
|
|
886
|
+
return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(mn, function(n, r, i) {
|
|
887
|
+
return typeof i != "string" ? (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length) : i === "+" ? t.minimumSignificantDigits = r.length : r[0] === "#" ? t.maximumSignificantDigits = r.length : (t.minimumSignificantDigits = r.length, t.maximumSignificantDigits = r.length + (typeof i == "string" ? i.length : 0)), "";
|
|
888
|
+
}), t;
|
|
889
|
+
}
|
|
890
|
+
function bn(e) {
|
|
891
|
+
switch (e) {
|
|
892
|
+
case "sign-auto":
|
|
893
|
+
return {
|
|
894
|
+
signDisplay: "auto"
|
|
895
|
+
};
|
|
896
|
+
case "sign-accounting":
|
|
897
|
+
case "()":
|
|
898
|
+
return {
|
|
899
|
+
currencySign: "accounting"
|
|
900
|
+
};
|
|
901
|
+
case "sign-always":
|
|
902
|
+
case "+!":
|
|
903
|
+
return {
|
|
904
|
+
signDisplay: "always"
|
|
905
|
+
};
|
|
906
|
+
case "sign-accounting-always":
|
|
907
|
+
case "()!":
|
|
908
|
+
return {
|
|
909
|
+
signDisplay: "always",
|
|
910
|
+
currencySign: "accounting"
|
|
911
|
+
};
|
|
912
|
+
case "sign-except-zero":
|
|
913
|
+
case "+?":
|
|
914
|
+
return {
|
|
915
|
+
signDisplay: "exceptZero"
|
|
916
|
+
};
|
|
917
|
+
case "sign-accounting-except-zero":
|
|
918
|
+
case "()?":
|
|
919
|
+
return {
|
|
920
|
+
signDisplay: "exceptZero",
|
|
921
|
+
currencySign: "accounting"
|
|
922
|
+
};
|
|
923
|
+
case "sign-never":
|
|
924
|
+
case "+_":
|
|
925
|
+
return {
|
|
926
|
+
signDisplay: "never"
|
|
927
|
+
};
|
|
928
|
+
}
|
|
929
|
+
}
|
|
930
|
+
function Vr(e) {
|
|
931
|
+
var t;
|
|
932
|
+
if (e[0] === "E" && e[1] === "E" ? (t = {
|
|
933
|
+
notation: "engineering"
|
|
934
|
+
}, e = e.slice(2)) : e[0] === "E" && (t = {
|
|
935
|
+
notation: "scientific"
|
|
936
|
+
}, e = e.slice(1)), t) {
|
|
937
|
+
var n = e.slice(0, 2);
|
|
938
|
+
if (n === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : n === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !gn.test(e))
|
|
939
|
+
throw new Error("Malformed concise eng/scientific notation");
|
|
940
|
+
t.minimumIntegerDigits = e.length;
|
|
941
|
+
}
|
|
942
|
+
return t;
|
|
943
|
+
}
|
|
944
|
+
function Dt(e) {
|
|
945
|
+
var t = {}, n = bn(e);
|
|
946
|
+
return n || t;
|
|
947
|
+
}
|
|
948
|
+
function zr(e) {
|
|
949
|
+
for (var t = {}, n = 0, r = e; n < r.length; n++) {
|
|
950
|
+
var i = r[n];
|
|
951
|
+
switch (i.stem) {
|
|
952
|
+
case "percent":
|
|
953
|
+
case "%":
|
|
954
|
+
t.style = "percent";
|
|
955
|
+
continue;
|
|
956
|
+
case "%x100":
|
|
957
|
+
t.style = "percent", t.scale = 100;
|
|
958
|
+
continue;
|
|
959
|
+
case "currency":
|
|
960
|
+
t.style = "currency", t.currency = i.options[0];
|
|
961
|
+
continue;
|
|
962
|
+
case "group-off":
|
|
963
|
+
case ",_":
|
|
964
|
+
t.useGrouping = !1;
|
|
965
|
+
continue;
|
|
966
|
+
case "precision-integer":
|
|
967
|
+
case ".":
|
|
968
|
+
t.maximumFractionDigits = 0;
|
|
969
|
+
continue;
|
|
970
|
+
case "measure-unit":
|
|
971
|
+
case "unit":
|
|
972
|
+
t.style = "unit", t.unit = jr(i.options[0]);
|
|
973
|
+
continue;
|
|
974
|
+
case "compact-short":
|
|
975
|
+
case "K":
|
|
976
|
+
t.notation = "compact", t.compactDisplay = "short";
|
|
977
|
+
continue;
|
|
978
|
+
case "compact-long":
|
|
979
|
+
case "KK":
|
|
980
|
+
t.notation = "compact", t.compactDisplay = "long";
|
|
981
|
+
continue;
|
|
982
|
+
case "scientific":
|
|
983
|
+
t = R(R(R({}, t), { notation: "scientific" }), i.options.reduce(function(u, a) {
|
|
984
|
+
return R(R({}, u), Dt(a));
|
|
985
|
+
}, {}));
|
|
986
|
+
continue;
|
|
987
|
+
case "engineering":
|
|
988
|
+
t = R(R(R({}, t), { notation: "engineering" }), i.options.reduce(function(u, a) {
|
|
989
|
+
return R(R({}, u), Dt(a));
|
|
990
|
+
}, {}));
|
|
991
|
+
continue;
|
|
992
|
+
case "notation-simple":
|
|
993
|
+
t.notation = "standard";
|
|
994
|
+
continue;
|
|
995
|
+
case "unit-width-narrow":
|
|
996
|
+
t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
|
|
997
|
+
continue;
|
|
998
|
+
case "unit-width-short":
|
|
999
|
+
t.currencyDisplay = "code", t.unitDisplay = "short";
|
|
1000
|
+
continue;
|
|
1001
|
+
case "unit-width-full-name":
|
|
1002
|
+
t.currencyDisplay = "name", t.unitDisplay = "long";
|
|
1003
|
+
continue;
|
|
1004
|
+
case "unit-width-iso-code":
|
|
1005
|
+
t.currencyDisplay = "symbol";
|
|
1006
|
+
continue;
|
|
1007
|
+
case "scale":
|
|
1008
|
+
t.scale = parseFloat(i.options[0]);
|
|
1009
|
+
continue;
|
|
1010
|
+
case "rounding-mode-floor":
|
|
1011
|
+
t.roundingMode = "floor";
|
|
1012
|
+
continue;
|
|
1013
|
+
case "rounding-mode-ceiling":
|
|
1014
|
+
t.roundingMode = "ceil";
|
|
1015
|
+
continue;
|
|
1016
|
+
case "rounding-mode-down":
|
|
1017
|
+
t.roundingMode = "trunc";
|
|
1018
|
+
continue;
|
|
1019
|
+
case "rounding-mode-up":
|
|
1020
|
+
t.roundingMode = "expand";
|
|
1021
|
+
continue;
|
|
1022
|
+
case "rounding-mode-half-even":
|
|
1023
|
+
t.roundingMode = "halfEven";
|
|
1024
|
+
continue;
|
|
1025
|
+
case "rounding-mode-half-down":
|
|
1026
|
+
t.roundingMode = "halfTrunc";
|
|
1027
|
+
continue;
|
|
1028
|
+
case "rounding-mode-half-up":
|
|
1029
|
+
t.roundingMode = "halfExpand";
|
|
1030
|
+
continue;
|
|
1031
|
+
case "integer-width":
|
|
1032
|
+
if (i.options.length > 1)
|
|
1033
|
+
throw new RangeError("integer-width stems only accept a single optional option");
|
|
1034
|
+
i.options[0].replace($r, function(u, a, h, c, d, y) {
|
|
1035
|
+
if (a)
|
|
1036
|
+
t.minimumIntegerDigits = h.length;
|
|
1037
|
+
else {
|
|
1038
|
+
if (c && d)
|
|
1039
|
+
throw new Error("We currently do not support maximum integer digits");
|
|
1040
|
+
if (y)
|
|
1041
|
+
throw new Error("We currently do not support exact integer digits");
|
|
1042
|
+
}
|
|
1043
|
+
return "";
|
|
1044
|
+
});
|
|
1045
|
+
continue;
|
|
1046
|
+
}
|
|
1047
|
+
if (gn.test(i.stem)) {
|
|
1048
|
+
t.minimumIntegerDigits = i.stem.length;
|
|
1049
|
+
continue;
|
|
1050
|
+
}
|
|
1051
|
+
if (Rt.test(i.stem)) {
|
|
1052
|
+
if (i.options.length > 1)
|
|
1053
|
+
throw new RangeError("Fraction-precision stems only accept a single optional option");
|
|
1054
|
+
i.stem.replace(Rt, function(u, a, h, c, d, y) {
|
|
1055
|
+
return h === "*" ? t.minimumFractionDigits = a.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : d && y ? (t.minimumFractionDigits = d.length, t.maximumFractionDigits = d.length + y.length) : (t.minimumFractionDigits = a.length, t.maximumFractionDigits = a.length), "";
|
|
1056
|
+
});
|
|
1057
|
+
var o = i.options[0];
|
|
1058
|
+
o === "w" ? t = R(R({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = R(R({}, t), kt(o)));
|
|
1059
|
+
continue;
|
|
1060
|
+
}
|
|
1061
|
+
if (mn.test(i.stem)) {
|
|
1062
|
+
t = R(R({}, t), kt(i.stem));
|
|
1063
|
+
continue;
|
|
1064
|
+
}
|
|
1065
|
+
var l = bn(i.stem);
|
|
1066
|
+
l && (t = R(R({}, t), l));
|
|
1067
|
+
var s = Vr(i.stem);
|
|
1068
|
+
s && (t = R(R({}, t), s));
|
|
1069
|
+
}
|
|
1070
|
+
return t;
|
|
1071
|
+
}
|
|
1072
|
+
var We = {
|
|
1073
|
+
"001": [
|
|
1074
|
+
"H",
|
|
1075
|
+
"h"
|
|
1076
|
+
],
|
|
1077
|
+
419: [
|
|
1078
|
+
"h",
|
|
1079
|
+
"H",
|
|
1080
|
+
"hB",
|
|
1081
|
+
"hb"
|
|
1082
|
+
],
|
|
1083
|
+
AC: [
|
|
1084
|
+
"H",
|
|
1085
|
+
"h",
|
|
1086
|
+
"hb",
|
|
1087
|
+
"hB"
|
|
1088
|
+
],
|
|
1089
|
+
AD: [
|
|
1090
|
+
"H",
|
|
1091
|
+
"hB"
|
|
1092
|
+
],
|
|
1093
|
+
AE: [
|
|
1094
|
+
"h",
|
|
1095
|
+
"hB",
|
|
1096
|
+
"hb",
|
|
1097
|
+
"H"
|
|
1098
|
+
],
|
|
1099
|
+
AF: [
|
|
1100
|
+
"H",
|
|
1101
|
+
"hb",
|
|
1102
|
+
"hB",
|
|
1103
|
+
"h"
|
|
1104
|
+
],
|
|
1105
|
+
AG: [
|
|
1106
|
+
"h",
|
|
1107
|
+
"hb",
|
|
1108
|
+
"H",
|
|
1109
|
+
"hB"
|
|
1110
|
+
],
|
|
1111
|
+
AI: [
|
|
1112
|
+
"H",
|
|
1113
|
+
"h",
|
|
1114
|
+
"hb",
|
|
1115
|
+
"hB"
|
|
1116
|
+
],
|
|
1117
|
+
AL: [
|
|
1118
|
+
"h",
|
|
1119
|
+
"H",
|
|
1120
|
+
"hB"
|
|
1121
|
+
],
|
|
1122
|
+
AM: [
|
|
1123
|
+
"H",
|
|
1124
|
+
"hB"
|
|
1125
|
+
],
|
|
1126
|
+
AO: [
|
|
1127
|
+
"H",
|
|
1128
|
+
"hB"
|
|
1129
|
+
],
|
|
1130
|
+
AR: [
|
|
1131
|
+
"h",
|
|
1132
|
+
"H",
|
|
1133
|
+
"hB",
|
|
1134
|
+
"hb"
|
|
1135
|
+
],
|
|
1136
|
+
AS: [
|
|
1137
|
+
"h",
|
|
1138
|
+
"H"
|
|
1139
|
+
],
|
|
1140
|
+
AT: [
|
|
1141
|
+
"H",
|
|
1142
|
+
"hB"
|
|
1143
|
+
],
|
|
1144
|
+
AU: [
|
|
1145
|
+
"h",
|
|
1146
|
+
"hb",
|
|
1147
|
+
"H",
|
|
1148
|
+
"hB"
|
|
1149
|
+
],
|
|
1150
|
+
AW: [
|
|
1151
|
+
"H",
|
|
1152
|
+
"hB"
|
|
1153
|
+
],
|
|
1154
|
+
AX: [
|
|
1155
|
+
"H"
|
|
1156
|
+
],
|
|
1157
|
+
AZ: [
|
|
1158
|
+
"H",
|
|
1159
|
+
"hB",
|
|
1160
|
+
"h"
|
|
1161
|
+
],
|
|
1162
|
+
BA: [
|
|
1163
|
+
"H",
|
|
1164
|
+
"hB",
|
|
1165
|
+
"h"
|
|
1166
|
+
],
|
|
1167
|
+
BB: [
|
|
1168
|
+
"h",
|
|
1169
|
+
"hb",
|
|
1170
|
+
"H",
|
|
1171
|
+
"hB"
|
|
1172
|
+
],
|
|
1173
|
+
BD: [
|
|
1174
|
+
"h",
|
|
1175
|
+
"hB",
|
|
1176
|
+
"H"
|
|
1177
|
+
],
|
|
1178
|
+
BE: [
|
|
1179
|
+
"H",
|
|
1180
|
+
"hB"
|
|
1181
|
+
],
|
|
1182
|
+
BF: [
|
|
1183
|
+
"H",
|
|
1184
|
+
"hB"
|
|
1185
|
+
],
|
|
1186
|
+
BG: [
|
|
1187
|
+
"H",
|
|
1188
|
+
"hB",
|
|
1189
|
+
"h"
|
|
1190
|
+
],
|
|
1191
|
+
BH: [
|
|
1192
|
+
"h",
|
|
1193
|
+
"hB",
|
|
1194
|
+
"hb",
|
|
1195
|
+
"H"
|
|
1196
|
+
],
|
|
1197
|
+
BI: [
|
|
1198
|
+
"H",
|
|
1199
|
+
"h"
|
|
1200
|
+
],
|
|
1201
|
+
BJ: [
|
|
1202
|
+
"H",
|
|
1203
|
+
"hB"
|
|
1204
|
+
],
|
|
1205
|
+
BL: [
|
|
1206
|
+
"H",
|
|
1207
|
+
"hB"
|
|
1208
|
+
],
|
|
1209
|
+
BM: [
|
|
1210
|
+
"h",
|
|
1211
|
+
"hb",
|
|
1212
|
+
"H",
|
|
1213
|
+
"hB"
|
|
1214
|
+
],
|
|
1215
|
+
BN: [
|
|
1216
|
+
"hb",
|
|
1217
|
+
"hB",
|
|
1218
|
+
"h",
|
|
1219
|
+
"H"
|
|
1220
|
+
],
|
|
1221
|
+
BO: [
|
|
1222
|
+
"h",
|
|
1223
|
+
"H",
|
|
1224
|
+
"hB",
|
|
1225
|
+
"hb"
|
|
1226
|
+
],
|
|
1227
|
+
BQ: [
|
|
1228
|
+
"H"
|
|
1229
|
+
],
|
|
1230
|
+
BR: [
|
|
1231
|
+
"H",
|
|
1232
|
+
"hB"
|
|
1233
|
+
],
|
|
1234
|
+
BS: [
|
|
1235
|
+
"h",
|
|
1236
|
+
"hb",
|
|
1237
|
+
"H",
|
|
1238
|
+
"hB"
|
|
1239
|
+
],
|
|
1240
|
+
BT: [
|
|
1241
|
+
"h",
|
|
1242
|
+
"H"
|
|
1243
|
+
],
|
|
1244
|
+
BW: [
|
|
1245
|
+
"H",
|
|
1246
|
+
"h",
|
|
1247
|
+
"hb",
|
|
1248
|
+
"hB"
|
|
1249
|
+
],
|
|
1250
|
+
BY: [
|
|
1251
|
+
"H",
|
|
1252
|
+
"h"
|
|
1253
|
+
],
|
|
1254
|
+
BZ: [
|
|
1255
|
+
"H",
|
|
1256
|
+
"h",
|
|
1257
|
+
"hb",
|
|
1258
|
+
"hB"
|
|
1259
|
+
],
|
|
1260
|
+
CA: [
|
|
1261
|
+
"h",
|
|
1262
|
+
"hb",
|
|
1263
|
+
"H",
|
|
1264
|
+
"hB"
|
|
1265
|
+
],
|
|
1266
|
+
CC: [
|
|
1267
|
+
"H",
|
|
1268
|
+
"h",
|
|
1269
|
+
"hb",
|
|
1270
|
+
"hB"
|
|
1271
|
+
],
|
|
1272
|
+
CD: [
|
|
1273
|
+
"hB",
|
|
1274
|
+
"H"
|
|
1275
|
+
],
|
|
1276
|
+
CF: [
|
|
1277
|
+
"H",
|
|
1278
|
+
"h",
|
|
1279
|
+
"hB"
|
|
1280
|
+
],
|
|
1281
|
+
CG: [
|
|
1282
|
+
"H",
|
|
1283
|
+
"hB"
|
|
1284
|
+
],
|
|
1285
|
+
CH: [
|
|
1286
|
+
"H",
|
|
1287
|
+
"hB",
|
|
1288
|
+
"h"
|
|
1289
|
+
],
|
|
1290
|
+
CI: [
|
|
1291
|
+
"H",
|
|
1292
|
+
"hB"
|
|
1293
|
+
],
|
|
1294
|
+
CK: [
|
|
1295
|
+
"H",
|
|
1296
|
+
"h",
|
|
1297
|
+
"hb",
|
|
1298
|
+
"hB"
|
|
1299
|
+
],
|
|
1300
|
+
CL: [
|
|
1301
|
+
"h",
|
|
1302
|
+
"H",
|
|
1303
|
+
"hB",
|
|
1304
|
+
"hb"
|
|
1305
|
+
],
|
|
1306
|
+
CM: [
|
|
1307
|
+
"H",
|
|
1308
|
+
"h",
|
|
1309
|
+
"hB"
|
|
1310
|
+
],
|
|
1311
|
+
CN: [
|
|
1312
|
+
"H",
|
|
1313
|
+
"hB",
|
|
1314
|
+
"hb",
|
|
1315
|
+
"h"
|
|
1316
|
+
],
|
|
1317
|
+
CO: [
|
|
1318
|
+
"h",
|
|
1319
|
+
"H",
|
|
1320
|
+
"hB",
|
|
1321
|
+
"hb"
|
|
1322
|
+
],
|
|
1323
|
+
CP: [
|
|
1324
|
+
"H"
|
|
1325
|
+
],
|
|
1326
|
+
CR: [
|
|
1327
|
+
"h",
|
|
1328
|
+
"H",
|
|
1329
|
+
"hB",
|
|
1330
|
+
"hb"
|
|
1331
|
+
],
|
|
1332
|
+
CU: [
|
|
1333
|
+
"h",
|
|
1334
|
+
"H",
|
|
1335
|
+
"hB",
|
|
1336
|
+
"hb"
|
|
1337
|
+
],
|
|
1338
|
+
CV: [
|
|
1339
|
+
"H",
|
|
1340
|
+
"hB"
|
|
1341
|
+
],
|
|
1342
|
+
CW: [
|
|
1343
|
+
"H",
|
|
1344
|
+
"hB"
|
|
1345
|
+
],
|
|
1346
|
+
CX: [
|
|
1347
|
+
"H",
|
|
1348
|
+
"h",
|
|
1349
|
+
"hb",
|
|
1350
|
+
"hB"
|
|
1351
|
+
],
|
|
1352
|
+
CY: [
|
|
1353
|
+
"h",
|
|
1354
|
+
"H",
|
|
1355
|
+
"hb",
|
|
1356
|
+
"hB"
|
|
1357
|
+
],
|
|
1358
|
+
CZ: [
|
|
1359
|
+
"H"
|
|
1360
|
+
],
|
|
1361
|
+
DE: [
|
|
1362
|
+
"H",
|
|
1363
|
+
"hB"
|
|
1364
|
+
],
|
|
1365
|
+
DG: [
|
|
1366
|
+
"H",
|
|
1367
|
+
"h",
|
|
1368
|
+
"hb",
|
|
1369
|
+
"hB"
|
|
1370
|
+
],
|
|
1371
|
+
DJ: [
|
|
1372
|
+
"h",
|
|
1373
|
+
"H"
|
|
1374
|
+
],
|
|
1375
|
+
DK: [
|
|
1376
|
+
"H"
|
|
1377
|
+
],
|
|
1378
|
+
DM: [
|
|
1379
|
+
"h",
|
|
1380
|
+
"hb",
|
|
1381
|
+
"H",
|
|
1382
|
+
"hB"
|
|
1383
|
+
],
|
|
1384
|
+
DO: [
|
|
1385
|
+
"h",
|
|
1386
|
+
"H",
|
|
1387
|
+
"hB",
|
|
1388
|
+
"hb"
|
|
1389
|
+
],
|
|
1390
|
+
DZ: [
|
|
1391
|
+
"h",
|
|
1392
|
+
"hB",
|
|
1393
|
+
"hb",
|
|
1394
|
+
"H"
|
|
1395
|
+
],
|
|
1396
|
+
EA: [
|
|
1397
|
+
"H",
|
|
1398
|
+
"h",
|
|
1399
|
+
"hB",
|
|
1400
|
+
"hb"
|
|
1401
|
+
],
|
|
1402
|
+
EC: [
|
|
1403
|
+
"h",
|
|
1404
|
+
"H",
|
|
1405
|
+
"hB",
|
|
1406
|
+
"hb"
|
|
1407
|
+
],
|
|
1408
|
+
EE: [
|
|
1409
|
+
"H",
|
|
1410
|
+
"hB"
|
|
1411
|
+
],
|
|
1412
|
+
EG: [
|
|
1413
|
+
"h",
|
|
1414
|
+
"hB",
|
|
1415
|
+
"hb",
|
|
1416
|
+
"H"
|
|
1417
|
+
],
|
|
1418
|
+
EH: [
|
|
1419
|
+
"h",
|
|
1420
|
+
"hB",
|
|
1421
|
+
"hb",
|
|
1422
|
+
"H"
|
|
1423
|
+
],
|
|
1424
|
+
ER: [
|
|
1425
|
+
"h",
|
|
1426
|
+
"H"
|
|
1427
|
+
],
|
|
1428
|
+
ES: [
|
|
1429
|
+
"H",
|
|
1430
|
+
"hB",
|
|
1431
|
+
"h",
|
|
1432
|
+
"hb"
|
|
1433
|
+
],
|
|
1434
|
+
ET: [
|
|
1435
|
+
"hB",
|
|
1436
|
+
"hb",
|
|
1437
|
+
"h",
|
|
1438
|
+
"H"
|
|
1439
|
+
],
|
|
1440
|
+
FI: [
|
|
1441
|
+
"H"
|
|
1442
|
+
],
|
|
1443
|
+
FJ: [
|
|
1444
|
+
"h",
|
|
1445
|
+
"hb",
|
|
1446
|
+
"H",
|
|
1447
|
+
"hB"
|
|
1448
|
+
],
|
|
1449
|
+
FK: [
|
|
1450
|
+
"H",
|
|
1451
|
+
"h",
|
|
1452
|
+
"hb",
|
|
1453
|
+
"hB"
|
|
1454
|
+
],
|
|
1455
|
+
FM: [
|
|
1456
|
+
"h",
|
|
1457
|
+
"hb",
|
|
1458
|
+
"H",
|
|
1459
|
+
"hB"
|
|
1460
|
+
],
|
|
1461
|
+
FO: [
|
|
1462
|
+
"H",
|
|
1463
|
+
"h"
|
|
1464
|
+
],
|
|
1465
|
+
FR: [
|
|
1466
|
+
"H",
|
|
1467
|
+
"hB"
|
|
1468
|
+
],
|
|
1469
|
+
GA: [
|
|
1470
|
+
"H",
|
|
1471
|
+
"hB"
|
|
1472
|
+
],
|
|
1473
|
+
GB: [
|
|
1474
|
+
"H",
|
|
1475
|
+
"h",
|
|
1476
|
+
"hb",
|
|
1477
|
+
"hB"
|
|
1478
|
+
],
|
|
1479
|
+
GD: [
|
|
1480
|
+
"h",
|
|
1481
|
+
"hb",
|
|
1482
|
+
"H",
|
|
1483
|
+
"hB"
|
|
1484
|
+
],
|
|
1485
|
+
GE: [
|
|
1486
|
+
"H",
|
|
1487
|
+
"hB",
|
|
1488
|
+
"h"
|
|
1489
|
+
],
|
|
1490
|
+
GF: [
|
|
1491
|
+
"H",
|
|
1492
|
+
"hB"
|
|
1493
|
+
],
|
|
1494
|
+
GG: [
|
|
1495
|
+
"H",
|
|
1496
|
+
"h",
|
|
1497
|
+
"hb",
|
|
1498
|
+
"hB"
|
|
1499
|
+
],
|
|
1500
|
+
GH: [
|
|
1501
|
+
"h",
|
|
1502
|
+
"H"
|
|
1503
|
+
],
|
|
1504
|
+
GI: [
|
|
1505
|
+
"H",
|
|
1506
|
+
"h",
|
|
1507
|
+
"hb",
|
|
1508
|
+
"hB"
|
|
1509
|
+
],
|
|
1510
|
+
GL: [
|
|
1511
|
+
"H",
|
|
1512
|
+
"h"
|
|
1513
|
+
],
|
|
1514
|
+
GM: [
|
|
1515
|
+
"h",
|
|
1516
|
+
"hb",
|
|
1517
|
+
"H",
|
|
1518
|
+
"hB"
|
|
1519
|
+
],
|
|
1520
|
+
GN: [
|
|
1521
|
+
"H",
|
|
1522
|
+
"hB"
|
|
1523
|
+
],
|
|
1524
|
+
GP: [
|
|
1525
|
+
"H",
|
|
1526
|
+
"hB"
|
|
1527
|
+
],
|
|
1528
|
+
GQ: [
|
|
1529
|
+
"H",
|
|
1530
|
+
"hB",
|
|
1531
|
+
"h",
|
|
1532
|
+
"hb"
|
|
1533
|
+
],
|
|
1534
|
+
GR: [
|
|
1535
|
+
"h",
|
|
1536
|
+
"H",
|
|
1537
|
+
"hb",
|
|
1538
|
+
"hB"
|
|
1539
|
+
],
|
|
1540
|
+
GT: [
|
|
1541
|
+
"h",
|
|
1542
|
+
"H",
|
|
1543
|
+
"hB",
|
|
1544
|
+
"hb"
|
|
1545
|
+
],
|
|
1546
|
+
GU: [
|
|
1547
|
+
"h",
|
|
1548
|
+
"hb",
|
|
1549
|
+
"H",
|
|
1550
|
+
"hB"
|
|
1551
|
+
],
|
|
1552
|
+
GW: [
|
|
1553
|
+
"H",
|
|
1554
|
+
"hB"
|
|
1555
|
+
],
|
|
1556
|
+
GY: [
|
|
1557
|
+
"h",
|
|
1558
|
+
"hb",
|
|
1559
|
+
"H",
|
|
1560
|
+
"hB"
|
|
1561
|
+
],
|
|
1562
|
+
HK: [
|
|
1563
|
+
"h",
|
|
1564
|
+
"hB",
|
|
1565
|
+
"hb",
|
|
1566
|
+
"H"
|
|
1567
|
+
],
|
|
1568
|
+
HN: [
|
|
1569
|
+
"h",
|
|
1570
|
+
"H",
|
|
1571
|
+
"hB",
|
|
1572
|
+
"hb"
|
|
1573
|
+
],
|
|
1574
|
+
HR: [
|
|
1575
|
+
"H",
|
|
1576
|
+
"hB"
|
|
1577
|
+
],
|
|
1578
|
+
HU: [
|
|
1579
|
+
"H",
|
|
1580
|
+
"h"
|
|
1581
|
+
],
|
|
1582
|
+
IC: [
|
|
1583
|
+
"H",
|
|
1584
|
+
"h",
|
|
1585
|
+
"hB",
|
|
1586
|
+
"hb"
|
|
1587
|
+
],
|
|
1588
|
+
ID: [
|
|
1589
|
+
"H"
|
|
1590
|
+
],
|
|
1591
|
+
IE: [
|
|
1592
|
+
"H",
|
|
1593
|
+
"h",
|
|
1594
|
+
"hb",
|
|
1595
|
+
"hB"
|
|
1596
|
+
],
|
|
1597
|
+
IL: [
|
|
1598
|
+
"H",
|
|
1599
|
+
"hB"
|
|
1600
|
+
],
|
|
1601
|
+
IM: [
|
|
1602
|
+
"H",
|
|
1603
|
+
"h",
|
|
1604
|
+
"hb",
|
|
1605
|
+
"hB"
|
|
1606
|
+
],
|
|
1607
|
+
IN: [
|
|
1608
|
+
"h",
|
|
1609
|
+
"H"
|
|
1610
|
+
],
|
|
1611
|
+
IO: [
|
|
1612
|
+
"H",
|
|
1613
|
+
"h",
|
|
1614
|
+
"hb",
|
|
1615
|
+
"hB"
|
|
1616
|
+
],
|
|
1617
|
+
IQ: [
|
|
1618
|
+
"h",
|
|
1619
|
+
"hB",
|
|
1620
|
+
"hb",
|
|
1621
|
+
"H"
|
|
1622
|
+
],
|
|
1623
|
+
IR: [
|
|
1624
|
+
"hB",
|
|
1625
|
+
"H"
|
|
1626
|
+
],
|
|
1627
|
+
IS: [
|
|
1628
|
+
"H"
|
|
1629
|
+
],
|
|
1630
|
+
IT: [
|
|
1631
|
+
"H",
|
|
1632
|
+
"hB"
|
|
1633
|
+
],
|
|
1634
|
+
JE: [
|
|
1635
|
+
"H",
|
|
1636
|
+
"h",
|
|
1637
|
+
"hb",
|
|
1638
|
+
"hB"
|
|
1639
|
+
],
|
|
1640
|
+
JM: [
|
|
1641
|
+
"h",
|
|
1642
|
+
"hb",
|
|
1643
|
+
"H",
|
|
1644
|
+
"hB"
|
|
1645
|
+
],
|
|
1646
|
+
JO: [
|
|
1647
|
+
"h",
|
|
1648
|
+
"hB",
|
|
1649
|
+
"hb",
|
|
1650
|
+
"H"
|
|
1651
|
+
],
|
|
1652
|
+
JP: [
|
|
1653
|
+
"H",
|
|
1654
|
+
"K",
|
|
1655
|
+
"h"
|
|
1656
|
+
],
|
|
1657
|
+
KE: [
|
|
1658
|
+
"hB",
|
|
1659
|
+
"hb",
|
|
1660
|
+
"H",
|
|
1661
|
+
"h"
|
|
1662
|
+
],
|
|
1663
|
+
KG: [
|
|
1664
|
+
"H",
|
|
1665
|
+
"h",
|
|
1666
|
+
"hB",
|
|
1667
|
+
"hb"
|
|
1668
|
+
],
|
|
1669
|
+
KH: [
|
|
1670
|
+
"hB",
|
|
1671
|
+
"h",
|
|
1672
|
+
"H",
|
|
1673
|
+
"hb"
|
|
1674
|
+
],
|
|
1675
|
+
KI: [
|
|
1676
|
+
"h",
|
|
1677
|
+
"hb",
|
|
1678
|
+
"H",
|
|
1679
|
+
"hB"
|
|
1680
|
+
],
|
|
1681
|
+
KM: [
|
|
1682
|
+
"H",
|
|
1683
|
+
"h",
|
|
1684
|
+
"hB",
|
|
1685
|
+
"hb"
|
|
1686
|
+
],
|
|
1687
|
+
KN: [
|
|
1688
|
+
"h",
|
|
1689
|
+
"hb",
|
|
1690
|
+
"H",
|
|
1691
|
+
"hB"
|
|
1692
|
+
],
|
|
1693
|
+
KP: [
|
|
1694
|
+
"h",
|
|
1695
|
+
"H",
|
|
1696
|
+
"hB",
|
|
1697
|
+
"hb"
|
|
1698
|
+
],
|
|
1699
|
+
KR: [
|
|
1700
|
+
"h",
|
|
1701
|
+
"H",
|
|
1702
|
+
"hB",
|
|
1703
|
+
"hb"
|
|
1704
|
+
],
|
|
1705
|
+
KW: [
|
|
1706
|
+
"h",
|
|
1707
|
+
"hB",
|
|
1708
|
+
"hb",
|
|
1709
|
+
"H"
|
|
1710
|
+
],
|
|
1711
|
+
KY: [
|
|
1712
|
+
"h",
|
|
1713
|
+
"hb",
|
|
1714
|
+
"H",
|
|
1715
|
+
"hB"
|
|
1716
|
+
],
|
|
1717
|
+
KZ: [
|
|
1718
|
+
"H",
|
|
1719
|
+
"hB"
|
|
1720
|
+
],
|
|
1721
|
+
LA: [
|
|
1722
|
+
"H",
|
|
1723
|
+
"hb",
|
|
1724
|
+
"hB",
|
|
1725
|
+
"h"
|
|
1726
|
+
],
|
|
1727
|
+
LB: [
|
|
1728
|
+
"h",
|
|
1729
|
+
"hB",
|
|
1730
|
+
"hb",
|
|
1731
|
+
"H"
|
|
1732
|
+
],
|
|
1733
|
+
LC: [
|
|
1734
|
+
"h",
|
|
1735
|
+
"hb",
|
|
1736
|
+
"H",
|
|
1737
|
+
"hB"
|
|
1738
|
+
],
|
|
1739
|
+
LI: [
|
|
1740
|
+
"H",
|
|
1741
|
+
"hB",
|
|
1742
|
+
"h"
|
|
1743
|
+
],
|
|
1744
|
+
LK: [
|
|
1745
|
+
"H",
|
|
1746
|
+
"h",
|
|
1747
|
+
"hB",
|
|
1748
|
+
"hb"
|
|
1749
|
+
],
|
|
1750
|
+
LR: [
|
|
1751
|
+
"h",
|
|
1752
|
+
"hb",
|
|
1753
|
+
"H",
|
|
1754
|
+
"hB"
|
|
1755
|
+
],
|
|
1756
|
+
LS: [
|
|
1757
|
+
"h",
|
|
1758
|
+
"H"
|
|
1759
|
+
],
|
|
1760
|
+
LT: [
|
|
1761
|
+
"H",
|
|
1762
|
+
"h",
|
|
1763
|
+
"hb",
|
|
1764
|
+
"hB"
|
|
1765
|
+
],
|
|
1766
|
+
LU: [
|
|
1767
|
+
"H",
|
|
1768
|
+
"h",
|
|
1769
|
+
"hB"
|
|
1770
|
+
],
|
|
1771
|
+
LV: [
|
|
1772
|
+
"H",
|
|
1773
|
+
"hB",
|
|
1774
|
+
"hb",
|
|
1775
|
+
"h"
|
|
1776
|
+
],
|
|
1777
|
+
LY: [
|
|
1778
|
+
"h",
|
|
1779
|
+
"hB",
|
|
1780
|
+
"hb",
|
|
1781
|
+
"H"
|
|
1782
|
+
],
|
|
1783
|
+
MA: [
|
|
1784
|
+
"H",
|
|
1785
|
+
"h",
|
|
1786
|
+
"hB",
|
|
1787
|
+
"hb"
|
|
1788
|
+
],
|
|
1789
|
+
MC: [
|
|
1790
|
+
"H",
|
|
1791
|
+
"hB"
|
|
1792
|
+
],
|
|
1793
|
+
MD: [
|
|
1794
|
+
"H",
|
|
1795
|
+
"hB"
|
|
1796
|
+
],
|
|
1797
|
+
ME: [
|
|
1798
|
+
"H",
|
|
1799
|
+
"hB",
|
|
1800
|
+
"h"
|
|
1801
|
+
],
|
|
1802
|
+
MF: [
|
|
1803
|
+
"H",
|
|
1804
|
+
"hB"
|
|
1805
|
+
],
|
|
1806
|
+
MG: [
|
|
1807
|
+
"H",
|
|
1808
|
+
"h"
|
|
1809
|
+
],
|
|
1810
|
+
MH: [
|
|
1811
|
+
"h",
|
|
1812
|
+
"hb",
|
|
1813
|
+
"H",
|
|
1814
|
+
"hB"
|
|
1815
|
+
],
|
|
1816
|
+
MK: [
|
|
1817
|
+
"H",
|
|
1818
|
+
"h",
|
|
1819
|
+
"hb",
|
|
1820
|
+
"hB"
|
|
1821
|
+
],
|
|
1822
|
+
ML: [
|
|
1823
|
+
"H"
|
|
1824
|
+
],
|
|
1825
|
+
MM: [
|
|
1826
|
+
"hB",
|
|
1827
|
+
"hb",
|
|
1828
|
+
"H",
|
|
1829
|
+
"h"
|
|
1830
|
+
],
|
|
1831
|
+
MN: [
|
|
1832
|
+
"H",
|
|
1833
|
+
"h",
|
|
1834
|
+
"hb",
|
|
1835
|
+
"hB"
|
|
1836
|
+
],
|
|
1837
|
+
MO: [
|
|
1838
|
+
"h",
|
|
1839
|
+
"hB",
|
|
1840
|
+
"hb",
|
|
1841
|
+
"H"
|
|
1842
|
+
],
|
|
1843
|
+
MP: [
|
|
1844
|
+
"h",
|
|
1845
|
+
"hb",
|
|
1846
|
+
"H",
|
|
1847
|
+
"hB"
|
|
1848
|
+
],
|
|
1849
|
+
MQ: [
|
|
1850
|
+
"H",
|
|
1851
|
+
"hB"
|
|
1852
|
+
],
|
|
1853
|
+
MR: [
|
|
1854
|
+
"h",
|
|
1855
|
+
"hB",
|
|
1856
|
+
"hb",
|
|
1857
|
+
"H"
|
|
1858
|
+
],
|
|
1859
|
+
MS: [
|
|
1860
|
+
"H",
|
|
1861
|
+
"h",
|
|
1862
|
+
"hb",
|
|
1863
|
+
"hB"
|
|
1864
|
+
],
|
|
1865
|
+
MT: [
|
|
1866
|
+
"H",
|
|
1867
|
+
"h"
|
|
1868
|
+
],
|
|
1869
|
+
MU: [
|
|
1870
|
+
"H",
|
|
1871
|
+
"h"
|
|
1872
|
+
],
|
|
1873
|
+
MV: [
|
|
1874
|
+
"H",
|
|
1875
|
+
"h"
|
|
1876
|
+
],
|
|
1877
|
+
MW: [
|
|
1878
|
+
"h",
|
|
1879
|
+
"hb",
|
|
1880
|
+
"H",
|
|
1881
|
+
"hB"
|
|
1882
|
+
],
|
|
1883
|
+
MX: [
|
|
1884
|
+
"h",
|
|
1885
|
+
"H",
|
|
1886
|
+
"hB",
|
|
1887
|
+
"hb"
|
|
1888
|
+
],
|
|
1889
|
+
MY: [
|
|
1890
|
+
"hb",
|
|
1891
|
+
"hB",
|
|
1892
|
+
"h",
|
|
1893
|
+
"H"
|
|
1894
|
+
],
|
|
1895
|
+
MZ: [
|
|
1896
|
+
"H",
|
|
1897
|
+
"hB"
|
|
1898
|
+
],
|
|
1899
|
+
NA: [
|
|
1900
|
+
"h",
|
|
1901
|
+
"H",
|
|
1902
|
+
"hB",
|
|
1903
|
+
"hb"
|
|
1904
|
+
],
|
|
1905
|
+
NC: [
|
|
1906
|
+
"H",
|
|
1907
|
+
"hB"
|
|
1908
|
+
],
|
|
1909
|
+
NE: [
|
|
1910
|
+
"H"
|
|
1911
|
+
],
|
|
1912
|
+
NF: [
|
|
1913
|
+
"H",
|
|
1914
|
+
"h",
|
|
1915
|
+
"hb",
|
|
1916
|
+
"hB"
|
|
1917
|
+
],
|
|
1918
|
+
NG: [
|
|
1919
|
+
"H",
|
|
1920
|
+
"h",
|
|
1921
|
+
"hb",
|
|
1922
|
+
"hB"
|
|
1923
|
+
],
|
|
1924
|
+
NI: [
|
|
1925
|
+
"h",
|
|
1926
|
+
"H",
|
|
1927
|
+
"hB",
|
|
1928
|
+
"hb"
|
|
1929
|
+
],
|
|
1930
|
+
NL: [
|
|
1931
|
+
"H",
|
|
1932
|
+
"hB"
|
|
1933
|
+
],
|
|
1934
|
+
NO: [
|
|
1935
|
+
"H",
|
|
1936
|
+
"h"
|
|
1937
|
+
],
|
|
1938
|
+
NP: [
|
|
1939
|
+
"H",
|
|
1940
|
+
"h",
|
|
1941
|
+
"hB"
|
|
1942
|
+
],
|
|
1943
|
+
NR: [
|
|
1944
|
+
"H",
|
|
1945
|
+
"h",
|
|
1946
|
+
"hb",
|
|
1947
|
+
"hB"
|
|
1948
|
+
],
|
|
1949
|
+
NU: [
|
|
1950
|
+
"H",
|
|
1951
|
+
"h",
|
|
1952
|
+
"hb",
|
|
1953
|
+
"hB"
|
|
1954
|
+
],
|
|
1955
|
+
NZ: [
|
|
1956
|
+
"h",
|
|
1957
|
+
"hb",
|
|
1958
|
+
"H",
|
|
1959
|
+
"hB"
|
|
1960
|
+
],
|
|
1961
|
+
OM: [
|
|
1962
|
+
"h",
|
|
1963
|
+
"hB",
|
|
1964
|
+
"hb",
|
|
1965
|
+
"H"
|
|
1966
|
+
],
|
|
1967
|
+
PA: [
|
|
1968
|
+
"h",
|
|
1969
|
+
"H",
|
|
1970
|
+
"hB",
|
|
1971
|
+
"hb"
|
|
1972
|
+
],
|
|
1973
|
+
PE: [
|
|
1974
|
+
"h",
|
|
1975
|
+
"H",
|
|
1976
|
+
"hB",
|
|
1977
|
+
"hb"
|
|
1978
|
+
],
|
|
1979
|
+
PF: [
|
|
1980
|
+
"H",
|
|
1981
|
+
"h",
|
|
1982
|
+
"hB"
|
|
1983
|
+
],
|
|
1984
|
+
PG: [
|
|
1985
|
+
"h",
|
|
1986
|
+
"H"
|
|
1987
|
+
],
|
|
1988
|
+
PH: [
|
|
1989
|
+
"h",
|
|
1990
|
+
"hB",
|
|
1991
|
+
"hb",
|
|
1992
|
+
"H"
|
|
1993
|
+
],
|
|
1994
|
+
PK: [
|
|
1995
|
+
"h",
|
|
1996
|
+
"hB",
|
|
1997
|
+
"H"
|
|
1998
|
+
],
|
|
1999
|
+
PL: [
|
|
2000
|
+
"H",
|
|
2001
|
+
"h"
|
|
2002
|
+
],
|
|
2003
|
+
PM: [
|
|
2004
|
+
"H",
|
|
2005
|
+
"hB"
|
|
2006
|
+
],
|
|
2007
|
+
PN: [
|
|
2008
|
+
"H",
|
|
2009
|
+
"h",
|
|
2010
|
+
"hb",
|
|
2011
|
+
"hB"
|
|
2012
|
+
],
|
|
2013
|
+
PR: [
|
|
2014
|
+
"h",
|
|
2015
|
+
"H",
|
|
2016
|
+
"hB",
|
|
2017
|
+
"hb"
|
|
2018
|
+
],
|
|
2019
|
+
PS: [
|
|
2020
|
+
"h",
|
|
2021
|
+
"hB",
|
|
2022
|
+
"hb",
|
|
2023
|
+
"H"
|
|
2024
|
+
],
|
|
2025
|
+
PT: [
|
|
2026
|
+
"H",
|
|
2027
|
+
"hB"
|
|
2028
|
+
],
|
|
2029
|
+
PW: [
|
|
2030
|
+
"h",
|
|
2031
|
+
"H"
|
|
2032
|
+
],
|
|
2033
|
+
PY: [
|
|
2034
|
+
"h",
|
|
2035
|
+
"H",
|
|
2036
|
+
"hB",
|
|
2037
|
+
"hb"
|
|
2038
|
+
],
|
|
2039
|
+
QA: [
|
|
2040
|
+
"h",
|
|
2041
|
+
"hB",
|
|
2042
|
+
"hb",
|
|
2043
|
+
"H"
|
|
2044
|
+
],
|
|
2045
|
+
RE: [
|
|
2046
|
+
"H",
|
|
2047
|
+
"hB"
|
|
2048
|
+
],
|
|
2049
|
+
RO: [
|
|
2050
|
+
"H",
|
|
2051
|
+
"hB"
|
|
2052
|
+
],
|
|
2053
|
+
RS: [
|
|
2054
|
+
"H",
|
|
2055
|
+
"hB",
|
|
2056
|
+
"h"
|
|
2057
|
+
],
|
|
2058
|
+
RU: [
|
|
2059
|
+
"H"
|
|
2060
|
+
],
|
|
2061
|
+
RW: [
|
|
2062
|
+
"H",
|
|
2063
|
+
"h"
|
|
2064
|
+
],
|
|
2065
|
+
SA: [
|
|
2066
|
+
"h",
|
|
2067
|
+
"hB",
|
|
2068
|
+
"hb",
|
|
2069
|
+
"H"
|
|
2070
|
+
],
|
|
2071
|
+
SB: [
|
|
2072
|
+
"h",
|
|
2073
|
+
"hb",
|
|
2074
|
+
"H",
|
|
2075
|
+
"hB"
|
|
2076
|
+
],
|
|
2077
|
+
SC: [
|
|
2078
|
+
"H",
|
|
2079
|
+
"h",
|
|
2080
|
+
"hB"
|
|
2081
|
+
],
|
|
2082
|
+
SD: [
|
|
2083
|
+
"h",
|
|
2084
|
+
"hB",
|
|
2085
|
+
"hb",
|
|
2086
|
+
"H"
|
|
2087
|
+
],
|
|
2088
|
+
SE: [
|
|
2089
|
+
"H"
|
|
2090
|
+
],
|
|
2091
|
+
SG: [
|
|
2092
|
+
"h",
|
|
2093
|
+
"hb",
|
|
2094
|
+
"H",
|
|
2095
|
+
"hB"
|
|
2096
|
+
],
|
|
2097
|
+
SH: [
|
|
2098
|
+
"H",
|
|
2099
|
+
"h",
|
|
2100
|
+
"hb",
|
|
2101
|
+
"hB"
|
|
2102
|
+
],
|
|
2103
|
+
SI: [
|
|
2104
|
+
"H",
|
|
2105
|
+
"hB"
|
|
2106
|
+
],
|
|
2107
|
+
SJ: [
|
|
2108
|
+
"H"
|
|
2109
|
+
],
|
|
2110
|
+
SK: [
|
|
2111
|
+
"H"
|
|
2112
|
+
],
|
|
2113
|
+
SL: [
|
|
2114
|
+
"h",
|
|
2115
|
+
"hb",
|
|
2116
|
+
"H",
|
|
2117
|
+
"hB"
|
|
2118
|
+
],
|
|
2119
|
+
SM: [
|
|
2120
|
+
"H",
|
|
2121
|
+
"h",
|
|
2122
|
+
"hB"
|
|
2123
|
+
],
|
|
2124
|
+
SN: [
|
|
2125
|
+
"H",
|
|
2126
|
+
"h",
|
|
2127
|
+
"hB"
|
|
2128
|
+
],
|
|
2129
|
+
SO: [
|
|
2130
|
+
"h",
|
|
2131
|
+
"H"
|
|
2132
|
+
],
|
|
2133
|
+
SR: [
|
|
2134
|
+
"H",
|
|
2135
|
+
"hB"
|
|
2136
|
+
],
|
|
2137
|
+
SS: [
|
|
2138
|
+
"h",
|
|
2139
|
+
"hb",
|
|
2140
|
+
"H",
|
|
2141
|
+
"hB"
|
|
2142
|
+
],
|
|
2143
|
+
ST: [
|
|
2144
|
+
"H",
|
|
2145
|
+
"hB"
|
|
2146
|
+
],
|
|
2147
|
+
SV: [
|
|
2148
|
+
"h",
|
|
2149
|
+
"H",
|
|
2150
|
+
"hB",
|
|
2151
|
+
"hb"
|
|
2152
|
+
],
|
|
2153
|
+
SX: [
|
|
2154
|
+
"H",
|
|
2155
|
+
"h",
|
|
2156
|
+
"hb",
|
|
2157
|
+
"hB"
|
|
2158
|
+
],
|
|
2159
|
+
SY: [
|
|
2160
|
+
"h",
|
|
2161
|
+
"hB",
|
|
2162
|
+
"hb",
|
|
2163
|
+
"H"
|
|
2164
|
+
],
|
|
2165
|
+
SZ: [
|
|
2166
|
+
"h",
|
|
2167
|
+
"hb",
|
|
2168
|
+
"H",
|
|
2169
|
+
"hB"
|
|
2170
|
+
],
|
|
2171
|
+
TA: [
|
|
2172
|
+
"H",
|
|
2173
|
+
"h",
|
|
2174
|
+
"hb",
|
|
2175
|
+
"hB"
|
|
2176
|
+
],
|
|
2177
|
+
TC: [
|
|
2178
|
+
"h",
|
|
2179
|
+
"hb",
|
|
2180
|
+
"H",
|
|
2181
|
+
"hB"
|
|
2182
|
+
],
|
|
2183
|
+
TD: [
|
|
2184
|
+
"h",
|
|
2185
|
+
"H",
|
|
2186
|
+
"hB"
|
|
2187
|
+
],
|
|
2188
|
+
TF: [
|
|
2189
|
+
"H",
|
|
2190
|
+
"h",
|
|
2191
|
+
"hB"
|
|
2192
|
+
],
|
|
2193
|
+
TG: [
|
|
2194
|
+
"H",
|
|
2195
|
+
"hB"
|
|
2196
|
+
],
|
|
2197
|
+
TH: [
|
|
2198
|
+
"H",
|
|
2199
|
+
"h"
|
|
2200
|
+
],
|
|
2201
|
+
TJ: [
|
|
2202
|
+
"H",
|
|
2203
|
+
"h"
|
|
2204
|
+
],
|
|
2205
|
+
TL: [
|
|
2206
|
+
"H",
|
|
2207
|
+
"hB",
|
|
2208
|
+
"hb",
|
|
2209
|
+
"h"
|
|
2210
|
+
],
|
|
2211
|
+
TM: [
|
|
2212
|
+
"H",
|
|
2213
|
+
"h"
|
|
2214
|
+
],
|
|
2215
|
+
TN: [
|
|
2216
|
+
"h",
|
|
2217
|
+
"hB",
|
|
2218
|
+
"hb",
|
|
2219
|
+
"H"
|
|
2220
|
+
],
|
|
2221
|
+
TO: [
|
|
2222
|
+
"h",
|
|
2223
|
+
"H"
|
|
2224
|
+
],
|
|
2225
|
+
TR: [
|
|
2226
|
+
"H",
|
|
2227
|
+
"hB"
|
|
2228
|
+
],
|
|
2229
|
+
TT: [
|
|
2230
|
+
"h",
|
|
2231
|
+
"hb",
|
|
2232
|
+
"H",
|
|
2233
|
+
"hB"
|
|
2234
|
+
],
|
|
2235
|
+
TW: [
|
|
2236
|
+
"hB",
|
|
2237
|
+
"hb",
|
|
2238
|
+
"h",
|
|
2239
|
+
"H"
|
|
2240
|
+
],
|
|
2241
|
+
TZ: [
|
|
2242
|
+
"hB",
|
|
2243
|
+
"hb",
|
|
2244
|
+
"H",
|
|
2245
|
+
"h"
|
|
2246
|
+
],
|
|
2247
|
+
UA: [
|
|
2248
|
+
"H",
|
|
2249
|
+
"hB",
|
|
2250
|
+
"h"
|
|
2251
|
+
],
|
|
2252
|
+
UG: [
|
|
2253
|
+
"hB",
|
|
2254
|
+
"hb",
|
|
2255
|
+
"H",
|
|
2256
|
+
"h"
|
|
2257
|
+
],
|
|
2258
|
+
UM: [
|
|
2259
|
+
"h",
|
|
2260
|
+
"hb",
|
|
2261
|
+
"H",
|
|
2262
|
+
"hB"
|
|
2263
|
+
],
|
|
2264
|
+
US: [
|
|
2265
|
+
"h",
|
|
2266
|
+
"hb",
|
|
2267
|
+
"H",
|
|
2268
|
+
"hB"
|
|
2269
|
+
],
|
|
2270
|
+
UY: [
|
|
2271
|
+
"h",
|
|
2272
|
+
"H",
|
|
2273
|
+
"hB",
|
|
2274
|
+
"hb"
|
|
2275
|
+
],
|
|
2276
|
+
UZ: [
|
|
2277
|
+
"H",
|
|
2278
|
+
"hB",
|
|
2279
|
+
"h"
|
|
2280
|
+
],
|
|
2281
|
+
VA: [
|
|
2282
|
+
"H",
|
|
2283
|
+
"h",
|
|
2284
|
+
"hB"
|
|
2285
|
+
],
|
|
2286
|
+
VC: [
|
|
2287
|
+
"h",
|
|
2288
|
+
"hb",
|
|
2289
|
+
"H",
|
|
2290
|
+
"hB"
|
|
2291
|
+
],
|
|
2292
|
+
VE: [
|
|
2293
|
+
"h",
|
|
2294
|
+
"H",
|
|
2295
|
+
"hB",
|
|
2296
|
+
"hb"
|
|
2297
|
+
],
|
|
2298
|
+
VG: [
|
|
2299
|
+
"h",
|
|
2300
|
+
"hb",
|
|
2301
|
+
"H",
|
|
2302
|
+
"hB"
|
|
2303
|
+
],
|
|
2304
|
+
VI: [
|
|
2305
|
+
"h",
|
|
2306
|
+
"hb",
|
|
2307
|
+
"H",
|
|
2308
|
+
"hB"
|
|
2309
|
+
],
|
|
2310
|
+
VN: [
|
|
2311
|
+
"H",
|
|
2312
|
+
"h"
|
|
2313
|
+
],
|
|
2314
|
+
VU: [
|
|
2315
|
+
"h",
|
|
2316
|
+
"H"
|
|
2317
|
+
],
|
|
2318
|
+
WF: [
|
|
2319
|
+
"H",
|
|
2320
|
+
"hB"
|
|
2321
|
+
],
|
|
2322
|
+
WS: [
|
|
2323
|
+
"h",
|
|
2324
|
+
"H"
|
|
2325
|
+
],
|
|
2326
|
+
XK: [
|
|
2327
|
+
"H",
|
|
2328
|
+
"hB",
|
|
2329
|
+
"h"
|
|
2330
|
+
],
|
|
2331
|
+
YE: [
|
|
2332
|
+
"h",
|
|
2333
|
+
"hB",
|
|
2334
|
+
"hb",
|
|
2335
|
+
"H"
|
|
2336
|
+
],
|
|
2337
|
+
YT: [
|
|
2338
|
+
"H",
|
|
2339
|
+
"hB"
|
|
2340
|
+
],
|
|
2341
|
+
ZA: [
|
|
2342
|
+
"H",
|
|
2343
|
+
"h",
|
|
2344
|
+
"hb",
|
|
2345
|
+
"hB"
|
|
2346
|
+
],
|
|
2347
|
+
ZM: [
|
|
2348
|
+
"h",
|
|
2349
|
+
"hb",
|
|
2350
|
+
"H",
|
|
2351
|
+
"hB"
|
|
2352
|
+
],
|
|
2353
|
+
ZW: [
|
|
2354
|
+
"H",
|
|
2355
|
+
"h"
|
|
2356
|
+
],
|
|
2357
|
+
"af-ZA": [
|
|
2358
|
+
"H",
|
|
2359
|
+
"h",
|
|
2360
|
+
"hB",
|
|
2361
|
+
"hb"
|
|
2362
|
+
],
|
|
2363
|
+
"ar-001": [
|
|
2364
|
+
"h",
|
|
2365
|
+
"hB",
|
|
2366
|
+
"hb",
|
|
2367
|
+
"H"
|
|
2368
|
+
],
|
|
2369
|
+
"ca-ES": [
|
|
2370
|
+
"H",
|
|
2371
|
+
"h",
|
|
2372
|
+
"hB"
|
|
2373
|
+
],
|
|
2374
|
+
"en-001": [
|
|
2375
|
+
"h",
|
|
2376
|
+
"hb",
|
|
2377
|
+
"H",
|
|
2378
|
+
"hB"
|
|
2379
|
+
],
|
|
2380
|
+
"en-HK": [
|
|
2381
|
+
"h",
|
|
2382
|
+
"hb",
|
|
2383
|
+
"H",
|
|
2384
|
+
"hB"
|
|
2385
|
+
],
|
|
2386
|
+
"en-IL": [
|
|
2387
|
+
"H",
|
|
2388
|
+
"h",
|
|
2389
|
+
"hb",
|
|
2390
|
+
"hB"
|
|
2391
|
+
],
|
|
2392
|
+
"en-MY": [
|
|
2393
|
+
"h",
|
|
2394
|
+
"hb",
|
|
2395
|
+
"H",
|
|
2396
|
+
"hB"
|
|
2397
|
+
],
|
|
2398
|
+
"es-BR": [
|
|
2399
|
+
"H",
|
|
2400
|
+
"h",
|
|
2401
|
+
"hB",
|
|
2402
|
+
"hb"
|
|
2403
|
+
],
|
|
2404
|
+
"es-ES": [
|
|
2405
|
+
"H",
|
|
2406
|
+
"h",
|
|
2407
|
+
"hB",
|
|
2408
|
+
"hb"
|
|
2409
|
+
],
|
|
2410
|
+
"es-GQ": [
|
|
2411
|
+
"H",
|
|
2412
|
+
"h",
|
|
2413
|
+
"hB",
|
|
2414
|
+
"hb"
|
|
2415
|
+
],
|
|
2416
|
+
"fr-CA": [
|
|
2417
|
+
"H",
|
|
2418
|
+
"h",
|
|
2419
|
+
"hB"
|
|
2420
|
+
],
|
|
2421
|
+
"gl-ES": [
|
|
2422
|
+
"H",
|
|
2423
|
+
"h",
|
|
2424
|
+
"hB"
|
|
2425
|
+
],
|
|
2426
|
+
"gu-IN": [
|
|
2427
|
+
"hB",
|
|
2428
|
+
"hb",
|
|
2429
|
+
"h",
|
|
2430
|
+
"H"
|
|
2431
|
+
],
|
|
2432
|
+
"hi-IN": [
|
|
2433
|
+
"hB",
|
|
2434
|
+
"h",
|
|
2435
|
+
"H"
|
|
2436
|
+
],
|
|
2437
|
+
"it-CH": [
|
|
2438
|
+
"H",
|
|
2439
|
+
"h",
|
|
2440
|
+
"hB"
|
|
2441
|
+
],
|
|
2442
|
+
"it-IT": [
|
|
2443
|
+
"H",
|
|
2444
|
+
"h",
|
|
2445
|
+
"hB"
|
|
2446
|
+
],
|
|
2447
|
+
"kn-IN": [
|
|
2448
|
+
"hB",
|
|
2449
|
+
"h",
|
|
2450
|
+
"H"
|
|
2451
|
+
],
|
|
2452
|
+
"ml-IN": [
|
|
2453
|
+
"hB",
|
|
2454
|
+
"h",
|
|
2455
|
+
"H"
|
|
2456
|
+
],
|
|
2457
|
+
"mr-IN": [
|
|
2458
|
+
"hB",
|
|
2459
|
+
"hb",
|
|
2460
|
+
"h",
|
|
2461
|
+
"H"
|
|
2462
|
+
],
|
|
2463
|
+
"pa-IN": [
|
|
2464
|
+
"hB",
|
|
2465
|
+
"hb",
|
|
2466
|
+
"h",
|
|
2467
|
+
"H"
|
|
2468
|
+
],
|
|
2469
|
+
"ta-IN": [
|
|
2470
|
+
"hB",
|
|
2471
|
+
"h",
|
|
2472
|
+
"hb",
|
|
2473
|
+
"H"
|
|
2474
|
+
],
|
|
2475
|
+
"te-IN": [
|
|
2476
|
+
"hB",
|
|
2477
|
+
"h",
|
|
2478
|
+
"H"
|
|
2479
|
+
],
|
|
2480
|
+
"zu-ZA": [
|
|
2481
|
+
"H",
|
|
2482
|
+
"hB",
|
|
2483
|
+
"hb",
|
|
2484
|
+
"h"
|
|
2485
|
+
]
|
|
2486
|
+
};
|
|
2487
|
+
function Xr(e, t) {
|
|
2488
|
+
for (var n = "", r = 0; r < e.length; r++) {
|
|
2489
|
+
var i = e.charAt(r);
|
|
2490
|
+
if (i === "j") {
|
|
2491
|
+
for (var o = 0; r + 1 < e.length && e.charAt(r + 1) === i; )
|
|
2492
|
+
o++, r++;
|
|
2493
|
+
var l = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), u = "a", a = Wr(t);
|
|
2494
|
+
for ((a == "H" || a == "k") && (s = 0); s-- > 0; )
|
|
2495
|
+
n += u;
|
|
2496
|
+
for (; l-- > 0; )
|
|
2497
|
+
n = a + n;
|
|
2498
|
+
} else
|
|
2499
|
+
i === "J" ? n += "H" : n += i;
|
|
2500
|
+
}
|
|
2501
|
+
return n;
|
|
2502
|
+
}
|
|
2503
|
+
function Wr(e) {
|
|
2504
|
+
var t = e.hourCycle;
|
|
2505
|
+
if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
|
|
2506
|
+
e.hourCycles && // @ts-ignore
|
|
2507
|
+
e.hourCycles.length && (t = e.hourCycles[0]), t)
|
|
2508
|
+
switch (t) {
|
|
2509
|
+
case "h24":
|
|
2510
|
+
return "k";
|
|
2511
|
+
case "h23":
|
|
2512
|
+
return "H";
|
|
2513
|
+
case "h12":
|
|
2514
|
+
return "h";
|
|
2515
|
+
case "h11":
|
|
2516
|
+
return "K";
|
|
2517
|
+
default:
|
|
2518
|
+
throw new Error("Invalid hourCycle");
|
|
2519
|
+
}
|
|
2520
|
+
var n = e.language, r;
|
|
2521
|
+
n !== "root" && (r = e.maximize().region);
|
|
2522
|
+
var i = We[r || ""] || We[n || ""] || We["".concat(n, "-001")] || We["001"];
|
|
2523
|
+
return i[0];
|
|
2524
|
+
}
|
|
2525
|
+
var ct, Zr = new RegExp("^".concat(dn.source, "*")), qr = new RegExp("".concat(dn.source, "*$"));
|
|
2526
|
+
function O(e, t) {
|
|
2527
|
+
return { start: e, end: t };
|
|
2528
|
+
}
|
|
2529
|
+
var Qr = !!String.prototype.startsWith && "_a".startsWith("a", 1), Jr = !!String.fromCodePoint, Yr = !!Object.fromEntries, Kr = !!String.prototype.codePointAt, ei = !!String.prototype.trimStart, ti = !!String.prototype.trimEnd, ni = !!Number.isSafeInteger, ri = ni ? Number.isSafeInteger : function(e) {
|
|
2530
|
+
return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
|
|
2531
|
+
}, _t = !0;
|
|
2532
|
+
try {
|
|
2533
|
+
var ii = yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2534
|
+
_t = ((ct = ii.exec("a")) === null || ct === void 0 ? void 0 : ct[0]) === "a";
|
|
2535
|
+
} catch {
|
|
2536
|
+
_t = !1;
|
|
2537
|
+
}
|
|
2538
|
+
var Ut = Qr ? (
|
|
2539
|
+
// Native
|
|
2540
|
+
function(t, n, r) {
|
|
2541
|
+
return t.startsWith(n, r);
|
|
2542
|
+
}
|
|
2543
|
+
) : (
|
|
2544
|
+
// For IE11
|
|
2545
|
+
function(t, n, r) {
|
|
2546
|
+
return t.slice(r, r + n.length) === n;
|
|
2547
|
+
}
|
|
2548
|
+
), yt = Jr ? String.fromCodePoint : (
|
|
2549
|
+
// IE11
|
|
2550
|
+
function() {
|
|
2551
|
+
for (var t = [], n = 0; n < arguments.length; n++)
|
|
2552
|
+
t[n] = arguments[n];
|
|
2553
|
+
for (var r = "", i = t.length, o = 0, l; i > o; ) {
|
|
2554
|
+
if (l = t[o++], l > 1114111)
|
|
2555
|
+
throw RangeError(l + " is not a valid code point");
|
|
2556
|
+
r += l < 65536 ? String.fromCharCode(l) : String.fromCharCode(((l -= 65536) >> 10) + 55296, l % 1024 + 56320);
|
|
2557
|
+
}
|
|
2558
|
+
return r;
|
|
2559
|
+
}
|
|
2560
|
+
), Gt = (
|
|
2561
|
+
// native
|
|
2562
|
+
Yr ? Object.fromEntries : (
|
|
2563
|
+
// Ponyfill
|
|
2564
|
+
function(t) {
|
|
2565
|
+
for (var n = {}, r = 0, i = t; r < i.length; r++) {
|
|
2566
|
+
var o = i[r], l = o[0], s = o[1];
|
|
2567
|
+
n[l] = s;
|
|
2568
|
+
}
|
|
2569
|
+
return n;
|
|
2570
|
+
}
|
|
2571
|
+
)
|
|
2572
|
+
), _n = Kr ? (
|
|
2573
|
+
// Native
|
|
2574
|
+
function(t, n) {
|
|
2575
|
+
return t.codePointAt(n);
|
|
2576
|
+
}
|
|
2577
|
+
) : (
|
|
2578
|
+
// IE 11
|
|
2579
|
+
function(t, n) {
|
|
2580
|
+
var r = t.length;
|
|
2581
|
+
if (!(n < 0 || n >= r)) {
|
|
2582
|
+
var i = t.charCodeAt(n), o;
|
|
2583
|
+
return i < 55296 || i > 56319 || n + 1 === r || (o = t.charCodeAt(n + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
|
|
2584
|
+
}
|
|
2585
|
+
}
|
|
2586
|
+
), oi = ei ? (
|
|
2587
|
+
// Native
|
|
2588
|
+
function(t) {
|
|
2589
|
+
return t.trimStart();
|
|
2590
|
+
}
|
|
2591
|
+
) : (
|
|
2592
|
+
// Ponyfill
|
|
2593
|
+
function(t) {
|
|
2594
|
+
return t.replace(Zr, "");
|
|
2595
|
+
}
|
|
2596
|
+
), si = ti ? (
|
|
2597
|
+
// Native
|
|
2598
|
+
function(t) {
|
|
2599
|
+
return t.trimEnd();
|
|
2600
|
+
}
|
|
2601
|
+
) : (
|
|
2602
|
+
// Ponyfill
|
|
2603
|
+
function(t) {
|
|
2604
|
+
return t.replace(qr, "");
|
|
2605
|
+
}
|
|
2606
|
+
);
|
|
2607
|
+
function yn(e, t) {
|
|
2608
|
+
return new RegExp(e, t);
|
|
2609
|
+
}
|
|
2610
|
+
var Et;
|
|
2611
|
+
if (_t) {
|
|
2612
|
+
var Ft = yn("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
|
|
2613
|
+
Et = function(t, n) {
|
|
2614
|
+
var r;
|
|
2615
|
+
Ft.lastIndex = n;
|
|
2616
|
+
var i = Ft.exec(t);
|
|
2617
|
+
return (r = i[1]) !== null && r !== void 0 ? r : "";
|
|
2618
|
+
};
|
|
2619
|
+
} else
|
|
2620
|
+
Et = function(t, n) {
|
|
2621
|
+
for (var r = []; ; ) {
|
|
2622
|
+
var i = _n(t, n);
|
|
2623
|
+
if (i === void 0 || En(i) || hi(i))
|
|
2624
|
+
break;
|
|
2625
|
+
r.push(i), n += i >= 65536 ? 2 : 1;
|
|
2626
|
+
}
|
|
2627
|
+
return yt.apply(void 0, r);
|
|
2628
|
+
};
|
|
2629
|
+
var ai = (
|
|
2630
|
+
/** @class */
|
|
2631
|
+
function() {
|
|
2632
|
+
function e(t, n) {
|
|
2633
|
+
n === void 0 && (n = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!n.ignoreTag, this.locale = n.locale, this.requiresOtherClause = !!n.requiresOtherClause, this.shouldParseSkeletons = !!n.shouldParseSkeletons;
|
|
2634
|
+
}
|
|
2635
|
+
return e.prototype.parse = function() {
|
|
2636
|
+
if (this.offset() !== 0)
|
|
2637
|
+
throw Error("parser can only be used once");
|
|
2638
|
+
return this.parseMessage(0, "", !1);
|
|
2639
|
+
}, e.prototype.parseMessage = function(t, n, r) {
|
|
2640
|
+
for (var i = []; !this.isEOF(); ) {
|
|
2641
|
+
var o = this.char();
|
|
2642
|
+
if (o === 123) {
|
|
2643
|
+
var l = this.parseArgument(t, r);
|
|
2644
|
+
if (l.err)
|
|
2645
|
+
return l;
|
|
2646
|
+
i.push(l.val);
|
|
2647
|
+
} else {
|
|
2648
|
+
if (o === 125 && t > 0)
|
|
2649
|
+
break;
|
|
2650
|
+
if (o === 35 && (n === "plural" || n === "selectordinal")) {
|
|
2651
|
+
var s = this.clonePosition();
|
|
2652
|
+
this.bump(), i.push({
|
|
2653
|
+
type: P.pound,
|
|
2654
|
+
location: O(s, this.clonePosition())
|
|
2655
|
+
});
|
|
2656
|
+
} else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
|
|
2657
|
+
if (r)
|
|
2658
|
+
break;
|
|
2659
|
+
return this.error(S.UNMATCHED_CLOSING_TAG, O(this.clonePosition(), this.clonePosition()));
|
|
2660
|
+
} else if (o === 60 && !this.ignoreTag && vt(this.peek() || 0)) {
|
|
2661
|
+
var l = this.parseTag(t, n);
|
|
2662
|
+
if (l.err)
|
|
2663
|
+
return l;
|
|
2664
|
+
i.push(l.val);
|
|
2665
|
+
} else {
|
|
2666
|
+
var l = this.parseLiteral(t, n);
|
|
2667
|
+
if (l.err)
|
|
2668
|
+
return l;
|
|
2669
|
+
i.push(l.val);
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
}
|
|
2673
|
+
return { val: i, err: null };
|
|
2674
|
+
}, e.prototype.parseTag = function(t, n) {
|
|
2675
|
+
var r = this.clonePosition();
|
|
2676
|
+
this.bump();
|
|
2677
|
+
var i = this.parseTagName();
|
|
2678
|
+
if (this.bumpSpace(), this.bumpIf("/>"))
|
|
2679
|
+
return {
|
|
2680
|
+
val: {
|
|
2681
|
+
type: P.literal,
|
|
2682
|
+
value: "<".concat(i, "/>"),
|
|
2683
|
+
location: O(r, this.clonePosition())
|
|
2684
|
+
},
|
|
2685
|
+
err: null
|
|
2686
|
+
};
|
|
2687
|
+
if (this.bumpIf(">")) {
|
|
2688
|
+
var o = this.parseMessage(t + 1, n, !0);
|
|
2689
|
+
if (o.err)
|
|
2690
|
+
return o;
|
|
2691
|
+
var l = o.val, s = this.clonePosition();
|
|
2692
|
+
if (this.bumpIf("</")) {
|
|
2693
|
+
if (this.isEOF() || !vt(this.char()))
|
|
2694
|
+
return this.error(S.INVALID_TAG, O(s, this.clonePosition()));
|
|
2695
|
+
var u = this.clonePosition(), a = this.parseTagName();
|
|
2696
|
+
return i !== a ? this.error(S.UNMATCHED_CLOSING_TAG, O(u, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
|
|
2697
|
+
val: {
|
|
2698
|
+
type: P.tag,
|
|
2699
|
+
value: i,
|
|
2700
|
+
children: l,
|
|
2701
|
+
location: O(r, this.clonePosition())
|
|
2702
|
+
},
|
|
2703
|
+
err: null
|
|
2704
|
+
} : this.error(S.INVALID_TAG, O(s, this.clonePosition())));
|
|
2705
|
+
} else
|
|
2706
|
+
return this.error(S.UNCLOSED_TAG, O(r, this.clonePosition()));
|
|
2707
|
+
} else
|
|
2708
|
+
return this.error(S.INVALID_TAG, O(r, this.clonePosition()));
|
|
2709
|
+
}, e.prototype.parseTagName = function() {
|
|
2710
|
+
var t = this.offset();
|
|
2711
|
+
for (this.bump(); !this.isEOF() && ui(this.char()); )
|
|
2712
|
+
this.bump();
|
|
2713
|
+
return this.message.slice(t, this.offset());
|
|
2714
|
+
}, e.prototype.parseLiteral = function(t, n) {
|
|
2715
|
+
for (var r = this.clonePosition(), i = ""; ; ) {
|
|
2716
|
+
var o = this.tryParseQuote(n);
|
|
2717
|
+
if (o) {
|
|
2718
|
+
i += o;
|
|
2719
|
+
continue;
|
|
2720
|
+
}
|
|
2721
|
+
var l = this.tryParseUnquoted(t, n);
|
|
2722
|
+
if (l) {
|
|
2723
|
+
i += l;
|
|
2724
|
+
continue;
|
|
2725
|
+
}
|
|
2726
|
+
var s = this.tryParseLeftAngleBracket();
|
|
2727
|
+
if (s) {
|
|
2728
|
+
i += s;
|
|
2729
|
+
continue;
|
|
2730
|
+
}
|
|
2731
|
+
break;
|
|
2732
|
+
}
|
|
2733
|
+
var u = O(r, this.clonePosition());
|
|
2734
|
+
return {
|
|
2735
|
+
val: { type: P.literal, value: i, location: u },
|
|
2736
|
+
err: null
|
|
2737
|
+
};
|
|
2738
|
+
}, e.prototype.tryParseLeftAngleBracket = function() {
|
|
2739
|
+
return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
|
|
2740
|
+
!li(this.peek() || 0)) ? (this.bump(), "<") : null;
|
|
2741
|
+
}, e.prototype.tryParseQuote = function(t) {
|
|
2742
|
+
if (this.isEOF() || this.char() !== 39)
|
|
2743
|
+
return null;
|
|
2744
|
+
switch (this.peek()) {
|
|
2745
|
+
case 39:
|
|
2746
|
+
return this.bump(), this.bump(), "'";
|
|
2747
|
+
case 123:
|
|
2748
|
+
case 60:
|
|
2749
|
+
case 62:
|
|
2750
|
+
case 125:
|
|
2751
|
+
break;
|
|
2752
|
+
case 35:
|
|
2753
|
+
if (t === "plural" || t === "selectordinal")
|
|
2754
|
+
break;
|
|
2755
|
+
return null;
|
|
2756
|
+
default:
|
|
2757
|
+
return null;
|
|
2758
|
+
}
|
|
2759
|
+
this.bump();
|
|
2760
|
+
var n = [this.char()];
|
|
2761
|
+
for (this.bump(); !this.isEOF(); ) {
|
|
2762
|
+
var r = this.char();
|
|
2763
|
+
if (r === 39)
|
|
2764
|
+
if (this.peek() === 39)
|
|
2765
|
+
n.push(39), this.bump();
|
|
2766
|
+
else {
|
|
2767
|
+
this.bump();
|
|
2768
|
+
break;
|
|
2769
|
+
}
|
|
2770
|
+
else
|
|
2771
|
+
n.push(r);
|
|
2772
|
+
this.bump();
|
|
2773
|
+
}
|
|
2774
|
+
return yt.apply(void 0, n);
|
|
2775
|
+
}, e.prototype.tryParseUnquoted = function(t, n) {
|
|
2776
|
+
if (this.isEOF())
|
|
2777
|
+
return null;
|
|
2778
|
+
var r = this.char();
|
|
2779
|
+
return r === 60 || r === 123 || r === 35 && (n === "plural" || n === "selectordinal") || r === 125 && t > 0 ? null : (this.bump(), yt(r));
|
|
2780
|
+
}, e.prototype.parseArgument = function(t, n) {
|
|
2781
|
+
var r = this.clonePosition();
|
|
2782
|
+
if (this.bump(), this.bumpSpace(), this.isEOF())
|
|
2783
|
+
return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
|
|
2784
|
+
if (this.char() === 125)
|
|
2785
|
+
return this.bump(), this.error(S.EMPTY_ARGUMENT, O(r, this.clonePosition()));
|
|
2786
|
+
var i = this.parseIdentifierIfPossible().value;
|
|
2787
|
+
if (!i)
|
|
2788
|
+
return this.error(S.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
|
|
2789
|
+
if (this.bumpSpace(), this.isEOF())
|
|
2790
|
+
return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition()));
|
|
2791
|
+
switch (this.char()) {
|
|
2792
|
+
case 125:
|
|
2793
|
+
return this.bump(), {
|
|
2794
|
+
val: {
|
|
2795
|
+
type: P.argument,
|
|
2796
|
+
// value does not include the opening and closing braces.
|
|
2797
|
+
value: i,
|
|
2798
|
+
location: O(r, this.clonePosition())
|
|
2799
|
+
},
|
|
2800
|
+
err: null
|
|
2801
|
+
};
|
|
2802
|
+
case 44:
|
|
2803
|
+
return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, O(r, this.clonePosition())) : this.parseArgumentOptions(t, n, i, r);
|
|
2804
|
+
default:
|
|
2805
|
+
return this.error(S.MALFORMED_ARGUMENT, O(r, this.clonePosition()));
|
|
2806
|
+
}
|
|
2807
|
+
}, e.prototype.parseIdentifierIfPossible = function() {
|
|
2808
|
+
var t = this.clonePosition(), n = this.offset(), r = Et(this.message, n), i = n + r.length;
|
|
2809
|
+
this.bumpTo(i);
|
|
2810
|
+
var o = this.clonePosition(), l = O(t, o);
|
|
2811
|
+
return { value: r, location: l };
|
|
2812
|
+
}, e.prototype.parseArgumentOptions = function(t, n, r, i) {
|
|
2813
|
+
var o, l = this.clonePosition(), s = this.parseIdentifierIfPossible().value, u = this.clonePosition();
|
|
2814
|
+
switch (s) {
|
|
2815
|
+
case "":
|
|
2816
|
+
return this.error(S.EXPECT_ARGUMENT_TYPE, O(l, u));
|
|
2817
|
+
case "number":
|
|
2818
|
+
case "date":
|
|
2819
|
+
case "time": {
|
|
2820
|
+
this.bumpSpace();
|
|
2821
|
+
var a = null;
|
|
2822
|
+
if (this.bumpIf(",")) {
|
|
2823
|
+
this.bumpSpace();
|
|
2824
|
+
var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
|
|
2825
|
+
if (c.err)
|
|
2826
|
+
return c;
|
|
2827
|
+
var d = si(c.val);
|
|
2828
|
+
if (d.length === 0)
|
|
2829
|
+
return this.error(S.EXPECT_ARGUMENT_STYLE, O(this.clonePosition(), this.clonePosition()));
|
|
2830
|
+
var y = O(h, this.clonePosition());
|
|
2831
|
+
a = { style: d, styleLocation: y };
|
|
2832
|
+
}
|
|
2833
|
+
var b = this.tryParseArgumentClose(i);
|
|
2834
|
+
if (b.err)
|
|
2835
|
+
return b;
|
|
2836
|
+
var m = O(i, this.clonePosition());
|
|
2837
|
+
if (a && Ut(a?.style, "::", 0)) {
|
|
2838
|
+
var E = oi(a.style.slice(2));
|
|
2839
|
+
if (s === "number") {
|
|
2840
|
+
var c = this.parseNumberSkeletonFromString(E, a.styleLocation);
|
|
2841
|
+
return c.err ? c : {
|
|
2842
|
+
val: { type: P.number, value: r, location: m, style: c.val },
|
|
2843
|
+
err: null
|
|
2844
|
+
};
|
|
2845
|
+
} else {
|
|
2846
|
+
if (E.length === 0)
|
|
2847
|
+
return this.error(S.EXPECT_DATE_TIME_SKELETON, m);
|
|
2848
|
+
var w = E;
|
|
2849
|
+
this.locale && (w = Xr(E, this.locale));
|
|
2850
|
+
var d = {
|
|
2851
|
+
type: Be.dateTime,
|
|
2852
|
+
pattern: w,
|
|
2853
|
+
location: a.styleLocation,
|
|
2854
|
+
parsedOptions: this.shouldParseSkeletons ? Ur(w) : {}
|
|
2855
|
+
}, B = s === "date" ? P.date : P.time;
|
|
2856
|
+
return {
|
|
2857
|
+
val: { type: B, value: r, location: m, style: d },
|
|
2858
|
+
err: null
|
|
2859
|
+
};
|
|
2860
|
+
}
|
|
2861
|
+
}
|
|
2862
|
+
return {
|
|
2863
|
+
val: {
|
|
2864
|
+
type: s === "number" ? P.number : s === "date" ? P.date : P.time,
|
|
2865
|
+
value: r,
|
|
2866
|
+
location: m,
|
|
2867
|
+
style: (o = a?.style) !== null && o !== void 0 ? o : null
|
|
2868
|
+
},
|
|
2869
|
+
err: null
|
|
2870
|
+
};
|
|
2871
|
+
}
|
|
2872
|
+
case "plural":
|
|
2873
|
+
case "selectordinal":
|
|
2874
|
+
case "select": {
|
|
2875
|
+
var L = this.clonePosition();
|
|
2876
|
+
if (this.bumpSpace(), !this.bumpIf(","))
|
|
2877
|
+
return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS, O(L, Ye({}, L)));
|
|
2878
|
+
this.bumpSpace();
|
|
2879
|
+
var k = this.parseIdentifierIfPossible(), G = 0;
|
|
2880
|
+
if (s !== "select" && k.value === "offset") {
|
|
2881
|
+
if (!this.bumpIf(":"))
|
|
2882
|
+
return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, O(this.clonePosition(), this.clonePosition()));
|
|
2883
|
+
this.bumpSpace();
|
|
2884
|
+
var c = this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
|
|
2885
|
+
if (c.err)
|
|
2886
|
+
return c;
|
|
2887
|
+
this.bumpSpace(), k = this.parseIdentifierIfPossible(), G = c.val;
|
|
2888
|
+
}
|
|
2889
|
+
var N = this.tryParsePluralOrSelectOptions(t, s, n, k);
|
|
2890
|
+
if (N.err)
|
|
2891
|
+
return N;
|
|
2892
|
+
var b = this.tryParseArgumentClose(i);
|
|
2893
|
+
if (b.err)
|
|
2894
|
+
return b;
|
|
2895
|
+
var K = O(i, this.clonePosition());
|
|
2896
|
+
return s === "select" ? {
|
|
2897
|
+
val: {
|
|
2898
|
+
type: P.select,
|
|
2899
|
+
value: r,
|
|
2900
|
+
options: Gt(N.val),
|
|
2901
|
+
location: K
|
|
2902
|
+
},
|
|
2903
|
+
err: null
|
|
2904
|
+
} : {
|
|
2905
|
+
val: {
|
|
2906
|
+
type: P.plural,
|
|
2907
|
+
value: r,
|
|
2908
|
+
options: Gt(N.val),
|
|
2909
|
+
offset: G,
|
|
2910
|
+
pluralType: s === "plural" ? "cardinal" : "ordinal",
|
|
2911
|
+
location: K
|
|
2912
|
+
},
|
|
2913
|
+
err: null
|
|
2914
|
+
};
|
|
2915
|
+
}
|
|
2916
|
+
default:
|
|
2917
|
+
return this.error(S.INVALID_ARGUMENT_TYPE, O(l, u));
|
|
2918
|
+
}
|
|
2919
|
+
}, e.prototype.tryParseArgumentClose = function(t) {
|
|
2920
|
+
return this.isEOF() || this.char() !== 125 ? this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE, O(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
|
|
2921
|
+
}, e.prototype.parseSimpleArgStyleIfPossible = function() {
|
|
2922
|
+
for (var t = 0, n = this.clonePosition(); !this.isEOF(); ) {
|
|
2923
|
+
var r = this.char();
|
|
2924
|
+
switch (r) {
|
|
2925
|
+
case 39: {
|
|
2926
|
+
this.bump();
|
|
2927
|
+
var i = this.clonePosition();
|
|
2928
|
+
if (!this.bumpUntil("'"))
|
|
2929
|
+
return this.error(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, O(i, this.clonePosition()));
|
|
2930
|
+
this.bump();
|
|
2931
|
+
break;
|
|
2932
|
+
}
|
|
2933
|
+
case 123: {
|
|
2934
|
+
t += 1, this.bump();
|
|
2935
|
+
break;
|
|
2936
|
+
}
|
|
2937
|
+
case 125: {
|
|
2938
|
+
if (t > 0)
|
|
2939
|
+
t -= 1;
|
|
2940
|
+
else
|
|
2941
|
+
return {
|
|
2942
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
2943
|
+
err: null
|
|
2944
|
+
};
|
|
2945
|
+
break;
|
|
2946
|
+
}
|
|
2947
|
+
default:
|
|
2948
|
+
this.bump();
|
|
2949
|
+
break;
|
|
2950
|
+
}
|
|
2951
|
+
}
|
|
2952
|
+
return {
|
|
2953
|
+
val: this.message.slice(n.offset, this.offset()),
|
|
2954
|
+
err: null
|
|
2955
|
+
};
|
|
2956
|
+
}, e.prototype.parseNumberSkeletonFromString = function(t, n) {
|
|
2957
|
+
var r = [];
|
|
2958
|
+
try {
|
|
2959
|
+
r = Fr(t);
|
|
2960
|
+
} catch {
|
|
2961
|
+
return this.error(S.INVALID_NUMBER_SKELETON, n);
|
|
2962
|
+
}
|
|
2963
|
+
return {
|
|
2964
|
+
val: {
|
|
2965
|
+
type: Be.number,
|
|
2966
|
+
tokens: r,
|
|
2967
|
+
location: n,
|
|
2968
|
+
parsedOptions: this.shouldParseSkeletons ? zr(r) : {}
|
|
2969
|
+
},
|
|
2970
|
+
err: null
|
|
2971
|
+
};
|
|
2972
|
+
}, e.prototype.tryParsePluralOrSelectOptions = function(t, n, r, i) {
|
|
2973
|
+
for (var o, l = !1, s = [], u = /* @__PURE__ */ new Set(), a = i.value, h = i.location; ; ) {
|
|
2974
|
+
if (a.length === 0) {
|
|
2975
|
+
var c = this.clonePosition();
|
|
2976
|
+
if (n !== "select" && this.bumpIf("=")) {
|
|
2977
|
+
var d = this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR, S.INVALID_PLURAL_ARGUMENT_SELECTOR);
|
|
2978
|
+
if (d.err)
|
|
2979
|
+
return d;
|
|
2980
|
+
h = O(c, this.clonePosition()), a = this.message.slice(c.offset, this.offset());
|
|
2981
|
+
} else
|
|
2982
|
+
break;
|
|
2983
|
+
}
|
|
2984
|
+
if (u.has(a))
|
|
2985
|
+
return this.error(n === "select" ? S.DUPLICATE_SELECT_ARGUMENT_SELECTOR : S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
|
|
2986
|
+
a === "other" && (l = !0), this.bumpSpace();
|
|
2987
|
+
var y = this.clonePosition();
|
|
2988
|
+
if (!this.bumpIf("{"))
|
|
2989
|
+
return this.error(n === "select" ? S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, O(this.clonePosition(), this.clonePosition()));
|
|
2990
|
+
var b = this.parseMessage(t + 1, n, r);
|
|
2991
|
+
if (b.err)
|
|
2992
|
+
return b;
|
|
2993
|
+
var m = this.tryParseArgumentClose(y);
|
|
2994
|
+
if (m.err)
|
|
2995
|
+
return m;
|
|
2996
|
+
s.push([
|
|
2997
|
+
a,
|
|
2998
|
+
{
|
|
2999
|
+
value: b.val,
|
|
3000
|
+
location: O(y, this.clonePosition())
|
|
3001
|
+
}
|
|
3002
|
+
]), u.add(a), this.bumpSpace(), o = this.parseIdentifierIfPossible(), a = o.value, h = o.location;
|
|
3003
|
+
}
|
|
3004
|
+
return s.length === 0 ? this.error(n === "select" ? S.EXPECT_SELECT_ARGUMENT_SELECTOR : S.EXPECT_PLURAL_ARGUMENT_SELECTOR, O(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !l ? this.error(S.MISSING_OTHER_CLAUSE, O(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
|
|
3005
|
+
}, e.prototype.tryParseDecimalInteger = function(t, n) {
|
|
3006
|
+
var r = 1, i = this.clonePosition();
|
|
3007
|
+
this.bumpIf("+") || this.bumpIf("-") && (r = -1);
|
|
3008
|
+
for (var o = !1, l = 0; !this.isEOF(); ) {
|
|
3009
|
+
var s = this.char();
|
|
3010
|
+
if (s >= 48 && s <= 57)
|
|
3011
|
+
o = !0, l = l * 10 + (s - 48), this.bump();
|
|
3012
|
+
else
|
|
3013
|
+
break;
|
|
3014
|
+
}
|
|
3015
|
+
var u = O(i, this.clonePosition());
|
|
3016
|
+
return o ? (l *= r, ri(l) ? { val: l, err: null } : this.error(n, u)) : this.error(t, u);
|
|
3017
|
+
}, e.prototype.offset = function() {
|
|
3018
|
+
return this.position.offset;
|
|
3019
|
+
}, e.prototype.isEOF = function() {
|
|
3020
|
+
return this.offset() === this.message.length;
|
|
3021
|
+
}, e.prototype.clonePosition = function() {
|
|
3022
|
+
return {
|
|
3023
|
+
offset: this.position.offset,
|
|
3024
|
+
line: this.position.line,
|
|
3025
|
+
column: this.position.column
|
|
3026
|
+
};
|
|
3027
|
+
}, e.prototype.char = function() {
|
|
3028
|
+
var t = this.position.offset;
|
|
3029
|
+
if (t >= this.message.length)
|
|
3030
|
+
throw Error("out of bound");
|
|
3031
|
+
var n = _n(this.message, t);
|
|
3032
|
+
if (n === void 0)
|
|
3033
|
+
throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3034
|
+
return n;
|
|
3035
|
+
}, e.prototype.error = function(t, n) {
|
|
3036
|
+
return {
|
|
3037
|
+
val: null,
|
|
3038
|
+
err: {
|
|
3039
|
+
kind: t,
|
|
3040
|
+
message: this.message,
|
|
3041
|
+
location: n
|
|
3042
|
+
}
|
|
3043
|
+
};
|
|
3044
|
+
}, e.prototype.bump = function() {
|
|
3045
|
+
if (!this.isEOF()) {
|
|
3046
|
+
var t = this.char();
|
|
3047
|
+
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
|
+
}
|
|
3049
|
+
}, e.prototype.bumpIf = function(t) {
|
|
3050
|
+
if (Ut(this.message, t, this.offset())) {
|
|
3051
|
+
for (var n = 0; n < t.length; n++)
|
|
3052
|
+
this.bump();
|
|
3053
|
+
return !0;
|
|
3054
|
+
}
|
|
3055
|
+
return !1;
|
|
3056
|
+
}, e.prototype.bumpUntil = function(t) {
|
|
3057
|
+
var n = this.offset(), r = this.message.indexOf(t, n);
|
|
3058
|
+
return r >= 0 ? (this.bumpTo(r), !0) : (this.bumpTo(this.message.length), !1);
|
|
3059
|
+
}, e.prototype.bumpTo = function(t) {
|
|
3060
|
+
if (this.offset() > t)
|
|
3061
|
+
throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
|
|
3062
|
+
for (t = Math.min(t, this.message.length); ; ) {
|
|
3063
|
+
var n = this.offset();
|
|
3064
|
+
if (n === t)
|
|
3065
|
+
break;
|
|
3066
|
+
if (n > t)
|
|
3067
|
+
throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
|
|
3068
|
+
if (this.bump(), this.isEOF())
|
|
3069
|
+
break;
|
|
3070
|
+
}
|
|
3071
|
+
}, e.prototype.bumpSpace = function() {
|
|
3072
|
+
for (; !this.isEOF() && En(this.char()); )
|
|
3073
|
+
this.bump();
|
|
3074
|
+
}, e.prototype.peek = function() {
|
|
3075
|
+
if (this.isEOF())
|
|
3076
|
+
return null;
|
|
3077
|
+
var t = this.char(), n = this.offset(), r = this.message.charCodeAt(n + (t >= 65536 ? 2 : 1));
|
|
3078
|
+
return r ?? null;
|
|
3079
|
+
}, e;
|
|
3080
|
+
}()
|
|
3081
|
+
);
|
|
3082
|
+
function vt(e) {
|
|
3083
|
+
return e >= 97 && e <= 122 || e >= 65 && e <= 90;
|
|
3084
|
+
}
|
|
3085
|
+
function li(e) {
|
|
3086
|
+
return vt(e) || e === 47;
|
|
3087
|
+
}
|
|
3088
|
+
function ui(e) {
|
|
3089
|
+
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
|
+
}
|
|
3091
|
+
function En(e) {
|
|
3092
|
+
return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
|
|
3093
|
+
}
|
|
3094
|
+
function hi(e) {
|
|
3095
|
+
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
|
+
}
|
|
3097
|
+
function xt(e) {
|
|
3098
|
+
e.forEach(function(t) {
|
|
3099
|
+
if (delete t.location, hn(t) || cn(t))
|
|
3100
|
+
for (var n in t.options)
|
|
3101
|
+
delete t.options[n].location, xt(t.options[n].value);
|
|
3102
|
+
else
|
|
3103
|
+
an(t) && pn(t.style) || (ln(t) || un(t)) && bt(t.style) ? delete t.style.location : fn(t) && xt(t.children);
|
|
3104
|
+
});
|
|
3105
|
+
}
|
|
3106
|
+
function ci(e, t) {
|
|
3107
|
+
t === void 0 && (t = {}), t = Ye({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
|
|
3108
|
+
var n = new ai(e, t).parse();
|
|
3109
|
+
if (n.err) {
|
|
3110
|
+
var r = SyntaxError(S[n.err.kind]);
|
|
3111
|
+
throw r.location = n.err.location, r.originalMessage = n.err.message, r;
|
|
3112
|
+
}
|
|
3113
|
+
return t?.captureLocation || xt(n.val), n.val;
|
|
3114
|
+
}
|
|
3115
|
+
var Le;
|
|
3116
|
+
(function(e) {
|
|
3117
|
+
e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
|
|
3118
|
+
})(Le || (Le = {}));
|
|
3119
|
+
var rt = (
|
|
3120
|
+
/** @class */
|
|
3121
|
+
function(e) {
|
|
3122
|
+
nt(t, e);
|
|
3123
|
+
function t(n, r, i) {
|
|
3124
|
+
var o = e.call(this, n) || this;
|
|
3125
|
+
return o.code = r, o.originalMessage = i, o;
|
|
3126
|
+
}
|
|
3127
|
+
return t.prototype.toString = function() {
|
|
3128
|
+
return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
|
|
3129
|
+
}, t;
|
|
3130
|
+
}(Error)
|
|
3131
|
+
), jt = (
|
|
3132
|
+
/** @class */
|
|
3133
|
+
function(e) {
|
|
3134
|
+
nt(t, e);
|
|
3135
|
+
function t(n, r, i, o) {
|
|
3136
|
+
return e.call(this, 'Invalid values for "'.concat(n, '": "').concat(r, '". Options are "').concat(Object.keys(i).join('", "'), '"'), Le.INVALID_VALUE, o) || this;
|
|
3137
|
+
}
|
|
3138
|
+
return t;
|
|
3139
|
+
}(rt)
|
|
3140
|
+
), fi = (
|
|
3141
|
+
/** @class */
|
|
3142
|
+
function(e) {
|
|
3143
|
+
nt(t, e);
|
|
3144
|
+
function t(n, r, i) {
|
|
3145
|
+
return e.call(this, 'Value for "'.concat(n, '" must be of type ').concat(r), Le.INVALID_VALUE, i) || this;
|
|
3146
|
+
}
|
|
3147
|
+
return t;
|
|
3148
|
+
}(rt)
|
|
3149
|
+
), pi = (
|
|
3150
|
+
/** @class */
|
|
3151
|
+
function(e) {
|
|
3152
|
+
nt(t, e);
|
|
3153
|
+
function t(n, r) {
|
|
3154
|
+
return e.call(this, 'The intl string context variable "'.concat(n, '" was not provided to the string "').concat(r, '"'), Le.MISSING_VALUE, r) || this;
|
|
3155
|
+
}
|
|
3156
|
+
return t;
|
|
3157
|
+
}(rt)
|
|
3158
|
+
), Z;
|
|
3159
|
+
(function(e) {
|
|
3160
|
+
e[e.literal = 0] = "literal", e[e.object = 1] = "object";
|
|
3161
|
+
})(Z || (Z = {}));
|
|
3162
|
+
function di(e) {
|
|
3163
|
+
return e.length < 2 ? e : e.reduce(function(t, n) {
|
|
3164
|
+
var r = t[t.length - 1];
|
|
3165
|
+
return !r || r.type !== Z.literal || n.type !== Z.literal ? t.push(n) : r.value += n.value, t;
|
|
3166
|
+
}, []);
|
|
3167
|
+
}
|
|
3168
|
+
function mi(e) {
|
|
3169
|
+
return typeof e == "function";
|
|
3170
|
+
}
|
|
3171
|
+
function qe(e, t, n, r, i, o, l) {
|
|
3172
|
+
if (e.length === 1 && Nt(e[0]))
|
|
3173
|
+
return [
|
|
3174
|
+
{
|
|
3175
|
+
type: Z.literal,
|
|
3176
|
+
value: e[0].value
|
|
3177
|
+
}
|
|
3178
|
+
];
|
|
3179
|
+
for (var s = [], u = 0, a = e; u < a.length; u++) {
|
|
3180
|
+
var h = a[u];
|
|
3181
|
+
if (Nt(h)) {
|
|
3182
|
+
s.push({
|
|
3183
|
+
type: Z.literal,
|
|
3184
|
+
value: h.value
|
|
3185
|
+
});
|
|
3186
|
+
continue;
|
|
3187
|
+
}
|
|
3188
|
+
if (kr(h)) {
|
|
3189
|
+
typeof o == "number" && s.push({
|
|
3190
|
+
type: Z.literal,
|
|
3191
|
+
value: n.getNumberFormat(t).format(o)
|
|
3192
|
+
});
|
|
3193
|
+
continue;
|
|
3194
|
+
}
|
|
3195
|
+
var c = h.value;
|
|
3196
|
+
if (!(i && c in i))
|
|
3197
|
+
throw new pi(c, l);
|
|
3198
|
+
var d = i[c];
|
|
3199
|
+
if (Rr(h)) {
|
|
3200
|
+
(!d || typeof d == "string" || typeof d == "number") && (d = typeof d == "string" || typeof d == "number" ? String(d) : ""), s.push({
|
|
3201
|
+
type: typeof d == "string" ? Z.literal : Z.object,
|
|
3202
|
+
value: d
|
|
3203
|
+
});
|
|
3204
|
+
continue;
|
|
3205
|
+
}
|
|
3206
|
+
if (ln(h)) {
|
|
3207
|
+
var y = typeof h.style == "string" ? r.date[h.style] : bt(h.style) ? h.style.parsedOptions : void 0;
|
|
3208
|
+
s.push({
|
|
3209
|
+
type: Z.literal,
|
|
3210
|
+
value: n.getDateTimeFormat(t, y).format(d)
|
|
3211
|
+
});
|
|
3212
|
+
continue;
|
|
3213
|
+
}
|
|
3214
|
+
if (un(h)) {
|
|
3215
|
+
var y = typeof h.style == "string" ? r.time[h.style] : bt(h.style) ? h.style.parsedOptions : r.time.medium;
|
|
3216
|
+
s.push({
|
|
3217
|
+
type: Z.literal,
|
|
3218
|
+
value: n.getDateTimeFormat(t, y).format(d)
|
|
3219
|
+
});
|
|
3220
|
+
continue;
|
|
3221
|
+
}
|
|
3222
|
+
if (an(h)) {
|
|
3223
|
+
var y = typeof h.style == "string" ? r.number[h.style] : pn(h.style) ? h.style.parsedOptions : void 0;
|
|
3224
|
+
y && y.scale && (d = d * (y.scale || 1)), s.push({
|
|
3225
|
+
type: Z.literal,
|
|
3226
|
+
value: n.getNumberFormat(t, y).format(d)
|
|
3227
|
+
});
|
|
3228
|
+
continue;
|
|
3229
|
+
}
|
|
3230
|
+
if (fn(h)) {
|
|
3231
|
+
var b = h.children, m = h.value, E = i[m];
|
|
3232
|
+
if (!mi(E))
|
|
3233
|
+
throw new fi(m, "function", l);
|
|
3234
|
+
var w = qe(b, t, n, r, i, o), B = E(w.map(function(G) {
|
|
3235
|
+
return G.value;
|
|
3236
|
+
}));
|
|
3237
|
+
Array.isArray(B) || (B = [B]), s.push.apply(s, B.map(function(G) {
|
|
3238
|
+
return {
|
|
3239
|
+
type: typeof G == "string" ? Z.literal : Z.object,
|
|
3240
|
+
value: G
|
|
3241
|
+
};
|
|
3242
|
+
}));
|
|
3243
|
+
}
|
|
3244
|
+
if (hn(h)) {
|
|
3245
|
+
var L = h.options[d] || h.options.other;
|
|
3246
|
+
if (!L)
|
|
3247
|
+
throw new jt(h.value, d, Object.keys(h.options), l);
|
|
3248
|
+
s.push.apply(s, qe(L.value, t, n, r, i));
|
|
3249
|
+
continue;
|
|
3250
|
+
}
|
|
3251
|
+
if (cn(h)) {
|
|
3252
|
+
var L = h.options["=".concat(d)];
|
|
3253
|
+
if (!L) {
|
|
3254
|
+
if (!Intl.PluralRules)
|
|
3255
|
+
throw new rt(`Intl.PluralRules is not available in this environment.
|
|
3256
|
+
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
3257
|
+
`, Le.MISSING_INTL_API, l);
|
|
3258
|
+
var k = n.getPluralRules(t, { type: h.pluralType }).select(d - (h.offset || 0));
|
|
3259
|
+
L = h.options[k] || h.options.other;
|
|
3260
|
+
}
|
|
3261
|
+
if (!L)
|
|
3262
|
+
throw new jt(h.value, d, Object.keys(h.options), l);
|
|
3263
|
+
s.push.apply(s, qe(L.value, t, n, r, i, d - (h.offset || 0)));
|
|
3264
|
+
continue;
|
|
3265
|
+
}
|
|
3266
|
+
}
|
|
3267
|
+
return di(s);
|
|
3268
|
+
}
|
|
3269
|
+
function gi(e, t) {
|
|
3270
|
+
return t ? ue(ue(ue({}, e || {}), t || {}), Object.keys(e).reduce(function(n, r) {
|
|
3271
|
+
return n[r] = ue(ue({}, e[r]), t[r] || {}), n;
|
|
3272
|
+
}, {})) : e;
|
|
3273
|
+
}
|
|
3274
|
+
function bi(e, t) {
|
|
3275
|
+
return t ? Object.keys(e).reduce(function(n, r) {
|
|
3276
|
+
return n[r] = gi(e[r], t[r]), n;
|
|
3277
|
+
}, ue({}, e)) : e;
|
|
3278
|
+
}
|
|
3279
|
+
function ft(e) {
|
|
3280
|
+
return {
|
|
3281
|
+
create: function() {
|
|
3282
|
+
return {
|
|
3283
|
+
get: function(t) {
|
|
3284
|
+
return e[t];
|
|
3285
|
+
},
|
|
3286
|
+
set: function(t, n) {
|
|
3287
|
+
e[t] = n;
|
|
3288
|
+
}
|
|
3289
|
+
};
|
|
3290
|
+
}
|
|
3291
|
+
};
|
|
3292
|
+
}
|
|
3293
|
+
function _i(e) {
|
|
3294
|
+
return e === void 0 && (e = {
|
|
3295
|
+
number: {},
|
|
3296
|
+
dateTime: {},
|
|
3297
|
+
pluralRules: {}
|
|
3298
|
+
}), {
|
|
3299
|
+
getNumberFormat: ut(function() {
|
|
3300
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3301
|
+
n[r] = arguments[r];
|
|
3302
|
+
return new ((t = Intl.NumberFormat).bind.apply(t, lt([void 0], n, !1)))();
|
|
3303
|
+
}, {
|
|
3304
|
+
cache: ft(e.number),
|
|
3305
|
+
strategy: ht.variadic
|
|
3306
|
+
}),
|
|
3307
|
+
getDateTimeFormat: ut(function() {
|
|
3308
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3309
|
+
n[r] = arguments[r];
|
|
3310
|
+
return new ((t = Intl.DateTimeFormat).bind.apply(t, lt([void 0], n, !1)))();
|
|
3311
|
+
}, {
|
|
3312
|
+
cache: ft(e.dateTime),
|
|
3313
|
+
strategy: ht.variadic
|
|
3314
|
+
}),
|
|
3315
|
+
getPluralRules: ut(function() {
|
|
3316
|
+
for (var t, n = [], r = 0; r < arguments.length; r++)
|
|
3317
|
+
n[r] = arguments[r];
|
|
3318
|
+
return new ((t = Intl.PluralRules).bind.apply(t, lt([void 0], n, !1)))();
|
|
3319
|
+
}, {
|
|
3320
|
+
cache: ft(e.pluralRules),
|
|
3321
|
+
strategy: ht.variadic
|
|
3322
|
+
})
|
|
3323
|
+
};
|
|
3324
|
+
}
|
|
3325
|
+
var yi = (
|
|
3326
|
+
/** @class */
|
|
3327
|
+
function() {
|
|
3328
|
+
function e(t, n, r, i) {
|
|
3329
|
+
n === void 0 && (n = e.defaultLocale);
|
|
3330
|
+
var o = this;
|
|
3331
|
+
if (this.formatterCache = {
|
|
3332
|
+
number: {},
|
|
3333
|
+
dateTime: {},
|
|
3334
|
+
pluralRules: {}
|
|
3335
|
+
}, this.format = function(u) {
|
|
3336
|
+
var a = o.formatToParts(u);
|
|
3337
|
+
if (a.length === 1)
|
|
3338
|
+
return a[0].value;
|
|
3339
|
+
var h = a.reduce(function(c, d) {
|
|
3340
|
+
return !c.length || d.type !== Z.literal || typeof c[c.length - 1] != "string" ? c.push(d.value) : c[c.length - 1] += d.value, c;
|
|
3341
|
+
}, []);
|
|
3342
|
+
return h.length <= 1 ? h[0] || "" : h;
|
|
3343
|
+
}, this.formatToParts = function(u) {
|
|
3344
|
+
return qe(o.ast, o.locales, o.formatters, o.formats, u, void 0, o.message);
|
|
3345
|
+
}, this.resolvedOptions = function() {
|
|
3346
|
+
var u;
|
|
3347
|
+
return {
|
|
3348
|
+
locale: ((u = o.resolvedLocale) === null || u === void 0 ? void 0 : u.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
|
|
3349
|
+
};
|
|
3350
|
+
}, this.getAst = function() {
|
|
3351
|
+
return o.ast;
|
|
3352
|
+
}, this.locales = n, this.resolvedLocale = e.resolveLocale(n), typeof t == "string") {
|
|
3353
|
+
if (this.message = t, !e.__parse)
|
|
3354
|
+
throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
|
|
3355
|
+
var l = i || {};
|
|
3356
|
+
l.formatters;
|
|
3357
|
+
var s = Cr(l, ["formatters"]);
|
|
3358
|
+
this.ast = e.__parse(t, ue(ue({}, s), { locale: this.resolvedLocale }));
|
|
3359
|
+
} else
|
|
3360
|
+
this.ast = t;
|
|
3361
|
+
if (!Array.isArray(this.ast))
|
|
3362
|
+
throw new TypeError("A message must be provided as a String or AST.");
|
|
3363
|
+
this.formats = bi(e.formats, r), this.formatters = i && i.formatters || _i(this.formatterCache);
|
|
3364
|
+
}
|
|
3365
|
+
return Object.defineProperty(e, "defaultLocale", {
|
|
3366
|
+
get: function() {
|
|
3367
|
+
return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
|
|
3368
|
+
},
|
|
3369
|
+
enumerable: !1,
|
|
3370
|
+
configurable: !0
|
|
3371
|
+
}), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
|
|
3372
|
+
if (!(typeof Intl.Locale > "u")) {
|
|
3373
|
+
var n = Intl.NumberFormat.supportedLocalesOf(t);
|
|
3374
|
+
return n.length > 0 ? new Intl.Locale(n[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
|
|
3375
|
+
}
|
|
3376
|
+
}, e.__parse = ci, e.formats = {
|
|
3377
|
+
number: {
|
|
3378
|
+
integer: {
|
|
3379
|
+
maximumFractionDigits: 0
|
|
3380
|
+
},
|
|
3381
|
+
currency: {
|
|
3382
|
+
style: "currency"
|
|
3383
|
+
},
|
|
3384
|
+
percent: {
|
|
3385
|
+
style: "percent"
|
|
3386
|
+
}
|
|
3387
|
+
},
|
|
3388
|
+
date: {
|
|
3389
|
+
short: {
|
|
3390
|
+
month: "numeric",
|
|
3391
|
+
day: "numeric",
|
|
3392
|
+
year: "2-digit"
|
|
3393
|
+
},
|
|
3394
|
+
medium: {
|
|
3395
|
+
month: "short",
|
|
3396
|
+
day: "numeric",
|
|
3397
|
+
year: "numeric"
|
|
3398
|
+
},
|
|
3399
|
+
long: {
|
|
3400
|
+
month: "long",
|
|
3401
|
+
day: "numeric",
|
|
3402
|
+
year: "numeric"
|
|
3403
|
+
},
|
|
3404
|
+
full: {
|
|
3405
|
+
weekday: "long",
|
|
3406
|
+
month: "long",
|
|
3407
|
+
day: "numeric",
|
|
3408
|
+
year: "numeric"
|
|
3409
|
+
}
|
|
3410
|
+
},
|
|
3411
|
+
time: {
|
|
3412
|
+
short: {
|
|
3413
|
+
hour: "numeric",
|
|
3414
|
+
minute: "numeric"
|
|
3415
|
+
},
|
|
3416
|
+
medium: {
|
|
3417
|
+
hour: "numeric",
|
|
3418
|
+
minute: "numeric",
|
|
3419
|
+
second: "numeric"
|
|
3420
|
+
},
|
|
3421
|
+
long: {
|
|
3422
|
+
hour: "numeric",
|
|
3423
|
+
minute: "numeric",
|
|
3424
|
+
second: "numeric",
|
|
3425
|
+
timeZoneName: "short"
|
|
3426
|
+
},
|
|
3427
|
+
full: {
|
|
3428
|
+
hour: "numeric",
|
|
3429
|
+
minute: "numeric",
|
|
3430
|
+
second: "numeric",
|
|
3431
|
+
timeZoneName: "short"
|
|
3432
|
+
}
|
|
3433
|
+
}
|
|
3434
|
+
}, e;
|
|
3435
|
+
}()
|
|
3436
|
+
);
|
|
3437
|
+
function Ei(e, t) {
|
|
3438
|
+
if (t == null)
|
|
3439
|
+
return;
|
|
3440
|
+
if (t in e)
|
|
3441
|
+
return e[t];
|
|
3442
|
+
const n = t.split(".");
|
|
3443
|
+
let r = e;
|
|
3444
|
+
for (let i = 0; i < n.length; i++)
|
|
3445
|
+
if (typeof r == "object") {
|
|
3446
|
+
if (i > 0) {
|
|
3447
|
+
const o = n.slice(i, n.length).join(".");
|
|
3448
|
+
if (o in r) {
|
|
3449
|
+
r = r[o];
|
|
3450
|
+
break;
|
|
3451
|
+
}
|
|
3452
|
+
}
|
|
3453
|
+
r = r[n[i]];
|
|
3454
|
+
} else
|
|
3455
|
+
r = void 0;
|
|
3456
|
+
return r;
|
|
3457
|
+
}
|
|
3458
|
+
const me = {}, vi = (e, t, n) => n && (t in me || (me[t] = {}), e in me[t] || (me[t][e] = n), n), vn = (e, t) => {
|
|
3459
|
+
if (t == null)
|
|
3460
|
+
return;
|
|
3461
|
+
if (t in me && e in me[t])
|
|
3462
|
+
return me[t][e];
|
|
3463
|
+
const n = it(t);
|
|
3464
|
+
for (let r = 0; r < n.length; r++) {
|
|
3465
|
+
const i = n[r], o = wi(i, e);
|
|
3466
|
+
if (o)
|
|
3467
|
+
return vi(e, t, o);
|
|
3468
|
+
}
|
|
3469
|
+
};
|
|
3470
|
+
let Ot;
|
|
3471
|
+
const Xe = tt({});
|
|
3472
|
+
function xi(e) {
|
|
3473
|
+
return Ot[e] || null;
|
|
3474
|
+
}
|
|
3475
|
+
function xn(e) {
|
|
3476
|
+
return e in Ot;
|
|
3477
|
+
}
|
|
3478
|
+
function wi(e, t) {
|
|
3479
|
+
if (!xn(e))
|
|
3480
|
+
return null;
|
|
3481
|
+
const n = xi(e);
|
|
3482
|
+
return Ei(n, t);
|
|
3483
|
+
}
|
|
3484
|
+
function Si(e) {
|
|
3485
|
+
if (e == null)
|
|
3486
|
+
return;
|
|
3487
|
+
const t = it(e);
|
|
3488
|
+
for (let n = 0; n < t.length; n++) {
|
|
3489
|
+
const r = t[n];
|
|
3490
|
+
if (xn(r))
|
|
3491
|
+
return r;
|
|
3492
|
+
}
|
|
3493
|
+
}
|
|
3494
|
+
function wn(e, ...t) {
|
|
3495
|
+
delete me[e], Xe.update((n) => (n[e] = Hr.all([n[e] || {}, ...t]), n));
|
|
3496
|
+
}
|
|
3497
|
+
Me(
|
|
3498
|
+
[Xe],
|
|
3499
|
+
([e]) => Object.keys(e)
|
|
3500
|
+
);
|
|
3501
|
+
Xe.subscribe((e) => Ot = e);
|
|
3502
|
+
const Qe = {};
|
|
3503
|
+
function Ti(e, t) {
|
|
3504
|
+
Qe[e].delete(t), Qe[e].size === 0 && delete Qe[e];
|
|
3505
|
+
}
|
|
3506
|
+
function Sn(e) {
|
|
3507
|
+
return Qe[e];
|
|
3508
|
+
}
|
|
3509
|
+
function Oi(e) {
|
|
3510
|
+
return it(e).map((t) => {
|
|
3511
|
+
const n = Sn(t);
|
|
3512
|
+
return [t, n ? [...n] : []];
|
|
3513
|
+
}).filter(([, t]) => t.length > 0);
|
|
3514
|
+
}
|
|
3515
|
+
function wt(e) {
|
|
3516
|
+
return e == null ? !1 : it(e).some(
|
|
3517
|
+
(t) => {
|
|
3518
|
+
var n;
|
|
3519
|
+
return (n = Sn(t)) == null ? void 0 : n.size;
|
|
3520
|
+
}
|
|
3521
|
+
);
|
|
3522
|
+
}
|
|
3523
|
+
function Hi(e, t) {
|
|
3524
|
+
return Promise.all(
|
|
3525
|
+
t.map((r) => (Ti(e, r), r().then((i) => i.default || i)))
|
|
3526
|
+
).then((r) => wn(e, ...r));
|
|
3527
|
+
}
|
|
3528
|
+
const Fe = {};
|
|
3529
|
+
function Tn(e) {
|
|
3530
|
+
if (!wt(e))
|
|
3531
|
+
return e in Fe ? Fe[e] : Promise.resolve();
|
|
3532
|
+
const t = Oi(e);
|
|
3533
|
+
return Fe[e] = Promise.all(
|
|
3534
|
+
t.map(
|
|
3535
|
+
([n, r]) => Hi(n, r)
|
|
3536
|
+
)
|
|
3537
|
+
).then(() => {
|
|
3538
|
+
if (wt(e))
|
|
3539
|
+
return Tn(e);
|
|
3540
|
+
delete Fe[e];
|
|
3541
|
+
}), Fe[e];
|
|
3542
|
+
}
|
|
3543
|
+
const Ci = {
|
|
3544
|
+
number: {
|
|
3545
|
+
scientific: { notation: "scientific" },
|
|
3546
|
+
engineering: { notation: "engineering" },
|
|
3547
|
+
compactLong: { notation: "compact", compactDisplay: "long" },
|
|
3548
|
+
compactShort: { notation: "compact", compactDisplay: "short" }
|
|
3549
|
+
},
|
|
3550
|
+
date: {
|
|
3551
|
+
short: { month: "numeric", day: "numeric", year: "2-digit" },
|
|
3552
|
+
medium: { month: "short", day: "numeric", year: "numeric" },
|
|
3553
|
+
long: { month: "long", day: "numeric", year: "numeric" },
|
|
3554
|
+
full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
|
|
3555
|
+
},
|
|
3556
|
+
time: {
|
|
3557
|
+
short: { hour: "numeric", minute: "numeric" },
|
|
3558
|
+
medium: { hour: "numeric", minute: "numeric", second: "numeric" },
|
|
3559
|
+
long: {
|
|
3560
|
+
hour: "numeric",
|
|
3561
|
+
minute: "numeric",
|
|
3562
|
+
second: "numeric",
|
|
3563
|
+
timeZoneName: "short"
|
|
3564
|
+
},
|
|
3565
|
+
full: {
|
|
3566
|
+
hour: "numeric",
|
|
3567
|
+
minute: "numeric",
|
|
3568
|
+
second: "numeric",
|
|
3569
|
+
timeZoneName: "short"
|
|
3570
|
+
}
|
|
3571
|
+
}
|
|
3572
|
+
}, Ai = {
|
|
3573
|
+
fallbackLocale: null,
|
|
3574
|
+
loadingDelay: 200,
|
|
3575
|
+
formats: Ci,
|
|
3576
|
+
warnOnMissingMessages: !0,
|
|
3577
|
+
handleMissingMessage: void 0,
|
|
3578
|
+
ignoreTag: !0
|
|
3579
|
+
}, Bi = Ai;
|
|
3580
|
+
function Pe() {
|
|
3581
|
+
return Bi;
|
|
3582
|
+
}
|
|
3583
|
+
const pt = tt(!1);
|
|
3584
|
+
var Li = Object.defineProperty, Pi = Object.defineProperties, Mi = Object.getOwnPropertyDescriptors, $t = Object.getOwnPropertySymbols, Ii = Object.prototype.hasOwnProperty, Ni = Object.prototype.propertyIsEnumerable, Vt = (e, t, n) => t in e ? Li(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ri = (e, t) => {
|
|
3585
|
+
for (var n in t || (t = {}))
|
|
3586
|
+
Ii.call(t, n) && Vt(e, n, t[n]);
|
|
3587
|
+
if ($t)
|
|
3588
|
+
for (var n of $t(t))
|
|
3589
|
+
Ni.call(t, n) && Vt(e, n, t[n]);
|
|
3590
|
+
return e;
|
|
3591
|
+
}, ki = (e, t) => Pi(e, Mi(t));
|
|
3592
|
+
let St;
|
|
3593
|
+
const Ke = tt(null);
|
|
3594
|
+
function zt(e) {
|
|
3595
|
+
return e.split("-").map((t, n, r) => r.slice(0, n + 1).join("-")).reverse();
|
|
3596
|
+
}
|
|
3597
|
+
function it(e, t = Pe().fallbackLocale) {
|
|
3598
|
+
const n = zt(e);
|
|
3599
|
+
return t ? [.../* @__PURE__ */ new Set([...n, ...zt(t)])] : n;
|
|
3600
|
+
}
|
|
3601
|
+
function ve() {
|
|
3602
|
+
return St ?? void 0;
|
|
3603
|
+
}
|
|
3604
|
+
Ke.subscribe((e) => {
|
|
3605
|
+
St = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
|
|
3606
|
+
});
|
|
3607
|
+
const Di = (e) => {
|
|
3608
|
+
if (e && Si(e) && wt(e)) {
|
|
3609
|
+
const { loadingDelay: t } = Pe();
|
|
3610
|
+
let n;
|
|
3611
|
+
return typeof window < "u" && ve() != null && t ? n = window.setTimeout(
|
|
3612
|
+
() => pt.set(!0),
|
|
3613
|
+
t
|
|
3614
|
+
) : pt.set(!0), Tn(e).then(() => {
|
|
3615
|
+
Ke.set(e);
|
|
3616
|
+
}).finally(() => {
|
|
3617
|
+
clearTimeout(n), pt.set(!1);
|
|
3618
|
+
});
|
|
3619
|
+
}
|
|
3620
|
+
return Ke.set(e);
|
|
3621
|
+
}, Ie = ki(Ri({}, Ke), {
|
|
3622
|
+
set: Di
|
|
3623
|
+
}), ot = (e) => {
|
|
3624
|
+
const t = /* @__PURE__ */ Object.create(null);
|
|
3625
|
+
return (r) => {
|
|
3626
|
+
const i = JSON.stringify(r);
|
|
3627
|
+
return i in t ? t[i] : t[i] = e(r);
|
|
3628
|
+
};
|
|
3629
|
+
};
|
|
3630
|
+
var Ui = Object.defineProperty, et = Object.getOwnPropertySymbols, On = Object.prototype.hasOwnProperty, Hn = Object.prototype.propertyIsEnumerable, Xt = (e, t, n) => t in e ? Ui(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ht = (e, t) => {
|
|
3631
|
+
for (var n in t || (t = {}))
|
|
3632
|
+
On.call(t, n) && Xt(e, n, t[n]);
|
|
3633
|
+
if (et)
|
|
3634
|
+
for (var n of et(t))
|
|
3635
|
+
Hn.call(t, n) && Xt(e, n, t[n]);
|
|
3636
|
+
return e;
|
|
3637
|
+
}, Ne = (e, t) => {
|
|
3638
|
+
var n = {};
|
|
3639
|
+
for (var r in e)
|
|
3640
|
+
On.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3641
|
+
if (e != null && et)
|
|
3642
|
+
for (var r of et(e))
|
|
3643
|
+
t.indexOf(r) < 0 && Hn.call(e, r) && (n[r] = e[r]);
|
|
3644
|
+
return n;
|
|
3645
|
+
};
|
|
3646
|
+
const ze = (e, t) => {
|
|
3647
|
+
const { formats: n } = Pe();
|
|
3648
|
+
if (e in n && t in n[e])
|
|
3649
|
+
return n[e][t];
|
|
3650
|
+
throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
|
|
3651
|
+
}, Gi = ot(
|
|
3652
|
+
(e) => {
|
|
3653
|
+
var t = e, { locale: n, format: r } = t, i = Ne(t, ["locale", "format"]);
|
|
3654
|
+
if (n == null)
|
|
3655
|
+
throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
|
|
3656
|
+
return r && (i = ze("number", r)), new Intl.NumberFormat(n, i);
|
|
3657
|
+
}
|
|
3658
|
+
), Fi = ot(
|
|
3659
|
+
(e) => {
|
|
3660
|
+
var t = e, { locale: n, format: r } = t, i = Ne(t, ["locale", "format"]);
|
|
3661
|
+
if (n == null)
|
|
3662
|
+
throw new Error('[svelte-i18n] A "locale" must be set to format dates');
|
|
3663
|
+
return r ? i = ze("date", r) : Object.keys(i).length === 0 && (i = ze("date", "short")), new Intl.DateTimeFormat(n, i);
|
|
3664
|
+
}
|
|
3665
|
+
), ji = ot(
|
|
3666
|
+
(e) => {
|
|
3667
|
+
var t = e, { locale: n, format: r } = t, i = Ne(t, ["locale", "format"]);
|
|
3668
|
+
if (n == null)
|
|
3669
|
+
throw new Error(
|
|
3670
|
+
'[svelte-i18n] A "locale" must be set to format time values'
|
|
3671
|
+
);
|
|
3672
|
+
return r ? i = ze("time", r) : Object.keys(i).length === 0 && (i = ze("time", "short")), new Intl.DateTimeFormat(n, i);
|
|
3673
|
+
}
|
|
3674
|
+
), $i = (e = {}) => {
|
|
3675
|
+
var t = e, {
|
|
3676
|
+
locale: n = ve()
|
|
3677
|
+
} = t, r = Ne(t, [
|
|
3678
|
+
"locale"
|
|
3679
|
+
]);
|
|
3680
|
+
return Gi(Ht({ locale: n }, r));
|
|
3681
|
+
}, Vi = (e = {}) => {
|
|
3682
|
+
var t = e, {
|
|
3683
|
+
locale: n = ve()
|
|
3684
|
+
} = t, r = Ne(t, [
|
|
3685
|
+
"locale"
|
|
3686
|
+
]);
|
|
3687
|
+
return Fi(Ht({ locale: n }, r));
|
|
3688
|
+
}, zi = (e = {}) => {
|
|
3689
|
+
var t = e, {
|
|
3690
|
+
locale: n = ve()
|
|
3691
|
+
} = t, r = Ne(t, [
|
|
3692
|
+
"locale"
|
|
3693
|
+
]);
|
|
3694
|
+
return ji(Ht({ locale: n }, r));
|
|
3695
|
+
}, Xi = ot(
|
|
3696
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
3697
|
+
(e, t = ve()) => new yi(e, t, Pe().formats, {
|
|
3698
|
+
ignoreTag: Pe().ignoreTag
|
|
3699
|
+
})
|
|
3700
|
+
), Wi = (e, t = {}) => {
|
|
3701
|
+
var n, r, i, o;
|
|
3702
|
+
let l = t;
|
|
3703
|
+
typeof e == "object" && (l = e, e = l.id);
|
|
3704
|
+
const {
|
|
3705
|
+
values: s,
|
|
3706
|
+
locale: u = ve(),
|
|
3707
|
+
default: a
|
|
3708
|
+
} = l;
|
|
3709
|
+
if (u == null)
|
|
3710
|
+
throw new Error(
|
|
3711
|
+
"[svelte-i18n] Cannot format a message without first setting the initial locale."
|
|
3712
|
+
);
|
|
3713
|
+
let h = vn(e, u);
|
|
3714
|
+
if (!h)
|
|
3715
|
+
h = (o = (i = (r = (n = Pe()).handleMissingMessage) == null ? void 0 : r.call(n, { locale: u, id: e, defaultValue: a })) != null ? i : a) != null ? o : e;
|
|
3716
|
+
else if (typeof h != "string")
|
|
3717
|
+
return console.warn(
|
|
3718
|
+
`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
|
|
3719
|
+
), h;
|
|
3720
|
+
if (!s)
|
|
3721
|
+
return h;
|
|
3722
|
+
let c = h;
|
|
3723
|
+
try {
|
|
3724
|
+
c = Xi(h, u).format(s);
|
|
3725
|
+
} catch (d) {
|
|
3726
|
+
d instanceof Error && console.warn(
|
|
3727
|
+
`[svelte-i18n] Message "${e}" has syntax error:`,
|
|
3728
|
+
d.message
|
|
3729
|
+
);
|
|
3730
|
+
}
|
|
3731
|
+
return c;
|
|
3732
|
+
}, Zi = (e, t) => zi(t).format(e), qi = (e, t) => Vi(t).format(e), Qi = (e, t) => $i(t).format(e), Ji = (e, t = ve()) => vn(e, t), Yi = Me([Ie, Xe], () => Wi);
|
|
3733
|
+
Me([Ie], () => Zi);
|
|
3734
|
+
Me([Ie], () => qi);
|
|
3735
|
+
Me([Ie], () => Qi);
|
|
3736
|
+
Me([Ie, Xe], () => Ji);
|
|
3737
|
+
function Wt(e, t) {
|
|
3738
|
+
wn(e, t);
|
|
3739
|
+
}
|
|
3740
|
+
function Ki(e) {
|
|
3741
|
+
Ie.set(e);
|
|
3742
|
+
}
|
|
3743
|
+
const Zt = {
|
|
3744
|
+
en: {
|
|
3745
|
+
otpTitle: "Code verification is required",
|
|
3746
|
+
popupMessage: "Please enter the security code received on your SMS/email address to perform the update.",
|
|
3747
|
+
popupMessageLastWarning: "If the next validation attempt is failed, you will be logged out and blocked temporarily.",
|
|
3748
|
+
minutes: "minutes",
|
|
3749
|
+
errorHeader: "Error",
|
|
3750
|
+
configError: "Unable to load OTP data. Please try again later.",
|
|
3751
|
+
otpHeading: "Enter OTP",
|
|
3752
|
+
resendOtp: "Resent OTP",
|
|
3753
|
+
submit: "Submit",
|
|
3754
|
+
close: "Close",
|
|
3755
|
+
invalidOtp: "The code you've sent is not valid. Please try again.",
|
|
3756
|
+
accountBlocked: "Too many attempts for OTP. Your account has been blocked for one hour.",
|
|
3757
|
+
submissionError: "Something went wrong. Please try again.",
|
|
3758
|
+
otpExpiredMessage: "Validation code has expired, please request a new one to continue.",
|
|
3759
|
+
timeRemaining: "Code expires in:",
|
|
3760
|
+
selectChannelTitle: "Select verification method",
|
|
3761
|
+
selectChannelMessage: "Choose how you would like to receive your verification code",
|
|
3762
|
+
channelSMS: "SMS",
|
|
3763
|
+
channelEmail: "Email",
|
|
3764
|
+
sendCode: "Send code",
|
|
3765
|
+
waitSeconds: "Please wait for before resending:"
|
|
3766
|
+
},
|
|
3767
|
+
tr: {
|
|
3768
|
+
otpTitle: "Kod doğrulaması gereklidir",
|
|
3769
|
+
popupMessage: "Güncellemeyi gerçekleştirmek için SMS/e-posta adresinize gönderilen güvenlik kodunu girin.",
|
|
3770
|
+
popupMessageLastWarning: "Bir sonraki doğrulama denemesi başarısız olursa, oturumunuz kapatılacak ve geçici olarak engelleneceksiniz.",
|
|
3771
|
+
minutes: "dakika",
|
|
3772
|
+
errorHeader: "Hata",
|
|
3773
|
+
configError: "OTP verileri yüklenemedi. Lütfen daha sonra tekrar deneyin.",
|
|
3774
|
+
otpHeading: "OTP Girin",
|
|
3775
|
+
resendOtp: "OTP'yi Yeniden Gönder",
|
|
3776
|
+
submit: "Gönder",
|
|
3777
|
+
close: "Kapat",
|
|
3778
|
+
invalidOtp: "Gönderdiğiniz kod geçerli değil. Lütfen tekrar deneyin.",
|
|
3779
|
+
accountBlocked: "OTP için çok fazla deneme yapıldı. Hesabınız bir saat süreyle engellenmiştir.",
|
|
3780
|
+
submissionError: "Bir şeyler ters gitti. Lütfen tekrar deneyin.",
|
|
3781
|
+
otpExpiredMessage: "Doğrulama kodunun süresi doldu, devam etmek için lütfen yeni bir kod isteyin.",
|
|
3782
|
+
timeRemaining: "Kodun süresi doluyor:",
|
|
3783
|
+
selectChannelTitle: "Select verification method",
|
|
3784
|
+
selectChannelMessage: "Choose how you would like to receive your verification code",
|
|
3785
|
+
channelSMS: "SMS kodu",
|
|
3786
|
+
channelEmail: "E-posta kodu",
|
|
3787
|
+
sendCode: "Kodu gönder",
|
|
3788
|
+
waitSeconds: "Tekrar göndermeden önce lütfen bekleyin:"
|
|
3789
|
+
}
|
|
3790
|
+
};
|
|
3791
|
+
function eo(e) {
|
|
3792
|
+
Gn(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}}');
|
|
3793
|
+
}
|
|
3794
|
+
function qt(e, t, n) {
|
|
3795
|
+
const r = e.slice();
|
|
3796
|
+
return r[67] = t[n], r[68] = t, r[69] = n, r;
|
|
3797
|
+
}
|
|
3798
|
+
function to(e) {
|
|
3799
|
+
let t, n, r = (
|
|
3800
|
+
/*$_*/
|
|
3801
|
+
e[17]("otpTitle") + ""
|
|
3802
|
+
), i, o, l, s, u, a, h, c, d, y, b, m, E, w, B, L, k, G, N = (
|
|
3803
|
+
/*$_*/
|
|
3804
|
+
e[17]("channelSMS") + ""
|
|
3805
|
+
), K, fe, W, re, Re, M, $, q, ne, F, ie, Y, oe, Q, pe = (
|
|
3806
|
+
/*$_*/
|
|
3807
|
+
e[17]("channelEmail") + ""
|
|
3808
|
+
), ge, be, _e, ye, ce, ke, De;
|
|
3809
|
+
function Ue(_, A) {
|
|
3810
|
+
return (
|
|
3811
|
+
/*showResendOtp*/
|
|
3812
|
+
_[9] ? oo : (
|
|
3813
|
+
/*showOtpInput*/
|
|
3814
|
+
_[12] ? ro : io
|
|
3815
|
+
)
|
|
3816
|
+
);
|
|
3817
|
+
}
|
|
3818
|
+
let xe = Ue(e), J = xe(e), V = (
|
|
3819
|
+
/*selectedChannel*/
|
|
3820
|
+
e[0] && Jt(e)
|
|
3821
|
+
);
|
|
3822
|
+
function we(_, A) {
|
|
3823
|
+
if (
|
|
3824
|
+
/*isLoading*/
|
|
3825
|
+
_[3] && /*showOtpInput*/
|
|
3826
|
+
_[12]
|
|
3827
|
+
)
|
|
3828
|
+
return co;
|
|
3829
|
+
if (
|
|
3830
|
+
/*showOtpInput*/
|
|
3831
|
+
_[12] && /*config*/
|
|
3832
|
+
_[4]
|
|
3833
|
+
)
|
|
3834
|
+
return ho;
|
|
3835
|
+
}
|
|
3836
|
+
let se = we(e), z = se && se(e);
|
|
3837
|
+
function Se(_, A) {
|
|
3838
|
+
if (
|
|
3839
|
+
/*showResendOtp*/
|
|
3840
|
+
_[9]
|
|
3841
|
+
)
|
|
3842
|
+
return po;
|
|
3843
|
+
if (
|
|
3844
|
+
/*showOtpInput*/
|
|
3845
|
+
_[12] && /*config*/
|
|
3846
|
+
_[4]
|
|
3847
|
+
)
|
|
3848
|
+
return fo;
|
|
3849
|
+
}
|
|
3850
|
+
let de = Se(e), j = de && de(e);
|
|
3851
|
+
return {
|
|
3852
|
+
c() {
|
|
3853
|
+
t = T("div"), n = T("div"), i = I(r), o = D(), J.c(), l = D(), s = T("div"), u = T("label"), a = T("div"), h = D(), c = T("input"), y = D(), b = T("div"), m = ee("svg"), E = ee("path"), w = ee("circle"), B = ee("circle"), L = ee("circle"), k = D(), G = T("span"), K = I(N), fe = D(), W = T("label"), re = T("div"), Re = D(), M = T("input"), q = D(), ne = T("div"), F = ee("svg"), ie = ee("rect"), Y = ee("path"), oe = D(), Q = T("span"), ge = I(pe), be = D(), V && V.c(), _e = D(), z && z.c(), ye = D(), ce = T("div"), j && j.c(), p(n, "class", "Title"), p(t, "class", "OtpDescription"), p(a, "class", "RadioIndicator"), ae(
|
|
3854
|
+
a,
|
|
3855
|
+
"checked",
|
|
3856
|
+
/*selectedChannel*/
|
|
3857
|
+
e[0] === /*channels*/
|
|
3858
|
+
e[18].SMS
|
|
3859
|
+
), p(c, "type", "radio"), p(c, "name", "channel"), c.value = /*channels*/
|
|
3860
|
+
e[18].SMS, c.checked = d = /*selectedChannel*/
|
|
3861
|
+
e[0] === /*channels*/
|
|
3862
|
+
e[18].SMS, p(E, "d", "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"), p(w, "cx", "9"), p(w, "cy", "11"), p(w, "r", "0.5"), p(w, "fill", "currentColor"), p(B, "cx", "12"), p(B, "cy", "11"), p(B, "r", "0.5"), p(B, "fill", "currentColor"), p(L, "cx", "15"), p(L, "cy", "11"), p(L, "r", "0.5"), p(L, "fill", "currentColor"), p(m, "xmlns", "http://www.w3.org/2000/svg"), p(m, "width", "24"), p(m, "height", "24"), p(m, "viewBox", "0 0 24 24"), p(m, "fill", "none"), p(m, "stroke", "currentColor"), p(m, "stroke-width", "2"), p(m, "stroke-linecap", "round"), p(m, "stroke-linejoin", "round"), p(b, "class", "ChannelContent"), p(u, "class", "ChannelCheckbox"), ae(
|
|
3863
|
+
u,
|
|
3864
|
+
"selected",
|
|
3865
|
+
/*selectedChannel*/
|
|
3866
|
+
e[0] === /*channels*/
|
|
3867
|
+
e[18].SMS
|
|
3868
|
+
), p(re, "class", "RadioIndicator"), ae(
|
|
3869
|
+
re,
|
|
3870
|
+
"checked",
|
|
3871
|
+
/*selectedChannel*/
|
|
3872
|
+
e[0] === /*channels*/
|
|
3873
|
+
e[18].EMAIL
|
|
3874
|
+
), p(M, "type", "radio"), p(M, "name", "channel"), M.value = /*channels*/
|
|
3875
|
+
e[18].EMAIL, M.checked = $ = /*selectedChannel*/
|
|
3876
|
+
e[0] === /*channels*/
|
|
3877
|
+
e[18].EMAIL, p(ie, "x", "2"), p(ie, "y", "4"), p(ie, "width", "20"), p(ie, "height", "16"), p(ie, "rx", "2"), p(Y, "d", "m2 7 10 6 10-6"), p(F, "xmlns", "http://www.w3.org/2000/svg"), p(F, "width", "24"), p(F, "height", "24"), p(F, "viewBox", "0 0 24 24"), p(F, "fill", "none"), p(F, "stroke", "currentColor"), p(F, "stroke-width", "2"), p(F, "stroke-linecap", "round"), p(F, "stroke-linejoin", "round"), p(ne, "class", "ChannelContent"), p(W, "class", "ChannelCheckbox"), ae(
|
|
3878
|
+
W,
|
|
3879
|
+
"selected",
|
|
3880
|
+
/*selectedChannel*/
|
|
3881
|
+
e[0] === /*channels*/
|
|
3882
|
+
e[18].EMAIL
|
|
3883
|
+
), p(s, "class", "ChannelSelection"), p(ce, "class", "OtpActionButtons");
|
|
3884
|
+
},
|
|
3885
|
+
m(_, A) {
|
|
3886
|
+
C(_, t, A), g(t, n), g(n, i), g(t, o), J.m(t, null), C(_, l, A), C(_, s, A), g(s, u), g(u, a), g(u, h), g(u, c), g(u, y), g(u, b), g(b, m), g(m, E), g(m, w), g(m, B), g(m, L), g(b, k), g(b, G), g(G, K), g(s, fe), g(s, W), g(W, re), g(W, Re), g(W, M), g(W, q), g(W, ne), g(ne, F), g(F, ie), g(F, Y), g(ne, oe), g(ne, Q), g(Q, ge), C(_, be, A), V && V.m(_, A), C(_, _e, A), z && z.m(_, A), C(_, ye, A), C(_, ce, A), j && j.m(ce, null), ke || (De = [
|
|
3887
|
+
he(
|
|
3888
|
+
c,
|
|
3889
|
+
"change",
|
|
3890
|
+
/*change_handler*/
|
|
3891
|
+
e[37]
|
|
3892
|
+
),
|
|
3893
|
+
he(
|
|
3894
|
+
M,
|
|
3895
|
+
"change",
|
|
3896
|
+
/*change_handler_1*/
|
|
3897
|
+
e[38]
|
|
3898
|
+
)
|
|
3899
|
+
], ke = !0);
|
|
3900
|
+
},
|
|
3901
|
+
p(_, A) {
|
|
3902
|
+
A[0] & /*$_*/
|
|
3903
|
+
131072 && r !== (r = /*$_*/
|
|
3904
|
+
_[17]("otpTitle") + "") && U(i, r), xe === (xe = Ue(_)) && J ? J.p(_, A) : (J.d(1), J = xe(_), J && (J.c(), J.m(t, null))), A[0] & /*selectedChannel, channels*/
|
|
3905
|
+
262145 && ae(
|
|
3906
|
+
a,
|
|
3907
|
+
"checked",
|
|
3908
|
+
/*selectedChannel*/
|
|
3909
|
+
_[0] === /*channels*/
|
|
3910
|
+
_[18].SMS
|
|
3911
|
+
), A[0] & /*selectedChannel*/
|
|
3912
|
+
1 && d !== (d = /*selectedChannel*/
|
|
3913
|
+
_[0] === /*channels*/
|
|
3914
|
+
_[18].SMS) && (c.checked = d), A[0] & /*$_*/
|
|
3915
|
+
131072 && N !== (N = /*$_*/
|
|
3916
|
+
_[17]("channelSMS") + "") && U(K, N), A[0] & /*selectedChannel, channels*/
|
|
3917
|
+
262145 && ae(
|
|
3918
|
+
u,
|
|
3919
|
+
"selected",
|
|
3920
|
+
/*selectedChannel*/
|
|
3921
|
+
_[0] === /*channels*/
|
|
3922
|
+
_[18].SMS
|
|
3923
|
+
), A[0] & /*selectedChannel, channels*/
|
|
3924
|
+
262145 && ae(
|
|
3925
|
+
re,
|
|
3926
|
+
"checked",
|
|
3927
|
+
/*selectedChannel*/
|
|
3928
|
+
_[0] === /*channels*/
|
|
3929
|
+
_[18].EMAIL
|
|
3930
|
+
), A[0] & /*selectedChannel*/
|
|
3931
|
+
1 && $ !== ($ = /*selectedChannel*/
|
|
3932
|
+
_[0] === /*channels*/
|
|
3933
|
+
_[18].EMAIL) && (M.checked = $), A[0] & /*$_*/
|
|
3934
|
+
131072 && pe !== (pe = /*$_*/
|
|
3935
|
+
_[17]("channelEmail") + "") && U(ge, pe), A[0] & /*selectedChannel, channels*/
|
|
3936
|
+
262145 && ae(
|
|
3937
|
+
W,
|
|
3938
|
+
"selected",
|
|
3939
|
+
/*selectedChannel*/
|
|
3940
|
+
_[0] === /*channels*/
|
|
3941
|
+
_[18].EMAIL
|
|
3942
|
+
), /*selectedChannel*/
|
|
3943
|
+
_[0] ? V ? V.p(_, A) : (V = Jt(_), V.c(), V.m(_e.parentNode, _e)) : V && (V.d(1), V = null), se === (se = we(_)) && z ? z.p(_, A) : (z && z.d(1), z = se && se(_), z && (z.c(), z.m(ye.parentNode, ye))), de === (de = Se(_)) && j ? j.p(_, A) : (j && j.d(1), j = de && de(_), j && (j.c(), j.m(ce, null)));
|
|
3944
|
+
},
|
|
3945
|
+
d(_) {
|
|
3946
|
+
_ && (H(t), H(l), H(s), H(be), H(_e), H(ye), H(ce)), J.d(), V && V.d(_), z && z.d(_), j && j.d(), ke = !1, Ee(De);
|
|
3947
|
+
}
|
|
3948
|
+
};
|
|
3949
|
+
}
|
|
3950
|
+
function no(e) {
|
|
3951
|
+
let t, n, r, i, o, l, s = (
|
|
3952
|
+
/*$_*/
|
|
3953
|
+
e[17]("errorHeader") + ""
|
|
3954
|
+
), u, a, h, c, d, y, b = (
|
|
3955
|
+
/*$_*/
|
|
3956
|
+
e[17]("close") + ""
|
|
3957
|
+
), m, E, w;
|
|
3958
|
+
return {
|
|
3959
|
+
c() {
|
|
3960
|
+
t = T("div"), n = T("div"), r = ee("svg"), i = ee("path"), o = D(), l = T("h2"), u = I(s), a = D(), h = T("p"), c = I(
|
|
3961
|
+
/*errorMessage*/
|
|
3962
|
+
e[8]
|
|
3963
|
+
), d = D(), y = T("button"), m = I(b), 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(r, "xmlns", "http://www.w3.org/2000/svg"), p(r, "viewBox", "0 0 512 512"), p(n, "class", "OtpErrorHeader"), p(y, "class", "OtpButton error"), p(t, "class", "OtpError");
|
|
3964
|
+
},
|
|
3965
|
+
m(B, L) {
|
|
3966
|
+
C(B, t, L), g(t, n), g(n, r), g(r, i), g(n, o), g(n, l), g(l, u), g(t, a), g(t, h), g(h, c), g(t, d), g(t, y), g(y, m), E || (w = he(
|
|
3967
|
+
y,
|
|
3968
|
+
"click",
|
|
3969
|
+
/*manualClosePopup*/
|
|
3970
|
+
e[26]
|
|
3971
|
+
), E = !0);
|
|
3972
|
+
},
|
|
3973
|
+
p(B, L) {
|
|
3974
|
+
L[0] & /*$_*/
|
|
3975
|
+
131072 && s !== (s = /*$_*/
|
|
3976
|
+
B[17]("errorHeader") + "") && U(u, s), L[0] & /*errorMessage*/
|
|
3977
|
+
256 && U(
|
|
3978
|
+
c,
|
|
3979
|
+
/*errorMessage*/
|
|
3980
|
+
B[8]
|
|
3981
|
+
), L[0] & /*$_*/
|
|
3982
|
+
131072 && b !== (b = /*$_*/
|
|
3983
|
+
B[17]("close") + "") && U(m, b);
|
|
3984
|
+
},
|
|
3985
|
+
d(B) {
|
|
3986
|
+
B && H(t), E = !1, w();
|
|
3987
|
+
}
|
|
3988
|
+
};
|
|
3989
|
+
}
|
|
3990
|
+
function ro(e) {
|
|
3991
|
+
let t, n, r, i;
|
|
3992
|
+
function o(a, h) {
|
|
3993
|
+
return (
|
|
3994
|
+
/*isLastWarning*/
|
|
3995
|
+
a[10] ? ao : so
|
|
3996
|
+
);
|
|
3997
|
+
}
|
|
3998
|
+
let l = o(e), s = l(e), u = (
|
|
3999
|
+
/*hasErrors*/
|
|
4000
|
+
e[6] && Qt(e)
|
|
4001
|
+
);
|
|
4002
|
+
return {
|
|
4003
|
+
c() {
|
|
4004
|
+
t = T("p"), s.c(), r = D(), u && u.c(), i = Vn(), p(t, "class", n = /*isLastWarning*/
|
|
4005
|
+
e[10] ? "LastWarningMessage" : "");
|
|
4006
|
+
},
|
|
4007
|
+
m(a, h) {
|
|
4008
|
+
C(a, t, h), s.m(t, null), C(a, r, h), u && u.m(a, h), C(a, i, h);
|
|
4009
|
+
},
|
|
4010
|
+
p(a, h) {
|
|
4011
|
+
l === (l = o(a)) && s ? s.p(a, h) : (s.d(1), s = l(a), s && (s.c(), s.m(t, null))), h[0] & /*isLastWarning*/
|
|
4012
|
+
1024 && n !== (n = /*isLastWarning*/
|
|
4013
|
+
a[10] ? "LastWarningMessage" : "") && p(t, "class", n), /*hasErrors*/
|
|
4014
|
+
a[6] ? u ? u.p(a, h) : (u = Qt(a), u.c(), u.m(i.parentNode, i)) : u && (u.d(1), u = null);
|
|
4015
|
+
},
|
|
4016
|
+
d(a) {
|
|
4017
|
+
a && (H(t), H(r), H(i)), s.d(), u && u.d(a);
|
|
4018
|
+
}
|
|
4019
|
+
};
|
|
4020
|
+
}
|
|
4021
|
+
function io(e) {
|
|
4022
|
+
let t, n = (
|
|
4023
|
+
/*$_*/
|
|
4024
|
+
(e[17]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + ""
|
|
4025
|
+
), r;
|
|
4026
|
+
return {
|
|
4027
|
+
c() {
|
|
4028
|
+
t = T("p"), r = I(n);
|
|
4029
|
+
},
|
|
4030
|
+
m(i, o) {
|
|
4031
|
+
C(i, t, o), g(t, r);
|
|
4032
|
+
},
|
|
4033
|
+
p(i, o) {
|
|
4034
|
+
o[0] & /*$_*/
|
|
4035
|
+
131072 && n !== (n = /*$_*/
|
|
4036
|
+
(i[17]("selectChannelMessage") || "Selectează metoda prin care vrei să primești codul OTP") + "") && U(r, n);
|
|
4037
|
+
},
|
|
4038
|
+
d(i) {
|
|
4039
|
+
i && H(t);
|
|
4040
|
+
}
|
|
4041
|
+
};
|
|
4042
|
+
}
|
|
4043
|
+
function oo(e) {
|
|
4044
|
+
let t, n = (
|
|
4045
|
+
/*$_*/
|
|
4046
|
+
e[17]("otpExpiredMessage") + ""
|
|
4047
|
+
), r;
|
|
4048
|
+
return {
|
|
4049
|
+
c() {
|
|
4050
|
+
t = T("p"), r = I(n), p(t, "class", "OtpNoticeMessage"), p(t, "role", "alert");
|
|
4051
|
+
},
|
|
4052
|
+
m(i, o) {
|
|
4053
|
+
C(i, t, o), g(t, r);
|
|
4054
|
+
},
|
|
4055
|
+
p(i, o) {
|
|
4056
|
+
o[0] & /*$_*/
|
|
4057
|
+
131072 && n !== (n = /*$_*/
|
|
4058
|
+
i[17]("otpExpiredMessage") + "") && U(r, n);
|
|
4059
|
+
},
|
|
4060
|
+
d(i) {
|
|
4061
|
+
i && H(t);
|
|
4062
|
+
}
|
|
4063
|
+
};
|
|
4064
|
+
}
|
|
4065
|
+
function so(e) {
|
|
4066
|
+
let t = (
|
|
4067
|
+
/*$_*/
|
|
4068
|
+
e[17]("popupMessage") + ""
|
|
4069
|
+
), n;
|
|
4070
|
+
return {
|
|
4071
|
+
c() {
|
|
4072
|
+
n = I(t);
|
|
4073
|
+
},
|
|
4074
|
+
m(r, i) {
|
|
4075
|
+
C(r, n, i);
|
|
4076
|
+
},
|
|
4077
|
+
p(r, i) {
|
|
4078
|
+
i[0] & /*$_*/
|
|
4079
|
+
131072 && t !== (t = /*$_*/
|
|
4080
|
+
r[17]("popupMessage") + "") && U(n, t);
|
|
4081
|
+
},
|
|
4082
|
+
d(r) {
|
|
4083
|
+
r && H(n);
|
|
4084
|
+
}
|
|
4085
|
+
};
|
|
4086
|
+
}
|
|
4087
|
+
function ao(e) {
|
|
4088
|
+
let t = (
|
|
4089
|
+
/*$_*/
|
|
4090
|
+
e[17]("popupMessageLastWarning") + ""
|
|
4091
|
+
), n;
|
|
4092
|
+
return {
|
|
4093
|
+
c() {
|
|
4094
|
+
n = I(t);
|
|
4095
|
+
},
|
|
4096
|
+
m(r, i) {
|
|
4097
|
+
C(r, n, i);
|
|
4098
|
+
},
|
|
4099
|
+
p(r, i) {
|
|
4100
|
+
i[0] & /*$_*/
|
|
4101
|
+
131072 && t !== (t = /*$_*/
|
|
4102
|
+
r[17]("popupMessageLastWarning") + "") && U(n, t);
|
|
4103
|
+
},
|
|
4104
|
+
d(r) {
|
|
4105
|
+
r && H(n);
|
|
4106
|
+
}
|
|
4107
|
+
};
|
|
4108
|
+
}
|
|
4109
|
+
function Qt(e) {
|
|
4110
|
+
let t, n;
|
|
4111
|
+
return {
|
|
4112
|
+
c() {
|
|
4113
|
+
t = T("p"), n = I(
|
|
4114
|
+
/*errorMessage*/
|
|
4115
|
+
e[8]
|
|
4116
|
+
), p(t, "class", "OtpErrorMessage"), p(t, "role", "alert");
|
|
4117
|
+
},
|
|
4118
|
+
m(r, i) {
|
|
4119
|
+
C(r, t, i), g(t, n);
|
|
4120
|
+
},
|
|
4121
|
+
p(r, i) {
|
|
4122
|
+
i[0] & /*errorMessage*/
|
|
4123
|
+
256 && U(
|
|
4124
|
+
n,
|
|
4125
|
+
/*errorMessage*/
|
|
4126
|
+
r[8]
|
|
4127
|
+
);
|
|
4128
|
+
},
|
|
4129
|
+
d(r) {
|
|
4130
|
+
r && H(t);
|
|
4131
|
+
}
|
|
4132
|
+
};
|
|
4133
|
+
}
|
|
4134
|
+
function Jt(e) {
|
|
4135
|
+
let t, n, r, i;
|
|
4136
|
+
function o(u, a) {
|
|
4137
|
+
return (
|
|
4138
|
+
/*currentChannelTimer*/
|
|
4139
|
+
u[15] > 0 ? uo : lo
|
|
4140
|
+
);
|
|
4141
|
+
}
|
|
4142
|
+
let l = o(e), s = l(e);
|
|
4143
|
+
return {
|
|
4144
|
+
c() {
|
|
4145
|
+
t = T("button"), s.c(), p(t, "class", "OtpButton"), t.disabled = n = !/*canSubmitChannel*/
|
|
4146
|
+
e[16], ae(t, "disabled", !/*canSubmitChannel*/
|
|
4147
|
+
e[16]);
|
|
4148
|
+
},
|
|
4149
|
+
m(u, a) {
|
|
4150
|
+
C(u, t, a), s.m(t, null), r || (i = he(
|
|
4151
|
+
t,
|
|
4152
|
+
"click",
|
|
4153
|
+
/*handleChannelSubmit*/
|
|
4154
|
+
e[20]
|
|
4155
|
+
), r = !0);
|
|
4156
|
+
},
|
|
4157
|
+
p(u, a) {
|
|
4158
|
+
l === (l = o(u)) && s ? s.p(u, a) : (s.d(1), s = l(u), s && (s.c(), s.m(t, null))), a[0] & /*canSubmitChannel*/
|
|
4159
|
+
65536 && n !== (n = !/*canSubmitChannel*/
|
|
4160
|
+
u[16]) && (t.disabled = n), a[0] & /*canSubmitChannel*/
|
|
4161
|
+
65536 && ae(t, "disabled", !/*canSubmitChannel*/
|
|
4162
|
+
u[16]);
|
|
4163
|
+
},
|
|
4164
|
+
d(u) {
|
|
4165
|
+
u && H(t), s.d(), r = !1, i();
|
|
4166
|
+
}
|
|
4167
|
+
};
|
|
4168
|
+
}
|
|
4169
|
+
function lo(e) {
|
|
4170
|
+
let t = (
|
|
4171
|
+
/*$_*/
|
|
4172
|
+
e[17]("sendCode") + ""
|
|
4173
|
+
), n;
|
|
4174
|
+
return {
|
|
4175
|
+
c() {
|
|
4176
|
+
n = I(t);
|
|
4177
|
+
},
|
|
4178
|
+
m(r, i) {
|
|
4179
|
+
C(r, n, i);
|
|
4180
|
+
},
|
|
4181
|
+
p(r, i) {
|
|
4182
|
+
i[0] & /*$_*/
|
|
4183
|
+
131072 && t !== (t = /*$_*/
|
|
4184
|
+
r[17]("sendCode") + "") && U(n, t);
|
|
4185
|
+
},
|
|
4186
|
+
d(r) {
|
|
4187
|
+
r && H(n);
|
|
4188
|
+
}
|
|
4189
|
+
};
|
|
4190
|
+
}
|
|
4191
|
+
function uo(e) {
|
|
4192
|
+
let t = (
|
|
4193
|
+
/*$_*/
|
|
4194
|
+
e[17]("waitSeconds") + ""
|
|
4195
|
+
), n, r, i, o;
|
|
4196
|
+
return {
|
|
4197
|
+
c() {
|
|
4198
|
+
n = I(t), r = I(" ("), i = I(
|
|
4199
|
+
/*currentChannelTimer*/
|
|
4200
|
+
e[15]
|
|
4201
|
+
), o = I("s)");
|
|
4202
|
+
},
|
|
4203
|
+
m(l, s) {
|
|
4204
|
+
C(l, n, s), C(l, r, s), C(l, i, s), C(l, o, s);
|
|
4205
|
+
},
|
|
4206
|
+
p(l, s) {
|
|
4207
|
+
s[0] & /*$_*/
|
|
4208
|
+
131072 && t !== (t = /*$_*/
|
|
4209
|
+
l[17]("waitSeconds") + "") && U(n, t), s[0] & /*currentChannelTimer*/
|
|
4210
|
+
32768 && U(
|
|
4211
|
+
i,
|
|
4212
|
+
/*currentChannelTimer*/
|
|
4213
|
+
l[15]
|
|
4214
|
+
);
|
|
4215
|
+
},
|
|
4216
|
+
d(l) {
|
|
4217
|
+
l && (H(n), H(r), H(i), H(o));
|
|
4218
|
+
}
|
|
4219
|
+
};
|
|
4220
|
+
}
|
|
4221
|
+
function ho(e) {
|
|
4222
|
+
let t, n, r = (
|
|
4223
|
+
/*$_*/
|
|
4224
|
+
e[17]("timeRemaining") + ""
|
|
4225
|
+
), i, o, l = (
|
|
4226
|
+
/*formatTime*/
|
|
4227
|
+
e[21](
|
|
4228
|
+
/*timeLeft*/
|
|
4229
|
+
e[5]
|
|
4230
|
+
) + ""
|
|
4231
|
+
), s, u, a = (
|
|
4232
|
+
/*$_*/
|
|
4233
|
+
e[17]("minutes") + ""
|
|
4234
|
+
), h, c, d, y = Mt(
|
|
4235
|
+
/*otp*/
|
|
4236
|
+
e[2]
|
|
4237
|
+
), b = [];
|
|
4238
|
+
for (let m = 0; m < y.length; m += 1)
|
|
4239
|
+
b[m] = Yt(qt(e, y, m));
|
|
4240
|
+
return {
|
|
4241
|
+
c() {
|
|
4242
|
+
t = T("div"), n = T("div"), i = I(r), o = D(), s = I(l), u = D(), h = I(a), c = D(), d = T("div");
|
|
4243
|
+
for (let m = 0; m < b.length; m += 1)
|
|
4244
|
+
b[m].c();
|
|
4245
|
+
p(n, "class", "OtpTimer"), p(d, "class", "OtpField"), p(t, "class", "OtpFieldWrapper");
|
|
4246
|
+
},
|
|
4247
|
+
m(m, E) {
|
|
4248
|
+
C(m, t, E), g(t, n), g(n, i), g(n, o), g(n, s), g(n, u), g(n, h), g(t, c), g(t, d);
|
|
4249
|
+
for (let w = 0; w < b.length; w += 1)
|
|
4250
|
+
b[w] && b[w].m(d, null);
|
|
4251
|
+
},
|
|
4252
|
+
p(m, E) {
|
|
4253
|
+
if (E[0] & /*$_*/
|
|
4254
|
+
131072 && r !== (r = /*$_*/
|
|
4255
|
+
m[17]("timeRemaining") + "") && U(i, r), E[0] & /*timeLeft*/
|
|
4256
|
+
32 && l !== (l = /*formatTime*/
|
|
4257
|
+
m[21](
|
|
4258
|
+
/*timeLeft*/
|
|
4259
|
+
m[5]
|
|
4260
|
+
) + "") && U(s, l), E[0] & /*$_*/
|
|
4261
|
+
131072 && a !== (a = /*$_*/
|
|
4262
|
+
m[17]("minutes") + "") && U(h, a), E[0] & /*config, otp, inputDisabled, otpInputs, handleOtpInput, handleKeyDown, handleOnPasteOtp*/
|
|
4263
|
+
29378580) {
|
|
4264
|
+
y = Mt(
|
|
4265
|
+
/*otp*/
|
|
4266
|
+
m[2]
|
|
4267
|
+
);
|
|
4268
|
+
let w;
|
|
4269
|
+
for (w = 0; w < y.length; w += 1) {
|
|
4270
|
+
const B = qt(m, y, w);
|
|
4271
|
+
b[w] ? b[w].p(B, E) : (b[w] = Yt(B), b[w].c(), b[w].m(d, null));
|
|
4272
|
+
}
|
|
4273
|
+
for (; w < b.length; w += 1)
|
|
4274
|
+
b[w].d(1);
|
|
4275
|
+
b.length = y.length;
|
|
4276
|
+
}
|
|
4277
|
+
},
|
|
4278
|
+
d(m) {
|
|
4279
|
+
m && H(t), $n(b, m);
|
|
4280
|
+
}
|
|
4281
|
+
};
|
|
4282
|
+
}
|
|
4283
|
+
function co(e) {
|
|
4284
|
+
let t;
|
|
4285
|
+
return {
|
|
4286
|
+
c() {
|
|
4287
|
+
t = T("div"), t.innerHTML = '<span class="OtpLoader"></span>', p(t, "class", "OtpLoaderContainer");
|
|
4288
|
+
},
|
|
4289
|
+
m(n, r) {
|
|
4290
|
+
C(n, t, r);
|
|
4291
|
+
},
|
|
4292
|
+
p: te,
|
|
4293
|
+
d(n) {
|
|
4294
|
+
n && H(t);
|
|
4295
|
+
}
|
|
4296
|
+
};
|
|
4297
|
+
}
|
|
4298
|
+
function Yt(e) {
|
|
4299
|
+
let t, n, r, i = (
|
|
4300
|
+
/*index*/
|
|
4301
|
+
e[69]
|
|
4302
|
+
), o, l;
|
|
4303
|
+
const s = () => (
|
|
4304
|
+
/*input_binding*/
|
|
4305
|
+
e[39](t, i)
|
|
4306
|
+
), u = () => (
|
|
4307
|
+
/*input_binding*/
|
|
4308
|
+
e[39](null, i)
|
|
4309
|
+
);
|
|
4310
|
+
function a(...c) {
|
|
4311
|
+
return (
|
|
4312
|
+
/*input_handler*/
|
|
4313
|
+
e[40](
|
|
4314
|
+
/*index*/
|
|
4315
|
+
e[69],
|
|
4316
|
+
...c
|
|
4317
|
+
)
|
|
4318
|
+
);
|
|
4319
|
+
}
|
|
4320
|
+
function h(...c) {
|
|
4321
|
+
return (
|
|
4322
|
+
/*keydown_handler*/
|
|
4323
|
+
e[41](
|
|
4324
|
+
/*index*/
|
|
4325
|
+
e[69],
|
|
4326
|
+
...c
|
|
4327
|
+
)
|
|
4328
|
+
);
|
|
4329
|
+
}
|
|
4330
|
+
return {
|
|
4331
|
+
c() {
|
|
4332
|
+
t = T("input"), p(t, "id", `otp-input-${/*index*/
|
|
4333
|
+
e[69]}`), p(t, "type", "text"), p(t, "class", n = `otp-box ${/*config*/
|
|
4334
|
+
e[4].inputLength % 2 === 0 && /*index*/
|
|
4335
|
+
e[69] === /*config*/
|
|
4336
|
+
e[4].inputLength / 2 - 1 ? "space" : ""}`), p(t, "maxlength", 1), t.value = r = /*char*/
|
|
4337
|
+
e[67], p(t, "inputmode", "numeric"), t.disabled = /*inputDisabled*/
|
|
4338
|
+
e[11], p(t, "autocomplete", "off");
|
|
4339
|
+
},
|
|
4340
|
+
m(c, d) {
|
|
4341
|
+
C(c, t, d), s(), o || (l = [
|
|
4342
|
+
he(t, "input", a),
|
|
4343
|
+
he(t, "keydown", h),
|
|
4344
|
+
he(
|
|
4345
|
+
t,
|
|
4346
|
+
"paste",
|
|
4347
|
+
/*handleOnPasteOtp*/
|
|
4348
|
+
e[22]
|
|
4349
|
+
)
|
|
4350
|
+
], o = !0);
|
|
4351
|
+
},
|
|
4352
|
+
p(c, d) {
|
|
4353
|
+
e = c, d[0] & /*config*/
|
|
4354
|
+
16 && n !== (n = `otp-box ${/*config*/
|
|
4355
|
+
e[4].inputLength % 2 === 0 && /*index*/
|
|
4356
|
+
e[69] === /*config*/
|
|
4357
|
+
e[4].inputLength / 2 - 1 ? "space" : ""}`) && p(t, "class", n), d[0] & /*otp*/
|
|
4358
|
+
4 && r !== (r = /*char*/
|
|
4359
|
+
e[67]) && t.value !== r && (t.value = r), d[0] & /*inputDisabled*/
|
|
4360
|
+
2048 && (t.disabled = /*inputDisabled*/
|
|
4361
|
+
e[11]), i !== /*index*/
|
|
4362
|
+
e[69] && (u(), i = /*index*/
|
|
4363
|
+
e[69], s());
|
|
4364
|
+
},
|
|
4365
|
+
d(c) {
|
|
4366
|
+
c && H(t), u(), o = !1, Ee(l);
|
|
4367
|
+
}
|
|
4368
|
+
};
|
|
4369
|
+
}
|
|
4370
|
+
function fo(e) {
|
|
4371
|
+
let t, n = (
|
|
4372
|
+
/*$_*/
|
|
4373
|
+
e[17]("submit") + ""
|
|
4374
|
+
), r, i, o, l;
|
|
4375
|
+
return {
|
|
4376
|
+
c() {
|
|
4377
|
+
t = T("button"), r = I(n), p(t, "class", "OtpButton"), t.disabled = i = /*otp*/
|
|
4378
|
+
e[2].join("").length !== /*config*/
|
|
4379
|
+
e[4].inputLength || /*isSubmitting*/
|
|
4380
|
+
e[13];
|
|
4381
|
+
},
|
|
4382
|
+
m(s, u) {
|
|
4383
|
+
C(s, t, u), g(t, r), o || (l = he(
|
|
4384
|
+
t,
|
|
4385
|
+
"click",
|
|
4386
|
+
/*submitOtp*/
|
|
4387
|
+
e[27]
|
|
4388
|
+
), o = !0);
|
|
4389
|
+
},
|
|
4390
|
+
p(s, u) {
|
|
4391
|
+
u[0] & /*$_*/
|
|
4392
|
+
131072 && n !== (n = /*$_*/
|
|
4393
|
+
s[17]("submit") + "") && U(r, n), u[0] & /*otp, config, isSubmitting*/
|
|
4394
|
+
8212 && i !== (i = /*otp*/
|
|
4395
|
+
s[2].join("").length !== /*config*/
|
|
4396
|
+
s[4].inputLength || /*isSubmitting*/
|
|
4397
|
+
s[13]) && (t.disabled = i);
|
|
4398
|
+
},
|
|
4399
|
+
d(s) {
|
|
4400
|
+
s && H(t), o = !1, l();
|
|
4401
|
+
}
|
|
4402
|
+
};
|
|
4403
|
+
}
|
|
4404
|
+
function po(e) {
|
|
4405
|
+
let t, n = (
|
|
4406
|
+
/*$_*/
|
|
4407
|
+
e[17]("resendOtp") + ""
|
|
4408
|
+
), r, i, o;
|
|
4409
|
+
return {
|
|
4410
|
+
c() {
|
|
4411
|
+
t = T("button"), r = I(n), p(t, "class", "OtpButton");
|
|
4412
|
+
},
|
|
4413
|
+
m(l, s) {
|
|
4414
|
+
C(l, t, s), g(t, r), i || (o = he(
|
|
4415
|
+
t,
|
|
4416
|
+
"click",
|
|
4417
|
+
/*handleResendOtp*/
|
|
4418
|
+
e[25]
|
|
4419
|
+
), i = !0);
|
|
4420
|
+
},
|
|
4421
|
+
p(l, s) {
|
|
4422
|
+
s[0] & /*$_*/
|
|
4423
|
+
131072 && n !== (n = /*$_*/
|
|
4424
|
+
l[17]("resendOtp") + "") && U(r, n);
|
|
4425
|
+
},
|
|
4426
|
+
d(l) {
|
|
4427
|
+
l && H(t), i = !1, o();
|
|
4428
|
+
}
|
|
4429
|
+
};
|
|
4430
|
+
}
|
|
4431
|
+
function mo(e) {
|
|
4432
|
+
let t, n, r, i, o, l, s;
|
|
4433
|
+
function u(c, d) {
|
|
4434
|
+
return (
|
|
4435
|
+
/*hasConfigErrors*/
|
|
4436
|
+
c[7] ? no : to
|
|
4437
|
+
);
|
|
4438
|
+
}
|
|
4439
|
+
let a = u(e), h = a(e);
|
|
4440
|
+
return {
|
|
4441
|
+
c() {
|
|
4442
|
+
t = T("div"), n = T("div"), r = ee("svg"), i = ee("path"), o = D(), h.c(), p(i, "d", "M12.7711 0.229435C13.0582 0.517619 13.0755 0.973729 12.8215 1.28141L12.7711 1.33721L7.60685 6.50068L12.7711 11.6641C12.9128 11.8066 12.9944 11.998 12.999 12.1988C13.0035 12.3997 12.9308 12.5946 12.7957 12.7433C12.6606 12.892 12.4735 12.9832 12.2731 12.9979C12.0728 13.0126 11.8744 12.9497 11.7191 12.8223L11.6633 12.7719L6.49958 7.60791L1.3359 12.7719C1.19349 12.9136 1.00207 12.9952 0.801203 12.9998C0.60034 13.0044 0.405398 12.9316 0.256676 12.7965C0.107955 12.6614 0.0168256 12.4744 0.00212786 12.274C-0.0125699 12.0736 0.0502877 11.8753 0.177706 11.7199L0.228086 11.6641L5.3923 6.50068L0.228086 1.33721C0.0863637 1.1948 0.00478102 1.00338 0.000203544 0.802529C-0.00437393 0.601674 0.0684038 0.40674 0.203491 0.258024C0.338579 0.109308 0.525647 0.0181829 0.726024 0.00348576C0.9264 -0.0112114 1.12476 0.0516437 1.28011 0.179057L1.3359 0.229435L6.49958 5.39345L11.6633 0.229435C11.736 0.156695 11.8223 0.0989949 11.9174 0.0596283C12.0124 0.0202617 12.1143 0 12.2172 0C12.32 0 12.4219 0.0202617 12.5169 0.0596283C12.612 0.0989949 12.6983 0.156695 12.7711 0.229435Z"), p(r, "xmlns", "http://www.w3.org/2000/svg"), p(r, "viewBox", "0 0 13 13"), p(r, "fill", "none"), p(r, "class", "CloseButton"), p(n, "class", "ModalCloseIcon"), p(t, "class", "OtpContent");
|
|
4443
|
+
},
|
|
4444
|
+
m(c, d) {
|
|
4445
|
+
C(c, t, d), g(t, n), g(n, r), g(r, i), g(t, o), h.m(t, null), e[42](t), l || (s = he(
|
|
4446
|
+
r,
|
|
4447
|
+
"click",
|
|
4448
|
+
/*manualClosePopup*/
|
|
4449
|
+
e[26]
|
|
4450
|
+
), l = !0);
|
|
4451
|
+
},
|
|
4452
|
+
p(c, d) {
|
|
4453
|
+
a === (a = u(c)) && h ? h.p(c, d) : (h.d(1), h = a(c), h && (h.c(), h.m(t, null)));
|
|
4454
|
+
},
|
|
4455
|
+
i: te,
|
|
4456
|
+
o: te,
|
|
4457
|
+
d(c) {
|
|
4458
|
+
c && H(t), h.d(), e[42](null), l = !1, s();
|
|
4459
|
+
}
|
|
4460
|
+
};
|
|
4461
|
+
}
|
|
4462
|
+
function go(e, t, n) {
|
|
4463
|
+
let r, i, o;
|
|
4464
|
+
Un(e, Yi, (f) => n(17, o = f));
|
|
4465
|
+
let { clientstyling: l = "" } = t, { clientstylingurl: s = "" } = t, { mbsource: u } = t, { lang: a = "en" } = t, { endpoint: h } = t, { session: c } = t, { translationurl: d } = t, { templateid: y } = t, b = [], m = !0, E = null, w = 0, B = "", L = "", k = !1, G = !1, N = "", K = "", fe = "", W = !1, re = !1, Re = !1, M = "", $ = {}, q = null, ne = !1, F = !1, ie = "", Y, oe = [], Q = null, pe = 0;
|
|
4466
|
+
const ge = { SMS: "sms", EMAIL: "email" }, be = {
|
|
4467
|
+
MAX_ATTEMPTS_EXCEEDED: "gm.twofa.token_max_attempts_exceeded",
|
|
4468
|
+
INTERNAL_SERVER_ERROR: "gm.multifactorauthentication.internal_server_error",
|
|
4469
|
+
MAX_INVALIDATE: "gm.multifactorauthentication.challenge_internal_server_error"
|
|
4470
|
+
};
|
|
4471
|
+
Object.keys(Zt).forEach((f) => {
|
|
4472
|
+
Wt(f, Zt[f]);
|
|
4473
|
+
});
|
|
4474
|
+
const _e = () => {
|
|
4475
|
+
Ki(a);
|
|
4476
|
+
}, ye = () => {
|
|
4477
|
+
fetch(d).then((f) => f.json()).then((f) => {
|
|
4478
|
+
Object.keys(f).forEach((v) => {
|
|
4479
|
+
Wt(v, f[v]);
|
|
4480
|
+
});
|
|
4481
|
+
}).catch((f) => {
|
|
4482
|
+
console.log(f);
|
|
4483
|
+
});
|
|
4484
|
+
}, ce = async (f) => {
|
|
4485
|
+
if (f.detail?.["x-step-up-required"]) {
|
|
4486
|
+
if (n(7, G = !1), n(6, k = !1), n(8, N = ""), K = f.detail["x-step-up-token"], fe = f.detail.flow, !K || !fe) {
|
|
4487
|
+
n(3, m = !1), n(7, G = !0), n(8, N = o("configError"));
|
|
4488
|
+
return;
|
|
4489
|
+
}
|
|
4490
|
+
n(12, ne = !1), n(3, m = !1);
|
|
4491
|
+
}
|
|
4492
|
+
}, ke = () => {
|
|
4493
|
+
Q && (clearInterval(Q), Q = null), q && (clearInterval(q), q = null), n(6, k = !1), n(7, G = !1), n(8, N = ""), n(10, re = !1), n(2, b = []), n(4, E = null), n(3, m = !0), n(0, M = ""), n(12, ne = !1), n(36, $ = {});
|
|
4494
|
+
}, De = () => {
|
|
4495
|
+
ke();
|
|
4496
|
+
}, Ue = () => new Promise((f, v) => {
|
|
4497
|
+
const x = new URL(`${h}/api/pam/v1/mfa/challenge/${K}`), X = new Headers();
|
|
4498
|
+
X.append("accept", "application/json"), X.append("Content-Type", "application/json"), X.append("X-SessionId", `${c}`);
|
|
4499
|
+
const st = {
|
|
4500
|
+
method: "PATCH",
|
|
4501
|
+
headers: X,
|
|
4502
|
+
body: JSON.stringify({
|
|
4503
|
+
channel: M,
|
|
4504
|
+
templateId: y
|
|
4505
|
+
})
|
|
4506
|
+
};
|
|
4507
|
+
fetch(x, st).then((Bt) => Bt.json()).then(() => {
|
|
4508
|
+
we(), se(), f();
|
|
4509
|
+
}).catch((Bt) => {
|
|
4510
|
+
v();
|
|
4511
|
+
});
|
|
4512
|
+
}), xe = () => {
|
|
4513
|
+
q && clearInterval(q), q = setInterval(
|
|
4514
|
+
() => {
|
|
4515
|
+
const f = { ...$ };
|
|
4516
|
+
let v = !1;
|
|
4517
|
+
Object.keys(f).forEach((x) => {
|
|
4518
|
+
f[x] > 0 && (f[x]--, v = !0);
|
|
4519
|
+
}), n(36, $ = f), !v && q && (clearInterval(q), q = null);
|
|
4520
|
+
},
|
|
4521
|
+
1e3
|
|
4522
|
+
);
|
|
4523
|
+
}, J = (f) => {
|
|
4524
|
+
n(0, M = f);
|
|
4525
|
+
}, V = async () => {
|
|
4526
|
+
if (!(!M || $[M] && $[M] > 0)) {
|
|
4527
|
+
n(3, m = !0), y && y.startsWith("2fa-") && n(28, y = `2fa-${M}`);
|
|
4528
|
+
try {
|
|
4529
|
+
await Ue(), await At(), n(36, $ = {
|
|
4530
|
+
...$,
|
|
4531
|
+
[M]: 30
|
|
4532
|
+
}), xe(), n(12, ne = !0), we(), se();
|
|
4533
|
+
} catch (f) {
|
|
4534
|
+
console.error("Error submitting channel:", f), n(6, k = !0), n(8, N = o("submissionError"));
|
|
4535
|
+
} finally {
|
|
4536
|
+
n(3, m = !1);
|
|
4537
|
+
}
|
|
4538
|
+
}
|
|
4539
|
+
}, we = () => {
|
|
4540
|
+
const f = new Date(B), v = new Date(L), x = /* @__PURE__ */ new Date(), X = v.getTime() - x.getTime();
|
|
4541
|
+
pe = f.getTime() - X;
|
|
4542
|
+
const Ge = Date.now(), st = Math.max(0, Math.floor((pe - Ge) / 1e3));
|
|
4543
|
+
n(5, w = st);
|
|
4544
|
+
}, se = () => {
|
|
4545
|
+
Q && clearInterval(Q), Q = setInterval(
|
|
4546
|
+
() => {
|
|
4547
|
+
const f = Date.now(), v = Math.max(0, Math.floor((pe - f) / 1e3));
|
|
4548
|
+
n(5, w = v), n(11, Re = v <= 0), v <= 0 && (clearInterval(Q), Q = null, n(9, W = !0), n(6, k = !1), n(10, re = !1));
|
|
4549
|
+
},
|
|
4550
|
+
1e3
|
|
4551
|
+
);
|
|
4552
|
+
}, z = (f) => {
|
|
4553
|
+
const v = Math.floor(f / 60), x = f % 60;
|
|
4554
|
+
return `${v.toString().padStart(2, "0")}:${x.toString().padStart(2, "0")}`;
|
|
4555
|
+
}, Se = (f, v) => {
|
|
4556
|
+
const x = [...b];
|
|
4557
|
+
x[f] = v.toUpperCase(), n(2, b = x), x.join("") !== ie && n(13, F = !1);
|
|
4558
|
+
}, de = (f) => {
|
|
4559
|
+
f.preventDefault();
|
|
4560
|
+
const x = (f.clipboardData?.getData("text")?.trim() || "").slice(0, E.inputLength).split("");
|
|
4561
|
+
n(2, b = [...x, ...Array(E.inputLength - x.length).fill("")]), oe[x.length]?.focus(), x.length === E.inputLength && Ct();
|
|
4562
|
+
}, j = (f, v) => {
|
|
4563
|
+
const x = f.target, X = x.value;
|
|
4564
|
+
/^[a-z0-9]$/i.test(X) && (Se(v, X), oe[v + 1]?.focus()), x.value = "";
|
|
4565
|
+
}, _ = (f, v) => {
|
|
4566
|
+
const x = f.key, X = f.ctrlKey || f.metaKey;
|
|
4567
|
+
if (/^[a-z0-9]$/i.test(x)) {
|
|
4568
|
+
if (X && x.toLowerCase() === "v")
|
|
4569
|
+
return;
|
|
4570
|
+
f.preventDefault(), Se(v, x), oe[v + 1]?.focus();
|
|
4571
|
+
} else
|
|
4572
|
+
x === "Backspace" && (f.preventDefault(), b[v] !== "" && Se(v, ""), oe[v - 1]?.focus());
|
|
4573
|
+
}, A = () => {
|
|
4574
|
+
fe == "stateful" && (Ue(), n(9, W = !1));
|
|
4575
|
+
const f = new CustomEvent("otpResendRequested");
|
|
4576
|
+
window.dispatchEvent(f);
|
|
4577
|
+
}, Cn = (f) => {
|
|
4578
|
+
window.dispatchEvent(new CustomEvent(
|
|
4579
|
+
"otpSubmitted",
|
|
4580
|
+
{
|
|
4581
|
+
detail: {
|
|
4582
|
+
code: f,
|
|
4583
|
+
maxAttempts: E.maxValidationAttempts,
|
|
4584
|
+
validatedAttempts: E.numberOfValidateAttempts
|
|
4585
|
+
}
|
|
4586
|
+
}
|
|
4587
|
+
));
|
|
4588
|
+
}, An = async (f) => {
|
|
4589
|
+
const v = new URL(`/api/nwa/api/v1/mfa/challenge/${K}/validate`, h);
|
|
4590
|
+
v.searchParams.append("input", f);
|
|
4591
|
+
try {
|
|
4592
|
+
const x = await fetch(v.href, { method: "POST" });
|
|
4593
|
+
if (x.status === 200) {
|
|
4594
|
+
Bn();
|
|
4595
|
+
return;
|
|
4596
|
+
}
|
|
4597
|
+
const X = await x.json();
|
|
4598
|
+
throw new Error(X.message);
|
|
4599
|
+
} catch (x) {
|
|
4600
|
+
if (x.message === be.INTERNAL_SERVER_ERROR) {
|
|
4601
|
+
if (E.numberOfValidateAttempts === E.maxValidationAttempts - 1) {
|
|
4602
|
+
window.dispatchEvent(new CustomEvent("otpSetTimeout")), window.postMessage(
|
|
4603
|
+
{
|
|
4604
|
+
type: "WidgetNotification",
|
|
4605
|
+
data: {
|
|
4606
|
+
type: "error",
|
|
4607
|
+
message: o("accountBlocked")
|
|
4608
|
+
}
|
|
4609
|
+
},
|
|
4610
|
+
window.location.href
|
|
4611
|
+
), window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4612
|
+
return;
|
|
4613
|
+
}
|
|
4614
|
+
n(6, k = !0), n(8, N = o("invalidOtp")), At();
|
|
4615
|
+
return;
|
|
4616
|
+
}
|
|
4617
|
+
x.message === be.MAX_INVALIDATE && (n(6, k = !0), n(8, N = o("invalidOtp"))), console.error("OTP submission failed:", x), n(6, k = !0), n(8, N = o("submissionError"));
|
|
4618
|
+
} finally {
|
|
4619
|
+
n(3, m = !1);
|
|
4620
|
+
}
|
|
4621
|
+
}, Bn = () => {
|
|
4622
|
+
window.dispatchEvent(new CustomEvent(
|
|
4623
|
+
"otpSuccess",
|
|
4624
|
+
{
|
|
4625
|
+
detail: {
|
|
4626
|
+
message: "User successfully authenticated"
|
|
4627
|
+
}
|
|
4628
|
+
}
|
|
4629
|
+
));
|
|
4630
|
+
}, Ln = () => {
|
|
4631
|
+
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4632
|
+
}, Ct = async () => {
|
|
4633
|
+
if (b.join("").length !== E.inputLength) {
|
|
4634
|
+
n(6, k = !0), n(8, N = o("invalidOtp"));
|
|
4635
|
+
return;
|
|
4636
|
+
}
|
|
4637
|
+
const f = b.join("");
|
|
4638
|
+
n(13, F = !0), ie = f, n(3, m = !0), n(6, k = !1), n(8, N = ""), fe === "stateless" && Cn(f), fe === "stateful" && await An(f);
|
|
4639
|
+
}, At = async () => {
|
|
4640
|
+
if (h)
|
|
4641
|
+
try {
|
|
4642
|
+
n(3, m = !0);
|
|
4643
|
+
const f = new URL(`/api/nwa/api/v1/mfa/challenge/${K}/config`, h), v = await fetch(f.href), x = await v.json();
|
|
4644
|
+
if (v.ok)
|
|
4645
|
+
n(4, E = x), n(2, b = Array(E.inputLength).fill("")), n(9, W = !1), B = E.expirationTime, L = E.serverTime, E.numberOfValidateAttempts !== 0 && (n(6, k = !0), n(8, N = o("invalidOtp"))), E.numberOfValidateAttempts === E.maxValidationAttempts - 1 && n(10, re = !0), n(3, m = !1), we(), se();
|
|
4646
|
+
else if (x && x.details === be.MAX_ATTEMPTS_EXCEEDED)
|
|
4647
|
+
window.dispatchEvent(new CustomEvent("manualClosePopup"));
|
|
4648
|
+
else {
|
|
4649
|
+
const X = x && x.message || `Failed to load config. Status: ${v.status}`;
|
|
4650
|
+
throw new Error(X);
|
|
4651
|
+
}
|
|
4652
|
+
} catch (f) {
|
|
4653
|
+
n(3, m = !1), n(7, G = !0), n(8, N = o("configError")), window.dispatchEvent(new CustomEvent("2fa-loading", { detail: { isLoading: !1 } })), console.error("Error loading 2FA config:", f);
|
|
4654
|
+
}
|
|
4655
|
+
};
|
|
4656
|
+
Zn(() => (window.addEventListener("stepUpAuthRequired", ce, !1), window.addEventListener("closePopup", De, !1), () => {
|
|
4657
|
+
window.removeEventListener("stepUpAuthRequired", ce), window.removeEventListener("closePopup", De, !1), Q && clearInterval(Q), q && clearInterval(q);
|
|
4658
|
+
}));
|
|
4659
|
+
const Pn = () => J(ge.SMS), Mn = () => J(ge.EMAIL);
|
|
4660
|
+
function In(f, v) {
|
|
4661
|
+
Je[f ? "unshift" : "push"](() => {
|
|
4662
|
+
oe[v] = f, n(14, oe);
|
|
4663
|
+
});
|
|
4664
|
+
}
|
|
4665
|
+
const Nn = (f, v) => j(v, f), Rn = (f, v) => _(v, f);
|
|
4666
|
+
function kn(f) {
|
|
4667
|
+
Je[f ? "unshift" : "push"](() => {
|
|
4668
|
+
Y = f, n(1, Y);
|
|
4669
|
+
});
|
|
4670
|
+
}
|
|
4671
|
+
return e.$$set = (f) => {
|
|
4672
|
+
"clientstyling" in f && n(29, l = f.clientstyling), "clientstylingurl" in f && n(30, s = f.clientstylingurl), "mbsource" in f && n(31, u = f.mbsource), "lang" in f && n(32, a = f.lang), "endpoint" in f && n(33, h = f.endpoint), "session" in f && n(34, c = f.session), "translationurl" in f && n(35, d = f.translationurl), "templateid" in f && n(28, y = f.templateid);
|
|
4673
|
+
}, e.$$.update = () => {
|
|
4674
|
+
e.$$.dirty[0] & /*clientstyling, customStylingContainer*/
|
|
4675
|
+
536870914 && l && Y && lr(Y, l), e.$$.dirty[0] & /*clientstylingurl, customStylingContainer*/
|
|
4676
|
+
1073741826 && s && Y && ur(Y, s), e.$$.dirty[0] & /*customStylingContainer*/
|
|
4677
|
+
2 | e.$$.dirty[1] & /*mbsource*/
|
|
4678
|
+
1 && u && Y && hr(Y, `${u}.Style`), e.$$.dirty[1] & /*lang*/
|
|
4679
|
+
2 && a && _e(), e.$$.dirty[1] & /*lang, translationurl*/
|
|
4680
|
+
18 && a && d && ye(), e.$$.dirty[0] & /*selectedChannel*/
|
|
4681
|
+
1 | e.$$.dirty[1] & /*channelSubmitTimers*/
|
|
4682
|
+
32 && n(16, r = M && (!$[M] || $[M] === 0)), e.$$.dirty[0] & /*selectedChannel*/
|
|
4683
|
+
1 | e.$$.dirty[1] & /*channelSubmitTimers*/
|
|
4684
|
+
32 && n(15, i = M && $[M] || 0);
|
|
4685
|
+
}, [
|
|
4686
|
+
M,
|
|
4687
|
+
Y,
|
|
4688
|
+
b,
|
|
4689
|
+
m,
|
|
4690
|
+
E,
|
|
4691
|
+
w,
|
|
4692
|
+
k,
|
|
4693
|
+
G,
|
|
4694
|
+
N,
|
|
4695
|
+
W,
|
|
4696
|
+
re,
|
|
4697
|
+
Re,
|
|
4698
|
+
ne,
|
|
4699
|
+
F,
|
|
4700
|
+
oe,
|
|
4701
|
+
i,
|
|
4702
|
+
r,
|
|
4703
|
+
o,
|
|
4704
|
+
ge,
|
|
4705
|
+
J,
|
|
4706
|
+
V,
|
|
4707
|
+
z,
|
|
4708
|
+
de,
|
|
4709
|
+
j,
|
|
4710
|
+
_,
|
|
4711
|
+
A,
|
|
4712
|
+
Ln,
|
|
4713
|
+
Ct,
|
|
4714
|
+
y,
|
|
4715
|
+
l,
|
|
4716
|
+
s,
|
|
4717
|
+
u,
|
|
4718
|
+
a,
|
|
4719
|
+
h,
|
|
4720
|
+
c,
|
|
4721
|
+
d,
|
|
4722
|
+
$,
|
|
4723
|
+
Pn,
|
|
4724
|
+
Mn,
|
|
4725
|
+
In,
|
|
4726
|
+
Nn,
|
|
4727
|
+
Rn,
|
|
4728
|
+
kn
|
|
4729
|
+
];
|
|
4730
|
+
}
|
|
4731
|
+
class bo extends sr {
|
|
4732
|
+
constructor(t) {
|
|
4733
|
+
super(), ir(
|
|
4734
|
+
this,
|
|
4735
|
+
t,
|
|
4736
|
+
go,
|
|
4737
|
+
mo,
|
|
4738
|
+
en,
|
|
4739
|
+
{
|
|
4740
|
+
clientstyling: 29,
|
|
4741
|
+
clientstylingurl: 30,
|
|
4742
|
+
mbsource: 31,
|
|
4743
|
+
lang: 32,
|
|
4744
|
+
endpoint: 33,
|
|
4745
|
+
session: 34,
|
|
4746
|
+
translationurl: 35,
|
|
4747
|
+
templateid: 28
|
|
4748
|
+
},
|
|
4749
|
+
eo,
|
|
4750
|
+
[-1, -1, -1]
|
|
4751
|
+
);
|
|
4752
|
+
}
|
|
4753
|
+
get clientstyling() {
|
|
4754
|
+
return this.$$.ctx[29];
|
|
4755
|
+
}
|
|
4756
|
+
set clientstyling(t) {
|
|
4757
|
+
this.$$set({ clientstyling: t }), le();
|
|
4758
|
+
}
|
|
4759
|
+
get clientstylingurl() {
|
|
4760
|
+
return this.$$.ctx[30];
|
|
4761
|
+
}
|
|
4762
|
+
set clientstylingurl(t) {
|
|
4763
|
+
this.$$set({ clientstylingurl: t }), le();
|
|
4764
|
+
}
|
|
4765
|
+
get mbsource() {
|
|
4766
|
+
return this.$$.ctx[31];
|
|
4767
|
+
}
|
|
4768
|
+
set mbsource(t) {
|
|
4769
|
+
this.$$set({ mbsource: t }), le();
|
|
4770
|
+
}
|
|
4771
|
+
get lang() {
|
|
4772
|
+
return this.$$.ctx[32];
|
|
4773
|
+
}
|
|
4774
|
+
set lang(t) {
|
|
4775
|
+
this.$$set({ lang: t }), le();
|
|
4776
|
+
}
|
|
4777
|
+
get endpoint() {
|
|
4778
|
+
return this.$$.ctx[33];
|
|
4779
|
+
}
|
|
4780
|
+
set endpoint(t) {
|
|
4781
|
+
this.$$set({ endpoint: t }), le();
|
|
4782
|
+
}
|
|
4783
|
+
get session() {
|
|
4784
|
+
return this.$$.ctx[34];
|
|
4785
|
+
}
|
|
4786
|
+
set session(t) {
|
|
4787
|
+
this.$$set({ session: t }), le();
|
|
4788
|
+
}
|
|
4789
|
+
get translationurl() {
|
|
4790
|
+
return this.$$.ctx[35];
|
|
4791
|
+
}
|
|
4792
|
+
set translationurl(t) {
|
|
4793
|
+
this.$$set({ translationurl: t }), le();
|
|
4794
|
+
}
|
|
4795
|
+
get templateid() {
|
|
4796
|
+
return this.$$.ctx[28];
|
|
4797
|
+
}
|
|
4798
|
+
set templateid(t) {
|
|
4799
|
+
this.$$set({ templateid: t }), le();
|
|
4800
|
+
}
|
|
4801
|
+
}
|
|
4802
|
+
or(bo, { clientstyling: {}, clientstylingurl: {}, mbsource: {}, lang: {}, endpoint: {}, session: {}, translationurl: {}, templateid: {} }, [], [], !0);
|
|
4803
|
+
export {
|
|
4804
|
+
bo as C
|
|
4805
|
+
};
|