@everymatrix/player-reality-check 1.0.69 → 1.0.71

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