/** * swiper 3.1.7 * most modern mobile touch slider and framework with hardware accelerated transitions * * http://www.idangero.us/swiper/ * * copyright 2015, vladimir kharlampidi * the idangero.us * http://www.idangero.us/ * * licensed under mit * * released on: october 10, 2015 */ !function(){"use strict";function e(e){e.fn.swiper=function(a){var r;return e(this).each(function(){var e=new t(this,a);r||(r=e)}),r}}var a,t=function(e,s){function i(){return"horizontal"===w.params.direction}function n(e){return math.floor(e)}function o(){w.autoplaytimeoutid=settimeout(function(){w.params.loop?(w.fixloop(),w._slidenext()):w.isend?s.autoplaystoponlast?w.stopautoplay():w._slideto(0):w._slidenext()},w.params.autoplay)}function l(e,t){var r=a(e.target);if(!r.is(t))if("string"==typeof t)r=r.parents(t);else if(t.nodetype){var s;return r.parents().each(function(e,a){a===t&&(s=t)}),s?t:void 0}return 0===r.length?void 0:r[0]}function d(e,a){a=a||{};var t=window.mutationobserver||window.webkitmutationobserver,r=new t(function(e){e.foreach(function(e){w.onresize(!0),w.emit("onobserverupdate",w,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}),w.observers.push(r)}function p(e){e.originalevent&&(e=e.originalevent);var a=e.keycode||e.charcode;if(!w.params.allowswipetonext&&(i()&&39===a||!i()&&40===a))return!1;if(!w.params.allowswipetoprev&&(i()&&37===a||!i()&&38===a))return!1;if(!(e.shiftkey||e.altkey||e.ctrlkey||e.metakey||document.activeelement&&document.activeelement.nodename&&("input"===document.activeelement.nodename.tolowercase()||"textarea"===document.activeelement.nodename.tolowercase()))){if(37===a||39===a||38===a||40===a){var t=!1;if(w.container.parents(".swiper-slide").length>0&&0===w.container.parents(".swiper-slide-active").length)return;var r={left:window.pagexoffset,top:window.pageyoffset},s=window.innerwidth,n=window.innerheight,o=w.container.offset();w.rtl&&(o.left=o.left-w.container[0].scrollleft);for(var l=[[o.left,o.top],[o.left+w.width,o.top],[o.left,o.top+w.height],[o.left+w.width,o.top+w.height]],d=0;d=r.left&&p[0]<=r.left+s&&p[1]>=r.top&&p[1]<=r.top+n&&(t=!0)}if(!t)return}i()?((37===a||39===a)&&(e.preventdefault?e.preventdefault():e.returnvalue=!1),(39===a&&!w.rtl||37===a&&w.rtl)&&w.slidenext(),(37===a&&!w.rtl||39===a&&w.rtl)&&w.slideprev()):((38===a||40===a)&&(e.preventdefault?e.preventdefault():e.returnvalue=!1),40===a&&w.slidenext(),38===a&&w.slideprev())}}function u(e){e.originalevent&&(e=e.originalevent);var a=w.mousewheel.event,t=0;if(e.detail)t=-e.detail;else if("mousewheel"===a)if(w.params.mousewheelforcetoaxis)if(i()){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(w.params.mousewheelforcetoaxis)if(i()){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(w.params.mousewheelinvert&&(t=-t),w.params.freemode){var r=w.getwrappertranslate()+t*w.params.mousewheelsensitivity;if(r>w.mintranslate()&&(r=w.mintranslate()),r60)if(0>t)if(w.isend&&!w.params.loop||w.animating){if(w.params.mousewheelreleaseonedges)return!0}else w.slidenext();else if(w.isbeginning&&!w.params.loop||w.animating){if(w.params.mousewheelreleaseonedges)return!0}else w.slideprev();w.mousewheel.lastscrolltime=(new window.date).gettime()}return w.params.autoplay&&w.stopautoplay(),e.preventdefault?e.preventdefault():e.returnvalue=!1,!1}function c(e,t){e=a(e);var r,s,n;r=e.attr("data-swiper-parallax")||"0",s=e.attr("data-swiper-parallax-x"),n=e.attr("data-swiper-parallax-y"),s||n?(s=s||"0",n=n||"0"):i()?(s=r,n="0"):(n=r,s="0"),s=s.indexof("%")>=0?parseint(s,10)*t+"%":s*t+"px",n=n.indexof("%")>=0?parseint(n,10)*t+"%":n*t+"px",e.transform("translate3d("+s+", "+n+",0px)")}function m(e){return 0!==e.indexof("on")&&(e=e[0]!==e[0].touppercase()?"on"+e[0].touppercase()+e.substring(1):"on"+e),e}if(!(this instanceof t))return new t(e,s);var f={direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,autoplay:!1,autoplaydisableoninteraction:!0,iosedgeswipedetection:!1,iosedgeswipethreshold:20,freemode:!1,freemodemomentum:!0,freemodemomentumratio:1,freemodemomentumbounce:!0,freemodemomentumbounceratio:1,freemodesticky:!1,freemodeminimumvelocity:.02,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,scrollbardraggable:!1,scrollbarsnaponrelease:!1,keyboardcontrol:!1,mousewheelcontrol:!1,mousewheelreleaseonedges:!1,mousewheelinvert:!1,mousewheelforcetoaxis:!1,mousewheelsensitivity:1,hashnav:!1,spacebetween:0,slidesperview:1,slidespercolumn:1,slidespercolumnfill:"column",slidespergroup:1,centeredslides:!1,slidesoffsetbefore:0,slidesoffsetafter:0,roundlengths:!1,touchratio:1,touchangle:45,simulatetouch:!0,shortswipes:!0,longswipes:!0,longswipesratio:.5,longswipesms:300,followfinger:!0,onlyexternal:!1,threshold:0,touchmovestoppropagation:!0,pagination:null,paginationelement:"span",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,controlby:"slide",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",paginationbulletmessage:"go to slide {{index}}",runcallbacksoninit:!0},h=s&&s.virtualtranslate;s=s||{};for(var g in f)if("undefined"==typeof s[g])s[g]=f[g];else if("object"==typeof s[g])for(var v in f[g])"undefined"==typeof s[g][v]&&(s[g][v]=f[g][v]);var w=this;if(w.params=s,w.classnames=[],"undefined"!=typeof a&&"undefined"!=typeof r&&(a=r),("undefined"!=typeof a||(a="undefined"==typeof r?window.dom7||window.zepto||window.jquery:r))&&(w.$=a,w.container=a(e),0!==w.container.length)){if(w.container.length>1)return void w.container.each(function(){new t(this,s)});w.container[0].swiper=w,w.container.data("swiper",w),w.classnames.push("swiper-container-"+w.params.direction),w.params.freemode&&w.classnames.push("swiper-container-free-mode"),w.support.flexbox||(w.classnames.push("swiper-container-no-flexbox"),w.params.slidespercolumn=1),(w.params.parallax||w.params.watchslidesvisibility)&&(w.params.watchslidesprogress=!0),["cube","coverflow"].indexof(w.params.effect)>=0&&(w.support.transforms3d?(w.params.watchslidesprogress=!0,w.classnames.push("swiper-container-3d")):w.params.effect="slide"),"slide"!==w.params.effect&&w.classnames.push("swiper-container-"+w.params.effect),"cube"===w.params.effect&&(w.params.resistanceratio=0,w.params.slidesperview=1,w.params.slidespercolumn=1,w.params.slidespergroup=1,w.params.centeredslides=!1,w.params.spacebetween=0,w.params.virtualtranslate=!0,w.params.setwrappersize=!1),"fade"===w.params.effect&&(w.params.slidesperview=1,w.params.slidespercolumn=1,w.params.slidespergroup=1,w.params.watchslidesprogress=!0,w.params.spacebetween=0,"undefined"==typeof h&&(w.params.virtualtranslate=!0)),w.params.grabcursor&&w.support.touch&&(w.params.grabcursor=!1),w.wrapper=w.container.children("."+w.params.wrapperclass),w.params.pagination&&(w.paginationcontainer=a(w.params.pagination),w.params.paginationclickable&&w.paginationcontainer.addclass("swiper-pagination-clickable")),w.rtl=i()&&("rtl"===w.container[0].dir.tolowercase()||"rtl"===w.container.css("direction")),w.rtl&&w.classnames.push("swiper-container-rtl"),w.rtl&&(w.wrongrtl="-webkit-box"===w.wrapper.css("display")),w.params.slidespercolumn>1&&w.classnames.push("swiper-container-multirow"),w.device.android&&w.classnames.push("swiper-container-android"),w.container.addclass(w.classnames.join(" ")),w.translate=0,w.progress=0,w.velocity=0,w.lockswipetonext=function(){w.params.allowswipetonext=!1},w.lockswipetoprev=function(){w.params.allowswipetoprev=!1},w.lockswipes=function(){w.params.allowswipetonext=w.params.allowswipetoprev=!1},w.unlockswipetonext=function(){w.params.allowswipetonext=!0},w.unlockswipetoprev=function(){w.params.allowswipetoprev=!0},w.unlockswipes=function(){w.params.allowswipetonext=w.params.allowswipetoprev=!0},w.params.grabcursor&&(w.container[0].style.cursor="move",w.container[0].style.cursor="-webkit-grab",w.container[0].style.cursor="-moz-grab",w.container[0].style.cursor="grab"),w.imagestoload=[],w.imagesloaded=0,w.loadimage=function(e,a,t,r,s){function i(){s&&s()}var n;e.complete&&r?i():a?(n=new window.image,n.onload=i,n.onerror=i,t&&(n.srcset=t),a&&(n.src=a)):i()},w.preloadimages=function(){function e(){"undefined"!=typeof w&&null!==w&&(void 0!==w.imagesloaded&&w.imagesloaded++,w.imagesloaded===w.imagestoload.length&&(w.params.updateonimagesready&&w.update(),w.emit("onimagesready",w)))}w.imagestoload=w.container.find("img");for(var a=0;a=0&&(a=parsefloat(a.replace("%",""))/100*w.size),w.virtualsize=-a,w.rtl?w.slides.css({marginleft:"",margintop:""}):w.slides.css({marginright:"",marginbottom:""});var o;w.params.slidespercolumn>1&&(o=math.floor(w.slides.length/w.params.slidespercolumn)===w.slides.length/w.params.slidespercolumn?w.slides.length:math.ceil(w.slides.length/w.params.slidespercolumn)*w.params.slidespercolumn,"auto"!==w.params.slidesperview&&"row"===w.params.slidespercolumnfill&&(o=math.max(o,w.params.slidesperview*w.params.slidespercolumn)));var l,d=w.params.slidespercolumn,p=o/d,u=p-(w.params.slidespercolumn*p-w.slides.length);for(e=0;e1){var m,f,h;"column"===w.params.slidespercolumnfill?(f=math.floor(e/d),h=e-f*d,(f>u||f===u&&h===d-1)&&++h>=d&&(h=0,f++),m=f+h*o/d,c.css({"-webkit-box-ordinal-group":m,"-moz-box-ordinal-group":m,"-ms-flex-order":m,"-webkit-order":m,order:m})):(h=math.floor(e/p),f=e-h*p),c.css({"margin-top":0!==h&&w.params.spacebetween&&w.params.spacebetween+"px"}).attr("data-swiper-column",f).attr("data-swiper-row",h)}"none"!==c.css("display")&&("auto"===w.params.slidesperview?(l=i()?c.outerwidth(!0):c.outerheight(!0),w.params.roundlengths&&(l=n(l))):(l=(w.size-(w.params.slidesperview-1)*a)/w.params.slidesperview,w.params.roundlengths&&(l=n(l)),i()?w.slides[e].style.width=l+"px":w.slides[e].style.height=l+"px"),w.slides[e].swiperslidesize=l,w.slidessizesgrid.push(l),w.params.centeredslides?(t=t+l/2+r/2+a,0===e&&(t=t-w.size/2-a),math.abs(t)<.001&&(t=0),s%w.params.slidespergroup===0&&w.snapgrid.push(t),w.slidesgrid.push(t)):(s%w.params.slidespergroup===0&&w.snapgrid.push(t),w.slidesgrid.push(t),t=t+l+a),w.virtualsize+=l+a,r=l,s++)}w.virtualsize=math.max(w.virtualsize,w.size)+w.params.slidesoffsetafter;var g;if(w.rtl&&w.wrongrtl&&("slide"===w.params.effect||"coverflow"===w.params.effect)&&w.wrapper.css({width:w.virtualsize+w.params.spacebetween+"px"}),(!w.support.flexbox||w.params.setwrappersize)&&(i()?w.wrapper.css({width:w.virtualsize+w.params.spacebetween+"px"}):w.wrapper.css({height:w.virtualsize+w.params.spacebetween+"px"})),w.params.slidespercolumn>1&&(w.virtualsize=(l+w.params.spacebetween)*o,w.virtualsize=math.ceil(w.virtualsize/w.params.slidespercolumn)-w.params.spacebetween,w.wrapper.css({width:w.virtualsize+w.params.spacebetween+"px"}),w.params.centeredslides)){for(g=[],e=0;emath.floor(w.snapgrid[w.snapgrid.length-1])&&w.snapgrid.push(w.virtualsize-w.size)}0===w.snapgrid.length&&(w.snapgrid=[0]),0!==w.params.spacebetween&&(i()?w.rtl?w.slides.css({marginleft:a+"px"}):w.slides.css({marginright:a+"px"}):w.slides.css({marginbottom:a+"px"})),w.params.watchslidesprogress&&w.updateslidesoffset()},w.updateslidesoffset=function(){for(var e=0;e=0&&n0&&o<=w.size||0>=n&&o>=w.size;l&&w.slides.eq(t).addclass(w.params.slidevisibleclass)}r.progress=w.rtl?-s:s}}},w.updateprogress=function(e){"undefined"==typeof e&&(e=w.translate||0);var a=w.maxtranslate()-w.mintranslate();0===a?(w.progress=0,w.isbeginning=w.isend=!0):(w.progress=(e-w.mintranslate())/a,w.isbeginning=w.progress<=0,w.isend=w.progress>=1),w.isbeginning&&w.emit("onreachbeginning",w),w.isend&&w.emit("onreachend",w),w.params.watchslidesprogress&&w.updateslidesprogress(e),w.emit("onprogress",w,w.progress)},w.updateactiveindex=function(){var e,a,t,r=w.rtl?w.translate:-w.translate;for(a=0;a=w.slidesgrid[a]&&r=w.slidesgrid[a]&&r=w.slidesgrid[a]&&(e=a);(0>e||"undefined"==typeof e)&&(e=0),t=math.floor(e/w.params.slidespergroup),t>=w.snapgrid.length&&(t=w.snapgrid.length-1),e!==w.activeindex&&(w.snapindex=t,w.previousindex=w.activeindex,w.activeindex=e,w.updateclasses())},w.updateclasses=function(){w.slides.removeclass(w.params.slideactiveclass+" "+w.params.slidenextclass+" "+w.params.slideprevclass);var e=w.slides.eq(w.activeindex);if(e.addclass(w.params.slideactiveclass),e.next("."+w.params.slideclass).addclass(w.params.slidenextclass),e.prev("."+w.params.slideclass).addclass(w.params.slideprevclass),w.bullets&&w.bullets.length>0){w.bullets.removeclass(w.params.bulletactiveclass);var t;w.params.loop?(t=math.ceil(w.activeindex-w.loopedslides)/w.params.slidespergroup,t>w.slides.length-1-2*w.loopedslides&&(t-=w.slides.length-2*w.loopedslides),t>w.bullets.length-1&&(t-=w.bullets.length)):t="undefined"!=typeof w.snapindex?w.snapindex:w.activeindex||0,w.paginationcontainer.length>1?w.bullets.each(function(){a(this).index()===t&&a(this).addclass(w.params.bulletactiveclass)}):w.bullets.eq(t).addclass(w.params.bulletactiveclass)}w.params.loop||(w.params.prevbutton&&(w.isbeginning?(a(w.params.prevbutton).addclass(w.params.buttondisabledclass),w.params.a11y&&w.a11y&&w.a11y.disable(a(w.params.prevbutton))):(a(w.params.prevbutton).removeclass(w.params.buttondisabledclass),w.params.a11y&&w.a11y&&w.a11y.enable(a(w.params.prevbutton)))),w.params.nextbutton&&(w.isend?(a(w.params.nextbutton).addclass(w.params.buttondisabledclass),w.params.a11y&&w.a11y&&w.a11y.disable(a(w.params.nextbutton))):(a(w.params.nextbutton).removeclass(w.params.buttondisabledclass),w.params.a11y&&w.a11y&&w.a11y.enable(a(w.params.nextbutton)))))},w.updatepagination=function(){if(w.params.pagination&&w.paginationcontainer&&w.paginationcontainer.length>0){for(var e="",a=w.params.loop?math.ceil((w.slides.length-2*w.loopedslides)/w.params.slidespergroup):w.snapgrid.length,t=0;a>t;t++)e+=w.params.paginationbulletrender?w.params.paginationbulletrender(t,w.params.bulletclass):"<"+w.params.paginationelement+' class="'+w.params.bulletclass+'">";w.paginationcontainer.html(e),w.bullets=w.paginationcontainer.find("."+w.params.bulletclass),w.params.paginationclickable&&w.params.a11y&&w.a11y&&w.a11y.initpagination()}},w.update=function(e){function a(){r=math.min(math.max(w.translate,w.maxtranslate()),w.mintranslate()),w.setwrappertranslate(r),w.updateactiveindex(),w.updateclasses()}if(w.updatecontainersize(),w.updateslidessize(),w.updateprogress(),w.updatepagination(),w.updateclasses(),w.params.scrollbar&&w.scrollbar&&w.scrollbar.set(),e){var t,r;w.controller&&w.controller.spline&&(w.controller.spline=void 0),w.params.freemode?a():(t=("auto"===w.params.slidesperview||w.params.slidesperview>1)&&w.isend&&!w.params.centeredslides?w.slideto(w.slides.length-1,0,!1,!0):w.slideto(w.activeindex,0,!1,!0),t||a())}},w.onresize=function(e){var a=w.params.allowswipetoprev,t=w.params.allowswipetonext;if(w.params.allowswipetoprev=w.params.allowswipetonext=!0,w.updatecontainersize(),w.updateslidessize(),("auto"===w.params.slidesperview||w.params.freemode||e)&&w.updatepagination(),w.params.scrollbar&&w.scrollbar&&w.scrollbar.set(),w.controller&&w.controller.spline&&(w.controller.spline=void 0),w.params.freemode){var r=math.min(math.max(w.translate,w.maxtranslate()),w.mintranslate());w.setwrappertranslate(r),w.updateactiveindex(),w.updateclasses()}else w.updateclasses(),("auto"===w.params.slidesperview||w.params.slidesperview>1)&&w.isend&&!w.params.centeredslides?w.slideto(w.slides.length-1,0,!1,!0):w.slideto(w.activeindex,0,!1,!0);w.params.allowswipetoprev=a,w.params.allowswipetonext=t};var y=["mousedown","mousemove","mouseup"];window.navigator.pointerenabled?y=["pointerdown","pointermove","pointerup"]:window.navigator.mspointerenabled&&(y=["mspointerdown","mspointermove","mspointerup"]),w.touchevents={start:w.support.touch||!w.params.simulatetouch?"touchstart":y[0],move:w.support.touch||!w.params.simulatetouch?"touchmove":y[1],end:w.support.touch||!w.params.simulatetouch?"touchend":y[2]},(window.navigator.pointerenabled||window.navigator.mspointerenabled)&&("container"===w.params.toucheventstarget?w.container:w.wrapper).addclass("swiper-wp8-"+w.params.direction),w.initevents=function(e){var t=e?"off":"on",r=e?"removeeventlistener":"addeventlistener",i="container"===w.params.toucheventstarget?w.container[0]:w.wrapper[0],n=w.support.touch?i:document,o=w.params.nested?!0:!1;w.browser.ie?(i[r](w.touchevents.start,w.ontouchstart,!1),n[r](w.touchevents.move,w.ontouchmove,o),n[r](w.touchevents.end,w.ontouchend,!1)):(w.support.touch&&(i[r](w.touchevents.start,w.ontouchstart,!1),i[r](w.touchevents.move,w.ontouchmove,o),i[r](w.touchevents.end,w.ontouchend,!1)),!s.simulatetouch||w.device.ios||w.device.android||(i[r]("mousedown",w.ontouchstart,!1),document[r]("mousemove",w.ontouchmove,o),document[r]("mouseup",w.ontouchend,!1))),window[r]("resize",w.onresize),w.params.nextbutton&&(a(w.params.nextbutton)[t]("click",w.onclicknext),w.params.a11y&&w.a11y&&a(w.params.nextbutton)[t]("keydown",w.a11y.onenterkey)),w.params.prevbutton&&(a(w.params.prevbutton)[t]("click",w.onclickprev),w.params.a11y&&w.a11y&&a(w.params.prevbutton)[t]("keydown",w.a11y.onenterkey)),w.params.pagination&&w.params.paginationclickable&&(a(w.paginationcontainer)[t]("click","."+w.params.bulletclass,w.onclickindex),w.params.a11y&&w.a11y&&a(w.paginationcontainer)[t]("keydown","."+w.params.bulletclass,w.a11y.onenterkey)),(w.params.preventclicks||w.params.preventclickspropagation)&&i[r]("click",w.preventclicks,!0)},w.attachevents=function(e){w.initevents()},w.detachevents=function(){w.initevents(!0)},w.allowclick=!0,w.preventclicks=function(e){w.allowclick||(w.params.preventclicks&&e.preventdefault(),w.params.preventclickspropagation&&w.animating&&(e.stoppropagation(),e.stopimmediatepropagation()))},w.onclicknext=function(e){e.preventdefault(),(!w.isend||w.params.loop)&&w.slidenext()},w.onclickprev=function(e){e.preventdefault(),(!w.isbeginning||w.params.loop)&&w.slideprev()},w.onclickindex=function(e){e.preventdefault();var t=a(this).index()*w.params.slidespergroup;w.params.loop&&(t+=w.loopedslides),w.slideto(t)},w.updateclickedslide=function(e){var t=l(e,"."+w.params.slideclass),r=!1;if(t)for(var s=0;sw.slides.length-w.loopedslides+w.params.slidesperview/2?(w.fixloop(),n=w.wrapper.children("."+w.params.slideclass+'[data-swiper-slide-index="'+i+'"]:not(.swiper-slide-duplicate)').eq(0).index(),settimeout(function(){w.slideto(n)},0)):w.slideto(n):n>w.slides.length-w.params.slidesperview?(w.fixloop(),n=w.wrapper.children("."+w.params.slideclass+'[data-swiper-slide-index="'+i+'"]:not(.swiper-slide-duplicate)').eq(0).index(),settimeout(function(){w.slideto(n)},0)):w.slideto(n)}else w.slideto(n)}};var b,t,x,s,c,m,e,p,z,i="input, select, textarea, button",k=date.now(),l=[];w.animating=!1,w.touches={startx:0,starty:0,currentx:0,currenty:0,diff:0};var d,b;if(w.ontouchstart=function(e){if(e.originalevent&&(e=e.originalevent),d="touchstart"===e.type,d||!("which"in e)||3!==e.which){if(w.params.noswiping&&l(e,"."+w.params.noswipingclass))return void(w.allowclick=!0);if(!w.params.swipehandler||l(e,w.params.swipehandler)){var t=w.touches.currentx="touchstart"===e.type?e.targettouches[0].pagex:e.pagex,r=w.touches.currenty="touchstart"===e.type?e.targettouches[0].pagey:e.pagey;if(!(w.device.ios&&w.params.iosedgeswipedetection&&t<=w.params.iosedgeswipethreshold)){if(b=!0,t=!1,s=void 0,b=void 0,w.touches.startx=t,w.touches.starty=r,x=date.now(),w.allowclick=!0,w.updatecontainersize(),w.swipedirection=void 0,w.params.threshold>0&&(e=!1),"touchstart"!==e.type){var s=!0;a(e.target).is(i)&&(s=!1),document.activeelement&&a(document.activeelement).is(i)&&document.activeelement.blur(),s&&e.preventdefault()}w.emit("ontouchstart",w,e)}}}},w.ontouchmove=function(e){if(e.originalevent&&(e=e.originalevent),!(d&&"mousemove"===e.type||e.preventedbynestedswiper)){if(w.params.onlyexternal)return w.allowclick=!1,void(b&&(w.touches.startx=w.touches.currentx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,w.touches.starty=w.touches.currenty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey,x=date.now()));if(d&&document.activeelement&&e.target===document.activeelement&&a(e.target).is(i))return t=!0,void(w.allowclick=!1);if(w.emit("ontouchmove",w,e),!(e.targettouches&&e.targettouches.length>1)){if(w.touches.currentx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,w.touches.currenty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey,"undefined"==typeof s){var t=180*math.atan2(math.abs(w.touches.currenty-w.touches.starty),math.abs(w.touches.currentx-w.touches.startx))/math.pi;s=i()?t>w.params.touchangle:90-t>w.params.touchangle}if(s&&w.emit("ontouchmoveopposite",w,e),"undefined"==typeof b&&w.browser.ietouch&&(w.touches.currentx!==w.touches.startx||w.touches.currenty!==w.touches.starty)&&(b=!0),b){if(s)return void(b=!1);if(b||!w.browser.ietouch){w.allowclick=!1,w.emit("onslidermove",w,e),e.preventdefault(),w.params.touchmovestoppropagation&&!w.params.nested&&e.stoppropagation(),t||(s.loop&&w.fixloop(),m=w.getwrappertranslate(),w.setwrappertransition(0),w.animating&&w.wrapper.trigger("webkittransitionend transitionend otransitionend mstransitionend mstransitionend"),w.params.autoplay&&w.autoplaying&&(w.params.autoplaydisableoninteraction?w.stopautoplay():w.pauseautoplay()),z=!1,w.params.grabcursor&&(w.container[0].style.cursor="move",w.container[0].style.cursor="-webkit-grabbing",w.container[0].style.cursor="-moz-grabbin",w.container[0].style.cursor="grabbing")),t=!0;var r=w.touches.diff=i()?w.touches.currentx-w.touches.startx:w.touches.currenty-w.touches.starty;r*=w.params.touchratio,w.rtl&&(r=-r),w.swipedirection=r>0?"prev":"next",c=r+m;var n=!0;if(r>0&&c>w.mintranslate()?(n=!1,w.params.resistance&&(c=w.mintranslate()-1+math.pow(-w.mintranslate()+m+r,w.params.resistanceratio))):0>r&&cc&&(c=m),!w.params.allowswipetoprev&&"prev"===w.swipedirection&&c>m&&(c=m),w.params.followfinger){if(w.params.threshold>0){if(!(math.abs(r)>w.params.threshold||e))return void(c=m);if(!e)return e=!0,w.touches.startx=w.touches.currentx,w.touches.starty=w.touches.currenty,c=m,void(w.touches.diff=i()?w.touches.currentx-w.touches.startx:w.touches.currenty-w.touches.starty)}(w.params.freemode||w.params.watchslidesprogress)&&w.updateactiveindex(),w.params.freemode&&(0===l.length&&l.push({position:w.touches[i()?"startx":"starty"],time:x}),l.push({position:w.touches[i()?"currentx":"currenty"],time:(new window.date).gettime()})),w.updateprogress(c),w.setwrappertranslate(c)}}}}}},w.ontouchend=function(e){if(e.originalevent&&(e=e.originalevent),w.emit("ontouchend",w,e),b){w.params.grabcursor&&t&&b&&(w.container[0].style.cursor="move",w.container[0].style.cursor="-webkit-grab",w.container[0].style.cursor="-moz-grab",w.container[0].style.cursor="grab");var t=date.now(),r=t-x;if(w.allowclick&&(w.updateclickedslide(e),w.emit("ontap",w,e),300>r&&t-k>300&&(p&&cleartimeout(p),p=settimeout(function(){w&&(w.params.paginationhide&&w.paginationcontainer.length>0&&!a(e.target).hasclass(w.params.bulletclass)&&w.paginationcontainer.toggleclass(w.params.paginationhiddenclass),w.emit("onclick",w,e))},300)),300>r&&300>t-k&&(p&&cleartimeout(p),w.emit("ondoubletap",w,e))),k=date.now(),settimeout(function(){w&&(w.allowclick=!0)},0),!b||!t||!w.swipedirection||0===w.touches.diff||c===m)return void(b=t=!1);b=t=!1;var s;if(s=w.params.followfinger?w.rtl?w.translate:-w.translate:-c,w.params.freemode){if(s<-w.mintranslate())return void w.slideto(w.activeindex);if(s>-w.maxtranslate())return void(w.slides.length1){var i=l.pop(),n=l.pop(),o=i.position-n.position,l=i.time-n.time;w.velocity=o/l,w.velocity=w.velocity/2,math.abs(w.velocity)150||(new window.date).gettime()-i.time>300)&&(w.velocity=0)}else w.velocity=0;l.length=0;var d=1e3*w.params.freemodemomentumratio,p=w.velocity*d,u=w.translate+p;w.rtl&&(u=-u);var c,m=!1,f=20*math.abs(w.velocity)*w.params.freemodemomentumbounceratio;if(uw.mintranslate())w.params.freemodemomentumbounce?(u-w.mintranslate()>f&&(u=w.mintranslate()+f),c=w.mintranslate(),m=!0,z=!0):u=w.mintranslate();else if(w.params.freemodesticky){var h,g=0;for(g=0;g-u){h=g;break}u=math.abs(w.snapgrid[h]-u)=w.params.longswipesms)&&(w.updateprogress(),w.updateactiveindex()))}var v,y=0,s=w.slidessizesgrid[0];for(v=0;v=w.slidesgrid[v]&&s=w.slidesgrid[v]&&(y=v,s=w.slidesgrid[w.slidesgrid.length-1]-w.slidesgrid[w.slidesgrid.length-2]);var e=(s-w.slidesgrid[y])/s;if(r>w.params.longswipesms){if(!w.params.longswipes)return void w.slideto(w.activeindex);"next"===w.swipedirection&&(e>=w.params.longswipesratio?w.slideto(y+w.params.slidespergroup):w.slideto(y)),"prev"===w.swipedirection&&(e>1-w.params.longswipesratio?w.slideto(y+w.params.slidespergroup):w.slideto(y))}else{if(!w.params.shortswipes)return void w.slideto(w.activeindex);"next"===w.swipedirection&&w.slideto(y+w.params.slidespergroup),"prev"===w.swipedirection&&w.slideto(y)}}},w._slideto=function(e,a){return w.slideto(e,a,!0,!0)},w.slideto=function(e,a,t,r){"undefined"==typeof t&&(t=!0),"undefined"==typeof e&&(e=0),0>e&&(e=0),w.snapindex=math.floor(e/w.params.slidespergroup),w.snapindex>=w.snapgrid.length&&(w.snapindex=w.snapgrid.length-1);var s=-w.snapgrid[w.snapindex];w.params.autoplay&&w.autoplaying&&(r||!w.params.autoplaydisableoninteraction?w.pauseautoplay(a):w.stopautoplay()),w.updateprogress(s);for(var n=0;n=math.floor(100*w.slidesgrid[n])&&(e=n);if(!w.params.allowswipetonext&&sw.translate&&s>w.maxtranslate()&&(w.activeindex||0)!==e)return!1;if("undefined"==typeof a&&(a=w.params.speed),w.previousindex=w.activeindex||0,w.activeindex=e,s===w.translate)return w.updateclasses(),!1;w.updateclasses(),w.ontransitionstart(t);i()?s:0,i()?0:s;return 0===a?(w.setwrappertransition(0),w.setwrappertranslate(s),w.ontransitionend(t)):(w.setwrappertransition(a),w.setwrappertranslate(s),w.animating||(w.animating=!0,w.wrapper.transitionend(function(){w&&w.ontransitionend(t)}))),!0},w.ontransitionstart=function(e){"undefined"==typeof e&&(e=!0),w.lazy&&w.lazy.ontransitionstart(),e&&(w.emit("ontransitionstart",w),w.activeindex!==w.previousindex&&w.emit("onslidechangestart",w))},w.ontransitionend=function(e){w.animating=!1,w.setwrappertransition(0),"undefined"==typeof e&&(e=!0),w.lazy&&w.lazy.ontransitionend(),e&&(w.emit("ontransitionend",w),w.activeindex!==w.previousindex&&w.emit("onslidechangeend",w)),w.params.hashnav&&w.hashnav&&w.hashnav.sethash()},w.slidenext=function(e,a,t){if(w.params.loop){if(w.animating)return!1;w.fixloop();w.container[0].clientleft;return w.slideto(w.activeindex+w.params.slidespergroup,a,e,t)}return w.slideto(w.activeindex+w.params.slidespergroup,a,e,t)},w._slidenext=function(e){return w.slidenext(!0,e,!0)},w.slideprev=function(e,a,t){if(w.params.loop){if(w.animating)return!1;w.fixloop();w.container[0].clientleft;return w.slideto(w.activeindex-1,a,e,t)}return w.slideto(w.activeindex-1,a,e,t)},w._slideprev=function(e){return w.slideprev(!0,e,!0)},w.slidereset=function(e,a,t){return w.slideto(w.activeindex,a,e)},w.setwrappertransition=function(e,a){w.wrapper.transition(e),"slide"!==w.params.effect&&w.effects[w.params.effect]&&w.effects[w.params.effect].settransition(e),w.params.parallax&&w.parallax&&w.parallax.settransition(e),w.params.scrollbar&&w.scrollbar&&w.scrollbar.settransition(e),w.params.control&&w.controller&&w.controller.settransition(e,a),w.emit("onsettransition",w,e)},w.setwrappertranslate=function(e,a,t){var r=0,s=0,o=0;i()?r=w.rtl?-e:e:s=e,w.params.roundlengths&&(r=n(r),s=n(s)),w.params.virtualtranslate||(w.support.transforms3d?w.wrapper.transform("translate3d("+r+"px, "+s+"px, "+o+"px)"):w.wrapper.transform("translate("+r+"px, "+s+"px)")),w.translate=i()?r:s,a&&w.updateactiveindex(),"slide"!==w.params.effect&&w.effects[w.params.effect]&&w.effects[w.params.effect].settranslate(w.translate),w.params.parallax&&w.parallax&&w.parallax.settranslate(w.translate),w.params.scrollbar&&w.scrollbar&&w.scrollbar.settranslate(w.translate),w.params.control&&w.controller&&w.controller.settranslate(w.translate,t),w.emit("onsettranslate",w,w.translate)},w.gettranslate=function(e,a){var t,r,s,i;return"undefined"==typeof a&&(a="x"),w.params.virtualtranslate?w.rtl?-w.translate:w.translate:(s=window.getcomputedstyle(e,null),window.webkitcssmatrix?(r=s.transform||s.webkittransform,r.split(",").length>6&&(r=r.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),i=new window.webkitcssmatrix("none"===r?"":r)):(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:16===t.length?parsefloat(t[12]):parsefloat(t[4])),"y"===a&&(r=window.webkitcssmatrix?i.m42:16===t.length?parsefloat(t[13]):parsefloat(t[5])),w.rtl&&r&&(r=-r),r||0)},w.getwrappertranslate=function(e){return"undefined"==typeof e&&(e=i()?"x":"y"),w.gettranslate(w.wrapper[0],e)},w.observers=[],w.initobservers=function(){if(w.params.observeparents)for(var e=w.container.parents(),a=0;ae.length&&(w.loopedslides=e.length);var t,r=[],s=[];for(e.each(function(t,i){var n=a(this);t=e.length-w.loopedslides&&r.push(i),n.attr("data-swiper-slide-index",t)}),t=0;t=0;t--)w.wrapper.prepend(a(r[t].clonenode(!0)).addclass(w.params.slideduplicateclass))},w.destroyloop=function(){w.wrapper.children("."+w.params.slideclass+"."+w.params.slideduplicateclass).remove(),w.slides.removeattr("data-swiper-slide-index")},w.fixloop=function(){var e;w.activeindex=2*w.loopedslides||w.activeindex>w.slides.length-2*w.params.slidesperview)&&(e=-w.slides.length+w.activeindex+w.loopedslides,e+=w.loopedslides,w.slideto(e,0,!1,!0))},w.appendslide=function(e){if(w.params.loop&&w.destroyloop(),"object"==typeof e&&e.length)for(var a=0;aa&&t--;t=math.max(t,0)}else a=e,w.slides[a]&&w.slides.eq(a).remove(),t>a&&t--,t=math.max(t,0);w.params.loop&&w.createloop(),w.params.observer&&w.support.observer||w.update(!0),w.params.loop?w.slideto(t+w.loopedslides,0,!1):w.slideto(t,0,!1)},w.removeallslides=function(){for(var e=[],a=0;a'),w.wrapper.append(e)),e.css({height:w.width+"px"})):(e=w.container.find(".swiper-cube-shadow"),0===e.length&&(e=a('
'),w.container.append(e))));for(var r=0;r=l&&l>-1&&(t=90*r+90*l,w.rtl&&(t=90*-r-90*l)),s.transform(c),w.params.cube.slideshadows){var m=i()?s.find(".swiper-slide-shadow-left"):s.find(".swiper-slide-shadow-top"),f=i()?s.find(".swiper-slide-shadow-right"):s.find(".swiper-slide-shadow-bottom");0===m.length&&(m=a('
'),s.append(m)),0===f.length&&(f=a('
'),s.append(f));s[0].progress;m.length&&(m[0].style.opacity=-s[0].progress),f.length&&(f[0].style.opacity=s[0].progress)}}if(w.wrapper.css({"-webkit-transform-origin":"50% 50% -"+w.size/2+"px","-moz-transform-origin":"50% 50% -"+w.size/2+"px","-ms-transform-origin":"50% 50% -"+w.size/2+"px","transform-origin":"50% 50% -"+w.size/2+"px"}),w.params.cube.shadow)if(i())e.transform("translate3d(0px, "+(w.width/2+w.params.cube.shadowoffset)+"px, "+-w.width/2+"px) rotatex(90deg) rotatez(0deg) scale("+w.params.cube.shadowscale+")");else{var h=math.abs(t)-90*math.floor(math.abs(t)/90),g=1.5-(math.sin(2*h*math.pi/360)/2+math.cos(2*h*math.pi/360)/2),v=w.params.cube.shadowscale,y=w.params.cube.shadowscale/g,b=w.params.cube.shadowoffset;e.transform("scale3d("+v+", 1, "+y+") translate3d(0px, "+(w.height/2+b)+"px, "+-w.height/2/y+"px) rotatex(-90deg)")}var t=w.issafari||w.isuiwebview?-w.size/2:0;w.wrapper.transform("translate3d(0px,0,"+t+"px) rotatex("+(i()?0:t)+"deg) rotatey("+(i()?-t:0)+"deg)")},settransition:function(e){w.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),w.params.cube.shadow&&!i()&&w.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{settranslate:function(){for(var e=w.translate,t=i()?-e+w.width/2:-e+w.height/2,r=i()?w.params.coverflow.rotate:-w.params.coverflow.rotate,s=w.params.coverflow.depth,n=0,o=w.slides.length;o>n;n++){var l=w.slides.eq(n),d=w.slidessizesgrid[n],p=l[0].swiperslideoffset,u=(t-p-d/2)/d*w.params.coverflow.modifier,c=i()?r*u:0,m=i()?0:r*u,f=-s*math.abs(u),h=i()?0:w.params.coverflow.stretch*u,g=i()?w.params.coverflow.stretch*u:0;math.abs(g)<.001&&(g=0),math.abs(h)<.001&&(h=0),math.abs(f)<.001&&(f=0),math.abs(c)<.001&&(c=0),math.abs(m)<.001&&(m=0);var v="translate3d("+g+"px,"+h+"px,"+f+"px) rotatex("+m+"deg) rotatey("+c+"deg)";if(l.transform(v),l[0].style.zindex=-math.abs(math.round(u))+1,w.params.coverflow.slideshadows){var y=i()?l.find(".swiper-slide-shadow-left"):l.find(".swiper-slide-shadow-top"),b=i()?l.find(".swiper-slide-shadow-right"):l.find(".swiper-slide-shadow-bottom");0===y.length&&(y=a('
'),l.append(y)),0===b.length&&(b=a('
'),l.append(b)),y.length&&(y[0].style.opacity=u>0?u:0),b.length&&(b[0].style.opacity=-u>0?-u:0)}}if(w.browser.ie){var t=w.wrapper[0].style;t.perspectiveorigin=t+"px 50%"}},settransition:function(e){w.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},w.lazy={initialimageloaded:!1,loadimageinslide:function(e,t){if("undefined"!=typeof e&&("undefined"==typeof t&&(t=!0),0!==w.slides.length)){var r=w.slides.eq(e),s=r.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");!r.hasclass("swiper-lazy")||r.hasclass("swiper-lazy-loaded")||r.hasclass("swiper-lazy-loading")||(s=s.add(r[0])),0!==s.length&&s.each(function(){var e=a(this);e.addclass("swiper-lazy-loading");var s=e.attr("data-background"),i=e.attr("data-src"),n=e.attr("data-srcset");w.loadimage(e[0],i||s,n,!1,function(){if(s?(e.css("background-image","url("+s+")"),e.removeattr("data-background")):(n&&(e.attr("srcset",n),e.removeattr("data-srcset")),i&&(e.attr("src",i),e.removeattr("data-src"))),e.addclass("swiper-lazy-loaded").removeclass("swiper-lazy-loading"),r.find(".swiper-lazy-preloader, .preloader").remove(),w.params.loop&&t){var a=r.attr("data-swiper-slide-index");if(r.hasclass(w.params.slideduplicateclass)){var o=w.wrapper.children('[data-swiper-slide-index="'+a+'"]:not(.'+w.params.slideduplicateclass+")");w.lazy.loadimageinslide(o.index(),!1)}else{var l=w.wrapper.children("."+w.params.slideduplicateclass+'[data-swiper-slide-index="'+a+'"]');w.lazy.loadimageinslide(l.index(),!1)}}w.emit("onlazyimageready",w,r[0],e[0])}),w.emit("onlazyimageload",w,r[0],e[0])})}},load:function(){var e;if(w.params.watchslidesvisibility)w.wrapper.children("."+w.params.slidevisibleclass).each(function(){w.lazy.loadimageinslide(a(this).index())});else if(w.params.slidesperview>1)for(e=w.activeindex;e1){for(e=w.activeindex+w.params.slidesperview;e0&&w.lazy.loadimageinslide(t.index());var r=w.wrapper.children("."+w.params.slideprevclass);r.length>0&&w.lazy.loadimageinslide(r.index())}},ontransitionstart:function(){w.params.lazyloading&&(w.params.lazyloadingontransitionstart||!w.params.lazyloadingontransitionstart&&!w.lazy.initialimageloaded)&&w.lazy.load()},ontransitionend:function(){w.params.lazyloading&&!w.params.lazyloadingontransitionstart&&w.lazy.load()}},w.scrollbar={istouched:!1,setdragposition:function(e){var a=w.scrollbar,t=i()?"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].pagex:e.pagex||e.clientx:"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].pagey:e.pagey||e.clienty,r=t-a.track.offset()[i()?"left":"top"]-a.dragsize/2,s=-w.mintranslate()*a.movedivider,n=-w.maxtranslate()*a.movedivider;s>r?r=s:r>n&&(r=n),r=-r/a.movedivider,w.updateprogress(r),w.setwrappertranslate(r,!0)},dragstart:function(e){var a=w.scrollbar;a.istouched=!0,e.preventdefault(),e.stoppropagation(),a.setdragposition(e),cleartimeout(a.dragtimeout),a.track.transition(0),w.params.scrollbarhide&&a.track.css("opacity",1),w.wrapper.transition(100),a.drag.transition(100),w.emit("onscrollbardragstart",w)},dragmove:function(e){var a=w.scrollbar;a.istouched&&(e.preventdefault?e.preventdefault():e.returnvalue=!1,a.setdragposition(e),w.wrapper.transition(0),a.track.transition(0),a.drag.transition(0),w.emit("onscrollbardragmove",w))},dragend:function(e){var a=w.scrollbar;a.istouched&&(a.istouched=!1,w.params.scrollbarhide&&(cleartimeout(a.dragtimeout),a.dragtimeout=settimeout(function(){a.track.css("opacity",0),a.track.transition(400)},1e3)),w.emit("onscrollbardragend",w),w.params.scrollbarsnaponrelease&&w.slidereset())},enabledraggable:function(){var e=w.scrollbar,t=w.support.touch?e.track:document;a(e.track).on(w.touchevents.start,e.dragstart),a(t).on(w.touchevents.move,e.dragmove),a(t).on(w.touchevents.end,e.dragend)},disabledraggable:function(){var e=w.scrollbar,t=w.support.touch?e.track:document;a(e.track).off(w.touchevents.start,e.dragstart),a(t).off(w.touchevents.move,e.dragmove),a(t).off(w.touchevents.end,e.dragend)},set:function(){if(w.params.scrollbar){var e=w.scrollbar;e.track=a(w.params.scrollbar),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=a('
'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.tracksize=i()?e.track[0].offsetwidth:e.track[0].offsetheight,e.divider=w.size/w.virtualsize,e.movedivider=e.divider*(e.tracksize/w.size),e.dragsize=e.tracksize*e.divider,i()?e.drag[0].style.width=e.dragsize+"px":e.drag[0].style.height=e.dragsize+"px",e.divider>=1?e.track[0].style.display="none":e.track[0].style.display="",w.params.scrollbarhide&&(e.track[0].style.opacity=0)}},settranslate:function(){if(w.params.scrollbar){var e,a=w.scrollbar,t=(w.translate||0,a.dragsize);e=(a.tracksize-a.dragsize)*w.progress,w.rtl&&i()?(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),i()?(w.support.transforms3d?a.drag.transform("translate3d("+e+"px, 0, 0)"):a.drag.transform("translatex("+e+"px)"),a.drag[0].style.width=t+"px"):(w.support.transforms3d?a.drag.transform("translate3d(0px, "+e+"px, 0)"):a.drag.transform("translatey("+e+"px)"),a.drag[0].style.height=t+"px"),w.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){w.params.scrollbar&&w.scrollbar.drag.transition(e)}},w.controller={linearspline:function(e,a){this.x=e,this.y=a,this.lastindex=e.length-1;var t,r;this.x.length;this.interpolate=function(e){return e?(r=s(this.x,e),t=r-1,(e-this.x[t])*(this.y[r]-this.y[t])/(this.x[r]-this.x[t])+this.y[t]):0};var s=function(){var e,a,t;return function(r,s){for(a=-1,e=r.length;e-a>1;)r[t=e+a>>1]<=s?a=t:e=t;return e}}()},getinterpolatefunction:function(e){w.controller.spline||(w.controller.spline=w.params.loop?new w.controller.linearspline(w.slidesgrid,e.slidesgrid):new w.controller.linearspline(w.snapgrid,e.snapgrid))},settranslate:function(e,a){function r(a){e=a.rtl&&"horizontal"===a.params.direction?-w.translate:w.translate,"slide"===w.params.controlby&&(w.controller.getinterpolatefunction(a),i=-w.controller.spline.interpolate(-e)),i&&"container"!==w.params.controlby||(s=(a.maxtranslate()-a.mintranslate())/(w.maxtranslate()-w.mintranslate()),i=(e-w.mintranslate())*s+a.mintranslate()),w.params.controlinverse&&(i=a.maxtranslate()-i),a.updateprogress(i),a.setwrappertranslate(i,!1,w),a.updateactiveindex()}var s,i,n=w.params.control;if(w.isarray(n))for(var o=0;ot;t++){var s=w.slides.eq(t),i=s.attr("data-hash");if(i===e&&!s.hasclass(w.params.slideduplicateclass)){var n=s.index();w.slideto(n,a,w.params.runcallbacksoninit,!0)}}}},sethash:function(){w.hashnav.initialized&&w.params.hashnav&&(document.location.hash=w.slides.eq(w.activeindex).attr("data-hash")||"")}},w.disablekeyboardcontrol=function(){a(document).off("keydown",p)},w.enablekeyboardcontrol=function(){a(document).on("keydown",p)},w.mousewheel={event:!1,lastscrolltime:(new window.date).gettime()},w.params.mousewheelcontrol){try{new window.wheelevent("wheel"),w.mousewheel.event="wheel"}catch(g){}w.mousewheel.event||void 0===document.onmousewheel||(w.mousewheel.event="mousewheel"),w.mousewheel.event||(w.mousewheel.event="dommousescroll")}w.disablemousewheelcontrol=function(){return w.mousewheel.event?(w.container.off(w.mousewheel.event,u),!0):!1},w.enablemousewheelcontrol=function(){return w.mousewheel.event?(w.container.on(w.mousewheel.event,u),!0):!1},w.parallax={settranslate:function(){w.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){c(this,w.progress)}),w.slides.each(function(){var e=a(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);c(this,a)})})},settransition:function(e){"undefined"==typeof e&&(e=w.params.speed),w.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=a(this),r=parseint(t.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),t.transition(r)})}},w._plugins=[];for(var o in w.plugins){var a=w.plugins[o](w,w.params[o]);a&&w._plugins.push(a)}return w.callplugins=function(e){for(var a=0;a'),notify:function(e){var a=w.a11y.liveregion;0!==a.length&&(a.html(""),a.html(e))},init:function(){if(w.params.nextbutton){var e=a(w.params.nextbutton);w.a11y.makefocusable(e),w.a11y.addrole(e,"button"),w.a11y.addlabel(e,w.params.nextslidemessage)}if(w.params.prevbutton){var t=a(w.params.prevbutton);w.a11y.makefocusable(t),w.a11y.addrole(t,"button"),w.a11y.addlabel(t,w.params.prevslidemessage)}a(w.container).append(w.a11y.liveregion)},initpagination:function(){w.params.pagination&&w.params.paginationclickable&&w.bullets&&w.bullets.length&&w.bullets.each(function(){var e=a(this);w.a11y.makefocusable(e),w.a11y.addrole(e,"button"),w.a11y.addlabel(e,w.params.paginationbulletmessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){w.a11y.liveregion&&w.a11y.liveregion.length>0&&w.a11y.liveregion.remove()}},w.init=function(){w.params.loop&&w.createloop(),w.updatecontainersize(),w.updateslidessize(),w.updatepagination(),w.params.scrollbar&&w.scrollbar&&(w.scrollbar.set(),w.params.scrollbardraggable&&w.scrollbar.enabledraggable()),"slide"!==w.params.effect&&w.effects[w.params.effect]&&(w.params.loop||w.updateprogress(),w.effects[w.params.effect].settranslate()),w.params.loop?w.slideto(w.params.initialslide+w.loopedslides,0,w.params.runcallbacksoninit):(w.slideto(w.params.initialslide,0,w.params.runcallbacksoninit),0===w.params.initialslide&&(w.parallax&&w.params.parallax&&w.parallax.settranslate(),w.lazy&&w.params.lazyloading&&(w.lazy.load(),w.lazy.initialimageloaded=!0))),w.attachevents(),w.params.observer&&w.support.observer&&w.initobservers(),w.params.preloadimages&&!w.params.lazyloading&&w.preloadimages(),w.params.autoplay&&w.startautoplay(),w.params.keyboardcontrol&&w.enablekeyboardcontrol&&w.enablekeyboardcontrol(),w.params.mousewheelcontrol&&w.enablemousewheelcontrol&&w.enablemousewheelcontrol(),w.params.hashnav&&w.hashnav&&w.hashnav.init(),w.params.a11y&&w.a11y&&w.a11y.init(),w.emit("oninit",w)},w.cleanupstyles=function(){w.container.removeclass(w.classnames.join(" ")).removeattr("style"),w.wrapper.removeattr("style"),w.slides&&w.slides.length&&w.slides.removeclass([w.params.slidevisibleclass,w.params.slideactiveclass,w.params.slidenextclass,w.params.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-column").removeattr("data-swiper-row"),w.paginationcontainer&&w.paginationcontainer.length&&w.paginationcontainer.removeclass(w.params.paginationhiddenclass),w.bullets&&w.bullets.length&&w.bullets.removeclass(w.params.bulletactiveclass),w.params.prevbutton&&a(w.params.prevbutton).removeclass(w.params.buttondisabledclass),w.params.nextbutton&&a(w.params.nextbutton).removeclass(w.params.buttondisabledclass),w.params.scrollbar&&w.scrollbar&&(w.scrollbar.track&&w.scrollbar.track.length&&w.scrollbar.track.removeattr("style"),w.scrollbar.drag&&w.scrollbar.drag.length&&w.scrollbar.drag.removeattr("style"))},w.destroy=function(e,a){w.detachevents(),w.stopautoplay(),w.params.scrollbar&&w.scrollbar&&w.params.scrollbardraggable&&w.scrollbar.disabledraggable(),w.params.loop&&w.destroyloop(),a&&w.cleanupstyles(),w.disconnectobservers(),w.params.keyboardcontrol&&w.disablekeyboardcontrol&&w.disablekeyboardcontrol(),w.params.mousewheelcontrol&&w.disablemousewheelcontrol&&w.disablemousewheelcontrol(),w.params.a11y&&w.a11y&&w.a11y.destroy(),w.emit("ondestroy"),e!==!1&&(w=null)},w.init(),w}};t.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_]+))?/),s=!t&&e.match(/(iphone\sos)\s([\d_]+)/);return{ios:t||s||r,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=0&&o.indexof(">")>=0){var l="div";for(0===o.indexof(":~]/)?(t||document).queryselectorall(a):[document.getelementbyid(a.split("#")[1])],s=0;s0&&a[0].nodetype)for(s=0;s0?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;tr-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=0;r--)this[t].insertbefore(s.childnodes[r],this[t].childnodes[0])}else if(a instanceof e)for(r=0;r1)for(var s=0;s1)for(var s=0;s0?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