@streamlayer/react 1.23.1 → 1.24.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 (159) hide show
  1. package/lib/app/masters.d.ts +0 -1
  2. package/lib/cjs/Question.js +1 -1
  3. package/lib/cjs/advertisement.js +33 -53
  4. package/lib/cjs/analytics.js +1 -1
  5. package/lib/cjs/auth.js +1 -1
  6. package/lib/cjs/bet-pack.js +1 -1
  7. package/lib/cjs/feature.js +1 -1
  8. package/lib/cjs/hooks-n9ax4LRT.js +1 -0
  9. package/lib/cjs/index-ByUNFvMk.js +5 -0
  10. package/lib/cjs/index.js +1 -1
  11. package/lib/cjs/index10.js +1 -1
  12. package/lib/cjs/index11.js +1 -4
  13. package/lib/cjs/index12.js +1 -1
  14. package/lib/cjs/index13.js +1 -1
  15. package/lib/cjs/index14.js +4 -1
  16. package/lib/cjs/index15.js +1 -1
  17. package/lib/cjs/index16.js +2 -2
  18. package/lib/cjs/index2.js +1 -1
  19. package/lib/cjs/index4.js +3 -3
  20. package/lib/cjs/index5.js +1 -1
  21. package/lib/cjs/index6.js +1 -1
  22. package/lib/cjs/index7.js +1 -1
  23. package/lib/cjs/index8.js +1 -1
  24. package/lib/cjs/index9.js +7 -1
  25. package/lib/cjs/insight.js +1 -1
  26. package/lib/cjs/masters.js +1 -1
  27. package/lib/cjs/masters2.js +5 -10
  28. package/lib/cjs/notification.js +1 -1
  29. package/lib/cjs/pause-ad.js +1 -1
  30. package/lib/cjs/points.js +1 -1
  31. package/lib/cjs/polymarket.js +4 -9
  32. package/lib/cjs/sl-types.js +1 -15
  33. package/lib/cjs/storage.js +1 -1
  34. package/lib/cjs/theme.js +1 -17
  35. package/lib/cjs/useStreamLayerApp.js +1 -1
  36. package/lib/cjs/useStreamLayerApp2.js +15 -15
  37. package/lib/cjs/utils.js +8 -8
  38. package/lib/classic/app/masters.d.ts +0 -1
  39. package/lib/classic/cjs/Question.js +1 -1
  40. package/lib/classic/cjs/advertisement.js +33 -53
  41. package/lib/classic/cjs/analytics.js +1 -1
  42. package/lib/classic/cjs/auth.js +1 -1
  43. package/lib/classic/cjs/bet-pack.js +3 -3
  44. package/lib/classic/cjs/feature.js +1 -1
  45. package/lib/classic/cjs/hooks-n9ax4LRT.js +1 -0
  46. package/lib/classic/cjs/index-ByUNFvMk.js +5 -0
  47. package/lib/classic/cjs/index.js +1 -1
  48. package/lib/classic/cjs/index10.js +1 -1
  49. package/lib/classic/cjs/index11.js +1 -1
  50. package/lib/classic/cjs/index12.js +1 -1
  51. package/lib/classic/cjs/index13.js +3 -3
  52. package/lib/classic/cjs/index2.js +2 -2
  53. package/lib/classic/cjs/index3.js +1 -1
  54. package/lib/classic/cjs/index4.js +1 -1
  55. package/lib/classic/cjs/index5.js +1 -1
  56. package/lib/classic/cjs/index6.js +1 -1
  57. package/lib/classic/cjs/index7.js +7 -1
  58. package/lib/classic/cjs/index8.js +1 -1
  59. package/lib/classic/cjs/index9.js +1 -1
  60. package/lib/classic/cjs/insight.js +1 -1
  61. package/lib/classic/cjs/notification.js +1 -1
  62. package/lib/classic/cjs/notification2.js +1 -1
  63. package/lib/classic/cjs/pause-ad.js +1 -1
  64. package/lib/classic/cjs/points.js +1 -1
  65. package/lib/classic/cjs/polymarket.js +4 -9
  66. package/lib/classic/cjs/sl-types.js +1 -15
  67. package/lib/classic/cjs/useStreamLayerApp.js +1 -1
  68. package/lib/classic/cjs/useStreamLayerApp2.js +15 -15
  69. package/lib/classic/cjs/utils.js +8 -8
  70. package/lib/classic/es/Question.js +216 -220
  71. package/lib/classic/es/advertisement.js +14665 -15122
  72. package/lib/classic/es/analytics.js +9 -9
  73. package/lib/classic/es/auth.js +1 -1
  74. package/lib/classic/es/bet-pack.js +637 -650
  75. package/lib/classic/es/feature.js +29 -33
  76. package/lib/classic/es/hooks-n9ax4LRT.js +97 -0
  77. package/lib/classic/es/index-ByUNFvMk.js +3775 -0
  78. package/lib/classic/es/index.js +13 -16
  79. package/lib/classic/es/index10.js +2587 -82
  80. package/lib/classic/es/index11.js +306 -2344
  81. package/lib/classic/es/index12.js +103 -101
  82. package/lib/classic/es/index13.js +449 -464
  83. package/lib/classic/es/index2.js +1244 -1268
  84. package/lib/classic/es/index3.js +10 -10
  85. package/lib/classic/es/index4.js +4 -283
  86. package/lib/classic/es/index5.js +4 -5
  87. package/lib/classic/es/index6.js +285 -5
  88. package/lib/classic/es/index7.js +179 -5
  89. package/lib/classic/es/index8.js +5 -9
  90. package/lib/classic/es/index9.js +7 -315
  91. package/lib/classic/es/insight.js +39 -41
  92. package/lib/classic/es/notification.js +3 -3
  93. package/lib/classic/es/notification2.js +513 -528
  94. package/lib/classic/es/pause-ad.js +116 -116
  95. package/lib/classic/es/points.js +33 -34
  96. package/lib/classic/es/polymarket.js +1049 -1102
  97. package/lib/classic/es/sl-types.js +115 -217
  98. package/lib/classic/es/useStreamLayerApp.js +1 -1
  99. package/lib/classic/es/useStreamLayerApp2.js +6485 -6405
  100. package/lib/classic/es/utils.js +6 -6
  101. package/lib/classic/source.css +110 -0
  102. package/lib/dist/cjs/index-ByUNFvMk.js +5 -0
  103. package/lib/dist/cjs/index.js +1 -1
  104. package/lib/dist/cjs/masters.js +34 -42
  105. package/lib/dist/es/index-ByUNFvMk.js +3775 -0
  106. package/lib/dist/es/index.js +7 -11
  107. package/lib/dist/es/masters.js +13506 -12760
  108. package/lib/dist/index.d.ts +5 -5
  109. package/lib/dist/source.css +64 -0
  110. package/lib/es/Question.js +99 -101
  111. package/lib/es/advertisement.js +14665 -15122
  112. package/lib/es/analytics.js +29 -29
  113. package/lib/es/auth.js +1 -1
  114. package/lib/es/bet-pack.js +12 -11
  115. package/lib/es/feature.js +29 -33
  116. package/lib/es/hooks-n9ax4LRT.js +97 -0
  117. package/lib/es/index-ByUNFvMk.js +3775 -0
  118. package/lib/es/index.js +13 -16
  119. package/lib/es/index10.js +7 -263
  120. package/lib/es/index11.js +172 -822
  121. package/lib/es/index12.js +2587 -178
  122. package/lib/es/index13.js +248 -302
  123. package/lib/es/index14.js +815 -82
  124. package/lib/es/index15.js +306 -2344
  125. package/lib/es/index16.js +451 -454
  126. package/lib/es/index2.js +737 -757
  127. package/lib/es/index4.js +626 -639
  128. package/lib/es/index5.js +10 -10
  129. package/lib/es/index6.js +5 -285
  130. package/lib/es/index7.js +7 -5
  131. package/lib/es/index8.js +283 -5
  132. package/lib/es/index9.js +179 -8
  133. package/lib/es/insight.js +39 -41
  134. package/lib/es/masters.js +4 -5
  135. package/lib/es/masters2.js +408 -441
  136. package/lib/es/notification.js +469 -484
  137. package/lib/es/pause-ad.js +116 -116
  138. package/lib/es/points.js +42 -43
  139. package/lib/es/polymarket.js +1049 -1102
  140. package/lib/es/sl-types.js +114 -235
  141. package/lib/es/storage.js +22 -22
  142. package/lib/es/theme.js +3 -44
  143. package/lib/es/useStreamLayerApp.js +1 -1
  144. package/lib/es/useStreamLayerApp2.js +6485 -6405
  145. package/lib/es/utils.js +6 -6
  146. package/lib/source.css +120 -0
  147. package/lib/style.css +1 -1
  148. package/package.json +15 -15
  149. package/lib/cjs/hooks-WfHlJH12.js +0 -1
  150. package/lib/cjs/index-eShKGO10.js +0 -5
  151. package/lib/classic/cjs/hooks-WfHlJH12.js +0 -1
  152. package/lib/classic/cjs/index-eShKGO10.js +0 -5
  153. package/lib/classic/es/hooks-WfHlJH12.js +0 -98
  154. package/lib/classic/es/index-eShKGO10.js +0 -3757
  155. package/lib/dist/cjs/index-eShKGO10.js +0 -5
  156. package/lib/dist/es/index-eShKGO10.js +0 -3757
  157. package/lib/dist/style.css +0 -1
  158. package/lib/es/hooks-WfHlJH12.js +0 -98
  159. package/lib/es/index-eShKGO10.js +0 -3757
@@ -1,14 +1,14 @@
1
1
  import { jsx as P, jsxs as F } from "react/jsx-runtime";
2
- import { e as vt } from "./index5.js";
2
+ import { e as gt } from "./index4.js";
3
+ import $, { forwardRef as Ae, useRef as D, useState as W, useEffect as Y, useLayoutEffect as vt, createContext as He, useMemo as Re, useCallback as qe, memo as wt } from "react";
3
4
  import { s as _, u as Se, c as Ee } from "./sl-types.js";
4
- import $, { forwardRef as Ae, useState as W, useRef as D, useEffect as Y, useLayoutEffect as gt, createContext as He, useMemo as Re, useCallback as qe, memo as wt } from "react";
5
- import bt from "lodash.throttle";
6
- import { B as te } from "./index4.js";
7
- import { d as yt } from "./index10.js";
8
- import { e as St } from "./index13.js";
9
- import { d as Et, e as xt, S as We } from "./useStreamLayerApp2.js";
10
- import { c as Tt } from "./feature.js";
11
- import { B as Ct } from "./hooks-WfHlJH12.js";
5
+ import yt from "lodash.throttle";
6
+ import { B as te } from "./index6.js";
7
+ import { d as bt } from "./index7.js";
8
+ import { Q as St } from "./index13.js";
9
+ import { d as Et, e as Tt, S as We } from "./useStreamLayerApp2.js";
10
+ import { c as xt } from "./feature.js";
11
+ import { Y as Ct } from "./hooks-n9ax4LRT.js";
12
12
  function _e(t) {
13
13
  return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
14
14
  }
@@ -156,7 +156,7 @@ function kt(t) {
156
156
  }
157
157
  });
158
158
  }
159
- function xe(t, e) {
159
+ function Te(t, e) {
160
160
  return e === void 0 && (e = 0), setTimeout(t, e);
161
161
  }
162
162
  function le() {
@@ -207,23 +207,23 @@ function Xe(t) {
207
207
  let l = null, a;
208
208
  const o = e.params.speed;
209
209
  e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
210
- const c = s > i ? "next" : "prev", d = (f, v) => c === "next" && f >= v || c === "prev" && f <= v, u = () => {
210
+ const c = s > i ? "next" : "prev", d = (h, g) => c === "next" && h >= g || c === "prev" && h <= g, p = () => {
211
211
  a = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = a);
212
- const f = Math.max(Math.min((a - l) / o, 1), 0), v = 0.5 - Math.cos(f * Math.PI) / 2;
213
- let h = i + v * (s - i);
214
- if (d(h, s) && (h = s), e.wrapperEl.scrollTo({
215
- [r]: h
216
- }), d(h, s)) {
212
+ const h = Math.max(Math.min((a - l) / o, 1), 0), g = 0.5 - Math.cos(h * Math.PI) / 2;
213
+ let m = i + g * (s - i);
214
+ if (d(m, s) && (m = s), e.wrapperEl.scrollTo({
215
+ [r]: m
216
+ }), d(m, s)) {
217
217
  e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
218
218
  e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
219
- [r]: h
219
+ [r]: m
220
220
  });
221
221
  }), n.cancelAnimationFrame(e.cssModeFrameID);
222
222
  return;
223
223
  }
224
- e.cssModeFrameID = n.requestAnimationFrame(u);
224
+ e.cssModeFrameID = n.requestAnimationFrame(p);
225
225
  };
226
- u();
226
+ p();
227
227
  }
