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