@everymatrix/casino-calendar 1.0.69 → 1.0.71

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