1class SearchForm extends HTMLElement{constructor(){super(),this.input=this.querySelector('input[type="search"]'),this.input&&(this.input.form.addEventListener("reset",this.onFormReset.bind(this)),this.input.addEventListener("input",debounce(e=>{this.onChange(e)},300).bind(this)))}shouldResetForm(){return!document.querySelector('[aria-selected="true"] a')}onFormReset(e){e.preventDefault(),this.shouldResetForm()&&(this.input.value="",this.input.focus())}}customElements.define("search-form",SearchForm);
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.