@streamlayer/react 1.21.3 → 1.22.1

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 (168) hide show
  1. package/lib/app/masters.d.ts +2 -5
  2. package/lib/app/pause-ad.d.ts +1 -10
  3. package/lib/app/useStreamLayerApp.d.ts +1 -23
  4. package/lib/cjs/Question.js +1 -0
  5. package/lib/cjs/advertisement.js +40 -40
  6. package/lib/cjs/analytics.js +1 -0
  7. package/lib/cjs/auth.js +1 -1
  8. package/lib/cjs/bet-pack.js +1 -1
  9. package/lib/cjs/gamification-feature.js +1 -1
  10. package/lib/cjs/hooks-B0Qttldg.js +1 -0
  11. package/lib/cjs/index-DSi8Qgfs.js +1 -0
  12. package/lib/cjs/index.js +1 -1
  13. package/lib/cjs/index10.js +1 -0
  14. package/lib/cjs/index11.js +4 -0
  15. package/lib/cjs/index12.js +1 -0
  16. package/lib/cjs/index13.js +1 -0
  17. package/lib/cjs/index14.js +1 -0
  18. package/lib/cjs/index15.js +1 -0
  19. package/lib/cjs/index16.js +5 -0
  20. package/lib/cjs/index2.js +1 -5
  21. package/lib/cjs/index3.js +1 -0
  22. package/lib/cjs/index4.js +5 -0
  23. package/lib/cjs/index5.js +1 -0
  24. package/lib/cjs/index6.js +1 -0
  25. package/lib/cjs/index7.js +5 -0
  26. package/lib/cjs/index8.js +1 -0
  27. package/lib/cjs/index9.js +1 -0
  28. package/lib/cjs/insight.js +1 -1
  29. package/lib/cjs/masters.js +1 -1
  30. package/lib/cjs/masters2.js +6 -6
  31. package/lib/cjs/notification.js +1 -1
  32. package/lib/cjs/pause-ad.js +1 -1
  33. package/lib/cjs/points.js +1 -1
  34. package/lib/cjs/sl-types.js +15 -0
  35. package/lib/cjs/storage.js +1 -0
  36. package/lib/cjs/theme.js +17 -0
  37. package/lib/cjs/useStreamLayerApp.js +1 -1
  38. package/lib/cjs/useStreamLayerApp2.js +17 -16
  39. package/lib/cjs/utils.js +47 -0
  40. package/lib/cjs/vast-client.min.js +1 -0
  41. package/lib/classic/app/masters.d.ts +2 -5
  42. package/lib/classic/app/pause-ad.d.ts +1 -10
  43. package/lib/classic/app/useStreamLayerApp.d.ts +1 -23
  44. package/lib/classic/cjs/Question.js +1 -0
  45. package/lib/classic/cjs/advertisement.js +40 -40
  46. package/lib/classic/cjs/analytics.js +1 -0
  47. package/lib/classic/cjs/auth.js +1 -1
  48. package/lib/classic/cjs/bet-pack.js +4 -4
  49. package/lib/classic/cjs/gamification-feature.js +1 -1
  50. package/lib/classic/cjs/hooks-B0Qttldg.js +1 -0
  51. package/lib/classic/cjs/index-DSi8Qgfs.js +1 -0
  52. package/lib/classic/cjs/index.js +1 -1
  53. package/lib/classic/cjs/index10.js +1 -0
  54. package/lib/classic/cjs/index11.js +1 -0
  55. package/lib/classic/cjs/index12.js +1 -0
  56. package/lib/classic/cjs/index13.js +4 -0
  57. package/lib/classic/cjs/index2.js +5 -0
  58. package/lib/classic/cjs/index3.js +1 -0
  59. package/lib/classic/cjs/index4.js +1 -0
  60. package/lib/classic/cjs/index5.js +1 -0
  61. package/lib/classic/cjs/index6.js +5 -0
  62. package/lib/classic/cjs/index7.js +1 -0
  63. package/lib/classic/cjs/index8.js +1 -0
  64. package/lib/classic/cjs/index9.js +1 -0
  65. package/lib/classic/cjs/insight.js +1 -1
  66. package/lib/classic/cjs/notification.js +1 -1
  67. package/lib/classic/cjs/notification2.js +1 -0
  68. package/lib/classic/cjs/pause-ad.js +1 -1
  69. package/lib/classic/cjs/points.js +1 -1
  70. package/lib/classic/cjs/sl-types.js +15 -0
  71. package/lib/classic/cjs/useStreamLayerApp.js +1 -1
  72. package/lib/classic/cjs/useStreamLayerApp2.js +17 -16
  73. package/lib/classic/cjs/utils.js +47 -0
  74. package/lib/classic/cjs/vast-client.min.js +1 -0
  75. package/lib/classic/es/Question.js +392 -0
  76. package/lib/classic/es/advertisement.js +10375 -10374
  77. package/lib/classic/es/analytics.js +28 -0
  78. package/lib/classic/es/auth.js +4 -4
  79. package/lib/classic/es/bet-pack.js +55 -51
  80. package/lib/classic/es/gamification-feature.js +1 -1
  81. package/lib/classic/es/hooks-B0Qttldg.js +98 -0
  82. package/lib/classic/es/index-DSi8Qgfs.js +65 -0
  83. package/lib/classic/es/index.js +14 -15
  84. package/lib/classic/es/index10.js +87 -0
  85. package/lib/classic/es/index11.js +2355 -0
  86. package/lib/classic/es/index12.js +183 -0
  87. package/lib/classic/es/index13.js +835 -0
  88. package/lib/classic/es/index2.js +2621 -0
  89. package/lib/classic/es/index3.js +64 -0
  90. package/lib/classic/es/index4.js +19 -0
  91. package/lib/classic/es/index5.js +285 -0
  92. package/lib/classic/es/{index-l-eyvmpL.js → index6.js} +937 -937
  93. package/lib/classic/es/index7.js +7 -0
  94. package/lib/classic/es/index8.js +11 -0
  95. package/lib/classic/es/index9.js +319 -0
  96. package/lib/classic/es/insight.js +31 -32
  97. package/lib/classic/es/notification.js +7 -1006
  98. package/lib/classic/es/notification2.js +1117 -0
  99. package/lib/classic/es/pause-ad.js +139 -138
  100. package/lib/classic/es/points.js +39 -38
  101. package/lib/classic/es/sl-types.js +258 -0
  102. package/lib/classic/es/useStreamLayerApp.js +1 -2
  103. package/lib/classic/es/useStreamLayerApp2.js +4798 -2735
  104. package/lib/classic/es/utils.js +76 -0
  105. package/lib/{es/vast-client.min-B0NUra1B.js → classic/es/vast-client.min.js} +338 -338
  106. package/lib/classic/index.d.ts +5 -13
  107. package/lib/classic/masters.d.ts +1 -1
  108. package/lib/dist/cjs/index.js +1 -1
  109. package/lib/dist/cjs/masters.js +34 -33
  110. package/lib/dist/es/index.js +2 -2
  111. package/lib/dist/es/masters.js +10563 -8870
  112. package/lib/dist/index.d.ts +1332 -0
  113. package/lib/dist/style.css +1 -1
  114. package/lib/es/Question.js +136 -0
  115. package/lib/es/advertisement.js +10375 -10374
  116. package/lib/es/analytics.js +28 -0
  117. package/lib/es/auth.js +4 -4
  118. package/lib/es/bet-pack.js +7 -6
  119. package/lib/es/gamification-feature.js +1 -1
  120. package/lib/es/hooks-B0Qttldg.js +98 -0
  121. package/lib/es/index-DSi8Qgfs.js +65 -0
  122. package/lib/es/index.js +13 -14
  123. package/lib/es/index10.js +267 -0
  124. package/lib/es/index11.js +835 -0
  125. package/lib/es/index12.js +183 -0
  126. package/lib/es/index13.js +319 -0
  127. package/lib/es/index14.js +87 -0
  128. package/lib/es/index15.js +2355 -0
  129. package/lib/es/index16.js +1254 -0
  130. package/lib/es/index2.js +1349 -3364
  131. package/lib/es/index3.js +64 -0
  132. package/lib/es/index4.js +3418 -0
  133. package/lib/es/index5.js +19 -0
  134. package/lib/es/index6.js +285 -0
  135. package/lib/es/{index-l-eyvmpL.js → index7.js} +937 -937
  136. package/lib/es/index8.js +7 -0
  137. package/lib/es/index9.js +11 -0
  138. package/lib/es/insight.js +31 -32
  139. package/lib/es/masters.js +6 -5
  140. package/lib/es/masters2.js +189 -176
  141. package/lib/es/notification.js +141 -136
  142. package/lib/es/pause-ad.js +140 -139
  143. package/lib/es/points.js +40 -38
  144. package/lib/es/sl-types.js +277 -0
  145. package/lib/es/storage.js +113 -0
  146. package/lib/es/theme.js +47 -0
  147. package/lib/es/useStreamLayerApp.js +1 -2
  148. package/lib/es/useStreamLayerApp2.js +4798 -2735
  149. package/lib/es/utils.js +76 -0
  150. package/lib/{classic/es/vast-client.min-B0NUra1B.js → es/vast-client.min.js} +338 -338
  151. package/lib/index.d.ts +5 -13
  152. package/lib/masters.d.ts +1 -1
  153. package/lib/style.css +1 -1
  154. package/package.json +16 -51
  155. package/lib/app/event.d.ts +0 -6
  156. package/lib/app/provider.d.ts +0 -49
  157. package/lib/cjs/index-l-eyvmpL.js +0 -5
  158. package/lib/cjs/provider.js +0 -84
  159. package/lib/cjs/vast-client.min-B0NUra1B.js +0 -1
  160. package/lib/classic/app/event.d.ts +0 -6
  161. package/lib/classic/app/provider.d.ts +0 -49
  162. package/lib/classic/cjs/index-l-eyvmpL.js +0 -5
  163. package/lib/classic/cjs/provider.js +0 -68
  164. package/lib/classic/cjs/vast-client.min-B0NUra1B.js +0 -1
  165. package/lib/classic/es/provider.js +0 -7619
  166. package/lib/dist/cjs/gamification-feature2.js +0 -1
  167. package/lib/dist/es/gamification-feature2.js +0 -285
  168. package/lib/es/provider.js +0 -7695
