@everymatrix/casino-header-bets-button 0.0.1

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