vendor: 2,959 bytes, line 1
1import{r as n,j as E,g as _,z as R,h as A,A as T}from"./main-BGPPHxHM.js";import{c as b,g as j}from"./index-D3F3hwE6.js";function M(e){const t=P(e),o=n.forwardRef((r,s)=>{const{children:l,...a}=r,c=n.Children.toArray(l),d=c.find(w);if(d){const u=d.props.children,x=c.map(y=>y===d?n.Children.count(u)>1?n.Children.only(null):n.isValidElement(u)?u.props.children:null:y);return E.jsx(t,{...a,ref:s,children:n.isValidElement(u)?n.cloneElement(u,void 0,x):null})}return E.jsx(t,{...a,ref:s,children:l})});return o.displayName=`${e}.Slot`,o}function P(e){const t=n.forwardRef((o,r)=>{const{children:s,...l}=o;if(n.isValidElement(s)){const a=V(s),c=L(l,s.props);return s.type!==n.Fragment&&(c.ref=r?_(r,a):a),n.cloneElement(s,c)}return n.Children.count(s)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var D=Symbol("radix.slottable");function w(e){return n.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===D}function L(e,t){const o={...t};for(const r in t){const s=e[r],l=t[r];/^on[A-Z]/.test(r)?s&&l?o[r]=(...c)=>{const d=l(...c);return s(...c),d}:s&&(o[r]=s):r==="style"?o[r]={...s,...l}:r==="className"&&(o[r]=[s,l].filter(Boolean).join(" "))}return{...e,...o}}function V(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning;return o?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,o=t&&"isReactWarning"in t&&t.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function H(e){const t=e+"CollectionProvider",[o,r]=b(t),[s,l]=o(t,{collectionRef:{current:null},itemMap:new Map}),a=m=>{const{scope:i,children:S}=m,f=R.useRef(null),p=R.useRef(new Map).current;return E.jsx(s,{scope:i,itemMap:p,collectionRef:f,children:S})};a.displayName=t;const c=e+"CollectionSlot",d=M(c),u=R.forwardRef((m,i)=>{const{scope:S,children:f}=m,p=l(c,S),C=A(i,p.collectionRef);return E.jsx(d,{ref:C,children:f})});u.displayName=c;const x=e+"CollectionItemSlot",y="data-radix-collection-item",N=M(x),g=R.forwardRef((m,i)=>{const{scope:S,children:f,...p}=m,C=R.useRef(null),v=A(i,C),I=l(x,S);return R.useEffect(()=>(I.itemMap.set(C,{ref:C,...p}),()=>{I.itemMap.delete(C)})),E.jsx(N,{[y]:"",ref:v,children:f})});g.displayName=x;function h(m){const i=l(e+"CollectionConsumer",m);return R.useCallback(()=>{const f=i.collectionRef.current;if(!f)return[];const p=Array.from(f.querySelectorAll(`[${y}]`));return Array.from(i.itemMap.values()).sort((I,O)=>p.indexOf(I.ref.current)-p.indexOf(O.ref.current))},[i.collectionRef,i.itemMap])}return[{Provider:a,Slot:u,ItemSlot:g},h,r]}var W=n.createContext(void 0);function q(e){const t=n.useContext(W);return e||t||"ltr"}function z(e){const t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...o)=>t.current?.(...o),[])}var $=T[" useId ".trim().toString()]||(()=>{}),k=0;function Z(e){const[t,o]=n.useState($());return j(()=>{o(r=>r??String(k++))},[e]),e||(t?`radix-${t}`:"")}export{q as a,Z as b,H as c,z as u};
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.