import{D as s,C as f}from"./Czresmtb.js";function a(r,u){return s(r,n=>{n!==void 0&&(u.value=n)}),f(()=>r.value===void 0?u.value:r.value)}const m=/^(\d|\.)+$/,t=/(\d|\.)+/;function c(r,{c:u=1,offset:n=0,attachPx:i=!0}={}){if(typeof r=="number"){const e=(r+n)*u;return e===0?"0":`${e}px`}else if(typeof r=="string")if(m.test(r)){const e=(Number(r)+n)*u;return i?e===0?"0":`${e}px`:`${e}`}else{const e=t.exec(r);return e?r.replace(t,String((Number(e[0])+n)*u)):r}return r}export{c as f,a as u};
