@everymatrix/player-account-gaming-limits-group-edit 1.53.0 → 1.53.10

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