@everymatrix/player-account-timeout 1.43.4 → 1.45.0

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