@everymatrix/cashier-receipt-page 1.87.26 → 1.87.28

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