/*! lazy load 1.9.7 - mit license - copyright 2010-2015 mika tuupola */
!function(a,b,c,d){var e=a(b);a.fn.lazyload=function(f){function g(){var b=0;i.each(function(){var c=a(this);if(!j.skip_invisible||c.is(":visible"))if(a.abovethetop(this,j)||a.leftofbegin(this,j));else if(a.belowthefold(this,j)||a.rightoffold(this,j)){if(++b>j.failure_limit)return!1}else c.trigger("appear"),b=0})}var h,i=this,j={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:b,data_attribute:"original",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/png;base64,ivborw0kggoaaaansuheugaaaaeaaaabcayaaaaffcsjaaaaaxnsr0iars4c6qaaaarnqu1baacxjwv8yquaaaajcehzcwaadsqaaa7eazurdhsaaaansurbvbhxyzh8+pb/aaffa0nnpuclaaaaaelftksuqmcc"};return f&&(d!==f.failurelimit&&(f.failure_limit=f.failurelimit,delete f.failurelimit),d!==f.effectspeed&&(f.effect_speed=f.effectspeed,delete f.effectspeed),a.extend(j,f)),h=j.container===d||j.container===b?e:a(j.container),0===j.event.indexof("scroll")&&h.bind(j.event,function(){return g()}),this.each(function(){var b=this,c=a(b);b.loaded=!1,(c.attr("src")===d||c.attr("src")===!1)&&c.is("img")&&c.attr("src",j.placeholder),c.one("appear",function(){if(!this.loaded){if(j.appear){var d=i.length;j.appear.call(b,d,j)}a("").bind("load",function(){var d=c.attr("data-"+j.data_attribute);c.hide(),c.is("img")?c.attr("src",d):c.css("background-image","url('"+d+"')"),c[j.effect](j.effect_speed),b.loaded=!0;var e=a.grep(i,function(a){return!a.loaded});if(i=a(e),j.load){var f=i.length;j.load.call(b,f,j)}}).attr("src",c.attr("data-"+j.data_attribute))}}),0!==j.event.indexof("scroll")&&c.bind(j.event,function(){b.loaded||c.trigger("appear")})}),e.bind("resize",function(){g()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appversion)&&e.bind("pageshow",function(b){b.originalevent&&b.originalevent.persisted&&i.each(function(){a(this).trigger("appear")})}),a(c).ready(function(){g()}),this},a.belowthefold=function(c,f){var g;return g=f.container===d||f.container===b?(b.innerheight?b.innerheight:e.height())+e.scrolltop():a(f.container).offset().top+a(f.container).height(),g<=a(c).offset().top-f.threshold},a.rightoffold=function(c,f){var g;return g=f.container===d||f.container===b?e.width()+e.scrollleft():a(f.container).offset().left+a(f.container).width(),g<=a(c).offset().left-f.threshold},a.abovethetop=function(c,f){var g;return g=f.container===d||f.container===b?e.scrolltop():a(f.container).offset().top,g>=a(c).offset().top+f.threshold+a(c).height()},a.leftofbegin=function(c,f){var g;return g=f.container===d||f.container===b?e.scrollleft():a(f.container).offset().left,g>=a(c).offset().left+f.threshold+a(c).width()},a.inviewport=function(b,c){return!(a.rightoffold(b,c)||a.leftofbegin(b,c)||a.belowthefold(b,c)||a.abovethetop(b,c))},a.extend(a.expr[":"],{"below-the-fold":function(b){return a.belowthefold(b,{threshold:0})},"above-the-top":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-screen":function(b){return a.rightoffold(b,{threshold:0})},"left-of-screen":function(b){return!a.rightoffold(b,{threshold:0})},"in-viewport":function(b){return a.inviewport(b,{threshold:0})},"above-the-fold":function(b){return!a.belowthefold(b,{threshold:0})},"right-of-fold":function(b){return a.rightoffold(b,{threshold:0})},"left-of-fold":function(b){return!a.rightoffold(b,{threshold:0})}})}(jquery,window,document);
/* == jquery mousewheel plugin == version: 3.1.13, license: mit license (mit) */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jquery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheeldelta"in g&&(m=g.wheeldelta),"wheeldeltay"in g&&(m=g.wheeldeltay),"wheeldeltax"in g&&(l=-1*g.wheeldeltax),"axis"in g&&g.axis===g.horizontal_axis&&(l=-1*m,m=0),j=0===m?l:m,"deltay"in g&&(m=-1*g.deltay,j=m),"deltax"in g&&(l=g.deltax,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltamode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltamode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=math.max(math.abs(m),math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=math[j>=1?"floor":"ceil"](j/f),l=math[l>=1?"floor":"ceil"](l/f),m=math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeoffset&&this.getboundingclientrect){var s=this.getboundingclientrect();o=b.clientx-s.left,p=b.clienty-s.top}return b.deltax=l,b.deltay=m,b.deltafactor=f,b.offsetx=o,b.offsety=p,b.deltamode=0,h.unshift(b,j,l,m),e&&cleartimeout(e),e=settimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustolddeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","dommousescroll","mozmousepixelscroll"],h="onwheel"in document||document.documentmode>=9?["wheel"]:["mousewheel","dommousescroll","mozmousepixelscroll"],i=array.prototype.slice;if(a.event.fixhooks)for(var j=g.length;j;)a.event.fixhooks[g[--j]]=a.event.mousehooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addeventlistener)for(var c=h.length;c;)this.addeventlistener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getlineheight(this)),a.data(this,"mousewheel-page-height",k.getpageheight(this))},teardown:function(){if(this.removeeventlistener)for(var c=h.length;c;)this.removeeventlistener(h[--c],b,!1);else this.onmousewheel=null;a.removedata(this,"mousewheel-line-height"),a.removedata(this,"mousewheel-page-height")},getlineheight:function(b){var c=a(b),d=c["offsetparent"in a.fn?"offsetparent":"parent"]();return d.length||(d=a("body")),parseint(d.css("fontsize"),10)||parseint(c.css("fontsize"),10)||16},getpageheight:function(b){return a(b).height()},settings:{adjustolddeltas:!0,normalizeoffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jquery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheeldelta"in g&&(m=g.wheeldelta),"wheeldeltay"in g&&(m=g.wheeldeltay),"wheeldeltax"in g&&(l=-1*g.wheeldeltax),"axis"in g&&g.axis===g.horizontal_axis&&(l=-1*m,m=0),j=0===m?l:m,"deltay"in g&&(m=-1*g.deltay,j=m),"deltax"in g&&(l=g.deltax,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltamode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltamode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=math.max(math.abs(m),math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=math[j>=1?"floor":"ceil"](j/f),l=math[l>=1?"floor":"ceil"](l/f),m=math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeoffset&&this.getboundingclientrect){var s=this.getboundingclientrect();o=b.clientx-s.left,p=b.clienty-s.top}return b.deltax=l,b.deltay=m,b.deltafactor=f,b.offsetx=o,b.offsety=p,b.deltamode=0,h.unshift(b,j,l,m),e&&cleartimeout(e),e=settimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustolddeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","dommousescroll","mozmousepixelscroll"],h="onwheel"in document||document.documentmode>=9?["wheel"]:["mousewheel","dommousescroll","mozmousepixelscroll"],i=array.prototype.slice;if(a.event.fixhooks)for(var j=g.length;j;)a.event.fixhooks[g[--j]]=a.event.mousehooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addeventlistener)for(var c=h.length;c;)this.addeventlistener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getlineheight(this)),a.data(this,"mousewheel-page-height",k.getpageheight(this))},teardown:function(){if(this.removeeventlistener)for(var c=h.length;c;)this.removeeventlistener(h[--c],b,!1);else this.onmousewheel=null;a.removedata(this,"mousewheel-line-height"),a.removedata(this,"mousewheel-page-height")},getlineheight:function(b){var c=a(b),d=c["offsetparent"in a.fn?"offsetparent":"parent"]();return d.length||(d=a("body")),parseint(d.css("fontsize"),10)||parseint(c.css("fontsize"),10)||16},getpageheight:function(b){return a(b).height()},settings:{adjustolddeltas:!0,normalizeoffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
/* == malihu jquery custom scrollbar plugin == version: 3.1.5, license: mit license (mit) */
!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jquery,window,document)}(function(e){!function(t){var o="function"==typeof define&&define.amd,a="undefined"!=typeof module&&module.exports,n="https:"==document.location.protocol?"https:":"http:",i="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";o||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeuri("%3cscript src="+n+"//"+i+"%3e%3c/script%3e"))),t()}(function(){var t,o="mcustomscrollbar",a="mcs",n=".mcustomscrollbar",i={settop:0,setleft:0,axis:"y",scrollbarposition:"inside",scrollinertia:950,autodraggerlength:!0,alwaysshowscrollbar:0,snapoffset:0,mousewheel:{enable:!0,scrollamount:"auto",axis:"y",deltafactor:"auto",disableover:["select","option","keygen","datalist","textarea"]},scrollbuttons:{scrolltype:"stepless",scrollamount:"auto"},keyboard:{enable:!0,scrolltype:"stepless",scrollamount:"auto"},contenttouchscroll:25,documenttouchscroll:!0,advanced:{autoscrollonfocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateoncontentresize:!0,updateonimageload:"auto",autoupdatetimeout:60},theme:"light",callbacks:{ontotalscrolloffset:0,ontotalscrollbackoffset:0,alwaystriggeroffsets:!0}},r=0,l={},s=window.attachevent&&!window.addeventlistener?1:0,c=!1,d=["mcsb_dragger_ondrag","mcsb_scrolltools_ondrag","mcs_img_loaded","mcs_disabled","mcs_destroyed","mcs_no_scrollbar","mcs-autohide","mcs-dir-rtl","mcs_no_scrollbar_y","mcs_no_scrollbar_x","mcs_y_hidden","mcs_x_hidden","mcsb_draggercontainer","mcsb_buttonup","mcsb_buttondown","mcsb_buttonleft","mcsb_buttonright"],u={init:function(t){var t=e.extend(!0,{},i,t),o=f.call(this);if(t.live){var s=t.liveselector||this.selector||n,c=e(s);if("off"===t.live)return void m(s);l[s]=settimeout(function(){c.mcustomscrollbar(t),"once"===t.live&&c.length&&m(s)},500)}else m(s);return t.setwidth=t.set_width?t.set_width:t.setwidth,t.setheight=t.set_height?t.set_height:t.setheight,t.axis=t.horizontalscroll?"x":p(t.axis),t.scrollinertia=t.scrollinertia>0&&t.scrollinertia<17?17:t.scrollinertia,"object"!=typeof t.mousewheel&&1==t.mousewheel&&(t.mousewheel={enable:!0,scrollamount:"auto",axis:"y",preventdefault:!1,deltafactor:"auto",normalizedelta:!1,invert:!1}),t.mousewheel.scrollamount=t.mousewheelpixels?t.mousewheelpixels:t.mousewheel.scrollamount,t.mousewheel.normalizedelta=t.advanced.normalizemousewheeldelta?t.advanced.normalizemousewheeldelta:t.mousewheel.normalizedelta,t.scrollbuttons.scrolltype=g(t.scrollbuttons.scrolltype),h(t),e(o).each(function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,opt:t,scrollratio:{y:null,x:null},overflowed:null,contentreset:{y:null,x:null},bindevents:!1,tweenrunning:!1,sequential:{},langdir:o.css("direction"),cboffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=o.data(a),i=n.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarposition=s),c&&(i.theme=c,h(i)),v.call(this),n&&i.callbacks.oncreate&&"function"==typeof i.callbacks.oncreate&&i.callbacks.oncreate.call(this),e("#mcsb_"+n.idx+"_container img:not(."+d[2]+")").addclass(d[2]),u.update.call(null,o)}})},update:function(t,o){var n=t||f.call(this);return e(n).each(function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e("#mcsb_"+n.idx+"_container"),l=e("#mcsb_"+n.idx),s=[e("#mcsb_"+n.idx+"_dragger_vertical"),e("#mcsb_"+n.idx+"_dragger_horizontal")];if(!r.length)return;n.tweenrunning&&q(t),o&&n&&i.callbacks.onbeforeupdate&&"function"==typeof i.callbacks.onbeforeupdate&&i.callbacks.onbeforeupdate.call(this),t.hasclass(d[3])&&t.removeclass(d[3]),t.hasclass(d[4])&&t.removeclass(d[4]),l.css("max-height","none"),l.height()!==t.height()&&l.css("max-height",t.height()),_.call(this),"y"===i.axis||i.advanced.autoexpandhorizontalscroll||r.css("width",x(r)),n.overflowed=y.call(this),m.call(this),i.autodraggerlength&&s.call(this),b.call(this),t.call(this);var c=[math.abs(r[0].offsettop),math.abs(r[0].offsetleft)];"x"!==i.axis&&(n.overflowed[0]?s[0].height()>s[0].parent().height()?b.call(this):(g(t,c[0].tostring(),{dir:"y",dur:0,overwrite:"none"}),n.contentreset.y=null):(b.call(this),"y"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[1]&&g(t,c[1].tostring(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(n.overflowed[1]?s[1].width()>s[1].parent().width()?b.call(this):(g(t,c[1].tostring(),{dir:"x",dur:0,overwrite:"none"}),n.contentreset.x=null):(b.call(this),"x"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[0]&&g(t,c[0].tostring(),{dir:"y",dur:0,overwrite:"none"}))),o&&n&&(2===o&&i.callbacks.onimageload&&"function"==typeof i.callbacks.onimageload?i.callbacks.onimageload.call(this):3===o&&i.callbacks.onselectorchange&&"function"==typeof i.callbacks.onselectorchange?i.callbacks.onselectorchange.call(this):i.callbacks.onupdate&&"function"==typeof i.callbacks.onupdate&&i.callbacks.onupdate.call(this)),n.call(this)}})},scrollto:function(t,o){if("undefined"!=typeof t&&null!=t){var n=f.call(this);return e(n).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l={trigger:"external",scrollinertia:r.scrollinertia,scrolleasing:"mcseaseinout",movedragger:!1,timeout:60,callbacks:!0,onstart:!0,onupdate:!0,oncomplete:!0},s=e.extend(!0,{},l,o),c=y.call(this,t),d=s.scrollinertia>0&&s.scrollinertia<17?17:s.scrollinertia;c[0]=x.call(this,c[0],"y"),c[1]=x.call(this,c[1],"x"),s.movedragger&&(c[0]*=i.scrollratio.y,c[1]*=i.scrollratio.x),s.dur=ne()?0:d,settimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&i.overflowed[0]&&(s.dir="y",s.overwrite="all",g(n,c[0].tostring(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x",s.overwrite="none",g(n,c[1].tostring(),s))},s.timeout)}})}},stop:function(){var t=f.call(this);return e(t).each(function(){var t=e(this);t.data(a)&&q(t)})},disable:function(t){var o=f.call(this);return e(o).each(function(){var o=e(this);if(o.data(a)){o.data(a);n.call(this,"remove"),k.call(this),t&&b.call(this),m.call(this,!0),o.addclass(d[3])}})},destroy:function(){var t=f.call(this);return e(t).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l=e("#mcsb_"+i.idx),s=e("#mcsb_"+i.idx+"_container"),c=e(".mcsb_"+i.idx+"_scrollbar");r.live&&m(r.liveselector||e(t).selector),n.call(this,"remove"),k.call(this),b.call(this),n.removedata(a),$(this,"mcs"),c.remove(),s.find("img."+d[2]).removeclass(d[2]),l.replacewith(s.contents()),n.removeclass(o+" _"+a+"_"+i.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addclass(d[4])}})}},f=function(){return"object"!=typeof e(this)||e(this).length<1?n:this},h=function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autodraggerlength=e.inarray(t.theme,o)>-1?!1:t.autodraggerlength,t.autoexpandscrollbar=e.inarray(t.theme,a)>-1?!1:t.autoexpandscrollbar,t.scrollbuttons.enable=e.inarray(t.theme,n)>-1?!1:t.scrollbuttons.enable,t.autohidescrollbar=e.inarray(t.theme,i)>-1?!0:t.autohidescrollbar,t.scrollbarposition=e.inarray(t.theme,r)>-1?"outside":t.scrollbarposition},m=function(e){l[e]&&(cleartimeout(l[e]),$(l,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),n=t.data(a),i=n.opt,r=i.autoexpandscrollbar?" "+d[1]+"_expand":"",l=["
",""],s="yx"===i.axis?"mcsb_vertical_horizontal":"x"===i.axis?"mcsb_horizontal":"mcsb_vertical",c="yx"===i.axis?l[0]+l[1]:"x"===i.axis?l[1]:l[0],u="yx"===i.axis?"":"",f=i.autohidescrollbar?" "+d[6]:"",h="x"!==i.axis&&"rtl"===n.langdir?" "+d[7]:"";i.setwidth&&t.css("width",i.setwidth),i.setheight&&t.css("height",i.setheight),i.setleft="y"!==i.axis&&"rtl"===n.langdir?"989999px":i.setleft,t.addclass(o+" _"+a+"_"+n.idx+f+h).wrapinner("");var m=e("#mcsb_"+n.idx),p=e("#mcsb_"+n.idx+"_container");"y"===i.axis||i.advanced.autoexpandhorizontalscroll||p.css("width",x(p)),"outside"===i.scrollbarposition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addclass("mcsb_outside").after(c)):(m.addclass("mcsb_inside").append(c),p.wrap(u)),w.call(this);var g=[e("#mcsb_"+n.idx+"_dragger_vertical"),e("#mcsb_"+n.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},x=function(t){var o=[t[0].scrollwidth,math.max.apply(math,t.children().map(function(){return e(this).outerwidth(!0)}).get())],a=t.parent().width();return o[0]>a?o[0]:o[1]>a?o[1]:"100%"},_=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mcsb_"+o.idx+"_container");if(n.advanced.autoexpandhorizontalscroll&&"y"!==n.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=math.ceil(i[0].scrollwidth);3===n.advanced.autoexpandhorizontalscroll||2!==n.advanced.autoexpandhorizontalscroll&&r>i.parent().width()?i.css({width:r,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("").css({width:math.ceil(i[0].getboundingclientrect().right+.4)-math.floor(i[0].getboundingclientrect().left),"min-width":"100%",position:"relative"}).unwrap()}},w=function(){var t=e(this),o=t.data(a),n=o.opt,i=e(".mcsb_"+o.idx+"_scrollbar:first"),r=oe(n.scrollbuttons.tabindex)?"tabindex='"+n.scrollbuttons.tabindex+"'":"",l=["","","",""],s=["x"===n.axis?l[2]:l[0],"x"===n.axis?l[3]:l[1],l[2],l[3]];n.scrollbuttons.enable&&i.prepend(s[0]).append(s[1]).next(".mcsb_scrolltools").prepend(s[2]).append(s[3])},s=function(){var t=e(this),o=t.data(a),n=e("#mcsb_"+o.idx),i=e("#mcsb_"+o.idx+"_container"),r=[e("#mcsb_"+o.idx+"_dragger_vertical"),e("#mcsb_"+o.idx+"_dragger_horizontal")],l=[n.height()/i.outerheight(!1),n.width()/i.outerwidth(!1)],c=[parseint(r[0].css("min-height")),math.round(l[0]*r[0].parent().height()),parseint(r[1].css("min-width")),math.round(l[1]*r[1].parent().width())],d=s&&c[1]r&&(r=s),c>l&&(l=c),[r>n.height(),l>n.width()]},b=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mcsb_"+o.idx),r=e("#mcsb_"+o.idx+"_container"),l=[e("#mcsb_"+o.idx+"_dragger_vertical"),e("#mcsb_"+o.idx+"_dragger_horizontal")];if(q(t),("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(l[0].add(r).css("top",0),g(t,"_resety")),"y"!==n.axis&&!o.overflowed[1]||"x"===n.axis&&o.overflowed[1]){var s=dx=0;"rtl"===o.langdir&&(s=i.width()-r.outerwidth(!1),dx=math.abs(s/o.scrollratio.x)),r.css("left",s),l[1].css("left",dx),g(t,"_resetx")}},t=function(){function t(){r=settimeout(function(){e.event.special.mousewheel?(cleartimeout(r),w.call(o[0])):t()},100)}var o=e(this),n=o.data(a),i=n.opt;if(!n.bindevents){if(i.call(this),i.contenttouchscroll&&d.call(this),e.call(this),i.mousewheel.enable){var r;t()}p.call(this),u.call(this),i.advanced.autoscrollonfocus&&h.call(this),i.scrollbuttons.enable&&f.call(this),i.keyboard.enable&&q.call(this),n.bindevents=!0}},k=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=".mcsb_"+o.idx+"_scrollbar",l=e("#mcsb_"+o.idx+",#mcsb_"+o.idx+"_container,#mcsb_"+o.idx+"_container_wrapper,"+r+" ."+d[12]+",#mcsb_"+o.idx+"_dragger_vertical,#mcsb_"+o.idx+"_dragger_horizontal,"+r+">a"),s=e("#mcsb_"+o.idx+"_container");n.advanced.releasedraggableselectors&&l.add(e(n.advanced.releasedraggableselectors)),n.advanced.extradraggableselectors&&l.add(e(n.advanced.extradraggableselectors)),o.bindevents&&(e(document).add(e(!a()||top.document)).unbind("."+i),l.each(function(){e(this).unbind("."+i)}),cleartimeout(t[0]._focustimeout),$(t[0],"_focustimeout"),cleartimeout(o.sequential.step),$(o.sequential,"step"),cleartimeout(s[0].oncompletetimeout),$(s[0],"oncompletetimeout"),o.bindevents=!1)},m=function(t){var o=e(this),n=o.data(a),i=n.opt,r=e("#mcsb_"+n.idx+"_container_wrapper"),l=r.length?r:e("#mcsb_"+n.idx+"_container"),s=[e("#mcsb_"+n.idx+"_scrollbar_vertical"),e("#mcsb_"+n.idx+"_scrollbar_horizontal")],c=[s[0].find(".mcsb_dragger"),s[1].find(".mcsb_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeclass(d[8]+" "+d[10])):(i.alwaysshowscrollbar?(2!==i.alwaysshowscrollbar&&c[0].css("display","none"),l.removeclass(d[10])):(s[0].css("display","none"),l.addclass(d[10])),l.addclass(d[8]))),"y"!==i.axis&&(n.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeclass(d[9]+" "+d[11])):(i.alwaysshowscrollbar?(2!==i.alwaysshowscrollbar&&c[1].css("display","none"),l.removeclass(d[11])):(s[1].css("display","none"),l.addclass(d[11])),l.addclass(d[9]))),n.overflowed[0]||n.overflowed[1]?o.removeclass(d[5]):o.addclass(d[5])},o=function(t){var o=t.type,a=t.target.ownerdocument!==document&&null!==frameelement?[e(frameelement).offset().top,e(frameelement).offset().left]:null,n=a()&&t.target.ownerdocument!==top.document&&null!==frameelement?[e(t.view.frameelement).offset().top,e(t.view.frameelement).offset().left]:[0,0];switch(o){case"pointerdown":case"mspointerdown":case"pointermove":case"mspointermove":case"pointerup":case"mspointerup":return a?[t.originalevent.pagey-a[0]+n[0],t.originalevent.pagex-a[1]+n[1],!1]:[t.originalevent.pagey,t.originalevent.pagex,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalevent.touches[0]||t.originalevent.changedtouches[0],r=t.originalevent.touches.length||t.originalevent.changedtouches.length;return t.target.ownerdocument!==document?[i.screeny,i.screenx,r>1]:[i.pagey,i.pagex,r>1];default:return a?[t.pagey-a[0]+n[0],t.pagex-a[1]+n[1],!1]:[t.pagey,t.pagex,!1]}},i=function(){function t(e,t,a,n){if(h[0].idletimer=d.scrollinertia<233?250:0,o.attr("id")===f[1])var i="x",s=(o[0].offsetleft-t+n)*l.scrollratio.x;else var i="y",s=(o[0].offsettop-e+a)*l.scrollratio.y;g(r,s.tostring(),{dir:i,drag:!0})}var o,n,i,r=e(this),l=r.data(a),d=l.opt,u=a+"_"+l.idx,f=["mcsb_"+l.idx+"_dragger_vertical","mcsb_"+l.idx+"_dragger_horizontal"],h=e("#mcsb_"+l.idx+"_container"),m=e("#"+f[0]+",#"+f[1]),p=d.advanced.releasedraggableselectors?m.add(e(d.advanced.releasedraggableselectors)):m,g=d.advanced.extradraggableselectors?e(!a()||top.document).add(e(d.advanced.extradraggableselectors)):e(!a()||top.document);m.bind("contextmenu."+u,function(e){e.preventdefault()}).bind("mousedown."+u+" touchstart."+u+" pointerdown."+u+" mspointerdown."+u,function(t){if(t.stopimmediatepropagation(),t.preventdefault(),ee(t)){c=!0,s&&(document.onselectstart=function(){return!1}),l.call(h,!1),q(r),o=e(this);var a=o.offset(),l=o(t)[0]-a.top,u=o(t)[1]-a.left,f=o.height()+a.top,m=o.width()+a.left;f>l&&l>0&&m>u&&u>0&&(n=l,i=u),c(o,"active",d.autoexpandscrollbar)}}).bind("touchmove."+u,function(e){e.stopimmediatepropagation(),e.preventdefault();var a=o.offset(),r=o(e)[0]-a.top,l=o(e)[1]-a.left;t(n,i,r,l)}),e(document).add(g).bind("mousemove."+u+" pointermove."+u+" mspointermove."+u,function(e){if(o){var a=o.offset(),r=o(e)[0]-a.top,l=o(e)[1]-a.left;if(n===r&&i===l)return;t(n,i,r,l)}}).add(p).bind("mouseup."+u+" touchend."+u+" pointerup."+u+" mspointerup."+u,function(){o&&(c(o,"active",d.autoexpandscrollbar),o=null),c=!1,s&&(document.onselectstart=null),l.call(h,!0)})},d=function(){function o(e){if(!te(e)||c||o(e)[2])return void(t=0);t=1,b=0,c=0,d=1,y.removeclass("mcs_touch_action");var o=i.offset();u=o(e)[0]-o.top,f=o(e)[1]-o.left,z=[o(e)[0],o(e)[1]]}function n(e){if(te(e)&&!c&&!o(e)[2]&&(t.documenttouchscroll||e.preventdefault(),e.stopimmediatepropagation(),(!c||b)&&d)){g=k();var t=m.offset(),o=o(e)[0]-t.top,a=o(e)[1]-t.left,n="mcslinearout";if(e.push(o),w.push(a),z[2]=math.abs(o(e)[0]-z[0]),z[3]=math.abs(o(e)[1]-z[1]),b.overflowed[0])var i=d[0].parent().height()-d[0].height(),r=u-o>0&&o-u>-(i*b.scrollratio.y)&&(2*z[3]0&&a-f>-(l*b.scrollratio.x)&&(2*z[2]30)){_=1e3/(v-p);var n="mcseaseout",i=2.5>_,r=i?[e[e.length-2],w[w.length-2]]:[0,0];x=i?[o-r[0],a-r[1]]:[o-h,a-m];var u=[math.abs(x[0]),math.abs(x[1])];_=i?[math.abs(x[0]/4),math.abs(x[1]/4)]:[_,_];var f=[math.abs(i[0].offsettop)-x[0]*l(u[0]/_[0],_[0]),math.abs(i[0].offsetleft)-x[1]*l(u[1]/_[1],_[1])];w="yx"===t.axis?[f[0],f[1]]:"x"===t.axis?[null,f[1]]:[f[0],null],s=[4*u[0]+t.scrollinertia,4*u[1]+t.scrollinertia];var y=parseint(t.contenttouchscroll)||0;w[0]=u[0]>y?w[0]:0,w[1]=u[1]>y?w[1]:0,b.overflowed[0]&&s(w[0],s[0],n,"y",l,!1),b.overflowed[1]&&s(w[1],s[1],n,"x",l,!1)}}}function l(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function s(e,t,o,a,n,i){e&&g(y,e.tostring(),{dur:t,scrolleasing:o,dir:a,overwrite:n,drag:i})}var d,u,f,h,m,p,g,v,x,_,w,s,b,c,y=e(this),b=y.data(a),t=b.opt,k=a+"_"+b.idx,m=e("#mcsb_"+b.idx),i=e("#mcsb_"+b.idx+"_container"),d=[e("#mcsb_"+b.idx+"_dragger_vertical"),e("#mcsb_"+b.idx+"_dragger_horizontal")],e=[],w=[],r=0,l="yx"===t.axis?"none":"all",z=[],p=i.find("iframe"),h=["touchstart."+k+" pointerdown."+k+" mspointerdown."+k,"touchmove."+k+" pointermove."+k+" mspointermove."+k,"touchend."+k+" pointerup."+k+" mspointerup."+k],u=void 0!==document.body.style.touchaction&&""!==document.body.style.touchaction;i.bind(h[0],function(e){o(e)}).bind(h[1],function(e){n(e)}),m.bind(h[0],function(e){i(e)}).bind(h[2],function(e){r(e)}),p.length&&p.each(function(){e(this).bind("load",function(){a(this)&&e(this.contentdocument||this.contentwindow.document).bind(h[0],function(e){o(e),i(e)}).bind(h[1],function(e){n(e)}).bind(h[2],function(e){r(e)})})})},e=function(){function o(){return window.getselection?window.getselection().tostring():document.selection&&"control"!=document.selection.type?document.selection.createrange().text:0}function n(e,t,o){d.type=o&&i?"stepped":"stepless",d.scrollamount=10,j(r,e,t,"mcslinearout",o?60:null)}var i,r=e(this),l=r.data(a),s=l.opt,d=l.sequential,u=a+"_"+l.idx,f=e("#mcsb_"+l.idx+"_container"),h=f.parent();f.bind("mousedown."+u,function(){t||i||(i=1,c=!0)}).add(document).bind("mousemove."+u,function(e){if(!t&&i&&o()){var a=f.offset(),r=o(e)[0]-a.top+f[0].offsettop,c=o(e)[1]-a.left+f[0].offsetleft;r>0&&r0&&cr?n("on",38):r>h.height()&&n("on",40)),"y"!==s.axis&&l.overflowed[1]&&(0>c?n("on",37):c>h.width()&&n("on",39)))}}).bind("mouseup."+u+" dragend."+u,function(){t||(i&&(i=0,n("off",null)),c=!1)})},w=function(){function t(t,a){if(q(o),!z(o,t.target)){var r="auto"!==i.mousewheel.deltafactor?parseint(i.mousewheel.deltafactor):s&&t.deltafactor<100?100:t.deltafactor||100,d=i.scrollinertia;if("x"===i.axis||"x"===i.mousewheel.axis)var u="x",f=[math.round(r*n.scrollratio.x),parseint(i.mousewheel.scrollamount)],h="auto"!==i.mousewheel.scrollamount?f[1]:f[0]>=l.width()?.9*l.width():f[0],m=math.abs(e("#mcsb_"+n.idx+"_container")[0].offsetleft),p=c[1][0].offsetleft,g=c[1].parent().width()-c[1].width(),v="y"===i.mousewheel.axis?t.deltay||a:t.deltax;else var u="y",f=[math.round(r*n.scrollratio.y),parseint(i.mousewheel.scrollamount)],h="auto"!==i.mousewheel.scrollamount?f[1]:f[0]>=l.height()?.9*l.height():f[0],m=math.abs(e("#mcsb_"+n.idx+"_container")[0].offsettop),p=c[0][0].offsettop,g=c[0].parent().height()-c[0].height(),v=t.deltay||a;"y"===u&&!n.overflowed[0]||"x"===u&&!n.overflowed[1]||((i.mousewheel.invert||t.webkitdirectioninvertedfromdevice)&&(v=-v),i.mousewheel.normalizedelta&&(v=0>v?-1:1),(v>0&&0!==p||0>v&&p!==g||i.mousewheel.preventdefault)&&(t.stopimmediatepropagation(),t.preventdefault()),t.deltafactor<5&&!i.mousewheel.normalizedelta&&(h=t.deltafactor,d=17),g(o,(m-v*h).tostring(),{dir:u,dur:d}))}}if(e(this).data(a)){var o=e(this),n=o.data(a),i=n.opt,r=a+"_"+n.idx,l=e("#mcsb_"+n.idx),c=[e("#mcsb_"+n.idx+"_dragger_vertical"),e("#mcsb_"+n.idx+"_dragger_horizontal")],d=e("#mcsb_"+n.idx+"_container").find("iframe");d.length&&d.each(function(){e(this).bind("load",function(){a(this)&&e(this.contentdocument||this.contentwindow.document).bind("mousewheel."+r,function(e,o){t(e,o)})})}),l.bind("mousewheel."+r,function(e,o){t(e,o)})}},r=new object,a=function(t){var o=!1,a=!1,n=null;if(void 0===t?a="#empty":void 0!==e(t).attr("id")&&(a=e(t).attr("id")),a!==!1&&void 0!==r[a])return r[a];if(t){try{var i=t.contentdocument||t.contentwindow.document;n=i.body.innerhtml}catch(r){}o=null!==n}else{try{var i=top.document;n=i.body.innerhtml}catch(r){}o=null!==n}return a!==!1&&(r[a]=o),o},l=function(e){var t=this.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}},z=function(t,o){var n=o.nodename.tolowercase(),i=t.data(a).opt.mousewheel.disableover,r=["select","textarea"];return e.inarray(n,i)>-1&&!(e.inarray(n,r)>-1&&!e(o).is(":focus"))},p=function(){var t,o=e(this),n=o.data(a),i=a+"_"+n.idx,r=e("#mcsb_"+n.idx+"_container"),l=r.parent(),s=e(".mcsb_"+n.idx+"_scrollbar ."+d[12]);s.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" mspointerdown."+i,function(o){c=!0,e(o.target).hasclass("mcsb_dragger")||(t=1)}).bind("touchend."+i+" pointerup."+i+" mspointerup."+i,function(){c=!1}).bind("click."+i,function(a){if(t&&(t=0,e(a.target).hasclass(d[12])||e(a.target).hasclass("mcsb_draggerrail"))){q(o);var i=e(this),s=i.find(".mcsb_dragger");if(i.parent(".mcsb_scrolltools_horizontal").length>0){if(!n.overflowed[1])return;var c="x",u=a.pagex>s.offset().left?-1:1,f=math.abs(r[0].offsetleft)-u*(.9*l.width())}else{if(!n.overflowed[0])return;var c="y",u=a.pagey>s.offset().top?-1:1,f=math.abs(r[0].offsettop)-u*(.9*l.height())}g(o,f.tostring(),{dir:c,scrolleasing:"mcseaseinout"})}})},h=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=e("#mcsb_"+o.idx+"_container"),l=r.parent();r.bind("focusin."+i,function(){var o=e(document.activeelement),a=r.find(".mcustomscrollbox").length,i=0;o.is(n.advanced.autoscrollonfocus)&&(q(t),cleartimeout(t[0]._focustimeout),t[0]._focustimer=a?(i+17)*a:0,t[0]._focustimeout=settimeout(function(){var e=[ae(o)[0],ae(o)[1]],a=[r[0].offsettop,r[0].offsetleft],s=[a[0]+e[0]>=0&&a[0]+e[0]=0&&a[0]+e[1]a");s.bind("contextmenu."+r,function(e){e.preventdefault()}).bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" mspointerdown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" mspointerup."+r+" mouseout."+r+" pointerout."+r+" mspointerout."+r+" click."+r,function(a){function r(e,o){i.scrollamount=n.scrollbuttons.scrollamount,j(t,e,o)}if(a.preventdefault(),ee(a)){var l=e(this).attr("class");switch(i.type=n.scrollbuttons.scrolltype,a.type){case"mousedown":case"touchstart":case"pointerdown":case"mspointerdown":if("stepped"===i.type)return;c=!0,o.tweenrunning=!1,r("on",l);break;case"mouseup":case"touchend":case"pointerup":case"mspointerup":case"mouseout":case"pointerout":case"mspointerout":if("stepped"===i.type)return;c=!1,i.dir&&r("off",l);break;case"click":if("stepped"!==i.type||o.tweenrunning)return;r("on",l)}}})},q=function(){function t(t){function a(e,t){r.type=i.keyboard.scrolltype,r.scrollamount=i.keyboard.scrollamount,"stepped"===r.type&&n.tweenrunning||j(o,e,t)}switch(t.type){case"blur":n.tweenrunning&&r.dir&&a("off",null);break;case"keydown":case"keyup":var l=t.keycode?t.keycode:t.which,s="on";if("x"!==i.axis&&(38===l||40===l)||"y"!==i.axis&&(37===l||39===l)){if((38===l||40===l)&&!n.overflowed[0]||(37===l||39===l)&&!n.overflowed[1])return;"keyup"===t.type&&(s="off"),e(document.activeelement).is(u)||(t.preventdefault(),t.stopimmediatepropagation(),a(s,l))}else if(33===l||34===l){if((n.overflowed[0]||n.overflowed[1])&&(t.preventdefault(),t.stopimmediatepropagation()),"keyup"===t.type){q(o);var f=34===l?-1:1;if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=math.abs(c[0].offsetleft)-f*(.9*d.width());else var h="y",m=math.abs(c[0].offsettop)-f*(.9*d.height());g(o,m.tostring(),{dir:h,scrolleasing:"mcseaseinout"})}}else if((35===l||36===l)&&!e(document.activeelement).is(u)&&((n.overflowed[0]||n.overflowed[1])&&(t.preventdefault(),t.stopimmediatepropagation()),"keyup"===t.type)){if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=35===l?math.abs(d.width()-c.outerwidth(!1)):0;else var h="y",m=35===l?math.abs(d.height()-c.outerheight(!1)):0;g(o,m.tostring(),{dir:h,scrolleasing:"mcseaseinout"})}}}var o=e(this),n=o.data(a),i=n.opt,r=n.sequential,l=a+"_"+n.idx,s=e("#mcsb_"+n.idx),c=e("#mcsb_"+n.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']",f=c.find("iframe"),h=["blur."+l+" keydown."+l+" keyup."+l];f.length&&f.each(function(){e(this).bind("load",function(){a(this)&&e(this.contentdocument||this.contentwindow.document).bind(h[0],function(e){t(e)})})}),s.attr("tabindex","0").bind(h[0],function(e){t(e)})},j=function(t,o,n,i,r){function l(e){u.snapamount&&(f.scrollamount=u.snapamount instanceof array?"x"===f.dir[0]?u.snapamount[1]:u.snapamount[0]:u.snapamount);var o="stepped"!==f.type,a=r?r:e?o?p/1.5:g:1e3/60,n=e?o?7.5:40:2.5,s=[math.abs(h[0].offsettop),math.abs(h[0].offsetleft)],d=[c.scrollratio.y>10?10:c.scrollratio.y,c.scrollratio.x>10?10:c.scrollratio.x],m="x"===f.dir[0]?s[1]+f.dir[1]*(d[1]*n):s[0]+f.dir[1]*(d[0]*n),v="x"===f.dir[0]?s[1]+f.dir[1]*parseint(f.scrollamount):s[0]+f.dir[1]*parseint(f.scrollamount),x="auto"!==f.scrollamount?v:m,_=i?i:e?o?"mcslinearout":"mcseaseinout":"mcslinear",w=!!e;return e&&17>a&&(x="x"===f.dir[0]?s[1]:s[0]),g(t,x.tostring(),{dir:f.dir[0],scrolleasing:_,dur:a,oncomplete:w}),e?void(f.dir=!1):(cleartimeout(f.step),void(f.step=settimeout(function(){l()},a)))}function s(){cleartimeout(f.step),$(f,"step"),q(t)}var c=t.data(a),u=c.opt,f=c.sequential,h=e("#mcsb_"+c.idx+"_container"),m="stepped"===f.type,p=u.scrollinertia<26?26:u.scrollinertia,g=u.scrollinertia<1?17:u.scrollinertia;switch(o){case"on":if(f.dir=[n===d[16]||n===d[15]||39===n||37===n?"x":"y",n===d[13]||n===d[15]||38===n||37===n?-1:1],q(t),oe(n)&&"stepped"===f.type)return;l(m);break;case"off":s(),(m||c.tweenrunning&&f.dir)&&l(!0)}},y=function(t){var o=e(this).data(a).opt,n=[];return"function"==typeof t&&(t=t()),t instanceof array?n=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(n[0]=t.y?t.y:t.x||"x"===o.axis?null:t,n[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},x=function(t,o){if(null!=t&&"undefined"!=typeof t){var n=e(this),i=n.data(a),r=i.opt,l=e("#mcsb_"+i.idx+"_container"),s=l.parent(),c=typeof t;o||(o="x"===r.axis?"x":"y");var d="x"===o?l.outerwidth(!1)-s.width():l.outerheight(!1)-s.height(),f="x"===o?l[0].offsetleft:l[0].offsettop,h="x"===o?"left":"top";switch(c){case"function":return t();case"object":var m=t.jquery?t:e(t);if(!m.length)return;return"x"===o?ae(m)[1]:ae(m)[0];case"string":case"number":if(oe(t))return math.abs(t);if(-1!==t.indexof("%"))return math.abs(d*parseint(t)/100);if(-1!==t.indexof("-="))return math.abs(f-parseint(t.split("-=")[1]));if(-1!==t.indexof("+=")){var p=f+parseint(t.split("+=")[1]);return p>=0?0:math.abs(p)}if(-1!==t.indexof("px")&&oe(t.split("px")[0]))return math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return math.abs(s.height()-l.outerheight(!1));if("right"===t)return math.abs(s.width()-l.outerwidth(!1));if("first"===t||"last"===t){var m=l.find(":"+t);return"x"===o?ae(m)[1]:ae(m)[0]}return e(t).length?"x"===o?ae(e(t))[1]:ae(e(t))[0]:(l.css(h,t),void u.update.call(null,n[0]))}}},n=function(t){function o(){return cleartimeout(f[0].autoupdate),0===l.parents("html").length?void(l=null):void(f[0].autoupdate=settimeout(function(){return c.advanced.updateonselectorchange&&(s.poll.change.n=i(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void r(3)):c.advanced.updateoncontentresize&&(s.poll.size.n=l[0].scrollheight+l[0].scrollwidth+f[0].offsetheight+l[0].offsetheight+l[0].offsetwidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void r(1)):!c.advanced.updateonimageload||"auto"===c.advanced.updateonimageload&&"y"===c.axis||(s.poll.img.n=f.find("img").length,s.poll.img.n===s.poll.img.o)?void((c.advanced.updateonselectorchange||c.advanced.updateoncontentresize||c.advanced.updateonimageload)&&o()):(s.poll.img.o=s.poll.img.n,void f.find("img").each(function(){n(this)}))},c.advanced.autoupdatetimeout))}function n(t){function o(e,t){return function(){
return t.apply(e,arguments)}}function a(){this.onload=null,e(t).addclass(d[2]),r(2)}if(e(t).hasclass(d[2]))return void r();var n=new image;n.onload=o(n,a),n.src=t.src}function i(){c.advanced.updateonselectorchange===!0&&(c.advanced.updateonselectorchange="*");var e=0,t=f.find(c.advanced.updateonselectorchange);return c.advanced.updateonselectorchange&&t.length>0&&t.each(function(){e+=this.offsetheight+this.offsetwidth}),e}function r(e){cleartimeout(f[0].autoupdate),u.update.call(null,l[0],e)}var l=e(this),s=l.data(a),c=s.opt,f=e("#mcsb_"+s.idx+"_container");return t?(cleartimeout(f[0].autoupdate),void $(f[0],"autoupdate")):void o()},v=function(e,t,o){return math.round(e/t)*t-o},q=function(t){var o=t.data(a),n=e("#mcsb_"+o.idx+"_container,#mcsb_"+o.idx+"_container_wrapper,#mcsb_"+o.idx+"_dragger_vertical,#mcsb_"+o.idx+"_dragger_horizontal");n.each(function(){z.call(this)})},g=function(t,o,n){function i(e){return s&&c.callbacks[e]&&"function"==typeof c.callbacks[e]}function r(){return[c.callbacks.alwaystriggeroffsets||w>=s[0]+y,c.callbacks.alwaystriggeroffsets||-b>=w]}function l(){var e=[h[0].offsettop,h[0].offsetleft],o=[x[0].offsettop,x[0].offsetleft],a=[h.outerheight(!1),h.outerwidth(!1)],i=[f.height(),f.width()];t[0].mcs={content:h,top:e[0],left:e[1],draggertop:o[0],draggerleft:o[1],toppct:math.round(100*math.abs(e[0])/(math.abs(a[0])-i[0])),leftpct:math.round(100*math.abs(e[1])/(math.abs(a[1])-i[1])),direction:n.dir}}var s=t.data(a),c=s.opt,d={trigger:"internal",dir:"y",scrolleasing:"mcseaseout",drag:!1,dur:c.scrollinertia,overwrite:"all",callbacks:!0,onstart:!0,onupdate:!0,oncomplete:!0},n=e.extend(d,n),u=[n.dur,n.drag?0:n.dur],f=e("#mcsb_"+s.idx),h=e("#mcsb_"+s.idx+"_container"),m=h.parent(),p=c.callbacks.ontotalscrolloffset?y.call(t,c.callbacks.ontotalscrolloffset):[0,0],g=c.callbacks.ontotalscrollbackoffset?y.call(t,c.callbacks.ontotalscrollbackoffset):[0,0];if(s.trigger=n.trigger,0===m.scrolltop()&&0===m.scrollleft()||(e(".mcsb_"+s.idx+"_scrollbar").css("visibility","visible"),m.scrolltop(0).scrollleft(0)),"_resety"!==o||s.contentreset.y||(i("onoverflowynone")&&c.callbacks.onoverflowynone.call(t[0]),s.contentreset.y=1),"_resetx"!==o||s.contentreset.x||(i("onoverflowxnone")&&c.callbacks.onoverflowxnone.call(t[0]),s.contentreset.x=1),"_resety"!==o&&"_resetx"!==o){if(!s.contentreset.y&&t[0].mcs||!s.overflowed[0]||(i("onoverflowy")&&c.callbacks.onoverflowy.call(t[0]),s.contentreset.x=null),!s.contentreset.x&&t[0].mcs||!s.overflowed[1]||(i("onoverflowx")&&c.callbacks.onoverflowx.call(t[0]),s.contentreset.x=null),c.snapamount){var v=c.snapamount instanceof array?"x"===n.dir?c.snapamount[1]:c.snapamount[0]:c.snapamount;o=v(o,v,c.snapoffset)}switch(n.dir){case"x":var x=e("#mcsb_"+s.idx+"_dragger_horizontal"),_="left",w=h[0].offsetleft,s=[f.width()-h.outerwidth(!1),x.parent().width()-x.width()],b=[o,0===o?0:o/s.scrollratio.x],y=p[1],b=g[1],t=y>0?y/s.scrollratio.x:0,k=b>0?b/s.scrollratio.x:0;break;case"y":var x=e("#mcsb_"+s.idx+"_dragger_vertical"),_="top",w=h[0].offsettop,s=[f.height()-h.outerheight(!1),x.parent().height()-x.height()],b=[o,0===o?0:o/s.scrollratio.y],y=p[0],b=g[0],t=y>0?y/s.scrollratio.y:0,k=b>0?b/s.scrollratio.y:0}b[1]<0||0===b[0]&&0===b[1]?b=[0,0]:b[1]>=s[1]?b=[s[0],s[1]]:b[0]=-b[0],t[0].mcs||(l(),i("oninit")&&c.callbacks.oninit.call(t[0])),cleartimeout(h[0].oncompletetimeout),j(x[0],_,math.round(b[1]),u[1],n.scrolleasing),!s.tweenrunning&&(0===w&&b[0]>=0||w===s[0]&&b[0]<=s[0])||j(h[0],_,math.round(b[0]),u[0],n.scrolleasing,n.overwrite,{onstart:function(){n.callbacks&&n.onstart&&!s.tweenrunning&&(i("onscrollstart")&&(l(),c.callbacks.onscrollstart.call(t[0])),s.tweenrunning=!0,c(x),s.cboffsets=r())},onupdate:function(){n.callbacks&&n.onupdate&&i("whilescrolling")&&(l(),c.callbacks.whilescrolling.call(t[0]))},oncomplete:function(){if(n.callbacks&&n.oncomplete){"yx"===c.axis&&cleartimeout(h[0].oncompletetimeout);var e=h[0].idletimer||0;h[0].oncompletetimeout=settimeout(function(){i("onscroll")&&(l(),c.callbacks.onscroll.call(t[0])),i("ontotalscroll")&&b[1]>=s[1]-t&&s.cboffsets[0]&&(l(),c.callbacks.ontotalscroll.call(t[0])),i("ontotalscrollback")&&b[1]<=k&&s.cboffsets[1]&&(l(),c.callbacks.ontotalscrollback.call(t[0])),s.tweenrunning=!1,h[0].idletimer=0,c(x,"hide")},e)}}})}},j=function(e,t,o,a,n,i,r){function l(){s.stop||(x||m.call(),x=k()-v,s(),x>=s.time&&(s.time=x>s.time?x+f-(x-s.time):x+f-1,s.time0?(s.currval=u(s.time,_,b,a,n),w[t]=math.round(s.currval)+"px"):w[t]=o+"px",p.call()}function c(){f=1e3/60,s.time=x+f,h=window.requestanimationframe?window.requestanimationframe:function(e){return s(),settimeout(e,.01)},s.id=h(l)}function d(){null!=s.id&&(window.requestanimationframe?window.cancelanimationframe(s.id):cleartimeout(s.id),s.id=null)}function u(e,t,o,a,n){switch(n){case"linear":case"mcslinear":return o*e/a+t;case"mcslinearout":return e/=a,e--,o*math.sqrt(1-e*e)+t;case"easeinoutsmooth":return e/=a/2,1>e?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t);case"easeinoutstrong":return e/=a/2,1>e?o/2*math.pow(2,10*(e-1))+t:(e--,o/2*(-math.pow(2,-10*e)+2)+t);case"easeinout":case"mcseaseinout":return e/=a/2,1>e?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case"easeoutsmooth":return e/=a,e--,-o*(e*e*e*e-1)+t;case"easeoutstrong":return o*(-math.pow(2,-10*e/a)+1)+t;case"easeout":case"mcseaseout":default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}e._mtween||(e._mtween={top:{},left:{}});var f,h,r=r||{},m=r.onstart||function(){},p=r.onupdate||function(){},g=r.oncomplete||function(){},v=k(),x=0,_=e.offsettop,w=e.style,s=e._mtween[t];"left"===t&&(_=e.offsetleft);var b=o-_;s.stop=0,"none"!==i&&d(),c()},k=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitnow?window.performance.webkitnow():date.now?date.now():(new date).gettime()},z=function(){var e=this;e._mtween||(e._mtween={top:{},left:{}});for(var t=["top","left"],o=0;o=0&&a[0]+ae(n)[0]=0&&a[1]+ae(n)[1]=0&&r[1]-i[1]*l[1][0]<0&&r[1]+n[1]-i[1]*l[1][1]>=0},mcsoverflow:e.expr[":"].mcsoverflow||function(t){var o=e(t).data(a);if(o)return o.overflowed[0]||o.overflowed[1]}})})})});
/*! http://mths.be/placeholder v2.0.8 */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof module&&module.exports?require("jquery"):jquery)}(function(a){function b(b){var c={},d=/^jquery\d+$/;return a.each(b.attributes,function(a,b){b.specified&&!d.test(b.name)&&(c[b.name]=b.value)}),c}function c(b,c){var d=this,f=a(this);if(d.value===f.attr(h?"placeholder-x":"placeholder")&&f.hasclass(n.customclass))if(d.value="",f.removeclass(n.customclass),f.data("placeholder-password")){if(f=f.hide().nextall('input[type="password"]:first').show().attr("id",f.removeattr("id").data("placeholder-id")),b===!0)return f[0].value=c,c;f.focus()}else d==e()&&d.select()}function d(d){var e,f=this,g=a(this),i=f.id;if(!d||"blur"!==d.type||!g.hasclass(n.customclass))if(""===f.value){if("password"===f.type){if(!g.data("placeholder-textinput")){try{e=g.clone().prop({type:"text"})}catch(j){e=a("").attr(a.extend(b(this),{type:"text"}))}e.removeattr("name").data({"placeholder-enabled":!0,"placeholder-password":g,"placeholder-id":i}).bind("focus.placeholder",c),g.data({"placeholder-textinput":e,"placeholder-id":i}).before(e)}f.value="",g=g.removeattr("id").hide().prevall('input[type="text"]:first').attr("id",g.data("placeholder-id")).show()}else{var k=g.data("placeholder-password");k&&(k[0].value="",g.attr("id",g.data("placeholder-id")).show().nextall('input[type="password"]:last').hide().removeattr("id"))}g.addclass(n.customclass),g[0].value=g.attr(h?"placeholder-x":"placeholder")}else g.removeclass(n.customclass)}function e(){try{return document.activeelement}catch(a){}}var f,g,h=!1,i="[object operamini]"===object.prototype.tostring.call(window.operamini),j="placeholder"in document.createelement("input")&&!i&&!h,k="placeholder"in document.createelement("textarea")&&!i&&!h,l=a.valhooks,m=a.prophooks,n={};j&&k?(g=a.fn.placeholder=function(){return this},g.input=!0,g.textarea=!0):(g=a.fn.placeholder=function(b){var e={customclass:"placeholder"};return n=a.extend({},e,b),this.filter((j?"textarea":":input")+"["+(h?"placeholder-x":"placeholder")+"]").not("."+n.customclass).not(":radio, :checkbox, [type=hidden]").bind({"focus.placeholder":c,"blur.placeholder":d}).data("placeholder-enabled",!0).trigger("blur.placeholder")},g.input=j,g.textarea=k,f={get:function(b){var c=a(b),d=c.data("placeholder-password");return d?d[0].value:c.data("placeholder-enabled")&&c.hasclass(n.customclass)?"":b.value},set:function(b,f){var g,h,i=a(b);return""!==f&&(g=i.data("placeholder-textinput"),h=i.data("placeholder-password"),g?(c.call(g[0],!0,f)||(b.value=f),g[0].value=f):h&&(c.call(b,!0,f)||(h[0].value=f),b.value=f)),i.data("placeholder-enabled")?(""===f?(b.value=f,b!=e()&&d.call(b)):(i.hasclass(n.customclass)&&c.call(b),b.value=f),i):(b.value=f,i)}},j||(l.input=f,m.value=f),k||(l.textarea=f,m.value=f),a(function(){a(document).delegate("form","submit.placeholder",function(){var b=a("."+n.customclass,this).each(function(){c.call(this,!0,"")});settimeout(function(){b.each(d)},10)})}),a(window).bind("beforeunload.placeholder",function(){var b=!0;try{"javascript:void(0)"===document.activeelement.tostring()&&(b=!1)}catch(c){}b&&a("."+n.customclass).each(function(){this.value=""})}))});
/**
* swiper 3.4.2
* most modern mobile touch slider and framework with hardware accelerated transitions
*
* http://www.idangero.us/swiper/
*
* copyright 2017, vladimir kharlampidi
* the idangero.us
* http://www.idangero.us/
*
* licensed under mit
*
* released on: march 10, 2017
*/
!function(){"use strict";var e,a=function(s,i){function r(e){return math.floor(e)}function n(){var e=t.params.autoplay,a=t.slides.eq(t.activeindex);a.attr("data-swiper-autoplay")&&(e=a.attr("data-swiper-autoplay")||t.params.autoplay),t.autoplaytimeoutid=settimeout(function(){t.params.loop?(t.fixloop(),t._slidenext(),t.emit("onautoplay",t)):t.isend?i.autoplaystoponlast?t.stopautoplay():(t._slideto(0),t.emit("onautoplay",t)):(t._slidenext(),t.emit("onautoplay",t))},e)}function o(a,t){var s=e(a.target);if(!s.is(t))if("string"==typeof t)s=s.parents(t);else if(t.nodetype){var i;return s.parents().each(function(e,a){a===t&&(i=t)}),i?t:void 0}if(0!==s.length)return s[0]}function l(e,a){a=a||{};var t=window.mutationobserver||window.webkitmutationobserver,s=new t(function(e){e.foreach(function(e){t.onresize(!0),t.emit("onobserverupdate",t,e)})});s.observe(e,{attributes:void 0===a.attributes||a.attributes,childlist:void 0===a.childlist||a.childlist,characterdata:void 0===a.characterdata||a.characterdata}),t.observers.push(s)}function p(e){e.originalevent&&(e=e.originalevent);var a=e.keycode||e.charcode;if(!t.params.allowswipetonext&&(t.ishorizontal()&&39===a||!t.ishorizontal()&&40===a))return!1;if(!t.params.allowswipetoprev&&(t.ishorizontal()&&37===a||!t.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(t.container.parents("."+t.params.slideclass).length>0&&0===t.container.parents("."+t.params.slideactiveclass).length)return;var s={left:window.pagexoffset,top:window.pageyoffset},i=window.innerwidth,r=window.innerheight,n=t.container.offset();t.rtl&&(n.left=n.left-t.container[0].scrollleft);for(var o=[[n.left,n.top],[n.left+t.width,n.top],[n.left,n.top+t.height],[n.left+t.width,n.top+t.height]],l=0;l=s.left&&p[0]<=s.left+i&&p[1]>=s.top&&p[1]<=s.top+r&&(t=!0)}if(!t)return}t.ishorizontal()?(37!==a&&39!==a||(e.preventdefault?e.preventdefault():e.returnvalue=!1),(39===a&&!t.rtl||37===a&&t.rtl)&&t.slidenext(),(37===a&&!t.rtl||39===a&&t.rtl)&&t.slideprev()):(38!==a&&40!==a||(e.preventdefault?e.preventdefault():e.returnvalue=!1),40===a&&t.slidenext(),38===a&&t.slideprev()),t.emit("onkeypress",t,a)}}function d(e){var a=0,t=0,s=0,i=0;return"detail"in e&&(t=e.detail),"wheeldelta"in e&&(t=-e.wheeldelta/120),"wheeldeltay"in e&&(t=-e.wheeldeltay/120),"wheeldeltax"in e&&(a=-e.wheeldeltax/120),"axis"in e&&e.axis===e.horizontal_axis&&(a=t,t=0),s=10*a,i=10*t,"deltay"in e&&(i=e.deltay),"deltax"in e&&(s=e.deltax),(s||i)&&e.deltamode&&(1===e.deltamode?(s*=40,i*=40):(s*=800,i*=800)),s&&!a&&(a=s<1?-1:1),i&&!t&&(t=i<1?-1:1),{spinx:a,spiny:t,pixelx:s,pixely:i}}function u(e){e.originalevent&&(e=e.originalevent);var a=0,t=t.rtl?-1:1,s=d(e);if(t.params.mousewheelforcetoaxis)if(t.ishorizontal()){if(!(math.abs(s.pixelx)>math.abs(s.pixely)))return;a=s.pixelx*t}else{if(!(math.abs(s.pixely)>math.abs(s.pixelx)))return;a=s.pixely}else a=math.abs(s.pixelx)>math.abs(s.pixely)?-s.pixelx*t:-s.pixely;if(0!==a){if(t.params.mousewheelinvert&&(a=-a),t.params.freemode){var i=t.getwrappertranslate()+a*t.params.mousewheelsensitivity,r=t.isbeginning,n=t.isend;if(i>=t.mintranslate()&&(i=t.mintranslate()),i<=t.maxtranslate()&&(i=t.maxtranslate()),t.setwrappertransition(0),t.setwrappertranslate(i),t.updateprogress(),t.updateactiveindex(),(!r&&t.isbeginning||!n&&t.isend)&&t.updateclasses(),t.params.freemodesticky?(cleartimeout(t.mousewheel.timeout),t.mousewheel.timeout=settimeout(function(){t.slidereset()},300)):t.params.lazyloading&&t.lazy&&t.lazy.load(),t.emit("onscroll",t,e),t.params.autoplay&&t.params.autoplaydisableoninteraction&&t.stopautoplay(),0===i||i===t.maxtranslate())return}else{if((new window.date).gettime()-t.mousewheel.lastscrolltime>60)if(a<0)if(t.isend&&!t.params.loop||t.animating){if(t.params.mousewheelreleaseonedges)return!0}else t.slidenext(),t.emit("onscroll",t,e);else if(t.isbeginning&&!t.params.loop||t.animating){if(t.params.mousewheelreleaseonedges)return!0}else t.slideprev(),t.emit("onscroll",t,e);t.mousewheel.lastscrolltime=(new window.date).gettime()}return e.preventdefault?e.preventdefault():e.returnvalue=!1,!1}}function c(a,t){a=e(a);var s,i,r,n=t.rtl?-1:1;s=a.attr("data-swiper-parallax")||"0",i=a.attr("data-swiper-parallax-x"),r=a.attr("data-swiper-parallax-y"),i||r?(i=i||"0",r=r||"0"):t.ishorizontal()?(i=s,r="0"):(r=s,i="0"),i=i.indexof("%")>=0?parseint(i,10)*t*n+"%":i*t*n+"px",r=r.indexof("%")>=0?parseint(r,10)*t+"%":r*t+"px",a.transform("translate3d("+i+", "+r+",0px)")}function m(e){return 0!==e.indexof("on")&&(e=e[0]!==e[0].touppercase()?"on"+e[0].touppercase()+e.substring(1):"on"+e),e}if(!(this instanceof a))return new a(s,i);var h={direction:"horizontal",toucheventstarget:"container",initialslide:0,speed:300,autoplay:!1,autoplaydisableoninteraction:!0,autoplaystoponlast:!1,iosedgeswipedetection:!1,iosedgeswipethreshold:20,freemode:!1,freemodemomentum:!0,freemodemomentumratio:1,freemodemomentumbounce:!0,freemodemomentumbounceratio:1,freemodemomentumvelocityratio:1,freemodesticky:!1,freemodeminimumvelocity:.02,autoheight:!1,setwrappersize:!1,virtualtranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideshadows:!0},flip:{slideshadows:!0,limitrotation:!0},cube:{slideshadows:!0,shadow:!0,shadowoffset:20,shadowscale:.94},fade:{crossfade:!1},parallax:!1,zoom:!1,zoommax:3,zoommin:1,zoomtoggle:!0,scrollbar:null,scrollbarhide:!0,scrollbardraggable:!1,scrollbarsnaponrelease:!1,keyboardcontrol:!1,mousewheelcontrol:!1,mousewheelreleaseonedges:!1,mousewheelinvert:!1,mousewheelforcetoaxis:!1,mousewheelsensitivity:1,mousewheeleventstarged:"container",hashnav:!1,hashnavwatchstate:!1,history:!1,replacestate:!1,breakpoints:void 0,spacebetween:0,slidesperview:1,slidespercolumn:1,slidespercolumnfill:"column",slidespergroup:1,centeredslides:!1,slidesoffsetbefore:0,slidesoffsetafter:0,roundlengths:!1,touchratio:1,touchangle:45,simulatetouch:!0,shortswipes:!0,longswipes:!0,longswipesratio:.5,longswipesms:300,followfinger:!0,onlyexternal:!1,threshold:0,touchmovestoppropagation:!0,touchreleaseonedges:!1,uniquenavelements:!0,pagination:null,paginationelement:"span",paginationclickable:!1,paginationhide:!1,paginationbulletrender:null,paginationprogressrender:null,paginationfractionrender:null,paginationcustomrender:null,paginationtype:"bullets",resistance:!0,resistanceratio:.85,nextbutton:null,prevbutton:null,watchslidesprogress:!1,watchslidesvisibility:!1,grabcursor:!1,preventclicks:!0,preventclickspropagation:!0,slidetoclickedslide:!1,lazyloading:!1,lazyloadinginprevnext:!1,lazyloadinginprevnextamount:1,lazyloadingontransitionstart:!1,preloadimages:!0,updateonimagesready:!0,loop:!1,loopadditionalslides:0,loopedslides:null,control:void 0,controlinverse:!1,controlby:"slide",normalizeslideindex:!0,allowswipetoprev:!0,allowswipetonext:!0,swipehandler:null,noswiping:!0,noswipingclass:"swiper-no-swiping",passivelisteners:!0,containermodifierclass:"swiper-container-",slideclass:"swiper-slide",slideactiveclass:"swiper-slide-active",slideduplicateactiveclass:"swiper-slide-duplicate-active",slidevisibleclass:"swiper-slide-visible",slideduplicateclass:"swiper-slide-duplicate",slidenextclass:"swiper-slide-next",slideduplicatenextclass:"swiper-slide-duplicate-next",slideprevclass:"swiper-slide-prev",slideduplicateprevclass:"swiper-slide-duplicate-prev",wrapperclass:"swiper-wrapper",bulletclass:"swiper-pagination-bullet",bulletactiveclass:"swiper-pagination-bullet-active",buttondisabledclass:"swiper-button-disabled",paginationcurrentclass:"swiper-pagination-current",paginationtotalclass:"swiper-pagination-total",paginationhiddenclass:"swiper-pagination-hidden",paginationprogressbarclass:"swiper-pagination-progressbar",paginationclickableclass:"swiper-pagination-clickable",paginationmodifierclass:"swiper-pagination-",lazyloadingclass:"swiper-lazy",lazystatusloadingclass:"swiper-lazy-loading",lazystatusloadedclass:"swiper-lazy-loaded",lazypreloaderclass:"swiper-lazy-preloader",notificationclass:"swiper-notification",preloaderclass:"preloader",zoomcontainerclass:"swiper-zoom-container",observer:!1,observeparents:!1,a11y:!1,prevslidemessage:"previous slide",nextslidemessage:"next slide",firstslidemessage:"this is the first slide",lastslidemessage:"this is the last slide",paginationbulletmessage:"go to slide {{index}}",runcallbacksoninit:!0},g=i&&i.virtualtranslate;i=i||{};var f={};for(var v in i)if("object"!=typeof i[v]||null===i[v]||(i[v].nodetype||i[v]===window||i[v]===document||void 0!==t&&i[v]instanceof t||"undefined"!=typeof jquery&&i[v]instanceof jquery))f[v]=i[v];else{f[v]={};for(var w in i[v])f[v][w]=i[v][w]}for(var y in h)if(void 0===i[y])i[y]=h[y];else if("object"==typeof i[y])for(var x in h[y])void 0===i[y][x]&&(i[y][x]=h[y][x]);var t=this;if(t.params=i,t.originalparams=f,t.classnames=[],void 0!==e&&void 0!==t&&(e=t),(void 0!==e||(e=void 0===t?window.dom7||window.zepto||window.jquery:t))&&(t.$=e,t.currentbreakpoint=void 0,t.getactivebreakpoint=function(){if(!t.params.breakpoints)return!1;var e,a=!1,t=[];for(e in t.params.breakpoints)t.params.breakpoints.hasownproperty(e)&&t.push(e);t.sort(function(e,a){return parseint(e,10)>parseint(a,10)});for(var s=0;s=window.innerwidth&&!a&&(a=e);return a||"max"},t.setbreakpoint=function(){var e=t.getactivebreakpoint();if(e&&t.currentbreakpoint!==e){var a=e in t.params.breakpoints?t.params.breakpoints[e]:t.originalparams,t=t.params.loop&&a.slidesperview!==t.params.slidesperview;for(var s in a)t.params[s]=a[s];t.currentbreakpoint=e,t&&t.destroyloop&&t.reloop(!0)}},t.params.breakpoints&&t.setbreakpoint(),t.container=e(s),0!==t.container.length)){if(t.container.length>1){var b=[];return t.container.each(function(){b.push(new a(this,i))}),b}t.container[0].swiper=t,t.container.data("swiper",t),t.classnames.push(t.params.containermodifierclass+t.params.direction),t.params.freemode&&t.classnames.push(t.params.containermodifierclass+"free-mode"),t.support.flexbox||(t.classnames.push(t.params.containermodifierclass+"no-flexbox"),t.params.slidespercolumn=1),t.params.autoheight&&t.classnames.push(t.params.containermodifierclass+"autoheight"),(t.params.parallax||t.params.watchslidesvisibility)&&(t.params.watchslidesprogress=!0),t.params.touchreleaseonedges&&(t.params.resistanceratio=0),["cube","coverflow","flip"].indexof(t.params.effect)>=0&&(t.support.transforms3d?(t.params.watchslidesprogress=!0,t.classnames.push(t.params.containermodifierclass+"3d")):t.params.effect="slide"),"slide"!==t.params.effect&&t.classnames.push(t.params.containermodifierclass+t.params.effect),"cube"===t.params.effect&&(t.params.resistanceratio=0,t.params.slidesperview=1,t.params.slidespercolumn=1,t.params.slidespergroup=1,t.params.centeredslides=!1,t.params.spacebetween=0,t.params.virtualtranslate=!0),"fade"!==t.params.effect&&"flip"!==t.params.effect||(t.params.slidesperview=1,t.params.slidespercolumn=1,t.params.slidespergroup=1,t.params.watchslidesprogress=!0,t.params.spacebetween=0,void 0===g&&(t.params.virtualtranslate=!0)),t.params.grabcursor&&t.support.touch&&(t.params.grabcursor=!1),t.wrapper=t.container.children("."+t.params.wrapperclass),t.params.pagination&&(t.paginationcontainer=e(t.params.pagination),t.params.uniquenavelements&&"string"==typeof t.params.pagination&&t.paginationcontainer.length>1&&1===t.container.find(t.params.pagination).length&&(t.paginationcontainer=t.container.find(t.params.pagination)),"bullets"===t.params.paginationtype&&t.params.paginationclickable?t.paginationcontainer.addclass(t.params.paginationmodifierclass+"clickable"):t.params.paginationclickable=!1,t.paginationcontainer.addclass(t.params.paginationmodifierclass+t.params.paginationtype)),(t.params.nextbutton||t.params.prevbutton)&&(t.params.nextbutton&&(t.nextbutton=e(t.params.nextbutton),t.params.uniquenavelements&&"string"==typeof t.params.nextbutton&&t.nextbutton.length>1&&1===t.container.find(t.params.nextbutton).length&&(t.nextbutton=t.container.find(t.params.nextbutton))),t.params.prevbutton&&(t.prevbutton=e(t.params.prevbutton),t.params.uniquenavelements&&"string"==typeof t.params.prevbutton&&t.prevbutton.length>1&&1===t.container.find(t.params.prevbutton).length&&(t.prevbutton=t.container.find(t.params.prevbutton)))),t.ishorizontal=function(){return"horizontal"===t.params.direction},t.rtl=t.ishorizontal()&&("rtl"===t.container[0].dir.tolowercase()||"rtl"===t.container.css("direction")),t.rtl&&t.classnames.push(t.params.containermodifierclass+"rtl"),t.rtl&&(t.wrongrtl="-webkit-box"===t.wrapper.css("display")),t.params.slidespercolumn>1&&t.classnames.push(t.params.containermodifierclass+"multirow"),t.device.android&&t.classnames.push(t.params.containermodifierclass+"android"),t.container.addclass(t.classnames.join(" ")),t.translate=0,t.progress=0,t.velocity=0,t.lockswipetonext=function(){t.params.allowswipetonext=!1,t.params.allowswipetoprev===!1&&t.params.grabcursor&&t.unsetgrabcursor()},t.lockswipetoprev=function(){t.params.allowswipetoprev=!1,t.params.allowswipetonext===!1&&t.params.grabcursor&&t.unsetgrabcursor()},t.lockswipes=function(){t.params.allowswipetonext=t.params.allowswipetoprev=!1,t.params.grabcursor&&t.unsetgrabcursor()},t.unlockswipetonext=function(){t.params.allowswipetonext=!0,t.params.allowswipetoprev===!0&&t.params.grabcursor&&t.setgrabcursor()},t.unlockswipetoprev=function(){t.params.allowswipetoprev=!0,t.params.allowswipetonext===!0&&t.params.grabcursor&&t.setgrabcursor()},t.unlockswipes=function(){t.params.allowswipetonext=t.params.allowswipetoprev=!0,t.params.grabcursor&&t.setgrabcursor()},t.setgrabcursor=function(e){t.container[0].style.cursor="move",t.container[0].style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.container[0].style.cursor=e?"-moz-grabbin":"-moz-grab",t.container[0].style.cursor=e?"grabbing":"grab"},t.unsetgrabcursor=function(){t.container[0].style.cursor=""},t.params.grabcursor&&t.setgrabcursor(),t.imagestoload=[],t.imagesloaded=0,t.loadimage=function(e,a,t,s,i,r){function n(){r&&r()}var o;e.complete&&i?n():a?(o=new window.image,o.onload=n,o.onerror=n,s&&(o.sizes=s),t&&(o.srcset=t),a&&(o.src=a)):n()},t.preloadimages=function(){function e(){void 0!==t&&null!==t&&t&&(void 0!==t.imagesloaded&&t.imagesloaded++,t.imagesloaded===t.imagestoload.length&&(t.params.updateonimagesready&&t.update(),t.emit("onimagesready",t)))}t.imagestoload=t.container.find("img");for(var a=0;a1)for(e=0;et.slides.length)break;a.push(t.slides.eq(s)[0])}else a.push(t.slides.eq(t.activeindex)[0]);for(e=0;et?i:t}t&&t.wrapper.css("height",t+"px")},t.updatecontainersize=function(){var e,a;e=void 0!==t.params.width?t.params.width:t.container[0].clientwidth,a=void 0!==t.params.height?t.params.height:t.container[0].clientheight,0===e&&t.ishorizontal()||0===a&&!t.ishorizontal()||(e=e-parseint(t.container.css("padding-left"),10)-parseint(t.container.css("padding-right"),10),a=a-parseint(t.container.css("padding-top"),10)-parseint(t.container.css("padding-bottom"),10),t.width=e,t.height=a,t.size=t.ishorizontal()?t.width:t.height)},t.updateslidessize=function(){t.slides=t.wrapper.children("."+t.params.slideclass),t.snapgrid=[],t.slidesgrid=[],t.slidessizesgrid=[];var e,a=t.params.spacebetween,t=-t.params.slidesoffsetbefore,s=0,i=0;if(void 0!==t.size){"string"==typeof a&&a.indexof("%")>=0&&(a=parsefloat(a.replace("%",""))/100*t.size),t.virtualsize=-a,t.rtl?t.slides.css({marginleft:"",margintop:""}):t.slides.css({marginright:"",marginbottom:""});var n;t.params.slidespercolumn>1&&(n=math.floor(t.slides.length/t.params.slidespercolumn)===t.slides.length/t.params.slidespercolumn?t.slides.length:math.ceil(t.slides.length/t.params.slidespercolumn)*t.params.slidespercolumn,"auto"!==t.params.slidesperview&&"row"===t.params.slidespercolumnfill&&(n=math.max(n,t.params.slidesperview*t.params.slidespercolumn)));var o,l=t.params.slidespercolumn,p=n/l,d=p-(t.params.slidespercolumn*p-t.slides.length);for(e=0;e1){var c,m,h;"column"===t.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-"+(t.ishorizontal()?"top":"left"),0!==h&&t.params.spacebetween&&t.params.spacebetween+"px").attr("data-swiper-column",m).attr("data-swiper-row",h)}"none"!==u.css("display")&&("auto"===t.params.slidesperview?(o=t.ishorizontal()?u.outerwidth(!0):u.outerheight(!0),t.params.roundlengths&&(o=r(o))):(o=(t.size-(t.params.slidesperview-1)*a)/t.params.slidesperview,t.params.roundlengths&&(o=r(o)),t.ishorizontal()?t.slides[e].style.width=o+"px":t.slides[e].style.height=o+"px"),t.slides[e].swiperslidesize=o,t.slidessizesgrid.push(o),t.params.centeredslides?(t=t+o/2+s/2+a,0===s&&0!==e&&(t=t-t.size/2-a),0===e&&(t=t-t.size/2-a),math.abs(t)<.001&&(t=0),i%t.params.slidespergroup==0&&t.snapgrid.push(t),t.slidesgrid.push(t)):(i%t.params.slidespergroup==0&&t.snapgrid.push(t),t.slidesgrid.push(t),t=t+o+a),t.virtualsize+=o+a,s=o,i++)}t.virtualsize=math.max(t.virtualsize,t.size)+t.params.slidesoffsetafter;var g;if(t.rtl&&t.wrongrtl&&("slide"===t.params.effect||"coverflow"===t.params.effect)&&t.wrapper.css({width:t.virtualsize+t.params.spacebetween+"px"}),t.support.flexbox&&!t.params.setwrappersize||(t.ishorizontal()?t.wrapper.css({width:t.virtualsize+t.params.spacebetween+"px"}):t.wrapper.css({height:t.virtualsize+t.params.spacebetween+"px"})),t.params.slidespercolumn>1&&(t.virtualsize=(o+t.params.spacebetween)*n,t.virtualsize=math.ceil(t.virtualsize/t.params.slidespercolumn)-t.params.spacebetween,t.ishorizontal()?t.wrapper.css({width:t.virtualsize+t.params.spacebetween+"px"}):t.wrapper.css({height:t.virtualsize+t.params.spacebetween+"px"}),t.params.centeredslides)){for(g=[],e=0;e1&&t.snapgrid.push(t.virtualsize-t.size)}0===t.snapgrid.length&&(t.snapgrid=[0]),0!==t.params.spacebetween&&(t.ishorizontal()?t.rtl?t.slides.css({marginleft:a+"px"}):t.slides.css({marginright:a+"px"}):t.slides.css({marginbottom:a+"px"})),t.params.watchslidesprogress&&t.updateslidesoffset()}},t.updateslidesoffset=function(){for(var e=0;et.size&&(s=!0));for(a=t.activeindex-1;a>=0;a--)t.slides[a]&&!s&&(i+=t.slides[a].swiperslidesize,t++,i>t.size&&(s=!0))}else for(e=t.activeindex+1;e=0&&r0&&n<=t.size||r<=0&&n>=t.size)&&t.slides.eq(t).addclass(t.params.slidevisibleclass)}s.progress=t.rtl?-i:i}}},t.updateprogress=function(e){void 0===e&&(e=t.translate||0);var a=t.maxtranslate()-t.mintranslate(),t=t.isbeginning,s=t.isend;0===a?(t.progress=0,t.isbeginning=t.isend=!0):(t.progress=(e-t.mintranslate())/a,t.isbeginning=t.progress<=0,t.isend=t.progress>=1),t.isbeginning&&!t&&t.emit("onreachbeginning",t),t.isend&&!s&&t.emit("onreachend",t),t.params.watchslidesprogress&&t.updateslidesprogress(e),t.emit("onprogress",t,t.progress)},t.updateactiveindex=function(){var e,a,t,s=t.rtl?t.translate:-t.translate;for(a=0;a=t.slidesgrid[a]&&s=t.slidesgrid[a]&&s=t.slidesgrid[a]&&(e=a);t.params.normalizeslideindex&&(e<0||void 0===e)&&(e=0),t=math.floor(e/t.params.slidespergroup),t>=t.snapgrid.length&&(t=t.snapgrid.length-1),e!==t.activeindex&&(t.snapindex=t,t.previousindex=t.activeindex,t.activeindex=e,t.updateclasses(),t.updaterealindex())},t.updaterealindex=function(){t.realindex=parseint(t.slides.eq(t.activeindex).attr("data-swiper-slide-index")||t.activeindex,10)},t.updateclasses=function(){t.slides.removeclass(t.params.slideactiveclass+" "+t.params.slidenextclass+" "+t.params.slideprevclass+" "+t.params.slideduplicateactiveclass+" "+t.params.slideduplicatenextclass+" "+t.params.slideduplicateprevclass);var a=t.slides.eq(t.activeindex);a.addclass(t.params.slideactiveclass),i.loop&&(a.hasclass(t.params.slideduplicateclass)?t.wrapper.children("."+t.params.slideclass+":not(."+t.params.slideduplicateclass+')[data-swiper-slide-index="'+t.realindex+'"]').addclass(t.params.slideduplicateactiveclass):t.wrapper.children("."+t.params.slideclass+"."+t.params.slideduplicateclass+'[data-swiper-slide-index="'+t.realindex+'"]').addclass(t.params.slideduplicateactiveclass));var t=a.next("."+t.params.slideclass).addclass(t.params.slidenextclass);t.params.loop&&0===t.length&&(t=t.slides.eq(0),t.addclass(t.params.slidenextclass));var s=a.prev("."+t.params.slideclass).addclass(t.params.slideprevclass);if(t.params.loop&&0===s.length&&(s=t.slides.eq(-1),s.addclass(t.params.slideprevclass)),i.loop&&(t.hasclass(t.params.slideduplicateclass)?t.wrapper.children("."+t.params.slideclass+":not(."+t.params.slideduplicateclass+')[data-swiper-slide-index="'+t.attr("data-swiper-slide-index")+'"]').addclass(t.params.slideduplicatenextclass):t.wrapper.children("."+t.params.slideclass+"."+t.params.slideduplicateclass+'[data-swiper-slide-index="'+t.attr("data-swiper-slide-index")+'"]').addclass(t.params.slideduplicatenextclass),s.hasclass(t.params.slideduplicateclass)?t.wrapper.children("."+t.params.slideclass+":not(."+t.params.slideduplicateclass+')[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addclass(t.params.slideduplicateprevclass):t.wrapper.children("."+t.params.slideclass+"."+t.params.slideduplicateclass+'[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addclass(t.params.slideduplicateprevclass)),t.paginationcontainer&&t.paginationcontainer.length>0){var r,n=t.params.loop?math.ceil((t.slides.length-2*t.loopedslides)/t.params.slidespergroup):t.snapgrid.length;if(t.params.loop?(r=math.ceil((t.activeindex-t.loopedslides)/t.params.slidespergroup),r>t.slides.length-1-2*t.loopedslides&&(r-=t.slides.length-2*t.loopedslides),r>n-1&&(r-=n),r<0&&"bullets"!==t.params.paginationtype&&(r=n+r)):r=void 0!==t.snapindex?t.snapindex:t.activeindex||0,"bullets"===t.params.paginationtype&&t.bullets&&t.bullets.length>0&&(t.bullets.removeclass(t.params.bulletactiveclass),t.paginationcontainer.length>1?t.bullets.each(function(){e(this).index()===r&&e(this).addclass(t.params.bulletactiveclass)}):t.bullets.eq(r).addclass(t.params.bulletactiveclass)),"fraction"===t.params.paginationtype&&(t.paginationcontainer.find("."+t.params.paginationcurrentclass).text(r+1),t.paginationcontainer.find("."+t.params.paginationtotalclass).text(n)),"progress"===t.params.paginationtype){var o=(r+1)/n,l=o,p=1;t.ishorizontal()||(p=o,l=1),t.paginationcontainer.find("."+t.params.paginationprogressbarclass).transform("translate3d(0,0,0) scalex("+l+") scaley("+p+")").transition(t.params.speed)}"custom"===t.params.paginationtype&&t.params.paginationcustomrender&&(t.paginationcontainer.html(t.params.paginationcustomrender(t,r+1,n)),t.emit("onpaginationrendered",t,t.paginationcontainer[0]))}t.params.loop||(t.params.prevbutton&&t.prevbutton&&t.prevbutton.length>0&&(t.isbeginning?(t.prevbutton.addclass(t.params.buttondisabledclass),t.params.a11y&&t.a11y&&t.a11y.disable(t.prevbutton)):(t.prevbutton.removeclass(t.params.buttondisabledclass),t.params.a11y&&t.a11y&&t.a11y.enable(t.prevbutton))),t.params.nextbutton&&t.nextbutton&&t.nextbutton.length>0&&(t.isend?(t.nextbutton.addclass(t.params.buttondisabledclass),t.params.a11y&&t.a11y&&t.a11y.disable(t.nextbutton)):(t.nextbutton.removeclass(t.params.buttondisabledclass),t.params.a11y&&t.a11y&&t.a11y.enable(t.nextbutton))))},t.updatepagination=function(){if(t.params.pagination&&t.paginationcontainer&&t.paginationcontainer.length>0){var e="";if("bullets"===t.params.paginationtype){for(var a=t.params.loop?math.ceil((t.slides.length-2*t.loopedslides)/t.params.slidespergroup):t.snapgrid.length,t=0;t'+t.params.paginationelement+">";t.paginationcontainer.html(e),t.bullets=t.paginationcontainer.find("."+t.params.bulletclass),t.params.paginationclickable&&t.params.a11y&&t.a11y&&t.a11y.initpagination()}"fraction"===t.params.paginationtype&&(e=t.params.paginationfractionrender?t.params.paginationfractionrender(t,t.params.paginationcurrentclass,t.params.paginationtotalclass):' / ',t.paginationcontainer.html(e)),"progress"===t.params.paginationtype&&(e=t.params.paginationprogressrender?t.params.paginationprogressrender(t,t.params.paginationprogressbarclass):'',t.paginationcontainer.html(e)),"custom"!==t.params.paginationtype&&t.emit("onpaginationrendered",t,t.paginationcontainer[0])}},t.update=function(e){function a(){t.rtl,t.translate;t=math.min(math.max(t.translate,t.maxtranslate()),t.mintranslate()),t.setwrappertranslate(t),t.updateactiveindex(),t.updateclasses()}if(t){t.updatecontainersize(),t.updateslidessize(),t.updateprogress(),t.updatepagination(),t.updateclasses(),t.params.scrollbar&&t.scrollbar&&t.scrollbar.set();var t;if(e){t.controller&&t.controller.spline&&(t.controller.spline=void 0),t.params.freemode?(a(),t.params.autoheight&&t.updateautoheight()):(("auto"===t.params.slidesperview||t.params.slidesperview>1)&&t.isend&&!t.params.centeredslides?t.slideto(t.slides.length-1,0,!1,!0):t.slideto(t.activeindex,0,!1,!0))||a()}else t.params.autoheight&&t.updateautoheight()}},t.onresize=function(e){t.params.onbeforeresize&&t.params.onbeforeresize(t),t.params.breakpoints&&t.setbreakpoint();var a=t.params.allowswipetoprev,t=t.params.allowswipetonext;t.params.allowswipetoprev=t.params.allowswipetonext=!0,t.updatecontainersize(),t.updateslidessize(),("auto"===t.params.slidesperview||t.params.freemode||e)&&t.updatepagination(),t.params.scrollbar&&t.scrollbar&&t.scrollbar.set(),t.controller&&t.controller.spline&&(t.controller.spline=void 0);var s=!1;if(t.params.freemode){var i=math.min(math.max(t.translate,t.maxtranslate()),t.mintranslate());t.setwrappertranslate(i),t.updateactiveindex(),t.updateclasses(),t.params.autoheight&&t.updateautoheight()}else t.updateclasses(),s=("auto"===t.params.slidesperview||t.params.slidesperview>1)&&t.isend&&!t.params.centeredslides?t.slideto(t.slides.length-1,0,!1,!0):t.slideto(t.activeindex,0,!1,!0);t.params.lazyloading&&!s&&t.lazy&&t.lazy.load(),t.params.allowswipetoprev=a,t.params.allowswipetonext=t,t.params.onafterresize&&t.params.onafterresize(t)},t.toucheventsdesktop={start:"mousedown",move:"mousemove",end:"mouseup"},window.navigator.pointerenabled?t.toucheventsdesktop={start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.mspointerenabled&&(t.toucheventsdesktop={start:"mspointerdown",move:"mspointermove",end:"mspointerup"}),t.touchevents={start:t.support.touch||!t.params.simulatetouch?"touchstart":t.toucheventsdesktop.start,move:t.support.touch||!t.params.simulatetouch?"touchmove":t.toucheventsdesktop.move,end:t.support.touch||!t.params.simulatetouch?"touchend":t.toucheventsdesktop.end},(window.navigator.pointerenabled||window.navigator.mspointerenabled)&&("container"===t.params.toucheventstarget?t.container:t.wrapper).addclass("swiper-wp8-"+t.params.direction),t.initevents=function(e){var a=e?"off":"on",t=e?"removeeventlistener":"addeventlistener",s="container"===t.params.toucheventstarget?t.container[0]:t.wrapper[0],r=t.support.touch?s:document,n=!!t.params.nested;if(t.browser.ie)s[t](t.touchevents.start,t.ontouchstart,!1),r[t](t.touchevents.move,t.ontouchmove,n),r[t](t.touchevents.end,t.ontouchend,!1);else{if(t.support.touch){var o=!("touchstart"!==t.touchevents.start||!t.support.passivelistener||!t.params.passivelisteners)&&{passive:!0,capture:!1};s[t](t.touchevents.start,t.ontouchstart,o),s[t](t.touchevents.move,t.ontouchmove,n),s[t](t.touchevents.end,t.ontouchend,o)}(i.simulatetouch&&!t.device.ios&&!t.device.android||i.simulatetouch&&!t.support.touch&&t.device.ios)&&(s[t]("mousedown",t.ontouchstart,!1),document[t]("mousemove",t.ontouchmove,n),document[t]("mouseup",t.ontouchend,!1))}window[t]("resize",t.onresize),t.params.nextbutton&&t.nextbutton&&t.nextbutton.length>0&&(t.nextbutton[a]("click",t.onclicknext),t.params.a11y&&t.a11y&&t.nextbutton[a]("keydown",t.a11y.onenterkey)),t.params.prevbutton&&t.prevbutton&&t.prevbutton.length>0&&(t.prevbutton[a]("click",t.onclickprev),t.params.a11y&&t.a11y&&t.prevbutton[a]("keydown",t.a11y.onenterkey)),t.params.pagination&&t.params.paginationclickable&&(t.paginationcontainer[a]("click","."+t.params.bulletclass,t.onclickindex),t.params.a11y&&t.a11y&&t.paginationcontainer[a]("keydown","."+t.params.bulletclass,t.a11y.onenterkey)),(t.params.preventclicks||t.params.preventclickspropagation)&&s[t]("click",t.preventclicks,!0)},t.attachevents=function(){t.initevents()},t.detachevents=function(){t.initevents(!0)},t.allowclick=!0,t.preventclicks=function(e){t.allowclick||(t.params.preventclicks&&e.preventdefault(),t.params.preventclickspropagation&&t.animating&&(e.stoppropagation(),e.stopimmediatepropagation()))},t.onclicknext=function(e){e.preventdefault(),t.isend&&!t.params.loop||t.slidenext()},t.onclickprev=function(e){e.preventdefault(),t.isbeginning&&!t.params.loop||t.slideprev()},t.onclickindex=function(a){a.preventdefault();var t=e(this).index()*t.params.slidespergroup;t.params.loop&&(t+=t.loopedslides),t.slideto(t)},
t.updateclickedslide=function(a){var t=o(a,"."+t.params.slideclass),s=!1;if(t)for(var i=0;it.slides.length-t.loopedslides+l/2?(t.fixloop(),n=t.wrapper.children("."+t.params.slideclass+'[data-swiper-slide-index="'+r+'"]:not(.'+t.params.slideduplicateclass+")").eq(0).index(),settimeout(function(){t.slideto(n)},0)):t.slideto(n):n>t.slides.length-l?(t.fixloop(),n=t.wrapper.children("."+t.params.slideclass+'[data-swiper-slide-index="'+r+'"]:not(.'+t.params.slideduplicateclass+")").eq(0).index(),settimeout(function(){t.slideto(n)},0)):t.slideto(n)}else t.slideto(n)}};var s,c,z,m,e,p,i,k,l,d,b="input, select, textarea, button, video",h=date.now(),g=[];t.animating=!1,t.touches={startx:0,starty:0,currentx:0,currenty:0,diff:0};var x,a;t.ontouchstart=function(a){if(a.originalevent&&(a=a.originalevent),(x="touchstart"===a.type)||!("which"in a)||3!==a.which){if(t.params.noswiping&&o(a,"."+t.params.noswipingclass))return void(t.allowclick=!0);if(!t.params.swipehandler||o(a,t.params.swipehandler)){var t=t.touches.currentx="touchstart"===a.type?a.targettouches[0].pagex:a.pagex,s=t.touches.currenty="touchstart"===a.type?a.targettouches[0].pagey:a.pagey;if(!(t.device.ios&&t.params.iosedgeswipedetection&&t<=t.params.iosedgeswipethreshold)){if(s=!0,c=!1,z=!0,e=void 0,a=void 0,t.touches.startx=t,t.touches.starty=s,m=date.now(),t.allowclick=!0,t.updatecontainersize(),t.swipedirection=void 0,t.params.threshold>0&&(k=!1),"touchstart"!==a.type){var i=!0;e(a.target).is(b)&&(i=!1),document.activeelement&&e(document.activeelement).is(b)&&document.activeelement.blur(),i&&a.preventdefault()}t.emit("ontouchstart",t,a)}}}},t.ontouchmove=function(a){if(a.originalevent&&(a=a.originalevent),!x||"mousemove"!==a.type){if(a.preventedbynestedswiper)return t.touches.startx="touchmove"===a.type?a.targettouches[0].pagex:a.pagex,void(t.touches.starty="touchmove"===a.type?a.targettouches[0].pagey:a.pagey);if(t.params.onlyexternal)return t.allowclick=!1,void(s&&(t.touches.startx=t.touches.currentx="touchmove"===a.type?a.targettouches[0].pagex:a.pagex,t.touches.starty=t.touches.currenty="touchmove"===a.type?a.targettouches[0].pagey:a.pagey,m=date.now()));if(x&&t.params.touchreleaseonedges&&!t.params.loop)if(t.ishorizontal()){if(t.touches.currentxt.touches.startx&&t.translate>=t.mintranslate())return}else if(t.touches.currentyt.touches.starty&&t.translate>=t.mintranslate())return;if(x&&document.activeelement&&a.target===document.activeelement&&e(a.target).is(b))return c=!0,void(t.allowclick=!1);if(z&&t.emit("ontouchmove",t,a),!(a.targettouches&&a.targettouches.length>1)){if(t.touches.currentx="touchmove"===a.type?a.targettouches[0].pagex:a.pagex,t.touches.currenty="touchmove"===a.type?a.targettouches[0].pagey:a.pagey,void 0===e){var t;t.ishorizontal()&&t.touches.currenty===t.touches.starty||!t.ishorizontal()&&t.touches.currentx===t.touches.startx?e=!1:(t=180*math.atan2(math.abs(t.touches.currenty-t.touches.starty),math.abs(t.touches.currentx-t.touches.startx))/math.pi,e=t.ishorizontal()?t>t.params.touchangle:90-t>t.params.touchangle)}if(e&&t.emit("ontouchmoveopposite",t,a),void 0===a&&(t.touches.currentx===t.touches.startx&&t.touches.currenty===t.touches.starty||(a=!0)),s){if(e)return void(s=!1);if(a){t.allowclick=!1,t.emit("onslidermove",t,a),a.preventdefault(),t.params.touchmovestoppropagation&&!t.params.nested&&a.stoppropagation(),c||(i.loop&&t.fixloop(),i=t.getwrappertranslate(),t.setwrappertransition(0),t.animating&&t.wrapper.trigger("webkittransitionend transitionend otransitionend mstransitionend mstransitionend"),t.params.autoplay&&t.autoplaying&&(t.params.autoplaydisableoninteraction?t.stopautoplay():t.pauseautoplay()),d=!1,!t.params.grabcursor||t.params.allowswipetonext!==!0&&t.params.allowswipetoprev!==!0||t.setgrabcursor(!0)),c=!0;var s=t.touches.diff=t.ishorizontal()?t.touches.currentx-t.touches.startx:t.touches.currenty-t.touches.starty;s*=t.params.touchratio,t.rtl&&(s=-s),t.swipedirection=s>0?"prev":"next",p=s+i;var r=!0;if(s>0&&p>t.mintranslate()?(r=!1,t.params.resistance&&(p=t.mintranslate()-1+math.pow(-t.mintranslate()+i+s,t.params.resistanceratio))):s<0&&pi&&(p=i),t.params.threshold>0){if(!(math.abs(s)>t.params.threshold||k))return void(p=i);if(!k)return k=!0,t.touches.startx=t.touches.currentx,t.touches.starty=t.touches.currenty,p=i,void(t.touches.diff=t.ishorizontal()?t.touches.currentx-t.touches.startx:t.touches.currenty-t.touches.starty)}t.params.followfinger&&((t.params.freemode||t.params.watchslidesprogress)&&t.updateactiveindex(),t.params.freemode&&(0===g.length&&g.push({position:t.touches[t.ishorizontal()?"startx":"starty"],time:m}),g.push({position:t.touches[t.ishorizontal()?"currentx":"currenty"],time:(new window.date).gettime()})),t.updateprogress(p),t.setwrappertranslate(p))}}}}},t.ontouchend=function(a){if(a.originalevent&&(a=a.originalevent),z&&t.emit("ontouchend",t,a),z=!1,s){t.params.grabcursor&&c&&s&&(t.params.allowswipetonext===!0||t.params.allowswipetoprev===!0)&&t.setgrabcursor(!1);var t=date.now(),s=t-m;if(t.allowclick&&(t.updateclickedslide(a),t.emit("ontap",t,a),s<300&&t-h>300&&(l&&cleartimeout(l),l=settimeout(function(){t&&(t.params.paginationhide&&t.paginationcontainer.length>0&&!e(a.target).hasclass(t.params.bulletclass)&&t.paginationcontainer.toggleclass(t.params.paginationhiddenclass),t.emit("onclick",t,a))},300)),s<300&&t-h<300&&(l&&cleartimeout(l),t.emit("ondoubletap",t,a))),h=date.now(),settimeout(function(){t&&(t.allowclick=!0)},0),!s||!c||!t.swipedirection||0===t.touches.diff||p===i)return void(s=c=!1);s=c=!1;var i;if(i=t.params.followfinger?t.rtl?t.translate:-t.translate:-p,t.params.freemode){if(i<-t.mintranslate())return void t.slideto(t.activeindex);if(i>-t.maxtranslate())return void(t.slides.length1){var r=g.pop(),n=g.pop(),o=r.position-n.position,l=r.time-n.time;t.velocity=o/l,t.velocity=t.velocity/2,math.abs(t.velocity)150||(new window.date).gettime()-r.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity=t.velocity*t.params.freemodemomentumvelocityratio,g.length=0;var p=1e3*t.params.freemodemomentumratio,d=t.velocity*p,u=t.translate+d;t.rtl&&(u=-u);var c,m=!1,h=20*math.abs(t.velocity)*t.params.freemodemomentumbounceratio;if(ut.mintranslate())t.params.freemodemomentumbounce?(u-t.mintranslate()>h&&(u=t.mintranslate()+h),c=t.mintranslate(),m=!0,d=!0):u=t.mintranslate();else if(t.params.freemodesticky){var g,f=0;for(f=0;f-u){g=f;break}u=math.abs(t.snapgrid[g]-u)=t.params.longswipesms)&&(t.updateprogress(),t.updateactiveindex()))}var v,w=0,y=t.slidessizesgrid[0];for(v=0;v=t.slidesgrid[v]&&i=t.slidesgrid[v]&&(w=v,y=t.slidesgrid[t.slidesgrid.length-1]-t.slidesgrid[t.slidesgrid.length-2]);var x=(i-t.slidesgrid[w])/y;if(s>t.params.longswipesms){if(!t.params.longswipes)return void t.slideto(t.activeindex);"next"===t.swipedirection&&(x>=t.params.longswipesratio?t.slideto(w+t.params.slidespergroup):t.slideto(w)),"prev"===t.swipedirection&&(x>1-t.params.longswipesratio?t.slideto(w+t.params.slidespergroup):t.slideto(w))}else{if(!t.params.shortswipes)return void t.slideto(t.activeindex);"next"===t.swipedirection&&t.slideto(w+t.params.slidespergroup),"prev"===t.swipedirection&&t.slideto(w)}}},t._slideto=function(e,a){return t.slideto(e,a,!0,!0)},t.slideto=function(e,a,t,s){void 0===t&&(t=!0),void 0===e&&(e=0),e<0&&(e=0),t.snapindex=math.floor(e/t.params.slidespergroup),t.snapindex>=t.snapgrid.length&&(t.snapindex=t.snapgrid.length-1);var i=-t.snapgrid[t.snapindex];if(t.params.autoplay&&t.autoplaying&&(s||!t.params.autoplaydisableoninteraction?t.pauseautoplay(a):t.stopautoplay()),t.updateprogress(i),t.params.normalizeslideindex)for(var r=0;r=math.floor(100*t.slidesgrid[r])&&(e=r);return!(!t.params.allowswipetonext&&it.translate&&i>t.maxtranslate()&&(t.activeindex||0)!==e)&&(void 0===a&&(a=t.params.speed),t.previousindex=t.activeindex||0,t.activeindex=e,t.updaterealindex(),t.rtl&&-i===t.translate||!t.rtl&&i===t.translate?(t.params.autoheight&&t.updateautoheight(),t.updateclasses(),"slide"!==t.params.effect&&t.setwrappertranslate(i),!1):(t.updateclasses(),t.ontransitionstart(t),0===a||t.browser.lteie9?(t.setwrappertranslate(i),t.setwrappertransition(0),t.ontransitionend(t)):(t.setwrappertranslate(i),t.setwrappertransition(a),t.animating||(t.animating=!0,t.wrapper.transitionend(function(){t&&t.ontransitionend(t)}))),!0)))},t.ontransitionstart=function(e){void 0===e&&(e=!0),t.params.autoheight&&t.updateautoheight(),t.lazy&&t.lazy.ontransitionstart(),e&&(t.emit("ontransitionstart",t),t.activeindex!==t.previousindex&&(t.emit("onslidechangestart",t),t.activeindex>t.previousindex?t.emit("onslidenextstart",t):t.emit("onslideprevstart",t)))},t.ontransitionend=function(e){t.animating=!1,t.setwrappertransition(0),void 0===e&&(e=!0),t.lazy&&t.lazy.ontransitionend(),e&&(t.emit("ontransitionend",t),t.activeindex!==t.previousindex&&(t.emit("onslidechangeend",t),t.activeindex>t.previousindex?t.emit("onslidenextend",t):t.emit("onslideprevend",t))),t.params.history&&t.history&&t.history.sethistory(t.params.history,t.activeindex),t.params.hashnav&&t.hashnav&&t.hashnav.sethash()},t.slidenext=function(e,a,t){if(t.params.loop){if(t.animating)return!1;t.fixloop();t.container[0].clientleft;return t.slideto(t.activeindex+t.params.slidespergroup,a,e,t)}return t.slideto(t.activeindex+t.params.slidespergroup,a,e,t)},t._slidenext=function(e){return t.slidenext(!0,e,!0)},t.slideprev=function(e,a,t){if(t.params.loop){if(t.animating)return!1;t.fixloop();t.container[0].clientleft;return t.slideto(t.activeindex-1,a,e,t)}return t.slideto(t.activeindex-1,a,e,t)},t._slideprev=function(e){return t.slideprev(!0,e,!0)},t.slidereset=function(e,a,t){return t.slideto(t.activeindex,a,e)},t.disabletouchcontrol=function(){return t.params.onlyexternal=!0,!0},t.enabletouchcontrol=function(){return t.params.onlyexternal=!1,!0},t.setwrappertransition=function(e,a){t.wrapper.transition(e),"slide"!==t.params.effect&&t.effects[t.params.effect]&&t.effects[t.params.effect].settransition(e),t.params.parallax&&t.parallax&&t.parallax.settransition(e),t.params.scrollbar&&t.scrollbar&&t.scrollbar.settransition(e),t.params.control&&t.controller&&t.controller.settransition(e,a),t.emit("onsettransition",t,e)},t.setwrappertranslate=function(e,a,t){var s=0,i=0;t.ishorizontal()?s=t.rtl?-e:e:i=e,t.params.roundlengths&&(s=r(s),i=r(i)),t.params.virtualtranslate||(t.support.transforms3d?t.wrapper.transform("translate3d("+s+"px, "+i+"px, 0px)"):t.wrapper.transform("translate("+s+"px, "+i+"px)")),t.translate=t.ishorizontal()?s:i;var n,o=t.maxtranslate()-t.mintranslate();n=0===o?0:(e-t.mintranslate())/o,n!==t.progress&&t.updateprogress(e),a&&t.updateactiveindex(),"slide"!==t.params.effect&&t.effects[t.params.effect]&&t.effects[t.params.effect].settranslate(t.translate),t.params.parallax&&t.parallax&&t.parallax.settranslate(t.translate),t.params.scrollbar&&t.scrollbar&&t.scrollbar.settranslate(t.translate),t.params.control&&t.controller&&t.controller.settranslate(t.translate,t),t.emit("onsettranslate",t,t.translate)},t.gettranslate=function(e,a){var t,s,i,r;return void 0===a&&(a="x"),t.params.virtualtranslate?t.rtl?-t.translate:t.translate:(i=window.getcomputedstyle(e,null),window.webkitcssmatrix?(s=i.transform||i.webkittransform,s.split(",").length>6&&(s=s.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),r=new window.webkitcssmatrix("none"===s?"":s)):(r=i.moztransform||i.otransform||i.mstransform||i.mstransform||i.transform||i.getpropertyvalue("transform").replace("translate(","matrix(1, 0, 0, 1,"),t=r.tostring().split(",")),"x"===a&&(s=window.webkitcssmatrix?r.m41:16===t.length?parsefloat(t[12]):parsefloat(t[4])),"y"===a&&(s=window.webkitcssmatrix?r.m42:16===t.length?parsefloat(t[13]):parsefloat(t[5])),t.rtl&&s&&(s=-s),s||0)},t.getwrappertranslate=function(e){return void 0===e&&(e=t.ishorizontal()?"x":"y"),t.gettranslate(t.wrapper[0],e)},t.observers=[],t.initobservers=function(){if(t.params.observeparents)for(var e=t.container.parents(),a=0;aa.length&&(t.loopedslides=a.length);var t,s=[],i=[];for(a.each(function(t,r){var n=e(this);t=a.length-t.loopedslides&&s.push(r),n.attr("data-swiper-slide-index",t)}),t=0;t=0;t--)t.wrapper.prepend(e(s[t].clonenode(!0)).addclass(t.params.slideduplicateclass))},t.destroyloop=function(){t.wrapper.children("."+t.params.slideclass+"."+t.params.slideduplicateclass).remove(),t.slides.removeattr("data-swiper-slide-index")},t.reloop=function(e){var a=t.activeindex-t.loopedslides;t.destroyloop(),t.createloop(),t.updateslidessize(),e&&t.slideto(a+t.loopedslides,0,!1)},t.fixloop=function(){var e;t.activeindex=2*t.loopedslides||t.activeindex>t.slides.length-2*t.params.slidesperview)&&(e=-t.slides.length+t.activeindex+t.loopedslides,e+=t.loopedslides,t.slideto(e,0,!1,!0))},t.appendslide=function(e){if(t.params.loop&&t.destroyloop(),"object"==typeof e&&e.length)for(var a=0;a'),t.append(d)),0===u.length&&(u=e(''),t.append(u)),d.length&&(d[0].style.opacity=math.max(-s,0)),u.length&&(u[0].style.opacity=math.max(s,0))}t.transform("translate3d("+l+"px, "+p+"px, 0px) rotatex("+o+"deg) rotatey("+n+"deg)")}},settransition:function(a){if(t.slides.transition(a).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(a),t.params.virtualtranslate&&0!==a){var t=!1;t.slides.eq(t.activeindex).transitionend(function(){if(!t&&t&&e(this).hasclass(t.params.slideactiveclass)){t=!0,t.animating=!1;for(var a=["webkittransitionend","transitionend","otransitionend","mstransitionend","mstransitionend"],s=0;s'),t.wrapper.append(a)),a.css({height:t.width+"px"})):(a=t.container.find(".swiper-cube-shadow"),0===a.length&&(a=e(''),t.container.append(a))));for(var s=0;s-1&&(t=90*s+90*o,t.rtl&&(t=90*-s-90*o)),i.transform(u),t.params.cube.slideshadows){var c=t.ishorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),m=t.ishorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===c.length&&(c=e(''),i.append(c)),0===m.length&&(m=e(''),i.append(m)),c.length&&(c[0].style.opacity=math.max(-o,0)),m.length&&(m[0].style.opacity=math.max(o,0))}}if(t.wrapper.css({"-webkit-transform-origin":"50% 50% -"+t.size/2+"px","-moz-transform-origin":"50% 50% -"+t.size/2+"px","-ms-transform-origin":"50% 50% -"+t.size/2+"px","transform-origin":"50% 50% -"+t.size/2+"px"}),t.params.cube.shadow)if(t.ishorizontal())a.transform("translate3d(0px, "+(t.width/2+t.params.cube.shadowoffset)+"px, "+-t.width/2+"px) rotatex(90deg) rotatez(0deg) scale("+t.params.cube.shadowscale+")");else{var h=math.abs(t)-90*math.floor(math.abs(t)/90),g=1.5-(math.sin(2*h*math.pi/360)/2+math.cos(2*h*math.pi/360)/2),f=t.params.cube.shadowscale,v=t.params.cube.shadowscale/g,w=t.params.cube.shadowoffset;a.transform("scale3d("+f+", 1, "+v+") translate3d(0px, "+(t.height/2+w)+"px, "+-t.height/2/v+"px) rotatex(-90deg)")}var y=t.issafari||t.isuiwebview?-t.size/2:0;t.wrapper.transform("translate3d(0px,0,"+y+"px) rotatex("+(t.ishorizontal()?0:t)+"deg) rotatey("+(t.ishorizontal()?-t:0)+"deg)")},settransition:function(e){t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cube.shadow&&!t.ishorizontal()&&t.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{settranslate:function(){for(var a=t.translate,t=t.ishorizontal()?-a+t.width/2:-a+t.height/2,s=t.ishorizontal()?t.params.coverflow.rotate:-t.params.coverflow.rotate,i=t.params.coverflow.depth,r=0,n=t.slides.length;r'),o.append(v)),0===w.length&&(w=e(''),o.append(w)),v.length&&(v[0].style.opacity=d>0?d:0),w.length&&(w[0].style.opacity=-d>0?-d:0)}}if(t.browser.ie){t.wrapper[0].style.perspectiveorigin=t+"px 50%"}},settransition:function(e){t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},t.lazy={initialimageloaded:!1,loadimageinslide:function(a,t){if(void 0!==a&&(void 0===t&&(t=!0),0!==t.slides.length)){var s=t.slides.eq(a),i=s.find("."+t.params.lazyloadingclass+":not(."+t.params.lazystatusloadedclass+"):not(."+t.params.lazystatusloadingclass+")");!s.hasclass(t.params.lazyloadingclass)||s.hasclass(t.params.lazystatusloadedclass)||s.hasclass(t.params.lazystatusloadingclass)||(i=i.add(s[0])),0!==i.length&&i.each(function(){var a=e(this);a.addclass(t.params.lazystatusloadingclass);var i=a.attr("data-background"),r=a.attr("data-src"),n=a.attr("data-srcset"),o=a.attr("data-sizes");t.loadimage(a[0],r||i,n,o,!1,function(){if(void 0!==t&&null!==t&&t){if(i?(a.css("background-image",'url("'+i+'")'),a.removeattr("data-background")):(n&&(a.attr("srcset",n),a.removeattr("data-srcset")),o&&(a.attr("sizes",o),a.removeattr("data-sizes")),r&&(a.attr("src",r),a.removeattr("data-src"))),a.addclass(t.params.lazystatusloadedclass).removeclass(t.params.lazystatusloadingclass),s.find("."+t.params.lazypreloaderclass+", ."+t.params.preloaderclass).remove(),t.params.loop&&t){var e=s.attr("data-swiper-slide-index");if(s.hasclass(t.params.slideduplicateclass)){var l=t.wrapper.children('[data-swiper-slide-index="'+e+'"]:not(.'+t.params.slideduplicateclass+")");t.lazy.loadimageinslide(l.index(),!1)}else{var p=t.wrapper.children("."+t.params.slideduplicateclass+'[data-swiper-slide-index="'+e+'"]');t.lazy.loadimageinslide(p.index(),!1)}}t.emit("onlazyimageready",t,s[0],a[0])}}),t.emit("onlazyimageload",t,s[0],a[0])})}},load:function(){var a,t=t.params.slidesperview;if("auto"===t&&(t=0),t.lazy.initialimageloaded||(t.lazy.initialimageloaded=!0),t.params.watchslidesvisibility)t.wrapper.children("."+t.params.slidevisibleclass).each(function(){t.lazy.loadimageinslide(e(this).index())});else if(t>1)for(a=t.activeindex;a1||t.params.lazyloadinginprevnextamount&&t.params.lazyloadinginprevnextamount>1){var s=t.params.lazyloadinginprevnextamount,i=t,r=math.min(t.activeindex+i+math.max(s,i),t.slides.length),n=math.max(t.activeindex-math.max(i,s),0);for(a=t.activeindex+t;a0&&t.lazy.loadimageinslide(o.index());var l=t.wrapper.children("."+t.params.slideprevclass);l.length>0&&t.lazy.loadimageinslide(l.index())}},ontransitionstart:function(){t.params.lazyloading&&(t.params.lazyloadingontransitionstart||!t.params.lazyloadingontransitionstart&&!t.lazy.initialimageloaded)&&t.lazy.load()},ontransitionend:function(){t.params.lazyloading&&!t.params.lazyloadingontransitionstart&&t.lazy.load()}},t.scrollbar={istouched:!1,setdragposition:function(e){var a=t.scrollbar,t=t.ishorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].pagex:e.pagex||e.clientx:"touchstart"===e.type||"touchmove"===e.type?e.targettouches[0].pagey:e.pagey||e.clienty,s=t-a.track.offset()[t.ishorizontal()?"left":"top"]-a.dragsize/2,i=-t.mintranslate()*a.movedivider,r=-t.maxtranslate()*a.movedivider;sr&&(s=r),s=-s/a.movedivider,t.updateprogress(s),t.setwrappertranslate(s,!0)},dragstart:function(e){var a=t.scrollbar;a.istouched=!0,e.preventdefault(),e.stoppropagation(),a.setdragposition(e),cleartimeout(a.dragtimeout),a.track.transition(0),t.params.scrollbarhide&&a.track.css("opacity",1),t.wrapper.transition(100),a.drag.transition(100),t.emit("onscrollbardragstart",t)},dragmove:function(e){var a=t.scrollbar;a.istouched&&(e.preventdefault?e.preventdefault():e.returnvalue=!1,a.setdragposition(e),t.wrapper.transition(0),a.track.transition(0),a.drag.transition(0),t.emit("onscrollbardragmove",t))},dragend:function(e){var a=t.scrollbar;a.istouched&&(a.istouched=!1,t.params.scrollbarhide&&(cleartimeout(a.dragtimeout),a.dragtimeout=settimeout(function(){a.track.css("opacity",0),a.track.transition(400)},1e3)),t.emit("onscrollbardragend",t),t.params.scrollbarsnaponrelease&&t.slidereset())},draggableevents:function(){return t.params.simulatetouch!==!1||t.support.touch?t.touchevents:t.toucheventsdesktop}(),enabledraggable:function(){var a=t.scrollbar,t=t.support.touch?a.track:document;e(a.track).on(a.draggableevents.start,a.dragstart),e(t).on(a.draggableevents.move,a.dragmove),e(t).on(a.draggableevents.end,a.dragend)},disabledraggable:function(){var a=t.scrollbar,t=t.support.touch?a.track:document;e(a.track).off(a.draggableevents.start,a.dragstart),e(t).off(a.draggableevents.move,a.dragmove),e(t).off(a.draggableevents.end,a.dragend)},set:function(){if(t.params.scrollbar){var a=t.scrollbar;a.track=e(t.params.scrollbar),t.params.uniquenavelements&&"string"==typeof t.params.scrollbar&&a.track.length>1&&1===t.container.find(t.params.scrollbar).length&&(a.track=t.container.find(t.params.scrollbar)),a.drag=a.track.find(".swiper-scrollbar-drag"),0===a.drag.length&&(a.drag=e(''),a.track.append(a.drag)),a.drag[0].style.width="",a.drag[0].style.height="",a.tracksize=t.ishorizontal()?a.track[0].offsetwidth:a.track[0].offsetheight,a.divider=t.size/t.virtualsize,a.movedivider=a.divider*(a.tracksize/t.size),a.dragsize=a.tracksize*a.divider,t.ishorizontal()?a.drag[0].style.width=a.dragsize+"px":a.drag[0].style.height=a.dragsize+"px",a.divider>=1?a.track[0].style.display="none":a.track[0].style.display="",t.params.scrollbarhide&&(a.track[0].style.opacity=0)}},settranslate:function(){if(t.params.scrollbar){var e,a=t.scrollbar,t=(t.translate,a.dragsize);e=(a.tracksize-a.dragsize)*t.progress,t.rtl&&t.ishorizontal()?(e=-e,e>0?(t=a.dragsize-e,e=0):-e+a.dragsize>a.tracksize&&(t=a.tracksize+e)):e<0?(t=a.dragsize+e,e=0):e+a.dragsize>a.tracksize&&(t=a.tracksize-e),t.ishorizontal()?(t.support.transforms3d?a.drag.transform("translate3d("+e+"px, 0, 0)"):a.drag.transform("translatex("+e+"px)"),a.drag[0].style.width=t+"px"):(t.support.transforms3d?a.drag.transform("translate3d(0px, "+e+"px, 0)"):a.drag.transform("translatey("+e+"px)"),a.drag[0].style.height=t+"px"),t.params.scrollbarhide&&(cleartimeout(a.timeout),a.track[0].style.opacity=1,a.timeout=settimeout(function(){a.track[0].style.opacity=0,a.track.transition(400)},1e3))}},settransition:function(e){t.params.scrollbar&&t.scrollbar.drag.transition(e)}},t.controller={linearspline:function(e,a){var t=function(){var e,a,t;return function(s,i){for(a=-1,e=s.length;e-a>1;)s[t=e+a>>1]<=i?a=t:e=t;return e}}();this.x=e,this.y=a,this.lastindex=e.length-1;var s,i;this.x.length;this.interpolate=function(e){return e?(i=t(this.x,e),s=i-1,(e-this.x[s])*(this.y[i]-this.y[s])/(this.x[i]-this.x[s])+this.y[s]):0}},getinterpolatefunction:function(e){t.controller.spline||(t.controller.spline=t.params.loop?new t.controller.linearspline(t.slidesgrid,e.slidesgrid):new t.controller.linearspline(t.snapgrid,e.snapgrid))},settranslate:function(e,t){function s(a){e=a.rtl&&"horizontal"===a.params.direction?-t.translate:t.translate,"slide"===t.params.controlby&&(t.controller.getinterpolatefunction(a),r=-t.controller.spline.interpolate(-e)),r&&"container"!==t.params.controlby||(i=(a.maxtranslate()-a.mintranslate())/(t.maxtranslate()-t.mintranslate()),r=(e-t.mintranslate())*i+a.mintranslate()),t.params.controlinverse&&(r=a.maxtranslate()-r),a.updateprogress(r),a.setwrappertranslate(r,!1,t),a.updateactiveindex()}var i,r,n=t.params.control;if(array.isarray(n))for(var o=0;o-1?"dommousescroll":function(){var e="onwheel"in document;if(!e){var a=document.createelement("div");a.setattribute("onwheel","return;"),e="function"==typeof a.onwheel}return!e&&document.implementation&&document.implementation.hasfeature&&document.implementation.hasfeature("","")!==!0&&(e=document.implementation.hasfeature("events.wheel","3.0")),e}()?"wheel":"mousewheel"),t.disablemousewheelcontrol=function(){if(!t.mousewheel.event)return!1;var a=t.container;return"container"!==t.params.mousewheeleventstarged&&(a=e(t.params.mousewheeleventstarged)),a.off(t.mousewheel.event,u),t.params.mousewheelcontrol=!1,!0},t.enablemousewheelcontrol=function(){if(!t.mousewheel.event)return!1;var a=t.container;return"container"!==t.params.mousewheeleventstarged&&(a=e(t.params.mousewheeleventstarged)),a.on(t.mousewheel.event,u),t.params.mousewheelcontrol=!0,!0},t.parallax={settranslate:function(){t.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){c(this,t.progress)}),t.slides.each(function(){var a=e(this);a.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){c(this,math.min(math.max(a[0].progress,-1),1))})})},settransition:function(a){void 0===a&&(a=t.params.speed),t.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=e(this),s=parseint(t.attr("data-swiper-parallax-duration"),10)||a;0===a&&(s=0),t.transition(s)})}},t.zoom={scale:1,currentscale:1,isscaling:!1,gesture:{slide:void 0,slidewidth:void 0,slideheight:void 0,image:void 0,imagewrap:void 0,zoommax:t.params.zoommax},image:{istouched:void 0,ismoved:void 0,currentx:void 0,currenty:void 0,minx:void 0,miny:void 0,maxx:void 0,maxy:void 0,width:void 0,height:void 0,startx:void 0,starty:void 0,touchesstart:{},touchescurrent:{}},velocity:{x:void 0,y:void 0,prevpositionx:void 0,prevpositiony:void 0,prevtime:void 0},getdistancebetweentouches:function(e){if(e.targettouches.length<2)return 1;var a=e.targettouches[0].pagex,t=e.targettouches[0].pagey,s=e.targettouches[1].pagex,i=e.targettouches[1].pagey;return math.sqrt(math.pow(s-a,2)+math.pow(i-t,2))},ongesturestart:function(a){var t=t.zoom;if(!t.support.gestures){if("touchstart"!==a.type||"touchstart"===a.type&&a.targettouches.length<2)return;t.gesture.scalestart=t.getdistancebetweentouches(a)}if(!(t.gesture.slide&&t.gesture.slide.length||(t.gesture.slide=e(this),0===t.gesture.slide.length&&(t.gesture.slide=t.slides.eq(t.activeindex)),t.gesture.image=t.gesture.slide.find("img, svg, canvas"),t.gesture.imagewrap=t.gesture.image.parent("."+t.params.zoomcontainerclass),t.gesture.zoommax=t.gesture.imagewrap.attr("data-swiper-zoom")||t.params.zoommax,0!==t.gesture.imagewrap.length)))return void(t.gesture.image=void 0);t.gesture.image.transition(0),t.isscaling=!0},ongesturechange:function(e){var a=t.zoom;if(!t.support.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targettouches.length<2)return;a.gesture.scalemove=a.getdistancebetweentouches(e)}a.gesture.image&&0!==a.gesture.image.length&&(t.support.gestures?a.scale=e.scale*a.currentscale:a.scale=a.gesture.scalemove/a.gesture.scalestart*a.currentscale,a.scale>a.gesture.zoommax&&(a.scale=a.gesture.zoommax-1+math.pow(a.scale-a.gesture.zoommax+1,.5)),a.scalea.image.touchesstart.x)return void(a.image.istouched=!1);if(!t.ishorizontal()&&math.floor(a.image.miny)===math.floor(a.image.starty)&&a.image.touchescurrent.ya.image.touchesstart.y)return void(a.image.istouched=!1)}e.preventdefault(),e.stoppropagation(),a.image.ismoved=!0,a.image.currentx=a.image.touchescurrent.x-a.image.touchesstart.x+a.image.startx,a.image.currenty=a.image.touchescurrent.y-a.image.touchesstart.y+a.image.starty,a.image.currentxa.image.maxx&&(a.image.currentx=a.image.maxx-1+math.pow(a.image.currentx-a.image.maxx+1,.8)),a.image.currentya.image.maxy&&(a.image.currenty=a.image.maxy-1+math.pow(a.image.currenty-a.image.maxy+1,.8)),a.velocity.prevpositionx||(a.velocity.prevpositionx=a.image.touchescurrent.x),a.velocity.prevpositiony||(a.velocity.prevpositiony=a.image.touchescurrent.y),a.velocity.prevtime||(a.velocity.prevtime=date.now()),a.velocity.x=(a.image.touchescurrent.x-a.velocity.prevpositionx)/(date.now()-a.velocity.prevtime)/2,a.velocity.y=(a.image.touchescurrent.y-a.velocity.prevpositiony)/(date.now()-a.velocity.prevtime)/2,math.abs(a.image.touchescurrent.x-a.velocity.prevpositionx)<2&&(a.velocity.x=0),math.abs(a.image.touchescurrent.y-a.velocity.prevpositiony)<2&&(a.velocity.y=0),a.velocity.prevpositionx=a.image.touchescurrent.x,a.velocity.prevpositiony=a.image.touchescurrent.y,a.velocity.prevtime=date.now(),a.gesture.imagewrap.transform("translate3d("+a.image.currentx+"px, "+a.image.currenty+"px,0)")}}},ontouchend:function(e,a){var t=e.zoom;if(t.gesture.image&&0!==t.gesture.image.length){if(!t.image.istouched||!t.image.ismoved)return t.image.istouched=!1,void(t.image.ismoved=!1);t.image.istouched=!1,t.image.ismoved=!1;var s=300,i=300,r=t.velocity.x*s,n=t.image.currentx+r,o=t.velocity.y*i,l=t.image.currenty+o;0!==t.velocity.x&&(s=math.abs((n-t.image.currentx)/t.velocity.x)),0!==t.velocity.y&&(i=math.abs((l-t.image.currenty)/t.velocity.y));var p=math.max(s,i);t.image.currentx=n,t.image.currenty=l;var d=t.image.width*t.scale,u=t.image.height*t.scale;t.image.minx=math.min(t.gesture.slidewidth/2-d/2,0),t.image.maxx=-t.image.minx,t.image.miny=math.min(t.gesture.slideheight/2-u/2,0),t.image.maxy=-t.image.miny,t.image.currentx=math.max(math.min(t.image.currentx,t.image.maxx),t.image.minx),t.image.currenty=math.max(math.min(t.image.currenty,t.image.maxy),t.image.miny),t.gesture.imagewrap.transition(p).transform("translate3d("+t.image.currentx+"px, "+t.image.currenty+"px,0)")}},ontransitionend:function(e){var a=e.zoom;a.gesture.slide&&e.previousindex!==e.activeindex&&(a.gesture.image.transform("translate3d(0,0,0) scale(1)"),a.gesture.imagewrap.transform("translate3d(0,0,0)"),a.gesture.slide=a.gesture.image=a.gesture.imagewrap=void 0,a.scale=a.currentscale=1)},togglezoom:function(a,t){var s=a.zoom;if(s.gesture.slide||(s.gesture.slide=a.clickedslide?e(a.clickedslide):a.slides.eq(a.activeindex),s.gesture.image=s.gesture.slide.find("img, svg, canvas"),s.gesture.imagewrap=s.gesture.image.parent("."+a.params.zoomcontainerclass)),s.gesture.image&&0!==s.gesture.image.length){var i,r,n,o,l,p,d,u,c,m,h,g,f,v,w,y,x,t;void 0===s.image.touchesstart.x&&t?(i="touchend"===t.type?t.changedtouches[0].pagex:t.pagex,r="touchend"===t.type?t.changedtouches[0].pagey:t.pagey):(i=s.image.touchesstart.x,r=s.image.touchesstart.y),s.scale&&1!==s.scale?(s.scale=s.currentscale=1,s.gesture.imagewrap.transition(300).transform("translate3d(0,0,0)"),s.gesture.image.transition(300).transform("translate3d(0,0,0) scale(1)"),s.gesture.slide=void 0):(s.scale=s.currentscale=s.gesture.imagewrap.attr("data-swiper-zoom")||a.params.zoommax,t?(x=s.gesture.slide[0].offsetwidth,t=s.gesture.slide[0].offsetheight,n=s.gesture.slide.offset().left,o=s.gesture.slide.offset().top,l=n+x/2-i,p=o+t/2-r,c=s.gesture.image[0].offsetwidth,m=s.gesture.image[0].offsetheight,h=c*s.scale,g=m*s.scale,f=math.min(x/2-h/2,0),v=math.min(t/2-g/2,0),w=-f,y=-v,d=l*s.scale,u=p*s.scale,dw&&(d=w),uy&&(u=y)):(d=0,u=0),s.gesture.imagewrap.transition(300).transform("translate3d("+d+"px, "+u+"px,0)"),s.gesture.image.transition(300).transform("translate3d(0,0,0) scale("+s.scale+")"))}},attachevents:function(a){var t=a?"off":"on";if(t.params.zoom){var s=(t.slides,!("touchstart"!==t.touchevents.start||!t.support.passivelistener||!t.params.passivelisteners)&&{passive:!0,capture:!1});t.support.gestures?(t.slides[t]("gesturestart",t.zoom.ongesturestart,s),t.slides[t]("gesturechange",t.zoom.ongesturechange,s),t.slides[t]("gestureend",t.zoom.ongestureend,s)):"touchstart"===t.touchevents.start&&(t.slides[t](t.touchevents.start,t.zoom.ongesturestart,s),t.slides[t](t.touchevents.move,t.zoom.ongesturechange,s),t.slides[t](t.touchevents.end,t.zoom.ongestureend,s)),t[t]("touchstart",t.zoom.ontouchstart),t.slides.each(function(a,s){e(s).find("."+t.params.zoomcontainerclass).length>0&&e(s)[t](t.touchevents.move,t.zoom.ontouchmove)}),t[t]("touchend",t.zoom.ontouchend),t[t]("transitionend",t.zoom.ontransitionend),t.params.zoomtoggle&&t.on("doubletap",t.zoom.togglezoom)}},init:function(){t.zoom.attachevents()},destroy:function(){t.zoom.attachevents(!0)}},t._plugins=[];for(var y in t.plugins){var o=t.plugins[y](t,t.params[y]);o&&t._plugins.push(o)}return t.callplugins=function(e){for(var a=0;a'),notify:function(e){var a=t.a11y.liveregion;0!==a.length&&(a.html(""),a.html(e))},init:function(){t.params.nextbutton&&t.nextbutton&&t.nextbutton.length>0&&(t.a11y.makefocusable(t.nextbutton),t.a11y.addrole(t.nextbutton,"button"),t.a11y.addlabel(t.nextbutton,t.params.nextslidemessage)),t.params.prevbutton&&t.prevbutton&&t.prevbutton.length>0&&(t.a11y.makefocusable(t.prevbutton),t.a11y.addrole(t.prevbutton,"button"),t.a11y.addlabel(t.prevbutton,t.params.prevslidemessage)),e(t.container).append(t.a11y.liveregion)},initpagination:function(){t.params.pagination&&t.params.paginationclickable&&t.bullets&&t.bullets.length&&t.bullets.each(function(){var a=e(this);t.a11y.makefocusable(a),t.a11y.addrole(a,"button"),t.a11y.addlabel(a,t.params.paginationbulletmessage.replace(/{{index}}/,a.index()+1))})},destroy:function(){t.a11y.liveregion&&t.a11y.liveregion.length>0&&t.a11y.liveregion.remove()}},t.init=function(){t.params.loop&&t.createloop(),t.updatecontainersize(),t.updateslidessize(),t.updatepagination(),t.params.scrollbar&&t.scrollbar&&(t.scrollbar.set(),t.params.scrollbardraggable&&t.scrollbar.enabledraggable()),"slide"!==t.params.effect&&t.effects[t.params.effect]&&(t.params.loop||t.updateprogress(),t.effects[t.params.effect].settranslate()),t.params.loop?t.slideto(t.params.initialslide+t.loopedslides,0,t.params.runcallbacksoninit):(t.slideto(t.params.initialslide,0,t.params.runcallbacksoninit),0===t.params.initialslide&&(t.parallax&&t.params.parallax&&t.parallax.settranslate(),t.lazy&&t.params.lazyloading&&(t.lazy.load(),t.lazy.initialimageloaded=!0))),t.attachevents(),t.params.observer&&t.support.observer&&t.initobservers(),t.params.preloadimages&&!t.params.lazyloading&&t.preloadimages(),t.params.zoom&&t.zoom&&t.zoom.init(),t.params.autoplay&&t.startautoplay(),t.params.keyboardcontrol&&t.enablekeyboardcontrol&&t.enablekeyboardcontrol(),t.params.mousewheelcontrol&&t.enablemousewheelcontrol&&t.enablemousewheelcontrol(),t.params.hashnavreplacestate&&(t.params.replacestate=t.params.hashnavreplacestate),t.params.history&&t.history&&t.history.init(),t.params.hashnav&&t.hashnav&&t.hashnav.init(),t.params.a11y&&t.a11y&&t.a11y.init(),t.emit("oninit",t)},t.cleanupstyles=function(){t.container.removeclass(t.classnames.join(" ")).removeattr("style"),t.wrapper.removeattr("style"),t.slides&&t.slides.length&&t.slides.removeclass([t.params.slidevisibleclass,t.params.slideactiveclass,t.params.slidenextclass,t.params.slideprevclass].join(" ")).removeattr("style").removeattr("data-swiper-column").removeattr("data-swiper-row"),t.paginationcontainer&&t.paginationcontainer.length&&t.paginationcontainer.removeclass(t.params.paginationhiddenclass),t.bullets&&t.bullets.length&&t.bullets.removeclass(t.params.bulletactiveclass),t.params.prevbutton&&e(t.params.prevbutton).removeclass(t.params.buttondisabledclass),t.params.nextbutton&&e(t.params.nextbutton).removeclass(t.params.buttondisabledclass),t.params.scrollbar&&t.scrollbar&&(t.scrollbar.track&&t.scrollbar.track.length&&t.scrollbar.track.removeattr("style"),t.scrollbar.drag&&t.scrollbar.drag.length&&t.scrollbar.drag.removeattr("style"))},t.destroy=function(e,a){t.detachevents(),t.stopautoplay(),t.params.scrollbar&&t.scrollbar&&t.params.scrollbardraggable&&t.scrollbar.disabledraggable(),t.params.loop&&t.destroyloop(),a&&t.cleanupstyles(),t.disconnectobservers(),t.params.zoom&&t.zoom&&t.zoom.destroy(),t.params.keyboardcontrol&&t.disablekeyboardcontrol&&t.disablekeyboardcontrol(),t.params.mousewheelcontrol&&t.disablemousewheelcontrol&&t.disablemousewheelcontrol(),t.params.a11y&&t.a11y&&t.a11y.destroy(),t.params.history&&!t.params.replacestate&&window.removeeventlistener("popstate",t.history.sethistorypopstate),t.params.hashnav&&t.hashnav&&t.hashnav.destroy(),t.emit("ondestroy"),e!==!1&&(t=null)},t.init(),t}};a.prototype={issafari:function(){var e=window.navigator.useragent.tolowercase();return e.indexof("safari")>=0&&e.indexof("chrome")<0&&e.indexof("android")<0}(),isuiwebview:/(iphone|ipod|ipad).*applewebkit(?!.*safari)/i.test(window.navigator.useragent),isarray:function(e){return"[object array]"===object.prototype.tostring.apply(e)},browser:{ie:window.navigator.pointerenabled||window.navigator.mspointerenabled,ietouch:window.navigator.mspointerenabled&&window.navigator.msmaxtouchpoints>1||window.navigator.pointerenabled&&window.navigator.maxtouchpoints>1,lteie9:function(){var e=document.createelement("div");return e.innerhtml="",1===e.getelementsbytagname("i").length}()},device:function(){var e=window.navigator.useragent,a=e.match(/(android);?[\s\/]+([\d.]+)?/),t=e.match(/(ipad).*os\s([\d_]+)/),s=e.match(/(ipod)(.*os\s([\d_]+))?/),i=!t&&e.match(/(iphone\sos|ios)\s([\d_]+)/);return{ios:t||i||s,android:a}}(),support:{touch:window.modernizr&&modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.documenttouch&&document instanceof documenttouch)}(),transforms3d:window.modernizr&&modernizr.csstransforms3d===!0||function(){var e=document.createelement("div").style;return"webkitperspective"in e||"mozperspective"in e||"operspective"in e||"msperspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createelement("div").style,a="alignitems webkitalignitems webkitboxalign msflexalign mozboxalign webkitflexdirection msflexdirection mozboxdirection mozboxorient webkitboxdirection webkitboxorient".split(" "),t=0;t=0&&o.indexof(">")>=0){var l="div";for(0===o.indexof(":~]/)?(t||document).queryselectorall(a):[document.getelementbyid(a.split("#")[1])],i=0;i0&&a[0].nodetype)for(i=0;i0?parsefloat(this.css("width")):null},outerwidth:function(e){return this.length>0?e?this[0].offsetwidth+parsefloat(this.css("margin-right"))+parsefloat(this.css("margin-left")):this[0].offsetwidth:null},height:function(){return this[0]===window?window.innerheight:this.length>0?parsefloat(this.css("height")):null},outerheight:function(e){return this.length>0?e?this[0].offsetheight+parsefloat(this.css("margin-top"))+parsefloat(this.css("margin-bottom")):this[0].offsetheight:null},offset:function(){if(this.length>0){var e=this[0],a=e.getboundingclientrect(),t=document.body,s=e.clienttop||t.clienttop||0,i=e.clientleft||t.clientleft||0,r=window.pageyoffset||e.scrolltop,n=window.pagexoffset||e.scrollleft;return{top:a.top+r-s,left:a.left+n-i}}return null},css:function(e,a){var t;if(1===arguments.length){if("string"!=typeof e){for(t=0;ts-1?new e([]):a<0?(t=s+a,new e(t<0?[]:[this[t]])):new e([this[a]])},append:function(a){var t,s;for(t=0;t=0;s--)this[t].insertbefore(i.childnodes[s],this[t].childnodes[0])}else if(a instanceof e)for(s=0;s1)for(var i=0;i1)for(var i=0;i0?t?this[0].nextelementsibling&&a(this[0].nextelementsibling).is(t)?[this[0].nextelementsibling]:[]:this[0].nextelementsibling?[this[0].nextelementsibling]:[]:[])},nextall:function(t){var s=[],i=this[0];if(!i)return new e([]);for(;i.nextelementsibling;){var r=i.nextelementsibling;t?a(r).is(t)&&s.push(r):s.push(r),i=r}return new e(s)},prev:function(t){return new e(this.length>0?t?this[0].previouselementsibling&&a(this[0].previouselementsibling).is(t)?[this[0].previouselementsibling]:[]:this[0].previouselementsibling?[this[0].previouselementsibling]:[]:[])},prevall:function(t){var s=[],i=this[0];if(!i)return new e([]);for(;i.previouselementsibling;){var r=i.previouselementsibling;t?a(r).is(t)&&s.push(r):s.push(r),i=r}return new e(s)},parent:function(e){for(var t=[],s=0;s0?e?this[0].offsetwidth+parsefloat(this.css("margin-right"))+parsefloat(this.css("margin-left")):this[0].offsetwidth:null})),window.swiper=a}(),"undefined"!=typeof module?module.exports=window.swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return window.swiper});
//# sourcemappingurl=maps/swiper.min.js.map
/*!
waypoints - 4.0.0
copyright 2011-2015 caleb troughton
licensed under the mit license.
https://github.com/imakewebthings/waypoints/blob/master/licenses.txt
jquery.countup.js
*/
!function(){"use strict";function t(o){if(!o)throw new error("no options passed to waypoint constructor");if(!o.element)throw new error("no element option passed to waypoint constructor");if(!o.handler)throw new error("no handler option passed to waypoint constructor");this.key="waypoint-"+e,this.options=t.adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerpoint=null,this.group=t.group.findorcreate({name:this.options.group,axis:this.axis}),this.context=t.context.findorcreatebyelement(this.options.context),t.offsetaliases[this.options.offset]&&(this.options.offset=t.offsetaliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queuetrigger=function(t){this.group.queuetrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeall=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyall=function(){t.invokeall("destroy")},t.disableall=function(){t.invokeall("disable")},t.enableall=function(){t.invokeall("enable")},t.refreshall=function(){t.context.refreshall()},t.viewportheight=function(){return window.innerheight||document.documentelement.clientheight},t.viewportwidth=function(){return document.documentelement.clientwidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetaliases={"bottom-in-view":function(){return this.context.innerheight()-this.adapter.outerheight()},"right-in-view":function(){return this.context.innerwidth()-this.adapter.outerwidth()}},window.waypoint=t}(),function(){"use strict";function t(t){window.settimeout(t,1e3/60)}function e(t){this.element=t,this.adapter=n.adapter,this.adapter=new this.adapter(t),this.key="waypoint-context-"+i,this.didscroll=!1,this.didresize=!1,this.oldscroll={x:this.adapter.scrollleft(),y:this.adapter.scrolltop()},this.waypoints={vertical:{},horizontal:{}},t.waypointcontextkey=this.key,o[t.waypointcontextkey]=this,i+=1,this.createthrottledscrollhandler(),this.createthrottledresizehandler()}var i=0,o={},n=window.waypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.waypoints[e][t.key]=t,this.refresh()},e.prototype.checkempty=function(){var t=this.adapter.isemptyobject(this.waypoints.horizontal),e=this.adapter.isemptyobject(this.waypoints.vertical);t&&e&&(this.adapter.off(".waypoints"),delete o[this.key])},e.prototype.createthrottledresizehandler=function(){function t(){e.handleresize(),e.didresize=!1}var e=this;this.adapter.on("resize.waypoints",function(){e.didresize||(e.didresize=!0,n.requestanimationframe(t))})},e.prototype.createthrottledscrollhandler=function(){function t(){e.handlescroll(),e.didscroll=!1}var e=this;this.adapter.on("scroll.waypoints",function(){(!e.didscroll||n.istouch)&&(e.didscroll=!0,n.requestanimationframe(t))})},e.prototype.handleresize=function(){n.context.refreshall()},e.prototype.handlescroll=function(){var t={},e={horizontal:{newscroll:this.adapter.scrollleft(),oldscroll:this.oldscroll.x,forward:"right",backward:"left"},vertical:{newscroll:this.adapter.scrolltop(),oldscroll:this.oldscroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newscroll>o.oldscroll,r=n?o.forward:o.backward;for(var s in this.waypoints[i]){var a=this.waypoints[i][s],l=o.oldscroll=a.triggerpoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queuetrigger(r),t[a.group.id]=a.group)}}for(var c in t)t[c].flushtriggers();this.oldscroll={x:e.horizontal.newscroll,y:e.vertical.newscroll}},e.prototype.innerheight=function(){return this.element==this.element.window?n.viewportheight():this.adapter.innerheight()},e.prototype.remove=function(t){delete this.waypoints[t.axis][t.key],this.checkempty()},e.prototype.innerwidth=function(){return this.element==this.element.window?n.viewportwidth():this.adapter.innerwidth()},e.prototype.destroy=function(){var t=[];for(var e in this.waypoints)for(var i in this.waypoints[e])t.push(this.waypoints[e][i]);for(var o=0,n=t.length;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),o={};this.handlescroll(),t={horizontal:{contextoffset:e?0:i.left,contextscroll:e?0:this.oldscroll.x,contextdimension:this.innerwidth(),oldscroll:this.oldscroll.x,forward:"right",backward:"left",offsetprop:"left"},vertical:{contextoffset:e?0:i.top,contextscroll:e?0:this.oldscroll.y,contextdimension:this.innerheight(),oldscroll:this.oldscroll.y,forward:"down",backward:"up",offsetprop:"top"}};for(var r in t){var s=t[r];for(var a in this.waypoints[r]){var l,h,p,u,c,d=this.waypoints[r][a],f=d.options.offset,w=d.triggerpoint,y=0,g=null==w;d.element!==d.element.window&&(y=d.adapter.offset()[s.offsetprop]),"function"==typeof f?f=f.apply(d):"string"==typeof f&&(f=parsefloat(f),d.options.offset.indexof("%")>-1&&(f=math.ceil(s.contextdimension*f/100))),l=s.contextscroll-s.contextoffset,d.triggerpoint=y+l-f,h=w=s.oldscroll,u=h&&p,c=!h&&!p,!g&&u?(d.queuetrigger(s.backward),o[d.group.id]=d.group):!g&&c?(d.queuetrigger(s.forward),o[d.group.id]=d.group):g&&s.oldscroll>=d.triggerpoint&&(d.queuetrigger(s.forward),o[d.group.id]=d.group)}}return n.requestanimationframe(function(){for(var t in o)o[t].flushtriggers()}),this},e.findorcreatebyelement=function(t){return e.findbyelement(t)||new e(t)},e.refreshall=function(){for(var t in o)o[t].refresh()},e.findbyelement=function(t){return o[t.waypointcontextkey]},window.onload=function(){r&&r(),e.refreshall()},n.requestanimationframe=function(e){var i=window.requestanimationframe||window.mozrequestanimationframe||window.webkitrequestanimationframe||t;i.call(window,e)},n.context=e}(),function(){"use strict";function t(t,e){return t.triggerpoint-e.triggerpoint}function e(t,e){return e.triggerpoint-t.triggerpoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.cleartriggerqueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.waypoint;i.prototype.add=function(t){this.waypoints.push(t)},i.prototype.cleartriggerqueues=function(){this.triggerqueues={up:[],down:[],left:[],right:[]}},i.prototype.flushtriggers=function(){for(var i in this.triggerqueues){var o=this.triggerqueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.cleartriggerqueues()},i.prototype.next=function(e){this.waypoints.sort(t);var i=n.adapter.inarray(e,this.waypoints),o=i===this.waypoints.length-1;return o?null:this.waypoints[i+1]},i.prototype.previous=function(e){this.waypoints.sort(t);var i=n.adapter.inarray(e,this.waypoints);return i?this.waypoints[i-1]:null},i.prototype.queuetrigger=function(t,e){this.triggerqueues[e].push(t)},i.prototype.remove=function(t){var e=n.adapter.inarray(t,this.waypoints);e>-1&&this.waypoints.splice(e,1)},i.prototype.first=function(){return this.waypoints[0]},i.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},i.findorcreate=function(t){return o[t.axis][t.name]||new i(t)},n.group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jquery,i=window.waypoint;e.each(["innerheight","innerwidth","off","offset","on","outerheight","outerwidth","scrollleft","scrolltop"],function(e,i){t.prototype[i]=function(){var t=array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inarray","isemptyobject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",adapter:t}),i.adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isfunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.waypoint;window.jquery&&(window.jquery.fn.waypoint=t(window.jquery)),window.zepto&&(window.zepto.fn.waypoint=t(window.zepto))}();
!function(t){"use strict";t.fn.countup=function(e){var a=t.extend({time:2e3,delay:10},e);return this.each(function(){var e=t(this),n=a,u=function(){e.data("counterupto")||e.data("counterupto",e.text());var t=parseint(e.data("counter-time"))>0?parseint(e.data("counter-time")):n.time,a=parseint(e.data("counter-delay"))>0?parseint(e.data("counter-delay")):n.delay,u=t/a,r=e.data("counterupto"),o=[r],c=/[0-9]+,[0-9]+/.test(r);r=r.replace(/,/g,"");for(var d=(/^[0-9]+$/.test(r),/^[0-9]+\.[0-9]+$/.test(r)),s=d?(r.split(".")[1]||[]).length:0,i=u;i>=1;i--){var p=parseint(math.round(r/u*i));if(d&&(p=parsefloat(r/u*i).tofixed(s)),c)for(;/(\d+)(\d{3})/.test(p.tostring());)p=p.tostring().replace(/(\d+)(\d{3})/,"$1,$2");o.unshift(p)}e.data("counterup-nums",o),e.text("0");var f=function(){e.text(e.data("counterup-nums").shift()),e.data("counterup-nums").length?settimeout(e.data("counterup-func"),a):(delete e.data("counterup-nums"),e.data("counterup-nums",null),e.data("counterup-func",null))};e.data("counterup-func",f),settimeout(e.data("counterup-func"),a)};e.waypoint(u,{offset:"100%",triggeronce:!0})})}}(jquery);