@everymatrix/player-reality-check 1.43.4 → 1.45.0

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