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