"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("vue");function C(t){return g.reactive(t)}function N(t){return g.reactive(t)}const P=t=>JSON.parse(JSON.stringify(t));function R(t){function p(n,s,r,i){let e="",c=0;for(let o=n.length-1;o>=0;o-=4){const a=n.slice(Math.max(0,o-3),o+1);let u=v(a,s,r);u&&(u+=i[c]),e=u+e,c++}return e=e||"零",e+="元",e}function h(n,s){let r="";const[i,e]=n.split("");return i!=="0"&&(r+=`${s[parseInt(i)]}角`),e!=="0"&&(r+=`${s[parseInt(e)]}分`),r||(r="整"),r}function v(n,s,r){let i="",e=!1;for(let c=0;c<n.length;c++){const o=parseInt(n[c]),a=r[n.length-1-c];o===0?e=!0:(e&&(i+="零"),i+=s[o]+a,e=!1)}return i}function b(n){return n.replace(/零+/g,"零").replace(/零([万亿])/g,"$1").replace(/零元/,"元").replace(/^元/,"零元")}if(typeof t!="number"||isNaN(t)||t<0||t>=1e9)throw new Error("输入必须是介于0到999,999,999之间的数字");const f=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],d=["","拾","佰","仟"],I=["","万","亿"],[m,y]=t.toFixed(2).split("."),S=p(m,f,d,I),x=h(y,f);let l=S+x;return l=b(l),l}exports.clone=P;exports.editReactive=N;exports.numberToChineseCurrency=R;exports.tableReactive=C;
