@everymatrix/cashier-methods-list 1.44.0 → 1.45.0

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