1import{c as h}from"./createLucideIcon-CVQNjKSO.js";import{r as u,j as v}from"./chunk-UVKPFVEO-DnDDjR15.js";import"./index-DN5ZygcJ.js";import{c as P}from"./button-B6YCuSur.js";const w=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],g=h("zap",w);function E(e,r=[]){let n=[];function a(s,t){const o=u.createContext(t);o.displayName=s+"Context";const c=n.length;n=[...n,t];const x=p=>{const{scope:d,children:l,...m}=p,S=d?.[e]?.[c]||o,C=u.useMemo(()=>m,Object.values(m));return v.jsx(S.Provider,{value:C,children:l})};x.displayName=s+"Provider";function f(p,d){const l=d?.[e]?.[c]||o,m=u.useContext(l);if(m)return m;if(t!==void 0)return t;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[x,f]}const i=()=>{const s=n.map(t=>u.createContext(t));return function(o){const c=o?.[e]||s;return u.useMemo(()=>({[`__scope${e}`]:{...o,[e]:c}}),[o,c])}};return i.scopeName=e,[a,_(i,...r)]}function _(...e){const r=e[0];if(e.length===1)return r;const n=()=>{const a=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const t=a.reduce((o,{useScope:c,scopeName:x})=>{const p=c(s)[`__scope${x}`];return{...o,...p}},{});return u.useMemo(()=>({[`__scope${r.scopeName}`]:t}),[t])}};return n.scopeName=r.scopeName,n}var b=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],M=b.reduce((e,r)=>{const n=P(`Primitive.${r}`),a=u.forwardRef((i,s)=>{const{asChild:t,...o}=i,c=t?n:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(c,{...o,ref:s})});return a.displayName=`Primitive.${r}`,{...e,[r]:a}},{});export{M as P,g as Z,E as c};
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.