import"./SiteHeader.astro_astro_type_script_index_0_lang.BSu-EW2k.js";const n=document.querySelectorAll('[role="tab"]'),s=document.querySelectorAll('[role="tabpanel"]');n.forEach(t=>{t.addEventListener("click",()=>{const r=t.getAttribute("data-tab");n.forEach(e=>{e.setAttribute("aria-selected","false")}),t.setAttribute("aria-selected","true"),s.forEach(e=>{e.getAttribute("data-panel")===r?e.classList.remove("hidden"):e.classList.add("hidden")})})});const a=document.getElementById("menu-tabs");a?.addEventListener("keydown",t=>{const r=document.activeElement;if(!r||r.getAttribute("role")!=="tab")return;const e=Array.from(n),l=e.indexOf(r);if(t.key==="ArrowRight"){t.preventDefault();const c=e[(l+1)%e.length];c.focus(),c.click()}else if(t.key==="ArrowLeft"){t.preventDefault();const c=e[(l-1+e.length)%e.length];c.focus(),c.click()}else t.key==="Home"?(t.preventDefault(),e[0].focus(),e[0].click()):t.key==="End"&&(t.preventDefault(),e[e.length-1].focus(),e[e.length-1].click())});
