@everymatrix/cashier-carousel 1.77.12

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