1const h=(e,t,{leading:r}={})=>{let s;return(...o)=>{!s&&r&&e(...o),clearTimeout(s),s=setTimeout(()=>e(...o),t)}},u=(e,{query:t})=>!!(e.title.toLowerCase().includes(t)||e.categories?.toLowerCase().includes(t)),c=e=>t=>!!e.categories?.includes(t),l=(e,{categories:t})=>t.some(c(e)),d=(e,{query:t="",categories:r=[]})=>{let s=[];return t&&s.push(u),r.length&&s.push(l),s.length?e.reduce((o,n)=>(s.some(i=>i(n,{query:t,categories:r}))&&o.push(n),o),[]):e};export{h as d,d as 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.