@@ -0,0 +1,3418 @@
1
+ import { jsx as P, jsxs as F } from "react/jsx-runtime";
2
+ import { s as _, u as Se, c as Ee } from "./sl-types.js";
3
+ import $, { forwardRef as Ae, useState as W, useRef as D, useEffect as X, useLayoutEffect as ft, createContext as je, useMemo as He, useCallback as Re, memo as ht } from "react";
4
+ import vt from "lodash.throttle";
5
+ import { B as te } from "./index6.js";
6
+ import { d as gt } from "./index14.js";
7
+ import { e as wt } from "./index11.js";
8
+ import { e as bt, f as yt, S as qe } from "./useStreamLayerApp2.js";
9
+ import { c as St } from "./index3.js";
10
+ function _e(t) {
11
+ return t !== null && typeof t == "object" && "constructor" in t && t.constructor === Object;
12
+ }
13
+ function Oe(t, e) {
14
+ t === void 0 && (t = {}), e === void 0 && (e = {});
15
+ const s = ["__proto__", "constructor", "prototype"];
16
+ Object.keys(e).filter((r) => s.indexOf(r) < 0).forEach((r) => {
17
+ typeof t[r] > "u" ? t[r] = e[r] : _e(e[r]) && _e(t[r]) && Object.keys(e[r]).length > 0 && Oe(t[r], e[r]);
18
+ });
19
+ }
20
+ const We = {
21
+ body: {},
22
+ addEventListener() {
23
+ },
24
+ removeEventListener() {
25
+ },
26
+ activeElement: {
27
+ blur() {
28
+ },
29
+ nodeName: ""
30
+ },
31
+ querySelector() {
32
+ return null;
33
+ },
34
+ querySelectorAll() {
35
+ return [];
36
+ },
37
+ getElementById() {
38
+ return null;
39
+ },
40
+ createEvent() {
41
+ return {
42
+ initEvent() {
43
+ }
44
+ };
45
+ },
46
+ createElement() {
47
+ return {
48
+ children: [],
49
+ childNodes: [],
50
+ style: {},
51
+ setAttribute() {
52
+ },
53
+ getElementsByTagName() {
54
+ return [];
55
+ }
56
+ };
57
+ },
58
+ createElementNS() {
59
+ return {};
60
+ },
61
+ importNode() {
62
+ return null;
63
+ },
64
+ location: {
65
+ hash: "",
66
+ host: "",
67
+ hostname: "",
68
+ href: "",
69
+ origin: "",
70
+ pathname: "",
71
+ protocol: "",
72
+ search: ""
73
+ }
74
+ };
75
+ function K() {
76
+ const t = typeof document < "u" ? document : {};
77
+ return Oe(t, We), t;
78
+ }
79
+ const Et = {
80
+ document: We,
81
+ navigator: {
82
+ userAgent: ""
83
+ },
84
+ location: {
85
+ hash: "",
86
+ host: "",
87
+ hostname: "",
88
+ href: "",
89
+ origin: "",
90
+ pathname: "",
91
+ protocol: "",
92
+ search: ""
93
+ },
94
+ history: {
95
+ replaceState() {
96
+ },
97
+ pushState() {
98
+ },
99
+ go() {
100
+ },
101
+ back() {
102
+ }
103
+ },
104
+ CustomEvent: function() {
105
+ return this;
106
+ },
107
+ addEventListener() {
108
+ },
109
+ removeEventListener() {
110
+ },
111
+ getComputedStyle() {
112
+ return {
113
+ getPropertyValue() {
114
+ return "";
115
+ }
116
+ };
117
+ },
118
+ Image() {
119
+ },
120
+ Date() {
121
+ },
122
+ screen: {},
123
+ setTimeout() {
124
+ },
125
+ clearTimeout() {
126
+ },
127
+ matchMedia() {
128
+ return {};
129
+ },
130
+ requestAnimationFrame(t) {
131
+ return typeof setTimeout > "u" ? (t(), null) : setTimeout(t, 0);
132
+ },
133
+ cancelAnimationFrame(t) {
134
+ typeof setTimeout > "u" || clearTimeout(t);
135
+ }
136
+ };
137
+ function N() {
138
+ const t = typeof window < "u" ? window : {};
139
+ return Oe(t, Et), t;
140
+ }
141
+ function xt(t) {
142
+ return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
143
+ }
144
+ function Tt(t) {
145
+ const e = t;
146
+ Object.keys(e).forEach((s) => {
147
+ try {
148
+ e[s] = null;
149
+ } catch {
150
+ }
151
+ try {
152
+ delete e[s];
153
+ } catch {
154
+ }
155
+ });
156
+ }
157
+ function xe(t, e) {
158
+ return e === void 0 && (e = 0), setTimeout(t, e);
159
+ }
160
+ function le() {
161
+ return Date.now();
162
+ }
163
+ function Ct(t) {
164
+ const e = N();
165
+ let s;
166
+ return e.getComputedStyle && (s = e.getComputedStyle(t, null)), !s && t.currentStyle && (s = t.currentStyle), s || (s = t.style), s;
167
+ }
168
+ function Pt(t, e) {
169
+ e === void 0 && (e = "x");
170
+ const s = N();
171
+ let r, n, i;
172
+ const l = Ct(t);
173
+ return s.WebKitCSSMatrix ? (n = l.transform || l.webkitTransform, n.split(",").length > 6 && (n = n.split(", ").map((a) => a.replace(",", ".")).join(", ")), i = new s.WebKitCSSMatrix(n === "none" ? "" : n)) : (i = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), r = i.toString().split(",")), e === "x" && (s.WebKitCSSMatrix ? n = i.m41 : r.length === 16 ? n = parseFloat(r[12]) : n = parseFloat(r[4])), e === "y" && (s.WebKitCSSMatrix ? n = i.m42 : r.length === 16 ? n = parseFloat(r[13]) : n = parseFloat(r[5])), n || 0;
174
+ }
175
+ function se(t) {
176
+ return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
177
+ }
178
+ function Mt(t) {
179
+ return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
180
+ }
181
+ function B() {
182
+ const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
183
+ for (let s = 1; s < arguments.length; s += 1) {
184
+ const r = s < 0 || arguments.length <= s ? void 0 : arguments[s];
185
+ if (r != null && !Mt(r)) {
186
+ const n = Object.keys(Object(r)).filter((i) => e.indexOf(i) < 0);
187
+ for (let i = 0, l = n.length; i < l; i += 1) {
188
+ const a = n[i], o = Object.getOwnPropertyDescriptor(r, a);
189
+ o !== void 0 && o.enumerable && (se(t[a]) && se(r[a]) ? r[a].__swiper__ ? t[a] = r[a] : B(t[a], r[a]) : !se(t[a]) && se(r[a]) ? (t[a] = {}, r[a].__swiper__ ? t[a] = r[a] : B(t[a], r[a])) : t[a] = r[a]);
190
+ }
191
+ }
192
+ }
193
+ return t;
194
+ }
195
+ function re(t, e, s) {
196
+ t.style.setProperty(e, s);
197
+ }
198
+ function Ye(t) {
199
+ let {
200
+ swiper: e,
201
+ targetPosition: s,
202
+ side: r
203
+ } = t;
204
+ const n = N(), i = -e.translate;
205
+ let l = null, a;
206
+ const o = e.params.speed;
207
+ e.wrapperEl.style.scrollSnapType = "none", n.cancelAnimationFrame(e.cssModeFrameID);
208
+ const c = s > i ? "next" : "prev", d = (f, v) => c === "next" && f >= v || c === "prev" && f <= v, u = () => {
209
+ a = (/* @__PURE__ */ new Date()).getTime(), l === null && (l = a);
210
+ const f = Math.max(Math.min((a - l) / o, 1), 0), v = 0.5 - Math.cos(f * Math.PI) / 2;
211
+ let h = i + v * (s - i);
212
+ if (d(h, s) && (h = s), e.wrapperEl.scrollTo({
213
+ [r]: h
214
+ }), d(h, s)) {
215
+ e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.scrollSnapType = "", setTimeout(() => {
216
+ e.wrapperEl.style.overflow = "", e.wrapperEl.scrollTo({
217
+ [r]: h
218
+ });
219
+ }), n.cancelAnimationFrame(e.cssModeFrameID);
220
+ return;
221
+ }
222
+ e.cssModeFrameID = n.requestAnimationFrame(u);
223
+ };
224
+ u();
225
+ }
226
+ function H(t, e) {
227
+ e === void 0 && (e = "");
228
+ const s = N(), r = [...t.children];
229
+ return s.HTMLSlotElement && t instanceof HTMLSlotElement && r.push(...t.assignedElements()), e ? r.filter((n) => n.matches(e)) : r;
230
+ }
231
+ function kt(t, e) {
232
+ const s = [e];
233
+ for (; s.length > 0; ) {
234
+ const r = s.shift();
235
+ if (t === r)
236
+ return !0;
237
+ s.push(...r.children, ...r.shadowRoot ? r.shadowRoot.children : [], ...r.assignedElements ? r.assignedElements() : []);
238
+ }
239
+ }
240
+ function It(t, e) {
241
+ const s = N();
242
+ let r = e.contains(t);
243
+ return !r && s.HTMLSlotElement && e instanceof HTMLSlotElement && (r = [...e.assignedElements()].includes(t), r || (r = kt(t, e))), r;
244
+ }
245
+ function oe(t) {
246
+ try {
247
+ console.warn(t);
248
+ return;
249
+ } catch {
250
+ }
251
+ }
252
+ function de(t, e) {
253
+ e === void 0 && (e = []);
254
+ const s = document.createElement(t);
255
+ return s.classList.add(...Array.isArray(e) ? e : xt(e)), s;
256
+ }
257
+ function Lt(t, e) {
258
+ const s = [];
259
+ for (; t.previousElementSibling; ) {
260
+ const r = t.previousElementSibling;
261
+ e ? r.matches(e) && s.push(r) : s.push(r), t = r;
262
+ }
263
+ return s;
264
+ }
265
+ function At(t, e) {
266
+ const s = [];
267
+ for (; t.nextElementSibling; ) {
268
+ const r = t.nextElementSibling;
269
+ e ? r.matches(e) && s.push(r) : s.push(r), t = r;
270
+ }
271
+ return s;
272
+ }
273
+ function Y(t, e) {
274
+ return N().getComputedStyle(t, null).getPropertyValue(e);
275
+ }
276
+ function ce(t) {
277
+ let e = t, s;
278
+ if (e) {
279
+ for (s = 0; (e = e.previousSibling) !== null; )
280
+ e.nodeType === 1 && (s += 1);
281
+ return s;
282
+ }
283
+ }
284
+ function Xe(t, e) {
285
+ const s = [];
286
+ let r = t.parentElement;
287
+ for (; r; )
288
+ e ? r.matches(e) && s.push(r) : s.push(r), r = r.parentElement;
289
+ return s;
290
+ }
291
+ function Te(t, e, s) {
292
+ const r = N();
293
+ 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"));
294
+ }
295
+ function R(t) {
296
+ return (Array.isArray(t) ? t : [t]).filter((e) => !!e);
297
+ }
298
+ let fe;
299
+ function Ot() {
300
+ const t = N(), e = K();
301
+ return {
302
+ smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
303
+ touch: !!("ontouchstart" in t || t.DocumentTouch && e instanceof t.DocumentTouch)
304
+ };
305
+ }
306
+ function Ue() {
307
+ return fe || (fe = Ot()), fe;
308
+ }
309
+ let he;
310
+ function zt(t) {
311
+ let {
312
+ userAgent: e
313
+ } = t === void 0 ? {} : t;
314
+ const s = Ue(), r = N(), n = r.navigator.platform, i = e || r.navigator.userAgent, l = {
315
+ ios: !1,
316
+ android: !1
317
+ }, a = r.screen.width, o = r.screen.height, c = i.match(/(Android);?[\s\/]+([\d.]+)?/);
318
+ let d = i.match(/(iPad).*OS\s([\d_]+)/);
319
+ const u = i.match(/(iPod)(.*OS\s([\d_]+))?/), f = !d && i.match(/(iPhone\sOS|iOS)\s([\d_]+)/), v = n === "Win32";
320
+ let h = n === "MacIntel";
321
+ const b = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
322
+ 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;
323
+ }
324
+ function Qe(t) {
325
+ return t === void 0 && (t = {}), he || (he = zt(t)), he;
326
+ }
327
+ let ve;
328
+ function _t() {
329
+ const t = N(), e = Qe();
330
+ let s = !1;
331
+ function r() {
332
+ const a = t.navigator.userAgent.toLowerCase();
333
+ return a.indexOf("safari") >= 0 && a.indexOf("chrome") < 0 && a.indexOf("android") < 0;
334
+ }
335
+ if (r()) {
336
+ const a = String(t.navigator.userAgent);
337
+ if (a.includes("Version/")) {
338
+ const [o, c] = a.split("Version/")[1].split(" ")[0].split(".").map((d) => Number(d));
339
+ s = o < 16 || o === 16 && c < 2;
340
+ }
341
+ }
342
+ const n = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent), i = r(), l = i || n && e.ios;
343
+ return {
344
+ isSafari: s || i,
345
+ needPerspectiveFix: s,
346
+ need3dFix: l,
347
+ isWebView: n
348
+ };
349
+ }
350
+ function Ke() {
351
+ return ve || (ve = _t()), ve;
352
+ }
353
+ function $t(t) {
354
+ let {
355
+ swiper: e,
356
+ on: s,
357
+ emit: r
358
+ } = t;
359
+ const n = N();
360
+ let i = null, l = null;
361
+ const a = () => {
362
+ !e || e.destroyed || !e.initialized || (r("beforeResize"), r("resize"));
363
+ }, o = () => {
364
+ !e || e.destroyed || !e.initialized || (i = new ResizeObserver((u) => {
365
+ l = n.requestAnimationFrame(() => {
366
+ const {
367
+ width: f,
368
+ height: v
369
+ } = e;
370
+ let h = f, b = v;
371
+ u.forEach((M) => {
372
+ let {
373
+ contentBoxSize: w,
374
+ contentRect: p,
375
+ target: m
376
+ } = M;
377
+ m && m !== e.el || (h = p ? p.width : (w[0] || w).inlineSize, b = p ? p.height : (w[0] || w).blockSize);
378
+ }), (h !== f || b !== v) && a();
379
+ });
380
+ }), i.observe(e.el));
381
+ }, c = () => {
382
+ l && n.cancelAnimationFrame(l), i && i.unobserve && e.el && (i.unobserve(e.el), i = null);
383
+ }, d = () => {
384
+ !e || e.destroyed || !e.initialized || r("orientationchange");
385
+ };
386
+ s("init", () => {
387
+ if (e.params.resizeObserver && typeof n.ResizeObserver < "u") {
388
+ o();
389
+ return;
390
+ }
391
+ n.addEventListener("resize", a), n.addEventListener("orientationchange", d);
392
+ }), s("destroy", () => {
393
+ c(), n.removeEventListener("resize", a), n.removeEventListener("orientationchange", d);
394
+ });
395
+ }
396
+ function Gt(t) {
397
+ let {
398
+ swiper: e,
399
+ extendParams: s,
400
+ on: r,
401
+ emit: n
402
+ } = t;
403
+ const i = [], l = N(), a = function(d, u) {
404
+ u === void 0 && (u = {});
405
+ const f = l.MutationObserver || l.WebkitMutationObserver, v = new f((h) => {
406
+ if (e.__preventObserver__) return;
407
+ if (h.length === 1) {
408
+ n("observerUpdate", h[0]);
409
+ return;
410
+ }
411
+ const b = function() {
412
+ n("observerUpdate", h[0]);
413
+ };
414
+ l.requestAnimationFrame ? l.requestAnimationFrame(b) : l.setTimeout(b, 0);
415
+ });
416
+ v.observe(d, {
417
+ attributes: typeof u.attributes > "u" ? !0 : u.attributes,
418
+ childList: e.isElement || (typeof u.childList > "u" ? !0 : u).childList,
419
+ characterData: typeof u.characterData > "u" ? !0 : u.characterData
420
+ }), i.push(v);
421
+ }, o = () => {
422
+ if (e.params.observer) {
423
+ if (e.params.observeParents) {
424
+ const d = Xe(e.hostEl);
425
+ for (let u = 0; u < d.length; u += 1)
426
+ a(d[u]);
427
+ }
428
+ a(e.hostEl, {
429
+ childList: e.params.observeSlideChildren
430
+ }), a(e.wrapperEl, {
431
+ attributes: !1
432
+ });
433
+ }
434
+ }, c = () => {
435
+ i.forEach((d) => {
436
+ d.disconnect();
437
+ }), i.splice(0, i.length);
438
+ };
439
+ s({
440
+ observer: !1,
441
+ observeParents: !1,
442
+ observeSlideChildren: !1
443
+ }), r("init", o), r("destroy", c);
444
+ }
445
+ var Nt = {
446
+ on(t, e, s) {
447
+ const r = this;
448
+ if (!r.eventsListeners || r.destroyed || typeof e != "function") return r;
449
+ const n = s ? "unshift" : "push";
450
+ return t.split(" ").forEach((i) => {
451
+ r.eventsListeners[i] || (r.eventsListeners[i] = []), r.eventsListeners[i][n](e);
452
+ }), r;
453
+ },
454
+ once(t, e, s) {
455
+ const r = this;
456
+ if (!r.eventsListeners || r.destroyed || typeof e != "function") return r;
457
+ function n() {
458
+ r.off(t, n), n.__emitterProxy && delete n.__emitterProxy;
459
+ for (var i = arguments.length, l = new Array(i), a = 0; a < i; a++)
460
+ l[a] = arguments[a];
461
+ e.apply(r, l);
462
+ }
463
+ return n.__emitterProxy = e, r.on(t, n, s);
464
+ },
465
+ onAny(t, e) {
466
+ const s = this;
467
+ if (!s.eventsListeners || s.destroyed || typeof t != "function") return s;
468
+ const r = e ? "unshift" : "push";
469
+ return s.eventsAnyListeners.indexOf(t) < 0 && s.eventsAnyListeners[r](t), s;
470
+ },
471
+ offAny(t) {
472
+ const e = this;
473
+ if (!e.eventsListeners || e.destroyed || !e.eventsAnyListeners) return e;
474
+ const s = e.eventsAnyListeners.indexOf(t);
475
+ return s >= 0 && e.eventsAnyListeners.splice(s, 1), e;
476
+ },
477
+ off(t, e) {
478
+ const s = this;
479
+ return !s.eventsListeners || s.destroyed || !s.eventsListeners || t.split(" ").forEach((r) => {
480
+ typeof e > "u" ? s.eventsListeners[r] = [] : s.eventsListeners[r] && s.eventsListeners[r].forEach((n, i) => {
481
+ (n === e || n.__emitterProxy && n.__emitterProxy === e) && s.eventsListeners[r].splice(i, 1);
482
+ });
483
+ }), s;
484
+ },
485
+ emit() {
486
+ const t = this;
487
+ if (!t.eventsListeners || t.destroyed || !t.eventsListeners) return t;
488
+ let e, s, r;
489
+ for (var n = arguments.length, i = new Array(n), l = 0; l < n; l++)
490
+ i[l] = arguments[l];
491
+ return typeof i[0] == "string" || Array.isArray(i[0]) ? (e = i[0], s = i.slice(1, i.length), r = t) : (e = i[0].events, s = i[0].data, r = i[0].context || t), s.unshift(r), (Array.isArray(e) ? e : e.split(" ")).forEach((a) => {
492
+ t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((o) => {
493
+ o.apply(r, [a, ...s]);
494
+ }), t.eventsListeners && t.eventsListeners[a] && t.eventsListeners[a].forEach((o) => {
495
+ o.apply(r, s);
496
+ });
497
+ }), t;
498
+ }
499
+ };
500
+ function Bt() {
501
+ const t = this;
502
+ let e, s;
503
+ const r = t.el;
504
+ typeof t.params.width < "u" && t.params.width !== null ? e = t.params.width : e = r.clientWidth, typeof t.params.height < "u" && t.params.height !== null ? s = t.params.height : s = r.clientHeight, !(e === 0 && t.isHorizontal() || s === 0 && t.isVertical()) && (e = e - parseInt(Y(r, "padding-left") || 0, 10) - parseInt(Y(r, "padding-right") || 0, 10), s = s - parseInt(Y(r, "padding-top") || 0, 10) - parseInt(Y(r, "padding-bottom") || 0, 10), Number.isNaN(e) && (e = 0), Number.isNaN(s) && (s = 0), Object.assign(t, {
505
+ width: e,
506
+ height: s,
507
+ size: t.isHorizontal() ? e : s
508
+ }));
509
+ }
510
+ function Dt() {
511
+ const t = this;
512
+ function e(E, x) {
513
+ return parseFloat(E.getPropertyValue(t.getDirectionLabel(x)) || 0);
514
+ }
515
+ const s = t.params, {
516
+ wrapperEl: r,
517
+ slidesEl: n,
518
+ size: i,
519
+ rtlTranslate: l,
520
+ wrongRTL: a
521
+ } = 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;
522
+ let f = [];
523
+ const v = [], h = [];
524
+ let b = s.slidesOffsetBefore;
525
+ typeof b == "function" && (b = s.slidesOffsetBefore.call(t));
526
+ let M = s.slidesOffsetAfter;
527
+ typeof M == "function" && (M = s.slidesOffsetAfter.call(t));
528
+ const w = t.snapGrid.length, p = t.slidesGrid.length;
529
+ let m = s.spaceBetween, g = -b, y = 0, T = 0;
530
+ if (typeof i > "u")
531
+ return;
532
+ typeof m == "string" && m.indexOf("%") >= 0 ? m = parseFloat(m.replace("%", "")) / 100 * i : typeof m == "string" && (m = parseFloat(m)), t.virtualSize = -m, d.forEach((E) => {
533
+ l ? E.style.marginLeft = "" : E.style.marginRight = "", E.style.marginBottom = "", E.style.marginTop = "";
534
+ }), s.centeredSlides && s.cssMode && (re(r, "--swiper-centered-offset-before", ""), re(r, "--swiper-centered-offset-after", ""));
535
+ const A = s.grid && s.grid.rows > 1 && t.grid;
536
+ A ? t.grid.initSlides(d) : t.grid && t.grid.unsetSlides();
537
+ let I;
538
+ const S = s.slidesPerView === "auto" && s.breakpoints && Object.keys(s.breakpoints).filter((E) => typeof s.breakpoints[E].slidesPerView < "u").length > 0;
539
+ for (let E = 0; E < u; E += 1) {
540
+ I = 0;
541
+ let x;
542
+ if (d[E] && (x = d[E]), A && t.grid.updateSlide(E, x, d), !(d[E] && Y(x, "display") === "none")) {
543
+ if (s.slidesPerView === "auto") {
544
+ S && (d[E].style[t.getDirectionLabel("width")] = "");
545
+ const k = getComputedStyle(x), L = x.style.transform, O = x.style.webkitTransform;
546
+ if (L && (x.style.transform = "none"), O && (x.style.webkitTransform = "none"), s.roundLengths)
547
+ I = t.isHorizontal() ? Te(x, "width") : Te(x, "height");
548
+ else {
549
+ 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");
550
+ if (j && j === "border-box")
551
+ I = C + V + G;
552
+ else {
553
+ const {
554
+ clientWidth: ut,
555
+ offsetWidth: mt
556
+ } = x;
557
+ I = C + z + U + V + G + (mt - ut);
558
+ }
559
+ }
560
+ L && (x.style.transform = L), O && (x.style.webkitTransform = O), s.roundLengths && (I = Math.floor(I));
561
+ } else
562
+ I = (i - (s.slidesPerView - 1) * m) / s.slidesPerView, s.roundLengths && (I = Math.floor(I)), d[E] && (d[E].style[t.getDirectionLabel("width")] = `${I}px`);
563
+ 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
+ }
565
+ }
566
+ 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) {
567
+ const E = [];
568
+ for (let x = 0; x < f.length; x += 1) {
569
+ let k = f[x];
570
+ s.roundLengths && (k = Math.floor(k)), f[x] <= t.virtualSize - i && E.push(k);
571
+ }
572
+ f = E, Math.floor(t.virtualSize - i) - Math.floor(f[f.length - 1]) > 1 && f.push(t.virtualSize - i);
573
+ }
574
+ if (o && s.loop) {
575
+ const E = h[0] + m;
576
+ if (s.slidesPerGroup > 1) {
577
+ const x = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / s.slidesPerGroup), k = E * s.slidesPerGroup;
578
+ for (let L = 0; L < x; L += 1)
579
+ f.push(f[f.length - 1] + k);
580
+ }
581
+ for (let x = 0; x < t.virtual.slidesBefore + t.virtual.slidesAfter; x += 1)
582
+ s.slidesPerGroup === 1 && f.push(f[f.length - 1] + E), v.push(v[v.length - 1] + E), t.virtualSize += E;
583
+ }
584
+ if (f.length === 0 && (f = [0]), m !== 0) {
585
+ const E = t.isHorizontal() && l ? "marginLeft" : t.getDirectionLabel("marginRight");
586
+ d.filter((x, k) => !s.cssMode || s.loop ? !0 : k !== d.length - 1).forEach((x) => {
587
+ x.style[E] = `${m}px`;
588
+ });
589
+ }
590
+ if (s.centeredSlides && s.centeredSlidesBounds) {
591
+ let E = 0;
592
+ h.forEach((k) => {
593
+ E += k + (m || 0);
594
+ }), E -= m;
595
+ const x = E > i ? E - i : 0;
596
+ f = f.map((k) => k <= 0 ? -b : k > x ? x + M : k);
597
+ }
598
+ if (s.centerInsufficientSlides) {
599
+ let E = 0;
600
+ h.forEach((k) => {
601
+ E += k + (m || 0);
602
+ }), E -= m;
603
+ const x = (s.slidesOffsetBefore || 0) + (s.slidesOffsetAfter || 0);
604
+ if (E + x < i) {
605
+ const k = (i - E - x) / 2;
606
+ f.forEach((L, O) => {
607
+ f[O] = L - k;
608
+ }), v.forEach((L, O) => {
609
+ v[O] = L + k;
610
+ });
611
+ }
612
+ }
613
+ if (Object.assign(t, {
614
+ slides: d,
615
+ snapGrid: f,
616
+ slidesGrid: v,
617
+ slidesSizesGrid: h
618
+ }), s.centeredSlides && s.cssMode && !s.centeredSlidesBounds) {
619
+ re(r, "--swiper-centered-offset-before", `${-f[0]}px`), re(r, "--swiper-centered-offset-after", `${t.size / 2 - h[h.length - 1] / 2}px`);
620
+ const E = -t.snapGrid[0], x = -t.slidesGrid[0];
621
+ t.snapGrid = t.snapGrid.map((k) => k + E), t.slidesGrid = t.slidesGrid.map((k) => k + x);
622
+ }
623
+ 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")) {
624
+ const E = `${s.containerModifierClass}backface-hidden`, x = t.el.classList.contains(E);
625
+ u <= s.maxBackfaceHiddenSlides ? x || t.el.classList.add(E) : x && t.el.classList.remove(E);
626
+ }
627
+ }
628
+ function Ft(t) {
629
+ const e = this, s = [], r = e.virtual && e.params.virtual.enabled;
630
+ let n = 0, i;
631
+ typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
632
+ const l = (a) => r ? e.slides[e.getSlideIndexByData(a)] : e.slides[a];
633
+ if (e.params.slidesPerView !== "auto" && e.params.slidesPerView > 1)
634
+ if (e.params.centeredSlides)
635
+ (e.visibleSlides || []).forEach((a) => {
636
+ s.push(a);
637
+ });
638
+ else
639
+ for (i = 0; i < Math.ceil(e.params.slidesPerView); i += 1) {
640
+ const a = e.activeIndex + i;
641
+ if (a > e.slides.length && !r) break;
642
+ s.push(l(a));
643
+ }
644
+ else
645
+ s.push(l(e.activeIndex));
646
+ for (i = 0; i < s.length; i += 1)
647
+ if (typeof s[i] < "u") {
648
+ const a = s[i].offsetHeight;
649
+ n = a > n ? a : n;
650
+ }
651
+ (n || n === 0) && (e.wrapperEl.style.height = `${n}px`);
652
+ }
653
+ function Vt() {
654
+ const t = this, e = t.slides, s = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
655
+ for (let r = 0; r < e.length; r += 1)
656
+ e[r].swiperSlideOffset = (t.isHorizontal() ? e[r].offsetLeft : e[r].offsetTop) - s - t.cssOverflowAdjustment();
657
+ }
658
+ const $e = (t, e, s) => {
659
+ e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
660
+ };
661
+ function jt(t) {
662
+ t === void 0 && (t = this && this.translate || 0);
663
+ const e = this, s = e.params, {
664
+ slides: r,
665
+ rtlTranslate: n,
666
+ snapGrid: i
667
+ } = e;
668
+ if (r.length === 0) return;
669
+ typeof r[0].swiperSlideOffset > "u" && e.updateSlidesOffset();
670
+ let l = -t;
671
+ n && (l = t), e.visibleSlidesIndexes = [], e.visibleSlides = [];
672
+ let a = s.spaceBetween;
673
+ typeof a == "string" && a.indexOf("%") >= 0 ? a = parseFloat(a.replace("%", "")) / 100 * e.size : typeof a == "string" && (a = parseFloat(a));
674
+ for (let o = 0; o < r.length; o += 1) {
675
+ const c = r[o];
676
+ let d = c.swiperSlideOffset;
677
+ s.cssMode && s.centeredSlides && (d -= r[0].swiperSlideOffset);
678
+ 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;
679
+ 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
+ }
681
+ }
682
+ function Ht(t) {
683
+ const e = this;
684
+ if (typeof t > "u") {
685
+ const d = e.rtlTranslate ? -1 : 1;
686
+ t = e && e.translate && e.translate * d || 0;
687
+ }
688
+ const s = e.params, r = e.maxTranslate() - e.minTranslate();
689
+ let {
690
+ progress: n,
691
+ isBeginning: i,
692
+ isEnd: l,
693
+ progressLoop: a
694
+ } = e;
695
+ const o = i, c = l;
696
+ if (r === 0)
697
+ n = 0, i = !0, l = !0;
698
+ else {
699
+ n = (t - e.minTranslate()) / r;
700
+ const d = Math.abs(t - e.minTranslate()) < 1, u = Math.abs(t - e.maxTranslate()) < 1;
701
+ i = d || n <= 0, l = u || n >= 1, d && (n = 0), u && (n = 1);
702
+ }
703
+ if (s.loop) {
704
+ 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);
705
+ b >= f ? a = (b - f) / h : a = (b + h - v) / h, a > 1 && (a -= 1);
706
+ }
707
+ Object.assign(e, {
708
+ progress: n,
709
+ progressLoop: a,
710
+ isBeginning: i,
711
+ isEnd: l
712
+ }), (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);
713
+ }
714
+ const ge = (t, e, s) => {
715
+ e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
716
+ };
717
+ function Rt() {
718
+ const t = this, {
719
+ slides: e,
720
+ params: s,
721
+ slidesEl: r,
722
+ activeIndex: n
723
+ } = 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];
724
+ let o, c, d;
725
+ if (i)
726
+ if (s.loop) {
727
+ let u = n - t.virtual.slidesBefore;
728
+ 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
+ } else
730
+ o = a(`[data-swiper-slide-index="${n}"]`);
731
+ else
732
+ 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];
733
+ o && (l || (d = At(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !d && (d = e[0]), c = Lt(o, `.${s.slideClass}, swiper-slide`)[0], s.loop && !c === 0 && (c = e[e.length - 1]))), e.forEach((u) => {
734
+ ge(u, u === o, s.slideActiveClass), ge(u, u === d, s.slideNextClass), ge(u, u === c, s.slidePrevClass);
735
+ }), t.emitSlidesClasses();
736
+ }
737
+ const ne = (t, e) => {
738
+ if (!t || t.destroyed || !t.params) return;
739
+ const s = () => t.isElement ? "swiper-slide" : `.${t.params.slideClass}`, r = e.closest(s());
740
+ if (r) {
741
+ let n = r.querySelector(`.${t.params.lazyPreloaderClass}`);
742
+ !n && t.isElement && (r.shadowRoot ? n = r.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`) : requestAnimationFrame(() => {
743
+ r.shadowRoot && (n = r.shadowRoot.querySelector(`.${t.params.lazyPreloaderClass}`), n && n.remove());
744
+ })), n && n.remove();
745
+ }
746
+ }, we = (t, e) => {
747
+ if (!t.slides[e]) return;
748
+ const s = t.slides[e].querySelector('[loading="lazy"]');
749
+ s && s.removeAttribute("loading");
750
+ }, Ce = (t) => {
751
+ if (!t || t.destroyed || !t.params) return;
752
+ let e = t.params.lazyPreloadPrevNext;
753
+ const s = t.slides.length;
754
+ if (!s || !e || e < 0) return;
755
+ e = Math.min(e, s);
756
+ const r = t.params.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(t.params.slidesPerView), n = t.activeIndex;
757
+ if (t.params.grid && t.params.grid.rows > 1) {
758
+ const l = n, a = [l - e];
759
+ a.push(...Array.from({
760
+ length: e
761
+ }).map((o, c) => l + r + c)), t.slides.forEach((o, c) => {
762
+ a.includes(o.column) && we(t, c);
763
+ });
764
+ return;
765
+ }
766
+ const i = n + r - 1;
767
+ if (t.params.rewind || t.params.loop)
768
+ for (let l = n - e; l <= i + e; l += 1) {
769
+ const a = (l % s + s) % s;
770
+ (a < n || a > i) && we(t, a);
771
+ }
772
+ else
773
+ for (let l = Math.max(n - e, 0); l <= Math.min(i + e, s - 1); l += 1)
774
+ l !== n && (l > i || l < n) && we(t, l);
775
+ };
776
+ function qt(t) {
777
+ const {
778
+ slidesGrid: e,
779
+ params: s
780
+ } = t, r = t.rtlTranslate ? t.translate : -t.translate;
781
+ let n;
782
+ for (let i = 0; i < e.length; i += 1)
783
+ typeof e[i + 1] < "u" ? r >= e[i] && r < e[i + 1] - (e[i + 1] - e[i]) / 2 ? n = i : r >= e[i] && r < e[i + 1] && (n = i + 1) : r >= e[i] && (n = i);
784
+ return s.normalizeSlideIndex && (n < 0 || typeof n > "u") && (n = 0), n;
785
+ }
786
+ function Wt(t) {
787
+ const e = this, s = e.rtlTranslate ? e.translate : -e.translate, {
788
+ snapGrid: r,
789
+ params: n,
790
+ activeIndex: i,
791
+ realIndex: l,
792
+ snapIndex: a
793
+ } = e;
794
+ let o = t, c;
795
+ const d = (v) => {
796
+ let h = v - e.virtual.slidesBefore;
797
+ return h < 0 && (h = e.virtual.slides.length + h), h >= e.virtual.slides.length && (h -= e.virtual.slides.length), h;
798
+ };
799
+ if (typeof o > "u" && (o = qt(e)), r.indexOf(s) >= 0)
800
+ c = r.indexOf(s);
801
+ else {
802
+ const v = Math.min(n.slidesPerGroupSkip, o);
803
+ c = v + Math.floor((o - v) / n.slidesPerGroup);
804
+ }
805
+ if (c >= r.length && (c = r.length - 1), o === i && !e.params.loop) {
806
+ c !== a && (e.snapIndex = c, e.emit("snapIndexChange"));
807
+ return;
808
+ }
809
+ if (o === i && e.params.loop && e.virtual && e.params.virtual.enabled) {
810
+ e.realIndex = d(o);
811
+ return;
812
+ }
813
+ const u = e.grid && n.grid && n.grid.rows > 1;
814
+ let f;
815
+ if (e.virtual && n.virtual.enabled && n.loop)
816
+ f = d(o);
817
+ else if (u) {
818
+ const v = e.slides.find((b) => b.column === o);
819
+ let h = parseInt(v.getAttribute("data-swiper-slide-index"), 10);
820
+ Number.isNaN(h) && (h = Math.max(e.slides.indexOf(v), 0)), f = Math.floor(h / n.grid.rows);
821
+ } else if (e.slides[o]) {
822
+ const v = e.slides[o].getAttribute("data-swiper-slide-index");
823
+ v ? f = parseInt(v, 10) : f = o;
824
+ } else
825
+ f = o;
826
+ Object.assign(e, {
827
+ previousSnapIndex: a,
828
+ snapIndex: c,
829
+ previousRealIndex: l,
830
+ realIndex: f,
831
+ previousIndex: i,
832
+ activeIndex: o
833
+ }), e.initialized && Ce(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (l !== f && e.emit("realIndexChange"), e.emit("slideChange"));
834
+ }
835
+ function Yt(t, e) {
836
+ const s = this, r = s.params;
837
+ let n = t.closest(`.${r.slideClass}, swiper-slide`);
838
+ !n && s.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((a) => {
839
+ !n && a.matches && a.matches(`.${r.slideClass}, swiper-slide`) && (n = a);
840
+ });
841
+ let i = !1, l;
842
+ if (n) {
843
+ for (let a = 0; a < s.slides.length; a += 1)
844
+ if (s.slides[a] === n) {
845
+ i = !0, l = a;
846
+ break;
847
+ }
848
+ }
849
+ if (n && i)
850
+ s.clickedSlide = n, s.virtual && s.params.virtual.enabled ? s.clickedIndex = parseInt(n.getAttribute("data-swiper-slide-index"), 10) : s.clickedIndex = l;
851
+ else {
852
+ s.clickedSlide = void 0, s.clickedIndex = void 0;
853
+ return;
854
+ }
855
+ r.slideToClickedSlide && s.clickedIndex !== void 0 && s.clickedIndex !== s.activeIndex && s.slideToClickedSlide();
856
+ }
857
+ var Xt = {
858
+ updateSize: Bt,
859
+ updateSlides: Dt,
860
+ updateAutoHeight: Ft,
861
+ updateSlidesOffset: Vt,
862
+ updateSlidesProgress: jt,
863
+ updateProgress: Ht,
864
+ updateSlidesClasses: Rt,
865
+ updateActiveIndex: Wt,
866
+ updateClickedSlide: Yt
867
+ };
868
+ function Ut(t) {
869
+ t === void 0 && (t = this.isHorizontal() ? "x" : "y");
870
+ const e = this, {
871
+ params: s,
872
+ rtlTranslate: r,
873
+ translate: n,
874
+ wrapperEl: i
875
+ } = e;
876
+ if (s.virtualTranslate)
877
+ return r ? -n : n;
878
+ if (s.cssMode)
879
+ return n;
880
+ let l = Pt(i, t);
881
+ return l += e.cssOverflowAdjustment(), r && (l = -l), l || 0;
882
+ }
883
+ function Qt(t, e) {
884
+ const s = this, {
885
+ rtlTranslate: r,
886
+ params: n,
887
+ wrapperEl: i,
888
+ progress: l
889
+ } = s;
890
+ let a = 0, o = 0;
891
+ const c = 0;
892
+ 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)`);
893
+ let d;
894
+ const u = s.maxTranslate() - s.minTranslate();
895
+ u === 0 ? d = 0 : d = (t - s.minTranslate()) / u, d !== l && s.updateProgress(t), s.emit("setTranslate", s.translate, e);
896
+ }
897
+ function Kt() {
898
+ return -this.snapGrid[0];
899
+ }
900
+ function Jt() {
901
+ return -this.snapGrid[this.snapGrid.length - 1];
902
+ }
903
+ function Zt(t, e, s, r, n) {
904
+ t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), s === void 0 && (s = !0), r === void 0 && (r = !0);
905
+ const i = this, {
906
+ params: l,
907
+ wrapperEl: a
908
+ } = i;
909
+ if (i.animating && l.preventInteractionOnTransition)
910
+ return !1;
911
+ const o = i.minTranslate(), c = i.maxTranslate();
912
+ let d;
913
+ if (r && t > o ? d = o : r && t < c ? d = c : d = t, i.updateProgress(d), l.cssMode) {
914
+ const u = i.isHorizontal();
915
+ if (e === 0)
916
+ a[u ? "scrollLeft" : "scrollTop"] = -d;
917
+ else {
918
+ if (!i.support.smoothScroll)
919
+ return Ye({
920
+ swiper: i,
921
+ targetPosition: -d,
922
+ side: u ? "left" : "top"
923
+ }), !0;
924
+ a.scrollTo({
925
+ [u ? "left" : "top"]: -d,
926
+ behavior: "smooth"
927
+ });
928
+ }
929
+ return !0;
930
+ }
931
+ 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) {
932
+ !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
+ }), i.wrapperEl.addEventListener("transitionend", i.onTranslateToWrapperTransitionEnd))), !0;
934
+ }
935
+ var es = {
936
+ getTranslate: Ut,
937
+ setTranslate: Qt,
938
+ minTranslate: Kt,
939
+ maxTranslate: Jt,
940
+ translateTo: Zt
941
+ };
942
+ function ts(t, e) {
943
+ const s = this;
944
+ s.params.cssMode || (s.wrapperEl.style.transitionDuration = `${t}ms`, s.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), s.emit("setTransition", t, e);
945
+ }
946
+ function Je(t) {
947
+ let {
948
+ swiper: e,
949
+ runCallbacks: s,
950
+ direction: r,
951
+ step: n
952
+ } = t;
953
+ const {
954
+ activeIndex: i,
955
+ previousIndex: l
956
+ } = e;
957
+ let a = r;
958
+ if (a || (i > l ? a = "next" : i < l ? a = "prev" : a = "reset"), e.emit(`transition${n}`), s && i !== l) {
959
+ if (a === "reset") {
960
+ e.emit(`slideResetTransition${n}`);
961
+ return;
962
+ }
963
+ e.emit(`slideChangeTransition${n}`), a === "next" ? e.emit(`slideNextTransition${n}`) : e.emit(`slidePrevTransition${n}`);
964
+ }
965
+ }
966
+ function ss(t, e) {
967
+ t === void 0 && (t = !0);
968
+ const s = this, {
969
+ params: r
970
+ } = s;
971
+ r.cssMode || (r.autoHeight && s.updateAutoHeight(), Je({
972
+ swiper: s,
973
+ runCallbacks: t,
974
+ direction: e,
975
+ step: "Start"
976
+ }));
977
+ }
978
+ function rs(t, e) {
979
+ t === void 0 && (t = !0);
980
+ const s = this, {
981
+ params: r
982
+ } = s;
983
+ s.animating = !1, !r.cssMode && (s.setTransition(0), Je({
984
+ swiper: s,
985
+ runCallbacks: t,
986
+ direction: e,
987
+ step: "End"
988
+ }));
989
+ }
990
+ var is = {
991
+ setTransition: ts,
992
+ transitionStart: ss,
993
+ transitionEnd: rs
994
+ };
995
+ function ns(t, e, s, r, n) {
996
+ t === void 0 && (t = 0), s === void 0 && (s = !0), typeof t == "string" && (t = parseInt(t, 10));
997
+ const i = this;
998
+ let l = t;
999
+ l < 0 && (l = 0);
1000
+ const {
1001
+ params: a,
1002
+ snapGrid: o,
1003
+ slidesGrid: c,
1004
+ previousIndex: d,
1005
+ activeIndex: u,
1006
+ rtlTranslate: f,
1007
+ wrapperEl: v,
1008
+ enabled: h
1009
+ } = i;
1010
+ if (!h && !r && !n || i.destroyed || i.animating && a.preventInteractionOnTransition)
1011
+ return !1;
1012
+ typeof e > "u" && (e = i.params.speed);
1013
+ const b = Math.min(i.params.slidesPerGroupSkip, l);
1014
+ let M = b + Math.floor((l - b) / i.params.slidesPerGroup);
1015
+ M >= o.length && (M = o.length - 1);
1016
+ const w = -o[M];
1017
+ if (a.normalizeSlideIndex)
1018
+ for (let y = 0; y < c.length; y += 1) {
1019
+ const T = -Math.floor(w * 100), A = Math.floor(c[y] * 100), I = Math.floor(c[y + 1] * 100);
1020
+ 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
+ }
1022
+ 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))
1023
+ return !1;
1024
+ l !== (d || 0) && s && i.emit("beforeSlideChangeStart"), i.updateProgress(w);
1025
+ let p;
1026
+ l > u ? p = "next" : l < u ? p = "prev" : p = "reset";
1027
+ const m = i.virtual && i.params.virtual.enabled;
1028
+ if (!(m && n) && (f && -w === i.translate || !f && w === i.translate))
1029
+ 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;
1030
+ if (a.cssMode) {
1031
+ const y = i.isHorizontal(), T = f ? w : -w;
1032
+ if (e === 0)
1033
+ m && (i.wrapperEl.style.scrollSnapType = "none", i._immediateVirtual = !0), m && !i._cssModeVirtualInitialSet && i.params.initialSlide > 0 ? (i._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
1034
+ v[y ? "scrollLeft" : "scrollTop"] = T;
1035
+ })) : v[y ? "scrollLeft" : "scrollTop"] = T, m && requestAnimationFrame(() => {
1036
+ i.wrapperEl.style.scrollSnapType = "", i._immediateVirtual = !1;
1037
+ });
1038
+ else {
1039
+ if (!i.support.smoothScroll)
1040
+ return Ye({
1041
+ swiper: i,
1042
+ targetPosition: T,
1043
+ side: y ? "left" : "top"
1044
+ }), !0;
1045
+ v.scrollTo({
1046
+ [y ? "left" : "top"]: T,
1047
+ behavior: "smooth"
1048
+ });
1049
+ }
1050
+ return !0;
1051
+ }
1052
+ const g = Ke().isSafari;
1053
+ 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) {
1054
+ !i || i.destroyed || y.target === this && (i.wrapperEl.removeEventListener("transitionend", i.onSlideToWrapperTransitionEnd), i.onSlideToWrapperTransitionEnd = null, delete i.onSlideToWrapperTransitionEnd, i.transitionEnd(s, p));
1055
+ }), i.wrapperEl.addEventListener("transitionend", i.onSlideToWrapperTransitionEnd)), !0;
1056
+ }
1057
+ function as(t, e, s, r) {
1058
+ t === void 0 && (t = 0), s === void 0 && (s = !0), typeof t == "string" && (t = parseInt(t, 10));
1059
+ const n = this;
1060
+ if (n.destroyed) return;
1061
+ typeof e > "u" && (e = n.params.speed);
1062
+ const i = n.grid && n.params.grid && n.params.grid.rows > 1;
1063
+ let l = t;
1064
+ if (n.params.loop)
1065
+ if (n.virtual && n.params.virtual.enabled)
1066
+ l = l + n.virtual.slidesBefore;
1067
+ else {
1068
+ let a;
1069
+ if (i) {
1070
+ const f = l * n.params.grid.rows;
1071
+ a = n.slides.find((v) => v.getAttribute("data-swiper-slide-index") * 1 === f).column;
1072
+ } else
1073
+ a = n.getSlideIndexByData(l);
1074
+ const o = i ? Math.ceil(n.slides.length / n.params.grid.rows) : n.slides.length, {
1075
+ centeredSlides: c
1076
+ } = n.params;
1077
+ let d = n.params.slidesPerView;
1078
+ d === "auto" ? d = n.slidesPerViewDynamic() : (d = Math.ceil(parseFloat(n.params.slidesPerView, 10)), c && d % 2 === 0 && (d = d + 1));
1079
+ let u = o - a < d;
1080
+ if (c && (u = u || a < Math.ceil(d / 2)), r && c && n.params.slidesPerView !== "auto" && !i && (u = !1), u) {
1081
+ const f = c ? a < n.activeIndex ? "prev" : "next" : a - n.activeIndex - 1 < n.params.slidesPerView ? "next" : "prev";
1082
+ n.loopFix({
1083
+ direction: f,
1084
+ slideTo: !0,
1085
+ activeSlideIndex: f === "next" ? a + 1 : a - o + 1,
1086
+ slideRealIndex: f === "next" ? n.realIndex : void 0
1087
+ });
1088
+ }
1089
+ if (i) {
1090
+ const f = l * n.params.grid.rows;
1091
+ l = n.slides.find((v) => v.getAttribute("data-swiper-slide-index") * 1 === f).column;
1092
+ } else
1093
+ l = n.getSlideIndexByData(l);
1094
+ }
1095
+ return requestAnimationFrame(() => {
1096
+ n.slideTo(l, e, s, r);
1097
+ }), n;
1098
+ }
1099
+ function ls(t, e, s) {
1100
+ e === void 0 && (e = !0);
1101
+ const r = this, {
1102
+ enabled: n,
1103
+ params: i,
1104
+ animating: l
1105
+ } = r;
1106
+ if (!n || r.destroyed) return r;
1107
+ typeof t > "u" && (t = r.params.speed);
1108
+ let a = i.slidesPerGroup;
1109
+ i.slidesPerView === "auto" && i.slidesPerGroup === 1 && i.slidesPerGroupAuto && (a = Math.max(r.slidesPerViewDynamic("current", !0), 1));
1110
+ const o = r.activeIndex < i.slidesPerGroupSkip ? 1 : a, c = r.virtual && i.virtual.enabled;
1111
+ if (i.loop) {
1112
+ if (l && !c && i.loopPreventsSliding) return !1;
1113
+ if (r.loopFix({
1114
+ direction: "next"
1115
+ }), r._clientLeft = r.wrapperEl.clientLeft, r.activeIndex === r.slides.length - 1 && i.cssMode)
1116
+ return requestAnimationFrame(() => {
1117
+ r.slideTo(r.activeIndex + o, t, e, s);
1118
+ }), !0;
1119
+ }
1120
+ return i.rewind && r.isEnd ? r.slideTo(0, t, e, s) : r.slideTo(r.activeIndex + o, t, e, s);
1121
+ }
1122
+ function os(t, e, s) {
1123
+ e === void 0 && (e = !0);
1124
+ const r = this, {
1125
+ params: n,
1126
+ snapGrid: i,
1127
+ slidesGrid: l,
1128
+ rtlTranslate: a,
1129
+ enabled: o,
1130
+ animating: c
1131
+ } = r;
1132
+ if (!o || r.destroyed) return r;
1133
+ typeof t > "u" && (t = r.params.speed);
1134
+ const d = r.virtual && n.virtual.enabled;
1135
+ if (n.loop) {
1136
+ if (c && !d && n.loopPreventsSliding) return !1;
1137
+ r.loopFix({
1138
+ direction: "prev"
1139
+ }), r._clientLeft = r.wrapperEl.clientLeft;
1140
+ }
1141
+ const u = a ? r.translate : -r.translate;
1142
+ function f(p) {
1143
+ return p < 0 ? -Math.floor(Math.abs(p)) : Math.floor(p);
1144
+ }
1145
+ const v = f(u), h = i.map((p) => f(p)), b = n.freeMode && n.freeMode.enabled;
1146
+ let M = i[h.indexOf(v) - 1];
1147
+ if (typeof M > "u" && (n.cssMode || b)) {
1148
+ let p;
1149
+ i.forEach((m, g) => {
1150
+ v >= m && (p = g);
1151
+ }), typeof p < "u" && (M = b ? i[p] : i[p > 0 ? p - 1 : p]);
1152
+ }
1153
+ let w = 0;
1154
+ 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) {
1155
+ const p = r.params.virtual && r.params.virtual.enabled && r.virtual ? r.virtual.slides.length - 1 : r.slides.length - 1;
1156
+ return r.slideTo(p, t, e, s);
1157
+ } else if (n.loop && r.activeIndex === 0 && n.cssMode)
1158
+ return requestAnimationFrame(() => {
1159
+ r.slideTo(w, t, e, s);
1160
+ }), !0;
1161
+ return r.slideTo(w, t, e, s);
1162
+ }
1163
+ function ds(t, e, s) {
1164
+ e === void 0 && (e = !0);
1165
+ const r = this;
1166
+ if (!r.destroyed)
1167
+ return typeof t > "u" && (t = r.params.speed), r.slideTo(r.activeIndex, t, e, s);
1168
+ }
1169
+ function cs(t, e, s, r) {
1170
+ e === void 0 && (e = !0), r === void 0 && (r = 0.5);
1171
+ const n = this;
1172
+ if (n.destroyed) return;
1173
+ typeof t > "u" && (t = n.params.speed);
1174
+ let i = n.activeIndex;
1175
+ const l = Math.min(n.params.slidesPerGroupSkip, i), a = l + Math.floor((i - l) / n.params.slidesPerGroup), o = n.rtlTranslate ? n.translate : -n.translate;
1176
+ if (o >= n.snapGrid[a]) {
1177
+ const c = n.snapGrid[a], d = n.snapGrid[a + 1];
1178
+ o - c > (d - c) * r && (i += n.params.slidesPerGroup);
1179
+ } else {
1180
+ const c = n.snapGrid[a - 1], d = n.snapGrid[a];
1181
+ o - c <= (d - c) * r && (i -= n.params.slidesPerGroup);
1182
+ }
1183
+ return i = Math.max(i, 0), i = Math.min(i, n.slidesGrid.length - 1), n.slideTo(i, t, e, s);
1184
+ }
1185
+ function ps() {
1186
+ const t = this;
1187
+ if (t.destroyed) return;
1188
+ const {
1189
+ params: e,
1190
+ slidesEl: s
1191
+ } = t, r = e.slidesPerView === "auto" ? t.slidesPerViewDynamic() : e.slidesPerView;
1192
+ let n = t.clickedIndex, i;
1193
+ const l = t.isElement ? "swiper-slide" : `.${e.slideClass}`;
1194
+ if (e.loop) {
1195
+ if (t.animating) return;
1196
+ 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(() => {
1197
+ t.slideTo(n);
1198
+ })) : t.slideTo(n) : n > t.slides.length - r ? (t.loopFix(), n = t.getSlideIndex(H(s, `${l}[data-swiper-slide-index="${i}"]`)[0]), xe(() => {
1199
+ t.slideTo(n);
1200
+ })) : t.slideTo(n);
1201
+ } else
1202
+ t.slideTo(n);
1203
+ }
1204
+ var us = {
1205
+ slideTo: ns,
1206
+ slideToLoop: as,
1207
+ slideNext: ls,
1208
+ slidePrev: os,
1209
+ slideReset: ds,
1210
+ slideToClosest: cs,
1211
+ slideToClickedSlide: ps
1212
+ };
1213
+ function ms(t, e) {
1214
+ const s = this, {
1215
+ params: r,
1216
+ slidesEl: n
1217
+ } = s;
1218
+ if (!r.loop || s.virtual && s.params.virtual.enabled) return;
1219
+ const i = () => {
1220
+ H(n, `.${r.slideClass}, swiper-slide`).forEach((u, f) => {
1221
+ u.setAttribute("data-swiper-slide-index", f);
1222
+ });
1223
+ }, 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) => {
1224
+ for (let f = 0; f < u; f += 1) {
1225
+ const v = s.isElement ? de("swiper-slide", [r.slideBlankClass]) : de("div", [r.slideClass, r.slideBlankClass]);
1226
+ s.slidesEl.append(v);
1227
+ }
1228
+ };
1229
+ if (o) {
1230
+ if (r.loopAddBlankSlides) {
1231
+ const u = a - s.slides.length % a;
1232
+ d(u), s.recalcSlides(), s.updateSlides();
1233
+ } else
1234
+ 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)");
1235
+ i();
1236
+ } else if (c) {
1237
+ if (r.loopAddBlankSlides) {
1238
+ const u = r.grid.rows - s.slides.length % r.grid.rows;
1239
+ d(u), s.recalcSlides(), s.updateSlides();
1240
+ } else
1241
+ 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)");
1242
+ i();
1243
+ } else
1244
+ i();
1245
+ s.loopFix({
1246
+ slideRealIndex: t,
1247
+ direction: r.centeredSlides ? void 0 : "next",
1248
+ initial: e
1249
+ });
1250
+ }
1251
+ function fs(t) {
1252
+ let {
1253
+ slideRealIndex: e,
1254
+ slideTo: s = !0,
1255
+ direction: r,
1256
+ setTranslate: n,
1257
+ activeSlideIndex: i,
1258
+ initial: l,
1259
+ byController: a,
1260
+ byMousewheel: o
1261
+ } = t === void 0 ? {} : t;
1262
+ const c = this;
1263
+ if (!c.params.loop) return;
1264
+ c.emit("beforeLoopFix");
1265
+ const {
1266
+ slides: d,
1267
+ allowSlidePrev: u,
1268
+ allowSlideNext: f,
1269
+ slidesEl: v,
1270
+ params: h
1271
+ } = c, {
1272
+ centeredSlides: b,
1273
+ initialSlide: M
1274
+ } = h;
1275
+ if (c.allowSlidePrev = !0, c.allowSlideNext = !0, c.virtual && h.virtual.enabled) {
1276
+ 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");
1277
+ return;
1278
+ }
1279
+ let w = h.slidesPerView;
1280
+ w === "auto" ? w = c.slidesPerViewDynamic() : (w = Math.ceil(parseFloat(h.slidesPerView, 10)), b && w % 2 === 0 && (w = w + 1));
1281
+ const p = h.slidesPerGroupAuto ? w : h.slidesPerGroup;
1282
+ let m = p;
1283
+ m % p !== 0 && (m += p - m % p), m += h.loopAdditionalSlides, c.loopedSlides = m;
1284
+ const g = c.grid && h.grid && h.grid.rows > 1;
1285
+ 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`");
1286
+ const y = [], T = [], A = g ? Math.ceil(d.length / h.grid.rows) : d.length, I = l && A - M < w && !b;
1287
+ let S = I ? M : c.activeIndex;
1288
+ typeof i > "u" ? i = c.getSlideIndex(d.find((C) => C.classList.contains(h.slideActiveClass))) : S = i;
1289
+ const E = r === "next" || !r, x = r === "prev" || !r;
1290
+ let k = 0, L = 0;
1291
+ const O = (g ? d[i].column : i) + (b && typeof n > "u" ? -w / 2 + 0.5 : 0);
1292
+ if (O < m) {
1293
+ k = Math.max(m - O, p);
1294
+ for (let C = 0; C < m - O; C += 1) {
1295
+ const z = C - Math.floor(C / A) * A;
1296
+ if (g) {
1297
+ const U = A - z - 1;
1298
+ for (let V = d.length - 1; V >= 0; V -= 1)
1299
+ d[V].column === U && y.push(V);
1300
+ } else
1301
+ y.push(A - z - 1);
1302
+ }
1303
+ } else if (O + w > A - m) {
1304
+ L = Math.max(O - (A - m * 2), p), I && (L = Math.max(L, w - A + M + 1));
1305
+ for (let C = 0; C < L; C += 1) {
1306
+ const z = C - Math.floor(C / A) * A;
1307
+ g ? d.forEach((U, V) => {
1308
+ U.column === z && T.push(V);
1309
+ }) : T.push(z);
1310
+ }
1311
+ }
1312
+ if (c.__preventObserver__ = !0, requestAnimationFrame(() => {
1313
+ c.__preventObserver__ = !1;
1314
+ }), 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) => {
1315
+ d[C].swiperLoopMoveDOM = !0, v.prepend(d[C]), d[C].swiperLoopMoveDOM = !1;
1316
+ }), E && T.forEach((C) => {
1317
+ d[C].swiperLoopMoveDOM = !0, v.append(d[C]), d[C].swiperLoopMoveDOM = !1;
1318
+ }), c.recalcSlides(), h.slidesPerView === "auto" ? c.updateSlides() : g && (y.length > 0 && x || T.length > 0 && E) && c.slides.forEach((C, z) => {
1319
+ c.grid.updateSlide(z, C, c.slides);
1320
+ }), h.watchSlidesProgress && c.updateSlidesOffset(), s) {
1321
+ if (y.length > 0 && x) {
1322
+ if (typeof e > "u") {
1323
+ const C = c.slidesGrid[S], z = c.slidesGrid[S + k] - C;
1324
+ 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
+ } else if (n) {
1326
+ const C = g ? y.length / h.grid.rows : y.length;
1327
+ c.slideTo(c.activeIndex + C, 0, !1, !0), c.touchEventsData.currentTranslate = c.translate;
1328
+ }
1329
+ } else if (T.length > 0 && E)
1330
+ if (typeof e > "u") {
1331
+ const C = c.slidesGrid[S], z = c.slidesGrid[S - L] - C;
1332
+ 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
+ } else {
1334
+ const C = g ? T.length / h.grid.rows : T.length;
1335
+ c.slideTo(c.activeIndex - C, 0, !1, !0);
1336
+ }
1337
+ }
1338
+ if (c.allowSlidePrev = u, c.allowSlideNext = f, c.controller && c.controller.control && !a) {
1339
+ const C = {
1340
+ slideRealIndex: e,
1341
+ direction: r,
1342
+ setTranslate: n,
1343
+ activeSlideIndex: i,
1344
+ byController: !0
1345
+ };
1346
+ Array.isArray(c.controller.control) ? c.controller.control.forEach((z) => {
1347
+ !z.destroyed && z.params.loop && z.loopFix({
1348
+ ...C,
1349
+ slideTo: z.params.slidesPerView === h.slidesPerView ? s : !1
1350
+ });
1351
+ }) : c.controller.control instanceof c.constructor && c.controller.control.params.loop && c.controller.control.loopFix({
1352
+ ...C,
1353
+ slideTo: c.controller.control.params.slidesPerView === h.slidesPerView ? s : !1
1354
+ });
1355
+ }
1356
+ c.emit("loopFix");
1357
+ }
1358
+ function hs() {
1359
+ const t = this, {
1360
+ params: e,
1361
+ slidesEl: s
1362
+ } = t;
1363
+ if (!e.loop || !s || t.virtual && t.params.virtual.enabled) return;
1364
+ t.recalcSlides();
1365
+ const r = [];
1366
+ t.slides.forEach((n) => {
1367
+ const i = typeof n.swiperSlideIndex > "u" ? n.getAttribute("data-swiper-slide-index") * 1 : n.swiperSlideIndex;
1368
+ r[i] = n;
1369
+ }), t.slides.forEach((n) => {
1370
+ n.removeAttribute("data-swiper-slide-index");
1371
+ }), r.forEach((n) => {
1372
+ s.append(n);
1373
+ }), t.recalcSlides(), t.slideTo(t.realIndex, 0);
1374
+ }
1375
+ var vs = {
1376
+ loopCreate: ms,
1377
+ loopFix: fs,
1378
+ loopDestroy: hs
1379
+ };
1380
+ function gs(t) {
1381
+ const e = this;
1382
+ if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
1383
+ const s = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
1384
+ e.isElement && (e.__preventObserver__ = !0), s.style.cursor = "move", s.style.cursor = t ? "grabbing" : "grab", e.isElement && requestAnimationFrame(() => {
1385
+ e.__preventObserver__ = !1;
1386
+ });
1387
+ }
1388
+ function ws() {
1389
+ const t = this;
1390
+ t.params.watchOverflow && t.isLocked || t.params.cssMode || (t.isElement && (t.__preventObserver__ = !0), t[t.params.touchEventsTarget === "container" ? "el" : "wrapperEl"].style.cursor = "", t.isElement && requestAnimationFrame(() => {
1391
+ t.__preventObserver__ = !1;
1392
+ }));
1393
+ }
1394
+ var bs = {
1395
+ setGrabCursor: gs,
1396
+ unsetGrabCursor: ws
1397
+ };
1398
+ function ys(t, e) {
1399
+ e === void 0 && (e = this);
1400
+ function s(r) {
1401
+ if (!r || r === K() || r === N()) return null;
1402
+ r.assignedSlot && (r = r.assignedSlot);
1403
+ const n = r.closest(t);
1404
+ return !n && !r.getRootNode ? null : n || s(r.getRootNode().host);
1405
+ }
1406
+ return s(e);
1407
+ }
1408
+ function Ge(t, e, s) {
1409
+ const r = N(), {
1410
+ params: n
1411
+ } = t, i = n.edgeSwipeDetection, l = n.edgeSwipeThreshold;
1412
+ return i && (s <= l || s >= r.innerWidth - l) ? i === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
1413
+ }
1414
+ function Ss(t) {
1415
+ const e = this, s = K();
1416
+ let r = t;
1417
+ r.originalEvent && (r = r.originalEvent);
1418
+ const n = e.touchEventsData;
1419
+ if (r.type === "pointerdown") {
1420
+ if (n.pointerId !== null && n.pointerId !== r.pointerId)
1421
+ return;
1422
+ n.pointerId = r.pointerId;
1423
+ } else r.type === "touchstart" && r.targetTouches.length === 1 && (n.touchId = r.targetTouches[0].identifier);
1424
+ if (r.type === "touchstart") {
1425
+ Ge(e, r, r.targetTouches[0].pageX);
1426
+ return;
1427
+ }
1428
+ const {
1429
+ params: i,
1430
+ touches: l,
1431
+ enabled: a
1432
+ } = e;
1433
+ if (!a || !i.simulateTouch && r.pointerType === "mouse" || e.animating && i.preventInteractionOnTransition)
1434
+ return;
1435
+ !e.animating && i.cssMode && i.loop && e.loopFix();
1436
+ let o = r.target;
1437
+ if (i.touchEventsTarget === "wrapper" && !It(o, e.wrapperEl) || "which" in r && r.which === 3 || "button" in r && r.button > 0 || n.isTouched && n.isMoved) return;
1438
+ const c = !!i.noSwipingClass && i.noSwipingClass !== "", d = r.composedPath ? r.composedPath() : r.path;
1439
+ c && r.target && r.target.shadowRoot && d && (o = d[0]);
1440
+ const u = i.noSwipingSelector ? i.noSwipingSelector : `.${i.noSwipingClass}`, f = !!(r.target && r.target.shadowRoot);
1441
+ if (i.noSwiping && (f ? ys(u, o) : o.closest(u))) {
1442
+ e.allowClick = !0;
1443
+ return;
1444
+ }
1445
+ if (i.swipeHandler && !o.closest(i.swipeHandler))
1446
+ return;
1447
+ l.currentX = r.pageX, l.currentY = r.pageY;
1448
+ const v = l.currentX, h = l.currentY;
1449
+ if (!Ge(e, r, v))
1450
+ return;
1451
+ Object.assign(n, {
1452
+ isTouched: !0,
1453
+ isMoved: !1,
1454
+ allowTouchCallbacks: !0,
1455
+ isScrolling: void 0,
1456
+ startMoving: void 0
1457
+ }), l.startX = v, l.startY = h, n.touchStartTime = le(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, i.threshold > 0 && (n.allowThresholdMove = !1);
1458
+ let b = !0;
1459
+ 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();
1460
+ const M = b && e.allowTouchMove && i.touchStartPreventDefault;
1461
+ (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);
1462
+ }
1463
+ function Es(t) {
1464
+ const e = K(), s = this, r = s.touchEventsData, {
1465
+ params: n,
1466
+ touches: i,
1467
+ rtlTranslate: l,
1468
+ enabled: a
1469
+ } = s;
1470
+ if (!a || !n.simulateTouch && t.pointerType === "mouse") return;
1471
+ let o = t;
1472
+ if (o.originalEvent && (o = o.originalEvent), o.type === "pointermove" && (r.touchId !== null || o.pointerId !== r.pointerId))
1473
+ return;
1474
+ let c;
1475
+ if (o.type === "touchmove") {
1476
+ if (c = [...o.changedTouches].find((T) => T.identifier === r.touchId), !c || c.identifier !== r.touchId) return;
1477
+ } else
1478
+ c = o;
1479
+ if (!r.isTouched) {
1480
+ r.startMoving && r.isScrolling && s.emit("touchMoveOpposite", o);
1481
+ return;
1482
+ }
1483
+ const d = c.pageX, u = c.pageY;
1484
+ if (o.preventedByNestedSwiper) {
1485
+ i.startX = d, i.startY = u;
1486
+ return;
1487
+ }
1488
+ if (!s.allowTouchMove) {
1489
+ o.target.matches(r.focusableElements) || (s.allowClick = !1), r.isTouched && (Object.assign(i, {
1490
+ startX: d,
1491
+ startY: u,
1492
+ currentX: d,
1493
+ currentY: u
1494
+ }), r.touchStartTime = le());
1495
+ return;
1496
+ }
1497
+ if (n.touchReleaseOnEdges && !n.loop) {
1498
+ if (s.isVertical()) {
1499
+ if (u < i.startY && s.translate <= s.maxTranslate() || u > i.startY && s.translate >= s.minTranslate()) {
1500
+ r.isTouched = !1, r.isMoved = !1;
1501
+ return;
1502
+ }
1503
+ } else if (l && (d > i.startX && -s.translate <= s.maxTranslate() || d < i.startX && -s.translate >= s.minTranslate()) || !l && (d < i.startX && s.translate <= s.maxTranslate() || d > i.startX && s.translate >= s.minTranslate()))
1504
+ return;
1505
+ }
1506
+ if (e.activeElement && e.activeElement.matches(r.focusableElements) && e.activeElement !== o.target && o.pointerType !== "mouse" && e.activeElement.blur(), e.activeElement && o.target === e.activeElement && o.target.matches(r.focusableElements)) {
1507
+ r.isMoved = !0, s.allowClick = !1;
1508
+ return;
1509
+ }
1510
+ r.allowTouchCallbacks && s.emit("touchMove", o), i.previousX = i.currentX, i.previousY = i.currentY, i.currentX = d, i.currentY = u;
1511
+ const f = i.currentX - i.startX, v = i.currentY - i.startY;
1512
+ if (s.params.threshold && Math.sqrt(f ** 2 + v ** 2) < s.params.threshold) return;
1513
+ if (typeof r.isScrolling > "u") {
1514
+ let T;
1515
+ 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
+ }
1517
+ 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) {
1518
+ r.isTouched = !1;
1519
+ return;
1520
+ }
1521
+ if (!r.startMoving)
1522
+ return;
1523
+ s.allowClick = !1, !n.cssMode && o.cancelable && o.preventDefault(), n.touchMoveStopPropagation && !n.nested && o.stopPropagation();
1524
+ let h = s.isHorizontal() ? f : v, b = s.isHorizontal() ? i.currentX - i.previousX : i.currentY - i.previousY;
1525
+ 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
+ const M = s.touchesDirection;
1527
+ s.swipeDirection = h > 0 ? "prev" : "next", s.touchesDirection = b > 0 ? "prev" : "next";
1528
+ const w = s.params.loop && !n.cssMode, p = s.touchesDirection === "next" && s.allowSlideNext || s.touchesDirection === "prev" && s.allowSlidePrev;
1529
+ if (!r.isMoved) {
1530
+ if (w && p && s.loopFix({
1531
+ direction: s.swipeDirection
1532
+ }), r.startTranslate = s.getTranslate(), s.setTransition(0), s.animating) {
1533
+ const T = new window.CustomEvent("transitionend", {
1534
+ bubbles: !0,
1535
+ cancelable: !0,
1536
+ detail: {
1537
+ bySwiperTouchMove: !0
1538
+ }
1539
+ });
1540
+ s.wrapperEl.dispatchEvent(T);
1541
+ }
1542
+ r.allowMomentumBounce = !1, n.grabCursor && (s.allowSlideNext === !0 || s.allowSlidePrev === !0) && s.setGrabCursor(!0), s.emit("sliderFirstMove", o);
1543
+ }
1544
+ let m;
1545
+ if ((/* @__PURE__ */ new Date()).getTime(), n._loopSwapReset !== !1 && r.isMoved && r.allowThresholdMove && M !== s.touchesDirection && w && p && Math.abs(h) >= 1) {
1546
+ Object.assign(i, {
1547
+ startX: d,
1548
+ startY: u,
1549
+ currentX: d,
1550
+ currentY: u,
1551
+ startTranslate: r.currentTranslate
1552
+ }), r.loopSwapReset = !0, r.startTranslate = r.currentTranslate;
1553
+ return;
1554
+ }
1555
+ s.emit("sliderMove", o), r.isMoved = !0, r.currentTranslate = h + r.startTranslate;
1556
+ let g = !0, y = n.resistanceRatio;
1557
+ 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({
1558
+ direction: "prev",
1559
+ setTranslate: !0,
1560
+ activeSlideIndex: 0
1561
+ }), 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
+ direction: "next",
1563
+ setTranslate: !0,
1564
+ activeSlideIndex: s.slides.length - (n.slidesPerView === "auto" ? s.slidesPerViewDynamic() : Math.ceil(parseFloat(n.slidesPerView, 10)))
1565
+ }), 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)
1566
+ if (Math.abs(h) > n.threshold || r.allowThresholdMove) {
1567
+ if (!r.allowThresholdMove) {
1568
+ 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;
1569
+ return;
1570
+ }
1571
+ } else {
1572
+ r.currentTranslate = r.startTranslate;
1573
+ return;
1574
+ }
1575
+ !n.followFinger || n.cssMode || ((n.freeMode && n.freeMode.enabled && s.freeMode || n.watchSlidesProgress) && (s.updateActiveIndex(), s.updateSlidesClasses()), n.freeMode && n.freeMode.enabled && s.freeMode && s.freeMode.onTouchMove(), s.updateProgress(r.currentTranslate), s.setTranslate(r.currentTranslate));
1576
+ }
1577
+ function xs(t) {
1578
+ const e = this, s = e.touchEventsData;
1579
+ let r = t;
1580
+ r.originalEvent && (r = r.originalEvent);
1581
+ let n;
1582
+ if (r.type === "touchend" || r.type === "touchcancel") {
1583
+ if (n = [...r.changedTouches].find((g) => g.identifier === s.touchId), !n || n.identifier !== s.touchId) return;
1584
+ } else {
1585
+ if (s.touchId !== null || r.pointerId !== s.pointerId) return;
1586
+ n = r;
1587
+ }
1588
+ if (["pointercancel", "pointerout", "pointerleave", "contextmenu"].includes(r.type) && !(["pointercancel", "contextmenu"].includes(r.type) && (e.browser.isSafari || e.browser.isWebView)))
1589
+ return;
1590
+ s.pointerId = null, s.touchId = null;
1591
+ const {
1592
+ params: i,
1593
+ touches: l,
1594
+ rtlTranslate: a,
1595
+ slidesGrid: o,
1596
+ enabled: c
1597
+ } = e;
1598
+ if (!c || !i.simulateTouch && r.pointerType === "mouse") return;
1599
+ if (s.allowTouchCallbacks && e.emit("touchEnd", r), s.allowTouchCallbacks = !1, !s.isTouched) {
1600
+ s.isMoved && i.grabCursor && e.setGrabCursor(!1), s.isMoved = !1, s.startMoving = !1;
1601
+ return;
1602
+ }
1603
+ i.grabCursor && s.isMoved && s.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
1604
+ const d = le(), u = d - s.touchStartTime;
1605
+ if (e.allowClick) {
1606
+ const g = r.path || r.composedPath && r.composedPath();
1607
+ e.updateClickedSlide(g && g[0] || r.target, g), e.emit("tap click", r), u < 300 && d - s.lastClickTime < 300 && e.emit("doubleTap doubleClick", r);
1608
+ }
1609
+ if (s.lastClickTime = le(), xe(() => {
1610
+ e.destroyed || (e.allowClick = !0);
1611
+ }), !s.isTouched || !s.isMoved || !e.swipeDirection || l.diff === 0 && !s.loopSwapReset || s.currentTranslate === s.startTranslate && !s.loopSwapReset) {
1612
+ s.isTouched = !1, s.isMoved = !1, s.startMoving = !1;
1613
+ return;
1614
+ }
1615
+ s.isTouched = !1, s.isMoved = !1, s.startMoving = !1;
1616
+ let f;
1617
+ if (i.followFinger ? f = a ? e.translate : -e.translate : f = -s.currentTranslate, i.cssMode)
1618
+ return;
1619
+ if (i.freeMode && i.freeMode.enabled) {
1620
+ e.freeMode.onTouchEnd({
1621
+ currentPos: f
1622
+ });
1623
+ return;
1624
+ }
1625
+ const v = f >= -e.maxTranslate() && !e.params.loop;
1626
+ let h = 0, b = e.slidesSizesGrid[0];
1627
+ for (let g = 0; g < o.length; g += g < i.slidesPerGroupSkip ? 1 : i.slidesPerGroup) {
1628
+ const y = g < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
1629
+ 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]);
1630
+ }
1631
+ let M = null, w = null;
1632
+ 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));
1633
+ const p = (f - o[h]) / b, m = h < i.slidesPerGroupSkip - 1 ? 1 : i.slidesPerGroup;
1634
+ if (u > i.longSwipesMs) {
1635
+ if (!i.longSwipes) {
1636
+ e.slideTo(e.activeIndex);
1637
+ return;
1638
+ }
1639
+ 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
+ } else {
1641
+ if (!i.shortSwipes) {
1642
+ e.slideTo(e.activeIndex);
1643
+ return;
1644
+ }
1645
+ 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
+ }
1647
+ }
1648
+ function Ne() {
1649
+ const t = this, {
1650
+ params: e,
1651
+ el: s
1652
+ } = t;
1653
+ if (s && s.offsetWidth === 0) return;
1654
+ e.breakpoints && t.setBreakpoint();
1655
+ const {
1656
+ allowSlideNext: r,
1657
+ allowSlidePrev: n,
1658
+ snapGrid: i
1659
+ } = t, l = t.virtual && t.params.virtual.enabled;
1660
+ t.allowSlideNext = !0, t.allowSlidePrev = !0, t.updateSize(), t.updateSlides(), t.updateSlidesClasses();
1661
+ const a = l && e.loop;
1662
+ (e.slidesPerView === "auto" || e.slidesPerView > 1) && t.isEnd && !t.isBeginning && !t.params.centeredSlides && !a ? t.slideTo(t.slides.length - 1, 0, !1, !0) : t.params.loop && !l ? t.slideToLoop(t.realIndex, 0, !1, !0) : t.slideTo(t.activeIndex, 0, !1, !0), t.autoplay && t.autoplay.running && t.autoplay.paused && (clearTimeout(t.autoplay.resizeTimeout), t.autoplay.resizeTimeout = setTimeout(() => {
1663
+ t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
1664
+ }, 500)), t.allowSlidePrev = n, t.allowSlideNext = r, t.params.watchOverflow && i !== t.snapGrid && t.checkOverflow();
1665
+ }
1666
+ function Ts(t) {
1667
+ const e = this;
1668
+ e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
1669
+ }
1670
+ function Cs() {
1671
+ const t = this, {
1672
+ wrapperEl: e,
1673
+ rtlTranslate: s,
1674
+ enabled: r
1675
+ } = t;
1676
+ if (!r) return;
1677
+ t.previousTranslate = t.translate, t.isHorizontal() ? t.translate = -e.scrollLeft : t.translate = -e.scrollTop, t.translate === 0 && (t.translate = 0), t.updateActiveIndex(), t.updateSlidesClasses();
1678
+ let n;
1679
+ const i = t.maxTranslate() - t.minTranslate();
1680
+ i === 0 ? n = 0 : n = (t.translate - t.minTranslate()) / i, n !== t.progress && t.updateProgress(s ? -t.translate : t.translate), t.emit("setTranslate", t.translate, !1);
1681
+ }
1682
+ function Ps(t) {
1683
+ const e = this;
1684
+ ne(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
1685
+ }
1686
+ function Ms() {
1687
+ const t = this;
1688
+ t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
1689
+ }
1690
+ const Ze = (t, e) => {
1691
+ const s = K(), {
1692
+ params: r,
1693
+ el: n,
1694
+ wrapperEl: i,
1695
+ device: l
1696
+ } = t, a = !!r.nested, o = e === "on" ? "addEventListener" : "removeEventListener", c = e;
1697
+ !n || typeof n == "string" || (s[o]("touchstart", t.onDocumentTouchStart, {
1698
+ passive: !1,
1699
+ capture: a
1700
+ }), n[o]("touchstart", t.onTouchStart, {
1701
+ passive: !1
1702
+ }), n[o]("pointerdown", t.onTouchStart, {
1703
+ passive: !1
1704
+ }), s[o]("touchmove", t.onTouchMove, {
1705
+ passive: !1,
1706
+ capture: a
1707
+ }), s[o]("pointermove", t.onTouchMove, {
1708
+ passive: !1,
1709
+ capture: a
1710
+ }), s[o]("touchend", t.onTouchEnd, {
1711
+ passive: !0
1712
+ }), s[o]("pointerup", t.onTouchEnd, {
1713
+ passive: !0
1714
+ }), s[o]("pointercancel", t.onTouchEnd, {
1715
+ passive: !0
1716
+ }), s[o]("touchcancel", t.onTouchEnd, {
1717
+ passive: !0
1718
+ }), s[o]("pointerout", t.onTouchEnd, {
1719
+ passive: !0
1720
+ }), s[o]("pointerleave", t.onTouchEnd, {
1721
+ passive: !0
1722
+ }), s[o]("contextmenu", t.onTouchEnd, {
1723
+ passive: !0
1724
+ }), (r.preventClicks || r.preventClicksPropagation) && n[o]("click", t.onClick, !0), r.cssMode && i[o]("scroll", t.onScroll), r.updateOnWindowResize ? t[c](l.ios || l.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", Ne, !0) : t[c]("observerUpdate", Ne, !0), n[o]("load", t.onLoad, {
1725
+ capture: !0
1726
+ }));
1727
+ };
1728
+ function ks() {
1729
+ const t = this, {
1730
+ params: e
1731
+ } = t;
1732
+ t.onTouchStart = Ss.bind(t), t.onTouchMove = Es.bind(t), t.onTouchEnd = xs.bind(t), t.onDocumentTouchStart = Ms.bind(t), e.cssMode && (t.onScroll = Cs.bind(t)), t.onClick = Ts.bind(t), t.onLoad = Ps.bind(t), Ze(t, "on");
1733
+ }
1734
+ function Is() {
1735
+ Ze(this, "off");
1736
+ }
1737
+ var Ls = {
1738
+ attachEvents: ks,
1739
+ detachEvents: Is
1740
+ };
1741
+ const Be = (t, e) => t.grid && e.grid && e.grid.rows > 1;
1742
+ function As() {
1743
+ const t = this, {
1744
+ realIndex: e,
1745
+ initialized: s,
1746
+ params: r,
1747
+ el: n
1748
+ } = t, i = r.breakpoints;
1749
+ if (!i || i && Object.keys(i).length === 0) return;
1750
+ 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);
1751
+ if (!c || t.currentBreakpoint === c) return;
1752
+ const d = (c in i ? i[c] : void 0) || t.originalParams, u = Be(t, r), f = Be(t, d), v = t.params.grabCursor, h = d.grabCursor, b = r.enabled;
1753
+ 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) => {
1754
+ if (typeof d[y] > "u") return;
1755
+ const T = r[y] && r[y].enabled, A = d[y] && d[y].enabled;
1756
+ T && !A && t[y].disable(), !T && A && t[y].enable();
1757
+ });
1758
+ const M = d.direction && d.direction !== r.direction, w = r.loop && (d.slidesPerView !== r.slidesPerView || M), p = r.loop;
1759
+ M && s && t.changeDirection(), B(t.params, d);
1760
+ const m = t.params.enabled, g = t.params.loop;
1761
+ Object.assign(t, {
1762
+ allowTouchMove: t.params.allowTouchMove,
1763
+ allowSlideNext: t.params.allowSlideNext,
1764
+ allowSlidePrev: t.params.allowSlidePrev
1765
+ }), 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
+ }
1767
+ function Os(t, e, s) {
1768
+ if (e === void 0 && (e = "window"), !t || e === "container" && !s) return;
1769
+ let r = !1;
1770
+ const n = N(), i = e === "window" ? n.innerHeight : s.clientHeight, l = Object.keys(t).map((a) => {
1771
+ if (typeof a == "string" && a.indexOf("@") === 0) {
1772
+ const o = parseFloat(a.substr(1));
1773
+ return {
1774
+ value: i * o,
1775
+ point: a
1776
+ };
1777
+ }
1778
+ return {
1779
+ value: a,
1780
+ point: a
1781
+ };
1782
+ });
1783
+ l.sort((a, o) => parseInt(a.value, 10) - parseInt(o.value, 10));
1784
+ for (let a = 0; a < l.length; a += 1) {
1785
+ const {
1786
+ point: o,
1787
+ value: c
1788
+ } = l[a];
1789
+ e === "window" ? n.matchMedia(`(min-width: ${c}px)`).matches && (r = o) : c <= s.clientWidth && (r = o);
1790
+ }
1791
+ return r || "max";
1792
+ }
1793
+ var zs = {
1794
+ setBreakpoint: As,
1795
+ getBreakpoint: Os
1796
+ };
1797
+ function _s(t, e) {
1798
+ const s = [];
1799
+ return t.forEach((r) => {
1800
+ typeof r == "object" ? Object.keys(r).forEach((n) => {
1801
+ r[n] && s.push(e + n);
1802
+ }) : typeof r == "string" && s.push(e + r);
1803
+ }), s;
1804
+ }
1805
+ function $s() {
1806
+ const t = this, {
1807
+ classNames: e,
1808
+ params: s,
1809
+ rtl: r,
1810
+ el: n,
1811
+ device: i
1812
+ } = t, l = _s(["initialized", s.direction, {
1813
+ "free-mode": t.params.freeMode && s.freeMode.enabled
1814
+ }, {
1815
+ autoheight: s.autoHeight
1816
+ }, {
1817
+ rtl: r
1818
+ }, {
1819
+ grid: s.grid && s.grid.rows > 1
1820
+ }, {
1821
+ "grid-column": s.grid && s.grid.rows > 1 && s.grid.fill === "column"
1822
+ }, {
1823
+ android: i.android
1824
+ }, {
1825
+ ios: i.ios
1826
+ }, {
1827
+ "css-mode": s.cssMode
1828
+ }, {
1829
+ centered: s.cssMode && s.centeredSlides
1830
+ }, {
1831
+ "watch-progress": s.watchSlidesProgress
1832
+ }], s.containerModifierClass);
1833
+ e.push(...l), n.classList.add(...e), t.emitContainerClasses();
1834
+ }
1835
+ function Gs() {
1836
+ const t = this, {
1837
+ el: e,
1838
+ classNames: s
1839
+ } = t;
1840
+ !e || typeof e == "string" || (e.classList.remove(...s), t.emitContainerClasses());
1841
+ }
1842
+ var Ns = {
1843
+ addClasses: $s,
1844
+ removeClasses: Gs
1845
+ };
1846
+ function Bs() {
1847
+ const t = this, {
1848
+ isLocked: e,
1849
+ params: s
1850
+ } = t, {
1851
+ slidesOffsetBefore: r
1852
+ } = s;
1853
+ if (r) {
1854
+ const n = t.slides.length - 1, i = t.slidesGrid[n] + t.slidesSizesGrid[n] + r * 2;
1855
+ t.isLocked = t.size > i;
1856
+ } else
1857
+ t.isLocked = t.snapGrid.length === 1;
1858
+ s.allowSlideNext === !0 && (t.allowSlideNext = !t.isLocked), s.allowSlidePrev === !0 && (t.allowSlidePrev = !t.isLocked), e && e !== t.isLocked && (t.isEnd = !1), e !== t.isLocked && t.emit(t.isLocked ? "lock" : "unlock");
1859
+ }
1860
+ var Ds = {
1861
+ checkOverflow: Bs
1862
+ }, Pe = {
1863
+ init: !0,
1864
+ direction: "horizontal",
1865
+ oneWayMovement: !1,
1866
+ swiperElementNodeName: "SWIPER-CONTAINER",
1867
+ touchEventsTarget: "wrapper",
1868
+ initialSlide: 0,
1869
+ speed: 300,
1870
+ cssMode: !1,
1871
+ updateOnWindowResize: !0,
1872
+ resizeObserver: !0,
1873
+ nested: !1,
1874
+ createElements: !1,
1875
+ eventsPrefix: "swiper",
1876
+ enabled: !0,
1877
+ focusableElements: "input, select, option, textarea, button, video, label",
1878
+ // Overrides
1879
+ width: null,
1880
+ height: null,
1881
+ //
1882
+ preventInteractionOnTransition: !1,
1883
+ // ssr
1884
+ userAgent: null,
1885
+ url: null,
1886
+ // To support iOS's swipe-to-go-back gesture (when being used in-app).
1887
+ edgeSwipeDetection: !1,
1888
+ edgeSwipeThreshold: 20,
1889
+ // Autoheight
1890
+ autoHeight: !1,
1891
+ // Set wrapper width
1892
+ setWrapperSize: !1,
1893
+ // Virtual Translate
1894
+ virtualTranslate: !1,
1895
+ // Effects
1896
+ effect: "slide",
1897
+ // 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip'
1898
+ // Breakpoints
1899
+ breakpoints: void 0,
1900
+ breakpointsBase: "window",
1901
+ // Slides grid
1902
+ spaceBetween: 0,
1903
+ slidesPerView: 1,
1904
+ slidesPerGroup: 1,
1905
+ slidesPerGroupSkip: 0,
1906
+ slidesPerGroupAuto: !1,
1907
+ centeredSlides: !1,
1908
+ centeredSlidesBounds: !1,
1909
+ slidesOffsetBefore: 0,
1910
+ // in px
1911
+ slidesOffsetAfter: 0,
1912
+ // in px
1913
+ normalizeSlideIndex: !0,
1914
+ centerInsufficientSlides: !1,
1915
+ // Disable swiper and hide navigation when container not overflow
1916
+ watchOverflow: !0,
1917
+ // Round length
1918
+ roundLengths: !1,
1919
+ // Touches
1920
+ touchRatio: 1,
1921
+ touchAngle: 45,
1922
+ simulateTouch: !0,
1923
+ shortSwipes: !0,
1924
+ longSwipes: !0,
1925
+ longSwipesRatio: 0.5,
1926
+ longSwipesMs: 300,
1927
+ followFinger: !0,
1928
+ allowTouchMove: !0,
1929
+ threshold: 5,
1930
+ touchMoveStopPropagation: !1,
1931
+ touchStartPreventDefault: !0,
1932
+ touchStartForcePreventDefault: !1,
1933
+ touchReleaseOnEdges: !1,
1934
+ // Unique Navigation Elements
1935
+ uniqueNavElements: !0,
1936
+ // Resistance
1937
+ resistance: !0,
1938
+ resistanceRatio: 0.85,
1939
+ // Progress
1940
+ watchSlidesProgress: !1,
1941
+ // Cursor
1942
+ grabCursor: !1,
1943
+ // Clicks
1944
+ preventClicks: !0,
1945
+ preventClicksPropagation: !0,
1946
+ slideToClickedSlide: !1,
1947
+ // loop
1948
+ loop: !1,
1949
+ loopAddBlankSlides: !0,
1950
+ loopAdditionalSlides: 0,
1951
+ loopPreventsSliding: !0,
1952
+ // rewind
1953
+ rewind: !1,
1954
+ // Swiping/no swiping
1955
+ allowSlidePrev: !0,
1956
+ allowSlideNext: !0,
1957
+ swipeHandler: null,
1958
+ // '.swipe-handler',
1959
+ noSwiping: !0,
1960
+ noSwipingClass: "swiper-no-swiping",
1961
+ noSwipingSelector: null,
1962
+ // Passive Listeners
1963
+ passiveListeners: !0,
1964
+ maxBackfaceHiddenSlides: 10,
1965
+ // NS
1966
+ containerModifierClass: "swiper-",
1967
+ // NEW
1968
+ slideClass: "swiper-slide",
1969
+ slideBlankClass: "swiper-slide-blank",
1970
+ slideActiveClass: "swiper-slide-active",
1971
+ slideVisibleClass: "swiper-slide-visible",
1972
+ slideFullyVisibleClass: "swiper-slide-fully-visible",
1973
+ slideNextClass: "swiper-slide-next",
1974
+ slidePrevClass: "swiper-slide-prev",
1975
+ wrapperClass: "swiper-wrapper",
1976
+ lazyPreloaderClass: "swiper-lazy-preloader",
1977
+ lazyPreloadPrevNext: 0,
1978
+ // Callbacks
1979
+ runCallbacksOnInit: !0,
1980
+ // Internals
1981
+ _emitClasses: !1
1982
+ };
1983
+ function Fs(t, e) {
1984
+ return function(s) {
1985
+ s === void 0 && (s = {});
1986
+ const r = Object.keys(s)[0], n = s[r];
1987
+ if (typeof n != "object" || n === null) {
1988
+ B(e, s);
1989
+ return;
1990
+ }
1991
+ if (t[r] === !0 && (t[r] = {
1992
+ enabled: !0
1993
+ }), r === "navigation" && t[r] && t[r].enabled && !t[r].prevEl && !t[r].nextEl && (t[r].auto = !0), ["pagination", "scrollbar"].indexOf(r) >= 0 && t[r] && t[r].enabled && !t[r].el && (t[r].auto = !0), !(r in t && "enabled" in n)) {
1994
+ B(e, s);
1995
+ return;
1996
+ }
1997
+ typeof t[r] == "object" && !("enabled" in t[r]) && (t[r].enabled = !0), t[r] || (t[r] = {
1998
+ enabled: !1
1999
+ }), B(e, s);
2000
+ };
2001
+ }
2002
+ const be = {
2003
+ eventsEmitter: Nt,
2004
+ update: Xt,
2005
+ translate: es,
2006
+ transition: is,
2007
+ slide: us,
2008
+ loop: vs,
2009
+ grabCursor: bs,
2010
+ events: Ls,
2011
+ breakpoints: zs,
2012
+ checkOverflow: Ds,
2013
+ classes: Ns
2014
+ }, ye = {};
2015
+ let ze = class q {
2016
+ constructor() {
2017
+ let e, s;
2018
+ for (var r = arguments.length, n = new Array(r), i = 0; i < r; i++)
2019
+ n[i] = arguments[i];
2020
+ n.length === 1 && n[0].constructor && Object.prototype.toString.call(n[0]).slice(8, -1) === "Object" ? s = n[0] : [e, s] = n, s || (s = {}), s = B({}, s), e && !s.el && (s.el = e);
2021
+ const l = K();
2022
+ if (s.el && typeof s.el == "string" && l.querySelectorAll(s.el).length > 1) {
2023
+ const d = [];
2024
+ return l.querySelectorAll(s.el).forEach((u) => {
2025
+ const f = B({}, s, {
2026
+ el: u
2027
+ });
2028
+ d.push(new q(f));
2029
+ }), d;
2030
+ }
2031
+ const a = this;
2032
+ a.__swiper__ = !0, a.support = Ue(), a.device = Qe({
2033
+ userAgent: s.userAgent
2034
+ }), a.browser = Ke(), a.eventsListeners = {}, a.eventsAnyListeners = [], a.modules = [...a.__modules__], s.modules && Array.isArray(s.modules) && a.modules.push(...s.modules);
2035
+ const o = {};
2036
+ a.modules.forEach((d) => {
2037
+ d({
2038
+ params: s,
2039
+ swiper: a,
2040
+ extendParams: Fs(s, o),
2041
+ on: a.on.bind(a),
2042
+ once: a.once.bind(a),
2043
+ off: a.off.bind(a),
2044
+ emit: a.emit.bind(a)
2045
+ });
2046
+ });
2047
+ const c = B({}, Pe, o);
2048
+ return a.params = B({}, c, ye, s), a.originalParams = B({}, a.params), a.passedParams = B({}, s), a.params && a.params.on && Object.keys(a.params.on).forEach((d) => {
2049
+ a.on(d, a.params.on[d]);
2050
+ }), a.params && a.params.onAny && a.onAny(a.params.onAny), Object.assign(a, {
2051
+ enabled: a.params.enabled,
2052
+ el: e,
2053
+ // Classes
2054
+ classNames: [],
2055
+ // Slides
2056
+ slides: [],
2057
+ slidesGrid: [],
2058
+ snapGrid: [],
2059
+ slidesSizesGrid: [],
2060
+ // isDirection
2061
+ isHorizontal() {
2062
+ return a.params.direction === "horizontal";
2063
+ },
2064
+ isVertical() {
2065
+ return a.params.direction === "vertical";
2066
+ },
2067
+ // Indexes
2068
+ activeIndex: 0,
2069
+ realIndex: 0,
2070
+ //
2071
+ isBeginning: !0,
2072
+ isEnd: !1,
2073
+ // Props
2074
+ translate: 0,
2075
+ previousTranslate: 0,
2076
+ progress: 0,
2077
+ velocity: 0,
2078
+ animating: !1,
2079
+ cssOverflowAdjustment() {
2080
+ return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
2081
+ },
2082
+ // Locks
2083
+ allowSlideNext: a.params.allowSlideNext,
2084
+ allowSlidePrev: a.params.allowSlidePrev,
2085
+ // Touch Events
2086
+ touchEventsData: {
2087
+ isTouched: void 0,
2088
+ isMoved: void 0,
2089
+ allowTouchCallbacks: void 0,
2090
+ touchStartTime: void 0,
2091
+ isScrolling: void 0,
2092
+ currentTranslate: void 0,
2093
+ startTranslate: void 0,
2094
+ allowThresholdMove: void 0,
2095
+ // Form elements to match
2096
+ focusableElements: a.params.focusableElements,
2097
+ // Last click time
2098
+ lastClickTime: 0,
2099
+ clickTimeout: void 0,
2100
+ // Velocities
2101
+ velocities: [],
2102
+ allowMomentumBounce: void 0,
2103
+ startMoving: void 0,
2104
+ pointerId: null,
2105
+ touchId: null
2106
+ },
2107
+ // Clicks
2108
+ allowClick: !0,
2109
+ // Touches
2110
+ allowTouchMove: a.params.allowTouchMove,
2111
+ touches: {
2112
+ startX: 0,
2113
+ startY: 0,
2114
+ currentX: 0,
2115
+ currentY: 0,
2116
+ diff: 0
2117
+ },
2118
+ // Images
2119
+ imagesToLoad: [],
2120
+ imagesLoaded: 0
2121
+ }), a.emit("_swiper"), a.params.init && a.init(), a;
2122
+ }
2123
+ getDirectionLabel(e) {
2124
+ return this.isHorizontal() ? e : {
2125
+ width: "height",
2126
+ "margin-top": "margin-left",
2127
+ "margin-bottom ": "margin-right",
2128
+ "margin-left": "margin-top",
2129
+ "margin-right": "margin-bottom",
2130
+ "padding-left": "padding-top",
2131
+ "padding-right": "padding-bottom",
2132
+ marginRight: "marginBottom"
2133
+ }[e];
2134
+ }
2135
+ getSlideIndex(e) {
2136
+ const {
2137
+ slidesEl: s,
2138
+ params: r
2139
+ } = this, n = H(s, `.${r.slideClass}, swiper-slide`), i = ce(n[0]);
2140
+ return ce(e) - i;
2141
+ }
2142
+ getSlideIndexByData(e) {
2143
+ return this.getSlideIndex(this.slides.find((s) => s.getAttribute("data-swiper-slide-index") * 1 === e));
2144
+ }
2145
+ recalcSlides() {
2146
+ const e = this, {
2147
+ slidesEl: s,
2148
+ params: r
2149
+ } = e;
2150
+ e.slides = H(s, `.${r.slideClass}, swiper-slide`);
2151
+ }
2152
+ enable() {
2153
+ const e = this;
2154
+ e.enabled || (e.enabled = !0, e.params.grabCursor && e.setGrabCursor(), e.emit("enable"));
2155
+ }
2156
+ disable() {
2157
+ const e = this;
2158
+ e.enabled && (e.enabled = !1, e.params.grabCursor && e.unsetGrabCursor(), e.emit("disable"));
2159
+ }
2160
+ setProgress(e, s) {
2161
+ const r = this;
2162
+ e = Math.min(Math.max(e, 0), 1);
2163
+ const n = r.minTranslate(), i = (r.maxTranslate() - n) * e + n;
2164
+ r.translateTo(i, typeof s > "u" ? 0 : s), r.updateActiveIndex(), r.updateSlidesClasses();
2165
+ }
2166
+ emitContainerClasses() {
2167
+ const e = this;
2168
+ if (!e.params._emitClasses || !e.el) return;
2169
+ const s = e.el.className.split(" ").filter((r) => r.indexOf("swiper") === 0 || r.indexOf(e.params.containerModifierClass) === 0);
2170
+ e.emit("_containerClasses", s.join(" "));
2171
+ }
2172
+ getSlideClasses(e) {
2173
+ const s = this;
2174
+ return s.destroyed ? "" : e.className.split(" ").filter((r) => r.indexOf("swiper-slide") === 0 || r.indexOf(s.params.slideClass) === 0).join(" ");
2175
+ }
2176
+ emitSlidesClasses() {
2177
+ const e = this;
2178
+ if (!e.params._emitClasses || !e.el) return;
2179
+ const s = [];
2180
+ e.slides.forEach((r) => {
2181
+ const n = e.getSlideClasses(r);
2182
+ s.push({
2183
+ slideEl: r,
2184
+ classNames: n
2185
+ }), e.emit("_slideClass", r, n);
2186
+ }), e.emit("_slideClasses", s);
2187
+ }
2188
+ slidesPerViewDynamic(e, s) {
2189
+ e === void 0 && (e = "current"), s === void 0 && (s = !1);
2190
+ const r = this, {
2191
+ params: n,
2192
+ slides: i,
2193
+ slidesGrid: l,
2194
+ slidesSizesGrid: a,
2195
+ size: o,
2196
+ activeIndex: c
2197
+ } = r;
2198
+ let d = 1;
2199
+ if (typeof n.slidesPerView == "number") return n.slidesPerView;
2200
+ if (n.centeredSlides) {
2201
+ let u = i[c] ? Math.ceil(i[c].swiperSlideSize) : 0, f;
2202
+ for (let v = c + 1; v < i.length; v += 1)
2203
+ i[v] && !f && (u += Math.ceil(i[v].swiperSlideSize), d += 1, u > o && (f = !0));
2204
+ for (let v = c - 1; v >= 0; v -= 1)
2205
+ i[v] && !f && (u += i[v].swiperSlideSize, d += 1, u > o && (f = !0));
2206
+ } else if (e === "current")
2207
+ for (let u = c + 1; u < i.length; u += 1)
2208
+ (s ? l[u] + a[u] - l[c] < o : l[u] - l[c] < o) && (d += 1);
2209
+ else
2210
+ for (let u = c - 1; u >= 0; u -= 1)
2211
+ l[c] - l[u] < o && (d += 1);
2212
+ return d;
2213
+ }
2214
+ update() {
2215
+ const e = this;
2216
+ if (!e || e.destroyed) return;
2217
+ const {
2218
+ snapGrid: s,
2219
+ params: r
2220
+ } = e;
2221
+ r.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((l) => {
2222
+ l.complete && ne(e, l);
2223
+ }), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
2224
+ function n() {
2225
+ const l = e.rtlTranslate ? e.translate * -1 : e.translate, a = Math.min(Math.max(l, e.maxTranslate()), e.minTranslate());
2226
+ e.setTranslate(a), e.updateActiveIndex(), e.updateSlidesClasses();
2227
+ }
2228
+ let i;
2229
+ if (r.freeMode && r.freeMode.enabled && !r.cssMode)
2230
+ n(), r.autoHeight && e.updateAutoHeight();
2231
+ else {
2232
+ if ((r.slidesPerView === "auto" || r.slidesPerView > 1) && e.isEnd && !r.centeredSlides) {
2233
+ const l = e.virtual && r.virtual.enabled ? e.virtual.slides : e.slides;
2234
+ i = e.slideTo(l.length - 1, 0, !1, !0);
2235
+ } else
2236
+ i = e.slideTo(e.activeIndex, 0, !1, !0);
2237
+ i || n();
2238
+ }
2239
+ r.watchOverflow && s !== e.snapGrid && e.checkOverflow(), e.emit("update");
2240
+ }
2241
+ changeDirection(e, s) {
2242
+ s === void 0 && (s = !0);
2243
+ const r = this, n = r.params.direction;
2244
+ return e || (e = n === "horizontal" ? "vertical" : "horizontal"), e === n || e !== "horizontal" && e !== "vertical" || (r.el.classList.remove(`${r.params.containerModifierClass}${n}`), r.el.classList.add(`${r.params.containerModifierClass}${e}`), r.emitContainerClasses(), r.params.direction = e, r.slides.forEach((i) => {
2245
+ e === "vertical" ? i.style.width = "" : i.style.height = "";
2246
+ }), r.emit("changeDirection"), s && r.update()), r;
2247
+ }
2248
+ changeLanguageDirection(e) {
2249
+ const s = this;
2250
+ s.rtl && e === "rtl" || !s.rtl && e === "ltr" || (s.rtl = e === "rtl", s.rtlTranslate = s.params.direction === "horizontal" && s.rtl, s.rtl ? (s.el.classList.add(`${s.params.containerModifierClass}rtl`), s.el.dir = "rtl") : (s.el.classList.remove(`${s.params.containerModifierClass}rtl`), s.el.dir = "ltr"), s.update());
2251
+ }
2252
+ mount(e) {
2253
+ const s = this;
2254
+ if (s.mounted) return !0;
2255
+ let r = e || s.params.el;
2256
+ if (typeof r == "string" && (r = document.querySelector(r)), !r)
2257
+ return !1;
2258
+ r.swiper = s, r.parentNode && r.parentNode.host && r.parentNode.host.nodeName === s.params.swiperElementNodeName.toUpperCase() && (s.isElement = !0);
2259
+ const n = () => `.${(s.params.wrapperClass || "").trim().split(" ").join(".")}`;
2260
+ let i = r && r.shadowRoot && r.shadowRoot.querySelector ? r.shadowRoot.querySelector(n()) : H(r, n())[0];
2261
+ return !i && s.params.createElements && (i = de("div", s.params.wrapperClass), r.append(i), H(r, `.${s.params.slideClass}`).forEach((l) => {
2262
+ i.append(l);
2263
+ })), Object.assign(s, {
2264
+ el: r,
2265
+ wrapperEl: i,
2266
+ slidesEl: s.isElement && !r.parentNode.host.slideSlots ? r.parentNode.host : i,
2267
+ hostEl: s.isElement ? r.parentNode.host : r,
2268
+ mounted: !0,
2269
+ // RTL
2270
+ rtl: r.dir.toLowerCase() === "rtl" || Y(r, "direction") === "rtl",
2271
+ rtlTranslate: s.params.direction === "horizontal" && (r.dir.toLowerCase() === "rtl" || Y(r, "direction") === "rtl"),
2272
+ wrongRTL: Y(i, "display") === "-webkit-box"
2273
+ }), !0;
2274
+ }
2275
+ init(e) {
2276
+ const s = this;
2277
+ if (s.initialized || s.mount(e) === !1) return s;
2278
+ s.emit("beforeInit"), s.params.breakpoints && s.setBreakpoint(), s.addClasses(), s.updateSize(), s.updateSlides(), s.params.watchOverflow && s.checkOverflow(), s.params.grabCursor && s.enabled && s.setGrabCursor(), s.params.loop && s.virtual && s.params.virtual.enabled ? s.slideTo(s.params.initialSlide + s.virtual.slidesBefore, 0, s.params.runCallbacksOnInit, !1, !0) : s.slideTo(s.params.initialSlide, 0, s.params.runCallbacksOnInit, !1, !0), s.params.loop && s.loopCreate(void 0, !0), s.attachEvents();
2279
+ const r = [...s.el.querySelectorAll('[loading="lazy"]')];
2280
+ return s.isElement && r.push(...s.hostEl.querySelectorAll('[loading="lazy"]')), r.forEach((n) => {
2281
+ n.complete ? ne(s, n) : n.addEventListener("load", (i) => {
2282
+ ne(s, i.target);
2283
+ });
2284
+ }), Ce(s), s.initialized = !0, Ce(s), s.emit("init"), s.emit("afterInit"), s;
2285
+ }
2286
+ destroy(e, s) {
2287
+ e === void 0 && (e = !0), s === void 0 && (s = !0);
2288
+ const r = this, {
2289
+ params: n,
2290
+ el: i,
2291
+ wrapperEl: l,
2292
+ slides: a
2293
+ } = r;
2294
+ return typeof r.params > "u" || r.destroyed || (r.emit("beforeDestroy"), r.initialized = !1, r.detachEvents(), n.loop && r.loopDestroy(), s && (r.removeClasses(), i && typeof i != "string" && i.removeAttribute("style"), l && l.removeAttribute("style"), a && a.length && a.forEach((o) => {
2295
+ o.classList.remove(n.slideVisibleClass, n.slideFullyVisibleClass, n.slideActiveClass, n.slideNextClass, n.slidePrevClass), o.removeAttribute("style"), o.removeAttribute("data-swiper-slide-index");
2296
+ })), r.emit("destroy"), Object.keys(r.eventsListeners).forEach((o) => {
2297
+ r.off(o);
2298
+ }), e !== !1 && (r.el && typeof r.el != "string" && (r.el.swiper = null), Tt(r)), r.destroyed = !0), null;
2299
+ }
2300
+ static extendDefaults(e) {
2301
+ B(ye, e);
2302
+ }
2303
+ static get extendedDefaults() {
2304
+ return ye;
2305
+ }
2306
+ static get defaults() {
2307
+ return Pe;
2308
+ }
2309
+ static installModule(e) {
2310
+ q.prototype.__modules__ || (q.prototype.__modules__ = []);
2311
+ const s = q.prototype.__modules__;
2312
+ typeof e == "function" && s.indexOf(e) < 0 && s.push(e);
2313
+ }
2314
+ static use(e) {
2315
+ return Array.isArray(e) ? (e.forEach((s) => q.installModule(s)), q) : (q.installModule(e), q);
2316
+ }
2317
+ };
2318
+ Object.keys(be).forEach((t) => {
2319
+ Object.keys(be[t]).forEach((e) => {
2320
+ ze.prototype[e] = be[t][e];
2321
+ });
2322
+ });
2323
+ ze.use([$t, Gt]);
2324
+ const et = [
2325
+ "eventsPrefix",
2326
+ "injectStyles",
2327
+ "injectStylesUrls",
2328
+ "modules",
2329
+ "init",
2330
+ "_direction",
2331
+ "oneWayMovement",
2332
+ "swiperElementNodeName",
2333
+ "touchEventsTarget",
2334
+ "initialSlide",
2335
+ "_speed",
2336
+ "cssMode",
2337
+ "updateOnWindowResize",
2338
+ "resizeObserver",
2339
+ "nested",
2340
+ "focusableElements",
2341
+ "_enabled",
2342
+ "_width",
2343
+ "_height",
2344
+ "preventInteractionOnTransition",
2345
+ "userAgent",
2346
+ "url",
2347
+ "_edgeSwipeDetection",
2348
+ "_edgeSwipeThreshold",
2349
+ "_freeMode",
2350
+ "_autoHeight",
2351
+ "setWrapperSize",
2352
+ "virtualTranslate",
2353
+ "_effect",
2354
+ "breakpoints",
2355
+ "breakpointsBase",
2356
+ "_spaceBetween",
2357
+ "_slidesPerView",
2358
+ "maxBackfaceHiddenSlides",
2359
+ "_grid",
2360
+ "_slidesPerGroup",
2361
+ "_slidesPerGroupSkip",
2362
+ "_slidesPerGroupAuto",
2363
+ "_centeredSlides",
2364
+ "_centeredSlidesBounds",
2365
+ "_slidesOffsetBefore",
2366
+ "_slidesOffsetAfter",
2367
+ "normalizeSlideIndex",
2368
+ "_centerInsufficientSlides",
2369
+ "_watchOverflow",
2370
+ "roundLengths",
2371
+ "touchRatio",
2372
+ "touchAngle",
2373
+ "simulateTouch",
2374
+ "_shortSwipes",
2375
+ "_longSwipes",
2376
+ "longSwipesRatio",
2377
+ "longSwipesMs",
2378
+ "_followFinger",
2379
+ "allowTouchMove",
2380
+ "_threshold",
2381
+ "touchMoveStopPropagation",
2382
+ "touchStartPreventDefault",
2383
+ "touchStartForcePreventDefault",
2384
+ "touchReleaseOnEdges",
2385
+ "uniqueNavElements",
2386
+ "_resistance",
2387
+ "_resistanceRatio",
2388
+ "_watchSlidesProgress",
2389
+ "_grabCursor",
2390
+ "preventClicks",
2391
+ "preventClicksPropagation",
2392
+ "_slideToClickedSlide",
2393
+ "_loop",
2394
+ "loopAdditionalSlides",
2395
+ "loopAddBlankSlides",
2396
+ "loopPreventsSliding",
2397
+ "_rewind",
2398
+ "_allowSlidePrev",
2399
+ "_allowSlideNext",
2400
+ "_swipeHandler",
2401
+ "_noSwiping",
2402
+ "noSwipingClass",
2403
+ "noSwipingSelector",
2404
+ "passiveListeners",
2405
+ "containerModifierClass",
2406
+ "slideClass",
2407
+ "slideActiveClass",
2408
+ "slideVisibleClass",
2409
+ "slideFullyVisibleClass",
2410
+ "slideNextClass",
2411
+ "slidePrevClass",
2412
+ "slideBlankClass",
2413
+ "wrapperClass",
2414
+ "lazyPreloaderClass",
2415
+ "lazyPreloadPrevNext",
2416
+ "runCallbacksOnInit",
2417
+ "observer",
2418
+ "observeParents",
2419
+ "observeSlideChildren",
2420
+ // modules
2421
+ "a11y",
2422
+ "_autoplay",
2423
+ "_controller",
2424
+ "coverflowEffect",
2425
+ "cubeEffect",
2426
+ "fadeEffect",
2427
+ "flipEffect",
2428
+ "creativeEffect",
2429
+ "cardsEffect",
2430
+ "hashNavigation",
2431
+ "history",
2432
+ "keyboard",
2433
+ "mousewheel",
2434
+ "_navigation",
2435
+ "_pagination",
2436
+ "parallax",
2437
+ "_scrollbar",
2438
+ "_thumbs",
2439
+ "virtual",
2440
+ "zoom",
2441
+ "control"
2442
+ ];
2443
+ function Q(t) {
2444
+ return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object" && !t.__swiper__;
2445
+ }
2446
+ function J(t, e) {
2447
+ const s = ["__proto__", "constructor", "prototype"];
2448
+ Object.keys(e).filter((r) => s.indexOf(r) < 0).forEach((r) => {
2449
+ typeof t[r] > "u" ? t[r] = e[r] : Q(e[r]) && Q(t[r]) && Object.keys(e[r]).length > 0 ? e[r].__swiper__ ? t[r] = e[r] : J(t[r], e[r]) : t[r] = e[r];
2450
+ });
2451
+ }
2452
+ function tt(t) {
2453
+ return t === void 0 && (t = {}), t.navigation && typeof t.navigation.nextEl > "u" && typeof t.navigation.prevEl > "u";
2454
+ }
2455
+ function st(t) {
2456
+ return t === void 0 && (t = {}), t.pagination && typeof t.pagination.el > "u";
2457
+ }
2458
+ function rt(t) {
2459
+ return t === void 0 && (t = {}), t.scrollbar && typeof t.scrollbar.el > "u";
2460
+ }
2461
+ function it(t) {
2462
+ t === void 0 && (t = "");
2463
+ const e = t.split(" ").map((r) => r.trim()).filter((r) => !!r), s = [];
2464
+ return e.forEach((r) => {
2465
+ s.indexOf(r) < 0 && s.push(r);
2466
+ }), s.join(" ");
2467
+ }
2468
+ function Vs(t) {
2469
+ return t === void 0 && (t = ""), t ? t.includes("swiper-wrapper") ? t : `swiper-wrapper ${t}` : "swiper-wrapper";
2470
+ }
2471
+ function js(t) {
2472
+ let {
2473
+ swiper: e,
2474
+ slides: s,
2475
+ passedParams: r,
2476
+ changedParams: n,
2477
+ nextEl: i,
2478
+ prevEl: l,
2479
+ scrollbarEl: a,
2480
+ paginationEl: o
2481
+ } = t;
2482
+ const c = n.filter((S) => S !== "children" && S !== "direction" && S !== "wrapperClass"), {
2483
+ params: d,
2484
+ pagination: u,
2485
+ navigation: f,
2486
+ scrollbar: v,
2487
+ virtual: h,
2488
+ thumbs: b
2489
+ } = e;
2490
+ let M, w, p, m, g, y, T, A;
2491
+ 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);
2492
+ const I = (S) => {
2493
+ 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));
2494
+ };
2495
+ n.includes("loop") && e.isElement && (d.loop && !r.loop ? y = !0 : !d.loop && r.loop ? T = !0 : A = !0), c.forEach((S) => {
2496
+ if (Q(d[S]) && Q(r[S]))
2497
+ Object.assign(d[S], r[S]), (S === "navigation" || S === "pagination" || S === "scrollbar") && "enabled" in r[S] && !r[S].enabled && I(S);
2498
+ else {
2499
+ const E = r[S];
2500
+ (E === !0 || E === !1) && (S === "navigation" || S === "pagination" || S === "scrollbar") ? E === !1 && I(S) : d[S] = r[S];
2501
+ }
2502
+ }), 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
+ }
2504
+ function Hs(t, e) {
2505
+ t === void 0 && (t = {}), e === void 0 && (e = !0);
2506
+ const s = {
2507
+ on: {}
2508
+ }, r = {}, n = {};
2509
+ J(s, Pe), s._emitClasses = !0, s.init = !1;
2510
+ const i = {}, l = et.map((o) => o.replace(/_/, "")), a = Object.assign({}, t);
2511
+ return Object.keys(a).forEach((o) => {
2512
+ typeof t[o] > "u" || (l.indexOf(o) >= 0 ? Q(t[o]) ? (s[o] = {}, n[o] = {}, J(s[o], t[o]), J(n[o], t[o])) : (s[o] = t[o], n[o] = t[o]) : o.search(/on[A-Z]/) === 0 && typeof t[o] == "function" ? e ? r[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : s.on[`${o[2].toLowerCase()}${o.substr(3)}`] = t[o] : i[o] = t[o]);
2513
+ }), ["navigation", "pagination", "scrollbar"].forEach((o) => {
2514
+ s[o] === !0 && (s[o] = {}), s[o] === !1 && delete s[o];
2515
+ }), {
2516
+ params: s,
2517
+ passedParams: n,
2518
+ rest: i,
2519
+ events: r
2520
+ };
2521
+ }
2522
+ function Rs(t, e) {
2523
+ let {
2524
+ el: s,
2525
+ nextEl: r,
2526
+ prevEl: n,
2527
+ paginationEl: i,
2528
+ scrollbarEl: l,
2529
+ swiper: a
2530
+ } = t;
2531
+ tt(e) && r && n && (a.params.navigation.nextEl = r, a.originalParams.navigation.nextEl = r, a.params.navigation.prevEl = n, a.originalParams.navigation.prevEl = n), st(e) && i && (a.params.pagination.el = i, a.originalParams.pagination.el = i), rt(e) && l && (a.params.scrollbar.el = l, a.originalParams.scrollbar.el = l), a.init(s);
2532
+ }
2533
+ function qs(t, e, s, r, n) {
2534
+ const i = [];
2535
+ if (!e) return i;
2536
+ const l = (a) => {
2537
+ i.indexOf(a) < 0 && i.push(a);
2538
+ };
2539
+ if (s && r) {
2540
+ const a = r.map(n), o = s.map(n);
2541
+ a.join("") !== o.join("") && l("children"), r.length !== s.length && l("children");
2542
+ }
2543
+ return et.filter((a) => a[0] === "_").map((a) => a.replace(/_/, "")).forEach((a) => {
2544
+ if (a in t && a in e)
2545
+ if (Q(t[a]) && Q(e[a])) {
2546
+ const o = Object.keys(t[a]), c = Object.keys(e[a]);
2547
+ o.length !== c.length ? l(a) : (o.forEach((d) => {
2548
+ t[a][d] !== e[a][d] && l(a);
2549
+ }), c.forEach((d) => {
2550
+ t[a][d] !== e[a][d] && l(a);
2551
+ }));
2552
+ } else t[a] !== e[a] && l(a);
2553
+ }), i;
2554
+ }
2555
+ const Ws = (t) => {
2556
+ !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());
2557
+ };
2558
+ function pe() {
2559
+ return pe = Object.assign ? Object.assign.bind() : function(t) {
2560
+ for (var e = 1; e < arguments.length; e++) {
2561
+ var s = arguments[e];
2562
+ for (var r in s)
2563
+ Object.prototype.hasOwnProperty.call(s, r) && (t[r] = s[r]);
2564
+ }
2565
+ return t;
2566
+ }, pe.apply(this, arguments);
2567
+ }
2568
+ function nt(t) {
2569
+ return t.type && t.type.displayName && t.type.displayName.includes("SwiperSlide");
2570
+ }
2571
+ function at(t) {
2572
+ const e = [];
2573
+ return $.Children.toArray(t).forEach((s) => {
2574
+ nt(s) ? e.push(s) : s.props && s.props.children && at(s.props.children).forEach((r) => e.push(r));
2575
+ }), e;
2576
+ }
2577
+ function Ys(t) {
2578
+ const e = [], s = {
2579
+ "container-start": [],
2580
+ "container-end": [],
2581
+ "wrapper-start": [],
2582
+ "wrapper-end": []
2583
+ };
2584
+ return $.Children.toArray(t).forEach((r) => {
2585
+ if (nt(r))
2586
+ e.push(r);
2587
+ else if (r.props && r.props.slot && s[r.props.slot])
2588
+ s[r.props.slot].push(r);
2589
+ else if (r.props && r.props.children) {
2590
+ const n = at(r.props.children);
2591
+ n.length > 0 ? n.forEach((i) => e.push(i)) : s["container-end"].push(r);
2592
+ } else
2593
+ s["container-end"].push(r);
2594
+ }), {
2595
+ slides: e,
2596
+ slots: s
2597
+ };
2598
+ }
2599
+ function Xs(t, e, s) {
2600
+ if (!s) return null;
2601
+ const r = (d) => {
2602
+ let u = d;
2603
+ return d < 0 ? u = e.length + d : u >= e.length && (u = u - e.length), u;
2604
+ }, n = t.isHorizontal() ? {
2605
+ [t.rtlTranslate ? "right" : "left"]: `${s.offset}px`
2606
+ } : {
2607
+ top: `${s.offset}px`
2608
+ }, {
2609
+ from: i,
2610
+ to: l
2611
+ } = s, a = t.params.loop ? -e.length : 0, o = t.params.loop ? e.length * 2 : e.length, c = [];
2612
+ for (let d = a; d < o; d += 1)
2613
+ d >= i && d <= l && c.push(e[r(d)]);
2614
+ return c.map((d, u) => /* @__PURE__ */ $.cloneElement(d, {
2615
+ swiper: t,
2616
+ style: n,
2617
+ key: d.props.virtualIndex || d.key || `slide-${u}`
2618
+ }));
2619
+ }
2620
+ function ee(t, e) {
2621
+ return typeof window > "u" ? X(t, e) : ft(t, e);
2622
+ }
2623
+ const De = /* @__PURE__ */ je(null), Us = /* @__PURE__ */ je(null), lt = /* @__PURE__ */ Ae(function(t, e) {
2624
+ let {
2625
+ className: s,
2626
+ tag: r = "div",
2627
+ wrapperTag: n = "div",
2628
+ children: i,
2629
+ onSwiper: l,
2630
+ ...a
2631
+ } = t === void 0 ? {} : t, o = !1;
2632
+ 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
+ params: I,
2634
+ passedParams: S,
2635
+ rest: E,
2636
+ events: x
2637
+ } = Hs(a), {
2638
+ slides: k,
2639
+ slots: L
2640
+ } = Ys(i), O = () => {
2641
+ h(!v);
2642
+ };
2643
+ Object.assign(I.on, {
2644
+ _containerClasses(G, j) {
2645
+ d(j);
2646
+ }
2647
+ });
2648
+ const C = () => {
2649
+ Object.assign(I.on, x), o = !0;
2650
+ const G = {
2651
+ ...I
2652
+ };
2653
+ if (delete G.wrapperClass, w.current = new ze(G), w.current.virtual && w.current.params.virtual.enabled) {
2654
+ w.current.virtual.slides = k;
2655
+ const j = {
2656
+ cache: !1,
2657
+ slides: k,
2658
+ renderExternal: f,
2659
+ renderExternalUpdate: !1
2660
+ };
2661
+ J(w.current.params.virtual, j), J(w.current.originalParams.virtual, j);
2662
+ }
2663
+ };
2664
+ M.current || C(), w.current && w.current.on("_beforeBreakpoint", O);
2665
+ const z = () => {
2666
+ o || !x || !w.current || Object.keys(x).forEach((G) => {
2667
+ w.current.on(G, x[G]);
2668
+ });
2669
+ }, U = () => {
2670
+ !x || !w.current || Object.keys(x).forEach((G) => {
2671
+ w.current.off(G, x[G]);
2672
+ });
2673
+ };
2674
+ X(() => () => {
2675
+ w.current && w.current.off("_beforeBreakpoint", O);
2676
+ }), X(() => {
2677
+ !b.current && w.current && (w.current.emitSlidesClasses(), b.current = !0);
2678
+ }), ee(() => {
2679
+ if (e && (e.current = M.current), !!M.current)
2680
+ return w.current.destroyed && C(), Rs({
2681
+ el: M.current,
2682
+ nextEl: g.current,
2683
+ prevEl: y.current,
2684
+ paginationEl: T.current,
2685
+ scrollbarEl: A.current,
2686
+ swiper: w.current
2687
+ }, I), l && !w.current.destroyed && l(w.current), () => {
2688
+ w.current && !w.current.destroyed && w.current.destroy(!0, !1);
2689
+ };
2690
+ }, []), ee(() => {
2691
+ z();
2692
+ const G = qs(S, p.current, k, m.current, (j) => j.key);
2693
+ return p.current = S, m.current = k, G.length && w.current && !w.current.destroyed && js({
2694
+ swiper: w.current,
2695
+ slides: k,
2696
+ passedParams: S,
2697
+ changedParams: G,
2698
+ nextEl: g.current,
2699
+ prevEl: y.current,
2700
+ scrollbarEl: A.current,
2701
+ paginationEl: T.current
2702
+ }), () => {
2703
+ U();
2704
+ };
2705
+ }), ee(() => {
2706
+ Ws(w.current);
2707
+ }, [u]);
2708
+ function V() {
2709
+ return I.virtual ? Xs(w.current, k, u) : k.map((G, j) => /* @__PURE__ */ $.cloneElement(G, {
2710
+ swiper: w.current,
2711
+ swiperSlideIndex: j
2712
+ }));
2713
+ }
2714
+ return /* @__PURE__ */ $.createElement(r, pe({
2715
+ ref: M,
2716
+ className: it(`${c}${s ? ` ${s}` : ""}`)
2717
+ }, E), /* @__PURE__ */ $.createElement(Us.Provider, {
2718
+ value: w.current
2719
+ }, L["container-start"], /* @__PURE__ */ $.createElement(n, {
2720
+ className: Vs(I.wrapperClass)
2721
+ }, L["wrapper-start"], V(), L["wrapper-end"]), tt(I) && /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("div", {
2722
+ ref: y,
2723
+ className: "swiper-button-prev"
2724
+ }), /* @__PURE__ */ $.createElement("div", {
2725
+ ref: g,
2726
+ className: "swiper-button-next"
2727
+ })), rt(I) && /* @__PURE__ */ $.createElement("div", {
2728
+ ref: A,
2729
+ className: "swiper-scrollbar"
2730
+ }), st(I) && /* @__PURE__ */ $.createElement("div", {
2731
+ ref: T,
2732
+ className: "swiper-pagination"
2733
+ }), L["container-end"]));
2734
+ });
2735
+ lt.displayName = "Swiper";
2736
+ const ae = /* @__PURE__ */ Ae(function(t, e) {
2737
+ let {
2738
+ tag: s = "div",
2739
+ children: r,
2740
+ className: n = "",
2741
+ swiper: i,
2742
+ zoom: l,
2743
+ lazy: a,
2744
+ virtualIndex: o,
2745
+ swiperSlideIndex: c,
2746
+ ...d
2747
+ } = t === void 0 ? {} : t;
2748
+ const u = D(null), [f, v] = W("swiper-slide"), [h, b] = W(!1);
2749
+ function M(g, y, T) {
2750
+ y === u.current && v(T);
2751
+ }
2752
+ ee(() => {
2753
+ if (typeof c < "u" && (u.current.swiperSlideIndex = c), e && (e.current = u.current), !(!u.current || !i)) {
2754
+ if (i.destroyed) {
2755
+ f !== "swiper-slide" && v("swiper-slide");
2756
+ return;
2757
+ }
2758
+ return i.on("_slideClass", M), () => {
2759
+ i && i.off("_slideClass", M);
2760
+ };
2761
+ }
2762
+ }), ee(() => {
2763
+ i && u.current && !i.destroyed && v(i.getSlideClasses(u.current));
2764
+ }, [i]);
2765
+ const w = {
2766
+ isActive: f.indexOf("swiper-slide-active") >= 0,
2767
+ isVisible: f.indexOf("swiper-slide-visible") >= 0,
2768
+ isPrev: f.indexOf("swiper-slide-prev") >= 0,
2769
+ isNext: f.indexOf("swiper-slide-next") >= 0
2770
+ }, p = () => typeof r == "function" ? r(w) : r, m = () => {
2771
+ b(!0);
2772
+ };
2773
+ return /* @__PURE__ */ $.createElement(s, pe({
2774
+ ref: u,
2775
+ className: it(`${f}${n ? ` ${n}` : ""}`),
2776
+ "data-swiper-slide-index": o,
2777
+ onLoad: m
2778
+ }, d), l && /* @__PURE__ */ $.createElement(De.Provider, {
2779
+ value: w
2780
+ }, /* @__PURE__ */ $.createElement("div", {
2781
+ className: "swiper-zoom-container",
2782
+ "data-swiper-zoom": typeof l == "number" ? l : void 0
2783
+ }, p(), a && !h && /* @__PURE__ */ $.createElement("div", {
2784
+ className: "swiper-lazy-preloader"
2785
+ }))), !l && /* @__PURE__ */ $.createElement(De.Provider, {
2786
+ value: w
2787
+ }, p(), a && !h && /* @__PURE__ */ $.createElement("div", {
2788
+ className: "swiper-lazy-preloader"
2789
+ })));
2790
+ });
2791
+ ae.displayName = "SwiperSlide";
2792
+ const Qs = () => lt, Ks = /* @__PURE__ */ _(Qs())({
2793
+ name: "Carousel",
2794
+ class: "c1f9jjsn",
2795
+ propsAsIs: !0
2796
+ }), Me = /* @__PURE__ */ _("div")({
2797
+ name: "ScreenWrap",
2798
+ class: "s25r51y",
2799
+ propsAsIs: !1
2800
+ }), Js = () => te, Zs = /* @__PURE__ */ _(Js())({
2801
+ name: "SponsorIconI",
2802
+ class: "s1lvrmx8",
2803
+ propsAsIs: !0
2804
+ }), ot = ({
2805
+ style: t,
2806
+ className: e
2807
+ }) => /* @__PURE__ */ P(Zs, {
2808
+ className: e,
2809
+ style: t,
2810
+ name: "icon-masters-logo"
2811
+ }), dt = /* @__PURE__ */ _("div")({
2812
+ name: "ScreenTextBlock",
2813
+ class: "s11xps29",
2814
+ propsAsIs: !1
2815
+ }), ct = /* @__PURE__ */ _("div")({
2816
+ name: "ScreenTitle",
2817
+ class: "s14qstuv",
2818
+ propsAsIs: !1
2819
+ }), ke = /* @__PURE__ */ _("div")({
2820
+ name: "ScreenDescription",
2821
+ class: "s14mdh2e",
2822
+ propsAsIs: !1
2823
+ }), ue = /* @__PURE__ */ _("button")({
2824
+ name: "ScreenButton",
2825
+ class: "sqtjig9",
2826
+ propsAsIs: !1
2827
+ }), er = /* @__PURE__ */ _("div")({
2828
+ name: "EmergencyContainer",
2829
+ class: "e1f9mu2m",
2830
+ propsAsIs: !1
2831
+ }), tr = /* @__PURE__ */ _("div")({
2832
+ name: "EmergencyScreenTitle",
2833
+ class: "e1n10yo1",
2834
+ propsAsIs: !1
2835
+ }), sr = /* @__PURE__ */ _("div")({
2836
+ name: "EmergencyScreenDescription",
2837
+ class: "e1xecypc",
2838
+ propsAsIs: !1
2839
+ }), rr = () => ue, ir = /* @__PURE__ */ _(rr())({
2840
+ name: "EmergencyScreenButton",
2841
+ class: "e1k6zoyu",
2842
+ propsAsIs: !0
2843
+ }), Ie = ({ actionFn: t, description: e, className: s, onEvent: r }) => (X(() => {
2844
+ r({ type: "slBetPackReady" });
2845
+ }, [r]), /* @__PURE__ */ F(er, { className: s, children: [
2846
+ /* @__PURE__ */ P(tr, { children: "Something went wrong." }),
2847
+ /* @__PURE__ */ P(sr, { children: e }),
2848
+ /* @__PURE__ */ P(ir, { onClick: t, children: "Try again" })
2849
+ ] })), nr = /* @__PURE__ */ _("div")({
2850
+ name: "ScreenContainerBox",
2851
+ class: "s28ooi9",
2852
+ propsAsIs: !1
2853
+ }), me = ({ children: t }) => /* @__PURE__ */ P(nr, { className: "ScreenContainer", children: /* @__PURE__ */ P("div", { children: t }) }), ar = /* @__PURE__ */ _("img")({
2854
+ name: "EndScreenMedia",
2855
+ class: "e8s3kc9",
2856
+ propsAsIs: !1
2857
+ }), lr = () => ot, or = /* @__PURE__ */ _(lr())({
2858
+ name: "EndScreenSponsorIcon",
2859
+ class: "e1uswib2",
2860
+ propsAsIs: !0
2861
+ }), dr = ({ onEvent: t }) => {
2862
+ const [e, s] = W(
2863
+ 0
2864
+ /* FIRST */
2865
+ );
2866
+ return e === 0 ? /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Me, { children: [
2867
+ /* @__PURE__ */ P(or, {}),
2868
+ /* @__PURE__ */ F(dt, { children: [
2869
+ /* @__PURE__ */ P(ct, { children: "Great picks!" }),
2870
+ /* @__PURE__ */ P(ke, { children: "Stay in the Enhanced Stream for live results, predictions, trivia, polls, and match insights." })
2871
+ ] }),
2872
+ /* @__PURE__ */ P(
2873
+ ue,
2874
+ {
2875
+ "data-a": "intr",
2876
+ onClick: () => {
2877
+ s(
2878
+ 1
2879
+ /* LAST */
2880
+ );
2881
+ },
2882
+ style: { marginTop: "auto " },
2883
+ children: "Continue"
2884
+ }
2885
+ )
2886
+ ] }) }, "end") : /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Me, { children: [
2887
+ /* @__PURE__ */ P(ar, { src: "https://cdn.streamlayer.io/assets/sdk-web/onboarding-steps/bet_pack_end_screen.png" }),
2888
+ /* @__PURE__ */ P(ke, { children: "Look for more live match insights, predictions and more." }),
2889
+ /* @__PURE__ */ P(ue, { "data-a": "intr", onClick: () => t({ type: "slOpenGameCenter" }), children: "Open Game Center" })
2890
+ ] }) }, "end");
2891
+ }, cr = /* @__PURE__ */ _("div")({
2892
+ name: "Container",
2893
+ class: "cv31tt7",
2894
+ propsAsIs: !1
2895
+ }), Le = ({
2896
+ className: t
2897
+ }) => /* @__PURE__ */ P(cr, {
2898
+ className: t,
2899
+ children: /* @__PURE__ */ P(gt, {})
2900
+ }), pr = ({ question: t, vote: e }) => t ? /* @__PURE__ */ P(wt, { close: () => {
2901
+ }, openedQuestion: t, vote: e, isLoading: !1, isEarlyPrediction: !0 }) : null, ur = /* @__PURE__ */ _("span")({
2902
+ name: "NextButton",
2903
+ class: "n991vvm",
2904
+ propsAsIs: !1
2905
+ }), mr = () => te, fr = /* @__PURE__ */ _(mr())({
2906
+ name: "IconArrowRight",
2907
+ class: "inbj36g",
2908
+ propsAsIs: !0
2909
+ }), hr = /* @__PURE__ */ _("div")({
2910
+ name: "StartScreenSponsor",
2911
+ class: "szrvgt",
2912
+ propsAsIs: !1
2913
+ }), vr = /* @__PURE__ */ _("div")({
2914
+ name: "StartScreenNote",
2915
+ class: "swqs2ju",
2916
+ propsAsIs: !1
2917
+ }), gr = ({ countQuestionsAvailable: t, sliderRef: e }) => /* @__PURE__ */ P(me, { children: /* @__PURE__ */ F(Me, { children: [
2918
+ /* @__PURE__ */ P(ot, {}),
2919
+ /* @__PURE__ */ F(dt, { children: [
2920
+ /* @__PURE__ */ P(hr, { children: "FEATURED GROUPS+" }),
2921
+ /* @__PURE__ */ P(ct, { children: "The First Five" })
2922
+ ] }),
2923
+ /* @__PURE__ */ P(ke, { children: "Tee off with these five initial predictions for today’s play." }),
2924
+ /* @__PURE__ */ F(
2925
+ ue,
2926
+ {
2927
+ "data-a": "intr",
2928
+ onClick: () => {
2929
+ var s;
2930
+ (s = e.current) == null || s.slideNext();
2931
+ },
2932
+ children: [
2933
+ t ? `${t} questions available` : "See all questions",
2934
+ /* @__PURE__ */ P(ur, { children: /* @__PURE__ */ P(fr, { name: "iconArrowRight" }) })
2935
+ ]
2936
+ }
2937
+ ),
2938
+ /* @__PURE__ */ P(vr, { children: "Note: Some questions may have been resolved as a result of today’s play." })
2939
+ ] }) }, "start");
2940
+ function wr(t, e, s, r) {
2941
+ return t.params.createElements && Object.keys(r).forEach((n) => {
2942
+ if (!s[n] && s.auto === !0) {
2943
+ let i = H(t.el, `.${r[n]}`)[0];
2944
+ i || (i = de("div", r[n]), i.className = r[n], t.el.append(i)), s[n] = i, e[n] = i;
2945
+ }
2946
+ }), s;
2947
+ }
2948
+ function Z(t) {
2949
+ return t === void 0 && (t = ""), `.${t.trim().replace(/([\.:!+\/])/g, "\\$1").replace(/ /g, ".")}`;
2950
+ }
2951
+ function br(t) {
2952
+ let {
2953
+ swiper: e,
2954
+ extendParams: s,
2955
+ on: r,
2956
+ emit: n
2957
+ } = t;
2958
+ const i = "swiper-pagination";
2959
+ s({
2960
+ pagination: {
2961
+ el: null,
2962
+ bulletElement: "span",
2963
+ clickable: !1,
2964
+ hideOnClick: !1,
2965
+ renderBullet: null,
2966
+ renderProgressbar: null,
2967
+ renderFraction: null,
2968
+ renderCustom: null,
2969
+ progressbarOpposite: !1,
2970
+ type: "bullets",
2971
+ // 'bullets' or 'progressbar' or 'fraction' or 'custom'
2972
+ dynamicBullets: !1,
2973
+ dynamicMainBullets: 1,
2974
+ formatFractionCurrent: (p) => p,
2975
+ formatFractionTotal: (p) => p,
2976
+ bulletClass: `${i}-bullet`,
2977
+ bulletActiveClass: `${i}-bullet-active`,
2978
+ modifierClass: `${i}-`,
2979
+ currentClass: `${i}-current`,
2980
+ totalClass: `${i}-total`,
2981
+ hiddenClass: `${i}-hidden`,
2982
+ progressbarFillClass: `${i}-progressbar-fill`,
2983
+ progressbarOppositeClass: `${i}-progressbar-opposite`,
2984
+ clickableClass: `${i}-clickable`,
2985
+ lockClass: `${i}-lock`,
2986
+ horizontalClass: `${i}-horizontal`,
2987
+ verticalClass: `${i}-vertical`,
2988
+ paginationDisabledClass: `${i}-disabled`
2989
+ }
2990
+ }), e.pagination = {
2991
+ el: null,
2992
+ bullets: []
2993
+ };
2994
+ let l, a = 0;
2995
+ function o() {
2996
+ return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
2997
+ }
2998
+ function c(p, m) {
2999
+ const {
3000
+ bulletActiveClass: g
3001
+ } = e.params.pagination;
3002
+ 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}`)));
3003
+ }
3004
+ function d(p, m, g) {
3005
+ if (p = p % g, m = m % g, m === p + 1)
3006
+ return "next";
3007
+ if (m === p - 1)
3008
+ return "previous";
3009
+ }
3010
+ function u(p) {
3011
+ const m = p.target.closest(Z(e.params.pagination.bulletClass));
3012
+ if (!m)
3013
+ return;
3014
+ p.preventDefault();
3015
+ const g = ce(m) * e.params.slidesPerGroup;
3016
+ if (e.params.loop) {
3017
+ if (e.realIndex === g) return;
3018
+ const y = d(e.realIndex, g, e.slides.length);
3019
+ y === "next" ? e.slideNext() : y === "previous" ? e.slidePrev() : e.slideToLoop(g);
3020
+ } else
3021
+ e.slideTo(g);
3022
+ }
3023
+ function f() {
3024
+ const p = e.rtl, m = e.params.pagination;
3025
+ if (o()) return;
3026
+ let g = e.pagination.el;
3027
+ g = R(g);
3028
+ let y, T;
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;
3030
+ 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) {
3031
+ const S = e.pagination.bullets;
3032
+ let E, x, k;
3033
+ if (m.dynamicBullets && (l = Te(S[0], e.isHorizontal() ? "width" : "height"), g.forEach((L) => {
3034
+ L.style[e.isHorizontal() ? "width" : "height"] = `${l * (m.dynamicMainBullets + 4)}px`;
3035
+ }), 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) => {
3036
+ 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();
3037
+ L.classList.remove(...O);
3038
+ }), g.length > 1)
3039
+ S.forEach((L) => {
3040
+ const O = ce(L);
3041
+ 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"));
3042
+ });
3043
+ else {
3044
+ const L = S[y];
3045
+ if (L && L.classList.add(...m.bulletActiveClass.split(" ")), e.isElement && S.forEach((O, C) => {
3046
+ O.setAttribute("part", C === y ? "bullet-active" : "bullet");
3047
+ }), m.dynamicBullets) {
3048
+ const O = S[E], C = S[x];
3049
+ for (let z = E; z <= x; z += 1)
3050
+ S[z] && S[z].classList.add(...`${m.bulletActiveClass}-main`.split(" "));
3051
+ c(O, "prev"), c(C, "next");
3052
+ }
3053
+ }
3054
+ if (m.dynamicBullets) {
3055
+ const L = Math.min(S.length, m.dynamicMainBullets + 4), O = (l * L - l) / 2 - k * l, C = p ? "right" : "left";
3056
+ S.forEach((z) => {
3057
+ z.style[e.isHorizontal() ? C : "top"] = `${O}px`;
3058
+ });
3059
+ }
3060
+ }
3061
+ g.forEach((S, E) => {
3062
+ if (m.type === "fraction" && (S.querySelectorAll(Z(m.currentClass)).forEach((x) => {
3063
+ x.textContent = m.formatFractionCurrent(y + 1);
3064
+ }), S.querySelectorAll(Z(m.totalClass)).forEach((x) => {
3065
+ x.textContent = m.formatFractionTotal(I);
3066
+ })), m.type === "progressbar") {
3067
+ let x;
3068
+ m.progressbarOpposite ? x = e.isHorizontal() ? "vertical" : "horizontal" : x = e.isHorizontal() ? "horizontal" : "vertical";
3069
+ const k = (y + 1) / I;
3070
+ let L = 1, O = 1;
3071
+ x === "horizontal" ? L = k : O = k, S.querySelectorAll(Z(m.progressbarFillClass)).forEach((C) => {
3072
+ C.style.transform = `translate3d(0,0,0) scaleX(${L}) scaleY(${O})`, C.style.transitionDuration = `${e.params.speed}ms`;
3073
+ });
3074
+ }
3075
+ 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);
3076
+ });
3077
+ }
3078
+ function v() {
3079
+ const p = e.params.pagination;
3080
+ if (o()) return;
3081
+ 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;
3082
+ let g = e.pagination.el;
3083
+ g = R(g);
3084
+ let y = "";
3085
+ if (p.type === "bullets") {
3086
+ let T = e.params.loop ? Math.ceil(m / e.params.slidesPerGroup) : e.snapGrid.length;
3087
+ e.params.freeMode && e.params.freeMode.enabled && T > m && (T = m);
3088
+ for (let A = 0; A < T; A += 1)
3089
+ p.renderBullet ? y += p.renderBullet.call(e, A, p.bulletClass) : y += `<${p.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${p.bulletClass}"></${p.bulletElement}>`;
3090
+ }
3091
+ 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) => {
3092
+ p.type !== "custom" && (T.innerHTML = y || ""), p.type === "bullets" && e.pagination.bullets.push(...T.querySelectorAll(Z(p.bulletClass)));
3093
+ }), p.type !== "custom" && n("paginationRender", g[0]);
3094
+ }
3095
+ function h() {
3096
+ e.params.pagination = wr(e, e.originalParams.pagination, e.params.pagination, {
3097
+ el: "swiper-pagination"
3098
+ });
3099
+ const p = e.params.pagination;
3100
+ if (!p.el) return;
3101
+ let m;
3102
+ 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) => Xe(g, ".swiper")[0] === e.el))), Array.isArray(m) && m.length === 1 && (m = m[0]), Object.assign(e.pagination, {
3103
+ el: m
3104
+ }), m = R(m), m.forEach((g) => {
3105
+ 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);
3106
+ }));
3107
+ }
3108
+ function b() {
3109
+ const p = e.params.pagination;
3110
+ if (o()) return;
3111
+ let m = e.pagination.el;
3112
+ m && (m = R(m), m.forEach((g) => {
3113
+ 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));
3114
+ })), e.pagination.bullets && e.pagination.bullets.forEach((g) => g.classList.remove(...p.bulletActiveClass.split(" ")));
3115
+ }
3116
+ r("changeDirection", () => {
3117
+ if (!e.pagination || !e.pagination.el) return;
3118
+ const p = e.params.pagination;
3119
+ let {
3120
+ el: m
3121
+ } = e.pagination;
3122
+ m = R(m), m.forEach((g) => {
3123
+ g.classList.remove(p.horizontalClass, p.verticalClass), g.classList.add(e.isHorizontal() ? p.horizontalClass : p.verticalClass);
3124
+ });
3125
+ }), r("init", () => {
3126
+ e.params.pagination.enabled === !1 ? w() : (h(), v(), f());
3127
+ }), r("activeIndexChange", () => {
3128
+ typeof e.snapIndex > "u" && f();
3129
+ }), r("snapIndexChange", () => {
3130
+ f();
3131
+ }), r("snapGridLengthChange", () => {
3132
+ v(), f();
3133
+ }), r("destroy", () => {
3134
+ b();
3135
+ }), r("enable disable", () => {
3136
+ let {
3137
+ el: p
3138
+ } = e.pagination;
3139
+ p && (p = R(p), p.forEach((m) => m.classList[e.enabled ? "remove" : "add"](e.params.pagination.lockClass)));
3140
+ }), r("lock unlock", () => {
3141
+ f();
3142
+ }), r("click", (p, m) => {
3143
+ const g = m.target, y = R(e.pagination.el);
3144
+ if (e.params.pagination.el && e.params.pagination.hideOnClick && y && y.length > 0 && !g.classList.contains(e.params.pagination.bulletClass)) {
3145
+ if (e.navigation && (e.navigation.nextEl && g === e.navigation.nextEl || e.navigation.prevEl && g === e.navigation.prevEl)) return;
3146
+ const T = y[0].classList.contains(e.params.pagination.hiddenClass);
3147
+ n(T === !0 ? "paginationShow" : "paginationHide"), y.forEach((A) => A.classList.toggle(e.params.pagination.hiddenClass));
3148
+ }
3149
+ });
3150
+ const M = () => {
3151
+ e.el.classList.remove(e.params.pagination.paginationDisabledClass);
3152
+ let {
3153
+ el: p
3154
+ } = e.pagination;
3155
+ p && (p = R(p), p.forEach((m) => m.classList.remove(e.params.pagination.paginationDisabledClass))), h(), v(), f();
3156
+ }, w = () => {
3157
+ e.el.classList.add(e.params.pagination.paginationDisabledClass);
3158
+ let {
3159
+ el: p
3160
+ } = e.pagination;
3161
+ p && (p = R(p), p.forEach((m) => m.classList.add(e.params.pagination.paginationDisabledClass))), b();
3162
+ };
3163
+ Object.assign(e.pagination, {
3164
+ enable: M,
3165
+ disable: w,
3166
+ render: v,
3167
+ update: f,
3168
+ init: h,
3169
+ destroy: b
3170
+ });
3171
+ }
3172
+ const yr = ({ data: t, gamification: e, onEvent: s, swipeable: r, autoplay: n }) => {
3173
+ const i = D(), l = D(), { listOfQuestions: a, countQuestionsAvailable: o } = He(() => {
3174
+ const v = t ? Object.values(t) : [];
3175
+ return {
3176
+ listOfQuestions: v,
3177
+ countQuestionsAvailable: v.filter(({ marketClosed: h }) => !h).length
3178
+ };
3179
+ }, [t]), c = Re(
3180
+ async (v, h) => {
3181
+ try {
3182
+ await e.betPackVote(v, h), s({
3183
+ type: "slVoted",
3184
+ payload: {
3185
+ questionId: v,
3186
+ answerId: h
3187
+ }
3188
+ });
3189
+ } finally {
3190
+ i.current && clearTimeout(i.current), n && (i.current = setTimeout(() => {
3191
+ var b;
3192
+ (b = l.current) == null || b.slideNext();
3193
+ }, 2e3));
3194
+ }
3195
+ },
3196
+ [e, s, n]
3197
+ );
3198
+ X(() => (s({
3199
+ type: "slBetPackReady",
3200
+ payload: {
3201
+ next: () => {
3202
+ var v;
3203
+ return (v = l.current) == null ? void 0 : v.slideNext();
3204
+ },
3205
+ prev: () => {
3206
+ var v;
3207
+ return (v = l.current) == null ? void 0 : v.slidePrev();
3208
+ },
3209
+ current: 0,
3210
+ canNext: !0,
3211
+ canPrev: !1
3212
+ }
3213
+ }), () => {
3214
+ i.current && clearTimeout(i.current);
3215
+ }), [s]);
3216
+ const d = (v) => {
3217
+ var h;
3218
+ const b = v.realIndex;
3219
+ if (s({
3220
+ type: "slBetPackChangeCard",
3221
+ payload: {
3222
+ current: b,
3223
+ canNext: b < Object.keys(t).length + 1,
3224
+ canPrev: b >= 1
3225
+ }
3226
+ }), b !== 0 && b !== Object.keys(t).length + 1 && (h = a[b - 1]) != null && h.id) {
3227
+ e.openQuestion(a[b - 1].id, {
3228
+ openedFrom: "bet-pack",
3229
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3230
+ // @ts-expect-error
3231
+ attributes: {
3232
+ id: a[b - 1].id,
3233
+ type: a[b - 1].type,
3234
+ status: a[b - 1].status,
3235
+ attributes: {
3236
+ case: void 0
3237
+ }
3238
+ }
3239
+ });
3240
+ return;
3241
+ }
3242
+ e.closeQuestion();
3243
+ }, [u, f] = W(1.1);
3244
+ return X(() => {
3245
+ const v = vt(() => {
3246
+ var h;
3247
+ const b = (h = l.current) == null ? void 0 : h.size;
3248
+ if (!b)
3249
+ return;
3250
+ const M = 1 + 30 / (b / 100) / 100 * 2;
3251
+ f(Math.ceil(M * 1e3) / 1e3);
3252
+ }, 200);
3253
+ return window.addEventListener("resize", v), v(), () => {
3254
+ window.removeEventListener("resize", v);
3255
+ };
3256
+ }, []), /* @__PURE__ */ F(
3257
+ Ks,
3258
+ {
3259
+ slidesPerView: u,
3260
+ spaceBetween: 12,
3261
+ centeredSlides: !0,
3262
+ centerInsufficientSlides: !0,
3263
+ allowTouchMove: r,
3264
+ pagination: {
3265
+ clickable: !0
3266
+ },
3267
+ modules: [br],
3268
+ onSlideChange: d,
3269
+ onBeforeSlideChangeStart: () => {
3270
+ i.current && clearTimeout(i.current);
3271
+ },
3272
+ onSwiper: (v) => {
3273
+ l.current = v;
3274
+ },
3275
+ children: [
3276
+ /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(gr, { sliderRef: l, countQuestionsAvailable: o }) }),
3277
+ a.map((v) => v ? /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(me, { children: /* @__PURE__ */ P(pr, { question: v, vote: c }) }, v.id) }) : null),
3278
+ /* @__PURE__ */ P(ae, { children: /* @__PURE__ */ P(dr, { onEvent: s }) })
3279
+ ]
3280
+ }
3281
+ );
3282
+ }, Sr = ({ gamification: t, autoplay: e, overlay: s, swipeable: r, onEvent: n }) => {
3283
+ const i = Se(t.betPack.getStore()), { error: l, loading: a, data: o } = i;
3284
+ return a || !Object.hasOwn(i, "data") ? /* @__PURE__ */ P(Le, {}) : l ? /* @__PURE__ */ P(
3285
+ Ie,
3286
+ {
3287
+ onEvent: n,
3288
+ actionFn: () => n({ type: "slHardRefresh" }),
3289
+ description: l instanceof bt && l.code !== yt.InvalidArgument ? `The event ID was not
3290
+ specified or is invalid.` : `The server is unable to
3291
+ handle this request.`
3292
+ }
3293
+ ) : !o || !o.timestamp || !o.data || !Object.keys(o.data).length ? /* @__PURE__ */ P(
3294
+ Ie,
3295
+ {
3296
+ onEvent: n,
3297
+ actionFn: () => n({ type: "slHardRefresh" }),
3298
+ description: `It looks like we couldn't
3299
+ load the questions.`
3300
+ }
3301
+ ) : /* @__PURE__ */ P(
3302
+ yr,
3303
+ {
3304
+ data: o.data,
3305
+ gamification: t,
3306
+ onEvent: n,
3307
+ swipeable: r,
3308
+ autoplay: e,
3309
+ overlay: s
3310
+ }
3311
+ );
3312
+ }, Er = /* @__PURE__ */ _("div")({
3313
+ name: "BetPackContainer",
3314
+ class: "b18vssq2",
3315
+ propsAsIs: !1
3316
+ }), ie = "slBetPackCb", xr = St("betPack-ui"), Tr = (t, e = {}) => {
3317
+ var s, r;
3318
+ const { questionId: n, answerId: i } = e, l = { questionId: n, answerId: i };
3319
+ xr.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" }));
3320
+ }, Cr = (t) => {
3321
+ Tr(t.type, t.payload);
3322
+ }, Pr = /* @__PURE__ */ _("div")({
3323
+ name: "Container",
3324
+ class: "c1mj28sn",
3325
+ propsAsIs: !1
3326
+ }), Mr = /* @__PURE__ */ _("button")({
3327
+ name: "CloseButton",
3328
+ class: "coc9f01",
3329
+ propsAsIs: !1
3330
+ }), Fe = "b590k5k", kr = () => te, pt = /* @__PURE__ */ _(kr())({
3331
+ name: "IconArrowPrev",
3332
+ class: "i1tkem14",
3333
+ propsAsIs: !0
3334
+ }), Ir = () => pt, Lr = /* @__PURE__ */ _(Ir())({
3335
+ name: "IconArrowNext",
3336
+ class: "i175qlj5",
3337
+ propsAsIs: !0
3338
+ }), Ar = /* @__PURE__ */ _("div")({
3339
+ name: "Header",
3340
+ class: "h1foi3kz",
3341
+ propsAsIs: !1
3342
+ }), Or = /* @__PURE__ */ _("div")({
3343
+ name: "HeaderTitle",
3344
+ class: "hc2d48a",
3345
+ propsAsIs: !1
3346
+ }), zr = /* @__PURE__ */ _("div")({
3347
+ name: "Main",
3348
+ class: "mgfyjlp",
3349
+ propsAsIs: !1
3350
+ }), _r = /* @__PURE__ */ _("div")({
3351
+ name: "Footer",
3352
+ class: "f1vakhu9",
3353
+ propsAsIs: !1
3354
+ }), Ve = /* @__PURE__ */ _("button")({
3355
+ name: "SlideSwitchButton",
3356
+ class: "spp13y7",
3357
+ propsAsIs: !1
3358
+ }), Wr = Ae(({ sdk: t, onEvent: e, close: s }, r) => {
3359
+ const [n, i] = W(), [l, a] = W(), o = Re(
3360
+ (c) => {
3361
+ if (c.type === "slBetPackReady") {
3362
+ const { next: d, prev: u, current: f, canNext: v, canPrev: h } = c.payload || {};
3363
+ i({ next: d, prev: u }), a((b) => ({
3364
+ current: b != null && b.current ? b == null ? void 0 : b.current : f,
3365
+ canPrev: b != null && b.current ? b == null ? void 0 : b.canPrev : h,
3366
+ canNext: v
3367
+ }));
3368
+ }
3369
+ if (c.type === "slBetPackChangeCard") {
3370
+ const { current: d, canNext: u, canPrev: f } = c.payload || {};
3371
+ a({ current: d, canNext: u, canPrev: f });
3372
+ }
3373
+ e == null || e(c);
3374
+ },
3375
+ [e]
3376
+ );
3377
+ return X(() => () => {
3378
+ var c;
3379
+ const d = t.getFeature(qe.GAMES);
3380
+ d && ((c = d.betPack) == null || c.off());
3381
+ }, [t]), /* @__PURE__ */ F(Pr, { ref: r, children: [
3382
+ /* @__PURE__ */ F(Ar, { children: [
3383
+ /* @__PURE__ */ F(Or, { children: [
3384
+ /* @__PURE__ */ P(te, { name: "fgIcon" }),
3385
+ "Featured Groups+"
3386
+ ] }),
3387
+ /* @__PURE__ */ P(Mr, { "data-a": "intr", onClick: s, children: /* @__PURE__ */ P(te, { name: "icon-close-btn-gray" }) })
3388
+ ] }),
3389
+ /* @__PURE__ */ P(zr, { children: /* @__PURE__ */ P(Gr, { sdk: t, onEvent: o, overlay: !0 }) }),
3390
+ /* @__PURE__ */ F(_r, { children: [
3391
+ /* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n == null ? void 0 : n.prev, disabled: !(l != null && l.canPrev), children: /* @__PURE__ */ P(pt, { "data-a": "intr", name: "iconArrowPrev", className: Ee((l == null ? void 0 : l.canPrev) && Fe) }) }),
3392
+ /* @__PURE__ */ P(Ve, { "data-a": "intr", onClick: n == null ? void 0 : n.next, disabled: !(l != null && l.canNext), children: /* @__PURE__ */ P(Lr, { "data-a": "intr", name: "iconArrowPrev", className: Ee((l == null ? void 0 : l.canNext) && Fe) }) })
3393
+ ] })
3394
+ ] });
3395
+ }), $r = ({ user: t, gamification: e, overlay: s, swipeable: r, onEvent: n }) => t.data ? e ? /* @__PURE__ */ P(Sr, { overlay: s, gamification: e, onEvent: n, swipeable: r }) : /* @__PURE__ */ P(Le, {}) : t.error && !t.loading ? /* @__PURE__ */ P(
3396
+ Ie,
3397
+ {
3398
+ onEvent: n,
3399
+ actionFn: () => n({ type: "slHardRefresh" }),
3400
+ description: `You are not authorized to
3401
+ view this resource.`
3402
+ }
3403
+ ) : /* @__PURE__ */ P(Le, {}), Gr = ht(({ sdk: t, swipeable: e = !0, onEvent: s = Cr, overlay: r }) => {
3404
+ const n = Se(t.featuresList.getStore()), i = He(() => t.getFeature(qe.GAMES), [n]), l = Se(t.getUserStore());
3405
+ return X(() => (t.writeOverlaySessionId(), () => {
3406
+ t.writeOverlaySessionId("");
3407
+ }), []), /* @__PURE__ */ P(
3408
+ Er,
3409
+ {
3410
+ className: Ee("SL-BetPack", r && "SL-BetPack--overlay", !r && "SL-BetPack--standalone"),
3411
+ children: /* @__PURE__ */ P($r, { overlay: r, user: l, gamification: i, onEvent: s, swipeable: e })
3412
+ }
3413
+ );
3414
+ });
3415
+ export {
3416
+ Gr as Q,
3417
+ Wr as n
3418
+ };