@everymatrix/casino-navigation-search 1.87.25 → 1.87.27

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