import{a7 as s,as as v,gx as b,a9 as n,ad as j,gy as k}from"./index-91e9700c.js";const E=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],L=["component","slots","slotProps"],N=["component"];function W(e,o){const{className:x,elementType:g,ownerState:l,externalForwardedProps:p,getSlotOwnerState:a,internalForwardedProps:d}=o,y=s(o,E),{component:c,slots:t={[e]:void 0},slotProps:F={[e]:void 0}}=p,O=s(p,L),P=t[e]||g,r=v(F[e],l),i=b(n({className:x},y,{externalForwardedProps:e==="root"?O:void 0,externalSlotProps:r})),{props:{component:u},internalRef:_}=i,S=s(i.props,N),C=j(_,r==null?void 0:r.ref,o.ref),f=a?a(S):{},T=n({},l,f),w=e==="root"?u||c:u,m=k(P,n({},e==="root"&&!c&&!t[e]&&d,e!=="root"&&!t[e]&&d,S,w&&{as:w},{ref:C}),T);return Object.keys(f).forEach(h=>{delete m[h]}),[P,m]}export{W as u};
