(function(){var t=this;t.N2_=t.N2_||{r:[],d:[]},t.N2R=t.N2R||function(){t.N2_.r.push(arguments)},t.N2D=t.N2D||function(){t.N2_.d.push(arguments)}}).call(window),N2D("SmartSliderBackgrounds",function(a,t){function e(t){this.device=null,this.slider=t,this.hasFixed=!1,this.lazyLoad=parseInt(t.parameters.lazyLoad),this.lazyLoadNeighbor=parseInt(t.parameters.lazyLoadNeighbor),this.loadDeferred=a.Deferred(),this.deviceDeferred=a.Deferred(),this.slider.stages.done("Resized",this.onResized.bind(this)),this.slider.stages.done("StarterSlide",this.onStarterSlide.bind(this))}return e.prototype.loadWithProgress=function(t){for(var e=0,i=this.loadDeferred,s=0;s').appendTo("body")),parseFloat(s.css("fontSize"))/10)+"rem"}}}),N2D("SmartSliderLoad",function(i,t){function e(t,e){this.parameters=i.extend({fade:1,scroll:0},e),this.deferred=i.Deferred(),this.slider=t,this.spinnerCouner=0,this.id=t.sliderElement.attr("id"),this.$window=i(window),this.spinner=i("#"+this.id+"-spinner"),this.$placeholder=i("#"+this.id+"-placeholder")}return e.prototype.start=function(){var i;this.parameters.scroll?(this.onScrollCallback=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.onScroll()):(this.parameters.fade&&(this.loadingArea=this.$placeholder,this.showSpinner("fadePlaceholder"),(i=this.spinner.find(".n2-ss-spinner-counter")).length&&(i.html("0%"),this.slider.stages.done("SlidesReady",function(){this.slider.backgrounds.loadDeferred.progress(function(t,e){i.html(Math.round(t/(e+1)*100)+"%")}.bind(this))}.bind(this)))),this.showSlider())},e.prototype.onScroll=function(){this.$window.scrollTop()+this.$window.height()>this.slider.sliderElement.offset().top+100&&(window.removeEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.showSlider())},e.prototype.loadLayerImages=function(){var t=i.Deferred();return this.slider.sliderElement.find(".n2-ss-layers-container").n2imagesLoaded().always(function(){t.resolve()}),t},e.prototype.showSlider=function(){this.slider.stages.done("ResizeFirst",this.stage1.bind(this))},e.prototype.stage1=function(){this.slider.responsive.isReadyToResize=!0,i.when.apply(i,this.slider.widgetDeferreds).done(this.stage2.bind(this))},e.prototype.stage2=function(){this.slider.responsive.doResize(),this.slider.finalizeStarterSlide(),i.when(this.slider.backgrounds.loadDeferred,this.loadLayerImages(),this.slider.stages.get("Fonts").getDeferred()).always(this.stage3.bind(this))},e.prototype.stage3=function(){this.slider.responsive.doResize(),this.slider.initLayerAnimations(),this.slider.stages.resolve("BeforeShow"),this.slider.widgets.onReady(),this.slider.responsive.alignElement.addClass("n2-ss-align-visible"),this.slider.sliderElement.addClass("n2-ss-loaded").removeClass("n2notransition"),this.spinner.find(".n2-ss-spinner-counter").html(""),this.removeSpinner("fadePlaceholder"),this.$placeholder.remove(),this.loadingArea=this.slider.sliderElement,i(window).scroll(),this.slider.stages.resolve("Show"),this.slider.startVisibilityCheck()},e.prototype.showSpinner=function(t){0===this.spinnerCouner&&this.spinner.appendTo(this.loadingArea).css("display",""),this.spinnerCouner++},e.prototype.removeSpinner=function(t){this.spinnerCouner--,this.spinnerCouner<=0&&(this.spinner.detach(),this.spinnerCouner=0)},e}),N2D("SmartSliderPlugins",function(t,i){function s(t){this.slider=t,this.plugins={}}s.prototype.add=function(t,e){this.plugins[t]=new e(this.slider)},s.prototype.get=function(t){return this.plugins[t]||!1};var n={},o=[];return{addPlugin:function(t,e){for(var i=0;i.7*e,n=!0;"partly-visible"===t.mode?(s&&(i.bottom<0||i.top>=i.height)||!s&&(i.bottom-i.height<0||0<=i.top-e+i.height))&&(n=!1):"not-visible"===t.mode&&(n=i.top-e<0&&0'+this.parameters.css+"").appendTo("head")},SmartSliderAbstract.prototype.onSliderHasDimension=function($sliderElement,parameters){this.stages.resolve("HasDimension"),this.killed=!1,this.isVisible=!0,n2const.isIE?$sliderElement.attr("data-ie",n2const.isIE):n2const.isEdge&&$sliderElement.attr("data-ie",n2const.isEdge),this.responsive=!1,this.mainAnimationLastChangeTime=0,this.currentSlide=null,this.currentRealSlide=null,this.staticSlides=[],this.slides=[],this.visibleRealSlides=[],this.visibleSlides=[],this.sliderElement=$sliderElement.data("ss",this),this.needBackgroundWrap=!1,this.blockCarousel=!1,this.parameters=$.extend({plugins:[],admin:!1,playWhenVisible:1,playWhenVisibleAt:.5,perspective:1e3,callbacks:"",autoplay:{},blockrightclick:!1,maintainSession:0,align:"normal",controls:{touch:"horizontal",keyboard:!1,mousewheel:!1,blockCarouselInteraction:1},hardwareAcceleration:!0,layerMode:{playOnce:0,playFirstLayer:1,mode:"skippable",inAnimation:"mainInEnd"},parallax:{enabled:0,mobile:0,horizontal:"mouse",vertical:"mouse",origin:"enter"},load:{},mainanimation:{},randomize:{randomize:0,randomizeFirst:0},responsive:{},lazyload:{enabled:0},postBackgroundAnimations:!1,initCallbacks:!1,dynamicHeight:0,titles:[],descriptions:[],backgroundParallax:{strength:0,tablet:0,mobile:0},alias:{id:0,smoothScroll:0,slideSwitch:0,scrollSpeed:400}},parameters),this.stages.resolve("Parameters"),this.disabled={layerAnimations:!1,layerSplitTextAnimations:!1,backgroundAnimations:!1,postBackgroundAnimations:!1},this.disableLayerAnimations!==undefined&&!0===this.disableLayerAnimations&&(this.disabled.layerAnimations=!0),n2const.isSamsungBrowser&&(this.disabled.layerSplitTextAnimations=!0,this.disabled.postBackgroundAnimations=!0),this.initCSS();try{eval(this.parameters.callbacks)}catch(t){console.error(t)}n2ss.makeReady(this.id,this),this.widgetDeferreds=[],this.sliderElement.on("addWidget",this.addWidget.bind(this)),this.isAdmin&&(this.changeTo=function(){}),this.load=new N2Classes.SmartSliderLoad(this,this.parameters.load),this.backgrounds=new N2Classes.SmartSliderBackgrounds(this),this.initSlides(),"function"==typeof this.parameters.initCallbacks&&this.parameters.initCallbacks.call(this,$),this.stages.done("VisibleSlides",this.onSlidesReady.bind(this)),this.initUI(),navigator.userAgent.match("UCBrowser")&&$("html").addClass("n2-ucbrowser")},SmartSliderAbstract.prototype.onSlidesReady=function(){this.stages.resolve("SlidesReady")},SmartSliderAbstract.prototype.initUI=function(){for(var i=0;ithis.realSlides.length-1?0:i+1]);this.widgets=new N2Classes.SmartSliderWidgets(this);var isHover=!1,hoverTimeout,eventName;if(this.sliderElement.on({universalenter:function(t){$(t.target).closest(".n2-full-screen-widget").length||(clearTimeout(hoverTimeout),isHover=!0,this.sliderElement.addClass("n2-hover"),this.widgets.setState("hover",!0))}.bind(this),universalleave:function(t){t.stopPropagation(),hoverTimeout=setTimeout(function(){isHover=!1,this.sliderElement.removeClass("n2-hover"),this.widgets.setState("hover",!1)}.bind(this),1e3)}.bind(this)}),this.parameters.carousel||this.initNotCarousel(),this.initHideArrow(),this.controls={},this.initMainAnimationWithLayerAnimation(),this.isAdmin||!this.parameters.parallax.enabled||!this.parameters.parallax.mobile&&(this.parameters.parallax.mobile||n2const.isMobile)||this.ready(function(){this.parallax=new N2Classes.LayerParallax(this,this.parameters.parallax),this.parallax.start(this.currentSlide),this.sliderElement.off(".parallax").on("SlideWillChange",function(t,e){this.parallax.start(e)}.bind(this))}.bind(this)),this.parameters.blockrightclick&&this.sliderElement.bind("contextmenu",function(t){t.preventDefault()}),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){try{var removeHoverClassCB=function(){this.sliderElement.removeClass("n2-has-hover"),this.sliderElement[0].removeEventListener("touchstart",removeHoverClassCB,!!window.n2const.passiveEvents&&{passive:!0})}.bind(this);this.sliderElement[0].addEventListener("touchstart",removeHoverClassCB,!!window.n2const.passiveEvents&&{passive:!0})}catch(t){}this.initControls(),this.stages.resolve("UIReady"),this.isAdmin||(eventName="click",this.hasTouch()&&(eventName="n2click"),this.sliderElement.find("[data-n2click]").each(function(i,el){var el=$(el);el.on(eventName,function(e){eval(el.data("n2click"))})}),this.sliderElement.find("[data-n2middleclick]").on("mousedown",function(e){var el=$(this);2!=e.which&&4!=e.which||(e.preventDefault(),eval(el.data("n2middleclick")))})),this.load.start(),this.sliderElement.keypress(function(t){32!==t.charCode&&13!==t.charCode||($target=$(t.target).filter('[role="button"],[tabindex]').not("a,input,select,textarea"),$target.length&&(t.preventDefault(),$(t.target).click().triggerHandler("n2Activate")))}).on("mouseleave",function(t){$(t.currentTarget).blur()})}},SmartSliderAbstract.prototype.initSlides=function(){for(var t=this.sliderElement.find(".n2-ss-slide"),e=0;e=this.slides.length:"previous"===t&&this.currentSlide.index-1<0},SmartSliderAbstract.prototype.initNotCarousel=function(){this.realSlides[0].setPrevious(!1),this.realSlides[this.realSlides.length-1].setNext(!1)},SmartSliderAbstract.prototype.initHideArrow=function(){var i=function(t){this.widgets.setState("nonCarouselFirst",!this.getUIPreviousSlide(t)),this.widgets.setState("nonCarouselLast",!this.getUINextSlide(t))}.bind(this);this.stages.done("StarterSlide",function(){i(this.currentSlide),this.sliderElement.on("SliderResize",function(){i(this.currentSlide)}.bind(this))}.bind(this)),this.sliderElement.on("SlideWillChange",function(t,e){i(e)})},SmartSliderAbstract.prototype.next=function(t,e){var i=this.currentSlide.getNext();return!(!i||!this.getUINextSlide(this.currentSlide))&&this.changeTo(i.index,!1,t,e)},SmartSliderAbstract.prototype.previous=function(t,e){var i=this.getUIPreviousSlide(this.currentSlide);return!!i&&this.changeTo(i.index,!0,t,e)},SmartSliderAbstract.prototype.isChangePossible=function(t){var e,i,s=!1;return"next"===t?(e=this.currentSlide.getNext())&&(s=e.index):"previous"!==t||(i=this.currentSlide.getPrevious())&&(s=i.index),!1!==s&&s!==this.currentSlide.index},SmartSliderAbstract.prototype.nextCarousel=function(t,e){return!!this.next(t,e)||this.changeTo(this.getFirstSlide().index,!1,t,e)},SmartSliderAbstract.prototype.getFirstSlide=function(){return this.slides[0].isVisible?this.slides[0]:this.slides[0].getNext()},SmartSliderAbstract.prototype.getSlideCount=function(){for(var t=0,e=0;ethis.currentSlide.index?this.changeTo(t,!1):this.changeTo(t,!0)},SmartSliderAbstract.prototype.changeTo=function(i,s,n,o){if((i=parseInt(i))===this.currentSlide.index)return!1;if(!this.slides[i].isVisible)return console.error("this slide is not visible on this device"),!1;this.trigger("SlideWillChange",[this.slides[i]]);var r=$.now();return $.when($.when.apply($,this.backgrounds.preLoadSlides(this.getVisibleSlides(this.slides[i]))),this.focus(n)).done(function(){var t,e;i!==this.currentSlide.index&&this.mainAnimationLastChangeTime<=r&&(this.mainAnimationLastChangeTime=r,"ended"===(t=this.mainAnimation.getState())?(n===undefined&&(n=!1),e=this.mainAnimation,o!==undefined&&(e=o),this._changeTo(i,s,n,o),e.changeTo(this.currentSlide,this.slides[i],s,n),this._changeCurrentSlide(i)):"initAnimation"!==t&&"playing"!==t||(this.sliderElement.off(".fastChange").one("mainAnimationComplete.fastChange",function(){this.changeTo.call(this,i,s,n,o)}.bind(this)),this.mainAnimation.timeScale(2*this.mainAnimation.timeScale())))}.bind(this)),!0},SmartSliderAbstract.prototype.setCurrentRealSlide=function(t){this.currentRealSlide=this.currentSlide=t},SmartSliderAbstract.prototype._changeCurrentSlide=function(t){this.setCurrentRealSlide(this.slides[t]),this.sliderElement.triggerHandler("sliderChangeCurrentSlide")},SmartSliderAbstract.prototype._changeTo=function(t,e,i,s){},SmartSliderAbstract.prototype.revertTo=function(t,e){this.slides[e].unsetActive(),this.slides[t].setActive(),this._changeCurrentSlide(t),this.trigger("SlideWillChange",[this.slides[t]])},SmartSliderAbstract.prototype.forceSetActiveSlide=function(t){t.setActive()},SmartSliderAbstract.prototype.forceUnsetActiveSlide=function(t){t.unsetActive()},SmartSliderAbstract.prototype.updateInsideSlides=function(t){for(var e=0;et?this.changeTo(t,!0,i):this.changeTo(t,!1,i):this.changeTo(t,!e,i))},SmartSliderAbstract.prototype.hide=function(){this.isVisible&&(this.responsive.alignElement.addClass("n2-ss-slider-has-no-slide"),this.load.$placeholder.addClass("n2-ss-slider-has-no-slide"),this.isVisible=!1)},SmartSliderAbstract.prototype.show=function(){this.isVisible||(this.responsive.alignElement.removeClass("n2-ss-slider-has-no-slide"),this.load.$placeholder.removeClass("n2-ss-slider-has-no-slide"),$(window).scroll(),this.isVisible=!0)},SmartSliderAbstract.prototype.startAutoplay=function(){return this.controlAutoplay!==undefined&&(this.controlAutoplay.setState("pausedSecondary",0),!0)},SmartSliderAbstract.prototype.pauseAutoplay=function(){return this.controlAutoplay!==undefined&&(this.controlAutoplay.setState("pausedSecondary",1),!0)},SmartSliderAbstract.prototype.initLayerAnimations=function(){for(var t=0;t