1import{o as e}from"./rolldown-runtime-C0FnF6B9.js";import{b as t,x as n}from"./vendor-BU8xE7eW.js";import{I as r,N as i,R as a}from"./tooltip--QueRHHY.js";var o=e(n(),1),s=e(t(),1);function c(e){let t=e+`CollectionProvider`,[n,c]=i(t),[l,u]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,r=o.useRef(null),i=o.useRef(new Map).current;return(0,s.jsx)(l,{scope:t,itemMap:i,collectionRef:r,children:n})};d.displayName=t;let f=e+`CollectionSlot`,p=r(f),m=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=u(f,n),o=a(t,i.collectionRef);return(0,s.jsx)(p,{ref:o,children:r})});m.displayName=f;let h=e+`CollectionItemSlot`,g=`data-radix-collection-item`,_=r(h),v=o.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,c=o.useRef(null),l=a(t,c),d=u(h,n);return o.useEffect(()=>(d.itemMap.set(c,{ref:c,...i}),()=>void d.itemMap.delete(c))),(0,s.jsx)(_,{[g]:``,ref:l,children:r})});v.displayName=h;function y(t){let n=u(e+`CollectionConsumer`,t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${g}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return[{Provider:d,Slot:m,ItemSlot:v},y,c]}var l=o.createContext(void 0),u=e=>{let{dir:t,children:n}=e;return(0,s.jsx)(l.Provider,{value:t,children:n})};function d(e){let t=o.useContext(l);return e||t||`ltr`}var f=u;export{d as n,c as r,f 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.