var getParents=function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),a=t.length;0<=--a&&t.item(a)!==this;);return-1e?(null!=i[a]&&i[a].classList.remove("toggled"),document.body.classList.remove("ast-header-break-point"),document.body.classList.add("ast-desktop"),astraTriggerEvent(document.body,"astra-header-responsive-enabled")):(document.body.classList.add("ast-header-break-point"),document.body.classList.remove("ast-desktop"),astraTriggerEvent(document.body,"astra-header-responsive-disabled")))};e(),AstraNavigationMenu=function(e){for(var t=0;tMenu Toggle",e[t].insertBefore(a,e[t].childNodes[1]);var s=e[t].getBoundingClientRect().left,n=window.innerWidth,r=parseInt(n)-parseInt(s),i=!1;if(r<500&&(i=!0),i){e[t].classList.add("ast-left-align-sub-menu");for(var l=e[t].querySelectorAll(".menu-item-has-children, .page_item_has_children"),o=0;o a, .ast-header-break-point .main-header-menu .page_item_has_children > a, .ast-header-break-point ul.main-header-menu .ast-menu-toggle");else s=l[t].querySelectorAll("ul.main-header-menu .ast-menu-toggle");AstraToggleMenu(s)}document.body.addEventListener("astra-header-responsive-enabled",function(){if(0