import{r as p,j as c,c as f}from"./app-BBZbvTSO.js";import{a as u}from"./utils-YhN_nlHn.js";var l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],x=l.reduce((i,t)=>{const o=u(`Primitive.${t}`),r=p.forwardRef((s,e)=>{const{asChild:a,...n}=s,m=a?o:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(m,{...n,ref:e})});return r.displayName=`Primitive.${t}`,{...i,[t]:r}},{});function h(i,t){i&&f.flushSync(()=>i.dispatchEvent(t))}export{x as P,h as d};
