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