1function l(e){if(!e)return null;const i=e.classList[0],s=e.querySelector(`.${i}__trigger`),c=e.querySelector(`.${i}__content`),d=e.querySelector(`.${i}__close`),a=`${i}--open`;if(!s||!c)return null;const o=()=>e.classList.contains(a),n=()=>{e.classList.remove(a),s.setAttribute("aria-expanded","false")},r=()=>{document.dispatchEvent(new CustomEvent("dropdown:open",{detail:{root:e}})),e.classList.add(a),s.setAttribute("aria-expanded","true")};return s.addEventListener("click",t=>{t.stopPropagation(),o()?n():r()}),d&&d.addEventListener("click",t=>{t.stopPropagation(),n()}),c.addEventListener("click",t=>t.stopPropagation()),document.addEventListener("click",n),document.addEventListener("keydown",t=>{t.key==="Escape"&&n()}),document.addEventListener("dropdown:open",t=>{t.detail.root!==e&&n()}),{root:e,trigger:s,content:c,open:r,close:n,isOpen:o}}export{l as i};
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.