1function d(e="[data-orgtabs]"){u(e||"[data-orgtabs]").forEach(c)}function c(e){if(!e||e.dataset.orgtabsInitialized==="1")return;const t=Array.from(e.querySelectorAll('[role="tab"]')),l=t.map(n=>document.getElementById(n.getAttribute("aria-controls"))).filter(Boolean);if(!t.length||t.length!==l.length)return;const a=(n,i=!0)=>{t.forEach((r,s)=>{const f=s===n;r.setAttribute("aria-selected",f?"true":"false"),r.tabIndex=f?0:-1,l[s]&&(l[s].hidden=!f)}),i&&t[n].focus()};let o=t.findIndex(n=>n.getAttribute("aria-selected")==="true");o<0&&(o=0),a(o,!1),t.forEach((n,i)=>{n.addEventListener("click",()=>a(i)),n.addEventListener("keydown",r=>{switch(r.key){case"ArrowRight":r.preventDefault(),a((i+1)%t.length);break;case"ArrowLeft":r.preventDefault(),a((i-1+t.length)%t.length);break;case"Home":r.preventDefault(),a(0);break;case"End":r.preventDefault(),a(t.length-1);break}})}),e.dataset.orgtabsInitialized="1"}function u(e){return typeof e=="string"?Array.from(document.querySelectorAll(e)):e instanceof Element?[e]:typeof e.length=="number"?Array.from(e):[]}export{d as initOrganizationTabs};
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.