@everymatrix/casino-page-nd 1.54.12 → 1.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/components/CasinoCalendar-BUWW4Xzj.cjs +6 -0
  2. package/components/{CasinoCalendar-DqqWE3PZ.js → CasinoCalendar-DwKH1vl3.js} +972 -928
  3. package/components/{CasinoCalendar-BzhZkzgP.js → CasinoCalendar-tMtCN0uW.js} +939 -895
  4. package/components/CasinoCalendarDailyDetails-B1yNq5WP.cjs +1 -0
  5. package/components/CasinoCalendarDailyDetails-BP_ANGdX.js +693 -0
  6. package/components/CasinoCalendarDailyDetails-CehhK4Vt.js +693 -0
  7. package/components/CasinoCalendarDailyItem-C08Z_td-.cjs +1 -0
  8. package/components/CasinoCalendarDailyItem-Cf-elj80.js +306 -0
  9. package/components/CasinoCalendarDailyItem-DE7Q_O2x.js +306 -0
  10. package/components/CasinoCollectionsProviders-C0mIOrt5.cjs +1 -0
  11. package/components/CasinoCollectionsProviders-DoRepmON.js +659 -0
  12. package/components/CasinoCollectionsProviders-Yt2ApEP5.js +654 -0
  13. package/components/{CasinoFavoritesSectionNd-BaYSblX2.js → CasinoFavoritesSectionNd-B02g5uyD.js} +149 -142
  14. package/components/{CasinoFavoritesSectionNd-DPO11eIl.js → CasinoFavoritesSectionNd-Bza8UQ0r.js} +149 -142
  15. package/components/CasinoFavoritesSectionNd-CnSYWIJi.cjs +1 -0
  16. package/components/CasinoFilter-BYz1zKUs.cjs +1 -0
  17. package/components/{CasinoFilter-CQA5tRXc.js → CasinoFilter-BbKgy4VX.js} +240 -247
  18. package/components/{CasinoFilter-DarCjn7O.js → CasinoFilter-Cb7FySTm.js} +236 -241
  19. package/components/{CasinoGameThumbnailNd-C8JF_kRW.js → CasinoGameThumbnailNd-6P122Pbb.js} +1335 -1338
  20. package/components/CasinoGameThumbnailNd-DlUJ8jo8.cjs +39 -0
  21. package/components/{CasinoGameThumbnailNd-CMWvCrxU.js → CasinoGameThumbnailNd-Dtq6Pf7M.js} +1335 -1338
  22. package/components/CasinoGamesCategorySectionNd-C1OvVakY.js +3029 -0
  23. package/components/CasinoGamesCategorySectionNd-C1iO2_SR.cjs +1 -0
  24. package/components/{CasinoGamesCategorySectionNd-D97PLCZQ.js → CasinoGamesCategorySectionNd-vmZnCjR8.js} +1135 -1109
  25. package/components/CasinoJackpotBanner-BaqwOwIt.js +688 -0
  26. package/components/CasinoJackpotBanner-DZZsX8IW.cjs +1 -0
  27. package/components/CasinoJackpotBanner-Dnu1YGvy.js +692 -0
  28. package/components/CasinoLastPlayedSectionNd-CYoHFQEu.js +575 -0
  29. package/components/CasinoLastPlayedSectionNd-D-71OOLA.cjs +1 -0
  30. package/components/CasinoLastPlayedSectionNd-DVAEB9Kf.js +575 -0
  31. package/components/{CasinoMostPlayedSectionNd-DBY9uW22.js → CasinoMostPlayedSectionNd-Ce4mFMX2.js} +172 -163
  32. package/components/{CasinoMostPlayedSectionNd-DT0BhU2p.js → CasinoMostPlayedSectionNd-Comi_0uw.js} +172 -163
  33. package/components/CasinoMostPlayedSectionNd-DOFhn6t3.cjs +1 -0
  34. package/components/{CasinoMyGamesNd-BYler1NB.js → CasinoMyGamesNd-C2159D_C.js} +493 -463
  35. package/components/{CasinoMyGamesNd-tEImAPBs.js → CasinoMyGamesNd-CI-YgB5L.js} +499 -469
  36. package/components/CasinoMyGamesNd-Do0Jd4Yy.cjs +1 -0
  37. package/components/{CasinoPageNd-BbdpaE5v.js → CasinoPageNd-CHw9KY4G.js} +1305 -1146
  38. package/components/{CasinoPageNd-CbP1X2KC.js → CasinoPageNd-Cl9m0NgT.js} +1299 -1140
  39. package/components/CasinoPageNd-q_CaW-NM.cjs +1 -0
  40. package/components/{CasinoRandomGame-D1NgXW5u.cjs → CasinoRandomGame-B2FGgsW1.cjs} +2 -2
  41. package/components/{CasinoRandomGame-CGpFFaoE.js → CasinoRandomGame-D9BEuIS2.js} +226 -228
  42. package/components/{CasinoRandomGame-CWMW9E0i.js → CasinoRandomGame-T1GVZYOt.js} +243 -245
  43. package/components/{CasinoSearchNd-BnS9e06D.js → CasinoSearchNd-8l70r1-j.js} +449 -442
  44. package/components/{CasinoSearchNd-Dr-tu25u.js → CasinoSearchNd-DI3QD6gc.js} +486 -479
  45. package/components/CasinoSearchNd-r3Xsk168.cjs +1 -0
  46. package/components/CasinoSort-BmkqSaqQ.cjs +1 -0
  47. package/components/CasinoSort-BwNRVsYT.js +427 -0
  48. package/components/CasinoSort-DykEVPy1.js +428 -0
  49. package/components/CasinoWinners-4fX-Jkcx.cjs +1 -0
  50. package/components/{CasinoWinners-CFPyLxtr.js → CasinoWinners-DbNw8Ecj.js} +345 -342
  51. package/components/{CasinoWinners-Brfa3DHB.js → CasinoWinners-Dn6mLcJT.js} +355 -352
  52. package/components/GeneralAnimationLoading-C3AulHDZ.js +84 -0
  53. package/components/GeneralAnimationLoading-CKfD84TR.js +84 -0
  54. package/components/GeneralAnimationLoading-D4L1aOk8.cjs +1 -0
  55. package/es2015/casino-page-nd.cjs +1 -1
  56. package/es2015/casino-page-nd.js +1 -1
  57. package/esnext/casino-page-nd.js +1 -1
  58. package/package.json +1 -1
  59. package/stencil/{casino-play-random-game-NI77_BKB.js → casino-play-random-game-CBXhEsCq.js} +54 -29
  60. package/stencil/{casino-play-random-game-BxdfOAZj.js → casino-play-random-game-PZXnDzfs.js} +73 -48
  61. package/stencil/{casino-play-random-game-DEBmcc-I.cjs → casino-play-random-game-y8flXwPv.cjs} +2 -2
  62. package/stencil/index-29915e18-B3XYTzEC.cjs +1 -0
  63. package/stencil/{index-8b2c4ca7-BNDGCsVn.js → index-29915e18-CQ_kWzEh.js} +134 -133
  64. package/stencil/{index-8b2c4ca7-CtUqBgXG.js → index-29915e18-MPiqo7vY.js} +131 -130
  65. package/components/CasinoCalendar-D2xyIjnZ.cjs +0 -6
  66. package/components/CasinoCalendarDailyDetails-CNKPmgJW.cjs +0 -1
  67. package/components/CasinoCalendarDailyDetails-DazppRF9.js +0 -701
  68. package/components/CasinoCalendarDailyDetails-qLuUx2VZ.js +0 -701
  69. package/components/CasinoCalendarDailyItem-DKZuA435.js +0 -315
  70. package/components/CasinoCalendarDailyItem-DcdOBbU8.js +0 -315
  71. package/components/CasinoCalendarDailyItem-Dm-IKJx0.cjs +0 -1
  72. package/components/CasinoCollectionsProviders-BpPCl2Cs.cjs +0 -1
  73. package/components/CasinoCollectionsProviders-DDg-M4Ky.js +0 -664
  74. package/components/CasinoCollectionsProviders-DPXPW7Wb.js +0 -659
  75. package/components/CasinoFavoritesSectionNd-BseQ6ntB.cjs +0 -1
  76. package/components/CasinoFilter-bjRSwwQj.cjs +0 -1
  77. package/components/CasinoGameThumbnailNd-M5MyMQqb.cjs +0 -39
  78. package/components/CasinoGamesCategorySectionNd-B7bxi7wJ.js +0 -3003
  79. package/components/CasinoGamesCategorySectionNd-DzkueBMw.cjs +0 -1
  80. package/components/CasinoJackpotBanner-BzQTQP0g.js +0 -618
  81. package/components/CasinoJackpotBanner-CyMIq-Hw.js +0 -614
  82. package/components/CasinoJackpotBanner-DrH5T9F0.cjs +0 -1
  83. package/components/CasinoLastPlayedSectionNd-C-VkTH2C.js +0 -566
  84. package/components/CasinoLastPlayedSectionNd-D7cVedev.js +0 -566
  85. package/components/CasinoLastPlayedSectionNd-K-wgzihy.cjs +0 -1
  86. package/components/CasinoMostPlayedSectionNd-DLd7wPNf.cjs +0 -1
  87. package/components/CasinoMyGamesNd-DQQ8Lo5B.cjs +0 -1
  88. package/components/CasinoPageNd-D9CuZV8a.cjs +0 -1
  89. package/components/CasinoSearchNd-BNECYNN3.cjs +0 -1
  90. package/components/CasinoSort-B5j-QwSa.cjs +0 -1
  91. package/components/CasinoSort-BKXVp_Q-.js +0 -432
  92. package/components/CasinoSort-mWbCQ4MJ.js +0 -431
  93. package/components/CasinoWinners-WPMrk6iO.cjs +0 -1
  94. package/components/GeneralAnimationLoading-CM50RqcF.js +0 -75
  95. package/components/GeneralAnimationLoading-DVXxEF3S.js +0 -75
  96. package/components/GeneralAnimationLoading-DqRALFbY.cjs +0 -1
  97. package/stencil/index-8b2c4ca7-DAQdcMA3.cjs +0 -1
@@ -7,29 +7,29 @@ function yr(e, t) {
7
7
  e
8
8
  );
9
9
  }
