import{ah as t}from"./index-e717fda1.js";const u=({theme:n,ownerState:r},l)=>{let i={};function o(f){if(typeof f=="function"){const e=f(n);o(e)}else Array.isArray(f)?f.forEach(e=>{typeof e!="boolean"&&o(e)}):typeof f=="object"&&(i=t({},i,f))}return r.sx&&(o(r.sx),l.forEach(f=>{const e=i[f];if(typeof e=="string"||typeof e=="number")if(f==="borderRadius")if(typeof e=="number")i[f]=`${e}px`;else{var s;i[f]=((s=n.vars)==null?void 0:s.radius[e])||e}else["p","padding","m","margin"].indexOf(f)!==-1&&typeof e=="number"?i[f]=n.spacing(e):i[f]=e;else typeof e=="function"?i[f]=e(n):i[f]=void 0})),i};export{u as r};
