;(function(d){var t={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4E3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};d.fn.bxSlider=function(b){if(0==this.length)return this;if(1
');a.viewport=c.parent();a.loader=d('
');a.viewport.prepend(a.loader);c.css({width:"horizontal"==a.settings.mode?100*a.children.length+215+"%":"auto",position:"relative"});a.usingCSS&&a.settings.easing?c.css("-"+a.cssPrefix+"-transition-timing-function",a.settings.easing):a.settings.easing||(a.settings.easing="swing");m();a.viewport.css({width:"100%",overflow:"hidden",position:"relative"});a.viewport.parent().css({maxWidth:A()});a.settings.pager||a.viewport.parent().css({margin:"0 auto 0px"});a.children.css({"float":"horizontal"==a.settings.mode?"left":"none",listStyle:"none",position:"relative"});a.children.css("width",f());"horizontal"==a.settings.mode&&0');a.settings.captions&&n();a.active.last=a.settings.startSlide==p()-1;a.settings.video&&c.fitVids();var b=a.children.eq(a.settings.startSlide);"all"==a.settings.preloadImages&&(b=a.children);a.settings.ticker?a.settings.pager=!1:(a.settings.pager&&(a.settings.pagerCustom?a.pagerEl=d(a.settings.pagerCustom):(a.pagerEl=d('
'),a.settings.pagerSelector?d(a.settings.pagerSelector).html(a.pagerEl):a.controls.el.addClass("bx-has-pager").append(a.pagerEl),y()),a.pagerEl.on("click","a",I)),a.settings.controls&&(a.controls.next=d(''+a.settings.nextText+""),a.controls.prev=d(''+a.settings.prevText+""),a.controls.next.bind("click",r),a.controls.prev.bind("click",J),a.settings.nextSelector&&d(a.settings.nextSelector).append(a.controls.next),a.settings.prevSelector&&d(a.settings.prevSelector).append(a.controls.prev),a.settings.nextSelector||a.settings.prevSelector||(a.controls.directionEl=d('
'),a.controls.directionEl.append(a.controls.prev).append(a.controls.next),a.controls.el.addClass("bx-has-controls-direction").append(a.controls.directionEl))),a.settings.auto&&a.settings.autoControls&&(a.controls.start=d('"),a.controls.stop=d('"),a.controls.autoEl=d('
'),a.controls.autoEl.on("click",".bx-start",q),a.controls.autoEl.on("click",".bx-stop",K),a.settings.autoControlsCombine?a.controls.autoEl.append(a.controls.start):a.controls.autoEl.append(a.controls.start).append(a.controls.stop),a.settings.autoControlsSelector?d(a.settings.autoControlsSelector).html(a.controls.autoEl):a.controls.el.addClass("bx-has-controls-auto").append(a.controls.autoEl),B(a.settings.autoStart?"stop":"start")),(a.settings.controls||a.settings.autoControls||a.settings.pager)&&a.viewport.after(a.controls.el));v(b,u)},v=function(a,f){var b=a.find("img, iframe").length;if(0==b)f();else{var m=0;a.find("img, iframe").each(function(){d(this).one("load",function(){++m==b&&f()}).each(function(){this.complete&&d(this).load()})})}},u=function(){if(a.settings.infiniteLoop&&"fade"!=a.settings.mode&&!a.settings.ticker){var f="vertical"==a.settings.mode?a.settings.minSlides:a.settings.maxSlides,b=a.children.slice(0,f).clone().addClass("bx-clone"),f=a.children.slice(-f).clone().addClass("bx-clone");c.append(b).prepend(f)}a.loader.remove();s();"vertical"==a.settings.mode&&(a.settings.adaptiveHeight=!0);a.viewport.height(x());c.redrawSlider();a.settings.onSliderLoad(a.active.index);a.initialized=!0;a.settings.responsive&&d(window).bind("resize",E);a.settings.auto&&a.settings.autoStart&&(1=a.children.length?b.add(a.children.eq(i-1)):b.add(a.children.eq(m+i))}else b=a.children.eq(a.active.index);else b=a.children;"vertical"==a.settings.mode?(b.each(function(a){f+=d(this).outerHeight()}),0b&&!a.carousel||"vertical"==a.settings.mode?f=b:1a.maxThreshold)&&ba.maxThreshold?f=a.settings.maxSlides:(f=a.children.first().width()+a.settings.slideMargin,f=Math.floor((a.viewport.width()+a.settings.slideMargin)/f)):"vertical"==a.settings.mode&&(f=a.settings.minSlides);return f},p=function(){var f=0;if(0a.settings.maxSlides&&a.active.last&&!a.settings.infiniteLoop)if("horizontal"==a.settings.mode){var f=a.children.last(),b=f.position();w(-(b.left-(a.viewport.width()-f.outerWidth())),"reset",0)}else"vertical"==a.settings.mode&&(b=a.children.eq(a.children.length-a.settings.minSlides).position(),w(-b.top,"reset",0));else b=a.children.eq(a.active.index*h()).position(),a.active.index==p()-1&&(a.active.last=!0),void 0!=b&&("horizontal"==a.settings.mode?w(-b.left,"reset",0):"vertical"==a.settings.mode&&w(-b.top,"reset",0))},w=function(f,b,m,h){if(a.usingCSS)f="vertical"==a.settings.mode?"translate3d(0, "+f+"px, 0)":"translate3d("+f+"px, 0, 0)",c.css("-"+a.cssPrefix+"-transition-duration",m/1E3+"s"),"slide"==b?(c.css(a.animProp,f),c.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){c.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd");D()})):"reset"==b?c.css(a.animProp,f):"ticker"==b&&(c.css("-"+a.cssPrefix+"-transition-timing-function","linear"),c.css(a.animProp,f),c.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){c.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd");w(h.resetValue,"reset",0);z()}));else{var p={};p[a.animProp]=f;"slide"==b?c.animate(p,m,a.settings.easing,function(){D()}):"reset"==b?c.css(a.animProp,f):"ticker"==b&&c.animate(p,speed,"linear",function(){w(h.resetValue,"reset",0);z()})}},y=function(){for(var f="",b=p(),m=0;m'+h+"
"}a.pagerEl.html(f)},n=function(){a.children.each(function(a){a=d(this).find("img:first").attr("title");void 0!=a&&(""+a).length&&d(this).append('
'+a+"
")})},r=function(f){a.settings.auto&&c.stopAuto();c.goToNextSlide();f.preventDefault()},J=function(f){a.settings.auto&&c.stopAuto();c.goToPrevSlide();f.preventDefault()},q=function(a){c.startAuto();a.preventDefault()},K=function(a){c.stopAuto();a.preventDefault()},I=function(f){a.settings.auto&&c.stopAuto();var b=d(f.currentTarget);void 0!==b.attr("data-slide-index")&&(b=parseInt(b.attr("data-slide-index")),b!=a.active.index&&c.goToSlide(b),f.preventDefault())},C=function(f){var b=a.children.length;"short"==a.settings.pagerType?(1h&&a.settings.preventDefaultSwipeX?f.preventDefault():3*h>m&&a.settings.preventDefaultSwipeY&&f.preventDefault();"fade"!=a.settings.mode&&a.settings.oneToOneTouch&&("horizontal"==a.settings.mode?(b=b.changedTouches[0].pageX-a.touch.start.x,f=a.touch.originalPos.left+b):(b=b.changedTouches[0].pageY-a.touch.start.y,f=a.touch.originalPos.top+b),w(f,"reset",0))},H=function(f){a.viewport.unbind("touchmove",G);var b=f.originalEvent;f=0;a.touch.end.x=b.changedTouches[0].pageX;a.touch.end.y=b.changedTouches[0].pageY;"fade"==a.settings.mode?(b=Math.abs(a.touch.start.x-a.touch.end.x),b>=a.settings.swipeThreshold&&(a.touch.start.x>a.touch.end.x?c.goToNextSlide():c.goToPrevSlide(),c.stopAuto())):("horizontal"==a.settings.mode?(b=a.touch.end.x-a.touch.start.x,f=a.touch.originalPos.left):(b=a.touch.end.y-a.touch.start.y,f=a.touch.originalPos.top),!a.settings.infiniteLoop&&(0==a.active.index&&0b)?w(f,"reset",200):Math.abs(b)>=a.settings.swipeThreshold?(0>b?c.goToNextSlide():c.goToPrevSlide(),c.stopAuto()):w(f,"reset",200));a.viewport.unbind("touchend",H)},E=function(f){if(a.initialized){f=d(window).width();var b=d(window).height();if(e!=f||g!=b)e=f,g=b,c.redrawSlider(),a.settings.onSliderResize.call(c,a.active.index)}};c.goToSlide=function(f,b){if(!a.working&&a.active.index!=f){a.working=!0;a.oldIndex=a.active.index;0>f?a.active.index=p()-1:f>=p()?a.active.index=0:a.active.index=f;a.settings.onSlideBefore(a.children.eq(a.active.index),a.oldIndex,a.active.index);if("next"==b)a.settings.onSlideNext(a.children.eq(a.active.index),a.oldIndex,a.active.index);else if("prev"==b)a.settings.onSlidePrev(a.children.eq(a.active.index),a.oldIndex,a.active.index);a.active.last=a.active.index>=p()-1;a.settings.pager&&C(a.active.index);a.settings.controls&&F();if("fade"==a.settings.mode)a.settings.adaptiveHeight&&a.viewport.height()!=x()&&a.viewport.animate({height:x()},a.settings.adaptiveHeightSpeed),a.children.filter(":visible").fadeOut(a.settings.speed).css({zIndex:0}),a.children.eq(a.active.index).css("zIndex",a.settings.slideZIndex+1).fadeIn(a.settings.speed,function(){d(this).css("zIndex",a.settings.slideZIndex);D()});else{a.settings.adaptiveHeight&&a.viewport.height()!=x()&&a.viewport.animate({height:x()},a.settings.adaptiveHeightSpeed);var m=0,k={left:0,top:0};if(!a.settings.infiniteLoop&&a.carousel&&a.active.last)if("horizontal"==a.settings.mode)var s=a.children.eq(a.children.length-1),k=s.position(),m=a.viewport.width()-s.outerWidth();else k=a.children.eq(a.children.length-a.settings.minSlides).position();else a.carousel&&a.active.last&&"prev"==b?(k=1==a.settings.moveSlides?a.settings.maxSlides-h():(p()-1)*h()-(a.children.length-a.settings.maxSlides),s=c.children(".bx-clone").eq(k),k=s.position()):"next"==b&&0==a.active.index?(k=c.find("> .bx-clone").eq(a.settings.maxSlides).position(),a.active.last=!1):0<=f&&(k=f*h(),k=a.children.eq(k).position());"undefined"!==typeof k&&w("horizontal"==a.settings.mode?-(k.left-m):-k.top,"slide",a.settings.speed)}}};c.goToNextSlide=function(){if(a.settings.infiniteLoop||!a.active.last){var f=parseInt(a.active.index)+1;c.goToSlide(f,"next")}};c.goToPrevSlide=function(){if(a.settings.infiniteLoop||0!=a.active.index){var f=parseInt(a.active.index)-1;c.goToSlide(f,"prev")}};c.startAuto=function(f){a.interval||(a.interval=setInterval(function(){"next"==a.settings.autoDirection?c.goToNextSlide():c.goToPrevSlide()},a.settings.pause),a.settings.autoControls&&!0!=f&&B("stop"))};c.stopAuto=function(f){a.interval&&(clearInterval(a.interval),a.interval=null,a.settings.autoControls&&!0!=f&&B("start"))};c.getCurrentSlide=function(){return a.active.index};c.getCurrentSlideElement=function(){return a.children.eq(a.active.index)};c.getSlideCount=function(){return a.children.length};c.redrawSlider=function(){a.children.add(c.find(".bx-clone")).width(f());a.viewport.css("height",x());a.settings.ticker||s();a.active.last&&(a.active.index=p()-1);a.active.index>=p()&&(a.active.last=!0);a.settings.pager&&!a.settings.pagerCustom&&(y(),C(a.active.index))};c.destroySlider=function(){a.initialized&&(a.initialized=!1,d(".bx-clone",this).remove(),a.children.each(function(){void 0!=d(this).data("origStyle")?d(this).attr("style",d(this).data("origStyle")):d(this).removeAttr("style")}),void 0!=d(this).data("origStyle")?this.attr("style",d(this).data("origStyle")):d(this).removeAttr("style"),d(this).unwrap().unwrap(),a.controls.el&&a.controls.el.remove(),a.controls.next&&a.controls.next.remove(),a.controls.prev&&a.controls.prev.remove(),a.pagerEl&&a.settings.controls&&a.pagerEl.remove(),d(".bx-caption",this).remove(),a.controls.autoEl&&a.controls.autoEl.remove(),clearInterval(a.interval),a.settings.responsive&&d(window).unbind("resize",E))};c.reloadSlider=function(a){void 0!=a&&(b=a);c.destroySlider();l()};l();return this}})(jQuery);(function(d){d.easing.jswing=d.easing.swing;d.extend(d.easing,{def:"easeOutQuad",swing:function(t,b,a,c,e){return d.easing[d.easing.def](t,b,a,c,e)},easeInQuad:function(d,b,a,c,e){return c*(b/=e)*b+a},easeOutQuad:function(d,b,a,c,e){return-c*(b/=e)*(b-2)+a},easeInOutQuad:function(d,b,a,c,e){return 1>(b/=e/2)?c/2*b*b+a:-c/2*(--b*(b-2)-1)+a},easeInCubic:function(d,b,a,c,e){return c*(b/=e)*b*b+a},easeOutCubic:function(d,b,a,c,e){return c*((b=b/e-1)*b*b+1)+a},easeInOutCubic:function(d,b,a,c,e){return 1>(b/=e/2)?c/2*b*b*b+a:c/2*((b-=2)*b*b+2)+a},easeInQuart:function(d,b,a,c,e){return c*(b/=e)*b*b*b+a},easeOutQuart:function(d,b,a,c,e){return-c*((b=b/e-1)*b*b*b-1)+a},easeInOutQuart:function(d,b,a,c,e){return 1>(b/=e/2)?c/2*b*b*b*b+a:-c/2*((b-=2)*b*b*b-2)+a},easeInQuint:function(d,b,a,c,e){return c*(b/=e)*b*b*b*b+a},easeOutQuint:function(d,b,a,c,e){return c*((b=b/e-1)*b*b*b*b+1)+a},easeInOutQuint:function(d,b,a,c,e){return 1>(b/=e/2)?c/2*b*b*b*b*b+a:c/2*((b-=2)*b*b*b*b+2)+a},easeInSine:function(d,b,a,c,e){return-c*Math.cos(b/e*(Math.PI/2))+c+a},easeOutSine:function(d,b,a,c,e){return c*Math.sin(b/e*(Math.PI/2))+a},easeInOutSine:function(d,b,a,c,e){return-c/2*(Math.cos(Math.PI*b/e)-1)+a},easeInExpo:function(d,b,a,c,e){return 0==b?a:c*Math.pow(2,10*(b/e-1))+a},easeOutExpo:function(d,b,a,c,e){return b==e?a+c:c*(-Math.pow(2,-10*b/e)+1)+a},easeInOutExpo:function(d,b,a,c,e){return 0==b?a:b==e?a+c:1>(b/=e/2)?c/2*Math.pow(2,10*(b-1))+a:c/2*(-Math.pow(2,-10*--b)+2)+a},easeInCirc:function(d,b,a,c,e){return-c*(Math.sqrt(1-(b/=e)*b)-1)+a},easeOutCirc:function(d,b,a,c,e){return c*Math.sqrt(1-(b=b/e-1)*b)+a},easeInOutCirc:function(d,b,a,c,e){return 1>(b/=e/2)?-c/2*(Math.sqrt(1-b*b)-1)+a:c/2*(Math.sqrt(1-(b-=2)*b)+1)+a},easeInElastic:function(d,b,a,c,e){d=1.70158;var g=0,l=c;if(0==b)return a;if(1==(b/=e))return a+c;g||(g=0.3*e);lb?-0.5*l*Math.pow(2,10*--b)*Math.sin(2*(b*e-d)*Math.PI/g)+a:l*Math.pow(2,-10*--b)*Math.sin(2*(b*e-d)*Math.PI/g)*0.5+c+a},easeInBack:function(d,b,a,c,e,g){void 0==g&&(g=1.70158);return c*(b/=e)*b*((g+1)*b-g)+a},easeOutBack:function(d,b,a,c,e,g){void 0==g&&(g=1.70158);return c*((b=b/e-1)*b*((g+1)*b+g)+1)+a},easeInOutBack:function(d,b,a,c,e,g){void 0==g&&(g=1.70158);return 1>(b/=e/2)?c/2*b*b*(((g*=1.525)+1)*b-g)+a:c/2*((b-=2)*b*(((g*=1.525)+1)*b+g)+2)+a},easeInBounce:function(t,b,a,c,e){return c-d.easing.easeOutBounce(t,e-b,0,c,e)+a},easeOutBounce:function(d,b,a,c,e){return(b/=e)<1/2.75?7.5625*c*b*b+a:b<2/2.75?c*(7.5625*(b-=1.5/2.75)*b+0.75)+a:b<2.5/2.75?c*(7.5625*(b-=2.25/2.75)*b+0.9375)+a:c*(7.5625*(b-=2.625/2.75)*b+0.984375)+a},easeInOutBounce:function(t,b,a,c,e){return bb;b++)if(b in this&&this[b]===a)return b;return-1};t=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}();b=this.WeakMap||this.MozWeakMap||(b=function(){function a(){this.keys=[];this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;f=this.keys;b=d=0;for(e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,m;m=this.keys;c=e=0;for(f=m.length;f>e;c=++e)if(d=m[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}());d=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(d=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser.");"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}());a=this.getComputedStyle||function(a){return this.getPropertyValue=function(b){var d;return"float"===b&&(b="styleFloat"),c.test(b)&&b.replace(c,function(a,b){return b.toUpperCase()}),(null!=(d=a.currentStyle)?d[b]:void 0)||null},this};c=/(\-([a-z]){1})/g;this.WOW=function(){function c(a){null==a&&(a={});this.scrollCallback=e(this.scrollCallback,this);this.scrollHandler=e(this.scrollHandler,this);this.resetAnimation=e(this.resetAnimation,this);this.start=e(this.start,this);this.scrolled=!0;this.config=this.util().extend(a,this.defaults);this.animationNameCache=new b;this.wowEvent=this.util().createEvent(this.config.boxClass)}return c.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null},c.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},c.prototype.start=function(){var a,b,c,e;if(this.stopped=!1,this.boxes=function(){var b,f,c,p;c=this.element.querySelectorAll("."+this.config.boxClass);p=[];b=0;for(f=c.length;f>b;b++)a=c[b],p.push(a);return p}.call(this),this.all=function(){var b,f,c,p;c=this.boxes;p=[];b=0;for(f=c.length;f>b;b++)a=c[b],p.push(a);return p}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,b=0,c=e.length;c>b;b++)a=e[b],this.applyStyle(a,!0);return this.disabled()||(this.util().addEvent(window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?(new d(function(a){return function(f){var b,c,h,d,k;k=[];b=0;for(c=f.length;c>b;b++)d=f[b],k.push(function(){var a,f,b,c;b=d.addedNodes||[];c=[];a=0;for(f=b.length;f>a;a++)h=b[a],c.push(this.doSync(h));return c}.call(a));return k}}(this))).observe(document.body,{childList:!0,subtree:!0}):void 0},c.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},c.prototype.sync=function(){return d.notSupported?this.doSync(this.element):void 0},c.prototype.doSync=function(a){var b,c,d,e;if(null==a&&(a=this.element),1===a.nodeType){a=a.parentNode||a;d=a.querySelectorAll("."+this.config.boxClass);e=[];b=0;for(c=d.length;c>b;b++)a=d[b],0>g.call(this.all,a)?(this.boxes.push(a),this.all.push(a),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(a,!0),e.push(this.scrolled=!0)):e.push(void 0);return e}},c.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},c.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},c.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),c.prototype.resetStyle=function(){var a,b,c,d,e;d=this.boxes;e=[];b=0;for(c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},c.prototype.resetAnimation=function(a){var b;return 0<=a.type.toLowerCase().indexOf("animationend")?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},c.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},c.prototype.vendors=["moz","webkit"],c.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,p,h,d;h=this.vendors;d=[];b=0;for(p=h.length;p>b;b++)f=h[b],d.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return d}.call(this));return d},c.prototype.vendorCSS=function(b,c){var d,e,g,f,m,p;m=a(b);f=m.getPropertyCSSValue(c);g=this.vendors;d=0;for(e=g.length;e>d;d++)p=g[d],f=f||m.getPropertyCSSValue("-"+p+"-"+c);return f},c.prototype.animationName=function(b){var c;try{c=this.vendorCSS(b,"animation-name").cssText}catch(d){c=a(b).getPropertyValue("animation-name")}return"none"===c?"":c},c.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},c.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},c.prototype.scrollHandler=function(){return this.scrolled=!0},c.prototype.scrollCallback=function(){var a;if(!(a=!this.scrolled)){this.scrolled=!1;var b,c,d,e;d=this.boxes;e=[];b=0;for(c=d.length;c>b;b++)(a=d[b])&&(this.isVisible(a)?this.show(a):e.push(a));a=(this.boxes=e,this.boxes.length||this.config.live)}return a?void 0:this.stop()},c.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},c.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},c.prototype.util=function(){return null!=this._util?this._util:this._util=new t},c.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},c}()}).call(this);var QRCode;!function(){function d(a){this.mode=g.MODE_8BIT_BYTE;this.data=a;this.parsedData=[];a=[];for(var b=0,c=this.data.length;c>b;b++){var h=this.data.charCodeAt(b);65536>>18,a[1]=128|(258048&h)>>>12,a[2]=128|(4032&h)>>>6,a[3]=128|63&h):2048>>12,a[1]=128|(4032&h)>>>6,a[2]=128|63&h):128>>6,a[1]=128|63&h):a[0]=h;this.parsedData=this.parsedData.concat(a)}this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function t(a,b){this.typeNumber=a;this.errorCorrectLevel=b;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]}function b(a,b){if(void 0==a.length)throw Error(a.length+"/"+b);for(var c=0;cb;b++)a.put(this.parsedData[b],8)}};t.prototype={addData:function(a){a=new d(a);this.dataList.push(a);this.dataCache=null},isDark:function(a,b){if(0>a||this.moduleCount<=a||0>b||this.moduleCount<=b)throw Error(a+","+b);return this.modules[a][b]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(a,b){this.moduleCount=4*this.typeNumber+17;this.modules=Array(this.moduleCount);for(var c=0;c=c;c++)if(!(-1>=a+c||this.moduleCount<=a+c))for(var h=-1;7>=h;h++)-1>=b+h||this.moduleCount<=b+h||(this.modules[a+c][b+h]=0<=c&&6>=c&&(0==h||6==h)||0<=h&&6>=h&&(0==c||6==c)||2<=c&&4>=c&&2<=h&&4>=h?!0:!1)},getBestMaskPattern:function(){for(var a=0,b=0,c=0;8>c;c++){this.makeImpl(!0,c);var h=k.getLostPoint(this);(0==c||a>h)&&(a=h,b=c)}return b},createMovieClip:function(a,b,c){a=a.createEmptyMovieClip(b,c);this.make();for(b=0;b=e;e++)for(var g=-2;2>=g;g++)this.modules[h+e][d+g]=-2==e||2==e||-2==g||2==g||0==e&&0==g?!0:!1}},setupTypeNumber:function(a){for(var b=k.getBCHTypeNumber(this.typeNumber),c=0;18>c;c++){var h=!a&&1==(1&b>>c);this.modules[Math.floor(c/3)][c%3+this.moduleCount-8-3]=h}for(c=0;18>c;c++)h=!a&&1==(1&b>>c),this.modules[c%3+this.moduleCount-8-3][Math.floor(c/3)]=h},setupTypeInfo:function(a,b){for(var c=k.getBCHTypeInfo(this.errorCorrectLevel<<3|b),h=0;15>h;h++){var d=!a&&1==(1&c>>h);6>h?this.modules[h][8]=d:8>h?this.modules[h+1][8]=d:this.modules[this.moduleCount-15+h][8]=d}for(h=0;15>h;h++)d=!a&&1==(1&c>>h),8>h?this.modules[8][this.moduleCount-h-1]=d:9>h?this.modules[8][15-h-1+1]=d:this.modules[8][15-h-1]=d;this.modules[this.moduleCount-8][8]=!a},mapData:function(a,b){for(var c=-1,h=this.moduleCount-1,d=7,e=0,g=this.moduleCount-1;0n;n++)if(null==this.modules[h][g-n]){var r=!1;e>>d));k.getMask(b,h,g-n)&&(r=!r);this.modules[h][g-n]=r;d--; -1==d&&(e++,d=7)}if(h+=c,0>h||this.moduleCount<=h){h-=c;c=-c;break}}}};t.PAD0=236;t.PAD1=17;t.createData=function(b,d,e){d=a.getRSBlocks(b,d);for(var h=new c,s=0;s8*b)throw Error("code length overflow. ("+h.getLengthInBits()+">"+8*b+")");for(h.getLengthInBits()+4<=8*b&&h.put(0,4);0!=h.getLengthInBits()%8;)h.putBit(!1);for(;!(h.getLengthInBits()>=8*b||(h.put(t.PAD0,8),h.getLengthInBits()>=8*b));)h.put(t.PAD1,8);return t.createBytes(h,d)};t.createBytes=function(a,c){for(var d=0,h=0,e=0,g=Array(c.length),y=Array(c.length),n=0;nq;q++)for(n=0;nq;q++)for(n=0;n>>=1;return b},getPatternPosition:function(a){return k.PATTERN_POSITION_TABLE[a-1]},getMask:function(a,b,c){switch(a){case 0:return 0==(b+c)%2;case 1:return 0==b%2;case 2:return 0==c%3;case 3:return 0==(b+c)%3;case 4:return 0==(Math.floor(b/2)+Math.floor(c/3))%2;case 5:return 0==b*c%2+b*c%3;case 6:return 0==(b*c%2+b*c%3)%2;case 7:return 0==(b*c%3+(b+c)%2)%2;default:throw Error("bad maskPattern:"+a);}},getErrorCorrectPolynomial:function(a){for(var c=new b([1],0),d=0;a>d;d++)c=c.multiply(new b([1,v.gexp(d)],0));return c},getLengthInBits:function(a,b){if(1<=b&&10>b)switch(a){case g.MODE_NUMBER:return 10;case g.MODE_ALPHA_NUM:return 9;case g.MODE_8BIT_BYTE:return 8;case g.MODE_KANJI:return 8;default:throw Error("mode:"+a);}else if(27>b)switch(a){case g.MODE_NUMBER:return 12;case g.MODE_ALPHA_NUM:return 11;case g.MODE_8BIT_BYTE:return 16;case g.MODE_KANJI:return 10;default:throw Error("mode:"+a);}else{if(!(41>b))throw Error("type:"+b);switch(a){case g.MODE_NUMBER:return 14;case g.MODE_ALPHA_NUM:return 13;case g.MODE_8BIT_BYTE:return 16;case g.MODE_KANJI:return 12;default:throw Error("mode:"+a);}}},getLostPoint:function(a){for(var b=a.getModuleCount(),c=0,d=0;b>d;d++)for(var e=0;b>e;e++){for(var g=0,k=a.isDark(d,e),n=-1;1>=n;n++)if(!(0>d+n||d+n>=b))for(var r=-1;1>=r;r++)0>e+r||e+r>=b||(0!=n||0!=r)&&k==a.isDark(d+n,e+r)&&g++;5d;d++)for(e=0;b-1>e;e++)g=0,a.isDark(d,e)&&g++,a.isDark(d+1,e)&&g++,a.isDark(d,e+1)&&g++,a.isDark(d+1,e+1)&&g++,0!=g&&4!=g||(c+=3);for(d=0;b>d;d++)for(e=0;b-6>e;e++)a.isDark(d,e)&&!a.isDark(d,e+1)&&a.isDark(d,e+2)&&a.isDark(d,e+3)&&a.isDark(d,e+4)&&!a.isDark(d,e+5)&&a.isDark(d,e+6)&&(c+=40);for(e=0;b>e;e++)for(d=0;b-6>d;d++)a.isDark(d,e)&&!a.isDark(d+1,e)&&a.isDark(d+2,e)&&a.isDark(d+3,e)&&a.isDark(d+4,e)&&!a.isDark(d+5,e)&&a.isDark(d+6,e)&&(c+=40);for(e=g=0;b>e;e++)for(d=0;b>d;d++)a.isDark(d,e)&&g++;a=Math.abs(100*g/b/b-50)/5;return c+10*a}},v={glog:function(a){if(1>a)throw Error("glog("+a+")");return v.LOG_TABLE[a]},gexp:function(a){for(;0>a;)a+=255;for(;256<=a;)a-=255;return v.EXP_TABLE[a]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},u=0;8>u;u++)v.EXP_TABLE[u]=1<u;u++)v.EXP_TABLE[u]=v.EXP_TABLE[u-4]^v.EXP_TABLE[u-5]^v.EXP_TABLE[u-6]^v.EXP_TABLE[u-8];for(u=0;255>u;u++)v.LOG_TABLE[v.EXP_TABLE[u]]=u;b.prototype={get:function(a){return this.num[a]},getLength:function(){return this.num.length},multiply:function(a){for(var c=Array(this.getLength()+a.getLength()-1),d=0;dthis.getLength()-a.getLength())return this;for(var c=v.glog(this.get(0))-v.glog(a.get(0)),d=Array(this.getLength()),e=0;ew;w++)for(var k=d[3*w+0],n=d[3*w+1],r=d[3*w+2],l=0;k>l;l++)g.push(new a(n,r));return g};a.getRsBlockTable=function(b,c){switch(c){case l.L:return a.RS_BLOCK_TABLE[4*(b-1)+0];case l.M:return a.RS_BLOCK_TABLE[4*(b-1)+1];case l.Q:return a.RS_BLOCK_TABLE[4*(b-1)+2];case l.H:return a.RS_BLOCK_TABLE[4*(b-1)+3]}};c.prototype={get:function(a){return 1==(1&this.buffer[Math.floor(a/8)]>>>7-a%8)},put:function(a,b){for(var c=0;b>c;c++)this.putBit(1==(1&a>>>b-c-1))},getLengthInBits:function(){return this.length},putBit:function(a){var b=Math.floor(this.length/8);this.buffer.length<=b&&this.buffer.push(0);a&&(this.buffer[b]|=128>>>this.length%8);this.length++}};var x=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],u=function(){var a=function(a,b){this._el=a;this._htOption=b};return a.prototype.draw=function(a){function b(a,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a),e;for(e in c)c.hasOwnProperty(e)&&d.setAttribute(e,c[e]);return d}var c=this._htOption,d=this._el,e=a.getModuleCount();Math.floor(c.width/e);Math.floor(c.height/e);this.clear();var f=b("svg",{viewBox:"0 0 "+String(e)+" "+String(e),width:"100%",height:"100%",fill:c.colorLight});f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink");d.appendChild(f);f.appendChild(b("rect",{fill:c.colorDark,width:"1",height:"1",id:"template"}));for(c=0;e>c;c++)for(d=0;e>d;d++)if(a.isDark(c,d)){var g=b("use",{x:String(c),y:String(d)});g.setAttributeNS("http://www.w3.org/1999/xlink","href","#template");f.appendChild(g)}},a.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},a}(),A="svg"===document.documentElement.tagName.toLowerCase()?u:"undefined"!=typeof CanvasRenderingContext2D?function(){function a(){this._elImage.src=this._elCanvas.toDataURL("image/png");this._elImage.style.display="block";this._elCanvas.style.display="none"}function b(a,c){var d=this;if(d._fFail=c,d._fSuccess=a,null===d._bSupportDataURI){var e=document.createElement("img"),f=function(){d._bSupportDataURI=!1;d._fFail&&_fFail.call(d)};return e.onabort=f,e.onerror=f,e.onload=function(){d._bSupportDataURI=!0;d._fSuccess&&d._fSuccess.call(d)},e.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==",void 0}!0===d._bSupportDataURI&&d._fSuccess?d._fSuccess.call(d):!1===d._bSupportDataURI&&d._fFail&&d._fFail.call(d)}if(this._android&&2.1>=this._android){var c=1/window.devicePixelRatio,d=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(a,b,e,f,g,m,k,l){if("nodeName"in a&&/img/i.test(a.nodeName))for(var s=arguments.length-1;1<=s;s--)arguments[s]*=c;else"undefined"==typeof l&&(arguments[1]*=c,arguments[2]*=c,arguments[3]*=c,arguments[4]*=c);d.apply(this,arguments)}}var g=function(a,b){this._bIsPainted=!1;this._android=e();this._htOption=b;this._elCanvas=document.createElement("canvas");this._elCanvas.width=b.width;this._elCanvas.height=b.height;a.appendChild(this._elCanvas);this._el=a;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.style.display="none";this._el.appendChild(this._elImage);this._bSupportDataURI=null};return g.prototype.draw=function(a){var b=this._elImage,c=this._oContext,d=this._htOption,e=a.getModuleCount(),f=d.width/e,h=d.height/e,g=Math.round(f),m=Math.round(h);b.style.display="none";this.clear();for(b=0;e>b;b++)for(var p=0;e>p;p++){var k=a.isDark(b,p),l=p*f,s=b*h;c.strokeStyle=k?d.colorDark:d.colorLight;c.lineWidth=1;c.fillStyle=k?d.colorDark:d.colorLight;c.fillRect(l,s,f,h);c.strokeRect(Math.floor(l)+0.5,Math.floor(s)+0.5,g,m);c.strokeRect(Math.ceil(l)-0.5,Math.ceil(s)-0.5,g,m)}this._bIsPainted=!0},g.prototype.makeImage=function(){this._bIsPainted&&b.call(this,a)},g.prototype.isPainted=function(){return this._bIsPainted},g.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1},g.prototype.round=function(a){return a?Math.floor(1E3*a)/1E3:a},g}():function(){var a=function(a,b){this._el=a;this._htOption=b};return a.prototype.draw=function(a){for(var b=this._htOption,c=this._el,d=a.getModuleCount(),e=Math.floor(b.width/d),f=Math.floor(b.height/d),g=[''],k=0;d>k;k++){g.push("");for(var l=0;d>l;l++)g.push('');g.push("")}g.push("
");c.innerHTML=g.join("");a=c.childNodes[0];c=(b.width-a.offsetWidth)/2;b=(b.height-a.offsetHeight)/2;0=e;e++){var k=0;switch(b){case l.L:k=x[e][0];break;case l.M:k=x[e][1];break;case l.Q:k=x[e][2];break;case l.H:k=x[e][3]}if(k>=d)break;c++}if(c>x.length)throw Error("Too long data");this._oQRCode=new t(c,this._htOption.correctLevel);this._oQRCode.addData(a);this._oQRCode.make();this._el.title=a;this._oDrawing.draw(this._oQRCode);this.makeImage()};QRCode.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||3<=this._android)&&this._oDrawing.makeImage()};QRCode.prototype.clear=function(){this._oDrawing.clear()};QRCode.CorrectLevel=l}();;(function(d){var t={mode:"horizontal",slideSelector:"",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:"visible",responsive:!0,slideZIndex:50,wrapperClass:"bx-wrapper",touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:"full",pagerShortSeparator:" / ",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:"Next",prevText:"Prev",nextSelector:null,prevSelector:null,autoControls:!1,startText:"Start",stopText:"Stop",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4E3,autoStart:!0,autoDirection:"next",autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};d.fn.bxSlider=function(b){if(0==this.length)return this;if(1
');a.viewport=c.parent();a.loader=d('
');a.viewport.prepend(a.loader);c.css({width:"horizontal"==a.settings.mode?100*a.children.length+215+"%":"auto",position:"relative"});a.usingCSS&&a.settings.easing?c.css("-"+a.cssPrefix+"-transition-timing-function",a.settings.easing):a.settings.easing||(a.settings.easing="swing");m();a.viewport.css({width:"100%",overflow:"hidden",position:"relative"});a.viewport.parent().css({maxWidth:A()});a.settings.pager||a.viewport.parent().css({margin:"0 auto 0px"});a.children.css({"float":"horizontal"==a.settings.mode?"left":"none",listStyle:"none",position:"relative"});a.children.css("width",f());"horizontal"==a.settings.mode&&0');a.settings.captions&&n();a.active.last=a.settings.startSlide==p()-1;a.settings.video&&c.fitVids();var b=a.children.eq(a.settings.startSlide);"all"==a.settings.preloadImages&&(b=a.children);a.settings.ticker?a.settings.pager=!1:(a.settings.pager&&(a.settings.pagerCustom?a.pagerEl=d(a.settings.pagerCustom):(a.pagerEl=d('
'),a.settings.pagerSelector?d(a.settings.pagerSelector).html(a.pagerEl):a.controls.el.addClass("bx-has-pager").append(a.pagerEl),y()),a.pagerEl.on("click","a",I)),a.settings.controls&&(a.controls.next=d(''+a.settings.nextText+""),a.controls.prev=d(''+a.settings.prevText+""),a.controls.next.bind("click",r),a.controls.prev.bind("click",J),a.settings.nextSelector&&d(a.settings.nextSelector).append(a.controls.next),a.settings.prevSelector&&d(a.settings.prevSelector).append(a.controls.prev),a.settings.nextSelector||a.settings.prevSelector||(a.controls.directionEl=d('
'),a.controls.directionEl.append(a.controls.prev).append(a.controls.next),a.controls.el.addClass("bx-has-controls-direction").append(a.controls.directionEl))),a.settings.auto&&a.settings.autoControls&&(a.controls.start=d('"),a.controls.stop=d('"),a.controls.autoEl=d('
'),a.controls.autoEl.on("click",".bx-start",q),a.controls.autoEl.on("click",".bx-stop",K),a.settings.autoControlsCombine?a.controls.autoEl.append(a.controls.start):a.controls.autoEl.append(a.controls.start).append(a.controls.stop),a.settings.autoControlsSelector?d(a.settings.autoControlsSelector).html(a.controls.autoEl):a.controls.el.addClass("bx-has-controls-auto").append(a.controls.autoEl),B(a.settings.autoStart?"stop":"start")),(a.settings.controls||a.settings.autoControls||a.settings.pager)&&a.viewport.after(a.controls.el));v(b,u)},v=function(a,f){var b=a.find("img, iframe").length;if(0==b)f();else{var m=0;a.find("img, iframe").each(function(){d(this).one("load",function(){++m==b&&f()}).each(function(){this.complete&&d(this).load()})})}},u=function(){if(a.settings.infiniteLoop&&"fade"!=a.settings.mode&&!a.settings.ticker){var f="vertical"==a.settings.mode?a.settings.minSlides:a.settings.maxSlides,b=a.children.slice(0,f).clone().addClass("bx-clone"),f=a.children.slice(-f).clone().addClass("bx-clone");c.append(b).prepend(f)}a.loader.remove();s();"vertical"==a.settings.mode&&(a.settings.adaptiveHeight=!0);a.viewport.height(x());c.redrawSlider();a.settings.onSliderLoad(a.active.index);a.initialized=!0;a.settings.responsive&&d(window).bind("resize",E);a.settings.auto&&a.settings.autoStart&&(1=a.children.length?b.add(a.children.eq(i-1)):b.add(a.children.eq(m+i))}else b=a.children.eq(a.active.index);else b=a.children;"vertical"==a.settings.mode?(b.each(function(a){f+=d(this).outerHeight()}),0b&&!a.carousel||"vertical"==a.settings.mode?f=b:1a.maxThreshold)&&ba.maxThreshold?f=a.settings.maxSlides:(f=a.children.first().width()+a.settings.slideMargin,f=Math.floor((a.viewport.width()+a.settings.slideMargin)/f)):"vertical"==a.settings.mode&&(f=a.settings.minSlides);return f},p=function(){var f=0;if(0a.settings.maxSlides&&a.active.last&&!a.settings.infiniteLoop)if("horizontal"==a.settings.mode){var f=a.children.last(),b=f.position();w(-(b.left-(a.viewport.width()-f.outerWidth())),"reset",0)}else"vertical"==a.settings.mode&&(b=a.children.eq(a.children.length-a.settings.minSlides).position(),w(-b.top,"reset",0));else b=a.children.eq(a.active.index*h()).position(),a.active.index==p()-1&&(a.active.last=!0),void 0!=b&&("horizontal"==a.settings.mode?w(-b.left,"reset",0):"vertical"==a.settings.mode&&w(-b.top,"reset",0))},w=function(f,b,m,h){if(a.usingCSS)f="vertical"==a.settings.mode?"translate3d(0, "+f+"px, 0)":"translate3d("+f+"px, 0, 0)",c.css("-"+a.cssPrefix+"-transition-duration",m/1E3+"s"),"slide"==b?(c.css(a.animProp,f),c.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){c.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd");D()})):"reset"==b?c.css(a.animProp,f):"ticker"==b&&(c.css("-"+a.cssPrefix+"-transition-timing-function","linear"),c.css(a.animProp,f),c.bind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){c.unbind("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd");w(h.resetValue,"reset",0);z()}));else{var p={};p[a.animProp]=f;"slide"==b?c.animate(p,m,a.settings.easing,function(){D()}):"reset"==b?c.css(a.animProp,f):"ticker"==b&&c.animate(p,speed,"linear",function(){w(h.resetValue,"reset",0);z()})}},y=function(){for(var f="",b=p(),m=0;m'+h+"
"}a.pagerEl.html(f)},n=function(){a.children.each(function(a){a=d(this).find("img:first").attr("title");void 0!=a&&(""+a).length&&d(this).append('
'+a+"
")})},r=function(f){a.settings.auto&&c.stopAuto();c.goToNextSlide();f.preventDefault()},J=function(f){a.settings.auto&&c.stopAuto();c.goToPrevSlide();f.preventDefault()},q=function(a){c.startAuto();a.preventDefault()},K=function(a){c.stopAuto();a.preventDefault()},I=function(f){a.settings.auto&&c.stopAuto();var b=d(f.currentTarget);void 0!==b.attr("data-slide-index")&&(b=parseInt(b.attr("data-slide-index")),b!=a.active.index&&c.goToSlide(b),f.preventDefault())},C=function(f){var b=a.children.length;"short"==a.settings.pagerType?(1h&&a.settings.preventDefaultSwipeX?f.preventDefault():3*h>m&&a.settings.preventDefaultSwipeY&&f.preventDefault();"fade"!=a.settings.mode&&a.settings.oneToOneTouch&&("horizontal"==a.settings.mode?(b=b.changedTouches[0].pageX-a.touch.start.x,f=a.touch.originalPos.left+b):(b=b.changedTouches[0].pageY-a.touch.start.y,f=a.touch.originalPos.top+b),w(f,"reset",0))},H=function(f){a.viewport.unbind("touchmove",G);var b=f.originalEvent;f=0;a.touch.end.x=b.changedTouches[0].pageX;a.touch.end.y=b.changedTouches[0].pageY;"fade"==a.settings.mode?(b=Math.abs(a.touch.start.x-a.touch.end.x),b>=a.settings.swipeThreshold&&(a.touch.start.x>a.touch.end.x?c.goToNextSlide():c.goToPrevSlide(),c.stopAuto())):("horizontal"==a.settings.mode?(b=a.touch.end.x-a.touch.start.x,f=a.touch.originalPos.left):(b=a.touch.end.y-a.touch.start.y,f=a.touch.originalPos.top),!a.settings.infiniteLoop&&(0==a.active.index&&0b)?w(f,"reset",200):Math.abs(b)>=a.settings.swipeThreshold?(0>b?c.goToNextSlide():c.goToPrevSlide(),c.stopAuto()):w(f,"reset",200));a.viewport.unbind("touchend",H)},E=function(f){if(a.initialized){f=d(window).width();var b=d(window).height();if(e!=f||g!=b)e=f,g=b,c.redrawSlider(),a.settings.onSliderResize.call(c,a.active.index)}};c.goToSlide=function(f,b){if(!a.working&&a.active.index!=f){a.working=!0;a.oldIndex=a.active.index;0>f?a.active.index=p()-1:f>=p()?a.active.index=0:a.active.index=f;a.settings.onSlideBefore(a.children.eq(a.active.index),a.oldIndex,a.active.index);if("next"==b)a.settings.onSlideNext(a.children.eq(a.active.index),a.oldIndex,a.active.index);else if("prev"==b)a.settings.onSlidePrev(a.children.eq(a.active.index),a.oldIndex,a.active.index);a.active.last=a.active.index>=p()-1;a.settings.pager&&C(a.active.index);a.settings.controls&&F();if("fade"==a.settings.mode)a.settings.adaptiveHeight&&a.viewport.height()!=x()&&a.viewport.animate({height:x()},a.settings.adaptiveHeightSpeed),a.children.filter(":visible").fadeOut(a.settings.speed).css({zIndex:0}),a.children.eq(a.active.index).css("zIndex",a.settings.slideZIndex+1).fadeIn(a.settings.speed,function(){d(this).css("zIndex",a.settings.slideZIndex);D()});else{a.settings.adaptiveHeight&&a.viewport.height()!=x()&&a.viewport.animate({height:x()},a.settings.adaptiveHeightSpeed);var m=0,k={left:0,top:0};if(!a.settings.infiniteLoop&&a.carousel&&a.active.last)if("horizontal"==a.settings.mode)var s=a.children.eq(a.children.length-1),k=s.position(),m=a.viewport.width()-s.outerWidth();else k=a.children.eq(a.children.length-a.settings.minSlides).position();else a.carousel&&a.active.last&&"prev"==b?(k=1==a.settings.moveSlides?a.settings.maxSlides-h():(p()-1)*h()-(a.children.length-a.settings.maxSlides),s=c.children(".bx-clone").eq(k),k=s.position()):"next"==b&&0==a.active.index?(k=c.find("> .bx-clone").eq(a.settings.maxSlides).position(),a.active.last=!1):0<=f&&(k=f*h(),k=a.children.eq(k).position());"undefined"!==typeof k&&w("horizontal"==a.settings.mode?-(k.left-m):-k.top,"slide",a.settings.speed)}}};c.goToNextSlide=function(){if(a.settings.infiniteLoop||!a.active.last){var f=parseInt(a.active.index)+1;c.goToSlide(f,"next")}};c.goToPrevSlide=function(){if(a.settings.infiniteLoop||0!=a.active.index){var f=parseInt(a.active.index)-1;c.goToSlide(f,"prev")}};c.startAuto=function(f){a.interval||(a.interval=setInterval(function(){"next"==a.settings.autoDirection?c.goToNextSlide():c.goToPrevSlide()},a.settings.pause),a.settings.autoControls&&!0!=f&&B("stop"))};c.stopAuto=function(f){a.interval&&(clearInterval(a.interval),a.interval=null,a.settings.autoControls&&!0!=f&&B("start"))};c.getCurrentSlide=function(){return a.active.index};c.getCurrentSlideElement=function(){return a.children.eq(a.active.index)};c.getSlideCount=function(){return a.children.length};c.redrawSlider=function(){a.children.add(c.find(".bx-clone")).width(f());a.viewport.css("height",x());a.settings.ticker||s();a.active.last&&(a.active.index=p()-1);a.active.index>=p()&&(a.active.last=!0);a.settings.pager&&!a.settings.pagerCustom&&(y(),C(a.active.index))};c.destroySlider=function(){a.initialized&&(a.initialized=!1,d(".bx-clone",this).remove(),a.children.each(function(){void 0!=d(this).data("origStyle")?d(this).attr("style",d(this).data("origStyle")):d(this).removeAttr("style")}),void 0!=d(this).data("origStyle")?this.attr("style",d(this).data("origStyle")):d(this).removeAttr("style"),d(this).unwrap().unwrap(),a.controls.el&&a.controls.el.remove(),a.controls.next&&a.controls.next.remove(),a.controls.prev&&a.controls.prev.remove(),a.pagerEl&&a.settings.controls&&a.pagerEl.remove(),d(".bx-caption",this).remove(),a.controls.autoEl&&a.controls.autoEl.remove(),clearInterval(a.interval),a.settings.responsive&&d(window).unbind("resize",E))};c.reloadSlider=function(a){void 0!=a&&(b=a);c.destroySlider();l()};l();return this}})(jQuery);(function(d){d.easing.jswing=d.easing.swing;d.extend(d.easing,{def:"easeOutQuad",swing:function(t,b,a,c,e){return d.easing[d.easing.def](t,b,a,c,e)},easeInQuad:function(d,b,a,c,e){return c*(b/=e)*b+a},easeOutQuad:function(d,b,a,c,e){return-c*(b/=e)*(b-2)+a},easeInOutQuad:function(d,b,a,c,e){return 1>(b/=e/2)?c/2*b*b+a:-c/2*(--b*(b-2)-1)+a},easeInCubic:function(d,b,a,c,e){return c*(b/=e)*b*b+a},easeOutCubic:function(d,b,a,c,e){return c*((b=b/e-1)*b*b+1)+a},easeInOutCubic:function(d,b,a,c,e){return 1>(b/=e/2)?c/2*b*b*b+a:c/2*((b-=2)*b*b+2)+a},easeInQuart:function(d,b,a,c,e){return c*(b/=e)*b*b*b+a},easeOutQuart:function(d,b,a,c,e){return-c*((b=b/e-1)*b*b*b-1)+a},easeInOutQuart:function(d,b,a,c,e){return 1>(b/=e/2)?c/2*b*b*b*b+a:-c/2*((b-=2)*b*b*b-2)+a},easeInQuint:function(d,b,a,c,e){return c*(b/=e)*b*b*b*b+a},easeOutQuint:function(d,b,a,c,e){return c*((b=b/e-1)*b*b*b*b+1)+a},easeInOutQuint:function(d,b,a,c,e){return 1>(b/=e/2)?c/2*b*b*b*b*b+a:c/2*((b-=2)*b*b*b*b+2)+a},easeInSine:function(d,b,a,c,e){return-c*Math.cos(b/e*(Math.PI/2))+c+a},easeOutSine:function(d,b,a,c,e){return c*Math.sin(b/e*(Math.PI/2))+a},easeInOutSine:function(d,b,a,c,e){return-c/2*(Math.cos(Math.PI*b/e)-1)+a},easeInExpo:function(d,b,a,c,e){return 0==b?a:c*Math.pow(2,10*(b/e-1))+a},easeOutExpo:function(d,b,a,c,e){return b==e?a+c:c*(-Math.pow(2,-10*b/e)+1)+a},easeInOutExpo:function(d,b,a,c,e){return 0==b?a:b==e?a+c:1>(b/=e/2)?c/2*Math.pow(2,10*(b-1))+a:c/2*(-Math.pow(2,-10*--b)+2)+a},easeInCirc:function(d,b,a,c,e){return-c*(Math.sqrt(1-(b/=e)*b)-1)+a},easeOutCirc:function(d,b,a,c,e){return c*Math.sqrt(1-(b=b/e-1)*b)+a},easeInOutCirc:function(d,b,a,c,e){return 1>(b/=e/2)?-c/2*(Math.sqrt(1-b*b)-1)+a:c/2*(Math.sqrt(1-(b-=2)*b)+1)+a},easeInElastic:function(d,b,a,c,e){d=1.70158;var g=0,l=c;if(0==b)return a;if(1==(b/=e))return a+c;g||(g=0.3*e);lb?-0.5*l*Math.pow(2,10*--b)*Math.sin(2*(b*e-d)*Math.PI/g)+a:l*Math.pow(2,-10*--b)*Math.sin(2*(b*e-d)*Math.PI/g)*0.5+c+a},easeInBack:function(d,b,a,c,e,g){void 0==g&&(g=1.70158);return c*(b/=e)*b*((g+1)*b-g)+a},easeOutBack:function(d,b,a,c,e,g){void 0==g&&(g=1.70158);return c*((b=b/e-1)*b*((g+1)*b+g)+1)+a},easeInOutBack:function(d,b,a,c,e,g){void 0==g&&(g=1.70158);return 1>(b/=e/2)?c/2*b*b*(((g*=1.525)+1)*b-g)+a:c/2*((b-=2)*b*(((g*=1.525)+1)*b+g)+2)+a},easeInBounce:function(t,b,a,c,e){return c-d.easing.easeOutBounce(t,e-b,0,c,e)+a},easeOutBounce:function(d,b,a,c,e){return(b/=e)<1/2.75?7.5625*c*b*b+a:b<2/2.75?c*(7.5625*(b-=1.5/2.75)*b+0.75)+a:b<2.5/2.75?c*(7.5625*(b-=2.25/2.75)*b+0.9375)+a:c*(7.5625*(b-=2.625/2.75)*b+0.984375)+a},easeInOutBounce:function(t,b,a,c,e){return bb;b++)if(b in this&&this[b]===a)return b;return-1};t=function(){function a(){}return a.prototype.extend=function(a,b){var c,d;for(c in b)d=b[c],null==a[c]&&(a[c]=d);return a},a.prototype.isMobile=function(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)},a.prototype.createEvent=function(a,b,c,d){var e;return null==b&&(b=!1),null==c&&(c=!1),null==d&&(d=null),null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e},a.prototype.emitEvent=function(a,b){return null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)?a["on"+b]():void 0},a.prototype.addEvent=function(a,b,c){return null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c},a.prototype.removeEvent=function(a,b,c){return null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]},a.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},a}();b=this.WeakMap||this.MozWeakMap||(b=function(){function a(){this.keys=[];this.values=[]}return a.prototype.get=function(a){var b,c,d,e,f;f=this.keys;b=d=0;for(e=f.length;e>d;b=++d)if(c=f[b],c===a)return this.values[b]},a.prototype.set=function(a,b){var c,d,e,f,m;m=this.keys;c=e=0;for(f=m.length;f>e;c=++e)if(d=m[c],d===a)return void(this.values[c]=b);return this.keys.push(a),this.values.push(b)},a}());d=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(d=function(){function a(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser.");"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return a.notSupported=!0,a.prototype.observe=function(){},a}());a=this.getComputedStyle||function(a){return this.getPropertyValue=function(b){var d;return"float"===b&&(b="styleFloat"),c.test(b)&&b.replace(c,function(a,b){return b.toUpperCase()}),(null!=(d=a.currentStyle)?d[b]:void 0)||null},this};c=/(\-([a-z]){1})/g;this.WOW=function(){function c(a){null==a&&(a={});this.scrollCallback=e(this.scrollCallback,this);this.scrollHandler=e(this.scrollHandler,this);this.resetAnimation=e(this.resetAnimation,this);this.start=e(this.start,this);this.scrolled=!0;this.config=this.util().extend(a,this.defaults);this.animationNameCache=new b;this.wowEvent=this.util().createEvent(this.config.boxClass)}return c.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null},c.prototype.init=function(){var a;return this.element=window.document.documentElement,"interactive"===(a=document.readyState)||"complete"===a?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},c.prototype.start=function(){var a,b,c,e;if(this.stopped=!1,this.boxes=function(){var b,f,c,p;c=this.element.querySelectorAll("."+this.config.boxClass);p=[];b=0;for(f=c.length;f>b;b++)a=c[b],p.push(a);return p}.call(this),this.all=function(){var b,f,c,p;c=this.boxes;p=[];b=0;for(f=c.length;f>b;b++)a=c[b],p.push(a);return p}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(e=this.boxes,b=0,c=e.length;c>b;b++)a=e[b],this.applyStyle(a,!0);return this.disabled()||(this.util().addEvent(window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?(new d(function(a){return function(f){var b,c,h,d,k;k=[];b=0;for(c=f.length;c>b;b++)d=f[b],k.push(function(){var a,f,b,c;b=d.addedNodes||[];c=[];a=0;for(f=b.length;f>a;a++)h=b[a],c.push(this.doSync(h));return c}.call(a));return k}}(this))).observe(document.body,{childList:!0,subtree:!0}):void 0},c.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},c.prototype.sync=function(){return d.notSupported?this.doSync(this.element):void 0},c.prototype.doSync=function(a){var b,c,d,e;if(null==a&&(a=this.element),1===a.nodeType){a=a.parentNode||a;d=a.querySelectorAll("."+this.config.boxClass);e=[];b=0;for(c=d.length;c>b;b++)a=d[b],0>g.call(this.all,a)?(this.boxes.push(a),this.all.push(a),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(a,!0),e.push(this.scrolled=!0)):e.push(void 0);return e}},c.prototype.show=function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),this.util().emitEvent(a,this.wowEvent),this.util().addEvent(a,"animationend",this.resetAnimation),this.util().addEvent(a,"oanimationend",this.resetAnimation),this.util().addEvent(a,"webkitAnimationEnd",this.resetAnimation),this.util().addEvent(a,"MSAnimationEnd",this.resetAnimation),a},c.prototype.applyStyle=function(a,b){var c,d,e;return d=a.getAttribute("data-wow-duration"),c=a.getAttribute("data-wow-delay"),e=a.getAttribute("data-wow-iteration"),this.animate(function(f){return function(){return f.customStyle(a,b,d,c,e)}}(this))},c.prototype.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),c.prototype.resetStyle=function(){var a,b,c,d,e;d=this.boxes;e=[];b=0;for(c=d.length;c>b;b++)a=d[b],e.push(a.style.visibility="visible");return e},c.prototype.resetAnimation=function(a){var b;return 0<=a.type.toLowerCase().indexOf("animationend")?(b=a.target||a.srcElement,b.className=b.className.replace(this.config.animateClass,"").trim()):void 0},c.prototype.customStyle=function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a},c.prototype.vendors=["moz","webkit"],c.prototype.vendorSet=function(a,b){var c,d,e,f;d=[];for(c in b)e=b[c],a[""+c]=e,d.push(function(){var b,p,h,d;h=this.vendors;d=[];b=0;for(p=h.length;p>b;b++)f=h[b],d.push(a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=e);return d}.call(this));return d},c.prototype.vendorCSS=function(b,c){var d,e,g,f,m,p;m=a(b);f=m.getPropertyCSSValue(c);g=this.vendors;d=0;for(e=g.length;e>d;d++)p=g[d],f=f||m.getPropertyCSSValue("-"+p+"-"+c);return f},c.prototype.animationName=function(b){var c;try{c=this.vendorCSS(b,"animation-name").cssText}catch(d){c=a(b).getPropertyValue("animation-name")}return"none"===c?"":c},c.prototype.cacheAnimationName=function(a){return this.animationNameCache.set(a,this.animationName(a))},c.prototype.cachedAnimationName=function(a){return this.animationNameCache.get(a)},c.prototype.scrollHandler=function(){return this.scrolled=!0},c.prototype.scrollCallback=function(){var a;if(!(a=!this.scrolled)){this.scrolled=!1;var b,c,d,e;d=this.boxes;e=[];b=0;for(c=d.length;c>b;b++)(a=d[b])&&(this.isVisible(a)?this.show(a):e.push(a));a=(this.boxes=e,this.boxes.length||this.config.live)}return a?void 0:this.stop()},c.prototype.offsetTop=function(a){for(var b;void 0===a.offsetTop;)a=a.parentNode;for(b=a.offsetTop;a=a.offsetParent;)b+=a.offsetTop;return b},c.prototype.isVisible=function(a){var b,c,d,e,f;return c=a.getAttribute("data-wow-offset")||this.config.offset,f=window.pageYOffset,e=f+Math.min(this.element.clientHeight,this.util().innerHeight())-c,d=this.offsetTop(a),b=d+a.clientHeight,e>=d&&b>=f},c.prototype.util=function(){return null!=this._util?this._util:this._util=new t},c.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},c}()}).call(this);var QRCode;!function(){function d(a){this.mode=g.MODE_8BIT_BYTE;this.data=a;this.parsedData=[];a=[];for(var b=0,c=this.data.length;c>b;b++){var h=this.data.charCodeAt(b);65536>>18,a[1]=128|(258048&h)>>>12,a[2]=128|(4032&h)>>>6,a[3]=128|63&h):2048>>12,a[1]=128|(4032&h)>>>6,a[2]=128|63&h):128>>6,a[1]=128|63&h):a[0]=h;this.parsedData=this.parsedData.concat(a)}this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function t(a,b){this.typeNumber=a;this.errorCorrectLevel=b;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]}function b(a,b){if(void 0==a.length)throw Error(a.length+"/"+b);for(var c=0;cb;b++)a.put(this.parsedData[b],8)}};t.prototype={addData:function(a){a=new d(a);this.dataList.push(a);this.dataCache=null},isDark:function(a,b){if(0>a||this.moduleCount<=a||0>b||this.moduleCount<=b)throw Error(a+","+b);return this.modules[a][b]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(a,b){this.moduleCount=4*this.typeNumber+17;this.modules=Array(this.moduleCount);for(var c=0;c=c;c++)if(!(-1>=a+c||this.moduleCount<=a+c))for(var h=-1;7>=h;h++)-1>=b+h||this.moduleCount<=b+h||(this.modules[a+c][b+h]=0<=c&&6>=c&&(0==h||6==h)||0<=h&&6>=h&&(0==c||6==c)||2<=c&&4>=c&&2<=h&&4>=h?!0:!1)},getBestMaskPattern:function(){for(var a=0,b=0,c=0;8>c;c++){this.makeImpl(!0,c);var h=k.getLostPoint(this);(0==c||a>h)&&(a=h,b=c)}return b},createMovieClip:function(a,b,c){a=a.createEmptyMovieClip(b,c);this.make();for(b=0;b=e;e++)for(var g=-2;2>=g;g++)this.modules[h+e][d+g]=-2==e||2==e||-2==g||2==g||0==e&&0==g?!0:!1}},setupTypeNumber:function(a){for(var b=k.getBCHTypeNumber(this.typeNumber),c=0;18>c;c++){var h=!a&&1==(1&b>>c);this.modules[Math.floor(c/3)][c%3+this.moduleCount-8-3]=h}for(c=0;18>c;c++)h=!a&&1==(1&b>>c),this.modules[c%3+this.moduleCount-8-3][Math.floor(c/3)]=h},setupTypeInfo:function(a,b){for(var c=k.getBCHTypeInfo(this.errorCorrectLevel<<3|b),h=0;15>h;h++){var d=!a&&1==(1&c>>h);6>h?this.modules[h][8]=d:8>h?this.modules[h+1][8]=d:this.modules[this.moduleCount-15+h][8]=d}for(h=0;15>h;h++)d=!a&&1==(1&c>>h),8>h?this.modules[8][this.moduleCount-h-1]=d:9>h?this.modules[8][15-h-1+1]=d:this.modules[8][15-h-1]=d;this.modules[this.moduleCount-8][8]=!a},mapData:function(a,b){for(var c=-1,h=this.moduleCount-1,d=7,e=0,g=this.moduleCount-1;0n;n++)if(null==this.modules[h][g-n]){var r=!1;e>>d));k.getMask(b,h,g-n)&&(r=!r);this.modules[h][g-n]=r;d--; -1==d&&(e++,d=7)}if(h+=c,0>h||this.moduleCount<=h){h-=c;c=-c;break}}}};t.PAD0=236;t.PAD1=17;t.createData=function(b,d,e){d=a.getRSBlocks(b,d);for(var h=new c,s=0;s8*b)throw Error("code length overflow. ("+h.getLengthInBits()+">"+8*b+")");for(h.getLengthInBits()+4<=8*b&&h.put(0,4);0!=h.getLengthInBits()%8;)h.putBit(!1);for(;!(h.getLengthInBits()>=8*b||(h.put(t.PAD0,8),h.getLengthInBits()>=8*b));)h.put(t.PAD1,8);return t.createBytes(h,d)};t.createBytes=function(a,c){for(var d=0,h=0,e=0,g=Array(c.length),y=Array(c.length),n=0;nq;q++)for(n=0;nq;q++)for(n=0;n>>=1;return b},getPatternPosition:function(a){return k.PATTERN_POSITION_TABLE[a-1]},getMask:function(a,b,c){switch(a){case 0:return 0==(b+c)%2;case 1:return 0==b%2;case 2:return 0==c%3;case 3:return 0==(b+c)%3;case 4:return 0==(Math.floor(b/2)+Math.floor(c/3))%2;case 5:return 0==b*c%2+b*c%3;case 6:return 0==(b*c%2+b*c%3)%2;case 7:return 0==(b*c%3+(b+c)%2)%2;default:throw Error("bad maskPattern:"+a);}},getErrorCorrectPolynomial:function(a){for(var c=new b([1],0),d=0;a>d;d++)c=c.multiply(new b([1,v.gexp(d)],0));return c},getLengthInBits:function(a,b){if(1<=b&&10>b)switch(a){case g.MODE_NUMBER:return 10;case g.MODE_ALPHA_NUM:return 9;case g.MODE_8BIT_BYTE:return 8;case g.MODE_KANJI:return 8;default:throw Error("mode:"+a);}else if(27>b)switch(a){case g.MODE_NUMBER:return 12;case g.MODE_ALPHA_NUM:return 11;case g.MODE_8BIT_BYTE:return 16;case g.MODE_KANJI:return 10;default:throw Error("mode:"+a);}else{if(!(41>b))throw Error("type:"+b);switch(a){case g.MODE_NUMBER:return 14;case g.MODE_ALPHA_NUM:return 13;case g.MODE_8BIT_BYTE:return 16;case g.MODE_KANJI:return 12;default:throw Error("mode:"+a);}}},getLostPoint:function(a){for(var b=a.getModuleCount(),c=0,d=0;b>d;d++)for(var e=0;b>e;e++){for(var g=0,k=a.isDark(d,e),n=-1;1>=n;n++)if(!(0>d+n||d+n>=b))for(var r=-1;1>=r;r++)0>e+r||e+r>=b||(0!=n||0!=r)&&k==a.isDark(d+n,e+r)&&g++;5d;d++)for(e=0;b-1>e;e++)g=0,a.isDark(d,e)&&g++,a.isDark(d+1,e)&&g++,a.isDark(d,e+1)&&g++,a.isDark(d+1,e+1)&&g++,0!=g&&4!=g||(c+=3);for(d=0;b>d;d++)for(e=0;b-6>e;e++)a.isDark(d,e)&&!a.isDark(d,e+1)&&a.isDark(d,e+2)&&a.isDark(d,e+3)&&a.isDark(d,e+4)&&!a.isDark(d,e+5)&&a.isDark(d,e+6)&&(c+=40);for(e=0;b>e;e++)for(d=0;b-6>d;d++)a.isDark(d,e)&&!a.isDark(d+1,e)&&a.isDark(d+2,e)&&a.isDark(d+3,e)&&a.isDark(d+4,e)&&!a.isDark(d+5,e)&&a.isDark(d+6,e)&&(c+=40);for(e=g=0;b>e;e++)for(d=0;b>d;d++)a.isDark(d,e)&&g++;a=Math.abs(100*g/b/b-50)/5;return c+10*a}},v={glog:function(a){if(1>a)throw Error("glog("+a+")");return v.LOG_TABLE[a]},gexp:function(a){for(;0>a;)a+=255;for(;256<=a;)a-=255;return v.EXP_TABLE[a]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},u=0;8>u;u++)v.EXP_TABLE[u]=1<u;u++)v.EXP_TABLE[u]=v.EXP_TABLE[u-4]^v.EXP_TABLE[u-5]^v.EXP_TABLE[u-6]^v.EXP_TABLE[u-8];for(u=0;255>u;u++)v.LOG_TABLE[v.EXP_TABLE[u]]=u;b.prototype={get:function(a){return this.num[a]},getLength:function(){return this.num.length},multiply:function(a){for(var c=Array(this.getLength()+a.getLength()-1),d=0;dthis.getLength()-a.getLength())return this;for(var c=v.glog(this.get(0))-v.glog(a.get(0)),d=Array(this.getLength()),e=0;ew;w++)for(var k=d[3*w+0],n=d[3*w+1],r=d[3*w+2],l=0;k>l;l++)g.push(new a(n,r));return g};a.getRsBlockTable=function(b,c){switch(c){case l.L:return a.RS_BLOCK_TABLE[4*(b-1)+0];case l.M:return a.RS_BLOCK_TABLE[4*(b-1)+1];case l.Q:return a.RS_BLOCK_TABLE[4*(b-1)+2];case l.H:return a.RS_BLOCK_TABLE[4*(b-1)+3]}};c.prototype={get:function(a){return 1==(1&this.buffer[Math.floor(a/8)]>>>7-a%8)},put:function(a,b){for(var c=0;b>c;c++)this.putBit(1==(1&a>>>b-c-1))},getLengthInBits:function(){return this.length},putBit:function(a){var b=Math.floor(this.length/8);this.buffer.length<=b&&this.buffer.push(0);a&&(this.buffer[b]|=128>>>this.length%8);this.length++}};var x=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],u=function(){var a=function(a,b){this._el=a;this._htOption=b};return a.prototype.draw=function(a){function b(a,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a),e;for(e in c)c.hasOwnProperty(e)&&d.setAttribute(e,c[e]);return d}var c=this._htOption,d=this._el,e=a.getModuleCount();Math.floor(c.width/e);Math.floor(c.height/e);this.clear();var f=b("svg",{viewBox:"0 0 "+String(e)+" "+String(e),width:"100%",height:"100%",fill:c.colorLight});f.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink");d.appendChild(f);f.appendChild(b("rect",{fill:c.colorDark,width:"1",height:"1",id:"template"}));for(c=0;e>c;c++)for(d=0;e>d;d++)if(a.isDark(c,d)){var g=b("use",{x:String(c),y:String(d)});g.setAttributeNS("http://www.w3.org/1999/xlink","href","#template");f.appendChild(g)}},a.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},a}(),A="svg"===document.documentElement.tagName.toLowerCase()?u:"undefined"!=typeof CanvasRenderingContext2D?function(){function a(){this._elImage.src=this._elCanvas.toDataURL("image/png");this._elImage.style.display="block";this._elCanvas.style.display="none"}function b(a,c){var d=this;if(d._fFail=c,d._fSuccess=a,null===d._bSupportDataURI){var e=document.createElement("img"),f=function(){d._bSupportDataURI=!1;d._fFail&&_fFail.call(d)};return e.onabort=f,e.onerror=f,e.onload=function(){d._bSupportDataURI=!0;d._fSuccess&&d._fSuccess.call(d)},e.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==",void 0}!0===d._bSupportDataURI&&d._fSuccess?d._fSuccess.call(d):!1===d._bSupportDataURI&&d._fFail&&d._fFail.call(d)}if(this._android&&2.1>=this._android){var c=1/window.devicePixelRatio,d=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(a,b,e,f,g,m,k,l){if("nodeName"in a&&/img/i.test(a.nodeName))for(var s=arguments.length-1;1<=s;s--)arguments[s]*=c;else"undefined"==typeof l&&(arguments[1]*=c,arguments[2]*=c,arguments[3]*=c,arguments[4]*=c);d.apply(this,arguments)}}var g=function(a,b){this._bIsPainted=!1;this._android=e();this._htOption=b;this._elCanvas=document.createElement("canvas");this._elCanvas.width=b.width;this._elCanvas.height=b.height;a.appendChild(this._elCanvas);this._el=a;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.style.display="none";this._el.appendChild(this._elImage);this._bSupportDataURI=null};return g.prototype.draw=function(a){var b=this._elImage,c=this._oContext,d=this._htOption,e=a.getModuleCount(),f=d.width/e,h=d.height/e,g=Math.round(f),m=Math.round(h);b.style.display="none";this.clear();for(b=0;e>b;b++)for(var p=0;e>p;p++){var k=a.isDark(b,p),l=p*f,s=b*h;c.strokeStyle=k?d.colorDark:d.colorLight;c.lineWidth=1;c.fillStyle=k?d.colorDark:d.colorLight;c.fillRect(l,s,f,h);c.strokeRect(Math.floor(l)+0.5,Math.floor(s)+0.5,g,m);c.strokeRect(Math.ceil(l)-0.5,Math.ceil(s)-0.5,g,m)}this._bIsPainted=!0},g.prototype.makeImage=function(){this._bIsPainted&&b.call(this,a)},g.prototype.isPainted=function(){return this._bIsPainted},g.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1},g.prototype.round=function(a){return a?Math.floor(1E3*a)/1E3:a},g}():function(){var a=function(a,b){this._el=a;this._htOption=b};return a.prototype.draw=function(a){for(var b=this._htOption,c=this._el,d=a.getModuleCount(),e=Math.floor(b.width/d),f=Math.floor(b.height/d),g=[''],k=0;d>k;k++){g.push("");for(var l=0;d>l;l++)g.push('');g.push("")}g.push("
");c.innerHTML=g.join("");a=c.childNodes[0];c=(b.width-a.offsetWidth)/2;b=(b.height-a.offsetHeight)/2;0=e;e++){var k=0;switch(b){case l.L:k=x[e][0];break;case l.M:k=x[e][1];break;case l.Q:k=x[e][2];break;case l.H:k=x[e][3]}if(k>=d)break;c++}if(c>x.length)throw Error("Too long data");this._oQRCode=new t(c,this._htOption.correctLevel);this._oQRCode.addData(a);this._oQRCode.make();this._el.title=a;this._oDrawing.draw(this._oQRCode);this.makeImage()};QRCode.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||3<=this._android)&&this._oDrawing.makeImage()};QRCode.prototype.clear=function(){this._oDrawing.clear()};QRCode.CorrectLevel=l}();!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(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&&N(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):(V(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]&&V(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):(V(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]&&V(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)),X.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=q.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=Y.call(this,c[0],"y"),c[1]=Y.call(this,c[1],"x"),s.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),s.dur=oe()?0:d,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&i.overflowed[0]&&(s.dir="y",s.overwrite="all",V(n,c[0].toString(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x",s.overwrite="none",V(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)&&N(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)}X.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),X.call(this,"remove"),k.call(this),B.call(this),n.removeData(a),K(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]),K(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=ee(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(N(t),("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(l[0].add(r).css("top",0),V(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),V(t,"_resetX")}},T=function(){function t(){r=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(r),R.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()}L.call(this),P.call(this),i.advanced.autoScrollOnFocus&&z.call(this),i.scrollButtons.enable&&H.call(this),i.keyboard.enable&&U.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(!W()||top.document)).unbind("."+i),l.each(function(){e(this).unbind("."+i)}),clearTimeout(t[0]._focusTimeout),K(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),K(o.sequential,"step"),clearTimeout(s[0].onCompleteTimeout),K(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?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=W()&&t.target.ownerDocument!==top.document?[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){var t=m.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}}function o(e,t,o,a){if(m[0].idleTimer=u.scrollInertia<233?250:0,n.attr("id")===h[1])var i="x",r=(n[0].offsetLeft-t+a)*d.scrollRatio.x;else var i="y",r=(n[0].offsetTop-e+o)*d.scrollRatio.y;V(l,r.toString(),{dir:i,drag:!0})}var n,i,r,l=e(this),d=l.data(a),u=d.opt,f=a+"_"+d.idx,h=["mCSB_"+d.idx+"_dragger_vertical","mCSB_"+d.idx+"_dragger_horizontal"],m=e("#mCSB_"+d.idx+"_container"),p=e("#"+h[0]+",#"+h[1]),g=u.advanced.releaseDraggableSelectors?p.add(e(u.advanced.releaseDraggableSelectors)):p,v=u.advanced.extraDraggableSelectors?e(!W()||top.document).add(e(u.advanced.extraDraggableSelectors)):e(!W()||top.document);p.bind("mousedown."+f+" touchstart."+f+" pointerdown."+f+" MSPointerDown."+f,function(o){if(o.stopImmediatePropagation(),o.preventDefault(),Z(o)){c=!0,s&&(document.onselectstart=function(){return!1}),t(!1),N(l),n=e(this);var a=n.offset(),d=O(o)[0]-a.top,f=O(o)[1]-a.left,h=n.height()+a.top,m=n.width()+a.left;h>d&&d>0&&m>f&&f>0&&(i=d,r=f),C(n,"active",u.autoExpandScrollbar)}}).bind("touchmove."+f,function(e){e.stopImmediatePropagation(),e.preventDefault();var t=n.offset(),a=O(e)[0]-t.top,l=O(e)[1]-t.left;o(i,r,a,l)}),e(document).add(v).bind("mousemove."+f+" pointermove."+f+" MSPointerMove."+f,function(e){if(n){var t=n.offset(),a=O(e)[0]-t.top,l=O(e)[1]-t.left;if(i===a&&r===l)return;o(i,r,a,l)}}).add(g).bind("mouseup."+f+" touchend."+f+" pointerup."+f+" MSPointerUp."+f,function(e){n&&(C(n,"active",u.autoExpandScrollbar),n=null),c=!1,s&&(document.onselectstart=null),t(!0)})},D=function(){function o(e){if(!$(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($(e)&&!c&&!O(e)[2]&&(T.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!C||b)&&d)){g=G();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left,n="mcsLinearOut";if(E.push(o),R.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],R[R.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&&V(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=[],R=[],A=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;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).load(function(){W(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,F(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(e){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(e){t||(i&&(i=0,n("off",null)),c=!1)})},R=function(){function t(t,a){if(N(o),!A(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=t.deltaX||t.deltaY||a;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<2&&!i.mouseWheel.normalizeDelta&&(h=t.deltaFactor,d=17),V(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).load(function(){W(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)})}},W=function(e){var t=null;if(e){try{var o=e.contentDocument||e.contentWindow.document;t=o.body.innerHTML}catch(a){}return null!==t}try{var o=top.document;t=o.body.innerHTML}catch(a){}return null!==t},A=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"))},L=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(e){c=!1}).bind("click."+i,function(a){if(t&&(t=0,e(a.target).hasClass(d[12])||e(a.target).hasClass("mCSB_draggerRail"))){N(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)-.9*u*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)-.9*u*l.height()}V(o,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},z=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(o){var a=e(document.activeElement),i=r.find(".mCustomScrollBox").length,s=0;a.is(n.advanced.autoScrollOnFocus)&&(N(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=i?(s+17)*i:0,t[0]._focusTimeout=setTimeout(function(){var e=[te(a)[0],te(a)[1]],o=[r[0].offsetTop,r[0].offsetLeft],i=[o[0]+e[0]>=0&&o[0]+e[0]=0&&o[0]+e[1]a");s.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,F(t,e,o)}if(a.preventDefault(),Z(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)}}})},U=function(){function t(t){function a(e,t){r.type=i.keyboard.scrollType,r.scrollAmount=i.keyboard.scrollAmount,"stepped"===r.type&&n.tweenRunning||F(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){N(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)-.9*f*d.width();else var h="y",m=Math.abs(c[0].offsetTop)-.9*f*d.height();V(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;V(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).load(function(){W(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)})},F=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?!0:!1;return e&&17>a&&(x="x"===f.dir[0]?s[1]:s[0]),V(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),K(f,"step"),N(t)}var c=t.data(a),u=c.opt,f=c.sequential,h=e("#mCSB_"+c.idx+"_container"),m="stepped"===f.type?!0:!1,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],N(t),ee(n)&&"stepped"===f.type)return;l(m);break;case"off":s(),(m||c.tweenRunning&&f.dir)&&l(!0)}},q=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},Y=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):l.outerHeight(!1),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?te(m)[1]:te(m)[0];case"string":case"number":if(ee(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")&&ee(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?te(m)[1]:te(m)[0]}return e(t).length?"x"===o?te(e(t))[1]:te(e(t))[0]:(l.css(h,t),void u.update.call(null,n[0]))}}},X=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 K(f[0],"autoUpdate")):void o()},j=function(e,t,o){return Math.round(e/t)*t-o},N=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(){J.call(this)})},V=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?q.call(t,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?q.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=j(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),Q(x[0],_,Math.round(b[1]),u[1],n.scrollEasing),(s.tweenRunning||!(0===w&&b[0]>=0||w===S[0]&&b[0]<=S[0]))&&Q(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)}}})}},Q=function(e,t,o,a,n,i,r){function l(){S.stop||(x||m.call(),x=G()-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=G(),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()},G=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()},J=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o=0&&a[0]+te(n)[0]=0&&a[1]+te(n)[1]