@everymatrix/player-deposit 1.44.0 → 1.45.2

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