function ga_skiplinks(){"use strict";var fragmentID=location.hash.substring(1);if(fragmentID){var element=document.getElementById(fragmentID);element&&(!1===/^(?:a|select|input|button|textarea)$/i.test(element.tagName)&&(element.tabIndex=-1),element.focus())}}window.addEventListener?window.addEventListener("hashchange",ga_skiplinks,!1):window.attachEvent("onhashchange",ga_skiplinks);
(function(){function t(t){var n=o("#wpfront-scroll-top-container"),e=!1,i=0,a=function(){clearTimeout(i),n.is(":visible")&&n.stop().fadeTo(t.button_fade_duration,0,function(){n.hide(),e=!1})},c=function(){t.auto_hide&&(clearTimeout(i),i=setTimeout(function(){a()},1e3*t.auto_hide_after))},l=!1,r=function(){l||(l=!0,o(window).scrollTop()>t.scroll_offset?(n.stop().css("opacity",e?1:t.button_opacity).show(),e||c()):a(),l=!1)};o(window).on("scroll",r),o(document).on("scroll",r),n.on("mouseenter",function(){clearTimeout(i),e=!0,o(this).css("opacity",1)}).on("mouseleave",function(){o(this).css("opacity",t.button_opacity),e=!1,c()}).on("click",function(n){if("url"===t.button_action)return!0;if("element"===t.button_action){n.preventDefault();var e=o(t.button_action_element_selector).first(),i=o(t.button_action_container_selector),a=e.offset();if(null==a)return!1;var c=i.last().offset();if(null==c)return!1;t.button_action_element_offset=parseInt(t.button_action_element_offset),isNaN(t.button_action_element_offset)&&(t.button_action_element_offset=0);var l=a.top-c.top-t.button_action_element_offset;return i.animate({scrollTop:l},t.scroll_duration),!1}return n.preventDefault(),o("html, body").animate({scrollTop:0},t.scroll_duration),!1})}var o=jQuery;o(window).on("load",function(){function n(n){n.data.hide_iframe&&o(window).attr("self")!==o(window).attr("top")||(o("<style>").text(n.css).appendTo("head"),o("body").append(n.html),t(n.data))}n(wpfront_scroll_top_data.data)})})();
function maiToggleAriaValues(e){var t="false"===e.getAttribute("aria-expanded")?"true":"false";return e.setAttribute("aria-expanded",t),e.setAttribute("aria-pressed",t),e}!function(){var e=document.documentElement,t=document.getElementsByTagName("body")[0],r=window.innerWidth-document.documentElement.clientWidth,c=document.querySelectorAll(".search-toggle");!CSS.supports("width","100dvw")&&r>0&&r<=20&&(e.style.setProperty("--scrollbar-width",r+"px"),e.style.setProperty("--viewport-width","calc(100vw - var(--scrollbar-width, 0px))"));var o=function(e){var t=e.target.closest(".search-icon-form");t&&s(t)},s=function(e){var r=e.closest(".search-icon-form");if(r){var c=r.querySelector(".search-form");maiToggleAriaValues(r.querySelector(".search-toggle")),c.classList.toggle("search-form-visible"),c.classList.contains("search-form-visible")?(t.addEventListener("keydown",i,!1),t.addEventListener("click",i,!1),c.querySelector(".search-form-input").focus()):(t.removeEventListener("keydown",i,!1),t.removeEventListener("click",i,!1))}},i=function(e){e.target.closest(".search-icon-form")&&!["Escape","Esc"].includes(e.key)||document.querySelectorAll(".search-form-visible").forEach((function(e){s(e)}))};c.forEach((function(e){e.addEventListener("click",o,!1)}))}();
!function(){var e="undefined"==typeof maiMenuVars?{}:maiMenuVars,t=document.getElementsByTagName("body")[0],n=document.querySelector(".site-header-wrap"),s=[document.getElementsByClassName("nav-header-left")[0],document.getElementsByClassName("nav-header-right")[0],document.getElementsByClassName("nav-after-header")[0]],a=document.querySelector(".mobile-menu"),i=document.querySelector(".mobile-menu .wrap"),l=document.querySelector(".mobile-menu .menu"),r=document.querySelector(".mobile-menu .widget"),o=document.getElementsByClassName("menu-toggle")[0];if(n){var u=function(e){o&&(maiToggleAriaValues(o),t.classList.toggle("mobile-menu-visible"),t.classList.contains("mobile-menu-visible")?(t.addEventListener("keydown",c,!1),t.addEventListener("click",c,!1)):(t.removeEventListener("keydown",c,!1),t.removeEventListener("click",c,!1)))},c=function(e){e.target.closest(".menu-toggle, .mobile-menu")&&!["Escape","Esc"].includes(e.key)||u()};a||((a=document.createElement("div")).setAttribute("class","mobile-menu"),a.setAttribute("aria-label",e.ariaLabel),e.disableMicroData||(a.setAttribute("itemscope",""),a.setAttribute("itemtype","https://schema.org/SiteNavigationElement")),i||((i=document.createElement("div")).setAttribute("class","wrap"),a.appendChild(i)),l||((l=document.createElement("ul")).setAttribute("class","menu"),i.appendChild(l)),n.parentNode.insertBefore(a,null)),a.classList.contains("template-part")||r||s.forEach((function(e){if(e){var t=e.querySelector(".menu");if(t){var n=t.cloneNode(!0);n.setAttribute("id",e.getAttribute("id")+"-clone"),Array.from(n.children).forEach((function(e){var t=e.getAttribute("class");if(t){var n=t.split(" ").pop();e.setAttribute("id",n),l&&null===l.querySelector("#"+n)&&!e.classList.contains("search")&&(e.removeAttribute("id"),l.appendChild(e))}}))}}})),document.querySelectorAll(".mobile-menu .menu-item").forEach((function(e){e.classList.add("mobile-menu-item")})),document.querySelectorAll(".mobile-menu .sub-menu").forEach((function(t){var n=document.createElement("button"),s=e.subMenuToggle,a=t.closest(".menu-item");if(a){var i=a.querySelector('span[itemprop="name"]');(i=i?i.innerText.trim():"")&&(s=i+" "+s)}n.setAttribute("class","sub-menu-toggle"),n.setAttribute("aria-expanded","false"),n.setAttribute("aria-pressed","false"),n.innerHTML='<span class="sub-menu-toggle-icon"></span><span class="screen-reader-text">'+s+"</span>",t.parentNode.insertBefore(n,t)})),o&&o.addEventListener("click",u,!1),document.addEventListener("click",(function(e){(e.target.classList.contains("sub-menu-toggle")||e.target.classList.contains("sub-menu-toggle-icon"))&&function(e){var t=e.target.classList.contains("sub-menu-toggle")?e.target:e.target.parentNode,n=(t=t.classList.contains("menu-item")?t.getElementsByClassName("sub-menu-toggle")[0]:t).nextSibling;maiToggleAriaValues(t),t.classList.toggle("active"),n.classList.toggle("visible")}(e)}),!1)}}();
!function(){var e=document.documentElement,t=document.getElementsByTagName("body")[0],s=document.getElementsByClassName("genesis-skip-link")[0],n=document.getElementsByClassName("before-header")[0],a=document.getElementsByTagName("header")[0],r=document.getElementsByClassName("after-header")[0],i=document.getElementsByClassName("nav-after-header")[0],c=document.getElementsByClassName("page-header")[0],h=window.getComputedStyle(document.documentElement).getPropertyValue("--breakpoint-sm"),o=a&&t.classList.contains("has-dark-header"),l=a&&t.classList.contains("has-sticky-header"),d=a&&t.classList.contains("has-transparent-header"),g=a&&d&&t.classList.contains("has-dark-transparent-header"),m=c&&t.classList.contains("has-page-header"),u=!!a&&getComputedStyle(a),y=!!a&&1e3*parseFloat(u.getPropertyValue("transition-duration")),p=!1,f=!1,v=!1;m?f=c:(t.classList.contains("is-single")?v=document.querySelectorAll("#genesis-content > .entry-single:first-child > .entry-wrap-single:first-child > .entry-content:first-child > :not(:empty):first-of-type"):t.classList.contains("is-archive")&&(v=document.querySelectorAll("#genesis-content > :not(:empty):first-of-type")),v=!!(v&&v.length&&v[0].classList.contains("alignfull"))&&v[0],f=(p=v)?v:f);var L=new IntersectionObserver((function(e){e[0].isIntersecting?(t.classList.remove("header-stuck"),!d||o||g||t.classList.remove("has-dark-header")):(window.innerWidth||document.documentElement.clientWidth)>parseInt(h,10)&&(t.classList.add("header-stuck"),d&&o&&t.classList.add("has-dark-header"))}),{threshold:[0,1]}),b=new ResizeObserver(t=>{t.forEach(t=>{e.style.setProperty("--before-header-height",Math.ceil(t.contentRect.height)+"px")})}),E=0,R=0,k=0,w=new ResizeObserver(s=>{s.forEach(s=>{s.contentRect.width===E&&R&&k||(t.classList.contains("header-stuck")?(e.style.setProperty("--header-height-shrunk",Math.ceil(s.contentRect.height)+"px"),setTimeout((function(){e.style.setProperty("--header-height-shrunk",Math.ceil(s.contentRect.height)+"px"),k=1}),y)):(e.style.setProperty("--header-height-full",Math.ceil(s.contentRect.height)+"px"),setTimeout((function(){e.style.setProperty("--header-height-full",Math.ceil(s.contentRect.height)+"px"),R=1}),y)),E=s.contentRect.width),e.style.setProperty("--header-height",Math.ceil(s.contentRect.height)+"px")})}),P=new ResizeObserver(t=>{t.forEach(t=>{e.style.setProperty("--after-header-height",Math.ceil(t.contentRect.height)+"px")})}),x=new ResizeObserver(t=>{t.forEach(t=>{e.style.setProperty("--nav-after-header-height",Math.ceil(t.contentRect.height)+"px")})});n&&b.observe(n),a&&w.observe(a),r&&P.observe(r),i&&x.observe(i),l&&L.observe(n||s),p&&t.classList.add("has-alignfull-first"),f&&f.classList.add("is-alignfull-first")}();