/** * swiper 6.3.5 * most modern mobile touch slider and framework with hardware accelerated transitions * https://swiperjs.com * * copyright 2014-2020 vladimir kharlampidi * * released under the mit license * * released on: october 30, 2020 */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).swiper=t()}(this,(function(){"use strict";function e(e,t){for(var i=0;i0&&s(e[a],t[a])}))}var a={body:{},addeventlistener:function(){},removeeventlistener:function(){},activeelement:{blur:function(){},nodename:""},queryselector:function(){return null},queryselectorall:function(){return[]},getelementbyid:function(){return null},createevent:function(){return{initevent:function(){}}},createelement:function(){return{children:[],childnodes:[],style:{},setattribute:function(){},getelementsbytagname:function(){return[]}}},createelementns:function(){return{}},importnode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function r(){var e="undefined"!=typeof document?document:{};return s(e,a),e}var n={document:a,navigator:{useragent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replacestate:function(){},pushstate:function(){},go:function(){},back:function(){}},customevent:function(){return this},addeventlistener:function(){},removeeventlistener:function(){},getcomputedstyle:function(){return{getpropertyvalue:function(){return""}}},image:function(){},date:function(){},screen:{},settimeout:function(){},cleartimeout:function(){},matchmedia:function(){return{}},requestanimationframe:function(e){return"undefined"==typeof settimeout?(e(),null):settimeout(e,0)},cancelanimationframe:function(e){"undefined"!=typeof settimeout&&cleartimeout(e)}};function l(){var e="undefined"!=typeof window?window:{};return s(e,n),e}function o(e){return(o=object.setprototypeof?object.getprototypeof:function(e){return e.__proto__||object.getprototypeof(e)})(e)}function d(e,t){return(d=object.setprototypeof||function(e,t){return e.__proto__=t,e})(e,t)}function h(){if("undefined"==typeof reflect||!reflect.construct)return!1;if(reflect.construct.sham)return!1;if("function"==typeof proxy)return!0;try{return date.prototype.tostring.call(reflect.construct(date,[],(function(){}))),!0}catch(e){return!1}}function p(e,t,i){return(p=h()?reflect.construct:function(e,t,i){var s=[null];s.push.apply(s,t);var a=new(function.bind.apply(e,s));return i&&d(a,i.prototype),a}).apply(null,arguments)}function u(e){var t="function"==typeof map?new map:void 0;return(u=function(e){if(null===e||(i=e,-1===function.tostring.call(i).indexof("[native code]")))return e;var i;if("function"!=typeof e)throw new typeerror("super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,s)}function s(){return p(e,arguments,o(this).constructor)}return s.prototype=object.create(e.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),d(s,e)})(e)}var c=function(e){var t,i;function s(t){var i,s,a;return i=e.call.apply(e,[this].concat(t))||this,s=function(e){if(void 0===e)throw new referenceerror("this hasn't been initialised - super() hasn't been called");return e}(i),a=s.__proto__,object.defineproperty(s,"__proto__",{get:function(){return a},set:function(e){a.__proto__=e}}),i}return i=e,(t=s).prototype=object.create(i.prototype),t.prototype.constructor=t,t.__proto__=i,s}(u(array));function f(e){void 0===e&&(e=[]);var t=[];return e.foreach((function(e){array.isarray(e)?t.push.apply(t,f(e)):t.push(e)})),t}function v(e,t){return array.prototype.filter.call(e,t)}function m(e,t){var i=l(),s=r(),a=[];if(!t&&e instanceof c)return e;if(!e)return new c(a);if("string"==typeof e){var n=e.trim();if(n.indexof("<")>=0&&n.indexof(">")>=0){var o="div";0===n.indexof("0})).length>0},toggleclass:function(){for(var e=arguments.length,t=new array(e),i=0;i=0;c-=1){var f=u[c];r&&f.listener===r||r&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===r?(p.removeeventlistener(d,f.proxylistener,n),u.splice(c,1)):r||(p.removeeventlistener(d,f.proxylistener,n),u.splice(c,1))}}return this},trigger:function(){for(var e=l(),t=arguments.length,i=new array(t),s=0;s0})),h.dispatchevent(p),h.dom7eventdata=[],delete h.dom7eventdata}}return this},transitionend:function(e){var t=this;return e&&t.on("transitionend",(function i(s){s.target===this&&(e.call(this,s),t.off("transitionend",i))})),this},outerwidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetwidth+parsefloat(t.getpropertyvalue("margin-right"))+parsefloat(t.getpropertyvalue("margin-left"))}return this[0].offsetwidth}return null},outerheight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetheight+parsefloat(t.getpropertyvalue("margin-top"))+parsefloat(t.getpropertyvalue("margin-bottom"))}return this[0].offsetheight}return null},styles:function(){var e=l();return this[0]?e.getcomputedstyle(this[0],null):{}},offset:function(){if(this.length>0){var e=l(),t=r(),i=this[0],s=i.getboundingclientrect(),a=t.body,n=i.clienttop||a.clienttop||0,o=i.clientleft||a.clientleft||0,d=i===e?e.scrolly:i.scrolltop,h=i===e?e.scrollx:i.scrollleft;return{top:s.top+d-n,left:s.left+h-o}}return null},css:function(e,t){var i,s=l();if(1===arguments.length){if("string"!=typeof e){for(i=0;it-1)return m([]);if(e<0){var i=t+e;return m(i<0?[]:[this[i]])}return m([this[e]])},append:function(){for(var e,t=r(),i=0;i=0;i-=1)this[t].insertbefore(a.childnodes[i],this[t].childnodes[0])}else if(e instanceof c)for(i=0;i0?e?this[0].nextelementsibling&&m(this[0].nextelementsibling).is(e)?m([this[0].nextelementsibling]):m([]):this[0].nextelementsibling?m([this[0].nextelementsibling]):m([]):m([])},nextall:function(e){var t=[],i=this[0];if(!i)return m([]);for(;i.nextelementsibling;){var s=i.nextelementsibling;e?m(s).is(e)&&t.push(s):t.push(s),i=s}return m(t)},prev:function(e){if(this.length>0){var t=this[0];return e?t.previouselementsibling&&m(t.previouselementsibling).is(e)?m([t.previouselementsibling]):m([]):t.previouselementsibling?m([t.previouselementsibling]):m([])}return m([])},prevall:function(e){var t=[],i=this[0];if(!i)return m([]);for(;i.previouselementsibling;){var s=i.previouselementsibling;e?m(s).is(e)&&t.push(s):t.push(s),i=s}return m(t)},parent:function(e){for(var t=[],i=0;i6&&(s=s.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),a=new r.webkitcssmatrix("none"===s?"":s)):i=(a=n.moztransform||n.otransform||n.mstransform||n.mstransform||n.transform||n.getpropertyvalue("transform").replace("translate(","matrix(1, 0, 0, 1,")).tostring().split(","),"x"===t&&(s=r.webkitcssmatrix?a.m41:16===i.length?parsefloat(i[12]):parsefloat(i[4])),"y"===t&&(s=r.webkitcssmatrix?a.m42:16===i.length?parsefloat(i[13]):parsefloat(i[5])),s||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===object}function s(){for(var e=object(arguments.length<=0?void 0:arguments[0]),t=1;t=0,observer:"mutationobserver"in e||"webkitmutationobserver"in e,passivelistener:function(){var t=!1;try{var i=object.defineproperty({},"passive",{get:function(){t=!0}});e.addeventlistener("testpassivelistener",null,i)}catch(e){}return t}(),gestures:"ongesturestart"in e}}()),g}function p(e){return void 0===e&&(e={}),w||(w=function(e){var t=(void 0===e?{}:e).useragent,i=z(),s=l(),a=s.navigator.platform,r=t||s.navigator.useragent,n={ios:!1,android:!1},o=s.screen.width,d=s.screen.height,h=r.match(/(android);?[\s\/]+([\d.]+)?/),p=r.match(/(ipad).*os\s([\d_]+)/),u=r.match(/(ipod)(.*os\s([\d_]+))?/),c=!p&&r.match(/(iphone\sos|ios)\s([\d_]+)/),f="win32"===a,v="macintel"===a;return!p&&v&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexof(o+"x"+d)>=0&&((p=r.match(/(version)\/([\d.]+)/))||(p=[0,1,"13_0_0"]),v=!1),h&&!f&&(n.os="android",n.android=!0),(p||c||u)&&(n.os="ios",n.ios=!0),n}(e)),w}function k(){return y||(y=function(){var e,t=l();return{isedge:!!t.navigator.useragent.match(/edge/g),issafari:(e=t.navigator.useragent.tolowercase(),e.indexof("safari")>=0&&e.indexof("chrome")<0&&e.indexof("android")<0),iswebview:/(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(t.navigator.useragent)}}()),y}object.keys(b).foreach((function(e){m.fn[e]=b[e]}));var $={name:"resize",create:function(){var e=this;s(e,{resize:{resizehandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeresize"),e.emit("resize"))},orientationchangehandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(e){var t=l();t.addeventlistener("resize",e.resize.resizehandler),t.addeventlistener("orientationchange",e.resize.orientationchangehandler)},destroy:function(e){var t=l();t.removeeventlistener("resize",e.resize.resizehandler),t.removeeventlistener("orientationchange",e.resize.orientationchangehandler)}}},l={attach:function(e,t){void 0===t&&(t={});var i=l(),s=this,a=new(i.mutationobserver||i.webkitmutationobserver)((function(e){if(1!==e.length){var t=function(){s.emit("observerupdate",e[0])};i.requestanimationframe?i.requestanimationframe(t):i.settimeout(t,0)}else s.emit("observerupdate",e[0])}));a.observe(e,{attributes:void 0===t.attributes||t.attributes,childlist:void 0===t.childlist||t.childlist,characterdata:void 0===t.characterdata||t.characterdata}),s.observer.observers.push(a)},init:function(){if(this.support.observer&&this.params.observer){if(this.params.observeparents)for(var e=this.$el.parents(),t=0;t0))if(!s.istouched||!s.ismoved)if(!!a.noswipingclass&&""!==a.noswipingclass&&o.target&&o.target.shadowroot&&e.path&&e.path[0]&&(d=m(e.path[0])),a.noswiping&&d.closest(a.noswipingselector?a.noswipingselector:"."+a.noswipingclass)[0])this.allowclick=!0;else if(!a.swipehandler||d.closest(a.swipehandler)[0]){n.currentx="touchstart"===o.type?o.targettouches[0].pagex:o.pagex,n.currenty="touchstart"===o.type?o.targettouches[0].pagey:o.pagey;var h=n.currentx,p=n.currenty,u=a.edgeswipedetection||a.iosedgeswipedetection,c=a.edgeswipethreshold||a.iosedgeswipethreshold;if(!u||!(h<=c||h>=i.screen.width-c)){if(s(s,{istouched:!0,ismoved:!1,allowtouchcallbacks:!0,isscrolling:void 0,startmoving:void 0}),n.startx=h,n.starty=p,s.touchstarttime=x(),this.allowclick=!0,this.updatesize(),this.swipedirection=void 0,a.threshold>0&&(s.allowthresholdmove=!1),"touchstart"!==o.type){var f=!0;d.is(s.formelements)&&(f=!1),t.activeelement&&m(t.activeelement).is(s.formelements)&&t.activeelement!==d[0]&&t.activeelement.blur();var v=f&&this.allowtouchmove&&a.touchstartpreventdefault;(a.touchstartforcepreventdefault||v)&&o.preventdefault()}this.emit("touchstart",o)}}}}function a(e){var t=r(),i=this.toucheventsdata,s=this.params,a=this.touches,n=this.rtltranslate,l=e;if(l.originalevent&&(l=l.originalevent),i.istouched){if(!i.istouchevent||"touchmove"===l.type){var o="touchmove"===l.type&&l.targettouches&&(l.targettouches[0]||l.changedtouches[0]),d="touchmove"===l.type?o.pagex:l.pagex,h="touchmove"===l.type?o.pagey:l.pagey;if(l.preventedbynestedswiper)return a.startx=d,void(a.starty=h);if(!this.allowtouchmove)return this.allowclick=!1,void(i.istouched&&(s(a,{startx:d,starty:h,currentx:d,currenty:h}),i.touchstarttime=x()));if(i.istouchevent&&s.touchreleaseonedges&&!s.loop)if(this.isvertical()){if(ha.starty&&this.translate>=this.mintranslate())return i.istouched=!1,void(i.ismoved=!1)}else if(da.startx&&this.translate>=this.mintranslate())return;if(i.istouchevent&&t.activeelement&&l.target===t.activeelement&&m(l.target).is(i.formelements))return i.ismoved=!0,void(this.allowclick=!1);if(i.allowtouchcallbacks&&this.emit("touchmove",l),!(l.targettouches&&l.targettouches.length>1)){a.currentx=d,a.currenty=h;var p=a.currentx-a.startx,u=a.currenty-a.starty;if(!(this.params.threshold&&math.sqrt(math.pow(p,2)+math.pow(u,2))=25&&(c=180*math.atan2(math.abs(u),math.abs(p))/math.pi,i.isscrolling=this.ishorizontal()?c>s.touchangle:90-c>s.touchangle);if(i.isscrolling&&this.emit("touchmoveopposite",l),void 0===i.startmoving&&(a.currentx===a.startx&&a.currenty===a.starty||(i.startmoving=!0)),i.isscrolling)i.istouched=!1;else if(i.startmoving){this.allowclick=!1,!s.cssmode&&l.cancelable&&l.preventdefault(),s.touchmovestoppropagation&&!s.nested&&l.stoppropagation(),i.ismoved||(s.loop&&this.loopfix(),i.starttranslate=this.gettranslate(),this.settransition(0),this.animating&&this.$wrapperel.trigger("webkittransitionend transitionend"),i.allowmomentumbounce=!1,!s.grabcursor||!0!==this.allowslidenext&&!0!==this.allowslideprev||this.setgrabcursor(!0),this.emit("sliderfirstmove",l)),this.emit("slidermove",l),i.ismoved=!0;var f=this.ishorizontal()?p:u;a.diff=f,f*=s.touchratio,n&&(f=-f),this.swipedirection=f>0?"prev":"next",i.currenttranslate=f+i.starttranslate;var v=!0,g=s.resistanceratio;if(s.touchreleaseonedges&&(g=0),f>0&&i.currenttranslate>this.mintranslate()?(v=!1,s.resistance&&(i.currenttranslate=this.mintranslate()-1+math.pow(-this.mintranslate()+i.starttranslate+f,g))):f<0&&i.currenttranslatei.starttranslate&&(i.currenttranslate=i.starttranslate),s.threshold>0){if(!(math.abs(f)>s.threshold||i.allowthresholdmove))return void(i.currenttranslate=i.starttranslate);if(!i.allowthresholdmove)return i.allowthresholdmove=!0,a.startx=a.currentx,a.starty=a.currenty,i.currenttranslate=i.starttranslate,void(a.diff=this.ishorizontal()?a.currentx-a.startx:a.currenty-a.starty)}s.followfinger&&!s.cssmode&&((s.freemode||s.watchslidesprogress||s.watchslidesvisibility)&&(this.updateactiveindex(),this.updateslidesclasses()),s.freemode&&(0===i.velocities.length&&i.velocities.push({position:a[this.ishorizontal()?"startx":"starty"],time:i.touchstarttime}),i.velocities.push({position:a[this.ishorizontal()?"currentx":"currenty"],time:x()})),this.updateprogress(i.currenttranslate),this.settranslate(i.currenttranslate))}}}}}else i.startmoving&&i.isscrolling&&this.emit("touchmoveopposite",l)}function d(e){var t=this,i=t.toucheventsdata,s=t.params,a=t.touches,r=t.rtltranslate,n=t.$wrapperel,l=t.slidesgrid,o=t.snapgrid,d=e;if(d.originalevent&&(d=d.originalevent),i.allowtouchcallbacks&&t.emit("touchend",d),i.allowtouchcallbacks=!1,!i.istouched)return i.ismoved&&s.grabcursor&&t.setgrabcursor(!1),i.ismoved=!1,void(i.startmoving=!1);s.grabcursor&&i.ismoved&&i.istouched&&(!0===t.allowslidenext||!0===t.allowslideprev)&&t.setgrabcursor(!1);var h,p=x(),u=p-i.touchstarttime;if(t.allowclick&&(t.updateclickedslide(d),t.emit("tap click",d),u<300&&p-i.lastclicktime<300&&t.emit("doubletap doubleclick",d)),i.lastclicktime=x(),e((function(){t.destroyed||(t.allowclick=!0)})),!i.istouched||!i.ismoved||!t.swipedirection||0===a.diff||i.currenttranslate===i.starttranslate)return i.istouched=!1,i.ismoved=!1,void(i.startmoving=!1);if(i.istouched=!1,i.ismoved=!1,i.startmoving=!1,h=s.followfinger?r?t.translate:-t.translate:-i.currenttranslate,!s.cssmode)if(s.freemode){if(h<-t.mintranslate())return void t.slideto(t.activeindex);if(h>-t.maxtranslate())return void(t.slides.length1){var c=i.velocities.pop(),f=i.velocities.pop(),v=c.position-f.position,m=c.time-f.time;t.velocity=v/m,t.velocity/=2,math.abs(t.velocity)150||x()-c.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=s.freemodemomentumvelocityratio,i.velocities.length=0;var g=1e3*s.freemodemomentumratio,w=t.velocity*g,y=t.translate+w;r&&(y=-y);var b,t,c=!1,s=20*math.abs(t.velocity)*s.freemodemomentumbounceratio;if(yt.mintranslate())s.freemodemomentumbounce?(y-t.mintranslate()>s&&(y=t.mintranslate()+s),b=t.mintranslate(),c=!0,i.allowmomentumbounce=!0):y=t.mintranslate(),s.loop&&s.centeredslides&&(t=!0);else if(s.freemodesticky){for(var m,z=0;z-y){m=z;break}y=-(y=math.abs(o[m]-y)=s.longswipesms)&&(t.updateprogress(),t.updateactiveindex(),t.updateslidesclasses())}else{for(var $=0,l=t.slidessizesgrid[0],i=0;i=l[i]&&h=l[i]&&($=i,l=l[l.length-1]-l[l.length-2])}var a=(h-l[$])/l,d=$s.longswipesms){if(!s.longswipes)return void t.slideto(t.activeindex);"next"===t.swipedirection&&(a>=s.longswipesratio?t.slideto($+d):t.slideto($)),"prev"===t.swipedirection&&(a>1-s.longswipesratio?t.slideto($+d):t.slideto($))}else{if(!s.shortswipes)return void t.slideto(t.activeindex);t.navigation&&(d.target===t.navigation.nextel||d.target===t.navigation.prevel)?d.target===t.navigation.nextel?t.slideto($+d):t.slideto($):("next"===t.swipedirection&&t.slideto($+d),"prev"===t.swipedirection&&t.slideto($))}}}function g(){var e=this.params,t=this.el;if(!t||0!==t.offsetwidth){e.breakpoints&&this.setbreakpoint();var i=this.allowslidenext,s=this.allowslideprev,a=this.snapgrid;this.allowslidenext=!0,this.allowslideprev=!0,this.updatesize(),this.updateslides(),this.updateslidesclasses(),("auto"===e.slidesperview||e.slidesperview>1)&&this.isend&&!this.isbeginning&&!this.params.centeredslides?this.slideto(this.slides.length-1,0,!1,!0):this.slideto(this.activeindex,0,!1,!0),this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowslideprev=s,this.allowslidenext=i,this.params.watchoverflow&&a!==this.snapgrid&&this.checkoverflow()}}function n(e){this.allowclick||(this.params.preventclicks&&e.preventdefault(),this.params.preventclickspropagation&&this.animating&&(e.stoppropagation(),e.stopimmediatepropagation()))}function b(){var e=this.wrapperel,t=this.rtltranslate;this.previoustranslate=this.translate,this.ishorizontal()?this.translate=t?e.scrollwidth-e.offsetwidth-e.scrollleft:-e.scrollleft:this.translate=-e.scrolltop,-0===this.translate&&(this.translate=0),this.updateactiveindex(),this.updateslidesclasses();var i=this.maxtranslate()-this.mintranslate();(0===i?0:(this.translate-this.mintranslate())/i)!==this.progress&&this.updateprogress(t?-this.translate:this.translate),this.emit("settranslate",this.translate,!1)}var h=!1;function x(){}var y={init:!0,direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,cssmode:!1,updateonwindowresize:!0,nested:!1,width:null,height:null,preventinteractionontransition:!1,useragent:null,url:null,edgeswipedetection:!1,edgeswipethreshold:20,freemode:!1,freemodemomentum:!0,freemodemomentumratio:1,freemodemomentumbounce:!0,freemodemomentumbounceratio:1,freemodemomentumvelocityratio:1,freemodesticky:!1,freemodeminimumvelocity:.02,autoheight:!1,setwrappersize:!1,virtualtranslate:!1,effect:"slide",breakpoints:void 0,spacebetween:0,slidesperview:1,slidespercolumn:1,slidespercolumnfill:"column",slidespergroup:1,slidespergroupskip:0,centeredslides:!1,centeredslidesbounds:!1,slidesoffsetbefore:0,slidesoffsetafter:0,normalizeslideindex:!0,centerinsufficientslides:!1,watchoverflow:!1,roundlengths:!1,touchratio:1,touchangle:45,simulatetouch:!0,shortswipes:!0,longswipes:!0,longswipesratio:.5,longswipesms:300,followfinger:!0,allowtouchmove:!0,threshold:0,touchmovestoppropagation:!1,touchstartpreventdefault:!0,touchstartforcepreventdefault:!1,touchreleaseonedges:!1,uniquenavelements:!0,resistance:!0,resistanceratio:.85,watchslidesprogress:!1,watchslidesvisibility:!1,grabcursor:!1,preventclicks:!0,preventclickspropagation:!0,slidetoclickedslide:!1,preloadimages:!0,updateonimagesready:!0,loop:!1,loopadditionalslides:0,loopedslides:null,loopfillgroupwithblank:!1,looppreventsslide:!0,allowslideprev:!0,allowslidenext:!0,swipehandler:null,noswiping:!0,noswipingclass:"swiper-no-swiping",noswipingselector:null,passivelisteners:!0,containermodifierclass:"swiper-container-",slideclass:"swiper-slide",slideblankclass:"swiper-slide-invisible-blank",slideactiveclass:"swiper-slide-active",slideduplicateactiveclass:"swiper-slide-duplicate-active",slidevisibleclass:"swiper-slide-visible",slideduplicateclass:"swiper-slide-duplicate",slidenextclass:"swiper-slide-next",slideduplicatenextclass:"swiper-slide-duplicate-next",slideprevclass:"swiper-slide-prev",slideduplicateprevclass:"swiper-slide-duplicate-prev",wrapperclass:"swiper-wrapper",runcallbacksoninit:!0,_emitclasses:!1},v={modular:{useparams:function(e){var t=this;t.modules&&object.keys(t.modules).foreach((function(i){var s=t.modules[i];s.params&&s(e,s.params)}))},usemodules:function(e){void 0===e&&(e={});var t=this;t.modules&&object.keys(t.modules).foreach((function(i){var s=t.modules[i],a=e[i]||{};s.on&&t.on&&object.keys(s.on).foreach((function(e){t.on(e,s.on[e])})),s.create&&s.create.bind(t)(a)}))}},eventsemitter:{on:function(e,t,i){var s=this;if("function"!=typeof t)return s;var a=i?"unshift":"push";return e.split(" ").foreach((function(e){s.eventslisteners[e]||(s.eventslisteners[e]=[]),s.eventslisteners[e][a](t)})),s},once:function(e,t,i){var s=this;if("function"!=typeof t)return s;function a(){s.off(e,a),a.__emitterproxy&&delete a.__emitterproxy;for(var i=arguments.length,r=new array(i),n=0;n=0&&this.eventsanylisteners.splice(t,1),this},off:function(e,t){var i=this;return i.eventslisteners?(e.split(" ").foreach((function(e){void 0===t?i.eventslisteners[e]=[]:i.eventslisteners[e]&&i.eventslisteners[e].foreach((function(s,a){(s===t||s.__emitterproxy&&s.__emitterproxy===t)&&i.eventslisteners[e].splice(a,1)}))})),i):i},emit:function(){var e,t,i,s=this;if(!s.eventslisteners)return s;for(var a=arguments.length,r=new array(a),n=0;n=0&&(y=parsefloat(y.replace("%",""))/100*s),this.virtualsize=-y,a?d.css({marginleft:"",margintop:""}):d.css({marginright:"",marginbottom:""}),t.slidespercolumn>1&&(t=math.floor(h/t.slidespercolumn)===h/this.params.slidespercolumn?h:math.ceil(h/t.slidespercolumn)*t.slidespercolumn,"auto"!==t.slidesperview&&"row"===t.slidespercolumnfill&&(t=math.max(t,t.slidesperview*t.slidespercolumn)));for(var m,z=t.slidespercolumn,p=t/z,k=math.floor(h/t.slidespercolumn),$=0;$1){var i=void 0,o=void 0,a=void 0;if("row"===t.slidespercolumnfill&&t.slidespergroup>1){var d=math.floor($/(t.slidespergroup*t.slidespercolumn)),g=$-t.slidespercolumn*t.slidespergroup*d,n=0===d?t.slidespergroup:math.min(math.ceil((h-d*z*t.slidespergroup)/z),t.slidespergroup);i=(o=g-(a=math.floor(g/n))*n+d*t.slidespergroup)+a*t/z,l.css({"-webkit-box-ordinal-group":i,"-moz-box-ordinal-group":i,"-ms-flex-order":i,"-webkit-order":i,order:i})}else"column"===t.slidespercolumnfill?(a=$-(o=math.floor($/z))*z,(o>k||o===k&&a===z-1)&&(a+=1)>=z&&(a=0,o+=1)):o=$-(a=math.floor($/p))*p;l.css("margin-"+(this.ishorizontal()?"top":"left"),0!==a&&t.spacebetween&&t.spacebetween+"px")}if("none"!==l.css("display")){if("auto"===t.slidesperview){var b=e.getcomputedstyle(l[0],null),h=l[0].style.transform,x=l[0].style.webkittransform;if(h&&(l[0].style.transform="none"),x&&(l[0].style.webkittransform="none"),t.roundlengths)c=this.ishorizontal()?l.outerwidth(!0):l.outerheight(!0);else if(this.ishorizontal()){var y=parsefloat(b.getpropertyvalue("width")||0),v=parsefloat(b.getpropertyvalue("padding-left")||0),f=parsefloat(b.getpropertyvalue("padding-right")||0),r=parsefloat(b.getpropertyvalue("margin-left")||0),w=parsefloat(b.getpropertyvalue("margin-right")||0),q=b.getpropertyvalue("box-sizing");if(q&&"border-box"===q)c=y+r+w;else{var j=l[0],_=j.clientwidth;c=y+v+f+r+w+(j.offsetwidth-_)}}else{var u=parsefloat(b.getpropertyvalue("height")||0),k=parsefloat(b.getpropertyvalue("padding-top")||0),z=parsefloat(b.getpropertyvalue("padding-bottom")||0),j=parsefloat(b.getpropertyvalue("margin-top")||0),q=parsefloat(b.getpropertyvalue("margin-bottom")||0),ee=b.getpropertyvalue("box-sizing");if(ee&&"border-box"===ee)c=u+j+q;else{var te=l[0],ie=te.clientheight;c=u+k+z+j+q+(te.offsetheight-ie)}}h&&(l[0].style.transform=h),x&&(l[0].style.webkittransform=x),t.roundlengths&&(c=math.floor(c))}else c=(s-(t.slidesperview-1)*y)/t.slidesperview,t.roundlengths&&(c=math.floor(c)),d[$]&&(this.ishorizontal()?d[$].style.width=c+"px":d[$].style.height=c+"px");d[$]&&(d[$].swiperslidesize=c),c.push(c),t.centeredslides?(b=b+c/2+e/2+y,0===e&&0!==$&&(b=b-s/2-y),0===$&&(b=b-s/2-y),math.abs(b)<.001&&(b=0),t.roundlengths&&(b=math.floor(b)),x%t.slidespergroup==0&&p.push(b),u.push(b)):(t.roundlengths&&(b=math.floor(b)),(x-math.min(this.params.slidespergroupskip,x))%this.params.slidespergroup==0&&p.push(b),u.push(b),b=b+c+y),this.virtualsize+=c+y,e=c,x+=1}}if(this.virtualsize=math.max(this.virtualsize,s)+m,a&&r&&("slide"===t.effect||"coverflow"===t.effect)&&i.css({width:this.virtualsize+t.spacebetween+"px"}),t.setwrappersize&&(this.ishorizontal()?i.css({width:this.virtualsize+t.spacebetween+"px"}):i.css({height:this.virtualsize+t.spacebetween+"px"})),t.slidespercolumn>1&&(this.virtualsize=(c+t.spacebetween)*t,this.virtualsize=math.ceil(this.virtualsize/t.slidespercolumn)-t.spacebetween,this.ishorizontal()?i.css({width:this.virtualsize+t.spacebetween+"px"}):i.css({height:this.virtualsize+t.spacebetween+"px"}),t.centeredslides)){m=[];for(var se=0;se1&&p.push(this.virtualsize-s)}if(0===p.length&&(p=[0]),0!==t.spacebetween&&(this.ishorizontal()?a?d.filter(f).css({marginleft:y+"px"}):d.filter(f).css({marginright:y+"px"}):d.filter(f).css({marginbottom:y+"px"})),t.centeredslides&&t.centeredslidesbounds){var le=0;c.foreach((function(e){le+=e+(t.spacebetween?t.spacebetween:0)}));var oe=(le-=t.spacebetween)-s;p=p.map((function(e){return e<0?-v:e>oe?oe+m:e}))}if(t.centerinsufficientslides){var de=0;if(c.foreach((function(e){de+=e+(t.spacebetween?t.spacebetween:0)})),(de-=t.spacebetween)1)if(this.params.centeredslides)this.visibleslides.each((function(e){i.push(e)}));else for(t=0;tthis.slides.length)break;i.push(this.slides.eq(a)[0])}else i.push(this.slides.eq(this.activeindex)[0]);for(t=0;ts?r:s}s&&this.$wrapperel.css("height",s+"px")},updateslidesoffset:function(){for(var e=this.slides,t=0;t=0&&o1&&d<=this.size||o<=0&&d>=this.size)&&(this.visibleslides.push(n),this.visibleslidesindexes.push(r),i.eq(r).addclass(t.slidevisibleclass))}n.progress=s?-l:l}this.visibleslides=m(this.visibleslides)}},updateprogress:function(e){if(void 0===e){var t=this.rtltranslate?-1:1;e=this&&this.translate&&this.translate*t||0}var i=this.params,s=this.maxtranslate()-this.mintranslate(),a=this.progress,r=this.isbeginning,n=this.isend,l=r,o=n;0===s?(a=0,r=!0,n=!0):(r=(a=(e-this.mintranslate())/s)<=0,n=a>=1),s(this,{progress:a,isbeginning:r,isend:n}),(i.watchslidesprogress||i.watchslidesvisibility||i.centeredslides&&i.autoheight)&&this.updateslidesprogress(e),r&&!l&&this.emit("reachbeginning toedge"),n&&!o&&this.emit("reachend toedge"),(l&&!r||o&&!n)&&this.emit("fromedge"),this.emit("progress",a)},updateslidesclasses:function(){var e,t=this.slides,i=this.params,s=this.$wrapperel,a=this.activeindex,r=this.realindex,n=this.virtual&&i.virtual.enabled;t.removeclass(i.slideactiveclass+" "+i.slidenextclass+" "+i.slideprevclass+" "+i.slideduplicateactiveclass+" "+i.slideduplicatenextclass+" "+i.slideduplicateprevclass),(e=n?this.$wrapperel.find("."+i.slideclass+'[data-swiper-slide-index="'+a+'"]'):t.eq(a)).addclass(i.slideactiveclass),i.loop&&(e.hasclass(i.slideduplicateclass)?s.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+r+'"]').addclass(i.slideduplicateactiveclass):s.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+r+'"]').addclass(i.slideduplicateactiveclass));var l=e.nextall("."+i.slideclass).eq(0).addclass(i.slidenextclass);i.loop&&0===l.length&&(l=t.eq(0)).addclass(i.slidenextclass);var o=e.prevall("."+i.slideclass).eq(0).addclass(i.slideprevclass);i.loop&&0===o.length&&(o=t.eq(-1)).addclass(i.slideprevclass),i.loop&&(l.hasclass(i.slideduplicateclass)?s.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicatenextclass):s.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicatenextclass),o.hasclass(i.slideduplicateclass)?s.children("."+i.slideclass+":not(."+i.slideduplicateclass+')[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicateprevclass):s.children("."+i.slideclass+"."+i.slideduplicateclass+'[data-swiper-slide-index="'+o.attr("data-swiper-slide-index")+'"]').addclass(i.slideduplicateprevclass)),this.emitslidesclasses()},updateactiveindex:function(e){var t,i=this.rtltranslate?this.translate:-this.translate,s=this.slidesgrid,a=this.snapgrid,r=this.params,n=this.activeindex,l=this.realindex,o=this.snapindex,d=e;if(void 0===d){for(var h=0;h=s[h]&&i=s[h]&&i=s[h]&&(d=h);r.normalizeslideindex&&(d<0||void 0===d)&&(d=0)}if(a.indexof(i)>=0)t=a.indexof(i);else{var p=math.min(r.slidespergroupskip,d);t=p+math.floor((d-p)/r.slidespergroup)}if(t>=a.length&&(t=a.length-1),d!==n){var u=parseint(this.slides.eq(d).attr("data-swiper-slide-index")||d,10);s(this,{snapindex:t,realindex:u,previousindex:n,activeindex:d}),this.emit("activeindexchange"),this.emit("snapindexchange"),l!==u&&this.emit("realindexchange"),(this.initialized||this.params.runcallbacksoninit)&&this.emit("slidechange")}else t!==o&&(this.snapindex=t,this.emit("snapindexchange"))},updateclickedslide:function(e){var t=this.params,i=m(e.target).closest("."+t.slideclass)[0],s=!1;if(i)for(var a=0;ad?d:s&&ea?"next":is?"next":i=o.length&&(v=o.length-1),(p||l.initialslide||0)===(h||0)&&i&&r.emit("beforeslidechangestart");var m,g=-o[v];if(r.updateprogress(g),l.normalizeslideindex)for(var w=0;w=math.floor(100*d[w])&&(n=w);if(r.initialized&&n!==p){if(!r.allowslidenext&&gr.translate&&g>r.maxtranslate()&&(p||0)!==n)return!1}if(m=n>p?"next":n=e&&(u=e)})),void 0!==u&&(d=n.indexof(u))<0&&(d=this.activeindex-1),this.slideto(d,e,t,i)},slidereset:function(e,t,i){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideto(this.activeindex,e,t,i)},slidetoclosest:function(e,t,i,s){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),void 0===s&&(s=.5);var a=this.activeindex,r=math.min(this.params.slidespergroupskip,a),n=r+math.floor((a-r)/this.params.slidespergroup),l=this.rtltranslate?this.translate:-this.translate;if(l>=this.snapgrid[n]){var o=this.snapgrid[n];l-o>(this.snapgrid[n+1]-o)*s&&(a+=this.params.slidespergroup)}else{var d=this.snapgrid[n-1];l-d<=(this.snapgrid[n]-d)*s&&(a-=this.params.slidespergroup)}return a=math.max(a,0),a=math.min(a,this.slidesgrid.length-1),this.slideto(a,e,t,i)},slidetoclickedslide:function(){var e,t=this,i=t.params,s=t.$wrapperel,a="auto"===i.slidesperview?t.slidesperviewdynamic():i.slidesperview,r=t.clickedindex;if(i.loop){if(t.animating)return;e=parseint(m(t.clickedslide).attr("data-swiper-slide-index"),10),i.centeredslides?rt.slides.length-t.loopedslides+a/2?(t.loopfix(),r=s.children("."+i.slideclass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideduplicateclass+")").eq(0).index(),e((function(){t.slideto(r)}))):t.slideto(r):r>t.slides.length-a?(t.loopfix(),r=s.children("."+i.slideclass+'[data-swiper-slide-index="'+e+'"]:not(.'+i.slideduplicateclass+")").eq(0).index(),e((function(){t.slideto(r)}))):t.slideto(r)}else t.slideto(r)}},loop:{loopcreate:function(){var e=this,t=r(),i=e.params,s=e.$wrapperel;s.children("."+i.slideclass+"."+i.slideduplicateclass).remove();var a=s.children("."+i.slideclass);if(i.loopfillgroupwithblank){var n=i.slidespergroup-a.length%i.slidespergroup;if(n!==i.slidespergroup){for(var l=0;la.length&&(e.loopedslides=a.length);var d=[],h=[];a.each((function(t,i){var s=m(t);i=a.length-e.loopedslides&&d.push(t),s.attr("data-swiper-slide-index",i)}));for(var p=0;p=0;u-=1)s.prepend(m(d[u].clonenode(!0)).addclass(i.slideduplicateclass))},loopfix:function(){this.emit("beforeloopfix");var e,t=this.activeindex,i=this.slides,s=this.loopedslides,a=this.allowslideprev,r=this.allowslidenext,n=this.snapgrid,l=this.rtltranslate;this.allowslideprev=!0,this.allowslidenext=!0;var o=-n[t]-this.gettranslate();if(t=i.length-s){e=-i.length+t+s,e+=s,this.slideto(e,0,!1,!0)&&0!==o&&this.settranslate((l?-this.translate:this.translate)-o)}this.allowslideprev=a,this.allowslidenext=r,this.emit("loopfix")},loopdestroy:function(){var e=this.$wrapperel,t=this.params,i=this.slides;e.children("."+t.slideclass+"."+t.slideduplicateclass+",."+t.slideclass+"."+t.slideblankclass).remove(),i.removeattr("data-swiper-slide-index")}},grabcursor:{setgrabcursor:function(e){if(!(this.support.touch||!this.params.simulatetouch||this.params.watchoverflow&&this.islocked||this.params.cssmode)){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetgrabcursor:function(){this.support.touch||this.params.watchoverflow&&this.islocked||this.params.cssmode||(this.el.style.cursor="")}},manipulation:{appendslide:function(e){var t=this.$wrapperel,i=this.params;if(i.loop&&this.loopdestroy(),"object"==typeof e&&"length"in e)for(var s=0;s=r)this.appendslide(t);else{for(var n=a>e?a+1:a,l=[],o=r-1;o>=e;o-=1){var d=this.slides.eq(o);d.remove(),l.unshift(d)}if("object"==typeof t&&"length"in t){for(var h=0;he?a+t.length:a}else i.append(t);for(var p=0;p1,p=d.slidespercolumn>1;h&&!p?(r.removeclass(a.containermodifierclass+"multirow "+a.containermodifierclass+"multirow-column"),this.emitcontainerclasses()):!h&&p&&(r.addclass(a.containermodifierclass+"multirow"),"column"===d.slidespercolumnfill&&r.addclass(a.containermodifierclass+"multirow-column"),this.emitcontainerclasses());var u=d.direction&&d.direction!==a.direction,c=a.loop&&(d.slidesperview!==a.slidesperview||u);u&&t&&this.changedirection(),s(this.params,d),s(this,{allowtouchmove:this.params.allowtouchmove,allowslidenext:this.params.allowslidenext,allowslideprev:this.params.allowslideprev}),this.currentbreakpoint=l,this.emit("_beforebreakpoint",d),c&&t&&(this.loopdestroy(),this.loopcreate(),this.updateslides(),this.slideto(e-s+this.loopedslides,0,!1)),this.emit("breakpoint",d)}}},getbreakpoint:function(e){var t=l();if(e){var i=!1,s=object.keys(e).map((function(e){if("string"==typeof e&&0===e.indexof("@")){var i=parsefloat(e.substr(1));return{value:t.innerheight*i,point:e}}return{value:e,point:e}}));s.sort((function(e,t){return parseint(e.value,10)-parseint(t.value,10)}));for(var a=0;a0&&e.slidesoffsetbefore+e.spacebetween*(this.slides.length-1)+this.slides[0].offsetwidth*this.slides.length;e.slidesoffsetbefore&&e.slidesoffsetafter&&i?this.islocked=i<=this.size:this.islocked=1===this.snapgrid.length,this.allowslidenext=!this.islocked,this.allowslideprev=!this.islocked,t!==this.islocked&&this.emit(this.islocked?"lock":"unlock"),t&&t!==this.islocked&&(this.isend=!1,this.navigation&&this.navigation.update())}},classes:{addclasses:function(){var e=this.classnames,t=this.params,i=this.rtl,s=this.$el,a=this.device,r=[];r.push("initialized"),r.push(t.direction),t.freemode&&r.push("free-mode"),t.autoheight&&r.push("autoheight"),i&&r.push("rtl"),t.slidespercolumn>1&&(r.push("multirow"),"column"===t.slidespercolumnfill&&r.push("multirow-column")),a.android&&r.push("android"),a.ios&&r.push("ios"),t.cssmode&&r.push("css-mode"),r.foreach((function(i){e.push(t.containermodifierclass+i)})),s.addclass(e.join(" ")),this.emitcontainerclasses()},removeclasses:function(){var e=this.$el,t=this.classnames;e.removeclass(t.join(" ")),this.emitcontainerclasses()}},images:{loadimage:function(e,t,i,s,a,r){var n,o=l();function d(){r&&r()}m(e).parent("picture")[0]||e.complete&&a?d():t?((n=new o.image).onload=d,n.onerror=d,s&&(n.sizes=s),i&&(n.srcset=i),t&&(n.src=t)):d()},preloadimages:function(){var e=this;function t(){null!=e&&e&&!e.destroyed&&(void 0!==e.imagesloaded&&(e.imagesloaded+=1),e.imagesloaded===e.imagestoload.length&&(e.params.updateonimagesready&&e.update(),e.emit("imagesready")))}e.imagestoload=e.$el.find("img");for(var i=0;i1){var d=[];return o.each((function(e){var s=s({},i,{el:e});d.push(new t(s))})),d}var h,p,u;return e.swiper=n,e&&e.shadowroot&&e.shadowroot.queryselector?(h=m(e.shadowroot.queryselector("."+n.params.wrapperclass))).children=function(e){return o.children(e)}:h=o.children("."+n.params.wrapperclass),s(n,{$el:o,el:e,$wrapperel:h,wrapperel:h[0],classnames:[],slides:m(),slidesgrid:[],snapgrid:[],slidessizesgrid:[],ishorizontal:function(){return"horizontal"===n.params.direction},isvertical:function(){return"vertical"===n.params.direction},rtl:"rtl"===e.dir.tolowercase()||"rtl"===o.css("direction"),rtltranslate:"horizontal"===n.params.direction&&("rtl"===e.dir.tolowercase()||"rtl"===o.css("direction")),wrongrtl:"-webkit-box"===h.css("display"),activeindex:0,realindex:0,isbeginning:!0,isend:!1,translate:0,previoustranslate:0,progress:0,velocity:0,animating:!1,allowslidenext:n.params.allowslidenext,allowslideprev:n.params.allowslideprev,touchevents:(p=["touchstart","touchmove","touchend","touchcancel"],u=["mousedown","mousemove","mouseup"],n.support.pointerevents&&(u=["pointerdown","pointermove","pointerup"]),n.toucheventstouch={start:p[0],move:p[1],end:p[2],cancel:p[3]},n.toucheventsdesktop={start:u[0],move:u[1],end:u[2]},n.support.touch||!n.params.simulatetouch?n.toucheventstouch:n.toucheventsdesktop),toucheventsdata:{istouched:void 0,ismoved:void 0,allowtouchcallbacks:void 0,touchstarttime:void 0,isscrolling:void 0,currenttranslate:void 0,starttranslate:void 0,allowthresholdmove:void 0,formelements:"input, select, option, textarea, button, video, label",lastclicktime:x(),clicktimeout:void 0,velocities:[],allowmomentumbounce:void 0,istouchevent:void 0,startmoving:void 0},allowclick:!0,allowtouchmove:n.params.allowtouchmove,touches:{startx:0,starty:0,currentx:0,currenty:0,diff:0},imagestoload:[],imagesloaded:0}),n.usemodules(),n.emit("_swiper"),n.params.init&&n.init(),n}}var i,s,a,r=t.prototype;return r.emitcontainerclasses=function(){var e=this;if(e.params._emitclasses&&e.el){var t=e.el.classname.split(" ").filter((function(t){return 0===t.indexof("swiper-container")||0===t.indexof(e.params.containermodifierclass)}));e.emit("_containerclasses",t.join(" "))}},r.getslideclasses=function(e){var t=this;return e.classname.split(" ").filter((function(e){return 0===e.indexof("swiper-slide")||0===e.indexof(t.params.slideclass)})).join(" ")},r.emitslidesclasses=function(){var e=this;e.params._emitclasses&&e.el&&e.slides.each((function(t){var i=e.getslideclasses(t);e.emit("_slideclass",t,i)}))},r.slidesperviewdynamic=function(){var e=this.params,t=this.slides,i=this.slidesgrid,s=this.size,a=this.activeindex,r=1;if(e.centeredslides){for(var n,l=t[a].swiperslidesize,o=a+1;os&&(n=!0));for(var d=a-1;d>=0;d-=1)t[d]&&!n&&(r+=1,(l+=t[d].swiperslidesize)>s&&(n=!0))}else for(var h=a+1;h1)&&e.isend&&!e.params.centeredslides?e.slideto(e.slides.length-1,0,!1,!0):e.slideto(e.activeindex,0,!1,!0))||s(),i.watchoverflow&&t!==e.snapgrid&&e.checkoverflow(),e.emit("update")}function s(){var t=e.rtltranslate?-1*e.translate:e.translate,i=math.min(math.max(t,e.maxtranslate()),e.mintranslate());e.settranslate(i),e.updateactiveindex(),e.updateslidesclasses()}},r.changedirection=function(e,t){void 0===t&&(t=!0);var i=this.params.direction;return e||(e="horizontal"===i?"vertical":"horizontal"),e===i||"horizontal"!==e&&"vertical"!==e||(this.$el.removeclass(""+this.params.containermodifierclass+i).addclass(""+this.params.containermodifierclass+e),this.emitcontainerclasses(),this.params.direction=e,this.slides.each((function(t){"vertical"===e?t.style.width="":t.style.height=""})),this.emit("changedirection"),t&&this.update()),this},r.init=function(){this.initialized||(this.emit("beforeinit"),this.params.breakpoints&&this.setbreakpoint(),this.addclasses(),this.params.loop&&this.loopcreate(),this.updatesize(),this.updateslides(),this.params.watchoverflow&&this.checkoverflow(),this.params.grabcursor&&this.setgrabcursor(),this.params.preloadimages&&this.preloadimages(),this.params.loop?this.slideto(this.params.initialslide+this.loopedslides,0,this.params.runcallbacksoninit):this.slideto(this.params.initialslide,0,this.params.runcallbacksoninit),this.attachevents(),this.initialized=!0,this.emit("init"),this.emit("afterinit"))},r.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var i,s=this,a=s.params,r=s.$el,n=s.$wrapperel,l=s.slides;return void 0===s.params||s.destroyed||(s.emit("beforedestroy"),s.initialized=!1,s.detachevents(),a.loop&&s.loopdestroy(),t&&(s.removeclasses(),r.removeattr("style"),n.removeattr("style"),l&&l.length&&l.removeclass([a.slidevisibleclass,a.slideactiveclass,a.slidenextclass,a.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-slide-index")),s.emit("destroy"),object.keys(s.eventslisteners).foreach((function(e){s.off(e)})),!1!==e&&(s.$el[0].swiper=null,i=s,object.keys(i).foreach((function(e){try{i[e]=null}catch(e){}try{delete i[e]}catch(e){}}))),s.destroyed=!0),null},t.extenddefaults=function(e){s(f,e)},t.installmodule=function(e){t.prototype.modules||(t.prototype.modules={});var i=e.name||object.keys(t.prototype.modules).length+"_"+x();t.prototype.modules[i]=e},t.use=function(e){return array.isarray(e)?(e.foreach((function(e){return t.installmodule(e)})),t):(t.installmodule(e),t)},i=t,a=[{key:"extendeddefaults",get:function(){return f}},{key:"defaults",get:function(){return y}}],(s=null)&&e(i.prototype,s),a&&e(i,a),t}();object.keys(v).foreach((function(e){object.keys(v[e]).foreach((function(t){r.prototype[t]=v[e][t]}))})),r.use([$,i]);var w={update:function(e){var t=this,i=t.params,s=i.slidesperview,a=i.slidespergroup,r=i.centeredslides,n=t.params.virtual,l=n.addslidesbefore,o=n.addslidesafter,d=t.virtual,h=d.from,p=d.to,u=d.slides,c=d.slidesgrid,f=d.renderslide,v=d.offset;t.updateactiveindex();var m,g,w,y=t.activeindex||0;m=t.rtltranslate?"right":t.ishorizontal()?"left":"top",r?(g=math.floor(s/2)+a+o,w=math.floor(s/2)+a+l):(g=s+(a-1)+o,w=a+l);var b=math.max((y||0)-w,0),e=math.min((y||0)+g,u.length-1),x=(t.slidesgrid[b]||0)-(t.slidesgrid[0]||0);function t(){t.updateslides(),t.updateprogress(),t.updateslidesclasses(),t.lazy&&t.params.lazy.enabled&&t.lazy.load()}if(s(t.virtual,{from:b,to:e,offset:x,slidesgrid:t.slidesgrid}),h===b&&p===e&&!e)return t.slidesgrid!==c&&x!==v&&t.slides.css(m,x+"px"),void t.updateprogress();if(t.params.virtual.renderexternal)return t.params.virtual.renderexternal.call(t,{offset:x,from:b,to:e,slides:function(){for(var e=[],t=b;t<=e;t+=1)e.push(u[t]);return e}()}),void(t.params.virtual.renderexternalupdate&&t());var c=[],m=[];if(e)t.$wrapperel.find("."+t.params.slideclass).remove();else for(var z=h;z<=p;z+=1)(ze)&&t.$wrapperel.find("."+t.params.slideclass+'[data-swiper-slide-index="'+z+'"]').remove();for(var p=0;p=b&&p<=e&&(void 0===p||e?m.push(p):(p>p&&m.push(p),p'+e+"");return s.attr("data-swiper-slide-index")||s.attr("data-swiper-slide-index",t),i.cache&&(this.virtual.cache[t]=s),s},appendslide:function(e){if("object"==typeof e&&"length"in e)for(var t=0;t=0;i-=1)this.virtual.slides.splice(e[i],1),this.params.virtual.cache&&delete this.virtual.cache[e[i]],e[i]0&&0===this.$el.parents("."+this.params.slideactiveclass).length)return;var m=t.innerwidth,g=t.innerheight,w=this.$el.offset();s&&(w.left-=this.$el[0].scrollleft);for(var y=[[w.left,w.top],[w.left+this.width,w.top],[w.left,w.top+this.height],[w.left+this.width,w.top+this.height]],b=0;b=0&&e[0]<=m&&e[1]>=0&&e[1]<=g&&(v=!0)}if(!v)return}this.ishorizontal()?((d||h||p||u)&&(a.preventdefault?a.preventdefault():a.returnvalue=!1),((h||u)&&!s||(d||p)&&s)&&this.slidenext(),((d||p)&&!s||(h||u)&&s)&&this.slideprev()):((d||h||c||f)&&(a.preventdefault?a.preventdefault():a.returnvalue=!1),(h||f)&&this.slidenext(),(d||c)&&this.slideprev()),this.emit("keypress",n)}},enable:function(){var e=r();this.keyboard.enabled||(m(e).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){var e=r();this.keyboard.enabled&&(m(e).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},_={name:"keyboard",params:{keyboard:{enabled:!1,onlyinviewport:!0,pageupdown:!0}},create:function(){m(this,{keyboard:t({enabled:!1},j)})},on:{init:function(e){e.params.keyboard.enabled&&e.keyboard.enable()},destroy:function(e){e.keyboard.enabled&&e.keyboard.disable()}}};var u={lastscrolltime:x(),lasteventbeforesnap:void 0,recentwheelevents:[],event:function(){return l().navigator.useragent.indexof("firefox")>-1?"dommousescroll":function(){var e=r(),t="onwheel"in e;if(!t){var i=e.createelement("div");i.setattribute("onwheel","return;"),t="function"==typeof i.onwheel}return!t&&e.implementation&&e.implementation.hasfeature&&!0!==e.implementation.hasfeature("","")&&(t=e.implementation.hasfeature("events.wheel","3.0")),t}()?"wheel":"mousewheel"},normalize:function(e){var t=0,i=0,s=0,a=0;return"detail"in e&&(i=e.detail),"wheeldelta"in e&&(i=-e.wheeldelta/120),"wheeldeltay"in e&&(i=-e.wheeldeltay/120),"wheeldeltax"in e&&(t=-e.wheeldeltax/120),"axis"in e&&e.axis===e.horizontal_axis&&(t=i,i=0),s=10*t,a=10*i,"deltay"in e&&(a=e.deltay),"deltax"in e&&(s=e.deltax),e.shiftkey&&!s&&(s=a,a=0),(s||a)&&e.deltamode&&(1===e.deltamode?(s*=40,a*=40):(s*=800,a*=800)),s&&!t&&(t=s<1?-1:1),a&&!i&&(i=a<1?-1:1),{spinx:t,spiny:i,pixelx:s,pixely:a}},handlemouseenter:function(){this.mouseentered=!0},handlemouseleave:function(){this.mouseentered=!1},handle:function(e){var t=e,i=this,s=i.params.mousewheel;i.params.cssmode&&t.preventdefault();var a=i.$el;if("container"!==i.params.mousewheel.eventstarget&&(a=m(i.params.mousewheel.eventstarget)),!i.mouseentered&&!a[0].contains(t.target)&&!s.releaseonedges)return!0;t.originalevent&&(t=t.originalevent);var r=0,n=i.rtltranslate?-1:1,l=u.normalize(t);if(s.forcetoaxis)if(i.ishorizontal()){if(!(math.abs(l.pixelx)>math.abs(l.pixely)))return!0;r=-l.pixelx*n}else{if(!(math.abs(l.pixely)>math.abs(l.pixelx)))return!0;r=-l.pixely}else r=math.abs(l.pixelx)>math.abs(l.pixely)?-l.pixelx*n:-l.pixely;if(0===r)return!0;if(s.invert&&(r=-r),i.params.freemode){var o={time:x(),delta:math.abs(r),direction:math.sign(r)},d=i.mousewheel.lasteventbeforesnap,h=d&&o.time=i.mintranslate()&&(p=i.mintranslate()),p<=i.maxtranslate()&&(p=i.maxtranslate()),i.settransition(0),i.settranslate(p),i.updateprogress(),i.updateactiveindex(),i.updateslidesclasses(),(!u&&i.isbeginning||!c&&i.isend)&&i.updateslidesclasses(),i.params.freemodesticky){cleartimeout(i.mousewheel.timeout),i.mousewheel.timeout=void 0;var f=i.mousewheel.recentwheelevents;f.length>=15&&f.shift();var v=f.length?f[f.length-1]:void 0,g=f[0];if(f.push(o),v&&(o.delta>v.delta||o.direction!==v.direction))f.splice(0);else if(f.length>=15&&o.time-g.time<500&&g.delta-o.delta>=1&&o.delta<=6){var w=r>0?.8:.2;i.mousewheel.lasteventbeforesnap=o,f.splice(0),i.mousewheel.timeout=e((function(){i.slidetoclosest(i.params.speed,!0,void 0,w)}),0)}i.mousewheel.timeout||(i.mousewheel.timeout=e((function(){i.mousewheel.lasteventbeforesnap=o,f.splice(0),i.slidetoclosest(i.params.speed,!0,void 0,.5)}),500))}if(h||i.emit("scroll",t),i.params.autoplay&&i.params.autoplaydisableoninteraction&&i.autoplay.stop(),p===i.mintranslate()||p===i.maxtranslate())return!0}}else{var y={time:x(),delta:math.abs(r),direction:math.sign(r),raw:e},b=i.mousewheel.recentwheelevents;b.length>=2&&b.shift();var t=b.length?b[b.length-1]:void 0;if(b.push(y),t?(y.direction!==t.direction||y.delta>t.delta||y.time>t.time+150)&&i.mousewheel.animateslider(y):i.mousewheel.animateslider(y),i.mousewheel.releasescroll(y))return!0}return t.preventdefault?t.preventdefault():t.returnvalue=!1,!1},animateslider:function(e){var t=l();return!(this.params.mousewheel.thresholddelta&&e.delta=6&&x()-this.mousewheel.lastscrolltime<60||(e.direction<0?this.isend&&!this.params.loop||this.animating||(this.slidenext(),this.emit("scroll",e.raw)):this.isbeginning&&!this.params.loop||this.animating||(this.slideprev(),this.emit("scroll",e.raw)),this.mousewheel.lastscrolltime=(new t.date).gettime(),!1)))},releasescroll:function(e){var t=this.params.mousewheel;if(e.direction<0){if(this.isend&&!this.params.loop&&t.releaseonedges)return!0}else if(this.isbeginning&&!this.params.loop&&t.releaseonedges)return!0;return!1},enable:function(){var e=u.event();if(this.params.cssmode)return this.wrapperel.removeeventlistener(e,this.mousewheel.handle),!0;if(!e)return!1;if(this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventstarget&&(t=m(this.params.mousewheel.eventstarget)),t.on("mouseenter",this.mousewheel.handlemouseenter),t.on("mouseleave",this.mousewheel.handlemouseleave),t.on(e,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){var e=u.event();if(this.params.cssmode)return this.wrapperel.addeventlistener(e,this.mousewheel.handle),!0;if(!e)return!1;if(!this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventstarget&&(t=m(this.params.mousewheel.eventstarget)),t.off(e,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},k={update:function(){var e=this.params.navigation;if(!this.params.loop){var t=this.navigation,i=t.$nextel,s=t.$prevel;s&&s.length>0&&(this.isbeginning?s.addclass(e.disabledclass):s.removeclass(e.disabledclass),s[this.params.watchoverflow&&this.islocked?"addclass":"removeclass"](e.lockclass)),i&&i.length>0&&(this.isend?i.addclass(e.disabledclass):i.removeclass(e.disabledclass),i[this.params.watchoverflow&&this.islocked?"addclass":"removeclass"](e.lockclass))}},onprevclick:function(e){e.preventdefault(),this.isbeginning&&!this.params.loop||this.slideprev()},onnextclick:function(e){e.preventdefault(),this.isend&&!this.params.loop||this.slidenext()},init:function(){var e,t,i=this.params.navigation;(i.nextel||i.prevel)&&(i.nextel&&(e=m(i.nextel),this.params.uniquenavelements&&"string"==typeof i.nextel&&e.length>1&&1===this.$el.find(i.nextel).length&&(e=this.$el.find(i.nextel))),i.prevel&&(t=m(i.prevel),this.params.uniquenavelements&&"string"==typeof i.prevel&&t.length>1&&1===this.$el.find(i.prevel).length&&(t=this.$el.find(i.prevel))),e&&e.length>0&&e.on("click",this.navigation.onnextclick),t&&t.length>0&&t.on("click",this.navigation.onprevclick),s(this.navigation,{$nextel:e,nextel:e&&e[0],$prevel:t,prevel:t&&t[0]}))},destroy:function(){var e=this.navigation,t=e.$nextel,i=e.$prevel;t&&t.length&&(t.off("click",this.navigation.onnextclick),t.removeclass(this.params.navigation.disabledclass)),i&&i.length&&(i.off("click",this.navigation.onprevclick),i.removeclass(this.params.navigation.disabledclass))}},z={update:function(){var e=this.rtl,t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var i,s=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,a=this.pagination.$el,r=this.params.loop?math.ceil((s-2*this.loopedslides)/this.params.slidespergroup):this.snapgrid.length;if(this.params.loop?((i=math.ceil((this.activeindex-this.loopedslides)/this.params.slidespergroup))>s-1-2*this.loopedslides&&(i-=s-2*this.loopedslides),i>r-1&&(i-=r),i<0&&"bullets"!==this.params.paginationtype&&(i=r+i)):i=void 0!==this.snapindex?this.snapindex:this.activeindex||0,"bullets"===t.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var n,l,o,d=this.pagination.bullets;if(t.dynamicbullets&&(this.pagination.bulletsize=d.eq(0)[this.ishorizontal()?"outerwidth":"outerheight"](!0),a.css(this.ishorizontal()?"width":"height",this.pagination.bulletsize*(t.dynamicmainbullets+4)+"px"),t.dynamicmainbullets>1&&void 0!==this.previousindex&&(this.pagination.dynamicbulletindex+=i-this.previousindex,this.pagination.dynamicbulletindex>t.dynamicmainbullets-1?this.pagination.dynamicbulletindex=t.dynamicmainbullets-1:this.pagination.dynamicbulletindex<0&&(this.pagination.dynamicbulletindex=0)),n=i-this.pagination.dynamicbulletindex,o=((l=n+(math.min(d.length,t.dynamicmainbullets)-1))+n)/2),d.removeclass(t.bulletactiveclass+" "+t.bulletactiveclass+"-next "+t.bulletactiveclass+"-next-next "+t.bulletactiveclass+"-prev "+t.bulletactiveclass+"-prev-prev "+t.bulletactiveclass+"-main"),a.length>1)d.each((function(e){var s=m(e),a=s.index();a===i&&s.addclass(t.bulletactiveclass),t.dynamicbullets&&(a>=n&&a<=l&&s.addclass(t.bulletactiveclass+"-main"),a===n&&s.prev().addclass(t.bulletactiveclass+"-prev").prev().addclass(t.bulletactiveclass+"-prev-prev"),a===l&&s.next().addclass(t.bulletactiveclass+"-next").next().addclass(t.bulletactiveclass+"-next-next"))}));else{var h=d.eq(i),p=h.index();if(h.addclass(t.bulletactiveclass),t.dynamicbullets){for(var u=d.eq(n),c=d.eq(l),f=n;f<=l;f+=1)d.eq(f).addclass(t.bulletactiveclass+"-main");if(this.params.loop)if(p>=d.length-t.dynamicmainbullets){for(var v=t.dynamicmainbullets;v>=0;v-=1)d.eq(d.length-v).addclass(t.bulletactiveclass+"-main");d.eq(d.length-t.dynamicmainbullets-1).addclass(t.bulletactiveclass+"-prev")}else u.prev().addclass(t.bulletactiveclass+"-prev").prev().addclass(t.bulletactiveclass+"-prev-prev"),c.next().addclass(t.bulletactiveclass+"-next").next().addclass(t.bulletactiveclass+"-next-next");else u.prev().addclass(t.bulletactiveclass+"-prev").prev().addclass(t.bulletactiveclass+"-prev-prev"),c.next().addclass(t.bulletactiveclass+"-next").next().addclass(t.bulletactiveclass+"-next-next")}}if(t.dynamicbullets){var g=math.min(d.length,t.dynamicmainbullets+4),w=(this.pagination.bulletsize*g-this.pagination.bulletsize)/2-o*this.pagination.bulletsize,y=e?"right":"left";d.css(this.ishorizontal()?y:"top",w+"px")}}if("fraction"===t.type&&(a.find("."+t.currentclass).text(t.formatfractioncurrent(i+1)),a.find("."+t.totalclass).text(t.formatfractiontotal(r))),"progressbar"===t.type){var b;b=t.progressbaropposite?this.ishorizontal()?"vertical":"horizontal":this.ishorizontal()?"horizontal":"vertical";var e=(i+1)/r,x=1,t=1;"horizontal"===b?x=e:t=e,a.find("."+t.progressbarfillclass).transform("translate3d(0,0,0) scalex("+x+") scaley("+t+")").transition(this.params.speed)}"custom"===t.type&&t.rendercustom?(a.html(t.rendercustom(this,i+1,r)),this.emit("paginationrender",a[0])):this.emit("paginationupdate",a[0]),a[this.params.watchoverflow&&this.islocked?"addclass":"removeclass"](t.lockclass)}},render:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,s="";if("bullets"===e.type){for(var a=this.params.loop?math.ceil((t-2*this.loopedslides)/this.params.slidespergroup):this.snapgrid.length,r=0;r";i.html(s),this.pagination.bullets=i.find("."+e.bulletclass)}"fraction"===e.type&&(s=e.renderfraction?e.renderfraction.call(this,e.currentclass,e.totalclass):' / ',i.html(s)),"progressbar"===e.type&&(s=e.renderprogressbar?e.renderprogressbar.call(this,e.progressbarfillclass):'',i.html(s)),"custom"!==e.type&&this.emit("paginationrender",this.pagination.$el[0])}},init:function(){var e=this,t=e.params.pagination;if(t.el){var i=m(t.el);0!==i.length&&(e.params.uniquenavelements&&"string"==typeof t.el&&i.length>1&&(i=e.$el.find(t.el)),"bullets"===t.type&&t.clickable&&i.addclass(t.clickableclass),i.addclass(t.modifierclass+t.type),"bullets"===t.type&&t.dynamicbullets&&(i.addclass(""+t.modifierclass+t.type+"-dynamic"),e.pagination.dynamicbulletindex=0,t.dynamicmainbullets<1&&(t.dynamicmainbullets=1)),"progressbar"===t.type&&t.progressbaropposite&&i.addclass(t.progressbaroppositeclass),t.clickable&&i.on("click","."+t.bulletclass,(function(t){t.preventdefault();var i=m(this).index()*e.params.slidespergroup;e.params.loop&&(i+=e.loopedslides),e.slideto(i)})),s(e.pagination,{$el:i,el:i[0]}))}},destroy:function(){var e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var t=this.pagination.$el;t.removeclass(e.hiddenclass),t.removeclass(e.modifierclass+e.type),this.pagination.bullets&&this.pagination.bullets.removeclass(e.bulletactiveclass),e.clickable&&t.off("click","."+e.bulletclass)}}},j={settranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=this.rtltranslate,i=this.progress,s=e.dragsize,a=e.tracksize,r=e.$dragel,n=e.$el,l=this.params.scrollbar,o=s,d=(a-s)*i;t?(d=-d)>0?(o=s-d,d=0):-d+s>a&&(o=a+d):d<0?(o=s+d,d=0):d+s>a&&(o=a-d),this.ishorizontal()?(r.transform("translate3d("+d+"px, 0, 0)"),r[0].style.width=o+"px"):(r.transform("translate3d(0px, "+d+"px, 0)"),r[0].style.height=o+"px"),l.hide&&(cleartimeout(this.scrollbar.timeout),n[0].style.opacity=1,this.scrollbar.timeout=settimeout((function(){n[0].style.opacity=0,n.transition(400)}),1e3))}},settransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragel.transition(e)},updatesize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var e=this.scrollbar,t=e.$dragel,i=e.$el;t[0].style.width="",t[0].style.height="";var s,a=this.ishorizontal()?i[0].offsetwidth:i[0].offsetheight,r=this.size/this.virtualsize,n=r*(a/this.size);s="auto"===this.params.scrollbar.dragsize?a*r:parseint(this.params.scrollbar.dragsize,10),this.ishorizontal()?t[0].style.width=s+"px":t[0].style.height=s+"px",i[0].style.display=r>=1?"none":"",this.params.scrollbar.hide&&(i[0].style.opacity=0),s(e,{tracksize:a,divider:r,movedivider:n,dragsize:s}),e.$el[this.params.watchoverflow&&this.islocked?"addclass":"removeclass"](this.params.scrollbar.lockclass)}},getpointerposition:function(e){return this.ishorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].clientx:e.clientx:"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].clienty:e.clienty},setdragposition:function(e){var t,i=this.scrollbar,s=this.rtltranslate,a=i.$el,r=i.dragsize,n=i.tracksize,l=i.dragstartpos;t=(i.getpointerposition(e)-a.offset()[this.ishorizontal()?"left":"top"]-(null!==l?l:r/2))/(n-r),t=math.max(math.min(t,1),0),s&&(t=1-t);var o=this.mintranslate()+(this.maxtranslate()-this.mintranslate())*t;this.updateprogress(o),this.settranslate(o),this.updateactiveindex(),this.updateslidesclasses()},ondragstart:function(e){var t=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperel,a=i.$el,r=i.$dragel;this.scrollbar.istouched=!0,this.scrollbar.dragstartpos=e.target===r[0]||e.target===r?i.getpointerposition(e)-e.target.getboundingclientrect()[this.ishorizontal()?"left":"top"]:null,e.preventdefault(),e.stoppropagation(),s.transition(100),r.transition(100),i.setdragposition(e),cleartimeout(this.scrollbar.dragtimeout),a.transition(0),t.hide&&a.css("opacity",1),this.params.cssmode&&this.$wrapperel.css("scroll-snap-type","none"),this.emit("scrollbardragstart",e)},ondragmove:function(e){var t=this.scrollbar,i=this.$wrapperel,s=t.$el,a=t.$dragel;this.scrollbar.istouched&&(e.preventdefault?e.preventdefault():e.returnvalue=!1,t.setdragposition(e),i.transition(0),s.transition(0),a.transition(0),this.emit("scrollbardragmove",e))},ondragend:function(e){var t=this.params.scrollbar,i=this.scrollbar,s=this.$wrapperel,a=i.$el;this.scrollbar.istouched&&(this.scrollbar.istouched=!1,this.params.cssmode&&(this.$wrapperel.css("scroll-snap-type",""),s.transition("")),t.hide&&(cleartimeout(this.scrollbar.dragtimeout),this.scrollbar.dragtimeout=e((function(){a.css("opacity",0),a.transition(400)}),1e3)),this.emit("scrollbardragend",e),t.snaponrelease&&this.slidetoclosest())},enabledraggable:function(){if(this.params.scrollbar.el){var e=r(),t=this.scrollbar,i=this.toucheventstouch,s=this.toucheventsdesktop,a=this.params,n=this.support,l=t.$el[0],o=!(!n.passivelistener||!a.passivelisteners)&&{passive:!1,capture:!1},d=!(!n.passivelistener||!a.passivelisteners)&&{passive:!0,capture:!1};n.touch?(l.addeventlistener(i.start,this.scrollbar.ondragstart,o),l.addeventlistener(i.move,this.scrollbar.ondragmove,o),l.addeventlistener(i.end,this.scrollbar.ondragend,d)):(l.addeventlistener(s.start,this.scrollbar.ondragstart,o),e.addeventlistener(s.move,this.scrollbar.ondragmove,o),e.addeventlistener(s.end,this.scrollbar.ondragend,d))}},disabledraggable:function(){if(this.params.scrollbar.el){var e=r(),t=this.scrollbar,i=this.toucheventstouch,s=this.toucheventsdesktop,a=this.params,n=this.support,l=t.$el[0],o=!(!n.passivelistener||!a.passivelisteners)&&{passive:!1,capture:!1},d=!(!n.passivelistener||!a.passivelisteners)&&{passive:!0,capture:!1};n.touch?(l.removeeventlistener(i.start,this.scrollbar.ondragstart,o),l.removeeventlistener(i.move,this.scrollbar.ondragmove,o),l.removeeventlistener(i.end,this.scrollbar.ondragend,d)):(l.removeeventlistener(s.start,this.scrollbar.ondragstart,o),e.removeeventlistener(s.move,this.scrollbar.ondragmove,o),e.removeeventlistener(s.end,this.scrollbar.ondragend,d))}},init:function(){if(this.params.scrollbar.el){var e=this.scrollbar,t=this.$el,i=this.params.scrollbar,s=m(i.el);this.params.uniquenavelements&&"string"==typeof i.el&&s.length>1&&1===t.find(i.el).length&&(s=t.find(i.el));var a=s.find("."+this.params.scrollbar.dragclass);0===a.length&&(a=m('
'),s.append(a)),s(e,{$el:s,el:s[0],$dragel:a,dragel:a[0]}),i.draggable&&e.enabledraggable()}},destroy:function(){this.scrollbar.disabledraggable()}},q={settransform:function(e,t){var i=this.rtl,s=m(e),a=i?-1:1,r=s.attr("data-swiper-parallax")||"0",n=s.attr("data-swiper-parallax-x"),l=s.attr("data-swiper-parallax-y"),o=s.attr("data-swiper-parallax-scale"),d=s.attr("data-swiper-parallax-opacity");if(n||l?(n=n||"0",l=l||"0"):this.ishorizontal()?(n=r,l="0"):(l=r,n="0"),n=n.indexof("%")>=0?parseint(n,10)*t*a+"%":n*t*a+"px",l=l.indexof("%")>=0?parseint(l,10)*t+"%":l*t+"px",null!=d){var h=d-(d-1)*(1-math.abs(t));s[0].style.opacity=h}if(null==o)s.transform("translate3d("+n+", "+l+", 0px)");else{var p=o-(o-1)*(1-math.abs(t));s.transform("translate3d("+n+", "+l+", 0px) scale("+p+")")}},settranslate:function(){var e=this,t=e.$el,i=e.slides,s=e.progress,a=e.snapgrid;t.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t){e.parallax.settransform(t,s)})),i.each((function(t,i){var r=t.progress;e.params.slidespergroup>1&&"auto"!==e.params.slidesperview&&(r+=math.ceil(i/2)-s*(a.length-1)),r=math.min(math.max(r,-1),1),m(t).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t){e.parallax.settransform(t,r)}))}))},settransition:function(e){void 0===e&&(e=this.params.speed);this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(t){var i=m(t),s=parseint(i.attr("data-swiper-parallax-duration"),10)||e;0===e&&(s=0),i.transition(s)}))}},ee={getdistancebetweentouches:function(e){if(e.targettouches.length<2)return 1;var t=e.targettouches[0].pagex,i=e.targettouches[0].pagey,s=e.targettouches[1].pagex,a=e.targettouches[1].pagey;return math.sqrt(math.pow(s-t,2)+math.pow(a-i,2))},ongesturestart:function(e){var t=this.support,i=this.params.zoom,s=this.zoom,a=s.gesture;if(s.fakegesturetouched=!1,s.fakegesturemoved=!1,!t.gestures){if("touchstart"!==e.type||"touchstart"===e.type&&e.targettouches.length<2)return;s.fakegesturetouched=!0,a.scalestart=ee.getdistancebetweentouches(e)}a.$slideel&&a.$slideel.length||(a.$slideel=m(e.target).closest("."+this.params.slideclass),0===a.$slideel.length&&(a.$slideel=this.slides.eq(this.activeindex)),a.$imageel=a.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"),a.$imagewrapel=a.$imageel.parent("."+i.containerclass),a.maxratio=a.$imagewrapel.attr("data-swiper-zoom")||i.maxratio,0!==a.$imagewrapel.length)?(a.$imageel&&a.$imageel.transition(0),this.zoom.isscaling=!0):a.$imageel=void 0},ongesturechange:function(e){var t=this.support,i=this.params.zoom,s=this.zoom,a=s.gesture;if(!t.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targettouches.length<2)return;s.fakegesturemoved=!0,a.scalemove=ee.getdistancebetweentouches(e)}a.$imageel&&0!==a.$imageel.length?(t.gestures?s.scale=e.scale*s.currentscale:s.scale=a.scalemove/a.scalestart*s.currentscale,s.scale>a.maxratio&&(s.scale=a.maxratio-1+math.pow(s.scale-a.maxratio+1,.5)),s.scales.touchesstart.x))return void(s.istouched=!1);if(!this.ishorizontal()&&(math.floor(s.miny)===math.floor(s.starty)&&s.touchescurrent.ys.touchesstart.y))return void(s.istouched=!1)}e.cancelable&&e.preventdefault(),e.stoppropagation(),s.ismoved=!0,s.currentx=s.touchescurrent.x-s.touchesstart.x+s.startx,s.currenty=s.touchescurrent.y-s.touchesstart.y+s.starty,s.currentxs.maxx&&(s.currentx=s.maxx-1+math.pow(s.currentx-s.maxx+1,.8)),s.currentys.maxy&&(s.currenty=s.maxy-1+math.pow(s.currenty-s.maxy+1,.8)),a.prevpositionx||(a.prevpositionx=s.touchescurrent.x),a.prevpositiony||(a.prevpositiony=s.touchescurrent.y),a.prevtime||(a.prevtime=date.now()),a.x=(s.touchescurrent.x-a.prevpositionx)/(date.now()-a.prevtime)/2,a.y=(s.touchescurrent.y-a.prevpositiony)/(date.now()-a.prevtime)/2,math.abs(s.touchescurrent.x-a.prevpositionx)<2&&(a.x=0),math.abs(s.touchescurrent.y-a.prevpositiony)<2&&(a.y=0),a.prevpositionx=s.touchescurrent.x,a.prevpositiony=s.touchescurrent.y,a.prevtime=date.now(),i.$imagewrapel.transform("translate3d("+s.currentx+"px, "+s.currenty+"px,0)")}}},ontouchend:function(){var e=this.zoom,t=e.gesture,i=e.image,s=e.velocity;if(t.$imageel&&0!==t.$imageel.length){if(!i.istouched||!i.ismoved)return i.istouched=!1,void(i.ismoved=!1);i.istouched=!1,i.ismoved=!1;var a=300,r=300,n=s.x*a,l=i.currentx+n,o=s.y*r,d=i.currenty+o;0!==s.x&&(a=math.abs((l-i.currentx)/s.x)),0!==s.y&&(r=math.abs((d-i.currenty)/s.y));var h=math.max(a,r);i.currentx=l,i.currenty=d;var p=i.width*e.scale,u=i.height*e.scale;i.minx=math.min(t.slidewidth/2-p/2,0),i.maxx=-i.minx,i.miny=math.min(t.slideheight/2-u/2,0),i.maxy=-i.miny,i.currentx=math.max(math.min(i.currentx,i.maxx),i.minx),i.currenty=math.max(math.min(i.currenty,i.maxy),i.miny),t.$imagewrapel.transition(h).transform("translate3d("+i.currentx+"px, "+i.currenty+"px,0)")}},ontransitionend:function(){var e=this.zoom,t=e.gesture;t.$slideel&&this.previousindex!==this.activeindex&&(t.$imageel&&t.$imageel.transform("translate3d(0,0,0) scale(1)"),t.$imagewrapel&&t.$imagewrapel.transform("translate3d(0,0,0)"),e.scale=1,e.currentscale=1,t.$slideel=void 0,t.$imageel=void 0,t.$imagewrapel=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(e){var t,i,s,a,r,n,l,o,d,h,p,u,c,f,v,m,g=this.zoom,w=this.params.zoom,y=g.gesture,b=g.image;(y.$slideel||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?y.$slideel=this.$wrapperel.children("."+this.params.slideactiveclass):y.$slideel=this.slides.eq(this.activeindex),y.$imageel=y.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"),y.$imagewrapel=y.$imageel.parent("."+w.containerclass)),y.$imageel&&0!==y.$imageel.length)&&(y.$slideel.addclass(""+w.zoomedslideclass),void 0===b.touchesstart.x&&e?(t="touchend"===e.type?e.changedtouches[0].pagex:e.pagex,i="touchend"===e.type?e.changedtouches[0].pagey:e.pagey):(t=b.touchesstart.x,i=b.touchesstart.y),g.scale=y.$imagewrapel.attr("data-swiper-zoom")||w.maxratio,g.currentscale=y.$imagewrapel.attr("data-swiper-zoom")||w.maxratio,e?(v=y.$slideel[0].offsetwidth,m=y.$slideel[0].offsetheight,s=y.$slideel.offset().left+v/2-t,a=y.$slideel.offset().top+m/2-i,l=y.$imageel[0].offsetwidth,o=y.$imageel[0].offsetheight,d=l*g.scale,h=o*g.scale,c=-(p=math.min(v/2-d/2,0)),f=-(u=math.min(m/2-h/2,0)),(r=s*g.scale)c&&(r=c),(n=a*g.scale)f&&(n=f)):(r=0,n=0),y.$imagewrapel.transition(300).transform("translate3d("+r+"px, "+n+"px,0)"),y.$imageel.transition(300).transform("translate3d(0,0,0) scale("+g.scale+")"))},out:function(){var e=this.zoom,t=this.params.zoom,i=e.gesture;i.$slideel||(this.params.virtual&&this.params.virtual.enabled&&this.virtual?i.$slideel=this.$wrapperel.children("."+this.params.slideactiveclass):i.$slideel=this.slides.eq(this.activeindex),i.$imageel=i.$slideel.find("img, svg, canvas, picture, .swiper-zoom-target"),i.$imagewrapel=i.$imageel.parent("."+t.containerclass)),i.$imageel&&0!==i.$imageel.length&&(e.scale=1,e.currentscale=1,i.$imagewrapel.transition(300).transform("translate3d(0,0,0)"),i.$imageel.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideel.removeclass(""+t.zoomedslideclass),i.$slideel=void 0)},togglegestures:function(e){var t=this.zoom,i=t.slideselector,s=t.passivelistener;this.$wrapperel[e]("gesturestart",i,t.ongesturestart,s),this.$wrapperel[e]("gesturechange",i,t.ongesturechange,s),this.$wrapperel[e]("gestureend",i,t.ongestureend,s)},enablegestures:function(){this.zoom.gesturesenabled||(this.zoom.gesturesenabled=!0,this.zoom.togglegestures("on"))},disablegestures:function(){this.zoom.gesturesenabled&&(this.zoom.gesturesenabled=!1,this.zoom.togglegestures("off"))},enable:function(){var e=this.support,t=this.zoom;if(!t.enabled){t.enabled=!0;var i=!("touchstart"!==this.touchevents.start||!e.passivelistener||!this.params.passivelisteners)&&{passive:!0,capture:!1},s=!e.passivelistener||{passive:!1,capture:!0},a="."+this.params.slideclass;this.zoom.passivelistener=i,this.zoom.slideselector=a,e.gestures?(this.$wrapperel.on(this.touchevents.start,this.zoom.enablegestures,i),this.$wrapperel.on(this.touchevents.end,this.zoom.disablegestures,i)):"touchstart"===this.touchevents.start&&(this.$wrapperel.on(this.touchevents.start,a,t.ongesturestart,i),this.$wrapperel.on(this.touchevents.move,a,t.ongesturechange,s),this.$wrapperel.on(this.touchevents.end,a,t.ongestureend,i),this.touchevents.cancel&&this.$wrapperel.on(this.touchevents.cancel,a,t.ongestureend,i)),this.$wrapperel.on(this.touchevents.move,"."+this.params.zoom.containerclass,t.ontouchmove,s)}},disable:function(){var e=this.zoom;if(e.enabled){var t=this.support;this.zoom.enabled=!1;var i=!("touchstart"!==this.touchevents.start||!t.passivelistener||!this.params.passivelisteners)&&{passive:!0,capture:!1},s=!t.passivelistener||{passive:!1,capture:!0},a="."+this.params.slideclass;t.gestures?(this.$wrapperel.off(this.touchevents.start,this.zoom.enablegestures,i),this.$wrapperel.off(this.touchevents.end,this.zoom.disablegestures,i)):"touchstart"===this.touchevents.start&&(this.$wrapperel.off(this.touchevents.start,a,e.ongesturestart,i),this.$wrapperel.off(this.touchevents.move,a,e.ongesturechange,s),this.$wrapperel.off(this.touchevents.end,a,e.ongestureend,i),this.touchevents.cancel&&this.$wrapperel.off(this.touchevents.cancel,a,e.ongestureend,i)),this.$wrapperel.off(this.touchevents.move,"."+this.params.zoom.containerclass,e.ontouchmove,s)}}},te={loadinslide:function(e,t){void 0===t&&(t=!0);var i=this,s=i.params.lazy;if(void 0!==e&&0!==i.slides.length){var a=i.virtual&&i.params.virtual.enabled?i.$wrapperel.children("."+i.params.slideclass+'[data-swiper-slide-index="'+e+'"]'):i.slides.eq(e),r=a.find("."+s.elementclass+":not(."+s.loadedclass+"):not(."+s.loadingclass+")");!a.hasclass(s.elementclass)||a.hasclass(s.loadedclass)||a.hasclass(s.loadingclass)||r.push(a[0]),0!==r.length&&r.each((function(e){var r=m(e);r.addclass(s.loadingclass);var n=r.attr("data-background"),l=r.attr("data-src"),o=r.attr("data-srcset"),d=r.attr("data-sizes"),h=r.parent("picture");i.loadimage(r[0],l||n,o,d,!1,(function(){if(null!=i&&i&&(!i||i.params)&&!i.destroyed){if(n?(r.css("background-image",'url("'+n+'")'),r.removeattr("data-background")):(o&&(r.attr("srcset",o),r.removeattr("data-srcset")),d&&(r.attr("sizes",d),r.removeattr("data-sizes")),h.length&&h.children("source").each((function(e){var t=m(e);t.attr("data-srcset")&&(t.attr("srcset",t.attr("data-srcset")),t.removeattr("data-srcset"))})),l&&(r.attr("src",l),r.removeattr("data-src"))),r.addclass(s.loadedclass).removeclass(s.loadingclass),a.find("."+s.preloaderclass).remove(),i.params.loop&&t){var e=a.attr("data-swiper-slide-index");if(a.hasclass(i.params.slideduplicateclass)){var p=i.$wrapperel.children('[data-swiper-slide-index="'+e+'"]:not(.'+i.params.slideduplicateclass+")");i.lazy.loadinslide(p.index(),!1)}else{var u=i.$wrapperel.children("."+i.params.slideduplicateclass+'[data-swiper-slide-index="'+e+'"]');i.lazy.loadinslide(u.index(),!1)}}i.emit("lazyimageready",a[0],r[0]),i.params.autoheight&&i.updateautoheight()}})),i.emit("lazyimageload",a[0],r[0])}))}},load:function(){var e=this,t=e.$wrapperel,i=e.params,s=e.slides,a=e.activeindex,r=e.virtual&&i.virtual.enabled,n=i.lazy,l=i.slidesperview;function o(e){if(r){if(t.children("."+i.slideclass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(s[e])return!0;return!1}function d(e){return r?m(e).attr("data-swiper-slide-index"):m(e).index()}if("auto"===l&&(l=0),e.lazy.initialimageloaded||(e.lazy.initialimageloaded=!0),e.params.watchslidesvisibility)t.children("."+i.slidevisibleclass).each((function(t){var i=r?m(t).attr("data-swiper-slide-index"):m(t).index();e.lazy.loadinslide(i)}));else if(l>1)for(var h=a;h1||n.loadprevnextamount&&n.loadprevnextamount>1){for(var p=n.loadprevnextamount,u=l,c=math.min(a+u+math.max(p,u),s.length),f=math.max(a-math.max(u,p),0),v=a+l;v0&&e.lazy.loadinslide(d(w));var y=t.children("."+i.slideprevclass);y.length>0&&e.lazy.loadinslide(d(y))}}},ie={linearspline:function(e,t){var i,s,a,r,n,l=function(e,t){for(s=-1,i=e.length;i-s>1;)e[a=i+s>>1]<=t?s=a:i=a;return i};return this.x=e,this.y=t,this.lastindex=e.length-1,this.interpolate=function(e){return e?(n=l(this.x,e),r=n-1,(e-this.x[r])*(this.y[n]-this.y[r])/(this.x[n]-this.x[r])+this.y[r]):0},this},getinterpolatefunction:function(e){this.controller.spline||(this.controller.spline=this.params.loop?new ie.linearspline(this.slidesgrid,e.slidesgrid):new ie.linearspline(this.snapgrid,e.snapgrid))},settranslate:function(e,t){var i,s,a=this,r=a.controller.control,n=a.constructor;function l(e){var t=a.rtltranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(a.controller.getinterpolatefunction(e),s=-a.controller.spline.interpolate(-t)),s&&"container"!==a.params.controller.by||(i=(e.maxtranslate()-e.mintranslate())/(a.maxtranslate()-a.mintranslate()),s=(t-a.mintranslate())*i+e.mintranslate()),a.params.controller.inverse&&(s=e.maxtranslate()-s),e.updateprogress(s),e.settranslate(s,a),e.updateactiveindex(),e.updateslidesclasses()}if(array.isarray(r))for(var o=0;o0&&(this.isbeginning?(this.a11y.disableel(i),this.a11y.makeelnotfocusable(i)):(this.a11y.enableel(i),this.a11y.makeelfocusable(i))),t&&t.length>0&&(this.isend?(this.a11y.disableel(t),this.a11y.makeelnotfocusable(t)):(this.a11y.enableel(t),this.a11y.makeelfocusable(t)))}},updatepagination:function(){var e=this,t=e.params.a11y;e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.bullets.each((function(i){var s=m(i);e.a11y.makeelfocusable(s),e.params.pagination.renderbullet||(e.a11y.addelrole(s,"button"),e.a11y.addellabel(s,t.paginationbulletmessage.replace(/\{\{index\}\}/,s.index()+1)))}))},init:function(){var e=this,t=e.params.a11y;e.$el.append(e.a11y.liveregion);var i=e.$el;t.containerroledescriptionmessage&&e.a11y.addelroledescription(i,t.containerroledescriptionmessage),t.containermessage&&e.a11y.addellabel(i,t.containermessage);var s,a,r,n=e.$wrapperel,l=n.attr("id")||"swiper-wrapper-"+e.a11y.getrandomnumber(16);e.a11y.addelid(n,l),s=e.params.autoplay&&e.params.autoplay.enabled?"off":"polite",e.a11y.addellive(n,s),t.itemroledescriptionmessage&&e.a11y.addelroledescription(m(e.slides),t.itemroledescriptionmessage),e.a11y.addelrole(m(e.slides),"group"),e.slides.each((function(t){var i=m(t);e.a11y.addellabel(i,i.index()+1+" / "+e.slides.length)})),e.navigation&&e.navigation.$nextel&&(a=e.navigation.$nextel),e.navigation&&e.navigation.$prevel&&(r=e.navigation.$prevel),a&&a.length&&(e.a11y.makeelfocusable(a),"button"!==a[0].tagname&&(e.a11y.addelrole(a,"button"),a.on("keydown",e.a11y.onenterkey)),e.a11y.addellabel(a,t.nextslidemessage),e.a11y.addelcontrols(a,l)),r&&r.length&&(e.a11y.makeelfocusable(r),"button"!==r[0].tagname&&(e.a11y.addelrole(r,"button"),r.on("keydown",e.a11y.onenterkey)),e.a11y.addellabel(r,t.prevslidemessage),e.a11y.addelcontrols(r,l)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown","."+e.params.pagination.bulletclass,e.a11y.onenterkey)},destroy:function(){var e,t;this.a11y.liveregion&&this.a11y.liveregion.length>0&&this.a11y.liveregion.remove(),this.navigation&&this.navigation.$nextel&&(e=this.navigation.$nextel),this.navigation&&this.navigation.$prevel&&(t=this.navigation.$prevel),e&&e.off("keydown",this.a11y.onenterkey),t&&t.off("keydown",this.a11y.onenterkey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown","."+this.params.pagination.bulletclass,this.a11y.onenterkey)}},ae={init:function(){var e=l();if(this.params.history){if(!e.history||!e.history.pushstate)return this.params.history.enabled=!1,void(this.params.hashnavigation.enabled=!0);var t=this.history;t.initialized=!0,t.paths=ae.getpathvalues(this.params.url),(t.paths.key||t.paths.value)&&(t.scrolltoslide(0,t.paths.value,this.params.runcallbacksoninit),this.params.history.replacestate||e.addeventlistener("popstate",this.history.sethistorypopstate))}},destroy:function(){var e=l();this.params.history.replacestate||e.removeeventlistener("popstate",this.history.sethistorypopstate)},sethistorypopstate:function(){this.history.paths=ae.getpathvalues(this.params.url),this.history.scrolltoslide(this.params.speed,this.history.paths.value,!1)},getpathvalues:function(e){var t=l(),i=(e?new url(e):t.location).pathname.slice(1).split("/").filter((function(e){return""!==e})),s=i.length;return{key:i[s-2],value:i[s-1]}},sethistory:function(e,t){var i=l();if(this.history.initialized&&this.params.history.enabled){var s;s=this.params.url?new url(this.params.url):i.location;var a=this.slides.eq(t),r=ae.slugify(a.attr("data-history"));s.pathname.includes(e)||(r=e+"/"+r);var n=i.history.state;n&&n.value===r||(this.params.history.replacestate?i.history.replacestate({value:r},null,r):i.history.pushstate({value:r},null,r))}},slugify:function(e){return e.tostring().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrolltoslide:function(e,t,i){if(t)for(var s=0,a=this.slides.length;s'),i.append(e)),e.css({height:a+"px"})):0===(e=t.find(".swiper-cube-shadow")).length&&(e=m('
'),t.append(e)));for(var c=0;c-1&&(u=90*v+90*y,n&&(u=90*-v-90*y)),f.transform(t),d.slideshadows){var c=h?f.find(".swiper-slide-shadow-left"):f.find(".swiper-slide-shadow-top"),s=h?f.find(".swiper-slide-shadow-right"):f.find(".swiper-slide-shadow-bottom");0===c.length&&(c=m('
'),f.append(c)),0===s.length&&(s=m('
'),f.append(s)),c.length&&(c[0].style.opacity=math.max(-y,0)),s.length&&(s[0].style.opacity=math.max(y,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),d.shadow)if(h)e.transform("translate3d(0px, "+(a/2+d.shadowoffset)+"px, "+-a/2+"px) rotatex(90deg) rotatez(0deg) scale("+d.shadowscale+")");else{var m=math.abs(u)-90*math.floor(math.abs(u)/90),z=1.5-(math.sin(2*m*math.pi/360)/2+math.cos(2*m*math.pi/360)/2),p=d.shadowscale,k=d.shadowscale/z,$=d.shadowoffset;e.transform("scale3d("+p+", 1, "+k+") translate3d(0px, "+(r/2+$)+"px, "+-r/2/k+"px) rotatex(-90deg)")}var l=o.issafari||o.iswebview?-l/2:0;i.transform("translate3d(0px,0,"+l+"px) rotatex("+(this.ishorizontal()?0:u)+"deg) rotatey("+(this.ishorizontal()?-u:0)+"deg)")},settransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeeffect.shadow&&!this.ishorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},de={settranslate:function(){for(var e=this.slides,t=this.rtltranslate,i=0;i'),s.append(d)),0===h.length&&(h=m('
'),s.append(h)),d.length&&(d[0].style.opacity=math.max(-a,0)),h.length&&(h[0].style.opacity=math.max(a,0))}s.transform("translate3d("+l+"px, "+o+"px, 0px) rotatex("+n+"deg) rotatey("+r+"deg)")}},settransition:function(e){var t=this,i=t.slides,s=t.activeindex,a=t.$wrapperel;if(i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualtranslate&&0!==e){var r=!1;i.eq(s).transitionend((function(){if(!r&&t&&!t.destroyed){r=!0,t.animating=!1;for(var e=["webkittransitionend","transitionend"],i=0;i'),u.append(c)),0===s.length&&(s=m('
'),u.append(s)),c.length&&(c[0].style.opacity=f>0?f:0),s.length&&(s[0].style.opacity=-f>0?-f:0)}}},settransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},pe={init:function(){var e=this.params.thumbs;if(this.thumbs.initialized)return!1;this.thumbs.initialized=!0;var t=this.constructor;return e.swiper instanceof t?(this.thumbs.swiper=e.swiper,s(this.thumbs.swiper.originalparams,{watchslidesprogress:!0,slidetoclickedslide:!1}),s(this.thumbs.swiper.params,{watchslidesprogress:!0,slidetoclickedslide:!1})):c(e.swiper)&&(this.thumbs.swiper=new t(s({},e.swiper,{watchslidesvisibility:!0,watchslidesprogress:!0,slidetoclickedslide:!1})),this.thumbs.swipercreated=!0),this.thumbs.swiper.$el.addclass(this.params.thumbs.thumbscontainerclass),this.thumbs.swiper.on("tap",this.thumbs.onthumbclick),!0},onthumbclick:function(){var e=this.thumbs.swiper;if(e){var t=e.clickedindex,i=e.clickedslide;if(!(i&&m(i).hasclass(this.params.thumbs.slidethumbactiveclass)||null==t)){var s;if(s=e.params.loop?parseint(m(e.clickedslide).attr("data-swiper-slide-index"),10):t,this.params.loop){var a=this.activeindex;this.slides.eq(a).hasclass(this.params.slideduplicateclass)&&(this.loopfix(),this._clientleft=this.$wrapperel[0].clientleft,a=this.activeindex);var r=this.slides.eq(a).prevall('[data-swiper-slide-index="'+s+'"]').eq(0).index(),n=this.slides.eq(a).nextall('[data-swiper-slide-index="'+s+'"]').eq(0).index();s=void 0===r?n:void 0===n?r:n-athis.previousindex?"next":"prev"}else n=(r=this.realindex)>this.previousindex?"next":"prev";a&&(r+="next"===n?s:-1*s),t.visibleslidesindexes&&t.visibleslidesindexes.indexof(r)<0&&(t.params.centeredslides?r=r>l?r-math.floor(i/2)+1:r+math.floor(i/2)-1:r>l&&(r=r-i+1),t.slideto(r,e?0:void 0))}var h=1,p=this.params.thumbs.slidethumbactiveclass;if(this.params.slidesperview>1&&!this.params.centeredslides&&(h=this.params.slidesperview),this.params.thumbs.multipleactivethumbs||(h=1),h=math.floor(h),t.slides.removeclass(p),t.params.loop||t.params.virtual&&t.params.virtual.enabled)for(var u=0;u0&&!m(t.target).hasclass(e.params.pagination.bulletclass)&&(!0===e.pagination.$el.hasclass(e.params.pagination.hiddenclass)?e.emit("paginationshow"):e.emit("paginationhide"),e.pagination.$el.toggleclass(e.params.pagination.hiddenclass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragsize:"auto",hide:!1,draggable:!1,snaponrelease:!0,lockclass:"swiper-scrollbar-lock",dragclass:"swiper-scrollbar-drag"}},create:function(){m(this,{scrollbar:t({istouched:!1,timeout:null,dragtimeout:null},j)})},on:{init:function(e){e.scrollbar.init(),e.scrollbar.updatesize(),e.scrollbar.settranslate()},update:function(e){e.scrollbar.updatesize()},resize:function(e){e.scrollbar.updatesize()},observerupdate:function(e){e.scrollbar.updatesize()},settranslate:function(e){e.scrollbar.settranslate()},settransition:function(e,t){e.scrollbar.settransition(t)},destroy:function(e){e.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){m(this,{parallax:t({},q)})},on:{beforeinit:function(e){e.params.parallax.enabled&&(e.params.watchslidesprogress=!0,e.originalparams.watchslidesprogress=!0)},init:function(e){e.params.parallax.enabled&&e.parallax.settranslate()},settranslate:function(e){e.params.parallax.enabled&&e.parallax.settranslate()},settransition:function(e,t){e.params.parallax.enabled&&e.parallax.settransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxratio:3,minratio:1,toggle:!0,containerclass:"swiper-zoom-container",zoomedslideclass:"swiper-slide-zoomed"}},create:function(){var e=this;m(e,{zoom:t({enabled:!1,scale:1,currentscale:1,isscaling:!1,gesture:{$slideel:void 0,slidewidth:void 0,slideheight:void 0,$imageel:void 0,$imagewrapel:void 0,maxratio:3},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}},ee)});var i=1;object.defineproperty(e.zoom,"scale",{get:function(){return i},set:function(t){if(i!==t){var s=e.zoom.gesture.$imageel?e.zoom.gesture.$imageel[0]:void 0,a=e.zoom.gesture.$slideel?e.zoom.gesture.$slideel[0]:void 0;e.emit("zoomchange",t,s,a)}i=t}})},on:{init:function(e){e.params.zoom.enabled&&e.zoom.enable()},destroy:function(e){e.zoom.disable()},touchstart:function(e,t){e.zoom.enabled&&e.zoom.ontouchstart(t)},touchend:function(e,t){e.zoom.enabled&&e.zoom.ontouchend(t)},doubletap:function(e,t){e.params.zoom.enabled&&e.zoom.enabled&&e.params.zoom.toggle&&e.zoom.toggle(t)},transitionend:function(e){e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.ontransitionend()},slidechange:function(e){e.zoom.enabled&&e.params.zoom.enabled&&e.params.cssmode&&e.zoom.ontransitionend()}}},{name:"lazy",params:{lazy:{enabled:!1,loadprevnext:!1,loadprevnextamount:1,loadontransitionstart:!1,elementclass:"swiper-lazy",loadingclass:"swiper-lazy-loading",loadedclass:"swiper-lazy-loaded",preloaderclass:"swiper-lazy-preloader"}},create:function(){m(this,{lazy:t({initialimageloaded:!1},te)})},on:{beforeinit:function(e){e.params.lazy.enabled&&e.params.preloadimages&&(e.params.preloadimages=!1)},init:function(e){e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialslide&&e.lazy.load()},scroll:function(e){e.params.freemode&&!e.params.freemodesticky&&e.lazy.load()},resize:function(e){e.params.lazy.enabled&&e.lazy.load()},scrollbardragmove:function(e){e.params.lazy.enabled&&e.lazy.load()},transitionstart:function(e){e.params.lazy.enabled&&(e.params.lazy.loadontransitionstart||!e.params.lazy.loadontransitionstart&&!e.lazy.initialimageloaded)&&e.lazy.load()},transitionend:function(e){e.params.lazy.enabled&&!e.params.lazy.loadontransitionstart&&e.lazy.load()},slidechange:function(e){e.params.lazy.enabled&&e.params.cssmode&&e.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){m(this,{controller:t({control:this.params.controller.control},ie)})},on:{update:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerupdate:function(e){e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},settranslate:function(e,t,i){e.controller.control&&e.controller.settranslate(t,i)},settransition:function(e,t,i){e.controller.control&&e.controller.settransition(t,i)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationclass:"swiper-notification",prevslidemessage:"previous slide",nextslidemessage:"next slide",firstslidemessage:"this is the first slide",lastslidemessage:"this is the last slide",paginationbulletmessage:"go to slide {{index}}",containermessage:null,containerroledescriptionmessage:null,itemroledescriptionmessage:null}},create:function(){m(this,{a11y:t(t({},se),{},{liveregion:m('')})})},on:{afterinit:function(e){e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updatenavigation())},toedge:function(e){e.params.a11y.enabled&&e.a11y.updatenavigation()},fromedge:function(e){e.params.a11y.enabled&&e.a11y.updatenavigation()},paginationupdate:function(e){e.params.a11y.enabled&&e.a11y.updatepagination()},destroy:function(e){e.params.a11y.enabled&&e.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replacestate:!1,key:"slides"}},create:function(){m(this,{history:t({},ae)})},on:{init:function(e){e.params.history.enabled&&e.history.init()},destroy:function(e){e.params.history.enabled&&e.history.destroy()},transitionend:function(e){e.history.initialized&&e.history.sethistory(e.params.history.key,e.activeindex)},slidechange:function(e){e.history.initialized&&e.params.cssmode&&e.history.sethistory(e.params.history.key,e.activeindex)}}},{name:"hash-navigation",params:{hashnavigation:{enabled:!1,replacestate:!1,watchstate:!1}},create:function(){m(this,{hashnavigation:t({initialized:!1},re)})},on:{init:function(e){e.params.hashnavigation.enabled&&e.hashnavigation.init()},destroy:function(e){e.params.hashnavigation.enabled&&e.hashnavigation.destroy()},transitionend:function(e){e.hashnavigation.initialized&&e.hashnavigation.sethash()},slidechange:function(e){e.hashnavigation.initialized&&e.params.cssmode&&e.hashnavigation.sethash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitfortransition:!0,disableoninteraction:!0,stoponlastslide:!1,reversedirection:!1}},create:function(){m(this,{autoplay:t(t({},ne),{},{running:!1,paused:!1})})},on:{init:function(e){e.params.autoplay.enabled&&(e.autoplay.start(),r().addeventlistener("visibilitychange",e.autoplay.onvisibilitychange))},beforetransitionstart:function(e,t,i){e.autoplay.running&&(i||!e.params.autoplay.disableoninteraction?e.autoplay.pause(t):e.autoplay.stop())},sliderfirstmove:function(e){e.autoplay.running&&(e.params.autoplay.disableoninteraction?e.autoplay.stop():e.autoplay.pause())},touchend:function(e){e.params.cssmode&&e.autoplay.paused&&!e.params.autoplay.disableoninteraction&&e.autoplay.run()},destroy:function(e){e.autoplay.running&&e.autoplay.stop(),r().removeeventlistener("visibilitychange",e.autoplay.onvisibilitychange)}}},{name:"effect-fade",params:{fadeeffect:{crossfade:!1}},create:function(){m(this,{fadeeffect:t({},le)})},on:{beforeinit:function(e){if("fade"===e.params.effect){e.classnames.push(e.params.containermodifierclass+"fade");var t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,spacebetween:0,virtualtranslate:!0};s(e.params,t),s(e.originalparams,t)}},settranslate:function(e){"fade"===e.params.effect&&e.fadeeffect.settranslate()},settransition:function(e,t){"fade"===e.params.effect&&e.fadeeffect.settransition(t)}}},{name:"effect-cube",params:{cubeeffect:{slideshadows:!0,shadow:!0,shadowoffset:20,shadowscale:.94}},create:function(){m(this,{cubeeffect:t({},oe)})},on:{beforeinit:function(e){if("cube"===e.params.effect){e.classnames.push(e.params.containermodifierclass+"cube"),e.classnames.push(e.params.containermodifierclass+"3d");var t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,resistanceratio:0,spacebetween:0,centeredslides:!1,virtualtranslate:!0};s(e.params,t),s(e.originalparams,t)}},settranslate:function(e){"cube"===e.params.effect&&e.cubeeffect.settranslate()},settransition:function(e,t){"cube"===e.params.effect&&e.cubeeffect.settransition(t)}}},{name:"effect-flip",params:{flipeffect:{slideshadows:!0,limitrotation:!0}},create:function(){m(this,{flipeffect:t({},de)})},on:{beforeinit:function(e){if("flip"===e.params.effect){e.classnames.push(e.params.containermodifierclass+"flip"),e.classnames.push(e.params.containermodifierclass+"3d");var t={slidesperview:1,slidespercolumn:1,slidespergroup:1,watchslidesprogress:!0,spacebetween:0,virtualtranslate:!0};s(e.params,t),s(e.originalparams,t)}},settranslate:function(e){"flip"===e.params.effect&&e.flipeffect.settranslate()},settransition:function(e,t){"flip"===e.params.effect&&e.flipeffect.settransition(t)}}},{name:"effect-coverflow",params:{coverfloweffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideshadows:!0}},create:function(){m(this,{coverfloweffect:t({},he)})},on:{beforeinit:function(e){"coverflow"===e.params.effect&&(e.classnames.push(e.params.containermodifierclass+"coverflow"),e.classnames.push(e.params.containermodifierclass+"3d"),e.params.watchslidesprogress=!0,e.originalparams.watchslidesprogress=!0)},settranslate:function(e){"coverflow"===e.params.effect&&e.coverfloweffect.settranslate()},settransition:function(e,t){"coverflow"===e.params.effect&&e.coverfloweffect.settransition(t)}}},{name:"thumbs",params:{thumbs:{swiper:null,multipleactivethumbs:!0,autoscrolloffset:0,slidethumbactiveclass:"swiper-slide-thumb-active",thumbscontainerclass:"swiper-container-thumbs"}},create:function(){m(this,{thumbs:t({swiper:null,initialized:!1},pe)})},on:{beforeinit:function(e){var t=e.params.thumbs;t&&t.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slidechange:function(e){e.thumbs.swiper&&e.thumbs.update()},update:function(e){e.thumbs.swiper&&e.thumbs.update()},resize:function(e){e.thumbs.swiper&&e.thumbs.update()},observerupdate:function(e){e.thumbs.swiper&&e.thumbs.update()},settransition:function(e,t){var i=e.thumbs.swiper;i&&i.settransition(t)},beforedestroy:function(e){var t=e.thumbs.swiper;t&&e.thumbs.swipercreated&&t&&t.destroy()}}}];return r.use(ue),r}));