@everymatrix/casino-my-games 1.54.6 → 1.54.9

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