10
- function It(e) {
10
+ function Ot(e) {
11
11
  return e();
12
12
  }
13
- function rt() {
13
+ function tt() {
14
14
  return /* @__PURE__ */ Object.create(null);
15
15
  }
16
16
  function X(e) {
17
- e.forEach(It);
17
+ e.forEach(Ot);
18
18
  }
19
19
  function we(e) {
20
20
  return typeof e == "function";
21
21
  }
22
- function Ct(e, t) {
22
+ function It(e, t) {
23
23
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
24
24
  }
25
- let de;
26
- function Yi(e, t) {
27
- return e === t ? !0 : (de || (de = document.createElement("a")), de.href = t, e === de.href);
25
+ let fe;
26
+ function eo(e, t) {
27
+ return e === t ? !0 : (fe || (fe = document.createElement("a")), fe.href = t, e === fe.href);
28
28
  }
29
29
  function gr(e) {
30
30
  return Object.keys(e).length === 0;
31
31
  }
32
- function Lt(e, ...t) {
32
+ function Ct(e, ...t) {
33
33
  if (e == null) {
34
34
  for (const n of t)
35
35
  n(void 0);
@@ -39,18 +39,18 @@ function Lt(e, ...t) {
39
39
  return r.unsubscribe ? () => r.unsubscribe() : r;
40
40
  }
41
41
  function vr(e, t, r) {
42
- e.$$.on_destroy.push(Lt(t, r));
42
+ e.$$.on_destroy.push(Ct(t, r));
43
43
  }
44
- function Ki(e, t, r, n) {
44
+ function to(e, t, r, n) {
45
45
  if (e) {
46
- const i = Nt(e, t, r, n);
46
+ const i = Lt(e, t, r, n);
47
47
  return e[0](i);
48
48
  }
49
49
  }
50
- function Nt(e, t, r, n) {
50
+ function Lt(e, t, r, n) {
51
51
  return e[1] && n ? yr(r.ctx.slice(), e[1](n(t))) : r.ctx;
52
52
  }
53
- function eo(e, t, r, n) {
53
+ function ro(e, t, r, n) {
54
54
  if (e[2] && n) {
55
55
  const i = e[2](n(r));
56
56
  if (t.dirty === void 0)
@@ -65,13 +65,13 @@ function eo(e, t, r, n) {
65
65
  }
66
66
  return t.dirty;
67
67
  }
68
- function to(e, t, r, n, i, o) {
68
+ function no(e, t, r, n, i, o) {
69
69
  if (i) {
70
- const a = Nt(t, r, n, o);
70
+ const a = Lt(t, r, n, o);
71
71
  e.p(a, i);
72
72
  }
73
73
  }
74
- function ro(e) {
74
+ function io(e) {
75
75
  if (e.ctx.length > 32) {
76
76
  const t = [], r = e.ctx.length / 32;
77
77
  for (let n = 0; n < r; n++)
@@ -80,16 +80,16 @@ function ro(e) {
80
80
  }
81
81
  return -1;
82
82
  }
83
- function no(e) {
83
+ function oo(e) {
84
84
  return e && we(e.destroy) ? e.destroy : P;
85
85
  }
86
- function ce(e, t) {
86
+ function he(e, t) {
87
87
  e.appendChild(t);
88
88
  }
89
89
  function _r(e, t, r) {
90
90
  const n = Er(e);
91
91
  if (!n.getElementById(t)) {
92
- const i = N("style");
92
+ const i = L("style");
93
93
  i.id = t, i.textContent = r, xr(n, i);
94
94
  }
95
95
  }
@@ -103,51 +103,51 @@ function Er(e) {
103
103
  ) : e.ownerDocument;
104
104
  }
105
105
  function xr(e, t) {
106
- return ce(
106
+ return he(
107
107
  /** @type {Document} */
108
108
  e.head || e,
109
109
  t
110
110
  ), t.sheet;
111
111
  }
112
- function j(e, t, r) {
112
+ function k(e, t, r) {
113
113
  e.insertBefore(t, r || null);
114
114
  }
115
115
  function $(e) {
116
116
  e.parentNode && e.parentNode.removeChild(e);
117
117
  }
118
- function Sr(e, t) {
118
+ function wr(e, t) {
119
119
  for (let r = 0; r < e.length; r += 1)
120
120
  e[r] && e[r].d(t);
121
121
  }
122
- function N(e) {
122
+ function L(e) {
123
123
  return document.createElement(e);
124
124
  }
125
- function wr(e) {
125
+ function Sr(e) {
126
126
  return document.createElementNS("http://www.w3.org/2000/svg", e);
127
127
  }
128
- function Ke(e) {
128
+ function Ye(e) {
129
129
  return document.createTextNode(e);
130
130
  }
131
131
  function Tr() {
132
- return Ke(" ");
132
+ return Ye(" ");
133
133
  }
134
- function io() {
135
- return Ke("");
134
+ function so() {
135
+ return Ye("");
136
136
  }
137
- function nt(e, t, r, n) {
137
+ function rt(e, t, r, n) {
138
138
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
139
139
  }
140
- function oo(e) {
140
+ function ao(e) {
141
141
  return function(t) {
142
142
  return t.stopPropagation(), e.call(this, t);
143
143
  };
144
144
  }
145
- function V(e, t, r) {
145
+ function j(e, t, r) {
146
146
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
147
147
  }
148
- function m(e, t, r) {
148
+ function p(e, t, r) {
149
149
  const n = t.toLowerCase();
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);
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 : j(e, t, r);
151
151
  }
152
152
  function Hr(e) {
153
153
  return Array.from(e.childNodes);
@@ -156,34 +156,34 @@ function Br(e, t) {
156
156
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
157
157
  t);
158
158
  }
159
- function so(e, t) {
159
+ function uo(e, t) {
160
160
  e.value = t ?? "";
161
161
  }
162
- function ao(e, t, r, n) {
162
+ function lo(e, t, r, n) {
163
163
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
164
164
  }
165
- let pe;
165
+ let de;
166
166
  function Pr() {
167
- if (pe === void 0) {
168
- pe = !1;
167
+ if (de === void 0) {
168
+ de = !1;
169
169
  try {
170
170
  typeof window < "u" && window.parent && window.parent.document;
171
171
  } catch {
172
- pe = !0;
172
+ de = !0;
173
173
  }
174
174
  }
175
- return pe;
175
+ return de;
176
176
  }
177
- function uo(e, t) {
177
+ function ho(e, t) {
178
178
  getComputedStyle(e).position === "static" && (e.style.position = "relative");
179
- const n = N("iframe");
179
+ const n = L("iframe");
180
180
  n.setAttribute(
181
181
  "style",
182
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;"
183
183
  ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
184
184
  const i = Pr();
185
185
  let o;
186
- return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = nt(
186
+ return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", o = rt(
187
187
  window,
188
188
  "message",
189
189
  /** @param {MessageEvent} event */
@@ -191,15 +191,15 @@ function uo(e, t) {
191
191
  a.source === n.contentWindow && t();
192
192
  }
193
193
  )) : (n.src = "about:blank", n.onload = () => {
194
- o = nt(n.contentWindow, "resize", t), t();
195
- }), ce(e, n), () => {
194
+ o = rt(n.contentWindow, "resize", t), t();
195
+ }), he(e, n), () => {
196
196
  (i || o && n.contentWindow) && o(), $(n);
197
197
  };
198
198
  }
199
- function lo(e, t, r) {
199
+ function co(e, t, r) {
200
200
  e.classList.toggle(t, !!r);
201
201
  }
202
- class ho {
202
+ class fo {
203
203
  /**
204
204
  * @private
205
205
  * @default false
@@ -230,10 +230,10 @@ class ho {
230
230
  * @returns {void}
231
231
  */
232
232
  m(t, r, n = null) {
233
- this.e || (this.is_svg ? this.e = wr(
233
+ this.e || (this.is_svg ? this.e = Sr(
234
234
  /** @type {keyof SVGElementTagNameMap} */
235
235
  r.nodeName
236
- ) : this.e = N(
236
+ ) : this.e = L(
237
237
  /** @type {keyof HTMLElementTagNameMap} */
238
238
  r.nodeType === 11 ? "TEMPLATE" : r.nodeName
239
239
  ), this.t = r.tagName !== "TEMPLATE" ? r : (
@@ -254,7 +254,7 @@ class ho {
254
254
  * @returns {void} */
255
255
  i(t) {
256
256
  for (let r = 0; r < this.n.length; r += 1)
257
- j(this.t, this.n[r], t);
257
+ k(this.t, this.n[r], t);
258
258
  }
259
259
  /**
260
260
  * @param {string} html
@@ -278,139 +278,142 @@ function Ar(e) {
278
278
  }
279
279
  ), t;
280
280
  }
281
- let ue;
282
- function ae(e) {
283
- ue = e;
281
+ let ae;
282
+ function se(e) {
283
+ ae = e;
284
284
  }
285
- function Or() {
286
- if (!ue) throw new Error("Function called outside component initialization");
287
- return ue;
285
+ function Nt() {
286
+ if (!ae) throw new Error("Function called outside component initialization");
287
+ return ae;
288
288
  }
289
- function Ir(e) {
290
- Or().$$.on_mount.push(e);
289
+ function Or(e) {
290
+ Nt().$$.on_mount.push(e);
291
+ }
292
+ function po(e) {
293
+ Nt().$$.on_destroy.push(e);
291
294
  }
292
- const Q = [], $e = [];
295
+ const Q = [], Re = [];
293
296
  let J = [];
294
- const it = [], Mt = /* @__PURE__ */ Promise.resolve();
295
- let De = !1;
297
+ const nt = [], Mt = /* @__PURE__ */ Promise.resolve();
298
+ let $e = !1;
296
299
  function Rt() {
297
- De || (De = !0, Mt.then(D));
300
+ $e || ($e = !0, Mt.then(R));
298
301
  }
299
- function co() {
302
+ function mo() {
300
303
  return Rt(), Mt;
301
304
  }
302
- function Ue(e) {
305
+ function De(e) {
303
306
  J.push(e);
304
307
  }
305
- const Oe = /* @__PURE__ */ new Set();
306
- let q = 0;
307
- function D() {
308
- if (q !== 0)
308
+ const Ae = /* @__PURE__ */ new Set();
309
+ let z = 0;
310
+ function R() {
311
+ if (z !== 0)
309
312
  return;
310
- const e = ue;
313
+ const e = ae;
311
314
  do {
312
315
  try {
313
- for (; q < Q.length; ) {
314
- const t = Q[q];
315
- q++, ae(t), Cr(t.$$);
316
+ for (; z < Q.length; ) {
317
+ const t = Q[z];
318
+ z++, se(t), Ir(t.$$);
316
319
  }
317
320
  } catch (t) {
318
- throw Q.length = 0, q = 0, t;
321
+ throw Q.length = 0, z = 0, t;
319
322
  }
320
- for (ae(null), Q.length = 0, q = 0; $e.length; ) $e.pop()();
323
+ for (se(null), Q.length = 0, z = 0; Re.length; ) Re.pop()();
321
324
  for (let t = 0; t < J.length; t += 1) {
322
325
  const r = J[t];
323
- Oe.has(r) || (Oe.add(r), r());
326
+ Ae.has(r) || (Ae.add(r), r());
324
327
  }
325
328
  J.length = 0;
326
329
  } while (Q.length);
327
- for (; it.length; )
328
- it.pop()();
329
- De = !1, Oe.clear(), ae(e);
330
+ for (; nt.length; )
331
+ nt.pop()();
332
+ $e = !1, Ae.clear(), se(e);
330
333
  }
331
- function Cr(e) {
334
+ function Ir(e) {
332
335
  if (e.fragment !== null) {
333
336
  e.update(), X(e.before_update);
334
337
  const t = e.dirty;
335
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ue);
338
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(De);
336
339
  }
337
340
  }
338
- function Lr(e) {
341
+ function Cr(e) {
339
342
  const t = [], r = [];
340
343
  J.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), J = t;
341
344
  }
342
- const ye = /* @__PURE__ */ new Set();
343
- let k;
344
- function fo() {
345
- k = {
345
+ const be = /* @__PURE__ */ new Set();
346
+ let V;
347
+ function bo() {
348
+ V = {
346
349
  r: 0,
347
350
  c: [],
348
- p: k
351
+ p: V
349
352
  // parent group
350
353
  };
351
354
  }
352
- function po() {
353
- k.r || X(k.c), k = k.p;
355
+ function yo() {
356
+ V.r || X(V.c), V = V.p;
354
357
  }
355
358
  function $t(e, t) {
356
- e && e.i && (ye.delete(e), e.i(t));
359
+ e && e.i && (be.delete(e), e.i(t));
357
360
  }
358
- function mo(e, t, r, n) {
361
+ function go(e, t, r, n) {
359
362
  if (e && e.o) {
360
- if (ye.has(e)) return;
361
- ye.add(e), k.c.push(() => {
362
- ye.delete(e), n && (r && e.d(1), n());
363
+ if (be.has(e)) return;
364
+ be.add(e), V.c.push(() => {
365
+ be.delete(e), n && (r && e.d(1), n());
363
366
  }), e.o(t);
364
367
  } else n && n();
365
368
  }
366
- function ot(e) {
369
+ function it(e) {
367
370
  return e?.length !== void 0 ? e : Array.from(e);
368
371
  }
369
- function bo(e, t) {
372
+ function vo(e, t) {
370
373
  e.d(1), t.delete(e.key);
371
374
  }
372
- function yo(e, t, r, n, i, o, a, s, l, u, h, f) {
373
- let c = e.length, p = o.length, b = c;
374
- const v = {};
375
- for (; b--; ) v[e[b].key] = b;
376
- const S = [], A = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), w = [];
377
- for (b = p; b--; ) {
378
- const E = f(i, o, 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 v && H.set(I, Math.abs(b - v[I]));
375
+ function _o(e, t, r, n, i, o, a, s, l, u, h, f) {
376
+ let c = e.length, m = o.length, b = c;
377
+ const g = {};
378
+ for (; b--; ) g[e[b].key] = b;
379
+ const w = [], A = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), S = [];
380
+ for (b = m; b--; ) {
381
+ const x = f(i, o, b), B = r(x);
382
+ let I = a.get(B);
383
+ I ? S.push(() => I.p(x, t)) : (I = u(B, x), I.c()), A.set(B, w[b] = I), B in g && H.set(B, Math.abs(b - g[B]));
381
384
  }
382
- const M = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Set();
383
- function R(E) {
384
- $t(E, 1), E.m(s, h), a.set(E.key, E), h = E.first, p--;
385
+ const N = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Set();
386
+ function M(x) {
387
+ $t(x, 1), x.m(s, h), a.set(x.key, x), h = x.first, m--;
385
388
  }
386
- for (; c && p; ) {
387
- const E = S[p - 1], I = e[c - 1], C = E.key, z = I.key;
388
- E === I ? (h = E.first, c--, p--) : A.has(z) ? !a.has(C) || M.has(C) ? R(E) : O.has(z) ? c-- : H.get(C) > H.get(z) ? (O.add(C), R(E)) : (M.add(z), c--) : (l(I, a), c--);
389
+ for (; c && m; ) {
390
+ const x = w[m - 1], B = e[c - 1], I = x.key, d = B.key;
391
+ x === B ? (h = x.first, c--, m--) : A.has(d) ? !a.has(I) || N.has(I) ? M(x) : O.has(d) ? c-- : H.get(I) > H.get(d) ? (O.add(I), M(x)) : (N.add(d), c--) : (l(B, a), c--);
389
392
  }
390
393
  for (; c--; ) {
391
- const E = e[c];
392
- A.has(E.key) || l(E, a);
394
+ const x = e[c];
395
+ A.has(x.key) || l(x, a);
393
396
  }
394
- for (; p; ) R(S[p - 1]);
395
- return X(w), S;
397
+ for (; m; ) M(w[m - 1]);
398
+ return X(S), w;
396
399
  }
397
- function Nr(e, t, r) {
400
+ function Lr(e, t, r) {
398
401
  const { fragment: n, after_update: i } = e.$$;
399
- n && n.m(t, r), Ue(() => {
400
- const o = e.$$.on_mount.map(It).filter(we);
402
+ n && n.m(t, r), De(() => {
403
+ const o = e.$$.on_mount.map(Ot).filter(we);
401
404
  e.$$.on_destroy ? e.$$.on_destroy.push(...o) : X(o), e.$$.on_mount = [];
402
- }), i.forEach(Ue);
405
+ }), i.forEach(De);
403
406
  }
404
- function Mr(e, t) {
407
+ function Nr(e, t) {
405
408
  const r = e.$$;
406
- r.fragment !== null && (Lr(r.after_update), X(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
409
+ r.fragment !== null && (Cr(r.after_update), X(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
407
410
  }
408
- function Rr(e, t) {
411
+ function Mr(e, t) {
409
412
  e.$$.dirty[0] === -1 && (Q.push(e), Rt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
410
413
  }
411
- function $r(e, t, r, n, i, o, a = null, s = [-1]) {
412
- const l = ue;
413
- ae(e);
414
+ function Rr(e, t, r, n, i, o, a = null, s = [-1]) {
415
+ const l = ae;
416
+ se(e);
414
417
  const u = e.$$ = {
415
418
  fragment: null,
416
419
  ctx: [],
@@ -418,7 +421,7 @@ function $r(e, t, r, n, i, o, a = null, s = [-1]) {
418
421
  props: o,
419
422
  update: P,
420
423
  not_equal: i,
421
- bound: rt(),
424
+ bound: tt(),
422
425
  // lifecycle
423
426
  on_mount: [],
424
427
  on_destroy: [],
@@ -427,25 +430,25 @@ function $r(e, t, r, n, i, o, a = null, s = [-1]) {
427
430
  after_update: [],
428
431
  context: new Map(t.context || (l ? l.$$.context : [])),
429
432
  // everything else
430
- callbacks: rt(),
433
+ callbacks: tt(),
431
434
  dirty: s,
432
435
  skip_bound: !1,
433
436
  root: t.target || l.$$.root
434
437
  };
435
438
  a && a(u.root);
436
439
  let h = !1;
437
- if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
438
- const b = p.length ? p[0] : c;
439
- return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h && Rr(e, f)), c;
440
+ if (u.ctx = r ? r(e, t.props || {}, (f, c, ...m) => {
441
+ const b = m.length ? m[0] : c;
442
+ return u.ctx && i(u.ctx[f], u.ctx[f] = b) && (!u.skip_bound && u.bound[f] && u.bound[f](b), h && Mr(e, f)), c;
440
443
  }) : [], u.update(), h = !0, X(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
441
444
  if (t.hydrate) {
442
445
  const f = Hr(t.target);
443
446
  u.fragment && u.fragment.l(f), f.forEach($);
444
447
  } else
445
448
  u.fragment && u.fragment.c();
446
- t.intro && $t(e.$$.fragment), Nr(e, t.target, t.anchor), D();
449
+ t.intro && $t(e.$$.fragment), Lr(e, t.target, t.anchor), R();
447
450
  }
448
- ae(l);
451
+ se(l);
449
452
  }
450
453
  let Dt;
451
454
  typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
@@ -490,14 +493,14 @@ typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
490
493
  let o;
491
494
  return {
492
495
  c: function() {
493
- o = N("slot"), i !== "default" && V(o, "name", i);
496
+ o = L("slot"), i !== "default" && j(o, "name", i);
494
497
  },
495
498
  /**
496
499
  * @param {HTMLElement} target
497
500
  * @param {HTMLElement} [anchor]
498
501
  */
499
502
  m: function(l, u) {
500
- j(l, o, u);
503
+ k(l, o, u);
501
504
  },
502
505
  d: function(l) {
503
506
  l && $(o);
@@ -512,7 +515,7 @@ typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
512
515
  i in r && (t[i] = [e(i)]);
513
516
  for (const i of this.attributes) {
514
517
  const o = this.$$g_p(i.name);
515
- o in this.$$d || (this.$$d[o] = ge(o, i.value, this.$$p_d, "toProp"));
518
+ o in this.$$d || (this.$$d[o] = ye(o, i.value, this.$$p_d, "toProp"));
516
519
  }
517
520
  for (const i in this.$$p_d)
518
521
  !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
@@ -530,7 +533,7 @@ typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
530
533
  this.$$r = !0;
531
534
  for (const i in this.$$p_d)
532
535
  if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
533
- const o = ge(
536
+ const o = ye(
534
537
  i,
535
538
  this.$$d[i],
536
539
  this.$$p_d,
@@ -552,7 +555,7 @@ typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
552
555
  // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
553
556
  // and setting attributes through setAttribute etc, this is helpful
554
557
  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] }));
558
+ this.$$r || (e = this.$$g_p(e), this.$$d[e] = ye(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
556
559
  }
557
560
  disconnectedCallback() {
558
561
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -565,7 +568,7 @@ typeof HTMLElement == "function" && (Dt = class extends HTMLElement {
565
568
  ) || e;
566
569
  }
567
570
  });
568
- function ge(e, t, r, n) {
571
+ function ye(e, t, r, n) {
569
572
  const i = r[e]?.type;
570
573
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
571
574
  return t;
@@ -594,7 +597,7 @@ function ge(e, t, r, n) {
594
597
  return t;
595
598
  }
596
599
  }
597
- function Dr(e, t, r, n, i, o) {
600
+ function $r(e, t, r, n, i, o) {
598
601
  let a = class extends Dt {
599
602
  constructor() {
600
603
  super(e, r, i), this.$$p_d = t;
@@ -611,7 +614,7 @@ function Dr(e, t, r, n, i, o) {
611
614
  return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
612
615
  },
613
616
  set(l) {
614
- l = ge(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
617
+ l = ye(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
615
618
  }
616
619
  });
617
620
  }), n.forEach((s) => {
@@ -623,7 +626,7 @@ function Dr(e, t, r, n, i, o) {
623
626
  }), e.element = /** @type {any} */
624
627
  a, a;
625
628
  }
626
- class Ur {
629
+ class Dr {
627
630
  /**
628
631
  * ### PRIVATE API
629
632
  *
@@ -642,7 +645,7 @@ class Ur {
642
645
  $$set = void 0;
643
646
  /** @returns {void} */
644
647
  $destroy() {
645
- Mr(this, 1), this.$destroy = P;
648
+ Nr(this, 1), this.$destroy = P;
646
649
  }
647
650
  /**
648
651
  * @template {Extract<keyof Events, string>} K
@@ -667,19 +670,19 @@ class Ur {
667
670
  this.$$set && !gr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
668
671
  }
669
672
  }
670
- const Gr = "4";
671
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Gr);
672
- var Ge = function(e, t) {
673
- return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
673
+ const Ur = "4";
674
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ur);
675
+ var Ue = function(e, t) {
676
+ return Ue = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
674
677
  r.__proto__ = n;
675
678
  } || function(r, n) {
676
679
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
677
- }, Ge(e, t);
680
+ }, Ue(e, t);
678
681
  };
679
- function G(e, t) {
682
+ function U(e, t) {
680
683
  if (typeof t != "function" && t !== null)
681
684
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
682
- Ge(e, t);
685
+ Ue(e, t);
683
686
  function r() {
684
687
  this.constructor = e;
685
688
  }
@@ -694,7 +697,7 @@ var _ = function() {
694
697
  return t;
695
698
  }, _.apply(this, arguments);
696
699
  };
697
- function Fr(e, t) {
700
+ function Gr(e, t) {
698
701
  var r = {};
699
702
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
700
703
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -702,7 +705,7 @@ function Fr(e, t) {
702
705
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
703
706
  return r;
704
707
  }
705
- function Fe(e) {
708
+ function Ge(e) {
706
709
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
707
710
  if (r) return r.call(e);
708
711
  if (e && typeof e.length == "number") return {
@@ -712,7 +715,7 @@ function Fe(e) {
712
715
  };
713
716
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
714
717
  }
715
- function je(e, t) {
718
+ function Fe(e, t) {
716
719
  var r = typeof Symbol == "function" && e[Symbol.iterator];
717
720
  if (!r) return e;
718
721
  var n = r.call(e), i, o = [], a;
@@ -729,12 +732,12 @@ function je(e, t) {
729
732
  }
730
733
  return o;
731
734
  }
732
- function Y(e, t, r) {
735
+ function q(e, t, r) {
733
736
  if (r || arguments.length === 2) for (var n = 0, i = t.length, o; n < i; n++)
734
737
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
735
738
  return e.concat(o || Array.prototype.slice.call(t));
736
739
  }
737
- function U(e) {
740
+ function D(e) {
738
741
  return typeof e == "function";
739
742
  }
740
743
  function Ut(e) {
@@ -743,7 +746,7 @@ function Ut(e) {
743
746
  }, r = e(t);
744
747
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
745
748
  }
746
- var Ie = Ut(function(e) {
749
+ var Oe = Ut(function(e) {
747
750
  return function(r) {
748
751
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
749
752
  ` + r.map(function(n, i) {
@@ -752,13 +755,13 @@ var Ie = Ut(function(e) {
752
755
  `) : "", this.name = "UnsubscriptionError", this.errors = r;
753
756
  };
754
757
  });
755
- function ke(e, t) {
758
+ function je(e, t) {
756
759
  if (e) {
757
760
  var r = e.indexOf(t);
758
761
  0 <= r && e.splice(r, 1);
759
762
  }
760
763
  }
761
- var Te = function() {
764
+ var Se = function() {
762
765
  function e(t) {
763
766
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
764
767
  }
@@ -770,12 +773,12 @@ var Te = function() {
770
773
  if (a)
771
774
  if (this._parentage = null, Array.isArray(a))
772
775
  try {
773
- for (var s = Fe(a), l = s.next(); !l.done; l = s.next()) {
776
+ for (var s = Ge(a), l = s.next(); !l.done; l = s.next()) {
774
777
  var u = l.value;
775
778
  u.remove(this);
776
779
  }
777
- } catch (v) {
778
- t = { error: v };
780
+ } catch (g) {
781
+ t = { error: g };
779
782
  } finally {
780
783
  try {
781
784
  l && !l.done && (r = s.return) && r.call(s);
@@ -786,42 +789,42 @@ var Te = function() {
786
789
  else
787
790
  a.remove(this);
788
791
  var h = this.initialTeardown;
789
- if (U(h))
792
+ if (D(h))
790
793
  try {
791
794
  h();
792
- } catch (v) {
793
- o = v instanceof Ie ? v.errors : [v];
795
+ } catch (g) {
796
+ o = g instanceof Oe ? g.errors : [g];
794
797
  }
795
798
  var f = this._finalizers;
796
799
  if (f) {
797
800
  this._finalizers = null;
798
801
  try {
799
- for (var c = Fe(f), p = c.next(); !p.done; p = c.next()) {
800
- var b = p.value;
802
+ for (var c = Ge(f), m = c.next(); !m.done; m = c.next()) {
803
+ var b = m.value;
801
804
  try {
802
- st(b);
803
- } catch (v) {
804
- o = o ?? [], v instanceof Ie ? o = Y(Y([], je(o)), je(v.errors)) : o.push(v);
805
+ ot(b);
806
+ } catch (g) {
807
+ o = o ?? [], g instanceof Oe ? o = q(q([], Fe(o)), Fe(g.errors)) : o.push(g);
805
808
  }
806
809
  }
807
- } catch (v) {
808
- n = { error: v };
810
+ } catch (g) {
811
+ n = { error: g };
809
812
  } finally {
810
813
  try {
811
- p && !p.done && (i = c.return) && i.call(c);
814
+ m && !m.done && (i = c.return) && i.call(c);
812
815
  } finally {
813
816
  if (n) throw n.error;
814
817
  }
815
818
  }
816
819
  }
817
820
  if (o)
818
- throw new Ie(o);
821
+ throw new Oe(o);
819
822
  }
820
823
  }, e.prototype.add = function(t) {
821
824
  var r;
822
825
  if (t && t !== this)
823
826
  if (this.closed)
824
- st(t);
827
+ ot(t);
825
828
  else {
826
829
  if (t instanceof e) {
827
830
  if (t.closed || t._hasParent(this))
@@ -838,52 +841,52 @@ var Te = function() {
838
841
  this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
839
842
  }, e.prototype._removeParent = function(t) {
840
843
  var r = this._parentage;
841
- r === t ? this._parentage = null : Array.isArray(r) && ke(r, t);
844
+ r === t ? this._parentage = null : Array.isArray(r) && je(r, t);
842
845
  }, e.prototype.remove = function(t) {
843
846
  var r = this._finalizers;
844
- r && ke(r, t), t instanceof e && t._removeParent(this);
847
+ r && je(r, t), t instanceof e && t._removeParent(this);
845
848
  }, e.EMPTY = function() {
846
849
  var t = new e();
847
850
  return t.closed = !0, t;
848
851
  }(), e;
849
- }(), Gt = Te.EMPTY;
852
+ }(), Gt = Se.EMPTY;
850
853
  function Ft(e) {
851
- return e instanceof Te || e && "closed" in e && U(e.remove) && U(e.add) && U(e.unsubscribe);
854
+ return e instanceof Se || e && "closed" in e && D(e.remove) && D(e.add) && D(e.unsubscribe);
852
855
  }
853
- function st(e) {
854
- U(e) ? e() : e.unsubscribe();
856
+ function ot(e) {
857
+ D(e) ? e() : e.unsubscribe();
855
858
  }
856
- var jr = {
859
+ var Fr = {
857
860
  Promise: void 0
858
- }, kr = {
861
+ }, jr = {
859
862
  setTimeout: function(e, t) {
860
863
  for (var r = [], n = 2; n < arguments.length; n++)
861
864
  r[n - 2] = arguments[n];
862
- return setTimeout.apply(void 0, Y([e, t], je(r)));
865
+ return setTimeout.apply(void 0, q([e, t], Fe(r)));
863
866
  },
864
867
  clearTimeout: function(e) {
865
868
  return clearTimeout(e);
866
869
  },
867
870
  delegate: void 0
868
871
  };
869
- function Vr(e) {
870
- kr.setTimeout(function() {
872
+ function kr(e) {
873
+ jr.setTimeout(function() {
871
874
  throw e;
872
875
  });
873
876
  }
874
- function at() {
877
+ function st() {
875
878
  }
876
- function ve(e) {
879
+ function ge(e) {
877
880
  e();
878
881
  }
879
882
  var jt = function(e) {
880
- G(t, e);
883
+ U(t, e);
881
884
  function t(r) {
882
885
  var n = e.call(this) || this;
883
- return n.isStopped = !1, r ? (n.destination = r, Ft(r) && r.add(n)) : n.destination = zr, n;
886
+ return n.isStopped = !1, r ? (n.destination = r, Ft(r) && r.add(n)) : n.destination = Wr, n;
884
887
  }
885
888
  return t.create = function(r, n, i) {
886
- return new Ve(r, n, i);
889
+ return new ke(r, n, i);
887
890
  }, t.prototype.next = function(r) {
888
891
  this.isStopped || this._next(r);
889
892
  }, t.prototype.error = function(r) {
@@ -907,7 +910,7 @@ var jt = function(e) {
907
910
  this.unsubscribe();
908
911
  }
909
912
  }, t;
910
- }(Te), Xr = function() {
913
+ }(Se), Vr = function() {
911
914
  function e(t) {
912
915
  this.partialObserver = t;
913
916
  }
@@ -917,7 +920,7 @@ var jt = function(e) {
917
920
  try {
918
921
  r.next(t);
919
922
  } catch (n) {
920
- me(n);
923
+ pe(n);
921
924
  }
922
925
  }, e.prototype.error = function(t) {
923
926
  var r = this.partialObserver;
@@ -925,43 +928,43 @@ var jt = function(e) {
925
928
  try {
926
929
  r.error(t);
927
930
  } catch (n) {
928
- me(n);
931
+ pe(n);
929
932
  }
930
933
  else
931
- me(t);
934
+ pe(t);
932
935
  }, e.prototype.complete = function() {
933
936
  var t = this.partialObserver;
934
937
  if (t.complete)
935
938
  try {
936
939
  t.complete();
937
940
  } catch (r) {
938
- me(r);
941
+ pe(r);
939
942
  }
940
943
  }, e;
941
- }(), Ve = function(e) {
942
- G(t, e);
944
+ }(), ke = function(e) {
945
+ U(t, e);
943
946
  function t(r, n, i) {
944
947
  var o = e.call(this) || this, a;
945
- return U(r) || !r ? a = {
948
+ return D(r) || !r ? a = {
946
949
  next: r ?? void 0,
947
950
  error: n ?? void 0,
948
951
  complete: i ?? void 0
949
- } : a = r, o.destination = new Xr(a), o;
952
+ } : a = r, o.destination = new Vr(a), o;
950
953
  }
951
954
  return t;
952
955
  }(jt);
953
- function me(e) {
954
- Vr(e);
956
+ function pe(e) {
957
+ kr(e);
955
958
  }
956
- function Wr(e) {
959
+ function Xr(e) {
957
960
  throw e;
958
961
  }
959
- var zr = {
962
+ var Wr = {
960
963
  closed: !0,
961
- next: at,
962
- error: Wr,
963
- complete: at
964
- }, qr = function() {
964
+ next: st,
965
+ error: Xr,
966
+ complete: st
967
+ }, zr = function() {
965
968
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
966
969
  }();
967
970
  function Zr(e) {
@@ -974,7 +977,7 @@ function Qr(e) {
974
977
  }, r);
975
978
  };
976
979
  }
977
- var ut = function() {
980
+ var at = function() {
978
981
  function e(t) {
979
982
  t && (this._subscribe = t);
980
983
  }
@@ -982,8 +985,8 @@ var ut = function() {
982
985
  var r = new e();
983
986
  return r.source = this, r.operator = t, r;
984
987
  }, e.prototype.subscribe = function(t, r, n) {
985
- var i = this, o = Yr(t) ? t : new Ve(t, r, n);
986
- return ve(function() {
988
+ var i = this, o = qr(t) ? t : new ke(t, r, n);
989
+ return ge(function() {
987
990
  var a = i, s = a.operator, l = a.source;
988
991
  o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
989
992
  }), o;
@@ -995,8 +998,8 @@ var ut = function() {
995
998
  }
996
999
  }, e.prototype.forEach = function(t, r) {
997
1000
  var n = this;
998
- return r = lt(r), new r(function(i, o) {
999
- var a = new Ve({
1001
+ return r = ut(r), new r(function(i, o) {
1002
+ var a = new ke({
1000
1003
  next: function(s) {
1001
1004
  try {
1002
1005
  t(s);
@@ -1012,7 +1015,7 @@ var ut = function() {
1012
1015
  }, e.prototype._subscribe = function(t) {
1013
1016
  var r;
1014
1017
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
1015
- }, e.prototype[qr] = function() {
1018
+ }, e.prototype[zr] = function() {
1016
1019
  return this;
1017
1020
  }, e.prototype.pipe = function() {
1018
1021
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -1020,7 +1023,7 @@ var ut = function() {
1020
1023
  return Qr(t)(this);
1021
1024
  }, e.prototype.toPromise = function(t) {
1022
1025
  var r = this;
1023
- return t = lt(t), new t(function(n, i) {
1026
+ return t = ut(t), new t(function(n, i) {
1024
1027
  var o;
1025
1028
  r.subscribe(function(a) {
1026
1029
  return o = a;
@@ -1034,40 +1037,40 @@ var ut = function() {
1034
1037
  return new e(t);
1035
1038
  }, e;
1036
1039
  }();
1037
- function lt(e) {
1040
+ function ut(e) {
1038
1041
  var t;
1039
- return (t = e ?? jr.Promise) !== null && t !== void 0 ? t : Promise;
1042
+ return (t = e ?? Fr.Promise) !== null && t !== void 0 ? t : Promise;
1040
1043
  }
1041
1044
  function Jr(e) {
1042
- return e && U(e.next) && U(e.error) && U(e.complete);
1045
+ return e && D(e.next) && D(e.error) && D(e.complete);
1043
1046
  }
1044
- function Yr(e) {
1047
+ function qr(e) {
1045
1048
  return e && e instanceof jt || Jr(e) && Ft(e);
1046
1049
  }
1047
- var Kr = Ut(function(e) {
1050
+ var Yr = Ut(function(e) {
1048
1051
  return function() {
1049
1052
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1050
1053
  };
1051
1054
  }), kt = function(e) {
1052
- G(t, e);
1055
+ U(t, e);
1053
1056
  function t() {
1054
1057
  var r = e.call(this) || this;
1055
1058
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
1056
1059
  }
1057
1060
  return t.prototype.lift = function(r) {
1058
- var n = new ht(this, this);
1061
+ var n = new lt(this, this);
1059
1062
  return n.operator = r, n;
1060
1063
  }, t.prototype._throwIfClosed = function() {
1061
1064
  if (this.closed)
1062
- throw new Kr();
1065
+ throw new Yr();
1063
1066
  }, t.prototype.next = function(r) {
1064
1067
  var n = this;
1065
- ve(function() {
1068
+ ge(function() {
1066
1069
  var i, o;
1067
1070
  if (n._throwIfClosed(), !n.isStopped) {
1068
1071
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
1069
1072
  try {
1070
- for (var a = Fe(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
1073
+ for (var a = Ge(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
1071
1074
  var l = s.value;
1072
1075
  l.next(r);
1073
1076
  }
@@ -1084,7 +1087,7 @@ var Kr = Ut(function(e) {
1084
1087
  });
1085
1088
  }, t.prototype.error = function(r) {
1086
1089
  var n = this;
1087
- ve(function() {
1090
+ ge(function() {
1088
1091
  if (n._throwIfClosed(), !n.isStopped) {
1089
1092
  n.hasError = n.isStopped = !0, n.thrownError = r;
1090
1093
  for (var i = n.observers; i.length; )
@@ -1093,7 +1096,7 @@ var Kr = Ut(function(e) {
1093
1096
  });
1094
1097
  }, t.prototype.complete = function() {
1095
1098
  var r = this;
1096
- ve(function() {
1099
+ ge(function() {
1097
1100
  if (r._throwIfClosed(), !r.isStopped) {
1098
1101
  r.isStopped = !0;
1099
1102
  for (var n = r.observers; n.length; )
@@ -1115,20 +1118,20 @@ var Kr = Ut(function(e) {
1115
1118
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
1116
1119
  }, t.prototype._innerSubscribe = function(r) {
1117
1120
  var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
1118
- return o || a ? Gt : (this.currentObservers = null, s.push(r), new Te(function() {
1119
- n.currentObservers = null, ke(s, r);
1121
+ return o || a ? Gt : (this.currentObservers = null, s.push(r), new Se(function() {
1122
+ n.currentObservers = null, je(s, r);
1120
1123
  }));
1121
1124
  }, t.prototype._checkFinalizedStatuses = function(r) {
1122
1125
  var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
1123
1126
  i ? r.error(o) : a && r.complete();
1124
1127
  }, t.prototype.asObservable = function() {
1125
- var r = new ut();
1128
+ var r = new at();
1126
1129
  return r.source = this, r;
1127
1130
  }, t.create = function(r, n) {
1128
- return new ht(r, n);
1131
+ return new lt(r, n);
1129
1132
  }, t;
1130
- }(ut), ht = function(e) {
1131
- G(t, e);
1133
+ }(at), lt = function(e) {
1134
+ U(t, e);
1132
1135
  function t(r, n) {
1133
1136
  var i = e.call(this) || this;
1134
1137
  return i.destination = r, i.source = n, i;
@@ -1151,8 +1154,8 @@ var Kr = Ut(function(e) {
1151
1154
  return (Vt.delegate || Date).now();
1152
1155
  },
1153
1156
  delegate: void 0
1154
- }, en = function(e) {
1155
- G(t, e);
1157
+ }, Kr = function(e) {
1158
+ U(t, e);
1156
1159
  function t(r, n, i) {
1157
1160
  r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = Vt);
1158
1161
  var o = e.call(this) || this;
@@ -1175,23 +1178,23 @@ var Kr = Ut(function(e) {
1175
1178
  }
1176
1179
  }, t;
1177
1180
  }(kt);
1178
- const ct = [], ft = {}, tn = (e, t = 0) => {
1179
- if (ct.indexOf(e) == -1) {
1180
- const r = new en(t);
1181
- ft[e] = r, ct.push(e);
1181
+ const ht = [], ct = {}, en = (e, t = 0) => {
1182
+ if (ht.indexOf(e) == -1) {
1183
+ const r = new Kr(t);
1184
+ ct[e] = r, ht.push(e);
1182
1185
  }
1183
- return ft[e];
1186
+ return ct[e];
1184
1187
  }, Z = [];
1185
- function rn(e, t) {
1188
+ function tn(e, t) {
1186
1189
  return {
1187
- subscribe: He(e, t).subscribe
1190
+ subscribe: Te(e, t).subscribe
1188
1191
  };
1189
1192
  }
1190
- function He(e, t = P) {
1193
+ function Te(e, t = P) {
1191
1194
  let r;
1192
1195
  const n = /* @__PURE__ */ new Set();
1193
1196
  function i(s) {
1194
- if (Ct(e, s) && (e = s, r)) {
1197
+ if (It(e, s) && (e = s, r)) {
1195
1198
  const l = !Z.length;
1196
1199
  for (const u of n)
1197
1200
  u[1](), Z.push(u, e);
@@ -1213,12 +1216,12 @@ function He(e, t = P) {
1213
1216
  }
1214
1217
  return { set: i, update: o, subscribe: a };
1215
1218
  }
1216
- function ne(e, t, r) {
1219
+ function re(e, t, r) {
1217
1220
  const n = !Array.isArray(e), i = n ? [e] : e;
1218
1221
  if (!i.every(Boolean))
1219
1222
  throw new Error("derived() expects stores as input, got a falsy value");
1220
1223
  const o = t.length < 2;
1221
- return rn(r, (a, s) => {
1224
+ return tn(r, (a, s) => {
1222
1225
  let l = !1;
1223
1226
  const u = [];
1224
1227
  let h = 0, f = P;
@@ -1228,63 +1231,63 @@ function ne(e, t, r) {
1228
1231
  f();
1229
1232
  const b = t(n ? u[0] : u, a, s);
1230
1233
  o ? a(b) : f = we(b) ? b : P;
1231
- }, p = i.map(
1232
- (b, v) => Lt(
1234
+ }, m = i.map(
1235
+ (b, g) => Ct(
1233
1236
  b,
1234
- (S) => {
1235
- u[v] = S, h &= ~(1 << v), l && c();
1237
+ (w) => {
1238
+ u[g] = w, h &= ~(1 << g), l && c();
1236
1239
  },
1237
1240
  () => {
1238
- h |= 1 << v;
1241
+ h |= 1 << g;
1239
1242
  }
1240
1243
  )
1241
1244
  );
1242
1245
  return l = !0, c(), function() {
1243
- X(p), f(), l = !1;
1246
+ X(m), f(), l = !1;
1244
1247
  };
1245
1248
  });
1246
1249
  }
1247
- function nn(e) {
1250
+ function rn(e) {
1248
1251
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1249
1252
  }
1250
- var on = function(t) {
1251
- return sn(t) && !an(t);
1253
+ var nn = function(t) {
1254
+ return on(t) && !sn(t);
1252
1255
  };
1253
- function sn(e) {
1256
+ function on(e) {
1254
1257
  return !!e && typeof e == "object";
1255
1258
  }
1256
- function an(e) {
1259
+ function sn(e) {
1257
1260
  var t = Object.prototype.toString.call(e);
1258
- return t === "[object RegExp]" || t === "[object Date]" || hn(e);
1261
+ return t === "[object RegExp]" || t === "[object Date]" || ln(e);
1259
1262
  }
1260
- var un = typeof Symbol == "function" && Symbol.for, ln = un ? Symbol.for("react.element") : 60103;
1261
- function hn(e) {
1262
- return e.$$typeof === ln;
1263
+ var an = typeof Symbol == "function" && Symbol.for, un = an ? Symbol.for("react.element") : 60103;
1264
+ function ln(e) {
1265
+ return e.$$typeof === un;
1263
1266
  }
1264
- function cn(e) {
1267
+ function hn(e) {
1265
1268
  return Array.isArray(e) ? [] : {};
1266
1269
  }
1267
- function le(e, t) {
1268
- return t.clone !== !1 && t.isMergeableObject(e) ? K(cn(e), e, t) : e;
1270
+ function ue(e, t) {
1271
+ return t.clone !== !1 && t.isMergeableObject(e) ? Y(hn(e), e, t) : e;
1269
1272
  }
1270
- function fn(e, t, r) {
1273
+ function cn(e, t, r) {
1271
1274
  return e.concat(t).map(function(n) {
1272
- return le(n, r);
1275
+ return ue(n, r);
1273
1276
  });
1274
1277
  }
1275
- function dn(e, t) {
1278
+ function fn(e, t) {
1276
1279
  if (!t.customMerge)
1277
- return K;
1280
+ return Y;
1278
1281
  var r = t.customMerge(e);
1279
- return typeof r == "function" ? r : K;
1282
+ return typeof r == "function" ? r : Y;
1280
1283
  }
1281
- function pn(e) {
1284
+ function dn(e) {
1282
1285
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1283
1286
  return Object.propertyIsEnumerable.call(e, t);
1284
1287
  }) : [];
1285
1288
  }
1286
- function dt(e) {
1287
- return Object.keys(e).concat(pn(e));
1289
+ function ft(e) {
1290
+ return Object.keys(e).concat(dn(e));
1288
1291
  }
1289
1292
  function Xt(e, t) {
1290
1293
  try {
@@ -1293,43 +1296,43 @@ function Xt(e, t) {
1293
1296
  return !1;
1294
1297
  }
1295
1298
  }
1296
- function mn(e, t) {
1299
+ function pn(e, t) {
1297
1300
  return Xt(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1298
1301
  }
1299
- function bn(e, t, r) {
1302
+ function mn(e, t, r) {
1300
1303
  var n = {};
1301
- return r.isMergeableObject(e) && dt(e).forEach(function(i) {
1302
- n[i] = le(e[i], r);
1303
- }), dt(t).forEach(function(i) {
1304
- mn(e, i) || (Xt(e, i) && r.isMergeableObject(t[i]) ? n[i] = dn(i, r)(e[i], t[i], r) : n[i] = le(t[i], r));
1304
+ return r.isMergeableObject(e) && ft(e).forEach(function(i) {
1305
+ n[i] = ue(e[i], r);
1306
+ }), ft(t).forEach(function(i) {
1307
+ pn(e, i) || (Xt(e, i) && r.isMergeableObject(t[i]) ? n[i] = fn(i, r)(e[i], t[i], r) : n[i] = ue(t[i], r));
1305
1308
  }), n;
1306
1309
  }
1307
- function K(e, t, r) {
1308
- r = r || {}, r.arrayMerge = r.arrayMerge || fn, r.isMergeableObject = r.isMergeableObject || on, r.cloneUnlessOtherwiseSpecified = le;
1310
+ function Y(e, t, r) {
1311
+ r = r || {}, r.arrayMerge = r.arrayMerge || cn, r.isMergeableObject = r.isMergeableObject || nn, r.cloneUnlessOtherwiseSpecified = ue;
1309
1312
  var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1310
- return o ? n ? r.arrayMerge(e, t, r) : bn(e, t, r) : le(t, r);
1313
+ return o ? n ? r.arrayMerge(e, t, r) : mn(e, t, r) : ue(t, r);
1311
1314
  }
1312
- K.all = function(t, r) {
1315
+ Y.all = function(t, r) {
1313
1316
  if (!Array.isArray(t))
1314
1317
  throw new Error("first argument should be an array");
1315
1318
  return t.reduce(function(n, i) {
1316
- return K(n, i, r);
1319
+ return Y(n, i, r);
1317
1320
  }, {});
1318
1321
  };
1319
- var yn = K, gn = yn;
1320
- const vn = /* @__PURE__ */ nn(gn);
1321
- function Ce(e, t) {
1322
- var r = t && t.cache ? t.cache : Hn, n = t && t.serializer ? t.serializer : wn, i = t && t.strategy ? t.strategy : xn;
1322
+ var bn = Y, yn = bn;
1323
+ const gn = /* @__PURE__ */ rn(yn);
1324
+ function Ie(e, t) {
1325
+ var r = t && t.cache ? t.cache : Tn, n = t && t.serializer ? t.serializer : wn, i = t && t.strategy ? t.strategy : En;
1323
1326
  return i(e, {
1324
1327
  cache: r,
1325
1328
  serializer: n
1326
1329
  });
1327
1330
  }
1328
- function _n(e) {
1331
+ function vn(e) {
1329
1332
  return e == null || typeof e == "number" || typeof e == "boolean";
1330
1333
  }
1331
- function En(e, t, r, n) {
1332
- var i = _n(n) ? n : r(n), o = t.get(i);
1334
+ function _n(e, t, r, n) {
1335
+ var i = vn(n) ? n : r(n), o = t.get(i);
1333
1336
  return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1334
1337
  }
1335
1338
  function Wt(e, t, r) {
@@ -1339,16 +1342,16 @@ function Wt(e, t, r) {
1339
1342
  function zt(e, t, r, n, i) {
1340
1343
  return r.bind(t, e, n, i);
1341
1344
  }
1342
- function xn(e, t) {
1343
- var r = e.length === 1 ? En : Wt;
1345
+ function En(e, t) {
1346
+ var r = e.length === 1 ? _n : Wt;
1344
1347
  return zt(e, this, r, t.cache.create(), t.serializer);
1345
1348
  }
1346
- function Sn(e, t) {
1349
+ function xn(e, t) {
1347
1350
  return zt(e, this, Wt, t.cache.create(), t.serializer);
1348
1351
  }
1349
1352
  var wn = function() {
1350
1353
  return JSON.stringify(arguments);
1351
- }, Tn = (
1354
+ }, Sn = (
1352
1355
  /** @class */
1353
1356
  function() {
1354
1357
  function e() {
@@ -1360,61 +1363,61 @@ var wn = function() {
1360
1363
  this.cache[t] = r;
1361
1364
  }, e;
1362
1365
  }()
1363
- ), Hn = {
1366
+ ), Tn = {
1364
1367
  create: function() {
1365
- return new Tn();
1368
+ return new Sn();
1366
1369
  }
1367
- }, Le = {
1368
- variadic: Sn
1370
+ }, Ce = {
1371
+ variadic: xn
1369
1372
  }, y;
1370
1373
  (function(e) {
1371
1374
  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";
1372
1375
  })(y || (y = {}));
1373
- var x;
1376
+ var E;
1374
1377
  (function(e) {
1375
1378
  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";
1376
- })(x || (x = {}));
1377
- var ee;
1379
+ })(E || (E = {}));
1380
+ var K;
1378
1381
  (function(e) {
1379
1382
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1380
- })(ee || (ee = {}));
1381
- function pt(e) {
1382
- return e.type === x.literal;
1383
- }
1384
- function Bn(e) {
1385
- return e.type === x.argument;
1383
+ })(K || (K = {}));
1384
+ function dt(e) {
1385
+ return e.type === E.literal;
1386
1386
  }
1387
- function qt(e) {
1388
- return e.type === x.number;
1387
+ function Hn(e) {
1388
+ return e.type === E.argument;
1389
1389
  }
1390
1390
  function Zt(e) {
1391
- return e.type === x.date;
1391
+ return e.type === E.number;
1392
1392
  }
1393
1393
  function Qt(e) {
1394
- return e.type === x.time;
1394
+ return e.type === E.date;
1395
1395
  }
1396
1396
  function Jt(e) {
1397
- return e.type === x.select;
1397
+ return e.type === E.time;
1398
+ }
1399
+ function qt(e) {
1400
+ return e.type === E.select;
1398
1401
  }
1399
1402
  function Yt(e) {
1400
- return e.type === x.plural;
1403
+ return e.type === E.plural;
1401
1404
  }
1402
- function Pn(e) {
1403
- return e.type === x.pound;
1405
+ function Bn(e) {
1406
+ return e.type === E.pound;
1404
1407
  }
1405
1408
  function Kt(e) {
1406
- return e.type === x.tag;
1409
+ return e.type === E.tag;
1407
1410
  }
1408
1411
  function er(e) {
1409
- return !!(e && typeof e == "object" && e.type === ee.number);
1412
+ return !!(e && typeof e == "object" && e.type === K.number);
1410
1413
  }
1411
- function Xe(e) {
1412
- return !!(e && typeof e == "object" && e.type === ee.dateTime);
1414
+ function Ve(e) {
1415
+ return !!(e && typeof e == "object" && e.type === K.dateTime);
1413
1416
  }
1414
- var tr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, An = /(?:[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;
1415
- function On(e) {
1417
+ var tr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Pn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1418
+ function An(e) {
1416
1419
  var t = {};
1417
- return e.replace(An, function(r) {
1420
+ return e.replace(Pn, function(r) {
1418
1421
  var n = r.length;
1419
1422
  switch (r[0]) {
1420
1423
  case "G":
@@ -1503,11 +1506,11 @@ function On(e) {
1503
1506
  return "";
1504
1507
  }), t;
1505
1508
  }
1506
- var In = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1507
- function Cn(e) {
1509
+ var On = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1510
+ function In(e) {
1508
1511
  if (e.length === 0)
1509
1512
  throw new Error("Number skeleton cannot be empty");
1510
- for (var t = e.split(In).filter(function(c) {
1513
+ for (var t = e.split(On).filter(function(c) {
1511
1514
  return c.length > 0;
1512
1515
  }), r = [], n = 0, i = t; n < i.length; n++) {
1513
1516
  var o = i[n], a = o.split("/");
@@ -1522,11 +1525,11 @@ function Cn(e) {
1522
1525
  }
1523
1526
  return r;
1524
1527
  }
1525
- function Ln(e) {
1528
+ function Cn(e) {
1526
1529
  return e.replace(/^(.*?)-/, "");
1527
1530
  }
1528
- var mt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, rr = /^(@+)?(\+|#+)?[rs]?$/g, Nn = /(\*)(0+)|(#+)(0+)|(0+)/g, nr = /^(0+)$/;
1529
- function bt(e) {
1531
+ var pt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, rr = /^(@+)?(\+|#+)?[rs]?$/g, Ln = /(\*)(0+)|(#+)(0+)|(0+)/g, nr = /^(0+)$/;
1532
+ function mt(e) {
1530
1533
  var t = {};
1531
1534
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(rr, function(r, n, i) {
1532
1535
  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)), "";
@@ -1572,7 +1575,7 @@ function ir(e) {
1572
1575
  };
1573
1576
  }
1574
1577
  }
1575
- function Mn(e) {
1578
+ function Nn(e) {
1576
1579
  var t;
1577
1580
  if (e[0] === "E" && e[1] === "E" ? (t = {
1578
1581
  notation: "engineering"
@@ -1586,11 +1589,11 @@ function Mn(e) {
1586
1589
  }
1587
1590
  return t;
1588
1591
  }
1589
- function yt(e) {
1592
+ function bt(e) {
1590
1593
  var t = {}, r = ir(e);
1591
1594
  return r || t;
1592
1595
  }
1593
- function Rn(e) {
1596
+ function Mn(e) {
1594
1597
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1595
1598
  var i = n[r];
1596
1599
  switch (i.stem) {
@@ -1614,7 +1617,7 @@ function Rn(e) {
1614
1617
  continue;
1615
1618
  case "measure-unit":
1616
1619
  case "unit":
1617
- t.style = "unit", t.unit = Ln(i.options[0]);
1620
+ t.style = "unit", t.unit = Cn(i.options[0]);
1618
1621
  continue;
1619
1622
  case "compact-short":
1620
1623
  case "K":
@@ -1626,12 +1629,12 @@ function Rn(e) {
1626
1629
  continue;
1627
1630
  case "scientific":
1628
1631
  t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1629
- return _(_({}, l), yt(u));
1632
+ return _(_({}, l), bt(u));
1630
1633
  }, {}));
1631
1634
  continue;
1632
1635
  case "engineering":
1633
1636
  t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1634
- return _(_({}, l), yt(u));
1637
+ return _(_({}, l), bt(u));
1635
1638
  }, {}));
1636
1639
  continue;
1637
1640
  case "notation-simple":
@@ -1676,13 +1679,13 @@ function Rn(e) {
1676
1679
  case "integer-width":
1677
1680
  if (i.options.length > 1)
1678
1681
  throw new RangeError("integer-width stems only accept a single optional option");
1679
- i.options[0].replace(Nn, function(l, u, h, f, c, p) {
1682
+ i.options[0].replace(Ln, function(l, u, h, f, c, m) {
1680
1683
  if (u)
1681
1684
  t.minimumIntegerDigits = h.length;
1682
1685
  else {
1683
1686
  if (f && c)
1684
1687
  throw new Error("We currently do not support maximum integer digits");
1685
- if (p)
1688
+ if (m)
1686
1689
  throw new Error("We currently do not support exact integer digits");
1687
1690
  }
1688
1691
  return "";
@@ -1693,28 +1696,28 @@ function Rn(e) {
1693
1696
  t.minimumIntegerDigits = i.stem.length;
1694
1697
  continue;
1695
1698
  }
1696
- if (mt.test(i.stem)) {
1699
+ if (pt.test(i.stem)) {
1697
1700
  if (i.options.length > 1)
1698
1701
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1699
- i.stem.replace(mt, function(l, u, h, f, c, p) {
1700
- return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && p ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1702
+ i.stem.replace(pt, function(l, u, h, f, c, m) {
1703
+ return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && m ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + m.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1701
1704
  });
1702
1705
  var o = i.options[0];
1703
- o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), bt(o)));
1706
+ o === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = _(_({}, t), mt(o)));
1704
1707
  continue;
1705
1708
  }
1706
1709
  if (rr.test(i.stem)) {
1707
- t = _(_({}, t), bt(i.stem));
1710
+ t = _(_({}, t), mt(i.stem));
1708
1711
  continue;
1709
1712
  }
1710
1713
  var a = ir(i.stem);
1711
1714
  a && (t = _(_({}, t), a));
1712
- var s = Mn(i.stem);
1715
+ var s = Nn(i.stem);
1713
1716
  s && (t = _(_({}, t), s));
1714
1717
  }
1715
1718
  return t;
1716
1719
  }
1717
- var be = {
1720
+ var me = {
1718
1721
  "001": [
1719
1722
  "H",
1720
1723
  "h"
@@ -3129,13 +3132,13 @@ var be = {
3129
3132
  "h"
3130
3133
  ]
3131
3134
  };
3132
- function $n(e, t) {
3135
+ function Rn(e, t) {
3133
3136
  for (var r = "", n = 0; n < e.length; n++) {
3134
3137
  var i = e.charAt(n);
3135
3138
  if (i === "j") {
3136
3139
  for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3137
3140
  o++, n++;
3138
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = Dn(t);
3141
+ var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = $n(t);
3139
3142
  for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
3140
3143
  r += l;
3141
3144
  for (; a-- > 0; )
@@ -3144,7 +3147,7 @@ function $n(e, t) {
3144
3147
  }
3145
3148
  return r;
3146
3149
  }
3147
- function Dn(e) {
3150
+ function $n(e) {
3148
3151
  var t = e.hourCycle;
3149
3152
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3150
3153
  e.hourCycles && // @ts-ignore
@@ -3163,23 +3166,23 @@ function Dn(e) {
3163
3166
  }
3164
3167
  var r = e.language, n;
3165
3168
  r !== "root" && (n = e.maximize().region);
3166
- var i = be[n || ""] || be[r || ""] || be["".concat(r, "-001")] || be["001"];
3169
+ var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
3167
3170
  return i[0];
3168
3171
  }
3169
- var Ne, Un = new RegExp("^".concat(tr.source, "*")), Gn = new RegExp("".concat(tr.source, "*$"));
3170
- function g(e, t) {
3172
+ var Le, Dn = new RegExp("^".concat(tr.source, "*")), Un = new RegExp("".concat(tr.source, "*$"));
3173
+ function v(e, t) {
3171
3174
  return { start: e, end: t };
3172
3175
  }
3173
- var Fn = !!String.prototype.startsWith && "_a".startsWith("a", 1), jn = !!String.fromCodePoint, kn = !!Object.fromEntries, Vn = !!String.prototype.codePointAt, Xn = !!String.prototype.trimStart, Wn = !!String.prototype.trimEnd, zn = !!Number.isSafeInteger, qn = zn ? Number.isSafeInteger : function(e) {
3176
+ var Gn = !!String.prototype.startsWith && "_a".startsWith("a", 1), Fn = !!String.fromCodePoint, jn = !!Object.fromEntries, kn = !!String.prototype.codePointAt, Vn = !!String.prototype.trimStart, Xn = !!String.prototype.trimEnd, Wn = !!Number.isSafeInteger, zn = Wn ? Number.isSafeInteger : function(e) {
3174
3177
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3175
- }, We = !0;
3178
+ }, Xe = !0;
3176
3179
  try {
3177
3180
  var Zn = sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3178
- We = ((Ne = Zn.exec("a")) === null || Ne === void 0 ? void 0 : Ne[0]) === "a";
3181
+ Xe = ((Le = Zn.exec("a")) === null || Le === void 0 ? void 0 : Le[0]) === "a";
3179
3182
  } catch {
3180
- We = !1;
3183
+ Xe = !1;
3181
3184
  }
3182
- var gt = Fn ? (
3185
+ var yt = Gn ? (
3183
3186
  // Native
3184
3187
  function(t, r, n) {
3185
3188
  return t.startsWith(r, n);
@@ -3189,7 +3192,7 @@ var gt = Fn ? (
3189
3192
  function(t, r, n) {
3190
3193
  return t.slice(n, n + r.length) === r;
3191
3194
  }
3192
- ), ze = jn ? String.fromCodePoint : (
3195
+ ), We = Fn ? String.fromCodePoint : (
3193
3196
  // IE11
3194
3197
  function() {
3195
3198
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3201,9 +3204,9 @@ var gt = Fn ? (
3201
3204
  }
3202
3205
  return n;
3203
3206
  }
3204
- ), vt = (
3207
+ ), gt = (
3205
3208
  // native
3206
- kn ? Object.fromEntries : (
3209
+ jn ? Object.fromEntries : (
3207
3210
  // Ponyfill
3208
3211
  function(t) {
3209
3212
  for (var r = {}, n = 0, i = t; n < i.length; n++) {
@@ -3213,7 +3216,7 @@ var gt = Fn ? (
3213
3216
  return r;
3214
3217
  }
3215
3218
  )
3216
- ), or = Vn ? (
3219
+ ), or = kn ? (
3217
3220
  // Native
3218
3221
  function(t, r) {
3219
3222
  return t.codePointAt(r);
@@ -3227,7 +3230,7 @@ var gt = Fn ? (
3227
3230
  return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3228
3231
  }
3229
3232
  }
3230
- ), Qn = Xn ? (
3233
+ ), Qn = Vn ? (
3231
3234
  // Native
3232
3235
  function(t) {
3233
3236
  return t.trimStart();
@@ -3235,9 +3238,9 @@ var gt = Fn ? (
3235
3238
  ) : (
3236
3239
  // Ponyfill
3237
3240
  function(t) {
3238
- return t.replace(Un, "");
3241
+ return t.replace(Dn, "");
3239
3242
  }
3240
- ), Jn = Wn ? (
3243
+ ), Jn = Xn ? (
3241
3244
  // Native
3242
3245
  function(t) {
3243
3246
  return t.trimEnd();
@@ -3245,32 +3248,32 @@ var gt = Fn ? (
3245
3248
  ) : (
3246
3249
  // Ponyfill
3247
3250
  function(t) {
3248
- return t.replace(Gn, "");
3251
+ return t.replace(Un, "");
3249
3252
  }
3250
3253
  );
3251
3254
  function sr(e, t) {
3252
3255
  return new RegExp(e, t);
3253
3256
  }
3254
- var qe;
3255
- if (We) {
3256
- var _t = sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3257
- qe = function(t, r) {
3257
+ var ze;
3258
+ if (Xe) {
3259
+ var vt = sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3260
+ ze = function(t, r) {
3258
3261
  var n;
3259
- _t.lastIndex = r;
3260
- var i = _t.exec(t);
3262
+ vt.lastIndex = r;
3263
+ var i = vt.exec(t);
3261
3264
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3262
3265
  };
3263
3266
  } else
3264
- qe = function(t, r) {
3267
+ ze = function(t, r) {
3265
3268
  for (var n = []; ; ) {
3266
3269
  var i = or(t, r);
3267
- if (i === void 0 || ar(i) || ti(i))
3270
+ if (i === void 0 || ar(i) || ei(i))
3268
3271
  break;
3269
3272
  n.push(i), r += i >= 65536 ? 2 : 1;
3270
3273
  }
3271
- return ze.apply(void 0, n);
3274
+ return We.apply(void 0, n);
3272
3275
  };
3273
- var Yn = (
3276
+ var qn = (
3274
3277
  /** @class */
3275
3278
  function() {
3276
3279
  function e(t, r) {
@@ -3294,13 +3297,13 @@ var Yn = (
3294
3297
  if (o === 35 && (r === "plural" || r === "selectordinal")) {
3295
3298
  var s = this.clonePosition();
3296
3299
  this.bump(), i.push({
3297
- type: x.pound,
3298
- location: g(s, this.clonePosition())
3300
+ type: E.pound,
3301
+ location: v(s, this.clonePosition())
3299
3302
  });
3300
3303
  } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3301
3304
  if (n)
3302
3305
  break;
3303
- return this.error(y.UNMATCHED_CLOSING_TAG, g(this.clonePosition(), this.clonePosition()));
3306
+ return this.error(y.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
3304
3307
  } else if (o === 60 && !this.ignoreTag && Ze(this.peek() || 0)) {
3305
3308
  var a = this.parseTag(t, r);
3306
3309
  if (a.err)
@@ -3322,9 +3325,9 @@ var Yn = (
3322
3325
  if (this.bumpSpace(), this.bumpIf("/>"))
3323
3326
  return {
3324
3327
  val: {
3325
- type: x.literal,
3328
+ type: E.literal,
3326
3329
  value: "<".concat(i, "/>"),
3327
- location: g(n, this.clonePosition())
3330
+ location: v(n, this.clonePosition())
3328
3331
  },
3329
3332
  err: null
3330
3333
  };
@@ -3335,24 +3338,24 @@ var Yn = (
3335
3338
  var a = o.val, s = this.clonePosition();
3336
3339
  if (this.bumpIf("</")) {
3337
3340
  if (this.isEOF() || !Ze(this.char()))
3338
- return this.error(y.INVALID_TAG, g(s, this.clonePosition()));
3341
+ return this.error(y.INVALID_TAG, v(s, this.clonePosition()));
3339
3342
  var l = this.clonePosition(), u = this.parseTagName();
3340
- return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, g(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3343
+ return i !== u ? this.error(y.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3341
3344
  val: {
3342
- type: x.tag,
3345
+ type: E.tag,
3343
3346
  value: i,
3344
3347
  children: a,
3345
- location: g(n, this.clonePosition())
3348
+ location: v(n, this.clonePosition())
3346
3349
  },
3347
3350
  err: null
3348
- } : this.error(y.INVALID_TAG, g(s, this.clonePosition())));
3351
+ } : this.error(y.INVALID_TAG, v(s, this.clonePosition())));
3349
3352
  } else
3350
- return this.error(y.UNCLOSED_TAG, g(n, this.clonePosition()));
3353
+ return this.error(y.UNCLOSED_TAG, v(n, this.clonePosition()));
3351
3354
  } else
3352
- return this.error(y.INVALID_TAG, g(n, this.clonePosition()));
3355
+ return this.error(y.INVALID_TAG, v(n, this.clonePosition()));
3353
3356
  }, e.prototype.parseTagName = function() {
3354
3357
  var t = this.offset();
3355
- for (this.bump(); !this.isEOF() && ei(this.char()); )
3358
+ for (this.bump(); !this.isEOF() && Kn(this.char()); )
3356
3359
  this.bump();
3357
3360
  return this.message.slice(t, this.offset());
3358
3361
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3374,14 +3377,14 @@ var Yn = (
3374
3377
  }
3375
3378
  break;
3376
3379
  }
3377
- var l = g(n, this.clonePosition());
3380
+ var l = v(n, this.clonePosition());
3378
3381
  return {
3379
- val: { type: x.literal, value: i, location: l },
3382
+ val: { type: E.literal, value: i, location: l },
3380
3383
  err: null
3381
3384
  };
3382
3385
  }, e.prototype.tryParseLeftAngleBracket = function() {
3383
3386
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3384
- !Kn(this.peek() || 0)) ? (this.bump(), "<") : null;
3387
+ !Yn(this.peek() || 0)) ? (this.bump(), "<") : null;
3385
3388
  }, e.prototype.tryParseQuote = function(t) {
3386
3389
  if (this.isEOF() || this.char() !== 39)
3387
3390
  return null;
@@ -3415,49 +3418,49 @@ var Yn = (
3415
3418
  r.push(n);
3416
3419
  this.bump();
3417
3420
  }
3418
- return ze.apply(void 0, r);
3421
+ return We.apply(void 0, r);
3419
3422
  }, e.prototype.tryParseUnquoted = function(t, r) {
3420
3423
  if (this.isEOF())
3421
3424
  return null;
3422
3425
  var n = this.char();
3423
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), ze(n));
3426
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), We(n));
3424
3427
  }, e.prototype.parseArgument = function(t, r) {
3425
3428
  var n = this.clonePosition();
3426
3429
  if (this.bump(), this.bumpSpace(), this.isEOF())
3427
- return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
3430
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3428
3431
  if (this.char() === 125)
3429
- return this.bump(), this.error(y.EMPTY_ARGUMENT, g(n, this.clonePosition()));
3432
+ return this.bump(), this.error(y.EMPTY_ARGUMENT, v(n, this.clonePosition()));
3430
3433
  var i = this.parseIdentifierIfPossible().value;
3431
3434
  if (!i)
3432
- return this.error(y.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
3435
+ return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3433
3436
  if (this.bumpSpace(), this.isEOF())
3434
- return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition()));
3437
+ return this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3435
3438
  switch (this.char()) {
3436
3439
  case 125:
3437
3440
  return this.bump(), {
3438
3441
  val: {
3439
- type: x.argument,
3442
+ type: E.argument,
3440
3443
  // value does not include the opening and closing braces.
3441
3444
  value: i,
3442
- location: g(n, this.clonePosition())
3445
+ location: v(n, this.clonePosition())
3443
3446
  },
3444
3447
  err: null
3445
3448
  };
3446
3449
  case 44:
3447
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, g(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3450
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3448
3451
  default:
3449
- return this.error(y.MALFORMED_ARGUMENT, g(n, this.clonePosition()));
3452
+ return this.error(y.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3450
3453
  }
3451
3454
  }, e.prototype.parseIdentifierIfPossible = function() {
3452
- var t = this.clonePosition(), r = this.offset(), n = qe(this.message, r), i = r + n.length;
3455
+ var t = this.clonePosition(), r = this.offset(), n = ze(this.message, r), i = r + n.length;
3453
3456
  this.bumpTo(i);
3454
- var o = this.clonePosition(), a = g(t, o);
3457
+ var o = this.clonePosition(), a = v(t, o);
3455
3458
  return { value: n, location: a };
3456
3459
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3457
3460
  var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3458
3461
  switch (s) {
3459
3462
  case "":
3460
- return this.error(y.EXPECT_ARGUMENT_TYPE, g(a, l));
3463
+ return this.error(y.EXPECT_ARGUMENT_TYPE, v(a, l));
3461
3464
  case "number":
3462
3465
  case "date":
3463
3466
  case "time": {
@@ -3470,44 +3473,44 @@ var Yn = (
3470
3473
  return f;
3471
3474
  var c = Jn(f.val);
3472
3475
  if (c.length === 0)
3473
- return this.error(y.EXPECT_ARGUMENT_STYLE, g(this.clonePosition(), this.clonePosition()));
3474
- var p = g(h, this.clonePosition());
3475
- u = { style: c, styleLocation: p };
3476
+ return this.error(y.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
3477
+ var m = v(h, this.clonePosition());
3478
+ u = { style: c, styleLocation: m };
3476
3479
  }
3477
3480
  var b = this.tryParseArgumentClose(i);
3478
3481
  if (b.err)
3479
3482
  return b;
3480
- var v = g(i, this.clonePosition());
3481
- if (u && gt(u?.style, "::", 0)) {
3482
- var S = Qn(u.style.slice(2));
3483
+ var g = v(i, this.clonePosition());
3484
+ if (u && yt(u?.style, "::", 0)) {
3485
+ var w = Qn(u.style.slice(2));
3483
3486
  if (s === "number") {
3484
- var f = this.parseNumberSkeletonFromString(S, u.styleLocation);
3487
+ var f = this.parseNumberSkeletonFromString(w, u.styleLocation);
3485
3488
  return f.err ? f : {
3486
- val: { type: x.number, value: n, location: v, style: f.val },
3489
+ val: { type: E.number, value: n, location: g, style: f.val },
3487
3490
  err: null
3488
3491
  };
3489
3492
  } else {
3490
- if (S.length === 0)
3491
- return this.error(y.EXPECT_DATE_TIME_SKELETON, v);
3492
- var A = S;
3493
- this.locale && (A = $n(S, this.locale));
3493
+ if (w.length === 0)
3494
+ return this.error(y.EXPECT_DATE_TIME_SKELETON, g);
3495
+ var A = w;
3496
+ this.locale && (A = Rn(w, this.locale));
3494
3497
  var c = {
3495
- type: ee.dateTime,
3498
+ type: K.dateTime,
3496
3499
  pattern: A,
3497
3500
  location: u.styleLocation,
3498
- parsedOptions: this.shouldParseSkeletons ? On(A) : {}
3499
- }, H = s === "date" ? x.date : x.time;
3501
+ parsedOptions: this.shouldParseSkeletons ? An(A) : {}
3502
+ }, H = s === "date" ? E.date : E.time;
3500
3503
  return {
3501
- val: { type: H, value: n, location: v, style: c },
3504
+ val: { type: H, value: n, location: g, style: c },
3502
3505
  err: null
3503
3506
  };
3504
3507
  }
3505
3508
  }
3506
3509
  return {
3507
3510
  val: {
3508
- type: s === "number" ? x.number : s === "date" ? x.date : x.time,
3511
+ type: s === "number" ? E.number : s === "date" ? E.date : E.time,
3509
3512
  value: n,
3510
- location: v,
3513
+ location: g,
3511
3514
  style: (o = u?.style) !== null && o !== void 0 ? o : null
3512
3515
  },
3513
3516
  err: null
@@ -3516,52 +3519,52 @@ var Yn = (
3516
3519
  case "plural":
3517
3520
  case "selectordinal":
3518
3521
  case "select": {
3519
- var w = this.clonePosition();
3522
+ var S = this.clonePosition();
3520
3523
  if (this.bumpSpace(), !this.bumpIf(","))
3521
- return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, g(w, _({}, w)));
3524
+ return this.error(y.EXPECT_SELECT_ARGUMENT_OPTIONS, v(S, _({}, S)));
3522
3525
  this.bumpSpace();
3523
- var M = this.parseIdentifierIfPossible(), O = 0;
3524
- if (s !== "select" && M.value === "offset") {
3526
+ var N = this.parseIdentifierIfPossible(), O = 0;
3527
+ if (s !== "select" && N.value === "offset") {
3525
3528
  if (!this.bumpIf(":"))
3526
- return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g(this.clonePosition(), this.clonePosition()));
3529
+ return this.error(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
3527
3530
  this.bumpSpace();
3528
3531
  var f = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3529
3532
  if (f.err)
3530
3533
  return f;
3531
- this.bumpSpace(), M = this.parseIdentifierIfPossible(), O = f.val;
3534
+ this.bumpSpace(), N = this.parseIdentifierIfPossible(), O = f.val;
3532
3535
  }
3533
- var R = this.tryParsePluralOrSelectOptions(t, s, r, M);
3534
- if (R.err)
3535
- return R;
3536
+ var M = this.tryParsePluralOrSelectOptions(t, s, r, N);
3537
+ if (M.err)
3538
+ return M;
3536
3539
  var b = this.tryParseArgumentClose(i);
3537
3540
  if (b.err)
3538
3541
  return b;
3539
- var E = g(i, this.clonePosition());
3542
+ var x = v(i, this.clonePosition());
3540
3543
  return s === "select" ? {
3541
3544
  val: {
3542
- type: x.select,
3545
+ type: E.select,
3543
3546
  value: n,
3544
- options: vt(R.val),
3545
- location: E
3547
+ options: gt(M.val),
3548
+ location: x
3546
3549
  },
3547
3550
  err: null
3548
3551
  } : {
3549
3552
  val: {
3550
- type: x.plural,
3553
+ type: E.plural,
3551
3554
  value: n,
3552
- options: vt(R.val),
3555
+ options: gt(M.val),
3553
3556
  offset: O,
3554
3557
  pluralType: s === "plural" ? "cardinal" : "ordinal",
3555
- location: E
3558
+ location: x
3556
3559
  },
3557
3560
  err: null
3558
3561
  };
3559
3562
  }
3560
3563
  default:
3561
- return this.error(y.INVALID_ARGUMENT_TYPE, g(a, l));
3564
+ return this.error(y.INVALID_ARGUMENT_TYPE, v(a, l));
3562
3565
  }
3563
3566
  }, e.prototype.tryParseArgumentClose = function(t) {
3564
- return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, g(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3567
+ return this.isEOF() || this.char() !== 125 ? this.error(y.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3565
3568
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3566
3569
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3567
3570
  var n = this.char();
@@ -3570,7 +3573,7 @@ var Yn = (
3570
3573
  this.bump();
3571
3574
  var i = this.clonePosition();
3572
3575
  if (!this.bumpUntil("'"))
3573
- return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, g(i, this.clonePosition()));
3576
+ return this.error(y.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
3574
3577
  this.bump();
3575
3578
  break;
3576
3579
  }
@@ -3600,16 +3603,16 @@ var Yn = (
3600
3603
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3601
3604
  var n = [];
3602
3605
  try {
3603
- n = Cn(t);
3606
+ n = In(t);
3604
3607
  } catch {
3605
3608
  return this.error(y.INVALID_NUMBER_SKELETON, r);
3606
3609
  }
3607
3610
  return {
3608
3611
  val: {
3609
- type: ee.number,
3612
+ type: K.number,
3610
3613
  tokens: n,
3611
3614
  location: r,
3612
- parsedOptions: this.shouldParseSkeletons ? Rn(n) : {}
3615
+ parsedOptions: this.shouldParseSkeletons ? Mn(n) : {}
3613
3616
  },
3614
3617
  err: null
3615
3618
  };
@@ -3621,31 +3624,31 @@ var Yn = (
3621
3624
  var c = this.tryParseDecimalInteger(y.EXPECT_PLURAL_ARGUMENT_SELECTOR, y.INVALID_PLURAL_ARGUMENT_SELECTOR);
3622
3625
  if (c.err)
3623
3626
  return c;
3624
- h = g(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3627
+ h = v(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3625
3628
  } else
3626
3629
  break;
3627
3630
  }
3628
3631
  if (l.has(u))
3629
3632
  return this.error(r === "select" ? y.DUPLICATE_SELECT_ARGUMENT_SELECTOR : y.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3630
3633
  u === "other" && (a = !0), this.bumpSpace();
3631
- var p = this.clonePosition();
3634
+ var m = this.clonePosition();
3632
3635
  if (!this.bumpIf("{"))
3633
- return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, g(this.clonePosition(), this.clonePosition()));
3636
+ return this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : y.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
3634
3637
  var b = this.parseMessage(t + 1, r, n);
3635
3638
  if (b.err)
3636
3639
  return b;
3637
- var v = this.tryParseArgumentClose(p);
3638
- if (v.err)
3639
- return v;
3640
+ var g = this.tryParseArgumentClose(m);
3641
+ if (g.err)
3642
+ return g;
3640
3643
  s.push([
3641
3644
  u,
3642
3645
  {
3643
3646
  value: b.val,
3644
- location: g(p, this.clonePosition())
3647
+ location: v(m, this.clonePosition())
3645
3648
  }
3646
3649
  ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3647
3650
  }
3648
- return s.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: s, err: null };
3651
+ return s.length === 0 ? this.error(r === "select" ? y.EXPECT_SELECT_ARGUMENT_SELECTOR : y.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(y.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3649
3652
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3650
3653
  var n = 1, i = this.clonePosition();
3651
3654
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3656,8 +3659,8 @@ var Yn = (
3656
3659
  else
3657
3660
  break;
3658
3661
  }
3659
- var l = g(i, this.clonePosition());
3660
- return o ? (a *= n, qn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3662
+ var l = v(i, this.clonePosition());
3663
+ return o ? (a *= n, zn(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3661
3664
  }, e.prototype.offset = function() {
3662
3665
  return this.position.offset;
3663
3666
  }, e.prototype.isEOF = function() {
@@ -3691,7 +3694,7 @@ var Yn = (
3691
3694
  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);
3692
3695
  }
3693
3696
  }, e.prototype.bumpIf = function(t) {
3694
- if (gt(this.message, t, this.offset())) {
3697
+ if (yt(this.message, t, this.offset())) {
3695
3698
  for (var r = 0; r < t.length; r++)
3696
3699
  this.bump();
3697
3700
  return !0;
@@ -3726,43 +3729,43 @@ var Yn = (
3726
3729
  function Ze(e) {
3727
3730
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3728
3731
  }
3729
- function Kn(e) {
3732
+ function Yn(e) {
3730
3733
  return Ze(e) || e === 47;
3731
3734
  }
3732
- function ei(e) {
3735
+ function Kn(e) {
3733
3736
  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;
3734
3737
  }
3735
3738
  function ar(e) {
3736
3739
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3737
3740
  }
3738
- function ti(e) {
3741
+ function ei(e) {
3739
3742
  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;
3740
3743
  }
3741
3744
  function Qe(e) {
3742
3745
  e.forEach(function(t) {
3743
- if (delete t.location, Jt(t) || Yt(t))
3746
+ if (delete t.location, qt(t) || Yt(t))
3744
3747
  for (var r in t.options)
3745
3748
  delete t.options[r].location, Qe(t.options[r].value);
3746
- else qt(t) && er(t.style) || (Zt(t) || Qt(t)) && Xe(t.style) ? delete t.style.location : Kt(t) && Qe(t.children);
3749
+ else Zt(t) && er(t.style) || (Qt(t) || Jt(t)) && Ve(t.style) ? delete t.style.location : Kt(t) && Qe(t.children);
3747
3750
  });
3748
3751
  }
3749
- function ri(e, t) {
3752
+ function ti(e, t) {
3750
3753
  t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3751
- var r = new Yn(e, t).parse();
3754
+ var r = new qn(e, t).parse();
3752
3755
  if (r.err) {
3753
3756
  var n = SyntaxError(y[r.err.kind]);
3754
3757
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3755
3758
  }
3756
3759
  return t?.captureLocation || Qe(r.val), r.val;
3757
3760
  }
3758
- var te;
3761
+ var ee;
3759
3762
  (function(e) {
3760
3763
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3761
- })(te || (te = {}));
3762
- var Be = (
3764
+ })(ee || (ee = {}));
3765
+ var He = (
3763
3766
  /** @class */
3764
3767
  function(e) {
3765
- G(t, e);
3768
+ U(t, e);
3766
3769
  function t(r, n, i) {
3767
3770
  var o = e.call(this, r) || this;
3768
3771
  return o.code = n, o.originalMessage = i, o;
@@ -3771,48 +3774,48 @@ var Be = (
3771
3774
  return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3772
3775
  }, t;
3773
3776
  }(Error)
3774
- ), Et = (
3777
+ ), _t = (
3775
3778
  /** @class */
3776
3779
  function(e) {
3777
- G(t, e);
3780
+ U(t, e);
3778
3781
  function t(r, n, i, o) {
3779
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), te.INVALID_VALUE, o) || this;
3782
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ee.INVALID_VALUE, o) || this;
3780
3783
  }
3781
3784
  return t;
3782
- }(Be)
3783
- ), ni = (
3785
+ }(He)
3786
+ ), ri = (
3784
3787
  /** @class */
3785
3788
  function(e) {
3786
- G(t, e);
3789
+ U(t, e);
3787
3790
  function t(r, n, i) {
3788
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), te.INVALID_VALUE, i) || this;
3791
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ee.INVALID_VALUE, i) || this;
3789
3792
  }
3790
3793
  return t;
3791
- }(Be)
3792
- ), ii = (
3794
+ }(He)
3795
+ ), ni = (
3793
3796
  /** @class */
3794
3797
  function(e) {
3795
- G(t, e);
3798
+ U(t, e);
3796
3799
  function t(r, n) {
3797
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), te.MISSING_VALUE, n) || this;
3800
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ee.MISSING_VALUE, n) || this;
3798
3801
  }
3799
3802
  return t;
3800
- }(Be)
3803
+ }(He)
3801
3804
  ), T;
3802
3805
  (function(e) {
3803
3806
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3804
3807
  })(T || (T = {}));
3805
- function oi(e) {
3808
+ function ii(e) {
3806
3809
  return e.length < 2 ? e : e.reduce(function(t, r) {
3807
3810
  var n = t[t.length - 1];
3808
3811
  return !n || n.type !== T.literal || r.type !== T.literal ? t.push(r) : n.value += r.value, t;
3809
3812
  }, []);
3810
3813
  }
3811
- function si(e) {
3814
+ function oi(e) {
3812
3815
  return typeof e == "function";
3813
3816
  }
3814
- function _e(e, t, r, n, i, o, a) {
3815
- if (e.length === 1 && pt(e[0]))
3817
+ function ve(e, t, r, n, i, o, a) {
3818
+ if (e.length === 1 && dt(e[0]))
3816
3819
  return [
3817
3820
  {
3818
3821
  type: T.literal,
@@ -3821,14 +3824,14 @@ function _e(e, t, r, n, i, o, a) {
3821
3824
  ];
3822
3825
  for (var s = [], l = 0, u = e; l < u.length; l++) {
3823
3826
  var h = u[l];
3824
- if (pt(h)) {
3827
+ if (dt(h)) {
3825
3828
  s.push({
3826
3829
  type: T.literal,
3827
3830
  value: h.value
3828
3831
  });
3829
3832
  continue;
3830
3833
  }
3831
- if (Pn(h)) {
3834
+ if (Bn(h)) {
3832
3835
  typeof o == "number" && s.push({
3833
3836
  type: T.literal,
3834
3837
  value: r.getNumberFormat(t).format(o)
@@ -3837,44 +3840,44 @@ function _e(e, t, r, n, i, o, a) {
3837
3840
  }
3838
3841
  var f = h.value;
3839
3842
  if (!(i && f in i))
3840
- throw new ii(f, a);
3843
+ throw new ni(f, a);
3841
3844
  var c = i[f];
3842
- if (Bn(h)) {
3845
+ if (Hn(h)) {
3843
3846
  (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
3844
3847
  type: typeof c == "string" ? T.literal : T.object,
3845
3848
  value: c
3846
3849
  });
3847
3850
  continue;
3848
3851
  }
3849
- if (Zt(h)) {
3850
- var p = typeof h.style == "string" ? n.date[h.style] : Xe(h.style) ? h.style.parsedOptions : void 0;
3852
+ if (Qt(h)) {
3853
+ var m = typeof h.style == "string" ? n.date[h.style] : Ve(h.style) ? h.style.parsedOptions : void 0;
3851
3854
  s.push({
3852
3855
  type: T.literal,
3853
- value: r.getDateTimeFormat(t, p).format(c)
3856
+ value: r.getDateTimeFormat(t, m).format(c)
3854
3857
  });
3855
3858
  continue;
3856
3859
  }
3857
- if (Qt(h)) {
3858
- var p = typeof h.style == "string" ? n.time[h.style] : Xe(h.style) ? h.style.parsedOptions : n.time.medium;
3860
+ if (Jt(h)) {
3861
+ var m = typeof h.style == "string" ? n.time[h.style] : Ve(h.style) ? h.style.parsedOptions : n.time.medium;
3859
3862
  s.push({
3860
3863
  type: T.literal,
3861
- value: r.getDateTimeFormat(t, p).format(c)
3864
+ value: r.getDateTimeFormat(t, m).format(c)
3862
3865
  });
3863
3866
  continue;
3864
3867
  }
3865
- if (qt(h)) {
3866
- var p = typeof h.style == "string" ? n.number[h.style] : er(h.style) ? h.style.parsedOptions : void 0;
3867
- p && p.scale && (c = c * (p.scale || 1)), s.push({
3868
+ if (Zt(h)) {
3869
+ var m = typeof h.style == "string" ? n.number[h.style] : er(h.style) ? h.style.parsedOptions : void 0;
3870
+ m && m.scale && (c = c * (m.scale || 1)), s.push({
3868
3871
  type: T.literal,
3869
- value: r.getNumberFormat(t, p).format(c)
3872
+ value: r.getNumberFormat(t, m).format(c)
3870
3873
  });
3871
3874
  continue;
3872
3875
  }
3873
3876
  if (Kt(h)) {
3874
- var b = h.children, v = h.value, S = i[v];
3875
- if (!si(S))
3876
- throw new ni(v, "function", a);
3877
- var A = _e(b, t, r, n, i, o), H = S(A.map(function(O) {
3877
+ var b = h.children, g = h.value, w = i[g];
3878
+ if (!oi(w))
3879
+ throw new ri(g, "function", a);
3880
+ var A = ve(b, t, r, n, i, o), H = w(A.map(function(O) {
3878
3881
  return O.value;
3879
3882
  }));
3880
3883
  Array.isArray(H) || (H = [H]), s.push.apply(s, H.map(function(O) {
@@ -3884,42 +3887,42 @@ function _e(e, t, r, n, i, o, a) {
3884
3887
  };
3885
3888
  }));
3886
3889
  }
3887
- if (Jt(h)) {
3888
- var w = h.options[c] || h.options.other;
3889
- if (!w)
3890
- throw new Et(h.value, c, Object.keys(h.options), a);
3891
- s.push.apply(s, _e(w.value, t, r, n, i));
3890
+ if (qt(h)) {
3891
+ var S = h.options[c] || h.options.other;
3892
+ if (!S)
3893
+ throw new _t(h.value, c, Object.keys(h.options), a);
3894
+ s.push.apply(s, ve(S.value, t, r, n, i));
3892
3895
  continue;
3893
3896
  }
3894
3897
  if (Yt(h)) {
3895
- var w = h.options["=".concat(c)];
3896
- if (!w) {
3898
+ var S = h.options["=".concat(c)];
3899
+ if (!S) {
3897
3900
  if (!Intl.PluralRules)
3898
- throw new Be(`Intl.PluralRules is not available in this environment.
3901
+ throw new He(`Intl.PluralRules is not available in this environment.
3899
3902
  Try polyfilling it using "@formatjs/intl-pluralrules"
3900
- `, te.MISSING_INTL_API, a);
3901
- var M = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3902
- w = h.options[M] || h.options.other;
3903
+ `, ee.MISSING_INTL_API, a);
3904
+ var N = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
3905
+ S = h.options[N] || h.options.other;
3903
3906
  }
3904
- if (!w)
3905
- throw new Et(h.value, c, Object.keys(h.options), a);
3906
- s.push.apply(s, _e(w.value, t, r, n, i, c - (h.offset || 0)));
3907
+ if (!S)
3908
+ throw new _t(h.value, c, Object.keys(h.options), a);
3909
+ s.push.apply(s, ve(S.value, t, r, n, i, c - (h.offset || 0)));
3907
3910
  continue;
3908
3911
  }
3909
3912
  }
3910
- return oi(s);
3913
+ return ii(s);
3911
3914
  }
3912
- function ai(e, t) {
3915
+ function si(e, t) {
3913
3916
  return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
3914
3917
  return r[n] = _(_({}, e[n]), t[n] || {}), r;
3915
3918
  }, {})) : e;
3916
3919
  }
3917
- function ui(e, t) {
3920
+ function ai(e, t) {
3918
3921
  return t ? Object.keys(e).reduce(function(r, n) {
3919
- return r[n] = ai(e[n], t[n]), r;
3922
+ return r[n] = si(e[n], t[n]), r;
3920
3923
  }, _({}, e)) : e;
3921
3924
  }
3922
- function Me(e) {
3925
+ function Ne(e) {
3923
3926
  return {
3924
3927
  create: function() {
3925
3928
  return {
@@ -3933,39 +3936,39 @@ function Me(e) {
3933
3936
  }
3934
3937
  };
3935
3938
  }
3936
- function li(e) {
3939
+ function ui(e) {
3937
3940
  return e === void 0 && (e = {
3938
3941
  number: {},
3939
3942
  dateTime: {},
3940
3943
  pluralRules: {}
3941
3944
  }), {
3942
- getNumberFormat: Ce(function() {
3945
+ getNumberFormat: Ie(function() {
3943
3946
  for (var t, r = [], n = 0; n < arguments.length; n++)
3944
3947
  r[n] = arguments[n];
3945
- return new ((t = Intl.NumberFormat).bind.apply(t, Y([void 0], r, !1)))();
3948
+ return new ((t = Intl.NumberFormat).bind.apply(t, q([void 0], r, !1)))();
3946
3949
  }, {
3947
- cache: Me(e.number),
3948
- strategy: Le.variadic
3950
+ cache: Ne(e.number),
3951
+ strategy: Ce.variadic
3949
3952
  }),
3950
- getDateTimeFormat: Ce(function() {
3953
+ getDateTimeFormat: Ie(function() {
3951
3954
  for (var t, r = [], n = 0; n < arguments.length; n++)
3952
3955
  r[n] = arguments[n];
3953
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Y([void 0], r, !1)))();
3956
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, q([void 0], r, !1)))();
3954
3957
  }, {
3955
- cache: Me(e.dateTime),
3956
- strategy: Le.variadic
3958
+ cache: Ne(e.dateTime),
3959
+ strategy: Ce.variadic
3957
3960
  }),
3958
- getPluralRules: Ce(function() {
3961
+ getPluralRules: Ie(function() {
3959
3962
  for (var t, r = [], n = 0; n < arguments.length; n++)
3960
3963
  r[n] = arguments[n];
3961
- return new ((t = Intl.PluralRules).bind.apply(t, Y([void 0], r, !1)))();
3964
+ return new ((t = Intl.PluralRules).bind.apply(t, q([void 0], r, !1)))();
3962
3965
  }, {
3963
- cache: Me(e.pluralRules),
3964
- strategy: Le.variadic
3966
+ cache: Ne(e.pluralRules),
3967
+ strategy: Ce.variadic
3965
3968
  })
3966
3969
  };
3967
3970
  }
3968
- var hi = (
3971
+ var li = (
3969
3972
  /** @class */
3970
3973
  function() {
3971
3974
  function e(t, r, n, i) {
@@ -3984,7 +3987,7 @@ var hi = (
3984
3987
  }, []);
3985
3988
  return h.length <= 1 ? h[0] || "" : h;
3986
3989
  }, this.formatToParts = function(l) {
3987
- return _e(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3990
+ return ve(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
3988
3991
  }, this.resolvedOptions = function() {
3989
3992
  var l;
3990
3993
  return {
@@ -3997,13 +4000,13 @@ var hi = (
3997
4000
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
3998
4001
  var a = i || {};
3999
4002
  a.formatters;
4000
- var s = Fr(a, ["formatters"]);
4003
+ var s = Gr(a, ["formatters"]);
4001
4004
  this.ast = e.__parse(t, _(_({}, s), { locale: this.resolvedLocale }));
4002
4005
  } else
4003
4006
  this.ast = t;
4004
4007
  if (!Array.isArray(this.ast))
4005
4008
  throw new TypeError("A message must be provided as a String or AST.");
4006
- this.formats = ui(e.formats, n), this.formatters = i && i.formatters || li(this.formatterCache);
4009
+ this.formats = ai(e.formats, n), this.formatters = i && i.formatters || ui(this.formatterCache);
4007
4010
  }
4008
4011
  return Object.defineProperty(e, "defaultLocale", {
4009
4012
  get: function() {
@@ -4016,7 +4019,7 @@ var hi = (
4016
4019
  var r = Intl.NumberFormat.supportedLocalesOf(t);
4017
4020
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
4018
4021
  }
4019
- }, e.__parse = ri, e.formats = {
4022
+ }, e.__parse = ti, e.formats = {
4020
4023
  number: {
4021
4024
  integer: {
4022
4025
  maximumFractionDigits: 0
@@ -4077,7 +4080,7 @@ var hi = (
4077
4080
  }, e;
4078
4081
  }()
4079
4082
  );
4080
- function ci(e, t) {
4083
+ function hi(e, t) {
4081
4084
  if (t == null)
4082
4085
  return;
4083
4086
  if (t in e)
@@ -4098,36 +4101,36 @@ function ci(e, t) {
4098
4101
  n = void 0;
4099
4102
  return n;
4100
4103
  }
4101
- const F = {}, fi = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), ur = (e, t) => {
4104
+ const F = {}, ci = (e, t, r) => r && (t in F || (F[t] = {}), e in F[t] || (F[t][e] = r), r), ur = (e, t) => {
4102
4105
  if (t == null)
4103
4106
  return;
4104
4107
  if (t in F && e in F[t])
4105
4108
  return F[t][e];
4106
- const r = Pe(t);
4109
+ const r = Be(t);
4107
4110
  for (let n = 0; n < r.length; n++) {
4108
- const i = r[n], o = pi(i, e);
4111
+ const i = r[n], o = di(i, e);
4109
4112
  if (o)
4110
- return fi(e, t, o);
4113
+ return ci(e, t, o);
4111
4114
  }
4112
4115
  };
4113
- let et;
4114
- const fe = He({});
4115
- function di(e) {
4116
- return et[e] || null;
4116
+ let Ke;
4117
+ const ce = Te({});
4118
+ function fi(e) {
4119
+ return Ke[e] || null;
4117
4120
  }
4118
4121
  function lr(e) {
4119
- return e in et;
4122
+ return e in Ke;
4120
4123
  }
4121
- function pi(e, t) {
4124
+ function di(e, t) {
4122
4125
  if (!lr(e))
4123
4126
  return null;
4124
- const r = di(e);
4125
- return ci(r, t);
4127
+ const r = fi(e);
4128
+ return hi(r, t);
4126
4129
  }
4127
- function mi(e) {
4130
+ function pi(e) {
4128
4131
  if (e == null)
4129
4132
  return;
4130
- const t = Pe(e);
4133
+ const t = Be(e);
4131
4134
  for (let r = 0; r < t.length; r++) {
4132
4135
  const n = t[r];
4133
4136
  if (lr(n))
@@ -4135,55 +4138,55 @@ function mi(e) {
4135
4138
  }
4136
4139
  }
4137
4140
  function hr(e, ...t) {
4138
- delete F[e], fe.update((r) => (r[e] = vn.all([r[e] || {}, ...t]), r));
4141
+ delete F[e], ce.update((r) => (r[e] = gn.all([r[e] || {}, ...t]), r));
4139
4142
  }
4140
- ne(
4141
- [fe],
4143
+ re(
4144
+ [ce],
4142
4145
  ([e]) => Object.keys(e)
4143
4146
  );
4144
- fe.subscribe((e) => et = e);
4145
- const Ee = {};
4146
- function bi(e, t) {
4147
- Ee[e].delete(t), Ee[e].size === 0 && delete Ee[e];
4147
+ ce.subscribe((e) => Ke = e);
4148
+ const _e = {};
4149
+ function mi(e, t) {
4150
+ _e[e].delete(t), _e[e].size === 0 && delete _e[e];
4148
4151
  }
4149
4152
  function cr(e) {
4150
- return Ee[e];
4153
+ return _e[e];
4151
4154
  }
4152
- function yi(e) {
4153
- return Pe(e).map((t) => {
4155
+ function bi(e) {
4156
+ return Be(e).map((t) => {
4154
4157
  const r = cr(t);
4155
4158
  return [t, r ? [...r] : []];
4156
4159
  }).filter(([, t]) => t.length > 0);
4157
4160
  }
4158
4161
  function Je(e) {
4159
- return e == null ? !1 : Pe(e).some(
4162
+ return e == null ? !1 : Be(e).some(
4160
4163
  (t) => {
4161
4164
  var r;
4162
4165
  return (r = cr(t)) == null ? void 0 : r.size;
4163
4166
  }
4164
4167
  );
4165
4168
  }
4166
- function gi(e, t) {
4169
+ function yi(e, t) {
4167
4170
  return Promise.all(
4168
- t.map((n) => (bi(e, n), n().then((i) => i.default || i)))
4171
+ t.map((n) => (mi(e, n), n().then((i) => i.default || i)))
4169
4172
  ).then((n) => hr(e, ...n));
4170
4173
  }
4171
- const se = {};
4174
+ const oe = {};
4172
4175
  function fr(e) {
4173
4176
  if (!Je(e))
4174
- return e in se ? se[e] : Promise.resolve();
4175
- const t = yi(e);
4176
- return se[e] = Promise.all(
4177
+ return e in oe ? oe[e] : Promise.resolve();
4178
+ const t = bi(e);
4179
+ return oe[e] = Promise.all(
4177
4180
  t.map(
4178
- ([r, n]) => gi(r, n)
4181
+ ([r, n]) => yi(r, n)
4179
4182
  )
4180
4183
  ).then(() => {
4181
4184
  if (Je(e))
4182
4185
  return fr(e);
4183
- delete se[e];
4184
- }), se[e];
4186
+ delete oe[e];
4187
+ }), oe[e];
4185
4188
  }
4186
- const vi = {
4189
+ const gi = {
4187
4190
  number: {
4188
4191
  scientific: { notation: "scientific" },
4189
4192
  engineering: { notation: "engineering" },
@@ -4212,135 +4215,135 @@ const vi = {
4212
4215
  timeZoneName: "short"
4213
4216
  }
4214
4217
  }
4215
- }, _i = {
4218
+ }, vi = {
4216
4219
  fallbackLocale: null,
4217
4220
  loadingDelay: 200,
4218
- formats: vi,
4221
+ formats: gi,
4219
4222
  warnOnMissingMessages: !0,
4220
4223
  handleMissingMessage: void 0,
4221
4224
  ignoreTag: !0
4222
- }, Ei = _i;
4223
- function re() {
4224
- return Ei;
4225
+ }, _i = vi;
4226
+ function te() {
4227
+ return _i;
4225
4228
  }
4226
- const Re = He(!1);
4227
- var xi = Object.defineProperty, Si = Object.defineProperties, wi = Object.getOwnPropertyDescriptors, xt = Object.getOwnPropertySymbols, Ti = Object.prototype.hasOwnProperty, Hi = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? xi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Bi = (e, t) => {
4229
+ const Me = Te(!1);
4230
+ var Ei = Object.defineProperty, xi = Object.defineProperties, wi = Object.getOwnPropertyDescriptors, Et = Object.getOwnPropertySymbols, Si = Object.prototype.hasOwnProperty, Ti = Object.prototype.propertyIsEnumerable, xt = (e, t, r) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Hi = (e, t) => {
4228
4231
  for (var r in t || (t = {}))
4229
- Ti.call(t, r) && St(e, r, t[r]);
4230
- if (xt)
4231
- for (var r of xt(t))
4232
- Hi.call(t, r) && St(e, r, t[r]);
4232
+ Si.call(t, r) && xt(e, r, t[r]);
4233
+ if (Et)
4234
+ for (var r of Et(t))
4235
+ Ti.call(t, r) && xt(e, r, t[r]);
4233
4236
  return e;
4234
- }, Pi = (e, t) => Si(e, wi(t));
4235
- let Ye;
4236
- const xe = He(null);
4237
+ }, Bi = (e, t) => xi(e, wi(t));
4238
+ let qe;
4239
+ const Ee = Te(null);
4237
4240
  function wt(e) {
4238
4241
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4239
4242
  }
4240
- function Pe(e, t = re().fallbackLocale) {
4243
+ function Be(e, t = te().fallbackLocale) {
4241
4244
  const r = wt(e);
4242
4245
  return t ? [.../* @__PURE__ */ new Set([...r, ...wt(t)])] : r;
4243
4246
  }
4244
4247
  function W() {
4245
- return Ye ?? void 0;
4248
+ return qe ?? void 0;
4246
4249
  }
4247
- xe.subscribe((e) => {
4248
- Ye = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4250
+ Ee.subscribe((e) => {
4251
+ qe = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4249
4252
  });
4250
- const Ai = (e) => {
4251
- if (e && mi(e) && Je(e)) {
4252
- const { loadingDelay: t } = re();
4253
+ const Pi = (e) => {
4254
+ if (e && pi(e) && Je(e)) {
4255
+ const { loadingDelay: t } = te();
4253
4256
  let r;
4254
4257
  return typeof window < "u" && W() != null && t ? r = window.setTimeout(
4255
- () => Re.set(!0),
4258
+ () => Me.set(!0),
4256
4259
  t
4257
- ) : Re.set(!0), fr(e).then(() => {
4258
- xe.set(e);
4260
+ ) : Me.set(!0), fr(e).then(() => {
4261
+ Ee.set(e);
4259
4262
  }).finally(() => {
4260
- clearTimeout(r), Re.set(!1);
4263
+ clearTimeout(r), Me.set(!1);
4261
4264
  });
4262
4265
  }
4263
- return xe.set(e);
4264
- }, ie = Pi(Bi({}, xe), {
4265
- set: Ai
4266
- }), Ae = (e) => {
4266
+ return Ee.set(e);
4267
+ }, ne = Bi(Hi({}, Ee), {
4268
+ set: Pi
4269
+ }), Pe = (e) => {
4267
4270
  const t = /* @__PURE__ */ Object.create(null);
4268
4271
  return (n) => {
4269
4272
  const i = JSON.stringify(n);
4270
4273
  return i in t ? t[i] : t[i] = e(n);
4271
4274
  };
4272
4275
  };
4273
- var Oi = Object.defineProperty, Se = Object.getOwnPropertySymbols, dr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable, Tt = (e, t, r) => t in e ? Oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, tt = (e, t) => {
4276
+ var Ai = Object.defineProperty, xe = Object.getOwnPropertySymbols, dr = Object.prototype.hasOwnProperty, pr = Object.prototype.propertyIsEnumerable, St = (e, t, r) => t in e ? Ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, et = (e, t) => {
4274
4277
  for (var r in t || (t = {}))
4275
- dr.call(t, r) && Tt(e, r, t[r]);
4276
- if (Se)
4277
- for (var r of Se(t))
4278
- pr.call(t, r) && Tt(e, r, t[r]);
4278
+ dr.call(t, r) && St(e, r, t[r]);
4279
+ if (xe)
4280
+ for (var r of xe(t))
4281
+ pr.call(t, r) && St(e, r, t[r]);
4279
4282
  return e;
4280
- }, oe = (e, t) => {
4283
+ }, ie = (e, t) => {
4281
4284
  var r = {};
4282
4285
  for (var n in e)
4283
4286
  dr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4284
- if (e != null && Se)
4285
- for (var n of Se(e))
4287
+ if (e != null && xe)
4288
+ for (var n of xe(e))
4286
4289
  t.indexOf(n) < 0 && pr.call(e, n) && (r[n] = e[n]);
4287
4290
  return r;
4288
4291
  };
4289
- const he = (e, t) => {
4290
- const { formats: r } = re();
4292
+ const le = (e, t) => {
4293
+ const { formats: r } = te();
4291
4294
  if (e in r && t in r[e])
4292
4295
  return r[e][t];
4293
4296
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4294
- }, Ii = Ae(
4297
+ }, Oi = Pe(
4295
4298
  (e) => {
4296
- var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4299
+ var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
4297
4300
  if (r == null)
4298
4301
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4299
- return n && (i = he("number", n)), new Intl.NumberFormat(r, i);
4302
+ return n && (i = le("number", n)), new Intl.NumberFormat(r, i);
4300
4303
  }
4301
- ), Ci = Ae(
4304
+ ), Ii = Pe(
4302
4305
  (e) => {
4303
- var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4306
+ var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
4304
4307
  if (r == null)
4305
4308
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4306
- return n ? i = he("date", n) : Object.keys(i).length === 0 && (i = he("date", "short")), new Intl.DateTimeFormat(r, i);
4309
+ return n ? i = le("date", n) : Object.keys(i).length === 0 && (i = le("date", "short")), new Intl.DateTimeFormat(r, i);
4307
4310
  }
4308
- ), Li = Ae(
4311
+ ), Ci = Pe(
4309
4312
  (e) => {
4310
- var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4313
+ var t = e, { locale: r, format: n } = t, i = ie(t, ["locale", "format"]);
4311
4314
  if (r == null)
4312
4315
  throw new Error(
4313
4316
  '[svelte-i18n] A "locale" must be set to format time values'
4314
4317
  );
4315
- return n ? i = he("time", n) : Object.keys(i).length === 0 && (i = he("time", "short")), new Intl.DateTimeFormat(r, i);
4318
+ return n ? i = le("time", n) : Object.keys(i).length === 0 && (i = le("time", "short")), new Intl.DateTimeFormat(r, i);
4316
4319
  }
4317
- ), Ni = (e = {}) => {
4320
+ ), Li = (e = {}) => {
4318
4321
  var t = e, {
4319
4322
  locale: r = W()
4320
- } = t, n = oe(t, [
4323
+ } = t, n = ie(t, [
4321
4324
  "locale"
4322
4325
  ]);
4323
- return Ii(tt({ locale: r }, n));
4324
- }, Mi = (e = {}) => {
4326
+ return Oi(et({ locale: r }, n));
4327
+ }, Ni = (e = {}) => {
4325
4328
  var t = e, {
4326
4329
  locale: r = W()
4327
- } = t, n = oe(t, [
4330
+ } = t, n = ie(t, [
4328
4331
  "locale"
4329
4332
  ]);
4330
- return Ci(tt({ locale: r }, n));
4331
- }, Ri = (e = {}) => {
4333
+ return Ii(et({ locale: r }, n));
4334
+ }, Mi = (e = {}) => {
4332
4335
  var t = e, {
4333
4336
  locale: r = W()
4334
- } = t, n = oe(t, [
4337
+ } = t, n = ie(t, [
4335
4338
  "locale"
4336
4339
  ]);
4337
- return Li(tt({ locale: r }, n));
4338
- }, $i = Ae(
4340
+ return Ci(et({ locale: r }, n));
4341
+ }, Ri = Pe(
4339
4342
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4340
- (e, t = W()) => new hi(e, t, re().formats, {
4341
- ignoreTag: re().ignoreTag
4343
+ (e, t = W()) => new li(e, t, te().formats, {
4344
+ ignoreTag: te().ignoreTag
4342
4345
  })
4343
- ), Di = (e, t = {}) => {
4346
+ ), $i = (e, t = {}) => {
4344
4347
  var r, n, i, o;
4345
4348
  let a = t;
4346
4349
  typeof e == "object" && (a = e, e = a.id);
@@ -4355,7 +4358,7 @@ const he = (e, t) => {
4355
4358
  );
4356
4359
  let h = ur(e, l);
4357
4360
  if (!h)
4358
- h = (o = (i = (n = (r = re()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4361
+ h = (o = (i = (n = (r = te()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4359
4362
  else if (typeof h != "string")
4360
4363
  return console.warn(
4361
4364
  `[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.`
@@ -4364,7 +4367,7 @@ const he = (e, t) => {
4364
4367
  return h;
4365
4368
  let f = h;
4366
4369
  try {
4367
- f = $i(h, l).format(s);
4370
+ f = Ri(h, l).format(s);
4368
4371
  } catch (c) {
4369
4372
  c instanceof Error && console.warn(
4370
4373
  `[svelte-i18n] Message "${e}" has syntax error:`,
@@ -4372,14 +4375,14 @@ const he = (e, t) => {
4372
4375
  );
4373
4376
  }
4374
4377
  return f;
4375
- }, Ui = (e, t) => Ri(t).format(e), Gi = (e, t) => Mi(t).format(e), Fi = (e, t) => Ni(t).format(e), ji = (e, t = W()) => ur(e, t), ki = ne([ie, fe], () => Di);
4376
- ne([ie], () => Ui);
4377
- ne([ie], () => Gi);
4378
- ne([ie], () => Fi);
4379
- ne([ie, fe], () => ji);
4380
- window.emWidgets = { topic: tn };
4381
- const mr = (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)), Vi = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4382
- function go(e, t) {
4378
+ }, Di = (e, t) => Mi(t).format(e), Ui = (e, t) => Ni(t).format(e), Gi = (e, t) => Li(t).format(e), Fi = (e, t = W()) => ur(e, t), ji = re([ne, ce], () => $i);
4379
+ re([ne], () => Di);
4380
+ re([ne], () => Ui);
4381
+ re([ne], () => Gi);
4382
+ re([ne, ce], () => Fi);
4383
+ window.emWidgets = { topic: en };
4384
+ const mr = (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)), ki = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4385
+ function Eo(e, t) {
4383
4386
  const r = window.navigator.userAgent;
4384
4387
  return mr(r) ? t = e.filter((n) => {
4385
4388
  if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
@@ -4389,13 +4392,36 @@ function go(e, t) {
4389
4392
  return n;
4390
4393
  }), t;
4391
4394
  }
4392
- function Ht(e, t) {
4395
+ function Vi(e, t) {
4396
+ if (e) {
4397
+ const r = document.createElement("style");
4398
+ r.innerHTML = t, e.appendChild(r);
4399
+ }
4400
+ }
4401
+ function Xi(e, t) {
4402
+ const r = new URL(t);
4403
+ fetch(r.href).then((n) => n.text()).then((n) => {
4404
+ const i = document.createElement("style");
4405
+ i.innerHTML = n, e && e.appendChild(i);
4406
+ }).catch((n) => {
4407
+ console.error("There was an error while trying to load client styling from URL", n);
4408
+ });
4409
+ }
4410
+ function Wi(e, t, r) {
4411
+ if (window.emMessageBus) {
4412
+ const n = document.createElement("style");
4413
+ window.emMessageBus.subscribe(t, (i) => {
4414
+ n.innerHTML = i, e && e.appendChild(n);
4415
+ });
4416
+ }
4417
+ }
4418
+ function Tt(e, t) {
4393
4419
  hr(e, t);
4394
4420
  }
4395
- function Xi(e) {
4396
- ie.set(e);
4421
+ function zi(e) {
4422
+ ne.set(e);
4397
4423
  }
4398
- const Bt = {
4424
+ const Ht = {
4399
4425
  en: {
4400
4426
  error: "500 Error - Internal Server Error"
4401
4427
  },
@@ -4427,7 +4453,7 @@ if (typeof window < "u") {
4427
4453
  }
4428
4454
  };
4429
4455
  };
4430
- customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-qLuUx2VZ.js").then(({ default: t }) => {
4456
+ customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-BP_ANGdX.js").then(({ default: t }) => {
4431
4457
  !customElements.get("casino-calendar-daily-details") && customElements.define("casino-calendar-daily-details", t.element);
4432
4458
  });
4433
4459
  }
@@ -4443,77 +4469,77 @@ if (typeof window < "u") {
4443
4469
  }
4444
4470
  };
4445
4471
  };
4446
- customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-DKZuA435.js").then(({ default: t }) => {
4472
+ customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-DE7Q_O2x.js").then(({ default: t }) => {
4447
4473
  !customElements.get("casino-calendar-daily-item") && customElements.define("casino-calendar-daily-item", t.element);
4448
4474
  });
4449
4475
  }
4450
- function Wi(e) {
4451
- _r(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
4452
- }.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)}}`);
4476
+ function Zi(e) {
4477
+ _r(e, "svelte-61avp5", `.svelte-61avp5{font-family:inherit}.CasinoCalendarItem.svelte-61avp5{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-61avp5{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-61avp5{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-61avp5{display:block;width:80px;height:80px;margin:0 auto
4478
+ }.LoadingSpinner.svelte-61avp5: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-61avp5-LoadingSpinner 1.2s linear infinite}@keyframes svelte-61avp5-LoadingSpinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}`);
4453
4479
  }
4454
- function Pt(e, t, r) {
4480
+ function Bt(e, t, r) {
4455
4481
  const n = e.slice();
4456
- return n[26] = t[r], n[28] = r, n;
4482
+ return n[25] = t[r], n[27] = r, n;
4457
4483
  }
4458
- function zi(e) {
4459
- let t, r, n, i = ot(
4484
+ function Qi(e) {
4485
+ let t, r, n, i = it(
4460
4486
  /*calendarCollections*/
4461
- e[5]
4487
+ e[6]
4462
4488
  ), o = [];
4463
4489
  for (let s = 0; s < i.length; s += 1)
4464
- o[s] = At(Pt(e, i, s));
4490
+ o[s] = Pt(Bt(e, i, s));
4465
4491
  let a = (
4466
4492
  /*calendarModalOpened*/
4467
- e[10] == !0 && Ot(e)
4493
+ e[11] == !0 && At(e)
4468
4494
  );
4469
4495
  return {
4470
4496
  c() {
4471
- t = N("div");
4497
+ t = L("div");
4472
4498
  for (let s = 0; s < o.length; s += 1)
4473
4499
  o[s].c();
4474
- r = Tr(), a && a.c(), V(t, "class", n = "CasinoCalendarItem " + /*mobileView*/
4475
- (e[9] ? "Mobile" : "") + " svelte-1bqenf9");
4500
+ r = Tr(), a && a.c(), j(t, "class", n = "CasinoCalendarItem " + /*mobileView*/
4501
+ (e[10] ? "Mobile" : "") + " svelte-61avp5");
4476
4502
  },
4477
4503
  m(s, l) {
4478
- j(s, t, l);
4504
+ k(s, t, l);
4479
4505
  for (let u = 0; u < o.length; u += 1)
4480
4506
  o[u] && o[u].m(t, null);
4481
- ce(t, r), a && a.m(t, null);
4507
+ he(t, r), a && a.m(t, null);
4482
4508
  },
4483
4509
  p(s, l) {
4484
- if (l & /*calendarCollections, lang, clientstyling, clientstylingurl, translationurl*/
4485
- 47) {
4486
- i = ot(
4510
+ if (l & /*calendarCollections, lang, clientstyling, clientstylingurl, mbsource, translationurl*/
4511
+ 95) {
4512
+ i = it(
4487
4513
  /*calendarCollections*/
4488
- s[5]
4514
+ s[6]
4489
4515
  );
4490
4516
  let u;
4491
4517
  for (u = 0; u < i.length; u += 1) {
4492
- const h = Pt(s, i, u);
4493
- o[u] ? o[u].p(h, l) : (o[u] = At(h), o[u].c(), o[u].m(t, r));
4518
+ const h = Bt(s, i, u);
4519
+ o[u] ? o[u].p(h, l) : (o[u] = Pt(h), o[u].c(), o[u].m(t, r));
4494
4520
  }
4495
4521
  for (; u < o.length; u += 1)
4496
4522
  o[u].d(1);
4497
4523
  o.length = i.length;
4498
4524
  }
4499
4525
  /*calendarModalOpened*/
4500
- s[10] == !0 ? a ? a.p(s, l) : (a = Ot(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null), l & /*mobileView*/
4501
- 512 && n !== (n = "CasinoCalendarItem " + /*mobileView*/
4502
- (s[9] ? "Mobile" : "") + " svelte-1bqenf9") && V(t, "class", n);
4526
+ s[11] == !0 ? a ? a.p(s, l) : (a = At(s), a.c(), a.m(t, null)) : a && (a.d(1), a = null), l & /*mobileView*/
4527
+ 1024 && n !== (n = "CasinoCalendarItem " + /*mobileView*/
4528
+ (s[10] ? "Mobile" : "") + " svelte-61avp5") && j(t, "class", n);
4503
4529
  },
4504
4530
  d(s) {
4505
- s && $(t), Sr(o, s), a && a.d();
4531
+ s && $(t), wr(o, s), a && a.d();
4506
4532
  }
4507
4533
  };
4508
4534
  }
4509
- function qi(e) {
4535
+ function Ji(e) {
4510
4536
  let t;
4511
4537
  return {
4512
4538
  c() {
4513
- t = N("div"), V(t, "class", "LoadingSpinner svelte-1bqenf9");
4539
+ t = L("div"), j(t, "class", "LoadingSpinner svelte-61avp5");
4514
4540
  },
4515
4541
  m(r, n) {
4516
- j(r, t, n);
4542
+ k(r, t, n);
4517
4543
  },
4518
4544
  p: P,
4519
4545
  d(r) {
@@ -4521,98 +4547,109 @@ function qi(e) {
4521
4547
  }
4522
4548
  };
4523
4549
  }
4524
- function Zi(e) {
4550
+ function qi(e) {
4525
4551
  let t, r = (
4526
4552
  /*$_*/
4527
- e[11]("error") + ""
4553
+ e[12]("error") + ""
4528
4554
  ), n;
4529
4555
  return {
4530
4556
  c() {
4531
- t = N("p"), n = Ke(r), V(t, "class", "SearchLoading");
4557
+ t = L("p"), n = Ye(r), j(t, "class", "SearchLoading svelte-61avp5");
4532
4558
  },
4533
4559
  m(i, o) {
4534
- j(i, t, o), ce(t, n);
4560
+ k(i, t, o), he(t, n);
4535
4561
  },
4536
4562
  p(i, o) {
4537
4563
  o & /*$_*/
4538
- 2048 && r !== (r = /*$_*/
4539
- i[11]("error") + "") && Br(n, r);
4564
+ 4096 && r !== (r = /*$_*/
4565
+ i[12]("error") + "") && Br(n, r);
4540
4566
  },
4541
4567
  d(i) {
4542
4568
  i && $(t);
4543
4569
  }
4544
4570
  };
4545
4571
  }
4546
- function At(e) {
4572
+ function Pt(e) {
4547
4573
  let t, r, n, i, o, a;
4548
4574
  return {
4549
4575
  c() {
4550
- t = N("casino-calendar-daily-item"), m(t, "dailybackground", r = /*dailyCalendarData*/
4551
- e[26].dailyBackground), m(t, "dailyicon", n = /*dailyCalendarData*/
4552
- e[26].dailyIcon), m(t, "dailyday", i = /*dailyCalendarData*/
4553
- e[26].dailyDay), m(t, "dailydescription", o = /*dailyCalendarData*/
4554
- e[26].dailyDescription), m(t, "dailybuttontitle", a = /*dailyCalendarData*/
4555
- e[26].dailyButtonTitle), m(
4576
+ t = L("casino-calendar-daily-item"), p(t, "dailybackground", r = /*dailyCalendarData*/
4577
+ e[25].dailyBackground), p(t, "dailyicon", n = /*dailyCalendarData*/
4578
+ e[25].dailyIcon), p(t, "dailyday", i = /*dailyCalendarData*/
4579
+ e[25].dailyDay), p(t, "dailydescription", o = /*dailyCalendarData*/
4580
+ e[25].dailyDescription), p(t, "dailybuttontitle", a = /*dailyCalendarData*/
4581
+ e[25].dailyButtonTitle), p(
4556
4582
  t,
4557
4583
  "index",
4558
4584
  /*index*/
4559
- e[28]
4560
- ), m(
4585
+ e[27]
4586
+ ), p(
4561
4587
  t,
4562
4588
  "lang",
4563
4589
  /*lang*/
4564
4590
  e[0]
4565
- ), m(
4591
+ ), p(
4566
4592
  t,
4567
4593
  "clientstyling",
4568
4594
  /*clientstyling*/
4569
4595
  e[1]
4570
- ), m(
4596
+ ), p(
4571
4597
  t,
4572
4598
  "clientstylingurl",
4573
4599
  /*clientstylingurl*/
4574
4600
  e[2]
4575
- ), m(
4601
+ ), p(
4602
+ t,
4603
+ "mbsource",
4604
+ /*mbsource*/
4605
+ e[4]
4606
+ ), p(
4576
4607
  t,
4577
4608
  "translationurl",
4578
4609
  /*translationurl*/
4579
4610
  e[3]
4580
- );
4611
+ ), p(t, "class", "svelte-61avp5");
4581
4612
  },
4582
4613
  m(s, l) {
4583
- j(s, t, l);
4614
+ k(s, t, l);
4584
4615
  },
4585
4616
  p(s, l) {
4586
4617
  l & /*calendarCollections*/
4587
- 32 && r !== (r = /*dailyCalendarData*/
4588
- s[26].dailyBackground) && m(t, "dailybackground", r), l & /*calendarCollections*/
4589
- 32 && n !== (n = /*dailyCalendarData*/
4590
- s[26].dailyIcon) && m(t, "dailyicon", n), l & /*calendarCollections*/
4591
- 32 && i !== (i = /*dailyCalendarData*/
4592
- s[26].dailyDay) && m(t, "dailyday", i), l & /*calendarCollections*/
4593
- 32 && o !== (o = /*dailyCalendarData*/
4594
- s[26].dailyDescription) && m(t, "dailydescription", o), l & /*calendarCollections*/
4595
- 32 && a !== (a = /*dailyCalendarData*/
4596
- s[26].dailyButtonTitle) && m(t, "dailybuttontitle", a), l & /*lang*/
4597
- 1 && m(
4618
+ 64 && r !== (r = /*dailyCalendarData*/
4619
+ s[25].dailyBackground) && p(t, "dailybackground", r), l & /*calendarCollections*/
4620
+ 64 && n !== (n = /*dailyCalendarData*/
4621
+ s[25].dailyIcon) && p(t, "dailyicon", n), l & /*calendarCollections*/
4622
+ 64 && i !== (i = /*dailyCalendarData*/
4623
+ s[25].dailyDay) && p(t, "dailyday", i), l & /*calendarCollections*/
4624
+ 64 && o !== (o = /*dailyCalendarData*/
4625
+ s[25].dailyDescription) && p(t, "dailydescription", o), l & /*calendarCollections*/
4626
+ 64 && a !== (a = /*dailyCalendarData*/
4627
+ s[25].dailyButtonTitle) && p(t, "dailybuttontitle", a), l & /*lang*/
4628
+ 1 && p(
4598
4629
  t,
4599
4630
  "lang",
4600
4631
  /*lang*/
4601
4632
  s[0]
4602
4633
  ), l & /*clientstyling*/
4603
- 2 && m(
4634
+ 2 && p(
4604
4635
  t,
4605
4636
  "clientstyling",
4606
4637
  /*clientstyling*/
4607
4638
  s[1]
4608
4639
  ), l & /*clientstylingurl*/
4609
- 4 && m(
4640
+ 4 && p(
4610
4641
  t,
4611
4642
  "clientstylingurl",
4612
4643
  /*clientstylingurl*/
4613
4644
  s[2]
4645
+ ), l & /*mbsource*/
4646
+ 16 && p(
4647
+ t,
4648
+ "mbsource",
4649
+ /*mbsource*/
4650
+ s[4]
4614
4651
  ), l & /*translationurl*/
4615
- 8 && m(
4652
+ 8 && p(
4616
4653
  t,
4617
4654
  "translationurl",
4618
4655
  /*translationurl*/
@@ -4624,110 +4661,121 @@ function At(e) {
4624
4661
  }
4625
4662
  };
4626
4663
  }
4627
- function Ot(e) {
4664
+ function At(e) {
4628
4665
  let t, r, n, i, o, a, s, l;
4629
4666
  return {
4630
4667
  c() {
4631
- t = N("div"), r = N("casino-calendar-daily-details"), m(r, "dailybackground", n = /*calendarCollections*/
4632
- e[5][
4668
+ t = L("div"), r = L("casino-calendar-daily-details"), p(r, "dailybackground", n = /*calendarCollections*/
4669
+ e[6][
4633
4670
  /*selectedIndex*/
4634
- e[6]
4635
- ].dailyBackground), m(r, "dailybuttontitle", i = /*calendarCollections*/
4636
- e[5][
4671
+ e[7]
4672
+ ].dailyBackground), p(r, "dailybuttontitle", i = /*calendarCollections*/
4673
+ e[6][
4637
4674
  /*selectedIndex*/
4638
- e[6]
4639
- ].dailyButtonTitle), m(r, "dailyday", o = /*calendarCollections*/
4640
- e[5][
4675
+ e[7]
4676
+ ].dailyButtonTitle), p(r, "dailyday", o = /*calendarCollections*/
4677
+ e[6][
4641
4678
  /*selectedIndex*/
4642
- e[6]
4643
- ].dailyDay), m(r, "dailydescription", a = /*calendarCollections*/
4644
- e[5][
4679
+ e[7]
4680
+ ].dailyDay), p(r, "dailydescription", a = /*calendarCollections*/
4681
+ e[6][
4645
4682
  /*selectedIndex*/
4646
- e[6]
4647
- ].dailyDescription), m(r, "dailyicon", s = /*calendarCollections*/
4648
- e[5][
4683
+ e[7]
4684
+ ].dailyDescription), p(r, "dailyicon", s = /*calendarCollections*/
4685
+ e[6][
4649
4686
  /*selectedIndex*/
4650
- e[6]
4651
- ].dailyIcon), m(r, "dailytitle", l = /*calendarCollections*/
4652
- e[5][
4687
+ e[7]
4688
+ ].dailyIcon), p(r, "dailytitle", l = /*calendarCollections*/
4689
+ e[6][
4653
4690
  /*selectedIndex*/
4654
- e[6]
4655
- ].dailyTitle), m(
4691
+ e[7]
4692
+ ].dailyTitle), p(
4656
4693
  r,
4657
4694
  "lang",
4658
4695
  /*lang*/
4659
4696
  e[0]
4660
- ), m(
4697
+ ), p(
4661
4698
  r,
4662
4699
  "clientstyling",
4663
4700
  /*clientstyling*/
4664
4701
  e[1]
4665
- ), m(
4702
+ ), p(
4666
4703
  r,
4667
4704
  "clientstylingurl",
4668
4705
  /*clientstylingurl*/
4669
4706
  e[2]
4670
- ), m(
4707
+ ), p(
4708
+ r,
4709
+ "mbsource",
4710
+ /*mbsource*/
4711
+ e[4]
4712
+ ), p(
4671
4713
  r,
4672
4714
  "translationurl",
4673
4715
  /*translationurl*/
4674
4716
  e[3]
4675
- ), V(t, "class", "CalendarDetailsWrapper svelte-1bqenf9");
4717
+ ), p(r, "class", "svelte-61avp5"), j(t, "class", "CalendarDetailsWrapper svelte-61avp5");
4676
4718
  },
4677
4719
  m(u, h) {
4678
- j(u, t, h), ce(t, r);
4720
+ k(u, t, h), he(t, r);
4679
4721
  },
4680
4722
  p(u, h) {
4681
4723
  h & /*calendarCollections, selectedIndex*/
4682
- 96 && n !== (n = /*calendarCollections*/
4683
- u[5][
4724
+ 192 && n !== (n = /*calendarCollections*/
4725
+ u[6][
4684
4726
  /*selectedIndex*/
4685
- u[6]
4686
- ].dailyBackground) && m(r, "dailybackground", n), h & /*calendarCollections, selectedIndex*/
4687
- 96 && i !== (i = /*calendarCollections*/
4688
- u[5][
4727
+ u[7]
4728
+ ].dailyBackground) && p(r, "dailybackground", n), h & /*calendarCollections, selectedIndex*/
4729
+ 192 && i !== (i = /*calendarCollections*/
4730
+ u[6][
4689
4731
  /*selectedIndex*/
4690
- u[6]
4691
- ].dailyButtonTitle) && m(r, "dailybuttontitle", i), h & /*calendarCollections, selectedIndex*/
4692
- 96 && o !== (o = /*calendarCollections*/
4693
- u[5][
4732
+ u[7]
4733
+ ].dailyButtonTitle) && p(r, "dailybuttontitle", i), h & /*calendarCollections, selectedIndex*/
4734
+ 192 && o !== (o = /*calendarCollections*/
4735
+ u[6][
4694
4736
  /*selectedIndex*/
4695
- u[6]
4696
- ].dailyDay) && m(r, "dailyday", o), h & /*calendarCollections, selectedIndex*/
4697
- 96 && a !== (a = /*calendarCollections*/
4698
- u[5][
4737
+ u[7]
4738
+ ].dailyDay) && p(r, "dailyday", o), h & /*calendarCollections, selectedIndex*/
4739
+ 192 && a !== (a = /*calendarCollections*/
4740
+ u[6][
4699
4741
  /*selectedIndex*/
4700
- u[6]
4701
- ].dailyDescription) && m(r, "dailydescription", a), h & /*calendarCollections, selectedIndex*/
4702
- 96 && s !== (s = /*calendarCollections*/
4703
- u[5][
4742
+ u[7]
4743
+ ].dailyDescription) && p(r, "dailydescription", a), h & /*calendarCollections, selectedIndex*/
4744
+ 192 && s !== (s = /*calendarCollections*/
4745
+ u[6][
4704
4746
  /*selectedIndex*/
4705
- u[6]
4706
- ].dailyIcon) && m(r, "dailyicon", s), h & /*calendarCollections, selectedIndex*/
4707
- 96 && l !== (l = /*calendarCollections*/
4708
- u[5][
4747
+ u[7]
4748
+ ].dailyIcon) && p(r, "dailyicon", s), h & /*calendarCollections, selectedIndex*/
4749
+ 192 && l !== (l = /*calendarCollections*/
4750
+ u[6][
4709
4751
  /*selectedIndex*/
4710
- u[6]
4711
- ].dailyTitle) && m(r, "dailytitle", l), h & /*lang*/
4712
- 1 && m(
4752
+ u[7]
4753
+ ].dailyTitle) && p(r, "dailytitle", l), h & /*lang*/
4754
+ 1 && p(
4713
4755
  r,
4714
4756
  "lang",
4715
4757
  /*lang*/
4716
4758
  u[0]
4717
4759
  ), h & /*clientstyling*/
4718
- 2 && m(
4760
+ 2 && p(
4719
4761
  r,
4720
4762
  "clientstyling",
4721
4763
  /*clientstyling*/
4722
4764
  u[1]
4723
4765
  ), h & /*clientstylingurl*/
4724
- 4 && m(
4766
+ 4 && p(
4725
4767
  r,
4726
4768
  "clientstylingurl",
4727
4769
  /*clientstylingurl*/
4728
4770
  u[2]
4771
+ ), h & /*mbsource*/
4772
+ 16 && p(
4773
+ r,
4774
+ "mbsource",
4775
+ /*mbsource*/
4776
+ u[4]
4729
4777
  ), h & /*translationurl*/
4730
- 8 && m(
4778
+ 8 && p(
4731
4779
  r,
4732
4780
  "translationurl",
4733
4781
  /*translationurl*/
@@ -4739,29 +4787,29 @@ function Ot(e) {
4739
4787
  }
4740
4788
  };
4741
4789
  }
4742
- function Qi(e) {
4790
+ function Yi(e) {
4743
4791
  let t;
4744
4792
  function r(o, a) {
4745
4793
  if (
4746
4794
  /*hasErrors*/
4747
- o[8]
4748
- ) return Zi;
4795
+ o[9]
4796
+ ) return qi;
4749
4797
  if (
4750
4798
  /*isLoading*/
4751
- o[7]
4752
- ) return qi;
4799
+ o[8]
4800
+ ) return Ji;
4753
4801
  if (
4754
4802
  /*calendarCollections*/
4755
- o[5]?.length
4756
- ) return zi;
4803
+ o[6]?.length
4804
+ ) return Qi;
4757
4805
  }
4758
4806
  let n = r(e), i = n && n(e);
4759
4807
  return {
4760
4808
  c() {
4761
- t = N("div"), i && i.c();
4809
+ t = L("div"), i && i.c(), j(t, "class", "svelte-61avp5");
4762
4810
  },
4763
4811
  m(o, a) {
4764
- j(o, t, a), i && i.m(t, null), e[15](t);
4812
+ k(o, t, a), i && i.m(t, null), e[16](t);
4765
4813
  },
4766
4814
  p(o, [a]) {
4767
4815
  n === (n = r(o)) && i ? i.p(o, a) : (i && i.d(1), i = n && n(o), i && (i.c(), i.m(t, null)));
@@ -4769,91 +4817,75 @@ function Qi(e) {
4769
4817
  i: P,
4770
4818
  o: P,
4771
4819
  d(o) {
4772
- o && $(t), i && i.d(), e[15](null);
4820
+ o && $(t), i && i.d(), e[16](null);
4773
4821
  }
4774
4822
  };
4775
4823
  }
4776
- function Ji(e, t, r) {
4824
+ function Ki(e, t, r) {
4777
4825
  let n;
4778
- vr(e, ki, (d) => r(11, n = d));
4779
- let { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h } = t, f, c, p = 0, b = !0, v = !1, S = !1, A = window.navigator.userAgent, H = !1;
4780
- const w = () => {
4781
- Xi(s);
4826
+ vr(e, ji, (d) => r(12, n = d));
4827
+ let { cmsendpoint: i = "" } = t, { env: o = "" } = t, { userroles: a = "" } = t, { lang: s = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h } = t, { mbsource: f } = t, c, m, b = 0, g = !0, w = !1, A = !1, H = window.navigator.userAgent, S = !1;
4828
+ const N = () => {
4829
+ zi(s);
4782
4830
  };
4783
- Object.keys(Bt).forEach((d) => {
4784
- Ht(d, Bt[d]);
4831
+ Object.keys(Ht).forEach((d) => {
4832
+ Tt(d, Ht[d]);
4785
4833
  });
4786
- const M = () => {
4834
+ const O = () => {
4787
4835
  let d = h;
4788
4836
  if (d)
4789
- return fetch(d).then((B) => B.json()).then((B) => {
4790
- Object.keys(B).forEach((L) => {
4791
- Ht(L, B[L]);
4837
+ return fetch(d).then((C) => C.json()).then((C) => {
4838
+ Object.keys(C).forEach((G) => {
4839
+ Tt(G, C[G]);
4792
4840
  });
4793
- }).catch((B) => {
4794
- console.log(B);
4841
+ }).catch((C) => {
4842
+ console.log(C);
4795
4843
  });
4796
- }, O = () => {
4797
- r(7, b = !0);
4844
+ }, M = () => {
4845
+ r(8, g = !0);
4798
4846
  let d = new URL(`${i}/${s}/daily-calendar`);
4799
4847
  d.searchParams.append("userRoles", a), d.searchParams.append("env", o);
4800
- let B = Vi(A);
4801
- 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) => {
4802
- r(5, c = L);
4803
- }).catch((L) => {
4804
- console.log(L), r(8, v = !0);
4848
+ let C = ki(H);
4849
+ C && (C === "PC" ? d.searchParams.append("device", "dk") : C === "iPad" || C === "iPhone" ? d.searchParams.append("device", "ios") : d.searchParams.append("device", "mtWeb")), fetch(d.href).then((G) => G.json()).then((G) => {
4850
+ r(6, m = G);
4851
+ }).catch((G) => {
4852
+ console.log(G), r(9, w = !0);
4805
4853
  }).finally(() => {
4806
- r(7, b = !1);
4854
+ r(8, g = !1);
4807
4855
  });
4808
- }, R = () => {
4809
- O();
4810
- }, E = (d) => {
4811
- d.data && d.data.type == "OpenCalendar" && (r(6, p = d.data.index), r(10, H = !0), window.postMessage(
4856
+ }, x = () => {
4857
+ M();
4858
+ }, B = (d) => {
4859
+ d.data && d.data.type == "OpenCalendar" && (r(7, b = d.data.index), r(11, S = !0), window.postMessage(
4812
4860
  {
4813
4861
  type: "ShowModal",
4814
- selectedIndex: p,
4862
+ selectedIndex: b,
4815
4863
  identifier: "Calendar"
4816
4864
  },
4817
4865
  window.location.href
4818
4866
  ), window.postMessage({
4819
4867
  type: "DailyEventsData",
4820
- data: c[p]?.dailyEvents
4821
- })), d.data && d.data.type == "ModalClosed" && r(10, H = !1);
4822
- }, I = () => {
4823
- let d = document.createElement("style");
4824
- d.innerHTML = l, f.appendChild(d);
4825
- }, C = () => {
4826
- let d = new URL(u), B = document.createElement("style");
4827
- fetch(d.href).then((L) => L.text()).then((L) => {
4828
- B.innerHTML = L, setTimeout(
4829
- () => {
4830
- f.appendChild(B);
4831
- },
4832
- 1
4833
- ), setTimeout(
4834
- () => {
4835
- },
4836
- 500
4837
- );
4838
- });
4868
+ data: m[b]?.dailyEvents
4869
+ })), d.data && d.data.type == "ModalClosed" && r(11, S = !1);
4839
4870
  };
4840
- Ir(() => (window.addEventListener("message", E, !1), mr(A) && r(9, S = !0), () => {
4841
- window.removeEventListener("message", E);
4871
+ Or(() => (window.addEventListener("message", B, !1), mr(H) && r(10, A = !0), () => {
4872
+ window.removeEventListener("message", B);
4842
4873
  }));
4843
- function z(d) {
4844
- $e[d ? "unshift" : "push"](() => {
4845
- f = d, r(4, f);
4874
+ function I(d) {
4875
+ Re[d ? "unshift" : "push"](() => {
4876
+ c = d, r(5, c);
4846
4877
  });
4847
4878
  }
4848
4879
  return e.$$set = (d) => {
4849
- "cmsendpoint" in d && r(12, i = d.cmsendpoint), "env" in d && r(13, o = d.env), "userroles" in d && r(14, a = d.userroles), "lang" in d && r(0, s = 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);
4880
+ "cmsendpoint" in d && r(13, i = d.cmsendpoint), "env" in d && r(14, o = d.env), "userroles" in d && r(15, a = d.userroles), "lang" in d && r(0, s = 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), "mbsource" in d && r(4, f = d.mbsource);
4850
4881
  }, e.$$.update = () => {
4851
4882
  e.$$.dirty & /*cmsendpoint, lang, env, userroles*/
4852
- 28673 && i && s && o && a && R(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4853
- 18 && l && f && I(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4854
- 20 && u && f && C(), e.$$.dirty & /*lang*/
4855
- 1 && s && w(), e.$$.dirty & /*lang, translationurl*/
4856
- 9 && s && h && M();
4883
+ 57345 && i && s && o && a && x(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4884
+ 34 && l && c && Vi(c, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4885
+ 36 && u && c && Xi(c, u), e.$$.dirty & /*customStylingContainer, mbsource*/
4886
+ 48 && c && Wi(c, `${f}.Style`), e.$$.dirty & /*lang*/
4887
+ 1 && s && N(), e.$$.dirty & /*lang, translationurl*/
4888
+ 9 && s && h && O();
4857
4889
  }, [
4858
4890
  s,
4859
4891
  l,
@@ -4861,139 +4893,151 @@ function Ji(e, t, r) {
4861
4893
  h,
4862
4894
  f,
4863
4895
  c,
4864
- p,
4896
+ m,
4865
4897
  b,
4866
- v,
4898
+ g,
4899
+ w,
4900
+ A,
4867
4901
  S,
4868
- H,
4869
4902
  n,
4870
4903
  i,
4871
4904
  o,
4872
4905
  a,
4873
- z
4906
+ I
4874
4907
  ];
4875
4908
  }
4876
- class br extends Ur {
4909
+ class br extends Dr {
4877
4910
  constructor(t) {
4878
- super(), $r(
4911
+ super(), Rr(
4879
4912
  this,
4880
4913
  t,
4881
- Ji,
4882
- Qi,
4883
- Ct,
4914
+ Ki,
4915
+ Yi,
4916
+ It,
4884
4917
  {
4885
- cmsendpoint: 12,
4886
- env: 13,
4887
- userroles: 14,
4918
+ cmsendpoint: 13,
4919
+ env: 14,
4920
+ userroles: 15,
4888
4921
  lang: 0,
4889
4922
  clientstyling: 1,
4890
4923
  clientstylingurl: 2,
4891
- translationurl: 3
4924
+ translationurl: 3,
4925
+ mbsource: 4
4892
4926
  },
4893
- Wi
4927
+ Zi
4894
4928
  );
4895
4929
  }
4896
4930
  get cmsendpoint() {
4897
- return this.$$.ctx[12];
4931
+ return this.$$.ctx[13];
4898
4932
  }
4899
4933
  set cmsendpoint(t) {
4900
- this.$$set({ cmsendpoint: t }), D();
4934
+ this.$$set({ cmsendpoint: t }), R();
4901
4935
  }
4902
4936
  get env() {
4903
- return this.$$.ctx[13];
4937
+ return this.$$.ctx[14];
4904
4938
  }
4905
4939
  set env(t) {
4906
- this.$$set({ env: t }), D();
4940
+ this.$$set({ env: t }), R();
4907
4941
  }
4908
4942
  get userroles() {
4909
- return this.$$.ctx[14];
4943
+ return this.$$.ctx[15];
4910
4944
  }
4911
4945
  set userroles(t) {
4912
- this.$$set({ userroles: t }), D();
4946
+ this.$$set({ userroles: t }), R();
4913
4947
  }
4914
4948
  get lang() {
4915
4949
  return this.$$.ctx[0];
4916
4950
  }
4917
4951
  set lang(t) {
4918
- this.$$set({ lang: t }), D();
4952
+ this.$$set({ lang: t }), R();
4919
4953
  }
4920
4954
  get clientstyling() {
4921
4955
  return this.$$.ctx[1];
4922
4956
  }
4923
4957
  set clientstyling(t) {
4924
- this.$$set({ clientstyling: t }), D();
4958
+ this.$$set({ clientstyling: t }), R();
4925
4959
  }
4926
4960
  get clientstylingurl() {
4927
4961
  return this.$$.ctx[2];
4928
4962
  }
4929
4963
  set clientstylingurl(t) {
4930
- this.$$set({ clientstylingurl: t }), D();
4964
+ this.$$set({ clientstylingurl: t }), R();
4931
4965
  }
4932
4966
  get translationurl() {
4933
4967
  return this.$$.ctx[3];
4934
4968
  }
4935
4969
  set translationurl(t) {
4936
- this.$$set({ translationurl: t }), D();
4970
+ this.$$set({ translationurl: t }), R();
4971
+ }
4972
+ get mbsource() {
4973
+ return this.$$.ctx[4];
4974
+ }
4975
+ set mbsource(t) {
4976
+ this.$$set({ mbsource: t }), R();
4937
4977
  }
4938
4978
  }
4939
- Dr(br, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4940
- const vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4979
+ $r(br, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
4980
+ const xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4941
4981
  __proto__: null,
4942
4982
  default: br
4943
4983
  }, Symbol.toStringTag, { value: "Module" }));
4944
4984
  export {
4945
- ie as $,
4946
- nt as A,
4985
+ ne as $,
4986
+ rt as A,
4947
4987
  Tr as B,
4948
- $e as C,
4949
- Yi as D,
4950
- wr as E,
4951
- io as F,
4952
- ao as G,
4953
- ho as H,
4954
- Dr as I,
4955
- ki as J,
4956
- uo as K,
4957
- Ue as L,
4958
- X as M,
4959
- oo as N,
4960
- fe as O,
4961
- m as P,
4962
- Vi as Q,
4963
- so as R,
4964
- Ur as S,
4965
- lo as T,
4966
- co as U,
4967
- go as V,
4968
- yo as W,
4969
- bo as X,
4970
- no as Y,
4971
- we as Z,
4988
+ Re as C,
4989
+ eo as D,
4990
+ Sr as E,
4991
+ so as F,
4992
+ lo as G,
4993
+ fo as H,
4994
+ Vi as I,
4995
+ Xi as J,
4996
+ Wi as K,
4997
+ $r as L,
4998
+ ji as M,
4999
+ ho as N,
5000
+ De as O,
5001
+ X as P,
5002
+ ao as Q,
5003
+ ce as R,
5004
+ Dr as S,
5005
+ p as T,
5006
+ ki as U,
5007
+ uo as V,
5008
+ co as W,
5009
+ mo as X,
5010
+ Eo as Y,
5011
+ _o as Z,
4972
5012
  vo as _,
4973
5013
  hr as a,
5014
+ po as a0,
5015
+ oo as a1,
5016
+ we as a2,
5017
+ xo as a3,
4974
5018
  _r as b,
4975
5019
  $t as c,
4976
5020
  $ as d,
4977
- po as e,
4978
- D as f,
4979
- fo as g,
4980
- j as h,
4981
- $r as i,
4982
- N as j,
5021
+ yo as e,
5022
+ R as f,
5023
+ bo as g,
5024
+ k as h,
5025
+ Rr as i,
5026
+ L as j,
4983
5027
  vr as k,
4984
5028
  mr as l,
4985
5029
  Br as m,
4986
5030
  P as n,
4987
- Ir as o,
4988
- ce as p,
4989
- Ke as q,
4990
- V as r,
4991
- Ct as s,
4992
- mo as t,
4993
- Ki as u,
4994
- ot as v,
4995
- Sr as w,
4996
- to as x,
4997
- ro as y,
4998
- eo as z
5031
+ Or as o,
5032
+ he as p,
5033
+ Ye as q,
5034
+ j as r,
5035
+ It as s,
5036
+ go as t,
5037
+ to as u,
5038
+ it as v,
5039
+ wr as w,
5040
+ no as x,
5041
+ io as y,
5042
+ ro as z
4999
5043
  };