@everymatrix/player-account-closure-nd 1.54.6 → 1.54.8

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