@everymatrix/player-account-vault 0.1.0

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