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