smartslider-frontend.min.js 128 KB
N2Require("SmartSliderBackgroundImages",[],[],function(e,t,i){function s(t){this.device=null,this.slider=t,this.lazyLoad=t.parameters.lazyLoad,this.lazyLoadNeighbor=t.parameters.lazyLoadNeighbor,this.deviceDeferred=e.Deferred(),this.slider.sliderElement.one("SliderDevice",e.proxy(this.onSlideDeviceChangedFirst,this)),this.slider.sliderElement.on("visibleSlidesChanged",e.proxy(this.onVisibleSlidesChanged,this)),this.slider.sliderElement.on("slideCountChanged",e.proxy(this.onVisibleSlidesChanged,this))}return s.prototype.whenWithProgress=function(t){for(var i=0,s=e.Deferred(),r=0;r<t.length;r++)e.when(t[r]).done(function(){s.notify(++i,t.length)});return e.when.apply(e,t).done(function(){s.resolveWith(null,arguments)}),s},s.prototype.getBackgroundImages=function(){for(var e=[],t=0;t<this.slider.realSlides.length;t++)e.push(this.slider.realSlides[t].backgroundImage);return e},s.prototype.onVisibleSlidesChanged=function(){1==this.lazyLoad?this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)):2==this.lazyLoad&&(this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)))},s.prototype.onSlideDeviceChangedFirst=function(t,i){this.onSlideDeviceChanged(t,i),this.deviceDeferred.resolve(),this.slider.sliderElement.on("SliderDevice",e.proxy(this.onSlideDeviceChanged,this)),this.preLoadSlides=this._preLoadSlides,1==this.lazyLoad?(this.preLoadSlides=this.preloadSlidesLazyNeighbor,this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide))):2==this.lazyLoad?(e(window).on("load",e.proxy(this.preLoadAll,this)),this.load=this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide))):this.load=this.whenWithProgress(this.preLoadAll())},s.prototype.onSlideDeviceChanged=function(e,t){this.device=t;for(var i=0;i<this.slider.realSlides.length;i++)this.slider.realSlides[i].backgroundImage&&this.slider.realSlides[i].backgroundImage.updateBackgroundToDevice(t)},s.prototype.preLoadAll=function(){for(var e=[],t=0;t<this.slider.realSlides.length;t++)e.push(this.slider.realSlides[t].preLoad());return e},s.prototype._preLoadSlides=function(t){var i=[];"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]);for(var s=0;s<t.length;s++)i.push(t[s].preLoad());return e.when.apply(e,i)},s.prototype.preloadSlidesLazyNeighbor=function(t){var i=[this._preLoadSlides(t)];if(this.lazyLoadNeighbor)for(var s=0,r=t[0].previousSlide,n=t[t.length-1].nextSlide;s<this.lazyLoadNeighbor;)i.push(r.preLoad()),r=r.previousSlide,i.push(n.preLoad()),n=n.nextSlide,s++;var o=e.Deferred();if("resolved"!=i[0].state()){var a=setTimeout(e.proxy(function(){this.slider.load.showSpinner("backgroundImage"+t[0].index),a=null},this),50);e.when.apply(e,i).done(e.proxy(function(){a?(clearTimeout(a),a=null):this.slider.load.removeSpinner("backgroundImage"+t[0].index),setTimeout(function(){o.resolve()},100)},this))}else setTimeout(function(){o.resolve()},100);return o},s.prototype.hack=function(){for(var e=0;e<this.slider.realSlides.length;e++)this.slider.realSlides[e].backgroundImage&&this.slider.realSlides[e].backgroundImage.hack()},s}),N2Require("SmartSliderLoad",[],[],function(e,t,i){function s(t,i){this.parameters=e.extend({fade:1,scroll:0},i),this.deferred=e.Deferred(),this.smartSlider=t,this.spinnerKey="fadePlaceholder",this.id=t.sliderElement.attr("id"),this.$window=e(window),this.spinner=e("#"+this.id+"-spinner")}return s.prototype.start=function(){if(this.parameters.scroll){var t=e(window);t.on("scroll."+this.id,e.proxy(this.onScroll,this)),this.onScroll()}else if(this.parameters.fade){this.loadingArea=e("#"+this.id+"-placeholder").eq(0),this.showSpinner("fadePlaceholder");var i=this.spinner.find(".n2-ss-spinner-counter");i.length&&this.smartSlider.backgroundImages.load.progress(e.proxy(function(e,t){i.html(Math.round(e/(t+1)*100)+"%")},this)),this.showSlider()}else this.showSlider()},s.prototype.onScroll=function(){this.$window.scrollTop()+this.$window.height()>this.smartSlider.sliderElement.offset().top+100&&(this.$window.off("scroll."+this.id),this.showSlider())},s.prototype.loadLayerImages=function(){var t=e.Deferred();return this.smartSlider.sliderElement.find(".n2-ss-layers-container").n2imagesLoaded().always(function(){t.resolve()}),t},s.prototype.showSlider=function(){e.when(this.smartSlider.responsive.ready,this.smartSlider.backgroundImages.load,this.loadLayerImages()).always(e.proxy(function(){this._showSlider()},this))},s.prototype._showSlider=function(t){this.smartSlider.responsive.isReadyToResize=!0,e.when.apply(e,this.smartSlider.widgetDeferreds).done(e.proxy(function(){this.smartSlider.responsive.invalidateResponsiveState=!0,this.smartSlider.responsive.doResize(),this.smartSlider.mainAnimation&&this.smartSlider.mainAnimation.setToStarterSlide(this.smartSlider.starterSlide),this.smartSlider.starterSlide.setStarterSlide(),this.smartSlider.sliderElement.trigger("BeforeVisible"),this.smartSlider.responsive.alignElement.addClass("n2-ss-slider-align-visible"),this.smartSlider.sliderElement.addClass("n2-ss-loaded").removeClass("n2notransition"),this.removeSpinner("fadePlaceholder"),e("#"+this.id+"-placeholder").remove(),this.loadingArea=this.smartSlider.sliderElement,"function"==typeof t?t(this.deferred):this.deferred.resolve()},this))},s.prototype.loaded=function(e){this.deferred.done(e)},s.prototype.showSpinner=function(e){this.spinnerKey=e,this.spinner.appendTo(this.loadingArea).css("display","")},s.prototype.removeSpinner=function(e){this.spinnerKey==e&&(this.spinner.detach(),this.spinnerKey="")},s}),N2Require("scrollTracker",[],[],function(e,t,i){function s(){this.started=!1,this.items=[]}s.prototype.add=function(e,t,i){var s={$el:e,onVisible:t,onHide:i,state:"unknown"};this.items.push(s),this._onScroll(s,Math.max(document.documentElement.clientHeight,window.innerHeight)),this.started||this.start()},s.prototype.start=function(){this.started||(e(window).on("scroll.scrollTracker",e.proxy(this.onScroll,this)),this.started=!0)},s.prototype.onScroll=function(e){for(var t=Math.max(document.documentElement.clientHeight,window.innerHeight),i=0;i<this.items.length;i++)this._onScroll(this.items[i],t)},s.prototype._onScroll=function(e,t){var i=e.$el[0].getBoundingClientRect(),s=i.height>.7*t;!s&&(i.bottom-i.height<0||i.top-t+i.height>=0)||s&&(i.bottom<0||i.top>=i.height)?"hidden"!=e.state&&("function"==typeof e.onHide&&e.onHide(),e.state="hidden"):"visible"!=e.state&&("function"==typeof e.onVisible&&e.onVisible(),e.state="visible")},nextend.scrollTracker=new s}),N2Require("SmartSliderApi",[],[],function(e,t,i){function s(){this.sliders={},this.readys={},this._resetCounters=[]}return s.prototype.makeReady=function(e,t){if(this.sliders[e]=t,"undefined"!=typeof this.readys[e])for(var i=0;i<this.readys[e].length;i++)this.readys[e][i].call(t,t,t.sliderElement)},s.prototype.ready=function(e,t){"undefined"!=typeof this.sliders[e]?t.call(this.sliders[e],this.sliders[e],this.sliders[e].sliderElement):("undefined"==typeof this.readys[e]&&(this.readys[e]=[]),this.readys[e].push(t))},s.prototype.trigger=function(t,i){var s=n2(t),r=i.split(","),n=s.closest(".n2-ss-slide,.n2-ss-static-slide");if(r.length>1){-1==e.inArray(t,this._resetCounters)&&(this._resetCounters.push(t),n.on("layerAnimationSetStart.resetCounter",function(){s.data("eventCounter",0)}));var o=s.data("eventCounter")||0;i=r[o],o++,o>r.length-1&&(o=0),s.data("eventCounter",o)}n.triggerHandler(i)},s.prototype.applyAction=function(e,t){var i=n2(e).closest(".n2-ss-slider").data("ss");i[t].apply(i,Array.prototype.slice.call(arguments,2))},s.prototype.applyActionWithClick=function(){nextend.shouldPreventClick||this.applyAction.apply(this,arguments)},window.n2ss=new s,s}),N2Require("SmartSliderAbstract",[],[],function($,scope,undefined){function SmartSliderAbstract(e,t){this.startedDeferred=$.Deferred(),e instanceof n2&&(e="#"+e.attr("id"));var i=e.substr(1);return window[i]&&window[i]instanceof SmartSliderAbstract?!1:(this.isAdmin=!!t.admin,this.id=parseInt(i.replace("n2-ss-","")),window[i]=this,this.readyDeferred=$.Deferred(),void this.waitForExists(i,t))}return SmartSliderAbstract.prototype.kill=function(){this.killed=!0,$("#"+this.sliderElement.attr("id")+"-placeholder").remove(),this.sliderElement.closest(".n2-ss-align").remove()},SmartSliderAbstract.prototype.waitForExists=function(e,t){var i=$.Deferred(),s=function(){var t=$("#"+e);t.length?i.resolve(t):setTimeout(s,500)};i.done($.proxy(this.onSliderExists,this,e,t)),s()},SmartSliderAbstract.prototype.onSliderExists=function(e,t,i){if("SCRIPT"==i.prop("tagName")){var s=i.data("dependency"),r=i.data("delay"),n=$.proxy(function(){var s=$(i.html().replace(/<_s_c_r_i_p_t/g,"<script").replace(/<_\/_s_c_r_i_p_t/g,"</script"));i.replaceWith(s),this.waitForDimension($("#"+e),t),$(window).triggerHandler("n2Rocket",[this.sliderElement])},this);s&&$("#n2-ss-"+s).length?n2ss.ready(s,$.proxy(function(e){e.ready(n)},this)):r?setTimeout(n,r):n()}else this.waitForDimension(i,t)},SmartSliderAbstract.prototype.waitForDimension=function(e,t){var i=$.Deferred(),s=function(){var t=e.is(":visible");t?i.resolve():setTimeout(s,200)};s(),i.done($.proxy(this.onSliderHasDimension,this,e,t))},SmartSliderAbstract.prototype.onSliderHasDimension=function($sliderElement,parameters){if(this.killed=!1,this.responsive=!1,this.mainAnimationLastChangeTime=0,this.currentSlide=null,this.currentRealSlide=null,this.staticSlide=!1,this.isShuffled=!1,this.slides=[],this.visibleSlides=1,this.sliderElement=$sliderElement.data("ss",this),this.parameters=$.extend({admin:!1,playWhenVisible:1,playWhenVisibleAt:.5,perspective:1e3,callbacks:"",autoplay:{},blockrightclick:!1,maintainSession:0,align:"normal",controls:{drag:!1,touch:"horizontal",keyboard:!1,scroll:!1,tilt:!1},hardwareAcceleration:!0,layerMode:{playOnce:0,playFirstLayer:1,mode:"skippable",inAnimation:"mainInEnd"},foreverLayerAnimation:!1,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:[],dynamicHeight:0,lightbox:[],lightboxDeviceImages:[],titles:[],descriptions:[],"background.parallax.tablet":0,"background.parallax.mobile":0,allowBGImageAttachmentFixed:1,particlejs:0},parameters),!(this.isAdmin||parameters.responsive.desktop&&parameters.responsive.tablet&&parameters.responsive.mobile)){var md=new MobileDetect(window.navigator.userAgent,801),isTablet=!!md.tablet(),isMobile=!!md.phone();if(!parameters.responsive.mobile&&isMobile||!parameters.responsive.tablet&&isTablet||!parameters.responsive.desktop&&!isTablet&&!isMobile)return void this.kill()}this.firstSlideReady=$.Deferred();try{eval(this.parameters.callbacks)}catch(e){console.error(e)}this.startVisibilityCheck(),n2ss.makeReady(this.id,this),this.widgetDeferreds=[],this.sliderElement.on("addWidget",$.proxy(this.addWidget,this)),this.isAdmin&&(this.changeTo=function(){}),this.load=new scope.SmartSliderLoad(this,this.parameters.load),this.backgroundImages=new scope.SmartSliderBackgroundImages(this),this.__initSlides(),$.when(this.overrideFirstSlide()).done($.proxy(this.onFirstSlideInitialized,this)),navigator.userAgent.match("UCBrowser")&&$("html").addClass("n2-ucbrowser")},SmartSliderAbstract.prototype.overrideFirstSlide=function(){if("undefined"!=typeof window["ss"+this.id]){if("object"==typeof window["ss"+this.id])return window["ss"+this.id].done($.proxy(function(e){null!==e&&this.changeActiveBeforeLoad(e)},this));var e="undefined"!=typeof window["ss"+this.id]?parseInt(window["ss"+this.id]):null;null!==e&&this.changeActiveBeforeLoad(e)}else if(!this.isAdmin&&this.parameters.maintainSession&&"undefined"!=typeof sessionStorage){var t=sessionStorage.getItem("ss-"+this.id);null!==t&&this.changeActiveBeforeLoad(parseInt(t)),this.sliderElement.on("mainAnimationComplete",$.proxy(function(e,t,i,s){sessionStorage.setItem("ss-"+this.id,s)},this))}return!0},SmartSliderAbstract.prototype.changeActiveBeforeLoad=function(e){e>0&&e<this.realSlides.length&&this.starterSlide!=this.realSlides[e]&&(this.unsetActiveSlide(this.starterSlide),this.starterSlide=this.realSlides[e],this.setActiveSlide(this.realSlides[e]))},SmartSliderAbstract.prototype.startCurrentSlideIndex=function(){this.currentRealSlide=this.currentSlide=this.starterSlide,this.setActiveSlide(this.currentSlide),parseInt(this.parameters.carousel)?this.initCarousel():this.initNotCarousel()},SmartSliderAbstract.prototype.onFirstSlideInitialized=function(){for(var i=0;i<this.realSlides.length;i++)this.realSlides[i].setNext(this.realSlides[i+1>this.realSlides.length-1?0:i+1]);this.startCurrentSlideIndex(),this.firstSlideReady.resolve(this.currentSlide);for(var j=0;j<this.parameters.initCallbacks.length;j++)new Function("$",this.parameters.initCallbacks[j]).call(this,$);if(this.widgets=new scope.SmartSliderWidgets(this),this.sliderElement.on({universalenter:$.proxy(function(e){$(e.target).closest(".n2-full-screen-widget").length||(this.sliderElement.addClass("n2-hover"),this.widgets.setState("hover",!0))},this),universalleave:$.proxy(function(e){e.stopPropagation(),this.sliderElement.removeClass("n2-hover"),this.widgets.setState("hover",!1)},this)}),this.controls={},this.parameters.blockrightclick&&this.sliderElement.bind("contextmenu",function(e){e.preventDefault()}),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){try{var removeHoverClassCB=$.proxy(function(){this.sliderElement.removeClass("n2-has-hover"),this.sliderElement[0].removeEventListener("touchstart",removeHoverClassCB,window.n2passiveEvents?{passive:!0}:!1)},this);this.sliderElement[0].addEventListener("touchstart",removeHoverClassCB,window.n2passiveEvents?{passive:!0}:!1)}catch(e){}if(this.initControls(),this.startedDeferred.resolve(this),!this.isAdmin){var event="click";this.hasTouch()&&(event="n2click"),this.sliderElement.find("[data-n2click]").each(function(i,el){var el=$(el);el.on(event,function(){eval(el.data("n2click"))})}),this.sliderElement.find("[data-click]").each(function(i,el){var el=$(el).on("click",function(){eval(el.data("click"))}).css("cursor","pointer")}),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.sliderElement.find("[data-mouseenter]").each(function(i,el){var el=$(el).on("mouseenter",function(){eval(el.data("mouseenter"))})}),this.sliderElement.find("[data-mouseleave]").each(function(i,el){var el=$(el).on("mouseleave",function(){eval(el.data("mouseleave"))})}),this.sliderElement.find("[data-play]").each(function(i,el){var el=$(el).on("n2play",function(){eval(el.data("play"))})}),this.sliderElement.find("[data-pause]").each(function(i,el){var el=$(el).on("n2pause",function(){eval(el.data("pause"))})}),this.sliderElement.find("[data-stop]").each(function(i,el){var el=$(el).on("n2stop",function(){eval(el.data("stop"))})}),window.n2FocusAllowed==undefined&&(window.n2FocusAllowed=!1,$(window).on({keydown:function(){window.n2FocusAllowed=!0},keyup:function(){window.n2FocusAllowed=!1}})),this.sliderElement.find("a").on({focus:$.proxy(function(e){if(n2FocusAllowed){var t=this.findSlideByElement(e.currentTarget);t&&t!=this.currentRealSlide&&this.directionalChangeToReal(t.index)}},this)})}this.preReadyResolve(),this.sliderElement.find('[role="button"], [tabindex]').not("input,select,textarea").keypress(function(e){32!==e.charCode&&13!==e.charCode||(e.preventDefault(),$(e.target).click())}).on("mouseleave",function(e){$(e.currentTarget).blur()})}},SmartSliderAbstract.prototype.__initSlides=function(){for(var e=this.sliderElement.find(".n2-ss-slide"),t=0;t<e.length;t++)this.slides.push(new scope.FrontendSliderSlide(this,e.eq(t),t));this.starterSlide=this.slides[0];for(var t=0;t<this.slides.length;t++)this.slides[t].init(),1==this.slides[t].$element.data("first")&&(this.starterSlide=this.slides[t]);this.realSlides=this.slides,this.afterRawSlidesReady(),this.randomize(this.slides);var i=this.sliderElement.find(".n2-ss-static-slide");i.length&&(this.staticSlide=new scope.FrontendSliderStaticSlide(this,i))},SmartSliderAbstract.prototype.afterRawSlidesReady=function(){},SmartSliderAbstract.prototype.setVisibleSlides=function(e){e!=this.visibleSlides&&(this.visibleSlides=e,this.sliderElement.triggerHandler("visibleSlidesChanged"))},SmartSliderAbstract.prototype.getVisibleSlides=function(e){return 0==arguments.length&&(e=this.currentSlide),[e]},SmartSliderAbstract.prototype.findSlideBackground=function(e){return e.$element.find(".n2-ss-slide-background")},SmartSliderAbstract.prototype.getRealIndex=function(e){return e},SmartSliderAbstract.prototype.randomize=function(e){this.randomizeFirst(),this.parameters.randomize.randomize&&this.shuffleSlides(e)},SmartSliderAbstract.prototype.randomizeFirst=function(){this.parameters.randomize.randomizeFirst&&(this.unsetActiveSlide(this.starterSlide),this.starterSlide=this.realSlides[Math.floor(Math.random()*this.realSlides.length)],this.setActiveSlide(this.starterSlide),console.log("randomize first"))},SmartSliderAbstract.prototype.shuffleSlides=function(e){e.sort(function(){return.5-Math.random()});for(var t=e[0].$element.parent(),i=0;i<e.length;i++)e[i].$element.appendTo(t),e[i].setIndex(i);this.isShuffled=!0},SmartSliderAbstract.prototype.addWidget=function(e,t){this.widgetDeferreds.push(t)},SmartSliderAbstract.prototype.started=function(e){this.startedDeferred.done($.proxy(e,this))},SmartSliderAbstract.prototype.preReadyResolve=function(){setTimeout($.proxy(this._preReadyResolve,this),1)},SmartSliderAbstract.prototype._preReadyResolve=function(){this.load.start(),this.load.loaded($.proxy(this.readyResolve,this))},SmartSliderAbstract.prototype.readyResolve=function(){$(window).scroll(),this.readyDeferred.resolve()},SmartSliderAbstract.prototype.ready=function(e){this.readyDeferred.done($.proxy(e,this))},SmartSliderAbstract.prototype.startVisibilityCheck=function(){this.visibleDeferred=$.Deferred(),this.parameters.playWhenVisible?this.ready($.proxy(function(){$(window).on("scroll.n2-ss-visible"+this.id+" resize.n2-ss-visible"+this.id,$.proxy(this.checkIfVisible,this)),this.checkIfVisible()},this)):this.ready($.proxy(function(){this.visibleDeferred.resolve()},this))},SmartSliderAbstract.prototype.checkIfVisible=function(){var e=$(window).scrollTop(),t=$(window).height(),i=this.sliderElement.offset().top,s=i+Math.min(this.sliderElement.height(),t)*this.parameters.playWhenVisibleAt,r=i+Math.min(this.sliderElement.height(),t)*(1-this.parameters.playWhenVisibleAt);(this.isAdmin||s>=e&&e+t>=r)&&($(window).off("scroll.n2-ss-visible"+this.id+" resize.n2-ss-visible"+this.id,$.proxy(this.checkIfVisible,this)),this.visibleDeferred.resolve())},SmartSliderAbstract.prototype.visible=function(e){this.visibleDeferred.done($.proxy(e,this))},SmartSliderAbstract.prototype.isPlaying=function(){return"ended"!=this.mainAnimation.getState()},SmartSliderAbstract.prototype.focus=function(e){var t=$.Deferred();if("undefined"==typeof e&&(e=0),this.responsive.parameters.focusUser&&!e||this.responsive.parameters.focusAutoplay&&e){var i=this.sliderElement.offset().top-(this.responsive.verticalOffsetSelectors.height()||0);$(window).scrollTop()!=i?$("html, body").animate({scrollTop:i},400,$.proxy(function(){t.resolve()},this)):t.resolve()}else t.resolve();return t},SmartSliderAbstract.prototype.initNotCarousel=function(){this.next=function(e,t){var i=this.currentSlide.index+1;return i<this.slides.length?this.changeTo(i,!1,e,t):!1},this.previous=function(e,t){var i=this.currentSlide.index-1;return i>=0?this.changeTo(i,!0,e,t):!1},this.isChangePossible=function(e){var t=!1;return"next"==e?(t=this.currentSlide.index+1,t>=this.slides.length&&(t=!1)):"previous"==e&&(t=this.currentSlide.index-1,0>t&&(t=!1)),t!==!1&&t!=this.currentSlide.index};var e=$.proxy(function(e){0==e?this.widgets.setState("nonCarouselFirst",!0):this.widgets.setState("nonCarouselFirst",!1),e==this.slides.length-1?this.widgets.setState("nonCarouselLast",!0):this.widgets.setState("nonCarouselLast",!1)},this);this.startedDeferred.done($.proxy(function(){e(this.currentSlide.index)},this)),this.sliderElement.on("sliderSwitchTo",function(t,i){e(i)})},SmartSliderAbstract.prototype.isChangePossibleCarousel=function(e){var t=!1;return"next"==e?(t=this.currentSlide.index+1,t>=this.slides.length&&(t=0)):"previous"==e&&(t=this.currentSlide.index-1,0>t&&(t=this.slides.length-1)),t!==!1&&t!=this.currentSlide.index},SmartSliderAbstract.prototype.initCarousel=function(){this.next=this.nextCarousel,this.previous=this.previousCarousel,this.isChangePossible=this.isChangePossibleCarousel},SmartSliderAbstract.prototype.nextCarousel=function(e,t){var i=this.currentSlide.index+1;return i>=this.slides.length&&(i=0),this.changeTo(i,!1,e,t)},SmartSliderAbstract.prototype.previousCarousel=function(e,t){var i=this.currentSlide.index-1;return 0>i&&(i=this.slides.length-1),this.changeTo(i,!0,e,t)},SmartSliderAbstract.prototype.directionalChangeToReal=function(e){this.directionalChangeTo(e)},SmartSliderAbstract.prototype.directionalChangeTo=function(e){e>this.currentSlide.index?this.changeTo(e,!1):this.changeTo(e,!0)},SmartSliderAbstract.prototype.changeTo=function(e,t,i,s){if(e=parseInt(e),e!=this.currentSlide.index){this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)]);var r=$.now();return $.when(this.backgroundImages.preLoadSlides(this.getVisibleSlides(this.slides[e])),this.focus(i)).done($.proxy(function(){if(this.mainAnimationLastChangeTime<=r){this.mainAnimationLastChangeTime=r;var n=this.mainAnimation.getState();if("ended"==n){"undefined"==typeof i&&(i=!1);var o=this.mainAnimation;"undefined"!=typeof s&&(o=s),this._changeTo(e,t,i,s),o.changeTo(this.currentSlide,this.slides[e],t,i),this._changeCurrentSlide(e)}else"playing"==n&&(this.sliderElement.off(".fastChange").one("mainAnimationComplete.fastChange",$.proxy(function(){this.changeTo.call(this,e,t,i,s)},this)),this.mainAnimation.timeScale(2*this.mainAnimation.timeScale()))}},this)),!0}return!1},SmartSliderAbstract.prototype._changeCurrentSlide=function(e){this.currentRealSlide=this.currentSlide=this.slides[e]},SmartSliderAbstract.prototype._changeTo=function(e,t,i,s){},SmartSliderAbstract.prototype.revertTo=function(e,t){this.unsetActiveSlide(this.slides[t]),this.setActiveSlide(this.slides[e]),this._changeCurrentSlide(e),this.sliderElement.trigger("sliderSwitchTo",[e,this.getRealIndex(e)])},SmartSliderAbstract.prototype.setActiveSlide=function(e){e.$element.addClass("n2-ss-slide-active")},SmartSliderAbstract.prototype.unsetActiveSlide=function(e){e.$element.removeClass("n2-ss-slide-active")},SmartSliderAbstract.prototype.findSlideByElement=function(e){e=$(e);for(var t=0;t<this.realSlides.length;t++)if(1===this.realSlides[t].$element.has(e).length)return this.realSlides[t];return!1},SmartSliderAbstract.prototype.findSlideIndexByElement=function(e){var t=this.findSlideByElement(e);return t?t:-1},SmartSliderAbstract.prototype.initMainAnimation=function(){this.mainAnimation=!1},SmartSliderAbstract.prototype.initResponsiveMode=function(){this.dimensions=this.responsive.responsiveDimensions},SmartSliderAbstract.prototype.hasTouch=function(){return"0"!=this.parameters.controls.touch&&this.slides.length>1},SmartSliderAbstract.prototype.initControls=function(){this.parameters.admin||(this.hasTouch()&&new scope.SmartSliderControlTouch(this,this.parameters.controls.touch,{fallbackToMouseEvents:this.parameters.controls.drag}),this.parameters.controls.keyboard&&("undefined"!=typeof this.controls.touch?new scope.SmartSliderControlKeyboard(this,this.controls.touch._direction.axis):new scope.SmartSliderControlKeyboard(this,"horizontal")),this.parameters.controls.scroll&&new scope.SmartSliderControlScroll(this),this.parameters.controls.tilt&&new scope.SmartSliderControlTilt(this),this.controlAutoplay=new scope.SmartSliderControlAutoplay(this,this.parameters.autoplay),this.controlFullscreen=new scope.SmartSliderControlFullscreen(this))},SmartSliderAbstract.prototype.getSlideIndex=function(e){return e},SmartSliderAbstract.prototype.slideToID=function(e,t){for(var i=0;i<this.realSlides.length;i++)if(this.realSlides[i].id==e)return this.slide(this.getSlideIndex(i),t);var s=$('[data-id="'+e+'"]').closest(".n2-ss-slider");if(s.length&&this.id==s.data("ss").id)return!0;if(s.length){var r=0;return"undefined"!=typeof n2ScrollOffsetSelector&&(r=n2(n2ScrollOffsetSelector).outerHeight()),n2("html, body").animate({scrollTop:s.offset().top-r},400),s.data("ss").slideToID(e,t)}},SmartSliderAbstract.prototype.slide=function(e,t){return e>=0&&e<this.slides.length?"undefined"==typeof t?parseInt(this.parameters.carousel)&&this.currentSlide.index==this.slides.length-1&&0==e?this.next():this.currentSlide.index>e?this.changeTo(e,!0):this.changeTo(e):this.changeTo(e,!t):!1},SmartSliderAbstract.prototype.startAutoplay=function(e){return"undefined"!=typeof this.controlAutoplay?(this.controlAutoplay.pauseAutoplayExtraPlayingEnded(e,"autoplayButton"),!0):!1},SmartSliderAbstract}),N2Require("SmartSliderWidgets",[],[],function($,scope,undefined){function SmartSliderWidgets(e){this.slider=e,this.sliderElement=e.sliderElement.on("BeforeVisible",$.proxy(this.onReady,this)),this.widgets={},this.excludedSlides={},this.states={hover:!1,nonCarouselFirst:!1,nonCarouselLast:!1,currentSlideIndex:-1}}return SmartSliderWidgets.prototype.setState=function(e,t){this.states[e]!=t&&(this.states[e]=t,this.onStateChange())},SmartSliderWidgets.prototype.onStateChange=function(){var e={};for(var t in this.widgets)this.widgets[t].hasClass("n2-ss-widget-display-hover")?this.states.hover?e[t]=!0:e[t]=!1:e[t]=!0,this.excludedSlides[t]!=undefined&&-1!=$.inArray(this.states.currentSlideIndex+1,this.excludedSlides[t])&&(e[t]=!1);this.states.nonCarouselFirst&&(e.previous=!1),this.states.nonCarouselLast&&(e.next=!1);for(var t in this.widgets)this.widgets[t].toggleClass("n2-ss-widget-hidden",!e[t])},SmartSliderWidgets.prototype.onReady=function(){this.dimensions=this.slider.dimensions,this.widgets={previous:this.sliderElement.find(".nextend-arrow-previous"),next:this.sliderElement.find(".nextend-arrow-next"),bullet:this.sliderElement.find(".n2-ss-control-bullet"),autoplay:this.sliderElement.find(".nextend-autoplay"),indicator:this.sliderElement.find(".nextend-indicator"),bar:this.sliderElement.find(".nextend-bar"),thumbnail:this.sliderElement.find(".nextend-thumbnail"),shadow:this.sliderElement.find(".nextend-shadow"),fullscreen:this.sliderElement.find(".nextend-fullscreen"),html:this.sliderElement.find(".nextend-widget-html")},this.$vertical=this.sliderElement.find('[data-position="above"],[data-position="below"]').not(".nextend-shadow");var e=!1;for(var t in this.widgets){var i=this.widgets[t].attr("data-exclude-slides");if(i!=undefined){for(var s=i.split(","),r=s.length-1;r>=0;r--){var n=s[r].split("-");if(2==n.length){var o=parseInt(n[0]),a=parseInt(n[1]);if(a>=o)for(var l=o;a>=l;l++)s.push(l)}else s[r]=parseInt(s[r])}s.length>0&&(this.excludedSlides[t]=s,e=!0)}}if(e){var d=$.proxy(function(e,t){this.setState("currentSlideIndex",t)},this);d(null,this.slider.currentRealSlide.index),this.slider.sliderElement.on("sliderSwitchTo",d)}this.variableElementsDimension={width:this.sliderElement.find("[data-sswidth]"),height:this.sliderElement.find("[data-ssheight]")},this.variableElements={top:this.sliderElement.find("[data-sstop]"),right:this.sliderElement.find("[data-ssright]"),bottom:this.sliderElement.find("[data-ssbottom]"),left:this.sliderElement.find("[data-ssleft]")},this.slider.sliderElement.on("SliderAnimatedResize",$.proxy(this.onAnimatedResize,this)),this.slider.sliderElement.on("SliderResize",$.proxy(this.onResize,this)),this.slider.sliderElement.one("slideCountChanged",$.proxy(function(){this.onResize(this.slider.responsive.lastRatios)},this)),this.onResize(this.slider.responsive.lastRatios),this.onStateChange()},SmartSliderWidgets.prototype.onAnimatedResize=function(e,ratios,timeline,duration){for(var key in this.widgets){var el=this.widgets[key],visible=el.is(":visible");this.dimensions[key+"width"]=visible?el.outerWidth(!1):0,this.dimensions[key+"height"]=visible?el.outerHeight(!1):0}this.dimensions.width=this.dimensions.slider.width,this.dimensions.height=this.dimensions.slider.height,this.dimensions.outerwidth=this.sliderElement.parent().width(),this.dimensions.outerheight=this.sliderElement.parent().height(),this.dimensions.canvaswidth=this.dimensions.slide.width,this.dimensions.canvasheight=this.dimensions.slide.height,this.dimensions.margintop=this.dimensions.slider.marginTop,this.dimensions.marginright=this.dimensions.slider.marginRight,this.dimensions.marginbottom=this.dimensions.slider.marginBottom,this.dimensions.marginleft=this.dimensions.slider.marginLeft;var variableText="";for(var key in this.dimensions){var value=this.dimensions[key];if("object"==typeof value)for(var key2 in value)variableText+="var "+key+key2+" = "+value[key2]+";";else variableText+="var "+key+" = "+value+";"}eval(variableText);for(var k in this.variableElementsDimension)for(var i=0;i<this.variableElementsDimension[k].length;i++){var el=this.variableElementsDimension[k].eq(i);if(el.is(":visible")){var to={};try{to[k]=eval(el.data("ss"+k))+"px";for(var widget in this.widgets)this.widgets[widget].filter(el).length&&("width"==k?this.dimensions[widget+k]=el.outerWidth(!1):"height"==k&&(this.dimensions[widget+k]=el.outerHeight(!1)),eval(widget+k+" = "+this.dimensions[widget+k]+";"))}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}timeline.to(el,duration,to,0)}}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var el=this.variableElements[k].eq(i);try{var to={};to[k]=eval(el.data("ss"+k))+"px",timeline.to(el,duration,to,0)}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}},SmartSliderWidgets.prototype.onResize=function(e,ratios,responsive,timeline){if(!timeline){for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var last=this.variableElements[k].data("n2Last"+k);last>0&&this.variableElements[k].css(k,0)}for(var key in this.widgets){var el=this.widgets[key],visible=el.length&&el.is(":visible");el.length&&el.is(":visible")?(this.dimensions[key+"width"]=el.outerWidth(!1),this.dimensions[key+"height"]=el.outerHeight(!1)):(this.dimensions[key+"width"]=0,this.dimensions[key+"height"]=0)}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var last=this.variableElements[k].data("n2Last"+k);last>0&&this.variableElements[k].css(k,last)}this.dimensions.width=this.dimensions.slider.width,this.dimensions.height=this.dimensions.slider.height,this.dimensions.outerwidth=this.sliderElement.parent().width(),this.dimensions.outerheight=this.sliderElement.parent().height(),this.dimensions.canvaswidth=this.dimensions.slide.width,this.dimensions.canvasheight=this.dimensions.slide.height,this.dimensions.margintop=this.dimensions.slider.marginTop,this.dimensions.marginright=this.dimensions.slider.marginRight,this.dimensions.marginbottom=this.dimensions.slider.marginBottom,this.dimensions.marginleft=this.dimensions.slider.marginLeft;var variableText="";for(var key in this.dimensions){var value=this.dimensions[key];if("object"==typeof value)for(var key2 in value)variableText+="var "+key+key2+" = "+value[key2]+";";else variableText+="var "+key+" = "+value+";"}eval(variableText);for(var k in this.variableElementsDimension)for(var i=0;i<this.variableElementsDimension[k].length;i++){var el=this.variableElementsDimension[k].eq(i);if(el.is(":visible"))try{el.css(k,eval(el.data("ss"+k))+"px");for(var widget in this.widgets)this.widgets[widget].filter(el).length&&("width"==k?this.dimensions[widget+k]=el.outerWidth(!1):"height"==k&&(this.dimensions[widget+k]=el.outerHeight(!1)),eval(widget+k+" = "+this.dimensions[widget+k]+";"))}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k));
}}for(var k in this.variableElements)for(var i=0;i<this.variableElements[k].length;i++){var el=this.variableElements[k].eq(i);try{var value=eval(el.data("ss"+k));el.css(k,value+"px"),el.data("n2Last"+k,value)}catch(e){console.log(el," position variable: "+e.message+": ",el.data("ss"+k))}}this.slider.responsive.refreshStaticSizes()}},SmartSliderWidgets}),N2Require("SmartSliderBackgroundAnimationAbstract",[],[],function(e,t,i){function s(e,t,i,s,r,n){this.durationMultiplier=r,this.original={currentImage:t,nextImage:i},this.animationProperties=s,this.reversed=n,this.timeline=e.timeline,this.containerElement=e.bgAnimationElement,this.shiftedBackgroundAnimation=e.parameters.shiftedBackgroundAnimation,this.clonedImages={}}return s.prototype.postSetup=function(){},s.prototype.ended=function(){},s.prototype.revertEnded=function(){},s.prototype.placeNextImage=function(){this.clonedImages.nextImage=this.original.nextImage.clone().css({position:"absolute",top:0,left:0}),NextendTween.set(this.clonedImages.nextImage,{transform:"none"}),this.containerElement.append(this.clonedImages.nextImage)},s.prototype.placeCurrentImage=function(){this.clonedImages.currentImage=this.original.currentImage.clone().css({position:"absolute",top:0,left:0}),NextendTween.set(this.clonedImages.currentImage,{transform:"none"}),this.containerElement.append(this.clonedImages.currentImage)},s.prototype.hideOriginals=function(){this.original.currentImage.css("opacity",0),this.original.nextImage.css("opacity",0)},s.prototype.resetAll=function(){this.original.currentImage.css("opacity",1),this.original.nextImage.css("opacity",1),this.containerElement.html("")},s.prototype.getExtraDelay=function(){return 0},s}),N2Require("SmartSliderBackgroundAnimationCubic",["SmartSliderBackgroundAnimationTiled"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationTiled.prototype),s.prototype.constructor=s,s.prototype.setup=function(){var i=e.extend(!0,{columns:1,rows:1,fullCube:!0,tiles:{delay:.2,sequence:"Parallel"},depth:50,main:{side:"Left",duration:.5,ease:"easeInOutCubic",direction:"horizontal",real3D:!0},pre:[],post:[]},this.animationProperties);i.fullCube=!0,this.reversed&&("undefined"!=typeof i.invert&&e.extend(!0,i.main,i.invert),"undefined"!=typeof i.invertTiles&&e.extend(i.tiles,i.invertTiles)),t.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,i)},s.prototype.renderTile=function(t,i,s,r,n,o){var a=r.depth;switch(a){case"width":a=i;break;case"height":a=s}switch(r.main.side){case"Top":case"Bottom":a=s;break;case"Left":case"Right":a=i}r.main.real3D&&NextendTween.set(t.get(0),{transformStyle:"preserve-3d"});var l=e('<div class="cuboid"></div>').css({position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}).appendTo(t);NextendTween.set(l.get(0),{transformStyle:"preserve-3d",z:-a/2});var d=0;"horizontal"==r.main.direction&&(d=180);var h=this.getSide(l,i,s,0,0,-a/2,180,0,d),p={Back:h,BackInvert:h};return(r.fullCube||"vertical"==r.main.direction)&&(p.Bottom=this.getSide(l,i,a,0,s-a/2,0,-90,0,0),p.Top=this.getSide(l,i,a,0,-a/2,0,90,0,0)),p.Front=this.getSide(l,i,s,0,0,a/2,0,0,0),(r.fullCube||"horizontal"==r.main.direction)&&(p.Left=this.getSide(l,a,s,-a/2,0,0,0,-90,0),p.Right=this.getSide(l,a,s,i-a/2,0,0,0,90,0)),p.Front.append(this.clonedCurrent().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})),p[r.main.side].append(this.clonedNext().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})),l},s.prototype.getSide=function(t,i,s,r,n,o,a,l,d){var h=e('<div class="n2-3d-side"></div>').css({width:i,height:s}).appendTo(t);return NextendTween.set(h.get(0),{x:r,y:n,z:o,rotationX:a,rotationY:l,rotationZ:d,backfaceVisibility:"hidden"}),h},s.prototype.addAnimation=function(e,t){var i=e.duration;delete e.duration,this.timeline.to(t,i*this.durationMultiplier,e)},s.prototype.transform=function(e,t,i){for(var s=0;s<e.pre.length;s++){var r=e.pre[s],n=r.duration*this.durationMultiplier;this.timeline.to(t,n,r,i),i+=n}this["transform"+e.main.side](e.main,t,i),i+=e.main.duration;for(var s=0;s<e.post.length;s++){var r=e.post[s],n=r.duration*this.durationMultiplier;this.timeline.to(t,n,r,i),i+=n}},s.prototype.transformLeft=function(e,t,i){this._transform(e,t,i,0,90,0)},s.prototype.transformRight=function(e,t,i){this._transform(e,t,i,0,-90,0)},s.prototype.transformTop=function(e,t,i){this._transform(e,t,i,-90,0,0)},s.prototype.transformBottom=function(e,t,i){this._transform(e,t,i,90,0,0)},s.prototype.transformBack=function(e,t,i){"horizontal"==e.direction?this._transform(e,t,i,0,180,0):this._transform(e,t,i,180,0,0)},s.prototype.transformBackInvert=function(e,t,i){"horizontal"==e.direction?this._transform(e,t,i,0,-180,0):this._transform(e,t,i,-180,0,0)},s.prototype._transform=function(e,t,i,s,r,n){this.timeline.to(t,e.duration*this.durationMultiplier,{rotationX:s,rotationY:r,rotationZ:n,ease:e.ease},i)},s}),N2Require("SmartSliderBackgroundAnimationExplode",["SmartSliderBackgroundAnimationTiled"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationTiled.prototype),s.prototype.constructor=s,s.prototype.setup=function(){var i=e.extend(!0,{columns:1,rows:1,reverse:!1,tiles:{delay:0,sequence:"Parallel"},main:{duration:.5,zIndex:2,current:{ease:"easeInOutCubic"}}},this.animationProperties);this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),t.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,i)},s.prototype.renderTile=function(t,i,s,r,n,o){var a=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:r.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{current:a,tile:t}},s.prototype.transform=function(t,i,s){var r=e.extend(!0,{},t.main.current);r.rotationX=90*(3*Math.random()-1),r.rotationY=90*(3*Math.random()-1),r.rotationZ=90*(3*Math.random()-1),this.timeline.to(i.tile,t.main.duration*this.durationMultiplier,r,s)},s}),N2Require("SmartSliderBackgroundAnimationExplodeReversed",["SmartSliderBackgroundAnimationTiled"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationTiled.prototype),s.prototype.constructor=s,s.prototype.setup=function(){var i=e.extend(!0,{columns:1,rows:1,reverse:!1,tiles:{delay:0,sequence:"Parallel"},main:{duration:.5,zIndex:2,current:{ease:"easeInOutCubic"}}},this.animationProperties);this.placeCurrentImage(),this.clonedImages.currentImage.css({overflow:"hidden",width:"100%",height:"100%"}),t.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,i)},s.prototype.renderTile=function(t,i,s,r,n,o){var a=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:r.main.zIndex}).append(this.clonedNext().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{next:a,tile:t}},s.prototype.transform=function(t,i,s){var r=e.extend(!0,{},t.main.current);r.rotationX=90*(3*Math.random()-1),r.rotationY=90*(3*Math.random()-1),r.rotationZ=30*(3*Math.random()-1),this.timeline.from(i.tile,t.main.duration*this.durationMultiplier,r,s)},s}),N2Require("SmartSliderBackgroundAnimationFlat",["SmartSliderBackgroundAnimationTiled"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationTiled.prototype),s.prototype.constructor=s,s.prototype.setup=function(){var i=e.extend(!0,{columns:1,rows:1,tiles:{cropOuter:!1,crop:!0,delay:0,sequence:"Parallel"},main:{type:"next",duration:.5,real3D:!0,zIndex:1,current:{ease:"easeInOutCubic"},next:{ease:"easeInOutCubic"}}},this.animationProperties);this.reversed&&("undefined"!=typeof i.invert&&e.extend(!0,i.main,i.invert),"undefined"!=typeof i.invertTiles&&e.extend(i.tiles,i.invertTiles)),t.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,i),i.tiles.cropOuter&&this.container.css("overflow","hidden")},s.prototype.renderTile=function(t,i,s,r,n,o){r.tiles.crop&&t.css("overflow","hidden");var a=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:r.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})).appendTo(t),l=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:1}).append(this.clonedNext().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})).appendTo(t);return r.main.real3D&&(NextendTween.set(t.get(0),{transformStyle:"preserve-3d"}),NextendTween.set(a.get(0),{transformStyle:"preserve-3d"}),NextendTween.set(l.get(0),{transformStyle:"preserve-3d"})),{current:a,next:l}},s.prototype.transform=function(e,t,i){var s=e.main;"current"!=s.type&&"both"!=s.type||this.timeline.to(t.current,s.duration*this.durationMultiplier,s.current,i),"next"!=s.type&&"both"!=s.type||this.timeline.from(t.next,s.duration*this.durationMultiplier,s.next,i)},s}),N2Require("SmartSliderBackgroundAnimationSlixes",["SmartSliderBackgroundAnimationTiled"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationTiled.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationTiled.prototype),s.prototype.constructor=s,s.prototype.setup=function(){var i=e.extend(!0,{columns:2,rows:2,main:{duration:2,zIndex:2}},this.animationProperties);this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),t.SmartSliderBackgroundAnimationTiled.prototype.setup.call(this,i)},s.prototype.renderTile=function(t,i,s,r,n,o){this.container.css("overflow","hidden");var a=e("<div></div>").css({position:"absolute",left:0,top:0,width:i,height:s,overflow:"hidden",zIndex:r.main.zIndex}).append(this.clonedCurrent().clone().css({position:"absolute",top:-o+"px",left:-n+"px"})).appendTo(t);return NextendTween.set(t.get(0),{transformPerspective:1e3,transformStyle:"preserve-3d"}),{current:a,tile:t}},s.prototype.animate=function(t,i,s){this.timeline.to(s[0][0].tile,t.main.duration*this.durationMultiplier,{left:"-50%",ease:"easeInOutCubic"},0),this.timeline.to(s[0][1].tile,t.main.duration*this.durationMultiplier,{left:"-50%",ease:"easeInOutCubic"},.3),this.timeline.to(s[1][0].tile,t.main.duration*this.durationMultiplier,{left:"100%",ease:"easeInOutCubic"},.15),this.timeline.to(s[1][1].tile,t.main.duration*this.durationMultiplier,{left:"100%",ease:"easeInOutCubic"},.45),e("<div />").css({position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden"}).prependTo(this.clonedImages.nextImage.parent()).append(this.clonedImages.nextImage),this.timeline.fromTo(this.clonedImages.nextImage,t.main.duration*this.durationMultiplier,{scale:1.3},{scale:1},.45)},s}),N2Require("SmartSliderBackgroundAnimationTiled",["SmartSliderBackgroundAnimationFluxAbstract"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationFluxAbstract.prototype.constructor.apply(this,arguments),this.setup()}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationFluxAbstract.prototype),s.prototype.constructor=s,s.prototype.setup=function(t){var i=e("<div></div>").css({position:"absolute",left:0,top:0,width:this.w,height:this.h});this.container=i,NextendTween.set(i.get(0),{force3D:!0,perspective:1e3});for(var s=[],r=[],n=t.columns,o=t.rows,a=Math.floor(this.w/n),l=Math.floor(this.h/o),d=this.w-n*a,h=Math.ceil(d/n),p=this.h-o*l,c=Math.ceil(p/o),u=0,m=0;n>m;m++){s[m]=[];var f=a,g=0;if(d>0){var y=d>=h?h:d;f+=y,d-=y}for(var v=p,S=0;o>S;S++){var b=l;if(v>0){var y=v>=c?c:v;b+=y,v-=y}var x=e('<div class="tile tile-'+m+"-"+S+'"></div>').css({position:"absolute",top:g+"px",left:u+"px",width:f+"px",height:b+"px",zIndex:-Math.abs(m-parseInt(n/2))+n-Math.abs(S-parseInt(o/2))}).appendTo(i),w=this.renderTile(x,f,b,t,u,g);r.push(w),s[m][S]=w,g+=b}u+=f}i.appendTo(this.containerElement),this.preSetup(),this.animate(t,r,s)},s.prototype.animate=function(t,i,s){this["sequence"+t.tiles.sequence](e.proxy(this.transform,this,t),i,s,t.tiles.delay*this.durationMultiplier)},s.prototype.sequenceParallel=function(e,t){e(t,null)},s.prototype.sequenceRandom=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=0;n<t.length;n++)e(t[n],r+Math.random()*s)},s.prototype.sequenceForwardCol=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=0;n<t.length;n++)e(t[n],r+s*n)},s.prototype.sequenceBackwardCol=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=t.length-1,o=0;o<t.length;o++)e(t[o],r+s*(n-o))},s.prototype.sequenceForwardRow=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=0,o=0;o<i[0].length;o++)for(var a=0;a<i.length;a++)e(i[a][o],r+s*n),n++},s.prototype.sequenceBackwardRow=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=t.length-1,o=0;o<i[0].length;o++)for(var a=0;a<i.length;a++)e(i[a][o],r+s*n),n--},s.prototype.sequenceForwardDiagonal=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=0;n<i[0].length;n++)for(var o=0;o<i.length;o++)e(i[o][n],r+s*(o+n))},s.prototype.sequenceBackwardDiagonal=function(e,t,i,s){for(var r=this.timeline.totalDuration(),n=i[0].length+i.length-2,o=0;o<i[0].length;o++)for(var a=0;a<i.length;a++)e(i[a][o],r+s*(n-a-o))},s}),N2Require("SmartSliderBackgroundAnimationTurn",["SmartSliderBackgroundAnimationFluxAbstract"],[],function(e,t,i){function s(){t.SmartSliderBackgroundAnimationFluxAbstract.prototype.constructor.apply(this,arguments);var i=e.extend(!0,{perspective:1.5*this.w,duration:.8,direction:"left"},this.animationProperties);this.reversed&&("left"==i.direction?i.direction="right":i.direction="left");var s=parseInt(this.w/2);this.clonedCurrent().css({position:"absolute",top:0,left:"left"==i.direction?-1*(this.w/2):0}),this.clonedNext().css({position:"absolute",top:0,left:"left"==i.direction?0:-1*(this.w/2)});var r=e('<div class="tab"></div>').css({width:s,height:this.h,position:"absolute",top:"0px",left:"left"==i.direction?s:"0","z-index":101});NextendTween.set(r,{transformStyle:"preserve-3d",transformOrigin:"left"==i.direction?"0px 0px":s+"px 0px"});var n=e('<div class="n2-ff-3d"></div>').append(this.clonedCurrent()).css({width:s,height:this.h,position:"absolute",top:0,left:0,"-webkit-transform":"translateZ(0.1px)",overflow:"hidden"}).appendTo(r);NextendTween.set(n,{backfaceVisibility:"hidden",transformStyle:"preserve-3d"});var o=e('<div class="n2-ff-3d"></div>').append(this.clonedNext()).appendTo(r).css({width:s,height:this.h,position:"absolute",top:0,left:0,overflow:"hidden"});NextendTween.set(o,{backfaceVisibility:"hidden",transformStyle:"preserve-3d",rotationY:180,rotationZ:0});var a=e("<div></div>").append(this.clonedCurrent().clone().css("left","left"==i.direction?0:-s)).css({position:"absolute",top:0,left:"left"==i.direction?"0":s,width:s,height:this.h,zIndex:100,overflow:"hidden"}),l=e('<div class="overlay"></div>').css({position:"absolute",top:0,left:"left"==i.direction?s:0,width:s,height:this.h,background:"#000",opacity:1,overflow:"hidden"}),d=e("<div></div>").css({width:this.w,height:this.h,position:"absolute",top:0,left:0}).append(r).append(a).append(l);NextendTween.set(d,{perspective:i.perspective,perspectiveOrigin:"50% 50%"}),this.placeNextImage(),this.clonedImages.nextImage.css({overflow:"hidden",width:"100%",height:"100%"}),this.containerElement.append(d),this.preSetup(),this.timeline.to(r.get(0),i.duration*this.durationMultiplier,{rotationY:"left"==i.direction?-180:180},0),this.timeline.to(l.get(0),i.duration*this.durationMultiplier,{opacity:0},0)}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationFluxAbstract.prototype),s.prototype.constructor=s,s.prototype.getExtraDelay=function(){return 0},s}),N2Require("SmartSliderBackgroundAnimationFluxAbstract",["SmartSliderBackgroundAnimationAbstract"],[],function(e,t,i){function s(){this.shiftedPreSetup=!1,this._clonedCurrent=!1,this._clonedNext=!1,t.SmartSliderBackgroundAnimationAbstract.prototype.constructor.apply(this,arguments),this.w=this.original.currentImage.width(),this.h=this.original.currentImage.height()}return s.prototype=Object.create(t.SmartSliderBackgroundAnimationAbstract.prototype),s.prototype.constructor=s,s.prototype.clonedCurrent=function(){return this._clonedCurrent||(this._clonedCurrent=this.original.currentImage.clone().css({width:this.w,height:this.h}),this._clonedCurrent.find(".n2-ss-slide-background-video").remove(),NextendTween.set(this._clonedCurrent,{transform:"none"})),this._clonedCurrent},s.prototype.clonedNext=function(){return this._clonedNext||(this._clonedNext=this.original.nextImage.clone().css({width:this.w,height:this.h}),this._clonedNext.find(".n2-ss-slide-background-video").remove(),NextendTween.set(this._clonedNext,{transform:"none"})),this._clonedNext},s.prototype.preSetup=function(){0!=this.shiftedBackgroundAnimation?this.shiftedPreSetup=!0:this._preSetup()},s.prototype._preSetup=function(e){this.timeline.to(this.original.currentImage.get(0),this.getExtraDelay(),{opacity:0},0),this.original.nextImage.css("opacity",0)},s.prototype.postSetup=function(){this.timeline.to(this.original.nextImage.get(0),this.getExtraDelay(),{opacity:1})},s.prototype.getExtraDelay=function(){return.2},s.prototype.ended=function(){this.original.currentImage.css("opacity",1),this.containerElement.html("")},s.prototype.revertEnded=function(){this.original.nextImage.css("opacity",1),this.containerElement.html("")},s}),N2Require("SmartSliderMainAnimationAbstract",[],[],function(e,t,i){function s(t,i){this.state="ended",this.isTouch=!1,this.isReverseAllowed=!0,this.isReverseEnabled=!1,this.reverseSlideIndex=null,this.isNoAnimation=!1,this.slider=t,this.parameters=e.extend({duration:1500,ease:"easeInOutQuint"},i),this.parameters.duration/=1e3,this.sliderElement=t.sliderElement,this.timeline=new NextendTimeline({paused:!0}),this.sliderElement.on("mainAnimationStart",e.proxy(function(e,t,i,s){this._revertCurrentSlideIndex=i,this._revertNextSlideIndex=s},this))}return s.prototype.setToStarterSlide=function(e){},s.prototype.enableReverseMode=function(){this.isReverseEnabled=!0,this.reverseTimeline=new NextendTimeline({paused:!0}),this.sliderElement.triggerHandler("reverseModeEnabled",this.reverseSlideIndex)},s.prototype.disableReverseMode=function(){this.isReverseEnabled=!1},s.prototype.setTouch=function(e){this.isTouch=e},s.prototype.setTouchProgress=function(e){this.isReverseEnabled?this._setTouchProgressWithReverse(e):this._setTouchProgress(e)},s.prototype._setTouchProgress=function(e){"ended"!=this.state&&(0>=e?this.timeline.progress(Math.max(e,1e-6),!1):e>=0&&1>=e&&this.timeline.progress(e))},s.prototype._setTouchProgressWithReverse=function(e){0==e?(this.reverseTimeline.progress(0),this.timeline.progress(e,!1)):e>=0&&1>=e?(this.reverseTimeline.progress(0),this.timeline.progress(e)):0>e&&e>=-1&&(this.timeline.progress(0),this.reverseTimeline.progress(Math.abs(e)))},s.prototype.setTouchEnd=function(e,t,i){"ended"!=this.state&&(this.isReverseEnabled?this._setTouchEndWithReverse(e,t,i):this._setTouchEnd(e,t,i))},s.prototype._setTouchEnd=function(e,t,i){e&&t>0?(this.fixTouchDuration(this.timeline,t,i),this.timeline.play()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-t,i),this.timeline.reverse(),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},s.prototype._setTouchEndWithReverse=function(e,t,i){e?0>t&&this.reverseTimeline.totalDuration()>0?(this.fixTouchDuration(this.reverseTimeline,t,i),this.reverseTimeline.play(),this.willRevertTo(this.reverseSlideIndex,this._revertNextSlideIndex)):(this.willCleanSlideIndex(this.reverseSlideIndex),this.fixTouchDuration(this.timeline,t,i),this.timeline.play()):(0>t?(this.revertCB(this.reverseTimeline),this.fixTouchDuration(this.reverseTimeline,1-t,i),this.reverseTimeline.reverse()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-t,i),this.timeline.reverse()),this.willCleanSlideIndex(this.reverseSlideIndex),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},s.prototype.fixTouchDuration=function(e,t,i){var s=e.totalDuration(),r=Math.max(s/3,Math.min(s,i/Math.abs(t)/1e3));r!=s&&e.totalDuration(r)},s.prototype.getState=function(){return this.state},s.prototype.timeScale=function(){return arguments.length>0?(this.timeline.timeScale(arguments[0]),this):this.timeline.timeScale()},s.prototype.changeTo=function(t,i,s,r){if(this._initAnimation(t,i,s),this.state="initAnimation",this.timeline.paused(!0),this.timeline.eventCallback("onStart",this.onChangeToStart,[t,i,r],this),this.timeline.eventCallback("onComplete",this.onChangeToComplete,[t,i,r],this),this.timeline.eventCallback("onReverseComplete",null),this.revertCB=e.proxy(function(e){e.eventCallback("onReverseComplete",this.onReverseChangeToComplete,[i,t,r],this)},this),this.slider.parameters.dynamicHeight){var n=new NextendTimeline;this.slider.responsive.doResize(null,!1,n,i,.6),this.timeline.add(n)}this.isTouch||this.timeline.play()},s.prototype.willRevertTo=function(t,i){this.sliderElement.triggerHandler("mainAnimationWillRevertTo",[t,i]),this.sliderElement.one("mainAnimationComplete",e.proxy(this.revertTo,this,t,i))},s.prototype.revertTo=function(e,t){this.slider.revertTo(e,t),this.slider.slides[t].triggerHandler("mainAnimationStartInCancel")},s.prototype.willCleanSlideIndex=function(t){this.sliderElement.one("mainAnimationComplete",e.proxy(this.cleanSlideIndex,this,t))},s.prototype.cleanSlideIndex=function(){},s.prototype._initAnimation=function(e,t,i){},s.prototype.onChangeToStart=function(e,t,i){this.state="playing";var s=[this,e.index,t.index,i];this.sliderElement.trigger("mainAnimationStart",s),this.slider.slides[e.index].trigger("mainAnimationStartOut",s),this.slider.slides[t.index].trigger("mainAnimationStartIn",s)},s.prototype.onChangeToComplete=function(e,t,i){var s=[this,e.index,t.index,i];this.clearTimelines(),this.disableReverseMode(),this.slider.slides[e.index].trigger("mainAnimationCompleteOut",s),this.slider.slides[t.index].trigger("mainAnimationCompleteIn",s),this.state="ended",this.sliderElement.trigger("mainAnimationComplete",s)},s.prototype.onReverseChangeToComplete=function(e,t,i){s.prototype.onChangeToComplete.apply(this,arguments)},s.prototype.clearTimelines=function(){this.revertCB=function(){},this.timeline.clear(),this.timeline.timeScale(1)},s.prototype.getEase=function(){return this.isTouch?"linear":this.parameters.ease},s}),N2Require("SmartSliderControlAutoplay",[],[],function(e,t,i){"use strict";function s(t,i){this._paused=!0,this._wait=!1,this._disabled=!1,this._currentCount=0,this._progressEnabled=!1,this.timeline=null,this.hasButton=!1,this.deferredsMediaPlaying=null,this.deferredMouseLeave=null,this.deferredMouseEnter=null,this.mainAnimationDeferred=!0,this.autoplayDeferred=null,this.slider=t,this.parameters=e.extend({enabled:0,start:1,duration:8e3,autoplayToSlide:0,autoplayToSlideIndex:-1,allowReStart:0,pause:{mouse:"enter",click:!0,mediaStarted:!0},resume:{click:0,mouse:0,mediaEnded:!0}},i),this.parameters.enabled?(this.parameters.duration/=1e3,t.controls.autoplay=this,this.deferredsExtraPlaying={},this.slider.visible(e.proxy(this.onReady,this))):this.disable(),t.controls.autoplay=this}var r=!1;return s.prototype.onReady=function(){this.autoplayDeferred=e.Deferred();var t={_progress:0};this.timeline=NextendTween.to(t,this.getSlideDuration(this.slider.currentSlide.index),{_progress:1,paused:!0,onComplete:e.proxy(this.next,this)}),this._progressEnabled&&this.enableProgress();var i=this.slider.sliderElement;if(this.parameters.start?this.continueAutoplay():this.pauseAutoplayExtraPlaying(null,"autoplayButton"),i.on("mainAnimationStart.autoplay",e.proxy(this.onMainAnimationStart,this)),"0"!=this.parameters.pause.mouse)switch(i.on("touchend.autoplay",function(){r=!0,setTimeout(function(){r=!1},300)}),this.parameters.pause.mouse){case"enter":i.on("mouseenter.autoplay",e.proxy(this.pauseAutoplayMouseEnter,this)),i.on("mouseleave.autoplay",e.proxy(this.pauseAutoplayMouseEnterEnded,this));break;case"leave":i.on("mouseleave.autoplay",e.proxy(this.pauseAutoplayMouseLeave,this)),i.on("mouseenter.autoplay",e.proxy(this.pauseAutoplayMouseLeaveEnded,this))}if(this.parameters.pause.click&&!this.parameters.resume.click?i.on("universalclick.autoplay",e.proxy(this.pauseAutoplayUniversal,this)):!this.parameters.pause.click&&this.parameters.resume.click?i.on("universalclick.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this)):this.parameters.pause.click&&this.parameters.resume.click&&i.on("universalclick.autoplay",e.proxy(function(e){this._paused?this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton"):this.pauseAutoplayUniversal(e)},this)),this.parameters.pause.mediaStarted&&(this.deferredsMediaPlaying={},i.on("mediaStarted.autoplay",e.proxy(this.pauseAutoplayMediaPlaying,this)),i.on("mediaEnded.autoplay",e.proxy(this.pauseAutoplayMediaPlayingEnded,this))),"0"!=this.parameters.resume.mouse)switch(this.parameters.resume.mouse){case"enter":this.hasButton&&"0"!=this.parameters.pause.mouse?i.on("mouseenter.autoplay",e.proxy(this.continueAutoplay,this)):i.on("mouseenter.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this));break;case"leave":this.hasButton&&"0"!=this.parameters.pause.mouse?i.on("mouseleave.autoplay",e.proxy(this.continueAutoplay,this)):i.on("mouseleave.autoplay",e.proxy(function(e){this.pauseAutoplayExtraPlayingEnded(e,"autoplayButton")},this))}this.parameters.resume.mediaEnded&&i.on("mediaEnded.autoplay",e.proxy(this.continueAutoplay,this)),i.on("autoplayExtraWait.autoplay",e.proxy(this.pauseAutoplayExtraPlaying,this)),i.on("autoplayExtraContinue.autoplay",e.proxy(this.pauseAutoplayExtraPlayingEnded,this)),this.slider.sliderElement.on("mainAnimationComplete.autoplay",e.proxy(this.onMainAnimationComplete,this))},s.prototype.enableProgress=function(){this.timeline&&this.timeline.eventCallback("onUpdate",e.proxy(this.onUpdate,this)),this._progressEnabled=!0},s.prototype.onMainAnimationStart=function(t,i,s,r,n){this.mainAnimationDeferred=e.Deferred(),this.deActivate(0,"wait");for(var o in this.deferredsMediaPlaying)this.deferredsMediaPlaying[o].resolve()},s.prototype.onMainAnimationComplete=function(e,t,i,s){this.parameters.autoplayToSlideIndex>=0&&this.parameters.autoplayToSlideIndex==this.slider.currentRealSlide.index+1&&this.limitAutoplay(),this.timeline.duration(this.getSlideDuration(s)),this.mainAnimationDeferred.resolve(),this.continueAutoplay()},s.prototype.getSlideDuration=function(e){var t=this.slider.realSlides[this.slider.getRealIndex(e)],i=t.minimumSlideDuration;return.3>i&&i<this.parameters.duration&&(i=this.parameters.duration),i},s.prototype.continueAutoplay=function(t){"pending"==this.autoplayDeferred.state()&&this.autoplayDeferred.reject();var i=[];for(var s in this.deferredsExtraPlaying)i.push(this.deferredsExtraPlaying[s]);for(var s in this.deferredsMediaPlaying)i.push(this.deferredsMediaPlaying[s]);this.deferredMouseEnter&&i.push(this.deferredMouseEnter),this.deferredMouseLeave&&i.push(this.deferredMouseLeave),i.push(this.mainAnimationDeferred),this.autoplayDeferred=e.Deferred(),this.autoplayDeferred.done(e.proxy(this._continueAutoplay,this)),e.when.apply(e,i).done(e.proxy(function(){"pending"==this.autoplayDeferred.state()&&this.autoplayDeferred.resolve()},this))},s.prototype._continueAutoplay=function(){!this._paused&&!this._wait||this._disabled||(this._paused=!1,this._wait=!1,this.slider.sliderElement.triggerHandler("autoplayStarted"),1==this.timeline.progress()&&this.timeline.pause(0,!1),this.startTimeout(null))},s.prototype.pauseAutoplayUniversal=function(e){this.pauseAutoplayExtraPlaying(e,"autoplayButton"),this.deActivate(null,"pause")},s.prototype.pauseAutoplayMouseEnter=function(){r||(this.autoplayDeferred.reject(),this.deferredMouseEnter=e.Deferred(),this.deActivate(null,"leave"==this.parameters.resume.mouse?"wait":"pause"))},s.prototype.pauseAutoplayMouseEnterEnded=function(){this.deferredMouseEnter&&this.deferredMouseEnter.resolve()},s.prototype.pauseAutoplayMouseLeave=function(){this.autoplayDeferred.reject(),this.deferredMouseLeave=e.Deferred(),this.deActivate(null,"enter"==this.parameters.resume.mouse?"wait":"pause")},s.prototype.pauseAutoplayMouseLeaveEnded=function(){this.deferredMouseLeave&&this.deferredMouseLeave.resolve()},s.prototype.pauseAutoplayMediaPlaying=function(t,i){"undefined"!=typeof this.deferredsMediaPlaying[i]&&this.autoplayDeferred.reject(),this.deferredsMediaPlaying[i]=e.Deferred(),this.deActivate(null,"wait")},s.prototype.pauseAutoplayMediaPlayingEnded=function(e,t){"undefined"!=typeof this.deferredsMediaPlaying[t]&&(this.autoplayDeferred.reject(),this.deferredsMediaPlaying[t].resolve(),delete this.deferredsMediaPlaying[t])},s.prototype.pauseAutoplayExtraPlaying=function(t,i){"undefined"!=typeof this.deferredsExtraPlaying[i]&&this.autoplayDeferred.reject(),this.deferredsExtraPlaying[i]=e.Deferred(),this.deActivate(null,"pause")},s.prototype.pauseAutoplayExtraPlayingEnded=function(e,t){"undefined"!=typeof this.deferredsExtraPlaying[t]&&(this.autoplayDeferred.reject(),this.deferredsExtraPlaying[t].resolve(),delete this.deferredsExtraPlaying[t]),this.continueAutoplay()},s.prototype.deActivate=function(e,t){"pause"==t?this._paused||(this._paused=!0,0!==e&&this.slider.sliderElement.triggerHandler("autoplayPaused")):"wait"==t&&(this._wait||(this._wait=!0,0!==e&&this.slider.sliderElement.triggerHandler("autoplayWait"))),this.timeline&&this.timeline.pause(e,!1)},s.prototype.disable=function(){this.deActivate(0,"pause"),this.slider.sliderElement.triggerHandler("autoplayPaused"),this.slider.sliderElement.triggerHandler("autoplayDisabled"),this.slider.sliderElement.off(".autoplay"),this._disabled=!0},s.prototype.startTimeout=function(e){this._paused||this._disabled||this.timeline.play(e)},s.prototype.next=function(){this.timeline.pause(),this._currentCount++,(this.parameters.autoplayToSlide>0&&this._currentCount>=this.parameters.autoplayToSlide||this.parameters.autoplayToSlideIndex>=0&&this.parameters.autoplayToSlideIndex==this.slider.currentRealSlide.index+2)&&this.limitAutoplay(),this.slider.nextCarousel(!0)},s.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.slider.sliderElement.triggerHandler("autoplayExtraWait","autoplayButton")):this.disable()},s.prototype.onUpdate=function(){this.slider.sliderElement.triggerHandler("autoplay",this.timeline.progress())},s}),N2Require("SmartSliderControlFullscreen",[],[],function(e,t,i){"use strict";function s(t,i,s){this.slider=t,this.responsive=this.slider.responsive,this._type=this.responsive.parameters.type,this._forceFull=this.responsive.parameters.forceFull,this.forceFullpage="auto"==this._type||"fullwidth"==this._type||"fullpage"==this._type,this.forceFullpage&&(this._upscale=this.responsive.parameters.upscale,this._minimumHeightRatio=e.extend({},this.responsive.parameters.minimumHeightRatio),this._maximumHeightRatio=e.extend({},this.responsive.parameters.maximumHeightRatio)),this.isFullScreen=!1,this.fullParent=this.slider.sliderElement.closest(".n2-ss-align"),this.browserSpecific={};var r=this.slider.sliderElement[0];r.requestFullscreen?(this.browserSpecific.requestFullscreen="requestFullscreen",this.browserSpecific.event="fullscreenchange"):r.msRequestFullscreen?(this.browserSpecific.requestFullscreen="msRequestFullscreen",this.browserSpecific.event="MSFullscreenChange"):r.mozRequestFullScreen?(this.browserSpecific.requestFullscreen="mozRequestFullScreen",this.browserSpecific.event="mozfullscreenchange"):r.webkitRequestFullscreen?(this.browserSpecific.requestFullscreen="webkitRequestFullscreen",
this.browserSpecific.event="webkitfullscreenchange"):(this.browserSpecific.requestFullscreen="nextendRequestFullscreen",this.browserSpecific.event="nextendfullscreenchange",this.fullParent[0][this.browserSpecific.requestFullscreen]=e.proxy(function(){this.fullParent.css({position:"fixed",left:0,top:0,width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e6}),document.fullscreenElement=this.fullParent[0],this.triggerEvent(document,this.browserSpecific.event),e(window).trigger("resize")},this)),document.exitFullscreen?this.browserSpecific.exitFullscreen="exitFullscreen":document.msExitFullscreen?this.browserSpecific.exitFullscreen="msExitFullscreen":document.mozCancelFullScreen?this.browserSpecific.exitFullscreen="mozCancelFullScreen":document.webkitExitFullscreen?this.browserSpecific.exitFullscreen="webkitExitFullscreen":(this.browserSpecific.exitFullscreen="nextendExitFullscreen",this.fullParent[0][this.browserSpecific.exitFullscreen]=e.proxy(function(){this.fullParent.css({position:"",left:"",top:"",width:"",height:"",backgroundColor:"",zIndex:""}),document.fullscreenElement=null,this.triggerEvent(document,this.browserSpecific.event)},this)),document.addEventListener(this.browserSpecific.event,e.proxy(this.fullScreenChange,this))}return s.prototype.switchState=function(){this.isFullScreen=!this.isFullScreen,this.isFullScreen?this._fullScreen():this._normalScreen()},s.prototype.requestFullscreen=function(){return this.isFullScreen?!1:(this.isFullScreen=!0,this._fullScreen(),!0)},s.prototype.exitFullscreen=function(){return this.isFullScreen?(this.isFullScreen=!1,this._normalScreen(),!0):!1},s.prototype.triggerEvent=function(e,t){var i;document.createEvent?(i=document.createEvent("HTMLEvents"),i.initEvent(t,!0,!0)):document.createEventObject&&(i=document.createEventObject(),i.eventType=t),i.eventName=t,e.dispatchEvent?e.dispatchEvent(i):e.fireEvent&&htmlEvents["on"+t]?e.fireEvent("on"+i.eventType,i):e[t]?e[t]():e["on"+t]&&e["on"+t]()},s.prototype._fullScreen=function(){this.forceFullpage&&(this.responsive.parameters.type="fullpage",this.responsive.parameters.upscale=!0,this.responsive.parameters.forceFull=!1,this._marginLeft=this.responsive.containerElement[0].style.marginLeft,this.responsive.containerElement.css(nextend.rtl.marginLeft,0)),this.fullParent.css({width:"100%",height:"100%",backgroundColor:e("body").css("background-color")}).addClass("n2-ss-in-fullscreen"),this.fullParent.get(0)[this.browserSpecific.requestFullscreen]()},s.prototype._normalScreen=function(){document[this.browserSpecific.exitFullscreen]?document[this.browserSpecific.exitFullscreen]():this.fullParent[0][this.browserSpecific.exitFullscreen]&&this.fullParent[0][this.browserSpecific.exitFullscreen]()},s.prototype.fullScreenChange=function(){this.isDocumentInFullScreenMode()?(this.slider.sliderElement.triggerHandler("n2FullScreen"),e("html").addClass("n2-in-fullscreen"),this.isFullScreen=!0,e(window).trigger("resize")):this.forceFullpage&&(this.responsive.parameters.type=this._type,this.responsive.parameters.upscale=this._upscale,this.responsive.parameters.forceFull=this._forceFull,this.responsive.parameters.minimumHeightRatio=this._minimumHeightRatio,this.responsive.parameters.maximumHeightRatio=this._maximumHeightRatio,this.responsive.containerElement.css(nextend.rtl.marginLeft,this._marginLeft),this.fullParent.css({width:"",height:"",backgroundColor:""}).removeClass("n2-ss-in-fullscreen"),e("html").removeClass("n2-in-fullscreen"),e(window).trigger("resize"),this.isFullScreen=!1,this.slider.sliderElement.triggerHandler("n2ExitFullScreen"))},s.prototype.isDocumentInFullScreenMode=function(){return document.fullscreenElement&&null!==document.fullscreenElement||document.msFullscreenElement&&null!==document.msFullscreenElement||document.mozFullScreen||document.webkitIsFullScreen},s}),N2Require("SmartSliderControlKeyboard",[],[],function(e,t,i){"use strict";function s(t,i,r){this.slider=t,this.parameters=e.extend({},r),"vertical"==i?this.parseEvent=s.prototype.parseEventVertical:this.parseEvent=s.prototype.parseEventHorizontal,e(document).on("keydown",e.proxy(this.onKeyDown,this)),t.controls.keyboard=this}return s.prototype.isSliderOnScreen=function(){var t=this.slider.sliderElement.offset(),i=e(window).scrollTop(),s=this.slider.sliderElement.height();return t.top+.5*s>=i&&t.top-.5*s<=i+e(window).height()},s.prototype.onKeyDown=function(e){e.target.tagName.match(/BODY|DIV|IMG/)&&this.isSliderOnScreen()&&(e=e||window.event,this.parseEvent.call(this,e)&&(e.preventDefault(),e.stopImmediatePropagation()))},s.prototype.parseEventHorizontal=function(e){switch(e.keyCode){case 39:return this.slider[nextend.rtl.next](),!0;case 37:return this.slider[nextend.rtl.previous](),!0;default:return!1}},s.prototype.parseEventVertical=function(e){switch(e.keyCode){case 40:return this.slider.next(),!0;case 38:return this.slider.previous(),!0;default:return!1}},s}),N2Require("SmartSliderControlScroll",[],[],function(e,t,i){"use strict";function s(t){this.preventScroll=!1,this._preventScrollTimeout=null,this.slider=t,t.sliderElement.on("DOMMouseScroll mousewheel",e.proxy(this.onMouseWheel,this)),t.controls.scroll=this}return s.prototype.onMouseWheel=function(e){if(this.preventScroll)this.preventScrollTimeout(e);else{var t=!1;e.originalEvent&&(e.originalEvent.wheelDelta&&(t=e.originalEvent.wheelDelta/-1<0),e.originalEvent.deltaY&&(t=e.originalEvent.deltaY<0),e.originalEvent.detail&&(t=e.originalEvent.detail<0)),t?this.slider.previous()&&this.preventScrollTimeout(e):this.slider.next()&&this.preventScrollTimeout(e)}},s.prototype.preventScrollTimeout=function(t){null!==this._preventScrollTimeout&&clearTimeout(this._preventScrollTimeout),this.preventScroll=!0,t.preventDefault(),this._preventScrollTimeout=setTimeout(e.proxy(function(){this.preventScroll=!1,this._preventScrollTimeout=null},this),400)},s}),N2Require("SmartSliderControlTilt",[],[],function(e,t,i){"use strict";function s(t,i){return"undefined"==typeof window.DeviceOrientationEvent||"undefined"==typeof window.orientation?"Not supported":(this.timeout=null,this.slider=t,this.parameters=e.extend({duration:2e3},i),this.orientationchange(),window.addEventListener("orientationchange",e.proxy(this.orientationchange,this)),window.addEventListener("deviceorientation",e.proxy(this.handleOrientation,this),!0),void(t.controls.tilt=this))}return s.prototype.orientationchange=function(){switch(window.orientation){case-90:case 90:this.parseEvent=s.prototype.parseEventHorizontalLandscape;break;default:this.parseEvent=s.prototype.parseEventHorizontal}},s.prototype.clearTimeout=function(){this.timeout=null},s.prototype.handleOrientation=function(t){null==this.timeout&&this.parseEvent.call(this,t)&&(this.timeout=setTimeout(e.proxy(this.clearTimeout,this),this.parameters.duration),t.preventDefault())},s.prototype.parseEventHorizontal=function(e){return e.gamma>10?(this.slider.next(),!0):e.gamma<-10?(this.slider.previous(),!0):!1},s.prototype.parseEventHorizontalLandscape=function(e){return e.beta<-10?(this.slider.next(),!0):e.beta>10?(this.slider.previous(),!0):!1},s}),N2Require("SmartSliderControlTouch",[],[],function(e,t,i){"use strict";function s(t,i,s){this.currentAnimation=null,this.slider=t,this._animation=t.mainAnimation,this.parameters=e.extend({fallbackToMouseEvents:!0},s),this.swipeElement=this.slider.sliderElement.find("> .n2-ss-swipe-element"),"vertical"==i?this.setVertical():"horizontal"==i&&this.setHorizontal();var r=e.proxy(function(){var e=this;this._animation.isNoAnimation?N2EventBurrito(this.swipeElement.get(0),{mouse:this.parameters.fallbackToMouseEvents,axis:"horizontal"==i?"x":"y",start:function(){n=!1},move:function(t,i,s,r,o){var a=e._direction.measure(s);if(!o&&"unknown"!=a&&null===e.currentAnimation){if("ended"!=e._animation.state)return!1;e.distance=[0],e.swipeElement.addClass("n2-grabbing"),e.currentAnimation={direction:a};var l=e.slider.isChangePossible(e._direction[a]);if(!l)return e.currentAnimation=null,!1}if(e.currentAnimation){var d=e._direction.get(s,e.currentAnimation.direction);if(e.logDistance(d),(n||Math.abs(d)>e._direction.minDistance)&&t.cancelable)return n=!0,!0}return!1},end:function(t,i,s,r,n){if(null!==e.currentAnimation){var o=n?0:e.measureRealDirection();o&&e.slider[e._direction[e.currentAnimation.direction]](),e.swipeElement.removeClass("n2-grabbing"),e.currentAnimation=null}Math.abs(s.x)<10&&Math.abs(s.y)<10?e.onTap(t):nextend.preventClick()}}):N2EventBurrito(this.swipeElement.get(0),{mouse:this.parameters.fallbackToMouseEvents,axis:"horizontal"==i?"x":"y",start:function(e,t){n=!1},move:function(t,i,s,r,o){var a=e._direction.measure(s);if(!o&&"unknown"!=a&&null===e.currentAnimation){if("ended"!=e._animation.state)return!1;e.distance=[0],e.swipeElement.addClass("n2-grabbing"),e._animation.setTouch(e._direction.axis),e.currentAnimation={direction:a,percent:0};var l=e.slider[e._direction[a]](!1);if(!l)return e._animation.setTouch(!1),e.currentAnimation=null,!1}if(e.currentAnimation){var d=e._direction.get(s,e.currentAnimation.direction);if(e.logDistance(d),e.currentAnimation.percent<1){var h=Math.max(-.99999,Math.min(.99999,d/e.slider.dimensions.slider[e._property]));e.currentAnimation.percent=h,e._animation.setTouchProgress(h)}if((n||Math.abs(d)>e._direction.minDistance)&&t.cancelable)return n=!0,!0}return!1},end:function(t,i,s,r,n){if(null!==e.currentAnimation){var o=n?0:e.measureRealDirection(),a=e._animation.timeline.progress();1!=a&&e._animation.setTouchEnd(o,e.currentAnimation.percent,s.time),e.swipeElement.removeClass("n2-grabbing"),e._animation.setTouch(!1),e.currentAnimation=null}Math.abs(s.x)<10&&Math.abs(s.y)<10?e.onTap(t):nextend.preventClick()}})},this);if(navigator.userAgent.toLowerCase().indexOf("android")>-1){var o=this.swipeElement.parent();1!=o.css("opacity")?this.swipeElement.parent().one("transitionend",r):r()}else r();this.parameters.fallbackToMouseEvents||this.swipeElement.on("click",e.proxy(this.onTap,this)),this.parameters.fallbackToMouseEvents&&this.swipeElement.addClass("n2-grab"),t.controls.touch=this}var r=window.navigator.pointerEnabled||window.navigator.msPointerEnabled,n=!1,o=!1;return s.prototype.setHorizontal=function(){this._property="width",this._direction={left:nextend.rtl.next,right:nextend.rtl.previous,up:null,down:null,axis:"horizontal",minDistance:10,measure:function(e){return!n&&Math.abs(e.x)<10||0==e.x||Math.abs(e.x)<Math.abs(e.y)?"unknown":e.x<0?"left":"right"},get:function(e,t){return"left"==t?-e.x:e.x}},r&&(this.swipeElement.css("-ms-touch-action","pan-y"),this.swipeElement.css("touch-action","pan-y"))},s.prototype.setVertical=function(){this._property="height",this._direction={left:null,right:null,up:"next",down:"previous",axis:"vertical",minDistance:1,measure:function(e){return!n&&Math.abs(e.y)<1||0==e.y||Math.abs(e.y)<Math.abs(e.x)?"unknown":e.y<0?"up":"down"},get:function(e,t){return"up"==t?-e.y:e.y}},r&&(this.swipeElement.css("-ms-touch-action","pan-x"),this.swipeElement.css("touch-action","pan-x"))},s.prototype.logDistance=function(e){this.distance.length>3&&this.distance.shift(),this.distance.push(e)},s.prototype.measureRealDirection=function(){var e=this.distance[0],t=this.distance[this.distance.length-1];return t>=0&&e>t||0>t&&t>e?0:1},s.prototype.onTap=function(t){o||(e(t.target).trigger("n2click"),o=!0,setTimeout(function(){o=!1},500))},s}),N2Require("SmartSliderBackgroundImage",[],[],function(e,t,i){function s(t,i,s){this.loadStarted=!1,this.loadAllowed=!1,this.width=0,this.height=0,this.slide=t,this.element=i,this.$mask=this.element.find(".n2-ss-slide-background-mask"),this.manager=s,this.loadDeferred=e.Deferred(),this.currentSrc="",this.mode=i.data("mode"),this.opacity=i.data("opacity"),this.blur=i.data("blur"),this.x=i.data("x"),this.y=i.data("y"),this.hasImage=!1,this.$image=this.$mask.find("img"),this.$image.length?(this.hasImage=!0,this.startImageMode()):this.startColorMode()}return s.prototype.startColorMode=function(){this.loadDeferred.resolve()},s.prototype.startImageMode=function(){if("fixed"==this.mode&&(n2const.isPhone&&!this.slide.slider.parameters["background.parallax.mobile"]||n2const.isTablet&&!this.slide.slider.parameters["background.parallax.tablet"])&&(this.mode="fill"),this.$image.css("display","none"),this.$background=e('<div class="n2-ss-background-image"/>').css({opacity:this.opacity,backgroundPosition:this.x+"% "+this.y+"%"}).appendTo(this.$mask),window.n2FilterProperty&&(this.blur>0?this.$background.css({margin:"-"+2*this.blur+"px",padding:2*this.blur+"px"}).css(window.n2FilterProperty,"blur("+this.blur+"px)"):this.$background.css({margin:"",padding:""}).css(window.n2FilterProperty,"")),"fixed"==this.mode&&this.startFixed(),this.desktopSrc=this.element.data("desktop")||"",this.tabletSrc=this.element.data("tablet")||"",this.mobileSrc=this.element.data("mobile")||"",nextend.isRetina){var t=this.element.data("desktop-retina");t&&(this.desktopSrc=t),t=this.element.data("tablet-retina"),t&&(this.tabletSrc=t),t=this.element.data("mobile-retina"),t&&(this.mobileSrc=t)}},s.prototype.preLoad=function(){return this.loadStarted||(this.slide.$element.find("[data-lazysrc]").each(function(){var t=e(this);t.attr("src",t.data("lazysrc"))}),this.loadStarted=!0),"pending"==this.loadDeferred.state()&&(this.loadAllowed=!0,this.manager.deviceDeferred.done(e.proxy(function(){this.updateBackgroundToDevice(this.manager.device),this.$background.n2imagesLoaded({background:!0},e.proxy(function(e){var t=e.images[0].img;this.width=t.naturalWidth,this.height=t.naturalHeight,this.isLoaded=!0,this.loadDeferred.resolve(this.element)},this))},this))),this.loadDeferred},s.prototype.updateBackgroundToDevice=function(e){var t=this.desktopSrc;"mobile"==e.device?this.mobileSrc?t=this.mobileSrc:this.tabletSrc&&(t=this.tabletSrc):"tablet"==e.device&&this.tabletSrc&&(t=this.tabletSrc),t?this.setSrc(t):this.setSrc("")},s.prototype.setSrc=function(e){this.loadAllowed&&e!=this.currentSrc&&(""===e?this.$background.css("background-image",""):this.$background.css("background-image",'url("'+e+'")'),this.currentSrc=e)},s.prototype.startFixed=function(){n2const.isEdge||(this.slide.slider.parameters.allowBGImageAttachmentFixed&&!n2const.isIOS?(this.$background.css("background-repeat","repeat"),this.$background.css("position","static"),this.$background.css("background-attachment","fixed")):n2const.isIE||this.slide.slider.startedDeferred.done(e.proxy(function(){fixedBackground.addElement(this.$background,this.element)},this)))},s.prototype.hack=function(){NextendTween.set(this.element,{rotation:1e-4})},s}),N2Require("FrontendComponent",[],[],function(e,t,i){function s(e,i,s,r){this.wraps={},this.isVisible=!0,this.device="",this.children=[],this.slide=e,this.parent=i,this.$layer=s.data("layer",this);var n=this.$layer.find("> .n2-ss-layer-mask");n.length&&(this.wraps.mask=n);var o=this.$layer.find("> .n2-ss-layer-parallax");switch(o.length&&(this.wraps.parallax=o),s.data("pm")){case"absolute":this.placement=new t.FrontendPlacementAbsolute(this);break;case"normal":this.placement=new t.FrontendPlacementNormal(this);break;case"content":this.placement=new t.FrontendPlacementContent(this);break;default:this.placement=new t.FrontendPlacementDefault(this)}if(this.parallax=s.data("parallax"),this.baseSize=this.baseSize||100,this.isAdaptiveFont=this.get("adaptivefont"),this.refreshBaseSize(this.getDevice("fontsize")),r)for(var a=0;a<r.length;a++)switch(r.eq(a).data("type")){case"content":this.children.push(new t.FrontendComponentContent(this.slide,this,r.eq(a)));break;case"row":this.children.push(new t.FrontendComponentRow(this.slide,this,r.eq(a)));break;case"col":this.children.push(new t.FrontendComponentCol(this.slide,this,r.eq(a)));break;case"group":break;default:this.children.push(new t.FrontendComponentLayer(this.slide,this,r.eq(a)))}}return s.prototype.refreshBaseSize=function(e){this.isAdaptiveFont?this.baseSize=16*e/100:this.baseSize=this.parent.baseSize*e/100},s.prototype.start=function(){this.placement.start();for(var e=0;e<this.children.length;e++)this.children[e].start();var t=this.get("rotation")||0;if(t/360!=0){var i=this.addWrap("rotation","<div class='n2-ss-layer-rotation'></div>");NextendTween.set(i[0],{rotationZ:t})}},s.prototype.onDeviceChange=function(e){this.device=e;var t=this.isVisible;if(this.isVisible=this.getDevice(""),this.isVisible===i&&(this.isVisible=1),t&&!this.isVisible?(this.$layer.data("shows",0),this.$layer.css("display","none")):!t&&this.isVisible&&(this.$layer.data("shows",1),this.$layer.css("display","block")),this.isVisible){var s=this.getDevice("fontsize");this.refreshBaseSize(s),this.isAdaptiveFont?this.$layer.css("font-size",16*s/100+"px"):this.$layer.css("font-size",s+"%");for(var r=0;r<this.children.length;r++)this.children[r].onDeviceChange(e);this.placement.onDeviceChange(e),this.onAfterDeviceChange(e)}},s.prototype.onAfterDeviceChange=function(e){},s.prototype.onResize=function(e,t,i){if(this.isVisible||this.placement.alwaysResize){for(var s=0;s<this.children.length;s++)this.children[s].onResize(e,t,i);this.placement.onResize(e,t,i)}},s.prototype.getDevice=function(e,t){var s=this.$layer.data(this.device+e);return s!=i?s:"desktopportrait"!=this.device?this.$layer.data("desktopportrait"+e):t!==i?t:0},s.prototype.get=function(e){return this.$layer.data(e)},s.prototype.getParallaxNodes=function(){var e=[];if(this.isVisible){this.parallax&&e.push(this.$layer[0]);for(var t=0;t<this.children.length;t++)e.push.apply(e,this.children[t].getParallaxNodes())}return e},s.prototype.addWrap=function(t,s){if(this.wraps[t]===i){var r=e(s);switch(t){case"rotation":this.wraps.mask!==i?r.appendTo(this.wraps.mask):this.wraps.parallax!==i?r.appendTo(this.wraps.parallax):r.appendTo(this.$layer),r.append(this.getContents())}this.wraps[t]=r}return r},s.prototype.getContents=function(){return!1},s}),N2Require("FrontendPlacement",[],[],function(e,t,i){function s(e){this.layer=e,this.alwaysResize=!1}return s.prototype.start=function(){},s.prototype.onDeviceChange=function(e){},s.prototype.onResize=function(e,t,i){},s}),N2Require("FrontendSliderSlide",["FrontendComponentSlideAbstract"],[],function(e,t,i){function s(i,s,r){this.isStaticSlide=!1,this.originalIndex=r,this.index=r,this.localIndex=r,this.$element=s.data("slide",this),this.id=this.$element.data("id"),this.backgroundImage=!1,this.backgroundVideo=!1,this.slides=[this],i.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=s.data("slide-duration"),e.isNumeric(this.minimumSlideDuration)||(this.minimumSlideDuration=0));var n=s.find(".n2-ss-layers-container");t.FrontendComponentSlideAbstract.prototype.constructor.call(this,i,n)}return s.prototype=Object.create(t.FrontendComponentSlideAbstract.prototype),s.prototype.constructor=s,s.prototype.init=function(){t.FrontendComponentSlideAbstract.prototype.init.call(this);var e=this.slider.findSlideBackground(this);e.length>0&&(this.slider.isAdmin?this.backgroundImage=new t.SmartSliderBackgroundImageAdmin(this,e,this.slider.backgroundImages):this.backgroundImage=new t.SmartSliderBackgroundImage(this,e,this.slider.backgroundImages)),this.$element.data("slideBackground",this.backgroundImage);var i=this.backgroundImage.element.find(".n2-ss-slide-background-video");i.length>0&&(this.backgroundVideo=new t.SmartSliderBackgroundVideo(this,i))},s.prototype.setStarterSlide=function(){t.FrontendComponentSlideAbstract.prototype.setStarterSlide.call(this)},s.prototype.setIndex=function(e){this.localIndex=this.index=e},s.prototype.preLoad=function(){return this.backgroundImage?this.backgroundImage.preLoad():!0},s.prototype.setPrevious=function(e){this.previousSlide=e},s.prototype.setNext=function(e){this.nextSlide=e,e.setPrevious(this)},s.prototype.hasBackgroundVideo=function(){return this.backgroundVideo},s}),N2Require("FrontendComponentSlideAbstract",["FrontendComponent"],[],function(e,t,i){function s(i,s){this.baseSize=16,this.slider=i,this.isCurrentlyEdited()||(this.status=r.NOT_INITIALIZED,t.FrontendComponent.prototype.constructor.call(this,this,this,s,s.find("> .n2-ss-section-outer > .n2-ss-layer, > .n2-ss-layer, > .n2-ss-layer-group")),this.slider.sliderElement.on({SliderDeviceOrientation:e.proxy(function(e,t){this.onDeviceChange(t.device+t.orientation.toLowerCase())},this),SliderResize:e.proxy(function(e,t,i){this.onResize(t,i.responsiveDimensions)},this)}),t.FrontendComponent.prototype.start.call(this))}var r={NOT_INITIALIZED:-1,INITIALIZED:0,READY_TO_START:1,PLAYING:2,ENDED:3};return s.prototype=Object.create(t.FrontendComponent.prototype),s.prototype.constructor=s,s.prototype.isCurrentlyEdited=function(){return this.slider.parameters.admin&&this.$element.hasClass("n2-ss-currently-edited-slide")},s.prototype.trigger=function(){this.$element.trigger.apply(this.$element,[].slice.call(arguments))},s.prototype.triggerHandler=function(){return this.$element.triggerHandler.apply(this.$element,[].slice.call(arguments))},s.prototype.init=function(){!this.isCurrentlyEdited()},s.prototype.refreshBaseSize=function(e){},s.prototype.onResize=function(e,t){for(var i=0;i<this.children.length;i++)this.children[i].onResize(e,t,this.isStaticSlide)},s.prototype.hasLayers=function(){return this.children.length>0},s.prototype.onDeviceChange=function(e){this.device=e;for(var t=0;t<this.children.length;t++)this.children[t].onDeviceChange(e);this.placement.onDeviceChange(e)},s.prototype.setStarterSlide=function(){},s}),N2Require("FrontendSliderStaticSlide",["FrontendComponentSlideAbstract"],[],function(e,t,i){function s(e,i){this.isStaticSlide=!0,this.$element=i.data("slide",this),t.FrontendComponentSlideAbstract.prototype.constructor.call(this,e,i),this.init()}return s.prototype=Object.create(t.FrontendComponentSlideAbstract.prototype),s.prototype.constructor=s,s}),N2Require("FrontendPlacementAbsolute",["FrontendPlacement"],[],function(e,t,i){function s(e){return e.position()}function s(e){return{left:e.prop("offsetLeft"),top:e.prop("offsetTop")}}function r(e){this.linked=[],this.parentLayer=!1,this.$parent=!1,t.FrontendPlacement.prototype.constructor.apply(this,arguments)}return/(MSIE\ [0-7]\.\d+)/.test(navigator.userAgent),r.prototype=Object.create(t.FrontendPlacement.prototype),r.prototype.constructor=r,r.prototype.start=function(){var t=this.layer.get("parentid");t&&(this.$parent=e("#"+t),0==this.$parent.length?this.$parent=!1:(this.parentLayer=this.$parent.data("layer"),this.parentLayer.placement.addLinked(this),this.onResize=function(){}))},r.prototype.addLinked=function(e){this.linked.push(e),this.alwaysResize=!0},r.prototype.onResize=r.prototype.onResizeLinked=function(e,t,i){var r=this.layer.$layer,n=e.slideW,o=n,a=e.slideH,l=a;parseInt(this.layer.get("responsivesize"))||(o=l=1),r.css("width",this.getWidth(o)),r.css("height",this.getHeight(l)),parseInt(this.layer.get("responsiveposition"))||(n=a=1);var d=this.layer.getDevice("left")*n,h=this.layer.getDevice("top")*a,p=this.layer.getDevice("align"),c=this.layer.getDevice("valign"),u={left:"auto",top:"auto",right:"auto",bottom:"auto"};if(this.$parent&&this.$parent.data("layer").isVisible){var m=s(this.$parent),f={left:0,top:0};switch(this.layer.getDevice("parentalign")){case"right":f.left=m.left+this.$parent.width();break;case"center":f.left=m.left+this.$parent.width()/2;break;default:f.left=m.left}switch(p){case"right":u.right=r.parent().width()-f.left-d+"px";break;case"center":u.left=f.left+d-r.width()/2+"px";break;default:u.left=f.left+d+"px"}switch(this.layer.getDevice("parentvalign")){case"bottom":f.top=m.top+this.$parent.height();break;case"middle":f.top=m.top+this.$parent.height()/2;break;default:f.top=m.top}switch(c){case"bottom":u.bottom=r.parent().height()-f.top-h+"px";break;case"middle":u.top=f.top+h-r.height()/2+"px";break;default:u.top=f.top+h+"px"}}else{switch(p){case"right":u.right=-d+"px";break;case"center":u.left=(i?r.parent().width():t.slide.width)/2+d-r.width()/2+"px";break;default:u.left=d+"px"}switch(c){case"bottom":u.bottom=-h+"px";break;case"middle":u.top=(i?r.parent().height():t.slide.height)/2+h-r.height()/2+"px";break;default:u.top=h+"px"}}r.css(u);for(var g=0;g<this.linked.length;g++)this.linked[g].onResizeLinked(e,t,i)},r.prototype.getWidth=function(e){var t=this.layer.getDevice("width");return this.isDimensionPropertyAccepted(t)?t:t*e+"px"},r.prototype.getHeight=function(e){var t=this.layer.getDevice("height");return this.isDimensionPropertyAccepted(t)?t:t*e+"px"},r.prototype.isDimensionPropertyAccepted=function(e){return!(!(e+"").match(/[0-9]+%/)&&"auto"!=e)},r}),N2Require("FrontendPlacementContent",["FrontendPlacement"],[],function(e,t,i){function s(e){t.FrontendPlacement.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.FrontendPlacement.prototype),s.prototype.constructor=s,s}),N2Require("FrontendPlacementDefault",["FrontendPlacement"],[],function(e,t,i){function s(e){t.FrontendPlacement.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.FrontendPlacement.prototype),s.prototype.constructor=s,s}),N2Require("FrontendPlacementNormal",["FrontendPlacement"],[],function(e,t,i){function s(e){t.FrontendPlacement.prototype.constructor.apply(this,arguments)}return s.prototype=Object.create(t.FrontendPlacement.prototype),s.prototype.constructor=s,s.prototype.onDeviceChange=function(){this.updateMargin(),this.updateHeight(),this.updateMaxWidth(),this.updateSelfAlign()},s.prototype.updateMargin=function(){var e=this.layer.getDevice("margin").split("|*|"),t=e.pop(),i=this.layer.baseSize;if("px+"==t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.layer.$layer.css("margin",e.join(t+" ")+t)},s.prototype.updateHeight=function(){var e=this.layer.getDevice("height"),t="px";if(e>0){var i=this.layer.baseSize;i>0&&(t="em",e=parseInt(e)/i),this.layer.$layer.css("height",e+t)}else this.layer.$layer.css("height","")},s.prototype.updateMaxWidth=function(){var e=parseInt(this.layer.getDevice("maxwidth"));0>=e||isNaN(e)?this.layer.$layer.css("maxWidth","").removeClass("n2-ss-has-maxwidth"):this.layer.$layer.css("maxWidth",e+"px").addClass("n2-ss-has-maxwidth")},s.prototype.updateSelfAlign=function(){this.layer.$layer.attr("data-cssselfalign",this.layer.getDevice("selfalign"))},s}),N2Require("FrontendComponentCol",["FrontendComponent"],[],function(e,t,i){function s(e,i,s){this.$content=s.find(".n2-ss-layer-col:first"),t.FrontendComponent.prototype.constructor.call(this,e,i,s,this.$content.find("> .n2-ss-layer"))}return s.prototype=Object.create(t.FrontendComponent.prototype),s.prototype.constructor=s,s.prototype.onDeviceChange=function(e){t.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updateOrder(),this.updatePadding(),this.updateInnerAlign(),this.updateMaxWidth()},s.prototype.updatePadding=function(){var e=this.getDevice("padding").split("|*|"),t=e.pop(),i=this.baseSize;if("px+"==t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.$content.css("padding",e.join(t+" ")+t)},s.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},s.prototype.updateMaxWidth=function(){var e=parseInt(this.getDevice("maxwidth"));0>=e||isNaN(e)?this.$layer.css("maxWidth","").removeClass("n2-ss-has-maxwidth"):this.$layer.css("maxWidth",e+"px").addClass("n2-ss-has-maxwidth")},s.prototype.getRealOrder=function(){var e=this.getDevice("order");return 0==e?10:e},s.prototype.updateOrder=function(){var e=this.getDevice("order");0==e?this.$layer.css("order",""):this.$layer.css("order",e)},s.prototype.getContents=function(){return this.$content},s}),N2Require("FrontendComponentContent",["FrontendComponent"],[],function(e,t,i){function s(e,i,s){this.$content=s.find("> .n2-ss-section-main-content"),t.FrontendComponent.prototype.constructor.call(this,e,i,s,this.$content.find("> .n2-ss-layer"))}return s.prototype=Object.create(t.FrontendComponent.prototype),s.prototype.constructor=s,s.prototype.onDeviceChange=function(e){t.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateInnerAlign(),this.updateMaxWidth(),this.updateSelfAlign()},s.prototype.updatePadding=function(){var e=this.getDevice("padding").split("|*|"),t=e.pop(),i=this.baseSize;if("px+"==t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.$content.css("padding",e.join(t+" ")+t)},s.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},s.prototype.updateMaxWidth=function(){var e=parseInt(this.getDevice("maxwidth"));0>=e||isNaN(e)?this.$layer.css("maxWidth","").removeClass("n2-ss-has-maxwidth"):this.$layer.css("maxWidth",e+"px").addClass("n2-ss-has-maxwidth")},s.prototype.updateSelfAlign=function(){this.$layer.attr("data-cssselfalign",this.getDevice("selfalign"))},s.prototype.getContents=function(){return this.$content},s}),N2Require("FrontendComponentLayer",["FrontendComponent"],[],function(e,t,i){function s(e,s,r){t.FrontendComponent.prototype.constructor.call(this,e,s,r),this.wraps.mask!==i?this.$item=this.wraps.mask.children():this.wraps.parallax!==i?this.$item=this.wraps.parallax.children():this.$item=r.children()}return s.prototype=Object.create(t.FrontendComponent.prototype),s.prototype.constructor=s,s.prototype.getContents=function(){return this.$item},s}),N2Require("FrontendComponentRow",["FrontendComponent"],[],function(e,t,i){function s(e,i,s){this.$row=s.find(".n2-ss-layer-row:first"),t.FrontendComponent.prototype.constructor.call(this,e,i,s,this.$row.find("> .n2-ss-layer"))}return s.prototype=Object.create(t.FrontendComponent.prototype),s.prototype.constructor=s,s.prototype.onDeviceChange=function(e){t.FrontendComponent.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateGutter(),this.updateInnerAlign()},s.prototype.onAfterDeviceChange=function(e){this.updateWrapAfter()},s.prototype.updatePadding=function(){var e=this.getDevice("padding").split("|*|"),t=e.pop(),i=this.baseSize;if("px+"==t&&i>0){t="em";for(var s=0;s<e.length;s++)e[s]=parseInt(e[s])/i}this.$row.css("padding",e.join(t+" ")+t)},s.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},s.prototype.updateGutter=function(){var e=this.getDevice("gutter")+"px";if(this.children.length>0)for(var t=this.children.length-1;t>=0;t--)this.children[t].$layer.css(nextend.rtl.marginRight,e).css("marginTop",e)},s.prototype.getSortedColumns=function(){for(var t=e.extend([],this.children).sort(function(e,t){return e.getRealOrder()-t.getRealOrder()}),i=t.length-1;i>=0;i--)t[i].isVisible||t.splice(i,1);return t},s.prototype.updateWrapAfter=function(){var t=parseInt(this.getDevice("wrapafter")),i=this.getSortedColumns(),s=i.length,r=!1;if(0==s)return!1;if(t>0&&s>t&&(r=!0),this.$row.find("> .n2-ss-row-break").remove(),this.$row.toggleClass("n2-ss-row-wrapped",r),r)for(var n=0;s>n;n++){var o=parseInt(n/t);if(i[n].$layer.attr("data-r",o),(n+1)%t==0||n==s-1){i[n].$layer.addClass("n2-ss-last-in-row");var a=i[n].getDevice("order");0==a&&(a=10),e('<div class="n2-ss-row-break"/>').css("order",a).insertAfter(i[n].$layer),i[n].$layer}else i[n].$layer.removeClass("n2-ss-last-in-row")}else{for(var n=0;s>n;n++)i[n].$layer.removeClass("n2-ss-last-in-row").attr("data-r",0);i[s-1].$layer.addClass("n2-ss-last-in-row")}},s.prototype.getContents=function(){return this.$row},s}),N2Require("SmartSliderResponsive",[],[],function(e,t,i){function s(t,i){this.disableTransitions=!1,this.disableTransitionsTimeout=null,this.lastClientHeight=0,this.lastOrientation=0,this.invalidateResponsiveState=!0,this.parameters=e.extend({desktop:1,tablet:1,mobile:1,onResizeEnabled:!0,type:"auto",downscale:!0,upscale:!1,constrainRatio:!0,minimumHeight:0,maximumHeight:0,minimumHeightRatio:0,maximumHeightRatio:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},maximumSlideWidth:0,maximumSlideWidthLandscape:0,maximumSlideWidthRatio:-1,maximumSlideWidthTablet:0,maximumSlideWidthTabletLandscape:0,maximumSlideWidthMobile:0,maximumSlideWidthMobileLandscape:0,
maximumSlideWidthConstrainHeight:0,forceFull:0,forceFullOverflowX:"body",forceFullHorizontalSelector:"",verticalOffsetSelectors:"",focusUser:0,focusAutoplay:0,deviceModes:{desktopLandscape:1,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},normalizedDeviceModes:{unknownUnknown:["unknown","Unknown"],desktopPortrait:["desktop","Portrait"]},verticalRatioModifiers:{unknownUnknown:1,desktopLandscape:1,desktopPortrait:1,mobileLandscape:1,mobilePortrait:1,tabletLandscape:1,tabletPortrait:1},minimumFontSizes:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},ratioToDevice:{Portrait:{tablet:0,mobile:0},Landscape:{tablet:0,mobile:0}},sliderWidthToDevice:{desktopLandscape:0,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},basedOn:"combined",desktopPortraitScreenWidth:1200,tabletPortraitScreenWidth:800,mobilePortraitScreenWidth:440,tabletLandscapeScreenWidth:1024,mobileLandscapeScreenWidth:740,orientationMode:"width_and_height",scrollFix:0,overflowHiddenPage:0},i),t.isAdmin&&(this.doResize=NextendThrottle(this.doResize,50)),this.loadDeferred=e.Deferred(),this.slider=t,this.sliderElement=t.sliderElement}var r=null,n=null;return s.OrientationMode={SCREEN:0,ADMIN_LANDSCAPE:1,ADMIN_PORTRAIT:2,SCREEN_WIDTH_ONLY:3},s.DeviceOrientation={UNKNOWN:0,LANDSCAPE:1,PORTRAIT:2},s._DeviceOrientation={0:"Unknown",1:"Landscape",2:"Portrait"},s.DeviceMode={UNKNOWN:0,DESKTOP:1,TABLET:2,MOBILE:3},s._DeviceMode={0:"unknown",1:"desktop",2:"tablet",3:"mobile"},s.prototype.start=function(){nextend.fontsDeferred==i?nextend.loadDeferred.always(e.proxy(function(){this.loadDeferred.resolve()},this)):nextend.fontsDeferred.always(e.proxy(function(){this.loadDeferred.resolve()},this)),this.normalizeTimeout=null,this.delayedResizeAdded=!1,this.deviceMode=s.DeviceMode.UNKNOWN,this.orientationMode=s.OrientationMode.SCREEN,this.orientation=s.DeviceOrientation.UNKNOWN,this.lastRatios={ratio:-1},this.lastRawRatios={ratio:-1},this.normalizedMode="unknownUnknown",this.widgetMargins={Top:[],Right:[],Bottom:[],Left:[]},this.staticSizes={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},this.enabledWidgetMargins=[],this.alignElement=this.slider.sliderElement.closest(".n2-ss-align");var t=this.ready=e.Deferred();switch(this.sliderElement.triggerHandler("SliderResponsiveStarted"),this.sliderElement.one("SliderResize",function(){t.resolve()}),this.containerElementPadding=this.sliderElement.parent(),this.containerElement=this.containerElementPadding.parent(),!this.slider.isAdmin&&this.parameters.overflowHiddenPage&&e("html, body").css("overflow","hidden"),"width"==this.parameters.orientationMode&&(this.orientationMode=s.OrientationMode.SCREEN_WIDTH_ONLY),nextend.smallestZoom=Math.min(Math.max(this.parameters.sliderWidthToDevice.mobilePortrait,120),320),this.parameters.basedOn){case"screen":break;default:if(null==r){var o=new MobileDetect(window.navigator.userAgent,801);r=!!o.tablet(),n=!!o.phone()}}if(this.verticalOffsetSelectors=e(this.parameters.verticalOffsetSelectors),this.storeDefaults(),this.parameters.minimumHeight>0&&(this.parameters.minimumHeightRatio=this.parameters.minimumHeight/this.responsiveDimensions.startHeight),this.parameters.maximumHeight>0&&this.parameters.maximumHeight>=this.parameters.minimumHeight&&(this.parameters.maximumHeightRatio={desktopPortrait:this.parameters.maximumHeight/this.responsiveDimensions.startHeight},this.parameters.maximumHeightRatio.desktopLandscape=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.tabletPortrait=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.tabletLandscape=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.mobilePortrait=this.parameters.maximumHeightRatio.desktopPortrait,this.parameters.maximumHeightRatio.mobileLandscape=this.parameters.maximumHeightRatio.desktopPortrait),this.parameters.maximumSlideWidth>0&&(this.parameters.maximumSlideWidthRatio={desktopPortrait:this.parameters.maximumSlideWidth/this.responsiveDimensions.startSlideWidth,desktopLandscape:this.parameters.maximumSlideWidthLandscape/this.responsiveDimensions.startSlideWidth,tabletPortrait:this.parameters.maximumSlideWidthTablet/this.responsiveDimensions.startSlideWidth,tabletLandscape:this.parameters.maximumSlideWidthTabletLandscape/this.responsiveDimensions.startSlideWidth,mobilePortrait:this.parameters.maximumSlideWidthMobile/this.responsiveDimensions.startSlideWidth,mobileLandscape:this.parameters.maximumSlideWidthMobileLandscape/this.responsiveDimensions.startSlideWidth},this.parameters.maximumSlideWidthConstrainHeight)){this.parameters.maximumHeightRatio=e.extend({},this.parameters.maximumSlideWidthRatio);for(var a in this.parameters.maximumHeightRatio)this.parameters.maximumHeightRatio[a]*=this.parameters.verticalRatioModifiers[a]}if("undefined"!=typeof nextend&&"undefined"!=typeof nextend.ssBeforeResponsive&&nextend.ssBeforeResponsive.call(this),this.onResize(),(this.parameters.onResizeEnabled||"adaptive"==this.parameters.type)&&(e(window).on({resize:e.proxy(this.onResize,this),orientationchange:e.proxy(this.onResize,this)}),this.sliderElement.on("SliderInternalResize",e.proxy(this.onResize,this)),this.parameters.scrollFix))try{var l=this;e('<iframe sandbox="allow-same-origin allow-scripts" style="height: 0; background-color: transparent; margin: 0; padding: 0; overflow: hidden; border-width: 0; position: absolute; width: 100%;"/>').on("load",function(t){e(t.target.contentWindow?t.target.contentWindow:t.target.contentDocument.defaultView).on("resize",function(){l.sliderElement.triggerHandler("SliderInternalResize")})}).insertBefore(this.containerElement)}catch(d){}},s.prototype.getOuterWidth=function(){return this.responsiveDimensions.startSliderWidth+this.responsiveDimensions.startSliderMarginLeft+this.responsiveDimensions.startSliderMarginRight},s.prototype.storeDefaults=function(){this.responsiveDimensions={startWidth:this.sliderElement.outerWidth(!0),startHeight:this.sliderElement.outerHeight(!0)},this.horizontalElements=[],this.verticalElements=[],this.init(),this.margins={top:this.responsiveDimensions.startSliderMarginTop,right:this.responsiveDimensions.startSliderMarginRight,bottom:this.responsiveDimensions.startSliderMarginBottom,left:this.responsiveDimensions.startSliderMarginLeft}},s.prototype.addHorizontalElement=function(e,i,s,r){s=s||"ratio";var n=new t.SmartSliderResponsiveElement(this,s,e,i,r);return this.horizontalElements.push(n),n},s.prototype.addVerticalElement=function(e,i,s,r){s=s||"ratio";var n=new t.SmartSliderResponsiveElement(this,s,e,i,r);return this.verticalElements.push(n),n},s.prototype.resizeHorizontalElements=function(e){for(var t=0;t<this.horizontalElements.length;t++){var i=this.horizontalElements[t];"undefined"==typeof e[i.ratioName]&&console.log("error with "+i.ratioName),i.resize(this.responsiveDimensions,e[i.ratioName],!1,0)}},s.prototype.updateVerticalRatios=function(e){return e},s.prototype._updateVerticalRatios=function(t){var i=this.responsiveDimensions.startSlideHeight*t.slideH,s=!1;return this.sliderElement.find(".n2-ss-section-main-content").addClass("n2-ss-section-main-content-calc").each(function(t,r){var n=e(r).outerHeight();n>i&&(s=!0,i=n)}).removeClass("n2-ss-section-main-content-calc"),s&&(t.slideH=i/this.responsiveDimensions.startSlideHeight,t.h=Math.max(t.h,t.slideH)),t},s.prototype.resizeVerticalElements=function(e,t,i){for(var s=0;s<this.verticalElements.length;s++){var r=this.verticalElements[s];"undefined"==typeof e[r.ratioName]&&console.log("error with "+r.ratioName),r.resize(this.responsiveDimensions,e[r.ratioName],t,i)}},s.prototype.getDeviceMode=function(){return s._DeviceMode[this.deviceMode]},s.prototype.getDeviceModeOrientation=function(){return s._DeviceMode[this.deviceMode]+s._DeviceOrientation[this.orientation]},s.prototype.onResize=function(t){this.slider.mainAnimation&&"ended"!=this.slider.mainAnimation.getState()?this.delayedResizeAdded||(this.delayedResizeAdded=!0,this.sliderElement.on("mainAnimationComplete.responsive",e.proxy(this._doDelayedResize,this))):this.doResize(t)},s.prototype._doDelayedResize=function(){this.doResize(),this.delayedResizeAdded=!1},s.prototype.doNormalizedResize=function(){this.normalizeTimeout&&clearTimeout(this.normalizeTimeout),this.normalizeTimeout=setTimeout(e.proxy(this.doResize,this),10)},s.prototype._getOrientation=function(){return this.orientationMode==s.OrientationMode.SCREEN?window.innerHeight<=window.innerWidth?s.DeviceOrientation.LANDSCAPE:s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE?s.DeviceOrientation.LANDSCAPE:void 0},s.prototype._getDevice=function(){switch(this.parameters.basedOn){case"combined":return this._getDeviceDevice(this._getDeviceScreenWidth());case"device":return this._getDeviceDevice(s.DeviceMode.DESKTOP);case"screen":return this._getDeviceScreenWidth()}},s.prototype._getDeviceScreenWidth=function(){var e=window.innerWidth;if(this.orientation==s.DeviceOrientation.PORTRAIT){if(e<this.parameters.mobilePortraitScreenWidth)return s.DeviceMode.MOBILE;if(e<this.parameters.tabletPortraitScreenWidth)return s.DeviceMode.TABLET}else{if(e<this.parameters.mobileLandscapeScreenWidth)return s.DeviceMode.MOBILE;if(e<this.parameters.tabletLandscapeScreenWidth)return s.DeviceMode.TABLET}return s.DeviceMode.DESKTOP},s.prototype._getDeviceAndOrientationByScreenWidth=function(){var e=window.innerWidth;return e<this.parameters.mobilePortraitScreenWidth?[s.DeviceMode.MOBILE,s.DeviceOrientation.PORTRAIT]:e<this.parameters.mobileLandscapeScreenWidth?[s.DeviceMode.MOBILE,s.DeviceOrientation.LANDSCAPE]:e<this.parameters.tabletPortraitScreenWidth?[s.DeviceMode.TABLET,s.DeviceOrientation.PORTRAIT]:e<this.parameters.tabletLandscapeScreenWidth?[s.DeviceMode.TABLET,s.DeviceOrientation.LANDSCAPE]:e<this.parameters.desktopPortraitScreenWidth?[s.DeviceMode.DESKTOP,s.DeviceOrientation.PORTRAIT]:[s.DeviceMode.DESKTOP,s.DeviceOrientation.LANDSCAPE]},s.prototype._getDeviceDevice=function(e){return n===!0?s.DeviceMode.MOBILE:r&&e!=s.DeviceMode.MOBILE?s.DeviceMode.TABLET:e},s.prototype._getDeviceZoom=function(e){var t;this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?t=s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE&&(t=s.DeviceOrientation.LANDSCAPE);var i=s.DeviceMode.DESKTOP;return e-this.parameters.ratioToDevice[s._DeviceOrientation[t]].mobile<.001?i=s.DeviceMode.MOBILE:e-this.parameters.ratioToDevice[s._DeviceOrientation[t]].tablet<.001&&(i=s.DeviceMode.TABLET),i},s.prototype.reTriggerSliderDeviceOrientation=function(){var e=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);this.sliderElement.trigger("SliderDeviceOrientation",{lastDevice:e[0],lastOrientation:e[1],device:e[0],orientation:e[1]})},s.prototype.doResize=function(t,i,r,n,o){if(this.disableTransitions||(this.disableTransitions=!0,this.sliderElement.addClass("n2notransition"),this.disableTransitionsTimeout&&clearTimeout(this.disableTransitionsTimeout),this.disableTransitionsTimeout=setTimeout(e.proxy(function(){this.sliderElement.removeClass("n2notransition"),this.disableTransitions=!1},this),500)),this.refreshMargin(),"center"==this.slider.parameters.align&&("fullpage"==this.parameters.type?this.alignElement.css("maxWidth","none"):this.alignElement.css("maxWidth",this.responsiveDimensions.startWidth)),!this.slider.isAdmin&&this.parameters.forceFull){"none"!=this.parameters.forceFullOverflowX&&e(this.parameters.forceFullOverflowX).css("overflow-x","hidden");var a=0,l=0;if(""!=this.parameters.forceFullHorizontalSelector){var d=this.sliderElement.closest(this.parameters.forceFullHorizontalSelector);d&&d.length>0&&(a=d.width(),l=d.offset().left)}var h,p=a>0?a:document.body.clientWidth||document.documentElement.clientWidth,c=this.containerElement.parent(),u=c[0].getBoundingClientRect();h=nextend.rtl.isRtl?p-(u.left+c.outerWidth()):u.left,this.containerElement.css(nextend.rtl.marginLeft,-h-parseInt(c.css("paddingLeft"))-parseInt(c.css("borderLeftWidth"))+l).width(p)}var m=this.containerElementPadding.width()/this.getOuterWidth(),f=!1,g=this.orientation,y=this.deviceMode,v=null,S=null;if(this.orientationMode==s.OrientationMode.SCREEN_WIDTH_ONLY){var b=this._getDeviceAndOrientationByScreenWidth();S=b[0],v=b[1]}else v=this._getOrientation();if(this.orientation!=v&&(this.orientation=v,f=!0,this.sliderElement.trigger("SliderOrientation",{lastOrientation:s._DeviceOrientation[g],orientation:s._DeviceOrientation[v]})),i||(this.orientationMode!=s.OrientationMode.SCREEN_WIDTH_ONLY&&(S=this._getDevice(m)),this.deviceMode!=S&&(this.deviceMode=S,this.sliderElement.removeClass("n2-ss-"+s._DeviceMode[y]).addClass("n2-ss-"+s._DeviceMode[S]),this.sliderElement.trigger("SliderDevice",{lastDevice:s._DeviceMode[y],device:s._DeviceMode[S]}),f=!0)),!this.slider.isAdmin&&"fullpage"==this.parameters.type){var x=0;if(window.matchMedia&&/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||window.opera)){var w,E=!1;t&&"orientationchange"==t.type&&(E=!0),w=n2const.isIOS?document.documentElement.clientHeight:window.innerHeight,window.matchMedia("(orientation: landscape)").matches?(x=Math.min(screen.width,w),90!=this.lastOrientation&&(E=!0,this.lastOrientation=90)):(x=Math.min(screen.height,w),0!=this.lastOrientation&&(E=!0,this.lastOrientation=0)),!E&&Math.abs(x-this.lastClientHeight)<100?x=this.lastClientHeight:this.lastClientHeight=x}else x=window.n2ClientHeight||document.documentElement.clientHeight||document.body.clientHeight;this.parameters.maximumHeightRatio[this.getDeviceModeOrientation()]=this.parameters.minimumHeightRatio=(x-this.getVerticalOffsetHeight())/this.responsiveDimensions.startHeight}if(f){var A=this._normalizeMode(s._DeviceMode[y],s._DeviceOrientation[g]),D=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);A[0]==D[0]&&A[1]==D[1]||(this.normalizedMode=D[0]+D[1],this.sliderElement.trigger("SliderDeviceOrientation",{lastDevice:A[0],lastOrientation:A[1],device:D[0],orientation:D[1]}))}var k=this.parameters.sliderWidthToDevice[this.normalizedMode]/this.parameters.sliderWidthToDevice.desktopPortrait;!this.parameters.downscale&&k>m?m=k:!this.parameters.upscale&&m>k&&(m=k),this._doResize(m,r,n,o),"center"==this.slider.parameters.align&&this.alignElement.css("maxWidth",this.responsiveDimensions.slider.width)},s.prototype._normalizeMode=function(e,t){return this.parameters.normalizedDeviceModes[e+t]},s.prototype.getNormalizedModeString=function(){var e=this._normalizeMode(s._DeviceMode[this.deviceMode],s._DeviceOrientation[this.orientation]);return e.join("")},s.prototype.getModeString=function(){return s._DeviceMode[this.deviceMode]+s._DeviceOrientation[this.orientation]},s.prototype.enabled=function(e,t){return this.parameters.deviceModes[e+t]},s.prototype._doResize=function(t,i,s,r){var n={ratio:t,w:t,h:t,slideW:t,slideH:t,fontRatio:1};this._buildRatios(n,this.slider.parameters.dynamicHeight,s),n.fontRatio=n.slideW;var o=!1;for(var a in n)if(n[a]!=this.lastRawRatios[a]){o=!0;break}(this.invalidateResponsiveState||o)&&(this.lastRawRatios=e.extend({},n),this.resizeHorizontalElements(n),this.finishResize(n,i,r))},s.prototype.finishResize=function(t,i,s){this.loadDeferred.done(e.proxy(function(){var r=e.proxy(function(){this.finishResize=this._finishResize,this.finishResize(t,i,s)},this);/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor)||/CriOS/.exec(window.navigator.userAgent)?setTimeout(r,200):r()},this)),this.invalidateResponsiveState=!1},s.prototype._finishResize=function(e,t,i){this.invalidateResponsiveState=!1,e=this.updateVerticalRatios(e),this.resizeVerticalElements(e,t,i),this.lastRatios=e,t?(this.sliderElement.trigger("SliderAnimatedResize",[e,t,i]),t.eventCallback("onComplete",function(){this.triggerResize(e,t)},[],this)):this.triggerResize(e,!1)},s.prototype.doVerticalResize=function(){var t=this.updateVerticalRatios(e.extend({},this.lastRawRatios)),i=!1;for(var s in t)if(t[s]!=this.lastRatios[s]){i=!0;break}i&&this.finishVerticalResize(t)},s.prototype.finishVerticalResize=function(t){this.loadDeferred.done(e.proxy(function(){this.finishVerticalResize=this._finishVerticalResize,this.finishVerticalResize(t)},this))},s.prototype._finishVerticalResize=function(e){this.resizeVerticalElements(e,!1,0),this.lastRatios=e,this.triggerResize(e,!1)},s.prototype.triggerResize=function(e,t){this.sliderElement.trigger("SliderResize",[e,this,t])},s.prototype._buildRatios=function(e,t,i){var s=this.getDeviceModeOrientation();this.parameters.maximumSlideWidthRatio[s]>0&&e.slideW>this.parameters.maximumSlideWidthRatio[s]&&(e.slideW=this.parameters.maximumSlideWidthRatio[s]),e.slideW=e.slideH=Math.min(e.slideW,e.slideH);var r=this.parameters.verticalRatioModifiers[s];if(e.slideH*=r,"fullpage"==this.parameters.type)e.h*=r,this.parameters.minimumHeightRatio>0&&(e.h=Math.max(e.h,this.parameters.minimumHeightRatio)),this.parameters.maximumHeightRatio[s]>0&&(e.h=Math.min(e.h,this.parameters.maximumHeightRatio[s])),this.slider.isAdmin?this.parameters.constrainRatio?(e.slideH=Math.min(e.slideH,e.h),e.slideH=e.slideW=Math.min(e.slideW,e.slideH)):(e.w=e.slideW,e.h=e.slideH):this.parameters.constrainRatio?(e.slideH=Math.min(e.slideH,e.h),e.slideH=e.slideW=Math.min(e.slideW,e.slideH)):(e.slideW=e.w,this.parameters.maximumSlideWidthRatio[s]>0&&e.slideW>this.parameters.maximumSlideWidthRatio[s]&&(e.slideW=this.parameters.maximumSlideWidthRatio[s]),e.slideH=e.h);else if(e.h*=r,this.parameters.minimumHeightRatio>0&&(e.h=Math.max(e.h,this.parameters.minimumHeightRatio)),this.parameters.maximumHeightRatio[s]>0&&(e.h=Math.min(e.h,this.parameters.maximumHeightRatio[s])),e.slideH=Math.min(e.slideH,e.h),e.slideW=e.slideH/r,"showcase"==this.slider.type&&(e.slideW=Math.min(e.slideW,e.w),e.slideH=Math.min(e.slideW,e.slideH)),t){var n=this.slider.currentSlide.backgroundImage;if("undefined"!=typeof i&&(n=i.backgroundImage),n.width>0&&n.height>0){var o=this.responsiveDimensions.startSlideWidth/n.width*(n.height/this.responsiveDimensions.startSlideHeight);-1!=o&&(e.slideH*=o,e.h*=o)}}this.sliderElement.triggerHandler("responsiveBuildRatios",[e])},s.prototype.setOrientation=function(e){"portrait"==e?this.orientationMode=s.OrientationMode.ADMIN_PORTRAIT:"landscape"==e&&(this.orientationMode=s.OrientationMode.ADMIN_LANDSCAPE)},s.prototype.setMode=function(e,t){var i;if(this.orientationMode==s.OrientationMode.ADMIN_PORTRAIT?i=s.DeviceOrientation.PORTRAIT:this.orientationMode==s.OrientationMode.ADMIN_LANDSCAPE&&(i=s.DeviceOrientation.LANDSCAPE),this==t){var r=this.parameters.sliderWidthToDevice[e+s._DeviceOrientation[i]];if("mobile"==e)switch(s._DeviceOrientation[i]){case"Portrait":r=Math.max(nextend.smallestZoom,320)}this.setSize(r)}},s.prototype.setSize=function(e){this.containerElement.width(e),this.doResize()},s.prototype.getVerticalOffsetHeight=function(){for(var e=0,t=0;t<this.verticalOffsetSelectors.length;t++)e+=this.verticalOffsetSelectors.eq(t).outerHeight();if(this.slider.widgets.$vertical)for(var t=0;t<this.slider.widgets.$vertical.length;t++)e+=this.slider.widgets.$vertical.eq(t).outerHeight();return e},s.prototype.addMargin=function(e,t){this.widgetMargins[e].push(t),t.isVisible()&&(this._addMarginSize(e,t.getSize()),this.enabledWidgetMargins.push(t)),this.doNormalizedResize()},s.prototype.addStaticMargin=function(e,t){"Bottom"!=e&&"Top"!=e&&(this.widgetStaticMargins||(this.widgetStaticMargins={Top:[],Right:[],Bottom:[],Left:[]}),this.widgetStaticMargins[e].push(t),this.doNormalizedResize())},s.prototype.refreshMargin=function(){for(var t in this.widgetMargins)for(var i=this.widgetMargins[t],s=i.length-1;s>=0;s--){var r=i[s];if(r.isVisible())-1==e.inArray(r,this.enabledWidgetMargins)&&(this._addMarginSize(t,r.getSize()),this.enabledWidgetMargins.push(r));else{var n=e.inArray(r,this.enabledWidgetMargins);-1!=n&&(this._addMarginSize(t,-r.getSize()),this.enabledWidgetMargins.splice(n,1))}}this.refreshStaticSizes()},s.prototype.refreshStaticSizes=function(){if(this.widgetStaticMargins){var e={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0};for(var t in this.widgetStaticMargins)for(var i=this.widgetStaticMargins[t],s=i.length-1;s>=0;s--){var r=i[s];r.isVisible()&&(e["padding"+t]+=r.getSize())}for(var n in e)this.containerElementPadding.css(e);this.staticSizes=e}},s.prototype._addMarginSize=function(e,t){var i=null;switch(e){case"Top":case"Bottom":i=this._sliderVertical;break;default:i=this._sliderHorizontal}i.data["margin"+e]+=t,this.responsiveDimensions["startSliderMargin"+e]+=t},s}),N2Require("SmartSliderResponsiveElement",[],[],function(e,t,i){function s(e){return e.charAt(0).toUpperCase()+e.slice(1)}function r(t,i,s,r,n){this._lastRatio=1,this.responsive=t,this.ratioName=i,this.element=s,this._readyDeferred=e.Deferred(),"undefined"!=typeof n?this.name=n:this.name=null,this.data={},this.helper={parent:null,parentProps:null,fontSize:!1,centered:!1},this._lateInit(r)}return r.prototype._lateInit=function(t){this._cssProperties=t,this.reloadDefault(),-1!=e.inArray("fontSize",t)&&(this.data.fontSize=this.element.data("fontsize"),this.helper.fontSize={fontSize:this.element.data("fontsize"),desktopPortrait:this.element.data("minfontsizedesktopportrait"),desktopLandscape:this.element.data("minfontsizedesktoplandscape"),tabletPortrait:this.element.data("minfontsizetabletportrait"),tabletLandscape:this.element.data("minfontsizetabletlandscape"),mobilePortrait:this.element.data("minfontsizemobileportrait"),mobileLandscape:this.element.data("minfontsizemobilelandscape")},this.responsive.sliderElement.on("SliderDeviceOrientation",e.proxy(this.onModeChange,this))),this.resize=this._resize,this._readyDeferred.resolve()},r.prototype.reloadDefault=function(){for(var e=0;e<this._cssProperties.length;e++){var t=this._cssProperties[e];this.data[t]=parseInt(this.element.css(t))}if(this.name){var i=this.responsive.responsiveDimensions;for(var r in this.data)i["start"+s(this.name)+s(r)]=this.data[r]}},r.prototype.ready=function(e){this._readyDeferred.done(e)},r.prototype.resize=function(t,i){this.ready(e.proxy(this.resize,this,t,i)),this._lastRatio=i},r.prototype._resize=function(e,t,i,s){this.name&&"undefined"==typeof e[this.name]&&(e[this.name]={});var r={};for(var n in this.data){var o=this.data[n]*t;"function"==typeof this[n+"Prepare"]&&(o=this[n+"Prepare"](o)),this.name&&(e[this.name][n]=o),r[n]=o}if(i)i.to(this.element,s,r,0);else if(this.element.css(r),this.helper.centered){var a=this.getVerticalMargin(parseInt((this.helper.parent.height()-this.element.height())/2)),l=this.getHorizontalMargin(parseInt((this.helper.parent.width()-this.element.width())/2));this.element.css({marginLeft:l,marginRight:l,marginTop:a,marginBottom:a})}this._lastRatio=t},r.prototype.getHorizontalMargin=function(e){return e},r.prototype.getVerticalMargin=function(e){return e},r.prototype._refreshResize=function(){this.responsive.ready.done(e.proxy(function(){this._resize(this.responsive.responsiveDimensions,this.responsive.lastRatios[this.ratioName])},this))},r.prototype.widthPrepare=function(e){return Math.round(e)},r.prototype.heightPrepare=function(e){return Math.round(e)},r.prototype.marginLeftPrepare=function(e){return parseInt(e)},r.prototype.marginRightPrepare=function(e){return parseInt(e)},r.prototype.lineHeightPrepare=function(e){return e+"px"},r.prototype.borderLeftWidthPrepare=function(e){return parseInt(e)},r.prototype.borderRightWidthPrepare=function(e){return parseInt(e)},r.prototype.borderTopWidthPrepare=function(e){return parseInt(e)},r.prototype.borderBottomWidthPrepare=function(e){return parseInt(e)},r.prototype.fontSizePrepare=function(e){var t=this.responsive.getNormalizedModeString();return e<this.helper.fontSize[t]?this.helper.fontSize[t]:e},r.prototype.setCentered=function(){this.helper.parent=this.element.parent(),this.helper.centered=!0},r.prototype.unsetCentered=function(){this.helper.centered=!1},r.prototype.onModeChange=function(){this.setFontSizeByMode()},r.prototype.setFontSizeByMode=function(){this.element.css("fontSize",this.fontSizePrepare(this.data.fontSize*this._lastRatio))},r}),N2Require("FrontendItemVimeo",[],[],function(e,t,i){function s(t,i,s,r,n,o){this.state={scroll:!1,slide:!0,play:!1,continuePlay:!1},this.readyDeferred=e.Deferred(),this.slider=t,this.playerId=i,this.start=o,this.parameters=e.extend({vimeourl:"//vimeo.com/144598279",center:0,autoplay:"0",reset:"0",title:"1",byline:"1",portrait:"0",loop:"0",color:"00adef",volume:"-1"},r),navigator.userAgent.toLowerCase().indexOf("android")>-1&&(this.parameters.autoplay=0),1==this.parameters.autoplay||!n||n2const.isMobile?this.ready(e.proxy(this.initVimeoPlayer,this)):e("#"+this.playerId).on("click.vimeo n2click.vimeo",e.proxy(function(t){e(t.currentTarget).off(".vimeo"),t.preventDefault(),t.stopPropagation(),this.ready(e.proxy(function(){this.readyDeferred.done(e.proxy(function(){this.play()},this)),this.initVimeoPlayer()},this))},this))}return s.vimeoDeferred=null,s.prototype.ready=function(t){null===s.vimeoDeferred&&(s.vimeoDeferred=e.getScript("https://player.vimeo.com/api/player.js")),s.vimeoDeferred.done(t)},s.prototype.initVimeoPlayer=function(){var t=n2('<iframe id="'+this.playerId+'_video" src="https://player.vimeo.com/video/'+this.parameters.vimeocode+"?autoplay=0&_video&title="+this.parameters.title+"&byline="+this.parameters.byline+"&background="+this.parameters.background+"&portrait="+this.parameters.portrait+"&color="+this.parameters.color+"&loop="+this.parameters.loop+("-1"==this.parameters.quality?"":"&quality="+this.parameters.quality)+'" style="position: absolute; top:0; left: 0; width: 100%; height: 100%;" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>');e("#"+this.playerId).append(t),this.isStatic=t.closest(".n2-ss-static-slide").length,this.playerElement=t,this.player=new Vimeo.Player(t[0]),this.player.ready().then(e.proxy(this.onReady,this))},s.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);t>=0&&this.setVolume(t),this.slide=this.slider.findSlideByElement(this.playerElement),1==this.parameters.center&&(this.onResize(),this.slider.sliderElement.on("SliderResize",e.proxy(this.onResize,this)));var i=this.playerElement.parent().parent();this.player.on("play",e.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaStarted",this.playerId),i.triggerHandler("n2play")},this)),this.player.on("pause",e.proxy(function(){i.triggerHandler("n2pause"),this.state.continuePlay?(this.state.continuePlay=!1,this.state.play=!0):this.state.play=!1},this)),this.player.on("ended",e.proxy(function(){this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),i.triggerHandler("n2stop"),this.state.play=!1},this)),this.isStatic||(this.slider.sliderElement.on("mainAnimationStart",e.proxy(function(t,i,s,r,n){-1==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))?(parseInt(this.parameters.reset)&&this.reset(),this.setState("slide",!1)):this.setState("slide",!0)},this)),nextend.scrollTracker.add(this.playerElement,e.proxy(function(){this.setState("scroll",!0)},this),e.proxy(function(){this.state.continuePlay=!0,this.setState("scroll",!1)},this))),1==this.parameters.autoplay&&this.slider.visible(e.proxy(this.initAutoplay,this)),this.playerElement.parent().css("background",""),this.readyDeferred.resolve()},s.prototype.onResize=function(){var e=52,t=this.playerElement.parent(),i=t.width()+e,s=t.height()+e,r=16/9,n={width:i,height:s,marginTop:0};n[nextend.rtl.marginLeft]=0,i/s>r?(n.height=i*r,n.marginTop=(s-n.height)/2):(n.width=s*r,n[nextend.rtl.marginLeft]=(i-n.width)/2),this.playerElement.css(n)},s.prototype.initAutoplay=function(){this.isStatic?(this.state.play=!0,this.setState("slide",!0)):(this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(t,i,s,r,n){e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))>=0?(this.state.play=!0,this.setState("slide",!0)):this.setState("slide",!1)},this)),e.inArray(this.slide,this.slider.getVisibleSlides())>=0&&(this.state.play=!0,this.setState("slide",!0)))},s.prototype.setState=function(e,t){this.state[e]=t,this.state.play&&this.state.slide&&this.state.scroll?this.play():this.pause()},s.prototype.play=function(){this.slider.sliderElement.trigger("mediaStarted",this.playerId),0!=this.start&&this.player.setCurrentTime(this.start),this.player.play(),this.player.getCurrentTime().then(e.proxy(function(e){e<this.start&&0!=this.start&&this.player.setCurrentTime(this.start),this.player.play()},this))["catch"](e.proxy(function(e){this.player.play()},this))},s.prototype.pause=function(){this.player.pause()},s.prototype.reset=function(){this.player.setCurrentTime(this.start)},s.prototype.setVolume=function(e){this.player.setVolume(e)},s}),N2Require("FrontendItemYouTube",[],[],function(e,t,i){function s(t,i,s,r){if(this.state={scroll:!1,slide:!0,play:!1,continuePlay:!1},this.readyDeferred=e.Deferred(),this.slider=t,this.playerId=i,this.parameters=e.extend({youtubeurl:"//www.youtube.com/watch?v=MKmIwHAFjSU",youtubecode:"MKmIwHAFjSU",center:0,autoplay:"1",theme:"dark",related:"1",vq:"default",volume:"-1",loop:0,showinfo:1,modestbranding:1,reset:0,query:[],playsinline:0},s),1==this.parameters.autoplay&&(navigator.userAgent.toLowerCase().indexOf("android")>-1||n2const.isIOS)){this.parameters.autoplay=0;try{"playsInline"in document.createElement("video")&&(this.parameters.autoplay=1,this.parameters.playsinline=1,this.parameters.volume=0)}catch(n){}}1==this.parameters.autoplay||!r||n2const.isMobile?this.ready(e.proxy(this.initYoutubePlayer,this)):e("#"+this.playerId).on("click.youtube n2click.youtube",e.proxy(function(t){e(t.currentTarget).off(".youtube"),t.preventDefault(),t.stopPropagation(),this.ready(e.proxy(function(){this.readyDeferred.done(e.proxy(function(){this.play()},this)),this.initYoutubePlayer()},this))},this))}return s.YTDeferred=null,s.prototype.ready=function(t){if(null===s.YTDeferred)if(s.YTDeferred=e.Deferred(),"undefined"==typeof YT){var i=function(){};"function"==typeof window.onYouTubeIframeAPIReady&&(i=window.onYouTubeIframeAPIReady),window.onYouTubeIframeAPIReady=function(){s.YTDeferred.resolve(),i()},e.getScript("https://www.youtube.com/iframe_api")}else if(YT.loaded)s.YTDeferred.resolve();else var r=setInterval(function(){YT.loaded&&(s.YTDeferred.resolve(),clearInterval(r))},200);s.YTDeferred.done(t)},s.prototype.initYoutubePlayer=function(){var t=e("#"+this.playerId),i=t.closest(".n2-ss-layer");this.isStatic=t.closest(".n2-ss-static-slide").length;var s={enablejsapi:1,origin:window.location.protocol+"//"+window.location.host,theme:this.parameters.theme,wmode:"opaque",rel:this.parameters.related,vq:this.parameters.vq,start:this.parameters.start,showinfo:this.parameters.showinfo,modestbranding:this.parameters.modestbranding,playsinline:this.parameters.playsinline};1==this.parameters.center&&(s.controls=0,s.showinfo=0),1!=this.parameters.controls&&(s.autohide=1,s.controls=0,s.showinfo=0),+(navigator.platform.toUpperCase().indexOf("MAC")>=0&&navigator.userAgent.search("Firefox")>-1)&&(s.html5=1);for(var r in this.parameters.query)this.parameters.query.hasOwnProperty(r)&&(s[r]=this.parameters.query[r]);this.player=new YT.Player(this.playerId,{videoId:this.parameters.youtubecode,wmode:"opaque",playerVars:s,events:{onReady:e.proxy(this.onReady,this),onStateChange:e.proxy(function(e){switch(e.data){case YT.PlayerState.PLAYING:this.isStatic||this.slider.sliderElement.trigger("mediaStarted",this.playerId),i.triggerHandler("n2play");break;case YT.PlayerState.PAUSED:i.triggerHandler("n2pause"),this.state.continuePlay?(this.state.continuePlay=!1,this.state.play=!0):this.state.play=!1;break;case YT.PlayerState.ENDED:
1==this.parameters.loop?(this.player.seekTo(0),this.player.playVideo()):(this.isStatic||this.slider.sliderElement.trigger("mediaEnded",this.playerId),i.triggerHandler("n2stop"),this.state.play=!1)}},this)}}),this.playerElement=e("#"+this.playerId),this.slide=this.slider.findSlideByElement(this.playerElement),1==this.parameters.center&&(this.playerElement.parent().css("overflow","hidden"),this.onResize(),this.slider.sliderElement.on("SliderResize",e.proxy(this.onResize,this)))},s.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);t>0?this.setVolume(t):this.player.mute(),1==this.parameters.autoplay&&this.slider.visible(e.proxy(this.initAutoplay,this)),this.isStatic||(this.slider.sliderElement.on("mainAnimationStart",e.proxy(function(t,i,s,r){-1==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))?this.setState("slide",!1):this.setState("slide",!0)},this)),parseInt(this.parameters.reset)&&this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(t,i,s,r){-1==e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))&&this.player.seekTo(0)},this))),this.readyDeferred.resolve(),nextend.scrollTracker.add(this.playerElement,e.proxy(function(){this.setState("scroll",!0)},this),e.proxy(function(){this.state.continuePlay=!0,this.setState("scroll",!1)},this))},s.prototype.onResize=function(){var e=100,t=this.playerElement.parent(),i=t.width(),s=t.height()+e,r=16/9,n={width:i,height:s,marginTop:0};n[nextend.rtl.marginLeft]=0,i/s>r?(n.height=i*r,n.marginTop=(s-n.height)/2):(n.width=s*r,n[nextend.rtl.marginLeft]=(i-n.width)/2),this.playerElement.css(n)},s.prototype.initAutoplay=function(){this.isStatic?(this.state.play=!0,this.setState("slide",!0)):(this.state.slide=!1,this.slider.sliderElement.on("mainAnimationComplete",e.proxy(function(t,i,s,r){e.inArray(this.slide,this.slider.getVisibleSlides(this.slider.slides[r]))>=0?(this.state.play=!0,this.setState("slide",!0)):this.setState("slide",!1)},this)),e.inArray(this.slide,this.slider.getVisibleSlides())>=0&&(this.state.play=!0,this.setState("slide",!0)))},s.prototype.setState=function(e,t){this.state[e]=t,this.state.play&&this.state.slide&&this.state.scroll?this.play():this.pause()},s.prototype.play=function(){this.isStopped()&&(this.slider.sliderElement.trigger("mediaStarted",this.playerId),this.player.playVideo())},s.prototype.pause=function(){this.isStopped()||this.player.pauseVideo()},s.prototype.stop=function(){this.player.stopVideo()},s.prototype.isStopped=function(){var e=this.player.getPlayerState();switch(e){case-1:case 0:case 2:case 5:return!0;default:return!1}},s.prototype.setVolume=function(e){this.player.setVolume(100*e)},s});