@everymatrix/casino-page-nd 1.43.4 → 1.45.0

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