import{d as A,r as a,cu as g,j as o,cv as y}from"./index-BOwCLZTK.js";import{A as x}from"./index-2RIoVPos.js";/**
 * @license lucide-react v0.559.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N=[["path",{d:"M6 18.5a3.5 3.5 0 1 0 7 0c0-1.57.92-2.52 2.04-3.46",key:"1qngmn"}],["path",{d:"M6 8.5c0-.75.13-1.47.36-2.14",key:"b06bma"}],["path",{d:"M8.8 3.15A6.5 6.5 0 0 1 19 8.5c0 1.63-.44 2.81-1.09 3.76",key:"g10hsz"}],["path",{d:"M12.5 6A2.5 2.5 0 0 1 15 8.5M10 13a2 2 0 0 0 1.82-1.18",key:"ygzou7"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],k=A("ear-off",N),I=a.memo(function({value:t,format:e,prefix:r,suffix:s,className:n,priority:m="medium"}){const[i,l]=a.useState(!1),[f,p]=a.useState(t);a.useEffect(()=>g(()=>{l(!0),p(0)},m),[m]),a.useEffect(()=>{i&&p(t)},[i,t]);const d=`${r??""}${t.toLocaleString(void 0,e)}${s??""}`;return i?o.jsx(x,{className:`${n??""} overflow-hidden`,format:e,prefix:r,suffix:s,transition:y.numberTicker,children:f}):o.jsx("span",{className:n,children:d})}),h={",":"punc",".":"punc-period",":":"punc-colon","/":"punc-slash"},u=/([,\.:\/])/g;function j(c){return c.split(u).map((e,r)=>{const s=h[e];return s?o.jsx("span",{className:s,children:e},r):e})}const T=a.memo(function({children:t,className:e="",as:r="span"}){const s=a.useMemo(()=>{let n;return typeof t=="number"?n=t.toLocaleString():Array.isArray(t)?n=t.join(""):n=String(t??""),u.test(n)?(u.lastIndex=0,j(n)):n},[t]);return o.jsx(r,{className:`data-tight ${e}`.trim(),children:s})});export{I as A,T as D,k as E};
