@everymatrix/casino-lobby-mini-games 0.1.0

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