228
228
  function H(t, e) {
229
229
  e === void 0 && (e = "");
@@ -290,14 +290,14 @@ function Ue(t, e) {
290
290
  e ? r.matches(e) && s.push(r) : s.push(r), r = r.parentElement;
291
291
  return s;
292
292
  }
293
- function Te(t, e, s) {
293
+ function xe(t, e, s) {
294
294
  const r = B();
295
295
  return t[e === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-right" : "margin-top")) + parseFloat(r.getComputedStyle(t, null).getPropertyValue(e === "width" ? "margin-left" : "margin-bottom"));
296
296
  }
297
297
  function R(t) {
298
298
  return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
299
299
  }
300
- let fe;
300
+ let me;
301
301
  function Gt() {
302
302
  const t = B(), e = K();
303
303
  return {
@@ -306,7 +306,7 @@ function Gt() {
306
306
  };
307
307
  }
308
308
  function Qe() {
309
- return fe || (fe = Gt()), fe;
309
+ return me || (me = Gt()), me;
310
310
  }
311
311
  let he;
312
312
  function Bt(t) {
@@ -318,15 +318,15 @@ function Bt(t) {
318
318
  android: !1
319
319
  }, a = r.screen.width, o = r.screen.height, c = i.match(/(Android);?[\s\/]+([\d.]+)?/);
320
320
  let d = i.match(/(iPad).*OS\s([\d_]+)/);
321
- const u = i.match(/(iPod)(.*OS\s([\d_]+))?/), f = !d && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/), v = n === "Win32";
322
- let h = n === "MacIntel";
323
- const b = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
324
- return !d && h && s.touch && b.indexOf(`${a}x${o}`) >= 0 && (d = i.match(/(Version)\/([\d.]+)/), d || (d = [0, 1, "13_0_0"]), h = !1), c && !v && (l.os = "android", l.android = !0), (d || f || u) && (l.os = "ios", l.ios = !0), l;
321
+ const p = i.match(/(iPod)(.*OS\s([\d_]+))?/), h = !d && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/), g = n === "Win32";
322
+ let m = n === "MacIntel";
323
+ const T = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
324
+ return !d && m && s.touch && T.indexOf(`${a}x${o}`) >= 0 && (d = i.match(/(Version)\/([\d.]+)/), d || (d = [0, 1, "13_0_0"]), m = !1), c && !g && (l.os = "android", l.android = !0), (d || h || p) && (l.os = "ios", l.ios = !0), l;
325
325
  }
326
326
  function Ke(t) {
327
327
  return t === void 0 && (t = {}), he || (he = Bt(t)), he;
328
328
  }
329
- let ve;
329
+ let ge;
330
330
  function Nt() {
331
331
  const t = B(), e = Ke();
332
332
  let s = !1;
@@ -350,7 +350,7 @@ function Nt() {
350
350
  };
351
351
  }
352
352
  function Je() {
353
- return ve || (ve = Nt()), ve;
353
+ return ge || (ge = Nt()), ge;
354
354
  }
355
355
  function Dt(t) {
356
356
  let {
@@ -363,21 +363,21 @@ function Dt(t) {
363
363
  const a = () => {
364
364
  !e || e.destroyed || !e.initialized || (r("beforeResize"), r("resize"));
365
365
  }, o = () => {
366
- !e || e.destroyed || !e.initialized || (i = new ResizeObserver((u) => {
366
+ !e || e.destroyed || !e.initialized || (i = new ResizeObserver((p) => {
367
367
  l = n.requestAnimationFrame(() => {
368
368
  const {
369
- width: f,
370
- height: v
369
+ width: h,
370
+ height: g
371
371
  } = e;
372
- let h = f, b = v;
373
- u.forEach((M) => {
372
+ let m = h, T = g;
373
+ p.forEach((M) => {
374
374
  let {
375
375
  contentBoxSize: w,
376
- contentRect: p,
377
- target: m
376
+ contentRect: u,
377
+ target: f
378
378
  } = M;
379
- m && m !== e.el || (h = p ? p.width : (w[0] || w).inlineSize, b = p ? p.height : (w[0] || w).blockSize);
380
- }), (h !== f || b !== v) && a();
379
+ f && f !== e.el || (m = u ? u.width : (w[0] || w).inlineSize, T = u ? u.height : (w[0] || w).blockSize);
380
+ }), (m !== h || T !== g) && a();
381
381
  });
382
382
  }), i.observe(e.el));
383
383
  }, c = () => {
@@ -402,30 +402,30 @@ function Ft(t) {
402
402
  on: r,
403
403
  emit: n
404
404
  } = t;
405
- const i = [], l = B(), a = function(d, u) {
406
- u === void 0 && (u = {});
407
- const f = l.MutationObserver || l.WebkitMutationObserver, v = new f((h) => {
405
+ const i = [], l = B(), a = function(d, p) {
406
+ p === void 0 && (p = {});
407
+ const h = l.MutationObserver || l.WebkitMutationObserver, g = new h((m) => {
408
408
  if (e.__preventObserver__) return;
409
- if (h.length === 1) {
410
- n("observerUpdate", h[0]);
409
+ if (m.length === 1) {
410
+ n("observerUpdate", m[0]);
411
411
  return;
412
412
  }
413
- const b = function() {
414
- n("observerUpdate", h[0]);
413
+ const T = function() {
414
+ n("observerUpdate", m[0]);
415
415
  };
416
- l.requestAnimationFrame ? l.requestAnimationFrame(b) : l.setTimeout(b, 0);
416
+ l.requestAnimationFrame ? l.requestAnimationFrame(T) : l.setTimeout(T, 0);
417
417
  });
418
- v.observe(d, {
419
- attributes: typeof u.attributes > "u" ? !0 : u.attributes,
420
- childList: e.isElement || (typeof u.childList > "u" ? !0 : u).childList,
421
- characterData: typeof u.characterData > "u" ? !0 : u.characterData
422
- }), i.push(v);
418
+ g.observe(d, {
419
+ attributes: typeof p.attributes > "u" ? !0 : p.attributes,
420
+ childList: e.isElement || (typeof p.childList > "u" ? !0 : p).childList,
421
+ characterData: typeof p.characterData > "u" ? !0 : p.characterData
422
+ }), i.push(g);
423
423
  }, o = () => {
424
424
  if (e.params.observer) {
425
425
  if (e.params.observeParents) {
426
426
  const d = Ue(e.hostEl);
427
- for (let u = 0; u < d.length; u += 1)
428
- a(d[u]);
427
+ for (let p = 0; p < d.length; p += 1)
428
+ a(d[p]);
429
429
  }
430
430
  a(e.hostEl, {
431
431
  childList: e.params.observeSlideChildren
@@ -511,8 +511,8 @@ function jt() {
511
511
  }
512
512
  function Ht() {
513
513
  const t = this;
514
- function e(E, x) {
515
- return parseFloat(E.getPropertyValue(t.getDirectionLabel(x)) || 0);
514
+ function e(S, E) {
515
+ return parseFloat(S.getPropertyValue(t.getDirectionLabel(E)) || 0);
516
516
  }
517
517
  const s = t.params, {
518
518
  wrapperEl: r,
@@ -520,111 +520,111 @@ function Ht() {
520
520
  size: i,
521
521
  rtlTranslate: l,
522
522
  wrongRTL: a
523
- } = t, o = t.virtual && s.virtual.enabled, c = o ? t.virtual.slides.length : t.slides.length, d = H(n, `.${t.params.slideClass}, swiper-slide`), u = o ? t.virtual.slides.length : d.length;
524
- let f = [];
525
- const v = [], h = [];
526
- let b = s.slidesOffsetBefore;
527
- typeof b == "function" && (b = s.slidesOffsetBefore.call(t));
523
+ } = t, o = t.virtual && s.virtual.enabled, c = o ? t.virtual.slides.length : t.slides.length, d = H(n, `.${t.params.slideClass}, swiper-slide`), p = o ? t.virtual.slides.length : d.length;
524
+ let h = [];
525
+ const g = [], m = [];
526
+ let T = s.slidesOffsetBefore;
527
+ typeof T == "function" && (T = s.slidesOffsetBefore.call(t));
528
528
  let M = s.slidesOffsetAfter;
529
529
  typeof M == "function" && (M = s.slidesOffsetAfter.call(t));
530
- const w = t.snapGrid.length, p = t.slidesGrid.length;
531
- let m = s.spaceBetween, g = -b, y = 0, T = 0;
530
+ const w = t.snapGrid.length, u = t.slidesGrid.length;
531
+ let f = s.spaceBetween, v = -T, y = 0, C = 0;
532
532
  if (typeof i > "u")
533
533
  return;
534
- typeof m == "string" && m.indexOf("%") >= 0 ? m = parseFloat(m.replace("%", "")) / 100 * i : typeof m == "string" && (m = parseFloat(m)), t.virtualSize = -m, d.forEach((E) => {
535
- l ? E.style.marginLeft = "" : E.style.marginRight = "", E.style.marginBottom = "", E.style.marginTop = "";
534
+ typeof f == "string" && f.indexOf("%") >= 0 ? f = parseFloat(f.replace("%", "")) / 100 * i : typeof f == "string" && (f = parseFloat(f)), t.virtualSize = -f, d.forEach((S) => {
535
+ l ? S.style.marginLeft = "" : S.style.marginRight = "", S.style.marginBottom = "", S.style.marginTop = "";
536
536
  }), s.centeredSlides && s.cssMode && (re(r, "--swiper-centered-offset-before", ""), re(r, "--swiper-centered-offset-after", ""));
537
537
  const A = s.grid && s.grid.rows > 1 && t.grid;
538
538
  A ? t.grid.initSlides(d) : t.grid && t.grid.unsetSlides();
539
539
  let I;
540
- const S = s.slidesPerView === "auto" && s.breakpoints && Object.keys(s.breakpoints).filter((E) => typeof s.breakpoints[E].slidesPerView < "u").length > 0;
541
- for (let E = 0; E < u; E += 1) {
540
+ const b = s.slidesPerView === "auto" && s.breakpoints && Object.keys(s.breakpoints).filter((S) => typeof s.breakpoints[S].slidesPerView < "u").length > 0;
541
+ for (let S = 0; S < p; S += 1) {
542
542
  I = 0;
543
- let x;
544
- if (d[E] && (x = d[E]), A && t.grid.updateSlide(E, x, d), !(d[E] && X(x, "display") === "none")) {
543
+ let E;
544
+ if (d[S] && (E = d[S]), A && t.grid.updateSlide(S, E, d), !(d[S] && X(E, "display") === "none")) {
545
545
  if (s.slidesPerView === "auto") {
546
- S && (d[E].style[t.getDirectionLabel("width")] = "");
547
- const k = getComputedStyle(x), L = x.style.transform, O = x.style.webkitTransform;
548
- if (L && (x.style.transform = "none"), O && (x.style.webkitTransform = "none"), s.roundLengths)
549
- I = t.isHorizontal() ? Te(x, "width") : Te(x, "height");
546
+ b && (d[S].style[t.getDirectionLabel("width")] = "");
547
+ const k = getComputedStyle(E), L = E.style.transform, O = E.style.webkitTransform;
548
+ if (L && (E.style.transform = "none"), O && (E.style.webkitTransform = "none"), s.roundLengths)
549
+ I = t.isHorizontal() ? xe(E, "width") : xe(E, "height");
550
550
  else {
551
- const C = e(k, "width"), z = e(k, "padding-left"), U = e(k, "padding-right"), V = e(k, "margin-left"), G = e(k, "margin-right"), j = k.getPropertyValue("box-sizing");
551
+ const x = e(k, "width"), z = e(k, "padding-left"), U = e(k, "padding-right"), V = e(k, "margin-left"), G = e(k, "margin-right"), j = k.getPropertyValue("box-sizing");
552
552
  if (j && j === "border-box")
553
- I = C + V + G;
553
+ I = x + V + G;
554
554
  else {
555
555
  const {
556
- clientWidth: ft,
556
+ clientWidth: mt,
557
557
  offsetWidth: ht
558
- } = x;
559
- I = C + z + U + V + G + (ht - ft);
558
+ } = E;
559
+ I = x + z + U + V + G + (ht - mt);
560
560
  }
561
561
  }
562
- L && (x.style.transform = L), O && (x.style.webkitTransform = O), s.roundLengths && (I = Math.floor(I));
562
+ L && (E.style.transform = L), O && (E.style.webkitTransform = O), s.roundLengths && (I = Math.floor(I));
563
563
  } else
564
- I = (i - (s.slidesPerView - 1) * m) / s.slidesPerView, s.roundLengths && (I = Math.floor(I)), d[E] && (d[E].style[t.getDirectionLabel("width")] = `${I}px`);
565
- d[E] && (d[E].swiperSlideSize = I), h.push(I), s.centeredSlides ? (g = g + I / 2 + y / 2 + m, y === 0 && E !== 0 && (g = g - i / 2 - m), E === 0 && (g = g - i / 2 - m), Math.abs(g) < 1 / 1e3 && (g = 0), s.roundLengths && (g = Math.floor(g)), T % s.slidesPerGroup === 0 && f.push(g), v.push(g)) : (s.roundLengths && (g = Math.floor(g)), (T - Math.min(t.params.slidesPerGroupSkip, T)) % t.params.slidesPerGroup === 0 && f.push(g), v.push(g), g = g + I + m), t.virtualSize += I + m, y = I, T += 1;
564
+ I = (i - (s.slidesPerView - 1) * f) / s.slidesPerView, s.roundLengths && (I = Math.floor(I)), d[S] && (d[S].style[t.getDirectionLabel("width")] = `${I}px`);
565
+ d[S] && (d[S].swiperSlideSize = I), m.push(I), s.centeredSlides ? (v = v + I / 2 + y / 2 + f, y === 0 && S !== 0 && (v = v - i / 2 - f), S === 0 && (v = v - i / 2 - f), Math.abs(v) < 1 / 1e3 && (v = 0), s.roundLengths && (v = Math.floor(v)), C % s.slidesPerGroup === 0 && h.push(v), g.push(v)) : (s.roundLengths && (v = Math.floor(v)), (C - Math.min(t.params.slidesPerGroupSkip, C)) % t.params.slidesPerGroup === 0 && h.push(v), g.push(v), v = v + I + f), t.virtualSize += I + f, y = I, C += 1;
566
566
  }
567
567
  }
568
- if (t.virtualSize = Math.max(t.virtualSize, i) + M, l && a && (s.effect === "slide" || s.effect === "coverflow") && (r.style.width = `${t.virtualSize + m}px`), s.setWrapperSize && (r.style[t.getDirectionLabel("width")] = `${t.virtualSize + m}px`), A && t.grid.updateWrapperSize(I, f), !s.centeredSlides) {
569
- const E = [];
570
- for (let x = 0; x < f.length; x += 1) {
571
- let k = f[x];
572
- s.roundLengths && (k = Math.floor(k)), f[x] <= t.virtualSize - i && E.push(k);
568
+ if (t.virtualSize = Math.max(t.virtualSize, i) + M, l && a && (s.effect === "slide" || s.effect === "coverflow") && (r.style.width = `${t.virtualSize + f}px`), s.setWrapperSize && (r.style[t.getDirectionLabel("width")] = `${t.virtualSize + f}px`), A && t.grid.updateWrapperSize(I, h), !s.centeredSlides) {
569
+ const S = [];
570
+ for (let E = 0; E < h.length; E += 1) {
571
+ let k = h[E];
572
+ s.roundLengths && (k = Math.floor(k)), h[E] <= t.virtualSize - i && S.push(k);
573
573
  }
574
- f = E, Math.floor(t.virtualSize - i) - Math.floor(f[f.length - 1]) > 1 && f.push(t.virtualSize - i);
574
+ h = S, Math.floor(t.virtualSize - i) - Math.floor(h[h.length - 1]) > 1 && h.push(t.virtualSize - i);
575
575
  }
576
576
  if (o && s.loop) {
577
- const E = h[0] + m;
577
+ const S = m[0] + f;
578
578
  if (s.slidesPerGroup > 1) {
579
- const x = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / s.slidesPerGroup), k = E * s.slidesPerGroup;
580
- for (let L = 0; L < x; L += 1)
581
- f.push(f[f.length - 1] + k);
579
+ const E = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / s.slidesPerGroup), k = S * s.slidesPerGroup;
580
+ for (let L = 0; L < E; L += 1)
581
+ h.push(h[h.length - 1] + k);
582
582
  }
583
- for (let x = 0; x < t.virtual.slidesBefore + t.virtual.slidesAfter; x += 1)
584
- s.slidesPerGroup === 1 && f.push(f[f.length - 1] + E), v.push(v[v.length - 1] + E), t.virtualSize += E;
583
+ for (let E = 0; E < t.virtual.slidesBefore + t.virtual.slidesAfter; E += 1)
584
+ s.slidesPerGroup === 1 && h.push(h[h.length - 1] + S), g.push(g[g.length - 1] + S), t.virtualSize += S;
585
585
  }
586
- if (f.length === 0 && (f = [0]), m !== 0) {
587
- const E = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
588
- d.filter((x, k) => !s.cssMode || s.loop ? !0 : k !== d.length - 1).forEach((x) => {
589
- x.style[E] = `${m}px`;
586
+ if (h.length === 0 && (h = [0]), f !== 0) {
587
+ const S = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
588
+ d.filter((E, k) => !s.cssMode || s.loop ? !0 : k !== d.length - 1).forEach((E) => {
589
+ E.style[S] = `${f}px`;
590
590
  });
591
591
  }
592
592
  if (s.centeredSlides && s.centeredSlidesBounds) {
593
- let E = 0;
594
- h.forEach((k) => {
595
- E += k + (m || 0);
596
- }), E -= m;
597
- const x = E > i ? E - i : 0;
598
- f = f.map((k) => k <= 0 ? -b : k > x ? x + M : k);
593
+ let S = 0;
594
+ m.forEach((k) => {
595
+ S += k + (f || 0);
596
+ }), S -= f;
597
+ const E = S > i ? S - i : 0;
598
+ h = h.map((k) => k <= 0 ? -T : k > E ? E + M : k);
599
599
  }
600
600
  if (s.centerInsufficientSlides) {
601
- let E = 0;
602
- h.forEach((k) => {
603
- E += k + (m || 0);
604
- }), E -= m;
605
- const x = (s.slidesOffsetBefore || 0) + (s.slidesOffsetAfter || 0);
606
- if (E + x < i) {
607
- const k = (i - E - x) / 2;
608
- f.forEach((L, O) => {
609
- f[O] = L - k;
610
- }), v.forEach((L, O) => {
611
- v[O] = L + k;
601
+ let S = 0;
602
+ m.forEach((k) => {
603
+ S += k + (f || 0);
604
+ }), S -= f;
605
+ const E = (s.slidesOffsetBefore || 0) + (s.slidesOffsetAfter || 0);
606
+ if (S + E < i) {
607
+ const k = (i - S - E) / 2;
608
+ h.forEach((L, O) => {
609
+ h[O] = L - k;
610
+ }), g.forEach((L, O) => {
611
+ g[O] = L + k;
612
612
  });
613
613
  }
614
614
  }
615
615
  if (Object.assign(t, {
616
616
  slides: d,
617
- snapGrid: f,
618
- slidesGrid: v,
619
- slidesSizesGrid: h
617
+ snapGrid: h,
618
+ slidesGrid: g,
619
+ slidesSizesGrid: m
620
620
  }), s.centeredSlides && s.cssMode && !s.centeredSlidesBounds) {
621
- re(r, "--swiper-centered-offset-before", `${-f[0]}px`), re(r, "--swiper-centered-offset-after", `${t.size / 2 - h[h.length - 1] / 2}px`);
622
- const E = -t.snapGrid[0], x = -t.slidesGrid[0];
623
- t.snapGrid = t.snapGrid.map((k) => k + E), t.slidesGrid = t.slidesGrid.map((k) => k + x);
621
+ re(r, "--swiper-centered-offset-before", `${-h[0]}px`), re(r, "--swiper-centered-offset-after", `${t.size / 2 - m[m.length - 1] / 2}px`);
622
+ const S = -t.snapGrid[0], E = -t.slidesGrid[0];
623
+ t.snapGrid = t.snapGrid.map((k) => k + S), t.slidesGrid = t.slidesGrid.map((k) => k + E);
624
624
  }
625
- if (u !== c && t.emit("slidesLengthChange"), f.length !== w && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), v.length !== p && t.emit("slidesGridLengthChange"), s.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !s.cssMode && (s.effect === "slide" || s.effect === "fade")) {
626
- const E = `${s.containerModifierClass}backface-hidden`, x = t.el.classList.contains(E);
627
- u <= s.maxBackfaceHiddenSlides ? x || t.el.classList.add(E) : x && t.el.classList.remove(E);
625
+ if (p !== c && t.emit("slidesLengthChange"), h.length !== w && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), g.length !== u && t.emit("slidesGridLengthChange"), s.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !o && !s.cssMode && (s.effect === "slide" || s.effect === "fade")) {
626
+ const S = `${s.containerModifierClass}backface-hidden`, E = t.el.classList.contains(S);
627
+ p <= s.maxBackfaceHiddenSlides ? E || t.el.classList.add(S) : E && t.el.classList.remove(S);
628
628
  }
629
629
  }
630
630
  function Rt(t) {
@@ -677,8 +677,8 @@ function Wt(t) {
677
677
  const c = r[o];
678
678
  let d = c.swiperSlideOffset;
679
679
  s.cssMode && s.centeredSlides && (d -= r[0].swiperSlideOffset);
680
- const u = (l + (s.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), f = (l - i[0] + (s.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), v = -(l - d), h = v + e.slidesSizesGrid[o], b = v >= 0 && v <= e.size - e.slidesSizesGrid[o], M = v >= 0 && v < e.size - 1 || h > 1 && h <= e.size || v <= 0 && h >= e.size;
681
- M && (e.visibleSlides.push(c), e.visibleSlidesIndexes.push(o)), $e(c, M, s.slideVisibleClass), $e(c, b, s.slideFullyVisibleClass), c.progress = n ? -u : u, c.originalProgress = n ? -f : f;
680
+ const p = (l + (s.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), h = (l - i[0] + (s.centeredSlides ? e.minTranslate() : 0) - d) / (c.swiperSlideSize + a), g = -(l - d), m = g + e.slidesSizesGrid[o], T = g >= 0 && g <= e.size - e.slidesSizesGrid[o], M = g >= 0 && g < e.size - 1 || m > 1 && m <= e.size || g <= 0 && m >= e.size;
681
+ M && (e.visibleSlides.push(c), e.visibleSlidesIndexes.push(o)), $e(c, M, s.slideVisibleClass), $e(c, T, s.slideFullyVisibleClass), c.progress = n ? -p : p, c.originalProgress = n ? -h : h;
682
682
  }
683
683
  }
684
684
  function Yt(t) {
@@ -699,12 +699,12 @@ function Yt(t) {
699
699
  n = 0, i = !0, l = !0;
700
700
  else {
701
701
  n = (t - e.minTranslate()) / r;
702
- const d = Math.abs(t - e.minTranslate()) < 1, u = Math.abs(t - e.maxTranslate()) < 1;
703
- i = d || n <= 0, l = u || n >= 1, d && (n = 0), u && (n = 1);
702
+ const d = Math.abs(t - e.minTranslate()) < 1, p = Math.abs(t - e.maxTranslate()) < 1;
703
+ i = d || n <= 0, l = p || n >= 1, d && (n = 0), p && (n = 1);
704
704
  }
705
705
  if (s.loop) {
706
- const d = e.getSlideIndexByData(0), u = e.getSlideIndexByData(e.slides.length - 1), f = e.slidesGrid[d], v = e.slidesGrid[u], h = e.slidesGrid[e.slidesGrid.length - 1], b = Math.abs(t);
707
- b >= f ? a = (b - f) / h : a = (b + h - v) / h, a > 1 && (a -= 1);
706
+ const d = e.getSlideIndexByData(0), p = e.getSlideIndexByData(e.slides.length - 1), h = e.slidesGrid[d], g = e.slidesGrid[p], m = e.slidesGrid[e.slidesGrid.length - 1], T = Math.abs(t);
707
+ T >= h ? a = (T - h) / m : a = (T + m - g) / m, a > 1 && (a -= 1);
708
708
  }
709
709
  Object.assign(e, {
710
710
  progress: n,
@@ -713,7 +713,7 @@ function Yt(t) {
713
713
  isEnd: l
714
714
  }), (s.watchSlidesProgress || s.centeredSlides && s.autoHeight) && e.updateSlidesProgress(t), i && !o && e.emit("reachBeginning toEdge"), l && !c && e.emit("reachEnd toEdge"), (o && !i || c && !l) && e.emit("fromEdge"), e.emit("progress", n);
715
715
  }
716
- const ge = (t, e, s) => {
716
+ const ve = (t, e, s) => {
717
717
  e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
718
718
  };
719
719
  function Xt() {
@@ -722,18 +722,18 @@ function Xt() {
722
722
  params: s,
723
723
  slidesEl: r,
724
724
  activeIndex: n
725
- } = t, i = t.virtual && s.virtual.enabled, l = t.grid && s.grid && s.grid.rows > 1, a = (u) => H(r, `.${s.slideClass}${u}, swiper-slide${u}`)[0];
725
+ } = t, i = t.virtual && s.virtual.enabled, l = t.grid && s.grid && s.grid.rows > 1, a = (p) => H(r, `.${s.slideClass}${p}, swiper-slide${p}`)[0];
726
726
  let o, c, d;
727
727
  if (i)
728
728
  if (s.loop) {
729
- let u = n - t.virtual.slidesBefore;
730
- u < 0 && (u = t.virtual.slides.length + u), u >= t.virtual.slides.length && (u -= t.virtual.slides.length), o = a(`[data-swiper-slide-index="${u}"]`);
729
+ let p = n - t.virtual.slidesBefore;
730
+ p < 0 && (p = t.virtual.slides.length + p), p >= t.virtual.slides.length && (p -= t.virtual.slides.length), o = a(`[data-swiper-slide-index="${p}"]`);
731
731
  } else
732
732
  o = a(`[data-swiper-slide-index="${n}"]`);
733
733
  else
734
- l ? (o = e.find((u) => u.column === n), d = e.find((u) => u.column === n + 1), c = e.find((u) => u.column === n - 1)) : o = e[n];
735
- o && (l || (d = $t(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !d && (d = e[0]), c = _t(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((u) => {
736
- ge(u, u === o, s.slideActiveClass), ge(u, u === d, s.slideNextClass), ge(u, u === c, s.slidePrevClass);
734
+ l ? (o = e.find((p) => p.column === n), d = e.find((p) => p.column === n + 1), c = e.find((p) => p.column === n - 1)) : o = e[n];
735
+ o && (l || (d = $t(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !d && (d = e[0]), c = _t(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((p) => {
736
+ ve(p, p === o, s.slideActiveClass), ve(p, p === d, s.slideNextClass), ve(p, p === c, s.slidePrevClass);
737
737
  }), t.emitSlidesClasses();
738
738
  }
739
739
  const ne = (t, e) => {
@@ -794,15 +794,15 @@ function Qt(t) {
794
794
  snapIndex: a
795
795
  } = e;
796
796
  let o = t, c;
797
- const d = (v) => {
798
- let h = v - e.virtual.slidesBefore;
799
- return h < 0 && (h = e.virtual.slides.length + h), h >= e.virtual.slides.length && (h -= e.virtual.slides.length), h;
797
+ const d = (g) => {
798
+ let m = g - e.virtual.slidesBefore;
799
+ return m < 0 && (m = e.virtual.slides.length + m), m >= e.virtual.slides.length && (m -= e.virtual.slides.length), m;
800
800
  };
801
801
  if (typeof o > "u" && (o = Ut(e)), r.indexOf(s) >= 0)
802
802
  c = r.indexOf(s);
803
803
  else {
804
- const v = Math.min(n.slidesPerGroupSkip, o);
805
- c = v + Math.floor((o - v) / n.slidesPerGroup);
804
+ const g = Math.min(n.slidesPerGroupSkip, o);
805
+ c = g + Math.floor((o - g) / n.slidesPerGroup);
806
806
  }
807
807
  if (c >= r.length && (c = r.length - 1), o === i && !e.params.loop) {
808
808
  c !== a && (e.snapIndex = c, e.emit("snapIndexChange"));
@@ -812,27 +812,27 @@ function Qt(t) {
812
812
  e.realIndex = d(o);
813
813
  return;
814
814
  }
815
- const u = e.grid && n.grid && n.grid.rows > 1;
816
- let f;
815
+ const p = e.grid && n.grid && n.grid.rows > 1;
816
+ let h;
817
817
  if (e.virtual && n.virtual.enabled && n.loop)
818
- f = d(o);
819
- else if (u) {
820
- const v = e.slides.find((b) => b.column === o);
821
- let h = parseInt(v.getAttribute("data-swiper-slide-index"), 10);
822
- Number.isNaN(h) && (h = Math.max(e.slides.indexOf(v), 0)), f = Math.floor(h / n.grid.rows);
818
+ h = d(o);
819
+ else if (p) {
820
+ const g = e.slides.find((T) => T.column === o);
821
+ let m = parseInt(g.getAttribute("data-swiper-slide-index"), 10);
822
+ Number.isNaN(m) && (m = Math.max(e.slides.indexOf(g), 0)), h = Math.floor(m / n.grid.rows);
823
823
  } else if (e.slides[o]) {
824
- const v = e.slides[o].getAttribute("data-swiper-slide-index");
825
- v ? f = parseInt(v, 10) : f = o;
824
+ const g = e.slides[o].getAttribute("data-swiper-slide-index");
825
+ g ? h = parseInt(g, 10) : h = o;
826
826
  } else
827
- f = o;
827
+ h = o;
828
828
  Object.assign(e, {
829
829
  previousSnapIndex: a,
830
830
  snapIndex: c,
831
831
  previousRealIndex: l,
832
- realIndex: f,
832
+ realIndex: h,
833
833
  previousIndex: i,
834
834
  activeIndex: o
835
- }), e.initialized && Ce(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== f && e.emit("realIndexChange"), e.emit("slideChange"));
835
+ }), e.initialized && Ce(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== h && e.emit("realIndexChange"), e.emit("slideChange"));
836
836
  }
837
837
  function Kt(t, e) {
838
838
  const s = this, r = s.params;
@@ -893,8 +893,8 @@ function es(t, e) {
893
893
  const c = 0;
894
894
  s.isHorizontal() ? a = r ? -t : t : o = t, n.roundLengths && (a = Math.floor(a), o = Math.floor(o)), s.previousTranslate = s.translate, s.translate = s.isHorizontal() ? a : o, n.cssMode ? i[s.isHorizontal() ? "scrollLeft" : "scrollTop"] = s.isHorizontal() ? -a : -o : n.virtualTranslate || (s.isHorizontal() ? a -= s.cssOverflowAdjustment() : o -= s.cssOverflowAdjustment(), i.style.transform = `translate3d(${a}px, ${o}px, ${c}px)`);
895
895
  let d;
896
- const u = s.maxTranslate() - s.minTranslate();
897
- u === 0 ? d = 0 : d = (t - s.minTranslate()) / u, d !== l && s.updateProgress(t), s.emit("setTranslate", s.translate, e);
896
+ const p = s.maxTranslate() - s.minTranslate();
897
+ p === 0 ? d = 0 : d = (t - s.minTranslate()) / p, d !== l && s.updateProgress(t), s.emit("setTranslate", s.translate, e);
898
898
  }
899
899
  function ts() {
900
900
  return -this.snapGrid[0];
@@ -913,25 +913,25 @@ function rs(t, e, s, r, n) {
913
913
  const o = i.minTranslate(), c = i.maxTranslate();
914
914
  let d;
915
915
  if (r && t > o ? d = o : r && t < c ? d = c : d = t, i.updateProgress(d), l.cssMode) {
916
- const u = i.isHorizontal();
916
+ const p = i.isHorizontal();
917
917
  if (e === 0)
918
- a[u ? "scrollLeft" : "scrollTop"] = -d;
918
+ a[p ? "scrollLeft" : "scrollTop"] = -d;
919
919
  else {
920
920
  if (!i.support.smoothScroll)
921
921
  return Xe({
922
922
  swiper: i,
923
923
  targetPosition: -d,
924
- side: u ? "left" : "top"
924
+ side: p ? "left" : "top"
925
925
  }), !0;
926
926
  a.scrollTo({
927
- [u ? "left" : "top"]: -d,
927
+ [p ? "left" : "top"]: -d,
928
928
  behavior: "smooth"
929
929
  });
930
930
  }
931
931
  return !0;
932
932
  }
933
- return e === 0 ? (i.setTransition(0), i.setTranslate(d), s && (i.emit("beforeTransitionStart", e, n), i.emit("transitionEnd"))) : (i.setTransition(e), i.setTranslate(d), s && (i.emit("beforeTransitionStart", e, n), i.emit("transitionStart")), i.animating || (i.animating = !0, i.onTranslateToWrapperTransitionEnd || (i.onTranslateToWrapperTransitionEnd = function(u) {
934
- !i || i.destroyed || u.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onTranslateToWrapperTransitionEnd), i.onTranslateToWrapperTransitionEnd = null, delete i.onTranslateToWrapperTransitionEnd, i.animating = !1, s && i.emit("transitionEnd"));
933
+ return e === 0 ? (i.setTransition(0), i.setTranslate(d), s && (i.emit("beforeTransitionStart", e, n), i.emit("transitionEnd"))) : (i.setTransition(e), i.setTranslate(d), s && (i.emit("beforeTransitionStart", e, n), i.emit("transitionStart")), i.animating || (i.animating = !0, i.onTranslateToWrapperTransitionEnd || (i.onTranslateToWrapperTransitionEnd = function(p) {
934
+ !i || i.destroyed || p.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onTranslateToWrapperTransitionEnd), i.onTranslateToWrapperTransitionEnd = null, delete i.onTranslateToWrapperTransitionEnd, i.animating = !1, s && i.emit("transitionEnd"));
935
935
  }), i.wrapperEl.addEventListener("transitionend", i.onTranslateToWrapperTransitionEnd))), !0;
936
936
  }
937
937
  var is = {
@@ -1004,56 +1004,56 @@ function ds(t, e, s, r, n) {
1004
1004
  snapGrid: o,
1005
1005
  slidesGrid: c,
1006
1006
  previousIndex: d,
1007
- activeIndex: u,
1008
- rtlTranslate: f,
1009
- wrapperEl: v,
1010
- enabled: h
1007
+ activeIndex: p,
1008
+ rtlTranslate: h,
1009
+ wrapperEl: g,
1010
+ enabled: m
1011
1011
  } = i;
1012
- if (!h && !r && !n || i.destroyed || i.animating && a.preventInteractionOnTransition)
1012
+ if (!m && !r && !n || i.destroyed || i.animating && a.preventInteractionOnTransition)
1013
1013
  return !1;
1014
1014
  typeof e > "u" && (e = i.params.speed);
1015
- const b = Math.min(i.params.slidesPerGroupSkip, l);
1016
- let M = b + Math.floor((l - b) / i.params.slidesPerGroup);
1015
+ const T = Math.min(i.params.slidesPerGroupSkip, l);
1016
+ let M = T + Math.floor((l - T) / i.params.slidesPerGroup);
1017
1017
  M >= o.length && (M = o.length - 1);
1018
1018
  const w = -o[M];
1019
1019
  if (a.normalizeSlideIndex)
1020
1020
  for (let y = 0; y < c.length; y += 1) {
1021
- const T = -Math.floor(w * 100), A = Math.floor(c[y] * 100), I = Math.floor(c[y + 1] * 100);
1022
- typeof c[y + 1] < "u" ? T >= A && T < I - (I - A) / 2 ? l = y : T >= A && T < I && (l = y + 1) : T >= A && (l = y);
1021
+ const C = -Math.floor(w * 100), A = Math.floor(c[y] * 100), I = Math.floor(c[y + 1] * 100);
1022
+ typeof c[y + 1] < "u" ? C >= A && C < I - (I - A) / 2 ? l = y : C >= A && C < I && (l = y + 1) : C >= A && (l = y);
1023
1023
  }
1024
- if (i.initialized && l !== u && (!i.allowSlideNext && (f ? w > i.translate && w > i.minTranslate() : w < i.translate && w < i.minTranslate()) || !i.allowSlidePrev && w > i.translate && w > i.maxTranslate() && (u || 0) !== l))
1024
+ if (i.initialized && l !== p && (!i.allowSlideNext && (h ? w > i.translate && w > i.minTranslate() : w < i.translate && w < i.minTranslate()) || !i.allowSlidePrev && w > i.translate && w > i.maxTranslate() && (p || 0) !== l))
1025
1025
  return !1;
1026
1026
  l !== (d || 0) && s && i.emit("beforeSlideChangeStart"), i.updateProgress(w);
1027
- let p;
1028
- l > u ? p = "next" : l < u ? p = "prev" : p = "reset";
1029
- const m = i.virtual && i.params.virtual.enabled;
1030
- if (!(m && n) && (f && -w === i.translate || !f && w === i.translate))
1031
- return i.updateActiveIndex(l), a.autoHeight && i.updateAutoHeight(), i.updateSlidesClasses(), a.effect !== "slide" && i.setTranslate(w), p !== "reset" && (i.transitionStart(s, p), i.transitionEnd(s, p)), !1;
1027
+ let u;
1028
+ l > p ? u = "next" : l < p ? u = "prev" : u = "reset";
1029
+ const f = i.virtual && i.params.virtual.enabled;
1030
+ if (!(f && n) && (h && -w === i.translate || !h && w === i.translate))
1031
+ return i.updateActiveIndex(l), a.autoHeight && i.updateAutoHeight(), i.updateSlidesClasses(), a.effect !== "slide" && i.setTranslate(w), u !== "reset" && (i.transitionStart(s, u), i.transitionEnd(s, u)), !1;
1032
1032
  if (a.cssMode) {
1033
- const y = i.isHorizontal(), T = f ? w : -w;
1033
+ const y = i.isHorizontal(), C = h ? w : -w;
1034
1034
  if (e === 0)
1035
- m && (i.wrapperEl.style.scrollSnapType = "none", i._immediateVirtual = !0), m && !i._cssModeVirtualInitialSet && i.params.initialSlide > 0 ? (i._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1036
- v[y ? "scrollLeft" : "scrollTop"] = T;
1037
- })) : v[y ? "scrollLeft" : "scrollTop"] = T, m && requestAnimationFrame(() => {
1035
+ f && (i.wrapperEl.style.scrollSnapType = "none", i._immediateVirtual = !0), f && !i._cssModeVirtualInitialSet && i.params.initialSlide > 0 ? (i._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1036
+ g[y ? "scrollLeft" : "scrollTop"] = C;
1037
+ })) : g[y ? "scrollLeft" : "scrollTop"] = C, f && requestAnimationFrame(() => {
1038
1038
  i.wrapperEl.style.scrollSnapType = "", i._immediateVirtual = !1;
1039
1039
  });
1040
1040
  else {
1041
1041
  if (!i.support.smoothScroll)
1042
1042
  return Xe({
1043
1043
  swiper: i,
1044
- targetPosition: T,
1044
+ targetPosition: C,
1045
1045
  side: y ? "left" : "top"
1046
1046
  }), !0;
1047
- v.scrollTo({
1048
- [y ? "left" : "top"]: T,
1047
+ g.scrollTo({
1048
+ [y ? "left" : "top"]: C,
1049
1049
  behavior: "smooth"
1050
1050
  });
1051
1051
  }
1052
1052
  return !0;
1053
1053
  }
1054
- const g = Je().isSafari;
1055
- return m && !n && g && i.isElement && i.virtual.update(!1, !1, l), i.setTransition(e), i.setTranslate(w), i.updateActiveIndex(l), i.updateSlidesClasses(), i.emit("beforeTransitionStart", e, r), i.transitionStart(s, p), e === 0 ? i.transitionEnd(s, p) : i.animating || (i.animating = !0, i.onSlideToWrapperTransitionEnd || (i.onSlideToWrapperTransitionEnd = function(y) {
1056
- !i || i.destroyed || y.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onSlideToWrapperTransitionEnd), i.onSlideToWrapperTransitionEnd = null, delete i.onSlideToWrapperTransitionEnd, i.transitionEnd(s, p));
1054
+ const v = Je().isSafari;
1055
+ return f && !n && v && i.isElement && i.virtual.update(!1, !1, l), i.setTransition(e), i.setTranslate(w), i.updateActiveIndex(l), i.updateSlidesClasses(), i.emit("beforeTransitionStart", e, r), i.transitionStart(s, u), e === 0 ? i.transitionEnd(s, u) : i.animating || (i.animating = !0, i.onSlideToWrapperTransitionEnd || (i.onSlideToWrapperTransitionEnd = function(y) {
1056
+ !i || i.destroyed || y.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onSlideToWrapperTransitionEnd), i.onSlideToWrapperTransitionEnd = null, delete i.onSlideToWrapperTransitionEnd, i.transitionEnd(s, u));
1057
1057
  }), i.wrapperEl.addEventListener("transitionend", i.onSlideToWrapperTransitionEnd)), !0;
1058
1058
  }
1059
1059
  function cs(t, e, s, r) {
@@ -1069,8 +1069,8 @@ function cs(t, e, s, r) {
1069
1069
  else {
1070
1070
  let a;
1071
1071
  if (i) {
1072
- const f = l * n.params.grid.rows;
1073
- a = n.slides.find((v) => v.getAttribute("data-swiper-slide-index") * 1 === f).column;
1072
+ const h = l * n.params.grid.rows;
1073
+ a = n.slides.find((g) => g.getAttribute("data-swiper-slide-index") * 1 === h).column;
1074
1074
  } else
1075
1075
  a = n.getSlideIndexByData(l);
1076
1076
  const o = i ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
@@ -1078,19 +1078,19 @@ function cs(t, e, s, r) {
1078
1078
  } = n.params;
1079
1079
  let d = n.params.slidesPerView;
1080
1080
  d === "auto" ? d = n.slidesPerViewDynamic() : (d = Math.ceil(parseFloat(n.params.slidesPerView, 10)), c && d % 2 === 0 && (d = d + 1));
1081
- let u = o - a < d;
1082
- if (c && (u = u || a < Math.ceil(d / 2)), r && c && n.params.slidesPerView !== "auto" && !i && (u = !1), u) {
1083
- const f = c ? a < n.activeIndex ? "prev" : "next" : a - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
1081
+ let p = o - a < d;
1082
+ if (c && (p = p || a < Math.ceil(d / 2)), r && c && n.params.slidesPerView !== "auto" && !i && (p = !1), p) {
1083
+ const h = c ? a < n.activeIndex ? "prev" : "next" : a - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
1084
1084
  n.loopFix({
1085
- direction: f,
1085
+ direction: h,
1086
1086
  slideTo: !0,
1087
- activeSlideIndex: f === "next" ? a + 1 : a - o + 1,
1088
- slideRealIndex: f === "next" ? n.realIndex : void 0
1087
+ activeSlideIndex: h === "next" ? a + 1 : a - o + 1,
1088
+ slideRealIndex: h === "next" ? n.realIndex : void 0
1089
1089
  });
1090
1090
  }
1091
1091
  if (i) {
1092
- const f = l * n.params.grid.rows;
1093
- l = n.slides.find((v) => v.getAttribute("data-swiper-slide-index") * 1 === f).column;
1092
+ const h = l * n.params.grid.rows;
1093
+ l = n.slides.find((g) => g.getAttribute("data-swiper-slide-index") * 1 === h).column;
1094
1094
  } else
1095
1095
  l = n.getSlideIndexByData(l);
1096
1096
  }
@@ -1098,7 +1098,7 @@ function cs(t, e, s, r) {
1098
1098
  n.slideTo(l, e, s, r);
1099
1099
  }), n;
1100
1100
  }
1101
- function ps(t, e, s) {
1101
+ function us(t, e, s) {
1102
1102
  e === void 0 && (e = !0);
1103
1103
  const r = this, {
1104
1104
  enabled: n,
@@ -1121,7 +1121,7 @@ function ps(t, e, s) {
1121
1121
  }
1122
1122
  return i.rewind && r.isEnd ? r.slideTo(0, t, e, s) : r.slideTo(r.activeIndex + o, t, e, s);
1123
1123
  }
1124
- function us(t, e, s) {
1124
+ function ps(t, e, s) {
1125
1125
  e === void 0 && (e = !0);
1126
1126
  const r = this, {
1127
1127
  params: n,
@@ -1140,35 +1140,35 @@ function us(t, e, s) {
1140
1140
  direction: "prev"
1141
1141
  }), r._clientLeft = r.wrapperEl.clientLeft;
1142
1142
  }
1143
- const u = a ? r.translate : -r.translate;
1144
- function f(p) {
1145
- return p < 0 ? -Math.floor(Math.abs(p)) : Math.floor(p);
1143
+ const p = a ? r.translate : -r.translate;
1144
+ function h(u) {
1145
+ return u < 0 ? -Math.floor(Math.abs(u)) : Math.floor(u);
1146
1146
  }
1147
- const v = f(u), h = i.map((p) => f(p)), b = n.freeMode && n.freeMode.enabled;
1148
- let M = i[h.indexOf(v) - 1];
1149
- if (typeof M > "u" && (n.cssMode || b)) {
1150
- let p;
1151
- i.forEach((m, g) => {
1152
- v >= m && (p = g);
1153
- }), typeof p < "u" && (M = b ? i[p] : i[p > 0 ? p - 1 : p]);
1147
+ const g = h(p), m = i.map((u) => h(u)), T = n.freeMode && n.freeMode.enabled;
1148
+ let M = i[m.indexOf(g) - 1];
1149
+ if (typeof M > "u" && (n.cssMode || T)) {
1150
+ let u;
1151
+ i.forEach((f, v) => {
1152
+ g >= f && (u = v);
1153
+ }), typeof u < "u" && (M = T ? i[u] : i[u > 0 ? u - 1 : u]);
1154
1154
  }
1155
1155
  let w = 0;
1156
1156
  if (typeof M < "u" && (w = l.indexOf(M), w < 0 && (w = r.activeIndex - 1), n.slidesPerView === "auto" && n.slidesPerGroup === 1 && n.slidesPerGroupAuto && (w = w - r.slidesPerViewDynamic("previous", !0) + 1, w = Math.max(w, 0))), n.rewind && r.isBeginning) {
1157
- const p = r.params.virtual && r.params.virtual.enabled && r.virtual ? r.virtual.slides.length - 1 : r.slides.length - 1;
1158
- return r.slideTo(p, t, e, s);
1157
+ const u = r.params.virtual && r.params.virtual.enabled && r.virtual ? r.virtual.slides.length - 1 : r.slides.length - 1;
1158
+ return r.slideTo(u, t, e, s);
1159
1159
  } else if (n.loop && r.activeIndex === 0 && n.cssMode)
1160
1160
  return requestAnimationFrame(() => {
1161
1161
  r.slideTo(w, t, e, s);
1162
1162
  }), !0;
1163
1163
  return r.slideTo(w, t, e, s);
1164
1164
  }
1165
- function ms(t, e, s) {
1165
+ function fs(t, e, s) {
1166
1166
  e === void 0 && (e = !0);
1167
1167
  const r = this;
1168
1168
  if (!r.destroyed)
1169
1169
  return typeof t > "u" && (t = r.params.speed), r.slideTo(r.activeIndex, t, e, s);
1170
1170
  }
1171
- function fs(t, e, s, r) {
1171
+ function ms(t, e, s, r) {
1172
1172
  e === void 0 && (e = !0), r === void 0 && (r = 0.5);
1173
1173
  const n = this;
1174
1174
  if (n.destroyed) return;
@@ -1195,50 +1195,50 @@ function hs() {
1195
1195
  const l = t.isElement ? "swiper-slide" : `.${e.slideClass}`;
1196
1196
  if (e.loop) {
1197
1197
  if (t.animating) return;
1198
- i = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? n < t.loopedSlides - r / 2 || n > t.slides.length - t.loopedSlides + r / 2 ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), xe(() => {
1198
+ i = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? n < t.loopedSlides - r / 2 || n > t.slides.length - t.loopedSlides + r / 2 ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), Te(() => {
1199
1199
  t.slideTo(n);
1200
- })) : t.slideTo(n) : n > t.slides.length - r ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), xe(() => {
1200
+ })) : t.slideTo(n) : n > t.slides.length - r ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), Te(() => {
1201
1201
  t.slideTo(n);
1202
1202
  })) : t.slideTo(n);
1203
1203
  } else
1204
1204
  t.slideTo(n);
1205
1205
  }
1206
- var vs = {
1206
+ var gs = {
1207
1207
  slideTo: ds,
1208
1208
  slideToLoop: cs,
1209
- slideNext: ps,
1210
- slidePrev: us,
1211
- slideReset: ms,
1212
- slideToClosest: fs,
1209
+ slideNext: us,
1210
+ slidePrev: ps,
1211
+ slideReset: fs,
1212
+ slideToClosest: ms,
1213
1213
  slideToClickedSlide: hs
1214
1214
  };
1215
- function gs(t, e) {
1215
+ function vs(t, e) {
1216
1216
  const s = this, {
1217
1217
  params: r,
1218
1218
  slidesEl: n
1219
1219
  } = s;
1220
1220
  if (!r.loop || s.virtual && s.params.virtual.enabled) return;
1221
1221
  const i = () => {
1222
- H(n, `.${r.slideClass}, swiper-slide`).forEach((u, f) => {
1223
- u.setAttribute("data-swiper-slide-index", f);
1222
+ H(n, `.${r.slideClass}, swiper-slide`).forEach((p, h) => {
1223
+ p.setAttribute("data-swiper-slide-index", h);
1224
1224
  });
1225
- }, l = s.grid && r.grid && r.grid.rows > 1, a = r.slidesPerGroup * (l ? r.grid.rows : 1), o = s.slides.length % a !== 0, c = l && s.slides.length % r.grid.rows !== 0, d = (u) => {
1226
- for (let f = 0; f < u; f += 1) {
1227
- const v = s.isElement ? de("swiper-slide", [r.slideBlankClass]) : de("div", [r.slideClass, r.slideBlankClass]);
1228
- s.slidesEl.append(v);
1225
+ }, l = s.grid && r.grid && r.grid.rows > 1, a = r.slidesPerGroup * (l ? r.grid.rows : 1), o = s.slides.length % a !== 0, c = l && s.slides.length % r.grid.rows !== 0, d = (p) => {
1226
+ for (let h = 0; h < p; h += 1) {
1227
+ const g = s.isElement ? de("swiper-slide", [r.slideBlankClass]) : de("div", [r.slideClass, r.slideBlankClass]);
1228
+ s.slidesEl.append(g);
1229
1229
  }
1230
1230
  };
1231
1231
  if (o) {
1232
1232
  if (r.loopAddBlankSlides) {
1233
- const u = a - s.slides.length % a;
1234
- d(u), s.recalcSlides(), s.updateSlides();
1233
+ const p = a - s.slides.length % a;
1234
+ d(p), s.recalcSlides(), s.updateSlides();
1235
1235
  } else
1236
1236
  oe("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
1237
1237
  i();
1238
1238
  } else if (c) {
1239
1239
  if (r.loopAddBlankSlides) {
1240
- const u = r.grid.rows - s.slides.length % r.grid.rows;
1241
- d(u), s.recalcSlides(), s.updateSlides();
1240
+ const p = r.grid.rows - s.slides.length % r.grid.rows;
1241
+ d(p), s.recalcSlides(), s.updateSlides();
1242
1242
  } else
1243
1243
  oe("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");
1244
1244
  i();
@@ -1266,79 +1266,79 @@ function ws(t) {
1266
1266
  c.emit("beforeLoopFix");
1267
1267
  const {
1268
1268
  slides: d,
1269
- allowSlidePrev: u,
1270
- allowSlideNext: f,
1271
- slidesEl: v,
1272
- params: h
1269
+ allowSlidePrev: p,
1270
+ allowSlideNext: h,
1271
+ slidesEl: g,
1272
+ params: m
1273
1273
  } = c, {
1274
- centeredSlides: b,
1274
+ centeredSlides: T,
1275
1275
  initialSlide: M
1276
- } = h;
1277
- if (c.allowSlidePrev = !0, c.allowSlideNext = !0, c.virtual && h.virtual.enabled) {
1278
- s && (!h.centeredSlides && c.snapIndex === 0 ? c.slideTo(c.virtual.slides.length, 0, !1, !0) : h.centeredSlides && c.snapIndex < h.slidesPerView ? c.slideTo(c.virtual.slides.length + c.snapIndex, 0, !1, !0) : c.snapIndex === c.snapGrid.length - 1 && c.slideTo(c.virtual.slidesBefore, 0, !1, !0)), c.allowSlidePrev = u, c.allowSlideNext = f, c.emit("loopFix");
1276
+ } = m;
1277
+ if (c.allowSlidePrev = !0, c.allowSlideNext = !0, c.virtual && m.virtual.enabled) {
1278
+ s && (!m.centeredSlides && c.snapIndex === 0 ? c.slideTo(c.virtual.slides.length, 0, !1, !0) : m.centeredSlides && c.snapIndex < m.slidesPerView ? c.slideTo(c.virtual.slides.length + c.snapIndex, 0, !1, !0) : c.snapIndex === c.snapGrid.length - 1 && c.slideTo(c.virtual.slidesBefore, 0, !1, !0)), c.allowSlidePrev = p, c.allowSlideNext = h, c.emit("loopFix");
1279
1279
  return;
1280
1280
  }
1281
- let w = h.slidesPerView;
1282
- w === "auto" ? w = c.slidesPerViewDynamic() : (w = Math.ceil(parseFloat(h.slidesPerView, 10)), b && w % 2 === 0 && (w = w + 1));
1283
- const p = h.slidesPerGroupAuto ? w : h.slidesPerGroup;
1284
- let m = p;
1285
- m % p !== 0 && (m += p - m % p), m += h.loopAdditionalSlides, c.loopedSlides = m;
1286
- const g = c.grid && h.grid && h.grid.rows > 1;
1287
- d.length < w + m || c.params.effect === "cards" && d.length < w + m * 2 ? oe("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : g && h.grid.fill === "row" && oe("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
1288
- const y = [], T = [], A = g ? Math.ceil(d.length / h.grid.rows) : d.length, I = l && A - M < w && !b;
1289
- let S = I ? M : c.activeIndex;
1290
- typeof i > "u" ? i = c.getSlideIndex(d.find((C) => C.classList.contains(h.slideActiveClass))) : S = i;
1291
- const E = r === "next" || !r, x = r === "prev" || !r;
1281
+ let w = m.slidesPerView;
1282
+ w === "auto" ? w = c.slidesPerViewDynamic() : (w = Math.ceil(parseFloat(m.slidesPerView, 10)), T && w % 2 === 0 && (w = w + 1));
1283
+ const u = m.slidesPerGroupAuto ? w : m.slidesPerGroup;
1284
+ let f = u;
1285
+ f % u !== 0 && (f += u - f % u), f += m.loopAdditionalSlides, c.loopedSlides = f;
1286
+ const v = c.grid && m.grid && m.grid.rows > 1;
1287
+ d.length < w + f || c.params.effect === "cards" && d.length < w + f * 2 ? oe("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : v && m.grid.fill === "row" && oe("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
1288
+ const y = [], C = [], A = v ? Math.ceil(d.length / m.grid.rows) : d.length, I = l && A - M < w && !T;
1289
+ let b = I ? M : c.activeIndex;
1290
+ typeof i > "u" ? i = c.getSlideIndex(d.find((x) => x.classList.contains(m.slideActiveClass))) : b = i;
1291
+ const S = r === "next" || !r, E = r === "prev" || !r;
1292
1292
  let k = 0, L = 0;
1293
- const O = (g ? d[i].column : i) + (b && typeof n > "u" ? -w / 2 + 0.5 : 0);
1294
- if (O < m) {
1295
- k = Math.max(m - O, p);
1296
- for (let C = 0; C < m - O; C += 1) {
1297
- const z = C - Math.floor(C / A) * A;
1298
- if (g) {
1293
+ const O = (v ? d[i].column : i) + (T && typeof n > "u" ? -w / 2 + 0.5 : 0);
1294
+ if (O < f) {
1295
+ k = Math.max(f - O, u);
1296
+ for (let x = 0; x < f - O; x += 1) {
1297
+ const z = x - Math.floor(x / A) * A;
1298
+ if (v) {
1299
1299
  const U = A - z - 1;
1300
1300
  for (let V = d.length - 1; V >= 0; V -= 1)
1301
1301
  d[V].column === U && y.push(V);
1302
1302
  } else
1303
1303
  y.push(A - z - 1);
1304
1304
  }
1305
- } else if (O + w > A - m) {
1306
- L = Math.max(O - (A - m * 2), p), I && (L = Math.max(L, w - A + M + 1));
1307
- for (let C = 0; C < L; C += 1) {
1308
- const z = C - Math.floor(C / A) * A;
1309
- g ? d.forEach((U, V) => {
1310
- U.column === z && T.push(V);
1311
- }) : T.push(z);
1305
+ } else if (O + w > A - f) {
1306
+ L = Math.max(O - (A - f * 2), u), I && (L = Math.max(L, w - A + M + 1));
1307
+ for (let x = 0; x < L; x += 1) {
1308
+ const z = x - Math.floor(x / A) * A;
1309
+ v ? d.forEach((U, V) => {
1310
+ U.column === z && C.push(V);
1311
+ }) : C.push(z);
1312
1312
  }
1313
1313
  }
1314
1314
  if (c.__preventObserver__ = !0, requestAnimationFrame(() => {
1315
1315
  c.__preventObserver__ = !1;
1316
- }), c.params.effect === "cards" && d.length < w + m * 2 && (T.includes(i) && T.splice(T.indexOf(i), 1), y.includes(i) && y.splice(y.indexOf(i), 1)), x && y.forEach((C) => {
1317
- d[C].swiperLoopMoveDOM = !0, v.prepend(d[C]), d[C].swiperLoopMoveDOM = !1;
1318
- }), E && T.forEach((C) => {
1319
- d[C].swiperLoopMoveDOM = !0, v.append(d[C]), d[C].swiperLoopMoveDOM = !1;
1320
- }), c.recalcSlides(), h.slidesPerView === "auto" ? c.updateSlides() : g && (y.length > 0 && x || T.length > 0 && E) && c.slides.forEach((C, z) => {
1321
- c.grid.updateSlide(z, C, c.slides);
1322
- }), h.watchSlidesProgress && c.updateSlidesOffset(), s) {
1323
- if (y.length > 0 && x) {
1316
+ }), c.params.effect === "cards" && d.length < w + f * 2 && (C.includes(i) && C.splice(C.indexOf(i), 1), y.includes(i) && y.splice(y.indexOf(i), 1)), E && y.forEach((x) => {
1317
+ d[x].swiperLoopMoveDOM = !0, g.prepend(d[x]), d[x].swiperLoopMoveDOM = !1;
1318
+ }), S && C.forEach((x) => {
1319
+ d[x].swiperLoopMoveDOM = !0, g.append(d[x]), d[x].swiperLoopMoveDOM = !1;
1320
+ }), c.recalcSlides(), m.slidesPerView === "auto" ? c.updateSlides() : v && (y.length > 0 && E || C.length > 0 && S) && c.slides.forEach((x, z) => {
1321
+ c.grid.updateSlide(z, x, c.slides);
1322
+ }), m.watchSlidesProgress && c.updateSlidesOffset(), s) {
1323
+ if (y.length > 0 && E) {
1324
1324
  if (typeof e > "u") {
1325
- const C = c.slidesGrid[S], z = c.slidesGrid[S + k] - C;
1326
- o ? c.setTranslate(c.translate - z) : (c.slideTo(S + Math.ceil(k), 0, !1, !0), n && (c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - z, c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - z));
1325
+ const x = c.slidesGrid[b], z = c.slidesGrid[b + k] - x;
1326
+ o ? c.setTranslate(c.translate - z) : (c.slideTo(b + Math.ceil(k), 0, !1, !0), n && (c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - z, c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - z));
1327
1327
  } else if (n) {
1328
- const C = g ? y.length / h.grid.rows : y.length;
1329
- c.slideTo(c.activeIndex + C, 0, !1, !0), c.touchEventsData.currentTranslate = c.translate;
1328
+ const x = v ? y.length / m.grid.rows : y.length;
1329
+ c.slideTo(c.activeIndex + x, 0, !1, !0), c.touchEventsData.currentTranslate = c.translate;
1330
1330
  }
1331
- } else if (T.length > 0 && E)
1331
+ } else if (C.length > 0 && S)
1332
1332
  if (typeof e > "u") {
1333
- const C = c.slidesGrid[S], z = c.slidesGrid[S - L] - C;
1334
- o ? c.setTranslate(c.translate - z) : (c.slideTo(S - L, 0, !1, !0), n && (c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - z, c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - z));
1333
+ const x = c.slidesGrid[b], z = c.slidesGrid[b - L] - x;
1334
+ o ? c.setTranslate(c.translate - z) : (c.slideTo(b - L, 0, !1, !0), n && (c.touchEventsData.startTranslate = c.touchEventsData.startTranslate - z, c.touchEventsData.currentTranslate = c.touchEventsData.currentTranslate - z));
1335
1335
  } else {
1336
- const C = g ? T.length / h.grid.rows : T.length;
1337
- c.slideTo(c.activeIndex - C, 0, !1, !0);
1336
+ const x = v ? C.length / m.grid.rows : C.length;
1337
+ c.slideTo(c.activeIndex - x, 0, !1, !0);
1338
1338
  }
1339
1339
  }
1340
- if (c.allowSlidePrev = u, c.allowSlideNext = f, c.controller && c.controller.control && !a) {
1341
- const C = {
1340
+ if (c.allowSlidePrev = p, c.allowSlideNext = h, c.controller && c.controller.control && !a) {
1341
+ const x = {
1342
1342
  slideRealIndex: e,
1343
1343
  direction: r,
1344
1344
  setTranslate: n,
@@ -1347,17 +1347,17 @@ function ws(t) {
1347
1347
  };
1348
1348
  Array.isArray(c.controller.control) ? c.controller.control.forEach((z) => {
1349
1349
  !z.destroyed && z.params.loop && z.loopFix({
1350
- ...C,
1351
- slideTo: z.params.slidesPerView === h.slidesPerView ? s : !1
1350
+ ...x,
1351
+ slideTo: z.params.slidesPerView === m.slidesPerView ? s : !1
1352
1352
  });
1353
1353
  }) : c.controller.control instanceof c.constructor && c.controller.control.params.loop && c.controller.control.loopFix({
1354
- ...C,
1355
- slideTo: c.controller.control.params.slidesPerView === h.slidesPerView ? s : !1
1354
+ ...x,
1355
+ slideTo: c.controller.control.params.slidesPerView === m.slidesPerView ? s : !1
1356
1356
  });
1357
1357
  }
1358
1358
  c.emit("loopFix");
1359
1359
  }
1360
- function bs() {
1360
+ function ys() {
1361
1361
  const t = this, {
1362
1362
  params: e,
1363
1363
  slidesEl: s
@@ -1374,10 +1374,10 @@ function bs() {
1374
1374
  s.append(n);
1375
1375
  }), t.recalcSlides(), t.slideTo(t.realIndex, 0);
1376
1376
  }
1377
- var ys = {
1378
- loopCreate: gs,
1377
+ var bs = {
1378
+ loopCreate: vs,
1379
1379
  loopFix: ws,
1380
- loopDestroy: bs
1380
+ loopDestroy: ys
1381
1381
  };
1382
1382
  function Ss(t) {
1383
1383
  const e = this;
@@ -1393,11 +1393,11 @@ function Es() {
1393
1393
  t.__preventObserver__ = !1;
1394
1394
  }));
1395
1395
  }
1396
- var xs = {
1396
+ var Ts = {
1397
1397
  setGrabCursor: Ss,
1398
1398
  unsetGrabCursor: Es
1399
1399
  };
1400
- function Ts(t, e) {
1400
+ function xs(t, e) {
1401
1401
  e === void 0 && (e = this);
1402
1402
  function s(r) {
1403
1403
  if (!r || r === K() || r === B()) return null;
@@ -1439,16 +1439,16 @@ function Cs(t) {
1439
1439
  if (i.touchEventsTarget === "wrapper" && !zt(o, e.wrapperEl) || "which" in r && r.which === 3 || "button" in r && r.button > 0 || n.isTouched && n.isMoved) return;
1440
1440
  const c = !!i.noSwipingClass && i.noSwipingClass !== "", d = r.composedPath ? r.composedPath() : r.path;
1441
1441
  c && r.target && r.target.shadowRoot && d && (o = d[0]);
1442
- const u = i.noSwipingSelector ? i.noSwipingSelector : `.${i.noSwipingClass}`, f = !!(r.target && r.target.shadowRoot);
1443
- if (i.noSwiping && (f ? Ts(u, o) : o.closest(u))) {
1442
+ const p = i.noSwipingSelector ? i.noSwipingSelector : `.${i.noSwipingClass}`, h = !!(r.target && r.target.shadowRoot);
1443
+ if (i.noSwiping && (h ? xs(p, o) : o.closest(p))) {
1444
1444
  e.allowClick = !0;
1445
1445
  return;
1446
1446
  }
1447
1447
  if (i.swipeHandler && !o.closest(i.swipeHandler))
1448
1448
  return;
1449
1449
  l.currentX = r.pageX, l.currentY = r.pageY;
1450
- const v = l.currentX, h = l.currentY;
1451
- if (!Ge(e, r, v))
1450
+ const g = l.currentX, m = l.currentY;
1451
+ if (!Ge(e, r, g))
1452
1452
  return;
1453
1453
  Object.assign(n, {
1454
1454
  isTouched: !0,
@@ -1456,10 +1456,10 @@ function Cs(t) {
1456
1456
  allowTouchCallbacks: !0,
1457
1457
  isScrolling: void 0,
1458
1458
  startMoving: void 0
1459
- }), l.startX = v, l.startY = h, n.touchStartTime = le(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, i.threshold > 0 && (n.allowThresholdMove = !1);
1460
- let b = !0;
1461
- o.matches(n.focusableElements) && (b = !1, o.nodeName === "SELECT" && (n.isTouched = !1)), s.activeElement && s.activeElement.matches(n.focusableElements) && s.activeElement !== o && (r.pointerType === "mouse" || r.pointerType !== "mouse" && !o.matches(n.focusableElements)) && s.activeElement.blur();
1462
- const M = b && e.allowTouchMove && i.touchStartPreventDefault;
1459
+ }), l.startX = g, l.startY = m, n.touchStartTime = le(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, i.threshold > 0 && (n.allowThresholdMove = !1);
1460
+ let T = !0;
1461
+ o.matches(n.focusableElements) && (T = !1, o.nodeName === "SELECT" && (n.isTouched = !1)), s.activeElement && s.activeElement.matches(n.focusableElements) && s.activeElement !== o && (r.pointerType === "mouse" || r.pointerType !== "mouse" && !o.matches(n.focusableElements)) && s.activeElement.blur();
1462
+ const M = T && e.allowTouchMove && i.touchStartPreventDefault;
1463
1463
  (i.touchStartForcePreventDefault || M) && !o.isContentEditable && r.preventDefault(), i.freeMode && i.freeMode.enabled && e.freeMode && e.animating && !i.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", r);
1464
1464
  }
1465
1465
  function Ps(t) {
@@ -1475,30 +1475,30 @@ function Ps(t) {
1475
1475
  return;
1476
1476
  let c;
1477
1477
  if (o.type === "touchmove") {
1478
- if (c = [...o.changedTouches].find((T) => T.identifier === r.touchId), !c || c.identifier !== r.touchId) return;
1478
+ if (c = [...o.changedTouches].find((y) => y.identifier === r.touchId), !c || c.identifier !== r.touchId) return;
1479
1479
  } else
1480
1480
  c = o;
1481
1481
  if (!r.isTouched) {
1482
1482
  r.startMoving && r.isScrolling && s.emit("touchMoveOpposite", o);
1483
1483
  return;
1484
1484
  }
1485
- const d = c.pageX, u = c.pageY;
1485
+ const d = c.pageX, p = c.pageY;
1486
1486
  if (o.preventedByNestedSwiper) {
1487
- i.startX = d, i.startY = u;
1487
+ i.startX = d, i.startY = p;
1488
1488
  return;
1489
1489
  }
1490
1490
  if (!s.allowTouchMove) {
1491
1491
  o.target.matches(r.focusableElements) || (s.allowClick = !1), r.isTouched && (Object.assign(i, {
1492
1492
  startX: d,
1493
- startY: u,
1493
+ startY: p,
1494
1494
  currentX: d,
1495
- currentY: u
1495
+ currentY: p
1496
1496
  }), r.touchStartTime = le());
1497
1497
  return;
1498
1498
  }
1499
1499
  if (n.touchReleaseOnEdges && !n.loop) {
1500
1500
  if (s.isVertical()) {
1501
- if (u < i.startY && s.translate <= s.maxTranslate() || u > i.startY && s.translate >= s.minTranslate()) {
1501
+ if (p < i.startY && s.translate <= s.maxTranslate() || p > i.startY && s.translate >= s.minTranslate()) {
1502
1502
  r.isTouched = !1, r.isMoved = !1;
1503
1503
  return;
1504
1504
  }
@@ -1509,12 +1509,12 @@ function Ps(t) {
1509
1509
  r.isMoved = !0, s.allowClick = !1;
1510
1510
  return;
1511
1511
  }
1512
- r.allowTouchCallbacks && s.emit("touchMove", o), i.previousX = i.currentX, i.previousY = i.currentY, i.currentX = d, i.currentY = u;
1513
- const f = i.currentX - i.startX, v = i.currentY - i.startY;
1514
- if (s.params.threshold && Math.sqrt(f ** 2 + v ** 2) < s.params.threshold) return;
1512
+ r.allowTouchCallbacks && s.emit("touchMove", o), i.previousX = i.currentX, i.previousY = i.currentY, i.currentX = d, i.currentY = p;
1513
+ const h = i.currentX - i.startX, g = i.currentY - i.startY;
1514
+ if (s.params.threshold && Math.sqrt(h ** 2 + g ** 2) < s.params.threshold) return;
1515
1515
  if (typeof r.isScrolling > "u") {
1516
- let T;
1517
- s.isHorizontal() && i.currentY === i.startY || s.isVertical() && i.currentX === i.startX ? r.isScrolling = !1 : f * f + v * v >= 25 && (T = Math.atan2(Math.abs(v), Math.abs(f)) * 180 / Math.PI, r.isScrolling = s.isHorizontal() ? T > n.touchAngle : 90 - T > n.touchAngle);
1516
+ let y;
1517
+ s.isHorizontal() && i.currentY === i.startY || s.isVertical() && i.currentX === i.startX ? r.isScrolling = !1 : h * h + g * g >= 25 && (y = Math.atan2(Math.abs(g), Math.abs(h)) * 180 / Math.PI, r.isScrolling = s.isHorizontal() ? y > n.touchAngle : 90 - y > n.touchAngle);
1518
1518
  }
1519
1519
  if (r.isScrolling && s.emit("touchMoveOpposite", o), typeof r.startMoving > "u" && (i.currentX !== i.startX || i.currentY !== i.startY) && (r.startMoving = !0), r.isScrolling || o.type === "touchmove" && r.preventTouchMoveFromPointerMove) {
1520
1520
  r.isTouched = !1;
@@ -1523,49 +1523,48 @@ function Ps(t) {
1523
1523
  if (!r.startMoving)
1524
1524
  return;
1525
1525
  s.allowClick = !1, !n.cssMode && o.cancelable && o.preventDefault(), n.touchMoveStopPropagation && !n.nested && o.stopPropagation();
1526
- let h = s.isHorizontal() ? f : v, b = s.isHorizontal() ? i.currentX - i.previousX : i.currentY - i.previousY;
1527
- n.oneWayMovement && (h = Math.abs(h) * (l ? 1 : -1), b = Math.abs(b) * (l ? 1 : -1)), i.diff = h, h *= n.touchRatio, l && (h = -h, b = -b);
1526
+ let m = s.isHorizontal() ? h : g, T = s.isHorizontal() ? i.currentX - i.previousX : i.currentY - i.previousY;
1527
+ n.oneWayMovement && (m = Math.abs(m) * (l ? 1 : -1), T = Math.abs(T) * (l ? 1 : -1)), i.diff = m, m *= n.touchRatio, l && (m = -m, T = -T);
1528
1528
  const M = s.touchesDirection;
1529
- s.swipeDirection = h > 0 ? "prev" : "next", s.touchesDirection = b > 0 ? "prev" : "next";
1530
- const w = s.params.loop && !n.cssMode, p = s.touchesDirection === "next" && s.allowSlideNext || s.touchesDirection === "prev" && s.allowSlidePrev;
1529
+ s.swipeDirection = m > 0 ? "prev" : "next", s.touchesDirection = T > 0 ? "prev" : "next";
1530
+ const w = s.params.loop && !n.cssMode, u = s.touchesDirection === "next" && s.allowSlideNext || s.touchesDirection === "prev" && s.allowSlidePrev;
1531
1531
  if (!r.isMoved) {
1532
- if (w && p && s.loopFix({
1532
+ if (w && u && s.loopFix({
1533
1533
  direction: s.swipeDirection
1534
1534
  }), r.startTranslate = s.getTranslate(), s.setTransition(0), s.animating) {
1535
- const T = new window.CustomEvent("transitionend", {
1535
+ const y = new window.CustomEvent("transitionend", {
1536
1536
  bubbles: !0,
1537
1537
  cancelable: !0,
1538
1538
  detail: {
1539
1539
  bySwiperTouchMove: !0
1540
1540
  }
1541
1541
  });
1542
- s.wrapperEl.dispatchEvent(T);
1542
+ s.wrapperEl.dispatchEvent(y);
1543
1543
  }
1544
1544
  r.allowMomentumBounce = !1, n.grabCursor && (s.allowSlideNext === !0 || s.allowSlidePrev === !0) && s.setGrabCursor(!0), s.emit("sliderFirstMove", o);
1545
1545
  }
1546
- let m;
1547
- if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && r.isMoved && r.allowThresholdMove && M !== s.touchesDirection && w && p && Math.abs(h) >= 1) {
1546
+ if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && r.isMoved && r.allowThresholdMove && M !== s.touchesDirection && w && u && Math.abs(m) >= 1) {
1548
1547
  Object.assign(i, {
1549
1548
  startX: d,
1550
- startY: u,
1549
+ startY: p,
1551
1550
  currentX: d,
1552
- currentY: u,
1551
+ currentY: p,
1553
1552
  startTranslate: r.currentTranslate
1554
1553
  }), r.loopSwapReset = !0, r.startTranslate = r.currentTranslate;
1555
1554
  return;
1556
1555
  }
1557
- s.emit("sliderMove", o), r.isMoved = !0, r.currentTranslate = h + r.startTranslate;
1558
- let g = !0, y = n.resistanceRatio;
1559
- if (n.touchReleaseOnEdges && (y = 0), h > 0 ? (w && p && !m && r.allowThresholdMove && r.currentTranslate > (n.centeredSlides ? s.minTranslate() - s.slidesSizesGrid[s.activeIndex + 1] - (n.slidesPerView !== "auto" && s.slides.length - n.slidesPerView >= 2 ? s.slidesSizesGrid[s.activeIndex + 1] + s.params.spaceBetween : 0) - s.params.spaceBetween : s.minTranslate()) && s.loopFix({
1556
+ s.emit("sliderMove", o), r.isMoved = !0, r.currentTranslate = m + r.startTranslate;
1557
+ let f = !0, v = n.resistanceRatio;
1558
+ if (n.touchReleaseOnEdges && (v = 0), m > 0 ? (w && u && r.allowThresholdMove && r.currentTranslate > (n.centeredSlides ? s.minTranslate() - s.slidesSizesGrid[s.activeIndex + 1] - (n.slidesPerView !== "auto" && s.slides.length - n.slidesPerView >= 2 ? s.slidesSizesGrid[s.activeIndex + 1] + s.params.spaceBetween : 0) - s.params.spaceBetween : s.minTranslate()) && s.loopFix({
1560
1559
  direction: "prev",
1561
1560
  setTranslate: !0,
1562
1561
  activeSlideIndex: 0
1563
- }), r.currentTranslate > s.minTranslate() && (g = !1, n.resistance && (r.currentTranslate = s.minTranslate() - 1 + (-s.minTranslate() + r.startTranslate + h) ** y))) : h < 0 && (w && p && !m && r.allowThresholdMove && r.currentTranslate < (n.centeredSlides ? s.maxTranslate() + s.slidesSizesGrid[s.slidesSizesGrid.length - 1] + s.params.spaceBetween + (n.slidesPerView !== "auto" && s.slides.length - n.slidesPerView >= 2 ? s.slidesSizesGrid[s.slidesSizesGrid.length - 1] + s.params.spaceBetween : 0) : s.maxTranslate()) && s.loopFix({
1562
+ }), r.currentTranslate > s.minTranslate() && (f = !1, n.resistance && (r.currentTranslate = s.minTranslate() - 1 + (-s.minTranslate() + r.startTranslate + m) ** v))) : m < 0 && (w && u && r.allowThresholdMove && r.currentTranslate < (n.centeredSlides ? s.maxTranslate() + s.slidesSizesGrid[s.slidesSizesGrid.length - 1] + s.params.spaceBetween + (n.slidesPerView !== "auto" && s.slides.length - n.slidesPerView >= 2 ? s.slidesSizesGrid[s.slidesSizesGrid.length - 1] + s.params.spaceBetween : 0) : s.maxTranslate()) && s.loopFix({
1564
1563
  direction: "next",
1565
1564
  setTranslate: !0,
1566
1565
  activeSlideIndex: s.slides.length - (n.slidesPerView === "auto" ? s.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
1567
- }), r.currentTranslate < s.maxTranslate() && (g = !1, n.resistance && (r.currentTranslate = s.maxTranslate() + 1 - (s.maxTranslate() - r.startTranslate - h) ** y))), g && (o.preventedByNestedSwiper = !0), !s.allowSlideNext && s.swipeDirection === "next" && r.currentTranslate < r.startTranslate && (r.currentTranslate = r.startTranslate), !s.allowSlidePrev && s.swipeDirection === "prev" && r.currentTranslate > r.startTranslate && (r.currentTranslate = r.startTranslate), !s.allowSlidePrev && !s.allowSlideNext && (r.currentTranslate = r.startTranslate), n.threshold > 0)
1568
- if (Math.abs(h) > n.threshold || r.allowThresholdMove) {
1566
+ }), r.currentTranslate < s.maxTranslate() && (f = !1, n.resistance && (r.currentTranslate = s.maxTranslate() + 1 - (s.maxTranslate() - r.startTranslate - m) ** v))), f && (o.preventedByNestedSwiper = !0), !s.allowSlideNext && s.swipeDirection === "next" && r.currentTranslate < r.startTranslate && (r.currentTranslate = r.startTranslate), !s.allowSlidePrev && s.swipeDirection === "prev" && r.currentTranslate > r.startTranslate && (r.currentTranslate = r.startTranslate), !s.allowSlidePrev && !s.allowSlideNext && (r.currentTranslate = r.startTranslate), n.threshold > 0)
1567
+ if (Math.abs(m) > n.threshold || r.allowThresholdMove) {
1569
1568
  if (!r.allowThresholdMove) {
1570
1569
  r.allowThresholdMove = !0, i.startX = i.currentX, i.startY = i.currentY, r.currentTranslate = r.startTranslate, i.diff = s.isHorizontal() ? i.currentX - i.startX : i.currentY - i.startY;
1571
1570
  return;
@@ -1582,7 +1581,7 @@ function Ms(t) {
1582
1581
  r.originalEvent && (r = r.originalEvent);
1583
1582
  let n;
1584
1583
  if (r.type === "touchend" || r.type === "touchcancel") {
1585
- if (n = [...r.changedTouches].find((g) => g.identifier === s.touchId), !n || n.identifier !== s.touchId) return;
1584
+ if (n = [...r.changedTouches].find((v) => v.identifier === s.touchId), !n || n.identifier !== s.touchId) return;
1586
1585
  } else {
1587
1586
  if (s.touchId !== null || r.pointerId !== s.pointerId) return;
1588
1587
  n = r;
@@ -1603,48 +1602,48 @@ function Ms(t) {
1603
1602
  return;
1604
1603
  }
1605
1604
  i.grabCursor && s.isMoved && s.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
1606
- const d = le(), u = d - s.touchStartTime;
1605
+ const d = le(), p = d - s.touchStartTime;
1607
1606
  if (e.allowClick) {
1608
- const g = r.path || r.composedPath && r.composedPath();
1609
- e.updateClickedSlide(g && g[0] || r.target, g), e.emit("tap click", r), u < 300 && d - s.lastClickTime < 300 && e.emit("doubleTap doubleClick", r);
1607
+ const v = r.path || r.composedPath && r.composedPath();
1608
+ e.updateClickedSlide(v && v[0] || r.target, v), e.emit("tap click", r), p < 300 && d - s.lastClickTime < 300 && e.emit("doubleTap doubleClick", r);
1610
1609
  }
1611
- if (s.lastClickTime = le(), xe(() => {
1610
+ if (s.lastClickTime = le(), Te(() => {
1612
1611
  e.destroyed || (e.allowClick = !0);
1613
1612
  }), !s.isTouched || !s.isMoved || !e.swipeDirection || l.diff === 0 && !s.loopSwapReset || s.currentTranslate === s.startTranslate && !s.loopSwapReset) {
1614
1613
  s.isTouched = !1, s.isMoved = !1, s.startMoving = !1;
1615
1614
  return;
1616
1615
  }
1617
1616
  s.isTouched = !1, s.isMoved = !1, s.startMoving = !1;
1618
- let f;
1619
- if (i.followFinger ? f = a ? e.translate : -e.translate : f = -s.currentTranslate, i.cssMode)
1617
+ let h;
1618
+ if (i.followFinger ? h = a ? e.translate : -e.translate : h = -s.currentTranslate, i.cssMode)
1620
1619
  return;
1621
1620
  if (i.freeMode && i.freeMode.enabled) {
1622
1621
  e.freeMode.onTouchEnd({
1623
- currentPos: f
1622
+ currentPos: h
1624
1623
  });
1625
1624
  return;
1626
1625
  }
1627
- const v = f >= -e.maxTranslate() && !e.params.loop;
1628
- let h = 0, b = e.slidesSizesGrid[0];
1629
- for (let g = 0; g < o.length; g += g < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
1630
- const y = g < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
1631
- typeof o[g + y] < "u" ? (v || f >= o[g] && f < o[g + y]) && (h = g, b = o[g + y] - o[g]) : (v || f >= o[g]) && (h = g, b = o[o.length - 1] - o[o.length - 2]);
1626
+ const g = h >= -e.maxTranslate() && !e.params.loop;
1627
+ let m = 0, T = e.slidesSizesGrid[0];
1628
+ for (let v = 0; v < o.length; v += v < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
1629
+ const y = v < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
1630
+ typeof o[v + y] < "u" ? (g || h >= o[v] && h < o[v + y]) && (m = v, T = o[v + y] - o[v]) : (g || h >= o[v]) && (m = v, T = o[o.length - 1] - o[o.length - 2]);
1632
1631
  }
1633
1632
  let M = null, w = null;
1634
1633
  i.rewind && (e.isBeginning ? w = i.virtual && i.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (M = 0));
1635
- const p = (f - o[h]) / b, m = h < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
1636
- if (u > i.longSwipesMs) {
1634
+ const u = (h - o[m]) / T, f = m < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
1635
+ if (p > i.longSwipesMs) {
1637
1636
  if (!i.longSwipes) {
1638
1637
  e.slideTo(e.activeIndex);
1639
1638
  return;
1640
1639
  }
1641
- e.swipeDirection === "next" && (p >= i.longSwipesRatio ? e.slideTo(i.rewind && e.isEnd ? M : h + m) : e.slideTo(h)), e.swipeDirection === "prev" && (p > 1 - i.longSwipesRatio ? e.slideTo(h + m) : w !== null && p < 0 && Math.abs(p) > i.longSwipesRatio ? e.slideTo(w) : e.slideTo(h));
1640
+ e.swipeDirection === "next" && (u >= i.longSwipesRatio ? e.slideTo(i.rewind && e.isEnd ? M : m + f) : e.slideTo(m)), e.swipeDirection === "prev" && (u > 1 - i.longSwipesRatio ? e.slideTo(m + f) : w !== null && u < 0 && Math.abs(u) > i.longSwipesRatio ? e.slideTo(w) : e.slideTo(m));
1642
1641
  } else {
1643
1642
  if (!i.shortSwipes) {
1644
1643
  e.slideTo(e.activeIndex);
1645
1644
  return;
1646
1645
  }
1647
- e.navigation && (r.target === e.navigation.nextEl || r.target === e.navigation.prevEl) ? r.target === e.navigation.nextEl ? e.slideTo(h + m) : e.slideTo(h) : (e.swipeDirection === "next" && e.slideTo(M !== null ? M : h + m), e.swipeDirection === "prev" && e.slideTo(w !== null ? w : h));
1646
+ e.navigation && (r.target === e.navigation.nextEl || r.target === e.navigation.prevEl) ? r.target === e.navigation.nextEl ? e.slideTo(m + f) : e.slideTo(m) : (e.swipeDirection === "next" && e.slideTo(M !== null ? M : m + f), e.swipeDirection === "prev" && e.slideTo(w !== null ? w : m));
1648
1647
  }
1649
1648
  }
1650
1649
  function Be() {
@@ -1751,20 +1750,20 @@ function $s() {
1751
1750
  if (!i || i && Object.keys(i).length === 0) return;
1752
1751
  const l = K(), a = r.breakpointsBase === "window" || !r.breakpointsBase ? r.breakpointsBase : "container", o = ["window", "container"].includes(r.breakpointsBase) || !r.breakpointsBase ? t.el : l.querySelector(r.breakpointsBase), c = t.getBreakpoint(i, a, o);
1753
1752
  if (!c || t.currentBreakpoint === c) return;
1754
- const d = (c in i ? i[c] : void 0) || t.originalParams, u = Ne(t, r), f = Ne(t, d), v = t.params.grabCursor, h = d.grabCursor, b = r.enabled;
1755
- u && !f ? (n.classList.remove(`${r.containerModifierClass}grid`, `${r.containerModifierClass}grid-column`), t.emitContainerClasses()) : !u && f && (n.classList.add(`${r.containerModifierClass}grid`), (d.grid.fill && d.grid.fill === "column" || !d.grid.fill && r.grid.fill === "column") && n.classList.add(`${r.containerModifierClass}grid-column`), t.emitContainerClasses()), v && !h ? t.unsetGrabCursor() : !v && h && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((y) => {
1753
+ const d = (c in i ? i[c] : void 0) || t.originalParams, p = Ne(t, r), h = Ne(t, d), g = t.params.grabCursor, m = d.grabCursor, T = r.enabled;
1754
+ p && !h ? (n.classList.remove(`${r.containerModifierClass}grid`, `${r.containerModifierClass}grid-column`), t.emitContainerClasses()) : !p && h && (n.classList.add(`${r.containerModifierClass}grid`), (d.grid.fill && d.grid.fill === "column" || !d.grid.fill && r.grid.fill === "column") && n.classList.add(`${r.containerModifierClass}grid-column`), t.emitContainerClasses()), g && !m ? t.unsetGrabCursor() : !g && m && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((y) => {
1756
1755
  if (typeof d[y] > "u") return;
1757
- const T = r[y] && r[y].enabled, A = d[y] && d[y].enabled;
1758
- T && !A && t[y].disable(), !T && A && t[y].enable();
1756
+ const C = r[y] && r[y].enabled, A = d[y] && d[y].enabled;
1757
+ C && !A && t[y].disable(), !C && A && t[y].enable();
1759
1758
  });
1760
- const M = d.direction && d.direction !== r.direction, w = r.loop && (d.slidesPerView !== r.slidesPerView || M), p = r.loop;
1759
+ const M = d.direction && d.direction !== r.direction, w = r.loop && (d.slidesPerView !== r.slidesPerView || M), u = r.loop;
1761
1760
  M && s && t.changeDirection(), N(t.params, d);
1762
- const m = t.params.enabled, g = t.params.loop;
1761
+ const f = t.params.enabled, v = t.params.loop;
1763
1762
  Object.assign(t, {
1764
1763
  allowTouchMove: t.params.allowTouchMove,
1765
1764
  allowSlideNext: t.params.allowSlideNext,
1766
1765
  allowSlidePrev: t.params.allowSlidePrev
1767
- }), b && !m ? t.disable() : !b && m && t.enable(), t.currentBreakpoint = c, t.emit("_beforeBreakpoint", d), s && (w ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !p && g ? (t.loopCreate(e), t.updateSlides()) : p && !g && t.loopDestroy()), t.emit("breakpoint", d);
1766
+ }), T && !f ? t.disable() : !T && f && t.enable(), t.currentBreakpoint = c, t.emit("_beforeBreakpoint", d), s && (w ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !u && v ? (t.loopCreate(e), t.updateSlides()) : u && !v && t.loopDestroy()), t.emit("breakpoint", d);
1768
1767
  }
1769
1768
  function Gs(t, e, s) {
1770
1769
  if (e === void 0 && (e = "window"), !t || e === "container" && !s) return;
@@ -2001,19 +2000,19 @@ function Rs(t, e) {
2001
2000
  }), N(e, s);
2002
2001
  };
2003
2002
  }
2004
- const be = {
2003
+ const ye = {
2005
2004
  eventsEmitter: Vt,
2006
2005
  update: Jt,
2007
2006
  translate: is,
2008
2007
  transition: os,
2009
- slide: vs,
2010
- loop: ys,
2011
- grabCursor: xs,
2008
+ slide: gs,
2009
+ loop: bs,
2010
+ grabCursor: Ts,
2012
2011
  events: _s,
2013
2012
  breakpoints: Bs,
2014
2013
  checkOverflow: Hs,
2015
2014
  classes: Vs
2016
- }, ye = {};
2015
+ }, be = {};
2017
2016
  let ze = class q {
2018
2017
  constructor() {
2019
2018
  let e, s;
@@ -2023,11 +2022,11 @@ let ze = class q {
2023
2022
  const l = K();
2024
2023
  if (s.el && typeof s.el == "string" && l.querySelectorAll(s.el).length > 1) {
2025
2024
  const d = [];
2026
- return l.querySelectorAll(s.el).forEach((u) => {
2027
- const f = N({}, s, {
2028
- el: u
2025
+ return l.querySelectorAll(s.el).forEach((p) => {
2026
+ const h = N({}, s, {
2027
+ el: p
2029
2028
  });
2030
- d.push(new q(f));
2029
+ d.push(new q(h));
2031
2030
  }), d;
2032
2031
  }
2033
2032
  const a = this;
@@ -2047,7 +2046,7 @@ let ze = class q {
2047
2046
  });
2048
2047
  });
2049
2048
  const c = N({}, Pe, o);
2050
- return a.params = N({}, c, ye, s), a.originalParams = N({}, a.params), a.passedParams = N({}, s), a.params && a.params.on && Object.keys(a.params.on).forEach((d) => {
2049
+ return a.params = N({}, c, be, s), a.originalParams = N({}, a.params), a.passedParams = N({}, s), a.params && a.params.on && Object.keys(a.params.on).forEach((d) => {
2051
2050
  a.on(d, a.params.on[d]);
2052
2051
  }), a.params && a.params.onAny && a.onAny(a.params.onAny), Object.assign(a, {
2053
2052
  enabled: a.params.enabled,
@@ -2200,17 +2199,17 @@ let ze = class q {
2200
2199
  let d = 1;
2201
2200
  if (typeof n.slidesPerView == "number") return n.slidesPerView;
2202
2201
  if (n.centeredSlides) {
2203
- let u = i[c] ? Math.ceil(i[c].swiperSlideSize) : 0, f;
2204
- for (let v = c + 1; v < i.length; v += 1)
2205
- i[v] && !f && (u += Math.ceil(i[v].swiperSlideSize), d += 1, u > o && (f = !0));
2206
- for (let v = c - 1; v >= 0; v -= 1)
2207
- i[v] && !f && (u += i[v].swiperSlideSize, d += 1, u > o && (f = !0));
2202
+ let p = i[c] ? Math.ceil(i[c].swiperSlideSize) : 0, h;
2203
+ for (let g = c + 1; g < i.length; g += 1)
2204
+ i[g] && !h && (p += Math.ceil(i[g].swiperSlideSize), d += 1, p > o && (h = !0));
2205
+ for (let g = c - 1; g >= 0; g -= 1)
2206
+ i[g] && !h && (p += i[g].swiperSlideSize, d += 1, p > o && (h = !0));
2208
2207
  } else if (e === "current")
2209
- for (let u = c + 1; u < i.length; u += 1)
2210
- (s ? l[u] + a[u] - l[c] < o : l[u] - l[c] < o) && (d += 1);
2208
+ for (let p = c + 1; p < i.length; p += 1)
2209
+ (s ? l[p] + a[p] - l[c] < o : l[p] - l[c] < o) && (d += 1);
2211
2210
  else
2212
- for (let u = c - 1; u >= 0; u -= 1)
2213
- l[c] - l[u] < o && (d += 1);
2211
+ for (let p = c - 1; p >= 0; p -= 1)
2212
+ l[c] - l[p] < o && (d += 1);
2214
2213
  return d;
2215
2214
  }
2216
2215
  update() {
@@ -2300,10 +2299,10 @@ let ze = class q {
2300
2299
  }), e !== !1 && (r.el && typeof r.el != "string" && (r.el.swiper = null), kt(r)), r.destroyed = !0), null;
2301
2300
  }
2302
2301
  static extendDefaults(e) {
2303
- N(ye, e);
2302
+ N(be, e);
2304
2303
  }
2305
2304
  static get extendedDefaults() {
2306
- return ye;
2305
+ return be;
2307
2306
  }
2308
2307
  static get defaults() {
2309
2308
  return Pe;
@@ -2317,9 +2316,9 @@ let ze = class q {
2317
2316
  return Array.isArray(e) ? (e.forEach((s) => q.installModule(s)), q) : (q.installModule(e), q);
2318
2317
  }
2319
2318
  };
2320
- Object.keys(be).forEach((t) => {
2321
- Object.keys(be[t]).forEach((e) => {
2322
- ze.prototype[e] = be[t][e];
2319
+ Object.keys(ye).forEach((t) => {
2320
+ Object.keys(ye[t]).forEach((e) => {
2321
+ ze.prototype[e] = ye[t][e];
2323
2322
  });
2324
2323
  });
2325
2324
  ze.use([Dt, Ft]);
@@ -2481,27 +2480,27 @@ function Ws(t) {
2481
2480
  scrollbarEl: a,
2482
2481
  paginationEl: o
2483
2482
  } = t;
2484
- const c = n.filter((S) => S !== "children" && S !== "direction" && S !== "wrapperClass"), {
2483
+ const c = n.filter((b) => b !== "children" && b !== "direction" && b !== "wrapperClass"), {
2485
2484
  params: d,
2486
- pagination: u,
2487
- navigation: f,
2488
- scrollbar: v,
2489
- virtual: h,
2490
- thumbs: b
2485
+ pagination: p,
2486
+ navigation: h,
2487
+ scrollbar: g,
2488
+ virtual: m,
2489
+ thumbs: T
2491
2490
  } = e;
2492
- let M, w, p, m, g, y, T, A;
2493
- n.includes("thumbs") && r.thumbs && r.thumbs.swiper && !r.thumbs.swiper.destroyed && d.thumbs && (!d.thumbs.swiper || d.thumbs.swiper.destroyed) && (M = !0), n.includes("controller") && r.controller && r.controller.control && d.controller && !d.controller.control && (w = !0), n.includes("pagination") && r.pagination && (r.pagination.el || o) && (d.pagination || d.pagination === !1) && u && !u.el && (p = !0), n.includes("scrollbar") && r.scrollbar && (r.scrollbar.el || a) && (d.scrollbar || d.scrollbar === !1) && v && !v.el && (m = !0), n.includes("navigation") && r.navigation && (r.navigation.prevEl || l) && (r.navigation.nextEl || i) && (d.navigation || d.navigation === !1) && f && !f.prevEl && !f.nextEl && (g = !0);
2494
- const I = (S) => {
2495
- e[S] && (e[S].destroy(), S === "navigation" ? (e.isElement && (e[S].prevEl.remove(), e[S].nextEl.remove()), d[S].prevEl = void 0, d[S].nextEl = void 0, e[S].prevEl = void 0, e[S].nextEl = void 0) : (e.isElement && e[S].el.remove(), d[S].el = void 0, e[S].el = void 0));
2491
+ let M, w, u, f, v, y, C, A;
2492
+ n.includes("thumbs") && r.thumbs && r.thumbs.swiper && !r.thumbs.swiper.destroyed && d.thumbs && (!d.thumbs.swiper || d.thumbs.swiper.destroyed) && (M = !0), n.includes("controller") && r.controller && r.controller.control && d.controller && !d.controller.control && (w = !0), n.includes("pagination") && r.pagination && (r.pagination.el || o) && (d.pagination || d.pagination === !1) && p && !p.el && (u = !0), n.includes("scrollbar") && r.scrollbar && (r.scrollbar.el || a) && (d.scrollbar || d.scrollbar === !1) && g && !g.el && (f = !0), n.includes("navigation") && r.navigation && (r.navigation.prevEl || l) && (r.navigation.nextEl || i) && (d.navigation || d.navigation === !1) && h && !h.prevEl && !h.nextEl && (v = !0);
2493
+ const I = (b) => {
2494
+ e[b] && (e[b].destroy(), b === "navigation" ? (e.isElement && (e[b].prevEl.remove(), e[b].nextEl.remove()), d[b].prevEl = void 0, d[b].nextEl = void 0, e[b].prevEl = void 0, e[b].nextEl = void 0) : (e.isElement && e[b].el.remove(), d[b].el = void 0, e[b].el = void 0));
2496
2495
  };
2497
- n.includes("loop") && e.isElement && (d.loop && !r.loop ? y = !0 : !d.loop && r.loop ? T = !0 : A = !0), c.forEach((S) => {
2498
- if (Q(d[S]) && Q(r[S]))
2499
- Object.assign(d[S], r[S]), (S === "navigation" || S === "pagination" || S === "scrollbar") && "enabled" in r[S] && !r[S].enabled && I(S);
2496
+ n.includes("loop") && e.isElement && (d.loop && !r.loop ? y = !0 : !d.loop && r.loop ? C = !0 : A = !0), c.forEach((b) => {
2497
+ if (Q(d[b]) && Q(r[b]))
2498
+ Object.assign(d[b], r[b]), (b === "navigation" || b === "pagination" || b === "scrollbar") && "enabled" in r[b] && !r[b].enabled && I(b);
2500
2499
  else {
2501
- const E = r[S];
2502
- (E === !0 || E === !1) && (S === "navigation" || S === "pagination" || S === "scrollbar") ? E === !1 && I(S) : d[S] = r[S];
2500
+ const S = r[b];
2501
+ (S === !0 || S === !1) && (b === "navigation" || b === "pagination" || b === "scrollbar") ? S === !1 && I(b) : d[b] = r[b];
2503
2502
  }
2504
- }), c.includes("controller") && !w && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && s && h && d.virtual.enabled ? (h.slides = s, h.update(!0)) : n.includes("virtual") && h && d.virtual.enabled && (s && (h.slides = s), h.update(!0)), n.includes("children") && s && d.loop && (A = !0), M && b.init() && b.update(!0), w && (e.controller.control = d.controller.control), p && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (d.pagination.el = o), u.init(), u.render(), u.update()), m && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), e.el.appendChild(a)), a && (d.scrollbar.el = a), v.init(), v.updateSize(), v.setTranslate()), g && (e.isElement && ((!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-button-next"), i.innerHTML = e.hostEl.constructor.nextButtonSvg, i.part.add("button-next"), e.el.appendChild(i)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), l.innerHTML = e.hostEl.constructor.prevButtonSvg, l.part.add("button-prev"), e.el.appendChild(l))), i && (d.navigation.nextEl = i), l && (d.navigation.prevEl = l), f.init(), f.update()), n.includes("allowSlideNext") && (e.allowSlideNext = r.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = r.allowSlidePrev), n.includes("direction") && e.changeDirection(r.direction, !1), (y || A) && e.loopDestroy(), (T || A) && e.loopCreate(), e.update();
2503
+ }), c.includes("controller") && !w && e.controller && e.controller.control && d.controller && d.controller.control && (e.controller.control = d.controller.control), n.includes("children") && s && m && d.virtual.enabled ? (m.slides = s, m.update(!0)) : n.includes("virtual") && m && d.virtual.enabled && (s && (m.slides = s), m.update(!0)), n.includes("children") && s && d.loop && (A = !0), M && T.init() && T.update(!0), w && (e.controller.control = d.controller.control), u && (e.isElement && (!o || typeof o == "string") && (o = document.createElement("div"), o.classList.add("swiper-pagination"), o.part.add("pagination"), e.el.appendChild(o)), o && (d.pagination.el = o), p.init(), p.render(), p.update()), f && (e.isElement && (!a || typeof a == "string") && (a = document.createElement("div"), a.classList.add("swiper-scrollbar"), a.part.add("scrollbar"), e.el.appendChild(a)), a && (d.scrollbar.el = a), g.init(), g.updateSize(), g.setTranslate()), v && (e.isElement && ((!i || typeof i == "string") && (i = document.createElement("div"), i.classList.add("swiper-button-next"), i.innerHTML = e.hostEl.constructor.nextButtonSvg, i.part.add("button-next"), e.el.appendChild(i)), (!l || typeof l == "string") && (l = document.createElement("div"), l.classList.add("swiper-button-prev"), l.innerHTML = e.hostEl.constructor.prevButtonSvg, l.part.add("button-prev"), e.el.appendChild(l))), i && (d.navigation.nextEl = i), l && (d.navigation.prevEl = l), h.init(), h.update()), n.includes("allowSlideNext") && (e.allowSlideNext = r.allowSlideNext), n.includes("allowSlidePrev") && (e.allowSlidePrev = r.allowSlidePrev), n.includes("direction") && e.changeDirection(r.direction, !1), (y || A) && e.loopDestroy(), (C || A) && e.loopCreate(), e.update();
2505
2504
  }
2506
2505
  function Ys(t, e) {
2507
2506
  t === void 0 && (t = {}), e === void 0 && (e = !0);
@@ -2557,15 +2556,15 @@ function Us(t, e, s, r, n) {
2557
2556
  const Qs = (t) => {
2558
2557
  !t || t.destroyed || !t.params.virtual || t.params.virtual && !t.params.virtual.enabled || (t.updateSlides(), t.updateProgress(), t.updateSlidesClasses(), t.parallax && t.params.parallax && t.params.parallax.enabled && t.parallax.setTranslate());
2559
2558
  };
2560
- function pe() {
2561
- return pe = Object.assign ? Object.assign.bind() : function(t) {
2559
+ function ue() {
2560
+ return ue = Object.assign ? Object.assign.bind() : function(t) {
2562
2561
  for (var e = 1; e < arguments.length; e++) {
2563
2562
  var s = arguments[e];
2564
2563
  for (var r in s)
2565
2564
  Object.prototype.hasOwnProperty.call(s, r) && (t[r] = s[r]);
2566
2565
  }
2567
2566
  return t;
2568
- }, pe.apply(this, arguments);
2567
+ }, ue.apply(this, arguments);
2569
2568
  }
2570
2569
  function at(t) {
2571
2570
  return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
@@ -2601,8 +2600,8 @@ function Ks(t) {
2601
2600
  function Js(t, e, s) {
2602
2601
  if (!s) return null;
2603
2602
  const r = (d) => {
2604
- let u = d;
2605
- return d < 0 ? u = e.length + d : u >= e.length && (u = u - e.length), u;
2603
+ let p = d;
2604
+ return d < 0 ? p = e.length + d : p >= e.length && (p = p - e.length), p;
2606
2605
  }, n = t.isHorizontal() ? {
2607
2606
  [t.rtlTranslate ? "right" : "left"]: `${s.offset}px`
2608
2607
  } : {
@@ -2613,14 +2612,14 @@ function Js(t, e, s) {
2613
2612
  } = s, a = t.params.loop ? -e.length : 0, o = t.params.loop ? e.length * 2 : e.length, c = [];
2614
2613
  for (let d = a; d < o; d += 1)
2615
2614
  d >= i && d <= l && c.push(e[r(d)]);
2616
- return c.map((d, u) => /* @__PURE__ */ $.cloneElement(d, {
2615
+ return c.map((d, p) => /* @__PURE__ */ $.cloneElement(d, {
2617
2616
  swiper: t,
2618
2617
  style: n,
2619
- key: d.props.virtualIndex || d.key || `slide-${u}`
2618
+ key: d.props.virtualIndex || d.key || `slide-${p}`
2620
2619
  }));
2621
2620
  }
2622
2621
  function ee(t, e) {
2623
- return typeof window > "u" ? Y(t, e) : gt(t, e);
2622
+ return typeof window > "u" ? Y(t, e) : vt(t, e);
2624
2623
  }
2625
2624
  const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__PURE__ */ Ae(function(t, e) {
2626
2625
  let {
@@ -2631,24 +2630,24 @@ const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__P
2631
2630
  onSwiper: l,
2632
2631
  ...a
2633
2632
  } = t === void 0 ? {} : t, o = !1;
2634
- const [c, d] = W("swiper"), [u, f] = W(null), [v, h] = W(!1), b = D(!1), M = D(null), w = D(null), p = D(null), m = D(null), g = D(null), y = D(null), T = D(null), A = D(null), {
2633
+ const [c, d] = W("swiper"), [p, h] = W(null), [g, m] = W(!1), T = D(!1), M = D(null), w = D(null), u = D(null), f = D(null), v = D(null), y = D(null), C = D(null), A = D(null), {
2635
2634
  params: I,
2636
- passedParams: S,
2637
- rest: E,
2638
- events: x
2635
+ passedParams: b,
2636
+ rest: S,
2637
+ events: E
2639
2638
  } = Ys(a), {
2640
2639
  slides: k,
2641
2640
  slots: L
2642
2641
  } = Ks(i), O = () => {
2643
- h(!v);
2642
+ m(!g);
2644
2643
  };
2645
2644
  Object.assign(I.on, {
2646
2645
  _containerClasses(G, j) {
2647
2646
  d(j);
2648
2647
  }
2649
2648
  });
2650
- const C = () => {
2651
- Object.assign(I.on, x), o = !0;
2649
+ const x = () => {
2650
+ Object.assign(I.on, E), o = !0;
2652
2651
  const G = {
2653
2652
  ...I
2654
2653
  };
@@ -2657,33 +2656,33 @@ const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__P
2657
2656
  const j = {
2658
2657
  cache: !1,
2659
2658
  slides: k,
2660
- renderExternal: f,
2659
+ renderExternal: h,
2661
2660
  renderExternalUpdate: !1
2662
2661
  };
2663
2662
  J(w.current.params.virtual, j), J(w.current.originalParams.virtual, j);
2664
2663
  }
2665
2664
  };
2666
- M.current || C(), w.current && w.current.on("_beforeBreakpoint", O);
2665
+ M.current || x(), w.current && w.current.on("_beforeBreakpoint", O);
2667
2666
  const z = () => {
2668
- o || !x || !w.current || Object.keys(x).forEach((G) => {
2669
- w.current.on(G, x[G]);
2667
+ o || !E || !w.current || Object.keys(E).forEach((G) => {
2668
+ w.current.on(G, E[G]);
2670
2669
  });
2671
2670
  }, U = () => {
2672
- !x || !w.current || Object.keys(x).forEach((G) => {
2673
- w.current.off(G, x[G]);
2671
+ !E || !w.current || Object.keys(E).forEach((G) => {
2672
+ w.current.off(G, E[G]);
2674
2673
  });
2675
2674
  };
2676
2675
  Y(() => () => {
2677
2676
  w.current && w.current.off("_beforeBreakpoint", O);
2678
2677
  }), Y(() => {
2679
- !b.current && w.current && (w.current.emitSlidesClasses(), b.current = !0);
2678
+ !T.current && w.current && (w.current.emitSlidesClasses(), T.current = !0);
2680
2679
  }), ee(() => {
2681
2680
  if (e && (e.current = M.current), !!M.current)
2682
- return w.current.destroyed && C(), Xs({
2681
+ return w.current.destroyed && x(), Xs({
2683
2682
  el: M.current,
2684
- nextEl: g.current,
2683
+ nextEl: v.current,
2685
2684
  prevEl: y.current,
2686
- paginationEl: T.current,
2685
+ paginationEl: C.current,
2687
2686
  scrollbarEl: A.current,
2688
2687
  swiper: w.current
2689
2688
  }, I), l && !w.current.destroyed && l(w.current), () => {
@@ -2691,32 +2690,32 @@ const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__P
2691
2690
  };
2692
2691
  }, []), ee(() => {
2693
2692
  z();
2694
- const G = Us(S, p.current, k, m.current, (j) => j.key);
2695
- return p.current = S, m.current = k, G.length && w.current && !w.current.destroyed && Ws({
2693
+ const G = Us(b, u.current, k, f.current, (j) => j.key);
2694
+ return u.current = b, f.current = k, G.length && w.current && !w.current.destroyed && Ws({
2696
2695
  swiper: w.current,
2697
2696
  slides: k,
2698
- passedParams: S,
2697
+ passedParams: b,
2699
2698
  changedParams: G,
2700
- nextEl: g.current,
2699
+ nextEl: v.current,
2701
2700
  prevEl: y.current,
2702
2701
  scrollbarEl: A.current,
2703
- paginationEl: T.current
2702
+ paginationEl: C.current
2704
2703
  }), () => {
2705
2704
  U();
2706
2705
  };
2707
2706
  }), ee(() => {
2708
2707
  Qs(w.current);
2709
- }, [u]);
2708
+ }, [p]);
2710
2709
  function V() {
2711
- return I.virtual ? Js(w.current, k, u) : k.map((G, j) => /* @__PURE__ */ $.cloneElement(G, {
2710
+ return I.virtual ? Js(w.current, k, p) : k.map((G, j) => /* @__PURE__ */ $.cloneElement(G, {
2712
2711
  swiper: w.current,
2713
2712
  swiperSlideIndex: j
2714
2713
  }));
2715
2714
  }
2716
- return /* @__PURE__ */ $.createElement(r, pe({
2715
+ return /* @__PURE__ */ $.createElement(r, ue({
2717
2716
  ref: M,
2718
2717
  className: nt(`${c}${s ? ` ${s}` : ""}`)
2719
- }, E), /* @__PURE__ */ $.createElement(Zs.Provider, {
2718
+ }, S), /* @__PURE__ */ $.createElement(Zs.Provider, {
2720
2719
  value: w.current
2721
2720
  }, L["container-start"], /* @__PURE__ */ $.createElement(n, {
2722
2721
  className: qs(I.wrapperClass)
@@ -2724,13 +2723,13 @@ const De = /* @__PURE__ */ He(null), Zs = /* @__PURE__ */ He(null), ot = /* @__P
2724
2723
  ref: y,
2725
2724
  className: "swiper-button-prev"
2726
2725
  }), /* @__PURE__ */ $.createElement("div", {
2727
- ref: g,
2726
+ ref: v,
2728
2727
  className: "swiper-button-next"
2729
2728
  })), it(I) && /* @__PURE__ */ $.createElement("div", {
2730
2729
  ref: A,
2731
2730
  className: "swiper-scrollbar"
2732
2731
  }), rt(I) && /* @__PURE__ */ $.createElement("div", {
2733
- ref: T,
2732
+ ref: C,
2734
2733
  className: "swiper-pagination"
2735
2734
  }), L["container-end"]));
2736
2735
  });
@@ -2747,14 +2746,14 @@ const ae = /* @__PURE__ */ Ae(function(t, e) {
2747
2746
  swiperSlideIndex: c,
2748
2747
  ...d
2749
2748
  } = t === void 0 ? {} : t;
2750
- const u = D(null), [f, v] = W("swiper-slide"), [h, b] = W(!1);
2751
- function M(g, y, T) {
2752
- y === u.current && v(T);
2749
+ const p = D(null), [h, g] = W("swiper-slide"), [m, T] = W(!1);
2750
+ function M(v, y, C) {
2751
+ y === p.current && g(C);
2753
2752
  }
2754
2753
  ee(() => {
2755
- if (typeof c < "u" && (u.current.swiperSlideIndex = c), e && (e.current = u.current), !(!u.current || !i)) {
2754
+ if (typeof c < "u" && (p.current.swiperSlideIndex = c), e && (e.current = p.current), !(!p.current || !i)) {
2756
2755
  if (i.destroyed) {
2757
- f !== "swiper-slide" && v("swiper-slide");
2756
+ h !== "swiper-slide" && g("swiper-slide");
2758
2757
  return;
2759
2758
  }
2760
2759
  return i.on("_slideClass", M), () => {
@@ -2762,31 +2761,31 @@ const ae = /* @__PURE__ */ Ae(function(t, e) {
2762
2761
  };
2763
2762
  }
2764
2763
  }), ee(() => {
2765
- i && u.current && !i.destroyed && v(i.getSlideClasses(u.current));
2764
+ i && p.current && !i.destroyed && g(i.getSlideClasses(p.current));
2766
2765
  }, [i]);
2767
2766
  const w = {
2768
- isActive: f.indexOf("swiper-slide-active") >= 0,
2769
- isVisible: f.indexOf("swiper-slide-visible") >= 0,
2770
- isPrev: f.indexOf("swiper-slide-prev") >= 0,
2771
- isNext: f.indexOf("swiper-slide-next") >= 0
2772
- }, p = () => typeof r == "function" ? r(w) : r, m = () => {
2773
- b(!0);
2767
+ isActive: h.indexOf("swiper-slide-active") >= 0,
2768
+ isVisible: h.indexOf("swiper-slide-visible") >= 0,
2769
+ isPrev: h.indexOf("swiper-slide-prev") >= 0,
2770
+ isNext: h.indexOf("swiper-slide-next") >= 0
2771
+ }, u = () => typeof r == "function" ? r(w) : r, f = () => {
2772
+ T(!0);
2774
2773
  };
2775
- return /* @__PURE__ */ $.createElement(s, pe({
2776
- ref: u,
2777
- className: nt(`${f}${n ? ` ${n}` : ""}`),
2774
+ return /* @__PURE__ */ $.createElement(s, ue({
2775
+ ref: p,
2776
+ className: nt(`${h}${n ? ` ${n}` : ""}`),
2778
2777
  "data-swiper-slide-index": o,
2779
- onLoad: m
2778
+ onLoad: f
2780
2779
  }, d), l && /* @__PURE__ */ $.createElement(De.Provider, {
2781
2780
  value: w
2782
2781
  }, /* @__PURE__ */ $.createElement("div", {
2783
2782
  className: "swiper-zoom-container",
2784
2783
  "data-swiper-zoom": typeof l == "number" ? l : void 0
2785
- }, p(), a && !h && /* @__PURE__ */ $.createElement("div", {
2784
+ }, u(), a && !m && /* @__PURE__ */ $.createElement("div", {
2786
2785
  className: "swiper-lazy-preloader"
2787
2786
  }))), !l && /* @__PURE__ */ $.createElement(De.Provider, {
2788
2787
  value: w
2789
- }, p(), a && !h && /* @__PURE__ */ $.createElement("div", {
2788
+ }, u(), a && !m && /* @__PURE__ */ $.createElement("div", {
2790
2789
  className: "swiper-lazy-preloader"
2791
2790
  })));
2792
2791
  });
@@ -2814,7 +2813,7 @@ const er = () => ot, tr = /* @__PURE__ */ _(er())({
2814
2813
  name: "ScreenTextBlock",
2815
2814
  class: "s11xps29",
2816
2815
  propsAsIs: !1
2817
- }), pt = /* @__PURE__ */ _("div")({
2816
+ }), ut = /* @__PURE__ */ _("div")({
2818
2817
  name: "ScreenTitle",
2819
2818
  class: "s14qstuv",
2820
2819
  propsAsIs: !1
@@ -2822,7 +2821,7 @@ const er = () => ot, tr = /* @__PURE__ */ _(er())({
2822
2821
  name: "ScreenDescription",
2823
2822
  class: "s14mdh2e",
2824
2823
  propsAsIs: !1
2825
- }), ue = /* @__PURE__ */ _("button")({
2824
+ }), pe = /* @__PURE__ */ _("button")({
2826
2825
  name: "ScreenButton",
2827
2826
  class: "sqtjig9",
2828
2827
  propsAsIs: !1
@@ -2838,7 +2837,7 @@ const er = () => ot, tr = /* @__PURE__ */ _(er())({
2838
2837
  name: "EmergencyScreenDescription",
2839
2838
  class: "e1xecypc",
2840
2839
  propsAsIs: !1
2841
- }), lr = () => ue, or = /* @__PURE__ */ _(lr())({
2840
+ }), lr = () => pe, or = /* @__PURE__ */ _(lr())({
2842
2841
  name: "EmergencyScreenButton",
2843
2842
  class: "e1k6zoyu",
2844
2843
  propsAsIs: !0
@@ -2852,27 +2851,27 @@ const er = () => ot, tr = /* @__PURE__ */ _(er())({
2852
2851
  name: "ScreenContainerBox",
2853
2852
  class: "s28ooi9",
2854
2853
  propsAsIs: !1
2855
- }), me = ({ children: t }) => /* @__PURE__ */ P(dr, { className: "ScreenContainer", children: /* @__PURE__ */ P("div", { children: t }) }), cr = /* @__PURE__ */ _("img")({
2854
+ }), fe = ({ children: t }) => /* @__PURE__ */ P(dr, { className: "ScreenContainer", children: /* @__PURE__ */ P("div", { children: t }) }), cr = /* @__PURE__ */ _("img")({
2856
2855
  name: "EndScreenMedia",
2857
2856
  class: "e8s3kc9",
2858
2857
  propsAsIs: !1
2859
- }), pr = () => dt, ur = /* @__PURE__ */ _(pr())({
2858
+ }), ur = () => dt, pr = /* @__PURE__ */ _(ur())({
2860
2859
  name: "EndScreenSponsorIcon",
2861
2860
  class: "e1uswib2",
2862
2861
  propsAsIs: !0
2863
- }), mr = ({ onEvent: t }) => {
2862
+ }), fr = ({ onEvent: t }) => {
2864
2863
  const [e, s] = W(
2865
2864
  0
2866
2865
  /* FIRST */
2867
2866
  );
2868
- return e === 0 ? /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Me, { children: [
2869
- /* @__PURE__ */ P(ur, {}),
2867
+ return e === 0 ? /* @__PURE__ */ P(fe, { children: /* @__PURE__ */ F(Me, { children: [
2868
+ /* @__PURE__ */ P(pr, {}),
2870
2869
  /* @__PURE__ */ F(ct, { children: [
2871
- /* @__PURE__ */ P(pt, { children: "Great picks!" }),
2870
+ /* @__PURE__ */ P(ut, { children: "Great picks!" }),
2872
2871
  /* @__PURE__ */ P(ke, { children: "Stay in the Enhanced Stream for live results, predictions, trivia, polls, and match insights." })
2873
2872
  ] }),
2874
2873
  /* @__PURE__ */ P(
2875
- ue,
2874
+ pe,
2876
2875
  {
2877
2876
  "data-a": "intr",
2878
2877
  onClick: () => {
@@ -2885,59 +2884,58 @@ const er = () => ot, tr = /* @__PURE__ */ _(er())({
2885
2884
  children: "Continue"
2886
2885
  }
2887
2886
  )
2888
- ] }) }, "end") : /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Me, { children: [
2887
+ ] }) }, "end") : /* @__PURE__ */ P(fe, { children: /* @__PURE__ */ F(Me, { children: [
2889
2888
  /* @__PURE__ */ P(cr, { src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png" }),
2890
2889
  /* @__PURE__ */ P(ke, { children: "Look for more live match insights, predictions and more." }),
2891
- /* @__PURE__ */ P(ue, { "data-a": "intr", onClick: () => t({ type: "slOpenGameCenter" }), children: "Open Game Center" })
2890
+ /* @__PURE__ */ P(pe, { "data-a": "intr", onClick: () => t({ type: "slOpenGameCenter" }), children: "Open Game Center" })
2892
2891
  ] }) }, "end");
2893
- }, fr = /* @__PURE__ */ _("div")({
2892
+ }, mr = /* @__PURE__ */ _("div")({
2894
2893
  name: "Container",
2895
2894
  class: "cv31tt7",
2896
2895
  propsAsIs: !1
2897
2896
  }), Le = ({
2898
2897
  className: t
2899
- }) => /* @__PURE__ */ P(fr, {
2898
+ }) => /* @__PURE__ */ P(mr, {
2900
2899
  className: t,
2901
- children: /* @__PURE__ */ P(yt, {})
2900
+ children: /* @__PURE__ */ P(bt, {})
2902
2901
  }), hr = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(St, { close: () => {
2903
- }, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, vr = /* @__PURE__ */ _("span")({
2902
+ }, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, gr = /* @__PURE__ */ _("span")({
2904
2903
  name: "NextButton",
2905
2904
  class: "n991vvm",
2906
2905
  propsAsIs: !1
2907
- }), gr = () => te, wr = /* @__PURE__ */ _(gr())({
2906
+ }), vr = () => te, wr = /* @__PURE__ */ _(vr())({
2908
2907
  name: "IconArrowRight",
2909
2908
  class: "inbj36g",
2910
2909
  propsAsIs: !0
2911
- }), br = /* @__PURE__ */ _("div")({
2910
+ }), yr = /* @__PURE__ */ _("div")({
2912
2911
  name: "StartScreenSponsor",
2913
2912
  class: "szrvgt",
2914
2913
  propsAsIs: !1
2915
- }), yr = /* @__PURE__ */ _("div")({
2914
+ }), br = /* @__PURE__ */ _("div")({
2916
2915
  name: "StartScreenNote",
2917
2916
  class: "swqs2ju",
2918
2917
  propsAsIs: !1
2919
- }), Sr = ({ countQuestionsAvailable: t, sliderRef: e }) => /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Me, { children: [
2918
+ }), Sr = ({ countQuestionsAvailable: t, sliderRef: e }) => /* @__PURE__ */ P(fe, { children: /* @__PURE__ */ F(Me, { children: [
2920
2919
  /* @__PURE__ */ P(dt, {}),
2921
2920
  /* @__PURE__ */ F(ct, { children: [
2922
- /* @__PURE__ */ P(br, { children: "FEATURED GROUPS+" }),
2923
- /* @__PURE__ */ P(pt, { children: "The First Five" })
2921
+ /* @__PURE__ */ P(yr, { children: "FEATURED GROUPS+" }),
2922
+ /* @__PURE__ */ P(ut, { children: "The First Five" })
2924
2923
  ] }),
2925
2924
  /* @__PURE__ */ P(ke, { children: "Tee off with these five initial predictions for today’s play." }),
2926
2925
  /* @__PURE__ */ F(
2927
- ue,
2926
+ pe,
2928
2927
  {
2929
2928
  "data-a": "intr",
2930
2929
  onClick: () => {
2931
- var s;
2932
- (s = e.current) == null || s.slideNext();
2930
+ e.current?.slideNext();
2933
2931
  },
2934
2932
  children: [
2935
2933
  t ? `${t} questions available` : "See all questions",
2936
- /* @__PURE__ */ P(vr, { children: /* @__PURE__ */ P(wr, { name: "iconArrowRight" }) })
2934
+ /* @__PURE__ */ P(gr, { children: /* @__PURE__ */ P(wr, { name: "iconArrowRight" }) })
2937
2935
  ]
2938
2936
  }
2939
2937
  ),
2940
- /* @__PURE__ */ P(yr, { children: "Note: Some questions may have been resolved as a result of today’s play." })
2938
+ /* @__PURE__ */ P(br, { children: "Note: Some questions may have been resolved as a result of today’s play." })
2941
2939
  ] }) }, "start");
2942
2940
  function Er(t, e, s, r) {
2943
2941
  return t.params.createElements && Object.keys(r).forEach((n) => {
@@ -2950,7 +2948,7 @@ function Er(t, e, s, r) {
2950
2948
  function Z(t) {
2951
2949
  return t === void 0 && (t = ""), `.${t.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
2952
2950
  }
2953
- function xr(t) {
2951
+ function Tr(t) {
2954
2952
  let {
2955
2953
  swiper: e,
2956
2954
  extendParams: s,
@@ -2973,8 +2971,8 @@ function xr(t) {
2973
2971
  // 'bullets' or 'progressbar' or 'fraction' or 'custom'
2974
2972
  dynamicBullets: !1,
2975
2973
  dynamicMainBullets: 1,
2976
- formatFractionCurrent: (p) => p,
2977
- formatFractionTotal: (p) => p,
2974
+ formatFractionCurrent: (u) => u,
2975
+ formatFractionTotal: (u) => u,
2978
2976
  bulletClass: `${i}-bullet`,
2979
2977
  bulletActiveClass: `${i}-bullet-active`,
2980
2978
  modifierClass: `${i}-`,
@@ -2997,201 +2995,200 @@ function xr(t) {
2997
2995
  function o() {
2998
2996
  return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
2999
2997
  }
3000
- function c(p, m) {
2998
+ function c(u, f) {
3001
2999
  const {
3002
- bulletActiveClass: g
3000
+ bulletActiveClass: v
3003
3001
  } = e.params.pagination;
3004
- p && (p = p[`${m === "prev" ? "previous" : "next"}ElementSibling`], p && (p.classList.add(`${g}-${m}`), p = p[`${m === "prev" ? "previous" : "next"}ElementSibling`], p && p.classList.add(`${g}-${m}-${m}`)));
3002
+ u && (u = u[`${f === "prev" ? "previous" : "next"}ElementSibling`], u && (u.classList.add(`${v}-${f}`), u = u[`${f === "prev" ? "previous" : "next"}ElementSibling`], u && u.classList.add(`${v}-${f}-${f}`)));
3005
3003
  }
3006
- function d(p, m, g) {
3007
- if (p = p % g, m = m % g, m === p + 1)
3004
+ function d(u, f, v) {
3005
+ if (u = u % v, f = f % v, f === u + 1)
3008
3006
  return "next";
3009
- if (m === p - 1)
3007
+ if (f === u - 1)
3010
3008
  return "previous";
3011
3009
  }
3012
- function u(p) {
3013
- const m = p.target.closest(Z(e.params.pagination.bulletClass));
3014
- if (!m)
3010
+ function p(u) {
3011
+ const f = u.target.closest(Z(e.params.pagination.bulletClass));
3012
+ if (!f)
3015
3013
  return;
3016
- p.preventDefault();
3017
- const g = ce(m) * e.params.slidesPerGroup;
3014
+ u.preventDefault();
3015
+ const v = ce(f) * e.params.slidesPerGroup;
3018
3016
  if (e.params.loop) {
3019
- if (e.realIndex === g) return;
3020
- const y = d(e.realIndex, g, e.slides.length);
3021
- y === "next" ? e.slideNext() : y === "previous" ? e.slidePrev() : e.slideToLoop(g);
3017
+ if (e.realIndex === v) return;
3018
+ const y = d(e.realIndex, v, e.slides.length);
3019
+ y === "next" ? e.slideNext() : y === "previous" ? e.slidePrev() : e.slideToLoop(v);
3022
3020
  } else
3023
- e.slideTo(g);
3021
+ e.slideTo(v);
3024
3022
  }
3025
- function f() {
3026
- const p = e.rtl, m = e.params.pagination;
3023
+ function h() {
3024
+ const u = e.rtl, f = e.params.pagination;
3027
3025
  if (o()) return;
3028
- let g = e.pagination.el;
3029
- g = R(g);
3030
- let y, T;
3026
+ let v = e.pagination.el;
3027
+ v = R(v);
3028
+ let y, C;
3031
3029
  const A = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, I = e.params.loop ? Math.ceil(A / e.params.slidesPerGroup) : e.snapGrid.length;
3032
- if (e.params.loop ? (T = e.previousRealIndex || 0, y = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (y = e.snapIndex, T = e.previousSnapIndex) : (T = e.previousIndex || 0, y = e.activeIndex || 0), m.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
3033
- const S = e.pagination.bullets;
3034
- let E, x, k;
3035
- if (m.dynamicBullets && (l = Te(S[0], e.isHorizontal() ? "width" : "height"), g.forEach((L) => {
3036
- L.style[e.isHorizontal() ? "width" : "height"] = `${l * (m.dynamicMainBullets + 4)}px`;
3037
- }), m.dynamicMainBullets > 1 && T !== void 0 && (a += y - (T || 0), a > m.dynamicMainBullets - 1 ? a = m.dynamicMainBullets - 1 : a < 0 && (a = 0)), E = Math.max(y - a, 0), x = E + (Math.min(S.length, m.dynamicMainBullets) - 1), k = (x + E) / 2), S.forEach((L) => {
3038
- const O = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((C) => `${m.bulletActiveClass}${C}`)].map((C) => typeof C == "string" && C.includes(" ") ? C.split(" ") : C).flat();
3030
+ if (e.params.loop ? (C = e.previousRealIndex || 0, y = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (y = e.snapIndex, C = e.previousSnapIndex) : (C = e.previousIndex || 0, y = e.activeIndex || 0), f.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
3031
+ const b = e.pagination.bullets;
3032
+ let S, E, k;
3033
+ if (f.dynamicBullets && (l = xe(b[0], e.isHorizontal() ? "width" : "height"), v.forEach((L) => {
3034
+ L.style[e.isHorizontal() ? "width" : "height"] = `${l * (f.dynamicMainBullets + 4)}px`;
3035
+ }), f.dynamicMainBullets > 1 && C !== void 0 && (a += y - (C || 0), a > f.dynamicMainBullets - 1 ? a = f.dynamicMainBullets - 1 : a < 0 && (a = 0)), S = Math.max(y - a, 0), E = S + (Math.min(b.length, f.dynamicMainBullets) - 1), k = (E + S) / 2), b.forEach((L) => {
3036
+ const O = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((x) => `${f.bulletActiveClass}${x}`)].map((x) => typeof x == "string" && x.includes(" ") ? x.split(" ") : x).flat();
3039
3037
  L.classList.remove(...O);
3040
- }), g.length > 1)
3041
- S.forEach((L) => {
3038
+ }), v.length > 1)
3039
+ b.forEach((L) => {
3042
3040
  const O = ce(L);
3043
- O === y ? L.classList.add(...m.bulletActiveClass.split(" ")) : e.isElement && L.setAttribute("part", "bullet"), m.dynamicBullets && (O >= E && O <= x && L.classList.add(...`${m.bulletActiveClass}-main`.split(" ")), O === E && c(L, "prev"), O === x && c(L, "next"));
3041
+ O === y ? L.classList.add(...f.bulletActiveClass.split(" ")) : e.isElement && L.setAttribute("part", "bullet"), f.dynamicBullets && (O >= S && O <= E && L.classList.add(...`${f.bulletActiveClass}-main`.split(" ")), O === S && c(L, "prev"), O === E && c(L, "next"));
3044
3042
  });
3045
3043
  else {
3046
- const L = S[y];
3047
- if (L && L.classList.add(...m.bulletActiveClass.split(" ")), e.isElement && S.forEach((O, C) => {
3048
- O.setAttribute("part", C === y ? "bullet-active" : "bullet");
3049
- }), m.dynamicBullets) {
3050
- const O = S[E], C = S[x];
3051
- for (let z = E; z <= x; z += 1)
3052
- S[z] && S[z].classList.add(...`${m.bulletActiveClass}-main`.split(" "));
3053
- c(O, "prev"), c(C, "next");
3044
+ const L = b[y];
3045
+ if (L && L.classList.add(...f.bulletActiveClass.split(" ")), e.isElement && b.forEach((O, x) => {
3046
+ O.setAttribute("part", x === y ? "bullet-active" : "bullet");
3047
+ }), f.dynamicBullets) {
3048
+ const O = b[S], x = b[E];
3049
+ for (let z = S; z <= E; z += 1)
3050
+ b[z] && b[z].classList.add(...`${f.bulletActiveClass}-main`.split(" "));
3051
+ c(O, "prev"), c(x, "next");
3054
3052
  }
3055
3053
  }
3056
- if (m.dynamicBullets) {
3057
- const L = Math.min(S.length, m.dynamicMainBullets + 4), O = (l * L - l) / 2 - k * l, C = p ? "right" : "left";
3058
- S.forEach((z) => {
3059
- z.style[e.isHorizontal() ? C : "top"] = `${O}px`;
3054
+ if (f.dynamicBullets) {
3055
+ const L = Math.min(b.length, f.dynamicMainBullets + 4), O = (l * L - l) / 2 - k * l, x = u ? "right" : "left";
3056
+ b.forEach((z) => {
3057
+ z.style[e.isHorizontal() ? x : "top"] = `${O}px`;
3060
3058
  });
3061
3059
  }
3062
3060
  }
3063
- g.forEach((S, E) => {
3064
- if (m.type === "fraction" && (S.querySelectorAll(Z(m.currentClass)).forEach((x) => {
3065
- x.textContent = m.formatFractionCurrent(y + 1);
3066
- }), S.querySelectorAll(Z(m.totalClass)).forEach((x) => {
3067
- x.textContent = m.formatFractionTotal(I);
3068
- })), m.type === "progressbar") {
3069
- let x;
3070
- m.progressbarOpposite ? x = e.isHorizontal() ? "vertical" : "horizontal" : x = e.isHorizontal() ? "horizontal" : "vertical";
3061
+ v.forEach((b, S) => {
3062
+ if (f.type === "fraction" && (b.querySelectorAll(Z(f.currentClass)).forEach((E) => {
3063
+ E.textContent = f.formatFractionCurrent(y + 1);
3064
+ }), b.querySelectorAll(Z(f.totalClass)).forEach((E) => {
3065
+ E.textContent = f.formatFractionTotal(I);
3066
+ })), f.type === "progressbar") {
3067
+ let E;
3068
+ f.progressbarOpposite ? E = e.isHorizontal() ? "vertical" : "horizontal" : E = e.isHorizontal() ? "horizontal" : "vertical";
3071
3069
  const k = (y + 1) / I;
3072
3070
  let L = 1, O = 1;
3073
- x === "horizontal" ? L = k : O = k, S.querySelectorAll(Z(m.progressbarFillClass)).forEach((C) => {
3074
- C.style.transform = `translate3d(0,0,0) scaleX(${L}) scaleY(${O})`, C.style.transitionDuration = `${e.params.speed}ms`;
3071
+ E === "horizontal" ? L = k : O = k, b.querySelectorAll(Z(f.progressbarFillClass)).forEach((x) => {
3072
+ x.style.transform = `translate3d(0,0,0) scaleX(${L}) scaleY(${O})`, x.style.transitionDuration = `${e.params.speed}ms`;
3075
3073
  });
3076
3074
  }
3077
- m.type === "custom" && m.renderCustom ? (S.innerHTML = m.renderCustom(e, y + 1, I), E === 0 && n("paginationRender", S)) : (E === 0 && n("paginationRender", S), n("paginationUpdate", S)), e.params.watchOverflow && e.enabled && S.classList[e.isLocked ? "add" : "remove"](m.lockClass);
3075
+ f.type === "custom" && f.renderCustom ? (b.innerHTML = f.renderCustom(e, y + 1, I), S === 0 && n("paginationRender", b)) : (S === 0 && n("paginationRender", b), n("paginationUpdate", b)), e.params.watchOverflow && e.enabled && b.classList[e.isLocked ? "add" : "remove"](f.lockClass);
3078
3076
  });
3079
3077
  }
3080
- function v() {
3081
- const p = e.params.pagination;
3078
+ function g() {
3079
+ const u = e.params.pagination;
3082
3080
  if (o()) return;
3083
- const m = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
3084
- let g = e.pagination.el;
3085
- g = R(g);
3081
+ const f = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.grid && e.params.grid.rows > 1 ? e.slides.length / Math.ceil(e.params.grid.rows) : e.slides.length;
3082
+ let v = e.pagination.el;
3083
+ v = R(v);
3086
3084
  let y = "";
3087
- if (p.type === "bullets") {
3088
- let T = e.params.loop ? Math.ceil(m / e.params.slidesPerGroup) : e.snapGrid.length;
3089
- e.params.freeMode && e.params.freeMode.enabled && T > m && (T = m);
3090
- for (let A = 0; A < T; A += 1)
3091
- p.renderBullet ? y += p.renderBullet.call(e, A, p.bulletClass) : y += `<${p.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${p.bulletClass}"></${p.bulletElement}>`;
3085
+ if (u.type === "bullets") {
3086
+ let C = e.params.loop ? Math.ceil(f / e.params.slidesPerGroup) : e.snapGrid.length;
3087
+ e.params.freeMode && e.params.freeMode.enabled && C > f && (C = f);
3088
+ for (let A = 0; A < C; A += 1)
3089
+ u.renderBullet ? y += u.renderBullet.call(e, A, u.bulletClass) : y += `<${u.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${u.bulletClass}"></${u.bulletElement}>`;
3092
3090
  }
3093
- p.type === "fraction" && (p.renderFraction ? y = p.renderFraction.call(e, p.currentClass, p.totalClass) : y = `<span class="${p.currentClass}"></span> / <span class="${p.totalClass}"></span>`), p.type === "progressbar" && (p.renderProgressbar ? y = p.renderProgressbar.call(e, p.progressbarFillClass) : y = `<span class="${p.progressbarFillClass}"></span>`), e.pagination.bullets = [], g.forEach((T) => {
3094
- p.type !== "custom" && (T.innerHTML = y || ""), p.type === "bullets" && e.pagination.bullets.push(...T.querySelectorAll(Z(p.bulletClass)));
3095
- }), p.type !== "custom" && n("paginationRender", g[0]);
3091
+ u.type === "fraction" && (u.renderFraction ? y = u.renderFraction.call(e, u.currentClass, u.totalClass) : y = `<span class="${u.currentClass}"></span> / <span class="${u.totalClass}"></span>`), u.type === "progressbar" && (u.renderProgressbar ? y = u.renderProgressbar.call(e, u.progressbarFillClass) : y = `<span class="${u.progressbarFillClass}"></span>`), e.pagination.bullets = [], v.forEach((C) => {
3092
+ u.type !== "custom" && (C.innerHTML = y || ""), u.type === "bullets" && e.pagination.bullets.push(...C.querySelectorAll(Z(u.bulletClass)));
3093
+ }), u.type !== "custom" && n("paginationRender", v[0]);
3096
3094
  }
3097
- function h() {
3095
+ function m() {
3098
3096
  e.params.pagination = Er(e, e.originalParams.pagination, e.params.pagination, {
3099
3097
  el: "swiper-pagination"
3100
3098
  });
3101
- const p = e.params.pagination;
3102
- if (!p.el) return;
3103
- let m;
3104
- typeof p.el == "string" && e.isElement && (m = e.el.querySelector(p.el)), !m && typeof p.el == "string" && (m = [...document.querySelectorAll(p.el)]), m || (m = p.el), !(!m || m.length === 0) && (e.params.uniqueNavElements && typeof p.el == "string" && Array.isArray(m) && m.length > 1 && (m = [...e.el.querySelectorAll(p.el)], m.length > 1 && (m = m.find((g) => Ue(g, ".swiper")[0] === e.el))), Array.isArray(m) && m.length === 1 && (m = m[0]), Object.assign(e.pagination, {
3105
- el: m
3106
- }), m = R(m), m.forEach((g) => {
3107
- p.type === "bullets" && p.clickable && g.classList.add(...(p.clickableClass || "").split(" ")), g.classList.add(p.modifierClass + p.type), g.classList.add(e.isHorizontal() ? p.horizontalClass : p.verticalClass), p.type === "bullets" && p.dynamicBullets && (g.classList.add(`${p.modifierClass}${p.type}-dynamic`), a = 0, p.dynamicMainBullets < 1 && (p.dynamicMainBullets = 1)), p.type === "progressbar" && p.progressbarOpposite && g.classList.add(p.progressbarOppositeClass), p.clickable && g.addEventListener("click", u), e.enabled || g.classList.add(p.lockClass);
3099
+ const u = e.params.pagination;
3100
+ if (!u.el) return;
3101
+ let f;
3102
+ typeof u.el == "string" && e.isElement && (f = e.el.querySelector(u.el)), !f && typeof u.el == "string" && (f = [...document.querySelectorAll(u.el)]), f || (f = u.el), !(!f || f.length === 0) && (e.params.uniqueNavElements && typeof u.el == "string" && Array.isArray(f) && f.length > 1 && (f = [...e.el.querySelectorAll(u.el)], f.length > 1 && (f = f.find((v) => Ue(v, ".swiper")[0] === e.el))), Array.isArray(f) && f.length === 1 && (f = f[0]), Object.assign(e.pagination, {
3103
+ el: f
3104
+ }), f = R(f), f.forEach((v) => {
3105
+ u.type === "bullets" && u.clickable && v.classList.add(...(u.clickableClass || "").split(" ")), v.classList.add(u.modifierClass + u.type), v.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass), u.type === "bullets" && u.dynamicBullets && (v.classList.add(`${u.modifierClass}${u.type}-dynamic`), a = 0, u.dynamicMainBullets < 1 && (u.dynamicMainBullets = 1)), u.type === "progressbar" && u.progressbarOpposite && v.classList.add(u.progressbarOppositeClass), u.clickable && v.addEventListener("click", p), e.enabled || v.classList.add(u.lockClass);
3108
3106
  }));
3109
3107
  }
3110
- function b() {
3111
- const p = e.params.pagination;
3108
+ function T() {
3109
+ const u = e.params.pagination;
3112
3110
  if (o()) return;
3113
- let m = e.pagination.el;
3114
- m && (m = R(m), m.forEach((g) => {
3115
- g.classList.remove(p.hiddenClass), g.classList.remove(p.modifierClass + p.type), g.classList.remove(e.isHorizontal() ? p.horizontalClass : p.verticalClass), p.clickable && (g.classList.remove(...(p.clickableClass || "").split(" ")), g.removeEventListener("click", u));
3116
- })), e.pagination.bullets && e.pagination.bullets.forEach((g) => g.classList.remove(...p.bulletActiveClass.split(" ")));
3111
+ let f = e.pagination.el;
3112
+ f && (f = R(f), f.forEach((v) => {
3113
+ v.classList.remove(u.hiddenClass), v.classList.remove(u.modifierClass + u.type), v.classList.remove(e.isHorizontal() ? u.horizontalClass : u.verticalClass), u.clickable && (v.classList.remove(...(u.clickableClass || "").split(" ")), v.removeEventListener("click", p));
3114
+ })), e.pagination.bullets && e.pagination.bullets.forEach((v) => v.classList.remove(...u.bulletActiveClass.split(" ")));
3117
3115
  }
3118
3116
  r("changeDirection", () => {
3119
3117
  if (!e.pagination || !e.pagination.el) return;
3120
- const p = e.params.pagination;
3118
+ const u = e.params.pagination;
3121
3119
  let {
3122
- el: m
3120
+ el: f
3123
3121
  } = e.pagination;
3124
- m = R(m), m.forEach((g) => {
3125
- g.classList.remove(p.horizontalClass, p.verticalClass), g.classList.add(e.isHorizontal() ? p.horizontalClass : p.verticalClass);
3122
+ f = R(f), f.forEach((v) => {
3123
+ v.classList.remove(u.horizontalClass, u.verticalClass), v.classList.add(e.isHorizontal() ? u.horizontalClass : u.verticalClass);
3126
3124
  });
3127
3125
  }), r("init", () => {
3128
- e.params.pagination.enabled === !1 ? w() : (h(), v(), f());
3126
+ e.params.pagination.enabled === !1 ? w() : (m(), g(), h());
3129
3127
  }), r("activeIndexChange", () => {
3130
- typeof e.snapIndex > "u" && f();
3128
+ typeof e.snapIndex > "u" && h();
3131
3129
  }), r("snapIndexChange", () => {
3132
- f();
3130
+ h();
3133
3131
  }), r("snapGridLengthChange", () => {
3134
- v(), f();
3132
+ g(), h();
3135
3133
  }), r("destroy", () => {
3136
- b();
3134
+ T();
3137
3135
  }), r("enable disable", () => {
3138
3136
  let {
3139
- el: p
3137
+ el: u
3140
3138
  } = e.pagination;
3141
- p && (p = R(p), p.forEach((m) => m.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
3139
+ u && (u = R(u), u.forEach((f) => f.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
3142
3140
  }), r("lock unlock", () => {
3143
- f();
3144
- }), r("click", (p, m) => {
3145
- const g = m.target, y = R(e.pagination.el);
3146
- if (e.params.pagination.el && e.params.pagination.hideOnClick && y && y.length > 0 && !g.classList.contains(e.params.pagination.bulletClass)) {
3147
- if (e.navigation && (e.navigation.nextEl && g === e.navigation.nextEl || e.navigation.prevEl && g === e.navigation.prevEl)) return;
3148
- const T = y[0].classList.contains(e.params.pagination.hiddenClass);
3149
- n(T === !0 ? "paginationShow" : "paginationHide"), y.forEach((A) => A.classList.toggle(e.params.pagination.hiddenClass));
3141
+ h();
3142
+ }), r("click", (u, f) => {
3143
+ const v = f.target, y = R(e.pagination.el);
3144
+ if (e.params.pagination.el && e.params.pagination.hideOnClick && y && y.length > 0 && !v.classList.contains(e.params.pagination.bulletClass)) {
3145
+ if (e.navigation && (e.navigation.nextEl && v === e.navigation.nextEl || e.navigation.prevEl && v === e.navigation.prevEl)) return;
3146
+ const C = y[0].classList.contains(e.params.pagination.hiddenClass);
3147
+ n(C === !0 ? "paginationShow" : "paginationHide"), y.forEach((A) => A.classList.toggle(e.params.pagination.hiddenClass));
3150
3148
  }
3151
3149
  });
3152
3150
  const M = () => {
3153
3151
  e.el.classList.remove(e.params.pagination.paginationDisabledClass);
3154
3152
  let {
3155
- el: p
3153
+ el: u
3156
3154
  } = e.pagination;
3157
- p && (p = R(p), p.forEach((m) => m.classList.remove(e.params.pagination.paginationDisabledClass))), h(), v(), f();
3155
+ u && (u = R(u), u.forEach((f) => f.classList.remove(e.params.pagination.paginationDisabledClass))), m(), g(), h();
3158
3156
  }, w = () => {
3159
3157
  e.el.classList.add(e.params.pagination.paginationDisabledClass);
3160
3158
  let {
3161
- el: p
3159
+ el: u
3162
3160
  } = e.pagination;
3163
- p && (p = R(p), p.forEach((m) => m.classList.add(e.params.pagination.paginationDisabledClass))), b();
3161
+ u && (u = R(u), u.forEach((f) => f.classList.add(e.params.pagination.paginationDisabledClass))), T();
3164
3162
  };
3165
3163
  Object.assign(e.pagination, {
3166
3164
  enable: M,
3167
3165
  disable: w,
3168
- render: v,
3169
- update: f,
3170
- init: h,
3171
- destroy: b
3166
+ render: g,
3167
+ update: h,
3168
+ init: m,
3169
+ destroy: T
3172
3170
  });
3173
3171
  }
3174
- const Tr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n }) => {
3172
+ const xr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n }) => {
3175
3173
  const i = D(), l = D(), { listOfQuestions: a, countQuestionsAvailable: o } = Re(() => {
3176
- const v = t ? Object.values(t) : [];
3174
+ const g = t ? Object.values(t) : [];
3177
3175
  return {
3178
- listOfQuestions: v,
3179
- countQuestionsAvailable: v.filter(({ marketClosed: h }) => !h).length
3176
+ listOfQuestions: g,
3177
+ countQuestionsAvailable: g.filter(({ marketClosed: m }) => !m).length
3180
3178
  };
3181
3179
  }, [t]), c = qe(
3182
- async (v, h) => {
3180
+ async (g, m) => {
3183
3181
  try {
3184
- await e.betPackVote(v, h), s({
3182
+ await e.betPackVote(g, m), s({
3185
3183
  type: "slVoted",
3186
3184
  payload: {
3187
- questionId: v,
3188
- answerId: h
3185
+ questionId: g,
3186
+ answerId: m
3189
3187
  }
3190
3188
  });
3191
3189
  } finally {
3192
3190
  i.current && clearTimeout(i.current), n && (i.current = setTimeout(() => {
3193
- var b;
3194
- (b = l.current) == null || b.slideNext();
3191
+ l.current?.slideNext();
3195
3192
  }, 2e3));
3196
3193
  }
3197
3194
  },
@@ -3200,14 +3197,8 @@ const Tr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3200
3197
  Y(() => (s({
3201
3198
  type: "slBetPackReady",
3202
3199
  payload: {
3203
- next: () => {
3204
- var v;
3205
- return (v = l.current) == null ? void 0 : v.slideNext();
3206
- },
3207
- prev: () => {
3208
- var v;
3209
- return (v = l.current) == null ? void 0 : v.slidePrev();
3210
- },
3200
+ next: () => l.current?.slideNext(),
3201
+ prev: () => l.current?.slidePrev(),
3211
3202
  current: 0,
3212
3203
  canNext: !0,
3213
3204
  canPrev: !1
@@ -3215,25 +3206,24 @@ const Tr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3215
3206
  }), () => {
3216
3207
  i.current && clearTimeout(i.current);
3217
3208
  }), [s]);
3218
- const d = (v) => {
3219
- var h;
3220
- const b = v.realIndex;
3209
+ const d = (g) => {
3210
+ const m = g.realIndex;
3221
3211
  if (s({
3222
3212
  type: "slBetPackChangeCard",
3223
3213
  payload: {
3224
- current: b,
3225
- canNext: b < Object.keys(t).length + 1,
3226
- canPrev: b >= 1
3214
+ current: m,
3215
+ canNext: m < Object.keys(t).length + 1,
3216
+ canPrev: m >= 1
3227
3217
  }
3228
- }), b !== 0 && b !== Object.keys(t).length + 1 && (h = a[b - 1]) != null && h.id) {
3229
- e.openQuestion(a[b - 1].id, {
3218
+ }), m !== 0 && m !== Object.keys(t).length + 1 && a[m - 1]?.id) {
3219
+ e.openQuestion(a[m - 1].id, {
3230
3220
  openedFrom: "bet-pack",
3231
3221
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3232
3222
  // @ts-expect-error
3233
3223
  attributes: {
3234
- id: a[b - 1].id,
3235
- type: a[b - 1].type,
3236
- status: a[b - 1].status,
3224
+ id: a[m - 1].id,
3225
+ type: a[m - 1].type,
3226
+ status: a[m - 1].status,
3237
3227
  attributes: {
3238
3228
  case: void 0
3239
3229
  }
@@ -3242,23 +3232,22 @@ const Tr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3242
3232
  return;
3243
3233
  }
3244
3234
  e.closeQuestion();
3245
- }, [u, f] = W(1.1);
3235
+ }, [p, h] = W(1.1);
3246
3236
  return Y(() => {
3247
- const v = bt(() => {
3248
- var h;
3249
- const b = (h = l.current) == null ? void 0 : h.size;
3250
- if (!b)
3237
+ const g = yt(() => {
3238
+ const m = l.current?.size;
3239
+ if (!m)
3251
3240
  return;
3252
- const M = 1 + 30 / (b / 100) / 100 * 2;
3253
- f(Math.ceil(M * 1e3) / 1e3);
3241
+ const T = 1 + 30 / (m / 100) / 100 * 2;
3242
+ h(Math.ceil(T * 1e3) / 1e3);
3254
3243
  }, 200);
3255
- return window.addEventListener("resize", v), v(), () => {
3256
- window.removeEventListener("resize", v);
3244
+ return window.addEventListener("resize", g), g(), () => {
3245
+ window.removeEventListener("resize", g);
3257
3246
  };
3258
3247
  }, []), /* @__PURE__ */ F(
3259
3248
  tr,
3260
3249
  {
3261
- slidesPerView: u,
3250
+ slidesPerView: p,
3262
3251
  spaceBetween: 12,
3263
3252
  centeredSlides: !0,
3264
3253
  centerInsufficientSlides: !0,
@@ -3266,18 +3255,18 @@ const Tr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3266
3255
  pagination: {
3267
3256
  clickable: !0
3268
3257
  },
3269
- modules: [xr],
3258
+ modules: [Tr],
3270
3259
  onSlideChange: d,
3271
3260
  onBeforeSlideChangeStart: () => {
3272
3261
  i.current && clearTimeout(i.current);
3273
3262
  },
3274
- onSwiper: (v) => {
3275
- l.current = v;
3263
+ onSwiper: (g) => {
3264
+ l.current = g;
3276
3265
  },
3277
3266
  children: [
3278
3267
  /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(Sr, { sliderRef: l, countQuestionsAvailable: o }) }),
3279
- a.map((v) => v ? /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(me, { children: /* @__PURE__ */ P(hr, { question: v, vote: c }) }, v.id) }) : null),
3280
- /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(mr, { onEvent: s }) })
3268
+ a.map((g) => g ? /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(fe, { children: /* @__PURE__ */ P(hr, { question: g, vote: c }) }, g.id) }) : null),
3269
+ /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(fr, { onEvent: s }) })
3281
3270
  ]
3282
3271
  }
3283
3272
  );
@@ -3288,7 +3277,7 @@ const Tr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n })
3288
3277
  {
3289
3278
  onEvent: n,
3290
3279
  actionFn: () => n({ type: "slHardRefresh" }),
3291
- description: l instanceof Et && l.code !== xt.InvalidArgument ? `The event ID was not
3280
+ description: l instanceof Et && l.code !== Tt.InvalidArgument ? `The event ID was not
3292
3281
  specified or is invalid.` : `The server is unable to
3293
3282
  handle this request.`
3294
3283
  }
@@ -3301,7 +3290,7 @@ handle this request.`
3301
3290
  load the questions.`
3302
3291
  }
3303
3292
  ) : /* @__PURE__ */ P(
3304
- Tr,
3293
+ xr,
3305
3294
  {
3306
3295
  data: o.data,
3307
3296
  gamification: t,
@@ -3315,10 +3304,9 @@ handle this request.`
3315
3304
  name: "BetPackContainer",
3316
3305
  class: "b18vssq2",
3317
3306
  propsAsIs: !1
3318
- }), ie = "slBetPackCb", Mr = Tt("betPack-ui"), kr = (t, e = {}) => {
3319
- var s, r;
3320
- const { questionId: n, answerId: i } = e, l = { questionId: n, answerId: i };
3321
- Mr.debug({ id: ie, type: t, ...l }), (s = window.top) == null || s.postMessage({ id: ie, type: t, ...l }, "*"), window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers[ie] && window.webkit.messageHandlers[ie].postMessage({ type: t, ...l }), (r = window.slBetPackCb) != null && r.postMessage && window.slBetPackCb.postMessage(JSON.stringify({ type: t, ...l, from: "base" }));
3307
+ }), ie = "slBetPackCb", Mr = xt("betPack-ui"), kr = (t, e = {}) => {
3308
+ const { questionId: s, answerId: r } = e, n = { questionId: s, answerId: r };
3309
+ Mr.debug({ id: ie, type: t, ...n }), window.top?.postMessage({ id: ie, type: t, ...n }, "*"), window.webkit && window.webkit.messageHandlers && window.webkit.messageHandlers[ie] && window.webkit.messageHandlers[ie].postMessage({ type: t, ...n }), window.slBetPackCb?.postMessage && window.slBetPackCb.postMessage(JSON.stringify({ type: t, ...n, from: "base" }));
3322
3310
  }, Ir = (t) => {
3323
3311
  kr(t.type, t.payload);
3324
3312
  }, Lr = /* @__PURE__ */ _("div")({
@@ -3329,11 +3317,11 @@ handle this request.`
3329
3317
  name: "CloseButton",
3330
3318
  class: "coc9f01",
3331
3319
  propsAsIs: !1
3332
- }), Fe = "b590k5k", Or = () => te, ut = /* @__PURE__ */ _(Or())({
3320
+ }), Fe = "b590k5k", Or = () => te, pt = /* @__PURE__ */ _(Or())({
3333
3321
  name: "IconArrowPrev",
3334
3322
  class: "i1tkem14",
3335
3323
  propsAsIs: !0
3336
- }), zr = () => ut, _r = /* @__PURE__ */ _(zr())({
3324
+ }), zr = () => pt, _r = /* @__PURE__ */ _(zr())({
3337
3325
  name: "IconArrowNext",
3338
3326
  class: "i175qlj5",
3339
3327
  propsAsIs: !0
@@ -3362,25 +3350,24 @@ Ae(({ sdk: t, onEvent: e, close: s }, r) => {
3362
3350
  const [n, i] = W(), [l, a] = W(), o = qe(
3363
3351
  (c) => {
3364
3352
  if (c.type === "slBetPackReady") {
3365
- const { next: d, prev: u, current: f, canNext: v, canPrev: h } = c.payload || {};
3366
- i({ next: d, prev: u }), a((b) => ({
3367
- current: b != null && b.current ? b == null ? void 0 : b.current : f,
3368
- canPrev: b != null && b.current ? b == null ? void 0 : b.canPrev : h,
3369
- canNext: v
3353
+ const { next: d, prev: p, current: h, canNext: g, canPrev: m } = c.payload || {};
3354
+ i({ next: d, prev: p }), a((T) => ({
3355
+ current: T?.current ? T?.current : h,
3356
+ canPrev: T?.current ? T?.canPrev : m,
3357
+ canNext: g
3370
3358
  }));
3371
3359
  }
3372
3360
  if (c.type === "slBetPackChangeCard") {
3373
- const { current: d, canNext: u, canPrev: f } = c.payload || {};
3374
- a({ current: d, canNext: u, canPrev: f });
3361
+ const { current: d, canNext: p, canPrev: h } = c.payload || {};
3362
+ a({ current: d, canNext: p, canPrev: h });
3375
3363
  }
3376
- e == null || e(c);
3364
+ e?.(c);
3377
3365
  },
3378
3366
  [e]
3379
3367
  );
3380
3368
  return Y(() => () => {
3381
- var c;
3382
- const d = t.getFeature(We.GAMES);
3383
- d && ((c = d.betPack) == null || c.off());
3369
+ const c = t.getFeature(We.GAMES);
3370
+ c && c.betPack?.off();
3384
3371
  }, [t]), /* @__PURE__ */ F(Lr, { ref: r, children: [
3385
3372
  /* @__PURE__ */ F($r, { children: [
3386
3373
  /* @__PURE__ */ F(Gr, { children: [
@@ -3389,10 +3376,10 @@ Ae(({ sdk: t, onEvent: e, close: s }, r) => {
3389
3376
  ] }),
3390
3377
  /* @__PURE__ */ P(Ar, { "data-a": "intr", onClick: s, children: /* @__PURE__ */ P(te, { name: "icon-close-btn-gray" }) })
3391
3378
  ] }),
3392
- /* @__PURE__ */ P(Br, { children: /* @__PURE__ */ P(mt, { sdk: t, onEvent: o, overlay: !0 }) }),
3379
+ /* @__PURE__ */ P(Br, { children: /* @__PURE__ */ P(ft, { sdk: t, onEvent: o, overlay: !0 }) }),
3393
3380
  /* @__PURE__ */ F(Nr, { children: [
3394
- /* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n == null ? void 0 : n.prev, disabled: !(l != null && l.canPrev), children: /* @__PURE__ */ P(ut, { "data-a": "intr", name: "iconArrowPrev", className: Ee((l == null ? void 0 : l.canPrev) && Fe) }) }),
3395
- /* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n == null ? void 0 : n.next, disabled: !(l != null && l.canNext), children: /* @__PURE__ */ P(_r, { "data-a": "intr", name: "iconArrowPrev", className: Ee((l == null ? void 0 : l.canNext) && Fe) }) })
3381
+ /* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n?.prev, disabled: !l?.canPrev, children: /* @__PURE__ */ P(pt, { "data-a": "intr", name: "iconArrowPrev", className: Ee(l?.canPrev && Fe) }) }),
3382
+ /* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n?.next, disabled: !l?.canNext, children: /* @__PURE__ */ P(_r, { "data-a": "intr", name: "iconArrowPrev", className: Ee(l?.canNext && Fe) }) })
3396
3383
  ] })
3397
3384
  ] });
3398
3385
  });
@@ -3404,7 +3391,7 @@ const Dr = ({ user: t, gamification: e, overlay: s, swipeable: r, onEvent: n })
3404
3391
  description: `You are not authorized to
3405
3392
  view this resource.`
3406
3393
  }
3407
- ) : /* @__PURE__ */ P(Le, {}), mt = wt(({ sdk: t, swipeable: e = !0, onEvent: s = Ir, overlay: r }) => {
3394
+ ) : /* @__PURE__ */ P(Le, {}), ft = wt(({ sdk: t, swipeable: e = !0, onEvent: s = Ir, overlay: r }) => {
3408
3395
  const n = Se(t.featuresList.getStore()), i = Re(() => t.getFeature(We.GAMES), [n]), l = Se(t.getUserStore());
3409
3396
  return Y(() => (t.writeOverlaySessionId(), () => {
3410
3397
  t.writeOverlaySessionId("");
@@ -3417,15 +3404,15 @@ view this resource.`
3417
3404
  );
3418
3405
  }), je = (t) => {
3419
3406
  const e = t.target;
3420
- e instanceof Element && e.getAttribute("data-a") === "intr" && vt.emit("interactions", {
3407
+ e instanceof Element && e.getAttribute("data-a") === "intr" && gt.emit("interactions", {
3421
3408
  action: "tap",
3422
3409
  payload: {}
3423
3410
  });
3424
3411
  }, Kr = () => {
3425
3412
  const t = Ct();
3426
- return Y(() => (document == null || document.addEventListener("click", je), () => {
3427
- document == null || document.removeEventListener("click", je);
3428
- }), []), t ? /* @__PURE__ */ P(mt, { sdk: t }) : null;
3413
+ return Y(() => (document?.addEventListener("click", je), () => {
3414
+ document?.removeEventListener("click", je);
3415
+ }), []), t ? /* @__PURE__ */ P(ft, { sdk: t }) : null;
3429
3416
  };
3430
3417
  export {
3431
3418
  Kr as BetPackProvider