@everymatrix/player-account-betting-history 1.87.25 → 1.87.27

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