vendor: 21,567 bytes, lines 1-459
1 2! 3function() { 4 "use strict"; 5 function e(e) { 6 e.fn.swiper = function(a) { 7 var r; 8 return e(this).each(function() { 9 var e = new t(this, a); 10 r || (r = e) 11 }), 12 r 13 } 14 } 15 var a, t = function(e, i) { 16 function s(e) { 17 return Math.floor(e) 18 } 19 function n() { 20 b.autoplayTimeoutId = setTimeout(function() { 21 b.params.loop ? (b.fixLoop(), b._slideNext(), b.emit("onAutoplay", b)) : b.isEnd ? i.autoplayStopOnLast ? b.stopAutoplay() : (b._slideTo(0), b.emit("onAutoplay", b)) : (b._slideNext(), b.emit("onAutoplay", b)) 22 }, 23 b.params.autoplay) 24 } 25 function o(e, t) { 26 var r = a(e.target); 27 if (!r.is(t)) if ("string" == typeof t) r = r.parents(t); 28 else if (t.nodeType) { 29 var i; 30 return r.parents().each(function(e, a) { 31 a === t && (i = t) 32 }), 33 i ? t: void 0 34 } 35 if (0 !== r.length) return r[0] 36 } 37 function l(e, a) { 38 a = a || {}; 39 var t = window.MutationObserver || window.WebkitMutationObserver, 40 r = new t(function(e) { 41 e.forEach(function(e) { 42 b.onResize(!0), 43 b.emit("onObserverUpdate", b, e) 44 }) 45 }); 46 r.observe(e, { 47 attributes: "undefined" == typeof a.attributes ? !0 : a.attributes, 48 childList: "undefined" == typeof a.childList ? !0 : a.childList, 49 characterData: "undefined" == typeof a.characterData ? !0 : a.characterData 50 }), 51 b.observers.push(r) 52 } 53 function p(e) { 54 e.originalEvent && (e = e.originalEvent); 55 var a = e.keyCode || e.charCode; 56 if (!b.params.allowSwipeToNext && (b.isHorizontal() && 39 === a || !b.isHorizontal() && 40 === a)) return ! 1; 57 if (!b.params.allowSwipeToPrev && (b.isHorizontal() && 37 === a || !b.isHorizontal() && 38 === a)) return ! 1; 58 if (! (e.shiftKey || e.altKey || e.ctrlKey || e.metaKey || document.activeElement && document.activeElement.nodeName && ("input" === document.activeElement.nodeName.toLowerCase() || "textarea" === document.activeElement.nodeName.toLowerCase()))) { 59 if (37 === a || 39 === a || 38 === a || 40 === a) { 60 var t = !1; 61 if (b.container.parents(".swiper-slide").length > 0 && 0 === b.container.parents(".swiper-slide-active").length) return; 62 var r = { 63 left: window.pageXOffset, 64 top: window.pageYOffset 65 }, 66 i = window.innerWidth, 67 s = window.innerHeight, 68 n = b.container.offset(); 69 b.rtl && (n.left = n.left - b.container[0].scrollLeft); 70 for (var o = [[n.left, n.top], [n.left + b.width, n.top], [n.left, n.top + b.height], [n.left + b.width, n.top + b.height]], l = 0; l < o.length; l++) { 71 var p = o[l]; 72 p[0] >= r.left && p[0] <= r.left + i && p[1] >= r.top && p[1] <= r.top + s && (t = !0) 73 } 74 if (!t) return 75 } 76 b.isHorizontal() ? ((37 === a || 39 === a) && (e.preventDefault ? e.preventDefault() : e.returnValue = !1), (39 === a && !b.rtl || 37 === a && b.rtl) && b.slideNext(), (37 === a && !b.rtl || 39 === a && b.rtl) && b.slidePrev()) : ((38 === a || 40 === a) && (e.preventDefault ? e.preventDefault() : e.returnValue = !1), 40 === a && b.slideNext(), 38 === a && b.slidePrev()) 77 } 78 } 79 function d(e) { 80 e.originalEvent && (e = e.originalEvent); 81 var a = b.mousewheel.event, 82 t = 0, 83 r = b.rtl ? -1 : 1; 84 if ("mousewheel" === a) if (b.params.mousewheelForceToAxis) if (b.isHorizontal()) { 85 if (! (Math.abs(e.wheelDeltaX) > Math.abs(e.wheelDeltaY))) return; 86 t = e.wheelDeltaX * r 87 } else { 88 if (! (Math.abs(e.wheelDeltaY) > Math.abs(e.wheelDeltaX))) return; 89 t = e.wheelDeltaY 90 } else t = Math.abs(e.wheelDeltaX) > Math.abs(e.wheelDeltaY) ? -e.wheelDeltaX * r: -e.wheelDeltaY; 91 else if ("DOMMouseScroll" === a) t = -e.detail; 92 else if ("wheel" === a) if (b.params.mousewheelForceToAxis) if (b.isHorizontal()) { 93 if (! (Math.abs(e.deltaX) > Math.abs(e.deltaY))) return; 94 t = -e.deltaX * r 95 } else { 96 if (! (Math.abs(e.deltaY) > Math.abs(e.deltaX))) return; 97 t = -e.deltaY 98 } else t = Math.abs(e.deltaX) > Math.abs(e.deltaY) ? -e.deltaX * r: -e.deltaY; 99 if (0 !== t) { 100 if (b.params.mousewheelInvert && (t = -t), b.params.freeMode) { 101 var i = b.getWrapperTranslate() + t * b.params.mousewheelSensitivity, 102 s = b.isBeginning, 103 n = b.isEnd; 104 if (i >= b.minTranslate() && (i = b.minTranslate()), i <= b.maxTranslate() && (i = b.maxTranslate()), b.setWrapperTransition(0), b.setWrapperTranslate(i), b.updateProgress(), b.updateActiveIndex(), (!s && b.isBeginning || !n && b.isEnd) && b.updateClasses(), b.params.freeModeSticky ? (clearTimeout(b.mousewheel.timeout), b.mousewheel.timeout = setTimeout(function() { 105 b.slideReset() 106 }, 107 300)) : b.params.lazyLoading && b.lazy && b.lazy.load(), 0 === i || i === b.maxTranslate()) return 108 } else { 109 if ((new window.Date).getTime() - b.mousewheel.lastScrollTime > 60) if (0 > t) if (b.isEnd && !b.params.loop || b.animating) { 110 if (b.params.mousewheelReleaseOnEdges) return ! 0 111 } else b.slideNext(); 112 else if (b.isBeginning && !b.params.loop || b.animating) { 113 if (b.params.mousewheelReleaseOnEdges) return ! 0 114 } else b.slidePrev(); 115 b.mousewheel.lastScrollTime = (new window.Date).getTime() 116 } 117 return b.params.autoplay && b.stopAutoplay(), 118 e.preventDefault ? e.preventDefault() : e.returnValue = !1, 119 !1 120 } 121 } 122 function u(e, t) { 123 e = a(e); 124 var r, i, s, n = b.rtl ? -1 : 1; 125 r = e.attr("data-swiper-parallax") || "0", 126 i = e.attr("data-swiper-parallax-x"), 127 s = e.attr("data-swiper-parallax-y"), 128 i || s ? (i = i || "0", s = s || "0") : b.isHorizontal() ? (i = r, s = "0") : (s = r, i = "0"), 129 i = i.indexOf("%") >= 0 ? parseInt(i, 10) * t * n + "%": i * t * n + "px", 130 s = s.indexOf("%") >= 0 ? parseInt(s, 10) * t + "%": s * t + "px", 131 e.transform("translate3d(" + i + ", " + s + ",0px)") 132 } 133 function c(e) { 134 return 0 !== e.indexOf("on") && (e = e[0] !== e[0].toUpperCase() ? "on" + e[0].toUpperCase() + e.substring(1) : "on" + e), 135 e 136 } 137 if (! (this instanceof t)) return new t(e, i); 138 var m = { 139 direction: "horizontal", 140 touchEventsTarget: "container", 141 initialSlide: 0, 142 speed: 300, 143 autoplay: !1, 144 autoplayDisableOnInteraction: !0, 145 autoplayStopOnLast: !1, 146 iOSEdgeSwipeDetection: !1, 147 iOSEdgeSwipeThreshold: 20, 148 freeMode: !1, 149 freeModeMomentum: !0, 150 freeModeMomentumRatio: 1, 151 freeModeMomentumBounce: !0, 152 freeModeMomentumBounceRatio: 1, 153 freeModeSticky: !1, 154 freeModeMinimumVelocity: .02, 155 autoHeight: !1, 156 setWrapperSize: !1, 157 virtualTranslate: !1, 158 effect: "slide", 159 coverflow: { 160 rotate: 50, 161 stretch: 0, 162 depth: 100, 163 modifier: 1, 164 slideShadows: !0 165 }, 166 flip: { 167 slideShadows: !0, 168 limitRotation: !0 169 }, 170 cube: { 171 slideShadows: !0, 172 shadow: !0, 173 shadowOffset: 20, 174 shadowScale: .94 175 }, 176 fade: { 177 crossFade: !1 178 }, 179 parallax: !1, 180 scrollbar: null, 181 scrollbarHide: !0, 182 scrollbarDraggable: !1, 183 scrollbarSnapOnRelease: !1, 184 keyboardControl: !1, 185 mousewheelControl: !1, 186 mousewheelReleaseOnEdges: !1, 187 mousewheelInvert: !1, 188 mousewheelForceToAxis: !1, 189 mousewheelSensitivity: 1, 190 hashnav: !1, 191 breakpoints: void 0, 192 spaceBetween: 0, 193 slidesPerView: 1, 194 slidesPerColumn: 1, 195 slidesPerColumnFill: "column", 196 slidesPerGroup: 1, 197 centeredSlides: !1, 198 slidesOffsetBefore: 0, 199 slidesOffsetAfter: 0, 200 roundLengths: !1, 201 touchRatio: 1, 202 touchAngle: 45, 203 simulateTouch: !0, 204 shortSwipes: !0, 205 longSwipes: !0, 206 longSwipesRatio: .5, 207 longSwipesMs: 300, 208 followFinger: !0, 209 onlyExternal: !1, 210 threshold: 0, 211 touchMoveStopPropagation: !0, 212 uniqueNavElements: !0, 213 pagination: null, 214 paginationElement: "span", 215 paginationClickable: !1, 216 paginationHide: !1, 217 paginationBulletRender: null, 218 paginationProgressRender: null, 219 paginationFractionRender: null, 220 paginationCustomRender: null, 221 paginationType: "bullets", 222 resistance: !0, 223 resistanceRatio: .85, 224 nextButton: null, 225 prevButton: null, 226 watchSlidesProgress: !1, 227 watchSlidesVisibility: !1, 228 grabCursor: !1, 229 preventClicks: !0, 230 preventClicksPropagation: !0, 231 slideToClickedSlide: !1, 232 lazyLoading: !1, 233 lazyLoadingInPrevNext: !1, 234 lazyLoadingInPrevNextAmount: 1, 235 lazyLoadingOnTransitionStart: !1, 236 preloadImages: !0, 237 updateOnImagesReady: !0, 238 loop: !1, 239 loopAdditionalSlides: 0, 240 loopedSlides: null, 241 control: void 0, 242 controlInverse: !1, 243 controlBy: "slide", 244 allowSwipeToPrev: !0, 245 allowSwipeToNext: !0, 246 swipeHandler: null, 247 noSwiping: !0, 248 noSwipingClass: "swiper-no-swiping", 249 slideClass: "swiper-slide", 250 slideActiveClass: "swiper-slide-active", 251 slideVisibleClass: "swiper-slide-visible", 252 slideDuplicateClass: "swiper-slide-duplicate", 253 slideNextClass: "swiper-slide-next", 254 slidePrevClass: "swiper-slide-prev", 255 wrapperClass: "swiper-wrapper", 256 bulletClass: "swiper-pagination-bullet", 257 bulletActiveClass: "swiper-pagination-bullet-active", 258 buttonDisabledClass: "swiper-button-disabled", 259 paginationCurrentClass: "swiper-pagination-current", 260 paginationTotalClass: "swiper-pagination-total", 261 paginationHiddenClass: "swiper-pagination-hidden", 262 paginationProgressbarClass: "swiper-pagination-progressbar", 263 observer: !1, 264 observeParents: !1, 265 a11y: !1, 266 prevSlideMessage: "Previous slide", 267 nextSlideMessage: "Next slide", 268 firstSlideMessage: "This is the first slide", 269 lastSlideMessage: "This is the last slide", 270 paginationBulletMessage: "Go to slide {{index}}", 271 runCallbacksOnInit: !0 272 }, 273 h = i && i.virtualTranslate; 274 i = i || {}; 275 var f = {}; 276 for (var g in i) if ("object" != typeof i[g] || null === i[g] || (i[g].nodeType || i[g] === window || i[g] === document || "undefined" != typeof r && i[g] instanceof r || "undefined" != typeof jQuery && i[g] instanceof jQuery)) f[g] = i[g]; 277 else { 278 f[g] = {}; 279 for (var v in i[g]) f[g][v] = i[g][v] 280 } 281 for (var w in m) if ("undefined" == typeof i[w]) i[w] = m[w]; 282 else if ("object" == typeof i[w]) for (var y in m[w])"undefined" == typeof i[w][y] && (i[w][y] = m[w][y]); 283 var b = this; 284 if (b.params = i, b.originalParams = f, b.classNames = [], "undefined" != typeof a && "undefined" != typeof r && (a = r), ("undefined" != typeof a || (a = "undefined" == typeof r ? window.Dom7 || window.Zepto || window.jQuery: r)) && (b.$ = a, b.currentBreakpoint = void 0, b.getActiveBreakpoint = function() { 285 if (!b.params.breakpoints) return ! 1; 286 var e, a = !1, 287 t = []; 288 for (e in b.params.breakpoints) b.params.breakpoints.hasOwnProperty(e) && t.push(e); 289 t.sort(function(e, a) { 290 return parseInt(e, 10) > parseInt(a, 10) 291 }); 292 for (var r = 0; r < t.length; r++) e = t[r], 293 e >= window.innerWidth && !a && (a = e); 294 return a || "max" 295 }, 296 b.setBreakpoint = function() { 297 var e = b.getActiveBreakpoint(); 298 if (e && b.currentBreakpoint !== e) { 299 var a = e in b.params.breakpoints ? b.params.breakpoints[e] : b.originalParams, 300 t = b.params.loop && a.slidesPerView !== b.params.slidesPerView; 301 for (var r in a) b.params[r] = a[r]; 302 b.currentBreakpoint = e, 303 t && b.destroyLoop && b.reLoop(!0) 304 } 305 }, 306 b.params.breakpoints && b.setBreakpoint(), b.container = a(e), 0 !== b.container.length)) { 307 if (b.container.length > 1) { 308 var x = []; 309 return b.container.each(function() { 310 x.push(new t(this, i)) 311 }), 312 x 313 } 314 b.container[0].swiper = b, 315 b.container.data("swiper", b), 316 b.classNames.push("list-guanggaowei-" + b.params.direction), 317 b.params.freeMode && b.classNames.push("list-guanggaowei-free-mode"), 318 b.support.flexbox || (b.classNames.push("list-guanggaowei-no-flexbox"), b.params.slidesPerColumn = 1), 319 b.params.autoHeight && b.classNames.push("list-guanggaowei-autoheight"), 320 (b.params.parallax || b.params.watchSlidesVisibility) && (b.params.watchSlidesProgress = !0), 321 ["cube", "coverflow", "flip"].indexOf(b.params.effect) >= 0 && (b.support.transforms3d ? (b.params.watchSlidesProgress = !0, b.classNames.push("list-guanggaowei-3d")) : b.params.effect = "slide"), 322 "slide" !== b.params.effect && b.classNames.push("list-guanggaowei-" + b.params.effect), 323 "cube" === b.params.effect && (b.params.resistanceRatio = 0, b.params.slidesPerView = 1, b.params.slidesPerColumn = 1, b.params.slidesPerGroup = 1, b.params.centeredSlides = !1, b.params.spaceBetween = 0, b.params.virtualTranslate = !0, b.params.setWrapperSize = !1), 324 ("fade" === b.params.effect || "flip" === b.params.effect) && (b.params.slidesPerView = 1, b.params.slidesPerColumn = 1, b.params.slidesPerGroup = 1, b.params.watchSlidesProgress = !0, b.params.spaceBetween = 0, b.params.setWrapperSize = !1, "undefined" == typeof h && (b.params.virtualTranslate = !0)), 325 b.params.grabCursor && b.support.touch && (b.params.grabCursor = !1), 326 b.wrapper = b.container.children("." + b.params.wrapperClass), 327 b.params.pagination && (b.paginationContainer = a(b.params.pagination), b.params.uniqueNavElements && "string" == typeof b.params.pagination && b.paginationContainer.length > 1 && 1 === b.container.find(b.params.pagination).length && (b.paginationContainer = b.container.find(b.params.pagination)), "bullets" === b.params.paginationType && b.params.paginationClickable ? b.paginationContainer.addClass("swiper-pagination-clickable") : b.params.paginationClickable = !1, b.paginationContainer.addClass("swiper-pagination-" + b.params.paginationType)), 328 (b.params.nextButton || b.params.prevButton) && (b.params.nextButton && (b.nextButton = a(b.params.nextButton), b.params.uniqueNavElements && "string" == typeof b.params.nextButton && b.nextButton.length > 1 && 1 === b.container.find(b.params.nextButton).length && (b.nextButton = b.container.find(b.params.nextButton))), b.params.prevButton && (b.prevButton = a(b.params.prevButton), b.params.uniqueNavElements && "string" == typeof b.params.prevButton && b.prevButton.length > 1 && 1 === b.container.find(b.params.prevButton).length && (b.prevButton = b.container.find(b.params.prevButton)))), 329 b.isHorizontal = function() { 330 return "horizontal" === b.params.direction 331 }, 332 b.rtl = b.isHorizontal() && ("rtl" === b.container[0].dir.toLowerCase() || "rtl" === b.container.css("direction")), 333 b.rtl && b.classNames.push("list-guanggaowei-rtl"), 334 b.rtl && (b.wrongRTL = "-webkit-box" === b.wrapper.css("display")), 335 b.params.slidesPerColumn > 1 && b.classNames.push("list-guanggaowei-multirow"), 336 b.device.android && b.classNames.push("list-guanggaowei-android"), 337 b.container.addClass(b.classNames.join(" ")), 338 b.translate = 0, 339 b.progress = 0, 340 b.velocity = 0, 341 b.lockSwipeToNext = function() { 342 b.params.allowSwipeToNext = !1 343 }, 344 b.lockSwipeToPrev = function() { 345 b.params.allowSwipeToPrev = !1 346 }, 347 b.lockSwipes = function() { 348 b.params.allowSwipeToNext = b.params.allowSwipeToPrev = !1 349 }, 350 b.unlockSwipeToNext = function() { 351 b.params.allowSwipeToNext = !0 352 }, 353 b.unlockSwipeToPrev = function() { 354 b.params.allowSwipeToPrev = !0 355 }, 356 b.unlockSwipes = function() { 357 b.params.allowSwipeToNext = b.params.allowSwipeToPrev = !0 358 }, 359 b.params.grabCursor && (b.container[0].style.cursor = "move", b.container[0].style.cursor = "-webkit-grab", b.container[0].style.cursor = "-moz-grab", b.container[0].style.cursor = "grab"), 360 b.imagesToLoad = [], 361 b.imagesLoaded = 0, 362 b.loadImage = function(e, a, t, r, i) { 363 function s() { 364 i && i() 365 } 366 var n; 367 e.complete && r ? s() : a ? (n = new window.Image, n.onload = s, n.onerror = s, t && (n.srcset = t), a && (n.src = a)) : s() 368 }, 369 b.preloadImages = function() { 370 function e() { 371 "undefined" != typeof b && null !== b && (void 0 !== b.imagesLoaded && b.imagesLoaded++, b.imagesLoaded === b.imagesToLoad.length && (b.params.updateOnImagesReady && b.update(), b.emit("onImagesReady", b))) 372 } 373 b.imagesToLoad = b.container.find("img"); 374 for (var a = 0; a < b.imagesToLoad.length; a++) b.loadImage(b.imagesToLoad[a], b.imagesToLoad[a].currentSrc || b.imagesToLoad[a].getAttribute("src"), b.imagesToLoad[a].srcset || b.imagesToLoad[a].getAttribute("srcset"), !0, e) 375 }, 376 b.autoplayTimeoutId = void 0, 377 b.autoplaying = !1, 378 b.autoplayPaused = !1, 379 b.startAutoplay = function() { 380 return "undefined" != typeof b.autoplayTimeoutId ? !1 : b.params.autoplay ? b.autoplaying ? !1 : (b.autoplaying = !0, b.emit("onAutoplayStart", b), void n()) : !1 381 }, 382 b.stopAutoplay = function(e) { 383 b.autoplayTimeoutId && (b.autoplayTimeoutId && clearTimeout(b.autoplayTimeoutId), b.autoplaying = !1, b.autoplayTimeoutId = void 0, b.emit("onAutoplayStop", b)) 384 }, 385 b.pauseAutoplay = function(e) { 386 b.autoplayPaused || (b.autoplayTimeoutId && clearTimeout(b.autoplayTimeoutId), b.autoplayPaused = !0, 0 === e ? (b.autoplayPaused = !1, n()) : b.wrapper.transitionEnd(function() { 387 b && (b.autoplayPaused = !1, b.autoplaying ? n() : b.stopAutoplay()) 388 })) 389 }, 390 b.minTranslate = function() { 391 return - b.snapGrid[0] 392 }, 393 b.maxTranslate = function() { 394 return - b.snapGrid[b.snapGrid.length - 1] 395 }, 396 b.updateAutoHeight = function() { 397 var e = b.slides.eq(b.activeIndex)[0]; 398 if ("undefined" != typeof e) { 399 var a = e.offsetHeight; 400 a && b.wrapper.css("height", a + "px") 401 } 402 }, 403 b.updateContainerSize = function() { 404 var e, a; 405 e = "undefined" != typeof b.params.width ? b.params.width: b.container[0].clientWidth, 406 a = "undefined" != typeof b.params.height ? b.params.height: b.container[0].clientHeight, 407 0 === e && b.isHorizontal() || 0 === a && !b.isHorizontal() || (e = e - parseInt(b.container.css("padding-left"), 10) - parseInt(b.container.css("padding-right"), 10), a = a - parseInt(b.container.css("padding-top"), 10) - parseInt(b.container.css("padding-bottom"), 10), b.width = e, b.height = a, b.size = b.isHorizontal() ? b.width: b.height) 408 }, 409 b.updateSlidesSize = function() { 410 b.slides = b.wrapper.children("." + b.params.slideClass), 411 b.snapGrid = [], 412 b.slidesGrid = [], 413 b.slidesSizesGrid = []; 414 var e, a = b.params.spaceBetween, 415 t = -b.params.slidesOffsetBefore, 416 r = 0, 417 i = 0; 418 if ("undefined" != typeof b.size) { 419 "string" == typeof a && a.indexOf("%") >= 0 && (a = parseFloat(a.replace("%", "")) / 100 * b.size), 420 b.virtualSize = -a, 421 b.rtl ? b.slides.css({ 422 marginLeft: "", 423 marginTop: "" 424 }) : b.slides.css({ 425 marginRight: "", 426 marginBottom: "" 427 }); 428 var n; 429 b.params.slidesPerColumn > 1 && (n = Math.floor(b.slides.length / b.params.slidesPerColumn) === b.slides.length / b.params.slidesPerColumn ? b.slides.length: Math.ceil(b.slides.length / b.params.slidesPerColumn) * b.params.slidesPerColumn, "auto" !== b.params.slidesPerView && "row" === b.params.slidesPerColumnFill && (n = Math.max(n, b.params.slidesPerView * b.params.slidesPerColumn))); 430 var o, l = b.params.slidesPerColumn, 431 p = n / l, 432 d = p - (b.params.slidesPerColumn * p - b.slides.length); 433 for (e = 0; e < b.slides.length; e++) { 434 o = 0; 435 var u = b.slides.eq(e); 436 if (b.params.slidesPerColumn > 1) { 437 var c, m, h; 438 "column" === b.params.slidesPerColumnFill ? (m = Math.floor(e / l), h = e - m * l, (m > d || m === d && h === l - 1) && ++h >= l && (h = 0, m++), c = m + h * n / l, u.css({ 439 "-webkit-box-ordinal-group": c, 440 "-moz-box-ordinal-group": c, 441 "-ms-flex-order": c, 442 "-webkit-order": c, 443 order: c 444 })) : (h = Math.floor(e / p), m = e - h * p), 445 u.css({ 446 "margin-top": 0 !== h && b.params.spaceBetween && b.params.spaceBetween + "px" 447 }).attr("data-swiper-column", m).attr("data-swiper-row", h) 448 } 449 "none" !== u.css("display") && ("auto" === b.params.slidesPerView ? (o = b.isHorizontal() ? u.outerWidth(!0) : u.outerHeight(!0), b.params.roundLengths && (o = s(o))) : (o = (b.size - (b.params.slidesPerView - 1) * a) / b.params.slidesPerView, b.params.roundLengths && (o = s(o)), b.isHorizontal() ? b.slides[e].style.width = o + "px": b.slides[e].style.height = o + "px"), b.slides[e].swiperSlideSize = o, b.slidesSizesGrid.push(o), b.params.centeredSlides ? (t = t + o / 2 + r / 2 + a, 0 === e && (t = t - b.size / 2 - a), Math.abs(t) < .001 && (t = 0), i % b.params.slidesPerGroup === 0 && b.snapGrid.push(t), b.slidesGrid.push(t)) : (i % b.params.slidesPerGroup === 0 && b.snapGrid.push(t), b.slidesGrid.push(t), t = t + o + a), b.virtualSize += o + a, r = o, i++) 450 } 451 b.virtualSize = Math.max(b.virtualSize, b.size) + b.params.slidesOffsetAfter; 452 var f; 453 if (b.rtl && b.wrongRTL && ("slide" === b.params.effect || "coverflow" === b.params.effect) && b.wrapper.css({ 454 width: b.virtualSize + b.params.spaceBetween + "px" 455 }), (!b.support.flexbox || b.params.setWrapperSize) && (b.isHorizontal() ? b.wrapper.css({ 456 width: b.virtualSize + b.params.spaceBetween + "px" 457 }) : b.wrapper.css({ 458 height: b.virtualSize + b.params.spaceBetween + "px" 459 })), b.params.slidesPerColumn > 1 && (b.virtualSize = (o + b.params.spaceBetween) * n, b.virtualSize = Math.
459ceil(b.virtualSize / b.params.slidesPerColumn) - b.params.spaceBetween, b.wrapper.css({ 460 width: b.virtualSize + b.params.spaceBetween + "px" 461 }), b.params.centeredSlides)) { 462 for (f = [], e = 0; e < b.snapGrid.length; e++) b.snapGrid[e] < b.virtualSize + b.snapGrid[0] && f.push(b.snapGrid[e]); 463 b.snapGrid = f 464 } 465 if (!b.params.centeredSlides) { 466 for (f = [], e = 0; e < b.snapGrid.length; e++) b.snapGrid[e] <= b.virtualSize - b.size && f.push(b.snapGrid[e]); 467 b.snapGrid = f, 468 Math.floor(b.virtualSize - b.size) - Math.floor(b.snapGrid[b.snapGrid.length - 1]) > 1 && b.snapGrid.push(b.virtualSize - b.size) 469 } 470 0 === b.snapGrid.length && (b.snapGrid = [0]), 471 0 !== b.params.spaceBetween && (b.isHorizontal() ? b.rtl ? b.slides.css({ 472 marginLeft: a + "px" 473 }) : b.slides.css({ 474 marginRight: a + "px" 475 }) : b.slides.css({ 476 marginBottom: a + "px" 477 })), 478 b.params.watchSlidesProgress && b.updateSlidesOffset() 479 } 480 }, 481 b.updateSlidesOffset = function() { 482 for (var e = 0; e < b.slides.length; e++) b.slides[e].swiperSlideOffset = b.isHorizontal() ? b.slides[e].offsetLeft: b.slides[e].offsetTop 483 }, 484 b.updateSlidesProgress = function(e) { 485 if ("undefined" == typeof e && (e = b.translate || 0), 0 !== b.slides.length) { 486 "undefined" == typeof b.slides[0].swiperSlideOffset && b.updateSlidesOffset(); 487 var a = -e; 488 b.rtl && (a = e), 489 b.slides.removeClass(b.params.slideVisibleClass); 490 for (var t = 0; t < b.slides.length; t++) { 491 var r = b.slides[t], 492 i = (a - r.swiperSlideOffset) / (r.swiperSlideSize + b.params.spaceBetween); 493 if (b.params.watchSlidesVisibility) { 494 var s = -(a - r.swiperSlideOffset), 495 n = s + b.slidesSizesGrid[t], 496 o = s >= 0 && s < b.size || n > 0 && n <= b.size || 0 >= s && n >= b.size; 497 o && b.slides.eq(t).addClass(b.params.slideVisibleClass) 498 } 499 r.progress = b.rtl ? -i: i 500 } 501 } 502 }, 503 b.updateProgress = function(e) { 504 "undefined" == typeof e && (e = b.translate || 0); 505 var a = b.maxTranslate() - b.minTranslate(), 506 t = b.isBeginning, 507 r = b.isEnd; 508 0 === a ? (b.progress = 0, b.isBeginning = b.isEnd = !0) : (b.progress = (e - b.minTranslate()) / a, b.isBeginning = b.progress <= 0, b.isEnd = b.progress >= 1), 509 b.isBeginning && !t && b.emit("onReachBeginning", b), 510 b.isEnd && !r && b.emit("onReachEnd", b), 511 b.params.watchSlidesProgress && b.updateSlidesProgress(e), 512 b.emit("onProgress", b, b.progress) 513 }, 514 b.updateActiveIndex = function() { 515 var e, a, t, r = b.rtl ? b.translate: -b.translate; 516 for (a = 0; a < b.slidesGrid.length; a++)"undefined" != typeof b.slidesGrid[a + 1] ? r >= b.slidesGrid[a] && r < b.slidesGrid[a + 1] - (b.slidesGrid[a + 1] - b.slidesGrid[a]) / 2 ? e = a: r >= b.slidesGrid[a] && r < b.slidesGrid[a + 1] && (e = a + 1) : r >= b.slidesGrid[a] && (e = a); (0 > e || "undefined" == typeof e) && (e = 0), 517 t = Math.floor(e / b.params.slidesPerGroup), 518 t >= b.snapGrid.length && (t = b.snapGrid.length - 1), 519 e !== b.activeIndex && (b.snapIndex = t, b.previousIndex = b.activeIndex, b.activeIndex = e, b.updateClasses()) 520 }, 521 b.updateClasses = function() { 522 b.slides.removeClass(b.params.slideActiveClass + " " + b.params.slideNextClass + " " + b.params.slidePrevClass); 523 var e = b.slides.eq(b.activeIndex); 524 e.addClass(b.params.slideActiveClass); 525 var t = e.next("." + b.params.slideClass).addClass(b.params.slideNextClass); 526 b.params.loop && 0 === t.length && b.slides.eq(0).addClass(b.params.slideNextClass); 527 var r = e.prev("." + b.params.slideClass).addClass(b.params.slidePrevClass); 528 if (b.params.loop && 0 === r.length && b.slides.eq( - 1).addClass(b.params.slidePrevClass), b.paginationContainer && b.paginationContainer.length > 0) { 529 var i, s = b.params.loop ? Math.ceil((b.slides.length - 2 * b.loopedSlides) / b.params.slidesPerGroup) : b.snapGrid.length; 530 if (b.params.loop ? (i = Math.ceil((b.activeIndex - b.loopedSlides) / b.params.slidesPerGroup), i > b.slides.length - 1 - 2 * b.loopedSlides && (i -= b.slides.length - 2 * b.loopedSlides), i > s - 1 && (i -= s), 0 > i && "bullets" !== b.params.paginationType && (i = s + i)) : i = "undefined" != typeof b.snapIndex ? b.snapIndex: b.activeIndex || 0, "bullets" === b.params.paginationType && b.bullets && b.bullets.length > 0 && (b.bullets.removeClass(b.params.bulletActiveClass), b.paginationContainer.length > 1 ? b.bullets.each(function() { 531 a(this).index() === i && a(this).addClass(b.params.bulletActiveClass) 532 }) : b.bullets.eq(i).addClass(b.params.bulletActiveClass)), "fraction" === b.params.paginationType && (b.paginationContainer.find("." + b.params.paginationCurrentClass).text(i + 1), b.paginationContainer.find("." + b.params.paginationTotalClass).text(s)), "progress" === b.params.paginationType) { 533 var n = (i + 1) / s, 534 o = n, 535 l = 1; 536 b.isHorizontal() || (l = n, o = 1), 537 b.paginationContainer.find("." + b.params.paginationProgressbarClass).transform("translate3d(0,
5370,0) scaleX(" + o + ") scaleY(" + l + ")").transition(b.params.speed) 538 } 539 "custom" === b.params.paginationType && b.params.paginationCustomRender && (b.paginationContainer.html(b.params.paginationCustomRender(b, i + 1, s)), b.emit("onPaginationRendered", b, b.paginationContainer[0])) 540 } 541 b.params.loop || (b.params.prevButton && b.prevButton && b.prevButton.length > 0 && (b.isBeginning ? (b.prevButton.addClass(b.params.buttonDisabledClass), b.params.a11y && b.a11y && b.a11y.disable(b.prevButton)) : (b.prevButton.removeClass(b.params.buttonDisabledClass), b.params.a11y && b.a11y && b.a11y.enable(b.prevButton))), b.params.nextButton && b.nextButton && b.nextButton.length > 0 && (b.isEnd ? (b.nextButton.addClass(b.params.buttonDisabledClass), b.params.a11y && b.a11y && b.a11y.disable(b.nextButton)) : (b.nextButton.removeClass(b.params.buttonDisabledClass), b.params.a11y && b.a11y && b.a11y.enable(b.nextButton)))) 542 }, 543 b.updatePagination = function() { 544 if (b.params.pagination && b.paginationContainer && b.paginationContainer.length > 0) { 545 var e = ""; 546 if ("bullets" === b.params.paginationType) { 547 for (var a = b.params.loop ? Math.ceil((b.slides.length - 2 * b.loopedSlides) / b.params.slidesPerGroup) : b.snapGrid.length, t = 0; a > t; t++) e += b.params.paginationBulletRender ? b.params.paginationBulletRender(t, b.params.bulletClass) : "<" + b.params.paginationElement + ' class="' + b.params.bulletClass + '"></' + b.params.paginationElement + ">"; 548 b.paginationContainer.html(e), 549 b.bullets = b.paginationContainer.find("." + b.params.bulletClass), 550 b.params.paginationClickable && b.params.a11y && b.a11y && b.a11y.initPagination() 551 } 552 "fraction" === b.params.paginationType && (e = b.params.paginationFractionRender ? b.params.paginationFractionRender(b, b.params.paginationCurrentClass, b.params.paginationTotalClass) : '<span class="' + b.params.paginationCurrentClass + '"></span> / <span class="' + b.params.paginationTotalClass + '"></span>', b.paginationContainer.html(e)), 553 "progress" === b.params.paginationType && (e = b.params.paginationProgressRender ? b.params.paginationProgressRender(b, b.params.paginationProgressbarClass) : '<span class="' + b.params.paginationProgressbarClass + '"></span>', b.paginationContainer.html(e)), 554 "custom" !== b.params.paginationType && b.emit("onPaginationRendered", b, b.paginationContainer[0]) 555 } 556 }, 557 b.update = function(e) { 558 function a() { 559 r = Math.min(Math.max(b.translate, b.maxTranslate()), b.minTranslate()), 560 b.setWrapperTranslate(r), 561 b.updateActiveIndex(), 562 b.updateClasses() 563 } 564 if (b.updateContainerSize(), b.updateSlidesSize(), b.updateProgress(), b.updatePagination(), b.updateClasses(), b.params.scrollbar && b.scrollbar && b.scrollbar.set(), e) { 565 var t, r; 566 b.controller && b.controller.spline && (b.controller.spline = void 0), 567 b.params.freeMode ? (a(), b.params.autoHeight && b.updateAutoHeight()) : (t = ("auto" === b.params.slidesPerView || b.params.slidesPerView > 1) && b.isEnd && !b.params.centeredSlides ? b.slideTo(b.slides.length - 1, 0, !1, !0) : b.slideTo(b.activeIndex, 0, !1, !0), t || a()) 568 } else b.params.autoHeight && b.updateAutoHeight() 569 }, 570 b.onResize = function(e) { 571 b.params.breakpoints && b.setBreakpoint(); 572 var a = b.params.allowSwipeToPrev, 573 t = b.params.allowSwipeToNext; 574 b.params.allowSwipeToPrev = b.params.allowSwipeToNext = !0, 575 b.updateContainerSize(), 576 b.updateSlidesSize(), 577 ("auto" === b.params.slidesPerView || b.params.freeMode || e) && b.updatePagination(), 578 b.params.scrollbar && b.scrollbar && b.scrollbar.set(), 579 b.controller && b.controller.spline && (b.controller.spline = void 0); 580 var r = !1; 581 if (b.params.freeMode) { 582 var i = Math.min(Math.max(b.translate, b.maxTranslate()), b.minTranslate()); 583 b.setWrapperTranslate(i), 584 b.updateActiveIndex(), 585 b.updateClasses(), 586 b.params.autoHeight && b.updateAutoHeight() 587 } else b.updateClasses(), 588 r = ("auto" === b.params.slidesPerView || b.params.slidesPerView > 1) && b.isEnd && !b.params.centeredSlides ? b.slideTo(b.slides.length - 1, 0, !1, !0) : b.slideTo(b.activeIndex, 0, !1, !0); 589 b.params.lazyLoading && !r && b.lazy && b.lazy.load(), 590 b.params.allowSwipeToPrev = a, 591 b.params.allowSwipeToNext = t 592 }; 593 var T = ["mousedown", "mousemove", "mouseup"]; 594 window.navigator.pointerEnabled ? T = ["pointerdown", "pointermove", "pointerup"] : window.navigator.msPointerEnabled && (T = ["MSPointerDown", "MSPointerMove", "MSPointerUp"]), 595 b.touchEvents = { 596 start: b.support.touch || !b.params.simulateTouch ? "touchstart": T[0], 597 move: b.support.touch || !b.params.simulateTouch ? "touchmove": T[1], 598 end: b.support.touch || !b.params.simulateTouch ? "touchend": T[2] 599 }, 600 (window.navigator.pointerEnabled || window.navigator.msPointerEnabled) && ("container" === b.params.touchEventsTarget ? b.container: b.wrapper).addClass("swiper-wp8-" + b.params.direction), 601 b.initEvents = function(e) { 602 var a = e ? "off": "on", 603 t = e ? "removeEventListener": "addEventListener", 604 r = "container" === b.params.touchEventsTarget ? b.container[0] : b.wrapper[0], 605 s = b.support.touch ? r: document, 606 n = b.params.nested ? !0 : !1; 607 b.browser.ie ? (r[t](b.touchEvents.start, b.onTouchStart, !1), s[t](b.touchEvents.move, b.onTouchMove, n), s[t](b.touchEvents.end, b.onTouchEnd, !1)) : (b.supp
vendor: 24,397 bytes, lines 607-1027
607ort.touch && (r[t](b.touchEvents.start, b.onTouchStart, !1), r[t](b.touchEvents.move, b.onTouchMove, n), r[t](b.touchEvents.end, b.onTouchEnd, !1)), !i.simulateTouch || b.device.ios || b.device.android || (r[t]("mousedown", b.onTouchStart, !1), document[t]("mousemove", b.onTouchMove, n), document[t]("mouseup", b.onTouchEnd, !1))), 608 window[t]("resize", b.onResize), 609 b.params.nextButton && b.nextButton && b.nextButton.length > 0 && (b.nextButton[a]("click", b.onClickNext), b.params.a11y && b.a11y && b.nextButton[a]("keydown", b.a11y.onEnterKey)), 610 b.params.prevButton && b.prevButton && b.prevButton.length > 0 && (b.prevButton[a]("click", b.onClickPrev), b.params.a11y && b.a11y && b.prevButton[a]("keydown", b.a11y.onEnterKey)), 611 b.params.pagination && b.params.paginationClickable && (b.paginationContainer[a]("click", "." + b.params.bulletClass, b.onClickIndex), b.params.a11y && b.a11y && b.paginationContainer[a]("keydown", "." + b.params.bulletClass, b.a11y.onEnterKey)), 612 (b.params.preventClicks || b.params.preventClicksPropagation) && r[t]("click", b.preventClicks, !0) 613 }, 614 b.attachEvents = function() { 615 b.initEvents() 616 }, 617 b.detachEvents = function() { 618 b.initEvents(!0) 619 }, 620 b.allowClick = !0, 621 b.preventClicks = function(e) { 622 b.allowClick || (b.params.preventClicks && e.preventDefault(), b.params.preventClicksPropagation && b.animating && (e.stopPropagation(), e.stopImmediatePropagation())) 623 }, 624 b.onClickNext = function(e) { 625 e.preventDefault(), 626 (!b.isEnd || b.params.loop) && b.slideNext() 627 }, 628 b.onClickPrev = function(e) { 629 e.preventDefault(), 630 (!b.isBeginning || b.params.loop) && b.slidePrev() 631 }, 632 b.onClickIndex = function(e) { 633 e.preventDefault(); 634 var t = a(this).index() * b.params.slidesPerGroup; 635 b.params.loop && (t += b.loopedSlides), 636 b.slideTo(t) 637 }, 638 b.updateClickedSlide = function(e) { 639 var t = o(e, "." + b.params.slideClass), 640 r = !1; 641 if (t) for (var i = 0; i < b.slides.length; i++) b.slides[i] === t && (r = !0); 642 if (!t || !r) return b.clickedSlide = void 0, 643 void(b.clickedIndex = void 0); 644 if (b.clickedSlide = t, b.clickedIndex = a(t).index(), b.params.slideToClickedSlide && void 0 !== b.clickedIndex && b.clickedIndex !== b.activeIndex) { 645 var s, n = b.clickedIndex; 646 if (b.params.loop) { 647 if (b.animating) return; 648 s = a(b.clickedSlide).attr("data-swiper-slide-index"), 649 b.params.centeredSlides ? n < b.loopedSlides - b.params.slidesPerView / 2 || n > b.slides.length - b.loopedSlides + b.params.slidesPerView / 2 ? (b.fixLoop(), n = b.wrapper.children("." + b.params.slideClass + '[data-swiper-slide-index="' + s + '"]:not(.swiper-slide-duplicate)').eq(0).index(), setTimeout(function() { 650 b.slideTo(n) 651 }, 652 0)) : b.slideTo(n) : n > b.slides.length - b.params.slidesPerView ? (b.fixLoop(), n = b.wrapper.children("." + b.params.slideClass + '[data-swiper-slide-index="' + s + '"]:not(.swiper-slide-duplicate)').eq(0).index(), setTimeout(function() { 653 b.slideTo(n) 654 }, 655 0)) : b.slideTo(n) 656 } else b.slideTo(n) 657 } 658 }; 659 var S, C, z, M, E, P, k, I, L, B, D = "input, select, textarea, button", 660 H = Date.now(), 661 A = []; 662 b.animating = !1, 663 b.touches = { 664 startX: 0, 665 startY: 0, 666 currentX: 0, 667 currentY: 0, 668 diff: 0 669 }; 670 var G, O; 671 if (b.onTouchStart = function(e) { 672 if (e.originalEvent && (e = e.originalEvent), G = "touchstart" === e.type, G || !("which" in e) || 3 !== e.which) { 673 if (b.params.noSwiping && o(e, "." + b.params.noSwipingClass)) return void(b.allowClick = !0); 674 if (!b.params.swipeHandler || o(e, b.params.swipeHandler)) { 675 var t = b.touches.currentX = "touchstart" === e.type ? e.targetTouches[0].pageX: e.pageX, 676 r = b.touches.currentY = "touchstart" === e.type ? e.targetTouches[0].pageY: e.pageY; 677 if (! (b.device.ios && b.params.iOSEdgeSwipeDetection && t <= b.params.iOSEdgeSwipeThreshold)) { 678 if (S = !0, C = !1, z = !0, E = void 0, O = void 0, b.touches.startX = t, b.touches.startY = r, M = Date.now(), b.allowClick = !0, b.updateContainerSize(), b.swipeDirection = void 0, b.params.threshold > 0 && (I = !1), "touchstart" !== e.type) { 679 var i = !0; 680 a(e.target).is(D) && (i = !1), 681 document.activeElement && a(document.activeElement).is(D) && document.activeElement.blur(), 682 i && e.preventDefault() 683 } 684 b.emit("onTouchStart", b, e) 685 } 686 } 687 } 688 }, 689 b.onTouchMove = function(e) { 690 if (e.originalEvent && (e = e.originalEvent), !G || "mousemove" !== e.type) { 691 if (e.preventedByNestedSwiper) return b.touches.startX = "touchmove" === e.type ? e.targetTouches[0].pageX: e.pageX, 692 void(b.touches.startY = "touchmove" === e.type ? e.targetTouches[0].pageY: e.pageY); 693 if (b.params.onlyExternal) return b.allowClick = !1, 694 void(S && (b.touches.startX = b.touches.currentX = "touchmove" === e.type ? e.targetTouches[0].pageX: e.pageX, b.touches.startY = b.touches.currentY = "touchmove" === e.type ? e.targetTouches[0].pageY: e.pageY, M = Date.now())); 695 if (G && document.activeElement && e.target === document.activeElement && a(e.target).is(D)) return C = !0, 696 void(b.allowClick = !1); 697 if (z && b.emit("onTouchMove", b, e), !(e.targetTouches && e.targetTouches.length > 1)) { 698 if (b.touches.currentX = "touchmove" === e.type ? e.targetTouches[0].pageX: e.pageX, b.touches.currentY = "touchmove" === e.type ? e.targetTouches[0].pageY: e.pageY, "undefined" == typeof E) { 699 var t = 180 * Math.atan2(Math.abs(b.touches.currentY - b.touches.startY), Math.abs(b.touches.currentX - b.touches.startX)) / Math.PI; 700 E = b.isHorizontal() ? t > b.params.touchAngle: 90 - t > b.params.touchAngle 701 } 702 if (E && b.emit("onTouchMoveOpposite", b, e), "undefined" == typeof O && b.browser.ieTouch && (b.touches.currentX !== b.touches.startX || b.touches.currentY !== b.touches.startY) && (O = !0), S) { 703 if (E) return void(S = !1); 704 if (O || !b.browser.ieTouch) { 705 b.allowClick = !1, 706 b.emit("onSliderMove", b, e), 707 e.preventDefault(), 708 b.params.touchMoveStopPropagation && !b.params.nested && e.stopPropagation(), 709 C || (i.loop && b.fixLoop(), k = b.getWrapperTranslate(), b.setWrapperTransition(0), b.animating && b.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"), b.params.autoplay && b.autoplaying && (b.params.autoplayDisableOnInteraction ? b.stopAutoplay() : b.pauseAutoplay()), B = !1, b.params.grabCursor && (b.container[0].style.cursor = "move", b.container[0].style.cursor = "-webkit-grabbing", b.container[0].style.cursor = "-moz-grabbin", b.container[0].style.cursor = "grabbing")), 710 C = !0; 711 var r = b.touches.diff = b.isHorizontal() ? b.touches.currentX - b.touches.startX: b.touches.currentY - b.touches.startY; 712 r *= b.params.touchRatio, 713 b.rtl && (r = -r), 714 b.swipeDirection = r > 0 ? "prev": "next", 715 P = r + k; 716 var s = !0; 717 if (r > 0 && P > b.minTranslate() ? (s = !1, b.params.resistance && (P = b.minTranslate() - 1 + Math.pow( - b.minTranslate() + k + r, b.params.resistanceRatio))) : 0 > r && P < b.maxTranslate() && (s = !1, b.params.resistance && (P = b.maxTranslate() + 1 - Math.pow(b.maxTranslate() - k - r, b.params.resistanceRatio))), s && (e.preventedByNestedSwiper = !0), !b.params.allowSwipeToNext && "next" === b.swipeDirection && k > P && (P = k), !b.params.allowSwipeToPrev && "prev" === b.swipeDirection && P > k && (P = k), b.params.followFinger) { 718 if (b.params.threshold > 0) { 719 if (! (Math.abs(r) > b.params.threshold || I)) return void(P = k); 720 if (!I) return I = !0, 721 b.touches.startX = b.touches.currentX, 722 b.touches.startY = b.touches.currentY, 723 P = k, 724 void(b.touches.diff = b.isHorizontal() ? b.touches.currentX - b.touches.startX: b.touches.currentY - b.touches.startY) 725 } (b.params.freeMode || b.params.watchSlidesProgress) && b.updateActiveIndex(), 726 b.params.freeMode && (0 === A.length && A.push({ 727 position: b.touches[b.isHorizontal() ? "startX": "startY"], 728 time: M 729 }), A.push({ 730 position: b.touches[b.isHorizontal() ? "currentX": "currentY"], 731 time: (new window.Date).getTime() 732 })), 733 b.updateProgress(P), 734 b.setWrapperTranslate(P) 735 } 736 } 737 } 738 } 739 } 740 }, 741 b.onTouchEnd = function(e) { 742 if (e.originalEvent && (e = e.originalEvent), z && b.emit("onTouchEnd", b, e), z = !1, S) { 743 b.params.grabCursor && C && S && (b.container[0].style.cursor = "move", b.container[0].style.cursor = "-webkit-grab", b.container[0].style.cursor = "-moz-grab", b.container[0].style.cursor = "grab"); 744 var t = Date.now(), 745 r = t - M; 746 if (b.allowClick && (b.updateClickedSlide(e), b.emit("onTap", b, e), 300 > r && t - H > 300 && (L && clearTimeout(L), L = setTimeout(function() { 747 b && (b.params.paginationHide && b.paginationContainer.length > 0 && !a(e.target).hasClass(b.params.bulletClass) && b.paginationContainer.toggleClass(b.params.paginationHiddenClass), b.emit("onClick", b, e)) 748 }, 749 300)), 300 > r && 300 > t - H && (L && clearTimeout(L), b.emit("onDoubleTap", b, e))), H = Date.now(), setTimeout(function() { 750 b && (b.allowClick = !0) 751 }, 752 0), !S || !C || !b.swipeDirection || 0 === b.touches.diff || P === k) return void(S = C = !1); 753 S = C = !1; 754 var i; 755 if (i = b.params.followFinger ? b.rtl ? b.translate: -b.translate: -P, b.params.freeMode) { 756 if (i < -b.minTranslate()) return void b.slideTo(b.activeIndex); 757 if (i > -b.maxTranslate()) return void(b.slides.length < b.snapGrid.length ? b.slideTo(b.snapGrid.length - 1) : b.slideTo(b.slides.length - 1)); 758 if (b.params.freeModeMomentum) { 759 if (A.length > 1) { 760 var s = A.pop(), 761 n = A.pop(), 762 o = s.position - n.position, 763 l = s.time - n.time; 764 b.velocity = o / l, 765 b.velocity = b.velocity / 2, 766 Math.abs(b.velocity) < b.params.freeModeMinimumVelocity && (b.velocity = 0), 767 (l > 150 || (new window.Date).getTime() - s.time > 300) && (b.velocity = 0) 768 } else b.velocity = 0; 769 A.length = 0; 770 var p = 1e3 * b.params.freeModeMomentumRatio, 771 d = b.velocity * p, 772 u = b.translate + d; 773 b.rtl && (u = -u); 774 var c, m = !1, 775 h = 20 * Math.abs(b.velocity) * b.params.freeModeMomentumBounceRatio; 776 if (u < b.maxTranslate()) b.params.freeModeMomentumBounce ? (u + b.maxTranslate() < -h && (u = b.maxTranslate() - h), c = b.maxTranslate(), m = !0, B = !0) : u = b.maxTranslate(); 777 else if (u > b.minTranslate()) b.params.freeModeMomentumBounce ? (u - b.minTranslate() > h && (u = b.minTranslate() + h), c = b.minTranslate(), m = !0, B = !0) : u = b.minTranslate(); 778 else if (b.params.freeModeSticky) { 779 var f, g = 0; 780 for (g = 0; g < b.snapGrid.length; g += 1) if (b.snapGrid[g] > -u) { 781 f = g; 782 break 783 } 784 u = Math.abs(b.snapGrid[f] - u) < Math.abs(b.snapGrid[f - 1] - u) || "next" === b.swipeDirection ? b.snapGrid[f] : b.snapGrid[f - 1], 785 b.rtl || (u = -u) 786 } 787 if (0 !== b.velocity) p = b.rtl ? Math.abs(( - u - b.translate) / b.velocity) : Math.abs((u - b.translate) / b.velocity); 788 else if (b.params.freeModeSticky) return void b.slideReset(); 789 b.params.freeModeMomentumBounce && m ? (b.updateProgress(c), b.setWrapperTransition(p), b.setWrapperTranslate(u), b.onTransitionStart(), b.animating = !0, b.wrapper.transitionEnd(function() { 790 b && B && (b.emit("onMomentumBounce", b), b.setWrapperTransition(b.params.speed), b.setWrapperTranslate(c), b.wrapper.transitionEnd(function() { 791 b && b.onTransitionEnd() 792 })) 793 })) : b.velocity ? (b.updateProgress(u), b.setWrapperTransition(p), b.setWrapperTranslate(u), b.onTransitionStart(), b.animating || (b.animating = !0, b.wrapper.transitionEnd(function() { 794 b && b.onTransitionEnd() 795 }))) : b.updateProgress(u), 796 b.updateActiveIndex() 797 } 798 return void((!b.params.freeModeMomentum || r >= b.params.longSwipesMs) && (b.updateProgress(), b.updateActiveIndex())) 799 } 800 var v, w = 0, 801 y = b.slidesSizesGrid[0]; 802 for (v = 0; v < b.slidesGrid.length; v += b.params.slidesPerGroup)"undefined" != typeof b.slidesGrid[v + b.params.slidesPerGroup] ? i >= b.slidesGrid[v] && i < b.slidesGrid[v + b.params.slidesPerGroup] && (w = v, y = b.slidesGrid[v + b.params.slidesPerGroup] - b.slidesGrid[v]) : i >= b.slidesGrid[v] && (w = v, y = b.slidesGrid[b.slidesGrid.length - 1] - b.slidesGrid[b.slidesGrid.length - 2]); 803 var x = (i - b.slidesGrid[w]) / y; 804 if (r > b.params.longSwipesMs) { 805 if (!b.params.longSwipes) return void b.slideTo(b.activeIndex); 806 "next" === b.swipeDirection && (x >= b.params.longSwipesRatio ? b.slideTo(w + b.params.slidesPerGroup) : b.slideTo(w)), 807 "prev" === b.swipeDirection && (x > 1 - b.params.longSwipesRatio ? b.slideTo(w + b.params.slidesPerGroup) : b.slideTo(w)) 808 } else { 809 if (!b.params.shortSwipes) return void b.slideTo(b.activeIndex); 810 "next" === b.swipeDirection && b.slideTo(w + b.params.slidesPerGroup), 811 "prev" === b.swipeDirection && b.slideTo(w) 812 } 813 } 814 }, 815 b._slideTo = function(e, a) { 816 return b.slideTo(e, a, !0, !0) 817 }, 818 b.slideTo = function(e, a, t, r) { 819 "undefined" == typeof t && (t = !0), 820 "undefined" == typeof e && (e = 0), 821 0 > e && (e = 0), 822 b.snapIndex = Math.floor(e / b.params.slidesPerGroup), 823 b.snapIndex >= b.snapGrid.length && (b.snapIndex = b.snapGrid.length - 1); 824 var i = -b.snapGrid[b.snapIndex]; 825 b.params.autoplay && b.autoplaying && (r || !b.params.autoplayDisableOnInteraction ? b.pauseAutoplay(a) : b.stopAutoplay()), 826 b.updateProgress(i); 827 for (var s = 0; s < b.slidesGrid.length; s++) - Math.floor(100 * i) >= Math.floor(100 * b.slidesGrid[s]) && (e = s); 828 return ! b.params.allowSwipeToNext && i < b.translate && i < b.minTranslate() ? !1 : !b.params.allowSwipeToPrev && i > b.translate && i > b.maxTranslate() && (b.activeIndex || 0) !== e ? !1 : ("undefined" == typeof a && (a = b.params.speed), b.previousIndex = b.activeIndex || 0, b.activeIndex = e, b.rtl && -i === b.translate || !b.rtl && i === b.translate ? (b.params.autoHeight && b.updateAutoHeight(), b.updateClasses(), "slide" !== b.params.effect && b.setWrapperTranslate(i), !1) : (b.updateClasses(), b.onTransitionStart(t), 0 === a ? (b.setWrapperTranslate(i), b.setWrapperTransition(0), b.onTransitionEnd(t)) : (b.setWrapperTranslate(i), b.setWrapperTransition(a), b.animating || (b.animating = !0, b.wrapper.transitionEnd(function() { 829 b && b.onTransitionEnd(t) 830 }))), !0)) 831 }, 832 b.onTransitionStart = function(e) { 833 "undefined" == typeof e && (e = !0), 834 b.params.autoHeight && b.updateAutoHeight(), 835 b.lazy && b.lazy.onTransitionStart(), 836 e && (b.emit("onTransitionStart", b), b.activeIndex !== b.previousIndex && (b.emit("onSlideChangeStart", b), b.activeIndex > b.previousIndex ? b.emit("onSlideNextStart", b) : b.emit("onSlidePrevStart", b))) 837 }, 838 b.onTransitionEnd = function(e) { 839 b.animating = !1, 840 b.setWrapperTransition(0), 841 "undefined" == typeof e && (e = !0), 842 b.lazy && b.lazy.onTransitionEnd(), 843 e && (b.emit("onTransitionEnd", b), b.activeIndex !== b.previousIndex && (b.emit("onSlideChangeEnd", b), b.activeIndex > b.previousIndex ? b.emit("onSlideNextEnd", b) : b.emit("onSlidePrevEnd", b))), 844 b.params.hashnav && b.hashnav && b.hashnav.setHash() 845 }, 846 b.slideNext = function(e, a, t) { 847 if (b.params.loop) { 848 if (b.animating) return ! 1; 849 b.fixLoop(); 850 b.container[0].clientLeft; 851 return b.slideTo(b.activeIndex + b.params.slidesPerGroup, a, e, t) 852 } 853 return b.slideTo(b.activeIndex + b.params.slidesPerGroup, a, e, t) 854 }, 855 b._slideNext = function(e) { 856 return b.slideNext(!0, e, !0) 857 }, 858 b.slidePrev = function(e, a, t) { 859 if (b.params.loop) { 860 if (b.animating) return ! 1; 861 b.fixLoop(); 862 b.container[0].clientLeft; 863 return b.slideTo(b.activeIndex - 1, a, e, t) 864 } 865 return b.slideTo(b.activeIndex - 1, a, e, t) 866 }, 867 b._slidePrev = function(e) { 868 return b.slidePrev(!0, e, !0) 869 }, 870 b.slideReset = function(e, a, t) { 871 return b.slideTo(b.activeIndex, a, e) 872 }, 873 b.setWrapperTransition = function(e, a) { 874 b.wrapper.transition(e), 875 "slide" !== b.params.effect && b.effects[b.params.effect] && b.effects[b.params.effect].setTransition(e), 876 b.params.parallax && b.parallax && b.parallax.setTransition(e), 877 b.params.scrollbar && b.scrollbar && b.scrollbar.setTransition(e), 878 b.params.control && b.controller && b.controller.setTransition(e, a), 879 b.emit("onSetTransition", b, e) 880 }, 881 b.setWrapperTranslate = function(e, a, t) { 882 var r = 0, 883 i = 0, 884 n = 0; 885 b.isHorizontal() ? r = b.rtl ? -e: e: i = e, 886 b.params.roundLengths && (r = s(r), i = s(i)), 887 b.params.virtualTranslate || (b.support.transforms3d ? b.wrapper.transform("translate3d(" + r + "px, " + i + "px, " + n + "px)") : b.wrapper.transform("translate(" + r + "px, " + i + "px)")), 888 b.translate = b.isHorizontal() ? r: i; 889 var o, l = b.maxTranslate() - b.minTranslate(); 890 o = 0 === l ? 0 : (e - b.minTranslate()) / l, 891 o !== b.progress && b.updateProgress(e), 892 a && b.updateActiveIndex(), 893 "slide" !== b.params.effect && b.effects[b.params.effect] && b.effects[b.params.effect].setTranslate(b.translate), 894 b.params.parallax && b.parallax && b.parallax.setTranslate(b.translate), 895 b.params.scrollbar && b.scrollbar && b.scrollbar.setTranslate(b.translate), 896 b.params.control && b.controller && b.controller.setTranslate(b.translate, t), 897 b.emit("onSetTranslate", b, b.translate) 898 }, 899 b.getTranslate = function(e, a) { 900 var t, r, i, s; 901 return "undefined" == typeof a && (a = "x"), 902 b.params.virtualTranslate ? b.rtl ? -b.translate: b.translate: (i = window.getComputedStyle(e, null), window.WebKitCSSMatrix ? (r = i.transform || i.webkitTransform, r.split(",").length > 6 && (r = r.split(", ").map(function(e) { 903 return e.replace(",", ".") 904 }).join(", ")), s = new window.WebKitCSSMatrix("none" === r ? "": r)) : (s = i.MozTransform || i.OTransform || i.MsTransform || i.msTransform || i.transform || i.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), t = s.toString().split(",")), "x" === a && (r = window.WebKitCSSMatrix ? s.m41: 16 === t.length ? parseFloat(t[12]) : parseFloat(t[4])), "y" === a && (r = window.WebKitCSSMatrix ? s.m42: 16 === t.length ? parseFloat(t[13]) : parseFloat(t[5])), b.rtl && r && (r = -r), r || 0) 905 }, 906 b.getWrapperTranslate = function(e) { 907 return "undefined" == typeof e && (e = b.isHorizontal() ? "x": "y"), 908 b.getTranslate(b.wrapper[0], e) 909 }, 910 b.observers = [], b.initObservers = function() { 911 if (b.params.observeParents) for (var e = b.container.parents(), a = 0; a < e.length; a++) l(e[a]); 912 l(b.container[0], { 913 childList: !1 914 }), 915 l(b.wrapper[0], { 916 attributes: !1 917 }) 918 }, 919 b.disconnectObservers = function() { 920 for (var e = 0; e < b.observers.length; e++) b.observers[e].disconnect(); 921 b.observers = [] 922 }, 923 b.createLoop = function() { 924 b.wrapper.children("." + b.params.slideClass + "." + b.params.slideDuplicateClass).remove(); 925 var e = b.wrapper.children("." + b.params.slideClass); 926 "auto" !== b.params.slidesPerView || b.params.loopedSlides || (b.params.loopedSlides = e.length), 927 b.loopedSlides = parseInt(b.params.loopedSlides || b.params.slidesPerView, 10), 928 b.loopedSlides = b.loopedSlides + b.params.loopAdditionalSlides, 929 b.loopedSlides > e.length && (b.loopedSlides = e.length); 930 var t, r = [], 931 i = []; 932 for (e.each(function(t, s) { 933 var n = a(this); 934 t < b.loopedSlides && i.push(s), 935 t < e.length && t >= e.length - b.loopedSlides && r.push(s), 936 n.attr("data-swiper-slide-index", t) 937 }), t = 0; t < i.length; t++) b.wrapper.append(a(i[t].cloneNode(!0)).addClass(b.params.slideDuplicateClass)); 938 for (t = r.length - 1; t >= 0; t--) b.wrapper.prepend(a(r[t].cloneNode(!0)).addClass(b.params.slideDuplicateClass)) 939 }, 940 b.destroyLoop = function() { 941 b.wrapper.children("." + b.params.slideClass + "." + b.params.slideDuplicateClass).remove(), 942 b.slides.removeAttr("data-swiper-slide-index") 943 }, 944 b.reLoop = function(e) { 945 var a = b.activeIndex - b.loopedSlides; 946 b.destroyLoop(), 947 b.createLoop(), 948 b.updateSlidesSize(), 949 e && b.slideTo(a + b.loopedSlides, 0, !1) 950 }, 951 b.fixLoop = function() { 952 var e; 953 b.activeIndex < b.loopedSlides ? (e = b.slides.length - 3 * b.loopedSlides + b.activeIndex, e += b.loopedSlides, b.slideTo(e, 0, !1, !0)) : ("auto" === b.params.slidesPerView && b.activeIndex >= 2 * b.loopedSlides || b.activeIndex > b.slides.length - 2 * b.params.slidesPerView) && (e = -b.slides.length + b.activeIndex + b.loopedSlides, e += b.loopedSlides, b.slideTo(e, 0, !1, !0)) 954 }, 955 b.appendSlide = function(e) { 956 if (b.params.loop && b.destroyLoop(), "object" == typeof e && e.length) for (var a = 0; a < e.length; a++) e[a] && b.wrapper.append(e[a]); 957 else b.wrapper.append(e); 958 b.params.loop && b.createLoop(), 959 b.params.observer && b.support.observer || b.update(!0) 960 }, 961 b.prependSlide = function(e) { 962 b.params.loop && b.destroyLoop(); 963 var a = b.activeIndex + 1; 964 if ("object" == typeof e && e.length) { 965 for (var t = 0; t < e.length; t++) e[t] && b.wrapper.prepend(e[t]); 966 a = b.activeIndex + e.length 967 } else b.wrapper.prepend(e); 968 b.params.loop && b.createLoop(), 969 b.params.observer && b.support.observer || b.update(!0), 970 b.slideTo(a, 0, !1) 971 }, 972 b.removeSlide = function(e) { 973 b.params.loop && (b.destroyLoop(), b.slides = b.wrapper.children("." + b.params.slideClass)); 974 var a, t = b.activeIndex; 975 if ("object" == typeof e && e.length) { 976 for (var r = 0; r < e.length; r++) a = e[r], 977 b.slides[a] && b.slides.eq(a).remove(), 978 t > a && t--; 979 t = Math.max(t, 0) 980 } else a = e, 981 b.slides[a] && b.slides.eq(a).remove(), 982 t > a && t--, 983 t = Math.max(t, 0); 984 b.params.loop && b.createLoop(), 985 b.params.observer && b.support.observer || b.update(!0), 986 b.params.loop ? b.slideTo(t + b.loopedSlides, 0, !1) : b.slideTo(t, 0, !1) 987 }, 988 b.removeAllSlides = function() { 989 for (var e = [], a = 0; a < b.slides.length; a++) e.push(a); 990 b.removeSlide(e) 991 }, 992 b.effects = { 993 fade: { 994 setTranslate: function() { 995 for (var e = 0; e < b.slides.length; e++) { 996 var a = b.slides.eq(e), 997 t = a[0].swiperSlideOffset, 998 r = -t; 999 b.params.virtualTranslate || (r -= b.translate); 1000 var i = 0; 1001 b.isHorizontal() || (i = r, r = 0); 1002 var s = b.params.fade.crossFade ? Math.max(1 - Math.abs(a[0].progress), 0) : 1 + Math.min(Math.max(a[0].progress, -1), 0); 1003 a.css({ 1004 opacity: s 1005 }).transform("translate3d(" + r + "px, " + i + "px, 0px)") 1006 } 1007 }, 1008 setTransition: function(e) { 1009 if (b.slides.transition(e), b.params.virtualTranslate && 0 !== e) { 1010 var a = !1; 1011 b.slides.transitionEnd(function() { 1012 if (!a && b) { 1013 a = !0, 1014 b.animating = !1; 1015 for (var e = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], t = 0; t < e.length; t++) b.wrapper.trigger(e[t]) 1016 } 1017 }) 1018 } 1019 } 1020 }, 1021 flip: { 1022 setTranslate: function() { 1023 for (var e = 0; e < b.slides.length; e++) { 1024 var t = b.slides.eq(e), 1025 r = t[0].progress; 1026 b.params.flip.limitRotation && (r = Math.max(Math.min(t[0].progress, 1), -1)); 1027 var i = t[0].swiperSlideOffset,
1028 s = -180 * r, 1029 n = s, 1030 o = 0, 1031 l = -i, 1032 p = 0; 1033 if (b.isHorizontal() ? b.rtl && (n = -n) : (p = l, l = 0, o = -n, n = 0), t[0].style.zIndex = -Math.abs(Math.round(r)) + b.slides.length, b.params.flip.slideShadows) { 1034 var d = b.isHorizontal() ? t.find(".swiper-slide-shadow-left") : t.find(".swiper-slide-shadow-top"), 1035 u = b.isHorizontal() ? t.find(".swiper-slide-shadow-right") : t.find(".swiper-slide-shadow-bottom"); 1036 0 === d.length && (d = a('<div class="swiper-slide-shadow-' + (b.isHorizontal() ? "left": "top") + '"></div>'), t.append(d)), 1037 0 === u.length && (u = a('<div class="swiper-slide-shadow-' + (b.isHorizontal() ? "right": "bottom") + '"></div>'), t.append(u)), 1038 d.length && (d[0].style.opacity = Math.max( - r, 0)), 1039 u.length && (u[0].style.opacity = Math.max(r, 0)) 1040 } 1041 t.transform("translate3d(" + l + "px, " + p + "px, 0px) rotateX(" + o + "deg) rotateY(" + n + "deg)") 1042 } 1043 }, 1044 setTransition: function(e) { 1045 if (b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), b.params.virtualTranslate && 0 !== e) { 1046 var t = !1; 1047 b.slides.eq(b.activeIndex).transitionEnd(function() { 1048 if (!t && b && a(this).hasClass(b.params.slideActiveClass)) { 1049 t = !0, 1050 b.animating = !1; 1051 for (var e = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], r = 0; r < e.length; r++) b.wrapper.trigger(e[r]) 1052 } 1053 }) 1054 } 1055 } 1056 }, 1057 cube: { 1058 setTranslate: function() { 1059 var e, t = 0; 1060 b.params.cube.shadow && (b.isHorizontal() ? (e = b.wrapper.find(".swiper-cube-shadow"), 0 === e.length && (e = a('<div class="swiper-cube-shadow"></div>'), b.wrapper.append(e)), e.css({ 1061 height: b.width + "px" 1062 })) : (e = b.container.find(".swiper-cube-shadow"), 0 === e.length && (e = a('<div class="swiper-cube-shadow"></div>'), b.container.append(e)))); 1063 for (var r = 0; r < b.slides.length; r++) { 1064 var i = b.slides.eq(r), 1065 s = 90 * r, 1066 n = Math.floor(s / 360); 1067 b.rtl && (s = -s, n = Math.floor( - s / 360)); 1068 var o = Math.max(Math.min(i[0].progress, 1), -1), 1069 l = 0, 1070 p = 0, 1071 d = 0; 1072 r % 4 === 0 ? (l = 4 * -n * b.size, d = 0) : (r - 1) % 4 === 0 ? (l = 0, d = 4 * -n * b.size) : (r - 2) % 4 === 0 ? (l = b.size + 4 * n * b.size, d = b.size) : (r - 3) % 4 === 0 && (l = -b.size, d = 3 * b.size + 4 * b.size * n), 1073 b.rtl && (l = -l), 1074 b.isHorizontal() || (p = l, l = 0); 1075 var u = "rotateX(" + (b.isHorizontal() ? 0 : -s) + "deg) rotateY(" + (b.isHorizontal() ? s: 0) + "deg) translate3d(" + l + "px, " + p + "px, " + d + "px)"; 1076 if (1 >= o && o > -1 && (t = 90 * r + 90 * o, b.rtl && (t = 90 * -r - 90 * o)), i.transform(u), b.params.cube.slideShadows) { 1077 var c = b.isHorizontal() ? i.find(".swiper-slide-shadow-left") : i.find(".swiper-slide-shadow-top"), 1078 m = b.isHorizontal() ? i.find(".swiper-slide-shadow-right") : i.find(".swiper-slide-shadow-bottom"); 1079 0 === c.length && (c = a('<div class="swiper-slide-shadow-' + (b.isHorizontal() ? "left": "top") + '"></div>'), i.append(c)), 1080 0 === m.length && (m = a('<div class="swiper-slide-shadow-' + (b.isHorizontal() ? "right": "bottom") + '"></div>'), i.append(m)), 1081 c.length && (c[0].style.opacity = Math.max( - o, 0)), 1082 m.length && (m[0].style.opacity = Math.max(o, 0)) 1083 } 1084 } 1085 if (b.wrapper.css({ 1086 "-webkit-transform-origin": "50% 50% -" + b.size / 2 + "px", 1087 "-moz-transform-origin": "50% 50% -" + b.size / 2 + "px", 1088 "-ms-transform-origin": "50% 50% -" + b.size / 2 + "px", 1089 "transform-origin": "50% 50% -" + b.size / 2 + "px" 1090 }), b.params.cube.shadow) if (b.isHorizontal()) e.transform("translate3d(0px, " + (b.width / 2 + b.params.cube.shadowOffset) + "px, " + -b.width / 2 + "px) rotateX(90deg) rotateZ(0deg) scale(" + b.params.cube.shadowScale + ")"); 1091 else { 1092 var h = Math.abs(t) - 90 * Math.floor(Math.abs(t) / 90), 1093 f = 1.5 - (Math.sin(2 * h * Math.PI / 360) / 2 + Math.cos(2 * h * Math.PI / 360) / 2), 1094 g = b.params.cube.shadowScale, 1095 v = b.params.cube.shadowScale / f, 1096 1097 w = b.params.cube.shadowOffset; 1098 e.transform("scale3d(" + g + ", 1, " + v + ") translate3d(0px, " + (b.height / 2 + w) + "px, " + -b.height / 2 / v + "px) rotateX(-90deg)") 1099 } 1100 var y = b.isSafari || b.isUiWebView ? -b.size / 2 : 0; 1101 b.wrapper.transform("translate3d(0px,0," + y + "px) rotateX(" + (b.isHorizontal() ? 0 : t) + "deg) rotateY(" + (b.isHorizontal() ? -t: 0) + "deg)") 1102 }, 1103 setTransition: function(e) { 1104 b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e), 1105 b.params.cube.shadow && !b.isHorizontal() && b.container.find(".swiper-cube-shadow").transition(e) 1106 } 1107 }, 1108 coverflow: { 1109 setTranslate: function() { 1110 for (var e = b.translate, 1111 t = b.isHorizontal() ? -e + b.width / 2 : -e + b.height / 2, r = b.isHorizontal() ? b.params.coverflow.rotate: -b.params.coverflow.rotate, i = b.params.coverflow.depth, s = 0, n = b.slides.length; n > s; s++) { 1112 var o = b.slides.eq(s), 1113 l = b.slidesSizesGrid[s], 1114 p = o[0].swiperSlideOffset, 1115 d = (t - p - l / 2) / l * b.params.coverflow.modifier, 1116 u = b.isHorizontal() ? r * d: 0, 1117 c = b.isHorizontal() ? 0 : r * d, 1118 m = -i * Math.abs(d), 1119 h = b.isHorizontal() ? 0 : b.params.coverflow.stretch * d, 1120 f = b.isHorizontal() ? b.params.coverflow.stretch * d: 0; 1121 Math.abs(f) < .001 && (f = 0), 1122 Math.abs(h) < .001 && (h = 0), 1123 Math.abs(m) < .001 && (m = 0), 1124 Math.abs(u) < .001 && (u = 0), 1125 Math.abs(c) < .001 && (c = 0); 1126 var g = "translate3d(" + f + "px," + h + "px," + m + "px) rotateX(" + c + "deg) rotateY(" + u + "deg)"; 1127 if (o.transform(g), o[0].style.zIndex = -Math.abs(Math.round(d)) + 1, b.params.coverflow.slideShadows) { 1128 var v = b.isHorizontal() ? o.find(".swiper-slide-shadow-left") : o.find(".swiper-slide-shadow-top"), 1129 w = b.isHorizontal() ? o.find(".swiper-slide-shadow-right") : o.find(".swiper-slide-shadow-bottom"); 1130 0 === v.length && (v = a('<div class="swiper-slide-shadow-' + (b.isHorizontal() ? "left": "to
vendor: 35,827 bytes, lines 1130-1932
1130p") + '"></div>'), o.append(v)), 1131 0 === w.length && (w = a('<div class="swiper-slide-shadow-' + (b.isHorizontal() ? "right": "bottom") + '"></div>'), o.append(w)), 1132 v.length && (v[0].style.opacity = d > 0 ? d: 0), 1133 w.length && (w[0].style.opacity = -d > 0 ? -d: 0) 1134 } 1135 } 1136 if (b.browser.ie) { 1137 var y = b.wrapper[0].style; 1138 y.perspectiveOrigin = t + "px 50%" 1139 } 1140 }, 1141 setTransition: function(e) { 1142 b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e) 1143 } 1144 } 1145 }, 1146 b.lazy = { 1147 initialImageLoaded: !1, 1148 loadImageInSlide: function(e, t) { 1149 if ("undefined" != typeof e && ("undefined" == typeof t && (t = !0), 0 !== b.slides.length)) { 1150 var r = b.slides.eq(e), 1151 i = r.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)"); ! r.hasClass("swiper-lazy") || r.hasClass("swiper-lazy-loaded") || r.hasClass("swiper-lazy-loading") || (i = i.add(r[0])), 1152 0 !== i.length && i.each(function() { 1153 var e = a(this); 1154 e.addClass("swiper-lazy-loading"); 1155 var i = e.attr("data-background"), 1156 s = e.attr("data-src"), 1157 n = e.attr("data-srcset"); 1158 b.loadImage(e[0], s || i, n, !1, 1159 function() { 1160 if (i ? (e.css("background-image", 'url("' + i + '")'), e.removeAttr("data-background")) : (n && (e.attr("srcset", n), e.removeAttr("data-srcset")), s && (e.attr("src", s), e.removeAttr("data-src"))), e.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"), r.find(".swiper-lazy-preloader, .preloader").remove(), b.params.loop && t) { 1161 var a = r.attr("data-swiper-slide-index"); 1162 if (r.hasClass(b.params.slideDuplicateClass)) { 1163 var o = b.wrapper.children('[data-swiper-slide-index="' + a + '"]:not(.' + b.params.slideDuplicateClass + ")"); 1164 b.lazy.loadImageInSlide(o.index(), !1) 1165 } else { 1166 var l = b.wrapper.children("." + b.params.slideDuplicateClass + '[data-swiper-slide-index="' + a + '"]'); 1167 b.lazy.loadImageInSlide(l.index(), !1) 1168 } 1169 } 1170 b.emit("onLazyImageReady", b, r[0], e[0]) 1171 }), 1172 b.emit("onLazyImageLoad", b, r[0], e[0]) 1173 }) 1174 } 1175 }, 1176 load: function() { 1177 var e; 1178 if (b.params.watchSlidesVisibility) b.wrapper.children("." + b.params.slideVisibleClass).each(function() { 1179 b.lazy.loadImageInSlide(a(this).index()) 1180 }); 1181 else if (b.params.slidesPerView > 1) for (e = b.activeIndex; e < b.activeIndex + b.params.slidesPerView; e++) b.slides[e] && b.lazy.loadImageInSlide(e); 1182 else b.lazy.loadImageInSlide(b.activeIndex); 1183 if (b.params.lazyLoadingInPrevNext) if (b.params.slidesPerView > 1 || b.params.lazyLoadingInPrevNextAmount && b.params.lazyLoadingInPrevNextAmount > 1) { 1184 var t = b.params.lazyLoadingInPrevNextAmount, 1185 r = b.params.slidesPerView, 1186 i = Math.min(b.activeIndex + r + Math.max(t, r), b.slides.length), 1187 s = Math.max(b.activeIndex - Math.max(r, t), 0); 1188 for (e = b.activeIndex + b.params.slidesPerView; i > e; e++) b.slides[e] && b.lazy.loadImageInSlide(e); 1189 for (e = s; e < b.activeIndex; e++) b.slides[e] && b.lazy.loadImageInSlide(e) 1190 } else { 1191 var n = b.wrapper.children("." + b.params.slideNextClass); 1192 n.length > 0 && b.lazy.loadImageInSlide(n.index()); 1193 var o = b.wrapper.children("." + b.params.slidePrevClass); 1194 o.length > 0 && b.lazy.loadImageInSlide(o.index()) 1195 } 1196 }, 1197 onTransitionStart: function() { 1198 b.params.lazyLoading && (b.params.lazyLoadingOnTransitionStart || !b.params.lazyLoadingOnTransitionStart && !b.lazy.initialImageLoaded) && b.lazy.load() 1199 }, 1200 onTransitionEnd: function() { 1201 b.params.lazyLoading && !b.params.lazyLoadingOnTransitionStart && b.lazy.load() 1202 } 1203 }, 1204 b.scrollbar = { 1205 isTouched: !1, 1206 setDragPosition: function(e) { 1207 var a = b.scrollbar, 1208 t = b.isHorizontal() ? "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].pageX: e.pageX || e.clientX: "touchstart" === e.type || "touchmove" === e.type ? e.targetTouches[0].pageY: e.pageY || e.clientY, 1209 r = t - a.track.offset()[b.isHorizontal() ? "left": "top"] - a.dragSize / 2, 1210 i = -b.minTranslate() * a.moveDivider, 1211 s = -b.maxTranslate() * a.moveDivider; 1212 i > r ? r = i: r > s && (r = s), 1213 r = -r / a.moveDivider, 1214 b.updateProgress(r), 1215 b.setWrapperTranslate(r, !0) 1216 }, 1217 dragStart: function(e) { 1218 var a = b.scrollbar; 1219 a.isTouched = !0, 1220 e.preventDefault(), 1221 e.stopPropagation(), 1222 a.setDragPosition(e), 1223 clearTimeout(a.dragTimeout), 1224 a.track.transition(0), 1225 b.params.scrollbarHide && a.track.css("opacity", 1), 1226 b.wrapper.transition(100), 1227 a.drag.transition(100), 1228 b.emit("onScrollbarDragStart", b) 1229 }, 1230 dragMove: function(e) { 1231 var a = b.scrollbar; 1232 a.isTouched && (e.preventDefault ? e.preventDefault() : e.returnValue = !1, a.setDragPosition(e), b.wrapper.transition(0), a.track.transition(0), a.drag.transition(0), b.emit("onScrollbarDragMove", b)) 1233 }, 1234 dragEnd: function(e) { 1235 var a = b.scrollbar; 1236 a.isTouched && (a.isTouched = !1, b.params.scrollbarHide && (clearTimeout(a.dragTimeout), a.dragTimeout = setTimeout(function() { 1237 a.track.css("opacity", 0), 1238 a.track.transition(400) 1239 }, 1240 1e3)), b.emit("onScrollbarDragEnd", b), b.params.scrollbarSnapOnRelease && b.slideReset()) 1241 }, 1242 enableDraggable: function() { 1243 var e = b.scrollbar, 1244 t = b.support.touch ? e.track: document; 1245 a(e.track).on(b.touchEvents.start, e.dragStart), 1246 a(t).on(b.touchEvents.move, e.dragMove), 1247 a(t).on(b.touchEvents.end, e.dragEnd) 1248 }, 1249 disableDraggable: function() { 1250 var e = b.scrollbar, 1251 t = b.support.touch ? e.track: document; 1252 a(e.track).off(b.touchEvents.start, e.dragStart), 1253 a(t).off(b.touchEvents.move, e.dragMove), 1254 a(t).off(b.touchEvents.end, e.dragEnd) 1255 }, 1256 set: function() { 1257 if (b.params.scrollbar) { 1258 var e = b.scrollbar; 1259 e.track = a(b.params.scrollbar), 1260 b.params.uniqueNavElements && "string" == typeof b.params.scrollbar && e.track.length > 1 && 1 === b.container.find(b.params.scrollbar).length && (e.track = b.container.find(b.params.scrollbar)), 1261 e.drag = e.track.find(".swiper-scrollbar-drag"), 1262 0 === e.drag.length && (e.drag = a('<div class="swiper-scrollbar-drag"></div>'), e.track.append(e.drag)), 1263 e.drag[0].style.width = "", 1264 e.drag[0].style.height = "", 1265 e.trackSize = b.isHorizontal() ? e.track[0].offsetWidth: e.track[0].offsetHeight, 1266 e.divider = b.size / b.virtualSize, 1267 e.moveDivider = e.divider * (e.trackSize / b.size), 1268 e.dragSize = e.trackSize * e.divider, 1269 b.isHorizontal() ? e.drag[0].style.width = e.dragSize + "px": e.drag[0].style.height = e.dragSize + "px", 1270 e.divider >= 1 ? e.track[0].style.display = "none": e.track[0].style.display = "", 1271 b.params.scrollbarHide && (e.track[0].style.opacity = 0) 1272 } 1273 }, 1274 setTranslate: function() { 1275 if (b.params.scrollbar) { 1276 var e, a = b.scrollbar, 1277 t = (b.translate || 0, a.dragSize); 1278 e = (a.trackSize - a.dragSize) * b.progress, 1279 b.rtl && b.isHorizontal() ? (e = -e, e > 0 ? (t = a.dragSize - e, e = 0) : -e + a.dragSize > a.trackSize && (t = a.trackSize + e)) : 0 > e ? (t = a.dragSize + e, e = 0) : e + a.dragSize > a.trackSize && (t = a.trackSize - e), 1280 b.isHorizontal() ? (b.support.transforms3d ? a.drag.transform("translate3d(" + e + "px, 0, 0)") : a.drag.transform("translateX(" + e + "px)"), a.drag[0].style.width = t + "px") : (b.support.transforms3d ? a.drag.transform("translate3d(0px, " + e + "px, 0)") : a.drag.transform("translateY(" + e + "px)"), a.drag[0].style.height = t + "px"), 1281 b.params.scrollbarHide && (clearTimeout(a.timeout), a.track[0].style.opacity = 1, a.timeout = setTimeout(function() { 1282 a.track[0].style.opacity = 0, 1283 a.track.transition(400) 1284 }, 1285 1e3)) 1286 } 1287 }, 1288 setTransition: function(e) { 1289 b.params.scrollbar && b.scrollbar.drag.transition(e) 1290 } 1291 }, 1292 b.controller = { 1293 LinearSpline: function(e, a) { 1294 this.x = e, 1295 this.y = a, 1296 this.lastIndex = e.length - 1; 1297 var t, r; 1298 this.x.length; 1299 this.interpolate = function(e) { 1300 return e ? (r = i(this.x, e), t = r - 1, (e - this.x[t]) * (this.y[r] - this.y[t]) / (this.x[r] - this.x[t]) + this.y[t]) : 0 1301 }; 1302 var i = function() { 1303 var e, a, t; 1304 return function(r, i) { 1305 for (a = -1, e = r.length; e - a > 1;) r[t = e + a >> 1] <= i ? a = t: e = t; 1306 return e 1307 } 1308 } () 1309 }, 1310 getInterpolateFunction: function(e) { 1311 b.controller.spline || (b.controller.spline = b.params.loop ? new b.controller.LinearSpline(b.slidesGrid, e.slidesGrid) : new b.controller.LinearSpline(b.snapGrid, e.snapGrid)) 1312 }, 1313 setTranslate: function(e, a) { 1314 function r(a) { 1315 e = a.rtl && "horizontal" === a.params.direction ? -b.translate: b.translate, 1316 "slide" === b.params.controlBy && (b.controller.getInterpolateFunction(a), s = -b.controller.spline.interpolate( - e)), 1317 s && "container" !== b.params.controlBy || (i = (a.maxTranslate() - a.minTranslate()) / (b.maxTranslate() - b.minTranslate()), s = (e - b.minTranslate()) * i + a.minTranslate()), 1318 b.params.controlInverse && (s = a.maxTranslate() - s), 1319 a.updateProgress(s), 1320 a.setWrapperTranslate(s, !1, b), 1321 a.updateActiveIndex() 1322 } 1323 var i, s, n = b.params.control; 1324 if (b.isArray(n)) for (var o = 0; o < n.length; o++) n[o] !== a && n[o] instanceof t && r(n[o]); 1325 else n instanceof t && a !== n && r(n) 1326 }, 1327 setTransition: function(e, a) { 1328 function r(a) { 1329 a.setWrapperTransition(e, b), 1330 0 !== e && (a.onTransitionStart(), a.wrapper.transitionEnd(function() { 1331 s && (a.params.loop && "slide" === b.params.controlBy && a.fixLoop(), a.onTransitionEnd()) 1332 })) 1333 } 1334 var i, s = b.params.control; 1335 if (b.isArray(s)) for (i = 0; i < s.length; i++) s[i] !== a && s[i] instanceof t && r(s[i]); 1336 else s instanceof t && a !== s && r(s) 1337 } 1338 }, 1339 b.hashnav = { 1340 init: function() { 1341 if (b.params.hashnav) { 1342 b.hashnav.initialized = !0; 1343 var e = document.location.hash.replace("#", ""); 1344 if (e) for (var a = 0, 1345 t = 0, 1346 r = b.slides.length; r > t; t++) { 1347 var i = b.slides.eq(t), 1348 s = i.attr("data-hash"); 1349 if (s === e && !i.hasClass(b.params.slideDuplicateClass)) { 1350 var n = i.index(); 1351 b.slideTo(n, a, b.params.runCallbacksOnInit, !0) 1352 } 1353 } 1354 } 1355 }, 1356 setHash: function() { 1357 b.hashnav.initialized && b.params.hashnav && (document.location.hash = b.slides.eq(b.activeIndex).attr("data-hash") || "") 1358 } 1359 }, 1360 b.disableKeyboardControl = function() { 1361 b.params.keyboardControl = !1, 1362 a(document).off("keydown", p) 1363 }, 1364 b.enableKeyboardControl = function() { 1365 b.params.keyboardControl = !0, 1366 a(document).on("keydown", p) 1367 }, 1368 b.mousewheel = { 1369 event: !1, 1370 lastScrollTime: (new window.Date).getTime() 1371 }, 1372 b.params.mousewheelControl) { 1373 try { 1374 new window.WheelEvent("wheel"), 1375 b.mousewheel.event = "wheel" 1376 } catch(N) { (window.WheelEvent || b.container[0] && "wheel" in b.container[0]) && (b.mousewheel.event = "wheel") 1377 } ! b.mousewheel.event && window.WheelEvent, 1378 b.mousewheel.event || void 0 === document.onmousewheel || (b.mousewheel.event = "mousewheel"), 1379 b.mousewheel.event || (b.mousewheel.event = "DOMMouseScroll") 1380 } 1381 b.disableMousewheelControl = function() { 1382 return b.mousewheel.event ? (b.container.off(b.mousewheel.event, d), !0) : !1 1383 }, 1384 b.enableMousewheelControl = function() { 1385 return b.mousewheel.event ? (b.container.on(b.mousewheel.event, d), !0) : !1 1386 }, 1387 b.parallax = { 1388 setTranslate: function() { 1389 b.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function() { 1390 u(this, b.progress) 1391 }), 1392 b.slides.each(function() { 1393 var e = a(this); 1394 e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function() { 1395 var a = Math.min(Math.max(e[0].progress, -1), 1); 1396 u(this, a) 1397 }) 1398 }) 1399 }, 1400 setTransition: function(e) { 1401 "undefined" == typeof e && (e = b.params.speed), 1402 b.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function() { 1403 var t = a(this), 1404 r = parseInt(t.attr("data-swiper-parallax-duration"), 10) || e; 1405 0 === e && (r = 0), 1406 t.transition(r) 1407 }) 1408 } 1409 }, 1410 b._plugins = []; 1411 for (var R in b.plugins) { 1412 var W = b.plugins[R](b, b.params[R]); 1413 W && b._plugins.push(W) 1414 } 1415 return b.callPlugins = function(e) { 1416 for (var a = 0; a < b._plugins.length; a++) e in b._plugins[a] && b._plugins[a][e](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]) 1417 }, 1418 b.emitterEventListeners = {}, 1419 b.emit = function(e) { 1420 b.params[e] && b.params[e](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]); 1421 var a; 1422 if (b.emitterEventListeners[e]) for (a = 0; a < b.emitterEventListeners[e].length; a++) b.emitterEventListeners[e][a](arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]); 1423 b.callPlugins && b.callPlugins(e, arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]) 1424 }, 1425 b.on = function(e, a) { 1426 return e = c(e), 1427 b.emitterEventListeners[e] || (b.emitterEventListeners[e] = []), 1428 b.emitterEventListeners[e].push(a), 1429 b 1430 }, 1431 b.off = function(e, a) { 1432 var t; 1433 if (e = c(e), "undefined" == typeof a) return b.emitterEventListeners[e] = [], 1434 b; 1435 if (b.emitterEventListeners[e] && 0 !== b.emitterEventListeners[e].length) { 1436 for (t = 0; t < b.emitterEventListeners[e].length; t++) b.emitterEventListeners[e][t] === a && b.emitterEventListeners[e].splice(t, 1); 1437 return b 1438 } 1439 }, 1440 b.once = function(e, a) { 1441 e = c(e); 1442 var t = function() { 1443 a(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]), 1444 b.off(e, t) 1445 }; 1446 return b.on(e, t), 1447 b 1448 }, 1449 b.a11y = { 1450 makeFocusable: function(e) { 1451 return e.attr("tabIndex", "0"), 1452 e 1453 }, 1454 addRole: function(e, a) { 1455 return e.attr("role", a), 1456 e 1457 }, 1458 addLabel: function(e, a) { 1459 return e.attr("aria-label", a), 1460 e 1461 }, 1462 disable: function(e) { 1463 return e.attr("aria-disabled", !0), 1464 e 1465 }, 1466 enable: function(e) { 1467 return e.attr("aria-disabled", !1), 1468 e 1469 }, 1470 onEnterKey: function(e) { 1471 13 === e.keyCode && (a(e.target).is(b.params.nextButton) ? (b.onClickNext(e), b.isEnd ? b.a11y.notify(b.params.lastSlideMessage) : b.a11y.notify(b.params.nextSlideMessage)) : a(e.target).is(b.params.prevButton) && (b.onClickPrev(e), b.isBeginning ? b.a11y.notify(b.params.firstSlideMessage) : b.a11y.notify(b.params.prevSlideMessage)), a(e.target).is("." + b.params.bulletClass) && a(e.target)[0].click()) 1472 }, 1473 liveRegion: a('<span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>'), 1474 notify: function(e) { 1475 var a = b.a11y.liveRegion; 1476 0 !== a.length && (a.html(""), a.html(e)) 1477 }, 1478 init: function() { 1479 b.params.nextButton && b.nextButton && b.nextButton.length > 0 && (b.a11y.makeFocusable(b.nextButton), b.a11y.addRole(b.nextButton, "button"), b.a11y.addLabel(b.nextButton, b.params.nextSlideMessage)), 1480 b.params.prevButton && b.prevButton && b.prevButton.length > 0 && (b.a11y.makeFocusable(b.prevButton), b.a11y.addRole(b.prevButton, "button"), b.a11y.addLabel(b.prevButton, b.params.prevSlideMessage)), 1481 a(b.container).append(b.a11y.liveRegion) 1482 }, 1483 initPagination: function() { 1484 b.params.pagination && b.params.paginationClickable && b.bullets && b.bullets.length && b.bullets.each(function() { 1485 var e = a(this); 1486 b.a11y.makeFocusable(e), 1487 b.a11y.addRole(e, "button"), 1488 b.a11y.addLabel(e, b.params.paginationBulletMessage.replace(/{{index}}/, e.index() + 1)) 1489 }) 1490 }, 1491 destroy: function() { 1492 b.a11y.liveRegion && b.a11y.liveRegion.length > 0 && b.a11y.liveRegion.remove() 1493 } 1494 }, 1495 b.init = function() { 1496 b.params.loop && b.createLoop(), 1497 b.updateContainerSize(), 1498 b.updateSlidesSize(), 1499 b.updatePagination(), 1500 b.params.scrollbar && b.scrollbar && (b.scrollbar.set(), b.params.scrollbarDraggable && b.scrollbar.enableDraggable()), 1501 "slide" !== b.params.effect && b.effects[b.params.effect] && (b.params.loop || b.updateProgress(), b.effects[b.params.effect].setTranslate()), 1502 b.params.loop ? b.slideTo(b.params.initialSlide + b.loopedSlides, 0, b.params.runCallbacksOnInit) : (b.slideTo(b.params.initialSlide, 0, b.params.runCallbacksOnInit), 0 === b.params.initialSlide && (b.parallax && b.params.parallax && b.parallax.setTranslate(), b.lazy && b.params.lazyLoading && (b.lazy.load(), b.lazy.initialImageLoaded = !0))), 1503 b.attachEvents(), 1504 b.params.observer && b.support.observer && b.initObservers(), 1505 b.params.preloadImages && !b.params.lazyLoading && b.preloadImages(), 1506 b.params.autoplay && b.startAutoplay(), 1507 b.params.keyboardControl && b.enableKeyboardControl && b.enableKeyboardControl(), 1508 b.params.mousewheelControl && b.enableMousewheelControl && b.enableMousewheelControl(), 1509 b.params.hashnav && b.hashnav && b.hashnav.init(), 1510 b.params.a11y && b.a11y && b.a11y.init(), 1511 b.emit("onInit", b) 1512 }, 1513 b.cleanupStyles = function() { 1514 b.container.removeClass(b.classNames.join(" ")).removeAttr("style"), 1515 b.wrapper.removeAttr("style"), 1516 b.slides && b.slides.length && b.slides.removeClass([b.params.slideVisibleClass, b.params.slideActiveClass, b.params.slideNextClass, b.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"), 1517 b.paginationContainer && b.paginationContainer.length && b.paginationContainer.removeClass(b.params.paginationHiddenClass), 1518 b.bullets && b.bullets.length && b.bullets.removeClass(b.params.bulletActiveClass), 1519 b.params.prevButton && a(b.params.prevButton).removeClass(b.params.buttonDisabledClass), 1520 b.params.nextButton && a(b.params.nextButton).removeClass(b.params.buttonDisabledClass), 1521 b.params.scrollbar && b.scrollbar && (b.scrollbar.track && b.scrollbar.track.length && b.scrollbar.track.removeAttr("style"), b.scrollbar.drag && b.scrollbar.drag.length && b.scrollbar.drag.removeAttr("style")) 1522 }, 1523 b.destroy = function(e, a) { 1524 b.detachEvents(), 1525 b.stopAutoplay(), 1526 b.params.scrollbar && b.scrollbar && b.params.scrollbarDraggable && b.scrollbar.disableDraggable(), 1527 b.params.loop && b.destroyLoop(), 1528 a && b.cleanupStyles(), 1529 b.disconnectObservers(), 1530 b.params.keyboardControl && b.disableKeyboardControl && b.disableKeyboardControl(), 1531 b.params.mousewheelControl && b.disableMousewheelControl && b.disableMousewheelControl(), 1532 b.params.a11y && b.a11y && b.a11y.destroy(), 1533 b.emit("onDestroy"), 1534 e !== !1 && (b = null) 1535 }, 1536 b.init(), 1537 b 1538 } 1539 }; 1540 t.prototype = { 1541 isSafari: function() { 1542 var e = navigator.userAgent.toLowerCase(); 1543 return e.indexOf("safari") >= 0 && e.indexOf("chrome") < 0 && e.indexOf("android") < 0 1544 } (), 1545 isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent), 1546 isArray: function(e) { 1547 return "[object Array]" === Object.prototype.toString.apply(e) 1548 }, 1549 browser: { 1550 ie: window.navigator.pointerEnabled || window.navigator.msPointerEnabled, 1551 ieTouch: window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints > 1 || window.navigator.pointerEnabled && window.navigator.maxTouchPoints > 1 1552 }, 1553 device: function() { 1554 var e = navigator.userAgent, 1555 a = e.match(/(Android);?[\s\/]+([\d.]+)?/), 1556 t = e.match(/(iPad).*OS\s([\d_]+)/), 1557 r = e.match(/(iPod)(.*OS\s([\d_]+))?/), 1558 i = !t && e.match(/(iPhone\sOS)\s([\d_]+)/); 1559 return { 1560 ios: t || i || r, 1561 android: a 1562 } 1563 } (), 1564 support: { 1565 touch: window.Modernizr && Modernizr.touch === !0 || 1566 function() { 1567 return !! ("ontouchstart" in window || window.DocumentTouch && document instanceof DocumentTouch) 1568 } (), 1569 transforms3d: window.Modernizr && Modernizr.csstransforms3d === !0 || 1570 function() { 1571 var e = document.createElement("div").style; 1572 return "webkitPerspective" in e || "MozPerspective" in e || "OPerspective" in e || "MsPerspective" in e || "perspective" in e 1573 } (), 1574 flexbox: function() { 1575 for (var e = document.createElement("div").style, a = "alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "), t = 0; t < a.length; t++) if (a[t] in e) return ! 0 1576 } (), 1577 observer: function() { 1578 return "MutationObserver" in window || "WebkitMutationObserver" in window 1579 } () 1580 }, 1581 plugins: {} 1582 }; 1583 for (var r = (function() { 1584 var e = function(e) { 1585 var a = this, 1586 t = 0; 1587 for (t = 0; t < e.length; t++) a[t] = e[t]; 1588 return a.length = e.length, 1589 this 1590 }, 1591 a = function(a, t) { 1592 var r = [], 1593 i = 0; 1594 if (a && !t && a instanceof e) return a; 1595 if (a) if ("string" == typeof a) { 1596 var s, n, o = a.trim(); 1597 if (o.indexOf("<") >= 0 && o.indexOf(">") >= 0) { 1598 var l = "div"; 1599 for (0 === o.indexOf("<li") && (l = "ul"), 0 === o.indexOf("<tr") && (l = "tbody"), (0 === o.indexOf("<td") || 0 === o.indexOf("<th")) && (l = "tr"), 0 === o.indexOf("<tbody") && (l = "table"), 0 === o.indexOf("<option") && (l = "select"), n = document.createElement(l), n.innerHTML = a, i = 0; i < n.childNodes.length; i++) r.push(n.childNodes[i]) 1600 } else for (s = t || "#" !== a[0] || a.match(/[ .<>:~]/) ? (t || document).querySelectorAll(a) : [document.getElementById(a.split("#")[1])], i = 0; i < s.length; i++) s[i] && r.push(s[i]) 1601 } else if (a.nodeType || a === window || a === document) r.push(a); 1602 else if (a.length > 0 && a[0].nodeType) for (i = 0; i < a.length; i++) r.push(a[i]); 1603 return new e(r) 1604 }; 1605 return e.prototype = { 1606 addClass: function(e) { 1607 if ("undefined" == typeof e) return this; 1608 for (var a = e.split(" "), t = 0; t < a.length; t++) for (var r = 0; r < this.length; r++) this[r].classList.add(a[t]); 1609 return this 1610 }, 1611 removeClass: function(e) { 1612 for (var a = e.split(" "), t = 0; t < a.length; t++) for (var r = 0; r < this.length; r++) this[r].classList.remove(a[t]); 1613 return this 1614 }, 1615 hasClass: function(e) { 1616 return this[0] ? this[0].classList.contains(e) : !1 1617 }, 1618 toggleClass: function(e) { 1619 for (var a = e.split(" "), t = 0; t < a.length; t++) for (var r = 0; r < this.length; r++) this[r].classList.toggle(a[t]); 1620 return this 1621 }, 1622 attr: function(e, a) { 1623 if (1 === arguments.length && "string" == typeof e) return this[0] ? this[0].getAttribute(e) : void 0; 1624 for (var t = 0; t < this.length; t++) if (2 === arguments.length) this[t].setAttribute(e, a); 1625 else for (var r in e) this[t][r] = e[r], 1626 this[t].setAttribute(r, e[r]); 1627 return this 1628 }, 1629 removeAttr: function(e) { 1630 for (var a = 0; a < this.length; a++) this[a].removeAttribute(e); 1631 return this 1632 }, 1633 data: function(e, a) { 1634 if ("undefined" != typeof a) { 1635 for (var t = 0; t < this.length; t++) { 1636 var r = this[t]; 1637 r.dom7ElementDataStorage || (r.dom7ElementDataStorage = {}), 1638 r.dom7ElementDataStorage[e] = a 1639 } 1640 return this 1641 } 1642 if (this[0]) { 1643 var i = this[0].getAttribute("data-" + e); 1644 return i ? i: this[0].dom7ElementDataStorage && e in this[0].dom7ElementDataStorage ? this[0].dom7ElementDataStorage[e] : void 0 1645 } 1646 }, 1647 transform: function(e) { 1648 for (var a = 0; a < this.length; a++) { 1649 var t = this[a].style; 1650 t.webkitTransform = t.MsTransform = t.msTransform = t.MozTransform = t.OTransform = t.transform = e 1651 } 1652 return this 1653 }, 1654 transition: function(e) { 1655 "string" != typeof e && (e += "ms"); 1656 for (var a = 0; a < this.length; a++) { 1657 var t = this[a].style; 1658 t.webkitTransitionDuration = t.MsTransitionDuration = t.msTransitionDuration = t.MozTransitionDuration = t.OTransitionDuration = t.transitionDuration = e 1659 } 1660 return this 1661 }, 1662 on: function(e, t, r, i) { 1663 function s(e) { 1664 var i = e.target; 1665 if (a(i).is(t)) r.call(i, e); 1666 else for (var s = a(i).parents(), n = 0; n < s.length; n++) a(s[n]).is(t) && r.call(s[n], e) 1667 } 1668 var n, o, l = e.split(" "); 1669 for (n = 0; n < this.length; n++) if ("function" == typeof t || t === !1) for ("function" == typeof t && (r = arguments[1], i = arguments[2] || !1), o = 0; o < l.length; o++) this[n].addEventListener(l[o], r, i); 1670 else for (o = 0; o < l.length; o++) this[n].dom7LiveListeners || (this[n].dom7LiveListeners = []), 1671 this[n].dom7LiveListeners.push({ 1672 listener: r, 1673 liveListener: s 1674 }), 1675 this[n].addEventListener(l[o], s, i); 1676 return this 1677 }, 1678 off: function(e, a, t, r) { 1679 for (var i = e.split(" "), s = 0; s < i.length; s++) for (var n = 0; n < this.length; n++) if ("function" == typeof a || a === !1)"function" == typeof a && (t = arguments[1], r = arguments[2] || !1), 1680 this[n].removeEventListener(i[s], t, r); 1681 else if (this[n].dom7LiveListeners) for (var o = 0; o < this[n].dom7LiveListeners.length; o++) this[n].dom7LiveListeners[o].listener === t && this[n].removeEventListener(i[s], this[n].dom7LiveListeners[o].liveListener, r); 1682 return this 1683 }, 1684 once: function(e, a, t, r) { 1685 function i(n) { 1686 t(n), 1687 s.off(e, a, i, r) 1688 } 1689 var s = this; 1690 "function" == typeof a && (a = !1, t = arguments[1], r = arguments[2]), 1691 s.on(e, a, i, r) 1692 }, 1693 trigger: function(e, a) { 1694 for (var t = 0; t < this.length; t++) { 1695 var r; 1696 try { 1697 r = new window.CustomEvent(e, { 1698 detail: a, 1699 bubbles: !0, 1700 cancelable: !0 1701 }) 1702 } catch(i) { 1703 r = document.createEvent("Event"), 1704 r.initEvent(e, !0, !0), 1705 r.detail = a 1706 } 1707 this[t].dispatchEvent(r) 1708 } 1709 return this 1710 }, 1711 transitionEnd: function(e) { 1712 function a(s) { 1713 if (s.target === this) for (e.call(this, s), t = 0; t < r.length; t++) i.off(r[t], a) 1714 } 1715 var t, r = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], 1716 i = this; 1717 if (e) for (t = 0; t < r.length; t++) i.on(r[t], a); 1718 return this 1719 }, 1720 width: function() { 1721 return this[0] === window ? window.innerWidth: this.length > 0 ? parseFloat(this.css("width")) : null 1722 }, 1723 outerWidth: function(e) { 1724 return this.length > 0 ? e ? this[0].offsetWidth + parseFloat(this.css("margin-right")) + parseFloat(this.css("margin-left")) : this[0].offsetWidth: null 1725 }, 1726 height: function() { 1727 return this[0] === window ? window.innerHeight: this.length > 0 ? parseFloat(this.css("height")) : null 1728 }, 1729 outerHeight: function(e) { 1730 return this.length > 0 ? e ? this[0].offsetHeight + parseFloat(this.css("margin-top")) + parseFloat(this.css("margin-bottom")) : this[0].offsetHeight: null 1731 }, 1732 offset: function() { 1733 if (this.length > 0) { 1734 var e = this[0], 1735 a = e.getBoundingClientRect(), 1736 t = document.body, 1737 r = e.clientTop || t.clientTop || 0, 1738 i = e.clientLeft || t.clientLeft || 0, 1739 s = window.pageYOffset || e.scrollTop, 1740 n = window.pageXOffset || e.scrollLeft; 1741 return { 1742 top: a.top + s - r, 1743 left: a.left + n - i 1744 } 1745 } 1746 return null 1747 }, 1748 css: function(e, a) { 1749 var t; 1750 if (1 === arguments.length) { 1751 if ("string" != typeof e) { 1752 for (t = 0; t < this.length; t++) for (var r in e) this[t].style[r] = e[r]; 1753 return this 1754 } 1755 if (this[0]) return window.getComputedStyle(this[0], null).getPropertyValue(e) 1756 } 1757 if (2 === arguments.length && "string" == typeof e) { 1758 for (t = 0; t < this.length; t++) this[t].style[e] = a; 1759 return this 1760 } 1761 return this 1762 }, 1763 each: function(e) { 1764 for (var a = 0; a < this.length; a++) e.call(this[a], a, this[a]); 1765 return this 1766 }, 1767 html: function(e) { 1768 if ("undefined" == typeof e) return this[0] ? this[0].innerHTML: void 0; 1769 for (var a = 0; a < this.length; a++) this[a].innerHTML = e; 1770 return this 1771 }, 1772 text: function(e) { 1773 if ("undefined" == typeof e) return this[0] ? this[0].textContent.trim() : null; 1774 for (var a = 0; a < this.length; a++) this[a].textContent = e; 1775 return this 1776 }, 1777 is: function(t) { 1778 if (!this[0]) return ! 1; 1779 var r, i; 1780 if ("string" == typeof t) { 1781 var s = this[0]; 1782 if (s === document) return t === document; 1783 if (s === window) return t === window; 1784 if (s.matches) return s.matches(t); 1785 if (s.webkitMatchesSelector) return s.webkitMatchesSelector(t); 1786 if (s.mozMatchesSelector) return s.mozMatchesSelector(t); 1787 if (s.msMatchesSelector) return s.msMatchesSelector(t); 1788 for (r = a(t), i = 0; i < r.length; i++) if (r[i] === this[0]) return ! 0; 1789 return ! 1 1790 } 1791 if (t === document) return this[0] === document; 1792 if (t === window) return this[0] === window; 1793 if (t.nodeType || t instanceof e) { 1794 for (r = t.nodeType ? [t] : t, i = 0; i < r.length; i++) if (r[i] === this[0]) return ! 0; 1795 return ! 1 1796 } 1797 return ! 1 1798 }, 1799 index: function() { 1800 if (this[0]) { 1801 for (var e = this[0], a = 0; null !== (e = e.previousSibling);) 1 === e.nodeType && a++; 1802 return a 1803 } 1804 }, 1805 eq: function(a) { 1806 if ("undefined" == typeof a) return this; 1807 var t, r = this.length; 1808 return a > r - 1 ? new e([]) : 0 > a ? (t = r + a, new e(0 > t ? [] : [this[t]])) : new e([this[a]]) 1809 }, 1810 append: function(a) { 1811 var t, r; 1812 for (t = 0; t < this.length; t++) if ("string" == typeof a) { 1813 var i = document.createElement("div"); 1814 for (i.innerHTML = a; i.firstChild;) this[t].appendChild(i.firstChild) 1815 } else if (a instanceof e) for (r = 0; r < a.length; r++) this[t].appendChild(a[r]); 1816 else this[t].appendChild(a); 1817 return this 1818 }, 1819 prepend: function(a) { 1820 var t, r; 1821 for (t = 0; t < this.length; t++) if ("string" == typeof a) { 1822 var i = document.createElement("div"); 1823 for (i.innerHTML = a, r = i.childNodes.length - 1; r >= 0; r--) this[t].insertBefore(i.childNodes[r], this[t].childNodes[0]) 1824 } else if (a instanceof e) for (r = 0; r < a.length; r++) this[t].insertBefore(a[r], this[t].childNodes[0]); 1825 else this[t].insertBefore(a, this[t].childNodes[0]); 1826 return this 1827 }, 1828 insertBefore: function(e) { 1829 for (var t = a(e), r = 0; r < this.length; r++) if (1 === t.length) t[0].parentNode.insertBefore(this[r], t[0]); 1830 else if (t.length > 1) for (var i = 0; i < t.length; i++) t[i].parentNode.insertBefore(this[r].cloneNode(!0), t[i]) 1831 }, 1832 insertAfter: function(e) { 1833 for (var t = a(e), r = 0; r < this.length; r++) if (1 === t.length) t[0].parentNode.insertBefore(this[r], t[0].nextSibling); 1834 else if (t.length > 1) for (var i = 0; i < t.length; i++) t[i].parentNode.insertBefore(this[r].cloneNode(!0), t[i].nextSibling) 1835 }, 1836 next: function(t) { 1837 return new e(this.length > 0 ? t ? this[0].nextElementSibling && a(this[0].nextElementSibling).is(t) ? [this[0].nextElementSibling] : [] : this[0].nextElementSibling ? [this[0].nextElementSibling] : [] : []) 1838 }, 1839 nextAll: function(t) { 1840 var r = [], 1841 i = this[0]; 1842 if (!i) return new e([]); 1843 for (; i.nextElementSibling;) { 1844 var s = i.nextElementSibling; 1845 t ? a(s).is(t) && r.push(s) : r.push(s), 1846 i = s 1847 } 1848 return new e(r) 1849 }, 1850 prev: function(t) { 1851 return new e(this.length > 0 ? t ? this[0].previousElementSibling && a(this[0].previousElementSibling).is(t) ? [this[0].previousElementSibling] : [] : this[0].previousElementSibling ? [this[0].previousElementSibling] : [] : []) 1852 }, 1853 prevAll: function(t) { 1854 var r = [], 1855 i = this[0]; 1856 if (!i) return new e([]); 1857 for (; i.previousElementSibling;) { 1858 var s = i.previousElementSibling; 1859 t ? a(s).is(t) && r.push(s) : r.push(s), 1860 i = s 1861 } 1862 return new e(r) 1863 }, 1864 parent: function(e) { 1865 for (var t = [], r = 0; r < this.length; r++) e ? a(this[r].parentNode).is(e) && t.push(this[r].parentNode) : t.push(this[r].parentNode); 1866 return a(a.unique(t)) 1867 }, 1868 parents: function(e) { 1869 for (var t = [], r = 0; r < this.length; r++) for (var i = this[r].parentNode; i;) e ? a(i).is(e) && t.push(i) : t.push(i), 1870 i = i.parentNode; 1871 return a(a.unique(t)) 1872 }, 1873 find: function(a) { 1874 for (var t = [], r = 0; r < this.length; r++) for (var i = this[r].querySelectorAll(a), s = 0; s < i.length; s++) t.push(i[s]); 1875 return new e(t) 1876 }, 1877 children: function(t) { 1878 for (var r = [], i = 0; i < this.length; i++) for (var s = this[i].childNodes, n = 0; n < s.length; n++) t ? 1 === s[n].nodeType && a(s[n]).is(t) && r.push(s[n]) : 1 === s[n].nodeType && r.push(s[n]); 1879 return new e(a.unique(r)) 1880 }, 1881 remove: function() { 1882 for (var e = 0; e < this.length; e++) this[e].parentNode && this[e].parentNode.removeChild(this[e]); 1883 return this 1884 }, 1885 add: function() { 1886 var e, t, r = this; 1887 for (e = 0; e < arguments.length; e++) { 1888 var i = a(arguments[e]); 1889 for (t = 0; t < i.length; t++) r[r.length] = i[t], 1890 r.length++ 1891 } 1892 return r 1893 } 1894 }, 1895 a.fn = e.prototype, 1896 a.unique = function(e) { 1897 for (var a = [], t = 0; t < e.length; t++) - 1 === a.indexOf(e[t]) && a.push(e[t]); 1898 return a 1899 }, 1900 a 1901 } ()), i = ["jQuery", "Zepto", "Dom7"], s = 0; s < i.length; s++) window[i[s]] && e(window[i[s]]); 1902 var n; 1903 n = "undefined" == typeof r ? window.Dom7 || window.Zepto || window.jQuery: r, 1904 n && ("transitionEnd" in n.fn || (n.fn.transitionEnd = function(e) { 1905 function a(s) { 1906 if (s.target === this) for (e.call(this, s), t = 0; t < r.length; t++) i.off(r[t], a) 1907 } 1908 var t, r = ["webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd"], 1909 i = this; 1910 if (e) for (t = 0; t < r.length; t++) i.on(r[t], a); 1911 return this 1912 }), "transform" in n.fn || (n.fn.transform = function(e) { 1913 for (var a = 0; a < this.length; a++) { 1914 var t = this[a].style; 1915 t.webkitTransform = t.MsTransform = t.msTransform = t.MozTransform = t.OTransform = t.transform = e 1916 } 1917 return this 1918 }), "transition" in n.fn || (n.fn.transition = function(e) { 1919 "string" != typeof e && (e += "ms"); 1920 for (var a = 0; a < this.length; a++) { 1921 var t = this[a].style; 1922 t.webkitTransitionDuration = t.MsTransitionDuration = t.msTransitionDuration = t.MozTransitionDuration = t.OTransitionDuration = t.transitionDuration = e 1923 } 1924 return this 1925 })), 1926 window.Swiper = t 1927} (), 1928"undefined" != typeof module ? module.exports = window.Swiper: "function" == typeof define && define.amd && define([], 1929function() { 1930 "use strict"; 1931 return window.Swiper 1932});
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.