@everymatrix/cashier-method-details 1.87.25 → 1.87.27

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