!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.Swiper=t()}(this,function(){"use strict";function t(n,t){var s=[],r=0,h,c,e,o;if(n&&!t&&n instanceof f)return n;if(n)if("string"==typeof n)if(e=n.trim(),0<=e.indexOf("<")&&0<=e.indexOf(">"))for(o="div",0===e.indexOf(":~]/)?(t||u).querySelectorAll(n.trim()):[u.getElementById(n.trim().split("#")[1])],r=0;rt.slides.length)break;r.push(t.slides.eq(f)[0])}else r.push(t.slides.eq(t.activeIndex)[0]);for(i=0;i=i.size)&&(i.visibleSlides.push(f),i.visibleSlidesIndexes.push(r),u.eq(r).addClass(e.slideVisibleClass))),f.progress=l?-c:c;i.visibleSlides=t(i.visibleSlides)}},updateProgress:function(t){void 0===t&&(t=this&&this.translate||0);var i=this,e=i.params,o=i.maxTranslate()-i.minTranslate(),f=i.progress,r=i.isBeginning,u=i.isEnd,s=r,h=u;0===o?u=r=!(f=0):(r=(f=(t-i.minTranslate())/o)<=0,u=1<=f);n.extend(i,{progress:f,isBeginning:r,isEnd:u});(e.watchSlidesProgress||e.watchSlidesVisibility)&&i.updateSlidesProgress(t);r&&!s&&i.emit("reachBeginning toEdge");u&&!h&&i.emit("reachEnd toEdge");(s&&!r||h&&!u)&&i.emit("fromEdge");i.emit("progress",f)},updateSlidesClasses:function(){var f,t=this,e=t.slides,n=t.params,i=t.$wrapperEl,o=t.activeIndex,s=t.realIndex,h=t.virtual&&n.virtual.enabled,r,u;e.removeClass(n.slideActiveClass+" "+n.slideNextClass+" "+n.slidePrevClass+" "+n.slideDuplicateActiveClass+" "+n.slideDuplicateNextClass+" "+n.slideDuplicatePrevClass);(f=h?t.$wrapperEl.find("."+n.slideClass+'[data-swiper-slide-index="'+o+'"]'):e.eq(o)).addClass(n.slideActiveClass);n.loop&&(f.hasClass(n.slideDuplicateClass)?i.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+s+'"]').addClass(n.slideDuplicateActiveClass):i.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+s+'"]').addClass(n.slideDuplicateActiveClass));r=f.nextAll("."+n.slideClass).eq(0).addClass(n.slideNextClass);n.loop&&0===r.length&&(r=e.eq(0)).addClass(n.slideNextClass);u=f.prevAll("."+n.slideClass).eq(0).addClass(n.slidePrevClass);n.loop&&0===u.length&&(u=e.eq(-1)).addClass(n.slidePrevClass);n.loop&&(r.hasClass(n.slideDuplicateClass)?i.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+r.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass):i.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+r.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass),u.hasClass(n.slideDuplicateClass)?i.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass):i.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass))},updateActiveIndex:function(t){var o,i=this,e=i.rtlTranslate?i.translate:-i.translate,f=i.slidesGrid,s=i.snapGrid,c=i.params,l=i.activeIndex,a=i.realIndex,v=i.snapIndex,u=t,r,h;if(void 0===u){for(r=0;r=f[r]&&e=f[r]&&e=f[r]&&(u=r);c.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}((o=0<=s.indexOf(e)?s.indexOf(e):Math.floor(u/c.slidesPerGroup))>=s.length&&(o=s.length-1),u!==l)?(h=parseInt(i.slides.eq(u).attr("data-swiper-slide-index")||u,10),n.extend(i,{snapIndex:o,realIndex:h,previousIndex:l,activeIndex:u}),i.emit("activeIndexChange"),i.emit("snapIndexChange"),a!==h&&i.emit("realIndexChange"),i.emit("slideChange")):o!==v&&(i.snapIndex=o,i.emit("snapIndexChange"))},updateClickedSlide:function(n){var i=this,f=i.params,r=t(n.target).closest("."+f.slideClass)[0],e=!1,u;if(r)for(u=0;u=v.length&&(a=v.length-1),(c||h.initialSlide||0)===(w||0)&&i&&f.emit("beforeSlideChangeStart"),o=-v[a],f.updateProgress(o),h.normalizeSlideIndex)for(l=0;l=Math.floor(100*y[l])&&(e=l);return f.initialized&&e!==c&&(!f.allowSlideNext&&of.translate&&o>f.maxTranslate()&&(c||0)!==e)?!1:(s=ci.slides.length-i.loopedSlides+e/2?(i.loopFix(),r=o.children("."+u.slideClass+'[data-swiper-slide-index="'+f+'"]:not(.'+u.slideDuplicateClass+")").eq(0).index(),n.nextTick(function(){i.slideTo(r)})):i.slideTo(r):r>i.slides.length-e?(i.loopFix(),r=o.children("."+u.slideClass+'[data-swiper-slide-index="'+f+'"]:not(.'+u.slideDuplicateClass+")").eq(0).index(),n.nextTick(function(){i.slideTo(r)})):i.slideTo(r)}else i.slideTo(r)}},ri={loopCreate:function(){var r=this,n=r.params,f=r.$wrapperEl,i,c,l,a,e,o,s,h;if(f.children("."+n.slideClass+"."+n.slideDuplicateClass).remove(),i=f.children("."+n.slideClass),n.loopFillGroupWithBlank&&(c=n.slidesPerGroup-i.length%n.slidesPerGroup,c!==n.slidesPerGroup)){for(l=0;li.length&&(r.loopedSlides=i.length),e=[],o=[],i.each(function(n,u){var f=t(u);n=i.length-r.loopedSlides&&e.push(u);f.attr("data-swiper-slide-index",n)}),s=0;s=f.length-t)&&(i=-f.length+r+t,i+=t,n.slideTo(i,0,!1,!0)&&0!==u&&n.setTranslate((e?-n.translate:n.translate)-u));n.allowSlidePrev=s;n.allowSlideNext=h},loopDestroy:function(){var t=this.$wrapperEl,n=this.params,i=this.slides;t.children("."+n.slideClass+"."+n.slideDuplicateClass+",."+n.slideClass+"."+n.slideBlankClass).remove();i.removeAttr("data-swiper-slide-index")}},ui={setGrabCursor:function(n){if(!(r.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked)){var t=this.el;t.style.cursor="move";t.style.cursor=n?"-webkit-grabbing":"-webkit-grab";t.style.cursor=n?"-moz-grabbin":"-moz-grab";t.style.cursor=n?"grabbing":"grab"}},unsetGrabCursor:function(){r.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}},fi={appendSlide:function(n){var t=this,f=t.$wrapperEl,u=t.params,i;if(u.loop&&t.loopDestroy(),"object"==typeof n&&"length"in n)for(i=0;i=i.screen.width-a)||((n.extend(s,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),h.startX=c,h.startY=y,s.touchStartTime=n.now(),o.allowClick=!0,o.updateSize(),o.swipeDirection=void 0,0e.startY&&f.translate>=f.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(ce.startX&&f.translate>=f.minTranslate())return;if(r.isTouchEvent&&u.activeElement&&o.target===u.activeElement&&t(o.target).is(r.formElements))return r.isMoved=!0,void(f.allowClick=!1);if((r.allowTouchCallbacks&&f.emit("touchMove",o),!(o.targetTouches&&1s.touchAngle:90-w>s.touchAngle)),r.isScrolling&&f.emit("touchMoveOpposite",o),void 0===r.startMoving&&(e.currentX===e.startX&&e.currentY===e.startY||(r.startMoving=!0)),r.isScrolling)r.isTouched=!1;else if(r.startMoving){if(f.allowClick=!1,o.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&o.stopPropagation(),r.isMoved||(s.loop&&f.loopFix(),r.startTranslate=f.getTranslate(),f.setTransition(0),f.animating&&f.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce=!1,!s.grabCursor||!0!==f.allowSlideNext&&!0!==f.allowSlidePrev||f.setGrabCursor(!0),f.emit("sliderFirstMove",o)),f.emit("sliderMove",o),r.isMoved=!0,h=f.isHorizontal()?a:v,e.diff=h,h*=s.touchRatio,b&&(h=-h),f.swipeDirection=0f.minTranslate()?(y=!1,s.resistance&&(r.currentTranslate=f.minTranslate()-1+Math.pow(-f.minTranslate()+r.startTranslate+h,p))):h<0&&r.currentTranslater.startTranslate&&(r.currentTranslate=r.startTranslate),0s.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);if(!r.allowThresholdMove)return r.allowThresholdMove=!0,e.startX=e.currentX,e.startY=e.currentY,r.currentTranslate=r.startTranslate,void(e.diff=f.isHorizontal()?e.currentX-e.startX:e.currentY-e.startY)}s.followFinger&&((s.freeMode||s.watchSlidesProgress||s.watchSlidesVisibility)&&(f.updateActiveIndex(),f.updateSlidesClasses()),s.freeMode&&(0===r.velocities.length&&r.velocities.push({position:e[f.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:e[f.isHorizontal()?"currentX":"currentY"],time:n.now()})),f.updateProgress(r.currentTranslate),f.setTranslate(r.currentTranslate))}}}else r.startMoving&&r.isScrolling&&f.emit("touchMoveOpposite",o)}.bind(f);f.onTouchEnd=function(t){var i=this,r=i.touchEventsData,u=i.params,ot=i.touches,g=i.rtlTranslate,nt=i.$wrapperEl,e=i.slidesGrid,h=i.snapGrid,c=t,l,w,a,k,it,d,v,y,p,ut;if(c.originalEvent&&(c=c.originalEvent),r.allowTouchCallbacks&&i.emit("touchEnd",c),r.allowTouchCallbacks=!1,!r.isTouched)return r.isMoved&&u.grabCursor&&i.setGrabCursor(!1),r.isMoved=!1,void(r.startMoving=!1);if(u.grabCursor&&r.isMoved&&r.isTouched&&(!0===i.allowSlideNext||!0===i.allowSlidePrev)&&i.setGrabCursor(!1),w=n.now(),a=w-r.touchStartTime,i.allowClick&&(i.updateClickedSlide(c),i.emit("tap",c),a<300&&300-i.maxTranslate())return void(i.slides.lengthi.minTranslate())u.freeModeMomentumBounce?(f-i.minTranslate()>v&&(f=i.minTranslate()+v),k=i.minTranslate(),d=!0,r.allowMomentumBounce=!0):f=i.minTranslate(),u.loop&&u.centeredSlides&&(it=!0);else if(u.freeModeSticky){for(p=0;p-f){y=p;break}f=-(f=Math.abs(h[y]-f)=u.longSwipesMs)&&(i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses())}else{for(var o=0,rt=i.slidesSizesGrid[0],s=0;s=e[s]&&l=e[s]&&(o=s,rt=e[e.length-1]-e[e.length-2]);if(ut=(l-e[o])/rt,a>u.longSwipesMs){if(!u.longSwipes)return void i.slideTo(i.activeIndex);"next"===i.swipeDirection&&(ut>=u.longSwipesRatio?i.slideTo(o+u.slidesPerGroup):i.slideTo(o));"prev"===i.swipeDirection&&(ut>1-u.longSwipesRatio?i.slideTo(o+u.slidesPerGroup):i.slideTo(o))}else{if(!u.shortSwipes)return void i.slideTo(i.activeIndex);"next"===i.swipeDirection&&i.slideTo(o+u.slidesPerGroup);"prev"===i.swipeDirection&&i.slideTo(o)}}}.bind(f);f.onClick=function(n){this.allowClick||(this.params.preventClicks&&n.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(n.stopPropagation(),n.stopImmediatePropagation()))}.bind(f);h="container"===o.touchEventsTarget?a:v;c=!!o.nested;!r.touch&&(r.pointerEvents||r.prefixedPointerEvents)?(h.addEventListener(s.start,f.onTouchStart,!1),u.addEventListener(s.move,f.onTouchMove,c),u.addEventListener(s.end,f.onTouchEnd,!1)):(r.touch&&(l=!("touchstart"!==s.start||!r.passiveListener||!o.passiveListeners)&&{passive:!0,capture:!1},h.addEventListener(s.start,f.onTouchStart,l),h.addEventListener(s.move,f.onTouchMove,r.passiveListener?{passive:!1,capture:c}:c),h.addEventListener(s.end,f.onTouchEnd,l)),(o.simulateTouch&&!e.ios&&!e.android||o.simulateTouch&&!r.touch&&e.ios)&&(h.addEventListener("mousedown",f.onTouchStart,!1),u.addEventListener("mousemove",f.onTouchMove,c),u.addEventListener("mouseup",f.onTouchEnd,!1)));(o.preventClicks||o.preventClicksPropagation)&&h.addEventListener("click",f.onClick,!0);f.on(e.ios||e.android?"resize orientationchange observerUpdate":"resize observerUpdate",at,!0)},detachEvents:function(){var n=this,t=n.params,i=n.touchEvents,h=n.el,c=n.wrapperEl,f="container"===t.touchEventsTarget?h:c,o=!!t.nested,s;!r.touch&&(r.pointerEvents||r.prefixedPointerEvents)?(f.removeEventListener(i.start,n.onTouchStart,!1),u.removeEventListener(i.move,n.onTouchMove,o),u.removeEventListener(i.end,n.onTouchEnd,!1)):(r.touch&&(s=!("onTouchStart"!==i.start||!r.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1},f.removeEventListener(i.start,n.onTouchStart,s),f.removeEventListener(i.move,n.onTouchMove,o),f.removeEventListener(i.end,n.onTouchEnd,s)),(t.simulateTouch&&!e.ios&&!e.android||t.simulateTouch&&!r.touch&&e.ios)&&(f.removeEventListener("mousedown",n.onTouchStart,!1),u.removeEventListener("mousemove",n.onTouchMove,o),u.removeEventListener("mouseup",n.onTouchEnd,!1)));(t.preventClicks||t.preventClicksPropagation)&&f.removeEventListener("click",n.onClick,!0);n.off(e.ios||e.android?"resize orientationchange observerUpdate":"resize observerUpdate",at)}},k,oi={setBreakpoint:function(){var t=this,h=t.activeIndex,c=t.initialized,o=t.loopedSlides,f,i,r,u,e,s;void 0===o&&(o=0);f=t.params;i=f.breakpoints;i&&(!i||0!==Object.keys(i).length)&&(r=t.getBreakpoint(i),r&&t.currentBreakpoint!==r&&(u=r in i?i[r]:void 0,u&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(function(n){var t=u[n];void 0!==t&&(u[n]="slidesPerView"!==n||"AUTO"!==t&&"auto"!==t?"slidesPerView"===n?parseFloat(t):parseInt(t,10):"auto")}),e=u||t.originalParams,s=f.loop&&e.slidesPerView!==f.slidesPerView,n.extend(t.params,e),n.extend(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),t.currentBreakpoint=r,s&&c&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(h-o+t.loopedSlides,0,!1)),t.emit("breakpoint",e)))},getBreakpoint:function(n){var t,r,f,u;if(n){for(t=!1,r=[],Object.keys(n).forEach(function(n){r.push(n)}),r.sort(function(n,t){return parseInt(n,10)-parseInt(t,10)}),f=0;f=i.innerWidth&&!t&&(t=u);return t||"max"}}},v={isIE:!!i.navigator.userAgent.match(/Trident/g)||!!i.navigator.userAgent.match(/MSIE/g),isEdge:!!i.navigator.userAgent.match(/Edge/g),isSafari:(k=i.navigator.userAgent.toLowerCase(),0<=k.indexOf("safari")&&k.indexOf("chrome")<0&&k.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent)},vt={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",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",runCallbacksOnInit:!0},ft={update:gt,translate:ni,transition:ti,slide:ii,loop:ri,grabCursor:ui,manipulation:fi,events:ei,breakpoints:oi,checkOverflow:{checkOverflow:function(){var n=this,t=n.isLocked;n.isLocked=1===n.snapGrid.length;n.allowSlideNext=!n.isLocked;n.allowSlidePrev=!n.isLocked;t!==n.isLocked&&n.emit(n.isLocked?"lock":"unlock");t&&t!==n.isLocked&&(n.isEnd=!1,n.navigation.update())}},classes:{addClasses:function(){var i=this.classNames,t=this.params,u=this.rtl,f=this.$el,n=[];n.push(t.direction);t.freeMode&&n.push("free-mode");r.flexbox||n.push("no-flexbox");t.autoHeight&&n.push("autoheight");u&&n.push("rtl");1'+n+"<\/div>"),u.attr("data-swiper-slide-index")||u.attr("data-swiper-slide-index",i),f.cache&&(r.virtual.cache[i]=u),u)},appendSlide:function(n){this.virtual.slides.push(n);this.virtual.update(!0)},prependSlide:function(n){var t=this,i,r;(t.virtual.slides.unshift(n),t.params.virtual.cache)&&(i=t.virtual.cache,r={},Object.keys(i).forEach(function(n){r[n+1]=i[n]}),t.virtual.cache=r);t.virtual.update(!0);t.slideNext(0)}},vi={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var t=this;n.extend(t,{virtual:{update:g.update.bind(t),appendSlide:g.appendSlide.bind(t),prependSlide:g.prependSlide.bind(t),renderSlide:g.renderSlide.bind(t),slides:t.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var t=this,i;t.params.virtual.enabled&&(t.classNames.push(t.params.containerModifierClass+"virtual"),i={watchSlidesProgress:!0},n.extend(t.params,i),n.extend(t.originalParams,i),t.params.initialSlide||t.virtual.update())},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},ot={handle:function(n){var t=this,o=t.rtlTranslate,f=n,r,c,l,h,s;if((f.originalEvent&&(f=f.originalEvent),r=f.keyCode||f.charCode,!t.allowSlideNext&&(t.isHorizontal()&&39===r||t.isVertical()&&40===r))||!t.allowSlidePrev&&(t.isHorizontal()&&37===r||t.isVertical()&&38===r))return!1;if(!(f.shiftKey||f.altKey||f.ctrlKey||f.metaKey||u.activeElement&&u.activeElement.nodeName&&("input"===u.activeElement.nodeName.toLowerCase()||"textarea"===u.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(37===r||39===r||38===r||40===r)){if(c=!1,0Math.abs(f.pixelY)))return!0;e=f.pixelX*h}else{if(!(Math.abs(f.pixelY)>Math.abs(f.pixelX)))return!0;e=f.pixelY}else e=Math.abs(f.pixelX)>Math.abs(f.pixelY)?-f.pixelX*h:-f.pixelY;if(0===e)return!0;if(s.invert&&(e=-e),r.params.freeMode){r.params.loop&&r.loopFix();var o=r.getTranslate()+e*s.sensitivity,l=r.isBeginning,a=r.isEnd;if(o>=r.minTranslate()&&(o=r.minTranslate()),o<=r.maxTranslate()&&(o=r.maxTranslate()),r.setTransition(0),r.setTranslate(o),r.updateProgress(),r.updateActiveIndex(),r.updateSlidesClasses(),(!l&&r.isBeginning||!a&&r.isEnd)&&r.updateSlidesClasses(),r.params.freeModeSticky&&(clearTimeout(r.mousewheel.timeout),r.mousewheel.timeout=n.nextTick(function(){r.slideToClosest()},300)),r.emit("scroll",u),r.params.autoplay&&r.params.autoplayDisableOnInteraction&&r.autoplay.stop(),o===r.minTranslate()||o===r.maxTranslate())return!0}else{if(60h-1-2*n.loopedSlides&&(r-=h-2*n.loopedSlides),o-1i.dynamicMainBullets-1?n.pagination.dynamicBulletIndex=i.dynamicMainBullets-1:n.pagination.dynamicBulletIndex<0&&(n.pagination.dynamicBulletIndex=0)),e=r-n.pagination.dynamicBulletIndex,l=((s=e+(Math.min(u.length,i.dynamicMainBullets)-1))+e)/2),u.removeClass(i.bulletActiveClass+" "+i.bulletActiveClass+"-next "+i.bulletActiveClass+"-next-next "+i.bulletActiveClass+"-prev "+i.bulletActiveClass+"-prev-prev "+i.bulletActiveClass+"-main"),1<\/'+n.bulletElement+">";r.html(i);t.pagination.bullets=r.find("."+n.bulletClass)}"fraction"===n.type&&(i=n.renderFraction?n.renderFraction.call(t,n.currentClass,n.totalClass):'<\/span> / <\/span>',r.html(i));"progressbar"===n.type&&(i=n.renderProgressbar?n.renderProgressbar.call(t,n.progressbarFillClass):'<\/span>',r.html(i));"custom"!==n.type&&t.emit("paginationRender",t.pagination.$el[0])}},init:function(){var u=this,i=u.params.pagination,r;i.el&&(r=t(i.el),0!==r.length&&(u.params.uniqueNavElements&&"string"==typeof i.el&&1<\/div>'),r.append(u));n.extend(e,{$el:r,el:r[0],$dragEl:u,dragEl:u[0]});f.draggable&&e.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},st={setTransform:function(n,i){var a=this.rtl,f=t(n),s=a?-1:1,h=f.attr("data-swiper-parallax")||"0",r=f.attr("data-swiper-parallax-x"),u=f.attr("data-swiper-parallax-y"),e=f.attr("data-swiper-parallax-scale"),o=f.attr("data-swiper-parallax-opacity"),c,l;(r||u?(r=r||"0",u=u||"0"):this.isHorizontal()?(r=h,u="0"):(u=h,r="0"),r=0<=r.indexOf("%")?parseInt(r,10)*i*s+"%":r*i*s+"px",u=0<=u.indexOf("%")?parseInt(u,10)*i+"%":u*i+"px",null!=o)&&(c=o-(o-1)*(1-Math.abs(i)),f[0].style.opacity=c);null==e?f.transform("translate3d("+r+", "+u+", 0px)"):(l=e-(e-1)*(1-Math.abs(i)),f.transform("translate3d("+r+", "+u+", 0px) scale("+l+")"))},setTranslate:function(){var n=this,r=n.$el,u=n.slides,i=n.progress,f=n.snapGrid;r.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(t,r){n.parallax.setTransform(r,i)});u.each(function(r,u){var e=u.progress;1i.maxRatio&&(t.scale=i.maxRatio-1+Math.pow(t.scale-i.maxRatio+1,.5)),t.scalei.touchesStart.x)||!e.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.yi.touchesStart.y)))return void(i.isTouched=!1);t.preventDefault();t.stopPropagation();i.isMoved=!0;i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX;i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY;i.currentXi.maxX&&(i.currentX=i.maxX-1+Math.pow(i.currentX-i.maxX+1,.8));i.currentYi.maxY&&(i.currentY=i.maxY-1+Math.pow(i.currentY-i.maxY+1,.8));r.prevPositionX||(r.prevPositionX=i.touchesCurrent.x);r.prevPositionY||(r.prevPositionY=i.touchesCurrent.y);r.prevTime||(r.prevTime=Date.now());r.x=(i.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2;r.y=(i.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2;Math.abs(i.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0);Math.abs(i.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0);r.prevPositionX=i.touchesCurrent.x;r.prevPositionY=i.touchesCurrent.y;r.prevTime=Date.now();u.$imageWrapEl.transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTouchEnd:function(){var i=this.zoom,r=i.gesture,n=i.image,t=i.velocity,s,h,c;if(r.$imageEl&&0!==r.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1;n.isMoved=!1;var u=300,f=300,l=t.x*u,e=n.currentX+l,a=t.y*f,o=n.currentY+a;0!==t.x&&(u=Math.abs((e-n.currentX)/t.x));0!==t.y&&(f=Math.abs((o-n.currentY)/t.y));s=Math.max(u,f);n.currentX=e;n.currentY=o;h=n.width*i.scale;c=n.height*i.scale;n.minX=Math.min(r.slideWidth/2-h/2,0);n.maxX=-n.minX;n.minY=Math.min(r.slideHeight/2-c/2,0);n.maxY=-n.minY;n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX);n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY);r.$imageWrapEl.transition(s).transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}},onTransitionEnd:function(){var t=this.zoom,n=t.gesture;n.$slideEl&&this.previousIndex!==this.activeIndex&&(n.$imageEl.transform("translate3d(0,0,0) scale(1)"),n.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0)},toggle:function(n){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(n)},"in":function(n){var s,h,b,k,u,f,d,g,nt,tt,c,l,a,v,y,p,e=this,r=e.zoom,o=e.params.zoom,i=r.gesture,w=r.image;(i.$slideEl||(i.$slideEl=e.clickedSlide?t(e.clickedSlide):e.slides.eq(e.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+o.containerClass)),i.$imageEl&&0!==i.$imageEl.length)&&(i.$slideEl.addClass(""+o.zoomedSlideClass),void 0===w.touchesStart.x&&n?(s="touchend"===n.type?n.changedTouches[0].pageX:n.pageX,h="touchend"===n.type?n.changedTouches[0].pageY:n.pageY):(s=w.touchesStart.x,h=w.touchesStart.y),r.scale=i.$imageWrapEl.attr("data-swiper-zoom")||o.maxRatio,r.currentScale=i.$imageWrapEl.attr("data-swiper-zoom")||o.maxRatio,n?(y=i.$slideEl[0].offsetWidth,p=i.$slideEl[0].offsetHeight,b=i.$slideEl.offset().left+y/2-s,k=i.$slideEl.offset().top+p/2-h,d=i.$imageEl[0].offsetWidth,g=i.$imageEl[0].offsetHeight,nt=d*r.scale,tt=g*r.scale,a=-(c=Math.min(y/2-nt/2,0)),v=-(l=Math.min(p/2-tt/2,0)),(u=b*r.scale)>1]<=t?u=e:i=e;return i};return this.x=n,this.y=t,this.lastIndex=n.length-1,this.interpolate=function(n){return n?(f=o(this.x,n),r=f-1,(n-this.x[r])*(this.y[f]-this.y[r])/(this.x[f]-this.x[r])+this.y[r]):0},this},getInterpolateFunction:function(n){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new p.LinearSpline(t.slidesGrid,n.slidesGrid):new p.LinearSpline(t.snapGrid,n.snapGrid))},setTranslate:function(n,t){function s(n){var t=i.rtlTranslate?-i.translate:i.translate;"slide"===i.params.controller.by&&(i.controller.getInterpolateFunction(n),u=-i.controller.spline.interpolate(-t));u&&"container"!==i.params.controller.by||(e=(n.maxTranslate()-n.minTranslate())/(i.maxTranslate()-i.minTranslate()),u=(t-i.minTranslate())*e+n.minTranslate());i.params.controller.inverse&&(u=n.maxTranslate()-u);n.updateProgress(u);n.setTranslate(u,i);n.updateActiveIndex();n.updateSlidesClasses()}var e,u,i=this,r=i.controller.control,f;if(Array.isArray(r))for(f=0;f<\/div>'),k.append(u)),u.css({height:d+"px"})):0===(u=nt.find(".swiper-cube-shadow")).length&&(u=t('
<\/div>'),nt.append(u))),w=0;w<\/div>'),r.append(y)),0===p.length&&(p=t('
<\/div>'),r.append(p)),y.length&&(y[0].style.opacity=Math.max(-a,0)),p.length&&(p[0].style.opacity=Math.max(a,0)))}if(k.css({"-webkit-transform-origin":"50% 50% -"+i/2+"px","-moz-transform-origin":"50% 50% -"+i/2+"px","-ms-transform-origin":"50% 50% -"+i/2+"px","transform-origin":"50% 50% -"+i/2+"px"}),s.shadow)if(f)u.transform("translate3d(0px, "+(d/2+s.shadowOffset)+"px, "+-d/2+"px) rotateX(90deg) rotateZ(0deg) scale("+s.shadowScale+")");else{var ft=Math.abs(c)-90*Math.floor(Math.abs(c)/90),ht=1.5-(Math.sin(2*ft*Math.PI/360)/2+Math.cos(2*ft*Math.PI/360)/2),ct=s.shadowScale,et=s.shadowScale/ht,lt=s.shadowOffset;u.transform("scale3d("+ct+", 1, "+et+") translate3d(0px, "+(it/2+lt)+"px, "+-it/2/et+"px) rotateX(-90deg)")}ot=v.isSafari||v.isUiWebView?-i/2:0;k.transform("translate3d(0px,0,"+ot+"px) rotateX("+(n.isHorizontal()?0:c)+"deg) rotateY("+(n.isHorizontal()?-c:0)+"deg)")},setTransition:function(n){var t=this.$el;this.slides.transition(n).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(n);this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(n)}},kt={setTranslate:function(){for(var n,r,u,f,i=this,o=i.slides,a=i.rtlTranslate,s=0;s<\/div>'),n.append(u)),0===f.length&&(f=t('
<\/div>'),n.append(f)),u.length&&(u[0].style.opacity=Math.max(-r,0)),f.length&&(f[0].style.opacity=Math.max(r,0)));n.transform("translate3d("+h+"px, "+l+"px, 0px) rotateX("+c+"deg) rotateY("+e+"deg)")}},setTransition:function(n){var t=this,r=t.slides,u=t.activeIndex,f=t.$wrapperEl,i;(r.transition(n).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(n),t.params.virtualTranslate&&0!==n)&&(i=!1,r.eq(u).transitionEnd(function(){if(!i&&t&&!t.destroyed){i=!0;t.animating=!1;for(var r=["webkitTransitionEnd","transitionend"],n=0;n<\/div>'),u.append(o)),0===s.length&&(s=t('
<\/div>'),u.append(s)),o.length&&(o[0].style.opacity=0<\/span>')}});Object.keys(pt).forEach(function(n){i.a11y[n]=pt[n].bind(i)})},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var t=this;n.extend(t,{history:{init:l.init.bind(t),setHistory:l.setHistory.bind(t),setHistoryPopState:l.setHistoryPopState.bind(t),scrollToSlide:l.scrollToSlide.bind(t),destroy:l.destroy.bind(t)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var t=this;n.extend(t,{hashNavigation:{initialized:!1,init:tt.init.bind(t),destroy:tt.destroy.bind(t),setHash:tt.setHash.bind(t),onHashCange:tt.onHashCange.bind(t)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var t=this;n.extend(t,{autoplay:{running:!1,paused:!1,run:it.run.bind(t),start:it.start.bind(t),stop:it.stop.bind(t),pause:it.pause.bind(t),onTransitionEnd:function(n){t&&!t.destroyed&&t.$wrapperEl&&n.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(n,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(n):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){n.extend(this,{fadeEffect:{setTranslate:wt.setTranslate.bind(this),setTransition:wt.setTransition.bind(this)}})},on:{beforeInit:function(){var t=this,i;"fade"===t.params.effect&&(t.classNames.push(t.params.containerModifierClass+"fade"),i={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0},n.extend(t.params,i),n.extend(t.originalParams,i))},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(n){"fade"===this.params.effect&&this.fadeEffect.setTransition(n)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){n.extend(this,{cubeEffect:{setTranslate:bt.setTranslate.bind(this),setTransition:bt.setTransition.bind(this)}})},on:{beforeInit:function(){var t=this,i;"cube"===t.params.effect&&(t.classNames.push(t.params.containerModifierClass+"cube"),t.classNames.push(t.params.containerModifierClass+"3d"),i={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0},n.extend(t.params,i),n.extend(t.originalParams,i))},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(n){"cube"===this.params.effect&&this.cubeEffect.setTransition(n)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){n.extend(this,{flipEffect:{setTranslate:kt.setTranslate.bind(this),setTransition:kt.setTransition.bind(this)}})},on:{beforeInit:function(){var t=this,i;"flip"===t.params.effect&&(t.classNames.push(t.params.containerModifierClass+"flip"),t.classNames.push(t.params.containerModifierClass+"3d"),i={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0},n.extend(t.params,i),n.extend(t.originalParams,i))},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(n){"flip"===this.params.effect&&this.flipEffect.setTransition(n)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){n.extend(this,{coverflowEffect:{setTranslate:dt.setTranslate.bind(this),setTransition:dt.setTransition.bind(this)}})},on:{beforeInit:function(){var n=this;"coverflow"===n.params.effect&&(n.classNames.push(n.params.containerModifierClass+"coverflow"),n.classNames.push(n.params.containerModifierClass+"3d"),n.params.watchSlidesProgress=!0,n.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(n){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(n)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){n.extend(this,{thumbs:{swiper:null,init:ct.init.bind(this),update:ct.update.bind(this),onThumbClick:ct.onThumbClick.bind(this)}})},on:{beforeInit:function(){var n=this.params.thumbs;n&&n.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(n){var t=this.thumbs.swiper;t&&t.setTransition(n)},beforeDestroy:function(){var n=this.thumbs.swiper;n&&this.thumbs.swiperCreated&&n&&n.destroy()}}}];return void 0===o.use&&(o.use=o.Class.use,o.installModule=o.Class.installModule),o.use(pi),o});window.Echo=function(n,t){"use strict";var i=[],u,f,e,o=function(i){var r=i.getBoundingClientRect();return(r.top>=0&&r.left>=0&&r.top)<=(n.innerHeight||t.documentElement.clientHeight)+parseInt(u)},s=function(){for(var n,t=i.length;t--;)n=i[t],o(n)&&(n.src=n.getAttribute("data-echo"),i.splice(t,1))},r=function(){clearTimeout(e);e=setTimeout(s,f)},h=function(e){var s=t.querySelectorAll("[data-echo]"),h=e||{},o;for(u=h.offset||0,f=h.throttle||250,o=0;on-50?$("header").hasClass("in")||$("header").addClass("in"):$("header").hasClass("in")&&$("header").removeClass("in")});$("#iconnav").on("click",function(){var n=this;$(this).hasClass("active")?($(this).removeClass("active"),$("#mnav").removeClass("active"),iconate(n,{from:"icon-guanbi",to:"icon-nav",animation:"rotateAntiClockwise"})):($("#mnav").addClass("active"),$(this).addClass("active"),iconate(n,{from:"icon-nav",to:"icon-guanbi",animation:"rotateClockwise"}))})})