(n=>{n.fn.isInViewport=function(){var e=n(this).offset().top,a=e+n(this).outerHeight(),s=n(window).scrollTop(),t=s+n(window).height();return s'+astraAddon.svgIconClose+""),n(".ast-above-header-navigation-wrap .close").css("right",a-e))},_open_below_fullscreen:function(e){e.preventDefault();var e=n("html").innerWidth(),a=(n("html").css("overflow","hidden"),n("html").innerWidth());n("html").css("margin-right",a-e),n("html").addClass("ast-fullscreen-below-menu-overlay"),n(".ast-below-header-navigation-wrap .close").length||(n(".ast-below-header-navigation-wrap").prepend(''+astraAddon.svgIconClose+""),n(".ast-below-header-navigation-wrap .close").css("right",a-e))},_open_fullscreen:function(e){e.preventDefault();var e=n("html").innerWidth(),a=(n("html").css("overflow","hidden"),n("html").innerWidth());n("html").css("margin-right",a-e),n("html").addClass("ast-fullscreen-menu-overlay"),n("html").addClass("ast-fullscreen-active"),n(".main-header-bar nav .close").length||(n(".main-header-bar nav").prepend(''+astraAddon.svgIconClose+""),n(".main-header-bar nav .close").css("right",a-e)),n(".ast-primary-menu-disabled .ast-header-custom-item .close").length||n(".ast-primary-menu-disabled .ast-header-custom-item .ast-merge-header-navigation-wrap").prepend(''+astraAddon.svgIconClose+"")},_enable_offcanvas_overlay:function(e){e.preventDefault(),n(this).addClass("active");var a=n("html").innerWidth(),s=(n("html").css("overflow","hidden"),n("html").innerWidth());n("html").css("margin-right",s-a),n("html").addClass(e.data.class),setTimeout(function(){n("#cart-accessibility").focus()},100),n(".ast-filter-wrap").hasClass("ast-accordion-layout")&&AstraMenu._accordion_initial_height()},_enable_collapsible_slider:function(e){e.preventDefault(),n(this).toggleClass("active"),n("body").hasClass("ast-header-break-point")&&!astraAddon.off_canvas_enable&&n(this).hasClass("active")&&n("html, body").animate({scrollTop:n(".ast-woocommerce-container").offset().top},500),n(".ast-collapse-filter").slideToggle(),n(".ast-filter-wrap").hasClass("ast-accordion-layout")&&AstraMenu._accordion_initial_height()},_enable_primary_menu_overlay:function(e){e.preventDefault(),n(".main-header-bar-navigation .close").length||n(".main-navigation").before(''+astraAddon.svgIconClose+""),n(".ast-merge-header-navigation-wrap .close").length||n(".ast-merge-header-navigation-wrap").append(''+astraAddon.svgIconClose+""),n("div.ast-masthead-custom-menu-items .close").length||n("div.ast-masthead-custom-menu-items").append(''+astraAddon.svgIconClose+""),astraAddon.sticky_active&&n("html").css("overflow","hidden"),n("html").addClass(e.data.class),n("html").addClass("ast-offcanvas-active")},_open_above_offcanvas:function(e){e.preventDefault(),n(".ast-above-header-section .close").length||n(".ast-above-header-navigation").prepend(''+astraAddon.svgIconClose+""),astraAddon.sticky_active&&n("html").css("overflow","hidden"),n("html").addClass("ast-flyout-above-menu-overlay")},_close_above_offcanvas:function(e){e.target.parentNode.parentNode===this&&(n("html").removeClass("ast-flyout-above-menu-overlay"),n(".ast-above-header .menu-toggle").removeClass("toggled"),n(".ast-above-header").removeClass("toggle-on"),astraAddon.sticky_active)&&n("html").css("overflow","")},_open_below_offcanvas:function(e){e.preventDefault(),n(".ast-below-header-actual-nav .close").length||n(".ast-below-header-actual-nav").prepend(''+astraAddon.svgIconClose+""),astraAddon.sticky_active&&n("html").css("overflow","hidden"),n("html").addClass("ast-flyout-below-menu-overlay")},_close_below_offcanvas:function(e){e.target.parentNode.parentNode===this&&(n("html").removeClass("ast-flyout-below-menu-overlay"),n(".ast-below-header .menu-toggle").removeClass("toggled"),n(".ast-below-header").removeClass("toggle-on"),astraAddon.sticky_active)&&n("html").css("overflow","")},_close_offcanvas:function(e){var a=n(".astra-off-canvas-sidebar"),s=e.target.parentNode.parentNode===this||"astraMenuHashLinkClicked"===e.type;(a.length?s||!a.is(e.target)&&0===a.has(e.target).length:s)&&(e.data=e.data||{},e.data.class=e.data.class||"ast-flyout-menu-overlay ast-offcanvas-active",n("html").css({overflow:"","margin-left":"","margin-right":""}),n("html").removeClass(e.data.class),(a=n(".astra-shop-filter-button")).hasClass("active")&&a.removeClass("active"),setTimeout(function(){n("html").removeClass("ast-offcanvas-active")},300))},_close_above_fullscreen:function(e){n("html").css({overflow:"","margin-right":""}),n("html").removeClass("ast-fullscreen-above-menu-overlay"),n(".ast-above-header-navigation").removeClass("toggle-on").hide(),n(".ast-above-header .menu-toggle").hasClass("toggled")&&n(".ast-above-header .menu-toggle").removeClass("toggled")},_close_below_fullscreen:function(e){n("html").css({overflow:"","margin-right":""}),n("html").removeClass("ast-fullscreen-below-menu-overlay"),n(".ast-below-header .menu-toggle").hasClass("toggled")&&n(".ast-below-header .menu-toggle").removeClass("toggled")},_close_fullscreen:function(e){n("html").css({overflow:"","margin-right":""}),n("html").removeClass("ast-fullscreen-menu-overlay"),setTimeout(function(){n("html").removeClass("ast-fullscreen-active")},500),n(".main-header-bar-navigation").removeClass("toggle-on").hide()},_toggle_menu:function(e){n(".main-header-bar .menu-toggle").hasClass(e.data.class)&&n(".main-header-bar .menu-toggle").removeClass(e.data.class),n("html").hasClass("ast-fullscreen-active")&&setTimeout(function(){n("html").removeClass("ast-fullscreen-active")},500)},_toggle_above_menu:function(e){n(".ast-above-header .menu-toggle").hasClass(e.data.class)&&n(".ast-above-header .menu-toggle").removeClass(e.data.class)},_wp_admin_bar_visible:function(e){var a=n("#wpadminbar");a.length&&(a.isInViewport()?n("body").hasClass("ast-admin-bar-visible")||n("body").addClass("ast-admin-bar-visible"):n("body").hasClass("ast-admin-bar-visible")&&n("body").removeClass("ast-admin-bar-visible"))},_accordion_initial_height:function(e){n(".ast-filter-content").each(function(e,a){var s=n(this).innerHeight();n(a).css("max-height",s+"px")})}},n(function(){AstraMenu.init()})})(jQuery);astraToggleSetupPro=function(e,t,a){var o,s,l,n=!1;if(0<(o="off-canvas"===e||"full-width"===e?(s=document.querySelectorAll("#ast-mobile-popup, #ast-mobile-header"),(l=t.classList.contains("ast-header-break-point")?document.querySelectorAll("#ast-mobile-header .main-header-menu-toggle"):document.querySelectorAll("#ast-desktop-header .main-header-menu-toggle")).length):t.classList.contains("ast-header-break-point")?(s=document.querySelectorAll("#ast-mobile-header"),(n=!(0<(o=(l=document.querySelectorAll("#ast-mobile-header .main-header-menu-toggle")).length)))?1:o):(s=document.querySelectorAll("#ast-desktop-header"),(l=document.querySelectorAll("#ast-desktop-header .main-header-menu-toggle")).length))||n)for(var r=0;r .menu-link, ul.main-header-menu .ast-menu-toggle"):s[c].querySelectorAll("ul.main-header-menu .ast-menu-toggle")).length)for(var d=0;d #ast-desktop-header .ast-desktop-header-content"),n=(s=null!=s&&""!==s?s.querySelector(".main-header-menu-toggle"):document.querySelector("#masthead > #ast-desktop-header .main-header-menu-toggle"),document.querySelector("#masthead > #ast-desktop-header .ast-desktop-header-content .main-header-bar-navigation"));if("desktop"===e.currentTarget.trigger_type)null!==n&&""!==n&&void 0!==n&&(astraToggleClass(n,"toggle-on"),n.classList.contains("toggle-on")?n.style.display="block":n.style.display=""),astraToggleClass(s,"toggled"),s.classList.contains("toggled")?(t.classList.add("ast-main-header-nav-open"),"dropdown"===a&&(l.style.display="block")):(t.classList.remove("ast-main-header-nav-open"),l.style.display="none");else{e=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-bar-navigation"),n=(menu_toggle_all=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-menu-toggle"),"0"),s=!1;if(null!==o.closest("#ast-fixed-header")&&(e=document.querySelectorAll("#ast-fixed-header > #ast-mobile-header .main-header-bar-navigation"),menu_toggle_all=document.querySelectorAll("#ast-fixed-header .main-header-menu-toggle"),n="0",s=!0),void 0===e[n])return!1;for(var r=e[n].querySelectorAll(".menu-item-has-children"),i=0;i{let a=t.querySelector(".ast-account-nav-menu");document.addEventListener("pointerup",function(e){(s||o&&document.querySelector("body").classList.contains("ast-header-break-point"))&&a&&!t.contains(e.target)&&(a.style.right="",a.style.left="")});var e=t.querySelector(".ast-header-account-link");e&&e.addEventListener("click",function(e){(s||o&&document.querySelector("body").classList.contains("ast-header-break-point"))&&(headerSelectionPosition=e.target.closest(".site-header-section"))&&(headerSelectionPosition.classList.contains("site-header-section-left")?(a.style.left=""===a.style.left?"-100%":"",a.style.right=""===a.style.right?"auto":""):(a.style.right=""===a.style.right?"-100%":"",a.style.left=""===a.style.left?"auto":""))})})},astraColorSwitcher={...astraAddon?.colorSwitcher,init:function(){this?.isInit&&(this.switcherButtons=document.querySelectorAll(".ast-builder-color-switcher .ast-switcher-button"),this.switcherButtons?.length)&&(this.switcherButtons?.forEach(e=>{e?.addEventListener("click",this.toggle)}),this.isDarkPalette)&&"system"===this.defaultMode&&this.detectSystemColorScheme()},detectSystemColorScheme:function(){null===this.getCookie("astraColorSwitcherState")&&window.matchMedia("(prefers-color-scheme: dark)").matches&&!this.isSwitched&&this.toggle()},toggle:function(e){e?.preventDefault();e=astraColorSwitcher;e.isSwitched=!e.isSwitched,e.setCookie("astraColorSwitcherState",e.isSwitched,90),e?.forceReload?window.location.reload():(e.switchPaletteColors(),e.switchIcon(),e.isDarkPalette&&e.handleDarkModeCompatibility())},switchPaletteColors:function(){(this.isSwitched?this?.palettes?.switched:this?.palettes?.default)?.forEach((e,t)=>{document.documentElement.style.setProperty("--ast-global-color-"+t,e)})},switchIcon:function(){this.switcherButtons?.forEach(a=>{var[o,s]=a?.querySelectorAll(".ast-switcher-icon");if(o&&s){let[e,t]=this.isSwitched?[s,o]:[o,s];a?.classList.add("ast-animate"),setTimeout(()=>{e?.classList.add("ast-current"),t?.classList.remove("ast-current")},100),setTimeout(()=>a?.classList.remove("ast-animate"),200)}o=this.isSwitched?"defaultText":"switchedText";a?.setAttribute("aria-label",a?.dataset?.[o]||"Switch color palette.")})},handleDarkModeCompatibility:function(){document.body.classList.toggle("astra-dark-mode-enable")},setCookie:(e,t,a)=>{var o=new Date;o.setTime(o.getTime()+24*a*60*60*1e3),document.cookie=`${e}=${t}; expires=${o.toUTCString()}; path=/`},getCookie:e=>{var t;for(t of document.cookie.split("; ")){var[a,o]=t.split("=");if(a===e)return o}return null}};document.addEventListener("astPartialContentRendered",function(){accountMenuToggle()}),window.addEventListener("load",function(){accountMenuToggle(),astraColorSwitcher.init()}),document.addEventListener("astLayoutWidthChanged",function(){accountMenuToggle()});((o,r)=>{var s="astHookExtSticky",i=r.document,a=(jQuery(r).outerWidth(),jQuery(r).width()),n={dependent:[],max_width:"",site_layout:"",break_point:920,admin_bar_height_lg:32,admin_bar_height_sm:46,admin_bar_height_xs:0,stick_upto_scroll:0,gutter:0,wrap:"
",body_padding_support:!0,html_padding_support:!0,active_shrink:!1,shrink:{padding_top:"",padding_bottom:""},sticky_on_device:"desktop",header_style:"none",hide_on_scroll:"no"};function e(t,e){this.element=t,this.options=o.extend({},n,e),this._defaults=n,this._name=s,"1"==this.options.hide_on_scroll&&(this.navbarHeight=o(t).outerHeight()),this.lastScrollTop=0,this.delta=5,this.should_stick=!0,this.hideScrollInterval="",this.init()}e.prototype.stick_me=function(t,e){var o=jQuery(t.element),s=jQuery(r).outerWidth(),i=parseInt(t.options.stick_upto_scroll),a=parseInt(o.parent().attr("data-stick-maxwidth")),n=parseInt(o.parent().attr("data-stick-gutter"));"enabled"==(astraAddon.hook_sticky_header||"")&&(!("desktop"==t.options.sticky_on_device&&astraAddon.hook_custom_header_break_point>s||"mobile"==t.options.sticky_on_device&&astraAddon.hook_custom_header_break_point<=s)&&jQuery(r).scrollTop()>i?"none"==t.options.header_style&&("enabled"==t.options.active_shrink?(t.hasShrink(t,"stick"),i="none",o.hasClass("ast-custom-header")||(i=n),o.parent().css("min-height",o.outerHeight()),o.addClass("ast-header-sticky-active").stop().css({"max-width":a,top:i,"padding-top":t.options.shrink.padding_top,"padding-bottom":t.options.shrink.padding_bottom})):(t.hasShrink(t,"stick"),o.parent().css("min-height",o.outerHeight()),o.addClass("ast-header-sticky-active").stop().css({"max-width":a,top:n,"padding-top":t.options.shrink.padding_top,"padding-bottom":t.options.shrink.padding_bottom})),o.addClass("ast-sticky-shrunk").stop()):t.stickRelease(t)),"enabled"==(astraAddon.hook_sticky_footer||"")&&("desktop"==t.options.sticky_on_device&&astraAddon.hook_custom_footer_break_point>s||"mobile"==t.options.sticky_on_device&&astraAddon.hook_custom_footer_break_point<=s?t.stickRelease(t):(jQuery("body").addClass("ast-footer-sticky-active"),o.parent().css("min-height",o.outerHeight()),o.stop().css({"max-width":a})))},e.prototype.update_attrs=function(){var o,t=this,e=jQuery(t.element),s=parseInt(t.options.gutter),i=t.options.max_width;"none"==t.options.header_style&&(o=e.offset().top||0),"ast-box-layout"!=t.options.site_layout&&(i=jQuery("body").width()),t.options.dependent&&jQuery.each(t.options.dependent,function(t,e){jQuery(e).length&&"on"==jQuery(e).parent().attr("data-stick-support")&&(dependent_height=jQuery(e).outerHeight(),s+=parseInt(dependent_height),o-=parseInt(dependent_height))}),t.options.admin_bar_height_lg&&jQuery("#wpadminbar").length&&782jQuery(t.element).outerHeight()?jQuery("body").addClass("ast-shrink-custom-header"):jQuery("body").removeClass("ast-shrink-custom-header")},e.prototype.stickRelease=function(t){var e=jQuery(t.element);"enabled"==(astraAddon.hook_sticky_header||"")&&"none"==t.options.header_style&&(e.removeClass("ast-header-sticky-active").stop().css({"max-width":"",top:"",padding:""}),e.parent().css("min-height",""),e.removeClass("ast-sticky-shrunk").stop()),"enabled"==(astraAddon.hook_sticky_footer||"")&&jQuery("body").removeClass("ast-footer-sticky-active")},e.prototype.init=function(){var e,t;jQuery(this.element)&&(e=this,t=jQuery(e.element),parseInt(e.options.gutter),t.position().top,"none"==e.options.header_style&&t.wrap(e.options.wrap).parent().css("min-height",t.outerHeight()).attr("data-stick-support","on").attr("data-stick-maxwidth",parseInt(e.options.max_width)),e.update_attrs(),jQuery(r).on("resize",function(){e.stickRelease(e),e.update_attrs(),e.stick_me(e)}),jQuery(r).on("scroll",function(){e.stick_me(e,"scroll")}),jQuery(i).ready(function(t){e.stick_me(e)}))},o.fn[s]=function(t){return this.each(function(){o.data(this,"plugin_"+s)||o.data(this,"plugin_"+s,new e(this,t))})};var d=jQuery("body").width(),_=astraAddon.site_layout||"",h=astraAddon.hook_sticky_header||"",p=astraAddon.hook_shrink_header||"";sticky_header_on_devices=astraAddon.hook_sticky_header_on_devices||"desktop",site_layout_box_width=astraAddon.site_layout_box_width||1200,hook_sticky_footer=astraAddon.hook_sticky_footer||"",sticky_footer_on_devices=astraAddon.hook_sticky_footer_on_devices||"desktop","ast-box-layout"===_&&(d=parseInt(site_layout_box_width)),jQuery(i).ready(function(t){"enabled"==h&&jQuery(".ast-custom-header").astHookExtSticky({sticky_on_device:sticky_header_on_devices,header_style:"none",site_layout:_,max_width:d,active_shrink:p}),"enabled"==hook_sticky_footer&&jQuery(".ast-custom-footer").astHookExtSticky({sticky_on_device:sticky_footer_on_devices,max_width:d,site_layout:_,header_style:"none"})})})(jQuery,window);((n,h)=>{var a="astExtSticky",l=h.document,r=(jQuery(h).outerWidth(),jQuery(h).width()),c=astraAddon.header_builder_active,s={dependent:[],max_width:"",site_layout:"",break_point:920,admin_bar_height_lg:32,admin_bar_height_sm:46,admin_bar_height_xs:0,stick_upto_scroll:0,gutter:0,wrap:"
",body_padding_support:!0,html_padding_support:!0,shrink:{padding_top:"",padding_bottom:""},sticky_on_device:"desktop",header_style:"none",hide_on_scroll:"no"},i=0,p=null!==l.querySelector("#ast-hb-account-login-wrap");function t(e,t){this.element=e,this.options=n.extend({},s,t),this._defaults=s,this._name=a,"1"==this.options.hide_on_scroll&&(this.navbarHeight=n(e).outerHeight()),this.lastScrollTop=0,this.delta=5,this.should_stick=!0,this.hideScrollInterval="",this.init()}t.prototype.stick_me=function(e,t){var a,s,i,d,r,o=jQuery(e.element);jQuery(h).outerWidth();stick_upto_scroll=parseInt(e.options.stick_upto_scroll),max_width=parseInt(o.parent().attr("data-stick-maxwidth")),gutter=parseInt(o.parent().attr("data-stick-gutter")),aboveHeaderSelectorValue=gutter,c&&astraAddon.header_main_shrink&&((o.hasClass("ast-stick-primary-below-wrapper")||o.hasClass("ast-primary-header"))&&1==astraAddon.header_above_stick&&0stick_upto_scroll?(s=o,c&&(r=o.closest(".ast-mobile-header-wrap"),i=o.closest("#ast-desktop-header"),r=0===r.length?o.find(".ast-mobile-header-wrap"):r,i=0===i.length?o.find("#ast-desktop-header"):i,r.find(".ast-mobile-header-content").css("top",o.outerHeight()+gutter),"ast-box-layout"==e.options.site_layout?(d=jQuery("body").width(),r.find(".ast-mobile-header-content").css("width",d)):r.find(".ast-mobile-header-content").css("width",max_width),i.find(".ast-desktop-header-content").css("top",o.outerHeight()+gutter),i.find(".ast-desktop-header-content").css("width",max_width)),"1"===e.options.hide_on_scroll?e.hasScrolled(e,"stick"):"none"==e.options.header_style?(a||o.parent().css("min-height",o.outerHeight()),l.querySelector("body").classList.contains("fl-builder-edit")||o.addClass("ast-sticky-active").stop().css({top:gutter}),o.addClass("ast-sticky-active").stop().css({"max-width":max_width,"padding-top":e.options.shrink.padding_top,"padding-bottom":e.options.shrink.padding_bottom}),(o.hasClass("ast-stick-primary-below-wrapper")||o.hasClass("ast-primary-header"))&&1==astraAddon.header_above_stick&&o.closest("#ast-desktop-header").find(".ast-above-header-bar").outerHeight()<70&&o.parent().css("min-height",o.outerHeight()),o.addClass("ast-sticky-shrunk").stop(),n(l).trigger("addStickyClass"),s.addClass("ast-header-sticked")):"slide"==e.options.header_style?(s.css({top:gutter}),s.addClass("ast-header-slide"),s.css("visibility","visible"),s.addClass("ast-sticky-active").stop().css({transform:p?"none":"translateY(0)"}),n("html").addClass("ast-header-stick-slide-active"),n(l).trigger("addStickyClass"),s.addClass("ast-header-sticked")):"fade"==e.options.header_style&&(s.css({top:gutter}),s.addClass("ast-header-fade"),s.css("visibility","visible"),s.addClass("ast-sticky-active").stop().css({opacity:"1"}),n("html").addClass("ast-header-stick-fade-active"),n(l).trigger("addStickyClass"),s.addClass("ast-header-sticked"))):(e.stickRelease(e),c&&(r=0===(r=o.closest(".ast-mobile-header-wrap")).length?o.find(".ast-mobile-header-wrap"):r,jQuery("body").hasClass("ast-primary-sticky-header-active")&&jQuery("body").hasClass("ast-above-sticky-header-active")&&jQuery("body").hasClass("ast-below-sticky-header-active")||r.find(".ast-mobile-header-content").removeAttr("style"))))},t.prototype.update_attrs=function(){var e,a,t=this,s=jQuery(t.element),i=parseInt(t.options.gutter),d=t.options.max_width;"none"!=t.options.header_style||jQuery("body").hasClass("ast-sticky-toggled-off")?n("#masthead").length&&(e=n("#masthead"),a=e.offset().top+e.outerHeight()+100||0):a=s.offset().top||0,"ast-box-layout"!=t.options.site_layout&&(d=jQuery("body").width()),t.options.dependent&&jQuery.each(t.options.dependent,function(e,t){jQuery(t).length&&"on"==jQuery(t).parent().attr("data-stick-support")&&(dependent_height=jQuery(t).outerHeight(),i+=parseInt(dependent_height),a-=parseInt(dependent_height))}),t.options.admin_bar_height_lg&&jQuery("#wpadminbar").length&&782t.stick_me(t),0)}))},n.fn[a]=function(e){return this.each(function(){n.data(this,"plugin_"+a)||n.data(this,"plugin_"+a,new t(this,e))})};var e,d,o=jQuery("body"),y=o.width(),m=astraAddon.stick_header_meta||"default",_=astraAddon.header_main_stick||"",u=astraAddon.header_main_shrink||"",g=astraAddon.header_above_stick||"",b=astraAddon.header_below_stick||"",k=astraAddon.site_layout||"",v=astraAddon.site_layout_box_width||1200,w=astraAddon.sticky_header_on_devices||"desktop",f=astraAddon.sticky_header_style||"none",j=astraAddon.sticky_hide_on_scroll||"",Q=astraAddon.header_logo_width||"",x=astraAddon.responsive_header_logo_width||"",C=astraAddon.stick_origin_position||"",S=astraAddon.tablet_break_point||768,A=astraAddon.mobile_break_point||544;"disabled"!=m&&("enabled"===m&&(_=astraAddon.header_main_stick_meta||"",g=astraAddon.header_above_stick_meta||"",b=astraAddon.header_below_stick_meta||""),0 #masthead .ast-header-sticked .site-logo-img .astra-logo-svg { width: "+x.desktop+"px; } @media (max-width: "+S+"px) { #masthead .ast-header-sticked .site-logo-img .astra-logo-svg { width: "+x.tablet+"px; } } @media (max-width: "+A+"px) { #masthead .ast-header-sticked .site-logo-img .astra-logo-svg{ width: "+x.mobile+"px; } } ":""!=Q&&(d=""),n("head").append(d)),(_||g||b)&&(n(l).on("addStickyClass",function(){var e="";"1"!=_&&"on"!=_&&"disabled"!=_||(e+=" ast-primary-sticky-header-active"),"1"!=g&&"on"!=g&&"disabled"!=g||(e+=" ast-above-sticky-header-active"),"1"!=b&&"on"!=b&&"disabled"!=b||(e+=" ast-below-sticky-header-active"),n("body").addClass(e)}),n(l).on("removeStickyClass",function(){var e="";"1"!=_&&"on"!=_&&"disabled"!=_||(e+=" ast-primary-sticky-header-active"),"1"!=g&&"on"!=g&&"disabled"!=g||(e+=" ast-above-sticky-header-active"),"1"!=b&&"on"!=b&&"disabled"!=b||(e+=" ast-below-sticky-header-active"),n("body").removeClass(e)}),"ast-box-layout"===k&&(y=parseInt(v)),jQuery(l).on("ready astLayoutWidthChanged",function(e){if("astLayoutWidthChanged"===e.type){if(!(parseInt(_)||parseInt(b)||parseInt(g)))return;jQuery("div.ast-stick-primary-below-wrapper").children().unwrap(),jQuery('div[data-stick-support="on"]').children().unwrap()}var t;"1"==j?("1"==u&&jQuery("#ast-fixed-header").addClass("ast-sticky-shrunk").stop(),"1"!=g&&"on"!=g&&"disabled"!=g&&jQuery("#ast-fixed-header .ast-above-header").hide(),"1"!=_&&"on"!=_&&"disabled"!=_&&jQuery("#ast-fixed-header .main-header-bar").hide(),"1"!=b&&"on"!=b&&"disabled"!=b&&jQuery("#ast-fixed-header .ast-below-header").hide(),jQuery("#ast-fixed-header").astExtSticky({max_width:y,site_layout:k,sticky_on_device:w,header_style:"slide",hide_on_scroll:j})):"none"==f?c?("both"===w?["desktop","mobile"]:[w]).forEach(function(e){var t;"1"!=g&&"on"!=g&&"disabled"!=g||jQuery("#masthead #ast-"+e+"-header .ast-above-header").astExtSticky({max_width:y,site_layout:k,sticky_on_device:w,header_style:f,hide_on_scroll:j}),"1"!=_&&"on"!=_&&"disabled"!=_||"1"!=b&&"on"!=b&&"disabled"!=b?("1"!=_&&"on"!=_&&"disabled"!=_||(t=u?{padding_top:"",padding_bottom:""}:"",jQuery("#masthead #ast-"+e+"-header .main-header-bar").astExtSticky({dependent:["#masthead #ast-"+e+"-header .ast-above-header"],max_width:y,site_layout:k,shrink:t,sticky_on_device:w,header_style:f,hide_on_scroll:j}),jQuery("#masthead #ast-"+e+"-header .ast-custom-header").astExtSticky({max_width:y,site_layout:k,shrink:t,sticky_on_device:w,header_style:f,hide_on_scroll:j})),"1"!=b&&"on"!=b&&"disabled"!=b||jQuery("#masthead #ast-"+e+"-header .ast-below-header").astExtSticky({dependent:["#masthead #ast-"+e+"-header .main-header-bar","#masthead #ast-"+e+"-header .ast-above-header"],max_width:y,site_layout:k,sticky_on_device:w,header_style:f,hide_on_scroll:j})):((jQuery("#masthead #ast-"+e+"-header .main-header-bar-wrap").length?jQuery("#masthead #ast-"+e+"-header .main-header-bar-wrap"):jQuery("#masthead #ast-"+e+"-header .ast-below-header-wrap")).wrap('
'),jQuery("#masthead #ast-"+e+"-header .ast-below-header-wrap").prependTo("#masthead #ast-"+e+"-header .ast-stick-primary-below-wrapper"),jQuery("#masthead #ast-"+e+"-header .main-header-bar-wrap").prependTo("#masthead #ast-"+e+"-header .ast-stick-primary-below-wrapper"),jQuery("#masthead #ast-"+e+"-header .ast-stick-primary-below-wrapper").astExtSticky({dependent:["#masthead #ast-"+e+"-header .ast-above-header"],max_width:y,site_layout:k,shrink:t,sticky_on_device:w,header_style:f,hide_on_scroll:j}))}):("1"!=g&&"on"!=g&&"disabled"!=g||jQuery("#masthead .ast-above-header").astExtSticky({max_width:y,site_layout:k,sticky_on_device:w,header_style:f,hide_on_scroll:j}),"1"!=_&&"on"!=_&&"disabled"!=_||"1"!=b&&"on"!=b&&"disabled"!=b?("1"!=_&&"on"!=_&&"disabled"!=_||(t=u?{padding_top:"",padding_bottom:""}:"",jQuery("#masthead .main-header-bar").astExtSticky({dependent:["#masthead .ast-above-header"],max_width:y,site_layout:k,shrink:t,sticky_on_device:w,header_style:f,hide_on_scroll:j}),jQuery("#masthead .ast-custom-header").astExtSticky({max_width:y,site_layout:k,shrink:t,sticky_on_device:w,header_style:f,hide_on_scroll:j})),"1"!=b&&"on"!=b&&"disabled"!=b||jQuery("#masthead .ast-below-header").astExtSticky({dependent:["#masthead .main-header-bar","#masthead .ast-above-header"],max_width:y,site_layout:k,sticky_on_device:w,header_style:f,hide_on_scroll:j})):(jQuery("#masthead .main-header-bar-wrap").wrap('
'),jQuery("#masthead .ast-below-header-wrap").prependTo(".ast-stick-primary-below-wrapper"),jQuery("#masthead .main-header-bar-wrap").prependTo(".ast-stick-primary-below-wrapper"),jQuery("#masthead .ast-stick-primary-below-wrapper").astExtSticky({dependent:["#masthead .ast-above-header"],max_width:y,site_layout:k,shrink:t,sticky_on_device:w,header_style:f,hide_on_scroll:j}))):(jQuery("#ast-fixed-header").addClass("ast-sticky-shrunk").stop(),"1"!=g&&"on"!=g&&"disabled"!=g&&jQuery("#ast-fixed-header .ast-above-header").hide(),"1"!=_&&"on"!=_&&"disabled"!=_&&jQuery("#ast-fixed-header .main-header-bar").hide(),"1"!=b&&"on"!=b&&"disabled"!=b&&jQuery("#ast-fixed-header .ast-below-header").hide(),"1"!=g&&"on"!=g&&"disabled"!=g&&"1"!=_&&"on"!=_&&"disabled"!=_&&"1"!=b&&"on"!=b&&"disabled"!=b||(t=u?{padding_top:"",padding_bottom:""}:"",jQuery("#ast-fixed-header").astExtSticky({max_width:y,site_layout:k,shrink:t,sticky_on_device:w,header_style:f,hide_on_scroll:j}))),"mobile"!=w&&"both"!=w||(jQuery("#masthead .main-header-menu-toggle").click(function(e){var t,a;jQuery("#masthead .main-header-menu-toggle").hasClass("toggled")?(o.addClass("ast-sticky-toggled-off"),"none"==s.header_style&&(jQuery("#masthead .main-header-bar").hasClass("ast-sticky-active")||jQuery("#masthead .ast-stick-primary-below-wrapper").hasClass("ast-sticky-active"))&&(t=jQuery(h).height(),a=0,jQuery("#masthead .ast-above-header")&&jQuery("#masthead .ast-above-header").length&&(a=jQuery("#masthead .ast-above-header").height()),"1"==j&&jQuery("html").css({overflow:"hidden"}),("1"!=u||"1"!=_&&"on"!=_&&"disabled"!=_||"1"!=b&&"on"!=b&&"disabled"!=b?jQuery("#masthead .main-header-bar.ast-sticky-active"):jQuery("#masthead .ast-stick-primary-below-wrapper")).css({"max-height":t-a+"px","overflow-y":"auto"}))):(o.addClass("ast-sticky-toggled-off"),jQuery("html").css({overflow:""}),("1"!=u||"1"!=_&&"on"!=_&&"disabled"!=_||"1"!=b&&"on"!=b&&"disabled"!=b?jQuery("#masthead .main-header-bar.ast-sticky-active"):jQuery("#masthead .ast-stick-primary-below-wrapper")).css({"max-height":"","overflow-y":""}))}),jQuery("#ast-fixed-header .main-header-menu-toggle").click(function(e){var t;jQuery("#ast-fixed-header .main-header-menu-toggle").hasClass("toggled")?(t=jQuery(h).height(),"1"==j&&jQuery("html").css({overflow:"auto"}),jQuery("#ast-fixed-header").css({"max-height":t+"px","overflow-y":"auto"})):(jQuery("html").css({overflow:""}),jQuery("#ast-fixed-header").css({"max-height":"","overflow-y":""}))}))})),"fade"==astraAddon.header_animation_effect||"slide"==astraAddon.header_animation_effect)&&l.querySelectorAll('#ast-hf-mobile-menu a[href^="#"]').forEach(e=>{e.addEventListener("click",function(e){let t=l.querySelector(".ast-main-header-bar-navigation.toggle-on"),a=l.querySelectorAll(".ast-mobile-menu-trigger-minimal");setTimeout(()=>{t&&(t.style.display="none",t.classList.remove("toggle-on")),a.forEach(e=>{e.classList.remove("toggled"),e.setAttribute("aria-expanded","false")}),l.body.classList.remove("ast-main-header-nav-open")},50)})})})(jQuery,window);let horizontalProductGallerySlider=jQuery(".ast-single-product-thumbnails").flexslider({animation:"slide",controlNav:!1,animationLoop:!1,slideshow:!1,itemWidth:80,itemMargin:15,maxItems:4,asNavFor:".woocommerce-product-gallery",selector:".woocommerce-product-gallery-thumbnails__wrapper > div"}),articleSingle=(window.addEventListener("resize",function(){horizontalProductGallerySlider.resize()}),document.querySelector(".ast-article-single"));if(articleSingle&&articleSingle.classList.contains("ast-product-single-variable")){let t=document.querySelector(".woocommerce-product-gallery .woocommerce-product-gallery__image"),r=document.querySelectorAll(".woocommerce-product-gallery .ast-woocommerce-product-gallery__image img");t&&r&&(observer=new MutationObserver(e=>{e.forEach(e=>{e.attributeName.includes("data-thumb")&&null!==r&&r.forEach(e=>{null!==e.getAttribute("srcset")&&e.getAttribute("srcset").includes(t.getAttribute("data-thumb"))&&e.click()})})})).observe(t,{attributes:!0})}function makeGalleryAccessible(){let i=document.querySelectorAll(".woocommerce-product-gallery-thumbnails__wrapper .ast-woocommerce-product-gallery__image");var e,t;i.length&&(i.forEach((e,a)=>{e.setAttribute("tabindex","0");var t=e.querySelector("img"),t=t&&t.getAttribute("alt")||"Product image "+(a+1);e.setAttribute("aria-label","View "+t),e.classList.contains("flex-active-slide")?e.setAttribute("aria-current","true"):e.setAttribute("aria-current","false"),e.addEventListener("keydown",function(e){var t,r;"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.click(),i.forEach(e=>{e.setAttribute("aria-current","false")}),this.setAttribute("aria-current","true")),"Tab"!==e.key||e.shiftKey||a!==i.length-1||document.querySelector(".ast-single-product-thumbnails")&&-1!==(r=(t=Array.from(document.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])')).filter(e=>{e=window.getComputedStyle(e);return"none"!==e.display&&"hidden"!==e.visibility})).indexOf(this))&&r{e.setAttribute("aria-current","false")}),this.setAttribute("aria-current","true")})}),e=document.querySelector(".flex-prev"),t=document.querySelector(".flex-next"),e&&(e.setAttribute("aria-label","Previous image"),e.classList.contains("flex-disabled")?e.setAttribute("aria-disabled","true"):(e.setAttribute("aria-disabled","false"),e.setAttribute("tabindex","0"))),t)&&(t.setAttribute("aria-label","Next image"),t.classList.contains("flex-disabled")?t.setAttribute("aria-disabled","true"):(t.setAttribute("aria-disabled","false"),t.setAttribute("tabindex","0")))}function triggerGalleryImageMutation(){let b=document.querySelector(".woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image img");if(b){let u=b?.getAttributeNames().map(e=>({name:e,value:b.getAttribute(e)}))||[],o=(u.push({name:"srcset",value:""}),document.querySelector("#ast-vertical-slider-inner")),c=document.querySelector("#ast-vertical-navigation-prev"),s=document.querySelector("#ast-vertical-navigation-next"),n=!1,d=new MutationObserver(e=>{for(var t of e)if("attributes"===t.type&&"src"===t.attributeName){if(n)return;n=!0;var r=t.target?.getAttribute("src"),i=document.querySelectorAll(".woocommerce-product-gallery-thumbnails__wrapper .ast-woocommerce-product-gallery__image"),l=t.target?.getAttribute("data-src");let e=!1;for(let a=1;ab?.setAttribute(e,t)),setTimeout(()=>{var e;t?.click(),o&&"function"==typeof MoveSlide&&(e=r.clientHeight+10,o?.setAttribute("ast-translate",(a-4)*e),MoveSlide("next",c,s)),n=!1,d.observe(b,{attributes:!0})},50);break}}e||(d.disconnect(),i[0]&&((t=i[0])?.querySelector("img")?.setAttribute("src",r),t?.querySelector("img")?.setAttribute("data-original-src",l),t?.click()),o&&"function"==typeof MoveSlide&&MoveSlide("prev",c,s),setTimeout(()=>n=!1),d.observe(b,{attributes:!0}))}});b&&d.observe(b,{attributes:!0})}}document.addEventListener("DOMContentLoaded",function(){triggerGalleryImageMutation(),makeGalleryAccessible()});let triggerActiveAttributeButton=()=>{var t=document.querySelector(".ast-variation-button-group .ast-single-variation.active");t&&t.click()},productVariation=i=>{var t=document.querySelectorAll(".ast-single-variation"),e=document.querySelector(".reset_variations");e&&e.addEventListener("click",t=>{document.querySelectorAll(".ast-single-variation").forEach(t=>{t.classList.remove("active"),t.style.opacity="1",t.style.pointerEvents="inherit",t.setAttribute("aria-pressed","false")})});document.querySelectorAll(".ast-single-variation").forEach((t,e)=>{t.setAttribute("tabindex","0"),t.setAttribute("role","button"),t.setAttribute("aria-pressed",t.classList.contains("active")?"true":"false");var a=t.getAttribute("data-slug")||"variation option",i=t.closest(".ast-variation-button-group"),i=i&&i.previousElementSibling?i.previousElementSibling.textContent.trim():"Product variation";t.setAttribute("aria-label",i+": "+a)}),t&&t.forEach(e=>{e.addEventListener("keydown",t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e.click())}),e.addEventListener("click",t=>{var e=t.target.closest(".ast-variation-button-group"),e=(e&&(e=e.querySelectorAll(".ast-single-variation"))&&e.forEach(t=>{t.classList.remove("active"),t.setAttribute("aria-pressed","false")}),document.querySelector(".ast-product-single-variable form .variations")),e=(e&&(allVariationSelector=e.querySelectorAll("select"),allVariationButton=e.querySelectorAll(".ast-variation-button-group"),allVariationSelector)&&allVariationButton&&setTimeout(()=>{allVariationSelector.forEach(t=>{var e=t.querySelectorAll("option");let a=[];e.forEach(t=>{a.push(t.getAttribute("value"))});e=t.nextElementSibling;let i=null!==e?e.querySelectorAll(".ast-single-variation"):null;null!==i&&i.forEach(t=>{i.forEach(t=>{a.includes(t.getAttribute("data-slug"))?(t.style.opacity="1",t.style.pointerEvents="inherit",t.setAttribute("aria-disabled","false"),t.setAttribute("tabindex","0")):(t.style.opacity=".5",t.style.pointerEvents="none",t.setAttribute("aria-disabled","true"),t.setAttribute("tabindex","-1"))})})})},100),t.target.getAttribute("data-slug")),a=t.target.closest("td").querySelector("select");e&&a&&(t.target.classList.add("active"),t.target.setAttribute("aria-pressed","true"),a.value=e,a.dispatchEvent(new Event("change",{bubbles:!0})),triggerActiveAttributeButton()),null!=i&&i.flexslider(0)})})};document.addEventListener("DOMContentLoaded",function(t){productVariation()}),document.addEventListener("astUpdateSingleProductVariations",function(){productVariation()}),jQuery(".composite_data").on("wc-composite-initializing",function(t,e){e.actions.add_action("component_scripts_initialized",function(){productVariation()},100)}),document.addEventListener("DOMContentLoaded",function(){new URLSearchParams(window.location.search).forEach((t,e)=>{var a=document.querySelector(`.ast-single-variation[data-slug="${t}"]`);a&&(a.classList.add("active"),a=document.querySelector(`select[name="${e}"]`))&&(a.value=t,a.dispatchEvent(new Event("change",{bubbles:!0})))})});let getHeaderHeightIfSticky=()=>{var e=document.querySelector("body"),o=document.querySelector(".ast-above-sticky-header-active"),c=document.querySelector(".ast-primary-sticky-header-active"),r=document.querySelector(".ast-below-sticky-header-active"),a=document.querySelector(".admin-bar"),s=document.querySelectorAll(".ast-sticky-active");let i,n;if(e&&(e.classList.contains("woocommerce-shop")||e.classList.contains("ast-woo-shop-archive"))&&(i=document.querySelector(".woocommerce-shop.ast-left-sidebar #content .ast-container, .woocommerce-shop.ast-right-sidebar #content .ast-container, .ast-woo-shop-archive.ast-left-sidebar #content .ast-container, .ast-woo-shop-archive.ast-right-sidebar #content .ast-container"),n=document.querySelector(".woocommerce-shop.ast-left-sidebar #content .ast-container > .widget-area, .woocommerce-shop.ast-right-sidebar #content .ast-container > .widget-area, .ast-woo-shop-archive.ast-left-sidebar #content .ast-container > .widget-area, .ast-woo-shop-archive.ast-right-sidebar #content .ast-container > .widget-area")),e&&e.classList.contains("woocommerce-cart")&&astraAddon.cart_sticky_cart_totals&&(i=document.querySelector("#ast-cart-wrapper"),n=document.querySelector("#ast-cart-wrapper .cart-collaterals")),e&&e.classList.contains("single-product")&&(i=document.querySelector("#ast-sticky-row-summary"),n=document.querySelector("#ast-sticky-row-summary .summary")),e&&e.classList.contains("woocommerce-checkout")&&astraAddon.checkout_order_review_sticky&&(i=document.querySelector(".woocommerce-checkout"),n=document.querySelector("#ast-order-review-wrapper")),s){let t=0;s.forEach(e=>{t+=e.clientHeight}),i&&(o||c||r)&&n&&t?(n.style.position="sticky",n.style.top=a?t+50+"px":t+20+"px"):i&&n&&(n.style.position="sticky",n.style.top=a?"3em":"1em")}},desktopElement=document.querySelector(".ast-desktop");desktopElement&&(window.onscroll=function(e){getHeaderHeightIfSticky()});function CartCrossSellsSummaryHeight(){var e=document.querySelector("body"),t=document.querySelector(".cross-sells");e.classList.contains("woocommerce-cart")&&t&&(e=t.querySelectorAll(".products > li"))&&e.forEach(e=>{e&&(e=e.querySelectorAll(".astra-shop-summary-wrap"))&&e.forEach(e=>{var t=e.querySelector(".price"),r=e.querySelector("a.button"),o=e.querySelector("a.ast-quick-view-button");(t||r)&&(t=(t?t.clientHeight:0)+(r?r.clientHeight:0)+(o?o.clientHeight:0)+15)&&(e.style.minHeight=t+"px")})})}function CartCrossSellsSummaryHeightResize(){let t;window.addEventListener("resize",function(e){clearTimeout(t),t=setTimeout(function(){CartCrossSellsSummaryHeight()},500)})}window.addEventListener("DOMContentLoaded",e=>{CartCrossSellsSummaryHeight()}),CartCrossSellsSummaryHeightResize();function customCoupon(){var e=document.querySelector("div.woocommerce"),o=document.querySelector("body");if(e&&(o.classList.contains("woocommerce-checkout")||o.classList.contains("woocommerce-cart")))e.addEventListener("click",function(e){var o,c,t,r;e=e,o=document.querySelector("#coupon_code"),c=document.querySelector('button[name="apply_coupon"]'),t=document.querySelector("#ast-coupon-code"),(r=document.querySelector("#ast-checkout-coupon .coupon"))&&e.target&&"ast-coupon-trigger"===e.target.id&&(r.style.display="flex",e.target.style.display="none",t?.focus()),o&&c&&t&&e.target&&"ast-apply-coupon"===e.target.id&&(document.querySelector(".woocommerce-notices-wrapper .woocommerce-error.coupon-error-notice")?.remove(),o.value=t.value,c.click())}),e.addEventListener("keypress",function(e){13===(e.which||e.keyCode)&&document.querySelector("#ast-apply-coupon")?.click()}),jQuery(document.body).on("applied_coupon",()=>{var e=document.querySelector(".coupon-error-notice"),o=document.querySelector(".woocommerce-notices-wrapper");e&&o&&(e?.classList?.add("woocommerce-error"),o?.append(e))}),jQuery(document.body).on("applied_coupon_in_checkout",()=>{document.querySelector("#ast-checkout-coupon .coupon-error-notice")?.remove();var e=document.querySelector(".coupon-error-notice");e&&document.querySelector("#ast-checkout-coupon")?.append(e)})}window.addEventListener("DOMContentLoaded",e=>{customCoupon()});function cartQuantityUpdater(){var e=document.querySelector("body");pageParentClass=document.querySelector("div.woocommerce");let t;e.classList.contains("woocommerce-cart")&&pageParentClass&&pageParentClass.addEventListener("change",function(e){e.target&&e.target.classList.contains("qty")&&(null!=t&&clearTimeout(t),""!=e.target.value)&&(t=setTimeout(function(){document.querySelector('[name="update_cart"]').click()},1e3))})}window.addEventListener("DOMContentLoaded",e=>{cartQuantityUpdater()});function modernLayoutInputs(){var e=document.querySelectorAll(".woocommerce input, .woocommerce select, .woocommerce textarea");e&&e.forEach(e=>{e.addEventListener("input",function(e){addAnimateClass(e.currentTarget)}),addPlaceholder(e),addRequiredFields(e),addAnimateClass(e)})}function addAnimateClass(e){var t,a="ast-animate-input",s=e.closest(".form-row");s&&((""!==(t="select"===e.tagName||e.classList.contains("select2-hidden-accessible")?e.querySelector(":selected").textContent:e.value)||" "!==t&&"select"===e.tagName)&&s.classList.add(a),"hidden"===t&&s.classList.remove(a),""===t?s.classList.remove(a):s.classList.add(a))}function addPlaceholder(e){var t;e.closest(".form-row")&&!e.getAttribute("placeholder")&&(t=e.closest(".form-row").querySelector("label"))&&e.setAttribute("placeholder",t.textContent)}function addRequiredFields(t){var a=t.closest(".form-row");if(a){a=a.classList.contains("validate-required");let e=t.getAttribute("placeholder");a&&""!==e&&!e.includes("*")&&(e+=" *"),t.setAttribute("placeholder",e)}}document.addEventListener("DOMContentLoaded",function(e){var t=document.querySelector("body");t&&!t.classList.contains("cartflows_step-template")&&modernLayoutInputs()});function display_mega_menu_on_load(){var e=document.querySelectorAll(".content-width-mega");if(0{jQuery(f).hover(function(){var e,t,a,s,r,n,i,d,l,u=jQuery(f).parents(".ast-container"),m=u.children(),u=u.parent(),o=jQuery(this);(o.hasClass("full-width-mega")||o.hasClass("full-stretched-width-mega"))&&(m=jQuery(m).closest(".ast-container")),parseInt(window.innerWidth)>parseInt(astra.break_point)&&"ast-hf-mobile-menu"!==o.parent().attr("id")&&"ast-desktop-toggle-menu"!==o.parent().attr("id")?(e=m.width(),t=m.offset(),m=(a=o.offset()).left-(t.left+parseFloat(m.css("paddingLeft"))),d=e-(a.left+t.left)+130,s=u.width(),r=u.offset(),r=a.left-(r.left+parseFloat(u.css("paddingLeft"))),o.hasClass("custom-width-mega")&&(i=(i=window.getComputedStyle(o.find(".astra-mega-menu-width-custom")[0],"::before").getPropertyValue("content")||1200).replace(/[^0-9]/g,""),(i=parseInt(i))<=e?(l=parseInt(e-i),n=parseInt(m-l),t.left):(l=parseInt(i-e),n=parseInt(m+l),t.left)),o.hasClass("menu-container-width-mega")&&(l=jQuery(f).parents(".main-navigation"),u.hasClass("ast-above-header")?l=jQuery(".ast-above-header-navigation"):u.hasClass("ast-below-header")&&(l=jQuery(".ast-below-header-actual-nav")),e=($target_container=l.length?l:o.parent("ul")).width()+"px",u=jQuery(window).width()-($target_container.offset().left+$target_container.outerWidth()),l=o.offset(),u=jQuery(window).width()-u-l.left,m=parseInt($target_container.width()-u),d=parseInt(e)-o.outerWidth()-parseInt($target_container.width()-u)),o.hasClass("full-width-mega")?(o.find(".astra-full-megamenu-wrapper").css({left:"-"+r+"px",width:s}),o.find(".astra-megamenu").css({width:e})):o.hasClass("full-stretched-width-mega")?o.find(".astra-full-megamenu-wrapper").css({left:"-"+r+"px",width:s}):o.hasClass("custom-width-mega")?astra.isRtl?o.find(".astra-mega-menu-width-custom").css({width:i+"px"}):o.find(".astra-mega-menu-width-custom").css({left:"-"+n+"px",width:i+"px"}):o.hasClass("content-width-mega")?astra.isRtl?(l=t.left+e-(a.left+o.outerWidth()),o.find(".astra-megamenu").css({right:"-"+l+"px",width:e}).data("astra-hover-right",l)):o.find(".astra-megamenu").css({left:"-"+m+"px",width:e}):astra.isRtl?(o.find(".astra-megamenu").css({right:"-"+d+"px",width:e}),o.data("astra-hover-right",d)):o.find(".astra-megamenu").css({left:"-"+m+"px",width:e})):astra.isRtl?(o.find(".astra-megamenu").css({right:"",width:"","background-image":""}),o.find(".astra-full-megamenu-wrapper").css({right:"",width:"","background-image":""})):(o.find(".astra-megamenu").css({left:"",width:"","background-image":""}),o.find(".astra-full-megamenu-wrapper").css({left:"",width:"","background-image":""}))}),jQuery(f).mouseenter(function(){document.dispatchEvent(new CustomEvent("astra_mega_menu_on_hover",{detail:{}}))})})}apply_megamenu_width_styles(),document.addEventListener("astMenuHoverStyleChanged",function(){apply_megamenu_width_styles()}),[].slice.call(items).forEach(function(h){var e=jQuery(h).parents(".ast-container"),g=e.children(),c=e.parent(),p=jQuery(h);(p.hasClass("full-width-mega")||p.hasClass("full-stretched-width-mega"))&&(g=jQuery(g).closest(".ast-container"),p.find(".astra-full-megamenu-wrapper").removeClass("ast-hidden")),p.find(".menu-link").focusin(function(e){var t,a,s,r,n,i,d,l,u,m,o,f;astra.is_header_footer_builder_active||(p.find(".sub-menu").addClass("astra-megamenu-focus"),p.find(".astra-full-megamenu-wrapper").addClass("astra-megamenu-wrapper-focus")),p.find(".sub-menu").removeClass("ast-hidden"),parseInt(jQuery(window).width())>parseInt(astra.break_point)&&"ast-hf-mobile-menu"!==p.parent().attr("id")&&"ast-desktop-toggle-menu"!==p.parent().attr("id")?(t=g.width(),a=g.offset(),l=(s=p.offset()).left-(a.left+parseFloat(g.css("paddingLeft"))),u=t-(s.left+a.left)+130,r=c.width(),f=c.offset(),f=s.left-(f.left+parseFloat(c.css("paddingLeft"))),p.hasClass("custom-width-mega")&&(d=(d=window.getComputedStyle(p.find(".astra-mega-menu-width-custom")[0],"::before").getPropertyValue("content")||1200).replace(/[^0-9]/g,""),i=(d=parseInt(d))<=t?(i=parseInt(t-d),n=parseInt(l-i),a.left-n):(i=parseInt(d-t),n=parseInt(l+i),a.left+n)),p.hasClass("menu-container-width-mega")&&(o=jQuery(h).parents(".main-navigation"),c.hasClass("ast-above-header")?o=jQuery(".ast-above-header-navigation"):c.hasClass("ast-below-header")&&(o=jQuery(".ast-below-header-actual-nav")),t=($target_container=o.length?o:p.parent("ul")).width()+"px",o=jQuery(window).width()-($target_container.offset().left+$target_container.outerWidth()),m=p.offset(),o=jQuery(window).width()-o-m.left,l=parseInt($target_container.width()-o),u=parseInt(t)-p.outerWidth()-parseInt($target_container.width()-o)),p.hasClass("full-width-mega")?(p.find(".astra-full-megamenu-wrapper").css({left:"-"+f+"px",width:r}),p.find(".astra-megamenu").css({width:t})):p.hasClass("full-stretched-width-mega")?p.find(".astra-full-megamenu-wrapper").css({left:"-"+f+"px",width:r}):p.hasClass("custom-width-mega")?astra.isRtl?p.find(".astra-mega-menu-width-custom").css({right:"-"+i+"px",width:d+"px"}):p.find(".astra-mega-menu-width-custom").css({left:"-"+n+"px",width:d+"px"}):p.hasClass("content-width-mega")?astra.isRtl?(m=a.left+t-(s.left+p.outerWidth()),p.find(".astra-megamenu").css({right:"-"+m+"px",width:t}).data("astra-hover-right",m)):p.find(".astra-megamenu").css({left:"-"+l+"px",width:t}):(f=void 0!==(o=p.data("astra-hover-right"))?o:u,astra.isRtl?p.find(".astra-megamenu").css({right:"-"+f+"px",width:t}).data("astra-hover-right",f):p.find(".astra-megamenu").css({left:"-"+l+"px",width:t}))):astra.isRtl?(p.find(".astra-megamenu").css({right:"",width:"","background-image":""}),p.find(".astra-full-megamenu-wrapper").css({right:"",width:"","background-image":""})):(p.find(".astra-megamenu").css({left:"",width:"","background-image":""}),p.find(".astra-full-megamenu-wrapper").css({left:"",width:"","background-image":""}))}),astra.is_header_footer_builder_active||(p.find(".menu-link").keydown(function(e){9==e.which&&e.shiftKey&&(p.find(".sub-menu").removeClass("astra-megamenu-focus"),p.find(".astra-full-megamenu-wrapper").removeClass("astra-megamenu-wrapper-focus"))}),jQuery(h).find(".sub-menu .menu-item").last().focusout(function(){p.find(".sub-menu").removeClass("astra-megamenu-focus"),p.find(".astra-full-megamenu-wrapper").removeClass("astra-megamenu-wrapper-focus")}),jQuery(window).click(function(){p.find(".sub-menu").removeClass("astra-megamenu-focus"),p.find(".astra-full-megamenu-wrapper").removeClass("astra-megamenu-wrapper-focus")})),p.click(function(e){jQuery(e.target).hasClass("menu-item")&&e.stopImmediatePropagation()})});(()=>{var e;function o(e){var t=(t=document.body.className).replace(e,"");document.body.className=t}function d(e){e.style.display="block",setTimeout(function(){e.style.opacity=1},1)}function n(e){e.style.opacity="",setTimeout(function(){e.style.display=""},200)}r="iPhone"==navigator.userAgent.match(/iPhone/i)?"iphone":"",e="iPod"==navigator.userAgent.match(/iPod/i)?"ipod":"",document.body.className+=" "+r,document.body.className+=" "+e;for(var t=document.querySelectorAll("a.astra-search-icon:not(.slide-search)"),a=0;t.length>a;a++)t[a].onclick=function(e){var t,a,o,n;if(e.preventDefault(),e=e||window.event,this.classList.contains("header-cover"))for(var s=document.querySelectorAll(".ast-search-box.header-cover"),c=astraAddon.is_header_builder_active||!1,r=0;r