import{D as e,I as t}from"./Fade-Bj1YUcWe.js";function n(e){return typeof e==`string`}function r(e,t,r){return e===void 0||n(e)?t:{...t,ownerState:{...t.ownerState,...r}}}function i(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function a(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function o(e){let{getSlotProps:n,additionalProps:r,externalSlotProps:o,externalForwardedProps:s,className:c}=e;if(!n){let e=t(r?.className,c,s?.className,o?.className),n={...r?.style,...s?.style,...o?.style},i={...r,...s,...o};return e.length>0&&(i.className=e),Object.keys(n).length>0&&(i.style=n),{props:i,internalRef:void 0}}let l=i({...s,...o}),u=a(o),d=a(s),f=n(l),p=t(f?.className,r?.className,c,s?.className,o?.className),m={...f?.style,...r?.style,...s?.style,...o?.style},h={...f,...r,...d,...u};return p.length>0&&(h.className=p),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:f.ref}}function s(e,t,n){return typeof e==`function`?e(t,n):e}function c(t,n){let{className:i,elementType:a,ownerState:c,externalForwardedProps:l,internalForwardedProps:u,shouldForwardComponentProp:d=!1,...f}=n,{component:p,slots:m={[t]:void 0},slotProps:h={[t]:void 0},...g}=l,_=m[t]||a,v=s(h[t],c),{props:{component:y,...b},internalRef:x}=o({className:i,...f,externalForwardedProps:t===`root`?g:void 0,externalSlotProps:v}),S=e(x,v?.ref,n.ref),C=t===`root`?y||p:y;return[_,r(_,{...t===`root`&&!p&&!m[t]&&u,...t!==`root`&&!m[t]&&u,...b,...C&&!d&&{as:C},...C&&d&&{component:C},ref:S},c)]}export{r as a,i,s as n,o as r,c as t};