window.nb_={},function(e,t){if(window.nb_={isArray:function(e){return Array.isArray(e)||"[object Array]"===toString.call(e)},inArray:function(e,t){return!(!nb_.isArray(e)||nb_.isUndefined(t))&&-1 an event callback could not be fired because conditions not met => ",t,nb_.eventsListenedTo,n)};"function"==typeof n?nb_.wasEmitted(t)?e():document.addEventListener(t,e):nb_.errorLog("Nimble error => listenTo func param is not a function for event => ",t)},eventsEmitted:[],eventsListenedTo:[],emit:function(e,t){if(!(nb_.isUndefined(t)||t.fire_once)||!nb_.wasEmitted(e)){var n=document.createEvent("Event");n.initEvent(e,!0,!0),document.dispatchEvent(n),nb_.eventsEmitted.push(e)}},wasListenedTo:function(e){return"string"==typeof e&&nb_.inArray(nb_.eventsListenedTo,e)},wasEmitted:function(e){return"string"==typeof e&&nb_.inArray(nb_.eventsEmitted,e)},isInScreen:function(e){if(!nb_.isObject(e))return!1;var t=e.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(t.bottom<0||0<=t.top-n)},isCustomizing:function(){return!1},isLazyLoadEnabled:function(){return!nb_.isCustomizing()&&!1},preloadOrDeferAsset:function(n){if(n=n||{},nb_.preloadedAssets=nb_.preloadedAssets||[],!nb_.inArray(nb_.preloadedAssets,n.id)){var e,o=document.getElementsByTagName("head")[0],t=function(){var e=this;if("style"===n.as)e.setAttribute("rel","stylesheet"),e.setAttribute("type","text/css"),e.setAttribute("media","all");else{var t=document.createElement("script");t.setAttribute("src",n.href),t.setAttribute("id",n.id),"script"===n.as&&t.setAttribute("defer","defer"),o.appendChild(t),i.call(e)}n.eventOnLoad&&nb_.emit(n.eventOnLoad)},i=function(){var e=this;if(e&&e.parentNode&&e.parentNode.contains(e))try{e.parentNode.removeChild(e)}catch(e){nb_.errorLog("NB error when removing a script el",el)}};("font"!==n.as||nb_.hasPreloadSupport())&&(e=document.createElement("link"),"script"===n.as?n.onEvent?nb_.listenTo(n.onEvent,function(){t.call(e)}):t.call(e):(e.setAttribute("href",n.href),"style"===n.as?e.setAttribute("rel",nb_.hasPreloadSupport()?"preload":"stylesheet"):"font"===n.as&&nb_.hasPreloadSupport()&&e.setAttribute("rel","preload"),e.setAttribute("id",n.id),e.setAttribute("as",n.as),"font"===n.as&&(e.setAttribute("type",n.type),e.setAttribute("crossorigin","anonymous")),e.onload=function(){this.onload=null,"font"!==n.as?n.onEvent?nb_.listenTo(n.onEvent,function(){t.call(e)}):t.call(e):n.eventOnLoad&&nb_.emit(n.eventOnLoad)},e.onerror=function(e){nb_.errorLog("Nimble preloadOrDeferAsset error",e,n)}),o.appendChild(e),nb_.preloadedAssets.push(n.id),i.call(n.scriptEl))}},mayBeRevealBG:function(){this.getAttribute("data-sek-src")&&(this.setAttribute("style",'background-image:url("'+this.getAttribute("data-sek-src")+'")'),this.className+=" sek-lazy-loaded",this.querySelectorAll(".sek-css-loader").forEach(function(e){nb_.isObject(e)&&e.parentNode.removeChild(e)}))}},window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n "+t.path)}).fail(function(){nb_.errorLog("ajaxLoadScript failed for => "+t.path)}))})})}),nb_.listenTo("nb-jquery-loaded",function(){jQuery(function(e){sekFrontLocalized.load_front_assets_on_dynamically&&(nb_.ajaxLoadScript({path:sekFrontLocalized.isDevMode?"js/ccat-nimble-front.js":"js/ccat-nimble-front.min.js"}),e.each(sekFrontLocalized.partialFrontScripts,function(e,t){nb_.listenTo(t,function(){nb_.ajaxLoadScript({path:sekFrontLocalized.isDevMode?"js/partials/"+e+".js":"js/partials/"+e+".min.js"})})}))})});