@everymatrix/player-account-gaming-limits-popup 1.54.4 → 1.54.8

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