@everymatrix/casino-lobby 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 (120) hide show
  1. package/components/CasinoCalendar-CFPK0TM5.cjs +9 -0
  2. package/components/{CasinoCalendar-D3cTwZsW.js → CasinoCalendar-CSMUhfCr.js} +1066 -1022
  3. package/components/{CasinoCalendar-CKCvu8d9.js → CasinoCalendar-_T8fa3tA.js} +1215 -1171
  4. package/components/CasinoCalendarDailyDetails-CGRqVKFV.js +693 -0
  5. package/components/CasinoCalendarDailyDetails-DspcjY5l.cjs +1 -0
  6. package/components/CasinoCalendarDailyDetails-DueCbaZn.js +693 -0
  7. package/components/CasinoCalendarDailyItem-DaSrAYwS.cjs +1 -0
  8. package/components/CasinoCalendarDailyItem-DpLOlYVI.js +306 -0
  9. package/components/CasinoCalendarDailyItem-DxYbPmky.js +306 -0
  10. package/components/{CasinoCategoriesSlider-06Zx2Iq-.js → CasinoCategoriesSlider-B7jmX0uM.js} +204 -197
  11. package/components/{CasinoCategoriesSlider-Bjd1r5S5.js → CasinoCategoriesSlider-DkmZ6uE9.js} +203 -196
  12. package/components/CasinoCategoriesSlider-Tm48k88y.cjs +1 -0
  13. package/components/CasinoCollectionsProviders-CFJKyip5.js +654 -0
  14. package/components/CasinoCollectionsProviders-XHUKRCjH.js +659 -0
  15. package/components/CasinoCollectionsProviders-fHbyEo_l.cjs +1 -0
  16. package/components/{CasinoFavoritesSection-WWaIxjOj.js → CasinoFavoritesSection-BJKuORXc.js} +138 -131
  17. package/components/CasinoFavoritesSection-DAfQZFKH.cjs +1 -0
  18. package/components/{CasinoFavoritesSection-Dumr9yPV.js → CasinoFavoritesSection-ui8ebJSk.js} +138 -131
  19. package/components/CasinoFilter-BZrHKXm3.cjs +1 -0
  20. package/components/{CasinoFilter-CT6gjm3V.js → CasinoFilter-Cj6Ya1tA.js} +237 -244
  21. package/components/{CasinoFilter-ckjDwsuD.js → CasinoFilter-t6_A4K9e.js} +232 -237
  22. package/components/CasinoGamePage-BCpBojD8.cjs +18 -0
  23. package/components/{CasinoGamePage-BUpAQtEi.js → CasinoGamePage-DH-mxVYx.js} +1012 -1018
  24. package/components/{CasinoGamePage-VEREng8k.js → CasinoGamePage-DQ1Yd_-1.js} +1004 -1010
  25. package/components/CasinoGameThumbnail-B15M2LaO.js +1829 -0
  26. package/components/CasinoGameThumbnail-CHGG4fWS.cjs +38 -0
  27. package/components/CasinoGameThumbnail-CmtUwom1.js +1845 -0
  28. package/components/{CasinoGamesCategorySection-DK9t7zLa.js → CasinoGamesCategorySection-D9nxbG-c.js} +945 -919
  29. package/components/CasinoGamesCategorySection-Dw87pk8g.cjs +1 -0
  30. package/components/{CasinoGamesCategorySection-u0JnTvTn.js → CasinoGamesCategorySection-lpoHUMLN.js} +855 -829
  31. package/components/CasinoJackpotBanner-COZRcenh.js +692 -0
  32. package/components/CasinoJackpotBanner-DcwCa-Hp.js +688 -0
  33. package/components/CasinoJackpotBanner-vFHgMV4j.cjs +1 -0
  34. package/components/CasinoLastPlayedSection-DUCFQv-7.cjs +1 -0
  35. package/components/{CasinoLastPlayedSection-CChe4Dsm.js → CasinoLastPlayedSection-IZ9mars2.js} +143 -134
  36. package/components/{CasinoLastPlayedSection-BoyL9RQI.js → CasinoLastPlayedSection-yetII3tl.js} +143 -134
  37. package/components/CasinoLobby-CZ0buhgH.cjs +1 -0
  38. package/components/{CasinoLobby-ClLV4i9d.js → CasinoLobby-CoCRB4M8.js} +706 -657
  39. package/components/{CasinoLobby-DUYjTD-X.js → CasinoLobby-DOvk4Q1L.js} +706 -657
  40. package/components/CasinoModal-6keCUEEx.cjs +1 -0
  41. package/components/CasinoModal-DDDhdR0c.js +368 -0
  42. package/components/CasinoModal-Dzu3FQyi.js +368 -0
  43. package/components/CasinoMostPlayedSection-BNDdZOM6.cjs +1 -0
  44. package/components/{CasinoMostPlayedSection-DIF7og_k.js → CasinoMostPlayedSection-CGqU9ZQv.js} +171 -162
  45. package/components/{CasinoMostPlayedSection-qZnaHjV9.js → CasinoMostPlayedSection-D0w6a_z2.js} +171 -162
  46. package/components/{CasinoMyGames-Bu2sU_i0.js → CasinoMyGames-BKqlNnO1.js} +382 -352
  47. package/components/CasinoMyGames-CX5HKRLY.cjs +1 -0
  48. package/components/{CasinoMyGames-BfCr8pSL.js → CasinoMyGames-Dy3IMfzN.js} +389 -359
  49. package/components/CasinoPage--1tMufa9.cjs +1 -0
  50. package/components/{CasinoPage-CoKfFrmH.js → CasinoPage-BnrghJel.js} +1207 -1046
  51. package/components/{CasinoPage-BAJC3ryR.js → CasinoPage-DYcUhqdZ.js} +833 -678
  52. package/components/{CasinoRandomGame-C6-dDxie.cjs → CasinoRandomGame-B1qCGSlR.cjs} +2 -2
  53. package/components/{CasinoRandomGame-Df62wtxc.js → CasinoRandomGame-Cup5oHY3.js} +247 -249
  54. package/components/{CasinoRandomGame-DXFHIw0O.js → CasinoRandomGame-Dq7oLh0O.js} +229 -231
  55. package/components/CasinoSearch-B1D8nnr0.cjs +1 -0
  56. package/components/{CasinoSearch-DP4hDzq5.js → CasinoSearch-DlUwO5L4.js} +385 -378
  57. package/components/{CasinoSearch-U2PDpXMA.js → CasinoSearch-jV0H_1Yg.js} +442 -435
  58. package/components/CasinoSlider-4pDZHG6x.cjs +1 -0
  59. package/components/CasinoSlider-ChnKJ8kH.js +797 -0
  60. package/components/CasinoSlider-Ot2uFDD8.js +803 -0
  61. package/components/CasinoSort-BnarJSWg.js +428 -0
  62. package/components/CasinoSort-DltZUpda.js +427 -0
  63. package/components/CasinoSort-jqMnIqLs.cjs +1 -0
  64. package/components/{CasinoWinners-6mr0X-kZ.js → CasinoWinners-BkJBCXPe.js} +354 -351
  65. package/components/CasinoWinners-Bs7Oh-m-.cjs +1 -0
  66. package/components/{CasinoWinners-CADOvOsd.js → CasinoWinners-CBgbYBfP.js} +343 -340
  67. package/components/GeneralAnimationLoading-BLss2VP4.cjs +1 -0
  68. package/components/GeneralAnimationLoading-BUY2TGQr.js +84 -0
  69. package/components/GeneralAnimationLoading-CRju5T01.js +84 -0
  70. package/es2015/casino-lobby.cjs +1 -1
  71. package/es2015/casino-lobby.js +1 -1
  72. package/esnext/casino-lobby.js +1 -1
  73. package/package.json +1 -1
  74. package/stencil/{casino-play-random-game-NI77_BKB.js → casino-play-random-game-CBXhEsCq.js} +54 -29
  75. package/stencil/{casino-play-random-game-BxdfOAZj.js → casino-play-random-game-PZXnDzfs.js} +73 -48
  76. package/stencil/{casino-play-random-game-DEBmcc-I.cjs → casino-play-random-game-y8flXwPv.cjs} +2 -2
  77. package/stencil/index-29915e18-B3XYTzEC.cjs +1 -0
  78. package/stencil/{index-8b2c4ca7-BNDGCsVn.js → index-29915e18-CQ_kWzEh.js} +134 -133
  79. package/stencil/{index-8b2c4ca7-CtUqBgXG.js → index-29915e18-MPiqo7vY.js} +131 -130
  80. package/components/CasinoCalendar-BlfnJwZ-.cjs +0 -9
  81. package/components/CasinoCalendarDailyDetails-B7hChP4v.js +0 -701
  82. package/components/CasinoCalendarDailyDetails-C1T0xNcn.cjs +0 -1
  83. package/components/CasinoCalendarDailyDetails-CCIR8eIp.js +0 -701
  84. package/components/CasinoCalendarDailyItem-1iPwEmjb.js +0 -315
  85. package/components/CasinoCalendarDailyItem-BNNa1Jdv.js +0 -315
  86. package/components/CasinoCalendarDailyItem-Bp_PImhJ.cjs +0 -1
  87. package/components/CasinoCategoriesSlider-DVgkuNtk.cjs +0 -1
  88. package/components/CasinoCollectionsProviders-BQPjVzK8.js +0 -659
  89. package/components/CasinoCollectionsProviders-CSISd5u6.cjs +0 -1
  90. package/components/CasinoCollectionsProviders-CVDFBiI0.js +0 -664
  91. package/components/CasinoFavoritesSection-Dc3krq_m.cjs +0 -1
  92. package/components/CasinoFilter-C10Tgn3c.cjs +0 -1
  93. package/components/CasinoGamePage-DOzefHFS.cjs +0 -18
  94. package/components/CasinoGameThumbnail-CWQWsl_s.cjs +0 -38
  95. package/components/CasinoGameThumbnail-D08-4naW.js +0 -1834
  96. package/components/CasinoGameThumbnail-nmpLDgoF.js +0 -1850
  97. package/components/CasinoGamesCategorySection-LHUR2_EB.cjs +0 -1
  98. package/components/CasinoJackpotBanner-D3s92J-3.js +0 -614
  99. package/components/CasinoJackpotBanner-q02RPv4N.js +0 -618
  100. package/components/CasinoJackpotBanner-uWVFzOiI.cjs +0 -1
  101. package/components/CasinoLastPlayedSection-BVbeW3YI.cjs +0 -1
  102. package/components/CasinoLobby-bvh2k3lg.cjs +0 -1
  103. package/components/CasinoModal-C1oW3YF4.js +0 -372
  104. package/components/CasinoModal-DRtZi6gR.cjs +0 -1
  105. package/components/CasinoModal-IbVlgg7Z.js +0 -372
  106. package/components/CasinoMostPlayedSection-DQ_xJPuX.cjs +0 -1
  107. package/components/CasinoMyGames-B0pWVqCz.cjs +0 -1
  108. package/components/CasinoPage-CoSWrE10.cjs +0 -1
  109. package/components/CasinoSearch-Cnu1-6cZ.cjs +0 -1
  110. package/components/CasinoSlider-BDjskQjI.cjs +0 -1
  111. package/components/CasinoSlider-BWEc4YT5.js +0 -800
  112. package/components/CasinoSlider-BjpV4pLV.js +0 -806
  113. package/components/CasinoSort-CS53Uvnz.cjs +0 -1
  114. package/components/CasinoSort-DFdgT3Dt.js +0 -432
  115. package/components/CasinoSort-DFljh5Sg.js +0 -431
  116. package/components/CasinoWinners-DU3xFq2b.cjs +0 -1
  117. package/components/GeneralAnimationLoading-BG_QynCK.cjs +0 -1
  118. package/components/GeneralAnimationLoading-CX9baArf.js +0 -75
  119. package/components/GeneralAnimationLoading-DVLCsjn0.js +0 -75
  120. package/stencil/index-8b2c4ca7-DAQdcMA3.cjs +0 -1
@@ -1,16 +1,16 @@
1
- var Mr = Object.defineProperty, Rr = Object.defineProperties;
2
- var $r = Object.getOwnPropertyDescriptors;
1
+ var Nr = Object.defineProperty, Mr = Object.defineProperties;
2
+ var Rr = Object.getOwnPropertyDescriptors;
3
3
  var ct = Object.getOwnPropertySymbols;
