1import{s as e}from"./rolldown-runtime-BG2f4sTM.js";import{n as t,t as n}from"./jsx-runtime-CC-kRuLe.js";import{yt as r}from"./index-C_RXIV_D.js";var i=e(t(),1),a=n(),o=(0,i.createContext)(null),s=({children:e})=>{let[t,n]=(0,i.useState)([]),s=(0,i.useCallback)(e=>{let t=r();return n(n=>[...n,{id:t,element:e}]),()=>{n(e=>e.filter(e=>e.id!==t))}},[]),c=(0,i.useMemo)(()=>({addOverlayElement:s}),[s]);return(0,a.jsxs)(o.Provider,{value:c,children:[e,t.map(({id:e,element:t})=>(0,a.jsx)(i.Fragment,{children:t},e))]})},c=()=>{let e=(0,i.useContext)(o);if(!e)throw Error(`useOverlayContext should be used within a OverlayProvider`);return e};export{c 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.