@everymatrix/casino-page 1.54.0 → 1.54.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/components/{CasinoCalendar-B2vomzsf.js → CasinoCalendar-pVz7jYqi.js} +1166 -1205
  2. package/components/{CasinoCalendarDailyDetails-BCGdQSNl.js → CasinoCalendarDailyDetails-D7GkfhmR.js} +1 -1
  3. package/components/{CasinoCalendarDailyItem-BzgTjc6A.js → CasinoCalendarDailyItem-CU9qMJji.js} +1 -1
  4. package/components/{CasinoCollectionsProviders-D6rovYy_.js → CasinoCollectionsProviders-DxgdPTXN.js} +237 -242
  5. package/components/{CasinoFavoritesSection-vvxBKtES.js → CasinoFavoritesSection-DKPq92qm.js} +3 -3
  6. package/components/{CasinoFilter-BHlBiPqY.js → CasinoFilter-C67EHGOs.js} +53 -54
  7. package/components/{CasinoGameThumbnail-De9Iy0ev.js → CasinoGameThumbnail-BadaE32b.js} +660 -676
  8. package/components/{CasinoGamesCategorySection-CSJqY_aE.js → CasinoGamesCategorySection-LTyde91U.js} +1104 -1135
  9. package/components/{CasinoJackpotBanner-B2cH0DUh.js → CasinoJackpotBanner-BRQqqpK8.js} +153 -157
  10. package/components/{CasinoLastPlayedSection-B_1ZECFi.js → CasinoLastPlayedSection-CY_p8bi-.js} +2 -2
  11. package/components/{CasinoMostPlayedSection-COzbxEuY.js → CasinoMostPlayedSection-0uL9iOTL.js} +2 -2
  12. package/components/{CasinoMyGames-BH-AgVbb.js → CasinoMyGames-Bpa2MJfT.js} +71 -72
  13. package/components/{CasinoPage-iLgeN1cm.js → CasinoPage-B0pYNxjK.js} +804 -794
  14. package/components/{CasinoRandomGame-6VOnC82y.js → CasinoRandomGame-BpYrX4Cp.js} +231 -247
  15. package/components/{CasinoSearch-CNOOXe6Z.js → CasinoSearch-DZ-_HnP3.js} +192 -194
  16. package/components/{CasinoSort-Du-XHuIh.js → CasinoSort-bFOcp6J4.js} +2 -3
  17. package/components/{CasinoWinners-D8QknKKW.js → CasinoWinners-BUoqMo1a.js} +146 -148
  18. package/components/{GeneralAnimationLoading-B16w9fAI.js → GeneralAnimationLoading-CC5IRZHm.js} +1 -1
  19. package/esnext/casino-page.js +14 -0
  20. package/package.json +10 -16
  21. package/stencil/{casino-play-random-game-CdK9RTmU.js → casino-play-random-game-BrayzMrR.js} +44 -62
  22. package/stencil/{index-47910d1c-BJIxkb-p.js → index-47910d1c-CWwDm8i3.js} +222 -238
  23. package/components/CasinoCalendar-CDVrxyQe.cjs +0 -6
  24. package/components/CasinoCalendarDailyDetails-7zAb7BF9.cjs +0 -1
  25. package/components/CasinoCalendarDailyItem-4YHj0r9V.cjs +0 -1
  26. package/components/CasinoCollectionsProviders-D4MAEEgW.cjs +0 -1
  27. package/components/CasinoFavoritesSection-CEqbhv1r.cjs +0 -1
  28. package/components/CasinoFilter-BPHXroGh.cjs +0 -1
  29. package/components/CasinoGameThumbnail-BSwvq-sL.cjs +0 -47
  30. package/components/CasinoGamesCategorySection-CqokvkcM.cjs +0 -1
  31. package/components/CasinoJackpotBanner-3tJsMybK.cjs +0 -1
  32. package/components/CasinoLastPlayedSection-Ywa0PRfQ.cjs +0 -1
  33. package/components/CasinoMostPlayedSection-CCX0gF5S.cjs +0 -1
  34. package/components/CasinoMyGames-Bt7ai3hS.cjs +0 -1
  35. package/components/CasinoPage-DDg0GyOY.cjs +0 -1
  36. package/components/CasinoRandomGame-JdeKkDQP.cjs +0 -2
  37. package/components/CasinoSearch-g5QTDrZc.cjs +0 -1
  38. package/components/CasinoSort-DBYruc_n.cjs +0 -1
  39. package/components/CasinoWinners-BUUOGc9x.cjs +0 -1
  40. package/components/GeneralAnimationLoading-BnTkXHOJ.cjs +0 -1
  41. package/es2015/casino-page.cjs +0 -1
  42. package/es2015/casino-page.js +0 -16
  43. package/stencil/app-globals-0f993ce5-sCt45RkC.cjs +0 -1
  44. package/stencil/casino-play-random-game-D5-NhS5J.cjs +0 -371
  45. package/stencil/index-47910d1c-CDXxJ6XN.cjs +0 -1
