@everymatrix/prize-engine-list 0.0.1

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