import{b as o,d as m}from"./chunk-XRTLPMPO.js";var f=r=>{if(o(r))return r;if(m(r))return r.getTime();if(r)return parseFloat(r.replace(/[^0-9.-]+/g,""))};function a(r,n){if(!r)return n??null;let e=Number(r);return isNaN(e)?n||null:e}var s=r=>{if(!isFinite(r))return 0;let n=1,e=0;for(;Math.round(r*n)/n!==r;)n*=10,e+=1;return e},l=(r,n)=>{let e=Math.pow(10,n);return Math.round(r*e)/e},p=(r,n,e,t=0)=>{e??=s(n);let b=t>1?t%n:0,u=r%n,i=b+r-u;return u>n/2?l(i+n,e):l(i,e)};export{f as a,a as b,s as c,p as d};
