import{createVNode as e}from"vue";var t=t=>{let{value:n,formatter:r,precision:i,decimalSeparator:a,groupSeparator:o=``,prefixCls:s}=t,c;if(typeof r==`function`)c=r({value:n});else{let t=String(n),r=t.match(/^(-?)(\d*)(\.(\d+))?$/);if(!r)c=t;else{let t=r[1],n=r[2]||`0`,l=r[4]||``;n=n.replace(/\B(?=(\d{3})+(?!\d))/g,o),typeof i==`number`&&(l=l.padEnd(i,`0`).slice(0,i>0?i:0)),l&&(l=`${a}${l}`),c=[e(`span`,{key:`int`,class:`${s}-content-value-int`},[t,n]),l&&e(`span`,{key:`decimal`,class:`${s}-content-value-decimal`},[l])]}}return e(`span`,{class:`${s}-content-value`},[c])};t.displayName=`StatisticNumber`;export{t as default};