1import{W as t,r as C}from"./jsx-runtime-c7lzrv_k.js";import{a as v}from"./index-BV3nyi7z.js";import{$ as m,b as p}from"./button-C_hcPULz.js";function D(l){const i=l+"CollectionProvider",[$,x]=v(i),[R,a]=$(i,{collectionRef:{current:null},itemMap:new Map}),M=r=>{const{scope:e,children:s}=r,o=t.useRef(null),c=t.useRef(new Map).current;return t.createElement(R,{scope:e,itemMap:c,collectionRef:o},s)},b=l+"CollectionSlot",E=t.forwardRef((r,e)=>{const{scope:s,children:o}=r,c=a(b,s),n=m(e,c.collectionRef);return t.createElement(p,{ref:n},o)}),I=l+"CollectionItemSlot",d="data-radix-collection-item",S=t.forwardRef((r,e)=>{const{scope:s,children:o,...c}=r,n=t.useRef(null),u=m(e,n),f=a(I,s);return t.useEffect(()=>(f.itemMap.set(n,{ref:n,...c}),()=>void f.itemMap.delete(n))),t.createElement(p,{[d]:"",ref:u},o)});function A(r){const e=a(l+"CollectionConsumer",r);return t.useCallback(()=>{const o=e.collectionRef.current;if(!o)return[];const c=Array.from(o.querySelectorAll(`[${d}]`));return Array.from(e.itemMap.values()).sort((f,T)=>c.indexOf(f.ref.current)-c.indexOf(T.ref.current))},[e.collectionRef,e.itemMap])}return[{Provider:M,Slot:E,ItemSlot:S},A,x]}const O=C.createContext(void 0);function P(l){const i=C.useContext(O);return l||i||"ltr"}export{P as $,D as a};
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.