@everymatrix/casino-collections-providers 1.44.0 → 1.45.0

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