1var e,r;import{o as t}from"./C_JJxWoe.js";import{Vr as n}from"./BjWD_pN5.js";import{u}from"./CZ0eLTaL.js";function s(t={}){const{guess:n,label:s,metadata:a,textRef:l,index:c}=t,{register:i,unregister:o,subscribeMapChange:f,nextIndexRef:x}=e.useContext(r),d=e.useRef(-1),[g,m]=e.useState(null==c&&n?()=>{if(-1===d.current){const e=x.current;x.current+=1,d.current=e}return d.current}:-1),b=c??g,p=e.useRef(null),R=e.useCallback(e=>{const r=p.current;r&&o(r),p.current=e,e&&i(e,{metadata:a??null,index:c??null,label:s,textRef:l})},[c,i,o,a,s,l]);return u(()=>{if(null==c)return f(e=>{const r=p.current?e.get(p.current)?.index:null;null!=r&&m(r)})},[c,f]),{ref:R,index:b}}e=t(n(),1),r=e.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});export{r as n,s as t};
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.