@streamlayer/react 1.17.0 → 1.18.0

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