globalThis.process??={},globalThis.process.env??={};function e(t){var n,r,i=``;if(typeof t==`string`||typeof t==`number`)i+=t;else if(typeof t==`object`){if(Array.isArray(t)){var a=t.length;for(n=0;n<a;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=` `),i+=r)}else for(r in t)t[r]&&(i&&(i+=` `),i+=r)}return i}function t(){for(var t,n,r=0,i=``,a=arguments.length;r<a;r++)(t=arguments[r])&&(n=e(t))&&(i&&(i+=` `),i+=n);return i}var n=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,r=t,i=(e,t)=>i=>{if(t?.variants==null)return r(e,i?.class,i?.className);let{variants:a,defaultVariants:o}=t,s=Object.keys(a).map(e=>{let t=i?.[e],r=o?.[e];if(t===null)return null;let s=n(t)||n(r);return a[e][s]}),c=i&&Object.entries(i).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return r(e,s,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...c}[t]):{...o,...c}[t]===n})?[...e,n,r]:e},[]),i?.class,i?.className)};function a(...e){return e.filter(Boolean).join(` `)}var o=i(``,{variants:{tone:{fg:`text-fg`,"fg-muted":`text-fg-muted`,accent:`bg-accent text-accent-fg`,surface:`bg-surface text-fg`,danger:`bg-danger text-accent-fg`},radius:{none:`rounded-none`,sm:`rounded-sm`,md:`rounded-md`,lg:`rounded-lg`,xl:`rounded-xl`,full:`rounded-full`},size:{sm:`text-sm`,base:`text-base`,lg:`text-lg`}},defaultVariants:{tone:`surface`,radius:`md`,size:`base`}});export{o as n,i as r,a as t};