// source --> https://argyledesign.co.jp/wp/wp-content/plugins/smart-slider-3/Public/SmartSlider3/Application/Frontend/Assets/dist/n2.min.js?ver=a1ec7496 
function N2Deferred(){this.state=0,this.args=null,this.callbacks=[]}function NextendThrottle(i,r){var s,o;return r=r||250,function(){var t=this,e=+new Date,n=arguments;s&&e<s+r?(clearTimeout(o),o=setTimeout(function(){s=e,i.apply(t,n)},r)):(s=e,i.apply(t,n))}}function NextendDeBounce(i,r,s){var o;return function(){var t=this,e=arguments,n=s&&!o;clearTimeout(o),o=setTimeout(function(){o=null,s||i.apply(t,e)},r),n&&i.apply(t,e)}}(function(){var t=this;t.N2_=t.N2_||{r:[],d:[]},t.N2R=t.N2R||function(){t.N2_.r.push(arguments)},t.N2D=t.N2D||function(){t.N2_.d.push(arguments)}}).call(window),N2Deferred.prototype._doCallbacks=function(){if(0!==this.state)for(;0<this.callbacks.length;)this.callbacks.shift().apply(window,this.args)},N2Deferred.prototype.resolve=function(){this.state=1,this.args=arguments,this._doCallbacks()},N2Deferred.prototype.reject=function(){this.state=-1,this._doCallbacks()},N2Deferred.prototype.then=function(t){this.callbacks.push(t),this._doCallbacks()},N2Deferred.n2When=function(t){var e=t.length,n=new N2Deferred;if(0===e)n.resolve();else{function i(){++r===e&&n.resolve()}for(var r=0,s=0;s<e;s++)t[s]instanceof N2Deferred?t[s].then(i):i()}return n},function(s){"use strict";this.N2Classes={};var o={};this.N2D=function(e,t,n){var i=[];if(e&&o[e]===s&&(o[e]=new N2Deferred),2===arguments.length?(n=arguments[1],t=[]):"string"==typeof t&&(t=[t]),t=t||[],"$"!==e&&t.push("$"),t.length)for(var r=0;r<t.length;r++)o[t[r]]===s&&(o[t[r]]=new N2Deferred),i.push(o[t[r]]);N2Deferred.n2When(i).then(function(){var t;"function"==typeof n?(t=n.apply(N2Classes,[N2Classes.$]))instanceof N2Deferred?t.then(function(t){N2Classes[e]=t,o[e].resolve()}):(N2Classes[e]=t,o[e].resolve()):(N2Classes[e]=!0,o[e].resolve())})};for(var t=0;t<this.N2_.d.length;t++)this.N2D.apply(this,this.N2_.d[t]);this.N2R=function(n,i){var t=[];if(1===arguments.length?(i=arguments[0],n=[]):"string"==typeof n&&(n=[n]),(n=n||[]).push("$"),n)for(var e=0;e<n.length;e++)o[n[e]]===s&&(o[n[e]]=new N2Deferred),t.push(o[n[e]]);N2Deferred.n2When(t).then(function(){for(var t=[N2Classes.$],e=0;e<n.length-1;e++)t.push(N2Classes[n[e]]);i.apply(N2Classes,t)})};for(var e=0;e<this.N2_.r.length;e++)this.N2R.apply(this,this.N2_.r[e])}.call(window),function(){var n=new Date,i=function(){var t,e;window.nextend&&window.jQuery?(t=window.jQuery,N2D("$",function(){return window.n2=t}),N2R("nextend-frontend",function(){t(document).ready(function(){N2D("documentReady")}),"complete"===document.readyState?N2D("windowLoad"):t(window).on("load",function(){N2D("windowLoad")})})):(setTimeout(i,20),1e3<(new Date).getTime()-n.getTime()&&((e=document.createElement("script")).src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js",document.getElementsByTagName("head")[0].appendChild(e)))};i()}(),N2R("$",function(n){var i={};n.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,t){i[t]=function(t){return Math.pow(t,e+2)}}),n.extend(i,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}}),n.each(i,function(t,e){n.easing["easeIn"+t]=e,n.easing["easeOut"+t]=function(t){return 1-e(1-t)},n.easing["easeInOut"+t]=function(t){return t<.5?e(2*t)/2:1-e(-2*t+2)/2}})}),N2Classes.StringHelper={capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}};var isIpad13="MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;window.n2const={passiveEvents:!1,devicePixelRatio:window.devicePixelRatio||1,isIOS:/iPad|iPhone|iPod/.test(navigator.platform)||isIpad13,isEdge:function(){var t=navigator.userAgent.match(/Edge\/([0-9]+)/);return null!==t&&t[1]}(),isFirefox:-1<navigator.userAgent.toLowerCase().indexOf("firefox"),isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Silk/i.test(navigator.userAgent)||isIpad13,isPhone:/Android/i.test(navigator.userAgent)&&/mobile/i.test(navigator.userAgent)||/webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isIE:function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(0<e)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(0<t.indexOf("Trident/")){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}return!1}(),isSamsungBrowser:navigator.userAgent.match(/SamsungBrowser/i),isBot:/bot|googlebot|crawler|spider|robot|crawling|Google Search Console/i.test(navigator.userAgent),lightboxMobileNewTab:1,isVideoAutoplayAllowed:function(){var t=!!(navigator.platform.match(/(Win|Mac)/)||!/Mobi/.test(navigator.userAgent)||"playsInline"in document.createElement("video")||"webkit-playsinline"in document.createElement("video")||navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)&&53<=parseInt(navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)[2])||navigator.userAgent.match(/Android.*(Firefox|Edge|Opera)/));return window.n2const.isVideoAutoplayAllowed=function(){return t},t},isWaybackMachine:function(){var t=void 0!==window.__wm;return window.n2const.isWaybackMachine=function(){return t},t},setLocation:function(t){"function"==typeof window.zajax_goto?window.zajax_goto(t):window.location=t},isParentSameOrigin:function(){try{return parent.document,!0}catch(t){}return!1},activeElementBlur:function(){document.activeElement&&document.activeElement.blur()},getScrollbarSize:function(){var t=document.createElement("div");t.style.visibility="hidden",t.style.overflow="scroll",document.body.appendChild(t);var e=t.offsetHeight-t.clientHeight;return document.body.removeChild(t),n2const.getScrollbarSize=function(){return e},e}},window.n2const.IOSVersion=function(){if(window.n2const.isIOS){var t=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return t?t[1]:100}return!1}(),window.n2const.isTablet=!window.n2const.isPhone&&(/Android|iPad|tablet|Silk/i.test(navigator.userAgent)||isIpad13);try{var opts=Object.defineProperty({},"passive",{get:function(){window.n2const.passiveEvents=!0}});window.addEventListener("test",null,opts)}catch(t){}window.n2const.rtl=(window.n2const.isRTL=function(){return window.n2const.rtl.isRtl},"rtl"===document.documentElement.getAttribute("dir")?{isRtl:!0,marginLeft:"marginRight",marginRight:"marginLeft",left:"right",right:"left",modifier:-1}:(document.documentElement.setAttribute("dir","ltr"),{isRtl:!1,marginLeft:"marginLeft",marginRight:"marginRight",left:"left",right:"right",modifier:1})),N2R("$",function(t){var e,n;n2const.isRetina=window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx), only screen and (min-resolution: 75.6dpcm)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min--moz-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2)").matches)||window.devicePixelRatio&&2<=window.devicePixelRatio,nextend.triggerResize=(e=null,n=t(window),function(){e&&clearTimeout(e),e=setTimeout(function(){n.trigger("resize"),e=null},100)}),nextend.shouldPreventClick=!1,nextend.preventClick=function(){nextend.shouldPreventClick||(nextend.shouldPreventClick=!0,setTimeout(function(){nextend.shouldPreventClick=!1},300))},nextend.marker={markings:{},mark:function(t){void 0!==this.markings[t]&&clearTimeout(this.markings[t]),this.markings[t]=setTimeout(function(){delete nextend.marker.markings[t]},100)},isMarked:function(t){return void 0!==nextend.marker.markings[t]}}}),window.n2FilterProperty=!1;var element=document.createElement("div");void 0!==element.style.webkitFilter?window.n2FilterProperty="webkitFilter":void 0!==element.style.filter&&(window.n2FilterProperty="filter"),N2D("Base64",function(){return N2Classes.Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(t){var e,n,i,r,s,o,a,c="",h=0;for(t=function(t){t=t.replace(/\r\n/g,"\n");for(var e="",n=0;n<t.length;n++){var i=t.charCodeAt(n);i<128?e+=String.fromCharCode(i):(127<i&&i<2048?e+=String.fromCharCode(i>>6|192):(e+=String.fromCharCode(i>>12|224),e+=String.fromCharCode(i>>6&63|128)),e+=String.fromCharCode(63&i|128))}return e}(t);h<t.length;)r=(e=t.charCodeAt(h++))>>2,s=(3&e)<<4|(n=t.charCodeAt(h++))>>4,o=(15&n)<<2|(i=t.charCodeAt(h++))>>6,a=63&i,isNaN(n)?o=a=64:isNaN(i)&&(a=64),c=c+this._keyStr.charAt(r)+this._keyStr.charAt(s)+this._keyStr.charAt(o)+this._keyStr.charAt(a);return c},decode:function(t){var e,n,i,r,s,o,a="",c=0;for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");c<t.length;)e=this._keyStr.indexOf(t.charAt(c++))<<2|(r=this._keyStr.indexOf(t.charAt(c++)))>>4,n=(15&r)<<4|(s=this._keyStr.indexOf(t.charAt(c++)))>>2,i=(3&s)<<6|(o=this._keyStr.indexOf(t.charAt(c++))),a+=String.fromCharCode(e),64!=s&&(a+=String.fromCharCode(n)),64!=o&&(a+=String.fromCharCode(i));return a=function(t){for(var e="",n=0,i=c1=c2=0;n<t.length;)(i=t.charCodeAt(n))<128?(e+=String.fromCharCode(i),n++):191<i&&i<224?(c2=t.charCodeAt(n+1),e+=String.fromCharCode((31&i)<<6|63&c2),n+=2):(c2=t.charCodeAt(n+1),c3=t.charCodeAt(n+2),e+=String.fromCharCode((15&i)<<12|(63&c2)<<6|63&c3),n+=3);return e}(a)}},N2Classes.Base64}),N2D("ImagesLoaded",function(s,t){function e(){}var n=e.prototype;n.on=function(t,e){if(t&&e){var n=this._events=this._events||{},i=n[t]=n[t]||[];return-1===i.indexOf(e)&&i.push(e),this}},n.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},n.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=n.indexOf(e);return-1!==i&&n.splice(i,1),this}},n.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var i=this._onceEvents&&this._onceEvents[t],r=0;r<n.length;r++){var s=n[r];i&&i[s]&&(this.off(t,s),delete i[s]),s.apply(this,e)}return this}},n.allOff=function(){delete this._events,delete this._onceEvents};var o=window.console;function a(t,e){for(var n in e)t[n]=e[n];return t}var c=Array.prototype.slice;function h(t,e,n){if(!(this instanceof h))return new h(t,e,n);var i,r=t;"string"==typeof t&&(r=document.querySelectorAll(t)),r?(this.elements=(i=r,Array.isArray(i)?i:"object"==typeof i&&"number"==typeof i.length?c.call(i):[i]),this.options=a({},this.options),"function"==typeof e?n=e:a(this.options,e),n&&this.on("always",n),this.getImages(),s&&(this.jqDeferred=new s.Deferred),setTimeout(this.check.bind(this))):o.error("Bad element for imagesLoaded "+(r||t))}(h.prototype=Object.create(e.prototype)).options={},h.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},h.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&u[e]){for(var n=t.querySelectorAll("img"),i=0;i<n.length;i++){var r=n[i];this.addImage(r)}if("string"==typeof this.options.background)for(var s=t.querySelectorAll(this.options.background),i=0;i<s.length;i++){var o=s[i];this.addElementBackgroundImages(o)}}};var u={1:!0,9:!0,11:!0};function i(t){this.img=t}function r(t,e){this.url=t,this.element=e,this.img=new Image}h.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var n=/url\((['"])?(.*?)\1\)/gi,i=n.exec(e.backgroundImage);null!==i;){var r=i&&i[2];r&&this.addBackground(r,t),i=n.exec(e.backgroundImage)}},h.prototype.addImage=function(t){var e=new i(t);this.images.push(e)},h.prototype.addBackground=function(t,e){var n=new r(t,e);this.images.push(n)},h.prototype.check=function(){var i=this;function e(t,e,n){setTimeout(function(){i.progress(t,e,n)})}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach(function(t){t.once("progress",e),t.check()}):this.complete()},h.prototype.progress=function(t,e,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete()},h.prototype.complete=function(){var t,e=this.hasAnyBroken?"fail":"done";this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred&&(t=this.hasAnyBroken?"reject":"resolve",this.jqDeferred[t](this))},(i.prototype=Object.create(e.prototype)).check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},i.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},i.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},i.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},i.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},(r.prototype=Object.create(i.prototype)).check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},r.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},s.fn.n2imagesLoaded=function(t,e){return new h(this,t,e).jqDeferred.promise(s(this))}}),N2D("UniversalPointer",function(i,e){var r=!!(window.PointerEvent||window.MSPointerEvent||window.navigator.msPointerEnabled||window.navigator.pointerEnabled),s=!!window.TouchEvent;s&&navigator.userAgent.match(/iPhone|iPad|iPod/i);function o(t,e){this.el=t,this.handler=e,this.$el=i(t).data("universalclick",this),this.preventMouse=!1,this.timeouts=[],this.localListeners=[],this.globalListeners=[]}function n(t,e,n){this.el=t,this.handler=e,this.$el=i(t).data("universalenter",this),this.leaveOnSecond=n,this.preventMouse=!1,this.isActive=!1,this.timeouts=[],this.localListeners=[],this.globalListeners=[]}o.prototype.addTimeout=function(t){this.timeouts.push(t)},o.prototype.clearTimeouts=function(){for(var t=0;t<this.timeouts.length;t++)clearTimeout(this.timeouts[t]);this.timeouts=[]},o.prototype.click=function(t){this.currentTarget!==e&&(t={currentTarget:this.currentTarget,target:this.el}),this.handler.call(this.el,t),this.clear()},o.prototype.clear=function(){for(var t=0;t<this.localListeners.length;t++)this.localListeners[t][0].removeEventListener(this.localListeners[t][1],this.localListeners[t][2],this.localListeners[t][3])},o.prototype.addGlobalEventListener=function(t,e,n){this.globalListeners.push([t,e,n]),this.el.addEventListener(t,e,n)},o.prototype.addLocalEventListener=function(t,e,n,i){this.localListeners.push([t,e,n,i]),t.addEventListener(e,n,i)},o.prototype.remove=function(){this.clear(),this.clearTimeouts();for(var t=0;t<this.globalListeners.length;t++)this.el.removeEventListener(this.globalListeners[t][0],this.globalListeners[t][1],this.globalListeners[t][2])},o.prototype.startComplexInteraction=function(t){this.clearTimeouts(),this.preventMouse=!0,this.currentTarget=t},o.prototype.endComplexInteraction=function(){delete this.currentTarget,this.addTimeout(setTimeout(function(){this.preventMouse=!1}.bind(this),1e3))},i.event.special.universalclick={add:function(t){var n=new o(this,t.handler);n.addGlobalEventListener("click",function(t){n.preventMouse||n.click(t)}),r?n.addGlobalEventListener("pointerdown",function(e){e.isPrimary&&(n.startComplexInteraction(e.currentTarget),n.addLocalEventListener(document.body.parentNode,"pointerup",function(t){t.isPrimary&&e.pointerId===t.pointerId&&(Math.abs(t.clientX-e.clientX)<10&&Math.abs(t.clientY-e.clientY)<10?n.click(t):n.clear(),n.endComplexInteraction())}))}):s&&n.addGlobalEventListener("touchstart",function(e){n.clearTimeouts(),n.startComplexInteraction(e.currentTarget),n.addLocalEventListener(document.body.parentNode,"touchend",function(t){Math.abs(t.changedTouches[0].clientX-e.changedTouches[0].clientX)<10&&Math.abs(t.changedTouches[0].clientY-e.changedTouches[0].clientY)<10?n.click(t):n.clear(),n.endComplexInteraction()},{passive:!0})},{passive:!0})},remove:function(){var t=i(this),e=t.data("universalclick");e&&(e.remove(),t.removeData("universalclick"))}},n.prototype.enter=function(t){return this.leaveOnSecond&&this.isActive?(this.leave(),!1):(this.handler.apply(this.el,arguments),this.isActive=!0)},n.prototype.leave=function(){this.clearTimeouts();for(var t=0;t<this.localListeners.length;t++)this.localListeners[t][0].removeEventListener(this.localListeners[t][1],this.localListeners[t][2],this.localListeners[t][3]);this.isActive=!1,this.$el.triggerHandler("universalleave")},n.prototype.testLeave=function(t){this.$el.is(t)||0!==this.$el.find(t).length||this.leave()},n.prototype.addTimeout=function(t){this.timeouts.push(t)},n.prototype.clearTimeouts=function(){for(var t=0;t<this.timeouts.length;t++)clearTimeout(this.timeouts[t]);this.timeouts=[]},n.prototype.addGlobalEventListener=function(t,e,n){this.globalListeners.push([t,e,n]),this.el.addEventListener(t,e,n)},n.prototype.remove=function(){this.isActive&&this.leave(),this.clearTimeouts();for(var t=0;t<this.globalListeners.length;t++)this.el.removeEventListener(this.globalListeners[t][0],this.globalListeners[t][1],this.globalListeners[t][2])},n.prototype.addLocalEventListener=function(t,e,n,i){this.localListeners.push([t,e,n,i]),t.addEventListener(e,n,i)},i.event.special.universalenter={add:function(t){var e=new n(this,t.handler,!!t.data&&t.data.leaveOnSecond);r?(e.addGlobalEventListener("pointerenter",function(t){t.isPrimary&&(e.clearTimeouts(),e.enter(t)&&"mouse"!==t.pointerType&&(e.addLocalEventListener(document.body.parentNode,"pointerdown",function(t){t.isPrimary&&e.testLeave(t.target)}),e.addTimeout(setTimeout(function(){e.leave()},5e3))))}),e.addGlobalEventListener("pointerleave",function(t){t.isPrimary&&"mouse"===t.pointerType&&e.leave()})):(e.addGlobalEventListener("mouseenter",function(t){e.preventMouse||e.enter(t)}),e.addGlobalEventListener("mouseleave",function(){e.preventMouse||e.leave()}),s&&e.addGlobalEventListener("touchstart",function(t){e.preventMouse=!0,e.clearTimeouts(),e.enter(t)&&(e.addLocalEventListener(document.body.parentNode,"touchstart",function(t){e.testLeave(t.target)}),e.addTimeout(setTimeout(function(){e.leave(),e.preventMouse=!1},5e3)))},{passive:!0}))},remove:function(){var t=i(this),e=t.data("universalenter");e&&(e.remove(),t.removeData("universalenter"))}}}),N2D("EventBurrito",function(T,b){function P(){return!0}var N=!1;return function(t,e){var n={preventDefault:!0,clickTolerance:10,preventScroll:!1,mouse:!0,axis:"x",start:P,move:P,end:P,click:P};e&&function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}(n,e);var i,r,s,o={pointerEvents:!(n2const.isIOS&&window.TouchEvent||!(window.PointerEvent||window.MSPointerEvent||window.navigator.msPointerEnabled||window.navigator.pointerEnabled||window.PointerEventsPolyfill))},a={},c={},h=[],u=!0,l=o.pointerEvents?1:0,p=[["touchstart","touchmove","touchend","touchcancel"],["pointerdown","pointermove","pointerup","pointercancel","pointerleave"],["mousedown","mousemove","mouseup","","mouseleave"]],d=[function(t){return t.touches&&1<t.touches.length||t.scale&&1!==t.scale},function(t){return!t.isPrimary||t.buttons&&1!==t.buttons||!n.mouse&&"touch"!==t.pointerType&&"pen"!==t.pointerType},function(t){return t.buttons&&1!==t.buttons}],f=function(t){var e=t.tagName;return!("INPUT"!=e&&"TEXTAREA"!=e&&"SELECT"!=e&&"BUTTON"!=e&&"VIDEO"!=e&&!T(t).hasClass("n2_container_scrollable")&&!T(t).closest(".n2_container_scrollable").length)};function m(t,e,n,i){if(e)return t.addEventListener?t.addEventListener(e,n,i):t.attachEvent("on"+e,n),{remove:function(){v(t,e,n,i)}}}function v(t,e,n,i){e&&(t.removeEventListener?t.removeEventListener(e,n,i):t.detachEvent("on"+e,n))}function g(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function y(t){c={x:(s?t.clientX:t.touches[0].clientX)-a.x,y:(s?t.clientY:t.touches[0].clientY)-a.y,time:Date.now()}}function _(t,e){t.isPrimary!==b&&!t.isPrimary||N||(u=!0,d[s=e](t)||f(t.target)||(N=!0,0!==s&&m(document,p[s][1],w,{passive:!1,capture:!0}),m(document,p[s][2],k,{passive:!1,capture:!0}),m(document,p[s][3],k,{passive:!1,capture:!0}),m(document.body,p[s][4],C,{passive:!1,capture:!0}),a={x:s?t.clientX:t.touches[0].clientX,y:s?t.clientY:t.touches[0].clientY,time:Date.now()},i=b,r=!1,c={x:0,y:0},n.start(t,a),w(t)))}function w(t){t.isPrimary!==b&&!t.isPrimary||"x"===n.axis&&(!n.preventScroll&&i||d[s](t))||f(t.target)||(y(t),(Math.abs(c.x)>n.clickTolerance||Math.abs(c.y)>n.clickTolerance)&&(u=!1),i===b&&2!==s&&(i=Math.abs(c.x)<Math.abs(c.y)&&!n.preventScroll)||n.move(t,a,c,r)&&n.preventDefault&&g(t))}function C(t){t.target===t.currentTarget&&k(t)}function k(t){t.isPrimary!==b&&!t.isPrimary||(s&&y(t),!u&&t.target&&t.target.blur&&t.target.blur(),0!==s&&v(document,p[s][1],w,{passive:!1,capture:!0}),v(document,p[s][2],k,{passive:!1,capture:!0}),v(document,p[s][3],k,{passive:!1,capture:!0}),v(document.body,p[s][4],C,{passive:!1,capture:!0}),n.end(t,a,c,r),N=r=!1)}return h.push(m(document,"scroll",function(t){window.nextendScrollFocus!==b&&window.nextendScrollFocus||(r=!0)})),1==l&&("y"===n.axis?t.style.touchAction="pan-x":t.style.touchAction="pan-y"),h.push(m(t,p[l][0],function(t){_(t,l)},{passive:!1,capture:!0})),0==l&&h.push(m(t,p[0][1],function(t){w(t)},{passive:!1,capture:!0})),h.push(m(t,"dragstart",g)),n.mouse&&0==l&&h.push(m(t,p[2][0],function(t){_(t,2)})),h.push(m(t,"click",function(t){u?n.click(t):g(t)})),{supportsPointerEvents:o.pointerEvents,getClicksAllowed:function(){return u},kill:function(){for(var t=h.length-1;0<=t;t--)h[t].remove()}}}}),N2D("RAF",function(){function t(){this._isTicking=!1,this._isMobile=!1,this._lastTick=-1,this._ticks=[],this._postTickCallbacks=[];var i,t=(i=0,window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){var e=(new Date).getTime(),n=Math.max(0,16-(e-i));return i=e+n,setTimeout(function(){t(e+n)},n)});this._raf=window.requestAnimationFrame||t;var e=this;this._isMobile||void 0===document.hidden||document.addEventListener("visibilitychange",function(){document.hidden?(this._raf=function(t){return setTimeout(function(){t(e.now())},16)},e._tick(e.now())):e._raf=window.requestAnimationFrame||t})}return t.prototype.addTick=function(t){-1===this._ticks.indexOf(t)&&this._ticks.push(t),this._isTicking||(this._isTicking=!0,this._raf.call(null,this.getTickStart()))},t.prototype.removeTick=function(t){!function(t){for(var e,n,i=arguments,r=i.length;1<r&&t.length;)for(e=i[--r];-1!==(n=t.indexOf(e));)t.splice(n,1)}(this._ticks,t),0===this._ticks.length&&this._isTicking&&(this._lastTick=-1,this._isTicking=!1)},t.prototype._tickStart=function(t){this._lastTick=t,this._isTicking&&(this._lastTick=t,this._raf.call(null,this.getTick()))},t.prototype._tick=function(t){if(-1!==this._lastTick){var e=(t-this._lastTick)/1e3;if(0!=e){for(var n=0;n<this._ticks.length;n++)this._ticks[n].call(null,e);this.postTick()}}this._continueTick(t)},t.prototype._continueTick=function(t){this._isTicking&&(this._lastTick=t,this._raf.call(null,this.getTick()))},t.prototype.getTick=function(){var t=this;return function(){t._tick.apply(t,arguments)}},t.prototype.getTickStart=function(){var t=this;return function(){t._tickStart.apply(t,arguments)}},t.prototype.now=function(){return performance.now()},t.prototype.postTick=function(){for(var t=0;t<this._postTickCallbacks.length;t++)this._postTickCallbacks[t]();this._postTickCallbacks=[]},t.prototype.addPostTick=function(t){this._postTickCallbacks.push(t)},new t}),N2D("Animation","RAF",function(t,e){function n(t){this._tickCallback=null,this._progress=0,this._delayTimeout=!1,this._delay=0,this._duration=4,this._timeScale=1,this._isPlaying=!1,this._startTime=0,this._eventCallbacks={},this._immediateRender=!0,this._timeline=null,this._isCompleted=!1,this._isStarted=!1,this._isReversed=!1,this.toParams=t,this.initParameters()}return n.prototype.initParameters=function(){this.parseParameters(this.toParams),"object"!=typeof this.toParams&&this.paused(!1)},n.prototype.parseParameters=function(t){t&&(t.delay&&(this.delay(t.delay),delete t.delay),t.duration!==e&&(this.duration(t.duration),delete t.duration),t.onComplete&&(this.eventCallback("onComplete",t.onComplete),delete t.onComplete),t.onStart&&(this.eventCallback("onStart",t.onStart),delete t.onStart),t.onUpdate&&(this.eventCallback("onUpdate",t.onUpdate),delete t.onUpdate),t.immediateRender&&(this._immediateRender=t.immediateRender,delete t.immediateRender),t.paused&&this.paused(!0))},n.prototype.setTimeline=function(t){this._timeline=t},n.prototype._tick=function(t){var e=this._progress;this._isReversed?(this._progress-=t/this._duration*this._timeScale,1!=e&&this._isStarted?this._progress<=0?(this._progress=0,this._isPlaying=!1,N2Classes.RAF.removeTick(this.getTickCallback()),this._onUpdate(),this._onReverseComplete()):this._onUpdate():this._onReverseStart()):(this._progress+=t/this._duration*this._timeScale,0!=e&&this._isStarted?1<=this._progress?(this._progress=1,this._isPlaying=!1,N2Classes.RAF.removeTick(this.getTickCallback()),this._onUpdate(),this._onComplete()):this._onUpdate():this._onStart())},n.prototype._onStart=function(){this._isStarted=!0,this._isCompleted=!1,this.trigger("onStart"),this._onUpdate()},n.prototype._onUpdate=function(){this.trigger("onUpdate")},n.prototype._onComplete=function(){this._isCompleted=!0,this._onUpdate(),this.trigger("onComplete")},n.prototype._onReverseComplete=function(){this._isCompleted=!0,this._isReversed=!1,this._onUpdate(),this.trigger("onReverseComplete")},n.prototype._onReverseStart=function(){this._isStarted=!0,this._isCompleted=!1,this.trigger("onReverseStart"),this._onUpdate()},n.prototype.getTickCallback=function(){var t;return this._tickCallback||((t=this)._tickCallback=function(){t._tick.apply(t,arguments)}),this._tickCallback},n.prototype._clearDelayTimeout=function(){this._delayTimeout&&(clearTimeout(this._delayTimeout),this._delayTimeout=!1)},n.prototype._timeToProgress=function(t){return t/this._duration*this._timeScale},n.prototype.delay=function(){if(0<arguments.length){var t=parseFloat(arguments[0]);return!isNaN(t)&&t!=1/0&&t||(t=0),this._delay=Math.max(0,t),this}return this._delay},n.prototype.duration=function(){if(0<arguments.length){var t=parseFloat(arguments[0]);return!isNaN(t)&&t!=1/0&&t||(t=0),this._duration=Math.max(0,t),this}return this._duration},n.prototype.eventCallback=function(t){return 3<arguments.length?this._eventCallbacks[t]=[arguments[1],arguments[2],arguments[3]]:2<arguments.length?this._eventCallbacks[t]=[arguments[1],arguments[2],this]:1<arguments.length&&(this._eventCallbacks[t]=[arguments[1],[],this]),this._eventCallbacks[t]},n.prototype.pause=function(){return this._isPlaying=!1,N2Classes.RAF.removeTick(this.getTickCallback()),0<arguments.length&&null!=arguments[0]&&this.progress(this._timeToProgress(arguments[0])),this},n.prototype.paused=function(){return 0<arguments.length?(arguments[0]?this._isPlaying&&this.pause():this._isPlaying||this.play(),this):!this._isPlaying},n.prototype.play=function(){var t=!0;0<arguments.length&&null!=arguments[0]&&(t=!1,this._progress=this._timeToProgress(arguments[0])),this._play(t)},n.prototype._play=function(t){var e;this._progress<1?0==this._progress&&t&&0<this._delay?this._delayTimeout||((e=this)._delayTimeout=setTimeout(function(){e.__play.apply(e,arguments)},1e3*this._delay)):this.__play():this._isCompleted||(this._isReversed?this._onReverseComplete():this._onComplete())},n.prototype.__play=function(){this._clearDelayTimeout(),this._isPlaying||(N2Classes.RAF.addTick(this.getTickCallback()),this._isPlaying=!0)},n.prototype.progress=function(){if(0<arguments.length){var t=parseFloat(arguments[0]);return isNaN(t)&&(t=0),t=Math.min(1,Math.max(0,t)),this._progress=t,this._isPlaying||(this._isStarted||this._onStart(),this._onUpdate()),this}return this._progress},n.prototype.reverse=function(){this._isReversed=!0,0!=this.progress()&&this.play()},n.prototype.restart=function(){return 0<arguments.length&&arguments[0]?(this.pause(0),this.play()):this.play(0),this},n.prototype.seek=function(t){null!=t&&(this._progress=this._timeToProgress(t),this._isPlaying||this._onUpdate())},n.prototype.startTime=function(){if(0<arguments.length){var t=parseFloat(arguments[0]);return isNaN(t)&&(t=0),this._startTime=Math.max(0,t),this}return this._startTime},n.prototype.timeScale=function(){if(0<arguments.length){var t=parseFloat(arguments[0]);return isNaN(t)&&(t=1),t=Math.max(.01,t),this._timeScale!=t&&(this._timeScale=t),this}return this._timeScale},n.prototype.trigger=function(t){"object"==typeof this._eventCallbacks[t]&&this._eventCallbacks[t][0].apply(this._eventCallbacks[t][2],this._eventCallbacks[t][1])},n.prototype.totalDuration=function(){if(0<arguments.length){var t=parseFloat(arguments[0]);return isNaN(t)&&(t=0),t=Math.max(0,t),this.timeScale(this._duration/t),this}return this._duration*this._timeScale},n.prototype.reset=function(){this._isCompleted=!1,this._isStarted=!1,this.progress(0)},n}),N2D("AnimationCSS","RAF",function(i,h){function s(t){return"function"==typeof t}var o={};function t(){}function e(t){return t.n2Transform||(t.n2Transform=new r),t.n2Transform}t.prototype.set=function(t,e,n,i){t.length||(t=[t]),n+=i;for(var r=0;r<t.length;r++){var s=t[r];this.applyStyles(s,e,n)}},t.prototype.applyStyles=function(t,e,n){var i={};for(var r in i[e]=n,o[e]!==h&&o[e](t).prepare(i),i)try{t.style[r]=i[r]}catch(t){}},t.prototype.makeTransitionData=function(t,e,n,i){var r,s,o,a,c;if(e.match(/transformOrigin|perspective/)){if(i)return{startValue:i,endValue:i,unit:"",range:0};if(n)return{startValue:n,endValue:n,unit:"",range:0}}return n===h&&(n=this.getProperty(t,e)),n=(a=this.separateValue(e,n))[0],s=a[1],i===h&&(i=this.getProperty(t,e)),i=(c=this.separateValue(e,i))[0],(o=c[1])!=(r=o||s)&&(i=this.transformUnit(t,e,i,o,r)),s!=r&&(n=this.transformUnit(t,e,n,s,r)),{startValue:n,endValue:i,unit:r,range:i-n}},t.prototype.getProperty=function(t,e){if(o[e]!==h)return o[e](t).get(e);try{var n=i(t).css(e);return"auto"===n?0:n}catch(t){}return 0},t.prototype.transformUnit=function(t,e,n,i,r){if(0==n)return 0;var s="";switch(e){case"left":case"right":s="width";break;case"top":case"bottom":s="height";break;default:s=e}if("px"==i&&"%"==r){var o=this.getProperty(t.parent(),s);return n/this.separateValue(s,o)[0]*100}if("%"!=i||"px"!=r)return n;o=this.getProperty(t.parent(),s);return n/100*this.separateValue(s,o)[0]},t.prototype.parsePropertyValue=function(t,e){var n,i=h,r=h;return n=e,"[object Array]"===Object.prototype.toString.call(n)?(i=e[0],r=e[1]):i=e,s(i)&&(i=i.call(t)),s(r)&&(r=r.call(t)),[i||0,r]},t.prototype.separateValue=function(t,e){var n=(e||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(t){return i=t,""}),i=i||this.getUnitType(t);return[parseFloat(n),i]},t.prototype.getUnitType=function(t){return/(^(x|y|z|rotationX|rotationY|rotationZ|scale|scaleX|scaleY|opacity)$)/i.test(t)?"":"px"},o.transform=e,o.x=e,o.y=e,o.z=e,o.rotationX=e,o.rotationY=e,o.rotationZ=e,o.scale=e,o.scaleX=e,o.scaleY=e,o.scaleZ=e;var n={x:0,y:0,z:0,rotationX:0,rotationY:0,rotationZ:0,scaleX:1,scaleY:1,scaleZ:1,scale:1};function r(t){this.data=i.extend({},n)}r.prototype.get=function(t){return this.data[t]};var m=Math.PI/180;return r.prototype.prepare=function(t){for(var e in t.transform!==h&&"none"===t.transform&&(this.data=i.extend({},n)),t.scale!==h&&(t.scaleX=t.scale,t.scaleY=t.scale,delete t.scale),this.data)t[e]!==h&&(this.data[e]=t[e],delete t[e]);return this.data.scale=this.data.scaleX,t.transform=this.matrix3d(this.data.x,this.data.y,this.data.z,this.data.scaleX,this.data.scaleY,this.data.rotationX,this.data.rotationY,this.data.rotationZ),t},r.prototype.matrix3d=function(t,e,n,i,r,s,o,a){var c=Math.cos(s*m),h=Math.sin(s*m),u=Math.cos(o*m),l=Math.sin(o*m),p=Math.cos(a*m),d=Math.sin(a*m),f=new Array(16);return f[0]=u*p*i,f[1]=d,f[2]=l,f[3]=0,f[4]=-1*d,f[5]=c*p*r,f[6]=h,f[7]=0,f[8]=-1*l,f[9]=-1*h,f[10]=u*c,f[11]=0,f[12]=t,f[13]=e,f[14]=n,f[15]=1,"matrix3d("+f[0]+","+f[1]+","+f[2]+","+f[3]+","+f[4]+","+f[5]+","+f[6]+","+f[7]+","+f[8]+","+f[9]+","+f[10]+","+f[11]+","+f[12]+","+f[13]+","+f[14]+","+f[15]+")"},new t}),N2D("Tween","RAF",function(o){var a=1,c=2,h=3;function s(t,e){this.ease="linear",this._tweenContainer=null,this._setContainer=null,this._roundProps={};var n,i=null;switch(arguments.length){case 4:i=o.extend(!0,{},arguments[2]),(n=arguments[3])?(this._mode=c,n=o.extend(!0,{},n)):this._mode=a;break;default:this._mode=h,i={},n=o.extend(!0,{},arguments[2])}if(this._target=o(t),this.fromParams=i,N2Classes.Animation.call(this,n),this.parseParameters({duration:e}),(this._mode==a||this._mode==c)&&this._immediateRender){for(var r in null===this._tweenContainer&&this._makeTweenContainer(this.fromParams,this.toParams),this._tweenContainer){var s=this._tweenContainer[r];N2Classes.AnimationCSS.set(this._target,r,s.startValue,s.unit)}for(var r in this._setContainer){s=this._setContainer[r];N2Classes.AnimationCSS.set(this._target,r,s.endValue,s.unit)}}}return((s.prototype=Object.create(N2Classes.Animation.prototype)).constructor=s).prototype.initParameters=function(){this.parseParameters(this.fromParams),N2Classes.Animation.prototype.initParameters.apply(this,arguments)},s.prototype.parseParameters=function(t){t&&(t.ease&&(this.ease=t.ease,delete t.ease),N2Classes.Animation.prototype.parseParameters.apply(this,arguments))},s.prototype._onStart=function(){for(var t in null===this._tweenContainer&&this._makeTweenContainer(this.fromParams,this.toParams),this._setContainer){var e=this._setContainer[t];N2Classes.AnimationCSS.set(this._target,t,e.endValue,e.unit)}N2Classes.Animation.prototype._onStart.call(this)},s.prototype._onUpdate=function(){for(var t in this._tweenContainer){var e=this._tweenContainer[t],n=N2Classes.Easings[this.ease](this._progress,e.startValue,e.range*this._progress,1);this._roundProps[t]&&(n=Math.round((10*n|0)/10)),N2Classes.AnimationCSS.set(this._target,t,n,e.unit)}N2Classes.Animation.prototype._onUpdate.call(this)},s.prototype.initRoundProps=function(t){for(var e=t.split(","),n=0;n<e.length;n++)this._roundProps[e[n]]=!0},s.prototype._makeTweenContainer=function(t,e){if(void 0!==t.n2RoundProps&&(this.initRoundProps(t.n2RoundProps),delete t.n2RoundProps),this._setContainer={},this._tweenContainer={},e)for(var n in void 0!==e.n2RoundProps&&(this.initRoundProps(e.n2RoundProps),delete e.n2RoundProps),e){0==(i=N2Classes.AnimationCSS.makeTransitionData(this._target,n,t[n],e[n])).range?this._setContainer[n]=i:this._tweenContainer[n]=i}else for(var n in t){var i;0==(i=N2Classes.AnimationCSS.makeTransitionData(this._target,n,t[n])).range?this._setContainer[n]=i:this._tweenContainer[n]=i}},s.set=function(t,e){for(var n in e)N2Classes.AnimationCSS.set(o(t),n,e[n],"")},s.to=function(t,e,n){var i=new s(t,e,n);return void 0!==n.paused&&n.paused||i.play(),i},s.fromTo=function(t,e,n,i){var r=new s(t,e,n,i);return void 0!==i.paused&&i.paused||r.play(),r},s.from=function(t,e,n){var i=new s(t,e,n,null);return void 0!==n.paused&&n.paused||i.play(),i},window.NextendTween=s}),N2D("Timeline","RAF",function(e,n){function t(t){this.originalParams=e.extend(!0,{},t),this._tweens=[],N2Classes.Animation.call(this,t),this._duration=0}return((t.prototype=Object.create(N2Classes.Animation.prototype)).constructor=t).prototype._onUpdate=function(){if(this.tweensContainer)for(var t=0;t<this.tweensContainer.length;t++){var e=this.tweensContainer[t],n=Math.min(1,(this._progress-e.startProgress)/(e.endProgress-e.startProgress));e.tween._isCompleted&&n<=e.endProgress&&e.tween.reset(),!e.tween._isStarted&&0<=n&&0==e.tween.progress()&&e.tween._onStart(),e.tween._isStarted&&(1!=n||e.tween._isCompleted?0<=n&&n<1?e.tween.progress(n):n<0&&0!=e.tween.progress()&&e.tween.progress(0):(e.tween.progress(n),e.tween._onComplete()))}N2Classes.Animation.prototype._onUpdate.call(this),N2Classes.RAF._isTicking||N2Classes.RAF.postTick()},t.prototype.addTween=function(t){t.pause(),t.setTimeline(this);var e=0,e=1<arguments.length?this._parsePosition(arguments[1]):this._parsePosition(),n=t.delay();0<n&&(e+=n,t.delay(0)),t.startTime(e),this._tweens.push(t);var i=t.totalDuration()+e;i>this._duration&&(this._duration=i),this.makeCache()},t.prototype.clear=function(){this.paused()||this.pause(),t.call(this,this.originalParams)},t.prototype.add=function(t,e){this.addTween(t,e)},t.prototype.set=function(t,e,n){this.addTween(NextendTween.to(t,.05,e),n)},t.prototype.to=function(t,e,n,i){n.paused=!0,this.addTween(NextendTween.to(t,e,n),i)},t.prototype.fromTo=function(t,e,n,i,r){i.paused=!0,this.addTween(NextendTween.fromTo(t,e,n,i),r)},t.prototype.from=function(t,e,n,i){n.paused=!0,this.addTween(NextendTween.from(t,e,n),i)},t.prototype._play=function(){if(0==this._progress)for(var t=0;t<this._tweens.length;t++)this._tweens[t].pause(0);N2Classes.Animation.prototype._play.apply(this,arguments)},t.prototype._parsePosition=function(){var t="+=0";0<arguments.length&&arguments[0]!==n&&!isNaN(arguments[0])&&(t=arguments[0]);var e=0;switch(typeof t){case"string":switch(t.substr(0,2)){case"+=":e=this.duration()+parseFloat(t.substr(2));break;case"-=":e=this.duration()-parseFloat(t.substr(2))}break;default:e=parseFloat(t)}return Math.max(0,e)},t.prototype.makeCache=function(){var t=this.totalDuration();this.tweensContainer=[];for(var e=0;e<this._tweens.length;e++){var n=this._tweens[e],i=n.startTime()/t,r=(n.startTime()+n.totalDuration())/t;this.tweensContainer.push({tween:n,startProgress:i,endProgress:r,range:r-i})}},window.NextendTimeline=t}),N2D("Easings","RAF",function(){return{linear:function(t,e,n,i){return n+e},easeInQuad:function(t,e,n,i){return n*(t/=i)*t+e},easeOutQuad:function(t,e,n,i){return-n*(t/=i)*(t-2)+e},easeInOutQuad:function(t,e,n,i){return(t/=i/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},easeInCubic:function(t,e,n,i){return n*(t/=i)*t*t+e},easeOutCubic:function(t,e,n,i){return n*((t=t/i-1)*t*t+1)+e},easeInOutCubic:function(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t+e:n/2*((t-=2)*t*t+2)+e},easeInQuart:function(t,e,n,i){return n*(t/=i)*t*t*t+e},easeOutQuart:function(t,e,n,i){return-n*((t=t/i-1)*t*t*t-1)+e},easeInOutQuart:function(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t*t+e:-n/2*((t-=2)*t*t*t-2)+e},easeInQuint:function(t,e,n,i){return n*(t/=i)*t*t*t*t+e},easeOutQuint:function(t,e,n,i){return n*((t=t/i-1)*t*t*t*t+1)+e},easeInOutQuint:function(t,e,n,i){return(t/=i/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},easeInSine:function(t,e,n,i){return-n*Math.cos(t/i*(Math.PI/2))+n+e},easeOutSine:function(t,e,n,i){return n*Math.sin(t/i*(Math.PI/2))+e},easeInOutSine:function(t,e,n,i){return-n/2*(Math.cos(Math.PI*t/i)-1)+e},easeInExpo:function(t,e,n,i){return 0==t?e:n*Math.pow(2,10*(t/i-1))+e},easeOutExpo:function(t,e,n,i){return t==i?e+n:n*(1-Math.pow(2,-10*t/i))+e},easeInOutExpo:function(t,e,n,i){return 0==t?e:t==i?e+n:(t/=i/2)<1?n/2*Math.pow(2,10*(t-1))+e:n/2*(2-Math.pow(2,-10*--t))+e},easeInCirc:function(t,e,n,i){return-n*(Math.sqrt(1-(t/=i)*t)-1)+e},easeOutCirc:function(t,e,n,i){return n*Math.sqrt(1-(t=t/i-1)*t)+e},easeInOutCirc:function(t,e,n,i){return(t/=i/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+e:n/2*(Math.sqrt(1-(t-=2)*t)+1)+e},easeInElastic:function(t,e,n,i){var r=1.70158,s=0,o=n;return 0==t?e:1==(t/=i)?e+n:(s=s||.3*i,r=o<Math.abs(n)?(o=n,s/4):s/(2*Math.PI)*Math.asin(n/o),-(o*Math.pow(2,10*--t)*Math.sin((t*i-r)*(2*Math.PI)/s))+e)},easeOutElastic:function(t,e,n,i){var r=1.70158,s=0,o=n;return 0==t?e:1==(t/=i)?e+n:(s=s||.3*i,r=o<Math.abs(n)?(o=n,s/4):s/(2*Math.PI)*Math.asin(n/o),o*Math.pow(2,-10*t)*Math.sin((t*i-r)*(2*Math.PI)/s)+n+e)},easeInOutElastic:function(t,e,n,i){var r=1.70158,s=0,o=n;return 0==t?e:2==(t/=i/2)?e+n:(s=s||i*(.3*1.5),r=o<Math.abs(n)?(o=n,s/4):s/(2*Math.PI)*Math.asin(n/o),t<1?o*Math.pow(2,10*--t)*Math.sin((t*i-r)*(2*Math.PI)/s)*-.5+e:o*Math.pow(2,-10*--t)*Math.sin((t*i-r)*(2*Math.PI)/s)*.5+n+e)},easeInBack:function(t,e,n,i,r){return null==r&&(r=1.70158),n*(t/=i)*t*((r+1)*t-r)+e},easeOutBack:function(t,e,n,i,r){return null==r&&(r=1.70158),n*((t=t/i-1)*t*((r+1)*t+r)+1)+e},easeInOutBack:function(t,e,n,i,r){return null==r&&(r=1.70158),(t/=i/2)<1?n/2*(t*t*((1+(r*=1.525))*t-r))+e:n/2*((t-=2)*t*((1+(r*=1.525))*t+r)+2)+e},easeInBounce:function(t,e,n,i){return n-N2Classes.Easing.easeOutBounce(i-t,0,n,i)+e},easeOutBounce:function(t,e,n,i){return(t/=i)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e},easeInOutBounce:function(t,e,n,i){return t<i/2?.5*N2Classes.Easing.easeInBounce(2*t,0,n,i)+e:.5*N2Classes.Easing.easeOutBounce(2*t-i,0,n,i)+.5*n+e}}}),N2D("nextend-frontend"),N2D("n2");
// source --> https://argyledesign.co.jp/wp/wp-content/plugins/smart-slider-3/Public/SmartSlider3/Application/Frontend/Assets/dist/smartslider-frontend.min.js?ver=a1ec7496 
(function(){var t=this;t.N2_=t.N2_||{r:[],d:[]},t.N2R=t.N2R||function(){t.N2_.r.push(arguments)},t.N2D=t.N2D||function(){t.N2_.d.push(arguments)}}).call(window),N2D("SmartSliderBackgrounds",function(a,t){function e(t){this.device=null,this.slider=t,this.hasFixed=!1,this.lazyLoad=parseInt(t.parameters.lazyLoad),this.lazyLoadNeighbor=parseInt(t.parameters.lazyLoadNeighbor),this.loadDeferred=a.Deferred(),this.deviceDeferred=a.Deferred(),this.slider.stages.done("Resized",this.onResized.bind(this)),this.slider.stages.done("StarterSlide",this.onStarterSlide.bind(this))}return e.prototype.loadWithProgress=function(t){for(var e=0,i=this.loadDeferred,s=0;s<t.length;s++)a.when(t[s]).done(function(){i.notify(++e,t.length)});a.when.apply(a,t).done(function(){i.resolveWith(null,arguments)})},e.prototype.getBackgroundImages=function(){for(var t=[],e=0;e<this.slider.realSlides.length;e++)t.push(this.slider.realSlides[e].background);return t},e.prototype.onResized=function(){this.onSlideDeviceChanged(this.slider.responsive.getDeviceMode()),this.deviceDeferred.resolve(),this.slider.sliderElement.on("SliderDevice",function(t,e){this.onSlideDeviceChanged(e.device)}.bind(this))},e.prototype.onStarterSlide=function(){1===this.lazyLoad?(this.preLoadSlides=this.preloadSlidesLazyNeighbor,this.loadWithProgress(this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)))):2===this.lazyLoad?(this.preLoadSlides=this._preLoadSlides,this.slider.stages.done("SlidesReady",function(){N2R("windowLoad",this.preLoadAll.bind(this))}.bind(this)),this.loadWithProgress(this.preLoadSlides(this.slider.getVisibleSlides(this.slider.currentSlide)))):(this.preLoadSlides=this._preLoadSlides,this.loadWithProgress(this.preLoadAll())),this.slider.sliderElement.on("visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))},e.prototype.onVisibleSlidesChanged=function(){(1===this.lazyLoad||2===this.lazyLoad)&&a.when.apply(a,this.preLoadSlides(this.slider.getVisibleSlides()))},e.prototype.onSlideDeviceChanged=function(t){this.device=t;for(var e=0;e<this.slider.visibleRealSlides.length;e++)this.slider.visibleRealSlides[e].background&&this.slider.visibleRealSlides[e].background.updateBackgroundToDevice(t)},e.prototype.preLoadAll=function(){for(var t=[],e=0;e<this.slider.visibleRealSlides.length;e++)t.push(this.slider.visibleRealSlides[e].preLoad());return t},e.prototype._preLoadSlides=function(t){var e=[];"[object Array]"!==Object.prototype.toString.call(t)&&(t=[t]);for(var i=0;i<t.length;i++)e.push(t[i].preLoad());return e},e.prototype.preloadSlidesLazyNeighbor=function(t){var e=this._preLoadSlides(t);if(this.lazyLoadNeighbor)for(var i=0,s=t[0].getPrevious(),n=t[t.length-1].getNext();i<this.lazyLoadNeighbor;)s&&(e.push(s.preLoad()),s=s.getPrevious()),n&&(e.push(n.preLoad()),n=n.getNext()),i++;var r,o=a.Deferred();return"resolved"!==e[0].state()?(r=setTimeout(function(){this.slider.load.showSpinner("backgroundImage"+t[0].index),r=null}.bind(this),50),a.when.apply(a,e).done(function(){r?(clearTimeout(r),r=null):this.slider.load.removeSpinner("backgroundImage"+t[0].index),setTimeout(function(){o.resolve()},100)}.bind(this))):setTimeout(function(){o.resolve()},100),e.push(o),e},e.prototype.hack=function(){for(var t=0;t<this.slider.realSlides.length;t++)this.slider.realSlides[t].background&&this.slider.realSlides[t].background.hack()},e}),N2D("CSSData",function(t,e){"use strict";function i(t,e){this.$=t,this.css=e}return i.prototype.flush=function(){this.$.css(this.css)},i}),N2D("FontSize",function(e,i){var s;return{toRem:function(t){return t/(s===i&&(s=e('<div style="font-size:10rem;"></div>').appendTo("body")),parseFloat(s.css("fontSize"))/10)+"rem"}}}),N2D("SmartSliderLoad",function(i,t){function e(t,e){this.parameters=i.extend({fade:1,scroll:0},e),this.deferred=i.Deferred(),this.slider=t,this.spinnerCouner=0,this.id=t.sliderElement.attr("id"),this.$window=i(window),this.spinner=i("#"+this.id+"-spinner"),this.$placeholder=i("#"+this.id+"-placeholder")}return e.prototype.start=function(){var i;this.parameters.scroll?(this.onScrollCallback=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.onScroll()):(this.parameters.fade&&(this.loadingArea=this.$placeholder,this.showSpinner("fadePlaceholder"),(i=this.spinner.find(".n2-ss-spinner-counter")).length&&(i.html("0%"),this.slider.stages.done("SlidesReady",function(){this.slider.backgrounds.loadDeferred.progress(function(t,e){i.html(Math.round(t/(e+1)*100)+"%")}.bind(this))}.bind(this)))),this.showSlider())},e.prototype.onScroll=function(){this.$window.scrollTop()+this.$window.height()>this.slider.sliderElement.offset().top+100&&(window.removeEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.showSlider())},e.prototype.loadLayerImages=function(){var t=i.Deferred();return this.slider.sliderElement.find(".n2-ss-layers-container").n2imagesLoaded().always(function(){t.resolve()}),t},e.prototype.showSlider=function(){this.slider.stages.done("ResizeFirst",this.stage1.bind(this))},e.prototype.stage1=function(){this.slider.responsive.isReadyToResize=!0,i.when.apply(i,this.slider.widgetDeferreds).done(this.stage2.bind(this))},e.prototype.stage2=function(){this.slider.responsive.doResize(),this.slider.finalizeStarterSlide(),i.when(this.slider.backgrounds.loadDeferred,this.loadLayerImages(),this.slider.stages.get("Fonts").getDeferred()).always(this.stage3.bind(this))},e.prototype.stage3=function(){this.slider.responsive.doResize(),this.slider.stages.resolve("BeforeShow"),this.slider.widgets.onReady(),this.slider.responsive.alignElement.addClass("n2-ss-align-visible"),this.slider.sliderElement.addClass("n2-ss-loaded").removeClass("n2notransition"),this.spinner.find(".n2-ss-spinner-counter").html(""),this.removeSpinner("fadePlaceholder"),this.$placeholder.remove(),this.loadingArea=this.slider.sliderElement,i(window).scroll(),this.slider.stages.resolve("Show"),this.slider.startVisibilityCheck()},e.prototype.showSpinner=function(t){0===this.spinnerCouner&&this.spinner.appendTo(this.loadingArea).css("display",""),this.spinnerCouner++},e.prototype.removeSpinner=function(t){this.spinnerCouner--,this.spinnerCouner<=0&&(this.spinner.detach(),this.spinnerCouner=0)},e}),N2D("SmartSliderPlugins",function(t,i){function s(t){this.slider=t,this.plugins={}}s.prototype.add=function(t,e){this.plugins[t]=new e(this.slider)},s.prototype.get=function(t){return this.plugins[t]||!1};var n={},r=[];return{addPlugin:function(t,e){for(var i=0;i<r.length;i++)r[i].plugins.add(t,e);n[t]=e},addSlider:function(t){if(t.plugins===i)for(var e in t.plugins=new s(t),n)t.plugins.add(e,n[e]);r.push(t)}}}),N2D("ScrollTracker",function(t,e,i){function s(){this.started=!1,this.items=[],this.onScrollCallback=this.onScroll.bind(this)}return s.prototype.add=function(t,e,i,s){var n={$el:t,mode:e,onVisible:i,onHide:s,state:"unknown"};this.items.push(n),this._onScroll(n,Math.max(document.documentElement.clientHeight,window.innerHeight)),this.started||this.start()},s.prototype.start=function(){this.started||(window.addEventListener("scroll",this.onScrollCallback,{capture:!0,passive:!0}),this.started=!0)},s.prototype.onScroll=function(t){for(var e=Math.max(document.documentElement.clientHeight,window.innerHeight),i=0;i<this.items.length;i++)this._onScroll(this.items[i],e)},s.prototype._onScroll=function(t,e){var i=t.$el[0].getBoundingClientRect(),s=i.height>.7*e,n=!0;"partly-visible"===t.mode?(s&&(i.bottom<0||i.top>=i.height)||!s&&(i.bottom-i.height<0||0<=i.top-e+i.height))&&(n=!1):"not-visible"===t.mode&&(n=i.top-e<0&&0<i.top+i.height),!1===n?"hidden"!==t.state&&("function"==typeof t.onHide&&t.onHide(),t.state="hidden"):"visible"!==t.state&&("function"==typeof t.onVisible&&t.onVisible(),t.state="visible")},new s}),N2D("SmartSliderApi",function(h,r){function t(){this.sliders={},this.readys={},this.eventListeners={}}t.prototype.makeReady=function(t,e){if(this.sliders[t]=e,this.readys[t]!==r)for(var i=0;i<this.readys[t].length;i++)this.readys[t][i].call(e,e,e.sliderElement)},t.prototype.ready=function(t,e){this.sliders[t]!==r?e.call(this.sliders[t],this.sliders[t],this.sliders[t].sliderElement):(this.readys[t]===r&&(this.readys[t]=[]),this.readys[t].push(e))},t.prototype.on=function(t,e){this.eventListeners[t]===r&&(this.eventListeners[t]=[]),this.eventListeners[t].push(e)},t.prototype.off=function(t,e){if(this.eventListeners[t]!==r)for(var i=this.eventListeners[t].length-1;0<=i;i--)this.eventListeners[t][i]===e&&this.eventListeners[t].splice(i,1)},t.prototype.dispatch=function(t,e){if(this.eventListeners[t]!==r&&this.eventListeners[t].length)for(var i=this.eventListeners[t].length-1;0<=i;i--)this.eventListeners[t][i]&&this.eventListeners[t][i].call(e,e)},t.prototype.trigger=function(t,e,i){i&&i.preventDefault();var s=h(t),n=e.split(","),r=s.closest(".n2-ss-slide,.n2-ss-static-slide"),o=r.data("ss-last-event");s.data("ss-reset-events")||(s.data("ss-reset-events",1),r.on("layerAnimationPlayIn.resetCounter",function(t){t.data("ss-last-event","")}.bind(this,r)));for(var a=n.length-1,l=0;l<n.length;l++)n[l]===o&&(a=l);e=a===n.length-1?n[0]:n[a+1],r.data("ss-last-event",e),r.triggerHandler("ss"+e)},t.prototype.applyAction=function(t,e){var i,s;this.isClickAllowed(t)&&(i=t.currentTarget,(s=h(i).closest(".n2-ss-slider").data("ss"))[e].apply(s,Array.prototype.slice.call(arguments,2)))},t.prototype.applyActionWithClick=function(t){this.isClickAllowed(t)&&(nextend.shouldPreventClick||(t.preventDefault(),this.applyAction.apply(this,arguments)))},t.prototype.isClickAllowed=function(t){return!h.contains(t.currentTarget,h(t.target).closest('a[href!="#"], *[onclick][onclick!=""], *[data-n2click][data-n2click!=""], *[data-n2-lightbox]').get(0))},t.prototype.openUrl=function(t,e){var i,s,n;this.isClickAllowed(t)&&(s=(i=h(t.currentTarget)).data("href"),e===r&&(e=i.data("target")),"_blank"===e?((n=window.open()).opener=null,n.location=s):n2const.setLocation(s))};var n={focusOffsetTop:0,to:function(t){var e=h("html, body, .n2_iframe_application__content");"smooth"===h("html").css("scroll-behavior")?e.scrollTop(t):e.animate({scrollTop:t},window.n2ScrollSpeed||400)},top:function(){n.to(0)},bottom:function(){n.to(h(document).height()-h(window).height())},before:function(t){n.to(t.offset().top-h(window).height())},after:function(t){n.to(t.offset().top+t.height())},next:function(i,t){var e=h(t),s=-1;e.each(function(t,e){if(h(i).is(e)||h.contains(e,i))return s=t+1,!1}),-1!==s&&s<=e.length&&n.element(e.eq(s))},previous:function(i,t){var e=h(t),s=-1;e.each(function(t,e){if(h(i).is(e)||h.contains(e,i))return s=t-1,!1}),0<=s&&n.element(e.eq(s))},element:function(t){n.to(h(t).offset().top-n.focusOffsetTop)}};return t.prototype.scroll=function(t,e){var i;this.isClickAllowed(t)&&(t.preventDefault(),(i=this.findSliderByElement(t.target))&&(n.focusOffsetTop=i.responsive.focusOffsetTop),n[e].apply(window,Array.prototype.slice.call(arguments,2)))},t.prototype.findSliderByElement=function(t){return h(t).closest(".n2-ss-slider").data("ss")},window.n2ss=new t,window.n2ss}),N2D("SmartSliderAbstract",function($,undefined){function SmartSliderAbstract(t,e){this.editor=null,t instanceof $&&(t="#"+t.attr("id"));var i=t.substr(1);if(this.elementID=i,window[i]&&window[i]instanceof SmartSliderAbstract&&(!window[i].__$sliderElement||$.contains(document.body,window[i].__$sliderElement.get(0)))){if(window[i].sliderElement===undefined)return void console.error("Slider [#"+i+"] inited multiple times");if($.contains(document.body,window[i].sliderElement.get(0)))return void console.error("Slider [#"+i+"] embedded multiple times")}this.stages=new N2Classes.Stages,N2D(t,function(){return this}.bind(this)),this.isAdmin=!!e.admin,N2Classes.SmartSliderPlugins.addSlider(this),this.id=parseInt(i.replace("n2-ss-","")),window[i]=this,e.isDelayed!==undefined&&e.isDelayed?$(window).ready(function(){this.waitForExists(i,e)}.bind(this)):this.waitForExists(i,e)}SmartSliderAbstract.prototype.kill=function(){this.killed=!0;var e=this.sliderElement.attr("id"),t=$("#"+e+"-placeholder");t.length?t.remove():N2R("documentReady",function(t){t("#"+e+"-placeholder").remove()});var i=this.sliderElement.closest(".n2-ss-margin");i.length?i.remove():N2R("documentReady",function(t){this.sliderElement.closest(".n2-ss-margin").remove()}.bind(this));var s=this.sliderElement.closest(".n2-ss-align");s.length?s.remove():N2R("documentReady",function(t){this.sliderElement.closest(".n2-ss-align").remove()}.bind(this)),n2ss.makeReady(this.id,this)},SmartSliderAbstract.prototype.waitForExists=function(e,t){var i=$.Deferred(),s=function(){var t=$("#"+e);t.length?i.resolve(t):setTimeout(s,500)};i.done(this.onSliderExists.bind(this,e,t)),s()};var lazySliders=[];function lazySliderLoad(t,e){lazySliders.push({element:t.__$sliderElement.parent()[0],callback:e}),1===lazySliders.length&&(window.addEventListener("resize",lazySliderCheckScroll,{capture:!0}),window.addEventListener("scroll",lazySliderCheckScroll,{capture:!0,passive:!0}),N2Classes.SmartSliderApi.on("SliderResize",lazySliderCheckScroll),lazySliderCheckScroll())}function lazySliderCheckScroll(){for(var t,e=1.4*$(window).height(),i=0;i<lazySliders.length;i++){lazySliders[i].element.getBoundingClientRect().y<e&&(t=lazySliders[i].callback,lazySliders.splice(i,1),i--,t())}0===lazySliders.length&&(window.removeEventListener("resize",lazySliderCheckScroll,{capture:!0}),window.removeEventListener("scroll",lazySliderCheckScroll,{capture:!0,passive:!0}),N2Classes.SmartSliderApi.off("SliderResize",lazySliderCheckScroll))}return SmartSliderAbstract.prototype.onSliderExists=function(e,i,s){var t,n,r;this.__$sliderElement=s,this.stages.resolve("Exists"),"TEMPLATE"===s.prop("tagName")?(t=s.data("loading-type"),n=function(){var t=$(s.html());s.replaceWith(t),this.waitForDimension($("#"+e),i),$(window).triggerHandler("n2Rocket",[this.sliderElement])}.bind(this),"afterOnLoad"===t?N2R("windowLoad",lazySliderLoad.bind(this,this,n)):"afterSlider"===t?(r=s.data("loading-dependency"))&&$("#n2-ss-"+r).length?n2ss.ready(r,function(t){t.ready(n)}.bind(this)):N2R("windowLoad",n):"afterDelay"===t?setTimeout(n,s.data("loading-delay")):n()):this.waitForDimension(s,i)},SmartSliderAbstract.prototype.waitForDimension=function(t,e){var i=function(){t.is(":visible")?this.onSliderHasDimension(t,e):setTimeout(i,200)}.bind(this);i()},SmartSliderAbstract.prototype.initCSS=function(){this.parameters.css&&$('<style type="text/css">'+this.parameters.css+"</style>").appendTo("head")},SmartSliderAbstract.prototype.onSliderHasDimension=function($sliderElement,parameters){this.stages.resolve("HasDimension"),this.killed=!1,this.isVisible=!0,n2const.isIE?$sliderElement.attr("data-ie",n2const.isIE):n2const.isEdge&&$sliderElement.attr("data-ie",n2const.isEdge),this.responsive=!1,this.mainAnimationLastChangeTime=0,this.currentSlide=null,this.currentRealSlide=null,this.staticSlides=[],this.slides=[],this.visibleRealSlides=[],this.visibleSlides=[],this.sliderElement=$sliderElement.data("ss",this),this.needBackgroundWrap=!1,this.blockCarousel=!1,this.parameters=$.extend({plugins:[],admin:!1,playWhenVisible:1,playWhenVisibleAt:.5,perspective:1e3,callbacks:"",autoplay:{},blockrightclick:!1,maintainSession:0,align:"normal",controls:{touch:"horizontal",keyboard:!1,mousewheel:!1,blockCarouselInteraction:1},hardwareAcceleration:!0,layerMode:{playOnce:0,playFirstLayer:1,mode:"skippable",inAnimation:"mainInEnd"},parallax:{enabled:0,mobile:0,horizontal:"mouse",vertical:"mouse",origin:"enter"},load:{},mainanimation:{},randomize:{randomize:0,randomizeFirst:0},responsive:{},lazyload:{enabled:0},postBackgroundAnimations:!1,initCallbacks:!1,dynamicHeight:0,titles:[],descriptions:[],backgroundParallax:{strength:0,tablet:0,mobile:0},alias:{id:0,smoothScroll:0,slideSwitch:0,scrollSpeed:400}},parameters),this.stages.resolve("Parameters"),this.disabled={layerAnimations:!1,layerSplitTextAnimations:!1,backgroundAnimations:!1,postBackgroundAnimations:!1},this.disableLayerAnimations!==undefined&&!0===this.disableLayerAnimations&&(this.disabled.layerAnimations=!0),n2const.isSamsungBrowser&&(this.disabled.layerSplitTextAnimations=!0,this.disabled.postBackgroundAnimations=!0),this.initCSS();try{eval(this.parameters.callbacks)}catch(t){console.error(t)}n2ss.makeReady(this.id,this),this.widgetDeferreds=[],this.sliderElement.on("addWidget",this.addWidget.bind(this)),this.isAdmin&&(this.changeTo=function(){}),this.load=new N2Classes.SmartSliderLoad(this,this.parameters.load),this.backgrounds=new N2Classes.SmartSliderBackgrounds(this),this.initSlides(),"function"==typeof this.parameters.initCallbacks&&this.parameters.initCallbacks.call(this,$),this.stages.done("VisibleSlides",this.onSlidesReady.bind(this)),this.initUI(),navigator.userAgent.match("UCBrowser")&&$("html").addClass("n2-ucbrowser")},SmartSliderAbstract.prototype.onSlidesReady=function(){this.stages.resolve("SlidesReady")},SmartSliderAbstract.prototype.initUI=function(){for(var i=0;i<this.realSlides.length;i++)this.realSlides[i].setNext(this.realSlides[i+1>this.realSlides.length-1?0:i+1]);this.widgets=new N2Classes.SmartSliderWidgets(this);var isHover=!1,hoverTimeout,eventName;if(this.sliderElement.on({universalenter:function(t){$(t.target).closest(".n2-full-screen-widget").length||(clearTimeout(hoverTimeout),isHover=!0,this.sliderElement.addClass("n2-hover"),this.widgets.setState("hover",!0))}.bind(this),universalleave:function(t){t.stopPropagation(),hoverTimeout=setTimeout(function(){isHover=!1,this.sliderElement.removeClass("n2-hover"),this.widgets.setState("hover",!1)}.bind(this),1e3)}.bind(this)}),this.parameters.carousel||this.initNotCarousel(),this.initHideArrow(),this.controls={},this.parameters.blockrightclick&&this.sliderElement.bind("contextmenu",function(t){t.preventDefault()}),this.initMainAnimation(),this.initResponsiveMode(),!this.killed){try{var removeHoverClassCB=function(){this.sliderElement.removeClass("n2-has-hover"),this.sliderElement[0].removeEventListener("touchstart",removeHoverClassCB,!!window.n2const.passiveEvents&&{passive:!0})}.bind(this);this.sliderElement[0].addEventListener("touchstart",removeHoverClassCB,!!window.n2const.passiveEvents&&{passive:!0})}catch(t){}this.initControls(),this.stages.resolve("UIReady"),this.isAdmin||(eventName="click",this.hasTouch()&&(eventName="n2click"),this.sliderElement.find("[data-n2click]").each(function(i,el){var el=$(el);el.on(eventName,function(e){eval(el.data("n2click"))})}),this.sliderElement.find("[data-n2middleclick]").on("mousedown",function(e){var el=$(this);2!=e.which&&4!=e.which||(e.preventDefault(),eval(el.data("n2middleclick")))})),this.load.start(),this.sliderElement.keypress(function(t){32!==t.charCode&&13!==t.charCode||($target=$(t.target).filter('[role="button"],[tabindex]').not("input,select,textarea"),$target.length&&(t.preventDefault(),$(t.target).click().triggerHandler("n2Activate")))}).on("mouseleave",function(t){$(t.currentTarget).blur()})}},SmartSliderAbstract.prototype.initSlides=function(){for(var t=this.sliderElement.find(".n2-ss-slide"),e=0;e<t.length;e++)this.slides.push(this.createSlide(t.eq(e),e));for(e=0;e<this.slides.length;e++)this.slides[e].init(),1===this.slides[e].$element.data("first")&&(this.originalRealStarterSlide=this.slides[e]);this.realSlides=this.slides,this.visibleSlides=this.slides,this.initSlidesEnd()},SmartSliderAbstract.prototype.initSlidesEnd=function(){this.afterRawSlidesReady(),this.stages.resolve("RawSlides"),this.randomize(this.realSlides),this.stages.resolve("RawSlidesOrdered"),this.initStaticSlides()},SmartSliderAbstract.prototype.initStaticSlides=function(){for(var t=this.sliderElement.find(".n2-ss-static-slide"),e=0;e<t.length;e++)this.staticSlides.push(new N2Classes.FrontendSliderStaticSlide(this,t.eq(e)))},SmartSliderAbstract.prototype.createSlide=function(t,e){return new N2Classes.FrontendSliderSlide(this,t,e)},SmartSliderAbstract.prototype.afterRawSlidesReady=function(){},SmartSliderAbstract.prototype.trigger=function(){this.sliderElement.triggerHandler.apply(this.sliderElement,arguments)},SmartSliderAbstract.prototype.publicTrigger=function(){this.trigger.apply(this,arguments),N2Classes.SmartSliderApi.dispatch(arguments[0],this)},SmartSliderAbstract.prototype.getVisibleSlides=function(t){return t===undefined&&(t=this.currentSlide),[t]},SmartSliderAbstract.prototype.getActiveSlides=function(t){return this.getVisibleSlides(t)},SmartSliderAbstract.prototype.findSlideBackground=function(t){return t.$element.find(".n2-ss-slide-background")},SmartSliderAbstract.prototype.getRealIndex=function(t){return t},SmartSliderAbstract.prototype.finalizeStarterSlide=function(){var t,e=this.originalRealStarterSlide;this.isAdmin?this.finalizeStarterSlideComplete(e):this.parameters.randomize.randomizeFirst?(e=this.visibleRealSlides[Math.floor(Math.random()*this.visibleRealSlides.length)],this.finalizeStarterSlideComplete(e)):window["ss"+this.id]!==undefined?"object"==typeof window["ss"+this.id]?window["ss"+this.id].done(this.overrideStarterSlideIndex.bind(this)):this.overrideStarterSlideIndex(window["ss"+this.id]):!this.isAdmin&&this.parameters.maintainSession&&window.localStorage!==undefined?(t=window.localStorage.getItem("ss-"+this.id),this.overrideStarterSlideIndex(t),this.sliderElement.on("mainAnimationComplete",function(t,e,i,s){window.localStorage.setItem("ss-"+this.id,s)}.bind(this))):this.finalizeStarterSlideComplete(e)},SmartSliderAbstract.prototype.overrideStarterSlideIndex=function(t){var e;null!==t&&this.realSlides[t]&&(e=this.realSlides[t]),this.finalizeStarterSlideComplete(e)},SmartSliderAbstract.prototype.finalizeStarterSlideComplete=function(t){t!==undefined&&t.isVisible||(t=this.visibleRealSlides[0]),t!==undefined?this.finalizeStarterSlideComplete2(t):(this.hide(),this.sliderElement.one({SliderResize:function(){this.finalizeStarterSlideComplete(t)}.bind(this)}))},SmartSliderAbstract.prototype.finalizeStarterSlideComplete2=function(t){t!==this.originalRealStarterSlide&&this.originalRealStarterSlide!==undefined&&this.originalRealStarterSlide.unsetActive(),this.responsive.onStarterSlide(t),this.stages.resolve("StarterSlide")},SmartSliderAbstract.prototype.randomize=function(t){this.parameters.randomize.randomize&&this.shuffleSlides(t)},SmartSliderAbstract.prototype.shuffleSlides=function(t){t.sort(function(){return.5-Math.random()});for(var e=t[0].$element.parent(),i=0;i<t.length;i++)t[i].$element.appendTo(e),t[i].setIndex(i)},SmartSliderAbstract.prototype.addWidget=function(t,e){this.widgetDeferreds.push(e)},SmartSliderAbstract.prototype.started=function(t){this.stages.done("UIReady",t.bind(this))},SmartSliderAbstract.prototype.ready=function(t){this.stages.done("Show",t.bind(this))},SmartSliderAbstract.prototype.startVisibilityCheck=function(){!this.isAdmin&&this.parameters.playWhenVisible?(this.checkIfVisibleCallback=this.checkIfVisible.bind(this),$(window).on("resize.n2-ss-visible"+this.id,this.checkIfVisibleCallback),this.sliderElement.on("mouseover.n2-ss-visible",this._markVisible.bind(this)),window.addEventListener("scroll",this.checkIfVisibleCallback,{capture:!0,passive:!0}),this.checkIfVisible()):this.stages.resolve("Visible")},SmartSliderAbstract.prototype.checkIfVisible=function(){var t=this.parameters.playWhenVisibleAt,e=$(window).scrollTop(),i=$(window).height(),s=$(document).height(),n=this.sliderElement[0].getBoundingClientRect(),r=i*t/2,o=e+r,a=e+i-r;e<r&&(o*=e/r),s-r<e+i&&(a+=e+i-s+r);var l=e+n.top,h=e+n.bottom;(this.isAdmin||l<=a&&o<=l||o<=h&&h<=a||l<=o&&a<=h)&&this._markVisible()},SmartSliderAbstract.prototype._markVisible=function(){this.sliderElement.off(".n2-ss-visible"),$(window).off(".n2-ss-visible"+this.id),window.removeEventListener("scroll",this.checkIfVisibleCallback,{capture:!0,passive:!0}),this.stages.resolve("Visible")},SmartSliderAbstract.prototype.visible=function(t){this.stages.done("Visible",t.bind(this))},SmartSliderAbstract.prototype.isPlaying=function(){return"ended"!==this.mainAnimation.getState()},SmartSliderAbstract.prototype.focus=function(t){var e=!1;if(this.responsive.parameters.focusUser&&!t&&(e=!0),e){var i=$(window).scrollTop(),s=this.responsive.focusOffsetTop,n=this.responsive.focusOffsetBottom,r=$(window).height(),o=this.sliderElement[0].getBoundingClientRect(),a=o.top-s,l=r-o.bottom-n,h=this.responsive.parameters.focusEdge,d="";"top-force"===h?d="top":"bottom-force"===h?d="bottom":a<=0&&l<=0||0<a&&0<l||(a<0?d="top"===h||"bottom"!==h&&-a<=l?"top":"bottom":l<0&&(d="top"!==h&&("bottom"===h||-l<=a)?"bottom":"top"));var c=i;if("top"===d?c=i-s+o.top:"bottom"===d&&(c=i+n+o.bottom-r),c!==i)return this._scrollTo(c,Math.abs(i-c))}return!0},SmartSliderAbstract.prototype._scrollTo=function(t,e){var i=$.Deferred();return window.nextendScrollFocus=!0,$("html, body").animate({scrollTop:t},e,function(){i.resolve(),setTimeout(function(){window.nextendScrollFocus=!1},100)}.bind(this)),i},SmartSliderAbstract.prototype.isChangeCarousel=function(t){return"next"===t?this.currentSlide.index+1>=this.slides.length:"previous"===t&&this.currentSlide.index-1<0},SmartSliderAbstract.prototype.initNotCarousel=function(){this.realSlides[0].setPrevious(!1),this.realSlides[this.realSlides.length-1].setNext(!1)},SmartSliderAbstract.prototype.initHideArrow=function(){var i=function(t){this.widgets.setState("nonCarouselFirst",!this.getUIPreviousSlide(t)),this.widgets.setState("nonCarouselLast",!this.getUINextSlide(t))}.bind(this);this.stages.done("StarterSlide",function(){i(this.currentSlide),this.sliderElement.on("SliderResize",function(){i(this.currentSlide)}.bind(this))}.bind(this)),this.sliderElement.on("SlideWillChange",function(t,e){i(e)})},SmartSliderAbstract.prototype.next=function(t,e){var i=this.currentSlide.getNext();return!(!i||!this.getUINextSlide(this.currentSlide))&&this.changeTo(i.index,!1,t,e)},SmartSliderAbstract.prototype.previous=function(t,e){var i=this.getUIPreviousSlide(this.currentSlide);return!!i&&this.changeTo(i.index,!0,t,e)},SmartSliderAbstract.prototype.isChangePossible=function(t){var e,i,s=!1;return"next"===t?(e=this.currentSlide.getNext())&&(s=e.index):"previous"!==t||(i=this.currentSlide.getPrevious())&&(s=i.index),!1!==s&&s!==this.currentSlide.index},SmartSliderAbstract.prototype.nextCarousel=function(t,e){return!!this.next(t,e)||this.changeTo(this.getFirstSlide().index,!1,t,e)},SmartSliderAbstract.prototype.getFirstSlide=function(){return this.slides[0].isVisible?this.slides[0]:this.slides[0].getNext()},SmartSliderAbstract.prototype.getSlideCount=function(){for(var t=0,e=0;e<this.slides.length;e++)this.slides[e].isVisible&&t++;return t},SmartSliderAbstract.prototype.directionalChangeToReal=function(t){this.directionalChangeTo(t)},SmartSliderAbstract.prototype.directionalChangeTo=function(t){t>this.currentSlide.index?this.changeTo(t,!1):this.changeTo(t,!0)},SmartSliderAbstract.prototype.changeTo=function(i,s,n,r){if((i=parseInt(i))===this.currentSlide.index)return!1;if(!this.slides[i].isVisible)return console.error("this slide is not visible on this device"),!1;this.trigger("SlideWillChange",[this.slides[i]]);var o=$.now();return $.when($.when.apply($,this.backgrounds.preLoadSlides(this.getVisibleSlides(this.slides[i]))),this.focus(n)).done(function(){var t,e;i!==this.currentSlide.index&&this.mainAnimationLastChangeTime<=o&&(this.mainAnimationLastChangeTime=o,"ended"===(t=this.mainAnimation.getState())?(n===undefined&&(n=!1),e=this.mainAnimation,r!==undefined&&(e=r),this._changeTo(i,s,n,r),e.changeTo(this.currentSlide,this.slides[i],s,n),this._changeCurrentSlide(i)):"initAnimation"!==t&&"playing"!==t||(this.sliderElement.off(".fastChange").one("mainAnimationComplete.fastChange",function(){this.changeTo.call(this,i,s,n,r)}.bind(this)),this.mainAnimation.timeScale(2*this.mainAnimation.timeScale())))}.bind(this)),!0},SmartSliderAbstract.prototype.setCurrentRealSlide=function(t){this.currentRealSlide=this.currentSlide=t},SmartSliderAbstract.prototype._changeCurrentSlide=function(t){this.setCurrentRealSlide(this.slides[t]),this.sliderElement.triggerHandler("sliderChangeCurrentSlide")},SmartSliderAbstract.prototype._changeTo=function(t,e,i,s){},SmartSliderAbstract.prototype.revertTo=function(t,e){this.slides[e].unsetActive(),this.slides[t].setActive(),this._changeCurrentSlide(t),this.trigger("SlideWillChange",[this.slides[t]])},SmartSliderAbstract.prototype.forceSetActiveSlide=function(t){t.setActive()},SmartSliderAbstract.prototype.forceUnsetActiveSlide=function(t){t.unsetActive()},SmartSliderAbstract.prototype.updateInsideSlides=function(t){for(var e=0;e<this.slides.length;e++)this.slides[e].setInside(0<=t.indexOf(this.slides[e]))},SmartSliderAbstract.prototype.findSlideByElement=function(t){var e;for(t=$(t),e=0;e<this.realSlides.length;e++)if(1===this.realSlides[e].$element.has(t).length)return this.realSlides[e];for(e=0;e<this.staticSlides.length;e++)if(1===this.staticSlides[e].$element.has(t).length)return this.staticSlides[e];return!1},SmartSliderAbstract.prototype.findSlideIndexByElement=function(t){var e=this.findSlideByElement(t);return e||-1},SmartSliderAbstract.prototype.initMainAnimation=function(){this.mainAnimation=!1},SmartSliderAbstract.prototype.initResponsiveMode=function(){},SmartSliderAbstract.prototype.hasTouch=function(){return"0"!=this.parameters.controls.touch},SmartSliderAbstract.prototype.initControls=function(){if(!this.parameters.admin){if(this.hasTouch())switch(this.parameters.controls.touch){case"vertical":new N2Classes.SmartSliderControlTouchVertical(this);break;case"horizontal":new N2Classes.SmartSliderControlTouchHorizontal(this)}this.parameters.controls.keyboard&&(this.controls.touch!==undefined?new N2Classes.SmartSliderControlKeyboard(this,this.controls.touch.axis):new N2Classes.SmartSliderControlKeyboard(this,"horizontal")),this.parameters.controls.mousewheel&&new N2Classes.SmartSliderControlMouseWheel(this),this.controlAutoplay=new N2Classes.SmartSliderControlAutoplay(this,this.parameters.autoplay),this.controlFullscreen=new N2Classes.SmartSliderControlFullscreen(this),this.parameters.alias.id&&new N2Classes.SmartSliderControlAlias(this,this.parameters.alias)}},SmartSliderAbstract.prototype.getSlideIndex=function(t){return t},SmartSliderAbstract.prototype.slideToID=function(t,e){for(var i=0;i<this.realSlides.length;i++)if(this.realSlides[i].id===t)return this.slide(this.getSlideIndex(i),e);var s=$('[data-id="'+t+'"]').closest(".n2-ss-slider");return!(!s.length||this.id!==s.data("ss").id)||(s.length?($("html, body").animate({scrollTop:s.offset().top},400),s.data("ss").slideToID(t,e)):void 0)},SmartSliderAbstract.prototype.slide=function(t,e){return 0<=t&&t<this.slides.length&&(e===undefined?this.parameters.carousel&&this.currentSlide.index===this.slides.length-1&&0===t?this.next():this.currentSlide.index>t?this.changeTo(t,!0):this.changeTo(t):this.changeTo(t,!e))},SmartSliderAbstract.prototype.hide=function(){this.isVisible&&(this.responsive.alignElement.addClass("n2-ss-slider-has-no-slide"),this.load.$placeholder.addClass("n2-ss-slider-has-no-slide"),this.isVisible=!1)},SmartSliderAbstract.prototype.show=function(){this.isVisible||(this.responsive.alignElement.removeClass("n2-ss-slider-has-no-slide"),this.load.$placeholder.removeClass("n2-ss-slider-has-no-slide"),$(window).scroll(),this.isVisible=!0)},SmartSliderAbstract.prototype.startAutoplay=function(){return this.controlAutoplay!==undefined&&(this.controlAutoplay.setState("pausedSecondary",0),!0)},SmartSliderAbstract.prototype.pauseAutoplay=function(){return this.controlAutoplay!==undefined&&(this.controlAutoplay.setState("pausedSecondary",1),!0)},SmartSliderAbstract.prototype.getAnimationAxis=function(){return"horizontal"},SmartSliderAbstract.prototype.getDirectionPrevious=function(){return n2const.isRTL()&&"horizontal"===this.getAnimationAxis()?"next":"previous"},SmartSliderAbstract.prototype.getDirectionNext=function(){return n2const.isRTL()&&"horizontal"===this.getAnimationAxis()?"previous":"next"},SmartSliderAbstract.prototype.previousWithDirection=function(){return this[this.getDirectionPrevious()]()},SmartSliderAbstract.prototype.nextWithDirection=function(){return this[this.getDirectionNext()]()},SmartSliderAbstract.prototype.getUIPreviousSlide=function(t){return t.getPrevious()},SmartSliderAbstract.prototype.getUINextSlide=function(t){return t.getNext()},SmartSliderAbstract}),N2D("Stages",function(r,e){function t(){this.stages={}}function i(t){this.n=t,this.d=r.Deferred()}return t.prototype.get=function(t){return this.stages[t]===e&&(this.stages[t]=new i(t)),this.stages[t]},t.prototype.resolve=function(t){this.get(t).resolve()},t.prototype.done=function(t,e){var i;if("string"==typeof t)i=this.get(t);else{for(var s=[],n=0;n<t.length;n++)s.push(this.get(t[n]).getDeferred());i=r.when.apply(r,s)}i.done(e)},t.prototype.resolved=function(t){return this.get(t).resolved()},i.prototype.getDeferred=function(){return this.d},i.prototype.resolve=function(){this.resolved()||(this.d.resolve(),this.d=!0)},i.prototype.done=function(t){!0===this.d?t():this.d.done(t)},i.prototype.resolved=function(){return!0===this.d||"resolved"===this.d.state()},t}),N2D("SmartSliderWidget",function(t,e){"use strict";function i(t){this.slider=t,this.slider.started(this.register.bind(this))}return i.prototype.register=function(){this.slider.widgets.has(this.key)||(this.slider.widgets.register(this.key,this),this.onStart())},i.prototype.onStart=function(){},i.prototype.isVisible=function(){return this.$widget.is(":visible")},i.prototype.calculateDimensions=function(t){this.isVisible()?(t[this.key+"width"]=this.$widget.outerWidth(),t[this.key+"height"]=this.$widget.outerHeight()):(t[this.key+"width"]=0,t[this.key+"height"]=0)},i.prototype.filterSliderVerticalCSS=function(t){},i}),N2D("SmartSliderWidgets",function($,undefined){function SmartSliderWidgets(t){this.slider=t,this.sliderElement=t.sliderElement,this.controls={previous:undefined,next:undefined,bullet:undefined,autoplay:undefined,indicator:undefined,bar:undefined,thumbnail:undefined,shadow:undefined,fullscreen:undefined,html:undefined},this.excludedSlides={},this.states={hover:!1,nonCarouselFirst:!1,nonCarouselLast:!1,currentSlideIndex:-1,singleSlide:!1}}return SmartSliderWidgets.prototype.register=function(t,e){this.controls[t]=e},SmartSliderWidgets.prototype.has=function(t){return this.controls[t]!==undefined},SmartSliderWidgets.prototype.setState=function(t,e){if(this.states[t]!=e){this.states[t]=e;var i=t.split(".");switch(i[0]){case"hide":this.onStateChangeSingle(i[1]);break;case"nonCarouselFirst":this.onStateChangeSingle(this.slider.getDirectionPrevious());break;case"nonCarouselLast":this.onStateChangeSingle(this.slider.getDirectionNext());break;default:this.onStateChangeAll()}}},SmartSliderWidgets.prototype.onStateChangeAll=function(){for(var t in this.controls)this.onStateChangeSingle(t)},SmartSliderWidgets.prototype.onStateChangeSingle=function(t){var e,i;this.controls[t]&&(e=!0,this.controls[t].$widget.hasClass("n2-ss-widget-display-hover")&&(e=this.states.hover),e&&(t===this.slider.getDirectionPrevious()&&this.states.nonCarouselFirst||t===this.slider.getDirectionNext()&&this.states.nonCarouselLast)&&(e=!1),e&&(i=t+"-"+(this.states.currentSlideIndex+1),this.excludedSlides[i]&&(e=!1)),e&&this.states["hide."+t]!==undefined&&this.states["hide."+t]&&(e=!1),e&&this.states.singleSlide&&("previous"!==t&&"next"!==t&&"bullet"!==t&&"autoplay"!==t&&"indicator"!==t||(e=!1)),this.controls[t].$widget.toggleClass("n2-ss-widget-hidden",!e))},SmartSliderWidgets.prototype.onReady=function(){this.slider.sliderElement.on("visibleSlidesChanged",function(){this.setState("singleSlide",this.slider.visibleSlides.length<=1)}.bind(this)),this.setState("singleSlide",this.slider.visibleSlides.length<=1),this.$vertical=this.sliderElement.find('[data-position="above"],[data-position="below"]').not(".nextend-shadow");var t,e=!1;for(var i in this.controls)if(this.controls[i]!==undefined){var s=this.controls[i].$widget.attr("data-exclude-slides");if(s!==undefined){for(var n=s.split(","),r=n.length-1;0<=r;r--){var o=n[r].split("-");if(2===o.length){var a=parseInt(o[0]),l=parseInt(o[1]);if(a<=l)for(var h=a;h<=l;h++)n.push(h)}else n[r]=parseInt(n[r])}if(0<n.length){for(r=0;r<n.length;r++)this.excludedSlides[i+"-"+n[r]]=!0;e=!0}}}e&&((t=function(t,e){this.setState("currentSlideIndex",e.index)}.bind(this))(null,this.slider.currentRealSlide),this.slider.sliderElement.on("SlideWillChange",t)),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.responsive.addFilter("SliderVerticalCSS",this.filterSliderVerticalCSS.bind(this)),this.forceLayoutComposition(),this.onStateChangeAll(),this.slider.stages.resolve("WidgetsReady")},SmartSliderWidgets.prototype.calculateDimensions=function(){for(var t in this.controls)this.controls[t]!==undefined?this.controls[t].calculateDimensions(this.slider.responsive.resizeContext):(this.slider.responsive.resizeContext[t+"width"]=0,this.slider.responsive.resizeContext[t+"height"]=0)},SmartSliderWidgets.prototype.getDimensions=function(){this.calculateDimensions();var t=$.extend(!0,{},this.slider.responsive.resizeContext);return t.width=t.sliderWidth,t.height=t.sliderHeight,t.outerwidth=this.sliderElement.parent().width(),t.outerheight=this.sliderElement.parent().height(),t.canvaswidth=t.slideWidth,t.canvasheight=t.slideHeight,t.paneWidth!==undefined&&(t.panewidth=t.paneWidth),t.margintop=t.marginright=t.marginbottom=t.marginleft=0,t},SmartSliderWidgets.prototype.dimensionsToVariables=function(t){var e="";for(var i in t){var s=t[i];"number"==typeof s&&(e+="var "+i+" = "+s+";")}return e},SmartSliderWidgets.prototype.forceLayoutComposition=function(){for(var t=this.filterSliderVerticalCSS([]),e=0;e<t.length;e++)t[e].flush()},SmartSliderWidgets.prototype.filterSliderVerticalCSS=function(cssData){var temp,dimensions=this.getDimensions();for(var k in this.dimensions=dimensions,this.controls)this.controls[k]!==undefined&&this.controls[k].filterSliderVerticalCSS(cssData);for(var k in eval(this.dimensionsToVariables(dimensions)),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)),temp={};temp[k]=value+"px",cssData.push(new N2Classes.CSSData(el,temp))}catch(t){console.log(el," position variable: "+t.message+": ",el.data("ss"+k))}}return cssData},SmartSliderWidgets}),N2D("SmartSliderMainAnimationAbstract",function(i,t){function s(t,e){this.state="ended",this.isTouch=!1,this.isReverseAllowed=!0,this.isReverseEnabled=!1,this.reverseSlideIndex=null,this.isNoAnimation=!1,this.slider=t,this.parameters=i.extend({duration:1500,ease:"easeInOutQuint"},e),this.parameters.duration/=1e3,this.sliderElement=t.sliderElement,this.timeline=new NextendTimeline({paused:!0}),this.sliderElement.on("mainAnimationStart",function(t,e,i,s){this._revertCurrentSlideIndex=i,this._revertNextSlideIndex=s}.bind(this)),this.slider.stages.done("ResponsiveStart",this.init.bind(this))}return s.prototype.init=function(){this.responsive=this.slider.responsive},s.prototype.enableReverseMode=function(){this.isReverseEnabled=!0,this.reverseTimeline=new NextendTimeline({paused:!0}),this.slider.trigger("reverseModeEnabled",this.reverseSlideIndex)},s.prototype.disableReverseMode=function(){this.isReverseEnabled=!1},s.prototype.setTouch=function(t){this.isTouch=t},s.prototype.setTouchProgress=function(t){"ended"!==this.state&&(this.isReverseEnabled?0===t?(this.reverseTimeline.progress(0),this.timeline.progress(t,!1)):0<=t&&t<=1?(this.reverseTimeline.progress(0),this.timeline.progress(t)):t<0&&-1<=t&&(this.timeline.progress(0),this.reverseTimeline.progress(Math.abs(t))):t<=0?this.timeline.progress(Math.max(t,1e-6),!1):0<=t&&t<=1&&this.timeline.progress(t))},s.prototype.setTouchEnd=function(t,e,i){"ended"!=this.state&&(this.isReverseEnabled?this._setTouchEndWithReverse(t,e,i):this._setTouchEnd(t,e,i))},s.prototype._setTouchEnd=function(t,e,i){t&&0<e?(this.fixTouchDuration(this.timeline,e,i),this.timeline.play()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-e,i),this.timeline.reverse(),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},s.prototype._setTouchEndWithReverse=function(t,e,i){t?e<0&&0<this.reverseTimeline.totalDuration()?(this.fixTouchDuration(this.reverseTimeline,e,i),this.reverseTimeline.play(),this.willRevertTo(this.reverseSlideIndex,this._revertNextSlideIndex)):(this.willCleanSlideIndex(this.reverseSlideIndex),this.fixTouchDuration(this.timeline,e,i),this.timeline.play()):(e<0?(this.revertCB(this.reverseTimeline),this.fixTouchDuration(this.reverseTimeline,1-e,i),this.reverseTimeline.reverse()):(this.revertCB(this.timeline),this.fixTouchDuration(this.timeline,1-e,i),this.timeline.reverse()),this.willCleanSlideIndex(this.reverseSlideIndex),this.willRevertTo(this._revertCurrentSlideIndex,this._revertNextSlideIndex))},s.prototype.fixTouchDuration=function(t,e,i){var s=t.totalDuration(),n=Math.max(s/3,Math.min(s,i/Math.abs(e)/1e3));n!==s&&t.totalDuration(n)},s.prototype.getState=function(){return this.state},s.prototype.timeScale=function(){return 0<arguments.length?(this.timeline.timeScale(arguments[0]),this):this.timeline.timeScale()},s.prototype.changeTo=function(e,i,t,s){var n;this._initAnimation(e,i,t),this.state="initAnimation",this.timeline.paused(!0),this.timeline.eventCallback("onStart",this.onChangeToStart,[e,i,s],this),this.timeline.eventCallback("onComplete",this.onChangeToComplete,[e,i,s],this),this.timeline.eventCallback("onReverseComplete",null),this.revertCB=function(t){t.eventCallback("onReverseComplete",this.onReverseChangeToComplete,[i,e,s],this)}.bind(this),this.slider.parameters.dynamicHeight&&(n=new NextendTimeline,this.slider.responsive.resizeStage2HeightAnimated(n,i,.6),this.timeline.add(n)),this.isTouch||this.timeline.play()},s.prototype.willRevertTo=function(t,e){this.slider.trigger("mainAnimationWillRevertTo",[t,e]),this.sliderElement.one("mainAnimationComplete",this.revertTo.bind(this,t,e))},s.prototype.revertTo=function(t,e){this.slider.revertTo(t,e),this.slider.slides[e].triggerHandler("mainAnimationStartInCancel")},s.prototype.willCleanSlideIndex=function(t){this.sliderElement.one("mainAnimationComplete",this.cleanSlideIndex.bind(this,t))},s.prototype.cleanSlideIndex=function(){},s.prototype._initAnimation=function(t,e,i){this.slider.updateInsideSlides([t,e])},s.prototype.onChangeToStart=function(t,e,i){this.state="playing";var s=[this,t.index,e.index,i];this.slider.trigger("mainAnimationStart",s),t.triggerHandler("mainAnimationStartOut",s),e.triggerHandler("mainAnimationStartIn",s)},s.prototype.onChangeToComplete=function(t,e,i){var s=[this,t.index,e.index,i];this.clearTimelines(),this.disableReverseMode(),t.triggerHandler("mainAnimationCompleteOut",s),e.triggerHandler("mainAnimationCompleteIn",s),this.state="ended",this.slider.updateInsideSlides([e]),i||e.focus(),this.slider.trigger("mainAnimationComplete",s)},s.prototype.onReverseChangeToComplete=function(t,e,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}),N2D("SmartSliderControlAlias",function(s,i){"use strict";function t(t,e){this.slider=t,this.sliderSelector="#"+t.elementID,this.slideCount=t.slides.length,this.$slider=s(this.sliderSelector),this.$sliderAlign=s(this.sliderSelector+"-align"),this.alias=this.$slider.data("alias"),this.id=e.id,this.smoothScroll=e.smoothScroll,this.slideSwitch=e.slideSwitch,this.scrollSpeed=e.scrollSpeed,this.alias&&(this.createElement(this.alias),N2R("windowLoad",function(e){var i="#"+this.alias;e("a[href='"+i+"']").on("click",function(t){this.smoothScrollTo(e(i),t)}.bind(this))}.bind(this))),this.slideSwitch&&(this.switchOnLoad(),this.switchOnClick())}return t.prototype.switchOnLoad=function(){for(var t=1;t<this.slideCount+1;t++)this.createElement(this.alias+"-"+t);var e=window.location.href,i=e.split("#")[1],s=this.getParameterNumber(e,i);null===s&&(s=this.getAnchorNumber(i)),null!==s&&(s--,window["ss"+this.slider.id]=s)},t.prototype.createElement=function(t){s("<div></div>").attr("id",t).css({height:0,lineHeight:0,minHeight:0,margin:0,padding:0}).insertBefore(this.$sliderAlign)},t.prototype.getParameterNumber=function(t,e){if(e===i||-1===e.indexOf(this.alias+"-")){e!==i&&(t=t.replace("#"+e,""));var s={};if(t.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,e,i){s[e]=i}),s[this.alias]!==i)return parseInt(s[this.alias])}return null},t.prototype.getAnchorNumber=function(t){if(t!==i&&-1<t.indexOf(this.alias+"-")){var e=t.split("-");return parseInt(e[e.length-1])}return null},t.prototype.switchOnClick=function(){var e="";N2R("windowLoad",function(){for(var t=1;t<this.slideCount+1;t++)e="#"+this.alias+"-"+t,s('a[href="'+e+'"]').on("click",function(i,t){N2R(this.sliderSelector,function(t,e){e.slide(i-1)}),this.smoothScrollTo(s(e),t)}.bind(this,t))}.bind(this))},t.prototype.smoothScrollTo=function(t,e){this.smoothScroll&&(e.preventDefault(),s("html, body").animate({scrollTop:t.offset().top},this.scrollSpeed))},t}),N2D("SmartSliderControlAutoplay",function(i,s){"use strict";function t(t,e){this.slider=t,this.state={enabled:1,paused:1,pausedSecondary:0,mainAnimationPlaying:0,wait:0},this.wait=new N2Classes.SmartSliderControlAutoplayWait(this),this._currentCount=1,this.autoplayToSlide=0,this.autoplayToSlideIndex=-1,this.parameters=i.extend({enabled:0,start:1,duration:8e3,autoplayLoop:0,allowReStart:0,pause:{mouse:"enter",click:!0,mediaStarted:!0},resume:{click:0,mouse:0,mediaEnded:!0},interval:1,intervalModifier:"loop",intervalSlide:"current"},e),this.clickHandled=!1,(t.controls.autoplay=this).parameters.enabled?(this.parameters.duration/=1e3,this.slider.visible(this.onReady.bind(this))):this.disable()}return t.prototype.preventClickHandle=function(){this.clickHandled=!0,setTimeout(function(){this.clickHandled=!1}.bind(this),300)},t.prototype.onReady=function(){this.timeline=NextendTween.to({_progress:0},this.getSlideDuration(this.slider.currentSlide.index),{_progress:1,paused:!0,onComplete:this.next.bind(this)}),this.slider.sliderElement.on({"BeforeCurrentSlideChange.autoplay":function(){this.wait.resolveWeak(),this.setState("mainAnimationPlaying",1)}.bind(this),"CurrentSlideChanged.autoplay":function(t,e){this.timeline.duration(this.getSlideDuration(e.index)),this.timeline.pause(0,!1),this.setState("mainAnimationPlaying",0)}.bind(this),"mainAnimationStart.autoplay":function(){this._currentCount++,this.wait.resolveWeak(),this.setState("mainAnimationPlaying",1)}.bind(this),"mainAnimationComplete.autoplay":function(t,e,i,s){this.timeline.duration(this.getSlideDuration(s)),this.timeline.pause(0,!1),this.setState("mainAnimationPlaying",0)}.bind(this),"autoplayPause.autoplay":function(){this.setState("paused",1)}.bind(this),"autoplayResume.autoplay":function(t,e){(this.state.paused||0===parseInt(this.parameters.start)&&0===parseInt(this.state.paused))&&(this._currentCount=1),this.setState("pausedSecondary",0),this.setState("paused",0),e!==s&&this.timeline.progress(e)}.bind(this)}),this.initClick(this.parameters.pause.click,this.parameters.resume.click),this.initHover(this.parameters.pause.mouse,this.parameters.resume.mouse),this.initMedia(this.parameters.pause.mediaStarted,this.parameters.resume.mediaEnded),this.slider.stages.resolve("AutoplayReady"),this.slider.trigger("autoplay",0),this.parameters.start||this.setState("pausedSecondary",1),this.setState("paused",0)},t.prototype.setState=function(t,e){this.state[t]!==e&&(this.state[t]=e,this.timeline!==s&&(!this.state.enabled||this.state.paused||this.state.pausedSecondary||this.state.wait||this.state.mainAnimationPlaying?(this.timeline.paused()||this.timeline.pause(),this.state.mainAnimationPlaying||this.isPaused!==s&&this.isPaused||(this.isPaused=!0,this.slider.trigger("autoplayPaused"))):(this.timeline.paused()&&this.timeline.play(),this.isPaused!==s&&!this.isPaused||(this.isPaused=!1,this.slider.trigger("autoplayStarted")))))},t.prototype.initClick=function(e,i){(e||i)&&this.slider.sliderElement.on("universalclick.autoplay",function(t){this.clickHandled||(this.state.pausedSecondary?i&&this.setState("pausedSecondary",0):e&&this.setState("pausedSecondary",1))}.bind(this))},t.prototype.initHover=function(e,i){var s;(e||i)&&(s=!1,this.slider.sliderElement.on({"touchend.autoplay":function(){s=!0,setTimeout(function(){s=!1},300)},"mouseenter.autoplay":function(t){this.state.pausedSecondary?"enter"===i&&this.setState("pausedSecondary",0):s||"enter"!==e||this.setState("pausedSecondary",1)}.bind(this),"mouseleave.autoplay":function(t){this.state.pausedSecondary?"leave"===i&&this.setState("pausedSecondary",0):"leave"===e&&this.setState("pausedSecondary",1)}.bind(this)}))},t.prototype.initMedia=function(t,e){var i=this.slider.sliderElement;t?i.on({"mediaStarted.autoplay":function(t,e){this.wait.add(e)}.bind(this),"mediaEnded.autoplay":function(t,e){this.wait.resolve(e)}.bind(this)}):e&&i.on({"mediaEnded.autoplay":function(){this.setState("pausedSecondary",0)}.bind(this)})},t.prototype.enableProgress=function(){this.timeline&&this.timeline.eventCallback("onUpdate",function(){this.slider.trigger("autoplay",this.timeline.progress())}.bind(this))},t.prototype.next=function(){if(this.timeline.pause(),!this.parameters.autoplayLoop){switch(this.parameters.intervalModifier){case"slide":this.slideSwitchingSlideCount();break;case"slideindex":this.slideSwitchingIndex();break;default:this.slideSwitchingLoop()}0<this.autoplayToSlide&&this._currentCount>=this.autoplayToSlide&&this.limitAutoplay(),0<=this.autoplayToSlideIndex&&this.slider.slides.length===this.slider.visibleSlides.length&&(this.autoplayToSlideIndex===this.slider.currentRealSlide.index+2||1===this.autoplayToSlideIndex&&this.slider.currentRealSlide.index+this.autoplayToSlideIndex===this.slider.slides.length)&&this.limitAutoplay()}this.slider.nextCarousel(!0)},t.prototype.slideSwitchingLoop=function(){this.autoplayToSlide=this.parameters.interval*this.slider.visibleSlides.length-1,"next"===this.parameters.intervalSlide&&this.autoplayToSlide++},t.prototype.slideSwitchingSlideCount=function(){this.autoplayToSlide=this.parameters.interval},t.prototype.slideSwitchingIndex=function(){var t=Math.max(1,this.parameters.interval);t>this.slider.slides.length&&(t=1),this.autoplayToSlideIndex=t},t.prototype.limitAutoplay=function(){this.parameters.allowReStart?(this._currentCount=0,this.setState("paused",1)):this.disable()},t.prototype.disable=function(){this.setState("enabled",0),this.slider.sliderElement.off(".autoplay"),this.slider.stages.resolve("AutoplayDestroyed")},t.prototype.getSlideDuration=function(t){var e=this.slider.realSlides[this.slider.getRealIndex(t)],i=e.minimumSlideDuration;return 0===parseInt(e.minimumSlideDuration)&&(i=this.parameters.duration),i},t}),N2D("SmartSliderControlFullscreen",function(n,t){"use strict";function e(t,e,i){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.isFullScreen=!1,this.fullParent=this.slider.sliderElement.closest(".n2-ss-align"),this.browserSpecific={};var s=this.slider.sliderElement[0];s.requestFullscreen?(this.browserSpecific.requestFullscreen="requestFullscreen",this.browserSpecific.event="fullscreenchange"):s.msRequestFullscreen?(this.browserSpecific.requestFullscreen="msRequestFullscreen",this.browserSpecific.event="MSFullscreenChange"):s.mozRequestFullScreen?(this.browserSpecific.requestFullscreen="mozRequestFullScreen",this.browserSpecific.event="mozfullscreenchange"):s.webkitRequestFullscreen?(this.browserSpecific.requestFullscreen="webkitRequestFullscreen",this.browserSpecific.event="webkitfullscreenchange"):(this.browserSpecific.requestFullscreen="nextendRequestFullscreen",this.browserSpecific.event="nextendfullscreenchange",this.fullParent[0][this.browserSpecific.requestFullscreen]=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),n(window).trigger("resize")}.bind(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]=function(){this.fullParent.css({position:"",left:"",top:"",width:"",height:"",backgroundColor:"",zIndex:""}),document.fullscreenElement=null,this.triggerEvent(document,this.browserSpecific.event)}.bind(this)),document.addEventListener(this.browserSpecific.event,this.fullScreenChange.bind(this))}return e.prototype.switchState=function(){this.isFullScreen=!this.isFullScreen,this.isFullScreen?this._fullScreen():this._normalScreen()},e.prototype.requestFullscreen=function(){return!this.isFullScreen&&(this.isFullScreen=!0,this._fullScreen(),!0)},e.prototype.exitFullscreen=function(){return!!this.isFullScreen&&(this.isFullScreen=!1,this._normalScreen(),!0)},e.prototype.triggerEvent=function(t,e){var i;document.createEvent?(i=document.createEvent("HTMLEvents")).initEvent(e,!0,!0):document.createEventObject&&((i=document.createEventObject()).eventType=e),i.eventName=e,t.dispatchEvent?t.dispatchEvent(i):t.fireEvent&&htmlEvents["on"+e]?t.fireEvent("on"+i.eventType,i):t[e]?t[e]():t["on"+e]&&t["on"+e]()},e.prototype._fullScreen=function(){this.forceFullpage&&(this.responsive.isFullScreen=!0,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(n2const.rtl.marginLeft,0)),this.fullParent.css({width:"100%",height:"100%",backgroundColor:n("body").css("background-color")}).addClass("n2-ss-in-fullscreen"),this.fullParent.get(0)[this.browserSpecific.requestFullscreen]()},e.prototype._normalScreen=function(){document[this.browserSpecific.exitFullscreen]?document[this.browserSpecific.exitFullscreen]():this.fullParent[0][this.browserSpecific.exitFullscreen]&&this.fullParent[0][this.browserSpecific.exitFullscreen]()},e.prototype.fullScreenChange=function(){this.isDocumentInFullScreenMode()?(this.slider.trigger("n2FullScreen"),n("html").addClass("n2-in-fullscreen"),this.isFullScreen=!0,n(window).trigger("resize")):this.forceFullpage&&(this.responsive.isFullScreen=!1,this.responsive.parameters.type=this._type,this.responsive.parameters.upscale=this._upscale,this.responsive.parameters.forceFull=this._forceFull,this.responsive.containerElement.css(n2const.rtl.marginLeft,this._marginLeft),this.fullParent.css({width:"",height:"",backgroundColor:""}).removeClass("n2-ss-in-fullscreen"),n("html").removeClass("n2-in-fullscreen"),n(window).trigger("resize"),this.isFullScreen=!1,this.slider.trigger("n2ExitFullScreen"))},e.prototype.isDocumentInFullScreenMode=function(){return document.fullscreenElement&&null!==document.fullscreenElement||document.msFullscreenElement&&null!==document.msFullscreenElement||document.mozFullScreen||document.webkitIsFullScreen},e}),N2D("SmartSliderControlKeyboard",function(s,t){"use strict";var n;function r(){this.controls=[],document.addEventListener("keydown",this.onKeyDown.bind(this)),document.addEventListener("mousemove",this.onMouseMove.bind(this),{capture:!0})}function o(t,e,i){this.slider=t,this.parameters=s.extend({},i),this.parseEvent="vertical"===e?o.prototype.parseEventVertical:o.prototype.parseEventHorizontal,(n=n||new r).addControl(this),this.slider.sliderElement.on("SliderKeyDown",this.onKeyDown.bind(this)),t.controls.keyboard=this}return r.prototype.onMouseMove=function(t){this.mouseEvent=t},r.prototype.addControl=function(t){this.controls.push(t)},r.prototype.onKeyDown=function(t){if(t.target.tagName.match(/BODY|DIV|IMG/)&&!t.target.isContentEditable){var e;if(this.mouseEvent&&(e=this.findSlider(document.elementFromPoint(this.mouseEvent.clientX,this.mouseEvent.clientY))))return void e.trigger("SliderKeyDown",t);if(document.activeElement!==document.body&&(e=this.findSlider(document.activeElement)))return void e.trigger("SliderKeyDown",t);for(var i=0;i<this.controls.length;i++)this.controls[i].onKeyDown(!1,t)}},r.prototype.findSlider=function(t){var e=s(t),i=e.hasClass("n2-ss-slider")?e:e.closest(".n2-ss-slider");return!!i.length&&i},o.prototype.isSliderOnScreen=function(){var t=this.slider.sliderElement.offset(),e=s(window).scrollTop(),i=this.slider.sliderElement.height();return t.top+.5*i>=e&&t.top-.5*i<=e+s(window).height()},o.prototype.onKeyDown=function(t,e){!e.defaultPrevented&&this.isSliderOnScreen()&&this.parseEvent.call(this,e)&&e.preventDefault()},o.prototype.parseEventHorizontal=function(t){switch(t.keyCode){case 39:return n2const.activeElementBlur(),this.slider[n2const.isRTL()?"previous":"next"](),!0;case 37:return n2const.activeElementBlur(),this.slider[n2const.isRTL()?"next":"previous"](),!0;default:return!1}},o.prototype.parseEventVertical=function(t){switch(t.keyCode){case 40:return this.slider.isChangeCarousel("next")&&this.slider.parameters.controls.blockCarouselInteraction?!1:(n2const.activeElementBlur(),this.slider.next(),!0);case 38:return this.slider.isChangeCarousel("previous")&&this.slider.parameters.controls.blockCarouselInteraction?!1:(n2const.activeElementBlur(),this.slider.previous(),!0);default:return!1}},o}),N2D("SmartSliderControlMouseWheel",function(s,t){"use strict";function e(t){this.preventScroll={local:!1,curve:!1,curveGlobal:!1,global:!1,localTimeout:!1,curveTimeout:!1,curveGlobalTimeout:!1,globalTimeout:!1},this.maxDelta=0,this.slider=t,document.addEventListener("wheel",this.onGlobalMouseWheel.bind(this),{passive:!1}),t.controls.mouseWheel=this}return e.prototype.hasScrollableParentRecursive=function(t,e){if(e===this.slider.sliderElement[0])return!1;if(e.scrollHeight>e.clientHeight){var i=s(e).css("overflow");if("hidden"!==i&&"visible"!==i)if(t){if(0<e.scrollTop)return!0}else if(e.scrollTop+e.clientHeight<e.scrollHeight)return!0}return this.hasScrollableParentRecursive(t,e.parentNode)},e.prototype.onGlobalMouseWheel=function(t){this.onCurveEvent(t),this.preventScroll.local||this.preventScroll.curve||Math.abs(t.deltaY)<this.maxDelta/2?t.preventDefault():(this.preventScroll.global&&t.preventDefault(),this.slider.sliderElement[0]!==t.target&&!s.contains(this.slider.sliderElement[0],t.target)||t.shiftKey||this.hasScrollableParentRecursive(t.deltaY<0,t.target)||this.onMouseWheel(t))},e.prototype.onMouseWheel=function(t){t.deltaY<0?this.slider.isChangeCarousel("previous")&&this.slider.parameters.controls.blockCarouselInteraction||(this.slider.previous(),t.preventDefault(),this.startCurveWatcher(t),this.local(),this.global()):this.slider.isChangeCarousel("next")&&this.slider.parameters.controls.blockCarouselInteraction||(this.slider.next(),t.preventDefault(),this.startCurveWatcher(t),this.local(),this.global())},e.prototype.startCurveWatcher=function(t){!1!==this.preventScroll.curve&&clearTimeout(this.preventScroll.curveTimeout),this.preventScroll.curveGlobal||(this.dynamicDelta=!1,this.lastDeltaY=t.deltaY,this.preventScroll.curveGlobal=!0,this.preventScroll.curveGlobalTimeout=setTimeout(s.proxy(function(){this.preventScroll.curveGlobal=!1,this.maxDelta=0},this),500)),this.preventScroll.curve=!0,this.preventScroll.curveTimeout=setTimeout(s.proxy(this.releaseCurveLock,this),5e3)},e.prototype.onCurveEvent=function(t){var e;this.preventScroll.curveGlobal&&(this.dynamicDelta||this.lastDeltaY===t.deltaY||(this.lastDeltaY=t.deltaY,this.dynamicDelta=!0),e=Math.abs(t.deltaY),this.preventScroll.curve&&this.maxDelta/2>e&&this.releaseCurveLock(),this.maxDelta=Math.max(this.maxDelta,e),this.preventScroll.curveGlobalTimeout&&clearTimeout(this.preventScroll.curveGlobalTimeout),this.preventScroll.curveGlobalTimeout=setTimeout(s.proxy(function(){this.preventScroll.curveGlobal=!1,this.maxDelta=0},this),500))},e.prototype.releaseCurveLock=function(){this.preventScroll.curve=!1,clearTimeout(this.preventScroll.curveTimeout)},e.prototype.local=function(){!1!==this.preventScroll.local&&clearTimeout(this.preventScroll.localTimeout),this.preventScroll.local=!0,this.preventScroll.localTimeout=setTimeout(function(){this.preventScroll.local=!1,this.dynamicDelta||this.releaseCurveLock()}.bind(this),1e3)},e.prototype.global=function(){!1!==this.preventScroll.global&&clearTimeout(this.preventScroll.globalTimeout),this.preventScroll.global=!0,this.preventScroll.globalTimeout=setTimeout(function(){this.preventScroll.global=!1}.bind(this),2e3)},e}),N2D("SmartSliderControlTouch",function(e,t){"use strict";function i(t){this.slider=t,this.minDistance=10,this.interactiveDrag=!0,this.preventMultipleTap=!1,this._animation=t.mainAnimation,this.swipeElement=this.slider.sliderElement.find("> .n2_ss__touch_element"),this.$window=e(window),t.controls.touch=this,t.stages.done("StarterSlide",this.onStarterSlide.bind(this)),t.sliderElement.on("visibleSlidesChanged",this.onVisibleSlidesChanged.bind(this))}return i.prototype.onStarterSlide=function(){-1<navigator.userAgent.toLowerCase().indexOf("android")&&"1"!==this.swipeElement.parent().css("opacity")?this.swipeElement.parent().one("transitionend",this.initTouch.bind(this)):this.initTouch(),this.slider.sliderElement.on("sliderChangeCurrentSlide",this.updatePanDirections.bind(this))},i.prototype.onVisibleSlidesChanged=function(){this.swipeElement.toggleClass("n2-grab",1<this.slider.visibleSlides.length)},i.prototype.initTouch=function(){this._animation.isNoAnimation&&(this.interactiveDrag=!1),this.eventBurrito=N2Classes.EventBurrito(this.swipeElement.get(0),{mouse:!0,axis:"horizontal"===this.axis?"x":"y",start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this)}),this.updatePanDirections(),this.cancelKineticScroll=function(){this.kineticScrollCancelled=!0}.bind(this)},i.prototype._start=function(t){this.currentInteraction={type:"pointerdown"===t.type?"pointer":"touchstart"===t.type?"touch":"mouse",state:e.extend({},this.state),action:"unknown",distance:[],distanceY:[],percent:0,progress:0,scrollTop:this.$window.scrollTop(),animationStartDirection:"unknown",hadDirection:!1},this.logDistance(0,0)},i.prototype._move=function(t,e,i,s){if(!s||"unknown"!==this.currentInteraction.action){this.currentInteraction.direction=this.measure(i);var n=this.get(i);if((this.currentInteraction.hadDirection||Math.abs(n)>this.minDistance||Math.abs(i.y)>this.minDistance)&&(this.logDistance(n,i.y),this.currentInteraction.percent<1&&this.setTouchProgress(n,i.y),"touch"===this.currentInteraction.type&&t.cancelable&&("switch"!==this.currentInteraction.action&&"hold"!==this.currentInteraction.action||(this.currentInteraction.hadDirection=!0))),"switch"===this.currentInteraction.action)return!0}return!1},i.prototype._end=function(t,e,i,s){var n;"switch"===this.currentInteraction.action&&(n=s?0:this.measureRealDirection(),this.interactiveDrag?(this._animation.timeline.progress()<1&&this._animation.setTouchEnd(n,this.currentInteraction.progress,i.time),this._animation.setTouch(!1)):n&&this.callAction(this.currentInteraction.animationStartDirection),this.swipeElement.removeClass("n2-grabbing")),this.onEnd(),delete this.currentInteraction,Math.abs(i.x)<10&&Math.abs(i.y)<10?this.onTap(t):nextend.preventClick()},i.prototype.onEnd=function(){var t,e,i,s,n;"scroll"===this.currentInteraction.action&&"pointer"===this.currentInteraction.type&&(t=this.currentInteraction.distanceY[0],e=this.currentInteraction.distanceY[this.currentInteraction.distanceY.length-1],i=(t.d-e.d)/(e.t-t.t)*10,s=Date.now(),n=function(){requestAnimationFrame(function(){var t,e;if(!this.kineticScrollCancelled&&i&&(t=Date.now()-s,1<(e=i*Math.exp(-t/325))||e<-1))return this.$window.scrollTop(this.$window.scrollTop()+e),void n();this.onEndKineticScroll()}.bind(this))}.bind(this),this.kineticScrollCancelled=!1,n(),document.addEventListener("pointerdown",this.cancelKineticScroll))},i.prototype.onEndKineticScroll=function(){delete this.kineticScrollCancelled,document.removeEventListener("pointerdown",this.cancelKineticScroll),e("html").css("scroll-behavior","")},i.prototype.setTouchProgress=function(t,e){this.recognizeSwitchInteraction();var i,s=this.getPercent(t);if(this.currentInteraction.percent=s,"switch"===this.currentInteraction.action){if(this.interactiveDrag){switch(this.currentInteraction.animationStartDirection){case"up":i=-1*s;break;case"down":i=s;break;case"left":i=-1*s;break;case"right":i=s}this.currentInteraction.progress=i,this._animation.setTouchProgress(i)}}else"unknown"!==this.currentInteraction.action&&"scroll"!==this.currentInteraction.action||this.startScrollInteraction(e)},i.prototype.startScrollInteraction=function(t){"vertical"!==this.axis&&!n2const.isEdge||this.slider.controlFullscreen.isFullScreen||(this.currentInteraction.action="scroll","pointer"===this.currentInteraction.type&&(e("html").css("scroll-behavior","auto"),this.$window.scrollTop(Math.max(0,this.currentInteraction.scrollTop-t))))},i.prototype.recognizeSwitchInteraction=function(){var t;"unknown"===this.currentInteraction.action&&1<this.slider.visibleSlides.length&&("ended"===this._animation.state?"unknown"!==(t=this.currentInteraction.direction)&&this.currentInteraction.state[t]&&(this.currentInteraction.animationStartDirection=t,this.interactiveDrag&&(this._animation.setTouch(this.axis),this.callAction(t,!1)),this.currentInteraction.action="switch",this.swipeElement.addClass("n2-grabbing")):"playing"===this._animation.state&&(this.currentInteraction.action="hold"))},i.prototype.logDistance=function(t,e){3<this.currentInteraction.distance.length&&(this.currentInteraction.distance.shift(),this.currentInteraction.distanceY.shift()),this.currentInteraction.distance.push({d:t,t:Date.now()}),this.currentInteraction.distanceY.push({d:e,t:Date.now()})},i.prototype.measureRealDirection=function(){var t=this.currentInteraction.distance[0],e=this.currentInteraction.distance[this.currentInteraction.distance.length-1];return 0<=e.d&&t.d>e.d||e.d<0&&t.d<e.d?0:1},i.prototype.onTap=function(t){this.preventMultipleTap||(e(t.target).trigger("n2click"),"touchend"===t.type&&n2const.isFirefox&&t.target.click(),this.preventMultipleTap=!0,setTimeout(function(){this.preventMultipleTap=!1}.bind(this),500))},i.prototype.updatePanDirections=function(){},i.prototype.setState=function(t,e){"object"!=typeof arguments[0]&&((t={})[arguments[0]]=arguments[1],e=arguments[2]);var i=!1;for(var s in t)this.state[s]!==t[s]&&(this.state[s]=t[s],i=!0);i&&e&&this.eventBurrito.supportsPointerEvents&&this.syncTouchAction()},i}),N2D("SmartSliderControlTouchHorizontal","SmartSliderControlTouch",function(t,e){"use strict";function i(){this.state={left:!1,right:!1},this.axis="horizontal",N2Classes.SmartSliderControlTouch.prototype.constructor.apply(this,arguments)}return((i.prototype=Object.create(N2Classes.SmartSliderControlTouch.prototype)).constructor=i).prototype.callAction=function(t,e){switch(t){case"left":return this.slider[n2const.isRTL()?"previous":"next"].call(this.slider,e);case"right":return this.slider[n2const.isRTL()?"next":"previous"].call(this.slider,e)}return!1},i.prototype.measure=function(t){return!this.currentInteraction.hadDirection&&Math.abs(t.x)<10||0===t.x||Math.abs(t.x)<Math.abs(t.y)?"unknown":t.x<0?"left":"right"},i.prototype.get=function(t){return t.x},i.prototype.getPercent=function(t){return Math.max(-.99999,Math.min(.99999,t/this.slider.responsive.resizeContext.sliderWidth))},i.prototype.updatePanDirections=function(){var t=this.slider.currentSlide.index,e=t+1<this.slider.slides.length,i=0<=t-1;this.slider.parameters.carousel&&(i=e=!0),n2const.isRTL()&&"vertical"!==this.slider.getAnimationAxis()?this.setState({right:e,left:i},!0):this.setState({right:i,left:e},!0)},i.prototype.syncTouchAction=function(){var t={"pan-y":!1,none:!1};n2const.isEdge?t.none=!0:(this.state.left&&(t["pan-y"]=!0),this.state.right&&(t["pan-y"]=!0));var e=[];for(var i in t)t[i]&&e.push(i);this.swipeElement.css("touch-action",e.join(" ")),window.PointerEventsPolyfill&&this.swipeElement.attr("touch-action",e.join(" "))},i}),N2D("SmartSliderControlTouchVertical","SmartSliderControlTouch",function(t,e){"use strict";function i(){this.state={up:!1,down:!1},this.action={up:"next",down:"previous"},this.axis="vertical",N2Classes.SmartSliderControlTouch.prototype.constructor.apply(this,arguments)}return((i.prototype=Object.create(N2Classes.SmartSliderControlTouch.prototype)).constructor=i).prototype.callAction=function(t,e){switch(t){case"up":return this.slider.next.call(this.slider,e);case"down":return this.slider.previous.call(this.slider,e)}return!1},i.prototype.measure=function(t){return!this.currentInteraction.hadDirection&&Math.abs(t.y)<1||0==t.y||Math.abs(t.y)<Math.abs(t.x)?"unknown":t.y<0?"up":"down"},i.prototype.get=function(t){return t.y},i.prototype.getPercent=function(t){return Math.max(-.99999,Math.min(.99999,t/this.slider.responsive.resizeContext.sliderHeight))},i.prototype.updatePanDirections=function(){this.setState({down:!this.slider.isChangeCarousel("previous")||!this.slider.parameters.controls.blockCarouselInteraction,up:!this.slider.isChangeCarousel("next")||!this.slider.parameters.controls.blockCarouselInteraction},!0)},i.prototype.syncTouchAction=function(){var t={"pan-x":!1,none:!1};n2const.isEdge?t.none=!0:(this.state.up&&(t["pan-x"]=!0),this.state.down&&(t["pan-x"]=!0));var e=[];for(var i in t)t[i]&&e.push(i);this.swipeElement.css("touch-action",e.join(" ")),window.PointerEventsPolyfill&&this.swipeElement.attr("touch-action",e.join(" "))},i.prototype._start=function(t){this.slider.blockCarousel=!0,N2Classes.SmartSliderControlTouch.prototype._start.apply(this,arguments)},i.prototype.onEnd=function(t){N2Classes.SmartSliderControlTouch.prototype.onEnd.apply(this,arguments),this.slider.blockCarousel=!1},i}),N2D("SmartSliderControlAutoplayWait",function(t,e){"use strict";function i(t){this.autoplay=t,this.waits={}}return i.Strong=["lightbox"],i.prototype.add=function(t){this.waits[t]=1,this._refresh()},i.prototype.resolve=function(t){delete this.waits[t],this._refresh()},i.prototype.resolveWeak=function(){var t={};for(var e in this.waits)1===this.waits[e]&&-1!==i.Strong.indexOf(e)&&(t[e]=1);this.waits=t,this._refresh()},i.prototype.resolveAll=function(){this.waits={},this._refresh()},i.prototype._refresh=function(){var t=!1;for(var e in this.waits)if(this.waits[e]){t=!0;break}this.autoplay.setState("wait",t)},i}),N2D("SmartSliderSlideBackgroundColor",function(t,e){function i(t,e){this.$el=e}return i.prototype.getLoadedDeferred=function(){return!0},i}),N2D("SmartSliderSlideBackgroundImage",function(r,t){function e(t,e,i,s){var n;this.loadStarted=!1,this.loadAllowed=!1,this.slide=t,this.manager=e,this.background=i,this.deferred=r.Deferred(),this.$background=s,this.blur=s.data("blur"),"blurfit"===i.mode&&(window.n2FilterProperty?(this.$background=this.$background.add(this.$background.clone().insertAfter(this.$background)),this.$background.first().css({margin:"-14px",padding:"14px"}).css(window.n2FilterProperty,"blur(7px)")):(i.element.attr("data-mode","fill"),i.mode="fill")),window.n2FilterProperty&&(0<this.blur?this.$background.last().css({margin:"-"+2*this.blur+"px",padding:2*this.blur+"px"}).css(window.n2FilterProperty,"blur("+this.blur+"px)"):this.$background.last().css({margin:"",padding:""}).css(window.n2FilterProperty,"")),n2const.isWaybackMachine()?this.mobileSrc=this.tabletSrc=this.desktopSrc=s.data("desktop"):(this.desktopSrc=s.data("desktop")||"",this.tabletSrc=s.data("tablet")||"",this.mobileSrc=s.data("mobile")||"",n2const.isRetina&&((n=s.data("desktop-retina"))&&(this.desktopSrc=n),(n=s.data("tablet-retina"))&&(this.tabletSrc=n),(n=s.data("mobile-retina"))&&(this.mobileSrc=n)))}return e.prototype.getLoadedDeferred=function(){return this.deferred},e.prototype.preLoad=function(){this.loadAllowed=!0,this.manager.deviceDeferred.done(function(){this.updateBackgroundToDevice(this.manager.device),this.waitForImage()}.bind(this))},e.prototype.waitForImage=function(){this.$background.n2imagesLoaded({background:!0},function(t){if(0<t.images.length){var e=t.images[0].img;switch(this.width=e.naturalWidth,this.height=e.naturalHeight,this.background.mode){case"tile":case"center":1<n2const.devicePixelRatio&&this.$background.css("background-size",this.width/n2const.devicePixelRatio+"px "+this.height/n2const.devicePixelRatio+"px")}this.deferred.resolve()}else setTimeout(this.waitForImage.bind(this),100)}.bind(this))},e.prototype.updateBackgroundToDevice=function(t){var e=this.desktopSrc;"mobilePortrait"===t||"mobileLandscape"===t?this.mobileSrc?e=this.mobileSrc:this.tabletSrc&&(e=this.tabletSrc):"tabletPortrait"!==t&&"tabletLandscape"!==t||this.tabletSrc&&(e=this.tabletSrc),e?this.setSrc(e):this.setSrc("")},e.prototype.setSrc=function(t){this.loadAllowed&&t!==this.currentSrc&&(""===t?this.$background.css("background-image",""):this.$background.css("background-image",'url("'+t+'")'),this.currentSrc=t)},e.prototype.fadeOut=function(){NextendTween.to(this.$background,.3,{opacity:0})},e}),N2D("SmartSliderSlideBackground",function(l,t){function e(t,e,i){var s;this.loadStarted=!1,this.types=this.types||{color:"SmartSliderSlideBackgroundColor",image:"SmartSliderSlideBackgroundImage",video:"SmartSliderSlideBackgroundVideo"},this.width=0,this.height=0,this.slide=t,this.element=e,t.slider.needBackgroundWrap?(s=e.find("> *"),this.$wrapElement=l('<div class="n2-ss-slide-background-wrap n2-ow"></div>').appendTo(e).append(s)):this.$wrapElement=this.element,this.manager=i,this.loadDeferred=l.Deferred(),this.elements={color:!1,image:!1,video:!1},this.currentSrc="",this.mode=e.data("mode"),this.opacity=e.data("opacity");var n=this.element.find(".n2-ss-slide-background-image");n.length&&(this.elements.image=new N2Classes[this.types.image](t,i,this,n));var r=this.element.find(".n2-ss-slide-background-color");r.length&&(this.elements.color=new N2Classes[this.types.color](this,r));var o=[];for(var a in this.elements)this.elements[a]&&o.push(this.elements[a].getLoadedDeferred());l.when.apply(l,o).then(function(){this.loadDeferred.resolve()}.bind(this))}return e.prototype.preLoad=function(){return this.loadStarted||(this.slide.$element.find("[data-lazysrc]").each(function(){var t=l(this);t.attr("src",t.data("lazysrc"))}),this.loadStarted=!0),"pending"===this.loadDeferred.state()&&this.elements.image&&this.elements.image.preLoad(),this.loadDeferred},e.prototype.fadeOut=function(){this.elements.image&&this.elements.image.fadeOut()},e.prototype.hack=function(){NextendTween.set(this.element,{rotation:1e-4})},e.prototype.hasColor=function(){return this.elements.color},e.prototype.hasImage=function(){return this.elements.image},e.prototype.hasVideo=function(){return this.elements.video},e.prototype.hasBackground=function(){return this.elements.color||this.elements.image||this.elements.video},e.prototype.updateBackgroundToDevice=function(t){this.hasImage()&&this.elements.image.updateBackgroundToDevice(t)},e}),N2D("FrontendComponentCommon",["FrontendComponent"],function(s,n){function t(t,e,i,s){this.wraps={},N2Classes.FrontendComponent.prototype.constructor.apply(this,arguments)}return((t.prototype=Object.create(N2Classes.FrontendComponent.prototype)).constructor=t).prototype.init=function(t){this.stateCBs=[],this.state={InComplete:!1};var e=this.$layer.find("> .n2-ss-layer-mask");e.length&&(this.wraps.mask=e);var i=this.$layer.find("> .n2-ss-layer-parallax");switch(i.length&&(this.wraps.parallax=i),this.$layer.data("pm")){case"absolute":this.placement=new N2Classes.FrontendPlacementAbsolute(this);break;case"normal":this.placement=new N2Classes.FrontendPlacementNormal(this);break;case"content":this.placement=new N2Classes.FrontendPlacementContent(this);break;default:this.placement=new N2Classes.FrontendPlacementDefault(this)}this.parallax=this.$layer.data("parallax"),this.baseSize=this.baseSize||100,this.isAdaptiveFont=this.isAdaptiveFont||this.parent.isAdaptiveFont||this.get("adaptivefont"),this.refreshBaseSize(this.getDevice("fontsize",100)),N2Classes.FrontendComponent.prototype.init.call(this,t)},t.prototype.setState=function(t,e){this.state[t]=e;for(var i=0;i<this.stateCBs.length;i++)this.stateCBs[i].call(this,this.state)},t.prototype.addStateCallback=function(t){this.stateCBs.push(t),t.call(this,this.state)},t.prototype.refreshBaseSize=function(t){this.isAdaptiveFont?this.baseSize=16*t/100:this.baseSize=this.parent.baseSize*t/100},t.prototype.start=function(){this.placement.start(),N2Classes.FrontendComponent.prototype.start.call(this);var t,e=this.get("rotation")||0;e/360!=0&&(t=this.addWrap("rotation","<div class='n2-ss-layer-rotation'></div>"),NextendTween.set(t[0],{rotationZ:e}))},t.prototype.onDeviceChange=function(t){N2Classes.FrontendComponent.prototype.onDeviceChange.call(this,t);var e=this.isVisible;if(this.isVisible=this.getDevice("")&&this.parent.isVisible,this.isVisible===n&&(this.isVisible=1),e&&!this.isVisible?(this.$layer.data("shows",0),this.$layer.css("display","none"),this.$layer.triggerHandler("visibilityChange",[0])):!e&&this.isVisible&&(this.$layer.data("shows",1),this.$layer.css("display",""),this.$layer.triggerHandler("visibilityChange",[1])),this.isVisible){var i=this.getDevice("fontsize",100);this.refreshBaseSize(i),!this.parent.isAdaptiveFont&&this.isAdaptiveFont?this.$layer.css("font-size",N2Classes.FontSize.toRem(16*i/100)):this.$layer.css("font-size",i+"%");for(var s=0;s<this.children.length;s++)this.children[s].onDeviceChange(t);this.placement.onDeviceChange(t),this.onAfterDeviceChange(t)}else for(s=0;s<this.children.length;s++)this.children[s].onDeviceChange(t)},t.prototype.onAfterDeviceChange=function(t){},t.prototype.onResize=function(t,e){var i;(this.isVisible||this.placement.alwaysResize)&&(!this.parent.isAdaptiveFont&&this.isAdaptiveFont&&(i=this.getDevice("fontsize",100),this.$layer.css("font-size",N2Classes.FontSize.toRem(16*i/100))),N2Classes.FrontendComponent.prototype.onResize.apply(this,arguments),this.placement.onResize(t,e))},t.prototype.hasLayerAnimation=function(){return this.animationManager!==n},t.prototype.addWrap=function(t,e){if(this.wraps[t]===n){var i=s(e);switch(t){case"rotation":this.wraps.mask!==n?i.appendTo(this.wraps.mask):this.wraps.parallax!==n?i.appendTo(this.wraps.parallax):i.appendTo(this.$layer),i.append(this.getContents())}this.wraps[t]=i}return i},t.prototype.getContents=function(){return!1},t}),N2D("FrontendComponent",function(t,s){function e(t,e,i,s){this.device="",this.children=[],this.slide=t,this.parent=e,this.$layer=i.data("layer",this),this.isVisible=!0,this.init(s)}return e.prototype.init=function(t){if(t)for(var e=0;e<t.length;e++)switch(t.eq(e).data("sstype")){case"content":this.children.push(new N2Classes.FrontendComponentContent(this.slide,this,t.eq(e)));break;case"row":this.children.push(new N2Classes.FrontendComponentRow(this.slide,this,t.eq(e)));break;case"col":this.children.push(new N2Classes.FrontendComponentCol(this.slide,this,t.eq(e)));break;default:this.children.push(new N2Classes.FrontendComponentLayer(this.slide,this,t.eq(e)))}},e.prototype.start=function(){for(var t=0;t<this.children.length;t++)this.children[t].start()},e.prototype.onDeviceChange=function(t){this.device=t},e.prototype.onResize=function(t,e){for(var i=0;i<this.children.length;i++)this.children[i].onResize(t,e)},e.prototype.getDevice=function(t,e){var i=this.$layer.data(this.device+t);return i!==s?i:"desktopportrait"!==this.device?this.$layer.data("desktopportrait"+t):e!==s?e:0},e.prototype.get=function(t){return this.$layer.data(t)},e}),N2D("FrontendSlideControls",function(t,e){function i(t,e){this.slider=t,this.$element=e.data("slide",this),this.status=new N2Classes.SlideStatus}return i.prototype.isCurrentlyEdited=function(){return this._isCurrentlyEdited},i.prototype.is=function(t){return this===t},i.prototype.triggerHandler=function(){return this.$element.triggerHandler.apply(this.$element,arguments)},i.prototype.isVisibleWhen=function(t){return!0},i.prototype.isActiveWhen=function(t){return!0},i.prototype.isStatic=function(){return!1},i}),N2D("FrontendPlacement",function(t,e){function i(t){this.layer=t,this.alwaysResize=!1,this.linked=[]}return i.prototype.start=function(){},i.prototype.onDeviceChange=function(t){},i.prototype.onResize=function(t,e){for(var i=0;i<this.linked.length;i++)this.linked[i].onResizeLinked(t,e)},i.prototype.addLinked=function(t){this.linked.push(t),this.alwaysResize=!0},i}),N2D("FrontendSliderSlide",["FrontendSliderSlideAbstract"],function(s,t){function e(t,e,i){this.slides=[this],this.playCount=0,N2Classes.FrontendSliderSlideAbstract.prototype.constructor.apply(this,arguments),this.id=this.$element.data("id"),this.$slideFocus=s('<div tabindex="-1" class="n2-ss-slide--focus"></div>').prependTo(this.$element),this.$focusableElements=this.$element.find('a[href]:not([href=""]),link,button,input:not([type="hidden"]),select,textarea,audio[controls],video[controls],[tabindex]:not([tabindex="-1"])'),this.disableFocus(),this.background=!1,t.parameters.admin?this.minimumSlideDuration=0:(this.minimumSlideDuration=e.data("slide-duration"),s.isNumeric(this.minimumSlideDuration)||(this.minimumSlideDuration=0)),this._isCurrentlyEdited=this.slider.parameters.admin&&this.$element.hasClass("n2-ss-currently-edited-slide"),this.isCurrentlyEdited()?(this.$layer=e.find('.n2-ss-layer[data-sstype="slide"]'),t.sliderElement.on({SliderDeviceOrientation:function(){this.slider.visibleRealSlides.push(this),this.isVisible=!0,this.slider.responsive.visibleRealSlidesChanged=!0,this.triggerHandler("Visible")}.bind(this)})):(this.component=new N2Classes.FrontendComponentSectionSlide(this,t,e.find('.n2-ss-layer[data-sstype="slide"]')),this.$layer=this.component.$layer)}return((e.prototype=Object.create(N2Classes.FrontendSliderSlideAbstract.prototype)).constructor=e).prototype._setInside=function(t){this.isInside!==t&&(this.isInside=t)},e.prototype.focus=function(){this.$slideFocus[0].focus({preventScroll:!0})},e.prototype.allowFocus=function(){this.$focusableElements.attr("tabindex","0"),this.$element.removeAttr("aria-hidden")},e.prototype.disableFocus=function(){this.$focusableElements.attr("tabindex","-1"),this.$element.attr("aria-hidden",!0)},e.prototype.init=function(){var t=this.slider.findSlideBackground(this);0<t.length&&(this.slider.isAdmin?this.background=new N2Classes.SmartSliderSlideBackgroundAdmin(this,t,this.slider.backgrounds):this.background=new N2Classes.SmartSliderSlideBackground(this,t,this.slider.backgrounds)),this.$element.data("slideBackground",this.background)},e.prototype.onDeviceChange=function(t){this.$element.data("hide-"+t)?!1!==this.isVisible&&(this.isVisible=!1,this.slider.responsive.visibleRealSlidesChanged=!0,this.triggerHandler("Hidden")):(this.slider.visibleRealSlides.push(this),!0!==this.isVisible&&(this.isVisible=!0,this.slider.responsive.visibleRealSlidesChanged=!0,this.triggerHandler("Visible")))},e.prototype.hasLayers=function(){return 0<this.component.children.length},e.prototype.hasBackgroundVideo=function(){return this.background.hasVideo()},e.prototype.getThumbnailType=function(){return this.$element.data("thumbnail-type")},e.prototype.hasLink=function(){return!!this.$element.data("haslink")},e}),N2D("FrontendSliderSlideAbstract",["FrontendSlideControls"],function(i,t){function e(t,e,i){N2Classes.FrontendSlideControls.prototype.constructor.call(this,t,e),this.slides=this.slides||[],(this.group=this).originalIndex=i,this.index=i,this.localIndex=i,this.groupIndex=0,this.isVisible=!0,this.isInside=-1}for(var s in N2Classes.FrontendSlideControls.prototype)e.prototype[s]=N2Classes.FrontendSlideControls.prototype[s];return e.prototype.setIndex=function(t){for(var e=0;e<this.slides.length;e++)this.slides[e]._setIndex(t)},e.prototype._setIndex=function(t){this.localIndex=this.index=t},e.prototype.preLoad=function(){for(var t=[],e=0;e<this.slides.length;e++)t.push(this.slides[e]._preLoad());return i.when.apply(i,t)},e.prototype._preLoad=function(){return!this.background||this.background.preLoad()},e.prototype.setPrevious=function(t){this.previousSlide=t},e.prototype.getPrevious=function(){for(var t=this;(t=t.previousSlide)&&t!==this&&!t.isVisible;);return t},e.prototype.setNext=function(t){(this.nextSlide=t)&&t.setPrevious(this)},e.prototype.getNext=function(){for(var t=this;(t=t.nextSlide)&&t!==this&&!t.isVisible;);return t},e.prototype.getTitle=function(){return this.slides[0].$element.data("title")},e.prototype.getDescription=function(){return this.slides[0].$element.data("description")},e.prototype.getThumbnail=function(){return this.slides[0].$element.data("thumbnail")},e.prototype.hasLink=function(){return!1},e.prototype.setActive=function(){this.allowFocus(),this.$element.addClass("n2-ss-slide-active")},e.prototype.unsetActive=function(){this.disableFocus(),this.$element.removeClass("n2-ss-slide-active")},e.prototype.setInside=function(t){for(var e=0;e<this.slides.length;e++)this.slides[e]._setInside(t)},e.prototype._setInside=function(t){},e.prototype.focus=function(){},e.prototype.allowFocus=function(){},e.prototype.disableFocus=function(){},e.prototype.isVisibleWhen=function(t){return-1!==this.slider.getVisibleSlides(t).indexOf(this)},e.prototype.isActiveWhen=function(t){return-1!==this.slider.getActiveSlides(t).indexOf(this)},e}),N2D("SlideStatus",function(t,e){var i={NOT_INITIALIZED:-1,INITIALIZED:0,READY_TO_START:1,PLAYING:2,ENDED:3,SUSPENDED:4};function s(){this.status=i.NOT_INITIALIZED}return s.prototype.set=function(t){this.status=i[t]},s.prototype.is=function(t){return this.status===i[t]},s}),N2D("FrontendSliderStaticSlide",["FrontendSlideControls"],function(t,e){function i(t,e){N2Classes.FrontendSlideControls.prototype.constructor.call(this,t,e),this.slides=[this],this.isVisible=!0,this._isCurrentlyEdited=this.slider.parameters.admin&&this.$element.hasClass("n2-ss-currently-edited-slide"),this.isCurrentlyEdited()?this.$layer=this.$element.find('.n2-ss-layer[data-sstype="slide"]'):(this.component=new N2Classes.FrontendComponentSectionSlide(this,t,e.find('.n2-ss-layer[data-sstype="slide"]')),this.$layer=this.component.$layer)}for(var s in N2Classes.FrontendSlideControls.prototype)i.prototype[s]=N2Classes.FrontendSlideControls.prototype[s];return i.prototype.isStatic=function(){return!0},i.prototype.onDeviceChange=function(t){this.$element.data("hide-"+t)?!1!==this.isVisible&&(this.isVisible=!1,this.triggerHandler("Hidden")):!0!==this.isVisible&&(this.isVisible=!0,this.status.is("INITIALIZED")&&this.playIn(),this.triggerHandler("Visible"))},i}),N2D("FrontendPlacementAbsolute",["FrontendPlacement"],function(e,t){function i(t){this.parentLayer=!1,this.$parent=!1,N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return((i.prototype=Object.create(N2Classes.FrontendPlacement.prototype)).constructor=i).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(){}))},i.prototype.onResize=i.prototype.onResizeLinked=function(t,e){var i=this.layer.$layer,s=t.slideW,n=s,r=t.slideH,o=r;parseInt(this.layer.get("responsivesize"))||(n=o=1),i.css("width",this.getWidth(n)),i.css("height",this.getHeight(o)),parseInt(this.layer.get("responsiveposition"))||(s=r=1);var a,l=this.layer.getDevice("left")*s,h=this.layer.getDevice("top")*r,d=this.layer.getDevice("align"),c=this.layer.getDevice("valign"),p={left:"auto",top:"auto",right:"auto",bottom:"auto"};if(this.$parent&&this.$parent.data("layer").isVisible){var u={left:(a=this.$parent).prop("offsetLeft"),top:a.prop("offsetTop")},m={left:0,top:0};switch(this.layer.getDevice("parentalign")){case"right":m.left=u.left+this.$parent.width();break;case"center":m.left=u.left+this.$parent.width()/2;break;default:m.left=u.left}switch(d){case"right":p.right=i.parent()[0].offsetWidth-m.left-l+"px";break;case"center":p.left=m.left+l-i.width()/2+"px";break;default:p.left=m.left+l+"px"}switch(this.layer.getDevice("parentvalign")){case"bottom":m.top=u.top+this.$parent.height();break;case"middle":m.top=u.top+this.$parent.height()/2;break;default:m.top=u.top}switch(c){case"bottom":p.bottom=i.parent()[0].offsetHeight-m.top-h+"px";break;case"middle":p.top=m.top+h-i.height()/2+"px";break;default:p.top=m.top+h+"px"}}else{switch(d){case"right":p.right=-l+"px";break;case"center":var f=!this.layer.slide.isStatic&&this.layer.parent instanceof N2Classes.FrontendComponentSectionSlide?e.slideWidth:i.parent()[0].offsetWidth;p.left=Math.round(f/2+l-i.width()/2)+"px";break;default:p.left=l+"px"}switch(c){case"bottom":p.bottom=-h+"px";break;case"middle":var g=!this.layer.slide.isStatic&&this.layer.parent instanceof N2Classes.FrontendComponentSectionSlide?e.slideHeight:i.parent()[0].offsetHeight;p.top=Math.round(g/2+h-i.height()/2)+"px";break;default:p.top=h+"px"}}i.css(p);for(var S=0;S<this.linked.length;S++)this.linked[S].onResizeLinked(t,e)},i.prototype.getWidth=function(t){var e=this.layer.getDevice("width");return this.isDimensionPropertyAccepted(e)?e:e*t+"px"},i.prototype.getHeight=function(t){var e=this.layer.getDevice("height");return this.isDimensionPropertyAccepted(e)?e:e*t+"px"},i.prototype.isDimensionPropertyAccepted=function(t){return!(!(t+"").match(/[0-9]+%/)&&"auto"!=t)},i}),N2D("FrontendPlacementContent",["FrontendPlacement"],function(t,e){function i(t){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return(i.prototype=Object.create(N2Classes.FrontendPlacement.prototype)).constructor=i}),N2D("FrontendPlacementDefault",["FrontendPlacement"],function(t,e){function i(t){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return(i.prototype=Object.create(N2Classes.FrontendPlacement.prototype)).constructor=i}),N2D("FrontendPlacementNormal",["FrontendPlacement"],function(t,e){function i(t){N2Classes.FrontendPlacement.prototype.constructor.apply(this,arguments)}return((i.prototype=Object.create(N2Classes.FrontendPlacement.prototype)).constructor=i).prototype.onDeviceChange=function(){this.updateMargin(),this.updateHeight(),this.updateMaxWidth(),this.updateSelfAlign()},i.prototype.updateMargin=function(){var t=this.layer.getDevice("margin").split("|*|"),e=t.pop(),i=this.layer.baseSize;if("px+"==e&&0<i){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.layer.$layer.css("margin",t.join(e+" ")+e)},i.prototype.updateHeight=function(){var t,e=this.layer.getDevice("height"),i="px";0<e?(0<(t=this.layer.baseSize)&&(i="em",e=parseInt(e)/t),this.layer.$layer.css("height",e+i).attr("data-custom-height",1)):this.layer.$layer.css("height","").removeAttr("data-custom-height")},i.prototype.updateMaxWidth=function(){var t=parseInt(this.layer.getDevice("maxwidth"));t<=0||isNaN(t)?this.layer.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.layer.$layer.css("maxWidth",t+"px").attr("data-has-maxwidth","1")},i.prototype.updateSelfAlign=function(){this.layer.$layer.attr("data-cssselfalign",this.layer.getDevice("selfalign"))},i}),N2D("FrontendComponentCol",["FrontendComponentCommon"],function(t,e){function i(t,e,i){this.$content=i.find(".n2-ss-layer-col:first"),N2Classes.FrontendComponentCommon.prototype.constructor.call(this,t,e,i,this.$content.find("> .n2-ss-layer"))}return((i.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=i).prototype.onDeviceChange=function(t){N2Classes.FrontendComponentCommon.prototype.onDeviceChange.apply(this,arguments),this.updateOrder(),this.updatePadding(),this.updateVerticalAlign(),this.updateInnerAlign(),this.updateMaxWidth()},i.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|"),e=t.pop(),i=this.baseSize;if("px+"===e&&0<i){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.$content.css("padding",t.join(e+" ")+e)},i.prototype.updateVerticalAlign=function(){this.$content.attr("data-verticalalign",this.getDevice("verticalalign"))},i.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateMaxWidth=function(){var t=parseInt(this.getDevice("maxwidth"));t<=0||isNaN(t)?this.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.$layer.css("maxWidth",t+"px").attr("data-has-maxwidth","1")},i.prototype.getWidthPercentage=function(){return parseFloat(this.$layer.data("colwidthpercent"))},i.prototype.getRealOrder=function(){var t=this.getDevice("order");return 0==t?10:t},i.prototype.updateOrder=function(){var t=this.getDevice("order");0==t?this.$layer.css("order",""):this.$layer.css("order",t)},i.prototype.getContents=function(){return this.$content},i}),N2D("FrontendComponentContent",["FrontendComponentCommon"],function(t,e){function i(t,e,i){this.$content=i.find(".n2-ss-section-main-content:first"),N2Classes.FrontendComponentCommon.prototype.constructor.call(this,t,e,i,this.$content.find("> .n2-ss-layer"))}return((i.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=i).prototype.onDeviceChange=function(t){N2Classes.FrontendComponentCommon.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateVerticalAlign(),this.updateInnerAlign(),this.updateMaxWidth(),this.updateSelfAlign()},i.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|"),e=t.pop(),i=this.baseSize;if("px+"==e&&0<i){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.$content.css("padding",t.join(e+" ")+e)},i.prototype.updateVerticalAlign=function(){this.$content.attr("data-verticalalign",this.getDevice("verticalalign"))},i.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},i.prototype.updateMaxWidth=function(){var t=parseInt(this.getDevice("maxwidth"));t<=0||isNaN(t)?this.$layer.css("maxWidth","").attr("data-has-maxwidth","0"):this.$layer.css("maxWidth",t+"px").attr("data-has-maxwidth","1")},i.prototype.updateSelfAlign=function(){this.$layer.attr("data-cssselfalign",this.getDevice("selfalign"))},i.prototype.getContents=function(){return this.$content},i}),N2D("FrontendComponentLayer",["FrontendComponentCommon"],function(t,s){function e(t,e,i){N2Classes.FrontendComponentCommon.prototype.constructor.call(this,t,e,i),this.wraps.mask!==s?this.$item=this.wraps.mask.children():this.wraps.parallax!==s?this.$item=this.wraps.parallax.children():this.$item=i.children()}return((e.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=e).prototype.getContents=function(){return this.$item},e}),N2D("FrontendComponentRow",["FrontendComponentCommon"],function(i,c){function t(t,e,i){this.$row=i.find(".n2-ss-layer-row:first"),this.$rowInner=this.$row.find(".n2-ss-layer-row-inner:first"),this.columns=[],N2Classes.FrontendComponentCommon.prototype.constructor.call(this,t,e,i,this.$rowInner.find("> .n2-ss-layer"))}return((t.prototype=Object.create(N2Classes.FrontendComponentCommon.prototype)).constructor=t).prototype.init=function(t){N2Classes.FrontendComponentCommon.prototype.init.call(this,t);for(var e=0;e<this.children.length;e++)this.children[e]instanceof N2Classes.FrontendComponentCol&&this.columns.push(this.children[e])},t.prototype.onDeviceChange=function(t){N2Classes.FrontendComponentCommon.prototype.onDeviceChange.apply(this,arguments),this.updatePadding(),this.updateGutter(),this.updateInnerAlign()},t.prototype.onAfterDeviceChange=function(t){this.updateWrapAfter()},t.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|"),e=t.pop(),i=this.baseSize;if("px+"===e&&0<i){e="em";for(var s=0;s<t.length;s++)t[s]=parseInt(t[s])/i}this.$row.css("padding",t.join(e+" ")+e)},t.prototype.updateInnerAlign=function(){this.$layer.attr("data-csstextalign",this.getDevice("inneralign"))},t.prototype.updateGutter=function(){var t=this.getDevice("gutter"),e=t/2;if(0<this.columns.length)for(var i=this.columns.length-1;0<=i;i--)this.columns[i].$layer.css("margin",e+"px");this.$rowInner.css({width:"calc(100% + "+(t+1)+"px)",margin:-e+"px"})},t.prototype.getSortedColumns=function(){for(var t=i.extend([],this.columns).sort(function(t,e){return t.getRealOrder()-e.getRealOrder()}),e=t.length-1;0<=e;e--)t[e].isVisible||t.splice(e,1);return t},t.prototype.updateWrapAfter=function(){var t=parseInt(this.getDevice("wrapafter")),e=this.getSortedColumns(),i=e.length,s=!1;if(0===i)return!1;if(0<t&&t<i&&(s=!0),this.$row.attr("row-wrapped",s?1:0),s){for(var n=[],r=0;r<i;r++){var o=Math.floor(r/t);n[o]===c&&(n[o]=[]),n[o].push(e[r]),e[r].$layer.attr("data-r",o).toggleClass("n2-ss-last-in-row",(r+1)%t==0||r===i-1)}var a=this.getDevice("gutter");for(r=0;r<n.length;r++){for(var l=n[r],h=0,d=0;d<l.length;d++)h+=l[d].getWidthPercentage();for(d=0;d<l.length;d++)l[d].$layer.css("width","calc("+l[d].getWidthPercentage()/h*100+"% - "+(n2const.isIE||n2const.isEdge?a+1:a)+"px)")}}else{h=0;for(r=0;r<i;r++)h+=e[r].getWidthPercentage();for(r=0;r<i;r++)e[r].$layer.css("width",e[r].getWidthPercentage()/h*100+"%").removeClass("n2-ss-last-in-row").attr("data-r",0);e[i-1].$layer.addClass("n2-ss-last-in-row")}},t.prototype.getContents=function(){return this.$row},t}),N2D("FrontendComponentSectionSlide",["FrontendComponent"],function(t,e){function i(t,e,i){this.realSlide=t,this.slider=e,this.$element=t.$element,this.$layer=i,this.baseSize=16,this.isStatic=t.isStatic(),N2Classes.FrontendComponent.prototype.constructor.call(this,this,this,i,i.find("> .n2-ss-layer")),e.sliderElement.on({SliderDeviceOrientation:function(t,e){this.onDeviceChange(e.device.toLowerCase())}.bind(this),SliderResize:function(t,e,i){this.onResize(e,i.resizeContext)}.bind(this)}),this.start()}return((i.prototype=Object.create(N2Classes.FrontendComponent.prototype)).constructor=i).prototype.onDeviceChange=function(t){N2Classes.FrontendComponent.prototype.onDeviceChange.call(this,t);for(var e=0;e<this.children.length;e++)this.children[e].onDeviceChange(t);this.realSlide.onDeviceChange(t),this.updatePadding()},i.prototype.updatePadding=function(){var t=this.getDevice("padding").split("|*|");this.$layer.css("padding",t.join("px ")+"px")},i}),N2D("SmartSliderResponsive",function(p,t){function u(t,e){this.state={StarterSlide:!1},this.isResetActiveSlideEarly=this.isResetActiveSlideEarly||!1,this.disableTransitions=!1,this.disableTransitionsTimeout=null,this.lastClientHeight=0,this.lastClientHeightTime=0,this.isLandscape=!1,this.pixelSnappingFraction=0,this.focusOffsetTop=0,this.focusOffsetBottom=0,this.fullPageMinimumSliderHeight=0,this.minimumSlideHeight=0,this.isFullScreen=!1,this.visibleRealSlidesChanged=!0,this.filters={SliderWidth:[],SliderHeight:[],SlideHeight:[],SliderVerticalCSS:[]},this.parameters=p.extend({hideOn:{desktopLandscape:0,desktopPortrait:0,tabletLandscape:0,tabletPortrait:0,mobileLandscape:0,mobilePortrait:0},onResizeEnabled:!0,type:"auto",downscale:!0,upscale:!1,constrainRatio:!0,minimumHeight:0,maximumSlideWidth:{ratio:-1,desktopLandscape:0,desktopPortrait:0,tabletLandscape:0,tabletPortrait:0,mobileLandscape:0,mobilePortrait:0},forceFull:0,forceFullOverflowX:"body",forceFullHorizontalSelector:"",sliderHeightBasedOn:"real",decreaseSliderHeight:0,focusUser:1,focusEdge:"auto",enabledDevices:{desktopLandscape:1,desktopPortrait:0,mobileLandscape:0,mobilePortrait:0,tabletLandscape:0,tabletPortrait:0},breakpoints:[],sizes:{desktopPortrait:{width:1200,height:600,max:1e4,min:40}},normalizedDeviceModes:{unknown:"unknown",desktopPortrait:"desktopPortrait"},ratioToDevice:{Portrait:{tablet:0,mobile:0},Landscape:{tablet:0,mobile:0}},overflowHiddenPage:0,focus:{offsetTop:"",offsetBottom:""}},e),this.parameters.hideOn=window.ssOverrideHideOn||this.parameters.hideOn,this.doThrottledResize=NextendThrottle(this.doResize.bind(this),50),this.slider=t,this.sliderElement=t.sliderElement,this.addFilter("SliderWidth",this.filterSliderWidthHorizontalSpacing.bind(this)),this.slider.parameters.dynamicHeight&&this.slider.stages.done("BeforeShow",function(){this.doResize()}.bind(this))}return u.DeviceMode={unknown:0,desktopLandscape:1,desktopPortrait:2,tabletLandscape:3,tabletPortrait:4,mobileLandscape:5,mobilePortrait:6},u._DeviceMode={0:"unknown",1:"desktopLandscape",2:"desktopPortrait",3:"tabletLandscape",4:"tabletPortrait",5:"mobileLandscape",6:"mobilePortrait"},u._DeviceGroup={desktopLandscape:"desktop",desktopPortrait:"desktop",tabletLandscape:"tablet",tabletPortrait:"tablet",mobileLandscape:"mobile",mobilePortrait:"mobile"},u.prototype.setDeviceID=function(t){this.deviceID=t,this.device=u._DeviceMode[t]},u.prototype.start=function(){if(this.slider.stages.done("ResizeFirst",function(){nextend.fontsDeferred===t?(this.slider.stages.resolve("Fonts"),this.slider.stages.resolved("windowLoad")||N2R("windowLoad",function(){this.doResize()}.bind(this))):nextend.fontsDeferred.always(function(){this.slider.stages.resolve("Fonts")}.bind(this))}.bind(this)),this.normalizeTimeout=null,this.delayedResizeAdded=!1,this.setDeviceID(u.DeviceMode.unknown),this.ratios={slideW:1,slideH:1},this.horizontalSpacingControls={right:[],left:[]},this.horizontalSpacing={right:0,left:0},this.staticSizes={paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},this.alignElement=this.slider.sliderElement.closest(".n2-ss-align"),this.$section=this.alignElement.closest(".n2-section-smartslider"),"fullpage"===this.parameters.type&&"100vh"===this.parameters.sliderHeightBasedOn&&(this.$viewportHeight=p('<div style="height:100vh;width:0;position:absolute;bottom:0;visibility:hidden;"></div>').appendTo("body")),this.containerElementPadding=this.sliderElement.parent(),this.containerElement=this.containerElementPadding.parent(),!this.slider.isAdmin&&this.parameters.overflowHiddenPage&&p("html, body").css("overflow","hidden"),nextend.smallestZoom=320,this.slider.stages.resolve("ResponsiveStart"),this.init(),this.onResize(),p(window).on("SliderContentResize",function(t){this.onResize(t)}.bind(this)),this.parameters.onResizeEnabled)if(p(window).on({resize:this.onResize.bind(this),orientationchange:this.onResize.bind(this)}),window.ResizeObserver!==t){var e=0;new ResizeObserver(function(t){t.forEach(function(t){e!==t.contentRect.width&&(e=t.contentRect.width,this.internalResize())}.bind(this))}.bind(this)).observe(this.containerElement.parent().get(0))}else try{p('<iframe class="bt_skip_resize intrinsic-ignore" title="Resize helper" sandbox="allow-same-origin allow-scripts" style="margin:0 !important;padding:0;border:0;display:block;width:100%;height:0;min-height:0 !important;max-height:0;"></iframe>').on("load",function(t){var i=0,s=p(t.target.contentWindow?t.target.contentWindow:t.target.contentDocument.defaultView).on("resize",function(t){var e=s.width();i!==e&&(i=e,this.internalResize())}.bind(this));s[0].document.getElementsByTagName("HTML")[0].setAttribute("lang",window.document.getElementsByTagName("HTML")[0].getAttribute("lang"))}.bind(this)).insertBefore(this.containerElement)}catch(t){}},u.prototype.internalResize=function(){this.onResize()},u.prototype.getMinimumContentHeight=function(){for(var t,e=this.slider.visibleRealSlides,i=0,s=0;s<this.slider.visibleRealSlides.length;s++)e[s].$layer.addClass("n2-ss-layer--height-calc");for(s=0;s<this.slider.visibleRealSlides.length;s++)t=e[s].$layer.outerHeight(),i=Math.max(i,t),e[s].$layer.data("contentHeight",t);for(s=0;s<this.slider.visibleRealSlides.length;s++)e[s].$layer.removeClass("n2-ss-layer--height-calc");return i},u.prototype.getMinimumStaticContentHeight=function(){for(var i=0,t=p(),e=0;e<this.slider.staticSlides.length;e++)t=t.add(this.slider.staticSlides[e].$element[0]);return t.addClass("n2-ss-layer--height-calc").each(function(t,e){i=Math.max(i,p(e).outerHeight())}).removeClass("n2-ss-layer--height-calc"),i},u.prototype.getDeviceMode=function(){return u._DeviceMode[this.deviceID]},u.prototype.getDeviceGroup=function(){return u._DeviceGroup[this.getDeviceMode()]},u.prototype.onResize=function(t){this.slider.mainAnimation&&"playing"===this.slider.mainAnimation.getState()?this.delayedResizeAdded||(this.delayedResizeAdded=!0,this.sliderElement.on("mainAnimationComplete.responsive",this._onResize.bind(this,t))):this._onResize(t)},u.prototype._onResize=function(t){this.doResize(t),this.delayedResizeAdded=!1},u.prototype.doNormalizedResize=function(){this.normalizeTimeout&&clearTimeout(this.normalizeTimeout),this.normalizeTimeout=setTimeout(this.doResize.bind(this),10)},u.prototype.identifyDeviceID=function(){this.containerElementPadding.css("overflow","hidden");var t,e,i=u.DeviceMode.desktopPortrait,s=window.innerWidth;this.isLandscape=window.innerWidth>window.innerHeight;for(var n=this.parameters.breakpoints.length-1;0<=n;n--)if(t=this.parameters.breakpoints[n],e=this.isLandscape?t.landscapeWidth:t.portraitWidth,"max-screen-width"===t.type){if(s<=e){i=u.DeviceMode[t.device];break}}else if("min-screen-width"===t.type&&e<=s){i=u.DeviceMode[t.device];break}return this.containerElementPadding.css("overflow",""),i},u.prototype.updateOffsets=function(){if(this.focusOffsetTop=0,""!==this.parameters.focus.offsetTop)for(var t=p(this.parameters.focus.offsetTop),e=0;e<t.length;e++)t.eq(e).is(":visible")&&(this.focusOffsetTop+=t.eq(e).outerHeight());if(this.slider.isAdmin&&(this.focusOffsetTop+=p(".n2-lb-header").outerHeight()),this.focusOffsetBottom=0,""!==this.parameters.focus.offsetBottom){var i=p(this.parameters.focus.offsetBottom);for(e=0;e<i.length;e++)i.eq(e).is(":visible")&&(this.focusOffsetBottom+=i.eq(e).outerHeight())}},u.prototype.doPixelSnapping=function(){this.containerElementPadding.css("overflow","hidden");var t=this.containerElementPadding[0].getBoundingClientRect().left+this.pixelSnappingFraction,e=Math.max(0,t%1);e!==this.pixelSnappingFraction&&(this.containerElementPadding.css({marginLeft:-e+"px",marginRight:-e+"px"}),this.pixelSnappingFraction=e),this.containerElementPadding.css("overflow","")},u.prototype.calculateFullPageSliderHeight=function(t){},u.prototype.doResize=function(t){var e,i,s,n,r,o,a,l,h=this.identifyDeviceID();if(this.parameters.hideOn[u._DeviceMode[h]])return this.$section.addClass("n2-section-smartslider--hidden"),!1;if(this.$section.removeClass("n2-section-smartslider--hidden"),!this.containerElementPadding.is(":visible"))return!1;this.doPixelSnapping(),this.updateOffsets(),this.disableTransitions||(this.disableTransitions=!0,this.sliderElement.addClass("n2notransition"),this.disableTransitionsTimeout&&clearTimeout(this.disableTransitionsTimeout),this.disableTransitionsTimeout=setTimeout(function(){this.sliderElement.removeClass("n2notransition"),this.disableTransitions=!1}.bind(this),500)),this.slider.isAdmin||this.parameters.forceFull&&("none"!==this.parameters.forceFullOverflowX&&p(this.parameters.forceFullOverflowX).css("overflow-x","hidden"),n=s=0,this.parameters.forceFullHorizontalSelector=window.ssForceFullHorizontalSelector||this.parameters.forceFullHorizontalSelector,""===this.parameters.forceFullHorizontalSelector||(e=this.sliderElement.closest(this.parameters.forceFullHorizontalSelector))&&0<e.length&&(s=(i=e[0].getBoundingClientRect()).width,n=n2const.rtl.isRtl?(document.body.clientWidth||document.documentElement.clientWidth)-i.right:i.left),r=0<s?s:document.body.clientWidth||document.documentElement.clientWidth,a=(o=this.containerElement.parent())[0].getBoundingClientRect(),l=-(n2const.rtl.isRtl?(document.body.clientWidth||document.documentElement.clientWidth)-a.right:a.left)-parseInt(o.css("paddingLeft"))-parseInt(o.css("borderLeftWidth"))+n,this.containerElement.css({marginLeft:l,marginRight:l}).width(r));var d=!1,c=this.device;this.deviceID!==h&&(this.setDeviceID(h),this.sliderElement.removeClass("n2-ss-"+c).attr("data-device-mode",this.device).addClass("n2-ss-"+this.device),this.sliderElement.trigger("SliderDevice",{lastDevice:c,device:this.device,group:u._DeviceGroup[this.device]}),d=!0,this.slider.stages.resolve("Device")),d&&(this.slider.visibleRealSlides=[],this.sliderElement.trigger("SliderDeviceOrientation",{slider:this.slider,lastDevice:c,device:this.device,group:u._DeviceGroup[this.device]}),this.slider.stages.resolve("DeviceOrientation"),this.finalizeVisibleSlidesStage1()),(this.slider.isVisible||this.visibleRealSlidesChanged)&&(this.resizeStage1Width(),this.sliderElement.trigger("SliderResizeHorizontal"),this.resizeStage2Height())},u.prototype.resizeStage1Width=function(){this.resizeContext={}},u.prototype.resizeStage2Height=function(){for(var t=this.applyFilter("SliderVerticalCSS",this.getResizeStage2CSS()),e=0;e<t.length;e++)t[e].flush();this.ratios={slideW:this.resizeContext.slideWidth/this.base.slideWidth,slideH:this.resizeContext.slideHeight/this.base.slideHeight},this.slider.stages.resolve("ResizeFirst"),this.finalizeVisibleSlidesStage2(),this.triggerResize()},u.prototype.resizeStage2HeightAnimated=function(t,e,i){this.dynamicHeightSlide=e;var s=this.applyFilter("SliderVerticalCSS",this.getResizeStage2CSS());delete this.dynamicHeightSlide,this.ratios={slideW:this.resizeContext.slideWidth/this.base.slideWidth,slideH:this.resizeContext.slideHeight/this.base.slideHeight},this.finalizeVisibleSlidesStage2();for(var n=0;n<s.length;n++)t.to(s[n].$,i,s[n].css,0);t.eventCallback("onComplete",function(){this.slider.trigger("SliderResizeAnimated",[this.ratios,this])}.bind(this))},u.prototype.getResizeStage2CSS=function(){},u.prototype.onStarterSlide=function(t){this.state.StarterSlide=!0,this.calibrateActiveSlide(t),delete this.targetCurrentSlide},u.prototype.finalizeVisibleSlidesStage1=function(){this.visibleRealSlidesChanged&&(this.slider.visibleRealSlides.sort(function(t,e){return t.index-e.index}),this.updateVisibleSlides(),this.slider.trigger("visibleRealSlidesChanged"),this.slider.stages.resolve("VisibleRealSlides"),this.isResetActiveSlideEarly&&this.calibrateActiveSlide())},u.prototype.updateVisibleSlides=function(){this.slider.visibleSlides=this.slider.visibleRealSlides},u.prototype.calibrateActiveSlide=function(t){var e;this.state.StarterSlide&&0<this.slider.visibleSlides.length&&((e=t||this.slider.currentRealSlide).isVisible||(e=(e=e.getNext())||this.slider.currentSlide.getPrevious()),this.resetActiveRealSlide(e))},u.prototype.resetActiveRealSlide=function(t){var e,i;t&&t!==this.slider.currentRealSlide?(this.slider.trigger("BeforeCurrentSlideChange",t),(e=this.slider.currentSlide)&&this.slider.forceUnsetActiveSlide(e),this.slider.setCurrentRealSlide(t),i=this.slider.currentSlide,this.targetCurrentSlide=i,this.slider.forceSetActiveSlide(i),this.slider.trigger("SlideForceChange",[e,i])):i=this.slider.currentSlide,this.slider.updateInsideSlides([i])},u.prototype.finalizeVisibleSlidesStage2=function(){this.visibleRealSlidesChanged&&(this.visibleRealSlidesChanged=!1,this.isResetActiveSlideEarly||this.calibrateActiveSlide(),this.triggerVisibleSlidesChanged(),this.targetCurrentSlide!==t&&(this.slider.trigger("SlideWillChange",this.targetCurrentSlide),this.slider.trigger("CurrentSlideChanged",this.targetCurrentSlide),this.slider.stages.resolved("Visible")&&this.slider.playSlide(this.targetCurrentSlide),delete this.targetCurrentSlide))},u.prototype.triggerVisibleSlidesChanged=function(){this.slider.trigger("visibleSlidesChanged"),this.slider.stages.resolve("VisibleSlides"),this.slider.visibleRealSlides.length?this.slider.isVisible||this.slider.show():this.slider.isVisible&&this.slider.hide()},u.prototype.getNormalizedModeString=function(){return u._DeviceMode[this.deviceID]},u.prototype.triggerResize=function(){this.slider.publicTrigger("SliderResize",[this.ratios,this]),this.slider.stages.resolve("Resized")},u.prototype.getVerticalOffsetHeight=function(){if(this.isFullScreen)return 0;var t=this.focusOffsetTop+this.focusOffsetBottom;if(this.slider.widgets.$vertical)for(var e=0;e<this.slider.widgets.$vertical.length;e++)t+=this.slider.widgets.$vertical.eq(e).outerHeight();return t+this.parameters.decreaseSliderHeight},u.prototype.addHorizontalSpacingControl=function(t,e){this.horizontalSpacingControls[t].push(e),this.slider.stages.resolved("ResizeFirst")&&this.doNormalizedResize()},u.prototype.filterSliderWidthHorizontalSpacing=function(t){for(var e in this.horizontalSpacing={right:0,left:0},this.horizontalSpacingControls)for(var i=this.horizontalSpacingControls[e],s=i.length-1;0<=s;s--){var n=i[s];n.isVisible()&&(n.refreshSliderSize(t),this.horizontalSpacing[e]+=n.getSize())}return this.containerElementPadding.css({paddingLeft:this.horizontalSpacing.left,paddingRight:this.horizontalSpacing.right}),t-this.horizontalSpacing.left-this.horizontalSpacing.right},u.prototype.addFilter=function(t,e){this.filters[t].push(e)},u.prototype.removeFilter=function(t,e){this.filters[t].push(e)},u.prototype.applyFilter=function(t,e){for(var i=0;i<this.filters[t].length;i++)e=this.filters[t][i].call(this,e);return e},u.prototype.prepareFontSize=function(t){return N2Classes.FontSize.toRem(t)},u}),N2D("FrontendItemVimeo",function(o,e){function i(t,e,i,s,n,r){if(this.state={slideVisible:!1,visible:!1,scroll:!1,slide:!1,InComplete:!1,play:!1,continuePlay:!1},this.readyDeferred=o.Deferred(),this.slider=t,this.playerId=e,this.$playerElement=o("#"+this.playerId),this.$cover=this.$playerElement.find(".n2_ss_video_player__cover"),this.start=r,this.parameters=o.extend({vimeourl:"//vimeo.com/144598279",autoplay:"0",ended:"",reset:"0",title:"1",byline:"1",portrait:"0",loop:"0",color:"00adef",volume:"-1",dnt:"0"},s),1===parseInt(this.parameters.autoplay))if(-1<navigator.userAgent.toLowerCase().indexOf("android"))this.parameters.volume=0;else if(n2const.isIOS){this.parameters.autoplay=0;try{"playsInline"in document.createElement("video")&&(this.parameters.autoplay=1,this.parameters.volume=0)}catch(t){}}1===parseInt(this.parameters.autoplay)||!n||n2const.isMobile?this.ready(this.initVimeoPlayer.bind(this)):this.ready(function(){this.$playerElement.on("click.vimeo n2click.vimeo",function(t){this.$playerElement.off(".vimeo"),t.preventDefault(),t.stopPropagation(),this.initVimeoPlayer(),this.safePlay()}.bind(this))}.bind(this))}return i.vimeoDeferred=null,i.prototype.ready=function(t){null===i.vimeoDeferred&&(i.vimeoDeferred=o.getScript("https://player.vimeo.com/api/player.js")),i.vimeoDeferred.done(t)},i.prototype.initVimeoPlayer=function(){var t=o('<iframe class="intrinsic-ignore" allow="autoplay; encrypted-media" id="'+this.playerId+'-frame" 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)+"&dnt="+this.parameters["privacy-enhanced"]+'" style="position: absolute; top:0; left: 0; width: 100%; height: 100%;" webkitAllowFullScreen allowFullScreen></iframe>');this.$playerElement.prepend(t),this.player=new Vimeo.Player(t[0],{autoplay:!1}),this.promise=this.player.ready(),this.slider.stages.done("BeforeShow",function(){this.promise.then(this.onReady.bind(this))}.bind(this))},i.prototype.onReady=function(){var t=parseFloat(this.parameters.volume);0<=t&&this.setVolume(t),this.slide=this.slider.findSlideByElement(this.$playerElement),this.isStatic=this.slide.isStatic();var e=this.$playerElement.closest(".n2-ss-layer");this.layer=e.data("layer"),this.layer.isVisible&&this.setState("visible",!0,!0),this.layer.$layer.on("visibilityChange",function(t,e){var i;e?this.setState("visible",!0,!0):(i=this.state.play,this.setState("visible",!1,!0),i&&this.setState("continuePlay",!0))}.bind(this)),this.slide.isVisible&&this.setState("slideVisible",!0,!0),this.slide.$element.on({Hidden:function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this),Visible:function(){this.setState("slideVisible",!0,!0)}.bind(this)}),this.$cover.length&&(n2const.isMobile&&this.$cover.on("click",this.safePlay.bind(this)),e.one("n2play",function(){NextendTween.to(this.$cover,.3,{opacity:0,onComplete:function(){this.$cover.remove()}.bind(this)})}.bind(this))),this.player.on("play",function(){this.isStatic||this.slider.trigger("mediaStarted",this.playerId),e.triggerHandler("n2play")}.bind(this)),this.player.on("pause",function(){e.triggerHandler("n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1)}.bind(this)),this.player.on("ended",function(){this.isStatic||this.slider.trigger("mediaEnded",this.playerId),e.triggerHandler("n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&0==this.parameters.loop&&((document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&(document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen).call(document),this.slider.next())}.bind(this)),this.isStatic||this.slider.sliderElement.on({CurrentSlideChanged:function(t,e){this.onCurrentSlideChange(e)}.bind(this),mainAnimationStart:function(t,e,i,s){this.onCurrentSlideChange(this.slider.slides[s])}.bind(this)}),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.$playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1===parseInt(this.parameters.autoplay)&&this.slider.visible(this.initAutoplay.bind(this)),this.readyDeferred.resolve()},i.prototype.onCurrentSlideChange=function(t){this.slide.isActiveWhen(t)?1==this.parameters.autoplay&&this.setState("play",!0):parseInt(this.parameters.reset)&&this.reset(),this.setState("slide",!0,!0)},i.prototype.initAutoplay=function(){this.setState("InComplete",!0,!0),this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s,n){this.slide.isActiveWhen(this.slider.slides[s])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},i.prototype.setState=function(t,e,i){i=i||!1,this.state[t]=e,i&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.InComplete&&this.state.scroll&&this.layer.isVisible?this.play():this.pause())},i.prototype.play=function(){this.slider.trigger("mediaStarted",this.playerId),0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay(),this.player.getCurrentTime().then(function(t){t<this.start&&0!=this.start&&this.safeSetCurrentTime(this.start),this.safePlay()}.bind(this)).catch(function(t){this.safePlay()}.bind(this))},i.prototype.pause=function(){this.safePause()},i.prototype.reset=function(){this.safeSetCurrentTime(this.start)},i.prototype.setVolume=function(t){this.safeCallback(function(){this.promise=this.player.setVolume(t)}.bind(this))},i.prototype.safeSetCurrentTime=function(t){this.safeCallback(function(){this.promise=this.player.setCurrentTime(t)}.bind(this))},i.prototype.safePlay=function(){this.safeCallback(function(){this.promise=this.player.getPaused(),this.safeCallback(function(t){t&&(this.promise=this.player.play())}.bind(this))}.bind(this))},i.prototype.safePause=function(){this.safeCallback(function(){this.promise=this.player.getPaused(),this.safeCallback(function(t){t||(this.promise=this.player.pause())}.bind(this))}.bind(this))},i.prototype.safeCallback=function(t){this.promise&&Promise!==e?this.promise.then(t).catch(t):t()},i}),N2D("FrontendItemYouTube",function(r,o){function a(t,e,i,s){this.state={slideVisible:!1,visible:!1,scroll:!1,slide:!1,InComplete:!1,play:!1,continuePlay:!1},this.readyDeferred=r.Deferred(),this.slider=t,this.playerId=e,this.$playerElement=r("#"+this.playerId),this.$cover=this.$playerElement.find(".n2_ss_video_player__cover"),this.parameters=r.extend({youtubeurl:"//www.youtube.com/watch?v=3PPtkRU7D74",youtubecode:"3PPtkRU7D74",center:0,autoplay:1,ended:"",related:"1",volume:"-1",loop:0,modestbranding:1,reset:0,query:[],playsinline:0},i),1===parseInt(this.parameters.autoplay)||!s||n2const.isMobile?this.ready(this.initYoutubePlayer.bind(this)):this.$playerElement.on("click.youtube n2click.youtube",function(t){this.$playerElement.off(".youtube"),t.preventDefault(),t.stopPropagation(),this.ready(function(){this.readyDeferred.done(function(){this.play()}.bind(this)),this.initYoutubePlayer()}.bind(this))}.bind(this))}return a.YTDeferred=null,a.prototype.ready=function(t){var e,i,s,n;null===a.YTDeferred&&(a.YTDeferred=r.Deferred(),window.YT===o&&r.getScript("https://www.youtube.com/iframe_api"),window._EPYT_!==o?(s=a.YTDeferred,(n=function(){!0===window._EPADashboard_.initStarted?s.resolve():setTimeout(n,100)})()):(e=a.YTDeferred,(i=function(){window.YT!==o&&window.YT.loaded?e.resolve():setTimeout(i,100)})())),a.YTDeferred.done(t)},a.prototype.fadeOutCover=function(){this.coverFadedOut===o&&this.$cover.length&&(this.coverFadedOut=!0,NextendTween.to(this.$cover,.3,{opacity:0,onComplete:function(){this.$cover.remove()}.bind(this)}))},a.prototype.initYoutubePlayer=function(){var e=this.$playerElement.closest(".n2-ss-layer");this.layer=e.data("layer"),this.$cover.length&&(n2const.isMobile&&this.$cover.on("click",this.play.bind(this)),e.one("n2play",this.fadeOutCover.bind(this))),this.slide=this.slider.findSlideByElement(this.$playerElement),this.isStatic=this.slide.isStatic();var t={enablejsapi:1,origin:window.location.protocol+"//"+window.location.host,wmode:"opaque",rel:1-this.parameters.related,start:this.parameters.start,end:this.parameters.end,modestbranding:this.parameters.modestbranding,playsinline:this.parameters.playsinline};if(1===parseInt(this.parameters.autoplay))if(-1<navigator.userAgent.toLowerCase().indexOf("android"))this.parameters.volume=0;else if(n2const.isIOS){this.parameters.autoplay=0;try{"playsInline"in document.createElement("video")&&(this.parameters.autoplay=1,this.parameters.volume=0,t.playsinline=1)}catch(t){}}for(var i in n2const.isIOS&&this.parameters.controls&&(t.use_native_controls=1),1==this.parameters.center&&(t.controls=0),1!=this.parameters.controls&&(t.autohide=1,t.controls=0),+(0<=navigator.platform.toUpperCase().indexOf("MAC")&&-1<navigator.userAgent.search("Firefox"))&&(t.html5=1),this.parameters.query)this.parameters.query.hasOwnProperty(i)&&(t[i]=this.parameters.query[i]);var s={videoId:this.parameters.youtubecode,wmode:"opaque",playerVars:t,events:{onReady:this.onReady.bind(this),onStateChange:function(t){switch(t.data){case YT.PlayerState.PLAYING:case YT.PlayerState.BUFFERING:this.isStatic||this.slide.isActiveWhen(this.slider.currentSlide)&&this.slider.sliderElement.trigger("mediaStarted",this.playerId),e.triggerHandler("n2play");break;case YT.PlayerState.PAUSED:e.triggerHandler("n2pause"),this.state.continuePlay?(this.setState("continuePlay",!1),this.setState("play",!0)):this.setState("play",!1);break;case YT.PlayerState.ENDED:1==this.parameters.loop?(this.player.seekTo(this.parameters.start),this.player.playVideo()):(this.isStatic||this.slider.trigger("mediaEnded",this.playerId),e.triggerHandler("n2stop"),this.setState("play",!1),"next"===this.parameters.ended&&((document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)&&(document.exitFullscreen||document.mozCancelFullScreen||document.webkitExitFullscreen).call(document),this.slider.next()))}}.bind(this)}};(this.parameters["privacy-enhanced"]||jQuery&&jQuery.fn.revolution)&&(s.host="https://www.youtube-nocookie.com"),this.player=new YT.Player(this.playerId+"-frame",s),1==this.parameters.center&&(this.$playerElement.parent().css("overflow","hidden"),this.onResize(),this.slider.sliderElement.on("SliderResize",this.onResize.bind(this)))},a.prototype.onReady=function(){this.slider.stages.done("BeforeShow",this.onBeforeShow.bind(this))},a.prototype.onBeforeShow=function(){var t=parseFloat(this.parameters.volume);0<t?this.setVolume(t):-1!==t&&this.player.mute(),this.layer.isVisible&&this.setState("visible",!0,!0),this.layer.$layer.on("visibilityChange",function(t,e){var i;e?this.setState("visible",!0,!0):(i=this.state.play,this.setState("visible",!1,!0),i&&this.setState("continuePlay",!0))}.bind(this)),this.slide.isVisible&&this.setState("slideVisible",!0,!0),this.slide.$element.on({Hidden:function(){var t=this.state.play;this.setState("slideVisible",!1,!0),t&&this.setState("continuePlay",!0)}.bind(this),Visible:function(){this.setState("slideVisible",!0,!0)}.bind(this)}),this.slide.isActiveWhen()&&this.setState("slide",!0,!0),1==this.parameters.autoplay&&this.slider.visible(this.initAutoplay.bind(this)),this.isStatic||(this.slider.sliderElement.on({CurrentSlideChanged:function(t,e){this.onCurrentSlideChange(e)}.bind(this),mainAnimationStart:function(t,e,i,s){this.onCurrentSlideChange(this.slider.slides[s])}.bind(this)}),parseInt(this.parameters.reset)&&this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s){this.slide.isActiveWhen(this.slider.slides[s])||0!==this.player.getCurrentTime()&&this.player.seekTo(this.parameters.start)}.bind(this))),this.readyDeferred.resolve(),""!==this.parameters["scroll-pause"]?N2Classes.ScrollTracker.add(this.$playerElement,this.parameters["scroll-pause"],function(){this.setState("scroll",!0,!0)}.bind(this),function(){this.setState("continuePlay",!0),this.setState("scroll",!1,!0)}.bind(this)):this.setState("scroll",!0,!0)},a.prototype.onCurrentSlideChange=function(t){var e=this.slide.isActiveWhen(t);e&&1==this.parameters.autoplay&&this.setState("play",!0),this.setState("slide",e,!0)},a.prototype.onResize=function(){var t=this.$playerElement.parent(),e=t.width(),i=t.height()+100,s={width:e,height:i,marginTop:0};s[n2const.rtl.marginLeft]=0,16/9<e/i?(s.height=e*(16/9),s.marginTop=(i-s.height)/2):(s.width=i*(16/9),s[n2const.rtl.marginLeft]=(e-s.width)/2),this.$playerElement.css(s)},a.prototype.initAutoplay=function(){this.setState("InComplete",!0,!0),this.isStatic?(this.setState("play",!0),this.setState("slide",!0,!0)):(this.slider.sliderElement.on("mainAnimationComplete",function(t,e,i,s){this.slide.isActiveWhen(this.slider.slides[s])?(this.setState("play",!0),this.setState("slide",!0,!0)):this.setState("slide",!1,!0)}.bind(this)),this.slide.isActiveWhen()&&(this.setState("play",!0),this.setState("slide",!0,!0)))},a.prototype.setState=function(t,e,i){i=i||!1,this.state[t]=e,i&&(this.state.slideVisible&&this.state.visible&&this.state.play&&this.state.slide&&this.state.InComplete&&this.state.scroll?this.play():this.pause())},a.prototype.play=function(){this.isStopped()&&(this.coverFadedOut===o&&setTimeout(this.fadeOutCover.bind(this),200),this.slider.trigger("mediaStarted",this.playerId),this.player.playVideo())},a.prototype.pause=function(){this.isStopped()||this.player.pauseVideo()},a.prototype.stop=function(){this.player.stopVideo()},a.prototype.isStopped=function(){switch(this.player.getPlayerState()){case-1:case 2:case 5:return!0;default:return!1}},a.prototype.setVolume=function(t){this.player.setVolume(100*t)},a}),N2D("smartslider-frontend");
// source --> https://argyledesign.co.jp/wp/wp-content/plugins/smart-slider-3/Public/SmartSlider3/Slider/SliderType/Simple/Assets/dist/smartslider-simple-type-frontend.min.js?ver=a1ec7496 
(function(){var e=this;e.N2_=e.N2_||{r:[],d:[]},e.N2R=e.N2R||function(){e.N2_.r.push(arguments)},e.N2D=e.N2D||function(){e.N2_.d.push(arguments)}}).call(window),N2D("SmartSliderMainAnimationSimple",["SmartSliderMainAnimationAbstract"],function(t,e){function i(e,i){switch(this.postBackgroundAnimation=!1,this._currentBackgroundAnimation=!1,this.reverseSlideIndex=null,(i=t.extend({delay:0,parallax:0,type:"horizontal",shiftedBackgroundAnimation:"auto"},i)).delay/=1e3,N2Classes.SmartSliderMainAnimationAbstract.prototype.constructor.apply(this,arguments),this.parameters.type){case"no":this.animation=this._mainAnimationNo,this.isNoAnimation=!0;break;case"fade":this.animation=this._mainAnimationFade;break;case"crossfade":this.animation=this._mainAnimationCrossFade;break;case"vertical":e.backgrounds.hasFixed?this.animation=this._mainAnimationFade:0===this.parameters.parallax?this.animation=this._mainAnimationVertical:this.animation=this._mainAnimationVerticalParallax;break;case"vertical-reversed":e.backgrounds.hasFixed?this.animation=this._mainAnimationFade:0===this.parameters.parallax?this.animation=this._mainAnimationVerticalReversed:this.animation=this._mainAnimationVerticalReversedParallax;break;case"horizontal-reversed":0===this.parameters.parallax?this.animation=this._mainAnimationHorizontalReversed:this.animation=this._mainAnimationHorizontalReversedParallax;break;default:0===this.parameters.parallax?this.animation=this._mainAnimationHorizontal:this.animation=this._mainAnimationHorizontalParallax}}return((i.prototype=Object.create(N2Classes.SmartSliderMainAnimationAbstract.prototype)).constructor=i).prototype.changeTo=function(e,i,t,s){this.postBackgroundAnimation&&this.postBackgroundAnimation.prepareToSwitchSlide(e,i),N2Classes.SmartSliderMainAnimationAbstract.prototype.changeTo.apply(this,arguments)},i.prototype.setActiveSlide=function(e){for(var i=0;i<this.slider.slides.length;i++)this.slider.slides[i]!==e&&this.hideSlide(this.slider.slides[i])},i.prototype.hideSlide=function(e){NextendTween.set(e.$element,{x:-1e5*n2const.rtl.modifier}),e.background&&NextendTween.set(e.background.element,{x:-1e5*n2const.rtl.modifier})},i.prototype.showSlide=function(e){NextendTween.set(e.$element.get(0),{x:0,y:0}),e.background&&NextendTween.set(e.background.element,{x:0,y:0})},i.prototype.cleanSlideIndex=function(e){this.hideSlide(this.slider.slides[e])},i.prototype.revertTo=function(e,i){this.slider.slides[i].$element.css("zIndex",""),this.hideSlide(this.slider.slides[i]),N2Classes.SmartSliderMainAnimationAbstract.prototype.revertTo.apply(this,arguments)},i.prototype._initAnimation=function(e,i,t){this.animation(e,i,t)},i.prototype.onBackwardChangeToComplete=function(e,i,t){this.reverseSlideIndex=null,this.onChangeToComplete(e,i,t)},i.prototype.onChangeToComplete=function(e,i,t){null!==this.reverseSlideIndex&&(this.slider.slides[this.reverseSlideIndex].triggerHandler("mainAnimationStartInCancel"),this.reverseSlideIndex=null),this.hideSlide(e),N2Classes.SmartSliderMainAnimationAbstract.prototype.onChangeToComplete.apply(this,arguments)},i.prototype.onReverseChangeToComplete=function(e,i,t){this.hideSlide(e),N2Classes.SmartSliderMainAnimationAbstract.prototype.onReverseChangeToComplete.apply(this,arguments)},i.prototype._mainAnimationNo=function(e,i){this.showSlide(i),e.unsetActive(),i.$element.css("opacity",0),i.background&&i.background.element.css("opacity",0),i.setActive();var t=this.timeline.totalDuration(),s=this.getExtraDelay();this._currentBackgroundAnimation&&this.parameters.shiftedBackgroundAnimation&&this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup(),0===t&&(s+=t=1e-5),this.timeline.set(e.$element,{opacity:0},s),!this._currentBackgroundAnimation&&e.background&&this.timeline.set(e.background.element,{opacity:0},s),this.timeline.set(i.$element,{opacity:1},t),!this._currentBackgroundAnimation&&i.background&&this.timeline.set(i.background.element,{opacity:1},t),this.sliderElement.on("mainAnimationComplete.n2-simple-no",function(e,i,t,s){this.sliderElement.off("mainAnimationComplete.n2-simple-no");var n=this.slider.slides[t],a=this.slider.slides[s];n.$element.css("opacity",""),!this._currentBackgroundAnimation&&n.background&&n.background.element.css("opacity",""),a.$element.css("opacity",""),!this._currentBackgroundAnimation&&a.background&&a.background.element.css("opacity","")}.bind(this)),this.slider.updateInsideSlides([e,i])},i.prototype._mainAnimationFade=function(e,i){e.$element.css("zIndex",23),e.background&&e.background.element.css("zIndex",23),i.$element.css("opacity",0),this.showSlide(i),e.unsetActive(),i.setActive();var t,s,n,a=this.adjustMainAnimation();0!=this.parameters.shiftedBackgroundAnimation&&(s=t=!1,"auto"!=this.parameters.shiftedBackgroundAnimation||e.hasLayers()?t=!0:s=!0,this._currentBackgroundAnimation&&t?(0<(n=a.outDuration-a.extraDelay)&&this.timeline.shiftChildren(n),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):s&&(0<a.extraDelay&&this.timeline.shiftChildren(a.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())),this.timeline.to(e.$element.get(0),a.outDuration,{opacity:0,ease:this.getEase()},a.outDelay),!this._currentBackgroundAnimation&&e.background&&this.timeline.to(e.background.element,a.outDuration,{opacity:0,ease:this.getEase()},a.outDelay),this.timeline.to(i.$element.get(0),a.inDuration,{opacity:1,ease:this.getEase()},a.inDelay),!this._currentBackgroundAnimation&&i.background&&i.background.element.css("opacity",1),this.sliderElement.on("mainAnimationComplete.n2-simple-fade",function(e,i,t,s){this.sliderElement.off("mainAnimationComplete.n2-simple-fade");var n=this.slider.slides[t],a=this.slider.slides[s];n.$element.css({zIndex:"",opacity:""}),!this._currentBackgroundAnimation&&n.background&&n.background.element.css({zIndex:"",opacity:""}),a.$element.css("opacity",""),!this._currentBackgroundAnimation&&a.background&&a.background.element.css("opacity","")}.bind(this)),this.slider.updateInsideSlides([e,i])},i.prototype._mainAnimationCrossFade=function(e,i){e.$element.css("zIndex",23),e.background&&e.background.element.css("zIndex",23),i.$element.css("opacity",0),i.background&&i.background.element.css("opacity",0),this.showSlide(i),e.unsetActive(),i.setActive();var t,s,n,a=this.adjustMainAnimation();0!=this.parameters.shiftedBackgroundAnimation&&(s=t=!1,"auto"!=this.parameters.shiftedBackgroundAnimation||e.hasLayers()?t=!0:s=!0,this._currentBackgroundAnimation&&t?(0<(n=a.outDuration-a.extraDelay)&&this.timeline.shiftChildren(n),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):s&&(0<a.extraDelay&&this.timeline.shiftChildren(a.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())),this.timeline.to(e.$element.get(0),a.outDuration,{opacity:0,ease:this.getEase()},a.outDelay),!this._currentBackgroundAnimation&&e.background&&this.timeline.to(e.background.element.get(0),a.outDuration,{opacity:0,ease:this.getEase()},a.outDelay),this.timeline.to(i.$element.get(0),a.inDuration,{opacity:1,ease:this.getEase()},a.inDelay),!this._currentBackgroundAnimation&&i.background&&this.timeline.to(i.background.element.get(0),a.inDuration,{opacity:1,ease:this.getEase()},a.inDelay),this.sliderElement.on("mainAnimationComplete.n2-simple-fade",function(e,i,t,s){this.sliderElement.off("mainAnimationComplete.n2-simple-fade");var n=this.slider.slides[t],a=this.slider.slides[s];n.$element.css({zIndex:"",opacity:""}),!this._currentBackgroundAnimation&&n.background&&n.background.element.css({zIndex:"",opacity:""}),a.$element.css("opacity",""),!this._currentBackgroundAnimation&&a.background&&a.background.element.css("opacity","")}.bind(this)),this.slider.updateInsideSlides([e,i])},i.prototype._mainAnimationHorizontal=function(e,i,t){this.__mainAnimationDirection(e,i,"horizontal",0,t)},i.prototype._mainAnimationVertical=function(e,i,t){this.showSlide(i),this.__mainAnimationDirection(e,i,"vertical",0,t)},i.prototype._mainAnimationHorizontalParallax=function(e,i,t){this.__mainAnimationDirection(e,i,"horizontal",this.parameters.parallax,t)},i.prototype._mainAnimationVerticalParallax=function(e,i,t){this.showSlide(i),this.__mainAnimationDirection(e,i,"vertical",this.parameters.parallax,t)},i.prototype._mainAnimationHorizontalReversed=function(e,i,t){this.__mainAnimationDirection(e,i,"horizontal",0,!t)},i.prototype._mainAnimationVerticalReversed=function(e,i,t){this.showSlide(i),this.__mainAnimationDirection(e,i,"vertical",0,!t)},i.prototype._mainAnimationHorizontalReversedParallax=function(e,i,t){this.__mainAnimationDirection(e,i,"horizontal",this.parameters.parallax,!t)},i.prototype._mainAnimationVerticalReversedParallax=function(e,i,t){this.showSlide(i),this.__mainAnimationDirection(e,i,"vertical",this.parameters.parallax,!t)},i.prototype.__mainAnimationDirection=function(e,i,t,s,n){var a=[e,i],r="",o=0,l=0,h="",d=1-s/100;"horizontal"===t?(r="x",h="width",l=o=this.slider.responsive.resizeContext.slideOuterWidth,n2const.rtl.isRtl&&(n=!n)):"vertical"===t&&(r="y",h="height",l=o=this.slider.responsive.resizeContext.slideOuterHeight),n&&(o*=-1);var m,c,u,p,g={},y={ease:this.getEase()},S={},f={ease:this.getEase()},A={ease:this.getEase()},b={ease:this.getEase()},x=23,k=22;0!==s?n?(e.$element.addClass("n2-ss-parallax-clip"),x=22,k=23,y[h]=-o,f[h]=-o,o*=d,g[r]=o,g[h]=-o,S[r]=o,S[h]=-o,A[h]=-o,A[r]=l):((m={})[r]=o*=d,NextendTween.set(i.$element,m),i.background&&((c={})[r]=o,NextendTween.set(i.background.element,c)),i.$element.addClass("n2-ss-parallax-clip"),g[r]=l,g[h]=o,y[h]=l,S[r]=o,A[h]=o,b[h]=o,A[r]=-o):((u={})[r]=o,NextendTween.set(i.$element,u),i.background&&((p={})[r]=o,NextendTween.set(i.background.element,p)),g[r]=o,S[r]=o,A[r]=-o),b[r]=-o,e.$element.css("zIndex",x),e.background&&e.background.element.css("zIndex",x),i.$element.css("zIndex",k),i.background&&i.background.element.css("zIndex",k),e.unsetActive(),i.setActive();var v,C,_,z,H,D,B,w,$=this.adjustMainAnimation();y[r]=0,y.n2RoundProps="x,y",f[r]=0,f.n2RoundProps="x,y",this.timeline.fromTo(i.$element.get(0),$.inDuration,g,y,$.inDelay),i.background&&this.timeline.fromTo(i.background.element,$.inDuration,S,f,$.inDelay),0!=this.parameters.shiftedBackgroundAnimation&&(C=v=!1,"auto"!==this.parameters.shiftedBackgroundAnimation||e.hasLayers()?v=!0:C=!0,this._currentBackgroundAnimation&&v?(0<(_=$.outDuration-$.extraDelay)&&this.timeline.shiftChildren(_),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup()):C&&(0<$.extraDelay&&this.timeline.shiftChildren($.extraDelay),this._currentBackgroundAnimation.shiftedPreSetup&&this._currentBackgroundAnimation._preSetup())),A.n2RoundProps="x,y",b.n2RoundProps="x,y",this.timeline.to(e.$element.get(0),$.outDuration,A,$.outDelay),e.background&&this.timeline.to(e.background.element,$.outDuration,b,$.outDelay),this.isTouch&&this.isReverseAllowed&&0===s&&(n?this.slider.blockCarousel&&this.slider.isChangeCarousel("next")||(z=e.getNext()):this.slider.blockCarousel&&this.slider.isChangeCarousel("previous")||(z=e.getPrevious()),z&&z!==i?(this.reverseSlideIndex=z.index,this.enableReverseMode(),a.push(z),"vertical"===t&&this.showSlide(z),z.$element.css(r,o),H={},D={ease:this.getEase()},B={},w={ease:this.getEase()},D[r]=0,H[r]=-o,w[r]=o,B[r]=0,z.$element.trigger("mainAnimationStartIn",[this,e.index,z.index,!1]),this.reverseTimeline.paused(!0),this.reverseTimeline.eventCallback("onComplete",this.onBackwardChangeToComplete,[e,z,!1],this),D.n2RoundProps="x,y",this.reverseTimeline.fromTo(z.$element.get(0),$.inDuration,H,D,$.inDelay),z.background&&this.reverseTimeline.fromTo(z.background.element,$.inDuration,H,D,$.inDelay),w.n2RoundProps="x,y",this.reverseTimeline.fromTo(e.$element.get(0),$.inDuration,B,w,$.inDelay),e.background&&this.reverseTimeline.fromTo(e.background.element,$.inDuration,B,w,$.inDelay)):this.reverseSlideIndex=null),this.sliderElement.on("mainAnimationComplete.n2-simple-fade",function(e,i,t,s){this.sliderElement.off("mainAnimationComplete.n2-simple-fade");var n=this.slider.slides[t],a=this.slider.slides[s];a.$element.css("zIndex","").css(r,"").removeClass("n2-ss-parallax-clip"),a.background&&a.background.element.css("zIndex","").css(r,""),n.$element.css("zIndex","").css(h,"").removeClass("n2-ss-parallax-clip"),n.background&&n.background.element.css("zIndex","").css(h,"")}.bind(this)),this.slider.updateInsideSlides(a)},i.prototype.getExtraDelay=function(){return 0},i.prototype.adjustMainAnimation=function(){var e=this.parameters.duration,i=this.parameters.delay,t=this.timeline.totalDuration(),s=this.getExtraDelay();if(0<t){var n=e+i;if(!(t<n))return{inDuration:e,outDuration:e,inDelay:t-e,outDelay:s,extraDelay:s};e=e*t/n,(i=i*t/n)<s&&(e-=s-i,i=s)}else i+=s;return{inDuration:e,outDuration:e,inDelay:i,outDelay:i,extraDelay:s}},i.prototype.hasBackgroundAnimation=function(){return!1},i}),N2D("SmartSliderResponsiveSimple",["SmartSliderResponsive"],function(e,t){function i(){this.round=1,N2Classes.SmartSliderResponsive.prototype.constructor.apply(this,arguments),this.mainAnimation=this.slider.mainAnimation}return((i.prototype=Object.create(N2Classes.SmartSliderResponsive.prototype)).constructor=i).prototype.init=function(){this.$cache={"n2-ss-slider-2":this.sliderElement.find(".n2-ss-slider-2"),"n2-ss-slider-3":this.sliderElement.find(".n2-ss-slider-3"),"n2-ss-slide":this.sliderElement.find(".n2-ss-slide"),"n2-ss-layers-container":this.sliderElement.find(".n2-ss-layers-container")},this.$cache["n2-ss-slider-3"][0].addEventListener("scroll",function(e){e.currentTarget.scrollTop=0,e.currentTarget.scrollLeft=0},{capture:!0}),this.base={sliderWidth:this.sliderElement.width(),sliderHeight:this.sliderElement.height(),sliderOuterHeight:this.$cache["n2-ss-slider-2"].outerHeight(),sliderInnerHeight:this.$cache["n2-ss-slider-2"].height(),sliderPaddingTop:parseInt(this.$cache["n2-ss-slider-2"].css("paddingTop"))||0,sliderPaddingRight:parseInt(this.$cache["n2-ss-slider-2"].css("paddingRight"))||0,sliderPaddingBottom:parseInt(this.$cache["n2-ss-slider-2"].css("paddingBottom"))||0,sliderPaddingLeft:parseInt(this.$cache["n2-ss-slider-2"].css("paddingLeft"))||0,slideOuterWidth:this.$cache["n2-ss-slide"].width(),slideOuterHeight:this.$cache["n2-ss-slide"].height(),slideWidth:this.$cache["n2-ss-layers-container"].width(),slideHeight:this.$cache["n2-ss-layers-container"].height()};var e=this.sliderElement.find(".n2-ss-slider-background-video");e.length&&(n2const.isVideoAutoplayAllowed()?(this._videoPlayerReady=this.videoPlayerReady.bind(this,e),0<e[0].videoWidth?this._videoPlayerReady():(e[0].addEventListener("error",this.videoPlayerError.bind(this,e),!0),e[0].addEventListener("canplay",this._videoPlayerReady)),e[0].load(),e[0].play()):this.videoPlayerError(e)),this.slider.parameters.dynamicHeight&&(this.addFilter("SlideHeight",this.filterSlideHeightDynamicHeight.bind(this)),this.addFilter("SliderHeight",this.filterSliderHeightDynamicHeight.bind(this)))},i.prototype.filterSlideHeightDynamicHeight=function(e){var i;return this.dynamicHeightSlide!==t&&this.dynamicHeightSlide.background.elements.image!==t?i=this.dynamicHeightSlide.background.elements.image:this.slider.currentSlide&&this.slider.currentSlide.background.elements.image!==t&&(i=this.slider.currentSlide.background.elements.image),i!==t&&0<i.width&&0<i.height&&(e=Math.floor(i.height*this.resizeContext.slideWidth/i.width)),e},i.prototype.filterSliderHeightDynamicHeight=function(e){return 0===this.fullPageMinimumSliderHeight?this.resizeContext.slideHeight+(this.base.sliderHeight-this.base.slideHeight):e},i.prototype.resizeStage1Width=function(){N2Classes.SmartSliderResponsive.prototype.resizeStage1Width.call(this),this.stage1CalculateSliderWidth(),this.stage1CalculateSlideWidth()},i.prototype.stage1CalculateSliderWidth=function(){var e=this.containerElementPadding.outerWidth();this.parameters.upscale||(e=Math.min(e,this.base.sliderWidth)),this.parameters.downscale||(e=Math.max(e,this.base.sliderWidth)),this.resizeContext.sliderWidth=this.applyFilter("SliderWidth",e),this.resizeContext.sliderInnerWidth=this.resizeContext.sliderWidth-(this.base.sliderWidth-this.base.slideOuterWidth)+this.base.sliderPaddingLeft+this.base.sliderPaddingRight,this.resizeContext.sliderRatio=this.resizeContext.sliderWidth/this.base.sliderWidth,this.sliderElement.css({width:this.resizeContext.sliderWidth})},i.prototype.stage1CalculateSlideWidth=function(){var e,i,t,s,n=this.resizeContext.sliderWidth-(this.base.sliderWidth-this.base.slideOuterWidth);this.resizeContext.slideOuterWidth=n,this.$cache["n2-ss-slide"].css("width",n),this.resizeContext.slideWidth=Math.min(n,this.parameters.maximumSlideWidth[this.device]),0<this.fullPageMinimumSliderHeight&&this.parameters.constrainRatio&&(e=this.fullPageMinimumSliderHeight-(this.base.sliderOuterHeight-this.base.slideOuterHeight),i=this.parameters.sizes[this.device],t=this.base.slideHeight,0<i.height&&(t=this.base.slideWidth/i.width*i.height),e<(s=Math.floor(this.resizeContext.slideWidth/this.base.slideWidth*t))&&(this.resizeContext.slideWidth*=e/s)),this.resizeContext.slideRatio=this.resizeContext.slideWidth/this.base.slideWidth;var a=Math.floor((n-this.resizeContext.slideWidth)/2);this.$cache["n2-ss-layers-container"].css({width:this.resizeContext.slideWidth,marginLeft:a,marginRight:a,fontSize:16*this.resizeContext.slideRatio+"px"}),this.sliderElement.css({fontSize:16*this.resizeContext.slideRatio+"px"})},i.prototype.getResizeStage2CSS=function(){var e=[];return this.stage2CalculateSlideHeight(e),this.stage2CalculateSliderHeight(e),e},i.prototype.stage2CalculateSlideHeight=function(e){var i=this.parameters.sizes[this.device],t=this.base.slideHeight;0<i.height&&(t=this.base.slideWidth/i.width*i.height);var s=Math.floor(this.resizeContext.slideWidth/this.base.slideWidth*t);0<this.fullPageMinimumSliderHeight&&!this.parameters.constrainRatio&&(s=Math.max(0,this.parameters.minimumHeight-(this.base.sliderOuterHeight-this.base.slideOuterHeight),this.fullPageMinimumSliderHeight-(this.base.sliderOuterHeight-this.base.slideOuterHeight))),this.minimumSlideHeight=s,this.resizeContext.slideHeight=Math.max(this.applyFilter("SlideHeight",s),this.getMinimumContentHeight(),this.getMinimumStaticContentHeight()),e.push(new N2Classes.CSSData(this.$cache["n2-ss-layers-container"],{height:this.resizeContext.slideHeight}))},i.prototype.stage2CalculateSliderHeight=function(e){var i,t,s;0<this.fullPageMinimumSliderHeight?s=Math.max(this.resizeContext.slideHeight+(this.base.sliderOuterHeight-this.base.slideOuterHeight),this.fullPageMinimumSliderHeight):(s=Math.max(this.resizeContext.slideHeight+(this.base.sliderOuterHeight-this.base.sliderInnerHeight),this.parameters.minimumHeight,this.fullPageMinimumSliderHeight),0<(i=this.parameters.sizes[this.device]).height&&(t=Math.min(i.height,Math.floor(this.resizeContext.sliderWidth/i.width*i.height)),s=Math.max(s,t))),this.resizeContext.sliderHeight=this.applyFilter("SliderHeight",s),this.resizeContext.sliderInnerHeight=this.resizeContext.sliderHeight-(this.base.sliderHeight-this.base.slideOuterHeight)+this.base.sliderPaddingTop+this.base.sliderPaddingBottom,e.push(new N2Classes.CSSData(this.$cache["n2-ss-slider-2"],{height:this.resizeContext.sliderHeight-(this.base.sliderOuterHeight-this.base.sliderInnerHeight)})),this.resizeContext.slideOuterHeight=this.resizeContext.sliderHeight-(this.base.sliderOuterHeight-this.base.slideOuterHeight);for(var n=this.slider.parameters.mainanimation.parallax,a=this.slider.backgrounds.getBackgroundImages(),r=0;r<a.length;r++)0!==n&&(e.push(new N2Classes.CSSData(a[r].element,{width:this.resizeContext.slideOuterWidth,height:this.resizeContext.slideOuterHeight})),this.slider.needBackgroundWrap&&e.push(new N2Classes.CSSData(a[r].$wrapElement,{width:this.resizeContext.slideOuterWidth,height:this.resizeContext.slideOuterHeight})));this.$cache["n2-ss-slide"].css("height",this.resizeContext.slideOuterHeight);var o=Math.floor((this.resizeContext.slideOuterHeight-this.resizeContext.slideHeight)/2);e.push(new N2Classes.CSSData(this.$cache["n2-ss-layers-container"],{marginTop:o,marginBottom:o}))},i.prototype.onStarterSlide=function(e){N2Classes.SmartSliderResponsive.prototype.onStarterSlide.apply(this,arguments),this.mainAnimation.setActiveSlide(this.slider.currentSlide)},i.prototype.videoPlayerError=function(e){e.remove()},i.prototype.videoPlayerReady=function(e){e[0].removeEventListener("canplay",this._videoPlayerReady),e.data("ratio",e[0].videoWidth/e[0].videoHeight),e.addClass("n2-active"),this.slider.ready(function(){this.slider.sliderElement.on("SliderResize",this.resizeVideo.bind(this,e)),this.resizeVideo(e)}.bind(this))},i.prototype.resizeVideo=function(e){var i=e.data("mode"),t=e.data("ratio"),s=this.slider.responsive.resizeContext.slideOuterWidth/this.slider.responsive.resizeContext.slideOuterHeight;"fill"===i?t<s?e.css({width:"100%",height:"auto"}):e.css({width:"auto",height:"100%"}):"fit"===i&&(s<t?e.css({width:"100%",height:"auto"}):e.css({width:"auto",height:"100%"})),e.css({marginTop:0,marginLeft:0}),this.center(e)},i.prototype.center=function(e){var i=e.parent();e.css({marginTop:Math.round((i.height()-e.height())/2),marginLeft:Math.round((i.width()-e.width())/2)})},i}),N2D("SmartSliderSimple",["SmartSliderAbstract"],function(t,e){function i(e,i){this.type="simple",N2Classes.SmartSliderAbstract.prototype.constructor.call(this,e,t.extend({bgAnimations:0,carousel:1},i))}return((i.prototype=Object.create(N2Classes.SmartSliderAbstract.prototype)).constructor=i).prototype.initSlides=function(){1!==this.parameters.mainanimation.parallax&&(this.needBackgroundWrap=!0),N2Classes.SmartSliderAbstract.prototype.initSlides.apply(this,arguments)},i.prototype.initResponsiveMode=function(){this.responsive=new N2Classes.SmartSliderResponsiveSimple(this,this.parameters.responsive),this.responsive.start(),N2Classes.SmartSliderAbstract.prototype.initResponsiveMode.call(this),this.$backgroundsContainer=this.sliderElement.find(".n2-ss-slide-backgrounds")},i.prototype.initMainAnimation=function(){this.disabled.backgroundAnimations||!this.parameters.bgAnimations||n2const.isIE||n2const.isEdge?this.mainAnimation=new N2Classes.SmartSliderMainAnimationSimple(this,this.parameters.mainanimation):this.mainAnimation=new N2Classes.SmartSliderFrontendBackgroundAnimation(this,this.parameters.mainanimation,this.parameters.bgAnimations)},i.prototype.afterRawSlidesReady=function(){if(this.parameters.postBackgroundAnimations&&this.parameters.postBackgroundAnimations.slides){for(var e=0;e<this.slides.length;e++)this.slides[e].postBackgroundAnimation=this.parameters.postBackgroundAnimations.slides[e];delete this.parameters.postBackgroundAnimations.slides}if(this.parameters.bgAnimations&&this.parameters.bgAnimations.slides){for(var i=0;i<this.slides.length;i++)this.slides[i].backgroundAnimation=this.parameters.bgAnimations.slides[i];delete this.parameters.bgAnimations.slides}},i.prototype.findSlideBackground=function(e){var i=N2Classes.SmartSliderAbstract.prototype.findSlideBackground.call(this,e);return i.appendTo(this.sliderElement.find(".n2-ss-slide-backgrounds")),i},i.prototype.forceSetActiveSlide=function(e){e.setActive(),this.mainAnimation.showSlide(e)},i.prototype.forceUnsetActiveSlide=function(e){e.unsetActive(),this.mainAnimation.hideSlide(e)},i.prototype.getAnimationAxis=function(){switch(this.mainAnimation.parameters.type){case"vertical":case"vertical-reversed":return"vertical"}return"horizontal"},i}),N2D("smartslider-simple-type-frontend");