!(function () { var e = { 860: function (e, a, t) { "use strict"; var s, i = t(379); new i(".aboutMain3Swiper", { slidesPerView: 3, spaceBetween: 40, prevButton: ".about_main3 .swiper-button-prev", nextButton: ".about_main3 .swiper-button-next", breakpoints: { 768: { slidesPerView: 3, spaceBetween: 10 }, 480: { slidesPerView: 2, spaceBetween: 10 }, }, }); var r = new i(".aboutMain4Swiper", { prevButton: ".about_main4 .swiper-button-prev", nextButton: ".about_main4 .swiper-button-next", effect: "fade", fade: { crossFade: !0 }, onSlideChangeEnd: function (e) { s.slideTo(e.activeIndex, 1e3, !1); }, }); s = new i(".aboutMain4TxtSwiper", { slidesPerView: 7, centeredSlides: !0, slideToClickedSlide: !0, breakpoints: { 768: { slidesPerView: 5 }, 480: { slidesPerView: 3 } }, onSlideChangeEnd: function (e) { r.slideTo(e.activeIndex, 1e3, !1); }, }); var n = 0; $(".about_main3 .block .txt_box").each(function () { $(this).height() > n && (n = $(this).height()); }), $(".about_main3 .block .txt_box").height(n), $(window).on("resize", function () { var e = 0; $(".about_main3 .block .txt_box").each(function () { $(this).height() > e && (e = $(this).height()); }), $(".about_main3 .block .txt_box").height(e); }); }, 458: function (e, a, t) { "use strict"; t.r(a); }, 379: function (e) { !(function () { "use strict"; var e, a, t = function (a, s) { function i(e) { return Math.floor(e); } function r() { var e = x.params.autoplay, a = x.slides.eq(x.activeIndex); a.attr("data-swiper-autoplay") && (e = a.attr("data-swiper-autoplay") || x.params.autoplay), (x.autoplayTimeoutId = setTimeout(function () { x.params.loop ? (x.fixLoop(), x._slideNext(), x.emit("onAutoplay", x)) : x.isEnd ? s.autoplayStopOnLast ? x.stopAutoplay() : (x._slideTo(0), x.emit("onAutoplay", x)) : (x._slideNext(), x.emit("onAutoplay", x)); }, e)); } function n(a, t) { var s = e(a.target); if (!s.is(t)) if ("string" == typeof t) s = s.parents(t); else if (t.nodeType) { var i; return ( s.parents().each(function (e, a) { a === t && (i = t); }), i ? t : void 0 ); } if (0 !== s.length) return s[0]; } function o(e, a) { a = a || {}; var t = new (window.MutationObserver || window.WebkitMutationObserver)(function (e) { e.forEach(function (e) { x.onResize(!0), x.emit("onObserverUpdate", x, e); }); }); t.observe(e, { attributes: void 0 === a.attributes || a.attributes, childList: void 0 === a.childList || a.childList, characterData: void 0 === a.characterData || a.characterData, }), x.observers.push(t); } function l(e) { e.originalEvent && (e = e.originalEvent); var a = e.keyCode || e.charCode; if ( !x.params.allowSwipeToNext && ((x.isHorizontal() && 39 === a) || (!x.isHorizontal() && 40 === a)) ) return !1; if ( !x.params.allowSwipeToPrev && ((x.isHorizontal() && 37 === a) || (!x.isHorizontal() && 38 === a)) ) return !1; if ( !( e.shiftKey || e.altKey || e.ctrlKey || e.metaKey || (document.activeElement && document.activeElement.nodeName && ("input" === document.activeElement.nodeName.toLowerCase() || "textarea" === document.activeElement.nodeName.toLowerCase())) ) ) { if (37 === a || 39 === a || 38 === a || 40 === a) { var t = !1; if ( x.container.parents("." + x.params.slideClass).length > 0 && 0 === x.container.parents("." + x.params.slideActiveClass) .length ) return; var s = { left: window.pageXOffset, top: window.pageYOffset, }, i = window.innerWidth, r = window.innerHeight, n = x.container.offset(); x.rtl && (n.left = n.left - x.container[0].scrollLeft); for ( var o = [ [n.left, n.top], [n.left + x.width, n.top], [n.left, n.top + x.height], [n.left + x.width, n.top + x.height], ], l = 0; l < o.length; l++ ) { var p = o[l]; p[0] >= s.left && p[0] <= s.left + i && p[1] >= s.top && p[1] <= s.top + r && (t = !0); } if (!t) return; } x.isHorizontal() ? ((37 !== a && 39 !== a) || (e.preventDefault ? e.preventDefault() : (e.returnValue = !1)), ((39 === a && !x.rtl) || (37 === a && x.rtl)) && x.slideNext(), ((37 === a && !x.rtl) || (39 === a && x.rtl)) && x.slidePrev()) : ((38 !== a && 40 !== a) || (e.preventDefault ? e.preventDefault() : (e.returnValue = !1)), 40 === a && x.slideNext(), 38 === a && x.slidePrev()), x.emit("onKeyPress", x, a); } } function p(e) { e.originalEvent && (e = e.originalEvent); var a = 0, t = x.rtl ? -1 : 1, s = (function (e) { var a = 0, t = 0, s = 0, i = 0; return ( "detail" in e && (t = e.detail), "wheelDelta" in e && (t = -e.wheelDelta / 120), "wheelDeltaY" in e && (t = -e.wheelDeltaY / 120), "wheelDeltaX" in e && (a = -e.wheelDeltaX / 120), "axis" in e && e.axis === e.HORIZONTAL_AXIS && ((a = t), (t = 0)), (s = 10 * a), (i = 10 * t), "deltaY" in e && (i = e.deltaY), "deltaX" in e && (s = e.deltaX), (s || i) && e.deltaMode && (1 === e.deltaMode ? ((s *= 40), (i *= 40)) : ((s *= 800), (i *= 800))), s && !a && (a = s < 1 ? -1 : 1), i && !t && (t = i < 1 ? -1 : 1), { spinX: a, spinY: t, pixelX: s, pixelY: i } ); })(e); if (x.params.mousewheelForceToAxis) if (x.isHorizontal()) { if (!(Math.abs(s.pixelX) > Math.abs(s.pixelY))) return; a = s.pixelX * t; } else { if (!(Math.abs(s.pixelY) > Math.abs(s.pixelX))) return; a = s.pixelY; } else a = Math.abs(s.pixelX) > Math.abs(s.pixelY) ? -s.pixelX * t : -s.pixelY; if (0 !== a) { if ( (x.params.mousewheelInvert && (a = -a), x.params.freeMode) ) { var i = x.getWrapperTranslate() + a * x.params.mousewheelSensitivity, r = x.isBeginning, n = x.isEnd; if ( (i >= x.minTranslate() && (i = x.minTranslate()), i <= x.maxTranslate() && (i = x.maxTranslate()), x.setWrapperTransition(0), x.setWrapperTranslate(i), x.updateProgress(), x.updateActiveIndex(), ((!r && x.isBeginning) || (!n && x.isEnd)) && x.updateClasses(), x.params.freeModeSticky ? (clearTimeout(x.mousewheel.timeout), (x.mousewheel.timeout = setTimeout(function () { x.slideReset(); }, 300))) : x.params.lazyLoading && x.lazy && x.lazy.load(), x.emit("onScroll", x, e), x.params.autoplay && x.params.autoplayDisableOnInteraction && x.stopAutoplay(), 0 === i || i === x.maxTranslate()) ) return; } else { if ( new window.Date().getTime() - x.mousewheel.lastScrollTime > 60 ) if (a < 0) if ((x.isEnd && !x.params.loop) || x.animating) { if (x.params.mousewheelReleaseOnEdges) return !0; } else x.slideNext(), x.emit("onScroll", x, e); else if ( (x.isBeginning && !x.params.loop) || x.animating ) { if (x.params.mousewheelReleaseOnEdges) return !0; } else x.slidePrev(), x.emit("onScroll", x, e); x.mousewheel.lastScrollTime = new window.Date().getTime(); } return ( e.preventDefault ? e.preventDefault() : (e.returnValue = !1), !1 ); } } function d(a, t) { a = e(a); var s, i, r, n = x.rtl ? -1 : 1; (s = a.attr("data-swiper-parallax") || "0"), (i = a.attr("data-swiper-parallax-x")), (r = a.attr("data-swiper-parallax-y")), i || r ? ((i = i || "0"), (r = r || "0")) : x.isHorizontal() ? ((i = s), (r = "0")) : ((r = s), (i = "0")), (i = i.indexOf("%") >= 0 ? parseInt(i, 10) * t * n + "%" : i * t * n + "px"), (r = r.indexOf("%") >= 0 ? parseInt(r, 10) * t + "%" : r * t + "px"), a.transform("translate3d(" + i + ", " + r + ",0px)"); } function c(e) { return ( 0 !== e.indexOf("on") && (e = e[0] !== e[0].toUpperCase() ? "on" + e[0].toUpperCase() + e.substring(1) : "on" + e), e ); } if (!(this instanceof t)) return new t(a, s); var u = { direction: "horizontal", touchEventsTarget: "container", initialSlide: 0, speed: 300, autoplay: !1, autoplayDisableOnInteraction: !0, autoplayStopOnLast: !1, iOSEdgeSwipeDetection: !1, iOSEdgeSwipeThreshold: 20, freeMode: !1, freeModeMomentum: !0, freeModeMomentumRatio: 1, freeModeMomentumBounce: !0, freeModeMomentumBounceRatio: 1, freeModeMomentumVelocityRatio: 1, freeModeSticky: !1, freeModeMinimumVelocity: 0.02, autoHeight: !1, setWrapperSize: !1, virtualTranslate: !1, effect: "slide", coverflow: { rotate: 50, stretch: 0, depth: 100, modifier: 1, slideShadows: !0, }, flip: { slideShadows: !0, limitRotation: !0 }, cube: { slideShadows: !0, shadow: !0, shadowOffset: 20, shadowScale: 0.94, }, fade: { crossFade: !1 }, parallax: !1, zoom: !1, zoomMax: 3, zoomMin: 1, zoomToggle: !0, scrollbar: null, scrollbarHide: !0, scrollbarDraggable: !1, scrollbarSnapOnRelease: !1, keyboardControl: !1, mousewheelControl: !1, mousewheelReleaseOnEdges: !1, mousewheelInvert: !1, mousewheelForceToAxis: !1, mousewheelSensitivity: 1, mousewheelEventsTarged: "container", hashnav: !1, hashnavWatchState: !1, history: !1, replaceState: !1, breakpoints: void 0, spaceBetween: 0, slidesPerView: 1, slidesPerColumn: 1, slidesPerColumnFill: "column", slidesPerGroup: 1, centeredSlides: !1, slidesOffsetBefore: 0, slidesOffsetAfter: 0, roundLengths: !1, touchRatio: 1, touchAngle: 45, simulateTouch: !0, shortSwipes: !0, longSwipes: !0, longSwipesRatio: 0.5, longSwipesMs: 300, followFinger: !0, onlyExternal: !1, threshold: 0, touchMoveStopPropagation: !0, touchReleaseOnEdges: !1, uniqueNavElements: !0, pagination: null, paginationElement: "span", paginationClickable: !1, paginationHide: !1, paginationBulletRender: null, paginationProgressRender: null, paginationFractionRender: null, paginationCustomRender: null, paginationType: "bullets", resistance: !0, resistanceRatio: 0.85, nextButton: null, prevButton: null, watchSlidesProgress: !1, watchSlidesVisibility: !1, grabCursor: !1, preventClicks: !0, preventClicksPropagation: !0, slideToClickedSlide: !1, lazyLoading: !1, lazyLoadingInPrevNext: !1, lazyLoadingInPrevNextAmount: 1, lazyLoadingOnTransitionStart: !1, preloadImages: !0, updateOnImagesReady: !0, loop: !1, loopAdditionalSlides: 0, loopedSlides: null, control: void 0, controlInverse: !1, controlBy: "slide", normalizeSlideIndex: !0, allowSwipeToPrev: !0, allowSwipeToNext: !0, swipeHandler: null, noSwiping: !0, noSwipingClass: "swiper-no-swiping", passiveListeners: !0, containerModifierClass: "swiper-container-", slideClass: "swiper-slide", slideActiveClass: "swiper-slide-active", slideDuplicateActiveClass: "swiper-slide-duplicate-active", slideVisibleClass: "swiper-slide-visible", slideDuplicateClass: "swiper-slide-duplicate", slideNextClass: "swiper-slide-next", slideDuplicateNextClass: "swiper-slide-duplicate-next", slidePrevClass: "swiper-slide-prev", slideDuplicatePrevClass: "swiper-slide-duplicate-prev", wrapperClass: "swiper-wrapper", bulletClass: "swiper-pagination-bullet", bulletActiveClass: "swiper-pagination-bullet-active", buttonDisabledClass: "swiper-button-disabled", paginationCurrentClass: "swiper-pagination-current", paginationTotalClass: "swiper-pagination-total", paginationHiddenClass: "swiper-pagination-hidden", paginationProgressbarClass: "swiper-pagination-progressbar", paginationClickableClass: "swiper-pagination-clickable", paginationModifierClass: "swiper-pagination-", lazyLoadingClass: "swiper-lazy", lazyStatusLoadingClass: "swiper-lazy-loading", lazyStatusLoadedClass: "swiper-lazy-loaded", lazyPreloaderClass: "swiper-lazy-preloader", notificationClass: "swiper-notification", preloaderClass: "preloader", zoomContainerClass: "swiper-zoom-container", observer: !1, observeParents: !1, a11y: !1, prevSlideMessage: "Previous slide", nextSlideMessage: "Next slide", firstSlideMessage: "This is the first slide", lastSlideMessage: "This is the last slide", paginationBulletMessage: "Go to slide {{index}}", runCallbacksOnInit: !0, }, m = s && s.virtualTranslate; s = s || {}; var g = {}; for (var h in s) if ( "object" != typeof s[h] || null === s[h] || s[h].nodeType || s[h] === window || s[h] === document || ("undefined" != typeof Dom7 && s[h] instanceof Dom7) || ("undefined" != typeof jQuery && s[h] instanceof jQuery) ) g[h] = s[h]; else for (var v in ((g[h] = {}), s[h])) g[h][v] = s[h][v]; for (var f in u) if (void 0 === s[f]) s[f] = u[f]; else if ("object" == typeof s[f]) for (var w in u[f]) void 0 === s[f][w] && (s[f][w] = u[f][w]); var x = this; if ( ((x.params = s), (x.originalParams = g), (x.classNames = []), void 0 !== e && "undefined" != typeof Dom7 && (e = Dom7), (void 0 !== e || (e = "undefined" == typeof Dom7 ? window.Dom7 || window.Zepto || window.jQuery : Dom7)) && ((x.$ = e), (x.currentBreakpoint = void 0), (x.getActiveBreakpoint = function () { if (!x.params.breakpoints) return !1; var e, a = !1, t = []; for (e in x.params.breakpoints) x.params.breakpoints.hasOwnProperty(e) && t.push(e); t.sort(function (e, a) { return parseInt(e, 10) > parseInt(a, 10); }); for (var s = 0; s < t.length; s++) (e = t[s]) >= window.innerWidth && !a && (a = e); return a || "max"; }), (x.setBreakpoint = function () { var e = x.getActiveBreakpoint(); if (e && x.currentBreakpoint !== e) { var a = e in x.params.breakpoints ? x.params.breakpoints[e] : x.originalParams, t = x.params.loop && a.slidesPerView !== x.params.slidesPerView; for (var s in a) x.params[s] = a[s]; (x.currentBreakpoint = e), t && x.destroyLoop && x.reLoop(!0); } }), x.params.breakpoints && x.setBreakpoint(), (x.container = e(a)), 0 !== x.container.length)) ) { if (x.container.length > 1) { var y = []; return ( x.container.each(function () { y.push(new t(this, s)); }), y ); } (x.container[0].swiper = x), x.container.data("swiper", x), x.classNames.push( x.params.containerModifierClass + x.params.direction ), x.params.freeMode && x.classNames.push( x.params.containerModifierClass + "free-mode" ), x.support.flexbox || (x.classNames.push( x.params.containerModifierClass + "no-flexbox" ), (x.params.slidesPerColumn = 1)), x.params.autoHeight && x.classNames.push( x.params.containerModifierClass + "autoheight" ), (x.params.parallax || x.params.watchSlidesVisibility) && (x.params.watchSlidesProgress = !0), x.params.touchReleaseOnEdges && (x.params.resistanceRatio = 0), ["cube", "coverflow", "flip"].indexOf(x.params.effect) >= 0 && (x.support.transforms3d ? ((x.params.watchSlidesProgress = !0), x.classNames.push( x.params.containerModifierClass + "3d" )) : (x.params.effect = "slide")), "slide" !== x.params.effect && x.classNames.push( x.params.containerModifierClass + x.params.effect ), "cube" === x.params.effect && ((x.params.resistanceRatio = 0), (x.params.slidesPerView = 1), (x.params.slidesPerColumn = 1), (x.params.slidesPerGroup = 1), (x.params.centeredSlides = !1), (x.params.spaceBetween = 0), (x.params.virtualTranslate = !0)), ("fade" !== x.params.effect && "flip" !== x.params.effect) || ((x.params.slidesPerView = 1), (x.params.slidesPerColumn = 1), (x.params.slidesPerGroup = 1), (x.params.watchSlidesProgress = !0), (x.params.spaceBetween = 0), void 0 === m && (x.params.virtualTranslate = !0)), x.params.grabCursor && x.support.touch && (x.params.grabCursor = !1), (x.wrapper = x.container.children( "." + x.params.wrapperClass )), x.params.pagination && ((x.paginationContainer = e(x.params.pagination)), x.params.uniqueNavElements && "string" == typeof x.params.pagination && x.paginationContainer.length > 1 && 1 === x.container.find(x.params.pagination).length && (x.paginationContainer = x.container.find( x.params.pagination )), "bullets" === x.params.paginationType && x.params.paginationClickable ? x.paginationContainer.addClass( x.params.paginationModifierClass + "clickable" ) : (x.params.paginationClickable = !1), x.paginationContainer.addClass( x.params.paginationModifierClass + x.params.paginationType )), (x.params.nextButton || x.params.prevButton) && (x.params.nextButton && ((x.nextButton = e(x.params.nextButton)), x.params.uniqueNavElements && "string" == typeof x.params.nextButton && x.nextButton.length > 1 && 1 === x.container.find(x.params.nextButton).length && (x.nextButton = x.container.find(x.params.nextButton))), x.params.prevButton && ((x.prevButton = e(x.params.prevButton)), x.params.uniqueNavElements && "string" == typeof x.params.prevButton && x.prevButton.length > 1 && 1 === x.container.find(x.params.prevButton).length && (x.prevButton = x.container.find( x.params.prevButton )))), (x.isHorizontal = function () { return "horizontal" === x.params.direction; }), (x.rtl = x.isHorizontal() && ("rtl" === x.container[0].dir.toLowerCase() || "rtl" === x.container.css("direction"))), x.rtl && x.classNames.push(x.params.containerModifierClass + "rtl"), x.rtl && (x.wrongRTL = "-webkit-box" === x.wrapper.css("display")), x.params.slidesPerColumn > 1 && x.classNames.push( x.params.containerModifierClass + "multirow" ), x.device.android && x.classNames.push( x.params.containerModifierClass + "android" ), x.container.addClass(x.classNames.join(" ")), (x.translate = 0), (x.progress = 0), (x.velocity = 0), (x.lockSwipeToNext = function () { (x.params.allowSwipeToNext = !1), !1 === x.params.allowSwipeToPrev && x.params.grabCursor && x.unsetGrabCursor(); }), (x.lockSwipeToPrev = function () { (x.params.allowSwipeToPrev = !1), !1 === x.params.allowSwipeToNext && x.params.grabCursor && x.unsetGrabCursor(); }), (x.lockSwipes = function () { (x.params.allowSwipeToNext = x.params.allowSwipeToPrev = !1), x.params.grabCursor && x.unsetGrabCursor(); }), (x.unlockSwipeToNext = function () { (x.params.allowSwipeToNext = !0), !0 === x.params.allowSwipeToPrev && x.params.grabCursor && x.setGrabCursor(); }), (x.unlockSwipeToPrev = function () { (x.params.allowSwipeToPrev = !0), !0 === x.params.allowSwipeToNext && x.params.grabCursor && x.setGrabCursor(); }), (x.unlockSwipes = function () { (x.params.allowSwipeToNext = x.params.allowSwipeToPrev = !0), x.params.grabCursor && x.setGrabCursor(); }), (x.setGrabCursor = function (e) { (x.container[0].style.cursor = "move"), (x.container[0].style.cursor = e ? "-webkit-grabbing" : "-webkit-grab"), (x.container[0].style.cursor = e ? "-moz-grabbin" : "-moz-grab"), (x.container[0].style.cursor = e ? "grabbing" : "grab"); }), (x.unsetGrabCursor = function () { x.container[0].style.cursor = ""; }), x.params.grabCursor && x.setGrabCursor(), (x.imagesToLoad = []), (x.imagesLoaded = 0), (x.loadImage = function (e, a, t, s, i, r) { function n() { r && r(); } var o; e.complete && i ? n() : a ? (((o = new window.Image()).onload = n), (o.onerror = n), s && (o.sizes = s), t && (o.srcset = t), a && (o.src = a)) : n(); }), (x.preloadImages = function () { function e() { null != x && x && (void 0 !== x.imagesLoaded && x.imagesLoaded++, x.imagesLoaded === x.imagesToLoad.length && (x.params.updateOnImagesReady && x.update(), x.emit("onImagesReady", x))); } x.imagesToLoad = x.container.find("img"); for (var a = 0; a < x.imagesToLoad.length; a++) x.loadImage( x.imagesToLoad[a], x.imagesToLoad[a].currentSrc || x.imagesToLoad[a].getAttribute("src"), x.imagesToLoad[a].srcset || x.imagesToLoad[a].getAttribute("srcset"), x.imagesToLoad[a].sizes || x.imagesToLoad[a].getAttribute("sizes"), !0, e ); }), (x.autoplayTimeoutId = void 0), (x.autoplaying = !1), (x.autoplayPaused = !1), (x.startAutoplay = function () { return ( void 0 === x.autoplayTimeoutId && !!x.params.autoplay && !x.autoplaying && ((x.autoplaying = !0), x.emit("onAutoplayStart", x), void r()) ); }), (x.stopAutoplay = function (e) { x.autoplayTimeoutId && (x.autoplayTimeoutId && clearTimeout(x.autoplayTimeoutId), (x.autoplaying = !1), (x.autoplayTimeoutId = void 0), x.emit("onAutoplayStop", x)); }), (x.pauseAutoplay = function (e) { x.autoplayPaused || (x.autoplayTimeoutId && clearTimeout(x.autoplayTimeoutId), (x.autoplayPaused = !0), 0 === e ? ((x.autoplayPaused = !1), r()) : x.wrapper.transitionEnd(function () { x && ((x.autoplayPaused = !1), x.autoplaying ? r() : x.stopAutoplay()); })); }), (x.minTranslate = function () { return -x.snapGrid[0]; }), (x.maxTranslate = function () { return -x.snapGrid[x.snapGrid.length - 1]; }), (x.updateAutoHeight = function () { var e, a = [], t = 0; if ( "auto" !== x.params.slidesPerView && x.params.slidesPerView > 1 ) for (e = 0; e < Math.ceil(x.params.slidesPerView); e++) { var s = x.activeIndex + e; if (s > x.slides.length) break; a.push(x.slides.eq(s)[0]); } else a.push(x.slides.eq(x.activeIndex)[0]); for (e = 0; e < a.length; e++) if (void 0 !== a[e]) { var i = a[e].offsetHeight; t = i > t ? i : t; } t && x.wrapper.css("height", t + "px"); }), (x.updateContainerSize = function () { var e, a; (e = void 0 !== x.params.width ? x.params.width : x.container[0].clientWidth), (a = void 0 !== x.params.height ? x.params.height : x.container[0].clientHeight), (0 === e && x.isHorizontal()) || (0 === a && !x.isHorizontal()) || ((e = e - parseInt(x.container.css("padding-left"), 10) - parseInt(x.container.css("padding-right"), 10)), (a = a - parseInt(x.container.css("padding-top"), 10) - parseInt(x.container.css("padding-bottom"), 10)), (x.width = e), (x.height = a), (x.size = x.isHorizontal() ? x.width : x.height)); }), (x.updateSlidesSize = function () { (x.slides = x.wrapper.children("." + x.params.slideClass)), (x.snapGrid = []), (x.slidesGrid = []), (x.slidesSizesGrid = []); var e, a = x.params.spaceBetween, t = -x.params.slidesOffsetBefore, s = 0, r = 0; if (void 0 !== x.size) { var n; "string" == typeof a && a.indexOf("%") >= 0 && (a = (parseFloat(a.replace("%", "")) / 100) * x.size), (x.virtualSize = -a), x.rtl ? x.slides.css({ marginLeft: "", marginTop: "" }) : x.slides.css({ marginRight: "", marginBottom: "" }), x.params.slidesPerColumn > 1 && ((n = Math.floor( x.slides.length / x.params.slidesPerColumn ) === x.slides.length / x.params.slidesPerColumn ? x.slides.length : Math.ceil( x.slides.length / x.params.slidesPerColumn ) * x.params.slidesPerColumn), "auto" !== x.params.slidesPerView && "row" === x.params.slidesPerColumnFill && (n = Math.max( n, x.params.slidesPerView * x.params.slidesPerColumn ))); var o, l, p = x.params.slidesPerColumn, d = n / p, c = d - (x.params.slidesPerColumn * d - x.slides.length); for (e = 0; e < x.slides.length; e++) { o = 0; var u, m, g, h = x.slides.eq(e); if (x.params.slidesPerColumn > 1) "column" === x.params.slidesPerColumnFill ? ((g = e - (m = Math.floor(e / p)) * p), (m > c || (m === c && g === p - 1)) && ++g >= p && ((g = 0), m++), (u = m + (g * n) / p), h.css({ "-webkit-box-ordinal-group": u, "-moz-box-ordinal-group": u, "-ms-flex-order": u, "-webkit-order": u, order: u, })) : (m = e - (g = Math.floor(e / d)) * d), h .css( "margin-" + (x.isHorizontal() ? "top" : "left"), 0 !== g && x.params.spaceBetween && x.params.spaceBetween + "px" ) .attr("data-swiper-column", m) .attr("data-swiper-row", g); "none" !== h.css("display") && ("auto" === x.params.slidesPerView ? ((o = x.isHorizontal() ? h.outerWidth(!0) : h.outerHeight(!0)), x.params.roundLengths && (o = i(o))) : ((o = (x.size - (x.params.slidesPerView - 1) * a) / x.params.slidesPerView), x.params.roundLengths && (o = i(o)), x.isHorizontal() ? (x.slides[e].style.width = o + "px") : (x.slides[e].style.height = o + "px")), (x.slides[e].swiperSlideSize = o), x.slidesSizesGrid.push(o), x.params.centeredSlides ? ((t = t + o / 2 + s / 2 + a), 0 === s && 0 !== e && (t = t - x.size / 2 - a), 0 === e && (t = t - x.size / 2 - a), Math.abs(t) < 0.001 && (t = 0), r % x.params.slidesPerGroup == 0 && x.snapGrid.push(t), x.slidesGrid.push(t)) : (r % x.params.slidesPerGroup == 0 && x.snapGrid.push(t), x.slidesGrid.push(t), (t = t + o + a)), (x.virtualSize += o + a), (s = o), r++); } if ( ((x.virtualSize = Math.max(x.virtualSize, x.size) + x.params.slidesOffsetAfter), x.rtl && x.wrongRTL && ("slide" === x.params.effect || "coverflow" === x.params.effect) && x.wrapper.css({ width: x.virtualSize + x.params.spaceBetween + "px", }), (x.support.flexbox && !x.params.setWrapperSize) || (x.isHorizontal() ? x.wrapper.css({ width: x.virtualSize + x.params.spaceBetween + "px", }) : x.wrapper.css({ height: x.virtualSize + x.params.spaceBetween + "px", })), x.params.slidesPerColumn > 1 && ((x.virtualSize = (o + x.params.spaceBetween) * n), (x.virtualSize = Math.ceil( x.virtualSize / x.params.slidesPerColumn ) - x.params.spaceBetween), x.isHorizontal() ? x.wrapper.css({ width: x.virtualSize + x.params.spaceBetween + "px", }) : x.wrapper.css({ height: x.virtualSize + x.params.spaceBetween + "px", }), x.params.centeredSlides)) ) { for (l = [], e = 0; e < x.snapGrid.length; e++) x.snapGrid[e] < x.virtualSize + x.snapGrid[0] && l.push(x.snapGrid[e]); x.snapGrid = l; } if (!x.params.centeredSlides) { for (l = [], e = 0; e < x.snapGrid.length; e++) x.snapGrid[e] <= x.virtualSize - x.size && l.push(x.snapGrid[e]); (x.snapGrid = l), Math.floor(x.virtualSize - x.size) - Math.floor(x.snapGrid[x.snapGrid.length - 1]) > 1 && x.snapGrid.push(x.virtualSize - x.size); } 0 === x.snapGrid.length && (x.snapGrid = [0]), 0 !== x.params.spaceBetween && (x.isHorizontal() ? x.rtl ? x.slides.css({ marginLeft: a + "px" }) : x.slides.css({ marginRight: a + "px" }) : x.slides.css({ marginBottom: a + "px" })), x.params.watchSlidesProgress && x.updateSlidesOffset(); } }), (x.updateSlidesOffset = function () { for (var e = 0; e < x.slides.length; e++) x.slides[e].swiperSlideOffset = x.isHorizontal() ? x.slides[e].offsetLeft : x.slides[e].offsetTop; }), (x.currentSlidesPerView = function () { var e, a, t = 1; if (x.params.centeredSlides) { var s, i = x.slides[x.activeIndex].swiperSlideSize; for (e = x.activeIndex + 1; e < x.slides.length; e++) x.slides[e] && !s && (t++, (i += x.slides[e].swiperSlideSize) > x.size && (s = !0)); for (a = x.activeIndex - 1; a >= 0; a--) x.slides[a] && !s && (t++, (i += x.slides[a].swiperSlideSize) > x.size && (s = !0)); } else for (e = x.activeIndex + 1; e < x.slides.length; e++) x.slidesGrid[e] - x.slidesGrid[x.activeIndex] < x.size && t++; return t; }), (x.updateSlidesProgress = function (e) { if ( (void 0 === e && (e = x.translate || 0), 0 !== x.slides.length) ) { void 0 === x.slides[0].swiperSlideOffset && x.updateSlidesOffset(); var a = -e; x.rtl && (a = e), x.slides.removeClass(x.params.slideVisibleClass); for (var t = 0; t < x.slides.length; t++) { var s = x.slides[t], i = (a + (x.params.centeredSlides ? x.minTranslate() : 0) - s.swiperSlideOffset) / (s.swiperSlideSize + x.params.spaceBetween); if (x.params.watchSlidesVisibility) { var r = -(a - s.swiperSlideOffset), n = r + x.slidesSizesGrid[t]; ((r >= 0 && r < x.size) || (n > 0 && n <= x.size) || (r <= 0 && n >= x.size)) && x.slides.eq(t).addClass(x.params.slideVisibleClass); } s.progress = x.rtl ? -i : i; } } }), (x.updateProgress = function (e) { void 0 === e && (e = x.translate || 0); var a = x.maxTranslate() - x.minTranslate(), t = x.isBeginning, s = x.isEnd; 0 === a ? ((x.progress = 0), (x.isBeginning = x.isEnd = !0)) : ((x.progress = (e - x.minTranslate()) / a), (x.isBeginning = x.progress <= 0), (x.isEnd = x.progress >= 1)), x.isBeginning && !t && x.emit("onReachBeginning", x), x.isEnd && !s && x.emit("onReachEnd", x), x.params.watchSlidesProgress && x.updateSlidesProgress(e), x.emit("onProgress", x, x.progress); }), (x.updateActiveIndex = function () { var e, a, t, s = x.rtl ? x.translate : -x.translate; for (a = 0; a < x.slidesGrid.length; a++) void 0 !== x.slidesGrid[a + 1] ? s >= x.slidesGrid[a] && s < x.slidesGrid[a + 1] - (x.slidesGrid[a + 1] - x.slidesGrid[a]) / 2 ? (e = a) : s >= x.slidesGrid[a] && s < x.slidesGrid[a + 1] && (e = a + 1) : s >= x.slidesGrid[a] && (e = a); x.params.normalizeSlideIndex && (e < 0 || void 0 === e) && (e = 0), (t = Math.floor(e / x.params.slidesPerGroup)) >= x.snapGrid.length && (t = x.snapGrid.length - 1), e !== x.activeIndex && ((x.snapIndex = t), (x.previousIndex = x.activeIndex), (x.activeIndex = e), x.updateClasses(), x.updateRealIndex()); }), (x.updateRealIndex = function () { x.realIndex = parseInt( x.slides .eq(x.activeIndex) .attr("data-swiper-slide-index") || x.activeIndex, 10 ); }), (x.updateClasses = function () { x.slides.removeClass( x.params.slideActiveClass + " " + x.params.slideNextClass + " " + x.params.slidePrevClass + " " + x.params.slideDuplicateActiveClass + " " + x.params.slideDuplicateNextClass + " " + x.params.slideDuplicatePrevClass ); var a = x.slides.eq(x.activeIndex); a.addClass(x.params.slideActiveClass), s.loop && (a.hasClass(x.params.slideDuplicateClass) ? x.wrapper .children( "." + x.params.slideClass + ":not(." + x.params.slideDuplicateClass + ')[data-swiper-slide-index="' + x.realIndex + '"]' ) .addClass(x.params.slideDuplicateActiveClass) : x.wrapper .children( "." + x.params.slideClass + "." + x.params.slideDuplicateClass + '[data-swiper-slide-index="' + x.realIndex + '"]' ) .addClass(x.params.slideDuplicateActiveClass)); var t = a .next("." + x.params.slideClass) .addClass(x.params.slideNextClass); x.params.loop && 0 === t.length && (t = x.slides.eq(0)).addClass(x.params.slideNextClass); var i = a .prev("." + x.params.slideClass) .addClass(x.params.slidePrevClass); if ( (x.params.loop && 0 === i.length && (i = x.slides.eq(-1)).addClass(x.params.slidePrevClass), s.loop && (t.hasClass(x.params.slideDuplicateClass) ? x.wrapper .children( "." + x.params.slideClass + ":not(." + x.params.slideDuplicateClass + ')[data-swiper-slide-index="' + t.attr("data-swiper-slide-index") + '"]' ) .addClass(x.params.slideDuplicateNextClass) : x.wrapper .children( "." + x.params.slideClass + "." + x.params.slideDuplicateClass + '[data-swiper-slide-index="' + t.attr("data-swiper-slide-index") + '"]' ) .addClass(x.params.slideDuplicateNextClass), i.hasClass(x.params.slideDuplicateClass) ? x.wrapper .children( "." + x.params.slideClass + ":not(." + x.params.slideDuplicateClass + ')[data-swiper-slide-index="' + i.attr("data-swiper-slide-index") + '"]' ) .addClass(x.params.slideDuplicatePrevClass) : x.wrapper .children( "." + x.params.slideClass + "." + x.params.slideDuplicateClass + '[data-swiper-slide-index="' + i.attr("data-swiper-slide-index") + '"]' ) .addClass(x.params.slideDuplicatePrevClass)), x.paginationContainer && x.paginationContainer.length > 0) ) { var r, n = x.params.loop ? Math.ceil( (x.slides.length - 2 * x.loopedSlides) / x.params.slidesPerGroup ) : x.snapGrid.length; if ( (x.params.loop ? ((r = Math.ceil( (x.activeIndex - x.loopedSlides) / x.params.slidesPerGroup )) > x.slides.length - 1 - 2 * x.loopedSlides && (r -= x.slides.length - 2 * x.loopedSlides), r > n - 1 && (r -= n), r < 0 && "bullets" !== x.params.paginationType && (r = n + r)) : (r = void 0 !== x.snapIndex ? x.snapIndex : x.activeIndex || 0), "bullets" === x.params.paginationType && x.bullets && x.bullets.length > 0 && (x.bullets.removeClass(x.params.bulletActiveClass), x.paginationContainer.length > 1 ? x.bullets.each(function () { e(this).index() === r && e(this).addClass(x.params.bulletActiveClass); }) : x.bullets .eq(r) .addClass(x.params.bulletActiveClass)), "fraction" === x.params.paginationType && (x.paginationContainer .find("." + x.params.paginationCurrentClass) .text(r + 1), x.paginationContainer .find("." + x.params.paginationTotalClass) .text(n)), "progress" === x.params.paginationType) ) { var o = (r + 1) / n, l = o, p = 1; x.isHorizontal() || ((p = o), (l = 1)), x.paginationContainer .find("." + x.params.paginationProgressbarClass) .transform( "translate3d(0,0,0) scaleX(" + l + ") scaleY(" + p + ")" ) .transition(x.params.speed); } "custom" === x.params.paginationType && x.params.paginationCustomRender && (x.paginationContainer.html( x.params.paginationCustomRender(x, r + 1, n) ), x.emit( "onPaginationRendered", x, x.paginationContainer[0] )); } x.params.loop || (x.params.prevButton && x.prevButton && x.prevButton.length > 0 && (x.isBeginning ? (x.prevButton.addClass( x.params.buttonDisabledClass ), x.params.a11y && x.a11y && x.a11y.disable(x.prevButton)) : (x.prevButton.removeClass( x.params.buttonDisabledClass ), x.params.a11y && x.a11y && x.a11y.enable(x.prevButton))), x.params.nextButton && x.nextButton && x.nextButton.length > 0 && (x.isEnd ? (x.nextButton.addClass( x.params.buttonDisabledClass ), x.params.a11y && x.a11y && x.a11y.disable(x.nextButton)) : (x.nextButton.removeClass( x.params.buttonDisabledClass ), x.params.a11y && x.a11y && x.a11y.enable(x.nextButton)))); }), (x.updatePagination = function () { if ( x.params.pagination && x.paginationContainer && x.paginationContainer.length > 0 ) { var e = ""; if ("bullets" === x.params.paginationType) { for ( var a = x.params.loop ? Math.ceil( (x.slides.length - 2 * x.loopedSlides) / x.params.slidesPerGroup ) : x.snapGrid.length, t = 0; t < a; t++ ) e += x.params.paginationBulletRender ? x.params.paginationBulletRender( x, t, x.params.bulletClass ) : "<" + x.params.paginationElement + ' class="' + x.params.bulletClass + '">"; x.paginationContainer.html(e), (x.bullets = x.paginationContainer.find( "." + x.params.bulletClass )), x.params.paginationClickable && x.params.a11y && x.a11y && x.a11y.initPagination(); } "fraction" === x.params.paginationType && ((e = x.params.paginationFractionRender ? x.params.paginationFractionRender( x, x.params.paginationCurrentClass, x.params.paginationTotalClass ) : ' / '), x.paginationContainer.html(e)), "progress" === x.params.paginationType && ((e = x.params.paginationProgressRender ? x.params.paginationProgressRender( x, x.params.paginationProgressbarClass ) : ''), x.paginationContainer.html(e)), "custom" !== x.params.paginationType && x.emit( "onPaginationRendered", x, x.paginationContainer[0] ); } }), (x.update = function (e) { function a() { x.rtl, x.translate, (t = Math.min( Math.max(x.translate, x.maxTranslate()), x.minTranslate() )), x.setWrapperTranslate(t), x.updateActiveIndex(), x.updateClasses(); } var t; x && (x.updateContainerSize(), x.updateSlidesSize(), x.updateProgress(), x.updatePagination(), x.updateClasses(), x.params.scrollbar && x.scrollbar && x.scrollbar.set(), e ? (x.controller && x.controller.spline && (x.controller.spline = void 0), x.params.freeMode ? (a(), x.params.autoHeight && x.updateAutoHeight()) : (("auto" === x.params.slidesPerView || x.params.slidesPerView > 1) && x.isEnd && !x.params.centeredSlides ? x.slideTo(x.slides.length - 1, 0, !1, !0) : x.slideTo(x.activeIndex, 0, !1, !0)) || a()) : x.params.autoHeight && x.updateAutoHeight()); }), (x.onResize = function (e) { x.params.onBeforeResize && x.params.onBeforeResize(x), x.params.breakpoints && x.setBreakpoint(); var a = x.params.allowSwipeToPrev, t = x.params.allowSwipeToNext; (x.params.allowSwipeToPrev = x.params.allowSwipeToNext = !0), x.updateContainerSize(), x.updateSlidesSize(), ("auto" === x.params.slidesPerView || x.params.freeMode || e) && x.updatePagination(), x.params.scrollbar && x.scrollbar && x.scrollbar.set(), x.controller && x.controller.spline && (x.controller.spline = void 0); var s = !1; if (x.params.freeMode) { var i = Math.min( Math.max(x.translate, x.maxTranslate()), x.minTranslate() ); x.setWrapperTranslate(i), x.updateActiveIndex(), x.updateClasses(), x.params.autoHeight && x.updateAutoHeight(); } else x.updateClasses(), (s = ("auto" === x.params.slidesPerView || x.params.slidesPerView > 1) && x.isEnd && !x.params.centeredSlides ? x.slideTo(x.slides.length - 1, 0, !1, !0) : x.slideTo(x.activeIndex, 0, !1, !0)); x.params.lazyLoading && !s && x.lazy && x.lazy.load(), (x.params.allowSwipeToPrev = a), (x.params.allowSwipeToNext = t), x.params.onAfterResize && x.params.onAfterResize(x); }), (x.touchEventsDesktop = { start: "mousedown", move: "mousemove", end: "mouseup", }), window.navigator.pointerEnabled ? (x.touchEventsDesktop = { start: "pointerdown", move: "pointermove", end: "pointerup", }) : window.navigator.msPointerEnabled && (x.touchEventsDesktop = { start: "MSPointerDown", move: "MSPointerMove", end: "MSPointerUp", }), (x.touchEvents = { start: x.support.touch || !x.params.simulateTouch ? "touchstart" : x.touchEventsDesktop.start, move: x.support.touch || !x.params.simulateTouch ? "touchmove" : x.touchEventsDesktop.move, end: x.support.touch || !x.params.simulateTouch ? "touchend" : x.touchEventsDesktop.end, }), (window.navigator.pointerEnabled || window.navigator.msPointerEnabled) && ("container" === x.params.touchEventsTarget ? x.container : x.wrapper ).addClass("swiper-wp8-" + x.params.direction), (x.initEvents = function (e) { var a = e ? "off" : "on", t = e ? "removeEventListener" : "addEventListener", i = "container" === x.params.touchEventsTarget ? x.container[0] : x.wrapper[0], r = x.support.touch ? i : document, n = !!x.params.nested; if (x.browser.ie) i[t](x.touchEvents.start, x.onTouchStart, !1), r[t](x.touchEvents.move, x.onTouchMove, n), r[t](x.touchEvents.end, x.onTouchEnd, !1); else { if (x.support.touch) { var o = !( "touchstart" !== x.touchEvents.start || !x.support.passiveListener || !x.params.passiveListeners ) && { passive: !0, capture: !1 }; i[t](x.touchEvents.start, x.onTouchStart, o), i[t](x.touchEvents.move, x.onTouchMove, n), i[t](x.touchEvents.end, x.onTouchEnd, o); } ((s.simulateTouch && !x.device.ios && !x.device.android) || (s.simulateTouch && !x.support.touch && x.device.ios)) && (i[t]("mousedown", x.onTouchStart, !1), document[t]("mousemove", x.onTouchMove, n), document[t]("mouseup", x.onTouchEnd, !1)); } window[t]("resize", x.onResize), x.params.nextButton && x.nextButton && x.nextButton.length > 0 && (x.nextButton[a]("click", x.onClickNext), x.params.a11y && x.a11y && x.nextButton[a]("keydown", x.a11y.onEnterKey)), x.params.prevButton && x.prevButton && x.prevButton.length > 0 && (x.prevButton[a]("click", x.onClickPrev), x.params.a11y && x.a11y && x.prevButton[a]("keydown", x.a11y.onEnterKey)), x.params.pagination && x.params.paginationClickable && (x.paginationContainer[a]( "click", "." + x.params.bulletClass, x.onClickIndex ), x.params.a11y && x.a11y && x.paginationContainer[a]( "keydown", "." + x.params.bulletClass, x.a11y.onEnterKey )), (x.params.preventClicks || x.params.preventClicksPropagation) && i[t]("click", x.preventClicks, !0); }), (x.attachEvents = function () { x.initEvents(); }), (x.detachEvents = function () { x.initEvents(!0); }), (x.allowClick = !0), (x.preventClicks = function (e) { x.allowClick || (x.params.preventClicks && e.preventDefault(), x.params.preventClicksPropagation && x.animating && (e.stopPropagation(), e.stopImmediatePropagation())); }), (x.onClickNext = function (e) { e.preventDefault(), (x.isEnd && !x.params.loop) || x.slideNext(); }), (x.onClickPrev = function (e) { e.preventDefault(), (x.isBeginning && !x.params.loop) || x.slidePrev(); }), (x.onClickIndex = function (a) { a.preventDefault(); var t = e(this).index() * x.params.slidesPerGroup; x.params.loop && (t += x.loopedSlides), x.slideTo(t); }), (x.updateClickedSlide = function (a) { var t = n(a, "." + x.params.slideClass), s = !1; if (t) for (var i = 0; i < x.slides.length; i++) x.slides[i] === t && (s = !0); if (!t || !s) return ( (x.clickedSlide = void 0), void (x.clickedIndex = void 0) ); if ( ((x.clickedSlide = t), (x.clickedIndex = e(t).index()), x.params.slideToClickedSlide && void 0 !== x.clickedIndex && x.clickedIndex !== x.activeIndex) ) { var r, o = x.clickedIndex, l = "auto" === x.params.slidesPerView ? x.currentSlidesPerView() : x.params.slidesPerView; if (x.params.loop) { if (x.animating) return; (r = parseInt( e(x.clickedSlide).attr("data-swiper-slide-index"), 10 )), x.params.centeredSlides ? o < x.loopedSlides - l / 2 || o > x.slides.length - x.loopedSlides + l / 2 ? (x.fixLoop(), (o = x.wrapper .children( "." + x.params.slideClass + '[data-swiper-slide-index="' + r + '"]:not(.' + x.params.slideDuplicateClass + ")" ) .eq(0) .index()), setTimeout(function () { x.slideTo(o); }, 0)) : x.slideTo(o) : o > x.slides.length - l ? (x.fixLoop(), (o = x.wrapper .children( "." + x.params.slideClass + '[data-swiper-slide-index="' + r + '"]:not(.' + x.params.slideDuplicateClass + ")" ) .eq(0) .index()), setTimeout(function () { x.slideTo(o); }, 0)) : x.slideTo(o); } else x.slideTo(o); } }); var b, C, T, S, z, M, P, k, I, E, B, D, $ = "input, select, textarea, button, video", L = Date.now(), H = []; for (var G in ((x.animating = !1), (x.touches = { startX: 0, startY: 0, currentX: 0, currentY: 0, diff: 0, }), (x.onTouchStart = function (a) { if ( (a.originalEvent && (a = a.originalEvent), (B = "touchstart" === a.type) || !("which" in a) || 3 !== a.which) ) { if ( x.params.noSwiping && n(a, "." + x.params.noSwipingClass) ) return void (x.allowClick = !0); if (!x.params.swipeHandler || n(a, x.params.swipeHandler)) { var t = (x.touches.currentX = "touchstart" === a.type ? a.targetTouches[0].pageX : a.pageX), s = (x.touches.currentY = "touchstart" === a.type ? a.targetTouches[0].pageY : a.pageY); if ( !( x.device.ios && x.params.iOSEdgeSwipeDetection && t <= x.params.iOSEdgeSwipeThreshold ) ) { if ( ((b = !0), (C = !1), (T = !0), (z = void 0), (D = void 0), (x.touches.startX = t), (x.touches.startY = s), (S = Date.now()), (x.allowClick = !0), x.updateContainerSize(), (x.swipeDirection = void 0), x.params.threshold > 0 && (k = !1), "touchstart" !== a.type) ) { var i = !0; e(a.target).is($) && (i = !1), document.activeElement && e(document.activeElement).is($) && document.activeElement.blur(), i && a.preventDefault(); } x.emit("onTouchStart", x, a); } } } }), (x.onTouchMove = function (a) { if ( (a.originalEvent && (a = a.originalEvent), !B || "mousemove" !== a.type) ) { if (a.preventedByNestedSwiper) return ( (x.touches.startX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX), void (x.touches.startY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY) ); if (x.params.onlyExternal) return ( (x.allowClick = !1), void ( b && ((x.touches.startX = x.touches.currentX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX), (x.touches.startY = x.touches.currentY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY), (S = Date.now())) ) ); if (B && x.params.touchReleaseOnEdges && !x.params.loop) if (x.isHorizontal()) { if ( (x.touches.currentX < x.touches.startX && x.translate <= x.maxTranslate()) || (x.touches.currentX > x.touches.startX && x.translate >= x.minTranslate()) ) return; } else if ( (x.touches.currentY < x.touches.startY && x.translate <= x.maxTranslate()) || (x.touches.currentY > x.touches.startY && x.translate >= x.minTranslate()) ) return; if ( B && document.activeElement && a.target === document.activeElement && e(a.target).is($) ) return (C = !0), void (x.allowClick = !1); if ( (T && x.emit("onTouchMove", x, a), !(a.targetTouches && a.targetTouches.length > 1)) ) { var t; if ( ((x.touches.currentX = "touchmove" === a.type ? a.targetTouches[0].pageX : a.pageX), (x.touches.currentY = "touchmove" === a.type ? a.targetTouches[0].pageY : a.pageY), void 0 === z) ) (x.isHorizontal() && x.touches.currentY === x.touches.startY) || (!x.isHorizontal() && x.touches.currentX === x.touches.startX) ? (z = !1) : ((t = (180 * Math.atan2( Math.abs( x.touches.currentY - x.touches.startY ), Math.abs( x.touches.currentX - x.touches.startX ) )) / Math.PI), (z = x.isHorizontal() ? t > x.params.touchAngle : 90 - t > x.params.touchAngle)); if ( (z && x.emit("onTouchMoveOpposite", x, a), void 0 === D && ((x.touches.currentX === x.touches.startX && x.touches.currentY === x.touches.startY) || (D = !0)), b) ) { if (z) return void (b = !1); if (D) { (x.allowClick = !1), x.emit("onSliderMove", x, a), a.preventDefault(), x.params.touchMoveStopPropagation && !x.params.nested && a.stopPropagation(), C || (s.loop && x.fixLoop(), (P = x.getWrapperTranslate()), x.setWrapperTransition(0), x.animating && x.wrapper.trigger( "webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd" ), x.params.autoplay && x.autoplaying && (x.params.autoplayDisableOnInteraction ? x.stopAutoplay() : x.pauseAutoplay()), (E = !1), !x.params.grabCursor || (!0 !== x.params.allowSwipeToNext && !0 !== x.params.allowSwipeToPrev) || x.setGrabCursor(!0)), (C = !0); var i = (x.touches.diff = x.isHorizontal() ? x.touches.currentX - x.touches.startX : x.touches.currentY - x.touches.startY); (i *= x.params.touchRatio), x.rtl && (i = -i), (x.swipeDirection = i > 0 ? "prev" : "next"), (M = i + P); var r = !0; if ( (i > 0 && M > x.minTranslate() ? ((r = !1), x.params.resistance && (M = x.minTranslate() - 1 + Math.pow( -x.minTranslate() + P + i, x.params.resistanceRatio ))) : i < 0 && M < x.maxTranslate() && ((r = !1), x.params.resistance && (M = x.maxTranslate() + 1 - Math.pow( x.maxTranslate() - P - i, x.params.resistanceRatio ))), r && (a.preventedByNestedSwiper = !0), !x.params.allowSwipeToNext && "next" === x.swipeDirection && M < P && (M = P), !x.params.allowSwipeToPrev && "prev" === x.swipeDirection && M > P && (M = P), x.params.threshold > 0) ) { if (!(Math.abs(i) > x.params.threshold || k)) return void (M = P); if (!k) return ( (k = !0), (x.touches.startX = x.touches.currentX), (x.touches.startY = x.touches.currentY), (M = P), void (x.touches.diff = x.isHorizontal() ? x.touches.currentX - x.touches.startX : x.touches.currentY - x.touches.startY) ); } x.params.followFinger && ((x.params.freeMode || x.params.watchSlidesProgress) && x.updateActiveIndex(), x.params.freeMode && (0 === H.length && H.push({ position: x.touches[ x.isHorizontal() ? "startX" : "startY" ], time: S, }), H.push({ position: x.touches[ x.isHorizontal() ? "currentX" : "currentY" ], time: new window.Date().getTime(), })), x.updateProgress(M), x.setWrapperTranslate(M)); } } } } }), (x.onTouchEnd = function (a) { if ( (a.originalEvent && (a = a.originalEvent), T && x.emit("onTouchEnd", x, a), (T = !1), b) ) { x.params.grabCursor && C && b && (!0 === x.params.allowSwipeToNext || !0 === x.params.allowSwipeToPrev) && x.setGrabCursor(!1); var t, s = Date.now(), i = s - S; if ( (x.allowClick && (x.updateClickedSlide(a), x.emit("onTap", x, a), i < 300 && s - L > 300 && (I && clearTimeout(I), (I = setTimeout(function () { x && (x.params.paginationHide && x.paginationContainer.length > 0 && !e(a.target).hasClass(x.params.bulletClass) && x.paginationContainer.toggleClass( x.params.paginationHiddenClass ), x.emit("onClick", x, a)); }, 300))), i < 300 && s - L < 300 && (I && clearTimeout(I), x.emit("onDoubleTap", x, a))), (L = Date.now()), setTimeout(function () { x && (x.allowClick = !0); }, 0), !b || !C || !x.swipeDirection || 0 === x.touches.diff || M === P) ) return void (b = C = !1); if ( ((b = C = !1), (t = x.params.followFinger ? x.rtl ? x.translate : -x.translate : -M), x.params.freeMode) ) { if (t < -x.minTranslate()) return void x.slideTo(x.activeIndex); if (t > -x.maxTranslate()) return void (x.slides.length < x.snapGrid.length ? x.slideTo(x.snapGrid.length - 1) : x.slideTo(x.slides.length - 1)); if (x.params.freeModeMomentum) { if (H.length > 1) { var r = H.pop(), n = H.pop(), o = r.position - n.position, l = r.time - n.time; (x.velocity = o / l), (x.velocity = x.velocity / 2), Math.abs(x.velocity) < x.params.freeModeMinimumVelocity && (x.velocity = 0), (l > 150 || new window.Date().getTime() - r.time > 300) && (x.velocity = 0); } else x.velocity = 0; (x.velocity = x.velocity * x.params.freeModeMomentumVelocityRatio), (H.length = 0); var p = 1e3 * x.params.freeModeMomentumRatio, d = x.velocity * p, c = x.translate + d; x.rtl && (c = -c); var u, m = !1, g = 20 * Math.abs(x.velocity) * x.params.freeModeMomentumBounceRatio; if (c < x.maxTranslate()) x.params.freeModeMomentumBounce ? (c + x.maxTranslate() < -g && (c = x.maxTranslate() - g), (u = x.maxTranslate()), (m = !0), (E = !0)) : (c = x.maxTranslate()); else if (c > x.minTranslate()) x.params.freeModeMomentumBounce ? (c - x.minTranslate() > g && (c = x.minTranslate() + g), (u = x.minTranslate()), (m = !0), (E = !0)) : (c = x.minTranslate()); else if (x.params.freeModeSticky) { var h, v = 0; for (v = 0; v < x.snapGrid.length; v += 1) if (x.snapGrid[v] > -c) { h = v; break; } (c = Math.abs(x.snapGrid[h] - c) < Math.abs(x.snapGrid[h - 1] - c) || "next" === x.swipeDirection ? x.snapGrid[h] : x.snapGrid[h - 1]), x.rtl || (c = -c); } if (0 !== x.velocity) p = x.rtl ? Math.abs((-c - x.translate) / x.velocity) : Math.abs((c - x.translate) / x.velocity); else if (x.params.freeModeSticky) return void x.slideReset(); x.params.freeModeMomentumBounce && m ? (x.updateProgress(u), x.setWrapperTransition(p), x.setWrapperTranslate(c), x.onTransitionStart(), (x.animating = !0), x.wrapper.transitionEnd(function () { x && E && (x.emit("onMomentumBounce", x), x.setWrapperTransition(x.params.speed), x.setWrapperTranslate(u), x.wrapper.transitionEnd(function () { x && x.onTransitionEnd(); })); })) : x.velocity ? (x.updateProgress(c), x.setWrapperTransition(p), x.setWrapperTranslate(c), x.onTransitionStart(), x.animating || ((x.animating = !0), x.wrapper.transitionEnd(function () { x && x.onTransitionEnd(); }))) : x.updateProgress(c), x.updateActiveIndex(); } return void ( (!x.params.freeModeMomentum || i >= x.params.longSwipesMs) && (x.updateProgress(), x.updateActiveIndex()) ); } var f, w = 0, y = x.slidesSizesGrid[0]; for ( f = 0; f < x.slidesGrid.length; f += x.params.slidesPerGroup ) void 0 !== x.slidesGrid[f + x.params.slidesPerGroup] ? t >= x.slidesGrid[f] && t < x.slidesGrid[f + x.params.slidesPerGroup] && ((w = f), (y = x.slidesGrid[f + x.params.slidesPerGroup] - x.slidesGrid[f])) : t >= x.slidesGrid[f] && ((w = f), (y = x.slidesGrid[x.slidesGrid.length - 1] - x.slidesGrid[x.slidesGrid.length - 2])); var z = (t - x.slidesGrid[w]) / y; if (i > x.params.longSwipesMs) { if (!x.params.longSwipes) return void x.slideTo(x.activeIndex); "next" === x.swipeDirection && (z >= x.params.longSwipesRatio ? x.slideTo(w + x.params.slidesPerGroup) : x.slideTo(w)), "prev" === x.swipeDirection && (z > 1 - x.params.longSwipesRatio ? x.slideTo(w + x.params.slidesPerGroup) : x.slideTo(w)); } else { if (!x.params.shortSwipes) return void x.slideTo(x.activeIndex); "next" === x.swipeDirection && x.slideTo(w + x.params.slidesPerGroup), "prev" === x.swipeDirection && x.slideTo(w); } } }), (x._slideTo = function (e, a) { return x.slideTo(e, a, !0, !0); }), (x.slideTo = function (e, a, t, s) { void 0 === t && (t = !0), void 0 === e && (e = 0), e < 0 && (e = 0), (x.snapIndex = Math.floor(e / x.params.slidesPerGroup)), x.snapIndex >= x.snapGrid.length && (x.snapIndex = x.snapGrid.length - 1); var i = -x.snapGrid[x.snapIndex]; if ( (x.params.autoplay && x.autoplaying && (s || !x.params.autoplayDisableOnInteraction ? x.pauseAutoplay(a) : x.stopAutoplay()), x.updateProgress(i), x.params.normalizeSlideIndex) ) for (var r = 0; r < x.slidesGrid.length; r++) -Math.floor(100 * i) >= Math.floor(100 * x.slidesGrid[r]) && (e = r); return !( (!x.params.allowSwipeToNext && i < x.translate && i < x.minTranslate()) || (!x.params.allowSwipeToPrev && i > x.translate && i > x.maxTranslate() && (x.activeIndex || 0) !== e) || (void 0 === a && (a = x.params.speed), (x.previousIndex = x.activeIndex || 0), (x.activeIndex = e), x.updateRealIndex(), (x.rtl && -i === x.translate) || (!x.rtl && i === x.translate) ? (x.params.autoHeight && x.updateAutoHeight(), x.updateClasses(), "slide" !== x.params.effect && x.setWrapperTranslate(i), 1) : (x.updateClasses(), x.onTransitionStart(t), 0 === a || x.browser.lteIE9 ? (x.setWrapperTranslate(i), x.setWrapperTransition(0), x.onTransitionEnd(t)) : (x.setWrapperTranslate(i), x.setWrapperTransition(a), x.animating || ((x.animating = !0), x.wrapper.transitionEnd(function () { x && x.onTransitionEnd(t); }))), 0)) ); }), (x.onTransitionStart = function (e) { void 0 === e && (e = !0), x.params.autoHeight && x.updateAutoHeight(), x.lazy && x.lazy.onTransitionStart(), e && (x.emit("onTransitionStart", x), x.activeIndex !== x.previousIndex && (x.emit("onSlideChangeStart", x), x.activeIndex > x.previousIndex ? x.emit("onSlideNextStart", x) : x.emit("onSlidePrevStart", x))); }), (x.onTransitionEnd = function (e) { (x.animating = !1), x.setWrapperTransition(0), void 0 === e && (e = !0), x.lazy && x.lazy.onTransitionEnd(), e && (x.emit("onTransitionEnd", x), x.activeIndex !== x.previousIndex && (x.emit("onSlideChangeEnd", x), x.activeIndex > x.previousIndex ? x.emit("onSlideNextEnd", x) : x.emit("onSlidePrevEnd", x))), x.params.history && x.history && x.history.setHistory(x.params.history, x.activeIndex), x.params.hashnav && x.hashnav && x.hashnav.setHash(); }), (x.slideNext = function (e, a, t) { return x.params.loop ? !x.animating && (x.fixLoop(), x.container[0].clientLeft, x.slideTo( x.activeIndex + x.params.slidesPerGroup, a, e, t )) : x.slideTo( x.activeIndex + x.params.slidesPerGroup, a, e, t ); }), (x._slideNext = function (e) { return x.slideNext(!0, e, !0); }), (x.slidePrev = function (e, a, t) { return x.params.loop ? !x.animating && (x.fixLoop(), x.container[0].clientLeft, x.slideTo(x.activeIndex - 1, a, e, t)) : x.slideTo(x.activeIndex - 1, a, e, t); }), (x._slidePrev = function (e) { return x.slidePrev(!0, e, !0); }), (x.slideReset = function (e, a, t) { return x.slideTo(x.activeIndex, a, e); }), (x.disableTouchControl = function () { return (x.params.onlyExternal = !0), !0; }), (x.enableTouchControl = function () { return (x.params.onlyExternal = !1), !0; }), (x.setWrapperTransition = function (e, a) { x.wrapper.transition(e), "slide" !== x.params.effect && x.effects[x.params.effect] && x.effects[x.params.effect].setTransition(e), x.params.parallax && x.parallax && x.parallax.setTransition(e), x.params.scrollbar && x.scrollbar && x.scrollbar.setTransition(e), x.params.control && x.controller && x.controller.setTransition(e, a), x.emit("onSetTransition", x, e); }), (x.setWrapperTranslate = function (e, a, t) { var s = 0, r = 0; x.isHorizontal() ? (s = x.rtl ? -e : e) : (r = e), x.params.roundLengths && ((s = i(s)), (r = i(r))), x.params.virtualTranslate || (x.support.transforms3d ? x.wrapper.transform( "translate3d(" + s + "px, " + r + "px, 0px)" ) : x.wrapper.transform( "translate(" + s + "px, " + r + "px)" )), (x.translate = x.isHorizontal() ? s : r); var n = x.maxTranslate() - x.minTranslate(); (0 === n ? 0 : (e - x.minTranslate()) / n) !== x.progress && x.updateProgress(e), a && x.updateActiveIndex(), "slide" !== x.params.effect && x.effects[x.params.effect] && x.effects[x.params.effect].setTranslate(x.translate), x.params.parallax && x.parallax && x.parallax.setTranslate(x.translate), x.params.scrollbar && x.scrollbar && x.scrollbar.setTranslate(x.translate), x.params.control && x.controller && x.controller.setTranslate(x.translate, t), x.emit("onSetTranslate", x, x.translate); }), (x.getTranslate = function (e, a) { var t, s, i, r; return ( void 0 === a && (a = "x"), x.params.virtualTranslate ? x.rtl ? -x.translate : x.translate : ((i = window.getComputedStyle(e, null)), window.WebKitCSSMatrix ? ((s = i.transform || i.webkitTransform).split(",") .length > 6 && (s = s .split(", ") .map(function (e) { return e.replace(",", "."); }) .join(", ")), (r = new window.WebKitCSSMatrix( "none" === s ? "" : s ))) : (t = (r = i.MozTransform || i.OTransform || i.MsTransform || i.msTransform || i.transform || i .getPropertyValue("transform") .replace("translate(", "matrix(1, 0, 0, 1,")) .toString() .split(",")), "x" === a && (s = window.WebKitCSSMatrix ? r.m41 : 16 === t.length ? parseFloat(t[12]) : parseFloat(t[4])), "y" === a && (s = window.WebKitCSSMatrix ? r.m42 : 16 === t.length ? parseFloat(t[13]) : parseFloat(t[5])), x.rtl && s && (s = -s), s || 0) ); }), (x.getWrapperTranslate = function (e) { return ( void 0 === e && (e = x.isHorizontal() ? "x" : "y"), x.getTranslate(x.wrapper[0], e) ); }), (x.observers = []), (x.initObservers = function () { if (x.params.observeParents) for ( var e = x.container.parents(), a = 0; a < e.length; a++ ) o(e[a]); o(x.container[0], { childList: !1 }), o(x.wrapper[0], { attributes: !1 }); }), (x.disconnectObservers = function () { for (var e = 0; e < x.observers.length; e++) x.observers[e].disconnect(); x.observers = []; }), (x.createLoop = function () { x.wrapper .children( "." + x.params.slideClass + "." + x.params.slideDuplicateClass ) .remove(); var a = x.wrapper.children("." + x.params.slideClass); "auto" !== x.params.slidesPerView || x.params.loopedSlides || (x.params.loopedSlides = a.length), (x.loopedSlides = parseInt( x.params.loopedSlides || x.params.slidesPerView, 10 )), (x.loopedSlides = x.loopedSlides + x.params.loopAdditionalSlides), x.loopedSlides > a.length && (x.loopedSlides = a.length); var t, s = [], i = []; for ( a.each(function (t, r) { var n = e(this); t < x.loopedSlides && i.push(r), t < a.length && t >= a.length - x.loopedSlides && s.push(r), n.attr("data-swiper-slide-index", t); }), t = 0; t < i.length; t++ ) x.wrapper.append( e(i[t].cloneNode(!0)).addClass( x.params.slideDuplicateClass ) ); for (t = s.length - 1; t >= 0; t--) x.wrapper.prepend( e(s[t].cloneNode(!0)).addClass( x.params.slideDuplicateClass ) ); }), (x.destroyLoop = function () { x.wrapper .children( "." + x.params.slideClass + "." + x.params.slideDuplicateClass ) .remove(), x.slides.removeAttr("data-swiper-slide-index"); }), (x.reLoop = function (e) { var a = x.activeIndex - x.loopedSlides; x.destroyLoop(), x.createLoop(), x.updateSlidesSize(), e && x.slideTo(a + x.loopedSlides, 0, !1); }), (x.fixLoop = function () { var e; x.activeIndex < x.loopedSlides ? ((e = x.slides.length - 3 * x.loopedSlides + x.activeIndex), (e += x.loopedSlides), x.slideTo(e, 0, !1, !0)) : (("auto" === x.params.slidesPerView && x.activeIndex >= 2 * x.loopedSlides) || x.activeIndex > x.slides.length - 2 * x.params.slidesPerView) && ((e = -x.slides.length + x.activeIndex + x.loopedSlides), (e += x.loopedSlides), x.slideTo(e, 0, !1, !0)); }), (x.appendSlide = function (e) { if ( (x.params.loop && x.destroyLoop(), "object" == typeof e && e.length) ) for (var a = 0; a < e.length; a++) e[a] && x.wrapper.append(e[a]); else x.wrapper.append(e); x.params.loop && x.createLoop(), (x.params.observer && x.support.observer) || x.update(!0); }), (x.prependSlide = function (e) { x.params.loop && x.destroyLoop(); var a = x.activeIndex + 1; if ("object" == typeof e && e.length) { for (var t = 0; t < e.length; t++) e[t] && x.wrapper.prepend(e[t]); a = x.activeIndex + e.length; } else x.wrapper.prepend(e); x.params.loop && x.createLoop(), (x.params.observer && x.support.observer) || x.update(!0), x.slideTo(a, 0, !1); }), (x.removeSlide = function (e) { x.params.loop && (x.destroyLoop(), (x.slides = x.wrapper.children("." + x.params.slideClass))); var a, t = x.activeIndex; if ("object" == typeof e && e.length) { for (var s = 0; s < e.length; s++) (a = e[s]), x.slides[a] && x.slides.eq(a).remove(), a < t && t--; t = Math.max(t, 0); } else (a = e), x.slides[a] && x.slides.eq(a).remove(), a < t && t--, (t = Math.max(t, 0)); x.params.loop && x.createLoop(), (x.params.observer && x.support.observer) || x.update(!0), x.params.loop ? x.slideTo(t + x.loopedSlides, 0, !1) : x.slideTo(t, 0, !1); }), (x.removeAllSlides = function () { for (var e = [], a = 0; a < x.slides.length; a++) e.push(a); x.removeSlide(e); }), (x.effects = { fade: { setTranslate: function () { for (var e = 0; e < x.slides.length; e++) { var a = x.slides.eq(e), t = -a[0].swiperSlideOffset; x.params.virtualTranslate || (t -= x.translate); var s = 0; x.isHorizontal() || ((s = t), (t = 0)); var i = x.params.fade.crossFade ? Math.max(1 - Math.abs(a[0].progress), 0) : 1 + Math.min(Math.max(a[0].progress, -1), 0); a.css({ opacity: i }).transform( "translate3d(" + t + "px, " + s + "px, 0px)" ); } }, setTransition: function (e) { if ( (x.slides.transition(e), x.params.virtualTranslate && 0 !== e) ) { var a = !1; x.slides.transitionEnd(function () { if (!a && x) { (a = !0), (x.animating = !1); for ( var e = [ "webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd", ], t = 0; t < e.length; t++ ) x.wrapper.trigger(e[t]); } }); } }, }, flip: { setTranslate: function () { for (var a = 0; a < x.slides.length; a++) { var t = x.slides.eq(a), s = t[0].progress; x.params.flip.limitRotation && (s = Math.max(Math.min(t[0].progress, 1), -1)); var i = -180 * s, r = 0, n = -t[0].swiperSlideOffset, o = 0; if ( (x.isHorizontal() ? x.rtl && (i = -i) : ((o = n), (n = 0), (r = -i), (i = 0)), (t[0].style.zIndex = -Math.abs(Math.round(s)) + x.slides.length), x.params.flip.slideShadows) ) { var l = x.isHorizontal() ? t.find(".swiper-slide-shadow-left") : t.find(".swiper-slide-shadow-top"), p = x.isHorizontal() ? t.find(".swiper-slide-shadow-right") : t.find(".swiper-slide-shadow-bottom"); 0 === l.length && ((l = e( '
' )), t.append(l)), 0 === p.length && ((p = e( '
' )), t.append(p)), l.length && (l[0].style.opacity = Math.max(-s, 0)), p.length && (p[0].style.opacity = Math.max(s, 0)); } t.transform( "translate3d(" + n + "px, " + o + "px, 0px) rotateX(" + r + "deg) rotateY(" + i + "deg)" ); } }, setTransition: function (a) { if ( (x.slides .transition(a) .find( ".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left" ) .transition(a), x.params.virtualTranslate && 0 !== a) ) { var t = !1; x.slides.eq(x.activeIndex).transitionEnd(function () { if ( !t && x && e(this).hasClass(x.params.slideActiveClass) ) { (t = !0), (x.animating = !1); for ( var a = [ "webkitTransitionEnd", "transitionend", "oTransitionEnd", "MSTransitionEnd", "msTransitionEnd", ], s = 0; s < a.length; s++ ) x.wrapper.trigger(a[s]); } }); } }, }, cube: { setTranslate: function () { var a, t = 0; x.params.cube.shadow && (x.isHorizontal() ? (0 === (a = x.wrapper.find(".swiper-cube-shadow")) .length && ((a = e( '
' )), x.wrapper.append(a)), a.css({ height: x.width + "px" })) : 0 === (a = x.container.find(".swiper-cube-shadow")) .length && ((a = e('
')), x.container.append(a))); for (var s = 0; s < x.slides.length; s++) { var i = x.slides.eq(s), r = 90 * s, n = Math.floor(r / 360); x.rtl && ((r = -r), (n = Math.floor(-r / 360))); var o = Math.max(Math.min(i[0].progress, 1), -1), l = 0, p = 0, d = 0; s % 4 == 0 ? ((l = 4 * -n * x.size), (d = 0)) : (s - 1) % 4 == 0 ? ((l = 0), (d = 4 * -n * x.size)) : (s - 2) % 4 == 0 ? ((l = x.size + 4 * n * x.size), (d = x.size)) : (s - 3) % 4 == 0 && ((l = -x.size), (d = 3 * x.size + 4 * x.size * n)), x.rtl && (l = -l), x.isHorizontal() || ((p = l), (l = 0)); var c = "rotateX(" + (x.isHorizontal() ? 0 : -r) + "deg) rotateY(" + (x.isHorizontal() ? r : 0) + "deg) translate3d(" + l + "px, " + p + "px, " + d + "px)"; if ( (o <= 1 && o > -1 && ((t = 90 * s + 90 * o), x.rtl && (t = 90 * -s - 90 * o)), i.transform(c), x.params.cube.slideShadows) ) { var u = x.isHorizontal() ? i.find(".swiper-slide-shadow-left") : i.find(".swiper-slide-shadow-top"), m = x.isHorizontal() ? i.find(".swiper-slide-shadow-right") : i.find(".swiper-slide-shadow-bottom"); 0 === u.length && ((u = e( '
' )), i.append(u)), 0 === m.length && ((m = e( '
' )), i.append(m)), u.length && (u[0].style.opacity = Math.max(-o, 0)), m.length && (m[0].style.opacity = Math.max(o, 0)); } } if ( (x.wrapper.css({ "-webkit-transform-origin": "50% 50% -" + x.size / 2 + "px", "-moz-transform-origin": "50% 50% -" + x.size / 2 + "px", "-ms-transform-origin": "50% 50% -" + x.size / 2 + "px", "transform-origin": "50% 50% -" + x.size / 2 + "px", }), x.params.cube.shadow) ) if (x.isHorizontal()) a.transform( "translate3d(0px, " + (x.width / 2 + x.params.cube.shadowOffset) + "px, " + -x.width / 2 + "px) rotateX(90deg) rotateZ(0deg) scale(" + x.params.cube.shadowScale + ")" ); else { var g = Math.abs(t) - 90 * Math.floor(Math.abs(t) / 90), h = 1.5 - (Math.sin((2 * g * Math.PI) / 360) / 2 + Math.cos((2 * g * Math.PI) / 360) / 2), v = x.params.cube.shadowScale, f = x.params.cube.shadowScale / h, w = x.params.cube.shadowOffset; a.transform( "scale3d(" + v + ", 1, " + f + ") translate3d(0px, " + (x.height / 2 + w) + "px, " + -x.height / 2 / f + "px) rotateX(-90deg)" ); } var y = x.isSafari || x.isUiWebView ? -x.size / 2 : 0; x.wrapper.transform( "translate3d(0px,0," + y + "px) rotateX(" + (x.isHorizontal() ? 0 : t) + "deg) rotateY(" + (x.isHorizontal() ? -t : 0) + "deg)" ); }, setTransition: function (e) { x.slides .transition(e) .find( ".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left" ) .transition(e), x.params.cube.shadow && !x.isHorizontal() && x.container.find(".swiper-cube-shadow").transition(e); }, }, coverflow: { setTranslate: function () { for ( var a = x.translate, t = x.isHorizontal() ? -a + x.width / 2 : -a + x.height / 2, s = x.isHorizontal() ? x.params.coverflow.rotate : -x.params.coverflow.rotate, i = x.params.coverflow.depth, r = 0, n = x.slides.length; r < n; r++ ) { var o = x.slides.eq(r), l = x.slidesSizesGrid[r], p = ((t - o[0].swiperSlideOffset - l / 2) / l) * x.params.coverflow.modifier, d = x.isHorizontal() ? s * p : 0, c = x.isHorizontal() ? 0 : s * p, u = -i * Math.abs(p), m = x.isHorizontal() ? 0 : x.params.coverflow.stretch * p, g = x.isHorizontal() ? x.params.coverflow.stretch * p : 0; Math.abs(g) < 0.001 && (g = 0), Math.abs(m) < 0.001 && (m = 0), Math.abs(u) < 0.001 && (u = 0), Math.abs(d) < 0.001 && (d = 0), Math.abs(c) < 0.001 && (c = 0); var h = "translate3d(" + g + "px," + m + "px," + u + "px) rotateX(" + c + "deg) rotateY(" + d + "deg)"; if ( (o.transform(h), (o[0].style.zIndex = 1 - Math.abs(Math.round(p))), x.params.coverflow.slideShadows) ) { var v = x.isHorizontal() ? o.find(".swiper-slide-shadow-left") : o.find(".swiper-slide-shadow-top"), f = x.isHorizontal() ? o.find(".swiper-slide-shadow-right") : o.find(".swiper-slide-shadow-bottom"); 0 === v.length && ((v = e( '
' )), o.append(v)), 0 === f.length && ((f = e( '
' )), o.append(f)), v.length && (v[0].style.opacity = p > 0 ? p : 0), f.length && (f[0].style.opacity = -p > 0 ? -p : 0); } } x.browser.ie && (x.wrapper[0].style.perspectiveOrigin = t + "px 50%"); }, setTransition: function (e) { x.slides .transition(e) .find( ".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left" ) .transition(e); }, }, }), (x.lazy = { initialImageLoaded: !1, loadImageInSlide: function (a, t) { if ( void 0 !== a && (void 0 === t && (t = !0), 0 !== x.slides.length) ) { var s = x.slides.eq(a), i = s.find( "." + x.params.lazyLoadingClass + ":not(." + x.params.lazyStatusLoadedClass + "):not(." + x.params.lazyStatusLoadingClass + ")" ); !s.hasClass(x.params.lazyLoadingClass) || s.hasClass(x.params.lazyStatusLoadedClass) || s.hasClass(x.params.lazyStatusLoadingClass) || (i = i.add(s[0])), 0 !== i.length && i.each(function () { var a = e(this); a.addClass(x.params.lazyStatusLoadingClass); var i = a.attr("data-background"), r = a.attr("data-src"), n = a.attr("data-srcset"), o = a.attr("data-sizes"); x.loadImage(a[0], r || i, n, o, !1, function () { if (null != x && x) { if ( (i ? (a.css( "background-image", 'url("' + i + '")' ), a.removeAttr("data-background")) : (n && (a.attr("srcset", n), a.removeAttr("data-srcset")), o && (a.attr("sizes", o), a.removeAttr("data-sizes")), r && (a.attr("src", r), a.removeAttr("data-src"))), a .addClass(x.params.lazyStatusLoadedClass) .removeClass( x.params.lazyStatusLoadingClass ), s .find( "." + x.params.lazyPreloaderClass + ", ." + x.params.preloaderClass ) .remove(), x.params.loop && t) ) { var e = s.attr("data-swiper-slide-index"); if ( s.hasClass(x.params.slideDuplicateClass) ) { var l = x.wrapper.children( '[data-swiper-slide-index="' + e + '"]:not(.' + x.params.slideDuplicateClass + ")" ); x.lazy.loadImageInSlide(l.index(), !1); } else { var p = x.wrapper.children( "." + x.params.slideDuplicateClass + '[data-swiper-slide-index="' + e + '"]' ); x.lazy.loadImageInSlide(p.index(), !1); } } x.emit("onLazyImageReady", x, s[0], a[0]); } }), x.emit("onLazyImageLoad", x, s[0], a[0]); }); } }, load: function () { var a, t = x.params.slidesPerView; if ( ("auto" === t && (t = 0), x.lazy.initialImageLoaded || (x.lazy.initialImageLoaded = !0), x.params.watchSlidesVisibility) ) x.wrapper .children("." + x.params.slideVisibleClass) .each(function () { x.lazy.loadImageInSlide(e(this).index()); }); else if (t > 1) for (a = x.activeIndex; a < x.activeIndex + t; a++) x.slides[a] && x.lazy.loadImageInSlide(a); else x.lazy.loadImageInSlide(x.activeIndex); if (x.params.lazyLoadingInPrevNext) if ( t > 1 || (x.params.lazyLoadingInPrevNextAmount && x.params.lazyLoadingInPrevNextAmount > 1) ) { var s = x.params.lazyLoadingInPrevNextAmount, i = t, r = Math.min( x.activeIndex + i + Math.max(s, i), x.slides.length ), n = Math.max(x.activeIndex - Math.max(i, s), 0); for (a = x.activeIndex + t; a < r; a++) x.slides[a] && x.lazy.loadImageInSlide(a); for (a = n; a < x.activeIndex; a++) x.slides[a] && x.lazy.loadImageInSlide(a); } else { var o = x.wrapper.children( "." + x.params.slideNextClass ); o.length > 0 && x.lazy.loadImageInSlide(o.index()); var l = x.wrapper.children( "." + x.params.slidePrevClass ); l.length > 0 && x.lazy.loadImageInSlide(l.index()); } }, onTransitionStart: function () { x.params.lazyLoading && (x.params.lazyLoadingOnTransitionStart || (!x.params.lazyLoadingOnTransitionStart && !x.lazy.initialImageLoaded)) && x.lazy.load(); }, onTransitionEnd: function () { x.params.lazyLoading && !x.params.lazyLoadingOnTransitionStart && x.lazy.load(); }, }), (x.scrollbar = { isTouched: !1, setDragPosition: function (e) { var a = x.scrollbar, t = (x.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) - a.track.offset()[x.isHorizontal() ? "left" : "top"] - a.dragSize / 2, s = -x.minTranslate() * a.moveDivider, i = -x.maxTranslate() * a.moveDivider; t < s ? (t = s) : t > i && (t = i), (t = -t / a.moveDivider), x.updateProgress(t), x.setWrapperTranslate(t, !0); }, dragStart: function (e) { var a = x.scrollbar; (a.isTouched = !0), e.preventDefault(), e.stopPropagation(), a.setDragPosition(e), clearTimeout(a.dragTimeout), a.track.transition(0), x.params.scrollbarHide && a.track.css("opacity", 1), x.wrapper.transition(100), a.drag.transition(100), x.emit("onScrollbarDragStart", x); }, dragMove: function (e) { var a = x.scrollbar; a.isTouched && (e.preventDefault ? e.preventDefault() : (e.returnValue = !1), a.setDragPosition(e), x.wrapper.transition(0), a.track.transition(0), a.drag.transition(0), x.emit("onScrollbarDragMove", x)); }, dragEnd: function (e) { var a = x.scrollbar; a.isTouched && ((a.isTouched = !1), x.params.scrollbarHide && (clearTimeout(a.dragTimeout), (a.dragTimeout = setTimeout(function () { a.track.css("opacity", 0), a.track.transition(400); }, 1e3))), x.emit("onScrollbarDragEnd", x), x.params.scrollbarSnapOnRelease && x.slideReset()); }, draggableEvents: !1 !== x.params.simulateTouch || x.support.touch ? x.touchEvents : x.touchEventsDesktop, enableDraggable: function () { var a = x.scrollbar, t = x.support.touch ? a.track : document; e(a.track).on(a.draggableEvents.start, a.dragStart), e(t).on(a.draggableEvents.move, a.dragMove), e(t).on(a.draggableEvents.end, a.dragEnd); }, disableDraggable: function () { var a = x.scrollbar, t = x.support.touch ? a.track : document; e(a.track).off(a.draggableEvents.start, a.dragStart), e(t).off(a.draggableEvents.move, a.dragMove), e(t).off(a.draggableEvents.end, a.dragEnd); }, set: function () { if (x.params.scrollbar) { var a = x.scrollbar; (a.track = e(x.params.scrollbar)), x.params.uniqueNavElements && "string" == typeof x.params.scrollbar && a.track.length > 1 && 1 === x.container.find(x.params.scrollbar).length && (a.track = x.container.find(x.params.scrollbar)), (a.drag = a.track.find(".swiper-scrollbar-drag")), 0 === a.drag.length && ((a.drag = e( '
' )), a.track.append(a.drag)), (a.drag[0].style.width = ""), (a.drag[0].style.height = ""), (a.trackSize = x.isHorizontal() ? a.track[0].offsetWidth : a.track[0].offsetHeight), (a.divider = x.size / x.virtualSize), (a.moveDivider = a.divider * (a.trackSize / x.size)), (a.dragSize = a.trackSize * a.divider), x.isHorizontal() ? (a.drag[0].style.width = a.dragSize + "px") : (a.drag[0].style.height = a.dragSize + "px"), a.divider >= 1 ? (a.track[0].style.display = "none") : (a.track[0].style.display = ""), x.params.scrollbarHide && (a.track[0].style.opacity = 0); } }, setTranslate: function () { if (x.params.scrollbar) { var e, a = x.scrollbar, t = (x.translate, a.dragSize); (e = (a.trackSize - a.dragSize) * x.progress), x.rtl && x.isHorizontal() ? (e = -e) > 0 ? ((t = a.dragSize - e), (e = 0)) : -e + a.dragSize > a.trackSize && (t = a.trackSize + e) : e < 0 ? ((t = a.dragSize + e), (e = 0)) : e + a.dragSize > a.trackSize && (t = a.trackSize - e), x.isHorizontal() ? (x.support.transforms3d ? a.drag.transform( "translate3d(" + e + "px, 0, 0)" ) : a.drag.transform("translateX(" + e + "px)"), (a.drag[0].style.width = t + "px")) : (x.support.transforms3d ? a.drag.transform( "translate3d(0px, " + e + "px, 0)" ) : a.drag.transform("translateY(" + e + "px)"), (a.drag[0].style.height = t + "px")), x.params.scrollbarHide && (clearTimeout(a.timeout), (a.track[0].style.opacity = 1), (a.timeout = setTimeout(function () { (a.track[0].style.opacity = 0), a.track.transition(400); }, 1e3))); } }, setTransition: function (e) { x.params.scrollbar && x.scrollbar.drag.transition(e); }, }), (x.controller = { LinearSpline: function (e, a) { var t, s, i = (function () { var e, a, t; return function (s, i) { for (a = -1, e = s.length; e - a > 1; ) s[(t = (e + a) >> 1)] <= i ? (a = t) : (e = t); return e; }; })(); (this.x = e), (this.y = a), (this.lastIndex = e.length - 1), this.x.length, (this.interpolate = function (e) { return e ? ((s = i(this.x, e)), (t = s - 1), ((e - this.x[t]) * (this.y[s] - this.y[t])) / (this.x[s] - this.x[t]) + this.y[t]) : 0; }); }, getInterpolateFunction: function (e) { x.controller.spline || (x.controller.spline = x.params.loop ? new x.controller.LinearSpline( x.slidesGrid, e.slidesGrid ) : new x.controller.LinearSpline( x.snapGrid, e.snapGrid )); }, setTranslate: function (e, a) { function s(a) { (e = a.rtl && "horizontal" === a.params.direction ? -x.translate : x.translate), "slide" === x.params.controlBy && (x.controller.getInterpolateFunction(a), (r = -x.controller.spline.interpolate(-e))), (r && "container" !== x.params.controlBy) || ((i = (a.maxTranslate() - a.minTranslate()) / (x.maxTranslate() - x.minTranslate())), (r = (e - x.minTranslate()) * i + a.minTranslate())), x.params.controlInverse && (r = a.maxTranslate() - r), a.updateProgress(r), a.setWrapperTranslate(r, !1, x), a.updateActiveIndex(); } var i, r, n = x.params.control; if (Array.isArray(n)) for (var o = 0; o < n.length; o++) n[o] !== a && n[o] instanceof t && s(n[o]); else n instanceof t && a !== n && s(n); }, setTransition: function (e, a) { function s(a) { a.setWrapperTransition(e, x), 0 !== e && (a.onTransitionStart(), a.wrapper.transitionEnd(function () { r && (a.params.loop && "slide" === x.params.controlBy && a.fixLoop(), a.onTransitionEnd()); })); } var i, r = x.params.control; if (Array.isArray(r)) for (i = 0; i < r.length; i++) r[i] !== a && r[i] instanceof t && s(r[i]); else r instanceof t && a !== r && s(r); }, }), (x.hashnav = { onHashCange: function (e, a) { var t = document.location.hash.replace("#", ""); t !== x.slides.eq(x.activeIndex).attr("data-hash") && x.slideTo( x.wrapper .children( "." + x.params.slideClass + '[data-hash="' + t + '"]' ) .index() ); }, attachEvents: function (a) { var t = a ? "off" : "on"; e(window)[t]("hashchange", x.hashnav.onHashCange); }, setHash: function () { if (x.hashnav.initialized && x.params.hashnav) if ( x.params.replaceState && window.history && window.history.replaceState ) window.history.replaceState( null, null, "#" + x.slides.eq(x.activeIndex).attr("data-hash") || 0 ); else { var e = x.slides.eq(x.activeIndex), a = e.attr("data-hash") || e.attr("data-history"); document.location.hash = a || ""; } }, init: function () { if (x.params.hashnav && !x.params.history) { x.hashnav.initialized = !0; var e = document.location.hash.replace("#", ""); if (e) for (var a = 0, t = x.slides.length; a < t; a++) { var s = x.slides.eq(a); if ( (s.attr("data-hash") || s.attr("data-history")) === e && !s.hasClass(x.params.slideDuplicateClass) ) { var i = s.index(); x.slideTo(i, 0, x.params.runCallbacksOnInit, !0); } } x.params.hashnavWatchState && x.hashnav.attachEvents(); } }, destroy: function () { x.params.hashnavWatchState && x.hashnav.attachEvents(!0); }, }), (x.history = { init: function () { if (x.params.history) { if (!window.history || !window.history.pushState) return ( (x.params.history = !1), void (x.params.hashnav = !0) ); (x.history.initialized = !0), (this.paths = this.getPathValues()), (this.paths.key || this.paths.value) && (this.scrollToSlide( 0, this.paths.value, x.params.runCallbacksOnInit ), x.params.replaceState || window.addEventListener( "popstate", this.setHistoryPopState )); } }, setHistoryPopState: function () { (x.history.paths = x.history.getPathValues()), x.history.scrollToSlide( x.params.speed, x.history.paths.value, !1 ); }, getPathValues: function () { var e = window.location.pathname.slice(1).split("/"), a = e.length; return { key: e[a - 2], value: e[a - 1] }; }, setHistory: function (e, a) { if (x.history.initialized && x.params.history) { var t = x.slides.eq(a), s = this.slugify(t.attr("data-history")); window.location.pathname.includes(e) || (s = e + "/" + s), x.params.replaceState ? window.history.replaceState(null, null, s) : window.history.pushState(null, null, s); } }, slugify: function (e) { return e .toString() .toLowerCase() .replace(/\s+/g, "-") .replace(/[^\w\-]+/g, "") .replace(/\-\-+/g, "-") .replace(/^-+/, "") .replace(/-+$/, ""); }, scrollToSlide: function (e, a, t) { if (a) for (var s = 0, i = x.slides.length; s < i; s++) { var r = x.slides.eq(s); if ( this.slugify(r.attr("data-history")) === a && !r.hasClass(x.params.slideDuplicateClass) ) { var n = r.index(); x.slideTo(n, e, t); } } else x.slideTo(0, e, t); }, }), (x.disableKeyboardControl = function () { (x.params.keyboardControl = !1), e(document).off("keydown", l); }), (x.enableKeyboardControl = function () { (x.params.keyboardControl = !0), e(document).on("keydown", l); }), (x.mousewheel = { event: !1, lastScrollTime: new window.Date().getTime(), }), x.params.mousewheelControl && (x.mousewheel.event = navigator.userAgent.indexOf("firefox") > -1 ? "DOMMouseScroll" : (function () { var e = "onwheel" in document; if (!e) { var a = document.createElement("div"); a.setAttribute("onwheel", "return;"), (e = "function" == typeof a.onwheel); } return ( !e && document.implementation && document.implementation.hasFeature && !0 !== document.implementation.hasFeature("", "") && (e = document.implementation.hasFeature( "Events.wheel", "3.0" )), e ); })() ? "wheel" : "mousewheel"), (x.disableMousewheelControl = function () { if (!x.mousewheel.event) return !1; var a = x.container; return ( "container" !== x.params.mousewheelEventsTarged && (a = e(x.params.mousewheelEventsTarged)), a.off(x.mousewheel.event, p), (x.params.mousewheelControl = !1), !0 ); }), (x.enableMousewheelControl = function () { if (!x.mousewheel.event) return !1; var a = x.container; return ( "container" !== x.params.mousewheelEventsTarged && (a = e(x.params.mousewheelEventsTarged)), a.on(x.mousewheel.event, p), (x.params.mousewheelControl = !0), !0 ); }), (x.parallax = { setTranslate: function () { x.container .children( "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]" ) .each(function () { d(this, x.progress); }), x.slides.each(function () { var a = e(this); a.find( "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]" ).each(function () { d(this, Math.min(Math.max(a[0].progress, -1), 1)); }); }); }, setTransition: function (a) { void 0 === a && (a = x.params.speed), x.container .find( "[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]" ) .each(function () { var t = e(this), s = parseInt( t.attr("data-swiper-parallax-duration"), 10 ) || a; 0 === a && (s = 0), t.transition(s); }); }, }), (x.zoom = { scale: 1, currentScale: 1, isScaling: !1, gesture: { slide: void 0, slideWidth: void 0, slideHeight: void 0, image: void 0, imageWrap: void 0, zoomMax: x.params.zoomMax, }, image: { isTouched: void 0, isMoved: void 0, currentX: void 0, currentY: void 0, minX: void 0, minY: void 0, maxX: void 0, maxY: void 0, width: void 0, height: void 0, startX: void 0, startY: void 0, touchesStart: {}, touchesCurrent: {}, }, velocity: { x: void 0, y: void 0, prevPositionX: void 0, prevPositionY: void 0, prevTime: void 0, }, getDistanceBetweenTouches: function (e) { if (e.targetTouches.length < 2) return 1; var a = e.targetTouches[0].pageX, t = e.targetTouches[0].pageY, s = e.targetTouches[1].pageX, i = e.targetTouches[1].pageY; return Math.sqrt(Math.pow(s - a, 2) + Math.pow(i - t, 2)); }, onGestureStart: function (a) { var t = x.zoom; if (!x.support.gestures) { if ( "touchstart" !== a.type || ("touchstart" === a.type && a.targetTouches.length < 2) ) return; t.gesture.scaleStart = t.getDistanceBetweenTouches(a); } (t.gesture.slide && t.gesture.slide.length) || ((t.gesture.slide = e(this)), 0 === t.gesture.slide.length && (t.gesture.slide = x.slides.eq(x.activeIndex)), (t.gesture.image = t.gesture.slide.find("img, svg, canvas")), (t.gesture.imageWrap = t.gesture.image.parent( "." + x.params.zoomContainerClass )), (t.gesture.zoomMax = t.gesture.imageWrap.attr("data-swiper-zoom") || x.params.zoomMax), 0 !== t.gesture.imageWrap.length) ? (t.gesture.image.transition(0), (t.isScaling = !0)) : (t.gesture.image = void 0); }, onGestureChange: function (e) { var a = x.zoom; if (!x.support.gestures) { if ( "touchmove" !== e.type || ("touchmove" === e.type && e.targetTouches.length < 2) ) return; a.gesture.scaleMove = a.getDistanceBetweenTouches(e); } a.gesture.image && 0 !== a.gesture.image.length && (x.support.gestures ? (a.scale = e.scale * a.currentScale) : (a.scale = (a.gesture.scaleMove / a.gesture.scaleStart) * a.currentScale), a.scale > a.gesture.zoomMax && (a.scale = a.gesture.zoomMax - 1 + Math.pow(a.scale - a.gesture.zoomMax + 1, 0.5)), a.scale < x.params.zoomMin && (a.scale = x.params.zoomMin + 1 - Math.pow(x.params.zoomMin - a.scale + 1, 0.5)), a.gesture.image.transform( "translate3d(0,0,0) scale(" + a.scale + ")" )); }, onGestureEnd: function (e) { var a = x.zoom; (!x.support.gestures && ("touchend" !== e.type || ("touchend" === e.type && e.changedTouches.length < 2))) || (a.gesture.image && 0 !== a.gesture.image.length && ((a.scale = Math.max( Math.min(a.scale, a.gesture.zoomMax), x.params.zoomMin )), a.gesture.image .transition(x.params.speed) .transform( "translate3d(0,0,0) scale(" + a.scale + ")" ), (a.currentScale = a.scale), (a.isScaling = !1), 1 === a.scale && (a.gesture.slide = void 0))); }, onTouchStart: function (e, a) { var t = e.zoom; t.gesture.image && 0 !== t.gesture.image.length && (t.image.isTouched || ("android" === e.device.os && a.preventDefault(), (t.image.isTouched = !0), (t.image.touchesStart.x = "touchstart" === a.type ? a.targetTouches[0].pageX : a.pageX), (t.image.touchesStart.y = "touchstart" === a.type ? a.targetTouches[0].pageY : a.pageY))); }, onTouchMove: function (e) { var a = x.zoom; if ( a.gesture.image && 0 !== a.gesture.image.length && ((x.allowClick = !1), a.image.isTouched && a.gesture.slide) ) { a.image.isMoved || ((a.image.width = a.gesture.image[0].offsetWidth), (a.image.height = a.gesture.image[0].offsetHeight), (a.image.startX = x.getTranslate(a.gesture.imageWrap[0], "x") || 0), (a.image.startY = x.getTranslate(a.gesture.imageWrap[0], "y") || 0), (a.gesture.slideWidth = a.gesture.slide[0].offsetWidth), (a.gesture.slideHeight = a.gesture.slide[0].offsetHeight), a.gesture.imageWrap.transition(0), x.rtl && (a.image.startX = -a.image.startX), x.rtl && (a.image.startY = -a.image.startY)); var t = a.image.width * a.scale, s = a.image.height * a.scale; if ( !(t < a.gesture.slideWidth && s < a.gesture.slideHeight) ) { if ( ((a.image.minX = Math.min( a.gesture.slideWidth / 2 - t / 2, 0 )), (a.image.maxX = -a.image.minX), (a.image.minY = Math.min( a.gesture.slideHeight / 2 - s / 2, 0 )), (a.image.maxY = -a.image.minY), (a.image.touchesCurrent.x = "touchmove" === e.type ? e.targetTouches[0].pageX : e.pageX), (a.image.touchesCurrent.y = "touchmove" === e.type ? e.targetTouches[0].pageY : e.pageY), !a.image.isMoved && !a.isScaling) ) { if ( (x.isHorizontal() && Math.floor(a.image.minX) === Math.floor(a.image.startX) && a.image.touchesCurrent.x < a.image.touchesStart.x) || (Math.floor(a.image.maxX) === Math.floor(a.image.startX) && a.image.touchesCurrent.x > a.image.touchesStart.x) ) return void (a.image.isTouched = !1); if ( (!x.isHorizontal() && Math.floor(a.image.minY) === Math.floor(a.image.startY) && a.image.touchesCurrent.y < a.image.touchesStart.y) || (Math.floor(a.image.maxY) === Math.floor(a.image.startY) && a.image.touchesCurrent.y > a.image.touchesStart.y) ) return void (a.image.isTouched = !1); } e.preventDefault(), e.stopPropagation(), (a.image.isMoved = !0), (a.image.currentX = a.image.touchesCurrent.x - a.image.touchesStart.x + a.image.startX), (a.image.currentY = a.image.touchesCurrent.y - a.image.touchesStart.y + a.image.startY), a.image.currentX < a.image.minX && (a.image.currentX = a.image.minX + 1 - Math.pow( a.image.minX - a.image.currentX + 1, 0.8 )), a.image.currentX > a.image.maxX && (a.image.currentX = a.image.maxX - 1 + Math.pow( a.image.currentX - a.image.maxX + 1, 0.8 )), a.image.currentY < a.image.minY && (a.image.currentY = a.image.minY + 1 - Math.pow( a.image.minY - a.image.currentY + 1, 0.8 )), a.image.currentY > a.image.maxY && (a.image.currentY = a.image.maxY - 1 + Math.pow( a.image.currentY - a.image.maxY + 1, 0.8 )), a.velocity.prevPositionX || (a.velocity.prevPositionX = a.image.touchesCurrent.x), a.velocity.prevPositionY || (a.velocity.prevPositionY = a.image.touchesCurrent.y), a.velocity.prevTime || (a.velocity.prevTime = Date.now()), (a.velocity.x = (a.image.touchesCurrent.x - a.velocity.prevPositionX) / (Date.now() - a.velocity.prevTime) / 2), (a.velocity.y = (a.image.touchesCurrent.y - a.velocity.prevPositionY) / (Date.now() - a.velocity.prevTime) / 2), Math.abs( a.image.touchesCurrent.x - a.velocity.prevPositionX ) < 2 && (a.velocity.x = 0), Math.abs( a.image.touchesCurrent.y - a.velocity.prevPositionY ) < 2 && (a.velocity.y = 0), (a.velocity.prevPositionX = a.image.touchesCurrent.x), (a.velocity.prevPositionY = a.image.touchesCurrent.y), (a.velocity.prevTime = Date.now()), a.gesture.imageWrap.transform( "translate3d(" + a.image.currentX + "px, " + a.image.currentY + "px,0)" ); } } }, onTouchEnd: function (e, a) { var t = e.zoom; if (t.gesture.image && 0 !== t.gesture.image.length) { if (!t.image.isTouched || !t.image.isMoved) return ( (t.image.isTouched = !1), void (t.image.isMoved = !1) ); (t.image.isTouched = !1), (t.image.isMoved = !1); var s = 300, i = 300, r = t.velocity.x * s, n = t.image.currentX + r, o = t.velocity.y * i, l = t.image.currentY + o; 0 !== t.velocity.x && (s = Math.abs((n - t.image.currentX) / t.velocity.x)), 0 !== t.velocity.y && (i = Math.abs((l - t.image.currentY) / t.velocity.y)); var p = Math.max(s, i); (t.image.currentX = n), (t.image.currentY = l); var d = t.image.width * t.scale, c = t.image.height * t.scale; (t.image.minX = Math.min( t.gesture.slideWidth / 2 - d / 2, 0 )), (t.image.maxX = -t.image.minX), (t.image.minY = Math.min( t.gesture.slideHeight / 2 - c / 2, 0 )), (t.image.maxY = -t.image.minY), (t.image.currentX = Math.max( Math.min(t.image.currentX, t.image.maxX), t.image.minX )), (t.image.currentY = Math.max( Math.min(t.image.currentY, t.image.maxY), t.image.minY )), t.gesture.imageWrap .transition(p) .transform( "translate3d(" + t.image.currentX + "px, " + t.image.currentY + "px,0)" ); } }, onTransitionEnd: function (e) { var a = e.zoom; a.gesture.slide && e.previousIndex !== e.activeIndex && (a.gesture.image.transform("translate3d(0,0,0) scale(1)"), a.gesture.imageWrap.transform("translate3d(0,0,0)"), (a.gesture.slide = a.gesture.image = a.gesture.imageWrap = void 0), (a.scale = a.currentScale = 1)); }, toggleZoom: function (a, t) { var s, i, r, n, o, l, p, d, c, u, m, g, h, v, f, w, x = a.zoom; (x.gesture.slide || ((x.gesture.slide = a.clickedSlide ? e(a.clickedSlide) : a.slides.eq(a.activeIndex)), (x.gesture.image = x.gesture.slide.find("img, svg, canvas")), (x.gesture.imageWrap = x.gesture.image.parent( "." + a.params.zoomContainerClass ))), x.gesture.image && 0 !== x.gesture.image.length) && (void 0 === x.image.touchesStart.x && t ? ((s = "touchend" === t.type ? t.changedTouches[0].pageX : t.pageX), (i = "touchend" === t.type ? t.changedTouches[0].pageY : t.pageY)) : ((s = x.image.touchesStart.x), (i = x.image.touchesStart.y)), x.scale && 1 !== x.scale ? ((x.scale = x.currentScale = 1), x.gesture.imageWrap .transition(300) .transform("translate3d(0,0,0)"), x.gesture.image .transition(300) .transform("translate3d(0,0,0) scale(1)"), (x.gesture.slide = void 0)) : ((x.scale = x.currentScale = x.gesture.imageWrap.attr("data-swiper-zoom") || a.params.zoomMax), t ? ((f = x.gesture.slide[0].offsetWidth), (w = x.gesture.slide[0].offsetHeight), (r = x.gesture.slide.offset().left + f / 2 - s), (n = x.gesture.slide.offset().top + w / 2 - i), (p = x.gesture.image[0].offsetWidth), (d = x.gesture.image[0].offsetHeight), (c = p * x.scale), (u = d * x.scale), (h = -(m = Math.min(f / 2 - c / 2, 0))), (v = -(g = Math.min(w / 2 - u / 2, 0))), (o = r * x.scale) < m && (o = m), o > h && (o = h), (l = n * x.scale) < g && (l = g), l > v && (l = v)) : ((o = 0), (l = 0)), x.gesture.imageWrap .transition(300) .transform( "translate3d(" + o + "px, " + l + "px,0)" ), x.gesture.image .transition(300) .transform( "translate3d(0,0,0) scale(" + x.scale + ")" ))); }, attachEvents: function (a) { var t = a ? "off" : "on"; if (x.params.zoom) { var s = (x.slides, !( "touchstart" !== x.touchEvents.start || !x.support.passiveListener || !x.params.passiveListeners ) && { passive: !0, capture: !1 }); x.support.gestures ? (x.slides[t]( "gesturestart", x.zoom.onGestureStart, s ), x.slides[t]( "gesturechange", x.zoom.onGestureChange, s ), x.slides[t]("gestureend", x.zoom.onGestureEnd, s)) : "touchstart" === x.touchEvents.start && (x.slides[t]( x.touchEvents.start, x.zoom.onGestureStart, s ), x.slides[t]( x.touchEvents.move, x.zoom.onGestureChange, s ), x.slides[t]( x.touchEvents.end, x.zoom.onGestureEnd, s )), x[t]("touchStart", x.zoom.onTouchStart), x.slides.each(function (a, s) { e(s).find("." + x.params.zoomContainerClass).length > 0 && e(s)[t](x.touchEvents.move, x.zoom.onTouchMove); }), x[t]("touchEnd", x.zoom.onTouchEnd), x[t]("transitionEnd", x.zoom.onTransitionEnd), x.params.zoomToggle && x.on("doubleTap", x.zoom.toggleZoom); } }, init: function () { x.zoom.attachEvents(); }, destroy: function () { x.zoom.attachEvents(!0); }, }), (x._plugins = []), x.plugins)) { var X = x.plugins[G](x, x.params[G]); X && x._plugins.push(X); } return ( (x.callPlugins = function (e) { for (var a = 0; a < x._plugins.length; a++) e in x._plugins[a] && x._plugins[a][e]( arguments[1], arguments[2], arguments[3], arguments[4], arguments[5] ); }), (x.emitterEventListeners = {}), (x.emit = function (e) { var a; if ( (x.params[e] && x.params[e]( arguments[1], arguments[2], arguments[3], arguments[4], arguments[5] ), x.emitterEventListeners[e]) ) for (a = 0; a < x.emitterEventListeners[e].length; a++) x.emitterEventListeners[e][a]( arguments[1], arguments[2], arguments[3], arguments[4], arguments[5] ); x.callPlugins && x.callPlugins( e, arguments[1], arguments[2], arguments[3], arguments[4], arguments[5] ); }), (x.on = function (e, a) { return ( (e = c(e)), x.emitterEventListeners[e] || (x.emitterEventListeners[e] = []), x.emitterEventListeners[e].push(a), x ); }), (x.off = function (e, a) { var t; if (((e = c(e)), void 0 === a)) return (x.emitterEventListeners[e] = []), x; if ( x.emitterEventListeners[e] && 0 !== x.emitterEventListeners[e].length ) { for (t = 0; t < x.emitterEventListeners[e].length; t++) x.emitterEventListeners[e][t] === a && x.emitterEventListeners[e].splice(t, 1); return x; } }), (x.once = function (e, a) { e = c(e); var t = function () { a( arguments[0], arguments[1], arguments[2], arguments[3], arguments[4] ), x.off(e, t); }; return x.on(e, t), x; }), (x.a11y = { makeFocusable: function (e) { return e.attr("tabIndex", "0"), e; }, addRole: function (e, a) { return e.attr("role", a), e; }, addLabel: function (e, a) { return e.attr("aria-label", a), e; }, disable: function (e) { return e.attr("aria-disabled", !0), e; }, enable: function (e) { return e.attr("aria-disabled", !1), e; }, onEnterKey: function (a) { 13 === a.keyCode && (e(a.target).is(x.params.nextButton) ? (x.onClickNext(a), x.isEnd ? x.a11y.notify(x.params.lastSlideMessage) : x.a11y.notify(x.params.nextSlideMessage)) : e(a.target).is(x.params.prevButton) && (x.onClickPrev(a), x.isBeginning ? x.a11y.notify(x.params.firstSlideMessage) : x.a11y.notify(x.params.prevSlideMessage)), e(a.target).is("." + x.params.bulletClass) && e(a.target)[0].click()); }, liveRegion: e( '' ), notify: function (e) { var a = x.a11y.liveRegion; 0 !== a.length && (a.html(""), a.html(e)); }, init: function () { x.params.nextButton && x.nextButton && x.nextButton.length > 0 && (x.a11y.makeFocusable(x.nextButton), x.a11y.addRole(x.nextButton, "button"), x.a11y.addLabel( x.nextButton, x.params.nextSlideMessage )), x.params.prevButton && x.prevButton && x.prevButton.length > 0 && (x.a11y.makeFocusable(x.prevButton), x.a11y.addRole(x.prevButton, "button"), x.a11y.addLabel( x.prevButton, x.params.prevSlideMessage )), e(x.container).append(x.a11y.liveRegion); }, initPagination: function () { x.params.pagination && x.params.paginationClickable && x.bullets && x.bullets.length && x.bullets.each(function () { var a = e(this); x.a11y.makeFocusable(a), x.a11y.addRole(a, "button"), x.a11y.addLabel( a, x.params.paginationBulletMessage.replace( /{{index}}/, a.index() + 1 ) ); }); }, destroy: function () { x.a11y.liveRegion && x.a11y.liveRegion.length > 0 && x.a11y.liveRegion.remove(); }, }), (x.init = function () { x.params.loop && x.createLoop(), x.updateContainerSize(), x.updateSlidesSize(), x.updatePagination(), x.params.scrollbar && x.scrollbar && (x.scrollbar.set(), x.params.scrollbarDraggable && x.scrollbar.enableDraggable()), "slide" !== x.params.effect && x.effects[x.params.effect] && (x.params.loop || x.updateProgress(), x.effects[x.params.effect].setTranslate()), x.params.loop ? x.slideTo( x.params.initialSlide + x.loopedSlides, 0, x.params.runCallbacksOnInit ) : (x.slideTo( x.params.initialSlide, 0, x.params.runCallbacksOnInit ), 0 === x.params.initialSlide && (x.parallax && x.params.parallax && x.parallax.setTranslate(), x.lazy && x.params.lazyLoading && (x.lazy.load(), (x.lazy.initialImageLoaded = !0)))), x.attachEvents(), x.params.observer && x.support.observer && x.initObservers(), x.params.preloadImages && !x.params.lazyLoading && x.preloadImages(), x.params.zoom && x.zoom && x.zoom.init(), x.params.autoplay && x.startAutoplay(), x.params.keyboardControl && x.enableKeyboardControl && x.enableKeyboardControl(), x.params.mousewheelControl && x.enableMousewheelControl && x.enableMousewheelControl(), x.params.hashnavReplaceState && (x.params.replaceState = x.params.hashnavReplaceState), x.params.history && x.history && x.history.init(), x.params.hashnav && x.hashnav && x.hashnav.init(), x.params.a11y && x.a11y && x.a11y.init(), x.emit("onInit", x); }), (x.cleanupStyles = function () { x.container .removeClass(x.classNames.join(" ")) .removeAttr("style"), x.wrapper.removeAttr("style"), x.slides && x.slides.length && x.slides .removeClass( [ x.params.slideVisibleClass, x.params.slideActiveClass, x.params.slideNextClass, x.params.slidePrevClass, ].join(" ") ) .removeAttr("style") .removeAttr("data-swiper-column") .removeAttr("data-swiper-row"), x.paginationContainer && x.paginationContainer.length && x.paginationContainer.removeClass( x.params.paginationHiddenClass ), x.bullets && x.bullets.length && x.bullets.removeClass(x.params.bulletActiveClass), x.params.prevButton && e(x.params.prevButton).removeClass( x.params.buttonDisabledClass ), x.params.nextButton && e(x.params.nextButton).removeClass( x.params.buttonDisabledClass ), x.params.scrollbar && x.scrollbar && (x.scrollbar.track && x.scrollbar.track.length && x.scrollbar.track.removeAttr("style"), x.scrollbar.drag && x.scrollbar.drag.length && x.scrollbar.drag.removeAttr("style")); }), (x.destroy = function (e, a) { x.detachEvents(), x.stopAutoplay(), x.params.scrollbar && x.scrollbar && x.params.scrollbarDraggable && x.scrollbar.disableDraggable(), x.params.loop && x.destroyLoop(), a && x.cleanupStyles(), x.disconnectObservers(), x.params.zoom && x.zoom && x.zoom.destroy(), x.params.keyboardControl && x.disableKeyboardControl && x.disableKeyboardControl(), x.params.mousewheelControl && x.disableMousewheelControl && x.disableMousewheelControl(), x.params.a11y && x.a11y && x.a11y.destroy(), x.params.history && !x.params.replaceState && window.removeEventListener( "popstate", x.history.setHistoryPopState ), x.params.hashnav && x.hashnav && x.hashnav.destroy(), x.emit("onDestroy"), !1 !== e && (x = null); }), x.init(), x ); } }; t.prototype = { isSafari: (function () { var e = window.navigator.userAgent.toLowerCase(); return ( e.indexOf("safari") >= 0 && e.indexOf("chrome") < 0 && e.indexOf("android") < 0 ); })(), isUiWebView: /(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test( window.navigator.userAgent ), isArray: function (e) { return "[object Array]" === Object.prototype.toString.apply(e); }, browser: { ie: window.navigator.pointerEnabled || window.navigator.msPointerEnabled, ieTouch: (window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints > 1) || (window.navigator.pointerEnabled && window.navigator.maxTouchPoints > 1), lteIE9: (function () { var e = document.createElement("div"); return ( (e.innerHTML = "\x3c!--[if lte IE 9]> 0 ? e ? this[0].offsetWidth + parseFloat(this.css("margin-right")) + parseFloat(this.css("margin-left")) : this[0].offsetWidth : null; })), (window.Swiper = t); })(), (e.exports = window.Swiper); }, }, a = {}; function t(s) { var i = a[s]; if (void 0 !== i) return i.exports; var r = (a[s] = { exports: {} }); return e[s](r, r.exports, t), r.exports; } t.r = function (e) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 }); }; !(function () { "use strict"; var e = t(379); t(458), t(860), $(".navmenu_box").on("click", function () { $(this).hasClass("closeNavbtn") ? ($(".header_nav").stop().slideUp(), $(this).removeClass("closeNavbtn"), $("body").css({ "overflow-y": "auto" })) : ($(".header_nav").stop().slideDown(), $(this).addClass("closeNavbtn"), $("header").addClass("active"), $("body").css({ overflow: "hidden" }), $(window).width() < 765 && $("header .right .search form").stop().slideUp()); }), $("header .language .icon").on("click", function () { $(this).siblings(".Lhide").stop().slideToggle(); }); new e(".index_swiper", { autoplay: 5e3, pagination: ".index_pagination", paginationClickable: !0, speed: 800, effect: "fade", }); var a = new e(".indexProduct_swiper", { autoplay: 5e3, pagination: ".indexProduct_pagination", speed: 800, prevButton: ".pagination_prev", nextButton: ".pagination_next", spaceBetween: 40, slidesPerView: 3, paginationType: "fraction", paginationFractionRender: function (e, a, t) { return ( '0 / 0' ); }, breakpoints: { 992: { spaceBetween: 15 }, 765: { slidesPerView: 2, spaceBetween: 10 }, 465: { slidesPerView: 1, spaceBetween: 10 }, }, }); $(".indexProduct_off").on("click", function () { $(this).hasClass("active") ? ($(this).removeClass("active"), a.startAutoplay()) : ($(this).addClass("active"), a.stopAutoplay()); }), $(".indexProduct_swiper").on("mouseenter", function () { a.stopAutoplay(); }), $(".indexProduct_swiper").on("mouseleave ", function () { a.startAutoplay(); }); new e(".indexNews_swiper1", { speed: 700, prevButton: ".indexNews_prev1", nextButton: ".indexNews_next1", spaceBetween: 40, slidesPerView: 3, observer: !0, observeParents: !0, breakpoints: { 992: { spaceBetween: 15 }, 765: { slidesPerView: 2, spaceBetween: 10 }, 465: { slidesPerView: 1, spaceBetween: 10 }, }, onInit: function (e) { var a = 0; $(".indexNews_swiper1 .swiper-slide").each(function () { a < $(this).height() && (a = $(this).height()); }), $(".indexNews_swiper1 .swiper-slide").height(a); }, }), new e(".indexNews_swiper2", { speed: 700, prevButton: ".indexNews_prev2", nextButton: ".indexNews_next2", spaceBetween: 40, slidesPerView: 3, observer: !0, observeParents: !0, breakpoints: { 992: { spaceBetween: 15 }, 765: { slidesPerView: 2, spaceBetween: 10 }, 465: { slidesPerView: 1, spaceBetween: 10 }, }, onInit: function (e) { var a = 0; $(".indexNews_swiper2 .swiper-slide").each(function () { a < $(this).height() && (a = $(this).height()); }), $(".indexNews_swiper2 .swiper-slide").height(a); }, }); $(".indexNewsTabBar .tabTerm").on("click", function () { $(this).addClass("active").siblings().removeClass("active"); var e = $(this).index(); $(".indexNewsTabCont .tabItem") .eq(e) .addClass("active") .siblings() .removeClass("active"), console.log(e); }), $(".DeOrDeTabBar .tabTerm").on("click", function () { $(this).addClass("active").siblings().removeClass("active"); var e = $(this).index(); $(".DeOrDeTabCont .tabItem") .eq(e) .addClass("active") .siblings() .removeClass("active"); }), $("footer .bot .con1280 .right .on").on("click", function () { $(this).siblings(".Lhide").stop().slideToggle(); }), $(window).on("scroll", function () { var e; (e = $(window).scrollTop()) > 300 ? ($(".Istop").css("opacity", "1"), $(".rightBox").addClass("active3")) : ($(".Istop").css("opacity", "0"), $(".rightBox").removeClass("active3")), e > 10 ? $("header").addClass("fixed") : $("header").removeClass("fixed"); }), $(".Istop").on("click", function () { console.log("1"), $("html").animate({ scrollTop: 0 }, 500); }), $("footer .top .foot_nav .li .link").on("click", function () { $(window).width() < 992 && ($(this).toggleClass("active").siblings(".nav2").stop().slideToggle(), $(this) .parent(".li") .siblings() .find(".nav2") .stop() .slideUp() .siblings(".link") .removeClass("active")); }), $(".rightBox .phoneOn").on("click", function () { "10px" == $(".rightBox").css("right") ? $(".rightBox").css("right", "-72px") : $(".rightBox").css("right", "10px"); }), $("header .right .search .phoneIcon").on("click", function () { $(this).siblings("form").stop().slideToggle(), $(".header_nav").stop().slideUp(); }), $(".MyTabBar .tabTerm").click(function () { $(this).addClass("active").siblings().removeClass("active"); var e = $(this).index(); $(".MyTabCont .tabItem") .eq(e) .addClass("active") .siblings() .removeClass("active"); }), $(".mainBox .navLeftBox .list .li .tit").on("click", function () { $(this) .parent(".li") .toggleClass("active") .find(".layer1Box") .stop() .slideToggle(), $(this) .parent(".li") .find(".layer2Box") .removeClass("active") .find(".layer2li") .stop() .slideUp(), $(this) .parent(".li") .find(".layer3Box") .removeClass("active") .find(".layer3li") .stop() .slideUp(); }), $(".mainBox .navLeftBox .list .li .layer1Box .layer2Box .layer2tit").on( "click", function () { $(this) .parent(".layer2Box") .toggleClass("active") .find(".layer2li") .stop() .slideToggle(), $(this) .parent(".layer2Box") .find(".layer3Box") .removeClass("active") .find(".layer3li") .stop() .slideUp(); } ), $( ".mainBox .navLeftBox .list .li .layer1Box .layer2Box .layer2li .layer3Box .layer3tit" ).on("click", function () { $(this) .parent(".layer3Box") .toggleClass("active") .find(".layer3li") .stop() .slideToggle(); }), $(".errorPopUp .box .top i").on("click", function () { $(".errorPopUp").fadeOut(); }), $(".errorPopUp .box .cen .on").on("click", function () { $(".errorPopUp").fadeOut(); }), $(window).width() < 992 && $(".mainBox .navLeftBox .top").on("click", function () { $(this).toggleClass("active").siblings(".list").stop().slideToggle(); }); var s = $( ".modelSelectionTable .table table tr th:first-child" ).innerWidth(); $(".tableBox_Left").width(s), $(".ProductSynopsis .bot .list .box").length > 4 ? $(".ProductSynopsis .bot .more").show() : $(".ProductSynopsis .bot .more").hide(), $(".ProductSynopsis .bot .more").on("click", function () { $(this).toggleClass("active"), $(".ProductSynopsis .bot .list .box:nth-child(n+5)") .stop() .slideToggle(); }), $(".contactUsTabBar .tabTerm").on("click", function () { $(this).addClass("active").siblings().removeClass("active"); var e = $(this).index(); $(".contactUsTabCont .tabItem") .eq(e) .addClass("active") .siblings() .removeClass("active"); }), new e(".News_swiper", { autoplay: 5e3, speed: 800, effect: "fade", pagination: ".News_pagination", paginationClickable: !0, }), $(".MyBox .con1100 .MyTabCont .tabItem .con2 .bot .li .Lshow").on( "click", function () { $(this).toggleClass("active").siblings(".Lhide").stop().slideToggle(); } ), $(".SampleAppPopUp i").on("click", function () { $(".SampleAppPopUp").fadeOut(), $("body").removeClass("active"); }), $("#SampleApp").on("click", function () { $(".SampleAppPopUp").fadeIn(), $("body").addClass("active"); }), $(window).width() > 1220 ? ($(".ProductDown .con .list .box .list2").each(function () { $(this).index() >= 5 && $(this).hide(); }), $(".ProductDown .con .list .box .list2").hover( function () { $(this).find(".list3").stop(!0, !1).slideDown(); }, function () { $(this).find(".list3").stop(!0, !1).slideUp(); } ), $(".ProductDown .con .list .whole").on("click", function () { $(this).hasClass("active") ? ($(this).removeClass("active"), $(this).text("全部展开 >"), $(this) .parents(".BigNav2") .find(".list2") .each(function () { $(this).index() >= 4 && $(this).hide(); })) : ($(this).addClass("active"), $(this).parents(".BigNav2").find(".list2").show(), $(this).text("全部收起 >")); }), $("header .header_nav .li").hover(function () { $(this).hasClass("active2") ? $(this).removeClass("active2") : $(this).addClass("active2"); })) : ($("header .header_nav .li .on1").on("click", function () { $(this).hasClass("active") ? ($(this) .removeClass("active") .siblings(".BigNav2") .stop() .slideUp(), $(this) .parent(".li") .find(".box") .stop() .slideUp() .siblings(".on2") .removeClass("active"), $(this) .parent(".li") .find(".list3") .stop() .slideUp() .siblings(".on3") .removeClass("active"), $(this).parent(".li").find(".Phoneon3").removeClass("active")) : ($(this) .addClass("active") .siblings(".BigNav2") .stop() .slideDown(), $(this) .parent(".li") .siblings() .children(".BigNav2") .stop() .slideUp() .siblings(".on1") .removeClass("active"), $(this) .parent(".li") .find(".box") .stop() .slideUp() .siblings(".on2") .removeClass("active"), $(this) .parent(".li") .find(".list3") .stop() .slideUp() .siblings(".on3") .removeClass("active"), $(this).parent(".li").find(".Phoneon3").removeClass("active")); }), $(".BigNav2 .con .list .on2").on("click", function () { $(this).hasClass("active") ? ($(this) .removeClass("active") .siblings(".box") .stop() .slideUp(), $(this) .siblings(".box") .find(".list3") .stop() .slideUp() .siblings(".on3") .removeClass("active"), $(this) .siblings(".box") .find(".Phoneon3") .removeClass("active")) : ($(this).addClass("active").siblings(".box").stop().slideDown(), $(this) .parent(".list") .siblings() .find(".box") .stop() .slideUp() .siblings(".on2") .removeClass("active")); }), $(".BigNav2 .con .list .box .list2 .on3").on("click", function () { $(this) .toggleClass("active") .siblings(".list3") .stop() .slideToggle(), $(this) .parent(".list2") .siblings() .find(".list3") .stop() .slideUp() .siblings(".on3") .removeClass("active"); }), $(".BigNav2 .con .list .box .list2 .Phoneon3").on( "click", function () { $(this) .toggleClass("active") .siblings(".list3") .stop() .slideToggle(), $(this) .parent(".list2") .siblings() .find(".list3") .stop() .slideUp() .siblings(".on3") .removeClass("active"); } )), $(".SampleApplication form .input .checkbox .Lhide .che").hover( function () { $(this).siblings().removeClass("active"); }, function () { $( ".SampleApplication form .input .checkbox .Lhide .che:first-child" ).addClass("active"); } ); })(); })(); if($('.functionImg .CaseVideo').attr('data-url') == ''){ $('.functionImg .img .icon').hide() }