"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),u=d=>{const{value:s,formatter:o,precision:t,decimalSeparator:p,groupSeparator:f="",prefixCls:c}=d;let a;if(typeof o=="function")a=o({value:s});else{const r=String(s),l=r.match(/^(-?)(\d*)(\.(\d+))?$/);if(!l)a=r;else{const m=l[1];let i=l[2]||"0",e=l[4]||"";i=i.replace(/\B(?=(\d{3})+(?!\d))/g,f),typeof t=="number"&&(e=e.padEnd(t,"0").slice(0,t>0?t:0)),e&&(e=`${p}${e}`),a=[n.createVNode("span",{key:"int",class:`${c}-content-value-int`},[m,i]),e&&n.createVNode("span",{key:"decimal",class:`${c}-content-value-decimal`},[e])]}}return n.createVNode("span",{class:`${c}-content-value`},[a])};u.displayName="StatisticNumber";exports.default=u;
