1import{Controller}from"@hotwired/stimulus";import debounce from"debounce";export default class extends Controller{initialize(){this.debouncedSubmit=debounce(this.debouncedSubmit.bind(this),500),this.abortController=null}submit(){this.abortController&&this.abortController.abort(),this.abortController=new AbortController;const n=this.element.querySelector('input[type="text"]'),t=n?n.value:null;this.element.requestSubmit(),n&&t!==null&&requestAnimationFrame(()=>{const e=this.element.querySelector('input[type="text"]');e&&e.value!==t&&(e.value=t,e.setSelectionRange(t.length,t.length))})}debouncedSubmit(){this.submit()}}
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.