1var d=Object.defineProperty;var o=(s,e,n)=>e in s?d(s,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[e]=n;var t=(s,e,n)=>(o(s,typeof e!="symbol"?e+"":e,n),n);import{S as i}from"../../scroll-lock-e0930c24.js";class l{constructor(e){t(this,"element");t(this,"containerElement");t(this,"isOpen");t(this,"subscribeOpenId");t(this,"subscribeCloseId");t(this,"publishOpenId");t(this,"publishCloseId");t(this,"publishCloseByTabId");t(this,"boundOnOutsideClick");t(this,"boundOnKeyDown");t(this,"transitionEndHandler");this.element=e,this.containerElement=this.element.querySelector(".j-cg-toggle-slider__container"),this.isOpen=!1,this.subscribeOpenId=this.element.dataset.subscribeOpenId,this.subscribeCloseId=this.element.dataset.subscribeCloseId,this.publishOpenId=this.element.dataset.publishOpenId,this.publishCloseId=this.element.dataset.publishCloseId,this.publishCloseByTabId=this.element.dataset.publishCloseByTabId,this.boundOnOutsideClick=this.onOutsideClick.bind(this),this.boundOnKeyDown=this.onKeyDown.bind(this),document.addEventListener(this.subscribeOpenId,()=>{this.open()}),document.addEventListener(this.subscribeCloseId,()=>{this.close()}),this.transitionEndHandler=this.onOpenEnd.bind(this)}open(){this.isOpen=!0,this.element.classList.add("is-open"),this.removeTransitionEndHandler(),this.containerElement.addEventListener("transitionend",this.transitionEndHandler),this.element.setAttribute("aria-hidden","false"),i.getInstance().disable(),window.setTimeout(()=>{this.addOutsideClick(),this.addKeyboardEvents()}),document.dispatchEvent(new CustomEvent(this.publishOpenId))}close(){this.isOpen=!1,this.removeTransitionEndHandler(),this.element.classList.remove("is-opened"),this.element.classList.remove("is-open"),this.element.setAttribute("aria-hidden","true"),i.getInstance().enable(),window.setTimeout(()=>{this.removeOutsideClick(),this.removeKeyboardEvents()}),document.dispatchEvent(new CustomEvent(this.publishCloseId))}removeTransitionEndHandler(){this.containerElement.removeEventListener("transitionend",this.transitionEndHandler)}onOpenEnd(){this.removeTransitionEndHandler(),this.element.classList.add("is-opened")}addOutsideClick(){document.addEventListener("click",this.boundOnOutsideClick)}removeOutsideClick(){document.removeEventListener("click",this.boundOnOutsideClick)}onOutsideClick(e){this.containerElement.contains(e.target)||this.close()}addKeyboardEvents(){document.addEventListener("keydown",this.boundOnKeyDown)}removeKeyboardEvents(){document.removeEventListener("keydown",this.boundOnKeyDown)}onKeyDown(e){(e.key==="Escape"||e.key==="Esc")&&(document.dispatchEvent(new CustomEvent(this.publishCloseByTabId)),this.close())}}document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".j-cg-toggle-slider").forEach(s=>{new l(s)})});
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.