window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var i=0;i<this.length;i++)e.call(t,this[i],i,this)}),"undefined"==typeof Element||Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.closest=function(e){var t=this;do{if(Element.prototype.matches.call(t,e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function e(t,i){"use strict";if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var s=Object(t),l=1;l<arguments.length;l++){var r=arguments[l];if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(s[o]=r[o])}return s},writable:!0,configurable:!0}),"function"!==window.wpexEqualHeights&&(window.wpexEqualHeights=function(e,t,i){if(e&&t){i&&i.childNodes||(i=document);var s=i.querySelectorAll(e);s&&(s.forEach(function(e){"function"==typeof imagesLoaded?new imagesLoaded(e).on("always",function(t){l(e,!1)}):l(e,!1)}),window.addEventListener("resize",function(){s.forEach(function(e){l(e,!0)})}))}function l(e,i){var s=0,l=e.querySelectorAll(t);if(l){if(l.forEach(function(e){if(!(e.classList.contains("vc_column-inner")&&e.closest(".vc_row.vc_inner"))){i&&(e.style.height="");var t=e.getBoundingClientRect().height;t>s&&(s=t)}}),s&&(l.forEach(function(e){e.style.height=s+"px"}),"undefined"!=typeof Isotope)){var r=Isotope.data(e);r&&r.layout()}}}}),"undefined"!=typeof jQuery&&(jQuery.fn.wpexEqualHeights=function(){this.get()&&console.log("The jQuery wpexEqualHeights prototype has been deprecated. Please use the new wpexEqualHeights function.")});var wpex={};!function(e){"use strict";(wpex={init:function(){this.config(),this.replaceNoJsClass(),this.bindEvents()},config:function(){this.config={localScrollSections:[]}},replaceNoJsClass:function(){let e=document.body.className;e=e.replace(/wpex-no-js/,"wpex-js"),document.body.className=e},bindEvents:function(){let t=this;t.setScrollBarWidth(),t.domReady(()=>{document.body.classList.add("wpex-docready"),t.retinaCheck()&&document.body.classList.add("wpex-is-retina"),t.mobileCheck()&&document.body.classList.add("wpex-is-mobile-device"),t.localScrollSections(),t.megaMenuAddClasses(),t.dropdownMenuOnclick(),t.dropdownMenuTouch(),t.inlineHeaderLogo(),t.menuSearch(),t.skipToContent(),t.backTopLink(),t.backTopButton(),t.goBackButton(),t.smoothCommentScroll(),t.dialogs(),t.toggleElements(),t.localScrollLinks(),t.customSelects(),t.hoverStyles(),t.overlaysMobileSupport(),t.accessibility(),t.wpbakery()}),window.addEventListener("load",()=>{document.body.classList.add("wpex-window-loaded"),t.megaMenusWidth(),t.megaMenusTop(),t.stickyTopBar(),t.headerOverlayOffset(),t.equalHeights(),t.localScrollHighlight(),t.stickyHeaderMenu(),t.stickyHeader(),t.stickyElements(),t.footerReveal(),t.fixedFooter(),e.scrollToHash&&window.setTimeout(function(){t.scrollToHash(t)},parseInt(e.scrollToHashTimeout))}),window.addEventListener("resize",()=>{t.setScrollBarWidth()})},setScrollBarWidth:function(){let e=document.querySelectorAll(".wpex-vc-full-width-row:not(.wpex-vc-full-width-row--centered)");if(!e)return;let t=this.getScrollBarWidth();e.forEach(e=>{e.style.setProperty("--scrollbar-width",`${t}px`)})},dropdownMenuOnclick:function(){document.addEventListener("click",e=>{let t=e.target;if(!t.closest(".wpex-dropdown-menu--onclick .menu-item-has-children > a")){document.querySelectorAll(".wpex-dropdown-menu--onclick .menu-item-has-children").forEach(e=>{e.classList.remove("wpex-active")});return}document.querySelectorAll(".wpex-dropdown-menu--onclick .menu-item-has-children").forEach(e=>{e.contains(t)||e.classList.remove("wpex-active")});let i=t.closest(".menu-item-has-children"),s=t.closest("a");i.classList.contains("wpex-active")?(i.classList.remove("wpex-active"),"#"===s.getAttribute("href")&&e.preventDefault()):(i.classList.add("wpex-active"),e.preventDefault())}),document.addEventListener("keydown",e=>{let t=e.target.closest(".wpex-dropdown-menu--onclick .menu-item-has-children.wpex-active");"Escape"===e.key&&t&&t.classList.remove("wpex-active")}),document.querySelectorAll(".wpex-dropdown-menu--onclick .sub-menu").forEach(e=>{e.addEventListener("keydown",e=>{if("Escape"===e.key){let t=e.target.closest(".menu-item-has-children.wpex-active");if(t){t.classList.remove("wpex-active");let i=t.querySelector("a");i.focus(),e.stopPropagation()}}})})},dropdownMenuTouch:function(){let e=!1;document.querySelectorAll(".wpex-dropdown-menu--onhover .menu-item-has-children > a").forEach(t=>{t.addEventListener("touchend",i=>{if(e)return;let s=t.closest(".menu-item-has-children");!s.classList.contains("wpex-touched")&&(i.preventDefault(),s.classList.add("wpex-touched"))}),t.addEventListener("touchmove",t=>{e=!0},{passive:!0}),t.addEventListener("touchstart",t=>{e=!1},{passive:!0})});let t=e=>{let t=e.target;document.querySelectorAll(".menu-item-has-children.wpex-touched").forEach(e=>{!e.contains(t)&&e.classList.remove("wpex-touched")})};document.addEventListener("touchstart",t,{passive:!0}),document.addEventListener("touchmove",t,{passive:!0})},megaMenuAddClasses:function(){document.querySelectorAll(".main-navigation-ul .megamenu > .sub-menu").forEach(e=>{e.querySelectorAll(".sub-menu").forEach(e=>{e.classList.add("megamenu__inner-ul")})})},megaMenusWidth:function(){let e=this,t=()=>{let t=document.querySelector("#site-navigation-wrap.wpex-stretch-megamenus"),i,s;if(!e.isVisible(t))return;let l=t.querySelectorAll(".megamenu:not(.no-stretch) > ul");if(!l.length)return;let r=document.querySelector("#site-header-inner.container");if(!r)return;let o=t.classList.contains("navbar-style-one"),n=r.getBoundingClientRect().width;o&&(s=parseInt(r.getBoundingClientRect().left),i=t.getBoundingClientRect().left),l.forEach(e=>{e.style.width=n+"px",o&&(e.style.marginLeft=-(i-s)+"px")})};t(),window.addEventListener("resize",t)},megaMenusTop:function(){let e=this,t=document.querySelector("#site-header.header-one");if(!t)return;let i=t.querySelector("#site-navigation-wrap.wpex-stretch-megamenus:not(.wpex-flush-dropdowns)");if(!this.isVisible(i))return;let s=i.querySelectorAll(".megamenu > ul");if(!s)return;let l=()=>{if(!e.isVisible(i))return;let l=i.getBoundingClientRect().height,r=(t.getBoundingClientRect().height-l)/2+l;s.forEach(e=>{e.style.top=r+"px"})};l(),window.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),i.querySelectorAll(".megamenu > a").forEach(e=>{e.addEventListener("mouseenter",l,!1)})},megaMenusMobile:function(e){if(!e)return;let t=e.classList.contains("sidr-class-dropdown-menu")?".sidr-class-megamenu.sidr-class-hide-headings":".megamenu.hide-headings";e.querySelectorAll(t).forEach(e=>{!(e.classList.contains("show-headings-mobile")||e.classList.contains("sidr-class-show-headings-mobile"))&&e.querySelectorAll(":scope > ul > li").forEach(e=>{let t=e.querySelector("a");t&&t.parentNode.removeChild(t);let i=e.querySelector("ul");i&&(i.outerHTML=i.innerHTML),e.classList.remove("sidr-class-menu-item-has-children"),e.classList.remove("menu-item-has-children")})})},menuSearch:function(){let e=document.querySelector(".header-searchform-wrap");if(!e)return;let t=e.querySelector('input[type="search"]');t&&(e&&(e.dataset.placeholder&&t.setAttribute("placeholder",e.dataset.placeholder),e.dataset.disableAutocomplete&&t.setAttribute("autocomplete","off")),this.menuSearchDropdown(),this.menuSearchOverlay(),this.menuSearchHeaderReplace())},menuSearchDropdown:function(){let e=this,t=document.querySelector("#searchform-dropdown");if(!t)return;let i=!1,s=!1,l=null,r=t.querySelector('input[type="search"]'),o="a.search-dropdown-toggle, a.mobile-menu-search, .wpex-header-search-icon button",n=()=>{document.body.classList.add("header-search-is-open"),t.classList.add("show"),t.classList.remove("wpex-invisible","wpex-opacity-0"),document.querySelectorAll(o).forEach(e=>{e.setAttribute("aria-expanded","true");var t=e.closest("li");t&&t.classList.add("active")}),r.value="","function"==typeof jQuery&&jQuery(document).trigger("show.wpex.menuSearch");let l=i=>{e.focusOnElement(t,r),t.removeEventListener("transitionend",l)};t.addEventListener("transitionend",l),i=!0,s=!1},a=()=>{document.body.classList.remove("header-search-is-open"),t.classList.remove("show"),t.classList.add("wpex-invisible","wpex-opacity-0"),document.querySelectorAll(o).forEach(e=>{e.setAttribute("aria-expanded","false");var t=e.closest("li");t&&t.classList.remove("active")}),l&&s&&l.focus(),i=!1},c=e=>{if(!(l=e.target.closest(o))){!e.target.closest("#searchform-dropdown")&&i&&a();return}e.preventDefault(),i?a():n()},d=e=>{let t=e.key;"Escape"===t&&i&&(s=!0,a())};document.addEventListener("click",c),t.addEventListener("keydown",d)},menuSearchOverlay:function(){let e=this,t=document.querySelector("#wpex-searchform-overlay");if(!t)return;let i=!1,s=null,l=!1,r=t.querySelector('input[type="search"]'),o="a.search-overlay-toggle, a.mobile-menu-search, li.search-overlay-toggle > a, .wpex-header-search-icon button",n=()=>{let i=s=>{e.focusOnElement(t,r),t.removeEventListener("transitionend",i)};t.addEventListener("transitionend",i)},a=()=>{s&&l&&s.focus()},c=()=>{i=!0,l=!1,document.body.classList.add("header-search-is-open"),t.classList.add("active"),e.htmlNoScroll("add"),document.querySelectorAll(o).forEach(e=>{e.setAttribute("aria-expanded","true");let t=e.closest("li");t&&t.classList.add("active")}),r.value="","function"==typeof jQuery&&jQuery(document).trigger("show.wpex.menuSearch"),n()},d=s=>{i=!1,document.body.classList.remove("header-search-is-open"),t.classList.remove("active"),document.querySelectorAll(o).forEach(e=>{e.setAttribute("aria-expanded","false");let t=e.closest("li");t&&t.classList.remove("active")}),a(),setTimeout(()=>{e.htmlNoScroll("remove")},e.getElTransitionDuration(t))},p=e=>{let t=e.target.closest(o);if(!t){i&&e.target.closest("#wpex-searchform-overlay .wpex-close")&&d();return}s=t,e.preventDefault(),i?d():c()},u=e=>{let t=e.key;if("Escape"===t&&i)return l=!0,d();e.target.closest("#wpex-searchform-overlay .wpex-close")&&("Space"===t||"Enter"===t)&&(l=!0)};document.addEventListener("click",p),document.addEventListener("keydown",u)},menuSearchHeaderReplace:function(){let e=this,t=document.querySelector("#searchform-header-replace");if(!t)return;let i=!1,s=!1,l=null,r=document.querySelector("#site-header-inner"),o=t.classList.contains("-wpex-translate-y-50"),n=t.querySelector('input[type="search"]'),a="a.search-header-replace-toggle, a.mobile-menu-search, .wpex-header-search-icon button",c=()=>{document.body.classList.add("header-search-is-open"),t.classList.add("show"),t.classList.remove("wpex-invisible","wpex-opacity-0"),r&&r.classList.add("wpex-overflow-hidden"),o&&t.classList.remove("-wpex-translate-y-50"),document.querySelectorAll(a).forEach(e=>{e.setAttribute("aria-expanded","true");let t=e.closest("li");t&&t.classList.add("active")}),n.value="","function"==typeof jQuery&&jQuery(document).trigger("show.wpex.menuSearch");let l=i=>{e.focusOnElement(t,n),t.removeEventListener("transitionend",l)};t.addEventListener("transitionend",l),i=!0,s=!1},d=()=>{document.body.classList.remove("header-search-is-open"),t.classList.remove("show"),t.classList.add("wpex-invisible","wpex-opacity-0"),r&&r.classList.remove("wpex-overflow-hidden"),o&&t.classList.add("-wpex-translate-y-50"),document.querySelectorAll(a).forEach(e=>{e.setAttribute("aria-expanded","false");let t=e.closest("li");t&&t.classList.remove("active")}),l&&s&&l.focus(),i=!1},p=e=>{let t=e.target.closest(a);if(!t){!e.target.closest("#searchform-header-replace .searchform")&&i&&d();return}l=t,e.preventDefault(),i?d():c()},u=e=>{if(!i)return;let t=e.key;"Escape"===t?(s=!0,d()):e.target.closest("#searchform-header-replace-close")&&("Space"===t||"Enter"===t)&&(s=!0)};document.addEventListener("click",p),t.addEventListener("keydown",u)},headerOverlayOffset:function(){let e=document.querySelector("#site-header");if(!e||!e.classList.contains("overlay-header")||e.classList.contains("header-fixed-height"))return;let t=()=>{let t=e.getBoundingClientRect().height;document.querySelectorAll(".overlay-header-offset-div").forEach(e=>{e.style.height=t+"px"})};t(),window.addEventListener("resize",t)},inlineHeaderLogo:function(){let t=this,i=document.querySelector("#site-header");if(!i||!i.classList.contains("header-five"))return;let s=document.querySelector("#site-header.header-five #site-header-inner > .header-five-logo"),l=document.querySelector("#site-header.header-five .navbar-style-five"),r=null;if(!s||!l)return;let o=()=>{let i=document.querySelectorAll(".navbar-style-five .main-navigation-ul > li"),s=[];for(let l=0;l<i.length;l++)t.isVisible(i[l])&&s.push(i[l]);let r=s.length,o=Math.round(r/2)-parseInt(e.headerFiveSplitOffset);return s[o]},n=()=>{let i=o();i&&t.viewportWidth()>e.mobileMenuBreakpoint&&(r||((r=document.createElement("li")).className="menu-item-logo wpex-px-40"),r.appendChild(s),i.parentNode.insertBefore(r,i.nextSibling),s.classList.add("display"))},a=()=>{let i=document.querySelector(".menu-item-logo .header-five-logo");if(t.viewportWidth()<=e.mobileMenuBreakpoint){if(i){let s=document.querySelector("#site-header-inner");s&&s.insertBefore(i,s.firstChild),r&&r.parentNode.removeChild(r)}}else i||n()};n(),window.addEventListener("resize",a)},skipToContent:function(){let e=this,t=t=>{if(!t.target.classList.contains("skip-to-content"))return;let i=document.querySelector(t.target.getAttribute("href"));i&&(i.setAttribute("tabIndex","-1"),e.scrollTo(i)),t.preventDefault(),t.stopPropagation()};document.addEventListener("click",t)},backTopLink:function(){let t=this,i=i=>{let s=i.target;if(!s.closest("a#site-scroll-top, a.wpex-scroll-top, .wpex-scroll-top a"))return;let l=s.closest("#site-scroll-top");if(l&&(s=l),0!==window.scrollY){let r=document.querySelector('[data-ls_id="#site_top"]');r&&r.focus({preventScroll:!0,focusVisible:!1});let o=parseInt(s.dataset.scrollSpeed||parseInt(e.localScrollSpeed)),n=t.getEasing(s.dataset.scrollEasing);n&&"function"==typeof jQuery?jQuery("html, body").stop(!0,!0).animate({scrollTop:0},o,n):window.scrollTo({top:0,behavior:t.getScrollToBehavior()})}i.preventDefault(),i.stopPropagation()};document.addEventListener("click",i)},backTopButton:function(){let e=document.querySelector("#site-scroll-top");if(!e)return;let t=parseInt(e.dataset.scrollOffset||100);if(0===t)return;let i=i=>{window.pageYOffset>t?(e.classList.add("show"),e.classList.remove("wpex-invisible","wpex-opacity-0")):(e.classList.remove("show"),e.classList.add("wpex-invisible","wpex-opacity-0"))};window.addEventListener("scroll",i,{passive:!0})},goBackButton:function(){document.addEventListener("click",e=>{e.target.closest(".wpex-go-back")&&(e.preventDefault(),history.back())})},smoothCommentScroll:function(){let e=this,t=t=>{if(!t.target.closest(".comments-link"))return;let i=document.querySelector("#comments");i&&(e.scrollTo(i,-20),t.preventDefault(),t.stopPropagation())};document.addEventListener("click",t)},dialogs:function(){let e=this,t=e=>{let t=e.target;if(!t.closest(".wpex-modal__inner")){let i=t.closest("dialog");i&&s(i)}},i=i=>{if(!i)return;let s=document.querySelector(`#${i.replace("#","")}`);if(s){if(s.classList.contains("wpex-modal")){s.showModal();let l=s.querySelector(".wpex-modal__inner");l&&s.addEventListener("click",t),document.body.classList.add("modal-is-open"),document.body.classList.contains("vc_editor")||e.htmlNoScroll("add")}else s.show()}},s=e=>{e.classList.contains("wpex-modal")&&e.removeEventListener("click",t),e.close()},l=e=>{let t=e.target.closest(".wpex-open-modal,.wpex-open-dialog"),l=e.target.closest(".wpex-close-modal");if(t||l){if(e.preventDefault(),t){let r=t.getAttribute("aria-controls");if(r)return i(r)}if(l){let o=e.target.closest("dialog");if(o)return s(o)}}},r=t=>{document.body.classList.remove("modal-is-open"),e.htmlNoScroll("remove")},o=()=>{document.querySelectorAll(".wpex-modal").forEach(e=>{e.addEventListener("close",r)})};o(),document.addEventListener("click",l),window.addEventListener("totaltheme_loadmore_posts",o),window.addEventListener("vcexAfterAjaxSuccess",o)},toggleElements:function(){let e=this,t=e=>{let t=e.getAttribute("aria-controls");if(t)return document.querySelector(`#${t.replace("#","")}`)},i=e=>{e.setAttribute("aria-expanded","true"),(e.classList.contains("vcex-button")||e.classList.contains("theme-button"))&&e.classList.add("active");let t=e.getAttribute("data-close-text"),i=e.getAttribute("data-open-text"),s=e.querySelector(".theme-button-text")||e;i&&t&&s&&(s.textContent=t)},s=e=>{e.setAttribute("aria-expanded","false"),(e.classList.contains("vcex-button")||e.classList.contains("theme-button"))&&e.classList.remove("active");let t=e.getAttribute("data-close-text"),i=e.getAttribute("data-open-text"),s=e.querySelector(".theme-button-text")||e;i&&t&&s&&(s.textContent=i)},l=(e,t)=>{t=t||document;let s=e.getAttribute("id");if(!s)return;e.classList.add("wpex-toggle-element--visible");let l=e.parentNode;l.classList.contains("wpex-toggle-element")?(l.classList.add("wpex-toggle-element--visible"),l.setAttribute("tabIndex","-1"),l.focus({preventScroll:!0,focusVisible:!1})):(e.setAttribute("tabIndex","-1"),e.focus({preventScroll:!0,focusVisible:!1})),t.querySelectorAll(`.wpex-toggle-element-trigger[aria-controls="${s}"]`).forEach(e=>{i(e)}),window.dispatchEvent(new Event("resize")),e.dispatchEvent(new CustomEvent("wpex_toggle_element_open"))},r=(e,t)=>{t=t||document;let i=e.getAttribute("id");i&&(e.classList.remove("wpex-toggle-element--visible"),e.dispatchEvent(new CustomEvent("wpex_toggle_element_close")),t.querySelectorAll(`.wpex-toggle-element-trigger[aria-controls="${i}"]`).forEach(e=>{s(e)}))},o=i=>{let s=i.target.closest("a.wpex-toggle-element-trigger,button.wpex-toggle-element-trigger");if(!s)return;let o=t(s);if(!o||!o.classList.contains("wpex-toggle-element"))return;i.preventDefault();let n=o.classList,a=s.closest(".vc_section")||s.closest(".vc_row"),c=!1;a&&a.contains(o)&&(c=!0);let d=c?a:document;d.querySelectorAll(".wpex-toggle-element--visible").forEach(e=>{e.isSameNode(o)||r(e,d)}),n.contains("wpex-toggle-element--visible")?n.contains("wpex-toggle-element--persist")||r(o,d):(l(o,d),"true"!==s.getAttribute("data-wpex-toggle-localscroll")||s.classList.contains("local-scroll-link")||e.scrollTo(o))},n=e=>{if("Escape"!==e.key)return;let t=e.target.closest(".wpex-toggle-element--visible");if(!t)return;let i=t.getAttribute("id");if(!i)return;let s=(t.closest(".vc_row")||t.closest(".vc_section")).querySelector(`.wpex-toggle-element-trigger[aria-controls="${i}"]`);s||(s=document.querySelector(`.wpex-toggle-element-trigger[aria-controls="${i}"]`)),s&&s.focus()};document.addEventListener("click",o),document.addEventListener("keydown",n)},getLocalScrollOffset:function(t){if(e.localScrollOffset)return parseInt(e.localScrollOffset);let i=this,s=0;e.localScrollExtraOffset&&(s=parseInt(s)+parseInt(e.localScrollExtraOffset));let l=document.querySelector("#site-header-sticky-wrapper.wpex-can-sticky #site-header");return l&&(!e.hasStickyMobileHeader&&i.viewportWidth()<e.stickyHeaderBreakPoint?s=parseInt(s)+0:l.classList.contains("shrink-sticky-header")?("init"===t||i.isVisible(l))&&(s=parseInt(s)+parseInt(e.shrinkHeaderHeight)):s=parseInt(s)+l.getBoundingClientRect().height),document.querySelectorAll(".wpex-ls-offset,#wpadminbar,#top-bar-wrap-sticky-wrapper.wpex-can-sticky,#site-navigation-sticky-wrapper.wpex-can-sticky").forEach(e=>{i.isVisible(e)&&(s=parseInt(s)+e.getBoundingClientRect().height)}),s=s?s-1:0},scrollTo:function(t,i=0,s){let l=this;if(!t)return;let r=null,o=!1,n=null,a=0,c=l.getLocalScrollOffset(),d=parseInt(e.localScrollSpeed),p=document.querySelectorAll("[data-ls_id]"),u=l.getEasing();for(let h=0;h<p.length;h++)if(t===p[h].dataset.ls_id){n=p[h];break}if(n?(r=n,o=!0):"string"==typeof t?l.isSelectorValid(t)&&(r=document.querySelector(t)):t.nodeType&&(r=t),!r)return;let f=()=>{r&&r.nodeType&&r.focus({preventScroll:!0,focusVisible:!1}),u&&"function"==typeof jQuery?jQuery("html, body").stop(!0,!0).animate({scrollTop:a},d,u):window.scrollTo({top:a,behavior:l.getScrollToBehavior()})};if(r.classList.contains("vc_tta-panel")){let m=r.closest(".vc_tta-tabs");if(m){if(r.id){let y=m.querySelector(`.vc_tta-tab:not(.vc_active) a[href="#${r.id}"]`);y&&y.click()}r=m,i=-20}}a||(a=l.offset(r).top-c+i),e.localScrollUpdateHash&&"string"==typeof t&&o&&(window.location.hash=t);let g=document.querySelector(".mobile-toggle-nav");g&&g.classList.contains("visible")?("absolute"!==window.getComputedStyle(g).position&&(a-=g.getBoundingClientRect().height),document.querySelectorAll("a.mobile-menu-toggle, button.mobile-menu-toggle, li.mobile-menu-toggle > a").forEach(e=>{e.classList.remove("wpex-active"),e.setAttribute("aria-expanded","false")}),l.setHamburgerIconState(),g.classList.contains("mobile-toggle-nav--animate")?l.slideUp(g,300,function(){g.classList.remove("visible"),document.body.classList.remove("mobile-toggle-nav-open"),f()}):(g.classList.remove("visible"),document.body.classList.remove("mobile-toggle-nav-open"),f())):f()},scrollToHash:function(e){let t,i=location.hash;if(""!==i&&"#"!==i&&"undefined"!==i){if(("#view_comments"===i||"#comments_reply"===i)&&(t=document.querySelector("#comments"))||-1!==i.indexOf("comment-")&&document.querySelector("#site-header.fixed-scroll")&&(t=document.querySelector(i)))return e.scrollTo(t,-20);-1!==i.indexOf("localscroll-")&&(i=i.replace("localscroll-",""));try{let s=document.querySelector(`[data-ls_id="${i}"], ${i}`);!s||"dialog"===s.getAttribute("roles")||s.classList.contains("vcex-toggle__content")||s.classList.contains("wpex-toggle-element")||s.classList.contains("wpex-card-modal")||e.scrollTo(i)}catch(l){return!1}}},localScrollSections:function(){let t=this,i=document.querySelectorAll(e.localScrollTargets),s=[];return i.forEach(e=>{let i=e.getAttribute("href"),l=i?`#${i.replace(/^.*?(#|$)/,"")}`:null;if(!l||"#"===l)return;e.hasAttribute("data-ls_linkto")||e.setAttribute("data-ls_linkto",l);let r=document.querySelector(`[data-ls_id="${l}"]`);!r&&"string"==typeof l&&t.isSelectorValid(l)&&(r=document.querySelector(l)),r&&-1===s.indexOf(l)&&s.push(l)}),t.config.localScrollSections=s,t.config.localScrollSections},localScrollLinks:function(){let t=this,i=i=>{let s=i.target;if(s.closest(".wpex-open-submenu"))return;let l=s.closest(e.localScrollTargets);if(!l)return;let r=l.dataset.ls_linkto||l.hash,o=!1;if(!(!(o=!!t.config.localScrollSections&&-1!==t.config.localScrollSections.indexOf(r)||!!t.isSelectorValid(r)&&document.querySelector(`[data-ls_id="${r}"], ${r}`))||(l.closest(".sfHover")&&l.parentNode.classList.remove("sfHover"),l.classList.contains("wpex-toggle-element-trigger")&&"false"===l.getAttribute("aria-expanded"))))t.scrollTo(r),!l.closest(".full-screen-overlay-nav-menu .local-scroll > a")&&(i.preventDefault(),i.stopPropagation())};e.localScrollFindLinks&&document.querySelectorAll('a[href^="#"]:not([href="#"]):not(.local-scroll-link):not([target]):not([aria-selected]):not([aria-pressed]):not([aria-expanded]):not([data-vc-tabs]):not(.skip-to-content):not(#site-scroll-top):not([data-vc-accordion]):not([role="button"]):not(.wpex-lightbox):not(.wpex-lightbox-group-item)').forEach(e=>{if(e.closest(".local-scroll, .local-scroll-link, [aria-controls]"))return;let t=e.getAttribute("href");try{document.querySelector(`[data-ls_id="${t}"], ${t}`)&&e.classList.add("local-scroll-link")}catch(i){return!1}}),document.addEventListener("click",i)},localScrollHighlight:function(){let t=this,i=t.config.localScrollSections;if(!e.localScrollHighlight||!i.length)return;let s=e=>{let i=document.querySelector(`[data-ls_id="${e}"], ${e}`);if(!i)return;let s=!1,l=t.winScrollTop(),r=t.getLocalScrollOffset(),o=t.offset(i).top-r-1,n=i.offsetHeight,a=document.querySelectorAll(`[data-ls_linkto="${e}"] `);(s=!!(l>=o)&&!!(l<o+n))?(i.classList.add("wpex-ls-inview"),document.querySelectorAll(".local-scroll.menu-item").forEach(e=>{e.classList.remove("current-menu-item")})):i.classList.remove("wpex-ls-inview"),a.forEach(e=>{s?e.classList.add("active"):e.classList.remove("active");let t=e.closest("li");t&&(s?t.classList.add("current-menu-item"):t.classList.remove("current-menu-item"))})},l=()=>{for(var e=0;e<i.length;e++)s(i[e])};window.addEventListener("scroll",l,{passive:!0})},equalHeights:function(e){"function"==typeof window.wpexEqualHeights&&(wpexEqualHeights(".match-height-grid",".match-height-content",e),wpexEqualHeights(".match-height-row",".match-height-content",e),wpexEqualHeights(".vc_row",".equal-height-column",e),wpexEqualHeights(".vc_row",".equal-height-content",e))},footerReveal:function(){let e=this,t=document.querySelector("#footer-reveal"),i=document.querySelector("#wrap"),s=document.querySelector("#main");if(!t||!i||!s)return;let l=()=>{if(960>e.viewportWidth()){t.classList.contains("footer-reveal")&&(t.classList.remove("footer-reveal"),t.classList.add("footer-reveal-visible"),i.style.removeProperty("margin-bottom"));return}let s=0,l=t.offsetHeight,r=window.innerHeight;s=t.classList.contains("footer-reveal")?i.offsetHeight+e.getLocalScrollOffset():i.offsetHeight+e.getLocalScrollOffset()-l,r>l&&s>r?t.classList.contains("footer-reveal-visible")&&(i.style.marginBottom=l+"px",t.classList.remove("footer-reveal-visible"),t.classList.add("footer-reveal")):t.classList.contains("footer-reveal")&&(i.style.removeProperty("margin-bottom"),t.classList.remove("footer-reveal"),t.classList.remove("wpex-visible"),t.classList.add("footer-reveal-visible"))},r=()=>{t.classList.contains("footer-reveal")&&(e.scrolledToBottom(s)?t.classList.add("wpex-visible"):t.classList.remove("wpex-visible"))};l(),r(),window.addEventListener("scroll",r,{passive:!0}),window.addEventListener("resize",l)},fixedFooter:function(){if(!document.body.classList.contains("wpex-has-fixed-footer"))return;let e=document.querySelector("#main");if(!e)return;let t=()=>{e.style.minHeight=e.offsetHeight+(window.innerHeight-document.documentElement.offsetHeight)+"px"};t(),window.addEventListener("resize",t)},customSelects:function(t){if(!e.customSelects)return;let i=this;t&&t.childNodes||(t=document),t.querySelectorAll(e.customSelects).forEach(t=>{let s=t.parentNode;if(s.classList.contains("wpex-select-wrap")||s.classList.contains("wpex-multiselect-wrap"))return;let l=t.id,r=!1;if(i.isVisible(t)){let o=document.createElement("div");if(t.hasAttribute("multiple")?l?o.className=`wpex-multiselect-wrap wpex-multiselect-wrap--${l} wpex-${l}`:o.className="wpex-multiselect-wrap":(l?o.className=`wpex-select-wrap wpex-select-wrap--${l} wpex-${l}`:o.className="wpex-select-wrap",r=!0),t=i.wrap(t,o),r&&e.selectArrowIcon){let n=document.createElement("span");n.className="wpex-select-arrow";let a=document.createDocumentFragment(),c=document.createElement("div");c.innerHTML=e.selectArrowIcon,a.appendChild(c.firstChild),n.appendChild(a),o.appendChild(n)}}})},hoverStyles:function(){let e,t,i,s="",l={},r,o;if((e=document.querySelector(".wpex-hover-data"))&&e.remove(),!(i=(t=document.querySelectorAll("[data-wpex-hover]")).length))return;let n=e=>{let i,s,r,o,n="",a="",c;if(s=(i=t[e]).dataset.wpexHover){s=JSON.parse(s),o=i.classList;for(let d=0;d<o.length;d++)-1!==o[d].indexOf("wpex-dhover-")&&i.classList.remove(o[d]);for(let p in r=`wpex-dhover-${e}`,s.parent?(c=i.closest(s.parent))&&(c.classList.add(r+"-p"),i.classList.add(r),a=`.${r}-p:hover .${r}`):(i.classList.add(r),a=`.${r}:hover`),s)if(s.hasOwnProperty(p)){if("target"===p||"parent"===p)continue;n+=`${p}:${s[p]}!important;`}n&&(n in l?l[n]=`${l[n]},${a}`:l[n]=a)}};for(let a=0;a<i;a++)n(a);if(l)for(let c in l)l.hasOwnProperty(c)&&(s+=`${l[c]}{${c}}`);s&&((r=document.createElement("style")).classList.add("wpex-hover-data"),r.appendChild(document.createTextNode(s)),(o=document.head||document.getElementsByTagName("head")[0]).appendChild(r))},overlaysMobileSupport:function(){let e=window.matchMedia("(any-pointer: coarse)").matches;if(!e)return;let t=!1;document.querySelectorAll(".overlay-parent.overlay-hh").forEach(e=>{if(!e.classList.contains("overlay-ms")){let t=e.querySelector(".theme-overlay");t&&e.parentNode.removeChild(e)}});let i=()=>{document.querySelectorAll(".wpex-touched").forEach(e=>{e.classList.remove("wpex-touched")})},s=e=>{let s=e.target,l=s.closest(".overlay-parent.overlay-ms.overlay-h,.vcex-image-swap,.wpex-card-touch-support");if(l){if(t){i();return}if(l.classList.contains("wpex-touched")){l.classList.remove("wpex-touched");return}e.preventDefault(),i(),l.classList.add("wpex-touched")}},l=e=>{let s=e.target;s.closest(".wpex-touched")||i();let l=s.closest(".overlay-parent.overlay-ms.overlay-h,.vcex-image-swap,.wpex-card-touch-support");l&&(t=!0)},r=e=>{let s=e.target;s.closest(".wpex-touched")||i();let l=s.closest(".overlay-parent.overlay-ms.overlay-h,.vcex-image-swap,.wpex-card-touch-support");l&&(t=!1)};document.addEventListener("touchend",s,!1),document.addEventListener("touchmove",l,{passive:!0}),document.addEventListener("touchstart",r,{passive:!0})},stickyTopBar:function(){let t=this,i=!1,s=0,l=document.querySelector("#top-bar-wrap.wpex-top-bar-sticky"),r=e.stickyTopBarBreakPoint;if(!l)return;let o=document.createElement("div");o.id="top-bar-wrap-sticky-wrapper",o.className="wpex-sticky-top-bar-holder not-sticky wpex-print-hidden",t.wrap(l,o);let n=()=>(s=0,document.querySelectorAll(".wpex-sticky-el-offset,#wpadminbar").forEach(e=>{let i=window.getComputedStyle(e).position;t.isBeforeElement(e,o)&&t.isVisible(e)&&("fixed"===i||"sticky"===i)&&(s+=e.getBoundingClientRect().height)}),s),a=()=>{!i&&(o.style.height=l.getBoundingClientRect().height+"px",o.classList.remove("not-sticky"),o.classList.add("is-sticky"),l.classList.remove("wpex-z-99"),l.classList.add("wpex-z-999"),l.style.top=n()+"px",l.style.width=o.getBoundingClientRect().width+"px",l.style.position="fixed",i=!0)},c=()=>{i&&(o.style.height="",o.classList.remove("is-sticky"),o.classList.add("not-sticky"),l.classList.add("wpex-z-99"),l.classList.remove("wpex-z-999"),l.style.width="",l.style.top="",l.style.position="",i=!1)},d=()=>{if(!e.hasStickyTopBarMobile&&t.viewportWidth()<r){o.classList.remove("wpex-can-sticky"),c();return}let d=t.winScrollTop();o.classList.add("wpex-can-sticky"),i?(o.style.height=l.getBoundingClientRect().height+"px",l.style.top=n()+"px",l.style.width=o.getBoundingClientRect().width+"px"):(s=t.offset(o).top-n(),0!==d&&d>s?a():c())},p=()=>{if(!o||!o.classList.contains("wpex-can-sticky"))return;let e=t.winScrollTop();0!==e&&e>=t.offset(o).top-n()?a():c()};d(),window.addEventListener("scroll",p,{passive:!0}),window.addEventListener("resize",d)},stickyHeaderMenu:function(){let t=this,i=document.querySelector("#site-navigation-wrap.fixed-nav");if(!i)return;let s=!1,l=document.querySelector("#site-header"),r=document.createElement("div");r.id="site-navigation-sticky-wrapper",r.className="wpex-sticky-navigation-holder not-sticky",t.wrap(i,r);let o=()=>{let i=0;return document.querySelectorAll(".wpex-sticky-el-offset,#wpadminbar,.wpex-top-bar-sticky").forEach(e=>{let s=window.getComputedStyle(e).position;t.isVisible(e)&&t.isBeforeElement(e,r)&&("fixed"===s||"sticky"===s)&&(i+=e.getBoundingClientRect().height)}),e.addStickyHeaderOffset&&(i+=e.addStickyHeaderOffset),i},n=t.offset(r).top,a=n-o(),c=()=>{!s&&(r.style.height=i.getBoundingClientRect().height+"px",r.classList.remove("not-sticky"),r.classList.add("is-sticky"),i.style.top=o()+"px",i.style.width=r.getBoundingClientRect().width+"px",l&&l.classList.remove("dyn-styles"),s=!0)},d=()=>{s&&(r.style.height="",r.classList.remove("is-sticky"),r.classList.add("not-sticky"),i.style.top="",i.style.width="",l&&l.classList.add("dyn-styles"),s=!1)},p=()=>{if(t.viewportWidth()<=e.stickyNavbarBreakPoint){d(),r.classList.remove("wpex-can-sticky");return}let l=t.winScrollTop();r.classList.add("wpex-can-sticky"),s?(r.style.height=i.getBoundingClientRect().height+"px",i.style.top=o()+"px",i.style.width=r.getBoundingClientRect().width+"px"):l>=a&&0!==l?c():d()},u=()=>{if(!r.classList.contains("wpex-can-sticky"))return;let e=t.winScrollTop();0!==e&&e>=a?c():d()},h=()=>{d(),p()};p(),window.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",p),window.addEventListener("orientationchange",h)},stickyHeader:function(){let t=this,i=e.stickyHeaderStyle;if("standard"!==i&&"shrink"!==i&&"shrink_animated"!==i)return;let s=document.querySelector("#site-header.fixed-scroll");if(!s)return;let l=s.classList.contains("fixed-scroll--mobile-only"),r=!1,o=!1,n=document.createElement("div");n.id="site-header-sticky-wrapper",n.className="wpex-sticky-header-holder not-sticky wpex-print-hidden",t.wrap(s,n);let a=()=>{let i=0;return document.querySelectorAll(".wpex-sticky-el-offset,.wpex-top-bar-sticky,#wpadminbar").forEach(e=>{let s=window.getComputedStyle(e).position;t.isVisible(e)&&t.isBeforeElement(e,n)&&("fixed"===s||"sticky"===s)&&(i+=e.getBoundingClientRect().height)}),e.addStickyHeaderOffset&&(i+=e.addStickyHeaderOffset),i},c=()=>l?">":"<",d,p=(d=parseInt(e.stickyHeaderBreakPoint),l?d-1:d),u=e.hasStickyMobileHeader,h=(()=>{var t=e.stickyHeaderStartPosition;if(t&&!isNaN(t))return t;var i=document.querySelector(t);return i?this.offset(i).top:0})(),f=()=>{switch(c()){case"<":return t.viewportWidth()<p;case">":return t.viewportWidth()>p}},m=0,y=document.querySelector("#site-header.overlay-header");function g(){return t.winScrollTop()>m}m=y&&"absolute"===window.getComputedStyle(y).position?t.offset(s).top+s.getBoundingClientRect().height:t.offset(n).top+n.getBoundingClientRect().height;let v=()=>(h||t.offset(n).top)-a(),w=()=>{let e=window.getComputedStyle(s).transitionDuration,t="";return e&&"0s"===e||(t=parseFloat(e)*(e.indexOf("ms")>-1?1:1e3)),t||(t=300),t},x=()=>{var e=t.winScrollTop();r&&s.classList.add("transform-go"),e<=0?s.classList.remove("transform-prepare"):g()?s.classList.add("transform-prepare"):s.classList.remove("transform-prepare")},L=()=>{!r&&(n.style.height=s.getBoundingClientRect().height+"px",n.classList.remove("not-sticky"),n.classList.add("is-sticky"),s.classList.remove("dyn-styles"),s.style.top=a()+"px",s.style.width=n.getBoundingClientRect().width+"px",s.classList.contains("transform-prepare")&&s.classList.add("transform-go"),r=!0)},b=()=>{let t=!0;l?t=!0:f()&&(t=!!u&&!!e.hasStickyMobileHeaderShrink),t&&g()?!o&&r&&(s.classList.add("sticky-header-shrunk"),o=!0):(s.classList.remove("sticky-header-shrunk"),o=!1)},S=()=>{if(n.classList.remove("is-sticky"),n.classList.add("not-sticky"),s.classList.contains("shrink-sticky-header")){let e=w();setTimeout(function(){r||(n.style.height="")},e)}else n.style.height="";s.classList.add("dyn-styles"),s.style.width="",s.style.top="",s.classList.remove("transform-go"),r=!1,s.classList.remove("sticky-header-shrunk"),o=!1};function k(){r&&(h?(s.classList.remove("transform-go"),o&&(s.classList.remove("sticky-header-shrunk"),o=!1)):s.classList.remove("transform-prepare"),S())}let E=()=>{let i=t.winScrollTop();if((l||!u)&&f()){k(),n.classList.remove("wpex-can-sticky"),s.classList.remove("transform-prepare");return}n.classList.add("wpex-can-sticky"),r?(s.classList.contains("shrink-sticky-header")||(n.style.height=s.getBoundingClientRect().height+"px"),s.style.top=a()+"px",s.style.width=n.getBoundingClientRect().width+"px"):0!==i&&i>v()?L():k(),e.hasStickyHeaderShrink&&b()},$=()=>{let i=t.winScrollTop();n.classList.contains("wpex-can-sticky")&&(h&&x(),0!=i&&i>=v()?L():k(),e.hasStickyHeaderShrink&&b())};E(),window.addEventListener("scroll",$,{passive:!0}),window.addEventListener("resize",E),window.addEventListener("orientationchange",()=>{k(),E()})},stickyElements:function(){let e=document.body.classList;if(e.contains("compose-mode")||e.contains("wp-admin"))return;let t=document.querySelectorAll(".wpex-js-sticky");if(!t)return;let i=this,s=e=>{let t=document.createElement("div"),i="wpex-js-sticky-wrap",s=e.dataset.wpexStickyLsOffset||!0;return("true"==s||"1"==s)&&(i+=" wpex-ls-offset"),t.className=i,e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e),t},l=e=>{let t=document.createElement("div");return t.className="wpex-js-sticky-holder",e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e),t};t.forEach(e=>{let t=!1,r=e.dataset.wpexStickyEndpoint||null,o=parseInt(e.dataset.wpexStickyBreakpoint);r&&isNaN(r)&&(r=document.querySelector(r));let n=s(e),a=l(n),c=()=>{let t=e.dataset.wpexStickyOffset?parseInt(e.dataset.wpexStickyOffset):0;return document.querySelectorAll("#top-bar-wrap-sticky-wrapper.wpex-can-sticky #top-bar-wrap,#site-header-sticky-wrapper.wpex-can-sticky #site-header,#site-navigation-sticky-wrapper.wpex-can-sticky #site-navigation-wrap,#wpadminbar,.wpex-sticky-el-offset,.wpex-js-sticky-wrap").forEach(s=>{let l=window.getComputedStyle(s).position;!e.isEqualNode(s)&&i.isVisible(s)&&i.isBeforeElement(s,e)&&("fixed"===l||"sticky"===l)&&(t+=i.elHeight(s))}),t},d=()=>{if(o&&i.viewportWidth()<=o)return h();let t=i.winScrollTop(),s=c(),l=i.offset(a).top;t>l-s&&0!==t?(u(s),r&&i.isVisible(r)&&(t>i.offset(r).top-s-i.elHeight(e)?n.style.position="relative":n.style.position="fixed")):h()},p=()=>{let e=a.getBoundingClientRect().width;e&&n.style.setProperty("width",e+"px")},u=s=>{if(!i.isVisible(e)){h();return}if(t){n.style.top=c()+"px";return}a.style.height=i.elHeight(e)+"px",n.classList.add("wpex-z-99"),n.style.position="fixed",n.style.top=s+"px",e.classList.add("wpex-js-sticky--stuck"),p(),t=!0},h=()=>{t&&(a.style.height="",n.classList.remove("wpex-z-99"),n.style.position="",n.style.top="",n.style.width="",e.classList.remove("wpex-js-sticky--stuck"),t=!1)},f=()=>{d(),t&&(i.isVisible(e)||h(),a.style.height=i.elHeight(e)+"px",n.style.top=c()+"px",p(e))},m=()=>{h(),d()};d(),window.addEventListener("scroll",d,{passive:!0}),window.addEventListener("resize",f),window.addEventListener("orientationchange",m)})},accessibility:function(){document.querySelectorAll("#site-navigation li.nav-no-click:not(.menu-item-has-children) > a").forEach(e=>{e.setAttribute("tabIndex","-1")}),document.querySelectorAll("#site-navigation li.megamenu > ul.sub-menu > li.menu-item.menu-item-has-children > a").forEach(e=>{"#"===e.getAttribute("href")&&e.setAttribute("tabIndex","-1")}),document.querySelectorAll(".vc_toggle .vc_toggle_title").forEach(e=>{e.setAttribute("tabIndex",0),e.addEventListener("keydown",e=>{"Enter"===e.key&&e.target.click()})})},wpbakery:function(){e.disable_vc_tta_animation&&document.querySelector(".vc_tta")&&"function"==typeof jQuery&&"function"==typeof jQuery.fn.vcAccordion&&(jQuery.fn.vcAccordion.Constructor.prototype.isAnimated=function(){return 0})},domReady:function(e){if("function"!=typeof e||"undefined"==typeof document)return;let t=document.readyState;if("interactive"===t||"complete"===t)return setTimeout(e);document.addEventListener("DOMContentLoaded",e,!1)},retinaCheck:function(){return!!(window.devicePixelRatio>1)||!!window.matchMedia&&!!window.matchMedia("(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)").matches},mobileCheck:function(){if(/Android|webOS|iPhone|iPad|iPod|iPad Simulator|iPhone Simulator|iPod Simulator|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))return!0},getEasing:function(t){if(!e.localScrollEasing||"function"!=typeof jQuery||void 0===jQuery.easing||"function"!=typeof jQuery.easing.jswing)return;let i=t||e.localScrollEasing;return jQuery.easing.hasOwnProperty(i)||(i="swing"),i},viewportWidth:function(){let e="inner",t=window;return"innerWidth"in window||(e="client",t=document.documentElement||document.body),t[e+"Width"]},isSelectorValid:function(e){try{var t;t=e,document.createDocumentFragment().querySelector(t)}catch(i){return!1}return!0},slideUp:function(e,t,i){if(!e)return;let s=window.getComputedStyle(e).display;if("none"===s)return;let l=window.getComputedStyle(e).transitionDuration;l&&"0s"===l||(t=parseFloat(l)*(l.indexOf("ms")>-1?1:1e3)),t||(t=300),e.classList.add("wpex-transitioning"),e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=e.offsetHeight+"px",e.offsetHeight,e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,setTimeout(()=>{e.style.display="none",e.style.removeProperty("height"),e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property"),e.classList.remove("wpex-transitioning"),i&&i()},t)},slideDown:function(e,t,i){if(!e)return;let s=window.getComputedStyle(e).display;if("block"===s)return;let l=window.getComputedStyle(e).transitionDuration;l&&"0s"===l||(t=parseFloat(l)*(l.indexOf("ms")>-1?1:1e3)),t||(t=300),e.classList.add("wpex-transitioning"),e.style.removeProperty("display"),"none"===s&&(s="block"),e.style.display=s,e.style.transitionProperty="none";let r=e.offsetHeight;e.style.overflow="hidden",e.style.height=0,e.style.paddingTop=0,e.style.paddingBottom=0,e.style.marginTop=0,e.style.marginBottom=0,e.offsetHeight,e.style.boxSizing="border-box",e.style.transitionProperty="height, margin, padding",e.style.transitionDuration=t+"ms",e.style.height=r+"px",e.style.removeProperty("padding-top"),e.style.removeProperty("padding-bottom"),e.style.removeProperty("margin-top"),e.style.removeProperty("margin-bottom"),setTimeout(()=>{e.style.removeProperty("height"),e.style.removeProperty("overflow"),e.style.removeProperty("transition-duration"),e.style.removeProperty("transition-property"),e.classList.remove("wpex-transitioning"),i&&i()},t)},focusOnElement:function(e,t){let i=e.querySelectorAll('button, [href], input, select, textarea, a,[tabindex]:not([tabindex="-1"])');if(!i.length)return;let s=[];for(let l=0;l<i.length;l++)this.isVisible(i[l])&&s.push(i[l]);if(!s.length)return;let r=s[0],o=s[s.length-1];t?t.focus():r.focus(),o.addEventListener("keydown",e=>{"Tab"!==e.key||e.shiftKey||(e.preventDefault(),r.focus())}),r.addEventListener("keydown",e=>{"Tab"===e.key&&e.shiftKey&&(e.preventDefault(),o.focus())})},wrap:function(e,t){e.childNodes||(e=[e]),e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t),t.appendChild(e)},insertAfter:function(e,t){t.parentNode.insertBefore(e,t.nextSibling)},offset:function(e){let t=e.getBoundingClientRect();return{top:t.top+this.winScrollTop(),left:t.left+this.winScrollTop(),bottom:t.bottom+this.winScrollTop()}},elHeight:function(e){return e.getBoundingClientRect().height},isVisible:function(e){return!!e&&!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},isEmpty:function(e){return!e||""===e.innerHTML},isBeforeElement:function(e,t){if("wpadminbar"===e.id)return!0;if(!e||!t)return;let i=e.compareDocumentPosition(t);return 4===i},insertExtras:function(e,t,i){if(e&&t){switch(i){case"append":t.appendChild(e);break;case"prepend":t.insertBefore(e,t.firstChild)}e.classList.remove("wpex-hidden")}},winScrollTop:function(){let e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;return e<0&&(e=0),e},scrolledToBottom:function(e){return this.winScrollTop()>=e.offsetTop+e.offsetHeight-window.innerHeight},removeClassPrefix:function(e,t,i){e.forEach(e=>{let s=e.classList;for(let l=0;l<s.length;l++)if(t.test(s[l])){let r=s[l].replace(i,"");e.classList.replace(s[l],r)}})},menuAccordion:function(t){let i=this;if(!t)return;let s=!1,l=t.classList.contains("mobile-toggle-nav")||t.classList.contains("sidr-class-dropdown-menu");t.querySelectorAll(".menu-item-has-children, .sidr-class-menu-item-has-children").forEach(t=>{let i=t.querySelector("a");if(!i)return;let s=i.closest("span"),r=document.createElement("button");if(l?r.className="wpex-open-submenu wpex-unstyled-button wpex-flex wpex-items-center wpex-justify-end wpex-absolute wpex-top-0 wpex-right-0 wpex-h-100 wpex-cursor-pointer wpex-opacity-80 wpex-overflow-hidden":r.className="wpex-open-submenu wpex-unstyled-button wpex-block",r.setAttribute("aria-haspopup","true"),r.setAttribute("aria-expanded","false"),r.setAttribute("role","button"),r.setAttribute("aria-label",e.i18n.openSubmenu.replace("%s",i.textContent.trim())),l){if(e.mobileMenuOpenSubmenuIcon){let o=document.createElement("div");o.innerHTML=e.mobileMenuOpenSubmenuIcon,r.appendChild(o.firstChild)}if(e.mobileMenuOpenSubmenuIconActive){let n=document.createElement("div");n.innerHTML=e.mobileMenuOpenSubmenuIconActive,r.appendChild(n.firstChild)}}else{let a=document.createElement("span");a.className="ticon ticon-angle-down",a.setAttribute("aria-hidden","true"),r.appendChild(a)}s?s.appendChild(r):i.appendChild(r)});let r=t=>{let l=t.closest("li.active");l.classList.remove("active");let r=l.querySelector("a"),o=l.querySelector(".wpex-open-submenu");o.setAttribute("aria-expanded","false"),o.setAttribute("aria-label",e.i18n.openSubmenu.replace("%s",r.textContent.trim())),s=!0;let n=o.querySelector(".wpex-open-submenu__icon");if(n){let a=o.querySelector(".wpex-open-submenu__icon--open");a?(n.classList.remove("wpex-hidden"),a.classList.add("wpex-hidden")):n.classList.remove("wpex-rotate-180")}i.slideUp(t,null,function(){s=!1})},o=l=>{let o=l.target.closest(".wpex-open-submenu");if(!o||!t.contains(o))return;let n=o.closest("li");if(!n)return;let a=n.querySelector("ul");if(!a)return;let c=n.querySelector("a");if(c){if(l.preventDefault(),l.stopPropagation(),!s){if(n.classList.contains("active"))n.querySelectorAll("li.active > ul").forEach(e=>{r(e)}),n.classList.remove("active"),o.setAttribute("aria-expanded","false"),o.setAttribute("aria-label",e.i18n.openSubmenu.replace("%s",c.textContent.trim())),s=!0,i.slideUp(a,null,function(){s=!1});else{o.setAttribute("aria-expanded","true"),o.setAttribute("aria-label",e.i18n.closeSubmenu.replace("%s",c.textContent.trim()));let d=o.querySelector(".wpex-open-submenu__icon");if(d){let p=o.querySelector(".wpex-open-submenu__icon--open");p?(d.classList.add("wpex-hidden"),p.classList.remove("wpex-hidden")):d.classList.add("wpex-rotate-180")}t.querySelectorAll("li.active > ul").forEach(e=>{e.contains(a)||r(e)}),s=!0,i.slideDown(a,null,function(){s=!1}),n.classList.add("active")}}}};document.addEventListener("click",o)},setHamburgerIconState:function(e){if(!e){let t=document.querySelector("a.mobile-menu-toggle, button.mobile-menu-toggle, li.mobile-menu-toggle > a");e=t?t.querySelector(".wpex-hamburger-icon"):null}e&&(e.classList.contains("wpex-hamburger-icon--active")?(e.classList.remove("wpex-hamburger-icon--active"),e.classList.add("wpex-hamburger-icon--inactive")):e.classList.contains("wpex-hamburger-icon--inactive")&&(e.classList.remove("wpex-hamburger-icon--inactive"),e.classList.add("wpex-hamburger-icon--active")))},getScrollBarWidth:function(){return window.innerWidth-document.body.clientWidth},getElTransitionDuration:function(e){let t=window.getComputedStyle(e).transitionDuration;return t&&"0s"===t||(t=parseFloat(t)*(t.indexOf("ms")>-1?1:1e3)),parseFloat(t)||0},htmlNoScroll:function(e,t){let i=document.querySelector("html");switch(e){case"add":let s=this.getScrollBarWidth();i.style.setProperty("--html-noscroll-padding",`${s}px`),i.classList.add("html-noscroll");break;case"remove":i.classList.remove("html-noscroll"),i.style.setProperty("--html-noscroll-padding","")}},debounce:function(e,t=10){let i=null;return(...s)=>{window.clearTimeout(i),i=window.setTimeout(()=>{e.apply(null,s)},t)}},getScrollToBehavior:function(){return e.scrollToBehavior||"smooth"}}).init()}(wpex_theme_params);