Socket
Socket
Sign inDemoInstall

swiper

Package Overview
Dependencies
Maintainers
1
Versions
333
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swiper - npm Package Compare versions

Comparing version 3.0.4 to 3.0.5

src/js/a11y.js

2

bower.json

@@ -8,3 +8,3 @@ {

"description": "Most modern mobile touch slider and framework with hardware accelerated transitions",
"version": "3.0.4",
"version": "3.0.5",
"author": "Vladimir Kharlampidi",

@@ -11,0 +11,0 @@ "homepage": "http://www.idangero.us/swiper/",

# Change Log
## Swiper 3.0.5 - Released on March 21, 2015
* New Keyboard accessibility module to provide foucsable navigation buttons and basic ARIA for screen readers with new parameters:
* `a11y: false` - enable accessibility
* `prevSlideMessage: 'Previous slide'` - message for screen readers for previous button
* `nextSlideMessage: 'Next slide'` - message for screen readers for next button
* `firstSlideMessage: 'This is the first slide'` - message for screen readers for previous button when swiper is on first slide
* `lastSlideMessage: 'This is the last slide'` - message for screen readers for next button when swiper is on last slide
* New Emitter module. It allows to work with callbacks like with events, even adding them after initialization with new methods:
* `.on(event, handler)` - add event/callback
* `.off(event, handler)` - remove this event/callback
* `.once(event, handler)` - add event/callback that will be executed only once
* Plugins API is back. It allows to write custom Swiper plugins
* Better support for browser that don't support flexbox layout
* New parameter `setWrapperSize` (be default it is `false`) to provide better compatibility with browser without flexbox support. Enabled this option and plugin will set width/height on swiper wrapper equal to total size of all slides
* New `virtualTranslate` parameter. When it is enabled swiper will be operated as usual except it will not move. Useful when you may need to create custom slide transition
* Added support for multiple Pagination containers
* Fixed `onLazyImage...` callbacks
* Fixed issue with not accessible links inside of Slides on Android < 4.4
* Fixed pagination bullets behavior in loop mode with specified `slidesPerGroup`
* Fixed issues with clicks on IE 10+ touch devices
* Fixed issues with Coverflow support on IE 10+
* Hashnav now will update document hash after transition to prevent browsers UI lags, not in the beginning like before
* Super basic support for IE 9 with swiper.jquery version. No animation and transitions, but basic stuff like switching slides/pagination/scrollbars works
## Swiper 3.0.4 - Released on March 6, 2015

@@ -4,0 +29,0 @@ * New Images Lazy Load component

@@ -5,3 +5,3 @@ {

"description": "Most modern mobile touch slider and framework with hardware accelerated transitions",
"version": "3.0.0",
"version": "3.0.5",
"keywords": ["swiper", "swipe", "slider", "touch", "ios", "mobile", "cordova", "phonegap", "app", "framework", "carousel", "gallery"],

@@ -8,0 +8,0 @@ "dependencies": {

/**
* Swiper 3.0.4
* Swiper 3.0.5
* Most modern mobile touch slider and framework with hardware accelerated transitions

@@ -13,6 +13,6 @@ *

*
* Released on: March 6, 2015
* Released on: March 21, 2015
*/
!function(){"use strict";function e(e){e.fn.swiper=function(a){var t;return e(this).each(function(){var e=new Swiper(this,a);t||(t=e)}),t}}window.Swiper=function(e,a){function t(){return"horizontal"===u.params.direction}function r(){u.autoplayTimeoutId=setTimeout(function(){u.params.loop?(u.fixLoop(),u._slideNext()):u.isEnd?a.autoplayStopOnLast?u.stopAutoplay():u._slideTo(0):u._slideNext()},u.params.autoplay)}function s(e,a){var t=m(e.target);if(!t.is(a))if("string"==typeof a)t=t.parents(a);else if(a.nodeType){var r;return t.parents().each(function(e,t){t===a&&(r=a)}),r?a:void 0}return 0===t.length?void 0:t[0]}function i(e,a){a=a||{};var t=window.MutationObserver||window.WebkitMutationObserver,r=new t(function(e){e.forEach(function(e){u.onResize(),u.params.onObserverUpdate&&u.params.onObserverUpdate(u,e)})});r.observe(e,{attributes:"undefined"==typeof a.attributes?!0:a.attributes,childList:"undefined"==typeof a.childList?!0:a.childList,characterData:"undefined"==typeof a.characterData?!0:a.characterData}),u.observers.push(r)}function n(e){e.originalEvent&&(e=e.originalEvent);var a=e.keyCode||e.charCode;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 r=!1;if(u.container.parents(".swiper-slide").length>0&&0===u.container.parents(".swiper-slide-active").length)return;for(var s={left:window.pageXOffset,top:window.pageYOffset},i=window.innerWidth,n=window.innerHeight,o=u.container.offset(),l=[[o.left,o.top],[o.left+u.width,o.top],[o.left,o.top+u.height],[o.left+u.width,o.top+u.height]],d=0;d<l.length;d++){var p=l[d];p[0]>=s.left&&p[0]<=s.left+i&&p[1]>=s.top&&p[1]<=s.top+n&&(r=!0)}if(!r)return}t()?((37===a||39===a)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),39===a&&u.slideNext(),37===a&&u.slidePrev()):((38===a||40===a)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),40===a&&u.slideNext(),38===a&&u.slidePrev())}}function o(e){e.originalEvent&&(e=e.originalEvent);var a=u._wheelEvent,r=0;if(e.detail)r=-e.detail;else if("mousewheel"===a)if(u.params.mousewheelForceToAxis)if(t()){if(!(Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)))return;r=e.wheelDeltaX}else{if(!(Math.abs(e.wheelDeltaY)>Math.abs(e.wheelDeltaX)))return;r=e.wheelDeltaY}else r=e.wheelDelta;else if("DOMMouseScroll"===a)r=-e.detail;else if("wheel"===a)if(u.params.mousewheelForceToAxis)if(t()){if(!(Math.abs(e.deltaX)>Math.abs(e.deltaY)))return;r=-e.deltaX}else{if(!(Math.abs(e.deltaY)>Math.abs(e.deltaX)))return;r=-e.deltaY}else r=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-e.deltaX:-e.deltaY;if(u.params.freeMode){var s=u.getWrapperTranslate()+r;if(s>0&&(s=0),s<u.maxTranslate()&&(s=u.maxTranslate()),u.setWrapperTransition(0),u.setWrapperTranslate(s),u.updateProgress(),u.updateActiveIndex(),0===s||s===u.maxTranslate())return}else(new Date).getTime()-u._lastWheelScrollTime>60&&(0>r?u.slideNext():u.slidePrev()),u._lastWheelScrollTime=(new Date).getTime();return u.params.autoplay&&u.stopAutoplay(),e.preventDefault?e.preventDefault():e.returnValue=!1,!1}function l(e,a){e=m(e);var r,s,i,n,o;r=e.attr("data-swiper-parallax"),s=e.attr("data-swiper-parallax-x"),i=e.attr("data-swiper-parallax-y"),s||i||!r?(s=s?s:"0",i=i?i:"0"):t()?(s=r,i="0"):(i=r,s="0"),s=s.indexOf("%")>=0?parseInt(s,10)*a+"%":s*a+"px",i=i.indexOf("%")>=0?parseInt(i,10)*a+"%":i*a+"px",n=s,o=i,e.transform("translate3d("+n+", "+o+",0px)")}var d={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,keyboardControl:!1,mousewheelControl:!1,mousewheelForceToAxis:!1,hashnav:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,pagination:null,paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationHiddenClass:"swiper-pagination-hidden",observer:!1,observeParents:!1,runCallbacksOnInit:!0};a=a||{};for(var p in d)if("undefined"==typeof a[p])a[p]=d[p];else if("object"==typeof a[p])for(var c in d[p])"undefined"==typeof a[p][c]&&(a[p][c]=d[p][c]);var u=this;u.params=a;var m;if(m="undefined"==typeof Dom7?window.Dom7||window.Zepto||window.jQuery:Dom7,m&&(u.container=m(e),0!==u.container.length)){if(u.container.length>1)return void u.container.each(function(){new Swiper(this,a)});u.container[0].swiper=u,u.container.data("swiper",u),u.container.addClass("swiper-container-"+u.params.direction),u.params.freeMode&&u.container.addClass("swiper-container-free-mode"),(u.params.parallax||u.params.watchSlidesVisibility)&&(u.params.watchSlidesProgress=!0),["cube","coverflow"].indexOf(u.params.effect)>=0&&(u.support.transforms3d?(u.params.watchSlidesProgress=!0,u.container.addClass("swiper-container-3d")):u.params.effect="slide"),"slide"!==u.params.effect&&u.container.addClass("swiper-container-"+u.params.effect),"cube"===u.params.effect&&(u.params.resistanceRatio=0,u.params.slidesPerView=1,u.params.slidesPerColumn=1,u.params.slidesPerGroup=1,u.params.centeredSlides=!1,u.params.spaceBetween=0),"fade"===u.params.effect&&(u.params.watchSlidesProgress=!0,u.params.spaceBetween=0),u.params.grabCursor&&u.support.touch&&(u.params.grabCursor=!1),u.wrapper=u.container.children("."+u.params.wrapperClass),u.params.pagination&&(u.paginationContainer=m(u.params.pagination),u.params.paginationClickable&&u.paginationContainer.addClass("swiper-pagination-clickable")),u.rtl=t()&&("rtl"===u.container[0].dir.toLowerCase()||"rtl"===u.container.css("direction")),u.rtl&&u.container.addClass("swiper-container-rtl"),u.rtl&&(u.wrongRTL="-webkit-box"===u.wrapper.css("display")),u.translate=0,u.progress=0,u.velocity=0,u.lockSwipeToNext=function(){u.params.allowSwipeToNext=!1},u.lockSwipeToPrev=function(){u.params.allowSwipeToPrev=!1},u.lockSwipes=function(){u.params.allowSwipeToNext=u.params.allowSwipeToPrev=!1},u.unlockSwipeToNext=function(){u.params.allowSwipeToNext=!0},u.unlockSwipeToPrev=function(){u.params.allowSwipeToPrev=!0},u.unlockSwipes=function(){u.params.allowSwipeToNext=u.params.allowSwipeToPrev=!0},u.params.slidesPerColumn>1&&u.container.addClass("swiper-container-multirow"),u.params.grabCursor&&(u.container[0].style.cursor="move",u.container[0].style.cursor="-webkit-grab",u.container[0].style.cursor="-moz-grab",u.container[0].style.cursor="grab"),u.imagesToLoad=[],u.imagesLoaded=0,u.loadImage=function(e,a,t,r){function s(){r&&r()}var i;e.complete&&t?s():a?(i=new Image,i.onload=s,i.onerror=s,i.src=a):s()},u.preloadImages=function(){function e(){"undefined"!=typeof u&&null!==u&&(void 0!==u.imagesLoaded&&u.imagesLoaded++,u.imagesLoaded===u.imagesToLoad.length&&(u.params.updateOnImagesReady&&u.update(),u.params.onImagesReady&&u.params.onImagesReady(u)))}u.imagesToLoad=u.container.find("img");for(var a=0;a<u.imagesToLoad.length;a++)u.loadImage(u.imagesToLoad[a],u.imagesToLoad[a].currentSrc||u.imagesToLoad[a].getAttribute("src"),!0,e)},u.autoplayTimeoutId=void 0,u.autoplaying=!1,u.autoplayPaused=!1,u.startAutoplay=function(){return"undefined"!=typeof u.autoplayTimeoutId?!1:u.params.autoplay?u.autoplaying?!1:(u.autoplaying=!0,u.params.onAutoplayStart&&u.params.onAutoplayStart(u),void r()):!1},u.stopAutoplay=function(){u.autoplayTimeoutId&&(u.autoplayTimeoutId&&clearTimeout(u.autoplayTimeoutId),u.autoplaying=!1,u.autoplayTimeoutId=void 0,u.params.onAutoplayStop&&u.params.onAutoplayStop(u))},u.pauseAutoplay=function(e){u.autoplayPaused||(u.autoplayTimeoutId&&clearTimeout(u.autoplayTimeoutId),u.autoplayPaused=!0,0===e?(u.autoplayPaused=!1,r()):u.wrapper.transitionEnd(function(){u.autoplayPaused=!1,u.autoplaying?r():u.stopAutoplay()}))},u.minTranslate=function(){return-u.snapGrid[0]},u.maxTranslate=function(){return-u.snapGrid[u.snapGrid.length-1]},u.updateContainerSize=function(){u.width=u.container[0].clientWidth,u.height=u.container[0].clientHeight,u.size=t()?u.width:u.height},u.updateSlidesSize=function(){u.slides=u.wrapper.children("."+u.params.slideClass),u.snapGrid=[],u.slidesGrid=[],u.slidesSizesGrid=[];var e,a=u.params.spaceBetween,r=0,s=0,i=0;"string"==typeof a&&a.indexOf("%")>=0&&(a=parseFloat(a.replace("%",""))/100*u.size),u.virtualWidth=-a,u.slides.css(u.rtl?{marginLeft:"",marginTop:""}:{marginRight:"",marginBottom:""});var n;u.params.slidesPerColumn>1&&(n=Math.floor(u.slides.length/u.params.slidesPerColumn)===u.slides.length/u.params.slidesPerColumn?u.slides.length:Math.ceil(u.slides.length/u.params.slidesPerColumn)*u.params.slidesPerColumn);var o;for(e=0;e<u.slides.length;e++){o=0;var l=u.slides.eq(e);if(u.params.slidesPerColumn>1){var d,p,c,m,f=u.params.slidesPerColumn;"column"===u.params.slidesPerColumnFill?(p=Math.floor(e/f),c=e-p*f,d=p+c*n/f,l.css({"-webkit-box-ordinal-group":d,"-moz-box-ordinal-group":d,"-ms-flex-order":d,"-webkit-order":d,order:d})):(m=n/f,c=Math.floor(e/m),p=e-c*m),l.css({"margin-top":0!==c&&u.params.spaceBetween&&u.params.spaceBetween+"px"}).attr("data-swiper-column",p).attr("data-swiper-row",c)}"none"!==l.css("display")&&("auto"===u.params.slidesPerView?o=t()?l.outerWidth(!0):l.outerHeight(!0):(o=(u.size-(u.params.slidesPerView-1)*a)/u.params.slidesPerView,t()?u.slides[e].style.width=o+"px":u.slides[e].style.height=o+"px"),u.slides[e].swiperSlideSize=o,u.slidesSizesGrid.push(o),u.params.centeredSlides?(r=r+o/2+s/2+a,0===e&&(r=r-u.size/2-a),Math.abs(r)<.001&&(r=0),i%u.params.slidesPerGroup===0&&u.snapGrid.push(r),u.slidesGrid.push(r)):(i%u.params.slidesPerGroup===0&&u.snapGrid.push(r),u.slidesGrid.push(r),r=r+o+a),u.virtualWidth+=o+a,s=o,i++)}u.virtualWidth=Math.max(u.virtualWidth,u.size);var h;if(u.rtl&&u.wrongRTL&&("slide"===u.params.effect||"coverflow"===u.params.effect)&&u.wrapper.css({width:u.virtualWidth+u.params.spaceBetween+"px"}),u.params.slidesPerColumn>1&&(u.virtualWidth=(o+u.params.spaceBetween)*n,u.virtualWidth=Math.ceil(u.virtualWidth/u.params.slidesPerColumn)-u.params.spaceBetween,u.wrapper.css({width:u.virtualWidth+u.params.spaceBetween+"px"}),u.params.centeredSlides)){for(h=[],e=0;e<u.snapGrid.length;e++)u.snapGrid[e]<u.virtualWidth+u.snapGrid[0]&&h.push(u.snapGrid[e]);u.snapGrid=h}if(!u.params.centeredSlides){for(h=[],e=0;e<u.snapGrid.length;e++)u.snapGrid[e]<=u.virtualWidth-u.size&&h.push(u.snapGrid[e]);u.snapGrid=h,Math.floor(u.virtualWidth-u.size)>Math.floor(u.snapGrid[u.snapGrid.length-1])&&u.snapGrid.push(u.virtualWidth-u.size)}0===u.snapGrid.length&&(u.snapGrid=[0]),0!==u.params.spaceBetween&&u.slides.css(t()?u.rtl?{marginLeft:a+"px"}:{marginRight:a+"px"}:{marginBottom:a+"px"}),u.params.watchSlidesProgress&&u.updateSlidesOffset()},u.updateSlidesOffset=function(){for(var e=0;e<u.slides.length;e++)u.slides[e].swiperSlideOffset=t()?u.slides[e].offsetLeft:u.slides[e].offsetTop},u.updateSlidesProgress=function(e){if("undefined"==typeof e&&(e=u.translate||0),0!==u.slides.length){"undefined"==typeof u.slides[0].swiperSlideOffset&&u.updateSlidesOffset();var a=u.params.centeredSlides?-e+u.size/2:-e;u.rtl&&(a=u.params.centeredSlides?e-u.size/2:e);{u.container[0].getBoundingClientRect(),t()?"left":"top",t()?"right":"bottom"}u.slides.removeClass(u.params.slideVisibleClass);for(var r=0;r<u.slides.length;r++){var s=u.slides[r],i=u.params.centeredSlides===!0?s.swiperSlideSize/2:0,n=(a-s.swiperSlideOffset-i)/(s.swiperSlideSize+u.params.spaceBetween);if(u.params.watchSlidesVisibility){var o=-(a-s.swiperSlideOffset-i),l=o+u.slidesSizesGrid[r],d=o>=0&&o<u.size||l>0&&l<=u.size||0>=o&&l>=u.size;d&&u.slides.eq(r).addClass(u.params.slideVisibleClass)}s.progress=u.rtl?-n:n}}},u.updateProgress=function(e){"undefined"==typeof e&&(e=u.translate||0);var a=u.maxTranslate()-u.minTranslate();0===a?(u.progress=0,u.isBeginning=u.isEnd=!0):(u.progress=(e-u.minTranslate())/a,u.isBeginning=u.progress<=0,u.isEnd=u.progress>=1),u.isBeginning&&u.params.onReachBeginning&&u.params.onReachBeginning(u),u.isEnd&&u.params.onReachEnd&&u.params.onReachEnd(u),u.params.watchSlidesProgress&&u.updateSlidesProgress(e),u.params.onProgress&&u.params.onProgress(u,u.progress)},u.updateActiveIndex=function(){var e,a,t,r=u.rtl?u.translate:-u.translate;for(a=0;a<u.slidesGrid.length;a++)"undefined"!=typeof u.slidesGrid[a+1]?r>=u.slidesGrid[a]&&r<u.slidesGrid[a+1]-(u.slidesGrid[a+1]-u.slidesGrid[a])/2?e=a:r>=u.slidesGrid[a]&&r<u.slidesGrid[a+1]&&(e=a+1):r>=u.slidesGrid[a]&&(e=a);(0>e||"undefined"==typeof e)&&(e=0),t=Math.floor(e/u.params.slidesPerGroup),t>=u.snapGrid.length&&(t=u.snapGrid.length-1),e!==u.activeIndex&&(u.snapIndex=t,u.previousIndex=u.activeIndex,u.activeIndex=e,u.updateClasses())},u.updateClasses=function(){u.slides.removeClass(u.params.slideActiveClass+" "+u.params.slideNextClass+" "+u.params.slidePrevClass);var e=u.slides.eq(u.activeIndex);if(e.addClass(u.params.slideActiveClass),e.next("."+u.params.slideClass).addClass(u.params.slideNextClass),e.prev("."+u.params.slideClass).addClass(u.params.slidePrevClass),u.bullets&&u.bullets.length>0){u.bullets.removeClass(u.params.bulletActiveClass);var a;u.params.loop?(a=u.activeIndex-u.loopedSlides,a>u.slides.length-1-2*u.loopedSlides&&(a-=u.slides.length-2*u.loopedSlides)):a="undefined"!=typeof u.snapIndex?u.snapIndex:u.activeIndex||0,u.bullets.eq(a).addClass(u.params.bulletActiveClass)}u.params.loop||(u.params.prevButton&&(u.isBeginning?m(u.params.prevButton).addClass(u.params.buttonDisabledClass):m(u.params.prevButton).removeClass(u.params.buttonDisabledClass)),u.params.nextButton&&(u.isEnd?m(u.params.nextButton).addClass(u.params.buttonDisabledClass):m(u.params.nextButton).removeClass(u.params.buttonDisabledClass)))},u.updatePagination=function(){if(u.params.pagination&&u.paginationContainer&&u.paginationContainer.length>0){for(var e="",a=u.params.loop?u.slides.length-2*u.loopedSlides:u.snapGrid.length,t=0;a>t;t++)e+=u.params.paginationBulletRender?u.params.paginationBulletRender(t,u.params.bulletClass):'<span class="'+u.params.bulletClass+'"></span>';u.paginationContainer.html(e),u.bullets=u.paginationContainer.find("."+u.params.bulletClass)}},u.update=function(e){function a(){r=Math.min(Math.max(u.translate,u.maxTranslate()),u.minTranslate()),u.setWrapperTranslate(r),u.updateActiveIndex(),u.updateClasses()}if(u.updateContainerSize(),u.updateSlidesSize(),u.updateProgress(),u.updatePagination(),u.updateClasses(),u.params.scrollbar&&u.scrollbar&&u.scrollbar.set(),e){var t,r;u.params.freeMode?a():(t="auto"===u.params.slidesPerView&&u.isEnd&&!u.params.centeredSlides?u.slideTo(u.slides.length-1,0,!1,!0):u.slideTo(u.activeIndex,0,!1,!0),t||a())}},u.onResize=function(){if(u.updateContainerSize(),u.updateSlidesSize(),u.updateProgress(),("auto"===u.params.slidesPerView||u.params.freeMode)&&u.updatePagination(),u.params.scrollbar&&u.scrollbar&&u.scrollbar.set(),u.params.freeMode){var e=Math.min(Math.max(u.translate,u.maxTranslate()),u.minTranslate());u.setWrapperTranslate(e),u.updateActiveIndex(),u.updateClasses()}else u.updateClasses(),"auto"===u.params.slidesPerView&&u.isEnd&&!u.params.centeredSlides?u.slideTo(u.slides.length-1,0,!1,!0):u.slideTo(u.activeIndex,0,!1,!0)};var f=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?f=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(f=["MSPointerDown","MSPointerMove","MSPointerUp"]),u.touchEvents={start:u.support.touch||!u.params.simulateTouch?"touchstart":f[0],move:u.support.touch||!u.params.simulateTouch?"touchmove":f[1],end:u.support.touch||!u.params.simulateTouch?"touchend":f[2]},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===u.params.touchEventsTarget?u.container:u.wrapper).addClass("swiper-wp8-"+u.params.direction),u.events=function(e){var t=e?"off":"on",r=e?"removeEventListener":"addEventListener",s="container"===u.params.touchEventsTarget?u.container[0]:u.wrapper[0],i=u.support.touch?s:document,n=u.params.nested?!0:!1;u.browser.ie?(s[r](u.touchEvents.start,u.onTouchStart,!1),i[r](u.touchEvents.move,u.onTouchMove,n),i[r](u.touchEvents.end,u.onTouchEnd,!1)):(u.support.touch&&(s[r](u.touchEvents.start,u.onTouchStart,!1),s[r](u.touchEvents.move,u.onTouchMove,n),s[r](u.touchEvents.end,u.onTouchEnd,!1)),!a.simulateTouch||u.device.ios||u.device.android||(s[r]("mousedown",u.onTouchStart,!1),i[r]("mousemove",u.onTouchMove,n),i[r]("mouseup",u.onTouchEnd,!1))),window[r]("resize",u.onResize),u.params.nextButton&&m(u.params.nextButton)[t]("click",u.onClickNext),u.params.prevButton&&m(u.params.prevButton)[t]("click",u.onClickPrev),u.params.pagination&&u.params.paginationClickable&&m(u.paginationContainer)[t]("click","."+u.params.bulletClass,u.onClickIndex),(u.params.preventClicks||u.params.preventClicksPropagation)&&s[r]("click",u.preventClicks,!0)},u.attachEvents=function(){u.events()},u.detachEvents=function(){u.events(!0)},u.allowClick=!0,u.preventClicks=function(e){u.allowClick||(u.params.preventClicks&&e.preventDefault(),u.params.preventClicksPropagation&&(e.stopPropagation(),e.stopImmediatePropagation()))},u.onClickNext=function(e){e.preventDefault(),u.slideNext()},u.onClickPrev=function(e){e.preventDefault(),u.slidePrev()},u.onClickIndex=function(e){e.preventDefault();var a=m(this).index()*u.params.slidesPerGroup;u.params.loop&&(a+=u.loopedSlides),u.slideTo(a)},u.updateClickedSlide=function(e){var a=s(e,"."+u.params.slideClass);if(!a)return u.clickedSlide=void 0,void(u.clickedIndex=void 0);if(u.clickedSlide=a,u.clickedIndex=m(a).index(),u.params.slideToClickedSlide&&void 0!==u.clickedIndex&&u.clickedIndex!==u.activeIndex){var t,r=u.clickedIndex;if(u.params.loop)if(t=m(u.clickedSlide).attr("data-swiper-slide-index"),r>u.slides.length-u.params.slidesPerView)u.fixLoop(),r=u.wrapper.children("."+u.params.slideClass+'[data-swiper-slide-index="'+t+'"]').eq(0).index(),setTimeout(function(){u.slideTo(r)},0);else if(r<u.params.slidesPerView-1){u.fixLoop();var i=u.wrapper.children("."+u.params.slideClass+'[data-swiper-slide-index="'+t+'"]');r=i.eq(i.length-1).index(),setTimeout(function(){u.slideTo(r)},0)}else u.slideTo(r);else u.slideTo(r)}};var h,v,w,g,T,x,b,y,S,C="input, select, textarea, button",M=Date.now(),P=[];u.animating=!1,u.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var z;if(u.onTouchStart=function(e){if(e.originalEvent&&(e=e.originalEvent),z="touchstart"===e.type,z||!("which"in e)||3!==e.which){if(u.params.noSwiping&&s(e,"."+u.params.noSwipingClass))return void(u.allowClick=!0);if(!u.params.swipeHandler||s(e,u.params.swipeHandler)){if(h=!0,v=!1,g=void 0,u.touches.startX=u.touches.currentX="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,u.touches.startY=u.touches.currentY="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,w=Date.now(),u.allowClick=!0,u.updateContainerSize(),u.swipeDirection=void 0,u.params.threshold>0&&(b=!1),"touchstart"!==e.type){var a=!0;m(e.target).is(C)&&(a=!1),document.activeElement&&m(document.activeElement).is(C)&&document.activeElement.blur(),a&&e.preventDefault()}u.params.onTouchStart&&u.params.onTouchStart(u,e)}}},u.onTouchMove=function(e){if(e.originalEvent&&(e=e.originalEvent),!(z&&"mousemove"===e.type||e.preventedByNestedSwiper)){if(u.params.onlyExternal)return v=!0,void(u.allowClick=!1);if(z&&document.activeElement&&e.target===document.activeElement&&m(e.target).is(C))return v=!0,void(u.allowClick=!1);if(u.params.onTouchMove&&u.params.onTouchMove(u,e),u.allowClick=!1,!(e.targetTouches&&e.targetTouches.length>1)){if(u.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,u.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,"undefined"==typeof g){var r=180*Math.atan2(Math.abs(u.touches.currentY-u.touches.startY),Math.abs(u.touches.currentX-u.touches.startX))/Math.PI;g=t()?r>u.params.touchAngle:90-r>u.params.touchAngle}if(g&&u.params.onTouchMoveOpposite&&u.params.onTouchMoveOpposite(u,e),h){if(g)return void(h=!1);u.params.onSliderMove&&u.params.onSliderMove(u,e),e.preventDefault(),u.params.touchMoveStopPropagation&&!u.params.nested&&e.stopPropagation(),v||(a.loop&&u.fixLoop(),x="cube"===u.params.effect?(u.rtl?-u.translate:u.translate)||0:u.getWrapperTranslate(),u.setWrapperTransition(0),u.animating&&u.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),u.params.autoplay&&u.autoplaying&&(u.params.autoplayDisableOnInteraction?u.stopAutoplay():u.pauseAutoplay()),S=!1,u.params.grabCursor&&(u.container[0].style.cursor="move",u.container[0].style.cursor="-webkit-grabbing",u.container[0].style.cursor="-moz-grabbin",u.container[0].style.cursor="grabbing")),v=!0;var s=u.touches.diff=t()?u.touches.currentX-u.touches.startX:u.touches.currentY-u.touches.startY;s*=u.params.touchRatio,u.rtl&&(s=-s),u.swipeDirection=s>0?"prev":"next",T=s+x;var i=!0;if(s>0&&T>u.minTranslate()?(i=!1,u.params.resistance&&(T=u.minTranslate()-1+Math.pow(-u.minTranslate()+x+s,u.params.resistanceRatio))):0>s&&T<u.maxTranslate()&&(i=!1,u.params.resistance&&(T=u.maxTranslate()+1-Math.pow(u.maxTranslate()-x-s,u.params.resistanceRatio))),i&&(e.preventedByNestedSwiper=!0),!u.params.allowSwipeToNext&&"next"===u.swipeDirection&&x>T&&(T=x),!u.params.allowSwipeToPrev&&"prev"===u.swipeDirection&&T>x&&(T=x),u.params.followFinger){if(u.params.threshold>0){if(!(Math.abs(s)>u.params.threshold||b))return void(T=x);if(!b)return b=!0,u.touches.startX=u.touches.currentX,u.touches.startY=u.touches.currentY,T=x,void(u.touches.diff=t()?u.touches.currentX-u.touches.startX:u.touches.currentY-u.touches.startY)}(u.params.freeMode||u.params.watchSlidesProgress)&&u.updateActiveIndex(),u.params.freeMode&&(0===P.length&&P.push({position:u.touches[t()?"startX":"startY"],time:w}),P.push({position:u.touches[t()?"currentX":"currentY"],time:(new Date).getTime()})),u.updateProgress(T),u.setWrapperTranslate(T)}}}}},u.onTouchEnd=function(e){if(e.originalEvent&&(e=e.originalEvent),u.params.onTouchEnd&&u.params.onTouchEnd(u,e),h){u.params.grabCursor&&v&&h&&(u.container[0].style.cursor="move",u.container[0].style.cursor="-webkit-grab",u.container[0].style.cursor="-moz-grab",u.container[0].style.cursor="grab");var a=Date.now(),t=a-w;if(u.allowClick&&(u.updateClickedSlide(e),u.params.onTap&&u.params.onTap(u,e),300>t&&a-M>300&&(y&&clearTimeout(y),y=setTimeout(function(){u&&(u.params.paginationHide&&u.paginationContainer.length>0&&!m(e.target).hasClass(u.params.bulletClass)&&u.paginationContainer.toggleClass(u.params.paginationHiddenClass),u.params.onClick&&u.params.onClick(u,e))},300)),300>t&&300>a-M&&(y&&clearTimeout(y),u.params.onDoubleTap&&u.params.onDoubleTap(u,e))),M=Date.now(),setTimeout(function(){u&&u.allowClick&&(u.allowClick=!0)},0),!h||!v||!u.swipeDirection||0===u.touches.diff||T===x)return void(h=v=!1);h=v=!1;var r;if(r=u.params.followFinger?u.rtl?u.translate:-u.translate:-T,u.params.freeMode){if(r<-u.minTranslate())return void u.slideTo(u.activeIndex);if(r>-u.maxTranslate())return void u.slideTo(u.slides.length-1);if(u.params.freeModeMomentum){if(P.length>1){var s=P.pop(),i=P.pop(),n=s.position-i.position,o=s.time-i.time;u.velocity=n/o,u.velocity=u.velocity/2,Math.abs(u.velocity)<.02&&(u.velocity=0),(o>150||(new Date).getTime()-s.time>300)&&(u.velocity=0)}else u.velocity=0;P.length=0;var l=1e3*u.params.freeModeMomentumRatio,d=u.velocity*l,p=u.translate+d;u.rtl&&(p=-p);var c,f=!1,g=20*Math.abs(u.velocity)*u.params.freeModeMomentumBounceRatio;p<u.maxTranslate()&&(u.params.freeModeMomentumBounce?(p+u.maxTranslate()<-g&&(p=u.maxTranslate()-g),c=u.maxTranslate(),f=!0,S=!0):p=u.maxTranslate()),p>u.minTranslate()&&(u.params.freeModeMomentumBounce?(p-u.minTranslate()>g&&(p=u.minTranslate()+g),c=u.minTranslate(),f=!0,S=!0):p=u.minTranslate()),0!==u.velocity&&(l=Math.abs(u.rtl?(-p-u.translate)/u.velocity:(p-u.translate)/u.velocity)),u.params.freeModeMomentumBounce&&f?(u.updateProgress(c),u.setWrapperTransition(l),u.setWrapperTranslate(p),u.onTransitionStart(),u.animating=!0,u.wrapper.transitionEnd(function(){S&&(u.params.onMomentumBounce&&u.params.onMomentumBounce(u),u.setWrapperTransition(u.params.speed),u.setWrapperTranslate(c),u.wrapper.transitionEnd(function(){u.onTransitionEnd()}))})):u.velocity?(u.updateProgress(p),u.setWrapperTransition(l),u.setWrapperTranslate(p),u.onTransitionStart(),u.animating||(u.animating=!0,u.wrapper.transitionEnd(function(){u.onTransitionEnd()}))):u.updateProgress(p),u.updateActiveIndex()}return void((!u.params.freeModeMomentum||t>=u.params.longSwipesMs)&&(u.updateProgress(),u.updateActiveIndex()))}var b,C=0,z=u.slidesSizesGrid[0];for(b=0;b<u.slidesGrid.length;b+=u.params.slidesPerGroup)"undefined"!=typeof u.slidesGrid[b+u.params.slidesPerGroup]?r>=u.slidesGrid[b]&&r<u.slidesGrid[b+u.params.slidesPerGroup]&&(C=b,z=u.slidesGrid[b+u.params.slidesPerGroup]-u.slidesGrid[b]):r>=u.slidesGrid[b]&&(C=b,z=u.slidesGrid[u.slidesGrid.length-1]-u.slidesGrid[u.slidesGrid.length-2]);var I=(r-u.slidesGrid[C])/z;if(t>u.params.longSwipesMs){if(!u.params.longSwipes)return void u.slideTo(u.activeIndex);"next"===u.swipeDirection&&u.slideTo(I>=u.params.longSwipesRatio?C+u.params.slidesPerGroup:C),"prev"===u.swipeDirection&&u.slideTo(I>1-u.params.longSwipesRatio?C+u.params.slidesPerGroup:C)}else{if(!u.params.shortSwipes)return void u.slideTo(u.activeIndex);"next"===u.swipeDirection&&u.slideTo(C+u.params.slidesPerGroup),"prev"===u.swipeDirection&&u.slideTo(C)}}},u._slideTo=function(e,a){return u.slideTo(e,a,!0,!0)},u.slideTo=function(e,a,r,s){"undefined"==typeof r&&(r=!0),"undefined"==typeof e&&(e=0),0>e&&(e=0),u.snapIndex=Math.floor(e/u.params.slidesPerGroup),u.snapIndex>=u.snapGrid.length&&(u.snapIndex=u.snapGrid.length-1);var i=-u.snapGrid[u.snapIndex];u.params.autoplay&&u.autoplaying&&(s||!u.params.autoplayDisableOnInteraction?u.pauseAutoplay(a):u.stopAutoplay()),u.updateProgress(i);for(var n=0;n<u.slidesGrid.length;n++)-i>=u.slidesGrid[n]&&(e=n);if("undefined"==typeof a&&(a=u.params.speed),u.previousIndex=u.activeIndex||0,u.activeIndex=e,i===u.translate)return u.updateClasses(),!1;u.onTransitionStart(r);t()?i:0,t()?0:i;return 0===a?(u.setWrapperTransition(0),u.setWrapperTranslate(i),u.onTransitionEnd(r)):(u.setWrapperTransition(a),u.setWrapperTranslate(i),u.animating||(u.animating=!0,u.wrapper.transitionEnd(function(){u.onTransitionEnd(r)}))),u.updateClasses(),!0},u.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),u.lazy&&u.lazy.onTransitionStart(),e&&(u.params.onTransitionStart&&u.params.onTransitionStart(u),u.params.onSlideChangeStart&&u.activeIndex!==u.previousIndex&&u.params.onSlideChangeStart(u))},u.onTransitionEnd=function(e){u.animating=!1,u.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),u.lazy&&u.lazy.onTransitionEnd(),e&&(u.params.onTransitionEnd&&u.params.onTransitionEnd(u),u.params.onSlideChangeEnd&&u.activeIndex!==u.previousIndex&&u.params.onSlideChangeEnd(u))},u.slideNext=function(e,a,t){if(u.params.loop){if(u.animating)return!1;u.fixLoop();{u.container[0].clientLeft}return u.slideTo(u.activeIndex+u.params.slidesPerGroup,a,e,t)}return u.slideTo(u.activeIndex+u.params.slidesPerGroup,a,e,t)},u._slideNext=function(e){return u.slideNext(!0,e,!0)},u.slidePrev=function(e,a,t){if(u.params.loop){if(u.animating)return!1;u.fixLoop();{u.container[0].clientLeft}return u.slideTo(u.activeIndex-1,a,e,t)}return u.slideTo(u.activeIndex-1,a,e,t)},u._slidePrev=function(e){return u.slidePrev(!0,e,!0)},u.slideReset=function(e,a){return u.slideTo(u.activeIndex,a,e)},u.setWrapperTransition=function(e,a){u.wrapper.transition(e),u.params.onSetTransition&&u.params.onSetTransition(u,e),"slide"!==u.params.effect&&u.effects[u.params.effect]&&u.effects[u.params.effect].setTransition(e),u.params.parallax&&u.parallax&&u.parallax.setTransition(e),u.params.scrollbar&&u.scrollbar&&u.scrollbar.setTransition(e),u.params.control&&u.controller&&u.controller.setTransition(e,a)},u.setWrapperTranslate=function(e,a,r){var s=0,i=0,n=0;t()?s=u.rtl?-e:e:i=e,u.wrapper.transform(u.support.transforms3d?"translate3d("+s+"px, "+i+"px, "+n+"px)":"translate("+s+"px, "+i+"px)"),u.translate=t()?s:i,a&&u.updateActiveIndex(),"slide"!==u.params.effect&&u.effects[u.params.effect]&&u.effects[u.params.effect].setTranslate(u.translate),u.params.parallax&&u.parallax&&u.parallax.setTranslate(u.translate),u.params.scrollbar&&u.scrollbar&&u.scrollbar.setTranslate(u.translate),u.params.control&&u.controller&&u.controller.setTranslate(u.translate,r),u.params.hashnav&&u.hashnav&&u.hashnav.setHash(),u.params.onSetTranslate&&u.params.onSetTranslate(u,u.translate)},u.getTranslate=function(e,a){var t,r,s,i;return"undefined"==typeof a&&(a="x"),s=window.getComputedStyle(e,null),window.WebKitCSSMatrix?i=new WebKitCSSMatrix("none"===s.webkitTransform?"":s.webkitTransform):(i=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),t=i.toString().split(",")),"x"===a&&(r=window.WebKitCSSMatrix?i.m41:parseFloat(16===t.length?t[12]:t[4])),"y"===a&&(r=window.WebKitCSSMatrix?i.m42:parseFloat(16===t.length?t[13]:t[5])),u.rtl&&r&&(r=-r),r||0},u.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=t()?"x":"y"),u.getTranslate(u.wrapper[0],e)},u.observers=[],u.initObservers=function(){if(u.params.observeParents)for(var e=u.container.parents(),a=0;a<e.length;a++)i(e[a]);i(u.container[0],{childList:!1}),i(u.wrapper[0],{attributes:!1})},u.disconnectObservers=function(){for(var e=0;e<u.observers.length;e++)u.observers[e].disconnect();u.observers=[]},u.createLoop=function(){u.wrapper.children("."+u.params.slideClass+"."+u.params.slideDuplicateClass).remove();var e=u.wrapper.children("."+u.params.slideClass);u.loopedSlides=parseInt(u.params.loopedSlides||u.params.slidesPerView,10),u.loopedSlides=u.loopedSlides+u.params.loopAdditionalSlides,u.loopedSlides>e.length&&(u.loopedSlides=e.length);var a,t=[],r=[];for(e.each(function(a,s){var i=m(this);a<u.loopedSlides&&r.push(s),a<e.length&&a>=e.length-u.loopedSlides&&t.push(s),i.attr("data-swiper-slide-index",a)}),a=0;a<r.length;a++)u.wrapper.append(m(r[a].cloneNode(!0)).addClass(u.params.slideDuplicateClass));for(a=t.length-1;a>=0;a--)u.wrapper.prepend(m(t[a].cloneNode(!0)).addClass(u.params.slideDuplicateClass))},u.destroyLoop=function(){u.wrapper.children("."+u.params.slideClass+"."+u.params.slideDuplicateClass).remove()},u.fixLoop=function(){var e;u.activeIndex<u.loopedSlides?(e=u.slides.length-3*u.loopedSlides+u.activeIndex,e+=u.loopedSlides,u.slideTo(e,0,!1,!0)):("auto"===u.params.slidesPerView&&u.activeIndex>=2*u.loopedSlides||u.activeIndex>u.slides.length-2*u.params.slidesPerView)&&(e=-u.slides.length+u.activeIndex+u.loopedSlides,e+=u.loopedSlides,u.slideTo(e,0,!1,!0))},u.appendSlide=function(e){if(u.params.loop&&u.destroyLoop(),"object"==typeof e&&e.length)for(var a=0;a<e.length;a++)e[a]&&u.wrapper.append(e[a]);
else u.wrapper.append(e);u.params.loop&&u.createLoop(),u.params.observer&&u.support.observer||u.update(!0)},u.prependSlide=function(e){u.params.loop&&u.destroyLoop();var a=u.activeIndex+1;if("object"==typeof e&&e.length){for(var t=0;t<e.length;t++)e[t]&&u.wrapper.prepend(e[t]);a=u.activeIndex+e.length}else u.wrapper.prepend(e);u.params.loop&&u.createLoop(),u.params.observer&&u.support.observer||u.update(!0),u.slideTo(a,0,!1)},u.removeSlide=function(e){u.params.loop&&u.destroyLoop();var a,t=u.activeIndex;if("object"==typeof e&&e.length){for(var r=0;r<e.length;r++)a=e[r],u.slides[a]&&u.slides.eq(a).remove(),t>a&&t--;t=Math.max(t,0)}else a=e,u.slides[a]&&u.slides.eq(a).remove(),t>a&&t--,t=Math.max(t,0);u.params.observer&&u.support.observer||u.update(!0),u.slideTo(t,0,!1)},u.removeAllSlides=function(){for(var e=[],a=0;a<u.slides.length;a++)e.push(a);u.removeSlide(e)},u.effects={fade:{setTranslate:function(){for(var e=0;e<u.slides.length;e++){var a=u.slides.eq(e),r=a[0].swiperSlideOffset,s=-r-u.translate,i=0;t()||(i=s,s=0);var n=u.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:n}).transform("translate3d("+s+"px, "+i+"px, 0px)")}},setTransition:function(e){u.slides.transition(e)}},cube:{setTranslate:function(){var e,a=0;u.params.cube.shadow&&(t()?(e=u.wrapper.find(".swiper-cube-shadow"),0===e.length&&(e=m('<div class="swiper-cube-shadow"></div>'),u.wrapper.append(e)),e.css({height:u.width+"px"})):(e=u.container.find(".swiper-cube-shadow"),0===e.length&&(e=m('<div class="swiper-cube-shadow"></div>'),u.container.append(e))));for(var r=0;r<u.slides.length;r++){var s=u.slides.eq(r),i=90*r,n=Math.floor(i/360);u.rtl&&(i=-i,n=Math.floor(-i/360));var o=Math.max(Math.min(s[0].progress,1),-1),l=0,d=0,p=0;r%4===0?(l=4*-n*u.size,p=0):(r-1)%4===0?(l=0,p=4*-n*u.size):(r-2)%4===0?(l=u.size+4*n*u.size,p=u.size):(r-3)%4===0&&(l=-u.size,p=3*u.size+4*u.size*n),u.rtl&&(l=-l),t()||(d=l,l=0);var c="rotateX("+(t()?0:-i)+"deg) rotateY("+(t()?i:0)+"deg) translate3d("+l+"px, "+d+"px, "+p+"px)";if(1>=o&&o>-1&&(a=90*r+90*o,u.rtl&&(a=90*-r-90*o)),s.transform(c),u.params.cube.slideShadows){var f=s.find(t()?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),h=s.find(t()?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===f.length&&(f=m('<div class="swiper-slide-shadow-'+(t()?"left":"top")+'"></div>'),s.append(f)),0===h.length&&(h=m('<div class="swiper-slide-shadow-'+(t()?"right":"bottom")+'"></div>'),s.append(h));{s[0].progress}f.length&&(f[0].style.opacity=-s[0].progress),h.length&&(h[0].style.opacity=s[0].progress)}}if(u.wrapper.css({"-webkit-transform-origin":"50% 50% -"+u.size/2+"px","-moz-transform-origin":"50% 50% -"+u.size/2+"px","-ms-transform-origin":"50% 50% -"+u.size/2+"px","transform-origin":"50% 50% -"+u.size/2+"px"}),u.params.cube.shadow)if(t())e.transform("translate3d(0px, "+(u.width/2+u.params.cube.shadowOffset)+"px, "+-u.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+u.params.cube.shadowScale+")");else{var v=Math.abs(a)-90*Math.floor(Math.abs(a)/90),w=1.5-(Math.sin(2*v*Math.PI/360)/2+Math.cos(2*v*Math.PI/360)/2),g=u.params.cube.shadowScale,T=u.params.cube.shadowScale/w,x=u.params.cube.shadowOffset;e.transform("scale3d("+g+", 1, "+T+") translate3d(0px, "+(u.height/2+x)+"px, "+-u.height/2/T+"px) rotateX(-90deg)")}var b=u.isSafari||u.isUiWebView?-u.size/2:0;u.wrapper.transform("translate3d(0px,0,"+b+"px) rotateX("+(t()?0:a)+"deg) rotateY("+(t()?-a:0)+"deg)")},setTransition:function(e){u.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),u.params.cube.shadow&&!t()&&u.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var e=u.translate,a=t()?-e+u.width/2:-e+u.height/2,r=t()?u.params.coverflow.rotate:-u.params.coverflow.rotate,s=u.params.coverflow.depth,i=0,n=u.slides.length;n>i;i++){var o=u.slides.eq(i),l=u.slidesSizesGrid[i],d=o[0].swiperSlideOffset,p=(a-d-l/2)/l*u.params.coverflow.modifier,c=t()?r*p:0,f=t()?0:r*p,h=-s*Math.abs(p),v=t()?0:u.params.coverflow.stretch*p,w=t()?u.params.coverflow.stretch*p:0;Math.abs(w)<.001&&(w=0),Math.abs(v)<.001&&(v=0),Math.abs(h)<.001&&(h=0),Math.abs(c)<.001&&(c=0),Math.abs(f)<.001&&(f=0);var g="translate3d("+w+"px,"+v+"px,"+h+"px) rotateX("+f+"deg) rotateY("+c+"deg)";if(o.transform(g),o[0].style.zIndex=-Math.abs(Math.round(p))+1,u.params.coverflow.slideShadows){var T=o.find(t()?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),x=o.find(t()?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===T.length&&(T=m('<div class="swiper-slide-shadow-'+(t()?"left":"top")+'"></div>'),o.append(T)),0===x.length&&(x=m('<div class="swiper-slide-shadow-'+(t()?"right":"bottom")+'"></div>'),o.append(x)),T.length&&(T[0].style.opacity=p>0?p:0),x.length&&(x[0].style.opacity=-p>0?-p:0)}}if(window.navigator.pointerEnabled||window.navigator.msPointerEnabled){var b=u.wrapper.style;b.perspectiveOrigin=a+"px 50%"}},setTransition:function(e){u.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},u.lazy={initialImageLoaded:!1,loadImageInSlide:function(e){if("undefined"!=typeof e&&0!==u.slides.length){var a=u.slides.eq(e),t=a.find("img.swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");0!==t.length&&t.each(function(){var e=m(this);e.addClass("swiper-lazy-loading");var t=e.attr("data-src");u.loadImage(e[0],t,!1,function(){e.attr("src",t),e.removeAttr("data-src"),e.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"),a.find(".swiper-lazy-preloader, .preloader").remove(),u.params.onLazyImageLoaded&&u.params.onLazyImageLoaded(u,a[0],e[0])}),u.params.onLazyImageLoad&&u.params.onLazyImageLoad(u,a[0],e[0])})}},load:function(){if(u.params.watchSlidesVisibility)u.wrapper.children("."+u.params.slideVisibleClass).each(function(){u.lazy.loadImageInSlide(m(this).index())});else if(u.params.slidesPerView>1)for(var e=u.activeIndex;e<u.activeIndex+u.params.slidesPerView;e++)u.slides[e]&&u.lazy.loadImageInSlide(e);else u.lazy.loadImageInSlide(u.activeIndex);if(u.params.lazyLoadingInPrevNext){var a=u.wrapper.children("."+u.params.slideNextClass);a.length>0&&u.lazy.loadImageInSlide(a.index());var t=u.wrapper.children("."+u.params.slidePrevClass);t.length>0&&u.loadImageInSlide(t.index())}},onTransitionStart:function(){u.params.lazyLoading&&(u.params.lazyLoadingOnTransitionStart||!u.params.lazyLoadingOnTransitionStart&&!u.lazy.initialImageLoaded)&&(u.lazy.initialImageLoaded=!0,u.lazy.load())},onTransitionEnd:function(){u.params.lazyLoading&&!u.params.lazyLoadingOnTransitionStart&&u.lazy.load()}},u.scrollbar={set:function(){if(u.params.scrollbar){var e=u.scrollbar;e.track=m(u.params.scrollbar),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=m('<div class="swiper-scrollbar-drag"></div>'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.trackSize=t()?e.track[0].offsetWidth:e.track[0].offsetHeight,e.divider=u.size/u.virtualWidth,e.moveDivider=e.divider*(e.trackSize/u.size),e.dragSize=e.trackSize*e.divider,t()?e.drag[0].style.width=e.dragSize+"px":e.drag[0].style.height=e.dragSize+"px",e.track[0].style.display=e.divider>=1?"none":"",u.params.scrollbarHide&&(e.track[0].style.opacity=0)}},setTranslate:function(){if(u.params.scrollbar){var e,a=u.scrollbar,r=(u.translate||0,a.dragSize);e=(a.trackSize-a.dragSize)*u.progress,u.rtl&&t()?(e=-e,e>0?(r=a.dragSize-e,e=0):-e+a.dragSize>a.trackSize&&(r=a.trackSize+e)):0>e?(r=a.dragSize+e,e=0):e+a.dragSize>a.trackSize&&(r=a.trackSize-e),t()?(a.drag.transform("translate3d("+e+"px, 0, 0)"),a.drag[0].style.width=r+"px"):(a.drag.transform("translate3d(0px, "+e+"px, 0)"),a.drag[0].style.height=r+"px"),u.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){u.params.scrollbar&&u.scrollbar.drag.transition(e)}},u.controller={setTranslate:function(e,a){var t,r,s=u.params.control;if(u.isArray(s))for(var i=0;i<s.length;i++)s[i]!==a&&s[i]instanceof Swiper&&(e=s[i].rtl&&"horizontal"===s[i].params.direction?-u.translate:u.translate,t=(s[i].maxTranslate()-s[i].minTranslate())/(u.maxTranslate()-u.minTranslate()),r=(e-u.minTranslate())*t+s[i].minTranslate(),u.params.controlInverse&&(r=s[i].maxTranslate()-r),s[i].updateProgress(r),s[i].setWrapperTranslate(r,!1,u),s[i].updateActiveIndex());else s instanceof Swiper&&a!==s&&(e=s.rtl&&"horizontal"===s.params.direction?-u.translate:u.translate,t=(s.maxTranslate()-s.minTranslate())/(u.maxTranslate()-u.minTranslate()),r=(e-u.minTranslate())*t+s.minTranslate(),u.params.controlInverse&&(r=s.maxTranslate()-r),s.updateProgress(r),s.setWrapperTranslate(r,!1,u),s.updateActiveIndex())},setTransition:function(e,a){var t=u.params.control;if(u.isArray(t))for(var r=0;r<t.length;r++)t[r]!==a&&t[r]instanceof Swiper&&t[r].setWrapperTransition(e,u);else t instanceof Swiper&&a!==t&&t.setWrapperTransition(e,u)}},u.hashnav={init:function(){if(u.params.hashnav){u.hashnav.initialized=!0;var e=document.location.hash.replace("#","");if(e)for(var a=0,t=0,r=u.slides.length;r>t;t++){var s=u.slides.eq(t),i=s.attr("data-hash");if(i===e&&!s.hasClass(u.params.slideDuplicateClass)){var n=s.index();u.slideTo(n,a,u.params.runCallbacksOnInit,!0)}}}},setHash:function(){u.hashnav.initialized&&u.params.hashnav&&(document.location.hash=u.slides.eq(u.activeIndex).attr("data-hash")||"")}},u.disableKeyboardControl=function(){m(document).off("keydown",n)},u.enableKeyboardControl=function(){m(document).on("keydown",n)},u._wheelEvent=!1,u._lastWheelScrollTime=(new Date).getTime(),u.params.mousewheelControl){if(void 0!==document.onmousewheel&&(u._wheelEvent="mousewheel"),!u._wheelEvent)try{new WheelEvent("wheel"),u._wheelEvent="wheel"}catch(I){}u._wheelEvent||(u._wheelEvent="DOMMouseScroll")}return u.disableMousewheelControl=function(){return u._wheelEvent?(u.container.off(u._wheelEvent,o),!0):!1},u.enableMousewheelControl=function(){return u._wheelEvent?(u.container.on(u._wheelEvent,o),!0):!1},u.parallax={setTranslate:function(){u.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){l(this,u.progress)}),u.slides.each(function(){var e=m(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var a=Math.min(Math.max(e[0].progress,-1),1);l(this,a)})})},setTransition:function(e){"undefined"==typeof e&&(e=u.params.speed),u.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var a=m(this),t=parseInt(a.attr("data-swiper-parallax-duration"),10)||e;0===e&&(t=0),a.transition(t)})}},u.init=function(){u.params.loop&&u.createLoop(),u.updateContainerSize(),u.updateSlidesSize(),u.updatePagination(),u.params.scrollbar&&u.scrollbar&&u.scrollbar.set(),"slide"!==u.params.effect&&u.effects[u.params.effect]&&(u.params.loop||u.updateProgress(),u.effects[u.params.effect].setTranslate()),u.params.loop?u.slideTo(u.params.initialSlide+u.loopedSlides,0,u.params.runCallbacksOnInit):(u.slideTo(u.params.initialSlide,0,u.params.runCallbacksOnInit),0===u.params.initialSlide&&(u.parallax&&u.params.parallax&&u.parallax.setTranslate(),u.lazy&&u.params.lazyLoading&&u.lazy.load())),u.attachEvents(),u.params.observer&&u.support.observer&&u.initObservers(),u.params.preloadImages&&!u.params.lazyLoading&&u.preloadImages(),u.params.autoplay&&u.startAutoplay(),u.params.keyboardControl&&u.enableKeyboardControl&&u.enableKeyboardControl(),u.params.mousewheelControl&&u.enableMousewheelControl&&u.enableMousewheelControl(),u.params.hashnav&&u.hashnav&&u.hashnav.init(),u.params.onInit&&u.params.onInit(u)},u.destroy=function(e){u.detachEvents(),u.disconnectObservers(),u.params.keyboardControl&&u.disableKeyboardControl&&u.disableKeyboardControl(),u.params.mousewheelControl&&u.disableMousewheelControl&&u.disableMousewheelControl(),u.params.onDestroy&&u.params.onDestroy(),e!==!1&&(u=null)},u.init(),u}},Swiper.prototype={isSafari:function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled},device:function(){var e=navigator.userAgent,a=e.match(/(Android);?[\s\/]+([\d.]+)?/),t=e.match(/(iPad).*OS\s([\d_]+)/),r=(e.match(/(iPod)(.*OS\s([\d_]+))?/),!t&&e.match(/(iPhone\sOS)\s([\d_]+)/));return{ios:t||r||t,android:a}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var e=document.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createElement("div").style,a="WebkitBox msFlexbox MsFlexbox WebkitFlex MozBox flex".split(" "),t=0;t<a.length;t++)if(a[t]in e)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}()}};for(var a=["jQuery","Zepto","Dom7"],t=0;t<a.length;t++)window[a[t]]&&e(window[a[t]]);var r;r="undefined"==typeof Dom7?window.Dom7||window.Zepto||window.jQuery:Dom7,r&&("transitionEnd"in r.fn||(r.fn.transitionEnd=function(e){function a(i){if(i.target===this)for(e.call(this,i),t=0;t<r.length;t++)s.off(r[t],a)}var t,r=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],s=this;if(e)for(t=0;t<r.length;t++)s.on(r[t],a);return this}),"transform"in r.fn||(r.fn.transform=function(e){for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransform=t.MsTransform=t.msTransform=t.MozTransform=t.OTransform=t.transform=e}return this}),"transition"in r.fn||(r.fn.transition=function(e){"string"!=typeof e&&(e+="ms");for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=e}return this}))}(),"undefined"!=typeof module?module.exports=Swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return Swiper});
!function(){"use strict";function e(e){e.fn.swiper=function(a){var t;return e(this).each(function(){var e=new Swiper(this,a);t||(t=e)}),t}}window.Swiper=function(e,a){function t(){return"horizontal"===m.params.direction}function r(){m.autoplayTimeoutId=setTimeout(function(){m.params.loop?(m.fixLoop(),m._slideNext()):m.isEnd?a.autoplayStopOnLast?m.stopAutoplay():m._slideTo(0):m._slideNext()},m.params.autoplay)}function s(e,a){var t=f(e.target);if(!t.is(a))if("string"==typeof a)t=t.parents(a);else if(a.nodeType){var r;return t.parents().each(function(e,t){t===a&&(r=a)}),r?a:void 0}return 0===t.length?void 0:t[0]}function i(e,a){a=a||{};var t=window.MutationObserver||window.WebkitMutationObserver,r=new t(function(e){e.forEach(function(e){m.onResize(),m.emit("onObserverUpdate",m,e)})});r.observe(e,{attributes:"undefined"==typeof a.attributes?!0:a.attributes,childList:"undefined"==typeof a.childList?!0:a.childList,characterData:"undefined"==typeof a.characterData?!0:a.characterData}),m.observers.push(r)}function n(e){e.originalEvent&&(e=e.originalEvent);var a=e.keyCode||e.charCode;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 r=!1;if(m.container.parents(".swiper-slide").length>0&&0===m.container.parents(".swiper-slide-active").length)return;for(var s={left:window.pageXOffset,top:window.pageYOffset},i=window.innerWidth,n=window.innerHeight,o=m.container.offset(),l=[[o.left,o.top],[o.left+m.width,o.top],[o.left,o.top+m.height],[o.left+m.width,o.top+m.height]],p=0;p<l.length;p++){var d=l[p];d[0]>=s.left&&d[0]<=s.left+i&&d[1]>=s.top&&d[1]<=s.top+n&&(r=!0)}if(!r)return}t()?((37===a||39===a)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),39===a&&m.slideNext(),37===a&&m.slidePrev()):((38===a||40===a)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),40===a&&m.slideNext(),38===a&&m.slidePrev())}}function o(e){e.originalEvent&&(e=e.originalEvent);var a=m._wheelEvent,r=0;if(e.detail)r=-e.detail;else if("mousewheel"===a)if(m.params.mousewheelForceToAxis)if(t()){if(!(Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)))return;r=e.wheelDeltaX}else{if(!(Math.abs(e.wheelDeltaY)>Math.abs(e.wheelDeltaX)))return;r=e.wheelDeltaY}else r=e.wheelDelta;else if("DOMMouseScroll"===a)r=-e.detail;else if("wheel"===a)if(m.params.mousewheelForceToAxis)if(t()){if(!(Math.abs(e.deltaX)>Math.abs(e.deltaY)))return;r=-e.deltaX}else{if(!(Math.abs(e.deltaY)>Math.abs(e.deltaX)))return;r=-e.deltaY}else r=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-e.deltaX:-e.deltaY;if(m.params.freeMode){var s=m.getWrapperTranslate()+r;if(s>0&&(s=0),s<m.maxTranslate()&&(s=m.maxTranslate()),m.setWrapperTransition(0),m.setWrapperTranslate(s),m.updateProgress(),m.updateActiveIndex(),0===s||s===m.maxTranslate())return}else(new Date).getTime()-m._lastWheelScrollTime>60&&(0>r?m.slideNext():m.slidePrev()),m._lastWheelScrollTime=(new Date).getTime();return m.params.autoplay&&m.stopAutoplay(),e.preventDefault?e.preventDefault():e.returnValue=!1,!1}function l(e,a){e=f(e);var r,s,i;r=e.attr("data-swiper-parallax")||"0",s=e.attr("data-swiper-parallax-x"),i=e.attr("data-swiper-parallax-y"),s||i?(s=s||"0",i=i||"0"):t()?(s=r,i="0"):(i=r,s="0"),s=s.indexOf("%")>=0?parseInt(s,10)*a+"%":s*a+"px",i=i.indexOf("%")>=0?parseInt(i,10)*a+"%":i*a+"px",e.transform("translate3d("+s+", "+i+",0px)")}function p(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 Swiper))return new Swiper(e,a);var d={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,keyboardControl:!1,mousewheelControl:!1,mousewheelForceToAxis:!1,hashnav:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,pagination:null,paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationHiddenClass:"swiper-pagination-hidden",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",runCallbacksOnInit:!0};a=a||{};for(var u in d)if("undefined"==typeof a[u])a[u]=d[u];else if("object"==typeof a[u])for(var c in d[u])"undefined"==typeof a[u][c]&&(a[u][c]=d[u][c]);var m=this;m.params=a,m.classNames=[];var f;if(f="undefined"==typeof Dom7?window.Dom7||window.Zepto||window.jQuery:Dom7,f&&(m.$=f,m.container=f(e),0!==m.container.length)){if(m.container.length>1)return void m.container.each(function(){new Swiper(this,a)});m.container[0].swiper=m,m.container.data("swiper",m),m.classNames.push("swiper-container-"+m.params.direction),m.params.freeMode&&m.classNames.push("swiper-container-free-mode"),m.support.flexbox||(m.classNames.push("swiper-container-no-flexbox"),m.params.slidesPerColumn=1),(m.params.parallax||m.params.watchSlidesVisibility)&&(m.params.watchSlidesProgress=!0),["cube","coverflow"].indexOf(m.params.effect)>=0&&(m.support.transforms3d?(m.params.watchSlidesProgress=!0,m.classNames.push("swiper-container-3d")):m.params.effect="slide"),"slide"!==m.params.effect&&m.classNames.push("swiper-container-"+m.params.effect),"cube"===m.params.effect&&(m.params.resistanceRatio=0,m.params.slidesPerView=1,m.params.slidesPerColumn=1,m.params.slidesPerGroup=1,m.params.centeredSlides=!1,m.params.spaceBetween=0,m.params.virtualTranslate=!0,m.params.setWrapperSize=!1),"fade"===m.params.effect&&(m.params.slidesPerView=1,m.params.slidesPerColumn=1,m.params.slidesPerGroup=1,m.params.watchSlidesProgress=!0,m.params.spaceBetween=0,m.params.virtualTranslate=!0),m.params.grabCursor&&m.support.touch&&(m.params.grabCursor=!1),m.wrapper=m.container.children("."+m.params.wrapperClass),m.params.pagination&&(m.paginationContainer=f(m.params.pagination),m.params.paginationClickable&&m.paginationContainer.addClass("swiper-pagination-clickable")),m.rtl=t()&&("rtl"===m.container[0].dir.toLowerCase()||"rtl"===m.container.css("direction")),m.rtl&&m.classNames.push("swiper-container-rtl"),m.rtl&&(m.wrongRTL="-webkit-box"===m.wrapper.css("display")),m.params.slidesPerColumn>1&&m.classNames.push("swiper-container-multirow"),m.device.android&&m.classNames.push("swiper-container-android"),m.container.addClass(m.classNames.join(" ")),m.translate=0,m.progress=0,m.velocity=0,m.lockSwipeToNext=function(){m.params.allowSwipeToNext=!1},m.lockSwipeToPrev=function(){m.params.allowSwipeToPrev=!1},m.lockSwipes=function(){m.params.allowSwipeToNext=m.params.allowSwipeToPrev=!1},m.unlockSwipeToNext=function(){m.params.allowSwipeToNext=!0},m.unlockSwipeToPrev=function(){m.params.allowSwipeToPrev=!0},m.unlockSwipes=function(){m.params.allowSwipeToNext=m.params.allowSwipeToPrev=!0},m.params.grabCursor&&(m.container[0].style.cursor="move",m.container[0].style.cursor="-webkit-grab",m.container[0].style.cursor="-moz-grab",m.container[0].style.cursor="grab"),m.imagesToLoad=[],m.imagesLoaded=0,m.loadImage=function(e,a,t,r){function s(){r&&r()}var i;e.complete&&t?s():a?(i=new Image,i.onload=s,i.onerror=s,i.src=a):s()},m.preloadImages=function(){function e(){"undefined"!=typeof m&&null!==m&&(void 0!==m.imagesLoaded&&m.imagesLoaded++,m.imagesLoaded===m.imagesToLoad.length&&(m.params.updateOnImagesReady&&m.update(),m.emit("onImagesReady",m)))}m.imagesToLoad=m.container.find("img");for(var a=0;a<m.imagesToLoad.length;a++)m.loadImage(m.imagesToLoad[a],m.imagesToLoad[a].currentSrc||m.imagesToLoad[a].getAttribute("src"),!0,e)},m.autoplayTimeoutId=void 0,m.autoplaying=!1,m.autoplayPaused=!1,m.startAutoplay=function(){return"undefined"!=typeof m.autoplayTimeoutId?!1:m.params.autoplay?m.autoplaying?!1:(m.autoplaying=!0,m.emit("onAutoplayStart",m),void r()):!1},m.stopAutoplay=function(){m.autoplayTimeoutId&&(m.autoplayTimeoutId&&clearTimeout(m.autoplayTimeoutId),m.autoplaying=!1,m.autoplayTimeoutId=void 0,m.emit("onAutoplayStop",m))},m.pauseAutoplay=function(e){m.autoplayPaused||(m.autoplayTimeoutId&&clearTimeout(m.autoplayTimeoutId),m.autoplayPaused=!0,0===e?(m.autoplayPaused=!1,r()):m.wrapper.transitionEnd(function(){m.autoplayPaused=!1,m.autoplaying?r():m.stopAutoplay()}))},m.minTranslate=function(){return-m.snapGrid[0]},m.maxTranslate=function(){return-m.snapGrid[m.snapGrid.length-1]},m.updateContainerSize=function(){m.width=m.container[0].clientWidth,m.height=m.container[0].clientHeight,m.size=t()?m.width:m.height},m.updateSlidesSize=function(){m.slides=m.wrapper.children("."+m.params.slideClass),m.snapGrid=[],m.slidesGrid=[],m.slidesSizesGrid=[];var e,a=m.params.spaceBetween,r=0,s=0,i=0;"string"==typeof a&&a.indexOf("%")>=0&&(a=parseFloat(a.replace("%",""))/100*m.size),m.virtualSize=-a,m.slides.css(m.rtl?{marginLeft:"",marginTop:""}:{marginRight:"",marginBottom:""});var n;m.params.slidesPerColumn>1&&(n=Math.floor(m.slides.length/m.params.slidesPerColumn)===m.slides.length/m.params.slidesPerColumn?m.slides.length:Math.ceil(m.slides.length/m.params.slidesPerColumn)*m.params.slidesPerColumn);var o;for(e=0;e<m.slides.length;e++){o=0;var l=m.slides.eq(e);if(m.params.slidesPerColumn>1){var p,d,u,c,f=m.params.slidesPerColumn;"column"===m.params.slidesPerColumnFill?(d=Math.floor(e/f),u=e-d*f,p=d+u*n/f,l.css({"-webkit-box-ordinal-group":p,"-moz-box-ordinal-group":p,"-ms-flex-order":p,"-webkit-order":p,order:p})):(c=n/f,u=Math.floor(e/c),d=e-u*c),l.css({"margin-top":0!==u&&m.params.spaceBetween&&m.params.spaceBetween+"px"}).attr("data-swiper-column",d).attr("data-swiper-row",u)}"none"!==l.css("display")&&("auto"===m.params.slidesPerView?o=t()?l.outerWidth(!0):l.outerHeight(!0):(o=(m.size-(m.params.slidesPerView-1)*a)/m.params.slidesPerView,t()?m.slides[e].style.width=o+"px":m.slides[e].style.height=o+"px"),m.slides[e].swiperSlideSize=o,m.slidesSizesGrid.push(o),m.params.centeredSlides?(r=r+o/2+s/2+a,0===e&&(r=r-m.size/2-a),Math.abs(r)<.001&&(r=0),i%m.params.slidesPerGroup===0&&m.snapGrid.push(r),m.slidesGrid.push(r)):(i%m.params.slidesPerGroup===0&&m.snapGrid.push(r),m.slidesGrid.push(r),r=r+o+a),m.virtualSize+=o+a,s=o,i++)}m.virtualSize=Math.max(m.virtualSize,m.size);var h;if(m.rtl&&m.wrongRTL&&("slide"===m.params.effect||"coverflow"===m.params.effect)&&m.wrapper.css({width:m.virtualSize+m.params.spaceBetween+"px"}),(!m.support.flexbox||m.params.setWrapperSize)&&m.wrapper.css(t()?{width:m.virtualSize+m.params.spaceBetween+"px"}:{height:m.virtualSize+m.params.spaceBetween+"px"}),m.params.slidesPerColumn>1&&(m.virtualSize=(o+m.params.spaceBetween)*n,m.virtualSize=Math.ceil(m.virtualSize/m.params.slidesPerColumn)-m.params.spaceBetween,m.wrapper.css({width:m.virtualSize+m.params.spaceBetween+"px"}),m.params.centeredSlides)){for(h=[],e=0;e<m.snapGrid.length;e++)m.snapGrid[e]<m.virtualSize+m.snapGrid[0]&&h.push(m.snapGrid[e]);m.snapGrid=h}if(!m.params.centeredSlides){for(h=[],e=0;e<m.snapGrid.length;e++)m.snapGrid[e]<=m.virtualSize-m.size&&h.push(m.snapGrid[e]);m.snapGrid=h,Math.floor(m.virtualSize-m.size)>Math.floor(m.snapGrid[m.snapGrid.length-1])&&m.snapGrid.push(m.virtualSize-m.size)}0===m.snapGrid.length&&(m.snapGrid=[0]),0!==m.params.spaceBetween&&m.slides.css(t()?m.rtl?{marginLeft:a+"px"}:{marginRight:a+"px"}:{marginBottom:a+"px"}),m.params.watchSlidesProgress&&m.updateSlidesOffset()},m.updateSlidesOffset=function(){for(var e=0;e<m.slides.length;e++)m.slides[e].swiperSlideOffset=t()?m.slides[e].offsetLeft:m.slides[e].offsetTop},m.updateSlidesProgress=function(e){if("undefined"==typeof e&&(e=m.translate||0),0!==m.slides.length){"undefined"==typeof m.slides[0].swiperSlideOffset&&m.updateSlidesOffset();var a=m.params.centeredSlides?-e+m.size/2:-e;m.rtl&&(a=m.params.centeredSlides?e-m.size/2:e);{m.container[0].getBoundingClientRect(),t()?"left":"top",t()?"right":"bottom"}m.slides.removeClass(m.params.slideVisibleClass);for(var r=0;r<m.slides.length;r++){var s=m.slides[r],i=m.params.centeredSlides===!0?s.swiperSlideSize/2:0,n=(a-s.swiperSlideOffset-i)/(s.swiperSlideSize+m.params.spaceBetween);if(m.params.watchSlidesVisibility){var o=-(a-s.swiperSlideOffset-i),l=o+m.slidesSizesGrid[r],p=o>=0&&o<m.size||l>0&&l<=m.size||0>=o&&l>=m.size;p&&m.slides.eq(r).addClass(m.params.slideVisibleClass)}s.progress=m.rtl?-n:n}}},m.updateProgress=function(e){"undefined"==typeof e&&(e=m.translate||0);var a=m.maxTranslate()-m.minTranslate();0===a?(m.progress=0,m.isBeginning=m.isEnd=!0):(m.progress=(e-m.minTranslate())/a,m.isBeginning=m.progress<=0,m.isEnd=m.progress>=1),m.isBeginning&&m.emit("onReachBeginning",m),m.isEnd&&m.emit("onReachEnd",m),m.params.watchSlidesProgress&&m.updateSlidesProgress(e),m.emit("onProgress",m,m.progress)},m.updateActiveIndex=function(){var e,a,t,r=m.rtl?m.translate:-m.translate;for(a=0;a<m.slidesGrid.length;a++)"undefined"!=typeof m.slidesGrid[a+1]?r>=m.slidesGrid[a]&&r<m.slidesGrid[a+1]-(m.slidesGrid[a+1]-m.slidesGrid[a])/2?e=a:r>=m.slidesGrid[a]&&r<m.slidesGrid[a+1]&&(e=a+1):r>=m.slidesGrid[a]&&(e=a);(0>e||"undefined"==typeof e)&&(e=0),t=Math.floor(e/m.params.slidesPerGroup),t>=m.snapGrid.length&&(t=m.snapGrid.length-1),e!==m.activeIndex&&(m.snapIndex=t,m.previousIndex=m.activeIndex,m.activeIndex=e,m.updateClasses())},m.updateClasses=function(){m.slides.removeClass(m.params.slideActiveClass+" "+m.params.slideNextClass+" "+m.params.slidePrevClass);var e=m.slides.eq(m.activeIndex);if(e.addClass(m.params.slideActiveClass),e.next("."+m.params.slideClass).addClass(m.params.slideNextClass),e.prev("."+m.params.slideClass).addClass(m.params.slidePrevClass),m.bullets&&m.bullets.length>0){m.bullets.removeClass(m.params.bulletActiveClass);var a;m.params.loop?(a=Math.ceil(m.activeIndex-m.loopedSlides)/m.params.slidesPerGroup,a>m.slides.length-1-2*m.loopedSlides&&(a-=m.slides.length-2*m.loopedSlides),a>m.bullets.length-1&&(a-=m.bullets.length)):a="undefined"!=typeof m.snapIndex?m.snapIndex:m.activeIndex||0,m.paginationContainer.length>1?m.bullets.each(function(){f(this).index()===a&&f(this).addClass(m.params.bulletActiveClass)}):m.bullets.eq(a).addClass(m.params.bulletActiveClass)}m.params.loop||(m.params.prevButton&&(m.isBeginning?(f(m.params.prevButton).addClass(m.params.buttonDisabledClass),m.params.a11y&&m.a11y&&m.a11y.disable(f(m.params.prevButton))):(f(m.params.prevButton).removeClass(m.params.buttonDisabledClass),m.params.a11y&&m.a11y&&m.a11y.enable(f(m.params.prevButton)))),m.params.nextButton&&(m.isEnd?(f(m.params.nextButton).addClass(m.params.buttonDisabledClass),m.params.a11y&&m.a11y&&m.a11y.disable(f(m.params.nextButton))):(f(m.params.nextButton).removeClass(m.params.buttonDisabledClass),m.params.a11y&&m.a11y&&m.a11y.enable(f(m.params.nextButton)))))},m.updatePagination=function(){if(m.params.pagination&&m.paginationContainer&&m.paginationContainer.length>0){for(var e="",a=m.params.loop?Math.ceil((m.slides.length-2*m.loopedSlides)/m.params.slidesPerGroup):m.snapGrid.length,t=0;a>t;t++)e+=m.params.paginationBulletRender?m.params.paginationBulletRender(t,m.params.bulletClass):'<span class="'+m.params.bulletClass+'"></span>';m.paginationContainer.html(e),m.bullets=m.paginationContainer.find("."+m.params.bulletClass)}},m.update=function(e){function a(){r=Math.min(Math.max(m.translate,m.maxTranslate()),m.minTranslate()),m.setWrapperTranslate(r),m.updateActiveIndex(),m.updateClasses()}if(m.updateContainerSize(),m.updateSlidesSize(),m.updateProgress(),m.updatePagination(),m.updateClasses(),m.params.scrollbar&&m.scrollbar&&m.scrollbar.set(),e){var t,r;m.params.freeMode?a():(t="auto"===m.params.slidesPerView&&m.isEnd&&!m.params.centeredSlides?m.slideTo(m.slides.length-1,0,!1,!0):m.slideTo(m.activeIndex,0,!1,!0),t||a())}},m.onResize=function(){if(m.updateContainerSize(),m.updateSlidesSize(),m.updateProgress(),("auto"===m.params.slidesPerView||m.params.freeMode)&&m.updatePagination(),m.params.scrollbar&&m.scrollbar&&m.scrollbar.set(),m.params.freeMode){var e=Math.min(Math.max(m.translate,m.maxTranslate()),m.minTranslate());m.setWrapperTranslate(e),m.updateActiveIndex(),m.updateClasses()}else m.updateClasses(),"auto"===m.params.slidesPerView&&m.isEnd&&!m.params.centeredSlides?m.slideTo(m.slides.length-1,0,!1,!0):m.slideTo(m.activeIndex,0,!1,!0)};var h=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?h=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(h=["MSPointerDown","MSPointerMove","MSPointerUp"]),m.touchEvents={start:m.support.touch||!m.params.simulateTouch?"touchstart":h[0],move:m.support.touch||!m.params.simulateTouch?"touchmove":h[1],end:m.support.touch||!m.params.simulateTouch?"touchend":h[2]},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===m.params.touchEventsTarget?m.container:m.wrapper).addClass("swiper-wp8-"+m.params.direction),m.initEvents=function(e){var t=e?"off":"on",r=e?"removeEventListener":"addEventListener",s="container"===m.params.touchEventsTarget?m.container[0]:m.wrapper[0],i=m.support.touch?s:document,n=m.params.nested?!0:!1;m.browser.ie?(s[r](m.touchEvents.start,m.onTouchStart,!1),i[r](m.touchEvents.move,m.onTouchMove,n),i[r](m.touchEvents.end,m.onTouchEnd,!1)):(m.support.touch&&(s[r](m.touchEvents.start,m.onTouchStart,!1),s[r](m.touchEvents.move,m.onTouchMove,n),s[r](m.touchEvents.end,m.onTouchEnd,!1)),!a.simulateTouch||m.device.ios||m.device.android||(s[r]("mousedown",m.onTouchStart,!1),i[r]("mousemove",m.onTouchMove,n),i[r]("mouseup",m.onTouchEnd,!1))),window[r]("resize",m.onResize),m.params.nextButton&&(f(m.params.nextButton)[t]("click",m.onClickNext),m.params.a11y&&m.a11y&&f(m.params.nextButton)[t]("keydown",m.a11y.onEnterKey)),m.params.prevButton&&(f(m.params.prevButton)[t]("click",m.onClickPrev),m.params.a11y&&m.a11y&&f(m.params.prevButton)[t]("keydown",m.a11y.onEnterKey)),m.params.pagination&&m.params.paginationClickable&&f(m.paginationContainer)[t]("click","."+m.params.bulletClass,m.onClickIndex),(m.params.preventClicks||m.params.preventClicksPropagation)&&s[r]("click",m.preventClicks,!0)},m.attachEvents=function(){m.initEvents()},m.detachEvents=function(){m.initEvents(!0)},m.allowClick=!0,m.preventClicks=function(e){m.allowClick||(m.params.preventClicks&&e.preventDefault(),m.params.preventClicksPropagation&&(e.stopPropagation(),e.stopImmediatePropagation()))},m.onClickNext=function(e){e.preventDefault(),m.slideNext()},m.onClickPrev=function(e){e.preventDefault(),m.slidePrev()},m.onClickIndex=function(e){e.preventDefault();var a=f(this).index()*m.params.slidesPerGroup;m.params.loop&&(a+=m.loopedSlides),m.slideTo(a)},m.updateClickedSlide=function(e){var a=s(e,"."+m.params.slideClass);if(!a)return m.clickedSlide=void 0,void(m.clickedIndex=void 0);if(m.clickedSlide=a,m.clickedIndex=f(a).index(),m.params.slideToClickedSlide&&void 0!==m.clickedIndex&&m.clickedIndex!==m.activeIndex){var t,r=m.clickedIndex;if(m.params.loop)if(t=f(m.clickedSlide).attr("data-swiper-slide-index"),r>m.slides.length-m.params.slidesPerView)m.fixLoop(),r=m.wrapper.children("."+m.params.slideClass+'[data-swiper-slide-index="'+t+'"]').eq(0).index(),setTimeout(function(){m.slideTo(r)},0);else if(r<m.params.slidesPerView-1){m.fixLoop();var i=m.wrapper.children("."+m.params.slideClass+'[data-swiper-slide-index="'+t+'"]');r=i.eq(i.length-1).index(),setTimeout(function(){m.slideTo(r)},0)}else m.slideTo(r);else m.slideTo(r)}};var v,g,w,x,y,b,T,S,C,M="input, select, textarea, button",P=Date.now(),z=[];m.animating=!1,m.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var I,E;if(m.onTouchStart=function(e){if(e.originalEvent&&(e=e.originalEvent),I="touchstart"===e.type,I||!("which"in e)||3!==e.which){if(m.params.noSwiping&&s(e,"."+m.params.noSwipingClass))return void(m.allowClick=!0);if(!m.params.swipeHandler||s(e,m.params.swipeHandler)){if(v=!0,g=!1,x=void 0,E=void 0,m.touches.startX=m.touches.currentX="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,m.touches.startY=m.touches.currentY="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,w=Date.now(),m.allowClick=!0,m.updateContainerSize(),m.swipeDirection=void 0,m.params.threshold>0&&(T=!1),"touchstart"!==e.type){var a=!0;f(e.target).is(M)&&(a=!1),document.activeElement&&f(document.activeElement).is(M)&&document.activeElement.blur(),a&&e.preventDefault()}m.emit("onTouchStart",m,e)}}},m.onTouchMove=function(e){if(e.originalEvent&&(e=e.originalEvent),!(I&&"mousemove"===e.type||e.preventedByNestedSwiper)){if(m.params.onlyExternal)return g=!0,void(m.allowClick=!1);if(I&&document.activeElement&&e.target===document.activeElement&&f(e.target).is(M))return g=!0,void(m.allowClick=!1);if(m.emit("onTouchMove",m,e),!(e.targetTouches&&e.targetTouches.length>1)){if(m.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,m.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,"undefined"==typeof x){var r=180*Math.atan2(Math.abs(m.touches.currentY-m.touches.startY),Math.abs(m.touches.currentX-m.touches.startX))/Math.PI;x=t()?r>m.params.touchAngle:90-r>m.params.touchAngle}if(x&&m.emit("onTouchMoveOpposite",m,e),"undefined"==typeof E&&m.browser.ieTouch&&(m.touches.currentX!==m.touches.startX||m.touches.currentY!==m.touches.startY)&&(E=!0),v){if(x)return void(v=!1);if(E||!m.browser.ieTouch){m.allowClick=!1,m.emit("onSliderMove",m,e),e.preventDefault(),m.params.touchMoveStopPropagation&&!m.params.nested&&e.stopPropagation(),g||(a.loop&&m.fixLoop(),b=m.getWrapperTranslate(),m.setWrapperTransition(0),m.animating&&m.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),m.params.autoplay&&m.autoplaying&&(m.params.autoplayDisableOnInteraction?m.stopAutoplay():m.pauseAutoplay()),C=!1,m.params.grabCursor&&(m.container[0].style.cursor="move",m.container[0].style.cursor="-webkit-grabbing",m.container[0].style.cursor="-moz-grabbin",m.container[0].style.cursor="grabbing")),g=!0;var s=m.touches.diff=t()?m.touches.currentX-m.touches.startX:m.touches.currentY-m.touches.startY;s*=m.params.touchRatio,m.rtl&&(s=-s),m.swipeDirection=s>0?"prev":"next",y=s+b;var i=!0;if(s>0&&y>m.minTranslate()?(i=!1,m.params.resistance&&(y=m.minTranslate()-1+Math.pow(-m.minTranslate()+b+s,m.params.resistanceRatio))):0>s&&y<m.maxTranslate()&&(i=!1,m.params.resistance&&(y=m.maxTranslate()+1-Math.pow(m.maxTranslate()-b-s,m.params.resistanceRatio))),i&&(e.preventedByNestedSwiper=!0),!m.params.allowSwipeToNext&&"next"===m.swipeDirection&&b>y&&(y=b),!m.params.allowSwipeToPrev&&"prev"===m.swipeDirection&&y>b&&(y=b),m.params.followFinger){if(m.params.threshold>0){if(!(Math.abs(s)>m.params.threshold||T))return void(y=b);if(!T)return T=!0,m.touches.startX=m.touches.currentX,m.touches.startY=m.touches.currentY,y=b,void(m.touches.diff=t()?m.touches.currentX-m.touches.startX:m.touches.currentY-m.touches.startY)}(m.params.freeMode||m.params.watchSlidesProgress)&&m.updateActiveIndex(),m.params.freeMode&&(0===z.length&&z.push({position:m.touches[t()?"startX":"startY"],time:w}),z.push({position:m.touches[t()?"currentX":"currentY"],time:(new Date).getTime()})),m.updateProgress(y),m.setWrapperTranslate(y)}}}}}},m.onTouchEnd=function(e){if(e.originalEvent&&(e=e.originalEvent),m.emit("onTouchEnd",m,e),v){m.params.grabCursor&&g&&v&&(m.container[0].style.cursor="move",m.container[0].style.cursor="-webkit-grab",m.container[0].style.cursor="-moz-grab",m.container[0].style.cursor="grab");var a=Date.now(),t=a-w;if(m.allowClick&&(m.updateClickedSlide(e),m.emit("onTap",m,e),300>t&&a-P>300&&(S&&clearTimeout(S),S=setTimeout(function(){m&&(m.params.paginationHide&&m.paginationContainer.length>0&&!f(e.target).hasClass(m.params.bulletClass)&&m.paginationContainer.toggleClass(m.params.paginationHiddenClass),m.emit("onClick",m,e))},300)),300>t&&300>a-P&&(S&&clearTimeout(S),m.emit("onDoubleTap",m,e))),P=Date.now(),setTimeout(function(){m&&m.allowClick&&(m.allowClick=!0)},0),!v||!g||!m.swipeDirection||0===m.touches.diff||y===b)return void(v=g=!1);v=g=!1;var r;if(r=m.params.followFinger?m.rtl?m.translate:-m.translate:-y,m.params.freeMode){if(r<-m.minTranslate())return void m.slideTo(m.activeIndex);if(r>-m.maxTranslate())return void m.slideTo(m.slides.length-1);if(m.params.freeModeMomentum){if(z.length>1){var s=z.pop(),i=z.pop(),n=s.position-i.position,o=s.time-i.time;m.velocity=n/o,m.velocity=m.velocity/2,Math.abs(m.velocity)<.02&&(m.velocity=0),(o>150||(new Date).getTime()-s.time>300)&&(m.velocity=0)}else m.velocity=0;z.length=0;var l=1e3*m.params.freeModeMomentumRatio,p=m.velocity*l,d=m.translate+p;m.rtl&&(d=-d);var u,c=!1,h=20*Math.abs(m.velocity)*m.params.freeModeMomentumBounceRatio;d<m.maxTranslate()&&(m.params.freeModeMomentumBounce?(d+m.maxTranslate()<-h&&(d=m.maxTranslate()-h),u=m.maxTranslate(),c=!0,C=!0):d=m.maxTranslate()),d>m.minTranslate()&&(m.params.freeModeMomentumBounce?(d-m.minTranslate()>h&&(d=m.minTranslate()+h),u=m.minTranslate(),c=!0,C=!0):d=m.minTranslate()),0!==m.velocity&&(l=Math.abs(m.rtl?(-d-m.translate)/m.velocity:(d-m.translate)/m.velocity)),m.params.freeModeMomentumBounce&&c?(m.updateProgress(u),m.setWrapperTransition(l),m.setWrapperTranslate(d),m.onTransitionStart(),m.animating=!0,m.wrapper.transitionEnd(function(){C&&(m.emit("onMomentumBounce",m),m.setWrapperTransition(m.params.speed),m.setWrapperTranslate(u),m.wrapper.transitionEnd(function(){m.onTransitionEnd()}))})):m.velocity?(m.updateProgress(d),m.setWrapperTransition(l),m.setWrapperTranslate(d),m.onTransitionStart(),m.animating||(m.animating=!0,m.wrapper.transitionEnd(function(){m.onTransitionEnd()}))):m.updateProgress(d),m.updateActiveIndex()}return void((!m.params.freeModeMomentum||t>=m.params.longSwipesMs)&&(m.updateProgress(),m.updateActiveIndex()))}var x,T=0,M=m.slidesSizesGrid[0];for(x=0;x<m.slidesGrid.length;x+=m.params.slidesPerGroup)"undefined"!=typeof m.slidesGrid[x+m.params.slidesPerGroup]?r>=m.slidesGrid[x]&&r<m.slidesGrid[x+m.params.slidesPerGroup]&&(T=x,M=m.slidesGrid[x+m.params.slidesPerGroup]-m.slidesGrid[x]):r>=m.slidesGrid[x]&&(T=x,M=m.slidesGrid[m.slidesGrid.length-1]-m.slidesGrid[m.slidesGrid.length-2]);var I=(r-m.slidesGrid[T])/M;if(t>m.params.longSwipesMs){if(!m.params.longSwipes)return void m.slideTo(m.activeIndex);"next"===m.swipeDirection&&m.slideTo(I>=m.params.longSwipesRatio?T+m.params.slidesPerGroup:T),"prev"===m.swipeDirection&&m.slideTo(I>1-m.params.longSwipesRatio?T+m.params.slidesPerGroup:T)}else{if(!m.params.shortSwipes)return void m.slideTo(m.activeIndex);"next"===m.swipeDirection&&m.slideTo(T+m.params.slidesPerGroup),"prev"===m.swipeDirection&&m.slideTo(T)}}},m._slideTo=function(e,a){return m.slideTo(e,a,!0,!0)},m.slideTo=function(e,a,r,s){"undefined"==typeof r&&(r=!0),"undefined"==typeof e&&(e=0),0>e&&(e=0),m.snapIndex=Math.floor(e/m.params.slidesPerGroup),m.snapIndex>=m.snapGrid.length&&(m.snapIndex=m.snapGrid.length-1);var i=-m.snapGrid[m.snapIndex];m.params.autoplay&&m.autoplaying&&(s||!m.params.autoplayDisableOnInteraction?m.pauseAutoplay(a):m.stopAutoplay()),m.updateProgress(i);for(var n=0;n<m.slidesGrid.length;n++)-i>=m.slidesGrid[n]&&(e=n);if("undefined"==typeof a&&(a=m.params.speed),m.previousIndex=m.activeIndex||0,m.activeIndex=e,i===m.translate)return m.updateClasses(),!1;m.onTransitionStart(r);t()?i:0,t()?0:i;return 0===a?(m.setWrapperTransition(0),m.setWrapperTranslate(i),m.onTransitionEnd(r)):(m.setWrapperTransition(a),m.setWrapperTranslate(i),m.animating||(m.animating=!0,m.wrapper.transitionEnd(function(){m.onTransitionEnd(r)}))),m.updateClasses(),!0},m.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),m.lazy&&m.lazy.onTransitionStart(),e&&(m.emit("onTransitionStart",m),m.activeIndex!==m.previousIndex&&m.emit("onSlideChangeStart",m))},m.onTransitionEnd=function(e){m.animating=!1,m.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),m.lazy&&m.lazy.onTransitionEnd(),e&&(m.emit("onTransitionEnd",m),m.activeIndex!==m.previousIndex&&m.emit("onSlideChangeEnd",m)),m.params.hashnav&&m.hashnav&&m.hashnav.setHash()},m.slideNext=function(e,a,t){if(m.params.loop){if(m.animating)return!1;m.fixLoop();{m.container[0].clientLeft}return m.slideTo(m.activeIndex+m.params.slidesPerGroup,a,e,t)}return m.slideTo(m.activeIndex+m.params.slidesPerGroup,a,e,t)},m._slideNext=function(e){return m.slideNext(!0,e,!0)},m.slidePrev=function(e,a,t){if(m.params.loop){if(m.animating)return!1;m.fixLoop();{m.container[0].clientLeft}return m.slideTo(m.activeIndex-1,a,e,t)}return m.slideTo(m.activeIndex-1,a,e,t)},m._slidePrev=function(e){return m.slidePrev(!0,e,!0)},m.slideReset=function(e,a){return m.slideTo(m.activeIndex,a,e)},m.setWrapperTransition=function(e,a){m.wrapper.transition(e),"slide"!==m.params.effect&&m.effects[m.params.effect]&&m.effects[m.params.effect].setTransition(e),m.params.parallax&&m.parallax&&m.parallax.setTransition(e),m.params.scrollbar&&m.scrollbar&&m.scrollbar.setTransition(e),m.params.control&&m.controller&&m.controller.setTransition(e,a),m.emit("onSetTransition",m,e)},m.setWrapperTranslate=function(e,a,r){var s=0,i=0,n=0;t()?s=m.rtl?-e:e:i=e,m.params.virtualTranslate||m.wrapper.transform(m.support.transforms3d?"translate3d("+s+"px, "+i+"px, "+n+"px)":"translate("+s+"px, "+i+"px)"),m.translate=t()?s:i,a&&m.updateActiveIndex(),"slide"!==m.params.effect&&m.effects[m.params.effect]&&m.effects[m.params.effect].setTranslate(m.translate),m.params.parallax&&m.parallax&&m.parallax.setTranslate(m.translate),m.params.scrollbar&&m.scrollbar&&m.scrollbar.setTranslate(m.translate),m.params.control&&m.controller&&m.controller.setTranslate(m.translate,r),m.emit("onSetTranslate",m,m.translate)},m.getTranslate=function(e,a){var t,r,s,i;return"undefined"==typeof a&&(a="x"),m.params.virtualTranslate?m.rtl?-m.translate:m.translate:(s=window.getComputedStyle(e,null),window.WebKitCSSMatrix?i=new WebKitCSSMatrix("none"===s.webkitTransform?"":s.webkitTransform):(i=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),t=i.toString().split(",")),"x"===a&&(r=window.WebKitCSSMatrix?i.m41:parseFloat(16===t.length?t[12]:t[4])),"y"===a&&(r=window.WebKitCSSMatrix?i.m42:parseFloat(16===t.length?t[13]:t[5])),m.rtl&&r&&(r=-r),r||0)},m.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=t()?"x":"y"),m.getTranslate(m.wrapper[0],e)},m.observers=[],m.initObservers=function(){if(m.params.observeParents)for(var e=m.container.parents(),a=0;a<e.length;a++)i(e[a]);i(m.container[0],{childList:!1}),i(m.wrapper[0],{attributes:!1})},m.disconnectObservers=function(){for(var e=0;e<m.observers.length;e++)m.observers[e].disconnect();m.observers=[]},m.createLoop=function(){m.wrapper.children("."+m.params.slideClass+"."+m.params.slideDuplicateClass).remove();
var e=m.wrapper.children("."+m.params.slideClass);m.loopedSlides=parseInt(m.params.loopedSlides||m.params.slidesPerView,10),m.loopedSlides=m.loopedSlides+m.params.loopAdditionalSlides,m.loopedSlides>e.length&&(m.loopedSlides=e.length);var a,t=[],r=[];for(e.each(function(a,s){var i=f(this);a<m.loopedSlides&&r.push(s),a<e.length&&a>=e.length-m.loopedSlides&&t.push(s),i.attr("data-swiper-slide-index",a)}),a=0;a<r.length;a++)m.wrapper.append(f(r[a].cloneNode(!0)).addClass(m.params.slideDuplicateClass));for(a=t.length-1;a>=0;a--)m.wrapper.prepend(f(t[a].cloneNode(!0)).addClass(m.params.slideDuplicateClass))},m.destroyLoop=function(){m.wrapper.children("."+m.params.slideClass+"."+m.params.slideDuplicateClass).remove()},m.fixLoop=function(){var e;m.activeIndex<m.loopedSlides?(e=m.slides.length-3*m.loopedSlides+m.activeIndex,e+=m.loopedSlides,m.slideTo(e,0,!1,!0)):("auto"===m.params.slidesPerView&&m.activeIndex>=2*m.loopedSlides||m.activeIndex>m.slides.length-2*m.params.slidesPerView)&&(e=-m.slides.length+m.activeIndex+m.loopedSlides,e+=m.loopedSlides,m.slideTo(e,0,!1,!0))},m.appendSlide=function(e){if(m.params.loop&&m.destroyLoop(),"object"==typeof e&&e.length)for(var a=0;a<e.length;a++)e[a]&&m.wrapper.append(e[a]);else m.wrapper.append(e);m.params.loop&&m.createLoop(),m.params.observer&&m.support.observer||m.update(!0)},m.prependSlide=function(e){m.params.loop&&m.destroyLoop();var a=m.activeIndex+1;if("object"==typeof e&&e.length){for(var t=0;t<e.length;t++)e[t]&&m.wrapper.prepend(e[t]);a=m.activeIndex+e.length}else m.wrapper.prepend(e);m.params.loop&&m.createLoop(),m.params.observer&&m.support.observer||m.update(!0),m.slideTo(a,0,!1)},m.removeSlide=function(e){m.params.loop&&m.destroyLoop();var a,t=m.activeIndex;if("object"==typeof e&&e.length){for(var r=0;r<e.length;r++)a=e[r],m.slides[a]&&m.slides.eq(a).remove(),t>a&&t--;t=Math.max(t,0)}else a=e,m.slides[a]&&m.slides.eq(a).remove(),t>a&&t--,t=Math.max(t,0);m.params.observer&&m.support.observer||m.update(!0),m.slideTo(t,0,!1)},m.removeAllSlides=function(){for(var e=[],a=0;a<m.slides.length;a++)e.push(a);m.removeSlide(e)},m.effects={fade:{setTranslate:function(){for(var e=0;e<m.slides.length;e++){var a=m.slides.eq(e),r=a[0].swiperSlideOffset,s=-r;m.params.virtualTranslate||(s-=m.translate);var i=0;t()||(i=s,s=0);var n=m.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:n}).transform("translate3d("+s+"px, "+i+"px, 0px)")}},setTransition:function(e){m.slides.transition(e)}},cube:{setTranslate:function(){var e,a=0;m.params.cube.shadow&&(t()?(e=m.wrapper.find(".swiper-cube-shadow"),0===e.length&&(e=f('<div class="swiper-cube-shadow"></div>'),m.wrapper.append(e)),e.css({height:m.width+"px"})):(e=m.container.find(".swiper-cube-shadow"),0===e.length&&(e=f('<div class="swiper-cube-shadow"></div>'),m.container.append(e))));for(var r=0;r<m.slides.length;r++){var s=m.slides.eq(r),i=90*r,n=Math.floor(i/360);m.rtl&&(i=-i,n=Math.floor(-i/360));var o=Math.max(Math.min(s[0].progress,1),-1),l=0,p=0,d=0;r%4===0?(l=4*-n*m.size,d=0):(r-1)%4===0?(l=0,d=4*-n*m.size):(r-2)%4===0?(l=m.size+4*n*m.size,d=m.size):(r-3)%4===0&&(l=-m.size,d=3*m.size+4*m.size*n),m.rtl&&(l=-l),t()||(p=l,l=0);var u="rotateX("+(t()?0:-i)+"deg) rotateY("+(t()?i:0)+"deg) translate3d("+l+"px, "+p+"px, "+d+"px)";if(1>=o&&o>-1&&(a=90*r+90*o,m.rtl&&(a=90*-r-90*o)),s.transform(u),m.params.cube.slideShadows){var c=s.find(t()?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),h=s.find(t()?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===c.length&&(c=f('<div class="swiper-slide-shadow-'+(t()?"left":"top")+'"></div>'),s.append(c)),0===h.length&&(h=f('<div class="swiper-slide-shadow-'+(t()?"right":"bottom")+'"></div>'),s.append(h));{s[0].progress}c.length&&(c[0].style.opacity=-s[0].progress),h.length&&(h[0].style.opacity=s[0].progress)}}if(m.wrapper.css({"-webkit-transform-origin":"50% 50% -"+m.size/2+"px","-moz-transform-origin":"50% 50% -"+m.size/2+"px","-ms-transform-origin":"50% 50% -"+m.size/2+"px","transform-origin":"50% 50% -"+m.size/2+"px"}),m.params.cube.shadow)if(t())e.transform("translate3d(0px, "+(m.width/2+m.params.cube.shadowOffset)+"px, "+-m.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+m.params.cube.shadowScale+")");else{var v=Math.abs(a)-90*Math.floor(Math.abs(a)/90),g=1.5-(Math.sin(2*v*Math.PI/360)/2+Math.cos(2*v*Math.PI/360)/2),w=m.params.cube.shadowScale,x=m.params.cube.shadowScale/g,y=m.params.cube.shadowOffset;e.transform("scale3d("+w+", 1, "+x+") translate3d(0px, "+(m.height/2+y)+"px, "+-m.height/2/x+"px) rotateX(-90deg)")}var b=m.isSafari||m.isUiWebView?-m.size/2:0;m.wrapper.transform("translate3d(0px,0,"+b+"px) rotateX("+(t()?0:a)+"deg) rotateY("+(t()?-a:0)+"deg)")},setTransition:function(e){m.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),m.params.cube.shadow&&!t()&&m.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var e=m.translate,a=t()?-e+m.width/2:-e+m.height/2,r=t()?m.params.coverflow.rotate:-m.params.coverflow.rotate,s=m.params.coverflow.depth,i=0,n=m.slides.length;n>i;i++){var o=m.slides.eq(i),l=m.slidesSizesGrid[i],p=o[0].swiperSlideOffset,d=(a-p-l/2)/l*m.params.coverflow.modifier,u=t()?r*d:0,c=t()?0:r*d,h=-s*Math.abs(d),v=t()?0:m.params.coverflow.stretch*d,g=t()?m.params.coverflow.stretch*d:0;Math.abs(g)<.001&&(g=0),Math.abs(v)<.001&&(v=0),Math.abs(h)<.001&&(h=0),Math.abs(u)<.001&&(u=0),Math.abs(c)<.001&&(c=0);var w="translate3d("+g+"px,"+v+"px,"+h+"px) rotateX("+c+"deg) rotateY("+u+"deg)";if(o.transform(w),o[0].style.zIndex=-Math.abs(Math.round(d))+1,m.params.coverflow.slideShadows){var x=o.find(t()?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),y=o.find(t()?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===x.length&&(x=f('<div class="swiper-slide-shadow-'+(t()?"left":"top")+'"></div>'),o.append(x)),0===y.length&&(y=f('<div class="swiper-slide-shadow-'+(t()?"right":"bottom")+'"></div>'),o.append(y)),x.length&&(x[0].style.opacity=d>0?d:0),y.length&&(y[0].style.opacity=-d>0?-d:0)}}if(m.browser.ie){var b=m.wrapper[0].style;b.perspectiveOrigin=a+"px 50%"}},setTransition:function(e){m.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},m.lazy={initialImageLoaded:!1,loadImageInSlide:function(e){if("undefined"!=typeof e&&0!==m.slides.length){var a=m.slides.eq(e),t=a.find("img.swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");0!==t.length&&t.each(function(){var e=f(this);e.addClass("swiper-lazy-loading");var t=e.attr("data-src");m.loadImage(e[0],t,!1,function(){e.attr("src",t),e.removeAttr("data-src"),e.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"),a.find(".swiper-lazy-preloader, .preloader").remove(),m.emit("onLazyImageReady",m,a[0],e[0])}),m.emit("onLazyImageLoad",m,a[0],e[0])})}},load:function(){if(m.params.watchSlidesVisibility)m.wrapper.children("."+m.params.slideVisibleClass).each(function(){m.lazy.loadImageInSlide(f(this).index())});else if(m.params.slidesPerView>1)for(var e=m.activeIndex;e<m.activeIndex+m.params.slidesPerView;e++)m.slides[e]&&m.lazy.loadImageInSlide(e);else m.lazy.loadImageInSlide(m.activeIndex);if(m.params.lazyLoadingInPrevNext){var a=m.wrapper.children("."+m.params.slideNextClass);a.length>0&&m.lazy.loadImageInSlide(a.index());var t=m.wrapper.children("."+m.params.slidePrevClass);t.length>0&&m.loadImageInSlide(t.index())}},onTransitionStart:function(){m.params.lazyLoading&&(m.params.lazyLoadingOnTransitionStart||!m.params.lazyLoadingOnTransitionStart&&!m.lazy.initialImageLoaded)&&(m.lazy.initialImageLoaded=!0,m.lazy.load())},onTransitionEnd:function(){m.params.lazyLoading&&!m.params.lazyLoadingOnTransitionStart&&m.lazy.load()}},m.scrollbar={set:function(){if(m.params.scrollbar){var e=m.scrollbar;e.track=f(m.params.scrollbar),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=f('<div class="swiper-scrollbar-drag"></div>'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.trackSize=t()?e.track[0].offsetWidth:e.track[0].offsetHeight,e.divider=m.size/m.virtualSize,e.moveDivider=e.divider*(e.trackSize/m.size),e.dragSize=e.trackSize*e.divider,t()?e.drag[0].style.width=e.dragSize+"px":e.drag[0].style.height=e.dragSize+"px",e.track[0].style.display=e.divider>=1?"none":"",m.params.scrollbarHide&&(e.track[0].style.opacity=0)}},setTranslate:function(){if(m.params.scrollbar){var e,a=m.scrollbar,r=(m.translate||0,a.dragSize);e=(a.trackSize-a.dragSize)*m.progress,m.rtl&&t()?(e=-e,e>0?(r=a.dragSize-e,e=0):-e+a.dragSize>a.trackSize&&(r=a.trackSize+e)):0>e?(r=a.dragSize+e,e=0):e+a.dragSize>a.trackSize&&(r=a.trackSize-e),t()?(a.drag.transform(m.support.transforms3d?"translate3d("+e+"px, 0, 0)":"translateX("+e+"px)"),a.drag[0].style.width=r+"px"):(a.drag.transform(m.support.transforms3d?"translate3d(0px, "+e+"px, 0)":"translateY("+e+"px)"),a.drag[0].style.height=r+"px"),m.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){m.params.scrollbar&&m.scrollbar.drag.transition(e)}},m.controller={setTranslate:function(e,a){var t,r,s=m.params.control;if(m.isArray(s))for(var i=0;i<s.length;i++)s[i]!==a&&s[i]instanceof Swiper&&(e=s[i].rtl&&"horizontal"===s[i].params.direction?-m.translate:m.translate,t=(s[i].maxTranslate()-s[i].minTranslate())/(m.maxTranslate()-m.minTranslate()),r=(e-m.minTranslate())*t+s[i].minTranslate(),m.params.controlInverse&&(r=s[i].maxTranslate()-r),s[i].updateProgress(r),s[i].setWrapperTranslate(r,!1,m),s[i].updateActiveIndex());else s instanceof Swiper&&a!==s&&(e=s.rtl&&"horizontal"===s.params.direction?-m.translate:m.translate,t=(s.maxTranslate()-s.minTranslate())/(m.maxTranslate()-m.minTranslate()),r=(e-m.minTranslate())*t+s.minTranslate(),m.params.controlInverse&&(r=s.maxTranslate()-r),s.updateProgress(r),s.setWrapperTranslate(r,!1,m),s.updateActiveIndex())},setTransition:function(e,a){var t=m.params.control;if(m.isArray(t))for(var r=0;r<t.length;r++)t[r]!==a&&t[r]instanceof Swiper&&t[r].setWrapperTransition(e,m);else t instanceof Swiper&&a!==t&&t.setWrapperTransition(e,m)}},m.hashnav={init:function(){if(m.params.hashnav){m.hashnav.initialized=!0;var e=document.location.hash.replace("#","");if(e)for(var a=0,t=0,r=m.slides.length;r>t;t++){var s=m.slides.eq(t),i=s.attr("data-hash");if(i===e&&!s.hasClass(m.params.slideDuplicateClass)){var n=s.index();m.slideTo(n,a,m.params.runCallbacksOnInit,!0)}}}},setHash:function(){m.hashnav.initialized&&m.params.hashnav&&(document.location.hash=m.slides.eq(m.activeIndex).attr("data-hash")||"")}},m.disableKeyboardControl=function(){f(document).off("keydown",n)},m.enableKeyboardControl=function(){f(document).on("keydown",n)},m._wheelEvent=!1,m._lastWheelScrollTime=(new Date).getTime(),m.params.mousewheelControl){if(void 0!==document.onmousewheel&&(m._wheelEvent="mousewheel"),!m._wheelEvent)try{new WheelEvent("wheel"),m._wheelEvent="wheel"}catch(k){}m._wheelEvent||(m._wheelEvent="DOMMouseScroll")}m.disableMousewheelControl=function(){return m._wheelEvent?(m.container.off(m._wheelEvent,o),!0):!1},m.enableMousewheelControl=function(){return m._wheelEvent?(m.container.on(m._wheelEvent,o),!0):!1},m.parallax={setTranslate:function(){m.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){l(this,m.progress)}),m.slides.each(function(){var e=f(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var a=Math.min(Math.max(e[0].progress,-1),1);l(this,a)})})},setTransition:function(e){"undefined"==typeof e&&(e=m.params.speed),m.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var a=f(this),t=parseInt(a.attr("data-swiper-parallax-duration"),10)||e;0===e&&(t=0),a.transition(t)})}},m._plugins=[];for(var D in m.plugins){var L=m.plugins[D](m,m.params[D]);L&&m._plugins.push(L)}return m.callPlugins=function(e){for(var a=0;a<m._plugins.length;a++)e in m._plugins[a]&&m._plugins[a][e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},m.emitterEventListeners={},m.emit=function(e){m.params[e]&&m.params[e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var a;if(m.emitterEventListeners[e])for(a=0;a<m.emitterEventListeners[e].length;a++)m.emitterEventListeners[e][a](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);m.callPlugins&&m.callPlugins(e,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},m.on=function(e,a){return e=p(p),m.emitterEventListeners[e]||(m.emitterEventListeners[e]=[]),m.emitterEventListeners[e].push(a),m},m.off=function(e,a){var t;if(e=p(p),"undefined"==typeof a)return m.emitterEventListeners[e]=[],m;if(m.emitterEventListeners[e]&&0!==m.emitterEventListeners[e].length){for(t=0;t<m.emitterEventListeners[e].length;t++)m.emitterEventListeners[e][t]===a&&m.emitterEventListeners[e].splice(t,1);return m}},m.once=function(e,a){e=p(p);var t=function(){a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]),m.off(e,t)};return m.on(e,t),m},m.a11y={makeFocusable:function(e){return e[0].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(e){13===e.keyCode&&(f(e.target).is(m.params.nextButton)?(m.onClickNext(e),m.a11y.notify(m.isEnd?m.params.lastSlideMsg:m.params.nextSlideMsg)):f(e.target).is(m.params.prevButton)&&(m.onClickPrev(e),m.a11y.notify(m.isBeginning?m.params.firstSlideMsg:m.params.prevSlideMsg)))},liveRegion:f('<span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>'),notify:function(e){var a=m.a11y.liveRegion;0!==a.length&&(a.html(""),a.html(e))},init:function(){if(m.params.nextButton){var e=f(m.params.nextButton);m.a11y.makeFocusable(e),m.a11y.addRole(e,"button"),m.a11y.addLabel(e,m.params.nextSlideMsg)}if(m.params.prevButton){var a=f(m.params.prevButton);m.a11y.makeFocusable(a),m.a11y.addRole(a,"button"),m.a11y.addLabel(a,m.params.prevSlideMsg)}f(m.container).append(m.a11y.liveRegion)},destroy:function(){m.a11y.liveRegion&&m.a11y.liveRegion.length>0&&m.a11y.liveRegion.remove()}},m.init=function(){m.params.loop&&m.createLoop(),m.updateContainerSize(),m.updateSlidesSize(),m.updatePagination(),m.params.scrollbar&&m.scrollbar&&m.scrollbar.set(),"slide"!==m.params.effect&&m.effects[m.params.effect]&&(m.params.loop||m.updateProgress(),m.effects[m.params.effect].setTranslate()),m.params.loop?m.slideTo(m.params.initialSlide+m.loopedSlides,0,m.params.runCallbacksOnInit):(m.slideTo(m.params.initialSlide,0,m.params.runCallbacksOnInit),0===m.params.initialSlide&&(m.parallax&&m.params.parallax&&m.parallax.setTranslate(),m.lazy&&m.params.lazyLoading&&m.lazy.load())),m.attachEvents(),m.params.observer&&m.support.observer&&m.initObservers(),m.params.preloadImages&&!m.params.lazyLoading&&m.preloadImages(),m.params.autoplay&&m.startAutoplay(),m.params.keyboardControl&&m.enableKeyboardControl&&m.enableKeyboardControl(),m.params.mousewheelControl&&m.enableMousewheelControl&&m.enableMousewheelControl(),m.params.hashnav&&m.hashnav&&m.hashnav.init(),m.params.a11y&&m.a11y&&m.a11y.init(),m.emit("onInit",m)},m.destroy=function(e){m.detachEvents(),m.disconnectObservers(),m.params.keyboardControl&&m.disableKeyboardControl&&m.disableKeyboardControl(),m.params.mousewheelControl&&m.disableMousewheelControl&&m.disableMousewheelControl(),m.params.a11y&&m.a11y&&m.a11y.destroy(),m.emit("onDestroy"),e!==!1&&(m=null)},m.init(),m}},Swiper.prototype={isSafari:function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(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},device:function(){var e=navigator.userAgent,a=e.match(/(Android);?[\s\/]+([\d.]+)?/),t=e.match(/(iPad).*OS\s([\d_]+)/),r=(e.match(/(iPod)(.*OS\s([\d_]+))?/),!t&&e.match(/(iPhone\sOS)\s([\d_]+)/));return{ios:t||r||t,android:a}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var e=document.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createElement("div").style,a="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),t=0;t<a.length;t++)if(a[t]in e)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}()},plugins:{}};for(var a=["jQuery","Zepto","Dom7"],t=0;t<a.length;t++)window[a[t]]&&e(window[a[t]]);var r;r="undefined"==typeof Dom7?window.Dom7||window.Zepto||window.jQuery:Dom7,r&&("transitionEnd"in r.fn||(r.fn.transitionEnd=function(e){function a(i){if(i.target===this)for(e.call(this,i),t=0;t<r.length;t++)s.off(r[t],a)}var t,r=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],s=this;if(e)for(t=0;t<r.length;t++)s.on(r[t],a);return this}),"transform"in r.fn||(r.fn.transform=function(e){for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransform=t.MsTransform=t.msTransform=t.MozTransform=t.OTransform=t.transform=e}return this}),"transition"in r.fn||(r.fn.transition=function(e){"string"!=typeof e&&(e+="ms");for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=e}return this}))}(),"undefined"!=typeof module?module.exports=Swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return Swiper});
//# sourceMappingURL=maps/swiper.jquery.min.js.map
/**
* Swiper 3.0.4
* Swiper 3.0.5
* Most modern mobile touch slider and framework with hardware accelerated transitions

@@ -13,6 +13,6 @@ *

*
* Released on: March 6, 2015
* Released on: March 21, 2015
*/
!function(){"use strict";function e(e){e.fn.swiper=function(a){var t;return e(this).each(function(){var e=new Swiper(this,a);t||(t=e)}),t}}window.Swiper=function(e,t){function r(){return"horizontal"===h.params.direction}function s(){h.autoplayTimeoutId=setTimeout(function(){h.params.loop?(h.fixLoop(),h._slideNext()):h.isEnd?t.autoplayStopOnLast?h.stopAutoplay():h._slideTo(0):h._slideNext()},h.params.autoplay)}function i(e,a){var t=f(e.target);if(!t.is(a))if("string"==typeof a)t=t.parents(a);else if(a.nodeType){var r;return t.parents().each(function(e,t){t===a&&(r=a)}),r?a:void 0}return 0===t.length?void 0:t[0]}function n(e,a){a=a||{};var t=window.MutationObserver||window.WebkitMutationObserver,r=new t(function(e){e.forEach(function(e){h.onResize(),h.params.onObserverUpdate&&h.params.onObserverUpdate(h,e)})});r.observe(e,{attributes:"undefined"==typeof a.attributes?!0:a.attributes,childList:"undefined"==typeof a.childList?!0:a.childList,characterData:"undefined"==typeof a.characterData?!0:a.characterData}),h.observers.push(r)}function o(e){e.originalEvent&&(e=e.originalEvent);var a=e.keyCode||e.charCode;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(h.container.parents(".swiper-slide").length>0&&0===h.container.parents(".swiper-slide-active").length)return;for(var s={left:window.pageXOffset,top:window.pageYOffset},i=window.innerWidth,n=window.innerHeight,o=h.container.offset(),l=[[o.left,o.top],[o.left+h.width,o.top],[o.left,o.top+h.height],[o.left+h.width,o.top+h.height]],d=0;d<l.length;d++){var p=l[d];p[0]>=s.left&&p[0]<=s.left+i&&p[1]>=s.top&&p[1]<=s.top+n&&(t=!0)}if(!t)return}r()?((37===a||39===a)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),39===a&&h.slideNext(),37===a&&h.slidePrev()):((38===a||40===a)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),40===a&&h.slideNext(),38===a&&h.slidePrev())}}function l(e){e.originalEvent&&(e=e.originalEvent);var a=h._wheelEvent,t=0;if(e.detail)t=-e.detail;else if("mousewheel"===a)if(h.params.mousewheelForceToAxis)if(r()){if(!(Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)))return;t=e.wheelDeltaX}else{if(!(Math.abs(e.wheelDeltaY)>Math.abs(e.wheelDeltaX)))return;t=e.wheelDeltaY}else t=e.wheelDelta;else if("DOMMouseScroll"===a)t=-e.detail;else if("wheel"===a)if(h.params.mousewheelForceToAxis)if(r()){if(!(Math.abs(e.deltaX)>Math.abs(e.deltaY)))return;t=-e.deltaX}else{if(!(Math.abs(e.deltaY)>Math.abs(e.deltaX)))return;t=-e.deltaY}else t=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-e.deltaX:-e.deltaY;if(h.params.freeMode){var s=h.getWrapperTranslate()+t;if(s>0&&(s=0),s<h.maxTranslate()&&(s=h.maxTranslate()),h.setWrapperTransition(0),h.setWrapperTranslate(s),h.updateProgress(),h.updateActiveIndex(),0===s||s===h.maxTranslate())return}else(new Date).getTime()-h._lastWheelScrollTime>60&&(0>t?h.slideNext():h.slidePrev()),h._lastWheelScrollTime=(new Date).getTime();return h.params.autoplay&&h.stopAutoplay(),e.preventDefault?e.preventDefault():e.returnValue=!1,!1}function d(e,a){e=f(e);var t,s,i,n,o;t=e.attr("data-swiper-parallax"),s=e.attr("data-swiper-parallax-x"),i=e.attr("data-swiper-parallax-y"),s||i||!t?(s=s?s:"0",i=i?i:"0"):r()?(s=t,i="0"):(i=t,s="0"),s=s.indexOf("%")>=0?parseInt(s,10)*a+"%":s*a+"px",i=i.indexOf("%")>=0?parseInt(i,10)*a+"%":i*a+"px",n=s,o=i,e.transform("translate3d("+n+", "+o+",0px)")}var p={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,keyboardControl:!1,mousewheelControl:!1,mousewheelForceToAxis:!1,hashnav:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,pagination:null,paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationHiddenClass:"swiper-pagination-hidden",observer:!1,observeParents:!1,runCallbacksOnInit:!0};t=t||{};for(var u in p)if("undefined"==typeof t[u])t[u]=p[u];else if("object"==typeof t[u])for(var c in p[u])"undefined"==typeof t[u][c]&&(t[u][c]=p[u][c]);var h=this;h.params=t;var f;if(f="undefined"==typeof a?window.Dom7||window.Zepto||window.jQuery:a,f&&(h.container=f(e),0!==h.container.length)){if(h.container.length>1)return void h.container.each(function(){new Swiper(this,t)});h.container[0].swiper=h,h.container.data("swiper",h),h.container.addClass("swiper-container-"+h.params.direction),h.params.freeMode&&h.container.addClass("swiper-container-free-mode"),(h.params.parallax||h.params.watchSlidesVisibility)&&(h.params.watchSlidesProgress=!0),["cube","coverflow"].indexOf(h.params.effect)>=0&&(h.support.transforms3d?(h.params.watchSlidesProgress=!0,h.container.addClass("swiper-container-3d")):h.params.effect="slide"),"slide"!==h.params.effect&&h.container.addClass("swiper-container-"+h.params.effect),"cube"===h.params.effect&&(h.params.resistanceRatio=0,h.params.slidesPerView=1,h.params.slidesPerColumn=1,h.params.slidesPerGroup=1,h.params.centeredSlides=!1,h.params.spaceBetween=0),"fade"===h.params.effect&&(h.params.watchSlidesProgress=!0,h.params.spaceBetween=0),h.params.grabCursor&&h.support.touch&&(h.params.grabCursor=!1),h.wrapper=h.container.children("."+h.params.wrapperClass),h.params.pagination&&(h.paginationContainer=f(h.params.pagination),h.params.paginationClickable&&h.paginationContainer.addClass("swiper-pagination-clickable")),h.rtl=r()&&("rtl"===h.container[0].dir.toLowerCase()||"rtl"===h.container.css("direction")),h.rtl&&h.container.addClass("swiper-container-rtl"),h.rtl&&(h.wrongRTL="-webkit-box"===h.wrapper.css("display")),h.translate=0,h.progress=0,h.velocity=0,h.lockSwipeToNext=function(){h.params.allowSwipeToNext=!1},h.lockSwipeToPrev=function(){h.params.allowSwipeToPrev=!1},h.lockSwipes=function(){h.params.allowSwipeToNext=h.params.allowSwipeToPrev=!1},h.unlockSwipeToNext=function(){h.params.allowSwipeToNext=!0},h.unlockSwipeToPrev=function(){h.params.allowSwipeToPrev=!0},h.unlockSwipes=function(){h.params.allowSwipeToNext=h.params.allowSwipeToPrev=!0},h.params.slidesPerColumn>1&&h.container.addClass("swiper-container-multirow"),h.params.grabCursor&&(h.container[0].style.cursor="move",h.container[0].style.cursor="-webkit-grab",h.container[0].style.cursor="-moz-grab",h.container[0].style.cursor="grab"),h.imagesToLoad=[],h.imagesLoaded=0,h.loadImage=function(e,a,t,r){function s(){r&&r()}var i;e.complete&&t?s():a?(i=new Image,i.onload=s,i.onerror=s,i.src=a):s()},h.preloadImages=function(){function e(){"undefined"!=typeof h&&null!==h&&(void 0!==h.imagesLoaded&&h.imagesLoaded++,h.imagesLoaded===h.imagesToLoad.length&&(h.params.updateOnImagesReady&&h.update(),h.params.onImagesReady&&h.params.onImagesReady(h)))}h.imagesToLoad=h.container.find("img");for(var a=0;a<h.imagesToLoad.length;a++)h.loadImage(h.imagesToLoad[a],h.imagesToLoad[a].currentSrc||h.imagesToLoad[a].getAttribute("src"),!0,e)},h.autoplayTimeoutId=void 0,h.autoplaying=!1,h.autoplayPaused=!1,h.startAutoplay=function(){return"undefined"!=typeof h.autoplayTimeoutId?!1:h.params.autoplay?h.autoplaying?!1:(h.autoplaying=!0,h.params.onAutoplayStart&&h.params.onAutoplayStart(h),void s()):!1},h.stopAutoplay=function(){h.autoplayTimeoutId&&(h.autoplayTimeoutId&&clearTimeout(h.autoplayTimeoutId),h.autoplaying=!1,h.autoplayTimeoutId=void 0,h.params.onAutoplayStop&&h.params.onAutoplayStop(h))},h.pauseAutoplay=function(e){h.autoplayPaused||(h.autoplayTimeoutId&&clearTimeout(h.autoplayTimeoutId),h.autoplayPaused=!0,0===e?(h.autoplayPaused=!1,s()):h.wrapper.transitionEnd(function(){h.autoplayPaused=!1,h.autoplaying?s():h.stopAutoplay()}))},h.minTranslate=function(){return-h.snapGrid[0]},h.maxTranslate=function(){return-h.snapGrid[h.snapGrid.length-1]},h.updateContainerSize=function(){h.width=h.container[0].clientWidth,h.height=h.container[0].clientHeight,h.size=r()?h.width:h.height},h.updateSlidesSize=function(){h.slides=h.wrapper.children("."+h.params.slideClass),h.snapGrid=[],h.slidesGrid=[],h.slidesSizesGrid=[];var e,a=h.params.spaceBetween,t=0,s=0,i=0;"string"==typeof a&&a.indexOf("%")>=0&&(a=parseFloat(a.replace("%",""))/100*h.size),h.virtualWidth=-a,h.slides.css(h.rtl?{marginLeft:"",marginTop:""}:{marginRight:"",marginBottom:""});var n;h.params.slidesPerColumn>1&&(n=Math.floor(h.slides.length/h.params.slidesPerColumn)===h.slides.length/h.params.slidesPerColumn?h.slides.length:Math.ceil(h.slides.length/h.params.slidesPerColumn)*h.params.slidesPerColumn);var o;for(e=0;e<h.slides.length;e++){o=0;var l=h.slides.eq(e);if(h.params.slidesPerColumn>1){var d,p,u,c,f=h.params.slidesPerColumn;"column"===h.params.slidesPerColumnFill?(p=Math.floor(e/f),u=e-p*f,d=p+u*n/f,l.css({"-webkit-box-ordinal-group":d,"-moz-box-ordinal-group":d,"-ms-flex-order":d,"-webkit-order":d,order:d})):(c=n/f,u=Math.floor(e/c),p=e-u*c),l.css({"margin-top":0!==u&&h.params.spaceBetween&&h.params.spaceBetween+"px"}).attr("data-swiper-column",p).attr("data-swiper-row",u)}"none"!==l.css("display")&&("auto"===h.params.slidesPerView?o=r()?l.outerWidth(!0):l.outerHeight(!0):(o=(h.size-(h.params.slidesPerView-1)*a)/h.params.slidesPerView,r()?h.slides[e].style.width=o+"px":h.slides[e].style.height=o+"px"),h.slides[e].swiperSlideSize=o,h.slidesSizesGrid.push(o),h.params.centeredSlides?(t=t+o/2+s/2+a,0===e&&(t=t-h.size/2-a),Math.abs(t)<.001&&(t=0),i%h.params.slidesPerGroup===0&&h.snapGrid.push(t),h.slidesGrid.push(t)):(i%h.params.slidesPerGroup===0&&h.snapGrid.push(t),h.slidesGrid.push(t),t=t+o+a),h.virtualWidth+=o+a,s=o,i++)}h.virtualWidth=Math.max(h.virtualWidth,h.size);var m;if(h.rtl&&h.wrongRTL&&("slide"===h.params.effect||"coverflow"===h.params.effect)&&h.wrapper.css({width:h.virtualWidth+h.params.spaceBetween+"px"}),h.params.slidesPerColumn>1&&(h.virtualWidth=(o+h.params.spaceBetween)*n,h.virtualWidth=Math.ceil(h.virtualWidth/h.params.slidesPerColumn)-h.params.spaceBetween,h.wrapper.css({width:h.virtualWidth+h.params.spaceBetween+"px"}),h.params.centeredSlides)){for(m=[],e=0;e<h.snapGrid.length;e++)h.snapGrid[e]<h.virtualWidth+h.snapGrid[0]&&m.push(h.snapGrid[e]);h.snapGrid=m}if(!h.params.centeredSlides){for(m=[],e=0;e<h.snapGrid.length;e++)h.snapGrid[e]<=h.virtualWidth-h.size&&m.push(h.snapGrid[e]);h.snapGrid=m,Math.floor(h.virtualWidth-h.size)>Math.floor(h.snapGrid[h.snapGrid.length-1])&&h.snapGrid.push(h.virtualWidth-h.size)}0===h.snapGrid.length&&(h.snapGrid=[0]),0!==h.params.spaceBetween&&h.slides.css(r()?h.rtl?{marginLeft:a+"px"}:{marginRight:a+"px"}:{marginBottom:a+"px"}),h.params.watchSlidesProgress&&h.updateSlidesOffset()},h.updateSlidesOffset=function(){for(var e=0;e<h.slides.length;e++)h.slides[e].swiperSlideOffset=r()?h.slides[e].offsetLeft:h.slides[e].offsetTop},h.updateSlidesProgress=function(e){if("undefined"==typeof e&&(e=h.translate||0),0!==h.slides.length){"undefined"==typeof h.slides[0].swiperSlideOffset&&h.updateSlidesOffset();var a=h.params.centeredSlides?-e+h.size/2:-e;h.rtl&&(a=h.params.centeredSlides?e-h.size/2:e);{h.container[0].getBoundingClientRect(),r()?"left":"top",r()?"right":"bottom"}h.slides.removeClass(h.params.slideVisibleClass);for(var t=0;t<h.slides.length;t++){var s=h.slides[t],i=h.params.centeredSlides===!0?s.swiperSlideSize/2:0,n=(a-s.swiperSlideOffset-i)/(s.swiperSlideSize+h.params.spaceBetween);if(h.params.watchSlidesVisibility){var o=-(a-s.swiperSlideOffset-i),l=o+h.slidesSizesGrid[t],d=o>=0&&o<h.size||l>0&&l<=h.size||0>=o&&l>=h.size;d&&h.slides.eq(t).addClass(h.params.slideVisibleClass)}s.progress=h.rtl?-n:n}}},h.updateProgress=function(e){"undefined"==typeof e&&(e=h.translate||0);var a=h.maxTranslate()-h.minTranslate();0===a?(h.progress=0,h.isBeginning=h.isEnd=!0):(h.progress=(e-h.minTranslate())/a,h.isBeginning=h.progress<=0,h.isEnd=h.progress>=1),h.isBeginning&&h.params.onReachBeginning&&h.params.onReachBeginning(h),h.isEnd&&h.params.onReachEnd&&h.params.onReachEnd(h),h.params.watchSlidesProgress&&h.updateSlidesProgress(e),h.params.onProgress&&h.params.onProgress(h,h.progress)},h.updateActiveIndex=function(){var e,a,t,r=h.rtl?h.translate:-h.translate;for(a=0;a<h.slidesGrid.length;a++)"undefined"!=typeof h.slidesGrid[a+1]?r>=h.slidesGrid[a]&&r<h.slidesGrid[a+1]-(h.slidesGrid[a+1]-h.slidesGrid[a])/2?e=a:r>=h.slidesGrid[a]&&r<h.slidesGrid[a+1]&&(e=a+1):r>=h.slidesGrid[a]&&(e=a);(0>e||"undefined"==typeof e)&&(e=0),t=Math.floor(e/h.params.slidesPerGroup),t>=h.snapGrid.length&&(t=h.snapGrid.length-1),e!==h.activeIndex&&(h.snapIndex=t,h.previousIndex=h.activeIndex,h.activeIndex=e,h.updateClasses())},h.updateClasses=function(){h.slides.removeClass(h.params.slideActiveClass+" "+h.params.slideNextClass+" "+h.params.slidePrevClass);var e=h.slides.eq(h.activeIndex);if(e.addClass(h.params.slideActiveClass),e.next("."+h.params.slideClass).addClass(h.params.slideNextClass),e.prev("."+h.params.slideClass).addClass(h.params.slidePrevClass),h.bullets&&h.bullets.length>0){h.bullets.removeClass(h.params.bulletActiveClass);var a;h.params.loop?(a=h.activeIndex-h.loopedSlides,a>h.slides.length-1-2*h.loopedSlides&&(a-=h.slides.length-2*h.loopedSlides)):a="undefined"!=typeof h.snapIndex?h.snapIndex:h.activeIndex||0,h.bullets.eq(a).addClass(h.params.bulletActiveClass)}h.params.loop||(h.params.prevButton&&(h.isBeginning?f(h.params.prevButton).addClass(h.params.buttonDisabledClass):f(h.params.prevButton).removeClass(h.params.buttonDisabledClass)),h.params.nextButton&&(h.isEnd?f(h.params.nextButton).addClass(h.params.buttonDisabledClass):f(h.params.nextButton).removeClass(h.params.buttonDisabledClass)))},h.updatePagination=function(){if(h.params.pagination&&h.paginationContainer&&h.paginationContainer.length>0){for(var e="",a=h.params.loop?h.slides.length-2*h.loopedSlides:h.snapGrid.length,t=0;a>t;t++)e+=h.params.paginationBulletRender?h.params.paginationBulletRender(t,h.params.bulletClass):'<span class="'+h.params.bulletClass+'"></span>';h.paginationContainer.html(e),h.bullets=h.paginationContainer.find("."+h.params.bulletClass)}},h.update=function(e){function a(){r=Math.min(Math.max(h.translate,h.maxTranslate()),h.minTranslate()),h.setWrapperTranslate(r),h.updateActiveIndex(),h.updateClasses()}if(h.updateContainerSize(),h.updateSlidesSize(),h.updateProgress(),h.updatePagination(),h.updateClasses(),h.params.scrollbar&&h.scrollbar&&h.scrollbar.set(),e){var t,r;h.params.freeMode?a():(t="auto"===h.params.slidesPerView&&h.isEnd&&!h.params.centeredSlides?h.slideTo(h.slides.length-1,0,!1,!0):h.slideTo(h.activeIndex,0,!1,!0),t||a())}},h.onResize=function(){if(h.updateContainerSize(),h.updateSlidesSize(),h.updateProgress(),("auto"===h.params.slidesPerView||h.params.freeMode)&&h.updatePagination(),h.params.scrollbar&&h.scrollbar&&h.scrollbar.set(),h.params.freeMode){var e=Math.min(Math.max(h.translate,h.maxTranslate()),h.minTranslate());h.setWrapperTranslate(e),h.updateActiveIndex(),h.updateClasses()}else h.updateClasses(),"auto"===h.params.slidesPerView&&h.isEnd&&!h.params.centeredSlides?h.slideTo(h.slides.length-1,0,!1,!0):h.slideTo(h.activeIndex,0,!1,!0)};var m=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?m=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(m=["MSPointerDown","MSPointerMove","MSPointerUp"]),h.touchEvents={start:h.support.touch||!h.params.simulateTouch?"touchstart":m[0],move:h.support.touch||!h.params.simulateTouch?"touchmove":m[1],end:h.support.touch||!h.params.simulateTouch?"touchend":m[2]},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===h.params.touchEventsTarget?h.container:h.wrapper).addClass("swiper-wp8-"+h.params.direction),h.events=function(e){var a=e?"off":"on",r=e?"removeEventListener":"addEventListener",s="container"===h.params.touchEventsTarget?h.container[0]:h.wrapper[0],i=h.support.touch?s:document,n=h.params.nested?!0:!1;h.browser.ie?(s[r](h.touchEvents.start,h.onTouchStart,!1),i[r](h.touchEvents.move,h.onTouchMove,n),i[r](h.touchEvents.end,h.onTouchEnd,!1)):(h.support.touch&&(s[r](h.touchEvents.start,h.onTouchStart,!1),s[r](h.touchEvents.move,h.onTouchMove,n),s[r](h.touchEvents.end,h.onTouchEnd,!1)),!t.simulateTouch||h.device.ios||h.device.android||(s[r]("mousedown",h.onTouchStart,!1),i[r]("mousemove",h.onTouchMove,n),i[r]("mouseup",h.onTouchEnd,!1))),window[r]("resize",h.onResize),h.params.nextButton&&f(h.params.nextButton)[a]("click",h.onClickNext),h.params.prevButton&&f(h.params.prevButton)[a]("click",h.onClickPrev),h.params.pagination&&h.params.paginationClickable&&f(h.paginationContainer)[a]("click","."+h.params.bulletClass,h.onClickIndex),(h.params.preventClicks||h.params.preventClicksPropagation)&&s[r]("click",h.preventClicks,!0)},h.attachEvents=function(){h.events()},h.detachEvents=function(){h.events(!0)},h.allowClick=!0,h.preventClicks=function(e){h.allowClick||(h.params.preventClicks&&e.preventDefault(),h.params.preventClicksPropagation&&(e.stopPropagation(),e.stopImmediatePropagation()))},h.onClickNext=function(e){e.preventDefault(),h.slideNext()},h.onClickPrev=function(e){e.preventDefault(),h.slidePrev()},h.onClickIndex=function(e){e.preventDefault();var a=f(this).index()*h.params.slidesPerGroup;h.params.loop&&(a+=h.loopedSlides),h.slideTo(a)},h.updateClickedSlide=function(e){var a=i(e,"."+h.params.slideClass);if(!a)return h.clickedSlide=void 0,void(h.clickedIndex=void 0);if(h.clickedSlide=a,h.clickedIndex=f(a).index(),h.params.slideToClickedSlide&&void 0!==h.clickedIndex&&h.clickedIndex!==h.activeIndex){var t,r=h.clickedIndex;if(h.params.loop)if(t=f(h.clickedSlide).attr("data-swiper-slide-index"),r>h.slides.length-h.params.slidesPerView)h.fixLoop(),r=h.wrapper.children("."+h.params.slideClass+'[data-swiper-slide-index="'+t+'"]').eq(0).index(),setTimeout(function(){h.slideTo(r)},0);else if(r<h.params.slidesPerView-1){h.fixLoop();var s=h.wrapper.children("."+h.params.slideClass+'[data-swiper-slide-index="'+t+'"]');r=s.eq(s.length-1).index(),setTimeout(function(){h.slideTo(r)},0)}else h.slideTo(r);else h.slideTo(r)}};var g,v,w,T,b,x,y,S,C,M="input, select, textarea, button",E=Date.now(),P=[];h.animating=!1,h.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var z;if(h.onTouchStart=function(e){if(e.originalEvent&&(e=e.originalEvent),z="touchstart"===e.type,z||!("which"in e)||3!==e.which){if(h.params.noSwiping&&i(e,"."+h.params.noSwipingClass))return void(h.allowClick=!0);if(!h.params.swipeHandler||i(e,h.params.swipeHandler)){if(g=!0,v=!1,T=void 0,h.touches.startX=h.touches.currentX="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,h.touches.startY=h.touches.currentY="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,w=Date.now(),h.allowClick=!0,h.updateContainerSize(),h.swipeDirection=void 0,h.params.threshold>0&&(y=!1),"touchstart"!==e.type){var a=!0;f(e.target).is(M)&&(a=!1),document.activeElement&&f(document.activeElement).is(M)&&document.activeElement.blur(),a&&e.preventDefault()}h.params.onTouchStart&&h.params.onTouchStart(h,e)}}},h.onTouchMove=function(e){if(e.originalEvent&&(e=e.originalEvent),!(z&&"mousemove"===e.type||e.preventedByNestedSwiper)){if(h.params.onlyExternal)return v=!0,void(h.allowClick=!1);if(z&&document.activeElement&&e.target===document.activeElement&&f(e.target).is(M))return v=!0,void(h.allowClick=!1);if(h.params.onTouchMove&&h.params.onTouchMove(h,e),h.allowClick=!1,!(e.targetTouches&&e.targetTouches.length>1)){if(h.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,h.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,"undefined"==typeof T){var a=180*Math.atan2(Math.abs(h.touches.currentY-h.touches.startY),Math.abs(h.touches.currentX-h.touches.startX))/Math.PI;T=r()?a>h.params.touchAngle:90-a>h.params.touchAngle}if(T&&h.params.onTouchMoveOpposite&&h.params.onTouchMoveOpposite(h,e),g){if(T)return void(g=!1);h.params.onSliderMove&&h.params.onSliderMove(h,e),e.preventDefault(),h.params.touchMoveStopPropagation&&!h.params.nested&&e.stopPropagation(),v||(t.loop&&h.fixLoop(),x="cube"===h.params.effect?(h.rtl?-h.translate:h.translate)||0:h.getWrapperTranslate(),h.setWrapperTransition(0),h.animating&&h.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),h.params.autoplay&&h.autoplaying&&(h.params.autoplayDisableOnInteraction?h.stopAutoplay():h.pauseAutoplay()),C=!1,h.params.grabCursor&&(h.container[0].style.cursor="move",h.container[0].style.cursor="-webkit-grabbing",h.container[0].style.cursor="-moz-grabbin",h.container[0].style.cursor="grabbing")),v=!0;var s=h.touches.diff=r()?h.touches.currentX-h.touches.startX:h.touches.currentY-h.touches.startY;s*=h.params.touchRatio,h.rtl&&(s=-s),h.swipeDirection=s>0?"prev":"next",b=s+x;var i=!0;if(s>0&&b>h.minTranslate()?(i=!1,h.params.resistance&&(b=h.minTranslate()-1+Math.pow(-h.minTranslate()+x+s,h.params.resistanceRatio))):0>s&&b<h.maxTranslate()&&(i=!1,h.params.resistance&&(b=h.maxTranslate()+1-Math.pow(h.maxTranslate()-x-s,h.params.resistanceRatio))),i&&(e.preventedByNestedSwiper=!0),!h.params.allowSwipeToNext&&"next"===h.swipeDirection&&x>b&&(b=x),!h.params.allowSwipeToPrev&&"prev"===h.swipeDirection&&b>x&&(b=x),h.params.followFinger){if(h.params.threshold>0){if(!(Math.abs(s)>h.params.threshold||y))return void(b=x);if(!y)return y=!0,h.touches.startX=h.touches.currentX,h.touches.startY=h.touches.currentY,b=x,void(h.touches.diff=r()?h.touches.currentX-h.touches.startX:h.touches.currentY-h.touches.startY)}(h.params.freeMode||h.params.watchSlidesProgress)&&h.updateActiveIndex(),h.params.freeMode&&(0===P.length&&P.push({position:h.touches[r()?"startX":"startY"],time:w}),P.push({position:h.touches[r()?"currentX":"currentY"],time:(new Date).getTime()})),h.updateProgress(b),h.setWrapperTranslate(b)}}}}},h.onTouchEnd=function(e){if(e.originalEvent&&(e=e.originalEvent),h.params.onTouchEnd&&h.params.onTouchEnd(h,e),g){h.params.grabCursor&&v&&g&&(h.container[0].style.cursor="move",h.container[0].style.cursor="-webkit-grab",h.container[0].style.cursor="-moz-grab",h.container[0].style.cursor="grab");var a=Date.now(),t=a-w;if(h.allowClick&&(h.updateClickedSlide(e),h.params.onTap&&h.params.onTap(h,e),300>t&&a-E>300&&(S&&clearTimeout(S),S=setTimeout(function(){h&&(h.params.paginationHide&&h.paginationContainer.length>0&&!f(e.target).hasClass(h.params.bulletClass)&&h.paginationContainer.toggleClass(h.params.paginationHiddenClass),h.params.onClick&&h.params.onClick(h,e))},300)),300>t&&300>a-E&&(S&&clearTimeout(S),h.params.onDoubleTap&&h.params.onDoubleTap(h,e))),E=Date.now(),setTimeout(function(){h&&h.allowClick&&(h.allowClick=!0)},0),!g||!v||!h.swipeDirection||0===h.touches.diff||b===x)return void(g=v=!1);g=v=!1;var r;if(r=h.params.followFinger?h.rtl?h.translate:-h.translate:-b,h.params.freeMode){if(r<-h.minTranslate())return void h.slideTo(h.activeIndex);if(r>-h.maxTranslate())return void h.slideTo(h.slides.length-1);if(h.params.freeModeMomentum){if(P.length>1){var s=P.pop(),i=P.pop(),n=s.position-i.position,o=s.time-i.time;h.velocity=n/o,h.velocity=h.velocity/2,Math.abs(h.velocity)<.02&&(h.velocity=0),(o>150||(new Date).getTime()-s.time>300)&&(h.velocity=0)}else h.velocity=0;P.length=0;var l=1e3*h.params.freeModeMomentumRatio,d=h.velocity*l,p=h.translate+d;h.rtl&&(p=-p);var u,c=!1,m=20*Math.abs(h.velocity)*h.params.freeModeMomentumBounceRatio;p<h.maxTranslate()&&(h.params.freeModeMomentumBounce?(p+h.maxTranslate()<-m&&(p=h.maxTranslate()-m),u=h.maxTranslate(),c=!0,C=!0):p=h.maxTranslate()),p>h.minTranslate()&&(h.params.freeModeMomentumBounce?(p-h.minTranslate()>m&&(p=h.minTranslate()+m),u=h.minTranslate(),c=!0,C=!0):p=h.minTranslate()),0!==h.velocity&&(l=Math.abs(h.rtl?(-p-h.translate)/h.velocity:(p-h.translate)/h.velocity)),h.params.freeModeMomentumBounce&&c?(h.updateProgress(u),h.setWrapperTransition(l),h.setWrapperTranslate(p),h.onTransitionStart(),h.animating=!0,h.wrapper.transitionEnd(function(){C&&(h.params.onMomentumBounce&&h.params.onMomentumBounce(h),h.setWrapperTransition(h.params.speed),h.setWrapperTranslate(u),h.wrapper.transitionEnd(function(){h.onTransitionEnd()}))})):h.velocity?(h.updateProgress(p),h.setWrapperTransition(l),h.setWrapperTranslate(p),h.onTransitionStart(),h.animating||(h.animating=!0,h.wrapper.transitionEnd(function(){h.onTransitionEnd()}))):h.updateProgress(p),h.updateActiveIndex()}return void((!h.params.freeModeMomentum||t>=h.params.longSwipesMs)&&(h.updateProgress(),h.updateActiveIndex()))}var T,y=0,M=h.slidesSizesGrid[0];for(T=0;T<h.slidesGrid.length;T+=h.params.slidesPerGroup)"undefined"!=typeof h.slidesGrid[T+h.params.slidesPerGroup]?r>=h.slidesGrid[T]&&r<h.slidesGrid[T+h.params.slidesPerGroup]&&(y=T,M=h.slidesGrid[T+h.params.slidesPerGroup]-h.slidesGrid[T]):r>=h.slidesGrid[T]&&(y=T,M=h.slidesGrid[h.slidesGrid.length-1]-h.slidesGrid[h.slidesGrid.length-2]);var z=(r-h.slidesGrid[y])/M;if(t>h.params.longSwipesMs){if(!h.params.longSwipes)return void h.slideTo(h.activeIndex);"next"===h.swipeDirection&&h.slideTo(z>=h.params.longSwipesRatio?y+h.params.slidesPerGroup:y),"prev"===h.swipeDirection&&h.slideTo(z>1-h.params.longSwipesRatio?y+h.params.slidesPerGroup:y)}else{if(!h.params.shortSwipes)return void h.slideTo(h.activeIndex);"next"===h.swipeDirection&&h.slideTo(y+h.params.slidesPerGroup),"prev"===h.swipeDirection&&h.slideTo(y)}}},h._slideTo=function(e,a){return h.slideTo(e,a,!0,!0)},h.slideTo=function(e,a,t,s){"undefined"==typeof t&&(t=!0),"undefined"==typeof e&&(e=0),0>e&&(e=0),h.snapIndex=Math.floor(e/h.params.slidesPerGroup),h.snapIndex>=h.snapGrid.length&&(h.snapIndex=h.snapGrid.length-1);var i=-h.snapGrid[h.snapIndex];h.params.autoplay&&h.autoplaying&&(s||!h.params.autoplayDisableOnInteraction?h.pauseAutoplay(a):h.stopAutoplay()),h.updateProgress(i);for(var n=0;n<h.slidesGrid.length;n++)-i>=h.slidesGrid[n]&&(e=n);if("undefined"==typeof a&&(a=h.params.speed),h.previousIndex=h.activeIndex||0,h.activeIndex=e,i===h.translate)return h.updateClasses(),!1;h.onTransitionStart(t);r()?i:0,r()?0:i;return 0===a?(h.setWrapperTransition(0),h.setWrapperTranslate(i),h.onTransitionEnd(t)):(h.setWrapperTransition(a),h.setWrapperTranslate(i),h.animating||(h.animating=!0,h.wrapper.transitionEnd(function(){h.onTransitionEnd(t)}))),h.updateClasses(),!0},h.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),h.lazy&&h.lazy.onTransitionStart(),e&&(h.params.onTransitionStart&&h.params.onTransitionStart(h),h.params.onSlideChangeStart&&h.activeIndex!==h.previousIndex&&h.params.onSlideChangeStart(h))},h.onTransitionEnd=function(e){h.animating=!1,h.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),h.lazy&&h.lazy.onTransitionEnd(),e&&(h.params.onTransitionEnd&&h.params.onTransitionEnd(h),h.params.onSlideChangeEnd&&h.activeIndex!==h.previousIndex&&h.params.onSlideChangeEnd(h))},h.slideNext=function(e,a,t){if(h.params.loop){if(h.animating)return!1;h.fixLoop();{h.container[0].clientLeft}return h.slideTo(h.activeIndex+h.params.slidesPerGroup,a,e,t)}return h.slideTo(h.activeIndex+h.params.slidesPerGroup,a,e,t)},h._slideNext=function(e){return h.slideNext(!0,e,!0)},h.slidePrev=function(e,a,t){if(h.params.loop){if(h.animating)return!1;h.fixLoop();{h.container[0].clientLeft}return h.slideTo(h.activeIndex-1,a,e,t)}return h.slideTo(h.activeIndex-1,a,e,t)},h._slidePrev=function(e){return h.slidePrev(!0,e,!0)},h.slideReset=function(e,a){return h.slideTo(h.activeIndex,a,e)},h.setWrapperTransition=function(e,a){h.wrapper.transition(e),h.params.onSetTransition&&h.params.onSetTransition(h,e),"slide"!==h.params.effect&&h.effects[h.params.effect]&&h.effects[h.params.effect].setTransition(e),h.params.parallax&&h.parallax&&h.parallax.setTransition(e),h.params.scrollbar&&h.scrollbar&&h.scrollbar.setTransition(e),h.params.control&&h.controller&&h.controller.setTransition(e,a)},h.setWrapperTranslate=function(e,a,t){var s=0,i=0,n=0;r()?s=h.rtl?-e:e:i=e,h.wrapper.transform(h.support.transforms3d?"translate3d("+s+"px, "+i+"px, "+n+"px)":"translate("+s+"px, "+i+"px)"),h.translate=r()?s:i,a&&h.updateActiveIndex(),"slide"!==h.params.effect&&h.effects[h.params.effect]&&h.effects[h.params.effect].setTranslate(h.translate),h.params.parallax&&h.parallax&&h.parallax.setTranslate(h.translate),h.params.scrollbar&&h.scrollbar&&h.scrollbar.setTranslate(h.translate),h.params.control&&h.controller&&h.controller.setTranslate(h.translate,t),h.params.hashnav&&h.hashnav&&h.hashnav.setHash(),h.params.onSetTranslate&&h.params.onSetTranslate(h,h.translate)},h.getTranslate=function(e,a){var t,r,s,i;return"undefined"==typeof a&&(a="x"),s=window.getComputedStyle(e,null),window.WebKitCSSMatrix?i=new WebKitCSSMatrix("none"===s.webkitTransform?"":s.webkitTransform):(i=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),t=i.toString().split(",")),"x"===a&&(r=window.WebKitCSSMatrix?i.m41:parseFloat(16===t.length?t[12]:t[4])),"y"===a&&(r=window.WebKitCSSMatrix?i.m42:parseFloat(16===t.length?t[13]:t[5])),h.rtl&&r&&(r=-r),r||0},h.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=r()?"x":"y"),h.getTranslate(h.wrapper[0],e)},h.observers=[],h.initObservers=function(){if(h.params.observeParents)for(var e=h.container.parents(),a=0;a<e.length;a++)n(e[a]);n(h.container[0],{childList:!1}),n(h.wrapper[0],{attributes:!1})},h.disconnectObservers=function(){for(var e=0;e<h.observers.length;e++)h.observers[e].disconnect();h.observers=[]},h.createLoop=function(){h.wrapper.children("."+h.params.slideClass+"."+h.params.slideDuplicateClass).remove();var e=h.wrapper.children("."+h.params.slideClass);h.loopedSlides=parseInt(h.params.loopedSlides||h.params.slidesPerView,10),h.loopedSlides=h.loopedSlides+h.params.loopAdditionalSlides,h.loopedSlides>e.length&&(h.loopedSlides=e.length);var a,t=[],r=[];for(e.each(function(a,s){var i=f(this);a<h.loopedSlides&&r.push(s),a<e.length&&a>=e.length-h.loopedSlides&&t.push(s),i.attr("data-swiper-slide-index",a)}),a=0;a<r.length;a++)h.wrapper.append(f(r[a].cloneNode(!0)).addClass(h.params.slideDuplicateClass));for(a=t.length-1;a>=0;a--)h.wrapper.prepend(f(t[a].cloneNode(!0)).addClass(h.params.slideDuplicateClass))},h.destroyLoop=function(){h.wrapper.children("."+h.params.slideClass+"."+h.params.slideDuplicateClass).remove()},h.fixLoop=function(){var e;h.activeIndex<h.loopedSlides?(e=h.slides.length-3*h.loopedSlides+h.activeIndex,e+=h.loopedSlides,h.slideTo(e,0,!1,!0)):("auto"===h.params.slidesPerView&&h.activeIndex>=2*h.loopedSlides||h.activeIndex>h.slides.length-2*h.params.slidesPerView)&&(e=-h.slides.length+h.activeIndex+h.loopedSlides,e+=h.loopedSlides,h.slideTo(e,0,!1,!0))},h.appendSlide=function(e){if(h.params.loop&&h.destroyLoop(),"object"==typeof e&&e.length)for(var a=0;a<e.length;a++)e[a]&&h.wrapper.append(e[a]);
else h.wrapper.append(e);h.params.loop&&h.createLoop(),h.params.observer&&h.support.observer||h.update(!0)},h.prependSlide=function(e){h.params.loop&&h.destroyLoop();var a=h.activeIndex+1;if("object"==typeof e&&e.length){for(var t=0;t<e.length;t++)e[t]&&h.wrapper.prepend(e[t]);a=h.activeIndex+e.length}else h.wrapper.prepend(e);h.params.loop&&h.createLoop(),h.params.observer&&h.support.observer||h.update(!0),h.slideTo(a,0,!1)},h.removeSlide=function(e){h.params.loop&&h.destroyLoop();var a,t=h.activeIndex;if("object"==typeof e&&e.length){for(var r=0;r<e.length;r++)a=e[r],h.slides[a]&&h.slides.eq(a).remove(),t>a&&t--;t=Math.max(t,0)}else a=e,h.slides[a]&&h.slides.eq(a).remove(),t>a&&t--,t=Math.max(t,0);h.params.observer&&h.support.observer||h.update(!0),h.slideTo(t,0,!1)},h.removeAllSlides=function(){for(var e=[],a=0;a<h.slides.length;a++)e.push(a);h.removeSlide(e)},h.effects={fade:{setTranslate:function(){for(var e=0;e<h.slides.length;e++){var a=h.slides.eq(e),t=a[0].swiperSlideOffset,s=-t-h.translate,i=0;r()||(i=s,s=0);var n=h.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:n}).transform("translate3d("+s+"px, "+i+"px, 0px)")}},setTransition:function(e){h.slides.transition(e)}},cube:{setTranslate:function(){var e,a=0;h.params.cube.shadow&&(r()?(e=h.wrapper.find(".swiper-cube-shadow"),0===e.length&&(e=f('<div class="swiper-cube-shadow"></div>'),h.wrapper.append(e)),e.css({height:h.width+"px"})):(e=h.container.find(".swiper-cube-shadow"),0===e.length&&(e=f('<div class="swiper-cube-shadow"></div>'),h.container.append(e))));for(var t=0;t<h.slides.length;t++){var s=h.slides.eq(t),i=90*t,n=Math.floor(i/360);h.rtl&&(i=-i,n=Math.floor(-i/360));var o=Math.max(Math.min(s[0].progress,1),-1),l=0,d=0,p=0;t%4===0?(l=4*-n*h.size,p=0):(t-1)%4===0?(l=0,p=4*-n*h.size):(t-2)%4===0?(l=h.size+4*n*h.size,p=h.size):(t-3)%4===0&&(l=-h.size,p=3*h.size+4*h.size*n),h.rtl&&(l=-l),r()||(d=l,l=0);var u="rotateX("+(r()?0:-i)+"deg) rotateY("+(r()?i:0)+"deg) translate3d("+l+"px, "+d+"px, "+p+"px)";if(1>=o&&o>-1&&(a=90*t+90*o,h.rtl&&(a=90*-t-90*o)),s.transform(u),h.params.cube.slideShadows){var c=s.find(r()?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),m=s.find(r()?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===c.length&&(c=f('<div class="swiper-slide-shadow-'+(r()?"left":"top")+'"></div>'),s.append(c)),0===m.length&&(m=f('<div class="swiper-slide-shadow-'+(r()?"right":"bottom")+'"></div>'),s.append(m));{s[0].progress}c.length&&(c[0].style.opacity=-s[0].progress),m.length&&(m[0].style.opacity=s[0].progress)}}if(h.wrapper.css({"-webkit-transform-origin":"50% 50% -"+h.size/2+"px","-moz-transform-origin":"50% 50% -"+h.size/2+"px","-ms-transform-origin":"50% 50% -"+h.size/2+"px","transform-origin":"50% 50% -"+h.size/2+"px"}),h.params.cube.shadow)if(r())e.transform("translate3d(0px, "+(h.width/2+h.params.cube.shadowOffset)+"px, "+-h.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+h.params.cube.shadowScale+")");else{var g=Math.abs(a)-90*Math.floor(Math.abs(a)/90),v=1.5-(Math.sin(2*g*Math.PI/360)/2+Math.cos(2*g*Math.PI/360)/2),w=h.params.cube.shadowScale,T=h.params.cube.shadowScale/v,b=h.params.cube.shadowOffset;e.transform("scale3d("+w+", 1, "+T+") translate3d(0px, "+(h.height/2+b)+"px, "+-h.height/2/T+"px) rotateX(-90deg)")}var x=h.isSafari||h.isUiWebView?-h.size/2:0;h.wrapper.transform("translate3d(0px,0,"+x+"px) rotateX("+(r()?0:a)+"deg) rotateY("+(r()?-a:0)+"deg)")},setTransition:function(e){h.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),h.params.cube.shadow&&!r()&&h.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var e=h.translate,a=r()?-e+h.width/2:-e+h.height/2,t=r()?h.params.coverflow.rotate:-h.params.coverflow.rotate,s=h.params.coverflow.depth,i=0,n=h.slides.length;n>i;i++){var o=h.slides.eq(i),l=h.slidesSizesGrid[i],d=o[0].swiperSlideOffset,p=(a-d-l/2)/l*h.params.coverflow.modifier,u=r()?t*p:0,c=r()?0:t*p,m=-s*Math.abs(p),g=r()?0:h.params.coverflow.stretch*p,v=r()?h.params.coverflow.stretch*p:0;Math.abs(v)<.001&&(v=0),Math.abs(g)<.001&&(g=0),Math.abs(m)<.001&&(m=0),Math.abs(u)<.001&&(u=0),Math.abs(c)<.001&&(c=0);var w="translate3d("+v+"px,"+g+"px,"+m+"px) rotateX("+c+"deg) rotateY("+u+"deg)";if(o.transform(w),o[0].style.zIndex=-Math.abs(Math.round(p))+1,h.params.coverflow.slideShadows){var T=o.find(r()?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),b=o.find(r()?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===T.length&&(T=f('<div class="swiper-slide-shadow-'+(r()?"left":"top")+'"></div>'),o.append(T)),0===b.length&&(b=f('<div class="swiper-slide-shadow-'+(r()?"right":"bottom")+'"></div>'),o.append(b)),T.length&&(T[0].style.opacity=p>0?p:0),b.length&&(b[0].style.opacity=-p>0?-p:0)}}if(window.navigator.pointerEnabled||window.navigator.msPointerEnabled){var x=h.wrapper.style;x.perspectiveOrigin=a+"px 50%"}},setTransition:function(e){h.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},h.lazy={initialImageLoaded:!1,loadImageInSlide:function(e){if("undefined"!=typeof e&&0!==h.slides.length){var a=h.slides.eq(e),t=a.find("img.swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");0!==t.length&&t.each(function(){var e=f(this);e.addClass("swiper-lazy-loading");var t=e.attr("data-src");h.loadImage(e[0],t,!1,function(){e.attr("src",t),e.removeAttr("data-src"),e.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"),a.find(".swiper-lazy-preloader, .preloader").remove(),h.params.onLazyImageLoaded&&h.params.onLazyImageLoaded(h,a[0],e[0])}),h.params.onLazyImageLoad&&h.params.onLazyImageLoad(h,a[0],e[0])})}},load:function(){if(h.params.watchSlidesVisibility)h.wrapper.children("."+h.params.slideVisibleClass).each(function(){h.lazy.loadImageInSlide(f(this).index())});else if(h.params.slidesPerView>1)for(var e=h.activeIndex;e<h.activeIndex+h.params.slidesPerView;e++)h.slides[e]&&h.lazy.loadImageInSlide(e);else h.lazy.loadImageInSlide(h.activeIndex);if(h.params.lazyLoadingInPrevNext){var a=h.wrapper.children("."+h.params.slideNextClass);a.length>0&&h.lazy.loadImageInSlide(a.index());var t=h.wrapper.children("."+h.params.slidePrevClass);t.length>0&&h.loadImageInSlide(t.index())}},onTransitionStart:function(){h.params.lazyLoading&&(h.params.lazyLoadingOnTransitionStart||!h.params.lazyLoadingOnTransitionStart&&!h.lazy.initialImageLoaded)&&(h.lazy.initialImageLoaded=!0,h.lazy.load())},onTransitionEnd:function(){h.params.lazyLoading&&!h.params.lazyLoadingOnTransitionStart&&h.lazy.load()}},h.scrollbar={set:function(){if(h.params.scrollbar){var e=h.scrollbar;e.track=f(h.params.scrollbar),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=f('<div class="swiper-scrollbar-drag"></div>'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.trackSize=r()?e.track[0].offsetWidth:e.track[0].offsetHeight,e.divider=h.size/h.virtualWidth,e.moveDivider=e.divider*(e.trackSize/h.size),e.dragSize=e.trackSize*e.divider,r()?e.drag[0].style.width=e.dragSize+"px":e.drag[0].style.height=e.dragSize+"px",e.track[0].style.display=e.divider>=1?"none":"",h.params.scrollbarHide&&(e.track[0].style.opacity=0)}},setTranslate:function(){if(h.params.scrollbar){var e,a=h.scrollbar,t=(h.translate||0,a.dragSize);e=(a.trackSize-a.dragSize)*h.progress,h.rtl&&r()?(e=-e,e>0?(t=a.dragSize-e,e=0):-e+a.dragSize>a.trackSize&&(t=a.trackSize+e)):0>e?(t=a.dragSize+e,e=0):e+a.dragSize>a.trackSize&&(t=a.trackSize-e),r()?(a.drag.transform("translate3d("+e+"px, 0, 0)"),a.drag[0].style.width=t+"px"):(a.drag.transform("translate3d(0px, "+e+"px, 0)"),a.drag[0].style.height=t+"px"),h.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){h.params.scrollbar&&h.scrollbar.drag.transition(e)}},h.controller={setTranslate:function(e,a){var t,r,s=h.params.control;if(h.isArray(s))for(var i=0;i<s.length;i++)s[i]!==a&&s[i]instanceof Swiper&&(e=s[i].rtl&&"horizontal"===s[i].params.direction?-h.translate:h.translate,t=(s[i].maxTranslate()-s[i].minTranslate())/(h.maxTranslate()-h.minTranslate()),r=(e-h.minTranslate())*t+s[i].minTranslate(),h.params.controlInverse&&(r=s[i].maxTranslate()-r),s[i].updateProgress(r),s[i].setWrapperTranslate(r,!1,h),s[i].updateActiveIndex());else s instanceof Swiper&&a!==s&&(e=s.rtl&&"horizontal"===s.params.direction?-h.translate:h.translate,t=(s.maxTranslate()-s.minTranslate())/(h.maxTranslate()-h.minTranslate()),r=(e-h.minTranslate())*t+s.minTranslate(),h.params.controlInverse&&(r=s.maxTranslate()-r),s.updateProgress(r),s.setWrapperTranslate(r,!1,h),s.updateActiveIndex())},setTransition:function(e,a){var t=h.params.control;if(h.isArray(t))for(var r=0;r<t.length;r++)t[r]!==a&&t[r]instanceof Swiper&&t[r].setWrapperTransition(e,h);else t instanceof Swiper&&a!==t&&t.setWrapperTransition(e,h)}},h.hashnav={init:function(){if(h.params.hashnav){h.hashnav.initialized=!0;var e=document.location.hash.replace("#","");if(e)for(var a=0,t=0,r=h.slides.length;r>t;t++){var s=h.slides.eq(t),i=s.attr("data-hash");if(i===e&&!s.hasClass(h.params.slideDuplicateClass)){var n=s.index();h.slideTo(n,a,h.params.runCallbacksOnInit,!0)}}}},setHash:function(){h.hashnav.initialized&&h.params.hashnav&&(document.location.hash=h.slides.eq(h.activeIndex).attr("data-hash")||"")}},h.disableKeyboardControl=function(){f(document).off("keydown",o)},h.enableKeyboardControl=function(){f(document).on("keydown",o)},h._wheelEvent=!1,h._lastWheelScrollTime=(new Date).getTime(),h.params.mousewheelControl){if(void 0!==document.onmousewheel&&(h._wheelEvent="mousewheel"),!h._wheelEvent)try{new WheelEvent("wheel"),h._wheelEvent="wheel"}catch(I){}h._wheelEvent||(h._wheelEvent="DOMMouseScroll")}return h.disableMousewheelControl=function(){return h._wheelEvent?(h.container.off(h._wheelEvent,l),!0):!1},h.enableMousewheelControl=function(){return h._wheelEvent?(h.container.on(h._wheelEvent,l),!0):!1},h.parallax={setTranslate:function(){h.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){d(this,h.progress)}),h.slides.each(function(){var e=f(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var a=Math.min(Math.max(e[0].progress,-1),1);d(this,a)})})},setTransition:function(e){"undefined"==typeof e&&(e=h.params.speed),h.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var a=f(this),t=parseInt(a.attr("data-swiper-parallax-duration"),10)||e;0===e&&(t=0),a.transition(t)})}},h.init=function(){h.params.loop&&h.createLoop(),h.updateContainerSize(),h.updateSlidesSize(),h.updatePagination(),h.params.scrollbar&&h.scrollbar&&h.scrollbar.set(),"slide"!==h.params.effect&&h.effects[h.params.effect]&&(h.params.loop||h.updateProgress(),h.effects[h.params.effect].setTranslate()),h.params.loop?h.slideTo(h.params.initialSlide+h.loopedSlides,0,h.params.runCallbacksOnInit):(h.slideTo(h.params.initialSlide,0,h.params.runCallbacksOnInit),0===h.params.initialSlide&&(h.parallax&&h.params.parallax&&h.parallax.setTranslate(),h.lazy&&h.params.lazyLoading&&h.lazy.load())),h.attachEvents(),h.params.observer&&h.support.observer&&h.initObservers(),h.params.preloadImages&&!h.params.lazyLoading&&h.preloadImages(),h.params.autoplay&&h.startAutoplay(),h.params.keyboardControl&&h.enableKeyboardControl&&h.enableKeyboardControl(),h.params.mousewheelControl&&h.enableMousewheelControl&&h.enableMousewheelControl(),h.params.hashnav&&h.hashnav&&h.hashnav.init(),h.params.onInit&&h.params.onInit(h)},h.destroy=function(e){h.detachEvents(),h.disconnectObservers(),h.params.keyboardControl&&h.disableKeyboardControl&&h.disableKeyboardControl(),h.params.mousewheelControl&&h.disableMousewheelControl&&h.disableMousewheelControl(),h.params.onDestroy&&h.params.onDestroy(),e!==!1&&(h=null)},h.init(),h}},Swiper.prototype={isSafari:function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled},device:function(){var e=navigator.userAgent,a=e.match(/(Android);?[\s\/]+([\d.]+)?/),t=e.match(/(iPad).*OS\s([\d_]+)/),r=(e.match(/(iPod)(.*OS\s([\d_]+))?/),!t&&e.match(/(iPhone\sOS)\s([\d_]+)/));return{ios:t||r||t,android:a}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var e=document.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createElement("div").style,a="WebkitBox msFlexbox MsFlexbox WebkitFlex MozBox flex".split(" "),t=0;t<a.length;t++)if(a[t]in e)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}()}};for(var a=(function(){var e=function(e){var a=this,t=0;for(t=0;t<e.length;t++)a[t]=e[t];return a.length=e.length,this},a=function(a,t){var r=[],s=0;if(a&&!t&&a instanceof e)return a;if(a)if("string"==typeof a){var i,n,o=a.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var l="div";for(0===o.indexOf("<li")&&(l="ul"),0===o.indexOf("<tr")&&(l="tbody"),(0===o.indexOf("<td")||0===o.indexOf("<th"))&&(l="tr"),0===o.indexOf("<tbody")&&(l="table"),0===o.indexOf("<option")&&(l="select"),n=document.createElement(l),n.innerHTML=a,s=0;s<n.childNodes.length;s++)r.push(n.childNodes[s])}else for(i=t||"#"!==a[0]||a.match(/[ .<>:~]/)?(t||document).querySelectorAll(a):[document.getElementById(a.split("#")[1])],s=0;s<i.length;s++)i[s]&&r.push(i[s])}else if(a.nodeType||a===window||a===document)r.push(a);else if(a.length>0&&a[0].nodeType)for(s=0;s<a.length;s++)r.push(a[s]);return new e(r)};return e.prototype={addClass:function(e){if("undefined"==typeof e)return this;for(var a=e.split(" "),t=0;t<a.length;t++)for(var r=0;r<this.length;r++)this[r].classList.add(a[t]);return this},removeClass:function(e){for(var a=e.split(" "),t=0;t<a.length;t++)for(var r=0;r<this.length;r++)this[r].classList.remove(a[t]);return this},hasClass:function(e){return this[0]?this[0].classList.contains(e):!1},toggleClass:function(e){for(var a=e.split(" "),t=0;t<a.length;t++)for(var r=0;r<this.length;r++)this[r].classList.toggle(a[t]);return this},attr:function(e,a){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var t=0;t<this.length;t++)if(2===arguments.length)this[t].setAttribute(e,a);else for(var r in e)this[t][r]=e[r],this[t].setAttribute(r,e[r]);return this},removeAttr:function(e){for(var a=0;a<this.length;a++)this[a].removeAttribute(e)},data:function(e,a){if("undefined"==typeof a){if(this[0]){var t=this[0].getAttribute("data-"+e);return t?t:this[0].dom7ElementDataStorage&&e in this[0].dom7ElementDataStorage?this[0].dom7ElementDataStorage[e]:void 0}return void 0}for(var r=0;r<this.length;r++){var s=this[r];s.dom7ElementDataStorage||(s.dom7ElementDataStorage={}),s.dom7ElementDataStorage[e]=a}return this},transform:function(e){for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransform=t.MsTransform=t.msTransform=t.MozTransform=t.OTransform=t.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=e}return this},on:function(e,t,r,s){function i(e){var s=e.target;if(a(s).is(t))r.call(s,e);else for(var i=a(s).parents(),n=0;n<i.length;n++)a(i[n]).is(t)&&r.call(i[n],e)}var n,o,l=e.split(" ");for(n=0;n<this.length;n++)if("function"==typeof t||t===!1)for("function"==typeof t&&(r=arguments[1],s=arguments[2]||!1),o=0;o<l.length;o++)this[n].addEventListener(l[o],r,s);else for(o=0;o<l.length;o++)this[n].dom7LiveListeners||(this[n].dom7LiveListeners=[]),this[n].dom7LiveListeners.push({listener:r,liveListener:i}),this[n].addEventListener(l[o],i,s);return this},off:function(e,a,t,r){for(var s=e.split(" "),i=0;i<s.length;i++)for(var n=0;n<this.length;n++)if("function"==typeof a||a===!1)"function"==typeof a&&(t=arguments[1],r=arguments[2]||!1),this[n].removeEventListener(s[i],t,r);else if(this[n].dom7LiveListeners)for(var o=0;o<this[n].dom7LiveListeners.length;o++)this[n].dom7LiveListeners[o].listener===t&&this[n].removeEventListener(s[i],this[n].dom7LiveListeners[o].liveListener,r);return this},once:function(e,a,t,r){function s(n){t(n),i.off(e,a,s,r)}var i=this;"function"==typeof a&&(a=!1,t=arguments[1],r=arguments[2]),i.on(e,a,s,r)},trigger:function(e,a){for(var t=0;t<this.length;t++){var r;try{r=new CustomEvent(e,{detail:a,bubbles:!0,cancelable:!0})}catch(s){r=document.createEvent("Event"),r.initEvent(e,!0,!0),r.detail=a}this[t].dispatchEvent(r)}return this},transitionEnd:function(e){function a(i){if(i.target===this)for(e.call(this,i),t=0;t<r.length;t++)s.off(r[t],a)}var t,r=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],s=this;if(e)for(t=0;t<r.length;t++)s.on(r[t],a);return this},width:function(){return this[0]===window?window.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(e){return this.length>0?e?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){return this.length>0?e?this[0].offsetHeight+parseFloat(this.css("margin-top"))+parseFloat(this.css("margin-bottom")):this[0].offsetHeight:null},offset:function(){if(this.length>0){var e=this[0],a=e.getBoundingClientRect(),t=document.body,r=e.clientTop||t.clientTop||0,s=e.clientLeft||t.clientLeft||0,i=window.pageYOffset||e.scrollTop,n=window.pageXOffset||e.scrollLeft;return{top:a.top+i-r,left:a.left+n-s}}return null},css:function(e,a){var t;if(1===arguments.length){if("string"!=typeof e){for(t=0;t<this.length;t++)for(var r in e)this[t].style[r]=e[r];return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(t=0;t<this.length;t++)this[t].style[e]=a;return this}return this},each:function(e){for(var a=0;a<this.length;a++)e.call(this[a],a,this[a]);return this},html:function(e){if("undefined"==typeof e)return this[0]?this[0].innerHTML:void 0;for(var a=0;a<this.length;a++)this[a].innerHTML=e;return this},is:function(t){if(!this[0])return!1;var r,s;if("string"==typeof t){var i=this[0];if(i===document)return t===document;if(i===window)return t===window;if(i.matches)return i.matches(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t);if(i.mozMatchesSelector)return i.mozMatchesSelector(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);for(r=a(t),s=0;s<r.length;s++)if(r[s]===this[0])return!0;return!1}if(t===document)return this[0]===document;if(t===window)return this[0]===window;if(t.nodeType||t instanceof e){for(r=t.nodeType?[t]:t,s=0;s<r.length;s++)if(r[s]===this[0])return!0;return!1}return!1},index:function(){if(this[0]){for(var e=this[0],a=0;null!==(e=e.previousSibling);)1===e.nodeType&&a++;return a}return void 0},eq:function(a){if("undefined"==typeof a)return this;var t,r=this.length;return a>r-1?new e([]):0>a?(t=r+a,new e(0>t?[]:[this[t]])):new e([this[a]])},append:function(a){var t,r;for(t=0;t<this.length;t++)if("string"==typeof a){var s=document.createElement("div");for(s.innerHTML=a;s.firstChild;)this[t].appendChild(s.firstChild)}else if(a instanceof e)for(r=0;r<a.length;r++)this[t].appendChild(a[r]);else this[t].appendChild(a);return this},prepend:function(a){var t,r;for(t=0;t<this.length;t++)if("string"==typeof a){var s=document.createElement("div");for(s.innerHTML=a,r=s.childNodes.length-1;r>=0;r--)this[t].insertBefore(s.childNodes[r],this[t].childNodes[0])}else if(a instanceof e)for(r=0;r<a.length;r++)this[t].insertBefore(a[r],this[t].childNodes[0]);else this[t].insertBefore(a,this[t].childNodes[0]);return this},insertBefore:function(e){for(var t=a(e),r=0;r<this.length;r++)if(1===t.length)t[0].parentNode.insertBefore(this[r],t[0]);else if(t.length>1)for(var s=0;s<t.length;s++)t[s].parentNode.insertBefore(this[r].cloneNode(!0),t[s])},insertAfter:function(e){for(var t=a(e),r=0;r<this.length;r++)if(1===t.length)t[0].parentNode.insertBefore(this[r],t[0].nextSibling);else if(t.length>1)for(var s=0;s<t.length;s++)t[s].parentNode.insertBefore(this[r].cloneNode(!0),t[s].nextSibling)},next:function(t){return new e(this.length>0?t?this[0].nextElementSibling&&a(this[0].nextElementSibling).is(t)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(t){var r=[],s=this[0];if(!s)return new e([]);for(;s.nextElementSibling;){var i=s.nextElementSibling;t?a(i).is(t)&&r.push(i):r.push(i),s=i}return new e(r)},prev:function(t){return new e(this.length>0?t?this[0].previousElementSibling&&a(this[0].previousElementSibling).is(t)?[this[0].previousElementSibling]:[]:this[0].previousElementSibling?[this[0].previousElementSibling]:[]:[])},prevAll:function(t){var r=[],s=this[0];if(!s)return new e([]);for(;s.previousElementSibling;){var i=s.previousElementSibling;t?a(i).is(t)&&r.push(i):r.push(i),s=i}return new e(r)},parent:function(e){for(var t=[],r=0;r<this.length;r++)e?a(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode);return a(a.unique(t))},parents:function(e){for(var t=[],r=0;r<this.length;r++)for(var s=this[r].parentNode;s;)e?a(s).is(e)&&t.push(s):t.push(s),s=s.parentNode;return a(a.unique(t))},find:function(a){for(var t=[],r=0;r<this.length;r++)for(var s=this[r].querySelectorAll(a),i=0;i<s.length;i++)t.push(s[i]);return new e(t)},children:function(t){for(var r=[],s=0;s<this.length;s++)for(var i=this[s].childNodes,n=0;n<i.length;n++)t?1===i[n].nodeType&&a(i[n]).is(t)&&r.push(i[n]):1===i[n].nodeType&&r.push(i[n]);return new e(a.unique(r))},remove:function(){for(var e=0;e<this.length;e++)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){var e,t,r=this;for(e=0;e<arguments.length;e++){var s=a(arguments[e]);for(t=0;t<s.length;t++)r[r.length]=s[t],r.length++}return r}},a.fn=e.prototype,a.unique=function(e){for(var a=[],t=0;t<e.length;t++)-1===a.indexOf(e[t])&&a.push(e[t]);return a},a}()),t=["jQuery","Zepto","Dom7"],r=0;r<t.length;r++)window[t[r]]&&e(window[t[r]]);var s;s="undefined"==typeof a?window.Dom7||window.Zepto||window.jQuery:a,s&&("transitionEnd"in s.fn||(s.fn.transitionEnd=function(e){function a(i){if(i.target===this)for(e.call(this,i),t=0;t<r.length;t++)s.off(r[t],a)}var t,r=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],s=this;if(e)for(t=0;t<r.length;t++)s.on(r[t],a);return this}),"transform"in s.fn||(s.fn.transform=function(e){for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransform=t.MsTransform=t.msTransform=t.MozTransform=t.OTransform=t.transform=e}return this}),"transition"in s.fn||(s.fn.transition=function(e){"string"!=typeof e&&(e+="ms");for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=e}return this}))}(),"undefined"!=typeof module?module.exports=Swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return Swiper});
!function(){"use strict";function e(e){e.fn.swiper=function(t){var a;return e(this).each(function(){var e=new Swiper(this,t);a||(a=e)}),a}}window.Swiper=function(e,a){function r(){return"horizontal"===f.params.direction}function i(){f.autoplayTimeoutId=setTimeout(function(){f.params.loop?(f.fixLoop(),f._slideNext()):f.isEnd?a.autoplayStopOnLast?f.stopAutoplay():f._slideTo(0):f._slideNext()},f.params.autoplay)}function s(e,t){var a=h(e.target);if(!a.is(t))if("string"==typeof t)a=a.parents(t);else if(t.nodeType){var r;return a.parents().each(function(e,a){a===t&&(r=t)}),r?t:void 0}return 0===a.length?void 0:a[0]}function n(e,t){t=t||{};var a=window.MutationObserver||window.WebkitMutationObserver,r=new a(function(e){e.forEach(function(e){f.onResize(),f.emit("onObserverUpdate",f,e)})});r.observe(e,{attributes:"undefined"==typeof t.attributes?!0:t.attributes,childList:"undefined"==typeof t.childList?!0:t.childList,characterData:"undefined"==typeof t.characterData?!0:t.characterData}),f.observers.push(r)}function o(e){e.originalEvent&&(e=e.originalEvent);var t=e.keyCode||e.charCode;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===t||39===t||38===t||40===t){var a=!1;if(f.container.parents(".swiper-slide").length>0&&0===f.container.parents(".swiper-slide-active").length)return;for(var i={left:window.pageXOffset,top:window.pageYOffset},s=window.innerWidth,n=window.innerHeight,o=f.container.offset(),l=[[o.left,o.top],[o.left+f.width,o.top],[o.left,o.top+f.height],[o.left+f.width,o.top+f.height]],d=0;d<l.length;d++){var p=l[d];p[0]>=i.left&&p[0]<=i.left+s&&p[1]>=i.top&&p[1]<=i.top+n&&(a=!0)}if(!a)return}r()?((37===t||39===t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),39===t&&f.slideNext(),37===t&&f.slidePrev()):((38===t||40===t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),40===t&&f.slideNext(),38===t&&f.slidePrev())}}function l(e){e.originalEvent&&(e=e.originalEvent);var t=f._wheelEvent,a=0;if(e.detail)a=-e.detail;else if("mousewheel"===t)if(f.params.mousewheelForceToAxis)if(r()){if(!(Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)))return;a=e.wheelDeltaX}else{if(!(Math.abs(e.wheelDeltaY)>Math.abs(e.wheelDeltaX)))return;a=e.wheelDeltaY}else a=e.wheelDelta;else if("DOMMouseScroll"===t)a=-e.detail;else if("wheel"===t)if(f.params.mousewheelForceToAxis)if(r()){if(!(Math.abs(e.deltaX)>Math.abs(e.deltaY)))return;a=-e.deltaX}else{if(!(Math.abs(e.deltaY)>Math.abs(e.deltaX)))return;a=-e.deltaY}else a=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-e.deltaX:-e.deltaY;if(f.params.freeMode){var i=f.getWrapperTranslate()+a;if(i>0&&(i=0),i<f.maxTranslate()&&(i=f.maxTranslate()),f.setWrapperTransition(0),f.setWrapperTranslate(i),f.updateProgress(),f.updateActiveIndex(),0===i||i===f.maxTranslate())return}else(new Date).getTime()-f._lastWheelScrollTime>60&&(0>a?f.slideNext():f.slidePrev()),f._lastWheelScrollTime=(new Date).getTime();return f.params.autoplay&&f.stopAutoplay(),e.preventDefault?e.preventDefault():e.returnValue=!1,!1}function d(e,t){e=h(e);var a,i,s;a=e.attr("data-swiper-parallax")||"0",i=e.attr("data-swiper-parallax-x"),s=e.attr("data-swiper-parallax-y"),i||s?(i=i||"0",s=s||"0"):r()?(i=a,s="0"):(s=a,i="0"),i=i.indexOf("%")>=0?parseInt(i,10)*t+"%":i*t+"px",s=s.indexOf("%")>=0?parseInt(s,10)*t+"%":s*t+"px",e.transform("translate3d("+i+", "+s+",0px)")}function p(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 Swiper))return new Swiper(e,a);var u={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,keyboardControl:!1,mousewheelControl:!1,mousewheelForceToAxis:!1,hashnav:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,pagination:null,paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationHiddenClass:"swiper-pagination-hidden",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",runCallbacksOnInit:!0};a=a||{};for(var c in u)if("undefined"==typeof a[c])a[c]=u[c];else if("object"==typeof a[c])for(var m in u[c])"undefined"==typeof a[c][m]&&(a[c][m]=u[c][m]);var f=this;f.params=a,f.classNames=[];var h;if(h="undefined"==typeof t?window.Dom7||window.Zepto||window.jQuery:t,h&&(f.$=h,f.container=h(e),0!==f.container.length)){if(f.container.length>1)return void f.container.each(function(){new Swiper(this,a)});f.container[0].swiper=f,f.container.data("swiper",f),f.classNames.push("swiper-container-"+f.params.direction),f.params.freeMode&&f.classNames.push("swiper-container-free-mode"),f.support.flexbox||(f.classNames.push("swiper-container-no-flexbox"),f.params.slidesPerColumn=1),(f.params.parallax||f.params.watchSlidesVisibility)&&(f.params.watchSlidesProgress=!0),["cube","coverflow"].indexOf(f.params.effect)>=0&&(f.support.transforms3d?(f.params.watchSlidesProgress=!0,f.classNames.push("swiper-container-3d")):f.params.effect="slide"),"slide"!==f.params.effect&&f.classNames.push("swiper-container-"+f.params.effect),"cube"===f.params.effect&&(f.params.resistanceRatio=0,f.params.slidesPerView=1,f.params.slidesPerColumn=1,f.params.slidesPerGroup=1,f.params.centeredSlides=!1,f.params.spaceBetween=0,f.params.virtualTranslate=!0,f.params.setWrapperSize=!1),"fade"===f.params.effect&&(f.params.slidesPerView=1,f.params.slidesPerColumn=1,f.params.slidesPerGroup=1,f.params.watchSlidesProgress=!0,f.params.spaceBetween=0,f.params.virtualTranslate=!0),f.params.grabCursor&&f.support.touch&&(f.params.grabCursor=!1),f.wrapper=f.container.children("."+f.params.wrapperClass),f.params.pagination&&(f.paginationContainer=h(f.params.pagination),f.params.paginationClickable&&f.paginationContainer.addClass("swiper-pagination-clickable")),f.rtl=r()&&("rtl"===f.container[0].dir.toLowerCase()||"rtl"===f.container.css("direction")),f.rtl&&f.classNames.push("swiper-container-rtl"),f.rtl&&(f.wrongRTL="-webkit-box"===f.wrapper.css("display")),f.params.slidesPerColumn>1&&f.classNames.push("swiper-container-multirow"),f.device.android&&f.classNames.push("swiper-container-android"),f.container.addClass(f.classNames.join(" ")),f.translate=0,f.progress=0,f.velocity=0,f.lockSwipeToNext=function(){f.params.allowSwipeToNext=!1},f.lockSwipeToPrev=function(){f.params.allowSwipeToPrev=!1},f.lockSwipes=function(){f.params.allowSwipeToNext=f.params.allowSwipeToPrev=!1},f.unlockSwipeToNext=function(){f.params.allowSwipeToNext=!0},f.unlockSwipeToPrev=function(){f.params.allowSwipeToPrev=!0},f.unlockSwipes=function(){f.params.allowSwipeToNext=f.params.allowSwipeToPrev=!0},f.params.grabCursor&&(f.container[0].style.cursor="move",f.container[0].style.cursor="-webkit-grab",f.container[0].style.cursor="-moz-grab",f.container[0].style.cursor="grab"),f.imagesToLoad=[],f.imagesLoaded=0,f.loadImage=function(e,t,a,r){function i(){r&&r()}var s;e.complete&&a?i():t?(s=new Image,s.onload=i,s.onerror=i,s.src=t):i()},f.preloadImages=function(){function e(){"undefined"!=typeof f&&null!==f&&(void 0!==f.imagesLoaded&&f.imagesLoaded++,f.imagesLoaded===f.imagesToLoad.length&&(f.params.updateOnImagesReady&&f.update(),f.emit("onImagesReady",f)))}f.imagesToLoad=f.container.find("img");for(var t=0;t<f.imagesToLoad.length;t++)f.loadImage(f.imagesToLoad[t],f.imagesToLoad[t].currentSrc||f.imagesToLoad[t].getAttribute("src"),!0,e)},f.autoplayTimeoutId=void 0,f.autoplaying=!1,f.autoplayPaused=!1,f.startAutoplay=function(){return"undefined"!=typeof f.autoplayTimeoutId?!1:f.params.autoplay?f.autoplaying?!1:(f.autoplaying=!0,f.emit("onAutoplayStart",f),void i()):!1},f.stopAutoplay=function(){f.autoplayTimeoutId&&(f.autoplayTimeoutId&&clearTimeout(f.autoplayTimeoutId),f.autoplaying=!1,f.autoplayTimeoutId=void 0,f.emit("onAutoplayStop",f))},f.pauseAutoplay=function(e){f.autoplayPaused||(f.autoplayTimeoutId&&clearTimeout(f.autoplayTimeoutId),f.autoplayPaused=!0,0===e?(f.autoplayPaused=!1,i()):f.wrapper.transitionEnd(function(){f.autoplayPaused=!1,f.autoplaying?i():f.stopAutoplay()}))},f.minTranslate=function(){return-f.snapGrid[0]},f.maxTranslate=function(){return-f.snapGrid[f.snapGrid.length-1]},f.updateContainerSize=function(){f.width=f.container[0].clientWidth,f.height=f.container[0].clientHeight,f.size=r()?f.width:f.height},f.updateSlidesSize=function(){f.slides=f.wrapper.children("."+f.params.slideClass),f.snapGrid=[],f.slidesGrid=[],f.slidesSizesGrid=[];var e,t=f.params.spaceBetween,a=0,i=0,s=0;"string"==typeof t&&t.indexOf("%")>=0&&(t=parseFloat(t.replace("%",""))/100*f.size),f.virtualSize=-t,f.slides.css(f.rtl?{marginLeft:"",marginTop:""}:{marginRight:"",marginBottom:""});var n;f.params.slidesPerColumn>1&&(n=Math.floor(f.slides.length/f.params.slidesPerColumn)===f.slides.length/f.params.slidesPerColumn?f.slides.length:Math.ceil(f.slides.length/f.params.slidesPerColumn)*f.params.slidesPerColumn);var o;for(e=0;e<f.slides.length;e++){o=0;var l=f.slides.eq(e);if(f.params.slidesPerColumn>1){var d,p,u,c,m=f.params.slidesPerColumn;"column"===f.params.slidesPerColumnFill?(p=Math.floor(e/m),u=e-p*m,d=p+u*n/m,l.css({"-webkit-box-ordinal-group":d,"-moz-box-ordinal-group":d,"-ms-flex-order":d,"-webkit-order":d,order:d})):(c=n/m,u=Math.floor(e/c),p=e-u*c),l.css({"margin-top":0!==u&&f.params.spaceBetween&&f.params.spaceBetween+"px"}).attr("data-swiper-column",p).attr("data-swiper-row",u)}"none"!==l.css("display")&&("auto"===f.params.slidesPerView?o=r()?l.outerWidth(!0):l.outerHeight(!0):(o=(f.size-(f.params.slidesPerView-1)*t)/f.params.slidesPerView,r()?f.slides[e].style.width=o+"px":f.slides[e].style.height=o+"px"),f.slides[e].swiperSlideSize=o,f.slidesSizesGrid.push(o),f.params.centeredSlides?(a=a+o/2+i/2+t,0===e&&(a=a-f.size/2-t),Math.abs(a)<.001&&(a=0),s%f.params.slidesPerGroup===0&&f.snapGrid.push(a),f.slidesGrid.push(a)):(s%f.params.slidesPerGroup===0&&f.snapGrid.push(a),f.slidesGrid.push(a),a=a+o+t),f.virtualSize+=o+t,i=o,s++)}f.virtualSize=Math.max(f.virtualSize,f.size);var h;if(f.rtl&&f.wrongRTL&&("slide"===f.params.effect||"coverflow"===f.params.effect)&&f.wrapper.css({width:f.virtualSize+f.params.spaceBetween+"px"}),(!f.support.flexbox||f.params.setWrapperSize)&&f.wrapper.css(r()?{width:f.virtualSize+f.params.spaceBetween+"px"}:{height:f.virtualSize+f.params.spaceBetween+"px"}),f.params.slidesPerColumn>1&&(f.virtualSize=(o+f.params.spaceBetween)*n,f.virtualSize=Math.ceil(f.virtualSize/f.params.slidesPerColumn)-f.params.spaceBetween,f.wrapper.css({width:f.virtualSize+f.params.spaceBetween+"px"}),f.params.centeredSlides)){for(h=[],e=0;e<f.snapGrid.length;e++)f.snapGrid[e]<f.virtualSize+f.snapGrid[0]&&h.push(f.snapGrid[e]);f.snapGrid=h}if(!f.params.centeredSlides){for(h=[],e=0;e<f.snapGrid.length;e++)f.snapGrid[e]<=f.virtualSize-f.size&&h.push(f.snapGrid[e]);f.snapGrid=h,Math.floor(f.virtualSize-f.size)>Math.floor(f.snapGrid[f.snapGrid.length-1])&&f.snapGrid.push(f.virtualSize-f.size)}0===f.snapGrid.length&&(f.snapGrid=[0]),0!==f.params.spaceBetween&&f.slides.css(r()?f.rtl?{marginLeft:t+"px"}:{marginRight:t+"px"}:{marginBottom:t+"px"}),f.params.watchSlidesProgress&&f.updateSlidesOffset()},f.updateSlidesOffset=function(){for(var e=0;e<f.slides.length;e++)f.slides[e].swiperSlideOffset=r()?f.slides[e].offsetLeft:f.slides[e].offsetTop},f.updateSlidesProgress=function(e){if("undefined"==typeof e&&(e=f.translate||0),0!==f.slides.length){"undefined"==typeof f.slides[0].swiperSlideOffset&&f.updateSlidesOffset();var t=f.params.centeredSlides?-e+f.size/2:-e;f.rtl&&(t=f.params.centeredSlides?e-f.size/2:e);{f.container[0].getBoundingClientRect(),r()?"left":"top",r()?"right":"bottom"}f.slides.removeClass(f.params.slideVisibleClass);for(var a=0;a<f.slides.length;a++){var i=f.slides[a],s=f.params.centeredSlides===!0?i.swiperSlideSize/2:0,n=(t-i.swiperSlideOffset-s)/(i.swiperSlideSize+f.params.spaceBetween);if(f.params.watchSlidesVisibility){var o=-(t-i.swiperSlideOffset-s),l=o+f.slidesSizesGrid[a],d=o>=0&&o<f.size||l>0&&l<=f.size||0>=o&&l>=f.size;d&&f.slides.eq(a).addClass(f.params.slideVisibleClass)}i.progress=f.rtl?-n:n}}},f.updateProgress=function(e){"undefined"==typeof e&&(e=f.translate||0);var t=f.maxTranslate()-f.minTranslate();0===t?(f.progress=0,f.isBeginning=f.isEnd=!0):(f.progress=(e-f.minTranslate())/t,f.isBeginning=f.progress<=0,f.isEnd=f.progress>=1),f.isBeginning&&f.emit("onReachBeginning",f),f.isEnd&&f.emit("onReachEnd",f),f.params.watchSlidesProgress&&f.updateSlidesProgress(e),f.emit("onProgress",f,f.progress)},f.updateActiveIndex=function(){var e,t,a,r=f.rtl?f.translate:-f.translate;for(t=0;t<f.slidesGrid.length;t++)"undefined"!=typeof f.slidesGrid[t+1]?r>=f.slidesGrid[t]&&r<f.slidesGrid[t+1]-(f.slidesGrid[t+1]-f.slidesGrid[t])/2?e=t:r>=f.slidesGrid[t]&&r<f.slidesGrid[t+1]&&(e=t+1):r>=f.slidesGrid[t]&&(e=t);(0>e||"undefined"==typeof e)&&(e=0),a=Math.floor(e/f.params.slidesPerGroup),a>=f.snapGrid.length&&(a=f.snapGrid.length-1),e!==f.activeIndex&&(f.snapIndex=a,f.previousIndex=f.activeIndex,f.activeIndex=e,f.updateClasses())},f.updateClasses=function(){f.slides.removeClass(f.params.slideActiveClass+" "+f.params.slideNextClass+" "+f.params.slidePrevClass);var e=f.slides.eq(f.activeIndex);if(e.addClass(f.params.slideActiveClass),e.next("."+f.params.slideClass).addClass(f.params.slideNextClass),e.prev("."+f.params.slideClass).addClass(f.params.slidePrevClass),f.bullets&&f.bullets.length>0){f.bullets.removeClass(f.params.bulletActiveClass);var t;f.params.loop?(t=Math.ceil(f.activeIndex-f.loopedSlides)/f.params.slidesPerGroup,t>f.slides.length-1-2*f.loopedSlides&&(t-=f.slides.length-2*f.loopedSlides),t>f.bullets.length-1&&(t-=f.bullets.length)):t="undefined"!=typeof f.snapIndex?f.snapIndex:f.activeIndex||0,f.paginationContainer.length>1?f.bullets.each(function(){h(this).index()===t&&h(this).addClass(f.params.bulletActiveClass)}):f.bullets.eq(t).addClass(f.params.bulletActiveClass)}f.params.loop||(f.params.prevButton&&(f.isBeginning?(h(f.params.prevButton).addClass(f.params.buttonDisabledClass),f.params.a11y&&f.a11y&&f.a11y.disable(h(f.params.prevButton))):(h(f.params.prevButton).removeClass(f.params.buttonDisabledClass),f.params.a11y&&f.a11y&&f.a11y.enable(h(f.params.prevButton)))),f.params.nextButton&&(f.isEnd?(h(f.params.nextButton).addClass(f.params.buttonDisabledClass),f.params.a11y&&f.a11y&&f.a11y.disable(h(f.params.nextButton))):(h(f.params.nextButton).removeClass(f.params.buttonDisabledClass),f.params.a11y&&f.a11y&&f.a11y.enable(h(f.params.nextButton)))))},f.updatePagination=function(){if(f.params.pagination&&f.paginationContainer&&f.paginationContainer.length>0){for(var e="",t=f.params.loop?Math.ceil((f.slides.length-2*f.loopedSlides)/f.params.slidesPerGroup):f.snapGrid.length,a=0;t>a;a++)e+=f.params.paginationBulletRender?f.params.paginationBulletRender(a,f.params.bulletClass):'<span class="'+f.params.bulletClass+'"></span>';f.paginationContainer.html(e),f.bullets=f.paginationContainer.find("."+f.params.bulletClass)}},f.update=function(e){function t(){r=Math.min(Math.max(f.translate,f.maxTranslate()),f.minTranslate()),f.setWrapperTranslate(r),f.updateActiveIndex(),f.updateClasses()}if(f.updateContainerSize(),f.updateSlidesSize(),f.updateProgress(),f.updatePagination(),f.updateClasses(),f.params.scrollbar&&f.scrollbar&&f.scrollbar.set(),e){var a,r;f.params.freeMode?t():(a="auto"===f.params.slidesPerView&&f.isEnd&&!f.params.centeredSlides?f.slideTo(f.slides.length-1,0,!1,!0):f.slideTo(f.activeIndex,0,!1,!0),a||t())}},f.onResize=function(){if(f.updateContainerSize(),f.updateSlidesSize(),f.updateProgress(),("auto"===f.params.slidesPerView||f.params.freeMode)&&f.updatePagination(),f.params.scrollbar&&f.scrollbar&&f.scrollbar.set(),f.params.freeMode){var e=Math.min(Math.max(f.translate,f.maxTranslate()),f.minTranslate());f.setWrapperTranslate(e),f.updateActiveIndex(),f.updateClasses()}else f.updateClasses(),"auto"===f.params.slidesPerView&&f.isEnd&&!f.params.centeredSlides?f.slideTo(f.slides.length-1,0,!1,!0):f.slideTo(f.activeIndex,0,!1,!0)};var g=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?g=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(g=["MSPointerDown","MSPointerMove","MSPointerUp"]),f.touchEvents={start:f.support.touch||!f.params.simulateTouch?"touchstart":g[0],move:f.support.touch||!f.params.simulateTouch?"touchmove":g[1],end:f.support.touch||!f.params.simulateTouch?"touchend":g[2]},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===f.params.touchEventsTarget?f.container:f.wrapper).addClass("swiper-wp8-"+f.params.direction),f.initEvents=function(e){var t=e?"off":"on",r=e?"removeEventListener":"addEventListener",i="container"===f.params.touchEventsTarget?f.container[0]:f.wrapper[0],s=f.support.touch?i:document,n=f.params.nested?!0:!1;f.browser.ie?(i[r](f.touchEvents.start,f.onTouchStart,!1),s[r](f.touchEvents.move,f.onTouchMove,n),s[r](f.touchEvents.end,f.onTouchEnd,!1)):(f.support.touch&&(i[r](f.touchEvents.start,f.onTouchStart,!1),i[r](f.touchEvents.move,f.onTouchMove,n),i[r](f.touchEvents.end,f.onTouchEnd,!1)),!a.simulateTouch||f.device.ios||f.device.android||(i[r]("mousedown",f.onTouchStart,!1),s[r]("mousemove",f.onTouchMove,n),s[r]("mouseup",f.onTouchEnd,!1))),window[r]("resize",f.onResize),f.params.nextButton&&(h(f.params.nextButton)[t]("click",f.onClickNext),f.params.a11y&&f.a11y&&h(f.params.nextButton)[t]("keydown",f.a11y.onEnterKey)),f.params.prevButton&&(h(f.params.prevButton)[t]("click",f.onClickPrev),f.params.a11y&&f.a11y&&h(f.params.prevButton)[t]("keydown",f.a11y.onEnterKey)),f.params.pagination&&f.params.paginationClickable&&h(f.paginationContainer)[t]("click","."+f.params.bulletClass,f.onClickIndex),(f.params.preventClicks||f.params.preventClicksPropagation)&&i[r]("click",f.preventClicks,!0)},f.attachEvents=function(){f.initEvents()},f.detachEvents=function(){f.initEvents(!0)},f.allowClick=!0,f.preventClicks=function(e){f.allowClick||(f.params.preventClicks&&e.preventDefault(),f.params.preventClicksPropagation&&(e.stopPropagation(),e.stopImmediatePropagation()))},f.onClickNext=function(e){e.preventDefault(),f.slideNext()},f.onClickPrev=function(e){e.preventDefault(),f.slidePrev()},f.onClickIndex=function(e){e.preventDefault();var t=h(this).index()*f.params.slidesPerGroup;f.params.loop&&(t+=f.loopedSlides),f.slideTo(t)},f.updateClickedSlide=function(e){var t=s(e,"."+f.params.slideClass);if(!t)return f.clickedSlide=void 0,void(f.clickedIndex=void 0);if(f.clickedSlide=t,f.clickedIndex=h(t).index(),f.params.slideToClickedSlide&&void 0!==f.clickedIndex&&f.clickedIndex!==f.activeIndex){var a,r=f.clickedIndex;if(f.params.loop)if(a=h(f.clickedSlide).attr("data-swiper-slide-index"),r>f.slides.length-f.params.slidesPerView)f.fixLoop(),r=f.wrapper.children("."+f.params.slideClass+'[data-swiper-slide-index="'+a+'"]').eq(0).index(),setTimeout(function(){f.slideTo(r)},0);else if(r<f.params.slidesPerView-1){f.fixLoop();var i=f.wrapper.children("."+f.params.slideClass+'[data-swiper-slide-index="'+a+'"]');r=i.eq(i.length-1).index(),setTimeout(function(){f.slideTo(r)},0)}else f.slideTo(r);else f.slideTo(r)}};var v,w,y,b,x,T,S,C,M,E="input, select, textarea, button",z=Date.now(),P=[];f.animating=!1,f.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var I,k;if(f.onTouchStart=function(e){if(e.originalEvent&&(e=e.originalEvent),I="touchstart"===e.type,I||!("which"in e)||3!==e.which){if(f.params.noSwiping&&s(e,"."+f.params.noSwipingClass))return void(f.allowClick=!0);if(!f.params.swipeHandler||s(e,f.params.swipeHandler)){if(v=!0,w=!1,b=void 0,k=void 0,f.touches.startX=f.touches.currentX="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,f.touches.startY=f.touches.currentY="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY,y=Date.now(),f.allowClick=!0,f.updateContainerSize(),f.swipeDirection=void 0,f.params.threshold>0&&(S=!1),"touchstart"!==e.type){var t=!0;h(e.target).is(E)&&(t=!1),document.activeElement&&h(document.activeElement).is(E)&&document.activeElement.blur(),t&&e.preventDefault()}f.emit("onTouchStart",f,e)}}},f.onTouchMove=function(e){if(e.originalEvent&&(e=e.originalEvent),!(I&&"mousemove"===e.type||e.preventedByNestedSwiper)){if(f.params.onlyExternal)return w=!0,void(f.allowClick=!1);if(I&&document.activeElement&&e.target===document.activeElement&&h(e.target).is(E))return w=!0,void(f.allowClick=!1);if(f.emit("onTouchMove",f,e),!(e.targetTouches&&e.targetTouches.length>1)){if(f.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,f.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,"undefined"==typeof b){var t=180*Math.atan2(Math.abs(f.touches.currentY-f.touches.startY),Math.abs(f.touches.currentX-f.touches.startX))/Math.PI;b=r()?t>f.params.touchAngle:90-t>f.params.touchAngle}if(b&&f.emit("onTouchMoveOpposite",f,e),"undefined"==typeof k&&f.browser.ieTouch&&(f.touches.currentX!==f.touches.startX||f.touches.currentY!==f.touches.startY)&&(k=!0),v){if(b)return void(v=!1);if(k||!f.browser.ieTouch){f.allowClick=!1,f.emit("onSliderMove",f,e),e.preventDefault(),f.params.touchMoveStopPropagation&&!f.params.nested&&e.stopPropagation(),w||(a.loop&&f.fixLoop(),T=f.getWrapperTranslate(),f.setWrapperTransition(0),f.animating&&f.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),f.params.autoplay&&f.autoplaying&&(f.params.autoplayDisableOnInteraction?f.stopAutoplay():f.pauseAutoplay()),M=!1,f.params.grabCursor&&(f.container[0].style.cursor="move",f.container[0].style.cursor="-webkit-grabbing",f.container[0].style.cursor="-moz-grabbin",f.container[0].style.cursor="grabbing")),w=!0;var i=f.touches.diff=r()?f.touches.currentX-f.touches.startX:f.touches.currentY-f.touches.startY;i*=f.params.touchRatio,f.rtl&&(i=-i),f.swipeDirection=i>0?"prev":"next",x=i+T;var s=!0;if(i>0&&x>f.minTranslate()?(s=!1,f.params.resistance&&(x=f.minTranslate()-1+Math.pow(-f.minTranslate()+T+i,f.params.resistanceRatio))):0>i&&x<f.maxTranslate()&&(s=!1,f.params.resistance&&(x=f.maxTranslate()+1-Math.pow(f.maxTranslate()-T-i,f.params.resistanceRatio))),s&&(e.preventedByNestedSwiper=!0),!f.params.allowSwipeToNext&&"next"===f.swipeDirection&&T>x&&(x=T),!f.params.allowSwipeToPrev&&"prev"===f.swipeDirection&&x>T&&(x=T),f.params.followFinger){if(f.params.threshold>0){if(!(Math.abs(i)>f.params.threshold||S))return void(x=T);if(!S)return S=!0,f.touches.startX=f.touches.currentX,f.touches.startY=f.touches.currentY,x=T,void(f.touches.diff=r()?f.touches.currentX-f.touches.startX:f.touches.currentY-f.touches.startY)}(f.params.freeMode||f.params.watchSlidesProgress)&&f.updateActiveIndex(),f.params.freeMode&&(0===P.length&&P.push({position:f.touches[r()?"startX":"startY"],time:y}),P.push({position:f.touches[r()?"currentX":"currentY"],time:(new Date).getTime()})),f.updateProgress(x),f.setWrapperTranslate(x)}}}}}},f.onTouchEnd=function(e){if(e.originalEvent&&(e=e.originalEvent),f.emit("onTouchEnd",f,e),v){f.params.grabCursor&&w&&v&&(f.container[0].style.cursor="move",f.container[0].style.cursor="-webkit-grab",f.container[0].style.cursor="-moz-grab",f.container[0].style.cursor="grab");var t=Date.now(),a=t-y;if(f.allowClick&&(f.updateClickedSlide(e),f.emit("onTap",f,e),300>a&&t-z>300&&(C&&clearTimeout(C),C=setTimeout(function(){f&&(f.params.paginationHide&&f.paginationContainer.length>0&&!h(e.target).hasClass(f.params.bulletClass)&&f.paginationContainer.toggleClass(f.params.paginationHiddenClass),f.emit("onClick",f,e))},300)),300>a&&300>t-z&&(C&&clearTimeout(C),f.emit("onDoubleTap",f,e))),z=Date.now(),setTimeout(function(){f&&f.allowClick&&(f.allowClick=!0)},0),!v||!w||!f.swipeDirection||0===f.touches.diff||x===T)return void(v=w=!1);v=w=!1;var r;if(r=f.params.followFinger?f.rtl?f.translate:-f.translate:-x,f.params.freeMode){if(r<-f.minTranslate())return void f.slideTo(f.activeIndex);if(r>-f.maxTranslate())return void f.slideTo(f.slides.length-1);if(f.params.freeModeMomentum){if(P.length>1){var i=P.pop(),s=P.pop(),n=i.position-s.position,o=i.time-s.time;f.velocity=n/o,f.velocity=f.velocity/2,Math.abs(f.velocity)<.02&&(f.velocity=0),(o>150||(new Date).getTime()-i.time>300)&&(f.velocity=0)}else f.velocity=0;P.length=0;var l=1e3*f.params.freeModeMomentumRatio,d=f.velocity*l,p=f.translate+d;f.rtl&&(p=-p);var u,c=!1,m=20*Math.abs(f.velocity)*f.params.freeModeMomentumBounceRatio;p<f.maxTranslate()&&(f.params.freeModeMomentumBounce?(p+f.maxTranslate()<-m&&(p=f.maxTranslate()-m),u=f.maxTranslate(),c=!0,M=!0):p=f.maxTranslate()),p>f.minTranslate()&&(f.params.freeModeMomentumBounce?(p-f.minTranslate()>m&&(p=f.minTranslate()+m),u=f.minTranslate(),c=!0,M=!0):p=f.minTranslate()),0!==f.velocity&&(l=Math.abs(f.rtl?(-p-f.translate)/f.velocity:(p-f.translate)/f.velocity)),f.params.freeModeMomentumBounce&&c?(f.updateProgress(u),f.setWrapperTransition(l),f.setWrapperTranslate(p),f.onTransitionStart(),f.animating=!0,f.wrapper.transitionEnd(function(){M&&(f.emit("onMomentumBounce",f),f.setWrapperTransition(f.params.speed),f.setWrapperTranslate(u),f.wrapper.transitionEnd(function(){f.onTransitionEnd()}))})):f.velocity?(f.updateProgress(p),f.setWrapperTransition(l),f.setWrapperTranslate(p),f.onTransitionStart(),f.animating||(f.animating=!0,f.wrapper.transitionEnd(function(){f.onTransitionEnd()}))):f.updateProgress(p),f.updateActiveIndex()}return void((!f.params.freeModeMomentum||a>=f.params.longSwipesMs)&&(f.updateProgress(),f.updateActiveIndex()))}var g,b=0,S=f.slidesSizesGrid[0];for(g=0;g<f.slidesGrid.length;g+=f.params.slidesPerGroup)"undefined"!=typeof f.slidesGrid[g+f.params.slidesPerGroup]?r>=f.slidesGrid[g]&&r<f.slidesGrid[g+f.params.slidesPerGroup]&&(b=g,S=f.slidesGrid[g+f.params.slidesPerGroup]-f.slidesGrid[g]):r>=f.slidesGrid[g]&&(b=g,S=f.slidesGrid[f.slidesGrid.length-1]-f.slidesGrid[f.slidesGrid.length-2]);var E=(r-f.slidesGrid[b])/S;if(a>f.params.longSwipesMs){if(!f.params.longSwipes)return void f.slideTo(f.activeIndex);"next"===f.swipeDirection&&f.slideTo(E>=f.params.longSwipesRatio?b+f.params.slidesPerGroup:b),"prev"===f.swipeDirection&&f.slideTo(E>1-f.params.longSwipesRatio?b+f.params.slidesPerGroup:b)}else{if(!f.params.shortSwipes)return void f.slideTo(f.activeIndex);"next"===f.swipeDirection&&f.slideTo(b+f.params.slidesPerGroup),"prev"===f.swipeDirection&&f.slideTo(b)}}},f._slideTo=function(e,t){return f.slideTo(e,t,!0,!0)},f.slideTo=function(e,t,a,i){"undefined"==typeof a&&(a=!0),"undefined"==typeof e&&(e=0),0>e&&(e=0),f.snapIndex=Math.floor(e/f.params.slidesPerGroup),f.snapIndex>=f.snapGrid.length&&(f.snapIndex=f.snapGrid.length-1);var s=-f.snapGrid[f.snapIndex];f.params.autoplay&&f.autoplaying&&(i||!f.params.autoplayDisableOnInteraction?f.pauseAutoplay(t):f.stopAutoplay()),f.updateProgress(s);for(var n=0;n<f.slidesGrid.length;n++)-s>=f.slidesGrid[n]&&(e=n);if("undefined"==typeof t&&(t=f.params.speed),f.previousIndex=f.activeIndex||0,f.activeIndex=e,s===f.translate)return f.updateClasses(),!1;f.onTransitionStart(a);r()?s:0,r()?0:s;return 0===t?(f.setWrapperTransition(0),f.setWrapperTranslate(s),f.onTransitionEnd(a)):(f.setWrapperTransition(t),f.setWrapperTranslate(s),f.animating||(f.animating=!0,f.wrapper.transitionEnd(function(){f.onTransitionEnd(a)}))),f.updateClasses(),!0},f.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),f.lazy&&f.lazy.onTransitionStart(),e&&(f.emit("onTransitionStart",f),f.activeIndex!==f.previousIndex&&f.emit("onSlideChangeStart",f))},f.onTransitionEnd=function(e){f.animating=!1,f.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),f.lazy&&f.lazy.onTransitionEnd(),e&&(f.emit("onTransitionEnd",f),f.activeIndex!==f.previousIndex&&f.emit("onSlideChangeEnd",f)),f.params.hashnav&&f.hashnav&&f.hashnav.setHash()},f.slideNext=function(e,t,a){if(f.params.loop){if(f.animating)return!1;f.fixLoop();{f.container[0].clientLeft}return f.slideTo(f.activeIndex+f.params.slidesPerGroup,t,e,a)}return f.slideTo(f.activeIndex+f.params.slidesPerGroup,t,e,a)},f._slideNext=function(e){return f.slideNext(!0,e,!0)},f.slidePrev=function(e,t,a){if(f.params.loop){if(f.animating)return!1;f.fixLoop();{f.container[0].clientLeft}return f.slideTo(f.activeIndex-1,t,e,a)}return f.slideTo(f.activeIndex-1,t,e,a)},f._slidePrev=function(e){return f.slidePrev(!0,e,!0)},f.slideReset=function(e,t){return f.slideTo(f.activeIndex,t,e)},f.setWrapperTransition=function(e,t){f.wrapper.transition(e),"slide"!==f.params.effect&&f.effects[f.params.effect]&&f.effects[f.params.effect].setTransition(e),f.params.parallax&&f.parallax&&f.parallax.setTransition(e),f.params.scrollbar&&f.scrollbar&&f.scrollbar.setTransition(e),f.params.control&&f.controller&&f.controller.setTransition(e,t),f.emit("onSetTransition",f,e)},f.setWrapperTranslate=function(e,t,a){var i=0,s=0,n=0;r()?i=f.rtl?-e:e:s=e,f.params.virtualTranslate||f.wrapper.transform(f.support.transforms3d?"translate3d("+i+"px, "+s+"px, "+n+"px)":"translate("+i+"px, "+s+"px)"),f.translate=r()?i:s,t&&f.updateActiveIndex(),"slide"!==f.params.effect&&f.effects[f.params.effect]&&f.effects[f.params.effect].setTranslate(f.translate),f.params.parallax&&f.parallax&&f.parallax.setTranslate(f.translate),f.params.scrollbar&&f.scrollbar&&f.scrollbar.setTranslate(f.translate),f.params.control&&f.controller&&f.controller.setTranslate(f.translate,a),f.emit("onSetTranslate",f,f.translate)},f.getTranslate=function(e,t){var a,r,i,s;return"undefined"==typeof t&&(t="x"),f.params.virtualTranslate?f.rtl?-f.translate:f.translate:(i=window.getComputedStyle(e,null),window.WebKitCSSMatrix?s=new WebKitCSSMatrix("none"===i.webkitTransform?"":i.webkitTransform):(s=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=s.toString().split(",")),"x"===t&&(r=window.WebKitCSSMatrix?s.m41:parseFloat(16===a.length?a[12]:a[4])),"y"===t&&(r=window.WebKitCSSMatrix?s.m42:parseFloat(16===a.length?a[13]:a[5])),f.rtl&&r&&(r=-r),r||0)},f.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=r()?"x":"y"),f.getTranslate(f.wrapper[0],e)},f.observers=[],f.initObservers=function(){if(f.params.observeParents)for(var e=f.container.parents(),t=0;t<e.length;t++)n(e[t]);n(f.container[0],{childList:!1}),n(f.wrapper[0],{attributes:!1})},f.disconnectObservers=function(){for(var e=0;e<f.observers.length;e++)f.observers[e].disconnect();f.observers=[]},f.createLoop=function(){f.wrapper.children("."+f.params.slideClass+"."+f.params.slideDuplicateClass).remove();
var e=f.wrapper.children("."+f.params.slideClass);f.loopedSlides=parseInt(f.params.loopedSlides||f.params.slidesPerView,10),f.loopedSlides=f.loopedSlides+f.params.loopAdditionalSlides,f.loopedSlides>e.length&&(f.loopedSlides=e.length);var t,a=[],r=[];for(e.each(function(t,i){var s=h(this);t<f.loopedSlides&&r.push(i),t<e.length&&t>=e.length-f.loopedSlides&&a.push(i),s.attr("data-swiper-slide-index",t)}),t=0;t<r.length;t++)f.wrapper.append(h(r[t].cloneNode(!0)).addClass(f.params.slideDuplicateClass));for(t=a.length-1;t>=0;t--)f.wrapper.prepend(h(a[t].cloneNode(!0)).addClass(f.params.slideDuplicateClass))},f.destroyLoop=function(){f.wrapper.children("."+f.params.slideClass+"."+f.params.slideDuplicateClass).remove()},f.fixLoop=function(){var e;f.activeIndex<f.loopedSlides?(e=f.slides.length-3*f.loopedSlides+f.activeIndex,e+=f.loopedSlides,f.slideTo(e,0,!1,!0)):("auto"===f.params.slidesPerView&&f.activeIndex>=2*f.loopedSlides||f.activeIndex>f.slides.length-2*f.params.slidesPerView)&&(e=-f.slides.length+f.activeIndex+f.loopedSlides,e+=f.loopedSlides,f.slideTo(e,0,!1,!0))},f.appendSlide=function(e){if(f.params.loop&&f.destroyLoop(),"object"==typeof e&&e.length)for(var t=0;t<e.length;t++)e[t]&&f.wrapper.append(e[t]);else f.wrapper.append(e);f.params.loop&&f.createLoop(),f.params.observer&&f.support.observer||f.update(!0)},f.prependSlide=function(e){f.params.loop&&f.destroyLoop();var t=f.activeIndex+1;if("object"==typeof e&&e.length){for(var a=0;a<e.length;a++)e[a]&&f.wrapper.prepend(e[a]);t=f.activeIndex+e.length}else f.wrapper.prepend(e);f.params.loop&&f.createLoop(),f.params.observer&&f.support.observer||f.update(!0),f.slideTo(t,0,!1)},f.removeSlide=function(e){f.params.loop&&f.destroyLoop();var t,a=f.activeIndex;if("object"==typeof e&&e.length){for(var r=0;r<e.length;r++)t=e[r],f.slides[t]&&f.slides.eq(t).remove(),a>t&&a--;a=Math.max(a,0)}else t=e,f.slides[t]&&f.slides.eq(t).remove(),a>t&&a--,a=Math.max(a,0);f.params.observer&&f.support.observer||f.update(!0),f.slideTo(a,0,!1)},f.removeAllSlides=function(){for(var e=[],t=0;t<f.slides.length;t++)e.push(t);f.removeSlide(e)},f.effects={fade:{setTranslate:function(){for(var e=0;e<f.slides.length;e++){var t=f.slides.eq(e),a=t[0].swiperSlideOffset,i=-a;f.params.virtualTranslate||(i-=f.translate);var s=0;r()||(s=i,i=0);var n=f.params.fade.crossFade?Math.max(1-Math.abs(t[0].progress),0):1+Math.min(Math.max(t[0].progress,-1),0);t.css({opacity:n}).transform("translate3d("+i+"px, "+s+"px, 0px)")}},setTransition:function(e){f.slides.transition(e)}},cube:{setTranslate:function(){var e,t=0;f.params.cube.shadow&&(r()?(e=f.wrapper.find(".swiper-cube-shadow"),0===e.length&&(e=h('<div class="swiper-cube-shadow"></div>'),f.wrapper.append(e)),e.css({height:f.width+"px"})):(e=f.container.find(".swiper-cube-shadow"),0===e.length&&(e=h('<div class="swiper-cube-shadow"></div>'),f.container.append(e))));for(var a=0;a<f.slides.length;a++){var i=f.slides.eq(a),s=90*a,n=Math.floor(s/360);f.rtl&&(s=-s,n=Math.floor(-s/360));var o=Math.max(Math.min(i[0].progress,1),-1),l=0,d=0,p=0;a%4===0?(l=4*-n*f.size,p=0):(a-1)%4===0?(l=0,p=4*-n*f.size):(a-2)%4===0?(l=f.size+4*n*f.size,p=f.size):(a-3)%4===0&&(l=-f.size,p=3*f.size+4*f.size*n),f.rtl&&(l=-l),r()||(d=l,l=0);var u="rotateX("+(r()?0:-s)+"deg) rotateY("+(r()?s:0)+"deg) translate3d("+l+"px, "+d+"px, "+p+"px)";if(1>=o&&o>-1&&(t=90*a+90*o,f.rtl&&(t=90*-a-90*o)),i.transform(u),f.params.cube.slideShadows){var c=i.find(r()?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),m=i.find(r()?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===c.length&&(c=h('<div class="swiper-slide-shadow-'+(r()?"left":"top")+'"></div>'),i.append(c)),0===m.length&&(m=h('<div class="swiper-slide-shadow-'+(r()?"right":"bottom")+'"></div>'),i.append(m));{i[0].progress}c.length&&(c[0].style.opacity=-i[0].progress),m.length&&(m[0].style.opacity=i[0].progress)}}if(f.wrapper.css({"-webkit-transform-origin":"50% 50% -"+f.size/2+"px","-moz-transform-origin":"50% 50% -"+f.size/2+"px","-ms-transform-origin":"50% 50% -"+f.size/2+"px","transform-origin":"50% 50% -"+f.size/2+"px"}),f.params.cube.shadow)if(r())e.transform("translate3d(0px, "+(f.width/2+f.params.cube.shadowOffset)+"px, "+-f.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+f.params.cube.shadowScale+")");else{var g=Math.abs(t)-90*Math.floor(Math.abs(t)/90),v=1.5-(Math.sin(2*g*Math.PI/360)/2+Math.cos(2*g*Math.PI/360)/2),w=f.params.cube.shadowScale,y=f.params.cube.shadowScale/v,b=f.params.cube.shadowOffset;e.transform("scale3d("+w+", 1, "+y+") translate3d(0px, "+(f.height/2+b)+"px, "+-f.height/2/y+"px) rotateX(-90deg)")}var x=f.isSafari||f.isUiWebView?-f.size/2:0;f.wrapper.transform("translate3d(0px,0,"+x+"px) rotateX("+(r()?0:t)+"deg) rotateY("+(r()?-t:0)+"deg)")},setTransition:function(e){f.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),f.params.cube.shadow&&!r()&&f.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var e=f.translate,t=r()?-e+f.width/2:-e+f.height/2,a=r()?f.params.coverflow.rotate:-f.params.coverflow.rotate,i=f.params.coverflow.depth,s=0,n=f.slides.length;n>s;s++){var o=f.slides.eq(s),l=f.slidesSizesGrid[s],d=o[0].swiperSlideOffset,p=(t-d-l/2)/l*f.params.coverflow.modifier,u=r()?a*p:0,c=r()?0:a*p,m=-i*Math.abs(p),g=r()?0:f.params.coverflow.stretch*p,v=r()?f.params.coverflow.stretch*p:0;Math.abs(v)<.001&&(v=0),Math.abs(g)<.001&&(g=0),Math.abs(m)<.001&&(m=0),Math.abs(u)<.001&&(u=0),Math.abs(c)<.001&&(c=0);var w="translate3d("+v+"px,"+g+"px,"+m+"px) rotateX("+c+"deg) rotateY("+u+"deg)";if(o.transform(w),o[0].style.zIndex=-Math.abs(Math.round(p))+1,f.params.coverflow.slideShadows){var y=o.find(r()?".swiper-slide-shadow-left":".swiper-slide-shadow-top"),b=o.find(r()?".swiper-slide-shadow-right":".swiper-slide-shadow-bottom");0===y.length&&(y=h('<div class="swiper-slide-shadow-'+(r()?"left":"top")+'"></div>'),o.append(y)),0===b.length&&(b=h('<div class="swiper-slide-shadow-'+(r()?"right":"bottom")+'"></div>'),o.append(b)),y.length&&(y[0].style.opacity=p>0?p:0),b.length&&(b[0].style.opacity=-p>0?-p:0)}}if(f.browser.ie){var x=f.wrapper[0].style;x.perspectiveOrigin=t+"px 50%"}},setTransition:function(e){f.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},f.lazy={initialImageLoaded:!1,loadImageInSlide:function(e){if("undefined"!=typeof e&&0!==f.slides.length){var t=f.slides.eq(e),a=t.find("img.swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");0!==a.length&&a.each(function(){var e=h(this);e.addClass("swiper-lazy-loading");var a=e.attr("data-src");f.loadImage(e[0],a,!1,function(){e.attr("src",a),e.removeAttr("data-src"),e.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"),t.find(".swiper-lazy-preloader, .preloader").remove(),f.emit("onLazyImageReady",f,t[0],e[0])}),f.emit("onLazyImageLoad",f,t[0],e[0])})}},load:function(){if(f.params.watchSlidesVisibility)f.wrapper.children("."+f.params.slideVisibleClass).each(function(){f.lazy.loadImageInSlide(h(this).index())});else if(f.params.slidesPerView>1)for(var e=f.activeIndex;e<f.activeIndex+f.params.slidesPerView;e++)f.slides[e]&&f.lazy.loadImageInSlide(e);else f.lazy.loadImageInSlide(f.activeIndex);if(f.params.lazyLoadingInPrevNext){var t=f.wrapper.children("."+f.params.slideNextClass);t.length>0&&f.lazy.loadImageInSlide(t.index());var a=f.wrapper.children("."+f.params.slidePrevClass);a.length>0&&f.loadImageInSlide(a.index())}},onTransitionStart:function(){f.params.lazyLoading&&(f.params.lazyLoadingOnTransitionStart||!f.params.lazyLoadingOnTransitionStart&&!f.lazy.initialImageLoaded)&&(f.lazy.initialImageLoaded=!0,f.lazy.load())},onTransitionEnd:function(){f.params.lazyLoading&&!f.params.lazyLoadingOnTransitionStart&&f.lazy.load()}},f.scrollbar={set:function(){if(f.params.scrollbar){var e=f.scrollbar;e.track=h(f.params.scrollbar),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=h('<div class="swiper-scrollbar-drag"></div>'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.trackSize=r()?e.track[0].offsetWidth:e.track[0].offsetHeight,e.divider=f.size/f.virtualSize,e.moveDivider=e.divider*(e.trackSize/f.size),e.dragSize=e.trackSize*e.divider,r()?e.drag[0].style.width=e.dragSize+"px":e.drag[0].style.height=e.dragSize+"px",e.track[0].style.display=e.divider>=1?"none":"",f.params.scrollbarHide&&(e.track[0].style.opacity=0)}},setTranslate:function(){if(f.params.scrollbar){var e,t=f.scrollbar,a=(f.translate||0,t.dragSize);e=(t.trackSize-t.dragSize)*f.progress,f.rtl&&r()?(e=-e,e>0?(a=t.dragSize-e,e=0):-e+t.dragSize>t.trackSize&&(a=t.trackSize+e)):0>e?(a=t.dragSize+e,e=0):e+t.dragSize>t.trackSize&&(a=t.trackSize-e),r()?(t.drag.transform(f.support.transforms3d?"translate3d("+e+"px, 0, 0)":"translateX("+e+"px)"),t.drag[0].style.width=a+"px"):(t.drag.transform(f.support.transforms3d?"translate3d(0px, "+e+"px, 0)":"translateY("+e+"px)"),t.drag[0].style.height=a+"px"),f.params.scrollbarHide&&(clearTimeout(t.timeout),t.track[0].style.opacity=1,t.timeout=setTimeout(function(){t.track[0].style.opacity=0,t.track.transition(400)},1e3))}},setTransition:function(e){f.params.scrollbar&&f.scrollbar.drag.transition(e)}},f.controller={setTranslate:function(e,t){var a,r,i=f.params.control;if(f.isArray(i))for(var s=0;s<i.length;s++)i[s]!==t&&i[s]instanceof Swiper&&(e=i[s].rtl&&"horizontal"===i[s].params.direction?-f.translate:f.translate,a=(i[s].maxTranslate()-i[s].minTranslate())/(f.maxTranslate()-f.minTranslate()),r=(e-f.minTranslate())*a+i[s].minTranslate(),f.params.controlInverse&&(r=i[s].maxTranslate()-r),i[s].updateProgress(r),i[s].setWrapperTranslate(r,!1,f),i[s].updateActiveIndex());else i instanceof Swiper&&t!==i&&(e=i.rtl&&"horizontal"===i.params.direction?-f.translate:f.translate,a=(i.maxTranslate()-i.minTranslate())/(f.maxTranslate()-f.minTranslate()),r=(e-f.minTranslate())*a+i.minTranslate(),f.params.controlInverse&&(r=i.maxTranslate()-r),i.updateProgress(r),i.setWrapperTranslate(r,!1,f),i.updateActiveIndex())},setTransition:function(e,t){var a=f.params.control;if(f.isArray(a))for(var r=0;r<a.length;r++)a[r]!==t&&a[r]instanceof Swiper&&a[r].setWrapperTransition(e,f);else a instanceof Swiper&&t!==a&&a.setWrapperTransition(e,f)}},f.hashnav={init:function(){if(f.params.hashnav){f.hashnav.initialized=!0;var e=document.location.hash.replace("#","");if(e)for(var t=0,a=0,r=f.slides.length;r>a;a++){var i=f.slides.eq(a),s=i.attr("data-hash");if(s===e&&!i.hasClass(f.params.slideDuplicateClass)){var n=i.index();f.slideTo(n,t,f.params.runCallbacksOnInit,!0)}}}},setHash:function(){f.hashnav.initialized&&f.params.hashnav&&(document.location.hash=f.slides.eq(f.activeIndex).attr("data-hash")||"")}},f.disableKeyboardControl=function(){h(document).off("keydown",o)},f.enableKeyboardControl=function(){h(document).on("keydown",o)},f._wheelEvent=!1,f._lastWheelScrollTime=(new Date).getTime(),f.params.mousewheelControl){if(void 0!==document.onmousewheel&&(f._wheelEvent="mousewheel"),!f._wheelEvent)try{new WheelEvent("wheel"),f._wheelEvent="wheel"}catch(L){}f._wheelEvent||(f._wheelEvent="DOMMouseScroll")}f.disableMousewheelControl=function(){return f._wheelEvent?(f.container.off(f._wheelEvent,l),!0):!1},f.enableMousewheelControl=function(){return f._wheelEvent?(f.container.on(f._wheelEvent,l),!0):!1},f.parallax={setTranslate:function(){f.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){d(this,f.progress)}),f.slides.each(function(){var e=h(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=Math.min(Math.max(e[0].progress,-1),1);d(this,t)})})},setTransition:function(e){"undefined"==typeof e&&(e=f.params.speed),f.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=h(this),a=parseInt(t.attr("data-swiper-parallax-duration"),10)||e;0===e&&(a=0),t.transition(a)})}},f._plugins=[];for(var D in f.plugins){var G=f.plugins[D](f,f.params[D]);G&&f._plugins.push(G)}return f.callPlugins=function(e){for(var t=0;t<f._plugins.length;t++)e in f._plugins[t]&&f._plugins[t][e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},f.emitterEventListeners={},f.emit=function(e){f.params[e]&&f.params[e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var t;if(f.emitterEventListeners[e])for(t=0;t<f.emitterEventListeners[e].length;t++)f.emitterEventListeners[e][t](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);f.callPlugins&&f.callPlugins(e,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},f.on=function(e,t){return e=p(p),f.emitterEventListeners[e]||(f.emitterEventListeners[e]=[]),f.emitterEventListeners[e].push(t),f},f.off=function(e,t){var a;if(e=p(p),"undefined"==typeof t)return f.emitterEventListeners[e]=[],f;if(f.emitterEventListeners[e]&&0!==f.emitterEventListeners[e].length){for(a=0;a<f.emitterEventListeners[e].length;a++)f.emitterEventListeners[e][a]===t&&f.emitterEventListeners[e].splice(a,1);return f}},f.once=function(e,t){e=p(p);var a=function(){t(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]),f.off(e,a)};return f.on(e,a),f},f.a11y={makeFocusable:function(e){return e[0].tabIndex="0",e},addRole:function(e,t){return e.attr("role",t),e},addLabel:function(e,t){return e.attr("aria-label",t),e},disable:function(e){return e.attr("aria-disabled",!0),e},enable:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){13===e.keyCode&&(h(e.target).is(f.params.nextButton)?(f.onClickNext(e),f.a11y.notify(f.isEnd?f.params.lastSlideMsg:f.params.nextSlideMsg)):h(e.target).is(f.params.prevButton)&&(f.onClickPrev(e),f.a11y.notify(f.isBeginning?f.params.firstSlideMsg:f.params.prevSlideMsg)))},liveRegion:h('<span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>'),notify:function(e){var t=f.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},init:function(){if(f.params.nextButton){var e=h(f.params.nextButton);f.a11y.makeFocusable(e),f.a11y.addRole(e,"button"),f.a11y.addLabel(e,f.params.nextSlideMsg)}if(f.params.prevButton){var t=h(f.params.prevButton);f.a11y.makeFocusable(t),f.a11y.addRole(t,"button"),f.a11y.addLabel(t,f.params.prevSlideMsg)}h(f.container).append(f.a11y.liveRegion)},destroy:function(){f.a11y.liveRegion&&f.a11y.liveRegion.length>0&&f.a11y.liveRegion.remove()}},f.init=function(){f.params.loop&&f.createLoop(),f.updateContainerSize(),f.updateSlidesSize(),f.updatePagination(),f.params.scrollbar&&f.scrollbar&&f.scrollbar.set(),"slide"!==f.params.effect&&f.effects[f.params.effect]&&(f.params.loop||f.updateProgress(),f.effects[f.params.effect].setTranslate()),f.params.loop?f.slideTo(f.params.initialSlide+f.loopedSlides,0,f.params.runCallbacksOnInit):(f.slideTo(f.params.initialSlide,0,f.params.runCallbacksOnInit),0===f.params.initialSlide&&(f.parallax&&f.params.parallax&&f.parallax.setTranslate(),f.lazy&&f.params.lazyLoading&&f.lazy.load())),f.attachEvents(),f.params.observer&&f.support.observer&&f.initObservers(),f.params.preloadImages&&!f.params.lazyLoading&&f.preloadImages(),f.params.autoplay&&f.startAutoplay(),f.params.keyboardControl&&f.enableKeyboardControl&&f.enableKeyboardControl(),f.params.mousewheelControl&&f.enableMousewheelControl&&f.enableMousewheelControl(),f.params.hashnav&&f.hashnav&&f.hashnav.init(),f.params.a11y&&f.a11y&&f.a11y.init(),f.emit("onInit",f)},f.destroy=function(e){f.detachEvents(),f.disconnectObservers(),f.params.keyboardControl&&f.disableKeyboardControl&&f.disableKeyboardControl(),f.params.mousewheelControl&&f.disableMousewheelControl&&f.disableMousewheelControl(),f.params.a11y&&f.a11y&&f.a11y.destroy(),f.emit("onDestroy"),e!==!1&&(f=null)},f.init(),f}},Swiper.prototype={isSafari:function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(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},device:function(){var e=navigator.userAgent,t=e.match(/(Android);?[\s\/]+([\d.]+)?/),a=e.match(/(iPad).*OS\s([\d_]+)/),r=(e.match(/(iPod)(.*OS\s([\d_]+))?/),!a&&e.match(/(iPhone\sOS)\s([\d_]+)/));return{ios:a||r||a,android:t}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var e=document.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createElement("div").style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),a=0;a<t.length;a++)if(t[a]in e)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}()},plugins:{}};for(var t=(function(){var e=function(e){var t=this,a=0;for(a=0;a<e.length;a++)t[a]=e[a];return t.length=e.length,this},t=function(t,a){var r=[],i=0;if(t&&!a&&t instanceof e)return t;if(t)if("string"==typeof t){var s,n,o=t.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var l="div";for(0===o.indexOf("<li")&&(l="ul"),0===o.indexOf("<tr")&&(l="tbody"),(0===o.indexOf("<td")||0===o.indexOf("<th"))&&(l="tr"),0===o.indexOf("<tbody")&&(l="table"),0===o.indexOf("<option")&&(l="select"),n=document.createElement(l),n.innerHTML=t,i=0;i<n.childNodes.length;i++)r.push(n.childNodes[i])}else for(s=a||"#"!==t[0]||t.match(/[ .<>:~]/)?(a||document).querySelectorAll(t):[document.getElementById(t.split("#")[1])],i=0;i<s.length;i++)s[i]&&r.push(s[i])}else if(t.nodeType||t===window||t===document)r.push(t);else if(t.length>0&&t[0].nodeType)for(i=0;i<t.length;i++)r.push(t[i]);return new e(r)};return e.prototype={addClass:function(e){if("undefined"==typeof e)return this;for(var t=e.split(" "),a=0;a<t.length;a++)for(var r=0;r<this.length;r++)this[r].classList.add(t[a]);return this},removeClass:function(e){for(var t=e.split(" "),a=0;a<t.length;a++)for(var r=0;r<this.length;r++)this[r].classList.remove(t[a]);return this},hasClass:function(e){return this[0]?this[0].classList.contains(e):!1},toggleClass:function(e){for(var t=e.split(" "),a=0;a<t.length;a++)for(var r=0;r<this.length;r++)this[r].classList.toggle(t[a]);return this},attr:function(e,t){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var a=0;a<this.length;a++)if(2===arguments.length)this[a].setAttribute(e,t);else for(var r in e)this[a][r]=e[r],this[a].setAttribute(r,e[r]);return this},removeAttr:function(e){for(var t=0;t<this.length;t++)this[t].removeAttribute(e)},data:function(e,t){if("undefined"==typeof t){if(this[0]){var a=this[0].getAttribute("data-"+e);return a?a:this[0].dom7ElementDataStorage&&e in this[0].dom7ElementDataStorage?this[0].dom7ElementDataStorage[e]:void 0}return void 0}for(var r=0;r<this.length;r++){var i=this[r];i.dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t}return this},transform:function(e){for(var t=0;t<this.length;t++){var a=this[t].style;a.webkitTransform=a.MsTransform=a.msTransform=a.MozTransform=a.OTransform=a.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t++){var a=this[t].style;a.webkitTransitionDuration=a.MsTransitionDuration=a.msTransitionDuration=a.MozTransitionDuration=a.OTransitionDuration=a.transitionDuration=e}return this},on:function(e,a,r,i){function s(e){var i=e.target;if(t(i).is(a))r.call(i,e);else for(var s=t(i).parents(),n=0;n<s.length;n++)t(s[n]).is(a)&&r.call(s[n],e)}var n,o,l=e.split(" ");for(n=0;n<this.length;n++)if("function"==typeof a||a===!1)for("function"==typeof a&&(r=arguments[1],i=arguments[2]||!1),o=0;o<l.length;o++)this[n].addEventListener(l[o],r,i);else for(o=0;o<l.length;o++)this[n].dom7LiveListeners||(this[n].dom7LiveListeners=[]),this[n].dom7LiveListeners.push({listener:r,liveListener:s}),this[n].addEventListener(l[o],s,i);return this},off:function(e,t,a,r){for(var i=e.split(" "),s=0;s<i.length;s++)for(var n=0;n<this.length;n++)if("function"==typeof t||t===!1)"function"==typeof t&&(a=arguments[1],r=arguments[2]||!1),this[n].removeEventListener(i[s],a,r);else if(this[n].dom7LiveListeners)for(var o=0;o<this[n].dom7LiveListeners.length;o++)this[n].dom7LiveListeners[o].listener===a&&this[n].removeEventListener(i[s],this[n].dom7LiveListeners[o].liveListener,r);return this},once:function(e,t,a,r){function i(n){a(n),s.off(e,t,i,r)}var s=this;"function"==typeof t&&(t=!1,a=arguments[1],r=arguments[2]),s.on(e,t,i,r)},trigger:function(e,t){for(var a=0;a<this.length;a++){var r;try{r=new CustomEvent(e,{detail:t,bubbles:!0,cancelable:!0})}catch(i){r=document.createEvent("Event"),r.initEvent(e,!0,!0),r.detail=t}this[a].dispatchEvent(r)}return this},transitionEnd:function(e){function t(s){if(s.target===this)for(e.call(this,s),a=0;a<r.length;a++)i.off(r[a],t)}var a,r=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i=this;if(e)for(a=0;a<r.length;a++)i.on(r[a],t);return this},width:function(){return this[0]===window?window.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(e){return this.length>0?e?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){return this.length>0?e?this[0].offsetHeight+parseFloat(this.css("margin-top"))+parseFloat(this.css("margin-bottom")):this[0].offsetHeight:null},offset:function(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),a=document.body,r=e.clientTop||a.clientTop||0,i=e.clientLeft||a.clientLeft||0,s=window.pageYOffset||e.scrollTop,n=window.pageXOffset||e.scrollLeft;return{top:t.top+s-r,left:t.left+n-i}}return null},css:function(e,t){var a;if(1===arguments.length){if("string"!=typeof e){for(a=0;a<this.length;a++)for(var r in e)this[a].style[r]=e[r];return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(a=0;a<this.length;a++)this[a].style[e]=t;return this}return this},each:function(e){for(var t=0;t<this.length;t++)e.call(this[t],t,this[t]);return this},html:function(e){if("undefined"==typeof e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t++)this[t].innerHTML=e;return this},is:function(a){if(!this[0])return!1;var r,i;if("string"==typeof a){var s=this[0];if(s===document)return a===document;if(s===window)return a===window;if(s.matches)return s.matches(a);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(a);if(s.mozMatchesSelector)return s.mozMatchesSelector(a);if(s.msMatchesSelector)return s.msMatchesSelector(a);for(r=t(a),i=0;i<r.length;i++)if(r[i]===this[0])return!0;return!1}if(a===document)return this[0]===document;if(a===window)return this[0]===window;if(a.nodeType||a instanceof e){for(r=a.nodeType?[a]:a,i=0;i<r.length;i++)if(r[i]===this[0])return!0;return!1}return!1},index:function(){if(this[0]){for(var e=this[0],t=0;null!==(e=e.previousSibling);)1===e.nodeType&&t++;return t}return void 0},eq:function(t){if("undefined"==typeof t)return this;var a,r=this.length;return t>r-1?new e([]):0>t?(a=r+t,new e(0>a?[]:[this[a]])):new e([this[t]])},append:function(t){var a,r;for(a=0;a<this.length;a++)if("string"==typeof t){var i=document.createElement("div");for(i.innerHTML=t;i.firstChild;)this[a].appendChild(i.firstChild)}else if(t instanceof e)for(r=0;r<t.length;r++)this[a].appendChild(t[r]);else this[a].appendChild(t);return this},prepend:function(t){var a,r;for(a=0;a<this.length;a++)if("string"==typeof t){var i=document.createElement("div");for(i.innerHTML=t,r=i.childNodes.length-1;r>=0;r--)this[a].insertBefore(i.childNodes[r],this[a].childNodes[0])}else if(t instanceof e)for(r=0;r<t.length;r++)this[a].insertBefore(t[r],this[a].childNodes[0]);else this[a].insertBefore(t,this[a].childNodes[0]);return this},insertBefore:function(e){for(var a=t(e),r=0;r<this.length;r++)if(1===a.length)a[0].parentNode.insertBefore(this[r],a[0]);else if(a.length>1)for(var i=0;i<a.length;i++)a[i].parentNode.insertBefore(this[r].cloneNode(!0),a[i])},insertAfter:function(e){for(var a=t(e),r=0;r<this.length;r++)if(1===a.length)a[0].parentNode.insertBefore(this[r],a[0].nextSibling);else if(a.length>1)for(var i=0;i<a.length;i++)a[i].parentNode.insertBefore(this[r].cloneNode(!0),a[i].nextSibling)},next:function(a){return new e(this.length>0?a?this[0].nextElementSibling&&t(this[0].nextElementSibling).is(a)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(a){var r=[],i=this[0];if(!i)return new e([]);for(;i.nextElementSibling;){var s=i.nextElementSibling;a?t(s).is(a)&&r.push(s):r.push(s),i=s}return new e(r)},prev:function(a){return new e(this.length>0?a?this[0].previousElementSibling&&t(this[0].previousElementSibling).is(a)?[this[0].previousElementSibling]:[]:this[0].previousElementSibling?[this[0].previousElementSibling]:[]:[])},prevAll:function(a){var r=[],i=this[0];if(!i)return new e([]);for(;i.previousElementSibling;){var s=i.previousElementSibling;a?t(s).is(a)&&r.push(s):r.push(s),i=s}return new e(r)},parent:function(e){for(var a=[],r=0;r<this.length;r++)e?t(this[r].parentNode).is(e)&&a.push(this[r].parentNode):a.push(this[r].parentNode);return t(t.unique(a))},parents:function(e){for(var a=[],r=0;r<this.length;r++)for(var i=this[r].parentNode;i;)e?t(i).is(e)&&a.push(i):a.push(i),i=i.parentNode;return t(t.unique(a))},find:function(t){for(var a=[],r=0;r<this.length;r++)for(var i=this[r].querySelectorAll(t),s=0;s<i.length;s++)a.push(i[s]);return new e(a)},children:function(a){for(var r=[],i=0;i<this.length;i++)for(var s=this[i].childNodes,n=0;n<s.length;n++)a?1===s[n].nodeType&&t(s[n]).is(a)&&r.push(s[n]):1===s[n].nodeType&&r.push(s[n]);return new e(t.unique(r))},remove:function(){for(var e=0;e<this.length;e++)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){var e,a,r=this;for(e=0;e<arguments.length;e++){var i=t(arguments[e]);for(a=0;a<i.length;a++)r[r.length]=i[a],r.length++}return r}},t.fn=e.prototype,t.unique=function(e){for(var t=[],a=0;a<e.length;a++)-1===t.indexOf(e[a])&&t.push(e[a]);return t},t}()),a=["jQuery","Zepto","Dom7"],r=0;r<a.length;r++)window[a[r]]&&e(window[a[r]]);var i;i="undefined"==typeof t?window.Dom7||window.Zepto||window.jQuery:t,i&&("transitionEnd"in i.fn||(i.fn.transitionEnd=function(e){function t(s){if(s.target===this)for(e.call(this,s),a=0;a<r.length;a++)i.off(r[a],t)}var a,r=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i=this;if(e)for(a=0;a<r.length;a++)i.on(r[a],t);return this}),"transform"in i.fn||(i.fn.transform=function(e){for(var t=0;t<this.length;t++){var a=this[t].style;a.webkitTransform=a.MsTransform=a.msTransform=a.MozTransform=a.OTransform=a.transform=e}return this}),"transition"in i.fn||(i.fn.transition=function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t++){var a=this[t].style;a.webkitTransitionDuration=a.MsTransitionDuration=a.msTransitionDuration=a.MozTransitionDuration=a.OTransitionDuration=a.transitionDuration=e}return this}))}(),"undefined"!=typeof module?module.exports=Swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return Swiper});
//# sourceMappingURL=maps/swiper.min.js.map
(function(){
'use strict';
'use strict';
var gulp = require('gulp'),

@@ -54,2 +54,5 @@ gutil = require('gulp-util'),

'src/js/parallax.js',
'src/js/plugins.js',
'src/js/emitter.js',
'src/js/a11y.js',
'src/js/init.js',

@@ -75,2 +78,5 @@ 'src/js/swiper-outro.js',

'src/js/parallax.js',
'src/js/plugins.js',
'src/js/emitter.js',
'src/js/a11y.js',
'src/js/init.js',

@@ -91,2 +97,5 @@ 'src/js/swiper-outro.js',

'src/js/parallax.js',
'src/js/plugins.js',
'src/js/emitter.js',
'src/js/a11y.js',
'src/js/init.js',

@@ -119,3 +128,3 @@ 'src/js/swiper-outro.js',

};
function addJSIndent (file, t, minusIndent) {

@@ -145,3 +154,3 @@ var addIndent = ' ';

}))
.pipe(concat(swiper.filename + '.js'))
.pipe(concat(swiper.filename + '.js'))
.pipe(header(swiper.banner, { pkg : swiper.pkg, date: swiper.date } ))

@@ -243,3 +252,3 @@ .pipe(gulp.dest(paths.build.scripts))

});
gulp.task('open', function () {

@@ -252,2 +261,2 @@ return gulp.src(paths.playground.root + 'index.html').pipe(open('', { url: 'http://localhost:3000/' + paths.playground.root + 'index.html'}));

gulp.task('default', [ 'server' ]);
})();
})();
{
"name": "swiper",
"version": "3.0.4",
"version": "3.0.5",
"description": "Most modern mobile touch slider and framework with hardware accelerated transitions",

@@ -26,10 +26,10 @@ "main": "dist/js/swiper.js",

"gulp": "~3.8.11",
"gulp-less": "~3.0.0",
"gulp-less": "~3.0.2",
"gulp-connect": "~2.2.0",
"gulp-open": "~0.3.2",
"gulp-uglify": "~1.1.0",
"gulp-sourcemaps": "~1.5.0",
"gulp-sourcemaps": "~1.5.1",
"gulp-util": "~3.0.2",
"gulp-minify-css": "0.5.1",
"gulp-jshint": "~1.9.0",
"gulp-minify-css": "1.0.0",
"gulp-jshint": "~1.9.4",
"gulp-concat": "~2.5.2",

@@ -36,0 +36,0 @@ "gulp-rename": "~1.2.0",

@@ -15,2 +15,6 @@ var defaults = {

freeModeMomentumBounceRatio: 1,
// Set wrapper width
setWrapperSize: false,
// Virtual Translate
virtualTranslate: false,
// Effects

@@ -119,4 +123,10 @@ effect: 'slide', // 'slide' or 'fade' or 'cube' or 'coverflow'

observeParents: false,
// Accessibility
a11y: false,
prevSlideMessage: 'Previous slide',
nextSlideMessage: 'Next slide',
firstSlideMessage: 'This is the first slide',
lastSlideMessage: 'This is the last slide',
// Callbacks
runCallbacksOnInit: true
runCallbacksOnInit: true,
/*

@@ -126,20 +136,20 @@ Callbacks:

onDestroy: function (swiper)
onClick: function (swiper, e)
onTap: function (swiper, e)
onDoubleTap: function (swiper, e)
onSliderMove: function (swiper, e)
onSlideChangeStart: function (swiper)
onSlideChangeEnd: function (swiper)
onTransitionStart: function (swiper)
onTransitionEnd: function (swiper)
onImagesReady: function (swiper)
onProgress: function (swiper, progress)
onTouchStart: function (swiper, e)
onTouchMove: function (swiper, e)
onTouchMoveOpposite: function (swiper, e)
onTouchEnd: function (swiper, e)
onReachBeginning: function (swiper)
onReachEnd: function (swiper)
onSetTransition: function (swiper, duration)
onSetTranslate: function (swiper, translate)
onClick: function (swiper, e)
onTap: function (swiper, e)
onDoubleTap: function (swiper, e)
onSliderMove: function (swiper, e)
onSlideChangeStart: function (swiper)
onSlideChangeEnd: function (swiper)
onTransitionStart: function (swiper)
onTransitionEnd: function (swiper)
onImagesReady: function (swiper)
onProgress: function (swiper, progress)
onTouchStart: function (swiper, e)
onTouchMove: function (swiper, e)
onTouchMoveOpposite: function (swiper, e)
onTouchEnd: function (swiper, e)
onReachBeginning: function (swiper)
onReachEnd: function (swiper)
onSetTransition: function (swiper, duration)
onSetTranslate: function (swiper, translate)
onAutoplayStart: function (swiper)

@@ -150,2 +160,3 @@ onAutoplayStop: function (swiper),

*/
};

@@ -171,2 +182,5 @@ params = params || {};

s.params = params;
// Classname
s.classNames = [];
/*=========================

@@ -184,2 +198,4 @@ Dom Library and plugins

// Export it to Swiper instance
s.$ = $;
/*=========================

@@ -201,7 +217,11 @@ Preparation - Define Container, Wrapper and Pagination

s.container.addClass('swiper-container-' + s.params.direction);
s.classNames.push('swiper-container-' + s.params.direction);
if (s.params.freeMode) {
s.container.addClass('swiper-container-free-mode');
s.classNames.push('swiper-container-free-mode');
}
if (!s.support.flexbox) {
s.classNames.push('swiper-container-no-flexbox');
s.params.slidesPerColumn = 1;
}
// Enable slides progress when required

@@ -215,3 +235,3 @@ if (s.params.parallax || s.params.watchSlidesVisibility) {

s.params.watchSlidesProgress = true;
s.container.addClass('swiper-container-3d');
s.classNames.push('swiper-container-3d');
}

@@ -223,3 +243,3 @@ else {

if (s.params.effect !== 'slide') {
s.container.addClass('swiper-container-' + s.params.effect);
s.classNames.push('swiper-container-' + s.params.effect);
}

@@ -233,6 +253,12 @@ if (s.params.effect === 'cube') {

s.params.spaceBetween = 0;
s.params.virtualTranslate = true;
s.params.setWrapperSize = false;
}
if (s.params.effect === 'fade') {
s.params.slidesPerView = 1;
s.params.slidesPerColumn = 1;
s.params.slidesPerGroup = 1;
s.params.watchSlidesProgress = true;
s.params.spaceBetween = 0;
s.params.virtualTranslate = true;
}

@@ -263,3 +289,5 @@

s.rtl = isH() && (s.container[0].dir.toLowerCase() === 'rtl' || s.container.css('direction') === 'rtl');
if (s.rtl) s.container.addClass('swiper-container-rtl');
if (s.rtl) {
s.classNames.push('swiper-container-rtl');
}

@@ -271,2 +299,15 @@ // Wrong RTL support

// Columns
if (s.params.slidesPerColumn > 1) {
s.classNames.push('swiper-container-multirow');
}
// Check for Android
if (s.device.android) {
s.classNames.push('swiper-container-android');
}
// Add classes
s.container.addClass(s.classNames.join(' '));
// Translate

@@ -301,8 +342,3 @@ s.translate = 0;

// Columns
if (s.params.slidesPerColumn > 1) {
s.container.addClass('swiper-container-multirow');
}
/*=========================

@@ -349,3 +385,3 @@ Set grab cursor

if (s.params.updateOnImagesReady) s.update();
if (s.params.onImagesReady) s.params.onImagesReady(s);
s.emit('onImagesReady', s);
}

@@ -390,3 +426,3 @@ }

s.autoplaying = true;
if (s.params.onAutoplayStart) s.params.onAutoplayStart(s);
s.emit('onAutoplayStart', s);
autoplay();

@@ -399,3 +435,3 @@ };

s.autoplayTimeoutId = undefined;
if (s.params.onAutoplayStop) s.params.onAutoplayStop(s);
s.emit('onAutoplayStop', s);
};

@@ -455,3 +491,3 @@ s.pauseAutoplay = function (speed) {

s.virtualWidth = -spaceBetween;
s.virtualSize = -spaceBetween;
// reset margins

@@ -539,3 +575,3 @@ if (s.rtl) s.slides.css({marginLeft: '', marginTop: ''});

s.virtualWidth += slideSize + spaceBetween;
s.virtualSize += slideSize + spaceBetween;

@@ -546,18 +582,23 @@ prevSlideSize = slideSize;

}
s.virtualWidth = Math.max(s.virtualWidth, s.size);
s.virtualSize = Math.max(s.virtualSize, s.size);
var newSlidesGrid;
if (s.rtl && s.wrongRTL && (s.params.effect === 'slide' || s.params.effect === 'coverflow')) {
s.wrapper.css({width: s.virtualWidth + s.params.spaceBetween + 'px'});
if (
s.rtl && s.wrongRTL && (s.params.effect === 'slide' || s.params.effect === 'coverflow')) {
s.wrapper.css({width: s.virtualSize + s.params.spaceBetween + 'px'});
}
if (!s.support.flexbox || s.params.setWrapperSize) {
if (isH()) s.wrapper.css({width: s.virtualSize + s.params.spaceBetween + 'px'});
else s.wrapper.css({height: s.virtualSize + s.params.spaceBetween + 'px'});
}
if (s.params.slidesPerColumn > 1) {
s.virtualWidth = (slideSize + s.params.spaceBetween) * slidesNumberEvenToRows;
s.virtualWidth = Math.ceil(s.virtualWidth / s.params.slidesPerColumn) - s.params.spaceBetween;
s.wrapper.css({width: s.virtualWidth + s.params.spaceBetween + 'px'});
s.virtualSize = (slideSize + s.params.spaceBetween) * slidesNumberEvenToRows;
s.virtualSize = Math.ceil(s.virtualSize / s.params.slidesPerColumn) - s.params.spaceBetween;
s.wrapper.css({width: s.virtualSize + s.params.spaceBetween + 'px'});
if (s.params.centeredSlides) {
newSlidesGrid = [];
for (i = 0; i < s.snapGrid.length; i++) {
if (s.snapGrid[i] < s.virtualWidth + s.snapGrid[0]) newSlidesGrid.push(s.snapGrid[i]);
if (s.snapGrid[i] < s.virtualSize + s.snapGrid[0]) newSlidesGrid.push(s.snapGrid[i]);
}

@@ -572,3 +613,3 @@ s.snapGrid = newSlidesGrid;

for (i = 0; i < s.snapGrid.length; i++) {
if (s.snapGrid[i] <= s.virtualWidth - s.size) {
if (s.snapGrid[i] <= s.virtualSize - s.size) {
newSlidesGrid.push(s.snapGrid[i]);

@@ -578,4 +619,4 @@ }

s.snapGrid = newSlidesGrid;
if (Math.floor(s.virtualWidth - s.size) > Math.floor(s.snapGrid[s.snapGrid.length - 1])) {
s.snapGrid.push(s.virtualWidth - s.size);
if (Math.floor(s.virtualSize - s.size) > Math.floor(s.snapGrid[s.snapGrid.length - 1])) {
s.snapGrid.push(s.virtualSize - s.size);
}

@@ -652,7 +693,7 @@ }

}
if (s.isBeginning && s.params.onReachBeginning) s.params.onReachBeginning(s);
if (s.isEnd && s.params.onReachEnd) s.params.onReachEnd(s);
if (s.isBeginning) s.emit('onReachBeginning', s);
if (s.isEnd) s.emit('onReachEnd', s);
if (s.params.watchSlidesProgress) s.updateSlidesProgress(translate);
if (s.params.onProgress) s.params.onProgress(s, s.progress);
s.emit('onProgress', s, s.progress);
};

@@ -712,6 +753,7 @@ s.updateActiveIndex = function () {

if (s.params.loop) {
bulletIndex = s.activeIndex - s.loopedSlides;
bulletIndex = Math.ceil(s.activeIndex - s.loopedSlides)/s.params.slidesPerGroup;
if (bulletIndex > s.slides.length - 1 - s.loopedSlides * 2) {
bulletIndex = bulletIndex - (s.slides.length - s.loopedSlides * 2);
}
if (bulletIndex > s.bullets.length - 1) bulletIndex = bulletIndex - s.bullets.length;
}

@@ -726,3 +768,10 @@ else {

}
s.bullets.eq(bulletIndex).addClass(s.params.bulletActiveClass);
if (s.paginationContainer.length > 1) {
s.bullets.each(function () {
if ($(this).index() === bulletIndex) $(this).addClass(s.params.bulletActiveClass);
});
}
else {
s.bullets.eq(bulletIndex).addClass(s.params.bulletActiveClass);
}
}

@@ -733,8 +782,20 @@

if (s.params.prevButton) {
if (s.isBeginning) $(s.params.prevButton).addClass(s.params.buttonDisabledClass);
else $(s.params.prevButton).removeClass(s.params.buttonDisabledClass);
if (s.isBeginning) {
$(s.params.prevButton).addClass(s.params.buttonDisabledClass);
if (s.params.a11y && s.a11y) s.a11y.disable($(s.params.prevButton));
}
else {
$(s.params.prevButton).removeClass(s.params.buttonDisabledClass);
if (s.params.a11y && s.a11y) s.a11y.enable($(s.params.prevButton));
}
}
if (s.params.nextButton) {
if (s.isEnd) $(s.params.nextButton).addClass(s.params.buttonDisabledClass);
else $(s.params.nextButton).removeClass(s.params.buttonDisabledClass);
if (s.isEnd) {
$(s.params.nextButton).addClass(s.params.buttonDisabledClass);
if (s.params.a11y && s.a11y) s.a11y.disable($(s.params.nextButton));
}
else {
$(s.params.nextButton).removeClass(s.params.buttonDisabledClass);
if (s.params.a11y && s.a11y) s.a11y.enable($(s.params.nextButton));
}
}

@@ -751,3 +812,3 @@ }

var bulletsHTML = '';
var numberOfBullets = s.params.loop ? s.slides.length - s.loopedSlides * 2 : s.snapGrid.length;
var numberOfBullets = s.params.loop ? Math.ceil((s.slides.length - s.loopedSlides * 2) / s.params.slidesPerGroup) : s.snapGrid.length;
for (var i = 0; i < numberOfBullets; i++) {

@@ -853,3 +914,3 @@ if (s.params.paginationBulletRender) {

// Attach/detach events
s.events = function (detach) {
s.initEvents = function (detach) {
var actionDom = detach ? 'off' : 'on';

@@ -883,4 +944,10 @@ var action = detach ? 'removeEventListener' : 'addEventListener';

// Next, Prev, Index
if (s.params.nextButton) $(s.params.nextButton)[actionDom]('click', s.onClickNext);
if (s.params.prevButton) $(s.params.prevButton)[actionDom]('click', s.onClickPrev);
if (s.params.nextButton) {
$(s.params.nextButton)[actionDom]('click', s.onClickNext);
if (s.params.a11y && s.a11y) $(s.params.nextButton)[actionDom]('keydown', s.a11y.onEnterKey);
}
if (s.params.prevButton) {
$(s.params.prevButton)[actionDom]('click', s.onClickPrev);
if (s.params.a11y && s.a11y) $(s.params.prevButton)[actionDom]('keydown', s.a11y.onEnterKey);
}
if (s.params.pagination && s.params.paginationClickable) {

@@ -894,6 +961,6 @@ $(s.paginationContainer)[actionDom]('click', '.' + s.params.bulletClass, s.onClickIndex);

s.attachEvents = function (detach) {
s.events();
s.initEvents();
};
s.detachEvents = function () {
s.events(true);
s.initEvents(true);
};

@@ -1023,3 +1090,3 @@

// Touch handlers
var isTouchEvent;
var isTouchEvent, startMoving;
s.onTouchStart = function (e) {

@@ -1039,2 +1106,3 @@ if (e.originalEvent) e = e.originalEvent;

isScrolling = undefined;
startMoving = undefined;
s.touches.startX = s.touches.currentX = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX;

@@ -1057,4 +1125,3 @@ s.touches.startY = s.touches.currentY = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY;

}
if (s.params.onTouchStart) s.params.onTouchStart(s, e);
s.emit('onTouchStart', s, e);
};

@@ -1078,4 +1145,5 @@

}
if (s.params.onTouchMove) s.params.onTouchMove(s, e);
s.allowClick = false;
s.emit('onTouchMove', s, e);
if (e.targetTouches && e.targetTouches.length > 1) return;

@@ -1089,7 +1157,11 @@

isScrolling = isH() ? touchAngle > s.params.touchAngle : (90 - touchAngle > s.params.touchAngle);
// isScrolling = !!(isScrolling || Math.abs(touchesCurrent.y - touchesStart.y) > Math.abs(touchesCurrent.x - touchesStart.x));
}
if (isScrolling && s.params.onTouchMoveOpposite) {
s.params.onTouchMoveOpposite(s, e);
if (isScrolling) {
s.emit('onTouchMoveOpposite', s, e);
}
if (typeof startMoving === 'undefined' && s.browser.ieTouch) {
if (s.touches.currentX !== s.touches.startX || s.touches.currentY !== s.touches.startY) {
startMoving = true;
}
}
if (!isTouched) return;

@@ -1100,4 +1172,7 @@ if (isScrolling) {

}
if (s.params.onSliderMove) s.params.onSliderMove(s, e);
if (!startMoving && s.browser.ieTouch) {
return;
}
s.allowClick = false;
s.emit('onSliderMove', s, e);
e.preventDefault();

@@ -1112,3 +1187,3 @@ if (s.params.touchMoveStopPropagation && !s.params.nested) {

}
startTranslate = s.params.effect === 'cube' ? ((s.rtl ? -s.translate: s.translate) || 0) : s.getWrapperTranslate();
startTranslate = s.getWrapperTranslate();
s.setWrapperTransition(0);

@@ -1210,5 +1285,4 @@ if (s.animating) {

if (e.originalEvent) e = e.originalEvent;
if (s.params.onTouchEnd) s.params.onTouchEnd(s, e);
s.emit('onTouchEnd', s, e);
if (!isTouched) return;
//Return Grab Cursor

@@ -1229,3 +1303,3 @@ if (s.params.grabCursor && isMoved && isTouched) {

s.updateClickedSlide(e);
if (s.params.onTap) s.params.onTap(s, e);
s.emit('onTap', s, e);
if (timeDiff < 300 && (touchEndTime - lastClickTime) > 300) {

@@ -1238,3 +1312,3 @@ if (clickTimeout) clearTimeout(clickTimeout);

}
if (s.params.onClick) s.params.onClick(s, e);
s.emit('onClick', s, e);
}, 300);

@@ -1245,5 +1319,3 @@

if (clickTimeout) clearTimeout(clickTimeout);
if (s.params.onDoubleTap) {
s.params.onDoubleTap(s, e);
}
s.emit('onDoubleTap', s, e);
}

@@ -1353,3 +1425,3 @@ }

if (!allowMomentumBounce) return;
if (s.params.onMomentumBounce) s.params.onMomentumBounce(s);
s.emit('onMomentumBounce', s);

@@ -1507,4 +1579,6 @@ s.setWrapperTransition(s.params.speed);

if (runCallbacks) {
if (s.params.onTransitionStart) s.params.onTransitionStart(s);
if (s.params.onSlideChangeStart && s.activeIndex !== s.previousIndex) s.params.onSlideChangeStart(s);
s.emit('onTransitionStart', s);
if (s.activeIndex !== s.previousIndex) {
s.emit('onSlideChangeStart', s);
}
}

@@ -1518,5 +1592,10 @@ };

if (runCallbacks) {
if (s.params.onTransitionEnd) s.params.onTransitionEnd(s);
if (s.params.onSlideChangeEnd && s.activeIndex !== s.previousIndex) s.params.onSlideChangeEnd(s);
s.emit('onTransitionEnd', s);
if (s.activeIndex !== s.previousIndex) {
s.emit('onSlideChangeEnd', s);
}
}
if (s.params.hashnav && s.hashnav) {
s.hashnav.setHash();
}

@@ -1557,3 +1636,2 @@ };

s.wrapper.transition(duration);
if (s.params.onSetTransition) s.params.onSetTransition(s, duration);
if (s.params.effect !== 'slide' && s.effects[s.params.effect]) {

@@ -1571,2 +1649,3 @@ s.effects[s.params.effect].setTransition(duration);

}
s.emit('onSetTransition', s, duration);
};

@@ -1581,6 +1660,9 @@ s.setWrapperTranslate = function (translate, updateActiveIndex, byController) {

}
if (s.support.transforms3d) s.wrapper.transform('translate3d(' + x + 'px, ' + y + 'px, ' + z + 'px)');
else s.wrapper.transform('translate(' + x + 'px, ' + y + 'px)');
if (!s.params.virtualTranslate) {
if (s.support.transforms3d) s.wrapper.transform('translate3d(' + x + 'px, ' + y + 'px, ' + z + 'px)');
else s.wrapper.transform('translate(' + x + 'px, ' + y + 'px)');
}
s.translate = isH() ? x : y;
if (updateActiveIndex) s.updateActiveIndex();

@@ -1599,6 +1681,3 @@ if (s.params.effect !== 'slide' && s.effects[s.params.effect]) {

}
if (s.params.hashnav && s.hashnav) {
s.hashnav.setHash();
}
if (s.params.onSetTranslate) s.params.onSetTranslate(s, s.translate);
s.emit('onSetTranslate', s, s.translate);
};

@@ -1614,2 +1693,6 @@

if (s.params.virtualTranslate) {
return s.rtl ? -s.translate : s.translate;
}
curStyle = window.getComputedStyle(el, null);

@@ -1669,3 +1752,3 @@ if (window.WebKitCSSMatrix) {

s.onResize();
if (s.params.onObserverUpdate) s.params.onObserverUpdate(s, mutation);
s.emit('onObserverUpdate', s, mutation);
});

@@ -1672,0 +1755,0 @@ });

@@ -10,3 +10,4 @@ /*=========================

var offset = slide[0].swiperSlideOffset;
var tx = -offset - s.translate;
var tx = -offset;
if (!s.params.virtualTranslate) tx = tx - s.translate;
var ty = 0;

@@ -190,4 +191,4 @@ if (!isH()) {

//Set correct perspective for IE10
if (window.navigator.pointerEnabled || window.navigator.msPointerEnabled) {
var ws = s.wrapper.style;
if (s.browser.ie) {
var ws = s.wrapper[0].style;
ws.perspectiveOrigin = center + 'px 50%';

@@ -194,0 +195,0 @@ }

@@ -45,3 +45,4 @@ /*=========================

}
if (s.params.onInit) s.params.onInit(s);
if (s.params.a11y && s.a11y) s.a11y.init();
s.emit('onInit', s);
};

@@ -59,3 +60,4 @@

}
if (s.params.onDestroy) s.params.onDestroy();
if (s.params.a11y && s.a11y) s.a11y.destroy();
s.emit('onDestroy');
if (deleteInstance !== false) s = null;

@@ -62,0 +64,0 @@ };

@@ -25,9 +25,7 @@ /*=========================

slide.find('.swiper-lazy-preloader, .preloader').remove();
if (s.params.onLazyImageLoaded) {
s.params.onLazyImageLoaded(s, slide[0], _img[0]);
}
s.emit('onLazyImageReady', s, slide[0], _img[0]);
});
if (s.params.onLazyImageLoad) {
s.params.onLazyImageLoad(s, slide[0], _img[0]);
}
s.emit('onLazyImageLoad', s, slide[0], _img[0]);
});

@@ -57,3 +55,3 @@

var prevSlide = s.wrapper.children('.' + s.params.slidePrevClass);
if (prevSlide.length > 0) s.loadImageInSlide(prevSlide.index());
if (prevSlide.length > 0) s.lazy.loadImageInSlide(prevSlide.index());
}

@@ -74,2 +72,2 @@ },

}
};
};

@@ -6,8 +6,12 @@ /*=========================

el = $(el);
var p, pX, pY, tX, tY;
var p, pX, pY;
p = el.attr('data-swiper-parallax');
p = el.attr('data-swiper-parallax') || '0';
pX = el.attr('data-swiper-parallax-x');
pY = el.attr('data-swiper-parallax-y');
if (!pX && !pY && p) {
if (pX || pY) {
pX = pX || '0';
pY = pY || '0';
}
else {
if (isH()) {

@@ -22,8 +26,2 @@ pX = p;

}
else {
if (pX) pX = pX;
else pX = '0';
if (pY) pY = pY;
else pY = '0';
}
if ((pX).indexOf('%') >= 0) {

@@ -41,6 +39,3 @@ pX = parseInt(pX, 10) * progress + '%';

}
tX = pX;
tY = pY;
el.transform('translate3d(' + tX + ', ' + tY + ',0px)');
el.transform('translate3d(' + pX + ', ' + pY + ',0px)');
}

@@ -71,2 +66,1 @@ s.parallax = {

};

@@ -18,3 +18,3 @@ /*=========================

sb.divider = s.size / s.virtualWidth;
sb.divider = s.size / s.virtualSize;
sb.moveDivider = sb.divider * (sb.trackSize / s.size);

@@ -69,7 +69,17 @@ sb.dragSize = sb.trackSize * sb.divider;

if (isH()) {
sb.drag.transform('translate3d(' + (newPos) + 'px, 0, 0)');
if (s.support.transforms3d) {
sb.drag.transform('translate3d(' + (newPos) + 'px, 0, 0)');
}
else {
sb.drag.transform('translateX(' + (newPos) + 'px)');
}
sb.drag[0].style.width = newSize + 'px';
}
else {
sb.drag.transform('translate3d(0px, ' + (newPos) + 'px, 0)');
if (s.support.transforms3d) {
sb.drag.transform('translate3d(0px, ' + (newPos) + 'px, 0)');
}
else {
sb.drag.transform('translateY(' + (newPos) + 'px)');
}
sb.drag[0].style.height = newSize + 'px';

@@ -76,0 +86,0 @@ }

/*===========================
Swiper
===========================*/
window.Swiper = function (container, params) {
window.Swiper = function (container, params) {
if (!(this instanceof Swiper)) return new Swiper(container, params);

@@ -17,3 +17,4 @@ /*==================================================

browser: {
ie: window.navigator.pointerEnabled || window.navigator.msPointerEnabled
ie: window.navigator.pointerEnabled || window.navigator.msPointerEnabled,
ieTouch: (window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints > 1) || (window.navigator.pointerEnabled && window.navigator.maxTouchPoints > 1),
},

@@ -49,3 +50,3 @@ /*==================================================

var div = document.createElement('div').style;
var styles = ('WebkitBox msFlexbox MsFlexbox WebkitFlex MozBox flex').split(' ');
var styles = ('alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient').split(' ');
for (var i = 0; i < styles.length; i++) {

@@ -59,3 +60,7 @@ if (styles[i] in div) return true;

})()
}
},
/*==================================================
Plugins
====================================================*/
plugins: {}
};

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc