import{s as N}from"./chunk-LvLJmgfZ.js";import{t as b}from"./react-Bj1aDYRI.js";import{t as u}from"./emotion-is-prop-valid.esm-lG8j6oqk.js";var w=function(){let t=Array.prototype.slice.call(arguments).filter(Boolean),e={},a=[];t.forEach(s=>{(s?s.split(" "):[]).forEach(l=>{if(l.startsWith("atm_")){let[,n]=l.split("_");e[n]=l}else a.push(l)})});let r=[];for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&r.push(e[s]);return r.push(...a),r.join(" ")},i=N(b(),1),v=t=>t.toUpperCase()===t,x=t=>e=>t.indexOf(e)===-1,E=(t,e)=>{let a={};return Object.keys(t).filter(x(e)).forEach(r=>{a[r]=t[r]}),a};function R(t,e,a){let r=E(e,a);if(!t){let s=typeof u=="function"?{default:u}:u;Object.keys(r).forEach(l=>{s.default(l)||delete r[l]})}return r}function g(t){return e=>{let a=(s,l)=>{let{as:n=t,class:y=""}=s,o=R(e.propsAsIs===void 0?!(typeof n=="string"&&n.indexOf("-")===-1&&!v(n[0])):e.propsAsIs,s,["as","class"]);o.ref=l,o.className=e.atomic?w(e.class,o.className||y):w(o.className||y,e.class);let{vars:c}=e;if(c){let p={};for(let f in c){let _=c[f],m=_[0],O=_[1]||"",j=typeof m=="function"?m(s):m;e.name,p[`--${f}`]=`${j}${O}`}let d=o.style||{},h=Object.keys(d);h.length>0&&h.forEach(f=>{p[f]=d[f]}),o.style=p}return t.__wyw_meta&&t!==n?(o.as=n,(0,i.createElement)(t,o)):(0,i.createElement)(n,o)},r=i.forwardRef?(0,i.forwardRef)(a):(s=>a(E(s,["innerRef"]),s.innerRef));return r.displayName=e.name,r.__wyw_meta={className:e.class||"",extends:t},r}}var k=g;export{k as t};
