text: function discount(){$.each($(".itemProduct ul li").not(".itemProduct ul li.helperComplement"),function(e,t){if(!$(this).find(".dscto").length){var i=$(t).find(".precio .antes").text().substring(3),o=$(t).find(".precio .ahora").text().substring(3),n=i.split(",").join(""),s=o.split(",").join("");if(""!==n){var a=100*(1-Number(s)/Number(n));a%1!=0&&(a=a.toFixed(0)),$(t).find(".contentFlag").append('<p class="flag dscto">'+a+'% <span class="desc-word">dscto </span></p>')}}})}function form_filter_url(){var o=new Object,n="";return $(".search-multiple-navigator fieldset label input:checked").each(function(e,t){var i=$(this).parentsUntil("fieldset").parent().attr("class").match("filtro_(.*)");null!=(i=1<i.length?i[1]:null)&&(null==o[i]&&(o[i]=new Array),o[i].push($(this).val()))}),$.each(o,function(e,t){n+=e+"=";var i="";$.each(t,function(e,t){i+=t+";"}),n+=i.substr(0,i.length-1)+"|"}),""!=n?n.substr(0,n.length-1):""}!function(N){var X={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,ariaLive:!0,ariaHidden:!0,keyboardEnabled:!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",stopAutoOnClick:!1,autoHover:!1,autoDelay:0,autoSlideForOnePage:!1,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,shrinkItems:!1,onSliderLoad:function(){return!0},onSlideBefore:function(){return!0},onSlideAfter:function(){return!0},onSlideNext:function(){return!0},onSlidePrev:function(){return!0},onSliderResize:function(){return!0},onAutoChange:function(){return!0}};N.fn.bxSlider=function(t){if(0===this.length)return this;if(1<this.length)return this.each(function(){N(this).bxSlider(t)}),this;var p={},u=this,o=N(window).width(),n=N(window).height();if(!N(u).data("bxSlider")){var s=function(){N(u).data("bxSlider")||(p.settings=N.extend({},X,t),p.settings.slideWidth=parseInt(p.settings.slideWidth),p.children=u.children(p.settings.slideSelector),p.children.length<p.settings.minSlides&&(p.settings.minSlides=p.children.length),p.children.length<p.settings.maxSlides&&(p.settings.maxSlides=p.children.length),p.settings.randomStart&&(p.settings.startSlide=Math.floor(Math.random()*p.children.length)),p.active={index:p.settings.startSlide},p.carousel=1<p.settings.minSlides||1<p.settings.maxSlides,p.carousel&&(p.settings.preloadImages="all"),p.minThreshold=p.settings.minSlides*p.settings.slideWidth+(p.settings.minSlides-1)*p.settings.slideMargin,p.maxThreshold=p.settings.maxSlides*p.settings.slideWidth+(p.settings.maxSlides-1)*p.settings.slideMargin,p.working=!1,p.controls={},p.interval=null,p.animProp="vertical"===p.settings.mode?"top":"left",p.usingCSS=p.settings.useCSS&&"fade"!==p.settings.mode&&function(){for(var e=document.createElement("div"),t=["WebkitPerspective","MozPerspective","OPerspective","msPerspective"],i=0;i<t.length;i++)if(void 0!==e.style[t[i]])return p.cssPrefix=t[i].replace("Perspective","").toLowerCase(),p.animProp="-"+p.cssPrefix+"-transform",!0;return!1}(),"vertical"===p.settings.mode&&(p.settings.maxSlides=p.settings.minSlides),u.data("origStyle",u.attr("style")),u.children(p.settings.slideSelector).each(function(){N(this).data("origStyle",N(this).attr("style"))}),e())},e=function(){var e=p.children.eq(p.settings.startSlide);u.wrap('<div class="'+p.settings.wrapperClass+'"><div class="bx-viewport"></div></div>'),p.viewport=u.parent(),p.settings.ariaLive&&!p.settings.ticker&&p.viewport.attr("aria-live","polite"),p.loader=N('<div class="bx-loading" />'),p.viewport.prepend(p.loader),u.css({width:"horizontal"===p.settings.mode?1e3*p.children.length+215+"%":"auto",position:"relative"}),p.usingCSS&&p.settings.easing?u.css("-"+p.cssPrefix+"-transition-timing-function",p.settings.easing):p.settings.easing||(p.settings.easing="swing"),p.viewport.css({width:"100%",overflow:"hidden",position:"relative"}),p.viewport.parent().css({maxWidth:l()}),p.children.css({float:"horizontal"===p.settings.mode?"left":"none",listStyle:"none",position:"relative"}),p.children.css("width",d()),"horizontal"===p.settings.mode&&0<p.settings.slideMargin&&p.children.css("marginRight",p.settings.slideMargin),"vertical"===p.settings.mode&&0<p.settings.slideMargin&&p.children.css("marginBottom",p.settings.slideMargin),"fade"===p.settings.mode&&(p.children.css({position:"absolute",zIndex:0,display:"none"}),p.children.eq(p.settings.startSlide).css({zIndex:p.settings.slideZIndex,display:"block"})),p.controls.el=N('<div class="bx-controls" />'),p.settings.captions&&y(),p.active.last=p.settings.startSlide===f()-1,p.settings.video&&u.fitVids(),"none"===p.settings.preloadImages?e=null:("all"===p.settings.preloadImages||p.settings.ticker)&&(e=p.children),p.settings.ticker?p.settings.pager=!1:(p.settings.controls&&x(),p.settings.auto&&p.settings.autoControls&&b(),p.settings.pager&&S(),(p.settings.controls||p.settings.autoControls||p.settings.pager)&&p.viewport.after(p.controls.el)),null===e?r():a(e,r)},a=function(e,t){var i=e.find('img:not([src=""]), iframe').length,o=0;0!==i?e.find('img:not([src=""]), iframe').each(function(){N(this).one("load error",function(){++o===i&&t()}).each(function(){(this.complete||""==this.src)&&N(this).trigger("load")})}):t()},r=function(){if(p.settings.infiniteLoop&&"fade"!==p.settings.mode&&!p.settings.ticker){var e="vertical"===p.settings.mode?p.settings.minSlides:p.settings.maxSlides,t=p.children.slice(0,e).clone(!0).addClass("bx-clone"),i=p.children.slice(-e).clone(!0).addClass("bx-clone");p.settings.ariaHidden&&(t.attr("aria-hidden",!0),i.attr("aria-hidden",!0)),u.append(t).prepend(i)}p.loader.remove(),v(),"vertical"===p.settings.mode&&(p.settings.adaptiveHeight=!0),p.viewport.height(h()),u.redrawSlider(),p.settings.onSliderLoad.call(u,p.active.index),p.initialized=!0,p.settings.responsive&&N(window).on("resize",F),p.settings.auto&&p.settings.autoStart&&(1<f()||p.settings.autoSlideForOnePage)&&O(),p.settings.ticker&&D(),p.settings.pager&&M(p.settings.startSlide),p.settings.controls&&E(),p.settings.touchEnabled&&!p.settings.ticker&&L(),p.settings.keyboardEnabled&&!p.settings.ticker&&N(document).keydown(H)},h=function(){var t=0,e=N();if("vertical"===p.settings.mode||p.settings.adaptiveHeight)if(p.carousel){var o=1===p.settings.moveSlides?p.active.index:p.active.index*g();for(e=p.children.eq(o),i=1;i<=p.settings.maxSlides-1;i++)e=o+i>=p.children.length?e.add(p.children.eq(i-1)):e.add(p.children.eq(o+i))}else e=p.children.eq(p.active.index);else e=p.children;return"vertical"===p.settings.mode?(e.each(function(e){t+=N(this).outerHeight()}),0<p.settings.slideMargin&&(t+=p.settings.slideMargin*(p.settings.minSlides-1))):t=Math.max.apply(Math,e.map(function(){return N(this).outerHeight(!1)}).get()),"border-box"===p.viewport.css("box-sizing")?t+=parseFloat(p.viewport.css("padding-top"))+parseFloat(p.viewport.css("padding-bottom"))+parseFloat(p.viewport.css("border-top-width"))+parseFloat(p.viewport.css("border-bottom-width")):"padding-box"===p.viewport.css("box-sizing")&&(t+=parseFloat(p.viewport.css("padding-top"))+parseFloat(p.viewport.css("padding-bottom"))),t},l=function(){var e="100%";return 0<p.settings.slideWidth&&(e="horizontal"===p.settings.mode?p.settings.maxSlides*p.settings.slideWidth+(p.settings.maxSlides-1)*p.settings.slideMargin:p.settings.slideWidth),e},d=function(){var e=p.settings.slideWidth,t=p.viewport.width();if(0===p.settings.slideWidth||p.settings.slideWidth>t&&!p.carousel||"vertical"===p.settings.mode)e=t;else if(1<p.settings.maxSlides&&"horizontal"===p.settings.mode){if(t>p.maxThreshold)return e;t<p.minThreshold?e=(t-p.settings.slideMargin*(p.settings.minSlides-1))/p.settings.minSlides:p.settings.shrinkItems&&(e=Math.floor((t+p.settings.slideMargin)/Math.ceil((t+p.settings.slideMargin)/(e+p.settings.slideMargin))-p.settings.slideMargin))}return e},c=function(){var e=1,t=null;return"horizontal"===p.settings.mode&&0<p.settings.slideWidth?p.viewport.width()<p.minThreshold?e=p.settings.minSlides:p.viewport.width()>p.maxThreshold?e=p.settings.maxSlides:(t=p.children.first().width()+p.settings.slideMargin,e=Math.floor((p.viewport.width()+p.settings.slideMargin)/t)||1):"vertical"===p.settings.mode&&(e=p.settings.minSlides),e},f=function(){var e=0,t=0,i=0;if(0<p.settings.moveSlides){if(!p.settings.infiniteLoop){for(;t<p.children.length;)++e,t=i+c(),i+=p.settings.moveSlides<=c()?p.settings.moveSlides:c();return i}e=Math.ceil(p.children.length/g())}else e=Math.ceil(p.children.length/c());return e},g=function(){return 0<p.settings.moveSlides&&p.settings.moveSlides<=c()?p.settings.moveSlides:c()},v=function(){var e,t,i;p.children.length>p.settings.maxSlides&&p.active.last&&!p.settings.infiniteLoop?"horizontal"===p.settings.mode?(e=(t=p.children.last()).position(),m(-(e.left-(p.viewport.width()-t.outerWidth())),"reset",0)):"vertical"===p.settings.mode&&(i=p.children.length-p.settings.minSlides,e=p.children.eq(i).position(),m(-e.top,"reset",0)):(e=p.children.eq(p.active.index*g()).position(),p.active.index===f()-1&&(p.active.last=!0),void 0!==e&&("horizontal"===p.settings.mode?m(-e.left,"reset",0):"vertical"===p.settings.mode&&m(-e.top,"reset",0)))},m=function(e,t,i,o){var n,s;p.usingCSS?(s="vertical"===p.settings.mode?"translate3d(0, "+e+"px, 0)":"translate3d("+e+"px, 0, 0)",u.css("-"+p.cssPrefix+"-transition-duration",i/1e3+"s"),"slide"===t?(u.css(p.animProp,s),0!==i?u.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(e){N(e.target).is(u)&&(u.off("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),I())}):I()):"reset"===t?u.css(p.animProp,s):"ticker"===t&&(u.css("-"+p.cssPrefix+"-transition-timing-function","linear"),u.css(p.animProp,s),0!==i?u.on("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(e){N(e.target).is(u)&&(u.off("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd"),m(o.resetValue,"reset",0),B())}):(m(o.resetValue,"reset",0),B()))):((n={})[p.animProp]=e,"slide"===t?u.animate(n,i,p.settings.easing,function(){I()}):"reset"===t?u.css(p.animProp,e):"ticker"===t&&u.animate(n,i,"linear",function(){m(o.resetValue,"reset",0),B()}))},w=function(){for(var e="",t="",i=f(),o=0;o<i;o++)t="",p.settings.buildPager&&N.isFunction(p.settings.buildPager)||p.settings.pagerCustom?(t=p.settings.buildPager(o),p.pagerEl.addClass("bx-custom-pager")):(t=o+1,p.pagerEl.addClass("bx-default-pager")),e+='<div class="bx-pager-item"><a href="" data-slide-index="'+o+'" class="bx-pager-link">'+t+"</a></div>";p.pagerEl.html(e)},S=function(){p.settings.pagerCustom?p.pagerEl=N(p.settings.pagerCustom):(p.pagerEl=N('<div class="bx-pager" />'),p.settings.pagerSelector?N(p.settings.pagerSelector).html(p.pagerEl):p.controls.el.addClass("bx-has-pager").append(p.pagerEl),w()),p.pagerEl.on("click touchend","a",$)},x=function(){p.controls.next=N('<a class="bx-next" href="">'+p.settings.nextText+"</a>"),p.controls.prev=N('<a class="bx-prev" href="">'+p.settings.prevText+"</a>"),p.controls.next.on("click touchend",k),p.controls.prev.on("click touchend",C),p.settings.nextSelector&&N(p.settings.nextSelector).append(p.controls.next),p.settings.prevSelector&&N(p.settings.prevSelector).append(p.controls.prev),p.settings.nextSelector||p.settings.prevSelector||(p.controls.directionEl=N('<div class="bx-controls-direction" />'),p.controls.directionEl.append(p.controls.prev).append(p.controls.next),p.controls.el.addClass("bx-has-controls-direction").append(p.controls.directionEl))},b=function(){p.controls.start=N('<div class="bx-controls-auto-item"><a class="bx-start" href="">'+p.settings.startText+"</a></div>"),p.controls.stop=N('<div class="bx-controls-auto-item"><a class="bx-stop" href="">'+p.settings.stopText+"</a></div>"),p.controls.autoEl=N('<div class="bx-controls-auto" />'),p.controls.autoEl.on("click",".bx-start",T),p.controls.autoEl.on("click",".bx-stop",_),p.settings.autoControlsCombine?p.controls.autoEl.append(p.controls.start):p.controls.autoEl.append(p.controls.start).append(p.controls.stop),p.settings.autoControlsSelector?N(p.settings.autoControlsSelector).html(p.controls.autoEl):p.controls.el.addClass("bx-has-controls-auto").append(p.controls.autoEl),A(p.settings.autoStart?"stop":"start")},y=function(){p.children.each(function(e){var t=N(this).find("img:first").attr("title");void 0!==t&&(""+t).length&&N(this).append('<div class="bx-caption"><span>'+t+"</span></div>")})},k=function(e){e.preventDefault(),p.controls.el.hasClass("disabled")||(p.settings.auto&&p.settings.stopAutoOnClick&&u.stopAuto(),u.goToNextSlide())},C=function(e){e.preventDefault(),p.controls.el.hasClass("disabled")||(p.settings.auto&&p.settings.stopAutoOnClick&&u.stopAuto(),u.goToPrevSlide())},T=function(e){u.startAuto(),e.preventDefault()},_=function(e){u.stopAuto(),e.preventDefault()},$=function(e){var t,i;e.preventDefault(),p.controls.el.hasClass("disabled")||(p.settings.auto&&p.settings.stopAutoOnClick&&u.stopAuto(),void 0!==(t=N(e.currentTarget)).attr("data-slide-index")&&(i=parseInt(t.attr("data-slide-index")))!==p.active.index&&u.goToSlide(i))},M=function(i){var e=p.children.length;if("short"===p.settings.pagerType)return 1<p.settings.maxSlides&&(e=Math.ceil(p.children.length/p.settings.maxSlides)),void p.pagerEl.html(i+1+p.settings.pagerShortSeparator+e);p.pagerEl.find("a").removeClass("active"),p.pagerEl.each(function(e,t){N(t).find("a").eq(i).addClass("active")})},I=function(){if(p.settings.infiniteLoop){var e="";0===p.active.index?e=p.children.eq(0).position():p.active.index===f()-1&&p.carousel?e=p.children.eq((f()-1)*g()).position():p.active.index===p.children.length-1&&(e=p.children.eq(p.children.length-1).position()),e&&("horizontal"===p.settings.mode?m(-e.left,"reset",0):"vertical"===p.settings.mode&&m(-e.top,"reset",0))}p.working=!1,p.settings.onSlideAfter.call(u,p.children.eq(p.active.index),p.oldIndex,p.active.index)},A=function(e){p.settings.autoControlsCombine?p.controls.autoEl.html(p.controls[e]):(p.controls.autoEl.find("a").removeClass("active"),p.controls.autoEl.find("a:not(.bx-"+e+")").addClass("active"))},E=function(){1===f()?(p.controls.prev.addClass("disabled"),p.controls.next.addClass("disabled")):!p.settings.infiniteLoop&&p.settings.hideControlOnEnd&&(0===p.active.index?(p.controls.prev.addClass("disabled"),p.controls.next.removeClass("disabled")):p.active.index===f()-1?(p.controls.next.addClass("disabled"),p.controls.prev.removeClass("disabled")):(p.controls.prev.removeClass("disabled"),p.controls.next.removeClass("disabled")))},P=function(){u.startAuto()},z=function(){u.stopAuto()},O=function(){0<p.settings.autoDelay?setTimeout(u.startAuto,p.settings.autoDelay):(u.startAuto(),N(window).focus(P).blur(z)),p.settings.autoHover&&u.hover(function(){p.interval&&(u.stopAuto(!0),p.autoPaused=!0)},function(){p.autoPaused&&(u.startAuto(!0),p.autoPaused=null)})},D=function(){var e,t,i,o,n,s,a,r,l=0;"next"===p.settings.autoDirection?u.append(p.children.clone().addClass("bx-clone")):(u.prepend(p.children.clone().addClass("bx-clone")),e=p.children.first().position(),l="horizontal"===p.settings.mode?-e.left:-e.top),m(l,"reset",0),p.settings.pager=!1,p.settings.controls=!1,p.settings.autoControls=!1,p.settings.tickerHover&&(p.usingCSS?(o="horizontal"===p.settings.mode?4:5,p.viewport.hover(function(){t=u.css("-"+p.cssPrefix+"-transform"),i=parseFloat(t.split(",")[o]),m(i,"reset",0)},function(){r=0,p.children.each(function(e){r+="horizontal"===p.settings.mode?N(this).outerWidth(!0):N(this).outerHeight(!0)}),n=p.settings.speed/r,s="horizontal"===p.settings.mode?"left":"top",a=n*(r-Math.abs(parseInt(i))),B(a)})):p.viewport.hover(function(){u.stop()},function(){r=0,p.children.each(function(e){r+="horizontal"===p.settings.mode?N(this).outerWidth(!0):N(this).outerHeight(!0)}),n=p.settings.speed/r,s="horizontal"===p.settings.mode?"left":"top",a=n*(r-Math.abs(parseInt(u.css(s)))),B(a)})),B()},B=function(e){var t,i,o=e||p.settings.speed,n={left:0,top:0},s={left:0,top:0};"next"===p.settings.autoDirection?n=u.find(".bx-clone").first().position():s=p.children.first().position(),t="horizontal"===p.settings.mode?-n.left:-n.top,i="horizontal"===p.settings.mode?-s.left:-s.top,m(t,"ticker",o,{resetValue:i})},H=function(e){var t,i,o,n,s=document.activeElement.tagName.toLowerCase();if(null==new RegExp(s,["i"]).exec("input|textarea")&&(t=u,i=N(window),o={top:i.scrollTop(),left:i.scrollLeft()},n=t.offset(),o.right=o.left+i.width(),o.bottom=o.top+i.height(),n.right=n.left+t.outerWidth(),n.bottom=n.top+t.outerHeight(),!(o.right<n.left||o.left>n.right||o.bottom<n.top||o.top>n.bottom))){if(39===e.keyCode)return k(e),!1;if(37===e.keyCode)return C(e),!1}},L=function(){p.touch={start:{x:0,y:0},end:{x:0,y:0}},p.viewport.on("touchstart MSPointerDown pointerdown",j),p.viewport.on("click",".bxslider a",function(e){p.viewport.hasClass("click-disabled")&&(e.preventDefault(),p.viewport.removeClass("click-disabled"))})},j=function(e){if("touchstart"===e.type||0===e.button)if(e.preventDefault(),p.controls.el.addClass("disabled"),p.working)p.controls.el.removeClass("disabled");else{p.touch.originalPos=u.position();var t=e.originalEvent,i=void 0!==t.changedTouches?t.changedTouches:[t];if("function"==typeof PointerEvent&&void 0===t.pointerId)return;p.touch.start.x=i[0].pageX,p.touch.start.y=i[0].pageY,p.viewport.get(0).setPointerCapture&&(p.pointerId=t.pointerId,p.viewport.get(0).setPointerCapture(p.pointerId)),p.originalClickTarget=t.originalTarget||t.target,p.originalClickButton=t.button,p.originalClickButtons=t.buttons,p.originalEventType=t.type,p.hasMove=!1,p.viewport.on("touchmove MSPointerMove pointermove",q),p.viewport.on("touchend MSPointerUp pointerup",R),p.viewport.on("MSPointerCancel pointercancel",W)}},W=function(e){e.preventDefault(),m(p.touch.originalPos.left,"reset",0),p.controls.el.removeClass("disabled"),p.viewport.off("MSPointerCancel pointercancel",W),p.viewport.off("touchmove MSPointerMove pointermove",q),p.viewport.off("touchend MSPointerUp pointerup",R),p.viewport.get(0).releasePointerCapture&&p.viewport.get(0).releasePointerCapture(p.pointerId)},q=function(e){var t=e.originalEvent,i=void 0!==t.changedTouches?t.changedTouches:[t],o=Math.abs(i[0].pageX-p.touch.start.x),n=Math.abs(i[0].pageY-p.touch.start.y),s=0,a=0;p.hasMove=!0,n<3*o&&p.settings.preventDefaultSwipeX?e.preventDefault():o<3*n&&p.settings.preventDefaultSwipeY&&e.preventDefault(),"touchmove"!==e.type&&e.preventDefault(),"fade"!==p.settings.mode&&p.settings.oneToOneTouch&&("horizontal"===p.settings.mode?(a=i[0].pageX-p.touch.start.x,s=p.touch.originalPos.left+a):(a=i[0].pageY-p.touch.start.y,s=p.touch.originalPos.top+a),m(s,"reset",0))},R=function(e){e.preventDefault(),p.viewport.off("touchmove MSPointerMove pointermove",q),p.controls.el.removeClass("disabled");var t=e.originalEvent,i=void 0!==t.changedTouches?t.changedTouches:[t],o=0,n=0;p.touch.end.x=i[0].pageX,p.touch.end.y=i[0].pageY,"fade"===p.settings.mode?(n=Math.abs(p.touch.start.x-p.touch.end.x))>=p.settings.swipeThreshold&&(p.touch.start.x>p.touch.end.x?u.goToNextSlide():u.goToPrevSlide(),u.stopAuto()):("horizontal"===p.settings.mode?(n=p.touch.end.x-p.touch.start.x,o=p.touch.originalPos.left):(n=p.touch.end.y-p.touch.start.y,o=p.touch.originalPos.top),!p.settings.infiniteLoop&&(0===p.active.index&&0<n||p.active.last&&n<0)?m(o,"reset",200):Math.abs(n)>=p.settings.swipeThreshold?(n<0?u.goToNextSlide():u.goToPrevSlide(),u.stopAuto()):m(o,"reset",200)),p.viewport.off("touchend MSPointerUp pointerup",R),p.viewport.get(0).releasePointerCapture&&p.viewport.get(0).releasePointerCapture(p.pointerId),!1!==p.hasMove||0!==p.originalClickButton&&"touchstart"!==p.originalEventType||N(p.originalClickTarget).trigger({type:"click",button:p.originalClickButton,buttons:p.originalClickButtons})},F=function(e){if(p.initialized)if(p.working)window.setTimeout(F,10);else{var t=N(window).width(),i=N(window).height();o===t&&n===i||(o=t,n=i,u.redrawSlider(),p.settings.onSliderResize.call(u,p.active.index))}},U=function(e){var t=c();p.settings.ariaHidden&&!p.settings.ticker&&(p.children.attr("aria-hidden","true"),p.children.slice(e,e+t).attr("aria-hidden","false"))};return u.goToSlide=function(e,t){var i,o,n,s,a,r=!0,l=0,d={left:0,top:0},c=null;if(p.oldIndex=p.active.index,p.active.index=(a=e)<0?p.settings.infiniteLoop?f()-1:p.active.index:a>=f()?p.settings.infiniteLoop?0:p.active.index:a,!p.working&&p.active.index!==p.oldIndex){if(p.working=!0,void 0!==(r=p.settings.onSlideBefore.call(u,p.children.eq(p.active.index),p.oldIndex,p.active.index))&&!r)return p.active.index=p.oldIndex,void(p.working=!1);"next"===t?p.settings.onSlideNext.call(u,p.children.eq(p.active.index),p.oldIndex,p.active.index)||(r=!1):"prev"===t&&(p.settings.onSlidePrev.call(u,p.children.eq(p.active.index),p.oldIndex,p.active.index)||(r=!1)),p.active.last=p.active.index>=f()-1,(p.settings.pager||p.settings.pagerCustom)&&M(p.active.index),p.settings.controls&&E(),"fade"===p.settings.mode?(p.settings.adaptiveHeight&&p.viewport.height()!==h()&&p.viewport.animate({height:h()},p.settings.adaptiveHeightSpeed),p.children.filter(":visible").fadeOut(p.settings.speed).css({zIndex:0}),p.children.eq(p.active.index).css("zIndex",p.settings.slideZIndex+1).fadeIn(p.settings.speed,function(){N(this).css("zIndex",p.settings.slideZIndex),I()})):(p.settings.adaptiveHeight&&p.viewport.height()!==h()&&p.viewport.animate({height:h()},p.settings.adaptiveHeightSpeed),!p.settings.infiniteLoop&&p.carousel&&p.active.last?"horizontal"===p.settings.mode?(d=(c=p.children.eq(p.children.length-1)).position(),l=p.viewport.width()-c.outerWidth()):(i=p.children.length-p.settings.minSlides,d=p.children.eq(i).position()):p.carousel&&p.active.last&&"prev"===t?(o=1===p.settings.moveSlides?p.settings.maxSlides-g():(f()-1)*g()-(p.children.length-p.settings.maxSlides),d=(c=u.children(".bx-clone").eq(o)).position()):"next"===t&&0===p.active.index?(d=u.find("> .bx-clone").eq(p.settings.maxSlides).position(),p.active.last=!1):0<=e&&(s=e*parseInt(g()),d=p.children.eq(s).position()),void 0!==d&&(n="horizontal"===p.settings.mode?-(d.left-l):-d.top,m(n,"slide",p.settings.speed)),p.working=!1),p.settings.ariaHidden&&U(p.active.index*g())}},u.goToNextSlide=function(){if((p.settings.infiniteLoop||!p.active.last)&&!0!==p.working){var e=parseInt(p.active.index)+1;u.goToSlide(e,"next")}},u.goToPrevSlide=function(){if((p.settings.infiniteLoop||0!==p.active.index)&&!0!==p.working){var e=parseInt(p.active.index)-1;u.goToSlide(e,"prev")}},u.startAuto=function(e){p.interval||(p.interval=setInterval(function(){"next"===p.settings.autoDirection?u.goToNextSlide():u.goToPrevSlide()},p.settings.pause),p.settings.onAutoChange.call(u,!0),p.settings.autoControls&&!0!==e&&A("stop"))},u.stopAuto=function(e){p.autoPaused&&(p.autoPaused=!1),p.interval&&(clearInterval(p.interval),p.interval=null,p.settings.onAutoChange.call(u,!1),p.settings.autoControls&&!0!==e&&A("start"))},u.getCurrentSlide=function(){return p.active.index},u.getCurrentSlideElement=function(){return p.children.eq(p.active.index)},u.getSlideElement=function(e){return p.children.eq(e)},u.getSlideCount=function(){return p.children.length},u.isWorking=function(){return p.working},u.redrawSlider=function(){p.children.add(u.find(".bx-clone")).outerWidth(d()),p.viewport.css("height",h()),p.settings.ticker||v(),p.active.last&&(p.active.index=f()-1),p.active.index>=f()&&(p.active.last=!0),p.settings.pager&&!p.settings.pagerCustom&&(w(),M(p.active.index)),p.settings.ariaHidden&&U(p.active.index*g())},u.destroySlider=function(){p.initialized&&(p.initialized=!1,N(".bx-clone",this).remove(),p.children.each(function(){void 0!==N(this).data("origStyle")?N(this).attr("style",N(this).data("origStyle")):N(this).removeAttr("style")}),void 0!==N(this).data("origStyle")?this.attr("style",N(this).data("origStyle")):N(this).removeAttr("style"),N(this).unwrap().unwrap(),p.controls.el&&p.controls.el.remove(),p.controls.next&&p.controls.next.remove(),p.controls.prev&&p.controls.prev.remove(),p.pagerEl&&p.settings.controls&&!p.settings.pagerCustom&&p.pagerEl.remove(),N(".bx-caption",this).remove(),p.controls.autoEl&&p.controls.autoEl.remove(),clearInterval(p.interval),p.settings.responsive&&N(window).off("resize",F),p.settings.keyboardEnabled&&N(document).off("keydown",H),N(this).removeData("bxSlider"),N(window).off("blur",z).off("focus",P))},u.reloadSlider=function(e){void 0!==e&&(t=e),u.destroySlider(),s(),N(u).data("bxSlider",this)},s(),N(u).data("bxSlider",this),this}}}(jQuery),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}(function(d){"use strict";var n,a=window.Slick||{};(n=0,a=function(e,t){var i,o=this;o.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:d(e),appendDots:d(e),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,t){return d('<button type="button" />').text(t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},o.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},d.extend(o,o.initials),o.activeBreakpoint=null,o.animType=null,o.animProp=null,o.breakpoints=[],o.breakpointSettings=[],o.cssTransitions=!1,o.focussed=!1,o.interrupted=!1,o.hidden="hidden",o.paused=!0,o.positionProp=null,o.respondTo=null,o.rowCount=1,o.shouldClick=!0,o.$slider=d(e),o.$slidesCache=null,o.transformType=null,o.transitionType=null,o.visibilityChange="visibilitychange",o.windowWidth=0,o.windowTimer=null,i=d(e).data("slick")||{},o.options=d.extend({},o.defaults,t,i),o.currentSlide=o.options.initialSlide,o.originalSettings=o.options,void 0!==document.mozHidden?(o.hidden="mozHidden",o.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(o.hidden="webkitHidden",o.visibilityChange="webkitvisibilitychange"),o.autoPlay=d.proxy(o.autoPlay,o),o.autoPlayClear=d.proxy(o.autoPlayClear,o),o.autoPlayIterator=d.proxy(o.autoPlayIterator,o),o.changeSlide=d.proxy(o.changeSlide,o),o.clickHandler=d.proxy(o.clickHandler,o),o.selectHandler=d.proxy(o.selectHandler,o),o.setPosition=d.proxy(o.setPosition,o),o.swipeHandler=d.proxy(o.swipeHandler,o),o.dragHandler=d.proxy(o.dragHandler,o),o.keyHandler=d.proxy(o.keyHandler,o),o.instanceUid=n++,o.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,o.registerBreakpoints(),o.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},a.prototype.addSlide=a.prototype.slickAdd=function(e,t,i){var o=this;if("boolean"==typeof t)i=t,t=null;else if(t<0||t>=o.slideCount)return!1;o.unload(),"number"==typeof t?0===t&&0===o.$slides.length?d(e).appendTo(o.$slideTrack):i?d(e).insertBefore(o.$slides.eq(t)):d(e).insertAfter(o.$slides.eq(t)):!0===i?d(e).prependTo(o.$slideTrack):d(e).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each(function(e,t){d(t).attr("data-slick-index",e)}),o.$slidesCache=o.$slides,o.reinit()},a.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},a.prototype.animateSlide=function(e,t){var i={},o=this;o.animateHeight(),!0===o.options.rtl&&!1===o.options.vertical&&(e=-e),!1===o.transformsEnabled?!1===o.options.vertical?o.$slideTrack.animate({left:e},o.options.speed,o.options.easing,t):o.$slideTrack.animate({top:e},o.options.speed,o.options.easing,t):!1===o.cssTransitions?(!0===o.options.rtl&&(o.currentLeft=-o.currentLeft),d({animStart:o.currentLeft}).animate({animStart:e},{duration:o.options.speed,easing:o.options.easing,step:function(e){e=Math.ceil(e),!1===o.options.vertical?i[o.animType]="translate("+e+"px, 0px)":i[o.animType]="translate(0px,"+e+"px)",o.$slideTrack.css(i)},complete:function(){t&&t.call()}})):(o.applyTransition(),e=Math.ceil(e),!1===o.options.vertical?i[o.animType]="translate3d("+e+"px, 0px, 0px)":i[o.animType]="translate3d(0px,"+e+"px, 0px)",o.$slideTrack.css(i),t&&setTimeout(function(){o.disableTransition(),t.call()},o.options.speed))},a.prototype.getNavTarget=function(){var e=this.options.asNavFor;return e&&null!==e&&(e=d(e).not(this.$slider)),e},a.prototype.asNavFor=function(t){var e=this.getNavTarget();null!==e&&"object"==typeof e&&e.each(function(){var e=d(this).slick("getSlick");e.unslicked||e.slideHandler(t,!0)})},a.prototype.applyTransition=function(e){var t=this,i={};!1===t.options.fade?i[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:i[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},a.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},a.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},a.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0&&(e.direction=1))),e.slideHandler(t))},a.prototype.buildArrows=function(){var e=this;!0===e.options.arrows&&(e.$prevArrow=d(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=d(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),!0!==e.options.infinite&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},a.prototype.buildDots=function(){var e,t,i=this;if(!0===i.options.dots){for(i.$slider.addClass("slick-dotted"),t=d("<ul />").addClass(i.options.dotsClass),e=0;e<=i.getDotCount();e+=1)t.append(d("<li />").append(i.options.customPaging.call(this,i,e)));i.$dots=t.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active")}},a.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,t){d(t).attr("data-slick-index",e).data("originalStyling",d(t).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?d('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),!0!==e.options.centerMode&&!0!==e.options.swipeToSlide||(e.options.slidesToScroll=1),d("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),!0===e.options.draggable&&e.$list.addClass("draggable")},a.prototype.buildRows=function(){var e,t,i,o,n,s,a,r=this;if(o=document.createDocumentFragment(),s=r.$slider.children(),1<r.options.rows){for(a=r.options.slidesPerRow*r.options.rows,n=Math.ceil(s.length/a),e=0;e<n;e++){var l=document.createElement("div");for(t=0;t<r.options.rows;t++){var d=document.createElement("div");for(i=0;i<r.options.slidesPerRow;i++){var c=e*a+(t*r.options.slidesPerRow+i);s.get(c)&&d.appendChild(s.get(c))}l.appendChild(d)}o.appendChild(l)}r.$slider.empty().append(o),r.$slider.children().children().children().css({width:100/r.options.slidesPerRow+"%",display:"inline-block"})}},a.prototype.checkResponsive=function(e,t){var i,o,n,s=this,a=!1,r=s.$slider.width(),l=window.innerWidth||d(window).width();if("window"===s.respondTo?n=l:"slider"===s.respondTo?n=r:"min"===s.respondTo&&(n=Math.min(l,r)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){for(i in o=null,s.breakpoints)s.breakpoints.hasOwnProperty(i)&&(!1===s.originalSettings.mobileFirst?n<s.breakpoints[i]&&(o=s.breakpoints[i]):n>s.breakpoints[i]&&(o=s.breakpoints[i]));null!==o?null!==s.activeBreakpoint?(o!==s.activeBreakpoint||t)&&(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=d.extend({},s.originalSettings,s.breakpointSettings[o]),!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),a=o):(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=d.extend({},s.originalSettings,s.breakpointSettings[o]),!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e)),a=o):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,!0===e&&(s.currentSlide=s.options.initialSlide),s.refresh(e),a=o),e||!1===a||s.$slider.trigger("breakpoint",[s,a])}},a.prototype.changeSlide=function(e,t){var i,o,n=this,s=d(e.currentTarget);switch(s.is("a")&&e.preventDefault(),s.is("li")||(s=s.closest("li")),i=n.slideCount%n.options.slidesToScroll!=0?0:(n.slideCount-n.currentSlide)%n.options.slidesToScroll,e.data.message){case"previous":o=0===i?n.options.slidesToScroll:n.options.slidesToShow-i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide-o,!1,t);break;case"next":o=0===i?n.options.slidesToScroll:i,n.slideCount>n.options.slidesToShow&&n.slideHandler(n.currentSlide+o,!1,t);break;case"index":var a=0===e.data.index?0:e.data.index||s.index()*n.options.slidesToScroll;n.slideHandler(n.checkNavigable(a),!1,t),s.children().trigger("focus");break;default:return}},a.prototype.checkNavigable=function(e){var t,i;if(i=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var o in t){if(e<t[o]){e=i;break}i=t[o]}return e},a.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(d("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",d.proxy(e.interrupt,e,!0)).off("mouseleave.slick",d.proxy(e.interrupt,e,!1)),!0===e.options.accessibility&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),d(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),!0===e.options.accessibility&&e.$list.off("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&d(e.$slideTrack).children().off("click.slick",e.selectHandler),d(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),d(window).off("resize.slick.slick-"+e.instanceUid,e.resize),d("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),d(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},a.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",d.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",d.proxy(e.interrupt,e,!1))},a.prototype.cleanUpRows=function(){var e;1<this.options.rows&&((e=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(e))},a.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},a.prototype.destroy=function(e){var t=this;t.autoPlayClear(),t.touchObject={},t.cleanUpEvents(),d(".slick-cloned",t.$slider).detach(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.$prevArrow.length&&(t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove()),t.$nextArrow&&t.$nextArrow.length&&(t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove()),t.$slides&&(t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){d(this).attr("style",d(this).data("originalStyling"))}),t.$slideTrack.children(this.options.slide).detach(),t.$slideTrack.detach(),t.$list.detach(),t.$slider.append(t.$slides)),t.cleanUpRows(),t.$slider.removeClass("slick-slider"),t.$slider.removeClass("slick-initialized"),t.$slider.removeClass("slick-dotted"),t.unslicked=!0,e||t.$slider.trigger("destroy",[t])},a.prototype.disableTransition=function(e){var t={};t[this.transitionType]="",!1===this.options.fade?this.$slideTrack.css(t):this.$slides.eq(e).css(t)},a.prototype.fadeSlide=function(e,t){var i=this;!1===i.cssTransitions?(i.$slides.eq(e).css({zIndex:i.options.zIndex}),i.$slides.eq(e).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(e),i.$slides.eq(e).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(e),t.call()},i.options.speed))},a.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},a.prototype.filterSlides=a.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},a.prototype.focusHandler=function(){var i=this;i.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(e){e.stopImmediatePropagation();var t=d(this);setTimeout(function(){i.options.pauseOnFocus&&(i.focussed=t.is(":focus"),i.autoPlay())},0)})},a.prototype.getCurrent=a.prototype.slickCurrentSlide=function(){return this.currentSlide},a.prototype.getDotCount=function(){var e=this,t=0,i=0,o=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++o;else for(;t<e.slideCount;)++o,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)o=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++o,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else o=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return o-1},a.prototype.getLeft=function(e){var t,i,o,n,s=this,a=0;return s.slideOffset=0,i=s.$slides.first().outerHeight(!0),!0===s.options.infinite?(s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideWidth*s.options.slidesToShow*-1,n=-1,!0===s.options.vertical&&!0===s.options.centerMode&&(2===s.options.slidesToShow?n=-1.5:1===s.options.slidesToShow&&(n=-2)),a=i*s.options.slidesToShow*n),s.slideCount%s.options.slidesToScroll!=0&&e+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(e>s.slideCount?(s.slideOffset=(s.options.slidesToShow-(e-s.slideCount))*s.slideWidth*-1,a=(s.options.slidesToShow-(e-s.slideCount))*i*-1):(s.slideOffset=s.slideCount%s.options.slidesToScroll*s.slideWidth*-1,a=s.slideCount%s.options.slidesToScroll*i*-1))):e+s.options.slidesToShow>s.slideCount&&(s.slideOffset=(e+s.options.slidesToShow-s.slideCount)*s.slideWidth,a=(e+s.options.slidesToShow-s.slideCount)*i),s.slideCount<=s.options.slidesToShow&&(a=s.slideOffset=0),!0===s.options.centerMode&&s.slideCount<=s.options.slidesToShow?s.slideOffset=s.slideWidth*Math.floor(s.options.slidesToShow)/2-s.slideWidth*s.slideCount/2:!0===s.options.centerMode&&!0===s.options.infinite?s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)-s.slideWidth:!0===s.options.centerMode&&(s.slideOffset=0,s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)),t=!1===s.options.vertical?e*s.slideWidth*-1+s.slideOffset:e*i*-1+a,!0===s.options.variableWidth&&(o=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(e):s.$slideTrack.children(".slick-slide").eq(e+s.options.slidesToShow),t=!0===s.options.rtl?o[0]?-1*(s.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,!0===s.options.centerMode&&(o=s.slideCount<=s.options.slidesToShow||!1===s.options.infinite?s.$slideTrack.children(".slick-slide").eq(e):s.$slideTrack.children(".slick-slide").eq(e+s.options.slidesToShow+1),t=!0===s.options.rtl?o[0]?-1*(s.$slideTrack.width()-o[0].offsetLeft-o.width()):0:o[0]?-1*o[0].offsetLeft:0,t+=(s.$list.width()-o.outerWidth())/2)),t},a.prototype.getOption=a.prototype.slickGetOption=function(e){return this.options[e]},a.prototype.getNavigableIndexes=function(){var e,t=this,i=0,o=0,n=[];for(!1===t.options.infinite?e=t.slideCount:(i=-1*t.options.slidesToScroll,o=-1*t.options.slidesToScroll,e=2*t.slideCount);i<e;)n.push(i),i=o+t.options.slidesToScroll,o+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return n},a.prototype.getSlick=function(){return this},a.prototype.getSlideCount=function(){var i,o,n=this;return o=!0===n.options.centerMode?n.slideWidth*Math.floor(n.options.slidesToShow/2):0,!0===n.options.swipeToSlide?(n.$slideTrack.find(".slick-slide").each(function(e,t){if(t.offsetLeft-o+d(t).outerWidth()/2>-1*n.swipeLeft)return i=t,!1}),Math.abs(d(i).attr("data-slick-index")-n.currentSlide)||1):n.options.slidesToScroll},a.prototype.goTo=a.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},a.prototype.init=function(e){var t=this;d(t.$slider).hasClass("slick-initialized")||(d(t.$slider).addClass("slick-initialized"),t.buildRows(),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.updateArrows(),t.updateDots(),t.checkResponsive(!0),t.focusHandler()),e&&t.$slider.trigger("init",[t]),!0===t.options.accessibility&&t.initADA(),t.options.autoplay&&(t.paused=!1,t.autoPlay())},a.prototype.initADA=function(){var i=this,o=Math.ceil(i.slideCount/i.options.slidesToShow),n=i.getNavigableIndexes().filter(function(e){return 0<=e&&e<i.slideCount});i.$slides.add(i.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==i.$dots&&(i.$slides.not(i.$slideTrack.find(".slick-cloned")).each(function(e){var t=n.indexOf(e);d(this).attr({role:"tabpanel",id:"slick-slide"+i.instanceUid+e,tabindex:-1}),-1!==t&&d(this).attr({"aria-describedby":"slick-slide-control"+i.instanceUid+t})}),i.$dots.attr("role","tablist").find("li").each(function(e){var t=n[e];d(this).attr({role:"presentation"}),d(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+i.instanceUid+e,"aria-controls":"slick-slide"+i.instanceUid+t,"aria-label":e+1+" of "+o,"aria-selected":null,tabindex:"-1"})}).eq(i.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var e=i.currentSlide,t=e+i.options.slidesToShow;e<t;e++)i.$slides.eq(e).attr("tabindex",0);i.activateADA()},a.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},a.prototype.initDotEvents=function(){var e=this;!0===e.options.dots&&(d("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),!0===e.options.accessibility&&e.$dots.on("keydown.slick",e.keyHandler)),!0===e.options.dots&&!0===e.options.pauseOnDotsHover&&d("li",e.$dots).on("mouseenter.slick",d.proxy(e.interrupt,e,!0)).on("mouseleave.slick",d.proxy(e.interrupt,e,!1))},a.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",d.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",d.proxy(e.interrupt,e,!1)))},a.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),d(document).on(e.visibilityChange,d.proxy(e.visibility,e)),!0===e.options.accessibility&&e.$list.on("keydown.slick",e.keyHandler),!0===e.options.focusOnSelect&&d(e.$slideTrack).children().on("click.slick",e.selectHandler),d(window).on("orientationchange.slick.slick-"+e.instanceUid,d.proxy(e.orientationChange,e)),d(window).on("resize.slick.slick-"+e.instanceUid,d.proxy(e.resize,e)),d("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),d(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),d(e.setPosition)},a.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},a.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},a.prototype.lazyLoad=function(){function e(e){d("img[data-lazy]",e).each(function(){var e=d(this),t=d(this).attr("data-lazy"),i=d(this).attr("data-srcset"),o=d(this).attr("data-sizes")||s.$slider.attr("data-sizes"),n=document.createElement("img");n.onload=function(){e.animate({opacity:0},100,function(){i&&(e.attr("srcset",i),o&&e.attr("sizes",o)),e.attr("src",t).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),s.$slider.trigger("lazyLoaded",[s,e,t])})},n.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,e,t])},n.src=t})}var t,i,o,s=this;if(!0===s.options.centerMode?!0===s.options.infinite?o=(i=s.currentSlide+(s.options.slidesToShow/2+1))+s.options.slidesToShow+2:(i=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),o=s.options.slidesToShow/2+1+2+s.currentSlide):(i=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide,o=Math.ceil(i+s.options.slidesToShow),!0===s.options.fade&&(0<i&&i--,o<=s.slideCount&&o++)),t=s.$slider.find(".slick-slide").slice(i,o),"anticipated"===s.options.lazyLoad)for(var n=i-1,a=o,r=s.$slider.find(".slick-slide"),l=0;l<s.options.slidesToScroll;l++)n<0&&(n=s.slideCount-1),t=(t=t.add(r.eq(n))).add(r.eq(a)),n--,a++;e(t),s.slideCount<=s.options.slidesToShow?e(s.$slider.find(".slick-slide")):s.currentSlide>=s.slideCount-s.options.slidesToShow?e(s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow)):0===s.currentSlide&&e(s.$slider.find(".slick-cloned").slice(-1*s.options.slidesToShow))},a.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},a.prototype.next=a.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},a.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},a.prototype.pause=a.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},a.prototype.play=a.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},a.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&(t.initADA(),t.options.focusOnChange&&d(t.$slides.get(t.currentSlide)).attr("tabindex",0).focus()))},a.prototype.prev=a.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},a.prototype.preventDefault=function(e){e.preventDefault()},a.prototype.progressiveLazyLoad=function(e){e=e||1;var t,i,o,n,s,a=this,r=d("img[data-lazy]",a.$slider);r.length?(t=r.first(),i=t.attr("data-lazy"),o=t.attr("data-srcset"),n=t.attr("data-sizes")||a.$slider.attr("data-sizes"),(s=document.createElement("img")).onload=function(){o&&(t.attr("srcset",o),n&&t.attr("sizes",n)),t.attr("src",i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,t,i]),a.progressiveLazyLoad()},s.onerror=function(){e<3?setTimeout(function(){a.progressiveLazyLoad(e+1)},500):(t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,t,i]),a.progressiveLazyLoad())},s.src=i):a.$slider.trigger("allImagesLoaded",[a])},a.prototype.refresh=function(e){var t,i,o=this;i=o.slideCount-o.options.slidesToShow,!o.options.infinite&&o.currentSlide>i&&(o.currentSlide=i),o.slideCount<=o.options.slidesToShow&&(o.currentSlide=0),t=o.currentSlide,o.destroy(!0),d.extend(o,o.initials,{currentSlide:t}),o.init(),e||o.changeSlide({data:{message:"index",index:t}},!1)},a.prototype.registerBreakpoints=function(){var e,t,i,o=this,n=o.options.responsive||null;if("array"===d.type(n)&&n.length){for(e in o.respondTo=o.options.respondTo||"window",n)if(i=o.breakpoints.length-1,n.hasOwnProperty(e)){for(t=n[e].breakpoint;0<=i;)o.breakpoints[i]&&o.breakpoints[i]===t&&o.breakpoints.splice(i,1),i--;o.breakpoints.push(t),o.breakpointSettings[t]=n[e].settings}o.breakpoints.sort(function(e,t){return o.options.mobileFirst?e-t:t-e})}},a.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),!0===e.options.focusOnSelect&&d(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},a.prototype.resize=function(){var e=this;d(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=d(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},a.prototype.removeSlide=a.prototype.slickRemove=function(e,t,i){var o=this;if(e="boolean"==typeof e?!0===(t=e)?0:o.slideCount-1:!0===t?--e:e,o.slideCount<1||e<0||e>o.slideCount-1)return!1;o.unload(),!0===i?o.$slideTrack.children().remove():o.$slideTrack.children(this.options.slide).eq(e).remove(),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slidesCache=o.$slides,o.reinit()},a.prototype.setCSS=function(e){var t,i,o=this,n={};!0===o.options.rtl&&(e=-e),t="left"==o.positionProp?Math.ceil(e)+"px":"0px",i="top"==o.positionProp?Math.ceil(e)+"px":"0px",n[o.positionProp]=e,!1===o.transformsEnabled||(!(n={})===o.cssTransitions?n[o.animType]="translate("+t+", "+i+")":n[o.animType]="translate3d("+t+", "+i+", 0px)"),o.$slideTrack.css(n)},a.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},a.prototype.setFade=function(){var i,o=this;o.$slides.each(function(e,t){i=o.slideWidth*e*-1,!0===o.options.rtl?d(t).css({position:"relative",right:i,top:0,zIndex:o.options.zIndex-2,opacity:0}):d(t).css({position:"relative",left:i,top:0,zIndex:o.options.zIndex-2,opacity:0})}),o.$slides.eq(o.currentSlide).css({zIndex:o.options.zIndex-1,opacity:1})},a.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},a.prototype.setOption=a.prototype.slickSetOption=function(){var e,t,i,o,n,s=this,a=!1;if("object"===d.type(arguments[0])?(i=arguments[0],a=arguments[1],n="multiple"):"string"===d.type(arguments[0])&&(i=arguments[0],o=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===d.type(arguments[1])?n="responsive":void 0!==arguments[1]&&(n="single")),"single"===n)s.options[i]=o;else if("multiple"===n)d.each(i,function(e,t){s.options[e]=t});else if("responsive"===n)for(t in o)if("array"!==d.type(s.options.responsive))s.options.responsive=[o[t]];else{for(e=s.options.responsive.length-1;0<=e;)s.options.responsive[e].breakpoint===o[t].breakpoint&&s.options.responsive.splice(e,1),e--;s.options.responsive.push(o[t])}a&&(s.unload(),s.reinit())},a.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},a.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},a.prototype.setSlideClasses=function(e){var t,i,o,n,s=this;if(i=s.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),s.$slides.eq(e).addClass("slick-current"),!0===s.options.centerMode){var a=s.options.slidesToShow%2==0?1:0;t=Math.floor(s.options.slidesToShow/2),!0===s.options.infinite&&(t<=e&&e<=s.slideCount-1-t?s.$slides.slice(e-t+a,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(o=s.options.slidesToShow+e,i.slice(o-t+1+a,o+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?i.eq(i.length-1-s.options.slidesToShow).addClass("slick-center"):e===s.slideCount-1&&i.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(e).addClass("slick-center")}else 0<=e&&e<=s.slideCount-s.options.slidesToShow?s.$slides.slice(e,e+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=s.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(n=s.slideCount%s.options.slidesToShow,o=!0===s.options.infinite?s.options.slidesToShow+e:e,s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-e<s.options.slidesToShow?i.slice(o-(s.options.slidesToShow-n),o+n).addClass("slick-active").attr("aria-hidden","false"):i.slice(o,o+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==s.options.lazyLoad&&"anticipated"!==s.options.lazyLoad||s.lazyLoad()},a.prototype.setupInfinite=function(){var e,t,i,o=this;if(!0===o.options.fade&&(o.options.centerMode=!1),!0===o.options.infinite&&!1===o.options.fade&&(t=null,o.slideCount>o.options.slidesToShow)){for(i=!0===o.options.centerMode?o.options.slidesToShow+1:o.options.slidesToShow,e=o.slideCount;e>o.slideCount-i;e-=1)t=e-1,d(o.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(e=0;e<i+o.slideCount;e+=1)t=e,d(o.$slides[t]).clone(!0).attr("id","").attr("data-slick-index",t+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each(function(){d(this).attr("id","")})}},a.prototype.interrupt=function(e){e||this.autoPlay(),this.interrupted=e},a.prototype.selectHandler=function(e){var t=d(e.target).is(".slick-slide")?d(e.target):d(e.target).parents(".slick-slide"),i=parseInt(t.attr("data-slick-index"));i||(i=0),this.slideCount<=this.options.slidesToShow?this.slideHandler(i,!1,!0):this.slideHandler(i)},a.prototype.slideHandler=function(e,t,i){var o,n,s,a,r,l=null,d=this;if(t=t||!1,!(!0===d.animating&&!0===d.options.waitForAnimate||!0===d.options.fade&&d.currentSlide===e))if(!1===t&&d.asNavFor(e),o=e,l=d.getLeft(o),a=d.getLeft(d.currentSlide),d.currentLeft=null===d.swipeLeft?a:d.swipeLeft,!1===d.options.infinite&&!1===d.options.centerMode&&(e<0||e>d.getDotCount()*d.options.slidesToScroll))!1===d.options.fade&&(o=d.currentSlide,!0!==i?d.animateSlide(a,function(){d.postSlide(o)}):d.postSlide(o));else if(!1===d.options.infinite&&!0===d.options.centerMode&&(e<0||e>d.slideCount-d.options.slidesToScroll))!1===d.options.fade&&(o=d.currentSlide,!0!==i?d.animateSlide(a,function(){d.postSlide(o)}):d.postSlide(o));else{if(d.options.autoplay&&clearInterval(d.autoPlayTimer),n=o<0?d.slideCount%d.options.slidesToScroll!=0?d.slideCount-d.slideCount%d.options.slidesToScroll:d.slideCount+o:o>=d.slideCount?d.slideCount%d.options.slidesToScroll!=0?0:o-d.slideCount:o,d.animating=!0,d.$slider.trigger("beforeChange",[d,d.currentSlide,n]),s=d.currentSlide,d.currentSlide=n,d.setSlideClasses(d.currentSlide),d.options.asNavFor&&(r=(r=d.getNavTarget()).slick("getSlick")).slideCount<=r.options.slidesToShow&&r.setSlideClasses(d.currentSlide),d.updateDots(),d.updateArrows(),!0===d.options.fade)return!0!==i?(d.fadeSlideOut(s),d.fadeSlide(n,function(){d.postSlide(n)})):d.postSlide(n),void d.animateHeight();!0!==i?d.animateSlide(l,function(){d.postSlide(n)}):d.postSlide(n)}},a.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},a.prototype.swipeDirection=function(){var e,t,i,o,n=this;return e=n.touchObject.startX-n.touchObject.curX,t=n.touchObject.startY-n.touchObject.curY,i=Math.atan2(t,e),(o=Math.round(180*i/Math.PI))<0&&(o=360-Math.abs(o)),o<=45&&0<=o?!1===n.options.rtl?"left":"right":o<=360&&315<=o?!1===n.options.rtl?"left":"right":135<=o&&o<=225?!1===n.options.rtl?"right":"left":!0===n.options.verticalSwiping?35<=o&&o<=135?"down":"up":"vertical"},a.prototype.swipeEnd=function(e){var t,i,o=this;if(o.dragging=!1,o.swiping=!1,o.scrolling)return o.scrolling=!1;if(o.interrupted=!1,o.shouldClick=!(10<o.touchObject.swipeLength),void 0===o.touchObject.curX)return!1;if(!0===o.touchObject.edgeHit&&o.$slider.trigger("edge",[o,o.swipeDirection()]),o.touchObject.swipeLength>=o.touchObject.minSwipe){switch(i=o.swipeDirection()){case"left":case"down":t=o.options.swipeToSlide?o.checkNavigable(o.currentSlide+o.getSlideCount()):o.currentSlide+o.getSlideCount(),o.currentDirection=0;break;case"right":case"up":t=o.options.swipeToSlide?o.checkNavigable(o.currentSlide-o.getSlideCount()):o.currentSlide-o.getSlideCount(),o.currentDirection=1}"vertical"!=i&&(o.slideHandler(t),o.touchObject={},o.$slider.trigger("swipe",[o,i]))}else o.touchObject.startX!==o.touchObject.curX&&(o.slideHandler(o.currentSlide),o.touchObject={})},a.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},a.prototype.swipeMove=function(e){var t,i,o,n,s,a,r=this;return s=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!r.dragging||r.scrolling||s&&1!==s.length)&&(t=r.getLeft(r.currentSlide),r.touchObject.curX=void 0!==s?s[0].pageX:e.clientX,r.touchObject.curY=void 0!==s?s[0].pageY:e.clientY,r.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(r.touchObject.curX-r.touchObject.startX,2))),a=Math.round(Math.sqrt(Math.pow(r.touchObject.curY-r.touchObject.startY,2))),!r.options.verticalSwiping&&!r.swiping&&4<a?!(r.scrolling=!0):(!0===r.options.verticalSwiping&&(r.touchObject.swipeLength=a),i=r.swipeDirection(),void 0!==e.originalEvent&&4<r.touchObject.swipeLength&&(r.swiping=!0,e.preventDefault()),n=(!1===r.options.rtl?1:-1)*(r.touchObject.curX>r.touchObject.startX?1:-1),!0===r.options.verticalSwiping&&(n=r.touchObject.curY>r.touchObject.startY?1:-1),o=r.touchObject.swipeLength,(r.touchObject.edgeHit=!1)===r.options.infinite&&(0===r.currentSlide&&"right"===i||r.currentSlide>=r.getDotCount()&&"left"===i)&&(o=r.touchObject.swipeLength*r.options.edgeFriction,r.touchObject.edgeHit=!0),!1===r.options.vertical?r.swipeLeft=t+o*n:r.swipeLeft=t+o*(r.$list.height()/r.listWidth)*n,!0===r.options.verticalSwiping&&(r.swipeLeft=t+o*n),!0!==r.options.fade&&!1!==r.options.touchMove&&(!0===r.animating?(r.swipeLeft=null,!1):void r.setCSS(r.swipeLeft))))},a.prototype.swipeStart=function(e){var t,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return!(i.touchObject={});void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==t?t.pageX:e.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==t?t.pageY:e.clientY,i.dragging=!0},a.prototype.unfilterSlides=a.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},a.prototype.unload=function(){var e=this;d(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},a.prototype.unslick=function(e){this.$slider.trigger("unslick",[this,e]),this.destroy()},a.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},a.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},a.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},d.fn.slick=function(){var e,t,i=this,o=arguments[0],n=Array.prototype.slice.call(arguments,1),s=i.length;for(e=0;e<s;e++)if("object"==typeof o||void 0===o?i[e].slick=new a(i[e],o):t=i[e].slick[o].apply(i[e].slick,n),void 0!==t)return t;return i}}),console.log("global.js"),function(p){p.fn.hoverIntent=function(e,t,i){var n={interval:100,sensitivity:6,timeout:0};n="object"==typeof e?p.extend(n,e):p.isFunction(t)?p.extend(n,{over:e,out:t,selector:i}):p.extend(n,{over:e,out:e,selector:t});var o,s,a,r,l=function(e){o=e.pageX,s=e.pageY},d=function(e,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),Math.sqrt((a-o)*(a-o)+(r-s)*(r-s))<n.sensitivity?(p(t).off("mousemove.hoverIntent",l),t.hoverIntent_s=!0,n.over.apply(t,[e])):(a=o,r=s,void(t.hoverIntent_t=setTimeout(function(){d(e,t)},n.interval)))},c=function(e){var i=p.extend({},e),o=this;o.hoverIntent_t&&(o.hoverIntent_t=clearTimeout(o.hoverIntent_t)),"mouseenter"===e.type?(a=i.pageX,r=i.pageY,p(o).on("mousemove.hoverIntent",l),o.hoverIntent_s||(o.hoverIntent_t=setTimeout(function(){d(i,o)},n.interval))):(p(o).off("mousemove.hoverIntent",l),o.hoverIntent_s&&(o.hoverIntent_t=setTimeout(function(){var e,t;e=i,(t=o).hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=!1,n.out.apply(t,[e])},n.timeout)))};return this.on({"mouseenter.hoverIntent":c,"mouseleave.hoverIntent":c},n.selector)}}(jQuery),function(d){d.miniCart=function(e,t){var r=this;r.settings={};r.setCart=function(){var n=d(".pre-cart"),s=n.find("tbody"),a=d(".btn.carrito");vtexjs.checkout.getOrderForm().done(function(e){var t=e,o=t.items,i=t.value;0<o.length?(n.find(".wrap-scroll").show(),n.find(".resumen").show(),n.find(".empty-cart").hide(),n.removeClass("empty"),s.empty(),d.each(o,function(e,t){var i=t;s.append(r.setCartItem(i,e)),e+1<o.length&&s.append('<tr class="linea"><td colspan="4"><p></p></td></tr>')})):(n.find(".wrap-scroll").hide(),n.find(".resumen").hide(),n.find(".empty-cart").show(),n.addClass("empty")),a.find(".num p").text(o.length).parent().fadeIn(250),a.find(".precio .value").text(l(i/100,".",".",2)).parent().slideDown(250),n.find(".total .numero").text(l(i/100,".",".",2,!0))})},r.setCartItem=function(e,t){var i=e.id,o=e.name,n=e.additionalInfo.brandName,s=e.imageUrl,a=e.quantity,r=e.price;return'<tr class="item item-desktop"><td data-id="'+i+'"><div class="item"><img src="'+s+'" class="img"/><div class="info"><h3>'+o+"</h3><p>"+n+'</p></div></div></td><td><p class="cantidad">'+a+'</p></td><td><p class="precio"> '+l(r/100,".",".",2,!0)+' </p></td><td><p class="icono eliminar" data-index="'+t+'"> X </p></td></tr>'},r.addCartItem=function(e){var t,i,o;e.preventDefault(),new RegExp(/sku=.+?&/g).test(d(".buy-button-ref").attr("href"))?(i=d(".buy-button-ref").attr("href").match(/sku=.+?&/g).toString().replace(/\D/g,""),o=d(".buy-button-ref").attr("href").match(/seller=.+?&/g).toString().replace(/\D/g,""),q=d(".buy-button-ref").attr("href").match(/qty=.+?&/g).toString().replace(/\D/g,""),t={id:i,quantity:q,seller:o},console.log(q),vtexjs.checkout.addToCart([t]).done(function(e){r.setCart(),d("#popup").popup({autoopen:!0})})):new RegExp(/sku=.+?&/g).test(d(this).parents(".row").find(".buy-button-normal a").attr("href"))&&(t={id:i=d(this).parents(".row").find(".buy-button-normal a").attr("href").match(/sku=.+?&/g).toString().replace(/\D/g,""),quantity:1,seller:o=d(this).parents(".row").find(".buy-button-normal a").attr("href").match(/seller=.+?&/g).toString().replace(/\D/g,"")},vtexjs.checkout.addToCart([t]).done(function(e){r.setCart(),d("#popup").popup({autoopen:!0})}))},r.removeCartItem=function(){var e=d(this),i=e.data("index");e.parents(".item").addClass("removing"),vtexjs.checkout.getOrderForm().then(function(e){var t=e.items[i];return t.index=i,vtexjs.checkout.removeItems([t])}).done(r.setCart)};var l=function(e,t,i,o,n){var s="\\d(?=(\\d{3})+"+(0<(o="number"!=typeof o?2:o)?"\\D":"$")+")";return(n=!0===n&&this.currency?this.currency:"string"==typeof n?n:"")+(e=(1*e).toFixed(Math.max(0,~~o))).replace(".",i||",").replace(new RegExp(s,"g"),"$&"+(t||"."))};d("body").prepend('<div id="popup" class="aviso"><i class="fa fa-check-circle" aria-hidden="true"></i><p class="vcenter">¡Producto agregado al carrito!</p><div class="btn close popup_close res-mobile">Seguir comprando</div><a class="btn checkout" href="/checkout">Ir a mi carrito</a></div>'),r.setCart(),d(document).on("click",".pre-cart .eliminar",r.removeCartItem),d(document).on("click",".buy-button-ref",r.addCartItem),d(document).on("click",".buy",r.addCartItem)}}(jQuery),function(u){var h,f,g=u(window),o={},v=[],m=[],w=null,c="_open",S=[],x=null,p=/(iPad|iPhone|iPod)/g.test(navigator.userAgent),b={_init:function(e){var t=u(e),i=t.data("popupoptions");m[e.id]=!1,v[e.id]=0,t.data("popup-initialized")||(t.attr("data-popup-initialized","true"),b._initonce(e)),i.autoopen&&setTimeout(function(){b.show(e,0)},0)},_initonce:function(i){var e,t,o,n,s=u(i),a=u("body"),r=s.data("popupoptions");(w=parseInt(a.css("margin-right"),10),x=void 0!==document.body.style.webkitTransition||void 0!==document.body.style.MozTransition||void 0!==document.body.style.msTransition||void 0!==document.body.style.OTransition||void 0!==document.body.style.transition,"tooltip"==r.type&&(r.background=!1,r.scrolllock=!1),r.backgroundactive&&(r.background=!1,r.blur=!1,r.scrolllock=!1),r.scrolllock)&&(void 0===h&&(n=(o=u('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body")).children(),h=n.innerWidth()-n.height(99).innerWidth(),o.remove()));if(s.attr("id")||s.attr("id","j-popup-"+parseInt(1e8*Math.random(),10)),s.addClass("popup_content"),a.prepend(i),s.wrap('<div id="'+i.id+'_wrapper" class="popup_wrapper" />'),(e=u("#"+i.id+"_wrapper")).css({opacity:0,visibility:"hidden",position:"absolute"}),p&&e.css("cursor","pointer"),"overlay"==r.type&&e.css("overflow","auto"),s.css({opacity:0,visibility:"hidden",display:"inline-block"}),r.setzindex&&!r.autozindex&&e.css("z-index","100001"),r.outline||s.css("outline","none"),r.transition&&(s.css("transition",r.transition),e.css("transition",r.transition)),s.attr("aria-hidden",!0),r.background&&!u("#"+i.id+"_background").length){a.prepend('<div id="'+i.id+'_background" class="popup_background"></div>');var l=u("#"+i.id+"_background");l.css({opacity:0,visibility:"hidden",backgroundColor:r.color,position:"fixed",top:0,right:0,bottom:0,left:0}),r.setzindex&&!r.autozindex&&l.css("z-index","100000"),r.transition&&l.css("transition",r.transition)}"overlay"==r.type&&(s.css({textAlign:"left",position:"relative",verticalAlign:"middle"}),t={position:"fixed",width:"100%",height:"100%",top:0,left:0,textAlign:"center"},r.backgroundactive&&(t.position="relative",t.height="0",t.overflow="visible"),e.css(t),e.append('<div class="popup_align" />'),u(".popup_align").css({display:"inline-block",verticalAlign:"middle",height:"100%"})),s.attr("role","dialog");var d=r.openelement?r.openelement:"."+i.id+c;u(d).each(function(e,t){u(t).attr("data-popup-ordinal",e),t.id||u(t).attr("id","open_"+parseInt(1e8*Math.random(),10))}),s.attr("aria-labelledby")||s.attr("aria-label")||s.attr("aria-labelledby",u(d).attr("id")),"hover"==r.action?(r.keepfocus=!1,u(d).on("mouseenter",function(e){b.show(i,u(this).data("popup-ordinal"))}),u(d).on("mouseleave",function(e){b.hide(i)})):u(document).on("click",d,function(e){e.preventDefault();var t=u(this).data("popup-ordinal");setTimeout(function(){b.show(i,t)},0)}),r.closebutton&&b.addclosebutton(i),r.detach?s.hide().detach():e.hide()},show:function(e,t){var i=u(e);if(!i.data("popup-visible")){i.data("popup-initialized")||b._init(e),i.attr("data-popup-initialized","true");var o=u("body"),n=i.data("popupoptions"),s=u("#"+e.id+"_wrapper"),a=u("#"+e.id+"_background");if(y(e,t,n.beforeopen),m[e.id]=t,setTimeout(function(){S.push(e.id)},0),n.autozindex){for(var r=document.getElementsByTagName("*"),l=r.length,d=0,c=0;c<l;c++){var p=u(r[c]).css("z-index");"auto"!==p&&(d<(p=parseInt(p,10))&&(d=p))}v[e.id]=d,n.background&&0<v[e.id]&&u("#"+e.id+"_background").css({zIndex:v[e.id]+1}),0<v[e.id]&&s.css({zIndex:v[e.id]+2})}n.detach?(s.prepend(e),i.show()):s.show(),f=setTimeout(function(){a.fadeIn(50),s.fadeIn(),u("html").addClass("popup_visible").addClass("popup_visible_"+e.id).fadeIn(),s.addClass("popup_wrapper_visible").css({visibility:"visible",opacity:1})},20),n.scrolllock&&(o.css("overflow","hidden"),o.height()>g.height()&&o.css("margin-right",w+h)),n.backgroundactive&&i.css({top:(g.height()-(i.get(0).offsetHeight+parseInt(i.css("margin-top"),10)+parseInt(i.css("margin-bottom"),10)))/2+"px"}),i.css({visibility:"visible",opacity:1}),n.background&&(a.css({visibility:"visible",opacity:n.opacity}),setTimeout(function(){a.css({opacity:n.opacity})},0)),i.data("popup-visible",!0),b.reposition(e,t),i.data("focusedelementbeforepopup",document.activeElement),n.keepfocus&&(i.attr("tabindex",-1),setTimeout(function(){"closebutton"===n.focuselement?u("#"+e.id+" ."+e.id+"_close:first").focus():n.focuselement?u(n.focuselement).focus():i.focus()},n.focusdelay)),u(n.pagecontainer).attr("aria-hidden",!0),i.attr("aria-hidden",!1),y(e,t,n.onopen),x?s.one("transitionend",function(){y(e,t,n.opentransitionend)}):y(e,t,n.opentransitionend)}},hide:function(t,e){var i=u.inArray(t.id,S);if(-1!==i){f&&clearTimeout(f);var o=u("body"),n=u(t),s=n.data("popupoptions"),a=u("#"+t.id+"_wrapper"),r=u("#"+t.id+"_background");n.data("popup-visible",!1),1===S.length?u("html").removeClass("popup_visible").removeClass("popup_visible_"+t.id):u("html").hasClass("popup_visible_"+t.id)&&u("html").removeClass("popup_visible_"+t.id),S.splice(i,1),a.hasClass("popup_wrapper_visible")&&a.removeClass("popup_wrapper_visible"),s.keepfocus&&!e&&setTimeout(function(){u(n.data("focusedelementbeforepopup")).is(":visible")&&n.data("focusedelementbeforepopup").focus()},0),a.fadeOut(),n.css({visibility:"hidden",opacity:0}),s.background&&r.fadeOut(),u(s.pagecontainer).attr("aria-hidden",!1),n.attr("aria-hidden",!0),y(t,m[t.id],s.onclose),x&&"0s"!==n.css("transition-duration")?n.one("transitionend",function(e){n.data("popup-visible")||(s.detach?n.hide().detach():a.hide()),s.scrolllock&&setTimeout(function(){o.css({overflow:"visible","margin-right":w})},10),y(t,m[t.id],s.closetransitionend)}):(s.detach?n.hide().detach():a.hide(),s.scrolllock&&setTimeout(function(){o.css({overflow:"visible","margin-right":w})},10),y(t,m[t.id],s.closetransitionend))}},toggle:function(e,t){u(e).data("popup-visible")?b.hide(e):setTimeout(function(){b.show(e,t)},0)},reposition:function(e,t){var i=u(e),o=i.data("popupoptions"),n=u("#"+e.id+"_wrapper");if(u("#"+e.id+"_background"),t=t||0,"tooltip"==o.type){var s;n.css({position:"absolute"});var a=(s=o.tooltipanchor?u(o.tooltipanchor):o.openelement?u(o.openelement).filter('[data-popup-ordinal="'+t+'"]'):u("."+e.id+c+'[data-popup-ordinal="'+t+'"]')).offset();"right"==o.horizontal?n.css("left",a.left+s.outerWidth()+o.offsetleft):"leftedge"==o.horizontal?n.css("left",a.left+s.outerWidth()-s.outerWidth()+o.offsetleft):"left"==o.horizontal?n.css("right",g.width()-a.left-o.offsetleft):"rightedge"==o.horizontal?n.css("right",g.width()-a.left-s.outerWidth()-o.offsetleft):n.css("left",a.left+s.outerWidth()/2-i.outerWidth()/2-parseFloat(i.css("marginLeft"))+o.offsetleft),"bottom"==o.vertical?n.css("top",a.top+s.outerHeight()+o.offsettop):"bottomedge"==o.vertical?n.css("top",a.top+s.outerHeight()-i.outerHeight()+o.offsettop):"top"==o.vertical?n.css("bottom",g.height()-a.top-o.offsettop):"topedge"==o.vertical?n.css("bottom",g.height()-a.top-i.outerHeight()-o.offsettop):n.css("top",a.top+s.outerHeight()/2-i.outerHeight()/2-parseFloat(i.css("marginTop"))+o.offsettop)}else"overlay"==o.type&&(o.horizontal?n.css("text-align",o.horizontal):n.css("text-align","center"),o.vertical?i.css("vertical-align",o.vertical):i.css("vertical-align","middle"))},addclosebutton:function(e){var t;t=u(e).data("popupoptions").closebuttonmarkup?u(o.closebuttonmarkup).addClass(e.id+"_close"):'<button class="popup_close '+e.id+'_close" title="Close" aria-label="Close"><span aria-hidden="true">Ãƒâ€”</span></button>',$el.data("popup-initialized")&&$el.append(t)}},y=function(e,t,i){var o=u(e).data("popupoptions"),n=o.openelement?o.openelement:"."+e.id+c,s=u(n+'[data-popup-ordinal="'+t+'"]');"function"==typeof i&&i.call(u(e),e,s)};u(document).on("keydown",function(e){if(S.length){var t=S[S.length-1],i=document.getElementById(t);u(i).data("popupoptions").escape&&27==e.keyCode&&b.hide(i)}}),u(document).on("click",function(e){if(S.length){var t=S[S.length-1],i=document.getElementById(t),o=u(i).data("popupoptions").closeelement?u(i).data("popupoptions").closeelement:"."+i.id+"_close";u(e.target).closest(o).length&&(e.preventDefault(),b.hide(i)),u(i).data("popupoptions").blur&&!u(e.target).closest("#"+t).length&&2!==e.which&&u(e.target).is(":visible")&&(u(i).data("popupoptions").background?(b.hide(i),e.preventDefault()):b.hide(i,!0))}}),u(document).on("keydown",function(e){if(S.length&&9==e.which){var t=S[S.length-1],i=document.getElementById(t),o=u(i).find("*").filter("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]").filter(":visible"),n=u(":focus"),s=o.length,a=o.index(n);0===s?(u(i).focus(),e.preventDefault()):e.shiftKey?0===a&&(o.get(s-1).focus(),e.preventDefault()):a==s-1&&(o.get(0).focus(),e.preventDefault())}}),u.fn.popup=function(i){return this.each(function(){var e=u(this);if("object"==typeof i){var t=u.extend({},u.fn.popup.defaults,i,e.data("popupoptions"));e.data("popupoptions",t),o=e.data("popupoptions"),b._init(this)}else"string"==typeof i?(e.data("popupoptions")||(e.data("popupoptions",u.fn.popup.defaults),o=e.data("popupoptions")),b[i].call(this,this)):(e.data("popupoptions")||(e.data("popupoptions",u.fn.popup.defaults),o=e.data("popupoptions")),b._init(this))})},u.fn.popup.defaults={type:"overlay",autoopen:!1,background:!0,backgroundactive:!1,color:"#ffffff",opacity:"0.8",horizontal:"center",vertical:"middle",offsettop:0,offsetleft:0,escape:!0,blur:!0,setzindex:!0,autozindex:!1,scrolllock:!1,closebutton:!1,closebuttonmarkup:null,keepfocus:!0,focuselement:null,focusdelay:50,outline:!1,pagecontainer:null,detach:!1,openelement:null,closeelement:null,transition:null,tooltipanchor:null,beforeopen:null,onclose:null,onopen:null,opentransitionend:null,closetransitionend:null},$(".btn.carrito").on("click",function(){$(this).next().fadeIn()}),$(".pre-cart").on("mouseleave",function(){$(this).fadeOut()})}(jQuery),"function"!=typeof String.prototype.replaceSpecialChars&&(String.prototype.replaceSpecialChars=function(){var t={"ç":"c","æ":"ae","œ":"oe","á":"a","é":"e","í":"i","ó":"o","ú":"u","à":"a","è":"e","ì":"i","ò":"o","ù":"u","ä":"a","ë":"e","ï":"i","ö":"o","ü":"u","ÿ":"y","â":"a","ê":"e","î":"i","ô":"o","û":"u","å":"a","ã":"a","ø":"o","õ":"o",u:"u","Á":"A","É":"E","Í":"I","Ó":"O","Ú":"U","Ê":"E","Ô":"O","Ü":"U","Ã":"A","Õ":"O","À":"A","Ç":"C"};return this.replace(/[\u00e0-\u00fa]/g,function(e){return void 0!==t[e]?t[e]:e})}),"function"!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),jQuery.fn.vtexSmartResearch=function(e){var i=jQuery(this),n=function(e,t){"object"==typeof console&&console.log("[Smart Research - "+(t||"Erro")+"] "+e)},t={pageLimit:null,loadContent:".itemProduct[id^=ResultItems]",shelfClass:".itemProduct",filtersMenu:".search-multiple-navigator",linksMenu:".search-single-navigator",menuDepartament:".navigation .menu-departamento",mergeMenu:!0,insertMenuAfter:".search-multiple-navigator h3:first",emptySearchElem:jQuery('<div class="vtexsr-emptySearch"></div>'),elemLoading:'<div id="scrollLoading">Cargando ... </div>',returnTopText:!1,emptySearchMsg:"<h3>No se encontraron productos para esta combinacion de filtros, por favor intente nuevamente.</h3>",filterErrorMsg:"¡Ha habido un error al intentar filtrar la página!",searchUrl:null,usePopup:!1,showLinks:!0,popupAutoCloseSeconds:3,filterScrollTop:function(e){},callback:function(){callbackSearch("callback")},getShelfHeight:function(e){return e.scrollTop()+e.height()},shelfCallback:function(){callbackSearch("shelfCallback")},ajaxCallback:function(){callbackSearch("ajaxCallback"),discount()},emptySearchCallback:function(){callbackSearch("emptySearchCallback")},authorizeScroll:function(){return!0},authorizeUpdate:function(){return!0},labelCallback:function(e){callbackSearch("labelCallback")}},a=jQuery.extend(t,e),o=jQuery(""),s=jQuery(a.elemLoading),r=2,l=!0,d=jQuery(window),c=(jQuery(document),jQuery("html,body")),p=jQuery("body"),u="",h="",f="",g=!1,v=jQuery(a.loadContent),m=jQuery(a.filtersMenu),w={requests:0,filters:0,isEmpty:!1},S={};h=-1<document.location.href.indexOf("O=")?"":"&O=OrderByPriceDESC";var x={getUrl:function(e){return e||!1?u.replace(/PageNumber=[0-9]*/,"PageNumber="+r):(f+h).replace(/PageNumber=[0-9]*/,"PageNumber="+T)},getSearchUrl:function(){var e,t,i;return jQuery("script:not([src])").each(function(){return t=jQuery(this)[0].innerHTML,newContent=t.replace(/&PS=12&sl=1daabf0d-5f18-47a2-8b3f-709dc17dc522&cc=3&sm=0*/,"&PS=12&sl=1daabf0d-5f18-47a2-8b3f-709dc17dc522&cc=3&sm=0&O=OrderByPriceDESC"),i=/\/buscapagina\?.+&PageNumber=/i,p.hasClass("resultado-busca")&&-1<t.search(/\/buscapagina\?/i)?(e=i.exec(newContent),!1):-1<t.search(/\/buscapagina\?/i)?(e=i.exec(t),!1):void 0}),void 0!==e&&void 0!==e[0]?e[0]:(n("No se pudo encontrar la url de búsqueda de la página.  N Intenta agregar el .js al final de la página. \n[Método: getSearchUrl]"),"")},scrollToTop:function(){var e=p.find("#returnToTop");e.length<1&&(e=jQuery('<div id="returnToTop"><a href="#">'+a.returnTopText+'<span class="arrowToTop"></span></a></div>'),p.append(e));var t=d.height();d.bind("resize",function(){t=d.height()}),d.bind("scroll",function(){d.scrollTop()>t?e.stop(!0).fadeTo(300,1,function(){e.show()}):e.stop(!0).fadeTo(300,0,function(){e.hide()})}),e.bind("click",function(){return c.animate({scrollTop:0},"slow"),!1})},infinitScroll:function(){var i,o,e;e=(p.find(".pager:first").attr("id")||"").split("_").pop(),i=null!==a.pageLimit?a.pageLimit:window["pagecount_"+e],o=!0,void 0===i&&(i=99999999),d.bind("scroll",function(){var e=jQuery(this);if(!(!g&&r<=i&&l&&a.authorizeScroll(w)))return!1;if(e.scrollTop()+e.height()>=a.getShelfHeight(v)&&o){var t=v.find(a.shelfClass).filter(":last");t.after(s),o=!1,M=jQuery.ajax({url:x.getUrl(!0),success:function(e){e.trim().length<1?(l=!1,n("No hay más resultados de la página: "+(r-1),"Aviso")):t.after(e),o=!0,s.remove(),w.requests++,a.ajaxCallback(w)}}),r++}})}};if(u=f=null!==a.searchUrl?a.searchUrl:x.getSearchUrl(),i.length<1)return n("Ninguna opción de filtro encontrado","Aviso"),a.showLinks&&jQuery(a.linksMenu).css("visibility","visible").show(),x.infinitScroll(),x.scrollToTop(),i;if(v.length<1)return n("Elemento para destino de la solicitud no se encontró \n ("+v.selector+")"),!1;m.length<1&&n("No se encontró el menú de filtros \n ("+m.selector+")");document.location.href;var b=jQuery(a.linksMenu),y=jQuery('<div class="vtexSr-overlay"></div>'),k=jQuery(a.menuDepartament),C=v.offset(),T=1,_=null,M=null;a.emptySearchElem.append(a.emptySearchMsg),v.before(y);var I={exec:function(){I.setFilterMenu(),I.fieldsetFormat(),i.each(function(){var e=jQuery(this),t=e.parent();e.is(":checked")&&(h+="&"+(e.attr("rel")||""),t.addClass("sr_selected")),I.adjustText(e),t.append('<span class="sr_box"></span><span class="sr_box2"></span>'),e.bind("change",function(){I.inputAction(),e.is(":checked")?I.addFilter(e):I.removeFilter(e),w.filters=i.filter(":checked").length})}),""!==h&&I.addFilter(o)},mergeMenu:function(){if(!a.mergeMenu)return!1;var e=k;e.insertAfter(a.insertMenuAfter),I.departamentMenuFormat(e)},mergeMenuList:function(){var t=0;m.find("h3,h4").each(function(){var e=b.find("h3,h4").eq(t).next("ul");e.insertAfter(jQuery(this)),I.departamentMenuFormat(e),t++})},departamentMenuFormat:function(e){e.find("a").each(function(){var e=jQuery(this);e.text(I.removeCounter(e.text()))})},fieldsetFormat:function(){S.fieldsetCount=0,S.tmpCurrentLabel={},m.find("fieldset").each(function(){var n=jQuery(this),e=n.find("label"),s="filtro_"+(n.find("h5:first").text()||"").toLowerCase().replaceSpecialChars().replace(/\s/g,"-");S[s]={},e.length<1?n.hide():(n.addClass(s),e.each(function(e){var t=jQuery(this),i=t.find("input").val()||"",o="sr_"+i.toLowerCase().replaceSpecialChars().replace(/\s/g,"-");S.tmpCurrentLabel={fieldsetParent:[n,s],elem:t},S[s][e.toString()]={className:o,title:i},t.addClass(o).attr({title:i,index:e}),a.labelCallback(S)}),S.fieldsetCount++)})},inputAction:function(){null!==M&&M.abort(),null!==_&&_.abort(),r=2,l=!0},addFilter:function(e){h+="&"+(e.attr("rel")||""),y.fadeTo(300,.6),u=x.getUrl(),_=jQuery.ajax({url:u,success:I.filterAjaxSuccess,error:I.filterAjaxError}),e.parent().addClass("sr_selected")},removeFilter:function(e){var t=e.attr("rel")||"";y.fadeTo(300,.6),""!==t&&(h=h.replace("&"+t,"")),u=x.getUrl(),_=jQuery.ajax({url:u,success:I.filterAjaxSuccess,error:I.filterAjaxError}),e.parent().removeClass("sr_selected")},filterAjaxSuccess:function(e){callbackSearch("filterAjaxSuccess");var t=jQuery(e);y.fadeTo(300,0,function(){jQuery(this).hide()}),I.updateContent(t),w.requests++,a.ajaxCallback(w),c.animate({scrollTop:a.filterScrollTop(C||{top:0,left:0})},300)},filterAjaxError:function(){callbackSearch("filterAjaxError"),y.fadeTo(300,0,function(){jQuery(this).hide()}),n("Hubo un error al intentar hacer la petición de la página con filtros.")},updateContent:function(e){if(console.log("actualizando datos"),callbackSearch("updateContent"),g=!0,!a.authorizeUpdate(w))return!1;var t=e.filter(a.shelfClass),i=v.find(a.shelfClass);(0<i.length?i:a.emptySearchElem).fadeOut(300,function(){jQuery(this).remove(),a.usePopup?p.find(".boxPopUp2").vtexPopUp2():a.emptySearchElem.remove(),0<t.length?(t.hide(),v.append(t),a.shelfCallback(),t.fadeIn(300,function(){g=!1}),w.isEmpty=!1):(w.isEmpty=!0,a.usePopup?a.emptySearchElem.addClass("freeContent autoClose ac_"+a.popupAutoCloseSeconds).vtexPopUp2().stop(!0).show():(v.append(a.emptySearchElem),a.emptySearchElem.show().css("height","auto").fadeTo(300,.2,function(){a.emptySearchElem.fadeTo(300,1)})),a.emptySearchCallback(w)),discount()})},adjustText:function(e){var t=e.parent(),i=t.text();qtt="",i=I.removeCounter(i),t.text(i).prepend(e)},removeCounter:function(e){return e.replace(/\([0-9]+\)/gi,function(e){return qtt=e.replace(/\(|\)/,""),""})},setFilterMenu:function(){0<m.length&&(b.hide(),m.show())},formatContent:function(e){console.log(e[0]);var t=$.parseHTML(e[0]);return $.each(t.find(".itemProduct ul li").not(".itemProduct ul li.helperComplement"),function(e,t){if(!$(this).find(".flag-dscto").length){var i=$(t).find(".precio .antes").text().substring(3),o=$(t).find(".precio .ahora").text().substring(3),n=i.split(",").join(""),s=o.split(",").join("");if(""!==n){var a=100*(1-Number(s)/Number(n));a%1!=0&&(a=a.toFixed(0)),$(t).find(".contentFlag").append('<p class="flag dscto">'+a+'% <span class="desc-word">dscto </span></p>')}}}),e}};p.hasClass("departamento")?I.mergeMenu():(p.hasClass("categoria")||p.hasClass("resultado-busca"))&&I.mergeMenuList(),I.exec(),x.infinitScroll(),x.scrollToTop(),a.callback(),m.css("visibility","visible")},$(function(){($("body").hasClass("departamento")||$("body").hasClass("categoria")||$("body").hasClass("resultado-busca"))&&($(".search-multiple-navigator input[type='checkbox']").vtexSmartResearch(),discount()),window.history.replaceState({pushed:!0},null,window.location.href);var e=window.location.search.split("filtro=");"object"==typeof(e=1<e.length?decodeURIComponent(e[1]).split("|"):"")&&$.each(e,function(e,t){if(1<(t=t.split("=")).length){var a=t[0],i=decodeURIComponent(t[1]).split(";");$.each(i,function(e,t){var i=$(".search-multiple-navigator fieldset.filtro_"+a).find("input[value='"+t+"']");i.not(":checked").trigger("click");var o=i.parent(),n=$.trim(o.text().toLowerCase()),s=new RegExp(" ","g");text2=jQuery.trim(n),text2=text2.replace(s,"-"),o.addClass("sr_"+n),$(".filter_checked_wrapper").append("<div class='filter_wrapper_remove sr_"+text2+" 'data-filter='"+n+"'> <div class='remove_filter'></div><div class='filter_checked'>"+n+"</div></div>")})}}),$("body").on("click",".search-multiple-navigator fieldset label input",function(e){var t=$(this),i=t.parentsUntil("fieldset").parent().attr("class").match("filtro_(.*)"),o=(t.val(),window.location.href.split("filtro=")),n=window.location.href.match("filtro")?o[0].substr(0,o[0].length-1):o[0];if(null!=(i=1<i.length?i[1]:null)){var s=(n+(""==window.location.search||window.location.href.match(/\?filtro/)?"?":"&")+"filtro="+form_filter_url()).replace(" active","").replace(" closed","").replace("active closed","").replace("%20"," ").replace(" "," ");callbackFiltersSearch(form_filter_url().replace(" active","").replace(" closed","").replace("active closed","").replace("%20"," ")),window.history.pushState({pushed:!0},window.title,s)}})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(u){function t(e){var t=e||window.event,i=m.call(arguments,1),o=0,n=0,s=0,a=0,r=0,l=0;if((e=u.event.fix(t)).type="mousewheel","detail"in t&&(s=-1*t.detail),"wheelDelta"in t&&(s=t.wheelDelta),"wheelDeltaY"in t&&(s=t.wheelDeltaY),"wheelDeltaX"in t&&(n=-1*t.wheelDeltaX),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(n=-1*s,s=0),o=0===s?n:s,"deltaY"in t&&(o=s=-1*t.deltaY),"deltaX"in t&&(n=t.deltaX,0===s&&(o=-1*n)),0!==s||0!==n){if(1===t.deltaMode){var d=u.data(this,"mousewheel-line-height");o*=d,s*=d,n*=d}else if(2===t.deltaMode){var c=u.data(this,"mousewheel-page-height");o*=c,s*=c,n*=c}if(a=Math.max(Math.abs(s),Math.abs(n)),(!v||a<v)&&(f(t,v=a)&&(v/=40)),f(t,a)&&(o/=40,n/=40,s/=40),o=Math[1<=o?"floor":"ceil"](o/v),n=Math[1<=n?"floor":"ceil"](n/v),s=Math[1<=s?"floor":"ceil"](s/v),w.settings.normalizeOffset&&this.getBoundingClientRect){var p=this.getBoundingClientRect();r=e.clientX-p.left,l=e.clientY-p.top}return e.deltaX=n,e.deltaY=s,e.deltaFactor=v,e.offsetX=r,e.offsetY=l,e.deltaMode=0,i.unshift(e,o,n,s),g&&clearTimeout(g),g=setTimeout(h,200),(u.event.dispatch||u.event.handle).apply(this,i)}}function h(){v=null}function f(e,t){return w.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var g,v,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],m=Array.prototype.slice;if(u.event.fixHooks)for(var o=e.length;o;)u.event.fixHooks[e[--o]]=u.event.mouseHooks;var w=u.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=i.length;e;)this.addEventListener(i[--e],t,!1);else this.onmousewheel=t;u.data(this,"mousewheel-line-height",w.getLineHeight(this)),u.data(this,"mousewheel-page-height",w.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=i.length;e;)this.removeEventListener(i[--e],t,!1);else this.onmousewheel=null;u.removeData(this,"mousewheel-line-height"),u.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=u(e),i=t["offsetParent"in u.fn?"offsetParent":"parent"]();return i.length||(i=u("body")),parseInt(i.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return u(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};u.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(u){function t(e){var t=e||window.event,i=m.call(arguments,1),o=0,n=0,s=0,a=0,r=0,l=0;if((e=u.event.fix(t)).type="mousewheel","detail"in t&&(s=-1*t.detail),"wheelDelta"in t&&(s=t.wheelDelta),"wheelDeltaY"in t&&(s=t.wheelDeltaY),"wheelDeltaX"in t&&(n=-1*t.wheelDeltaX),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(n=-1*s,s=0),o=0===s?n:s,"deltaY"in t&&(o=s=-1*t.deltaY),"deltaX"in t&&(n=t.deltaX,0===s&&(o=-1*n)),0!==s||0!==n){if(1===t.deltaMode){var d=u.data(this,"mousewheel-line-height");o*=d,s*=d,n*=d}else if(2===t.deltaMode){var c=u.data(this,"mousewheel-page-height");o*=c,s*=c,n*=c}if(a=Math.max(Math.abs(s),Math.abs(n)),(!v||a<v)&&(f(t,v=a)&&(v/=40)),f(t,a)&&(o/=40,n/=40,s/=40),o=Math[1<=o?"floor":"ceil"](o/v),n=Math[1<=n?"floor":"ceil"](n/v),s=Math[1<=s?"floor":"ceil"](s/v),w.settings.normalizeOffset&&this.getBoundingClientRect){var p=this.getBoundingClientRect();r=e.clientX-p.left,l=e.clientY-p.top}return e.deltaX=n,e.deltaY=s,e.deltaFactor=v,e.offsetX=r,e.offsetY=l,e.deltaMode=0,i.unshift(e,o,n,s),g&&clearTimeout(g),g=setTimeout(h,200),(u.event.dispatch||u.event.handle).apply(this,i)}}function h(){v=null}function f(e,t){return w.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}var g,v,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],m=Array.prototype.slice;if(u.event.fixHooks)for(var o=e.length;o;)u.event.fixHooks[e[--o]]=u.event.mouseHooks;var w=u.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=i.length;e;)this.addEventListener(i[--e],t,!1);else this.onmousewheel=t;u.data(this,"mousewheel-line-height",w.getLineHeight(this)),u.data(this,"mousewheel-page-height",w.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=i.length;e;)this.removeEventListener(i[--e],t,!1);else this.onmousewheel=null;u.removeData(this,"mousewheel-line-height"),u.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var t=u(e),i=t["offsetParent"in u.fn?"offsetParent":"parent"]();return i.length||(i=u("body")),parseInt(i.css("fontSize"),10)||parseInt(t.css("fontSize"),10)||16},getPageHeight:function(e){return u(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};u.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(H){var L,h,j,o,n,r,s,v,W,b,f,d,l,c,p,u,g,m,w,S,x,y,$,k,C,T,_,M,q,a,I,A,E,P,R,z,O,D,B,F,U,N,X,Y,Q,V,Z,G,K,J,i,ee,te,ie,oe,ne,se,e,t,ae;e="function"==typeof define&&define.amd,t="undefined"!=typeof module&&module.exports,ae="https:"==document.location.protocol?"https:":"http:",e||(t?require("jquery-mousewheel")(H):H.event.special.mousewheel||H("head").append(decodeURI("%3Cscript src="+ae+"//cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js%3E%3C/script%3E"))),h="mCustomScrollbar",j="mCS",o=".mCustomScrollbar",n={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,s={},v=window.attachEvent&&!window.addEventListener?1:0,W=!1,b=["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"],f={init:function(a){var a=H.extend(!0,{},n,a),e=d.call(this);if(a.live){var t=a.liveSelector||this.selector||o,i=H(t);if("off"===a.live)return void c(t);s[t]=setTimeout(function(){i.mCustomScrollbar(a),"once"===a.live&&i.length&&c(t)},500)}else c(t);return a.setWidth=a.set_width?a.set_width:a.setWidth,a.setHeight=a.set_height?a.set_height:a.setHeight,a.axis=a.horizontalScroll?"x":p(a.axis),a.scrollInertia=0<a.scrollInertia&&a.scrollInertia<17?17:a.scrollInertia,"object"!=typeof a.mouseWheel&&1==a.mouseWheel&&(a.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),a.mouseWheel.scrollAmount=a.mouseWheelPixels?a.mouseWheelPixels:a.mouseWheel.scrollAmount,a.mouseWheel.normalizeDelta=a.advanced.normalizeMouseWheelDelta?a.advanced.normalizeMouseWheelDelta:a.mouseWheel.normalizeDelta,a.scrollButtons.scrollType=u(a.scrollButtons.scrollType),l(a),H(e).each(function(){var e=H(this);if(!e.data(j)){e.data(j,{idx:++r,opt:a,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:e.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var t=e.data(j),i=t.opt,o=e.data("mcs-axis"),n=e.data("mcs-scrollbar-position"),s=e.data("mcs-theme");o&&(i.axis=o),n&&(i.scrollbarPosition=n),s&&(i.theme=s,l(i)),g.call(this),t&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),H("#mCSB_"+t.idx+"_container img:not(."+b[2]+")").addClass(b[2]),f.update.call(null,e)}})},update:function(e,r){var t=e||d.call(this);return H(t).each(function(){var e=H(this);if(e.data(j)){var t=e.data(j),i=t.opt,o=H("#mCSB_"+t.idx+"_container"),n=H("#mCSB_"+t.idx),s=[H("#mCSB_"+t.idx+"_dragger_vertical"),H("#mCSB_"+t.idx+"_dragger_horizontal")];if(!o.length)return;t.tweenRunning&&Z(e),r&&t&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),e.hasClass(b[3])&&e.removeClass(b[3]),e.hasClass(b[4])&&e.removeClass(b[4]),n.css("max-height","none"),n.height()!==e.height()&&n.css("max-height",e.height()),w.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||o.css("width",m(o)),t.overflowed=k.call(this),M.call(this),i.autoDraggerLength&&x.call(this),y.call(this),T.call(this);var a=[Math.abs(o[0].offsetTop),Math.abs(o[0].offsetLeft)];"x"!==i.axis&&(t.overflowed[0]?s[0].height()>s[0].parent().height()?C.call(this):(G(e,a[0].toString(),{dir:"y",dur:0,overwrite:"none"}),t.contentReset.y=null):(C.call(this),"y"===i.axis?_.call(this):"yx"===i.axis&&t.overflowed[1]&&G(e,a[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(t.overflowed[1]?s[1].width()>s[1].parent().width()?C.call(this):(G(e,a[1].toString(),{dir:"x",dur:0,overwrite:"none"}),t.contentReset.x=null):(C.call(this),"x"===i.axis?_.call(this):"yx"===i.axis&&t.overflowed[0]&&G(e,a[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),r&&t&&(2===r&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===r&&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)),V.call(this)}})},scrollTo:function(r,l){if(void 0!==r&&null!=r){var e=d.call(this);return H(e).each(function(){var e=H(this);if(e.data(j)){var t=e.data(j),i=t.opt,o={trigger:"external",scrollInertia:i.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},n=H.extend(!0,{},o,l),s=Y.call(this,r),a=0<n.scrollInertia&&n.scrollInertia<17?17:n.scrollInertia;s[0]=Q.call(this,s[0],"y"),s[1]=Q.call(this,s[1],"x"),n.moveDragger&&(s[0]*=t.scrollRatio.y,s[1]*=t.scrollRatio.x),n.dur=se()?0:a,setTimeout(function(){null!==s[0]&&void 0!==s[0]&&"x"!==i.axis&&t.overflowed[0]&&(n.dir="y",n.overwrite="all",G(e,s[0].toString(),n)),null!==s[1]&&void 0!==s[1]&&"y"!==i.axis&&t.overflowed[1]&&(n.dir="x",n.overwrite="none",G(e,s[1].toString(),n))},n.timeout)}})}},stop:function(){var e=d.call(this);return H(e).each(function(){var e=H(this);e.data(j)&&Z(e)})},disable:function(t){var e=d.call(this);return H(e).each(function(){var e=H(this);e.data(j)&&(e.data(j),V.call(this,"remove"),_.call(this),t&&C.call(this),M.call(this,!0),e.addClass(b[3]))})},destroy:function(){var a=d.call(this);return H(a).each(function(){var e=H(this);if(e.data(j)){var t=e.data(j),i=t.opt,o=H("#mCSB_"+t.idx),n=H("#mCSB_"+t.idx+"_container"),s=H(".mCSB_"+t.idx+"_scrollbar");i.live&&c(i.liveSelector||H(a).selector),V.call(this,"remove"),_.call(this),C.call(this),e.removeData(j),ee(this,"mcs"),s.remove(),n.find("img."+b[2]).removeClass(b[2]),o.replaceWith(n.contents()),e.removeClass(h+" _"+j+"_"+t.idx+" "+b[6]+" "+b[7]+" "+b[5]+" "+b[3]).addClass(b[4])}})}},d=function(){return"object"!=typeof H(this)||H(this).length<1?o:this},l=function(e){e.autoDraggerLength=!(-1<H.inArray(e.theme,["rounded","rounded-dark","rounded-dots","rounded-dots-dark"]))&&e.autoDraggerLength,e.autoExpandScrollbar=!(-1<H.inArray(e.theme,["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"]))&&e.autoExpandScrollbar,e.scrollButtons.enable=!(-1<H.inArray(e.theme,["minimal","minimal-dark"]))&&e.scrollButtons.enable,e.autoHideScrollbar=-1<H.inArray(e.theme,["minimal","minimal-dark"])||e.autoHideScrollbar,e.scrollbarPosition=-1<H.inArray(e.theme,["minimal","minimal-dark"])?"outside":e.scrollbarPosition},c=function(e){s[e]&&(clearTimeout(s[e]),ee(s,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},u=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},g=function(){var e=H(this),t=e.data(j),i=t.opt,o=i.autoExpandScrollbar?" "+b[1]+"_expand":"",n=["<div id='mCSB_"+t.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+t.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_vertical"+o+"'><div class='"+b[12]+"'><div id='mCSB_"+t.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+t.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+t.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_horizontal"+o+"'><div class='"+b[12]+"'><div id='mCSB_"+t.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],s="yx"===i.axis?"mCSB_vertical_horizontal":"x"===i.axis?"mCSB_horizontal":"mCSB_vertical",a="yx"===i.axis?n[0]+n[1]:"x"===i.axis?n[1]:n[0],r="yx"===i.axis?"<div id='mCSB_"+t.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",l=i.autoHideScrollbar?" "+b[6]:"",d="x"!==i.axis&&"rtl"===t.langDir?" "+b[7]:"";i.setWidth&&e.css("width",i.setWidth),i.setHeight&&e.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===t.langDir?"989999px":i.setLeft,e.addClass(h+" _"+j+"_"+t.idx+l+d).wrapInner("<div id='mCSB_"+t.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+s+"'><div id='mCSB_"+t.idx+"_container' class='mCSB_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir='"+t.langDir+"' /></div>");var c=H("#mCSB_"+t.idx),p=H("#mCSB_"+t.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||p.css("width",m(p)),"outside"===i.scrollbarPosition?("static"===e.css("position")&&e.css("position","relative"),e.css("overflow","visible"),c.addClass("mCSB_outside").after(a)):(c.addClass("mCSB_inside").append(a),p.wrap(r)),S.call(this);var u=[H("#mCSB_"+t.idx+"_dragger_vertical"),H("#mCSB_"+t.idx+"_dragger_horizontal")];u[0].css("min-height",u[0].height()),u[1].css("min-width",u[1].width())},m=function(e){var t=[e[0].scrollWidth,Math.max.apply(Math,e.children().map(function(){return H(this).outerWidth(!0)}).get())],i=e.parent().width();return i<t[0]?t[0]:i<t[1]?t[1]:"100%"},w=function(){var e=H(this).data(j),t=e.opt,i=H("#mCSB_"+e.idx+"_container");if(t.advanced.autoExpandHorizontalScroll&&"y"!==t.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var o=Math.ceil(i[0].scrollWidth);3===t.advanced.autoExpandHorizontalScroll||2!==t.advanced.autoExpandHorizontalScroll&&o>i.parent().width()?i.css({width:o,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},S=function(){var e=H(this).data(j),t=e.opt,i=H(".mCSB_"+e.idx+"_scrollbar:first"),o=oe(t.scrollButtons.tabindex)?"tabindex='"+t.scrollButtons.tabindex+"'":"",n=["<a href='#' class='"+b[13]+"' "+o+" />","<a href='#' class='"+b[14]+"' "+o+" />","<a href='#' class='"+b[15]+"' "+o+" />","<a href='#' class='"+b[16]+"' "+o+" />"],s=["x"===t.axis?n[2]:n[0],"x"===t.axis?n[3]:n[1],n[2],n[3]];t.scrollButtons.enable&&i.prepend(s[0]).append(s[1]).next(".mCSB_scrollTools").prepend(s[2]).append(s[3])},x=function(){var e=H(this).data(j),t=H("#mCSB_"+e.idx),i=H("#mCSB_"+e.idx+"_container"),o=[H("#mCSB_"+e.idx+"_dragger_vertical"),H("#mCSB_"+e.idx+"_dragger_horizontal")],n=[t.height()/i.outerHeight(!1),t.width()/i.outerWidth(!1)],s=[parseInt(o[0].css("min-height")),Math.round(n[0]*o[0].parent().height()),parseInt(o[1].css("min-width")),Math.round(n[1]*o[1].parent().width())],a=v&&s[1]<s[0]?s[0]:s[1],r=v&&s[3]<s[2]?s[2]:s[3];o[0].css({height:a,"max-height":o[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":s[0]+"px"}),o[1].css({width:r,"max-width":o[1].parent().width()-10})},y=function(){var e=H(this).data(j),t=H("#mCSB_"+e.idx),i=H("#mCSB_"+e.idx+"_container"),o=[H("#mCSB_"+e.idx+"_dragger_vertical"),H("#mCSB_"+e.idx+"_dragger_horizontal")],n=[i.outerHeight(!1)-t.height(),i.outerWidth(!1)-t.width()],s=[n[0]/(o[0].parent().height()-o[0].height()),n[1]/(o[1].parent().width()-o[1].width())];e.scrollRatio={y:s[0],x:s[1]}},$=function(e,t,i){var o=i?b[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(b[0]+" "+o),n.toggleClass(b[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(b[0]),n.removeClass(b[1])):(e.addClass(b[0]),n.addClass(b[1])))},k=function(){var e=H(this).data(j),t=H("#mCSB_"+e.idx),i=H("#mCSB_"+e.idx+"_container"),o=null==e.overflowed?i.height():i.outerHeight(!1),n=null==e.overflowed?i.width():i.outerWidth(!1),s=i[0].scrollHeight,a=i[0].scrollWidth;return o<s&&(o=s),n<a&&(n=a),[o>t.height(),n>t.width()]},C=function(){var e=H(this),t=e.data(j),i=t.opt,o=H("#mCSB_"+t.idx),n=H("#mCSB_"+t.idx+"_container"),s=[H("#mCSB_"+t.idx+"_dragger_vertical"),H("#mCSB_"+t.idx+"_dragger_horizontal")];if(Z(e),("x"!==i.axis&&!t.overflowed[0]||"y"===i.axis&&t.overflowed[0])&&(s[0].add(n).css("top",0),G(e,"_resetY")),"y"!==i.axis&&!t.overflowed[1]||"x"===i.axis&&t.overflowed[1]){var a=dx=0;"rtl"===t.langDir&&(a=o.width()-n.outerWidth(!1),dx=Math.abs(a/t.scrollRatio.x)),n.css("left",a),s[1].css("left",dx),G(e,"_resetX")}},T=function(){var t,i=H(this),e=i.data(j),o=e.opt;e.bindEvents||(a.call(this),o.contentTouchScroll&&I.call(this),A.call(this),o.mouseWheel.enable&&function e(){t=setTimeout(function(){H.event.special.mousewheel?(clearTimeout(t),E.call(i[0])):e()},100)}(),D.call(this),F.call(this),o.advanced.autoScrollOnFocus&&B.call(this),o.scrollButtons.enable&&U.call(this),o.keyboard.enable&&N.call(this),e.bindEvents=!0)},_=function(){var e=H(this),t=e.data(j),i=t.opt,o="mCS_"+t.idx,n=".mCSB_"+t.idx+"_scrollbar",s=H("#mCSB_"+t.idx+",#mCSB_"+t.idx+"_container,#mCSB_"+t.idx+"_container_wrapper,"+n+" ."+b[12]+",#mCSB_"+t.idx+"_dragger_vertical,#mCSB_"+t.idx+"_dragger_horizontal,"+n+">a"),a=H("#mCSB_"+t.idx+"_container");i.advanced.releaseDraggableSelectors&&s.add(H(i.advanced.releaseDraggableSelectors)),i.advanced.extraDraggableSelectors&&s.add(H(i.advanced.extraDraggableSelectors)),t.bindEvents&&(H(document).add(H(!R()||top.document)).unbind("."+o),s.each(function(){H(this).unbind("."+o)}),clearTimeout(e[0]._focusTimeout),ee(e[0],"_focusTimeout"),clearTimeout(t.sequential.step),ee(t.sequential,"step"),clearTimeout(a[0].onCompleteTimeout),ee(a[0],"onCompleteTimeout"),t.bindEvents=!1)},M=function(e){var t=H(this),i=t.data(j),o=i.opt,n=H("#mCSB_"+i.idx+"_container_wrapper"),s=n.length?n:H("#mCSB_"+i.idx+"_container"),a=[H("#mCSB_"+i.idx+"_scrollbar_vertical"),H("#mCSB_"+i.idx+"_scrollbar_horizontal")],r=[a[0].find(".mCSB_dragger"),a[1].find(".mCSB_dragger")];"x"!==o.axis&&(i.overflowed[0]&&!e?(a[0].add(r[0]).add(a[0].children("a")).css("display","block"),s.removeClass(b[8]+" "+b[10])):(o.alwaysShowScrollbar?(2!==o.alwaysShowScrollbar&&r[0].css("display","none"),s.removeClass(b[10])):(a[0].css("display","none"),s.addClass(b[10])),s.addClass(b[8]))),"y"!==o.axis&&(i.overflowed[1]&&!e?(a[1].add(r[1]).add(a[1].children("a")).css("display","block"),s.removeClass(b[9]+" "+b[11])):(o.alwaysShowScrollbar?(2!==o.alwaysShowScrollbar&&r[1].css("display","none"),s.removeClass(b[11])):(a[1].css("display","none"),s.addClass(b[11])),s.addClass(b[9]))),i.overflowed[0]||i.overflowed[1]?t.removeClass(b[5]):t.addClass(b[5])},q=function(e){var t=e.type,i=e.target.ownerDocument!==document&&null!==frameElement?[H(frameElement).offset().top,H(frameElement).offset().left]:null,o=R()&&e.target.ownerDocument!==top.document&&null!==frameElement?[H(e.view.frameElement).offset().top,H(e.view.frameElement).offset().left]:[0,0];switch(t){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return i?[e.originalEvent.pageY-i[0]+o[0],e.originalEvent.pageX-i[1]+o[1],!1]:[e.originalEvent.pageY,e.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var n=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],s=e.originalEvent.touches.length||e.originalEvent.changedTouches.length;return e.target.ownerDocument!==document?[n.screenY,n.screenX,1<s]:[n.pageY,n.pageX,1<s];default:return i?[e.pageY-i[0]+o[0],e.pageX-i[1]+o[1],!1]:[e.pageY,e.pageX,!1]}},a=function(){function n(e,t,i,o){if(h[0].idleTimer=p.scrollInertia<233?250:0,a.attr("id")===u[1])var n="x",s=(a[0].offsetLeft-t+o)*c.scrollRatio.x;else var n="y",s=(a[0].offsetTop-e+i)*c.scrollRatio.y;G(d,s.toString(),{dir:n,drag:!0})}var a,r,l,d=H(this),c=d.data(j),p=c.opt,e="mCS_"+c.idx,u=["mCSB_"+c.idx+"_dragger_vertical","mCSB_"+c.idx+"_dragger_horizontal"],h=H("#mCSB_"+c.idx+"_container"),t=H("#"+u[0]+",#"+u[1]),i=p.advanced.releaseDraggableSelectors?t.add(H(p.advanced.releaseDraggableSelectors)):t,o=p.advanced.extraDraggableSelectors?H(!R()||top.document).add(H(p.advanced.extraDraggableSelectors)):H(!R()||top.document);t.bind("contextmenu."+e,function(e){e.preventDefault()}).bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(e){if(e.stopImmediatePropagation(),e.preventDefault(),te(e)){W=!0,v&&(document.onselectstart=function(){return!1}),z.call(h,!1),Z(d);var t=(a=H(this)).offset(),i=q(e)[0]-t.top,o=q(e)[1]-t.left,n=a.height()+t.top,s=a.width()+t.left;i<n&&0<i&&o<s&&0<o&&(r=i,l=o),$(a,"active",p.autoExpandScrollbar)}}).bind("touchmove."+e,function(e){e.stopImmediatePropagation(),e.preventDefault();var t=a.offset(),i=q(e)[0]-t.top,o=q(e)[1]-t.left;n(r,l,i,o)}),H(document).add(o).bind("mousemove."+e+" pointermove."+e+" MSPointerMove."+e,function(e){if(a){var t=a.offset(),i=q(e)[0]-t.top,o=q(e)[1]-t.left;if(r===i&&l===o)return;n(r,l,i,o)}}).add(i).bind("mouseup."+e+" touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(){a&&($(a,"active",p.autoExpandScrollbar),a=null),W=!1,v&&(document.onselectstart=null),z.call(h,!0)})},I=function(){function t(e){if(!ie(e)||W||q(e)[2])L=0;else{C=k=0,u=L=1,T.removeClass("mCS_touch_action");var t=I.offset();d=q(e)[0]-t.top,h=q(e)[1]-t.left,D=[q(e)[0],q(e)[1]]}}function i(e){if(ie(e)&&!W&&!q(e)[2]&&($.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!C||k)&&u)){m=J();var t=M.offset(),i=q(e)[0]-t.top,o=q(e)[1]-t.left,n="mcsLinearOut";if(E.push(i),P.push(o),D[2]=Math.abs(q(e)[0]-D[0]),D[3]=Math.abs(q(e)[1]-D[1]),_.overflowed[0])var s=A[0].parent().height()-A[0].height(),a=0<d-i&&i-d>-s*_.scrollRatio.y&&(2*D[3]<D[2]||"yx"===$.axis);if(_.overflowed[1])var r=A[1].parent().width()-A[1].width(),l=0<h-o&&o-h>-r*_.scrollRatio.x&&(2*D[2]<D[3]||"yx"===$.axis);a||l?(B||e.preventDefault(),k=1):(C=1,T.addClass("mCS_touch_action")),B&&e.preventDefault(),b="yx"===$.axis?[d-i,h-o]:"x"===$.axis?[null,h-o]:[d-i,null],I[0].idleTimer=250,_.overflowed[0]&&p(b[0],z,n,"y","all",!0),_.overflowed[1]&&p(b[1],z,n,"x",O,!0)}}function o(e){if(!ie(e)||W||q(e)[2])L=0;else{L=1,e.stopImmediatePropagation(),Z(T),v=J();var t=M.offset();f=q(e)[0]-t.top,g=q(e)[1]-t.left,E=[],P=[]}}function n(e){if(ie(e)&&!W&&!q(e)[2]){u=0,e.stopImmediatePropagation(),C=k=0,w=J();var t=M.offset(),i=q(e)[0]-t.top,o=q(e)[1]-t.left;if(!(30<w-m)){var n="mcsEaseOut",s=(x=1e3/(w-v))<2.5,a=s?[E[E.length-2],P[P.length-2]]:[0,0];S=s?[i-a[0],o-a[1]]:[i-f,o-g];var r=[Math.abs(S[0]),Math.abs(S[1])];x=s?[Math.abs(S[0]/4),Math.abs(S[1]/4)]:[x,x];var l=[Math.abs(I[0].offsetTop)-S[0]*c(r[0]/x[0],x[0]),Math.abs(I[0].offsetLeft)-S[1]*c(r[1]/x[1],x[1])];b="yx"===$.axis?[l[0],l[1]]:"x"===$.axis?[null,l[1]]:[l[0],null],y=[4*r[0]+$.scrollInertia,4*r[1]+$.scrollInertia];var d=parseInt($.contentTouchScroll)||0;b[0]=d<r[0]?b[0]:0,b[1]=d<r[1]?b[1]:0,_.overflowed[0]&&p(b[0],y[0],n,"y",O,!1),_.overflowed[1]&&p(b[1],y[1],n,"x",O,!1)}}}function c(e,t){var i=[1.5*t,2*t,t/1.5,t/2];return 90<e?4<t?i[0]:i[3]:60<e?3<t?i[3]:i[2]:30<e?8<t?i[1]:6<t?i[0]:4<t?t:i[2]:8<t?t:i[3]}function p(e,t,i,o,n,s){e&&G(T,e.toString(),{dur:t,scrollEasing:i,dir:o,overwrite:n,drag:s})}var u,d,h,f,g,v,m,w,S,x,b,y,k,C,T=H(this),_=T.data(j),$=_.opt,e="mCS_"+_.idx,M=H("#mCSB_"+_.idx),I=H("#mCSB_"+_.idx+"_container"),A=[H("#mCSB_"+_.idx+"_dragger_vertical"),H("#mCSB_"+_.idx+"_dragger_horizontal")],E=[],P=[],z=0,O="yx"===$.axis?"none":"all",D=[],s=I.find("iframe"),a=["touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,"touchmove."+e+" pointermove."+e+" MSPointerMove."+e,"touchend."+e+" pointerup."+e+" MSPointerUp."+e],B=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;I.bind(a[0],function(e){t(e)}).bind(a[1],function(e){i(e)}),M.bind(a[0],function(e){o(e)}).bind(a[2],function(e){n(e)}),s.length&&s.each(function(){H(this).bind("load",function(){R(this)&&H(this.contentDocument||this.contentWindow.document).bind(a[0],function(e){t(e),o(e)}).bind(a[1],function(e){i(e)}).bind(a[2],function(e){n(e)})})})},A=function(){function n(e,t,i){l.type=i&&s?"stepped":"stepless",l.scrollAmount=10,X(o,e,t,"mcsLinearOut",i?60:null)}var s,o=H(this),a=o.data(j),r=a.opt,l=a.sequential,e="mCS_"+a.idx,d=H("#mCSB_"+a.idx+"_container"),c=d.parent();d.bind("mousedown."+e,function(){L||s||(s=1,W=!0)}).add(document).bind("mousemove."+e,function(e){if(!L&&s&&(window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&document.selection.createRange().text)){var t=d.offset(),i=q(e)[0]-t.top+d[0].offsetTop,o=q(e)[1]-t.left+d[0].offsetLeft;0<i&&i<c.height()&&0<o&&o<c.width()?l.step&&n("off",null,"stepped"):("x"!==r.axis&&a.overflowed[0]&&(i<0?n("on",38):i>c.height()&&n("on",40)),"y"!==r.axis&&a.overflowed[1]&&(o<0?n("on",37):o>c.width()&&n("on",39)))}}).bind("mouseup."+e+" dragend."+e,function(){L||(s&&(s=0,n("off",null)),W=!1)})},E=function(){function i(e,t){if(Z(p),!O(p,e.target)){var i="auto"!==h.mouseWheel.deltaFactor?parseInt(h.mouseWheel.deltaFactor):v&&e.deltaFactor<100?100:e.deltaFactor||100,o=h.scrollInertia;if("x"===h.axis||"x"===h.mouseWheel.axis)var n="x",s=[Math.round(i*u.scrollRatio.x),parseInt(h.mouseWheel.scrollAmount)],a="auto"!==h.mouseWheel.scrollAmount?s[1]:s[0]>=f.width()?.9*f.width():s[0],r=Math.abs(H("#mCSB_"+u.idx+"_container")[0].offsetLeft),l=g[1][0].offsetLeft,d=g[1].parent().width()-g[1].width(),c="y"===h.mouseWheel.axis?e.deltaY||t:e.deltaX;else var n="y",s=[Math.round(i*u.scrollRatio.y),parseInt(h.mouseWheel.scrollAmount)],a="auto"!==h.mouseWheel.scrollAmount?s[1]:s[0]>=f.height()?.9*f.height():s[0],r=Math.abs(H("#mCSB_"+u.idx+"_container")[0].offsetTop),l=g[0][0].offsetTop,d=g[0].parent().height()-g[0].height(),c=e.deltaY||t;"y"===n&&!u.overflowed[0]||"x"===n&&!u.overflowed[1]||((h.mouseWheel.invert||e.webkitDirectionInvertedFromDevice)&&(c=-c),h.mouseWheel.normalizeDelta&&(c=c<0?-1:1),(0<c&&0!==l||c<0&&l!==d||h.mouseWheel.preventDefault)&&(e.stopImmediatePropagation(),e.preventDefault()),e.deltaFactor<5&&!h.mouseWheel.normalizeDelta&&(a=e.deltaFactor,o=17),G(p,(r-c*a).toString(),{dir:n,dur:o}))}}if(H(this).data(j)){var p=H(this),u=p.data(j),h=u.opt,e="mCS_"+u.idx,f=H("#mCSB_"+u.idx),g=[H("#mCSB_"+u.idx+"_dragger_vertical"),H("#mCSB_"+u.idx+"_dragger_horizontal")],t=H("#mCSB_"+u.idx+"_container").find("iframe");t.length&&t.each(function(){H(this).bind("load",function(){R(this)&&H(this.contentDocument||this.contentWindow.document).bind("mousewheel."+e,function(e,t){i(e,t)})})}),f.bind("mousewheel."+e,function(e,t){i(e,t)})}},P=new Object,R=function(e){var t=!1,i=!1,o=null;if(void 0===e?i="#empty":void 0!==H(e).attr("id")&&(i=H(e).attr("id")),!1!==i&&void 0!==P[i])return P[i];if(e){try{o=(n=e.contentDocument||e.contentWindow.document).body.innerHTML}catch(e){}t=null!==o}else{try{var n=top.document;o=n.body.innerHTML}catch(e){}t=null!==o}return!1!==i&&(P[i]=t),t},z=function(e){var t=this.find("iframe");if(t.length){var i=e?"auto":"none";t.css("pointer-events",i)}},O=function(e,t){var i=t.nodeName.toLowerCase(),o=e.data(j).opt.mouseWheel.disableOver;return-1<H.inArray(i,o)&&!(-1<H.inArray(i,["select","textarea"])&&!H(t).is(":focus"))},D=function(){var a,r=H(this),l=r.data(j),e="mCS_"+l.idx,d=H("#mCSB_"+l.idx+"_container"),c=d.parent();H(".mCSB_"+l.idx+"_scrollbar ."+b[12]).bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e,function(e){W=!0,H(e.target).hasClass("mCSB_dragger")||(a=1)}).bind("touchend."+e+" pointerup."+e+" MSPointerUp."+e,function(){W=!1}).bind("click."+e,function(e){if(a&&(a=0,H(e.target).hasClass(b[12])||H(e.target).hasClass("mCSB_draggerRail"))){Z(r);var t=H(this),i=t.find(".mCSB_dragger");if(0<t.parent(".mCSB_scrollTools_horizontal").length){if(!l.overflowed[1])return;var o="x",n=e.pageX>i.offset().left?-1:1,s=Math.abs(d[0].offsetLeft)-n*(.9*c.width())}else{if(!l.overflowed[0])return;var o="y",n=e.pageY>i.offset().top?-1:1,s=Math.abs(d[0].offsetTop)-n*(.9*c.height())}G(r,s.toString(),{dir:o,scrollEasing:"mcsEaseInOut"})}})},B=function(){var s=H(this),e=s.data(j),a=e.opt,t="mCS_"+e.idx,r=H("#mCSB_"+e.idx+"_container"),l=r.parent();r.bind("focusin."+t,function(){var n=H(document.activeElement),e=r.find(".mCustomScrollBox").length;n.is(a.advanced.autoScrollOnFocus)&&(Z(s),clearTimeout(s[0]._focusTimeout),s[0]._focusTimer=e?17*e:0,s[0]._focusTimeout=setTimeout(function(){var e=[ne(n)[0],ne(n)[1]],t=[r[0].offsetTop,r[0].offsetLeft],i=[0<=t[0]+e[0]&&t[0]+e[0]<l.height()-n.outerHeight(!1),0<=t[1]+e[1]&&t[0]+e[1]<l.width()-n.outerWidth(!1)],o="yx"!==a.axis||i[0]||i[1]?"all":"none";"x"===a.axis||i[0]||G(s,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:o,dur:0}),"y"===a.axis||i[1]||G(s,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:o,dur:0})},s[0]._focusTimer))})},F=function(){var e=H(this).data(j),t="mCS_"+e.idx,i=H("#mCSB_"+e.idx+"_container").parent();i.bind("scroll."+t,function(){0===i.scrollTop()&&0===i.scrollLeft()||H(".mCSB_"+e.idx+"_scrollbar").css("visibility","hidden")})},U=function(){var o=H(this),n=o.data(j),s=n.opt,a=n.sequential,e="mCS_"+n.idx,t=".mCSB_"+n.idx+"_scrollbar";H(t+">a").bind("contextmenu."+e,function(e){e.preventDefault()}).bind("mousedown."+e+" touchstart."+e+" pointerdown."+e+" MSPointerDown."+e+" mouseup."+e+" touchend."+e+" pointerup."+e+" MSPointerUp."+e+" mouseout."+e+" pointerout."+e+" MSPointerOut."+e+" click."+e,function(e){function t(e,t){a.scrollAmount=s.scrollButtons.scrollAmount,X(o,e,t)}if(e.preventDefault(),te(e)){var i=H(this).attr("class");switch(a.type=s.scrollButtons.scrollType,e.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===a.type)return;W=!0,n.tweenRunning=!1,t("on",i);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===a.type)return;W=!1,a.dir&&t("off",i);break;case"click":if("stepped"!==a.type||n.tweenRunning)return;t("on",i)}}})},N=function(){function t(e){function t(e,t){c.type=d.keyboard.scrollType,c.scrollAmount=d.keyboard.scrollAmount,"stepped"===c.type&&l.tweenRunning||X(r,e,t)}switch(e.type){case"blur":l.tweenRunning&&c.dir&&t("off",null);break;case"keydown":case"keyup":var i=e.keyCode?e.keyCode:e.which,o="on";if("x"!==d.axis&&(38===i||40===i)||"y"!==d.axis&&(37===i||39===i)){if((38===i||40===i)&&!l.overflowed[0]||(37===i||39===i)&&!l.overflowed[1])return;"keyup"===e.type&&(o="off"),H(document.activeElement).is(h)||(e.preventDefault(),e.stopImmediatePropagation(),t(o,i))}else if(33===i||34===i){if((l.overflowed[0]||l.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type){Z(r);var n=34===i?-1:1;if("x"===d.axis||"yx"===d.axis&&l.overflowed[1]&&!l.overflowed[0])var s="x",a=Math.abs(p[0].offsetLeft)-n*(.9*u.width());else var s="y",a=Math.abs(p[0].offsetTop)-n*(.9*u.height());G(r,a.toString(),{dir:s,scrollEasing:"mcsEaseInOut"})}}else if((35===i||36===i)&&!H(document.activeElement).is(h)&&((l.overflowed[0]||l.overflowed[1])&&(e.preventDefault(),e.stopImmediatePropagation()),"keyup"===e.type)){if("x"===d.axis||"yx"===d.axis&&l.overflowed[1]&&!l.overflowed[0])var s="x",a=35===i?Math.abs(u.width()-p.outerWidth(!1)):0;else var s="y",a=35===i?Math.abs(u.height()-p.outerHeight(!1)):0;G(r,a.toString(),{dir:s,scrollEasing:"mcsEaseInOut"})}}}var r=H(this),l=r.data(j),d=l.opt,c=l.sequential,e="mCS_"+l.idx,i=H("#mCSB_"+l.idx),p=H("#mCSB_"+l.idx+"_container"),u=p.parent(),h="input,textarea,select,datalist,keygen,[contenteditable='true']",o=p.find("iframe"),n=["blur."+e+" keydown."+e+" keyup."+e];o.length&&o.each(function(){H(this).bind("load",function(){R(this)&&H(this.contentDocument||this.contentWindow.document).bind(n[0],function(e){t(e)})})}),i.attr("tabindex","0").bind(n[0],function(e){t(e)})},X=function(p,e,t,u,h){function f(e){v.snapAmount&&(m.scrollAmount=v.snapAmount instanceof Array?"x"===m.dir[0]?v.snapAmount[1]:v.snapAmount[0]:v.snapAmount);var t="stepped"!==m.type,i=h||(e?t?S/1.5:x:1e3/60),o=e?t?7.5:40:2.5,n=[Math.abs(w[0].offsetTop),Math.abs(w[0].offsetLeft)],s=[10<g.scrollRatio.y?10:g.scrollRatio.y,10<g.scrollRatio.x?10:g.scrollRatio.x],a="x"===m.dir[0]?n[1]+m.dir[1]*(s[1]*o):n[0]+m.dir[1]*(s[0]*o),r="x"===m.dir[0]?n[1]+m.dir[1]*parseInt(m.scrollAmount):n[0]+m.dir[1]*parseInt(m.scrollAmount),l="auto"!==m.scrollAmount?r:a,d=u||(e?t?"mcsLinearOut":"mcsEaseInOut":"mcsLinear"),c=!!e;return e&&i<17&&(l="x"===m.dir[0]?n[1]:n[0]),G(p,l.toString(),{dir:m.dir[0],scrollEasing:d,dur:i,onComplete:c}),e?void(m.dir=!1):(clearTimeout(m.step),void(m.step=setTimeout(function(){f()},i)))}var g=p.data(j),v=g.opt,m=g.sequential,w=H("#mCSB_"+g.idx+"_container"),i="stepped"===m.type,S=v.scrollInertia<26?26:v.scrollInertia,x=v.scrollInertia<1?17:v.scrollInertia;switch(e){case"on":if(m.dir=[t===b[16]||t===b[15]||39===t||37===t?"x":"y",t===b[13]||t===b[15]||38===t||37===t?-1:1],Z(p),oe(t)&&"stepped"===m.type)return;f(i);break;case"off":clearTimeout(m.step),ee(m,"step"),Z(p),(i||g.tweenRunning&&m.dir)&&f(!0)}},Y=function(e){var t=H(this).data(j).opt,i=[];return"function"==typeof e&&(e=e()),e instanceof Array?i=1<e.length?[e[0],e[1]]:"x"===t.axis?[null,e[0]]:[e[0],null]:(i[0]=e.y?e.y:e.x||"x"===t.axis?null:e,i[1]=e.x?e.x:e.y||"y"===t.axis?null:e),"function"==typeof i[0]&&(i[0]=i[0]()),"function"==typeof i[1]&&(i[1]=i[1]()),i},Q=function(e,t){if(null!=e&&void 0!==e){var i=H(this),o=i.data(j),n=o.opt,s=H("#mCSB_"+o.idx+"_container"),a=s.parent(),r=typeof e;t||(t="x"===n.axis?"x":"y");var l="x"===t?s.outerWidth(!1)-a.width():s.outerHeight(!1)-a.height(),d="x"===t?s[0].offsetLeft:s[0].offsetTop,c="x"===t?"left":"top";switch(r){case"function":return e();case"object":if(!(u=e.jquery?e:H(e)).length)return;return"x"===t?ne(u)[1]:ne(u)[0];case"string":case"number":if(oe(e))return Math.abs(e);if(-1!==e.indexOf("%"))return Math.abs(l*parseInt(e)/100);if(-1!==e.indexOf("-="))return Math.abs(d-parseInt(e.split("-=")[1]));if(-1!==e.indexOf("+=")){var p=d+parseInt(e.split("+=")[1]);return 0<=p?0:Math.abs(p)}if(-1!==e.indexOf("px")&&oe(e.split("px")[0]))return Math.abs(e.split("px")[0]);if("top"===e||"left"===e)return 0;if("bottom"===e)return Math.abs(a.height()-s.outerHeight(!1));if("right"===e)return Math.abs(a.width()-s.outerWidth(!1));if("first"===e||"last"===e){var u=s.find(":"+e);return"x"===t?ne(u)[1]:ne(u)[0]}return H(e).length?"x"===t?ne(H(e))[1]:ne(H(e))[0]:(s.css(c,e),void f.update.call(null,i[0]))}}},V=function(e){function t(e){if(H(e).hasClass(b[2]))o();else{var t=new Image;t.onload=(i=t,function(){return function(){this.onload=null,H(e).addClass(b[2]),o(2)}.apply(i,arguments)}),t.src=e.src}var i}function o(e){clearTimeout(a[0].autoUpdate),f.update.call(null,i[0],e)}var i=H(this),n=i.data(j),s=n.opt,a=H("#mCSB_"+n.idx+"_container");return e?(clearTimeout(a[0].autoUpdate),void ee(a[0],"autoUpdate")):void function e(){return clearTimeout(a[0].autoUpdate),0===i.parents("html").length?void(i=null):void(a[0].autoUpdate=setTimeout(function(){return s.advanced.updateOnSelectorChange&&(n.poll.change.n=function(){!0===s.advanced.updateOnSelectorChange&&(s.advanced.updateOnSelectorChange="*");var e=0,t=a.find(s.advanced.updateOnSelectorChange);return s.advanced.updateOnSelectorChange&&0<t.length&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}(),n.poll.change.n!==n.poll.change.o)?(n.poll.change.o=n.poll.change.n,void o(3)):s.advanced.updateOnContentResize&&(n.poll.size.n=i[0].scrollHeight+i[0].scrollWidth+a[0].offsetHeight+i[0].offsetHeight+i[0].offsetWidth,n.poll.size.n!==n.poll.size.o)?(n.poll.size.o=n.poll.size.n,void o(1)):!s.advanced.updateOnImageLoad||"auto"===s.advanced.updateOnImageLoad&&"y"===s.axis||(n.poll.img.n=a.find("img").length,n.poll.img.n===n.poll.img.o)?void((s.advanced.updateOnSelectorChange||s.advanced.updateOnContentResize||s.advanced.updateOnImageLoad)&&e()):(n.poll.img.o=n.poll.img.n,void a.find("img").each(function(){t(this)}))},s.advanced.autoUpdateTimeout))}()},Z=function(e){var t=e.data(j);H("#mCSB_"+t.idx+"_container,#mCSB_"+t.idx+"_container_wrapper,#mCSB_"+t.idx+"_dragger_vertical,#mCSB_"+t.idx+"_dragger_horizontal").each(function(){i.call(this)})},G=function(n,e,s){function t(e){return l&&d.callbacks[e]&&"function"==typeof d.callbacks[e]}function i(){var e=[h[0].offsetTop,h[0].offsetLeft],t=[w[0].offsetTop,w[0].offsetLeft],i=[h.outerHeight(!1),h.outerWidth(!1)],o=[u.height(),u.width()];n[0].mcs={content:h,top:e[0],left:e[1],draggerTop:t[0],draggerLeft:t[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(i[0])-o[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(i[1])-o[1])),direction:s.dir}}var o,a,r,l=n.data(j),d=l.opt,c={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:d.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},p=[(s=H.extend(c,s)).dur,s.drag?0:s.dur],u=H("#mCSB_"+l.idx),h=H("#mCSB_"+l.idx+"_container"),f=h.parent(),g=d.callbacks.onTotalScrollOffset?Y.call(n,d.callbacks.onTotalScrollOffset):[0,0],v=d.callbacks.onTotalScrollBackOffset?Y.call(n,d.callbacks.onTotalScrollBackOffset):[0,0];if(l.trigger=s.trigger,0===f.scrollTop()&&0===f.scrollLeft()||(H(".mCSB_"+l.idx+"_scrollbar").css("visibility","visible"),f.scrollTop(0).scrollLeft(0)),"_resetY"!==e||l.contentReset.y||(t("onOverflowYNone")&&d.callbacks.onOverflowYNone.call(n[0]),l.contentReset.y=1),"_resetX"!==e||l.contentReset.x||(t("onOverflowXNone")&&d.callbacks.onOverflowXNone.call(n[0]),l.contentReset.x=1),"_resetY"!==e&&"_resetX"!==e){if(!l.contentReset.y&&n[0].mcs||!l.overflowed[0]||(t("onOverflowY")&&d.callbacks.onOverflowY.call(n[0]),l.contentReset.x=null),!l.contentReset.x&&n[0].mcs||!l.overflowed[1]||(t("onOverflowX")&&d.callbacks.onOverflowX.call(n[0]),l.contentReset.x=null),d.snapAmount){var m=d.snapAmount instanceof Array?"x"===s.dir?d.snapAmount[1]:d.snapAmount[0]:d.snapAmount;o=e,a=m,r=d.snapOffset,e=Math.round(o/a)*a-r}switch(s.dir){case"x":var w=H("#mCSB_"+l.idx+"_dragger_horizontal"),S="left",x=h[0].offsetLeft,b=[u.width()-h.outerWidth(!1),w.parent().width()-w.width()],y=[e,0===e?0:e/l.scrollRatio.x],k=g[1],C=v[1],T=0<k?k/l.scrollRatio.x:0,_=0<C?C/l.scrollRatio.x:0;break;case"y":var w=H("#mCSB_"+l.idx+"_dragger_vertical"),S="top",x=h[0].offsetTop,b=[u.height()-h.outerHeight(!1),w.parent().height()-w.height()],y=[e,0===e?0:e/l.scrollRatio.y],k=g[0],C=v[0],T=0<k?k/l.scrollRatio.y:0,_=0<C?C/l.scrollRatio.y:0}y[1]<0||0===y[0]&&0===y[1]?y=[0,0]:y[1]>=b[1]?y=[b[0],b[1]]:y[0]=-y[0],n[0].mcs||(i(),t("onInit")&&d.callbacks.onInit.call(n[0])),clearTimeout(h[0].onCompleteTimeout),K(w[0],S,Math.round(y[1]),p[1],s.scrollEasing),!l.tweenRunning&&(0===x&&0<=y[0]||x===b[0]&&y[0]<=b[0])||K(h[0],S,Math.round(y[0]),p[0],s.scrollEasing,s.overwrite,{onStart:function(){s.callbacks&&s.onStart&&!l.tweenRunning&&(t("onScrollStart")&&(i(),d.callbacks.onScrollStart.call(n[0])),l.tweenRunning=!0,$(w),l.cbOffsets=[d.callbacks.alwaysTriggerOffsets||x>=b[0]+k,d.callbacks.alwaysTriggerOffsets||x<=-C])},onUpdate:function(){s.callbacks&&s.onUpdate&&t("whileScrolling")&&(i(),d.callbacks.whileScrolling.call(n[0]))},onComplete:function(){if(s.callbacks&&s.onComplete){"yx"===d.axis&&clearTimeout(h[0].onCompleteTimeout);var e=h[0].idleTimer||0;h[0].onCompleteTimeout=setTimeout(function(){t("onScroll")&&(i(),d.callbacks.onScroll.call(n[0])),t("onTotalScroll")&&y[1]>=b[1]-T&&l.cbOffsets[0]&&(i(),d.callbacks.onTotalScroll.call(n[0])),t("onTotalScrollBack")&&y[1]<=_&&l.cbOffsets[1]&&(i(),d.callbacks.onTotalScrollBack.call(n[0])),l.tweenRunning=!1,h[0].idleTimer=0,$(w,"hide")},e)}}})}},K=function(e,t,i,o,n,s,a){function r(){0<o?(m.currVal=function(e,t,i,o,n){switch(n){case"linear":case"mcsLinear":return i*e/o+t;case"mcsLinearOut":return e/=o,e--,i*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return(e/=o/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t;case"easeInOutStrong":return(e/=o/2)<1?i/2*Math.pow(2,10*(e-1))+t:(e--,i/2*(2-Math.pow(2,-10*e))+t);case"easeInOut":case"mcsEaseInOut":return(e/=o/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t;case"easeOutSmooth":return e/=o,-i*(--e*e*e*e-1)+t;case"easeOutStrong":return i*(1-Math.pow(2,-10*e/o))+t;case"easeOut":case"mcsEaseOut":default:var s=(e/=o)*e,a=s*e;return t+i*(.499999999999997*a*s+-2.5*s*s+5.5*a+-6.5*s+4*e)}}(m.time,g,w,o,n),v[t]=Math.round(m.currVal)+"px"):v[t]=i+"px",p.call()}e._mTween||(e._mTween={top:{},left:{}});var l,d,c=(a=a||{}).onStart||function(){},p=a.onUpdate||function(){},u=a.onComplete||function(){},h=J(),f=0,g=e.offsetTop,v=e.style,m=e._mTween[t];"left"===t&&(g=e.offsetLeft);var w=i-g;m.stop=0,"none"!==s&&null!=m.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(m.id):clearTimeout(m.id),m.id=null),l=1e3/60,m.time=f+l,d=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return r(),setTimeout(e,.01)},m.id=d(function e(){m.stop||(f||c.call(),f=J()-h,r(),f>=m.time&&(m.time=f>m.time?f+l-(f-m.time):f+l-1,m.time<f+1&&(m.time=f+1)),m.time<o?m.id=d(e):u.call())})},J=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()},i=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],i=0;i<t.length;i++){var o=t[i];e._mTween[o].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[o].id):clearTimeout(e._mTween[o].id),e._mTween[o].id=null,e._mTween[o].stop=1)}},ee=function(t,i){try{delete t[i]}catch(e){t[i]=null}},te=function(e){return!(e.which&&1!==e.which)},ie=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},oe=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ne=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},se=function(){var e=function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}();return!!e&&document[e]},H.fn[h]=function(e){return f[e]?f[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void H.error("Method "+e+" does not exist"):f.init.apply(this,arguments)},H[h]=function(e){return f[e]?f[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void H.error("Method "+e+" does not exist"):f.init.apply(this,arguments)},H[h].defaults=n,window[h]=!0,H(window).bind("load",function(){H(o)[h](),H.extend(H.expr[":"],{mcsInView:H.expr[":"].mcsInView||function(e){var t,i,o=H(e),n=o.parents(".mCSB_container");if(n.length)return t=n.parent(),0<=(i=[n[0].offsetTop,n[0].offsetLeft])[0]+ne(o)[0]&&i[0]+ne(o)[0]<t.height()-o.outerHeight(!1)&&0<=i[1]+ne(o)[1]&&i[1]+ne(o)[1]<t.width()-o.outerWidth(!1)},mcsInSight:H.expr[":"].mcsInSight||function(e,t,i){var o,n,s,a,r=H(e),l=r.parents(".mCSB_container"),d="exact"===i[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(l.length)return o=[r.outerHeight(!1),r.outerWidth(!1)],s=[l[0].offsetTop+ne(r)[0],l[0].offsetLeft+ne(r)[1]],n=[l.parent()[0].offsetHeight,l.parent()[0].offsetWidth],s[0]-n[0]*(a=[o[0]<n[0]?d[0]:d[1],o[1]<n[1]?d[0]:d[1]])[0][0]<0&&0<=s[0]+o[0]-n[0]*a[0][1]&&s[1]-n[1]*a[1][0]<0&&0<=s[1]+o[1]-n[1]*a[1][1]},mcsOverflow:H.expr[":"].mcsOverflow||function(e){var t=H(e).data(j);if(t)return t.overflowed[0]||t.overflowed[1]}})})});