@everymatrix/cashier-method-details 1.76.1 → 1.76.4

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