@@ -1,106 +1,77 @@
1
- var wr = Object.defineProperty, Tr = Object.defineProperties;
2
- var Hr = Object.getOwnPropertyDescriptors;
3
- var st = Object.getOwnPropertySymbols;
4
- var Br = Object.prototype.hasOwnProperty, Pr = Object.prototype.propertyIsEnumerable;
5
- var Ie = (e, t, r) => t in e ? wr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ot = (e, t) => {
6
- for (var r in t || (t = {}))
7
- Br.call(t, r) && Ie(e, r, t[r]);
8
- if (st)
9
- for (var r of st(t))
10
- Pr.call(t, r) && Ie(e, r, t[r]);
11
- return e;
12
- }, at = (e, t) => Tr(e, Hr(t));
13
- var T = (e, t, r) => Ie(e, typeof t != "symbol" ? t + "" : t, r);
14
- var ut = (e, t, r) => new Promise((n, i) => {
15
- var s = (l) => {
16
- try {
17
- a(r.next(l));
18
- } catch (u) {
19
- i(u);
20
- }
21
- }, o = (l) => {
22
- try {
23
- a(r.throw(l));
24
- } catch (u) {
25
- i(u);
26
- }
27
- }, a = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, o);
28
- a((r = r.apply(e, t)).next());
29
- });
30
- function A() {
1
+ function P() {
31
2
  }
32
- function Ar(e, t) {
3
+ function gr(e, t) {
33
4
  for (const r in t) e[r] = t[r];
34
5
  return (
35
6
  /** @type {T & S} */
36
7
  e
37
8
  );
38
9
  }
39
- function Dt(e) {
10
+ function Ct(e) {
40
11
  return e();
41
12
  }
42
- function lt() {
13
+ function nt() {
43
14
  return /* @__PURE__ */ Object.create(null);
44
15
  }
45
- function W(e) {
46
- e.forEach(Dt);
16
+ function X(e) {
17
+ e.forEach(Ct);
47
18
  }
48
- function Te(e) {
19
+ function we(e) {
49
20
  return typeof e == "function";
50
21
  }
51
- function Ut(e, t) {
22
+ function Lt(e, t) {
52
23
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
53
24
  }
54
- let pe;
55
- function fs(e, t) {
56
- return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
25
+ let de;
26
+ function Ki(e, t) {
27
+ return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
57
28
  }
58
- function Or(e) {
29
+ function _r(e) {
59
30
  return Object.keys(e).length === 0;
60
31
  }
61
- function Gt(e, ...t) {
32
+ function Nt(e, ...t) {
62
33
  if (e == null) {
63
34
  for (const n of t)
64
35
  n(void 0);
65
- return A;
36
+ return P;
66
37
  }
67
38
  const r = e.subscribe(...t);
68
39
  return r.unsubscribe ? () => r.unsubscribe() : r;
69
40
  }
70
- function Ir(e, t, r) {
71
- e.$$.on_destroy.push(Gt(t, r));
41
+ function vr(e, t, r) {
42
+ e.$$.on_destroy.push(Nt(t, r));
72
43
  }
73
- function cs(e, t, r, n) {
44
+ function es(e, t, r, n) {
74
45
  if (e) {
75
- const i = Ft(e, t, r, n);
46
+ const i = Mt(e, t, r, n);
76
47
  return e[0](i);
77
48
  }
78
49
  }
79
- function Ft(e, t, r, n) {
80
- return e[1] && n ? Ar(r.ctx.slice(), e[1](n(t))) : r.ctx;
50
+ function Mt(e, t, r, n) {
51
+ return e[1] && n ? gr(r.ctx.slice(), e[1](n(t))) : r.ctx;
81
52
  }
82
- function ds(e, t, r, n) {
53
+ function ts(e, t, r, n) {
83
54
  if (e[2] && n) {
84
55
  const i = e[2](n(r));
85
56
  if (t.dirty === void 0)
86
57
  return i;
87
58
  if (typeof i == "object") {
88
- const s = [], o = Math.max(t.dirty.length, i.length);
89
- for (let a = 0; a < o; a += 1)
90
- s[a] = t.dirty[a] | i[a];
59
+ const s = [], a = Math.max(t.dirty.length, i.length);
60
+ for (let o = 0; o < a; o += 1)
61
+ s[o] = t.dirty[o] | i[o];
91
62
  return s;
92
63
  }
93
64
  return t.dirty | i;
94
65
  }
95
66
  return t.dirty;
96
67
  }
97
- function ps(e, t, r, n, i, s) {
68
+ function rs(e, t, r, n, i, s) {
98
69
  if (i) {
99
- const o = Ft(t, r, n, s);
100
- e.p(o, i);
70
+ const a = Mt(t, r, n, s);
71
+ e.p(a, i);
101
72
  }
102
73
  }
103
- function ms(e) {
74
+ function ns(e) {
104
75
  if (e.ctx.length > 32) {
105
76
  const t = [], r = e.ctx.length / 32;
106
77
  for (let n = 0; n < r; n++)
@@ -109,20 +80,20 @@ function ms(e) {
109
80
  }
110
81
  return -1;
111
82
  }
112
- function bs(e) {
113
- return e && Te(e.destroy) ? e.destroy : A;
83
+ function is(e) {
84
+ return e && we(e.destroy) ? e.destroy : P;
114
85
  }
115
- function ce(e, t) {
86
+ function fe(e, t) {
116
87
  e.appendChild(t);
117
88
  }
118
- function Cr(e, t, r) {
119
- const n = Lr(e);
89
+ function Er(e, t, r) {
90
+ const n = xr(e);
120
91
  if (!n.getElementById(t)) {
121
- const i = M("style");
122
- i.id = t, i.textContent = r, Nr(n, i);
92
+ const i = N("style");
93
+ i.id = t, i.textContent = r, Sr(n, i);
123
94
  }
124
95
  }
125
- function Lr(e) {
96
+ function xr(e) {
126
97
  if (!e) return document;
127
98
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
128
99
  return t && /** @type {ShadowRoot} */
@@ -131,118 +102,118 @@ function Lr(e) {
131
102
  t
132
103
  ) : e.ownerDocument;
133
104
  }
134
- function Nr(e, t) {
135
- return ce(
105
+ function Sr(e, t) {
106
+ return fe(
136
107
  /** @type {Document} */
137
108
  e.head || e,
138
109
  t
139
110
  ), t.sheet;
140
111
  }
141
- function k(e, t, r) {
112
+ function j(e, t, r) {
142
113
  e.insertBefore(t, r || null);
143
114
  }
144
- function D(e) {
115
+ function $(e) {
145
116
  e.parentNode && e.parentNode.removeChild(e);
146
117
  }
147
- function Mr(e, t) {
118
+ function wr(e, t) {
148
119
  for (let r = 0; r < e.length; r += 1)
149
120
  e[r] && e[r].d(t);
150
121
  }
151
- function M(e) {
122
+ function N(e) {
152
123
  return document.createElement(e);
153
124
  }
154
- function Rr(e) {
125
+ function Tr(e) {
155
126
  return document.createElementNS("http://www.w3.org/2000/svg", e);
156
127
  }
157
- function tt(e) {
128
+ function Ke(e) {
158
129
  return document.createTextNode(e);
159
130
  }
160
- function $r() {
161
- return tt(" ");
131
+ function Hr() {
132
+ return Ke(" ");
162
133
  }
163
- function ys() {
164
- return tt("");
134
+ function ss() {
135
+ return Ke("");
165
136
  }
166
- function ht(e, t, r, n) {
137
+ function it(e, t, r, n) {
167
138
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
168
139
  }
169
- function gs(e) {
140
+ function os(e) {
170
141
  return function(t) {
171
142
  return t.stopPropagation(), e.call(this, t);
172
143
  };
173
144
  }
174
- function X(e, t, r) {
145
+ function V(e, t, r) {
175
146
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
176
147
  }
177
148
  function m(e, t, r) {
178
149
  const n = t.toLowerCase();
179
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : X(e, t, r);
150
+ n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : V(e, t, r);
180
151
  }
181
- function Dr(e) {
152
+ function Br(e) {
182
153
  return Array.from(e.childNodes);
183
154
  }
184
- function Ur(e, t) {
155
+ function Pr(e, t) {
185
156
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
186
157
  t);
187
158
  }
188
- function _s(e, t) {
189
- e.value = t == null ? "" : t;
159
+ function as(e, t) {
160
+ e.value = t ?? "";
190
161
  }
191
- function vs(e, t, r, n) {
162
+ function us(e, t, r, n) {
192
163
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
193
164
  }
194
- let me;
195
- function Gr() {
196
- if (me === void 0) {
197
- me = !1;
165
+ let pe;
166
+ function Ar() {
167
+ if (pe === void 0) {
168
+ pe = !1;
198
169
  try {
199
- typeof window != "undefined" && window.parent && window.parent.document;
200
- } catch (e) {
201
- me = !0;
170
+ typeof window < "u" && window.parent && window.parent.document;
171
+ } catch {
172
+ pe = !0;
202
173
  }
203
174
  }
204
- return me;
175
+ return pe;
205
176
  }
206
- function Es(e, t) {
177
+ function ls(e, t) {
207
178
  getComputedStyle(e).position === "static" && (e.style.position = "relative");
208
- const n = M("iframe");
179
+ const n = N("iframe");
209
180
  n.setAttribute(
210
181
  "style",
211
182
  "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
212
183
  ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
213
- const i = Gr();
184
+ const i = Ar();
214
185
  let s;
215
- return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = ht(
186
+ return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = it(
216
187
  window,
217
188
  "message",
218
189
  /** @param {MessageEvent} event */
219
- (o) => {
220
- o.source === n.contentWindow && t();
190
+ (a) => {
191
+ a.source === n.contentWindow && t();
221
192
  }
222
193
  )) : (n.src = "about:blank", n.onload = () => {
223
- s = ht(n.contentWindow, "resize", t), t();
224
- }), ce(e, n), () => {
225
- (i || s && n.contentWindow) && s(), D(n);
194
+ s = it(n.contentWindow, "resize", t), t();
195
+ }), fe(e, n), () => {
196
+ (i || s && n.contentWindow) && s(), $(n);
226
197
  };
227
198
  }
228
- function xs(e, t, r) {
199
+ function hs(e, t, r) {
229
200
  e.classList.toggle(t, !!r);
230
201
  }
231
- class Ss {
202
+ class fs {
203
+ /**
204
+ * @private
205
+ * @default false
206
+ */
207
+ is_svg = !1;
208
+ /** parent for creating node */
209
+ e = void 0;
210
+ /** html tag nodes */
211
+ n = void 0;
212
+ /** target */
213
+ t = void 0;
214
+ /** anchor */
215
+ a = void 0;
232
216
  constructor(t = !1) {
233
- /**
234
- * @private
235
- * @default false
236
- */
237
- T(this, "is_svg", !1);
238
- /** parent for creating node */
239
- T(this, "e");
240
- /** html tag nodes */
241
- T(this, "n");
242
- /** target */
243
- T(this, "t");
244
- /** anchor */
245
- T(this, "a");
246
217
  this.is_svg = t, this.e = this.n = null;
247
218
  }
248
219
  /**
@@ -259,10 +230,10 @@ class Ss {
259
230
  * @returns {void}
260
231
  */
261
232
  m(t, r, n = null) {
262
- this.e || (this.is_svg ? this.e = Rr(
233
+ this.e || (this.is_svg ? this.e = Tr(
263
234
  /** @type {keyof SVGElementTagNameMap} */
264
235
  r.nodeName
265
- ) : this.e = M(
236
+ ) : this.e = N(
266
237
  /** @type {keyof HTMLElementTagNameMap} */
267
238
  r.nodeType === 11 ? "TEMPLATE" : r.nodeName
268
239
  ), this.t = r.tagName !== "TEMPLATE" ? r : (
@@ -283,7 +254,7 @@ class Ss {
283
254
  * @returns {void} */
284
255
  i(t) {
285
256
  for (let r = 0; r < this.n.length; r += 1)
286
- k(this.t, this.n[r], t);
257
+ j(this.t, this.n[r], t);
287
258
  }
288
259
  /**
289
260
  * @param {string} html
@@ -295,10 +266,10 @@ class Ss {
295
266
  /**
296
267
  * @returns {void} */
297
268
  d() {
298
- this.n.forEach(D);
269
+ this.n.forEach($);
299
270
  }
300
271
  }
301
- function Fr(e) {
272
+ function Or(e) {
302
273
  const t = {};
303
274
  return e.childNodes.forEach(
304
275
  /** @param {Element} node */
@@ -307,147 +278,147 @@ function Fr(e) {
307
278
  }
308
279
  ), t;
309
280
  }
310
- let le;
311
- function ue(e) {
312
- le = e;
281
+ let ue;
282
+ function ae(e) {
283
+ ue = e;
313
284
  }
314
- function jr() {
315
- if (!le) throw new Error("Function called outside component initialization");
316
- return le;
285
+ function Ir() {
286
+ if (!ue) throw new Error("Function called outside component initialization");
287
+ return ue;
317
288
  }
318
- function kr(e) {
319
- jr().$$.on_mount.push(e);
289
+ function Cr(e) {
290
+ Ir().$$.on_mount.push(e);
320
291
  }
321
- const J = [], Ue = [];
322
- let Y = [];
323
- const ft = [], jt = /* @__PURE__ */ Promise.resolve();
324
- let Ge = !1;
325
- function kt() {
326
- Ge || (Ge = !0, jt.then(U));
292
+ const Q = [], $e = [];
293
+ let J = [];
294
+ const st = [], Rt = /* @__PURE__ */ Promise.resolve();
295
+ let De = !1;
296
+ function $t() {
297
+ De || (De = !0, Rt.then(D));
327
298
  }
328
- function ws() {
329
- return kt(), jt;
299
+ function cs() {
300
+ return $t(), Rt;
330
301
  }
331
- function Fe(e) {
332
- Y.push(e);
302
+ function Ue(e) {
303
+ J.push(e);
333
304
  }
334
- const Ce = /* @__PURE__ */ new Set();
335
- let Z = 0;
336
- function U() {
337
- if (Z !== 0)
305
+ const Oe = /* @__PURE__ */ new Set();
306
+ let q = 0;
307
+ function D() {
308
+ if (q !== 0)
338
309
  return;
339
- const e = le;
310
+ const e = ue;
340
311
  do {
341
312
  try {
342
- for (; Z < J.length; ) {
343
- const t = J[Z];
344
- Z++, ue(t), Vr(t.$$);
313
+ for (; q < Q.length; ) {
314
+ const t = Q[q];
315
+ q++, ae(t), Lr(t.$$);
345
316
  }
346
317
  } catch (t) {
347
- throw J.length = 0, Z = 0, t;
318
+ throw Q.length = 0, q = 0, t;
348
319
  }
349
- for (ue(null), J.length = 0, Z = 0; Ue.length; ) Ue.pop()();
350
- for (let t = 0; t < Y.length; t += 1) {
351
- const r = Y[t];
352
- Ce.has(r) || (Ce.add(r), r());
320
+ for (ae(null), Q.length = 0, q = 0; $e.length; ) $e.pop()();
321
+ for (let t = 0; t < J.length; t += 1) {
322
+ const r = J[t];
323
+ Oe.has(r) || (Oe.add(r), r());
353
324
  }
354
- Y.length = 0;
355
- } while (J.length);
356
- for (; ft.length; )
357
- ft.pop()();
358
- Ge = !1, Ce.clear(), ue(e);
325
+ J.length = 0;
326
+ } while (Q.length);
327
+ for (; st.length; )
328
+ st.pop()();
329
+ De = !1, Oe.clear(), ae(e);
359
330
  }
360
- function Vr(e) {
331
+ function Lr(e) {
361
332
  if (e.fragment !== null) {
362
- e.update(), W(e.before_update);
333
+ e.update(), X(e.before_update);
363
334
  const t = e.dirty;
364
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Fe);
335
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
365
336
  }
366
337
  }
367
- function Xr(e) {
338
+ function Nr(e) {
368
339
  const t = [], r = [];
369
- Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
340
+ J.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), J = t;
370
341
  }
371
- const ge = /* @__PURE__ */ new Set();
372
- let V;
373
- function Ts() {
374
- V = {
342
+ const ye = /* @__PURE__ */ new Set();
343
+ let k;
344
+ function ds() {
345
+ k = {
375
346
  r: 0,
376
347
  c: [],
377
- p: V
348
+ p: k
378
349
  // parent group
379
350
  };
380
351
  }
381
- function Hs() {
382
- V.r || W(V.c), V = V.p;
352
+ function ps() {
353
+ k.r || X(k.c), k = k.p;
383
354
  }
384
- function Vt(e, t) {
385
- e && e.i && (ge.delete(e), e.i(t));
355
+ function Dt(e, t) {
356
+ e && e.i && (ye.delete(e), e.i(t));
386
357
  }
387
- function Bs(e, t, r, n) {
358
+ function ms(e, t, r, n) {
388
359
  if (e && e.o) {
389
- if (ge.has(e)) return;
390
- ge.add(e), V.c.push(() => {
391
- ge.delete(e), n && (r && e.d(1), n());
360
+ if (ye.has(e)) return;
361
+ ye.add(e), k.c.push(() => {
362
+ ye.delete(e), n && (r && e.d(1), n());
392
363
  }), e.o(t);
393
364
  } else n && n();
394
365
  }
395
- function ct(e) {
396
- return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
366
+ function ot(e) {
367
+ return e?.length !== void 0 ? e : Array.from(e);
397
368
  }
398
- function Ps(e, t) {
369
+ function bs(e, t) {
399
370
  e.d(1), t.delete(e.key);
400
371
  }
401
- function As(e, t, r, n, i, s, o, a, l, u, h, c) {
372
+ function ys(e, t, r, n, i, s, a, o, l, u, h, c) {
402
373
  let f = e.length, p = s.length, b = f;
403
374
  const _ = {};
404
375
  for (; b--; ) _[e[b].key] = b;
405
- const S = [], O = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ new Map(), H = [];
376
+ const S = [], A = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), w = [];
406
377
  for (b = p; b--; ) {
407
- const E = c(i, s, b), C = r(E);
408
- let L = o.get(C);
409
- L ? H.push(() => L.p(E, t)) : (L = u(C, E), L.c()), O.set(C, S[b] = L), C in _ && P.set(C, Math.abs(b - _[C]));
378
+ const E = c(i, s, b), I = r(E);
379
+ let C = a.get(I);
380
+ C ? w.push(() => C.p(E, t)) : (C = u(I, E), C.c()), A.set(I, S[b] = C), I in _ && H.set(I, Math.abs(b - _[I]));
410
381
  }
411
- const R = /* @__PURE__ */ new Set(), I = /* @__PURE__ */ new Set();
412
- function $(E) {
413
- Vt(E, 1), E.m(a, h), o.set(E.key, E), h = E.first, p--;
382
+ const M = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Set();
383
+ function R(E) {
384
+ Dt(E, 1), E.m(o, h), a.set(E.key, E), h = E.first, p--;
414
385
  }
415
386
  for (; f && p; ) {
416
- const E = S[p - 1], C = e[f - 1], L = E.key, q = C.key;
417
- E === C ? (h = E.first, f--, p--) : O.has(q) ? !o.has(L) || R.has(L) ? $(E) : I.has(q) ? f-- : P.get(L) > P.get(q) ? (I.add(L), $(E)) : (R.add(q), f--) : (l(C, o), f--);
387
+ const E = S[p - 1], I = e[f - 1], C = E.key, z = I.key;
388
+ E === I ? (h = E.first, f--, p--) : A.has(z) ? !a.has(C) || M.has(C) ? R(E) : O.has(z) ? f-- : H.get(C) > H.get(z) ? (O.add(C), R(E)) : (M.add(z), f--) : (l(I, a), f--);
418
389
  }
419
390
  for (; f--; ) {
420
391
  const E = e[f];
421
- O.has(E.key) || l(E, o);
392
+ A.has(E.key) || l(E, a);
422
393
  }
423
- for (; p; ) $(S[p - 1]);
424
- return W(H), S;
394
+ for (; p; ) R(S[p - 1]);
395
+ return X(w), S;
425
396
  }
426
- function Wr(e, t, r) {
397
+ function Mr(e, t, r) {
427
398
  const { fragment: n, after_update: i } = e.$$;
428
- n && n.m(t, r), Fe(() => {
429
- const s = e.$$.on_mount.map(Dt).filter(Te);
430
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : W(s), e.$$.on_mount = [];
431
- }), i.forEach(Fe);
399
+ n && n.m(t, r), Ue(() => {
400
+ const s = e.$$.on_mount.map(Ct).filter(we);
401
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : X(s), e.$$.on_mount = [];
402
+ }), i.forEach(Ue);
432
403
  }
433
- function zr(e, t) {
404
+ function Rr(e, t) {
434
405
  const r = e.$$;
435
- r.fragment !== null && (Xr(r.after_update), W(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
406
+ r.fragment !== null && (Nr(r.after_update), X(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
436
407
  }
437
- function qr(e, t) {
438
- e.$$.dirty[0] === -1 && (J.push(e), kt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
408
+ function $r(e, t) {
409
+ e.$$.dirty[0] === -1 && (Q.push(e), $t(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
439
410
  }
440
- function Zr(e, t, r, n, i, s, o = null, a = [-1]) {
441
- const l = le;
442
- ue(e);
411
+ function Dr(e, t, r, n, i, s, a = null, o = [-1]) {
412
+ const l = ue;
413
+ ae(e);
443
414
  const u = e.$$ = {
444
415
  fragment: null,
445
416
  ctx: [],
446
417
  // state
447
418
  props: s,
448
- update: A,
419
+ update: P,
449
420
  not_equal: i,
450
- bound: lt(),
421
+ bound: nt(),
451
422
  // lifecycle
452
423
  on_mount: [],
453
424
  on_destroy: [],
@@ -456,150 +427,146 @@ function Zr(e, t, r, n, i, s, o = null, a = [-1]) {
456
427
  after_update: [],
457
428
  context: new Map(t.context || (l ? l.$$.context : [])),
458
429
  // everything else
459
- callbacks: lt(),
460
- dirty: a,
430
+ callbacks: nt(),
431
+ dirty: o,
461
432
  skip_bound: !1,
462
433
  root: t.target || l.$$.root
463
434
  };
464
- o && o(u.root);
435
+ a && a(u.root);
465
436
  let h = !1;
466
437
  if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
467
438
  const b = p.length ? p[0] : f;
468
- return u.ctx && i(u.ctx[c], u.ctx[c] = b) && (!u.skip_bound && u.bound[c] && u.bound[c](b), h && qr(e, c)), f;
469
- }) : [], u.update(), h = !0, W(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
439
+ return u.ctx && i(u.ctx[c], u.ctx[c] = b) && (!u.skip_bound && u.bound[c] && u.bound[c](b), h && $r(e, c)), f;
440
+ }) : [], u.update(), h = !0, X(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
470
441
  if (t.hydrate) {
471
- const c = Dr(t.target);
472
- u.fragment && u.fragment.l(c), c.forEach(D);
442
+ const c = Br(t.target);
443
+ u.fragment && u.fragment.l(c), c.forEach($);
473
444
  } else
474
445
  u.fragment && u.fragment.c();
475
- t.intro && Vt(e.$$.fragment), Wr(e, t.target, t.anchor), U();
446
+ t.intro && Dt(e.$$.fragment), Mr(e, t.target, t.anchor), D();
476
447
  }
477
- ue(l);
478
- }
479
- let Xt;
480
- typeof HTMLElement == "function" && (Xt = class extends HTMLElement {
481
- constructor(t, r, n) {
482
- super();
483
- /** The Svelte component constructor */
484
- T(this, "$$ctor");
485
- /** Slots */
486
- T(this, "$$s");
487
- /** The Svelte component instance */
488
- T(this, "$$c");
489
- /** Whether or not the custom element is connected */
490
- T(this, "$$cn", !1);
491
- /** Component props data */
492
- T(this, "$$d", {});
493
- /** `true` if currently in the process of reflecting component props back to attributes */
494
- T(this, "$$r", !1);
495
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
496
- T(this, "$$p_d", {});
497
- /** @type {Record<string, Function[]>} Event listeners */
498
- T(this, "$$l", {});
499
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
500
- T(this, "$$l_u", /* @__PURE__ */ new Map());
501
- this.$$ctor = t, this.$$s = r, n && this.attachShadow({ mode: "open" });
448
+ ae(l);
449
+ }
450
+ let Ut;
451
+ typeof HTMLElement == "function" && (Ut = class extends HTMLElement {
452
+ /** The Svelte component constructor */
453
+ $$ctor;
454
+ /** Slots */
455
+ $$s;
456
+ /** The Svelte component instance */
457
+ $$c;
458
+ /** Whether or not the custom element is connected */
459
+ $$cn = !1;
460
+ /** Component props data */
461
+ $$d = {};
462
+ /** `true` if currently in the process of reflecting component props back to attributes */
463
+ $$r = !1;
464
+ /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
465
+ $$p_d = {};
466
+ /** @type {Record<string, Function[]>} Event listeners */
467
+ $$l = {};
468
+ /** @type {Map<Function, Function>} Event listener unsubscribe functions */
469
+ $$l_u = /* @__PURE__ */ new Map();
470
+ constructor(e, t, r) {
471
+ super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
502
472
  }
503
- addEventListener(t, r, n) {
504
- if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(r), this.$$c) {
505
- const i = this.$$c.$on(t, r);
506
- this.$$l_u.set(r, i);
473
+ addEventListener(e, t, r) {
474
+ if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
475
+ const n = this.$$c.$on(e, t);
476
+ this.$$l_u.set(t, n);
507
477
  }
508
- super.addEventListener(t, r, n);
478
+ super.addEventListener(e, t, r);
509
479
  }
510
- removeEventListener(t, r, n) {
511
- if (super.removeEventListener(t, r, n), this.$$c) {
512
- const i = this.$$l_u.get(r);
513
- i && (i(), this.$$l_u.delete(r));
480
+ removeEventListener(e, t, r) {
481
+ if (super.removeEventListener(e, t, r), this.$$c) {
482
+ const n = this.$$l_u.get(t);
483
+ n && (n(), this.$$l_u.delete(t));
514
484
  }
515
485
  }
516
- connectedCallback() {
517
- return ut(this, null, function* () {
518
- if (this.$$cn = !0, !this.$$c) {
519
- let t = function(s) {
520
- return () => {
521
- let o;
522
- return {
523
- c: function() {
524
- o = M("slot"), s !== "default" && X(o, "name", s);
525
- },
526
- /**
527
- * @param {HTMLElement} target
528
- * @param {HTMLElement} [anchor]
529
- */
530
- m: function(u, h) {
531
- k(u, o, h);
532
- },
533
- d: function(u) {
534
- u && D(o);
535
- }
536
- };
486
+ async connectedCallback() {
487
+ if (this.$$cn = !0, !this.$$c) {
488
+ let e = function(i) {
489
+ return () => {
490
+ let s;
491
+ return {
492
+ c: function() {
493
+ s = N("slot"), i !== "default" && V(s, "name", i);
494
+ },
495
+ /**
496
+ * @param {HTMLElement} target
497
+ * @param {HTMLElement} [anchor]
498
+ */
499
+ m: function(l, u) {
500
+ j(l, s, u);
501
+ },
502
+ d: function(l) {
503
+ l && $(s);
504
+ }
537
505
  };
538
506
  };
539
- if (yield Promise.resolve(), !this.$$cn || this.$$c)
540
- return;
541
- const r = {}, n = Fr(this);
542
- for (const s of this.$$s)
543
- s in n && (r[s] = [t(s)]);
544
- for (const s of this.attributes) {
545
- const o = this.$$g_p(s.name);
546
- o in this.$$d || (this.$$d[o] = _e(o, s.value, this.$$p_d, "toProp"));
507
+ };
508
+ if (await Promise.resolve(), !this.$$cn || this.$$c)
509
+ return;
510
+ const t = {}, r = Or(this);
511
+ for (const i of this.$$s)
512
+ i in r && (t[i] = [e(i)]);
513
+ for (const i of this.attributes) {
514
+ const s = this.$$g_p(i.name);
515
+ s in this.$$d || (this.$$d[s] = ge(s, i.value, this.$$p_d, "toProp"));
516
+ }
517
+ for (const i in this.$$p_d)
518
+ !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
519
+ this.$$c = new this.$$ctor({
520
+ target: this.shadowRoot || this,
521
+ props: {
522
+ ...this.$$d,
523
+ $$slots: t,
524
+ $$scope: {
525
+ ctx: []
526
+ }
547
527
  }
548
- for (const s in this.$$p_d)
549
- !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
550
- this.$$c = new this.$$ctor({
551
- target: this.shadowRoot || this,
552
- props: at(ot({}, this.$$d), {
553
- $$slots: r,
554
- $$scope: {
555
- ctx: []
556
- }
557
- })
558
- });
559
- const i = () => {
560
- this.$$r = !0;
561
- for (const s in this.$$p_d)
562
- if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
563
- const o = _e(
564
- s,
565
- this.$$d[s],
566
- this.$$p_d,
567
- "toAttribute"
568
- );
569
- o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
570
- }
571
- this.$$r = !1;
572
- };
573
- this.$$c.$$.after_update.push(i), i();
574
- for (const s in this.$$l)
575
- for (const o of this.$$l[s]) {
576
- const a = this.$$c.$on(s, o);
577
- this.$$l_u.set(o, a);
528
+ });
529
+ const n = () => {
530
+ this.$$r = !0;
531
+ for (const i in this.$$p_d)
532
+ if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
533
+ const s = ge(
534
+ i,
535
+ this.$$d[i],
536
+ this.$$p_d,
537
+ "toAttribute"
538
+ );
539
+ s == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, s);
578
540
  }
579
- this.$$l = {};
580
- }
581
- });
541
+ this.$$r = !1;
542
+ };
543
+ this.$$c.$$.after_update.push(n), n();
544
+ for (const i in this.$$l)
545
+ for (const s of this.$$l[i]) {
546
+ const a = this.$$c.$on(i, s);
547
+ this.$$l_u.set(s, a);
548
+ }
549
+ this.$$l = {};
550
+ }
582
551
  }
583
552
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
584
553
  // and setting attributes through setAttribute etc, this is helpful
585
- attributeChangedCallback(t, r, n) {
586
- var i;
587
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = _e(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
554
+ attributeChangedCallback(e, t, r) {
555
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ge(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
588
556
  }
589
557
  disconnectedCallback() {
590
558
  this.$$cn = !1, Promise.resolve().then(() => {
591
559
  !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
592
560
  });
593
561
  }
594
- $$g_p(t) {
562
+ $$g_p(e) {
595
563
  return Object.keys(this.$$p_d).find(
596
- (r) => this.$$p_d[r].attribute === t || !this.$$p_d[r].attribute && r.toLowerCase() === t
597
- ) || t;
564
+ (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
565
+ ) || e;
598
566
  }
599
567
  });
600
- function _e(e, t, r, n) {
601
- var s;
602
- const i = (s = r[e]) == null ? void 0 : s.type;
568
+ function ge(e, t, r, n) {
569
+ const i = r[e]?.type;
603
570
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
604
571
  return t;
605
572
  if (n === "toAttribute")
@@ -610,7 +577,7 @@ function _e(e, t, r, n) {
610
577
  case "Boolean":
611
578
  return t ? "" : null;
612
579
  case "Number":
613
- return t == null ? null : t;
580
+ return t ?? null;
614
581
  default:
615
582
  return t;
616
583
  }
@@ -627,59 +594,55 @@ function _e(e, t, r, n) {
627
594
  return t;
628
595
  }
629
596
  }
630
- function Qr(e, t, r, n, i, s) {
631
- let o = class extends Xt {
597
+ function Ur(e, t, r, n, i, s) {
598
+ let a = class extends Ut {
632
599
  constructor() {
633
600
  super(e, r, i), this.$$p_d = t;
634
601
  }
635
602
  static get observedAttributes() {
636
603
  return Object.keys(t).map(
637
- (a) => (t[a].attribute || a).toLowerCase()
604
+ (o) => (t[o].attribute || o).toLowerCase()
638
605
  );
639
606
  }
640
607
  };
641
- return Object.keys(t).forEach((a) => {
642
- Object.defineProperty(o.prototype, a, {
608
+ return Object.keys(t).forEach((o) => {
609
+ Object.defineProperty(a.prototype, o, {
643
610
  get() {
644
- return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
611
+ return this.$$c && o in this.$$c ? this.$$c[o] : this.$$d[o];
645
612
  },
646
613
  set(l) {
647
- var u;
648
- l = _e(a, l, t), this.$$d[a] = l, (u = this.$$c) == null || u.$set({ [a]: l });
614
+ l = ge(o, l, t), this.$$d[o] = l, this.$$c?.$set({ [o]: l });
649
615
  }
650
616
  });
651
- }), n.forEach((a) => {
652
- Object.defineProperty(o.prototype, a, {
617
+ }), n.forEach((o) => {
618
+ Object.defineProperty(a.prototype, o, {
653
619
  get() {
654
- var l;
655
- return (l = this.$$c) == null ? void 0 : l[a];
620
+ return this.$$c?.[o];
656
621
  }
657
622
  });
658
623
  }), e.element = /** @type {any} */
659
- o, o;
660
- }
661
- class Jr {
662
- constructor() {
663
- /**
664
- * ### PRIVATE API
665
- *
666
- * Do not use, may change at any time
667
- *
668
- * @type {any}
669
- */
670
- T(this, "$$");
671
- /**
672
- * ### PRIVATE API
673
- *
674
- * Do not use, may change at any time
675
- *
676
- * @type {any}
677
- */
678
- T(this, "$$set");
679
- }
624
+ a, a;
625
+ }
626
+ class Gr {
627
+ /**
628
+ * ### PRIVATE API
629
+ *
630
+ * Do not use, may change at any time
631
+ *
632
+ * @type {any}
633
+ */
634
+ $$ = void 0;
635
+ /**
636
+ * ### PRIVATE API
637
+ *
638
+ * Do not use, may change at any time
639
+ *
640
+ * @type {any}
641
+ */
642
+ $$set = void 0;
680
643
  /** @returns {void} */
681
644
  $destroy() {
682
- zr(this, 1), this.$destroy = A;
645
+ Rr(this, 1), this.$destroy = P;
683
646
  }
684
647
  /**
685
648
  * @template {Extract<keyof Events, string>} K
@@ -688,8 +651,8 @@ class Jr {
688
651
  * @returns {() => void}
689
652
  */
690
653
  $on(t, r) {
691
- if (!Te(r))
692
- return A;
654
+ if (!we(r))
655
+ return P;
693
656
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
694
657
  return n.push(r), () => {
695
658
  const i = n.indexOf(r);
@@ -701,22 +664,22 @@ class Jr {
701
664
  * @returns {void}
702
665
  */
703
666
  $set(t) {
704
- this.$$set && !Or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
667
+ this.$$set && !_r(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
705
668
  }
706
669
  }
707
- const Yr = "4";
708
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Yr);
709
- var je = function(e, t) {
710
- return je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
670
+ const Fr = "4";
671
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Fr);
672
+ var Ge = function(e, t) {
673
+ return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
711
674
  r.__proto__ = n;
712
675
  } || function(r, n) {
713
676
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
714
- }, je(e, t);
677
+ }, Ge(e, t);
715
678
  };
716
- function F(e, t) {
679
+ function G(e, t) {
717
680
  if (typeof t != "function" && t !== null)
718
681
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
719
- je(e, t);
682
+ Ge(e, t);
720
683
  function r() {
721
684
  this.constructor = e;
722
685
  }
@@ -731,7 +694,7 @@ var v = function() {
731
694
  return t;
732
695
  }, v.apply(this, arguments);
733
696
  };
734
- function Kr(e, t) {
697
+ function jr(e, t) {
735
698
  var r = {};
736
699
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
737
700
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -739,7 +702,7 @@ function Kr(e, t) {
739
702
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
740
703
  return r;
741
704
  }
742
- function ke(e) {
705
+ function Fe(e) {
743
706
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
744
707
  if (r) return r.call(e);
745
708
  if (e && typeof e.length == "number") return {
@@ -749,38 +712,38 @@ function ke(e) {
749
712
  };
750
713
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
751
714
  }
752
- function Ve(e, t) {
715
+ function je(e, t) {
753
716
  var r = typeof Symbol == "function" && e[Symbol.iterator];
754
717
  if (!r) return e;
755
- var n = r.call(e), i, s = [], o;
718
+ var n = r.call(e), i, s = [], a;
756
719
  try {
757
720
  for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; ) s.push(i.value);
758
- } catch (a) {
759
- o = { error: a };
721
+ } catch (o) {
722
+ a = { error: o };
760
723
  } finally {
761
724
  try {
762
725
  i && !i.done && (r = n.return) && r.call(n);
763
726
  } finally {
764
- if (o) throw o.error;
727
+ if (a) throw a.error;
765
728
  }
766
729
  }
767
730
  return s;
768
731
  }
769
- function K(e, t, r) {
732
+ function Y(e, t, r) {
770
733
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
771
734
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
772
735
  return e.concat(s || Array.prototype.slice.call(t));
773
736
  }
774
- function G(e) {
737
+ function U(e) {
775
738
  return typeof e == "function";
776
739
  }
777
- function Wt(e) {
740
+ function Gt(e) {
778
741
  var t = function(n) {
779
742
  Error.call(n), n.stack = new Error().stack;
780
743
  }, r = e(t);
781
744
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
782
745
  }
783
- var Le = Wt(function(e) {
746
+ var Ie = Gt(function(e) {
784
747
  return function(r) {
785
748
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
786
749
  ` + r.map(function(n, i) {
@@ -789,13 +752,13 @@ var Le = Wt(function(e) {
789
752
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
790
753
  };
791
754
  });
792
- function Xe(e, t) {
755
+ function ke(e, t) {
793
756
  if (e) {
794
757
  var r = e.indexOf(t);
795
758
  0 <= r && e.splice(r, 1);
796
759
  }
797
760
  }
798
- var He = function() {
761
+ var Te = function() {
799
762
  function e(t) {
800
763
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
801
764
  }
@@ -803,11 +766,11 @@ var He = function() {
803
766
  var t, r, n, i, s;
804
767
  if (!this.closed) {
805
768
  this.closed = !0;
806
- var o = this._parentage;
807
- if (o)
808
- if (this._parentage = null, Array.isArray(o))
769
+ var a = this._parentage;
770
+ if (a)
771
+ if (this._parentage = null, Array.isArray(a))
809
772
  try {
810
- for (var a = ke(o), l = a.next(); !l.done; l = a.next()) {
773
+ for (var o = Fe(a), l = o.next(); !l.done; l = o.next()) {
811
774
  var u = l.value;
812
775
  u.remove(this);
813
776
  }
@@ -815,30 +778,30 @@ var He = function() {
815
778
  t = { error: _ };
816
779
  } finally {
817
780
  try {
818
- l && !l.done && (r = a.return) && r.call(a);
781
+ l && !l.done && (r = o.return) && r.call(o);
819
782
  } finally {
820
783
  if (t) throw t.error;
821
784
  }
822
785
  }
823
786
  else
824
- o.remove(this);
787
+ a.remove(this);
825
788
  var h = this.initialTeardown;
826
- if (G(h))
789
+ if (U(h))
827
790
  try {
828
791
  h();
829
792
  } catch (_) {
830
- s = _ instanceof Le ? _.errors : [_];
793
+ s = _ instanceof Ie ? _.errors : [_];
831
794
  }
832
795
  var c = this._finalizers;
833
796
  if (c) {
834
797
  this._finalizers = null;
835
798
  try {
836
- for (var f = ke(c), p = f.next(); !p.done; p = f.next()) {
799
+ for (var f = Fe(c), p = f.next(); !p.done; p = f.next()) {
837
800
  var b = p.value;
838
801
  try {
839
- dt(b);
802
+ at(b);
840
803
  } catch (_) {
841
- s = s != null ? s : [], _ instanceof Le ? s = K(K([], Ve(s)), Ve(_.errors)) : s.push(_);
804
+ s = s ?? [], _ instanceof Ie ? s = Y(Y([], je(s)), je(_.errors)) : s.push(_);
842
805
  }
843
806
  }
844
807
  } catch (_) {
@@ -852,13 +815,13 @@ var He = function() {
852
815
  }
853
816
  }
854
817
  if (s)
855
- throw new Le(s);
818
+ throw new Ie(s);
856
819
  }
857
820
  }, e.prototype.add = function(t) {
858
821
  var r;
859
822
  if (t && t !== this)
860
823
  if (this.closed)
861
- dt(t);
824
+ at(t);
862
825
  else {
863
826
  if (t instanceof e) {
864
827
  if (t.closed || t._hasParent(this))
@@ -875,56 +838,56 @@ var He = function() {
875
838
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
876
839
  }, e.prototype._removeParent = function(t) {
877
840
  var r = this._parentage;
878
- r === t ? this._parentage = null : Array.isArray(r) && Xe(r, t);
841
+ r === t ? this._parentage = null : Array.isArray(r) && ke(r, t);
879
842
  }, e.prototype.remove = function(t) {
880
843
  var r = this._finalizers;
881
- r && Xe(r, t), t instanceof e && t._removeParent(this);
844
+ r && ke(r, t), t instanceof e && t._removeParent(this);
882
845
  }, e.EMPTY = function() {
883
846
  var t = new e();
884
847
  return t.closed = !0, t;
885
848
  }(), e;
886
- }(), zt = He.EMPTY;
887
- function qt(e) {
888
- return e instanceof He || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
849
+ }(), Ft = Te.EMPTY;
850
+ function jt(e) {
851
+ return e instanceof Te || e && "closed" in e && U(e.remove) && U(e.add) && U(e.unsubscribe);
889
852
  }
890
- function dt(e) {
891
- G(e) ? e() : e.unsubscribe();
853
+ function at(e) {
854
+ U(e) ? e() : e.unsubscribe();
892
855
  }
893
- var en = {
856
+ var kr = {
894
857
  onUnhandledError: null,
895
858
  onStoppedNotification: null,
896
859
  Promise: void 0,
897
860
  useDeprecatedSynchronousErrorHandling: !1,
898
861
  useDeprecatedNextContext: !1
899
- }, tn = {
862
+ }, Vr = {
900
863
  setTimeout: function(e, t) {
901
864
  for (var r = [], n = 2; n < arguments.length; n++)
902
865
  r[n - 2] = arguments[n];
903
- return setTimeout.apply(void 0, K([e, t], Ve(r)));
866
+ return setTimeout.apply(void 0, Y([e, t], je(r)));
904
867
  },
905
868
  clearTimeout: function(e) {
906
869
  return clearTimeout(e);
907
870
  },
908
871
  delegate: void 0
909
872
  };
910
- function rn(e) {
911
- tn.setTimeout(function() {
873
+ function Xr(e) {
874
+ Vr.setTimeout(function() {
912
875
  throw e;
913
876
  });
914
877
  }
915
- function pt() {
878
+ function ut() {
916
879
  }
917
- function ve(e) {
880
+ function _e(e) {
918
881
  e();
919
882
  }
920
- var Zt = function(e) {
921
- F(t, e);
883
+ var kt = function(e) {
884
+ G(t, e);
922
885
  function t(r) {
923
886
  var n = e.call(this) || this;
924
- return n.isStopped = !1, r ? (n.destination = r, qt(r) && r.add(n)) : n.destination = on, n;
887
+ return n.isStopped = !1, r ? (n.destination = r, jt(r) && r.add(n)) : n.destination = qr, n;
925
888
  }
926
889
  return t.create = function(r, n, i) {
927
- return new We(r, n, i);
890
+ return new Ve(r, n, i);
928
891
  }, t.prototype.next = function(r) {
929
892
  this.isStopped || this._next(r);
930
893
  }, t.prototype.error = function(r) {
@@ -948,7 +911,7 @@ var Zt = function(e) {
948
911
  this.unsubscribe();
949
912
  }
950
913
  }, t;
951
- }(He), nn = function() {
914
+ }(Te), Wr = function() {
952
915
  function e(t) {
953
916
  this.partialObserver = t;
954
917
  }
@@ -958,7 +921,7 @@ var Zt = function(e) {
958
921
  try {
959
922
  r.next(t);
960
923
  } catch (n) {
961
- be(n);
924
+ me(n);
962
925
  }
963
926
  }, e.prototype.error = function(t) {
964
927
  var r = this.partialObserver;
@@ -966,56 +929,56 @@ var Zt = function(e) {
966
929
  try {
967
930
  r.error(t);
968
931
  } catch (n) {
969
- be(n);
932
+ me(n);
970
933
  }
971
934
  else
972
- be(t);
935
+ me(t);
973
936
  }, e.prototype.complete = function() {
974
937
  var t = this.partialObserver;
975
938
  if (t.complete)
976
939
  try {
977
940
  t.complete();
978
941
  } catch (r) {
979
- be(r);
942
+ me(r);
980
943
  }
981
944
  }, e;
982
- }(), We = function(e) {
983
- F(t, e);
945
+ }(), Ve = function(e) {
946
+ G(t, e);
984
947
  function t(r, n, i) {
985
- var s = e.call(this) || this, o;
986
- return G(r) || !r ? o = {
987
- next: r != null ? r : void 0,
988
- error: n != null ? n : void 0,
989
- complete: i != null ? i : void 0
990
- } : o = r, s.destination = new nn(o), s;
948
+ var s = e.call(this) || this, a;
949
+ return U(r) || !r ? a = {
950
+ next: r ?? void 0,
951
+ error: n ?? void 0,
952
+ complete: i ?? void 0
953
+ } : a = r, s.destination = new Wr(a), s;
991
954
  }
992
955
  return t;
993
- }(Zt);
994
- function be(e) {
995
- rn(e);
956
+ }(kt);
957
+ function me(e) {
958
+ Xr(e);
996
959
  }
997
- function sn(e) {
960
+ function zr(e) {
998
961
  throw e;
999
962
  }
1000
- var on = {
963
+ var qr = {
1001
964
  closed: !0,
1002
- next: pt,
1003
- error: sn,
1004
- complete: pt
1005
- }, an = function() {
965
+ next: ut,
966
+ error: zr,
967
+ complete: ut
968
+ }, Zr = function() {
1006
969
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
1007
970
  }();
1008
- function un(e) {
971
+ function Qr(e) {
1009
972
  return e;
1010
973
  }
1011
- function ln(e) {
1012
- return e.length === 0 ? un : e.length === 1 ? e[0] : function(r) {
974
+ function Jr(e) {
975
+ return e.length === 0 ? Qr : e.length === 1 ? e[0] : function(r) {
1013
976
  return e.reduce(function(n, i) {
1014
977
  return i(n);
1015
978
  }, r);
1016
979
  };
1017
980
  }
1018
- var mt = function() {
981
+ var lt = function() {
1019
982
  function e(t) {
1020
983
  t && (this._subscribe = t);
1021
984
  }
@@ -1023,10 +986,10 @@ var mt = function() {
1023
986
  var r = new e();
1024
987
  return r.source = this, r.operator = t, r;
1025
988
  }, e.prototype.subscribe = function(t, r, n) {
1026
- var i = this, s = fn(t) ? t : new We(t, r, n);
1027
- return ve(function() {
1028
- var o = i, a = o.operator, l = o.source;
1029
- s.add(a ? a.call(s, l) : l ? i._subscribe(s) : i._trySubscribe(s));
989
+ var i = this, s = Kr(t) ? t : new Ve(t, r, n);
990
+ return _e(function() {
991
+ var a = i, o = a.operator, l = a.source;
992
+ s.add(o ? o.call(s, l) : l ? i._subscribe(s) : i._trySubscribe(s));
1030
993
  }), s;
1031
994
  }, e.prototype._trySubscribe = function(t) {
1032
995
  try {
@@ -1036,37 +999,37 @@ var mt = function() {
1036
999
  }
1037
1000
  }, e.prototype.forEach = function(t, r) {
1038
1001
  var n = this;
1039
- return r = bt(r), new r(function(i, s) {
1040
- var o = new We({
1041
- next: function(a) {
1002
+ return r = ht(r), new r(function(i, s) {
1003
+ var a = new Ve({
1004
+ next: function(o) {
1042
1005
  try {
1043
- t(a);
1006
+ t(o);
1044
1007
  } catch (l) {
1045
- s(l), o.unsubscribe();
1008
+ s(l), a.unsubscribe();
1046
1009
  }
1047
1010
  },
1048
1011
  error: s,
1049
1012
  complete: i
1050
1013
  });
1051
- n.subscribe(o);
1014
+ n.subscribe(a);
1052
1015
  });
1053
1016
  }, e.prototype._subscribe = function(t) {
1054
1017
  var r;
1055
1018
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
1056
- }, e.prototype[an] = function() {
1019
+ }, e.prototype[Zr] = function() {
1057
1020
  return this;
1058
1021
  }, e.prototype.pipe = function() {
1059
1022
  for (var t = [], r = 0; r < arguments.length; r++)
1060
1023
  t[r] = arguments[r];
1061
- return ln(t)(this);
1024
+ return Jr(t)(this);
1062
1025
  }, e.prototype.toPromise = function(t) {
1063
1026
  var r = this;
1064
- return t = bt(t), new t(function(n, i) {
1027
+ return t = ht(t), new t(function(n, i) {
1065
1028
  var s;
1066
- r.subscribe(function(o) {
1067
- return s = o;
1068
- }, function(o) {
1069
- return i(o);
1029
+ r.subscribe(function(a) {
1030
+ return s = a;
1031
+ }, function(a) {
1032
+ return i(a);
1070
1033
  }, function() {
1071
1034
  return n(s);
1072
1035
  });
@@ -1075,48 +1038,48 @@ var mt = function() {
1075
1038
  return new e(t);
1076
1039
  }, e;
1077
1040
  }();
1078
- function bt(e) {
1041
+ function ht(e) {
1079
1042
  var t;
1080
- return (t = e != null ? e : en.Promise) !== null && t !== void 0 ? t : Promise;
1043
+ return (t = e ?? kr.Promise) !== null && t !== void 0 ? t : Promise;
1081
1044
  }
1082
- function hn(e) {
1083
- return e && G(e.next) && G(e.error) && G(e.complete);
1045
+ function Yr(e) {
1046
+ return e && U(e.next) && U(e.error) && U(e.complete);
1084
1047
  }
1085
- function fn(e) {
1086
- return e && e instanceof Zt || hn(e) && qt(e);
1048
+ function Kr(e) {
1049
+ return e && e instanceof kt || Yr(e) && jt(e);
1087
1050
  }
1088
- var cn = Wt(function(e) {
1051
+ var en = Gt(function(e) {
1089
1052
  return function() {
1090
1053
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1091
1054
  };
1092
- }), Qt = function(e) {
1093
- F(t, e);
1055
+ }), Vt = function(e) {
1056
+ G(t, e);
1094
1057
  function t() {
1095
1058
  var r = e.call(this) || this;
1096
1059
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
1097
1060
  }
1098
1061
  return t.prototype.lift = function(r) {
1099
- var n = new yt(this, this);
1062
+ var n = new ft(this, this);
1100
1063
  return n.operator = r, n;
1101
1064
  }, t.prototype._throwIfClosed = function() {
1102
1065
  if (this.closed)
1103
- throw new cn();
1066
+ throw new en();
1104
1067
  }, t.prototype.next = function(r) {
1105
1068
  var n = this;
1106
- ve(function() {
1069
+ _e(function() {
1107
1070
  var i, s;
1108
1071
  if (n._throwIfClosed(), !n.isStopped) {
1109
1072
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
1110
1073
  try {
1111
- for (var o = ke(n.currentObservers), a = o.next(); !a.done; a = o.next()) {
1112
- var l = a.value;
1074
+ for (var a = Fe(n.currentObservers), o = a.next(); !o.done; o = a.next()) {
1075
+ var l = o.value;
1113
1076
  l.next(r);
1114
1077
  }
1115
1078
  } catch (u) {
1116
1079
  i = { error: u };
1117
1080
  } finally {
1118
1081
  try {
1119
- a && !a.done && (s = o.return) && s.call(o);
1082
+ o && !o.done && (s = a.return) && s.call(a);
1120
1083
  } finally {
1121
1084
  if (i) throw i.error;
1122
1085
  }
@@ -1125,7 +1088,7 @@ var cn = Wt(function(e) {
1125
1088
  });
1126
1089
  }, t.prototype.error = function(r) {
1127
1090
  var n = this;
1128
- ve(function() {
1091
+ _e(function() {
1129
1092
  if (n._throwIfClosed(), !n.isStopped) {
1130
1093
  n.hasError = n.isStopped = !0, n.thrownError = r;
1131
1094
  for (var i = n.observers; i.length; )
@@ -1134,7 +1097,7 @@ var cn = Wt(function(e) {
1134
1097
  });
1135
1098
  }, t.prototype.complete = function() {
1136
1099
  var r = this;
1137
- ve(function() {
1100
+ _e(function() {
1138
1101
  if (r._throwIfClosed(), !r.isStopped) {
1139
1102
  r.isStopped = !0;
1140
1103
  for (var n = r.observers; n.length; )
@@ -1155,21 +1118,21 @@ var cn = Wt(function(e) {
1155
1118
  }, t.prototype._subscribe = function(r) {
1156
1119
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
1157
1120
  }, t.prototype._innerSubscribe = function(r) {
1158
- var n = this, i = this, s = i.hasError, o = i.isStopped, a = i.observers;
1159
- return s || o ? zt : (this.currentObservers = null, a.push(r), new He(function() {
1160
- n.currentObservers = null, Xe(a, r);
1121
+ var n = this, i = this, s = i.hasError, a = i.isStopped, o = i.observers;
1122
+ return s || a ? Ft : (this.currentObservers = null, o.push(r), new Te(function() {
1123
+ n.currentObservers = null, ke(o, r);
1161
1124
  }));
1162
1125
  }, t.prototype._checkFinalizedStatuses = function(r) {
1163
- var n = this, i = n.hasError, s = n.thrownError, o = n.isStopped;
1164
- i ? r.error(s) : o && r.complete();
1126
+ var n = this, i = n.hasError, s = n.thrownError, a = n.isStopped;
1127
+ i ? r.error(s) : a && r.complete();
1165
1128
  }, t.prototype.asObservable = function() {
1166
- var r = new mt();
1129
+ var r = new lt();
1167
1130
  return r.source = this, r;
1168
1131
  }, t.create = function(r, n) {
1169
- return new yt(r, n);
1132
+ return new ft(r, n);
1170
1133
  }, t;
1171
- }(mt), yt = function(e) {
1172
- F(t, e);
1134
+ }(lt), ft = function(e) {
1135
+ G(t, e);
1173
1136
  function t(r, n) {
1174
1137
  var i = e.call(this) || this;
1175
1138
  return i.destination = r, i.source = n, i;
@@ -1185,92 +1148,92 @@ var cn = Wt(function(e) {
1185
1148
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1186
1149
  }, t.prototype._subscribe = function(r) {
1187
1150
  var n, i;
1188
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : zt;
1151
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Ft;
1189
1152
  }, t;
1190
- }(Qt), Jt = {
1153
+ }(Vt), Xt = {
1191
1154
  now: function() {
1192
- return (Jt.delegate || Date).now();
1155
+ return (Xt.delegate || Date).now();
1193
1156
  },
1194
1157
  delegate: void 0
1195
- }, dn = function(e) {
1196
- F(t, e);
1158
+ }, tn = function(e) {
1159
+ G(t, e);
1197
1160
  function t(r, n, i) {
1198
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Jt);
1161
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Xt);
1199
1162
  var s = e.call(this) || this;
1200
1163
  return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
1201
1164
  }
1202
1165
  return t.prototype.next = function(r) {
1203
- var n = this, i = n.isStopped, s = n._buffer, o = n._infiniteTimeWindow, a = n._timestampProvider, l = n._windowTime;
1204
- i || (s.push(r), !o && s.push(a.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
1166
+ var n = this, i = n.isStopped, s = n._buffer, a = n._infiniteTimeWindow, o = n._timestampProvider, l = n._windowTime;
1167
+ i || (s.push(r), !a && s.push(o.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
1205
1168
  }, t.prototype._subscribe = function(r) {
1206
1169
  this._throwIfClosed(), this._trimBuffer();
1207
- for (var n = this._innerSubscribe(r), i = this, s = i._infiniteTimeWindow, o = i._buffer, a = o.slice(), l = 0; l < a.length && !r.closed; l += s ? 1 : 2)
1208
- r.next(a[l]);
1170
+ for (var n = this._innerSubscribe(r), i = this, s = i._infiniteTimeWindow, a = i._buffer, o = a.slice(), l = 0; l < o.length && !r.closed; l += s ? 1 : 2)
1171
+ r.next(o[l]);
1209
1172
  return this._checkFinalizedStatuses(r), n;
1210
1173
  }, t.prototype._trimBuffer = function() {
1211
- var r = this, n = r._bufferSize, i = r._timestampProvider, s = r._buffer, o = r._infiniteTimeWindow, a = (o ? 1 : 2) * n;
1212
- if (n < 1 / 0 && a < s.length && s.splice(0, s.length - a), !o) {
1174
+ var r = this, n = r._bufferSize, i = r._timestampProvider, s = r._buffer, a = r._infiniteTimeWindow, o = (a ? 1 : 2) * n;
1175
+ if (n < 1 / 0 && o < s.length && s.splice(0, s.length - o), !a) {
1213
1176
  for (var l = i.now(), u = 0, h = 1; h < s.length && s[h] <= l; h += 2)
1214
1177
  u = h;
1215
1178
  u && s.splice(0, u + 1);
1216
1179
  }
1217
1180
  }, t;
1218
- }(Qt);
1219
- const gt = [], _t = {}, pn = (e, t = 0) => {
1220
- if (gt.indexOf(e) == -1) {
1221
- const r = new dn(t);
1222
- _t[e] = r, gt.push(e);
1181
+ }(Vt);
1182
+ const ct = [], dt = {}, rn = (e, t = 0) => {
1183
+ if (ct.indexOf(e) == -1) {
1184
+ const r = new tn(t);
1185
+ dt[e] = r, ct.push(e);
1223
1186
  }
1224
- return _t[e];
1225
- }, Q = [];
1226
- function mn(e, t) {
1187
+ return dt[e];
1188
+ }, Z = [];
1189
+ function nn(e, t) {
1227
1190
  return {
1228
- subscribe: Be(e, t).subscribe
1191
+ subscribe: He(e, t).subscribe
1229
1192
  };
1230
1193
  }
1231
- function Be(e, t = A) {
1194
+ function He(e, t = P) {
1232
1195
  let r;
1233
1196
  const n = /* @__PURE__ */ new Set();
1234
- function i(a) {
1235
- if (Ut(e, a) && (e = a, r)) {
1236
- const l = !Q.length;
1197
+ function i(o) {
1198
+ if (Lt(e, o) && (e = o, r)) {
1199
+ const l = !Z.length;
1237
1200
  for (const u of n)
1238
- u[1](), Q.push(u, e);
1201
+ u[1](), Z.push(u, e);
1239
1202
  if (l) {
1240
- for (let u = 0; u < Q.length; u += 2)
1241
- Q[u][0](Q[u + 1]);
1242
- Q.length = 0;
1203
+ for (let u = 0; u < Z.length; u += 2)
1204
+ Z[u][0](Z[u + 1]);
1205
+ Z.length = 0;
1243
1206
  }
1244
1207
  }
1245
1208
  }
1246
- function s(a) {
1247
- i(a(e));
1209
+ function s(o) {
1210
+ i(o(e));
1248
1211
  }
1249
- function o(a, l = A) {
1250
- const u = [a, l];
1251
- return n.add(u), n.size === 1 && (r = t(i, s) || A), a(e), () => {
1212
+ function a(o, l = P) {
1213
+ const u = [o, l];
1214
+ return n.add(u), n.size === 1 && (r = t(i, s) || P), o(e), () => {
1252
1215
  n.delete(u), n.size === 0 && r && (r(), r = null);
1253
1216
  };
1254
1217
  }
1255
- return { set: i, update: s, subscribe: o };
1218
+ return { set: i, update: s, subscribe: a };
1256
1219
  }
1257
- function ie(e, t, r) {
1220
+ function ne(e, t, r) {
1258
1221
  const n = !Array.isArray(e), i = n ? [e] : e;
1259
1222
  if (!i.every(Boolean))
1260
1223
  throw new Error("derived() expects stores as input, got a falsy value");
1261
1224
  const s = t.length < 2;
1262
- return mn(r, (o, a) => {
1225
+ return nn(r, (a, o) => {
1263
1226
  let l = !1;
1264
1227
  const u = [];
1265
- let h = 0, c = A;
1228
+ let h = 0, c = P;
1266
1229
  const f = () => {
1267
1230
  if (h)
1268
1231
  return;
1269
1232
  c();
1270
- const b = t(n ? u[0] : u, o, a);
1271
- s ? o(b) : c = Te(b) ? b : A;
1233
+ const b = t(n ? u[0] : u, a, o);
1234
+ s ? a(b) : c = we(b) ? b : P;
1272
1235
  }, p = i.map(
1273
- (b, _) => Gt(
1236
+ (b, _) => Nt(
1274
1237
  b,
1275
1238
  (S) => {
1276
1239
  u[_] = S, h &= ~(1 << _), l && f();
@@ -1281,118 +1244,118 @@ function ie(e, t, r) {
1281
1244
  )
1282
1245
  );
1283
1246
  return l = !0, f(), function() {
1284
- W(p), c(), l = !1;
1247
+ X(p), c(), l = !1;
1285
1248
  };
1286
1249
  });
1287
1250
  }
1288
- function bn(e) {
1251
+ function sn(e) {
1289
1252
  return e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1290
1253
  }
1291
- var yn = function(t) {
1292
- return gn(t) && !_n(t);
1254
+ var on = function(t) {
1255
+ return an(t) && !un(t);
1293
1256
  };
1294
- function gn(e) {
1257
+ function an(e) {
1295
1258
  return !!e && typeof e == "object";
1296
1259
  }
1297
- function _n(e) {
1260
+ function un(e) {
1298
1261
  var t = Object.prototype.toString.call(e);
1299
- return t === "[object RegExp]" || t === "[object Date]" || xn(e);
1262
+ return t === "[object RegExp]" || t === "[object Date]" || fn(e);
1300
1263
  }
1301
- var vn = typeof Symbol == "function" && Symbol.for, En = vn ? Symbol.for("react.element") : 60103;
1302
- function xn(e) {
1303
- return e.$$typeof === En;
1264
+ var ln = typeof Symbol == "function" && Symbol.for, hn = ln ? Symbol.for("react.element") : 60103;
1265
+ function fn(e) {
1266
+ return e.$$typeof === hn;
1304
1267
  }
1305
- function Sn(e) {
1268
+ function cn(e) {
1306
1269
  return Array.isArray(e) ? [] : {};
1307
1270
  }
1308
- function he(e, t) {
1309
- return t.clone !== !1 && t.isMergeableObject(e) ? ee(Sn(e), e, t) : e;
1271
+ function le(e, t) {
1272
+ return t.clone !== !1 && t.isMergeableObject(e) ? K(cn(e), e, t) : e;
1310
1273
  }
1311
- function wn(e, t, r) {
1274
+ function dn(e, t, r) {
1312
1275
  return e.concat(t).map(function(n) {
1313
- return he(n, r);
1276
+ return le(n, r);
1314
1277
  });
1315
1278
  }
1316
- function Tn(e, t) {
1279
+ function pn(e, t) {
1317
1280
  if (!t.customMerge)
1318
- return ee;
1281
+ return K;
1319
1282
  var r = t.customMerge(e);
1320
- return typeof r == "function" ? r : ee;
1283
+ return typeof r == "function" ? r : K;
1321
1284
  }
1322
- function Hn(e) {
1285
+ function mn(e) {
1323
1286
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1324
1287
  return Object.propertyIsEnumerable.call(e, t);
1325
1288
  }) : [];
1326
1289
  }
1327
- function vt(e) {
1328
- return Object.keys(e).concat(Hn(e));
1290
+ function pt(e) {
1291
+ return Object.keys(e).concat(mn(e));
1329
1292
  }
1330
- function Yt(e, t) {
1293
+ function Wt(e, t) {
1331
1294
  try {
1332
1295
  return t in e;
1333
- } catch (r) {
1296
+ } catch {
1334
1297
  return !1;
1335
1298
  }
1336
1299
  }
1337
- function Bn(e, t) {
1338
- return Yt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1300
+ function bn(e, t) {
1301
+ return Wt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1339
1302
  }
1340
- function Pn(e, t, r) {
1303
+ function yn(e, t, r) {
1341
1304
  var n = {};
1342
- return r.isMergeableObject(e) && vt(e).forEach(function(i) {
1343
- n[i] = he(e[i], r);
1344
- }), vt(t).forEach(function(i) {
1345
- Bn(e, i) || (Yt(e, i) && r.isMergeableObject(t[i]) ? n[i] = Tn(i, r)(e[i], t[i], r) : n[i] = he(t[i], r));
1305
+ return r.isMergeableObject(e) && pt(e).forEach(function(i) {
1306
+ n[i] = le(e[i], r);
1307
+ }), pt(t).forEach(function(i) {
1308
+ bn(e, i) || (Wt(e, i) && r.isMergeableObject(t[i]) ? n[i] = pn(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
1346
1309
  }), n;
1347
1310
  }
1348
- function ee(e, t, r) {
1349
- r = r || {}, r.arrayMerge = r.arrayMerge || wn, r.isMergeableObject = r.isMergeableObject || yn, r.cloneUnlessOtherwiseSpecified = he;
1311
+ function K(e, t, r) {
1312
+ r = r || {}, r.arrayMerge = r.arrayMerge || dn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified = le;
1350
1313
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
1351
- return s ? n ? r.arrayMerge(e, t, r) : Pn(e, t, r) : he(t, r);
1314
+ return s ? n ? r.arrayMerge(e, t, r) : yn(e, t, r) : le(t, r);
1352
1315
  }
1353
- ee.all = function(t, r) {
1316
+ K.all = function(t, r) {
1354
1317
  if (!Array.isArray(t))
1355
1318
  throw new Error("first argument should be an array");
1356
1319
  return t.reduce(function(n, i) {
1357
- return ee(n, i, r);
1320
+ return K(n, i, r);
1358
1321
  }, {});
1359
1322
  };
1360
- var An = ee, On = An;
1361
- const In = /* @__PURE__ */ bn(On);
1362
- function Ne(e, t) {
1363
- var r = t && t.cache ? t.cache : Dn, n = t && t.serializer ? t.serializer : Rn, i = t && t.strategy ? t.strategy : Ln;
1323
+ var gn = K, _n = gn;
1324
+ const vn = /* @__PURE__ */ sn(_n);
1325
+ function Ce(e, t) {
1326
+ var r = t && t.cache ? t.cache : Bn, n = t && t.serializer ? t.serializer : Tn, i = t && t.strategy ? t.strategy : xn;
1364
1327
  return i(e, {
1365
1328
  cache: r,
1366
1329
  serializer: n
1367
1330
  });
1368
1331
  }
1369
- function Cn(e) {
1332
+ function En(e) {
1370
1333
  return e == null || typeof e == "number" || typeof e == "boolean";
1371
1334
  }
1372
- function Kt(e, t, r, n) {
1373
- var i = Cn(n) ? n : r(n), s = t.get(i);
1374
- return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
1335
+ function zt(e, t, r, n) {
1336
+ var i = En(n) ? n : r(n), s = t.get(i);
1337
+ return typeof s > "u" && (s = e.call(this, n), t.set(i, s)), s;
1375
1338
  }
1376
- function er(e, t, r) {
1339
+ function qt(e, t, r) {
1377
1340
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
1378
- return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
1341
+ return typeof s > "u" && (s = e.apply(this, n), t.set(i, s)), s;
1379
1342
  }
1380
- function rt(e, t, r, n, i) {
1343
+ function et(e, t, r, n, i) {
1381
1344
  return r.bind(t, e, n, i);
1382
1345
  }
1383
- function Ln(e, t) {
1384
- var r = e.length === 1 ? Kt : er;
1385
- return rt(e, this, r, t.cache.create(), t.serializer);
1346
+ function xn(e, t) {
1347
+ var r = e.length === 1 ? zt : qt;
1348
+ return et(e, this, r, t.cache.create(), t.serializer);
1386
1349
  }
1387
- function Nn(e, t) {
1388
- return rt(e, this, er, t.cache.create(), t.serializer);
1350
+ function Sn(e, t) {
1351
+ return et(e, this, qt, t.cache.create(), t.serializer);
1389
1352
  }
1390
- function Mn(e, t) {
1391
- return rt(e, this, Kt, t.cache.create(), t.serializer);
1353
+ function wn(e, t) {
1354
+ return et(e, this, zt, t.cache.create(), t.serializer);
1392
1355
  }
1393
- var Rn = function() {
1356
+ var Tn = function() {
1394
1357
  return JSON.stringify(arguments);
1395
- }, $n = (
1358
+ }, Hn = (
1396
1359
  /** @class */
1397
1360
  function() {
1398
1361
  function e() {
@@ -1404,13 +1367,13 @@ var Rn = function() {
1404
1367
  this.cache[t] = r;
1405
1368
  }, e;
1406
1369
  }()
1407
- ), Dn = {
1370
+ ), Bn = {
1408
1371
  create: function() {
1409
- return new $n();
1372
+ return new Hn();
1410
1373
  }
1411
- }, Me = {
1412
- variadic: Nn,
1413
- monadic: Mn
1374
+ }, Le = {
1375
+ variadic: Sn,
1376
+ monadic: wn
1414
1377
  }, y;
1415
1378
  (function(e) {
1416
1379
  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";
@@ -1419,47 +1382,47 @@ var x;
1419
1382
  (function(e) {
1420
1383
  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";
1421
1384
  })(x || (x = {}));
1422
- var te;
1385
+ var ee;
1423
1386
  (function(e) {
1424
1387
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1425
- })(te || (te = {}));
1426
- function Et(e) {
1388
+ })(ee || (ee = {}));
1389
+ function mt(e) {
1427
1390
  return e.type === x.literal;
1428
1391
  }
1429
- function Un(e) {
1392
+ function Pn(e) {
1430
1393
  return e.type === x.argument;
1431
1394
  }
1432
- function tr(e) {
1395
+ function Zt(e) {
1433
1396
  return e.type === x.number;
1434
1397
  }
1435
- function rr(e) {
1398
+ function Qt(e) {
1436
1399
  return e.type === x.date;
1437
1400
  }
1438
- function nr(e) {
1401
+ function Jt(e) {
1439
1402
  return e.type === x.time;
1440
1403
  }
1441
- function ir(e) {
1404
+ function Yt(e) {
1442
1405
  return e.type === x.select;
1443
1406
  }
1444
- function sr(e) {
1407
+ function Kt(e) {
1445
1408
  return e.type === x.plural;
1446
1409
  }
1447
- function Gn(e) {
1410
+ function An(e) {
1448
1411
  return e.type === x.pound;
1449
1412
  }
1450
- function or(e) {
1413
+ function er(e) {
1451
1414
  return e.type === x.tag;
1452
1415
  }
1453
- function ar(e) {
1454
- return !!(e && typeof e == "object" && e.type === te.number);
1416
+ function tr(e) {
1417
+ return !!(e && typeof e == "object" && e.type === ee.number);
1455
1418
  }
1456
- function ze(e) {
1457
- return !!(e && typeof e == "object" && e.type === te.dateTime);
1419
+ function Xe(e) {
1420
+ return !!(e && typeof e == "object" && e.type === ee.dateTime);
1458
1421
  }
1459
- var ur = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Fn = /(?:[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;
1460
- function jn(e) {
1422
+ var rr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, On = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1423
+ function In(e) {
1461
1424
  var t = {};
1462
- return e.replace(Fn, function(r) {
1425
+ return e.replace(On, function(r) {
1463
1426
  var n = r.length;
1464
1427
  switch (r[0]) {
1465
1428
  case "G":
@@ -1548,36 +1511,36 @@ function jn(e) {
1548
1511
  return "";
1549
1512
  }), t;
1550
1513
  }
1551
- var kn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1552
- function Vn(e) {
1514
+ var Cn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1515
+ function Ln(e) {
1553
1516
  if (e.length === 0)
1554
1517
  throw new Error("Number skeleton cannot be empty");
1555
- for (var t = e.split(kn).filter(function(f) {
1518
+ for (var t = e.split(Cn).filter(function(f) {
1556
1519
  return f.length > 0;
1557
1520
  }), r = [], n = 0, i = t; n < i.length; n++) {
1558
- var s = i[n], o = s.split("/");
1559
- if (o.length === 0)
1521
+ var s = i[n], a = s.split("/");
1522
+ if (a.length === 0)
1560
1523
  throw new Error("Invalid number skeleton");
1561
- for (var a = o[0], l = o.slice(1), u = 0, h = l; u < h.length; u++) {
1524
+ for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
1562
1525
  var c = h[u];
1563
1526
  if (c.length === 0)
1564
1527
  throw new Error("Invalid number skeleton");
1565
1528
  }
1566
- r.push({ stem: a, options: l });
1529
+ r.push({ stem: o, options: l });
1567
1530
  }
1568
1531
  return r;
1569
1532
  }
1570
- function Xn(e) {
1533
+ function Nn(e) {
1571
1534
  return e.replace(/^(.*?)-/, "");
1572
1535
  }
1573
- var xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, lr = /^(@+)?(\+|#+)?[rs]?$/g, Wn = /(\*)(0+)|(#+)(0+)|(0+)/g, hr = /^(0+)$/;
1574
- function St(e) {
1536
+ var bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, nr = /^(@+)?(\+|#+)?[rs]?$/g, Mn = /(\*)(0+)|(#+)(0+)|(0+)/g, ir = /^(0+)$/;
1537
+ function yt(e) {
1575
1538
  var t = {};
1576
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(lr, function(r, n, i) {
1539
+ return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(nr, function(r, n, i) {
1577
1540
  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)), "";
1578
1541
  }), t;
1579
1542
  }
1580
- function fr(e) {
1543
+ function sr(e) {
1581
1544
  switch (e) {
1582
1545
  case "sign-auto":
1583
1546
  return {
@@ -1617,7 +1580,7 @@ function fr(e) {
1617
1580
  };
1618
1581
  }
1619
1582
  }
1620
- function zn(e) {
1583
+ function Rn(e) {
1621
1584
  var t;
1622
1585
  if (e[0] === "E" && e[1] === "E" ? (t = {
1623
1586
  notation: "engineering"
@@ -1625,17 +1588,17 @@ function zn(e) {
1625
1588
  notation: "scientific"
1626
1589
  }, e = e.slice(1)), t) {
1627
1590
  var r = e.slice(0, 2);
1628
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !hr.test(e))
1591
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !ir.test(e))
1629
1592
  throw new Error("Malformed concise eng/scientific notation");
1630
1593
  t.minimumIntegerDigits = e.length;
1631
1594
  }
1632
1595
  return t;
1633
1596
  }
1634
- function wt(e) {
1635
- var t = {}, r = fr(e);
1597
+ function gt(e) {
1598
+ var t = {}, r = sr(e);
1636
1599
  return r || t;
1637
1600
  }
1638
- function qn(e) {
1601
+ function $n(e) {
1639
1602
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1640
1603
  var i = n[r];
1641
1604
  switch (i.stem) {
@@ -1659,7 +1622,7 @@ function qn(e) {
1659
1622
  continue;
1660
1623
  case "measure-unit":
1661
1624
  case "unit":
1662
- t.style = "unit", t.unit = Xn(i.options[0]);
1625
+ t.style = "unit", t.unit = Nn(i.options[0]);
1663
1626
  continue;
1664
1627
  case "compact-short":
1665
1628
  case "K":
@@ -1671,12 +1634,12 @@ function qn(e) {
1671
1634
  continue;
1672
1635
  case "scientific":
1673
1636
  t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1674
- return v(v({}, l), wt(u));
1637
+ return v(v({}, l), gt(u));
1675
1638
  }, {}));
1676
1639
  continue;
1677
1640
  case "engineering":
1678
1641
  t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1679
- return v(v({}, l), wt(u));
1642
+ return v(v({}, l), gt(u));
1680
1643
  }, {}));
1681
1644
  continue;
1682
1645
  case "notation-simple":
@@ -1721,7 +1684,7 @@ function qn(e) {
1721
1684
  case "integer-width":
1722
1685
  if (i.options.length > 1)
1723
1686
  throw new RangeError("integer-width stems only accept a single optional option");
1724
- i.options[0].replace(Wn, function(l, u, h, c, f, p) {
1687
+ i.options[0].replace(Mn, function(l, u, h, c, f, p) {
1725
1688
  if (u)
1726
1689
  t.minimumIntegerDigits = h.length;
1727
1690
  else {
@@ -1734,32 +1697,32 @@ function qn(e) {
1734
1697
  });
1735
1698
  continue;
1736
1699
  }
1737
- if (hr.test(i.stem)) {
1700
+ if (ir.test(i.stem)) {
1738
1701
  t.minimumIntegerDigits = i.stem.length;
1739
1702
  continue;
1740
1703
  }
1741
- if (xt.test(i.stem)) {
1704
+ if (bt.test(i.stem)) {
1742
1705
  if (i.options.length > 1)
1743
1706
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1744
- i.stem.replace(xt, function(l, u, h, c, f, p) {
1707
+ i.stem.replace(bt, function(l, u, h, c, f, p) {
1745
1708
  return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1746
1709
  });
1747
1710
  var s = i.options[0];
1748
- s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), St(s)));
1711
+ s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), yt(s)));
1749
1712
  continue;
1750
1713
  }
1751
- if (lr.test(i.stem)) {
1752
- t = v(v({}, t), St(i.stem));
1714
+ if (nr.test(i.stem)) {
1715
+ t = v(v({}, t), yt(i.stem));
1753
1716
  continue;
1754
1717
  }
1755
- var o = fr(i.stem);
1756
- o && (t = v(v({}, t), o));
1757
- var a = zn(i.stem);
1718
+ var a = sr(i.stem);
1758
1719
  a && (t = v(v({}, t), a));
1720
+ var o = Rn(i.stem);
1721
+ o && (t = v(v({}, t), o));
1759
1722
  }
1760
1723
  return t;
1761
1724
  }
1762
- var ye = {
1725
+ var be = {
1763
1726
  "001": [
1764
1727
  "H",
1765
1728
  "h"
@@ -3174,22 +3137,22 @@ var ye = {
3174
3137
  "h"
3175
3138
  ]
3176
3139
  };
3177
- function Zn(e, t) {
3140
+ function Dn(e, t) {
3178
3141
  for (var r = "", n = 0; n < e.length; n++) {
3179
3142
  var i = e.charAt(n);
3180
3143
  if (i === "j") {
3181
3144
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3182
3145
  s++, n++;
3183
- var o = 1 + (s & 1), a = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Qn(t);
3184
- for ((u == "H" || u == "k") && (a = 0); a-- > 0; )
3146
+ var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = Un(t);
3147
+ for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
3185
3148
  r += l;
3186
- for (; o-- > 0; )
3149
+ for (; a-- > 0; )
3187
3150
  r = u + r;
3188
3151
  } else i === "J" ? r += "H" : r += i;
3189
3152
  }
3190
3153
  return r;
3191
3154
  }
3192
- function Qn(e) {
3155
+ function Un(e) {
3193
3156
  var t = e.hourCycle;
3194
3157
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3195
3158
  e.hourCycles && // @ts-ignore
@@ -3208,23 +3171,23 @@ function Qn(e) {
3208
3171
  }
3209
3172
  var r = e.language, n;
3210
3173
  r !== "root" && (n = e.maximize().region);
3211
- var i = ye[n || ""] || ye[r || ""] || ye["".concat(r, "-001")] || ye["001"];
3174
+ var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
3212
3175
  return i[0];
3213
3176
  }
3214
- var Re, Jn = new RegExp("^".concat(ur.source, "*")), Yn = new RegExp("".concat(ur.source, "*$"));
3177
+ var Ne, Gn = new RegExp("^".concat(rr.source, "*")), Fn = new RegExp("".concat(rr.source, "*$"));
3215
3178
  function g(e, t) {
3216
3179
  return { start: e, end: t };
3217
3180
  }
3218
- var Kn = !!String.prototype.startsWith && "_a".startsWith("a", 1), ei = !!String.fromCodePoint, ti = !!Object.fromEntries, ri = !!String.prototype.codePointAt, ni = !!String.prototype.trimStart, ii = !!String.prototype.trimEnd, si = !!Number.isSafeInteger, oi = si ? Number.isSafeInteger : function(e) {
3181
+ var jn = !!String.prototype.startsWith && "_a".startsWith("a", 1), kn = !!String.fromCodePoint, Vn = !!Object.fromEntries, Xn = !!String.prototype.codePointAt, Wn = !!String.prototype.trimStart, zn = !!String.prototype.trimEnd, qn = !!Number.isSafeInteger, Zn = qn ? Number.isSafeInteger : function(e) {
3219
3182
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3220
- }, qe = !0;
3183
+ }, We = !0;
3221
3184
  try {
3222
- var ai = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3223
- qe = ((Re = ai.exec("a")) === null || Re === void 0 ? void 0 : Re[0]) === "a";
3224
- } catch (e) {
3225
- qe = !1;
3185
+ var Qn = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3186
+ We = ((Ne = Qn.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
3187
+ } catch {
3188
+ We = !1;
3226
3189
  }
3227
- var Tt = Kn ? (
3190
+ var _t = jn ? (
3228
3191
  // Native
3229
3192
  function(t, r, n) {
3230
3193
  return t.startsWith(r, n);
@@ -3234,31 +3197,31 @@ var Tt = Kn ? (
3234
3197
  function(t, r, n) {
3235
3198
  return t.slice(n, n + r.length) === r;
3236
3199
  }
3237
- ), Ze = ei ? String.fromCodePoint : (
3200
+ ), ze = kn ? String.fromCodePoint : (
3238
3201
  // IE11
3239
3202
  function() {
3240
3203
  for (var t = [], r = 0; r < arguments.length; r++)
3241
3204
  t[r] = arguments[r];
3242
- for (var n = "", i = t.length, s = 0, o; i > s; ) {
3243
- if (o = t[s++], o > 1114111)
3244
- throw RangeError(o + " is not a valid code point");
3245
- n += o < 65536 ? String.fromCharCode(o) : String.fromCharCode(((o -= 65536) >> 10) + 55296, o % 1024 + 56320);
3205
+ for (var n = "", i = t.length, s = 0, a; i > s; ) {
3206
+ if (a = t[s++], a > 1114111)
3207
+ throw RangeError(a + " is not a valid code point");
3208
+ n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
3246
3209
  }
3247
3210
  return n;
3248
3211
  }
3249
- ), Ht = (
3212
+ ), vt = (
3250
3213
  // native
3251
- ti ? Object.fromEntries : (
3214
+ Vn ? Object.fromEntries : (
3252
3215
  // Ponyfill
3253
3216
  function(t) {
3254
3217
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
3255
- var s = i[n], o = s[0], a = s[1];
3256
- r[o] = a;
3218
+ var s = i[n], a = s[0], o = s[1];
3219
+ r[a] = o;
3257
3220
  }
3258
3221
  return r;
3259
3222
  }
3260
3223
  )
3261
- ), cr = ri ? (
3224
+ ), or = Xn ? (
3262
3225
  // Native
3263
3226
  function(t, r) {
3264
3227
  return t.codePointAt(r);
@@ -3272,7 +3235,7 @@ var Tt = Kn ? (
3272
3235
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
3273
3236
  }
3274
3237
  }
3275
- ), ui = ni ? (
3238
+ ), Jn = Wn ? (
3276
3239
  // Native
3277
3240
  function(t) {
3278
3241
  return t.trimStart();
@@ -3280,9 +3243,9 @@ var Tt = Kn ? (
3280
3243
  ) : (
3281
3244
  // Ponyfill
3282
3245
  function(t) {
3283
- return t.replace(Jn, "");
3246
+ return t.replace(Gn, "");
3284
3247
  }
3285
- ), li = ii ? (
3248
+ ), Yn = zn ? (
3286
3249
  // Native
3287
3250
  function(t) {
3288
3251
  return t.trimEnd();
@@ -3290,32 +3253,32 @@ var Tt = Kn ? (
3290
3253
  ) : (
3291
3254
  // Ponyfill
3292
3255
  function(t) {
3293
- return t.replace(Yn, "");
3256
+ return t.replace(Fn, "");
3294
3257
  }
3295
3258
  );
3296
- function dr(e, t) {
3259
+ function ar(e, t) {
3297
3260
  return new RegExp(e, t);
3298
3261
  }
3299
- var Qe;
3300
- if (qe) {
3301
- var Bt = dr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3302
- Qe = function(t, r) {
3262
+ var qe;
3263
+ if (We) {
3264
+ var Et = ar("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3265
+ qe = function(t, r) {
3303
3266
  var n;
3304
- Bt.lastIndex = r;
3305
- var i = Bt.exec(t);
3267
+ Et.lastIndex = r;
3268
+ var i = Et.exec(t);
3306
3269
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3307
3270
  };
3308
3271
  } else
3309
- Qe = function(t, r) {
3272
+ qe = function(t, r) {
3310
3273
  for (var n = []; ; ) {
3311
- var i = cr(t, r);
3312
- if (i === void 0 || pr(i) || di(i))
3274
+ var i = or(t, r);
3275
+ if (i === void 0 || ur(i) || ri(i))
3313
3276
  break;
3314
3277
  n.push(i), r += i >= 65536 ? 2 : 1;
3315
3278
  }
3316
- return Ze.apply(void 0, n);
3279
+ return ze.apply(void 0, n);
3317
3280
  };
3318
- var hi = (
3281
+ var Kn = (
3319
3282
  /** @class */
3320
3283
  function() {
3321
3284
  function e(t, r) {
@@ -3329,33 +3292,33 @@ var hi = (
3329
3292
  for (var i = []; !this.isEOF(); ) {
3330
3293
  var s = this.char();
3331
3294
  if (s === 123) {
3332
- var o = this.parseArgument(t, n);
3333
- if (o.err)
3334
- return o;
3335
- i.push(o.val);
3295
+ var a = this.parseArgument(t, n);
3296
+ if (a.err)
3297
+ return a;
3298
+ i.push(a.val);
3336
3299
  } else {
3337
3300
  if (s === 125 && t > 0)
3338
3301
  break;
3339
3302
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
3340
- var a = this.clonePosition();
3303
+ var o = this.clonePosition();
3341
3304
  this.bump(), i.push({
3342
3305
  type: x.pound,
3343
- location: g(a, this.clonePosition())
3306
+ location: g(o, this.clonePosition())
3344
3307
  });
3345
3308
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
3346
3309
  if (n)
3347
3310
  break;
3348
3311
  return this.error(y.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
3349
- } else if (s === 60 && !this.ignoreTag && Je(this.peek() || 0)) {
3350
- var o = this.parseTag(t, r);
3351
- if (o.err)
3352
- return o;
3353
- i.push(o.val);
3312
+ } else if (s === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
3313
+ var a = this.parseTag(t, r);
3314
+ if (a.err)
3315
+ return a;
3316
+ i.push(a.val);
3354
3317
  } else {
3355
- var o = this.parseLiteral(t, r);
3356
- if (o.err)
3357
- return o;
3358
- i.push(o.val);
3318
+ var a = this.parseLiteral(t, r);
3319
+ if (a.err)
3320
+ return a;
3321
+ i.push(a.val);
3359
3322
  }
3360
3323
  }
3361
3324
  }
@@ -3377,27 +3340,27 @@ var hi = (
3377
3340
  var s = this.parseMessage(t + 1, r, !0);
3378
3341
  if (s.err)
3379
3342
  return s;
3380
- var o = s.val, a = this.clonePosition();
3343
+ var a = s.val, o = this.clonePosition();
3381
3344
  if (this.bumpIf("</")) {
3382
- if (this.isEOF() || !Je(this.char()))
3383
- return this.error(y.INVALID_TAG, g(a, this.clonePosition()));
3345
+ if (this.isEOF() || !Ze(this.char()))
3346
+ return this.error(y.INVALID_TAG, g(o, this.clonePosition()));
3384
3347
  var l = this.clonePosition(), u = this.parseTagName();
3385
3348
  return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3386
3349
  val: {
3387
3350
  type: x.tag,
3388
3351
  value: i,
3389
- children: o,
3352
+ children: a,
3390
3353
  location: g(n, this.clonePosition())
3391
3354
  },
3392
3355
  err: null
3393
- } : this.error(y.INVALID_TAG, g(a, this.clonePosition())));
3356
+ } : this.error(y.INVALID_TAG, g(o, this.clonePosition())));
3394
3357
  } else
3395
3358
  return this.error(y.UNCLOSED_TAG, g(n, this.clonePosition()));
3396
3359
  } else
3397
3360
  return this.error(y.INVALID_TAG, g(n, this.clonePosition()));
3398
3361
  }, e.prototype.parseTagName = function() {
3399
3362
  var t = this.offset();
3400
- for (this.bump(); !this.isEOF() && ci(this.char()); )
3363
+ for (this.bump(); !this.isEOF() && ti(this.char()); )
3401
3364
  this.bump();
3402
3365
  return this.message.slice(t, this.offset());
3403
3366
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3407,16 +3370,16 @@ var hi = (
3407
3370
  i += s;
3408
3371
  continue;
3409
3372
  }
3410
- var o = this.tryParseUnquoted(t, r);
3411
- if (o) {
3412
- i += o;
3413
- continue;
3414
- }
3415
- var a = this.tryParseLeftAngleBracket();
3373
+ var a = this.tryParseUnquoted(t, r);
3416
3374
  if (a) {
3417
3375
  i += a;
3418
3376
  continue;
3419
3377
  }
3378
+ var o = this.tryParseLeftAngleBracket();
3379
+ if (o) {
3380
+ i += o;
3381
+ continue;
3382
+ }
3420
3383
  break;
3421
3384
  }
3422
3385
  var l = g(n, this.clonePosition());
@@ -3426,7 +3389,7 @@ var hi = (
3426
3389
  };
3427
3390
  }, e.prototype.tryParseLeftAngleBracket = function() {
3428
3391
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3429
- !fi(this.peek() || 0)) ? (this.bump(), "<") : null;
3392
+ !ei(this.peek() || 0)) ? (this.bump(), "<") : null;
3430
3393
  }, e.prototype.tryParseQuote = function(t) {
3431
3394
  if (this.isEOF() || this.char() !== 39)
3432
3395
  return null;
@@ -3460,12 +3423,12 @@ var hi = (
3460
3423
  r.push(n);
3461
3424
  this.bump();
3462
3425
  }
3463
- return Ze.apply(void 0, r);
3426
+ return ze.apply(void 0, r);
3464
3427
  }, e.prototype.tryParseUnquoted = function(t, r) {
3465
3428
  if (this.isEOF())
3466
3429
  return null;
3467
3430
  var n = this.char();
3468
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ze(n));
3431
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ze(n));
3469
3432
  }, e.prototype.parseArgument = function(t, r) {
3470
3433
  var n = this.clonePosition();
3471
3434
  if (this.bump(), this.bumpSpace(), this.isEOF())
@@ -3494,15 +3457,15 @@ var hi = (
3494
3457
  return this.error(y.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
3495
3458
  }
3496
3459
  }, e.prototype.parseIdentifierIfPossible = function() {
3497
- var t = this.clonePosition(), r = this.offset(), n = Qe(this.message, r), i = r + n.length;
3460
+ var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
3498
3461
  this.bumpTo(i);
3499
- var s = this.clonePosition(), o = g(t, s);
3500
- return { value: n, location: o };
3462
+ var s = this.clonePosition(), a = g(t, s);
3463
+ return { value: n, location: a };
3501
3464
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3502
- var s, o = this.clonePosition(), a = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3503
- switch (a) {
3465
+ var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3466
+ switch (o) {
3504
3467
  case "":
3505
- return this.error(y.EXPECT_ARGUMENT_TYPE, g(o, l));
3468
+ return this.error(y.EXPECT_ARGUMENT_TYPE, g(a, l));
3506
3469
  case "number":
3507
3470
  case "date":
3508
3471
  case "time": {
@@ -3513,7 +3476,7 @@ var hi = (
3513
3476
  var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3514
3477
  if (c.err)
3515
3478
  return c;
3516
- var f = li(c.val);
3479
+ var f = Yn(c.val);
3517
3480
  if (f.length === 0)
3518
3481
  return this.error(y.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
3519
3482
  var p = g(h, this.clonePosition());
@@ -3523,9 +3486,9 @@ var hi = (
3523
3486
  if (b.err)
3524
3487
  return b;
3525
3488
  var _ = g(i, this.clonePosition());
3526
- if (u && Tt(u == null ? void 0 : u.style, "::", 0)) {
3527
- var S = ui(u.style.slice(2));
3528
- if (a === "number") {
3489
+ if (u && _t(u?.style, "::", 0)) {
3490
+ var S = Jn(u.style.slice(2));
3491
+ if (o === "number") {
3529
3492
  var c = this.parseNumberSkeletonFromString(S, u.styleLocation);
3530
3493
  return c.err ? c : {
3531
3494
  val: { type: x.number, value: n, location: _, style: c.val },
@@ -3534,26 +3497,26 @@ var hi = (
3534
3497
  } else {
3535
3498
  if (S.length === 0)
3536
3499
  return this.error(y.EXPECT_DATE_TIME_SKELETON, _);
3537
- var O = S;
3538
- this.locale && (O = Zn(S, this.locale));
3500
+ var A = S;
3501
+ this.locale && (A = Dn(S, this.locale));
3539
3502
  var f = {
3540
- type: te.dateTime,
3541
- pattern: O,
3503
+ type: ee.dateTime,
3504
+ pattern: A,
3542
3505
  location: u.styleLocation,
3543
- parsedOptions: this.shouldParseSkeletons ? jn(O) : {}
3544
- }, P = a === "date" ? x.date : x.time;
3506
+ parsedOptions: this.shouldParseSkeletons ? In(A) : {}
3507
+ }, H = o === "date" ? x.date : x.time;
3545
3508
  return {
3546
- val: { type: P, value: n, location: _, style: f },
3509
+ val: { type: H, value: n, location: _, style: f },
3547
3510
  err: null
3548
3511
  };
3549
3512
  }
3550
3513
  }
3551
3514
  return {
3552
3515
  val: {
3553
- type: a === "number" ? x.number : a === "date" ? x.date : x.time,
3516
+ type: o === "number" ? x.number : o === "date" ? x.date : x.time,
3554
3517
  value: n,
3555
3518
  location: _,
3556
- style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
3519
+ style: (s = u?.style) !== null && s !== void 0 ? s : null
3557
3520
  },
3558
3521
  err: null
3559
3522
  };
@@ -3561,32 +3524,32 @@ var hi = (
3561
3524
  case "plural":
3562
3525
  case "selectordinal":
3563
3526
  case "select": {
3564
- var H = this.clonePosition();
3527
+ var w = this.clonePosition();
3565
3528
  if (this.bumpSpace(), !this.bumpIf(","))
3566
- return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, g(H, v({}, H)));
3529
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, g(w, v({}, w)));
3567
3530
  this.bumpSpace();
3568
- var R = this.parseIdentifierIfPossible(), I = 0;
3569
- if (a !== "select" && R.value === "offset") {
3531
+ var M = this.parseIdentifierIfPossible(), O = 0;
3532
+ if (o !== "select" && M.value === "offset") {
3570
3533
  if (!this.bumpIf(":"))
3571
3534
  return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
3572
3535
  this.bumpSpace();
3573
3536
  var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3574
3537
  if (c.err)
3575
3538
  return c;
3576
- this.bumpSpace(), R = this.parseIdentifierIfPossible(), I = c.val;
3539
+ this.bumpSpace(), M = this.parseIdentifierIfPossible(), O = c.val;
3577
3540
  }
3578
- var $ = this.tryParsePluralOrSelectOptions(t, a, r, R);
3579
- if ($.err)
3580
- return $;
3541
+ var R = this.tryParsePluralOrSelectOptions(t, o, r, M);
3542
+ if (R.err)
3543
+ return R;
3581
3544
  var b = this.tryParseArgumentClose(i);
3582
3545
  if (b.err)
3583
3546
  return b;
3584
3547
  var E = g(i, this.clonePosition());
3585
- return a === "select" ? {
3548
+ return o === "select" ? {
3586
3549
  val: {
3587
3550
  type: x.select,
3588
3551
  value: n,
3589
- options: Ht($.val),
3552
+ options: vt(R.val),
3590
3553
  location: E
3591
3554
  },
3592
3555
  err: null
@@ -3594,16 +3557,16 @@ var hi = (
3594
3557
  val: {
3595
3558
  type: x.plural,
3596
3559
  value: n,
3597
- options: Ht($.val),
3598
- offset: I,
3599
- pluralType: a === "plural" ? "cardinal" : "ordinal",
3560
+ options: vt(R.val),
3561
+ offset: O,
3562
+ pluralType: o === "plural" ? "cardinal" : "ordinal",
3600
3563
  location: E
3601
3564
  },
3602
3565
  err: null
3603
3566
  };
3604
3567
  }
3605
3568
  default:
3606
- return this.error(y.INVALID_ARGUMENT_TYPE, g(o, l));
3569
+ return this.error(y.INVALID_ARGUMENT_TYPE, g(a, l));
3607
3570
  }
3608
3571
  }, e.prototype.tryParseArgumentClose = function(t) {
3609
3572
  return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
@@ -3645,21 +3608,21 @@ var hi = (
3645
3608
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3646
3609
  var n = [];
3647
3610
  try {
3648
- n = Vn(t);
3649
- } catch (i) {
3611
+ n = Ln(t);
3612
+ } catch {
3650
3613
  return this.error(y.INVALID_NUMBER_SKELETON, r);
3651
3614
  }
3652
3615
  return {
3653
3616
  val: {
3654
- type: te.number,
3617
+ type: ee.number,
3655
3618
  tokens: n,
3656
3619
  location: r,
3657
- parsedOptions: this.shouldParseSkeletons ? qn(n) : {}
3620
+ parsedOptions: this.shouldParseSkeletons ? $n(n) : {}
3658
3621
  },
3659
3622
  err: null
3660
3623
  };
3661
3624
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3662
- for (var s, o = !1, a = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3625
+ for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3663
3626
  if (u.length === 0) {
3664
3627
  var c = this.clonePosition();
3665
3628
  if (r !== "select" && this.bumpIf("=")) {
@@ -3672,7 +3635,7 @@ var hi = (
3672
3635
  }
3673
3636
  if (l.has(u))
3674
3637
  return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3675
- u === "other" && (o = !0), this.bumpSpace();
3638
+ u === "other" && (a = !0), this.bumpSpace();
3676
3639
  var p = this.clonePosition();
3677
3640
  if (!this.bumpIf("{"))
3678
3641
  return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
@@ -3682,7 +3645,7 @@ var hi = (
3682
3645
  var _ = this.tryParseArgumentClose(p);
3683
3646
  if (_.err)
3684
3647
  return _;
3685
- a.push([
3648
+ o.push([
3686
3649
  u,
3687
3650
  {
3688
3651
  value: b.val,
@@ -3690,19 +3653,19 @@ var hi = (
3690
3653
  }
3691
3654
  ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
3692
3655
  }
3693
- return a.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !o ? this.error(y.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: a, err: null };
3656
+ return o.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, g(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(y.MISSING_OTHER_CLAUSE, g(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3694
3657
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3695
3658
  var n = 1, i = this.clonePosition();
3696
3659
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3697
- for (var s = !1, o = 0; !this.isEOF(); ) {
3698
- var a = this.char();
3699
- if (a >= 48 && a <= 57)
3700
- s = !0, o = o * 10 + (a - 48), this.bump();
3660
+ for (var s = !1, a = 0; !this.isEOF(); ) {
3661
+ var o = this.char();
3662
+ if (o >= 48 && o <= 57)
3663
+ s = !0, a = a * 10 + (o - 48), this.bump();
3701
3664
  else
3702
3665
  break;
3703
3666
  }
3704
3667
  var l = g(i, this.clonePosition());
3705
- return s ? (o *= n, oi(o) ? { val: o, err: null } : this.error(r, l)) : this.error(t, l);
3668
+ return s ? (a *= n, Zn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3706
3669
  }, e.prototype.offset = function() {
3707
3670
  return this.position.offset;
3708
3671
  }, e.prototype.isEOF = function() {
@@ -3717,7 +3680,7 @@ var hi = (
3717
3680
  var t = this.position.offset;
3718
3681
  if (t >= this.message.length)
3719
3682
  throw Error("out of bound");
3720
- var r = cr(this.message, t);
3683
+ var r = or(this.message, t);
3721
3684
  if (r === void 0)
3722
3685
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3723
3686
  return r;
@@ -3736,7 +3699,7 @@ var hi = (
3736
3699
  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);
3737
3700
  }
3738
3701
  }, e.prototype.bumpIf = function(t) {
3739
- if (Tt(this.message, t, this.offset())) {
3702
+ if (_t(this.message, t, this.offset())) {
3740
3703
  for (var r = 0; r < t.length; r++)
3741
3704
  this.bump();
3742
3705
  return !0;
@@ -3758,56 +3721,56 @@ var hi = (
3758
3721
  break;
3759
3722
  }
3760
3723
  }, e.prototype.bumpSpace = function() {
3761
- for (; !this.isEOF() && pr(this.char()); )
3724
+ for (; !this.isEOF() && ur(this.char()); )
3762
3725
  this.bump();
3763
3726
  }, e.prototype.peek = function() {
3764
3727
  if (this.isEOF())
3765
3728
  return null;
3766
3729
  var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3767
- return n != null ? n : null;
3730
+ return n ?? null;
3768
3731
  }, e;
3769
3732
  }()
3770
3733
  );
3771
- function Je(e) {
3734
+ function Ze(e) {
3772
3735
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3773
3736
  }
3774
- function fi(e) {
3775
- return Je(e) || e === 47;
3737
+ function ei(e) {
3738
+ return Ze(e) || e === 47;
3776
3739
  }
3777
- function ci(e) {
3740
+ function ti(e) {
3778
3741
  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;
3779
3742
  }
3780
- function pr(e) {
3743
+ function ur(e) {
3781
3744
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3782
3745
  }
3783
- function di(e) {
3746
+ function ri(e) {
3784
3747
  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;
3785
3748
  }
3786
- function Ye(e) {
3749
+ function Qe(e) {
3787
3750
  e.forEach(function(t) {
3788
- if (delete t.location, ir(t) || sr(t))
3751
+ if (delete t.location, Yt(t) || Kt(t))
3789
3752
  for (var r in t.options)
3790
- delete t.options[r].location, Ye(t.options[r].value);
3791
- else tr(t) && ar(t.style) || (rr(t) || nr(t)) && ze(t.style) ? delete t.style.location : or(t) && Ye(t.children);
3753
+ delete t.options[r].location, Qe(t.options[r].value);
3754
+ else Zt(t) && tr(t.style) || (Qt(t) || Jt(t)) && Xe(t.style) ? delete t.style.location : er(t) && Qe(t.children);
3792
3755
  });
3793
3756
  }
3794
- function pi(e, t) {
3757
+ function ni(e, t) {
3795
3758
  t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3796
- var r = new hi(e, t).parse();
3759
+ var r = new Kn(e, t).parse();
3797
3760
  if (r.err) {
3798
3761
  var n = SyntaxError(y[r.err.kind]);
3799
3762
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3800
3763
  }
3801
- return t != null && t.captureLocation || Ye(r.val), r.val;
3764
+ return t?.captureLocation || Qe(r.val), r.val;
3802
3765
  }
3803
- var re;
3766
+ var te;
3804
3767
  (function(e) {
3805
3768
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3806
- })(re || (re = {}));
3807
- var Pe = (
3769
+ })(te || (te = {}));
3770
+ var Be = (
3808
3771
  /** @class */
3809
3772
  function(e) {
3810
- F(t, e);
3773
+ G(t, e);
3811
3774
  function t(r, n, i) {
3812
3775
  var s = e.call(this, r) || this;
3813
3776
  return s.code = n, s.originalMessage = i, s;
@@ -3816,155 +3779,155 @@ var Pe = (
3816
3779
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3817
3780
  }, t;
3818
3781
  }(Error)
3819
- ), Pt = (
3782
+ ), xt = (
3820
3783
  /** @class */
3821
3784
  function(e) {
3822
- F(t, e);
3785
+ G(t, e);
3823
3786
  function t(r, n, i, s) {
3824
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, s) || this;
3787
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, s) || this;
3825
3788
  }
3826
3789
  return t;
3827
- }(Pe)
3828
- ), mi = (
3790
+ }(Be)
3791
+ ), ii = (
3829
3792
  /** @class */
3830
3793
  function(e) {
3831
- F(t, e);
3794
+ G(t, e);
3832
3795
  function t(r, n, i) {
3833
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
3796
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
3834
3797
  }
3835
3798
  return t;
3836
- }(Pe)
3837
- ), bi = (
3799
+ }(Be)
3800
+ ), si = (
3838
3801
  /** @class */
3839
3802
  function(e) {
3840
- F(t, e);
3803
+ G(t, e);
3841
3804
  function t(r, n) {
3842
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.MISSING_VALUE, n) || this;
3805
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
3843
3806
  }
3844
3807
  return t;
3845
- }(Pe)
3846
- ), B;
3808
+ }(Be)
3809
+ ), T;
3847
3810
  (function(e) {
3848
3811
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3849
- })(B || (B = {}));
3850
- function yi(e) {
3812
+ })(T || (T = {}));
3813
+ function oi(e) {
3851
3814
  return e.length < 2 ? e : e.reduce(function(t, r) {
3852
3815
  var n = t[t.length - 1];
3853
- return !n || n.type !== B.literal || r.type !== B.literal ? t.push(r) : n.value += r.value, t;
3816
+ return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
3854
3817
  }, []);
3855
3818
  }
3856
- function gi(e) {
3819
+ function ai(e) {
3857
3820
  return typeof e == "function";
3858
3821
  }
3859
- function Ee(e, t, r, n, i, s, o) {
3860
- if (e.length === 1 && Et(e[0]))
3822
+ function ve(e, t, r, n, i, s, a) {
3823
+ if (e.length === 1 && mt(e[0]))
3861
3824
  return [
3862
3825
  {
3863
- type: B.literal,
3826
+ type: T.literal,
3864
3827
  value: e[0].value
3865
3828
  }
3866
3829
  ];
3867
- for (var a = [], l = 0, u = e; l < u.length; l++) {
3830
+ for (var o = [], l = 0, u = e; l < u.length; l++) {
3868
3831
  var h = u[l];
3869
- if (Et(h)) {
3870
- a.push({
3871
- type: B.literal,
3832
+ if (mt(h)) {
3833
+ o.push({
3834
+ type: T.literal,
3872
3835
  value: h.value
3873
3836
  });
3874
3837
  continue;
3875
3838
  }
3876
- if (Gn(h)) {
3877
- typeof s == "number" && a.push({
3878
- type: B.literal,
3839
+ if (An(h)) {
3840
+ typeof s == "number" && o.push({
3841
+ type: T.literal,
3879
3842
  value: r.getNumberFormat(t).format(s)
3880
3843
  });
3881
3844
  continue;
3882
3845
  }
3883
3846
  var c = h.value;
3884
3847
  if (!(i && c in i))
3885
- throw new bi(c, o);
3848
+ throw new si(c, a);
3886
3849
  var f = i[c];
3887
- if (Un(h)) {
3888
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), a.push({
3889
- type: typeof f == "string" ? B.literal : B.object,
3850
+ if (Pn(h)) {
3851
+ (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
3852
+ type: typeof f == "string" ? T.literal : T.object,
3890
3853
  value: f
3891
3854
  });
3892
3855
  continue;
3893
3856
  }
3894
- if (rr(h)) {
3895
- var p = typeof h.style == "string" ? n.date[h.style] : ze(h.style) ? h.style.parsedOptions : void 0;
3896
- a.push({
3897
- type: B.literal,
3857
+ if (Qt(h)) {
3858
+ var p = typeof h.style == "string" ? n.date[h.style] : Xe(h.style) ? h.style.parsedOptions : void 0;
3859
+ o.push({
3860
+ type: T.literal,
3898
3861
  value: r.getDateTimeFormat(t, p).format(f)
3899
3862
  });
3900
3863
  continue;
3901
3864
  }
3902
- if (nr(h)) {
3903
- var p = typeof h.style == "string" ? n.time[h.style] : ze(h.style) ? h.style.parsedOptions : n.time.medium;
3904
- a.push({
3905
- type: B.literal,
3865
+ if (Jt(h)) {
3866
+ var p = typeof h.style == "string" ? n.time[h.style] : Xe(h.style) ? h.style.parsedOptions : n.time.medium;
3867
+ o.push({
3868
+ type: T.literal,
3906
3869
  value: r.getDateTimeFormat(t, p).format(f)
3907
3870
  });
3908
3871
  continue;
3909
3872
  }
3910
- if (tr(h)) {
3911
- var p = typeof h.style == "string" ? n.number[h.style] : ar(h.style) ? h.style.parsedOptions : void 0;
3912
- p && p.scale && (f = f * (p.scale || 1)), a.push({
3913
- type: B.literal,
3873
+ if (Zt(h)) {
3874
+ var p = typeof h.style == "string" ? n.number[h.style] : tr(h.style) ? h.style.parsedOptions : void 0;
3875
+ p && p.scale && (f = f * (p.scale || 1)), o.push({
3876
+ type: T.literal,
3914
3877
  value: r.getNumberFormat(t, p).format(f)
3915
3878
  });
3916
3879
  continue;
3917
3880
  }
3918
- if (or(h)) {
3881
+ if (er(h)) {
3919
3882
  var b = h.children, _ = h.value, S = i[_];
3920
- if (!gi(S))
3921
- throw new mi(_, "function", o);
3922
- var O = Ee(b, t, r, n, i, s), P = S(O.map(function(I) {
3923
- return I.value;
3883
+ if (!ai(S))
3884
+ throw new ii(_, "function", a);
3885
+ var A = ve(b, t, r, n, i, s), H = S(A.map(function(O) {
3886
+ return O.value;
3924
3887
  }));
3925
- Array.isArray(P) || (P = [P]), a.push.apply(a, P.map(function(I) {
3888
+ Array.isArray(H) || (H = [H]), o.push.apply(o, H.map(function(O) {
3926
3889
  return {
3927
- type: typeof I == "string" ? B.literal : B.object,
3928
- value: I
3890
+ type: typeof O == "string" ? T.literal : T.object,
3891
+ value: O
3929
3892
  };
3930
3893
  }));
3931
3894
  }
3932
- if (ir(h)) {
3933
- var H = h.options[f] || h.options.other;
3934
- if (!H)
3935
- throw new Pt(h.value, f, Object.keys(h.options), o);
3936
- a.push.apply(a, Ee(H.value, t, r, n, i));
3895
+ if (Yt(h)) {
3896
+ var w = h.options[f] || h.options.other;
3897
+ if (!w)
3898
+ throw new xt(h.value, f, Object.keys(h.options), a);
3899
+ o.push.apply(o, ve(w.value, t, r, n, i));
3937
3900
  continue;
3938
3901
  }
3939
- if (sr(h)) {
3940
- var H = h.options["=".concat(f)];
3941
- if (!H) {
3902
+ if (Kt(h)) {
3903
+ var w = h.options["=".concat(f)];
3904
+ if (!w) {
3942
3905
  if (!Intl.PluralRules)
3943
- throw new Pe(`Intl.PluralRules is not available in this environment.
3906
+ throw new Be(`Intl.PluralRules is not available in this environment.
3944
3907
  Try polyfilling it using "@formatjs/intl-pluralrules"
3945
- `, re.MISSING_INTL_API, o);
3946
- var R = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3947
- H = h.options[R] || h.options.other;
3908
+ `, te.MISSING_INTL_API, a);
3909
+ var M = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
3910
+ w = h.options[M] || h.options.other;
3948
3911
  }
3949
- if (!H)
3950
- throw new Pt(h.value, f, Object.keys(h.options), o);
3951
- a.push.apply(a, Ee(H.value, t, r, n, i, f - (h.offset || 0)));
3912
+ if (!w)
3913
+ throw new xt(h.value, f, Object.keys(h.options), a);
3914
+ o.push.apply(o, ve(w.value, t, r, n, i, f - (h.offset || 0)));
3952
3915
  continue;
3953
3916
  }
3954
3917
  }
3955
- return yi(a);
3918
+ return oi(o);
3956
3919
  }
3957
- function _i(e, t) {
3920
+ function ui(e, t) {
3958
3921
  return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3959
3922
  return r[n] = v(v({}, e[n]), t[n] || {}), r;
3960
3923
  }, {})) : e;
3961
3924
  }
3962
- function vi(e, t) {
3925
+ function li(e, t) {
3963
3926
  return t ? Object.keys(e).reduce(function(r, n) {
3964
- return r[n] = _i(e[n], t[n]), r;
3927
+ return r[n] = ui(e[n], t[n]), r;
3965
3928
  }, v({}, e)) : e;
3966
3929
  }
3967
- function $e(e) {
3930
+ function Me(e) {
3968
3931
  return {
3969
3932
  create: function() {
3970
3933
  return {
@@ -3978,39 +3941,39 @@ function $e(e) {
3978
3941
  }
3979
3942
  };
3980
3943
  }
3981
- function Ei(e) {
3944
+ function hi(e) {
3982
3945
  return e === void 0 && (e = {
3983
3946
  number: {},
3984
3947
  dateTime: {},
3985
3948
  pluralRules: {}
3986
3949
  }), {
3987
- getNumberFormat: Ne(function() {
3950
+ getNumberFormat: Ce(function() {
3988
3951
  for (var t, r = [], n = 0; n < arguments.length; n++)
3989
3952
  r[n] = arguments[n];
3990
- return new ((t = Intl.NumberFormat).bind.apply(t, K([void 0], r, !1)))();
3953
+ return new ((t = Intl.NumberFormat).bind.apply(t, Y([void 0], r, !1)))();
3991
3954
  }, {
3992
- cache: $e(e.number),
3993
- strategy: Me.variadic
3955
+ cache: Me(e.number),
3956
+ strategy: Le.variadic
3994
3957
  }),
3995
- getDateTimeFormat: Ne(function() {
3958
+ getDateTimeFormat: Ce(function() {
3996
3959
  for (var t, r = [], n = 0; n < arguments.length; n++)
3997
3960
  r[n] = arguments[n];
3998
- return new ((t = Intl.DateTimeFormat).bind.apply(t, K([void 0], r, !1)))();
3961
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, Y([void 0], r, !1)))();
3999
3962
  }, {
4000
- cache: $e(e.dateTime),
4001
- strategy: Me.variadic
3963
+ cache: Me(e.dateTime),
3964
+ strategy: Le.variadic
4002
3965
  }),
4003
- getPluralRules: Ne(function() {
3966
+ getPluralRules: Ce(function() {
4004
3967
  for (var t, r = [], n = 0; n < arguments.length; n++)
4005
3968
  r[n] = arguments[n];
4006
- return new ((t = Intl.PluralRules).bind.apply(t, K([void 0], r, !1)))();
3969
+ return new ((t = Intl.PluralRules).bind.apply(t, Y([void 0], r, !1)))();
4007
3970
  }, {
4008
- cache: $e(e.pluralRules),
4009
- strategy: Me.variadic
3971
+ cache: Me(e.pluralRules),
3972
+ strategy: Le.variadic
4010
3973
  })
4011
3974
  };
4012
3975
  }
4013
- var xi = (
3976
+ var fi = (
4014
3977
  /** @class */
4015
3978
  function() {
4016
3979
  function e(t, r, n, i) {
@@ -4025,11 +3988,11 @@ var xi = (
4025
3988
  if (u.length === 1)
4026
3989
  return u[0].value;
4027
3990
  var h = u.reduce(function(c, f) {
4028
- return !c.length || f.type !== B.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
3991
+ return !c.length || f.type !== T.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
4029
3992
  }, []);
4030
3993
  return h.length <= 1 ? h[0] || "" : h;
4031
3994
  }, this.formatToParts = function(l) {
4032
- return Ee(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
3995
+ return ve(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
4033
3996
  }, this.resolvedOptions = function() {
4034
3997
  var l;
4035
3998
  return {
@@ -4040,15 +4003,15 @@ var xi = (
4040
4003
  }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
4041
4004
  if (this.message = t, !e.__parse)
4042
4005
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
4043
- var o = i || {};
4044
- o.formatters;
4045
- var a = Kr(o, ["formatters"]);
4046
- this.ast = e.__parse(t, v(v({}, a), { locale: this.resolvedLocale }));
4006
+ var a = i || {};
4007
+ a.formatters;
4008
+ var o = jr(a, ["formatters"]);
4009
+ this.ast = e.__parse(t, v(v({}, o), { locale: this.resolvedLocale }));
4047
4010
  } else
4048
4011
  this.ast = t;
4049
4012
  if (!Array.isArray(this.ast))
4050
4013
  throw new TypeError("A message must be provided as a String or AST.");
4051
- this.formats = vi(e.formats, n), this.formatters = i && i.formatters || Ei(this.formatterCache);
4014
+ this.formats = li(e.formats, n), this.formatters = i && i.formatters || hi(this.formatterCache);
4052
4015
  }
4053
4016
  return Object.defineProperty(e, "defaultLocale", {
4054
4017
  get: function() {
@@ -4057,11 +4020,11 @@ var xi = (
4057
4020
  enumerable: !1,
4058
4021
  configurable: !0
4059
4022
  }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
4060
- if (typeof Intl.Locale != "undefined") {
4023
+ if (!(typeof Intl.Locale > "u")) {
4061
4024
  var r = Intl.NumberFormat.supportedLocalesOf(t);
4062
4025
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
4063
4026
  }
4064
- }, e.__parse = pi, e.formats = {
4027
+ }, e.__parse = ni, e.formats = {
4065
4028
  number: {
4066
4029
  integer: {
4067
4030
  maximumFractionDigits: 0
@@ -4122,7 +4085,7 @@ var xi = (
4122
4085
  }, e;
4123
4086
  }()
4124
4087
  );
4125
- function Si(e, t) {
4088
+ function ci(e, t) {
4126
4089
  if (t == null)
4127
4090
  return;
4128
4091
  if (t in e)
@@ -4143,92 +4106,92 @@ function Si(e, t) {
4143
4106
  n = void 0;
4144
4107
  return n;
4145
4108
  }
4146
- const j = {}, wi = (e, t, r) => r && (t in j || (j[t] = {}), e in j[t] || (j[t][e] = r), r), mr = (e, t) => {
4109
+ const F = {}, di = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), lr = (e, t) => {
4147
4110
  if (t == null)
4148
4111
  return;
4149
- if (t in j && e in j[t])
4150
- return j[t][e];
4151
- const r = Ae(t);
4112
+ if (t in F && e in F[t])
4113
+ return F[t][e];
4114
+ const r = Pe(t);
4152
4115
  for (let n = 0; n < r.length; n++) {
4153
- const i = r[n], s = Hi(i, e);
4116
+ const i = r[n], s = mi(i, e);
4154
4117
  if (s)
4155
- return wi(e, t, s);
4118
+ return di(e, t, s);
4156
4119
  }
4157
4120
  };
4158
- let nt;
4159
- const de = Be({});
4160
- function Ti(e) {
4161
- return nt[e] || null;
4121
+ let tt;
4122
+ const ce = He({});
4123
+ function pi(e) {
4124
+ return tt[e] || null;
4162
4125
  }
4163
- function br(e) {
4164
- return e in nt;
4126
+ function hr(e) {
4127
+ return e in tt;
4165
4128
  }
4166
- function Hi(e, t) {
4167
- if (!br(e))
4129
+ function mi(e, t) {
4130
+ if (!hr(e))
4168
4131
  return null;
4169
- const r = Ti(e);
4170
- return Si(r, t);
4132
+ const r = pi(e);
4133
+ return ci(r, t);
4171
4134
  }
4172
- function Bi(e) {
4135
+ function bi(e) {
4173
4136
  if (e == null)
4174
4137
  return;
4175
- const t = Ae(e);
4138
+ const t = Pe(e);
4176
4139
  for (let r = 0; r < t.length; r++) {
4177
4140
  const n = t[r];
4178
- if (br(n))
4141
+ if (hr(n))
4179
4142
  return n;
4180
4143
  }
4181
4144
  }
4182
- function yr(e, ...t) {
4183
- delete j[e], de.update((r) => (r[e] = In.all([r[e] || {}, ...t]), r));
4145
+ function fr(e, ...t) {
4146
+ delete F[e], ce.update((r) => (r[e] = vn.all([r[e] || {}, ...t]), r));
4184
4147
  }
4185
- ie(
4186
- [de],
4148
+ ne(
4149
+ [ce],
4187
4150
  ([e]) => Object.keys(e)
4188
4151
  );
4189
- de.subscribe((e) => nt = e);
4190
- const xe = {};
4191
- function Pi(e, t) {
4192
- xe[e].delete(t), xe[e].size === 0 && delete xe[e];
4152
+ ce.subscribe((e) => tt = e);
4153
+ const Ee = {};
4154
+ function yi(e, t) {
4155
+ Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
4193
4156
  }
4194
- function gr(e) {
4195
- return xe[e];
4157
+ function cr(e) {
4158
+ return Ee[e];
4196
4159
  }
4197
- function Ai(e) {
4198
- return Ae(e).map((t) => {
4199
- const r = gr(t);
4160
+ function gi(e) {
4161
+ return Pe(e).map((t) => {
4162
+ const r = cr(t);
4200
4163
  return [t, r ? [...r] : []];
4201
4164
  }).filter(([, t]) => t.length > 0);
4202
4165
  }
4203
- function Ke(e) {
4204
- return e == null ? !1 : Ae(e).some(
4166
+ function Je(e) {
4167
+ return e == null ? !1 : Pe(e).some(
4205
4168
  (t) => {
4206
4169
  var r;
4207
- return (r = gr(t)) == null ? void 0 : r.size;
4170
+ return (r = cr(t)) == null ? void 0 : r.size;
4208
4171
  }
4209
4172
  );
4210
4173
  }
4211
- function Oi(e, t) {
4174
+ function _i(e, t) {
4212
4175
  return Promise.all(
4213
- t.map((n) => (Pi(e, n), n().then((i) => i.default || i)))
4214
- ).then((n) => yr(e, ...n));
4215
- }
4216
- const ae = {};
4217
- function _r(e) {
4218
- if (!Ke(e))
4219
- return e in ae ? ae[e] : Promise.resolve();
4220
- const t = Ai(e);
4221
- return ae[e] = Promise.all(
4176
+ t.map((n) => (yi(e, n), n().then((i) => i.default || i)))
4177
+ ).then((n) => fr(e, ...n));
4178
+ }
4179
+ const oe = {};
4180
+ function dr(e) {
4181
+ if (!Je(e))
4182
+ return e in oe ? oe[e] : Promise.resolve();
4183
+ const t = gi(e);
4184
+ return oe[e] = Promise.all(
4222
4185
  t.map(
4223
- ([r, n]) => Oi(r, n)
4186
+ ([r, n]) => _i(r, n)
4224
4187
  )
4225
4188
  ).then(() => {
4226
- if (Ke(e))
4227
- return _r(e);
4228
- delete ae[e];
4229
- }), ae[e];
4189
+ if (Je(e))
4190
+ return dr(e);
4191
+ delete oe[e];
4192
+ }), oe[e];
4230
4193
  }
4231
- const Ii = {
4194
+ const vi = {
4232
4195
  number: {
4233
4196
  scientific: { notation: "scientific" },
4234
4197
  engineering: { notation: "engineering" },
@@ -4257,159 +4220,159 @@ const Ii = {
4257
4220
  timeZoneName: "short"
4258
4221
  }
4259
4222
  }
4260
- }, Ci = {
4223
+ }, Ei = {
4261
4224
  fallbackLocale: null,
4262
4225
  loadingDelay: 200,
4263
- formats: Ii,
4226
+ formats: vi,
4264
4227
  warnOnMissingMessages: !0,
4265
4228
  handleMissingMessage: void 0,
4266
4229
  ignoreTag: !0
4267
- }, Li = Ci;
4268
- function ne() {
4269
- return Li;
4230
+ }, xi = Ei;
4231
+ function re() {
4232
+ return xi;
4270
4233
  }
4271
- const De = Be(!1);
4272
- var Ni = Object.defineProperty, Mi = Object.defineProperties, Ri = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, $i = Object.prototype.hasOwnProperty, Di = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Ni(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ui = (e, t) => {
4234
+ const Re = He(!1);
4235
+ var Si = Object.defineProperty, wi = Object.defineProperties, Ti = Object.getOwnPropertyDescriptors, St = Object.getOwnPropertySymbols, Hi = Object.prototype.hasOwnProperty, Bi = Object.prototype.propertyIsEnumerable, wt = (e, t, r) => t in e ? Si(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Pi = (e, t) => {
4273
4236
  for (var r in t)
4274
- $i.call(t, r) && Ot(e, r, t[r]);
4275
- if (At)
4276
- for (var r of At(t))
4277
- Di.call(t, r) && Ot(e, r, t[r]);
4237
+ Hi.call(t, r) && wt(e, r, t[r]);
4238
+ if (St)
4239
+ for (var r of St(t))
4240
+ Bi.call(t, r) && wt(e, r, t[r]);
4278
4241
  return e;
4279
- }, Gi = (e, t) => Mi(e, Ri(t));
4280
- let et;
4281
- const Se = Be(null);
4282
- function It(e) {
4242
+ }, Ai = (e, t) => wi(e, Ti(t));
4243
+ let Ye;
4244
+ const xe = He(null);
4245
+ function Tt(e) {
4283
4246
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4284
4247
  }
4285
- function Ae(e, t = ne().fallbackLocale) {
4286
- const r = It(e);
4287
- return t ? [.../* @__PURE__ */ new Set([...r, ...It(t)])] : r;
4248
+ function Pe(e, t = re().fallbackLocale) {
4249
+ const r = Tt(e);
4250
+ return t ? [.../* @__PURE__ */ new Set([...r, ...Tt(t)])] : r;
4288
4251
  }
4289
- function z() {
4290
- return et != null ? et : void 0;
4252
+ function W() {
4253
+ return Ye ?? void 0;
4291
4254
  }
4292
- Se.subscribe((e) => {
4293
- et = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4255
+ xe.subscribe((e) => {
4256
+ Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4294
4257
  });
4295
- const Fi = (e) => {
4296
- if (e && Bi(e) && Ke(e)) {
4297
- const { loadingDelay: t } = ne();
4258
+ const Oi = (e) => {
4259
+ if (e && bi(e) && Je(e)) {
4260
+ const { loadingDelay: t } = re();
4298
4261
  let r;
4299
- return typeof window != "undefined" && z() != null && t ? r = window.setTimeout(
4300
- () => De.set(!0),
4262
+ return typeof window < "u" && W() != null && t ? r = window.setTimeout(
4263
+ () => Re.set(!0),
4301
4264
  t
4302
- ) : De.set(!0), _r(e).then(() => {
4303
- Se.set(e);
4265
+ ) : Re.set(!0), dr(e).then(() => {
4266
+ xe.set(e);
4304
4267
  }).finally(() => {
4305
- clearTimeout(r), De.set(!1);
4268
+ clearTimeout(r), Re.set(!1);
4306
4269
  });
4307
4270
  }
4308
- return Se.set(e);
4309
- }, se = Gi(Ui({}, Se), {
4310
- set: Fi
4311
- }), Oe = (e) => {
4271
+ return xe.set(e);
4272
+ }, ie = Ai(Pi({}, xe), {
4273
+ set: Oi
4274
+ }), Ae = (e) => {
4312
4275
  const t = /* @__PURE__ */ Object.create(null);
4313
4276
  return (n) => {
4314
4277
  const i = JSON.stringify(n);
4315
4278
  return i in t ? t[i] : t[i] = e(n);
4316
4279
  };
4317
4280
  };
4318
- var ji = Object.defineProperty, we = Object.getOwnPropertySymbols, vr = Object.prototype.hasOwnProperty, Er = Object.prototype.propertyIsEnumerable, Ct = (e, t, r) => t in e ? ji(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, it = (e, t) => {
4281
+ var Ii = Object.defineProperty, Se = Object.getOwnPropertySymbols, pr = Object.prototype.hasOwnProperty, mr = Object.prototype.propertyIsEnumerable, Ht = (e, t, r) => t in e ? Ii(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, rt = (e, t) => {
4319
4282
  for (var r in t || (t = {}))
4320
- vr.call(t, r) && Ct(e, r, t[r]);
4321
- if (we)
4322
- for (var r of we(t))
4323
- Er.call(t, r) && Ct(e, r, t[r]);
4283
+ pr.call(t, r) && Ht(e, r, t[r]);
4284
+ if (Se)
4285
+ for (var r of Se(t))
4286
+ mr.call(t, r) && Ht(e, r, t[r]);
4324
4287
  return e;
4325
- }, oe = (e, t) => {
4288
+ }, se = (e, t) => {
4326
4289
  var r = {};
4327
4290
  for (var n in e)
4328
- vr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4329
- if (e != null && we)
4330
- for (var n of we(e))
4331
- t.indexOf(n) < 0 && Er.call(e, n) && (r[n] = e[n]);
4291
+ pr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4292
+ if (e != null && Se)
4293
+ for (var n of Se(e))
4294
+ t.indexOf(n) < 0 && mr.call(e, n) && (r[n] = e[n]);
4332
4295
  return r;
4333
4296
  };
4334
- const fe = (e, t) => {
4335
- const { formats: r } = ne();
4297
+ const he = (e, t) => {
4298
+ const { formats: r } = re();
4336
4299
  if (e in r && t in r[e])
4337
4300
  return r[e][t];
4338
4301
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4339
- }, ki = Oe(
4302
+ }, Ci = Ae(
4340
4303
  (e) => {
4341
- var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4304
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
4342
4305
  if (r == null)
4343
4306
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4344
- return n && (i = fe("number", n)), new Intl.NumberFormat(r, i);
4307
+ return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
4345
4308
  }
4346
- ), Vi = Oe(
4309
+ ), Li = Ae(
4347
4310
  (e) => {
4348
- var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4311
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
4349
4312
  if (r == null)
4350
4313
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4351
- return n ? i = fe("date", n) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(r, i);
4314
+ return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
4352
4315
  }
4353
- ), Xi = Oe(
4316
+ ), Ni = Ae(
4354
4317
  (e) => {
4355
- var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4318
+ var t = e, { locale: r, format: n } = t, i = se(t, ["locale", "format"]);
4356
4319
  if (r == null)
4357
4320
  throw new Error(
4358
4321
  '[svelte-i18n] A "locale" must be set to format time values'
4359
4322
  );
4360
- return n ? i = fe("time", n) : Object.keys(i).length === 0 && (i = fe("time", "short")), new Intl.DateTimeFormat(r, i);
4323
+ return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
4361
4324
  }
4362
- ), Wi = (e = {}) => {
4325
+ ), Mi = (e = {}) => {
4363
4326
  var t = e, {
4364
- locale: r = z()
4365
- } = t, n = oe(t, [
4327
+ locale: r = W()
4328
+ } = t, n = se(t, [
4366
4329
  "locale"
4367
4330
  ]);
4368
- return ki(it({ locale: r }, n));
4369
- }, zi = (e = {}) => {
4331
+ return Ci(rt({ locale: r }, n));
4332
+ }, Ri = (e = {}) => {
4370
4333
  var t = e, {
4371
- locale: r = z()
4372
- } = t, n = oe(t, [
4334
+ locale: r = W()
4335
+ } = t, n = se(t, [
4373
4336
  "locale"
4374
4337
  ]);
4375
- return Vi(it({ locale: r }, n));
4376
- }, qi = (e = {}) => {
4338
+ return Li(rt({ locale: r }, n));
4339
+ }, $i = (e = {}) => {
4377
4340
  var t = e, {
4378
- locale: r = z()
4379
- } = t, n = oe(t, [
4341
+ locale: r = W()
4342
+ } = t, n = se(t, [
4380
4343
  "locale"
4381
4344
  ]);
4382
- return Xi(it({ locale: r }, n));
4383
- }, Zi = Oe(
4345
+ return Ni(rt({ locale: r }, n));
4346
+ }, Di = Ae(
4384
4347
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4385
- (e, t = z()) => new xi(e, t, ne().formats, {
4386
- ignoreTag: ne().ignoreTag
4348
+ (e, t = W()) => new fi(e, t, re().formats, {
4349
+ ignoreTag: re().ignoreTag
4387
4350
  })
4388
- ), Qi = (e, t = {}) => {
4351
+ ), Ui = (e, t = {}) => {
4389
4352
  var r, n, i, s;
4390
- let o = t;
4391
- typeof e == "object" && (o = e, e = o.id);
4353
+ let a = t;
4354
+ typeof e == "object" && (a = e, e = a.id);
4392
4355
  const {
4393
- values: a,
4394
- locale: l = z(),
4356
+ values: o,
4357
+ locale: l = W(),
4395
4358
  default: u
4396
- } = o;
4359
+ } = a;
4397
4360
  if (l == null)
4398
4361
  throw new Error(
4399
4362
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4400
4363
  );
4401
- let h = mr(e, l);
4364
+ let h = lr(e, l);
4402
4365
  if (!h)
4403
- h = (s = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4366
+ h = (s = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4404
4367
  else if (typeof h != "string")
4405
4368
  return console.warn(
4406
4369
  `[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.`
4407
4370
  ), h;
4408
- if (!a)
4371
+ if (!o)
4409
4372
  return h;
4410
4373
  let c = h;
4411
4374
  try {
4412
- c = Zi(h, l).format(a);
4375
+ c = Di(h, l).format(o);
4413
4376
  } catch (f) {
4414
4377
  f instanceof Error && console.warn(
4415
4378
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4417,16 +4380,16 @@ const fe = (e, t) => {
4417
4380
  );
4418
4381
  }
4419
4382
  return c;
4420
- }, Ji = (e, t) => qi(t).format(e), Yi = (e, t) => zi(t).format(e), Ki = (e, t) => Wi(t).format(e), es = (e, t = z()) => mr(e, t), ts = ie([se, de], () => Qi);
4421
- ie([se], () => Ji);
4422
- ie([se], () => Yi);
4423
- ie([se], () => Ki);
4424
- ie([se, de], () => es);
4425
- window.emWidgets = { topic: pn };
4426
- const xr = (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)), rs = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4427
- function Os(e, t) {
4383
+ }, Gi = (e, t) => $i(t).format(e), Fi = (e, t) => Ri(t).format(e), ji = (e, t) => Mi(t).format(e), ki = (e, t = W()) => lr(e, t), Vi = ne([ie, ce], () => Ui);
4384
+ ne([ie], () => Gi);
4385
+ ne([ie], () => Fi);
4386
+ ne([ie], () => ji);
4387
+ ne([ie, ce], () => ki);
4388
+ window.emWidgets = { topic: rn };
4389
+ const br = (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)), Xi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4390
+ function gs(e, t) {
4428
4391
  const r = window.navigator.userAgent;
4429
- return xr(r) ? t = e.filter((n) => {
4392
+ return br(r) ? t = e.filter((n) => {
4430
4393
  if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
4431
4394
  return n;
4432
4395
  }) : t = e.filter((n) => {
@@ -4434,13 +4397,13 @@ function Os(e, t) {
4434
4397
  return n;
4435
4398
  }), t;
4436
4399
  }
4437
- function Lt(e, t) {
4438
- yr(e, t);
4400
+ function Bt(e, t) {
4401
+ fr(e, t);
4439
4402
  }
4440
- function ns(e) {
4441
- se.set(e);
4403
+ function Wi(e) {
4404
+ ie.set(e);
4442
4405
  }
4443
- const Nt = {
4406
+ const Pt = {
4444
4407
  en: {
4445
4408
  error: "500 Error - Internal Server Error"
4446
4409
  },
@@ -4460,7 +4423,7 @@ const Nt = {
4460
4423
  error: "500 Error - Internal Server Error"
4461
4424
  }
4462
4425
  };
4463
- if (typeof window != "undefined") {
4426
+ if (typeof window < "u") {
4464
4427
  let e = function(t) {
4465
4428
  return function(...r) {
4466
4429
  try {
@@ -4472,11 +4435,11 @@ if (typeof window != "undefined") {
4472
4435
  }
4473
4436
  };
4474
4437
  };
4475
- customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-BCGdQSNl.js").then(({ default: t }) => {
4438
+ customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-D7GkfhmR.js").then(({ default: t }) => {
4476
4439
  !customElements.get("casino-calendar-daily-details") && customElements.define("casino-calendar-daily-details", t.element);
4477
4440
  });
4478
4441
  }
4479
- if (typeof window != "undefined") {
4442
+ if (typeof window < "u") {
4480
4443
  let e = function(t) {
4481
4444
  return function(...r) {
4482
4445
  try {
@@ -4488,115 +4451,115 @@ if (typeof window != "undefined") {
4488
4451
  }
4489
4452
  };
4490
4453
  };
4491
- customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-BzgTjc6A.js").then(({ default: t }) => {
4454
+ customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-CU9qMJji.js").then(({ default: t }) => {
4492
4455
  !customElements.get("casino-calendar-daily-item") && customElements.define("casino-calendar-daily-item", t.element);
4493
4456
  });
4494
4457
  }
4495
- function is(e) {
4496
- Cr(e, "svelte-1bqenf9", `.CasinoCalendarItem.svelte-1bqenf9{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-1bqenf9{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-1bqenf9{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:var(--emw--color-dark-gray, rgba(0, 0, 0, 0.9))}.LoadingSpinner.svelte-1bqenf9{display:block;width:80px;height:80px;margin:0 auto
4458
+ function zi(e) {
4459
+ Er(e, "svelte-1bqenf9", `.CasinoCalendarItem.svelte-1bqenf9{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-1bqenf9{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-1bqenf9{display:flex;position:fixed;align-items:center;justify-content:center;width:100%;height:100%;z-index:300;top:0;left:0;background-color:var(--emw--color-dark-gray, rgba(0, 0, 0, 0.9))}.LoadingSpinner.svelte-1bqenf9{display:block;width:80px;height:80px;margin:0 auto
4497
4460
  }.LoadingSpinner.svelte-1bqenf9:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:6px solid var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C));border-color:var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent var(--emw--casino-color-primary, var(--emw--color-primary, #D0046C)) transparent;animation:svelte-1bqenf9-LoadingSpinner 1.2s linear infinite}@keyframes svelte-1bqenf9-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`);
4498
4461
  }
4499
- function Mt(e, t, r) {
4462
+ function At(e, t, r) {
4500
4463
  const n = e.slice();
4501
4464
  return n[26] = t[r], n[28] = r, n;
4502
4465
  }
4503
- function ss(e) {
4504
- let t, r, n, i = ct(
4466
+ function qi(e) {
4467
+ let t, r, n, i = ot(
4505
4468
  /*calendarCollections*/
4506
4469
  e[5]
4507
4470
  ), s = [];
4508
- for (let a = 0; a < i.length; a += 1)
4509
- s[a] = Rt(Mt(e, i, a));
4510
- let o = (
4471
+ for (let o = 0; o < i.length; o += 1)
4472
+ s[o] = Ot(At(e, i, o));
4473
+ let a = (
4511
4474
  /*calendarModalOpened*/
4512
- e[10] == !0 && $t(e)
4475
+ e[10] == !0 && It(e)
4513
4476
  );
4514
4477
  return {
4515
4478
  c() {
4516
- t = M("div");
4517
- for (let a = 0; a < s.length; a += 1)
4518
- s[a].c();
4519
- r = $r(), o && o.c(), X(t, "class", n = "CasinoCalendarItem " + /*mobileView*/
4479
+ t = N("div");
4480
+ for (let o = 0; o < s.length; o += 1)
4481
+ s[o].c();
4482
+ r = Hr(), a && a.c(), V(t, "class", n = "CasinoCalendarItem " + /*mobileView*/
4520
4483
  (e[9] ? "Mobile" : "") + " svelte-1bqenf9");
4521
4484
  },
4522
- m(a, l) {
4523
- k(a, t, l);
4485
+ m(o, l) {
4486
+ j(o, t, l);
4524
4487
  for (let u = 0; u < s.length; u += 1)
4525
4488
  s[u] && s[u].m(t, null);
4526
- ce(t, r), o && o.m(t, null);
4489
+ fe(t, r), a && a.m(t, null);
4527
4490
  },
4528
- p(a, l) {
4491
+ p(o, l) {
4529
4492
  if (l & /*calendarCollections, lang, clientstyling, clientstylingurl, translationurl*/
4530
4493
  47) {
4531
- i = ct(
4494
+ i = ot(
4532
4495
  /*calendarCollections*/
4533
- a[5]
4496
+ o[5]
4534
4497
  );
4535
4498
  let u;
4536
4499
  for (u = 0; u < i.length; u += 1) {
4537
- const h = Mt(a, i, u);
4538
- s[u] ? s[u].p(h, l) : (s[u] = Rt(h), s[u].c(), s[u].m(t, r));
4500
+ const h = At(o, i, u);
4501
+ s[u] ? s[u].p(h, l) : (s[u] = Ot(h), s[u].c(), s[u].m(t, r));
4539
4502
  }
4540
4503
  for (; u < s.length; u += 1)
4541
4504
  s[u].d(1);
4542
4505
  s.length = i.length;
4543
4506
  }
4544
4507
  /*calendarModalOpened*/
4545
- a[10] == !0 ? o ? o.p(a, l) : (o = $t(a), o.c(), o.m(t, null)) : o && (o.d(1), o = null), l & /*mobileView*/
4508
+ o[10] == !0 ? a ? a.p(o, l) : (a = It(o), a.c(), a.m(t, null)) : a && (a.d(1), a = null), l & /*mobileView*/
4546
4509
  512 && n !== (n = "CasinoCalendarItem " + /*mobileView*/
4547
- (a[9] ? "Mobile" : "") + " svelte-1bqenf9") && X(t, "class", n);
4510
+ (o[9] ? "Mobile" : "") + " svelte-1bqenf9") && V(t, "class", n);
4548
4511
  },
4549
- d(a) {
4550
- a && D(t), Mr(s, a), o && o.d();
4512
+ d(o) {
4513
+ o && $(t), wr(s, o), a && a.d();
4551
4514
  }
4552
4515
  };
4553
4516
  }
4554
- function os(e) {
4517
+ function Zi(e) {
4555
4518
  let t;
4556
4519
  return {
4557
4520
  c() {
4558
- t = M("div"), X(t, "class", "LoadingSpinner svelte-1bqenf9");
4521
+ t = N("div"), V(t, "class", "LoadingSpinner svelte-1bqenf9");
4559
4522
  },
4560
4523
  m(r, n) {
4561
- k(r, t, n);
4524
+ j(r, t, n);
4562
4525
  },
4563
- p: A,
4526
+ p: P,
4564
4527
  d(r) {
4565
- r && D(t);
4528
+ r && $(t);
4566
4529
  }
4567
4530
  };
4568
4531
  }
4569
- function as(e) {
4532
+ function Qi(e) {
4570
4533
  let t, r = (
4571
4534
  /*$_*/
4572
4535
  e[11]("error") + ""
4573
4536
  ), n;
4574
4537
  return {
4575
4538
  c() {
4576
- t = M("p"), n = tt(r), X(t, "class", "SearchLoading");
4539
+ t = N("p"), n = Ke(r), V(t, "class", "SearchLoading");
4577
4540
  },
4578
4541
  m(i, s) {
4579
- k(i, t, s), ce(t, n);
4542
+ j(i, t, s), fe(t, n);
4580
4543
  },
4581
4544
  p(i, s) {
4582
4545
  s & /*$_*/
4583
4546
  2048 && r !== (r = /*$_*/
4584
- i[11]("error") + "") && Ur(n, r);
4547
+ i[11]("error") + "") && Pr(n, r);
4585
4548
  },
4586
4549
  d(i) {
4587
- i && D(t);
4550
+ i && $(t);
4588
4551
  }
4589
4552
  };
4590
4553
  }
4591
- function Rt(e) {
4592
- let t, r, n, i, s, o;
4554
+ function Ot(e) {
4555
+ let t, r, n, i, s, a;
4593
4556
  return {
4594
4557
  c() {
4595
- t = M("casino-calendar-daily-item"), m(t, "dailybackground", r = /*dailyCalendarData*/
4558
+ t = N("casino-calendar-daily-item"), m(t, "dailybackground", r = /*dailyCalendarData*/
4596
4559
  e[26].dailyBackground), m(t, "dailyicon", n = /*dailyCalendarData*/
4597
4560
  e[26].dailyIcon), m(t, "dailyday", i = /*dailyCalendarData*/
4598
4561
  e[26].dailyDay), m(t, "dailydescription", s = /*dailyCalendarData*/
4599
- e[26].dailyDescription), m(t, "dailybuttontitle", o = /*dailyCalendarData*/
4562
+ e[26].dailyDescription), m(t, "dailybuttontitle", a = /*dailyCalendarData*/
4600
4563
  e[26].dailyButtonTitle), m(
4601
4564
  t,
4602
4565
  "index",
@@ -4624,56 +4587,56 @@ function Rt(e) {
4624
4587
  e[3]
4625
4588
  );
4626
4589
  },
4627
- m(a, l) {
4628
- k(a, t, l);
4590
+ m(o, l) {
4591
+ j(o, t, l);
4629
4592
  },
4630
- p(a, l) {
4593
+ p(o, l) {
4631
4594
  l & /*calendarCollections*/
4632
4595
  32 && r !== (r = /*dailyCalendarData*/
4633
- a[26].dailyBackground) && m(t, "dailybackground", r), l & /*calendarCollections*/
4596
+ o[26].dailyBackground) && m(t, "dailybackground", r), l & /*calendarCollections*/
4634
4597
  32 && n !== (n = /*dailyCalendarData*/
4635
- a[26].dailyIcon) && m(t, "dailyicon", n), l & /*calendarCollections*/
4598
+ o[26].dailyIcon) && m(t, "dailyicon", n), l & /*calendarCollections*/
4636
4599
  32 && i !== (i = /*dailyCalendarData*/
4637
- a[26].dailyDay) && m(t, "dailyday", i), l & /*calendarCollections*/
4600
+ o[26].dailyDay) && m(t, "dailyday", i), l & /*calendarCollections*/
4638
4601
  32 && s !== (s = /*dailyCalendarData*/
4639
- a[26].dailyDescription) && m(t, "dailydescription", s), l & /*calendarCollections*/
4640
- 32 && o !== (o = /*dailyCalendarData*/
4641
- a[26].dailyButtonTitle) && m(t, "dailybuttontitle", o), l & /*lang*/
4602
+ o[26].dailyDescription) && m(t, "dailydescription", s), l & /*calendarCollections*/
4603
+ 32 && a !== (a = /*dailyCalendarData*/
4604
+ o[26].dailyButtonTitle) && m(t, "dailybuttontitle", a), l & /*lang*/
4642
4605
  1 && m(
4643
4606
  t,
4644
4607
  "lang",
4645
4608
  /*lang*/
4646
- a[0]
4609
+ o[0]
4647
4610
  ), l & /*clientstyling*/
4648
4611
  2 && m(
4649
4612
  t,
4650
4613
  "clientstyling",
4651
4614
  /*clientstyling*/
4652
- a[1]
4615
+ o[1]
4653
4616
  ), l & /*clientstylingurl*/
4654
4617
  4 && m(
4655
4618
  t,
4656
4619
  "clientstylingurl",
4657
4620
  /*clientstylingurl*/
4658
- a[2]
4621
+ o[2]
4659
4622
  ), l & /*translationurl*/
4660
4623
  8 && m(
4661
4624
  t,
4662
4625
  "translationurl",
4663
4626
  /*translationurl*/
4664
- a[3]
4627
+ o[3]
4665
4628
  );
4666
4629
  },
4667
- d(a) {
4668
- a && D(t);
4630
+ d(o) {
4631
+ o && $(t);
4669
4632
  }
4670
4633
  };
4671
4634
  }
4672
- function $t(e) {
4673
- let t, r, n, i, s, o, a, l;
4635
+ function It(e) {
4636
+ let t, r, n, i, s, a, o, l;
4674
4637
  return {
4675
4638
  c() {
4676
- t = M("div"), r = M("casino-calendar-daily-details"), m(r, "dailybackground", n = /*calendarCollections*/
4639
+ t = N("div"), r = N("casino-calendar-daily-details"), m(r, "dailybackground", n = /*calendarCollections*/
4677
4640
  e[5][
4678
4641
  /*selectedIndex*/
4679
4642
  e[6]
@@ -4685,11 +4648,11 @@ function $t(e) {
4685
4648
  e[5][
4686
4649
  /*selectedIndex*/
4687
4650
  e[6]
4688
- ].dailyDay), m(r, "dailydescription", o = /*calendarCollections*/
4651
+ ].dailyDay), m(r, "dailydescription", a = /*calendarCollections*/
4689
4652
  e[5][
4690
4653
  /*selectedIndex*/
4691
4654
  e[6]
4692
- ].dailyDescription), m(r, "dailyicon", a = /*calendarCollections*/
4655
+ ].dailyDescription), m(r, "dailyicon", o = /*calendarCollections*/
4693
4656
  e[5][
4694
4657
  /*selectedIndex*/
4695
4658
  e[6]
@@ -4717,10 +4680,10 @@ function $t(e) {
4717
4680
  "translationurl",
4718
4681
  /*translationurl*/
4719
4682
  e[3]
4720
- ), X(t, "class", "CalendarDetailsWrapper svelte-1bqenf9");
4683
+ ), V(t, "class", "CalendarDetailsWrapper svelte-1bqenf9");
4721
4684
  },
4722
4685
  m(u, h) {
4723
- k(u, t, h), ce(t, r);
4686
+ j(u, t, h), fe(t, r);
4724
4687
  },
4725
4688
  p(u, h) {
4726
4689
  h & /*calendarCollections, selectedIndex*/
@@ -4739,16 +4702,16 @@ function $t(e) {
4739
4702
  /*selectedIndex*/
4740
4703
  u[6]
4741
4704
  ].dailyDay) && m(r, "dailyday", s), h & /*calendarCollections, selectedIndex*/
4742
- 96 && o !== (o = /*calendarCollections*/
4705
+ 96 && a !== (a = /*calendarCollections*/
4743
4706
  u[5][
4744
4707
  /*selectedIndex*/
4745
4708
  u[6]
4746
- ].dailyDescription) && m(r, "dailydescription", o), h & /*calendarCollections, selectedIndex*/
4747
- 96 && a !== (a = /*calendarCollections*/
4709
+ ].dailyDescription) && m(r, "dailydescription", a), h & /*calendarCollections, selectedIndex*/
4710
+ 96 && o !== (o = /*calendarCollections*/
4748
4711
  u[5][
4749
4712
  /*selectedIndex*/
4750
4713
  u[6]
4751
- ].dailyIcon) && m(r, "dailyicon", a), h & /*calendarCollections, selectedIndex*/
4714
+ ].dailyIcon) && m(r, "dailyicon", o), h & /*calendarCollections, selectedIndex*/
4752
4715
  96 && l !== (l = /*calendarCollections*/
4753
4716
  u[5][
4754
4717
  /*selectedIndex*/
@@ -4780,82 +4743,80 @@ function $t(e) {
4780
4743
  );
4781
4744
  },
4782
4745
  d(u) {
4783
- u && D(t);
4746
+ u && $(t);
4784
4747
  }
4785
4748
  };
4786
4749
  }
4787
- function us(e) {
4750
+ function Ji(e) {
4788
4751
  let t;
4789
- function r(s, o) {
4790
- var a;
4752
+ function r(s, a) {
4791
4753
  if (
4792
4754
  /*hasErrors*/
4793
4755
  s[8]
4794
- ) return as;
4756
+ ) return Qi;
4795
4757
  if (
4796
4758
  /*isLoading*/
4797
4759
  s[7]
4798
- ) return os;
4760
+ ) return Zi;
4799
4761
  if (
4800
4762
  /*calendarCollections*/
4801
- (a = s[5]) != null && a.length
4802
- ) return ss;
4763
+ s[5]?.length
4764
+ ) return qi;
4803
4765
  }
4804
4766
  let n = r(e), i = n && n(e);
4805
4767
  return {
4806
4768
  c() {
4807
- t = M("div"), i && i.c();
4769
+ t = N("div"), i && i.c();
4808
4770
  },
4809
- m(s, o) {
4810
- k(s, t, o), i && i.m(t, null), e[15](t);
4771
+ m(s, a) {
4772
+ j(s, t, a), i && i.m(t, null), e[15](t);
4811
4773
  },
4812
- p(s, [o]) {
4813
- n === (n = r(s)) && i ? i.p(s, o) : (i && i.d(1), i = n && n(s), i && (i.c(), i.m(t, null)));
4774
+ p(s, [a]) {
4775
+ n === (n = r(s)) && i ? i.p(s, a) : (i && i.d(1), i = n && n(s), i && (i.c(), i.m(t, null)));
4814
4776
  },
4815
- i: A,
4816
- o: A,
4777
+ i: P,
4778
+ o: P,
4817
4779
  d(s) {
4818
- s && D(t), i && i.d(), e[15](null);
4780
+ s && $(t), i && i.d(), e[15](null);
4819
4781
  }
4820
4782
  };
4821
4783
  }
4822
- function ls(e, t, r) {
4784
+ function Yi(e, t, r) {
4823
4785
  let n;
4824
- Ir(e, ts, (d) => r(11, n = d));
4825
- let { cmsendpoint: i = "" } = t, { env: s = "" } = t, { userroles: o = "" } = t, { lang: a = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h } = t, c, f, p = 0, b = !0, _ = !1, S = !1, O = window.navigator.userAgent, P = !1;
4826
- const H = () => {
4827
- ns(a);
4786
+ vr(e, Vi, (d) => r(11, n = d));
4787
+ let { cmsendpoint: i = "" } = t, { env: s = "" } = t, { userroles: a = "" } = t, { lang: o = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h } = t, c, f, p = 0, b = !0, _ = !1, S = !1, A = window.navigator.userAgent, H = !1;
4788
+ const w = () => {
4789
+ Wi(o);
4828
4790
  };
4829
- Object.keys(Nt).forEach((d) => {
4830
- Lt(d, Nt[d]);
4791
+ Object.keys(Pt).forEach((d) => {
4792
+ Bt(d, Pt[d]);
4831
4793
  });
4832
- const R = () => {
4794
+ const M = () => {
4833
4795
  let d = h;
4834
4796
  if (d)
4835
- return fetch(d).then((w) => w.json()).then((w) => {
4836
- Object.keys(w).forEach((N) => {
4837
- Lt(N, w[N]);
4797
+ return fetch(d).then((B) => B.json()).then((B) => {
4798
+ Object.keys(B).forEach((L) => {
4799
+ Bt(L, B[L]);
4838
4800
  });
4839
- }).catch((w) => {
4840
- console.log(w);
4801
+ }).catch((B) => {
4802
+ console.log(B);
4841
4803
  });
4842
- }, I = () => {
4804
+ }, O = () => {
4843
4805
  r(7, b = !0);
4844
- let d = new URL(`${i}/${a}/daily-calendar`);
4845
- d.searchParams.append("userRoles", o), d.searchParams.append("env", s);
4846
- let w = rs(O);
4847
- w && (w === "PC" ? d.searchParams.append("device", "dk") : w === "iPad" || w === "iPhone" ? d.searchParams.append("device", "ios") : d.searchParams.append("device", "mtWeb")), fetch(d.href).then((N) => N.json()).then((N) => {
4848
- r(5, f = N);
4849
- }).catch((N) => {
4850
- console.log(N), r(8, _ = !0);
4806
+ let d = new URL(`${i}/${o}/daily-calendar`);
4807
+ d.searchParams.append("userRoles", a), d.searchParams.append("env", s);
4808
+ let B = Xi(A);
4809
+ B && (B === "PC" ? d.searchParams.append("device", "dk") : B === "iPad" || B === "iPhone" ? d.searchParams.append("device", "ios") : d.searchParams.append("device", "mtWeb")), fetch(d.href).then((L) => L.json()).then((L) => {
4810
+ r(5, f = L);
4811
+ }).catch((L) => {
4812
+ console.log(L), r(8, _ = !0);
4851
4813
  }).finally(() => {
4852
4814
  r(7, b = !1);
4853
4815
  });
4854
- }, $ = () => {
4855
- I();
4816
+ }, R = () => {
4817
+ O();
4856
4818
  }, E = (d) => {
4857
- var w;
4858
- d.data && d.data.type == "OpenCalendar" && (r(6, p = d.data.index), r(10, P = !0), window.postMessage(
4819
+ d.data && d.data.type == "OpenCalendar" && (r(6, p = d.data.index), r(10, H = !0), window.postMessage(
4859
4820
  {
4860
4821
  type: "ShowModal",
4861
4822
  selectedIndex: p,
@@ -4864,17 +4825,17 @@ function ls(e, t, r) {
4864
4825
  window.location.href
4865
4826
  ), window.postMessage({
4866
4827
  type: "DailyEventsData",
4867
- data: (w = f[p]) == null ? void 0 : w.dailyEvents
4868
- })), d.data && d.data.type == "ModalClosed" && r(10, P = !1);
4869
- }, C = () => {
4828
+ data: f[p]?.dailyEvents
4829
+ })), d.data && d.data.type == "ModalClosed" && r(10, H = !1);
4830
+ }, I = () => {
4870
4831
  let d = document.createElement("style");
4871
4832
  d.innerHTML = l, c.appendChild(d);
4872
- }, L = () => {
4873
- let d = new URL(u), w = document.createElement("style");
4874
- fetch(d.href).then((N) => N.text()).then((N) => {
4875
- w.innerHTML = N, setTimeout(
4833
+ }, C = () => {
4834
+ let d = new URL(u), B = document.createElement("style");
4835
+ fetch(d.href).then((L) => L.text()).then((L) => {
4836
+ B.innerHTML = L, setTimeout(
4876
4837
  () => {
4877
- c.appendChild(w);
4838
+ c.appendChild(B);
4878
4839
  },
4879
4840
  1
4880
4841
  ), setTimeout(
@@ -4884,25 +4845,25 @@ function ls(e, t, r) {
4884
4845
  );
4885
4846
  });
4886
4847
  };
4887
- kr(() => (window.addEventListener("message", E, !1), xr(O) && r(9, S = !0), () => {
4848
+ Cr(() => (window.addEventListener("message", E, !1), br(A) && r(9, S = !0), () => {
4888
4849
  window.removeEventListener("message", E);
4889
4850
  }));
4890
- function q(d) {
4891
- Ue[d ? "unshift" : "push"](() => {
4851
+ function z(d) {
4852
+ $e[d ? "unshift" : "push"](() => {
4892
4853
  c = d, r(4, c);
4893
4854
  });
4894
4855
  }
4895
4856
  return e.$$set = (d) => {
4896
- "cmsendpoint" in d && r(12, i = d.cmsendpoint), "env" in d && r(13, s = d.env), "userroles" in d && r(14, o = d.userroles), "lang" in d && r(0, a = d.lang), "clientstyling" in d && r(1, l = d.clientstyling), "clientstylingurl" in d && r(2, u = d.clientstylingurl), "translationurl" in d && r(3, h = d.translationurl);
4857
+ "cmsendpoint" in d && r(12, i = d.cmsendpoint), "env" in d && r(13, s = d.env), "userroles" in d && r(14, a = d.userroles), "lang" in d && r(0, o = d.lang), "clientstyling" in d && r(1, l = d.clientstyling), "clientstylingurl" in d && r(2, u = d.clientstylingurl), "translationurl" in d && r(3, h = d.translationurl);
4897
4858
  }, e.$$.update = () => {
4898
4859
  e.$$.dirty & /*cmsendpoint, lang, env, userroles*/
4899
- 28673 && i && a && s && o && $(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4900
- 18 && l && c && C(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4901
- 20 && u && c && L(), e.$$.dirty & /*lang*/
4902
- 1 && a && H(), e.$$.dirty & /*lang, translationurl*/
4903
- 9 && a && h && R();
4860
+ 28673 && i && o && s && a && R(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4861
+ 18 && l && c && I(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4862
+ 20 && u && c && C(), e.$$.dirty & /*lang*/
4863
+ 1 && o && w(), e.$$.dirty & /*lang, translationurl*/
4864
+ 9 && o && h && M();
4904
4865
  }, [
4905
- a,
4866
+ o,
4906
4867
  l,
4907
4868
  u,
4908
4869
  h,
@@ -4912,22 +4873,22 @@ function ls(e, t, r) {
4912
4873
  b,
4913
4874
  _,
4914
4875
  S,
4915
- P,
4876
+ H,
4916
4877
  n,
4917
4878
  i,
4918
4879
  s,
4919
- o,
4920
- q
4880
+ a,
4881
+ z
4921
4882
  ];
4922
4883
  }
4923
- class Sr extends Jr {
4884
+ class yr extends Gr {
4924
4885
  constructor(t) {
4925
- super(), Zr(
4886
+ super(), Dr(
4926
4887
  this,
4927
4888
  t,
4928
- ls,
4929
- us,
4930
- Ut,
4889
+ Yi,
4890
+ Ji,
4891
+ Lt,
4931
4892
  {
4932
4893
  cmsendpoint: 12,
4933
4894
  env: 13,
@@ -4937,110 +4898,110 @@ class Sr extends Jr {
4937
4898
  clientstylingurl: 2,
4938
4899
  translationurl: 3
4939
4900
  },
4940
- is
4901
+ zi
4941
4902
  );
4942
4903
  }
4943
4904
  get cmsendpoint() {
4944
4905
  return this.$$.ctx[12];
4945
4906
  }
4946
4907
  set cmsendpoint(t) {
4947
- this.$$set({ cmsendpoint: t }), U();
4908
+ this.$$set({ cmsendpoint: t }), D();
4948
4909
  }
4949
4910
  get env() {
4950
4911
  return this.$$.ctx[13];
4951
4912
  }
4952
4913
  set env(t) {
4953
- this.$$set({ env: t }), U();
4914
+ this.$$set({ env: t }), D();
4954
4915
  }
4955
4916
  get userroles() {
4956
4917
  return this.$$.ctx[14];
4957
4918
  }
4958
4919
  set userroles(t) {
4959
- this.$$set({ userroles: t }), U();
4920
+ this.$$set({ userroles: t }), D();
4960
4921
  }
4961
4922
  get lang() {
4962
4923
  return this.$$.ctx[0];
4963
4924
  }
4964
4925
  set lang(t) {
4965
- this.$$set({ lang: t }), U();
4926
+ this.$$set({ lang: t }), D();
4966
4927
  }
4967
4928
  get clientstyling() {
4968
4929
  return this.$$.ctx[1];
4969
4930
  }
4970
4931
  set clientstyling(t) {
4971
- this.$$set({ clientstyling: t }), U();
4932
+ this.$$set({ clientstyling: t }), D();
4972
4933
  }
4973
4934
  get clientstylingurl() {
4974
4935
  return this.$$.ctx[2];
4975
4936
  }
4976
4937
  set clientstylingurl(t) {
4977
- this.$$set({ clientstylingurl: t }), U();
4938
+ this.$$set({ clientstylingurl: t }), D();
4978
4939
  }
4979
4940
  get translationurl() {
4980
4941
  return this.$$.ctx[3];
4981
4942
  }
4982
4943
  set translationurl(t) {
4983
- this.$$set({ translationurl: t }), U();
4944
+ this.$$set({ translationurl: t }), D();
4984
4945
  }
4985
4946
  }
4986
- Qr(Sr, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4987
- const Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4947
+ Ur(yr, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4948
+ const _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4988
4949
  __proto__: null,
4989
- default: Sr
4950
+ default: yr
4990
4951
  }, Symbol.toStringTag, { value: "Module" }));
4991
4952
  export {
4992
- se as $,
4993
- ds as A,
4994
- Ur as B,
4995
- Mr as C,
4996
- A as D,
4997
- fs as E,
4998
- ts as F,
4999
- Rr as G,
5000
- ys as H,
5001
- vs as I,
5002
- Ss as J,
5003
- Fe as K,
5004
- Es as L,
5005
- W as M,
5006
- gs as N,
5007
- de as O,
4953
+ ie as $,
4954
+ ts as A,
4955
+ Pr as B,
4956
+ wr as C,
4957
+ P as D,
4958
+ Ki as E,
4959
+ Vi as F,
4960
+ Tr as G,
4961
+ ss as H,
4962
+ us as I,
4963
+ fs as J,
4964
+ Ue as K,
4965
+ ls as L,
4966
+ X as M,
4967
+ os as N,
4968
+ ce as O,
5008
4969
  m as P,
5009
- rs as Q,
5010
- _s as R,
5011
- Jr as S,
5012
- xs as T,
5013
- ws as U,
5014
- Os as V,
5015
- As as W,
5016
- Ps as X,
5017
- bs as Y,
5018
- Te as Z,
5019
- Is as _,
5020
- yr as a,
5021
- Cr as b,
5022
- Qr as c,
5023
- k as d,
5024
- M as e,
5025
- U as f,
5026
- Hs as g,
5027
- Vt as h,
5028
- Zr as i,
5029
- D as j,
5030
- Ir as k,
5031
- Ts as l,
5032
- xr as m,
5033
- Ue as n,
5034
- kr as o,
5035
- cs as p,
5036
- ct as q,
5037
- $r as r,
5038
- Ut as s,
5039
- Bs as t,
5040
- tt as u,
5041
- X as v,
5042
- ce as w,
5043
- ht as x,
5044
- ps as y,
5045
- ms as z
4970
+ Xi as Q,
4971
+ as as R,
4972
+ Gr as S,
4973
+ hs as T,
4974
+ cs as U,
4975
+ gs as V,
4976
+ ys as W,
4977
+ bs as X,
4978
+ is as Y,
4979
+ we as Z,
4980
+ _s as _,
4981
+ fr as a,
4982
+ Er as b,
4983
+ Ur as c,
4984
+ j as d,
4985
+ N as e,
4986
+ D as f,
4987
+ ps as g,
4988
+ Dt as h,
4989
+ Dr as i,
4990
+ $ as j,
4991
+ vr as k,
4992
+ ds as l,
4993
+ br as m,
4994
+ $e as n,
4995
+ Cr as o,
4996
+ es as p,
4997
+ ot as q,
4998
+ Hr as r,
4999
+ Lt as s,
5000
+ ms as t,
5001
+ Ke as u,
5002
+ V as v,
5003
+ fe as w,
5004
+ it as x,
5005
+ rs as y,
5006
+ ns as z
5046
5007
  };