!function(e,t,a){"use strict";function i(){this.scripts=[],this.eventListeners=["click","scroll","touchstart","touchmove","keydown","mousemove"],this.windowWidth=t.innerWidth,this.windowHeight=t.innerHeight,this.noClick=this.preventClick.bind(this),this.load=this.triggerLoad.bind(this),this.shouldDelayForViewTransition=this.shouldDelayForViewTransition(),this.pageCritical(),this.lazyLoadCriticalMedia(),this.loadCriticalAnimations(),this.gatherElements(),this.addEvents()}const n=i.prototype;n.gatherElements=function(){a.querySelectorAll('script[type="salientlazyscript"]').forEach(e=>{this.scripts.push(e)})},n.aboveTheFoldElements=function(e){let t=[];const i=this;a.querySelectorAll(".container-wrap .vc_row:not(.inner_row)").forEach((a,n)=>{if(n<2){if(1==n){if(a.getBoundingClientRect().top>i.windowHeight)return}a.querySelectorAll(e).forEach(e=>{t.push(e)})}});const n=a.querySelectorAll(".woocommerce.archive .products, .archive .posts-container, .nectar_hook_global_section_after_header_navigation, .nectar_hook_before_secondary_header");return n&&n.forEach((a,i)=>{a.querySelectorAll(e).forEach(e=>{t.push(e)})}),t},n.maybeAddAnimationEasing=function(e){let t="";if(this.windowWidth>1e3||this.shouldDelayForViewTransition){let i="cubic-bezier(0.33, 1, 0.68, 1)",n="0s",r="1s";if(e.hasAttribute("data-animation-easing")){const t=e.getAttribute("data-animation-easing");void 0!==this.easings[t]&&(i="cubic-bezier("+this.easings[t]+")")}a.body.hasAttribute("data-cad")&&(r=parseInt(a.body.getAttribute("data-cad"))+"ms"),e.hasAttribute("data-delay")&&""!==e.getAttribute("data-delay")&&(n=parseInt(e.getAttribute("data-delay"))+"ms"),t="transform "+r+" "+i+" "+n+", clip-path "+r+" "+i+" "+n+", opacity "+r+" "+i+" "+n}return t},n.pageCritical=function(){const e=a.querySelector(".container-wrap > .main-content > .row");if(e){const t=e.children;if(t.length>0){const e=t[t.length-1];(e.classList.contains("full-width-section")||e.classList.contains("full-width-content"))&&(a.querySelector(".container-wrap").style.paddingBottom="0")}}const t=a.getElementById("header-outer");if(t){t.querySelectorAll("a[href*='"+location.pathname+"']").forEach(function(e){const t=e.getAttribute("href");if(t&&-1!==t.indexOf("#")){const i=t.substring(t.indexOf("#")).replace(/[^a-zA-Z0-9-]/g,"");if(i.length>0&&"#"!==i&&a.querySelector("div#"+i)){const t=e.parentNode;t.classList.add("no-pseudo-after-transition"),t.classList.remove("current_page_item"),t.classList.remove("current-menu-item"),setTimeout(()=>{t.classList.remove("no-pseudo-after-transition")},100)}a.querySelector('div[data-fullscreen-anchor-id="'+t.substring(t.indexOf("#")+1)+'"]')&&(e.parentNode.classList.remove("current_page_item"),e.parentNode.classList.remove("current-menu-item"))}})}if(this.windowWidth<1e3&&null!==a.querySelector('#header-outer[data-mobile-fixed="1"]')&&null===a.querySelector('#header-outer[data-transparent-header="true"]')){var i=a.querySelector("#header-outer"),n=a.querySelector("#header-space");i&&n&&(n.style.height=i.offsetHeight+"px")}const r=a.querySelector(".container.main-content");if(r){var o=this.stickyOffsetCalc();r.style.setProperty("--nectar-sticky-top-distance",o+"px")}if(a.querySelector("#nectar_fullscreen_rows")){const e=null!==a.querySelector('#nectar_fullscreen_rows[data-mobile-disable="off"]'),t=this.aboveTheFoldElements('.nectar-split-heading[data-text-effect="letter-reveal-bottom"]');this.windowWidth<1e3&&e?t.forEach(e=>{e.setAttribute("data-text-effect","default")}):this.windowWidth>=1e3&&t.forEach(e=>{e.setAttribute("data-text-effect","default")})}this.wooCommerce(),this.parallaxPositioning(),this.backdropFilters()},n.backdropFilters=function(){a.querySelectorAll(".wpb_column").forEach(function(e){if(e.classList.contains("backdrop_filter_blur")){var t=e.closest(".wpb_row");if(t){t.classList.add("row-col-gap");var a=t.getAttribute("data-column-margin")||"default";if("default"!==a){var i=t.querySelector(".span_12");i&&(i.style.columnGap=a)}}}})},n.stickyOffsetCalc=function(){var e=50,t=a.querySelector('#header-outer[data-remove-fixed="0"]'),i=null===a.querySelector('#header-outer[data-format="left-header"]'),n="true"===a.body.getAttribute("data-contained-header"),r=this.windowWidth<1e3,o=a.querySelector("#wpadminbar"),s=a.querySelector('#header-outer[data-shrink-num][data-header-resize="1"]'),l=a.querySelector('#header-outer[data-condense="true"]');if(t&&i){if(e+=t.offsetHeight,n&&(e+=parseInt(getComputedStyle(t).marginTop)),s){var c=parseInt(t.getAttribute("data-padding"))-parseInt(t.getAttribute("data-padding"))/1.8;e-=parseInt(t.getAttribute("data-shrink-num"))||0,e-=2*c}if(!r&&l){var d=a.querySelector('#header-outer[data-format="centered-menu-bottom-bar"] header#top .span_9'),u=a.querySelector("#header-outer #logo"),h=a.querySelector("#header-secondary-outer"),m=h&&h.length>0&&"none"!==h.style.display?h.offsetHeight:0;e=50,e+=t.offsetHeight-(d.offsetTop-parseInt(getComputedStyle(u).marginTop))-parseInt(m)}}return o&&(e+=o.offsetHeight),e},n.parallaxPositioning=function(){const e=t.scrollY,i=this.windowWidth,n=this.windowHeight;a.querySelectorAll('.wpb_column[data-scroll-animation="true"], .nectar-el-parallax-scroll[data-scroll-animation="true"]').forEach(function(r,o){if("true"===r.getAttribute("data-scroll-animation")&&null===a.getElementById("nectar_fullscreen_rows")&&null===r.closest(".n-sticky")&&null===r.closest(".nectar-global-section-megamenu")){let o=r,s=o.querySelector(":scope > .vc_column-inner"),l=o.getAttribute("data-scroll-animation-intensity")?Math.max(Math.min(parseFloat(o.getAttribute("data-scroll-animation-intensity")),8),-8):3;l/=10;const c=!(!o.hasAttribute("data-scroll-animation-mobile")||"true"!==o.getAttribute("data-scroll-animation-mobile"));r.classList.contains("wpb_column")||null!==r.closest(".cell")||(s=r,o=r.parentNode,r.hasAttribute("data-scroll-animation-movement")&&o.setAttribute("data-scroll-animation-movement",r.getAttribute("data-scroll-animation-movement")));const d=o.closest(".col.has-animation");let u=0;if(d){const e=t.getComputedStyle(d).transform.split(",")[5];e&&(u=parseInt(e))}const h=o.getBoundingClientRect().top+e-u,m=o.offsetHeight,f=n/2-m/2;let p="translateY";"transform_x"===o.getAttribute("data-scroll-animation-movement")&&(p="translateX");let y=!1;o.closest(".top-level")&&(y=!0,o.getBoundingClientRect().top+e>n&&(y=!1));let g=!1;a.querySelector(".nectar_hook_global_section_parallax_footer")&&(g=!0);let b=l;i<1025&&(b/=1.2),i<690&&(b/=1.35),s.style.transform=!0===y&&i>1e3||!0===y&&c?p+"("+-e*b+"px) translateZ(0)":!0===g&&i>1e3||!0===g&&c?p+"("+-(e-(h+m)+n)*b+"px) translateZ(0)":i>1e3||c?p+"("+-(e-h+f)*b+"px) translateZ(0)":p+"(0px) translateZ(0)"}})},n.wooCommerce=function(){if(!a.querySelector("body.woocommerce-account #customer_login"))return;const e=a.querySelector(".woocommerce-account .woocommerce > #customer_login");if(!e)return;const t=a.createElement("div");t.className="nectar-form-controls",e.prepend(t),a.querySelectorAll(".woocommerce-account .woocommerce > #customer_login > div:not(.nectar-form-controls)").forEach(function(e,i){const n=e.querySelector(":scope > h2");if(n){const e=n.textContent,r=a.createElement("div");r.className=0===i?"control active":"control",r.textContent=e,t.appendChild(r)}});const i=a.querySelector(".woocommerce-account .woocommerce > #customer_login .u-column1");i&&i.classList.add("visible")},n.splitLineHeadingAnimation=function(e){const t=e.hasAttribute("data-animation-delay")?parseInt(e.getAttribute("data-animation-delay")):0,a=Array.from(e.children),i=e.hasAttribute("data-text-effect")?e.getAttribute("data-text-effect"):"default";if("none"===i||"scroll-opacity-reveal"===i)return;let n="opacity 1s cubic-bezier(0.33, 1, 0.68, 1), transform 1s cubic-bezier(0.33, 1, 0.68, 1), filter 1s cubic-bezier(0.33, 1, 0.68, 1)";e.closest(".nectar-post-grid-item")&&(n=""),a.forEach(e=>{let t=e.textContent;const a=(t=t?t.trim():"").split(" "),n=i.includes("letter-reveal");e.innerHTML="";for(var r=0;r"+a[r]+" ":''+a[r]+" ";n&&e.querySelectorAll("span").forEach(e=>{let t=e.textContent;e.innerHTML="";for(var a=0;a'+t[a]+""})});const r=this.shouldDelayForViewTransition?450:0;setTimeout(()=>{setTimeout(()=>{e.querySelectorAll(".inner").forEach((t,a)=>{const r=e.hasAttribute("data-stagger")&&"true"===e.getAttribute("data-stagger")?40:0;setTimeout(()=>{t.style="","twist-bottom-2"===i&&(t.style.transition="transform 1100ms cubic-bezier(0.165, 0.84, 0.44, 1), opacity 1100ms cubic-bezier(0.165, 0.84, 0.44, 1)"),0==r&&(t.style.transition=n),t.style.transform="translateY(0em)",t.style.opacity="1",t.style.filter="none"},r*a)})},t+10)},r),e.classList.add("animated-in","markup-generated"),e.setAttribute("data-stored-text-effect",i),e.setAttribute("data-text-effect","none")},n.loadCriticalAnimations=function(){const i=this.shouldDelayForViewTransition?450:0;this.easings={linear:"0,0,1,1",easeInSine:"0.12, 0, 0.39, 0",easeOutSine:"0.61, 1, 0.88, 1",easeInOutSine:"0.37, 0, 0.63, 1",easeInQuad:"0.11, 0, 0.5, 0",easeOutQuad:"0.5, 1, 0.89, 1",easeInOutQuad:"0.45, 0, 0.55, 1",easeInCubic:"0.32, 0, 0.67, 0",easeOutCubic:"0.33, 1, 0.68, 1",easeInOutCubic:"0.65, 0, 0.35, 1",easeInQuart:"0.5, 0, 0.75, 0",easeOutQuart:"0.25, 1, 0.5, 1",easeInOutQuart:"0.76, 0, 0.24, 1",easeInQuint:"0.64, 0, 0.78, 0",easeOutQuint:"0.22, 1, 0.36, 1",easeInOutQuint:"0.83, 0, 0.17, 1",easeInExpo:"0.8, 0, 0.2, 0",easeOutExpo:"0.19, 1, 0.22, 1",easeInOutExpo:"0.87, 0, 0.13, 1",easeInCirc:"0.6, 0, 0.98, 0",easeOutCirc:"0, 0.55, 0.45, 1",easeInOutCirc:"0.85, 0, 0.15, 1"};const n=a.getElementById("ajax-loading-screen");if(n&&n.classList.add("loaded"),t.nectarOptions&&t.nectarOptions.header_entrance&&"true"==t.nectarOptions.header_entrance&&a.querySelector("#header-outer")&&a.querySelector("#header-outer").classList.add("entrance-animation"),t.NectarBoxRollHelper&&a.querySelector(".nectar-box-roll")){(new NectarBoxRollHelper).setInitialSize(),a.querySelectorAll("body, html, #ajax-content-wrap, .container-wrap, .blurred-wrap").forEach(e=>{e.classList.add("no-scroll")})}const r=a.querySelector("#page-header-bg .nectar-particles .inner-wrap >*:not(.top-heading)");r&&(r.style.transform="translate3d(0,0,0)",r.style.opacity="1"),setTimeout(()=>{const e=a.querySelector(".widget_shopping_cart .cart_list .empty"),t=a.querySelector(".widget_shopping_cart .cart_list"),i=a.querySelector("#mobile-cart-link"),n=a.querySelector(".cart-menu-wrap.static");!e&&!n&&i&&t&&i.classList.add("first-load")},80),a.querySelectorAll(".vc_row.top-level").forEach(e=>{e.classList.add("loaded")}),this.aboveTheFoldElements('.img-with-aniamtion-wrap:not([data-animation="none"])').forEach(e=>{const t=e.querySelector(".hover-wrap"),a=e.querySelector(".inner"),n=e.querySelector(".img-with-animation"),r=[e,a,t,n];n&&t&&(t.style.transition=this.maybeAddAnimationEasing(n)),this.windowWidth<1e3&&r.forEach(e=>{e&&(e.style.transition="none")}),setTimeout(()=>{r.forEach(e=>{e&&(e.style.opacity="1",e.style.transform="translate3d(0,0,0)")})},i),n&&n.classList.add("animated-in")}),this.aboveTheFoldElements('.wpb_column.has-animation:not([data-animation*="reveal"]), .nectar-fancy-box.has-animation').forEach(e=>{e.style.transition=this.maybeAddAnimationEasing(e),setTimeout(()=>{e.style.transform="translate3d(0,0,0)",e.style.opacity="1"},i),e.classList.add("animated-in")}),this.aboveTheFoldElements('.wpb_column.has-animation[data-animation*="reveal"]').forEach(e=>{[e,e.querySelector(".vc_column-inner")].forEach(t=>{t&&(t.style.transition=this.maybeAddAnimationEasing(e),setTimeout(()=>{t.style.opacity="1",t.style.transform="translate3d(0,0,0)"},i))}),e.classList.add("animated-in")});const o=this.aboveTheFoldElements(".nectar_cascading_images");setTimeout(()=>{o.forEach(e=>{e.querySelectorAll(".inner-wrap, .inner-wrap img").forEach(e=>{e.style.transition="none",e.style.transform="translate3d(0,0,0)",e.style.opacity="1"})})},i);const s=this.aboveTheFoldElements('.row-bg-wrap[data-bg-animation]:not([data-bg-animation="none"])'),l=this.aboveTheFoldElements('.column-image-bg-wrap[data-bg-animation]:not([data-bg-animation="none"])'),c=this.aboveTheFoldElements('.nectar-post-grid:not([data-animation="none"])'),d=this.aboveTheFoldElements(".wpb_animate_when_almost_visible"),u=this.aboveTheFoldElements(".nectar-waypoint-el");if(setTimeout(()=>{s.forEach(e=>{e.parentElement.classList.add("animated-in"),e.classList.add("animated-in"),e.querySelectorAll(".row-bg, .inner-wrap").forEach(e=>{e.classList.add("animated-in")})}),l.forEach(e=>{e.parentElement.classList.add("revealed-bg"),e.classList.add("animated-in"),e.parentElement.querySelectorAll(".column-bg-layer").forEach(e=>{e.classList.add("animated-in")}),e.querySelectorAll(".column-image-bg, .inner-wrap").forEach(e=>{e.classList.add("animated-in")})}),c.forEach(e=>{const t=e.hasAttribute("data-animation-stagger")?e.getAttribute("data-animation-stagger"):90,a=e.querySelectorAll(".nectar-post-grid-item");e.parentElement.classList.add("delay-js-loaded"),a.forEach((e,a)=>{setTimeout(()=>{e.classList.add("animated-in")},a*t)});const i=e.parentElement.querySelector(".nectar-post-grid-filters");i&&i.classList.add("animated-in"),setTimeout(function(){e.classList.add("finished-animating")},950)}),d.forEach(e=>{e.classList.add("wpb_start_animation"),e.classList.add("animated")}),u.forEach(e=>{e.classList.add("animated-in")})},i),this.aboveTheFoldElements(".nectar-split-heading").forEach(e=>{"line-reveal-by-space"===e.getAttribute("data-animation-type")&&this.windowWidth>=1e3?this.splitLineHeadingAnimation(e):setTimeout(()=>{e.setAttribute("data-text-effect","none"),e.classList.add("animated-in"),e.querySelectorAll(".heading-line > div").forEach(e=>{e.style.transform="translate3d(0,0,0)"})},i)}),setTimeout(()=>{this.aboveTheFoldElements(".nectar-text-inline-images__marker").forEach(e=>{e.classList.add("animated-in")}),this.aboveTheFoldElements(".nectar-highlighted-text em").forEach(e=>{e.classList.add("animated")}),this.aboveTheFoldElements(".nectar-animated-title").forEach(e=>{e.classList.add("completed")}),this.aboveTheFoldElements('.nectar-icon-list[data-animate="true"]').forEach(e=>{e.classList.add("completed"),e.querySelectorAll(".nectar-icon-list-item").forEach(e=>{e.classList.add("animated")})}),this.aboveTheFoldElements('.nectar-fancy-ul[data-animation="true"]').forEach(e=>{e.classList.add("animated-in");const t=e.getAttribute("data-list-icon"),i=t.split(" "),n=e.getAttribute("data-color");e.querySelectorAll("ul li").forEach(e=>{const r=a.createElement("i");t&&n&&(r.classList.add("icon-default-style",n),i.forEach(e=>{r.classList.add(e)})),e.style.left="0",e.style.opacity="1",e.prepend(r)})}),this.aboveTheFoldElements('.divider-border[data-animate="yes"], .divider-small-border[data-animate="yes"]').forEach(e=>{e.style.visibility="visible",e.classList.add("completed")})},i),this.aboveTheFoldElements(".nectar-rotating-words-title").forEach(e=>{e.style.opacity="1",e.classList.add("animated-in"),e.classList.add("delay-js-loaded");const t=e.querySelectorAll(".text-wrap > span"),a=e.getAttribute("data-delay"),n=a&&""!==a&&!isNaN(parseInt(a))?parseInt(a):0;setTimeout(()=>{t.forEach(e=>{e.style.transform="translate3d(0,0,0)"})},i+n)}),"undefined"!=typeof SalientRecentProjectsFullScreen){this.aboveTheFoldElements(".nectar_fullscreen_zoom_recent_projects").forEach(t=>{new SalientRecentProjectsFullScreen(e(t))})}this.aboveTheFoldElements(".wpb_gallery_slidesflickity_static_height_style .item-meta").forEach(e=>{const t=e.parentElement.querySelector("img");t&&(e.style.width=t.offsetWidth+"px")}),this.aboveTheFoldElements('.nectar-woo-flickity[data-animation*="fade"]').forEach(e=>{e.classList.add("animated-in");const t=e.querySelectorAll(".product");setTimeout(()=>{t.forEach(e=>{e.style.opacity="1",e.style.transform="translate3d(0,0,0)"})},i)});const h=a.querySelectorAll(".vc_row-o-full-height:not(.top-level)"),m=this.windowHeight;h.forEach(e=>{e.style.minHeight=parseInt(m)+"px";const t=e.querySelector(".col.span_12");t&&(t.style.minHeight=parseInt(m)+"px")});const f=a.querySelectorAll('.row > .top-level:not(.has-global-section) .wpb_wrapper > .nectar-slider-wrap[data-full-width="true"], .row > .top-level:not(.has-global-section) .portfolio-items[data-col-num="elastic"]'),p=a.querySelectorAll('#page-header-bg, .page-header-no-bg, .project-title, .body[data-bg-header="true"], body.single'),y=a.querySelectorAll("#portfolio-extra"),g=a.querySelectorAll("#full_width_portfolio"),b=y.length>0&&0==g.length;if(f.length>0&&0==p.length&&!1===b){const e=a.querySelector(".container-wrap");e&&(e.style.paddingTop="0px")}const w=a.querySelector(".blog-fullwidth-wrap");if(!!(w&&w.querySelectorAll(".span_12.masonry.meta_overlaid").length>0)){w.classList.add("meta-overlaid");const e=a.querySelector(".container-wrap");e&&e.classList.add("meta_overlaid_blog")}this.windowWidth>470&&setTimeout(()=>{const e=function(){};a.querySelectorAll(".portfolio-items:not(.carousel)").forEach(t=>{"undefined"!=typeof SalientPortfolio&&"undefined"!=typeof jQuery&&new SalientPortfolio(jQuery(t),e,"",e)}),a.querySelectorAll(".masonry:not(.auto_meta_overlaid_spaced) > .posts-container").forEach(t=>{if("undefined"!=typeof NectarMasonryBlog&&"undefined"!=typeof jQuery){new NectarMasonryBlog(jQuery(t),e,e),t.querySelectorAll(".masonry-blog-item").forEach(e=>{e.classList.add("animated-in")})}})},200);const v=a.querySelector("body.material #slide-out-widget-area.slide-out-from-right .slide_out_area_close");v&&v.classList.add("hide_until_rendered")},n.shouldDelayForViewTransition=function(){if(!a.startViewTransition)return!1;if(this.windowWidth<1e3)return!1;if("reveal-from-bottom"!==(t.nectarOptions&&t.nectarOptions.view_transitions_effect?t.nectarOptions.view_transitions_effect:""))return!1;if("undefined"==typeof performance||!performance.getEntriesByType)return!1;const e=performance.getEntriesByType("navigation");if(e.length>0){const i=e[0].type,n=a.referrer,r=t.location.origin;if(!n||n.includes("wp-admin"))return!1;if("reload"===i)return!1;if("navigate"===i)return!0;if("back_forward"===i)return new URL(n).origin===r}return!1},n.pageLoadHashCheck=function(){let e=t.location.hash;if(e&&e.length>0){e=e.replace(/[^a-zA-Z0-9-]/g,""),a.getElementById(e)&&this.load()}},n.lazyLoadCriticalMedia=function(){let e=this.aboveTheFoldElements("[data-nectar-img-src]");const t=new Map;(e=e.filter(e=>{if(e.closest(".nectar-post-grid[data-lazy-skip]"))return!1;if(e.closest(".nectar-content-trail"))return!1;const a=e.closest("ul.products");if(a){const e=t.get(a)||0;if(e>=3)return!1;t.set(a,e+1)}return!0})).forEach(e=>{var t=e.getAttribute("data-nectar-img-src");if(t)if(e.classList.contains("nectar-lazy")){e.addEventListener("load",function(){e.classList.add("loaded"),e.removeAttribute("data-nectar-img-src")}),e.src=t;var a=e.getAttribute("data-nectar-img-srcset");a&&(e.setAttribute("srcset",a),e.removeAttribute("data-nectar-img-srcset")),e.parentNode.classList.add("img-loaded")}else e.style.backgroundImage="url('"+t+"')",e.classList.add("loaded"),e.removeAttribute("data-nectar-img-src")}),this.aboveTheFoldElements(".nectar-lazy-video").forEach(e=>{for(var t in e.children){const a=e.children[t];"string"==typeof a.tagName&&"SOURCE"===a.tagName&&(a.src=a.dataset.nectarVideoSrc)}e.load(),e.classList.remove("lazy"),e.classList.add("loaded")})},n.addEvents=function(){this.ocmLinks=a.querySelectorAll(".slide-out-widget-area-toggle a"),this.ocmLinks&&this.ocmLinks.forEach(e=>{e.addEventListener("click",()=>{t.nectarOcmOpen=!0},{once:!0}),e.addEventListener("touchend",()=>{t.nectarOcmOpen=!0},{once:!0})}),setTimeout(()=>{this.linksToPrevent=a.querySelectorAll("a.nectar_video_lightbox, a.pp, a[data-fancybox], a.pretty_photo, .wpb_gallery_slidesflickity_style .cell > a:not(.ext-url-link), .wpb_gallery_slidesflickity_static_height_style .cell > a:not(.ext-url-link), #mobile-cart-link, .mobile-search");let e=this;this.eventListeners.forEach(a=>{t.addEventListener(a,e.load)}),this.linksToPrevent&&this.linksToPrevent.forEach(t=>{t.addEventListener("click",e.noClick)}),this.pageLoadHashCheck()},80)},n.preventClick=function(e){if(!a.body.classList.contains("nectar-delay-js-loaded"))return e.preventDefault(),!1},n.removeEvents=function(){let e=this;this.eventListeners.forEach(a=>{t.removeEventListener(a,e.load)})},n.triggerLoad=async function(e){var t=this;this.removeEvents(),await new Promise(e=>setTimeout(e,30)),this.preloadScripts(),await this.sequentialScripts(),this.dispatchEvents(),(e&&"click"===e.type||e&&"touchstart"===e.type)&&(e.target&&e.target.matches("a")||e.target.closest("a"))&&setTimeout(()=>{this.linksToPrevent&&this.linksToPrevent.forEach(a=>{if(a.removeEventListener("click",t.noClick),a===e.target||a.contains(e.target)){"absolute"!==getComputedStyle(e.target).position&&e.target.click()}})},90),a.body.classList.add("nectar-delay-js-loaded")},n.preloadScripts=function(){this.scripts.forEach(function(e){const t=e.getAttribute("src");if(t){const e=a.createElement("link");e.href=t,e.rel="preload",e.as="script",a.head.appendChild(e)}})},n.sequentialScripts=async function(){const e=this.scripts.shift();return e?(await this.loadScript(e),this.sequentialScripts(e)):Promise.resolve()},n.loadScript=async function(e){if(e.hasAttribute("src"))return new Promise(function(t,i){const n=a.createElement("script");[...e.attributes].forEach(e=>{const t=e.nodeName,a=e.nodeValue;"type"!==t?"data-salient-lazy-type"!==t?"data-nowprocket"!==t&&"data-pagespeed-no-defer"!==t&&n.setAttribute(t,a):n.setAttribute("type",a):n.setAttribute("data-salient-delayed-js-loaded","true")}),n.addEventListener("load",()=>{t()}),n.addEventListener("error",()=>{t()}),e.parentNode.replaceChild(n,e)})},n.dispatchEvents=function(){t.dispatchEvent(new Event("load")),t.dispatchEvent(new Event("salient-delayed-js-loaded"))},new i}(window.jQuery,window,document);