well-waterfall 1.2.5 → 1.2.7
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/dist/index.es.js +1057 -1052
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/modules/playback.ts +7 -1
package/dist/index.es.js
CHANGED
|
@@ -68,7 +68,7 @@ function q() {
|
|
|
68
68
|
const t = typeof document < "u" ? document : {};
|
|
69
69
|
return it(t, ht), t;
|
|
70
70
|
}
|
|
71
|
-
const
|
|
71
|
+
const Lt = {
|
|
72
72
|
document: ht,
|
|
73
73
|
navigator: {
|
|
74
74
|
userAgent: ""
|
|
@@ -128,7 +128,7 @@ const xt = {
|
|
|
128
128
|
};
|
|
129
129
|
function Y() {
|
|
130
130
|
const t = typeof window < "u" ? window : {};
|
|
131
|
-
return it(t,
|
|
131
|
+
return it(t, Lt), t;
|
|
132
132
|
}
|
|
133
133
|
function ce(t) {
|
|
134
134
|
return t === void 0 && (t = ""), t.trim().split(" ").filter((e) => !!e.trim());
|
|
@@ -152,7 +152,7 @@ function Te(t, e) {
|
|
|
152
152
|
function te() {
|
|
153
153
|
return Date.now();
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Ct(t) {
|
|
156
156
|
const e = Y();
|
|
157
157
|
let s;
|
|
158
158
|
return e.getComputedStyle && (s = e.getComputedStyle(t, null)), !s && t.currentStyle && (s = t.currentStyle), s || (s = t.style), s;
|
|
@@ -161,24 +161,24 @@ function et(t, e) {
|
|
|
161
161
|
e === void 0 && (e = "x");
|
|
162
162
|
const s = Y();
|
|
163
163
|
let i, a, r;
|
|
164
|
-
const
|
|
165
|
-
return s.WebKitCSSMatrix ? (a =
|
|
164
|
+
const c = Ct(t);
|
|
165
|
+
return s.WebKitCSSMatrix ? (a = c.transform || c.webkitTransform, a.split(",").length > 6 && (a = a.split(", ").map((d) => d.replace(",", ".")).join(", ")), r = new s.WebKitCSSMatrix(a === "none" ? "" : a)) : (r = c.MozTransform || c.OTransform || c.MsTransform || c.msTransform || c.transform || c.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), i = r.toString().split(",")), e === "x" && (s.WebKitCSSMatrix ? a = r.m41 : i.length === 16 ? a = parseFloat(i[12]) : a = parseFloat(i[4])), e === "y" && (s.WebKitCSSMatrix ? a = r.m42 : i.length === 16 ? a = parseFloat(i[13]) : a = parseFloat(i[5])), a || 0;
|
|
166
166
|
}
|
|
167
167
|
function _e(t) {
|
|
168
168
|
return typeof t == "object" && t !== null && t.constructor && Object.prototype.toString.call(t).slice(8, -1) === "Object";
|
|
169
169
|
}
|
|
170
|
-
function
|
|
170
|
+
function It(t) {
|
|
171
171
|
return typeof window < "u" && typeof window.HTMLElement < "u" ? t instanceof HTMLElement : t && (t.nodeType === 1 || t.nodeType === 11);
|
|
172
172
|
}
|
|
173
173
|
function J() {
|
|
174
174
|
const t = Object(arguments.length <= 0 ? void 0 : arguments[0]), e = ["__proto__", "constructor", "prototype"];
|
|
175
175
|
for (let s = 1; s < arguments.length; s += 1) {
|
|
176
176
|
const i = s < 0 || arguments.length <= s ? void 0 : arguments[s];
|
|
177
|
-
if (i != null && !
|
|
177
|
+
if (i != null && !It(i)) {
|
|
178
178
|
const a = Object.keys(Object(i)).filter((r) => e.indexOf(r) < 0);
|
|
179
|
-
for (let r = 0,
|
|
180
|
-
const
|
|
181
|
-
f !== void 0 && f.enumerable && (_e(t[
|
|
179
|
+
for (let r = 0, c = a.length; r < c; r += 1) {
|
|
180
|
+
const d = a[r], f = Object.getOwnPropertyDescriptor(i, d);
|
|
181
|
+
f !== void 0 && f.enumerable && (_e(t[d]) && _e(i[d]) ? i[d].__swiper__ ? t[d] = i[d] : J(t[d], i[d]) : !_e(t[d]) && _e(i[d]) ? (t[d] = {}, i[d].__swiper__ ? t[d] = i[d] : J(t[d], i[d])) : t[d] = i[d]);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
}
|
|
@@ -194,12 +194,12 @@ function gt(t) {
|
|
|
194
194
|
side: i
|
|
195
195
|
} = t;
|
|
196
196
|
const a = Y(), r = -e.translate;
|
|
197
|
-
let
|
|
197
|
+
let c = null, d;
|
|
198
198
|
const f = e.params.speed;
|
|
199
199
|
e.wrapperEl.style.scrollSnapType = "none", a.cancelAnimationFrame(e.cssModeFrameID);
|
|
200
200
|
const o = s > r ? "next" : "prev", u = (T, g) => o === "next" && T >= g || o === "prev" && T <= g, m = () => {
|
|
201
|
-
|
|
202
|
-
const T = Math.max(Math.min((
|
|
201
|
+
d = (/* @__PURE__ */ new Date()).getTime(), c === null && (c = d);
|
|
202
|
+
const T = Math.max(Math.min((d - c) / f, 1), 0), g = 0.5 - Math.cos(T * Math.PI) / 2;
|
|
203
203
|
let n = r + g * (s - r);
|
|
204
204
|
if (u(n, s) && (n = s), e.wrapperEl.scrollTo({
|
|
205
205
|
[i]: n
|
|
@@ -223,7 +223,7 @@ function j(t, e) {
|
|
|
223
223
|
const s = Y(), i = [...t.children];
|
|
224
224
|
return s.HTMLSlotElement && t instanceof HTMLSlotElement && i.push(...t.assignedElements()), e ? i.filter((a) => a.matches(e)) : i;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function Rt(t, e) {
|
|
227
227
|
const s = [e];
|
|
228
228
|
for (; s.length > 0; ) {
|
|
229
229
|
const i = s.shift();
|
|
@@ -232,10 +232,10 @@ function It(t, e) {
|
|
|
232
232
|
s.push(...i.children, ...i.shadowRoot ? i.shadowRoot.children : [], ...i.assignedElements ? i.assignedElements() : []);
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function Ot(t, e) {
|
|
236
236
|
const s = Y();
|
|
237
237
|
let i = e.contains(t);
|
|
238
|
-
return !i && s.HTMLSlotElement && e instanceof HTMLSlotElement && (i = [...e.assignedElements()].includes(t), i || (i =
|
|
238
|
+
return !i && s.HTMLSlotElement && e instanceof HTMLSlotElement && (i = [...e.assignedElements()].includes(t), i || (i = Rt(t, e))), i;
|
|
239
239
|
}
|
|
240
240
|
function Ge(t) {
|
|
241
241
|
try {
|
|
@@ -250,13 +250,13 @@ function ee(t, e) {
|
|
|
250
250
|
return s.classList.add(...Array.isArray(e) ? e : ce(e)), s;
|
|
251
251
|
}
|
|
252
252
|
function Be(t) {
|
|
253
|
-
const e = Y(), s = q(), i = t.getBoundingClientRect(), a = s.body, r = t.clientTop || a.clientTop || 0,
|
|
253
|
+
const e = Y(), s = q(), i = t.getBoundingClientRect(), a = s.body, r = t.clientTop || a.clientTop || 0, c = t.clientLeft || a.clientLeft || 0, d = t === e ? e.scrollY : t.scrollTop, f = t === e ? e.scrollX : t.scrollLeft;
|
|
254
254
|
return {
|
|
255
|
-
top: i.top +
|
|
256
|
-
left: i.left + f -
|
|
255
|
+
top: i.top + d - r,
|
|
256
|
+
left: i.left + f - c
|
|
257
257
|
};
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function Pt(t, e) {
|
|
260
260
|
const s = [];
|
|
261
261
|
for (; t.previousElementSibling; ) {
|
|
262
262
|
const i = t.previousElementSibling;
|
|
@@ -264,7 +264,7 @@ function Ot(t, e) {
|
|
|
264
264
|
}
|
|
265
265
|
return s;
|
|
266
266
|
}
|
|
267
|
-
function
|
|
267
|
+
function Dt(t, e) {
|
|
268
268
|
const s = [];
|
|
269
269
|
for (; t.nextElementSibling; ) {
|
|
270
270
|
const i = t.nextElementSibling;
|
|
@@ -275,7 +275,7 @@ function Pt(t, e) {
|
|
|
275
275
|
function fe(t, e) {
|
|
276
276
|
return Y().getComputedStyle(t, null).getPropertyValue(e);
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function Me(t) {
|
|
279
279
|
let e = t, s;
|
|
280
280
|
if (e) {
|
|
281
281
|
for (s = 0; (e = e.previousSibling) !== null; )
|
|
@@ -290,7 +290,7 @@ function ue(t, e) {
|
|
|
290
290
|
e ? i.matches(e) && s.push(i) : s.push(i), i = i.parentElement;
|
|
291
291
|
return s;
|
|
292
292
|
}
|
|
293
|
-
function
|
|
293
|
+
function Le(t, e) {
|
|
294
294
|
function s(i) {
|
|
295
295
|
i.target === t && (e.call(t, i), t.removeEventListener("transitionend", s));
|
|
296
296
|
}
|
|
@@ -312,7 +312,7 @@ function ne(t, e) {
|
|
|
312
312
|
}).createHTML(e) : t.innerHTML = e;
|
|
313
313
|
}
|
|
314
314
|
let Ue;
|
|
315
|
-
function
|
|
315
|
+
function Nt() {
|
|
316
316
|
const t = Y(), e = q();
|
|
317
317
|
return {
|
|
318
318
|
smoothScroll: e.documentElement && e.documentElement.style && "scrollBehavior" in e.documentElement.style,
|
|
@@ -320,65 +320,65 @@ function Dt() {
|
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
322
|
function wt() {
|
|
323
|
-
return Ue || (Ue =
|
|
323
|
+
return Ue || (Ue = Nt()), Ue;
|
|
324
324
|
}
|
|
325
325
|
let qe;
|
|
326
|
-
function
|
|
326
|
+
function zt(t) {
|
|
327
327
|
let {
|
|
328
328
|
userAgent: e
|
|
329
329
|
} = t === void 0 ? {} : t;
|
|
330
|
-
const s = wt(), i = Y(), a = i.navigator.platform, r = e || i.navigator.userAgent,
|
|
330
|
+
const s = wt(), i = Y(), a = i.navigator.platform, r = e || i.navigator.userAgent, c = {
|
|
331
331
|
ios: !1,
|
|
332
332
|
android: !1
|
|
333
|
-
},
|
|
333
|
+
}, d = i.screen.width, f = i.screen.height, o = r.match(/(Android);?[\s\/]+([\d.]+)?/);
|
|
334
334
|
let u = r.match(/(iPad).*OS\s([\d_]+)/);
|
|
335
335
|
const m = r.match(/(iPod)(.*OS\s([\d_]+))?/), T = !u && r.match(/(iPhone\sOS|iOS)\s([\d_]+)/), g = a === "Win32";
|
|
336
336
|
let n = a === "MacIntel";
|
|
337
337
|
const l = ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"];
|
|
338
|
-
return !u && n && s.touch && l.indexOf(`${
|
|
338
|
+
return !u && n && s.touch && l.indexOf(`${d}x${f}`) >= 0 && (u = r.match(/(Version)\/([\d.]+)/), u || (u = [0, 1, "13_0_0"]), n = !1), o && !g && (c.os = "android", c.android = !0), (u || T || m) && (c.os = "ios", c.ios = !0), c;
|
|
339
339
|
}
|
|
340
340
|
function Tt(t) {
|
|
341
|
-
return t === void 0 && (t = {}), qe || (qe =
|
|
341
|
+
return t === void 0 && (t = {}), qe || (qe = zt(t)), qe;
|
|
342
342
|
}
|
|
343
343
|
let je;
|
|
344
|
-
function
|
|
344
|
+
function $t() {
|
|
345
345
|
const t = Y(), e = Tt();
|
|
346
346
|
let s = !1;
|
|
347
347
|
function i() {
|
|
348
|
-
const
|
|
349
|
-
return
|
|
348
|
+
const d = t.navigator.userAgent.toLowerCase();
|
|
349
|
+
return d.indexOf("safari") >= 0 && d.indexOf("chrome") < 0 && d.indexOf("android") < 0;
|
|
350
350
|
}
|
|
351
351
|
if (i()) {
|
|
352
|
-
const
|
|
353
|
-
if (
|
|
354
|
-
const [f, o] =
|
|
352
|
+
const d = String(t.navigator.userAgent);
|
|
353
|
+
if (d.includes("Version/")) {
|
|
354
|
+
const [f, o] = d.split("Version/")[1].split(" ")[0].split(".").map((u) => Number(u));
|
|
355
355
|
s = f < 16 || f === 16 && o < 2;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
const a = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent), r = i(),
|
|
358
|
+
const a = /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent), r = i(), c = r || a && e.ios;
|
|
359
359
|
return {
|
|
360
360
|
isSafari: s || r,
|
|
361
361
|
needPerspectiveFix: s,
|
|
362
|
-
need3dFix:
|
|
362
|
+
need3dFix: c,
|
|
363
363
|
isWebView: a
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
366
|
function vt() {
|
|
367
|
-
return je || (je =
|
|
367
|
+
return je || (je = $t()), je;
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function Gt(t) {
|
|
370
370
|
let {
|
|
371
371
|
swiper: e,
|
|
372
372
|
on: s,
|
|
373
373
|
emit: i
|
|
374
374
|
} = t;
|
|
375
375
|
const a = Y();
|
|
376
|
-
let r = null,
|
|
377
|
-
const
|
|
376
|
+
let r = null, c = null;
|
|
377
|
+
const d = () => {
|
|
378
378
|
!e || e.destroyed || !e.initialized || (i("beforeResize"), i("resize"));
|
|
379
379
|
}, f = () => {
|
|
380
380
|
!e || e.destroyed || !e.initialized || (r = new ResizeObserver((m) => {
|
|
381
|
-
|
|
381
|
+
c = a.requestAnimationFrame(() => {
|
|
382
382
|
const {
|
|
383
383
|
width: T,
|
|
384
384
|
height: g
|
|
@@ -391,11 +391,11 @@ function $t(t) {
|
|
|
391
391
|
target: p
|
|
392
392
|
} = w;
|
|
393
393
|
p && p !== e.el || (n = h ? h.width : (v[0] || v).inlineSize, l = h ? h.height : (v[0] || v).blockSize);
|
|
394
|
-
}), (n !== T || l !== g) &&
|
|
394
|
+
}), (n !== T || l !== g) && d();
|
|
395
395
|
});
|
|
396
396
|
}), r.observe(e.el));
|
|
397
397
|
}, o = () => {
|
|
398
|
-
|
|
398
|
+
c && a.cancelAnimationFrame(c), r && r.unobserve && e.el && (r.unobserve(e.el), r = null);
|
|
399
399
|
}, u = () => {
|
|
400
400
|
!e || e.destroyed || !e.initialized || i("orientationchange");
|
|
401
401
|
};
|
|
@@ -404,21 +404,21 @@ function $t(t) {
|
|
|
404
404
|
f();
|
|
405
405
|
return;
|
|
406
406
|
}
|
|
407
|
-
a.addEventListener("resize",
|
|
407
|
+
a.addEventListener("resize", d), a.addEventListener("orientationchange", u);
|
|
408
408
|
}), s("destroy", () => {
|
|
409
|
-
o(), a.removeEventListener("resize",
|
|
409
|
+
o(), a.removeEventListener("resize", d), a.removeEventListener("orientationchange", u);
|
|
410
410
|
});
|
|
411
411
|
}
|
|
412
|
-
function
|
|
412
|
+
function Bt(t) {
|
|
413
413
|
let {
|
|
414
414
|
swiper: e,
|
|
415
415
|
extendParams: s,
|
|
416
416
|
on: i,
|
|
417
417
|
emit: a
|
|
418
418
|
} = t;
|
|
419
|
-
const r = [],
|
|
419
|
+
const r = [], c = Y(), d = function(u, m) {
|
|
420
420
|
m === void 0 && (m = {});
|
|
421
|
-
const T =
|
|
421
|
+
const T = c.MutationObserver || c.WebkitMutationObserver, g = new T((n) => {
|
|
422
422
|
if (e.__preventObserver__) return;
|
|
423
423
|
if (n.length === 1) {
|
|
424
424
|
a("observerUpdate", n[0]);
|
|
@@ -427,7 +427,7 @@ function Gt(t) {
|
|
|
427
427
|
const l = function() {
|
|
428
428
|
a("observerUpdate", n[0]);
|
|
429
429
|
};
|
|
430
|
-
|
|
430
|
+
c.requestAnimationFrame ? c.requestAnimationFrame(l) : c.setTimeout(l, 0);
|
|
431
431
|
});
|
|
432
432
|
g.observe(u, {
|
|
433
433
|
attributes: typeof m.attributes > "u" ? !0 : m.attributes,
|
|
@@ -439,11 +439,11 @@ function Gt(t) {
|
|
|
439
439
|
if (e.params.observeParents) {
|
|
440
440
|
const u = ue(e.hostEl);
|
|
441
441
|
for (let m = 0; m < u.length; m += 1)
|
|
442
|
-
|
|
442
|
+
d(u[m]);
|
|
443
443
|
}
|
|
444
|
-
|
|
444
|
+
d(e.hostEl, {
|
|
445
445
|
childList: e.params.observeSlideChildren
|
|
446
|
-
}),
|
|
446
|
+
}), d(e.wrapperEl, {
|
|
447
447
|
attributes: !1
|
|
448
448
|
});
|
|
449
449
|
}
|
|
@@ -458,7 +458,7 @@ function Gt(t) {
|
|
|
458
458
|
observeSlideChildren: !1
|
|
459
459
|
}), i("init", f), i("destroy", o);
|
|
460
460
|
}
|
|
461
|
-
var
|
|
461
|
+
var kt = {
|
|
462
462
|
on(t, e, s) {
|
|
463
463
|
const i = this;
|
|
464
464
|
if (!i.eventsListeners || i.destroyed || typeof e != "function") return i;
|
|
@@ -472,9 +472,9 @@ var Bt = {
|
|
|
472
472
|
if (!i.eventsListeners || i.destroyed || typeof e != "function") return i;
|
|
473
473
|
function a() {
|
|
474
474
|
i.off(t, a), a.__emitterProxy && delete a.__emitterProxy;
|
|
475
|
-
for (var r = arguments.length,
|
|
476
|
-
d
|
|
477
|
-
e.apply(i,
|
|
475
|
+
for (var r = arguments.length, c = new Array(r), d = 0; d < r; d++)
|
|
476
|
+
c[d] = arguments[d];
|
|
477
|
+
e.apply(i, c);
|
|
478
478
|
}
|
|
479
479
|
return a.__emitterProxy = e, i.on(t, a, s);
|
|
480
480
|
},
|
|
@@ -502,8 +502,8 @@ var Bt = {
|
|
|
502
502
|
const t = this;
|
|
503
503
|
if (!t.eventsListeners || t.destroyed || !t.eventsListeners) return t;
|
|
504
504
|
let e, s, i;
|
|
505
|
-
for (var a = arguments.length, r = new Array(a),
|
|
506
|
-
r[
|
|
505
|
+
for (var a = arguments.length, r = new Array(a), c = 0; c < a; c++)
|
|
506
|
+
r[c] = arguments[c];
|
|
507
507
|
return typeof r[0] == "string" || Array.isArray(r[0]) ? (e = r[0], s = r.slice(1, r.length), i = t) : (e = r[0].events, s = r[0].data, i = r[0].context || t), s.unshift(i), (Array.isArray(e) ? e : e.split(" ")).forEach((f) => {
|
|
508
508
|
t.eventsAnyListeners && t.eventsAnyListeners.length && t.eventsAnyListeners.forEach((o) => {
|
|
509
509
|
o.apply(i, [f, ...s]);
|
|
@@ -513,7 +513,7 @@ var Bt = {
|
|
|
513
513
|
}), t;
|
|
514
514
|
}
|
|
515
515
|
};
|
|
516
|
-
function
|
|
516
|
+
function Ht() {
|
|
517
517
|
const t = this;
|
|
518
518
|
let e, s;
|
|
519
519
|
const i = t.el;
|
|
@@ -523,17 +523,17 @@ function kt() {
|
|
|
523
523
|
size: t.isHorizontal() ? e : s
|
|
524
524
|
}));
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Vt() {
|
|
527
527
|
const t = this;
|
|
528
|
-
function e(A,
|
|
529
|
-
return parseFloat(A.getPropertyValue(t.getDirectionLabel(
|
|
528
|
+
function e(A, M) {
|
|
529
|
+
return parseFloat(A.getPropertyValue(t.getDirectionLabel(M)) || 0);
|
|
530
530
|
}
|
|
531
531
|
const s = t.params, {
|
|
532
532
|
wrapperEl: i,
|
|
533
533
|
slidesEl: a,
|
|
534
534
|
size: r,
|
|
535
|
-
rtlTranslate:
|
|
536
|
-
wrongRTL:
|
|
535
|
+
rtlTranslate: c,
|
|
536
|
+
wrongRTL: d
|
|
537
537
|
} = t, f = t.virtual && s.virtual.enabled, o = f ? t.virtual.slides.length : t.slides.length, u = j(a, `.${t.params.slideClass}, swiper-slide`), m = f ? t.virtual.slides.length : u.length;
|
|
538
538
|
let T = [];
|
|
539
539
|
const g = [], n = [];
|
|
@@ -546,7 +546,7 @@ function Ht() {
|
|
|
546
546
|
if (typeof r > "u")
|
|
547
547
|
return;
|
|
548
548
|
typeof p == "string" && p.indexOf("%") >= 0 ? p = parseFloat(p.replace("%", "")) / 100 * r : typeof p == "string" && (p = parseFloat(p)), t.virtualSize = -p, u.forEach((A) => {
|
|
549
|
-
|
|
549
|
+
c ? A.style.marginLeft = "" : A.style.marginRight = "", A.style.marginBottom = "", A.style.marginTop = "";
|
|
550
550
|
}), s.centeredSlides && s.cssMode && (xe(i, "--swiper-centered-offset-before", ""), xe(i, "--swiper-centered-offset-after", ""));
|
|
551
551
|
const I = s.grid && s.grid.rows > 1 && t.grid;
|
|
552
552
|
I ? t.grid.initSlides(u) : t.grid && t.grid.unsetSlides();
|
|
@@ -554,75 +554,75 @@ function Ht() {
|
|
|
554
554
|
const _ = s.slidesPerView === "auto" && s.breakpoints && Object.keys(s.breakpoints).filter((A) => typeof s.breakpoints[A].slidesPerView < "u").length > 0;
|
|
555
555
|
for (let A = 0; A < m; A += 1) {
|
|
556
556
|
R = 0;
|
|
557
|
-
let
|
|
558
|
-
if (u[A] && (
|
|
557
|
+
let M;
|
|
558
|
+
if (u[A] && (M = u[A]), I && t.grid.updateSlide(A, M, u), !(u[A] && fe(M, "display") === "none")) {
|
|
559
559
|
if (s.slidesPerView === "auto") {
|
|
560
560
|
_ && (u[A].style[t.getDirectionLabel("width")] = "");
|
|
561
|
-
const
|
|
562
|
-
if (x && (
|
|
563
|
-
R = t.isHorizontal() ? tt(
|
|
561
|
+
const L = getComputedStyle(M), x = M.style.transform, C = M.style.webkitTransform;
|
|
562
|
+
if (x && (M.style.transform = "none"), C && (M.style.webkitTransform = "none"), s.roundLengths)
|
|
563
|
+
R = t.isHorizontal() ? tt(M, "width") : tt(M, "height");
|
|
564
564
|
else {
|
|
565
|
-
const N = e(
|
|
565
|
+
const N = e(L, "width"), $ = e(L, "padding-left"), S = e(L, "padding-right"), y = e(L, "margin-left"), B = e(L, "margin-right"), V = L.getPropertyValue("box-sizing");
|
|
566
566
|
if (V && V === "border-box")
|
|
567
567
|
R = N + y + B;
|
|
568
568
|
else {
|
|
569
569
|
const {
|
|
570
570
|
clientWidth: X,
|
|
571
571
|
offsetWidth: U
|
|
572
|
-
} =
|
|
572
|
+
} = M;
|
|
573
573
|
R = N + $ + S + y + B + (U - X);
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
x && (
|
|
576
|
+
x && (M.style.transform = x), C && (M.style.webkitTransform = C), s.roundLengths && (R = Math.floor(R));
|
|
577
577
|
} else
|
|
578
578
|
R = (r - (s.slidesPerView - 1) * p) / s.slidesPerView, s.roundLengths && (R = Math.floor(R)), u[A] && (u[A].style[t.getDirectionLabel("width")] = `${R}px`);
|
|
579
579
|
u[A] && (u[A].swiperSlideSize = R), n.push(R), s.centeredSlides ? (E = E + R / 2 + b / 2 + p, b === 0 && A !== 0 && (E = E - r / 2 - p), A === 0 && (E = E - r / 2 - p), Math.abs(E) < 1 / 1e3 && (E = 0), s.roundLengths && (E = Math.floor(E)), O % s.slidesPerGroup === 0 && T.push(E), g.push(E)) : (s.roundLengths && (E = Math.floor(E)), (O - Math.min(t.params.slidesPerGroupSkip, O)) % t.params.slidesPerGroup === 0 && T.push(E), g.push(E), E = E + R + p), t.virtualSize += R + p, b = R, O += 1;
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
|
-
if (t.virtualSize = Math.max(t.virtualSize, r) + w,
|
|
582
|
+
if (t.virtualSize = Math.max(t.virtualSize, r) + w, c && d && (s.effect === "slide" || s.effect === "coverflow") && (i.style.width = `${t.virtualSize + p}px`), s.setWrapperSize && (i.style[t.getDirectionLabel("width")] = `${t.virtualSize + p}px`), I && t.grid.updateWrapperSize(R, T), !s.centeredSlides) {
|
|
583
583
|
const A = [];
|
|
584
|
-
for (let
|
|
585
|
-
let
|
|
586
|
-
s.roundLengths && (
|
|
584
|
+
for (let M = 0; M < T.length; M += 1) {
|
|
585
|
+
let L = T[M];
|
|
586
|
+
s.roundLengths && (L = Math.floor(L)), T[M] <= t.virtualSize - r && A.push(L);
|
|
587
587
|
}
|
|
588
588
|
T = A, Math.floor(t.virtualSize - r) - Math.floor(T[T.length - 1]) > 1 && T.push(t.virtualSize - r);
|
|
589
589
|
}
|
|
590
590
|
if (f && s.loop) {
|
|
591
591
|
const A = n[0] + p;
|
|
592
592
|
if (s.slidesPerGroup > 1) {
|
|
593
|
-
const
|
|
594
|
-
for (let x = 0; x <
|
|
595
|
-
T.push(T[T.length - 1] +
|
|
593
|
+
const M = Math.ceil((t.virtual.slidesBefore + t.virtual.slidesAfter) / s.slidesPerGroup), L = A * s.slidesPerGroup;
|
|
594
|
+
for (let x = 0; x < M; x += 1)
|
|
595
|
+
T.push(T[T.length - 1] + L);
|
|
596
596
|
}
|
|
597
|
-
for (let
|
|
597
|
+
for (let M = 0; M < t.virtual.slidesBefore + t.virtual.slidesAfter; M += 1)
|
|
598
598
|
s.slidesPerGroup === 1 && T.push(T[T.length - 1] + A), g.push(g[g.length - 1] + A), t.virtualSize += A;
|
|
599
599
|
}
|
|
600
600
|
if (T.length === 0 && (T = [0]), p !== 0) {
|
|
601
|
-
const A = t.isHorizontal() &&
|
|
602
|
-
u.filter((
|
|
603
|
-
|
|
601
|
+
const A = t.isHorizontal() && c ? "marginLeft" : t.getDirectionLabel("marginRight");
|
|
602
|
+
u.filter((M, L) => !s.cssMode || s.loop ? !0 : L !== u.length - 1).forEach((M) => {
|
|
603
|
+
M.style[A] = `${p}px`;
|
|
604
604
|
});
|
|
605
605
|
}
|
|
606
606
|
if (s.centeredSlides && s.centeredSlidesBounds) {
|
|
607
607
|
let A = 0;
|
|
608
|
-
n.forEach((
|
|
609
|
-
A +=
|
|
608
|
+
n.forEach((L) => {
|
|
609
|
+
A += L + (p || 0);
|
|
610
610
|
}), A -= p;
|
|
611
|
-
const
|
|
612
|
-
T = T.map((
|
|
611
|
+
const M = A > r ? A - r : 0;
|
|
612
|
+
T = T.map((L) => L <= 0 ? -l : L > M ? M + w : L);
|
|
613
613
|
}
|
|
614
614
|
if (s.centerInsufficientSlides) {
|
|
615
615
|
let A = 0;
|
|
616
|
-
n.forEach((
|
|
617
|
-
A +=
|
|
616
|
+
n.forEach((L) => {
|
|
617
|
+
A += L + (p || 0);
|
|
618
618
|
}), A -= p;
|
|
619
|
-
const
|
|
620
|
-
if (A +
|
|
621
|
-
const
|
|
619
|
+
const M = (s.slidesOffsetBefore || 0) + (s.slidesOffsetAfter || 0);
|
|
620
|
+
if (A + M < r) {
|
|
621
|
+
const L = (r - A - M) / 2;
|
|
622
622
|
T.forEach((x, C) => {
|
|
623
|
-
T[C] = x -
|
|
623
|
+
T[C] = x - L;
|
|
624
624
|
}), g.forEach((x, C) => {
|
|
625
|
-
g[C] = x +
|
|
625
|
+
g[C] = x + L;
|
|
626
626
|
});
|
|
627
627
|
}
|
|
628
628
|
}
|
|
@@ -633,40 +633,40 @@ function Ht() {
|
|
|
633
633
|
slidesSizesGrid: n
|
|
634
634
|
}), s.centeredSlides && s.cssMode && !s.centeredSlidesBounds) {
|
|
635
635
|
xe(i, "--swiper-centered-offset-before", `${-T[0]}px`), xe(i, "--swiper-centered-offset-after", `${t.size / 2 - n[n.length - 1] / 2}px`);
|
|
636
|
-
const A = -t.snapGrid[0],
|
|
637
|
-
t.snapGrid = t.snapGrid.map((
|
|
636
|
+
const A = -t.snapGrid[0], M = -t.slidesGrid[0];
|
|
637
|
+
t.snapGrid = t.snapGrid.map((L) => L + A), t.slidesGrid = t.slidesGrid.map((L) => L + M);
|
|
638
638
|
}
|
|
639
639
|
if (m !== o && t.emit("slidesLengthChange"), T.length !== v && (t.params.watchOverflow && t.checkOverflow(), t.emit("snapGridLengthChange")), g.length !== h && t.emit("slidesGridLengthChange"), s.watchSlidesProgress && t.updateSlidesOffset(), t.emit("slidesUpdated"), !f && !s.cssMode && (s.effect === "slide" || s.effect === "fade")) {
|
|
640
|
-
const A = `${s.containerModifierClass}backface-hidden`,
|
|
641
|
-
m <= s.maxBackfaceHiddenSlides ?
|
|
640
|
+
const A = `${s.containerModifierClass}backface-hidden`, M = t.el.classList.contains(A);
|
|
641
|
+
m <= s.maxBackfaceHiddenSlides ? M || t.el.classList.add(A) : M && t.el.classList.remove(A);
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function Ft(t) {
|
|
645
645
|
const e = this, s = [], i = e.virtual && e.params.virtual.enabled;
|
|
646
646
|
let a = 0, r;
|
|
647
647
|
typeof t == "number" ? e.setTransition(t) : t === !0 && e.setTransition(e.params.speed);
|
|
648
|
-
const
|
|
648
|
+
const c = (d) => i ? e.slides[e.getSlideIndexByData(d)] : e.slides[d];
|
|
649
649
|
if (e.params.slidesPerView !== "auto" && e.params.slidesPerView > 1)
|
|
650
650
|
if (e.params.centeredSlides)
|
|
651
|
-
(e.visibleSlides || []).forEach((
|
|
652
|
-
s.push(
|
|
651
|
+
(e.visibleSlides || []).forEach((d) => {
|
|
652
|
+
s.push(d);
|
|
653
653
|
});
|
|
654
654
|
else
|
|
655
655
|
for (r = 0; r < Math.ceil(e.params.slidesPerView); r += 1) {
|
|
656
|
-
const
|
|
657
|
-
if (
|
|
658
|
-
s.push(d
|
|
656
|
+
const d = e.activeIndex + r;
|
|
657
|
+
if (d > e.slides.length && !i) break;
|
|
658
|
+
s.push(c(d));
|
|
659
659
|
}
|
|
660
660
|
else
|
|
661
|
-
s.push(
|
|
661
|
+
s.push(c(e.activeIndex));
|
|
662
662
|
for (r = 0; r < s.length; r += 1)
|
|
663
663
|
if (typeof s[r] < "u") {
|
|
664
|
-
const
|
|
665
|
-
a =
|
|
664
|
+
const d = s[r].offsetHeight;
|
|
665
|
+
a = d > a ? d : a;
|
|
666
666
|
}
|
|
667
667
|
(a || a === 0) && (e.wrapperEl.style.height = `${a}px`);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function Wt() {
|
|
670
670
|
const t = this, e = t.slides, s = t.isElement ? t.isHorizontal() ? t.wrapperEl.offsetLeft : t.wrapperEl.offsetTop : 0;
|
|
671
671
|
for (let i = 0; i < e.length; i += 1)
|
|
672
672
|
e[i].swiperSlideOffset = (t.isHorizontal() ? e[i].offsetLeft : e[i].offsetTop) - s - t.cssOverflowAdjustment();
|
|
@@ -674,7 +674,7 @@ function Ft() {
|
|
|
674
674
|
const dt = (t, e, s) => {
|
|
675
675
|
e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
|
|
676
676
|
};
|
|
677
|
-
function
|
|
677
|
+
function Yt(t) {
|
|
678
678
|
t === void 0 && (t = this && this.translate || 0);
|
|
679
679
|
const e = this, s = e.params, {
|
|
680
680
|
slides: i,
|
|
@@ -683,19 +683,19 @@ function Wt(t) {
|
|
|
683
683
|
} = e;
|
|
684
684
|
if (i.length === 0) return;
|
|
685
685
|
typeof i[0].swiperSlideOffset > "u" && e.updateSlidesOffset();
|
|
686
|
-
let
|
|
687
|
-
a && (
|
|
688
|
-
let
|
|
689
|
-
typeof
|
|
686
|
+
let c = -t;
|
|
687
|
+
a && (c = t), e.visibleSlidesIndexes = [], e.visibleSlides = [];
|
|
688
|
+
let d = s.spaceBetween;
|
|
689
|
+
typeof d == "string" && d.indexOf("%") >= 0 ? d = parseFloat(d.replace("%", "")) / 100 * e.size : typeof d == "string" && (d = parseFloat(d));
|
|
690
690
|
for (let f = 0; f < i.length; f += 1) {
|
|
691
691
|
const o = i[f];
|
|
692
692
|
let u = o.swiperSlideOffset;
|
|
693
693
|
s.cssMode && s.centeredSlides && (u -= i[0].swiperSlideOffset);
|
|
694
|
-
const m = (
|
|
694
|
+
const m = (c + (s.centeredSlides ? e.minTranslate() : 0) - u) / (o.swiperSlideSize + d), T = (c - r[0] + (s.centeredSlides ? e.minTranslate() : 0) - u) / (o.swiperSlideSize + d), g = -(c - u), n = g + e.slidesSizesGrid[f], l = g >= 0 && g <= e.size - e.slidesSizesGrid[f], w = g >= 0 && g < e.size - 1 || n > 1 && n <= e.size || g <= 0 && n >= e.size;
|
|
695
695
|
w && (e.visibleSlides.push(o), e.visibleSlidesIndexes.push(f)), dt(o, w, s.slideVisibleClass), dt(o, l, s.slideFullyVisibleClass), o.progress = a ? -m : m, o.originalProgress = a ? -T : T;
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function Xt(t) {
|
|
699
699
|
const e = this;
|
|
700
700
|
if (typeof t > "u") {
|
|
701
701
|
const u = e.rtlTranslate ? -1 : 1;
|
|
@@ -705,48 +705,48 @@ function Yt(t) {
|
|
|
705
705
|
let {
|
|
706
706
|
progress: a,
|
|
707
707
|
isBeginning: r,
|
|
708
|
-
isEnd:
|
|
709
|
-
progressLoop:
|
|
708
|
+
isEnd: c,
|
|
709
|
+
progressLoop: d
|
|
710
710
|
} = e;
|
|
711
|
-
const f = r, o =
|
|
711
|
+
const f = r, o = c;
|
|
712
712
|
if (i === 0)
|
|
713
|
-
a = 0, r = !0,
|
|
713
|
+
a = 0, r = !0, c = !0;
|
|
714
714
|
else {
|
|
715
715
|
a = (t - e.minTranslate()) / i;
|
|
716
716
|
const u = Math.abs(t - e.minTranslate()) < 1, m = Math.abs(t - e.maxTranslate()) < 1;
|
|
717
|
-
r = u || a <= 0,
|
|
717
|
+
r = u || a <= 0, c = m || a >= 1, u && (a = 0), m && (a = 1);
|
|
718
718
|
}
|
|
719
719
|
if (s.loop) {
|
|
720
720
|
const u = e.getSlideIndexByData(0), m = e.getSlideIndexByData(e.slides.length - 1), T = e.slidesGrid[u], g = e.slidesGrid[m], n = e.slidesGrid[e.slidesGrid.length - 1], l = Math.abs(t);
|
|
721
|
-
l >= T ?
|
|
721
|
+
l >= T ? d = (l - T) / n : d = (l + n - g) / n, d > 1 && (d -= 1);
|
|
722
722
|
}
|
|
723
723
|
Object.assign(e, {
|
|
724
724
|
progress: a,
|
|
725
|
-
progressLoop:
|
|
725
|
+
progressLoop: d,
|
|
726
726
|
isBeginning: r,
|
|
727
|
-
isEnd:
|
|
728
|
-
}), (s.watchSlidesProgress || s.centeredSlides && s.autoHeight) && e.updateSlidesProgress(t), r && !f && e.emit("reachBeginning toEdge"),
|
|
727
|
+
isEnd: c
|
|
728
|
+
}), (s.watchSlidesProgress || s.centeredSlides && s.autoHeight) && e.updateSlidesProgress(t), r && !f && e.emit("reachBeginning toEdge"), c && !o && e.emit("reachEnd toEdge"), (f && !r || o && !c) && e.emit("fromEdge"), e.emit("progress", a);
|
|
729
729
|
}
|
|
730
730
|
const Ke = (t, e, s) => {
|
|
731
731
|
e && !t.classList.contains(s) ? t.classList.add(s) : !e && t.classList.contains(s) && t.classList.remove(s);
|
|
732
732
|
};
|
|
733
|
-
function
|
|
733
|
+
function Ut() {
|
|
734
734
|
const t = this, {
|
|
735
735
|
slides: e,
|
|
736
736
|
params: s,
|
|
737
737
|
slidesEl: i,
|
|
738
738
|
activeIndex: a
|
|
739
|
-
} = t, r = t.virtual && s.virtual.enabled,
|
|
739
|
+
} = t, r = t.virtual && s.virtual.enabled, c = t.grid && s.grid && s.grid.rows > 1, d = (m) => j(i, `.${s.slideClass}${m}, swiper-slide${m}`)[0];
|
|
740
740
|
let f, o, u;
|
|
741
741
|
if (r)
|
|
742
742
|
if (s.loop) {
|
|
743
743
|
let m = a - t.virtual.slidesBefore;
|
|
744
|
-
m < 0 && (m = t.virtual.slides.length + m), m >= t.virtual.slides.length && (m -= t.virtual.slides.length), f =
|
|
744
|
+
m < 0 && (m = t.virtual.slides.length + m), m >= t.virtual.slides.length && (m -= t.virtual.slides.length), f = d(`[data-swiper-slide-index="${m}"]`);
|
|
745
745
|
} else
|
|
746
|
-
f =
|
|
746
|
+
f = d(`[data-swiper-slide-index="${a}"]`);
|
|
747
747
|
else
|
|
748
|
-
|
|
749
|
-
f && (
|
|
748
|
+
c ? (f = e.find((m) => m.column === a), u = e.find((m) => m.column === a + 1), o = e.find((m) => m.column === a - 1)) : f = e[a];
|
|
749
|
+
f && (c || (u = Dt(f, `.${s.slideClass}, swiper-slide`)[0], s.loop && !u && (u = e[0]), o = Pt(f, `.${s.slideClass}, swiper-slide`)[0], s.loop && !o === 0 && (o = e[e.length - 1]))), e.forEach((m) => {
|
|
750
750
|
Ke(m, m === f, s.slideActiveClass), Ke(m, m === u, s.slideNextClass), Ke(m, m === o, s.slidePrevClass);
|
|
751
751
|
}), t.emitSlidesClasses();
|
|
752
752
|
}
|
|
@@ -771,25 +771,25 @@ const ze = (t, e) => {
|
|
|
771
771
|
e = Math.min(e, s);
|
|
772
772
|
const i = t.params.slidesPerView === "auto" ? t.slidesPerViewDynamic() : Math.ceil(t.params.slidesPerView), a = t.activeIndex;
|
|
773
773
|
if (t.params.grid && t.params.grid.rows > 1) {
|
|
774
|
-
const
|
|
775
|
-
|
|
774
|
+
const c = a, d = [c - e];
|
|
775
|
+
d.push(...Array.from({
|
|
776
776
|
length: e
|
|
777
|
-
}).map((f, o) =>
|
|
778
|
-
|
|
777
|
+
}).map((f, o) => c + i + o)), t.slides.forEach((f, o) => {
|
|
778
|
+
d.includes(f.column) && Ze(t, o);
|
|
779
779
|
});
|
|
780
780
|
return;
|
|
781
781
|
}
|
|
782
782
|
const r = a + i - 1;
|
|
783
783
|
if (t.params.rewind || t.params.loop)
|
|
784
|
-
for (let
|
|
785
|
-
const
|
|
786
|
-
(
|
|
784
|
+
for (let c = a - e; c <= r + e; c += 1) {
|
|
785
|
+
const d = (c % s + s) % s;
|
|
786
|
+
(d < a || d > r) && Ze(t, d);
|
|
787
787
|
}
|
|
788
788
|
else
|
|
789
|
-
for (let
|
|
790
|
-
|
|
789
|
+
for (let c = Math.max(a - e, 0); c <= Math.min(r + e, s - 1); c += 1)
|
|
790
|
+
c !== a && (c > r || c < a) && Ze(t, c);
|
|
791
791
|
};
|
|
792
|
-
function
|
|
792
|
+
function qt(t) {
|
|
793
793
|
const {
|
|
794
794
|
slidesGrid: e,
|
|
795
795
|
params: s
|
|
@@ -799,27 +799,27 @@ function Ut(t) {
|
|
|
799
799
|
typeof e[r + 1] < "u" ? i >= e[r] && i < e[r + 1] - (e[r + 1] - e[r]) / 2 ? a = r : i >= e[r] && i < e[r + 1] && (a = r + 1) : i >= e[r] && (a = r);
|
|
800
800
|
return s.normalizeSlideIndex && (a < 0 || typeof a > "u") && (a = 0), a;
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function jt(t) {
|
|
803
803
|
const e = this, s = e.rtlTranslate ? e.translate : -e.translate, {
|
|
804
804
|
snapGrid: i,
|
|
805
805
|
params: a,
|
|
806
806
|
activeIndex: r,
|
|
807
|
-
realIndex:
|
|
808
|
-
snapIndex:
|
|
807
|
+
realIndex: c,
|
|
808
|
+
snapIndex: d
|
|
809
809
|
} = e;
|
|
810
810
|
let f = t, o;
|
|
811
811
|
const u = (g) => {
|
|
812
812
|
let n = g - e.virtual.slidesBefore;
|
|
813
813
|
return n < 0 && (n = e.virtual.slides.length + n), n >= e.virtual.slides.length && (n -= e.virtual.slides.length), n;
|
|
814
814
|
};
|
|
815
|
-
if (typeof f > "u" && (f =
|
|
815
|
+
if (typeof f > "u" && (f = qt(e)), i.indexOf(s) >= 0)
|
|
816
816
|
o = i.indexOf(s);
|
|
817
817
|
else {
|
|
818
818
|
const g = Math.min(a.slidesPerGroupSkip, f);
|
|
819
819
|
o = g + Math.floor((f - g) / a.slidesPerGroup);
|
|
820
820
|
}
|
|
821
821
|
if (o >= i.length && (o = i.length - 1), f === r && !e.params.loop) {
|
|
822
|
-
o !==
|
|
822
|
+
o !== d && (e.snapIndex = o, e.emit("snapIndexChange"));
|
|
823
823
|
return;
|
|
824
824
|
}
|
|
825
825
|
if (f === r && e.params.loop && e.virtual && e.params.virtual.enabled) {
|
|
@@ -840,48 +840,48 @@ function qt(t) {
|
|
|
840
840
|
} else
|
|
841
841
|
T = f;
|
|
842
842
|
Object.assign(e, {
|
|
843
|
-
previousSnapIndex:
|
|
843
|
+
previousSnapIndex: d,
|
|
844
844
|
snapIndex: o,
|
|
845
|
-
previousRealIndex:
|
|
845
|
+
previousRealIndex: c,
|
|
846
846
|
realIndex: T,
|
|
847
847
|
previousIndex: r,
|
|
848
848
|
activeIndex: f
|
|
849
|
-
}), e.initialized && st(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (
|
|
849
|
+
}), e.initialized && st(e), e.emit("activeIndexChange"), e.emit("snapIndexChange"), (e.initialized || e.params.runCallbacksOnInit) && (c !== T && e.emit("realIndexChange"), e.emit("slideChange"));
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function Kt(t, e) {
|
|
852
852
|
const s = this, i = s.params;
|
|
853
853
|
let a = t.closest(`.${i.slideClass}, swiper-slide`);
|
|
854
|
-
!a && s.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((
|
|
855
|
-
!a &&
|
|
854
|
+
!a && s.isElement && e && e.length > 1 && e.includes(t) && [...e.slice(e.indexOf(t) + 1, e.length)].forEach((d) => {
|
|
855
|
+
!a && d.matches && d.matches(`.${i.slideClass}, swiper-slide`) && (a = d);
|
|
856
856
|
});
|
|
857
|
-
let r = !1,
|
|
857
|
+
let r = !1, c;
|
|
858
858
|
if (a) {
|
|
859
|
-
for (let
|
|
860
|
-
if (s.slides[
|
|
861
|
-
r = !0,
|
|
859
|
+
for (let d = 0; d < s.slides.length; d += 1)
|
|
860
|
+
if (s.slides[d] === a) {
|
|
861
|
+
r = !0, c = d;
|
|
862
862
|
break;
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
865
|
if (a && r)
|
|
866
|
-
s.clickedSlide = a, s.virtual && s.params.virtual.enabled ? s.clickedIndex = parseInt(a.getAttribute("data-swiper-slide-index"), 10) : s.clickedIndex =
|
|
866
|
+
s.clickedSlide = a, s.virtual && s.params.virtual.enabled ? s.clickedIndex = parseInt(a.getAttribute("data-swiper-slide-index"), 10) : s.clickedIndex = c;
|
|
867
867
|
else {
|
|
868
868
|
s.clickedSlide = void 0, s.clickedIndex = void 0;
|
|
869
869
|
return;
|
|
870
870
|
}
|
|
871
871
|
i.slideToClickedSlide && s.clickedIndex !== void 0 && s.clickedIndex !== s.activeIndex && s.slideToClickedSlide();
|
|
872
872
|
}
|
|
873
|
-
var
|
|
874
|
-
updateSize:
|
|
875
|
-
updateSlides:
|
|
876
|
-
updateAutoHeight:
|
|
877
|
-
updateSlidesOffset:
|
|
878
|
-
updateSlidesProgress:
|
|
879
|
-
updateProgress:
|
|
880
|
-
updateSlidesClasses:
|
|
881
|
-
updateActiveIndex:
|
|
882
|
-
updateClickedSlide:
|
|
873
|
+
var Zt = {
|
|
874
|
+
updateSize: Ht,
|
|
875
|
+
updateSlides: Vt,
|
|
876
|
+
updateAutoHeight: Ft,
|
|
877
|
+
updateSlidesOffset: Wt,
|
|
878
|
+
updateSlidesProgress: Yt,
|
|
879
|
+
updateProgress: Xt,
|
|
880
|
+
updateSlidesClasses: Ut,
|
|
881
|
+
updateActiveIndex: jt,
|
|
882
|
+
updateClickedSlide: Kt
|
|
883
883
|
};
|
|
884
|
-
function
|
|
884
|
+
function Qt(t) {
|
|
885
885
|
t === void 0 && (t = this.isHorizontal() ? "x" : "y");
|
|
886
886
|
const e = this, {
|
|
887
887
|
params: s,
|
|
@@ -893,43 +893,43 @@ function Zt(t) {
|
|
|
893
893
|
return i ? -a : a;
|
|
894
894
|
if (s.cssMode)
|
|
895
895
|
return a;
|
|
896
|
-
let
|
|
897
|
-
return
|
|
896
|
+
let c = et(r, t);
|
|
897
|
+
return c += e.cssOverflowAdjustment(), i && (c = -c), c || 0;
|
|
898
898
|
}
|
|
899
|
-
function
|
|
899
|
+
function Jt(t, e) {
|
|
900
900
|
const s = this, {
|
|
901
901
|
rtlTranslate: i,
|
|
902
902
|
params: a,
|
|
903
903
|
wrapperEl: r,
|
|
904
|
-
progress:
|
|
904
|
+
progress: c
|
|
905
905
|
} = s;
|
|
906
|
-
let
|
|
906
|
+
let d = 0, f = 0;
|
|
907
907
|
const o = 0;
|
|
908
|
-
s.isHorizontal() ?
|
|
908
|
+
s.isHorizontal() ? d = i ? -t : t : f = t, a.roundLengths && (d = Math.floor(d), f = Math.floor(f)), s.previousTranslate = s.translate, s.translate = s.isHorizontal() ? d : f, a.cssMode ? r[s.isHorizontal() ? "scrollLeft" : "scrollTop"] = s.isHorizontal() ? -d : -f : a.virtualTranslate || (s.isHorizontal() ? d -= s.cssOverflowAdjustment() : f -= s.cssOverflowAdjustment(), r.style.transform = `translate3d(${d}px, ${f}px, ${o}px)`);
|
|
909
909
|
let u;
|
|
910
910
|
const m = s.maxTranslate() - s.minTranslate();
|
|
911
|
-
m === 0 ? u = 0 : u = (t - s.minTranslate()) / m, u !==
|
|
911
|
+
m === 0 ? u = 0 : u = (t - s.minTranslate()) / m, u !== c && s.updateProgress(t), s.emit("setTranslate", s.translate, e);
|
|
912
912
|
}
|
|
913
|
-
function
|
|
913
|
+
function es() {
|
|
914
914
|
return -this.snapGrid[0];
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function ts() {
|
|
917
917
|
return -this.snapGrid[this.snapGrid.length - 1];
|
|
918
918
|
}
|
|
919
|
-
function
|
|
919
|
+
function ss(t, e, s, i, a) {
|
|
920
920
|
t === void 0 && (t = 0), e === void 0 && (e = this.params.speed), s === void 0 && (s = !0), i === void 0 && (i = !0);
|
|
921
921
|
const r = this, {
|
|
922
|
-
params:
|
|
923
|
-
wrapperEl:
|
|
922
|
+
params: c,
|
|
923
|
+
wrapperEl: d
|
|
924
924
|
} = r;
|
|
925
|
-
if (r.animating &&
|
|
925
|
+
if (r.animating && c.preventInteractionOnTransition)
|
|
926
926
|
return !1;
|
|
927
927
|
const f = r.minTranslate(), o = r.maxTranslate();
|
|
928
928
|
let u;
|
|
929
|
-
if (i && t > f ? u = f : i && t < o ? u = o : u = t, r.updateProgress(u),
|
|
929
|
+
if (i && t > f ? u = f : i && t < o ? u = o : u = t, r.updateProgress(u), c.cssMode) {
|
|
930
930
|
const m = r.isHorizontal();
|
|
931
931
|
if (e === 0)
|
|
932
|
-
|
|
932
|
+
d[m ? "scrollLeft" : "scrollTop"] = -u;
|
|
933
933
|
else {
|
|
934
934
|
if (!r.support.smoothScroll)
|
|
935
935
|
return gt({
|
|
@@ -937,7 +937,7 @@ function ts(t, e, s, i, a) {
|
|
|
937
937
|
targetPosition: -u,
|
|
938
938
|
side: m ? "left" : "top"
|
|
939
939
|
}), !0;
|
|
940
|
-
|
|
940
|
+
d.scrollTo({
|
|
941
941
|
[m ? "left" : "top"]: -u,
|
|
942
942
|
behavior: "smooth"
|
|
943
943
|
});
|
|
@@ -948,14 +948,14 @@ function ts(t, e, s, i, a) {
|
|
|
948
948
|
!r || r.destroyed || T.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, r.animating = !1, s && r.emit("transitionEnd"));
|
|
949
949
|
}), r.wrapperEl.addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd))), !0;
|
|
950
950
|
}
|
|
951
|
-
var
|
|
952
|
-
getTranslate:
|
|
953
|
-
setTranslate:
|
|
954
|
-
minTranslate:
|
|
955
|
-
maxTranslate:
|
|
956
|
-
translateTo:
|
|
951
|
+
var is = {
|
|
952
|
+
getTranslate: Qt,
|
|
953
|
+
setTranslate: Jt,
|
|
954
|
+
minTranslate: es,
|
|
955
|
+
maxTranslate: ts,
|
|
956
|
+
translateTo: ss
|
|
957
957
|
};
|
|
958
|
-
function
|
|
958
|
+
function as(t, e) {
|
|
959
959
|
const s = this;
|
|
960
960
|
s.params.cssMode || (s.wrapperEl.style.transitionDuration = `${t}ms`, s.wrapperEl.style.transitionDelay = t === 0 ? "0ms" : ""), s.emit("setTransition", t, e);
|
|
961
961
|
}
|
|
@@ -968,12 +968,12 @@ function Et(t) {
|
|
|
968
968
|
} = t;
|
|
969
969
|
const {
|
|
970
970
|
activeIndex: r,
|
|
971
|
-
previousIndex:
|
|
971
|
+
previousIndex: c
|
|
972
972
|
} = e;
|
|
973
|
-
let
|
|
974
|
-
|
|
973
|
+
let d = i;
|
|
974
|
+
d || (r > c ? d = "next" : r < c ? d = "prev" : d = "reset"), e.emit(`transition${a}`), s && d === "reset" ? e.emit(`slideResetTransition${a}`) : s && r !== c && (e.emit(`slideChangeTransition${a}`), d === "next" ? e.emit(`slideNextTransition${a}`) : e.emit(`slidePrevTransition${a}`));
|
|
975
975
|
}
|
|
976
|
-
function
|
|
976
|
+
function rs(t, e) {
|
|
977
977
|
t === void 0 && (t = !0);
|
|
978
978
|
const s = this, {
|
|
979
979
|
params: i
|
|
@@ -985,7 +985,7 @@ function as(t, e) {
|
|
|
985
985
|
step: "Start"
|
|
986
986
|
}));
|
|
987
987
|
}
|
|
988
|
-
function
|
|
988
|
+
function ns(t, e) {
|
|
989
989
|
t === void 0 && (t = !0);
|
|
990
990
|
const s = this, {
|
|
991
991
|
params: i
|
|
@@ -997,18 +997,18 @@ function rs(t, e) {
|
|
|
997
997
|
step: "End"
|
|
998
998
|
}));
|
|
999
999
|
}
|
|
1000
|
-
var
|
|
1001
|
-
setTransition:
|
|
1002
|
-
transitionStart:
|
|
1003
|
-
transitionEnd:
|
|
1000
|
+
var ls = {
|
|
1001
|
+
setTransition: as,
|
|
1002
|
+
transitionStart: rs,
|
|
1003
|
+
transitionEnd: ns
|
|
1004
1004
|
};
|
|
1005
|
-
function
|
|
1005
|
+
function os(t, e, s, i, a) {
|
|
1006
1006
|
t === void 0 && (t = 0), s === void 0 && (s = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
1007
1007
|
const r = this;
|
|
1008
|
-
let
|
|
1009
|
-
|
|
1008
|
+
let c = t;
|
|
1009
|
+
c < 0 && (c = 0);
|
|
1010
1010
|
const {
|
|
1011
|
-
params:
|
|
1011
|
+
params: d,
|
|
1012
1012
|
snapGrid: f,
|
|
1013
1013
|
slidesGrid: o,
|
|
1014
1014
|
previousIndex: u,
|
|
@@ -1017,27 +1017,27 @@ function ls(t, e, s, i, a) {
|
|
|
1017
1017
|
wrapperEl: g,
|
|
1018
1018
|
enabled: n
|
|
1019
1019
|
} = r;
|
|
1020
|
-
if (!n && !i && !a || r.destroyed || r.animating &&
|
|
1020
|
+
if (!n && !i && !a || r.destroyed || r.animating && d.preventInteractionOnTransition)
|
|
1021
1021
|
return !1;
|
|
1022
1022
|
typeof e > "u" && (e = r.params.speed);
|
|
1023
|
-
const l = Math.min(r.params.slidesPerGroupSkip,
|
|
1024
|
-
let w = l + Math.floor((
|
|
1023
|
+
const l = Math.min(r.params.slidesPerGroupSkip, c);
|
|
1024
|
+
let w = l + Math.floor((c - l) / r.params.slidesPerGroup);
|
|
1025
1025
|
w >= f.length && (w = f.length - 1);
|
|
1026
1026
|
const v = -f[w];
|
|
1027
|
-
if (
|
|
1027
|
+
if (d.normalizeSlideIndex)
|
|
1028
1028
|
for (let I = 0; I < o.length; I += 1) {
|
|
1029
1029
|
const R = -Math.floor(v * 100), _ = Math.floor(o[I] * 100), A = Math.floor(o[I + 1] * 100);
|
|
1030
|
-
typeof o[I + 1] < "u" ? R >= _ && R < A - (A - _) / 2 ?
|
|
1030
|
+
typeof o[I + 1] < "u" ? R >= _ && R < A - (A - _) / 2 ? c = I : R >= _ && R < A && (c = I + 1) : R >= _ && (c = I);
|
|
1031
1031
|
}
|
|
1032
|
-
if (r.initialized &&
|
|
1032
|
+
if (r.initialized && c !== m && (!r.allowSlideNext && (T ? v > r.translate && v > r.minTranslate() : v < r.translate && v < r.minTranslate()) || !r.allowSlidePrev && v > r.translate && v > r.maxTranslate() && (m || 0) !== c))
|
|
1033
1033
|
return !1;
|
|
1034
|
-
|
|
1034
|
+
c !== (u || 0) && s && r.emit("beforeSlideChangeStart"), r.updateProgress(v);
|
|
1035
1035
|
let h;
|
|
1036
|
-
|
|
1036
|
+
c > m ? h = "next" : c < m ? h = "prev" : h = "reset";
|
|
1037
1037
|
const p = r.virtual && r.params.virtual.enabled;
|
|
1038
1038
|
if (!(p && a) && (T && -v === r.translate || !T && v === r.translate))
|
|
1039
|
-
return r.updateActiveIndex(
|
|
1040
|
-
if (
|
|
1039
|
+
return r.updateActiveIndex(c), d.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), d.effect !== "slide" && r.setTranslate(v), h !== "reset" && (r.transitionStart(s, h), r.transitionEnd(s, h)), !1;
|
|
1040
|
+
if (d.cssMode) {
|
|
1041
1041
|
const I = r.isHorizontal(), R = T ? v : -v;
|
|
1042
1042
|
if (e === 0)
|
|
1043
1043
|
p && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), p && !r._cssModeVirtualInitialSet && r.params.initialSlide > 0 ? (r._cssModeVirtualInitialSet = !0, requestAnimationFrame(() => {
|
|
@@ -1060,66 +1060,66 @@ function ls(t, e, s, i, a) {
|
|
|
1060
1060
|
return !0;
|
|
1061
1061
|
}
|
|
1062
1062
|
const O = vt().isSafari;
|
|
1063
|
-
return p && !a && O && r.isElement && r.virtual.update(!1, !1,
|
|
1063
|
+
return p && !a && O && r.isElement && r.virtual.update(!1, !1, c), r.setTransition(e), r.setTranslate(v), r.updateActiveIndex(c), r.updateSlidesClasses(), r.emit("beforeTransitionStart", e, i), r.transitionStart(s, h), e === 0 ? r.transitionEnd(s, h) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(R) {
|
|
1064
1064
|
!r || r.destroyed || R.target === this && (r.wrapperEl.removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(s, h));
|
|
1065
1065
|
}), r.wrapperEl.addEventListener("transitionend", r.onSlideToWrapperTransitionEnd)), !0;
|
|
1066
1066
|
}
|
|
1067
|
-
function
|
|
1067
|
+
function ds(t, e, s, i) {
|
|
1068
1068
|
t === void 0 && (t = 0), s === void 0 && (s = !0), typeof t == "string" && (t = parseInt(t, 10));
|
|
1069
1069
|
const a = this;
|
|
1070
1070
|
if (a.destroyed) return;
|
|
1071
1071
|
typeof e > "u" && (e = a.params.speed);
|
|
1072
1072
|
const r = a.grid && a.params.grid && a.params.grid.rows > 1;
|
|
1073
|
-
let
|
|
1073
|
+
let c = t;
|
|
1074
1074
|
if (a.params.loop)
|
|
1075
1075
|
if (a.virtual && a.params.virtual.enabled)
|
|
1076
|
-
|
|
1076
|
+
c = c + a.virtual.slidesBefore;
|
|
1077
1077
|
else {
|
|
1078
|
-
let
|
|
1078
|
+
let d;
|
|
1079
1079
|
if (r) {
|
|
1080
|
-
const T =
|
|
1081
|
-
|
|
1080
|
+
const T = c * a.params.grid.rows;
|
|
1081
|
+
d = a.slides.find((g) => g.getAttribute("data-swiper-slide-index") * 1 === T).column;
|
|
1082
1082
|
} else
|
|
1083
|
-
|
|
1083
|
+
d = a.getSlideIndexByData(c);
|
|
1084
1084
|
const f = r ? Math.ceil(a.slides.length / a.params.grid.rows) : a.slides.length, {
|
|
1085
1085
|
centeredSlides: o
|
|
1086
1086
|
} = a.params;
|
|
1087
1087
|
let u = a.params.slidesPerView;
|
|
1088
1088
|
u === "auto" ? u = a.slidesPerViewDynamic() : (u = Math.ceil(parseFloat(a.params.slidesPerView, 10)), o && u % 2 === 0 && (u = u + 1));
|
|
1089
|
-
let m = f -
|
|
1090
|
-
if (o && (m = m ||
|
|
1091
|
-
const T = o ?
|
|
1089
|
+
let m = f - d < u;
|
|
1090
|
+
if (o && (m = m || d < Math.ceil(u / 2)), i && o && a.params.slidesPerView !== "auto" && !r && (m = !1), m) {
|
|
1091
|
+
const T = o ? d < a.activeIndex ? "prev" : "next" : d - a.activeIndex - 1 < a.params.slidesPerView ? "next" : "prev";
|
|
1092
1092
|
a.loopFix({
|
|
1093
1093
|
direction: T,
|
|
1094
1094
|
slideTo: !0,
|
|
1095
|
-
activeSlideIndex: T === "next" ?
|
|
1095
|
+
activeSlideIndex: T === "next" ? d + 1 : d - f + 1,
|
|
1096
1096
|
slideRealIndex: T === "next" ? a.realIndex : void 0
|
|
1097
1097
|
});
|
|
1098
1098
|
}
|
|
1099
1099
|
if (r) {
|
|
1100
|
-
const T =
|
|
1101
|
-
|
|
1100
|
+
const T = c * a.params.grid.rows;
|
|
1101
|
+
c = a.slides.find((g) => g.getAttribute("data-swiper-slide-index") * 1 === T).column;
|
|
1102
1102
|
} else
|
|
1103
|
-
|
|
1103
|
+
c = a.getSlideIndexByData(c);
|
|
1104
1104
|
}
|
|
1105
1105
|
return requestAnimationFrame(() => {
|
|
1106
|
-
a.slideTo(
|
|
1106
|
+
a.slideTo(c, e, s, i);
|
|
1107
1107
|
}), a;
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1109
|
+
function cs(t, e, s) {
|
|
1110
1110
|
e === void 0 && (e = !0);
|
|
1111
1111
|
const i = this, {
|
|
1112
1112
|
enabled: a,
|
|
1113
1113
|
params: r,
|
|
1114
|
-
animating:
|
|
1114
|
+
animating: c
|
|
1115
1115
|
} = i;
|
|
1116
1116
|
if (!a || i.destroyed) return i;
|
|
1117
1117
|
typeof t > "u" && (t = i.params.speed);
|
|
1118
|
-
let
|
|
1119
|
-
r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (
|
|
1120
|
-
const f = i.activeIndex < r.slidesPerGroupSkip ? 1 :
|
|
1118
|
+
let d = r.slidesPerGroup;
|
|
1119
|
+
r.slidesPerView === "auto" && r.slidesPerGroup === 1 && r.slidesPerGroupAuto && (d = Math.max(i.slidesPerViewDynamic("current", !0), 1));
|
|
1120
|
+
const f = i.activeIndex < r.slidesPerGroupSkip ? 1 : d, o = i.virtual && r.virtual.enabled;
|
|
1121
1121
|
if (r.loop) {
|
|
1122
|
-
if (
|
|
1122
|
+
if (c && !o && r.loopPreventsSliding) return !1;
|
|
1123
1123
|
if (i.loopFix({
|
|
1124
1124
|
direction: "next"
|
|
1125
1125
|
}), i._clientLeft = i.wrapperEl.clientLeft, i.activeIndex === i.slides.length - 1 && r.cssMode)
|
|
@@ -1129,13 +1129,13 @@ function ds(t, e, s) {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
return r.rewind && i.isEnd ? i.slideTo(0, t, e, s) : i.slideTo(i.activeIndex + f, t, e, s);
|
|
1131
1131
|
}
|
|
1132
|
-
function
|
|
1132
|
+
function fs(t, e, s) {
|
|
1133
1133
|
e === void 0 && (e = !0);
|
|
1134
1134
|
const i = this, {
|
|
1135
1135
|
params: a,
|
|
1136
1136
|
snapGrid: r,
|
|
1137
|
-
slidesGrid:
|
|
1138
|
-
rtlTranslate:
|
|
1137
|
+
slidesGrid: c,
|
|
1138
|
+
rtlTranslate: d,
|
|
1139
1139
|
enabled: f,
|
|
1140
1140
|
animating: o
|
|
1141
1141
|
} = i;
|
|
@@ -1148,7 +1148,7 @@ function cs(t, e, s) {
|
|
|
1148
1148
|
direction: "prev"
|
|
1149
1149
|
}), i._clientLeft = i.wrapperEl.clientLeft;
|
|
1150
1150
|
}
|
|
1151
|
-
const m =
|
|
1151
|
+
const m = d ? i.translate : -i.translate;
|
|
1152
1152
|
function T(h) {
|
|
1153
1153
|
return h < 0 ? -Math.floor(Math.abs(h)) : Math.floor(h);
|
|
1154
1154
|
}
|
|
@@ -1161,7 +1161,7 @@ function cs(t, e, s) {
|
|
|
1161
1161
|
}), typeof h < "u" && (w = l ? r[h] : r[h > 0 ? h - 1 : h]);
|
|
1162
1162
|
}
|
|
1163
1163
|
let v = 0;
|
|
1164
|
-
if (typeof w < "u" && (v =
|
|
1164
|
+
if (typeof w < "u" && (v = c.indexOf(w), v < 0 && (v = i.activeIndex - 1), a.slidesPerView === "auto" && a.slidesPerGroup === 1 && a.slidesPerGroupAuto && (v = v - i.slidesPerViewDynamic("previous", !0) + 1, v = Math.max(v, 0))), a.rewind && i.isBeginning) {
|
|
1165
1165
|
const h = i.params.virtual && i.params.virtual.enabled && i.virtual ? i.virtual.slides.length - 1 : i.slides.length - 1;
|
|
1166
1166
|
return i.slideTo(h, t, e, s);
|
|
1167
1167
|
} else if (a.loop && i.activeIndex === 0 && a.cssMode)
|
|
@@ -1170,29 +1170,29 @@ function cs(t, e, s) {
|
|
|
1170
1170
|
}), !0;
|
|
1171
1171
|
return i.slideTo(v, t, e, s);
|
|
1172
1172
|
}
|
|
1173
|
-
function
|
|
1173
|
+
function us(t, e, s) {
|
|
1174
1174
|
e === void 0 && (e = !0);
|
|
1175
1175
|
const i = this;
|
|
1176
1176
|
if (!i.destroyed)
|
|
1177
1177
|
return typeof t > "u" && (t = i.params.speed), i.slideTo(i.activeIndex, t, e, s);
|
|
1178
1178
|
}
|
|
1179
|
-
function
|
|
1179
|
+
function ps(t, e, s, i) {
|
|
1180
1180
|
e === void 0 && (e = !0), i === void 0 && (i = 0.5);
|
|
1181
1181
|
const a = this;
|
|
1182
1182
|
if (a.destroyed) return;
|
|
1183
1183
|
typeof t > "u" && (t = a.params.speed);
|
|
1184
1184
|
let r = a.activeIndex;
|
|
1185
|
-
const
|
|
1186
|
-
if (f >= a.snapGrid[
|
|
1187
|
-
const o = a.snapGrid[
|
|
1185
|
+
const c = Math.min(a.params.slidesPerGroupSkip, r), d = c + Math.floor((r - c) / a.params.slidesPerGroup), f = a.rtlTranslate ? a.translate : -a.translate;
|
|
1186
|
+
if (f >= a.snapGrid[d]) {
|
|
1187
|
+
const o = a.snapGrid[d], u = a.snapGrid[d + 1];
|
|
1188
1188
|
f - o > (u - o) * i && (r += a.params.slidesPerGroup);
|
|
1189
1189
|
} else {
|
|
1190
|
-
const o = a.snapGrid[
|
|
1190
|
+
const o = a.snapGrid[d - 1], u = a.snapGrid[d];
|
|
1191
1191
|
f - o <= (u - o) * i && (r -= a.params.slidesPerGroup);
|
|
1192
1192
|
}
|
|
1193
1193
|
return r = Math.max(r, 0), r = Math.min(r, a.slidesGrid.length - 1), a.slideTo(r, t, e, s);
|
|
1194
1194
|
}
|
|
1195
|
-
function
|
|
1195
|
+
function ms() {
|
|
1196
1196
|
const t = this;
|
|
1197
1197
|
if (t.destroyed) return;
|
|
1198
1198
|
const {
|
|
@@ -1200,25 +1200,25 @@ function ps() {
|
|
|
1200
1200
|
slidesEl: s
|
|
1201
1201
|
} = t, i = e.slidesPerView === "auto" ? t.slidesPerViewDynamic() : e.slidesPerView;
|
|
1202
1202
|
let a = t.getSlideIndexWhenGrid(t.clickedIndex), r;
|
|
1203
|
-
const
|
|
1203
|
+
const c = t.isElement ? "swiper-slide" : `.${e.slideClass}`, d = t.grid && t.params.grid && t.params.grid.rows > 1;
|
|
1204
1204
|
if (e.loop) {
|
|
1205
1205
|
if (t.animating) return;
|
|
1206
|
-
r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? t.slideToLoop(r) : a > (
|
|
1206
|
+
r = parseInt(t.clickedSlide.getAttribute("data-swiper-slide-index"), 10), e.centeredSlides ? t.slideToLoop(r) : a > (d ? (t.slides.length - i) / 2 - (t.params.grid.rows - 1) : t.slides.length - i) ? (t.loopFix(), a = t.getSlideIndex(j(s, `${c}[data-swiper-slide-index="${r}"]`)[0]), Te(() => {
|
|
1207
1207
|
t.slideTo(a);
|
|
1208
1208
|
})) : t.slideTo(a);
|
|
1209
1209
|
} else
|
|
1210
1210
|
t.slideTo(a);
|
|
1211
1211
|
}
|
|
1212
|
-
var
|
|
1213
|
-
slideTo:
|
|
1214
|
-
slideToLoop:
|
|
1215
|
-
slideNext:
|
|
1216
|
-
slidePrev:
|
|
1217
|
-
slideReset:
|
|
1218
|
-
slideToClosest:
|
|
1219
|
-
slideToClickedSlide:
|
|
1212
|
+
var hs = {
|
|
1213
|
+
slideTo: os,
|
|
1214
|
+
slideToLoop: ds,
|
|
1215
|
+
slideNext: cs,
|
|
1216
|
+
slidePrev: fs,
|
|
1217
|
+
slideReset: us,
|
|
1218
|
+
slideToClosest: ps,
|
|
1219
|
+
slideToClickedSlide: ms
|
|
1220
1220
|
};
|
|
1221
|
-
function
|
|
1221
|
+
function gs(t, e) {
|
|
1222
1222
|
const s = this, {
|
|
1223
1223
|
params: i,
|
|
1224
1224
|
slidesEl: a
|
|
@@ -1228,14 +1228,14 @@ function hs(t, e) {
|
|
|
1228
1228
|
j(a, `.${i.slideClass}, swiper-slide`).forEach((g, n) => {
|
|
1229
1229
|
g.setAttribute("data-swiper-slide-index", n);
|
|
1230
1230
|
});
|
|
1231
|
-
},
|
|
1231
|
+
}, c = () => {
|
|
1232
1232
|
const T = j(a, `.${i.slideBlankClass}`);
|
|
1233
1233
|
T.forEach((g) => {
|
|
1234
1234
|
g.remove();
|
|
1235
1235
|
}), T.length > 0 && (s.recalcSlides(), s.updateSlides());
|
|
1236
|
-
},
|
|
1237
|
-
i.loopAddBlankSlides && (i.slidesPerGroup > 1 ||
|
|
1238
|
-
const f = i.slidesPerGroup * (
|
|
1236
|
+
}, d = s.grid && i.grid && i.grid.rows > 1;
|
|
1237
|
+
i.loopAddBlankSlides && (i.slidesPerGroup > 1 || d) && c();
|
|
1238
|
+
const f = i.slidesPerGroup * (d ? i.grid.rows : 1), o = s.slides.length % f !== 0, u = d && s.slides.length % i.grid.rows !== 0, m = (T) => {
|
|
1239
1239
|
for (let g = 0; g < T; g += 1) {
|
|
1240
1240
|
const n = s.isElement ? ee("swiper-slide", [i.slideBlankClass]) : ee("div", [i.slideClass, i.slideBlankClass]);
|
|
1241
1241
|
s.slidesEl.append(n);
|
|
@@ -1263,15 +1263,15 @@ function hs(t, e) {
|
|
|
1263
1263
|
initial: e
|
|
1264
1264
|
});
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function ws(t) {
|
|
1267
1267
|
let {
|
|
1268
1268
|
slideRealIndex: e,
|
|
1269
1269
|
slideTo: s = !0,
|
|
1270
1270
|
direction: i,
|
|
1271
1271
|
setTranslate: a,
|
|
1272
1272
|
activeSlideIndex: r,
|
|
1273
|
-
initial:
|
|
1274
|
-
byController:
|
|
1273
|
+
initial: c,
|
|
1274
|
+
byController: d,
|
|
1275
1275
|
byMousewheel: f
|
|
1276
1276
|
} = t === void 0 ? {} : t;
|
|
1277
1277
|
const o = this;
|
|
@@ -1298,14 +1298,14 @@ function gs(t) {
|
|
|
1298
1298
|
p % h !== 0 && (p += h - p % h), p += n.loopAdditionalSlides, o.loopedSlides = p;
|
|
1299
1299
|
const E = o.grid && n.grid && n.grid.rows > 1;
|
|
1300
1300
|
u.length < v + p || o.params.effect === "cards" && u.length < v + p * 2 ? Ge("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") : E && n.grid.fill === "row" && Ge("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
|
|
1301
|
-
const b = [], O = [], I = E ? Math.ceil(u.length / n.grid.rows) : u.length, R =
|
|
1301
|
+
const b = [], O = [], I = E ? Math.ceil(u.length / n.grid.rows) : u.length, R = c && I - w < v && !l;
|
|
1302
1302
|
let _ = R ? w : o.activeIndex;
|
|
1303
1303
|
typeof r > "u" ? r = o.getSlideIndex(u.find(($) => $.classList.contains(n.slideActiveClass))) : _ = r;
|
|
1304
|
-
const A = i === "next" || !i,
|
|
1305
|
-
let
|
|
1304
|
+
const A = i === "next" || !i, M = i === "prev" || !i;
|
|
1305
|
+
let L = 0, x = 0;
|
|
1306
1306
|
const N = (E ? u[r].column : r) + (l && typeof a > "u" ? -v / 2 + 0.5 : 0);
|
|
1307
1307
|
if (N < p) {
|
|
1308
|
-
|
|
1308
|
+
L = Math.max(p - N, h);
|
|
1309
1309
|
for (let $ = 0; $ < p - N; $ += 1) {
|
|
1310
1310
|
const S = $ - Math.floor($ / I) * I;
|
|
1311
1311
|
if (E) {
|
|
@@ -1326,17 +1326,17 @@ function gs(t) {
|
|
|
1326
1326
|
}
|
|
1327
1327
|
if (o.__preventObserver__ = !0, requestAnimationFrame(() => {
|
|
1328
1328
|
o.__preventObserver__ = !1;
|
|
1329
|
-
}), o.params.effect === "cards" && u.length < v + p * 2 && (O.includes(r) && O.splice(O.indexOf(r), 1), b.includes(r) && b.splice(b.indexOf(r), 1)),
|
|
1329
|
+
}), o.params.effect === "cards" && u.length < v + p * 2 && (O.includes(r) && O.splice(O.indexOf(r), 1), b.includes(r) && b.splice(b.indexOf(r), 1)), M && b.forEach(($) => {
|
|
1330
1330
|
u[$].swiperLoopMoveDOM = !0, g.prepend(u[$]), u[$].swiperLoopMoveDOM = !1;
|
|
1331
1331
|
}), A && O.forEach(($) => {
|
|
1332
1332
|
u[$].swiperLoopMoveDOM = !0, g.append(u[$]), u[$].swiperLoopMoveDOM = !1;
|
|
1333
|
-
}), o.recalcSlides(), n.slidesPerView === "auto" ? o.updateSlides() : E && (b.length > 0 &&
|
|
1333
|
+
}), o.recalcSlides(), n.slidesPerView === "auto" ? o.updateSlides() : E && (b.length > 0 && M || O.length > 0 && A) && o.slides.forEach(($, S) => {
|
|
1334
1334
|
o.grid.updateSlide(S, $, o.slides);
|
|
1335
1335
|
}), n.watchSlidesProgress && o.updateSlidesOffset(), s) {
|
|
1336
|
-
if (b.length > 0 &&
|
|
1336
|
+
if (b.length > 0 && M) {
|
|
1337
1337
|
if (typeof e > "u") {
|
|
1338
|
-
const $ = o.slidesGrid[_], y = o.slidesGrid[_ +
|
|
1339
|
-
f ? o.setTranslate(o.translate - y) : (o.slideTo(_ + Math.ceil(
|
|
1338
|
+
const $ = o.slidesGrid[_], y = o.slidesGrid[_ + L] - $;
|
|
1339
|
+
f ? o.setTranslate(o.translate - y) : (o.slideTo(_ + Math.ceil(L), 0, !1, !0), a && (o.touchEventsData.startTranslate = o.touchEventsData.startTranslate - y, o.touchEventsData.currentTranslate = o.touchEventsData.currentTranslate - y));
|
|
1340
1340
|
} else if (a) {
|
|
1341
1341
|
const $ = E ? b.length / n.grid.rows : b.length;
|
|
1342
1342
|
o.slideTo(o.activeIndex + $, 0, !1, !0), o.touchEventsData.currentTranslate = o.translate;
|
|
@@ -1350,7 +1350,7 @@ function gs(t) {
|
|
|
1350
1350
|
o.slideTo(o.activeIndex - $, 0, !1, !0);
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
|
-
if (o.allowSlidePrev = m, o.allowSlideNext = T, o.controller && o.controller.control && !
|
|
1353
|
+
if (o.allowSlidePrev = m, o.allowSlideNext = T, o.controller && o.controller.control && !d) {
|
|
1354
1354
|
const $ = {
|
|
1355
1355
|
slideRealIndex: e,
|
|
1356
1356
|
direction: i,
|
|
@@ -1370,7 +1370,7 @@ function gs(t) {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
o.emit("loopFix");
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Ts() {
|
|
1374
1374
|
const t = this, {
|
|
1375
1375
|
params: e,
|
|
1376
1376
|
slidesEl: s
|
|
@@ -1387,12 +1387,12 @@ function ws() {
|
|
|
1387
1387
|
s.append(a);
|
|
1388
1388
|
}), t.recalcSlides(), t.slideTo(t.realIndex, 0);
|
|
1389
1389
|
}
|
|
1390
|
-
var
|
|
1391
|
-
loopCreate:
|
|
1392
|
-
loopFix:
|
|
1393
|
-
loopDestroy:
|
|
1390
|
+
var vs = {
|
|
1391
|
+
loopCreate: gs,
|
|
1392
|
+
loopFix: ws,
|
|
1393
|
+
loopDestroy: Ts
|
|
1394
1394
|
};
|
|
1395
|
-
function
|
|
1395
|
+
function Es(t) {
|
|
1396
1396
|
const e = this;
|
|
1397
1397
|
if (!e.params.simulateTouch || e.params.watchOverflow && e.isLocked || e.params.cssMode) return;
|
|
1398
1398
|
const s = e.params.touchEventsTarget === "container" ? e.el : e.wrapperEl;
|
|
@@ -1400,17 +1400,17 @@ function vs(t) {
|
|
|
1400
1400
|
e.__preventObserver__ = !1;
|
|
1401
1401
|
});
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1403
|
+
function Ss() {
|
|
1404
1404
|
const t = this;
|
|
1405
1405
|
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(() => {
|
|
1406
1406
|
t.__preventObserver__ = !1;
|
|
1407
1407
|
}));
|
|
1408
1408
|
}
|
|
1409
|
-
var
|
|
1410
|
-
setGrabCursor:
|
|
1411
|
-
unsetGrabCursor:
|
|
1409
|
+
var bs = {
|
|
1410
|
+
setGrabCursor: Es,
|
|
1411
|
+
unsetGrabCursor: Ss
|
|
1412
1412
|
};
|
|
1413
|
-
function
|
|
1413
|
+
function ys(t, e) {
|
|
1414
1414
|
e === void 0 && (e = this);
|
|
1415
1415
|
function s(i) {
|
|
1416
1416
|
if (!i || i === q() || i === Y()) return null;
|
|
@@ -1423,10 +1423,10 @@ function bs(t, e) {
|
|
|
1423
1423
|
function ct(t, e, s) {
|
|
1424
1424
|
const i = Y(), {
|
|
1425
1425
|
params: a
|
|
1426
|
-
} = t, r = a.edgeSwipeDetection,
|
|
1427
|
-
return r && (s <=
|
|
1426
|
+
} = t, r = a.edgeSwipeDetection, c = a.edgeSwipeThreshold;
|
|
1427
|
+
return r && (s <= c || s >= i.innerWidth - c) ? r === "prevent" ? (e.preventDefault(), !0) : !1 : !0;
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function As(t) {
|
|
1430
1430
|
const e = this, s = q();
|
|
1431
1431
|
let i = t;
|
|
1432
1432
|
i.originalEvent && (i = i.originalEvent);
|
|
@@ -1442,25 +1442,25 @@ function ys(t) {
|
|
|
1442
1442
|
}
|
|
1443
1443
|
const {
|
|
1444
1444
|
params: r,
|
|
1445
|
-
touches:
|
|
1446
|
-
enabled:
|
|
1445
|
+
touches: c,
|
|
1446
|
+
enabled: d
|
|
1447
1447
|
} = e;
|
|
1448
|
-
if (!
|
|
1448
|
+
if (!d || !r.simulateTouch && i.pointerType === "mouse" || e.animating && r.preventInteractionOnTransition)
|
|
1449
1449
|
return;
|
|
1450
1450
|
!e.animating && r.cssMode && r.loop && e.loopFix();
|
|
1451
1451
|
let f = i.target;
|
|
1452
|
-
if (r.touchEventsTarget === "wrapper" && !
|
|
1452
|
+
if (r.touchEventsTarget === "wrapper" && !Ot(f, e.wrapperEl) || "which" in i && i.which === 3 || "button" in i && i.button > 0 || a.isTouched && a.isMoved) return;
|
|
1453
1453
|
const o = !!r.noSwipingClass && r.noSwipingClass !== "", u = i.composedPath ? i.composedPath() : i.path;
|
|
1454
1454
|
o && i.target && i.target.shadowRoot && u && (f = u[0]);
|
|
1455
1455
|
const m = r.noSwipingSelector ? r.noSwipingSelector : `.${r.noSwipingClass}`, T = !!(i.target && i.target.shadowRoot);
|
|
1456
|
-
if (r.noSwiping && (T ?
|
|
1456
|
+
if (r.noSwiping && (T ? ys(m, f) : f.closest(m))) {
|
|
1457
1457
|
e.allowClick = !0;
|
|
1458
1458
|
return;
|
|
1459
1459
|
}
|
|
1460
1460
|
if (r.swipeHandler && !f.closest(r.swipeHandler))
|
|
1461
1461
|
return;
|
|
1462
|
-
|
|
1463
|
-
const g =
|
|
1462
|
+
c.currentX = i.pageX, c.currentY = i.pageY;
|
|
1463
|
+
const g = c.currentX, n = c.currentY;
|
|
1464
1464
|
if (!ct(e, i, g))
|
|
1465
1465
|
return;
|
|
1466
1466
|
Object.assign(a, {
|
|
@@ -1469,20 +1469,20 @@ function ys(t) {
|
|
|
1469
1469
|
allowTouchCallbacks: !0,
|
|
1470
1470
|
isScrolling: void 0,
|
|
1471
1471
|
startMoving: void 0
|
|
1472
|
-
}),
|
|
1472
|
+
}), c.startX = g, c.startY = n, a.touchStartTime = te(), e.allowClick = !0, e.updateSize(), e.swipeDirection = void 0, r.threshold > 0 && (a.allowThresholdMove = !1);
|
|
1473
1473
|
let l = !0;
|
|
1474
1474
|
f.matches(a.focusableElements) && (l = !1, f.nodeName === "SELECT" && (a.isTouched = !1)), s.activeElement && s.activeElement.matches(a.focusableElements) && s.activeElement !== f && (i.pointerType === "mouse" || i.pointerType !== "mouse" && !f.matches(a.focusableElements)) && s.activeElement.blur();
|
|
1475
1475
|
const w = l && e.allowTouchMove && r.touchStartPreventDefault;
|
|
1476
1476
|
(r.touchStartForcePreventDefault || w) && !f.isContentEditable && i.preventDefault(), r.freeMode && r.freeMode.enabled && e.freeMode && e.animating && !r.cssMode && e.freeMode.onTouchStart(), e.emit("touchStart", i);
|
|
1477
1477
|
}
|
|
1478
|
-
function
|
|
1478
|
+
function _s(t) {
|
|
1479
1479
|
const e = q(), s = this, i = s.touchEventsData, {
|
|
1480
1480
|
params: a,
|
|
1481
1481
|
touches: r,
|
|
1482
|
-
rtlTranslate:
|
|
1483
|
-
enabled:
|
|
1482
|
+
rtlTranslate: c,
|
|
1483
|
+
enabled: d
|
|
1484
1484
|
} = s;
|
|
1485
|
-
if (!
|
|
1485
|
+
if (!d || !a.simulateTouch && t.pointerType === "mouse") return;
|
|
1486
1486
|
let f = t;
|
|
1487
1487
|
if (f.originalEvent && (f = f.originalEvent), f.type === "pointermove" && (i.touchId !== null || f.pointerId !== i.pointerId))
|
|
1488
1488
|
return;
|
|
@@ -1516,9 +1516,9 @@ function As(t) {
|
|
|
1516
1516
|
return;
|
|
1517
1517
|
}
|
|
1518
1518
|
} else {
|
|
1519
|
-
if (
|
|
1519
|
+
if (c && (u > r.startX && -s.translate <= s.maxTranslate() || u < r.startX && -s.translate >= s.minTranslate()))
|
|
1520
1520
|
return;
|
|
1521
|
-
if (!
|
|
1521
|
+
if (!c && (u < r.startX && s.translate <= s.maxTranslate() || u > r.startX && s.translate >= s.minTranslate()))
|
|
1522
1522
|
return;
|
|
1523
1523
|
}
|
|
1524
1524
|
if (e.activeElement && e.activeElement.matches(i.focusableElements) && e.activeElement !== f.target && f.pointerType !== "mouse" && e.activeElement.blur(), e.activeElement && f.target === e.activeElement && f.target.matches(i.focusableElements)) {
|
|
@@ -1540,7 +1540,7 @@ function As(t) {
|
|
|
1540
1540
|
return;
|
|
1541
1541
|
s.allowClick = !1, !a.cssMode && f.cancelable && f.preventDefault(), a.touchMoveStopPropagation && !a.nested && f.stopPropagation();
|
|
1542
1542
|
let n = s.isHorizontal() ? T : g, l = s.isHorizontal() ? r.currentX - r.previousX : r.currentY - r.previousY;
|
|
1543
|
-
a.oneWayMovement && (n = Math.abs(n) * (
|
|
1543
|
+
a.oneWayMovement && (n = Math.abs(n) * (c ? 1 : -1), l = Math.abs(l) * (c ? 1 : -1)), r.diff = n, n *= a.touchRatio, c && (n = -n, l = -l);
|
|
1544
1544
|
const w = s.touchesDirection;
|
|
1545
1545
|
s.swipeDirection = n > 0 ? "prev" : "next", s.touchesDirection = l > 0 ? "prev" : "next";
|
|
1546
1546
|
const v = s.params.loop && !a.cssMode, h = s.touchesDirection === "next" && s.allowSlideNext || s.touchesDirection === "prev" && s.allowSlidePrev;
|
|
@@ -1591,7 +1591,7 @@ function As(t) {
|
|
|
1591
1591
|
}
|
|
1592
1592
|
!a.followFinger || a.cssMode || ((a.freeMode && a.freeMode.enabled && s.freeMode || a.watchSlidesProgress) && (s.updateActiveIndex(), s.updateSlidesClasses()), a.freeMode && a.freeMode.enabled && s.freeMode && s.freeMode.onTouchMove(), s.updateProgress(i.currentTranslate), s.setTranslate(i.currentTranslate));
|
|
1593
1593
|
}
|
|
1594
|
-
function
|
|
1594
|
+
function xs(t) {
|
|
1595
1595
|
const e = this, s = e.touchEventsData;
|
|
1596
1596
|
let i = t;
|
|
1597
1597
|
i.originalEvent && (i = i.originalEvent);
|
|
@@ -1606,18 +1606,18 @@ function _s(t) {
|
|
|
1606
1606
|
return;
|
|
1607
1607
|
s.pointerId = null, s.touchId = null;
|
|
1608
1608
|
const {
|
|
1609
|
-
params:
|
|
1610
|
-
touches:
|
|
1609
|
+
params: c,
|
|
1610
|
+
touches: d,
|
|
1611
1611
|
rtlTranslate: f,
|
|
1612
1612
|
slidesGrid: o,
|
|
1613
1613
|
enabled: u
|
|
1614
1614
|
} = e;
|
|
1615
|
-
if (!u || !
|
|
1615
|
+
if (!u || !c.simulateTouch && i.pointerType === "mouse") return;
|
|
1616
1616
|
if (s.allowTouchCallbacks && e.emit("touchEnd", i), s.allowTouchCallbacks = !1, !s.isTouched) {
|
|
1617
|
-
s.isMoved &&
|
|
1617
|
+
s.isMoved && c.grabCursor && e.setGrabCursor(!1), s.isMoved = !1, s.startMoving = !1;
|
|
1618
1618
|
return;
|
|
1619
1619
|
}
|
|
1620
|
-
|
|
1620
|
+
c.grabCursor && s.isMoved && s.isTouched && (e.allowSlideNext === !0 || e.allowSlidePrev === !0) && e.setGrabCursor(!1);
|
|
1621
1621
|
const m = te(), T = m - s.touchStartTime;
|
|
1622
1622
|
if (e.allowClick) {
|
|
1623
1623
|
const b = i.path || i.composedPath && i.composedPath();
|
|
@@ -1625,15 +1625,15 @@ function _s(t) {
|
|
|
1625
1625
|
}
|
|
1626
1626
|
if (s.lastClickTime = te(), Te(() => {
|
|
1627
1627
|
e.destroyed || (e.allowClick = !0);
|
|
1628
|
-
}), !s.isTouched || !s.isMoved || !e.swipeDirection ||
|
|
1628
|
+
}), !s.isTouched || !s.isMoved || !e.swipeDirection || d.diff === 0 && !s.loopSwapReset || s.currentTranslate === s.startTranslate && !s.loopSwapReset) {
|
|
1629
1629
|
s.isTouched = !1, s.isMoved = !1, s.startMoving = !1;
|
|
1630
1630
|
return;
|
|
1631
1631
|
}
|
|
1632
1632
|
s.isTouched = !1, s.isMoved = !1, s.startMoving = !1;
|
|
1633
1633
|
let g;
|
|
1634
|
-
if (
|
|
1634
|
+
if (c.followFinger ? g = f ? e.translate : -e.translate : g = -s.currentTranslate, c.cssMode)
|
|
1635
1635
|
return;
|
|
1636
|
-
if (
|
|
1636
|
+
if (c.freeMode && c.freeMode.enabled) {
|
|
1637
1637
|
e.freeMode.onTouchEnd({
|
|
1638
1638
|
currentPos: g
|
|
1639
1639
|
});
|
|
@@ -1641,21 +1641,21 @@ function _s(t) {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
const n = g >= -e.maxTranslate() && !e.params.loop;
|
|
1643
1643
|
let l = 0, w = e.slidesSizesGrid[0];
|
|
1644
|
-
for (let b = 0; b < o.length; b += b <
|
|
1645
|
-
const O = b <
|
|
1644
|
+
for (let b = 0; b < o.length; b += b < c.slidesPerGroupSkip ? 1 : c.slidesPerGroup) {
|
|
1645
|
+
const O = b < c.slidesPerGroupSkip - 1 ? 1 : c.slidesPerGroup;
|
|
1646
1646
|
typeof o[b + O] < "u" ? (n || g >= o[b] && g < o[b + O]) && (l = b, w = o[b + O] - o[b]) : (n || g >= o[b]) && (l = b, w = o[o.length - 1] - o[o.length - 2]);
|
|
1647
1647
|
}
|
|
1648
1648
|
let v = null, h = null;
|
|
1649
|
-
|
|
1650
|
-
const p = (g - o[l]) / w, E = l <
|
|
1651
|
-
if (T >
|
|
1652
|
-
if (!
|
|
1649
|
+
c.rewind && (e.isBeginning ? h = c.virtual && c.virtual.enabled && e.virtual ? e.virtual.slides.length - 1 : e.slides.length - 1 : e.isEnd && (v = 0));
|
|
1650
|
+
const p = (g - o[l]) / w, E = l < c.slidesPerGroupSkip - 1 ? 1 : c.slidesPerGroup;
|
|
1651
|
+
if (T > c.longSwipesMs) {
|
|
1652
|
+
if (!c.longSwipes) {
|
|
1653
1653
|
e.slideTo(e.activeIndex);
|
|
1654
1654
|
return;
|
|
1655
1655
|
}
|
|
1656
|
-
e.swipeDirection === "next" && (p >=
|
|
1656
|
+
e.swipeDirection === "next" && (p >= c.longSwipesRatio ? e.slideTo(c.rewind && e.isEnd ? v : l + E) : e.slideTo(l)), e.swipeDirection === "prev" && (p > 1 - c.longSwipesRatio ? e.slideTo(l + E) : h !== null && p < 0 && Math.abs(p) > c.longSwipesRatio ? e.slideTo(h) : e.slideTo(l));
|
|
1657
1657
|
} else {
|
|
1658
|
-
if (!
|
|
1658
|
+
if (!c.shortSwipes) {
|
|
1659
1659
|
e.slideTo(e.activeIndex);
|
|
1660
1660
|
return;
|
|
1661
1661
|
}
|
|
@@ -1673,14 +1673,14 @@ function ft() {
|
|
|
1673
1673
|
allowSlideNext: i,
|
|
1674
1674
|
allowSlidePrev: a,
|
|
1675
1675
|
snapGrid: r
|
|
1676
|
-
} = t,
|
|
1676
|
+
} = t, c = t.virtual && t.params.virtual.enabled;
|
|
1677
1677
|
t.allowSlideNext = !0, t.allowSlidePrev = !0, t.updateSize(), t.updateSlides(), t.updateSlidesClasses();
|
|
1678
|
-
const
|
|
1679
|
-
(e.slidesPerView === "auto" || e.slidesPerView > 1) && t.isEnd && !t.isBeginning && !t.params.centeredSlides && !
|
|
1678
|
+
const d = c && e.loop;
|
|
1679
|
+
(e.slidesPerView === "auto" || e.slidesPerView > 1) && t.isEnd && !t.isBeginning && !t.params.centeredSlides && !d ? t.slideTo(t.slides.length - 1, 0, !1, !0) : t.params.loop && !c ? 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(() => {
|
|
1680
1680
|
t.autoplay && t.autoplay.running && t.autoplay.paused && t.autoplay.resume();
|
|
1681
1681
|
}, 500)), t.allowSlidePrev = a, t.allowSlideNext = i, t.params.watchOverflow && r !== t.snapGrid && t.checkOverflow();
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1683
|
+
function Ls(t) {
|
|
1684
1684
|
const e = this;
|
|
1685
1685
|
e.enabled && (e.allowClick || (e.params.preventClicks && t.preventDefault(), e.params.preventClicksPropagation && e.animating && (t.stopPropagation(), t.stopImmediatePropagation())));
|
|
1686
1686
|
}
|
|
@@ -1696,11 +1696,11 @@ function Ms() {
|
|
|
1696
1696
|
const r = t.maxTranslate() - t.minTranslate();
|
|
1697
1697
|
r === 0 ? a = 0 : a = (t.translate - t.minTranslate()) / r, a !== t.progress && t.updateProgress(s ? -t.translate : t.translate), t.emit("setTranslate", t.translate, !1);
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function Cs(t) {
|
|
1700
1700
|
const e = this;
|
|
1701
1701
|
ze(e, t.target), !(e.params.cssMode || e.params.slidesPerView !== "auto" && !e.params.autoHeight) && e.update();
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1703
|
+
function Is() {
|
|
1704
1704
|
const t = this;
|
|
1705
1705
|
t.documentTouchHandlerProceeded || (t.documentTouchHandlerProceeded = !0, t.params.touchReleaseOnEdges && (t.el.style.touchAction = "auto"));
|
|
1706
1706
|
}
|
|
@@ -1709,21 +1709,21 @@ const St = (t, e) => {
|
|
|
1709
1709
|
params: i,
|
|
1710
1710
|
el: a,
|
|
1711
1711
|
wrapperEl: r,
|
|
1712
|
-
device:
|
|
1713
|
-
} = t,
|
|
1712
|
+
device: c
|
|
1713
|
+
} = t, d = !!i.nested, f = e === "on" ? "addEventListener" : "removeEventListener", o = e;
|
|
1714
1714
|
!a || typeof a == "string" || (s[f]("touchstart", t.onDocumentTouchStart, {
|
|
1715
1715
|
passive: !1,
|
|
1716
|
-
capture:
|
|
1716
|
+
capture: d
|
|
1717
1717
|
}), a[f]("touchstart", t.onTouchStart, {
|
|
1718
1718
|
passive: !1
|
|
1719
1719
|
}), a[f]("pointerdown", t.onTouchStart, {
|
|
1720
1720
|
passive: !1
|
|
1721
1721
|
}), s[f]("touchmove", t.onTouchMove, {
|
|
1722
1722
|
passive: !1,
|
|
1723
|
-
capture:
|
|
1723
|
+
capture: d
|
|
1724
1724
|
}), s[f]("pointermove", t.onTouchMove, {
|
|
1725
1725
|
passive: !1,
|
|
1726
|
-
capture:
|
|
1726
|
+
capture: d
|
|
1727
1727
|
}), s[f]("touchend", t.onTouchEnd, {
|
|
1728
1728
|
passive: !0
|
|
1729
1729
|
}), s[f]("pointerup", t.onTouchEnd, {
|
|
@@ -1738,25 +1738,25 @@ const St = (t, e) => {
|
|
|
1738
1738
|
passive: !0
|
|
1739
1739
|
}), s[f]("contextmenu", t.onTouchEnd, {
|
|
1740
1740
|
passive: !0
|
|
1741
|
-
}), (i.preventClicks || i.preventClicksPropagation) && a[f]("click", t.onClick, !0), i.cssMode && r[f]("scroll", t.onScroll), i.updateOnWindowResize ? t[o](
|
|
1741
|
+
}), (i.preventClicks || i.preventClicksPropagation) && a[f]("click", t.onClick, !0), i.cssMode && r[f]("scroll", t.onScroll), i.updateOnWindowResize ? t[o](c.ios || c.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", ft, !0) : t[o]("observerUpdate", ft, !0), a[f]("load", t.onLoad, {
|
|
1742
1742
|
capture: !0
|
|
1743
1743
|
}));
|
|
1744
1744
|
};
|
|
1745
|
-
function
|
|
1745
|
+
function Rs() {
|
|
1746
1746
|
const t = this, {
|
|
1747
1747
|
params: e
|
|
1748
1748
|
} = t;
|
|
1749
|
-
t.onTouchStart =
|
|
1749
|
+
t.onTouchStart = As.bind(t), t.onTouchMove = _s.bind(t), t.onTouchEnd = xs.bind(t), t.onDocumentTouchStart = Is.bind(t), e.cssMode && (t.onScroll = Ms.bind(t)), t.onClick = Ls.bind(t), t.onLoad = Cs.bind(t), St(t, "on");
|
|
1750
1750
|
}
|
|
1751
|
-
function
|
|
1751
|
+
function Os() {
|
|
1752
1752
|
St(this, "off");
|
|
1753
1753
|
}
|
|
1754
|
-
var
|
|
1755
|
-
attachEvents:
|
|
1756
|
-
detachEvents:
|
|
1754
|
+
var Ps = {
|
|
1755
|
+
attachEvents: Rs,
|
|
1756
|
+
detachEvents: Os
|
|
1757
1757
|
};
|
|
1758
1758
|
const ut = (t, e) => t.grid && e.grid && e.grid.rows > 1;
|
|
1759
|
-
function
|
|
1759
|
+
function Ds() {
|
|
1760
1760
|
const t = this, {
|
|
1761
1761
|
realIndex: e,
|
|
1762
1762
|
initialized: s,
|
|
@@ -1764,7 +1764,7 @@ function Ps() {
|
|
|
1764
1764
|
el: a
|
|
1765
1765
|
} = t, r = i.breakpoints;
|
|
1766
1766
|
if (!r || r && Object.keys(r).length === 0) return;
|
|
1767
|
-
const
|
|
1767
|
+
const c = q(), d = i.breakpointsBase === "window" || !i.breakpointsBase ? i.breakpointsBase : "container", f = ["window", "container"].includes(i.breakpointsBase) || !i.breakpointsBase ? t.el : c.querySelector(i.breakpointsBase), o = t.getBreakpoint(r, d, f);
|
|
1768
1768
|
if (!o || t.currentBreakpoint === o) return;
|
|
1769
1769
|
const m = (o in r ? r[o] : void 0) || t.originalParams, T = ut(t, i), g = ut(t, m), n = t.params.grabCursor, l = m.grabCursor, w = i.enabled;
|
|
1770
1770
|
T && !g ? (a.classList.remove(`${i.containerModifierClass}grid`, `${i.containerModifierClass}grid-column`), t.emitContainerClasses()) : !T && g && (a.classList.add(`${i.containerModifierClass}grid`), (m.grid.fill && m.grid.fill === "column" || !m.grid.fill && i.grid.fill === "column") && a.classList.add(`${i.containerModifierClass}grid-column`), t.emitContainerClasses()), n && !l ? t.unsetGrabCursor() : !n && l && t.setGrabCursor(), ["navigation", "pagination", "scrollbar"].forEach((O) => {
|
|
@@ -1781,37 +1781,37 @@ function Ps() {
|
|
|
1781
1781
|
allowSlidePrev: t.params.allowSlidePrev
|
|
1782
1782
|
}), w && !E ? t.disable() : !w && E && t.enable(), t.currentBreakpoint = o, t.emit("_beforeBreakpoint", m), s && (h ? (t.loopDestroy(), t.loopCreate(e), t.updateSlides()) : !p && b ? (t.loopCreate(e), t.updateSlides()) : p && !b && t.loopDestroy()), t.emit("breakpoint", m);
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1784
|
+
function Ns(t, e, s) {
|
|
1785
1785
|
if (e === void 0 && (e = "window"), !t || e === "container" && !s) return;
|
|
1786
1786
|
let i = !1;
|
|
1787
|
-
const a = Y(), r = e === "window" ? a.innerHeight : s.clientHeight,
|
|
1788
|
-
if (typeof
|
|
1789
|
-
const f = parseFloat(
|
|
1787
|
+
const a = Y(), r = e === "window" ? a.innerHeight : s.clientHeight, c = Object.keys(t).map((d) => {
|
|
1788
|
+
if (typeof d == "string" && d.indexOf("@") === 0) {
|
|
1789
|
+
const f = parseFloat(d.substr(1));
|
|
1790
1790
|
return {
|
|
1791
1791
|
value: r * f,
|
|
1792
|
-
point:
|
|
1792
|
+
point: d
|
|
1793
1793
|
};
|
|
1794
1794
|
}
|
|
1795
1795
|
return {
|
|
1796
|
-
value:
|
|
1797
|
-
point:
|
|
1796
|
+
value: d,
|
|
1797
|
+
point: d
|
|
1798
1798
|
};
|
|
1799
1799
|
});
|
|
1800
|
-
|
|
1801
|
-
for (let
|
|
1800
|
+
c.sort((d, f) => parseInt(d.value, 10) - parseInt(f.value, 10));
|
|
1801
|
+
for (let d = 0; d < c.length; d += 1) {
|
|
1802
1802
|
const {
|
|
1803
1803
|
point: f,
|
|
1804
1804
|
value: o
|
|
1805
|
-
} = d
|
|
1805
|
+
} = c[d];
|
|
1806
1806
|
e === "window" ? a.matchMedia(`(min-width: ${o}px)`).matches && (i = f) : o <= s.clientWidth && (i = f);
|
|
1807
1807
|
}
|
|
1808
1808
|
return i || "max";
|
|
1809
1809
|
}
|
|
1810
|
-
var
|
|
1811
|
-
setBreakpoint:
|
|
1812
|
-
getBreakpoint:
|
|
1810
|
+
var zs = {
|
|
1811
|
+
setBreakpoint: Ds,
|
|
1812
|
+
getBreakpoint: Ns
|
|
1813
1813
|
};
|
|
1814
|
-
function
|
|
1814
|
+
function $s(t, e) {
|
|
1815
1815
|
const s = [];
|
|
1816
1816
|
return t.forEach((i) => {
|
|
1817
1817
|
typeof i == "object" ? Object.keys(i).forEach((a) => {
|
|
@@ -1819,14 +1819,14 @@ function zs(t, e) {
|
|
|
1819
1819
|
}) : typeof i == "string" && s.push(e + i);
|
|
1820
1820
|
}), s;
|
|
1821
1821
|
}
|
|
1822
|
-
function
|
|
1822
|
+
function Gs() {
|
|
1823
1823
|
const t = this, {
|
|
1824
1824
|
classNames: e,
|
|
1825
1825
|
params: s,
|
|
1826
1826
|
rtl: i,
|
|
1827
1827
|
el: a,
|
|
1828
1828
|
device: r
|
|
1829
|
-
} = t,
|
|
1829
|
+
} = t, c = $s(["initialized", s.direction, {
|
|
1830
1830
|
"free-mode": t.params.freeMode && s.freeMode.enabled
|
|
1831
1831
|
}, {
|
|
1832
1832
|
autoheight: s.autoHeight
|
|
@@ -1847,20 +1847,20 @@ function $s() {
|
|
|
1847
1847
|
}, {
|
|
1848
1848
|
"watch-progress": s.watchSlidesProgress
|
|
1849
1849
|
}], s.containerModifierClass);
|
|
1850
|
-
e.push(...
|
|
1850
|
+
e.push(...c), a.classList.add(...e), t.emitContainerClasses();
|
|
1851
1851
|
}
|
|
1852
|
-
function
|
|
1852
|
+
function Bs() {
|
|
1853
1853
|
const t = this, {
|
|
1854
1854
|
el: e,
|
|
1855
1855
|
classNames: s
|
|
1856
1856
|
} = t;
|
|
1857
1857
|
!e || typeof e == "string" || (e.classList.remove(...s), t.emitContainerClasses());
|
|
1858
1858
|
}
|
|
1859
|
-
var
|
|
1860
|
-
addClasses:
|
|
1861
|
-
removeClasses:
|
|
1859
|
+
var ks = {
|
|
1860
|
+
addClasses: Gs,
|
|
1861
|
+
removeClasses: Bs
|
|
1862
1862
|
};
|
|
1863
|
-
function
|
|
1863
|
+
function Hs() {
|
|
1864
1864
|
const t = this, {
|
|
1865
1865
|
isLocked: e,
|
|
1866
1866
|
params: s
|
|
@@ -1874,8 +1874,8 @@ function ks() {
|
|
|
1874
1874
|
t.isLocked = t.snapGrid.length === 1;
|
|
1875
1875
|
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");
|
|
1876
1876
|
}
|
|
1877
|
-
var
|
|
1878
|
-
checkOverflow:
|
|
1877
|
+
var Vs = {
|
|
1878
|
+
checkOverflow: Hs
|
|
1879
1879
|
}, pt = {
|
|
1880
1880
|
init: !0,
|
|
1881
1881
|
direction: "horizontal",
|
|
@@ -1997,7 +1997,7 @@ var Hs = {
|
|
|
1997
1997
|
// Internals
|
|
1998
1998
|
_emitClasses: !1
|
|
1999
1999
|
};
|
|
2000
|
-
function
|
|
2000
|
+
function Fs(t, e) {
|
|
2001
2001
|
return function(i) {
|
|
2002
2002
|
i === void 0 && (i = {});
|
|
2003
2003
|
const a = Object.keys(i)[0], r = i[a];
|
|
@@ -2017,17 +2017,17 @@ function Vs(t, e) {
|
|
|
2017
2017
|
};
|
|
2018
2018
|
}
|
|
2019
2019
|
const Qe = {
|
|
2020
|
-
eventsEmitter:
|
|
2021
|
-
update:
|
|
2022
|
-
translate:
|
|
2023
|
-
transition:
|
|
2024
|
-
slide:
|
|
2025
|
-
loop:
|
|
2026
|
-
grabCursor:
|
|
2027
|
-
events:
|
|
2028
|
-
breakpoints:
|
|
2029
|
-
checkOverflow:
|
|
2030
|
-
classes:
|
|
2020
|
+
eventsEmitter: kt,
|
|
2021
|
+
update: Zt,
|
|
2022
|
+
translate: is,
|
|
2023
|
+
transition: ls,
|
|
2024
|
+
slide: hs,
|
|
2025
|
+
loop: vs,
|
|
2026
|
+
grabCursor: bs,
|
|
2027
|
+
events: Ps,
|
|
2028
|
+
breakpoints: zs,
|
|
2029
|
+
checkOverflow: Vs,
|
|
2030
|
+
classes: ks
|
|
2031
2031
|
}, Je = {};
|
|
2032
2032
|
class Q {
|
|
2033
2033
|
constructor() {
|
|
@@ -2035,37 +2035,37 @@ class Q {
|
|
|
2035
2035
|
for (var i = arguments.length, a = new Array(i), r = 0; r < i; r++)
|
|
2036
2036
|
a[r] = arguments[r];
|
|
2037
2037
|
a.length === 1 && a[0].constructor && Object.prototype.toString.call(a[0]).slice(8, -1) === "Object" ? s = a[0] : [e, s] = a, s || (s = {}), s = J({}, s), e && !s.el && (s.el = e);
|
|
2038
|
-
const
|
|
2039
|
-
if (s.el && typeof s.el == "string" &&
|
|
2038
|
+
const c = q();
|
|
2039
|
+
if (s.el && typeof s.el == "string" && c.querySelectorAll(s.el).length > 1) {
|
|
2040
2040
|
const u = [];
|
|
2041
|
-
return
|
|
2041
|
+
return c.querySelectorAll(s.el).forEach((m) => {
|
|
2042
2042
|
const T = J({}, s, {
|
|
2043
2043
|
el: m
|
|
2044
2044
|
});
|
|
2045
2045
|
u.push(new Q(T));
|
|
2046
2046
|
}), u;
|
|
2047
2047
|
}
|
|
2048
|
-
const
|
|
2049
|
-
|
|
2048
|
+
const d = this;
|
|
2049
|
+
d.__swiper__ = !0, d.support = wt(), d.device = Tt({
|
|
2050
2050
|
userAgent: s.userAgent
|
|
2051
|
-
}),
|
|
2051
|
+
}), d.browser = vt(), d.eventsListeners = {}, d.eventsAnyListeners = [], d.modules = [...d.__modules__], s.modules && Array.isArray(s.modules) && d.modules.push(...s.modules);
|
|
2052
2052
|
const f = {};
|
|
2053
|
-
|
|
2053
|
+
d.modules.forEach((u) => {
|
|
2054
2054
|
u({
|
|
2055
2055
|
params: s,
|
|
2056
|
-
swiper:
|
|
2057
|
-
extendParams:
|
|
2058
|
-
on:
|
|
2059
|
-
once:
|
|
2060
|
-
off:
|
|
2061
|
-
emit:
|
|
2056
|
+
swiper: d,
|
|
2057
|
+
extendParams: Fs(s, f),
|
|
2058
|
+
on: d.on.bind(d),
|
|
2059
|
+
once: d.once.bind(d),
|
|
2060
|
+
off: d.off.bind(d),
|
|
2061
|
+
emit: d.emit.bind(d)
|
|
2062
2062
|
});
|
|
2063
2063
|
});
|
|
2064
2064
|
const o = J({}, pt, f);
|
|
2065
|
-
return
|
|
2066
|
-
|
|
2067
|
-
}),
|
|
2068
|
-
enabled:
|
|
2065
|
+
return d.params = J({}, o, Je, s), d.originalParams = J({}, d.params), d.passedParams = J({}, s), d.params && d.params.on && Object.keys(d.params.on).forEach((u) => {
|
|
2066
|
+
d.on(u, d.params.on[u]);
|
|
2067
|
+
}), d.params && d.params.onAny && d.onAny(d.params.onAny), Object.assign(d, {
|
|
2068
|
+
enabled: d.params.enabled,
|
|
2069
2069
|
el: e,
|
|
2070
2070
|
// Classes
|
|
2071
2071
|
classNames: [],
|
|
@@ -2076,10 +2076,10 @@ class Q {
|
|
|
2076
2076
|
slidesSizesGrid: [],
|
|
2077
2077
|
// isDirection
|
|
2078
2078
|
isHorizontal() {
|
|
2079
|
-
return
|
|
2079
|
+
return d.params.direction === "horizontal";
|
|
2080
2080
|
},
|
|
2081
2081
|
isVertical() {
|
|
2082
|
-
return
|
|
2082
|
+
return d.params.direction === "vertical";
|
|
2083
2083
|
},
|
|
2084
2084
|
// Indexes
|
|
2085
2085
|
activeIndex: 0,
|
|
@@ -2097,8 +2097,8 @@ class Q {
|
|
|
2097
2097
|
return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
|
|
2098
2098
|
},
|
|
2099
2099
|
// Locks
|
|
2100
|
-
allowSlideNext:
|
|
2101
|
-
allowSlidePrev:
|
|
2100
|
+
allowSlideNext: d.params.allowSlideNext,
|
|
2101
|
+
allowSlidePrev: d.params.allowSlidePrev,
|
|
2102
2102
|
// Touch Events
|
|
2103
2103
|
touchEventsData: {
|
|
2104
2104
|
isTouched: void 0,
|
|
@@ -2110,7 +2110,7 @@ class Q {
|
|
|
2110
2110
|
startTranslate: void 0,
|
|
2111
2111
|
allowThresholdMove: void 0,
|
|
2112
2112
|
// Form elements to match
|
|
2113
|
-
focusableElements:
|
|
2113
|
+
focusableElements: d.params.focusableElements,
|
|
2114
2114
|
// Last click time
|
|
2115
2115
|
lastClickTime: 0,
|
|
2116
2116
|
clickTimeout: void 0,
|
|
@@ -2124,7 +2124,7 @@ class Q {
|
|
|
2124
2124
|
// Clicks
|
|
2125
2125
|
allowClick: !0,
|
|
2126
2126
|
// Touches
|
|
2127
|
-
allowTouchMove:
|
|
2127
|
+
allowTouchMove: d.params.allowTouchMove,
|
|
2128
2128
|
touches: {
|
|
2129
2129
|
startX: 0,
|
|
2130
2130
|
startY: 0,
|
|
@@ -2135,7 +2135,7 @@ class Q {
|
|
|
2135
2135
|
// Images
|
|
2136
2136
|
imagesToLoad: [],
|
|
2137
2137
|
imagesLoaded: 0
|
|
2138
|
-
}),
|
|
2138
|
+
}), d.emit("_swiper"), d.params.init && d.init(), d;
|
|
2139
2139
|
}
|
|
2140
2140
|
getDirectionLabel(e) {
|
|
2141
2141
|
return this.isHorizontal() ? e : {
|
|
@@ -2153,8 +2153,8 @@ class Q {
|
|
|
2153
2153
|
const {
|
|
2154
2154
|
slidesEl: s,
|
|
2155
2155
|
params: i
|
|
2156
|
-
} = this, a = j(s, `.${i.slideClass}, swiper-slide`), r =
|
|
2157
|
-
return
|
|
2156
|
+
} = this, a = j(s, `.${i.slideClass}, swiper-slide`), r = Me(a[0]);
|
|
2157
|
+
return Me(e) - r;
|
|
2158
2158
|
}
|
|
2159
2159
|
getSlideIndexByData(e) {
|
|
2160
2160
|
return this.getSlideIndex(this.slides.find((s) => s.getAttribute("data-swiper-slide-index") * 1 === e));
|
|
@@ -2180,8 +2180,8 @@ class Q {
|
|
|
2180
2180
|
setProgress(e, s) {
|
|
2181
2181
|
const i = this;
|
|
2182
2182
|
e = Math.min(Math.max(e, 0), 1);
|
|
2183
|
-
const a = i.minTranslate(),
|
|
2184
|
-
i.translateTo(
|
|
2183
|
+
const a = i.minTranslate(), c = (i.maxTranslate() - a) * e + a;
|
|
2184
|
+
i.translateTo(c, typeof s > "u" ? 0 : s), i.updateActiveIndex(), i.updateSlidesClasses();
|
|
2185
2185
|
}
|
|
2186
2186
|
emitContainerClasses() {
|
|
2187
2187
|
const e = this;
|
|
@@ -2210,8 +2210,8 @@ class Q {
|
|
|
2210
2210
|
const i = this, {
|
|
2211
2211
|
params: a,
|
|
2212
2212
|
slides: r,
|
|
2213
|
-
slidesGrid:
|
|
2214
|
-
slidesSizesGrid:
|
|
2213
|
+
slidesGrid: c,
|
|
2214
|
+
slidesSizesGrid: d,
|
|
2215
2215
|
size: f,
|
|
2216
2216
|
activeIndex: o
|
|
2217
2217
|
} = i;
|
|
@@ -2225,10 +2225,10 @@ class Q {
|
|
|
2225
2225
|
r[g] && !T && (m += r[g].swiperSlideSize, u += 1, m > f && (T = !0));
|
|
2226
2226
|
} else if (e === "current")
|
|
2227
2227
|
for (let m = o + 1; m < r.length; m += 1)
|
|
2228
|
-
(s ?
|
|
2228
|
+
(s ? c[m] + d[m] - c[o] < f : c[m] - c[o] < f) && (u += 1);
|
|
2229
2229
|
else
|
|
2230
2230
|
for (let m = o - 1; m >= 0; m -= 1)
|
|
2231
|
-
|
|
2231
|
+
c[o] - c[m] < f && (u += 1);
|
|
2232
2232
|
return u;
|
|
2233
2233
|
}
|
|
2234
2234
|
update() {
|
|
@@ -2238,20 +2238,20 @@ class Q {
|
|
|
2238
2238
|
snapGrid: s,
|
|
2239
2239
|
params: i
|
|
2240
2240
|
} = e;
|
|
2241
|
-
i.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((
|
|
2242
|
-
|
|
2241
|
+
i.breakpoints && e.setBreakpoint(), [...e.el.querySelectorAll('[loading="lazy"]')].forEach((c) => {
|
|
2242
|
+
c.complete && ze(e, c);
|
|
2243
2243
|
}), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses();
|
|
2244
2244
|
function a() {
|
|
2245
|
-
const
|
|
2246
|
-
e.setTranslate(
|
|
2245
|
+
const c = e.rtlTranslate ? e.translate * -1 : e.translate, d = Math.min(Math.max(c, e.maxTranslate()), e.minTranslate());
|
|
2246
|
+
e.setTranslate(d), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
2247
2247
|
}
|
|
2248
2248
|
let r;
|
|
2249
2249
|
if (i.freeMode && i.freeMode.enabled && !i.cssMode)
|
|
2250
2250
|
a(), i.autoHeight && e.updateAutoHeight();
|
|
2251
2251
|
else {
|
|
2252
2252
|
if ((i.slidesPerView === "auto" || i.slidesPerView > 1) && e.isEnd && !i.centeredSlides) {
|
|
2253
|
-
const
|
|
2254
|
-
r = e.slideTo(
|
|
2253
|
+
const c = e.virtual && i.virtual.enabled ? e.virtual.slides : e.slides;
|
|
2254
|
+
r = e.slideTo(c.length - 1, 0, !1, !0);
|
|
2255
2255
|
} else
|
|
2256
2256
|
r = e.slideTo(e.activeIndex, 0, !1, !0);
|
|
2257
2257
|
r || a();
|
|
@@ -2277,19 +2277,19 @@ class Q {
|
|
|
2277
2277
|
return !1;
|
|
2278
2278
|
i.swiper = s, i.parentNode && i.parentNode.host && i.parentNode.host.nodeName === s.params.swiperElementNodeName.toUpperCase() && (s.isElement = !0);
|
|
2279
2279
|
const a = () => `.${(s.params.wrapperClass || "").trim().split(" ").join(".")}`;
|
|
2280
|
-
let
|
|
2281
|
-
return !
|
|
2282
|
-
|
|
2280
|
+
let c = i && i.shadowRoot && i.shadowRoot.querySelector ? i.shadowRoot.querySelector(a()) : j(i, a())[0];
|
|
2281
|
+
return !c && s.params.createElements && (c = ee("div", s.params.wrapperClass), i.append(c), j(i, `.${s.params.slideClass}`).forEach((d) => {
|
|
2282
|
+
c.append(d);
|
|
2283
2283
|
})), Object.assign(s, {
|
|
2284
2284
|
el: i,
|
|
2285
|
-
wrapperEl:
|
|
2286
|
-
slidesEl: s.isElement && !i.parentNode.host.slideSlots ? i.parentNode.host :
|
|
2285
|
+
wrapperEl: c,
|
|
2286
|
+
slidesEl: s.isElement && !i.parentNode.host.slideSlots ? i.parentNode.host : c,
|
|
2287
2287
|
hostEl: s.isElement ? i.parentNode.host : i,
|
|
2288
2288
|
mounted: !0,
|
|
2289
2289
|
// RTL
|
|
2290
2290
|
rtl: i.dir.toLowerCase() === "rtl" || fe(i, "direction") === "rtl",
|
|
2291
2291
|
rtlTranslate: s.params.direction === "horizontal" && (i.dir.toLowerCase() === "rtl" || fe(i, "direction") === "rtl"),
|
|
2292
|
-
wrongRTL: fe(
|
|
2292
|
+
wrongRTL: fe(c, "display") === "-webkit-box"
|
|
2293
2293
|
}), !0;
|
|
2294
2294
|
}
|
|
2295
2295
|
init(e) {
|
|
@@ -2298,8 +2298,8 @@ class Q {
|
|
|
2298
2298
|
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();
|
|
2299
2299
|
const a = [...s.el.querySelectorAll('[loading="lazy"]')];
|
|
2300
2300
|
return s.isElement && a.push(...s.hostEl.querySelectorAll('[loading="lazy"]')), a.forEach((r) => {
|
|
2301
|
-
r.complete ? ze(s, r) : r.addEventListener("load", (
|
|
2302
|
-
ze(s,
|
|
2301
|
+
r.complete ? ze(s, r) : r.addEventListener("load", (c) => {
|
|
2302
|
+
ze(s, c.target);
|
|
2303
2303
|
});
|
|
2304
2304
|
}), st(s), s.initialized = !0, st(s), s.emit("init"), s.emit("afterInit"), s;
|
|
2305
2305
|
}
|
|
@@ -2308,10 +2308,10 @@ class Q {
|
|
|
2308
2308
|
const i = this, {
|
|
2309
2309
|
params: a,
|
|
2310
2310
|
el: r,
|
|
2311
|
-
wrapperEl:
|
|
2312
|
-
slides:
|
|
2311
|
+
wrapperEl: c,
|
|
2312
|
+
slides: d
|
|
2313
2313
|
} = i;
|
|
2314
|
-
return typeof i.params > "u" || i.destroyed || (i.emit("beforeDestroy"), i.initialized = !1, i.detachEvents(), a.loop && i.loopDestroy(), s && (i.removeClasses(), r && typeof r != "string" && r.removeAttribute("style"),
|
|
2314
|
+
return typeof i.params > "u" || i.destroyed || (i.emit("beforeDestroy"), i.initialized = !1, i.detachEvents(), a.loop && i.loopDestroy(), s && (i.removeClasses(), r && typeof r != "string" && r.removeAttribute("style"), c && c.removeAttribute("style"), d && d.length && d.forEach((f) => {
|
|
2315
2315
|
f.classList.remove(a.slideVisibleClass, a.slideFullyVisibleClass, a.slideActiveClass, a.slideNextClass, a.slidePrevClass), f.removeAttribute("style"), f.removeAttribute("data-swiper-slide-index");
|
|
2316
2316
|
})), i.emit("destroy"), Object.keys(i.eventsListeners).forEach((f) => {
|
|
2317
2317
|
i.off(f);
|
|
@@ -2340,8 +2340,8 @@ Object.keys(Qe).forEach((t) => {
|
|
|
2340
2340
|
Q.prototype[e] = Qe[t][e];
|
|
2341
2341
|
});
|
|
2342
2342
|
});
|
|
2343
|
-
Q.use([
|
|
2344
|
-
function
|
|
2343
|
+
Q.use([Gt, Bt]);
|
|
2344
|
+
function Ws(t) {
|
|
2345
2345
|
let {
|
|
2346
2346
|
swiper: e,
|
|
2347
2347
|
extendParams: s,
|
|
@@ -2361,7 +2361,7 @@ function Fs(t) {
|
|
|
2361
2361
|
}
|
|
2362
2362
|
});
|
|
2363
2363
|
let r;
|
|
2364
|
-
const
|
|
2364
|
+
const c = q();
|
|
2365
2365
|
e.virtual = {
|
|
2366
2366
|
cache: {},
|
|
2367
2367
|
from: void 0,
|
|
@@ -2370,13 +2370,13 @@ function Fs(t) {
|
|
|
2370
2370
|
offset: 0,
|
|
2371
2371
|
slidesGrid: []
|
|
2372
2372
|
};
|
|
2373
|
-
const
|
|
2373
|
+
const d = c.createElement("div");
|
|
2374
2374
|
function f(n, l) {
|
|
2375
2375
|
const w = e.params.virtual;
|
|
2376
2376
|
if (w.cache && e.virtual.cache[l])
|
|
2377
2377
|
return e.virtual.cache[l];
|
|
2378
2378
|
let v;
|
|
2379
|
-
return w.renderSlide ? (v = w.renderSlide.call(e, n, l), typeof v == "string" && (ne(
|
|
2379
|
+
return w.renderSlide ? (v = w.renderSlide.call(e, n, l), typeof v == "string" && (ne(d, v), v = d.children[0])) : e.isElement ? v = ee("swiper-slide") : v = ee("div", e.params.slideClass), v.setAttribute("data-swiper-slide-index", l), w.renderSlide || ne(v, n), w.cache && (e.virtual.cache[l] = v), v;
|
|
2380
2380
|
}
|
|
2381
2381
|
function o(n, l, w) {
|
|
2382
2382
|
const {
|
|
@@ -2395,8 +2395,8 @@ function Fs(t) {
|
|
|
2395
2395
|
from: R,
|
|
2396
2396
|
to: _,
|
|
2397
2397
|
slides: A,
|
|
2398
|
-
slidesGrid:
|
|
2399
|
-
offset:
|
|
2398
|
+
slidesGrid: M,
|
|
2399
|
+
offset: L
|
|
2400
2400
|
} = e.virtual;
|
|
2401
2401
|
e.params.cssMode || e.updateActiveIndex();
|
|
2402
2402
|
const x = typeof w > "u" ? e.activeIndex || 0 : w;
|
|
@@ -2419,7 +2419,7 @@ function Fs(t) {
|
|
|
2419
2419
|
e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), a("virtualUpdate");
|
|
2420
2420
|
}
|
|
2421
2421
|
if (R === S && _ === y && !n) {
|
|
2422
|
-
e.slidesGrid !==
|
|
2422
|
+
e.slidesGrid !== M && B !== L && e.slides.forEach((P) => {
|
|
2423
2423
|
P.style[C] = `${B - Math.abs(e.cssOverflowAdjustment())}px`;
|
|
2424
2424
|
}), e.updateProgress(), a("virtualUpdate");
|
|
2425
2425
|
return;
|
|
@@ -2542,14 +2542,14 @@ function Fs(t) {
|
|
|
2542
2542
|
update: o
|
|
2543
2543
|
});
|
|
2544
2544
|
}
|
|
2545
|
-
function
|
|
2545
|
+
function Ys(t) {
|
|
2546
2546
|
let {
|
|
2547
2547
|
swiper: e,
|
|
2548
2548
|
extendParams: s,
|
|
2549
2549
|
on: i,
|
|
2550
2550
|
emit: a
|
|
2551
2551
|
} = t;
|
|
2552
|
-
const r = q(),
|
|
2552
|
+
const r = q(), c = Y();
|
|
2553
2553
|
e.keyboard = {
|
|
2554
2554
|
enabled: !1
|
|
2555
2555
|
}, s({
|
|
@@ -2559,7 +2559,7 @@ function Ws(t) {
|
|
|
2559
2559
|
pageUpDown: !0
|
|
2560
2560
|
}
|
|
2561
2561
|
});
|
|
2562
|
-
function
|
|
2562
|
+
function d(u) {
|
|
2563
2563
|
if (!e.enabled) return;
|
|
2564
2564
|
const {
|
|
2565
2565
|
rtlTranslate: m
|
|
@@ -2574,11 +2574,11 @@ function Ws(t) {
|
|
|
2574
2574
|
let b = !1;
|
|
2575
2575
|
if (ue(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && ue(e.el, `.${e.params.slideActiveClass}`).length === 0)
|
|
2576
2576
|
return;
|
|
2577
|
-
const O = e.el, I = O.clientWidth, R = O.clientHeight, _ =
|
|
2578
|
-
m && (
|
|
2579
|
-
const
|
|
2580
|
-
for (let x = 0; x <
|
|
2581
|
-
const C =
|
|
2577
|
+
const O = e.el, I = O.clientWidth, R = O.clientHeight, _ = c.innerWidth, A = c.innerHeight, M = Be(O);
|
|
2578
|
+
m && (M.left -= O.scrollLeft);
|
|
2579
|
+
const L = [[M.left, M.top], [M.left + I, M.top], [M.left, M.top + R], [M.left + I, M.top + R]];
|
|
2580
|
+
for (let x = 0; x < L.length; x += 1) {
|
|
2581
|
+
const C = L[x];
|
|
2582
2582
|
if (C[0] >= 0 && C[0] <= _ && C[1] >= 0 && C[1] <= A) {
|
|
2583
2583
|
if (C[0] === 0 && C[1] === 0) continue;
|
|
2584
2584
|
b = !0;
|
|
@@ -2590,10 +2590,10 @@ function Ws(t) {
|
|
|
2590
2590
|
}
|
|
2591
2591
|
}
|
|
2592
2592
|
function f() {
|
|
2593
|
-
e.keyboard.enabled || (r.addEventListener("keydown",
|
|
2593
|
+
e.keyboard.enabled || (r.addEventListener("keydown", d), e.keyboard.enabled = !0);
|
|
2594
2594
|
}
|
|
2595
2595
|
function o() {
|
|
2596
|
-
e.keyboard.enabled && (r.removeEventListener("keydown",
|
|
2596
|
+
e.keyboard.enabled && (r.removeEventListener("keydown", d), e.keyboard.enabled = !1);
|
|
2597
2597
|
}
|
|
2598
2598
|
i("init", () => {
|
|
2599
2599
|
e.params.keyboard.enabled && f();
|
|
@@ -2604,7 +2604,7 @@ function Ws(t) {
|
|
|
2604
2604
|
disable: o
|
|
2605
2605
|
});
|
|
2606
2606
|
}
|
|
2607
|
-
function
|
|
2607
|
+
function Xs(t) {
|
|
2608
2608
|
let {
|
|
2609
2609
|
swiper: e,
|
|
2610
2610
|
extendParams: s,
|
|
@@ -2627,7 +2627,7 @@ function Ys(t) {
|
|
|
2627
2627
|
}), e.mousewheel = {
|
|
2628
2628
|
enabled: !1
|
|
2629
2629
|
};
|
|
2630
|
-
let
|
|
2630
|
+
let c, d = te(), f;
|
|
2631
2631
|
const o = [];
|
|
2632
2632
|
function u(p) {
|
|
2633
2633
|
let I = 0, R = 0, _ = 0, A = 0;
|
|
@@ -2645,7 +2645,7 @@ function Ys(t) {
|
|
|
2645
2645
|
e.enabled && (e.mouseEntered = !1);
|
|
2646
2646
|
}
|
|
2647
2647
|
function g(p) {
|
|
2648
|
-
return e.params.mousewheel.thresholdDelta && p.delta < e.params.mousewheel.thresholdDelta || e.params.mousewheel.thresholdTime && te() -
|
|
2648
|
+
return e.params.mousewheel.thresholdDelta && p.delta < e.params.mousewheel.thresholdDelta || e.params.mousewheel.thresholdTime && te() - d < e.params.mousewheel.thresholdTime ? !1 : p.delta >= 6 && te() - d < 60 ? !0 : (p.direction < 0 ? (!e.isEnd || e.params.loop) && !e.animating && (e.slideNext(), a("scroll", p.raw)) : (!e.isBeginning || e.params.loop) && !e.animating && (e.slidePrev(), a("scroll", p.raw)), d = new r.Date().getTime(), !1);
|
|
2649
2649
|
}
|
|
2650
2650
|
function n(p) {
|
|
2651
2651
|
const E = e.params.mousewheel;
|
|
@@ -2667,19 +2667,19 @@ function Ys(t) {
|
|
|
2667
2667
|
if (!e.mouseEntered && !R && !O.releaseOnEdges) return !0;
|
|
2668
2668
|
E.originalEvent && (E = E.originalEvent);
|
|
2669
2669
|
let _ = 0;
|
|
2670
|
-
const A = e.rtlTranslate ? -1 : 1,
|
|
2670
|
+
const A = e.rtlTranslate ? -1 : 1, M = u(E);
|
|
2671
2671
|
if (O.forceToAxis)
|
|
2672
2672
|
if (e.isHorizontal())
|
|
2673
|
-
if (Math.abs(
|
|
2673
|
+
if (Math.abs(M.pixelX) > Math.abs(M.pixelY)) _ = -M.pixelX * A;
|
|
2674
2674
|
else return !0;
|
|
2675
|
-
else if (Math.abs(
|
|
2675
|
+
else if (Math.abs(M.pixelY) > Math.abs(M.pixelX)) _ = -M.pixelY;
|
|
2676
2676
|
else return !0;
|
|
2677
2677
|
else
|
|
2678
|
-
_ = Math.abs(
|
|
2678
|
+
_ = Math.abs(M.pixelX) > Math.abs(M.pixelY) ? -M.pixelX * A : -M.pixelY;
|
|
2679
2679
|
if (_ === 0) return !0;
|
|
2680
2680
|
O.invert && (_ = -_);
|
|
2681
|
-
let
|
|
2682
|
-
if (
|
|
2681
|
+
let L = e.getTranslate() + _ * O.sensitivity;
|
|
2682
|
+
if (L >= e.minTranslate() && (L = e.minTranslate()), L <= e.maxTranslate() && (L = e.maxTranslate()), b = e.params.loop ? !0 : !(L === e.minTranslate() || L === e.maxTranslate()), b && e.params.nested && E.stopPropagation(), !e.params.freeMode || !e.params.freeMode.enabled) {
|
|
2683
2683
|
const x = {
|
|
2684
2684
|
time: te(),
|
|
2685
2685
|
delta: Math.abs(_),
|
|
@@ -2704,17 +2704,17 @@ function Ys(t) {
|
|
|
2704
2704
|
direction: x.direction < 0 ? "next" : "prev",
|
|
2705
2705
|
byMousewheel: !0
|
|
2706
2706
|
}), e.params.freeMode.sticky) {
|
|
2707
|
-
clearTimeout(
|
|
2707
|
+
clearTimeout(c), c = void 0, o.length >= 15 && o.shift();
|
|
2708
2708
|
const y = o.length ? o[o.length - 1] : void 0, B = o[0];
|
|
2709
2709
|
if (o.push(x), y && (x.delta > y.delta || x.direction !== y.direction))
|
|
2710
2710
|
o.splice(0);
|
|
2711
2711
|
else if (o.length >= 15 && x.time - B.time < 500 && B.delta - x.delta >= 1 && x.delta <= 6) {
|
|
2712
2712
|
const V = _ > 0 ? 0.8 : 0.2;
|
|
2713
|
-
f = x, o.splice(0),
|
|
2713
|
+
f = x, o.splice(0), c = Te(() => {
|
|
2714
2714
|
e.destroyed || !e.params || e.slideToClosest(e.params.speed, !0, void 0, V);
|
|
2715
2715
|
}, 0);
|
|
2716
2716
|
}
|
|
2717
|
-
|
|
2717
|
+
c || (c = Te(() => {
|
|
2718
2718
|
if (e.destroyed || !e.params) return;
|
|
2719
2719
|
const V = 0.5;
|
|
2720
2720
|
f = x, o.splice(0), e.slideToClosest(e.params.speed, !0, void 0, V);
|
|
@@ -2753,7 +2753,7 @@ function at(t, e, s, i) {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
}), s;
|
|
2755
2755
|
}
|
|
2756
|
-
function
|
|
2756
|
+
function Us(t) {
|
|
2757
2757
|
let {
|
|
2758
2758
|
swiper: e,
|
|
2759
2759
|
extendParams: s,
|
|
@@ -2778,22 +2778,22 @@ function Xs(t) {
|
|
|
2778
2778
|
let l;
|
|
2779
2779
|
return n && typeof n == "string" && e.isElement && (l = e.el.querySelector(n) || e.hostEl.querySelector(n), l) ? l : (n && (typeof n == "string" && (l = [...document.querySelectorAll(n)]), e.params.uniqueNavElements && typeof n == "string" && l && l.length > 1 && e.el.querySelectorAll(n).length === 1 ? l = e.el.querySelector(n) : l && l.length === 1 && (l = l[0])), n && !l ? n : l);
|
|
2780
2780
|
}
|
|
2781
|
-
function
|
|
2781
|
+
function c(n, l) {
|
|
2782
2782
|
const w = e.params.navigation;
|
|
2783
2783
|
n = F(n), n.forEach((v) => {
|
|
2784
2784
|
v && (v.classList[l ? "add" : "remove"](...w.disabledClass.split(" ")), v.tagName === "BUTTON" && (v.disabled = l), e.params.watchOverflow && e.enabled && v.classList[e.isLocked ? "add" : "remove"](w.lockClass));
|
|
2785
2785
|
});
|
|
2786
2786
|
}
|
|
2787
|
-
function
|
|
2787
|
+
function d() {
|
|
2788
2788
|
const {
|
|
2789
2789
|
nextEl: n,
|
|
2790
2790
|
prevEl: l
|
|
2791
2791
|
} = e.navigation;
|
|
2792
2792
|
if (e.params.loop) {
|
|
2793
|
-
|
|
2793
|
+
c(l, !1), c(n, !1);
|
|
2794
2794
|
return;
|
|
2795
2795
|
}
|
|
2796
|
-
|
|
2796
|
+
c(l, e.isBeginning && !e.params.rewind), c(n, e.isEnd && !e.params.rewind);
|
|
2797
2797
|
}
|
|
2798
2798
|
function f(n) {
|
|
2799
2799
|
n.preventDefault(), !(e.isBeginning && !e.params.loop && !e.params.rewind) && (e.slidePrev(), a("navigationPrev"));
|
|
@@ -2829,9 +2829,9 @@ function Xs(t) {
|
|
|
2829
2829
|
n.forEach((v) => w(v, "next")), l.forEach((v) => w(v, "prev"));
|
|
2830
2830
|
}
|
|
2831
2831
|
i("init", () => {
|
|
2832
|
-
e.params.navigation.enabled === !1 ? g() : (u(),
|
|
2832
|
+
e.params.navigation.enabled === !1 ? g() : (u(), d());
|
|
2833
2833
|
}), i("toEdge fromEdge lock unlock", () => {
|
|
2834
|
-
|
|
2834
|
+
d();
|
|
2835
2835
|
}), i("destroy", () => {
|
|
2836
2836
|
m();
|
|
2837
2837
|
}), i("enable disable", () => {
|
|
@@ -2840,7 +2840,7 @@ function Xs(t) {
|
|
|
2840
2840
|
prevEl: l
|
|
2841
2841
|
} = e.navigation;
|
|
2842
2842
|
if (n = F(n), l = F(l), e.enabled) {
|
|
2843
|
-
|
|
2843
|
+
d();
|
|
2844
2844
|
return;
|
|
2845
2845
|
}
|
|
2846
2846
|
[...n, ...l].filter((w) => !!w).forEach((w) => w.classList.add(e.params.navigation.lockClass));
|
|
@@ -2863,14 +2863,14 @@ function Xs(t) {
|
|
|
2863
2863
|
}
|
|
2864
2864
|
});
|
|
2865
2865
|
const T = () => {
|
|
2866
|
-
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), u(),
|
|
2866
|
+
e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")), u(), d();
|
|
2867
2867
|
}, g = () => {
|
|
2868
2868
|
e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")), m();
|
|
2869
2869
|
};
|
|
2870
2870
|
Object.assign(e.navigation, {
|
|
2871
2871
|
enable: T,
|
|
2872
2872
|
disable: g,
|
|
2873
|
-
update:
|
|
2873
|
+
update: d,
|
|
2874
2874
|
init: u,
|
|
2875
2875
|
destroy: m
|
|
2876
2876
|
});
|
|
@@ -2878,7 +2878,7 @@ function Xs(t) {
|
|
|
2878
2878
|
function re(t) {
|
|
2879
2879
|
return t === void 0 && (t = ""), `.${t.trim().replace(/([\.:!+\/()[\]])/g, "\\$1").replace(/ /g, ".")}`;
|
|
2880
2880
|
}
|
|
2881
|
-
function
|
|
2881
|
+
function qs(t) {
|
|
2882
2882
|
let {
|
|
2883
2883
|
swiper: e,
|
|
2884
2884
|
extendParams: s,
|
|
@@ -2921,7 +2921,7 @@ function Us(t) {
|
|
|
2921
2921
|
el: null,
|
|
2922
2922
|
bullets: []
|
|
2923
2923
|
};
|
|
2924
|
-
let
|
|
2924
|
+
let c, d = 0;
|
|
2925
2925
|
function f() {
|
|
2926
2926
|
return !e.params.pagination.el || !e.pagination.el || Array.isArray(e.pagination.el) && e.pagination.el.length === 0;
|
|
2927
2927
|
}
|
|
@@ -2942,7 +2942,7 @@ function Us(t) {
|
|
|
2942
2942
|
if (!p)
|
|
2943
2943
|
return;
|
|
2944
2944
|
h.preventDefault();
|
|
2945
|
-
const E =
|
|
2945
|
+
const E = Me(p) * e.params.slidesPerGroup;
|
|
2946
2946
|
if (e.params.loop) {
|
|
2947
2947
|
if (e.realIndex === E) return;
|
|
2948
2948
|
const b = u(e.realIndex, E, e.slides.length);
|
|
@@ -2959,46 +2959,46 @@ function Us(t) {
|
|
|
2959
2959
|
const I = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : e.slides.length, R = e.params.loop ? Math.ceil(I / e.params.slidesPerGroup) : e.snapGrid.length;
|
|
2960
2960
|
if (e.params.loop ? (O = e.previousRealIndex || 0, b = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (b = e.snapIndex, O = e.previousSnapIndex) : (O = e.previousIndex || 0, b = e.activeIndex || 0), p.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
|
|
2961
2961
|
const _ = e.pagination.bullets;
|
|
2962
|
-
let A,
|
|
2963
|
-
if (p.dynamicBullets && (
|
|
2964
|
-
x.style[e.isHorizontal() ? "width" : "height"] = `${
|
|
2965
|
-
}), p.dynamicMainBullets > 1 && O !== void 0 && (
|
|
2962
|
+
let A, M, L;
|
|
2963
|
+
if (p.dynamicBullets && (c = tt(_[0], e.isHorizontal() ? "width" : "height"), E.forEach((x) => {
|
|
2964
|
+
x.style[e.isHorizontal() ? "width" : "height"] = `${c * (p.dynamicMainBullets + 4)}px`;
|
|
2965
|
+
}), p.dynamicMainBullets > 1 && O !== void 0 && (d += b - (O || 0), d > p.dynamicMainBullets - 1 ? d = p.dynamicMainBullets - 1 : d < 0 && (d = 0)), A = Math.max(b - d, 0), M = A + (Math.min(_.length, p.dynamicMainBullets) - 1), L = (M + A) / 2), _.forEach((x) => {
|
|
2966
2966
|
const C = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((N) => `${p.bulletActiveClass}${N}`)].map((N) => typeof N == "string" && N.includes(" ") ? N.split(" ") : N).flat();
|
|
2967
2967
|
x.classList.remove(...C);
|
|
2968
2968
|
}), E.length > 1)
|
|
2969
2969
|
_.forEach((x) => {
|
|
2970
|
-
const C =
|
|
2971
|
-
C === b ? x.classList.add(...p.bulletActiveClass.split(" ")) : e.isElement && x.setAttribute("part", "bullet"), p.dynamicBullets && (C >= A && C <=
|
|
2970
|
+
const C = Me(x);
|
|
2971
|
+
C === b ? x.classList.add(...p.bulletActiveClass.split(" ")) : e.isElement && x.setAttribute("part", "bullet"), p.dynamicBullets && (C >= A && C <= M && x.classList.add(...`${p.bulletActiveClass}-main`.split(" ")), C === A && o(x, "prev"), C === M && o(x, "next"));
|
|
2972
2972
|
});
|
|
2973
2973
|
else {
|
|
2974
2974
|
const x = _[b];
|
|
2975
2975
|
if (x && x.classList.add(...p.bulletActiveClass.split(" ")), e.isElement && _.forEach((C, N) => {
|
|
2976
2976
|
C.setAttribute("part", N === b ? "bullet-active" : "bullet");
|
|
2977
2977
|
}), p.dynamicBullets) {
|
|
2978
|
-
const C = _[A], N = _[
|
|
2979
|
-
for (let $ = A; $ <=
|
|
2978
|
+
const C = _[A], N = _[M];
|
|
2979
|
+
for (let $ = A; $ <= M; $ += 1)
|
|
2980
2980
|
_[$] && _[$].classList.add(...`${p.bulletActiveClass}-main`.split(" "));
|
|
2981
2981
|
o(C, "prev"), o(N, "next");
|
|
2982
2982
|
}
|
|
2983
2983
|
}
|
|
2984
2984
|
if (p.dynamicBullets) {
|
|
2985
|
-
const x = Math.min(_.length, p.dynamicMainBullets + 4), C = (
|
|
2985
|
+
const x = Math.min(_.length, p.dynamicMainBullets + 4), C = (c * x - c) / 2 - L * c, N = h ? "right" : "left";
|
|
2986
2986
|
_.forEach(($) => {
|
|
2987
2987
|
$.style[e.isHorizontal() ? N : "top"] = `${C}px`;
|
|
2988
2988
|
});
|
|
2989
2989
|
}
|
|
2990
2990
|
}
|
|
2991
2991
|
E.forEach((_, A) => {
|
|
2992
|
-
if (p.type === "fraction" && (_.querySelectorAll(re(p.currentClass)).forEach((
|
|
2993
|
-
|
|
2994
|
-
}), _.querySelectorAll(re(p.totalClass)).forEach((
|
|
2995
|
-
|
|
2992
|
+
if (p.type === "fraction" && (_.querySelectorAll(re(p.currentClass)).forEach((M) => {
|
|
2993
|
+
M.textContent = p.formatFractionCurrent(b + 1);
|
|
2994
|
+
}), _.querySelectorAll(re(p.totalClass)).forEach((M) => {
|
|
2995
|
+
M.textContent = p.formatFractionTotal(R);
|
|
2996
2996
|
})), p.type === "progressbar") {
|
|
2997
|
-
let
|
|
2998
|
-
p.progressbarOpposite ?
|
|
2999
|
-
const
|
|
2997
|
+
let M;
|
|
2998
|
+
p.progressbarOpposite ? M = e.isHorizontal() ? "vertical" : "horizontal" : M = e.isHorizontal() ? "horizontal" : "vertical";
|
|
2999
|
+
const L = (b + 1) / R;
|
|
3000
3000
|
let x = 1, C = 1;
|
|
3001
|
-
|
|
3001
|
+
M === "horizontal" ? x = L : C = L, _.querySelectorAll(re(p.progressbarFillClass)).forEach((N) => {
|
|
3002
3002
|
N.style.transform = `translate3d(0,0,0) scaleX(${x}) scaleY(${C})`, N.style.transitionDuration = `${e.params.speed}ms`;
|
|
3003
3003
|
});
|
|
3004
3004
|
}
|
|
@@ -3032,7 +3032,7 @@ function Us(t) {
|
|
|
3032
3032
|
typeof h.el == "string" && e.isElement && (p = e.el.querySelector(h.el)), !p && typeof h.el == "string" && (p = [...document.querySelectorAll(h.el)]), p || (p = h.el), !(!p || p.length === 0) && (e.params.uniqueNavElements && typeof h.el == "string" && Array.isArray(p) && p.length > 1 && (p = [...e.el.querySelectorAll(h.el)], p.length > 1 && (p = p.find((E) => ue(E, ".swiper")[0] === e.el))), Array.isArray(p) && p.length === 1 && (p = p[0]), Object.assign(e.pagination, {
|
|
3033
3033
|
el: p
|
|
3034
3034
|
}), p = F(p), p.forEach((E) => {
|
|
3035
|
-
h.type === "bullets" && h.clickable && E.classList.add(...(h.clickableClass || "").split(" ")), E.classList.add(h.modifierClass + h.type), E.classList.add(e.isHorizontal() ? h.horizontalClass : h.verticalClass), h.type === "bullets" && h.dynamicBullets && (E.classList.add(`${h.modifierClass}${h.type}-dynamic`),
|
|
3035
|
+
h.type === "bullets" && h.clickable && E.classList.add(...(h.clickableClass || "").split(" ")), E.classList.add(h.modifierClass + h.type), E.classList.add(e.isHorizontal() ? h.horizontalClass : h.verticalClass), h.type === "bullets" && h.dynamicBullets && (E.classList.add(`${h.modifierClass}${h.type}-dynamic`), d = 0, h.dynamicMainBullets < 1 && (h.dynamicMainBullets = 1)), h.type === "progressbar" && h.progressbarOpposite && E.classList.add(h.progressbarOppositeClass), h.clickable && E.addEventListener("click", m), e.enabled || E.classList.add(h.lockClass);
|
|
3036
3036
|
}));
|
|
3037
3037
|
}
|
|
3038
3038
|
function l() {
|
|
@@ -3099,7 +3099,7 @@ function Us(t) {
|
|
|
3099
3099
|
destroy: l
|
|
3100
3100
|
});
|
|
3101
3101
|
}
|
|
3102
|
-
function
|
|
3102
|
+
function js(t) {
|
|
3103
3103
|
let {
|
|
3104
3104
|
swiper: e,
|
|
3105
3105
|
extendParams: s,
|
|
@@ -3107,7 +3107,7 @@ function qs(t) {
|
|
|
3107
3107
|
emit: a
|
|
3108
3108
|
} = t;
|
|
3109
3109
|
const r = q();
|
|
3110
|
-
let
|
|
3110
|
+
let c = !1, d = null, f = null, o, u, m, T;
|
|
3111
3111
|
s({
|
|
3112
3112
|
scrollbar: {
|
|
3113
3113
|
el: null,
|
|
@@ -3128,34 +3128,34 @@ function qs(t) {
|
|
|
3128
3128
|
function g() {
|
|
3129
3129
|
if (!e.params.scrollbar.el || !e.scrollbar.el) return;
|
|
3130
3130
|
const {
|
|
3131
|
-
scrollbar:
|
|
3131
|
+
scrollbar: L,
|
|
3132
3132
|
rtlTranslate: x
|
|
3133
3133
|
} = e, {
|
|
3134
3134
|
dragEl: C,
|
|
3135
3135
|
el: N
|
|
3136
|
-
} =
|
|
3136
|
+
} = L, $ = e.params.scrollbar, S = e.params.loop ? e.progressLoop : e.progress;
|
|
3137
3137
|
let y = u, B = (m - u) * S;
|
|
3138
|
-
x ? (B = -B, B > 0 ? (y = u - B, B = 0) : -B + u > m && (y = m + B)) : B < 0 ? (y = u + B, B = 0) : B + u > m && (y = m - B), e.isHorizontal() ? (C.style.transform = `translate3d(${B}px, 0, 0)`, C.style.width = `${y}px`) : (C.style.transform = `translate3d(0px, ${B}px, 0)`, C.style.height = `${y}px`), $.hide && (clearTimeout(
|
|
3138
|
+
x ? (B = -B, B > 0 ? (y = u - B, B = 0) : -B + u > m && (y = m + B)) : B < 0 ? (y = u + B, B = 0) : B + u > m && (y = m - B), e.isHorizontal() ? (C.style.transform = `translate3d(${B}px, 0, 0)`, C.style.width = `${y}px`) : (C.style.transform = `translate3d(0px, ${B}px, 0)`, C.style.height = `${y}px`), $.hide && (clearTimeout(d), N.style.opacity = 1, d = setTimeout(() => {
|
|
3139
3139
|
N.style.opacity = 0, N.style.transitionDuration = "400ms";
|
|
3140
3140
|
}, 1e3));
|
|
3141
3141
|
}
|
|
3142
|
-
function n(
|
|
3143
|
-
!e.params.scrollbar.el || !e.scrollbar.el || (e.scrollbar.dragEl.style.transitionDuration = `${
|
|
3142
|
+
function n(L) {
|
|
3143
|
+
!e.params.scrollbar.el || !e.scrollbar.el || (e.scrollbar.dragEl.style.transitionDuration = `${L}ms`);
|
|
3144
3144
|
}
|
|
3145
3145
|
function l() {
|
|
3146
3146
|
if (!e.params.scrollbar.el || !e.scrollbar.el) return;
|
|
3147
3147
|
const {
|
|
3148
|
-
scrollbar:
|
|
3148
|
+
scrollbar: L
|
|
3149
3149
|
} = e, {
|
|
3150
3150
|
dragEl: x,
|
|
3151
3151
|
el: C
|
|
3152
|
-
} =
|
|
3153
|
-
x.style.width = "", x.style.height = "", m = e.isHorizontal() ? C.offsetWidth : C.offsetHeight, T = e.size / (e.virtualSize + e.params.slidesOffsetBefore - (e.params.centeredSlides ? e.snapGrid[0] : 0)), e.params.scrollbar.dragSize === "auto" ? u = m * T : u = parseInt(e.params.scrollbar.dragSize, 10), e.isHorizontal() ? x.style.width = `${u}px` : x.style.height = `${u}px`, T >= 1 ? C.style.display = "none" : C.style.display = "", e.params.scrollbar.hide && (C.style.opacity = 0), e.params.watchOverflow && e.enabled &&
|
|
3152
|
+
} = L;
|
|
3153
|
+
x.style.width = "", x.style.height = "", m = e.isHorizontal() ? C.offsetWidth : C.offsetHeight, T = e.size / (e.virtualSize + e.params.slidesOffsetBefore - (e.params.centeredSlides ? e.snapGrid[0] : 0)), e.params.scrollbar.dragSize === "auto" ? u = m * T : u = parseInt(e.params.scrollbar.dragSize, 10), e.isHorizontal() ? x.style.width = `${u}px` : x.style.height = `${u}px`, T >= 1 ? C.style.display = "none" : C.style.display = "", e.params.scrollbar.hide && (C.style.opacity = 0), e.params.watchOverflow && e.enabled && L.el.classList[e.isLocked ? "add" : "remove"](e.params.scrollbar.lockClass);
|
|
3154
3154
|
}
|
|
3155
|
-
function w(
|
|
3156
|
-
return e.isHorizontal() ?
|
|
3155
|
+
function w(L) {
|
|
3156
|
+
return e.isHorizontal() ? L.clientX : L.clientY;
|
|
3157
3157
|
}
|
|
3158
|
-
function v(
|
|
3158
|
+
function v(L) {
|
|
3159
3159
|
const {
|
|
3160
3160
|
scrollbar: x,
|
|
3161
3161
|
rtlTranslate: C
|
|
@@ -3163,11 +3163,11 @@ function qs(t) {
|
|
|
3163
3163
|
el: N
|
|
3164
3164
|
} = x;
|
|
3165
3165
|
let $;
|
|
3166
|
-
$ = (w(
|
|
3166
|
+
$ = (w(L) - Be(N)[e.isHorizontal() ? "left" : "top"] - (o !== null ? o : u / 2)) / (m - u), $ = Math.max(Math.min($, 1), 0), C && ($ = 1 - $);
|
|
3167
3167
|
const S = e.minTranslate() + (e.maxTranslate() - e.minTranslate()) * $;
|
|
3168
3168
|
e.updateProgress(S), e.setTranslate(S), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
3169
3169
|
}
|
|
3170
|
-
function h(
|
|
3170
|
+
function h(L) {
|
|
3171
3171
|
const x = e.params.scrollbar, {
|
|
3172
3172
|
scrollbar: C,
|
|
3173
3173
|
wrapperEl: N
|
|
@@ -3175,9 +3175,9 @@ function qs(t) {
|
|
|
3175
3175
|
el: $,
|
|
3176
3176
|
dragEl: S
|
|
3177
3177
|
} = C;
|
|
3178
|
-
|
|
3178
|
+
c = !0, o = L.target === S ? w(L) - L.target.getBoundingClientRect()[e.isHorizontal() ? "left" : "top"] : null, L.preventDefault(), L.stopPropagation(), N.style.transitionDuration = "100ms", S.style.transitionDuration = "100ms", v(L), clearTimeout(f), $.style.transitionDuration = "0ms", x.hide && ($.style.opacity = 1), e.params.cssMode && (e.wrapperEl.style["scroll-snap-type"] = "none"), a("scrollbarDragStart", L);
|
|
3179
3179
|
}
|
|
3180
|
-
function p(
|
|
3180
|
+
function p(L) {
|
|
3181
3181
|
const {
|
|
3182
3182
|
scrollbar: x,
|
|
3183
3183
|
wrapperEl: C
|
|
@@ -3185,20 +3185,20 @@ function qs(t) {
|
|
|
3185
3185
|
el: N,
|
|
3186
3186
|
dragEl: $
|
|
3187
3187
|
} = x;
|
|
3188
|
-
|
|
3188
|
+
c && (L.preventDefault && L.cancelable ? L.preventDefault() : L.returnValue = !1, v(L), C.style.transitionDuration = "0ms", N.style.transitionDuration = "0ms", $.style.transitionDuration = "0ms", a("scrollbarDragMove", L));
|
|
3189
3189
|
}
|
|
3190
|
-
function E(
|
|
3190
|
+
function E(L) {
|
|
3191
3191
|
const x = e.params.scrollbar, {
|
|
3192
3192
|
scrollbar: C,
|
|
3193
3193
|
wrapperEl: N
|
|
3194
3194
|
} = e, {
|
|
3195
3195
|
el: $
|
|
3196
3196
|
} = C;
|
|
3197
|
-
|
|
3197
|
+
c && (c = !1, e.params.cssMode && (e.wrapperEl.style["scroll-snap-type"] = "", N.style.transitionDuration = ""), x.hide && (clearTimeout(f), f = Te(() => {
|
|
3198
3198
|
$.style.opacity = 0, $.style.transitionDuration = "400ms";
|
|
3199
|
-
}, 1e3)), a("scrollbarDragEnd",
|
|
3199
|
+
}, 1e3)), a("scrollbarDragEnd", L), x.snapOnRelease && e.slideToClosest());
|
|
3200
3200
|
}
|
|
3201
|
-
function b(
|
|
3201
|
+
function b(L) {
|
|
3202
3202
|
const {
|
|
3203
3203
|
scrollbar: x,
|
|
3204
3204
|
params: C
|
|
@@ -3212,7 +3212,7 @@ function qs(t) {
|
|
|
3212
3212
|
capture: !1
|
|
3213
3213
|
} : !1;
|
|
3214
3214
|
if (!$) return;
|
|
3215
|
-
const B =
|
|
3215
|
+
const B = L === "on" ? "addEventListener" : "removeEventListener";
|
|
3216
3216
|
$[B]("pointerdown", h, S), r[B]("pointermove", p, S), r[B]("pointerup", E, y);
|
|
3217
3217
|
}
|
|
3218
3218
|
function O() {
|
|
@@ -3223,7 +3223,7 @@ function qs(t) {
|
|
|
3223
3223
|
}
|
|
3224
3224
|
function R() {
|
|
3225
3225
|
const {
|
|
3226
|
-
scrollbar:
|
|
3226
|
+
scrollbar: L,
|
|
3227
3227
|
el: x
|
|
3228
3228
|
} = e;
|
|
3229
3229
|
e.params.scrollbar = at(e, e.originalParams.scrollbar, e.params.scrollbar, {
|
|
@@ -3237,55 +3237,55 @@ function qs(t) {
|
|
|
3237
3237
|
} else N || (N = C.el);
|
|
3238
3238
|
e.params.uniqueNavElements && typeof C.el == "string" && N.length > 1 && x.querySelectorAll(C.el).length === 1 && (N = x.querySelector(C.el)), N.length > 0 && (N = N[0]), N.classList.add(e.isHorizontal() ? C.horizontalClass : C.verticalClass);
|
|
3239
3239
|
let $;
|
|
3240
|
-
N && ($ = N.querySelector(re(e.params.scrollbar.dragClass)), $ || ($ = ee("div", e.params.scrollbar.dragClass), N.append($))), Object.assign(
|
|
3240
|
+
N && ($ = N.querySelector(re(e.params.scrollbar.dragClass)), $ || ($ = ee("div", e.params.scrollbar.dragClass), N.append($))), Object.assign(L, {
|
|
3241
3241
|
el: N,
|
|
3242
3242
|
dragEl: $
|
|
3243
3243
|
}), C.draggable && O(), N && N.classList[e.enabled ? "remove" : "add"](...ce(e.params.scrollbar.lockClass));
|
|
3244
3244
|
}
|
|
3245
3245
|
function _() {
|
|
3246
|
-
const
|
|
3247
|
-
x && x.classList.remove(...ce(e.isHorizontal() ?
|
|
3246
|
+
const L = e.params.scrollbar, x = e.scrollbar.el;
|
|
3247
|
+
x && x.classList.remove(...ce(e.isHorizontal() ? L.horizontalClass : L.verticalClass)), I();
|
|
3248
3248
|
}
|
|
3249
3249
|
i("changeDirection", () => {
|
|
3250
3250
|
if (!e.scrollbar || !e.scrollbar.el) return;
|
|
3251
|
-
const
|
|
3251
|
+
const L = e.params.scrollbar;
|
|
3252
3252
|
let {
|
|
3253
3253
|
el: x
|
|
3254
3254
|
} = e.scrollbar;
|
|
3255
3255
|
x = F(x), x.forEach((C) => {
|
|
3256
|
-
C.classList.remove(
|
|
3256
|
+
C.classList.remove(L.horizontalClass, L.verticalClass), C.classList.add(e.isHorizontal() ? L.horizontalClass : L.verticalClass);
|
|
3257
3257
|
});
|
|
3258
3258
|
}), i("init", () => {
|
|
3259
|
-
e.params.scrollbar.enabled === !1 ?
|
|
3259
|
+
e.params.scrollbar.enabled === !1 ? M() : (R(), l(), g());
|
|
3260
3260
|
}), i("update resize observerUpdate lock unlock changeDirection", () => {
|
|
3261
3261
|
l();
|
|
3262
3262
|
}), i("setTranslate", () => {
|
|
3263
3263
|
g();
|
|
3264
|
-
}), i("setTransition", (
|
|
3264
|
+
}), i("setTransition", (L, x) => {
|
|
3265
3265
|
n(x);
|
|
3266
3266
|
}), i("enable disable", () => {
|
|
3267
3267
|
const {
|
|
3268
|
-
el:
|
|
3268
|
+
el: L
|
|
3269
3269
|
} = e.scrollbar;
|
|
3270
|
-
|
|
3270
|
+
L && L.classList[e.enabled ? "remove" : "add"](...ce(e.params.scrollbar.lockClass));
|
|
3271
3271
|
}), i("destroy", () => {
|
|
3272
3272
|
_();
|
|
3273
3273
|
});
|
|
3274
3274
|
const A = () => {
|
|
3275
3275
|
e.el.classList.remove(...ce(e.params.scrollbar.scrollbarDisabledClass)), e.scrollbar.el && e.scrollbar.el.classList.remove(...ce(e.params.scrollbar.scrollbarDisabledClass)), R(), l(), g();
|
|
3276
|
-
},
|
|
3276
|
+
}, M = () => {
|
|
3277
3277
|
e.el.classList.add(...ce(e.params.scrollbar.scrollbarDisabledClass)), e.scrollbar.el && e.scrollbar.el.classList.add(...ce(e.params.scrollbar.scrollbarDisabledClass)), _();
|
|
3278
3278
|
};
|
|
3279
3279
|
Object.assign(e.scrollbar, {
|
|
3280
3280
|
enable: A,
|
|
3281
|
-
disable:
|
|
3281
|
+
disable: M,
|
|
3282
3282
|
updateSize: l,
|
|
3283
3283
|
setTranslate: g,
|
|
3284
3284
|
init: R,
|
|
3285
3285
|
destroy: _
|
|
3286
3286
|
});
|
|
3287
3287
|
}
|
|
3288
|
-
function
|
|
3288
|
+
function Ks(t) {
|
|
3289
3289
|
let {
|
|
3290
3290
|
swiper: e,
|
|
3291
3291
|
extendParams: s,
|
|
@@ -3316,7 +3316,7 @@ function js(t) {
|
|
|
3316
3316
|
h += ` rotate(${p}deg)`;
|
|
3317
3317
|
}
|
|
3318
3318
|
f.style.transform = h;
|
|
3319
|
-
},
|
|
3319
|
+
}, c = () => {
|
|
3320
3320
|
const {
|
|
3321
3321
|
el: f,
|
|
3322
3322
|
slides: o,
|
|
@@ -3332,7 +3332,7 @@ function js(t) {
|
|
|
3332
3332
|
r(v, w);
|
|
3333
3333
|
});
|
|
3334
3334
|
});
|
|
3335
|
-
},
|
|
3335
|
+
}, d = function(f) {
|
|
3336
3336
|
f === void 0 && (f = e.params.speed);
|
|
3337
3337
|
const {
|
|
3338
3338
|
el: o,
|
|
@@ -3346,14 +3346,14 @@ function js(t) {
|
|
|
3346
3346
|
i("beforeInit", () => {
|
|
3347
3347
|
e.params.parallax.enabled && (e.params.watchSlidesProgress = !0, e.originalParams.watchSlidesProgress = !0);
|
|
3348
3348
|
}), i("init", () => {
|
|
3349
|
-
e.params.parallax.enabled &&
|
|
3349
|
+
e.params.parallax.enabled && c();
|
|
3350
3350
|
}), i("setTranslate", () => {
|
|
3351
|
-
e.params.parallax.enabled &&
|
|
3351
|
+
e.params.parallax.enabled && c();
|
|
3352
3352
|
}), i("setTransition", (f, o) => {
|
|
3353
|
-
e.params.parallax.enabled &&
|
|
3353
|
+
e.params.parallax.enabled && d(o);
|
|
3354
3354
|
});
|
|
3355
3355
|
}
|
|
3356
|
-
function
|
|
3356
|
+
function Zs(t) {
|
|
3357
3357
|
let {
|
|
3358
3358
|
swiper: e,
|
|
3359
3359
|
extendParams: s,
|
|
@@ -3375,7 +3375,7 @@ function Ks(t) {
|
|
|
3375
3375
|
}), e.zoom = {
|
|
3376
3376
|
enabled: !1
|
|
3377
3377
|
};
|
|
3378
|
-
let
|
|
3378
|
+
let c = 1, d = !1, f = !1, o = {
|
|
3379
3379
|
x: 0,
|
|
3380
3380
|
y: 0
|
|
3381
3381
|
};
|
|
@@ -3444,7 +3444,7 @@ function Ks(t) {
|
|
|
3444
3444
|
y: null
|
|
3445
3445
|
};
|
|
3446
3446
|
const z = n.imageEl.getBoundingClientRect();
|
|
3447
|
-
return [(g[0].pageX + (g[1].pageX - g[0].pageX) / 2 - z.x - r.scrollX) /
|
|
3447
|
+
return [(g[0].pageX + (g[1].pageX - g[0].pageX) / 2 - z.x - r.scrollX) / c, (g[0].pageY + (g[1].pageY - g[0].pageY) / 2 - z.y - r.scrollY) / c];
|
|
3448
3448
|
}
|
|
3449
3449
|
function b() {
|
|
3450
3450
|
return e.isElement ? "swiper-slide" : `.${e.params.slideClass}`;
|
|
@@ -3474,26 +3474,26 @@ function Ks(t) {
|
|
|
3474
3474
|
const [G, W] = E();
|
|
3475
3475
|
n.originX = G, n.originY = W, n.imageEl.style.transitionDuration = "0ms";
|
|
3476
3476
|
}
|
|
3477
|
-
|
|
3477
|
+
d = !0;
|
|
3478
3478
|
}
|
|
3479
3479
|
}
|
|
3480
3480
|
function _(z) {
|
|
3481
3481
|
if (!O(z)) return;
|
|
3482
3482
|
const P = e.params.zoom, G = e.zoom, W = g.findIndex((K) => K.pointerId === z.pointerId);
|
|
3483
|
-
W >= 0 && (g[W] = z), !(g.length < 2) && (T = !0, n.scaleMove = h(), n.imageEl && (G.scale = n.scaleMove / n.scaleStart *
|
|
3483
|
+
W >= 0 && (g[W] = z), !(g.length < 2) && (T = !0, n.scaleMove = h(), n.imageEl && (G.scale = n.scaleMove / n.scaleStart * c, G.scale > n.maxRatio && (G.scale = n.maxRatio - 1 + (G.scale - n.maxRatio + 1) ** 0.5), G.scale < P.minRatio && (G.scale = P.minRatio + 1 - (P.minRatio - G.scale + 1) ** 0.5), n.imageEl.style.transform = `translate3d(0,0,0) scale(${G.scale})`));
|
|
3484
3484
|
}
|
|
3485
3485
|
function A(z) {
|
|
3486
3486
|
if (!O(z) || z.pointerType === "mouse" && z.type === "pointerout") return;
|
|
3487
3487
|
const P = e.params.zoom, G = e.zoom, W = g.findIndex((K) => K.pointerId === z.pointerId);
|
|
3488
|
-
W >= 0 && g.splice(W, 1), !(!m || !T) && (m = !1, T = !1, n.imageEl && (G.scale = Math.max(Math.min(G.scale, n.maxRatio), P.minRatio), n.imageEl.style.transitionDuration = `${e.params.speed}ms`, n.imageEl.style.transform = `translate3d(0,0,0) scale(${G.scale})`,
|
|
3488
|
+
W >= 0 && g.splice(W, 1), !(!m || !T) && (m = !1, T = !1, n.imageEl && (G.scale = Math.max(Math.min(G.scale, n.maxRatio), P.minRatio), n.imageEl.style.transitionDuration = `${e.params.speed}ms`, n.imageEl.style.transform = `translate3d(0,0,0) scale(${G.scale})`, c = G.scale, d = !1, G.scale > 1 && n.slideEl ? n.slideEl.classList.add(`${P.zoomedSlideClass}`) : G.scale <= 1 && n.slideEl && n.slideEl.classList.remove(`${P.zoomedSlideClass}`), G.scale === 1 && (n.originX = 0, n.originY = 0, n.slideEl = void 0)));
|
|
3489
3489
|
}
|
|
3490
|
-
let
|
|
3491
|
-
function
|
|
3490
|
+
let M;
|
|
3491
|
+
function L() {
|
|
3492
3492
|
e.touchEventsData.preventTouchMoveFromPointerMove = !1;
|
|
3493
3493
|
}
|
|
3494
3494
|
function x() {
|
|
3495
|
-
clearTimeout(
|
|
3496
|
-
e.destroyed ||
|
|
3495
|
+
clearTimeout(M), e.touchEventsData.preventTouchMoveFromPointerMove = !0, M = setTimeout(() => {
|
|
3496
|
+
e.destroyed || L();
|
|
3497
3497
|
});
|
|
3498
3498
|
}
|
|
3499
3499
|
function C(z) {
|
|
@@ -3520,18 +3520,18 @@ function Ks(t) {
|
|
|
3520
3520
|
}
|
|
3521
3521
|
l.isMoved || (l.width = n.imageEl.offsetWidth || n.imageEl.clientWidth, l.height = n.imageEl.offsetHeight || n.imageEl.clientHeight, l.startX = et(n.imageWrapEl, "x") || 0, l.startY = et(n.imageWrapEl, "y") || 0, n.slideWidth = n.slideEl.offsetWidth, n.slideHeight = n.slideEl.offsetHeight, n.imageWrapEl.style.transitionDuration = "0ms");
|
|
3522
3522
|
const K = l.width * W.scale, le = l.height * W.scale;
|
|
3523
|
-
if (l.minX = Math.min(n.slideWidth / 2 - K / 2, 0), l.maxX = -l.minX, l.minY = Math.min(n.slideHeight / 2 - le / 2, 0), l.maxY = -l.minY, l.touchesCurrent.x = g.length > 0 ? g[0].pageX : z.pageX, l.touchesCurrent.y = g.length > 0 ? g[0].pageY : z.pageY, Math.max(Math.abs(l.touchesCurrent.x - l.touchesStart.x), Math.abs(l.touchesCurrent.y - l.touchesStart.y)) > 5 && (e.allowClick = !1), !l.isMoved && !
|
|
3523
|
+
if (l.minX = Math.min(n.slideWidth / 2 - K / 2, 0), l.maxX = -l.minX, l.minY = Math.min(n.slideHeight / 2 - le / 2, 0), l.maxY = -l.minY, l.touchesCurrent.x = g.length > 0 ? g[0].pageX : z.pageX, l.touchesCurrent.y = g.length > 0 ? g[0].pageY : z.pageY, Math.max(Math.abs(l.touchesCurrent.x - l.touchesStart.x), Math.abs(l.touchesCurrent.y - l.touchesStart.y)) > 5 && (e.allowClick = !1), !l.isMoved && !d) {
|
|
3524
3524
|
if (e.isHorizontal() && (Math.floor(l.minX) === Math.floor(l.startX) && l.touchesCurrent.x < l.touchesStart.x || Math.floor(l.maxX) === Math.floor(l.startX) && l.touchesCurrent.x > l.touchesStart.x)) {
|
|
3525
|
-
l.isTouched = !1,
|
|
3525
|
+
l.isTouched = !1, L();
|
|
3526
3526
|
return;
|
|
3527
3527
|
}
|
|
3528
3528
|
if (!e.isHorizontal() && (Math.floor(l.minY) === Math.floor(l.startY) && l.touchesCurrent.y < l.touchesStart.y || Math.floor(l.maxY) === Math.floor(l.startY) && l.touchesCurrent.y > l.touchesStart.y)) {
|
|
3529
|
-
l.isTouched = !1,
|
|
3529
|
+
l.isTouched = !1, L();
|
|
3530
3530
|
return;
|
|
3531
3531
|
}
|
|
3532
3532
|
}
|
|
3533
3533
|
z.cancelable && z.preventDefault(), z.stopPropagation(), x(), l.isMoved = !0;
|
|
3534
|
-
const ae = (W.scale -
|
|
3534
|
+
const ae = (W.scale - c) / (n.maxRatio - e.params.zoom.minRatio), {
|
|
3535
3535
|
originX: de,
|
|
3536
3536
|
originY: Z
|
|
3537
3537
|
} = n;
|
|
@@ -3555,16 +3555,16 @@ function Ks(t) {
|
|
|
3555
3555
|
}
|
|
3556
3556
|
function S() {
|
|
3557
3557
|
const z = e.zoom;
|
|
3558
|
-
n.slideEl && e.activeIndex !== e.slides.indexOf(n.slideEl) && (n.imageEl && (n.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), n.imageWrapEl && (n.imageWrapEl.style.transform = "translate3d(0,0,0)"), n.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`), z.scale = 1,
|
|
3558
|
+
n.slideEl && e.activeIndex !== e.slides.indexOf(n.slideEl) && (n.imageEl && (n.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), n.imageWrapEl && (n.imageWrapEl.style.transform = "translate3d(0,0,0)"), n.slideEl.classList.remove(`${e.params.zoom.zoomedSlideClass}`), z.scale = 1, c = 1, n.slideEl = void 0, n.imageEl = void 0, n.imageWrapEl = void 0, n.originX = 0, n.originY = 0);
|
|
3559
3559
|
}
|
|
3560
3560
|
function y(z) {
|
|
3561
|
-
if (
|
|
3561
|
+
if (c <= 1 || !n.imageWrapEl || !O(z) || !I(z)) return;
|
|
3562
3562
|
const P = r.getComputedStyle(n.imageWrapEl).transform, G = new r.DOMMatrix(P);
|
|
3563
3563
|
if (!f) {
|
|
3564
3564
|
f = !0, o.x = z.clientX, o.y = z.clientY, l.startX = G.e, l.startY = G.f, l.width = n.imageEl.offsetWidth || n.imageEl.clientWidth, l.height = n.imageEl.offsetHeight || n.imageEl.clientHeight, n.slideWidth = n.slideEl.offsetWidth, n.slideHeight = n.slideEl.offsetHeight;
|
|
3565
3565
|
return;
|
|
3566
3566
|
}
|
|
3567
|
-
const W = (z.clientX - o.x) * u, K = (z.clientY - o.y) * u, le = l.width *
|
|
3567
|
+
const W = (z.clientX - o.x) * u, K = (z.clientY - o.y) * u, le = l.width * c, oe = l.height * c, ae = n.slideWidth, de = n.slideHeight, Z = Math.min(ae / 2 - le / 2, 0), se = -Z, ye = Math.min(de / 2 - oe / 2, 0), Oe = -ye, he = Math.max(Math.min(l.startX + W, se), Z), ge = Math.max(Math.min(l.startY + K, Oe), ye);
|
|
3568
3568
|
n.imageWrapEl.style.transitionDuration = "0ms", n.imageWrapEl.style.transform = `translate3d(${he}px, ${ge}px, 0)`, o.x = z.clientX, o.y = z.clientY, l.startX = he, l.startY = ge, l.currentX = he, l.currentY = ge;
|
|
3569
3569
|
}
|
|
3570
3570
|
function B(z) {
|
|
@@ -3578,10 +3578,10 @@ function Ks(t) {
|
|
|
3578
3578
|
e.params.cssMode && (e.wrapperEl.style.overflow = "hidden", e.wrapperEl.style.touchAction = "none"), n.slideEl.classList.add(`${G.zoomedSlideClass}`);
|
|
3579
3579
|
let W, K, le, oe, ae, de, Z, se, ye, Oe, he, ge, Pe, De, Ve, Fe, We, Ye;
|
|
3580
3580
|
typeof l.touchesStart.x > "u" && z ? (W = z.pageX, K = z.pageY) : (W = l.touchesStart.x, K = l.touchesStart.y);
|
|
3581
|
-
const Xe =
|
|
3582
|
-
|
|
3581
|
+
const Xe = c, we = typeof z == "number" ? z : null;
|
|
3582
|
+
c === 1 && we && (W = void 0, K = void 0, l.touchesStart.x = void 0, l.touchesStart.y = void 0);
|
|
3583
3583
|
const lt = p();
|
|
3584
|
-
P.scale = we || lt,
|
|
3584
|
+
P.scale = we || lt, c = we || lt, z && !(c === 1 && we) ? (We = n.slideEl.offsetWidth, Ye = n.slideEl.offsetHeight, le = Be(n.slideEl).left + r.scrollX, oe = Be(n.slideEl).top + r.scrollY, ae = le + We / 2 - W, de = oe + Ye / 2 - K, ye = n.imageEl.offsetWidth || n.imageEl.clientWidth, Oe = n.imageEl.offsetHeight || n.imageEl.clientHeight, he = ye * P.scale, ge = Oe * P.scale, Pe = Math.min(We / 2 - he / 2, 0), De = Math.min(Ye / 2 - ge / 2, 0), Ve = -Pe, Fe = -De, Xe > 0 && we && typeof l.currentX == "number" && typeof l.currentY == "number" ? (Z = l.currentX * P.scale / Xe, se = l.currentY * P.scale / Xe) : (Z = ae * P.scale, se = de * P.scale), Z < Pe && (Z = Pe), Z > Ve && (Z = Ve), se < De && (se = De), se > Fe && (se = Fe)) : (Z = 0, se = 0), we && P.scale === 1 && (n.originX = 0, n.originY = 0), l.currentX = Z, l.currentY = se, n.imageWrapEl.style.transitionDuration = "300ms", n.imageWrapEl.style.transform = `translate3d(${Z}px, ${se}px,0)`, n.imageEl.style.transitionDuration = "300ms", n.imageEl.style.transform = `translate3d(0,0,0) scale(${P.scale})`;
|
|
3585
3585
|
}
|
|
3586
3586
|
function V() {
|
|
3587
3587
|
const z = e.zoom, P = e.params.zoom;
|
|
@@ -3590,7 +3590,7 @@ function Ks(t) {
|
|
|
3590
3590
|
let G = n.slideEl.querySelector(`.${P.containerClass}`);
|
|
3591
3591
|
G && (G = G.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), n.imageEl = G, G ? n.imageWrapEl = ue(n.imageEl, `.${P.containerClass}`)[0] : n.imageWrapEl = void 0;
|
|
3592
3592
|
}
|
|
3593
|
-
!n.imageEl || !n.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), z.scale = 1,
|
|
3593
|
+
!n.imageEl || !n.imageWrapEl || (e.params.cssMode && (e.wrapperEl.style.overflow = "", e.wrapperEl.style.touchAction = ""), z.scale = 1, c = 1, l.currentX = void 0, l.currentY = void 0, l.touchesStart.x = void 0, l.touchesStart.y = void 0, n.imageWrapEl.style.transitionDuration = "300ms", n.imageWrapEl.style.transform = "translate3d(0,0,0)", n.imageEl.style.transitionDuration = "300ms", n.imageEl.style.transform = "translate3d(0,0,0) scale(1)", n.slideEl.classList.remove(`${P.zoomedSlideClass}`), n.slideEl = void 0, n.originX = 0, n.originY = 0, e.params.zoom.panOnMouseMove && (o = {
|
|
3594
3594
|
x: 0,
|
|
3595
3595
|
y: 0
|
|
3596
3596
|
}, f && (f = !1, l.startX = 0, l.startY = 0)));
|
|
@@ -3658,7 +3658,7 @@ function Ks(t) {
|
|
|
3658
3658
|
toggle: X
|
|
3659
3659
|
});
|
|
3660
3660
|
}
|
|
3661
|
-
function
|
|
3661
|
+
function Qs(t) {
|
|
3662
3662
|
let {
|
|
3663
3663
|
swiper: e,
|
|
3664
3664
|
extendParams: s,
|
|
@@ -3692,7 +3692,7 @@ function Zs(t) {
|
|
|
3692
3692
|
function r(o) {
|
|
3693
3693
|
e.controller.spline = e.params.loop ? new a(e.slidesGrid, o.slidesGrid) : new a(e.snapGrid, o.snapGrid);
|
|
3694
3694
|
}
|
|
3695
|
-
function
|
|
3695
|
+
function c(o, u) {
|
|
3696
3696
|
const m = e.controller.control;
|
|
3697
3697
|
let T, g;
|
|
3698
3698
|
const n = e.constructor;
|
|
@@ -3706,13 +3706,13 @@ function Zs(t) {
|
|
|
3706
3706
|
m[w] !== u && m[w] instanceof n && l(m[w]);
|
|
3707
3707
|
else m instanceof n && u !== m && l(m);
|
|
3708
3708
|
}
|
|
3709
|
-
function
|
|
3709
|
+
function d(o, u) {
|
|
3710
3710
|
const m = e.constructor, T = e.controller.control;
|
|
3711
3711
|
let g;
|
|
3712
3712
|
function n(l) {
|
|
3713
3713
|
l.destroyed || (l.setTransition(o, e), o !== 0 && (l.transitionStart(), l.params.autoHeight && Te(() => {
|
|
3714
3714
|
l.updateAutoHeight();
|
|
3715
|
-
}),
|
|
3715
|
+
}), Le(l.wrapperEl, () => {
|
|
3716
3716
|
T && l.transitionEnd();
|
|
3717
3717
|
})));
|
|
3718
3718
|
}
|
|
@@ -3751,11 +3751,11 @@ function Zs(t) {
|
|
|
3751
3751
|
}), i("setTransition", (o, u, m) => {
|
|
3752
3752
|
!e.controller.control || e.controller.control.destroyed || e.controller.setTransition(u, m);
|
|
3753
3753
|
}), Object.assign(e.controller, {
|
|
3754
|
-
setTranslate:
|
|
3755
|
-
setTransition:
|
|
3754
|
+
setTranslate: c,
|
|
3755
|
+
setTransition: d
|
|
3756
3756
|
});
|
|
3757
3757
|
}
|
|
3758
|
-
function
|
|
3758
|
+
function Js(t) {
|
|
3759
3759
|
let {
|
|
3760
3760
|
swiper: e,
|
|
3761
3761
|
extendParams: s,
|
|
@@ -3782,7 +3782,7 @@ function Qs(t) {
|
|
|
3782
3782
|
}), e.a11y = {
|
|
3783
3783
|
clicked: !1
|
|
3784
3784
|
};
|
|
3785
|
-
let a = null, r,
|
|
3785
|
+
let a = null, r, c, d = (/* @__PURE__ */ new Date()).getTime();
|
|
3786
3786
|
function f(S) {
|
|
3787
3787
|
const y = a;
|
|
3788
3788
|
y.length !== 0 && ne(y, S);
|
|
@@ -3869,26 +3869,26 @@ function Qs(t) {
|
|
|
3869
3869
|
function R() {
|
|
3870
3870
|
const S = e.params.a11y;
|
|
3871
3871
|
O() && e.pagination.bullets.forEach((y) => {
|
|
3872
|
-
e.params.pagination.clickable && (u(y), e.params.pagination.renderBullet || (T(y, "button"), l(y, S.paginationBulletMessage.replace(/\{\{index\}\}/,
|
|
3872
|
+
e.params.pagination.clickable && (u(y), e.params.pagination.renderBullet || (T(y, "button"), l(y, S.paginationBulletMessage.replace(/\{\{index\}\}/, Me(y) + 1)))), y.matches(re(e.params.pagination.bulletActiveClass)) ? y.setAttribute("aria-current", "true") : y.removeAttribute("aria-current");
|
|
3873
3873
|
});
|
|
3874
3874
|
}
|
|
3875
3875
|
const _ = (S, y, B) => {
|
|
3876
3876
|
u(S), S.tagName !== "BUTTON" && (T(S, "button"), S.addEventListener("keydown", E)), l(S, B), n(S, y);
|
|
3877
3877
|
}, A = (S) => {
|
|
3878
|
-
|
|
3879
|
-
},
|
|
3878
|
+
c && c !== S.target && !c.contains(S.target) && (r = !0), e.a11y.clicked = !0;
|
|
3879
|
+
}, M = () => {
|
|
3880
3880
|
r = !1, requestAnimationFrame(() => {
|
|
3881
3881
|
requestAnimationFrame(() => {
|
|
3882
3882
|
e.destroyed || (e.a11y.clicked = !1);
|
|
3883
3883
|
});
|
|
3884
3884
|
});
|
|
3885
|
-
},
|
|
3886
|
-
|
|
3885
|
+
}, L = (S) => {
|
|
3886
|
+
d = (/* @__PURE__ */ new Date()).getTime();
|
|
3887
3887
|
}, x = (S) => {
|
|
3888
|
-
if (e.a11y.clicked || !e.params.a11y.scrollOnFocus || (/* @__PURE__ */ new Date()).getTime() -
|
|
3888
|
+
if (e.a11y.clicked || !e.params.a11y.scrollOnFocus || (/* @__PURE__ */ new Date()).getTime() - d < 100) return;
|
|
3889
3889
|
const y = S.target.closest(`.${e.params.slideClass}, swiper-slide`);
|
|
3890
3890
|
if (!y || !e.slides.includes(y)) return;
|
|
3891
|
-
|
|
3891
|
+
c = y;
|
|
3892
3892
|
const B = e.slides.indexOf(y) === e.activeIndex, V = e.params.watchSlidesProgress && e.visibleSlides && e.visibleSlides.includes(y);
|
|
3893
3893
|
B || V || S.sourceCapabilities && S.sourceCapabilities.firesTouchEvents || (e.isHorizontal() ? e.el.scrollLeft = 0 : e.el.scrollTop = 0, requestAnimationFrame(() => {
|
|
3894
3894
|
r || (e.params.loop ? e.slideToLoop(e.getSlideIndexWhenGrid(parseInt(y.getAttribute("data-swiper-slide-index"))), 0) : e.slideTo(e.getSlideIndexWhenGrid(e.slides.indexOf(y)), 0), r = !1);
|
|
@@ -3914,7 +3914,7 @@ function Qs(t) {
|
|
|
3914
3914
|
} = e.navigation ? e.navigation : {};
|
|
3915
3915
|
U = F(U), ie = F(ie), U && U.forEach((z) => _(z, V, S.nextSlideMessage)), ie && ie.forEach((z) => _(z, V, S.prevSlideMessage)), I() && F(e.pagination.el).forEach((P) => {
|
|
3916
3916
|
P.addEventListener("keydown", E);
|
|
3917
|
-
}), q().addEventListener("visibilitychange",
|
|
3917
|
+
}), q().addEventListener("visibilitychange", L), e.el.addEventListener("focus", x, !0), e.el.addEventListener("focus", x, !0), e.el.addEventListener("pointerdown", A, !0), e.el.addEventListener("pointerup", M, !0);
|
|
3918
3918
|
};
|
|
3919
3919
|
function $() {
|
|
3920
3920
|
a && a.remove();
|
|
@@ -3924,7 +3924,7 @@ function Qs(t) {
|
|
|
3924
3924
|
} = e.navigation ? e.navigation : {};
|
|
3925
3925
|
S = F(S), y = F(y), S && S.forEach((V) => V.removeEventListener("keydown", E)), y && y.forEach((V) => V.removeEventListener("keydown", E)), I() && F(e.pagination.el).forEach((X) => {
|
|
3926
3926
|
X.removeEventListener("keydown", E);
|
|
3927
|
-
}), q().removeEventListener("visibilitychange",
|
|
3927
|
+
}), q().removeEventListener("visibilitychange", L), e.el && typeof e.el != "string" && (e.el.removeEventListener("focus", x, !0), e.el.removeEventListener("pointerdown", A, !0), e.el.removeEventListener("pointerup", M, !0));
|
|
3928
3928
|
}
|
|
3929
3929
|
i("beforeInit", () => {
|
|
3930
3930
|
a = ee("span", e.params.a11y.notificationClass), a.setAttribute("aria-live", "assertive"), a.setAttribute("aria-atomic", "true");
|
|
@@ -3940,7 +3940,7 @@ function Qs(t) {
|
|
|
3940
3940
|
e.params.a11y.enabled && $();
|
|
3941
3941
|
});
|
|
3942
3942
|
}
|
|
3943
|
-
function
|
|
3943
|
+
function ei(t) {
|
|
3944
3944
|
let {
|
|
3945
3945
|
swiper: e,
|
|
3946
3946
|
extendParams: s,
|
|
@@ -3956,7 +3956,7 @@ function Js(t) {
|
|
|
3956
3956
|
}
|
|
3957
3957
|
});
|
|
3958
3958
|
let a = !1, r = {};
|
|
3959
|
-
const
|
|
3959
|
+
const c = (g) => g.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), d = (g) => {
|
|
3960
3960
|
const n = Y();
|
|
3961
3961
|
let l;
|
|
3962
3962
|
g ? l = new URL(g) : l = n.location;
|
|
@@ -3971,7 +3971,7 @@ function Js(t) {
|
|
|
3971
3971
|
let w;
|
|
3972
3972
|
e.params.url ? w = new URL(e.params.url) : w = l.location;
|
|
3973
3973
|
const v = e.virtual && e.params.virtual.enabled ? e.slidesEl.querySelector(`[data-swiper-slide-index="${n}"]`) : e.slides[n];
|
|
3974
|
-
let h =
|
|
3974
|
+
let h = c(v.getAttribute("data-history"));
|
|
3975
3975
|
if (e.params.history.root.length > 0) {
|
|
3976
3976
|
let E = e.params.history.root;
|
|
3977
3977
|
E[E.length - 1] === "/" && (E = E.slice(0, E.length - 1)), h = `${E}/${g ? `${g}/` : ""}${h}`;
|
|
@@ -3987,7 +3987,7 @@ function Js(t) {
|
|
|
3987
3987
|
if (n)
|
|
3988
3988
|
for (let w = 0, v = e.slides.length; w < v; w += 1) {
|
|
3989
3989
|
const h = e.slides[w];
|
|
3990
|
-
if (
|
|
3990
|
+
if (c(h.getAttribute("data-history")) === n) {
|
|
3991
3991
|
const E = e.getSlideIndex(h);
|
|
3992
3992
|
e.slideTo(E, g, l);
|
|
3993
3993
|
}
|
|
@@ -3995,7 +3995,7 @@ function Js(t) {
|
|
|
3995
3995
|
else
|
|
3996
3996
|
e.slideTo(0, g, l);
|
|
3997
3997
|
}, u = () => {
|
|
3998
|
-
r =
|
|
3998
|
+
r = d(e.params.url), o(e.params.speed, r.value, !1);
|
|
3999
3999
|
}, m = () => {
|
|
4000
4000
|
const g = Y();
|
|
4001
4001
|
if (e.params.history) {
|
|
@@ -4003,7 +4003,7 @@ function Js(t) {
|
|
|
4003
4003
|
e.params.history.enabled = !1, e.params.hashNavigation.enabled = !0;
|
|
4004
4004
|
return;
|
|
4005
4005
|
}
|
|
4006
|
-
if (a = !0, r =
|
|
4006
|
+
if (a = !0, r = d(e.params.url), !r.key && !r.value) {
|
|
4007
4007
|
e.params.history.replaceState || g.addEventListener("popstate", u);
|
|
4008
4008
|
return;
|
|
4009
4009
|
}
|
|
@@ -4023,14 +4023,14 @@ function Js(t) {
|
|
|
4023
4023
|
a && e.params.cssMode && f(e.params.history.key, e.activeIndex);
|
|
4024
4024
|
});
|
|
4025
4025
|
}
|
|
4026
|
-
function
|
|
4026
|
+
function ti(t) {
|
|
4027
4027
|
let {
|
|
4028
4028
|
swiper: e,
|
|
4029
4029
|
extendParams: s,
|
|
4030
4030
|
emit: i,
|
|
4031
4031
|
on: a
|
|
4032
4032
|
} = t, r = !1;
|
|
4033
|
-
const
|
|
4033
|
+
const c = q(), d = Y();
|
|
4034
4034
|
s({
|
|
4035
4035
|
hashNavigation: {
|
|
4036
4036
|
enabled: !1,
|
|
@@ -4047,7 +4047,7 @@ function ei(t) {
|
|
|
4047
4047
|
});
|
|
4048
4048
|
const f = () => {
|
|
4049
4049
|
i("hashChange");
|
|
4050
|
-
const T =
|
|
4050
|
+
const T = c.location.hash.replace("#", ""), g = e.virtual && e.params.virtual.enabled ? e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`) : e.slides[e.activeIndex], n = g ? g.getAttribute("data-hash") : "";
|
|
4051
4051
|
if (T !== n) {
|
|
4052
4052
|
const l = e.params.hashNavigation.getSlideIndex(e, T);
|
|
4053
4053
|
if (typeof l > "u" || Number.isNaN(l)) return;
|
|
@@ -4056,18 +4056,18 @@ function ei(t) {
|
|
|
4056
4056
|
}, o = () => {
|
|
4057
4057
|
if (!r || !e.params.hashNavigation.enabled) return;
|
|
4058
4058
|
const T = e.virtual && e.params.virtual.enabled ? e.slidesEl.querySelector(`[data-swiper-slide-index="${e.activeIndex}"]`) : e.slides[e.activeIndex], g = T ? T.getAttribute("data-hash") || T.getAttribute("data-history") : "";
|
|
4059
|
-
e.params.hashNavigation.replaceState &&
|
|
4059
|
+
e.params.hashNavigation.replaceState && d.history && d.history.replaceState ? (d.history.replaceState(null, null, `#${g}` || ""), i("hashSet")) : (c.location.hash = g || "", i("hashSet"));
|
|
4060
4060
|
}, u = () => {
|
|
4061
4061
|
if (!e.params.hashNavigation.enabled || e.params.history && e.params.history.enabled) return;
|
|
4062
4062
|
r = !0;
|
|
4063
|
-
const T =
|
|
4063
|
+
const T = c.location.hash.replace("#", "");
|
|
4064
4064
|
if (T) {
|
|
4065
4065
|
const n = e.params.hashNavigation.getSlideIndex(e, T);
|
|
4066
4066
|
e.slideTo(n || 0, 0, e.params.runCallbacksOnInit, !0);
|
|
4067
4067
|
}
|
|
4068
|
-
e.params.hashNavigation.watchState &&
|
|
4068
|
+
e.params.hashNavigation.watchState && d.addEventListener("hashchange", f);
|
|
4069
4069
|
}, m = () => {
|
|
4070
|
-
e.params.hashNavigation.watchState &&
|
|
4070
|
+
e.params.hashNavigation.watchState && d.removeEventListener("hashchange", f);
|
|
4071
4071
|
};
|
|
4072
4072
|
a("init", () => {
|
|
4073
4073
|
e.params.hashNavigation.enabled && u();
|
|
@@ -4079,7 +4079,7 @@ function ei(t) {
|
|
|
4079
4079
|
r && e.params.cssMode && o();
|
|
4080
4080
|
});
|
|
4081
4081
|
}
|
|
4082
|
-
function
|
|
4082
|
+
function si(t) {
|
|
4083
4083
|
let {
|
|
4084
4084
|
swiper: e,
|
|
4085
4085
|
extendParams: s,
|
|
@@ -4102,7 +4102,7 @@ function ti(t) {
|
|
|
4102
4102
|
pauseOnMouseEnter: !1
|
|
4103
4103
|
}
|
|
4104
4104
|
});
|
|
4105
|
-
let
|
|
4105
|
+
let c, d, f = r && r.autoplay ? r.autoplay.delay : 3e3, o = r && r.autoplay ? r.autoplay.delay : 3e3, u, m = (/* @__PURE__ */ new Date()).getTime(), T, g, n, l, w, v, h;
|
|
4106
4106
|
function p(y) {
|
|
4107
4107
|
!e || e.destroyed || !e.wrapperEl || y.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", p), !(h || y.detail && y.detail.bySwiperTouchMove) && A());
|
|
4108
4108
|
}
|
|
@@ -4110,7 +4110,7 @@ function ti(t) {
|
|
|
4110
4110
|
if (e.destroyed || !e.autoplay.running) return;
|
|
4111
4111
|
e.autoplay.paused ? T = !0 : T && (o = u, T = !1);
|
|
4112
4112
|
const y = e.autoplay.paused ? u : m + o - (/* @__PURE__ */ new Date()).getTime();
|
|
4113
|
-
e.autoplay.timeLeft = y, a("autoplayTimeLeft", y, y / f),
|
|
4113
|
+
e.autoplay.timeLeft = y, a("autoplayTimeLeft", y, y / f), d = requestAnimationFrame(() => {
|
|
4114
4114
|
E();
|
|
4115
4115
|
});
|
|
4116
4116
|
}, b = () => {
|
|
@@ -4118,7 +4118,7 @@ function ti(t) {
|
|
|
4118
4118
|
return e.virtual && e.params.virtual.enabled ? y = e.slides.find((V) => V.classList.contains("swiper-slide-active")) : y = e.slides[e.activeIndex], y ? parseInt(y.getAttribute("data-swiper-autoplay"), 10) : void 0;
|
|
4119
4119
|
}, O = (y) => {
|
|
4120
4120
|
if (e.destroyed || !e.autoplay.running) return;
|
|
4121
|
-
cancelAnimationFrame(
|
|
4121
|
+
cancelAnimationFrame(d), E();
|
|
4122
4122
|
let B = typeof y > "u" ? e.params.autoplay.delay : y;
|
|
4123
4123
|
f = e.params.autoplay.delay, o = e.params.autoplay.delay;
|
|
4124
4124
|
const V = b();
|
|
@@ -4128,7 +4128,7 @@ function ti(t) {
|
|
|
4128
4128
|
O();
|
|
4129
4129
|
})));
|
|
4130
4130
|
};
|
|
4131
|
-
return B > 0 ? (clearTimeout(
|
|
4131
|
+
return B > 0 ? (clearTimeout(c), c = setTimeout(() => {
|
|
4132
4132
|
U();
|
|
4133
4133
|
}, B)) : requestAnimationFrame(() => {
|
|
4134
4134
|
U();
|
|
@@ -4136,10 +4136,10 @@ function ti(t) {
|
|
|
4136
4136
|
}, I = () => {
|
|
4137
4137
|
m = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, O(), a("autoplayStart");
|
|
4138
4138
|
}, R = () => {
|
|
4139
|
-
e.autoplay.running = !1, clearTimeout(
|
|
4139
|
+
e.autoplay.running = !1, clearTimeout(c), cancelAnimationFrame(d), a("autoplayStop");
|
|
4140
4140
|
}, _ = (y, B) => {
|
|
4141
4141
|
if (e.destroyed || !e.autoplay.running) return;
|
|
4142
|
-
clearTimeout(
|
|
4142
|
+
clearTimeout(c), y || (v = !0);
|
|
4143
4143
|
const V = () => {
|
|
4144
4144
|
a("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", p) : A();
|
|
4145
4145
|
};
|
|
@@ -4150,22 +4150,22 @@ function ti(t) {
|
|
|
4150
4150
|
u = (u || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - m), !(e.isEnd && u < 0 && !e.params.loop) && (u < 0 && (u = 0), V());
|
|
4151
4151
|
}, A = () => {
|
|
4152
4152
|
e.isEnd && u < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (m = (/* @__PURE__ */ new Date()).getTime(), v ? (v = !1, O(u)) : O(), e.autoplay.paused = !1, a("autoplayResume"));
|
|
4153
|
-
},
|
|
4153
|
+
}, M = () => {
|
|
4154
4154
|
if (e.destroyed || !e.autoplay.running) return;
|
|
4155
4155
|
const y = q();
|
|
4156
4156
|
y.visibilityState === "hidden" && (v = !0, _(!0)), y.visibilityState === "visible" && A();
|
|
4157
|
-
},
|
|
4157
|
+
}, L = (y) => {
|
|
4158
4158
|
y.pointerType === "mouse" && (v = !0, h = !0, !(e.animating || e.autoplay.paused) && _(!0));
|
|
4159
4159
|
}, x = (y) => {
|
|
4160
4160
|
y.pointerType === "mouse" && (h = !1, e.autoplay.paused && A());
|
|
4161
4161
|
}, C = () => {
|
|
4162
|
-
e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter",
|
|
4162
|
+
e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", L), e.el.addEventListener("pointerleave", x));
|
|
4163
4163
|
}, N = () => {
|
|
4164
|
-
e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter",
|
|
4164
|
+
e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", L), e.el.removeEventListener("pointerleave", x));
|
|
4165
4165
|
}, $ = () => {
|
|
4166
|
-
q().addEventListener("visibilitychange",
|
|
4166
|
+
q().addEventListener("visibilitychange", M);
|
|
4167
4167
|
}, S = () => {
|
|
4168
|
-
q().removeEventListener("visibilitychange",
|
|
4168
|
+
q().removeEventListener("visibilitychange", M);
|
|
4169
4169
|
};
|
|
4170
4170
|
i("init", () => {
|
|
4171
4171
|
e.params.autoplay.enabled && (C(), $(), I());
|
|
@@ -4189,7 +4189,7 @@ function ti(t) {
|
|
|
4189
4189
|
}
|
|
4190
4190
|
}), i("touchEnd", () => {
|
|
4191
4191
|
if (!(e.destroyed || !e.autoplay.running || !g)) {
|
|
4192
|
-
if (clearTimeout(l), clearTimeout(
|
|
4192
|
+
if (clearTimeout(l), clearTimeout(c), e.params.autoplay.disableOnInteraction) {
|
|
4193
4193
|
n = !1, g = !1;
|
|
4194
4194
|
return;
|
|
4195
4195
|
}
|
|
@@ -4204,7 +4204,7 @@ function ti(t) {
|
|
|
4204
4204
|
resume: A
|
|
4205
4205
|
});
|
|
4206
4206
|
}
|
|
4207
|
-
function
|
|
4207
|
+
function ii(t) {
|
|
4208
4208
|
let {
|
|
4209
4209
|
swiper: e,
|
|
4210
4210
|
extendParams: s,
|
|
@@ -4223,7 +4223,7 @@ function si(t) {
|
|
|
4223
4223
|
e.thumbs = {
|
|
4224
4224
|
swiper: null
|
|
4225
4225
|
};
|
|
4226
|
-
function
|
|
4226
|
+
function c() {
|
|
4227
4227
|
const o = e.thumbs.swiper;
|
|
4228
4228
|
if (!o || o.destroyed) return;
|
|
4229
4229
|
const u = o.clickedIndex, m = o.clickedSlide;
|
|
@@ -4231,7 +4231,7 @@ function si(t) {
|
|
|
4231
4231
|
let T;
|
|
4232
4232
|
o.params.loop ? T = parseInt(o.clickedSlide.getAttribute("data-swiper-slide-index"), 10) : T = u, e.params.loop ? e.slideToLoop(T) : e.slideTo(T);
|
|
4233
4233
|
}
|
|
4234
|
-
function
|
|
4234
|
+
function d() {
|
|
4235
4235
|
const {
|
|
4236
4236
|
thumbs: o
|
|
4237
4237
|
} = e.params;
|
|
@@ -4255,7 +4255,7 @@ function si(t) {
|
|
|
4255
4255
|
slideToClickedSlide: !1
|
|
4256
4256
|
}), e.thumbs.swiper = new u(m), r = !0;
|
|
4257
4257
|
}
|
|
4258
|
-
return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass), e.thumbs.swiper.on("tap",
|
|
4258
|
+
return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass), e.thumbs.swiper.on("tap", c), !0;
|
|
4259
4259
|
}
|
|
4260
4260
|
function f(o) {
|
|
4261
4261
|
const u = e.thumbs.swiper;
|
|
@@ -4292,10 +4292,10 @@ function si(t) {
|
|
|
4292
4292
|
const u = q(), m = () => {
|
|
4293
4293
|
const g = typeof o.swiper == "string" ? u.querySelector(o.swiper) : o.swiper;
|
|
4294
4294
|
if (g && g.swiper)
|
|
4295
|
-
o.swiper = g.swiper,
|
|
4295
|
+
o.swiper = g.swiper, d(), f(!0);
|
|
4296
4296
|
else if (g) {
|
|
4297
4297
|
const n = `${e.params.eventsPrefix}init`, l = (w) => {
|
|
4298
|
-
o.swiper = w.detail[0], g.removeEventListener(n, l),
|
|
4298
|
+
o.swiper = w.detail[0], g.removeEventListener(n, l), d(), f(!0), o.swiper.update(), e.update();
|
|
4299
4299
|
};
|
|
4300
4300
|
g.addEventListener(n, l);
|
|
4301
4301
|
}
|
|
@@ -4306,7 +4306,7 @@ function si(t) {
|
|
|
4306
4306
|
};
|
|
4307
4307
|
requestAnimationFrame(T);
|
|
4308
4308
|
} else
|
|
4309
|
-
|
|
4309
|
+
d(), f(!0);
|
|
4310
4310
|
}), i("slideChange update resize observerUpdate", () => {
|
|
4311
4311
|
f();
|
|
4312
4312
|
}), i("setTransition", (o, u) => {
|
|
@@ -4316,11 +4316,11 @@ function si(t) {
|
|
|
4316
4316
|
const o = e.thumbs.swiper;
|
|
4317
4317
|
!o || o.destroyed || r && o.destroy();
|
|
4318
4318
|
}), Object.assign(e.thumbs, {
|
|
4319
|
-
init:
|
|
4319
|
+
init: d,
|
|
4320
4320
|
update: f
|
|
4321
4321
|
});
|
|
4322
4322
|
}
|
|
4323
|
-
function
|
|
4323
|
+
function ai(t) {
|
|
4324
4324
|
let {
|
|
4325
4325
|
swiper: e,
|
|
4326
4326
|
extendParams: s,
|
|
@@ -4346,7 +4346,7 @@ function ii(t) {
|
|
|
4346
4346
|
currentPos: e.rtl ? e.translate : -e.translate
|
|
4347
4347
|
});
|
|
4348
4348
|
}
|
|
4349
|
-
function
|
|
4349
|
+
function c() {
|
|
4350
4350
|
if (e.params.cssMode) return;
|
|
4351
4351
|
const {
|
|
4352
4352
|
touchEventsData: f,
|
|
@@ -4360,7 +4360,7 @@ function ii(t) {
|
|
|
4360
4360
|
time: te()
|
|
4361
4361
|
});
|
|
4362
4362
|
}
|
|
4363
|
-
function
|
|
4363
|
+
function d(f) {
|
|
4364
4364
|
let {
|
|
4365
4365
|
currentPos: o
|
|
4366
4366
|
} = f;
|
|
@@ -4382,8 +4382,8 @@ function ii(t) {
|
|
|
4382
4382
|
}
|
|
4383
4383
|
if (u.freeMode.momentum) {
|
|
4384
4384
|
if (n.velocities.length > 1) {
|
|
4385
|
-
const R = n.velocities.pop(), _ = n.velocities.pop(), A = R.position - _.position,
|
|
4386
|
-
e.velocity = A /
|
|
4385
|
+
const R = n.velocities.pop(), _ = n.velocities.pop(), A = R.position - _.position, M = R.time - _.time;
|
|
4386
|
+
e.velocity = A / M, e.velocity /= 2, Math.abs(e.velocity) < u.freeMode.minimumVelocity && (e.velocity = 0), (M > 150 || te() - R.time > 300) && (e.velocity = 0);
|
|
4387
4387
|
} else
|
|
4388
4388
|
e.velocity = 0;
|
|
4389
4389
|
e.velocity *= u.freeMode.momentumVelocityRatio, n.velocities.length = 0;
|
|
@@ -4418,13 +4418,13 @@ function ii(t) {
|
|
|
4418
4418
|
e.slideToClosest();
|
|
4419
4419
|
return;
|
|
4420
4420
|
}
|
|
4421
|
-
u.freeMode.momentumBounce && E ? (e.updateProgress(b), e.setTransition(v), e.setTranslate(p), e.transitionStart(!0, e.swipeDirection), e.animating = !0,
|
|
4421
|
+
u.freeMode.momentumBounce && E ? (e.updateProgress(b), e.setTransition(v), e.setTranslate(p), e.transitionStart(!0, e.swipeDirection), e.animating = !0, Le(m, () => {
|
|
4422
4422
|
!e || e.destroyed || !n.allowMomentumBounce || (i("momentumBounce"), e.setTransition(u.speed), setTimeout(() => {
|
|
4423
|
-
e.setTranslate(b),
|
|
4423
|
+
e.setTranslate(b), Le(m, () => {
|
|
4424
4424
|
!e || e.destroyed || e.transitionEnd();
|
|
4425
4425
|
});
|
|
4426
4426
|
}, 0));
|
|
4427
|
-
})) : e.velocity ? (i("_freeModeNoMomentumRelease"), e.updateProgress(p), e.setTransition(v), e.setTranslate(p), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0,
|
|
4427
|
+
})) : e.velocity ? (i("_freeModeNoMomentumRelease"), e.updateProgress(p), e.setTransition(v), e.setTranslate(p), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0, Le(m, () => {
|
|
4428
4428
|
!e || e.destroyed || e.transitionEnd();
|
|
4429
4429
|
}))) : e.updateProgress(p), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
4430
4430
|
} else if (u.freeMode.sticky) {
|
|
@@ -4436,12 +4436,12 @@ function ii(t) {
|
|
|
4436
4436
|
Object.assign(e, {
|
|
4437
4437
|
freeMode: {
|
|
4438
4438
|
onTouchStart: r,
|
|
4439
|
-
onTouchMove:
|
|
4440
|
-
onTouchEnd:
|
|
4439
|
+
onTouchMove: c,
|
|
4440
|
+
onTouchEnd: d
|
|
4441
4441
|
}
|
|
4442
4442
|
});
|
|
4443
4443
|
}
|
|
4444
|
-
function
|
|
4444
|
+
function ri(t) {
|
|
4445
4445
|
let {
|
|
4446
4446
|
swiper: e,
|
|
4447
4447
|
extendParams: s,
|
|
@@ -4453,7 +4453,7 @@ function ai(t) {
|
|
|
4453
4453
|
fill: "column"
|
|
4454
4454
|
}
|
|
4455
4455
|
});
|
|
4456
|
-
let a, r,
|
|
4456
|
+
let a, r, c, d;
|
|
4457
4457
|
const f = () => {
|
|
4458
4458
|
let l = e.params.spaceBetween;
|
|
4459
4459
|
return typeof l == "string" && l.indexOf("%") >= 0 ? l = parseFloat(l.replace("%", "")) / 100 * e.size : typeof l == "string" && (l = parseFloat(l)), l;
|
|
@@ -4464,7 +4464,7 @@ function ai(t) {
|
|
|
4464
4464
|
rows: v,
|
|
4465
4465
|
fill: h
|
|
4466
4466
|
} = e.params.grid, p = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : l.length;
|
|
4467
|
-
|
|
4467
|
+
c = Math.floor(p / v), Math.floor(p / v) === p / v ? a = p : a = Math.ceil(p / v) * v, w !== "auto" && h === "row" && (a = Math.max(a, w * v)), r = a / v;
|
|
4468
4468
|
}, u = () => {
|
|
4469
4469
|
e.slides && e.slides.forEach((l) => {
|
|
4470
4470
|
l.swiperSlideGridSet && (l.style.height = "", l.style[e.getDirectionLabel("margin-top")] = "");
|
|
@@ -4478,9 +4478,9 @@ function ai(t) {
|
|
|
4478
4478
|
} = e.params.grid, O = e.virtual && e.params.virtual.enabled ? e.virtual.slides.length : v.length;
|
|
4479
4479
|
let I, R, _;
|
|
4480
4480
|
if (b === "row" && h > 1) {
|
|
4481
|
-
const A = Math.floor(l / (h * E)),
|
|
4482
|
-
_ = Math.floor(
|
|
4483
|
-
} else b === "column" ? (R = Math.floor(l / E), _ = l - R * E, (R >
|
|
4481
|
+
const A = Math.floor(l / (h * E)), M = l - E * h * A, L = A === 0 ? h : Math.min(Math.ceil((O - A * E * h) / E), h);
|
|
4482
|
+
_ = Math.floor(M / L), R = M - _ * L + A * h, I = R + _ * a / E, w.style.order = I;
|
|
4483
|
+
} else b === "column" ? (R = Math.floor(l / E), _ = l - R * E, (R > c || R === c && _ === E - 1) && (_ += 1, _ >= E && (_ = 0, R += 1))) : (_ = Math.floor(l / r), R = l - _ * r);
|
|
4484
4484
|
w.row = _, w.column = R, w.style.height = `calc((100% - ${(E - 1) * p}px) / ${E})`, w.style[e.getDirectionLabel("margin-top")] = _ !== 0 ? p && `${p}px` : "", w.swiperSlideGridSet = !0;
|
|
4485
4485
|
}, T = (l, w) => {
|
|
4486
4486
|
const {
|
|
@@ -4498,13 +4498,13 @@ function ai(t) {
|
|
|
4498
4498
|
w.splice(0, w.length), w.push(...b);
|
|
4499
4499
|
}
|
|
4500
4500
|
}, g = () => {
|
|
4501
|
-
|
|
4501
|
+
d = e.params.grid && e.params.grid.rows > 1;
|
|
4502
4502
|
}, n = () => {
|
|
4503
4503
|
const {
|
|
4504
4504
|
params: l,
|
|
4505
4505
|
el: w
|
|
4506
4506
|
} = e, v = l.grid && l.grid.rows > 1;
|
|
4507
|
-
|
|
4507
|
+
d && !v ? (w.classList.remove(`${l.containerModifierClass}grid`, `${l.containerModifierClass}grid-column`), c = 1, e.emitContainerClasses()) : !d && v && (w.classList.add(`${l.containerModifierClass}grid`), l.grid.fill === "column" && w.classList.add(`${l.containerModifierClass}grid-column`), e.emitContainerClasses()), d = v;
|
|
4508
4508
|
};
|
|
4509
4509
|
i("init", g), i("update", n), e.grid = {
|
|
4510
4510
|
initSlides: o,
|
|
@@ -4513,7 +4513,7 @@ function ai(t) {
|
|
|
4513
4513
|
updateWrapperSize: T
|
|
4514
4514
|
};
|
|
4515
4515
|
}
|
|
4516
|
-
function
|
|
4516
|
+
function ni(t) {
|
|
4517
4517
|
const e = this, {
|
|
4518
4518
|
params: s,
|
|
4519
4519
|
slidesEl: i
|
|
@@ -4521,8 +4521,8 @@ function ri(t) {
|
|
|
4521
4521
|
s.loop && e.loopDestroy();
|
|
4522
4522
|
const a = (r) => {
|
|
4523
4523
|
if (typeof r == "string") {
|
|
4524
|
-
const
|
|
4525
|
-
ne(
|
|
4524
|
+
const c = document.createElement("div");
|
|
4525
|
+
ne(c, r), i.append(c.children[0]), ne(c, "");
|
|
4526
4526
|
} else
|
|
4527
4527
|
i.append(r);
|
|
4528
4528
|
};
|
|
@@ -4533,7 +4533,7 @@ function ri(t) {
|
|
|
4533
4533
|
a(t);
|
|
4534
4534
|
e.recalcSlides(), s.loop && e.loopCreate(), (!s.observer || e.isElement) && e.update();
|
|
4535
4535
|
}
|
|
4536
|
-
function
|
|
4536
|
+
function li(t) {
|
|
4537
4537
|
const e = this, {
|
|
4538
4538
|
params: s,
|
|
4539
4539
|
activeIndex: i,
|
|
@@ -4541,86 +4541,86 @@ function ni(t) {
|
|
|
4541
4541
|
} = e;
|
|
4542
4542
|
s.loop && e.loopDestroy();
|
|
4543
4543
|
let r = i + 1;
|
|
4544
|
-
const
|
|
4545
|
-
if (typeof
|
|
4544
|
+
const c = (d) => {
|
|
4545
|
+
if (typeof d == "string") {
|
|
4546
4546
|
const f = document.createElement("div");
|
|
4547
|
-
ne(f,
|
|
4547
|
+
ne(f, d), a.prepend(f.children[0]), ne(f, "");
|
|
4548
4548
|
} else
|
|
4549
|
-
a.prepend(
|
|
4549
|
+
a.prepend(d);
|
|
4550
4550
|
};
|
|
4551
4551
|
if (typeof t == "object" && "length" in t) {
|
|
4552
|
-
for (let
|
|
4553
|
-
t[
|
|
4552
|
+
for (let d = 0; d < t.length; d += 1)
|
|
4553
|
+
t[d] && c(t[d]);
|
|
4554
4554
|
r = i + t.length;
|
|
4555
4555
|
} else
|
|
4556
|
-
|
|
4556
|
+
c(t);
|
|
4557
4557
|
e.recalcSlides(), s.loop && e.loopCreate(), (!s.observer || e.isElement) && e.update(), e.slideTo(r, 0, !1);
|
|
4558
4558
|
}
|
|
4559
|
-
function
|
|
4559
|
+
function oi(t, e) {
|
|
4560
4560
|
const s = this, {
|
|
4561
4561
|
params: i,
|
|
4562
4562
|
activeIndex: a,
|
|
4563
4563
|
slidesEl: r
|
|
4564
4564
|
} = s;
|
|
4565
|
-
let
|
|
4566
|
-
i.loop && (
|
|
4567
|
-
const
|
|
4565
|
+
let c = a;
|
|
4566
|
+
i.loop && (c -= s.loopedSlides, s.loopDestroy(), s.recalcSlides());
|
|
4567
|
+
const d = s.slides.length;
|
|
4568
4568
|
if (t <= 0) {
|
|
4569
4569
|
s.prependSlide(e);
|
|
4570
4570
|
return;
|
|
4571
4571
|
}
|
|
4572
|
-
if (t >=
|
|
4572
|
+
if (t >= d) {
|
|
4573
4573
|
s.appendSlide(e);
|
|
4574
4574
|
return;
|
|
4575
4575
|
}
|
|
4576
|
-
let f =
|
|
4576
|
+
let f = c > t ? c + 1 : c;
|
|
4577
4577
|
const o = [];
|
|
4578
|
-
for (let u =
|
|
4578
|
+
for (let u = d - 1; u >= t; u -= 1) {
|
|
4579
4579
|
const m = s.slides[u];
|
|
4580
4580
|
m.remove(), o.unshift(m);
|
|
4581
4581
|
}
|
|
4582
4582
|
if (typeof e == "object" && "length" in e) {
|
|
4583
4583
|
for (let u = 0; u < e.length; u += 1)
|
|
4584
4584
|
e[u] && r.append(e[u]);
|
|
4585
|
-
f =
|
|
4585
|
+
f = c > t ? c + e.length : c;
|
|
4586
4586
|
} else
|
|
4587
4587
|
r.append(e);
|
|
4588
4588
|
for (let u = 0; u < o.length; u += 1)
|
|
4589
4589
|
r.append(o[u]);
|
|
4590
4590
|
s.recalcSlides(), i.loop && s.loopCreate(), (!i.observer || s.isElement) && s.update(), i.loop ? s.slideTo(f + s.loopedSlides, 0, !1) : s.slideTo(f, 0, !1);
|
|
4591
4591
|
}
|
|
4592
|
-
function
|
|
4592
|
+
function di(t) {
|
|
4593
4593
|
const e = this, {
|
|
4594
4594
|
params: s,
|
|
4595
4595
|
activeIndex: i
|
|
4596
4596
|
} = e;
|
|
4597
4597
|
let a = i;
|
|
4598
4598
|
s.loop && (a -= e.loopedSlides, e.loopDestroy());
|
|
4599
|
-
let r = a,
|
|
4599
|
+
let r = a, c;
|
|
4600
4600
|
if (typeof t == "object" && "length" in t) {
|
|
4601
|
-
for (let
|
|
4602
|
-
|
|
4601
|
+
for (let d = 0; d < t.length; d += 1)
|
|
4602
|
+
c = t[d], e.slides[c] && e.slides[c].remove(), c < r && (r -= 1);
|
|
4603
4603
|
r = Math.max(r, 0);
|
|
4604
4604
|
} else
|
|
4605
|
-
|
|
4605
|
+
c = t, e.slides[c] && e.slides[c].remove(), c < r && (r -= 1), r = Math.max(r, 0);
|
|
4606
4606
|
e.recalcSlides(), s.loop && e.loopCreate(), (!s.observer || e.isElement) && e.update(), s.loop ? e.slideTo(r + e.loopedSlides, 0, !1) : e.slideTo(r, 0, !1);
|
|
4607
4607
|
}
|
|
4608
|
-
function
|
|
4608
|
+
function ci() {
|
|
4609
4609
|
const t = this, e = [];
|
|
4610
4610
|
for (let s = 0; s < t.slides.length; s += 1)
|
|
4611
4611
|
e.push(s);
|
|
4612
4612
|
t.removeSlide(e);
|
|
4613
4613
|
}
|
|
4614
|
-
function
|
|
4614
|
+
function fi(t) {
|
|
4615
4615
|
let {
|
|
4616
4616
|
swiper: e
|
|
4617
4617
|
} = t;
|
|
4618
4618
|
Object.assign(e, {
|
|
4619
|
-
appendSlide:
|
|
4620
|
-
prependSlide:
|
|
4621
|
-
addSlide:
|
|
4622
|
-
removeSlide:
|
|
4623
|
-
removeAllSlides:
|
|
4619
|
+
appendSlide: ni.bind(e),
|
|
4620
|
+
prependSlide: li.bind(e),
|
|
4621
|
+
addSlide: oi.bind(e),
|
|
4622
|
+
removeSlide: di.bind(e),
|
|
4623
|
+
removeAllSlides: ci.bind(e)
|
|
4624
4624
|
});
|
|
4625
4625
|
}
|
|
4626
4626
|
function Se(t) {
|
|
@@ -4630,15 +4630,15 @@ function Se(t) {
|
|
|
4630
4630
|
on: i,
|
|
4631
4631
|
setTranslate: a,
|
|
4632
4632
|
setTransition: r,
|
|
4633
|
-
overwriteParams:
|
|
4634
|
-
perspective:
|
|
4633
|
+
overwriteParams: c,
|
|
4634
|
+
perspective: d,
|
|
4635
4635
|
recreateShadows: f,
|
|
4636
4636
|
getEffectParams: o
|
|
4637
4637
|
} = t;
|
|
4638
4638
|
i("beforeInit", () => {
|
|
4639
4639
|
if (s.params.effect !== e) return;
|
|
4640
|
-
s.classNames.push(`${s.params.containerModifierClass}${e}`),
|
|
4641
|
-
const m =
|
|
4640
|
+
s.classNames.push(`${s.params.containerModifierClass}${e}`), d && d() && s.classNames.push(`${s.params.containerModifierClass}3d`);
|
|
4641
|
+
const m = c ? c() : {};
|
|
4642
4642
|
Object.assign(s.params, m), Object.assign(s.originalParams, m);
|
|
4643
4643
|
}), i("setTranslate _virtualUpdated", () => {
|
|
4644
4644
|
s.params.effect === e && a();
|
|
@@ -4672,16 +4672,16 @@ function He(t) {
|
|
|
4672
4672
|
} = t;
|
|
4673
4673
|
const {
|
|
4674
4674
|
activeIndex: r
|
|
4675
|
-
} = e,
|
|
4675
|
+
} = e, c = (d) => d.parentElement ? d.parentElement : e.slides.find((o) => o.shadowRoot && o.shadowRoot === d.parentNode);
|
|
4676
4676
|
if (e.params.virtualTranslate && s !== 0) {
|
|
4677
|
-
let
|
|
4677
|
+
let d = !1, f;
|
|
4678
4678
|
a ? f = i : f = i.filter((o) => {
|
|
4679
|
-
const u = o.classList.contains("swiper-slide-transform") ?
|
|
4679
|
+
const u = o.classList.contains("swiper-slide-transform") ? c(o) : o;
|
|
4680
4680
|
return e.getSlideIndex(u) === r;
|
|
4681
4681
|
}), f.forEach((o) => {
|
|
4682
|
-
|
|
4683
|
-
if (
|
|
4684
|
-
|
|
4682
|
+
Le(o, () => {
|
|
4683
|
+
if (d || !e || e.destroyed) return;
|
|
4684
|
+
d = !0, e.animating = !1;
|
|
4685
4685
|
const u = new window.CustomEvent("transitionend", {
|
|
4686
4686
|
bubbles: !0,
|
|
4687
4687
|
cancelable: !0
|
|
@@ -4691,7 +4691,7 @@ function He(t) {
|
|
|
4691
4691
|
});
|
|
4692
4692
|
}
|
|
4693
4693
|
}
|
|
4694
|
-
function
|
|
4694
|
+
function ui(t) {
|
|
4695
4695
|
let {
|
|
4696
4696
|
swiper: e,
|
|
4697
4697
|
extendParams: s,
|
|
@@ -4707,26 +4707,26 @@ function fi(t) {
|
|
|
4707
4707
|
on: i,
|
|
4708
4708
|
setTranslate: () => {
|
|
4709
4709
|
const {
|
|
4710
|
-
slides:
|
|
4711
|
-
} = e,
|
|
4712
|
-
for (let f = 0; f <
|
|
4710
|
+
slides: c
|
|
4711
|
+
} = e, d = e.params.fadeEffect;
|
|
4712
|
+
for (let f = 0; f < c.length; f += 1) {
|
|
4713
4713
|
const o = e.slides[f];
|
|
4714
4714
|
let m = -o.swiperSlideOffset;
|
|
4715
4715
|
e.params.virtualTranslate || (m -= e.translate);
|
|
4716
4716
|
let T = 0;
|
|
4717
4717
|
e.isHorizontal() || (T = m, m = 0);
|
|
4718
|
-
const g = e.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(o.progress), 0) : 1 + Math.min(Math.max(o.progress, -1), 0), n = Re(
|
|
4718
|
+
const g = e.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(o.progress), 0) : 1 + Math.min(Math.max(o.progress, -1), 0), n = Re(d, o);
|
|
4719
4719
|
n.style.opacity = g, n.style.transform = `translate3d(${m}px, ${T}px, 0px)`;
|
|
4720
4720
|
}
|
|
4721
4721
|
},
|
|
4722
|
-
setTransition: (
|
|
4723
|
-
const
|
|
4724
|
-
|
|
4725
|
-
f.style.transitionDuration = `${
|
|
4722
|
+
setTransition: (c) => {
|
|
4723
|
+
const d = e.slides.map((f) => me(f));
|
|
4724
|
+
d.forEach((f) => {
|
|
4725
|
+
f.style.transitionDuration = `${c}ms`;
|
|
4726
4726
|
}), He({
|
|
4727
4727
|
swiper: e,
|
|
4728
|
-
duration:
|
|
4729
|
-
transformElements:
|
|
4728
|
+
duration: c,
|
|
4729
|
+
transformElements: d,
|
|
4730
4730
|
allSlides: !0
|
|
4731
4731
|
});
|
|
4732
4732
|
},
|
|
@@ -4739,7 +4739,7 @@ function fi(t) {
|
|
|
4739
4739
|
})
|
|
4740
4740
|
});
|
|
4741
4741
|
}
|
|
4742
|
-
function
|
|
4742
|
+
function pi(t) {
|
|
4743
4743
|
let {
|
|
4744
4744
|
swiper: e,
|
|
4745
4745
|
extendParams: s,
|
|
@@ -4778,20 +4778,20 @@ function ui(t) {
|
|
|
4778
4778
|
const R = u[I];
|
|
4779
4779
|
let _ = I;
|
|
4780
4780
|
p && (_ = parseInt(R.getAttribute("data-swiper-slide-index"), 10));
|
|
4781
|
-
let A = _ * 90,
|
|
4782
|
-
g && (A = -A,
|
|
4783
|
-
const
|
|
4781
|
+
let A = _ * 90, M = Math.floor(A / 360);
|
|
4782
|
+
g && (A = -A, M = Math.floor(-A / 360));
|
|
4783
|
+
const L = Math.max(Math.min(R.progress, 1), -1);
|
|
4784
4784
|
let x = 0, C = 0, N = 0;
|
|
4785
|
-
_ % 4 === 0 ? (x = -
|
|
4785
|
+
_ % 4 === 0 ? (x = -M * 4 * n, N = 0) : (_ - 1) % 4 === 0 ? (x = 0, N = -M * 4 * n) : (_ - 2) % 4 === 0 ? (x = n + M * 4 * n, N = n) : (_ - 3) % 4 === 0 && (x = -n, N = 3 * n + n * 4 * M), g && (x = -x), h || (C = x, x = 0);
|
|
4786
4786
|
const $ = `rotateX(${w(h ? 0 : -A)}deg) rotateY(${w(h ? A : 0)}deg) translate3d(${x}px, ${C}px, ${N}px)`;
|
|
4787
|
-
|
|
4787
|
+
L <= 1 && L > -1 && (E = _ * 90 + L * 90, g && (E = -_ * 90 - L * 90)), R.style.transform = $, v.slideShadows && a(R, L, h);
|
|
4788
4788
|
}
|
|
4789
4789
|
if (o.style.transformOrigin = `50% 50% -${n / 2}px`, o.style["-webkit-transform-origin"] = `50% 50% -${n / 2}px`, v.shadow)
|
|
4790
4790
|
if (h)
|
|
4791
4791
|
b.style.transform = `translate3d(0px, ${m / 2 + v.shadowOffset}px, ${-m / 2}px) rotateX(89.99deg) rotateZ(0deg) scale(${v.shadowScale})`;
|
|
4792
4792
|
else {
|
|
4793
|
-
const I = Math.abs(E) - Math.floor(Math.abs(E) / 90) * 90, R = 1.5 - (Math.sin(I * 2 * Math.PI / 360) / 2 + Math.cos(I * 2 * Math.PI / 360) / 2), _ = v.shadowScale, A = v.shadowScale / R,
|
|
4794
|
-
b.style.transform = `scale3d(${_}, 1, ${A}) translate3d(0px, ${T / 2 +
|
|
4793
|
+
const I = Math.abs(E) - Math.floor(Math.abs(E) / 90) * 90, R = 1.5 - (Math.sin(I * 2 * Math.PI / 360) / 2 + Math.cos(I * 2 * Math.PI / 360) / 2), _ = v.shadowScale, A = v.shadowScale / R, M = v.shadowOffset;
|
|
4794
|
+
b.style.transform = `scale3d(${_}, 1, ${A}) translate3d(0px, ${T / 2 + M}px, ${-T / 2 / A}px) rotateX(-89.99deg)`;
|
|
4795
4795
|
}
|
|
4796
4796
|
const O = (l.isSafari || l.isWebView) && l.needPerspectiveFix ? -n / 2 : 0;
|
|
4797
4797
|
o.style.transform = `translate3d(0px,0,${O}px) rotateX(${w(e.isHorizontal() ? 0 : E)}deg) rotateY(${w(e.isHorizontal() ? -E : 0)}deg)`, o.style.setProperty("--swiper-cube-translate-z", `${O}px`);
|
|
@@ -4835,7 +4835,7 @@ function ve(t, e, s) {
|
|
|
4835
4835
|
let r = a.querySelector(`.${i.split(" ").join(".")}`);
|
|
4836
4836
|
return r || (r = ee("div", i.split(" ")), a.append(r)), r;
|
|
4837
4837
|
}
|
|
4838
|
-
function
|
|
4838
|
+
function mi(t) {
|
|
4839
4839
|
let {
|
|
4840
4840
|
swiper: e,
|
|
4841
4841
|
extendParams: s,
|
|
@@ -4900,7 +4900,7 @@ function pi(t) {
|
|
|
4900
4900
|
})
|
|
4901
4901
|
});
|
|
4902
4902
|
}
|
|
4903
|
-
function
|
|
4903
|
+
function hi(t) {
|
|
4904
4904
|
let {
|
|
4905
4905
|
swiper: e,
|
|
4906
4906
|
extendParams: s,
|
|
@@ -4921,28 +4921,28 @@ function mi(t) {
|
|
|
4921
4921
|
on: i,
|
|
4922
4922
|
setTranslate: () => {
|
|
4923
4923
|
const {
|
|
4924
|
-
width:
|
|
4925
|
-
height:
|
|
4924
|
+
width: c,
|
|
4925
|
+
height: d,
|
|
4926
4926
|
slides: f,
|
|
4927
4927
|
slidesSizesGrid: o
|
|
4928
|
-
} = e, u = e.params.coverflowEffect, m = e.isHorizontal(), T = e.translate, g = m ? -T +
|
|
4928
|
+
} = e, u = e.params.coverflowEffect, m = e.isHorizontal(), T = e.translate, g = m ? -T + c / 2 : -T + d / 2, n = m ? u.rotate : -u.rotate, l = u.depth, w = ke(e);
|
|
4929
4929
|
for (let v = 0, h = f.length; v < h; v += 1) {
|
|
4930
4930
|
const p = f[v], E = o[v], b = p.swiperSlideOffset, O = (g - b - E / 2) / E, I = typeof u.modifier == "function" ? u.modifier(O) : O * u.modifier;
|
|
4931
|
-
let R = m ? n * I : 0, _ = m ? 0 : n * I, A = -l * Math.abs(I),
|
|
4932
|
-
typeof
|
|
4933
|
-
let
|
|
4934
|
-
Math.abs(x) < 1e-3 && (x = 0), Math.abs(
|
|
4935
|
-
const N = `translate3d(${x}px,${
|
|
4931
|
+
let R = m ? n * I : 0, _ = m ? 0 : n * I, A = -l * Math.abs(I), M = u.stretch;
|
|
4932
|
+
typeof M == "string" && M.indexOf("%") !== -1 && (M = parseFloat(u.stretch) / 100 * E);
|
|
4933
|
+
let L = m ? 0 : M * I, x = m ? M * I : 0, C = 1 - (1 - u.scale) * Math.abs(I);
|
|
4934
|
+
Math.abs(x) < 1e-3 && (x = 0), Math.abs(L) < 1e-3 && (L = 0), Math.abs(A) < 1e-3 && (A = 0), Math.abs(R) < 1e-3 && (R = 0), Math.abs(_) < 1e-3 && (_ = 0), Math.abs(C) < 1e-3 && (C = 0);
|
|
4935
|
+
const N = `translate3d(${x}px,${L}px,${A}px) rotateX(${w(_)}deg) rotateY(${w(R)}deg) scale(${C})`, $ = Re(u, p);
|
|
4936
4936
|
if ($.style.transform = N, p.style.zIndex = -Math.abs(Math.round(I)) + 1, u.slideShadows) {
|
|
4937
4937
|
let S = m ? p.querySelector(".swiper-slide-shadow-left") : p.querySelector(".swiper-slide-shadow-top"), y = m ? p.querySelector(".swiper-slide-shadow-right") : p.querySelector(".swiper-slide-shadow-bottom");
|
|
4938
4938
|
S || (S = ve("coverflow", p, m ? "left" : "top")), y || (y = ve("coverflow", p, m ? "right" : "bottom")), S && (S.style.opacity = I > 0 ? I : 0), y && (y.style.opacity = -I > 0 ? -I : 0);
|
|
4939
4939
|
}
|
|
4940
4940
|
}
|
|
4941
4941
|
},
|
|
4942
|
-
setTransition: (
|
|
4942
|
+
setTransition: (c) => {
|
|
4943
4943
|
e.slides.map((f) => me(f)).forEach((f) => {
|
|
4944
|
-
f.style.transitionDuration = `${
|
|
4945
|
-
o.style.transitionDuration = `${
|
|
4944
|
+
f.style.transitionDuration = `${c}ms`, f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach((o) => {
|
|
4945
|
+
o.style.transitionDuration = `${c}ms`;
|
|
4946
4946
|
});
|
|
4947
4947
|
});
|
|
4948
4948
|
},
|
|
@@ -4952,7 +4952,7 @@ function mi(t) {
|
|
|
4952
4952
|
})
|
|
4953
4953
|
});
|
|
4954
4954
|
}
|
|
4955
|
-
function
|
|
4955
|
+
function gi(t) {
|
|
4956
4956
|
let {
|
|
4957
4957
|
swiper: e,
|
|
4958
4958
|
extendParams: s,
|
|
@@ -4978,14 +4978,14 @@ function hi(t) {
|
|
|
4978
4978
|
}
|
|
4979
4979
|
}
|
|
4980
4980
|
});
|
|
4981
|
-
const a = (
|
|
4981
|
+
const a = (d) => typeof d == "string" ? d : `${d}px`;
|
|
4982
4982
|
Se({
|
|
4983
4983
|
effect: "creative",
|
|
4984
4984
|
swiper: e,
|
|
4985
4985
|
on: i,
|
|
4986
4986
|
setTranslate: () => {
|
|
4987
4987
|
const {
|
|
4988
|
-
slides:
|
|
4988
|
+
slides: d,
|
|
4989
4989
|
wrapperEl: f,
|
|
4990
4990
|
slidesSizesGrid: o
|
|
4991
4991
|
} = e, u = e.params.creativeEffect, {
|
|
@@ -4995,8 +4995,8 @@ function hi(t) {
|
|
|
4995
4995
|
const n = o[0] / 2 - e.params.slidesOffsetBefore || 0;
|
|
4996
4996
|
f.style.transform = `translateX(calc(50% - ${n}px))`;
|
|
4997
4997
|
}
|
|
4998
|
-
for (let n = 0; n <
|
|
4999
|
-
const l =
|
|
4998
|
+
for (let n = 0; n < d.length; n += 1) {
|
|
4999
|
+
const l = d[n], w = l.progress, v = Math.min(Math.max(l.progress, -u.limitProgress), u.limitProgress);
|
|
5000
5000
|
let h = v;
|
|
5001
5001
|
T || (h = Math.min(Math.max(l.originalProgress, -u.limitProgress), u.limitProgress));
|
|
5002
5002
|
const p = l.swiperSlideOffset, E = [e.params.cssMode ? -p - e.translate : -p, 0, 0], b = [0, 0, 0];
|
|
@@ -5013,8 +5013,8 @@ function hi(t) {
|
|
|
5013
5013
|
}), b.forEach((C, N) => {
|
|
5014
5014
|
let $ = I.rotate[N] * Math.abs(v * m);
|
|
5015
5015
|
b[N] = $;
|
|
5016
|
-
}), l.style.zIndex = -Math.abs(Math.round(w)) +
|
|
5017
|
-
const R = E.join(", "), _ = `rotateX(${g(b[0])}deg) rotateY(${g(b[1])}deg) rotateZ(${g(b[2])}deg)`, A = h < 0 ? `scale(${1 + (1 - I.scale) * h * m})` : `scale(${1 - (1 - I.scale) * h * m})`,
|
|
5016
|
+
}), l.style.zIndex = -Math.abs(Math.round(w)) + d.length;
|
|
5017
|
+
const R = E.join(", "), _ = `rotateX(${g(b[0])}deg) rotateY(${g(b[1])}deg) rotateZ(${g(b[2])}deg)`, A = h < 0 ? `scale(${1 + (1 - I.scale) * h * m})` : `scale(${1 - (1 - I.scale) * h * m})`, M = h < 0 ? 1 + (1 - I.opacity) * h * m : 1 - (1 - I.opacity) * h * m, L = `translate3d(${R}) ${_} ${A}`;
|
|
5018
5018
|
if (O && I.shadow || !O) {
|
|
5019
5019
|
let C = l.querySelector(".swiper-slide-shadow");
|
|
5020
5020
|
if (!C && I.shadow && (C = ve("creative", l)), C) {
|
|
@@ -5023,18 +5023,18 @@ function hi(t) {
|
|
|
5023
5023
|
}
|
|
5024
5024
|
}
|
|
5025
5025
|
const x = Re(u, l);
|
|
5026
|
-
x.style.transform =
|
|
5026
|
+
x.style.transform = L, x.style.opacity = M, I.origin && (x.style.transformOrigin = I.origin);
|
|
5027
5027
|
}
|
|
5028
5028
|
},
|
|
5029
|
-
setTransition: (
|
|
5029
|
+
setTransition: (d) => {
|
|
5030
5030
|
const f = e.slides.map((o) => me(o));
|
|
5031
5031
|
f.forEach((o) => {
|
|
5032
|
-
o.style.transitionDuration = `${
|
|
5033
|
-
u.style.transitionDuration = `${
|
|
5032
|
+
o.style.transitionDuration = `${d}ms`, o.querySelectorAll(".swiper-slide-shadow").forEach((u) => {
|
|
5033
|
+
u.style.transitionDuration = `${d}ms`;
|
|
5034
5034
|
});
|
|
5035
5035
|
}), He({
|
|
5036
5036
|
swiper: e,
|
|
5037
|
-
duration:
|
|
5037
|
+
duration: d,
|
|
5038
5038
|
transformElements: f,
|
|
5039
5039
|
allSlides: !0
|
|
5040
5040
|
});
|
|
@@ -5046,7 +5046,7 @@ function hi(t) {
|
|
|
5046
5046
|
})
|
|
5047
5047
|
});
|
|
5048
5048
|
}
|
|
5049
|
-
function
|
|
5049
|
+
function wi(t) {
|
|
5050
5050
|
let {
|
|
5051
5051
|
swiper: e,
|
|
5052
5052
|
extendParams: s,
|
|
@@ -5065,21 +5065,21 @@ function gi(t) {
|
|
|
5065
5065
|
on: i,
|
|
5066
5066
|
setTranslate: () => {
|
|
5067
5067
|
const {
|
|
5068
|
-
slides:
|
|
5069
|
-
activeIndex:
|
|
5068
|
+
slides: c,
|
|
5069
|
+
activeIndex: d,
|
|
5070
5070
|
rtlTranslate: f
|
|
5071
5071
|
} = e, o = e.params.cardsEffect, {
|
|
5072
5072
|
startTranslate: u,
|
|
5073
5073
|
isTouched: m
|
|
5074
5074
|
} = e.touchEventsData, T = f ? -e.translate : e.translate;
|
|
5075
|
-
for (let g = 0; g <
|
|
5076
|
-
const n =
|
|
5075
|
+
for (let g = 0; g < c.length; g += 1) {
|
|
5076
|
+
const n = c[g], l = n.progress, w = Math.min(Math.max(l, -4), 4);
|
|
5077
5077
|
let v = n.swiperSlideOffset;
|
|
5078
|
-
e.params.centeredSlides && !e.params.cssMode && (e.wrapperEl.style.transform = `translateX(${e.minTranslate()}px)`), e.params.centeredSlides && e.params.cssMode && (v -=
|
|
5078
|
+
e.params.centeredSlides && !e.params.cssMode && (e.wrapperEl.style.transform = `translateX(${e.minTranslate()}px)`), e.params.centeredSlides && e.params.cssMode && (v -= c[0].swiperSlideOffset);
|
|
5079
5079
|
let h = e.params.cssMode ? -v - e.translate : -v, p = 0;
|
|
5080
5080
|
const E = -100 * Math.abs(w);
|
|
5081
5081
|
let b = 1, O = -o.perSlideRotate * w, I = o.perSlideOffset - Math.abs(w) * 0.75;
|
|
5082
|
-
const R = e.virtual && e.params.virtual.enabled ? e.virtual.from + g : g, _ = (R ===
|
|
5082
|
+
const R = e.virtual && e.params.virtual.enabled ? e.virtual.from + g : g, _ = (R === d || R === d - 1) && w > 0 && w < 1 && (m || e.params.cssMode) && T < u, A = (R === d || R === d + 1) && w < 0 && w > -1 && (m || e.params.cssMode) && T > u;
|
|
5083
5083
|
if (_ || A) {
|
|
5084
5084
|
const C = (1 - Math.abs((Math.abs(w) - 0.5) / 0.5)) ** 0.5;
|
|
5085
5085
|
O += -28 * w * C, b += -0.5 * C, I += 96 * C, p = `${-25 * C * Math.abs(w)}%`;
|
|
@@ -5088,30 +5088,30 @@ function gi(t) {
|
|
|
5088
5088
|
const C = p;
|
|
5089
5089
|
p = h, h = C;
|
|
5090
5090
|
}
|
|
5091
|
-
const
|
|
5091
|
+
const M = w < 0 ? `${1 + (1 - b) * w}` : `${1 - (1 - b) * w}`, L = `
|
|
5092
5092
|
translate3d(${h}, ${p}, ${E}px)
|
|
5093
5093
|
rotateZ(${o.rotate ? f ? -O : O : 0}deg)
|
|
5094
|
-
scale(${
|
|
5094
|
+
scale(${M})
|
|
5095
5095
|
`;
|
|
5096
5096
|
if (o.slideShadows) {
|
|
5097
5097
|
let C = n.querySelector(".swiper-slide-shadow");
|
|
5098
5098
|
C || (C = ve("cards", n)), C && (C.style.opacity = Math.min(Math.max((Math.abs(w) - 0.5) / 0.5, 0), 1));
|
|
5099
5099
|
}
|
|
5100
|
-
n.style.zIndex = -Math.abs(Math.round(l)) +
|
|
5100
|
+
n.style.zIndex = -Math.abs(Math.round(l)) + c.length;
|
|
5101
5101
|
const x = Re(o, n);
|
|
5102
|
-
x.style.transform =
|
|
5102
|
+
x.style.transform = L;
|
|
5103
5103
|
}
|
|
5104
5104
|
},
|
|
5105
|
-
setTransition: (
|
|
5106
|
-
const
|
|
5107
|
-
|
|
5108
|
-
f.style.transitionDuration = `${
|
|
5109
|
-
o.style.transitionDuration = `${
|
|
5105
|
+
setTransition: (c) => {
|
|
5106
|
+
const d = e.slides.map((f) => me(f));
|
|
5107
|
+
d.forEach((f) => {
|
|
5108
|
+
f.style.transitionDuration = `${c}ms`, f.querySelectorAll(".swiper-slide-shadow").forEach((o) => {
|
|
5109
|
+
o.style.transitionDuration = `${c}ms`;
|
|
5110
5110
|
});
|
|
5111
5111
|
}), He({
|
|
5112
5112
|
swiper: e,
|
|
5113
|
-
duration:
|
|
5114
|
-
transformElements:
|
|
5113
|
+
duration: c,
|
|
5114
|
+
transformElements: d
|
|
5115
5115
|
});
|
|
5116
5116
|
},
|
|
5117
5117
|
perspective: () => !0,
|
|
@@ -5124,8 +5124,8 @@ function gi(t) {
|
|
|
5124
5124
|
})
|
|
5125
5125
|
});
|
|
5126
5126
|
}
|
|
5127
|
-
const
|
|
5128
|
-
Q.use(
|
|
5127
|
+
const Ti = [Ws, Ys, Xs, Us, qs, js, Ks, Zs, Qs, Js, ei, ti, si, ii, ai, ri, fi, ui, pi, mi, hi, gi, wi];
|
|
5128
|
+
Q.use(Ti);
|
|
5129
5129
|
function k(t, e, s) {
|
|
5130
5130
|
const i = t.getAttribute(e)?.trim();
|
|
5131
5131
|
if (!(!i || i === s))
|
|
@@ -5150,121 +5150,121 @@ function D(t, e, s) {
|
|
|
5150
5150
|
if (i === "false") return s === !1 ? void 0 : !1;
|
|
5151
5151
|
}
|
|
5152
5152
|
}
|
|
5153
|
-
function
|
|
5153
|
+
function vi(t) {
|
|
5154
5154
|
return typeof HTMLElement < "u" && t instanceof HTMLElement;
|
|
5155
5155
|
}
|
|
5156
5156
|
function bt(t) {
|
|
5157
5157
|
if (typeof t != "object" || t === null) return t;
|
|
5158
5158
|
for (const e in t) {
|
|
5159
5159
|
const s = t[e];
|
|
5160
|
-
s == null ? delete t[e] : typeof s == "object" && s !== null && !
|
|
5160
|
+
s == null ? delete t[e] : typeof s == "object" && s !== null && !vi(s) && (bt(s), Object.keys(s).length === 0 && delete t[e]);
|
|
5161
5161
|
}
|
|
5162
5162
|
return t;
|
|
5163
5163
|
}
|
|
5164
|
-
function
|
|
5164
|
+
function Ei(t, e, s) {
|
|
5165
5165
|
const i = t.filter((a) => a.name === e).map((a) => a.swiper);
|
|
5166
5166
|
return s && console.log(`📊 Found ${i.length} matching swiper(s) for "${e}"`), i;
|
|
5167
5167
|
}
|
|
5168
|
-
function
|
|
5168
|
+
function Si() {
|
|
5169
5169
|
document.querySelectorAll('[waterfall] .swiper-wrapper[role="list"]').forEach((t) => {
|
|
5170
5170
|
t.removeAttribute("role");
|
|
5171
5171
|
});
|
|
5172
5172
|
}
|
|
5173
|
-
const Ee = "waterfall", oo = "waterfall-preload", co = "waterfall-postload", fo = "waterfall-content",
|
|
5173
|
+
const Ee = "waterfall", oo = "waterfall-preload", co = "waterfall-postload", fo = "waterfall-content", bi = "waterfall-debug-mode", uo = "waterfall-advanced-debug-mode", po = "waterfall-a11y", yi = "waterfall-a11y-container-message", Ai = "waterfall-a11y-container-role", _i = "waterfall-a11y-container-role-description-message", xi = "waterfall-a11y-enabled", Li = "waterfall-a11y-first-slide-message", Mi = "waterfall-a11y-id", Ci = "waterfall-a11y-item-role-description-message", Ii = "waterfall-a11y-last-slide-message", Ri = "waterfall-a11y-next-slide-message", Oi = "waterfall-a11y-notification-class", Pi = "waterfall-a11y-pagination-bullet-message", Di = "waterfall-a11y-prev-slide-message", Ni = "waterfall-a11y-scroll-on-focus", zi = "waterfall-a11y-slide-label-message", $i = "waterfall-a11y-slide-role", Gi = "waterfall-centered-slides-lmobile", Bi = "waterfall-slides-per-view-lmobile", ki = "waterfall-slides-per-group-lmobile", Hi = "waterfall-space-between-lmobile", Vi = "waterfall-centered-slides-tablet", Fi = "waterfall-slides-per-view-tablet", mo = "waterfall-slides-per-group-tablet", Wi = "waterfall-space-between-tablet", Yi = "waterfall-centered-slides-desktop", Xi = "waterfall-slides-per-view-desktop", Ui = "waterfall-slides-per-group-desktop", qi = "waterfall-space-between-desktop", ji = "waterfall-centered-slides-large", Ki = "waterfall-slides-per-view-large", mt = "waterfall-slides-per-group-large", Zi = "waterfall-space-between-large", Qi = "waterfall-centered-slides-xlarge", Ji = "waterfall-slides-per-view-xlarge", ea = "waterfall-slides-per-group-xlarge", ta = "waterfall-space-between-xlarge", rt = "waterfall-controller", sa = "waterfall-controller-by", ia = "waterfall-controller-inverse", ho = "waterfall-effect-crossfade", aa = "waterfall-coverflow-depth", ra = "waterfall-coverflow-modifier", na = "waterfall-coverflow-rotate", la = "waterfall-coverflow-scale", oa = "waterfall-coverflow-slide-shadows", da = "waterfall-coverflow-stretch", ca = "waterfall-flip-limit-rotation", fa = "waterfall-flip-slide-shadows", ua = "waterfall-cube-shadow", pa = "waterfall-cube-shadow-offset", ma = "waterfall-cube-shadow-scale", ha = "waterfall-cube-slide-shadows", ga = "waterfall-cards-per-slide-offset", wa = "waterfall-cards-per-slide-rotate", Ta = "waterfall-cards-rotate", va = "waterfall-cards-slide-shadows", Ea = "waterfall-allow-slide-next", Sa = "waterfall-allow-slide-prev", ba = "waterfall-allow-touch-move", ya = "waterfall-auto-height", Aa = "waterfall-breakpoints-base", _a = "waterfall-center-insufficient-slides", xa = "waterfall-centered-slides", go = "waterfall-centered-slides-bounds", La = "waterfall-container-modifier-class", Ma = "waterfall-create-elements", Ca = "waterfall-css-mode", Ia = "waterfall-direction", Ra = "waterfall-edge-swipe-detection", Oa = "waterfall-edge-swipe-threshold", Pa = "waterfall-effect", Da = "waterfall-enabled", Na = "waterfall-events-prefix", za = "waterfall-focusable-elements", $a = "waterfall-follow-finger", Ga = "waterfall-grab-cursor", Ba = "waterfall-height", ka = "waterfall-init", Ha = "waterfall-initial-slide", Va = "waterfall-lazy-preload-prev-next", Fa = "waterfall-lazy-preloader-class", Wa = "waterfall-long-swipes", Ya = "waterfall-long-swipes-ms", Xa = "waterfall-long-swipes-ratio", wo = "waterfall-loop-mode", Ua = "waterfall-loop-add-blank-slides", qa = "waterfall-loop-additional-slides", ja = "waterfall-loop-prevents-sliding", Ka = "waterfall-max-backface-hidden-slides", Za = "waterfall-nested", Qa = "waterfall-no-swiping", Ja = "waterfall-no-swiping-class", er = "waterfall-no-swiping-selector", tr = "waterfall-normalize-slide-index", sr = "waterfall-observe-parents", ir = "waterfall-observe-slide-children", ar = "waterfall-observer", rr = "waterfall-data-one-way-movement", nr = "waterfall-passive-listeners", lr = "waterfall-prevent-clicks", or = "waterfall-prevent-clicks-propagation", dr = "waterfall-prevent-interaction-on-transition", cr = "waterfall-resistance", fr = "waterfall-resistance-ratio", ur = "waterfall-resize-observer", To = "waterfall-rewind", pr = "waterfall-round-lengths", mr = "waterfall-run-callbacks-on-init", hr = "waterfall-set-wrapper-size", gr = "waterfall-short-swipes", wr = "waterfall-simulate-touch", Tr = "waterfall-slide-active-class", vr = "waterfall-slide-class", Er = "waterfall-slide-blank-class", Sr = "waterfall-slide-fully-visible-class", br = "waterfall-slide-next-class", yr = "waterfall-slide-prev-class", Ar = "waterfall-slide-to-clicked-slide", _r = "waterfall-slide-visible-class", xr = "waterfall-slides-offset-after", Lr = "waterfall-slides-offset-before", Mr = "waterfall-slides-per-group", Cr = "waterfall-slides-per-group-auto", Ir = "waterfall-slides-per-group-skip", Rr = "waterfall-slides-per-view", Or = "waterfall-space-between", Pr = "waterfall-speed", Dr = "waterfall-swipe-handler", Nr = "waterfall-swiper-element-node-name", zr = "waterfall-threshold", $r = "waterfall-touch-angle", Gr = "waterfall-touch-events-target", Br = "waterfall-touch-move-stop-propagation", kr = "waterfall-touch-ratio", Hr = "waterfall-touch-release-on-edges", Vr = "waterfall-touch-start-force-prevent-default", Fr = "waterfall-touch-start-prevent-default", Wr = "waterfall-unique-nav-elements", Yr = "waterfall-update-on-window-resize", Xr = "waterfall-url", Ur = "waterfall-user-agent", vo = "waterfall-virtual-translate", qr = "waterfall-watch-overflow", jr = "waterfall-watch-slides-progress", Kr = "waterfall-width", Zr = "waterfall-wrapper-class", Qr = "waterfall-hash-replace-state", Jr = "waterfall-hash-watch-state", en = "waterfall-history-keep-query", tn = "waterfall-history-key", sn = "waterfall-history-replace-state", an = "waterfall-history-root", rn = "waterfall-keyboard-enabled", nn = "waterfall-keyboard-only-in-viewport", ln = "waterfall-keyboard-page-up-down", on = "waterfall-mouse-enabled", dn = "waterfall-mouse-events-target", cn = "waterfall-mouse-force-to-axis", fn = "waterfall-mouse-invert", un = "waterfall-mouse-no-mouse-wheel-class", pn = "waterfall-mouse-release-on-edges", mn = "waterfall-mouse-sensitivity", hn = "waterfall-mouse-threshold-delta", gn = "waterfall-mouse-threshold-time", wn = "waterfall-grid-rows", Tn = "waterfall-grid-fill", vn = "waterfall-navigation-disabled-class", En = "waterfall-navigation-enabled", Sn = "waterfall-navigation-hidden-class", bn = "waterfall-navigation-hide-on-click", yt = "waterfall-navigation-lock-class", yn = "waterfall-navigation-navigation-disabled-class", An = "waterfall-pagination-type", Eo = "waterfall-pagination-bullet-class", _n = "waterfall-pagination-bullet-active-class", xn = "waterfall-pagination-clickable", Ln = "waterfall-pagination-clickable-class", Mn = "waterfall-pagination-current-class", Cn = "waterfall-pagination-dynamic-bullets", In = "waterfall-pagination-dynamic-main-bullets", Rn = "waterfall-pagination-enabled", On = "waterfall-pagination-hidden-class", Pn = "waterfall-pagination-hide-on-click", Dn = "waterfall-pagination-horizontal-class", So = "waterfall-pagination-lock-class", Nn = "waterfall-pagination-modifier-class", zn = "waterfall-pagination-pagination-disabled-class", $n = "waterfall-pagination-progressbar-fill-class", Gn = "waterfall-pagination-progressbar-opposite", Bn = "waterfall-pagination-progressbar-opposite-class", kn = "waterfall-pagination-total-class", Hn = "waterfall-pagination-vertical-class", Vn = "waterfall-autoplay-mode", At = "waterfall-smooth-autoplay", Fn = "waterfall-delay", Wn = "waterfall-disable-on-interaction", Yn = "waterfall-reverse-direction", Xn = "waterfall-pause-on-mouse-enter", Un = "waterfall-stop-on-last-slide", bo = "waterfall-wait-for-transition", qn = "waterfall-free-mode-enabled", jn = "waterfall-free-mode-minimum-velocity", Kn = "waterfall-free-mode-momentum", Zn = "waterfall-free-mode-momentum-bounce", Qn = "waterfall-free-mode-momentum-bounce-ratio", Jn = "waterfall-free-mode-momentum-ratio", el = "waterfall-free-mode-momentum-velocity-ratio", tl = "waterfall-free-mode-sticky", yo = "waterfall-scrollbar-drag-class", sl = "waterfall-scrollbar-drag-size", il = "waterfall-scrollbar-draggable", al = "waterfall-scrollbar-enabled", rl = "waterfall-scrollbar-hide", nl = "waterfall-scrollbar-horizontal-class", ll = "waterfall-scrollbar-lock-class", ol = "waterfall-scrollbar-scrollbar-disabled-class", dl = "waterfall-scrollbar-vertical-class", cl = "waterfall-scrollbar-snap-on-release", nt = "waterfall-thumbs", fl = "waterfall-thumbs-auto-scroll-offset", ul = "waterfall-thumbs-multiple-active-thumbs", pl = "waterfall-slide-thumb-active-class", ml = "waterfall-thumbs-container-class", hl = "waterfall-add-slide", gl = "waterfall-add-index", wl = "waterfall-append-slide", Tl = "waterfall-prepend-slide", vl = "waterfall-remove-slide", El = "waterfall-remove-index", Ao = "waterfall-remove-all-slides", _o = "waterfall-zoom", xo = "waterfall-zoom-enabled", Sl = "waterfall-zoom-container-class", bl = "waterfall-zoom-limit-to-original-size", yl = "waterfall-zoom-max-ratio", Al = "waterfall-zoom-min-ratio", _l = "waterfall-zoom-pan-on-mouse-move", xl = "waterfall-zoom-toggle", Ll = "waterfall-zoomed-slide-class", Lo = "waterfall-zoom-fade", Ml = "waterfall-parallax-enabled", Mo = "data-swiper-parallax", Co = "data-swiper-parallax-x", Io = "data-swiper-parallax-y", Ro = "data-swiper-parallax-scale", Oo = "data-swiper-parallax-opacity", Po = "data-swiper-parallax-duration", Cl = "waterfall-playback-mode", pe = "waterfall-el", Il = "pagination", Rl = "pagination-bullet", Do = "pagination-bullet-active", No = "waterfall-navigation", Ol = "navigation-next", Pl = "navigation-prev", Dl = "scrollbar", Nl = "scrollbar-drag", zl = "slide-count";
|
|
5174
5174
|
function $l(t, e, s) {
|
|
5175
|
-
t.allowSlideNext = D(e,
|
|
5176
|
-
disabledClass: k(e,
|
|
5177
|
-
enabled: D(e,
|
|
5178
|
-
hiddenClass: k(e,
|
|
5179
|
-
hideOnClick: D(e,
|
|
5175
|
+
t.allowSlideNext = D(e, Ea, !0), t.allowSlidePrev = D(e, Sa, !0), t.navigation = {
|
|
5176
|
+
disabledClass: k(e, vn, "swiper-button-disabled"),
|
|
5177
|
+
enabled: D(e, En),
|
|
5178
|
+
hiddenClass: k(e, Sn, "swiper-button-hidden"),
|
|
5179
|
+
hideOnClick: D(e, bn, !1),
|
|
5180
5180
|
lockClass: k(e, yt, "swiper-button-lock"),
|
|
5181
|
-
navigationDisabledClass: k(e,
|
|
5181
|
+
navigationDisabledClass: k(e, yn, "swiper-navigation-disabled"),
|
|
5182
5182
|
nextEl: `[${Ee}='${s}'] [${pe}=${Ol}]`,
|
|
5183
5183
|
prevEl: `[${Ee}='${s}'] [${pe}=${Pl}]`
|
|
5184
5184
|
};
|
|
5185
5185
|
}
|
|
5186
5186
|
function Gl(t, e) {
|
|
5187
|
-
t.breakpointsBase = k(e,
|
|
5187
|
+
t.breakpointsBase = k(e, Aa, "window"), t.breakpoints = {
|
|
5188
5188
|
478: {
|
|
5189
|
-
centeredSlides: D(e,
|
|
5190
|
-
slidesPerView: H(e,
|
|
5191
|
-
slidesPerGroup: H(e,
|
|
5192
|
-
spaceBetween: H(e,
|
|
5189
|
+
centeredSlides: D(e, Gi),
|
|
5190
|
+
slidesPerView: H(e, Bi),
|
|
5191
|
+
slidesPerGroup: H(e, ki),
|
|
5192
|
+
spaceBetween: H(e, Hi)
|
|
5193
5193
|
},
|
|
5194
5194
|
767: {
|
|
5195
|
-
centeredSlides: D(e,
|
|
5196
|
-
slidesPerView: H(e,
|
|
5195
|
+
centeredSlides: D(e, Vi),
|
|
5196
|
+
slidesPerView: H(e, Fi),
|
|
5197
5197
|
slidesPerGroup: H(e, mt),
|
|
5198
|
-
spaceBetween: H(e,
|
|
5198
|
+
spaceBetween: H(e, Wi)
|
|
5199
5199
|
},
|
|
5200
5200
|
991: {
|
|
5201
|
-
centeredSlides: D(e,
|
|
5202
|
-
slidesPerView: H(e,
|
|
5203
|
-
slidesPerGroup: H(e,
|
|
5204
|
-
spaceBetween: H(e,
|
|
5201
|
+
centeredSlides: D(e, Yi),
|
|
5202
|
+
slidesPerView: H(e, Xi),
|
|
5203
|
+
slidesPerGroup: H(e, Ui),
|
|
5204
|
+
spaceBetween: H(e, qi)
|
|
5205
5205
|
},
|
|
5206
5206
|
1280: {
|
|
5207
|
-
centeredSlides: D(e,
|
|
5208
|
-
slidesPerView: H(e,
|
|
5207
|
+
centeredSlides: D(e, ji),
|
|
5208
|
+
slidesPerView: H(e, Ki),
|
|
5209
5209
|
slidesPerGroup: H(e, mt),
|
|
5210
|
-
spaceBetween: H(e,
|
|
5210
|
+
spaceBetween: H(e, Zi)
|
|
5211
5211
|
},
|
|
5212
5212
|
1440: {
|
|
5213
|
-
centeredSlides: D(e,
|
|
5214
|
-
slidesPerView: H(e,
|
|
5215
|
-
slidesPerGroup: H(e,
|
|
5216
|
-
spaceBetween: H(e,
|
|
5213
|
+
centeredSlides: D(e, Qi),
|
|
5214
|
+
slidesPerView: H(e, Ji),
|
|
5215
|
+
slidesPerGroup: H(e, ea),
|
|
5216
|
+
spaceBetween: H(e, ta)
|
|
5217
5217
|
}
|
|
5218
5218
|
};
|
|
5219
5219
|
}
|
|
5220
5220
|
function Bl(t, e) {
|
|
5221
5221
|
const s = e.querySelector(`[${pe}=${Il}]`);
|
|
5222
5222
|
if (!s) return;
|
|
5223
|
-
const i = k(e,
|
|
5223
|
+
const i = k(e, An), a = e.querySelector(`[${pe}=${Rl}]`);
|
|
5224
5224
|
t.pagination = {
|
|
5225
|
-
bulletActiveClass: k(e,
|
|
5225
|
+
bulletActiveClass: k(e, _n, "swiper-pagination-bullet-active"),
|
|
5226
5226
|
bulletClass: a?.getAttribute("class")?.trim() || "swiper-pagination-bullet",
|
|
5227
5227
|
bulletElement: a?.tagName?.toLowerCase() || "span",
|
|
5228
|
-
clickable: D(e,
|
|
5229
|
-
clickableClass: k(e,
|
|
5228
|
+
clickable: D(e, xn, !1),
|
|
5229
|
+
clickableClass: k(e, Ln, "swiper-pagination-clickable"),
|
|
5230
5230
|
currentClass: k(e, Mn, "swiper-pagination-current"),
|
|
5231
|
-
dynamicBullets: D(e,
|
|
5232
|
-
dynamicMainBullets: H(e,
|
|
5231
|
+
dynamicBullets: D(e, Cn, !1),
|
|
5232
|
+
dynamicMainBullets: H(e, In, 1),
|
|
5233
5233
|
el: s || null,
|
|
5234
|
-
enabled: D(e,
|
|
5235
|
-
hiddenClass: k(e,
|
|
5236
|
-
hideOnClick: D(e,
|
|
5237
|
-
horizontalClass: k(e,
|
|
5234
|
+
enabled: D(e, Rn),
|
|
5235
|
+
hiddenClass: k(e, On, "swiper-pagination-hidden"),
|
|
5236
|
+
hideOnClick: D(e, Pn, !0),
|
|
5237
|
+
horizontalClass: k(e, Dn, "swiper-pagination-horizontal"),
|
|
5238
5238
|
lockClass: k(e, yt, "swiper-pagination-lock"),
|
|
5239
|
-
modifierClass: k(e,
|
|
5239
|
+
modifierClass: k(e, Nn, "swiper-pagination-"),
|
|
5240
5240
|
paginationDisabledClass: k(
|
|
5241
5241
|
e,
|
|
5242
|
-
|
|
5242
|
+
zn,
|
|
5243
5243
|
"swiper-pagination-disabled"
|
|
5244
5244
|
),
|
|
5245
5245
|
progressbarFillClass: k(
|
|
5246
5246
|
e,
|
|
5247
|
-
|
|
5247
|
+
$n,
|
|
5248
5248
|
"swiper-pagination-progressbar-fill"
|
|
5249
5249
|
),
|
|
5250
|
-
progressbarOpposite: D(e,
|
|
5250
|
+
progressbarOpposite: D(e, Gn, !1),
|
|
5251
5251
|
progressbarOppositeClass: k(
|
|
5252
5252
|
e,
|
|
5253
|
-
|
|
5253
|
+
Bn,
|
|
5254
5254
|
"swiper-pagination-progressbar-opposite"
|
|
5255
5255
|
),
|
|
5256
5256
|
renderBullet: r(),
|
|
5257
|
-
totalClass: k(e,
|
|
5258
|
-
type:
|
|
5259
|
-
verticalClass: k(e,
|
|
5257
|
+
totalClass: k(e, kn, "swiper-pagination-total"),
|
|
5258
|
+
type: c(),
|
|
5259
|
+
verticalClass: k(e, Hn, "swiper-pagination-vertical")
|
|
5260
5260
|
};
|
|
5261
5261
|
function r() {
|
|
5262
5262
|
if (i === "numberBullets")
|
|
5263
|
-
return (
|
|
5263
|
+
return (d, f) => `<span class="${f}">${d + 1}</span>`;
|
|
5264
5264
|
if (i === "bullets")
|
|
5265
|
-
return (
|
|
5265
|
+
return (d, f) => `<span class="${f}"></span>`;
|
|
5266
5266
|
}
|
|
5267
|
-
function
|
|
5267
|
+
function c() {
|
|
5268
5268
|
return i === "numberBullets" || i === "bullets" ? "bullets" : i === "fraction" ? "fraction" : i === "progressbar" ? "progressbar" : i === "custom" ? "custom" : "bullets";
|
|
5269
5269
|
}
|
|
5270
5270
|
}
|
|
@@ -5289,52 +5289,55 @@ function kl(t, e) {
|
|
|
5289
5289
|
}
|
|
5290
5290
|
function Hl(t, e) {
|
|
5291
5291
|
const s = k(e, Cl, "none");
|
|
5292
|
-
s === "loop" && (t.loop = !0), s === "rewind" && (t.rewind = !0), s === "none" && (t.loop = !1, t.rewind = !1), t.loopAddBlankSlides = D(e,
|
|
5293
|
-
|
|
5292
|
+
s === "loop" && (t.loop = !0), s === "rewind" && (t.rewind = !0), s === "none" && (t.loop = !1, t.rewind = !1), t.loopAddBlankSlides = D(e, Ua, !0), t.loopAdditionalSlides = H(e, qa, 0), t.loopPreventsSliding = D(e, ja, !0);
|
|
5293
|
+
const i = D(e, Vn, !1), a = D(e, At, !1);
|
|
5294
|
+
let r = H(e, Fn, void 0);
|
|
5295
|
+
a && (r = 0), i && (Vl(), t.autoplay = {
|
|
5296
|
+
delay: r,
|
|
5294
5297
|
disableOnInteraction: D(e, Wn, !1),
|
|
5295
5298
|
// documentation says default is true, doesn't appear to be correct
|
|
5296
5299
|
reverseDirection: D(e, Yn, !1),
|
|
5297
5300
|
pauseOnMouseEnter: D(e, Xn, !1),
|
|
5298
5301
|
stopOnLastSlide: D(e, Un, !1)
|
|
5299
|
-
}), t.speed = H(e,
|
|
5302
|
+
}), t.speed = H(e, Pr, 300), t.oneWayMovement = D(e, rr, !1);
|
|
5300
5303
|
}
|
|
5301
5304
|
function Vl() {
|
|
5302
|
-
document.querySelectorAll(`[${
|
|
5305
|
+
document.querySelectorAll(`[${At}='true'] .swiper-wrapper`).forEach((t) => {
|
|
5303
5306
|
t.style.transitionTimingFunction = "linear";
|
|
5304
5307
|
});
|
|
5305
5308
|
}
|
|
5306
5309
|
function Fl(t, e) {
|
|
5307
|
-
const s = k(e,
|
|
5310
|
+
const s = k(e, Pa, "slide");
|
|
5308
5311
|
t.effect = s, s === "fade" ? t.fadeEffect = { crossFade: !0 } : s === "coverflow" ? t.coverflowEffect = {
|
|
5309
|
-
depth: H(e,
|
|
5310
|
-
modifier: H(e,
|
|
5311
|
-
rotate: H(e,
|
|
5312
|
-
scale: H(e,
|
|
5313
|
-
slideShadows: D(e,
|
|
5314
|
-
stretch: H(e,
|
|
5312
|
+
depth: H(e, aa, 100),
|
|
5313
|
+
modifier: H(e, ra, 1),
|
|
5314
|
+
rotate: H(e, na, 50),
|
|
5315
|
+
scale: H(e, la, 1),
|
|
5316
|
+
slideShadows: D(e, oa, !0),
|
|
5317
|
+
stretch: H(e, da, 0)
|
|
5315
5318
|
} : s === "flip" ? t.flipEffect = {
|
|
5316
|
-
limitRotation: D(e,
|
|
5317
|
-
slideShadows: D(e,
|
|
5319
|
+
limitRotation: D(e, ca, !0),
|
|
5320
|
+
slideShadows: D(e, fa, !0)
|
|
5318
5321
|
} : s === "cube" ? t.cubeEffect = {
|
|
5319
|
-
shadow: D(e,
|
|
5320
|
-
shadowOffset: H(e,
|
|
5321
|
-
shadowScale: H(e,
|
|
5322
|
-
slideShadows: D(e,
|
|
5322
|
+
shadow: D(e, ua, !0),
|
|
5323
|
+
shadowOffset: H(e, pa, 20),
|
|
5324
|
+
shadowScale: H(e, ma, 0.94),
|
|
5325
|
+
slideShadows: D(e, ha, !0)
|
|
5323
5326
|
} : s === "cards" && (t.cardsEffect = {
|
|
5324
|
-
perSlideOffset: H(e,
|
|
5325
|
-
perSlideRotate: H(e,
|
|
5326
|
-
rotate: D(e,
|
|
5327
|
-
slideShadows: D(e,
|
|
5327
|
+
perSlideOffset: H(e, ga, 8),
|
|
5328
|
+
perSlideRotate: H(e, wa, 2),
|
|
5329
|
+
rotate: D(e, Ta, !0),
|
|
5330
|
+
slideShadows: D(e, va, !0)
|
|
5328
5331
|
});
|
|
5329
5332
|
}
|
|
5330
5333
|
function Wl(t, e) {
|
|
5331
|
-
t.autoHeight = D(e,
|
|
5332
|
-
fill: Ce(e,
|
|
5333
|
-
rows: H(e,
|
|
5334
|
-
}, t.height = H(e,
|
|
5334
|
+
t.autoHeight = D(e, ya, !1), t.centerInsufficientSlides = D(e, _a, !1), t.centeredSlides = D(e, xa, !1), t.direction = Ce(e, Ia, "horizontal"), t.grid = {
|
|
5335
|
+
fill: Ce(e, Tn, "column"),
|
|
5336
|
+
rows: H(e, wn, 1)
|
|
5337
|
+
}, t.height = H(e, Ba), t.slidesOffsetAfter = H(e, xr, 0), t.slidesOffsetBefore = H(e, Lr, 0), t.slidesPerGroup = H(e, Mr, 1), t.slidesPerGroupAuto = D(e, Cr, !1), t.slidesPerGroupSkip = H(e, Ir, 0), t.slidesPerView = H(e, Rr, 1), t.spaceBetween = H(e, Or, 0), t.width = H(e, Kr);
|
|
5335
5338
|
}
|
|
5336
5339
|
function Yl(t, e) {
|
|
5337
|
-
t.containerModifierClass = k(e,
|
|
5340
|
+
t.containerModifierClass = k(e, La, "swiper-"), t.initialSlide = H(e, Ha, 0), t.nested = D(e, Za, !1), t.normalizeSlideIndex = D(e, tr, !0), t.slideActiveClass = k(e, Tr, "swiper-slide-active"), t.slideBlankClass = k(e, Er, "swiper-slide-blank"), t.slideClass = k(e, vr, "swiper-slide"), t.slideFullyVisibleClass = k(e, Sr, "swiper-slide-fully-visible"), t.slideNextClass = k(e, br, "swiper-slide-next"), t.slidePrevClass = k(e, yr, "swiper-slide-prev"), t.slideVisibleClass = k(e, _r, "swiper-slide-visible"), t.swipeHandler = k(e, Dr), t.swiperElementNodeName = k(e, Nr, "SWIPER-CONTAINER"), t.wrapperClass = k(e, Zr, "swiper-wrapper");
|
|
5338
5341
|
}
|
|
5339
5342
|
function Xl() {
|
|
5340
5343
|
document.querySelectorAll(".swiper-wrapper").forEach((t) => {
|
|
@@ -5348,7 +5351,7 @@ function Ul(t, e, s, i) {
|
|
|
5348
5351
|
const a = k(e, nt, "");
|
|
5349
5352
|
if (!a || a === "")
|
|
5350
5353
|
return;
|
|
5351
|
-
const r = s.find((
|
|
5354
|
+
const r = s.find((c) => c.name === a);
|
|
5352
5355
|
if (!r) {
|
|
5353
5356
|
i && console.warn("A matching thumbs waterfall was not found for ", a);
|
|
5354
5357
|
return;
|
|
@@ -5363,53 +5366,53 @@ function Ul(t, e, s, i) {
|
|
|
5363
5366
|
}
|
|
5364
5367
|
function ql(t, e) {
|
|
5365
5368
|
t.keyboard = {
|
|
5366
|
-
enabled: D(e,
|
|
5367
|
-
onlyInViewport: D(e,
|
|
5368
|
-
pageUpDown: D(e,
|
|
5369
|
+
enabled: D(e, rn, !1),
|
|
5370
|
+
onlyInViewport: D(e, nn, !0),
|
|
5371
|
+
pageUpDown: D(e, ln, !0)
|
|
5369
5372
|
};
|
|
5370
5373
|
}
|
|
5371
5374
|
function jl(t, e) {
|
|
5372
5375
|
t.hashNavigation = {
|
|
5373
5376
|
//getSlideIndex
|
|
5374
|
-
replaceState: D(e,
|
|
5375
|
-
watchState: D(e,
|
|
5377
|
+
replaceState: D(e, Qr, !1),
|
|
5378
|
+
watchState: D(e, Jr, !1)
|
|
5376
5379
|
};
|
|
5377
5380
|
}
|
|
5378
5381
|
function Kl(t, e) {
|
|
5379
5382
|
t.history = {
|
|
5380
|
-
keepQuery: D(e,
|
|
5381
|
-
key: k(e,
|
|
5382
|
-
replaceState: D(e,
|
|
5383
|
-
root: k(e,
|
|
5383
|
+
keepQuery: D(e, en, !1),
|
|
5384
|
+
key: k(e, tn, "slides"),
|
|
5385
|
+
replaceState: D(e, sn, !1),
|
|
5386
|
+
root: k(e, an, "")
|
|
5384
5387
|
};
|
|
5385
5388
|
}
|
|
5386
5389
|
function Zl(t, e, s, i) {
|
|
5387
5390
|
const a = k(e, rt, "");
|
|
5388
5391
|
if (!a) return;
|
|
5389
|
-
const r =
|
|
5392
|
+
const r = Ei(s, a, i);
|
|
5390
5393
|
i && (r.length ? console.log(`Controller Swipers for selector "${a}":`, r) : console.error(`No controller swipers found for selector "${a}"`)), t.controller = {
|
|
5391
|
-
by: Ce(e,
|
|
5394
|
+
by: Ce(e, sa, "slide"),
|
|
5392
5395
|
control: r,
|
|
5393
|
-
inverse: D(e,
|
|
5396
|
+
inverse: D(e, ia, !1)
|
|
5394
5397
|
};
|
|
5395
5398
|
}
|
|
5396
5399
|
function Ql(t, e) {
|
|
5397
5400
|
return t.a11y = {
|
|
5398
|
-
containerMessage: k(e,
|
|
5399
|
-
containerRole: k(e,
|
|
5400
|
-
containerRoleDescriptionMessage: k(e,
|
|
5401
|
-
enabled: D(e,
|
|
5402
|
-
firstSlideMessage: k(e,
|
|
5401
|
+
containerMessage: k(e, yi, ""),
|
|
5402
|
+
containerRole: k(e, Ai, ""),
|
|
5403
|
+
containerRoleDescriptionMessage: k(e, _i, ""),
|
|
5404
|
+
enabled: D(e, xi, !0),
|
|
5405
|
+
firstSlideMessage: k(e, Li, "This is the first slide"),
|
|
5403
5406
|
id: k(e, Mi, ""),
|
|
5404
|
-
itemRoleDescriptionMessage: k(e,
|
|
5405
|
-
lastSlideMessage: k(e,
|
|
5406
|
-
nextSlideMessage: k(e,
|
|
5407
|
-
notificationClass: k(e,
|
|
5408
|
-
paginationBulletMessage: k(e,
|
|
5409
|
-
prevSlideMessage: k(e,
|
|
5410
|
-
scrollOnFocus: D(e,
|
|
5411
|
-
slideLabelMessage: k(e,
|
|
5412
|
-
slideRole: k(e,
|
|
5407
|
+
itemRoleDescriptionMessage: k(e, Ci, ""),
|
|
5408
|
+
lastSlideMessage: k(e, Ii, "This is the last slide"),
|
|
5409
|
+
nextSlideMessage: k(e, Ri, "Next slide"),
|
|
5410
|
+
notificationClass: k(e, Oi, "swiper-notification"),
|
|
5411
|
+
paginationBulletMessage: k(e, Pi, "Go to slide {{index}}"),
|
|
5412
|
+
prevSlideMessage: k(e, Di, "Previous slide"),
|
|
5413
|
+
scrollOnFocus: D(e, Ni, !0),
|
|
5414
|
+
slideLabelMessage: k(e, zi, "{{index}} / {{slidesLength}}"),
|
|
5415
|
+
slideRole: k(e, $i, "group")
|
|
5413
5416
|
}, t;
|
|
5414
5417
|
}
|
|
5415
5418
|
function Ne(t, e) {
|
|
@@ -5424,25 +5427,25 @@ function Ne(t, e) {
|
|
|
5424
5427
|
console.warn(`[MANIPULATION] No Waterfall found with name: "${a}"`);
|
|
5425
5428
|
return;
|
|
5426
5429
|
}
|
|
5427
|
-
const
|
|
5428
|
-
if (!
|
|
5430
|
+
const c = r.swiper;
|
|
5431
|
+
if (!c) {
|
|
5429
5432
|
console.error(`[MANIPULATION] Invalid Swiper instance in Waterfall "${a}"`);
|
|
5430
5433
|
return;
|
|
5431
5434
|
}
|
|
5432
5435
|
if (e === "append")
|
|
5433
|
-
|
|
5436
|
+
c.appendSlide(i.outerHTML);
|
|
5434
5437
|
else if (e === "prepend")
|
|
5435
|
-
|
|
5438
|
+
c.prependSlide(i.outerHTML);
|
|
5436
5439
|
else if (e === "add") {
|
|
5437
5440
|
let f = Number(i.getAttribute(gl));
|
|
5438
|
-
f || (f = 1),
|
|
5441
|
+
f || (f = 1), c.addSlide(f, [i.outerHTML]);
|
|
5439
5442
|
} else if (e === "remove") {
|
|
5440
5443
|
const f = Number(i.getAttribute(El));
|
|
5441
|
-
f !== -1 ?
|
|
5444
|
+
f !== -1 ? c.removeSlide(f) : console.warn(`[MANIPULATION] Slide not found in Swiper for removal: ${a}`);
|
|
5442
5445
|
}
|
|
5443
5446
|
i.remove();
|
|
5444
|
-
const
|
|
5445
|
-
|
|
5447
|
+
const d = i.closest(".w-dyn-list");
|
|
5448
|
+
d && s.add(d), c.update();
|
|
5446
5449
|
}), s.forEach((i) => i.remove());
|
|
5447
5450
|
}
|
|
5448
5451
|
function Jl() {
|
|
@@ -5456,27 +5459,27 @@ function eo(t, e) {
|
|
|
5456
5459
|
minRatio: H(e, Al, 1),
|
|
5457
5460
|
panOnMouseMove: D(e, _l, !1),
|
|
5458
5461
|
toggle: D(e, xl, !0),
|
|
5459
|
-
zoomedSlideClass: k(e,
|
|
5462
|
+
zoomedSlideClass: k(e, Ll, "swiper-slide-zoomed")
|
|
5460
5463
|
};
|
|
5461
5464
|
}
|
|
5462
5465
|
function to(t, e) {
|
|
5463
|
-
t.allowTouchMove = D(e,
|
|
5466
|
+
t.allowTouchMove = D(e, ba, !0), t.edgeSwipeDetection = D(e, Ra, !1), t.edgeSwipeThreshold = H(e, Oa, 20), t.focusableElements = k(
|
|
5464
5467
|
e,
|
|
5465
|
-
|
|
5468
|
+
za,
|
|
5466
5469
|
"input, select, option, textarea, button, video, label"
|
|
5467
|
-
), t.followFinger = D(e,
|
|
5470
|
+
), t.followFinger = D(e, $a, !0), t.grabCursor = D(e, Ga, !1), t.longSwipes = D(e, Wa, !0), t.longSwipesMs = H(e, Ya, 300), t.longSwipesRatio = H(e, Xa, 0.5), t.noSwiping = D(e, Qa, !0), t.noSwipingClass = k(e, Ja, "swiper-no-swiping"), t.noSwipingSelector = k(e, er), t.preventClicks = D(e, lr, !0), t.preventClicksPropagation = D(e, or, !0), t.preventInteractionOnTransition = D(e, dr, !1), t.resistance = D(e, cr, !0), t.resistanceRatio = H(e, fr, 0.85), t.shortSwipes = D(e, gr, !0), t.simulateTouch = D(e, wr, !0), t.slideToClickedSlide = D(e, Ar, !1), t.threshold = H(e, zr, 5), t.touchAngle = H(e, $r, 45), t.touchEventsTarget = Ce(e, Gr, "wrapper"), t.touchMoveStopPropagation = D(e, Br, !1), t.touchRatio = H(e, kr, 1), t.touchReleaseOnEdges = D(e, Hr, !1), t.touchStartForcePreventDefault = D(e, Vr, !1), t.touchStartPreventDefault = D(e, Fr, !0);
|
|
5468
5471
|
}
|
|
5469
5472
|
function so(t, e) {
|
|
5470
5473
|
t.mousewheel = {
|
|
5471
|
-
enabled: D(e,
|
|
5472
|
-
eventsTarget: k(e,
|
|
5473
|
-
forceToAxis: D(e,
|
|
5474
|
-
invert: D(e,
|
|
5475
|
-
noMousewheelClass: k(e,
|
|
5476
|
-
releaseOnEdges: D(e,
|
|
5477
|
-
sensitivity: H(e,
|
|
5478
|
-
thresholdDelta: H(e,
|
|
5479
|
-
thresholdTime: H(e,
|
|
5474
|
+
enabled: D(e, on, !1),
|
|
5475
|
+
eventsTarget: k(e, dn, "container"),
|
|
5476
|
+
forceToAxis: D(e, cn, !1),
|
|
5477
|
+
invert: D(e, fn, !1),
|
|
5478
|
+
noMousewheelClass: k(e, un, "swiper-no-mousewheel"),
|
|
5479
|
+
releaseOnEdges: D(e, pn, !1),
|
|
5480
|
+
sensitivity: H(e, mn, 1),
|
|
5481
|
+
thresholdDelta: H(e, hn),
|
|
5482
|
+
thresholdTime: H(e, gn)
|
|
5480
5483
|
};
|
|
5481
5484
|
}
|
|
5482
5485
|
function io(t, e) {
|
|
@@ -5492,119 +5495,121 @@ function io(t, e) {
|
|
|
5492
5495
|
};
|
|
5493
5496
|
}
|
|
5494
5497
|
function ao(t, e) {
|
|
5495
|
-
t.lazyPreloadPrevNext = H(e,
|
|
5498
|
+
t.lazyPreloadPrevNext = H(e, Va, 0), t.lazyPreloaderClass = k(e, Fa, "swiper-lazy-preloader");
|
|
5496
5499
|
}
|
|
5497
5500
|
function ro(t, e) {
|
|
5498
|
-
t.createElements = D(e, Ma, !1), t.cssMode = D(e,
|
|
5501
|
+
t.createElements = D(e, Ma, !1), t.cssMode = D(e, Ca, !1), t.enabled = D(e, Da, !0), t.eventsPrefix = k(e, Na, "swiper"), t.init = D(e, ka, !0), t.maxBackfaceHiddenSlides = H(e, Ka, 10), t.passiveListeners = D(e, nr, !0), t.roundLengths = D(e, pr, !1), t.runCallbacksOnInit = D(e, mr, !0), t.setWrapperSize = D(e, hr, !1), t.uniqueNavElements = D(e, Wr, !0), t.url = k(e, Xr), t.userAgent = k(e, Ur);
|
|
5499
5502
|
}
|
|
5500
5503
|
function no(t, e) {
|
|
5501
|
-
t.observeParents = D(e,
|
|
5504
|
+
t.observeParents = D(e, sr, !1), t.observeSlideChildren = D(e, ir, !1), t.observer = D(e, ar, !1), t.resizeObserver = D(e, ur, !0), t.updateOnWindowResize = D(e, Yr, !0), t.watchOverflow = D(e, qr, !0), t.watchSlidesProgress = D(e, jr, !1);
|
|
5502
5505
|
}
|
|
5503
5506
|
function lo(t, e) {
|
|
5504
5507
|
t.parallax = {
|
|
5505
|
-
enabled: D(e,
|
|
5508
|
+
enabled: D(e, Ml, !1)
|
|
5506
5509
|
};
|
|
5507
5510
|
}
|
|
5508
|
-
console.log("🚿 Hello from Wellflow Waterfall v1.2.
|
|
5511
|
+
console.log("🚿 Hello from Wellflow Waterfall v1.2.7");
|
|
5509
5512
|
const $e = [];
|
|
5510
5513
|
window.waterfalls = $e;
|
|
5511
|
-
function
|
|
5514
|
+
function _t(t, e) {
|
|
5512
5515
|
let s = e;
|
|
5513
5516
|
return document.querySelectorAll(t).forEach((i) => {
|
|
5514
|
-
|
|
5517
|
+
xt(i, s++);
|
|
5515
5518
|
}), s;
|
|
5516
5519
|
}
|
|
5517
5520
|
let Ie = 0;
|
|
5518
5521
|
document.querySelectorAll(`[${Ee}]`).forEach((t) => {
|
|
5519
|
-
t.hasAttribute(nt) || t.hasAttribute(rt) ||
|
|
5522
|
+
t.hasAttribute(nt) || t.hasAttribute(rt) || xt(t, Ie++);
|
|
5520
5523
|
});
|
|
5521
|
-
Ie =
|
|
5522
|
-
Ie =
|
|
5523
|
-
function
|
|
5524
|
+
Ie = _t(`[${Ee}][${nt}]`, Ie);
|
|
5525
|
+
Ie = _t(`[${Ee}][${rt}]`, Ie);
|
|
5526
|
+
function xt(t, e) {
|
|
5524
5527
|
{
|
|
5525
5528
|
const s = k(t, Ee, `Swiper ${e}`);
|
|
5526
5529
|
if (!s) return;
|
|
5527
|
-
const i = !!D(t,
|
|
5530
|
+
const i = !!D(t, bi, !1);
|
|
5528
5531
|
i && console.warn(`Initializing Waterfall: ${s}`);
|
|
5529
5532
|
let a = {};
|
|
5530
5533
|
Yl(a, t), Gl(a, t), Hl(a, t), $l(a, t, s), Bl(a, t), kl(a, t), Fl(a, t), io(a, t), Wl(a, t), Ul(a, t, $e, i), ql(a, t), so(a, t), to(a, t), jl(a, t), Kl(a, t), Zl(a, t, $e, i), Ql(a, t), ao(a, t), no(a, t), eo(a, t), lo(a, t), ro(a, t), i && console.warn(a);
|
|
5531
|
-
const r = bt(a),
|
|
5532
|
-
|
|
5534
|
+
const r = bt(a), c = t.querySelector(".swiper");
|
|
5535
|
+
i && console.log("SWIPER: ", c);
|
|
5536
|
+
const d = c?.querySelectorAll(".swiper-slide") || [];
|
|
5537
|
+
if (i && console.log("SWIPER SLIDES: ", d), d.length === 0) {
|
|
5533
5538
|
console.warn(`Skipping "${s}": no .swiper-slide elements found.`);
|
|
5534
5539
|
return;
|
|
5535
5540
|
}
|
|
5536
|
-
const f = new Q(
|
|
5541
|
+
const f = new Q(c, r);
|
|
5537
5542
|
$e.push({ name: s, swiper: f });
|
|
5538
5543
|
}
|
|
5539
5544
|
}
|
|
5540
5545
|
Jl();
|
|
5541
5546
|
Xl();
|
|
5542
|
-
|
|
5547
|
+
Si();
|
|
5543
5548
|
export {
|
|
5544
5549
|
po as ATTR_A11Y,
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
+
yi as ATTR_A11Y_CONTAINER_MESSAGE,
|
|
5551
|
+
Ai as ATTR_A11Y_CONTAINER_ROLE,
|
|
5552
|
+
_i as ATTR_A11Y_CONTAINER_ROLE_DESCRIPTION_MESSAGE,
|
|
5553
|
+
xi as ATTR_A11Y_ENABLED,
|
|
5554
|
+
Li as ATTR_A11Y_FIRST_SLIDE_MESSAGE,
|
|
5550
5555
|
Mi as ATTR_A11Y_ID,
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5556
|
+
Ci as ATTR_A11Y_ITEM_ROLE_DESCRIPTION_MESSAGE,
|
|
5557
|
+
Ii as ATTR_A11Y_LAST_SLIDE_MESSAGE,
|
|
5558
|
+
Ri as ATTR_A11Y_NEXT_SLIDE_MESSAGE,
|
|
5559
|
+
Oi as ATTR_A11Y_NOTIFICATION_CLASS,
|
|
5560
|
+
Pi as ATTR_A11Y_PAGINATION_BULLET_MESSAGE,
|
|
5561
|
+
Di as ATTR_A11Y_PREV_SLIDE_MESSAGE,
|
|
5562
|
+
Ni as ATTR_A11Y_SCROLL_ON_FOCUS,
|
|
5563
|
+
zi as ATTR_A11Y_SLIDE_LABEL_MESSAGE,
|
|
5564
|
+
$i as ATTR_A11Y_SLIDE_ROLE,
|
|
5560
5565
|
uo as ATTR_ADVANCED_DEBUG_MODE,
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5566
|
+
Ea as ATTR_ALLOW_SLIDE_NEXT,
|
|
5567
|
+
Sa as ATTR_ALLOW_SLIDE_PREV,
|
|
5568
|
+
ba as ATTR_ALLOW_TOUCH_MOVE,
|
|
5569
|
+
Vn as ATTR_AUTOPLAY,
|
|
5570
|
+
ya as ATTR_AUTO_HEIGHT,
|
|
5571
|
+
Aa as ATTR_BREAKPOINTS_BASE,
|
|
5572
|
+
ga as ATTR_CARDS_PER_SLIDE_OFFSET,
|
|
5573
|
+
wa as ATTR_CARDS_PER_SLIDE_ROTATE,
|
|
5574
|
+
Ta as ATTR_CARDS_ROTATE,
|
|
5575
|
+
va as ATTR_CARDS_SLIDE_SHADOWS,
|
|
5576
|
+
xa as ATTR_CENTERED_SLIDES,
|
|
5572
5577
|
go as ATTR_CENTERED_SLIDES_BOUNDS,
|
|
5573
|
-
|
|
5574
|
-
|
|
5578
|
+
_a as ATTR_CENTER_INSUFFICIENT_SLIDES,
|
|
5579
|
+
La as ATTR_CONTAINER_MODIFIER_CLASS,
|
|
5575
5580
|
rt as ATTR_CONTROLLER,
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5581
|
+
sa as ATTR_CONTROLLER_BY,
|
|
5582
|
+
ia as ATTR_CONTROLLER_INVERSE,
|
|
5583
|
+
aa as ATTR_COVERFLOW_DEPTH,
|
|
5584
|
+
ra as ATTR_COVERFLOW_MODIFIER,
|
|
5585
|
+
na as ATTR_COVERFLOW_ROTATE,
|
|
5586
|
+
la as ATTR_COVERFLOW_SCALE,
|
|
5587
|
+
oa as ATTR_COVERFLOW_SLIDE_SHADOWS,
|
|
5588
|
+
da as ATTR_COVERFLOW_STRETCH,
|
|
5584
5589
|
Ma as ATTR_CREATE_ELEMENTS,
|
|
5585
|
-
|
|
5586
|
-
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5590
|
+
Ca as ATTR_CSS_MODE,
|
|
5591
|
+
ua as ATTR_CUBE_SHADOW,
|
|
5592
|
+
pa as ATTR_CUBE_SHADOW_OFFSET,
|
|
5593
|
+
ma as ATTR_CUBE_SHADOW_SCALE,
|
|
5594
|
+
ha as ATTR_CUBE_SLIDE_SHADOWS,
|
|
5595
|
+
bi as ATTR_DEBUG_MODE,
|
|
5591
5596
|
Fn as ATTR_DELAY,
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
+
Yi as ATTR_DESKTOP_CENTERED_SLIDES,
|
|
5598
|
+
Ui as ATTR_DESKTOP_SLIDES_PER_GROUP,
|
|
5599
|
+
Xi as ATTR_DESKTOP_SLIDES_PER_VIEW,
|
|
5600
|
+
qi as ATTR_DESKTOP_SPACE_BETWEEN,
|
|
5601
|
+
Ia as ATTR_DIRECTION,
|
|
5597
5602
|
Wn as ATTR_DISABLE_ON_INTERACTION,
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5603
|
+
Ra as ATTR_EDGE_SWIPE_DETECTION,
|
|
5604
|
+
Oa as ATTR_EDGE_SWIPE_THRESHOLD,
|
|
5605
|
+
Pa as ATTR_EFFECT,
|
|
5601
5606
|
ho as ATTR_EFFECT_CROSSFADE,
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5607
|
+
Da as ATTR_ENABLED,
|
|
5608
|
+
Na as ATTR_EVENTS_PREFIX,
|
|
5609
|
+
ca as ATTR_FLIP_LIMIT_ROTATION,
|
|
5610
|
+
fa as ATTR_FLIP_SLIDE_SHADOWS,
|
|
5611
|
+
za as ATTR_FOCUSABLE_ELEMENTS,
|
|
5612
|
+
$a as ATTR_FOLLOW_FINGER,
|
|
5608
5613
|
qn as ATTR_FREE_MODE_ENABLED,
|
|
5609
5614
|
jn as ATTR_FREE_MODE_MINIMUM_VELOCITY,
|
|
5610
5615
|
Kn as ATTR_FREE_MODE_MOMENTUM,
|
|
@@ -5613,38 +5618,38 @@ export {
|
|
|
5613
5618
|
Jn as ATTR_FREE_MODE_MOMENTUM_RATIO,
|
|
5614
5619
|
el as ATTR_FREE_MODE_MOMENTUM_VELOCITY_RATIO,
|
|
5615
5620
|
tl as ATTR_FREE_MODE_STICKY,
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5621
|
+
Ga as ATTR_GRAB_CURSOR,
|
|
5622
|
+
Tn as ATTR_GRID_FILL,
|
|
5623
|
+
wn as ATTR_GRID_ROWS,
|
|
5624
|
+
Qr as ATTR_HASH_REPLACE_STATE,
|
|
5625
|
+
Jr as ATTR_HASH_WATCH_STATE,
|
|
5626
|
+
Ba as ATTR_HEIGHT,
|
|
5627
|
+
en as ATTR_HISTORY_KEEP_QUERY,
|
|
5628
|
+
tn as ATTR_HISTORY_KEY,
|
|
5629
|
+
sn as ATTR_HISTORY_REPLACE_STATE,
|
|
5630
|
+
an as ATTR_HISTORY_ROOT,
|
|
5631
|
+
ka as ATTR_INIT,
|
|
5632
|
+
Ha as ATTR_INITIAL_SLIDE,
|
|
5633
|
+
rn as ATTR_KEYBOARD_ENABLED,
|
|
5634
|
+
nn as ATTR_KEYBOARD_ONLY_IN_VIEWPORT,
|
|
5635
|
+
ln as ATTR_KEYBOARD_PAGE_UP_DOWN,
|
|
5636
|
+
ji as ATTR_LARGE_CENTERED_SLIDES,
|
|
5632
5637
|
mt as ATTR_LARGE_SLIDES_PER_GROUP,
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5636
|
-
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5638
|
+
Ki as ATTR_LARGE_SLIDES_PER_VIEW,
|
|
5639
|
+
Zi as ATTR_LARGE_SPACE_BETWEEN,
|
|
5640
|
+
Fa as ATTR_LAZY_PRELOADER_CLASS,
|
|
5641
|
+
Va as ATTR_LAZY_PRELOAD_PREV_NEXT,
|
|
5642
|
+
Gi as ATTR_LMOBILE_CENTERED_SLIDES,
|
|
5643
|
+
ki as ATTR_LMOBILE_SLIDES_PER_GROUP,
|
|
5644
|
+
Bi as ATTR_LMOBILE_SLIDES_PER_VIEW,
|
|
5645
|
+
Hi as ATTR_LMOBILE_SPACE_BETWEEN,
|
|
5646
|
+
Wa as ATTR_LONG_SWIPES,
|
|
5647
|
+
Ya as ATTR_LONG_SWIPES_MS,
|
|
5648
|
+
Xa as ATTR_LONG_SWIPES_RATIO,
|
|
5644
5649
|
wo as ATTR_LOOP,
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5650
|
+
qa as ATTR_LOOP_ADD_ADDITIONAL_SLIDES,
|
|
5651
|
+
Ua as ATTR_LOOP_ADD_BLANK_SLIDES,
|
|
5652
|
+
ja as ATTR_LOOP_PREVENTS_SLIDING,
|
|
5648
5653
|
gl as ATTR_MANIPULATION_ADD_INDEX,
|
|
5649
5654
|
hl as ATTR_MANIPULATION_ADD_SLIDE,
|
|
5650
5655
|
wl as ATTR_MANIPULATION_APPEND_SLIDE,
|
|
@@ -5652,71 +5657,71 @@ export {
|
|
|
5652
5657
|
Ao as ATTR_MANIPULATION_REMOVE_ALL_SLIDES,
|
|
5653
5658
|
El as ATTR_MANIPULATION_REMOVE_INDEX,
|
|
5654
5659
|
vl as ATTR_MANIPULATION_REMOVE_SLIDE,
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5660
|
+
Ka as ATTR_MAX_BACKFACE_HIDDEN_SLIDES,
|
|
5661
|
+
on as ATTR_MOUSE_ENABLED,
|
|
5662
|
+
dn as ATTR_MOUSE_EVENTS_TARGET,
|
|
5663
|
+
cn as ATTR_MOUSE_FORCE_TO_AXIS,
|
|
5664
|
+
fn as ATTR_MOUSE_INVERT,
|
|
5665
|
+
un as ATTR_MOUSE_NO_MOUSE_WHEEL_CLASS,
|
|
5666
|
+
pn as ATTR_MOUSE_RELEASE_ON_EDGES,
|
|
5667
|
+
mn as ATTR_MOUSE_SENSITIVITY,
|
|
5668
|
+
hn as ATTR_MOUSE_THRESHOLD_DELTA,
|
|
5669
|
+
gn as ATTR_MOUSE_THRESHOLD_TIME,
|
|
5670
|
+
vn as ATTR_NAVIGATION_DISABLED_CLASS,
|
|
5671
|
+
En as ATTR_NAVIGATION_ENABLED,
|
|
5672
|
+
Sn as ATTR_NAVIGATION_HIDDEN_CLASS,
|
|
5673
|
+
bn as ATTR_NAVIGATION_HIDE_ON_CLICK,
|
|
5669
5674
|
yt as ATTR_NAVIGATION_LOCK_CLASS,
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5675
|
+
yn as ATTR_NAVIGATION_NAVIGATION_DISABLED_CLASS,
|
|
5676
|
+
Za as ATTR_NESTED,
|
|
5677
|
+
tr as ATTR_NORMALIZE_SLIDE_INDEX,
|
|
5678
|
+
Qa as ATTR_NO_SWIPING,
|
|
5679
|
+
Ja as ATTR_NO_SWIPING_CLASS,
|
|
5680
|
+
er as ATTR_NO_SWIPING_SELECTOR,
|
|
5681
|
+
ar as ATTR_OBSERVER,
|
|
5682
|
+
ir as ATTR_OBSERVE_SLIDE_CHILDREN,
|
|
5683
|
+
sr as ATTR_OBSERVE_SLIDE_PARENTS,
|
|
5684
|
+
rr as ATTR_ONE_WAY_MOVEMENT,
|
|
5685
|
+
_n as ATTR_PAGINATION_BULLET_ACTIVE_CLASS,
|
|
5681
5686
|
Eo as ATTR_PAGINATION_BULLET_CLASS,
|
|
5682
|
-
|
|
5683
|
-
|
|
5687
|
+
xn as ATTR_PAGINATION_CLICKABLE,
|
|
5688
|
+
Ln as ATTR_PAGINATION_CLICKABLE_CLASS,
|
|
5684
5689
|
Mn as ATTR_PAGINATION_CURRENT_CLASS,
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5690
|
+
Cn as ATTR_PAGINATION_DYNAMIC_BULLETS,
|
|
5691
|
+
In as ATTR_PAGINATION_DYNAMIC_MAIN_BULLETS,
|
|
5692
|
+
Rn as ATTR_PAGINATION_ENABLED,
|
|
5693
|
+
On as ATTR_PAGINATION_HIDDEN_CLASS,
|
|
5694
|
+
Pn as ATTR_PAGINATION_HIDE_ON_CLICK,
|
|
5695
|
+
Dn as ATTR_PAGINATION_HORIZONTAL_CLASS,
|
|
5691
5696
|
So as ATTR_PAGINATION_LOCK_CLASS,
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
5697
|
+
Nn as ATTR_PAGINATION_MODIFIER_CLASS,
|
|
5698
|
+
zn as ATTR_PAGINATION_PAGINATION_DISABLED_CLASS,
|
|
5699
|
+
$n as ATTR_PAGINATION_PROGRESSBAR_FILL_CLASS,
|
|
5700
|
+
Gn as ATTR_PAGINATION_PROGRESSBAR_OPPOSITE,
|
|
5701
|
+
Bn as ATTR_PAGINATION_PROGRESSBAR_OPPOSITE_CLASS,
|
|
5702
|
+
kn as ATTR_PAGINATION_TOTAL_CLASS,
|
|
5703
|
+
An as ATTR_PAGINATION_TYPE,
|
|
5704
|
+
Hn as ATTR_PAGINATION_VERTICAL_CLASS,
|
|
5705
|
+
Mo as ATTR_PARALLAX,
|
|
5701
5706
|
Po as ATTR_PARALLAX_DURATION,
|
|
5702
|
-
|
|
5707
|
+
Ml as ATTR_PARALLAX_ENABLED,
|
|
5703
5708
|
Oo as ATTR_PARALLAX_OPACITY,
|
|
5704
5709
|
Ro as ATTR_PARALLAX_SCALE,
|
|
5705
5710
|
Co as ATTR_PARALLAX_X,
|
|
5706
5711
|
Io as ATTR_PARALLAX_Y,
|
|
5707
|
-
|
|
5712
|
+
nr as ATTR_PASSIVE_LISTENERS,
|
|
5708
5713
|
Xn as ATTR_PAUSE_ON_MOUSE_ENTER,
|
|
5709
5714
|
Cl as ATTR_PLAYBACK_MODE,
|
|
5710
|
-
|
|
5711
|
-
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5715
|
+
lr as ATTR_PREVENT_CLICKS,
|
|
5716
|
+
or as ATTR_PREVENT_CLICKS_PROPAGATION,
|
|
5717
|
+
dr as ATTR_PREVENT_INTERACTION_ON_TRANSITION,
|
|
5718
|
+
cr as ATTR_RESISTANCE,
|
|
5719
|
+
fr as ATTR_RESISTANCE_RATIO,
|
|
5720
|
+
ur as ATTR_RESIZE_OBSERVER,
|
|
5716
5721
|
Yn as ATTR_REVERSE_DIRECTION,
|
|
5717
5722
|
To as ATTR_REWIND,
|
|
5718
|
-
|
|
5719
|
-
|
|
5723
|
+
pr as ATTR_ROUND_LENGTHS,
|
|
5724
|
+
mr as ATTR_RUN_CALLBACKS_ON_INIT,
|
|
5720
5725
|
il as ATTR_SCROLLBAR_DRAGGABLE,
|
|
5721
5726
|
yo as ATTR_SCROLLBAR_DRAG_CLASS,
|
|
5722
5727
|
sl as ATTR_SCROLLBAR_DRAG_SIZE,
|
|
@@ -5727,70 +5732,70 @@ export {
|
|
|
5727
5732
|
ol as ATTR_SCROLLBAR_SCROLLBAR_DISABLED_CLASS,
|
|
5728
5733
|
cl as ATTR_SCROLLBAR_SNAP_ON_RELEASE,
|
|
5729
5734
|
dl as ATTR_SCROLLBAR_VERTICAL_CLASS,
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
+
hr as ATTR_SET_WRAPPER_SIZE,
|
|
5736
|
+
gr as ATTR_SHORT_SWIPES,
|
|
5737
|
+
wr as ATTR_SIMULATE_TOUCH,
|
|
5738
|
+
xr as ATTR_SLIDES_OFFSET_AFTER,
|
|
5739
|
+
Lr as ATTR_SLIDES_OFFSET_BEFORE,
|
|
5735
5740
|
Mr as ATTR_SLIDES_PER_GROUP,
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5741
|
+
Cr as ATTR_SLIDES_PER_GROUP_AUTO,
|
|
5742
|
+
Ir as ATTR_SLIDES_PER_GROUP_SKIP,
|
|
5743
|
+
Rr as ATTR_SLIDES_PER_VIEW,
|
|
5744
|
+
Tr as ATTR_SLIDE_ACTIVE_CLASS,
|
|
5745
|
+
Er as ATTR_SLIDE_BLANK_CLASS,
|
|
5746
|
+
vr as ATTR_SLIDE_CLASS,
|
|
5747
|
+
Sr as ATTR_SLIDE_FULLY_VISIBLE_CLASS,
|
|
5748
|
+
br as ATTR_SLIDE_NEXT_CLASS,
|
|
5749
|
+
yr as ATTR_SLIDE_PREV_CLASS,
|
|
5750
|
+
Ar as ATTR_SLIDE_TO_CLICKED_SLIDE,
|
|
5751
|
+
_r as ATTR_SLIDE_VISIBLE_CLASS,
|
|
5752
|
+
At as ATTR_SMOOTH_AUTOPLAY,
|
|
5753
|
+
Or as ATTR_SPACE_BETWEEN,
|
|
5754
|
+
Pr as ATTR_SPEED,
|
|
5750
5755
|
Un as ATTR_STOP_ON_LAST_SLIDE,
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5756
|
+
Nr as ATTR_SWIPER_ELEMENT_NODE_NAME,
|
|
5757
|
+
Dr as ATTR_SWIPE_HANDLER,
|
|
5758
|
+
Vi as ATTR_TABLET_CENTERED_SLIDES,
|
|
5754
5759
|
mo as ATTR_TABLET_SLIDES_PER_GROUP,
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5760
|
+
Fi as ATTR_TABLET_SLIDES_PER_VIEW,
|
|
5761
|
+
Wi as ATTR_TABLET_SPACE_BETWEEN,
|
|
5762
|
+
zr as ATTR_THRESHOLD,
|
|
5758
5763
|
nt as ATTR_THUMBS,
|
|
5759
5764
|
fl as ATTR_THUMBS_AUTO_SCROLL_OFFSET,
|
|
5760
5765
|
ml as ATTR_THUMBS_CONTAINER_CLASS,
|
|
5761
5766
|
ul as ATTR_THUMBS_MULTIPLE_ACTIVE_THUMBS,
|
|
5762
5767
|
pl as ATTR_THUMBS_SLIDE_THUMB_ACTIVE_CLASS,
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5773
|
-
|
|
5768
|
+
$r as ATTR_TOUCH_ANGLE,
|
|
5769
|
+
Gr as ATTR_TOUCH_EVENTS_TARGET,
|
|
5770
|
+
Br as ATTR_TOUCH_MOVE_STOP_PROPAGATION,
|
|
5771
|
+
kr as ATTR_TOUCH_RATIO,
|
|
5772
|
+
Hr as ATTR_TOUCH_RELEASE_ON_EDGES,
|
|
5773
|
+
Vr as ATTR_TOUCH_START_FORCE_PREVENT_DEFAULT,
|
|
5774
|
+
Fr as ATTR_TOUCH_START_PREVENT_DEFAULT,
|
|
5775
|
+
Wr as ATTR_UNIQUE_NAV_ELEMENTS,
|
|
5776
|
+
Yr as ATTR_UPDATE_ON_WINDOW_RESIZE,
|
|
5777
|
+
Xr as ATTR_URL,
|
|
5778
|
+
Ur as ATTR_USER_AGENT,
|
|
5774
5779
|
vo as ATTR_VIRTUAL_TRANSLATE,
|
|
5775
5780
|
bo as ATTR_WAIT_FOR_TRANSITION,
|
|
5776
|
-
|
|
5777
|
-
|
|
5781
|
+
qr as ATTR_WATCH_OVERFLOW,
|
|
5782
|
+
jr as ATTR_WATCH_SLIDES_PROGRESS,
|
|
5778
5783
|
Ee as ATTR_WATERFALL,
|
|
5779
5784
|
fo as ATTR_WATERFALL_CONTENT,
|
|
5780
5785
|
pe as ATTR_WATERFALL_ELEMENT,
|
|
5781
5786
|
co as ATTR_WATERFALL_POSTLOAD,
|
|
5782
5787
|
oo as ATTR_WATERFALL_PRELOAD,
|
|
5783
|
-
|
|
5784
|
-
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5788
|
+
Kr as ATTR_WIDTH,
|
|
5789
|
+
Zr as ATTR_WRAPPER_CLASS,
|
|
5790
|
+
Qi as ATTR_XLARGE_CENTERED_SLIDES,
|
|
5791
|
+
ea as ATTR_XLARGE_SLIDES_PER_GROUP,
|
|
5792
|
+
Ji as ATTR_XLARGE_SLIDES_PER_VIEW,
|
|
5793
|
+
ta as ATTR_XLARGE_SPACE_BETWEEN,
|
|
5789
5794
|
_o as ATTR_ZOOM,
|
|
5790
|
-
|
|
5795
|
+
Ll as ATTR_ZOOMED_SLIDE_CLASS,
|
|
5791
5796
|
Sl as ATTR_ZOOM_CONTAINER_CLASS,
|
|
5792
5797
|
xo as ATTR_ZOOM_ENABLED,
|
|
5793
|
-
|
|
5798
|
+
Lo as ATTR_ZOOM_FADE,
|
|
5794
5799
|
bl as ATTR_ZOOM_LIMIT_TO_ORIGINAL_SIZE,
|
|
5795
5800
|
yl as ATTR_ZOOM_MAX_RATIO,
|
|
5796
5801
|
Al as ATTR_ZOOM_MIN_RATIO,
|