4
- var Dr = Object.prototype.hasOwnProperty, Ur = Object.prototype.propertyIsEnumerable;
5
- var Re = (e, t, r) => t in e ? Mr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t) => {
4
+ var $r = Object.prototype.hasOwnProperty, Dr = Object.prototype.propertyIsEnumerable;
5
+ var Me = (e, t, r) => t in e ? Nr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ft = (e, t) => {
6
6
  for (var r in t || (t = {}))
7
- Dr.call(t, r) && Re(e, r, t[r]);
7
+ $r.call(t, r) && Me(e, r, t[r]);
8
8
  if (ct)
9
9
  for (var r of ct(t))
10
- Ur.call(t, r) && Re(e, r, t[r]);
10
+ Dr.call(t, r) && Me(e, r, t[r]);
11
11
  return e;
12
- }, dt = (e, t) => Rr(e, $r(t));
13
- var B = (e, t, r) => Re(e, typeof t != "symbol" ? t + "" : t, r);
12
+ }, dt = (e, t) => Mr(e, Rr(t));
13
+ var B = (e, t, r) => Me(e, typeof t != "symbol" ? t + "" : t, r);
14
14
  var pt = (e, t, r) => new Promise((n, i) => {
15
15
  var s = (l) => {
16
16
  try {
@@ -27,10 +27,10 @@ var pt = (e, t, r) => new Promise((n, i) => {
27
27
  }, o = (l) => l.done ? n(l.value) : Promise.resolve(l.value).then(s, a);
28
28
  o((r = r.apply(e, t)).next());
29
29
  });
30
- function I() {
30
+ function O() {
31
31
  }
32
- const Gr = (e) => e;
33
- function Fr(e, t) {
32
+ const Ur = (e) => e;
33
+ function Gr(e, t) {
34
34
  for (const r in t) e[r] = t[r];
35
35
  return (
36
36
  /** @type {T & S} */
@@ -43,44 +43,44 @@ function Xt(e) {
43
43
  function mt() {
44
44
  return /* @__PURE__ */ Object.create(null);
45
45
  }
46
- function V(e) {
46
+ function X(e) {
47
47
  e.forEach(Xt);
48
48
  }
49
- function pe(e) {
49
+ function de(e) {
50
50
  return typeof e == "function";
51
51
  }
52
52
  function Wt(e, t) {
53
53
  return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
54
54
  }
55
- let ye;
56
- function Os(e, t) {
57
- return e === t ? !0 : (ye || (ye = document.createElement("a")), ye.href = t, e === ye.href);
55
+ let be;
56
+ function Cs(e, t) {
57
+ return e === t ? !0 : (be || (be = document.createElement("a")), be.href = t, e === be.href);
58
58
  }
59
- function jr(e) {
59
+ function Fr(e) {
60
60
  return Object.keys(e).length === 0;
61
61
  }
62
62
  function zt(e, ...t) {
63
63
  if (e == null) {
64
64
  for (const n of t)
65
65
  n(void 0);
66
- return I;
66
+ return O;
67
67
  }
68
68
  const r = e.subscribe(...t);
69
69
  return r.unsubscribe ? () => r.unsubscribe() : r;
70
70
  }
71
- function kr(e, t, r) {
71
+ function jr(e, t, r) {
72
72
  e.$$.on_destroy.push(zt(t, r));
73
73
  }
74
- function Is(e, t, r, n) {
74
+ function Ls(e, t, r, n) {
75
75
  if (e) {
76
- const i = qt(e, t, r, n);
76
+ const i = Zt(e, t, r, n);
77
77
  return e[0](i);
78
78
  }
79
79
  }
80
- function qt(e, t, r, n) {
81
- return e[1] && n ? Fr(r.ctx.slice(), e[1](n(t))) : r.ctx;
80
+ function Zt(e, t, r, n) {
81
+ return e[1] && n ? Gr(r.ctx.slice(), e[1](n(t))) : r.ctx;
82
82
  }
83
- function Cs(e, t, r, n) {
83
+ function Ns(e, t, r, n) {
84
84
  if (e[2] && n) {
85
85
  const i = e[2](n(r));
86
86
  if (t.dirty === void 0)
@@ -95,13 +95,13 @@ function Cs(e, t, r, n) {
95
95
  }
96
96
  return t.dirty;
97
97
  }
98
- function Ls(e, t, r, n, i, s) {
98
+ function Ms(e, t, r, n, i, s) {
99
99
  if (i) {
100
- const a = qt(t, r, n, s);
100
+ const a = Zt(t, r, n, s);
101
101
  e.p(a, i);
102
102
  }
103
103
  }
104
- function Ns(e) {
104
+ function Rs(e) {
105
105
  if (e.ctx.length > 32) {
106
106
  const t = [], r = e.ctx.length / 32;
107
107
  for (let n = 0; n < r; n++)
@@ -110,39 +110,39 @@ function Ns(e) {
110
110
  }
111
111
  return -1;
112
112
  }
113
- function Ms(e) {
114
- return e && pe(e.destroy) ? e.destroy : I;
113
+ function $s(e) {
114
+ return e && de(e.destroy) ? e.destroy : O;
115
115
  }
116
- const Zt = typeof window != "undefined";
117
- let Vr = Zt ? () => window.performance.now() : () => Date.now(), ot = Zt ? (e) => requestAnimationFrame(e) : I;
118
- const Y = /* @__PURE__ */ new Set();
119
- function Qt(e) {
120
- Y.forEach((t) => {
121
- t.c(e) || (Y.delete(t), t.f());
122
- }), Y.size !== 0 && ot(Qt);
116
+ const Qt = typeof window != "undefined";
117
+ let kr = Qt ? () => window.performance.now() : () => Date.now(), st = Qt ? (e) => requestAnimationFrame(e) : O;
118
+ const J = /* @__PURE__ */ new Set();
119
+ function qt(e) {
120
+ J.forEach((t) => {
121
+ t.c(e) || (J.delete(t), t.f());
122
+ }), J.size !== 0 && st(qt);
123
123
  }
124
- function Xr(e) {
124
+ function Vr(e) {
125
125
  let t;
126
- return Y.size === 0 && ot(Qt), {
126
+ return J.size === 0 && st(qt), {
127
127
  promise: new Promise((r) => {
128
- Y.add(t = { c: e, f: r });
128
+ J.add(t = { c: e, f: r });
129
129
  }),
130
130
  abort() {
131
- Y.delete(t);
131
+ J.delete(t);
132
132
  }
133
133
  };
134
134
  }
135
- function me(e, t) {
135
+ function pe(e, t) {
136
136
  e.appendChild(t);
137
137
  }
138
- function Wr(e, t, r) {
139
- const n = at(e);
138
+ function Xr(e, t, r) {
139
+ const n = ot(e);
140
140
  if (!n.getElementById(t)) {
141
- const i = $("style");
141
+ const i = R("style");
142
142
  i.id = t, i.textContent = r, Jt(n, i);
143
143
  }
144
144
  }
145
- function at(e) {
145
+ function ot(e) {
146
146
  if (!e) return document;
147
147
  const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
148
148
  return t && /** @type {ShadowRoot} */
@@ -151,90 +151,90 @@ function at(e) {
151
151
  t
152
152
  ) : e.ownerDocument;
153
153
  }
154
- function zr(e) {
155
- const t = $("style");
156
- return t.textContent = "/* empty */", Jt(at(e), t), t.sheet;
154
+ function Wr(e) {
155
+ const t = R("style");
156
+ return t.textContent = "/* empty */", Jt(ot(e), t), t.sheet;
157
157
  }
158
158
  function Jt(e, t) {
159
- return me(
159
+ return pe(
160
160
  /** @type {Document} */
161
161
  e.head || e,
162
162
  t
163
163
  ), t.sheet;
164
164
  }
165
- function X(e, t, r) {
165
+ function W(e, t, r) {
166
166
  e.insertBefore(t, r || null);
167
167
  }
168
- function D(e) {
168
+ function $(e) {
169
169
  e.parentNode && e.parentNode.removeChild(e);
170
170
  }
171
- function qr(e, t) {
171
+ function zr(e, t) {
172
172
  for (let r = 0; r < e.length; r += 1)
173
173
  e[r] && e[r].d(t);
174
174
  }
175
- function $(e) {
175
+ function R(e) {
176
176
  return document.createElement(e);
177
177
  }
178
178
  function Zr(e) {
179
179
  return document.createElementNS("http://www.w3.org/2000/svg", e);
180
180
  }
181
- function ut(e) {
181
+ function at(e) {
182
182
  return document.createTextNode(e);
183
183
  }
184
184
  function Qr() {
185
- return ut(" ");
185
+ return at(" ");
186
186
  }
187
- function Rs() {
188
- return ut("");
187
+ function Ds() {
188
+ return at("");
189
189
  }
190
190
  function bt(e, t, r, n) {
191
191
  return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
192
192
  }
193
- function $s(e) {
193
+ function Us(e) {
194
194
  return function(t) {
195
195
  return t.stopPropagation(), e.call(this, t);
196
196
  };
197
197
  }
198
- function W(e, t, r) {
198
+ function V(e, t, r) {
199
199
  r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
200
200
  }
201
201
  function y(e, t, r) {
202
202
  const n = t.toLowerCase();
203
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : W(e, t, r);
203
+ 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);
204
204
  }
205
- function Jr(e) {
205
+ function qr(e) {
206
206
  return Array.from(e.childNodes);
207
207
  }
208
- function Yr(e, t) {
208
+ function Jr(e, t) {
209
209
  t = "" + t, e.data !== t && (e.data = /** @type {string} */
210
210
  t);
211
211
  }
212
- function Ds(e, t) {
212
+ function Gs(e, t) {
213
213
  e.value = t == null ? "" : t;
214
214
  }
215
- function Us(e, t, r, n) {
215
+ function Fs(e, t, r, n) {
216
216
  r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
217
217
  }
218
- let ge;
219
- function Kr() {
220
- if (ge === void 0) {
221
- ge = !1;
218
+ let ye;
219
+ function Yr() {
220
+ if (ye === void 0) {
221
+ ye = !1;
222
222
  try {
223
223
  typeof window != "undefined" && window.parent && window.parent.document;
224
224
  } catch (e) {
225
- ge = !0;
225
+ ye = !0;
226
226
  }
227
227
  }
228
- return ge;
228
+ return ye;
229
229
  }
230
- function Gs(e, t) {
230
+ function js(e, t) {
231
231
  getComputedStyle(e).position === "static" && (e.style.position = "relative");
232
- const n = $("iframe");
232
+ const n = R("iframe");
233
233
  n.setAttribute(
234
234
  "style",
235
235
  "display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"
236
236
  ), n.setAttribute("aria-hidden", "true"), n.tabIndex = -1;
237
- const i = Kr();
237
+ const i = Yr();
238
238
  let s;
239
239
  return i ? (n.src = "data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>", s = bt(
240
240
  window,
@@ -245,17 +245,17 @@ function Gs(e, t) {
245
245
  }
246
246
  )) : (n.src = "about:blank", n.onload = () => {
247
247
  s = bt(n.contentWindow, "resize", t), t();
248
- }), me(e, n), () => {
249
- (i || s && n.contentWindow) && s(), D(n);
248
+ }), pe(e, n), () => {
249
+ (i || s && n.contentWindow) && s(), $(n);
250
250
  };
251
251
  }
252
- function Fs(e, t, r) {
252
+ function ks(e, t, r) {
253
253
  e.classList.toggle(t, !!r);
254
254
  }
255
- function en(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
255
+ function Kr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
256
256
  return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
257
257
  }
258
- class js {
258
+ class Vs {
259
259
  constructor(t = !1) {
260
260
  /**
261
261
  * @private
@@ -289,7 +289,7 @@ class js {
289
289
  this.e || (this.is_svg ? this.e = Zr(
290
290
  /** @type {keyof SVGElementTagNameMap} */
291
291
  r.nodeName
292
- ) : this.e = $(
292
+ ) : this.e = R(
293
293
  /** @type {keyof HTMLElementTagNameMap} */
294
294
  r.nodeType === 11 ? "TEMPLATE" : r.nodeName
295
295
  ), this.t = r.tagName !== "TEMPLATE" ? r : (
@@ -310,7 +310,7 @@ class js {
310
310
  * @returns {void} */
311
311
  i(t) {
312
312
  for (let r = 0; r < this.n.length; r += 1)
313
- X(this.t, this.n[r], t);
313
+ W(this.t, this.n[r], t);
314
314
  }
315
315
  /**
316
316
  * @param {string} html
@@ -322,10 +322,10 @@ class js {
322
322
  /**
323
323
  * @returns {void} */
324
324
  d() {
325
- this.n.forEach(D);
325
+ this.n.forEach($);
326
326
  }
327
327
  }
328
- function tn(e) {
328
+ function en(e) {
329
329
  const t = {};
330
330
  return e.childNodes.forEach(
331
331
  /** @param {Element} node */
@@ -334,151 +334,154 @@ function tn(e) {
334
334
  }
335
335
  ), t;
336
336
  }
337
- const He = /* @__PURE__ */ new Map();
338
- let Pe = 0;
339
- function rn(e) {
337
+ const Te = /* @__PURE__ */ new Map();
338
+ let He = 0;
339
+ function tn(e) {
340
340
  let t = 5381, r = e.length;
341
341
  for (; r--; ) t = (t << 5) - t ^ e.charCodeAt(r);
342
342
  return t >>> 0;
343
343
  }
344
- function nn(e, t) {
345
- const r = { stylesheet: zr(t), rules: {} };
346
- return He.set(e, r), r;
344
+ function rn(e, t) {
345
+ const r = { stylesheet: Wr(t), rules: {} };
346
+ return Te.set(e, r), r;
347
347
  }
348
348
  function yt(e, t, r, n, i, s, a, o = 0) {
349
349
  const l = 16.666 / n;
350
350
  let u = `{
351
351
  `;
352
352
  for (let E = 0; E <= 1; E += l) {
353
- const S = t + (r - t) * s(E);
354
- u += E * 100 + `%{${a(S, 1 - S)}}
353
+ const T = t + (r - t) * s(E);
354
+ u += E * 100 + `%{${a(T, 1 - T)}}
355
355
  `;
356
356
  }
357
357
  const h = u + `100% {${a(r, 1 - r)}}
358
- }`, c = `__svelte_${rn(h)}_${o}`, f = at(e), { stylesheet: p, rules: d } = He.get(f) || nn(f, e);
359
- d[c] || (d[c] = !0, p.insertRule(`@keyframes ${c} ${h}`, p.cssRules.length));
358
+ }`, f = `__svelte_${tn(h)}_${o}`, c = ot(e), { stylesheet: p, rules: d } = Te.get(c) || rn(c, e);
359
+ d[f] || (d[f] = !0, p.insertRule(`@keyframes ${f} ${h}`, p.cssRules.length));
360
360
  const m = e.style.animation || "";
361
- return e.style.animation = `${m ? `${m}, ` : ""}${c} ${n}ms linear ${i}ms 1 both`, Pe += 1, c;
361
+ return e.style.animation = `${m ? `${m}, ` : ""}${f} ${n}ms linear ${i}ms 1 both`, He += 1, f;
362
362
  }
363
- function sn(e, t) {
363
+ function nn(e, t) {
364
364
  const r = (e.style.animation || "").split(", "), n = r.filter(
365
365
  t ? (s) => s.indexOf(t) < 0 : (s) => s.indexOf("__svelte") === -1
366
366
  // remove all Svelte animations
367
367
  ), i = r.length - n.length;
368
- i && (e.style.animation = n.join(", "), Pe -= i, Pe || on());
368
+ i && (e.style.animation = n.join(", "), He -= i, He || sn());
369
369
  }
370
- function on() {
371
- ot(() => {
372
- Pe || (He.forEach((e) => {
370
+ function sn() {
371
+ st(() => {
372
+ He || (Te.forEach((e) => {
373
373
  const { ownerNode: t } = e.stylesheet;
374
- t && D(t);
375
- }), He.clear());
374
+ t && $(t);
375
+ }), Te.clear());
376
376
  });
377
377
  }
378
- let ce;
379
- function he(e) {
380
- ce = e;
378
+ let he;
379
+ function le(e) {
380
+ he = e;
381
381
  }
382
- function Yt() {
383
- if (!ce) throw new Error("Function called outside component initialization");
384
- return ce;
382
+ function ut() {
383
+ if (!he) throw new Error("Function called outside component initialization");
384
+ return he;
385
385
  }
386
- function ks(e) {
387
- Yt().$$.before_update.push(e);
386
+ function Xs(e) {
387
+ ut().$$.before_update.push(e);
388
388
  }
389
- function an(e) {
390
- Yt().$$.on_mount.push(e);
389
+ function on(e) {
390
+ ut().$$.on_mount.push(e);
391
391
  }
392
- const J = [], Xe = [];
393
- let K = [];
394
- const gt = [], Kt = /* @__PURE__ */ Promise.resolve();
395
- let We = !1;
396
- function er() {
397
- We || (We = !0, Kt.then(U));
392
+ function Ws(e) {
393
+ ut().$$.on_destroy.push(e);
398
394
  }
399
- function Vs() {
400
- return er(), Kt;
395
+ const q = [], Ve = [];
396
+ let Y = [];
397
+ const gt = [], Yt = /* @__PURE__ */ Promise.resolve();
398
+ let Xe = !1;
399
+ function Kt() {
400
+ Xe || (Xe = !0, Yt.then(D));
401
401
  }
402
- function Ae(e) {
403
- K.push(e);
402
+ function zs() {
403
+ return Kt(), Yt;
404
404
  }
405
- const $e = /* @__PURE__ */ new Set();
405
+ function Pe(e) {
406
+ Y.push(e);
407
+ }
408
+ const Re = /* @__PURE__ */ new Set();
406
409
  let Z = 0;
407
- function U() {
410
+ function D() {
408
411
  if (Z !== 0)
409
412
  return;
410
- const e = ce;
413
+ const e = he;
411
414
  do {
412
415
  try {
413
- for (; Z < J.length; ) {
414
- const t = J[Z];
415
- Z++, he(t), un(t.$$);
416
+ for (; Z < q.length; ) {
417
+ const t = q[Z];
418
+ Z++, le(t), an(t.$$);
416
419
  }
417
420
  } catch (t) {
418
- throw J.length = 0, Z = 0, t;
421
+ throw q.length = 0, Z = 0, t;
419
422
  }
420
- for (he(null), J.length = 0, Z = 0; Xe.length; ) Xe.pop()();
421
- for (let t = 0; t < K.length; t += 1) {
422
- const r = K[t];
423
- $e.has(r) || ($e.add(r), r());
423
+ for (le(null), q.length = 0, Z = 0; Ve.length; ) Ve.pop()();
424
+ for (let t = 0; t < Y.length; t += 1) {
425
+ const r = Y[t];
426
+ Re.has(r) || (Re.add(r), r());
424
427
  }
425
- K.length = 0;
426
- } while (J.length);
428
+ Y.length = 0;
429
+ } while (q.length);
427
430
  for (; gt.length; )
428
431
  gt.pop()();
429
- We = !1, $e.clear(), he(e);
432
+ Xe = !1, Re.clear(), le(e);
430
433
  }
431
- function un(e) {
434
+ function an(e) {
432
435
  if (e.fragment !== null) {
433
- e.update(), V(e.before_update);
436
+ e.update(), X(e.before_update);
434
437
  const t = e.dirty;
435
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Ae);
438
+ e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Pe);
436
439
  }
437
440
  }
438
- function ln(e) {
441
+ function un(e) {
439
442
  const t = [], r = [];
440
- K.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), K = t;
443
+ Y.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), Y = t;
441
444
  }
442
- let ue;
443
- function hn() {
444
- return ue || (ue = Promise.resolve(), ue.then(() => {
445
- ue = null;
446
- })), ue;
445
+ let ae;
446
+ function ln() {
447
+ return ae || (ae = Promise.resolve(), ae.then(() => {
448
+ ae = null;
449
+ })), ae;
447
450
  }
448
- function De(e, t, r) {
449
- e.dispatchEvent(en(`${t ? "intro" : "outro"}${r}`));
451
+ function $e(e, t, r) {
452
+ e.dispatchEvent(Kr(`${t ? "intro" : "outro"}${r}`));
450
453
  }
451
- const Ee = /* @__PURE__ */ new Set();
452
- let G;
453
- function Xs() {
454
- G = {
454
+ const _e = /* @__PURE__ */ new Set();
455
+ let U;
456
+ function Zs() {
457
+ U = {
455
458
  r: 0,
456
459
  c: [],
457
- p: G
460
+ p: U
458
461
  // parent group
459
462
  };
460
463
  }
461
- function Ws() {
462
- G.r || V(G.c), G = G.p;
464
+ function Qs() {
465
+ U.r || X(U.c), U = U.p;
463
466
  }
464
- function tr(e, t) {
465
- e && e.i && (Ee.delete(e), e.i(t));
467
+ function er(e, t) {
468
+ e && e.i && (_e.delete(e), e.i(t));
466
469
  }
467
- function zs(e, t, r, n) {
470
+ function qs(e, t, r, n) {
468
471
  if (e && e.o) {
469
- if (Ee.has(e)) return;
470
- Ee.add(e), G.c.push(() => {
471
- Ee.delete(e), n && (r && e.d(1), n());
472
+ if (_e.has(e)) return;
473
+ _e.add(e), U.c.push(() => {
474
+ _e.delete(e), n && (r && e.d(1), n());
472
475
  }), e.o(t);
473
476
  } else n && n();
474
477
  }
475
- const cn = { duration: 0 };
476
- function qs(e, t, r, n) {
478
+ const hn = { duration: 0 };
479
+ function Js(e, t, r, n) {
477
480
  let s = t(e, r, { direction: "both" }), a = n ? 0 : 1, o = null, l = null, u = null, h;
478
- function c() {
479
- u && sn(e, u);
481
+ function f() {
482
+ u && nn(e, u);
480
483
  }
481
- function f(d, m) {
484
+ function c(d, m) {
482
485
  const E = (
483
486
  /** @type {Program['d']} */
484
487
  d.b - a
@@ -497,29 +500,29 @@ function qs(e, t, r, n) {
497
500
  const {
498
501
  delay: m = 0,
499
502
  duration: E = 300,
500
- easing: S = Gr,
501
- tick: H = I,
502
- css: T
503
- } = s || cn, C = {
504
- start: Vr() + m,
503
+ easing: T = Ur,
504
+ tick: H = O,
505
+ css: S
506
+ } = s || hn, I = {
507
+ start: kr() + m,
505
508
  b: d
506
509
  };
507
- d || (C.group = G, G.r += 1), "inert" in e && (d ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
508
- e.inert, e.inert = !0)), o || l ? l = C : (T && (c(), u = yt(e, a, d, E, m, S, T)), d && H(0, 1), o = f(C, E), Ae(() => De(e, d, "start")), Xr((P) => {
509
- if (l && P > l.start && (o = f(l, E), l = null, De(e, o.b, "start"), T && (c(), u = yt(
510
+ d || (I.group = U, U.r += 1), "inert" in e && (d ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
511
+ e.inert, e.inert = !0)), o || l ? l = I : (S && (f(), u = yt(e, a, d, E, m, T, S)), d && H(0, 1), o = c(I, E), Pe(() => $e(e, d, "start")), Vr((P) => {
512
+ if (l && P > l.start && (o = c(l, E), l = null, $e(e, o.b, "start"), S && (f(), u = yt(
510
513
  e,
511
514
  a,
512
515
  o.b,
513
516
  o.duration,
514
517
  0,
515
- S,
518
+ T,
516
519
  s.css
517
520
  ))), o) {
518
521
  if (P >= o.end)
519
- H(a = o.b, 1 - a), De(e, o.b, "end"), l || (o.b ? c() : --o.group.r || V(o.group.c)), o = null;
522
+ H(a = o.b, 1 - a), $e(e, o.b, "end"), l || (o.b ? f() : --o.group.r || X(o.group.c)), o = null;
520
523
  else if (P >= o.start) {
521
- const L = P - o.start;
522
- a = o.a + o.d * S(L / o.duration), H(a, 1 - a);
524
+ const N = P - o.start;
525
+ a = o.a + o.d * T(N / o.duration), H(a, 1 - a);
523
526
  }
524
527
  }
525
528
  return !!(o || l);
@@ -527,69 +530,69 @@ function qs(e, t, r, n) {
527
530
  }
528
531
  return {
529
532
  run(d) {
530
- pe(s) ? hn().then(() => {
533
+ de(s) ? ln().then(() => {
531
534
  s = s({ direction: d ? "in" : "out" }), p(d);
532
535
  }) : p(d);
533
536
  },
534
537
  end() {
535
- c(), o = l = null;
538
+ f(), o = l = null;
536
539
  }
537
540
  };
538
541
  }
539
- function _t(e) {
542
+ function vt(e) {
540
543
  return (e == null ? void 0 : e.length) !== void 0 ? e : Array.from(e);
541
544
  }
542
- function Zs(e, t) {
545
+ function Ys(e, t) {
543
546
  e.d(1), t.delete(e.key);
544
547
  }
545
- function Qs(e, t, r, n, i, s, a, o, l, u, h, c) {
546
- let f = e.length, p = s.length, d = f;
548
+ function Ks(e, t, r, n, i, s, a, o, l, u, h, f) {
549
+ let c = e.length, p = s.length, d = c;
547
550
  const m = {};
548
551
  for (; d--; ) m[e[d].key] = d;
549
- const E = [], S = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), T = [];
552
+ const E = [], T = /* @__PURE__ */ new Map(), H = /* @__PURE__ */ new Map(), S = [];
550
553
  for (d = p; d--; ) {
551
- const x = c(i, s, d), N = r(x);
552
- let M = a.get(N);
553
- M ? T.push(() => M.p(x, t)) : (M = u(N, x), M.c()), S.set(N, E[d] = M), N in m && H.set(N, Math.abs(d - m[N]));
554
+ const w = f(i, s, d), L = r(w);
555
+ let M = a.get(L);
556
+ M ? S.push(() => M.p(w, t)) : (M = u(L, w), M.c()), T.set(L, E[d] = M), L in m && H.set(L, Math.abs(d - m[L]));
554
557
  }
555
- const C = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
556
- function L(x) {
557
- tr(x, 1), x.m(o, h), a.set(x.key, x), h = x.first, p--;
558
+ const I = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new Set();
559
+ function N(w) {
560
+ er(w, 1), w.m(o, h), a.set(w.key, w), h = w.first, p--;
558
561
  }
559
- for (; f && p; ) {
560
- const x = E[p - 1], N = e[f - 1], M = x.key, q = N.key;
561
- x === N ? (h = x.first, f--, p--) : S.has(q) ? !a.has(M) || C.has(M) ? L(x) : P.has(q) ? f-- : H.get(M) > H.get(q) ? (P.add(M), L(x)) : (C.add(q), f--) : (l(N, a), f--);
562
+ for (; c && p; ) {
563
+ const w = E[p - 1], L = e[c - 1], M = w.key, b = L.key;
564
+ w === L ? (h = w.first, c--, p--) : T.has(b) ? !a.has(M) || I.has(M) ? N(w) : P.has(b) ? c-- : H.get(M) > H.get(b) ? (P.add(M), N(w)) : (I.add(b), c--) : (l(L, a), c--);
562
565
  }
563
- for (; f--; ) {
564
- const x = e[f];
565
- S.has(x.key) || l(x, a);
566
+ for (; c--; ) {
567
+ const w = e[c];
568
+ T.has(w.key) || l(w, a);
566
569
  }
567
- for (; p; ) L(E[p - 1]);
568
- return V(T), E;
570
+ for (; p; ) N(E[p - 1]);
571
+ return X(S), E;
569
572
  }
570
- function fn(e, t, r) {
573
+ function cn(e, t, r) {
571
574
  const { fragment: n, after_update: i } = e.$$;
572
- n && n.m(t, r), Ae(() => {
573
- const s = e.$$.on_mount.map(Xt).filter(pe);
574
- e.$$.on_destroy ? e.$$.on_destroy.push(...s) : V(s), e.$$.on_mount = [];
575
- }), i.forEach(Ae);
575
+ n && n.m(t, r), Pe(() => {
576
+ const s = e.$$.on_mount.map(Xt).filter(de);
577
+ e.$$.on_destroy ? e.$$.on_destroy.push(...s) : X(s), e.$$.on_mount = [];
578
+ }), i.forEach(Pe);
576
579
  }
577
- function dn(e, t) {
580
+ function fn(e, t) {
578
581
  const r = e.$$;
579
- r.fragment !== null && (ln(r.after_update), V(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
582
+ r.fragment !== null && (un(r.after_update), X(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
580
583
  }
581
- function pn(e, t) {
582
- e.$$.dirty[0] === -1 && (J.push(e), er(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
584
+ function dn(e, t) {
585
+ e.$$.dirty[0] === -1 && (q.push(e), Kt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
583
586
  }
584
- function mn(e, t, r, n, i, s, a = null, o = [-1]) {
585
- const l = ce;
586
- he(e);
587
+ function pn(e, t, r, n, i, s, a = null, o = [-1]) {
588
+ const l = he;
589
+ le(e);
587
590
  const u = e.$$ = {
588
591
  fragment: null,
589
592
  ctx: [],
590
593
  // state
591
594
  props: s,
592
- update: I,
595
+ update: O,
593
596
  not_equal: i,
594
597
  bound: mt(),
595
598
  // lifecycle
@@ -607,21 +610,21 @@ function mn(e, t, r, n, i, s, a = null, o = [-1]) {
607
610
  };
608
611
  a && a(u.root);
609
612
  let h = !1;
610
- if (u.ctx = r ? r(e, t.props || {}, (c, f, ...p) => {
611
- const d = p.length ? p[0] : f;
612
- return u.ctx && i(u.ctx[c], u.ctx[c] = d) && (!u.skip_bound && u.bound[c] && u.bound[c](d), h && pn(e, c)), f;
613
- }) : [], u.update(), h = !0, V(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
613
+ if (u.ctx = r ? r(e, t.props || {}, (f, c, ...p) => {
614
+ const d = p.length ? p[0] : c;
615
+ return u.ctx && i(u.ctx[f], u.ctx[f] = d) && (!u.skip_bound && u.bound[f] && u.bound[f](d), h && dn(e, f)), c;
616
+ }) : [], u.update(), h = !0, X(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
614
617
  if (t.hydrate) {
615
- const c = Jr(t.target);
616
- u.fragment && u.fragment.l(c), c.forEach(D);
618
+ const f = qr(t.target);
619
+ u.fragment && u.fragment.l(f), f.forEach($);
617
620
  } else
618
621
  u.fragment && u.fragment.c();
619
- t.intro && tr(e.$$.fragment), fn(e, t.target, t.anchor), U();
622
+ t.intro && er(e.$$.fragment), cn(e, t.target, t.anchor), D();
620
623
  }
621
- he(l);
624
+ le(l);
622
625
  }
623
- let rr;
624
- typeof HTMLElement == "function" && (rr = class extends HTMLElement {
626
+ let tr;
627
+ typeof HTMLElement == "function" && (tr = class extends HTMLElement {
625
628
  constructor(t, r, n) {
626
629
  super();
627
630
  /** The Svelte component constructor */
@@ -665,29 +668,29 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
665
668
  let a;
666
669
  return {
667
670
  c: function() {
668
- a = $("slot"), s !== "default" && W(a, "name", s);
671
+ a = R("slot"), s !== "default" && V(a, "name", s);
669
672
  },
670
673
  /**
671
674
  * @param {HTMLElement} target
672
675
  * @param {HTMLElement} [anchor]
673
676
  */
674
677
  m: function(u, h) {
675
- X(u, a, h);
678
+ W(u, a, h);
676
679
  },
677
680
  d: function(u) {
678
- u && D(a);
681
+ u && $(a);
679
682
  }
680
683
  };
681
684
  };
682
685
  };
683
686
  if (yield Promise.resolve(), !this.$$cn || this.$$c)
684
687
  return;
685
- const r = {}, n = tn(this);
688
+ const r = {}, n = en(this);
686
689
  for (const s of this.$$s)
687
690
  s in n && (r[s] = [t(s)]);
688
691
  for (const s of this.attributes) {
689
692
  const a = this.$$g_p(s.name);
690
- a in this.$$d || (this.$$d[a] = xe(a, s.value, this.$$p_d, "toProp"));
693
+ a in this.$$d || (this.$$d[a] = Ee(a, s.value, this.$$p_d, "toProp"));
691
694
  }
692
695
  for (const s in this.$$p_d)
693
696
  !(s in this.$$d) && this[s] !== void 0 && (this.$$d[s] = this[s], delete this[s]);
@@ -704,7 +707,7 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
704
707
  this.$$r = !0;
705
708
  for (const s in this.$$p_d)
706
709
  if (this.$$d[s] = this.$$c.$$.ctx[this.$$c.$$.props[s]], this.$$p_d[s].reflect) {
707
- const a = xe(
710
+ const a = Ee(
708
711
  s,
709
712
  this.$$d[s],
710
713
  this.$$p_d,
@@ -728,7 +731,7 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
728
731
  // and setting attributes through setAttribute etc, this is helpful
729
732
  attributeChangedCallback(t, r, n) {
730
733
  var i;
731
- this.$$r || (t = this.$$g_p(t), this.$$d[t] = xe(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
734
+ this.$$r || (t = this.$$g_p(t), this.$$d[t] = Ee(t, n, this.$$p_d, "toProp"), (i = this.$$c) == null || i.$set({ [t]: this.$$d[t] }));
732
735
  }
733
736
  disconnectedCallback() {
734
737
  this.$$cn = !1, Promise.resolve().then(() => {
@@ -741,7 +744,7 @@ typeof HTMLElement == "function" && (rr = class extends HTMLElement {
741
744
  ) || t;
742
745
  }
743
746
  });
744
- function xe(e, t, r, n) {
747
+ function Ee(e, t, r, n) {
745
748
  var s;
746
749
  const i = (s = r[e]) == null ? void 0 : s.type;
747
750
  if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
@@ -771,8 +774,8 @@ function xe(e, t, r, n) {
771
774
  return t;
772
775
  }
773
776
  }
774
- function bn(e, t, r, n, i, s) {
775
- let a = class extends rr {
777
+ function mn(e, t, r, n, i, s) {
778
+ let a = class extends tr {
776
779
  constructor() {
777
780
  super(e, r, i), this.$$p_d = t;
778
781
  }
@@ -789,7 +792,7 @@ function bn(e, t, r, n, i, s) {
789
792
  },
790
793
  set(l) {
791
794
  var u;
792
- l = xe(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
795
+ l = Ee(o, l, t), this.$$d[o] = l, (u = this.$$c) == null || u.$set({ [o]: l });
793
796
  }
794
797
  });
795
798
  }), n.forEach((o) => {
@@ -802,7 +805,7 @@ function bn(e, t, r, n, i, s) {
802
805
  }), e.element = /** @type {any} */
803
806
  a, a;
804
807
  }
805
- class yn {
808
+ class bn {
806
809
  constructor() {
807
810
  /**
808
811
  * ### PRIVATE API
@@ -823,7 +826,7 @@ class yn {
823
826
  }
824
827
  /** @returns {void} */
825
828
  $destroy() {
826
- dn(this, 1), this.$destroy = I;
829
+ fn(this, 1), this.$destroy = O;
827
830
  }
828
831
  /**
829
832
  * @template {Extract<keyof Events, string>} K
@@ -832,8 +835,8 @@ class yn {
832
835
  * @returns {() => void}
833
836
  */
834
837
  $on(t, r) {
835
- if (!pe(r))
836
- return I;
838
+ if (!de(r))
839
+ return O;
837
840
  const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
838
841
  return n.push(r), () => {
839
842
  const i = n.indexOf(r);
@@ -845,37 +848,37 @@ class yn {
845
848
  * @returns {void}
846
849
  */
847
850
  $set(t) {
848
- this.$$set && !jr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
851
+ this.$$set && !Fr(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
849
852
  }
850
853
  }
851
- const gn = "4";
852
- typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(gn);
853
- var ze = function(e, t) {
854
- return ze = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
854
+ const yn = "4";
855
+ typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(yn);
856
+ var We = function(e, t) {
857
+ return We = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
855
858
  r.__proto__ = n;
856
859
  } || function(r, n) {
857
860
  for (var i in n) Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
858
- }, ze(e, t);
861
+ }, We(e, t);
859
862
  };
860
- function j(e, t) {
863
+ function F(e, t) {
861
864
  if (typeof t != "function" && t !== null)
862
865
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
863
- ze(e, t);
866
+ We(e, t);
864
867
  function r() {
865
868
  this.constructor = e;
866
869
  }
867
870
  e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
868
871
  }
869
- var v = function() {
870
- return v = Object.assign || function(t) {
872
+ var _ = function() {
873
+ return _ = Object.assign || function(t) {
871
874
  for (var r, n = 1, i = arguments.length; n < i; n++) {
872
875
  r = arguments[n];
873
876
  for (var s in r) Object.prototype.hasOwnProperty.call(r, s) && (t[s] = r[s]);
874
877
  }
875
878
  return t;
876
- }, v.apply(this, arguments);
879
+ }, _.apply(this, arguments);
877
880
  };
878
- function _n(e, t) {
881
+ function gn(e, t) {
879
882
  var r = {};
880
883
  for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
881
884
  if (e != null && typeof Object.getOwnPropertySymbols == "function")
@@ -883,7 +886,7 @@ function _n(e, t) {
883
886
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
884
887
  return r;
885
888
  }
886
- function qe(e) {
889
+ function ze(e) {
887
890
  var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
888
891
  if (r) return r.call(e);
889
892
  if (e && typeof e.length == "number") return {
@@ -910,21 +913,21 @@ function Ze(e, t) {
910
913
  }
911
914
  return s;
912
915
  }
913
- function ee(e, t, r) {
916
+ function K(e, t, r) {
914
917
  if (r || arguments.length === 2) for (var n = 0, i = t.length, s; n < i; n++)
915
918
  (s || !(n in t)) && (s || (s = Array.prototype.slice.call(t, 0, n)), s[n] = t[n]);
916
919
  return e.concat(s || Array.prototype.slice.call(t));
917
920
  }
918
- function F(e) {
921
+ function G(e) {
919
922
  return typeof e == "function";
920
923
  }
921
- function nr(e) {
924
+ function rr(e) {
922
925
  var t = function(n) {
923
926
  Error.call(n), n.stack = new Error().stack;
924
927
  }, r = e(t);
925
928
  return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
926
929
  }
927
- var Ue = nr(function(e) {
930
+ var De = rr(function(e) {
928
931
  return function(r) {
929
932
  e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
930
933
  ` + r.map(function(n, i) {
@@ -939,7 +942,7 @@ function Qe(e, t) {
939
942
  0 <= r && e.splice(r, 1);
940
943
  }
941
944
  }
942
- var Ie = function() {
945
+ var Oe = function() {
943
946
  function e(t) {
944
947
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
945
948
  }
@@ -951,7 +954,7 @@ var Ie = function() {
951
954
  if (a)
952
955
  if (this._parentage = null, Array.isArray(a))
953
956
  try {
954
- for (var o = qe(a), l = o.next(); !l.done; l = o.next()) {
957
+ for (var o = ze(a), l = o.next(); !l.done; l = o.next()) {
955
958
  var u = l.value;
956
959
  u.remove(this);
957
960
  }
@@ -967,42 +970,42 @@ var Ie = function() {
967
970
  else
968
971
  a.remove(this);
969
972
  var h = this.initialTeardown;
970
- if (F(h))
973
+ if (G(h))
971
974
  try {
972
975
  h();
973
976
  } catch (m) {
974
- s = m instanceof Ue ? m.errors : [m];
977
+ s = m instanceof De ? m.errors : [m];
975
978
  }
976
- var c = this._finalizers;
977
- if (c) {
979
+ var f = this._finalizers;
980
+ if (f) {
978
981
  this._finalizers = null;
979
982
  try {
980
- for (var f = qe(c), p = f.next(); !p.done; p = f.next()) {
983
+ for (var c = ze(f), p = c.next(); !p.done; p = c.next()) {
981
984
  var d = p.value;
982
985
  try {
983
- vt(d);
986
+ _t(d);
984
987
  } catch (m) {
985
- s = s != null ? s : [], m instanceof Ue ? s = ee(ee([], Ze(s)), Ze(m.errors)) : s.push(m);
988
+ s = s != null ? s : [], m instanceof De ? s = K(K([], Ze(s)), Ze(m.errors)) : s.push(m);
986
989
  }
987
990
  }
988
991
  } catch (m) {
989
992
  n = { error: m };
990
993
  } finally {
991
994
  try {
992
- p && !p.done && (i = f.return) && i.call(f);
995
+ p && !p.done && (i = c.return) && i.call(c);
993
996
  } finally {
994
997
  if (n) throw n.error;
995
998
  }
996
999
  }
997
1000
  }
998
1001
  if (s)
999
- throw new Ue(s);
1002
+ throw new De(s);
1000
1003
  }
1001
1004
  }, e.prototype.add = function(t) {
1002
1005
  var r;
1003
1006
  if (t && t !== this)
1004
1007
  if (this.closed)
1005
- vt(t);
1008
+ _t(t);
1006
1009
  else {
1007
1010
  if (t instanceof e) {
1008
1011
  if (t.closed || t._hasParent(this))
@@ -1027,44 +1030,44 @@ var Ie = function() {
1027
1030
  var t = new e();
1028
1031
  return t.closed = !0, t;
1029
1032
  }(), e;
1030
- }(), ir = Ie.EMPTY;
1031
- function sr(e) {
1032
- return e instanceof Ie || e && "closed" in e && F(e.remove) && F(e.add) && F(e.unsubscribe);
1033
+ }(), nr = Oe.EMPTY;
1034
+ function ir(e) {
1035
+ return e instanceof Oe || e && "closed" in e && G(e.remove) && G(e.add) && G(e.unsubscribe);
1033
1036
  }
1034
- function vt(e) {
1035
- F(e) ? e() : e.unsubscribe();
1037
+ function _t(e) {
1038
+ G(e) ? e() : e.unsubscribe();
1036
1039
  }
1037
1040
  var vn = {
1038
1041
  Promise: void 0
1039
- }, En = {
1042
+ }, _n = {
1040
1043
  setTimeout: function(e, t) {
1041
1044
  for (var r = [], n = 2; n < arguments.length; n++)
1042
1045
  r[n - 2] = arguments[n];
1043
- return setTimeout.apply(void 0, ee([e, t], Ze(r)));
1046
+ return setTimeout.apply(void 0, K([e, t], Ze(r)));
1044
1047
  },
1045
1048
  clearTimeout: function(e) {
1046
1049
  return clearTimeout(e);
1047
1050
  },
1048
1051
  delegate: void 0
1049
1052
  };
1050
- function xn(e) {
1051
- En.setTimeout(function() {
1053
+ function En(e) {
1054
+ _n.setTimeout(function() {
1052
1055
  throw e;
1053
1056
  });
1054
1057
  }
1055
1058
  function Et() {
1056
1059
  }
1057
- function we(e) {
1060
+ function xe(e) {
1058
1061
  e();
1059
1062
  }
1060
- var or = function(e) {
1061
- j(t, e);
1063
+ var sr = function(e) {
1064
+ F(t, e);
1062
1065
  function t(r) {
1063
1066
  var n = e.call(this) || this;
1064
- return n.isStopped = !1, r ? (n.destination = r, sr(r) && r.add(n)) : n.destination = Tn, n;
1067
+ return n.isStopped = !1, r ? (n.destination = r, ir(r) && r.add(n)) : n.destination = Sn, n;
1065
1068
  }
1066
1069
  return t.create = function(r, n, i) {
1067
- return new Je(r, n, i);
1070
+ return new qe(r, n, i);
1068
1071
  }, t.prototype.next = function(r) {
1069
1072
  this.isStopped || this._next(r);
1070
1073
  }, t.prototype.error = function(r) {
@@ -1088,7 +1091,7 @@ var or = function(e) {
1088
1091
  this.unsubscribe();
1089
1092
  }
1090
1093
  }, t;
1091
- }(Ie), wn = function() {
1094
+ }(Oe), xn = function() {
1092
1095
  function e(t) {
1093
1096
  this.partialObserver = t;
1094
1097
  }
@@ -1098,7 +1101,7 @@ var or = function(e) {
1098
1101
  try {
1099
1102
  r.next(t);
1100
1103
  } catch (n) {
1101
- _e(n);
1104
+ ge(n);
1102
1105
  }
1103
1106
  }, e.prototype.error = function(t) {
1104
1107
  var r = this.partialObserver;
@@ -1106,50 +1109,50 @@ var or = function(e) {
1106
1109
  try {
1107
1110
  r.error(t);
1108
1111
  } catch (n) {
1109
- _e(n);
1112
+ ge(n);
1110
1113
  }
1111
1114
  else
1112
- _e(t);
1115
+ ge(t);
1113
1116
  }, e.prototype.complete = function() {
1114
1117
  var t = this.partialObserver;
1115
1118
  if (t.complete)
1116
1119
  try {
1117
1120
  t.complete();
1118
1121
  } catch (r) {
1119
- _e(r);
1122
+ ge(r);
1120
1123
  }
1121
1124
  }, e;
1122
- }(), Je = function(e) {
1123
- j(t, e);
1125
+ }(), qe = function(e) {
1126
+ F(t, e);
1124
1127
  function t(r, n, i) {
1125
1128
  var s = e.call(this) || this, a;
1126
- return F(r) || !r ? a = {
1129
+ return G(r) || !r ? a = {
1127
1130
  next: r != null ? r : void 0,
1128
1131
  error: n != null ? n : void 0,
1129
1132
  complete: i != null ? i : void 0
1130
- } : a = r, s.destination = new wn(a), s;
1133
+ } : a = r, s.destination = new xn(a), s;
1131
1134
  }
1132
1135
  return t;
1133
- }(or);
1134
- function _e(e) {
1135
- xn(e);
1136
+ }(sr);
1137
+ function ge(e) {
1138
+ En(e);
1136
1139
  }
1137
- function Sn(e) {
1140
+ function wn(e) {
1138
1141
  throw e;
1139
1142
  }
1140
- var Tn = {
1143
+ var Sn = {
1141
1144
  closed: !0,
1142
1145
  next: Et,
1143
- error: Sn,
1146
+ error: wn,
1144
1147
  complete: Et
1145
- }, Hn = function() {
1148
+ }, Tn = function() {
1146
1149
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
1147
1150
  }();
1148
- function Pn(e) {
1151
+ function Hn(e) {
1149
1152
  return e;
1150
1153
  }
1151
- function An(e) {
1152
- return e.length === 0 ? Pn : e.length === 1 ? e[0] : function(r) {
1154
+ function Pn(e) {
1155
+ return e.length === 0 ? Hn : e.length === 1 ? e[0] : function(r) {
1153
1156
  return e.reduce(function(n, i) {
1154
1157
  return i(n);
1155
1158
  }, r);
@@ -1163,8 +1166,8 @@ var xt = function() {
1163
1166
  var r = new e();
1164
1167
  return r.source = this, r.operator = t, r;
1165
1168
  }, e.prototype.subscribe = function(t, r, n) {
1166
- var i = this, s = On(t) ? t : new Je(t, r, n);
1167
- return we(function() {
1169
+ var i = this, s = An(t) ? t : new qe(t, r, n);
1170
+ return xe(function() {
1168
1171
  var a = i, o = a.operator, l = a.source;
1169
1172
  s.add(o ? o.call(s, l) : l ? i._subscribe(s) : i._trySubscribe(s));
1170
1173
  }), s;
@@ -1177,7 +1180,7 @@ var xt = function() {
1177
1180
  }, e.prototype.forEach = function(t, r) {
1178
1181
  var n = this;
1179
1182
  return r = wt(r), new r(function(i, s) {
1180
- var a = new Je({
1183
+ var a = new qe({
1181
1184
  next: function(o) {
1182
1185
  try {
1183
1186
  t(o);
@@ -1193,12 +1196,12 @@ var xt = function() {
1193
1196
  }, e.prototype._subscribe = function(t) {
1194
1197
  var r;
1195
1198
  return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
1196
- }, e.prototype[Hn] = function() {
1199
+ }, e.prototype[Tn] = function() {
1197
1200
  return this;
1198
1201
  }, e.prototype.pipe = function() {
1199
1202
  for (var t = [], r = 0; r < arguments.length; r++)
1200
1203
  t[r] = arguments[r];
1201
- return An(t)(this);
1204
+ return Pn(t)(this);
1202
1205
  }, e.prototype.toPromise = function(t) {
1203
1206
  var r = this;
1204
1207
  return t = wt(t), new t(function(n, i) {
@@ -1220,17 +1223,17 @@ function wt(e) {
1220
1223
  return (t = e != null ? e : vn.Promise) !== null && t !== void 0 ? t : Promise;
1221
1224
  }
1222
1225
  function Bn(e) {
1223
- return e && F(e.next) && F(e.error) && F(e.complete);
1226
+ return e && G(e.next) && G(e.error) && G(e.complete);
1224
1227
  }
1225
- function On(e) {
1226
- return e && e instanceof or || Bn(e) && sr(e);
1228
+ function An(e) {
1229
+ return e && e instanceof sr || Bn(e) && ir(e);
1227
1230
  }
1228
- var In = nr(function(e) {
1231
+ var On = rr(function(e) {
1229
1232
  return function() {
1230
1233
  e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1231
1234
  };
1232
- }), ar = function(e) {
1233
- j(t, e);
1235
+ }), or = function(e) {
1236
+ F(t, e);
1234
1237
  function t() {
1235
1238
  var r = e.call(this) || this;
1236
1239
  return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
@@ -1240,15 +1243,15 @@ var In = nr(function(e) {
1240
1243
  return n.operator = r, n;
1241
1244
  }, t.prototype._throwIfClosed = function() {
1242
1245
  if (this.closed)
1243
- throw new In();
1246
+ throw new On();
1244
1247
  }, t.prototype.next = function(r) {
1245
1248
  var n = this;
1246
- we(function() {
1249
+ xe(function() {
1247
1250
  var i, s;
1248
1251
  if (n._throwIfClosed(), !n.isStopped) {
1249
1252
  n.currentObservers || (n.currentObservers = Array.from(n.observers));
1250
1253
  try {
1251
- for (var a = qe(n.currentObservers), o = a.next(); !o.done; o = a.next()) {
1254
+ for (var a = ze(n.currentObservers), o = a.next(); !o.done; o = a.next()) {
1252
1255
  var l = o.value;
1253
1256
  l.next(r);
1254
1257
  }
@@ -1265,7 +1268,7 @@ var In = nr(function(e) {
1265
1268
  });
1266
1269
  }, t.prototype.error = function(r) {
1267
1270
  var n = this;
1268
- we(function() {
1271
+ xe(function() {
1269
1272
  if (n._throwIfClosed(), !n.isStopped) {
1270
1273
  n.hasError = n.isStopped = !0, n.thrownError = r;
1271
1274
  for (var i = n.observers; i.length; )
@@ -1274,7 +1277,7 @@ var In = nr(function(e) {
1274
1277
  });
1275
1278
  }, t.prototype.complete = function() {
1276
1279
  var r = this;
1277
- we(function() {
1280
+ xe(function() {
1278
1281
  if (r._throwIfClosed(), !r.isStopped) {
1279
1282
  r.isStopped = !0;
1280
1283
  for (var n = r.observers; n.length; )
@@ -1296,7 +1299,7 @@ var In = nr(function(e) {
1296
1299
  return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
1297
1300
  }, t.prototype._innerSubscribe = function(r) {
1298
1301
  var n = this, i = this, s = i.hasError, a = i.isStopped, o = i.observers;
1299
- return s || a ? ir : (this.currentObservers = null, o.push(r), new Ie(function() {
1302
+ return s || a ? nr : (this.currentObservers = null, o.push(r), new Oe(function() {
1300
1303
  n.currentObservers = null, Qe(o, r);
1301
1304
  }));
1302
1305
  }, t.prototype._checkFinalizedStatuses = function(r) {
@@ -1309,7 +1312,7 @@ var In = nr(function(e) {
1309
1312
  return new St(r, n);
1310
1313
  }, t;
1311
1314
  }(xt), St = function(e) {
1312
- j(t, e);
1315
+ F(t, e);
1313
1316
  function t(r, n) {
1314
1317
  var i = e.call(this) || this;
1315
1318
  return i.destination = r, i.source = n, i;
@@ -1325,17 +1328,17 @@ var In = nr(function(e) {
1325
1328
  (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1326
1329
  }, t.prototype._subscribe = function(r) {
1327
1330
  var n, i;
1328
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : ir;
1331
+ return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : nr;
1329
1332
  }, t;
1330
- }(ar), ur = {
1333
+ }(or), ar = {
1331
1334
  now: function() {
1332
- return (ur.delegate || Date).now();
1335
+ return (ar.delegate || Date).now();
1333
1336
  },
1334
1337
  delegate: void 0
1335
- }, Cn = function(e) {
1336
- j(t, e);
1338
+ }, In = function(e) {
1339
+ F(t, e);
1337
1340
  function t(r, n, i) {
1338
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = ur);
1341
+ r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = ar);
1339
1342
  var s = e.call(this) || this;
1340
1343
  return s._bufferSize = r, s._windowTime = n, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = n === 1 / 0, s._bufferSize = Math.max(1, r), s._windowTime = Math.max(1, n), s;
1341
1344
  }
@@ -1355,20 +1358,20 @@ var In = nr(function(e) {
1355
1358
  u && s.splice(0, u + 1);
1356
1359
  }
1357
1360
  }, t;
1358
- }(ar);
1359
- const Tt = [], Ht = {}, Ln = (e, t = 0) => {
1361
+ }(or);
1362
+ const Tt = [], Ht = {}, Cn = (e, t = 0) => {
1360
1363
  if (Tt.indexOf(e) == -1) {
1361
- const r = new Cn(t);
1364
+ const r = new In(t);
1362
1365
  Ht[e] = r, Tt.push(e);
1363
1366
  }
1364
1367
  return Ht[e];
1365
1368
  }, Q = [];
1366
- function Nn(e, t) {
1369
+ function Ln(e, t) {
1367
1370
  return {
1368
- subscribe: Ce(e, t).subscribe
1371
+ subscribe: Ie(e, t).subscribe
1369
1372
  };
1370
1373
  }
1371
- function Ce(e, t = I) {
1374
+ function Ie(e, t = O) {
1372
1375
  let r;
1373
1376
  const n = /* @__PURE__ */ new Set();
1374
1377
  function i(o) {
@@ -1386,150 +1389,150 @@ function Ce(e, t = I) {
1386
1389
  function s(o) {
1387
1390
  i(o(e));
1388
1391
  }
1389
- function a(o, l = I) {
1392
+ function a(o, l = O) {
1390
1393
  const u = [o, l];
1391
- return n.add(u), n.size === 1 && (r = t(i, s) || I), o(e), () => {
1394
+ return n.add(u), n.size === 1 && (r = t(i, s) || O), o(e), () => {
1392
1395
  n.delete(u), n.size === 0 && r && (r(), r = null);
1393
1396
  };
1394
1397
  }
1395
1398
  return { set: i, update: s, subscribe: a };
1396
1399
  }
1397
- function se(e, t, r) {
1400
+ function ie(e, t, r) {
1398
1401
  const n = !Array.isArray(e), i = n ? [e] : e;
1399
1402
  if (!i.every(Boolean))
1400
1403
  throw new Error("derived() expects stores as input, got a falsy value");
1401
1404
  const s = t.length < 2;
1402
- return Nn(r, (a, o) => {
1405
+ return Ln(r, (a, o) => {
1403
1406
  let l = !1;
1404
1407
  const u = [];
1405
- let h = 0, c = I;
1406
- const f = () => {
1408
+ let h = 0, f = O;
1409
+ const c = () => {
1407
1410
  if (h)
1408
1411
  return;
1409
- c();
1412
+ f();
1410
1413
  const d = t(n ? u[0] : u, a, o);
1411
- s ? a(d) : c = pe(d) ? d : I;
1414
+ s ? a(d) : f = de(d) ? d : O;
1412
1415
  }, p = i.map(
1413
1416
  (d, m) => zt(
1414
1417
  d,
1415
1418
  (E) => {
1416
- u[m] = E, h &= ~(1 << m), l && f();
1419
+ u[m] = E, h &= ~(1 << m), l && c();
1417
1420
  },
1418
1421
  () => {
1419
1422
  h |= 1 << m;
1420
1423
  }
1421
1424
  )
1422
1425
  );
1423
- return l = !0, f(), function() {
1424
- V(p), c(), l = !1;
1426
+ return l = !0, c(), function() {
1427
+ X(p), f(), l = !1;
1425
1428
  };
1426
1429
  });
1427
1430
  }
1428
- function Mn(e) {
1431
+ function Nn(e) {
1429
1432
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1430
1433
  }
1431
- var Rn = function(t) {
1432
- return $n(t) && !Dn(t);
1434
+ var Mn = function(t) {
1435
+ return Rn(t) && !$n(t);
1433
1436
  };
1434
- function $n(e) {
1437
+ function Rn(e) {
1435
1438
  return !!e && typeof e == "object";
1436
1439
  }
1437
- function Dn(e) {
1440
+ function $n(e) {
1438
1441
  var t = Object.prototype.toString.call(e);
1439
- return t === "[object RegExp]" || t === "[object Date]" || Fn(e);
1442
+ return t === "[object RegExp]" || t === "[object Date]" || Gn(e);
1440
1443
  }
1441
- var Un = typeof Symbol == "function" && Symbol.for, Gn = Un ? Symbol.for("react.element") : 60103;
1442
- function Fn(e) {
1443
- return e.$$typeof === Gn;
1444
+ var Dn = typeof Symbol == "function" && Symbol.for, Un = Dn ? Symbol.for("react.element") : 60103;
1445
+ function Gn(e) {
1446
+ return e.$$typeof === Un;
1444
1447
  }
1445
- function jn(e) {
1448
+ function Fn(e) {
1446
1449
  return Array.isArray(e) ? [] : {};
1447
1450
  }
1448
- function fe(e, t) {
1449
- return t.clone !== !1 && t.isMergeableObject(e) ? te(jn(e), e, t) : e;
1451
+ function ce(e, t) {
1452
+ return t.clone !== !1 && t.isMergeableObject(e) ? ee(Fn(e), e, t) : e;
1450
1453
  }
1451
- function kn(e, t, r) {
1454
+ function jn(e, t, r) {
1452
1455
  return e.concat(t).map(function(n) {
1453
- return fe(n, r);
1456
+ return ce(n, r);
1454
1457
  });
1455
1458
  }
1456
- function Vn(e, t) {
1459
+ function kn(e, t) {
1457
1460
  if (!t.customMerge)
1458
- return te;
1461
+ return ee;
1459
1462
  var r = t.customMerge(e);
1460
- return typeof r == "function" ? r : te;
1463
+ return typeof r == "function" ? r : ee;
1461
1464
  }
1462
- function Xn(e) {
1465
+ function Vn(e) {
1463
1466
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1464
1467
  return Object.propertyIsEnumerable.call(e, t);
1465
1468
  }) : [];
1466
1469
  }
1467
1470
  function Pt(e) {
1468
- return Object.keys(e).concat(Xn(e));
1471
+ return Object.keys(e).concat(Vn(e));
1469
1472
  }
1470
- function lr(e, t) {
1473
+ function ur(e, t) {
1471
1474
  try {
1472
1475
  return t in e;
1473
1476
  } catch (r) {
1474
1477
  return !1;
1475
1478
  }
1476
1479
  }
1477
- function Wn(e, t) {
1478
- return lr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1480
+ function Xn(e, t) {
1481
+ return ur(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1479
1482
  }
1480
- function zn(e, t, r) {
1483
+ function Wn(e, t, r) {
1481
1484
  var n = {};
1482
1485
  return r.isMergeableObject(e) && Pt(e).forEach(function(i) {
1483
- n[i] = fe(e[i], r);
1486
+ n[i] = ce(e[i], r);
1484
1487
  }), Pt(t).forEach(function(i) {
1485
- Wn(e, i) || (lr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Vn(i, r)(e[i], t[i], r) : n[i] = fe(t[i], r));
1488
+ Xn(e, i) || (ur(e, i) && r.isMergeableObject(t[i]) ? n[i] = kn(i, r)(e[i], t[i], r) : n[i] = ce(t[i], r));
1486
1489
  }), n;
1487
1490
  }
1488
- function te(e, t, r) {
1489
- r = r || {}, r.arrayMerge = r.arrayMerge || kn, r.isMergeableObject = r.isMergeableObject || Rn, r.cloneUnlessOtherwiseSpecified = fe;
1491
+ function ee(e, t, r) {
1492
+ r = r || {}, r.arrayMerge = r.arrayMerge || jn, r.isMergeableObject = r.isMergeableObject || Mn, r.cloneUnlessOtherwiseSpecified = ce;
1490
1493
  var n = Array.isArray(t), i = Array.isArray(e), s = n === i;
1491
- return s ? n ? r.arrayMerge(e, t, r) : zn(e, t, r) : fe(t, r);
1494
+ return s ? n ? r.arrayMerge(e, t, r) : Wn(e, t, r) : ce(t, r);
1492
1495
  }
1493
- te.all = function(t, r) {
1496
+ ee.all = function(t, r) {
1494
1497
  if (!Array.isArray(t))
1495
1498
  throw new Error("first argument should be an array");
1496
1499
  return t.reduce(function(n, i) {
1497
- return te(n, i, r);
1500
+ return ee(n, i, r);
1498
1501
  }, {});
1499
1502
  };
1500
- var qn = te, Zn = qn;
1501
- const Qn = /* @__PURE__ */ Mn(Zn);
1502
- function Ge(e, t) {
1503
- var r = t && t.cache ? t.cache : ni, n = t && t.serializer ? t.serializer : ti, i = t && t.strategy ? t.strategy : Kn;
1503
+ var zn = ee, Zn = zn;
1504
+ const Qn = /* @__PURE__ */ Nn(Zn);
1505
+ function Ue(e, t) {
1506
+ var r = t && t.cache ? t.cache : ri, n = t && t.serializer ? t.serializer : ei, i = t && t.strategy ? t.strategy : Yn;
1504
1507
  return i(e, {
1505
1508
  cache: r,
1506
1509
  serializer: n
1507
1510
  });
1508
1511
  }
1509
- function Jn(e) {
1512
+ function qn(e) {
1510
1513
  return e == null || typeof e == "number" || typeof e == "boolean";
1511
1514
  }
1512
- function Yn(e, t, r, n) {
1513
- var i = Jn(n) ? n : r(n), s = t.get(i);
1515
+ function Jn(e, t, r, n) {
1516
+ var i = qn(n) ? n : r(n), s = t.get(i);
1514
1517
  return typeof s == "undefined" && (s = e.call(this, n), t.set(i, s)), s;
1515
1518
  }
1516
- function hr(e, t, r) {
1519
+ function lr(e, t, r) {
1517
1520
  var n = Array.prototype.slice.call(arguments, 3), i = r(n), s = t.get(i);
1518
1521
  return typeof s == "undefined" && (s = e.apply(this, n), t.set(i, s)), s;
1519
1522
  }
1520
- function cr(e, t, r, n, i) {
1523
+ function hr(e, t, r, n, i) {
1521
1524
  return r.bind(t, e, n, i);
1522
1525
  }
1523
- function Kn(e, t) {
1524
- var r = e.length === 1 ? Yn : hr;
1525
- return cr(e, this, r, t.cache.create(), t.serializer);
1526
+ function Yn(e, t) {
1527
+ var r = e.length === 1 ? Jn : lr;
1528
+ return hr(e, this, r, t.cache.create(), t.serializer);
1526
1529
  }
1527
- function ei(e, t) {
1528
- return cr(e, this, hr, t.cache.create(), t.serializer);
1530
+ function Kn(e, t) {
1531
+ return hr(e, this, lr, t.cache.create(), t.serializer);
1529
1532
  }
1530
- var ti = function() {
1533
+ var ei = function() {
1531
1534
  return JSON.stringify(arguments);
1532
- }, ri = (
1535
+ }, ti = (
1533
1536
  /** @class */
1534
1537
  function() {
1535
1538
  function e() {
@@ -1541,61 +1544,61 @@ var ti = function() {
1541
1544
  this.cache[t] = r;
1542
1545
  }, e;
1543
1546
  }()
1544
- ), ni = {
1547
+ ), ri = {
1545
1548
  create: function() {
1546
- return new ri();
1549
+ return new ti();
1547
1550
  }
1548
- }, Fe = {
1549
- variadic: ei
1551
+ }, Ge = {
1552
+ variadic: Kn
1550
1553
  }, g;
1551
1554
  (function(e) {
1552
1555
  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";
1553
1556
  })(g || (g = {}));
1554
- var w;
1557
+ var x;
1555
1558
  (function(e) {
1556
1559
  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";
1557
- })(w || (w = {}));
1558
- var re;
1560
+ })(x || (x = {}));
1561
+ var te;
1559
1562
  (function(e) {
1560
1563
  e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1561
- })(re || (re = {}));
1562
- function At(e) {
1563
- return e.type === w.literal;
1564
+ })(te || (te = {}));
1565
+ function Bt(e) {
1566
+ return e.type === x.literal;
1564
1567
  }
1565
- function ii(e) {
1566
- return e.type === w.argument;
1568
+ function ni(e) {
1569
+ return e.type === x.argument;
1570
+ }
1571
+ function cr(e) {
1572
+ return e.type === x.number;
1567
1573
  }
1568
1574
  function fr(e) {
1569
- return e.type === w.number;
1575
+ return e.type === x.date;
1570
1576
  }
1571
1577
  function dr(e) {
1572
- return e.type === w.date;
1578
+ return e.type === x.time;
1573
1579
  }
1574
1580
  function pr(e) {
1575
- return e.type === w.time;
1581
+ return e.type === x.select;
1576
1582
  }
1577
1583
  function mr(e) {
1578
- return e.type === w.select;
1584
+ return e.type === x.plural;
1579
1585
  }
1580
- function br(e) {
1581
- return e.type === w.plural;
1586
+ function ii(e) {
1587
+ return e.type === x.pound;
1582
1588
  }
1583
- function si(e) {
1584
- return e.type === w.pound;
1589
+ function br(e) {
1590
+ return e.type === x.tag;
1585
1591
  }
1586
1592
  function yr(e) {
1587
- return e.type === w.tag;
1593
+ return !!(e && typeof e == "object" && e.type === te.number);
1588
1594
  }
1589
- function gr(e) {
1590
- return !!(e && typeof e == "object" && e.type === re.number);
1595
+ function Je(e) {
1596
+ return !!(e && typeof e == "object" && e.type === te.dateTime);
1591
1597
  }
1592
- function Ye(e) {
1593
- return !!(e && typeof e == "object" && e.type === re.dateTime);
1594
- }
1595
- var _r = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, oi = /(?:[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;
1596
- function ai(e) {
1598
+ var gr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, si = /(?:[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;
1599
+ function oi(e) {
1597
1600
  var t = {};
1598
- return e.replace(oi, function(r) {
1601
+ return e.replace(si, function(r) {
1599
1602
  var n = r.length;
1600
1603
  switch (r[0]) {
1601
1604
  case "G":
@@ -1684,36 +1687,36 @@ function ai(e) {
1684
1687
  return "";
1685
1688
  }), t;
1686
1689
  }
1687
- var ui = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1688
- function li(e) {
1690
+ var ai = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1691
+ function ui(e) {
1689
1692
  if (e.length === 0)
1690
1693
  throw new Error("Number skeleton cannot be empty");
1691
- for (var t = e.split(ui).filter(function(f) {
1692
- return f.length > 0;
1694
+ for (var t = e.split(ai).filter(function(c) {
1695
+ return c.length > 0;
1693
1696
  }), r = [], n = 0, i = t; n < i.length; n++) {
1694
1697
  var s = i[n], a = s.split("/");
1695
1698
  if (a.length === 0)
1696
1699
  throw new Error("Invalid number skeleton");
1697
1700
  for (var o = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
1698
- var c = h[u];
1699
- if (c.length === 0)
1701
+ var f = h[u];
1702
+ if (f.length === 0)
1700
1703
  throw new Error("Invalid number skeleton");
1701
1704
  }
1702
1705
  r.push({ stem: o, options: l });
1703
1706
  }
1704
1707
  return r;
1705
1708
  }
1706
- function hi(e) {
1709
+ function li(e) {
1707
1710
  return e.replace(/^(.*?)-/, "");
1708
1711
  }
1709
- var Bt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, vr = /^(@+)?(\+|#+)?[rs]?$/g, ci = /(\*)(0+)|(#+)(0+)|(0+)/g, Er = /^(0+)$/;
1712
+ var At = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, vr = /^(@+)?(\+|#+)?[rs]?$/g, hi = /(\*)(0+)|(#+)(0+)|(0+)/g, _r = /^(0+)$/;
1710
1713
  function Ot(e) {
1711
1714
  var t = {};
1712
1715
  return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(vr, function(r, n, i) {
1713
1716
  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)), "";
1714
1717
  }), t;
1715
1718
  }
1716
- function xr(e) {
1719
+ function Er(e) {
1717
1720
  switch (e) {
1718
1721
  case "sign-auto":
1719
1722
  return {
@@ -1753,7 +1756,7 @@ function xr(e) {
1753
1756
  };
1754
1757
  }
1755
1758
  }
1756
- function fi(e) {
1759
+ function ci(e) {
1757
1760
  var t;
1758
1761
  if (e[0] === "E" && e[1] === "E" ? (t = {
1759
1762
  notation: "engineering"
@@ -1761,17 +1764,17 @@ function fi(e) {
1761
1764
  notation: "scientific"
1762
1765
  }, e = e.slice(1)), t) {
1763
1766
  var r = e.slice(0, 2);
1764
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !Er.test(e))
1767
+ if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !_r.test(e))
1765
1768
  throw new Error("Malformed concise eng/scientific notation");
1766
1769
  t.minimumIntegerDigits = e.length;
1767
1770
  }
1768
1771
  return t;
1769
1772
  }
1770
1773
  function It(e) {
1771
- var t = {}, r = xr(e);
1774
+ var t = {}, r = Er(e);
1772
1775
  return r || t;
1773
1776
  }
1774
- function di(e) {
1777
+ function fi(e) {
1775
1778
  for (var t = {}, r = 0, n = e; r < n.length; r++) {
1776
1779
  var i = n[r];
1777
1780
  switch (i.stem) {
@@ -1795,7 +1798,7 @@ function di(e) {
1795
1798
  continue;
1796
1799
  case "measure-unit":
1797
1800
  case "unit":
1798
- t.style = "unit", t.unit = hi(i.options[0]);
1801
+ t.style = "unit", t.unit = li(i.options[0]);
1799
1802
  continue;
1800
1803
  case "compact-short":
1801
1804
  case "K":
@@ -1806,13 +1809,13 @@ function di(e) {
1806
1809
  t.notation = "compact", t.compactDisplay = "long";
1807
1810
  continue;
1808
1811
  case "scientific":
1809
- t = v(v(v({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1810
- return v(v({}, l), It(u));
1812
+ t = _(_(_({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1813
+ return _(_({}, l), It(u));
1811
1814
  }, {}));
1812
1815
  continue;
1813
1816
  case "engineering":
1814
- t = v(v(v({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1815
- return v(v({}, l), It(u));
1817
+ t = _(_(_({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1818
+ return _(_({}, l), It(u));
1816
1819
  }, {}));
1817
1820
  continue;
1818
1821
  case "notation-simple":
@@ -1857,11 +1860,11 @@ function di(e) {
1857
1860
  case "integer-width":
1858
1861
  if (i.options.length > 1)
1859
1862
  throw new RangeError("integer-width stems only accept a single optional option");
1860
- i.options[0].replace(ci, function(l, u, h, c, f, p) {
1863
+ i.options[0].replace(hi, function(l, u, h, f, c, p) {
1861
1864
  if (u)
1862
1865
  t.minimumIntegerDigits = h.length;
1863
1866
  else {
1864
- if (c && f)
1867
+ if (f && c)
1865
1868
  throw new Error("We currently do not support maximum integer digits");
1866
1869
  if (p)
1867
1870
  throw new Error("We currently do not support exact integer digits");
@@ -1870,28 +1873,28 @@ function di(e) {
1870
1873
  });
1871
1874
  continue;
1872
1875
  }
1873
- if (Er.test(i.stem)) {
1876
+ if (_r.test(i.stem)) {
1874
1877
  t.minimumIntegerDigits = i.stem.length;
1875
1878
  continue;
1876
1879
  }
1877
- if (Bt.test(i.stem)) {
1880
+ if (At.test(i.stem)) {
1878
1881
  if (i.options.length > 1)
1879
1882
  throw new RangeError("Fraction-precision stems only accept a single optional option");
1880
- i.stem.replace(Bt, function(l, u, h, c, f, p) {
1881
- return h === "*" ? t.minimumFractionDigits = u.length : c && c[0] === "#" ? t.maximumFractionDigits = c.length : f && p ? (t.minimumFractionDigits = f.length, t.maximumFractionDigits = f.length + p.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1883
+ i.stem.replace(At, function(l, u, h, f, c, p) {
1884
+ 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), "";
1882
1885
  });
1883
1886
  var s = i.options[0];
1884
- s === "w" ? t = v(v({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = v(v({}, t), Ot(s)));
1887
+ s === "w" ? t = _(_({}, t), { trailingZeroDisplay: "stripIfInteger" }) : s && (t = _(_({}, t), Ot(s)));
1885
1888
  continue;
1886
1889
  }
1887
1890
  if (vr.test(i.stem)) {
1888
- t = v(v({}, t), Ot(i.stem));
1891
+ t = _(_({}, t), Ot(i.stem));
1889
1892
  continue;
1890
1893
  }
1891
- var a = xr(i.stem);
1892
- a && (t = v(v({}, t), a));
1893
- var o = fi(i.stem);
1894
- o && (t = v(v({}, t), o));
1894
+ var a = Er(i.stem);
1895
+ a && (t = _(_({}, t), a));
1896
+ var o = ci(i.stem);
1897
+ o && (t = _(_({}, t), o));
1895
1898
  }
1896
1899
  return t;
1897
1900
  }
@@ -3310,13 +3313,13 @@ var ve = {
3310
3313
  "h"
3311
3314
  ]
3312
3315
  };
3313
- function pi(e, t) {
3316
+ function di(e, t) {
3314
3317
  for (var r = "", n = 0; n < e.length; n++) {
3315
3318
  var i = e.charAt(n);
3316
3319
  if (i === "j") {
3317
3320
  for (var s = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3318
3321
  s++, n++;
3319
- var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = mi(t);
3322
+ var a = 1 + (s & 1), o = s < 2 ? 1 : 3 + (s >> 1), l = "a", u = pi(t);
3320
3323
  for ((u == "H" || u == "k") && (o = 0); o-- > 0; )
3321
3324
  r += l;
3322
3325
  for (; a-- > 0; )
@@ -3325,7 +3328,7 @@ function pi(e, t) {
3325
3328
  }
3326
3329
  return r;
3327
3330
  }
3328
- function mi(e) {
3331
+ function pi(e) {
3329
3332
  var t = e.hourCycle;
3330
3333
  if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3331
3334
  e.hourCycles && // @ts-ignore
@@ -3347,20 +3350,20 @@ function mi(e) {
3347
3350
  var i = ve[n || ""] || ve[r || ""] || ve["".concat(r, "-001")] || ve["001"];
3348
3351
  return i[0];
3349
3352
  }
3350
- var je, bi = new RegExp("^".concat(_r.source, "*")), yi = new RegExp("".concat(_r.source, "*$"));
3351
- function _(e, t) {
3353
+ var Fe, mi = new RegExp("^".concat(gr.source, "*")), bi = new RegExp("".concat(gr.source, "*$"));
3354
+ function v(e, t) {
3352
3355
  return { start: e, end: t };
3353
3356
  }
3354
- var gi = !!String.prototype.startsWith && "_a".startsWith("a", 1), _i = !!String.fromCodePoint, vi = !!Object.fromEntries, Ei = !!String.prototype.codePointAt, xi = !!String.prototype.trimStart, wi = !!String.prototype.trimEnd, Si = !!Number.isSafeInteger, Ti = Si ? Number.isSafeInteger : function(e) {
3357
+ var yi = !!String.prototype.startsWith && "_a".startsWith("a", 1), gi = !!String.fromCodePoint, vi = !!Object.fromEntries, _i = !!String.prototype.codePointAt, Ei = !!String.prototype.trimStart, xi = !!String.prototype.trimEnd, wi = !!Number.isSafeInteger, Si = wi ? Number.isSafeInteger : function(e) {
3355
3358
  return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3356
- }, Ke = !0;
3359
+ }, Ye = !0;
3357
3360
  try {
3358
- var Hi = Sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3359
- Ke = ((je = Hi.exec("a")) === null || je === void 0 ? void 0 : je[0]) === "a";
3361
+ var Ti = wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3362
+ Ye = ((Fe = Ti.exec("a")) === null || Fe === void 0 ? void 0 : Fe[0]) === "a";
3360
3363
  } catch (e) {
3361
- Ke = !1;
3364
+ Ye = !1;
3362
3365
  }
3363
- var Ct = gi ? (
3366
+ var Ct = yi ? (
3364
3367
  // Native
3365
3368
  function(t, r, n) {
3366
3369
  return t.startsWith(r, n);
@@ -3370,7 +3373,7 @@ var Ct = gi ? (
3370
3373
  function(t, r, n) {
3371
3374
  return t.slice(n, n + r.length) === r;
3372
3375
  }
3373
- ), et = _i ? String.fromCodePoint : (
3376
+ ), Ke = gi ? String.fromCodePoint : (
3374
3377
  // IE11
3375
3378
  function() {
3376
3379
  for (var t = [], r = 0; r < arguments.length; r++)
@@ -3394,7 +3397,7 @@ var Ct = gi ? (
3394
3397
  return r;
3395
3398
  }
3396
3399
  )
3397
- ), wr = Ei ? (
3400
+ ), xr = _i ? (
3398
3401
  // Native
3399
3402
  function(t, r) {
3400
3403
  return t.codePointAt(r);
@@ -3408,7 +3411,7 @@ var Ct = gi ? (
3408
3411
  return i < 55296 || i > 56319 || r + 1 === n || (s = t.charCodeAt(r + 1)) < 56320 || s > 57343 ? i : (i - 55296 << 10) + (s - 56320) + 65536;
3409
3412
  }
3410
3413
  }
3411
- ), Pi = xi ? (
3414
+ ), Hi = Ei ? (
3412
3415
  // Native
3413
3416
  function(t) {
3414
3417
  return t.trimStart();
@@ -3416,9 +3419,9 @@ var Ct = gi ? (
3416
3419
  ) : (
3417
3420
  // Ponyfill
3418
3421
  function(t) {
3419
- return t.replace(bi, "");
3422
+ return t.replace(mi, "");
3420
3423
  }
3421
- ), Ai = wi ? (
3424
+ ), Pi = xi ? (
3422
3425
  // Native
3423
3426
  function(t) {
3424
3427
  return t.trimEnd();
@@ -3426,30 +3429,30 @@ var Ct = gi ? (
3426
3429
  ) : (
3427
3430
  // Ponyfill
3428
3431
  function(t) {
3429
- return t.replace(yi, "");
3432
+ return t.replace(bi, "");
3430
3433
  }
3431
3434
  );
3432
- function Sr(e, t) {
3435
+ function wr(e, t) {
3433
3436
  return new RegExp(e, t);
3434
3437
  }
3435
- var tt;
3436
- if (Ke) {
3437
- var Nt = Sr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3438
- tt = function(t, r) {
3438
+ var et;
3439
+ if (Ye) {
3440
+ var Nt = wr("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3441
+ et = function(t, r) {
3439
3442
  var n;
3440
3443
  Nt.lastIndex = r;
3441
3444
  var i = Nt.exec(t);
3442
3445
  return (n = i[1]) !== null && n !== void 0 ? n : "";
3443
3446
  };
3444
3447
  } else
3445
- tt = function(t, r) {
3448
+ et = function(t, r) {
3446
3449
  for (var n = []; ; ) {
3447
- var i = wr(t, r);
3448
- if (i === void 0 || Tr(i) || Ci(i))
3450
+ var i = xr(t, r);
3451
+ if (i === void 0 || Sr(i) || Ii(i))
3449
3452
  break;
3450
3453
  n.push(i), r += i >= 65536 ? 2 : 1;
3451
3454
  }
3452
- return et.apply(void 0, n);
3455
+ return Ke.apply(void 0, n);
3453
3456
  };
3454
3457
  var Bi = (
3455
3458
  /** @class */
@@ -3475,14 +3478,14 @@ var Bi = (
3475
3478
  if (s === 35 && (r === "plural" || r === "selectordinal")) {
3476
3479
  var o = this.clonePosition();
3477
3480
  this.bump(), i.push({
3478
- type: w.pound,
3479
- location: _(o, this.clonePosition())
3481
+ type: x.pound,
3482
+ location: v(o, this.clonePosition())
3480
3483
  });
3481
3484
  } else if (s === 60 && !this.ignoreTag && this.peek() === 47) {
3482
3485
  if (n)
3483
3486
  break;
3484
- return this.error(g.UNMATCHED_CLOSING_TAG, _(this.clonePosition(), this.clonePosition()));
3485
- } else if (s === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
3487
+ return this.error(g.UNMATCHED_CLOSING_TAG, v(this.clonePosition(), this.clonePosition()));
3488
+ } else if (s === 60 && !this.ignoreTag && tt(this.peek() || 0)) {
3486
3489
  var a = this.parseTag(t, r);
3487
3490
  if (a.err)
3488
3491
  return a;
@@ -3503,9 +3506,9 @@ var Bi = (
3503
3506
  if (this.bumpSpace(), this.bumpIf("/>"))
3504
3507
  return {
3505
3508
  val: {
3506
- type: w.literal,
3509
+ type: x.literal,
3507
3510
  value: "<".concat(i, "/>"),
3508
- location: _(n, this.clonePosition())
3511
+ location: v(n, this.clonePosition())
3509
3512
  },
3510
3513
  err: null
3511
3514
  };
@@ -3515,25 +3518,25 @@ var Bi = (
3515
3518
  return s;
3516
3519
  var a = s.val, o = this.clonePosition();
3517
3520
  if (this.bumpIf("</")) {
3518
- if (this.isEOF() || !rt(this.char()))
3519
- return this.error(g.INVALID_TAG, _(o, this.clonePosition()));
3521
+ if (this.isEOF() || !tt(this.char()))
3522
+ return this.error(g.INVALID_TAG, v(o, this.clonePosition()));
3520
3523
  var l = this.clonePosition(), u = this.parseTagName();
3521
- return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, _(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3524
+ return i !== u ? this.error(g.UNMATCHED_CLOSING_TAG, v(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3522
3525
  val: {
3523
- type: w.tag,
3526
+ type: x.tag,
3524
3527
  value: i,
3525
3528
  children: a,
3526
- location: _(n, this.clonePosition())
3529
+ location: v(n, this.clonePosition())
3527
3530
  },
3528
3531
  err: null
3529
- } : this.error(g.INVALID_TAG, _(o, this.clonePosition())));
3532
+ } : this.error(g.INVALID_TAG, v(o, this.clonePosition())));
3530
3533
  } else
3531
- return this.error(g.UNCLOSED_TAG, _(n, this.clonePosition()));
3534
+ return this.error(g.UNCLOSED_TAG, v(n, this.clonePosition()));
3532
3535
  } else
3533
- return this.error(g.INVALID_TAG, _(n, this.clonePosition()));
3536
+ return this.error(g.INVALID_TAG, v(n, this.clonePosition()));
3534
3537
  }, e.prototype.parseTagName = function() {
3535
3538
  var t = this.offset();
3536
- for (this.bump(); !this.isEOF() && Ii(this.char()); )
3539
+ for (this.bump(); !this.isEOF() && Oi(this.char()); )
3537
3540
  this.bump();
3538
3541
  return this.message.slice(t, this.offset());
3539
3542
  }, e.prototype.parseLiteral = function(t, r) {
@@ -3555,14 +3558,14 @@ var Bi = (
3555
3558
  }
3556
3559
  break;
3557
3560
  }
3558
- var l = _(n, this.clonePosition());
3561
+ var l = v(n, this.clonePosition());
3559
3562
  return {
3560
- val: { type: w.literal, value: i, location: l },
3563
+ val: { type: x.literal, value: i, location: l },
3561
3564
  err: null
3562
3565
  };
3563
3566
  }, e.prototype.tryParseLeftAngleBracket = function() {
3564
3567
  return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3565
- !Oi(this.peek() || 0)) ? (this.bump(), "<") : null;
3568
+ !Ai(this.peek() || 0)) ? (this.bump(), "<") : null;
3566
3569
  }, e.prototype.tryParseQuote = function(t) {
3567
3570
  if (this.isEOF() || this.char() !== 39)
3568
3571
  return null;
@@ -3596,49 +3599,49 @@ var Bi = (
3596
3599
  r.push(n);
3597
3600
  this.bump();
3598
3601
  }
3599
- return et.apply(void 0, r);
3602
+ return Ke.apply(void 0, r);
3600
3603
  }, e.prototype.tryParseUnquoted = function(t, r) {
3601
3604
  if (this.isEOF())
3602
3605
  return null;
3603
3606
  var n = this.char();
3604
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), et(n));
3607
+ return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), Ke(n));
3605
3608
  }, e.prototype.parseArgument = function(t, r) {
3606
3609
  var n = this.clonePosition();
3607
3610
  if (this.bump(), this.bumpSpace(), this.isEOF())
3608
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
3611
+ return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3609
3612
  if (this.char() === 125)
3610
- return this.bump(), this.error(g.EMPTY_ARGUMENT, _(n, this.clonePosition()));
3613
+ return this.bump(), this.error(g.EMPTY_ARGUMENT, v(n, this.clonePosition()));
3611
3614
  var i = this.parseIdentifierIfPossible().value;
3612
3615
  if (!i)
3613
- return this.error(g.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
3616
+ return this.error(g.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3614
3617
  if (this.bumpSpace(), this.isEOF())
3615
- return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition()));
3618
+ return this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition()));
3616
3619
  switch (this.char()) {
3617
3620
  case 125:
3618
3621
  return this.bump(), {
3619
3622
  val: {
3620
- type: w.argument,
3623
+ type: x.argument,
3621
3624
  // value does not include the opening and closing braces.
3622
3625
  value: i,
3623
- location: _(n, this.clonePosition())
3626
+ location: v(n, this.clonePosition())
3624
3627
  },
3625
3628
  err: null
3626
3629
  };
3627
3630
  case 44:
3628
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, _(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3631
+ return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3629
3632
  default:
3630
- return this.error(g.MALFORMED_ARGUMENT, _(n, this.clonePosition()));
3633
+ return this.error(g.MALFORMED_ARGUMENT, v(n, this.clonePosition()));
3631
3634
  }
3632
3635
  }, e.prototype.parseIdentifierIfPossible = function() {
3633
- var t = this.clonePosition(), r = this.offset(), n = tt(this.message, r), i = r + n.length;
3636
+ var t = this.clonePosition(), r = this.offset(), n = et(this.message, r), i = r + n.length;
3634
3637
  this.bumpTo(i);
3635
- var s = this.clonePosition(), a = _(t, s);
3638
+ var s = this.clonePosition(), a = v(t, s);
3636
3639
  return { value: n, location: a };
3637
3640
  }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3638
3641
  var s, a = this.clonePosition(), o = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3639
3642
  switch (o) {
3640
3643
  case "":
3641
- return this.error(g.EXPECT_ARGUMENT_TYPE, _(a, l));
3644
+ return this.error(g.EXPECT_ARGUMENT_TYPE, v(a, l));
3642
3645
  case "number":
3643
3646
  case "date":
3644
3647
  case "time": {
@@ -3646,47 +3649,47 @@ var Bi = (
3646
3649
  var u = null;
3647
3650
  if (this.bumpIf(",")) {
3648
3651
  this.bumpSpace();
3649
- var h = this.clonePosition(), c = this.parseSimpleArgStyleIfPossible();
3650
- if (c.err)
3651
- return c;
3652
- var f = Ai(c.val);
3653
- if (f.length === 0)
3654
- return this.error(g.EXPECT_ARGUMENT_STYLE, _(this.clonePosition(), this.clonePosition()));
3655
- var p = _(h, this.clonePosition());
3656
- u = { style: f, styleLocation: p };
3652
+ var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3653
+ if (f.err)
3654
+ return f;
3655
+ var c = Pi(f.val);
3656
+ if (c.length === 0)
3657
+ return this.error(g.EXPECT_ARGUMENT_STYLE, v(this.clonePosition(), this.clonePosition()));
3658
+ var p = v(h, this.clonePosition());
3659
+ u = { style: c, styleLocation: p };
3657
3660
  }
3658
3661
  var d = this.tryParseArgumentClose(i);
3659
3662
  if (d.err)
3660
3663
  return d;
3661
- var m = _(i, this.clonePosition());
3664
+ var m = v(i, this.clonePosition());
3662
3665
  if (u && Ct(u == null ? void 0 : u.style, "::", 0)) {
3663
- var E = Pi(u.style.slice(2));
3666
+ var E = Hi(u.style.slice(2));
3664
3667
  if (o === "number") {
3665
- var c = this.parseNumberSkeletonFromString(E, u.styleLocation);
3666
- return c.err ? c : {
3667
- val: { type: w.number, value: n, location: m, style: c.val },
3668
+ var f = this.parseNumberSkeletonFromString(E, u.styleLocation);
3669
+ return f.err ? f : {
3670
+ val: { type: x.number, value: n, location: m, style: f.val },
3668
3671
  err: null
3669
3672
  };
3670
3673
  } else {
3671
3674
  if (E.length === 0)
3672
3675
  return this.error(g.EXPECT_DATE_TIME_SKELETON, m);
3673
- var S = E;
3674
- this.locale && (S = pi(E, this.locale));
3675
- var f = {
3676
- type: re.dateTime,
3677
- pattern: S,
3676
+ var T = E;
3677
+ this.locale && (T = di(E, this.locale));
3678
+ var c = {
3679
+ type: te.dateTime,
3680
+ pattern: T,
3678
3681
  location: u.styleLocation,
3679
- parsedOptions: this.shouldParseSkeletons ? ai(S) : {}
3680
- }, H = o === "date" ? w.date : w.time;
3682
+ parsedOptions: this.shouldParseSkeletons ? oi(T) : {}
3683
+ }, H = o === "date" ? x.date : x.time;
3681
3684
  return {
3682
- val: { type: H, value: n, location: m, style: f },
3685
+ val: { type: H, value: n, location: m, style: c },
3683
3686
  err: null
3684
3687
  };
3685
3688
  }
3686
3689
  }
3687
3690
  return {
3688
3691
  val: {
3689
- type: o === "number" ? w.number : o === "date" ? w.date : w.time,
3692
+ type: o === "number" ? x.number : o === "date" ? x.date : x.time,
3690
3693
  value: n,
3691
3694
  location: m,
3692
3695
  style: (s = u == null ? void 0 : u.style) !== null && s !== void 0 ? s : null
@@ -3697,52 +3700,52 @@ var Bi = (
3697
3700
  case "plural":
3698
3701
  case "selectordinal":
3699
3702
  case "select": {
3700
- var T = this.clonePosition();
3703
+ var S = this.clonePosition();
3701
3704
  if (this.bumpSpace(), !this.bumpIf(","))
3702
- return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, _(T, v({}, T)));
3705
+ return this.error(g.EXPECT_SELECT_ARGUMENT_OPTIONS, v(S, _({}, S)));
3703
3706
  this.bumpSpace();
3704
- var C = this.parseIdentifierIfPossible(), P = 0;
3705
- if (o !== "select" && C.value === "offset") {
3707
+ var I = this.parseIdentifierIfPossible(), P = 0;
3708
+ if (o !== "select" && I.value === "offset") {
3706
3709
  if (!this.bumpIf(":"))
3707
- return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, _(this.clonePosition(), this.clonePosition()));
3710
+ return this.error(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, v(this.clonePosition(), this.clonePosition()));
3708
3711
  this.bumpSpace();
3709
- var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3710
- if (c.err)
3711
- return c;
3712
- this.bumpSpace(), C = this.parseIdentifierIfPossible(), P = c.val;
3712
+ var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, g.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3713
+ if (f.err)
3714
+ return f;
3715
+ this.bumpSpace(), I = this.parseIdentifierIfPossible(), P = f.val;
3713
3716
  }
3714
- var L = this.tryParsePluralOrSelectOptions(t, o, r, C);
3715
- if (L.err)
3716
- return L;
3717
+ var N = this.tryParsePluralOrSelectOptions(t, o, r, I);
3718
+ if (N.err)
3719
+ return N;
3717
3720
  var d = this.tryParseArgumentClose(i);
3718
3721
  if (d.err)
3719
3722
  return d;
3720
- var x = _(i, this.clonePosition());
3723
+ var w = v(i, this.clonePosition());
3721
3724
  return o === "select" ? {
3722
3725
  val: {
3723
- type: w.select,
3726
+ type: x.select,
3724
3727
  value: n,
3725
- options: Lt(L.val),
3726
- location: x
3728
+ options: Lt(N.val),
3729
+ location: w
3727
3730
  },
3728
3731
  err: null
3729
3732
  } : {
3730
3733
  val: {
3731
- type: w.plural,
3734
+ type: x.plural,
3732
3735
  value: n,
3733
- options: Lt(L.val),
3736
+ options: Lt(N.val),
3734
3737
  offset: P,
3735
3738
  pluralType: o === "plural" ? "cardinal" : "ordinal",
3736
- location: x
3739
+ location: w
3737
3740
  },
3738
3741
  err: null
3739
3742
  };
3740
3743
  }
3741
3744
  default:
3742
- return this.error(g.INVALID_ARGUMENT_TYPE, _(a, l));
3745
+ return this.error(g.INVALID_ARGUMENT_TYPE, v(a, l));
3743
3746
  }
3744
3747
  }, e.prototype.tryParseArgumentClose = function(t) {
3745
- return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, _(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3748
+ return this.isEOF() || this.char() !== 125 ? this.error(g.EXPECT_ARGUMENT_CLOSING_BRACE, v(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3746
3749
  }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3747
3750
  for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3748
3751
  var n = this.char();
@@ -3751,7 +3754,7 @@ var Bi = (
3751
3754
  this.bump();
3752
3755
  var i = this.clonePosition();
3753
3756
  if (!this.bumpUntil("'"))
3754
- return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, _(i, this.clonePosition()));
3757
+ return this.error(g.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, v(i, this.clonePosition()));
3755
3758
  this.bump();
3756
3759
  break;
3757
3760
  }
@@ -3781,28 +3784,28 @@ var Bi = (
3781
3784
  }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3782
3785
  var n = [];
3783
3786
  try {
3784
- n = li(t);
3787
+ n = ui(t);
3785
3788
  } catch (i) {
3786
3789
  return this.error(g.INVALID_NUMBER_SKELETON, r);
3787
3790
  }
3788
3791
  return {
3789
3792
  val: {
3790
- type: re.number,
3793
+ type: te.number,
3791
3794
  tokens: n,
3792
3795
  location: r,
3793
- parsedOptions: this.shouldParseSkeletons ? di(n) : {}
3796
+ parsedOptions: this.shouldParseSkeletons ? fi(n) : {}
3794
3797
  },
3795
3798
  err: null
3796
3799
  };
3797
3800
  }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3798
3801
  for (var s, a = !1, o = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3799
3802
  if (u.length === 0) {
3800
- var c = this.clonePosition();
3803
+ var f = this.clonePosition();
3801
3804
  if (r !== "select" && this.bumpIf("=")) {
3802
- var f = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
3803
- if (f.err)
3804
- return f;
3805
- h = _(c, this.clonePosition()), u = this.message.slice(c.offset, this.offset());
3805
+ var c = this.tryParseDecimalInteger(g.EXPECT_PLURAL_ARGUMENT_SELECTOR, g.INVALID_PLURAL_ARGUMENT_SELECTOR);
3806
+ if (c.err)
3807
+ return c;
3808
+ h = v(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3806
3809
  } else
3807
3810
  break;
3808
3811
  }
@@ -3811,7 +3814,7 @@ var Bi = (
3811
3814
  u === "other" && (a = !0), this.bumpSpace();
3812
3815
  var p = this.clonePosition();
3813
3816
  if (!this.bumpIf("{"))
3814
- return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, _(this.clonePosition(), this.clonePosition()));
3817
+ return this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : g.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, v(this.clonePosition(), this.clonePosition()));
3815
3818
  var d = this.parseMessage(t + 1, r, n);
3816
3819
  if (d.err)
3817
3820
  return d;
@@ -3822,11 +3825,11 @@ var Bi = (
3822
3825
  u,
3823
3826
  {
3824
3827
  value: d.val,
3825
- location: _(p, this.clonePosition())
3828
+ location: v(p, this.clonePosition())
3826
3829
  }
3827
3830
  ]), l.add(u), this.bumpSpace(), s = this.parseIdentifierIfPossible(), u = s.value, h = s.location;
3828
3831
  }
3829
- return o.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, _(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(g.MISSING_OTHER_CLAUSE, _(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3832
+ return o.length === 0 ? this.error(r === "select" ? g.EXPECT_SELECT_ARGUMENT_SELECTOR : g.EXPECT_PLURAL_ARGUMENT_SELECTOR, v(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(g.MISSING_OTHER_CLAUSE, v(this.clonePosition(), this.clonePosition())) : { val: o, err: null };
3830
3833
  }, e.prototype.tryParseDecimalInteger = function(t, r) {
3831
3834
  var n = 1, i = this.clonePosition();
3832
3835
  this.bumpIf("+") || this.bumpIf("-") && (n = -1);
@@ -3837,8 +3840,8 @@ var Bi = (
3837
3840
  else
3838
3841
  break;
3839
3842
  }
3840
- var l = _(i, this.clonePosition());
3841
- return s ? (a *= n, Ti(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3843
+ var l = v(i, this.clonePosition());
3844
+ return s ? (a *= n, Si(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3842
3845
  }, e.prototype.offset = function() {
3843
3846
  return this.position.offset;
3844
3847
  }, e.prototype.isEOF = function() {
@@ -3853,7 +3856,7 @@ var Bi = (
3853
3856
  var t = this.position.offset;
3854
3857
  if (t >= this.message.length)
3855
3858
  throw Error("out of bound");
3856
- var r = wr(this.message, t);
3859
+ var r = xr(this.message, t);
3857
3860
  if (r === void 0)
3858
3861
  throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3859
3862
  return r;
@@ -3894,7 +3897,7 @@ var Bi = (
3894
3897
  break;
3895
3898
  }
3896
3899
  }, e.prototype.bumpSpace = function() {
3897
- for (; !this.isEOF() && Tr(this.char()); )
3900
+ for (; !this.isEOF() && Sr(this.char()); )
3898
3901
  this.bump();
3899
3902
  }, e.prototype.peek = function() {
3900
3903
  if (this.isEOF())
@@ -3904,46 +3907,46 @@ var Bi = (
3904
3907
  }, e;
3905
3908
  }()
3906
3909
  );
3907
- function rt(e) {
3910
+ function tt(e) {
3908
3911
  return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3909
3912
  }
3910
- function Oi(e) {
3911
- return rt(e) || e === 47;
3913
+ function Ai(e) {
3914
+ return tt(e) || e === 47;
3912
3915
  }
3913
- function Ii(e) {
3916
+ function Oi(e) {
3914
3917
  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;
3915
3918
  }
3916
- function Tr(e) {
3919
+ function Sr(e) {
3917
3920
  return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3918
3921
  }
3919
- function Ci(e) {
3922
+ function Ii(e) {
3920
3923
  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;
3921
3924
  }
3922
- function nt(e) {
3925
+ function rt(e) {
3923
3926
  e.forEach(function(t) {
3924
- if (delete t.location, mr(t) || br(t))
3927
+ if (delete t.location, pr(t) || mr(t))
3925
3928
  for (var r in t.options)
3926
- delete t.options[r].location, nt(t.options[r].value);
3927
- else fr(t) && gr(t.style) || (dr(t) || pr(t)) && Ye(t.style) ? delete t.style.location : yr(t) && nt(t.children);
3929
+ delete t.options[r].location, rt(t.options[r].value);
3930
+ else cr(t) && yr(t.style) || (fr(t) || dr(t)) && Je(t.style) ? delete t.style.location : br(t) && rt(t.children);
3928
3931
  });
3929
3932
  }
3930
- function Li(e, t) {
3931
- t === void 0 && (t = {}), t = v({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3933
+ function Ci(e, t) {
3934
+ t === void 0 && (t = {}), t = _({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3932
3935
  var r = new Bi(e, t).parse();
3933
3936
  if (r.err) {
3934
3937
  var n = SyntaxError(g[r.err.kind]);
3935
3938
  throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3936
3939
  }
3937
- return t != null && t.captureLocation || nt(r.val), r.val;
3940
+ return t != null && t.captureLocation || rt(r.val), r.val;
3938
3941
  }
3939
- var ne;
3942
+ var re;
3940
3943
  (function(e) {
3941
3944
  e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3942
- })(ne || (ne = {}));
3943
- var Le = (
3945
+ })(re || (re = {}));
3946
+ var Ce = (
3944
3947
  /** @class */
3945
3948
  function(e) {
3946
- j(t, e);
3949
+ F(t, e);
3947
3950
  function t(r, n, i) {
3948
3951
  var s = e.call(this, r) || this;
3949
3952
  return s.code = n, s.originalMessage = i, s;
@@ -3955,152 +3958,152 @@ var Le = (
3955
3958
  ), Mt = (
3956
3959
  /** @class */
3957
3960
  function(e) {
3958
- j(t, e);
3961
+ F(t, e);
3959
3962
  function t(r, n, i, s) {
3960
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), ne.INVALID_VALUE, s) || this;
3963
+ return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), re.INVALID_VALUE, s) || this;
3961
3964
  }
3962
3965
  return t;
3963
- }(Le)
3964
- ), Ni = (
3966
+ }(Ce)
3967
+ ), Li = (
3965
3968
  /** @class */
3966
3969
  function(e) {
3967
- j(t, e);
3970
+ F(t, e);
3968
3971
  function t(r, n, i) {
3969
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), ne.INVALID_VALUE, i) || this;
3972
+ return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), re.INVALID_VALUE, i) || this;
3970
3973
  }
3971
3974
  return t;
3972
- }(Le)
3973
- ), Mi = (
3975
+ }(Ce)
3976
+ ), Ni = (
3974
3977
  /** @class */
3975
3978
  function(e) {
3976
- j(t, e);
3979
+ F(t, e);
3977
3980
  function t(r, n) {
3978
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), ne.MISSING_VALUE, n) || this;
3981
+ return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), re.MISSING_VALUE, n) || this;
3979
3982
  }
3980
3983
  return t;
3981
- }(Le)
3982
- ), O;
3984
+ }(Ce)
3985
+ ), A;
3983
3986
  (function(e) {
3984
3987
  e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3985
- })(O || (O = {}));
3986
- function Ri(e) {
3988
+ })(A || (A = {}));
3989
+ function Mi(e) {
3987
3990
  return e.length < 2 ? e : e.reduce(function(t, r) {
3988
3991
  var n = t[t.length - 1];
3989
- return !n || n.type !== O.literal || r.type !== O.literal ? t.push(r) : n.value += r.value, t;
3992
+ return !n || n.type !== A.literal || r.type !== A.literal ? t.push(r) : n.value += r.value, t;
3990
3993
  }, []);
3991
3994
  }
3992
- function $i(e) {
3995
+ function Ri(e) {
3993
3996
  return typeof e == "function";
3994
3997
  }
3995
- function Se(e, t, r, n, i, s, a) {
3996
- if (e.length === 1 && At(e[0]))
3998
+ function we(e, t, r, n, i, s, a) {
3999
+ if (e.length === 1 && Bt(e[0]))
3997
4000
  return [
3998
4001
  {
3999
- type: O.literal,
4002
+ type: A.literal,
4000
4003
  value: e[0].value
4001
4004
  }
4002
4005
  ];
4003
4006
  for (var o = [], l = 0, u = e; l < u.length; l++) {
4004
4007
  var h = u[l];
4005
- if (At(h)) {
4008
+ if (Bt(h)) {
4006
4009
  o.push({
4007
- type: O.literal,
4010
+ type: A.literal,
4008
4011
  value: h.value
4009
4012
  });
4010
4013
  continue;
4011
4014
  }
4012
- if (si(h)) {
4015
+ if (ii(h)) {
4013
4016
  typeof s == "number" && o.push({
4014
- type: O.literal,
4017
+ type: A.literal,
4015
4018
  value: r.getNumberFormat(t).format(s)
4016
4019
  });
4017
4020
  continue;
4018
4021
  }
4019
- var c = h.value;
4020
- if (!(i && c in i))
4021
- throw new Mi(c, a);
4022
- var f = i[c];
4023
- if (ii(h)) {
4024
- (!f || typeof f == "string" || typeof f == "number") && (f = typeof f == "string" || typeof f == "number" ? String(f) : ""), o.push({
4025
- type: typeof f == "string" ? O.literal : O.object,
4026
- value: f
4022
+ var f = h.value;
4023
+ if (!(i && f in i))
4024
+ throw new Ni(f, a);
4025
+ var c = i[f];
4026
+ if (ni(h)) {
4027
+ (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), o.push({
4028
+ type: typeof c == "string" ? A.literal : A.object,
4029
+ value: c
4027
4030
  });
4028
4031
  continue;
4029
4032
  }
4030
- if (dr(h)) {
4031
- var p = typeof h.style == "string" ? n.date[h.style] : Ye(h.style) ? h.style.parsedOptions : void 0;
4033
+ if (fr(h)) {
4034
+ var p = typeof h.style == "string" ? n.date[h.style] : Je(h.style) ? h.style.parsedOptions : void 0;
4032
4035
  o.push({
4033
- type: O.literal,
4034
- value: r.getDateTimeFormat(t, p).format(f)
4036
+ type: A.literal,
4037
+ value: r.getDateTimeFormat(t, p).format(c)
4035
4038
  });
4036
4039
  continue;
4037
4040
  }
4038
- if (pr(h)) {
4039
- var p = typeof h.style == "string" ? n.time[h.style] : Ye(h.style) ? h.style.parsedOptions : n.time.medium;
4041
+ if (dr(h)) {
4042
+ var p = typeof h.style == "string" ? n.time[h.style] : Je(h.style) ? h.style.parsedOptions : n.time.medium;
4040
4043
  o.push({
4041
- type: O.literal,
4042
- value: r.getDateTimeFormat(t, p).format(f)
4044
+ type: A.literal,
4045
+ value: r.getDateTimeFormat(t, p).format(c)
4043
4046
  });
4044
4047
  continue;
4045
4048
  }
4046
- if (fr(h)) {
4047
- var p = typeof h.style == "string" ? n.number[h.style] : gr(h.style) ? h.style.parsedOptions : void 0;
4048
- p && p.scale && (f = f * (p.scale || 1)), o.push({
4049
- type: O.literal,
4050
- value: r.getNumberFormat(t, p).format(f)
4049
+ if (cr(h)) {
4050
+ var p = typeof h.style == "string" ? n.number[h.style] : yr(h.style) ? h.style.parsedOptions : void 0;
4051
+ p && p.scale && (c = c * (p.scale || 1)), o.push({
4052
+ type: A.literal,
4053
+ value: r.getNumberFormat(t, p).format(c)
4051
4054
  });
4052
4055
  continue;
4053
4056
  }
4054
- if (yr(h)) {
4057
+ if (br(h)) {
4055
4058
  var d = h.children, m = h.value, E = i[m];
4056
- if (!$i(E))
4057
- throw new Ni(m, "function", a);
4058
- var S = Se(d, t, r, n, i, s), H = E(S.map(function(P) {
4059
+ if (!Ri(E))
4060
+ throw new Li(m, "function", a);
4061
+ var T = we(d, t, r, n, i, s), H = E(T.map(function(P) {
4059
4062
  return P.value;
4060
4063
  }));
4061
4064
  Array.isArray(H) || (H = [H]), o.push.apply(o, H.map(function(P) {
4062
4065
  return {
4063
- type: typeof P == "string" ? O.literal : O.object,
4066
+ type: typeof P == "string" ? A.literal : A.object,
4064
4067
  value: P
4065
4068
  };
4066
4069
  }));
4067
4070
  }
4068
- if (mr(h)) {
4069
- var T = h.options[f] || h.options.other;
4070
- if (!T)
4071
- throw new Mt(h.value, f, Object.keys(h.options), a);
4072
- o.push.apply(o, Se(T.value, t, r, n, i));
4071
+ if (pr(h)) {
4072
+ var S = h.options[c] || h.options.other;
4073
+ if (!S)
4074
+ throw new Mt(h.value, c, Object.keys(h.options), a);
4075
+ o.push.apply(o, we(S.value, t, r, n, i));
4073
4076
  continue;
4074
4077
  }
4075
- if (br(h)) {
4076
- var T = h.options["=".concat(f)];
4077
- if (!T) {
4078
+ if (mr(h)) {
4079
+ var S = h.options["=".concat(c)];
4080
+ if (!S) {
4078
4081
  if (!Intl.PluralRules)
4079
- throw new Le(`Intl.PluralRules is not available in this environment.
4082
+ throw new Ce(`Intl.PluralRules is not available in this environment.
4080
4083
  Try polyfilling it using "@formatjs/intl-pluralrules"
4081
- `, ne.MISSING_INTL_API, a);
4082
- var C = r.getPluralRules(t, { type: h.pluralType }).select(f - (h.offset || 0));
4083
- T = h.options[C] || h.options.other;
4084
+ `, re.MISSING_INTL_API, a);
4085
+ var I = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
4086
+ S = h.options[I] || h.options.other;
4084
4087
  }
4085
- if (!T)
4086
- throw new Mt(h.value, f, Object.keys(h.options), a);
4087
- o.push.apply(o, Se(T.value, t, r, n, i, f - (h.offset || 0)));
4088
+ if (!S)
4089
+ throw new Mt(h.value, c, Object.keys(h.options), a);
4090
+ o.push.apply(o, we(S.value, t, r, n, i, c - (h.offset || 0)));
4088
4091
  continue;
4089
4092
  }
4090
4093
  }
4091
- return Ri(o);
4094
+ return Mi(o);
4092
4095
  }
4093
- function Di(e, t) {
4094
- return t ? v(v(v({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
4095
- return r[n] = v(v({}, e[n]), t[n] || {}), r;
4096
+ function $i(e, t) {
4097
+ return t ? _(_(_({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
4098
+ return r[n] = _(_({}, e[n]), t[n] || {}), r;
4096
4099
  }, {})) : e;
4097
4100
  }
4098
- function Ui(e, t) {
4101
+ function Di(e, t) {
4099
4102
  return t ? Object.keys(e).reduce(function(r, n) {
4100
- return r[n] = Di(e[n], t[n]), r;
4101
- }, v({}, e)) : e;
4103
+ return r[n] = $i(e[n], t[n]), r;
4104
+ }, _({}, e)) : e;
4102
4105
  }
4103
- function ke(e) {
4106
+ function je(e) {
4104
4107
  return {
4105
4108
  create: function() {
4106
4109
  return {
@@ -4114,39 +4117,39 @@ function ke(e) {
4114
4117
  }
4115
4118
  };
4116
4119
  }
4117
- function Gi(e) {
4120
+ function Ui(e) {
4118
4121
  return e === void 0 && (e = {
4119
4122
  number: {},
4120
4123
  dateTime: {},
4121
4124
  pluralRules: {}
4122
4125
  }), {
4123
- getNumberFormat: Ge(function() {
4126
+ getNumberFormat: Ue(function() {
4124
4127
  for (var t, r = [], n = 0; n < arguments.length; n++)
4125
4128
  r[n] = arguments[n];
4126
- return new ((t = Intl.NumberFormat).bind.apply(t, ee([void 0], r, !1)))();
4129
+ return new ((t = Intl.NumberFormat).bind.apply(t, K([void 0], r, !1)))();
4127
4130
  }, {
4128
- cache: ke(e.number),
4129
- strategy: Fe.variadic
4131
+ cache: je(e.number),
4132
+ strategy: Ge.variadic
4130
4133
  }),
4131
- getDateTimeFormat: Ge(function() {
4134
+ getDateTimeFormat: Ue(function() {
4132
4135
  for (var t, r = [], n = 0; n < arguments.length; n++)
4133
4136
  r[n] = arguments[n];
4134
- return new ((t = Intl.DateTimeFormat).bind.apply(t, ee([void 0], r, !1)))();
4137
+ return new ((t = Intl.DateTimeFormat).bind.apply(t, K([void 0], r, !1)))();
4135
4138
  }, {
4136
- cache: ke(e.dateTime),
4137
- strategy: Fe.variadic
4139
+ cache: je(e.dateTime),
4140
+ strategy: Ge.variadic
4138
4141
  }),
4139
- getPluralRules: Ge(function() {
4142
+ getPluralRules: Ue(function() {
4140
4143
  for (var t, r = [], n = 0; n < arguments.length; n++)
4141
4144
  r[n] = arguments[n];
4142
- return new ((t = Intl.PluralRules).bind.apply(t, ee([void 0], r, !1)))();
4145
+ return new ((t = Intl.PluralRules).bind.apply(t, K([void 0], r, !1)))();
4143
4146
  }, {
4144
- cache: ke(e.pluralRules),
4145
- strategy: Fe.variadic
4147
+ cache: je(e.pluralRules),
4148
+ strategy: Ge.variadic
4146
4149
  })
4147
4150
  };
4148
4151
  }
4149
- var Fi = (
4152
+ var Gi = (
4150
4153
  /** @class */
4151
4154
  function() {
4152
4155
  function e(t, r, n, i) {
@@ -4160,12 +4163,12 @@ var Fi = (
4160
4163
  var u = s.formatToParts(l);
4161
4164
  if (u.length === 1)
4162
4165
  return u[0].value;
4163
- var h = u.reduce(function(c, f) {
4164
- return !c.length || f.type !== O.literal || typeof c[c.length - 1] != "string" ? c.push(f.value) : c[c.length - 1] += f.value, c;
4166
+ var h = u.reduce(function(f, c) {
4167
+ return !f.length || c.type !== A.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
4165
4168
  }, []);
4166
4169
  return h.length <= 1 ? h[0] || "" : h;
4167
4170
  }, this.formatToParts = function(l) {
4168
- return Se(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
4171
+ return we(s.ast, s.locales, s.formatters, s.formats, l, void 0, s.message);
4169
4172
  }, this.resolvedOptions = function() {
4170
4173
  var l;
4171
4174
  return {
@@ -4178,13 +4181,13 @@ var Fi = (
4178
4181
  throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
4179
4182
  var a = i || {};
4180
4183
  a.formatters;
4181
- var o = _n(a, ["formatters"]);
4182
- this.ast = e.__parse(t, v(v({}, o), { locale: this.resolvedLocale }));
4184
+ var o = gn(a, ["formatters"]);
4185
+ this.ast = e.__parse(t, _(_({}, o), { locale: this.resolvedLocale }));
4183
4186
  } else
4184
4187
  this.ast = t;
4185
4188
  if (!Array.isArray(this.ast))
4186
4189
  throw new TypeError("A message must be provided as a String or AST.");
4187
- this.formats = Ui(e.formats, n), this.formatters = i && i.formatters || Gi(this.formatterCache);
4190
+ this.formats = Di(e.formats, n), this.formatters = i && i.formatters || Ui(this.formatterCache);
4188
4191
  }
4189
4192
  return Object.defineProperty(e, "defaultLocale", {
4190
4193
  get: function() {
@@ -4197,7 +4200,7 @@ var Fi = (
4197
4200
  var r = Intl.NumberFormat.supportedLocalesOf(t);
4198
4201
  return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
4199
4202
  }
4200
- }, e.__parse = Li, e.formats = {
4203
+ }, e.__parse = Ci, e.formats = {
4201
4204
  number: {
4202
4205
  integer: {
4203
4206
  maximumFractionDigits: 0
@@ -4258,7 +4261,7 @@ var Fi = (
4258
4261
  }, e;
4259
4262
  }()
4260
4263
  );
4261
- function ji(e, t) {
4264
+ function Fi(e, t) {
4262
4265
  if (t == null)
4263
4266
  return;
4264
4267
  if (t in e)
@@ -4279,65 +4282,65 @@ function ji(e, t) {
4279
4282
  n = void 0;
4280
4283
  return n;
4281
4284
  }
4282
- const k = {}, ki = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), Hr = (e, t) => {
4285
+ const k = {}, ji = (e, t, r) => r && (t in k || (k[t] = {}), e in k[t] || (k[t][e] = r), r), Tr = (e, t) => {
4283
4286
  if (t == null)
4284
4287
  return;
4285
4288
  if (t in k && e in k[t])
4286
4289
  return k[t][e];
4287
- const r = Ne(t);
4290
+ const r = Le(t);
4288
4291
  for (let n = 0; n < r.length; n++) {
4289
- const i = r[n], s = Xi(i, e);
4292
+ const i = r[n], s = Vi(i, e);
4290
4293
  if (s)
4291
- return ki(e, t, s);
4294
+ return ji(e, t, s);
4292
4295
  }
4293
4296
  };
4294
4297
  let lt;
4295
- const be = Ce({});
4296
- function Vi(e) {
4298
+ const me = Ie({});
4299
+ function ki(e) {
4297
4300
  return lt[e] || null;
4298
4301
  }
4299
- function Pr(e) {
4302
+ function Hr(e) {
4300
4303
  return e in lt;
4301
4304
  }
4302
- function Xi(e, t) {
4303
- if (!Pr(e))
4305
+ function Vi(e, t) {
4306
+ if (!Hr(e))
4304
4307
  return null;
4305
- const r = Vi(e);
4306
- return ji(r, t);
4308
+ const r = ki(e);
4309
+ return Fi(r, t);
4307
4310
  }
4308
- function Wi(e) {
4311
+ function Xi(e) {
4309
4312
  if (e == null)
4310
4313
  return;
4311
- const t = Ne(e);
4314
+ const t = Le(e);
4312
4315
  for (let r = 0; r < t.length; r++) {
4313
4316
  const n = t[r];
4314
- if (Pr(n))
4317
+ if (Hr(n))
4315
4318
  return n;
4316
4319
  }
4317
4320
  }
4318
- function Ar(e, ...t) {
4319
- delete k[e], be.update((r) => (r[e] = Qn.all([r[e] || {}, ...t]), r));
4321
+ function Pr(e, ...t) {
4322
+ delete k[e], me.update((r) => (r[e] = Qn.all([r[e] || {}, ...t]), r));
4320
4323
  }
4321
- se(
4322
- [be],
4324
+ ie(
4325
+ [me],
4323
4326
  ([e]) => Object.keys(e)
4324
4327
  );
4325
- be.subscribe((e) => lt = e);
4326
- const Te = {};
4327
- function zi(e, t) {
4328
- Te[e].delete(t), Te[e].size === 0 && delete Te[e];
4328
+ me.subscribe((e) => lt = e);
4329
+ const Se = {};
4330
+ function Wi(e, t) {
4331
+ Se[e].delete(t), Se[e].size === 0 && delete Se[e];
4329
4332
  }
4330
4333
  function Br(e) {
4331
- return Te[e];
4334
+ return Se[e];
4332
4335
  }
4333
- function qi(e) {
4334
- return Ne(e).map((t) => {
4336
+ function zi(e) {
4337
+ return Le(e).map((t) => {
4335
4338
  const r = Br(t);
4336
4339
  return [t, r ? [...r] : []];
4337
4340
  }).filter(([, t]) => t.length > 0);
4338
4341
  }
4339
- function it(e) {
4340
- return e == null ? !1 : Ne(e).some(
4342
+ function nt(e) {
4343
+ return e == null ? !1 : Le(e).some(
4341
4344
  (t) => {
4342
4345
  var r;
4343
4346
  return (r = Br(t)) == null ? void 0 : r.size;
@@ -4346,23 +4349,23 @@ function it(e) {
4346
4349
  }
4347
4350
  function Zi(e, t) {
4348
4351
  return Promise.all(
4349
- t.map((n) => (zi(e, n), n().then((i) => i.default || i)))
4350
- ).then((n) => Ar(e, ...n));
4351
- }
4352
- const le = {};
4353
- function Or(e) {
4354
- if (!it(e))
4355
- return e in le ? le[e] : Promise.resolve();
4356
- const t = qi(e);
4357
- return le[e] = Promise.all(
4352
+ t.map((n) => (Wi(e, n), n().then((i) => i.default || i)))
4353
+ ).then((n) => Pr(e, ...n));
4354
+ }
4355
+ const ue = {};
4356
+ function Ar(e) {
4357
+ if (!nt(e))
4358
+ return e in ue ? ue[e] : Promise.resolve();
4359
+ const t = zi(e);
4360
+ return ue[e] = Promise.all(
4358
4361
  t.map(
4359
4362
  ([r, n]) => Zi(r, n)
4360
4363
  )
4361
4364
  ).then(() => {
4362
- if (it(e))
4363
- return Or(e);
4364
- delete le[e];
4365
- }), le[e];
4365
+ if (nt(e))
4366
+ return Ar(e);
4367
+ delete ue[e];
4368
+ }), ue[e];
4366
4369
  }
4367
4370
  const Qi = {
4368
4371
  number: {
@@ -4393,135 +4396,135 @@ const Qi = {
4393
4396
  timeZoneName: "short"
4394
4397
  }
4395
4398
  }
4396
- }, Ji = {
4399
+ }, qi = {
4397
4400
  fallbackLocale: null,
4398
4401
  loadingDelay: 200,
4399
4402
  formats: Qi,
4400
4403
  warnOnMissingMessages: !0,
4401
4404
  handleMissingMessage: void 0,
4402
4405
  ignoreTag: !0
4403
- }, Yi = Ji;
4404
- function ie() {
4405
- return Yi;
4406
+ }, Ji = qi;
4407
+ function ne() {
4408
+ return Ji;
4406
4409
  }
4407
- const Ve = Ce(!1);
4408
- var Ki = Object.defineProperty, es = Object.defineProperties, ts = Object.getOwnPropertyDescriptors, Rt = Object.getOwnPropertySymbols, rs = Object.prototype.hasOwnProperty, ns = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? Ki(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, is = (e, t) => {
4410
+ const ke = Ie(!1);
4411
+ var Yi = Object.defineProperty, Ki = Object.defineProperties, es = Object.getOwnPropertyDescriptors, Rt = Object.getOwnPropertySymbols, ts = Object.prototype.hasOwnProperty, rs = Object.prototype.propertyIsEnumerable, $t = (e, t, r) => t in e ? Yi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ns = (e, t) => {
4409
4412
  for (var r in t || (t = {}))
4410
- rs.call(t, r) && $t(e, r, t[r]);
4413
+ ts.call(t, r) && $t(e, r, t[r]);
4411
4414
  if (Rt)
4412
4415
  for (var r of Rt(t))
4413
- ns.call(t, r) && $t(e, r, t[r]);
4416
+ rs.call(t, r) && $t(e, r, t[r]);
4414
4417
  return e;
4415
- }, ss = (e, t) => es(e, ts(t));
4416
- let st;
4417
- const Be = Ce(null);
4418
+ }, is = (e, t) => Ki(e, es(t));
4419
+ let it;
4420
+ const Be = Ie(null);
4418
4421
  function Dt(e) {
4419
4422
  return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4420
4423
  }
4421
- function Ne(e, t = ie().fallbackLocale) {
4424
+ function Le(e, t = ne().fallbackLocale) {
4422
4425
  const r = Dt(e);
4423
4426
  return t ? [.../* @__PURE__ */ new Set([...r, ...Dt(t)])] : r;
4424
4427
  }
4425
4428
  function z() {
4426
- return st != null ? st : void 0;
4429
+ return it != null ? it : void 0;
4427
4430
  }
4428
4431
  Be.subscribe((e) => {
4429
- st = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4432
+ it = e != null ? e : void 0, typeof window != "undefined" && e != null && document.documentElement.setAttribute("lang", e);
4430
4433
  });
4431
- const os = (e) => {
4432
- if (e && Wi(e) && it(e)) {
4433
- const { loadingDelay: t } = ie();
4434
+ const ss = (e) => {
4435
+ if (e && Xi(e) && nt(e)) {
4436
+ const { loadingDelay: t } = ne();
4434
4437
  let r;
4435
4438
  return typeof window != "undefined" && z() != null && t ? r = window.setTimeout(
4436
- () => Ve.set(!0),
4439
+ () => ke.set(!0),
4437
4440
  t
4438
- ) : Ve.set(!0), Or(e).then(() => {
4441
+ ) : ke.set(!0), Ar(e).then(() => {
4439
4442
  Be.set(e);
4440
4443
  }).finally(() => {
4441
- clearTimeout(r), Ve.set(!1);
4444
+ clearTimeout(r), ke.set(!1);
4442
4445
  });
4443
4446
  }
4444
4447
  return Be.set(e);
4445
- }, oe = ss(is({}, Be), {
4446
- set: os
4447
- }), Me = (e) => {
4448
+ }, se = is(ns({}, Be), {
4449
+ set: ss
4450
+ }), Ne = (e) => {
4448
4451
  const t = /* @__PURE__ */ Object.create(null);
4449
4452
  return (n) => {
4450
4453
  const i = JSON.stringify(n);
4451
4454
  return i in t ? t[i] : t[i] = e(n);
4452
4455
  };
4453
4456
  };
4454
- var as = Object.defineProperty, Oe = Object.getOwnPropertySymbols, Ir = Object.prototype.hasOwnProperty, Cr = Object.prototype.propertyIsEnumerable, Ut = (e, t, r) => t in e ? as(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ht = (e, t) => {
4457
+ var os = Object.defineProperty, Ae = Object.getOwnPropertySymbols, Or = Object.prototype.hasOwnProperty, Ir = Object.prototype.propertyIsEnumerable, Ut = (e, t, r) => t in e ? os(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ht = (e, t) => {
4455
4458
  for (var r in t || (t = {}))
4456
- Ir.call(t, r) && Ut(e, r, t[r]);
4457
- if (Oe)
4458
- for (var r of Oe(t))
4459
- Cr.call(t, r) && Ut(e, r, t[r]);
4459
+ Or.call(t, r) && Ut(e, r, t[r]);
4460
+ if (Ae)
4461
+ for (var r of Ae(t))
4462
+ Ir.call(t, r) && Ut(e, r, t[r]);
4460
4463
  return e;
4461
- }, ae = (e, t) => {
4464
+ }, oe = (e, t) => {
4462
4465
  var r = {};
4463
4466
  for (var n in e)
4464
- Ir.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4465
- if (e != null && Oe)
4466
- for (var n of Oe(e))
4467
- t.indexOf(n) < 0 && Cr.call(e, n) && (r[n] = e[n]);
4467
+ Or.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4468
+ if (e != null && Ae)
4469
+ for (var n of Ae(e))
4470
+ t.indexOf(n) < 0 && Ir.call(e, n) && (r[n] = e[n]);
4468
4471
  return r;
4469
4472
  };
4470
- const de = (e, t) => {
4471
- const { formats: r } = ie();
4473
+ const fe = (e, t) => {
4474
+ const { formats: r } = ne();
4472
4475
  if (e in r && t in r[e])
4473
4476
  return r[e][t];
4474
4477
  throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4475
- }, us = Me(
4478
+ }, as = Ne(
4476
4479
  (e) => {
4477
- var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
4480
+ var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4478
4481
  if (r == null)
4479
4482
  throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4480
- return n && (i = de("number", n)), new Intl.NumberFormat(r, i);
4483
+ return n && (i = fe("number", n)), new Intl.NumberFormat(r, i);
4481
4484
  }
4482
- ), ls = Me(
4485
+ ), us = Ne(
4483
4486
  (e) => {
4484
- var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
4487
+ var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4485
4488
  if (r == null)
4486
4489
  throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4487
- return n ? i = de("date", n) : Object.keys(i).length === 0 && (i = de("date", "short")), new Intl.DateTimeFormat(r, i);
4490
+ return n ? i = fe("date", n) : Object.keys(i).length === 0 && (i = fe("date", "short")), new Intl.DateTimeFormat(r, i);
4488
4491
  }
4489
- ), hs = Me(
4492
+ ), ls = Ne(
4490
4493
  (e) => {
4491
- var t = e, { locale: r, format: n } = t, i = ae(t, ["locale", "format"]);
4494
+ var t = e, { locale: r, format: n } = t, i = oe(t, ["locale", "format"]);
4492
4495
  if (r == null)
4493
4496
  throw new Error(
4494
4497
  '[svelte-i18n] A "locale" must be set to format time values'
4495
4498
  );
4496
- return n ? i = de("time", n) : Object.keys(i).length === 0 && (i = de("time", "short")), new Intl.DateTimeFormat(r, i);
4499
+ return n ? i = fe("time", n) : Object.keys(i).length === 0 && (i = fe("time", "short")), new Intl.DateTimeFormat(r, i);
4497
4500
  }
4498
- ), cs = (e = {}) => {
4501
+ ), hs = (e = {}) => {
4499
4502
  var t = e, {
4500
4503
  locale: r = z()
4501
- } = t, n = ae(t, [
4504
+ } = t, n = oe(t, [
4502
4505
  "locale"
4503
4506
  ]);
4504
- return us(ht({ locale: r }, n));
4505
- }, fs = (e = {}) => {
4507
+ return as(ht({ locale: r }, n));
4508
+ }, cs = (e = {}) => {
4506
4509
  var t = e, {
4507
4510
  locale: r = z()
4508
- } = t, n = ae(t, [
4511
+ } = t, n = oe(t, [
4509
4512
  "locale"
4510
4513
  ]);
4511
- return ls(ht({ locale: r }, n));
4512
- }, ds = (e = {}) => {
4514
+ return us(ht({ locale: r }, n));
4515
+ }, fs = (e = {}) => {
4513
4516
  var t = e, {
4514
4517
  locale: r = z()
4515
- } = t, n = ae(t, [
4518
+ } = t, n = oe(t, [
4516
4519
  "locale"
4517
4520
  ]);
4518
- return hs(ht({ locale: r }, n));
4519
- }, ps = Me(
4521
+ return ls(ht({ locale: r }, n));
4522
+ }, ds = Ne(
4520
4523
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4521
- (e, t = z()) => new Fi(e, t, ie().formats, {
4522
- ignoreTag: ie().ignoreTag
4524
+ (e, t = z()) => new Gi(e, t, ne().formats, {
4525
+ ignoreTag: ne().ignoreTag
4523
4526
  })
4524
- ), ms = (e, t = {}) => {
4527
+ ), ps = (e, t = {}) => {
4525
4528
  var r, n, i, s;
4526
4529
  let a = t;
4527
4530
  typeof e == "object" && (a = e, e = a.id);
@@ -4534,35 +4537,35 @@ const de = (e, t) => {
4534
4537
  throw new Error(
4535
4538
  "[svelte-i18n] Cannot format a message without first setting the initial locale."
4536
4539
  );
4537
- let h = Hr(e, l);
4540
+ let h = Tr(e, l);
4538
4541
  if (!h)
4539
- h = (s = (i = (n = (r = ie()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4542
+ h = (s = (i = (n = (r = ne()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? s : e;
4540
4543
  else if (typeof h != "string")
4541
4544
  return console.warn(
4542
4545
  `[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.`
4543
4546
  ), h;
4544
4547
  if (!o)
4545
4548
  return h;
4546
- let c = h;
4549
+ let f = h;
4547
4550
  try {
4548
- c = ps(h, l).format(o);
4549
- } catch (f) {
4550
- f instanceof Error && console.warn(
4551
+ f = ds(h, l).format(o);
4552
+ } catch (c) {
4553
+ c instanceof Error && console.warn(
4551
4554
  `[svelte-i18n] Message "${e}" has syntax error:`,
4552
- f.message
4555
+ c.message
4553
4556
  );
4554
4557
  }
4555
- return c;
4556
- }, bs = (e, t) => ds(t).format(e), ys = (e, t) => fs(t).format(e), gs = (e, t) => cs(t).format(e), _s = (e, t = z()) => Hr(e, t), vs = se([oe, be], () => ms);
4557
- se([oe], () => bs);
4558
- se([oe], () => ys);
4559
- se([oe], () => gs);
4560
- se([oe, be], () => _s);
4561
- window.emWidgets = { topic: Ln };
4562
- const Lr = (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)), Es = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4563
- function Js(e, t) {
4558
+ return f;
4559
+ }, ms = (e, t) => fs(t).format(e), bs = (e, t) => cs(t).format(e), ys = (e, t) => hs(t).format(e), gs = (e, t = z()) => Tr(e, t), vs = ie([se, me], () => ps);
4560
+ ie([se], () => ms);
4561
+ ie([se], () => bs);
4562
+ ie([se], () => ys);
4563
+ ie([se, me], () => gs);
4564
+ window.emWidgets = { topic: Cn };
4565
+ const Cr = (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)), _s = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC";
4566
+ function eo(e, t) {
4564
4567
  const r = window.navigator.userAgent;
4565
- return Lr(r) ? t = e.filter((n) => {
4568
+ return Cr(r) ? t = e.filter((n) => {
4566
4569
  if (n.gameModel && (n.gameModel.platform.includes("iPad") || n.gameModel.platform.includes("iPhone") || n.gameModel.platform.includes("Android")))
4567
4570
  return n;
4568
4571
  }) : t = e.filter((n) => {
@@ -4570,7 +4573,7 @@ function Js(e, t) {
4570
4573
  return n;
4571
4574
  }), t;
4572
4575
  }
4573
- function Ys(e, t) {
4576
+ function to(e, t) {
4574
4577
  return new Promise((r, n) => {
4575
4578
  const i = new Headers();
4576
4579
  i.append("X-SessionID", t);
@@ -4581,11 +4584,34 @@ function Ys(e, t) {
4581
4584
  fetch(`${e}/v1/player/session/player`, s).then((a) => a.json()).then((a) => r(a)).catch((a) => n(a));
4582
4585
  });
4583
4586
  }
4587
+ function Es(e, t) {
4588
+ if (e) {
4589
+ const r = document.createElement("style");
4590
+ r.innerHTML = t, e.appendChild(r);
4591
+ }
4592
+ }
4593
+ function xs(e, t) {
4594
+ const r = new URL(t);
4595
+ fetch(r.href).then((n) => n.text()).then((n) => {
4596
+ const i = document.createElement("style");
4597
+ i.innerHTML = n, e && e.appendChild(i);
4598
+ }).catch((n) => {
4599
+ console.error("There was an error while trying to load client styling from URL", n);
4600
+ });
4601
+ }
4602
+ function ws(e, t, r) {
4603
+ if (window.emMessageBus) {
4604
+ const n = document.createElement("style");
4605
+ window.emMessageBus.subscribe(t, (i) => {
4606
+ n.innerHTML = i, e && e.appendChild(n);
4607
+ });
4608
+ }
4609
+ }
4584
4610
  function Gt(e, t) {
4585
- Ar(e, t);
4611
+ Pr(e, t);
4586
4612
  }
4587
- function xs(e) {
4588
- oe.set(e);
4613
+ function Ss(e) {
4614
+ se.set(e);
4589
4615
  }
4590
4616
  const Ft = {
4591
4617
  en: {
@@ -4619,7 +4645,7 @@ if (typeof window != "undefined") {
4619
4645
  }
4620
4646
  };
4621
4647
  };
4622
- customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-CCIR8eIp.js").then(({ default: t }) => {
4648
+ customElements.define = e(customElements.define), import("./CasinoCalendarDailyDetails-DueCbaZn.js").then(({ default: t }) => {
4623
4649
  !customElements.get("casino-calendar-daily-details") && customElements.define("casino-calendar-daily-details", t.element);
4624
4650
  });
4625
4651
  }
@@ -4635,49 +4661,49 @@ if (typeof window != "undefined") {
4635
4661
  }
4636
4662
  };
4637
4663
  };
4638
- customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-1iPwEmjb.js").then(({ default: t }) => {
4664
+ customElements.define = e(customElements.define), import("./CasinoCalendarDailyItem-DpLOlYVI.js").then(({ default: t }) => {
4639
4665
  !customElements.get("casino-calendar-daily-item") && customElements.define("casino-calendar-daily-item", t.element);
4640
4666
  });
4641
4667
  }
4642
- function ws(e) {
4643
- Wr(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
4644
- }.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)}}`);
4668
+ function Ts(e) {
4669
+ Xr(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
4670
+ }.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)}}`);
4645
4671
  }
4646
4672
  function jt(e, t, r) {
4647
4673
  const n = e.slice();
4648
- return n[26] = t[r], n[28] = r, n;
4674
+ return n[25] = t[r], n[27] = r, n;
4649
4675
  }
4650
- function Ss(e) {
4651
- let t, r, n, i = _t(
4676
+ function Hs(e) {
4677
+ let t, r, n, i = vt(
4652
4678
  /*calendarCollections*/
4653
- e[5]
4679
+ e[6]
4654
4680
  ), s = [];
4655
4681
  for (let o = 0; o < i.length; o += 1)
4656
4682
  s[o] = kt(jt(e, i, o));
4657
4683
  let a = (
4658
4684
  /*calendarModalOpened*/
4659
- e[10] == !0 && Vt(e)
4685
+ e[11] == !0 && Vt(e)
4660
4686
  );
4661
4687
  return {
4662
4688
  c() {
4663
- t = $("div");
4689
+ t = R("div");
4664
4690
  for (let o = 0; o < s.length; o += 1)
4665
4691
  s[o].c();
4666
- r = Qr(), a && a.c(), W(t, "class", n = "CasinoCalendarItem " + /*mobileView*/
4667
- (e[9] ? "Mobile" : "") + " svelte-1bqenf9");
4692
+ r = Qr(), a && a.c(), V(t, "class", n = "CasinoCalendarItem " + /*mobileView*/
4693
+ (e[10] ? "Mobile" : "") + " svelte-61avp5");
4668
4694
  },
4669
4695
  m(o, l) {
4670
- X(o, t, l);
4696
+ W(o, t, l);
4671
4697
  for (let u = 0; u < s.length; u += 1)
4672
4698
  s[u] && s[u].m(t, null);
4673
- me(t, r), a && a.m(t, null);
4699
+ pe(t, r), a && a.m(t, null);
4674
4700
  },
4675
4701
  p(o, l) {
4676
- if (l & /*calendarCollections, lang, clientstyling, clientstylingurl, translationurl*/
4677
- 47) {
4678
- i = _t(
4702
+ if (l & /*calendarCollections, lang, clientstyling, clientstylingurl, mbsource, translationurl*/
4703
+ 95) {
4704
+ i = vt(
4679
4705
  /*calendarCollections*/
4680
- o[5]
4706
+ o[6]
4681
4707
  );
4682
4708
  let u;
4683
4709
  for (u = 0; u < i.length; u += 1) {
@@ -4689,49 +4715,49 @@ function Ss(e) {
4689
4715
  s.length = i.length;
4690
4716
  }
4691
4717
  /*calendarModalOpened*/
4692
- o[10] == !0 ? a ? a.p(o, l) : (a = Vt(o), a.c(), a.m(t, null)) : a && (a.d(1), a = null), l & /*mobileView*/
4693
- 512 && n !== (n = "CasinoCalendarItem " + /*mobileView*/
4694
- (o[9] ? "Mobile" : "") + " svelte-1bqenf9") && W(t, "class", n);
4718
+ o[11] == !0 ? a ? a.p(o, l) : (a = Vt(o), a.c(), a.m(t, null)) : a && (a.d(1), a = null), l & /*mobileView*/
4719
+ 1024 && n !== (n = "CasinoCalendarItem " + /*mobileView*/
4720
+ (o[10] ? "Mobile" : "") + " svelte-61avp5") && V(t, "class", n);
4695
4721
  },
4696
4722
  d(o) {
4697
- o && D(t), qr(s, o), a && a.d();
4723
+ o && $(t), zr(s, o), a && a.d();
4698
4724
  }
4699
4725
  };
4700
4726
  }
4701
- function Ts(e) {
4727
+ function Ps(e) {
4702
4728
  let t;
4703
4729
  return {
4704
4730
  c() {
4705
- t = $("div"), W(t, "class", "LoadingSpinner svelte-1bqenf9");
4731
+ t = R("div"), V(t, "class", "LoadingSpinner svelte-61avp5");
4706
4732
  },
4707
4733
  m(r, n) {
4708
- X(r, t, n);
4734
+ W(r, t, n);
4709
4735
  },
4710
- p: I,
4736
+ p: O,
4711
4737
  d(r) {
4712
- r && D(t);
4738
+ r && $(t);
4713
4739
  }
4714
4740
  };
4715
4741
  }
4716
- function Hs(e) {
4742
+ function Bs(e) {
4717
4743
  let t, r = (
4718
4744
  /*$_*/
4719
- e[11]("error") + ""
4745
+ e[12]("error") + ""
4720
4746
  ), n;
4721
4747
  return {
4722
4748
  c() {
4723
- t = $("p"), n = ut(r), W(t, "class", "SearchLoading");
4749
+ t = R("p"), n = at(r), V(t, "class", "SearchLoading svelte-61avp5");
4724
4750
  },
4725
4751
  m(i, s) {
4726
- X(i, t, s), me(t, n);
4752
+ W(i, t, s), pe(t, n);
4727
4753
  },
4728
4754
  p(i, s) {
4729
4755
  s & /*$_*/
4730
- 2048 && r !== (r = /*$_*/
4731
- i[11]("error") + "") && Yr(n, r);
4756
+ 4096 && r !== (r = /*$_*/
4757
+ i[12]("error") + "") && Jr(n, r);
4732
4758
  },
4733
4759
  d(i) {
4734
- i && D(t);
4760
+ i && $(t);
4735
4761
  }
4736
4762
  };
4737
4763
  }
@@ -4739,16 +4765,16 @@ function kt(e) {
4739
4765
  let t, r, n, i, s, a;
4740
4766
  return {
4741
4767
  c() {
4742
- t = $("casino-calendar-daily-item"), y(t, "dailybackground", r = /*dailyCalendarData*/
4743
- e[26].dailyBackground), y(t, "dailyicon", n = /*dailyCalendarData*/
4744
- e[26].dailyIcon), y(t, "dailyday", i = /*dailyCalendarData*/
4745
- e[26].dailyDay), y(t, "dailydescription", s = /*dailyCalendarData*/
4746
- e[26].dailyDescription), y(t, "dailybuttontitle", a = /*dailyCalendarData*/
4747
- e[26].dailyButtonTitle), y(
4768
+ t = R("casino-calendar-daily-item"), y(t, "dailybackground", r = /*dailyCalendarData*/
4769
+ e[25].dailyBackground), y(t, "dailyicon", n = /*dailyCalendarData*/
4770
+ e[25].dailyIcon), y(t, "dailyday", i = /*dailyCalendarData*/
4771
+ e[25].dailyDay), y(t, "dailydescription", s = /*dailyCalendarData*/
4772
+ e[25].dailyDescription), y(t, "dailybuttontitle", a = /*dailyCalendarData*/
4773
+ e[25].dailyButtonTitle), y(
4748
4774
  t,
4749
4775
  "index",
4750
4776
  /*index*/
4751
- e[28]
4777
+ e[27]
4752
4778
  ), y(
4753
4779
  t,
4754
4780
  "lang",
@@ -4764,28 +4790,33 @@ function kt(e) {
4764
4790
  "clientstylingurl",
4765
4791
  /*clientstylingurl*/
4766
4792
  e[2]
4793
+ ), y(
4794
+ t,
4795
+ "mbsource",
4796
+ /*mbsource*/
4797
+ e[4]
4767
4798
  ), y(
4768
4799
  t,
4769
4800
  "translationurl",
4770
4801
  /*translationurl*/
4771
4802
  e[3]
4772
- );
4803
+ ), y(t, "class", "svelte-61avp5");
4773
4804
  },
4774
4805
  m(o, l) {
4775
- X(o, t, l);
4806
+ W(o, t, l);
4776
4807
  },
4777
4808
  p(o, l) {
4778
4809
  l & /*calendarCollections*/
4779
- 32 && r !== (r = /*dailyCalendarData*/
4780
- o[26].dailyBackground) && y(t, "dailybackground", r), l & /*calendarCollections*/
4781
- 32 && n !== (n = /*dailyCalendarData*/
4782
- o[26].dailyIcon) && y(t, "dailyicon", n), l & /*calendarCollections*/
4783
- 32 && i !== (i = /*dailyCalendarData*/
4784
- o[26].dailyDay) && y(t, "dailyday", i), l & /*calendarCollections*/
4785
- 32 && s !== (s = /*dailyCalendarData*/
4786
- o[26].dailyDescription) && y(t, "dailydescription", s), l & /*calendarCollections*/
4787
- 32 && a !== (a = /*dailyCalendarData*/
4788
- o[26].dailyButtonTitle) && y(t, "dailybuttontitle", a), l & /*lang*/
4810
+ 64 && r !== (r = /*dailyCalendarData*/
4811
+ o[25].dailyBackground) && y(t, "dailybackground", r), l & /*calendarCollections*/
4812
+ 64 && n !== (n = /*dailyCalendarData*/
4813
+ o[25].dailyIcon) && y(t, "dailyicon", n), l & /*calendarCollections*/
4814
+ 64 && i !== (i = /*dailyCalendarData*/
4815
+ o[25].dailyDay) && y(t, "dailyday", i), l & /*calendarCollections*/
4816
+ 64 && s !== (s = /*dailyCalendarData*/
4817
+ o[25].dailyDescription) && y(t, "dailydescription", s), l & /*calendarCollections*/
4818
+ 64 && a !== (a = /*dailyCalendarData*/
4819
+ o[25].dailyButtonTitle) && y(t, "dailybuttontitle", a), l & /*lang*/
4789
4820
  1 && y(
4790
4821
  t,
4791
4822
  "lang",
@@ -4803,6 +4834,12 @@ function kt(e) {
4803
4834
  "clientstylingurl",
4804
4835
  /*clientstylingurl*/
4805
4836
  o[2]
4837
+ ), l & /*mbsource*/
4838
+ 16 && y(
4839
+ t,
4840
+ "mbsource",
4841
+ /*mbsource*/
4842
+ o[4]
4806
4843
  ), l & /*translationurl*/
4807
4844
  8 && y(
4808
4845
  t,
@@ -4812,7 +4849,7 @@ function kt(e) {
4812
4849
  );
4813
4850
  },
4814
4851
  d(o) {
4815
- o && D(t);
4852
+ o && $(t);
4816
4853
  }
4817
4854
  };
4818
4855
  }
@@ -4820,30 +4857,30 @@ function Vt(e) {
4820
4857
  let t, r, n, i, s, a, o, l;
4821
4858
  return {
4822
4859
  c() {
4823
- t = $("div"), r = $("casino-calendar-daily-details"), y(r, "dailybackground", n = /*calendarCollections*/
4824
- e[5][
4860
+ t = R("div"), r = R("casino-calendar-daily-details"), y(r, "dailybackground", n = /*calendarCollections*/
4861
+ e[6][
4825
4862
  /*selectedIndex*/
4826
- e[6]
4863
+ e[7]
4827
4864
  ].dailyBackground), y(r, "dailybuttontitle", i = /*calendarCollections*/
4828
- e[5][
4865
+ e[6][
4829
4866
  /*selectedIndex*/
4830
- e[6]
4867
+ e[7]
4831
4868
  ].dailyButtonTitle), y(r, "dailyday", s = /*calendarCollections*/
4832
- e[5][
4869
+ e[6][
4833
4870
  /*selectedIndex*/
4834
- e[6]
4871
+ e[7]
4835
4872
  ].dailyDay), y(r, "dailydescription", a = /*calendarCollections*/
4836
- e[5][
4873
+ e[6][
4837
4874
  /*selectedIndex*/
4838
- e[6]
4875
+ e[7]
4839
4876
  ].dailyDescription), y(r, "dailyicon", o = /*calendarCollections*/
4840
- e[5][
4877
+ e[6][
4841
4878
  /*selectedIndex*/
4842
- e[6]
4879
+ e[7]
4843
4880
  ].dailyIcon), y(r, "dailytitle", l = /*calendarCollections*/
4844
- e[5][
4881
+ e[6][
4845
4882
  /*selectedIndex*/
4846
- e[6]
4883
+ e[7]
4847
4884
  ].dailyTitle), y(
4848
4885
  r,
4849
4886
  "lang",
@@ -4859,47 +4896,52 @@ function Vt(e) {
4859
4896
  "clientstylingurl",
4860
4897
  /*clientstylingurl*/
4861
4898
  e[2]
4899
+ ), y(
4900
+ r,
4901
+ "mbsource",
4902
+ /*mbsource*/
4903
+ e[4]
4862
4904
  ), y(
4863
4905
  r,
4864
4906
  "translationurl",
4865
4907
  /*translationurl*/
4866
4908
  e[3]
4867
- ), W(t, "class", "CalendarDetailsWrapper svelte-1bqenf9");
4909
+ ), y(r, "class", "svelte-61avp5"), V(t, "class", "CalendarDetailsWrapper svelte-61avp5");
4868
4910
  },
4869
4911
  m(u, h) {
4870
- X(u, t, h), me(t, r);
4912
+ W(u, t, h), pe(t, r);
4871
4913
  },
4872
4914
  p(u, h) {
4873
4915
  h & /*calendarCollections, selectedIndex*/
4874
- 96 && n !== (n = /*calendarCollections*/
4875
- u[5][
4916
+ 192 && n !== (n = /*calendarCollections*/
4917
+ u[6][
4876
4918
  /*selectedIndex*/
4877
- u[6]
4919
+ u[7]
4878
4920
  ].dailyBackground) && y(r, "dailybackground", n), h & /*calendarCollections, selectedIndex*/
4879
- 96 && i !== (i = /*calendarCollections*/
4880
- u[5][
4921
+ 192 && i !== (i = /*calendarCollections*/
4922
+ u[6][
4881
4923
  /*selectedIndex*/
4882
- u[6]
4924
+ u[7]
4883
4925
  ].dailyButtonTitle) && y(r, "dailybuttontitle", i), h & /*calendarCollections, selectedIndex*/
4884
- 96 && s !== (s = /*calendarCollections*/
4885
- u[5][
4926
+ 192 && s !== (s = /*calendarCollections*/
4927
+ u[6][
4886
4928
  /*selectedIndex*/
4887
- u[6]
4929
+ u[7]
4888
4930
  ].dailyDay) && y(r, "dailyday", s), h & /*calendarCollections, selectedIndex*/
4889
- 96 && a !== (a = /*calendarCollections*/
4890
- u[5][
4931
+ 192 && a !== (a = /*calendarCollections*/
4932
+ u[6][
4891
4933
  /*selectedIndex*/
4892
- u[6]
4934
+ u[7]
4893
4935
  ].dailyDescription) && y(r, "dailydescription", a), h & /*calendarCollections, selectedIndex*/
4894
- 96 && o !== (o = /*calendarCollections*/
4895
- u[5][
4936
+ 192 && o !== (o = /*calendarCollections*/
4937
+ u[6][
4896
4938
  /*selectedIndex*/
4897
- u[6]
4939
+ u[7]
4898
4940
  ].dailyIcon) && y(r, "dailyicon", o), h & /*calendarCollections, selectedIndex*/
4899
- 96 && l !== (l = /*calendarCollections*/
4900
- u[5][
4941
+ 192 && l !== (l = /*calendarCollections*/
4942
+ u[6][
4901
4943
  /*selectedIndex*/
4902
- u[6]
4944
+ u[7]
4903
4945
  ].dailyTitle) && y(r, "dailytitle", l), h & /*lang*/
4904
4946
  1 && y(
4905
4947
  r,
@@ -4918,6 +4960,12 @@ function Vt(e) {
4918
4960
  "clientstylingurl",
4919
4961
  /*clientstylingurl*/
4920
4962
  u[2]
4963
+ ), h & /*mbsource*/
4964
+ 16 && y(
4965
+ r,
4966
+ "mbsource",
4967
+ /*mbsource*/
4968
+ u[4]
4921
4969
  ), h & /*translationurl*/
4922
4970
  8 && y(
4923
4971
  r,
@@ -4927,271 +4975,267 @@ function Vt(e) {
4927
4975
  );
4928
4976
  },
4929
4977
  d(u) {
4930
- u && D(t);
4978
+ u && $(t);
4931
4979
  }
4932
4980
  };
4933
4981
  }
4934
- function Ps(e) {
4982
+ function As(e) {
4935
4983
  let t;
4936
4984
  function r(s, a) {
4937
4985
  var o;
4938
4986
  if (
4939
4987
  /*hasErrors*/
4940
- s[8]
4941
- ) return Hs;
4988
+ s[9]
4989
+ ) return Bs;
4942
4990
  if (
4943
4991
  /*isLoading*/
4944
- s[7]
4945
- ) return Ts;
4992
+ s[8]
4993
+ ) return Ps;
4946
4994
  if (
4947
4995
  /*calendarCollections*/
4948
- (o = s[5]) != null && o.length
4949
- ) return Ss;
4996
+ (o = s[6]) != null && o.length
4997
+ ) return Hs;
4950
4998
  }
4951
4999
  let n = r(e), i = n && n(e);
4952
5000
  return {
4953
5001
  c() {
4954
- t = $("div"), i && i.c();
5002
+ t = R("div"), i && i.c(), V(t, "class", "svelte-61avp5");
4955
5003
  },
4956
5004
  m(s, a) {
4957
- X(s, t, a), i && i.m(t, null), e[15](t);
5005
+ W(s, t, a), i && i.m(t, null), e[16](t);
4958
5006
  },
4959
5007
  p(s, [a]) {
4960
5008
  n === (n = r(s)) && i ? i.p(s, a) : (i && i.d(1), i = n && n(s), i && (i.c(), i.m(t, null)));
4961
5009
  },
4962
- i: I,
4963
- o: I,
5010
+ i: O,
5011
+ o: O,
4964
5012
  d(s) {
4965
- s && D(t), i && i.d(), e[15](null);
5013
+ s && $(t), i && i.d(), e[16](null);
4966
5014
  }
4967
5015
  };
4968
5016
  }
4969
- function As(e, t, r) {
5017
+ function Os(e, t, r) {
4970
5018
  let n;
4971
- kr(e, vs, (b) => r(11, n = b));
4972
- let { cmsendpoint: i = "" } = t, { env: s = "" } = t, { userroles: a = "" } = t, { lang: o = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h } = t, c, f, p = 0, d = !0, m = !1, E = !1, S = window.navigator.userAgent, H = !1;
4973
- const T = () => {
4974
- xs(o);
5019
+ jr(e, vs, (b) => r(12, n = b));
5020
+ let { cmsendpoint: i = "" } = t, { env: s = "" } = t, { userroles: a = "" } = t, { lang: o = "en" } = t, { clientstyling: l = "" } = t, { clientstylingurl: u = "" } = t, { translationurl: h } = t, { mbsource: f } = t, c, p, d = 0, m = !0, E = !1, T = !1, H = window.navigator.userAgent, S = !1;
5021
+ const I = () => {
5022
+ Ss(o);
4975
5023
  };
4976
5024
  Object.keys(Ft).forEach((b) => {
4977
5025
  Gt(b, Ft[b]);
4978
5026
  });
4979
- const C = () => {
5027
+ const P = () => {
4980
5028
  let b = h;
4981
5029
  if (b)
4982
- return fetch(b).then((A) => A.json()).then((A) => {
4983
- Object.keys(A).forEach((R) => {
4984
- Gt(R, A[R]);
5030
+ return fetch(b).then((C) => C.json()).then((C) => {
5031
+ Object.keys(C).forEach((j) => {
5032
+ Gt(j, C[j]);
4985
5033
  });
4986
- }).catch((A) => {
4987
- console.log(A);
5034
+ }).catch((C) => {
5035
+ console.log(C);
4988
5036
  });
4989
- }, P = () => {
4990
- r(7, d = !0);
5037
+ }, N = () => {
5038
+ r(8, m = !0);
4991
5039
  let b = new URL(`${i}/${o}/daily-calendar`);
4992
5040
  b.searchParams.append("userRoles", a), b.searchParams.append("env", s);
4993
- let A = Es(S);
4994
- A && (A === "PC" ? b.searchParams.append("device", "dk") : A === "iPad" || A === "iPhone" ? b.searchParams.append("device", "ios") : b.searchParams.append("device", "mtWeb")), fetch(b.href).then((R) => R.json()).then((R) => {
4995
- r(5, f = R);
4996
- }).catch((R) => {
4997
- console.log(R), r(8, m = !0);
5041
+ let C = _s(H);
5042
+ C && (C === "PC" ? b.searchParams.append("device", "dk") : C === "iPad" || C === "iPhone" ? b.searchParams.append("device", "ios") : b.searchParams.append("device", "mtWeb")), fetch(b.href).then((j) => j.json()).then((j) => {
5043
+ r(6, p = j);
5044
+ }).catch((j) => {
5045
+ console.log(j), r(9, E = !0);
4998
5046
  }).finally(() => {
4999
- r(7, d = !1);
5047
+ r(8, m = !1);
5000
5048
  });
5001
- }, L = () => {
5002
- P();
5003
- }, x = (b) => {
5004
- var A;
5005
- b.data && b.data.type == "OpenCalendar" && (r(6, p = b.data.index), r(10, H = !0), window.postMessage(
5049
+ }, w = () => {
5050
+ N();
5051
+ }, L = (b) => {
5052
+ var C;
5053
+ b.data && b.data.type == "OpenCalendar" && (r(7, d = b.data.index), r(11, S = !0), window.postMessage(
5006
5054
  {
5007
5055
  type: "ShowModal",
5008
- selectedIndex: p,
5056
+ selectedIndex: d,
5009
5057
  identifier: "Calendar"
5010
5058
  },
5011
5059
  window.location.href
5012
5060
  ), window.postMessage({
5013
5061
  type: "DailyEventsData",
5014
- data: (A = f[p]) == null ? void 0 : A.dailyEvents
5015
- })), b.data && b.data.type == "ModalClosed" && r(10, H = !1);
5016
- }, N = () => {
5017
- let b = document.createElement("style");
5018
- b.innerHTML = l, c.appendChild(b);
5019
- }, M = () => {
5020
- let b = new URL(u), A = document.createElement("style");
5021
- fetch(b.href).then((R) => R.text()).then((R) => {
5022
- A.innerHTML = R, setTimeout(
5023
- () => {
5024
- c.appendChild(A);
5025
- },
5026
- 1
5027
- ), setTimeout(
5028
- () => {
5029
- },
5030
- 500
5031
- );
5032
- });
5062
+ data: (C = p[d]) == null ? void 0 : C.dailyEvents
5063
+ })), b.data && b.data.type == "ModalClosed" && r(11, S = !1);
5033
5064
  };
5034
- an(() => (window.addEventListener("message", x, !1), Lr(S) && r(9, E = !0), () => {
5035
- window.removeEventListener("message", x);
5065
+ on(() => (window.addEventListener("message", L, !1), Cr(H) && r(10, T = !0), () => {
5066
+ window.removeEventListener("message", L);
5036
5067
  }));
5037
- function q(b) {
5038
- Xe[b ? "unshift" : "push"](() => {
5039
- c = b, r(4, c);
5068
+ function M(b) {
5069
+ Ve[b ? "unshift" : "push"](() => {
5070
+ c = b, r(5, c);
5040
5071
  });
5041
5072
  }
5042
5073
  return e.$$set = (b) => {
5043
- "cmsendpoint" in b && r(12, i = b.cmsendpoint), "env" in b && r(13, s = b.env), "userroles" in b && r(14, a = b.userroles), "lang" in b && r(0, o = b.lang), "clientstyling" in b && r(1, l = b.clientstyling), "clientstylingurl" in b && r(2, u = b.clientstylingurl), "translationurl" in b && r(3, h = b.translationurl);
5074
+ "cmsendpoint" in b && r(13, i = b.cmsendpoint), "env" in b && r(14, s = b.env), "userroles" in b && r(15, a = b.userroles), "lang" in b && r(0, o = b.lang), "clientstyling" in b && r(1, l = b.clientstyling), "clientstylingurl" in b && r(2, u = b.clientstylingurl), "translationurl" in b && r(3, h = b.translationurl), "mbsource" in b && r(4, f = b.mbsource);
5044
5075
  }, e.$$.update = () => {
5045
5076
  e.$$.dirty & /*cmsendpoint, lang, env, userroles*/
5046
- 28673 && i && o && s && a && L(), e.$$.dirty & /*clientstyling, customStylingContainer*/
5047
- 18 && l && c && N(), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
5048
- 20 && u && c && M(), e.$$.dirty & /*lang*/
5049
- 1 && o && T(), e.$$.dirty & /*lang, translationurl*/
5050
- 9 && o && h && C();
5077
+ 57345 && i && o && s && a && w(), e.$$.dirty & /*clientstyling, customStylingContainer*/
5078
+ 34 && l && c && Es(c, l), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
5079
+ 36 && u && c && xs(c, u), e.$$.dirty & /*customStylingContainer, mbsource*/
5080
+ 48 && c && ws(c, `${f}.Style`), e.$$.dirty & /*lang*/
5081
+ 1 && o && I(), e.$$.dirty & /*lang, translationurl*/
5082
+ 9 && o && h && P();
5051
5083
  }, [
5052
5084
  o,
5053
5085
  l,
5054
5086
  u,
5055
5087
  h,
5056
- c,
5057
5088
  f,
5089
+ c,
5058
5090
  p,
5059
5091
  d,
5060
5092
  m,
5061
5093
  E,
5062
- H,
5094
+ T,
5095
+ S,
5063
5096
  n,
5064
5097
  i,
5065
5098
  s,
5066
5099
  a,
5067
- q
5100
+ M
5068
5101
  ];
5069
5102
  }
5070
- class Nr extends yn {
5103
+ class Lr extends bn {
5071
5104
  constructor(t) {
5072
- super(), mn(
5105
+ super(), pn(
5073
5106
  this,
5074
5107
  t,
5108
+ Os,
5075
5109
  As,
5076
- Ps,
5077
5110
  Wt,
5078
5111
  {
5079
- cmsendpoint: 12,
5080
- env: 13,
5081
- userroles: 14,
5112
+ cmsendpoint: 13,
5113
+ env: 14,
5114
+ userroles: 15,
5082
5115
  lang: 0,
5083
5116
  clientstyling: 1,
5084
5117
  clientstylingurl: 2,
5085
- translationurl: 3
5118
+ translationurl: 3,
5119
+ mbsource: 4
5086
5120
  },
5087
- ws
5121
+ Ts
5088
5122
  );
5089
5123
  }
5090
5124
  get cmsendpoint() {
5091
- return this.$$.ctx[12];
5125
+ return this.$$.ctx[13];
5092
5126
  }
5093
5127
  set cmsendpoint(t) {
5094
- this.$$set({ cmsendpoint: t }), U();
5128
+ this.$$set({ cmsendpoint: t }), D();
5095
5129
  }
5096
5130
  get env() {
5097
- return this.$$.ctx[13];
5131
+ return this.$$.ctx[14];
5098
5132
  }
5099
5133
  set env(t) {
5100
- this.$$set({ env: t }), U();
5134
+ this.$$set({ env: t }), D();
5101
5135
  }
5102
5136
  get userroles() {
5103
- return this.$$.ctx[14];
5137
+ return this.$$.ctx[15];
5104
5138
  }
5105
5139
  set userroles(t) {
5106
- this.$$set({ userroles: t }), U();
5140
+ this.$$set({ userroles: t }), D();
5107
5141
  }
5108
5142
  get lang() {
5109
5143
  return this.$$.ctx[0];
5110
5144
  }
5111
5145
  set lang(t) {
5112
- this.$$set({ lang: t }), U();
5146
+ this.$$set({ lang: t }), D();
5113
5147
  }
5114
5148
  get clientstyling() {
5115
5149
  return this.$$.ctx[1];
5116
5150
  }
5117
5151
  set clientstyling(t) {
5118
- this.$$set({ clientstyling: t }), U();
5152
+ this.$$set({ clientstyling: t }), D();
5119
5153
  }
5120
5154
  get clientstylingurl() {
5121
5155
  return this.$$.ctx[2];
5122
5156
  }
5123
5157
  set clientstylingurl(t) {
5124
- this.$$set({ clientstylingurl: t }), U();
5158
+ this.$$set({ clientstylingurl: t }), D();
5125
5159
  }
5126
5160
  get translationurl() {
5127
5161
  return this.$$.ctx[3];
5128
5162
  }
5129
5163
  set translationurl(t) {
5130
- this.$$set({ translationurl: t }), U();
5164
+ this.$$set({ translationurl: t }), D();
5165
+ }
5166
+ get mbsource() {
5167
+ return this.$$.ctx[4];
5168
+ }
5169
+ set mbsource(t) {
5170
+ this.$$set({ mbsource: t }), D();
5131
5171
  }
5132
5172
  }
5133
- bn(Nr, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
5134
- const Ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5173
+ mn(Lr, { cmsendpoint: {}, env: {}, userroles: {}, lang: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {}, mbsource: {} }, [], [], !0);
5174
+ const ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5135
5175
  __proto__: null,
5136
- default: Nr
5176
+ default: Lr
5137
5177
  }, Symbol.toStringTag, { value: "Module" }));
5138
5178
  export {
5139
- oe as $,
5179
+ se as $,
5140
5180
  bt as A,
5141
5181
  Qr as B,
5142
- Xe as C,
5143
- Os as D,
5182
+ Ve as C,
5183
+ Cs as D,
5144
5184
  Zr as E,
5145
- Rs as F,
5146
- Us as G,
5147
- js as H,
5148
- bn as I,
5149
- vs as J,
5150
- Es as K,
5151
- y as L,
5152
- Ms as M,
5153
- Vs as N,
5154
- Gs as O,
5155
- Ae as P,
5156
- V as Q,
5157
- $s as R,
5158
- yn as S,
5159
- be as T,
5160
- Ds as U,
5161
- ks as V,
5162
- Ys as W,
5163
- Fs as X,
5164
- Js as Y,
5165
- Qs as Z,
5166
- Zs as _,
5167
- Ar as a,
5168
- Gr as a0,
5169
- qs as a1,
5170
- pe as a2,
5171
- Ks as a3,
5172
- Wr as b,
5173
- tr as c,
5174
- D as d,
5175
- Ws as e,
5176
- U as f,
5177
- Xs as g,
5178
- X as h,
5179
- mn as i,
5180
- $ as j,
5181
- kr as k,
5182
- Lr as l,
5183
- Yr as m,
5184
- I as n,
5185
- an as o,
5186
- me as p,
5187
- ut as q,
5188
- W as r,
5185
+ Ds as F,
5186
+ Fs as G,
5187
+ Vs as H,
5188
+ Es as I,
5189
+ xs as J,
5190
+ ws as K,
5191
+ mn as L,
5192
+ vs as M,
5193
+ _s as N,
5194
+ y as O,
5195
+ $s as P,
5196
+ zs as Q,
5197
+ js as R,
5198
+ bn as S,
5199
+ Pe as T,
5200
+ X as U,
5201
+ Us as V,
5202
+ me as W,
5203
+ Gs as X,
5204
+ Xs as Y,
5205
+ to as Z,
5206
+ ks as _,
5207
+ Pr as a,
5208
+ eo as a0,
5209
+ Ks as a1,
5210
+ Ys as a2,
5211
+ Ws as a3,
5212
+ Ur as a4,
5213
+ Js as a5,
5214
+ de as a6,
5215
+ ro as a7,
5216
+ Xr as b,
5217
+ er as c,
5218
+ $ as d,
5219
+ Qs as e,
5220
+ D as f,
5221
+ Zs as g,
5222
+ W as h,
5223
+ pn as i,
5224
+ R as j,
5225
+ jr as k,
5226
+ Cr as l,
5227
+ Jr as m,
5228
+ O as n,
5229
+ on as o,
5230
+ pe as p,
5231
+ at as q,
5232
+ V as r,
5189
5233
  Wt as s,
5190
- zs as t,
5191
- Is as u,
5192
- _t as v,
5193
- qr as w,
5194
- Ls as x,
5195
- Ns as y,
5196
- Cs as z
5234
+ qs as t,
5235
+ Ls as u,
5236
+ vt as v,
5237
+ zr as w,
5238
+ Ms as x,
5239
+ Rs as y,
5240
+ Ns as z
5197
5241
  };