@everymatrix/cashier-error 1.76.1 → 1.76.4

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