/** * swiper 3.4.1 * most modern mobile touch slider and framework with hardware accelerated transitions * * http://www.idangero.us/swiper/ * * copyright 2016, vladimir kharlampidi * the idangero.us * http://www.idangero.us/ * * licensed under mit * * released on: december 13, 2016 */ !function(){"use strict";function e(e){e.fn.swiper=function(a){var s;return e(this).each(function(){var e=new t(this,a);s||(s=e)}),s}}var a,t=function(e,i){function r(e){return math.floor(e)}function n(){var e=b.params.autoplay,a=b.slides.eq(b.activeindex);a.attr("data-swiper-autoplay")&&(e=a.attr("data-swiper-autoplay")||b.params.autoplay),b.autoplaytimeoutid=settimeout(function(){b.params.loop?(b.fixloop(),b._slidenext(),b.emit("onautoplay",b)):b.isend?i.autoplaystoponlast?b.stopautoplay():(b._slideto(0),b.emit("onautoplay",b)):(b._slidenext(),b.emit("onautoplay",b))},e)}function o(e,t){var s=a(e.target);if(!s.is(t))if("string"==typeof t)s=s.parents(t);else if(t.nodetype){var i;return s.parents().each(function(e,a){a===t&&(i=t)}),i?t:void 0}if(0!==s.length)return s[0]}function l(e,a){a=a||{};var t=window.mutationobserver||window.webkitmutationobserver,s=new t(function(e){e.foreach(function(e){b.onresize(!0),b.emit("onobserverupdate",b,e)})});s.observe(e,{attributes:"undefined"==typeof a.attributes||a.attributes,childlist:"undefined"==typeof a.childlist||a.childlist,characterdata:"undefined"==typeof a.characterdata||a.characterdata}),b.observers.push(s)}function p(e){e.originalevent&&(e=e.originalevent);var a=e.keycode||e.charcode;if(!b.params.allowswipetonext&&(b.ishorizontal()&&39===a||!b.ishorizontal()&&40===a))return!1;if(!b.params.allowswipetoprev&&(b.ishorizontal()&&37===a||!b.ishorizontal()&&38===a))return!1;if(!(e.shiftkey||e.altkey||e.ctrlkey||e.metakey||document.activeelement&&document.activeelement.nodename&&("input"===document.activeelement.nodename.tolowercase()||"textarea"===document.activeelement.nodename.tolowercase()))){if(37===a||39===a||38===a||40===a){var t=!1;if(b.container.parents("."+b.params.slideclass).length>0&&0===b.container.parents("."+b.params.slideactiveclass).length)return;var s={left:window.pagexoffset,top:window.pageyoffset},i=window.innerwidth,r=window.innerheight,n=b.container.offset();b.rtl&&(n.left=n.left-b.container[0].scrollleft);for(var o=[[n.left,n.top],[n.left+b.width,n.top],[n.left,n.top+b.height],[n.left+b.width,n.top+b.height]],l=0;l=s.left&&p[0]<=s.left+i&&p[1]>=s.top&&p[1]<=s.top+r&&(t=!0)}if(!t)return}b.ishorizontal()?(37!==a&&39!==a||(e.preventdefault?e.preventdefault():e.returnvalue=!1),(39===a&&!b.rtl||37===a&&b.rtl)&&b.slidenext(),(37===a&&!b.rtl||39===a&&b.rtl)&&b.slideprev()):(38!==a&&40!==a||(e.preventdefault?e.preventdefault():e.returnvalue=!1),40===a&&b.slidenext(),38===a&&b.slideprev())}}function d(){var e="onwheel",a=e in document;if(!a){var t=document.createelement("div");t.setattribute(e,"return;"),a="function"==typeof t[e]}return!a&&document.implementation&&document.implementation.hasfeature&&document.implementation.hasfeature("","")!==!0&&(a=document.implementation.hasfeature("events.wheel","3.0")),a}function u(e){e.originalevent&&(e=e.originalevent);var a=0,t=b.rtl?-1:1,s=c(e);if(b.params.mousewheelforcetoaxis)if(b.ishorizontal()){if(!(math.abs(s.pixelx)>math.abs(s.pixely)))return;a=s.pixelx*t}else{if(!(math.abs(s.pixely)>math.abs(s.pixelx)))return;a=s.pixely}else a=math.abs(s.pixelx)>math.abs(s.pixely)?-s.pixelx*t:-s.pixely;if(0!==a){if(b.params.mousewheelinvert&&(a=-a),b.params.freemode){var i=b.getwrappertranslate()+a*b.params.mousewheelsensitivity,r=b.isbeginning,n=b.isend;if(i>=b.mintranslate()&&(i=b.mintranslate()),i<=b.maxtranslate()&&(i=b.maxtranslate()),b.setwrappertransition(0),b.setwrappertranslate(i),b.updateprogress(),b.updateactiveindex(),(!r&&b.isbeginning||!n&&b.isend)&&b.updateclasses(),b.params.freemodesticky?(cleartimeout(b.mousewheel.timeout),b.mousewheel.timeout=settimeout(function(){b.slidereset()},300)):b.params.lazyloading&&b.lazy&&b.lazy.load(),b.emit("onscroll",b,e),b.params.autoplay&&b.params.autoplaydisableoninteraction&&b.stopautoplay(),0===i||i===b.maxtranslate())return}else{if((new window.date).gettime()-b.mousewheel.lastscrolltime>60)if(a<0)if(b.isend&&!b.params.loop||b.animating){if(b.params.mousewheelreleaseonedges)return!0}else b.slidenext(),b.emit("onscroll",b,e);else if(b.isbeginning&&!b.params.loop||b.animating){if(b.params.mousewheelreleaseonedges)return!0}else b.slideprev(),b.emit("onscroll",b,e);b.mousewheel.lastscrolltime=(new window.date).gettime()}return e.preventdefault?e.preventdefault():e.returnvalue=!1,!1}}function c(e){var a=10,t=40,s=800,i=0,r=0,n=0,o=0;return"detail"in e&&(r=e.detail),"wheeldelta"in e&&(r=-e.wheeldelta/120),"wheeldeltay"in e&&(r=-e.wheeldeltay/120),"wheeldeltax"in e&&(i=-e.wheeldeltax/120),"axis"in e&&e.axis===e.horizontal_axis&&(i=r,r=0),n=i*a,o=r*a,"deltay"in e&&(o=e.deltay),"deltax"in e&&(n=e.deltax),(n||o)&&e.deltamode&&(1===e.deltamode?(n*=t,o*=t):(n*=s,o*=s)),n&&!i&&(i=n<1?-1:1),o&&!r&&(r=o<1?-1:1),{spinx:i,spiny:r,pixelx:n,pixely:o}}function m(e,t){e=a(e);var s,i,r,n=b.rtl?-1:1;s=e.attr("data-swiper-parallax")||"0",i=e.attr("data-swiper-parallax-x"),r=e.attr("data-swiper-parallax-y"),i||r?(i=i||"0",r=r||"0"):b.ishorizontal()?(i=s,r="0"):(r=s,i="0"),i=i.indexof("%")>=0?parseint(i,10)*t*n+"%":i*t*n+"px",r=r.indexof("%")>=0?parseint(r,10)*t+"%":r*t+"px",e.transform("translate3d("+i+", "+r+",0px)")}function h(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,i);var g={direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,autoplay:!1,autoplaydisableoninteraction:!0,autoplaystoponlast:!1,iosedgeswipedetection:!1,iosedgeswipethreshold:20,freemode:!1,freemodemomentum:!0,freemodemomentumratio:1,freemodemomentumbounce:!0,freemodemomentumbounceratio:1,freemodemomentumvelocityratio:1,freemodesticky:!1,freemodeminimumvelocity:.02,autoheight:!1,setwrappersize:!1,virtualtranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideshadows:!0},flip:{slideshadows:!0,limitrotation:!0},cube:{slideshadows:!0,shadow:!0,shadowoffset:20,shadowscale:.94},fade:{crossfade:!1},parallax:!1,zoom:!1,zoommax:3,zoommin:1,zoomtoggle:!0,scrollbar:null,scrollbarhide:!0,scrollbardraggable:!1,scrollbarsnaponrelease:!1,keyboardcontrol:!1,mousewheelcontrol:!1,mousewheelreleaseonedges:!1,mousewheelinvert:!1,mousewheelforcetoaxis:!1,mousewheelsensitivity:1,mousewheeleventstarged:"container",hashnav:!1,hashnavwatchstate:!1,history:!1,replacestate:!1,breakpoints:void 0,spacebetween:0,slidesperview:1,slidespercolumn:1,slidespercolumnfill:"column",slidespergroup:1,centeredslides:!1,slidesoffsetbefore:0,slidesoffsetafter:0,roundlengths:!1,touchratio:1,touchangle:45,simulatetouch:!0,shortswipes:!0,longswipes:!0,longswipesratio:.5,longswipesms:300,followfinger:!0,onlyexternal:!1,threshold:0,touchmovestoppropagation:!0,touchreleaseonedges:!1,uniquenavelements:!0,pagination:null,paginationelement:"span",paginationclickable:!1,paginationhide:!1,paginationbulletrender:null,paginationprogressrender:null,paginationfractionrender:null,paginationcustomrender:null,paginationtype:"bullets",resistance:!0,resistanceratio:.85,nextbutton:null,prevbutton:null,watchslidesprogress:!1,watchslidesvisibility:!1,grabcursor:!1,preventclicks:!0,preventclickspropagation:!0,slidetoclickedslide:!1,lazyloading:!1,lazyloadinginprevnext:!1,lazyloadinginprevnextamount:1,lazyloadingontransitionstart:!1,preloadimages:!0,updateonimagesready:!0,loop:!1,loopadditionalslides:0,loopedslides:null,control:void 0,controlinverse:!1,controlby:"slide",normalizeslideindex:!0,allowswipetoprev:!0,allowswipetonext:!0,swipehandler:null,noswiping:!0,noswipingclass:"swiper-no-swiping",passivelisteners:!0,containermodifierclass:"swiper-container-",slideclass:"swiper-slide",slideactiveclass:"swiper-slide-active",slideduplicateactiveclass:"swiper-slide-duplicate-active",slidevisibleclass:"swiper-slide-visible",slideduplicateclass:"swiper-slide-duplicate",slidenextclass:"swiper-slide-next",slideduplicatenextclass:"swiper-slide-duplicate-next",slideprevclass:"swiper-slide-prev",slideduplicateprevclass:"swiper-slide-duplicate-prev",wrapperclass:"swiper-wrapper",bulletclass:"swiper-pagination-bullet",bulletactiveclass:"swiper-pagination-bullet-active",buttondisabledclass:"swiper-button-disabled",paginationcurrentclass:"swiper-pagination-current",paginationtotalclass:"swiper-pagination-total",paginationhiddenclass:"swiper-pagination-hidden",paginationprogressbarclass:"swiper-pagination-progressbar",paginationclickableclass:"swiper-pagination-clickable",paginationmodifierclass:"swiper-pagination-",lazyloadingclass:"swiper-lazy",lazystatusloadingclass:"swiper-lazy-loading",lazystatusloadedclass:"swiper-lazy-loaded",lazypreloaderclass:"swiper-lazy-preloader",notificationclass:"swiper-notification",preloaderclass:"preloader",zoomcontainerclass:"swiper-zoom-container",observer:!1,observeparents:!1,a11y:!1,prevslidemessage:"previous slide",nextslidemessage:"next slide",firstslidemessage:"this is the first slide",lastslidemessage:"this is the last slide",paginationbulletmessage:"go to slide {{index}}",runcallbacksoninit:!0},f=i&&i.virtualtranslate;i=i||{};var v={};for(var w in i)if("object"!=typeof i[w]||null===i[w]||(i[w].nodetype||i[w]===window||i[w]===document||"undefined"!=typeof s&&i[w]instanceof s||"undefined"!=typeof jquery&&i[w]instanceof jquery))v[w]=i[w];else{v[w]={};for(var y in i[w])v[w][y]=i[w][y]}for(var x in g)if("undefined"==typeof i[x])i[x]=g[x];else if("object"==typeof i[x])for(var t in g[x])"undefined"==typeof i[x][t]&&(i[x][t]=g[x][t]);var b=this;if(b.params=i,b.originalparams=v,b.classnames=[],"undefined"!=typeof a&&"undefined"!=typeof s&&(a=s),("undefined"!=typeof a||(a="undefined"==typeof s?window.dom7||window.zepto||window.jquery:s))&&(b.$=a,b.currentbreakpoint=void 0,b.getactivebreakpoint=function(){if(!b.params.breakpoints)return!1;var e,a=!1,t=[];for(e in b.params.breakpoints)b.params.breakpoints.hasownproperty(e)&&t.push(e);t.sort(function(e,a){return parseint(e,10)>parseint(a,10)});for(var s=0;s=window.innerwidth&&!a&&(a=e);return a||"max"},b.setbreakpoint=function(){var e=b.getactivebreakpoint();if(e&&b.currentbreakpoint!==e){var a=e in b.params.breakpoints?b.params.breakpoints[e]:b.originalparams,t=b.params.loop&&a.slidesperview!==b.params.slidesperview;for(var s in a)b.params[s]=a[s];b.currentbreakpoint=e,t&&b.destroyloop&&b.reloop(!0)}},b.params.breakpoints&&b.setbreakpoint(),b.container=a(e),0!==b.container.length)){if(b.container.length>1){var s=[];return b.container.each(function(){s.push(new t(this,i))}),s}b.container[0].swiper=b,b.container.data("swiper",b),b.classnames.push(b.params.containermodifierclass+b.params.direction),b.params.freemode&&b.classnames.push(b.params.containermodifierclass+"free-mode"),b.support.flexbox||(b.classnames.push(b.params.containermodifierclass+"no-flexbox"),b.params.slidespercolumn=1),b.params.autoheight&&b.classnames.push(b.params.containermodifierclass+"autoheight"),(b.params.parallax||b.params.watchslidesvisibility)&&(b.params.watchslidesprogress=!0),b.params.touchreleaseonedges&&(b.params.resistanceratio=0),["cube","coverflow","flip"].indexof(b.params.effect)>=0&&(b.support.transforms3d?(b.params.watchslidesprogress=!0,b.classnames.push(b.params.containermodifierclass+"3d")):b.params.effect="slide"),"slide"!==b.params.effect&&b.classnames.push(b.params.containermodifierclass+b.params.effect),"cube"===b.params.effect&&(b.params.resistanceratio=0,b.params.slidesperview=1,b.params.slidespercolumn=1,b.params.slidespergroup=1,b.params.centeredslides=!1,b.params.spacebetween=0,b.params.virtualtranslate=!0,b.params.setwrappersize=!1),"fade"!==b.params.effect&&"flip"!==b.params.effect||(b.params.slidesperview=1,b.params.slidespercolumn=1,b.params.slidespergroup=1,b.params.watchslidesprogress=!0,b.params.spacebetween=0,b.params.setwrappersize=!1,"undefined"==typeof f&&(b.params.virtualtranslate=!0)),b.params.grabcursor&&b.support.touch&&(b.params.grabcursor=!1),b.wrapper=b.container.children("."+b.params.wrapperclass),b.params.pagination&&(b.paginationcontainer=a(b.params.pagination),b.params.uniquenavelements&&"string"==typeof b.params.pagination&&b.paginationcontainer.length>1&&1===b.container.find(b.params.pagination).length&&(b.paginationcontainer=b.container.find(b.params.pagination)),"bullets"===b.params.paginationtype&&b.params.paginationclickable?b.paginationcontainer.addclass(b.params.paginationmodifierclass+"clickable"):b.params.paginationclickable=!1,b.paginationcontainer.addclass(b.params.paginationmodifierclass+b.params.paginationtype)),(b.params.nextbutton||b.params.prevbutton)&&(b.params.nextbutton&&(b.nextbutton=a(b.params.nextbutton),b.params.uniquenavelements&&"string"==typeof b.params.nextbutton&&b.nextbutton.length>1&&1===b.container.find(b.params.nextbutton).length&&(b.nextbutton=b.container.find(b.params.nextbutton))),b.params.prevbutton&&(b.prevbutton=a(b.params.prevbutton),b.params.uniquenavelements&&"string"==typeof b.params.prevbutton&&b.prevbutton.length>1&&1===b.container.find(b.params.prevbutton).length&&(b.prevbutton=b.container.find(b.params.prevbutton)))),b.ishorizontal=function(){return"horizontal"===b.params.direction},b.rtl=b.ishorizontal()&&("rtl"===b.container[0].dir.tolowercase()||"rtl"===b.container.css("direction")),b.rtl&&b.classnames.push(b.params.containermodifierclass+"rtl"),b.rtl&&(b.wrongrtl="-webkit-box"===b.wrapper.css("display")),b.params.slidespercolumn>1&&b.classnames.push(b.params.containermodifierclass+"multirow"),b.device.android&&b.classnames.push(b.params.containermodifierclass+"android"),b.container.addclass(b.classnames.join(" ")),b.translate=0,b.progress=0,b.velocity=0,b.lockswipetonext=function(){b.params.allowswipetonext=!1,b.params.allowswipetoprev===!1&&b.params.grabcursor&&b.unsetgrabcursor()},b.lockswipetoprev=function(){b.params.allowswipetoprev=!1,b.params.allowswipetonext===!1&&b.params.grabcursor&&b.unsetgrabcursor()},b.lockswipes=function(){b.params.allowswipetonext=b.params.allowswipetoprev=!1,b.params.grabcursor&&b.unsetgrabcursor()},b.unlockswipetonext=function(){b.params.allowswipetonext=!0,b.params.allowswipetoprev===!0&&b.params.grabcursor&&b.setgrabcursor()},b.unlockswipetoprev=function(){b.params.allowswipetoprev=!0,b.params.allowswipetonext===!0&&b.params.grabcursor&&b.setgrabcursor()},b.unlockswipes=function(){b.params.allowswipetonext=b.params.allowswipetoprev=!0,b.params.grabcursor&&b.setgrabcursor()},b.setgrabcursor=function(e){b.container[0].style.cursor="move",b.container[0].style.cursor=e?"-webkit-grabbing":"-webkit-grab",b.container[0].style.cursor=e?"-moz-grabbin":"-moz-grab",b.container[0].style.cursor=e?"grabbing":"grab"},b.unsetgrabcursor=function(){b.container[0].style.cursor=""},b.params.grabcursor&&b.setgrabcursor(),b.imagestoload=[],b.imagesloaded=0,b.loadimage=function(e,a,t,s,i,r){function n(){r&&r()}var o;e.complete&&i?n():a?(o=new window.image,o.onload=n,o.onerror=n,s&&(o.sizes=s),t&&(o.srcset=t),a&&(o.src=a)):n()},b.preloadimages=function(){function e(){"undefined"!=typeof b&&null!==b&&b&&(void 0!==b.imagesloaded&&b.imagesloaded++,b.imagesloaded===b.imagestoload.length&&(b.params.updateonimagesready&&b.update(),b.emit("onimagesready",b)))}b.imagestoload=b.container.find("img");for(var a=0;a1)for(e=0;eb.slides.length)break;a.push(b.slides.eq(s)[0])}else a.push(b.slides.eq(b.activeindex)[0]);for(e=0;et?i:t}t&&b.wrapper.css("height",t+"px")},b.updatecontainersize=function(){var e,a;e="undefined"!=typeof b.params.width?b.params.width:b.container[0].clientwidth,a="undefined"!=typeof b.params.height?b.params.height:b.container[0].clientheight,0===e&&b.ishorizontal()||0===a&&!b.ishorizontal()||(e=e-parseint(b.container.css("padding-left"),10)-parseint(b.container.css("padding-right"),10),a=a-parseint(b.container.css("padding-top"),10)-parseint(b.container.css("padding-bottom"),10),b.width=e,b.height=a,b.size=b.ishorizontal()?b.width:b.height)},b.updateslidessize=function(){b.slides=b.wrapper.children("."+b.params.slideclass),b.snapgrid=[],b.slidesgrid=[],b.slidessizesgrid=[];var e,a=b.params.spacebetween,t=-b.params.slidesoffsetbefore,s=0,i=0;if("undefined"!=typeof b.size){"string"==typeof a&&a.indexof("%")>=0&&(a=parsefloat(a.replace("%",""))/100*b.size),b.virtualsize=-a,b.rtl?b.slides.css({marginleft:"",margintop:""}):b.slides.css({marginright:"",marginbottom:""});var n;b.params.slidespercolumn>1&&(n=math.floor(b.slides.length/b.params.slidespercolumn)===b.slides.length/b.params.slidespercolumn?b.slides.length:math.ceil(b.slides.length/b.params.slidespercolumn)*b.params.slidespercolumn,"auto"!==b.params.slidesperview&&"row"===b.params.slidespercolumnfill&&(n=math.max(n,b.params.slidesperview*b.params.slidespercolumn)));var o,l=b.params.slidespercolumn,p=n/l,d=p-(b.params.slidespercolumn*p-b.slides.length);for(e=0;e1){var c,m,h;"column"===b.params.slidespercolumnfill?(m=math.floor(e/l),h=e-m*l,(m>d||m===d&&h===l-1)&&++h>=l&&(h=0,m++),c=m+h*n/l,u.css({"-webkit-box-ordinal-group":c,"-moz-box-ordinal-group":c,"-ms-flex-order":c,"-webkit-order":c,order:c})):(h=math.floor(e/p),m=e-h*p),u.css("margin-"+(b.ishorizontal()?"top":"left"),0!==h&&b.params.spacebetween&&b.params.spacebetween+"px").attr("data-swiper-column",m).attr("data-swiper-row",h)}"none"!==u.css("display")&&("auto"===b.params.slidesperview?(o=b.ishorizontal()?u.outerwidth(!0):u.outerheight(!0),b.params.roundlengths&&(o=r(o))):(o=(b.size-(b.params.slidesperview-1)*a)/b.params.slidesperview,b.params.roundlengths&&(o=r(o)),b.ishorizontal()?b.slides[e].style.width=o+"px":b.slides[e].style.height=o+"px"),b.slides[e].swiperslidesize=o,b.slidessizesgrid.push(o),b.params.centeredslides?(t=t+o/2+s/2+a,0===e&&(t=t-b.size/2-a),math.abs(t)<.001&&(t=0),i%b.params.slidespergroup===0&&b.snapgrid.push(t),b.slidesgrid.push(t)):(i%b.params.slidespergroup===0&&b.snapgrid.push(t),b.slidesgrid.push(t),t=t+o+a),b.virtualsize+=o+a,s=o,i++)}b.virtualsize=math.max(b.virtualsize,b.size)+b.params.slidesoffsetafter;var g;if(b.rtl&&b.wrongrtl&&("slide"===b.params.effect||"coverflow"===b.params.effect)&&b.wrapper.css({width:b.virtualsize+b.params.spacebetween+"px"}),b.support.flexbox&&!b.params.setwrappersize||(b.ishorizontal()?b.wrapper.css({width:b.virtualsize+b.params.spacebetween+"px"}):b.wrapper.css({height:b.virtualsize+b.params.spacebetween+"px"})),b.params.slidespercolumn>1&&(b.virtualsize=(o+b.params.spacebetween)*n,b.virtualsize=math.ceil(b.virtualsize/b.params.slidespercolumn)-b.params.spacebetween,b.ishorizontal()?b.wrapper.css({width:b.virtualsize+b.params.spacebetween+"px"}):b.wrapper.css({height:b.virtualsize+b.params.spacebetween+"px"}),b.params.centeredslides)){for(g=[],e=0;e1&&b.snapgrid.push(b.virtualsize-b.size)}0===b.snapgrid.length&&(b.snapgrid=[0]),0!==b.params.spacebetween&&(b.ishorizontal()?b.rtl?b.slides.css({marginleft:a+"px"}):b.slides.css({marginright:a+"px"}):b.slides.css({marginbottom:a+"px"})),b.params.watchslidesprogress&&b.updateslidesoffset()}},b.updateslidesoffset=function(){for(var e=0;eb.size&&(s=!0));for(a=b.activeindex-1;a>=0;a--)b.slides[a]&&!s&&(i+=b.slides[a].swiperslidesize,t++,i>b.size&&(s=!0))}else for(e=b.activeindex+1;e=0&&r0&&n<=b.size||r<=0&&n>=b.size;o&&b.slides.eq(t).addclass(b.params.slidevisibleclass)}s.progress=b.rtl?-i:i}}},b.updateprogress=function(e){"undefined"==typeof e&&(e=b.translate||0);var a=b.maxtranslate()-b.mintranslate(),t=b.isbeginning,s=b.isend;0===a?(b.progress=0,b.isbeginning=b.isend=!0):(b.progress=(e-b.mintranslate())/a,b.isbeginning=b.progress<=0,b.isend=b.progress>=1),b.isbeginning&&!t&&b.emit("onreachbeginning",b),b.isend&&!s&&b.emit("onreachend",b),b.params.watchslidesprogress&&b.updateslidesprogress(e),b.emit("onprogress",b,b.progress)},b.updateactiveindex=function(){var e,a,t,s=b.rtl?b.translate:-b.translate;for(a=0;a=b.slidesgrid[a]&&s=b.slidesgrid[a]&&s=b.slidesgrid[a]&&(e=a);b.params.normalizeslideindex&&(e<0||"undefined"==typeof e)&&(e=0),t=math.floor(e/b.params.slidespergroup),t>=b.snapgrid.length&&(t=b.snapgrid.length-1),e!==b.activeindex&&(b.snapindex=t,b.previousindex=b.activeindex,b.activeindex=e,b.updateclasses(),b.updaterealindex())},b.updaterealindex=function(){b.realindex=parseint(b.slides.eq(b.activeindex).attr("data-swiper-slide-index")||b.activeindex,10)},b.updateclasses=function(){b.slides.removeclass(b.params.slideactiveclass+" "+b.params.slidenextclass+" "+b.params.slideprevclass+" "+b.params.slideduplicateactiveclass+" "+b.params.slideduplicatenextclass+" "+b.params.slideduplicateprevclass);var e=b.slides.eq(b.activeindex);e.addclass(b.params.slideactiveclass),i.loop&&(e.hasclass(b.params.slideduplicateclass)?b.wrapper.children("."+b.params.slideclass+":not(."+b.params.slideduplicateclass+')[data-swiper-slide-index="'+b.realindex+'"]').addclass(b.params.slideduplicateactiveclass):b.wrapper.children("."+b.params.slideclass+"."+b.params.slideduplicateclass+'[data-swiper-slide-index="'+b.realindex+'"]').addclass(b.params.slideduplicateactiveclass));var t=e.next("."+b.params.slideclass).addclass(b.params.slidenextclass);b.params.loop&&0===t.length&&(t=b.slides.eq(0),t.addclass(b.params.slidenextclass));var s=e.prev("."+b.params.slideclass).addclass(b.params.slideprevclass);if(b.params.loop&&0===s.length&&(s=b.slides.eq(-1),s.addclass(b.params.slideprevclass)),i.loop&&(t.hasclass(b.params.slideduplicateclass)?b.wrapper.children("."+b.params.slideclass+":not(."+b.params.slideduplicateclass+')[data-swiper-slide-index="'+t.attr("data-swiper-slide-index")+'"]').addclass(b.params.slideduplicatenextclass):b.wrapper.children("."+b.params.slideclass+"."+b.params.slideduplicateclass+'[data-swiper-slide-index="'+t.attr("data-swiper-slide-index")+'"]').addclass(b.params.slideduplicatenextclass),s.hasclass(b.params.slideduplicateclass)?b.wrapper.children("."+b.params.slideclass+":not(."+b.params.slideduplicateclass+')[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addclass(b.params.slideduplicateprevclass):b.wrapper.children("."+b.params.slideclass+"."+b.params.slideduplicateclass+'[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addclass(b.params.slideduplicateprevclass)),b.paginationcontainer&&b.paginationcontainer.length>0){var r,n=b.params.loop?math.ceil((b.slides.length-2*b.loopedslides)/b.params.slidespergroup):b.snapgrid.length;if(b.params.loop?(r=math.ceil((b.activeindex-b.loopedslides)/b.params.slidespergroup),r>b.slides.length-1-2*b.loopedslides&&(r-=b.slides.length-2*b.loopedslides),r>n-1&&(r-=n),r<0&&"bullets"!==b.params.paginationtype&&(r=n+r)):r="undefined"!=typeof b.snapindex?b.snapindex:b.activeindex||0,"bullets"===b.params.paginationtype&&b.bullets&&b.bullets.length>0&&(b.bullets.removeclass(b.params.bulletactiveclass),b.paginationcontainer.length>1?b.bullets.each(function(){a(this).index()===r&&a(this).addclass(b.params.bulletactiveclass)}):b.bullets.eq(r).addclass(b.params.bulletactiveclass)),"fraction"===b.params.paginationtype&&(b.paginationcontainer.find("."+b.params.paginationcurrentclass).text(r+1),b.paginationcontainer.find("."+b.params.paginationtotalclass).text(n)),"progress"===b.params.paginationtype){var o=(r+1)/n,l=o,p=1;b.ishorizontal()||(p=o,l=1),b.paginationcontainer.find("."+b.params.paginationprogressbarclass).transform("translate3d(0,0,0) scalex("+l+") scaley("+p+")").transition(b.params.speed)}"custom"===b.params.paginationtype&&b.params.paginationcustomrender&&(b.paginationcontainer.html(b.params.paginationcustomrender(b,r+1,n)),b.emit("onpaginationrendered",b,b.paginationcontainer[0]))}b.params.loop||(b.params.prevbutton&&b.prevbutton&&b.prevbutton.length>0&&(b.isbeginning?(b.prevbutton.addclass(b.params.buttondisabledclass),b.params.a11y&&b.a11y&&b.a11y.disable(b.prevbutton)):(b.prevbutton.removeclass(b.params.buttondisabledclass),b.params.a11y&&b.a11y&&b.a11y.enable(b.prevbutton))),b.params.nextbutton&&b.nextbutton&&b.nextbutton.length>0&&(b.isend?(b.nextbutton.addclass(b.params.buttondisabledclass),b.params.a11y&&b.a11y&&b.a11y.disable(b.nextbutton)):(b.nextbutton.removeclass(b.params.buttondisabledclass),b.params.a11y&&b.a11y&&b.a11y.enable(b.nextbutton))))},b.updatepagination=function(){if(b.params.pagination&&b.paginationcontainer&&b.paginationcontainer.length>0){var e="";if("bullets"===b.params.paginationtype){for(var a=b.params.loop?math.ceil((b.slides.length-2*b.loopedslides)/b.params.slidespergroup):b.snapgrid.length,t=0;t";b.paginationcontainer.html(e),b.bullets=b.paginationcontainer.find("."+b.params.bulletclass),b.params.paginationclickable&&b.params.a11y&&b.a11y&&b.a11y.initpagination()}"fraction"===b.params.paginationtype&&(e=b.params.paginationfractionrender?b.params.paginationfractionrender(b,b.params.paginationcurrentclass,b.params.paginationtotalclass):' / ',b.paginationcontainer.html(e)),"progress"===b.params.paginationtype&&(e=b.params.paginationprogressrender?b.params.paginationprogressrender(b,b.params.paginationprogressbarclass):'',b.paginationcontainer.html(e)),"custom"!==b.params.paginationtype&&b.emit("onpaginationrendered",b,b.paginationcontainer[0])}},b.update=function(e){function a(){b.rtl?-b.translate:b.translate;s=math.min(math.max(b.translate,b.maxtranslate()),b.mintranslate()),b.setwrappertranslate(s),b.updateactiveindex(),b.updateclasses()}if(b)if(b.updatecontainersize(),b.updateslidessize(),b.updateprogress(),b.updatepagination(),b.updateclasses(),b.params.scrollbar&&b.scrollbar&&b.scrollbar.set(),e){var t,s;b.controller&&b.controller.spline&&(b.controller.spline=void 0),b.params.freemode?(a(),b.params.autoheight&&b.updateautoheight()):(t=("auto"===b.params.slidesperview||b.params.slidesperview>1)&&b.isend&&!b.params.centeredslides?b.slideto(b.slides.length-1,0,!1,!0):b.slideto(b.activeindex,0,!1,!0),t||a())}else b.params.autoheight&&b.updateautoheight()},b.onresize=function(e){b.params.breakpoints&&b.setbreakpoint();var a=b.params.allowswipetoprev,t=b.params.allowswipetonext;b.params.allowswipetoprev=b.params.allowswipetonext=!0,b.updatecontainersize(),b.updateslidessize(),("auto"===b.params.slidesperview||b.params.freemode||e)&&b.updatepagination(),b.params.scrollbar&&b.scrollbar&&b.scrollbar.set(),b.controller&&b.controller.spline&&(b.controller.spline=void 0);var s=!1;if(b.params.freemode){var i=math.min(math.max(b.translate,b.maxtranslate()),b.mintranslate());b.setwrappertranslate(i),b.updateactiveindex(),b.updateclasses(),b.params.autoheight&&b.updateautoheight()}else b.updateclasses(),s=("auto"===b.params.slidesperview||b.params.slidesperview>1)&&b.isend&&!b.params.centeredslides?b.slideto(b.slides.length-1,0,!1,!0):b.slideto(b.activeindex,0,!1,!0);b.params.lazyloading&&!s&&b.lazy&&b.lazy.load(),b.params.allowswipetoprev=a,b.params.allowswipetonext=t},b.toucheventsdesktop={start:"mousedown",move:"mousemove",end:"mouseup"},window.navigator.pointerenabled?b.toucheventsdesktop={start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.mspointerenabled&&(b.toucheventsdesktop={start:"mspointerdown",move:"mspointermove",end:"mspointerup"}),b.touchevents={start:b.support.touch||!b.params.simulatetouch?"touchstart":b.toucheventsdesktop.start,move:b.support.touch||!b.params.simulatetouch?"touchmove":b.toucheventsdesktop.move,end:b.support.touch||!b.params.simulatetouch?"touchend":b.toucheventsdesktop.end},(window.navigator.pointerenabled||window.navigator.mspointerenabled)&&("container"===b.params.toucheventstarget?b.container:b.wrapper).addclass("swiper-wp8-"+b.params.direction),b.initevents=function(e){var a=e?"off":"on",t=e?"removeeventlistener":"addeventlistener",s="container"===b.params.toucheventstarget?b.container[0]:b.wrapper[0],r=b.support.touch?s:document,n=!!b.params.nested;if(b.browser.ie)s[t](b.touchevents.start,b.ontouchstart,!1),r[t](b.touchevents.move,b.ontouchmove,n),r[t](b.touchevents.end,b.ontouchend,!1);else{if(b.support.touch){var o=!("touchstart"!==b.touchevents.start||!b.support.passivelistener||!b.params.passivelisteners)&&{passive:!0,capture:!1};s[t](b.touchevents.start,b.ontouchstart,o),s[t](b.touchevents.move,b.ontouchmove,n),s[t](b.touchevents.end,b.ontouchend,o)}(i.simulatetouch&&!b.device.ios&&!b.device.android||i.simulatetouch&&!b.support.touch&&b.device.ios)&&(s[t]("mousedown",b.ontouchstart,!1),document[t]("mousemove",b.ontouchmove,n),document[t]("mouseup",b.ontouchend,!1))}window[t]("resize",b.onresize),b.params.nextbutton&&b.nextbutton&&b.nextbutton.length>0&&(b.nextbutton[a]("click",b.onclicknext),b.params.a11y&&b.a11y&&b.nextbutton[a]("keydown",b.a11y.onenterkey)),b.params.prevbutton&&b.prevbutton&&b.prevbutton.length>0&&(b.prevbutton[a]("click",b.onclickprev),b.params.a11y&&b.a11y&&b.prevbutton[a]("keydown",b.a11y.onenterkey)),b.params.pagination&&b.params.paginationclickable&&(b.paginationcontainer[a]("click","."+b.params.bulletclass,b.onclickindex),b.params.a11y&&b.a11y&&b.paginationcontainer[a]("keydown","."+b.params.bulletclass,b.a11y.onenterkey)),(b.params.preventclicks||b.params.preventclickspropagation)&&s[t]("click",b.preventclicks,!0); },b.attachevents=function(){b.initevents()},b.detachevents=function(){b.initevents(!0)},b.allowclick=!0,b.preventclicks=function(e){b.allowclick||(b.params.preventclicks&&e.preventdefault(),b.params.preventclickspropagation&&b.animating&&(e.stoppropagation(),e.stopimmediatepropagation()))},b.onclicknext=function(e){e.preventdefault(),b.isend&&!b.params.loop||b.slidenext()},b.onclickprev=function(e){e.preventdefault(),b.isbeginning&&!b.params.loop||b.slideprev()},b.onclickindex=function(e){e.preventdefault();var t=a(this).index()*b.params.slidespergroup;b.params.loop&&(t+=b.loopedslides),b.slideto(t)},b.updateclickedslide=function(e){var t=o(e,"."+b.params.slideclass),s=!1;if(t)for(var i=0;ib.slides.length-b.loopedslides+l/2?(b.fixloop(),n=b.wrapper.children("."+b.params.slideclass+'[data-swiper-slide-index="'+r+'"]:not(.'+b.params.slideduplicateclass+")").eq(0).index(),settimeout(function(){b.slideto(n)},0)):b.slideto(n):n>b.slides.length-l?(b.fixloop(),n=b.wrapper.children("."+b.params.slideclass+'[data-swiper-slide-index="'+r+'"]:not(.'+b.params.slideduplicateclass+")").eq(0).index(),settimeout(function(){b.slideto(n)},0)):b.slideto(n)}else b.slideto(n)}};var c,z,m,e,p,i,k,l,d,b,h="input, select, textarea, button, video",g=date.now(),x=[];b.animating=!1,b.touches={startx:0,starty:0,currentx:0,currenty:0,diff:0};var y,a;b.ontouchstart=function(e){if(e.originalevent&&(e=e.originalevent),y="touchstart"===e.type,y||!("which"in e)||3!==e.which){if(b.params.noswiping&&o(e,"."+b.params.noswipingclass))return void(b.allowclick=!0);if(!b.params.swipehandler||o(e,b.params.swipehandler)){var t=b.touches.currentx="touchstart"===e.type?e.targettouches[0].pagex:e.pagex,s=b.touches.currenty="touchstart"===e.type?e.targettouches[0].pagey:e.pagey;if(!(b.device.ios&&b.params.iosedgeswipedetection&&t<=b.params.iosedgeswipethreshold)){if(c=!0,z=!1,m=!0,p=void 0,a=void 0,b.touches.startx=t,b.touches.starty=s,e=date.now(),b.allowclick=!0,b.updatecontainersize(),b.swipedirection=void 0,b.params.threshold>0&&(l=!1),"touchstart"!==e.type){var i=!0;a(e.target).is(h)&&(i=!1),document.activeelement&&a(document.activeelement).is(h)&&document.activeelement.blur(),i&&e.preventdefault()}b.emit("ontouchstart",b,e)}}}},b.ontouchmove=function(e){if(e.originalevent&&(e=e.originalevent),!y||"mousemove"!==e.type){if(e.preventedbynestedswiper)return b.touches.startx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,void(b.touches.starty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey);if(b.params.onlyexternal)return b.allowclick=!1,void(c&&(b.touches.startx=b.touches.currentx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,b.touches.starty=b.touches.currenty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey,e=date.now()));if(y&&b.params.touchreleaseonedges&&!b.params.loop)if(b.ishorizontal()){if(b.touches.currentxb.touches.startx&&b.translate>=b.mintranslate())return}else if(b.touches.currentyb.touches.starty&&b.translate>=b.mintranslate())return;if(y&&document.activeelement&&e.target===document.activeelement&&a(e.target).is(h))return z=!0,void(b.allowclick=!1);if(m&&b.emit("ontouchmove",b,e),!(e.targettouches&&e.targettouches.length>1)){if(b.touches.currentx="touchmove"===e.type?e.targettouches[0].pagex:e.pagex,b.touches.currenty="touchmove"===e.type?e.targettouches[0].pagey:e.pagey,"undefined"==typeof p){var t;b.ishorizontal()&&b.touches.currenty===b.touches.starty||!b.ishorizontal()&&b.touches.currentx===b.touches.startx?p=!1:(t=180*math.atan2(math.abs(b.touches.currenty-b.touches.starty),math.abs(b.touches.currentx-b.touches.startx))/math.pi,p=b.ishorizontal()?t>b.params.touchangle:90-t>b.params.touchangle)}if(p&&b.emit("ontouchmoveopposite",b,e),"undefined"==typeof a&&b.browser.ietouch&&(b.touches.currentx===b.touches.startx&&b.touches.currenty===b.touches.starty||(a=!0)),c){if(p)return void(c=!1);if(a||!b.browser.ietouch){b.allowclick=!1,b.emit("onslidermove",b,e),e.preventdefault(),b.params.touchmovestoppropagation&&!b.params.nested&&e.stoppropagation(),z||(i.loop&&b.fixloop(),k=b.getwrappertranslate(),b.setwrappertransition(0),b.animating&&b.wrapper.trigger("webkittransitionend transitionend otransitionend mstransitionend mstransitionend"),b.params.autoplay&&b.autoplaying&&(b.params.autoplaydisableoninteraction?b.stopautoplay():b.pauseautoplay()),b=!1,!b.params.grabcursor||b.params.allowswipetonext!==!0&&b.params.allowswipetoprev!==!0||b.setgrabcursor(!0)),z=!0;var s=b.touches.diff=b.ishorizontal()?b.touches.currentx-b.touches.startx:b.touches.currenty-b.touches.starty;s*=b.params.touchratio,b.rtl&&(s=-s),b.swipedirection=s>0?"prev":"next",i=s+k;var r=!0;if(s>0&&i>b.mintranslate()?(r=!1,b.params.resistance&&(i=b.mintranslate()-1+math.pow(-b.mintranslate()+k+s,b.params.resistanceratio))):s<0&&ik&&(i=k),b.params.threshold>0){if(!(math.abs(s)>b.params.threshold||l))return void(i=k);if(!l)return l=!0,b.touches.startx=b.touches.currentx,b.touches.starty=b.touches.currenty,i=k,void(b.touches.diff=b.ishorizontal()?b.touches.currentx-b.touches.startx:b.touches.currenty-b.touches.starty)}b.params.followfinger&&((b.params.freemode||b.params.watchslidesprogress)&&b.updateactiveindex(),b.params.freemode&&(0===x.length&&x.push({position:b.touches[b.ishorizontal()?"startx":"starty"],time:e}),x.push({position:b.touches[b.ishorizontal()?"currentx":"currenty"],time:(new window.date).gettime()})),b.updateprogress(i),b.setwrappertranslate(i))}}}}},b.ontouchend=function(e){if(e.originalevent&&(e=e.originalevent),m&&b.emit("ontouchend",b,e),m=!1,c){b.params.grabcursor&&z&&c&&(b.params.allowswipetonext===!0||b.params.allowswipetoprev===!0)&&b.setgrabcursor(!1);var t=date.now(),s=t-e;if(b.allowclick&&(b.updateclickedslide(e),b.emit("ontap",b,e),s<300&&t-g>300&&(d&&cleartimeout(d),d=settimeout(function(){b&&(b.params.paginationhide&&b.paginationcontainer.length>0&&!a(e.target).hasclass(b.params.bulletclass)&&b.paginationcontainer.toggleclass(b.params.paginationhiddenclass),b.emit("onclick",b,e))},300)),s<300&&t-g<300&&(d&&cleartimeout(d),b.emit("ondoubletap",b,e))),g=date.now(),settimeout(function(){b&&(b.allowclick=!0)},0),!c||!z||!b.swipedirection||0===b.touches.diff||i===k)return void(c=z=!1);c=z=!1;var i;if(i=b.params.followfinger?b.rtl?b.translate:-b.translate:-i,b.params.freemode){if(i<-b.mintranslate())return void b.slideto(b.activeindex);if(i>-b.maxtranslate())return void(b.slides.length1){var r=x.pop(),n=x.pop(),o=r.position-n.position,l=r.time-n.time;b.velocity=o/l,b.velocity=b.velocity/2,math.abs(b.velocity)150||(new window.date).gettime()-r.time>300)&&(b.velocity=0)}else b.velocity=0;b.velocity=b.velocity*b.params.freemodemomentumvelocityratio,x.length=0;var p=1e3*b.params.freemodemomentumratio,d=b.velocity*p,u=b.translate+d;b.rtl&&(u=-u);var c,m=!1,h=20*math.abs(b.velocity)*b.params.freemodemomentumbounceratio;if(ub.mintranslate())b.params.freemodemomentumbounce?(u-b.mintranslate()>h&&(u=b.mintranslate()+h),c=b.mintranslate(),m=!0,b=!0):u=b.mintranslate();else if(b.params.freemodesticky){var g,f=0;for(f=0;f-u){g=f;break}u=math.abs(b.snapgrid[g]-u)=b.params.longswipesms)&&(b.updateprogress(),b.updateactiveindex()))}var v,w=0,y=b.slidessizesgrid[0];for(v=0;v=b.slidesgrid[v]&&i=b.slidesgrid[v]&&(w=v,y=b.slidesgrid[b.slidesgrid.length-1]-b.slidesgrid[b.slidesgrid.length-2]);var x=(i-b.slidesgrid[w])/y;if(s>b.params.longswipesms){if(!b.params.longswipes)return void b.slideto(b.activeindex);"next"===b.swipedirection&&(x>=b.params.longswipesratio?b.slideto(w+b.params.slidespergroup):b.slideto(w)),"prev"===b.swipedirection&&(x>1-b.params.longswipesratio?b.slideto(w+b.params.slidespergroup):b.slideto(w))}else{if(!b.params.shortswipes)return void b.slideto(b.activeindex);"next"===b.swipedirection&&b.slideto(w+b.params.slidespergroup),"prev"===b.swipedirection&&b.slideto(w)}}},b._slideto=function(e,a){return b.slideto(e,a,!0,!0)},b.slideto=function(e,a,t,s){"undefined"==typeof t&&(t=!0),"undefined"==typeof e&&(e=0),e<0&&(e=0),b.snapindex=math.floor(e/b.params.slidespergroup),b.snapindex>=b.snapgrid.length&&(b.snapindex=b.snapgrid.length-1);var i=-b.snapgrid[b.snapindex];if(b.params.autoplay&&b.autoplaying&&(s||!b.params.autoplaydisableoninteraction?b.pauseautoplay(a):b.stopautoplay()),b.updateprogress(i),b.params.normalizeslideindex)for(var r=0;r=math.floor(100*b.slidesgrid[r])&&(e=r);return!(!b.params.allowswipetonext&&ib.translate&&i>b.maxtranslate()&&(b.activeindex||0)!==e)&&("undefined"==typeof a&&(a=b.params.speed),b.previousindex=b.activeindex||0,b.activeindex=e,b.updaterealindex(),b.rtl&&-i===b.translate||!b.rtl&&i===b.translate?(b.params.autoheight&&b.updateautoheight(),b.updateclasses(),"slide"!==b.params.effect&&b.setwrappertranslate(i),!1):(b.updateclasses(),b.ontransitionstart(t),0===a||b.browser.lteie9?(b.setwrappertranslate(i),b.setwrappertransition(0),b.ontransitionend(t)):(b.setwrappertranslate(i),b.setwrappertransition(a),b.animating||(b.animating=!0,b.wrapper.transitionend(function(){b&&b.ontransitionend(t)}))),!0)))},b.ontransitionstart=function(e){"undefined"==typeof e&&(e=!0),b.params.autoheight&&b.updateautoheight(),b.lazy&&b.lazy.ontransitionstart(),e&&(b.emit("ontransitionstart",b),b.activeindex!==b.previousindex&&(b.emit("onslidechangestart",b),b.activeindex>b.previousindex?b.emit("onslidenextstart",b):b.emit("onslideprevstart",b)))},b.ontransitionend=function(e){b.animating=!1,b.setwrappertransition(0),"undefined"==typeof e&&(e=!0),b.lazy&&b.lazy.ontransitionend(),e&&(b.emit("ontransitionend",b),b.activeindex!==b.previousindex&&(b.emit("onslidechangeend",b),b.activeindex>b.previousindex?b.emit("onslidenextend",b):b.emit("onslideprevend",b))),b.params.history&&b.history&&b.history.sethistory(b.params.history,b.activeindex),b.params.hashnav&&b.hashnav&&b.hashnav.sethash()},b.slidenext=function(e,a,t){if(b.params.loop){if(b.animating)return!1;b.fixloop();b.container[0].clientleft;return b.slideto(b.activeindex+b.params.slidespergroup,a,e,t)}return b.slideto(b.activeindex+b.params.slidespergroup,a,e,t)},b._slidenext=function(e){return b.slidenext(!0,e,!0)},b.slideprev=function(e,a,t){if(b.params.loop){if(b.animating)return!1;b.fixloop();b.container[0].clientleft;return b.slideto(b.activeindex-1,a,e,t)}return b.slideto(b.activeindex-1,a,e,t)},b._slideprev=function(e){return b.slideprev(!0,e,!0)},b.slidereset=function(e,a,t){return b.slideto(b.activeindex,a,e)},b.disabletouchcontrol=function(){return b.params.onlyexternal=!0,!0},b.enabletouchcontrol=function(){return b.params.onlyexternal=!1,!0},b.setwrappertransition=function(e,a){b.wrapper.transition(e),"slide"!==b.params.effect&&b.effects[b.params.effect]&&b.effects[b.params.effect].settransition(e),b.params.parallax&&b.parallax&&b.parallax.settransition(e),b.params.scrollbar&&b.scrollbar&&b.scrollbar.settransition(e),b.params.control&&b.controller&&b.controller.settransition(e,a),b.emit("onsettransition",b,e)},b.setwrappertranslate=function(e,a,t){var s=0,i=0,n=0;b.ishorizontal()?s=b.rtl?-e:e:i=e,b.params.roundlengths&&(s=r(s),i=r(i)),b.params.virtualtranslate||(b.support.transforms3d?b.wrapper.transform("translate3d("+s+"px, "+i+"px, "+n+"px)"):b.wrapper.transform("translate("+s+"px, "+i+"px)")),b.translate=b.ishorizontal()?s:i;var o,l=b.maxtranslate()-b.mintranslate();o=0===l?0:(e-b.mintranslate())/l,o!==b.progress&&b.updateprogress(e),a&&b.updateactiveindex(),"slide"!==b.params.effect&&b.effects[b.params.effect]&&b.effects[b.params.effect].settranslate(b.translate),b.params.parallax&&b.parallax&&b.parallax.settranslate(b.translate),b.params.scrollbar&&b.scrollbar&&b.scrollbar.settranslate(b.translate),b.params.control&&b.controller&&b.controller.settranslate(b.translate,t),b.emit("onsettranslate",b,b.translate)},b.gettranslate=function(e,a){var t,s,i,r;return"undefined"==typeof a&&(a="x"),b.params.virtualtranslate?b.rtl?-b.translate:b.translate:(i=window.getcomputedstyle(e,null),window.webkitcssmatrix?(s=i.transform||i.webkittransform,s.split(",").length>6&&(s=s.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),r=new window.webkitcssmatrix("none"===s?"":s)):(r=i.moztransform||i.otransform||i.mstransform||i.mstransform||i.transform||i.getpropertyvalue("transform").replace("translate(","matrix(1, 0, 0, 1,"),t=r.tostring().split(",")),"x"===a&&(s=window.webkitcssmatrix?r.m41:16===t.length?parsefloat(t[12]):parsefloat(t[4])),"y"===a&&(s=window.webkitcssmatrix?r.m42:16===t.length?parsefloat(t[13]):parsefloat(t[5])),b.rtl&&s&&(s=-s),s||0)},b.getwrappertranslate=function(e){return"undefined"==typeof e&&(e=b.ishorizontal()?"x":"y"),b.gettranslate(b.wrapper[0],e)},b.observers=[],b.initobservers=function(){if(b.params.observeparents)for(var e=b.container.parents(),a=0;ae.length&&(b.loopedslides=e.length);var t,s=[],i=[];for(e.each(function(t,r){var n=a(this);t=e.length-b.loopedslides&&s.push(r),n.attr("data-swiper-slide-index",t)}),t=0;t=0;t--)b.wrapper.prepend(a(s[t].clonenode(!0)).addclass(b.params.slideduplicateclass))},b.destroyloop=function(){b.wrapper.children("."+b.params.slideclass+"."+b.params.slideduplicateclass).remove(),b.slides.removeattr("data-swiper-slide-index")},b.reloop=function(e){var a=b.activeindex-b.loopedslides;b.destroyloop(),b.createloop(),b.updateslidessize(),e&&b.slideto(a+b.loopedslides,0,!1)},b.fixloop=function(){var e;b.activeindex=2*b.loopedslides||b.activeindex>b.slides.length-2*b.params.slidesperview)&&(e=-b.slides.length+b.activeindex+b.loopedslides,e+=b.loopedslides,b.slideto(e,0,!1,!0))},b.appendslide=function(e){if(b.params.loop&&b.destroyloop(),"object"==typeof e&&e.length)for(var a=0;a'),t.append(d)),0===u.length&&(u=a('
'),t.append(u)),d.length&&(d[0].style.opacity=math.max(-s,0)),u.length&&(u[0].style.opacity=math.max(s,0))}t.transform("translate3d("+l+"px, "+p+"px, 0px) rotatex("+o+"deg) rotatey("+n+"deg)")}},settransition:function(e){if(b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),b.params.virtualtranslate&&0!==e){var t=!1;b.slides.eq(b.activeindex).transitionend(function(){if(!t&&b&&a(this).hasclass(b.params.slideactiveclass)){t=!0,b.animating=!1;for(var e=["webkittransitionend","transitionend","otransitionend","mstransitionend","mstransitionend"],s=0;s'),b.wrapper.append(e)),e.css({height:b.width+"px"})):(e=b.container.find(".swiper-cube-shadow"),0===e.length&&(e=a('
'),b.container.append(e))));for(var s=0;s-1&&(t=90*s+90*o,b.rtl&&(t=90*-s-90*o)),i.transform(u),b.params.cube.slideshadows){var c=b.ishorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),m=b.ishorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===c.length&&(c=a('
'),i.append(c)),0===m.length&&(m=a('
'),i.append(m)),c.length&&(c[0].style.opacity=math.max(-o,0)),m.length&&(m[0].style.opacity=math.max(o,0))}}if(b.wrapper.css({"-webkit-transform-origin":"50% 50% -"+b.size/2+"px","-moz-transform-origin":"50% 50% -"+b.size/2+"px","-ms-transform-origin":"50% 50% -"+b.size/2+"px","transform-origin":"50% 50% -"+b.size/2+"px"}),b.params.cube.shadow)if(b.ishorizontal())e.transform("translate3d(0px, "+(b.width/2+b.params.cube.shadowoffset)+"px, "+-b.width/2+"px) rotatex(90deg) rotatez(0deg) scale("+b.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),f=b.params.cube.shadowscale,v=b.params.cube.shadowscale/g,w=b.params.cube.shadowoffset;e.transform("scale3d("+f+", 1, "+v+") translate3d(0px, "+(b.height/2+w)+"px, "+-b.height/2/v+"px) rotatex(-90deg)")}var y=b.issafari||b.isuiwebview?-b.size/2:0;b.wrapper.transform("translate3d(0px,0,"+y+"px) rotatex("+(b.ishorizontal()?0:t)+"deg) rotatey("+(b.ishorizontal()?-t:0)+"deg)")},settransition:function(e){b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),b.params.cube.shadow&&!b.ishorizontal()&&b.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{settranslate:function(){for(var e=b.translate,t=b.ishorizontal()?-e+b.width/2:-e+b.height/2,s=b.ishorizontal()?b.params.coverflow.rotate:-b.params.coverflow.rotate,i=b.params.coverflow.depth,r=0,n=b.slides.length;r'),o.append(v)),0===w.length&&(w=a('
'),o.append(w)),v.length&&(v[0].style.opacity=d>0?d:0),w.length&&(w[0].style.opacity=-d>0?-d:0)}}if(b.browser.ie){var y=b.wrapper[0].style;y.perspectiveorigin=t+"px 50%"}},settransition:function(e){b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},b.lazy={initialimageloaded:!1,loadimageinslide:function(e,t){if("undefined"!=typeof e&&("undefined"==typeof t&&(t=!0),0!==b.slides.length)){var s=b.slides.eq(e),i=s.find("."+b.params.lazyloadingclass+":not(."+b.params.lazystatusloadedclass+"):not(."+b.params.lazystatusloadingclass+")");!s.hasclass(b.params.lazyloadingclass)||s.hasclass(b.params.lazystatusloadedclass)||s.hasclass(b.params.lazystatusloadingclass)||(i=i.add(s[0])),0!==i.length&&i.each(function(){var e=a(this);e.addclass(b.params.lazystatusloadingclass);var i=e.attr("data-background"),r=e.attr("data-src"),n=e.attr("data-srcset"),o=e.attr("data-sizes");b.loadimage(e[0],r||i,n,o,!1,function(){if(i?(e.css("background-image",'url("'+i+'")'),e.removeattr("data-background")):(n&&(e.attr("srcset",n),e.removeattr("data-srcset")),o&&(e.attr("sizes",o),e.removeattr("data-sizes")),r&&(e.attr("src",r),e.removeattr("data-src"))),e.addclass(b.params.lazystatusloadedclass).removeclass(b.params.lazystatusloadingclass),s.find("."+b.params.lazypreloaderclass+", ."+b.params.preloaderclass).remove(),b.params.loop&&t){var a=s.attr("data-swiper-slide-index");if(s.hasclass(b.params.slideduplicateclass)){var l=b.wrapper.children('[data-swiper-slide-index="'+a+'"]:not(.'+b.params.slideduplicateclass+")");b.lazy.loadimageinslide(l.index(),!1)}else{var p=b.wrapper.children("."+b.params.slideduplicateclass+'[data-swiper-slide-index="'+a+'"]');b.lazy.loadimageinslide(p.index(),!1)}}b.emit("onlazyimageready",b,s[0],e[0])}),b.emit("onlazyimageload",b,s[0],e[0])})}},load:function(){var e,t=b.params.slidesperview;if("auto"===t&&(t=0),b.lazy.initialimageloaded||(b.lazy.initialimageloaded=!0),b.params.watchslidesvisibility)b.wrapper.children("."+b.params.slidevisibleclass).each(function(){b.lazy.loadimageinslide(a(this).index())});else if(t>1)for(e=b.activeindex;e1||b.params.lazyloadinginprevnextamount&&b.params.lazyloadinginprevnextamount>1){var s=b.params.lazyloadinginprevnextamount,i=t,r=math.min(b.activeindex+i+math.max(s,i),b.slides.length),n=math.max(b.activeindex-math.max(i,s),0);for(e=b.activeindex+t;e0&&b.lazy.loadimageinslide(o.index());var l=b.wrapper.children("."+b.params.slideprevclass);l.length>0&&b.lazy.loadimageinslide(l.index())}},ontransitionstart:function(){b.params.lazyloading&&(b.params.lazyloadingontransitionstart||!b.params.lazyloadingontransitionstart&&!b.lazy.initialimageloaded)&&b.lazy.load()},ontransitionend:function(){b.params.lazyloading&&!b.params.lazyloadingontransitionstart&&b.lazy.load()}},b.scrollbar={istouched:!1,setdragposition:function(e){var a=b.scrollbar,t=b.ishorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].pagex:e.pagex||e.clientx:"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].pagey:e.pagey||e.clienty,s=t-a.track.offset()[b.ishorizontal()?"left":"top"]-a.dragsize/2,i=-b.mintranslate()*a.movedivider,r=-b.maxtranslate()*a.movedivider;sr&&(s=r),s=-s/a.movedivider,b.updateprogress(s),b.setwrappertranslate(s,!0)},dragstart:function(e){var a=b.scrollbar;a.istouched=!0,e.preventdefault(),e.stoppropagation(),a.setdragposition(e),cleartimeout(a.dragtimeout),a.track.transition(0),b.params.scrollbarhide&&a.track.css("opacity",1),b.wrapper.transition(100),a.drag.transition(100),b.emit("onscrollbardragstart",b)},dragmove:function(e){var a=b.scrollbar;a.istouched&&(e.preventdefault?e.preventdefault():e.returnvalue=!1,a.setdragposition(e),b.wrapper.transition(0),a.track.transition(0),a.drag.transition(0),b.emit("onscrollbardragmove",b))},dragend:function(e){var a=b.scrollbar;a.istouched&&(a.istouched=!1,b.params.scrollbarhide&&(cleartimeout(a.dragtimeout),a.dragtimeout=settimeout(function(){a.track.css("opacity",0),a.track.transition(400)},1e3)),b.emit("onscrollbardragend",b),b.params.scrollbarsnaponrelease&&b.slidereset())},draggableevents:function(){return b.params.simulatetouch!==!1||b.support.touch?b.touchevents:b.toucheventsdesktop}(),enabledraggable:function(){var e=b.scrollbar,t=b.support.touch?e.track:document;a(e.track).on(e.draggableevents.start,e.dragstart),a(t).on(e.draggableevents.move,e.dragmove),a(t).on(e.draggableevents.end,e.dragend)},disabledraggable:function(){var e=b.scrollbar,t=b.support.touch?e.track:document;a(e.track).off(e.draggableevents.start,e.dragstart),a(t).off(e.draggableevents.move,e.dragmove),a(t).off(e.draggableevents.end,e.dragend)},set:function(){if(b.params.scrollbar){var e=b.scrollbar;e.track=a(b.params.scrollbar),b.params.uniquenavelements&&"string"==typeof b.params.scrollbar&&e.track.length>1&&1===b.container.find(b.params.scrollbar).length&&(e.track=b.container.find(b.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=b.ishorizontal()?e.track[0].offsetwidth:e.track[0].offsetheight,e.divider=b.size/b.virtualsize,e.movedivider=e.divider*(e.tracksize/b.size),e.dragsize=e.tracksize*e.divider,b.ishorizontal()?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="",b.params.scrollbarhide&&(e.track[0].style.opacity=0)}},settranslate:function(){if(b.params.scrollbar){var e,a=b.scrollbar,t=(b.translate||0,a.dragsize);e=(a.tracksize-a.dragsize)*b.progress,b.rtl&&b.ishorizontal()?(e=-e,e>0?(t=a.dragsize-e,e=0):-e+a.dragsize>a.tracksize&&(t=a.tracksize+e)):e<0?(t=a.dragsize+e,e=0):e+a.dragsize>a.tracksize&&(t=a.tracksize-e),b.ishorizontal()?(b.support.transforms3d?a.drag.transform("translate3d("+e+"px, 0, 0)"):a.drag.transform("translatex("+e+"px)"),a.drag[0].style.width=t+"px"):(b.support.transforms3d?a.drag.transform("translate3d(0px, "+e+"px, 0)"):a.drag.transform("translatey("+e+"px)"),a.drag[0].style.height=t+"px"),b.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){b.params.scrollbar&&b.scrollbar.drag.transition(e)}},b.controller={linearspline:function(e,a){this.x=e,this.y=a,this.lastindex=e.length-1;var t,s;this.x.length;this.interpolate=function(e){return e?(s=i(this.x,e),t=s-1,(e-this.x[t])*(this.y[s]-this.y[t])/(this.x[s]-this.x[t])+this.y[t]):0};var i=function(){var e,a,t;return function(s,i){for(a=-1,e=s.length;e-a>1;)s[t=e+a>>1]<=i?a=t:e=t;return e}}()},getinterpolatefunction:function(e){b.controller.spline||(b.controller.spline=b.params.loop?new b.controller.linearspline(b.slidesgrid,e.slidesgrid):new b.controller.linearspline(b.snapgrid,e.snapgrid))},settranslate:function(e,a){function s(a){e=a.rtl&&"horizontal"===a.params.direction?-b.translate:b.translate,"slide"===b.params.controlby&&(b.controller.getinterpolatefunction(a),r=-b.controller.spline.interpolate(-e)),r&&"container"!==b.params.controlby||(i=(a.maxtranslate()-a.mintranslate())/(b.maxtranslate()-b.mintranslate()),r=(e-b.mintranslate())*i+a.mintranslate()),b.params.controlinverse&&(r=a.maxtranslate()-r),a.updateprogress(r),a.setwrappertranslate(r,!1,b),a.updateactiveindex()}var i,r,n=b.params.control;if(b.isarray(n))for(var o=0;o-1?"dommousescroll":d()?"wheel":"mousewheel"),b.disablemousewheelcontrol=function(){if(!b.mousewheel.event)return!1;var e=b.container;return"container"!==b.params.mousewheeleventstarged&&(e=a(b.params.mousewheeleventstarged)),e.off(b.mousewheel.event,u),!0},b.enablemousewheelcontrol=function(){if(!b.mousewheel.event)return!1;var e=b.container;return"container"!==b.params.mousewheeleventstarged&&(e=a(b.params.mousewheeleventstarged)),e.on(b.mousewheel.event,u),!0},b.parallax={settranslate:function(){b.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){m(this,b.progress)}),b.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);m(this,a)})})},settransition:function(e){"undefined"==typeof e&&(e=b.params.speed),b.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=a(this),s=parseint(t.attr("data-swiper-parallax-duration"),10)||e;0===e&&(s=0),t.transition(s)})}},b.zoom={scale:1,currentscale:1,isscaling:!1,gesture:{slide:void 0,slidewidth:void 0,slideheight:void 0,image:void 0,imagewrap:void 0,zoommax:b.params.zoommax},image:{istouched:void 0,ismoved:void 0,currentx:void 0,currenty:void 0,minx:void 0,miny:void 0,maxx:void 0,maxy:void 0,width:void 0,height:void 0,startx:void 0,starty:void 0,touchesstart:{},touchescurrent:{}},velocity:{x:void 0,y:void 0,prevpositionx:void 0,prevpositiony:void 0,prevtime:void 0},getdistancebetweentouches:function(e){if(e.targettouches.length<2)return 1;var a=e.targettouches[0].pagex,t=e.targettouches[0].pagey,s=e.targettouches[1].pagex,i=e.targettouches[1].pagey,r=math.sqrt(math.pow(s-a,2)+math.pow(i-t,2));return r},ongesturestart:function(e){var t=b.zoom;if(!b.support.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targettouches.length<2)return;t.gesture.scalestart=t.getdistancebetweentouches(e)}return t.gesture.slide&&t.gesture.slide.length||(t.gesture.slide=a(this),0===t.gesture.slide.length&&(t.gesture.slide=b.slides.eq(b.activeindex)),t.gesture.image=t.gesture.slide.find("img, svg, canvas"),t.gesture.imagewrap=t.gesture.image.parent("."+b.params.zoomcontainerclass),t.gesture.zoommax=t.gesture.imagewrap.attr("data-swiper-zoom")||b.params.zoommax,0!==t.gesture.imagewrap.length)?(t.gesture.image.transition(0),void(t.isscaling=!0)):void(t.gesture.image=void 0)},ongesturechange:function(e){var a=b.zoom;if(!b.support.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targettouches.length<2)return;a.gesture.scalemove=a.getdistancebetweentouches(e)}a.gesture.image&&0!==a.gesture.image.length&&(b.support.gestures?a.scale=e.scale*a.currentscale:a.scale=a.gesture.scalemove/a.gesture.scalestart*a.currentscale,a.scale>a.gesture.zoommax&&(a.scale=a.gesture.zoommax-1+math.pow(a.scale-a.gesture.zoommax+1,.5)),a.scalea.image.touchesstart.x)return void(a.image.istouched=!1);if(!b.ishorizontal()&&math.floor(a.image.miny)===math.floor(a.image.starty)&&a.image.touchescurrent.ya.image.touchesstart.y)return void(a.image.istouched=!1)}e.preventdefault(),e.stoppropagation(),a.image.ismoved=!0,a.image.currentx=a.image.touchescurrent.x-a.image.touchesstart.x+a.image.startx,a.image.currenty=a.image.touchescurrent.y-a.image.touchesstart.y+a.image.starty,a.image.currentxa.image.maxx&&(a.image.currentx=a.image.maxx-1+math.pow(a.image.currentx-a.image.maxx+1,.8)),a.image.currentya.image.maxy&&(a.image.currenty=a.image.maxy-1+math.pow(a.image.currenty-a.image.maxy+1,.8)),a.velocity.prevpositionx||(a.velocity.prevpositionx=a.image.touchescurrent.x),a.velocity.prevpositiony||(a.velocity.prevpositiony=a.image.touchescurrent.y),a.velocity.prevtime||(a.velocity.prevtime=date.now()),a.velocity.x=(a.image.touchescurrent.x-a.velocity.prevpositionx)/(date.now()-a.velocity.prevtime)/2,a.velocity.y=(a.image.touchescurrent.y-a.velocity.prevpositiony)/(date.now()-a.velocity.prevtime)/2,math.abs(a.image.touchescurrent.x-a.velocity.prevpositionx)<2&&(a.velocity.x=0),math.abs(a.image.touchescurrent.y-a.velocity.prevpositiony)<2&&(a.velocity.y=0),a.velocity.prevpositionx=a.image.touchescurrent.x,a.velocity.prevpositiony=a.image.touchescurrent.y,a.velocity.prevtime=date.now(),a.gesture.imagewrap.transform("translate3d("+a.image.currentx+"px, "+a.image.currenty+"px,0)")}}},ontouchend:function(e,a){var t=e.zoom;if(t.gesture.image&&0!==t.gesture.image.length){if(!t.image.istouched||!t.image.ismoved)return t.image.istouched=!1,void(t.image.ismoved=!1);t.image.istouched=!1,t.image.ismoved=!1;var s=300,i=300,r=t.velocity.x*s,n=t.image.currentx+r,o=t.velocity.y*i,l=t.image.currenty+o;0!==t.velocity.x&&(s=math.abs((n-t.image.currentx)/t.velocity.x)),0!==t.velocity.y&&(i=math.abs((l-t.image.currenty)/t.velocity.y));var p=math.max(s,i);t.image.currentx=n,t.image.currenty=l;var d=t.image.width*t.scale,u=t.image.height*t.scale;t.image.minx=math.min(t.gesture.slidewidth/2-d/2,0),t.image.maxx=-t.image.minx,t.image.miny=math.min(t.gesture.slideheight/2-u/2,0),t.image.maxy=-t.image.miny,t.image.currentx=math.max(math.min(t.image.currentx,t.image.maxx),t.image.minx),t.image.currenty=math.max(math.min(t.image.currenty,t.image.maxy),t.image.miny),t.gesture.imagewrap.transition(p).transform("translate3d("+t.image.currentx+"px, "+t.image.currenty+"px,0)")}},ontransitionend:function(e){var a=e.zoom;a.gesture.slide&&e.previousindex!==e.activeindex&&(a.gesture.image.transform("translate3d(0,0,0) scale(1)"),a.gesture.imagewrap.transform("translate3d(0,0,0)"),a.gesture.slide=a.gesture.image=a.gesture.imagewrap=void 0,a.scale=a.currentscale=1)},togglezoom:function(e,t){var s=e.zoom;if(s.gesture.slide||(s.gesture.slide=e.clickedslide?a(e.clickedslide):e.slides.eq(e.activeindex),s.gesture.image=s.gesture.slide.find("img, svg, canvas"),s.gesture.imagewrap=s.gesture.image.parent("."+e.params.zoomcontainerclass)),s.gesture.image&&0!==s.gesture.image.length){var i,r,n,o,l,p,d,u,c,m,h,g,f,v,w,y,x,t;"undefined"==typeof s.image.touchesstart.x&&t?(i="touchend"===t.type?t.changedtouches[0].pagex:t.pagex,r="touchend"===t.type?t.changedtouches[0].pagey:t.pagey):(i=s.image.touchesstart.x,r=s.image.touchesstart.y),s.scale&&1!==s.scale?(s.scale=s.currentscale=1,s.gesture.imagewrap.transition(300).transform("translate3d(0,0,0)"),s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"),s.gesture.slide=void 0):(s.scale=s.currentscale=s.gesture.imagewrap.attr("data-swiper-zoom")||e.params.zoommax,t?(x=s.gesture.slide[0].offsetwidth,t=s.gesture.slide[0].offsetheight,n=s.gesture.slide.offset().left,o=s.gesture.slide.offset().top,l=n+x/2-i,p=o+t/2-r,c=s.gesture.image[0].offsetwidth,m=s.gesture.image[0].offsetheight,h=c*s.scale,g=m*s.scale,f=math.min(x/2-h/2,0),v=math.min(t/2-g/2,0),w=-f,y=-v,d=l*s.scale,u=p*s.scale,dw&&(d=w),uy&&(u=y)):(d=0,u=0),s.gesture.imagewrap.transition(300).transform("translate3d("+d+"px, "+u+"px,0)"),s.gesture.image.transition(300).transform("translate3d(0,0,0) scale("+s.scale+")"))}},attachevents:function(e){var t=e?"off":"on";if(b.params.zoom){var s=(b.slides,!("touchstart"!==b.touchevents.start||!b.support.passivelistener||!b.params.passivelisteners)&&{passive:!0,capture:!1});b.support.gestures?(b.slides[t]("gesturestart",b.zoom.ongesturestart,s),b.slides[t]("gesturechange",b.zoom.ongesturechange,s),b.slides[t]("gestureend",b.zoom.ongestureend,s)):"touchstart"===b.touchevents.start&&(b.slides[t](b.touchevents.start,b.zoom.ongesturestart,s),b.slides[t](b.touchevents.move,b.zoom.ongesturechange,s),b.slides[t](b.touchevents.end,b.zoom.ongestureend,s)),b[t]("touchstart",b.zoom.ontouchstart),b.slides.each(function(e,s){a(s).find("."+b.params.zoomcontainerclass).length>0&&a(s)[t](b.touchevents.move,b.zoom.ontouchmove)}),b[t]("touchend",b.zoom.ontouchend),b[t]("transitionend",b.zoom.ontransitionend),b.params.zoomtoggle&&b.on("doubletap",b.zoom.togglezoom)}},init:function(){b.zoom.attachevents()},destroy:function(){b.zoom.attachevents(!0)}},b._plugins=[];for(var o in b.plugins){var n=b.plugins[o](b,b.params[o]);n&&b._plugins.push(n)}return b.callplugins=function(e){for(var a=0;a'),notify:function(e){var a=b.a11y.liveregion;0!==a.length&&(a.html(""),a.html(e))},init:function(){b.params.nextbutton&&b.nextbutton&&b.nextbutton.length>0&&(b.a11y.makefocusable(b.nextbutton),b.a11y.addrole(b.nextbutton,"button"),b.a11y.addlabel(b.nextbutton,b.params.nextslidemessage)),b.params.prevbutton&&b.prevbutton&&b.prevbutton.length>0&&(b.a11y.makefocusable(b.prevbutton),b.a11y.addrole(b.prevbutton,"button"),b.a11y.addlabel(b.prevbutton,b.params.prevslidemessage)),a(b.container).append(b.a11y.liveregion)},initpagination:function(){b.params.pagination&&b.params.paginationclickable&&b.bullets&&b.bullets.length&&b.bullets.each(function(){var e=a(this);b.a11y.makefocusable(e),b.a11y.addrole(e,"button"),b.a11y.addlabel(e,b.params.paginationbulletmessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){b.a11y.liveregion&&b.a11y.liveregion.length>0&&b.a11y.liveregion.remove()}},b.init=function(){b.params.loop&&b.createloop(),b.updatecontainersize(),b.updateslidessize(),b.updatepagination(),b.params.scrollbar&&b.scrollbar&&(b.scrollbar.set(),b.params.scrollbardraggable&&b.scrollbar.enabledraggable()),"slide"!==b.params.effect&&b.effects[b.params.effect]&&(b.params.loop||b.updateprogress(),b.effects[b.params.effect].settranslate()),b.params.loop?b.slideto(b.params.initialslide+b.loopedslides,0,b.params.runcallbacksoninit):(b.slideto(b.params.initialslide,0,b.params.runcallbacksoninit),0===b.params.initialslide&&(b.parallax&&b.params.parallax&&b.parallax.settranslate(),b.lazy&&b.params.lazyloading&&(b.lazy.load(),b.lazy.initialimageloaded=!0))),b.attachevents(),b.params.observer&&b.support.observer&&b.initobservers(),b.params.preloadimages&&!b.params.lazyloading&&b.preloadimages(),b.params.zoom&&b.zoom&&b.zoom.init(),b.params.autoplay&&b.startautoplay(),b.params.keyboardcontrol&&b.enablekeyboardcontrol&&b.enablekeyboardcontrol(),b.params.mousewheelcontrol&&b.enablemousewheelcontrol&&b.enablemousewheelcontrol(),b.params.hashnavreplacestate&&(b.params.replacestate=b.params.hashnavreplacestate),b.params.history&&b.history&&b.history.init(),b.params.hashnav&&b.hashnav&&b.hashnav.init(),b.params.a11y&&b.a11y&&b.a11y.init(),b.emit("oninit",b)},b.cleanupstyles=function(){b.container.removeclass(b.classnames.join(" ")).removeattr("style"),b.wrapper.removeattr("style"),b.slides&&b.slides.length&&b.slides.removeclass([b.params.slidevisibleclass,b.params.slideactiveclass,b.params.slidenextclass,b.params.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-column").removeattr("data-swiper-row"),b.paginationcontainer&&b.paginationcontainer.length&&b.paginationcontainer.removeclass(b.params.paginationhiddenclass),b.bullets&&b.bullets.length&&b.bullets.removeclass(b.params.bulletactiveclass),b.params.prevbutton&&a(b.params.prevbutton).removeclass(b.params.buttondisabledclass),b.params.nextbutton&&a(b.params.nextbutton).removeclass(b.params.buttondisabledclass),b.params.scrollbar&&b.scrollbar&&(b.scrollbar.track&&b.scrollbar.track.length&&b.scrollbar.track.removeattr("style"),b.scrollbar.drag&&b.scrollbar.drag.length&&b.scrollbar.drag.removeattr("style"))},b.destroy=function(e,a){b.detachevents(),b.stopautoplay(),b.params.scrollbar&&b.scrollbar&&b.params.scrollbardraggable&&b.scrollbar.disabledraggable(),b.params.loop&&b.destroyloop(),a&&b.cleanupstyles(),b.disconnectobservers(),b.params.zoom&&b.zoom&&b.zoom.destroy(),b.params.keyboardcontrol&&b.disablekeyboardcontrol&&b.disablekeyboardcontrol(),b.params.mousewheelcontrol&&b.disablemousewheelcontrol&&b.disablemousewheelcontrol(),b.params.a11y&&b.a11y&&b.a11y.destroy(),b.params.history&&!b.params.replacestate&&window.removeeventlistener("popstate",b.history.sethistorypopstate),b.params.hashnav&&b.hashnav&&b.hashnav.destroy(),b.emit("ondestroy"),e!==!1&&(b=null)},b.init(),b}};t.prototype={issafari:function(){var e=window.navigator.useragent.tolowercase();return e.indexof("safari")>=0&&e.indexof("chrome")<0&&e.indexof("android")<0}(),isuiwebview:/(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(window.navigator.useragent),isarray:function(e){return"[object array]"===object.prototype.tostring.apply(e)},browser:{ie:window.navigator.pointerenabled||window.navigator.mspointerenabled,ietouch:window.navigator.mspointerenabled&&window.navigator.msmaxtouchpoints>1||window.navigator.pointerenabled&&window.navigator.maxtouchpoints>1,lteie9:function(){var e=document.createelement("div");return e.innerhtml="",1===e.getelementsbytagname("i").length}()},device:function(){var e=window.navigator.useragent,a=e.match(/(android);?[\s\/]+([\d.]+)?/),t=e.match(/(ipad).*os\s([\d_]+)/),s=e.match(/(ipod)(.*os\s([\d_]+))?/),i=!t&&e.match(/(iphone\sos|ios)\s([\d_]+)/);return{ios:t||i||s,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])],i=0;i0&&a[0].nodetype)for(i=0;i0?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,s=e.clienttop||t.clienttop||0,i=e.clientleft||t.clientleft||0,r=window.pageyoffset||e.scrolltop,n=window.pagexoffset||e.scrollleft;return{top:a.top+r-s,left:a.left+n-i}}return null},css:function(e,a){var t;if(1===arguments.length){if("string"!=typeof e){for(t=0;ts-1?new e([]):a<0?(t=s+a,new e(t<0?[]:[this[t]])):new e([this[a]])},append:function(a){var t,s;for(t=0;t=0;s--)this[t].insertbefore(i.childnodes[s],this[t].childnodes[0])}else if(a instanceof e)for(s=0;s1)for(var i=0;i1)for(var i=0;i0?t?this[0].nextelementsibling&&a(this[0].nextelementsibling).is(t)?[this[0].nextelementsibling]:[]:this[0].nextelementsibling?[this[0].nextelementsibling]:[]:[])},nextall:function(t){var s=[],i=this[0];if(!i)return new e([]);for(;i.nextelementsibling;){var r=i.nextelementsibling;t?a(r).is(t)&&s.push(r):s.push(r),i=r}return new e(s)},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 s=[],i=this[0];if(!i)return new e([]);for(;i.previouselementsibling;){var r=i.previouselementsibling;t?a(r).is(t)&&s.push(r):s.push(r),i=r}return new e(s)},parent:function(e){for(var t=[],s=0;s0?e?this[0].offsetwidth+parsefloat(this.css("margin-right"))+parsefloat(this.css("margin-left")):this[0].offsetwidth:null})),window.swiper=t}(),"undefined"!=typeof module?module.exports=window.swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return window.swiper}); //# sourcemappingurl=maps/swiper.min.js.map