1function e(){let e=window.location.pathname.replace(/\/$/,``)||`/`;document.querySelectorAll(`.hdr__nav-link`).forEach(t=>{let n=t.getAttribute(`href`)?.replace(/\/$/,``)??``;t.classList.toggle(`is-active`,n===e)}),document.querySelectorAll(`.hdr__nav-item--drop`).forEach(t=>{let n=Array.from(t.querySelectorAll(`.hdr__mega-item[href]`)),r=Array.from(t.querySelectorAll(`.hdr__mega-secondary-link[href]`)),i=[...n,...r],a=i.some(t=>(t.getAttribute(`href`)?.replace(/\/$/,``)??``)===e);t.querySelector(`.hdr__nav-btn`)?.classList.toggle(`is-active`,a),i.forEach(t=>{t.classList.toggle(`is-active`,(t.getAttribute(`href`)?.replace(/\/$/,``)??``)===e)})}),document.querySelectorAll(`.hdr__overlay-link`).forEach(t=>{let n=t.getAttribute(`href`)?.replace(/\/$/,``)??``;t.classList.toggle(`is-active`,n===e)}),document.querySelectorAll(`.hdr__overlay-item`).forEach(t=>{let n=Array.from(t.querySelectorAll(`.hdr__overlay-sub-link[href]`)),r=n.some(t=>(t.getAttribute(`href`)?.replace(/\/$/,``)??``)===e);t.querySelector(`.hdr__overlay-toggle`)?.classList.toggle(`is-active`,r),n.forEach(t=>{t.classList.toggle(`is-active`,(t.getAttribute(`href`)?.replace(/\/$/,``)??``)===e)})})}e(),document.addEventListener(`astro:page-load`,e),document.getElementById(`hdr-theme-toggle`)?.addEventListener(`click`,()=>{document.documentElement.classList.add(`is-theme-switching`),setTimeout(()=>document.documentElement.classList.remove(`is-theme-switching`),400);let e=document.documentElement.getAttribute(`data-theme`)===`dark`,t=window.matchMedia(`(prefers-color-scheme: dark)`).matches;e?(document.documentElement.removeAttribute(`data-theme`),t?localStorage.setItem(`bm-theme`,`light`):localStorage.removeItem(`bm-theme`)):(document.documentElement.setAttribute(`data-theme`,`dark`),t?localStorage.removeItem(`bm-theme`):localStorage.setItem(`bm-theme`,`dark`))});var t=document.getElementById(`site-header`);if(t){let e=()=>t.classList.toggle(`is-scrolled`,window.scrollY>24);window.addEventListener(`scroll`,e,{passive:!0}),e()}var n=document.getElementById(`hdr-toggle`),r=null;function i(e){return Array.from(e.querySelectorAll(`a[href], button:not([disabled])`)).filter(t=>{let n=t;for(;n&&n!==e;){if(getComputedStyle(n).display===`none`)return!1;n=n.parentElement}return!0})}function a(){return document.getElementById(`hdr-overlay`)}function o(){let e=a(),t=document.getElementById(`site-header`);e&&t&&e.style.setProperty(`--hdr-h`,t.offsetHeight+`px`),e?.classList.add(`is-open`),n?.setAttribute(`aria-expanded`,`true`),n?.setAttribute(`aria-label`,`Close menu`),e?.setAttribute(`aria-hidden`,`false`),document.body.style.overflow=`hidden`,e?.querySelectorAll(`.hdr__overlay-toggle`).forEach(e=>{let t=e.classList.contains(`is-active`),n=e.nextElementSibling;t&&n&&(e.setAttribute(`aria-expanded`,`true`),n.classList.add(`is-open`))}),e&&(requestAnimationFrame(()=>{i(e)[0]?.focus()}),r&&document.removeEventListener(`keydown`,r),r=e=>{if(e.key!==`Tab`)return;let t=a();if(!t?.classList.contains(`is-open`))return;let n=i(t);if(n.length===0)return;let r=n[0],o=n[n.length-1];e.shiftKey?document.activeElement===r&&(e.preventDefault(),o.focus()):document.activeElement===o&&(e.preventDefault(),r.focus())},document.addEventListener(`keydown`,r))}function s(){let e=a();e?.classList.remove(`is-open`),n?.setAttribute(`aria-expanded`,`false`),n?.setAttribute(`aria-label`,`Open menu`),e?.setAttribute(`aria-hidden`,`true`),document.body.style.overflow=``,e?.querySelectorAll(`.hdr__overlay-toggle`).forEach(e=>{e.setAttribute(`aria-expanded`,`false`),e.nextElementSibling?.classList.remove(`is-open`)}),r&&=(document.removeEventListener(`keydown`,r),null),n?.focus()}n?.addEventListener(`click`,()=>{a()?.classList.contains(`is-open`)?s():o()});function c(){let e=a();e?.querySelectorAll(`a`).forEach(e=>e.addEventListener(`click`,s)),e?.querySelectorAll(`.hdr__overlay-toggle`).forEach(t=>{t.addEventListener(`click`,()=>{let n=t.getAttribute(`aria-expanded`)===`true`;e.querySelectorAll(`.hdr__overlay-toggle`).forEach(e=>{e.setAttribute(`aria-expanded`,`false`),e.nextElementSibling?.classList.remove(`is-open`)}),n||(t.setAttribute(`aria-expanded`,`true`),t.nextElementSibling?.classList.add(`is-open`))})})}document.addEventListener(`astro:page-load`,c),document.addEventListener(`ke
1ydown`,e=>{if(e.key!==`Escape`)return;s();let t=document.querySelector(`.hdr__nav-item--drop.is-open`);t&&(f(t),t.querySelector(`.hdr__nav-btn`)?.focus())}),document.addEventListener(`astro:before-swap`,()=>{s(),l.forEach(e=>f(e)),u&&=(clearTimeout(u),null)});var l=document.querySelectorAll(`.hdr__nav-item--drop`),u=null;function d(e){l.forEach(t=>{if(t!==e&&t.classList.contains(`is-open`)){let e=t.querySelector(`.hdr__mega`);e&&(e.style.transition=`none`,e.style.opacity=`0`),t.classList.remove(`is-open`),t.querySelector(`.hdr__nav-btn`)?.setAttribute(`aria-expanded`,`false`),requestAnimationFrame(()=>{e&&(e.style.transition=``,e.style.opacity=``)})}}),e.classList.add(`is-open`),e.querySelector(`.hdr__nav-btn`)?.setAttribute(`aria-expanded`,`true`)}function f(e){e.classList.remove(`is-open`),e.querySelector(`.hdr__nav-btn`)?.setAttribute(`aria-expanded`,`false`)}l.forEach(e=>{let t=e.querySelector(`.hdr__nav-btn`);e.addEventListener(`mouseenter`,()=>{u&&=(clearTimeout(u),null),d(e)}),e.addEventListener(`mouseleave`,()=>{u=setTimeout(()=>f(e),150)}),t?.addEventListener(`click`,t=>{t.detail===0&&(e.classList.contains(`is-open`)?f(e):(d(e),requestAnimationFrame(()=>{e.querySelector(`a.hdr__mega-item`)?.focus()})))}),e.addEventListener(`focusout`,t=>{e.contains(t.relatedTarget)||f(e)})});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.