import{A as e,D as t,E as n,H as r,I as i,J as a,O as o,X as s,a as c,d as l,et as u,ut as d,v as f}from"./DyGQ_VXC.js";import"./CQCxd1p9.js";var p=e(`<span class="stat-unit svelte-1jn2wf2"> </span>`),m=e(`<span><span class="stat-delta-glyph svelte-1jn2wf2" aria-hidden="true"> </span> <span class="stat-delta-value"> </span></span>`),h=e(`<span class="stat-hint svelte-1jn2wf2"> </span>`),g=e(`<div role="group"><span class="stat-label svelte-1jn2wf2"> </span> <div class="stat-value-row svelte-1jn2wf2"><span class="stat-value svelte-1jn2wf2"> </span> <!> <!></div> <!></div>`);function _(e,_){let v=c(_,`trend`,3,`flat`),y=c(_,`tone`,3,`neutral`),b=c(_,`class`,3,``),x=u(()=>v()===`up`?`▲`:v()===`down`?`▼`:`—`);var S=g(),C=a(S),w=a(C,!0);d(C);var T=s(C,2),E=a(T),D=a(E,!0);d(E);var O=s(E,2),k=e=>{var n=p(),i=a(n,!0);d(n),r(()=>t(i,_.unit)),o(e,n)};n(O,e=>{_.unit&&e(k)});var A=s(O,2),j=e=>{var n=m(),c=a(n),l=a(c,!0);d(c);var u=s(c,2),p=a(u,!0);d(u),d(n),r(()=>{f(n,1,`stat-delta trend-${v()??``}`,`svelte-1jn2wf2`),t(l,i(x)),t(p,_.delta)}),o(e,n)};n(A,e=>{_.delta&&e(j)}),d(T);var M=s(T,2),N=e=>{var n=h(),i=a(n,!0);d(n),r(()=>t(i,_.hint)),o(e,n)};n(M,e=>{_.hint&&e(N)}),d(S),r(()=>{f(S,1,`stat t-${y()??``} ${b()??``}`,`svelte-1jn2wf2`),l(S,`aria-label`,_.label),t(w,_.label),t(D,_.value)}),o(e,S)}export{_ as t};