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