vendor: 82,797 bytes, lines 1-1751
1/** 2 * Swiper 8.0.7 3 * Most modern mobile touch slider and framework with hardware accelerated transitions 4 * https://swiperjs.com 5 * 6 * Copyright 2014-2022 Vladimir Kharlampidi 7 * 8 * Released under the MIT License 9 * 10 * Released on: March 4, 2022 11 */ 12 13! function(e, t) { 14 "object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).Swiper = t() 15}(this, (function() { 16 "use strict"; 17 18 function e(e) { 19 return null !== e && "object" == typeof e && "constructor" in e && e.constructor === Object 20 } 21 22 function t(s, a) { 23 void 0 === s && (s = {}), void 0 === a && (a = {}), Object.keys(a).forEach((i => { 24 void 0 === s[i] ? s[i] = a[i] : e(a[i]) && e(s[i]) && Object.keys(a[i]).length > 0 && t(s[i], a[i]) 25 })) 26 } 27 const s = { 28 body: {}, 29 addEventListener() {}, 30 removeEventListener() {}, 31 activeElement: { 32 blur() {}, 33 nodeName: "" 34 }, 35 querySelector: () => null, 36 querySelectorAll: () => [], 37 getElementById: () => null, 38 createEvent: () => ({ 39 initEvent() {} 40 }), 41 createElement: () => ({ 42 children: [], 43 childNodes: [], 44 style: {}, 45 setAttribute() {}, 46 getElementsByTagName: () => [] 47 }), 48 createElementNS: () => ({}), 49 importNode: () => null, 50 location: { 51 hash: "", 52 host: "", 53 hostname: "", 54 href: "", 55 origin: "", 56 pathname: "", 57 protocol: "", 58 search: "" 59 } 60 }; 61 62 function a() { 63 const e = "undefined" != typeof document ? document : {}; 64 return t(e, s), e 65 } 66 const i = { 67 document: s, 68 navigator: { 69 userAgent: "" 70 }, 71 location: { 72 hash: "", 73 host: "", 74 hostname: "", 75 href: "", 76 origin: "", 77 pathname: "", 78 protocol: "", 79 search: "" 80 }, 81 history: { 82 replaceState() {}, 83 pushState() {}, 84 go() {}, 85 back() {} 86 }, 87 CustomEvent: function() { 88 return this 89 }, 90 addEventListener() {}, 91 removeEventListener() {}, 92 getComputedStyle: () => ({ 93 getPropertyValue: () => "" 94 }), 95 Image() {}, 96 Date() {}, 97 screen: {}, 98 setTimeout() {}, 99 clearTimeout() {}, 100 matchMedia: () => ({}), 101 requestAnimationFrame: e => "undefined" == typeof setTimeout ? (e(), null) : setTimeout(e, 0), 102 cancelAnimationFrame(e) { 103 "undefined" != typeof setTimeout && clearTimeout(e) 104 } 105 }; 106 107 function r() { 108 const e = "undefined" != typeof window ? window : {}; 109 return t(e, i), e 110 } 111 class n extends Array { 112 constructor(e) { 113 "number" == typeof e ? super(e) : (super(...e || []), function(e) { 114 const t = e.__proto__; 115 Object.defineProperty(e, "__proto__", { 116 get: () => t, 117 set(e) { 118 t.__proto__ = e 119 } 120 }) 121 }(this)) 122 } 123 } 124 125 function l(e) { 126 void 0 === e && (e = []); 127 const t = []; 128 return e.forEach((e => { 129 Array.isArray(e) ? t.push(...l(e)) : t.push(e) 130 })), t 131 } 132 133 function o(e, t) { 134 return Array.prototype.filter.call(e, t) 135 } 136 137 function d(e, t) { 138 const s = r(), 139 i = a(); 140 let l = []; 141 if (!t && e instanceof n) return e; 142 if (!e) return new n(l); 143 if ("string" == typeof e) { 144 const s = e.trim(); 145 if (s.indexOf("<") >= 0 && s.indexOf(">") >= 0) { 146 let e = "div"; 147 0 === s.indexOf("<li") && (e = "ul"), 0 === s.indexOf("<tr") && (e = "tbody"), 0 !== s.indexOf("<td") && 0 !== s.indexOf("<th") || (e = "tr"), 0 === s.indexOf("<tbody") && (e = "table"), 0 === s.indexOf("<option") && (e = "select"); 148 const t = i.createElement(e); 149 t.innerHTML = s; 150 for (let e = 0; e < t.childNodes.length; e += 1) l.push(t.childNodes[e]) 151 } else l = function(e, t) { 152 if ("string" != typeof e) return [e]; 153 const s = [], 154 a = t.querySelectorAll(e); 155 for (let e = 0; e < a.length; e += 1) s.push(a[e]); 156 return s 157 }(e.trim(), t || i) 158 } else if (e.nodeType || e === s || e === i) l.push(e); 159 else if (Array.isArray(e)) { 160 if (e instanceof n) return e; 161 l = e 162 } 163 return new n(function(e) { 164 const t = []; 165 for (let s = 0; s < e.length; s += 1) - 1 === t.indexOf(e[s]) && t.push(e[s]); 166 return t 167 }(l)) 168 } 169 d.fn = n.prototype; 170 const c = { 171 addClass: function() { 172 for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++) t[s] = arguments[s]; 173 const a = l(t.map((e => e.split(" ")))); 174 return this.forEach((e => { 175 e.classList.add(...a) 176 })), this 177 }, 178 removeClass: function() { 179 for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++) t[s] = arguments[s]; 180 const a = l(t.map((e => e.split(" ")))); 181 return this.forEach((e => { 182 e.classList.remove(...a) 183 })), this 184 }, 185 hasClass: function() { 186 for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++) t[s] = arguments[s]; 187 const a = l(t.map((e => e.split(" ")))); 188 return o(this, (e => a.filter((t => e.classList.contains(t))).length > 0)).length > 0 189 }, 190 toggleClass: function() { 191 for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++) t[s] = arguments[s]; 192 const a = l(t.map((e => e.split(" ")))); 193 this.forEach((e => { 194 a.forEach((t => { 195 e.classList.toggle(t) 196 })) 197 })) 198 }, 199 attr: function(e, t) { 200 if (1 === arguments.length && "string" == typeof e) return this[0] ? this[0].getAttribute(e) : void 0; 201 for (let s = 0; s < this.length; s += 1) 202 if (2 === arguments.length) this[s].setAttribute(e, t); 203 else 204 for (const t in e) this[s][t] = e[t], this[s].setAttribute(t, e[t]); 205 return this 206 }, 207 removeAttr: function(e) { 208 for (let t = 0; t < this.length; t += 1) this[t].removeAttribute(e); 209 return this 210 }, 211 transform: function(e) { 212 for (let t = 0; t < this.length; t += 1) this[t].style.transform = e; 213 return this 214 }, 215 transition: function(e) { 216 for (let t = 0; t < this.length; t += 1) this[t].style.transitionDuration = "string" != typeof e ? `${e}ms` : e; 217 return this 218 }, 219 on: function() { 220 for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++) t[s] = arguments[s]; 221 let [a, i, r, n] = t; 222 223 function l(e) { 224 const t = e.target; 225 if (!t) return; 226 const s = e.target.dom7EventData || []; 227 if (s.indexOf(e) < 0 && s.unshift(e), d(t).is(i)) r.apply(t, s); 228 else { 229 const e = d(t).parents(); 230 for (let t = 0; t < e.length; t += 1) d(e[t]).is(i) && r.apply(e[t], s) 231 } 232 } 233 234 function o(e) { 235 const t = e && e.target && e.target.dom7EventData || []; 236 t.indexOf(e) < 0 && t.unshift(e), r.apply(this, t) 237 } 238 "function" == typeof t[1] && ([a, r, n] = t, i = void 0), n || (n = !1); 239 const c = a.split(" "); 240 let p; 241 for (let e = 0; e < this.length; e += 1) { 242 const t = this[e]; 243 if (i) 244 for (p = 0; p < c.length; p += 1) { 245 const e = c[p]; 246 t.dom7LiveListeners || (t.dom7LiveListeners = {}), t.dom7LiveListeners[e] || (t.dom7LiveListeners[e] = []), t.dom7LiveListeners[e].push({ 247 listener: r, 248 proxyListener: l 249 }), t.addEventListener(e, l, n) 250 } else 251 for (p = 0; p < c.length; p += 1) { 252 const e = c[p]; 253 t.dom7Listeners || (t.dom7Listeners = {}), t.dom7Listeners[e] || (t.dom7Listeners[e] = []), t.dom7Listeners[e].push({ 254 listener: r, 255 proxyListener: o 256 }), t.addEventListener(e, o, n) 257 } 258 } 259 return this 260 }, 261 off: function() { 262 for (var e = arguments.length, t = new Array(e), s = 0; s < e; s++) t[s] = arguments[s]; 263 let [a, i, r, n] = t; 264 "function" == typeof t[1] && ([a, r, n] = t, i = void 0), n || (n = !1); 265 const l = a.split(" "); 266 for (let e = 0; e < l.length; e += 1) { 267 const t = l[e]; 268 for (let e = 0; e < this.length; e += 1) { 269 const s = this[e]; 270 let a; 271 if (!i && s.dom7Listeners ? a = s.dom7Listeners[t] : i && s.dom7LiveListeners && (a = s.dom7LiveListeners[t]), a && a.length) 272 for (let e = a.length - 1; e >= 0; e -= 1) { 273 const i = a[e]; 274 r && i.listener === r || r && i.listener && i.listener.dom7proxy && i.listener.dom7proxy === r ? (s.removeEventListener(t, i.proxyListener, n), a.splice(e, 1)) : r || (s.removeEventListener(t, i.proxyListener, n), a.splice(e, 1)) 275 } 276 } 277 } 278 return this 279 }, 280 trigger: function() { 281 const e = r(); 282 for (var t = arguments.length, s = new Array(t), a = 0; a < t; a++) s[a] = arguments[a]; 283 const i = s[0].split(" "), 284 n = s[1]; 285 for (let t = 0; t < i.length; t += 1) { 286 const a = i[t]; 287 for (let t = 0; t < this.length; t += 1) { 288 const i = this[t]; 289 if (e.CustomEvent) { 290 const t = new e.CustomEvent(a, { 291 detail: n, 292 bubbles: !0, 293 cancelable: !0 294 }); 295 i.dom7EventData = s.filter(((e, t) => t > 0)), i.dispatchEvent(t), i.dom7EventData = [], delete i.dom7EventData 296 } 297 } 298 } 299 return this 300 }, 301 transitionEnd: function(e) { 302 const t = this; 303 return e && t.on("transitionend", (function s(a) { 304 a.target === this && (e.call(this, a), t.off("transitionend", s)) 305 })), this 306 }, 307 outerWidth: function(e) { 308 if (this.length > 0) { 309 if (e) { 310 const e = this.styles(); 311 return this[0].offsetWidth + parseFloat(e.getPropertyValue("margin-right")) + parseFloat(e.getPropertyValue("margin-left")) 312 } 313 return this[0].offsetWidth 314 } 315 return null 316 }, 317 outerHeight: function(e) { 318 if (this.length > 0) { 319 if (e) { 320 const e = this.styles(); 321 return this[0].offsetHeight + parseFloat(e.getPropertyValue("margin-top")) + parseFloat(e.getPropertyValue("margin-bottom")) 322 } 323 return this[0].offsetHeight 324 } 325 return null 326 }, 327 styles: function() { 328 const e = r(); 329 return this[0] ? e.getComputedStyle(this[0], null) : {} 330 }, 331 offset: function() { 332 if (this.length > 0) { 333 const e = r(), 334 t = a(), 335 s = this[0], 336 i = s.getBoundingClientRect(), 337 n = t.body, 338 l = s.clientTop || n.clientTop || 0, 339 o = s.clientLeft || n.clientLeft || 0, 340 d = s === e ? e.scrollY : s.scrollTop, 341 c = s === e ? e.scrollX : s.scrollLeft; 342 return { 343 top: i.top + d - l, 344 left: i.left + c - o 345 } 346 } 347 return null 348 }, 349 css: function(e, t) { 350 const s = r(); 351 let a; 352 if (1 === arguments.length) { 353 if ("string" != typeof e) { 354 for (a = 0; a < this.length; a += 1) 355 for (const t in e) this[a].style[t] = e[t]; 356 return this 357 } 358 if (this[0]) return s.getComputedStyle(this[0], null).getPropertyValue(e) 359 } 360 if (2 === arguments.length && "string" == typeof e) { 361 for (a = 0; a < this.length; a += 1) this[a].style[e] = t; 362 return this 363 } 364 return this 365 }, 366 each: function(e) { 367 return e ? (this.forEach(((t, s) => { 368 e.apply(t, [t, s]) 369 })), this) : this 370 }, 371 html: function(e) { 372 if (void 0 === e) return this[0] ? this[0].innerHTML : null; 373 for (let t = 0; t < this.length; t += 1) this[t].innerHTML = e; 374 return this 375 }, 376 text: function(e) { 377 if (void 0 === e) return this[0] ? this[0].textContent.trim() : null; 378 for (let t = 0; t < this.length; t += 1) this[t].textContent = e; 379 return this 380 }, 381 is: function(e) { 382 const t = r(), 383 s = a(), 384 i = this[0]; 385 let l, o; 386 if (!i || void 0 === e) return !1; 387 if ("string" == typeof e) { 388 if (i.matches) return i.matches(e); 389 if (i.webkitMatchesSelector) return i.webkitMatchesSelector(e); 390 if (i.msMatchesSelector) return i.msMatchesSelector(e); 391 for (l = d(e), o = 0; o < l.length; o += 1) 392 if (l[o] === i) return !0; 393 return !1 394 } 395 if (e === s) return i === s; 396 if (e === t) return i === t; 397 if (e.nodeType || e instanceof n) { 398 for (l = e.nodeType ? [e] : e, o = 0; o < l.length; o += 1) 399 if (l[o] === i) return !0; 400 return !1 401 } 402 return !1 403 }, 404 index: function() { 405 let e, t = this[0]; 406 if (t) { 407 for (e = 0; null !== (t = t.previousSibling);) 1 === t.nodeType && (e += 1); 408 return e 409 } 410 }, 411 eq: function(e) { 412 if (void 0 === e) return this; 413 const t = this.length; 414 if (e > t - 1) return d([]); 415 if (e < 0) { 416 const s = t + e; 417 return d(s < 0 ? [] : [this[s]]) 418 } 419 return d([this[e]]) 420 }, 421 append: function() { 422 let e; 423 const t = a(); 424 for (let s = 0; s < arguments.length; s += 1) { 425 e = s < 0 || arguments.length <= s ? void 0 : arguments[s]; 426 for (let s = 0; s < this.length; s += 1) 427 if ("string" == typeof e) { 428 const a = t.createElement("div"); 429 for (a.innerHTML = e; a.firstChild;) this[s].appendChild(a.firstChild) 430 } else if (e instanceof n) 431 for (let t = 0; t < e.length; t += 1) this[s].appendChild(e[t]); 432 else this[s].appendChild(e) 433 } 434 return this 435 }, 436 prepend: function(e) { 437 const t = a(); 438 let s, i; 439 for (s = 0; s < this.length; s += 1) 440 if ("string" == typeof e) { 441 const a = t.createElement("div"); 442 for (a.innerHTML = e, i = a.childNodes.length - 1; i >= 0; i -= 1) this[s].insertBefore(a.childNodes[i], this[s].childNodes[0]) 443 } else if (e instanceof n) 444 for (i = 0; i < e.length; i += 1) this[s].insertBefore(e[i], this[s].childNodes[0]); 445 else this[s].insertBefore(e, this[s].childNodes[0]); 446 return this 447 }, 448 next: function(e) { 449 return this.length > 0 ? e ? this[0].nextElementSibling && d(this[0].nextElementSibling).is(e) ? d([this[0].nextElementSibling]) : d([]) : this[0].nextElementSibling ? d([this[0].nextElementSibling]) : d([]) : d([]) 450 }, 451 nextAll: function(e) { 452 const t = []; 453 let s = this[0]; 454 if (!s) return d([]); 455 for (; s.nextElementSibling;) { 456 const a = s.nextElementSibling; 457 e ? d(a).is(e) && t.push(a) : t.push(a), s = a 458 } 459 return d(t) 460 }, 461 prev: function(e) { 462 if (this.length > 0) { 463 const t = this[0]; 464 return e ? t.previousElementSibling && d(t.previousElementSibling).is(e) ? d([t.previousElementSibling]) : d([]) : t.previousElementSibling ? d([t.previousElementSibling]) : d([]) 465 } 466 return d([]) 467 }, 468 prevAll: function(e) { 469 const t = []; 470 let s = this[0]; 471 if (!s) return d([]); 472 for (; s.previousElementSibling;) { 473 const a = s.previousElementSibling; 474 e ? d(a).is(e) && t.push(a) : t.push(a), s = a 475 } 476 return d(t) 477 }, 478 parent: function(e) { 479 const t = []; 480 for (let s = 0; s < this.length; s += 1) null !== this[s].parentNode && (e ? d(this[s].parentNode).is(e) && t.push(this[s].parentNode) : t.push(this[s].parentNode)); 481 return d(t) 482 }, 483 parents: function(e) { 484 const t = []; 485 for (let s = 0; s < this.length; s += 1) { 486 let a = this[s].parentNode; 487 for (; a;) e ? d(a).is(e) && t.push(a) : t.push(a), a = a.parentNode 488 } 489 return d(t) 490 }, 491 closest: function(e) { 492 let t = this; 493 return void 0 === e ? d([]) : (t.is(e) || (t = t.parents(e).eq(0)), t) 494 }, 495 find: function(e) { 496 const t = []; 497 for (let s = 0; s < this.length; s += 1) { 498 const a = this[s].querySelectorAll(e); 499 for (let e = 0; e < a.length; e += 1) t.push(a[e]) 500 } 501 return d(t) 502 }, 503 children: function(e) { 504 const t = []; 505 for (let s = 0; s < this.length; s += 1) { 506 const a = this[s].children; 507 for (let s = 0; s < a.length; s += 1) e && !d(a[s]).is(e) || t.push(a[s]) 508 } 509 return d(t) 510 }, 511 filter: function(e) { 512 return d(o(this, e)) 513 }, 514 remove: function() { 515 for (let e = 0; e < this.length; e += 1) this[e].parentNode && this[e].parentNode.removeChild(this[e]); 516 return this 517 } 518 }; 519 520 function p(e, t) { 521 return void 0 === t && (t = 0), setTimeout(e, t) 522 } 523 524 function u() { 525 return Date.now() 526 } 527 528 function h(e, t) { 529 void 0 === t && (t = "x"); 530 const s = r(); 531 let a, i, n; 532 const l = function(e) { 533 const t = r(); 534 let s; 535 return t.getComputedStyle && (s = t.getComputedStyle(e, null)), !s && e.currentStyle && (s = e.currentStyle), s || (s = e.style), s 536 }(e); 537 return s.WebKitCSSMatrix ? (i = l.transform || l.webkitTransform, i.split(",").length > 6 && (i = i.split(", ").map((e => e.replace(",", "."))).join(", ")), n = new s.WebKitCSSMatrix("none" === i ? "" : i)) : (n = l.MozTransform || l.OTransform || l.MsTransform || l.msTransform || l.transform || l.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), a = n.toString().split(",")), "x" === t && (i = s.WebKitCSSMatrix ? n.m41 : 16 === a.length ? parseFloat(a[12]) : parseFloat(a[4])), "y" === t && (i = s.WebKitCSSMatrix ? n.m42 : 16 === a.length ? parseFloat(a[13]) : parseFloat(a[5])), i || 0 538 } 539 540 function m(e) { 541 return "object" == typeof e && null !== e && e.constructor && "Object" === Object.prototype.toString.call(e).slice(8, -1) 542 } 543 544 function f(e) { 545 return "undefined" != typeof window && void 0 !== window.HTMLElement ? e instanceof HTMLElement : e && (1 === e.nodeType || 11 === e.nodeType) 546 } 547 548 function g() { 549 const e = Object(arguments.length <= 0 ? void 0 : arguments[0]), 550 t = ["__proto__", "constructor", "prototype"]; 551 for (let s = 1; s < arguments.length; s += 1) { 552 const a = s < 0 || arguments.length <= s ? void 0 : arguments[s]; 553 if (null != a && !f(a)) { 554 const s = Object.keys(Object(a)).filter((e => t.indexOf(e) < 0)); 555 for (let t = 0, i = s.length; t < i; t += 1) { 556 const i = s[t], 557 r = Object.getOwnPropertyDescriptor(a, i); 558 void 0 !== r && r.enumerable && (m(e[i]) && m(a[i]) ? a[i].__swiper__ ? e[i] = a[i] : g(e[i], a[i]) : !m(e[i]) && m(a[i]) ? (e[i] = {}, a[i].__swiper__ ? e[i] = a[i] : g(e[i], a[i])) : e[i] = a[i]) 559 } 560 } 561 } 562 return e 563 } 564 565 function v(e, t, s) { 566 e.style.setProperty(t, s) 567 } 568 569 function w(e) { 570 let { 571 swiper: t, 572 targetPosition: s, 573 side: a 574 } = e; 575 const i = r(), 576 n = -t.translate; 577 let l, o = null; 578 const d = t.params.speed; 579 t.wrapperEl.style.scrollSnapType = "none", i.cancelAnimationFrame(t.cssModeFrameID); 580 const c = s > n ? "next" : "prev", 581 p = (e, t) => "next" === c && e >= t || "prev" === c && e <= t, 582 u = () => { 583 l = (new Date).getTime(), null === o && (o = l); 584 const e = Math.max(Math.min((l - o) / d, 1), 0), 585 r = .5 - Math.cos(e * Math.PI) / 2; 586 let c = n + r * (s - n); 587 if (p(c, s) && (c = s), t.wrapperEl.scrollTo({ 588 [a]: c 589 }), p(c, s)) return t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.scrollSnapType = "", setTimeout((() => { 590 t.wrapperEl.style.overflow = "", t.wrapperEl.scrollTo({ 591 [a]: c 592 }) 593 })), void i.cancelAnimationFrame(t.cssModeFrameID); 594 t.cssModeFrameID = i.requestAnimationFrame(u) 595 }; 596 u() 597 } 598 let b, x, y; 599 600 function E() { 601 return b || (b = function() { 602 const e = r(), 603 t = a(); 604 return { 605 smoothScroll: t.documentElement && "scrollBehavior" in t.documentElement.style, 606 touch: !!("ontouchstart" in e || e.DocumentTouch && t instanceof e.DocumentTouch), 607 passiveListener: function() { 608 let t = !1; 609 try { 610 const s = Object.defineProperty({}, "passive", { 611 get() { 612 t = !0 613 } 614 }); 615 e.addEventListener("testPassiveListener", null, s) 616 } catch (e) {} 617 return t 618 }(), 619 gestures: "ongesturestart" in e 620 } 621 }()), b 622 } 623 624 function T(e) { 625 return void 0 === e && (e = {}), x || (x = function(e) { 626 let { 627 userAgent: t 628 } = void 0 === e ? {} : e; 629 const s = E(), 630 a = r(), 631 i = a.navigator.platform, 632 n = t || a.navigator.userAgent, 633 l = { 634 ios: !1, 635 android: !1 636 }, 637 o = a.screen.width, 638 d = a.screen.height, 639 c = n.match(/(Android);?[\s\/]+([\d.]+)?/); 640 let p = n.match(/(iPad).*OS\s([\d_]+)/); 641 const u = n.match(/(iPod)(.*OS\s([\d_]+))?/), 642 h = !p && n.match(/(iPhone\sOS|iOS)\s([\d_]+)/), 643 m = "Win32" === i; 644 let f = "MacIntel" === i; 645 return !p && f && s.touch && ["1024x1366", "1366x1024", "834x1194", "1194x834", "834x1112", "1112x834", "768x1024", "1024x768", "820x1180", "1180x820", "810x1080", "1080x810"].indexOf(`${o}x${d}`) >= 0 && (p = n.match(/(Version)\/([\d.]+)/), p || (p = [0, 1, "13_0_0"]), f = !1), c && !m && (l.os = "android", l.android = !0), (p || h || u) && (l.os = "ios", l.ios = !0), l 646 }(e)), x 647 } 648 649 function C() { 650 return y || (y = function() { 651 const e = r(); 652 return { 653 isSafari: function() { 654 const t = e.navigator.userAgent.toLowerCase(); 655 return t.indexOf("safari") >= 0 && t.indexOf("chrome") < 0 && t.indexOf("android") < 0 656 }(), 657 isWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent) 658 } 659 }()), y 660 } 661 Object.keys(c).forEach((e => { 662 Object.defineProperty(d.fn, e, { 663 value: c[e], 664 writable: !0 665 }) 666 })); 667 var $ = { 668 on(e, t, s) { 669 const a = this; 670 if ("function" != typeof t) return a; 671 const i = s ? "unshift" : "push"; 672 return e.split(" ").forEach((e => { 673 a.eventsListeners[e] || (a.eventsListeners[e] = []), a.eventsListeners[e][i](t) 674 })), a 675 }, 676 once(e, t, s) { 677 const a = this; 678 if ("function" != typeof t) return a; 679 680 function i() { 681 a.off(e, i), i.__emitterProxy && delete i.__emitterProxy; 682 for (var s = arguments.length, r = new Array(s), n = 0; n < s; n++) r[n] = arguments[n]; 683 t.apply(a, r) 684 } 685 return i.__emitterProxy = t, a.on(e, i, s) 686 }, 687 onAny(e, t) { 688 const s = this; 689 if ("function" != typeof e) return s; 690 const a = t ? "unshift" : "push"; 691 return s.eventsAnyListeners.indexOf(e) < 0 && s.eventsAnyListeners[a](e), s 692 }, 693 offAny(e) { 694 const t = this; 695 if (!t.eventsAnyListeners) return t; 696 const s = t.eventsAnyListeners.indexOf(e); 697 return s >= 0 && t.eventsAnyListeners.splice(s, 1), t 698 }, 699 off(e, t) { 700 const s = this; 701 return s.eventsListeners ? (e.split(" ").forEach((e => { 702 void 0 === t ? s.eventsListeners[e] = [] : s.eventsListeners[e] && s.eventsListeners[e].forEach(((a, i) => { 703 (a === t || a.__emitterProxy && a.__emitterProxy === t) && s.eventsListeners[e].splice(i, 1) 704 })) 705 })), s) : s 706 }, 707 emit() { 708 const e = this; 709 if (!e.eventsListeners) return e; 710 let t, s, a; 711 for (var i = arguments.length, r = new Array(i), n = 0; n < i; n++) r[n] = arguments[n]; 712 "string" == typeof r[0] || Array.isArray(r[0]) ? (t = r[0], s = r.slice(1, r.length), a = e) : (t = r[0].events, s = r[0].data, a = r[0].context || e), s.unshift(a); 713 return (Array.isArray(t) ? t : t.split(" ")).forEach((t => { 714 e.eventsAnyListeners && e.eventsAnyListeners.length && e.eventsAnyListeners.forEach((e => { 715 e.apply(a, [t, ...s]) 716 })), e.eventsListeners && e.eventsListeners[t] && e.eventsListeners[t].forEach((e => { 717 e.apply(a, s) 718 })) 719 })), e 720 } 721 }; 722 var S = { 723 updateSize: function() { 724 const e = this; 725 let t, s; 726 const a = e.$el; 727 t = void 0 !== e.params.width && null !== e.params.width ? e.params.width : a[0].clientWidth, s = void 0 !== e.params.height && null !== e.params.height ? e.params.height : a[0].clientHeight, 0 === t && e.isHorizontal() || 0 === s && e.isVertical() || (t = t - parseInt(a.css("padding-left") || 0, 10) - parseInt(a.css("padding-right") || 0, 10), s = s - parseInt(a.css("padding-top") || 0, 10) - parseInt(a.css("padding-bottom") || 0, 10), Number.isNaN(t) && (t = 0), Number.isNaN(s) && (s = 0), Object.assign(e, { 728 width: t, 729 height: s, 730 size: e.isHorizontal() ? t : s 731 })) 732 }, 733 updateSlides: function() { 734 const e = this; 735 736 function t(t) { 737 return e.isHorizontal() ? t : { 738 width: "height", 739 "margin-top": "margin-left", 740 "margin-bottom ": "margin-right", 741 "margin-left": "margin-top", 742 "margin-right": "margin-bottom", 743 "padding-left": "padding-top", 744 "padding-right": "padding-bottom", 745 marginRight: "marginBottom" 746 }[t] 747 } 748 749 function s(e, s) { 750 return parseFloat(e.getPropertyValue(t(s)) || 0) 751 } 752 const a = e.params, 753 { 754 $wrapperEl: i, 755 size: r, 756 rtlTranslate: n, 757 wrongRTL: l 758 } = e, 759 o = e.virtual && a.virtual.enabled, 760 d = o ? e.virtual.slides.length : e.slides.length, 761 c = i.children(`.${e.params.slideClass}`), 762 p = o ? e.virtual.slides.length : c.length; 763 let u = []; 764 const h = [], 765 m = []; 766 let f = a.slidesOffsetBefore; 767 "function" == typeof f && (f = a.slidesOffsetBefore.call(e)); 768 let g = a.slidesOffsetAfter; 769 "function" == typeof g && (g = a.slidesOffsetAfter.call(e)); 770 const w = e.snapGrid.length, 771 b = e.slidesGrid.length; 772 let x = a.spaceBetween, 773 y = -f, 774 E = 0, 775 T = 0; 776 if (void 0 === r) return; 777 "string" == typeof x && x.indexOf("%") >= 0 && (x = parseFloat(x.replace("%", "")) / 100 * r), e.virtualSize = -x, n ? c.css({ 778 marginLeft: "", 779 marginBottom: "", 780 marginTop: "" 781 }) : c.css({ 782 marginRight: "", 783 marginBottom: "", 784 marginTop: "" 785 }), a.centeredSlides && a.cssMode && (v(e.wrapperEl, "--swiper-centered-offset-before", ""), v(e.wrapperEl, "--swiper-centered-offset-after", "")); 786 const C = a.grid && a.grid.rows > 1 && e.grid; 787 let $; 788 C && e.grid.initSlides(p); 789 const S = "auto" === a.slidesPerView && a.breakpoints && Object.keys(a.breakpoints).filter((e => void 0 !== a.breakpoints[e].slidesPerView)).length > 0; 790 for (let i = 0; i < p; i += 1) { 791 $ = 0; 792 const n = c.eq(i); 793 if (C && e.grid.updateSlide(i, n, p, t), "none" !== n.css("display")) { 794 if ("auto" === a.slidesPerView) { 795 S && (c[i].style[t("width")] = ""); 796 const r = getComputedStyle(n[0]), 797 l = n[0].style.transform, 798 o = n[0].style.webkitTransform; 799 if (l && (n[0].style.transform = "none"), o && (n[0].style.webkitTransform = "none"), a.roundLengths) $ = e.isHorizontal() ? n.outerWidth(!0) : n.outerHeight(!0); 800 else { 801 const e = s(r, "width"), 802 t = s(r, "padding-left"), 803 a = s(r, "padding-right"), 804 i = s(r, "margin-left"), 805 l = s(r, "margin-right"), 806 o = r.getPropertyValue("box-sizing"); 807 if (o && "border-box" === o) $ = e + i + l; 808 else { 809 const { 810 clientWidth: s, 811 offsetWidth: r 812 } = n[0]; 813 $ = e + t + a + i + l + (r - s) 814 } 815 } 816 l && (n[0].style.transform = l), o && (n[0].style.webkitTransform = o), a.roundLengths && ($ = Math.floor($)) 817 } else $ = (r - (a.slidesPerView - 1) * x) / a.slidesPerView, a.roundLengths && ($ = Math.floor($)), c[i] && (c[i].style[t("width")] = `${$}px`); 818 c[i] && (c[i].swiperSlideSize = $), m.push($), a.centeredSlides ? (y = y + $ / 2 + E / 2 + x, 0 === E && 0 !== i && (y = y - r / 2 - x), 0 === i && (y = y - r / 2 - x), Math.abs(y) < .001 && (y = 0), a.roundLengths && (y = Math.floor(y)), T % a.slidesPerGroup == 0 && u.push(y), h.push(y)) : (a.roundLengths && (y = Math.floor(y)), (T - Math.min(e.params.slidesPerGroupSkip, T)) % e.params.slidesPerGroup == 0 && u.push(y), h.push(y), y = y + $ + x), e.virtualSize += $ + x, E = $, T += 1 819 } 820 } 821 if (e.virtualSize = Math.max(e.virtualSize, r) + g, n && l && ("slide" === a.effect || "coverflow" === a.effect) && i.css({ 822 width: `${e.virtualSize+a.spaceBetween}px` 823 }), a.setWrapperSize && i.css({ 824 [t("width")]: `${e.virtualSize+a.spaceBetween}px` 825 }), C && e.grid.updateWrapperSize($, u, t), !a.centeredSlides) { 826 const t = []; 827 for (let s = 0; s < u.length; s += 1) { 828 let i = u[s]; 829 a.roundLengths && (i = Math.floor(i)), u[s] <= e.virtualSize - r && t.push(i) 830 } 831 u = t, Math.floor(e.virtualSize - r) - Math.floor(u[u.length - 1]) > 1 && u.push(e.virtualSize - r) 832 } 833 if (0 === u.length && (u = [0]), 0 !== a.spaceBetween) { 834 const s = e.isHorizontal() && n ? "marginLeft" : t("marginRight"); 835 c.filter(((e, t) => !a.cssMode || t !== c.length - 1)).css({ 836 [s]: `${x}px` 837 }) 838 } 839 if (a.centeredSlides && a.centeredSlidesBounds) { 840 let e = 0; 841 m.forEach((t => { 842 e += t + (a.spaceBetween ? a.spaceBetween : 0) 843 })), e -= a.spaceBetween; 844 const t = e - r; 845 u = u.map((e => e < 0 ? -f : e > t ? t + g : e)) 846 } 847 if (a.centerInsufficientSlides) { 848 let e = 0; 849 if (m.forEach((t => { 850 e += t + (a.spaceBetween ? a.spaceBetween : 0) 851 })), e -= a.spaceBetween, e < r) { 852 const t = (r - e) / 2; 853 u.forEach(((e, s) => { 854 u[s] = e - t 855 })), h.forEach(((e, s) => { 856 h[s] = e + t 857 })) 858 } 859 } 860 if (Object.assign(e, { 861 slides: c, 862 snapGrid: u, 863 slidesGrid: h, 864 slidesSizesGrid: m 865 }), a.centeredSlides && a.cssMode && !a.centeredSlidesBounds) { 866 v(e.wrapperEl, "--swiper-centered-offset-before", -u[0] + "px"), v(e.wrapperEl, "--swiper-centered-offset-after", e.size / 2 - m[m.length - 1] / 2 + "px"); 867 const t = -e.snapGrid[0], 868 s = -e.slidesGrid[0]; 869 e.snapGrid = e.snapGrid.map((e => e + t)), e.slidesGrid = e.slidesGrid.map((e => e + s)) 870 } 871 if (p !== d && e.emit("slidesLengthChange"), u.length !== w && (e.params.watchOverflow && e.checkOverflow(), e.emit("snapGridLengthChange")), h.length !== b && e.emit("slidesGridLengthChange"), a.watchSlidesProgress && e.updateSlidesOffset(), !(o || a.cssMode || "slide" !== a.effect && "fade" !== a.effect)) { 872 const t = `${a.containerModifierClass}backface-hidden`, 873 s = e.$el.hasClass(t); 874 p <= a.maxBackfaceHiddenSlides ? s || e.$el.addClass(t) : s && e.$el.removeClass(t) 875 } 876 }, 877 updateAutoHeight: function(e) { 878 const t = this, 879 s = [], 880 a = t.virtual && t.params.virtual.enabled; 881 let i, r = 0; 882 "number" == typeof e ? t.setTransition(e) : !0 === e && t.setTransition(t.params.speed); 883 const n = e => a ? t.slides.filter((t => parseInt(t.getAttribute("data-swiper-slide-index"), 10) === e))[0] : t.slides.eq(e)[0]; 884 if ("auto" !== t.params.slidesPerView && t.params.slidesPerView > 1) 885 if (t.params.centeredSlides) t.visibleSlides.each((e => { 886 s.push(e) 887 })); 888 else 889 for (i = 0; i < Math.ceil(t.params.slidesPerView); i += 1) { 890 const e = t.activeIndex + i; 891 if (e > t.slides.length && !a) break; 892 s.push(n(e)) 893 } else s.push(n(t.activeIndex)); 894 for (i = 0; i < s.length; i += 1) 895 if (void 0 !== s[i]) { 896 const e = s[i].offsetHeight; 897 r = e > r ? e : r 898 }(r || 0 === r) && t.$wrapperEl.css("height", `${r}px`) 899 }, 900 updateSlidesOffset: function() { 901 const e = this, 902 t = e.slides; 903 for (let s = 0; s < t.length; s += 1) t[s].swiperSlideOffset = e.isHorizontal() ? t[s].offsetLeft : t[s].offsetTop 904 }, 905 updateSlidesProgress: function(e) { 906 void 0 === e && (e = this && this.translate || 0); 907 const t = this, 908 s = t.params, 909 { 910 slides: a, 911 rtlTranslate: i, 912 snapGrid: r 913 } = t; 914 if (0 === a.length) return; 915 void 0 === a[0].swiperSlideOffset && t.updateSlidesOffset(); 916 let n = -e; 917 i && (n = e), a.removeClass(s.slideVisibleClass), t.visibleSlidesIndexes = [], t.visibleSlides = []; 918 for (let e = 0; e < a.length; e += 1) { 919 const l = a[e]; 920 let o = l.swiperSlideOffset; 921 s.cssMode && s.centeredSlides && (o -= a[0].swiperSlideOffset); 922 const d = (n + (s.centeredSlides ? t.minTranslate() : 0) - o) / (l.swiperSlideSize + s.spaceBetween), 923 c = (n - r[0] + (s.centeredSlides ? t.minTranslate() : 0) - o) / (l.swiperSlideSize + s.spaceBetween), 924 p = -(n - o), 925 u = p + t.slidesSizesGrid[e]; 926 (p >= 0 && p < t.size - 1 || u > 1 && u <= t.size || p <= 0 && u >= t.size) && (t.visibleSlides.push(l), t.visibleSlidesIndexes.push(e), a.eq(e).addClass(s.slideVisibleClass)), l.progress = i ? -d : d, l.originalProgress = i ? -c : c 927 } 928 t.visibleSlides = d(t.visibleSlides) 929 }, 930 updateProgress: function(e) { 931 const t = this; 932 if (void 0 === e) { 933 const s = t.rtlTranslate ? -1 : 1; 934 e = t && t.translate && t.translate * s || 0 935 } 936 const s = t.params, 937 a = t.maxTranslate() - t.minTranslate(); 938 let { 939 progress: i, 940 isBeginning: r, 941 isEnd: n 942 } = t; 943 const l = r, 944 o = n; 945 0 === a ? (i = 0, r = !0, n = !0) : (i = (e - t.minTranslate()) / a, r = i <= 0, n = i >= 1), Object.assign(t, { 946 progress: i, 947 isBeginning: r, 948 isEnd: n 949 }), (s.watchSlidesProgress || s.centeredSlides && s.autoHeight) && t.updateSlidesProgress(e), r && !l && t.emit("reachBeginning toEdge"), n && !o && t.emit("reachEnd toEdge"), (l && !r || o && !n) && t.emit("fromEdge"), t.emit("progress", i) 950 }, 951 updateSlidesClasses: function() { 952 const e = this, 953 { 954 slides: t, 955 params: s, 956 $wrapperEl: a, 957 activeIndex: i, 958 realIndex: r 959 } = e, 960 n = e.virtual && s.virtual.enabled; 961 let l; 962 t.removeClass(`${s.slideActiveClass} ${s.slideNextClass} ${s.slidePrevClass} ${s.slideDuplicateActiveClass} ${s.slideDuplicateNextClass} ${s.slideDuplicatePrevClass}`), l = n ? e.$wrapperEl.find(`.${s.slideClass}[data-swiper-slide-index="${i}"]`) : t.eq(i), l.addClass(s.slideActiveClass), s.loop && (l.hasClass(s.slideDuplicateClass) ? a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${r}"]`).addClass(s.slideDuplicateActiveClass) : a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${r}"]`).addClass(s.slideDuplicateActiveClass)); 963 let o = l.nextAll(`.${s.slideClass}`).eq(0).addClass(s.slideNextClass); 964 s.loop && 0 === o.length && (o = t.eq(0), o.addClass(s.slideNextClass)); 965 let d = l.prevAll(`.${s.slideClass}`).eq(0).addClass(s.slidePrevClass); 966 s.loop && 0 === d.length && (d = t.eq(-1), d.addClass(s.slidePrevClass)), s.loop && (o.hasClass(s.slideDuplicateClass) ? a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass) : a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${o.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicateNextClass), d.hasClass(s.slideDuplicateClass) ? a.children(`.${s.slideClass}:not(.${s.slideDuplicateClass})[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass) : a.children(`.${s.slideClass}.${s.slideDuplicateClass}[data-swiper-slide-index="${d.attr("data-swiper-slide-index")}"]`).addClass(s.slideDuplicatePrevClass)), e.emitSlidesClasses() 967 }, 968 updateActiveIndex: function(e) { 969 const t = this, 970 s = t.rtlTranslate ? t.translate : -t.translate, 971 { 972 slidesGrid: a, 973 snapGrid: i, 974 params: r, 975 activeIndex: n, 976 realIndex: l, 977 snapIndex: o 978 } = t; 979 let d, c = e; 980 if (void 0 === c) { 981 for (let e = 0; e < a.length; e += 1) void 0 !== a[e + 1] ? s >= a[e] && s < a[e + 1] - (a[e + 1] - a[e]) / 2 ? c = e : s >= a[e] && s < a[e + 1] && (c = e + 1) : s >= a[e] && (c = e); 982 r.normalizeSlideIndex && (c < 0 || void 0 === c) && (c = 0) 983 } 984 if (i.indexOf(s) >= 0) d = i.indexOf(s); 985 else { 986 const e = Math.min(r.slidesPerGroupSkip, c); 987 d = e + Math.floor((c - e) / r.slidesPerGroup) 988 } 989 if (d >= i.length && (d = i.length - 1), c === n) return void(d !== o && (t.snapIndex = d, t.emit("snapIndexChange"))); 990 const p = parseInt(t.slides.eq(c).attr("data-swiper-slide-index") || c, 10); 991 Object.assign(t, { 992 snapIndex: d, 993 realIndex: p, 994 previousIndex: n, 995 activeIndex: c 996 }), t.emit("activeIndexChange"), t.emit("snapIndexChange"), l !== p && t.emit("realIndexChange"), (t.initialized || t.params.runCallbacksOnInit) && t.emit("slideChange") 997 }, 998 updateClickedSlide: function(e) { 999 const t = this, 1000 s = t.params, 1001 a = d(e).closest(`.${s.slideClass}`)[0]; 1002 let i, r = !1; 1003 if (a) 1004 for (let e = 0; e < t.slides.length; e += 1) 1005 if (t.slides[e] === a) { 1006 r = !0, i = e; 1007 break 1008 } 1009 if (!a || !r) return t.clickedSlide = void 0, void(t.clickedIndex = void 0); 1010 t.clickedSlide = a, t.virtual && t.params.virtual.enabled ? t.clickedIndex = parseInt(d(a).attr("data-swiper-slide-index"), 10) : t.clickedIndex = i, s.slideToClickedSlide && void 0 !== t.clickedIndex && t.clickedIndex !== t.activeIndex && t.slideToClickedSlide() 1011 } 1012 }; 1013 var M = { 1014 getTranslate: function(e) { 1015 void 0 === e && (e = this.isHorizontal() ? "x" : "y"); 1016 const { 1017 params: t, 1018 rtlTranslate: s, 1019 translate: a, 1020 $wrapperEl: i 1021 } = this; 1022 if (t.virtualTranslate) return s ? -a : a; 1023 if (t.cssMode) return a; 1024 let r = h(i[0], e); 1025 return s && (r = -r), r || 0 1026 }, 1027 setTranslate: function(e, t) { 1028 const s = this, 1029 { 1030 rtlTranslate: a, 1031 params: i, 1032 $wrapperEl: r, 1033 wrapperEl: n, 1034 progress: l 1035 } = s; 1036 let o, d = 0, 1037 c = 0; 1038 s.isHorizontal() ? d = a ? -e : e : c = e, i.roundLengths && (d = Math.floor(d), c = Math.floor(c)), i.cssMode ? n[s.isHorizontal() ? "scrollLeft" : "scrollTop"] = s.isHorizontal() ? -d : -c : i.virtualTranslate || r.transform(`translate3d(${d}px, ${c}px, 0px)`), s.previousTranslate = s.translate, s.translate = s.isHorizontal() ? d : c; 1039 const p = s.maxTranslate() - s.minTranslate(); 1040 o = 0 === p ? 0 : (e - s.minTranslate()) / p, o !== l && s.updateProgress(e), s.emit("setTranslate", s.translate, t) 1041 }, 1042 minTranslate: function() { 1043 return -this.snapGrid[0] 1044 }, 1045 maxTranslate: function() { 1046 return -this.snapGrid[this.snapGrid.length - 1] 1047 }, 1048 translateTo: function(e, t, s, a, i) { 1049 void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === s && (s = !0), void 0 === a && (a = !0); 1050 const r = this, 1051 { 1052 params: n, 1053 wrapperEl: l 1054 } = r; 1055 if (r.animating && n.preventInteractionOnTransition) return !1; 1056 const o = r.minTranslate(), 1057 d = r.maxTranslate(); 1058 let c; 1059 if (c = a && e > o ? o : a && e < d ? d : e, r.updateProgress(c), n.cssMode) { 1060 const e = r.isHorizontal(); 1061 if (0 === t) l[e ? "scrollLeft" : "scrollTop"] = -c; 1062 else { 1063 if (!r.support.smoothScroll) return w({ 1064 swiper: r, 1065 targetPosition: -c, 1066 side: e ? "left" : "top" 1067 }), !0; 1068 l.scrollTo({ 1069 [e ? "left" : "top"]: -c, 1070 behavior: "smooth" 1071 }) 1072 } 1073 return !0 1074 } 1075 return 0 === t ? (r.setTransition(0), r.setTranslate(c), s && (r.emit("beforeTransitionStart", t, i), r.emit("transitionEnd"))) : (r.setTransition(t), r.setTranslate(c), s && (r.emit("beforeTransitionStart", t, i), r.emit("transitionStart")), r.animating || (r.animating = !0, r.onTranslateToWrapperTransitionEnd || (r.onTranslateToWrapperTransitionEnd = function(e) { 1076 r && !r.destroyed && e.target === this && (r.$wrapperEl[0].removeEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.$wrapperEl[0].removeEventListener("webkitTransitionEnd", r.onTranslateToWrapperTransitionEnd), r.onTranslateToWrapperTransitionEnd = null, delete r.onTranslateToWrapperTransitionEnd, s && r.emit("transitionEnd")) 1077 }), r.$wrapperEl[0].addEventListener("transitionend", r.onTranslateToWrapperTransitionEnd), r.$wrapperEl[0].addEventListener("webkitTransitionEnd", r.onTranslateToWrapperTransitionEnd))), !0 1078 } 1079 }; 1080 1081 function P(e) { 1082 let { 1083 swiper: t, 1084 runCallbacks: s, 1085 direction: a, 1086 step: i 1087 } = e; 1088 const { 1089 activeIndex: r, 1090 previousIndex: n 1091 } = t; 1092 let l = a; 1093 if (l || (l = r > n ? "next" : r < n ? "prev" : "reset"), t.emit(`transition${i}`), s && r !== n) { 1094 if ("reset" === l) return void t.emit(`slideResetTransition${i}`); 1095 t.emit(`slideChangeTransition${i}`), "next" === l ? t.emit(`slideNextTransition${i}`) : t.emit(`slidePrevTransition${i}`) 1096 } 1097 } 1098 var k = { 1099 slideTo: function(e, t, s, a, i) { 1100 if (void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === s && (s = !0), "number" != typeof e && "string" != typeof e) throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof e}] given.`); 1101 if ("string" == typeof e) { 1102 const t = parseInt(e, 10); 1103 if (!isFinite(t)) throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${e}] given.`); 1104 e = t 1105 } 1106 const r = this; 1107 let n = e; 1108 n < 0 && (n = 0); 1109 const { 1110 params: l, 1111 snapGrid: o, 1112 slidesGrid: d, 1113 previousIndex: c, 1114 activeIndex: p, 1115 rtlTranslate: u, 1116 wrapperEl: h, 1117 enabled: m 1118 } = r; 1119 if (r.animating && l.preventInteractionOnTransition || !m && !a && !i) return !1; 1120 const f = Math.min(r.params.slidesPerGroupSkip, n); 1121 let g = f + Math.floor((n - f) / r.params.slidesPerGroup); 1122 g >= o.length && (g = o.length - 1), (p || l.initialSlide || 0) === (c || 0) && s && r.emit("beforeSlideChangeStart"); 1123 const v = -o[g]; 1124 if (r.updateProgress(v), l.normalizeSlideIndex) 1125 for (let e = 0; e < d.length; e += 1) { 1126 const t = -Math.floor(100 * v), 1127 s = Math.floor(100 * d[e]), 1128 a = Math.floor(100 * d[e + 1]); 1129 void 0 !== d[e + 1] ? t >= s && t < a - (a - s) / 2 ? n = e : t >= s && t < a && (n = e + 1) : t >= s && (n = e) 1130 } 1131 if (r.initialized && n !== p) { 1132 if (!r.allowSlideNext && v < r.translate && v < r.minTranslate()) return !1; 1133 if (!r.allowSlidePrev && v > r.translate && v > r.maxTranslate() && (p || 0) !== n) return !1 1134 } 1135 let b; 1136 if (b = n > p ? "next" : n < p ? "prev" : "reset", u && -v === r.translate || !u && v === r.translate) return r.updateActiveIndex(n), l.autoHeight && r.updateAutoHeight(), r.updateSlidesClasses(), "slide" !== l.effect && r.setTranslate(v), "reset" !== b && (r.transitionStart(s, b), r.transitionEnd(s, b)), !1; 1137 if (l.cssMode) { 1138 const e = r.isHorizontal(), 1139 s = u ? v : -v; 1140 if (0 === t) { 1141 const t = r.virtual && r.params.virtual.enabled; 1142 t && (r.wrapperEl.style.scrollSnapType = "none", r._immediateVirtual = !0), h[e ? "scrollLeft" : "scrollTop"] = s, t && requestAnimationFrame((() => { 1143 r.wrapperEl.style.scrollSnapType = "", r._swiperImmediateVirtual = !1 1144 })) 1145 } else { 1146 if (!r.support.smoothScroll) return w({ 1147 swiper: r, 1148 targetPosition: s, 1149 side: e ? "left" : "top" 1150 }), !0; 1151 h.scrollTo({ 1152 [e ? "left" : "top"]: s, 1153 behavior: "smooth" 1154 }) 1155 } 1156 return !0 1157 } 1158 return r.setTransition(t), r.setTranslate(v), r.updateActiveIndex(n), r.updateSlidesClasses(), r.emit("beforeTransitionStart", t, a), r.transitionStart(s, b), 0 === t ? r.transitionEnd(s, b) : r.animating || (r.animating = !0, r.onSlideToWrapperTransitionEnd || (r.onSlideToWrapperTransitionEnd = function(e) { 1159 r && !r.destroyed && e.target === this && (r.$wrapperEl[0].removeEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.$wrapperEl[0].removeEventListener("webkitTransitionEnd", r.onSlideToWrapperTransitionEnd), r.onSlideToWrapperTransitionEnd = null, delete r.onSlideToWrapperTransitionEnd, r.transitionEnd(s, b)) 1160 }), r.$wrapperEl[0].addEventListener("transitionend", r.onSlideToWrapperTransitionEnd), r.$wrapperEl[0].addEventListener("webkitTransitionEnd", r.onSlideToWrapperTransitionEnd)), !0 1161 }, 1162 slideToLoop: function(e, t, s, a) { 1163 void 0 === e && (e = 0), void 0 === t && (t = this.params.speed), void 0 === s && (s = !0); 1164 const i = this; 1165 let r = e; 1166 return i.params.loop && (r += i.loopedSlides), i.slideTo(r, t, s, a) 1167 }, 1168 slideNext: function(e, t, s) { 1169 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0); 1170 const a = this, 1171 { 1172 animating: i, 1173 enabled: r, 1174 params: n 1175 } = a; 1176 if (!r) return a; 1177 let l = n.slidesPerGroup; 1178 "auto" === n.slidesPerView && 1 === n.slidesPerGroup && n.slidesPerGroupAuto && (l = Math.max(a.slidesPerViewDynamic("current", !0), 1)); 1179 const o = a.activeIndex < n.slidesPerGroupSkip ? 1 : l; 1180 if (n.loop) { 1181 if (i && n.loopPreventsSlide) return !1; 1182 a.loopFix(), a._clientLeft = a.$wrapperEl[0].clientLeft 1183 } 1184 return n.rewind && a.isEnd ? a.slideTo(0, e, t, s) : a.slideTo(a.activeIndex + o, e, t, s) 1185 }, 1186 slidePrev: function(e, t, s) { 1187 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0); 1188 const a = this, 1189 { 1190 params: i, 1191 animating: r, 1192 snapGrid: n, 1193 slidesGrid: l, 1194 rtlTranslate: o, 1195 enabled: d 1196 } = a; 1197 if (!d) return a; 1198 if (i.loop) { 1199 if (r && i.loopPreventsSlide) return !1; 1200 a.loopFix(), a._clientLeft = a.$wrapperEl[0].clientLeft 1201 } 1202 1203 function c(e) { 1204 return e < 0 ? -Math.floor(Math.abs(e)) : Math.floor(e) 1205 } 1206 const p = c(o ? a.translate : -a.translate), 1207 u = n.map((e => c(e))); 1208 let h = n[u.indexOf(p) - 1]; 1209 if (void 0 === h && i.cssMode) { 1210 let e; 1211 n.forEach(((t, s) => { 1212 p >= t && (e = s) 1213 })), void 0 !== e && (h = n[e > 0 ? e - 1 : e]) 1214 } 1215 let m = 0; 1216 if (void 0 !== h && (m = l.indexOf(h), m < 0 && (m = a.activeIndex - 1), "auto" === i.slidesPerView && 1 === i.slidesPerGroup && i.slidesPerGroupAuto && (m = m - a.slidesPerViewDynamic("previous", !0) + 1, m = Math.max(m, 0))), i.rewind && a.isBeginning) { 1217 const i = a.params.virtual && a.params.virtual.enabled && a.virtual ? a.virtual.slides.length - 1 : a.slides.length - 1; 1218 return a.slideTo(i, e, t, s) 1219 } 1220 return a.slideTo(m, e, t, s) 1221 }, 1222 slideReset: function(e, t, s) { 1223 return void 0 === e && (e = this.params.speed), void 0 === t && (t = !0), this.slideTo(this.activeIndex, e, t, s) 1224 }, 1225 slideToClosest: function(e, t, s, a) { 1226 void 0 === e && (e = this.params.speed), void 0 === t && (t = !0), void 0 === a && (a = .5); 1227 const i = this; 1228 let r = i.activeIndex; 1229 const n = Math.min(i.params.slidesPerGroupSkip, r), 1230 l = n + Math.floor((r - n) / i.params.slidesPerGroup), 1231 o = i.rtlTranslate ? i.translate : -i.translate; 1232 if (o >= i.snapGrid[l]) { 1233 const e = i.snapGrid[l]; 1234 o - e > (i.snapGrid[l + 1] - e) * a && (r += i.params.slidesPerGroup) 1235 } else { 1236 const e = i.snapGrid[l - 1]; 1237 o - e <= (i.snapGrid[l] - e) * a && (r -= i.params.slidesPerGroup) 1238 } 1239 return r = Math.max(r, 0), r = Math.min(r, i.slidesGrid.length - 1), i.slideTo(r, e, t, s) 1240 }, 1241 slideToClickedSlide: function() { 1242 const e = this, 1243 { 1244 params: t, 1245 $wrapperEl: s 1246 } = e, 1247 a = "auto" === t.slidesPerView ? e.slidesPerViewDynamic() : t.slidesPerView; 1248 let i, r = e.clickedIndex; 1249 if (t.loop) { 1250 if (e.animating) return; 1251 i = parseInt(d(e.clickedSlide).attr("data-swiper-slide-index"), 10), t.centeredSlides ? r < e.loopedSlides - a / 2 || r > e.slides.length - e.loopedSlides + a / 2 ? (e.loopFix(), r = s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(), p((() => { 1252 e.slideTo(r) 1253 }))) : e.slideTo(r) : r > e.slides.length - a ? (e.loopFix(), r = s.children(`.${t.slideClass}[data-swiper-slide-index="${i}"]:not(.${t.slideDuplicateClass})`).eq(0).index(), p((() => { 1254 e.slideTo(r) 1255 }))) : e.slideTo(r) 1256 } else e.slideTo(r) 1257 } 1258 }; 1259 var z = { 1260 loopCreate: function() { 1261 const e = this, 1262 t = a(), 1263 { 1264 params: s, 1265 $wrapperEl: i 1266 } = e, 1267 r = i.children().length > 0 ? d(i.children()[0].parentNode) : i; 1268 r.children(`.${s.slideClass}.${s.slideDuplicateClass}`).remove(); 1269 let n = r.children(`.${s.slideClass}`); 1270 if (s.loopFillGroupWithBlank) { 1271 const e = s.slidesPerGroup - n.length % s.slidesPerGroup; 1272 if (e !== s.slidesPerGroup) { 1273 for (let a = 0; a < e; a += 1) { 1274 const e = d(t.createElement("div")).addClass(`${s.slideClass} ${s.slideBlankClass}`); 1275 r.append(e) 1276 } 1277 n = r.children(`.${s.slideClass}`) 1278 } 1279 } 1280 "auto" !== s.slidesPerView || s.loopedSlides || (s.loopedSlides = n.length), e.loopedSlides = Math.ceil(parseFloat(s.loopedSlides || s.slidesPerView, 10)), e.loopedSlides += s.loopAdditionalSlides, e.loopedSlides > n.length && (e.loopedSlides = n.length); 1281 const l = [], 1282 o = []; 1283 n.each(((t, s) => { 1284 const a = d(t); 1285 s < e.loopedSlides && o.push(t), s < n.length && s >= n.length - e.loopedSlides && l.push(t), a.attr("data-swiper-slide-index", s) 1286 })); 1287 for (let e = 0; e < o.length; e += 1) r.append(d(o[e].cloneNode(!0)).addClass(s.slideDuplicateClass)); 1288 for (let e = l.length - 1; e >= 0; e -= 1) r.prepend(d(l[e].cloneNode(!0)).addClass(s.slideDuplicateClass)) 1289 }, 1290 loopFix: function() { 1291 const e = this; 1292 e.emit("beforeLoopFix"); 1293 const { 1294 activeIndex: t, 1295 slides: s, 1296 loopedSlides: a, 1297 allowSlidePrev: i, 1298 allowSlideNext: r, 1299 snapGrid: n, 1300 rtlTranslate: l 1301 } = e; 1302 let o; 1303 e.allowSlidePrev = !0, e.allowSlideNext = !0; 1304 const d = -n[t] - e.getTranslate(); 1305 if (t < a) { 1306 o = s.length - 3 * a + t, o += a; 1307 e.slideTo(o, 0, !1, !0) && 0 !== d && e.setTranslate((l ? -e.translate : e.translate) - d) 1308 } else if (t >= s.length - a) { 1309 o = -s.length + t + a, o += a; 1310 e.slideTo(o, 0, !1, !0) && 0 !== d && e.setTranslate((l ? -e.translate : e.translate) - d) 1311 } 1312 e.allowSlidePrev = i, e.allowSlideNext = r, e.emit("loopFix") 1313 }, 1314 loopDestroy: function() { 1315 const { 1316 $wrapperEl: e, 1317 params: t, 1318 slides: s 1319 } = this; 1320 e.children(`.${t.slideClass}.${t.slideDuplicateClass},.${t.slideClass}.${t.slideBlankClass}`).remove(), s.removeAttr("data-swiper-slide-index") 1321 } 1322 }; 1323 1324 function O(e) { 1325 const t = this, 1326 s = a(), 1327 i = r(), 1328 n = t.touchEventsData, 1329 { 1330 params: l, 1331 touches: o, 1332 enabled: c 1333 } = t; 1334 if (!c) return; 1335 if (t.animating && l.preventInteractionOnTransition) return; 1336 !t.animating && l.cssMode && l.loop && t.loopFix(); 1337 let p = e; 1338 p.originalEvent && (p = p.originalEvent); 1339 let h = d(p.target); 1340 if ("wrapper" === l.touchEventsTarget && !h.closest(t.wrapperEl).length) return; 1341 if (n.isTouchEvent = "touchstart" === p.type, !n.isTouchEvent && "which" in p && 3 === p.which) return; 1342 if (!n.isTouchEvent && "button" in p && p.button > 0) return; 1343 if (n.isTouched && n.isMoved) return; 1344 !!l.noSwipingClass && "" !== l.noSwipingClass && p.target && p.target.shadowRoot && e.path && e.path[0] && (h = d(e.path[0])); 1345 const m = l.noSwipingSelector ? l.noSwipingSelector : `.${l.noSwipingClass}`, 1346 f = !(!p.target || !p.target.shadowRoot); 1347 if (l.noSwiping && (f ? function(e, t) { 1348 return void 0 === t && (t = this), 1349 function t(s) { 1350 return s && s !== a() && s !== r() ? (s.assignedSlot && (s = s.assignedSlot), s.closest(e) || t(s.getRootNode().host)) : null 1351 }(t) 1352 }(m, p.target) : h.closest(m)[0])) return void(t.allowClick = !0); 1353 if (l.swipeHandler && !h.closest(l.swipeHandler)[0]) return; 1354 o.currentX = "touchstart" === p.type ? p.targetTouches[0].pageX : p.pageX, o.currentY = "touchstart" === p.type ? p.targetTouches[0].pageY : p.pageY; 1355 const g = o.currentX, 1356 v = o.currentY, 1357 w = l.edgeSwipeDetection || l.iOSEdgeSwipeDetection, 1358 b = l.edgeSwipeThreshold || l.iOSEdgeSwipeThreshold; 1359 if (w && (g <= b || g >= i.innerWidth - b)) { 1360 if ("prevent" !== w) return; 1361 e.preventDefault() 1362 } 1363 if (Object.assign(n, { 1364 isTouched: !0, 1365 isMoved: !1, 1366 allowTouchCallbacks: !0, 1367 isScrolling: void 0, 1368 startMoving: void 0 1369 }), o.startX = g, o.startY = v, n.touchStartTime = u(), t.allowClick = !0, t.updateSize(), t.swipeDirection = void 0, l.threshold > 0 && (n.allowThresholdMove = !1), "touchstart" !== p.type) { 1370 let e = !0; 1371 h.is(n.focusableElements) && (e = !1, "SELECT" === h[0].nodeName && (n.isTouched = !1)), s.activeElement && d(s.activeElement).is(n.focusableElements) && s.activeElement !== h[0] && s.activeElement.blur(); 1372 const a = e && t.allowTouchMove && l.touchStartPreventDefault; 1373 !l.touchStartForcePreventDefault && !a || h[0].isContentEditable || p.preventDefault() 1374 } 1375 t.params.freeMode && t.params.freeMode.enabled && t.freeMode && t.animating && !l.cssMode && t.freeMode.onTouchStart(), t.emit("touchStart", p) 1376 } 1377 1378 function I(e) { 1379 const t = a(), 1380 s = this, 1381 i = s.touchEventsData, 1382 { 1383 params: r, 1384 touches: n, 1385 rtlTranslate: l, 1386 enabled: o 1387 } = s; 1388 if (!o) return; 1389 let c = e; 1390 if (c.originalEvent && (c = c.originalEvent), !i.isTouched) return void(i.startMoving && i.isScrolling && s.emit("touchMoveOpposite", c)); 1391 if (i.isTouchEvent && "touchmove" !== c.type) return; 1392 const p = "touchmove" === c.type && c.targetTouches && (c.targetTouches[0] || c.changedTouches[0]), 1393 h = "touchmove" === c.type ? p.pageX : c.pageX, 1394 m = "touchmove" === c.type ? p.pageY : c.pageY; 1395 if (c.preventedByNestedSwiper) return n.startX = h, void(n.startY = m); 1396 if (!s.allowTouchMove) return d(c.target).is(i.focusableElements) || (s.allowClick = !1), void(i.isTouched && (Object.assign(n, { 1397 startX: h, 1398 startY: m, 1399 currentX: h, 1400 currentY: m 1401 }), i.touchStartTime = u())); 1402 if (i.isTouchEvent && r.touchReleaseOnEdges && !r.loop) 1403 if (s.isVertical()) { 1404 if (m < n.startY && s.translate <= s.maxTranslate() || m > n.startY && s.translate >= s.minTranslate()) return i.isTouched = !1, void(i.isMoved = !1) 1405 } else if (h < n.startX && s.translate <= s.maxTranslate() || h > n.startX && s.translate >= s.minTranslate()) return; 1406 if (i.isTouchEvent && t.activeElement && c.target === t.activeElement && d(c.target).is(i.focusableElements)) return i.isMoved = !0, void(s.allowClick = !1); 1407 if (i.allowTouchCallbacks && s.emit("touchMove", c), c.targetTouches && c.targetTouches.length > 1) return; 1408 n.currentX = h, n.currentY = m; 1409 const f = n.currentX - n.startX, 1410 g = n.currentY - n.startY; 1411 if (s.params.threshold && Math.sqrt(f ** 2 + g ** 2) < s.params.threshold) return; 1412 if (void 0 === i.isScrolling) { 1413 let e; 1414 s.isHorizontal() && n.currentY === n.startY || s.isVertical() && n.currentX === n.startX ? i.isScrolling = !1 : f * f + g * g >= 25 && (e = 180 * Math.atan2(Math.abs(g), Math.abs(f)) / Math.PI, i.isScrolling = s.isHorizontal() ? e > r.touchAngle : 90 - e > r.touchAngle) 1415 } 1416 if (i.isScrolling && s.emit("touchMoveOpposite", c), void 0 === i.startMoving && (n.currentX === n.startX && n.currentY === n.startY || (i.startMoving = !0)), i.isScrolling) return void(i.isTouched = !1); 1417 if (!i.startMoving) return; 1418 s.allowClick = !1, !r.cssMode && c.cancelable && c.preventDefault(), r.touchMoveStopPropagation && !r.nested && c.stopPropagation(), i.isMoved || (r.loop && !r.cssMode && s.loopFix(), i.startTranslate = s.getTranslate(), s.setTransition(0), s.animating && s.$wrapperEl.trigger("webkitTransitionEnd transitionend"), i.allowMomentumBounce = !1, !r.grabCursor || !0 !== s.allowSlideNext && !0 !== s.allowSlidePrev || s.setGrabCursor(!0), s.emit("sliderFirstMove", c)), s.emit("sliderMove", c), i.isMoved = !0; 1419 let v = s.isHorizontal() ? f : g; 1420 n.diff = v, v *= r.touchRatio, l && (v = -v), s.swipeDirection = v > 0 ? "prev" : "next", i.currentTranslate = v + i.startTranslate; 1421 let w = !0, 1422 b = r.resistanceRatio; 1423 if (r.touchReleaseOnEdges && (b = 0), v > 0 && i.currentTranslate > s.minTranslate() ? (w = !1, r.resistance && (i.currentTranslate = s.minTranslate() - 1 + (-s.minTranslate() + i.startTranslate + v) ** b)) : v < 0 && i.currentTranslate < s.maxTranslate() && (w = !1, r.resistance && (i.currentTranslate = s.maxTranslate() + 1 - (s.maxTranslate() - i.startTranslate - v) ** b)), w && (c.preventedByNestedSwiper = !0), !s.allowSlideNext && "next" === s.swipeDirection && i.currentTranslate < i.startTranslate && (i.currentTranslate = i.startTranslate), !s.allowSlidePrev && "prev" === s.swipeDirection && i.currentTranslate > i.startTranslate && (i.currentTranslate = i.startTranslate), s.allowSlidePrev || s.allowSlideNext || (i.currentTranslate = i.startTranslate), r.threshold > 0) { 1424 if (!(Math.abs(v) > r.threshold || i.allowThresholdMove)) return void(i.currentTranslate = i.startTranslate); 1425 if (!i.allowThresholdMove) return i.allowThresholdMove = !0, n.startX = n.currentX, n.startY = n.currentY, i.currentTranslate = i.startTranslate, void(n.diff = s.isHorizontal() ? n.currentX - n.startX : n.currentY - n.startY) 1426 } 1427 r.followFinger && !r.cssMode && ((r.freeMode && r.freeMode.enabled && s.freeMode || r.watchSlidesProgress) && (s.updateActiveIndex(), s.updateSlidesClasses()), s.params.freeMode && r.freeMode.enabled && s.freeMode && s.freeMode.onTouchMove(), s.updateProgress(i.currentTranslate), s.setTranslate(i.currentTranslate)) 1428 } 1429 1430 function L(e) { 1431 const t = this, 1432 s = t.touchEventsData, 1433 { 1434 params: a, 1435 touches: i, 1436 rtlTranslate: r, 1437 slidesGrid: n, 1438 enabled: l 1439 } = t; 1440 if (!l) return; 1441 let o = e; 1442 if (o.originalEvent && (o = o.originalEvent), s.allowTouchCallbacks && t.emit("touchEnd", o), s.allowTouchCallbacks = !1, !s.isTouched) return s.isMoved && a.grabCursor && t.setGrabCursor(!1), s.isMoved = !1, void(s.startMoving = !1); 1443 a.grabCursor && s.isMoved && s.isTouched && (!0 === t.allowSlideNext || !0 === t.allowSlidePrev) && t.setGrabCursor(!1); 1444 const d = u(), 1445 c = d - s.touchStartTime; 1446 if (t.allowClick) { 1447 const e = o.path || o.composedPath && o.composedPath(); 1448 t.updateClickedSlide(e && e[0] || o.target), t.emit("tap click", o), c < 300 && d - s.lastClickTime < 300 && t.emit("doubleTap doubleClick", o) 1449 } 1450 if (s.lastClickTime = u(), p((() => { 1451 t.destroyed || (t.allowClick = !0) 1452 })), !s.isTouched || !s.isMoved || !t.swipeDirection || 0 === i.diff || s.currentTranslate === s.startTranslate) return s.isTouched = !1, s.isMoved = !1, void(s.startMoving = !1); 1453 let h; 1454 if (s.isTouched = !1, s.isMoved = !1, s.startMoving = !1, h = a.followFinger ? r ? t.translate : -t.translate : -s.currentTranslate, a.cssMode) return; 1455 if (t.params.freeMode && a.freeMode.enabled) return void t.freeMode.onTouchEnd({ 1456 currentPos: h 1457 }); 1458 let m = 0, 1459 f = t.slidesSizesGrid[0]; 1460 for (let e = 0; e < n.length; e += e < a.slidesPerGroupSkip ? 1 : a.slidesPerGroup) { 1461 const t = e < a.slidesPerGroupSkip - 1 ? 1 : a.slidesPerGroup; 1462 void 0 !== n[e + t] ? h >= n[e] && h < n[e + t] && (m = e, f = n[e + t] - n[e]) : h >= n[e] && (m = e, f = n[n.length - 1] - n[n.length - 2]) 1463 } 1464 let g = null, 1465 v = null; 1466 a.rewind && (t.isBeginning ? v = t.params.virtual && t.params.virtual.enabled && t.virtual ? t.virtual.slides.length - 1 : t.slides.length - 1 : t.isEnd && (g = 0)); 1467 const w = (h - n[m]) / f, 1468 b = m < a.slidesPerGroupSkip - 1 ? 1 : a.slidesPerGroup; 1469 if (c > a.longSwipesMs) { 1470 if (!a.longSwipes) return void t.slideTo(t.activeIndex); 1471 "next" === t.swipeDirection && (w >= a.longSwipesRatio ? t.slideTo(a.rewind && t.isEnd ? g : m + b) : t.slideTo(m)), "prev" === t.swipeDirection && (w > 1 - a.longSwipesRatio ? t.slideTo(m + b) : null !== v && w < 0 && Math.abs(w) > a.longSwipesRatio ? t.slideTo(v) : t.slideTo(m)) 1472 } else { 1473 if (!a.shortSwipes) return void t.slideTo(t.activeIndex); 1474 t.navigation && (o.target === t.navigation.nextEl || o.target === t.navigation.prevEl) ? o.target === t.navigation.nextEl ? t.slideTo(m + b) : t.slideTo(m) : ("next" === t.swipeDirection && t.slideTo(null !== g ? g : m + b), "prev" === t.swipeDirection && t.slideTo(null !== v ? v : m)) 1475 } 1476 } 1477 1478 function A() { 1479 const e = this, 1480 { 1481 params: t, 1482 el: s 1483 } = e; 1484 if (s && 0 === s.offsetWidth) return; 1485 t.breakpoints && e.setBreakpoint(); 1486 const { 1487 allowSlideNext: a, 1488 allowSlidePrev: i, 1489 snapGrid: r 1490 } = e; 1491 e.allowSlideNext = !0, e.allowSlidePrev = !0, e.updateSize(), e.updateSlides(), e.updateSlidesClasses(), ("auto" === t.slidesPerView || t.slidesPerView > 1) && e.isEnd && !e.isBeginning && !e.params.centeredSlides ? e.slideTo(e.slides.length - 1, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0), e.autoplay && e.autoplay.running && e.autoplay.paused && e.autoplay.run(), e.allowSlidePrev = i, e.allowSlideNext = a, e.params.watchOverflow && r !== e.snapGrid && e.checkOverflow() 1492 } 1493 1494 function D(e) { 1495 const t = this; 1496 t.enabled && (t.allowClick || (t.params.preventClicks && e.preventDefault(), t.params.preventClicksPropagation && t.animating && (e.stopPropagation(), e.stopImmediatePropagation()))) 1497 } 1498 1499 function G() { 1500 const e = this, 1501 { 1502 wrapperEl: t, 1503 rtlTranslate: s, 1504 enabled: a 1505 } = e; 1506 if (!a) return; 1507 let i; 1508 e.previousTranslate = e.translate, e.isHorizontal() ? e.translate = -t.scrollLeft : e.translate = -t.scrollTop, -0 === e.translate && (e.translate = 0), e.updateActiveIndex(), e.updateSlidesClasses(); 1509 const r = e.maxTranslate() - e.minTranslate(); 1510 i = 0 === r ? 0 : (e.translate - e.minTranslate()) / r, i !== e.progress && e.updateProgress(s ? -e.translate : e.translate), e.emit("setTranslate", e.translate, !1) 1511 } 1512 let B = !1; 1513 1514 function N() {} 1515 const H = (e, t) => { 1516 const s = a(), 1517 { 1518 params: i, 1519 touchEvents: r, 1520 el: n, 1521 wrapperEl: l, 1522 device: o, 1523 support: d 1524 } = e, 1525 c = !!i.nested, 1526 p = "on" === t ? "addEventListener" : "removeEventListener", 1527 u = t; 1528 if (d.touch) { 1529 const t = !("touchstart" !== r.start || !d.passiveListener || !i.passiveListeners) && { 1530 passive: !0, 1531 capture: !1 1532 }; 1533 n[p](r.start, e.onTouchStart, t), n[p](r.move, e.onTouchMove, d.passiveListener ? { 1534 passive: !1, 1535 capture: c 1536 } : c), n[p](r.end, e.onTouchEnd, t), r.cancel && n[p](r.cancel, e.onTouchEnd, t) 1537 } else n[p](r.start, e.onTouchStart, !1), s[p](r.move, e.onTouchMove, c), s[p](r.end, e.onTouchEnd, !1); 1538 (i.preventClicks || i.preventClicksPropagation) && n[p]("click", e.onClick, !0), i.cssMode && l[p]("scroll", e.onScroll), i.updateOnWindowResize ? e[u](o.ios || o.android ? "resize orientationchange observerUpdate" : "resize observerUpdate", A, !0) : e[u]("observerUpdate", A, !0) 1539 }; 1540 var X = { 1541 attachEvents: function() { 1542 const e = this, 1543 t = a(), 1544 { 1545 params: s, 1546 support: i 1547 } = e; 1548 e.onTouchStart = O.bind(e), e.onTouchMove = I.bind(e), e.onTouchEnd = L.bind(e), s.cssMode && (e.onScroll = G.bind(e)), e.onClick = D.bind(e), i.touch && !B && (t.addEventListener("touchstart", N), B = !0), H(e, "on") 1549 }, 1550 detachEvents: function() { 1551 H(this, "off") 1552 } 1553 }; 1554 const Y = (e, t) => e.grid && t.grid && t.grid.rows > 1; 1555 var R = { 1556 addClasses: function() { 1557 const e = this, 1558 { 1559 classNames: t, 1560 params: s, 1561 rtl: a, 1562 $el: i, 1563 device: r, 1564 support: n 1565 } = e, 1566 l = function(e, t) { 1567 const s = []; 1568 return e.forEach((e => { 1569 "object" == typeof e ? Object.keys(e).forEach((a => { 1570 e[a] && s.push(t + a) 1571 })) : "string" == typeof e && s.push(t + e) 1572 })), s 1573 }(["initialized", s.direction, { 1574 "pointer-events": !n.touch 1575 }, { 1576 "free-mode": e.params.freeMode && s.freeMode.enabled 1577 }, { 1578 autoheight: s.autoHeight 1579 }, { 1580 rtl: a 1581 }, { 1582 grid: s.grid && s.grid.rows > 1 1583 }, { 1584 "grid-column": s.grid && s.grid.rows > 1 && "column" === s.grid.fill 1585 }, { 1586 android: r.android 1587 }, { 1588 ios: r.ios 1589 }, { 1590 "css-mode": s.cssMode 1591 }, { 1592 centered: s.cssMode && s.centeredSlides 1593 }], s.containerModifierClass); 1594 t.push(...l), i.addClass([...t].join(" ")), e.emitContainerClasses() 1595 }, 1596 removeClasses: function() { 1597 const { 1598 $el: e, 1599 classNames: t 1600 } = this; 1601 e.removeClass(t.join(" ")), this.emitContainerClasses() 1602 } 1603 }; 1604 var W = { 1605 init: !0, 1606 direction: "horizontal", 1607 touchEventsTarget: "wrapper", 1608 initialSlide: 0, 1609 speed: 300, 1610 cssMode: !1, 1611 updateOnWindowResize: !0, 1612 resizeObserver: !0, 1613 nested: !1, 1614 createElements: !1, 1615 enabled: !0, 1616 focusableElements: "input, select, option, textarea, button, video, label", 1617 width: null, 1618 height: null, 1619 preventInteractionOnTransition: !1, 1620 userAgent: null, 1621 url: null, 1622 edgeSwipeDetection: !1, 1623 edgeSwipeThreshold: 20, 1624 autoHeight: !1, 1625 setWrapperSize: !1, 1626 virtualTranslate: !1, 1627 effect: "slide", 1628 breakpoints: void 0, 1629 breakpointsBase: "window", 1630 spaceBetween: 0, 1631 slidesPerView: 1, 1632 slidesPerGroup: 1, 1633 slidesPerGroupSkip: 0, 1634 slidesPerGroupAuto: !1, 1635 centeredSlides: !1, 1636 centeredSlidesBounds: !1, 1637 slidesOffsetBefore: 0, 1638 slidesOffsetAfter: 0, 1639 normalizeSlideIndex: !0, 1640 centerInsufficientSlides: !1, 1641 watchOverflow: !0, 1642 roundLengths: !1, 1643 touchRatio: 1, 1644 touchAngle: 45, 1645 simulateTouch: !0, 1646 shortSwipes: !0, 1647 longSwipes: !0, 1648 longSwipesRatio: .5, 1649 longSwipesMs: 300, 1650 followFinger: !0, 1651 allowTouchMove: !0, 1652 threshold: 0, 1653 touchMoveStopPropagation: !1, 1654 touchStartPreventDefault: !0, 1655 touchStartForcePreventDefault: !1, 1656 touchReleaseOnEdges: !1, 1657 uniqueNavElements: !0, 1658 resistance: !0, 1659 resistanceRatio: .85, 1660 watchSlidesProgress: !1, 1661 grabCursor: !1, 1662 preventClicks: !0, 1663 preventClicksPropagation: !0, 1664 slideToClickedSlide: !1, 1665 preloadImages: !0, 1666 updateOnImagesReady: !0, 1667 loop: !1, 1668 loopAdditionalSlides: 0, 1669 loopedSlides: null, 1670 loopFillGroupWithBlank: !1, 1671 loopPreventsSlide: !0, 1672 rewind: !1, 1673 allowSlidePrev: !0, 1674 allowSlideNext: !0, 1675 swipeHandler: null, 1676 noSwiping: !0, 1677 noSwipingClass: "swiper-no-swiping", 1678 noSwipingSelector: null, 1679 passiveListeners: !0, 1680 maxBackfaceHiddenSlides: 10, 1681 containerModifierClass: "swiper-", 1682 slideClass: "swiper-slide", 1683 slideBlankClass: "swiper-slide-invisible-blank", 1684 slideActiveClass: "swiper-slide-active", 1685 slideDuplicateActiveClass: "swiper-slide-duplicate-active", 1686 slideVisibleClass: "swiper-slide-visible", 1687 slideDuplicateClass: "swiper-slide-duplicate", 1688 slideNextClass: "swiper-slide-next", 1689 slideDuplicateNextClass: "swiper-slide-duplicate-next", 1690 slidePrevClass: "swiper-slide-prev", 1691 slideDuplicatePrevClass: "swiper-slide-duplicate-prev", 1692 wrapperClass: "swiper-wrapper", 1693 runCallbacksOnInit: !0, 1694 _emitClasses: !1 1695 }; 1696 1697 function j(e, t) { 1698 return function(s) { 1699 void 0 === s && (s = {}); 1700 const a = Object.keys(s)[0], 1701 i = s[a]; 1702 "object" == typeof i && null !== i ? (["navigation", "pagination", "scrollbar"].indexOf(a) >= 0 && !0 === e[a] && (e[a] = { 1703 auto: !0 1704 }), a in e && "enabled" in i ? (!0 === e[a] && (e[a] = { 1705 enabled: !0 1706 }), "object" != typeof e[a] || "enabled" in e[a] || (e[a].enabled = !0), e[a] || (e[a] = { 1707 enabled: !1 1708 }), g(t, s)) : g(t, s)) : g(t, s) 1709 } 1710 } 1711 const _ = { 1712 eventsEmitter: $, 1713 update: S, 1714 translate: M, 1715 transition: { 1716 setTransition: function(e, t) { 1717 const s = this; 1718 s.params.cssMode || s.$wrapperEl.transition(e), s.emit("setTransition", e, t) 1719 }, 1720 transitionStart: function(e, t) { 1721 void 0 === e && (e = !0); 1722 const s = this, 1723 { 1724 params: a 1725 } = s; 1726 a.cssMode || (a.autoHeight && s.updateAutoHeight(), P({ 1727 swiper: s, 1728 runCallbacks: e, 1729 direction: t, 1730 step: "Start" 1731 })) 1732 }, 1733 transitionEnd: function(e, t) { 1734 void 0 === e && (e = !0); 1735 const s = this, 1736 { 1737 params: a 1738 } = s; 1739 s.animating = !1, a.cssMode || (s.setTransition(0), P({ 1740 swiper: s, 1741 runCallbacks: e, 1742 direction: t, 1743 step: "End" 1744 })) 1745 } 1746 }, 1747 slide: k, 1748 loop: z, 1749 grabCursor: { 1750 setGrabCursor: function(e) { 1751 const t = this;
vendor: 1,259 bytes, lines 1752-1773
1752 if (t.support.touch || !t.params.simulateTouch || t.params.watchOverflow && t.isLocked || t.params.cssMode) return; 1753 const s = "container" === t.params.touchEventsTarget ? t.el : t.wrapperEl; 1754 s.style.cursor = "move", s.style.cursor = e ? "-webkit-grabbing" : "-webkit-grab", s.style.cursor = e ? "-moz-grabbin" : "-moz-grab", s.style.cursor = e ? "grabbing" : "grab" 1755 }, 1756 unsetGrabCursor: function() { 1757 const e = this; 1758 e.support.touch || e.params.watchOverflow && e.isLocked || e.params.cssMode || (e["container" === e.params.touchEventsTarget ? "el" : "wrapperEl"].style.cursor = "") 1759 } 1760 }, 1761 events: X, 1762 breakpoints: { 1763 setBreakpoint: function() { 1764 const e = this, 1765 { 1766 activeIndex: t, 1767 initialized: s, 1768 loopedSlides: a = 0, 1769 params: i, 1770 $el: r 1771 } = e, 1772 n = i.breakpoints; 1773 if (!n || n && 0 === Object.keys(n).length) return;
vendor: 52,686 bytes, lines 1774-2921
1774 const l = e.getBreakpoint(n, e.params.breakpointsBase, e.el); 1775 if (!l || e.currentBreakpoint === l) return; 1776 const o = (l in n ? n[l] : void 0) || e.originalParams, 1777 d = Y(e, i), 1778 c = Y(e, o), 1779 p = i.enabled; 1780 d && !c ? (r.removeClass(`${i.containerModifierClass}grid ${i.containerModifierClass}grid-column`), e.emitContainerClasses()) : !d && c && (r.addClass(`${i.containerModifierClass}grid`), (o.grid.fill && "column" === o.grid.fill || !o.grid.fill && "column" === i.grid.fill) && r.addClass(`${i.containerModifierClass}grid-column`), e.emitContainerClasses()); 1781 const u = o.direction && o.direction !== i.direction, 1782 h = i.loop && (o.slidesPerView !== i.slidesPerView || u); 1783 u && s && e.changeDirection(), g(e.params, o); 1784 const m = e.params.enabled; 1785 Object.assign(e, { 1786 allowTouchMove: e.params.allowTouchMove, 1787 allowSlideNext: e.params.allowSlideNext, 1788 allowSlidePrev: e.params.allowSlidePrev 1789 }), p && !m ? e.disable() : !p && m && e.enable(), e.currentBreakpoint = l, e.emit("_beforeBreakpoint", o), h && s && (e.loopDestroy(), e.loopCreate(), e.updateSlides(), e.slideTo(t - a + e.loopedSlides, 0, !1)), e.emit("breakpoint", o) 1790 }, 1791 getBreakpoint: function(e, t, s) { 1792 if (void 0 === t && (t = "window"), !e || "container" === t && !s) return; 1793 let a = !1; 1794 const i = r(), 1795 n = "window" === t ? i.innerHeight : s.clientHeight, 1796 l = Object.keys(e).map((e => { 1797 if ("string" == typeof e && 0 === e.indexOf("@")) { 1798 const t = parseFloat(e.substr(1)); 1799 return { 1800 value: n * t, 1801 point: e 1802 } 1803 } 1804 return { 1805 value: e, 1806 point: e 1807 } 1808 })); 1809 l.sort(((e, t) => parseInt(e.value, 10) - parseInt(t.value, 10))); 1810 for (let e = 0; e < l.length; e += 1) { 1811 const { 1812 point: r, 1813 value: n 1814 } = l[e]; 1815 "window" === t ? i.matchMedia(`(min-width: ${n}px)`).matches && (a = r) : n <= s.clientWidth && (a = r) 1816 } 1817 return a || "max" 1818 } 1819 }, 1820 checkOverflow: { 1821 checkOverflow: function() { 1822 const e = this, 1823 { 1824 isLocked: t, 1825 params: s 1826 } = e, 1827 { 1828 slidesOffsetBefore: a 1829 } = s; 1830 if (a) { 1831 const t = e.slides.length - 1, 1832 s = e.slidesGrid[t] + e.slidesSizesGrid[t] + 2 * a; 1833 e.isLocked = e.size > s 1834 } else e.isLocked = 1 === e.snapGrid.length; 1835 !0 === s.allowSlideNext && (e.allowSlideNext = !e.isLocked), !0 === s.allowSlidePrev && (e.allowSlidePrev = !e.isLocked), t && t !== e.isLocked && (e.isEnd = !1), t !== e.isLocked && e.emit(e.isLocked ? "lock" : "unlock") 1836 } 1837 }, 1838 classes: R, 1839 images: { 1840 loadImage: function(e, t, s, a, i, n) { 1841 const l = r(); 1842 let o; 1843 1844 function c() { 1845 n && n() 1846 } 1847 d(e).parent("picture")[0] || e.complete && i ? c() : t ? (o = new l.Image, o.onload = c, o.onerror = c, a && (o.sizes = a), s && (o.srcset = s), t && (o.src = t)) : c() 1848 }, 1849 preloadImages: function() { 1850 const e = this; 1851 1852 function t() { 1853 null != e && e && !e.destroyed && (void 0 !== e.imagesLoaded && (e.imagesLoaded += 1), e.imagesLoaded === e.imagesToLoad.length && (e.params.updateOnImagesReady && e.update(), e.emit("imagesReady"))) 1854 } 1855 e.imagesToLoad = e.$el.find("img"); 1856 for (let s = 0; s < e.imagesToLoad.length; s += 1) { 1857 const a = e.imagesToLoad[s]; 1858 e.loadImage(a, a.currentSrc || a.getAttribute("src"), a.srcset || a.getAttribute("srcset"), a.sizes || a.getAttribute("sizes"), !0, t) 1859 } 1860 } 1861 } 1862 }, 1863 q = {}; 1864 class V { 1865 constructor() { 1866 let e, t; 1867 for (var s = arguments.length, a = new Array(s), i = 0; i < s; i++) a[i] = arguments[i]; 1868 if (1 === a.length && a[0].constructor && "Object" === Object.prototype.toString.call(a[0]).slice(8, -1) ? t = a[0] : [e, t] = a, t || (t = {}), t = g({}, t), e && !t.el && (t.el = e), t.el && d(t.el).length > 1) { 1869 const e = []; 1870 return d(t.el).each((s => { 1871 const a = g({}, t, { 1872 el: s 1873 }); 1874 e.push(new V(a)) 1875 })), e 1876 } 1877 const r = this; 1878 r.__swiper__ = !0, r.support = E(), r.device = T({ 1879 userAgent: t.userAgent 1880 }), r.browser = C(), r.eventsListeners = {}, r.eventsAnyListeners = [], r.modules = [...r.__modules__], t.modules && Array.isArray(t.modules) && r.modules.push(...t.modules); 1881 const n = {}; 1882 r.modules.forEach((e => { 1883 e({ 1884 swiper: r, 1885 extendParams: j(t, n), 1886 on: r.on.bind(r), 1887 once: r.once.bind(r), 1888 off: r.off.bind(r), 1889 emit: r.emit.bind(r) 1890 }) 1891 })); 1892 const l = g({}, W, n); 1893 return r.params = g({}, l, q, t), r.originalParams = g({}, r.params), r.passedParams = g({}, t), r.params && r.params.on && Object.keys(r.params.on).forEach((e => { 1894 r.on(e, r.params.on[e]) 1895 })), r.params && r.params.onAny && r.onAny(r.params.onAny), r.$ = d, Object.assign(r, { 1896 enabled: r.params.enabled, 1897 el: e, 1898 classNames: [], 1899 slides: d(), 1900 slidesGrid: [], 1901 snapGrid: [], 1902 slidesSizesGrid: [], 1903 isHorizontal: () => "horizontal" === r.params.direction, 1904 isVertical: () => "vertical" === r.params.direction, 1905 activeIndex: 0, 1906 realIndex: 0, 1907 isBeginning: !0, 1908 isEnd: !1, 1909 translate: 0, 1910 previousTranslate: 0, 1911 progress: 0, 1912 velocity: 0, 1913 animating: !1, 1914 allowSlideNext: r.params.allowSlideNext, 1915 allowSlidePrev: r.params.allowSlidePrev, 1916 touchEvents: function() { 1917 const e = ["touchstart", "touchmove", "touchend", "touchcancel"], 1918 t = ["pointerdown", "pointermove", "pointerup"]; 1919 return r.touchEventsTouch = { 1920 start: e[0], 1921 move: e[1], 1922 end: e[2], 1923 cancel: e[3] 1924 }, r.touchEventsDesktop = { 1925 start: t[0], 1926 move: t[1], 1927 end: t[2] 1928 }, r.support.touch || !r.params.simulateTouch ? r.touchEventsTouch : r.touchEventsDesktop 1929 }(), 1930 touchEventsData: { 1931 isTouched: void 0, 1932 isMoved: void 0, 1933 allowTouchCallbacks: void 0, 1934 touchStartTime: void 0, 1935 isScrolling: void 0, 1936 currentTranslate: void 0, 1937 startTranslate: void 0, 1938 allowThresholdMove: void 0, 1939 focusableElements: r.params.focusableElements, 1940 lastClickTime: u(), 1941 clickTimeout: void 0, 1942 velocities: [], 1943 allowMomentumBounce: void 0, 1944 isTouchEvent: void 0, 1945 startMoving: void 0 1946 }, 1947 allowClick: !0, 1948 allowTouchMove: r.params.allowTouchMove, 1949 touches: { 1950 startX: 0, 1951 startY: 0, 1952 currentX: 0, 1953 currentY: 0, 1954 diff: 0 1955 }, 1956 imagesToLoad: [], 1957 imagesLoaded: 0 1958 }), r.emit("_swiper"), r.params.init && r.init(), r 1959 } 1960 enable() { 1961 const e = this; 1962 e.enabled || (e.enabled = !0, e.params.grabCursor && e.setGrabCursor(), e.emit("enable")) 1963 } 1964 disable() { 1965 const e = this; 1966 e.enabled && (e.enabled = !1, e.params.grabCursor && e.unsetGrabCursor(), e.emit("disable")) 1967 } 1968 setProgress(e, t) { 1969 const s = this; 1970 e = Math.min(Math.max(e, 0), 1); 1971 const a = s.minTranslate(), 1972 i = (s.maxTranslate() - a) * e + a; 1973 s.translateTo(i, void 0 === t ? 0 : t), s.updateActiveIndex(), s.updateSlidesClasses() 1974 } 1975 emitContainerClasses() { 1976 const e = this; 1977 if (!e.params._emitClasses || !e.el) return; 1978 const t = e.el.className.split(" ").filter((t => 0 === t.indexOf("swiper") || 0 === t.indexOf(e.params.containerModifierClass))); 1979 e.emit("_containerClasses", t.join(" ")) 1980 } 1981 getSlideClasses(e) { 1982 const t = this; 1983 return e.className.split(" ").filter((e => 0 === e.indexOf("swiper-slide") || 0 === e.indexOf(t.params.slideClass))).join(" ") 1984 } 1985 emitSlidesClasses() { 1986 const e = this; 1987 if (!e.params._emitClasses || !e.el) return; 1988 const t = []; 1989 e.slides.each((s => { 1990 const a = e.getSlideClasses(s); 1991 t.push({ 1992 slideEl: s, 1993 classNames: a 1994 }), e.emit("_slideClass", s, a) 1995 })), e.emit("_slideClasses", t) 1996 } 1997 slidesPerViewDynamic(e, t) { 1998 void 0 === e && (e = "current"), void 0 === t && (t = !1); 1999 const { 2000 params: s, 2001 slides: a, 2002 slidesGrid: i, 2003 slidesSizesGrid: r, 2004 size: n, 2005 activeIndex: l 2006 } = this; 2007 let o = 1; 2008 if (s.centeredSlides) { 2009 let e, t = a[l].swiperSlideSize; 2010 for (let s = l + 1; s < a.length; s += 1) a[s] && !e && (t += a[s].swiperSlideSize, o += 1, t > n && (e = !0)); 2011 for (let s = l - 1; s >= 0; s -= 1) a[s] && !e && (t += a[s].swiperSlideSize, o += 1, t > n && (e = !0)) 2012 } else if ("current" === e) 2013 for (let e = l + 1; e < a.length; e += 1) { 2014 (t ? i[e] + r[e] - i[l] < n : i[e] - i[l] < n) && (o += 1) 2015 } else 2016 for (let e = l - 1; e >= 0; e -= 1) { 2017 i[l] - i[e] < n && (o += 1) 2018 } 2019 return o 2020 } 2021 update() { 2022 const e = this; 2023 if (!e || e.destroyed) return; 2024 const { 2025 snapGrid: t, 2026 params: s 2027 } = e; 2028 2029 function a() { 2030 const t = e.rtlTranslate ? -1 * e.translate : e.translate, 2031 s = Math.min(Math.max(t, e.maxTranslate()), e.minTranslate()); 2032 e.setTranslate(s), e.updateActiveIndex(), e.updateSlidesClasses() 2033 } 2034 let i; 2035 s.breakpoints && e.setBreakpoint(), e.updateSize(), e.updateSlides(), e.updateProgress(), e.updateSlidesClasses(), e.params.freeMode && e.params.freeMode.enabled ? (a(), e.params.autoHeight && e.updateAutoHeight()) : (i = ("auto" === e.params.slidesPerView || e.params.slidesPerView > 1) && e.isEnd && !e.params.centeredSlides ? e.slideTo(e.slides.length - 1, 0, !1, !0) : e.slideTo(e.activeIndex, 0, !1, !0), i || a()), s.watchOverflow && t !== e.snapGrid && e.checkOverflow(), e.emit("update") 2036 } 2037 changeDirection(e, t) { 2038 void 0 === t && (t = !0); 2039 const s = this, 2040 a = s.params.direction; 2041 return e || (e = "horizontal" === a ? "vertical" : "horizontal"), e === a || "horizontal" !== e && "vertical" !== e || (s.$el.removeClass(`${s.params.containerModifierClass}${a}`).addClass(`${s.params.containerModifierClass}${e}`), s.emitContainerClasses(), s.params.direction = e, s.slides.each((t => { 2042 "vertical" === e ? t.style.width = "" : t.style.height = "" 2043 })), s.emit("changeDirection"), t && s.update()), s 2044 } 2045 mount(e) { 2046 const t = this; 2047 if (t.mounted) return !0; 2048 const s = d(e || t.params.el); 2049 if (!(e = s[0])) return !1; 2050 e.swiper = t; 2051 const i = () => `.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`; 2052 let r = (() => { 2053 if (e && e.shadowRoot && e.shadowRoot.querySelector) { 2054 const t = d(e.shadowRoot.querySelector(i())); 2055 return t.children = e => s.children(e), t 2056 } 2057 return s.children(i()) 2058 })(); 2059 if (0 === r.length && t.params.createElements) { 2060 const e = a().createElement("div"); 2061 r = d(e), e.className = t.params.wrapperClass, s.append(e), s.children(`.${t.params.slideClass}`).each((e => { 2062 r.append(e) 2063 })) 2064 } 2065 return Object.assign(t, { 2066 $el: s, 2067 el: e, 2068 $wrapperEl: r, 2069 wrapperEl: r[0], 2070 mounted: !0, 2071 rtl: "rtl" === e.dir.toLowerCase() || "rtl" === s.css("direction"), 2072 rtlTranslate: "horizontal" === t.params.direction && ("rtl" === e.dir.toLowerCase() || "rtl" === s.css("direction")), 2073 wrongRTL: "-webkit-box" === r.css("display") 2074 }), !0 2075 } 2076 init(e) { 2077 const t = this; 2078 if (t.initialized) return t; 2079 return !1 === t.mount(e) || (t.emit("beforeInit"), t.params.breakpoints && t.setBreakpoint(), t.addClasses(), t.params.loop && t.loopCreate(), t.updateSize(), t.updateSlides(), t.params.watchOverflow && t.checkOverflow(), t.params.grabCursor && t.enabled && t.setGrabCursor(), t.params.preloadImages && t.preloadImages(), t.params.loop ? t.slideTo(t.params.initialSlide + t.loopedSlides, 0, t.params.runCallbacksOnInit, !1, !0) : t.slideTo(t.params.initialSlide, 0, t.params.runCallbacksOnInit, !1, !0), t.attachEvents(), t.initialized = !0, t.emit("init"), t.emit("afterInit")), t 2080 } 2081 destroy(e, t) { 2082 void 0 === e && (e = !0), void 0 === t && (t = !0); 2083 const s = this, 2084 { 2085 params: a, 2086 $el: i, 2087 $wrapperEl: r, 2088 slides: n 2089 } = s; 2090 return void 0 === s.params || s.destroyed || (s.emit("beforeDestroy"), s.initialized = !1, s.detachEvents(), a.loop && s.loopDestroy(), t && (s.removeClasses(), i.removeAttr("style"), r.removeAttr("style"), n && n.length && n.removeClass([a.slideVisibleClass, a.slideActiveClass, a.slideNextClass, a.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")), s.emit("destroy"), Object.keys(s.eventsListeners).forEach((e => { 2091 s.off(e) 2092 })), !1 !== e && (s.$el[0].swiper = null, function(e) { 2093 const t = e; 2094 Object.keys(t).forEach((e => { 2095 try { 2096 t[e] = null 2097 } catch (e) {} 2098 try { 2099 delete t[e] 2100 } catch (e) {} 2101 })) 2102 }(s)), s.destroyed = !0), null 2103 } 2104 static extendDefaults(e) { 2105 g(q, e) 2106 } 2107 static get extendedDefaults() { 2108 return q 2109 } 2110 static get defaults() { 2111 return W 2112 } 2113 static installModule(e) { 2114 V.prototype.__modules__ || (V.prototype.__modules__ = []); 2115 const t = V.prototype.__modules__; 2116 "function" == typeof e && t.indexOf(e) < 0 && t.push(e) 2117 } 2118 static use(e) { 2119 return Array.isArray(e) ? (e.forEach((e => V.installModule(e))), V) : (V.installModule(e), V) 2120 } 2121 } 2122 2123 function F(e, t, s, i) { 2124 const r = a(); 2125 return e.params.createElements && Object.keys(i).forEach((a => { 2126 if (!s[a] && !0 === s.auto) { 2127 let n = e.$el.children(`.${i[a]}`)[0]; 2128 n || (n = r.createElement("div"), n.className = i[a], e.$el.append(n)), s[a] = n, t[a] = n 2129 } 2130 })), s 2131 } 2132 2133 function U(e) { 2134 return void 0 === e && (e = ""), `.${e.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}` 2135 } 2136 2137 function K(e) { 2138 const t = this, 2139 { 2140 $wrapperEl: s, 2141 params: a 2142 } = t; 2143 if (a.loop && t.loopDestroy(), "object" == typeof e && "length" in e) 2144 for (let t = 0; t < e.length; t += 1) e[t] && s.append(e[t]); 2145 else s.append(e); 2146 a.loop && t.loopCreate(), a.observer || t.update() 2147 } 2148 2149 function Z(e) { 2150 const t = this, 2151 { 2152 params: s, 2153 $wrapperEl: a, 2154 activeIndex: i 2155 } = t; 2156 s.loop && t.loopDestroy(); 2157 let r = i + 1; 2158 if ("object" == typeof e && "length" in e) { 2159 for (let t = 0; t < e.length; t += 1) e[t] && a.prepend(e[t]); 2160 r = i + e.length 2161 } else a.prepend(e); 2162 s.loop && t.loopCreate(), s.observer || t.update(), t.slideTo(r, 0, !1) 2163 } 2164 2165 function J(e, t) { 2166 const s = this, 2167 { 2168 $wrapperEl: a, 2169 params: i, 2170 activeIndex: r 2171 } = s; 2172 let n = r; 2173 i.loop && (n -= s.loopedSlides, s.loopDestroy(), s.slides = a.children(`.${i.slideClass}`)); 2174 const l = s.slides.length; 2175 if (e <= 0) return void s.prependSlide(t); 2176 if (e >= l) return void s.appendSlide(t); 2177 let o = n > e ? n + 1 : n; 2178 const d = []; 2179 for (let t = l - 1; t >= e; t -= 1) { 2180 const e = s.slides.eq(t); 2181 e.remove(), d.unshift(e) 2182 } 2183 if ("object" == typeof t && "length" in t) { 2184 for (let e = 0; e < t.length; e += 1) t[e] && a.append(t[e]); 2185 o = n > e ? n + t.length : n 2186 } else a.append(t); 2187 for (let e = 0; e < d.length; e += 1) a.append(d[e]); 2188 i.loop && s.loopCreate(), i.observer || s.update(), i.loop ? s.slideTo(o + s.loopedSlides, 0, !1) : s.slideTo(o, 0, !1) 2189 } 2190 2191 function Q(e) { 2192 const t = this, 2193 { 2194 params: s, 2195 $wrapperEl: a, 2196 activeIndex: i 2197 } = t; 2198 let r = i; 2199 s.loop && (r -= t.loopedSlides, t.loopDestroy(), t.slides = a.children(`.${s.slideClass}`)); 2200 let n, l = r; 2201 if ("object" == typeof e && "length" in e) { 2202 for (let s = 0; s < e.length; s += 1) n = e[s], t.slides[n] && t.slides.eq(n).remove(), n < l && (l -= 1); 2203 l = Math.max(l, 0) 2204 } else n = e, t.slides[n] && t.slides.eq(n).remove(), n < l && (l -= 1), l = Math.max(l, 0); 2205 s.loop && t.loopCreate(), s.observer || t.update(), s.loop ? t.slideTo(l + t.loopedSlides, 0, !1) : t.slideTo(l, 0, !1) 2206 } 2207 2208 function ee() { 2209 const e = this, 2210 t = []; 2211 for (let s = 0; s < e.slides.length; s += 1) t.push(s); 2212 e.removeSlide(t) 2213 } 2214 2215 function te(e) { 2216 const { 2217 effect: t, 2218 swiper: s, 2219 on: a, 2220 setTranslate: i, 2221 setTransition: r, 2222 overwriteParams: n, 2223 perspective: l 2224 } = e; 2225 let o; 2226 a("beforeInit", (() => { 2227 if (s.params.effect !== t) return; 2228 s.classNames.push(`${s.params.containerModifierClass}${t}`), l && l() && s.classNames.push(`${s.params.containerModifierClass}3d`); 2229 const e = n ? n() : {}; 2230 Object.assign(s.params, e), Object.assign(s.originalParams, e) 2231 })), a("setTranslate", (() => { 2232 s.params.effect === t && i() 2233 })), a("setTransition", ((e, a) => { 2234 s.params.effect === t && r(a) 2235 })), a("virtualUpdate", (() => { 2236 s.slides.length || (o = !0), requestAnimationFrame((() => { 2237 o && s.slides.length && (i(), o = !1) 2238 })) 2239 })) 2240 } 2241 2242 function se(e, t) { 2243 return e.transformEl ? t.find(e.transformEl).css({ 2244 "backface-visibility": "hidden", 2245 "-webkit-backface-visibility": "hidden" 2246 }) : t 2247 } 2248 2249 function ae(e) { 2250 let { 2251 swiper: t, 2252 duration: s, 2253 transformEl: a, 2254 allSlides: i 2255 } = e; 2256 const { 2257 slides: r, 2258 activeIndex: n, 2259 $wrapperEl: l 2260 } = t; 2261 if (t.params.virtualTranslate && 0 !== s) { 2262 let e, s = !1; 2263 e = i ? a ? r.find(a) : r : a ? r.eq(n).find(a) : r.eq(n), e.transitionEnd((() => { 2264 if (s) return; 2265 if (!t || t.destroyed) return; 2266 s = !0, t.animating = !1; 2267 const e = ["webkitTransitionEnd", "transitionend"]; 2268 for (let t = 0; t < e.length; t += 1) l.trigger(e[t]) 2269 })) 2270 } 2271 } 2272 2273 function ie(e, t, s) { 2274 const a = "swiper-slide-shadow" + (s ? `-${s}` : ""), 2275 i = e.transformEl ? t.find(e.transformEl) : t; 2276 let r = i.children(`.${a}`); 2277 return r.length || (r = d(`<div class="swiper-slide-shadow${s?`-${s}`:""}"></div>`), i.append(r)), r 2278 } 2279 Object.keys(_).forEach((e => { 2280 Object.keys(_[e]).forEach((t => { 2281 V.prototype[t] = _[e][t] 2282 })) 2283 })), V.use([function(e) { 2284 let { 2285 swiper: t, 2286 on: s, 2287 emit: a 2288 } = e; 2289 const i = r(); 2290 let n = null, 2291 l = null; 2292 const o = () => { 2293 t && !t.destroyed && t.initialized && (a("beforeResize"), a("resize")) 2294 }, 2295 d = () => { 2296 t && !t.destroyed && t.initialized && a("orientationchange") 2297 }; 2298 s("init", (() => { 2299 t.params.resizeObserver && void 0 !== i.ResizeObserver ? t && !t.destroyed && t.initialized && (n = new ResizeObserver((e => { 2300 l = i.requestAnimationFrame((() => { 2301 const { 2302 width: s, 2303 height: a 2304 } = t; 2305 let i = s, 2306 r = a; 2307 e.forEach((e => { 2308 let { 2309 contentBoxSize: s, 2310 contentRect: a, 2311 target: n 2312 } = e; 2313 n && n !== t.el || (i = a ? a.width : (s[0] || s).inlineSize, r = a ? a.height : (s[0] || s).blockSize) 2314 })), i === s && r === a || o() 2315 })) 2316 })), n.observe(t.el)) : (i.addEventListener("resize", o), i.addEventListener("orientationchange", d)) 2317 })), s("destroy", (() => { 2318 l && i.cancelAnimationFrame(l), n && n.unobserve && t.el && (n.unobserve(t.el), n = null), i.removeEventListener("resize", o), i.removeEventListener("orientationchange", d) 2319 })) 2320 }, function(e) { 2321 let { 2322 swiper: t, 2323 extendParams: s, 2324 on: a, 2325 emit: i 2326 } = e; 2327 const n = [], 2328 l = r(), 2329 o = function(e, t) { 2330 void 0 === t && (t = {}); 2331 const s = new(l.MutationObserver || l.WebkitMutationObserver)((e => { 2332 if (1 === e.length) return void i("observerUpdate", e[0]); 2333 const t = function() { 2334 i("observerUpdate", e[0]) 2335 }; 2336 l.requestAnimationFrame ? l.requestAnimationFrame(t) : l.setTimeout(t, 0) 2337 })); 2338 s.observe(e, { 2339 attributes: void 0 === t.attributes || t.attributes, 2340 childList: void 0 === t.childList || t.childList, 2341 characterData: void 0 === t.characterData || t.characterData 2342 }), n.push(s) 2343 }; 2344 s({ 2345 observer: !1, 2346 observeParents: !1, 2347 observeSlideChildren: !1 2348 }), a("init", (() => { 2349 if (t.params.observer) { 2350 if (t.params.observeParents) { 2351 const e = t.$el.parents(); 2352 for (let t = 0; t < e.length; t += 1) o(e[t]) 2353 } 2354 o(t.$el[0], { 2355 childList: t.params.observeSlideChildren 2356 }), o(t.$wrapperEl[0], { 2357 attributes: !1 2358 }) 2359 } 2360 })), a("destroy", (() => { 2361 n.forEach((e => { 2362 e.disconnect() 2363 })), n.splice(0, n.length) 2364 })) 2365 }]); 2366 const re = [function(e) { 2367 let t, { 2368 swiper: s, 2369 extendParams: a, 2370 on: i, 2371 emit: r 2372 } = e; 2373 2374 function n(e, t) { 2375 const a = s.params.virtual; 2376 if (a.cache && s.virtual.cache[t]) return s.virtual.cache[t]; 2377 const i = a.renderSlide ? d(a.renderSlide.call(s, e, t)) : d(`<div class="${s.params.slideClass}" data-swiper-slide-index="${t}">${e}</div>`); 2378 return i.attr("data-swiper-slide-index") || i.attr("data-swiper-slide-index", t), a.cache && (s.virtual.cache[t] = i), i 2379 } 2380 2381 function l(e) { 2382 const { 2383 slidesPerView: t, 2384 slidesPerGroup: a, 2385 centeredSlides: i 2386 } = s.params, { 2387 addSlidesBefore: l, 2388 addSlidesAfter: o 2389 } = s.params.virtual, { 2390 from: d, 2391 to: c, 2392 slides: p, 2393 slidesGrid: u, 2394 offset: h 2395 } = s.virtual; 2396 s.params.cssMode || s.updateActiveIndex(); 2397 const m = s.activeIndex || 0; 2398 let f, g, v; 2399 f = s.rtlTranslate ? "right" : s.isHorizontal() ? "left" : "top", i ? (g = Math.floor(t / 2) + a + o, v = Math.floor(t / 2) + a + l) : (g = t + (a - 1) + o, v = a + l); 2400 const w = Math.max((m || 0) - v, 0), 2401 b = Math.min((m || 0) + g, p.length - 1), 2402 x = (s.slidesGrid[w] || 0) - (s.slidesGrid[0] || 0); 2403 2404 function y() { 2405 s.updateSlides(), s.updateProgress(), s.updateSlidesClasses(), s.lazy && s.params.lazy.enabled && s.lazy.load(), r("virtualUpdate") 2406 } 2407 if (Object.assign(s.virtual, { 2408 from: w, 2409 to: b, 2410 offset: x, 2411 slidesGrid: s.slidesGrid 2412 }), d === w && c === b && !e) return s.slidesGrid !== u && x !== h && s.slides.css(f, `${x}px`), s.updateProgress(), void r("virtualUpdate"); 2413 if (s.params.virtual.renderExternal) return s.params.virtual.renderExternal.call(s, { 2414 offset: x, 2415 from: w, 2416 to: b, 2417 slides: function() { 2418 const e = []; 2419 for (let t = w; t <= b; t += 1) e.push(p[t]); 2420 return e 2421 }() 2422 }), void(s.params.virtual.renderExternalUpdate ? y() : r("virtualUpdate")); 2423 const E = [], 2424 T = []; 2425 if (e) s.$wrapperEl.find(`.${s.params.slideClass}`).remove(); 2426 else 2427 for (let e = d; e <= c; e += 1)(e < w || e > b) && s.$wrapperEl.find(`.${s.params.slideClass}[data-swiper-slide-index="${e}"]`).remove(); 2428 for (let t = 0; t < p.length; t += 1) t >= w && t <= b && (void 0 === c || e ? T.push(t) : (t > c && T.push(t), t < d && E.push(t))); 2429 T.forEach((e => { 2430 s.$wrapperEl.append(n(p[e], e)) 2431 })), E.sort(((e, t) => t - e)).forEach((e => { 2432 s.$wrapperEl.prepend(n(p[e], e)) 2433 })), s.$wrapperEl.children(".swiper-slide").css(f, `${x}px`), y() 2434 } 2435 a({ 2436 virtual: { 2437 enabled: !1, 2438 slides: [], 2439 cache: !0, 2440 renderSlide: null, 2441 renderExternal: null, 2442 renderExternalUpdate: !0, 2443 addSlidesBefore: 0, 2444 addSlidesAfter: 0 2445 } 2446 }), s.virtual = { 2447 cache: {}, 2448 from: void 0, 2449 to: void 0, 2450 slides: [], 2451 offset: 0, 2452 slidesGrid: [] 2453 }, i("beforeInit", (() => { 2454 s.params.virtual.enabled && (s.virtual.slides = s.params.virtual.slides, s.classNames.push(`${s.params.containerModifierClass}virtual`), s.params.watchSlidesProgress = !0, s.originalParams.watchSlidesProgress = !0, s.params.initialSlide || l()) 2455 })), i("setTranslate", (() => { 2456 s.params.virtual.enabled && (s.params.cssMode && !s._immediateVirtual ? (clearTimeout(t), t = setTimeout((() => { 2457 l() 2458 }), 100)) : l()) 2459 })), i("init update resize", (() => { 2460 s.params.virtual.enabled && s.params.cssMode && v(s.wrapperEl, "--swiper-virtual-size", `${s.virtualSize}px`) 2461 })), Object.assign(s.virtual, { 2462 appendSlide: function(e) { 2463 if ("object" == typeof e && "length" in e) 2464 for (let t = 0; t < e.length; t += 1) e[t] && s.virtual.slides.push(e[t]); 2465 else s.virtual.slides.push(e); 2466 l(!0) 2467 }, 2468 prependSlide: function(e) { 2469 const t = s.activeIndex; 2470 let a = t + 1, 2471 i = 1; 2472 if (Array.isArray(e)) { 2473 for (let t = 0; t < e.length; t += 1) e[t] && s.virtual.slides.unshift(e[t]); 2474 a = t + e.length, i = e.length 2475 } else s.virtual.slides.unshift(e); 2476 if (s.params.virtual.cache) { 2477 const e = s.virtual.cache, 2478 t = {}; 2479 Object.keys(e).forEach((s => { 2480 const a = e[s], 2481 r = a.attr("data-swiper-slide-index"); 2482 r && a.attr("data-swiper-slide-index", parseInt(r, 10) + i), t[parseInt(s, 10) + i] = a 2483 })), s.virtual.cache = t 2484 } 2485 l(!0), s.slideTo(a, 0) 2486 }, 2487 removeSlide: function(e) { 2488 if (null == e) return; 2489 let t = s.activeIndex; 2490 if (Array.isArray(e)) 2491 for (let a = e.length - 1; a >= 0; a -= 1) s.virtual.slides.splice(e[a], 1), s.params.virtual.cache && delete s.virtual.cache[e[a]], e[a] < t && (t -= 1), t = Math.max(t, 0); 2492 else s.virtual.slides.splice(e, 1), s.params.virtual.cache && delete s.virtual.cache[e], e < t && (t -= 1), t = Math.max(t, 0); 2493 l(!0), s.slideTo(t, 0) 2494 }, 2495 removeAllSlides: function() { 2496 s.virtual.slides = [], s.params.virtual.cache && (s.virtual.cache = {}), l(!0), s.slideTo(0, 0) 2497 }, 2498 update: l 2499 }) 2500 }, function(e) { 2501 let { 2502 swiper: t, 2503 extendParams: s, 2504 on: i, 2505 emit: n 2506 } = e; 2507 const l = a(), 2508 o = r(); 2509 2510 function c(e) { 2511 if (!t.enabled) return; 2512 const { 2513 rtlTranslate: s 2514 } = t; 2515 let a = e; 2516 a.originalEvent && (a = a.originalEvent); 2517 const i = a.keyCode || a.charCode, 2518 r = t.params.keyboard.pageUpDown, 2519 d = r && 33 === i, 2520 c = r && 34 === i, 2521 p = 37 === i, 2522 u = 39 === i, 2523 h = 38 === i, 2524 m = 40 === i; 2525 if (!t.allowSlideNext && (t.isHorizontal() && u || t.isVertical() && m || c)) return !1; 2526 if (!t.allowSlidePrev && (t.isHorizontal() && p || t.isVertical() && h || d)) return !1; 2527 if (!(a.shiftKey || a.altKey || a.ctrlKey || a.metaKey || l.activeElement && l.activeElement.nodeName && ("input" === l.activeElement.nodeName.toLowerCase() || "textarea" === l.activeElement.nodeName.toLowerCase()))) { 2528 if (t.params.keyboard.onlyInViewport && (d || c || p || u || h || m)) { 2529 let e = !1; 2530 if (t.$el.parents(`.${t.params.slideClass}`).length > 0 && 0 === t.$el.parents(`.${t.params.slideActiveClass}`).length) return; 2531 const a = t.$el, 2532 i = a[0].clientWidth, 2533 r = a[0].clientHeight, 2534 n = o.innerWidth, 2535 l = o.innerHeight, 2536 d = t.$el.offset(); 2537 s && (d.left -= t.$el[0].scrollLeft); 2538 const c = [ 2539 [d.left, d.top], 2540 [d.left + i, d.top], 2541 [d.left, d.top + r], 2542 [d.left + i, d.top + r] 2543 ]; 2544 for (let t = 0; t < c.length; t += 1) { 2545 const s = c[t]; 2546 if (s[0] >= 0 && s[0] <= n && s[1] >= 0 && s[1] <= l) { 2547 if (0 === s[0] && 0 === s[1]) continue; 2548 e = !0 2549 } 2550 } 2551 if (!e) return 2552 } 2553 t.isHorizontal() ? ((d || c || p || u) && (a.preventDefault ? a.preventDefault() : a.returnValue = !1), ((c || u) && !s || (d || p) && s) && t.slideNext(), ((d || p) && !s || (c || u) && s) && t.slidePrev()) : ((d || c || h || m) && (a.preventDefault ? a.preventDefault() : a.returnValue = !1), (c || m) && t.slideNext(), (d || h) && t.slidePrev()), n("keyPress", i) 2554 } 2555 } 2556 2557 function p() { 2558 t.keyboard.enabled || (d(l).on("keydown", c), t.keyboard.enabled = !0) 2559 } 2560 2561 function u() { 2562 t.keyboard.enabled && (d(l).off("keydown", c), t.keyboard.enabled = !1) 2563 } 2564 t.keyboard = { 2565 enabled: !1 2566 }, s({ 2567 keyboard: { 2568 enabled: !1, 2569 onlyInViewport: !0, 2570 pageUpDown: !0 2571 } 2572 }), i("init", (() => { 2573 t.params.keyboard.enabled && p() 2574 })), i("destroy", (() => { 2575 t.keyboard.enabled && u() 2576 })), Object.assign(t.keyboard, { 2577 enable: p, 2578 disable: u 2579 }) 2580 }, function(e) { 2581 let { 2582 swiper: t, 2583 extendParams: s, 2584 on: a, 2585 emit: i 2586 } = e; 2587 const n = r(); 2588 let l; 2589 s({ 2590 mousewheel: { 2591 enabled: !1, 2592 releaseOnEdges: !1, 2593 invert: !1, 2594 forceToAxis: !1, 2595 sensitivity: 1, 2596 eventsTarget: "container", 2597 thresholdDelta: null, 2598 thresholdTime: null 2599 } 2600 }), t.mousewheel = { 2601 enabled: !1 2602 }; 2603 let o, c = u(); 2604 const h = []; 2605 2606 function m() { 2607 t.enabled && (t.mouseEntered = !0) 2608 } 2609 2610 function f() { 2611 t.enabled && (t.mouseEntered = !1) 2612 } 2613 2614 function g(e) { 2615 return !(t.params.mousewheel.thresholdDelta && e.delta < t.params.mousewheel.thresholdDelta) && (!(t.params.mousewheel.thresholdTime && u() - c < t.params.mousewheel.thresholdTime) && (e.delta >= 6 && u() - c < 60 || (e.direction < 0 ? t.isEnd && !t.params.loop || t.animating || (t.slideNext(), i("scroll", e.raw)) : t.isBeginning && !t.params.loop || t.animating || (t.slidePrev(), i("scroll", e.raw)), c = (new n.Date).getTime(), !1))) 2616 } 2617 2618 function v(e) { 2619 let s = e, 2620 a = !0; 2621 if (!t.enabled) return; 2622 const r = t.params.mousewheel; 2623 t.params.cssMode && s.preventDefault(); 2624 let n = t.$el; 2625 if ("container" !== t.params.mousewheel.eventsTarget && (n = d(t.params.mousewheel.eventsTarget)), !t.mouseEntered && !n[0].contains(s.target) && !r.releaseOnEdges) return !0; 2626 s.originalEvent && (s = s.originalEvent); 2627 let c = 0; 2628 const m = t.rtlTranslate ? -1 : 1, 2629 f = function(e) { 2630 let t = 0, 2631 s = 0, 2632 a = 0, 2633 i = 0; 2634 return "detail" in e && (s = e.detail), "wheelDelta" in e && (s = -e.wheelDelta / 120), "wheelDeltaY" in e && (s = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (t = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS && (t = s, s = 0), a = 10 * t, i = 10 * s, "deltaY" in e && (i = e.deltaY), "deltaX" in e && (a = e.deltaX), e.shiftKey && !a && (a = i, i = 0), (a || i) && e.deltaMode && (1 === e.deltaMode ? (a *= 40, i *= 40) : (a *= 800, i *= 800)), a && !t && (t = a < 1 ? -1 : 1), i && !s && (s = i < 1 ? -1 : 1), { 2635 spinX: t, 2636 spinY: s, 2637 pixelX: a, 2638 pixelY: i 2639 } 2640 }(s); 2641 if (r.forceToAxis) 2642 if (t.isHorizontal()) { 2643 if (!(Math.abs(f.pixelX) > Math.abs(f.pixelY))) return !0; 2644 c = -f.pixelX * m 2645 } else { 2646 if (!(Math.abs(f.pixelY) > Math.abs(f.pixelX))) return !0; 2647 c = -f.pixelY 2648 } 2649 else c = Math.abs(f.pixelX) > Math.abs(f.pixelY) ? -f.pixelX * m : -f.pixelY; 2650 if (0 === c) return !0; 2651 r.invert && (c = -c); 2652 let v = t.getTranslate() + c * r.sensitivity; 2653 if (v >= t.minTranslate() && (v = t.minTranslate()), v <= t.maxTranslate() && (v = t.maxTranslate()), a = !!t.params.loop || !(v === t.minTranslate() || v === t.maxTranslate()), a && t.params.nested && s.stopPropagation(), t.params.freeMode && t.params.freeMode.enabled) { 2654 const e = { 2655 time: u(), 2656 delta: Math.abs(c), 2657 direction: Math.sign(c) 2658 }, 2659 a = o && e.time < o.time + 500 && e.delta <= o.delta && e.direction === o.direction; 2660 if (!a) { 2661 o = void 0, t.params.loop && t.loopFix(); 2662 let n = t.getTranslate() + c * r.sensitivity; 2663 const d = t.isBeginning, 2664 u = t.isEnd; 2665 if (n >= t.minTranslate() && (n = t.minTranslate()), n <= t.maxTranslate() && (n = t.maxTranslate()), t.setTransition(0), t.setTranslate(n), t.updateProgress(), t.updateActiveIndex(), t.updateSlidesClasses(), (!d && t.isBeginning || !u && t.isEnd) && t.updateSlidesClasses(), t.params.freeMode.sticky) { 2666 clearTimeout(l), l = void 0, h.length >= 15 && h.shift(); 2667 const s = h.length ? h[h.length - 1] : void 0, 2668 a = h[0]; 2669 if (h.push(e), s && (e.delta > s.delta || e.direction !== s.direction)) h.splice(0); 2670 else if (h.length >= 15 && e.time - a.time < 500 && a.delta - e.delta >= 1 && e.delta <= 6) { 2671 const s = c > 0 ? .8 : .2; 2672 o = e, h.splice(0), l = p((() => { 2673 t.slideToClosest(t.params.speed, !0, void 0, s) 2674 }), 0) 2675 } 2676 l || (l = p((() => { 2677 o = e, h.splice(0), t.slideToClosest(t.params.speed, !0, void 0, .5) 2678 }), 500)) 2679 } 2680 if (a || i("scroll", s), t.params.autoplay && t.params.autoplayDisableOnInteraction && t.autoplay.stop(), n === t.minTranslate() || n === t.maxTranslate()) return !0 2681 } 2682 } else { 2683 const s = { 2684 time: u(), 2685 delta: Math.abs(c), 2686 direction: Math.sign(c), 2687 raw: e 2688 }; 2689 h.length >= 2 && h.shift(); 2690 const a = h.length ? h[h.length - 1] : void 0; 2691 if (h.push(s), a ? (s.direction !== a.direction || s.delta > a.delta || s.time > a.time + 150) && g(s) : g(s), function(e) { 2692 const s = t.params.mousewheel; 2693 if (e.direction < 0) { 2694 if (t.isEnd && !t.params.loop && s.releaseOnEdges) return !0 2695 } else if (t.isBeginning && !t.params.loop && s.releaseOnEdges) return !0; 2696 return !1 2697 }(s)) return !0 2698 } 2699 return s.preventDefault ? s.preventDefault() : s.returnValue = !1, !1 2700 } 2701 2702 function w(e) { 2703 let s = t.$el; 2704 "container" !== t.params.mousewheel.eventsTarget && (s = d(t.params.mousewheel.eventsTarget)), s[e]("mouseenter", m), s[e]("mouseleave", f), s[e]("wheel", v) 2705 } 2706 2707 function b() { 2708 return t.params.cssMode ? (t.wrapperEl.removeEventListener("wheel", v), !0) : !t.mousewheel.enabled && (w("on"), t.mousewheel.enabled = !0, !0) 2709 } 2710 2711 function x() { 2712 return t.params.cssMode ? (t.wrapperEl.addEventListener(event, v), !0) : !!t.mousewheel.enabled && (w("off"), t.mousewheel.enabled = !1, !0) 2713 } 2714 a("init", (() => { 2715 !t.params.mousewheel.enabled && t.params.cssMode && x(), t.params.mousewheel.enabled && b() 2716 })), a("destroy", (() => { 2717 t.params.cssMode && b(), t.mousewheel.enabled && x() 2718 })), Object.assign(t.mousewheel, { 2719 enable: b, 2720 disable: x 2721 }) 2722 }, function(e) { 2723 let { 2724 swiper: t, 2725 extendParams: s, 2726 on: a, 2727 emit: i 2728 } = e; 2729 2730 function r(e) { 2731 let s; 2732 return e && (s = d(e), t.params.uniqueNavElements && "string" == typeof e && s.length > 1 && 1 === t.$el.find(e).length && (s = t.$el.find(e))), s 2733 } 2734 2735 function n(e, s) { 2736 const a = t.params.navigation; 2737 e && e.length > 0 && (e[s ? "addClass" : "removeClass"](a.disabledClass), e[0] && "BUTTON" === e[0].tagName && (e[0].disabled = s), t.params.watchOverflow && t.enabled && e[t.isLocked ? "addClass" : "removeClass"](a.lockClass)) 2738 } 2739 2740 function l() { 2741 if (t.params.loop) return; 2742 const { 2743 $nextEl: e, 2744 $prevEl: s 2745 } = t.navigation; 2746 n(s, t.isBeginning && !t.params.rewind), n(e, t.isEnd && !t.params.rewind) 2747 } 2748 2749 function o(e) { 2750 e.preventDefault(), (!t.isBeginning || t.params.loop || t.params.rewind) && t.slidePrev() 2751 } 2752 2753 function c(e) { 2754 e.preventDefault(), (!t.isEnd || t.params.loop || t.params.rewind) && t.slideNext() 2755 } 2756 2757 function p() { 2758 const e = t.params.navigation; 2759 if (t.params.navigation = F(t, t.originalParams.navigation, t.params.navigation, { 2760 nextEl: "swiper-button-next", 2761 prevEl: "swiper-button-prev" 2762 }), !e.nextEl && !e.prevEl) return; 2763 const s = r(e.nextEl), 2764 a = r(e.prevEl); 2765 s && s.length > 0 && s.on("click", c), a && a.length > 0 && a.on("click", o), Object.assign(t.navigation, { 2766 $nextEl: s, 2767 nextEl: s && s[0], 2768 $prevEl: a, 2769 prevEl: a && a[0] 2770 }), t.enabled || (s && s.addClass(e.lockClass), a && a.addClass(e.lockClass)) 2771 } 2772 2773 function u() { 2774 const { 2775 $nextEl: e, 2776 $prevEl: s 2777 } = t.navigation; 2778 e && e.length && (e.off("click", c), e.removeClass(t.params.navigation.disabledClass)), s && s.length && (s.off("click", o), s.removeClass(t.params.navigation.disabledClass)) 2779 } 2780 s({ 2781 navigation: { 2782 nextEl: null, 2783 prevEl: null, 2784 hideOnClick: !1, 2785 disabledClass: "swiper-button-disabled", 2786 hiddenClass: "swiper-button-hidden", 2787 lockClass: "swiper-button-lock" 2788 } 2789 }), t.navigation = { 2790 nextEl: null, 2791 $nextEl: null, 2792 prevEl: null, 2793 $prevEl: null 2794 }, a("init", (() => { 2795 p(), l() 2796 })), a("toEdge fromEdge lock unlock", (() => { 2797 l() 2798 })), a("destroy", (() => { 2799 u() 2800 })), a("enable disable", (() => { 2801 const { 2802 $nextEl: e, 2803 $prevEl: s 2804 } = t.navigation; 2805 e && e[t.enabled ? "removeClass" : "addClass"](t.params.navigation.lockClass), s && s[t.enabled ? "removeClass" : "addClass"](t.params.navigation.lockClass) 2806 })), a("click", ((e, s) => { 2807 const { 2808 $nextEl: a, 2809 $prevEl: r 2810 } = t.navigation, n = s.target; 2811 if (t.params.navigation.hideOnClick && !d(n).is(r) && !d(n).is(a)) { 2812 if (t.pagination && t.params.pagination && t.params.pagination.clickable && (t.pagination.el === n || t.pagination.el.contains(n))) return; 2813 let e; 2814 a ? e = a.hasClass(t.params.navigation.hiddenClass) : r && (e = r.hasClass(t.params.navigation.hiddenClass)), i(!0 === e ? "navigationShow" : "navigationHide"), a && a.toggleClass(t.params.navigation.hiddenClass), r && r.toggleClass(t.params.navigation.hiddenClass) 2815 } 2816 })), Object.assign(t.navigation, { 2817 update: l, 2818 init: p, 2819 destroy: u 2820 }) 2821 }, function(e) { 2822 let { 2823 swiper: t, 2824 extendParams: s, 2825 on: a, 2826 emit: i 2827 } = e; 2828 const r = "swiper-pagination"; 2829 let n; 2830 s({ 2831 pagination: { 2832 el: null, 2833 bulletElement: "span", 2834 clickable: !1, 2835 hideOnClick: !1, 2836 renderBullet: null, 2837 renderProgressbar: null, 2838 renderFraction: null, 2839 renderCustom: null, 2840 progressbarOpposite: !1, 2841 type: "bullets", 2842 dynamicBullets: !1, 2843 dynamicMainBullets: 1, 2844 formatFractionCurrent: e => e, 2845 formatFractionTotal: e => e, 2846 bulletClass: `${r}-bullet`, 2847 bulletActiveClass: `${r}-bullet-active`, 2848 modifierClass: `${r}-`, 2849 currentClass: `${r}-current`, 2850 totalClass: `${r}-total`, 2851 hiddenClass: `${r}-hidden`, 2852 progressbarFillClass: `${r}-progressbar-fill`, 2853 progressbarOppositeClass: `${r}-progressbar-opposite`, 2854 clickableClass: `${r}-clickable`, 2855 lockClass: `${r}-lock`, 2856 horizontalClass: `${r}-horizontal`, 2857 verticalClass: `${r}-vertical` 2858 } 2859 }), t.pagination = { 2860 el: null, 2861 $el: null, 2862 bullets: [] 2863 }; 2864 let l = 0; 2865 2866 function o() { 2867 return !t.params.pagination.el || !t.pagination.el || !t.pagination.$el || 0 === t.pagination.$el.length 2868 } 2869 2870 function c(e, s) { 2871 const { 2872 bulletActiveClass: a 2873 } = t.params.pagination; 2874 e[s]().addClass(`${a}-${s}`)[s]().addClass(`${a}-${s}-${s}`) 2875 } 2876 2877 function p() { 2878 const e = t.rtl, 2879 s = t.params.pagination; 2880 if (o()) return; 2881 const a = t.virtual && t.params.virtual.enabled ? t.virtual.slides.length : t.slides.length, 2882 r = t.pagination.$el; 2883 let p; 2884 const u = t.params.loop ? Math.ceil((a - 2 * t.loopedSlides) / t.params.slidesPerGroup) : t.snapGrid.length; 2885 if (t.params.loop ? (p = Math.ceil((t.activeIndex - t.loopedSlides) / t.params.slidesPerGroup), p > a - 1 - 2 * t.loopedSlides && (p -= a - 2 * t.loopedSlides), p > u - 1 && (p -= u), p < 0 && "bullets" !== t.params.paginationType && (p = u + p)) : p = void 0 !== t.snapIndex ? t.snapIndex : t.activeIndex || 0, "bullets" === s.type && t.pagination.bullets && t.pagination.bullets.length > 0) { 2886 const a = t.pagination.bullets; 2887 let i, o, u; 2888 if (s.dynamicBullets && (n = a.eq(0)[t.isHorizontal() ? "outerWidth" : "outerHeight"](!0), r.css(t.isHorizontal() ? "width" : "height", n * (s.dynamicMainBullets + 4) + "px"), s.dynamicMainBullets > 1 && void 0 !== t.previousIndex && (l += p - (t.previousIndex - t.loopedSlides || 0), l > s.dynamicMainBullets - 1 ? l = s.dynamicMainBullets - 1 : l < 0 && (l = 0)), i = Math.max(p - l, 0), o = i + (Math.min(a.length, s.dynamicMainBullets) - 1), u = (o + i) / 2), a.removeClass(["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((e => `${s.bulletActiveClass}${e}`)).join(" ")), r.length > 1) a.each((e => { 2889 const t = d(e), 2890 a = t.index(); 2891 a === p && t.addClass(s.bulletActiveClass), s.dynamicBullets && (a >= i && a <= o && t.addClass(`${s.bulletActiveClass}-main`), a === i && c(t, "prev"), a === o && c(t, "next")) 2892 })); 2893 else { 2894 const e = a.eq(p), 2895 r = e.index(); 2896 if (e.addClass(s.bulletActiveClass), s.dynamicBullets) { 2897 const e = a.eq(i), 2898 n = a.eq(o); 2899 for (let e = i; e <= o; e += 1) a.eq(e).addClass(`${s.bulletActiveClass}-main`); 2900 if (t.params.loop) 2901 if (r >= a.length) { 2902 for (let e = s.dynamicMainBullets; e >= 0; e -= 1) a.eq(a.length - e).addClass(`${s.bulletActiveClass}-main`); 2903 a.eq(a.length - s.dynamicMainBullets - 1).addClass(`${s.bulletActiveClass}-prev`) 2904 } else c(e, "prev"), c(n, "next"); 2905 else c(e, "prev"), c(n, "next") 2906 } 2907 } 2908 if (s.dynamicBullets) { 2909 const i = Math.min(a.length, s.dynamicMainBullets + 4), 2910 r = (n * i - n) / 2 - u * n, 2911 l = e ? "right" : "left"; 2912 a.css(t.isHorizontal() ? l : "top", `${r}px`) 2913 } 2914 } 2915 if ("fraction" === s.type && (r.find(U(s.currentClass)).text(s.formatFractionCurrent(p + 1)), r.find(U(s.totalClass)).text(s.formatFractionTotal(u))), "progressbar" === s.type) { 2916 let e; 2917 e = s.progressbarOpposite ? t.isHorizontal() ? "vertical" : "horizontal" : t.isHorizontal() ? "horizontal" : "vertical"; 2918 const a = (p + 1) / u; 2919 let i = 1, 2920 n = 1; 2921 "horizontal" === e ? i = a : n = a, r.find(U(s.progressbarFillClass)).transform(`translate3d(0,
29210,0) scaleX(${i}) scaleY(${n})`).transition(t.params.speed) 2922 } 2923 "custom" === s.type && s.renderCustom ? (r.html(s.renderCustom(t, p + 1, u)), i("paginationRender", r[0])) : i("paginationUpdate", r[0]), t.params.watchOverflow && t.enabled && r[t.isLocked ? "addClass" : "removeClass"](s.lockClass) 2924 } 2925 2926 function u() { 2927 const e = t.params.pagination; 2928 if (o()) return; 2929 const s = t.virtual && t.params.virtual.enabled ? t.virtual.slides.length : t.slides.length, 2930 a = t.pagination.$el; 2931 let r = ""; 2932 if ("bullets" === e.type) { 2933 let i = t.params.loop ? Math.ceil((s - 2 * t.loopedSlides) / t.params.slidesPerGroup) : t.snapGrid.length; 2934 t.params.freeMode && t.params.freeMode.enabled && !t.params.loop && i > s && (i = s); 2935 for (let s = 0; s < i; s += 1) e.renderBullet ? r += e.renderBullet.call(t, s, e.bulletClass) : r += `<${e.bulletElement} class="${e.bulletClass}"></${e.bulletElement}>`; 2936 a.html(r), t.pagination.bullets = a.find(U(e.bulletClass)) 2937 } 2938 "fraction" === e.type && (r = e.renderFraction ? e.renderFraction.call(t, e.currentClass, e.totalClass) : `<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`, a.html(r)), "progressbar" === e.type && (r = e.renderProgressbar ? e.renderProgressbar.call(t, e.progressbarFillClass) : `<span class="${e.progressbarFillClass}"></span>`, a.html(r)), "custom" !== e.type && i("paginationRender", t.pagination.$el[0]) 2939 } 2940 2941 function h() { 2942 t.params.pagination = F(t, t.originalParams.pagination, t.params.pagination, { 2943 el: "swiper-pagination" 2944 }); 2945 const e = t.params.pagination; 2946 if (!e.el) return; 2947 let s = d(e.el); 2948 0 !== s.length && (t.params.uniqueNavElements && "string" == typeof e.el && s.length > 1 && (s = t.$el.find(e.el), s.length > 1 && (s = s.filter((e => d(e).parents(".swiper")[0] === t.el)))), "bullets" === e.type && e.clickable && s.addClass(e.clickableClass), s.addClass(e.modifierClass + e.type), s.addClass(t.isHorizontal() ? e.horizontalClass : e.verticalClass), "bullets" === e.type && e.dynamicBullets && (s.addClass(`${e.modifierClass}${e.type}-dynamic`), l = 0, e.dynamicMainBullets < 1 && (e.dynamicMainBullets = 1)), "progressbar" === e.type && e.progressbarOpposite && s.addClass(e.progressbarOppositeClass), e.clickable && s.on("click", U(e.bulletClass), (function(e) { 2949 e.preventDefault(); 2950 let s = d(this).index() * t.params.slidesPerGroup; 2951 t.params.loop && (s += t.loopedSlides), t.slideTo(s) 2952 })), Object.assign(t.pagination, { 2953 $el: s, 2954 el: s[0] 2955 }), t.enabled || s.addClass(e.lockClass)) 2956 } 2957 2958 function m() { 2959 const e = t.params.pagination; 2960 if (o()) return; 2961 const s = t.pagination.$el; 2962 s.removeClass(e.hiddenClass), s.removeClass(e.modifierClass + e.type), s.removeClass(t.isHorizontal() ? e.horizontalClass : e.verticalClass), t.pagination.bullets && t.pagination.bullets.removeClass && t.pagination.bullets.removeClass(e.bulletActiveClass), e.clickable && s.off("click", U(e.bulletClass)) 2963 } 2964 a("init", (() => { 2965 h(), u(), p() 2966 })), a("activeIndexChange", (() => { 2967 (t.params.loop || void 0 === t.snapIndex) && p() 2968 })), a("snapIndexChange", (() => { 2969 t.params.loop || p() 2970 })), a("slidesLengthChange", (() => { 2971 t.params.loop && (u(), p()) 2972 })), a("snapGridLengthChange", (() => { 2973 t.params.loop || (u(), p()) 2974 })), a("destroy", (() => { 2975 m() 2976 })), a("enable disable", (() => { 2977 const { 2978 $el: e 2979 } = t.pagination; 2980 e && e[t.enabled ? "removeClass" : "addClass"](t.params.pagination.lockClass) 2981 })), a("lock unlock", (() => { 2982 p() 2983 })), a("click", ((e, s) => { 2984 const a = s.target, 2985 { 2986 $el: r 2987 } = t.pagination; 2988 if (t.params.pagination.el && t.params.pagination.hideOnClick && r.length > 0 && !d(a).hasClass(t.params.pagination.bulletClass)) { 2989 if (t.navigation && (t.navigation.nextEl && a === t.navigation.nextEl || t.navigation.prevEl && a === t.navigation.prevEl)) return; 2990 const e = r.hasClass(t.params.pagination.hiddenClass); 2991 i(!0 === e ? "paginationShow" : "paginationHide"), r.toggleClass(t.params.pagination.hiddenClass) 2992 } 2993 })), Object.assign(t.pagination, { 2994 render: u, 2995 update: p, 2996 init: h, 2997 destroy: m 2998 }) 2999 }, function(e) { 3000 let { 3001 swiper: t, 3002 extendParams: s, 3003 on: i, 3004 emit: r 3005 } = e; 3006 const n = a(); 3007 let l, o, c, u, h = !1, 3008 m = null, 3009 f = null; 3010 3011 function g() { 3012 if (!t.params.scrollbar.el || !t.scrollbar.el) return; 3013 const { 3014 scrollbar: e, 3015 rtlTranslate: s, 3016 progress: a 3017 } = t, { 3018 $dragEl: i, 3019 $el: r 3020 } = e, n = t.params.scrollbar; 3021 let l = o, 3022 d = (c - o) * a; 3023 s ? (d = -d, d > 0 ? (l = o - d, d = 0) : -d + o > c && (l = c + d)) : d < 0 ? (l = o + d, d = 0) : d + o > c && (l = c - d), t.isHorizontal() ? (i.transform(`translate3d(${d}px, 0, 0)`), i[0].style.width = `${l}px`) : (i.transform(`translate3d(0px, ${d}
3023px, 0)`), i[0].style.height = `${l}px`), n.hide && (clearTimeout(m), r[0].style.opacity = 1, m = setTimeout((() => { 3024 r[0].style.opacity = 0, r.transition(400) 3025 }), 1e3)) 3026 } 3027 3028 function v() { 3029 if (!t.params.scrollbar.el || !t.scrollbar.el) return; 3030 const { 3031 scrollbar: e 3032 } = t, { 3033 $dragEl: s, 3034 $el: a 3035 } = e; 3036 s[0].style.width = "", s[0].style.height = "", c = t.isHorizontal() ? a[0].offsetWidth : a[0].offsetHeight, u = t.size / (t.virtualSize + t.params.slidesOffsetBefore - (t.params.centeredSlides ? t.snapGrid[0] : 0)), o = "auto" === t.params.scrollbar.dragSize ? c * u : parseInt(t.params.scrollbar.dragSize, 10), t.isHorizontal() ? s[0].style.width = `${o}px` : s[0].style.height = `${o}px`, a[0].style.display = u >= 1 ? "none" : "", t.params.scrollbar.hide && (a[0].style.opacity = 0), t.params.watchOverflow && t.enabled && e.$el[t.isLocked ? "addClass" : "removeClass"](t.params.scrollbar.lockClass) 3037 } 3038 3039 function w(e) { 3040 return t.isHorizontal() ? "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].clientX : e.clientX : "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].clientY : e.clientY 3041 } 3042 3043 function b(e) { 3044 const { 3045 scrollbar: s, 3046 rtlTranslate: a 3047 } = t, { 3048 $el: i 3049 } = s; 3050 let r; 3051 r = (w(e) - i.offset()[t.isHorizontal() ? "left" : "top"] - (null !== l ? l : o / 2)) / (c - o), r = Math.max(Math.min(r, 1), 0), a && (r = 1 - r); 3052 const n = t.minTranslate() + (t.maxTranslate() - t.minTranslate()) * r; 3053 t.updateProgress(n), t.setTranslate(n), t.updateActiveIndex(), t.updateSlidesClasses() 3054 } 3055 3056 function x(e) { 3057 const s = t.params.scrollbar, 3058 { 3059 scrollbar: a, 3060 $wrapperEl: i 3061 } = t, 3062 { 3063 $el: n, 3064 $dragEl: o 3065 } = a; 3066 h = !0, l = e.target === o[0] || e.target === o ? w(e) - e.target.getBoundingClientRect()[t.isHorizontal() ? "left" : "top"] : null, e.preventDefault(), e.stopPropagation(), i.transition(100), o.transition(100), b(e), clearTimeout(f), n.transition(0), s.hide && n.css("opacity", 1), t.params.cssMode && t.$wrapperEl.css("scroll-snap-type", "none"), r("scrollbarDragStart", e) 3067 } 3068 3069 function y(e) { 3070 const { 3071 scrollbar: s, 3072 $wrapperEl: a 3073 } = t, { 3074 $el: i, 3075 $dragEl: n 3076 } = s; 3077 h && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, b(e), a.transition(0), i.transition(0), n.transition(0), r("scrollbarDragMove", e)) 3078 } 3079 3080 function E(e) { 3081 const s = t.params.scrollbar, 3082 { 3083 scrollbar: a, 3084 $wrapperEl: i 3085 } = t, 3086 { 3087 $el: n 3088 } = a; 3089 h && (h = !1, t.params.cssMode && (t.$wrapperEl.css("scroll-snap-type", ""), i.transition("")), s.hide && (clearTimeout(f), f = p((() => { 3090 n.css("opacity", 0), n.transition(400) 3091 }), 1e3)), r("scrollbarDragEnd", e), s.snapOnRelease && t.slideToClosest()) 3092 } 3093 3094 function T(e) { 3095 const { 3096 scrollbar: s, 3097 touchEventsTouch: a, 3098 touchEventsDesktop: i, 3099 params: r, 3100 support: l 3101 } = t, o = s.$el[0], d = !(!l.passiveListener || !r.passiveListeners) && { 3102 passive: !1, 3103 capture: !1 3104 }, c = !(!l.passiveListener || !r.passiveListeners) && { 3105 passive: !0, 3106 capture: !1 3107 }; 3108 if (!o) return; 3109 const p = "on" === e ? "addEventListener" : "removeEventListener"; 3110 l.touch ? (o[p](a.start, x, d), o[p](a.move, y, d), o[p](a.end, E, c)) : (o[p](i.start, x, d), n[p](i.move, y, d), n[p](i.end, E, c)) 3111 } 3112 3113 function C() { 3114 const { 3115 scrollbar: e, 3116 $el: s 3117 } = t; 3118 t.params.scrollbar = F(t, t.originalParams.scrollbar, t.params.scrollbar, { 3119 el: "swiper-scrollbar" 3120 }); 3121 const a = t.params.scrollbar; 3122 if (!a.el) return; 3123 let i = d(a.el); 3124 t.params.uniqueNavElements && "string" == typeof a.el && i.length > 1 && 1 === s.find(a.el).length && (i = s.find(a.el)); 3125 let r = i.find(`.${t.params.scrollbar.dragClass}`); 3126 0 === r.length && (r = d(`<div class="${t.params.scrollbar.dragClass}"></div>`), i.append(r)), Object.assign(e, { 3127 $el: i, 3128 el: i[0], 3129 $dragEl: r, 3130 dragEl: r[0] 3131 }), a.draggable && t.params.scrollbar.el && T("on"), i && i[t.enabled ? "removeClass" : "addClass"](t.params.scrollbar.lockClass) 3132 } 3133 3134 function $() { 3135 t.params.scrollbar.el && T("off") 3136 } 3137 s({ 3138 scrollbar: { 3139 el: null, 3140 dragSize: "auto", 3141 hide: !1, 3142 draggable: !1, 3143 snapOnRelease: !0, 3144 lockClass: "swiper-scrollbar-lock", 3145 dragClass: "swiper-scrollbar-drag" 3146 } 3147 }), t.scrollbar = { 3148 el: null, 3149 dragEl: null, 3150 $el: null, 3151 $dragEl: null 3152 }, i("init", (() => { 3153 C(), v(), g() 3154 })), i("update resize observerUpdate lock unlock", (() => { 3155 v() 3156 })), i("setTranslate", (() => { 3157 g() 3158 })), i("setTransition", ((e, s) => { 3159 ! function(e) { 3160 t.params.scrollbar.el && t.scrollbar.el && t.scrollbar.$dragEl.transition(e) 3161 }(s) 3162 })), i("enable disable", (() => { 3163 const { 3164 $el: e 3165 } = t.scrollbar; 3166 e && e[t.enabled ? "removeClass" : "addClass"](t.params.scrollbar.lockClass) 3167 })), i("destroy", (() => { 3168 $() 3169 })), Object.assign(t.scrollbar, { 3170 updateSize: v, 3171 setTranslate: g, 3172 init: C, 3173 destroy: $ 3174 }) 3175 }, function(e) { 3176 let { 3177 swiper: t, 3178 extendParams: s, 3179 on: a 3180 } = e; 3181 s({ 3182 parallax: { 3183 enabled: !1 3184 } 3185 }); 3186 const i = (e, s) => { 3187 const { 3188 rtl: a 3189 } = t, i = d(e), r = a ? -1 : 1, n = i.attr("data-swiper-parallax") || "0"; 3190 let l = i.attr("data-swiper-parallax-x"), 3191 o = i.attr("data-swiper-parallax-y"); 3192 const c = i.attr("data-swiper-parallax-scale"), 3193 p = i.attr("data-swiper-parallax-opacity"); 3194 if (l || o ? (l = l || "0", o = o || "0") : t.isHorizontal() ? (l = n, o = "0") : (o = n, l = "0"), l = l.indexOf("%") >= 0 ? parseInt(l, 10) * s * r + "%" : l * s * r + "px", o = o.indexOf("%") >= 0 ? parseInt(o, 10) * s + "%" : o * s + "px", null != p) { 3195 const e = p - (p - 1) * (1 - Math.abs(s)); 3196 i[0].style.opacity = e 3197 } 3198 if (null == c) i.transform(`translate3d(${l}, ${o}, 0px)`); 3199 else { 3200 const e = c - (c - 1) * (1 - Math.abs(s)); 3201 i.transform(`translate3d(${l}, ${o}, 0px) scale(${e})`) 3202 } 3203 }, 3204 r = () => { 3205 const { 3206 $el: e, 3207 slides: s, 3208 progress: a, 3209 snapGrid: r 3210 } = t; 3211 e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e => { 3212 i(e, a) 3213 })), s.each(((e, s) => { 3214 let n = e.progress; 3215 t.params.slidesPerGroup > 1 && "auto" !== t.params.slidesPerView && (n += Math.ceil(s / 2) - a * (r.length - 1)), n = Math.min(Math.max(n, -1), 1), d(e).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((e => { 3216 i(e, n) 3217 })) 3218 })) 3219 }; 3220 a("beforeInit", (() => { 3221 t.params.parallax.enabled && (t.params.watchSlidesProgress = !0, t.originalParams.watchSlidesProgress = !0) 3222 })), a("init", (() => { 3223 t.params.parallax.enabled && r() 3224 })), a("setTranslate", (() => { 3225 t.params.parallax.enabled && r() 3226 })), a("setTransition", ((e, s) => { 3227 t.params.parallax.enabled && function(e) { 3228 void 0 === e && (e = t.params.speed); 3229 const { 3230 $el: s 3231 } = t; 3232 s.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((t => { 3233 const s = d(t); 3234 let a = parseInt(s.attr("data-swiper-parallax-duration"), 10) || e; 3235 0 === e && (a = 0), s.transition(a) 3236 })) 3237 }(s) 3238 })) 3239 }, function(e) { 3240 let { 3241 swiper: t, 3242 extendParams: s, 3243 on: a, 3244 emit: i 3245 } = e; 3246 const n = r(); 3247 s({ 3248 zoom: { 3249 enabled: !1, 3250 maxRatio: 3, 3251 minRatio: 1, 3252 toggle: !0, 3253 containerClass: "swiper-zoom-container", 3254 zoomedSlideClass: "swiper-slide-zoomed" 3255 } 3256 }), t.zoom = { 3257 enabled: !1 3258 }; 3259 let l, o, c, p = 1, 3260 u = !1; 3261 const m = { 3262 $slideEl: void 0, 3263 slideWidth: void 0, 3264 slideHeight: void 0, 3265 $imageEl: void 0, 3266 $imageWrapEl: void 0, 3267 maxRatio: 3 3268 }, 3269 f = { 3270 isTouched: void 0, 3271 isMoved: void 0, 3272 currentX: void 0, 3273 currentY: void 0, 3274 minX: void 0, 3275 minY: void 0, 3276 maxX: void 0, 3277 maxY: void 0, 3278 width: void 0, 3279 height: void 0, 3280 startX: void 0, 3281 startY: void 0, 3282 touchesStart: {}, 3283 touchesCurrent: {} 3284 }, 3285 g = { 3286 x: void 0, 3287 y: void 0, 3288 prevPositionX: void 0, 3289 prevPositionY: void 0, 3290 prevTime: void 0 3291 }; 3292 let v = 1; 3293 3294 function w(e) { 3295 if (e.targetTouches.length < 2) return 1; 3296 const t = e.targetTouches[0].pageX, 3297 s = e.targetTouches[0].pageY, 3298 a = e.targetTouches[1].pageX, 3299 i = e.targetTouches[1].pageY; 3300 return Math.sqrt((a - t) ** 2 + (i - s) ** 2) 3301 } 3302 3303 function b(e) { 3304 const s = t.support, 3305 a = t.params.zoom; 3306 if (o = !1, c = !1, !s.gestures) { 3307 if ("touchstart" !== e.type || "touchstart" === e.type && e.targetTouches.length < 2) return; 3308 o = !0, m.scaleStart = w(e) 3309 } 3310 m.$slideEl && m.$slideEl.length || (m.$slideEl = d(e.target).closest(`.${t.params.slideClass}`), 0 === m.$slideEl.length && (m.$slideEl = t.slides.eq(t.activeIndex)), m.$imageEl = m.$slideEl.find(`.${a.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0), m.$imageWrapEl = m.$imageEl.parent(`.${a.containerClass}`), m.maxRatio = m.$imageWrapEl.attr("data-swiper-zoom") || a.maxRatio, 0 !== m.$imageWrapEl.length) ? (m.$imageEl && m.$imageEl.transition(0), u = !0) : m.$imageEl = void 0 3311 } 3312 3313 function x(e) { 3314 const s = t.support, 3315 a = t.params.zoom, 3316 i = t.zoom; 3317 if (!s.gestures) { 3318 if ("touchmove" !== e.type || "touchmove" === e.type && e.targetTouches.length < 2) return; 3319 c = !0, m.scaleMove = w(e) 3320 } 3321 m.$imageEl && 0 !== m.$imageEl.length ? (s.gestures ? i.scale = e.scale * p : i.scale = m.scaleMove / m.scaleStart * p, i.scale > m.maxRatio && (i.scale = m.maxRatio - 1 + (i.scale - m.maxRatio + 1) ** .5), i.scale < a.minRatio && (i.scale = a.minRatio + 1 - (a.minRatio - i.scale + 1) ** .5), m.$imageEl.transform(`translate3d(0,
33210,0) scale(${i.scale})`)) : "gesturechange" === e.type && b(e) 3322 } 3323 3324 function y(e) { 3325 const s = t.device, 3326 a = t.support, 3327 i = t.params.zoom, 3328 r = t.zoom; 3329 if (!a.gestures) { 3330 if (!o || !c) return; 3331 if ("touchend" !== e.type || "touchend" === e.type && e.changedTouches.length < 2 && !s.android) return; 3332 o = !1, c = !1 3333 } 3334 m.$imageEl && 0 !== m.$imageEl.length && (r.scale = Math.max(Math.min(r.scale, m.maxRatio), i.minRatio), m.$imageEl.transition(t.params.speed).transform(`translate3d(0,0,0) scale(${r.scale})`), p = r.scale, u = !1, 1 === r.scale && (m.$slideEl = void 0)) 3335 } 3336 3337 function E(e) { 3338 const s = t.zoom; 3339 if (!m.$imageEl || 0 === m.$imageEl.length) return; 3340 if (t.allowClick = !1, !f.isTouched || !m.$slideEl) return; 3341 f.isMoved || (f.width = m.$imageEl[0].offsetWidth, f.height = m.$imageEl[0].offsetHeight, f.startX = h(m.$imageWrapEl[0], "x") || 0, f.startY = h(m.$imageWrapEl[0], "y") || 0, m.slideWidth = m.$slideEl[0].offsetWidth, m.slideHeight = m.$slideEl[0].offsetHeight, m.$imageWrapEl.transition(0)); 3342 const a = f.width * s.scale, 3343 i = f.height * s.scale; 3344 if (!(a < m.slideWidth && i < m.slideHeight)) { 3345 if (f.minX = Math.min(m.slideWidth / 2 - a / 2, 0), f.maxX = -f.minX, f.minY = Math.min(m.slideHeight / 2 - i / 2, 0), f.maxY = -f.minY, f.touchesCurrent.x = "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX, f.touchesCurrent.y = "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY, !f.isMoved && !u) { 3346 if (t.isHorizontal() && (Math.floor(f.minX) === Math.floor(f.startX) && f.touchesCurrent.x < f.touchesStart.x || Math.floor(f.maxX) === Math.floor(f.startX) && f.touchesCurrent.x > f.touchesStart.x)) return void(f.isTouched = !1); 3347 if (!t.isHorizontal() && (Math.floor(f.minY) === Math.floor(f.startY) && f.touchesCurrent.y < f.touchesStart.y || Math.floor(f.maxY) === Math.floor(f.startY) && f.touchesCurrent.y > f.touchesStart.y)) return void(f.isTouched = !1) 3348 } 3349 e.cancelable && e.preventDefault(), e.stopPropagation(), f.isMoved = !0, f.currentX = f.touchesCurrent.x - f.touchesStart.x + f.startX, f.currentY = f.touchesCurrent.y - f.touchesStart.y + f.startY, f.currentX < f.minX && (f.currentX = f.minX + 1 - (f.minX - f.currentX + 1) ** .8), f.currentX > f.maxX && (f.currentX = f.maxX - 1 + (f.currentX - f.maxX + 1) ** .8), f.currentY < f.minY && (f.currentY = f.minY + 1 - (f.minY - f.currentY + 1) ** .8), f.currentY > f.maxY && (f.currentY = f.maxY - 1 + (f.currentY - f.maxY + 1) ** .8), g.prevPositionX || (g.prevPositionX = f.touchesCurrent.x), g.prevPositionY || (g.prevPositionY = f.touchesCurrent.y), g.prevTime || (g.prevTime = Date.now()), g.x = (f.touchesCurrent.x - g.prevPositionX) / (Date.now() - g.prevTime) / 2, g.y = (f.touchesCurrent.y - g.prevPositionY) / (Date.now() - g.prevTime) / 2, Math.abs(f.touchesCurrent.x - g.prevPositionX) < 2 && (g.x = 0), Math.abs(f.touchesCurrent.y - g.prevPositionY) < 2 && (g.y = 0), g.prevPositionX = f.touchesCurrent.x, g.prevPositionY = f.touchesCurrent.y, g.prevTime = Date.now(), m.$imageWrapEl.transform(`translate3d(${f.currentX}px, ${f.currentY}px,0)`) 3350 } 3351 } 3352 3353 function T() { 3354 const e = t.zoom; 3355 m.$slideEl && t.previousIndex !== t.activeIndex && (m.$imageEl && m.$imageEl.transform("translate3d(0,0,0) scale(1)"), m.$imageWrapEl && m.$imageWrapEl.transform("translate3d(0,0,0)"), e.scale = 1, p = 1, m.$slideEl = void 0, m.$imageEl = void 0, m.$imageWrapEl = void 0) 3356 } 3357 3358 function C(e) { 3359 const s = t.zoom, 3360 a = t.params.zoom; 3361 if (m.$slideEl || (e && e.target && (m.$slideEl = d(e.target).closest(`.${t.params.slideClass}`)), m.$slideEl || (t.params.virtual && t.params.virtual.enabled && t.virtual ? m.$slideEl = t.$wrapperEl.children(`.${t.params.slideActiveClass}`) : m.$slideEl = t.slides.eq(t.activeIndex)), m.$imageEl = m.$slideEl.find(`.${a.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0), m.$imageWrapEl = m.$imageEl.parent(`.${a.containerClass}`)), !m.$imageEl || 0 === m.$imageEl.length || !m.$imageWrapEl || 0 === m.$imageWrapEl.length) return; 3362 let i, r, l, o, c, u, h, g, v, w, b, x, y, E, T, C, $, S; 3363 t.params.cssMode && (t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.touchAction = "none"), m.$slideEl.addClass(`${a.zoomedSlideClass}`), void 0 === f.touchesStart.x && e ? (i = "touchend" === e.type ? e.changedTouches[0].pageX : e.pageX, r = "touchend" === e.type ? e.changedTouches[0].pageY : e.pageY) : (i = f.touchesStart.x, r = f.touchesStart.y), s.scale = m.$imageWrapEl.attr("data-swiper-zoom") || a.maxRatio, p = m.$imageWrapEl.attr("data-swiper-zoom") || a.maxRatio, e ? ($ = m.$slideEl[0].offsetWidth, S = m.$slideEl[0].offsetHeight, l = m.$slideEl.offset().left + n.scrollX, o = m.$slideEl.offset().top + n.scrollY, c = l + $ / 2 - i, u = o + S / 2 - r, v = m.$imageEl[0].offsetWidth, w = m.$imageEl[0].offsetHeight, b = v * s.scale, x = w * s.scale, y = Math.min($ / 2 - b / 2, 0), E = Math.min(S / 2 - x / 2, 0), T = -y, C = -E, h = c * s.scale, g = u * s.scale, h < y && (h = y), h > T && (h = T), g < E && (g = E), g > C && (g = C)) : (h = 0, g = 0), m.$imageWrapEl.transition(300).transform(`translate3d(${h}px, ${g}
3363px,0)`), m.$imageEl.transition(300).transform(`translate3d(0,0,0) scale(${s.scale})`) 3364 } 3365 3366 function $() { 3367 const e = t.zoom, 3368 s = t.params.zoom; 3369 m.$slideEl || (t.params.virtual && t.params.virtual.enabled && t.virtual ? m.$slideEl = t.$wrapperEl.children(`.${t.params.slideActiveClass}`) : m.$slideEl = t.slides.eq(t.activeIndex), m.$imageEl = m.$slideEl.find(`.${s.containerClass}`).eq(0).find("picture, img, svg, canvas, .swiper-zoom-target").eq(0), m.$imageWrapEl = m.$imageEl.parent(`.${s.containerClass}`)), m.$imageEl && 0 !== m.$imageEl.length && m.$imageWrapEl && 0 !== m.$imageWrapEl.length && (t.params.cssMode && (t.wrapperEl.style.overflow = "", t.wrapperEl.style.touchAction = ""), e.scale = 1, p = 1, m.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"), m.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"), m.$slideEl.removeClass(`${s.zoomedSlideClass}`), m.$slideEl = void 0) 3370 } 3371 3372 function S(e) { 3373 const s = t.zoom; 3374 s.scale && 1 !== s.scale ? $() : C(e) 3375 } 3376 3377 function M() { 3378 const e = t.support; 3379 return { 3380 passiveListener: !("touchstart" !== t.touchEvents.start || !e.passiveListener || !t.params.passiveListeners) && { 3381 passive: !0, 3382 capture: !1 3383 }, 3384 activeListenerWithCapture: !e.passiveListener || { 3385 passive: !1, 3386 capture: !0 3387 } 3388 } 3389 } 3390 3391 function P() { 3392 return `.${t.params.slideClass}` 3393 } 3394 3395 function k(e) { 3396 const { 3397 passiveListener: s 3398 } = M(), a = P(); 3399 t.$wrapperEl[e]("gesturestart", a, b, s), t.$wrapperEl[e]("gesturechange", a, x, s), t.$wrapperEl[e]("gestureend", a, y, s) 3400 } 3401 3402 function z() { 3403 l || (l = !0, k("on")) 3404 } 3405 3406 function O() { 3407 l && (l = !1, k("off")) 3408 } 3409 3410 function I() { 3411 const e = t.zoom; 3412 if (e.enabled) return; 3413 e.enabled = !0; 3414 const s = t.support, 3415 { 3416 passiveListener: a, 3417 activeListenerWithCapture: i 3418 } = M(), 3419 r = P(); 3420 s.gestures ? (t.$wrapperEl.on(t.touchEvents.start, z, a), t.$wrapperEl.on(t.touchEvents.end, O, a)) : "touchstart" === t.touchEvents.start && (t.$wrapperEl.on(t.touchEvents.start, r, b, a), t.$wrapperEl.on(t.touchEvents.move, r, x, i), t.$wrapperEl.on(t.touchEvents.end, r, y, a), t.touchEvents.cancel && t.$wrapperEl.on(t.touchEvents.cancel, r, y, a)), t.$wrapperEl.on(t.touchEvents.move, `.${t.params.zoom.containerClass}`, E, i) 3421 } 3422 3423 function L() { 3424 const e = t.zoom; 3425 if (!e.enabled) return; 3426 const s = t.support; 3427 e.enabled = !1; 3428 const { 3429 passiveListener: a, 3430 activeListenerWithCapture: i 3431 } = M(), r = P(); 3432 s.gestures ? (t.$wrapperEl.off(t.touchEvents.start, z, a), t.$wrapperEl.off(t.touchEvents.end, O, a)) : "touchstart" === t.touchEvents.start && (t.$wrapperEl.off(t.touchEvents.start, r, b, a), t.$wrapperEl.off(t.touchEvents.move, r, x, i), t.$wrapperEl.off(t.touchEvents.end, r, y, a), t.touchEvents.cancel && t.$wrapperEl.off(t.touchEvents.cancel, r, y, a)), t.$wrapperEl.off(t.touchEvents.move, `.${t.params.zoom.containerClass}`, E, i) 3433 } 3434 Object.defineProperty(t.zoom, "scale", { 3435 get: () => v, 3436 set(e) { 3437 if (v !== e) { 3438 const t = m.$imageEl ? m.$imageEl[0] : void 0, 3439 s = m.$slideEl ? m.$slideEl[0] : void 0; 3440 i("zoomChange", e, t, s) 3441 } 3442 v = e 3443 } 3444 }), a("init", (() => { 3445 t.params.zoom.enabled && I() 3446 })), a("destroy", (() => { 3447 L() 3448 })), a("touchStart", ((e, s) => { 3449 t.zoom.enabled && function(e) { 3450 const s = t.device; 3451 m.$imageEl && 0 !== m.$imageEl.length && (f.isTouched || (s.android && e.cancelable && e.preventDefault(), f.isTouched = !0, f.touchesStart.x = "touchstart" === e.type ? e.targetTouches[0].pageX : e.pageX, f.touchesStart.y = "touchstart" === e.type ? e.targetTouches[0].pageY : e.pageY)) 3452 }(s) 3453 })), a("touchEnd", ((e, s) => { 3454 t.zoom.enabled && function() { 3455 const e = t.zoom; 3456 if (!m.$imageEl || 0 === m.$imageEl.length) return; 3457 if (!f.isTouched || !f.isMoved) return f.isTouched = !1, void(f.
vendor: 20,091 bytes, lines 3457-3890
3457isMoved = !1); 3458 f.isTouched = !1, f.isMoved = !1; 3459 let s = 300, 3460 a = 300; 3461 const i = g.x * s, 3462 r = f.currentX + i, 3463 n = g.y * a, 3464 l = f.currentY + n; 3465 0 !== g.x && (s = Math.abs((r - f.currentX) / g.x)), 0 !== g.y && (a = Math.abs((l - f.currentY) / g.y)); 3466 const o = Math.max(s, a); 3467 f.currentX = r, f.currentY = l; 3468 const d = f.width * e.scale, 3469 c = f.height * e.scale; 3470 f.minX = Math.min(m.slideWidth / 2 - d / 2, 0), f.maxX = -f.minX, f.minY = Math.min(m.slideHeight / 2 - c / 2, 0), f.maxY = -f.minY, f.currentX = Math.max(Math.min(f.currentX, f.maxX), f.minX), f.currentY = Math.max(Math.min(f.currentY, f.maxY), f.minY), m.$imageWrapEl.transition(o).transform(`translate3d(${f.currentX}px, ${f.currentY}px,0)`) 3471 }() 3472 })), a("doubleTap", ((e, s) => { 3473 !t.animating && t.params.zoom.enabled && t.zoom.enabled && t.params.zoom.toggle && S(s) 3474 })), a("transitionEnd", (() => { 3475 t.zoom.enabled && t.params.zoom.enabled && T() 3476 })), a("slideChange", (() => { 3477 t.zoom.enabled && t.params.zoom.enabled && t.params.cssMode && T() 3478 })), Object.assign(t.zoom, { 3479 enable: I, 3480 disable: L, 3481 in: C, 3482 out: $, 3483 toggle: S 3484 }) 3485 }, function(e) { 3486 let { 3487 swiper: t, 3488 extendParams: s, 3489 on: a, 3490 emit: i 3491 } = e; 3492 s({ 3493 lazy: { 3494 checkInView: !1, 3495 enabled: !1, 3496 loadPrevNext: !1, 3497 loadPrevNextAmount: 1, 3498 loadOnTransitionStart: !1, 3499 scrollingElement: "", 3500 elementClass: "swiper-lazy", 3501 loadingClass: "swiper-lazy-loading", 3502 loadedClass: "swiper-lazy-loaded", 3503 preloaderClass: "swiper-lazy-preloader" 3504 } 3505 }), t.lazy = {}; 3506 let n = !1, 3507 l = !1; 3508 3509 function o(e, s) { 3510 void 0 === s && (s = !0); 3511 const a = t.params.lazy; 3512 if (void 0 === e) return; 3513 if (0 === t.slides.length) return; 3514 const r = t.virtual && t.params.virtual.enabled ? t.$wrapperEl.children(`.${t.params.slideClass}[data-swiper-slide-index="${e}"]`) : t.slides.eq(e), 3515 n = r.find(`.${a.elementClass}:not(.${a.loadedClass}):not(.${a.loadingClass})`); 3516 !r.hasClass(a.elementClass) || r.hasClass(a.loadedClass) || r.hasClass(a.loadingClass) || n.push(r[0]), 0 !== n.length && n.each((e => { 3517 const n = d(e); 3518 n.addClass(a.loadingClass); 3519 const l = n.attr("data-background"), 3520 c = n.attr("data-src"), 3521 p = n.attr("data-srcset"), 3522 u = n.attr("data-sizes"), 3523 h = n.parent("picture"); 3524 t.loadImage(n[0], c || l, p, u, !1, (() => { 3525 if (null != t && t && (!t || t.params) && !t.destroyed) { 3526 if (l ? (n.css("background-image", `url("${l}")`), n.removeAttr("data-background")) : (p && (n.attr("srcset", p), n.removeAttr("data-srcset")), u && (n.attr("sizes", u), n.removeAttr("data-sizes")), h.length && h.children("source").each((e => { 3527 const t = d(e); 3528 t.attr("data-srcset") && (t.attr("srcset", t.attr("data-srcset")), t.removeAttr("data-srcset")) 3529 })), c && (n.attr("src", c), n.removeAttr("data-src"))), n.addClass(a.loadedClass).removeClass(a.loadingClass), r.find(`.${a.preloaderClass}`).remove(), t.params.loop && s) { 3530 const e = r.attr("data-swiper-slide-index"); 3531 if (r.hasClass(t.params.slideDuplicateClass)) { 3532 o(t.$wrapperEl.children(`[data-swiper-slide-index="${e}"]:not(.${t.params.slideDuplicateClass})`).index(), !1) 3533 } else { 3534 o(t.$wrapperEl.children(`.${t.params.slideDuplicateClass}[data-swiper-slide-index="${e}"]`).index(), !1) 3535 } 3536 } 3537 i("lazyImageReady", r[0], n[0]), t.params.autoHeight && t.updateAutoHeight() 3538 } 3539 })), i("lazyImageLoad", r[0], n[0]) 3540 })) 3541 } 3542 3543 function c() { 3544 const { 3545 $wrapperEl: e, 3546 params: s, 3547 slides: a, 3548 activeIndex: i 3549 } = t, r = t.virtual && s.virtual.enabled, n = s.lazy; 3550 let c = s.slidesPerView; 3551 3552 function p(t) { 3553 if (r) { 3554 if (e.children(`.${s.slideClass}[data-swiper-slide-index="${t}"]`).length) return !0 3555 } else if (a[t]) return !0; 3556 return !1 3557 } 3558 3559 function u(e) { 3560 return r ? d(e).attr("data-swiper-slide-index") : d(e).index() 3561 } 3562 if ("auto" === c && (c = 0), l || (l = !0), t.params.watchSlidesProgress) e.children(`.${s.slideVisibleClass}`).each((e => { 3563 o(r ? d(e).attr("data-swiper-slide-index") : d(e).index()) 3564 })); 3565 else if (c > 1) 3566 for (let e = i; e < i + c; e += 1) p(e) && o(e); 3567 else o(i); 3568 if (n.loadPrevNext) 3569 if (c > 1 || n.loadPrevNextAmount && n.loadPrevNextAmount > 1) { 3570 const e = n.loadPrevNextAmount, 3571 t = c, 3572 s = Math.min(i + t + Math.max(e, t), a.length), 3573 r = Math.max(i - Math.max(t, e), 0); 3574 for (let e = i + c; e < s; e += 1) p(e) && o(e); 3575 for (let e = r; e < i; e += 1) p(e) && o(e) 3576 } else { 3577 const t = e.children(`.${s.slideNextClass}`); 3578 t.length > 0 && o(u(t)); 3579 const a = e.children(`.${s.slidePrevClass}`); 3580 a.length > 0 && o(u(a)) 3581 } 3582 } 3583 3584 function p() { 3585 const e = r(); 3586 if (!t || t.destroyed) return; 3587 const s = t.params.lazy.scrollingElement ? d(t.params.lazy.scrollingElement) : d(e), 3588 a = s[0] === e, 3589 i = a ? e.innerWidth : s[0].offsetWidth, 3590 l = a ? e.innerHeight : s[0].offsetHeight, 3591 o = t.$el.offset(), 3592 { 3593 rtlTranslate: u 3594 } = t; 3595 let h = !1; 3596 u && (o.left -= t.$el[0].scrollLeft); 3597 const m = [ 3598 [o.left, o.top], 3599 [o.left + t.width, o.top], 3600 [o.left, o.top + t.height], 3601 [o.left + t.width, o.top + t.height] 3602 ]; 3603 for (let e = 0; e < m.length; e += 1) { 3604 const t = m[e]; 3605 if (t[0] >= 0 && t[0] <= i && t[1] >= 0 && t[1] <= l) { 3606 if (0 === t[0] && 0 === t[1]) continue; 3607 h = !0 3608 } 3609 } 3610 const f = !("touchstart" !== t.touchEvents.start || !t.support.passiveListener || !t.params.passiveListeners) && { 3611 passive: !0, 3612 capture: !1 3613 }; 3614 h ? (c(), s.off("scroll", p, f)) : n || (n = !0, s.on("scroll", p, f)) 3615 } 3616 a("beforeInit", (() => { 3617 t.params.lazy.enabled && t.params.preloadImages && (t.params.preloadImages = !1) 3618 })), a("init", (() => { 3619 t.params.lazy.enabled && (t.params.lazy.checkInView ? p() : c()) 3620 })), a("scroll", (() => { 3621 t.params.freeMode && t.params.freeMode.enabled && !t.params.freeMode.sticky && c() 3622 })), a("scrollbarDragMove resize _freeModeNoMomentumRelease", (() => { 3623 t.params.lazy.enabled && (t.params.lazy.checkInView ? p() : c()) 3624 })), a("transitionStart", (() => { 3625 t.params.lazy.enabled && (t.params.lazy.loadOnTransitionStart || !t.params.lazy.loadOnTransitionStart && !l) && (t.params.lazy.checkInView ? p() : c()) 3626 })), a("transitionEnd", (() => { 3627 t.params.lazy.enabled && !t.params.lazy.loadOnTransitionStart && (t.params.lazy.checkInView ? p() : c()) 3628 })), a("slideChange", (() => { 3629 const { 3630 lazy: e, 3631 cssMode: s, 3632 watchSlidesProgress: a, 3633 touchReleaseOnEdges: i, 3634 resistanceRatio: r 3635 } = t.params; 3636 e.enabled && (s || a && (i || 0 === r)) && c() 3637 })), Object.assign(t.lazy, { 3638 load: c, 3639 loadInSlide: o 3640 }) 3641 }, function(e) { 3642 let { 3643 swiper: t, 3644 extendParams: s, 3645 on: a 3646 } = e; 3647 3648 function i(e, t) { 3649 const s = function() { 3650 let e, t, s; 3651 return (a, i) => { 3652 for (t = -1, e = a.length; e - t > 1;) s = e + t >> 1, a[s] <= i ? t = s : e = s; 3653 return e 3654 } 3655 }(); 3656 let a, i; 3657 return this.x = e, this.y = t, this.lastIndex = e.length - 1, this.interpolate = function(e) { 3658 return e ? (i = s(this.x, e), a = i - 1, (e - this.x[a]) * (this.y[i] - this.y[a]) / (this.x[i] - this.x[a]) + this.y[a]) : 0 3659 }, this 3660 } 3661 3662 function r() { 3663 t.controller.control && t.controller.spline && (t.controller.spline = void 0, delete t.controller.spline) 3664 } 3665 s({ 3666 controller: { 3667 control: void 0, 3668 inverse: !1, 3669 by: "slide" 3670 } 3671 }), t.controller = { 3672 control: void 0 3673 }, a("beforeInit", (() => { 3674 t.controller.control = t.params.controller.control 3675 })), a("update", (() => { 3676 r() 3677 })), a("resize", (() => { 3678 r() 3679 })), a("observerUpdate", (() => { 3680 r() 3681 })), a("setTranslate", ((e, s, a) => { 3682 t.controller.control && t.controller.setTranslate(s, a) 3683 })), a("setTransition", ((e, s, a) => { 3684 t.controller.control && t.controller.setTransition(s, a) 3685 })), Object.assign(t.controller, { 3686 setTranslate: function(e, s) { 3687 const a = t.controller.control; 3688 let r, n; 3689 const l = t.constructor; 3690 3691 function o(e) { 3692 const s = t.rtlTranslate ? -t.translate : t.translate; 3693 "slide" === t.params.controller.by && (! function(e) { 3694 t.controller.spline || (t.controller.spline = t.params.loop ? new i(t.slidesGrid, e.slidesGrid) : new i(t.snapGrid, e.snapGrid)) 3695 }(e), n = -t.controller.spline.interpolate(-s)), n && "container" !== t.params.controller.by || (r = (e.maxTranslate() - e.minTranslate()) / (t.maxTranslate() - t.minTranslate()), n = (s - t.minTranslate()) * r + e.minTranslate()), t.params.controller.inverse && (n = e.maxTranslate() - n), e.updateProgress(n), e.setTranslate(n, t), e.updateActiveIndex(), e.updateSlidesClasses() 3696 } 3697 if (Array.isArray(a)) 3698 for (let e = 0; e < a.length; e += 1) a[e] !== s && a[e] instanceof l && o(a[e]); 3699 else a instanceof l && s !== a && o(a) 3700 }, 3701 setTransition: function(e, s) { 3702 const a = t.constructor, 3703 i = t.controller.control; 3704 let r; 3705 3706 function n(s) { 3707 s.setTransition(e, t), 0 !== e && (s.transitionStart(), s.params.autoHeight && p((() => { 3708 s.updateAutoHeight() 3709 })), s.$wrapperEl.transitionEnd((() => { 3710 i && (s.params.loop && "slide" === t.params.controller.by && s.loopFix(), s.transitionEnd()) 3711 }))) 3712 } 3713 if (Array.isArray(i)) 3714 for (r = 0; r < i.length; r += 1) i[r] !== s && i[r] instanceof a && n(i[r]); 3715 else i instanceof a && s !== i && n(i) 3716 } 3717 }) 3718 }, function(e) { 3719 let { 3720 swiper: t, 3721 extendParams: s, 3722 on: a 3723 } = e; 3724 s({ 3725 a11y: { 3726 enabled: !0, 3727 notificationClass: "swiper-notification", 3728 prevSlideMessage: "Previous slide", 3729 nextSlideMessage: "Next slide", 3730 firstSlideMessage: "This is the first slide", 3731 lastSlideMessage: "This is the last slide", 3732 paginationBulletMessage: "Go to slide {{index}}", 3733 slideLabelMessage: "{{index}} / {{slidesLength}}", 3734 containerMessage: null, 3735 containerRoleDescriptionMessage: null, 3736 itemRoleDescriptionMessage: null, 3737 slideRole: "group" 3738 } 3739 }); 3740 let i = null; 3741 3742 function r(e) { 3743 const t = i; 3744 0 !== t.length && (t.html(""), t.html(e)) 3745 } 3746 3747 function n(e) { 3748 e.attr("tabIndex", "0") 3749 } 3750 3751 function l(e) { 3752 e.attr("tabIndex", "-1") 3753 } 3754 3755 function o(e, t) { 3756 e.attr("role", t) 3757 } 3758 3759 function c(e, t) { 3760 e.attr("aria-roledescription", t) 3761 } 3762 3763 function p(e, t) { 3764 e.attr("aria-label", t) 3765 } 3766 3767 function u(e) { 3768 e.attr("aria-disabled", !0) 3769 } 3770 3771 function h(e) { 3772 e.attr("aria-disabled", !1) 3773 } 3774 3775 function m(e) { 3776 if (13 !== e.keyCode && 32 !== e.keyCode) return; 3777 const s = t.params.a11y, 3778 a = d(e.target); 3779 t.navigation && t.navigation.$nextEl && a.is(t.navigation.$nextEl) && (t.isEnd && !t.params.loop || t.slideNext(), t.isEnd ? r(s.lastSlideMessage) : r(s.nextSlideMessage)), t.navigation && t.navigation.$prevEl && a.is(t.navigation.$prevEl) && (t.isBeginning && !t.params.loop || t.slidePrev(), t.isBeginning ? r(s.firstSlideMessage) : r(s.prevSlideMessage)), t.pagination && a.is(U(t.params.pagination.bulletClass)) && a[0].click() 3780 } 3781 3782 function f() { 3783 return t.pagination && t.pagination.bullets && t.pagination.bullets.length 3784 } 3785 3786 function g() { 3787 return f() && t.params.pagination.clickable 3788 } 3789 const v = (e, t, s) => { 3790 n(e), "BUTTON" !== e[0].tagName && (o(e, "button"), e.on("keydown", m)), p(e, s), 3791 function(e, t) { 3792 e.attr("aria-controls", t) 3793 }(e, t) 3794 }, 3795 w = e => { 3796 const s = e.target.closest(`.${t.params.slideClass}`); 3797 if (!s || !t.slides.includes(s)) return; 3798 const a = t.slides.indexOf(s) === t.activeIndex, 3799 i = t.params.watchSlidesProgress && t.visibleSlides && t.visibleSlides.includes(s); 3800 a || i || t.slideTo(t.slides.indexOf(s), 0) 3801 }; 3802 3803 function b() { 3804 const e = t.params.a11y; 3805 t.$el.append(i); 3806 const s = t.$el; 3807 e.containerRoleDescriptionMessage && c(s, e.containerRoleDescriptionMessage), e.containerMessage && p(s, e.containerMessage); 3808 const a = t.$wrapperEl, 3809 r = a.attr("id") || `swiper-wrapper-${n=16,void 0===n&&(n=16),"x".repeat(n).replace(/x/g,(()=>Math.round(16*Math.random()).toString(16)))}`; 3810 var n; 3811 const l = t.params.autoplay && t.params.autoplay.enabled ? "off" : "polite"; 3812 var u; 3813 u = r, a.attr("id", u), 3814 function(e, t) { 3815 e.attr("aria-live", t) 3816 }(a, l), e.itemRoleDescriptionMessage && c(d(t.slides), e.itemRoleDescriptionMessage), o(d(t.slides), e.slideRole); 3817 const h = t.params.loop ? t.slides.filter((e => !e.classList.contains(t.params.slideDuplicateClass))).length : t.slides.length; 3818 let f, b; 3819 t.slides.each(((s, a) => { 3820 const i = d(s), 3821 r = t.params.loop ? parseInt(i.attr("data-swiper-slide-index"), 10) : a; 3822 p(i, e.slideLabelMessage.replace(/\{\{index\}\}/, r + 1).replace(/\{\{slidesLength\}\}/, h)) 3823 })), t.navigation && t.navigation.$nextEl && (f = t.navigation.$nextEl), t.navigation && t.navigation.$prevEl && (b = t.navigation.$prevEl), f && f.length && v(f, r, e.nextSlideMessage), b && b.length && v(b, r, e.prevSlideMessage), g() && t.pagination.$el.on("keydown", U(t.params.pagination.bulletClass), m), t.$el.on("focus", w, !0) 3824 } 3825 a("beforeInit", (() => { 3826 i = d(`<span class="${t.params.a11y.notificationClass}" aria-live="assertive" aria-atomic="true"></span>`) 3827 })), a("afterInit", (() => { 3828 t.params.a11y.enabled && b() 3829 })), a("fromEdge toEdge afterInit lock unlock", (() => { 3830 t.params.a11y.enabled && function() { 3831 if (t.params.loop || t.params.rewind || !t.navigation) return; 3832 const { 3833 $nextEl: e, 3834 $prevEl: s 3835 } = t.navigation; 3836 s && s.length > 0 && (t.isBeginning ? (u(s), l(s)) : (h(s), n(s))), e && e.length > 0 && (t.isEnd ? (u(e), l(e)) : (h(e), n(e))) 3837 }() 3838 })), a("paginationUpdate", (() => { 3839 t.params.a11y.enabled && function() { 3840 const e = t.params.a11y; 3841 f() && t.pagination.bullets.each((s => { 3842 const a = d(s); 3843 t.params.pagination.clickable && (n(a), t.params.pagination.renderBullet || (o(a, "button"), p(a, e.paginationBulletMessage.replace(/\{\{index\}\}/, a.index() + 1)))), a.is(`.${t.params.pagination.bulletActiveClass}`) ? a.attr("aria-current", "true") : a.removeAttr("aria-current") 3844 })) 3845 }() 3846 })), a("destroy", (() => { 3847 t.params.a11y.enabled && function() { 3848 let e, s; 3849 i && i.length > 0 && i.remove(), t.navigation && t.navigation.$nextEl && (e = t.navigation.$nextEl), t.navigation && t.navigation.$prevEl && (s = t.navigation.$prevEl), e && e.off("keydown", m), s && s.off("keydown", m), g() && t.pagination.$el.off("keydown", U(t.params.pagination.bulletClass), m), t.$el.off("focus", w, !0) 3850 }() 3851 })) 3852 }, function(e) { 3853 let { 3854 swiper: t, 3855 extendParams: s, 3856 on: a 3857 } = e; 3858 s({ 3859 history: { 3860 enabled: !1, 3861 root: "", 3862 replaceState: !1, 3863 key: "slides" 3864 } 3865 }); 3866 let i = !1, 3867 n = {}; 3868 const l = e => e.toString().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), 3869 o = e => { 3870 const t = r(); 3871 let s; 3872 s = e ? new URL(e) : t.location; 3873 const a = s.pathname.slice(1).split("/").filter((e => "" !== e)), 3874 i = a.length; 3875 return { 3876 key: a[i - 2], 3877 value: a[i - 1] 3878 } 3879 }, 3880 d = (e, s) => { 3881 const a = r(); 3882 if (!i || !t.params.history.enabled) return; 3883 let n; 3884 n = t.params.url ? new URL(t.params.url) : a.location; 3885 const o = t.slides.eq(s); 3886 let d = l(o.attr("data-history")); 3887 if (t.params.history.root.length > 0) { 3888 let s = t.params.history.root; 3889 "/" === s[s.length - 1] && (s = s.slice(0, s.length - 1)), d = `${s}/${e}/${d}` 3890 } else n.pathname.includes(e) || (d = `${e}/${d}
3890`); 3891 const c = a.history.state; 3892 c && c.value === d || (t.params.history.replaceState ? a.history.replaceState({ 3893 value: d 3894 }, null, d) : a.history.pushState({ 3895 value: d 3896 }, null, d)) 3897 }, 3898 c = (e, s, a) => { 3899 if (s) 3900 for (let i = 0, r = t.slides.length; i < r; i += 1) { 3901 const r = t.slides.eq(i); 3902 if (l(r.attr("data-history")) === s && !r.hasClass(t.params.slideDuplicateClass)) { 3903 const s = r.index(); 3904 t.slideTo(s, e, a) 3905 } 3906 } else t.slideTo(0, e, a) 3907 }, 3908 p = () => { 3909 n = o(t.params.url), c(t.params.speed, t.paths.value, !1) 3910 }; 3911 a("init", (() => { 3912 t.params.history.enabled && (() => { 3913 const e = r(); 3914 if (t.params.history) { 3915 if (!e.history || !e.history.pushState) return t.params.history.enabled = !1, void(t.params.hashNavigation.enabled = !0); 3916 i = !0, n = o(t.params.url), (n.key || n.value) && (c(0, n.value, t.params.runCallbacksOnInit), t.params.history.replaceState || e.addEventListener("popstate", p)) 3917 } 3918 })() 3919 })), a("destroy", (() => { 3920 t.params.history.enabled && (() => { 3921 const e = r(); 3922 t.params.history.replaceState || e.removeEventListener("popstate", p) 3923 })() 3924 })), a("transitionEnd _freeModeNoMomentumRelease", (() => { 3925 i && d(t.params.history.key, t.activeIndex) 3926 })), a("slideChange", (() => { 3927 i && t.params.cssMode && d(t.params.history.key, t.activeIndex) 3928 })) 3929 }, function(e) { 3930 let { 3931 swiper: t, 3932 extendParams: s, 3933 emit: i, 3934 on: n 3935 } = e, l = !1; 3936 const o = a(), 3937 c = r(); 3938 s({ 3939 hashNavigation: { 3940 enabled: !1, 3941 replaceState: !1, 3942 watchState: !1 3943 } 3944 }); 3945 const p = () => { 3946 i("hashChange"); 3947 const e = o.location.hash.replace("#", ""); 3948 if (e !== t.slides.eq(t.activeIndex).attr("data-hash")) { 3949 const s = t.$wrapperEl.children(`.${t.params.slideClass}[data-hash="${e}"]`).index(); 3950 if (void 0 === s) return; 3951 t.slideTo(s) 3952 } 3953 }, 3954 u = () => { 3955 if (l && t.params.hashNavigation.enabled) 3956 if (t.params.hashNavigation.replaceState && c.history && c.history.replaceState) c.history.replaceState(null, null, `#${t.slides.eq(t.activeIndex).attr("data-hash")}` || ""), i("hashSet"); 3957 else { 3958 const e = t.slides.eq(t.activeIndex), 3959 s = e.attr("data-hash") || e.attr("data-history"); 3960 o.location.hash = s || "", i("hashSet") 3961 } 3962 }; 3963 n("init", (() => { 3964 t.params.hashNavigation.enabled && (() => { 3965 if (!t.params.hashNavigation.enabled || t.params.history && t.params.history.enabled) return; 3966 l = !0; 3967 const e = o.location.hash.replace("#", ""); 3968 if (e) { 3969 const s = 0; 3970 for (let a = 0, i = t.slides.length; a < i; a += 1) { 3971 const i = t.slides.eq(a); 3972 if ((i.attr("data-hash") || i.attr("data-history")) === e && !i.hasClass(t.params.slideDuplicateClass)) { 3973 const e = i.index(); 3974 t.slideTo(e, s, t.params.runCallbacksOnInit, !0) 3975 } 3976 } 3977 } 3978 t.params.hashNavigation.watchState && d(c).on("hashchange", p) 3979 })() 3980 })), n("destroy", (() => { 3981 t.params.hashNavigation.enabled && t.params.hashNavigation.watchState && d(c).off("hashchange", p) 3982 })), n("transitionEnd _freeModeNoMomentumRelease", (() => { 3983 l && u() 3984 })), n("slideChange", (() => { 3985 l && t.params.cssMode && u() 3986 })) 3987 }, function(e) { 3988 let t, { 3989 swiper: s, 3990 extendParams: i, 3991 on: r, 3992 emit: n 3993 } = e; 3994 3995 function l() { 3996 const e = s.slides.eq(s.activeIndex); 3997 let a = s.params.autoplay.delay; 3998 e.attr("data-swiper-autoplay") && (a = e.attr("data-swiper-autoplay") || s.params.autoplay.delay), clearTimeout(t), t = p((() => { 3999 let e; 4000 s.params.autoplay.reverseDirection ? s.params.loop ? (s.loopFix(), e = s.slidePrev(s.params.speed, !0, !0), n("autoplay")) : s.isBeginning ? s.params.autoplay.stopOnLastSlide ? d() : (e = s.slideTo(s.slides.length - 1, s.params.speed, !0, !0), n("autoplay")) : (e = s.slidePrev(s.params.speed, !0, !0), n("autoplay")) : s.params.loop ? (s.loopFix(), e = s.slideNext(s.params.speed, !0, !0), n("autoplay")) : s.isEnd ? s.params.autoplay.stopOnLastSlide ? d() : (e = s.slideTo(0, s.params.speed, !0, !0), n("autoplay")) : (e = s.slideNext(s.params.speed, !0, !0), n("autoplay")), (s.params.cssMode && s.autoplay.running || !1 === e) && l() 4001 }), a) 4002 } 4003 4004 function o() { 4005 return void 0 === t && (!s.autoplay.running && (s.autoplay.running = !0, n("autoplayStart"), l(), !0)) 4006 } 4007 4008 function d() { 4009 return !!s.autoplay.running && (void 0 !== t && (t && (clearTimeout(t), t = void 0), s.autoplay.running = !1, n("autoplayStop"), !0)) 4010 } 4011 4012 function c(e) { 4013 s.autoplay.running && (s.autoplay.paused || (t && clearTimeout(t), s.autoplay.paused = !0, 0 !== e && s.params.autoplay.waitForTransition ? ["transitionend", "webkitTransitionEnd"].forEach((e => { 4014 s.$wrapperEl[0].addEventListener(e, h) 4015 })) : (s.autoplay.paused = !1, l()))) 4016 } 4017 4018 function u() { 4019 const e = a(); 4020 "hidden" === e.visibilityState && s.autoplay.running && c(), "visible" === e.visibilityState && s.autoplay.paused && (l(), s.autoplay.paused = !1) 4021 } 4022 4023 function h(e) { 4024 s && !s.destroyed && s.$wrapperEl && e.target === s.$wrapperEl[0] && (["transitionend", "webkitTransitionEnd"].forEach((e => { 4025 s.$wrapperEl[0].removeEventListener(e, h) 4026 })), s.autoplay.paused = !1, s.autoplay.running ? l() : d()) 4027 } 4028 4029 function m() { 4030 s.params.autoplay.disableOnInteraction ? d() : (n("autoplayPause"), c()), ["transitionend", "webkitTransitionEnd"].forEach((e => { 4031 s.$wrapperEl[0].removeEventListener(e, h) 4032 })) 4033 } 4034 4035 function f() { 4036 s.params.autoplay.disableOnInteraction || (s.autoplay.paused = !1, n("autoplayResume"), l()) 4037 } 4038 s.autoplay = { 4039 running: !1, 4040 paused: !1 4041 }, i({ 4042 autoplay: { 4043 enabled: !1, 4044 delay: 3e3, 4045 waitForTransition: !0, 4046 disableOnInteraction: !0, 4047 stopOnLastSlide: !1, 4048 reverseDirection: !1, 4049 pauseOnMouseEnter: !1 4050 } 4051 }), r("init", (() => { 4052 if (s.params.autoplay.enabled) { 4053 o(); 4054 a().addEventListener("visibilitychange", u), s.params.autoplay.pauseOnMouseEnter && (s.$el.on("mouseenter", m), s.$el.on("mouseleave", f)) 4055 } 4056 })), r("beforeTransitionStart", ((e, t, a) => { 4057 s.autoplay.running && (a || !s.params.autoplay.disableOnInteraction ? s.autoplay.pause(t) : d()) 4058 })), r("sliderFirstMove", (() => { 4059 s.autoplay.running && (s.params.autoplay.disableOnInteraction ? d() : c()) 4060 })), r("touchEnd", (() => { 4061 s.params.cssMode && s.autoplay.paused && !s.params.autoplay.disableOnInteraction && l() 4062 })), r("destroy", (() => { 4063 s.$el.off("mouseenter", m), s.$el.off("mouseleave", f), s.autoplay.running && d(); 4064 a().removeEventListener("visibilitychange", u) 4065 })), Object.assign(s.autoplay, { 4066 pause: c, 4067 run: l, 4068 start: o, 4069 stop: d 4070 }) 4071 }, function(e) { 4072 let { 4073 swiper: t, 4074 extendParams: s, 4075 on: a 4076 } = e; 4077 s({ 4078 thumbs: { 4079 swiper: null, 4080 multipleActiveThumbs: !0, 4081 autoScrollOffset: 0, 4082 slideThumbActiveClass: "swiper-slide-thumb-active", 4083 thumbsContainerClass: "swiper-thumbs" 4084 } 4085 }); 4086 let i = !1, 4087 r = !1; 4088 4089 function n() { 4090 const e = t.thumbs.swiper; 4091 if (!e) return; 4092 const s = e.clickedIndex, 4093 a = e.clickedSlide;
vendor: 21,510 bytes, lines 4094-4521
4094 if (a && d(a).hasClass(t.params.thumbs.slideThumbActiveClass)) return; 4095 if (null == s) return; 4096 let i; 4097 if (i = e.params.loop ? parseInt(d(e.clickedSlide).attr("data-swiper-slide-index"), 10) : s, t.params.loop) { 4098 let e = t.activeIndex; 4099 t.slides.eq(e).hasClass(t.params.slideDuplicateClass) && (t.loopFix(), t._clientLeft = t.$wrapperEl[0].clientLeft, e = t.activeIndex); 4100 const s = t.slides.eq(e).prevAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(), 4101 a = t.slides.eq(e).nextAll(`[data-swiper-slide-index="${i}"]`).eq(0).index(); 4102 i = void 0 === s ? a : void 0 === a ? s : a - e < e - s ? a : s 4103 } 4104 t.slideTo(i) 4105 } 4106 4107 function l() { 4108 const { 4109 thumbs: e 4110 } = t.params; 4111 if (i) return !1; 4112 i = !0; 4113 const s = t.constructor; 4114 if (e.swiper instanceof s) t.thumbs.swiper = e.swiper, Object.assign(t.thumbs.swiper.originalParams, { 4115 watchSlidesProgress: !0, 4116 slideToClickedSlide: !1 4117 }), Object.assign(t.thumbs.swiper.params, { 4118 watchSlidesProgress: !0, 4119 slideToClickedSlide: !1 4120 }); 4121 else if (m(e.swiper)) { 4122 const a = Object.assign({}, e.swiper); 4123 Object.assign(a, { 4124 watchSlidesProgress: !0, 4125 slideToClickedSlide: !1 4126 }), t.thumbs.swiper = new s(a), r = !0 4127 } 4128 return t.thumbs.swiper.$el.addClass(t.params.thumbs.thumbsContainerClass), t.thumbs.swiper.on("tap", n), !0 4129 } 4130 4131 function o(e) { 4132 const s = t.thumbs.swiper; 4133 if (!s) return; 4134 const a = "auto" === s.params.slidesPerView ? s.slidesPerViewDynamic() : s.params.slidesPerView, 4135 i = t.params.thumbs.autoScrollOffset, 4136 r = i && !s.params.loop; 4137 if (t.realIndex !== s.realIndex || r) { 4138 let n, l, o = s.activeIndex; 4139 if (s.params.loop) { 4140 s.slides.eq(o).hasClass(s.params.slideDuplicateClass) && (s.loopFix(), s._clientLeft = s.$wrapperEl[0].clientLeft, o = s.activeIndex); 4141 const e = s.slides.eq(o).prevAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(), 4142 a = s.slides.eq(o).nextAll(`[data-swiper-slide-index="${t.realIndex}"]`).eq(0).index(); 4143 n = void 0 === e ? a : void 0 === a ? e : a - o == o - e ? s.params.slidesPerGroup > 1 ? a : o : a - o < o - e ? a : e, l = t.activeIndex > t.previousIndex ? "next" : "prev" 4144 } else n = t.realIndex, l = n > t.previousIndex ? "next" : "prev"; 4145 r && (n += "next" === l ? i : -1 * i), s.visibleSlidesIndexes && s.visibleSlidesIndexes.indexOf(n) < 0 && (s.params.centeredSlides ? n = n > o ? n - Math.floor(a / 2) + 1 : n + Math.floor(a / 2) - 1 : n > o && s.params.slidesPerGroup, s.slideTo(n, e ? 0 : void 0)) 4146 } 4147 let n = 1; 4148 const l = t.params.thumbs.slideThumbActiveClass; 4149 if (t.params.slidesPerView > 1 && !t.params.centeredSlides && (n = t.params.slidesPerView), t.params.thumbs.multipleActiveThumbs || (n = 1), n = Math.floor(n), s.slides.removeClass(l), s.params.loop || s.params.virtual && s.params.virtual.enabled) 4150 for (let e = 0; e < n; e += 1) s.$wrapperEl.children(`[data-swiper-slide-index="${t.realIndex+e}"]`).addClass(l); 4151 else 4152 for (let e = 0; e < n; e += 1) s.slides.eq(t.realIndex + e).addClass(l) 4153 } 4154 t.thumbs = { 4155 swiper: null 4156 }, a("beforeInit", (() => { 4157 const { 4158 thumbs: e 4159 } = t.params; 4160 e && e.swiper && (l(), o(!0)) 4161 })), a("slideChange update resize observerUpdate", (() => { 4162 t.thumbs.swiper && o() 4163 })), a("setTransition", ((e, s) => { 4164 const a = t.thumbs.swiper; 4165 a && a.setTransition(s) 4166 })), a("beforeDestroy", (() => { 4167 const e = t.thumbs.swiper; 4168 e && r && e && e.destroy() 4169 })), Object.assign(t.thumbs, { 4170 init: l, 4171 update: o 4172 }) 4173 }, function(e) { 4174 let { 4175 swiper: t, 4176 extendParams: s, 4177 emit: a, 4178 once: i 4179 } = e; 4180 s({ 4181 freeMode: { 4182 enabled: !1, 4183 momentum: !0, 4184 momentumRatio: 1, 4185 momentumBounce: !0, 4186 momentumBounceRatio: 1, 4187 momentumVelocityRatio: 1, 4188 sticky: !1, 4189 minimumVelocity: .02 4190 } 4191 }), Object.assign(t, { 4192 freeMode: { 4193 onTouchStart: function() { 4194 const e = t.getTranslate(); 4195 t.setTranslate(e), t.setTransition(0), t.touchEventsData.velocities.length = 0, t.freeMode.onTouchEnd({ 4196 currentPos: t.rtl ? t.translate : -t.translate 4197 }) 4198 }, 4199 onTouchMove: function() { 4200 const { 4201 touchEventsData: e, 4202 touches: s 4203 } = t; 4204 0 === e.velocities.length && e.velocities.push({ 4205 position: s[t.isHorizontal() ? "startX" : "startY"], 4206 time: e.touchStartTime 4207 }), e.velocities.push({ 4208 position: s[t.isHorizontal() ? "currentX" : "currentY"], 4209 time: u() 4210 }) 4211 }, 4212 onTouchEnd: function(e) { 4213 let { 4214 currentPos: s 4215 } = e; 4216 const { 4217 params: r, 4218 $wrapperEl: n, 4219 rtlTranslate: l, 4220 snapGrid: o, 4221 touchEventsData: d 4222 } = t, c = u() - d.touchStartTime; 4223 if (s < -t.minTranslate()) t.slideTo(t.activeIndex); 4224 else if (s > -t.maxTranslate()) t.slides.length < o.length ? t.slideTo(o.length - 1) : t.slideTo(t.slides.length - 1); 4225 else { 4226 if (r.freeMode.momentum) { 4227 if (d.velocities.length > 1) { 4228 const e = d.velocities.pop(), 4229 s = d.velocities.pop(), 4230 a = e.position - s.position, 4231 i = e.time - s.time; 4232 t.velocity = a / i, t.velocity /= 2, Math.abs(t.velocity) < r.freeMode.minimumVelocity && (t.velocity = 0), (i > 150 || u() - e.time > 300) && (t.velocity = 0) 4233 } else t.velocity = 0; 4234 t.velocity *= r.freeMode.momentumVelocityRatio, d.velocities.length = 0; 4235 let e = 1e3 * r.freeMode.momentumRatio; 4236 const s = t.velocity * e; 4237 let c = t.translate + s; 4238 l && (c = -c); 4239 let p, h = !1; 4240 const m = 20 * Math.abs(t.velocity) * r.freeMode.momentumBounceRatio; 4241 let f; 4242 if (c < t.maxTranslate()) r.freeMode.momentumBounce ? (c + t.maxTranslate() < -m && (c = t.maxTranslate() - m), p = t.maxTranslate(), h = !0, d.allowMomentumBounce = !0) : c = t.maxTranslate(), r.loop && r.centeredSlides && (f = !0); 4243 else if (c > t.minTranslate()) r.freeMode.momentumBounce ? (c - t.minTranslate() > m && (c = t.minTranslate() + m), p = t.minTranslate(), h = !0, d.allowMomentumBounce = !0) : c = t.minTranslate(), r.loop && r.centeredSlides && (f = !0); 4244 else if (r.freeMode.sticky) { 4245 let e; 4246 for (let t = 0; t < o.length; t += 1) 4247 if (o[t] > -c) { 4248 e = t; 4249 break 4250 } 4251 c = Math.abs(o[e] - c) < Math.abs(o[e - 1] - c) || "next" === t.swipeDirection ? o[e] : o[e - 1], c = -c 4252 } 4253 if (f && i("transitionEnd", (() => { 4254 t.loopFix() 4255 })), 0 !== t.velocity) { 4256 if (e = l ? Math.abs((-c - t.translate) / t.velocity) : Math.abs((c - t.translate) / t.velocity), r.freeMode.sticky) { 4257 const s = Math.abs((l ? -c : c) - t.translate), 4258 a = t.slidesSizesGrid[t.activeIndex]; 4259 e = s < a ? r.speed : s < 2 * a ? 1.5 * r.speed : 2.5 * r.speed 4260 } 4261 } else if (r.freeMode.sticky) return void t.slideToClosest(); 4262 r.freeMode.momentumBounce && h ? (t.updateProgress(p), t.setTransition(e), t.setTranslate(c), t.transitionStart(!0, t.swipeDirection), t.animating = !0, n.transitionEnd((() => { 4263 t && !t.destroyed && d.allowMomentumBounce && (a("momentumBounce"), t.setTransition(r.speed), setTimeout((() => { 4264 t.setTranslate(p), n.transitionEnd((() => { 4265 t && !t.destroyed && t.transitionEnd() 4266 })) 4267 }), 0)) 4268 }))) : t.velocity ? (a("_freeModeNoMomentumRelease"), t.updateProgress(c), t.setTransition(e), t.setTranslate(c), t.transitionStart(!0, t.swipeDirection), t.animating || (t.animating = !0, n.transitionEnd((() => { 4269 t && !t.destroyed && t.transitionEnd() 4270 })))) : t.updateProgress(c), t.updateActiveIndex(), t.updateSlidesClasses() 4271 } else { 4272 if (r.freeMode.sticky) return void t.slideToClosest(); 4273 r.freeMode && a("_freeModeNoMomentumRelease") 4274 }(!r.freeMode.momentum || c >= r.longSwipesMs) && (t.updateProgress(), t.updateActiveIndex(), t.updateSlidesClasses()) 4275 } 4276 } 4277 } 4278 }) 4279 }, function(e) { 4280 let t, s, a, { 4281 swiper: i, 4282 extendParams: r 4283 } = e; 4284 r({ 4285 grid: { 4286 rows: 1, 4287 fill: "column" 4288 } 4289 }), i.grid = { 4290 initSlides: e => { 4291 const { 4292 slidesPerView: r 4293 } = i.params, { 4294 rows: n, 4295 fill: l 4296 } = i.params.grid; 4297 s = t / n, a = Math.floor(e / n), t = Math.floor(e / n) === e / n ? e : Math.ceil(e / n) * n, "auto" !== r && "row" === l && (t = Math.max(t, r * n)) 4298 }, 4299 updateSlide: (e, r, n, l) => { 4300 const { 4301 slidesPerGroup: o, 4302 spaceBetween: d 4303 } = i.params, { 4304 rows: c, 4305 fill: p 4306 } = i.params.grid; 4307 let u, h, m; 4308 if ("row" === p && o > 1) { 4309 const s = Math.floor(e / (o * c)), 4310 a = e - c * o * s, 4311 i = 0 === s ? o : Math.min(Math.ceil((n - s * c * o) / c), o); 4312 m = Math.floor(a / i), h = a - m * i + s * o, u = h + m * t / c, r.css({ 4313 "-webkit-order": u, 4314 order: u 4315 }) 4316 } else "column" === p ? (h = Math.floor(e / c), m = e - h * c, (h > a || h === a && m === c - 1) && (m += 1, m >= c && (m = 0, h += 1))) : (m = Math.floor(e / s), h = e - m * s); 4317 r.css(l("margin-top"), 0 !== m ? d && `${d}px` : "") 4318 }, 4319 updateWrapperSize: (e, s, a) => { 4320 const { 4321 spaceBetween: r, 4322 centeredSlides: n, 4323 roundLengths: l 4324 } = i.params, { 4325 rows: o 4326 } = i.params.grid; 4327 if (i.virtualSize = (e + r) * t, i.virtualSize = Math.ceil(i.virtualSize / o) - r, i.$wrapperEl.css({ 4328 [a("width")]: `${i.virtualSize+r}px` 4329 }), n) { 4330 s.splice(0, s.length); 4331 const e = []; 4332 for (let t = 0; t < s.length; t += 1) { 4333 let a = s[t]; 4334 l && (a = Math.floor(a)), s[t] < i.virtualSize + s[0] && e.push(a) 4335 } 4336 s.push(...e) 4337 } 4338 } 4339 } 4340 }, function(e) { 4341 let { 4342 swiper: t 4343 } = e; 4344 Object.assign(t, { 4345 appendSlide: K.bind(t), 4346 prependSlide: Z.bind(t), 4347 addSlide: J.bind(t), 4348 removeSlide: Q.bind(t), 4349 removeAllSlides: ee.bind(t) 4350 }) 4351 }, function(e) { 4352 let { 4353 swiper: t, 4354 extendParams: s, 4355 on: a 4356 } = e; 4357 s({ 4358 fadeEffect: { 4359 crossFade: !1, 4360 transformEl: null 4361 } 4362 }), te({ 4363 effect: "fade", 4364 swiper: t, 4365 on: a, 4366 setTranslate: () => { 4367 const { 4368 slides: e 4369 } = t, s = t.params.fadeEffect; 4370 for (let a = 0; a < e.length; a += 1) { 4371 const e = t.slides.eq(a); 4372 let i = -e[0].swiperSlideOffset; 4373 t.params.virtualTranslate || (i -= t.translate); 4374 let r = 0; 4375 t.isHorizontal() || (r = i, i = 0); 4376 const n = t.params.fadeEffect.crossFade ? Math.max(1 - Math.abs(e[0].progress), 0) : 1 + Math.min(Math.max(e[0].progress, -1), 0); 4377 se(s, e).css({ 4378 opacity: n 4379 }).transform(`translate3d(${i}px, ${r}px, 0px)`) 4380 } 4381 }, 4382 setTransition: e => { 4383 const { 4384 transformEl: s 4385 } = t.params.fadeEffect; 4386 (s ? t.slides.find(s) : t.slides).transition(e), ae({ 4387 swiper: t, 4388 duration: e, 4389 transformEl: s, 4390 allSlides: !0 4391 }) 4392 }, 4393 overwriteParams: () => ({ 4394 slidesPerView: 1, 4395 slidesPerGroup: 1, 4396 watchSlidesProgress: !0, 4397 spaceBetween: 0, 4398 virtualTranslate: !t.params.cssMode 4399 }) 4400 }) 4401 }, function(e) { 4402 let { 4403 swiper: t, 4404 extendParams: s, 4405 on: a 4406 } = e; 4407 s({ 4408 cubeEffect: { 4409 slideShadows: !0, 4410 shadow: !0, 4411 shadowOffset: 20, 4412 shadowScale: .94 4413 } 4414 }), te({ 4415 effect: "cube", 4416 swiper: t, 4417 on: a, 4418 setTranslate: () => { 4419 const { 4420 $el: e, 4421 $wrapperEl: s, 4422 slides: a, 4423 width: i, 4424 height: r, 4425 rtlTranslate: n, 4426 size: l, 4427 browser: o 4428 } = t, c = t.params.cubeEffect, p = t.isHorizontal(), u = t.virtual && t.params.virtual.enabled; 4429 let h, m = 0; 4430 c.shadow && (p ? (h = s.find(".swiper-cube-shadow"), 0 === h.length && (h = d('<div class="swiper-cube-shadow"></div>'), s.append(h)), h.css({ 4431 height: `${i}px` 4432 })) : (h = e.find(".swiper-cube-shadow"), 0 === h.length && (h = d('<div class="swiper-cube-shadow"></div>'), e.append(h)))); 4433 for (let e = 0; e < a.length; e += 1) { 4434 const t = a.eq(e); 4435 let s = e; 4436 u && (s = parseInt(t.attr("data-swiper-slide-index"), 10)); 4437 let i = 90 * s, 4438 r = Math.floor(i / 360); 4439 n && (i = -i, r = Math.floor(-i / 360)); 4440 const o = Math.max(Math.min(t[0].progress, 1), -1); 4441 let h = 0, 4442 f = 0, 4443 g = 0; 4444 s % 4 == 0 ? (h = 4 * -r * l, g = 0) : (s - 1) % 4 == 0 ? (h = 0, g = 4 * -r * l) : (s - 2) % 4 == 0 ? (h = l + 4 * r * l, g = l) : (s - 3) % 4 == 0 && (h = -l, g = 3 * l + 4 * l * r), n && (h = -h), p || (f = h, h = 0); 4445 const v = `rotateX(${p?0:-i}deg) rotateY(${p?i:0}deg) translate3d(${h}px, ${f}px, ${g}px)`; 4446 if (o <= 1 && o > -1 && (m = 90 * s + 90 * o, n && (m = 90 * -s - 90 * o)), t.transform(v), c.slideShadows) { 4447 let e = p ? t.find(".swiper-slide-shadow-left") : t.find(".swiper-slide-shadow-top"), 4448 s = p ? t.find(".swiper-slide-shadow-right") : t.find(".swiper-slide-shadow-bottom"); 4449 0 === e.length && (e = d(`<div class="swiper-slide-shadow-${p?"left":"top"}"></div>`), t.append(e)), 0 === s.length && (s = d(`<div class="swiper-slide-shadow-${p?"right":"bottom"}"></div>`), t.append(s)), e.length && (e[0].style.opacity = Math.max(-o, 0)), s.length && (s[0].style.opacity = Math.max(o, 0)) 4450 } 4451 } 4452 if (s.css({ 4453 "-webkit-transform-origin": `50% 50% -${l/2}px`, 4454 "transform-origin": `50% 50% -${l/2}px` 4455 }), c.shadow) 4456 if (p) h.transform(`translate3d(0px, ${i/2+c.shadowOffset}px, ${-i/2}px) rotateX(90deg) rotateZ(0deg) scale(${c.shadowScale})`); 4457 else { 4458 const e = Math.abs(m) - 90 * Math.floor(Math.abs(m) / 90), 4459 t = 1.5 - (Math.sin(2 * e * Math.PI / 360) / 2 + Math.cos(2 * e * Math.PI / 360) / 2), 4460 s = c.shadowScale, 4461 a = c.shadowScale / t, 4462 i = c.shadowOffset; 4463 h.transform(`scale3d(${s}, 1, ${a}) translate3d(0px, ${r/2+i}px, ${-r/2/a}px) rotateX(-90deg)`) 4464 } 4465 const f = o.isSafari || o.isWebView ? -l / 2 : 0; 4466 s.transform(`translate3d(0px,0,${f}px) rotateX(${t.isHorizontal()?0:m}deg) rotateY(${t.isHorizontal()?-m:0}deg)`) 4467 }, 4468 setTransition: e => { 4469 const { 4470 $el: s, 4471 slides: a 4472 } = t; 4473 a.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), t.params.cubeEffect.shadow && !t.isHorizontal() && s.find(".swiper-cube-shadow").transition(e) 4474 }, 4475 perspective: () => !0, 4476 overwriteParams: () => ({ 4477 slidesPerView: 1, 4478 slidesPerGroup: 1, 4479 watchSlidesProgress: !0, 4480 resistanceRatio: 0, 4481 spaceBetween: 0, 4482 centeredSlides: !1, 4483 virtualTranslate: !0 4484 }) 4485 }) 4486 }, function(e) { 4487 let { 4488 swiper: t, 4489 extendParams: s, 4490 on: a 4491 } = e; 4492 s({ 4493 flipEffect: { 4494 slideShadows: !0, 4495 limitRotation: !0, 4496 transformEl: null 4497 } 4498 }), te({ 4499 effect: "flip", 4500 swiper: t, 4501 on: a, 4502 setTranslate: () => { 4503 const { 4504 slides: e, 4505 rtlTranslate: s 4506 } = t, a = t.params.flipEffect; 4507 for (let i = 0; i < e.length; i += 1) { 4508 const r = e.eq(i); 4509 let n = r[0].progress; 4510 t.params.flipEffect.limitRotation && (n = Math.max(Math.min(r[0].progress, 1), -1)); 4511 const l = r[0].swiperSlideOffset; 4512 let o = -180 * n, 4513 d = 0, 4514 c = t.params.cssMode ? -l - t.translate : -l, 4515 p = 0; 4516 if (t.isHorizontal() ? s && (o = -o) : (p = c, c = 0, d = -o, o = 0), r[0].style.zIndex = -Math.abs(Math.round(n)) + e.length, a.slideShadows) { 4517 let e = t.isHorizontal() ? r.find(".swiper-slide-shadow-left") : r.find(".swiper-slide-shadow-top"), 4518 s = t.isHorizontal() ? r.find(".swiper-slide-shadow-right") : r.find(".swiper-slide-shadow-bottom"); 4519 0 === e.length && (e = ie(a, r, t.isHorizontal() ? "left" : "top")), 0 === s.length && (s = ie(a, r, t.isHorizontal() ? "right" : "bottom")), e.length && (e[0].style.opacity = Math.max(-n, 0)), s.length && (s[0].style.opacity = Math.max(n, 0)) 4520 } 4521 const u = `translate3d(${c}
4521px, ${p}px, 0px) rotateX(${d}deg) rotateY(${o}deg)`; 4522 se(a, r).transform(u) 4523 } 4524 }, 4525 setTransition: e => { 4526 const { 4527 transformEl: s 4528 } = t.params.flipEffect; 4529 (s ? t.slides.find(s) : t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), ae({ 4530 swiper: t, 4531 duration: e, 4532 transformEl: s 4533 }) 4534 }, 4535 perspective: () => !0, 4536 overwriteParams: () => ({ 4537 slidesPerView: 1, 4538 slidesPerGroup: 1, 4539 watchSlidesProgress: !0, 4540 spaceBetween: 0, 4541 virtualTranslate: !t.params.cssMode 4542 }) 4543 }) 4544 }, function(e) { 4545 let { 4546 swiper: t, 4547 extendParams: s, 4548 on: a 4549 } = e; 4550 s({ 4551 coverflowEffect: { 4552 rotate: 50, 4553 stretch: 0, 4554 depth: 100, 4555 scale: 1, 4556 modifier: 1, 4557 slideShadows: !0, 4558 transformEl: null 4559 } 4560 }), te({ 4561 effect: "coverflow", 4562 swiper: t, 4563 on: a, 4564 setTranslate: () => { 4565 const { 4566 width: e, 4567 height: s, 4568 slides: a, 4569 slidesSizesGrid: i 4570 } = t, r = t.params.coverflowEffect, n = t.isHorizontal(), l = t.translate, o = n ? e / 2 - l : s / 2 - l, d = n ? r.rotate : -r.rotate, c = r.depth; 4571 for (let e = 0, t = a.length; e < t; e += 1) { 4572 const t = a.eq(e), 4573 s = i[e], 4574 l = (o - t[0].swiperSlideOffset - s / 2) / s, 4575 p = "function" == typeof r.modifier ? r.modifier(l) : l * r.modifier; 4576 let u = n ? d * p : 0, 4577 h = n ? 0 : d * p, 4578 m = -c * Math.abs(p), 4579 f = r.stretch; 4580 "string" == typeof f && -1 !== f.indexOf("%") && (f = parseFloat(r.stretch) / 100 * s); 4581 let g = n ? 0 : f * p, 4582 v = n ? f * p : 0, 4583 w = 1 - (1 - r.scale) * Math.abs(p); 4584 Math.abs(v) < .001 && (v = 0), Math.abs(g) < .001 && (g = 0), Math.abs(m) < .001 && (m = 0), Math.abs(u) < .001 && (u = 0), Math.abs(h) < .001 && (h = 0), Math.abs(w) < .001 && (w = 0); 4585 const b = `translate3d(${v}px,${g}px,${m}px) rotateX(${h}deg) rotateY(${u}deg) scale(${w})`; 4586 if (se(r, t).transform(b), t[0].style.zIndex = 1 - Math.abs(Math.round(p)), r.slideShadows) { 4587 let e = n ? t.find(".swiper-slide-shadow-left") : t.find(".swiper-slide-shadow-top"), 4588 s = n ? t.find(".swiper-slide-shadow-right") : t.find(".swiper-slide-shadow-bottom"); 4589 0 === e.length && (e = ie(r, t, n ? "left" : "top")), 0 === s.length && (s = ie(r, t, n ? "right" : "bottom")), e.length && (e[0].style.opacity = p > 0 ? p : 0), s.length && (s[0].style.opacity = -p > 0 ? -p : 0) 4590 } 4591 } 4592 }, 4593 setTransition: e => { 4594 const { 4595 transformEl: s 4596 } = t.params.coverflowEffect; 4597 (s ? t.slides.find(s) : t.slides).transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e) 4598 }, 4599 perspective: () => !0, 4600 overwriteParams: () => ({ 4601 watchSlidesProgress: !0 4602 }) 4603 }) 4604 }, function(e) { 4605 let { 4606 swiper: t, 4607 extendParams: s, 4608 on: a 4609 } = e; 4610 s({ 4611 creativeEffect: { 4612 transformEl: null, 4613 limitProgress: 1, 4614 shadowPerProgress: !1, 4615 progressMultiplier: 1, 4616 perspective: !0, 4617 prev: { 4618 translate: [0, 0, 0], 4619 rotate: [0, 0, 0], 4620 opacity: 1, 4621 scale: 1 4622 }, 4623 next: { 4624 translate: [0, 0, 0], 4625 rotate: [0, 0, 0], 4626 opacity: 1, 4627 scale: 1 4628 } 4629 } 4630 }); 4631 const i = e => "string" == typeof e ? e : `${e}px`; 4632 te({ 4633 effect: "creative", 4634 swiper: t, 4635 on: a, 4636 setTranslate: () => { 4637 const { 4638 slides: e, 4639 $wrapperEl: s, 4640 slidesSizesGrid: a 4641 } = t, r = t.params.creativeEffect, { 4642 progressMultiplier: n 4643 } = r, l = t.params.centeredSlides; 4644 if (l) { 4645 const e = a[0] / 2 - t.params.slidesOffsetBefore || 0; 4646 s.transform(`translateX(calc(50% - ${e}px))`) 4647 } 4648 for (let s = 0; s < e.length; s += 1) { 4649 const a = e.eq(s), 4650 o = a[0].progress, 4651 d = Math.min(Math.max(a[0].progress, -r.limitProgress), r.limitProgress); 4652 let c = d; 4653 l || (c = Math.min(Math.max(a[0].originalProgress, -r.limitProgress), r.limitProgress)); 4654 const p = a[0].swiperSlideOffset, 4655 u = [t.params.cssMode ? -p - t.translate : -p, 0, 0], 4656 h = [0, 0, 0]; 4657 let m = !1; 4658 t.isHorizontal() || (u[1] = u[0], u[0] = 0); 4659 let f = { 4660 translate: [0, 0, 0], 4661 rotate: [0, 0, 0], 4662 scale: 1, 4663 opacity: 1 4664 }; 4665 d < 0 ? (f = r.next, m = !0) : d > 0 && (f = r.prev, m = !0), u.forEach(((e, t) => { 4666 u[t] = `calc(${e}px + (${i(f.translate[t])} * ${Math.abs(d*n)}))` 4667 })), h.forEach(((e, t) => { 4668 h[t] = f.rotate[t] * Math.abs(d * n) 4669 })), a[0].style.zIndex = -Math.abs(Math.round(o)) + e.length; 4670 const g = u.join(", "), 4671 v = `rotateX(${h[0]}deg) rotateY(${h[1]}deg) rotateZ(${h[2]}deg)`, 4672 w = c < 0 ? `scale(${1+(1-f.scale)*c*n})` : `scale(${1-(1-f.scale)*c*n})`, 4673 b = c < 0 ? 1 + (1 - f.opacity) * c * n : 1 - (1 - f.opacity) * c * n, 4674 x = `translate3d(${g}) ${v} ${w}`; 4675 if (m && f.shadow || !m) { 4676 let e = a.children(".swiper-slide-shadow"); 4677 if (0 === e.length && f.shadow && (e = ie(r, a)), e.length) { 4678 const t = r.shadowPerProgress ? d * (1 / r.limitProgress) : d; 4679 e[0].style.opacity = Math.min(Math.max(Math.abs(t), 0), 1) 4680 } 4681 } 4682 const y = se(r, a); 4683 y.transform(x).css({ 4684 opacity: b 4685 }), f.origin && y.css("transform-origin", f.origin) 4686 } 4687 }, 4688 setTransition: e => { 4689 const { 4690 transformEl: s 4691 } = t.params.creativeEffect; 4692 (s ? t.slides.find(s) : t.slides).transition(e).find(".swiper-slide-shadow").transition(e), ae({ 4693 swiper: t, 4694 duration: e, 4695 transformEl: s, 4696 allSlides: !0 4697 }) 4698 }, 4699 perspective: () => t.params.creativeEffect.perspective, 4700 overwriteParams: () => ({ 4701 watchSlidesProgress: !0, 4702 virtualTranslate: !t.params.cssMode 4703 }) 4704 }) 4705 }, function(e) { 4706 let { 4707 swiper: t, 4708 extendParams: s, 4709 on: a 4710 } = e; 4711 s({ 4712 cardsEffect: { 4713 slideShadows: !0, 4714 transformEl: null 4715 } 4716 }), te({ 4717 effect: "cards", 4718 swiper: t, 4719 on: a, 4720 setTranslate: () => { 4721 const { 4722 slides: e, 4723 activeIndex: s 4724 } = t, a = t.params.cardsEffect, { 4725 startTranslate: i, 4726 isTouched: r 4727 } = t.touchEventsData, n = t.translate; 4728 for (let l = 0; l < e.length; l += 1) { 4729 const o = e.eq(l), 4730 d = o[0].progress, 4731 c = Math.min(Math.max(d, -4), 4); 4732 let p = o[0].swiperSlideOffset; 4733 t.params.centeredSlides && !t.params.cssMode && t.$wrapperEl.transform(`translateX(${t.minTranslate()}px)`), t.params.centeredSlides && t.params.cssMode && (p -= e[0].swiperSlideOffset); 4734 let u = t.params.cssMode ? -p - t.translate : -p, 4735 h = 0; 4736 const m = -100 * Math.abs(c); 4737 let f = 1, 4738 g = -2 * c, 4739 v = 8 - .75 * Math.abs(c); 4740 const w = t.virtual && t.params.virtual.enabled ? t.virtual.from + l : l, 4741 b = (w === s || w === s - 1) && c > 0 && c < 1 && (r || t.params.cssMode) && n < i, 4742 x = (w === s || w === s + 1) && c < 0 && c > -1 && (r || t.params.cssMode) && n > i; 4743 if (b || x) { 4744 const e = (1 - Math.abs((Math.abs(c) - .5) / .5)) ** .5; 4745 g += -28 * c * e, f += -.5 * e, v += 96 * e, h = -25 * e * Math.abs(c) + "%" 4746 } 4747 if (u = c < 0 ? `calc(${u}px + (${v*Math.abs(c)}%))` : c > 0 ? `calc(${u}px + (-${v*Math.abs(c)}%))` : `${u}px`, !t.isHorizontal()) { 4748 const e = h; 4749 h = u, u = e 4750 } 4751 const y = `\n translate3d(${u}, ${h}, ${m}px)\n rotateZ(${g}deg)\n scale(${c<0?""+(1+(1-f)*c):""+(1-(1-f)*c)})\n `; 4752 if (a.slideShadows) { 4753 let e = o.find(".swiper-slide-shadow"); 4754 0 === e.length && (e = ie(a, o)), e.length && (e[0].style.opacity = Math.min(Math.max((Math.abs(c) - .5) / .5, 0), 1)) 4755 } 4756 o[0].style.zIndex = -Math.abs(Math.round(d)) + e.length; 4757 se(a, o).transform(y) 4758 } 4759 }, 4760 setTransition: e => { 4761 const { 4762 transformEl: s 4763 } = t.params.cardsEffect; 4764 (s ? t.slides.find(s) : t.slides).transition(e).find(".swiper-slide-shadow").transition(e), ae({ 4765 swiper: t, 4766 duration: e, 4767 transformEl: s 4768 }) 4769 }, 4770 perspective: () => !0, 4771 overwriteParams: () => ({ 4772 watchSlidesProgress: !0, 4773 virtualTranslate: !t.params.cssMode 4774 }) 4775 }) 4776 }]; 4777 return V.use(re), V 4778})); 4779//# sourceMappingURL=swiper-bundle.min.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.