@everymatrix/general-logout 1.54.4 → 1.54.8

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