function g(e,t,r){const a={};return Object.keys(e).forEach(u=>{a[u]=e[u].reduce((n,s)=>(s&&(r&&r[s]&&n.push(r[s]),n.push(t(s))),n),[]).join(" ")}),a}const i=e=>e,o=()=>{let e=i;return{configure(t){e=t},generate(t){return e(t)},reset(){e=i}}},c=o(),l=c,d={active:"Mui-active",checked:"Mui-checked",completed:"Mui-completed",disabled:"Mui-disabled",error:"Mui-error",expanded:"Mui-expanded",focused:"Mui-focused",focusVisible:"Mui-focusVisible",required:"Mui-required",selected:"Mui-selected"};function f(e,t){return d[t]||`${l.generate(e)}-${t}`}function p(e,t){const r={};return t.forEach(a=>{r[a]=f(e,a)}),r}export{f as a,g as c,p as g};
