@undp/data-viz 2.3.3 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AreaChart.cjs +1 -1
- package/dist/AreaChart.js +1 -1
- package/dist/BarGraph.cjs +1 -1
- package/dist/BarGraph.js +1 -1
- package/dist/BasicStatCard.cjs +1 -1
- package/dist/BasicStatCard.js +1 -1
- package/dist/BeeSwarmChart.cjs +1 -1
- package/dist/BeeSwarmChart.js +2 -2
- package/dist/BiVariateChoroplethMap.cjs +1 -1
- package/dist/BiVariateChoroplethMap.js +1 -1
- package/dist/BulletChart.cjs +1 -1
- package/dist/BulletChart.js +1 -1
- package/dist/ButterflyChart.cjs +1 -1
- package/dist/ButterflyChart.js +1 -1
- package/dist/ChoroplethMap.cjs +1 -1
- package/dist/ChoroplethMap.js +1 -1
- package/dist/CirclePackingGraph.cjs +1 -1
- package/dist/CirclePackingGraph.d.ts +2 -0
- package/dist/CirclePackingGraph.js +2 -2
- package/dist/ColorLegend.cjs +1 -1
- package/dist/ColorLegend.js +1 -1
- package/dist/ColorLegendWithMouseOver.cjs +1 -1
- package/dist/ColorLegendWithMouseOver.js +1 -1
- package/dist/DataCards.cjs +1 -1
- package/dist/DataCards.js +2 -2
- package/dist/DataTable.cjs +1 -1
- package/dist/DataTable.js +1 -1
- package/dist/DifferenceLineChart.cjs +1 -1
- package/dist/DifferenceLineChart.js +1 -1
- package/dist/DonutChart.cjs +1 -1
- package/dist/DonutChart.js +3 -3
- package/dist/DotDensityMap.cjs +1 -1
- package/dist/DotDensityMap.js +1 -1
- package/dist/DualAxisLineChart.cjs +1 -1
- package/dist/DualAxisLineChart.js +1 -1
- package/dist/DumbbellChart.cjs +1 -1
- package/dist/DumbbellChart.js +1 -1
- package/dist/{EmptyState-DX0t62iF.cjs → EmptyState-N1eHt3vq.cjs} +2 -2
- package/dist/{EmptyState-DX0t62iF.cjs.map → EmptyState-N1eHt3vq.cjs.map} +1 -1
- package/dist/{EmptyState-Pj-emXt5.js → EmptyState-dScPFkLy.js} +2 -2
- package/dist/{EmptyState-Pj-emXt5.js.map → EmptyState-dScPFkLy.js.map} +1 -1
- package/dist/FootNote.cjs +1 -1
- package/dist/FootNote.js +1 -1
- package/dist/GeoHubMapWithLayerSelection.cjs +1 -1
- package/dist/GeoHubMapWithLayerSelection.js +1 -1
- package/dist/GraphDescription.cjs +1 -1
- package/dist/GraphDescription.js +1 -1
- package/dist/{GraphEl-DDXkYObU.js → GraphEl-Bw-9MUym.js} +8 -7
- package/dist/GraphEl-Bw-9MUym.js.map +1 -0
- package/dist/{GraphEl-CWjTuiYd.cjs → GraphEl-DjElfY07.cjs} +2 -2
- package/dist/GraphEl-DjElfY07.cjs.map +1 -0
- package/dist/GraphFooter.cjs +1 -1
- package/dist/GraphFooter.js +1 -1
- package/dist/GraphTitle.cjs +1 -1
- package/dist/GraphTitle.js +1 -1
- package/dist/GriddedGraphs.cjs +1 -1
- package/dist/GriddedGraphs.d.ts +1 -0
- package/dist/GriddedGraphs.js +1 -1
- package/dist/GriddedGraphsFromConfig.d.ts +1 -0
- package/dist/HeatMap.cjs +1 -1
- package/dist/HeatMap.js +1 -1
- package/dist/Histogram.cjs +1 -1
- package/dist/Histogram.js +1 -1
- package/dist/HybridMap.cjs +1 -1
- package/dist/HybridMap.js +2 -2
- package/dist/LineChartWithConfidenceInterval.cjs +1 -1
- package/dist/LineChartWithConfidenceInterval.js +1 -1
- package/dist/LinearColorLegend.cjs +1 -1
- package/dist/LinearColorLegend.js +1 -1
- package/dist/MultiGraphDashboard.d.ts +1 -0
- package/dist/MultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/MultiLineAltChart.cjs +1 -1
- package/dist/MultiLineAltChart.js +1 -1
- package/dist/MultiLineChart.cjs +1 -1
- package/dist/MultiLineChart.js +1 -1
- package/dist/ParetoChart.cjs +1 -1
- package/dist/ParetoChart.js +1 -1
- package/dist/PerformanceIntensiveMultiGraphDashboard.d.ts +1 -0
- package/dist/PerformanceIntensiveMultiGraphDashboardFromConfig.d.ts +1 -0
- package/dist/PerformanceIntensiveScrollStory.d.ts +1 -0
- package/dist/RadarChart.cjs +1 -1
- package/dist/RadarChart.js +1 -1
- package/dist/SankeyChart.cjs +1 -1
- package/dist/SankeyChart.js +2 -2
- package/dist/ScatterPlot.cjs +1 -1
- package/dist/ScatterPlot.js +1 -1
- package/dist/ScrollStory.d.ts +1 -0
- package/dist/SimpleLineChart.cjs +1 -1
- package/dist/SimpleLineChart.js +1 -1
- package/dist/SingleGraphDashboard.cjs +1 -1
- package/dist/SingleGraphDashboard.d.ts +1 -0
- package/dist/SingleGraphDashboard.js +1 -1
- package/dist/SingleGraphDashboardFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.cjs +1 -1
- package/dist/SingleGraphDashboardGeoHubMaps.d.ts +1 -0
- package/dist/SingleGraphDashboardGeoHubMaps.js +1 -1
- package/dist/SingleGraphDashboardGeoHubMapsFromConfig.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.cjs +1 -1
- package/dist/SingleGraphDashboardThreeDGraphs.d.ts +1 -0
- package/dist/SingleGraphDashboardThreeDGraphs.js +1 -1
- package/dist/SingleGraphDashboardThreeDGraphsFromConfig.d.ts +1 -0
- package/dist/SlopeChart.cjs +1 -1
- package/dist/SlopeChart.js +1 -1
- package/dist/{Source-B3i0Bx2R.cjs → Source-24M277ZQ.cjs} +2 -2
- package/dist/{Source-B3i0Bx2R.cjs.map → Source-24M277ZQ.cjs.map} +1 -1
- package/dist/{Source-_STIejqs.js → Source-Cu9OHOBj.js} +2 -2
- package/dist/{Source-_STIejqs.js.map → Source-Cu9OHOBj.js.map} +1 -1
- package/dist/Source.cjs +1 -1
- package/dist/Source.js +2 -2
- package/dist/StatCardFromData.cjs +1 -1
- package/dist/StatCardFromData.js +1 -1
- package/dist/StripChart.cjs +1 -1
- package/dist/StripChart.js +1 -1
- package/dist/ThreeDGlobe.cjs +1 -1
- package/dist/ThreeDGlobe.js +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.cjs +1 -1
- package/dist/ThresholdColorLegendWithMouseOver.js +1 -1
- package/dist/TreeMapGraph.cjs +1 -1
- package/dist/TreeMapGraph.js +2 -2
- package/dist/Types.d.ts +1 -0
- package/dist/Typography-Cc_iHQB-.cjs +2 -0
- package/dist/Typography-Cc_iHQB-.cjs.map +1 -0
- package/dist/{Typography-iR8PEgdt.js → Typography-CdMGooqp.js} +4 -4
- package/dist/Typography-CdMGooqp.js.map +1 -0
- package/dist/UnitChart.cjs +1 -1
- package/dist/UnitChart.js +1 -1
- package/dist/WaterfallChart.cjs +1 -1
- package/dist/WaterfallChart.js +1 -1
- package/dist/index-BzNfurbO.js +378 -0
- package/dist/index-BzNfurbO.js.map +1 -0
- package/dist/index-CXobQn-E.cjs +2 -0
- package/dist/index-CXobQn-E.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/GraphEl-CWjTuiYd.cjs.map +0 -1
- package/dist/GraphEl-DDXkYObU.js.map +0 -1
- package/dist/Typography-DrJ7IOdw.cjs +0 -2
- package/dist/Typography-DrJ7IOdw.cjs.map +0 -1
- package/dist/Typography-iR8PEgdt.js.map +0 -1
- package/dist/index-BE-lvE4c.js +0 -337
- package/dist/index-BE-lvE4c.js.map +0 -1
- package/dist/index-DlrGwLQA.cjs +0 -2
- package/dist/index-DlrGwLQA.cjs.map +0 -1
package/dist/AreaChart.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-6v2a2njQ.cjs"),S=require("react"),A=require("./parse-xYI9yrvL.cjs"),je=require("./index-CSNtgibC.cjs"),Ae=require("./index-Cno4Q0YE.cjs"),we=require("./numberFormattingFunction-02t-wJta.cjs"),be=require("./Tooltip-BLa2EfMs.cjs"),ue=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ve=require("./customArea-B1LWQBmM.cjs"),Ee=require("./AxisTitle-DV4n0RxE.cjs"),Oe=require("./Axis-Jt_tmhxS.cjs"),Le=require("./XTicksAndGridLines-CekrPykD.cjs"),Se=require("./ReferenceLine-M9aP3dj-.cjs"),qe=require("./YTicksAndGridLines-UzVC5eBM.cjs"),ke=require("./index-D69M6klB.cjs"),$e=require("./time-CkcKbhwe.cjs"),Te=require("./linear-CgUCbw9F.cjs"),De=require("./area-C1gxfNGD.cjs"),Ne=require("./line-DaEMhXmx.cjs"),xe=require("./step-BZ3C8QFW.cjs"),Me=require("./select-Bnfk0lJx.cjs"),me=require("./proxy-C4-uo6nS.cjs"),Ge=require("./init-DU0ybBc_.cjs"),He=require("./pointer-Dkq5NV1q.cjs"),Fe=require("./use-in-view-C3o_ntMv.cjs"),Ve=require("./index-CoobIWNj.cjs"),Pe=require("./GraphFooter.cjs"),Ye=require("./GraphHeader.cjs"),Ie=require("./ColorLegend.cjs"),Xe=require("./Colors.cjs"),We=require("./EmptyState-DX0t62iF.cjs"),Ce=require("./GraphContainer-B1EDxJ0S.cjs");function Ue(r){const t=i.compilerRuntimeExports.c(133),{data:m,width:W,height:Et,colors:Ot,dateFormat:n,noOfXTicks:Pt,rightMargin:v,leftMargin:y,topMargin:Lt,bottomMargin:St,yAxisTitle:U,tooltip:B,onSeriesMouseOver:at,highlightAreaSettings:lt,refValues:ct,minValue:Yt,maxValue:ut,rtl:G,annotations:z,customHighlightAreaSettings:xt,noOfYTicks:It,prefix:H,suffix:q,curveType:J,styles:p,classNames:d,precision:K,customLayers:F,animate:c}=r,Xt=S.useRef(null);let mt;t[0]!==c.amount||t[1]!==c.once?(mt={once:c.once,amount:c.amount},t[0]=c.amount,t[1]=c.once,t[2]=mt):mt=t[2];const f=Fe.useInView(Xt,mt),qt=J==="linear"?Ne.curveLinear:J==="step"?xe.curveStep:J==="stepAfter"?xe.stepAfter:J==="stepBefore"?xe.stepBefore:xe.monotoneX,[C,kt]=S.useState(void 0),[Q,Wt]=S.useState(void 0),[ft,Ut]=S.useState(void 0),$t=U?y+30:y;let u;t[3]!==St||t[4]!==v||t[5]!==$t||t[6]!==Lt?(u={top:Lt,bottom:St,left:$t,right:v},t[3]=St,t[4]=v,t[5]=$t,t[6]=Lt,t[7]=u):u=t[7];const o=u,pt=S.useRef(null);let V;t[8]!==n?(V=s=>({...s,date:A.parse(`${s.date}`,n,new Date)}),t[8]=n,t[9]=V):V=t[9];const h=Ae.orderBy(m.map(V),["date"],["asc"]);let w;if(t[10]!==n||t[11]!==lt){let s;t[13]!==n?(s=e=>({...e,coordinates:[e.coordinates[0]===null?null:A.parse(`${e.coordinates[0]}`,n,new Date),e.coordinates[1]===null?null:A.parse(`${e.coordinates[1]}`,n,new Date)]}),t[13]=n,t[14]=s):s=t[14],w=lt.map(s),t[10]=n,t[11]=lt,t[12]=w}else w=t[12];const dt=w;let Z;if(t[15]!==xt||t[16]!==n){let s;t[18]!==n?(s=e=>({...e,coordinates:e.coordinates.map((R,X)=>X%2===0?A.parse(`${R}`,n,new Date):R)}),t[18]=n,t[19]=s):s=t[19],Z=xt.map(s),t[15]=xt,t[16]=n,t[17]=Z}else Z=t[17];const Bt=Z,zt=h[0].y.map((s,e)=>h.map(R=>({date:R.date,y0:e===0?0:je.sum(R.y.filter((X,Qt)=>Qt<e)),y1:je.sum(R.y.filter((X,Qt)=>Qt<=e))}))),x=W-o.left-o.right,g=Et-o.top-o.bottom,Jt=h[0].date,Tt=h[h.length-1].date,j=ue.checkIfNullOrUndefined(Yt)?0:Yt;let P;t[20]!==m||t[21]!==ut?(P=ue.checkIfNullOrUndefined(ut)?Math.max(...m.map(es)):ut,t[20]=m,t[21]=ut,t[22]=P):P=t[22];const Dt=P,a=$e.time().domain([Jt,Tt]).range([0,x]),l=Te.linear().domain([j,Dt]).range([g,0]).nice(),gt=De.area().x(s=>a(s.date)).y0(s=>l(s.y0)).y1(s=>l(s.y1)).curve(qt),k=l.ticks(It),Nt=a.ticks(Pt);S.useEffect(()=>{const s=R=>{const X=h[Ge.bisectCenter(h.map(ts),a.invert(He.pointer(R)[0]),0)];kt(X||h[h.length-1]),at?.(X||h[h.length-1]),Ut(R.clientY),Wt(R.clientX)},e=()=>{kt(void 0),Wt(void 0),Ut(void 0),at?.(void 0)};Me.select(pt.current).on("mousemove",s).on("mouseout",e),at?.(void 0)},[a,h,at]);let Y;t[23]!==c||t[24]!==g||t[25]!==x||t[26]!==dt||t[27]!==f||t[28]!==a?(Y=i.jsxRuntimeExports.jsx(ke.HighlightArea,{areaSettings:dt,width:x,height:g,scale:a,animate:c,isInView:f}),t[23]=c,t[24]=g,t[25]=x,t[26]=dt,t[27]=f,t[28]=a,t[29]=Y):Y=t[29];const ht=p?.yAxis?.gridLines,_=p?.yAxis?.labels;let tt;t[30]!==ht||t[31]!==_?(tt={gridLines:ht,labels:_},t[30]=ht,t[31]=_,t[32]=tt):tt=t[32];const yt=d?.yAxis?.gridLines,vt=d?.yAxis?.labels;let et;t[33]!==yt||t[34]!==vt?(et={gridLines:yt,labels:vt},t[33]=yt,t[34]=vt,t[35]=et):et=t[35];const jt=l(j<0?0:j),Ct=l(j<0?0:j),Rt=0-y,st=x+o.right,At=j<0?0:j;let b;t[36]!==K||t[37]!==H||t[38]!==q||t[39]!==At?(b=we.numberFormattingFunction(At,"NA",K,H,q),t[36]=K,t[37]=H,t[38]=q,t[39]=At,t[40]=b):b=t[40];const ot=0-y,Kt=Dt<0?"1em":-5,it=l(j<0?0:j);let nt;t[41]!==ot||t[42]!==Kt||t[43]!==it?(nt={x:ot,dx:0,dy:Kt,y:it},t[41]=ot,t[42]=Kt,t[43]=it,t[44]=nt):nt=t[44];const wt=d?.xAxis?.axis,Mt=d?.yAxis?.labels;let E;t[45]!==wt||t[46]!==Mt?(E={axis:wt,label:Mt},t[45]=wt,t[46]=Mt,t[47]=E):E=t[47];const rt=p?.xAxis?.axis,bt=p?.yAxis?.labels;let $;t[48]!==rt||t[49]!==bt?($={axis:rt,label:bt},t[48]=rt,t[49]=bt,t[50]=$):$=t[50];let O;t[51]!==jt||t[52]!==Ct||t[53]!==Rt||t[54]!==st||t[55]!==b||t[56]!==nt||t[57]!==E||t[58]!==$?(O=i.jsxRuntimeExports.jsx(Oe.Axis,{y1:jt,y2:Ct,x1:Rt,x2:st,label:b,labelPos:nt,classNames:E,styles:$}),t[51]=jt,t[52]=Ct,t[53]=Rt,t[54]=st,t[55]=b,t[56]=nt,t[57]=E,t[58]=$,t[59]=O):O=t[59];const T=0-y-15,D=g/2,N=p?.yAxis?.title,M=d?.yAxis?.title;let L;t[60]!==T||t[61]!==D||t[62]!==N||t[63]!==M||t[64]!==U?(L=i.jsxRuntimeExports.jsx(Ee.AxisTitle,{x:T,y:D,style:N,className:M,text:U,rotate90:!0}),t[60]=T,t[61]=D,t[62]=N,t[63]=M,t[64]=U,t[65]=L):L=t[65];let I;t[66]!==n?(I=s=>A.format(s,n),t[66]=n,t[67]=I):I=t[67];const Zt=Nt.map(I),_t=Nt.map(s=>a(s)),fe=p?.xAxis?.gridLines,pe=p?.xAxis?.labels;let te;t[68]!==fe||t[69]!==pe?(te={gridLines:fe,labels:pe},t[68]=fe,t[69]=pe,t[70]=te):te=t[70];const de=d?.xAxis?.gridLines;let Gt;t[71]!==de?(Gt=i.mo("opacity-0",de),t[71]=de,t[72]=Gt):Gt=t[72];const ge=d?.xAxis?.labels;let Ht;t[73]!==ge?(Ht=i.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[8px] sm:text-[9px] md:text-[10px] lg:text-xs",ge),t[73]=ge,t[74]=Ht):Ht=t[74];let ee;t[75]!==Gt||t[76]!==Ht?(ee={gridLines:Gt,labels:Ht},t[75]=Gt,t[76]=Ht,t[77]=ee):ee=t[77];let se;t[78]!==F?(se=F.filter(Qe).map(Ke),t[78]=F,t[79]=se):se=t[79];const he=me.motion,ye=zt.map((s,e)=>i.jsxRuntimeExports.jsx(me.motion.path,{d:gt(s),exit:{opacity:0,transition:{duration:c.duration}},variants:{initial:{d:gt(s.map(Je)),opacity:0},whileInView:{d:gt(s),opacity:1,transition:{duration:c.duration}}},initial:"initial",animate:f?"whileInView":"initial",style:{fill:Ot[e],opacity:.8}},e));let Ft;t[80]!==d?.mouseOverLine||t[81]!==g||t[82]!==C||t[83]!==p?.mouseOverLine||t[84]!==a?(Ft=C?i.jsxRuntimeExports.jsx("line",{y1:0,y2:g,x1:a(C.date),x2:a(C.date),className:i.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",d?.mouseOverLine),style:p?.mouseOverLine}):null,t[80]=d?.mouseOverLine,t[81]=g,t[82]=C,t[83]=p?.mouseOverLine,t[84]=a,t[85]=Ft):Ft=t[85];let oe;t[86]!==he.g||t[87]!==ye||t[88]!==Ft?(oe=i.jsxRuntimeExports.jsxs(he.g,{children:[ye,Ft]}),t[86]=he.g,t[87]=ye,t[88]=Ft,t[89]=oe):oe=t[89];let ie;t[90]!==c||t[91]!==x||t[92]!==f||t[93]!==y||t[94]!==o.right||t[95]!==ct||t[96]!==l?(ie=ct?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:ct.map((s,e)=>i.jsxRuntimeExports.jsx(Se.RefLineY,{text:s.text,color:s.color,y:l(s.value),x1:0-y,x2:x+o.right,classNames:s.classNames,styles:s.styles,animate:c,isInView:f},e))}):null,t[90]=c,t[91]=x,t[92]=f,t[93]=y,t[94]=o.right,t[95]=ct,t[96]=l,t[97]=ie):ie=t[97];let Vt;if(t[98]!==c||t[99]!==z||t[100]!==n||t[101]!==x||t[102]!==f||t[103]!==o.right||t[104]!==G||t[105]!==a||t[106]!==l){let s;t[108]!==c||t[109]!==n||t[110]!==x||t[111]!==f||t[112]!==o.right||t[113]!==G||t[114]!==a||t[115]!==l?(s=(e,R)=>{const X=ve.getLineEndPoint({x:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},ue.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),Qt=e.showConnector?{y1:X.y,x1:X.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0),cx:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date)):0,cy:e.yCoordinate?l(e.yCoordinate):0,circleRadius:ue.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,Re={y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:G?0:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:G?e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0):x+o.right-(e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return i.jsxRuntimeExports.jsx(ve.Annotation,{color:e.color,connectorsSettings:Qt,labelSettings:Re,text:e.text,classNames:e.classNames,styles:e.styles,animate:c,isInView:f},R)},t[108]=c,t[109]=n,t[110]=x,t[111]=f,t[112]=o.right,t[113]=G,t[114]=a,t[115]=l,t[116]=s):s=t[116],Vt=z.map(s),t[98]=c,t[99]=z,t[100]=n,t[101]=x,t[102]=f,t[103]=o.right,t[104]=G,t[105]=a,t[106]=l,t[107]=Vt}else Vt=t[107];let ne;t[117]!==Vt?(ne=i.jsxRuntimeExports.jsx("g",{children:Vt}),t[117]=Vt,t[118]=ne):ne=t[118];let re;t[119]!==F?(re=F.filter(ze).map(Be),t[119]=F,t[120]=re):re=t[120];let ae;t[121]===Symbol.for("react.memo_cache_sentinel")?(ae={fill:"none",pointerEvents:"all"},t[121]=ae):ae=t[121];let le;t[122]!==pt||t[123]!==g||t[124]!==x?(le=i.jsxRuntimeExports.jsx("rect",{ref:pt,style:ae,width:x,height:g}),t[122]=pt,t[123]=g,t[124]=x,t[125]=le):le=t[125];let ce;return t[126]!==d?.tooltip||t[127]!==Q||t[128]!==ft||t[129]!==C||t[130]!==p?.tooltip||t[131]!==B?(ce=C&&B&&Q&&ft?i.jsxRuntimeExports.jsx(be.Tooltip,{data:C,body:B,xPos:Q,yPos:ft,backgroundStyle:p?.tooltip,className:d?.tooltip}):null,t[126]=d?.tooltip,t[127]=Q,t[128]=ft,t[129]=C,t[130]=p?.tooltip,t[131]=B,t[132]=ce):ce=t[132],i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(me.motion.svg,{width:`${W}px`,height:`${Et}px`,viewBox:`0 0 ${W} ${Et}`,direction:"ltr",ref:Xt,children:i.jsxRuntimeExports.jsx(Ve.AnimatePresence,{children:i.jsxRuntimeExports.jsxs(me.motion.g,{transform:`translate(${o.left},${o.top})`,children:[Y,i.jsxRuntimeExports.jsx(ve.CustomArea,{animate:c,areaSettings:Bt,scaleX:a,scaleY:l,isInView:f}),i.jsxRuntimeExports.jsxs("g",{children:[i.jsxRuntimeExports.jsx(qe.YTicksAndGridLines,{values:k.filter(_e),y:k.filter(Ze).map(s=>l(s)),x1:0-y,x2:x+o.right,styles:tt,classNames:et,suffix:q,prefix:H,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:K}),O,L]}),i.jsxRuntimeExports.jsx(Le.XTicksAndGridLines,{values:Zt,x:_t,y1:0,y2:g,styles:te,classNames:ee,suffix:q,prefix:H,labelType:"primary",showGridLines:!0,precision:K}),se,oe,ie,ne,re,le]})})}),ce]})}function Be(r){return r.layer}function ze(r){return r.position==="after"}function Je(r){return{...r,y0:0,y1:0}}function Ke(r){return r.layer}function Qe(r){return r.position==="before"}function Ze(r){return r!==0}function _e(r){return r!==0}function ts(r){return r.date}function es(r){return je.sum(r.y)||0}function ss(r){const t=i.compilerRuntimeExports.c(90),{data:m,graphTitle:W,colors:Et,sources:Ot,graphDescription:n,height:Pt,width:v,footNote:y,noOfXTicks:Lt,dateFormat:St,colorDomain:U,padding:B,backgroundColor:at,colorLegendTitle:lt,leftMargin:ct,rightMargin:Yt,topMargin:ut,bottomMargin:G,highlightAreaSettings:z,tooltip:xt,relativeHeight:It,onSeriesMouseOver:H,refValues:q,graphID:J,minValue:p,maxValue:d,graphDownload:K,dataDownload:F,showColorScale:c,language:Xt,minHeight:mt,annotations:f,customHighlightAreaSettings:qt,theme:C,ariaLabel:kt,yAxisTitle:Q,noOfYTicks:Wt,prefix:ft,suffix:Ut,curveType:$t,styles:u,classNames:o,precision:pt,customLayers:V,animate:h}=r,w=Et===void 0?Xe.Colors.light.categoricalColors.colors:Et,dt=Lt===void 0?10:Lt,Z=St===void 0?"yyyy":St,Bt=at===void 0?!1:at,zt=ct===void 0?50:ct,x=Yt===void 0?20:Yt,g=ut===void 0?20:ut,Jt=G===void 0?25:G;let Tt;t[0]!==z?(Tt=z===void 0?[]:z,t[0]=z,t[1]=Tt):Tt=t[1];const j=Tt;let P;t[2]!==q?(P=q===void 0?[]:q,t[2]=q,t[3]=P):P=t[3];const Dt=P,a=K===void 0?!1:K,l=F===void 0?!1:F,gt=c===void 0?!0:c,k=Xt===void 0?"en":Xt,Nt=mt===void 0?0:mt;let Y;t[4]!==f?(Y=f===void 0?[]:f,t[4]=f,t[5]=Y):Y=t[5];const ht=Y;let _;t[6]!==qt?(_=qt===void 0?[]:qt,t[6]=qt,t[7]=_):_=t[7];const tt=_,yt=C===void 0?"light":C,vt=Wt===void 0?5:Wt,et=ft===void 0?"":ft,jt=Ut===void 0?"":Ut,Ct=$t===void 0?"curve":$t,Rt=pt===void 0?2:pt;let st;t[8]!==V?(st=V===void 0?[]:V,t[8]=V,t[9]=st):st=t[9];const At=st,b=h===void 0?!1:h,[ot,Kt]=S.useState(0),[it,nt]=S.useState(0),wt=S.useRef(null),Mt=S.useRef(null);let E,rt;t[10]===Symbol.for("react.memo_cache_sentinel")?(E=()=>{const Zt=new ResizeObserver(_t=>{Kt(_t[0].target.clientWidth||620),nt(_t[0].target.clientHeight||480)});return wt.current&&Zt.observe(wt.current),()=>Zt.disconnect()},rt=[],t[10]=E,t[11]=rt):(E=t[10],rt=t[11]),S.useEffect(E,rt);const bt=o?.graphContainer,$=u?.graphContainer;let O;t[12]!==o?.description||t[13]!==o?.title||t[14]!==m||t[15]!==l||t[16]!==n||t[17]!==a||t[18]!==W||t[19]!==u?.description||t[20]!==u?.title||t[21]!==v?(O=W||n||a||l?i.jsxRuntimeExports.jsx(Ye.GraphHeader,{styles:{title:u?.title,description:u?.description},classNames:{title:o?.title,description:o?.description},graphTitle:W,graphDescription:n,width:v,graphDownload:a?Mt:void 0,dataDownload:l?m.map(as).filter(rs).length>0?m.map(ns).filter(is):m.filter(os):null}):null,t[12]=o?.description,t[13]=o?.title,t[14]=m,t[15]=l,t[16]=n,t[17]=a,t[18]=W,t[19]=u?.description,t[20]=u?.title,t[21]=v,t[22]=O):O=t[22];let T;t[23]!==o?.colorLegend||t[24]!==U||t[25]!==lt||t[26]!==w||t[27]!==m.length||t[28]!==gt?(T=gt!==!1&&m.length>0?i.jsxRuntimeExports.jsx(Ie.ColorLegend,{colorDomain:U,colors:w,colorLegendTitle:lt,showNAColor:!1,className:o?.colorLegend}):null,t[23]=o?.colorLegend,t[24]=U,t[25]=lt,t[26]=w,t[27]=m.length,t[28]=gt,t[29]=T):T=t[29];let D;t[30]!==m.length?(D=m.length===0&&i.jsxRuntimeExports.jsx(We.EmptyState,{}),t[30]=m.length,t[31]=D):D=t[31];let N;t[32]!==b||t[33]!==ht||t[34]!==Jt||t[35]!==o||t[36]!==w||t[37]!==Ct||t[38]!==tt||t[39]!==At||t[40]!==m||t[41]!==Z||t[42]!==j||t[43]!==k||t[44]!==zt||t[45]!==d||t[46]!==p||t[47]!==dt||t[48]!==vt||t[49]!==H||t[50]!==Rt||t[51]!==et||t[52]!==Dt||t[53]!==x||t[54]!==u||t[55]!==jt||t[56]!==it||t[57]!==ot||t[58]!==xt||t[59]!==g||t[60]!==Q?(N=ot&&it&&m.length>0?i.jsxRuntimeExports.jsx(Ue,{data:m,colors:w,width:ot,height:it,dateFormat:Z,noOfXTicks:dt,leftMargin:zt,rightMargin:x,topMargin:g,bottomMargin:Jt,tooltip:xt,onSeriesMouseOver:H,highlightAreaSettings:j,refValues:Dt,minValue:p,maxValue:d,rtl:k==="he"||k==="ar",annotations:ht,customHighlightAreaSettings:tt,yAxisTitle:Q,noOfYTicks:vt,prefix:et,suffix:jt,curveType:Ct,styles:u,classNames:o,precision:Rt,customLayers:At,animate:b===!0?{duration:.5,once:!0,amount:.5}:b||{duration:0,once:!0,amount:0}}):null,t[32]=b,t[33]=ht,t[34]=Jt,t[35]=o,t[36]=w,t[37]=Ct,t[38]=tt,t[39]=At,t[40]=m,t[41]=Z,t[42]=j,t[43]=k,t[44]=zt,t[45]=d,t[46]=p,t[47]=dt,t[48]=vt,t[49]=H,t[50]=Rt,t[51]=et,t[52]=Dt,t[53]=x,t[54]=u,t[55]=jt,t[56]=it,t[57]=ot,t[58]=xt,t[59]=g,t[60]=Q,t[61]=N):N=t[61];let M;t[62]!==D||t[63]!==N?(M=i.jsxRuntimeExports.jsxs(Ce.GraphArea,{ref:wt,children:[D,N]}),t[62]=D,t[63]=N,t[64]=M):M=t[64];let L;t[65]!==o?.footnote||t[66]!==o?.source||t[67]!==y||t[68]!==Ot||t[69]!==u?.footnote||t[70]!==u?.source||t[71]!==v?(L=Ot||y?i.jsxRuntimeExports.jsx(Pe.GraphFooter,{styles:{footnote:u?.footnote,source:u?.source},classNames:{footnote:o?.footnote,source:o?.source},sources:Ot,footNote:y,width:v}):null,t[65]=o?.footnote,t[66]=o?.source,t[67]=y,t[68]=Ot,t[69]=u?.footnote,t[70]=u?.source,t[71]=v,t[72]=L):L=t[72];let I;return t[73]!==kt||t[74]!==Bt||t[75]!==J||t[76]!==Pt||t[77]!==k||t[78]!==Nt||t[79]!==B||t[80]!==It||t[81]!==bt||t[82]!==$||t[83]!==O||t[84]!==T||t[85]!==M||t[86]!==L||t[87]!==yt||t[88]!==v?(I=i.jsxRuntimeExports.jsxs(Ce.GraphContainer,{className:bt,style:$,id:J,ref:Mt,"aria-label":kt,backgroundColor:Bt,theme:yt,language:k,minHeight:Nt,width:v,height:Pt,relativeHeight:It,padding:B,children:[O,T,M,L]}),t[73]=kt,t[74]=Bt,t[75]=J,t[76]=Pt,t[77]=k,t[78]=Nt,t[79]=B,t[80]=It,t[81]=bt,t[82]=$,t[83]=O,t[84]=T,t[85]=M,t[86]=L,t[87]=yt,t[88]=v,t[89]=I):I=t[89],I}function os(r){return r!==void 0}function is(r){return r!==void 0}function ns(r){return r.data}function rs(r){return r!==void 0}function as(r){return r.data}exports.AreaChart=ss;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-6v2a2njQ.cjs"),S=require("react"),A=require("./parse-xYI9yrvL.cjs"),je=require("./index-CSNtgibC.cjs"),Ae=require("./index-Cno4Q0YE.cjs"),we=require("./numberFormattingFunction-02t-wJta.cjs"),be=require("./Tooltip-BLa2EfMs.cjs"),ue=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),ve=require("./customArea-B1LWQBmM.cjs"),Ee=require("./AxisTitle-DV4n0RxE.cjs"),Oe=require("./Axis-Jt_tmhxS.cjs"),Le=require("./XTicksAndGridLines-CekrPykD.cjs"),Se=require("./ReferenceLine-M9aP3dj-.cjs"),qe=require("./YTicksAndGridLines-UzVC5eBM.cjs"),ke=require("./index-D69M6klB.cjs"),$e=require("./time-CkcKbhwe.cjs"),Te=require("./linear-CgUCbw9F.cjs"),De=require("./area-C1gxfNGD.cjs"),Ne=require("./line-DaEMhXmx.cjs"),xe=require("./step-BZ3C8QFW.cjs"),Me=require("./select-Bnfk0lJx.cjs"),me=require("./proxy-C4-uo6nS.cjs"),Ge=require("./init-DU0ybBc_.cjs"),He=require("./pointer-Dkq5NV1q.cjs"),Fe=require("./use-in-view-C3o_ntMv.cjs"),Ve=require("./index-CoobIWNj.cjs"),Pe=require("./GraphFooter.cjs"),Ye=require("./GraphHeader.cjs"),Ie=require("./ColorLegend.cjs"),Xe=require("./Colors.cjs"),We=require("./EmptyState-N1eHt3vq.cjs"),Ce=require("./GraphContainer-B1EDxJ0S.cjs");function Ue(r){const t=i.compilerRuntimeExports.c(133),{data:m,width:W,height:Et,colors:Ot,dateFormat:n,noOfXTicks:Pt,rightMargin:v,leftMargin:y,topMargin:Lt,bottomMargin:St,yAxisTitle:U,tooltip:B,onSeriesMouseOver:at,highlightAreaSettings:lt,refValues:ct,minValue:Yt,maxValue:ut,rtl:G,annotations:z,customHighlightAreaSettings:xt,noOfYTicks:It,prefix:H,suffix:q,curveType:J,styles:p,classNames:d,precision:K,customLayers:F,animate:c}=r,Xt=S.useRef(null);let mt;t[0]!==c.amount||t[1]!==c.once?(mt={once:c.once,amount:c.amount},t[0]=c.amount,t[1]=c.once,t[2]=mt):mt=t[2];const f=Fe.useInView(Xt,mt),qt=J==="linear"?Ne.curveLinear:J==="step"?xe.curveStep:J==="stepAfter"?xe.stepAfter:J==="stepBefore"?xe.stepBefore:xe.monotoneX,[C,kt]=S.useState(void 0),[Q,Wt]=S.useState(void 0),[ft,Ut]=S.useState(void 0),$t=U?y+30:y;let u;t[3]!==St||t[4]!==v||t[5]!==$t||t[6]!==Lt?(u={top:Lt,bottom:St,left:$t,right:v},t[3]=St,t[4]=v,t[5]=$t,t[6]=Lt,t[7]=u):u=t[7];const o=u,pt=S.useRef(null);let V;t[8]!==n?(V=s=>({...s,date:A.parse(`${s.date}`,n,new Date)}),t[8]=n,t[9]=V):V=t[9];const h=Ae.orderBy(m.map(V),["date"],["asc"]);let w;if(t[10]!==n||t[11]!==lt){let s;t[13]!==n?(s=e=>({...e,coordinates:[e.coordinates[0]===null?null:A.parse(`${e.coordinates[0]}`,n,new Date),e.coordinates[1]===null?null:A.parse(`${e.coordinates[1]}`,n,new Date)]}),t[13]=n,t[14]=s):s=t[14],w=lt.map(s),t[10]=n,t[11]=lt,t[12]=w}else w=t[12];const dt=w;let Z;if(t[15]!==xt||t[16]!==n){let s;t[18]!==n?(s=e=>({...e,coordinates:e.coordinates.map((R,X)=>X%2===0?A.parse(`${R}`,n,new Date):R)}),t[18]=n,t[19]=s):s=t[19],Z=xt.map(s),t[15]=xt,t[16]=n,t[17]=Z}else Z=t[17];const Bt=Z,zt=h[0].y.map((s,e)=>h.map(R=>({date:R.date,y0:e===0?0:je.sum(R.y.filter((X,Qt)=>Qt<e)),y1:je.sum(R.y.filter((X,Qt)=>Qt<=e))}))),x=W-o.left-o.right,g=Et-o.top-o.bottom,Jt=h[0].date,Tt=h[h.length-1].date,j=ue.checkIfNullOrUndefined(Yt)?0:Yt;let P;t[20]!==m||t[21]!==ut?(P=ue.checkIfNullOrUndefined(ut)?Math.max(...m.map(es)):ut,t[20]=m,t[21]=ut,t[22]=P):P=t[22];const Dt=P,a=$e.time().domain([Jt,Tt]).range([0,x]),l=Te.linear().domain([j,Dt]).range([g,0]).nice(),gt=De.area().x(s=>a(s.date)).y0(s=>l(s.y0)).y1(s=>l(s.y1)).curve(qt),k=l.ticks(It),Nt=a.ticks(Pt);S.useEffect(()=>{const s=R=>{const X=h[Ge.bisectCenter(h.map(ts),a.invert(He.pointer(R)[0]),0)];kt(X||h[h.length-1]),at?.(X||h[h.length-1]),Ut(R.clientY),Wt(R.clientX)},e=()=>{kt(void 0),Wt(void 0),Ut(void 0),at?.(void 0)};Me.select(pt.current).on("mousemove",s).on("mouseout",e),at?.(void 0)},[a,h,at]);let Y;t[23]!==c||t[24]!==g||t[25]!==x||t[26]!==dt||t[27]!==f||t[28]!==a?(Y=i.jsxRuntimeExports.jsx(ke.HighlightArea,{areaSettings:dt,width:x,height:g,scale:a,animate:c,isInView:f}),t[23]=c,t[24]=g,t[25]=x,t[26]=dt,t[27]=f,t[28]=a,t[29]=Y):Y=t[29];const ht=p?.yAxis?.gridLines,_=p?.yAxis?.labels;let tt;t[30]!==ht||t[31]!==_?(tt={gridLines:ht,labels:_},t[30]=ht,t[31]=_,t[32]=tt):tt=t[32];const yt=d?.yAxis?.gridLines,vt=d?.yAxis?.labels;let et;t[33]!==yt||t[34]!==vt?(et={gridLines:yt,labels:vt},t[33]=yt,t[34]=vt,t[35]=et):et=t[35];const jt=l(j<0?0:j),Ct=l(j<0?0:j),Rt=0-y,st=x+o.right,At=j<0?0:j;let b;t[36]!==K||t[37]!==H||t[38]!==q||t[39]!==At?(b=we.numberFormattingFunction(At,"NA",K,H,q),t[36]=K,t[37]=H,t[38]=q,t[39]=At,t[40]=b):b=t[40];const ot=0-y,Kt=Dt<0?"1em":-5,it=l(j<0?0:j);let nt;t[41]!==ot||t[42]!==Kt||t[43]!==it?(nt={x:ot,dx:0,dy:Kt,y:it},t[41]=ot,t[42]=Kt,t[43]=it,t[44]=nt):nt=t[44];const wt=d?.xAxis?.axis,Mt=d?.yAxis?.labels;let E;t[45]!==wt||t[46]!==Mt?(E={axis:wt,label:Mt},t[45]=wt,t[46]=Mt,t[47]=E):E=t[47];const rt=p?.xAxis?.axis,bt=p?.yAxis?.labels;let $;t[48]!==rt||t[49]!==bt?($={axis:rt,label:bt},t[48]=rt,t[49]=bt,t[50]=$):$=t[50];let O;t[51]!==jt||t[52]!==Ct||t[53]!==Rt||t[54]!==st||t[55]!==b||t[56]!==nt||t[57]!==E||t[58]!==$?(O=i.jsxRuntimeExports.jsx(Oe.Axis,{y1:jt,y2:Ct,x1:Rt,x2:st,label:b,labelPos:nt,classNames:E,styles:$}),t[51]=jt,t[52]=Ct,t[53]=Rt,t[54]=st,t[55]=b,t[56]=nt,t[57]=E,t[58]=$,t[59]=O):O=t[59];const T=0-y-15,D=g/2,N=p?.yAxis?.title,M=d?.yAxis?.title;let L;t[60]!==T||t[61]!==D||t[62]!==N||t[63]!==M||t[64]!==U?(L=i.jsxRuntimeExports.jsx(Ee.AxisTitle,{x:T,y:D,style:N,className:M,text:U,rotate90:!0}),t[60]=T,t[61]=D,t[62]=N,t[63]=M,t[64]=U,t[65]=L):L=t[65];let I;t[66]!==n?(I=s=>A.format(s,n),t[66]=n,t[67]=I):I=t[67];const Zt=Nt.map(I),_t=Nt.map(s=>a(s)),fe=p?.xAxis?.gridLines,pe=p?.xAxis?.labels;let te;t[68]!==fe||t[69]!==pe?(te={gridLines:fe,labels:pe},t[68]=fe,t[69]=pe,t[70]=te):te=t[70];const de=d?.xAxis?.gridLines;let Gt;t[71]!==de?(Gt=i.mo("opacity-0",de),t[71]=de,t[72]=Gt):Gt=t[72];const ge=d?.xAxis?.labels;let Ht;t[73]!==ge?(Ht=i.mo("fill-primary-gray-700 dark:fill-primary-gray-300 xs:max-[360px]:hidden text-[8px] sm:text-[9px] md:text-[10px] lg:text-xs",ge),t[73]=ge,t[74]=Ht):Ht=t[74];let ee;t[75]!==Gt||t[76]!==Ht?(ee={gridLines:Gt,labels:Ht},t[75]=Gt,t[76]=Ht,t[77]=ee):ee=t[77];let se;t[78]!==F?(se=F.filter(Qe).map(Ke),t[78]=F,t[79]=se):se=t[79];const he=me.motion,ye=zt.map((s,e)=>i.jsxRuntimeExports.jsx(me.motion.path,{d:gt(s),exit:{opacity:0,transition:{duration:c.duration}},variants:{initial:{d:gt(s.map(Je)),opacity:0},whileInView:{d:gt(s),opacity:1,transition:{duration:c.duration}}},initial:"initial",animate:f?"whileInView":"initial",style:{fill:Ot[e],opacity:.8}},e));let Ft;t[80]!==d?.mouseOverLine||t[81]!==g||t[82]!==C||t[83]!==p?.mouseOverLine||t[84]!==a?(Ft=C?i.jsxRuntimeExports.jsx("line",{y1:0,y2:g,x1:a(C.date),x2:a(C.date),className:i.mo("undp-tick-line stroke-primary-gray-700 dark:stroke-primary-gray-100",d?.mouseOverLine),style:p?.mouseOverLine}):null,t[80]=d?.mouseOverLine,t[81]=g,t[82]=C,t[83]=p?.mouseOverLine,t[84]=a,t[85]=Ft):Ft=t[85];let oe;t[86]!==he.g||t[87]!==ye||t[88]!==Ft?(oe=i.jsxRuntimeExports.jsxs(he.g,{children:[ye,Ft]}),t[86]=he.g,t[87]=ye,t[88]=Ft,t[89]=oe):oe=t[89];let ie;t[90]!==c||t[91]!==x||t[92]!==f||t[93]!==y||t[94]!==o.right||t[95]!==ct||t[96]!==l?(ie=ct?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:ct.map((s,e)=>i.jsxRuntimeExports.jsx(Se.RefLineY,{text:s.text,color:s.color,y:l(s.value),x1:0-y,x2:x+o.right,classNames:s.classNames,styles:s.styles,animate:c,isInView:f},e))}):null,t[90]=c,t[91]=x,t[92]=f,t[93]=y,t[94]=o.right,t[95]=ct,t[96]=l,t[97]=ie):ie=t[97];let Vt;if(t[98]!==c||t[99]!==z||t[100]!==n||t[101]!==x||t[102]!==f||t[103]!==o.right||t[104]!==G||t[105]!==a||t[106]!==l){let s;t[108]!==c||t[109]!==n||t[110]!==x||t[111]!==f||t[112]!==o.right||t[113]!==G||t[114]!==a||t[115]!==l?(s=(e,R)=>{const X=ve.getLineEndPoint({x:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0),y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8},{x:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date)):0,y:e.yCoordinate?l(e.yCoordinate):0},ue.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius),Qt=e.showConnector?{y1:X.y,x1:X.x,y2:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0):0+(e.yOffset||0),x2:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0),cx:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date)):0,cy:e.yCoordinate?l(e.yCoordinate):0,circleRadius:ue.checkIfNullOrUndefined(e.connectorRadius)?3.5:e.connectorRadius,strokeWidth:e.showConnector===!0?2:Math.min(e.showConnector||0,1)}:void 0,Re={y:e.yCoordinate?l(e.yCoordinate)+(e.yOffset||0)-8:0+(e.yOffset||0)-8,x:G?0:e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0),width:G?e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0):x+o.right-(e.xCoordinate?a(A.parse(`${e.xCoordinate}`,n,new Date))+(e.xOffset||0):0+(e.xOffset||0)),maxWidth:e.maxWidth,fontWeight:e.fontWeight,align:e.align};return i.jsxRuntimeExports.jsx(ve.Annotation,{color:e.color,connectorsSettings:Qt,labelSettings:Re,text:e.text,classNames:e.classNames,styles:e.styles,animate:c,isInView:f},R)},t[108]=c,t[109]=n,t[110]=x,t[111]=f,t[112]=o.right,t[113]=G,t[114]=a,t[115]=l,t[116]=s):s=t[116],Vt=z.map(s),t[98]=c,t[99]=z,t[100]=n,t[101]=x,t[102]=f,t[103]=o.right,t[104]=G,t[105]=a,t[106]=l,t[107]=Vt}else Vt=t[107];let ne;t[117]!==Vt?(ne=i.jsxRuntimeExports.jsx("g",{children:Vt}),t[117]=Vt,t[118]=ne):ne=t[118];let re;t[119]!==F?(re=F.filter(ze).map(Be),t[119]=F,t[120]=re):re=t[120];let ae;t[121]===Symbol.for("react.memo_cache_sentinel")?(ae={fill:"none",pointerEvents:"all"},t[121]=ae):ae=t[121];let le;t[122]!==pt||t[123]!==g||t[124]!==x?(le=i.jsxRuntimeExports.jsx("rect",{ref:pt,style:ae,width:x,height:g}),t[122]=pt,t[123]=g,t[124]=x,t[125]=le):le=t[125];let ce;return t[126]!==d?.tooltip||t[127]!==Q||t[128]!==ft||t[129]!==C||t[130]!==p?.tooltip||t[131]!==B?(ce=C&&B&&Q&&ft?i.jsxRuntimeExports.jsx(be.Tooltip,{data:C,body:B,xPos:Q,yPos:ft,backgroundStyle:p?.tooltip,className:d?.tooltip}):null,t[126]=d?.tooltip,t[127]=Q,t[128]=ft,t[129]=C,t[130]=p?.tooltip,t[131]=B,t[132]=ce):ce=t[132],i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[i.jsxRuntimeExports.jsx(me.motion.svg,{width:`${W}px`,height:`${Et}px`,viewBox:`0 0 ${W} ${Et}`,direction:"ltr",ref:Xt,children:i.jsxRuntimeExports.jsx(Ve.AnimatePresence,{children:i.jsxRuntimeExports.jsxs(me.motion.g,{transform:`translate(${o.left},${o.top})`,children:[Y,i.jsxRuntimeExports.jsx(ve.CustomArea,{animate:c,areaSettings:Bt,scaleX:a,scaleY:l,isInView:f}),i.jsxRuntimeExports.jsxs("g",{children:[i.jsxRuntimeExports.jsx(qe.YTicksAndGridLines,{values:k.filter(_e),y:k.filter(Ze).map(s=>l(s)),x1:0-y,x2:x+o.right,styles:tt,classNames:et,suffix:q,prefix:H,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:K}),O,L]}),i.jsxRuntimeExports.jsx(Le.XTicksAndGridLines,{values:Zt,x:_t,y1:0,y2:g,styles:te,classNames:ee,suffix:q,prefix:H,labelType:"primary",showGridLines:!0,precision:K}),se,oe,ie,ne,re,le]})})}),ce]})}function Be(r){return r.layer}function ze(r){return r.position==="after"}function Je(r){return{...r,y0:0,y1:0}}function Ke(r){return r.layer}function Qe(r){return r.position==="before"}function Ze(r){return r!==0}function _e(r){return r!==0}function ts(r){return r.date}function es(r){return je.sum(r.y)||0}function ss(r){const t=i.compilerRuntimeExports.c(90),{data:m,graphTitle:W,colors:Et,sources:Ot,graphDescription:n,height:Pt,width:v,footNote:y,noOfXTicks:Lt,dateFormat:St,colorDomain:U,padding:B,backgroundColor:at,colorLegendTitle:lt,leftMargin:ct,rightMargin:Yt,topMargin:ut,bottomMargin:G,highlightAreaSettings:z,tooltip:xt,relativeHeight:It,onSeriesMouseOver:H,refValues:q,graphID:J,minValue:p,maxValue:d,graphDownload:K,dataDownload:F,showColorScale:c,language:Xt,minHeight:mt,annotations:f,customHighlightAreaSettings:qt,theme:C,ariaLabel:kt,yAxisTitle:Q,noOfYTicks:Wt,prefix:ft,suffix:Ut,curveType:$t,styles:u,classNames:o,precision:pt,customLayers:V,animate:h}=r,w=Et===void 0?Xe.Colors.light.categoricalColors.colors:Et,dt=Lt===void 0?10:Lt,Z=St===void 0?"yyyy":St,Bt=at===void 0?!1:at,zt=ct===void 0?50:ct,x=Yt===void 0?20:Yt,g=ut===void 0?20:ut,Jt=G===void 0?25:G;let Tt;t[0]!==z?(Tt=z===void 0?[]:z,t[0]=z,t[1]=Tt):Tt=t[1];const j=Tt;let P;t[2]!==q?(P=q===void 0?[]:q,t[2]=q,t[3]=P):P=t[3];const Dt=P,a=K===void 0?!1:K,l=F===void 0?!1:F,gt=c===void 0?!0:c,k=Xt===void 0?"en":Xt,Nt=mt===void 0?0:mt;let Y;t[4]!==f?(Y=f===void 0?[]:f,t[4]=f,t[5]=Y):Y=t[5];const ht=Y;let _;t[6]!==qt?(_=qt===void 0?[]:qt,t[6]=qt,t[7]=_):_=t[7];const tt=_,yt=C===void 0?"light":C,vt=Wt===void 0?5:Wt,et=ft===void 0?"":ft,jt=Ut===void 0?"":Ut,Ct=$t===void 0?"curve":$t,Rt=pt===void 0?2:pt;let st;t[8]!==V?(st=V===void 0?[]:V,t[8]=V,t[9]=st):st=t[9];const At=st,b=h===void 0?!1:h,[ot,Kt]=S.useState(0),[it,nt]=S.useState(0),wt=S.useRef(null),Mt=S.useRef(null);let E,rt;t[10]===Symbol.for("react.memo_cache_sentinel")?(E=()=>{const Zt=new ResizeObserver(_t=>{Kt(_t[0].target.clientWidth||620),nt(_t[0].target.clientHeight||480)});return wt.current&&Zt.observe(wt.current),()=>Zt.disconnect()},rt=[],t[10]=E,t[11]=rt):(E=t[10],rt=t[11]),S.useEffect(E,rt);const bt=o?.graphContainer,$=u?.graphContainer;let O;t[12]!==o?.description||t[13]!==o?.title||t[14]!==m||t[15]!==l||t[16]!==n||t[17]!==a||t[18]!==W||t[19]!==u?.description||t[20]!==u?.title||t[21]!==v?(O=W||n||a||l?i.jsxRuntimeExports.jsx(Ye.GraphHeader,{styles:{title:u?.title,description:u?.description},classNames:{title:o?.title,description:o?.description},graphTitle:W,graphDescription:n,width:v,graphDownload:a?Mt:void 0,dataDownload:l?m.map(as).filter(rs).length>0?m.map(ns).filter(is):m.filter(os):null}):null,t[12]=o?.description,t[13]=o?.title,t[14]=m,t[15]=l,t[16]=n,t[17]=a,t[18]=W,t[19]=u?.description,t[20]=u?.title,t[21]=v,t[22]=O):O=t[22];let T;t[23]!==o?.colorLegend||t[24]!==U||t[25]!==lt||t[26]!==w||t[27]!==m.length||t[28]!==gt?(T=gt!==!1&&m.length>0?i.jsxRuntimeExports.jsx(Ie.ColorLegend,{colorDomain:U,colors:w,colorLegendTitle:lt,showNAColor:!1,className:o?.colorLegend}):null,t[23]=o?.colorLegend,t[24]=U,t[25]=lt,t[26]=w,t[27]=m.length,t[28]=gt,t[29]=T):T=t[29];let D;t[30]!==m.length?(D=m.length===0&&i.jsxRuntimeExports.jsx(We.EmptyState,{}),t[30]=m.length,t[31]=D):D=t[31];let N;t[32]!==b||t[33]!==ht||t[34]!==Jt||t[35]!==o||t[36]!==w||t[37]!==Ct||t[38]!==tt||t[39]!==At||t[40]!==m||t[41]!==Z||t[42]!==j||t[43]!==k||t[44]!==zt||t[45]!==d||t[46]!==p||t[47]!==dt||t[48]!==vt||t[49]!==H||t[50]!==Rt||t[51]!==et||t[52]!==Dt||t[53]!==x||t[54]!==u||t[55]!==jt||t[56]!==it||t[57]!==ot||t[58]!==xt||t[59]!==g||t[60]!==Q?(N=ot&&it&&m.length>0?i.jsxRuntimeExports.jsx(Ue,{data:m,colors:w,width:ot,height:it,dateFormat:Z,noOfXTicks:dt,leftMargin:zt,rightMargin:x,topMargin:g,bottomMargin:Jt,tooltip:xt,onSeriesMouseOver:H,highlightAreaSettings:j,refValues:Dt,minValue:p,maxValue:d,rtl:k==="he"||k==="ar",annotations:ht,customHighlightAreaSettings:tt,yAxisTitle:Q,noOfYTicks:vt,prefix:et,suffix:jt,curveType:Ct,styles:u,classNames:o,precision:Rt,customLayers:At,animate:b===!0?{duration:.5,once:!0,amount:.5}:b||{duration:0,once:!0,amount:0}}):null,t[32]=b,t[33]=ht,t[34]=Jt,t[35]=o,t[36]=w,t[37]=Ct,t[38]=tt,t[39]=At,t[40]=m,t[41]=Z,t[42]=j,t[43]=k,t[44]=zt,t[45]=d,t[46]=p,t[47]=dt,t[48]=vt,t[49]=H,t[50]=Rt,t[51]=et,t[52]=Dt,t[53]=x,t[54]=u,t[55]=jt,t[56]=it,t[57]=ot,t[58]=xt,t[59]=g,t[60]=Q,t[61]=N):N=t[61];let M;t[62]!==D||t[63]!==N?(M=i.jsxRuntimeExports.jsxs(Ce.GraphArea,{ref:wt,children:[D,N]}),t[62]=D,t[63]=N,t[64]=M):M=t[64];let L;t[65]!==o?.footnote||t[66]!==o?.source||t[67]!==y||t[68]!==Ot||t[69]!==u?.footnote||t[70]!==u?.source||t[71]!==v?(L=Ot||y?i.jsxRuntimeExports.jsx(Pe.GraphFooter,{styles:{footnote:u?.footnote,source:u?.source},classNames:{footnote:o?.footnote,source:o?.source},sources:Ot,footNote:y,width:v}):null,t[65]=o?.footnote,t[66]=o?.source,t[67]=y,t[68]=Ot,t[69]=u?.footnote,t[70]=u?.source,t[71]=v,t[72]=L):L=t[72];let I;return t[73]!==kt||t[74]!==Bt||t[75]!==J||t[76]!==Pt||t[77]!==k||t[78]!==Nt||t[79]!==B||t[80]!==It||t[81]!==bt||t[82]!==$||t[83]!==O||t[84]!==T||t[85]!==M||t[86]!==L||t[87]!==yt||t[88]!==v?(I=i.jsxRuntimeExports.jsxs(Ce.GraphContainer,{className:bt,style:$,id:J,ref:Mt,"aria-label":kt,backgroundColor:Bt,theme:yt,language:k,minHeight:Nt,width:v,height:Pt,relativeHeight:It,padding:B,children:[O,T,M,L]}),t[73]=kt,t[74]=Bt,t[75]=J,t[76]=Pt,t[77]=k,t[78]=Nt,t[79]=B,t[80]=It,t[81]=bt,t[82]=$,t[83]=O,t[84]=T,t[85]=M,t[86]=L,t[87]=yt,t[88]=v,t[89]=I):I=t[89],I}function os(r){return r!==void 0}function is(r){return r!==void 0}function ns(r){return r.data}function rs(r){return r!==void 0}function as(r){return r.data}exports.AreaChart=ss;
|
|
2
2
|
//# sourceMappingURL=AreaChart.cjs.map
|
package/dist/AreaChart.js
CHANGED
|
@@ -28,7 +28,7 @@ import { GraphFooter as Ke } from "./GraphFooter.js";
|
|
|
28
28
|
import { GraphHeader as Qe } from "./GraphHeader.js";
|
|
29
29
|
import { ColorLegend as Ze } from "./ColorLegend.js";
|
|
30
30
|
import { Colors as _e } from "./Colors.js";
|
|
31
|
-
import { E as to } from "./EmptyState-
|
|
31
|
+
import { E as to } from "./EmptyState-dScPFkLy.js";
|
|
32
32
|
import { a as eo, G as oo } from "./GraphContainer-CF6ws3pd.js";
|
|
33
33
|
function so(n) {
|
|
34
34
|
const t = Ce.c(133), {
|
package/dist/BarGraph.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-6v2a2njQ.cjs"),ut=require("react"),Re=require("./getSliderMarks-CIuSoedo.cjs"),je=require("./parse-xYI9yrvL.cjs"),Pe=require("./index-Cno4Q0YE.cjs"),me=require("./index-CSNtgibC.cjs"),Ie=require("./index-DQA8q5sC.cjs"),be=require("./numberFormattingFunction-02t-wJta.cjs"),Ve=require("./Tooltip-BLa2EfMs.cjs"),ee=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),He=require("./YAxesLabels-BQ2aCazV.cjs"),Ne=require("./Axis-Jt_tmhxS.cjs"),De=require("./AxisTitle-DV4n0RxE.cjs"),We=require("./XTicksAndGridLines-CekrPykD.cjs"),Se=require("./ReferenceLine-M9aP3dj-.cjs"),Xe=require("./YTicksAndGridLines-UzVC5eBM.cjs"),Ye=require("./XAxesLabels-C6o9jJal.cjs"),ze=require("./DetailsModal-DHttOA80.cjs"),Te=require("./use-in-view-C3o_ntMv.cjs"),Fe=require("./linear-CgUCbw9F.cjs"),Oe=require("./band-VYfcZeJ2.cjs"),_t=require("./proxy-C4-uo6nS.cjs"),Be=require("./index-CoobIWNj.cjs"),Ue=require("./GraphHeader.cjs"),Je=require("./GraphFooter.cjs"),Ke=require("./ColorLegendWithMouseOver.cjs"),fe=require("./Colors.cjs"),Qe=require("./EmptyState-DX0t62iF.cjs"),Me=require("./index-sbKVyHS2.cjs"),$e=require("./ensureCompleteData-D9bQTiVS.cjs"),Le=require("./GraphContainer-B1EDxJ0S.cjs"),Ze=require("./uniqBy-O05lp2S5.cjs"),qe=require("./getTextColorBasedOnBgColor-nqY-bsM_.cjs");function _e(e){const t=i.compilerRuntimeExports.c(131),{data:n,leftMargin:G,rightMargin:Jt,topMargin:Kt,bottomMargin:St,barColors:Ct,barPadding:Ft,showTicks:P,truncateBy:J,width:A,height:X,suffix:ft,prefix:et,showValues:Rt,showLabels:q,tooltip:nt,onSeriesMouseOver:Mt,refValues:Lt,maxValue:qt,minValue:E,onSeriesMouseClick:K,selectedColor:z,rtl:D,labelOrder:xt,maxBarThickness:Q,resetSelectionOnDoubleClick:gt,detailsOnClick:T,barAxisTitle:Z,valueColor:it,noOfTicks:c,styles:s,classNames:o,animate:m,colorDomain:u,precision:f,customLayers:d,naLabel:ot,hideAxisLine:L}=e,H=G===void 0?100:G,Ht=Jt===void 0?40:Jt,Wt=Kt===void 0?25:Kt,Bt=St===void 0?10:St,Pt=ut.useRef(null);let lt;t[0]!==m.amount||t[1]!==m.once?(lt={once:m.once,amount:m.amount},t[0]=m.amount,t[1]=m.once,t[2]=lt):lt=t[2];const dt=Te.useInView(Pt,lt),_=Z?Wt+25:Wt;let x;t[3]!==Bt||t[4]!==H||t[5]!==Ht||t[6]!==_?(x={top:_,bottom:Bt,left:H,right:Ht},t[3]=Bt,t[4]=H,t[5]=Ht,t[6]=_,t[7]=x):x=t[7];const r=x,[R,yt]=ut.useState(void 0),[y,C]=ut.useState(void 0),[Xt,at]=ut.useState(void 0),[Yt,rt]=ut.useState(void 0),Gt=A-r.left-r.right,W=X-r.top-r.bottom;let st;if(t[8]!==n||t[9]!==xt){const b=new Set,jt=n.map((h,g)=>{const Nt=xt?`${h.label}`:`${g}`;return b.add(Nt),{...h,id:Nt}}),$t=xt?xt.filter(h=>!b.has(h)):[];let O;t[11]!==n[0].size.length?(O=h=>({id:h,label:h,size:Array(n[0].size.length).fill(null)}),t[11]=n[0].size.length,t[12]=O):O=t[12],st=[...jt,...$t.map(O)],t[8]=n,t[9]=xt,t[10]=st}else st=t[10];const k=st;let mt;t[13]!==k||t[14]!==xt?(mt=xt??k.map(ai),t[13]=k,t[14]=xt,t[15]=mt):mt=t[15];const zt=mt;let bt,vt,wt,Tt,It,tt,S,I,Vt,At,ct,pt,ht,Y;if(t[16]!==m||t[17]!==Z||t[18]!==Ct||t[19]!==zt||t[20]!==Ft||t[21]!==o?.graphObjectValues||t[22]!==o?.xAxis?.gridLines||t[23]!==o?.xAxis?.labels||t[24]!==o?.xAxis?.title||t[25]!==o?.yAxis?.axis||t[26]!==o?.yAxis?.labels||t[27]!==u||t[28]!==d||t[29]!==n[0].size||t[30]!==k||t[31]!==T||t[32]!==W||t[33]!==Gt||t[34]!==X||t[35]!==L||t[36]!==dt||t[37]!==r.bottom||t[38]!==r.left||t[39]!==r.top||t[40]!==Q||t[41]!==qt||t[42]!==E||t[43]!==y||t[44]!==ot||t[45]!==c||t[46]!==K||t[47]!==Mt||t[48]!==f||t[49]!==et||t[50]!==Lt||t[51]!==gt||t[52]!==D||t[53]!==z||t[54]!==q||t[55]!==P||t[56]!==Rt||t[57]!==s?.graphObjectValues||t[58]!==s?.xAxis?.gridLines||t[59]!==s?.xAxis?.labels||t[60]!==s?.xAxis?.title||t[61]!==s?.yAxis?.axis||t[62]!==s?.yAxis?.labels||t[63]!==ft||t[64]!==Wt||t[65]!==J||t[66]!==it||t[67]!==A){const b=Fe.linear().domain([E,qt]).range([0,Gt]).nice(),jt=Oe.band().domain(zt).range([0,Q?Math.min(W,Q*zt.length):W]).paddingInner(Ft),$t=Oe.band().domain(n[0].size.map(li)).range([0,jt.bandwidth()]).paddingInner(.1),O=b.ticks(c);vt=_t.motion.svg,Vt=Pt,At=`${A}px`,ct=`${X}px`,pt=`0 0 ${A} ${X}`,ht="ltr",It=`translate(${r.left},${r.top})`,tt=P?i.jsxRuntimeExports.jsx(We.XTicksAndGridLines,{values:O.filter(oi),x:O.filter(ni).map(N=>b(N)),y1:0-Wt,y2:W+r.bottom,styles:{gridLines:s?.xAxis?.gridLines,labels:s?.xAxis?.labels},classNames:{gridLines:o?.xAxis?.gridLines,labels:o?.xAxis?.labels},suffix:ft,prefix:et,labelType:"secondary",showGridLines:!0,precision:f}):null;const h=Gt/2,g=0-r.top+15,Nt=s?.xAxis?.title,Ut=o?.xAxis?.title;t[82]!==Z||t[83]!==h||t[84]!==g||t[85]!==Nt||t[86]!==Ut?(S=i.jsxRuntimeExports.jsx(De.AxisTitle,{x:h,y:g,style:Nt,className:Ut,text:Z}),t[82]=Z,t[83]=h,t[84]=g,t[85]=Nt,t[86]=Ut,t[87]=S):S=t[87],t[88]!==d?(I=d.filter(si).map(ii),t[88]=d,t[89]=I):I=t[89],bt=Be.AnimatePresence,Y=k.map(N=>ee.checkIfNullOrUndefined(jt(N.id))?null:i.jsxRuntimeExports.jsxs(_t.motion.g,{variants:{initial:{x:0,y:jt(`${N.id}`)},whileInView:{x:0,y:jt(`${N.id}`),transition:{duration:m.duration}}},initial:"initial",animate:dt?"whileInView":"initial",exit:{opacity:0,transition:{duration:m.duration}},children:[N.size.map((p,w)=>i.jsxRuntimeExports.jsxs(_t.motion.g,{className:"undp-viz-g-with-hover",opacity:z?Ct[w]===z?1:.3:.85,onMouseEnter:l=>{yt({...N,sizeIndex:w}),rt(l.clientY),at(l.clientX),Mt?.({...N,sizeIndex:w})},onMouseMove:l=>{yt({...N,sizeIndex:w}),rt(l.clientY),at(l.clientX)},onMouseLeave:()=>{yt(void 0),at(void 0),rt(void 0),Mt?.(void 0)},onClick:()=>{(K||T)&&(Ie.isEqual(y,{...N,sizeIndex:w})&>?(C(void 0),K?.(void 0)):(C({...N,sizeIndex:w}),K&&K({...N,sizeIndex:w})))},children:[ee.checkIfNullOrUndefined(p)?null:i.jsxRuntimeExports.jsx(_t.motion.rect,{y:$t(`${w}`),variants:{initial:{width:0,x:b(0),fill:Ct[w]},whileInView:{width:ee.checkIfNullOrUndefined(p)?0:p>=0?b(p)-b(0):b(0)-b(p),x:p>=0?b(0):b(p),fill:Ct[w],transition:{duration:m.duration}}},exit:{width:0,x:b(0),transition:{duration:m.duration}},height:$t.bandwidth(),initial:"initial",animate:dt?"whileInView":"initial"}),Rt?i.jsxRuntimeExports.jsx(_t.motion.text,{y:$t(`${w}`)+$t.bandwidth()/2,style:{textAnchor:p&&p<0?"end":"start",...s?.graphObjectValues||{}},className:i.mo("graph-value text-sm",o?.graphObjectValues),dx:p&&p<0?-5:5,dy:"0.33em",variants:{initial:{x:b(0),opacity:0,fill:it||Ct[w]},whileInView:{x:b(p||0),opacity:1,fill:it||Ct[w],transition:{duration:m.duration}}},initial:"initial",animate:dt?"whileInView":"initial",exit:{opacity:0,transition:{duration:m.duration}},children:be.numberFormattingFunction(p,ot,f,et,ft)}):null]},`${N.label}-${u[w]||w}`)),q?i.jsxRuntimeExports.jsx(He.YAxesLabels,{value:`${N.label}`.length<J?`${N.label}`:`${`${N.label}`.substring(0,J)}...`,y:0,x:0-r.left,width:b(E<0?0:E)+r.left,height:jt.bandwidth(),style:s?.yAxis?.labels,className:o?.yAxis?.labels,animate:m,isInView:dt}):null]},N.label));const Zt=o?.yAxis?.axis;let F;t[90]!==Zt?(F={axis:Zt},t[90]=Zt,t[91]=F):F=t[91];const V=s?.yAxis?.axis;let M;t[92]!==V?(M={axis:V},t[92]=V,t[93]=M):M=t[93],wt=i.jsxRuntimeExports.jsx(Ne.Axis,{x1:b(E<0?0:E),x2:b(E<0?0:E),y1:-2.5,y2:W+r.bottom,classNames:F,styles:M,hideAxisLine:L}),Tt=Lt?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:Lt.map((N,p)=>i.jsxRuntimeExports.jsx(Se.RefLineX,{text:N.text,color:N.color,x:b(N.value),y1:0-r.top,y2:W+r.bottom,textSide:b(N.value)>Gt*.75||D?"left":"right",classNames:N.classNames,styles:N.styles,animate:m,isInView:dt},p))}):null,t[16]=m,t[17]=Z,t[18]=Ct,t[19]=zt,t[20]=Ft,t[21]=o?.graphObjectValues,t[22]=o?.xAxis?.gridLines,t[23]=o?.xAxis?.labels,t[24]=o?.xAxis?.title,t[25]=o?.yAxis?.axis,t[26]=o?.yAxis?.labels,t[27]=u,t[28]=d,t[29]=n[0].size,t[30]=k,t[31]=T,t[32]=W,t[33]=Gt,t[34]=X,t[35]=L,t[36]=dt,t[37]=r.bottom,t[38]=r.left,t[39]=r.top,t[40]=Q,t[41]=qt,t[42]=E,t[43]=y,t[44]=ot,t[45]=c,t[46]=K,t[47]=Mt,t[48]=f,t[49]=et,t[50]=Lt,t[51]=gt,t[52]=D,t[53]=z,t[54]=q,t[55]=P,t[56]=Rt,t[57]=s?.graphObjectValues,t[58]=s?.xAxis?.gridLines,t[59]=s?.xAxis?.labels,t[60]=s?.xAxis?.title,t[61]=s?.yAxis?.axis,t[62]=s?.yAxis?.labels,t[63]=ft,t[64]=Wt,t[65]=J,t[66]=it,t[67]=A,t[68]=bt,t[69]=vt,t[70]=wt,t[71]=Tt,t[72]=It,t[73]=tt,t[74]=S,t[75]=I,t[76]=Vt,t[77]=At,t[78]=ct,t[79]=pt,t[80]=ht,t[81]=Y}else bt=t[68],vt=t[69],wt=t[70],Tt=t[71],It=t[72],tt=t[73],S=t[74],I=t[75],Vt=t[76],At=t[77],ct=t[78],pt=t[79],ht=t[80],Y=t[81];let Ot;t[94]!==bt||t[95]!==wt||t[96]!==Tt||t[97]!==Y?(Ot=i.jsxRuntimeExports.jsxs(bt,{children:[Y,wt,Tt]}),t[94]=bt,t[95]=wt,t[96]=Tt,t[97]=Y,t[98]=Ot):Ot=t[98];let kt;t[99]!==d?(kt=d.filter(ei).map(ti),t[99]=d,t[100]=kt):kt=t[100];let U;t[101]!==It||t[102]!==tt||t[103]!==S||t[104]!==I||t[105]!==Ot||t[106]!==kt?(U=i.jsxRuntimeExports.jsxs("g",{transform:It,children:[tt,S,I,Ot,kt]}),t[101]=It,t[102]=tt,t[103]=S,t[104]=I,t[105]=Ot,t[106]=kt,t[107]=U):U=t[107];let Et;t[108]!==vt||t[109]!==Vt||t[110]!==At||t[111]!==ct||t[112]!==pt||t[113]!==ht||t[114]!==U?(Et=i.jsxRuntimeExports.jsx(vt,{ref:Vt,width:At,height:ct,viewBox:pt,direction:ht,children:U}),t[108]=vt,t[109]=Vt,t[110]=At,t[111]=ct,t[112]=pt,t[113]=ht,t[114]=U,t[115]=Et):Et=t[115];let v;t[116]!==o?.tooltip||t[117]!==Xt||t[118]!==Yt||t[119]!==R||t[120]!==s?.tooltip||t[121]!==nt?(v=R&&nt&&Xt&&Yt?i.jsxRuntimeExports.jsx(Ve.Tooltip,{data:R,body:nt,xPos:Xt,yPos:Yt,backgroundStyle:s?.tooltip,className:o?.tooltip}):null,t[116]=o?.tooltip,t[117]=Xt,t[118]=Yt,t[119]=R,t[120]=s?.tooltip,t[121]=nt,t[122]=v):v=t[122];let j;t[123]!==o?.modal||t[124]!==T||t[125]!==y?(j=T&&y!==void 0?i.jsxRuntimeExports.jsx(ze.DetailsModal,{body:T,data:y,setData:C,className:o?.modal}):null,t[123]=o?.modal,t[124]=T,t[125]=y,t[126]=j):j=t[126];let $;return t[127]!==Et||t[128]!==v||t[129]!==j?($=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[Et,v,j]}),t[127]=Et,t[128]=v,t[129]=j,t[130]=$):$=t[130],$}function ti(e){return e.layer}function ei(e){return e.position==="after"}function ii(e){return e.layer}function si(e){return e.position==="before"}function ni(e){return e!==0}function oi(e){return e!==0}function li(e,t){return`${t}`}function ai(e){return`${e.id}`}function ri(e){const t=i.compilerRuntimeExports.c(140),{data:n,leftMargin:G,rightMargin:Jt,topMargin:Kt,bottomMargin:St,width:Ct,height:Ft,barColors:P,suffix:J,prefix:A,barPadding:X,showLabels:ft,showValues:et,showTicks:Rt,truncateBy:q,tooltip:nt,onSeriesMouseOver:Mt,refValues:Lt,maxValue:qt,minValue:E,onSeriesMouseClick:K,selectedColor:z,labelOrder:D,maxBarThickness:xt,resetSelectionOnDoubleClick:Q,detailsOnClick:gt,barAxisTitle:T,valueColor:Z,noOfTicks:it,styles:c,classNames:s,animate:o,colorDomain:m,precision:u,customLayers:f,naLabel:d,hideAxisLine:ot}=e,L=G===void 0?20:G,H=Jt===void 0?20:Jt,Ht=Kt===void 0?20:Kt,Wt=St===void 0?25:St,Bt=ut.useRef(null);let Pt;t[0]!==o.amount||t[1]!==o.once?(Pt={once:o.once,amount:o.amount},t[0]=o.amount,t[1]=o.once,t[2]=Pt):Pt=t[2];const lt=Te.useInView(Bt,Pt),dt=T?L+30:L;let _;t[3]!==Wt||t[4]!==H||t[5]!==dt||t[6]!==Ht?(_={top:Ht,bottom:Wt,left:dt,right:H},t[3]=Wt,t[4]=H,t[5]=dt,t[6]=Ht,t[7]=_):_=t[7];const x=_,[r,R]=ut.useState(void 0),[yt,y]=ut.useState(void 0),[C,Xt]=ut.useState(void 0),[at,Yt]=ut.useState(void 0),rt=Ct-x.left-x.right,Gt=Ft-x.top-x.bottom;let W;if(t[8]!==n||t[9]!==D){const $=new Set,b=n.map((O,h)=>{const g=D?`${O.label}`:`${h}`;return $.add(g),{...O,id:g}}),jt=D?D.filter(O=>!$.has(O)):[];let $t;t[11]!==n[0].size.length?($t=O=>({id:O,label:O,size:Array(n[0].size.length).fill(null)}),t[11]=n[0].size.length,t[12]=$t):$t=t[12],W=[...b,...jt.map($t)],t[8]=n,t[9]=D,t[10]=W}else W=t[10];const st=W;let k;t[13]!==st||t[14]!==D?(k=D??st.map(fi),t[13]=st,t[14]=D,t[15]=k):k=t[15];const mt=k;let zt,bt,vt,wt,Tt,It,tt,S,I,Vt,At,ct,pt,ht;if(t[16]!==o||t[17]!==T||t[18]!==P||t[19]!==mt||t[20]!==X||t[21]!==s?.graphObjectValues||t[22]!==s?.xAxis?.axis||t[23]!==s?.xAxis?.labels||t[24]!==s?.yAxis?.gridLines||t[25]!==s?.yAxis?.labels||t[26]!==s?.yAxis?.title||t[27]!==m||t[28]!==f||t[29]!==n[0].size||t[30]!==st||t[31]!==gt||t[32]!==Gt||t[33]!==rt||t[34]!==Ft||t[35]!==ot||t[36]!==lt||t[37]!==L||t[38]!==x.bottom||t[39]!==x.left||t[40]!==x.right||t[41]!==x.top||t[42]!==xt||t[43]!==qt||t[44]!==E||t[45]!==yt||t[46]!==d||t[47]!==it||t[48]!==K||t[49]!==Mt||t[50]!==u||t[51]!==A||t[52]!==Lt||t[53]!==Q||t[54]!==z||t[55]!==ft||t[56]!==Rt||t[57]!==et||t[58]!==c?.graphObjectValues||t[59]!==c?.xAxis?.axis||t[60]!==c?.xAxis?.labels||t[61]!==c?.yAxis?.gridLines||t[62]!==c?.yAxis?.labels||t[63]!==c?.yAxis?.title||t[64]!==J||t[65]!==q||t[66]!==Z||t[67]!==Ct){const $=Fe.linear().domain([E,qt]).range([Gt,0]).nice(),b=Oe.band().domain(mt).range([0,xt?Math.min(rt,xt*mt.length):rt]).paddingInner(X),jt=Oe.band().domain(n[0].size.map(hi)).range([0,b.bandwidth()]).paddingInner(.1),$t=$.ticks(it);bt=_t.motion.svg,I=`${Ct}px`,Vt=`${Ft}px`,At=`0 0 ${Ct} ${Ft}`,ct="ltr",pt=Bt,wt=`translate(${x.left},${x.top})`;let O;t[82]!==E||t[83]!==d||t[84]!==u||t[85]!==A||t[86]!==Rt||t[87]!==J?(O=Rt?be.numberFormattingFunction(E<0?0:E,d,u,A,J):void 0,t[82]=E,t[83]=d,t[84]=u,t[85]=A,t[86]=Rt,t[87]=J,t[88]=O):O=t[88];const h=s?.xAxis?.axis,g=s?.yAxis?.labels;let Nt;t[89]!==h||t[90]!==g?(Nt={axis:h,label:g},t[89]=h,t[90]=g,t[91]=Nt):Nt=t[91];const Ut=c?.xAxis?.axis,Zt=c?.yAxis?.labels;let F;t[92]!==Ut||t[93]!==Zt?(F={axis:Ut,label:Zt},t[92]=Ut,t[93]=Zt,t[94]=F):F=t[94],Tt=i.jsxRuntimeExports.jsx(Ne.Axis,{y1:$(E<0?0:E),y2:$(E<0?0:E),x1:0-L,x2:rt+x.right,label:O,hideAxisLine:ot,labelPos:{x:0-L,dx:0,dy:qt<0?"1em":-5,y:$(E<0?0:E)},classNames:Nt,styles:F}),It=Rt?i.jsxRuntimeExports.jsx(Xe.YTicksAndGridLines,{values:$t.filter(pi),y:$t.filter(mi).map(w=>$(w)),x1:0-L,x2:rt+x.right,styles:{gridLines:c?.yAxis?.gridLines,labels:c?.yAxis?.labels},classNames:{gridLines:s?.yAxis?.gridLines,labels:s?.yAxis?.labels},suffix:J,prefix:A,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:u}):null;const V=0-L-15,M=Gt/2,N=c?.yAxis?.title,p=s?.yAxis?.title;t[95]!==T||t[96]!==V||t[97]!==M||t[98]!==N||t[99]!==p?(tt=i.jsxRuntimeExports.jsx(De.AxisTitle,{x:V,y:M,style:N,className:p,text:T,rotate90:!0}),t[95]=T,t[96]=V,t[97]=M,t[98]=N,t[99]=p,t[100]=tt):tt=t[100],t[101]!==f?(S=f.filter(di).map(xi),t[101]=f,t[102]=S):S=t[102],zt=Be.AnimatePresence,ht=st.map(w=>ee.checkIfNullOrUndefined(b(w.id))?null:i.jsxRuntimeExports.jsxs(_t.motion.g,{variants:{initial:{x:b(`${w.id}`),y:0},whileInView:{x:b(`${w.id}`),y:0,transition:{duration:o.duration}}},initial:"initial",animate:lt?"whileInView":"initial",exit:{opacity:0,transition:{duration:o.duration}},children:[w.size.map((l,B)=>i.jsxRuntimeExports.jsxs(_t.motion.g,{className:"undp-viz-g-with-hover",opacity:z?P[B]===z?1:.3:.85,onMouseEnter:a=>{R({...w,sizeIndex:B}),Yt(a.clientY),Xt(a.clientX),Mt?.({...w,sizeIndex:B})},onMouseMove:a=>{R({...w,sizeIndex:B}),Yt(a.clientY),Xt(a.clientX)},onMouseLeave:()=>{R(void 0),Xt(void 0),Yt(void 0),Mt?.(void 0)},onClick:()=>{(K||gt)&&(Ie.isEqual(yt,{...w,sizeIndex:B})&&Q?(y(void 0),K?.(void 0)):(y({...w,sizeIndex:B}),K&&K({...w,sizeIndex:B})))},children:[i.jsxRuntimeExports.jsx(_t.motion.rect,{x:jt(`${B}`),width:jt.bandwidth(),variants:{initial:{height:0,y:$(0),fill:P[B]},whileInView:{height:ee.checkIfNullOrUndefined(l)?0:Math.abs($(l)-$(0)),y:ee.checkIfNullOrUndefined(l)?$(0):l>0?$(l):$(0),fill:P[B],transition:{duration:o.duration}}},exit:{height:0,y:$(0),transition:{duration:o.duration}},initial:"initial",animate:lt?"whileInView":"initial"}),et?i.jsxRuntimeExports.jsx(_t.motion.text,{x:jt(`${B}`)+jt.bandwidth()/2,style:{textAnchor:"middle",...c?.graphObjectValues||{}},className:i.mo("graph-value text-sm",s?.graphObjectValues),dy:l?l>=0?"-5px":"1em":"-5px",variants:{initial:{y:$(0),opacity:0,fill:Z||P[B]},whileInView:{y:$(l||0),opacity:1,fill:Z||P[B],transition:{duration:o.duration}}},initial:"initial",animate:lt?"whileInView":"initial",exit:{opacity:0,transition:{duration:o.duration}},children:be.numberFormattingFunction(l,d,u,A,J)}):null]},`${w.label}-${m[B]||B}`)),ft?i.jsxRuntimeExports.jsx(Ye.XAxesLabels,{value:`${w.label}`.length<q?`${w.label}`:`${`${w.label}`.substring(0,q)}...`,y:$(0)+5,x:0,width:b.bandwidth(),height:x.bottom,style:c?.xAxis?.labels,className:s?.xAxis?.labels,alignment:"top",animate:o,isInView:lt}):null]},w.label)),vt=Lt?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:Lt.map((w,l)=>i.jsxRuntimeExports.jsx(Se.RefLineY,{text:w.text,color:w.color,y:$(w.value),x1:0-L,x2:rt+x.right,classNames:w.classNames,styles:w.styles,animate:o,isInView:lt},l))}):null,t[16]=o,t[17]=T,t[18]=P,t[19]=mt,t[20]=X,t[21]=s?.graphObjectValues,t[22]=s?.xAxis?.axis,t[23]=s?.xAxis?.labels,t[24]=s?.yAxis?.gridLines,t[25]=s?.yAxis?.labels,t[26]=s?.yAxis?.title,t[27]=m,t[28]=f,t[29]=n[0].size,t[30]=st,t[31]=gt,t[32]=Gt,t[33]=rt,t[34]=Ft,t[35]=ot,t[36]=lt,t[37]=L,t[38]=x.bottom,t[39]=x.left,t[40]=x.right,t[41]=x.top,t[42]=xt,t[43]=qt,t[44]=E,t[45]=yt,t[46]=d,t[47]=it,t[48]=K,t[49]=Mt,t[50]=u,t[51]=A,t[52]=Lt,t[53]=Q,t[54]=z,t[55]=ft,t[56]=Rt,t[57]=et,t[58]=c?.graphObjectValues,t[59]=c?.xAxis?.axis,t[60]=c?.xAxis?.labels,t[61]=c?.yAxis?.gridLines,t[62]=c?.yAxis?.labels,t[63]=c?.yAxis?.title,t[64]=J,t[65]=q,t[66]=Z,t[67]=Ct,t[68]=zt,t[69]=bt,t[70]=vt,t[71]=wt,t[72]=Tt,t[73]=It,t[74]=tt,t[75]=S,t[76]=I,t[77]=Vt,t[78]=At,t[79]=ct,t[80]=pt,t[81]=ht}else zt=t[68],bt=t[69],vt=t[70],wt=t[71],Tt=t[72],It=t[73],tt=t[74],S=t[75],I=t[76],Vt=t[77],At=t[78],ct=t[79],pt=t[80],ht=t[81];let Y;t[103]!==zt||t[104]!==vt||t[105]!==ht?(Y=i.jsxRuntimeExports.jsxs(zt,{children:[ht,vt]}),t[103]=zt,t[104]=vt,t[105]=ht,t[106]=Y):Y=t[106];let Ot;t[107]!==f?(Ot=f.filter(ui).map(ci),t[107]=f,t[108]=Ot):Ot=t[108];let kt;t[109]!==wt||t[110]!==Tt||t[111]!==It||t[112]!==tt||t[113]!==S||t[114]!==Y||t[115]!==Ot?(kt=i.jsxRuntimeExports.jsxs("g",{transform:wt,children:[Tt,It,tt,S,Y,Ot]}),t[109]=wt,t[110]=Tt,t[111]=It,t[112]=tt,t[113]=S,t[114]=Y,t[115]=Ot,t[116]=kt):kt=t[116];let U;t[117]!==bt||t[118]!==I||t[119]!==Vt||t[120]!==At||t[121]!==ct||t[122]!==pt||t[123]!==kt?(U=i.jsxRuntimeExports.jsx(bt,{width:I,height:Vt,viewBox:At,direction:ct,ref:pt,children:kt}),t[117]=bt,t[118]=I,t[119]=Vt,t[120]=At,t[121]=ct,t[122]=pt,t[123]=kt,t[124]=U):U=t[124];let Et;t[125]!==s?.tooltip||t[126]!==C||t[127]!==at||t[128]!==r||t[129]!==c?.tooltip||t[130]!==nt?(Et=r&&nt&&C&&at?i.jsxRuntimeExports.jsx(Ve.Tooltip,{data:r,body:nt,xPos:C,yPos:at,backgroundStyle:c?.tooltip,className:s?.tooltip}):null,t[125]=s?.tooltip,t[126]=C,t[127]=at,t[128]=r,t[129]=c?.tooltip,t[130]=nt,t[131]=Et):Et=t[131];let v;t[132]!==s?.modal||t[133]!==gt||t[134]!==yt?(v=gt&&yt!==void 0?i.jsxRuntimeExports.jsx(ze.DetailsModal,{body:gt,data:yt,setData:y,className:s?.modal}):null,t[132]=s?.modal,t[133]=gt,t[134]=yt,t[135]=v):v=t[135];let j;return t[136]!==U||t[137]!==Et||t[138]!==v?(j=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[U,Et,v]}),t[136]=U,t[137]=Et,t[138]=v,t[139]=j):j=t[139],j}function ci(e){return e.layer}function ui(e){return e.position==="after"}function xi(e){return e.layer}function di(e){return e.position==="before"}function mi(e){return e!==0}function pi(e){return e!==0}function hi(e,t){return`${t}`}function fi(e){return`${e.id}`}function gi(e){const t=i.compilerRuntimeExports.c(126),{data:n,graphTitle:G,colors:Jt,sources:Kt,graphDescription:St,barPadding:Ct,showTicks:Ft,truncateBy:P,height:J,width:A,footNote:X,colorDomain:ft,colorLegendTitle:et,suffix:Rt,prefix:q,showValues:nt,showColorScale:Mt,padding:Lt,backgroundColor:qt,leftMargin:E,rightMargin:K,topMargin:z,bottomMargin:D,showLabels:xt,relativeHeight:Q,tooltip:gt,onSeriesMouseOver:T,refValues:Z,graphID:it,maxValue:c,minValue:s,onSeriesMouseClick:o,graphDownload:m,dataDownload:u,language:f,labelOrder:d,minHeight:ot,theme:L,maxBarThickness:H,ariaLabel:Ht,resetSelectionOnDoubleClick:Wt,detailsOnClick:Bt,barAxisTitle:Pt,noOfTicks:lt,valueColor:dt,styles:_,classNames:x,filterNA:r,animate:R,precision:yt,customLayers:y,timeline:C,naLabel:Xt,sortParameter:at,sortData:Yt,orientation:rt,hideAxisLine:Gt}=e,W=Jt===void 0?fe.Colors.light.categoricalColors.colors:Jt,st=Ct===void 0?.25:Ct,k=Ft===void 0?!0:Ft,mt=P===void 0?999:P,zt=Rt===void 0?"":Rt,bt=q===void 0?"":q,vt=nt===void 0?!0:nt,wt=Mt===void 0?!0:Mt,Tt=qt===void 0?!1:qt,It=xt===void 0?!0:xt,tt=m===void 0?!1:m,S=u===void 0?!1:u,I=f===void 0?"en":f,Vt=ot===void 0?0:ot,At=L===void 0?"light":L,ct=Wt===void 0?!0:Wt,pt=lt===void 0?5:lt,ht=r===void 0?!0:r,Y=R===void 0?!1:R,Ot=yt===void 0?2:yt;let kt;t[0]!==y?(kt=y===void 0?[]:y,t[0]=y,t[1]=kt):kt=t[1];const U=kt;let Et;t[2]!==C?(Et=C===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:C,t[2]=C,t[3]=Et):Et=t[3];const v=Et,j=Xt===void 0?"NA":Xt,$=rt===void 0?"vertical":rt,b=Gt===void 0?!1:Gt,jt=$==="horizontal"?_e:ri,[$t,O]=ut.useState(0),[h,g]=ut.useState(0),[Nt,Ut]=ut.useState(v.autoplay);let Zt;if(t[4]!==n||t[5]!==v.dateFormat){let Qt;t[7]!==v.dateFormat?(Qt=Dt=>je.parse(`${Dt.date}`,v.dateFormat||"yyyy",new Date).getTime(),t[7]=v.dateFormat,t[8]=Qt):Qt=t[8],Zt=[...new Set(n.filter(zi).map(Qt))],Zt.sort(Si),t[4]=n,t[5]=v.dateFormat,t[6]=Zt}else Zt=t[6];const F=Zt,[V,M]=ut.useState(v.autoplay?0:F.length-1),[N,p]=ut.useState(void 0),w=ut.useRef(null),l=ut.useRef(null);let B,a;t[9]===Symbol.for("react.memo_cache_sentinel")?(B=()=>{const Qt=new ResizeObserver(Dt=>{O(Dt[0].target.clientWidth||620),g(Dt[0].target.clientHeight||480)});return w.current&&Qt.observe(w.current),()=>Qt.disconnect()},a=[],t[9]=B,t[10]=a):(B=t[9],a=t[10]),ut.useEffect(B,a);let ie,ne;t[11]!==Nt||t[12]!==v.speed||t[13]!==F?(ie=()=>{const Qt=setInterval(()=>{M(Dt=>Dt<F.length-1?Dt+1:0)},(v.speed||2)*1e3);return Nt||clearInterval(Qt),()=>clearInterval(Qt)},ne=[F,Nt,v.speed],t[11]=Nt,t[12]=v.speed,t[13]=F,t[14]=ie,t[15]=ne):(ie=t[14],ne=t[15]),ut.useEffect(ie,ne);const ge=v.dateFormat||"yyyy";let Ae;t[16]!==V||t[17]!==ge||t[18]!==v.showOnlyActiveDate||t[19]!==F?(Ae=Re.getSliderMarks(F,V,v.showOnlyActiveDate,ge),t[16]=V,t[17]=ge,t[18]=v.showOnlyActiveDate,t[19]=F,t[20]=Ae):Ae=t[20];const he=Ae,ve=x?.graphContainer,ye=_?.graphContainer;let pe;t[21]!==x?.description||t[22]!==x?.title||t[23]!==n||t[24]!==S||t[25]!==St||t[26]!==tt||t[27]!==G||t[28]!==_?.description||t[29]!==_?.title||t[30]!==A?(pe=G||St||tt||S?i.jsxRuntimeExports.jsx(Ue.GraphHeader,{styles:{title:_?.title,description:_?.description},classNames:{title:x?.title,description:x?.description},graphTitle:G,graphDescription:St,width:A,graphDownload:tt?l:void 0,dataDownload:S?n.map(Di).filter(Ni).length>0?n.map(Vi).filter(Ii):n.filter(Li):null}):null,t[21]=x?.description,t[22]=x?.title,t[23]=n,t[24]=S,t[25]=St,t[26]=tt,t[27]=G,t[28]=_?.description,t[29]=_?.title,t[30]=A,t[31]=pe):pe=t[31];let oe;t[32]!==V||t[33]!==he||t[34]!==Nt||t[35]!==v.enabled||t[36]!==F?(oe=v.enabled&&F.length>0&&he?i.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[i.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{Ut(!Nt)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":Nt?"Click to pause animation":"Click to play animation",children:Nt?i.jsxRuntimeExports.jsx(Me.Pause,{}):i.jsxRuntimeExports.jsx(Me.Play,{})}),i.jsxRuntimeExports.jsx(Re.Nr,{min:F[0],max:F[F.length-1],marks:he,step:null,defaultValue:F[F.length-1],value:F[V],onChangeComplete:Qt=>{M(F.indexOf(Qt))},onChange:Qt=>{M(F.indexOf(Qt))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,t[32]=V,t[33]=he,t[34]=Nt,t[35]=v.enabled,t[36]=F,t[37]=oe):oe=t[37];let le;t[38]!==x?.colorLegend||t[39]!==ft||t[40]!==et||t[41]!==W||t[42]!==n.length||t[43]!==wt||t[44]!==A?(le=wt&&n.length>0?i.jsxRuntimeExports.jsx(Ke.ColorLegendWithMouseOver,{width:A,colorDomain:ft,colors:W,colorLegendTitle:et,setSelectedColor:p,showNAColor:!1,className:x?.colorLegend}):null,t[38]=x?.colorLegend,t[39]=ft,t[40]=et,t[41]=W,t[42]=n.length,t[43]=wt,t[44]=A,t[45]=le):le=t[45];let ue;t[46]!==n.length?(ue=n.length===0&&i.jsxRuntimeExports.jsx(Qe.EmptyState,{}),t[46]=n.length,t[47]=ue):ue=t[47];let ae;t[48]!==jt||t[49]!==Y||t[50]!==Pt||t[51]!==st||t[52]!==D||t[53]!==x||t[54]!==ft||t[55]!==W||t[56]!==U||t[57]!==n||t[58]!==Bt||t[59]!==ht||t[60]!==b||t[61]!==V||t[62]!==d||t[63]!==I||t[64]!==E||t[65]!==H||t[66]!==c||t[67]!==s||t[68]!==j||t[69]!==pt||t[70]!==o||t[71]!==T||t[72]!==Ot||t[73]!==bt||t[74]!==Z||t[75]!==ct||t[76]!==K||t[77]!==N||t[78]!==It||t[79]!==k||t[80]!==vt||t[81]!==Yt||t[82]!==at||t[83]!==_||t[84]!==zt||t[85]!==h||t[86]!==$t||t[87]!==v.dateFormat||t[88]!==v.enabled||t[89]!==gt||t[90]!==z||t[91]!==mt||t[92]!==F||t[93]!==dt?(ae=$t&&h&&n.length>0?i.jsxRuntimeExports.jsx(jt,{hideAxisLine:b,data:at!==void 0?at==="total"?Pe.orderBy($e.ensureCompleteDataForStackedBarChart(n,v.dateFormat||"yyyy").filter(Qt=>v.enabled?Qt.date===je.format(new Date(F[V]),v.dateFormat||"yyyy"):Qt).filter(Qt=>ht?!Qt.size.every(Mi):Qt),Ci,[Yt||"asc"]):Pe.orderBy($e.ensureCompleteDataForStackedBarChart(n,v.dateFormat||"yyyy").filter(Qt=>v.enabled?Qt.date===je.format(new Date(F[V]),v.dateFormat||"yyyy"):Qt).filter(Qt=>ht?!Qt.size.every(Ei):Qt),Qt=>ee.checkIfNullOrUndefined(Qt.size[at])?-1/0:Qt.size[at],[Yt||"asc"]):$e.ensureCompleteDataForStackedBarChart(n,v.dateFormat||"yyyy").filter(Qt=>ht?!Qt.size.every(ki):Qt),barColors:W,width:$t,height:h,suffix:zt,prefix:bt,showValues:vt,barPadding:st,showTicks:k,leftMargin:E,rightMargin:K,topMargin:z,bottomMargin:D,truncateBy:mt,showLabels:It,tooltip:gt,onSeriesMouseOver:T,refValues:Z,maxValue:ee.checkIfNullOrUndefined(c)?Math.max(...n.map($i))<0?0:Math.max(...n.map(Ai)):c,minValue:ee.checkIfNullOrUndefined(s)?Math.min(...n.map(vi))>=0?0:Math.min(...n.map(yi)):s,onSeriesMouseClick:o,selectedColor:N,labelOrder:d,rtl:I==="he"||I==="ar",maxBarThickness:H,resetSelectionOnDoubleClick:ct,detailsOnClick:Bt,barAxisTitle:Pt,noOfTicks:pt,valueColor:dt,styles:_,classNames:x,colorDomain:ft,animate:Y===!0?{duration:.5,once:!0,amount:.5}:Y||{duration:0,once:!0,amount:0},precision:Ot,customLayers:U,naLabel:j}):null,t[48]=jt,t[49]=Y,t[50]=Pt,t[51]=st,t[52]=D,t[53]=x,t[54]=ft,t[55]=W,t[56]=U,t[57]=n,t[58]=Bt,t[59]=ht,t[60]=b,t[61]=V,t[62]=d,t[63]=I,t[64]=E,t[65]=H,t[66]=c,t[67]=s,t[68]=j,t[69]=pt,t[70]=o,t[71]=T,t[72]=Ot,t[73]=bt,t[74]=Z,t[75]=ct,t[76]=K,t[77]=N,t[78]=It,t[79]=k,t[80]=vt,t[81]=Yt,t[82]=at,t[83]=_,t[84]=zt,t[85]=h,t[86]=$t,t[87]=v.dateFormat,t[88]=v.enabled,t[89]=gt,t[90]=z,t[91]=mt,t[92]=F,t[93]=dt,t[94]=ae):ae=t[94];let re;t[95]!==ue||t[96]!==ae?(re=i.jsxRuntimeExports.jsxs(Le.GraphArea,{ref:w,children:[ue,ae]}),t[95]=ue,t[96]=ae,t[97]=re):re=t[97];let xe;t[98]!==le||t[99]!==re?(xe=i.jsxRuntimeExports.jsxs("div",{className:"grow flex flex-col justify-center gap-3 w-full",children:[le,re]}),t[98]=le,t[99]=re,t[100]=xe):xe=t[100];let de;t[101]!==x?.footnote||t[102]!==x?.source||t[103]!==X||t[104]!==Kt||t[105]!==_?.footnote||t[106]!==_?.source||t[107]!==A?(de=Kt||X?i.jsxRuntimeExports.jsx(Je.GraphFooter,{styles:{footnote:_?.footnote,source:_?.source},classNames:{footnote:x?.footnote,source:x?.source},sources:Kt,footNote:X,width:A}):null,t[101]=x?.footnote,t[102]=x?.source,t[103]=X,t[104]=Kt,t[105]=_?.footnote,t[106]=_?.source,t[107]=A,t[108]=de):de=t[108];let ce;return t[109]!==Ht||t[110]!==Tt||t[111]!==it||t[112]!==J||t[113]!==I||t[114]!==Vt||t[115]!==Lt||t[116]!==Q||t[117]!==ve||t[118]!==ye||t[119]!==pe||t[120]!==oe||t[121]!==xe||t[122]!==de||t[123]!==At||t[124]!==A?(ce=i.jsxRuntimeExports.jsxs(Le.GraphContainer,{className:ve,style:ye,id:it,ref:l,"aria-label":Ht,backgroundColor:Tt,theme:At,language:I,minHeight:Vt,width:A,height:J,relativeHeight:Q,padding:Lt,children:[pe,oe,xe,de]}),t[109]=Ht,t[110]=Tt,t[111]=it,t[112]=J,t[113]=I,t[114]=Vt,t[115]=Lt,t[116]=Q,t[117]=ve,t[118]=ye,t[119]=pe,t[120]=oe,t[121]=xe,t[122]=de,t[123]=At,t[124]=A,t[125]=ce):ce=t[125],ce}function yi(e){return Math.min(...e.size.filter(bi))}function bi(e){return!ee.checkIfNullOrUndefined(e)}function vi(e){return Math.min(...e.size.filter(wi))}function wi(e){return!ee.checkIfNullOrUndefined(e)}function Ai(e){return Math.max(...e.size.filter(ji))}function ji(e){return!ee.checkIfNullOrUndefined(e)}function $i(e){return Math.max(...e.size.filter(Oi))}function Oi(e){return!ee.checkIfNullOrUndefined(e)}function ki(e){return e==null}function Ei(e){return e==null}function Ci(e){return me.sum(e.size.filter(Ri))}function Ri(e){return!ee.checkIfNullOrUndefined(e)}function Mi(e){return e==null}function Li(e){return e!==void 0}function Ii(e){return e!==void 0}function Vi(e){return e.data}function Ni(e){return e!==void 0}function Di(e){return e.data}function Si(e,t){return e-t}function zi(e){return e.date}function Ti(e){const t=i.compilerRuntimeExports.c(133),{data:n,barColor:G,suffix:Jt,prefix:Kt,barPadding:St,showValues:Ct,showTicks:Ft,truncateBy:P,width:J,height:A,colorDomain:X,topMargin:ft,bottomMargin:et,leftMargin:Rt,rightMargin:q,showLabels:nt,tooltip:Mt,onSeriesMouseOver:Lt,refValues:qt,selectedColor:E,highlightedDataPoints:K,maxValue:z,minValue:D,onSeriesMouseClick:xt,labelOrder:Q,rtl:gt,maxBarThickness:T,minBarThickness:Z,resetSelectionOnDoubleClick:it,detailsOnClick:c,barAxisTitle:s,valueColor:o,noOfTicks:m,styles:u,classNames:f,animate:d,dimmedOpacity:ot,precision:L,customLayers:H,naLabel:Ht,trackColor:Wt,hideAxisLine:Bt}=e,Pt=ft===void 0?25:ft,lt=et===void 0?10:et,dt=Rt===void 0?100:Rt,_=q===void 0?40:q,x=ut.useRef(null);let r;t[0]!==d.amount||t[1]!==d.once?(r={once:d.once,amount:d.amount},t[0]=d.amount,t[1]=d.once,t[2]=r):r=t[2];const R=Te.useInView(x,r),[yt,y]=ut.useState(void 0),[C,Xt]=ut.useState(void 0),[at,Yt]=ut.useState(void 0),[rt,Gt]=ut.useState(void 0),W=s?Pt+25:Pt;let st;t[3]!==lt||t[4]!==dt||t[5]!==_||t[6]!==W?(st={top:W,bottom:lt,left:dt,right:_},t[3]=lt,t[4]=dt,t[5]=_,t[6]=W,t[7]=st):st=t[7];const k=st,mt=J-k.left-k.right,zt=A-k.top-k.bottom;let bt;if(t[8]!==n||t[9]!==Q){const h=new Set,g=n.map((Ut,Zt)=>{const F=Q?`${Ut.label}`:`${Zt}`;return h.add(F),{...Ut,id:F}}),Nt=Q?Q.filter(Ut=>!h.has(Ut)):[];bt=[...g,...Nt.map(Ki)],t[8]=n,t[9]=Q,t[10]=bt}else bt=t[10];const vt=bt;let wt;t[11]!==vt||t[12]!==Q?(wt=Q??vt.map(Ji),t[11]=vt,t[12]=Q,t[13]=wt):wt=t[13];const Tt=wt;let It,tt,S,I,Vt,At,ct,pt,ht,Y,Ot,kt,U,Et;if(t[14]!==d||t[15]!==s||t[16]!==G||t[17]!==Tt||t[18]!==St||t[19]!==f?.graphObjectValues||t[20]!==f?.xAxis?.gridLines||t[21]!==f?.xAxis?.labels||t[22]!==f?.xAxis?.title||t[23]!==f?.yAxis?.axis||t[24]!==f?.yAxis?.labels||t[25]!==X||t[26]!==H||t[27]!==n||t[28]!==vt||t[29]!==c||t[30]!==ot||t[31]!==zt||t[32]!==mt||t[33]!==A||t[34]!==Bt||t[35]!==K||t[36]!==R||t[37]!==k.bottom||t[38]!==k.left||t[39]!==k.top||t[40]!==T||t[41]!==z||t[42]!==Z||t[43]!==D||t[44]!==C||t[45]!==Ht||t[46]!==m||t[47]!==xt||t[48]!==Lt||t[49]!==L||t[50]!==Kt||t[51]!==qt||t[52]!==it||t[53]!==gt||t[54]!==E||t[55]!==nt||t[56]!==Ft||t[57]!==Ct||t[58]!==u?.graphObjectValues||t[59]!==u?.xAxis?.gridLines||t[60]!==u?.xAxis?.labels||t[61]!==u?.xAxis?.title||t[62]!==u?.yAxis?.axis||t[63]!==u?.yAxis?.labels||t[64]!==Jt||t[65]!==Pt||t[66]!==Wt||t[67]!==P||t[68]!==o||t[69]!==J){const h=Fe.linear().domain([D,z]).range([0,mt]).nice(),g=Oe.band().domain(Tt).range([0,Z?Math.max(zt,Z*Tt.length):T?Math.min(zt,T*Tt.length):zt]).paddingInner(St),Nt=h.ticks(m);tt=_t.motion.svg,ht=x,Y=`${J}px`,Ot=`${A}px`,kt=`0 0 ${J} ${A}`,U="ltr",Vt=`translate(${k.left},${k.top})`,At=Ft?i.jsxRuntimeExports.jsx(We.XTicksAndGridLines,{values:Nt.filter(Ui),x:Nt.filter(Yi).map(l=>h(l)),y1:0-Pt,y2:zt+k.bottom,styles:{gridLines:u?.xAxis?.gridLines,labels:u?.xAxis?.labels},classNames:{gridLines:f?.xAxis?.gridLines,labels:f?.xAxis?.labels},suffix:Jt,prefix:Kt,labelType:"secondary",showGridLines:!0,precision:L}):null;const Ut=mt/2,Zt=0-k.top+15,F=u?.xAxis?.title,V=f?.xAxis?.title;t[84]!==s||t[85]!==Ut||t[86]!==Zt||t[87]!==F||t[88]!==V?(ct=i.jsxRuntimeExports.jsx(De.AxisTitle,{x:Ut,y:Zt,style:F,className:V,text:s}),t[84]=s,t[85]=Ut,t[86]=Zt,t[87]=F,t[88]=V,t[89]=ct):ct=t[89],t[90]!==H?(pt=H.filter(Xi).map(Wi),t[90]=H,t[91]=pt):pt=t[91],It=Be.AnimatePresence,Et=vt.map(l=>ee.checkIfNullOrUndefined(g(l.id))?null:i.jsxRuntimeExports.jsxs(_t.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:E?l.color&&G[X.indexOf(l.color)]===E?1:ot:K.length!==0?K.indexOf(l.label)!==-1?.85:ot:.85},whileInView:{opacity:E?l.color&&G[X.indexOf(l.color)]===E?1:ot:K.length!==0?K.indexOf(l.label)!==-1?.85:ot:.85,transition:{duration:d.duration}}},initial:"initial",animate:R?"whileInView":"initial",exit:{opacity:0,transition:{duration:d.duration}},onMouseEnter:B=>{y(l),Gt(B.clientY),Yt(B.clientX),Lt?.(l)},onClick:()=>{(xt||c)&&(Ie.isEqual(C,l)&&it?(Xt(void 0),xt?.(void 0)):(Xt(l),xt?.(l)))},onMouseMove:B=>{y(l),Gt(B.clientY),Yt(B.clientX)},onMouseLeave:()=>{y(void 0),Yt(void 0),Gt(void 0),Lt?.(void 0)},children:[Wt&&i.jsxRuntimeExports.jsx(_t.motion.rect,{height:g.bandwidth(),variants:{initial:{width:mt,x:0,y:g(`${l.id}`),fill:Wt},whileInView:{width:mt,x:0,y:g(`${l.id}`),fill:Wt}},initial:"initial",animate:R?"whileInView":"initial",exit:{opacity:0,transition:{duration:d.duration}}}),l.size?i.jsxRuntimeExports.jsx(_t.motion.rect,{variants:{initial:{width:0,x:h(0),y:g(`${l.id}`),fill:n.filter(Hi).length===0?G[0]:l.color?G[X.indexOf(l.color)]:fe.Colors.gray},whileInView:{width:l.size>=0?h(l.size)-h(0):h(0)-h(l.size),x:l.size>=0?h(0):h(l.size),y:g(`${l.id}`),fill:n.filter(qi).length===0?G[0]:l.color?G[X.indexOf(l.color)]:fe.Colors.gray,transition:{duration:d.duration}}},initial:"initial",animate:R?"whileInView":"initial",exit:{width:0,x:h(0),transition:{duration:d.duration}},height:g.bandwidth()}):null,nt?i.jsxRuntimeExports.jsx(He.YAxesLabels,{value:`${l.label}`.length<P?`${l.label}`:`${`${l.label}`.substring(0,P)}...`,y:g(l.id)||0,x:(l.size||0)<0?h(0):0-k.left,width:(l.size||0)<0?J-h(0):h(0)+k.left,height:g.bandwidth(),alignment:l.size&&l.size<0?"left":"right",style:u?.yAxis?.labels,className:f?.yAxis?.labels,animate:d,isInView:R}):null,Ct?i.jsxRuntimeExports.jsx(_t.motion.text,{style:{textAnchor:l.size&&l.size<0?"end":"start",...u?.graphObjectValues||{}},className:i.mo("graph-value text-sm",!o&&G.length>1?" fill-primary-gray-600 dark:fill-primary-gray-300":"",f?.graphObjectValues),dx:l.size&&l.size<0?-5:5,dy:"0.33em",variants:{initial:{x:h(0),y:g(`${l.id}`)+g.bandwidth()/2,opacity:0,fill:o||(n.filter(Gi).length===0?G[0]:l.color?G[X.indexOf(l.color)]:fe.Colors.gray)},whileInView:{x:l.size?h(l.size):h(0),opacity:1,y:g(`${l.id}`)+g.bandwidth()/2,fill:o||(n.filter(Pi).length===0?G[0]:l.color?G[X.indexOf(l.color)]:fe.Colors.gray),transition:{duration:d.duration}}},initial:"initial",animate:R?"whileInView":"initial",exit:{opacity:0,transition:{duration:d.duration}},children:be.numberFormattingFunction(l.size,Ht,L,Kt,Jt)}):null]},l.label));const M=f?.yAxis?.axis;let N;t[92]!==M?(N={axis:M},t[92]=M,t[93]=N):N=t[93];const p=u?.yAxis?.axis;let w;t[94]!==p?(w={axis:p},t[94]=p,t[95]=w):w=t[95],S=i.jsxRuntimeExports.jsx(Ne.Axis,{hideAxisLine:Bt,x1:h(D<0?0:D),x2:h(D<0?0:D),y1:-2.5,y2:zt+k.bottom,classNames:N,styles:w}),I=qt?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:qt.map((l,B)=>i.jsxRuntimeExports.jsx(Se.RefLineX,{text:l.text,color:l.color,x:h(l.value),y1:0-k.top,y2:zt+k.bottom,textSide:h(l.value)>mt*.75||gt?"left":"right",classNames:l.classNames,styles:l.styles,animate:d,isInView:R},B))}):null,t[14]=d,t[15]=s,t[16]=G,t[17]=Tt,t[18]=St,t[19]=f?.graphObjectValues,t[20]=f?.xAxis?.gridLines,t[21]=f?.xAxis?.labels,t[22]=f?.xAxis?.title,t[23]=f?.yAxis?.axis,t[24]=f?.yAxis?.labels,t[25]=X,t[26]=H,t[27]=n,t[28]=vt,t[29]=c,t[30]=ot,t[31]=zt,t[32]=mt,t[33]=A,t[34]=Bt,t[35]=K,t[36]=R,t[37]=k.bottom,t[38]=k.left,t[39]=k.top,t[40]=T,t[41]=z,t[42]=Z,t[43]=D,t[44]=C,t[45]=Ht,t[46]=m,t[47]=xt,t[48]=Lt,t[49]=L,t[50]=Kt,t[51]=qt,t[52]=it,t[53]=gt,t[54]=E,t[55]=nt,t[56]=Ft,t[57]=Ct,t[58]=u?.graphObjectValues,t[59]=u?.xAxis?.gridLines,t[60]=u?.xAxis?.labels,t[61]=u?.xAxis?.title,t[62]=u?.yAxis?.axis,t[63]=u?.yAxis?.labels,t[64]=Jt,t[65]=Pt,t[66]=Wt,t[67]=P,t[68]=o,t[69]=J,t[70]=It,t[71]=tt,t[72]=S,t[73]=I,t[74]=Vt,t[75]=At,t[76]=ct,t[77]=pt,t[78]=ht,t[79]=Y,t[80]=Ot,t[81]=kt,t[82]=U,t[83]=Et}else It=t[70],tt=t[71],S=t[72],I=t[73],Vt=t[74],At=t[75],ct=t[76],pt=t[77],ht=t[78],Y=t[79],Ot=t[80],kt=t[81],U=t[82],Et=t[83];let v;t[96]!==It||t[97]!==S||t[98]!==I||t[99]!==Et?(v=i.jsxRuntimeExports.jsxs(It,{children:[Et,S,I]}),t[96]=It,t[97]=S,t[98]=I,t[99]=Et,t[100]=v):v=t[100];let j;t[101]!==H?(j=H.filter(Bi).map(Fi),t[101]=H,t[102]=j):j=t[102];let $;t[103]!==Vt||t[104]!==At||t[105]!==ct||t[106]!==pt||t[107]!==v||t[108]!==j?($=i.jsxRuntimeExports.jsxs("g",{transform:Vt,children:[At,ct,pt,v,j]}),t[103]=Vt,t[104]=At,t[105]=ct,t[106]=pt,t[107]=v,t[108]=j,t[109]=$):$=t[109];let b;t[110]!==tt||t[111]!==ht||t[112]!==Y||t[113]!==Ot||t[114]!==kt||t[115]!==U||t[116]!==$?(b=i.jsxRuntimeExports.jsx(tt,{ref:ht,width:Y,height:Ot,viewBox:kt,direction:U,children:$}),t[110]=tt,t[111]=ht,t[112]=Y,t[113]=Ot,t[114]=kt,t[115]=U,t[116]=$,t[117]=b):b=t[117];let jt;t[118]!==f?.tooltip||t[119]!==at||t[120]!==rt||t[121]!==yt||t[122]!==u?.tooltip||t[123]!==Mt?(jt=yt&&Mt&&at&&rt?i.jsxRuntimeExports.jsx(Ve.Tooltip,{data:yt,body:Mt,xPos:at,yPos:rt,backgroundStyle:u?.tooltip,className:f?.tooltip}):null,t[118]=f?.tooltip,t[119]=at,t[120]=rt,t[121]=yt,t[122]=u?.tooltip,t[123]=Mt,t[124]=jt):jt=t[124];let $t;t[125]!==f?.modal||t[126]!==c||t[127]!==C?($t=c&&C!==void 0?i.jsxRuntimeExports.jsx(ze.DetailsModal,{body:c,data:C,setData:Xt,className:f?.modal}):null,t[125]=f?.modal,t[126]=c,t[127]=C,t[128]=$t):$t=t[128];let O;return t[129]!==b||t[130]!==jt||t[131]!==$t?(O=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[b,jt,$t]}),t[129]=b,t[130]=jt,t[131]=$t,t[132]=O):O=t[132],O}function Fi(e){return e.layer}function Bi(e){return e.position==="after"}function Pi(e){return e.color}function Gi(e){return e.color}function qi(e){return e.color}function Hi(e){return e.color}function Wi(e){return e.layer}function Xi(e){return e.position==="before"}function Yi(e){return e!==0}function Ui(e){return e!==0}function Ji(e){return`${e.id}`}function Ki(e){return{id:e,label:e,color:null,size:null}}function Qi(e){const t=i.compilerRuntimeExports.c(142),{leftMargin:n,rightMargin:G,topMargin:Jt,bottomMargin:Kt,data:St,width:Ct,height:Ft,barColor:P,suffix:J,prefix:A,barPadding:X,showLabels:ft,showValues:et,showTicks:Rt,colorDomain:q,truncateBy:nt,tooltip:Mt,onSeriesMouseOver:Lt,refValues:qt,selectedColor:E,maxValue:K,minValue:z,highlightedDataPoints:D,onSeriesMouseClick:xt,labelOrder:Q,maxBarThickness:gt,minBarThickness:T,resetSelectionOnDoubleClick:Z,detailsOnClick:it,barAxisTitle:c,valueColor:s,noOfTicks:o,styles:m,classNames:u,dimmedOpacity:f,animate:d,precision:ot,customLayers:L,naLabel:H,trackColor:Ht,hideAxisLine:Wt}=e,Bt=n===void 0?20:n,Pt=G===void 0?20:G,lt=Jt===void 0?20:Jt,dt=Kt===void 0?25:Kt,_=ut.useRef(null);let x;t[0]!==d.amount||t[1]!==d.once?(x={once:d.once,amount:d.amount},t[0]=d.amount,t[1]=d.once,t[2]=x):x=t[2];const r=Te.useInView(_,x),R=c?Bt+30:Bt;let yt;t[3]!==dt||t[4]!==Pt||t[5]!==R||t[6]!==lt?(yt={top:lt,bottom:dt,left:R,right:Pt},t[3]=dt,t[4]=Pt,t[5]=R,t[6]=lt,t[7]=yt):yt=t[7];const y=yt,[C,Xt]=ut.useState(void 0),[at,Yt]=ut.useState(void 0),[rt,Gt]=ut.useState(void 0),[W,st]=ut.useState(void 0),k=Ct-y.left-y.right,mt=Ft-y.top-y.bottom;let zt;if(t[8]!==St||t[9]!==Q){const O=new Set,h=St.map((Nt,Ut)=>{const Zt=Q?`${Nt.label}`:`${Ut}`;return O.add(Zt),{...Nt,id:Zt}}),g=Q?Q.filter(Nt=>!O.has(Nt)):[];zt=[...h,...g.map(cs)],t[8]=St,t[9]=Q,t[10]=zt}else zt=t[10];const bt=zt;let vt;t[11]!==bt||t[12]!==Q?(vt=Q??bt.map(rs),t[11]=bt,t[12]=Q,t[13]=vt):vt=t[13];const wt=vt;let Tt,It,tt,S,I,Vt,At,ct,pt,ht,Y,Ot,kt,U;if(t[14]!==d||t[15]!==c||t[16]!==P||t[17]!==wt||t[18]!==X||t[19]!==u?.graphObjectValues||t[20]!==u?.xAxis?.axis||t[21]!==u?.xAxis?.labels||t[22]!==u?.yAxis?.gridLines||t[23]!==u?.yAxis?.labels||t[24]!==u?.yAxis?.title||t[25]!==q||t[26]!==L||t[27]!==St||t[28]!==bt||t[29]!==it||t[30]!==f||t[31]!==mt||t[32]!==k||t[33]!==Ft||t[34]!==Wt||t[35]!==D||t[36]!==r||t[37]!==Bt||t[38]!==y.bottom||t[39]!==y.left||t[40]!==y.right||t[41]!==y.top||t[42]!==gt||t[43]!==K||t[44]!==T||t[45]!==z||t[46]!==at||t[47]!==H||t[48]!==o||t[49]!==xt||t[50]!==Lt||t[51]!==ot||t[52]!==A||t[53]!==qt||t[54]!==Z||t[55]!==E||t[56]!==ft||t[57]!==Rt||t[58]!==et||t[59]!==m?.graphObjectValues||t[60]!==m?.xAxis?.axis||t[61]!==m?.xAxis?.labels||t[62]!==m?.yAxis?.gridLines||t[63]!==m?.yAxis?.labels||t[64]!==m?.yAxis?.title||t[65]!==J||t[66]!==Ht||t[67]!==nt||t[68]!==s||t[69]!==Ct){const O=Fe.linear().domain([z,K]).range([mt,0]).nice(),h=Oe.band().domain(wt).range([0,T?Math.max(k,T*wt.length):gt?Math.min(k,gt*wt.length):k]).paddingInner(X),g=O.ticks(o);It=_t.motion.svg,pt=_,ht=`${Ct}px`,Y=`${Ft}px`,Ot=`0 0 ${Ct} ${Ft}`,kt="ltr",S=`translate(${y.left},${y.top})`;let Nt;t[84]!==z||t[85]!==H||t[86]!==ot||t[87]!==A||t[88]!==Rt||t[89]!==J?(Nt=Rt?be.numberFormattingFunction(z<0?0:z,H,ot,A,J):void 0,t[84]=z,t[85]=H,t[86]=ot,t[87]=A,t[88]=Rt,t[89]=J,t[90]=Nt):Nt=t[90];const Ut=u?.xAxis?.axis,Zt=u?.yAxis?.labels;let F;t[91]!==Ut||t[92]!==Zt?(F={axis:Ut,label:Zt},t[91]=Ut,t[92]=Zt,t[93]=F):F=t[93];const V=m?.xAxis?.axis,M=m?.yAxis?.labels;let N;t[94]!==V||t[95]!==M?(N={axis:V,label:M},t[94]=V,t[95]=M,t[96]=N):N=t[96],I=i.jsxRuntimeExports.jsx(Ne.Axis,{hideAxisLine:Wt,y1:O(z<0?0:z),y2:O(z<0?0:z),x1:0-Bt,x2:k+y.right,label:Nt,labelPos:{x:0-Bt,dx:0,dy:K<0?"1em":-5,y:O(z<0?0:z)},classNames:F,styles:N}),Vt=Rt?i.jsxRuntimeExports.jsx(Xe.YTicksAndGridLines,{values:g.filter(as),y:g.filter(ls).map(a=>O(a)),x1:0-Bt,x2:k+y.right,styles:{gridLines:m?.yAxis?.gridLines,labels:m?.yAxis?.labels},classNames:{gridLines:u?.yAxis?.gridLines,labels:u?.yAxis?.labels},suffix:J,prefix:A,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:ot}):null;const p=0-Bt-15,w=mt/2,l=m?.yAxis?.title,B=u?.yAxis?.title;t[97]!==c||t[98]!==p||t[99]!==w||t[100]!==l||t[101]!==B?(At=i.jsxRuntimeExports.jsx(De.AxisTitle,{x:p,y:w,style:l,className:B,text:c,rotate90:!0}),t[97]=c,t[98]=p,t[99]=w,t[100]=l,t[101]=B,t[102]=At):At=t[102],t[103]!==L?(ct=L.filter(os).map(ns),t[103]=L,t[104]=ct):ct=t[104],Tt=Be.AnimatePresence,U=bt.map((a,ie)=>ee.checkIfNullOrUndefined(h(a.id))?null:i.jsxRuntimeExports.jsxs(_t.motion.g,{className:"undp-viz-g-with-hover",initial:"initial",animate:r?"whileInView":"initial",variants:{initial:{opacity:E?a.color&&P[q.indexOf(a.color)]===E?1:f:D.length!==0?D.indexOf(a.label)!==-1?.85:f:.85},whileInView:{opacity:E?a.color&&P[q.indexOf(a.color)]===E?1:f:D.length!==0?D.indexOf(a.label)!==-1?.85:f:.85,transition:{duration:d.duration}}},exit:{opacity:0,transition:{duration:d.duration}},onMouseEnter:ne=>{Xt(a),st(ne.clientY),Gt(ne.clientX),Lt?.(a)},onClick:()=>{(xt||it)&&(Ie.isEqual(at,a)&&Z?(Yt(void 0),xt?.(void 0)):(Yt(a),xt?.(a)))},onMouseMove:ne=>{Xt(a),st(ne.clientY),Gt(ne.clientX)},onMouseLeave:()=>{Xt(void 0),Gt(void 0),st(void 0),Lt?.(void 0)},children:[Ht&&i.jsxRuntimeExports.jsx(_t.motion.rect,{width:h.bandwidth(),variants:{initial:{height:mt,y:0,x:h(`${a.id}`),fill:Ht},whileInView:{height:mt,y:0,x:h(`${a.id}`),fill:Ht}},initial:"initial",animate:r?"whileInView":"initial",exit:{opacity:0,transition:{duration:d.duration}}}),a.size?i.jsxRuntimeExports.jsx(_t.motion.rect,{width:h.bandwidth(),initial:"initial",animate:r?"whileInView":"initial",variants:{initial:{height:0,x:h(`${a.id}`),y:O(0),fill:St.filter(ss).length===0?P[0]:a.color?P[q.indexOf(a.color)]:fe.Colors.gray},whileInView:{height:a.size?Math.abs(O(a.size)-O(0)):0,y:a.size&&a.size>0?O(a.size):O(0),x:h(`${a.id}`),fill:St.filter(is).length===0?P[0]:a.color?P[q.indexOf(a.color)]:fe.Colors.gray,transition:{duration:d.duration}}},exit:{height:0,y:O(0),transition:{duration:d.duration}}}):null,ft?i.jsxRuntimeExports.jsx(Ye.XAxesLabels,{value:`${a.label}`.length<nt?`${a.label}`:`${`${a.label}`.substring(0,nt)}...`,y:(a.size||0)<0?0:O(0)+5,x:h(`${a.id}`),width:h.bandwidth(),height:(a.size||0)<0?O(0)-5:y.bottom,style:m?.xAxis?.labels,className:u?.xAxis?.labels,alignment:(a.size||0)<0?"bottom":"top",animate:d,isInView:r}):null,et?i.jsxRuntimeExports.jsx(_t.motion.text,{style:{textAnchor:"middle",...m?.graphObjectValues||{}},className:i.mo("graph-value text-sm",!s&&P.length>1?"fill-primary-gray-600 dark:fill-primary-gray-300":"",u?.graphObjectValues),dy:a.size?a.size>=0?"-5px":"1em":"-5px",variants:{initial:{x:h(`${a.id}`)+h.bandwidth()/2,y:O(0),opacity:0,fill:s||(St.filter(es).length===0?P[0]:a.color?P[q.indexOf(a.color)]:fe.Colors.gray)},whileInView:{x:h(`${a.id}`)+h.bandwidth()/2,y:O(a.size||0),fill:s||(St.filter(ts).length===0?P[0]:a.color?P[q.indexOf(a.color)]:fe.Colors.gray),opacity:1,transition:{duration:d.duration}}},initial:"initial",animate:r?"whileInView":"initial",exit:{opacity:0,transition:{duration:d.duration}},children:be.numberFormattingFunction(a.size,H,ot,A,J)}):null]},a.label)),tt=qt?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:qt.map((a,ie)=>i.jsxRuntimeExports.jsx(Se.RefLineY,{text:a.text,color:a.color,y:O(a.value),x1:0-Bt,x2:k+y.right,classNames:a.classNames,styles:a.styles,animate:d,isInView:r},ie))}):null,t[14]=d,t[15]=c,t[16]=P,t[17]=wt,t[18]=X,t[19]=u?.graphObjectValues,t[20]=u?.xAxis?.axis,t[21]=u?.xAxis?.labels,t[22]=u?.yAxis?.gridLines,t[23]=u?.yAxis?.labels,t[24]=u?.yAxis?.title,t[25]=q,t[26]=L,t[27]=St,t[28]=bt,t[29]=it,t[30]=f,t[31]=mt,t[32]=k,t[33]=Ft,t[34]=Wt,t[35]=D,t[36]=r,t[37]=Bt,t[38]=y.bottom,t[39]=y.left,t[40]=y.right,t[41]=y.top,t[42]=gt,t[43]=K,t[44]=T,t[45]=z,t[46]=at,t[47]=H,t[48]=o,t[49]=xt,t[50]=Lt,t[51]=ot,t[52]=A,t[53]=qt,t[54]=Z,t[55]=E,t[56]=ft,t[57]=Rt,t[58]=et,t[59]=m?.graphObjectValues,t[60]=m?.xAxis?.axis,t[61]=m?.xAxis?.labels,t[62]=m?.yAxis?.gridLines,t[63]=m?.yAxis?.labels,t[64]=m?.yAxis?.title,t[65]=J,t[66]=Ht,t[67]=nt,t[68]=s,t[69]=Ct,t[70]=Tt,t[71]=It,t[72]=tt,t[73]=S,t[74]=I,t[75]=Vt,t[76]=At,t[77]=ct,t[78]=pt,t[79]=ht,t[80]=Y,t[81]=Ot,t[82]=kt,t[83]=U}else Tt=t[70],It=t[71],tt=t[72],S=t[73],I=t[74],Vt=t[75],At=t[76],ct=t[77],pt=t[78],ht=t[79],Y=t[80],Ot=t[81],kt=t[82],U=t[83];let Et;t[105]!==Tt||t[106]!==tt||t[107]!==U?(Et=i.jsxRuntimeExports.jsxs(Tt,{children:[U,tt]}),t[105]=Tt,t[106]=tt,t[107]=U,t[108]=Et):Et=t[108];let v;t[109]!==L?(v=L.filter(_i).map(Zi),t[109]=L,t[110]=v):v=t[110];let j;t[111]!==S||t[112]!==I||t[113]!==Vt||t[114]!==At||t[115]!==ct||t[116]!==Et||t[117]!==v?(j=i.jsxRuntimeExports.jsxs("g",{transform:S,children:[I,Vt,At,ct,Et,v]}),t[111]=S,t[112]=I,t[113]=Vt,t[114]=At,t[115]=ct,t[116]=Et,t[117]=v,t[118]=j):j=t[118];let $;t[119]!==It||t[120]!==pt||t[121]!==ht||t[122]!==Y||t[123]!==Ot||t[124]!==kt||t[125]!==j?($=i.jsxRuntimeExports.jsx(It,{ref:pt,width:ht,height:Y,viewBox:Ot,direction:kt,children:j}),t[119]=It,t[120]=pt,t[121]=ht,t[122]=Y,t[123]=Ot,t[124]=kt,t[125]=j,t[126]=$):$=t[126];let b;t[127]!==u?.tooltip||t[128]!==rt||t[129]!==W||t[130]!==C||t[131]!==m?.tooltip||t[132]!==Mt?(b=C&&Mt&&rt&&W?i.jsxRuntimeExports.jsx(Ve.Tooltip,{data:C,body:Mt,xPos:rt,yPos:W,backgroundStyle:m?.tooltip,className:u?.tooltip}):null,t[127]=u?.tooltip,t[128]=rt,t[129]=W,t[130]=C,t[131]=m?.tooltip,t[132]=Mt,t[133]=b):b=t[133];let jt;t[134]!==u?.modal||t[135]!==it||t[136]!==at?(jt=it&&at!==void 0?i.jsxRuntimeExports.jsx(ze.DetailsModal,{body:it,data:at,setData:Yt,className:u?.modal}):null,t[134]=u?.modal,t[135]=it,t[136]=at,t[137]=jt):jt=t[137];let $t;return t[138]!==$||t[139]!==b||t[140]!==jt?($t=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[$,b,jt]}),t[138]=$,t[139]=b,t[140]=jt,t[141]=$t):$t=t[141],$t}function Zi(e){return e.layer}function _i(e){return e.position==="after"}function ts(e){return e.color}function es(e){return e.color}function is(e){return e.color}function ss(e){return e.color}function ns(e){return e.layer}function os(e){return e.position==="before"}function ls(e){return e!==0}function as(e){return e!==0}function rs(e){return`${e.id}`}function cs(e){return{id:e,label:e,color:null,size:null}}function us(e){const t=i.compilerRuntimeExports.c(134),{data:n,graphTitle:G,colors:Jt,suffix:Kt,sources:St,prefix:Ct,graphDescription:Ft,barPadding:P,showValues:J,showTicks:A,truncateBy:X,height:ft,width:et,footNote:Rt,colorDomain:q,colorLegendTitle:nt,highlightedDataPoints:Mt,padding:Lt,backgroundColor:qt,topMargin:E,bottomMargin:K,leftMargin:z,rightMargin:D,showLabels:xt,relativeHeight:Q,tooltip:gt,onSeriesMouseOver:T,refValues:Z,showColorScale:it,graphID:c,maxValue:s,minValue:o,onSeriesMouseClick:m,graphDownload:u,dataDownload:f,sortData:d,labelOrder:ot,language:L,showNAColor:H,minHeight:Ht,theme:Wt,maxBarThickness:Bt,maxNumberOfBars:Pt,minBarThickness:lt,ariaLabel:dt,resetSelectionOnDoubleClick:_,detailsOnClick:x,barAxisTitle:r,noOfTicks:R,valueColor:yt,styles:y,classNames:C,filterNA:Xt,animate:at,dimmedOpacity:Yt,precision:rt,customLayers:Gt,timeline:W,naLabel:st,orientation:k,trackColor:mt,hideAxisLine:zt}=e,bt=Kt===void 0?"":Kt,vt=Ct===void 0?"":Ct,wt=P===void 0?.25:P,Tt=J===void 0?!0:J,It=A===void 0?!0:A,tt=X===void 0?999:X;let S;t[0]!==Mt?(S=Mt===void 0?[]:Mt,t[0]=Mt,t[1]=S):S=t[1];const I=S,Vt=qt===void 0?!1:qt,At=xt===void 0?!0:xt,ct=it===void 0?!0:it,pt=u===void 0?!1:u,ht=f===void 0?!1:f,Y=L===void 0?"en":L,Ot=H===void 0?!0:H,kt=Ht===void 0?0:Ht,U=Wt===void 0?"light":Wt,Et=_===void 0?!0:_,v=R===void 0?5:R,j=Xt===void 0?!0:Xt,$=at===void 0?!1:at,b=Yt===void 0?.3:Yt,jt=rt===void 0?2:rt;let $t;t[2]!==Gt?($t=Gt===void 0?[]:Gt,t[2]=Gt,t[3]=$t):$t=t[3];const O=$t;let h;t[4]!==W?(h=W===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:W,t[4]=W,t[5]=h):h=t[5];const g=h,Nt=st===void 0?"NA":st,Ut=k===void 0?"vertical":k,Zt=zt===void 0?!1:zt,F=Ut==="horizontal"?Ti:Qi,[V,M]=ut.useState(0),[N,p]=ut.useState(0),[w,l]=ut.useState(g.autoplay);let B;if(t[6]!==n||t[7]!==g.dateFormat){let te;t[9]!==g.dateFormat?(te=we=>je.parse(`${we.date}`,g.dateFormat||"yyyy",new Date).getTime(),t[9]=g.dateFormat,t[10]=te):te=t[10],B=[...new Set(n.filter(Cs).map(te))],B.sort(Es),t[6]=n,t[7]=g.dateFormat,t[8]=B}else B=t[8];const a=B,[ie,ne]=ut.useState(g.autoplay?0:a.length-1),[ge,Ae]=ut.useState(void 0),he=ut.useRef(null),ve=ut.useRef(null);let ye,pe;t[11]===Symbol.for("react.memo_cache_sentinel")?(ye=()=>{const te=new ResizeObserver(we=>{M(we[0].target.clientWidth||620),p(we[0].target.clientHeight||480)});return he.current&&te.observe(he.current),()=>te.disconnect()},pe=[],t[11]=ye,t[12]=pe):(ye=t[11],pe=t[12]),ut.useEffect(ye,pe);let oe,le;t[13]!==w||t[14]!==g.speed||t[15]!==a?(oe=()=>{const te=setInterval(()=>{ne(we=>we<a.length-1?we+1:0)},(g.speed||2)*1e3);return w||clearInterval(te),()=>clearInterval(te)},le=[a,w,g.speed],t[13]=w,t[14]=g.speed,t[15]=a,t[16]=oe,t[17]=le):(oe=t[16],le=t[17]),ut.useEffect(oe,le);const ue=g.dateFormat||"yyyy";let ae;t[18]!==ie||t[19]!==ue||t[20]!==g.showOnlyActiveDate||t[21]!==a?(ae=Re.getSliderMarks(a,ie,g.showOnlyActiveDate,ue),t[18]=ie,t[19]=ue,t[20]=g.showOnlyActiveDate,t[21]=a,t[22]=ae):ae=t[22];const re=ae,xe=C?.graphContainer,de=y?.graphContainer;let ce;t[23]!==C?.description||t[24]!==C?.title||t[25]!==n||t[26]!==ht||t[27]!==Ft||t[28]!==pt||t[29]!==G||t[30]!==y?.description||t[31]!==y?.title||t[32]!==et?(ce=G||Ft||pt||ht?i.jsxRuntimeExports.jsx(Ue.GraphHeader,{styles:{title:y?.title,description:y?.description},classNames:{title:C?.title,description:C?.description},graphTitle:G,graphDescription:Ft,width:et,graphDownload:pt?ve:void 0,dataDownload:ht?n.map(ks).filter(Os).length>0?n.map($s).filter(js):n.filter(As):null}):null,t[23]=C?.description,t[24]=C?.title,t[25]=n,t[26]=ht,t[27]=Ft,t[28]=pt,t[29]=G,t[30]=y?.description,t[31]=y?.title,t[32]=et,t[33]=ce):ce=t[33];let Qt;t[34]!==ie||t[35]!==re||t[36]!==w||t[37]!==g.enabled||t[38]!==a?(Qt=g.enabled&&a.length>0&&re?i.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center pb-4",dir:"ltr",children:[i.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{l(!w)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":w?"Click to pause animation":"Click to play animation",children:w?i.jsxRuntimeExports.jsx(Me.Pause,{}):i.jsxRuntimeExports.jsx(Me.Play,{})}),i.jsxRuntimeExports.jsx(Re.Nr,{min:a[0],max:a[a.length-1],marks:re,step:null,defaultValue:a[a.length-1],value:a[ie],onChangeComplete:te=>{ne(a.indexOf(te))},onChange:te=>{ne(a.indexOf(te))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,t[34]=ie,t[35]=re,t[36]=w,t[37]=g.enabled,t[38]=a,t[39]=Qt):Qt=t[39];let Dt;t[40]!==C?.colorLegend||t[41]!==q||t[42]!==nt||t[43]!==Jt||t[44]!==n||t[45]!==ct||t[46]!==Ot||t[47]!==U||t[48]!==et?(Dt=ct&&n.filter(ws).length!==0&&n.length>0?i.jsxRuntimeExports.jsx(Ke.ColorLegendWithMouseOver,{width:et,colorLegendTitle:nt,colors:Jt||fe.Colors[U].categoricalColors.colors,colorDomain:q||Ze.uniqBy(n,"color",!0),setSelectedColor:Ae,showNAColor:Ot,className:C?.colorLegend}):null,t[40]=C?.colorLegend,t[41]=q,t[42]=nt,t[43]=Jt,t[44]=n,t[45]=ct,t[46]=Ot,t[47]=U,t[48]=et,t[49]=Dt):Dt=t[49];let se;t[50]!==n.length?(se=n.length===0&&i.jsxRuntimeExports.jsx(Qe.EmptyState,{}),t[50]=n.length,t[51]=se):se=t[51];let ke;t[52]!==F||t[53]!==$||t[54]!==r||t[55]!==wt||t[56]!==K||t[57]!==C||t[58]!==q||t[59]!==Jt||t[60]!==O||t[61]!==n||t[62]!==x||t[63]!==b||t[64]!==j||t[65]!==Zt||t[66]!==I||t[67]!==ie||t[68]!==ot||t[69]!==Y||t[70]!==z||t[71]!==Bt||t[72]!==Pt||t[73]!==s||t[74]!==lt||t[75]!==o||t[76]!==Nt||t[77]!==v||t[78]!==m||t[79]!==T||t[80]!==Ut||t[81]!==jt||t[82]!==vt||t[83]!==Z||t[84]!==Et||t[85]!==D||t[86]!==ge||t[87]!==At||t[88]!==It||t[89]!==Tt||t[90]!==d||t[91]!==y||t[92]!==bt||t[93]!==N||t[94]!==V||t[95]!==U||t[96]!==g.dateFormat||t[97]!==g.enabled||t[98]!==gt||t[99]!==E||t[100]!==mt||t[101]!==tt||t[102]!==a||t[103]!==yt?(ke=V&&N&&n.length>0?i.jsxRuntimeExports.jsx(F,{hideAxisLine:Zt,data:d?Pe.orderBy($e.ensureCompleteDataForBarChart(n,g.dateFormat||"yyyy").filter(te=>g.enabled?te.date===je.format(new Date(a[ie]),g.dateFormat||"yyyy"):te).filter(te=>j?!ee.checkIfNullOrUndefined(te.size):te),[te=>te.size===void 0?d==="asc"?(Ut==="horizontal"?1:-1)*(1/0):(Ut==="horizontal"?-1:1)*(1/0):te.size],[d]).filter((te,we)=>Pt?we<Pt:!0):$e.ensureCompleteDataForBarChart(n,g.dateFormat||"yyyy").filter(te=>g.enabled?te.date===je.format(new Date(a[ie]),g.dateFormat||"yyyy"):te).filter(te=>j?!ee.checkIfNullOrUndefined(te.size):te).filter((te,we)=>Pt?we<Pt:!0),barColor:n.filter(vs).length===0?Jt?[Jt]:[fe.Colors.primaryColors["blue-600"]]:Jt||fe.Colors[U].categoricalColors.colors,colorDomain:n.filter(bs).length===0?[]:q||Ze.uniqBy(n,"color",!0),selectedColor:ge,trackColor:mt,width:V,height:N,suffix:bt,prefix:vt,barPadding:wt,showValues:Tt,showTicks:It,leftMargin:z,rightMargin:D,topMargin:E,bottomMargin:K,truncateBy:tt,showLabels:At,tooltip:gt,onSeriesMouseOver:T,refValues:Z,maxValue:ee.checkIfNullOrUndefined(s)?Math.max(...n.filter(ys).map(gs))<0?0:Math.max(...n.filter(fs).map(hs)):s,minValue:ee.checkIfNullOrUndefined(o)?Math.min(...n.filter(ps).map(ms))>=0?0:Math.min(...n.filter(ds).map(xs)):o,highlightedDataPoints:I,onSeriesMouseClick:m,labelOrder:ot,rtl:Y==="he"||Y==="ar",maxBarThickness:Bt,minBarThickness:lt,resetSelectionOnDoubleClick:Et,detailsOnClick:x,barAxisTitle:r,noOfTicks:v,valueColor:yt,classNames:C,styles:y,animate:$===!0?{duration:.5,once:!0,amount:.5}:$||{duration:0,once:!0,amount:0},dimmedOpacity:b,precision:jt,customLayers:O,naLabel:Nt}):null,t[52]=F,t[53]=$,t[54]=r,t[55]=wt,t[56]=K,t[57]=C,t[58]=q,t[59]=Jt,t[60]=O,t[61]=n,t[62]=x,t[63]=b,t[64]=j,t[65]=Zt,t[66]=I,t[67]=ie,t[68]=ot,t[69]=Y,t[70]=z,t[71]=Bt,t[72]=Pt,t[73]=s,t[74]=lt,t[75]=o,t[76]=Nt,t[77]=v,t[78]=m,t[79]=T,t[80]=Ut,t[81]=jt,t[82]=vt,t[83]=Z,t[84]=Et,t[85]=D,t[86]=ge,t[87]=At,t[88]=It,t[89]=Tt,t[90]=d,t[91]=y,t[92]=bt,t[93]=N,t[94]=V,t[95]=U,t[96]=g.dateFormat,t[97]=g.enabled,t[98]=gt,t[99]=E,t[100]=mt,t[101]=tt,t[102]=a,t[103]=yt,t[104]=ke):ke=t[104];let Ee;t[105]!==se||t[106]!==ke?(Ee=i.jsxRuntimeExports.jsxs(Le.GraphArea,{ref:he,children:[se,ke]}),t[105]=se,t[106]=ke,t[107]=Ee):Ee=t[107];let Ce;t[108]!==C?.footnote||t[109]!==C?.source||t[110]!==Rt||t[111]!==St||t[112]!==y?.footnote||t[113]!==y?.source||t[114]!==et?(Ce=St||Rt?i.jsxRuntimeExports.jsx(Je.GraphFooter,{sources:St,footNote:Rt,width:et,styles:{footnote:y?.footnote,source:y?.source},classNames:{footnote:C?.footnote,source:C?.source}}):null,t[108]=C?.footnote,t[109]=C?.source,t[110]=Rt,t[111]=St,t[112]=y?.footnote,t[113]=y?.source,t[114]=et,t[115]=Ce):Ce=t[115];let Ge;return t[116]!==dt||t[117]!==Vt||t[118]!==c||t[119]!==ft||t[120]!==Y||t[121]!==kt||t[122]!==Lt||t[123]!==Q||t[124]!==xe||t[125]!==de||t[126]!==ce||t[127]!==Qt||t[128]!==Dt||t[129]!==Ee||t[130]!==Ce||t[131]!==U||t[132]!==et?(Ge=i.jsxRuntimeExports.jsxs(Le.GraphContainer,{className:xe,style:de,id:c,ref:ve,"aria-label":dt,backgroundColor:Vt,theme:U,language:Y,minHeight:kt,width:et,height:ft,relativeHeight:Q,padding:Lt,children:[ce,Qt,Dt,Ee,Ce]}),t[116]=dt,t[117]=Vt,t[118]=c,t[119]=ft,t[120]=Y,t[121]=kt,t[122]=Lt,t[123]=Q,t[124]=xe,t[125]=de,t[126]=ce,t[127]=Qt,t[128]=Dt,t[129]=Ee,t[130]=Ce,t[131]=U,t[132]=et,t[133]=Ge):Ge=t[133],Ge}function xs(e){return e.size}function ds(e){return!ee.checkIfNullOrUndefined(e.size)}function ms(e){return e.size}function ps(e){return!ee.checkIfNullOrUndefined(e.size)}function hs(e){return e.size}function fs(e){return!ee.checkIfNullOrUndefined(e.size)}function gs(e){return e.size}function ys(e){return!ee.checkIfNullOrUndefined(e.size)}function bs(e){return e.color}function vs(e){return e.color}function ws(e){return e.color}function As(e){return e!==void 0}function js(e){return e!==void 0}function $s(e){return e.data}function Os(e){return e!==void 0}function ks(e){return e.data}function Es(e,t){return e-t}function Cs(e){return e.date}function Rs(e){const t=i.compilerRuntimeExports.c(130),{data:n,barColors:G,barPadding:Jt,showTicks:Kt,topMargin:St,bottomMargin:Ct,leftMargin:Ft,rightMargin:P,truncateBy:J,width:A,height:X,tooltip:ft,onSeriesMouseOver:et,showLabels:Rt,suffix:q,prefix:nt,showValues:Mt,refValues:Lt,maxValue:qt,onSeriesMouseClick:E,selectedColor:K,rtl:z,labelOrder:D,maxBarThickness:xt,minBarThickness:Q,resetSelectionOnDoubleClick:gt,detailsOnClick:T,barAxisTitle:Z,valueColor:it,noOfTicks:c,styles:s,classNames:o,animate:m,colorDomain:u,precision:f,customLayers:d,naLabel:ot,hideAxisLine:L}=e,H=St===void 0?25:St,Ht=Ct===void 0?10:Ct,Wt=Ft===void 0?100:Ft,Bt=P===void 0?40:P,Pt=ut.useRef(null);let lt;t[0]!==m.amount||t[1]!==m.once?(lt={once:m.once,amount:m.amount},t[0]=m.amount,t[1]=m.once,t[2]=lt):lt=t[2];const dt=Te.useInView(Pt,lt),_=Z?H+25:H;let x;t[3]!==Ht||t[4]!==Wt||t[5]!==Bt||t[6]!==_?(x={top:_,bottom:Ht,left:Wt,right:Bt},t[3]=Ht,t[4]=Wt,t[5]=Bt,t[6]=_,t[7]=x):x=t[7];const r=x,[R,yt]=ut.useState(void 0),[y,C]=ut.useState(void 0),[Xt,at]=ut.useState(void 0),[Yt,rt]=ut.useState(void 0),Gt=A-r.left-r.right,W=X-r.top-r.bottom;let st;if(t[8]!==n||t[9]!==D){const b=new Set,jt=n.map((h,g)=>{const Nt=D?`${h.label}`:`${g}`;return b.add(Nt),{...h,id:Nt}}),$t=D?D.filter(h=>!b.has(h)):[];let O;t[11]!==n[0]?(O=h=>({id:h,label:h,size:Array(n[0].size.length).fill(null)}),t[11]=n[0],t[12]=O):O=t[12],st=[...jt,...$t.map(O)],t[8]=n,t[9]=D,t[10]=st}else st=t[10];const k=st;let mt;t[13]!==k||t[14]!==D?(mt=D??k.map(Ts),t[13]=k,t[14]=D,t[15]=mt):mt=t[15];const zt=mt;let bt,vt,wt,Tt,It,tt,S,I,Vt,At,ct,pt,ht,Y;if(t[16]!==m||t[17]!==Z||t[18]!==G||t[19]!==zt||t[20]!==Jt||t[21]!==o?.graphObjectValues||t[22]!==o?.xAxis?.gridLines||t[23]!==o?.xAxis?.labels||t[24]!==o?.xAxis?.title||t[25]!==o?.yAxis?.axis||t[26]!==o?.yAxis?.labels||t[27]!==u||t[28]!==d||t[29]!==k||t[30]!==T||t[31]!==W||t[32]!==Gt||t[33]!==X||t[34]!==L||t[35]!==dt||t[36]!==r.bottom||t[37]!==r.left||t[38]!==r.top||t[39]!==xt||t[40]!==qt||t[41]!==Q||t[42]!==y||t[43]!==ot||t[44]!==c||t[45]!==E||t[46]!==et||t[47]!==f||t[48]!==nt||t[49]!==Lt||t[50]!==gt||t[51]!==z||t[52]!==K||t[53]!==Rt||t[54]!==Kt||t[55]!==Mt||t[56]!==s?.graphObjectValues||t[57]!==s?.xAxis?.gridLines||t[58]!==s?.xAxis?.labels||t[59]!==s?.xAxis?.title||t[60]!==s?.yAxis?.axis||t[61]!==s?.yAxis?.labels||t[62]!==q||t[63]!==H||t[64]!==J||t[65]!==it||t[66]!==A){const b=Fe.linear().domain([0,qt]).range([0,Gt]).nice(),jt=Oe.band().domain(zt).range([0,Q?Math.max(W,Q*zt.length):xt?Math.min(W,xt*zt.length):W]).paddingInner(Jt),$t=b.ticks(c);vt=_t.motion.svg,Vt=Pt,At=`${A}px`,ct=`${X}px`,pt=`0 0 ${A} ${X}`,ht="ltr",It=`translate(${r.left},${r.top})`,tt=Kt?i.jsxRuntimeExports.jsx(We.XTicksAndGridLines,{values:$t.filter(zs),x:$t.filter(Ss).map(M=>b(M)),y1:0-H,y2:W+r.bottom,styles:{gridLines:s?.xAxis?.gridLines,labels:s?.xAxis?.labels},classNames:{gridLines:o?.xAxis?.gridLines,labels:o?.xAxis?.labels},suffix:q,prefix:nt,labelType:"secondary",showGridLines:!0,precision:f}):null;const O=Gt/2,h=0-r.top+15,g=s?.xAxis?.title,Nt=o?.xAxis?.title;t[81]!==Z||t[82]!==O||t[83]!==h||t[84]!==g||t[85]!==Nt?(S=i.jsxRuntimeExports.jsx(De.AxisTitle,{x:O,y:h,style:g,className:Nt,text:Z}),t[81]=Z,t[82]=O,t[83]=h,t[84]=g,t[85]=Nt,t[86]=S):S=t[86],t[87]!==d?(I=d.filter(Ds).map(Ns),t[87]=d,t[88]=I):I=t[88],bt=Be.AnimatePresence,Y=k.map(M=>ee.checkIfNullOrUndefined(jt(M.id))?null:i.jsxRuntimeExports.jsxs(_t.motion.g,{className:"undp-viz-low-opacity undp-viz-g-with-hover",variants:{initial:{x:0,y:jt(`${M.id}`)},whileInView:{x:0,y:jt(`${M.id}`),transition:{duration:m.duration}}},initial:"initial",animate:dt?"whileInView":"initial",exit:{opacity:0,transition:{duration:m.duration}},children:[M.size.map((N,p)=>i.jsxRuntimeExports.jsxs(_t.motion.g,{opacity:K?G[p]===K?1:.3:1,onMouseEnter:w=>{yt({...M,sizeIndex:p}),rt(w.clientY),at(w.clientX),et?.({...M,sizeIndex:p})},onMouseMove:w=>{yt({...M,sizeIndex:p}),rt(w.clientY),at(w.clientX)},onMouseLeave:()=>{yt(void 0),at(void 0),rt(void 0),et?.(void 0)},onClick:()=>{(E||T)&&(Ie.isEqual(y,{...M,sizeIndex:p})&>?(C(void 0),E?.(void 0)):(C({...M,sizeIndex:p}),E&&E({...M,sizeIndex:p})))},children:[N?i.jsxRuntimeExports.jsx(_t.motion.rect,{y:0,style:{fill:G[p]},height:jt.bandwidth(),exit:{width:0,x:b(0),transition:{duration:m.duration}},variants:{initial:{width:0,x:b(0),fill:G[p]},whileInView:{width:b(N||0),x:b(p===0?0:me.sum(M.size.filter((w,l)=>l<p&&w))),fill:G[p],transition:{duration:m.duration}}},initial:"initial",animate:dt?"whileInView":"initial"},p):null,Mt?i.jsxRuntimeExports.jsx(_t.motion.text,{y:jt.bandwidth()/2,style:{textAnchor:"middle",...s?.graphObjectValues||{}},dy:"0.33em",className:i.mo("graph-value text-sm",o?.graphObjectValues),exit:{opacity:0,transition:{duration:m.duration}},variants:{initial:{x:b(0),opacity:0,fill:qe.getTextColorBasedOnBgColor(G[p])},whileInView:{x:b(p===0?0:me.sum(M.size.filter((w,l)=>l<p&&w)))+b(N||0)/2,opacity:N&&b(N)/be.numberFormattingFunction(N,ot,f,nt,q).length>12?1:0,fill:qe.getTextColorBasedOnBgColor(G[p]),transition:{duration:m.duration}}},initial:"initial",animate:dt?"whileInView":"initial",children:be.numberFormattingFunction(N,ot,f,nt,q)}):null]},`${M.label}-${u[p]||p}`)),Rt?i.jsxRuntimeExports.jsx(He.YAxesLabels,{value:`${M.label}`.length<J?`${M.label}`:`${`${M.label}`.substring(0,J)}...`,y:0,x:0-r.left,width:0+r.left,height:jt.bandwidth(),style:s?.yAxis?.labels,className:o?.yAxis?.labels,animate:m,isInView:dt}):null,Mt?i.jsxRuntimeExports.jsx(_t.motion.text,{className:i.mo("graph-value graph-value-total text-sm",it?"":" fill-primary-gray-700 dark:fill-primary-gray-300",o?.graphObjectValues),style:{...it?{fill:it}:{},textAnchor:"start",...s?.graphObjectValues||{}},y:jt.bandwidth()/2,dx:5,dy:"0.33em",variants:{initial:{x:b(0),opacity:0,...it?{fill:it}:{}},whileInView:{x:b(me.sum(M.size.map(Vs))),opacity:1,...it?{fill:it}:{},transition:{duration:m.duration}}},exit:{opacity:0,transition:{duration:m.duration}},initial:"initial",animate:dt?"whileInView":"initial",children:be.numberFormattingFunction(me.sum(M.size.filter(Is)),ot,f,nt,q)}):null]},M.label));const Ut=o?.yAxis?.axis;let Zt;t[89]!==Ut?(Zt={axis:Ut},t[89]=Ut,t[90]=Zt):Zt=t[90];const F=s?.yAxis?.axis;let V;t[91]!==F?(V={axis:F},t[91]=F,t[92]=V):V=t[92],wt=i.jsxRuntimeExports.jsx(Ne.Axis,{hideAxisLine:L,x1:b(0),x2:b(0),y1:-2.5,y2:W+r.bottom,classNames:Zt,styles:V}),Tt=Lt?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:Lt.map((M,N)=>i.jsxRuntimeExports.jsx(Se.RefLineX,{text:M.text,color:M.color,x:b(M.value),y1:0-r.top,y2:W+r.bottom,textSide:b(M.value)>Gt*.75||z?"left":"right",classNames:M.classNames,styles:M.styles,animate:m,isInView:dt},N))}):null,t[16]=m,t[17]=Z,t[18]=G,t[19]=zt,t[20]=Jt,t[21]=o?.graphObjectValues,t[22]=o?.xAxis?.gridLines,t[23]=o?.xAxis?.labels,t[24]=o?.xAxis?.title,t[25]=o?.yAxis?.axis,t[26]=o?.yAxis?.labels,t[27]=u,t[28]=d,t[29]=k,t[30]=T,t[31]=W,t[32]=Gt,t[33]=X,t[34]=L,t[35]=dt,t[36]=r.bottom,t[37]=r.left,t[38]=r.top,t[39]=xt,t[40]=qt,t[41]=Q,t[42]=y,t[43]=ot,t[44]=c,t[45]=E,t[46]=et,t[47]=f,t[48]=nt,t[49]=Lt,t[50]=gt,t[51]=z,t[52]=K,t[53]=Rt,t[54]=Kt,t[55]=Mt,t[56]=s?.graphObjectValues,t[57]=s?.xAxis?.gridLines,t[58]=s?.xAxis?.labels,t[59]=s?.xAxis?.title,t[60]=s?.yAxis?.axis,t[61]=s?.yAxis?.labels,t[62]=q,t[63]=H,t[64]=J,t[65]=it,t[66]=A,t[67]=bt,t[68]=vt,t[69]=wt,t[70]=Tt,t[71]=It,t[72]=tt,t[73]=S,t[74]=I,t[75]=Vt,t[76]=At,t[77]=ct,t[78]=pt,t[79]=ht,t[80]=Y}else bt=t[67],vt=t[68],wt=t[69],Tt=t[70],It=t[71],tt=t[72],S=t[73],I=t[74],Vt=t[75],At=t[76],ct=t[77],pt=t[78],ht=t[79],Y=t[80];let Ot;t[93]!==bt||t[94]!==wt||t[95]!==Tt||t[96]!==Y?(Ot=i.jsxRuntimeExports.jsxs(bt,{children:[Y,wt,Tt]}),t[93]=bt,t[94]=wt,t[95]=Tt,t[96]=Y,t[97]=Ot):Ot=t[97];let kt;t[98]!==d?(kt=d.filter(Ls).map(Ms),t[98]=d,t[99]=kt):kt=t[99];let U;t[100]!==It||t[101]!==tt||t[102]!==S||t[103]!==I||t[104]!==Ot||t[105]!==kt?(U=i.jsxRuntimeExports.jsxs("g",{transform:It,children:[tt,S,I,Ot,kt]}),t[100]=It,t[101]=tt,t[102]=S,t[103]=I,t[104]=Ot,t[105]=kt,t[106]=U):U=t[106];let Et;t[107]!==vt||t[108]!==Vt||t[109]!==At||t[110]!==ct||t[111]!==pt||t[112]!==ht||t[113]!==U?(Et=i.jsxRuntimeExports.jsx(vt,{ref:Vt,width:At,height:ct,viewBox:pt,direction:ht,children:U}),t[107]=vt,t[108]=Vt,t[109]=At,t[110]=ct,t[111]=pt,t[112]=ht,t[113]=U,t[114]=Et):Et=t[114];let v;t[115]!==o?.tooltip||t[116]!==Xt||t[117]!==Yt||t[118]!==R||t[119]!==s?.tooltip||t[120]!==ft?(v=R&&ft&&Xt&&Yt?i.jsxRuntimeExports.jsx(Ve.Tooltip,{data:R,body:ft,xPos:Xt,yPos:Yt,backgroundStyle:s?.tooltip,className:o?.tooltip}):null,t[115]=o?.tooltip,t[116]=Xt,t[117]=Yt,t[118]=R,t[119]=s?.tooltip,t[120]=ft,t[121]=v):v=t[121];let j;t[122]!==o?.modal||t[123]!==T||t[124]!==y?(j=T&&y!==void 0?i.jsxRuntimeExports.jsx(ze.DetailsModal,{body:T,data:y,setData:C,className:o?.modal}):null,t[122]=o?.modal,t[123]=T,t[124]=y,t[125]=j):j=t[125];let $;return t[126]!==Et||t[127]!==v||t[128]!==j?($=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[Et,v,j]}),t[126]=Et,t[127]=v,t[128]=j,t[129]=$):$=t[129],$}function Ms(e){return e.layer}function Ls(e){return e.position==="after"}function Is(e){return e}function Vs(e){return e||0}function Ns(e){return e.layer}function Ds(e){return e.position==="before"}function Ss(e){return e!==0}function zs(e){return e!==0}function Ts(e){return`${e.id}`}function Fs(e){const t=i.compilerRuntimeExports.c(138),{data:n,leftMargin:G,rightMargin:Jt,topMargin:Kt,bottomMargin:St,width:Ct,height:Ft,barColors:P,barPadding:J,showLabels:A,showTicks:X,truncateBy:ft,tooltip:et,onSeriesMouseOver:Rt,suffix:q,prefix:nt,showValues:Mt,refValues:Lt,maxValue:qt,onSeriesMouseClick:E,selectedColor:K,labelOrder:z,maxBarThickness:D,minBarThickness:xt,resetSelectionOnDoubleClick:Q,detailsOnClick:gt,barAxisTitle:T,valueColor:Z,noOfTicks:it,styles:c,classNames:s,animate:o,colorDomain:m,precision:u,customLayers:f,naLabel:d,hideAxisLine:ot}=e,L=G===void 0?20:G,H=Jt===void 0?20:Jt,Ht=Kt===void 0?20:Kt,Wt=St===void 0?25:St,Bt=ut.useRef(null);let Pt;t[0]!==o.amount||t[1]!==o.once?(Pt={once:o.once,amount:o.amount},t[0]=o.amount,t[1]=o.once,t[2]=Pt):Pt=t[2];const lt=Te.useInView(Bt,Pt),dt=T?L+30:L;let _;t[3]!==Wt||t[4]!==H||t[5]!==dt||t[6]!==Ht?(_={top:Ht,bottom:Wt,left:dt,right:H},t[3]=Wt,t[4]=H,t[5]=dt,t[6]=Ht,t[7]=_):_=t[7];const x=_,[r,R]=ut.useState(void 0),[yt,y]=ut.useState(void 0),[C,Xt]=ut.useState(void 0),[at,Yt]=ut.useState(void 0),rt=Ct-x.left-x.right,Gt=Ft-x.top-x.bottom;let W;if(t[8]!==n||t[9]!==z){const $=new Set,b=n.map((O,h)=>{const g=z?`${O.label}`:`${h}`;return $.add(g),{...O,id:g}}),jt=z?z.filter(O=>!$.has(O)):[];let $t;t[11]!==n[0]?($t=O=>({id:O,label:O,size:Array(n[0].size.length).fill(null)}),t[11]=n[0],t[12]=$t):$t=t[12],W=[...b,...jt.map($t)],t[8]=n,t[9]=z,t[10]=W}else W=t[10];const st=W;let k;t[13]!==st||t[14]!==z?(k=z??st.map(Us),t[13]=st,t[14]=z,t[15]=k):k=t[15];const mt=k;let zt,bt,vt,wt,Tt,It,tt,S,I,Vt,At,ct,pt,ht;if(t[16]!==o||t[17]!==T||t[18]!==P||t[19]!==mt||t[20]!==J||t[21]!==s?.graphObjectValues||t[22]!==s?.xAxis?.axis||t[23]!==s?.xAxis?.labels||t[24]!==s?.yAxis?.gridLines||t[25]!==s?.yAxis?.labels||t[26]!==s?.yAxis?.title||t[27]!==m||t[28]!==f||t[29]!==st||t[30]!==gt||t[31]!==Gt||t[32]!==rt||t[33]!==Ft||t[34]!==ot||t[35]!==lt||t[36]!==L||t[37]!==x.bottom||t[38]!==x.left||t[39]!==x.right||t[40]!==x.top||t[41]!==D||t[42]!==qt||t[43]!==xt||t[44]!==yt||t[45]!==d||t[46]!==it||t[47]!==E||t[48]!==Rt||t[49]!==u||t[50]!==nt||t[51]!==Lt||t[52]!==Q||t[53]!==K||t[54]!==A||t[55]!==X||t[56]!==Mt||t[57]!==c?.graphObjectValues||t[58]!==c?.xAxis?.axis||t[59]!==c?.xAxis?.labels||t[60]!==c?.yAxis?.gridLines||t[61]!==c?.yAxis?.labels||t[62]!==c?.yAxis?.title||t[63]!==q||t[64]!==ft||t[65]!==Z||t[66]!==Ct){const $=Fe.linear().domain([0,qt]).range([Gt,0]).nice(),b=Oe.band().domain(mt).range([0,xt?Math.max(rt,xt*mt.length):D?Math.min(rt,D*mt.length):rt]).paddingInner(J),jt=$.ticks(it);bt=_t.motion.svg,I=`${Ct}px`,Vt=`${Ft}px`,At=`0 0 ${Ct} ${Ft}`,ct="ltr",pt=Bt,wt=`translate(${x.left},${x.top})`;let $t;t[81]!==d||t[82]!==u||t[83]!==nt||t[84]!==X||t[85]!==q?($t=X?be.numberFormattingFunction(0,d,u,nt,q):void 0,t[81]=d,t[82]=u,t[83]=nt,t[84]=X,t[85]=q,t[86]=$t):$t=t[86];const O=s?.xAxis?.axis,h=s?.yAxis?.labels;let g;t[87]!==O||t[88]!==h?(g={axis:O,label:h},t[87]=O,t[88]=h,t[89]=g):g=t[89];const Nt=c?.xAxis?.axis,Ut=c?.yAxis?.labels;let Zt;t[90]!==Nt||t[91]!==Ut?(Zt={axis:Nt,label:Ut},t[90]=Nt,t[91]=Ut,t[92]=Zt):Zt=t[92],Tt=i.jsxRuntimeExports.jsx(Ne.Axis,{hideAxisLine:ot,y1:$(0),y2:$(0),x1:0-L,x2:rt+x.right,label:$t,labelPos:{x:0-L,y:$(0),dx:0,dy:-5},classNames:g,styles:Zt}),It=X?i.jsxRuntimeExports.jsx(Xe.YTicksAndGridLines,{values:jt.filter(Ys),y:jt.filter(Xs).map(p=>$(p)),x1:0-L,x2:rt+x.right,styles:{gridLines:c?.yAxis?.gridLines,labels:c?.yAxis?.labels},classNames:{gridLines:s?.yAxis?.gridLines,labels:s?.yAxis?.labels},suffix:q,prefix:nt,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:u}):null;const F=0-L-15,V=Gt/2,M=c?.yAxis?.title,N=s?.yAxis?.title;t[93]!==T||t[94]!==F||t[95]!==V||t[96]!==M||t[97]!==N?(tt=i.jsxRuntimeExports.jsx(De.AxisTitle,{x:F,y:V,style:M,className:N,text:T,rotate90:!0}),t[93]=T,t[94]=F,t[95]=V,t[96]=M,t[97]=N,t[98]=tt):tt=t[98],t[99]!==f?(S=f.filter(Ws).map(Hs),t[99]=f,t[100]=S):S=t[100],zt=Be.AnimatePresence,ht=st.map(p=>ee.checkIfNullOrUndefined(b(p.id))?null:i.jsxRuntimeExports.jsxs(_t.motion.g,{className:"undp-viz-low-opacity undp-viz-g-with-hover",variants:{initial:{x:b(`${p.id}`),y:0},whileInView:{x:b(`${p.id}`),y:0,transition:{duration:o.duration}}},transition:{duration:o.duration},initial:"initial",animate:lt?"whileInView":"initial",exit:{opacity:0,transition:{duration:o.duration}},children:[p.size.map((w,l)=>i.jsxRuntimeExports.jsxs(_t.motion.g,{opacity:K?P[l]===K?1:.3:1,onMouseEnter:B=>{R({...p,sizeIndex:l}),Yt(B.clientY),Xt(B.clientX),Rt?.({...p,sizeIndex:l})},onMouseMove:B=>{R({...p,sizeIndex:l}),Yt(B.clientY),Xt(B.clientX)},onMouseLeave:()=>{R(void 0),Xt(void 0),Yt(void 0),Rt?.(void 0)},onClick:()=>{(E||gt)&&(Ie.isEqual(yt,{...p,sizeIndex:l})&&Q?(y(void 0),E?.(void 0)):(y({...p,sizeIndex:l}),E&&E({...p,sizeIndex:l})))},children:[i.jsxRuntimeExports.jsx(_t.motion.rect,{x:0,width:b.bandwidth(),variants:{initial:{height:0,fill:P[l],y:$(0)},whileInView:{height:Math.abs($(me.sum(p.size.filter((B,a)=>a<=l&&B)))-$(me.sum(p.size.filter((B,a)=>a<l&&B)))),y:$(me.sum(p.size.filter((B,a)=>a<=l&&B))),fill:P[l],transition:{duration:o.duration}}},initial:"initial",animate:lt?"whileInView":"initial",exit:{height:0,y:$(0),transition:{duration:o.duration}}}),Mt?i.jsxRuntimeExports.jsx(_t.motion.text,{x:b.bandwidth()/2,style:{textAnchor:"middle",...c?.graphObjectValues||{}},className:i.mo("graph-value text-sm",s?.graphObjectValues),dy:"0.33em",variants:{initial:{y:$(0),opacity:0,fill:qe.getTextColorBasedOnBgColor(P[l])},whileInView:{y:$(me.sum(p.size.filter((B,a)=>a<=l&&B)))+Math.abs($(me.sum(p.size.filter((B,a)=>a<=l&&B)))-$(me.sum(p.size.filter((B,a)=>a<l&&B))))/2,opacity:w&&Math.abs($(me.sum(p.size.filter((B,a)=>a<=l&&B)))-$(me.sum(p.size.filter((B,a)=>a<l&&B))))>20?1:0,fill:qe.getTextColorBasedOnBgColor(P[l]),transition:{duration:o.duration}}},initial:"initial",animate:lt?"whileInView":"initial",exit:{opacity:0,transition:{duration:o.duration}},children:be.numberFormattingFunction(w,d,u,nt,q)}):null]},`${p.label}-${m[l]||l}`)),A?i.jsxRuntimeExports.jsx(Ye.XAxesLabels,{value:`${p.label}`.length<ft?`${p.label}`:`${`${p.label}`.substring(0,ft)}...`,y:$(0)+5,x:0,width:b.bandwidth(),height:x.bottom,style:c?.xAxis?.labels,className:s?.xAxis?.labels,alignment:"top",animate:o,isInView:lt}):null,Mt?i.jsxRuntimeExports.jsx(_t.motion.text,{style:{textAnchor:"middle",...c?.graphObjectValues||{}},x:b.bandwidth()/2,dy:-10,className:i.mo("graph-value graph-value-total",Z?"text-sm":"fill-primary-gray-700 dark:fill-primary-gray-300 text-sm",s?.graphObjectValues),variants:{initial:{y:$(0),opacity:0,...Z&&{fill:Z}},whileInView:{y:$(me.sum(p.size.map(qs))),opacity:1,...Z&&{fill:Z},transition:{duration:o.duration}}},exit:{opacity:0,transition:{duration:o.duration}},initial:"initial",animate:lt?"whileInView":"initial",children:be.numberFormattingFunction(me.sum(p.size.filter(Gs)),d,u,nt,q)}):null]},p.label)),vt=Lt?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:Lt.map((p,w)=>i.jsxRuntimeExports.jsx(Se.RefLineY,{text:p.text,color:p.color,y:$(p.value),x1:0-L,x2:rt+x.right,classNames:p.classNames,styles:p.styles,animate:o,isInView:lt},w))}):null,t[16]=o,t[17]=T,t[18]=P,t[19]=mt,t[20]=J,t[21]=s?.graphObjectValues,t[22]=s?.xAxis?.axis,t[23]=s?.xAxis?.labels,t[24]=s?.yAxis?.gridLines,t[25]=s?.yAxis?.labels,t[26]=s?.yAxis?.title,t[27]=m,t[28]=f,t[29]=st,t[30]=gt,t[31]=Gt,t[32]=rt,t[33]=Ft,t[34]=ot,t[35]=lt,t[36]=L,t[37]=x.bottom,t[38]=x.left,t[39]=x.right,t[40]=x.top,t[41]=D,t[42]=qt,t[43]=xt,t[44]=yt,t[45]=d,t[46]=it,t[47]=E,t[48]=Rt,t[49]=u,t[50]=nt,t[51]=Lt,t[52]=Q,t[53]=K,t[54]=A,t[55]=X,t[56]=Mt,t[57]=c?.graphObjectValues,t[58]=c?.xAxis?.axis,t[59]=c?.xAxis?.labels,t[60]=c?.yAxis?.gridLines,t[61]=c?.yAxis?.labels,t[62]=c?.yAxis?.title,t[63]=q,t[64]=ft,t[65]=Z,t[66]=Ct,t[67]=zt,t[68]=bt,t[69]=vt,t[70]=wt,t[71]=Tt,t[72]=It,t[73]=tt,t[74]=S,t[75]=I,t[76]=Vt,t[77]=At,t[78]=ct,t[79]=pt,t[80]=ht}else zt=t[67],bt=t[68],vt=t[69],wt=t[70],Tt=t[71],It=t[72],tt=t[73],S=t[74],I=t[75],Vt=t[76],At=t[77],ct=t[78],pt=t[79],ht=t[80];let Y;t[101]!==zt||t[102]!==vt||t[103]!==ht?(Y=i.jsxRuntimeExports.jsxs(zt,{children:[ht,vt]}),t[101]=zt,t[102]=vt,t[103]=ht,t[104]=Y):Y=t[104];let Ot;t[105]!==f?(Ot=f.filter(Ps).map(Bs),t[105]=f,t[106]=Ot):Ot=t[106];let kt;t[107]!==wt||t[108]!==Tt||t[109]!==It||t[110]!==tt||t[111]!==S||t[112]!==Y||t[113]!==Ot?(kt=i.jsxRuntimeExports.jsxs("g",{transform:wt,children:[Tt,It,tt,S,Y,Ot]}),t[107]=wt,t[108]=Tt,t[109]=It,t[110]=tt,t[111]=S,t[112]=Y,t[113]=Ot,t[114]=kt):kt=t[114];let U;t[115]!==bt||t[116]!==I||t[117]!==Vt||t[118]!==At||t[119]!==ct||t[120]!==pt||t[121]!==kt?(U=i.jsxRuntimeExports.jsx(bt,{width:I,height:Vt,viewBox:At,direction:ct,ref:pt,children:kt}),t[115]=bt,t[116]=I,t[117]=Vt,t[118]=At,t[119]=ct,t[120]=pt,t[121]=kt,t[122]=U):U=t[122];let Et;t[123]!==s?.tooltip||t[124]!==C||t[125]!==at||t[126]!==r||t[127]!==c?.tooltip||t[128]!==et?(Et=r&&et&&C&&at?i.jsxRuntimeExports.jsx(Ve.Tooltip,{data:r,body:et,xPos:C,yPos:at,backgroundStyle:c?.tooltip,className:s?.tooltip}):null,t[123]=s?.tooltip,t[124]=C,t[125]=at,t[126]=r,t[127]=c?.tooltip,t[128]=et,t[129]=Et):Et=t[129];let v;t[130]!==s?.modal||t[131]!==gt||t[132]!==yt?(v=gt&&yt!==void 0?i.jsxRuntimeExports.jsx(ze.DetailsModal,{body:gt,data:yt,setData:y,className:s?.modal}):null,t[130]=s?.modal,t[131]=gt,t[132]=yt,t[133]=v):v=t[133];let j;return t[134]!==U||t[135]!==Et||t[136]!==v?(j=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[U,Et,v]}),t[134]=U,t[135]=Et,t[136]=v,t[137]=j):j=t[137],j}function Bs(e){return e.layer}function Ps(e){return e.position==="after"}function Gs(e){return e}function qs(e){return e||0}function Hs(e){return e.layer}function Ws(e){return e.position==="before"}function Xs(e){return e!==0}function Ys(e){return e!==0}function Us(e){return`${e.id}`}function Js(e){const t=i.compilerRuntimeExports.c(127),{data:n,graphTitle:G,colors:Jt,sources:Kt,graphDescription:St,barPadding:Ct,showTicks:Ft,truncateBy:P,height:J,width:A,footNote:X,colorDomain:ft,colorLegendTitle:et,padding:Rt,backgroundColor:q,topMargin:nt,bottomMargin:Mt,leftMargin:Lt,rightMargin:qt,tooltip:E,onSeriesMouseOver:K,suffix:z,prefix:D,showLabels:xt,relativeHeight:Q,showValues:gt,refValues:T,graphID:Z,maxValue:it,onSeriesMouseClick:c,graphDownload:s,dataDownload:o,language:m,labelOrder:u,minHeight:f,theme:d,maxBarThickness:ot,sortParameter:L,maxNumberOfBars:H,minBarThickness:Ht,showColorScale:Wt,ariaLabel:Bt,resetSelectionOnDoubleClick:Pt,detailsOnClick:lt,barAxisTitle:dt,noOfTicks:_,valueColor:x,styles:r,classNames:R,filterNA:yt,animate:y,precision:C,customLayers:Xt,timeline:at,naLabel:Yt,sortData:rt,orientation:Gt,hideAxisLine:W}=e,st=Jt===void 0?fe.Colors.light.categoricalColors.colors:Jt,k=Ct===void 0?.25:Ct,mt=Ft===void 0?!0:Ft,zt=P===void 0?999:P,bt=q===void 0?!1:q,vt=z===void 0?"":z,wt=D===void 0?"":D,Tt=xt===void 0?!0:xt,It=gt===void 0?!0:gt,tt=s===void 0?!1:s,S=o===void 0?!1:o,I=m===void 0?"en":m,Vt=f===void 0?0:f,At=d===void 0?"light":d,ct=Wt===void 0?!0:Wt,pt=Pt===void 0?!0:Pt,ht=_===void 0?5:_,Y=yt===void 0?!0:yt,Ot=y===void 0?!1:y,kt=C===void 0?2:C;let U;t[0]!==Xt?(U=Xt===void 0?[]:Xt,t[0]=Xt,t[1]=U):U=t[1];const Et=U;let v;t[2]!==at?(v=at===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:at,t[2]=at,t[3]=v):v=t[3];const j=v,$=Yt===void 0?"NA":Yt,b=Gt===void 0?"vertical":Gt,jt=W===void 0?!1:W,$t=b==="horizontal"?Rs:Fs,[O,h]=ut.useState(0),[g,Nt]=ut.useState(0),[Ut,Zt]=ut.useState(j.autoplay);let F;if(t[4]!==n||t[5]!==j.dateFormat){let Dt;t[7]!==j.dateFormat?(Dt=se=>je.parse(`${se.date}`,j.dateFormat||"yyyy",new Date).getTime(),t[7]=j.dateFormat,t[8]=Dt):Dt=t[8],F=[...new Set(n.filter(un).map(Dt))],F.sort(cn),t[4]=n,t[5]=j.dateFormat,t[6]=F}else F=t[6];const V=F,[M,N]=ut.useState(j.autoplay?0:V.length-1),[p,w]=ut.useState(void 0),l=ut.useRef(null),B=ut.useRef(null);let a,ie;t[9]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{const Dt=new ResizeObserver(se=>{h(se[0].target.clientWidth||620),Nt(se[0].target.clientHeight||480)});return l.current&&Dt.observe(l.current),()=>Dt.disconnect()},ie=[],t[9]=a,t[10]=ie):(a=t[9],ie=t[10]),ut.useEffect(a,ie);let ne,ge;t[11]!==Ut||t[12]!==j.speed||t[13]!==V?(ne=()=>{const Dt=setInterval(()=>{N(se=>se<V.length-1?se+1:0)},(j.speed||2)*1e3);return Ut||clearInterval(Dt),()=>clearInterval(Dt)},ge=[V,Ut,j.speed],t[11]=Ut,t[12]=j.speed,t[13]=V,t[14]=ne,t[15]=ge):(ne=t[14],ge=t[15]),ut.useEffect(ne,ge);const Ae=j.dateFormat||"yyyy";let he;t[16]!==M||t[17]!==Ae||t[18]!==j.showOnlyActiveDate||t[19]!==V?(he=Re.getSliderMarks(V,M,j.showOnlyActiveDate,Ae),t[16]=M,t[17]=Ae,t[18]=j.showOnlyActiveDate,t[19]=V,t[20]=he):he=t[20];const ve=he,ye=R?.graphContainer,pe=r?.graphContainer;let oe;t[21]!==R?.description||t[22]!==R?.title||t[23]!==n||t[24]!==S||t[25]!==St||t[26]!==tt||t[27]!==G||t[28]!==r?.description||t[29]!==r?.title||t[30]!==A?(oe=G||St||tt||S?i.jsxRuntimeExports.jsx(Ue.GraphHeader,{styles:{title:r?.title,description:r?.description},classNames:{title:R?.title,description:R?.description},graphTitle:G,graphDescription:St,width:A,graphDownload:tt?B:void 0,dataDownload:S?n.map(rn).filter(an).length>0?n.map(ln).filter(on):n.filter(nn):null}):null,t[21]=R?.description,t[22]=R?.title,t[23]=n,t[24]=S,t[25]=St,t[26]=tt,t[27]=G,t[28]=r?.description,t[29]=r?.title,t[30]=A,t[31]=oe):oe=t[31];let le;t[32]!==M||t[33]!==ve||t[34]!==Ut||t[35]!==j.enabled||t[36]!==V?(le=j.enabled&&V.length>0&&ve?i.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[i.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{Zt(!Ut)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":Ut?"Click to pause animation":"Click to play animation",children:Ut?i.jsxRuntimeExports.jsx(Me.Pause,{}):i.jsxRuntimeExports.jsx(Me.Play,{})}),i.jsxRuntimeExports.jsx(Re.Nr,{min:V[0],max:V[V.length-1],marks:ve,step:null,defaultValue:V[V.length-1],value:V[M],onChangeComplete:Dt=>{N(V.indexOf(Dt))},onChange:Dt=>{N(V.indexOf(Dt))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,t[32]=M,t[33]=ve,t[34]=Ut,t[35]=j.enabled,t[36]=V,t[37]=le):le=t[37];let ue;t[38]!==R?.colorLegend||t[39]!==ft||t[40]!==et||t[41]!==st||t[42]!==n.length||t[43]!==ct||t[44]!==A?(ue=ct&&n.length>0?i.jsxRuntimeExports.jsx(Ke.ColorLegendWithMouseOver,{width:A,colorDomain:ft,colors:st,colorLegendTitle:et,setSelectedColor:w,showNAColor:!1,className:R?.colorLegend}):null,t[38]=R?.colorLegend,t[39]=ft,t[40]=et,t[41]=st,t[42]=n.length,t[43]=ct,t[44]=A,t[45]=ue):ue=t[45];let ae;t[46]!==n.length?(ae=n.length===0&&i.jsxRuntimeExports.jsx(Qe.EmptyState,{}),t[46]=n.length,t[47]=ae):ae=t[47];let re;t[48]!==$t||t[49]!==Ot||t[50]!==dt||t[51]!==k||t[52]!==Mt||t[53]!==R||t[54]!==ft||t[55]!==st||t[56]!==Et||t[57]!==n||t[58]!==lt||t[59]!==Y||t[60]!==jt||t[61]!==M||t[62]!==u||t[63]!==I||t[64]!==Lt||t[65]!==ot||t[66]!==H||t[67]!==it||t[68]!==Ht||t[69]!==$||t[70]!==ht||t[71]!==c||t[72]!==K||t[73]!==kt||t[74]!==wt||t[75]!==T||t[76]!==pt||t[77]!==qt||t[78]!==p||t[79]!==Tt||t[80]!==mt||t[81]!==It||t[82]!==rt||t[83]!==L||t[84]!==r||t[85]!==vt||t[86]!==g||t[87]!==O||t[88]!==j.dateFormat||t[89]!==j.enabled||t[90]!==E||t[91]!==nt||t[92]!==zt||t[93]!==V||t[94]!==x?(re=O&&g&&n.length>0?i.jsxRuntimeExports.jsx($t,{hideAxisLine:jt,data:L!==void 0?L==="total"?Pe.orderBy($e.ensureCompleteDataForStackedBarChart(n,j.dateFormat||"yyyy").filter(Dt=>j.enabled?Dt.date===je.format(new Date(V[M]),j.dateFormat||"yyyy"):Dt).filter(Dt=>Y?!Dt.size.every(sn):Dt),tn,[rt||"asc"]).filter((Dt,se)=>H?se<H:!0):Pe.orderBy($e.ensureCompleteDataForStackedBarChart(n,j.dateFormat||"yyyy").filter(Dt=>j.enabled?Dt.date===je.format(new Date(V[M]),j.dateFormat||"yyyy"):Dt).filter(Dt=>Y?!Dt.size.every(_s):Dt),Dt=>ee.checkIfNullOrUndefined(Dt.size[L])?-1/0:Dt.size[L],[rt||"asc"]).filter((Dt,se)=>H?se<H:!0):$e.ensureCompleteDataForStackedBarChart(n,j.dateFormat||"yyyy").filter(Dt=>j.enabled?Dt.date===je.format(new Date(V[M]),j.dateFormat||"yyyy"):Dt).filter(Dt=>Y?!Dt.size.every(Zs):Dt).filter((Dt,se)=>H?se<H:!0),barColors:st,width:O,height:g,barPadding:k,showTicks:mt,leftMargin:Lt,rightMargin:qt,topMargin:nt,bottomMargin:Mt,truncateBy:zt,showLabels:Tt,tooltip:E,onSeriesMouseOver:K,showValues:It,suffix:vt,prefix:wt,refValues:T,maxValue:ee.checkIfNullOrUndefined(it)?Math.max(...n.map(Ks)):it,onSeriesMouseClick:c,selectedColor:p,rtl:I==="he"||I==="ar",labelOrder:u,maxBarThickness:ot,minBarThickness:Ht,resetSelectionOnDoubleClick:pt,detailsOnClick:lt,barAxisTitle:dt,noOfTicks:ht,valueColor:x,classNames:R,styles:r,animate:Ot===!0?{duration:.5,once:!0,amount:.5}:Ot||{duration:0,once:!0,amount:0},colorDomain:ft,precision:kt,customLayers:Et,naLabel:$}):null,t[48]=$t,t[49]=Ot,t[50]=dt,t[51]=k,t[52]=Mt,t[53]=R,t[54]=ft,t[55]=st,t[56]=Et,t[57]=n,t[58]=lt,t[59]=Y,t[60]=jt,t[61]=M,t[62]=u,t[63]=I,t[64]=Lt,t[65]=ot,t[66]=H,t[67]=it,t[68]=Ht,t[69]=$,t[70]=ht,t[71]=c,t[72]=K,t[73]=kt,t[74]=wt,t[75]=T,t[76]=pt,t[77]=qt,t[78]=p,t[79]=Tt,t[80]=mt,t[81]=It,t[82]=rt,t[83]=L,t[84]=r,t[85]=vt,t[86]=g,t[87]=O,t[88]=j.dateFormat,t[89]=j.enabled,t[90]=E,t[91]=nt,t[92]=zt,t[93]=V,t[94]=x,t[95]=re):re=t[95];let xe;t[96]!==ae||t[97]!==re?(xe=i.jsxRuntimeExports.jsxs(Le.GraphArea,{ref:l,children:[ae,re]}),t[96]=ae,t[97]=re,t[98]=xe):xe=t[98];let de;t[99]!==ue||t[100]!==xe?(de=i.jsxRuntimeExports.jsxs("div",{className:"grow flex flex-col justify-center gap-3 w-full",children:[ue,xe]}),t[99]=ue,t[100]=xe,t[101]=de):de=t[101];let ce;t[102]!==R?.footnote||t[103]!==R?.source||t[104]!==X||t[105]!==Kt||t[106]!==r?.footnote||t[107]!==r?.source||t[108]!==A?(ce=Kt||X?i.jsxRuntimeExports.jsx(Je.GraphFooter,{styles:{footnote:r?.footnote,source:r?.source},classNames:{footnote:R?.footnote,source:R?.source},sources:Kt,footNote:X,width:A}):null,t[102]=R?.footnote,t[103]=R?.source,t[104]=X,t[105]=Kt,t[106]=r?.footnote,t[107]=r?.source,t[108]=A,t[109]=ce):ce=t[109];let Qt;return t[110]!==Bt||t[111]!==bt||t[112]!==Z||t[113]!==J||t[114]!==I||t[115]!==Vt||t[116]!==Rt||t[117]!==Q||t[118]!==ye||t[119]!==pe||t[120]!==oe||t[121]!==le||t[122]!==de||t[123]!==ce||t[124]!==At||t[125]!==A?(Qt=i.jsxRuntimeExports.jsxs(Le.GraphContainer,{className:ye,style:pe,id:Z,ref:B,"aria-label":Bt,backgroundColor:bt,theme:At,language:I,minHeight:Vt,width:A,height:J,relativeHeight:Q,padding:Rt,children:[oe,le,de,ce]}),t[110]=Bt,t[111]=bt,t[112]=Z,t[113]=J,t[114]=I,t[115]=Vt,t[116]=Rt,t[117]=Q,t[118]=ye,t[119]=pe,t[120]=oe,t[121]=le,t[122]=de,t[123]=ce,t[124]=At,t[125]=A,t[126]=Qt):Qt=t[126],Qt}function Ks(e){return me.sum(e.size.filter(Qs))||0}function Qs(e){return!ee.checkIfNullOrUndefined(e)}function Zs(e){return e==null}function _s(e){return e==null}function tn(e){return me.sum(e.size.filter(en))}function en(e){return!ee.checkIfNullOrUndefined(e)}function sn(e){return e==null}function nn(e){return e!==void 0}function on(e){return e!==void 0}function ln(e){return e.data}function an(e){return e!==void 0}function rn(e){return e.data}function cn(e,t){return e-t}function un(e){return e.date}function xn(e){const t=i.compilerRuntimeExports.c(63),{data:n,graphTitle:G,colors:Jt,barPadding:Kt,showTicks:St,leftMargin:Ct,rightMargin:Ft,topMargin:P,bottomMargin:J,truncateBy:A,showLabels:X,showValues:ft,backgroundColor:et,suffix:Rt,prefix:q,sources:nt,graphDescription:Mt,height:Lt,width:qt,footNote:E,colorDomain:K,colorLegendTitle:z,padding:D,relativeHeight:xt,tooltip:Q,onSeriesMouseOver:gt,refValues:T,showColorScale:Z,graphID:it,maxValue:c,minValue:s,highlightedDataPoints:o,onSeriesMouseClick:m,graphDownload:u,dataDownload:f,language:d,theme:ot,sortData:L,labelOrder:H,showNAColor:Ht,minHeight:Wt,maxBarThickness:Bt,maxNumberOfBars:Pt,minBarThickness:lt,ariaLabel:dt,resetSelectionOnDoubleClick:_,detailsOnClick:x,barAxisTitle:r,noOfTicks:R,valueColor:yt,orientation:y,styles:C,classNames:Xt,filterNA:at,animate:Yt,dimmedOpacity:rt,precision:Gt,customLayers:W,timeline:st,naLabel:k,trackColor:mt,hideAxisLine:zt}=e,bt=y===void 0?"vertical":y,vt=zt===void 0?!1:zt;let wt;return t[0]!==Yt||t[1]!==dt||t[2]!==et||t[3]!==r||t[4]!==Kt||t[5]!==J||t[6]!==Xt||t[7]!==K||t[8]!==z||t[9]!==Jt||t[10]!==W||t[11]!==n||t[12]!==f||t[13]!==x||t[14]!==rt||t[15]!==at||t[16]!==E||t[17]!==Mt||t[18]!==u||t[19]!==it||t[20]!==G||t[21]!==Lt||t[22]!==vt||t[23]!==o||t[24]!==H||t[25]!==d||t[26]!==Ct||t[27]!==Bt||t[28]!==Pt||t[29]!==c||t[30]!==lt||t[31]!==Wt||t[32]!==s||t[33]!==k||t[34]!==R||t[35]!==m||t[36]!==gt||t[37]!==bt||t[38]!==D||t[39]!==Gt||t[40]!==q||t[41]!==T||t[42]!==xt||t[43]!==_||t[44]!==Ft||t[45]!==Z||t[46]!==X||t[47]!==Ht||t[48]!==St||t[49]!==ft||t[50]!==L||t[51]!==nt||t[52]!==C||t[53]!==Rt||t[54]!==ot||t[55]!==st||t[56]!==Q||t[57]!==P||t[58]!==mt||t[59]!==A||t[60]!==yt||t[61]!==qt?(wt=i.jsxRuntimeExports.jsx(us,{data:n,graphTitle:G,colors:Jt,barPadding:Kt,showTicks:St,leftMargin:Ct,rightMargin:Ft,topMargin:P,bottomMargin:J,truncateBy:A,showLabels:X,showValues:ft,backgroundColor:et,suffix:Rt,prefix:q,sources:nt,graphDescription:Mt,height:Lt,width:qt,footNote:E,colorDomain:K,colorLegendTitle:z,padding:D,relativeHeight:xt,tooltip:Q,onSeriesMouseOver:gt,refValues:T,showColorScale:Z,graphID:it,maxValue:c,minValue:s,highlightedDataPoints:o,onSeriesMouseClick:m,graphDownload:u,dataDownload:f,language:d,theme:ot,sortData:L,labelOrder:H,showNAColor:Ht,minHeight:Wt,maxBarThickness:Bt,maxNumberOfBars:Pt,minBarThickness:lt,ariaLabel:dt,resetSelectionOnDoubleClick:_,styles:C,detailsOnClick:x,barAxisTitle:r,noOfTicks:R,valueColor:yt,classNames:Xt,filterNA:at,animate:Yt,dimmedOpacity:rt,precision:Gt,customLayers:W,timeline:st,naLabel:k,orientation:bt,trackColor:mt,hideAxisLine:vt}),t[0]=Yt,t[1]=dt,t[2]=et,t[3]=r,t[4]=Kt,t[5]=J,t[6]=Xt,t[7]=K,t[8]=z,t[9]=Jt,t[10]=W,t[11]=n,t[12]=f,t[13]=x,t[14]=rt,t[15]=at,t[16]=E,t[17]=Mt,t[18]=u,t[19]=it,t[20]=G,t[21]=Lt,t[22]=vt,t[23]=o,t[24]=H,t[25]=d,t[26]=Ct,t[27]=Bt,t[28]=Pt,t[29]=c,t[30]=lt,t[31]=Wt,t[32]=s,t[33]=k,t[34]=R,t[35]=m,t[36]=gt,t[37]=bt,t[38]=D,t[39]=Gt,t[40]=q,t[41]=T,t[42]=xt,t[43]=_,t[44]=Ft,t[45]=Z,t[46]=X,t[47]=Ht,t[48]=St,t[49]=ft,t[50]=L,t[51]=nt,t[52]=C,t[53]=Rt,t[54]=ot,t[55]=st,t[56]=Q,t[57]=P,t[58]=mt,t[59]=A,t[60]=yt,t[61]=qt,t[62]=wt):wt=t[62],wt}function dn(e){const t=i.compilerRuntimeExports.c(58),{data:n,graphTitle:G,colors:Jt,sources:Kt,graphDescription:St,barPadding:Ct,showTicks:Ft,truncateBy:P,height:J,width:A,footNote:X,colorDomain:ft,colorLegendTitle:et,suffix:Rt,prefix:q,showValues:nt,padding:Mt,backgroundColor:Lt,leftMargin:qt,rightMargin:E,topMargin:K,bottomMargin:z,showLabels:D,relativeHeight:xt,tooltip:Q,onSeriesMouseOver:gt,refValues:T,graphID:Z,maxValue:it,minValue:c,onSeriesMouseClick:s,graphDownload:o,dataDownload:m,language:u,labelOrder:f,minHeight:d,theme:ot,sortParameter:L,sortData:H,maxBarThickness:Ht,ariaLabel:Wt,resetSelectionOnDoubleClick:Bt,detailsOnClick:Pt,barAxisTitle:lt,noOfTicks:dt,valueColor:_,orientation:x,styles:r,classNames:R,filterNA:yt,animate:y,precision:C,customLayers:Xt,showColorScale:at,timeline:Yt,naLabel:rt,hideAxisLine:Gt}=e,W=x===void 0?"vertical":x,st=Gt===void 0?!1:Gt;let k;return t[0]!==y||t[1]!==Wt||t[2]!==Lt||t[3]!==lt||t[4]!==Ct||t[5]!==z||t[6]!==R||t[7]!==ft||t[8]!==et||t[9]!==Jt||t[10]!==Xt||t[11]!==n||t[12]!==m||t[13]!==Pt||t[14]!==yt||t[15]!==X||t[16]!==St||t[17]!==o||t[18]!==Z||t[19]!==G||t[20]!==J||t[21]!==st||t[22]!==f||t[23]!==u||t[24]!==qt||t[25]!==Ht||t[26]!==it||t[27]!==d||t[28]!==c||t[29]!==rt||t[30]!==dt||t[31]!==s||t[32]!==gt||t[33]!==W||t[34]!==Mt||t[35]!==C||t[36]!==q||t[37]!==T||t[38]!==xt||t[39]!==Bt||t[40]!==E||t[41]!==at||t[42]!==D||t[43]!==Ft||t[44]!==nt||t[45]!==H||t[46]!==L||t[47]!==Kt||t[48]!==r||t[49]!==Rt||t[50]!==ot||t[51]!==Yt||t[52]!==Q||t[53]!==K||t[54]!==P||t[55]!==_||t[56]!==A?(k=i.jsxRuntimeExports.jsx(gi,{orientation:W,data:n,graphTitle:G,colors:Jt,sources:Kt,graphDescription:St,barPadding:Ct,showTicks:Ft,truncateBy:P,height:J,width:A,footNote:X,colorDomain:ft,colorLegendTitle:et,suffix:Rt,prefix:q,showValues:nt,padding:Mt,backgroundColor:Lt,leftMargin:qt,rightMargin:E,sortParameter:L,sortData:H,topMargin:K,bottomMargin:z,showLabels:D,relativeHeight:xt,tooltip:Q,onSeriesMouseOver:gt,refValues:T,graphID:Z,maxValue:it,minValue:c,onSeriesMouseClick:s,graphDownload:o,dataDownload:m,language:u,labelOrder:f,minHeight:d,theme:ot,maxBarThickness:Ht,ariaLabel:Wt,resetSelectionOnDoubleClick:Bt,styles:r,detailsOnClick:Pt,barAxisTitle:lt,noOfTicks:dt,valueColor:_,classNames:R,filterNA:yt,animate:y,precision:C,customLayers:Xt,showColorScale:at,timeline:Yt,naLabel:rt,hideAxisLine:st}),t[0]=y,t[1]=Wt,t[2]=Lt,t[3]=lt,t[4]=Ct,t[5]=z,t[6]=R,t[7]=ft,t[8]=et,t[9]=Jt,t[10]=Xt,t[11]=n,t[12]=m,t[13]=Pt,t[14]=yt,t[15]=X,t[16]=St,t[17]=o,t[18]=Z,t[19]=G,t[20]=J,t[21]=st,t[22]=f,t[23]=u,t[24]=qt,t[25]=Ht,t[26]=it,t[27]=d,t[28]=c,t[29]=rt,t[30]=dt,t[31]=s,t[32]=gt,t[33]=W,t[34]=Mt,t[35]=C,t[36]=q,t[37]=T,t[38]=xt,t[39]=Bt,t[40]=E,t[41]=at,t[42]=D,t[43]=Ft,t[44]=nt,t[45]=H,t[46]=L,t[47]=Kt,t[48]=r,t[49]=Rt,t[50]=ot,t[51]=Yt,t[52]=Q,t[53]=K,t[54]=P,t[55]=_,t[56]=A,t[57]=k):k=t[57],k}function mn(e){const t=i.compilerRuntimeExports.c(59),{data:n,graphTitle:G,colors:Jt,sources:Kt,graphDescription:St,barPadding:Ct,showTicks:Ft,leftMargin:P,rightMargin:J,topMargin:A,bottomMargin:X,truncateBy:ft,showLabels:et,showValues:Rt,backgroundColor:q,suffix:nt,prefix:Mt,height:Lt,width:qt,footNote:E,colorDomain:K,colorLegendTitle:z,padding:D,tooltip:xt,onSeriesMouseOver:Q,relativeHeight:gt,refValues:T,graphID:Z,maxValue:it,onSeriesMouseClick:c,graphDownload:s,dataDownload:o,language:m,theme:u,labelOrder:f,minHeight:d,maxBarThickness:ot,sortParameter:L,sortData:H,maxNumberOfBars:Ht,minBarThickness:Wt,ariaLabel:Bt,resetSelectionOnDoubleClick:Pt,detailsOnClick:lt,barAxisTitle:dt,noOfTicks:_,valueColor:x,orientation:r,styles:R,classNames:yt,filterNA:y,animate:C,precision:Xt,customLayers:at,showColorScale:Yt,timeline:rt,naLabel:Gt,hideAxisLine:W}=e,st=r===void 0?"vertical":r,k=W===void 0?!1:W;let mt;return t[0]!==C||t[1]!==Bt||t[2]!==q||t[3]!==dt||t[4]!==Ct||t[5]!==X||t[6]!==yt||t[7]!==K||t[8]!==z||t[9]!==Jt||t[10]!==at||t[11]!==n||t[12]!==o||t[13]!==lt||t[14]!==y||t[15]!==E||t[16]!==St||t[17]!==s||t[18]!==Z||t[19]!==G||t[20]!==Lt||t[21]!==k||t[22]!==f||t[23]!==m||t[24]!==P||t[25]!==ot||t[26]!==Ht||t[27]!==it||t[28]!==Wt||t[29]!==d||t[30]!==Gt||t[31]!==_||t[32]!==c||t[33]!==Q||t[34]!==st||t[35]!==D||t[36]!==Xt||t[37]!==Mt||t[38]!==T||t[39]!==gt||t[40]!==Pt||t[41]!==J||t[42]!==Yt||t[43]!==et||t[44]!==Ft||t[45]!==Rt||t[46]!==H||t[47]!==L||t[48]!==Kt||t[49]!==R||t[50]!==nt||t[51]!==u||t[52]!==rt||t[53]!==xt||t[54]!==A||t[55]!==ft||t[56]!==x||t[57]!==qt?(mt=i.jsxRuntimeExports.jsx(Js,{data:n,graphTitle:G,colors:Jt,sources:Kt,graphDescription:St,barPadding:Ct,showTicks:Ft,leftMargin:P,rightMargin:J,topMargin:A,bottomMargin:X,truncateBy:ft,showLabels:et,showValues:Rt,backgroundColor:q,suffix:nt,prefix:Mt,height:Lt,width:qt,footNote:E,colorDomain:K,colorLegendTitle:z,padding:D,tooltip:xt,onSeriesMouseOver:Q,relativeHeight:gt,refValues:T,graphID:Z,maxValue:it,onSeriesMouseClick:c,graphDownload:s,dataDownload:o,language:m,theme:u,labelOrder:f,minHeight:d,maxBarThickness:ot,sortParameter:L,sortData:H,maxNumberOfBars:Ht,minBarThickness:Wt,ariaLabel:Bt,resetSelectionOnDoubleClick:Pt,styles:R,detailsOnClick:lt,barAxisTitle:dt,noOfTicks:_,valueColor:x,classNames:yt,filterNA:y,animate:C,precision:Xt,customLayers:at,showColorScale:Yt,timeline:rt,naLabel:Gt,orientation:st,hideAxisLine:k}),t[0]=C,t[1]=Bt,t[2]=q,t[3]=dt,t[4]=Ct,t[5]=X,t[6]=yt,t[7]=K,t[8]=z,t[9]=Jt,t[10]=at,t[11]=n,t[12]=o,t[13]=lt,t[14]=y,t[15]=E,t[16]=St,t[17]=s,t[18]=Z,t[19]=G,t[20]=Lt,t[21]=k,t[22]=f,t[23]=m,t[24]=P,t[25]=ot,t[26]=Ht,t[27]=it,t[28]=Wt,t[29]=d,t[30]=Gt,t[31]=_,t[32]=c,t[33]=Q,t[34]=st,t[35]=D,t[36]=Xt,t[37]=Mt,t[38]=T,t[39]=gt,t[40]=Pt,t[41]=J,t[42]=Yt,t[43]=et,t[44]=Ft,t[45]=Rt,t[46]=H,t[47]=L,t[48]=Kt,t[49]=R,t[50]=nt,t[51]=u,t[52]=rt,t[53]=xt,t[54]=A,t[55]=ft,t[56]=x,t[57]=qt,t[58]=mt):mt=t[58],mt}exports.GroupedBarGraph=dn;exports.SimpleBarGraph=xn;exports.StackedBarGraph=mn;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-CHPV5EwG-6v2a2njQ.cjs"),ut=require("react"),Re=require("./getSliderMarks-CIuSoedo.cjs"),je=require("./parse-xYI9yrvL.cjs"),Pe=require("./index-Cno4Q0YE.cjs"),me=require("./index-CSNtgibC.cjs"),Ie=require("./index-DQA8q5sC.cjs"),be=require("./numberFormattingFunction-02t-wJta.cjs"),Ve=require("./Tooltip-BLa2EfMs.cjs"),ee=require("./checkIfNullOrUndefined-BCW3Y1ML.cjs"),He=require("./YAxesLabels-BQ2aCazV.cjs"),Ne=require("./Axis-Jt_tmhxS.cjs"),De=require("./AxisTitle-DV4n0RxE.cjs"),We=require("./XTicksAndGridLines-CekrPykD.cjs"),Se=require("./ReferenceLine-M9aP3dj-.cjs"),Xe=require("./YTicksAndGridLines-UzVC5eBM.cjs"),Ye=require("./XAxesLabels-C6o9jJal.cjs"),ze=require("./DetailsModal-DHttOA80.cjs"),Te=require("./use-in-view-C3o_ntMv.cjs"),Fe=require("./linear-CgUCbw9F.cjs"),Oe=require("./band-VYfcZeJ2.cjs"),_t=require("./proxy-C4-uo6nS.cjs"),Be=require("./index-CoobIWNj.cjs"),Ue=require("./GraphHeader.cjs"),Je=require("./GraphFooter.cjs"),Ke=require("./ColorLegendWithMouseOver.cjs"),fe=require("./Colors.cjs"),Qe=require("./EmptyState-N1eHt3vq.cjs"),Me=require("./index-sbKVyHS2.cjs"),$e=require("./ensureCompleteData-D9bQTiVS.cjs"),Le=require("./GraphContainer-B1EDxJ0S.cjs"),Ze=require("./uniqBy-O05lp2S5.cjs"),qe=require("./getTextColorBasedOnBgColor-nqY-bsM_.cjs");function _e(e){const t=i.compilerRuntimeExports.c(131),{data:n,leftMargin:G,rightMargin:Jt,topMargin:Kt,bottomMargin:St,barColors:Ct,barPadding:Ft,showTicks:P,truncateBy:J,width:A,height:X,suffix:ft,prefix:et,showValues:Rt,showLabels:q,tooltip:nt,onSeriesMouseOver:Mt,refValues:Lt,maxValue:qt,minValue:E,onSeriesMouseClick:K,selectedColor:z,rtl:D,labelOrder:xt,maxBarThickness:Q,resetSelectionOnDoubleClick:gt,detailsOnClick:T,barAxisTitle:Z,valueColor:it,noOfTicks:c,styles:s,classNames:o,animate:m,colorDomain:u,precision:f,customLayers:d,naLabel:ot,hideAxisLine:L}=e,H=G===void 0?100:G,Ht=Jt===void 0?40:Jt,Wt=Kt===void 0?25:Kt,Bt=St===void 0?10:St,Pt=ut.useRef(null);let lt;t[0]!==m.amount||t[1]!==m.once?(lt={once:m.once,amount:m.amount},t[0]=m.amount,t[1]=m.once,t[2]=lt):lt=t[2];const dt=Te.useInView(Pt,lt),_=Z?Wt+25:Wt;let x;t[3]!==Bt||t[4]!==H||t[5]!==Ht||t[6]!==_?(x={top:_,bottom:Bt,left:H,right:Ht},t[3]=Bt,t[4]=H,t[5]=Ht,t[6]=_,t[7]=x):x=t[7];const r=x,[R,yt]=ut.useState(void 0),[y,C]=ut.useState(void 0),[Xt,at]=ut.useState(void 0),[Yt,rt]=ut.useState(void 0),Gt=A-r.left-r.right,W=X-r.top-r.bottom;let st;if(t[8]!==n||t[9]!==xt){const b=new Set,jt=n.map((h,g)=>{const Nt=xt?`${h.label}`:`${g}`;return b.add(Nt),{...h,id:Nt}}),$t=xt?xt.filter(h=>!b.has(h)):[];let O;t[11]!==n[0].size.length?(O=h=>({id:h,label:h,size:Array(n[0].size.length).fill(null)}),t[11]=n[0].size.length,t[12]=O):O=t[12],st=[...jt,...$t.map(O)],t[8]=n,t[9]=xt,t[10]=st}else st=t[10];const k=st;let mt;t[13]!==k||t[14]!==xt?(mt=xt??k.map(ai),t[13]=k,t[14]=xt,t[15]=mt):mt=t[15];const zt=mt;let bt,vt,wt,Tt,It,tt,S,I,Vt,At,ct,pt,ht,Y;if(t[16]!==m||t[17]!==Z||t[18]!==Ct||t[19]!==zt||t[20]!==Ft||t[21]!==o?.graphObjectValues||t[22]!==o?.xAxis?.gridLines||t[23]!==o?.xAxis?.labels||t[24]!==o?.xAxis?.title||t[25]!==o?.yAxis?.axis||t[26]!==o?.yAxis?.labels||t[27]!==u||t[28]!==d||t[29]!==n[0].size||t[30]!==k||t[31]!==T||t[32]!==W||t[33]!==Gt||t[34]!==X||t[35]!==L||t[36]!==dt||t[37]!==r.bottom||t[38]!==r.left||t[39]!==r.top||t[40]!==Q||t[41]!==qt||t[42]!==E||t[43]!==y||t[44]!==ot||t[45]!==c||t[46]!==K||t[47]!==Mt||t[48]!==f||t[49]!==et||t[50]!==Lt||t[51]!==gt||t[52]!==D||t[53]!==z||t[54]!==q||t[55]!==P||t[56]!==Rt||t[57]!==s?.graphObjectValues||t[58]!==s?.xAxis?.gridLines||t[59]!==s?.xAxis?.labels||t[60]!==s?.xAxis?.title||t[61]!==s?.yAxis?.axis||t[62]!==s?.yAxis?.labels||t[63]!==ft||t[64]!==Wt||t[65]!==J||t[66]!==it||t[67]!==A){const b=Fe.linear().domain([E,qt]).range([0,Gt]).nice(),jt=Oe.band().domain(zt).range([0,Q?Math.min(W,Q*zt.length):W]).paddingInner(Ft),$t=Oe.band().domain(n[0].size.map(li)).range([0,jt.bandwidth()]).paddingInner(.1),O=b.ticks(c);vt=_t.motion.svg,Vt=Pt,At=`${A}px`,ct=`${X}px`,pt=`0 0 ${A} ${X}`,ht="ltr",It=`translate(${r.left},${r.top})`,tt=P?i.jsxRuntimeExports.jsx(We.XTicksAndGridLines,{values:O.filter(oi),x:O.filter(ni).map(N=>b(N)),y1:0-Wt,y2:W+r.bottom,styles:{gridLines:s?.xAxis?.gridLines,labels:s?.xAxis?.labels},classNames:{gridLines:o?.xAxis?.gridLines,labels:o?.xAxis?.labels},suffix:ft,prefix:et,labelType:"secondary",showGridLines:!0,precision:f}):null;const h=Gt/2,g=0-r.top+15,Nt=s?.xAxis?.title,Ut=o?.xAxis?.title;t[82]!==Z||t[83]!==h||t[84]!==g||t[85]!==Nt||t[86]!==Ut?(S=i.jsxRuntimeExports.jsx(De.AxisTitle,{x:h,y:g,style:Nt,className:Ut,text:Z}),t[82]=Z,t[83]=h,t[84]=g,t[85]=Nt,t[86]=Ut,t[87]=S):S=t[87],t[88]!==d?(I=d.filter(si).map(ii),t[88]=d,t[89]=I):I=t[89],bt=Be.AnimatePresence,Y=k.map(N=>ee.checkIfNullOrUndefined(jt(N.id))?null:i.jsxRuntimeExports.jsxs(_t.motion.g,{variants:{initial:{x:0,y:jt(`${N.id}`)},whileInView:{x:0,y:jt(`${N.id}`),transition:{duration:m.duration}}},initial:"initial",animate:dt?"whileInView":"initial",exit:{opacity:0,transition:{duration:m.duration}},children:[N.size.map((p,w)=>i.jsxRuntimeExports.jsxs(_t.motion.g,{className:"undp-viz-g-with-hover",opacity:z?Ct[w]===z?1:.3:.85,onMouseEnter:l=>{yt({...N,sizeIndex:w}),rt(l.clientY),at(l.clientX),Mt?.({...N,sizeIndex:w})},onMouseMove:l=>{yt({...N,sizeIndex:w}),rt(l.clientY),at(l.clientX)},onMouseLeave:()=>{yt(void 0),at(void 0),rt(void 0),Mt?.(void 0)},onClick:()=>{(K||T)&&(Ie.isEqual(y,{...N,sizeIndex:w})&>?(C(void 0),K?.(void 0)):(C({...N,sizeIndex:w}),K&&K({...N,sizeIndex:w})))},children:[ee.checkIfNullOrUndefined(p)?null:i.jsxRuntimeExports.jsx(_t.motion.rect,{y:$t(`${w}`),variants:{initial:{width:0,x:b(0),fill:Ct[w]},whileInView:{width:ee.checkIfNullOrUndefined(p)?0:p>=0?b(p)-b(0):b(0)-b(p),x:p>=0?b(0):b(p),fill:Ct[w],transition:{duration:m.duration}}},exit:{width:0,x:b(0),transition:{duration:m.duration}},height:$t.bandwidth(),initial:"initial",animate:dt?"whileInView":"initial"}),Rt?i.jsxRuntimeExports.jsx(_t.motion.text,{y:$t(`${w}`)+$t.bandwidth()/2,style:{textAnchor:p&&p<0?"end":"start",...s?.graphObjectValues||{}},className:i.mo("graph-value text-sm",o?.graphObjectValues),dx:p&&p<0?-5:5,dy:"0.33em",variants:{initial:{x:b(0),opacity:0,fill:it||Ct[w]},whileInView:{x:b(p||0),opacity:1,fill:it||Ct[w],transition:{duration:m.duration}}},initial:"initial",animate:dt?"whileInView":"initial",exit:{opacity:0,transition:{duration:m.duration}},children:be.numberFormattingFunction(p,ot,f,et,ft)}):null]},`${N.label}-${u[w]||w}`)),q?i.jsxRuntimeExports.jsx(He.YAxesLabels,{value:`${N.label}`.length<J?`${N.label}`:`${`${N.label}`.substring(0,J)}...`,y:0,x:0-r.left,width:b(E<0?0:E)+r.left,height:jt.bandwidth(),style:s?.yAxis?.labels,className:o?.yAxis?.labels,animate:m,isInView:dt}):null]},N.label));const Zt=o?.yAxis?.axis;let F;t[90]!==Zt?(F={axis:Zt},t[90]=Zt,t[91]=F):F=t[91];const V=s?.yAxis?.axis;let M;t[92]!==V?(M={axis:V},t[92]=V,t[93]=M):M=t[93],wt=i.jsxRuntimeExports.jsx(Ne.Axis,{x1:b(E<0?0:E),x2:b(E<0?0:E),y1:-2.5,y2:W+r.bottom,classNames:F,styles:M,hideAxisLine:L}),Tt=Lt?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:Lt.map((N,p)=>i.jsxRuntimeExports.jsx(Se.RefLineX,{text:N.text,color:N.color,x:b(N.value),y1:0-r.top,y2:W+r.bottom,textSide:b(N.value)>Gt*.75||D?"left":"right",classNames:N.classNames,styles:N.styles,animate:m,isInView:dt},p))}):null,t[16]=m,t[17]=Z,t[18]=Ct,t[19]=zt,t[20]=Ft,t[21]=o?.graphObjectValues,t[22]=o?.xAxis?.gridLines,t[23]=o?.xAxis?.labels,t[24]=o?.xAxis?.title,t[25]=o?.yAxis?.axis,t[26]=o?.yAxis?.labels,t[27]=u,t[28]=d,t[29]=n[0].size,t[30]=k,t[31]=T,t[32]=W,t[33]=Gt,t[34]=X,t[35]=L,t[36]=dt,t[37]=r.bottom,t[38]=r.left,t[39]=r.top,t[40]=Q,t[41]=qt,t[42]=E,t[43]=y,t[44]=ot,t[45]=c,t[46]=K,t[47]=Mt,t[48]=f,t[49]=et,t[50]=Lt,t[51]=gt,t[52]=D,t[53]=z,t[54]=q,t[55]=P,t[56]=Rt,t[57]=s?.graphObjectValues,t[58]=s?.xAxis?.gridLines,t[59]=s?.xAxis?.labels,t[60]=s?.xAxis?.title,t[61]=s?.yAxis?.axis,t[62]=s?.yAxis?.labels,t[63]=ft,t[64]=Wt,t[65]=J,t[66]=it,t[67]=A,t[68]=bt,t[69]=vt,t[70]=wt,t[71]=Tt,t[72]=It,t[73]=tt,t[74]=S,t[75]=I,t[76]=Vt,t[77]=At,t[78]=ct,t[79]=pt,t[80]=ht,t[81]=Y}else bt=t[68],vt=t[69],wt=t[70],Tt=t[71],It=t[72],tt=t[73],S=t[74],I=t[75],Vt=t[76],At=t[77],ct=t[78],pt=t[79],ht=t[80],Y=t[81];let Ot;t[94]!==bt||t[95]!==wt||t[96]!==Tt||t[97]!==Y?(Ot=i.jsxRuntimeExports.jsxs(bt,{children:[Y,wt,Tt]}),t[94]=bt,t[95]=wt,t[96]=Tt,t[97]=Y,t[98]=Ot):Ot=t[98];let kt;t[99]!==d?(kt=d.filter(ei).map(ti),t[99]=d,t[100]=kt):kt=t[100];let U;t[101]!==It||t[102]!==tt||t[103]!==S||t[104]!==I||t[105]!==Ot||t[106]!==kt?(U=i.jsxRuntimeExports.jsxs("g",{transform:It,children:[tt,S,I,Ot,kt]}),t[101]=It,t[102]=tt,t[103]=S,t[104]=I,t[105]=Ot,t[106]=kt,t[107]=U):U=t[107];let Et;t[108]!==vt||t[109]!==Vt||t[110]!==At||t[111]!==ct||t[112]!==pt||t[113]!==ht||t[114]!==U?(Et=i.jsxRuntimeExports.jsx(vt,{ref:Vt,width:At,height:ct,viewBox:pt,direction:ht,children:U}),t[108]=vt,t[109]=Vt,t[110]=At,t[111]=ct,t[112]=pt,t[113]=ht,t[114]=U,t[115]=Et):Et=t[115];let v;t[116]!==o?.tooltip||t[117]!==Xt||t[118]!==Yt||t[119]!==R||t[120]!==s?.tooltip||t[121]!==nt?(v=R&&nt&&Xt&&Yt?i.jsxRuntimeExports.jsx(Ve.Tooltip,{data:R,body:nt,xPos:Xt,yPos:Yt,backgroundStyle:s?.tooltip,className:o?.tooltip}):null,t[116]=o?.tooltip,t[117]=Xt,t[118]=Yt,t[119]=R,t[120]=s?.tooltip,t[121]=nt,t[122]=v):v=t[122];let j;t[123]!==o?.modal||t[124]!==T||t[125]!==y?(j=T&&y!==void 0?i.jsxRuntimeExports.jsx(ze.DetailsModal,{body:T,data:y,setData:C,className:o?.modal}):null,t[123]=o?.modal,t[124]=T,t[125]=y,t[126]=j):j=t[126];let $;return t[127]!==Et||t[128]!==v||t[129]!==j?($=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[Et,v,j]}),t[127]=Et,t[128]=v,t[129]=j,t[130]=$):$=t[130],$}function ti(e){return e.layer}function ei(e){return e.position==="after"}function ii(e){return e.layer}function si(e){return e.position==="before"}function ni(e){return e!==0}function oi(e){return e!==0}function li(e,t){return`${t}`}function ai(e){return`${e.id}`}function ri(e){const t=i.compilerRuntimeExports.c(140),{data:n,leftMargin:G,rightMargin:Jt,topMargin:Kt,bottomMargin:St,width:Ct,height:Ft,barColors:P,suffix:J,prefix:A,barPadding:X,showLabels:ft,showValues:et,showTicks:Rt,truncateBy:q,tooltip:nt,onSeriesMouseOver:Mt,refValues:Lt,maxValue:qt,minValue:E,onSeriesMouseClick:K,selectedColor:z,labelOrder:D,maxBarThickness:xt,resetSelectionOnDoubleClick:Q,detailsOnClick:gt,barAxisTitle:T,valueColor:Z,noOfTicks:it,styles:c,classNames:s,animate:o,colorDomain:m,precision:u,customLayers:f,naLabel:d,hideAxisLine:ot}=e,L=G===void 0?20:G,H=Jt===void 0?20:Jt,Ht=Kt===void 0?20:Kt,Wt=St===void 0?25:St,Bt=ut.useRef(null);let Pt;t[0]!==o.amount||t[1]!==o.once?(Pt={once:o.once,amount:o.amount},t[0]=o.amount,t[1]=o.once,t[2]=Pt):Pt=t[2];const lt=Te.useInView(Bt,Pt),dt=T?L+30:L;let _;t[3]!==Wt||t[4]!==H||t[5]!==dt||t[6]!==Ht?(_={top:Ht,bottom:Wt,left:dt,right:H},t[3]=Wt,t[4]=H,t[5]=dt,t[6]=Ht,t[7]=_):_=t[7];const x=_,[r,R]=ut.useState(void 0),[yt,y]=ut.useState(void 0),[C,Xt]=ut.useState(void 0),[at,Yt]=ut.useState(void 0),rt=Ct-x.left-x.right,Gt=Ft-x.top-x.bottom;let W;if(t[8]!==n||t[9]!==D){const $=new Set,b=n.map((O,h)=>{const g=D?`${O.label}`:`${h}`;return $.add(g),{...O,id:g}}),jt=D?D.filter(O=>!$.has(O)):[];let $t;t[11]!==n[0].size.length?($t=O=>({id:O,label:O,size:Array(n[0].size.length).fill(null)}),t[11]=n[0].size.length,t[12]=$t):$t=t[12],W=[...b,...jt.map($t)],t[8]=n,t[9]=D,t[10]=W}else W=t[10];const st=W;let k;t[13]!==st||t[14]!==D?(k=D??st.map(fi),t[13]=st,t[14]=D,t[15]=k):k=t[15];const mt=k;let zt,bt,vt,wt,Tt,It,tt,S,I,Vt,At,ct,pt,ht;if(t[16]!==o||t[17]!==T||t[18]!==P||t[19]!==mt||t[20]!==X||t[21]!==s?.graphObjectValues||t[22]!==s?.xAxis?.axis||t[23]!==s?.xAxis?.labels||t[24]!==s?.yAxis?.gridLines||t[25]!==s?.yAxis?.labels||t[26]!==s?.yAxis?.title||t[27]!==m||t[28]!==f||t[29]!==n[0].size||t[30]!==st||t[31]!==gt||t[32]!==Gt||t[33]!==rt||t[34]!==Ft||t[35]!==ot||t[36]!==lt||t[37]!==L||t[38]!==x.bottom||t[39]!==x.left||t[40]!==x.right||t[41]!==x.top||t[42]!==xt||t[43]!==qt||t[44]!==E||t[45]!==yt||t[46]!==d||t[47]!==it||t[48]!==K||t[49]!==Mt||t[50]!==u||t[51]!==A||t[52]!==Lt||t[53]!==Q||t[54]!==z||t[55]!==ft||t[56]!==Rt||t[57]!==et||t[58]!==c?.graphObjectValues||t[59]!==c?.xAxis?.axis||t[60]!==c?.xAxis?.labels||t[61]!==c?.yAxis?.gridLines||t[62]!==c?.yAxis?.labels||t[63]!==c?.yAxis?.title||t[64]!==J||t[65]!==q||t[66]!==Z||t[67]!==Ct){const $=Fe.linear().domain([E,qt]).range([Gt,0]).nice(),b=Oe.band().domain(mt).range([0,xt?Math.min(rt,xt*mt.length):rt]).paddingInner(X),jt=Oe.band().domain(n[0].size.map(hi)).range([0,b.bandwidth()]).paddingInner(.1),$t=$.ticks(it);bt=_t.motion.svg,I=`${Ct}px`,Vt=`${Ft}px`,At=`0 0 ${Ct} ${Ft}`,ct="ltr",pt=Bt,wt=`translate(${x.left},${x.top})`;let O;t[82]!==E||t[83]!==d||t[84]!==u||t[85]!==A||t[86]!==Rt||t[87]!==J?(O=Rt?be.numberFormattingFunction(E<0?0:E,d,u,A,J):void 0,t[82]=E,t[83]=d,t[84]=u,t[85]=A,t[86]=Rt,t[87]=J,t[88]=O):O=t[88];const h=s?.xAxis?.axis,g=s?.yAxis?.labels;let Nt;t[89]!==h||t[90]!==g?(Nt={axis:h,label:g},t[89]=h,t[90]=g,t[91]=Nt):Nt=t[91];const Ut=c?.xAxis?.axis,Zt=c?.yAxis?.labels;let F;t[92]!==Ut||t[93]!==Zt?(F={axis:Ut,label:Zt},t[92]=Ut,t[93]=Zt,t[94]=F):F=t[94],Tt=i.jsxRuntimeExports.jsx(Ne.Axis,{y1:$(E<0?0:E),y2:$(E<0?0:E),x1:0-L,x2:rt+x.right,label:O,hideAxisLine:ot,labelPos:{x:0-L,dx:0,dy:qt<0?"1em":-5,y:$(E<0?0:E)},classNames:Nt,styles:F}),It=Rt?i.jsxRuntimeExports.jsx(Xe.YTicksAndGridLines,{values:$t.filter(pi),y:$t.filter(mi).map(w=>$(w)),x1:0-L,x2:rt+x.right,styles:{gridLines:c?.yAxis?.gridLines,labels:c?.yAxis?.labels},classNames:{gridLines:s?.yAxis?.gridLines,labels:s?.yAxis?.labels},suffix:J,prefix:A,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:u}):null;const V=0-L-15,M=Gt/2,N=c?.yAxis?.title,p=s?.yAxis?.title;t[95]!==T||t[96]!==V||t[97]!==M||t[98]!==N||t[99]!==p?(tt=i.jsxRuntimeExports.jsx(De.AxisTitle,{x:V,y:M,style:N,className:p,text:T,rotate90:!0}),t[95]=T,t[96]=V,t[97]=M,t[98]=N,t[99]=p,t[100]=tt):tt=t[100],t[101]!==f?(S=f.filter(di).map(xi),t[101]=f,t[102]=S):S=t[102],zt=Be.AnimatePresence,ht=st.map(w=>ee.checkIfNullOrUndefined(b(w.id))?null:i.jsxRuntimeExports.jsxs(_t.motion.g,{variants:{initial:{x:b(`${w.id}`),y:0},whileInView:{x:b(`${w.id}`),y:0,transition:{duration:o.duration}}},initial:"initial",animate:lt?"whileInView":"initial",exit:{opacity:0,transition:{duration:o.duration}},children:[w.size.map((l,B)=>i.jsxRuntimeExports.jsxs(_t.motion.g,{className:"undp-viz-g-with-hover",opacity:z?P[B]===z?1:.3:.85,onMouseEnter:a=>{R({...w,sizeIndex:B}),Yt(a.clientY),Xt(a.clientX),Mt?.({...w,sizeIndex:B})},onMouseMove:a=>{R({...w,sizeIndex:B}),Yt(a.clientY),Xt(a.clientX)},onMouseLeave:()=>{R(void 0),Xt(void 0),Yt(void 0),Mt?.(void 0)},onClick:()=>{(K||gt)&&(Ie.isEqual(yt,{...w,sizeIndex:B})&&Q?(y(void 0),K?.(void 0)):(y({...w,sizeIndex:B}),K&&K({...w,sizeIndex:B})))},children:[i.jsxRuntimeExports.jsx(_t.motion.rect,{x:jt(`${B}`),width:jt.bandwidth(),variants:{initial:{height:0,y:$(0),fill:P[B]},whileInView:{height:ee.checkIfNullOrUndefined(l)?0:Math.abs($(l)-$(0)),y:ee.checkIfNullOrUndefined(l)?$(0):l>0?$(l):$(0),fill:P[B],transition:{duration:o.duration}}},exit:{height:0,y:$(0),transition:{duration:o.duration}},initial:"initial",animate:lt?"whileInView":"initial"}),et?i.jsxRuntimeExports.jsx(_t.motion.text,{x:jt(`${B}`)+jt.bandwidth()/2,style:{textAnchor:"middle",...c?.graphObjectValues||{}},className:i.mo("graph-value text-sm",s?.graphObjectValues),dy:l?l>=0?"-5px":"1em":"-5px",variants:{initial:{y:$(0),opacity:0,fill:Z||P[B]},whileInView:{y:$(l||0),opacity:1,fill:Z||P[B],transition:{duration:o.duration}}},initial:"initial",animate:lt?"whileInView":"initial",exit:{opacity:0,transition:{duration:o.duration}},children:be.numberFormattingFunction(l,d,u,A,J)}):null]},`${w.label}-${m[B]||B}`)),ft?i.jsxRuntimeExports.jsx(Ye.XAxesLabels,{value:`${w.label}`.length<q?`${w.label}`:`${`${w.label}`.substring(0,q)}...`,y:$(0)+5,x:0,width:b.bandwidth(),height:x.bottom,style:c?.xAxis?.labels,className:s?.xAxis?.labels,alignment:"top",animate:o,isInView:lt}):null]},w.label)),vt=Lt?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:Lt.map((w,l)=>i.jsxRuntimeExports.jsx(Se.RefLineY,{text:w.text,color:w.color,y:$(w.value),x1:0-L,x2:rt+x.right,classNames:w.classNames,styles:w.styles,animate:o,isInView:lt},l))}):null,t[16]=o,t[17]=T,t[18]=P,t[19]=mt,t[20]=X,t[21]=s?.graphObjectValues,t[22]=s?.xAxis?.axis,t[23]=s?.xAxis?.labels,t[24]=s?.yAxis?.gridLines,t[25]=s?.yAxis?.labels,t[26]=s?.yAxis?.title,t[27]=m,t[28]=f,t[29]=n[0].size,t[30]=st,t[31]=gt,t[32]=Gt,t[33]=rt,t[34]=Ft,t[35]=ot,t[36]=lt,t[37]=L,t[38]=x.bottom,t[39]=x.left,t[40]=x.right,t[41]=x.top,t[42]=xt,t[43]=qt,t[44]=E,t[45]=yt,t[46]=d,t[47]=it,t[48]=K,t[49]=Mt,t[50]=u,t[51]=A,t[52]=Lt,t[53]=Q,t[54]=z,t[55]=ft,t[56]=Rt,t[57]=et,t[58]=c?.graphObjectValues,t[59]=c?.xAxis?.axis,t[60]=c?.xAxis?.labels,t[61]=c?.yAxis?.gridLines,t[62]=c?.yAxis?.labels,t[63]=c?.yAxis?.title,t[64]=J,t[65]=q,t[66]=Z,t[67]=Ct,t[68]=zt,t[69]=bt,t[70]=vt,t[71]=wt,t[72]=Tt,t[73]=It,t[74]=tt,t[75]=S,t[76]=I,t[77]=Vt,t[78]=At,t[79]=ct,t[80]=pt,t[81]=ht}else zt=t[68],bt=t[69],vt=t[70],wt=t[71],Tt=t[72],It=t[73],tt=t[74],S=t[75],I=t[76],Vt=t[77],At=t[78],ct=t[79],pt=t[80],ht=t[81];let Y;t[103]!==zt||t[104]!==vt||t[105]!==ht?(Y=i.jsxRuntimeExports.jsxs(zt,{children:[ht,vt]}),t[103]=zt,t[104]=vt,t[105]=ht,t[106]=Y):Y=t[106];let Ot;t[107]!==f?(Ot=f.filter(ui).map(ci),t[107]=f,t[108]=Ot):Ot=t[108];let kt;t[109]!==wt||t[110]!==Tt||t[111]!==It||t[112]!==tt||t[113]!==S||t[114]!==Y||t[115]!==Ot?(kt=i.jsxRuntimeExports.jsxs("g",{transform:wt,children:[Tt,It,tt,S,Y,Ot]}),t[109]=wt,t[110]=Tt,t[111]=It,t[112]=tt,t[113]=S,t[114]=Y,t[115]=Ot,t[116]=kt):kt=t[116];let U;t[117]!==bt||t[118]!==I||t[119]!==Vt||t[120]!==At||t[121]!==ct||t[122]!==pt||t[123]!==kt?(U=i.jsxRuntimeExports.jsx(bt,{width:I,height:Vt,viewBox:At,direction:ct,ref:pt,children:kt}),t[117]=bt,t[118]=I,t[119]=Vt,t[120]=At,t[121]=ct,t[122]=pt,t[123]=kt,t[124]=U):U=t[124];let Et;t[125]!==s?.tooltip||t[126]!==C||t[127]!==at||t[128]!==r||t[129]!==c?.tooltip||t[130]!==nt?(Et=r&&nt&&C&&at?i.jsxRuntimeExports.jsx(Ve.Tooltip,{data:r,body:nt,xPos:C,yPos:at,backgroundStyle:c?.tooltip,className:s?.tooltip}):null,t[125]=s?.tooltip,t[126]=C,t[127]=at,t[128]=r,t[129]=c?.tooltip,t[130]=nt,t[131]=Et):Et=t[131];let v;t[132]!==s?.modal||t[133]!==gt||t[134]!==yt?(v=gt&&yt!==void 0?i.jsxRuntimeExports.jsx(ze.DetailsModal,{body:gt,data:yt,setData:y,className:s?.modal}):null,t[132]=s?.modal,t[133]=gt,t[134]=yt,t[135]=v):v=t[135];let j;return t[136]!==U||t[137]!==Et||t[138]!==v?(j=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[U,Et,v]}),t[136]=U,t[137]=Et,t[138]=v,t[139]=j):j=t[139],j}function ci(e){return e.layer}function ui(e){return e.position==="after"}function xi(e){return e.layer}function di(e){return e.position==="before"}function mi(e){return e!==0}function pi(e){return e!==0}function hi(e,t){return`${t}`}function fi(e){return`${e.id}`}function gi(e){const t=i.compilerRuntimeExports.c(126),{data:n,graphTitle:G,colors:Jt,sources:Kt,graphDescription:St,barPadding:Ct,showTicks:Ft,truncateBy:P,height:J,width:A,footNote:X,colorDomain:ft,colorLegendTitle:et,suffix:Rt,prefix:q,showValues:nt,showColorScale:Mt,padding:Lt,backgroundColor:qt,leftMargin:E,rightMargin:K,topMargin:z,bottomMargin:D,showLabels:xt,relativeHeight:Q,tooltip:gt,onSeriesMouseOver:T,refValues:Z,graphID:it,maxValue:c,minValue:s,onSeriesMouseClick:o,graphDownload:m,dataDownload:u,language:f,labelOrder:d,minHeight:ot,theme:L,maxBarThickness:H,ariaLabel:Ht,resetSelectionOnDoubleClick:Wt,detailsOnClick:Bt,barAxisTitle:Pt,noOfTicks:lt,valueColor:dt,styles:_,classNames:x,filterNA:r,animate:R,precision:yt,customLayers:y,timeline:C,naLabel:Xt,sortParameter:at,sortData:Yt,orientation:rt,hideAxisLine:Gt}=e,W=Jt===void 0?fe.Colors.light.categoricalColors.colors:Jt,st=Ct===void 0?.25:Ct,k=Ft===void 0?!0:Ft,mt=P===void 0?999:P,zt=Rt===void 0?"":Rt,bt=q===void 0?"":q,vt=nt===void 0?!0:nt,wt=Mt===void 0?!0:Mt,Tt=qt===void 0?!1:qt,It=xt===void 0?!0:xt,tt=m===void 0?!1:m,S=u===void 0?!1:u,I=f===void 0?"en":f,Vt=ot===void 0?0:ot,At=L===void 0?"light":L,ct=Wt===void 0?!0:Wt,pt=lt===void 0?5:lt,ht=r===void 0?!0:r,Y=R===void 0?!1:R,Ot=yt===void 0?2:yt;let kt;t[0]!==y?(kt=y===void 0?[]:y,t[0]=y,t[1]=kt):kt=t[1];const U=kt;let Et;t[2]!==C?(Et=C===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:C,t[2]=C,t[3]=Et):Et=t[3];const v=Et,j=Xt===void 0?"NA":Xt,$=rt===void 0?"vertical":rt,b=Gt===void 0?!1:Gt,jt=$==="horizontal"?_e:ri,[$t,O]=ut.useState(0),[h,g]=ut.useState(0),[Nt,Ut]=ut.useState(v.autoplay);let Zt;if(t[4]!==n||t[5]!==v.dateFormat){let Qt;t[7]!==v.dateFormat?(Qt=Dt=>je.parse(`${Dt.date}`,v.dateFormat||"yyyy",new Date).getTime(),t[7]=v.dateFormat,t[8]=Qt):Qt=t[8],Zt=[...new Set(n.filter(zi).map(Qt))],Zt.sort(Si),t[4]=n,t[5]=v.dateFormat,t[6]=Zt}else Zt=t[6];const F=Zt,[V,M]=ut.useState(v.autoplay?0:F.length-1),[N,p]=ut.useState(void 0),w=ut.useRef(null),l=ut.useRef(null);let B,a;t[9]===Symbol.for("react.memo_cache_sentinel")?(B=()=>{const Qt=new ResizeObserver(Dt=>{O(Dt[0].target.clientWidth||620),g(Dt[0].target.clientHeight||480)});return w.current&&Qt.observe(w.current),()=>Qt.disconnect()},a=[],t[9]=B,t[10]=a):(B=t[9],a=t[10]),ut.useEffect(B,a);let ie,ne;t[11]!==Nt||t[12]!==v.speed||t[13]!==F?(ie=()=>{const Qt=setInterval(()=>{M(Dt=>Dt<F.length-1?Dt+1:0)},(v.speed||2)*1e3);return Nt||clearInterval(Qt),()=>clearInterval(Qt)},ne=[F,Nt,v.speed],t[11]=Nt,t[12]=v.speed,t[13]=F,t[14]=ie,t[15]=ne):(ie=t[14],ne=t[15]),ut.useEffect(ie,ne);const ge=v.dateFormat||"yyyy";let Ae;t[16]!==V||t[17]!==ge||t[18]!==v.showOnlyActiveDate||t[19]!==F?(Ae=Re.getSliderMarks(F,V,v.showOnlyActiveDate,ge),t[16]=V,t[17]=ge,t[18]=v.showOnlyActiveDate,t[19]=F,t[20]=Ae):Ae=t[20];const he=Ae,ve=x?.graphContainer,ye=_?.graphContainer;let pe;t[21]!==x?.description||t[22]!==x?.title||t[23]!==n||t[24]!==S||t[25]!==St||t[26]!==tt||t[27]!==G||t[28]!==_?.description||t[29]!==_?.title||t[30]!==A?(pe=G||St||tt||S?i.jsxRuntimeExports.jsx(Ue.GraphHeader,{styles:{title:_?.title,description:_?.description},classNames:{title:x?.title,description:x?.description},graphTitle:G,graphDescription:St,width:A,graphDownload:tt?l:void 0,dataDownload:S?n.map(Di).filter(Ni).length>0?n.map(Vi).filter(Ii):n.filter(Li):null}):null,t[21]=x?.description,t[22]=x?.title,t[23]=n,t[24]=S,t[25]=St,t[26]=tt,t[27]=G,t[28]=_?.description,t[29]=_?.title,t[30]=A,t[31]=pe):pe=t[31];let oe;t[32]!==V||t[33]!==he||t[34]!==Nt||t[35]!==v.enabled||t[36]!==F?(oe=v.enabled&&F.length>0&&he?i.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[i.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{Ut(!Nt)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":Nt?"Click to pause animation":"Click to play animation",children:Nt?i.jsxRuntimeExports.jsx(Me.Pause,{}):i.jsxRuntimeExports.jsx(Me.Play,{})}),i.jsxRuntimeExports.jsx(Re.Nr,{min:F[0],max:F[F.length-1],marks:he,step:null,defaultValue:F[F.length-1],value:F[V],onChangeComplete:Qt=>{M(F.indexOf(Qt))},onChange:Qt=>{M(F.indexOf(Qt))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,t[32]=V,t[33]=he,t[34]=Nt,t[35]=v.enabled,t[36]=F,t[37]=oe):oe=t[37];let le;t[38]!==x?.colorLegend||t[39]!==ft||t[40]!==et||t[41]!==W||t[42]!==n.length||t[43]!==wt||t[44]!==A?(le=wt&&n.length>0?i.jsxRuntimeExports.jsx(Ke.ColorLegendWithMouseOver,{width:A,colorDomain:ft,colors:W,colorLegendTitle:et,setSelectedColor:p,showNAColor:!1,className:x?.colorLegend}):null,t[38]=x?.colorLegend,t[39]=ft,t[40]=et,t[41]=W,t[42]=n.length,t[43]=wt,t[44]=A,t[45]=le):le=t[45];let ue;t[46]!==n.length?(ue=n.length===0&&i.jsxRuntimeExports.jsx(Qe.EmptyState,{}),t[46]=n.length,t[47]=ue):ue=t[47];let ae;t[48]!==jt||t[49]!==Y||t[50]!==Pt||t[51]!==st||t[52]!==D||t[53]!==x||t[54]!==ft||t[55]!==W||t[56]!==U||t[57]!==n||t[58]!==Bt||t[59]!==ht||t[60]!==b||t[61]!==V||t[62]!==d||t[63]!==I||t[64]!==E||t[65]!==H||t[66]!==c||t[67]!==s||t[68]!==j||t[69]!==pt||t[70]!==o||t[71]!==T||t[72]!==Ot||t[73]!==bt||t[74]!==Z||t[75]!==ct||t[76]!==K||t[77]!==N||t[78]!==It||t[79]!==k||t[80]!==vt||t[81]!==Yt||t[82]!==at||t[83]!==_||t[84]!==zt||t[85]!==h||t[86]!==$t||t[87]!==v.dateFormat||t[88]!==v.enabled||t[89]!==gt||t[90]!==z||t[91]!==mt||t[92]!==F||t[93]!==dt?(ae=$t&&h&&n.length>0?i.jsxRuntimeExports.jsx(jt,{hideAxisLine:b,data:at!==void 0?at==="total"?Pe.orderBy($e.ensureCompleteDataForStackedBarChart(n,v.dateFormat||"yyyy").filter(Qt=>v.enabled?Qt.date===je.format(new Date(F[V]),v.dateFormat||"yyyy"):Qt).filter(Qt=>ht?!Qt.size.every(Mi):Qt),Ci,[Yt||"asc"]):Pe.orderBy($e.ensureCompleteDataForStackedBarChart(n,v.dateFormat||"yyyy").filter(Qt=>v.enabled?Qt.date===je.format(new Date(F[V]),v.dateFormat||"yyyy"):Qt).filter(Qt=>ht?!Qt.size.every(Ei):Qt),Qt=>ee.checkIfNullOrUndefined(Qt.size[at])?-1/0:Qt.size[at],[Yt||"asc"]):$e.ensureCompleteDataForStackedBarChart(n,v.dateFormat||"yyyy").filter(Qt=>ht?!Qt.size.every(ki):Qt),barColors:W,width:$t,height:h,suffix:zt,prefix:bt,showValues:vt,barPadding:st,showTicks:k,leftMargin:E,rightMargin:K,topMargin:z,bottomMargin:D,truncateBy:mt,showLabels:It,tooltip:gt,onSeriesMouseOver:T,refValues:Z,maxValue:ee.checkIfNullOrUndefined(c)?Math.max(...n.map($i))<0?0:Math.max(...n.map(Ai)):c,minValue:ee.checkIfNullOrUndefined(s)?Math.min(...n.map(vi))>=0?0:Math.min(...n.map(yi)):s,onSeriesMouseClick:o,selectedColor:N,labelOrder:d,rtl:I==="he"||I==="ar",maxBarThickness:H,resetSelectionOnDoubleClick:ct,detailsOnClick:Bt,barAxisTitle:Pt,noOfTicks:pt,valueColor:dt,styles:_,classNames:x,colorDomain:ft,animate:Y===!0?{duration:.5,once:!0,amount:.5}:Y||{duration:0,once:!0,amount:0},precision:Ot,customLayers:U,naLabel:j}):null,t[48]=jt,t[49]=Y,t[50]=Pt,t[51]=st,t[52]=D,t[53]=x,t[54]=ft,t[55]=W,t[56]=U,t[57]=n,t[58]=Bt,t[59]=ht,t[60]=b,t[61]=V,t[62]=d,t[63]=I,t[64]=E,t[65]=H,t[66]=c,t[67]=s,t[68]=j,t[69]=pt,t[70]=o,t[71]=T,t[72]=Ot,t[73]=bt,t[74]=Z,t[75]=ct,t[76]=K,t[77]=N,t[78]=It,t[79]=k,t[80]=vt,t[81]=Yt,t[82]=at,t[83]=_,t[84]=zt,t[85]=h,t[86]=$t,t[87]=v.dateFormat,t[88]=v.enabled,t[89]=gt,t[90]=z,t[91]=mt,t[92]=F,t[93]=dt,t[94]=ae):ae=t[94];let re;t[95]!==ue||t[96]!==ae?(re=i.jsxRuntimeExports.jsxs(Le.GraphArea,{ref:w,children:[ue,ae]}),t[95]=ue,t[96]=ae,t[97]=re):re=t[97];let xe;t[98]!==le||t[99]!==re?(xe=i.jsxRuntimeExports.jsxs("div",{className:"grow flex flex-col justify-center gap-3 w-full",children:[le,re]}),t[98]=le,t[99]=re,t[100]=xe):xe=t[100];let de;t[101]!==x?.footnote||t[102]!==x?.source||t[103]!==X||t[104]!==Kt||t[105]!==_?.footnote||t[106]!==_?.source||t[107]!==A?(de=Kt||X?i.jsxRuntimeExports.jsx(Je.GraphFooter,{styles:{footnote:_?.footnote,source:_?.source},classNames:{footnote:x?.footnote,source:x?.source},sources:Kt,footNote:X,width:A}):null,t[101]=x?.footnote,t[102]=x?.source,t[103]=X,t[104]=Kt,t[105]=_?.footnote,t[106]=_?.source,t[107]=A,t[108]=de):de=t[108];let ce;return t[109]!==Ht||t[110]!==Tt||t[111]!==it||t[112]!==J||t[113]!==I||t[114]!==Vt||t[115]!==Lt||t[116]!==Q||t[117]!==ve||t[118]!==ye||t[119]!==pe||t[120]!==oe||t[121]!==xe||t[122]!==de||t[123]!==At||t[124]!==A?(ce=i.jsxRuntimeExports.jsxs(Le.GraphContainer,{className:ve,style:ye,id:it,ref:l,"aria-label":Ht,backgroundColor:Tt,theme:At,language:I,minHeight:Vt,width:A,height:J,relativeHeight:Q,padding:Lt,children:[pe,oe,xe,de]}),t[109]=Ht,t[110]=Tt,t[111]=it,t[112]=J,t[113]=I,t[114]=Vt,t[115]=Lt,t[116]=Q,t[117]=ve,t[118]=ye,t[119]=pe,t[120]=oe,t[121]=xe,t[122]=de,t[123]=At,t[124]=A,t[125]=ce):ce=t[125],ce}function yi(e){return Math.min(...e.size.filter(bi))}function bi(e){return!ee.checkIfNullOrUndefined(e)}function vi(e){return Math.min(...e.size.filter(wi))}function wi(e){return!ee.checkIfNullOrUndefined(e)}function Ai(e){return Math.max(...e.size.filter(ji))}function ji(e){return!ee.checkIfNullOrUndefined(e)}function $i(e){return Math.max(...e.size.filter(Oi))}function Oi(e){return!ee.checkIfNullOrUndefined(e)}function ki(e){return e==null}function Ei(e){return e==null}function Ci(e){return me.sum(e.size.filter(Ri))}function Ri(e){return!ee.checkIfNullOrUndefined(e)}function Mi(e){return e==null}function Li(e){return e!==void 0}function Ii(e){return e!==void 0}function Vi(e){return e.data}function Ni(e){return e!==void 0}function Di(e){return e.data}function Si(e,t){return e-t}function zi(e){return e.date}function Ti(e){const t=i.compilerRuntimeExports.c(133),{data:n,barColor:G,suffix:Jt,prefix:Kt,barPadding:St,showValues:Ct,showTicks:Ft,truncateBy:P,width:J,height:A,colorDomain:X,topMargin:ft,bottomMargin:et,leftMargin:Rt,rightMargin:q,showLabels:nt,tooltip:Mt,onSeriesMouseOver:Lt,refValues:qt,selectedColor:E,highlightedDataPoints:K,maxValue:z,minValue:D,onSeriesMouseClick:xt,labelOrder:Q,rtl:gt,maxBarThickness:T,minBarThickness:Z,resetSelectionOnDoubleClick:it,detailsOnClick:c,barAxisTitle:s,valueColor:o,noOfTicks:m,styles:u,classNames:f,animate:d,dimmedOpacity:ot,precision:L,customLayers:H,naLabel:Ht,trackColor:Wt,hideAxisLine:Bt}=e,Pt=ft===void 0?25:ft,lt=et===void 0?10:et,dt=Rt===void 0?100:Rt,_=q===void 0?40:q,x=ut.useRef(null);let r;t[0]!==d.amount||t[1]!==d.once?(r={once:d.once,amount:d.amount},t[0]=d.amount,t[1]=d.once,t[2]=r):r=t[2];const R=Te.useInView(x,r),[yt,y]=ut.useState(void 0),[C,Xt]=ut.useState(void 0),[at,Yt]=ut.useState(void 0),[rt,Gt]=ut.useState(void 0),W=s?Pt+25:Pt;let st;t[3]!==lt||t[4]!==dt||t[5]!==_||t[6]!==W?(st={top:W,bottom:lt,left:dt,right:_},t[3]=lt,t[4]=dt,t[5]=_,t[6]=W,t[7]=st):st=t[7];const k=st,mt=J-k.left-k.right,zt=A-k.top-k.bottom;let bt;if(t[8]!==n||t[9]!==Q){const h=new Set,g=n.map((Ut,Zt)=>{const F=Q?`${Ut.label}`:`${Zt}`;return h.add(F),{...Ut,id:F}}),Nt=Q?Q.filter(Ut=>!h.has(Ut)):[];bt=[...g,...Nt.map(Ki)],t[8]=n,t[9]=Q,t[10]=bt}else bt=t[10];const vt=bt;let wt;t[11]!==vt||t[12]!==Q?(wt=Q??vt.map(Ji),t[11]=vt,t[12]=Q,t[13]=wt):wt=t[13];const Tt=wt;let It,tt,S,I,Vt,At,ct,pt,ht,Y,Ot,kt,U,Et;if(t[14]!==d||t[15]!==s||t[16]!==G||t[17]!==Tt||t[18]!==St||t[19]!==f?.graphObjectValues||t[20]!==f?.xAxis?.gridLines||t[21]!==f?.xAxis?.labels||t[22]!==f?.xAxis?.title||t[23]!==f?.yAxis?.axis||t[24]!==f?.yAxis?.labels||t[25]!==X||t[26]!==H||t[27]!==n||t[28]!==vt||t[29]!==c||t[30]!==ot||t[31]!==zt||t[32]!==mt||t[33]!==A||t[34]!==Bt||t[35]!==K||t[36]!==R||t[37]!==k.bottom||t[38]!==k.left||t[39]!==k.top||t[40]!==T||t[41]!==z||t[42]!==Z||t[43]!==D||t[44]!==C||t[45]!==Ht||t[46]!==m||t[47]!==xt||t[48]!==Lt||t[49]!==L||t[50]!==Kt||t[51]!==qt||t[52]!==it||t[53]!==gt||t[54]!==E||t[55]!==nt||t[56]!==Ft||t[57]!==Ct||t[58]!==u?.graphObjectValues||t[59]!==u?.xAxis?.gridLines||t[60]!==u?.xAxis?.labels||t[61]!==u?.xAxis?.title||t[62]!==u?.yAxis?.axis||t[63]!==u?.yAxis?.labels||t[64]!==Jt||t[65]!==Pt||t[66]!==Wt||t[67]!==P||t[68]!==o||t[69]!==J){const h=Fe.linear().domain([D,z]).range([0,mt]).nice(),g=Oe.band().domain(Tt).range([0,Z?Math.max(zt,Z*Tt.length):T?Math.min(zt,T*Tt.length):zt]).paddingInner(St),Nt=h.ticks(m);tt=_t.motion.svg,ht=x,Y=`${J}px`,Ot=`${A}px`,kt=`0 0 ${J} ${A}`,U="ltr",Vt=`translate(${k.left},${k.top})`,At=Ft?i.jsxRuntimeExports.jsx(We.XTicksAndGridLines,{values:Nt.filter(Ui),x:Nt.filter(Yi).map(l=>h(l)),y1:0-Pt,y2:zt+k.bottom,styles:{gridLines:u?.xAxis?.gridLines,labels:u?.xAxis?.labels},classNames:{gridLines:f?.xAxis?.gridLines,labels:f?.xAxis?.labels},suffix:Jt,prefix:Kt,labelType:"secondary",showGridLines:!0,precision:L}):null;const Ut=mt/2,Zt=0-k.top+15,F=u?.xAxis?.title,V=f?.xAxis?.title;t[84]!==s||t[85]!==Ut||t[86]!==Zt||t[87]!==F||t[88]!==V?(ct=i.jsxRuntimeExports.jsx(De.AxisTitle,{x:Ut,y:Zt,style:F,className:V,text:s}),t[84]=s,t[85]=Ut,t[86]=Zt,t[87]=F,t[88]=V,t[89]=ct):ct=t[89],t[90]!==H?(pt=H.filter(Xi).map(Wi),t[90]=H,t[91]=pt):pt=t[91],It=Be.AnimatePresence,Et=vt.map(l=>ee.checkIfNullOrUndefined(g(l.id))?null:i.jsxRuntimeExports.jsxs(_t.motion.g,{className:"undp-viz-g-with-hover",variants:{initial:{opacity:E?l.color&&G[X.indexOf(l.color)]===E?1:ot:K.length!==0?K.indexOf(l.label)!==-1?.85:ot:.85},whileInView:{opacity:E?l.color&&G[X.indexOf(l.color)]===E?1:ot:K.length!==0?K.indexOf(l.label)!==-1?.85:ot:.85,transition:{duration:d.duration}}},initial:"initial",animate:R?"whileInView":"initial",exit:{opacity:0,transition:{duration:d.duration}},onMouseEnter:B=>{y(l),Gt(B.clientY),Yt(B.clientX),Lt?.(l)},onClick:()=>{(xt||c)&&(Ie.isEqual(C,l)&&it?(Xt(void 0),xt?.(void 0)):(Xt(l),xt?.(l)))},onMouseMove:B=>{y(l),Gt(B.clientY),Yt(B.clientX)},onMouseLeave:()=>{y(void 0),Yt(void 0),Gt(void 0),Lt?.(void 0)},children:[Wt&&i.jsxRuntimeExports.jsx(_t.motion.rect,{height:g.bandwidth(),variants:{initial:{width:mt,x:0,y:g(`${l.id}`),fill:Wt},whileInView:{width:mt,x:0,y:g(`${l.id}`),fill:Wt}},initial:"initial",animate:R?"whileInView":"initial",exit:{opacity:0,transition:{duration:d.duration}}}),l.size?i.jsxRuntimeExports.jsx(_t.motion.rect,{variants:{initial:{width:0,x:h(0),y:g(`${l.id}`),fill:n.filter(Hi).length===0?G[0]:l.color?G[X.indexOf(l.color)]:fe.Colors.gray},whileInView:{width:l.size>=0?h(l.size)-h(0):h(0)-h(l.size),x:l.size>=0?h(0):h(l.size),y:g(`${l.id}`),fill:n.filter(qi).length===0?G[0]:l.color?G[X.indexOf(l.color)]:fe.Colors.gray,transition:{duration:d.duration}}},initial:"initial",animate:R?"whileInView":"initial",exit:{width:0,x:h(0),transition:{duration:d.duration}},height:g.bandwidth()}):null,nt?i.jsxRuntimeExports.jsx(He.YAxesLabels,{value:`${l.label}`.length<P?`${l.label}`:`${`${l.label}`.substring(0,P)}...`,y:g(l.id)||0,x:(l.size||0)<0?h(0):0-k.left,width:(l.size||0)<0?J-h(0):h(0)+k.left,height:g.bandwidth(),alignment:l.size&&l.size<0?"left":"right",style:u?.yAxis?.labels,className:f?.yAxis?.labels,animate:d,isInView:R}):null,Ct?i.jsxRuntimeExports.jsx(_t.motion.text,{style:{textAnchor:l.size&&l.size<0?"end":"start",...u?.graphObjectValues||{}},className:i.mo("graph-value text-sm",!o&&G.length>1?" fill-primary-gray-600 dark:fill-primary-gray-300":"",f?.graphObjectValues),dx:l.size&&l.size<0?-5:5,dy:"0.33em",variants:{initial:{x:h(0),y:g(`${l.id}`)+g.bandwidth()/2,opacity:0,fill:o||(n.filter(Gi).length===0?G[0]:l.color?G[X.indexOf(l.color)]:fe.Colors.gray)},whileInView:{x:l.size?h(l.size):h(0),opacity:1,y:g(`${l.id}`)+g.bandwidth()/2,fill:o||(n.filter(Pi).length===0?G[0]:l.color?G[X.indexOf(l.color)]:fe.Colors.gray),transition:{duration:d.duration}}},initial:"initial",animate:R?"whileInView":"initial",exit:{opacity:0,transition:{duration:d.duration}},children:be.numberFormattingFunction(l.size,Ht,L,Kt,Jt)}):null]},l.label));const M=f?.yAxis?.axis;let N;t[92]!==M?(N={axis:M},t[92]=M,t[93]=N):N=t[93];const p=u?.yAxis?.axis;let w;t[94]!==p?(w={axis:p},t[94]=p,t[95]=w):w=t[95],S=i.jsxRuntimeExports.jsx(Ne.Axis,{hideAxisLine:Bt,x1:h(D<0?0:D),x2:h(D<0?0:D),y1:-2.5,y2:zt+k.bottom,classNames:N,styles:w}),I=qt?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:qt.map((l,B)=>i.jsxRuntimeExports.jsx(Se.RefLineX,{text:l.text,color:l.color,x:h(l.value),y1:0-k.top,y2:zt+k.bottom,textSide:h(l.value)>mt*.75||gt?"left":"right",classNames:l.classNames,styles:l.styles,animate:d,isInView:R},B))}):null,t[14]=d,t[15]=s,t[16]=G,t[17]=Tt,t[18]=St,t[19]=f?.graphObjectValues,t[20]=f?.xAxis?.gridLines,t[21]=f?.xAxis?.labels,t[22]=f?.xAxis?.title,t[23]=f?.yAxis?.axis,t[24]=f?.yAxis?.labels,t[25]=X,t[26]=H,t[27]=n,t[28]=vt,t[29]=c,t[30]=ot,t[31]=zt,t[32]=mt,t[33]=A,t[34]=Bt,t[35]=K,t[36]=R,t[37]=k.bottom,t[38]=k.left,t[39]=k.top,t[40]=T,t[41]=z,t[42]=Z,t[43]=D,t[44]=C,t[45]=Ht,t[46]=m,t[47]=xt,t[48]=Lt,t[49]=L,t[50]=Kt,t[51]=qt,t[52]=it,t[53]=gt,t[54]=E,t[55]=nt,t[56]=Ft,t[57]=Ct,t[58]=u?.graphObjectValues,t[59]=u?.xAxis?.gridLines,t[60]=u?.xAxis?.labels,t[61]=u?.xAxis?.title,t[62]=u?.yAxis?.axis,t[63]=u?.yAxis?.labels,t[64]=Jt,t[65]=Pt,t[66]=Wt,t[67]=P,t[68]=o,t[69]=J,t[70]=It,t[71]=tt,t[72]=S,t[73]=I,t[74]=Vt,t[75]=At,t[76]=ct,t[77]=pt,t[78]=ht,t[79]=Y,t[80]=Ot,t[81]=kt,t[82]=U,t[83]=Et}else It=t[70],tt=t[71],S=t[72],I=t[73],Vt=t[74],At=t[75],ct=t[76],pt=t[77],ht=t[78],Y=t[79],Ot=t[80],kt=t[81],U=t[82],Et=t[83];let v;t[96]!==It||t[97]!==S||t[98]!==I||t[99]!==Et?(v=i.jsxRuntimeExports.jsxs(It,{children:[Et,S,I]}),t[96]=It,t[97]=S,t[98]=I,t[99]=Et,t[100]=v):v=t[100];let j;t[101]!==H?(j=H.filter(Bi).map(Fi),t[101]=H,t[102]=j):j=t[102];let $;t[103]!==Vt||t[104]!==At||t[105]!==ct||t[106]!==pt||t[107]!==v||t[108]!==j?($=i.jsxRuntimeExports.jsxs("g",{transform:Vt,children:[At,ct,pt,v,j]}),t[103]=Vt,t[104]=At,t[105]=ct,t[106]=pt,t[107]=v,t[108]=j,t[109]=$):$=t[109];let b;t[110]!==tt||t[111]!==ht||t[112]!==Y||t[113]!==Ot||t[114]!==kt||t[115]!==U||t[116]!==$?(b=i.jsxRuntimeExports.jsx(tt,{ref:ht,width:Y,height:Ot,viewBox:kt,direction:U,children:$}),t[110]=tt,t[111]=ht,t[112]=Y,t[113]=Ot,t[114]=kt,t[115]=U,t[116]=$,t[117]=b):b=t[117];let jt;t[118]!==f?.tooltip||t[119]!==at||t[120]!==rt||t[121]!==yt||t[122]!==u?.tooltip||t[123]!==Mt?(jt=yt&&Mt&&at&&rt?i.jsxRuntimeExports.jsx(Ve.Tooltip,{data:yt,body:Mt,xPos:at,yPos:rt,backgroundStyle:u?.tooltip,className:f?.tooltip}):null,t[118]=f?.tooltip,t[119]=at,t[120]=rt,t[121]=yt,t[122]=u?.tooltip,t[123]=Mt,t[124]=jt):jt=t[124];let $t;t[125]!==f?.modal||t[126]!==c||t[127]!==C?($t=c&&C!==void 0?i.jsxRuntimeExports.jsx(ze.DetailsModal,{body:c,data:C,setData:Xt,className:f?.modal}):null,t[125]=f?.modal,t[126]=c,t[127]=C,t[128]=$t):$t=t[128];let O;return t[129]!==b||t[130]!==jt||t[131]!==$t?(O=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[b,jt,$t]}),t[129]=b,t[130]=jt,t[131]=$t,t[132]=O):O=t[132],O}function Fi(e){return e.layer}function Bi(e){return e.position==="after"}function Pi(e){return e.color}function Gi(e){return e.color}function qi(e){return e.color}function Hi(e){return e.color}function Wi(e){return e.layer}function Xi(e){return e.position==="before"}function Yi(e){return e!==0}function Ui(e){return e!==0}function Ji(e){return`${e.id}`}function Ki(e){return{id:e,label:e,color:null,size:null}}function Qi(e){const t=i.compilerRuntimeExports.c(142),{leftMargin:n,rightMargin:G,topMargin:Jt,bottomMargin:Kt,data:St,width:Ct,height:Ft,barColor:P,suffix:J,prefix:A,barPadding:X,showLabels:ft,showValues:et,showTicks:Rt,colorDomain:q,truncateBy:nt,tooltip:Mt,onSeriesMouseOver:Lt,refValues:qt,selectedColor:E,maxValue:K,minValue:z,highlightedDataPoints:D,onSeriesMouseClick:xt,labelOrder:Q,maxBarThickness:gt,minBarThickness:T,resetSelectionOnDoubleClick:Z,detailsOnClick:it,barAxisTitle:c,valueColor:s,noOfTicks:o,styles:m,classNames:u,dimmedOpacity:f,animate:d,precision:ot,customLayers:L,naLabel:H,trackColor:Ht,hideAxisLine:Wt}=e,Bt=n===void 0?20:n,Pt=G===void 0?20:G,lt=Jt===void 0?20:Jt,dt=Kt===void 0?25:Kt,_=ut.useRef(null);let x;t[0]!==d.amount||t[1]!==d.once?(x={once:d.once,amount:d.amount},t[0]=d.amount,t[1]=d.once,t[2]=x):x=t[2];const r=Te.useInView(_,x),R=c?Bt+30:Bt;let yt;t[3]!==dt||t[4]!==Pt||t[5]!==R||t[6]!==lt?(yt={top:lt,bottom:dt,left:R,right:Pt},t[3]=dt,t[4]=Pt,t[5]=R,t[6]=lt,t[7]=yt):yt=t[7];const y=yt,[C,Xt]=ut.useState(void 0),[at,Yt]=ut.useState(void 0),[rt,Gt]=ut.useState(void 0),[W,st]=ut.useState(void 0),k=Ct-y.left-y.right,mt=Ft-y.top-y.bottom;let zt;if(t[8]!==St||t[9]!==Q){const O=new Set,h=St.map((Nt,Ut)=>{const Zt=Q?`${Nt.label}`:`${Ut}`;return O.add(Zt),{...Nt,id:Zt}}),g=Q?Q.filter(Nt=>!O.has(Nt)):[];zt=[...h,...g.map(cs)],t[8]=St,t[9]=Q,t[10]=zt}else zt=t[10];const bt=zt;let vt;t[11]!==bt||t[12]!==Q?(vt=Q??bt.map(rs),t[11]=bt,t[12]=Q,t[13]=vt):vt=t[13];const wt=vt;let Tt,It,tt,S,I,Vt,At,ct,pt,ht,Y,Ot,kt,U;if(t[14]!==d||t[15]!==c||t[16]!==P||t[17]!==wt||t[18]!==X||t[19]!==u?.graphObjectValues||t[20]!==u?.xAxis?.axis||t[21]!==u?.xAxis?.labels||t[22]!==u?.yAxis?.gridLines||t[23]!==u?.yAxis?.labels||t[24]!==u?.yAxis?.title||t[25]!==q||t[26]!==L||t[27]!==St||t[28]!==bt||t[29]!==it||t[30]!==f||t[31]!==mt||t[32]!==k||t[33]!==Ft||t[34]!==Wt||t[35]!==D||t[36]!==r||t[37]!==Bt||t[38]!==y.bottom||t[39]!==y.left||t[40]!==y.right||t[41]!==y.top||t[42]!==gt||t[43]!==K||t[44]!==T||t[45]!==z||t[46]!==at||t[47]!==H||t[48]!==o||t[49]!==xt||t[50]!==Lt||t[51]!==ot||t[52]!==A||t[53]!==qt||t[54]!==Z||t[55]!==E||t[56]!==ft||t[57]!==Rt||t[58]!==et||t[59]!==m?.graphObjectValues||t[60]!==m?.xAxis?.axis||t[61]!==m?.xAxis?.labels||t[62]!==m?.yAxis?.gridLines||t[63]!==m?.yAxis?.labels||t[64]!==m?.yAxis?.title||t[65]!==J||t[66]!==Ht||t[67]!==nt||t[68]!==s||t[69]!==Ct){const O=Fe.linear().domain([z,K]).range([mt,0]).nice(),h=Oe.band().domain(wt).range([0,T?Math.max(k,T*wt.length):gt?Math.min(k,gt*wt.length):k]).paddingInner(X),g=O.ticks(o);It=_t.motion.svg,pt=_,ht=`${Ct}px`,Y=`${Ft}px`,Ot=`0 0 ${Ct} ${Ft}`,kt="ltr",S=`translate(${y.left},${y.top})`;let Nt;t[84]!==z||t[85]!==H||t[86]!==ot||t[87]!==A||t[88]!==Rt||t[89]!==J?(Nt=Rt?be.numberFormattingFunction(z<0?0:z,H,ot,A,J):void 0,t[84]=z,t[85]=H,t[86]=ot,t[87]=A,t[88]=Rt,t[89]=J,t[90]=Nt):Nt=t[90];const Ut=u?.xAxis?.axis,Zt=u?.yAxis?.labels;let F;t[91]!==Ut||t[92]!==Zt?(F={axis:Ut,label:Zt},t[91]=Ut,t[92]=Zt,t[93]=F):F=t[93];const V=m?.xAxis?.axis,M=m?.yAxis?.labels;let N;t[94]!==V||t[95]!==M?(N={axis:V,label:M},t[94]=V,t[95]=M,t[96]=N):N=t[96],I=i.jsxRuntimeExports.jsx(Ne.Axis,{hideAxisLine:Wt,y1:O(z<0?0:z),y2:O(z<0?0:z),x1:0-Bt,x2:k+y.right,label:Nt,labelPos:{x:0-Bt,dx:0,dy:K<0?"1em":-5,y:O(z<0?0:z)},classNames:F,styles:N}),Vt=Rt?i.jsxRuntimeExports.jsx(Xe.YTicksAndGridLines,{values:g.filter(as),y:g.filter(ls).map(a=>O(a)),x1:0-Bt,x2:k+y.right,styles:{gridLines:m?.yAxis?.gridLines,labels:m?.yAxis?.labels},classNames:{gridLines:u?.yAxis?.gridLines,labels:u?.yAxis?.labels},suffix:J,prefix:A,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:ot}):null;const p=0-Bt-15,w=mt/2,l=m?.yAxis?.title,B=u?.yAxis?.title;t[97]!==c||t[98]!==p||t[99]!==w||t[100]!==l||t[101]!==B?(At=i.jsxRuntimeExports.jsx(De.AxisTitle,{x:p,y:w,style:l,className:B,text:c,rotate90:!0}),t[97]=c,t[98]=p,t[99]=w,t[100]=l,t[101]=B,t[102]=At):At=t[102],t[103]!==L?(ct=L.filter(os).map(ns),t[103]=L,t[104]=ct):ct=t[104],Tt=Be.AnimatePresence,U=bt.map((a,ie)=>ee.checkIfNullOrUndefined(h(a.id))?null:i.jsxRuntimeExports.jsxs(_t.motion.g,{className:"undp-viz-g-with-hover",initial:"initial",animate:r?"whileInView":"initial",variants:{initial:{opacity:E?a.color&&P[q.indexOf(a.color)]===E?1:f:D.length!==0?D.indexOf(a.label)!==-1?.85:f:.85},whileInView:{opacity:E?a.color&&P[q.indexOf(a.color)]===E?1:f:D.length!==0?D.indexOf(a.label)!==-1?.85:f:.85,transition:{duration:d.duration}}},exit:{opacity:0,transition:{duration:d.duration}},onMouseEnter:ne=>{Xt(a),st(ne.clientY),Gt(ne.clientX),Lt?.(a)},onClick:()=>{(xt||it)&&(Ie.isEqual(at,a)&&Z?(Yt(void 0),xt?.(void 0)):(Yt(a),xt?.(a)))},onMouseMove:ne=>{Xt(a),st(ne.clientY),Gt(ne.clientX)},onMouseLeave:()=>{Xt(void 0),Gt(void 0),st(void 0),Lt?.(void 0)},children:[Ht&&i.jsxRuntimeExports.jsx(_t.motion.rect,{width:h.bandwidth(),variants:{initial:{height:mt,y:0,x:h(`${a.id}`),fill:Ht},whileInView:{height:mt,y:0,x:h(`${a.id}`),fill:Ht}},initial:"initial",animate:r?"whileInView":"initial",exit:{opacity:0,transition:{duration:d.duration}}}),a.size?i.jsxRuntimeExports.jsx(_t.motion.rect,{width:h.bandwidth(),initial:"initial",animate:r?"whileInView":"initial",variants:{initial:{height:0,x:h(`${a.id}`),y:O(0),fill:St.filter(ss).length===0?P[0]:a.color?P[q.indexOf(a.color)]:fe.Colors.gray},whileInView:{height:a.size?Math.abs(O(a.size)-O(0)):0,y:a.size&&a.size>0?O(a.size):O(0),x:h(`${a.id}`),fill:St.filter(is).length===0?P[0]:a.color?P[q.indexOf(a.color)]:fe.Colors.gray,transition:{duration:d.duration}}},exit:{height:0,y:O(0),transition:{duration:d.duration}}}):null,ft?i.jsxRuntimeExports.jsx(Ye.XAxesLabels,{value:`${a.label}`.length<nt?`${a.label}`:`${`${a.label}`.substring(0,nt)}...`,y:(a.size||0)<0?0:O(0)+5,x:h(`${a.id}`),width:h.bandwidth(),height:(a.size||0)<0?O(0)-5:y.bottom,style:m?.xAxis?.labels,className:u?.xAxis?.labels,alignment:(a.size||0)<0?"bottom":"top",animate:d,isInView:r}):null,et?i.jsxRuntimeExports.jsx(_t.motion.text,{style:{textAnchor:"middle",...m?.graphObjectValues||{}},className:i.mo("graph-value text-sm",!s&&P.length>1?"fill-primary-gray-600 dark:fill-primary-gray-300":"",u?.graphObjectValues),dy:a.size?a.size>=0?"-5px":"1em":"-5px",variants:{initial:{x:h(`${a.id}`)+h.bandwidth()/2,y:O(0),opacity:0,fill:s||(St.filter(es).length===0?P[0]:a.color?P[q.indexOf(a.color)]:fe.Colors.gray)},whileInView:{x:h(`${a.id}`)+h.bandwidth()/2,y:O(a.size||0),fill:s||(St.filter(ts).length===0?P[0]:a.color?P[q.indexOf(a.color)]:fe.Colors.gray),opacity:1,transition:{duration:d.duration}}},initial:"initial",animate:r?"whileInView":"initial",exit:{opacity:0,transition:{duration:d.duration}},children:be.numberFormattingFunction(a.size,H,ot,A,J)}):null]},a.label)),tt=qt?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:qt.map((a,ie)=>i.jsxRuntimeExports.jsx(Se.RefLineY,{text:a.text,color:a.color,y:O(a.value),x1:0-Bt,x2:k+y.right,classNames:a.classNames,styles:a.styles,animate:d,isInView:r},ie))}):null,t[14]=d,t[15]=c,t[16]=P,t[17]=wt,t[18]=X,t[19]=u?.graphObjectValues,t[20]=u?.xAxis?.axis,t[21]=u?.xAxis?.labels,t[22]=u?.yAxis?.gridLines,t[23]=u?.yAxis?.labels,t[24]=u?.yAxis?.title,t[25]=q,t[26]=L,t[27]=St,t[28]=bt,t[29]=it,t[30]=f,t[31]=mt,t[32]=k,t[33]=Ft,t[34]=Wt,t[35]=D,t[36]=r,t[37]=Bt,t[38]=y.bottom,t[39]=y.left,t[40]=y.right,t[41]=y.top,t[42]=gt,t[43]=K,t[44]=T,t[45]=z,t[46]=at,t[47]=H,t[48]=o,t[49]=xt,t[50]=Lt,t[51]=ot,t[52]=A,t[53]=qt,t[54]=Z,t[55]=E,t[56]=ft,t[57]=Rt,t[58]=et,t[59]=m?.graphObjectValues,t[60]=m?.xAxis?.axis,t[61]=m?.xAxis?.labels,t[62]=m?.yAxis?.gridLines,t[63]=m?.yAxis?.labels,t[64]=m?.yAxis?.title,t[65]=J,t[66]=Ht,t[67]=nt,t[68]=s,t[69]=Ct,t[70]=Tt,t[71]=It,t[72]=tt,t[73]=S,t[74]=I,t[75]=Vt,t[76]=At,t[77]=ct,t[78]=pt,t[79]=ht,t[80]=Y,t[81]=Ot,t[82]=kt,t[83]=U}else Tt=t[70],It=t[71],tt=t[72],S=t[73],I=t[74],Vt=t[75],At=t[76],ct=t[77],pt=t[78],ht=t[79],Y=t[80],Ot=t[81],kt=t[82],U=t[83];let Et;t[105]!==Tt||t[106]!==tt||t[107]!==U?(Et=i.jsxRuntimeExports.jsxs(Tt,{children:[U,tt]}),t[105]=Tt,t[106]=tt,t[107]=U,t[108]=Et):Et=t[108];let v;t[109]!==L?(v=L.filter(_i).map(Zi),t[109]=L,t[110]=v):v=t[110];let j;t[111]!==S||t[112]!==I||t[113]!==Vt||t[114]!==At||t[115]!==ct||t[116]!==Et||t[117]!==v?(j=i.jsxRuntimeExports.jsxs("g",{transform:S,children:[I,Vt,At,ct,Et,v]}),t[111]=S,t[112]=I,t[113]=Vt,t[114]=At,t[115]=ct,t[116]=Et,t[117]=v,t[118]=j):j=t[118];let $;t[119]!==It||t[120]!==pt||t[121]!==ht||t[122]!==Y||t[123]!==Ot||t[124]!==kt||t[125]!==j?($=i.jsxRuntimeExports.jsx(It,{ref:pt,width:ht,height:Y,viewBox:Ot,direction:kt,children:j}),t[119]=It,t[120]=pt,t[121]=ht,t[122]=Y,t[123]=Ot,t[124]=kt,t[125]=j,t[126]=$):$=t[126];let b;t[127]!==u?.tooltip||t[128]!==rt||t[129]!==W||t[130]!==C||t[131]!==m?.tooltip||t[132]!==Mt?(b=C&&Mt&&rt&&W?i.jsxRuntimeExports.jsx(Ve.Tooltip,{data:C,body:Mt,xPos:rt,yPos:W,backgroundStyle:m?.tooltip,className:u?.tooltip}):null,t[127]=u?.tooltip,t[128]=rt,t[129]=W,t[130]=C,t[131]=m?.tooltip,t[132]=Mt,t[133]=b):b=t[133];let jt;t[134]!==u?.modal||t[135]!==it||t[136]!==at?(jt=it&&at!==void 0?i.jsxRuntimeExports.jsx(ze.DetailsModal,{body:it,data:at,setData:Yt,className:u?.modal}):null,t[134]=u?.modal,t[135]=it,t[136]=at,t[137]=jt):jt=t[137];let $t;return t[138]!==$||t[139]!==b||t[140]!==jt?($t=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[$,b,jt]}),t[138]=$,t[139]=b,t[140]=jt,t[141]=$t):$t=t[141],$t}function Zi(e){return e.layer}function _i(e){return e.position==="after"}function ts(e){return e.color}function es(e){return e.color}function is(e){return e.color}function ss(e){return e.color}function ns(e){return e.layer}function os(e){return e.position==="before"}function ls(e){return e!==0}function as(e){return e!==0}function rs(e){return`${e.id}`}function cs(e){return{id:e,label:e,color:null,size:null}}function us(e){const t=i.compilerRuntimeExports.c(134),{data:n,graphTitle:G,colors:Jt,suffix:Kt,sources:St,prefix:Ct,graphDescription:Ft,barPadding:P,showValues:J,showTicks:A,truncateBy:X,height:ft,width:et,footNote:Rt,colorDomain:q,colorLegendTitle:nt,highlightedDataPoints:Mt,padding:Lt,backgroundColor:qt,topMargin:E,bottomMargin:K,leftMargin:z,rightMargin:D,showLabels:xt,relativeHeight:Q,tooltip:gt,onSeriesMouseOver:T,refValues:Z,showColorScale:it,graphID:c,maxValue:s,minValue:o,onSeriesMouseClick:m,graphDownload:u,dataDownload:f,sortData:d,labelOrder:ot,language:L,showNAColor:H,minHeight:Ht,theme:Wt,maxBarThickness:Bt,maxNumberOfBars:Pt,minBarThickness:lt,ariaLabel:dt,resetSelectionOnDoubleClick:_,detailsOnClick:x,barAxisTitle:r,noOfTicks:R,valueColor:yt,styles:y,classNames:C,filterNA:Xt,animate:at,dimmedOpacity:Yt,precision:rt,customLayers:Gt,timeline:W,naLabel:st,orientation:k,trackColor:mt,hideAxisLine:zt}=e,bt=Kt===void 0?"":Kt,vt=Ct===void 0?"":Ct,wt=P===void 0?.25:P,Tt=J===void 0?!0:J,It=A===void 0?!0:A,tt=X===void 0?999:X;let S;t[0]!==Mt?(S=Mt===void 0?[]:Mt,t[0]=Mt,t[1]=S):S=t[1];const I=S,Vt=qt===void 0?!1:qt,At=xt===void 0?!0:xt,ct=it===void 0?!0:it,pt=u===void 0?!1:u,ht=f===void 0?!1:f,Y=L===void 0?"en":L,Ot=H===void 0?!0:H,kt=Ht===void 0?0:Ht,U=Wt===void 0?"light":Wt,Et=_===void 0?!0:_,v=R===void 0?5:R,j=Xt===void 0?!0:Xt,$=at===void 0?!1:at,b=Yt===void 0?.3:Yt,jt=rt===void 0?2:rt;let $t;t[2]!==Gt?($t=Gt===void 0?[]:Gt,t[2]=Gt,t[3]=$t):$t=t[3];const O=$t;let h;t[4]!==W?(h=W===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:W,t[4]=W,t[5]=h):h=t[5];const g=h,Nt=st===void 0?"NA":st,Ut=k===void 0?"vertical":k,Zt=zt===void 0?!1:zt,F=Ut==="horizontal"?Ti:Qi,[V,M]=ut.useState(0),[N,p]=ut.useState(0),[w,l]=ut.useState(g.autoplay);let B;if(t[6]!==n||t[7]!==g.dateFormat){let te;t[9]!==g.dateFormat?(te=we=>je.parse(`${we.date}`,g.dateFormat||"yyyy",new Date).getTime(),t[9]=g.dateFormat,t[10]=te):te=t[10],B=[...new Set(n.filter(Cs).map(te))],B.sort(Es),t[6]=n,t[7]=g.dateFormat,t[8]=B}else B=t[8];const a=B,[ie,ne]=ut.useState(g.autoplay?0:a.length-1),[ge,Ae]=ut.useState(void 0),he=ut.useRef(null),ve=ut.useRef(null);let ye,pe;t[11]===Symbol.for("react.memo_cache_sentinel")?(ye=()=>{const te=new ResizeObserver(we=>{M(we[0].target.clientWidth||620),p(we[0].target.clientHeight||480)});return he.current&&te.observe(he.current),()=>te.disconnect()},pe=[],t[11]=ye,t[12]=pe):(ye=t[11],pe=t[12]),ut.useEffect(ye,pe);let oe,le;t[13]!==w||t[14]!==g.speed||t[15]!==a?(oe=()=>{const te=setInterval(()=>{ne(we=>we<a.length-1?we+1:0)},(g.speed||2)*1e3);return w||clearInterval(te),()=>clearInterval(te)},le=[a,w,g.speed],t[13]=w,t[14]=g.speed,t[15]=a,t[16]=oe,t[17]=le):(oe=t[16],le=t[17]),ut.useEffect(oe,le);const ue=g.dateFormat||"yyyy";let ae;t[18]!==ie||t[19]!==ue||t[20]!==g.showOnlyActiveDate||t[21]!==a?(ae=Re.getSliderMarks(a,ie,g.showOnlyActiveDate,ue),t[18]=ie,t[19]=ue,t[20]=g.showOnlyActiveDate,t[21]=a,t[22]=ae):ae=t[22];const re=ae,xe=C?.graphContainer,de=y?.graphContainer;let ce;t[23]!==C?.description||t[24]!==C?.title||t[25]!==n||t[26]!==ht||t[27]!==Ft||t[28]!==pt||t[29]!==G||t[30]!==y?.description||t[31]!==y?.title||t[32]!==et?(ce=G||Ft||pt||ht?i.jsxRuntimeExports.jsx(Ue.GraphHeader,{styles:{title:y?.title,description:y?.description},classNames:{title:C?.title,description:C?.description},graphTitle:G,graphDescription:Ft,width:et,graphDownload:pt?ve:void 0,dataDownload:ht?n.map(ks).filter(Os).length>0?n.map($s).filter(js):n.filter(As):null}):null,t[23]=C?.description,t[24]=C?.title,t[25]=n,t[26]=ht,t[27]=Ft,t[28]=pt,t[29]=G,t[30]=y?.description,t[31]=y?.title,t[32]=et,t[33]=ce):ce=t[33];let Qt;t[34]!==ie||t[35]!==re||t[36]!==w||t[37]!==g.enabled||t[38]!==a?(Qt=g.enabled&&a.length>0&&re?i.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center pb-4",dir:"ltr",children:[i.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{l(!w)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":w?"Click to pause animation":"Click to play animation",children:w?i.jsxRuntimeExports.jsx(Me.Pause,{}):i.jsxRuntimeExports.jsx(Me.Play,{})}),i.jsxRuntimeExports.jsx(Re.Nr,{min:a[0],max:a[a.length-1],marks:re,step:null,defaultValue:a[a.length-1],value:a[ie],onChangeComplete:te=>{ne(a.indexOf(te))},onChange:te=>{ne(a.indexOf(te))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,t[34]=ie,t[35]=re,t[36]=w,t[37]=g.enabled,t[38]=a,t[39]=Qt):Qt=t[39];let Dt;t[40]!==C?.colorLegend||t[41]!==q||t[42]!==nt||t[43]!==Jt||t[44]!==n||t[45]!==ct||t[46]!==Ot||t[47]!==U||t[48]!==et?(Dt=ct&&n.filter(ws).length!==0&&n.length>0?i.jsxRuntimeExports.jsx(Ke.ColorLegendWithMouseOver,{width:et,colorLegendTitle:nt,colors:Jt||fe.Colors[U].categoricalColors.colors,colorDomain:q||Ze.uniqBy(n,"color",!0),setSelectedColor:Ae,showNAColor:Ot,className:C?.colorLegend}):null,t[40]=C?.colorLegend,t[41]=q,t[42]=nt,t[43]=Jt,t[44]=n,t[45]=ct,t[46]=Ot,t[47]=U,t[48]=et,t[49]=Dt):Dt=t[49];let se;t[50]!==n.length?(se=n.length===0&&i.jsxRuntimeExports.jsx(Qe.EmptyState,{}),t[50]=n.length,t[51]=se):se=t[51];let ke;t[52]!==F||t[53]!==$||t[54]!==r||t[55]!==wt||t[56]!==K||t[57]!==C||t[58]!==q||t[59]!==Jt||t[60]!==O||t[61]!==n||t[62]!==x||t[63]!==b||t[64]!==j||t[65]!==Zt||t[66]!==I||t[67]!==ie||t[68]!==ot||t[69]!==Y||t[70]!==z||t[71]!==Bt||t[72]!==Pt||t[73]!==s||t[74]!==lt||t[75]!==o||t[76]!==Nt||t[77]!==v||t[78]!==m||t[79]!==T||t[80]!==Ut||t[81]!==jt||t[82]!==vt||t[83]!==Z||t[84]!==Et||t[85]!==D||t[86]!==ge||t[87]!==At||t[88]!==It||t[89]!==Tt||t[90]!==d||t[91]!==y||t[92]!==bt||t[93]!==N||t[94]!==V||t[95]!==U||t[96]!==g.dateFormat||t[97]!==g.enabled||t[98]!==gt||t[99]!==E||t[100]!==mt||t[101]!==tt||t[102]!==a||t[103]!==yt?(ke=V&&N&&n.length>0?i.jsxRuntimeExports.jsx(F,{hideAxisLine:Zt,data:d?Pe.orderBy($e.ensureCompleteDataForBarChart(n,g.dateFormat||"yyyy").filter(te=>g.enabled?te.date===je.format(new Date(a[ie]),g.dateFormat||"yyyy"):te).filter(te=>j?!ee.checkIfNullOrUndefined(te.size):te),[te=>te.size===void 0?d==="asc"?(Ut==="horizontal"?1:-1)*(1/0):(Ut==="horizontal"?-1:1)*(1/0):te.size],[d]).filter((te,we)=>Pt?we<Pt:!0):$e.ensureCompleteDataForBarChart(n,g.dateFormat||"yyyy").filter(te=>g.enabled?te.date===je.format(new Date(a[ie]),g.dateFormat||"yyyy"):te).filter(te=>j?!ee.checkIfNullOrUndefined(te.size):te).filter((te,we)=>Pt?we<Pt:!0),barColor:n.filter(vs).length===0?Jt?[Jt]:[fe.Colors.primaryColors["blue-600"]]:Jt||fe.Colors[U].categoricalColors.colors,colorDomain:n.filter(bs).length===0?[]:q||Ze.uniqBy(n,"color",!0),selectedColor:ge,trackColor:mt,width:V,height:N,suffix:bt,prefix:vt,barPadding:wt,showValues:Tt,showTicks:It,leftMargin:z,rightMargin:D,topMargin:E,bottomMargin:K,truncateBy:tt,showLabels:At,tooltip:gt,onSeriesMouseOver:T,refValues:Z,maxValue:ee.checkIfNullOrUndefined(s)?Math.max(...n.filter(ys).map(gs))<0?0:Math.max(...n.filter(fs).map(hs)):s,minValue:ee.checkIfNullOrUndefined(o)?Math.min(...n.filter(ps).map(ms))>=0?0:Math.min(...n.filter(ds).map(xs)):o,highlightedDataPoints:I,onSeriesMouseClick:m,labelOrder:ot,rtl:Y==="he"||Y==="ar",maxBarThickness:Bt,minBarThickness:lt,resetSelectionOnDoubleClick:Et,detailsOnClick:x,barAxisTitle:r,noOfTicks:v,valueColor:yt,classNames:C,styles:y,animate:$===!0?{duration:.5,once:!0,amount:.5}:$||{duration:0,once:!0,amount:0},dimmedOpacity:b,precision:jt,customLayers:O,naLabel:Nt}):null,t[52]=F,t[53]=$,t[54]=r,t[55]=wt,t[56]=K,t[57]=C,t[58]=q,t[59]=Jt,t[60]=O,t[61]=n,t[62]=x,t[63]=b,t[64]=j,t[65]=Zt,t[66]=I,t[67]=ie,t[68]=ot,t[69]=Y,t[70]=z,t[71]=Bt,t[72]=Pt,t[73]=s,t[74]=lt,t[75]=o,t[76]=Nt,t[77]=v,t[78]=m,t[79]=T,t[80]=Ut,t[81]=jt,t[82]=vt,t[83]=Z,t[84]=Et,t[85]=D,t[86]=ge,t[87]=At,t[88]=It,t[89]=Tt,t[90]=d,t[91]=y,t[92]=bt,t[93]=N,t[94]=V,t[95]=U,t[96]=g.dateFormat,t[97]=g.enabled,t[98]=gt,t[99]=E,t[100]=mt,t[101]=tt,t[102]=a,t[103]=yt,t[104]=ke):ke=t[104];let Ee;t[105]!==se||t[106]!==ke?(Ee=i.jsxRuntimeExports.jsxs(Le.GraphArea,{ref:he,children:[se,ke]}),t[105]=se,t[106]=ke,t[107]=Ee):Ee=t[107];let Ce;t[108]!==C?.footnote||t[109]!==C?.source||t[110]!==Rt||t[111]!==St||t[112]!==y?.footnote||t[113]!==y?.source||t[114]!==et?(Ce=St||Rt?i.jsxRuntimeExports.jsx(Je.GraphFooter,{sources:St,footNote:Rt,width:et,styles:{footnote:y?.footnote,source:y?.source},classNames:{footnote:C?.footnote,source:C?.source}}):null,t[108]=C?.footnote,t[109]=C?.source,t[110]=Rt,t[111]=St,t[112]=y?.footnote,t[113]=y?.source,t[114]=et,t[115]=Ce):Ce=t[115];let Ge;return t[116]!==dt||t[117]!==Vt||t[118]!==c||t[119]!==ft||t[120]!==Y||t[121]!==kt||t[122]!==Lt||t[123]!==Q||t[124]!==xe||t[125]!==de||t[126]!==ce||t[127]!==Qt||t[128]!==Dt||t[129]!==Ee||t[130]!==Ce||t[131]!==U||t[132]!==et?(Ge=i.jsxRuntimeExports.jsxs(Le.GraphContainer,{className:xe,style:de,id:c,ref:ve,"aria-label":dt,backgroundColor:Vt,theme:U,language:Y,minHeight:kt,width:et,height:ft,relativeHeight:Q,padding:Lt,children:[ce,Qt,Dt,Ee,Ce]}),t[116]=dt,t[117]=Vt,t[118]=c,t[119]=ft,t[120]=Y,t[121]=kt,t[122]=Lt,t[123]=Q,t[124]=xe,t[125]=de,t[126]=ce,t[127]=Qt,t[128]=Dt,t[129]=Ee,t[130]=Ce,t[131]=U,t[132]=et,t[133]=Ge):Ge=t[133],Ge}function xs(e){return e.size}function ds(e){return!ee.checkIfNullOrUndefined(e.size)}function ms(e){return e.size}function ps(e){return!ee.checkIfNullOrUndefined(e.size)}function hs(e){return e.size}function fs(e){return!ee.checkIfNullOrUndefined(e.size)}function gs(e){return e.size}function ys(e){return!ee.checkIfNullOrUndefined(e.size)}function bs(e){return e.color}function vs(e){return e.color}function ws(e){return e.color}function As(e){return e!==void 0}function js(e){return e!==void 0}function $s(e){return e.data}function Os(e){return e!==void 0}function ks(e){return e.data}function Es(e,t){return e-t}function Cs(e){return e.date}function Rs(e){const t=i.compilerRuntimeExports.c(130),{data:n,barColors:G,barPadding:Jt,showTicks:Kt,topMargin:St,bottomMargin:Ct,leftMargin:Ft,rightMargin:P,truncateBy:J,width:A,height:X,tooltip:ft,onSeriesMouseOver:et,showLabels:Rt,suffix:q,prefix:nt,showValues:Mt,refValues:Lt,maxValue:qt,onSeriesMouseClick:E,selectedColor:K,rtl:z,labelOrder:D,maxBarThickness:xt,minBarThickness:Q,resetSelectionOnDoubleClick:gt,detailsOnClick:T,barAxisTitle:Z,valueColor:it,noOfTicks:c,styles:s,classNames:o,animate:m,colorDomain:u,precision:f,customLayers:d,naLabel:ot,hideAxisLine:L}=e,H=St===void 0?25:St,Ht=Ct===void 0?10:Ct,Wt=Ft===void 0?100:Ft,Bt=P===void 0?40:P,Pt=ut.useRef(null);let lt;t[0]!==m.amount||t[1]!==m.once?(lt={once:m.once,amount:m.amount},t[0]=m.amount,t[1]=m.once,t[2]=lt):lt=t[2];const dt=Te.useInView(Pt,lt),_=Z?H+25:H;let x;t[3]!==Ht||t[4]!==Wt||t[5]!==Bt||t[6]!==_?(x={top:_,bottom:Ht,left:Wt,right:Bt},t[3]=Ht,t[4]=Wt,t[5]=Bt,t[6]=_,t[7]=x):x=t[7];const r=x,[R,yt]=ut.useState(void 0),[y,C]=ut.useState(void 0),[Xt,at]=ut.useState(void 0),[Yt,rt]=ut.useState(void 0),Gt=A-r.left-r.right,W=X-r.top-r.bottom;let st;if(t[8]!==n||t[9]!==D){const b=new Set,jt=n.map((h,g)=>{const Nt=D?`${h.label}`:`${g}`;return b.add(Nt),{...h,id:Nt}}),$t=D?D.filter(h=>!b.has(h)):[];let O;t[11]!==n[0]?(O=h=>({id:h,label:h,size:Array(n[0].size.length).fill(null)}),t[11]=n[0],t[12]=O):O=t[12],st=[...jt,...$t.map(O)],t[8]=n,t[9]=D,t[10]=st}else st=t[10];const k=st;let mt;t[13]!==k||t[14]!==D?(mt=D??k.map(Ts),t[13]=k,t[14]=D,t[15]=mt):mt=t[15];const zt=mt;let bt,vt,wt,Tt,It,tt,S,I,Vt,At,ct,pt,ht,Y;if(t[16]!==m||t[17]!==Z||t[18]!==G||t[19]!==zt||t[20]!==Jt||t[21]!==o?.graphObjectValues||t[22]!==o?.xAxis?.gridLines||t[23]!==o?.xAxis?.labels||t[24]!==o?.xAxis?.title||t[25]!==o?.yAxis?.axis||t[26]!==o?.yAxis?.labels||t[27]!==u||t[28]!==d||t[29]!==k||t[30]!==T||t[31]!==W||t[32]!==Gt||t[33]!==X||t[34]!==L||t[35]!==dt||t[36]!==r.bottom||t[37]!==r.left||t[38]!==r.top||t[39]!==xt||t[40]!==qt||t[41]!==Q||t[42]!==y||t[43]!==ot||t[44]!==c||t[45]!==E||t[46]!==et||t[47]!==f||t[48]!==nt||t[49]!==Lt||t[50]!==gt||t[51]!==z||t[52]!==K||t[53]!==Rt||t[54]!==Kt||t[55]!==Mt||t[56]!==s?.graphObjectValues||t[57]!==s?.xAxis?.gridLines||t[58]!==s?.xAxis?.labels||t[59]!==s?.xAxis?.title||t[60]!==s?.yAxis?.axis||t[61]!==s?.yAxis?.labels||t[62]!==q||t[63]!==H||t[64]!==J||t[65]!==it||t[66]!==A){const b=Fe.linear().domain([0,qt]).range([0,Gt]).nice(),jt=Oe.band().domain(zt).range([0,Q?Math.max(W,Q*zt.length):xt?Math.min(W,xt*zt.length):W]).paddingInner(Jt),$t=b.ticks(c);vt=_t.motion.svg,Vt=Pt,At=`${A}px`,ct=`${X}px`,pt=`0 0 ${A} ${X}`,ht="ltr",It=`translate(${r.left},${r.top})`,tt=Kt?i.jsxRuntimeExports.jsx(We.XTicksAndGridLines,{values:$t.filter(zs),x:$t.filter(Ss).map(M=>b(M)),y1:0-H,y2:W+r.bottom,styles:{gridLines:s?.xAxis?.gridLines,labels:s?.xAxis?.labels},classNames:{gridLines:o?.xAxis?.gridLines,labels:o?.xAxis?.labels},suffix:q,prefix:nt,labelType:"secondary",showGridLines:!0,precision:f}):null;const O=Gt/2,h=0-r.top+15,g=s?.xAxis?.title,Nt=o?.xAxis?.title;t[81]!==Z||t[82]!==O||t[83]!==h||t[84]!==g||t[85]!==Nt?(S=i.jsxRuntimeExports.jsx(De.AxisTitle,{x:O,y:h,style:g,className:Nt,text:Z}),t[81]=Z,t[82]=O,t[83]=h,t[84]=g,t[85]=Nt,t[86]=S):S=t[86],t[87]!==d?(I=d.filter(Ds).map(Ns),t[87]=d,t[88]=I):I=t[88],bt=Be.AnimatePresence,Y=k.map(M=>ee.checkIfNullOrUndefined(jt(M.id))?null:i.jsxRuntimeExports.jsxs(_t.motion.g,{className:"undp-viz-low-opacity undp-viz-g-with-hover",variants:{initial:{x:0,y:jt(`${M.id}`)},whileInView:{x:0,y:jt(`${M.id}`),transition:{duration:m.duration}}},initial:"initial",animate:dt?"whileInView":"initial",exit:{opacity:0,transition:{duration:m.duration}},children:[M.size.map((N,p)=>i.jsxRuntimeExports.jsxs(_t.motion.g,{opacity:K?G[p]===K?1:.3:1,onMouseEnter:w=>{yt({...M,sizeIndex:p}),rt(w.clientY),at(w.clientX),et?.({...M,sizeIndex:p})},onMouseMove:w=>{yt({...M,sizeIndex:p}),rt(w.clientY),at(w.clientX)},onMouseLeave:()=>{yt(void 0),at(void 0),rt(void 0),et?.(void 0)},onClick:()=>{(E||T)&&(Ie.isEqual(y,{...M,sizeIndex:p})&>?(C(void 0),E?.(void 0)):(C({...M,sizeIndex:p}),E&&E({...M,sizeIndex:p})))},children:[N?i.jsxRuntimeExports.jsx(_t.motion.rect,{y:0,style:{fill:G[p]},height:jt.bandwidth(),exit:{width:0,x:b(0),transition:{duration:m.duration}},variants:{initial:{width:0,x:b(0),fill:G[p]},whileInView:{width:b(N||0),x:b(p===0?0:me.sum(M.size.filter((w,l)=>l<p&&w))),fill:G[p],transition:{duration:m.duration}}},initial:"initial",animate:dt?"whileInView":"initial"},p):null,Mt?i.jsxRuntimeExports.jsx(_t.motion.text,{y:jt.bandwidth()/2,style:{textAnchor:"middle",...s?.graphObjectValues||{}},dy:"0.33em",className:i.mo("graph-value text-sm",o?.graphObjectValues),exit:{opacity:0,transition:{duration:m.duration}},variants:{initial:{x:b(0),opacity:0,fill:qe.getTextColorBasedOnBgColor(G[p])},whileInView:{x:b(p===0?0:me.sum(M.size.filter((w,l)=>l<p&&w)))+b(N||0)/2,opacity:N&&b(N)/be.numberFormattingFunction(N,ot,f,nt,q).length>12?1:0,fill:qe.getTextColorBasedOnBgColor(G[p]),transition:{duration:m.duration}}},initial:"initial",animate:dt?"whileInView":"initial",children:be.numberFormattingFunction(N,ot,f,nt,q)}):null]},`${M.label}-${u[p]||p}`)),Rt?i.jsxRuntimeExports.jsx(He.YAxesLabels,{value:`${M.label}`.length<J?`${M.label}`:`${`${M.label}`.substring(0,J)}...`,y:0,x:0-r.left,width:0+r.left,height:jt.bandwidth(),style:s?.yAxis?.labels,className:o?.yAxis?.labels,animate:m,isInView:dt}):null,Mt?i.jsxRuntimeExports.jsx(_t.motion.text,{className:i.mo("graph-value graph-value-total text-sm",it?"":" fill-primary-gray-700 dark:fill-primary-gray-300",o?.graphObjectValues),style:{...it?{fill:it}:{},textAnchor:"start",...s?.graphObjectValues||{}},y:jt.bandwidth()/2,dx:5,dy:"0.33em",variants:{initial:{x:b(0),opacity:0,...it?{fill:it}:{}},whileInView:{x:b(me.sum(M.size.map(Vs))),opacity:1,...it?{fill:it}:{},transition:{duration:m.duration}}},exit:{opacity:0,transition:{duration:m.duration}},initial:"initial",animate:dt?"whileInView":"initial",children:be.numberFormattingFunction(me.sum(M.size.filter(Is)),ot,f,nt,q)}):null]},M.label));const Ut=o?.yAxis?.axis;let Zt;t[89]!==Ut?(Zt={axis:Ut},t[89]=Ut,t[90]=Zt):Zt=t[90];const F=s?.yAxis?.axis;let V;t[91]!==F?(V={axis:F},t[91]=F,t[92]=V):V=t[92],wt=i.jsxRuntimeExports.jsx(Ne.Axis,{hideAxisLine:L,x1:b(0),x2:b(0),y1:-2.5,y2:W+r.bottom,classNames:Zt,styles:V}),Tt=Lt?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:Lt.map((M,N)=>i.jsxRuntimeExports.jsx(Se.RefLineX,{text:M.text,color:M.color,x:b(M.value),y1:0-r.top,y2:W+r.bottom,textSide:b(M.value)>Gt*.75||z?"left":"right",classNames:M.classNames,styles:M.styles,animate:m,isInView:dt},N))}):null,t[16]=m,t[17]=Z,t[18]=G,t[19]=zt,t[20]=Jt,t[21]=o?.graphObjectValues,t[22]=o?.xAxis?.gridLines,t[23]=o?.xAxis?.labels,t[24]=o?.xAxis?.title,t[25]=o?.yAxis?.axis,t[26]=o?.yAxis?.labels,t[27]=u,t[28]=d,t[29]=k,t[30]=T,t[31]=W,t[32]=Gt,t[33]=X,t[34]=L,t[35]=dt,t[36]=r.bottom,t[37]=r.left,t[38]=r.top,t[39]=xt,t[40]=qt,t[41]=Q,t[42]=y,t[43]=ot,t[44]=c,t[45]=E,t[46]=et,t[47]=f,t[48]=nt,t[49]=Lt,t[50]=gt,t[51]=z,t[52]=K,t[53]=Rt,t[54]=Kt,t[55]=Mt,t[56]=s?.graphObjectValues,t[57]=s?.xAxis?.gridLines,t[58]=s?.xAxis?.labels,t[59]=s?.xAxis?.title,t[60]=s?.yAxis?.axis,t[61]=s?.yAxis?.labels,t[62]=q,t[63]=H,t[64]=J,t[65]=it,t[66]=A,t[67]=bt,t[68]=vt,t[69]=wt,t[70]=Tt,t[71]=It,t[72]=tt,t[73]=S,t[74]=I,t[75]=Vt,t[76]=At,t[77]=ct,t[78]=pt,t[79]=ht,t[80]=Y}else bt=t[67],vt=t[68],wt=t[69],Tt=t[70],It=t[71],tt=t[72],S=t[73],I=t[74],Vt=t[75],At=t[76],ct=t[77],pt=t[78],ht=t[79],Y=t[80];let Ot;t[93]!==bt||t[94]!==wt||t[95]!==Tt||t[96]!==Y?(Ot=i.jsxRuntimeExports.jsxs(bt,{children:[Y,wt,Tt]}),t[93]=bt,t[94]=wt,t[95]=Tt,t[96]=Y,t[97]=Ot):Ot=t[97];let kt;t[98]!==d?(kt=d.filter(Ls).map(Ms),t[98]=d,t[99]=kt):kt=t[99];let U;t[100]!==It||t[101]!==tt||t[102]!==S||t[103]!==I||t[104]!==Ot||t[105]!==kt?(U=i.jsxRuntimeExports.jsxs("g",{transform:It,children:[tt,S,I,Ot,kt]}),t[100]=It,t[101]=tt,t[102]=S,t[103]=I,t[104]=Ot,t[105]=kt,t[106]=U):U=t[106];let Et;t[107]!==vt||t[108]!==Vt||t[109]!==At||t[110]!==ct||t[111]!==pt||t[112]!==ht||t[113]!==U?(Et=i.jsxRuntimeExports.jsx(vt,{ref:Vt,width:At,height:ct,viewBox:pt,direction:ht,children:U}),t[107]=vt,t[108]=Vt,t[109]=At,t[110]=ct,t[111]=pt,t[112]=ht,t[113]=U,t[114]=Et):Et=t[114];let v;t[115]!==o?.tooltip||t[116]!==Xt||t[117]!==Yt||t[118]!==R||t[119]!==s?.tooltip||t[120]!==ft?(v=R&&ft&&Xt&&Yt?i.jsxRuntimeExports.jsx(Ve.Tooltip,{data:R,body:ft,xPos:Xt,yPos:Yt,backgroundStyle:s?.tooltip,className:o?.tooltip}):null,t[115]=o?.tooltip,t[116]=Xt,t[117]=Yt,t[118]=R,t[119]=s?.tooltip,t[120]=ft,t[121]=v):v=t[121];let j;t[122]!==o?.modal||t[123]!==T||t[124]!==y?(j=T&&y!==void 0?i.jsxRuntimeExports.jsx(ze.DetailsModal,{body:T,data:y,setData:C,className:o?.modal}):null,t[122]=o?.modal,t[123]=T,t[124]=y,t[125]=j):j=t[125];let $;return t[126]!==Et||t[127]!==v||t[128]!==j?($=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[Et,v,j]}),t[126]=Et,t[127]=v,t[128]=j,t[129]=$):$=t[129],$}function Ms(e){return e.layer}function Ls(e){return e.position==="after"}function Is(e){return e}function Vs(e){return e||0}function Ns(e){return e.layer}function Ds(e){return e.position==="before"}function Ss(e){return e!==0}function zs(e){return e!==0}function Ts(e){return`${e.id}`}function Fs(e){const t=i.compilerRuntimeExports.c(138),{data:n,leftMargin:G,rightMargin:Jt,topMargin:Kt,bottomMargin:St,width:Ct,height:Ft,barColors:P,barPadding:J,showLabels:A,showTicks:X,truncateBy:ft,tooltip:et,onSeriesMouseOver:Rt,suffix:q,prefix:nt,showValues:Mt,refValues:Lt,maxValue:qt,onSeriesMouseClick:E,selectedColor:K,labelOrder:z,maxBarThickness:D,minBarThickness:xt,resetSelectionOnDoubleClick:Q,detailsOnClick:gt,barAxisTitle:T,valueColor:Z,noOfTicks:it,styles:c,classNames:s,animate:o,colorDomain:m,precision:u,customLayers:f,naLabel:d,hideAxisLine:ot}=e,L=G===void 0?20:G,H=Jt===void 0?20:Jt,Ht=Kt===void 0?20:Kt,Wt=St===void 0?25:St,Bt=ut.useRef(null);let Pt;t[0]!==o.amount||t[1]!==o.once?(Pt={once:o.once,amount:o.amount},t[0]=o.amount,t[1]=o.once,t[2]=Pt):Pt=t[2];const lt=Te.useInView(Bt,Pt),dt=T?L+30:L;let _;t[3]!==Wt||t[4]!==H||t[5]!==dt||t[6]!==Ht?(_={top:Ht,bottom:Wt,left:dt,right:H},t[3]=Wt,t[4]=H,t[5]=dt,t[6]=Ht,t[7]=_):_=t[7];const x=_,[r,R]=ut.useState(void 0),[yt,y]=ut.useState(void 0),[C,Xt]=ut.useState(void 0),[at,Yt]=ut.useState(void 0),rt=Ct-x.left-x.right,Gt=Ft-x.top-x.bottom;let W;if(t[8]!==n||t[9]!==z){const $=new Set,b=n.map((O,h)=>{const g=z?`${O.label}`:`${h}`;return $.add(g),{...O,id:g}}),jt=z?z.filter(O=>!$.has(O)):[];let $t;t[11]!==n[0]?($t=O=>({id:O,label:O,size:Array(n[0].size.length).fill(null)}),t[11]=n[0],t[12]=$t):$t=t[12],W=[...b,...jt.map($t)],t[8]=n,t[9]=z,t[10]=W}else W=t[10];const st=W;let k;t[13]!==st||t[14]!==z?(k=z??st.map(Us),t[13]=st,t[14]=z,t[15]=k):k=t[15];const mt=k;let zt,bt,vt,wt,Tt,It,tt,S,I,Vt,At,ct,pt,ht;if(t[16]!==o||t[17]!==T||t[18]!==P||t[19]!==mt||t[20]!==J||t[21]!==s?.graphObjectValues||t[22]!==s?.xAxis?.axis||t[23]!==s?.xAxis?.labels||t[24]!==s?.yAxis?.gridLines||t[25]!==s?.yAxis?.labels||t[26]!==s?.yAxis?.title||t[27]!==m||t[28]!==f||t[29]!==st||t[30]!==gt||t[31]!==Gt||t[32]!==rt||t[33]!==Ft||t[34]!==ot||t[35]!==lt||t[36]!==L||t[37]!==x.bottom||t[38]!==x.left||t[39]!==x.right||t[40]!==x.top||t[41]!==D||t[42]!==qt||t[43]!==xt||t[44]!==yt||t[45]!==d||t[46]!==it||t[47]!==E||t[48]!==Rt||t[49]!==u||t[50]!==nt||t[51]!==Lt||t[52]!==Q||t[53]!==K||t[54]!==A||t[55]!==X||t[56]!==Mt||t[57]!==c?.graphObjectValues||t[58]!==c?.xAxis?.axis||t[59]!==c?.xAxis?.labels||t[60]!==c?.yAxis?.gridLines||t[61]!==c?.yAxis?.labels||t[62]!==c?.yAxis?.title||t[63]!==q||t[64]!==ft||t[65]!==Z||t[66]!==Ct){const $=Fe.linear().domain([0,qt]).range([Gt,0]).nice(),b=Oe.band().domain(mt).range([0,xt?Math.max(rt,xt*mt.length):D?Math.min(rt,D*mt.length):rt]).paddingInner(J),jt=$.ticks(it);bt=_t.motion.svg,I=`${Ct}px`,Vt=`${Ft}px`,At=`0 0 ${Ct} ${Ft}`,ct="ltr",pt=Bt,wt=`translate(${x.left},${x.top})`;let $t;t[81]!==d||t[82]!==u||t[83]!==nt||t[84]!==X||t[85]!==q?($t=X?be.numberFormattingFunction(0,d,u,nt,q):void 0,t[81]=d,t[82]=u,t[83]=nt,t[84]=X,t[85]=q,t[86]=$t):$t=t[86];const O=s?.xAxis?.axis,h=s?.yAxis?.labels;let g;t[87]!==O||t[88]!==h?(g={axis:O,label:h},t[87]=O,t[88]=h,t[89]=g):g=t[89];const Nt=c?.xAxis?.axis,Ut=c?.yAxis?.labels;let Zt;t[90]!==Nt||t[91]!==Ut?(Zt={axis:Nt,label:Ut},t[90]=Nt,t[91]=Ut,t[92]=Zt):Zt=t[92],Tt=i.jsxRuntimeExports.jsx(Ne.Axis,{hideAxisLine:ot,y1:$(0),y2:$(0),x1:0-L,x2:rt+x.right,label:$t,labelPos:{x:0-L,y:$(0),dx:0,dy:-5},classNames:g,styles:Zt}),It=X?i.jsxRuntimeExports.jsx(Xe.YTicksAndGridLines,{values:jt.filter(Ys),y:jt.filter(Xs).map(p=>$(p)),x1:0-L,x2:rt+x.right,styles:{gridLines:c?.yAxis?.gridLines,labels:c?.yAxis?.labels},classNames:{gridLines:s?.yAxis?.gridLines,labels:s?.yAxis?.labels},suffix:q,prefix:nt,labelType:"secondary",showGridLines:!0,labelPos:"vertical",precision:u}):null;const F=0-L-15,V=Gt/2,M=c?.yAxis?.title,N=s?.yAxis?.title;t[93]!==T||t[94]!==F||t[95]!==V||t[96]!==M||t[97]!==N?(tt=i.jsxRuntimeExports.jsx(De.AxisTitle,{x:F,y:V,style:M,className:N,text:T,rotate90:!0}),t[93]=T,t[94]=F,t[95]=V,t[96]=M,t[97]=N,t[98]=tt):tt=t[98],t[99]!==f?(S=f.filter(Ws).map(Hs),t[99]=f,t[100]=S):S=t[100],zt=Be.AnimatePresence,ht=st.map(p=>ee.checkIfNullOrUndefined(b(p.id))?null:i.jsxRuntimeExports.jsxs(_t.motion.g,{className:"undp-viz-low-opacity undp-viz-g-with-hover",variants:{initial:{x:b(`${p.id}`),y:0},whileInView:{x:b(`${p.id}`),y:0,transition:{duration:o.duration}}},transition:{duration:o.duration},initial:"initial",animate:lt?"whileInView":"initial",exit:{opacity:0,transition:{duration:o.duration}},children:[p.size.map((w,l)=>i.jsxRuntimeExports.jsxs(_t.motion.g,{opacity:K?P[l]===K?1:.3:1,onMouseEnter:B=>{R({...p,sizeIndex:l}),Yt(B.clientY),Xt(B.clientX),Rt?.({...p,sizeIndex:l})},onMouseMove:B=>{R({...p,sizeIndex:l}),Yt(B.clientY),Xt(B.clientX)},onMouseLeave:()=>{R(void 0),Xt(void 0),Yt(void 0),Rt?.(void 0)},onClick:()=>{(E||gt)&&(Ie.isEqual(yt,{...p,sizeIndex:l})&&Q?(y(void 0),E?.(void 0)):(y({...p,sizeIndex:l}),E&&E({...p,sizeIndex:l})))},children:[i.jsxRuntimeExports.jsx(_t.motion.rect,{x:0,width:b.bandwidth(),variants:{initial:{height:0,fill:P[l],y:$(0)},whileInView:{height:Math.abs($(me.sum(p.size.filter((B,a)=>a<=l&&B)))-$(me.sum(p.size.filter((B,a)=>a<l&&B)))),y:$(me.sum(p.size.filter((B,a)=>a<=l&&B))),fill:P[l],transition:{duration:o.duration}}},initial:"initial",animate:lt?"whileInView":"initial",exit:{height:0,y:$(0),transition:{duration:o.duration}}}),Mt?i.jsxRuntimeExports.jsx(_t.motion.text,{x:b.bandwidth()/2,style:{textAnchor:"middle",...c?.graphObjectValues||{}},className:i.mo("graph-value text-sm",s?.graphObjectValues),dy:"0.33em",variants:{initial:{y:$(0),opacity:0,fill:qe.getTextColorBasedOnBgColor(P[l])},whileInView:{y:$(me.sum(p.size.filter((B,a)=>a<=l&&B)))+Math.abs($(me.sum(p.size.filter((B,a)=>a<=l&&B)))-$(me.sum(p.size.filter((B,a)=>a<l&&B))))/2,opacity:w&&Math.abs($(me.sum(p.size.filter((B,a)=>a<=l&&B)))-$(me.sum(p.size.filter((B,a)=>a<l&&B))))>20?1:0,fill:qe.getTextColorBasedOnBgColor(P[l]),transition:{duration:o.duration}}},initial:"initial",animate:lt?"whileInView":"initial",exit:{opacity:0,transition:{duration:o.duration}},children:be.numberFormattingFunction(w,d,u,nt,q)}):null]},`${p.label}-${m[l]||l}`)),A?i.jsxRuntimeExports.jsx(Ye.XAxesLabels,{value:`${p.label}`.length<ft?`${p.label}`:`${`${p.label}`.substring(0,ft)}...`,y:$(0)+5,x:0,width:b.bandwidth(),height:x.bottom,style:c?.xAxis?.labels,className:s?.xAxis?.labels,alignment:"top",animate:o,isInView:lt}):null,Mt?i.jsxRuntimeExports.jsx(_t.motion.text,{style:{textAnchor:"middle",...c?.graphObjectValues||{}},x:b.bandwidth()/2,dy:-10,className:i.mo("graph-value graph-value-total",Z?"text-sm":"fill-primary-gray-700 dark:fill-primary-gray-300 text-sm",s?.graphObjectValues),variants:{initial:{y:$(0),opacity:0,...Z&&{fill:Z}},whileInView:{y:$(me.sum(p.size.map(qs))),opacity:1,...Z&&{fill:Z},transition:{duration:o.duration}}},exit:{opacity:0,transition:{duration:o.duration}},initial:"initial",animate:lt?"whileInView":"initial",children:be.numberFormattingFunction(me.sum(p.size.filter(Gs)),d,u,nt,q)}):null]},p.label)),vt=Lt?i.jsxRuntimeExports.jsx(i.jsxRuntimeExports.Fragment,{children:Lt.map((p,w)=>i.jsxRuntimeExports.jsx(Se.RefLineY,{text:p.text,color:p.color,y:$(p.value),x1:0-L,x2:rt+x.right,classNames:p.classNames,styles:p.styles,animate:o,isInView:lt},w))}):null,t[16]=o,t[17]=T,t[18]=P,t[19]=mt,t[20]=J,t[21]=s?.graphObjectValues,t[22]=s?.xAxis?.axis,t[23]=s?.xAxis?.labels,t[24]=s?.yAxis?.gridLines,t[25]=s?.yAxis?.labels,t[26]=s?.yAxis?.title,t[27]=m,t[28]=f,t[29]=st,t[30]=gt,t[31]=Gt,t[32]=rt,t[33]=Ft,t[34]=ot,t[35]=lt,t[36]=L,t[37]=x.bottom,t[38]=x.left,t[39]=x.right,t[40]=x.top,t[41]=D,t[42]=qt,t[43]=xt,t[44]=yt,t[45]=d,t[46]=it,t[47]=E,t[48]=Rt,t[49]=u,t[50]=nt,t[51]=Lt,t[52]=Q,t[53]=K,t[54]=A,t[55]=X,t[56]=Mt,t[57]=c?.graphObjectValues,t[58]=c?.xAxis?.axis,t[59]=c?.xAxis?.labels,t[60]=c?.yAxis?.gridLines,t[61]=c?.yAxis?.labels,t[62]=c?.yAxis?.title,t[63]=q,t[64]=ft,t[65]=Z,t[66]=Ct,t[67]=zt,t[68]=bt,t[69]=vt,t[70]=wt,t[71]=Tt,t[72]=It,t[73]=tt,t[74]=S,t[75]=I,t[76]=Vt,t[77]=At,t[78]=ct,t[79]=pt,t[80]=ht}else zt=t[67],bt=t[68],vt=t[69],wt=t[70],Tt=t[71],It=t[72],tt=t[73],S=t[74],I=t[75],Vt=t[76],At=t[77],ct=t[78],pt=t[79],ht=t[80];let Y;t[101]!==zt||t[102]!==vt||t[103]!==ht?(Y=i.jsxRuntimeExports.jsxs(zt,{children:[ht,vt]}),t[101]=zt,t[102]=vt,t[103]=ht,t[104]=Y):Y=t[104];let Ot;t[105]!==f?(Ot=f.filter(Ps).map(Bs),t[105]=f,t[106]=Ot):Ot=t[106];let kt;t[107]!==wt||t[108]!==Tt||t[109]!==It||t[110]!==tt||t[111]!==S||t[112]!==Y||t[113]!==Ot?(kt=i.jsxRuntimeExports.jsxs("g",{transform:wt,children:[Tt,It,tt,S,Y,Ot]}),t[107]=wt,t[108]=Tt,t[109]=It,t[110]=tt,t[111]=S,t[112]=Y,t[113]=Ot,t[114]=kt):kt=t[114];let U;t[115]!==bt||t[116]!==I||t[117]!==Vt||t[118]!==At||t[119]!==ct||t[120]!==pt||t[121]!==kt?(U=i.jsxRuntimeExports.jsx(bt,{width:I,height:Vt,viewBox:At,direction:ct,ref:pt,children:kt}),t[115]=bt,t[116]=I,t[117]=Vt,t[118]=At,t[119]=ct,t[120]=pt,t[121]=kt,t[122]=U):U=t[122];let Et;t[123]!==s?.tooltip||t[124]!==C||t[125]!==at||t[126]!==r||t[127]!==c?.tooltip||t[128]!==et?(Et=r&&et&&C&&at?i.jsxRuntimeExports.jsx(Ve.Tooltip,{data:r,body:et,xPos:C,yPos:at,backgroundStyle:c?.tooltip,className:s?.tooltip}):null,t[123]=s?.tooltip,t[124]=C,t[125]=at,t[126]=r,t[127]=c?.tooltip,t[128]=et,t[129]=Et):Et=t[129];let v;t[130]!==s?.modal||t[131]!==gt||t[132]!==yt?(v=gt&&yt!==void 0?i.jsxRuntimeExports.jsx(ze.DetailsModal,{body:gt,data:yt,setData:y,className:s?.modal}):null,t[130]=s?.modal,t[131]=gt,t[132]=yt,t[133]=v):v=t[133];let j;return t[134]!==U||t[135]!==Et||t[136]!==v?(j=i.jsxRuntimeExports.jsxs(i.jsxRuntimeExports.Fragment,{children:[U,Et,v]}),t[134]=U,t[135]=Et,t[136]=v,t[137]=j):j=t[137],j}function Bs(e){return e.layer}function Ps(e){return e.position==="after"}function Gs(e){return e}function qs(e){return e||0}function Hs(e){return e.layer}function Ws(e){return e.position==="before"}function Xs(e){return e!==0}function Ys(e){return e!==0}function Us(e){return`${e.id}`}function Js(e){const t=i.compilerRuntimeExports.c(127),{data:n,graphTitle:G,colors:Jt,sources:Kt,graphDescription:St,barPadding:Ct,showTicks:Ft,truncateBy:P,height:J,width:A,footNote:X,colorDomain:ft,colorLegendTitle:et,padding:Rt,backgroundColor:q,topMargin:nt,bottomMargin:Mt,leftMargin:Lt,rightMargin:qt,tooltip:E,onSeriesMouseOver:K,suffix:z,prefix:D,showLabels:xt,relativeHeight:Q,showValues:gt,refValues:T,graphID:Z,maxValue:it,onSeriesMouseClick:c,graphDownload:s,dataDownload:o,language:m,labelOrder:u,minHeight:f,theme:d,maxBarThickness:ot,sortParameter:L,maxNumberOfBars:H,minBarThickness:Ht,showColorScale:Wt,ariaLabel:Bt,resetSelectionOnDoubleClick:Pt,detailsOnClick:lt,barAxisTitle:dt,noOfTicks:_,valueColor:x,styles:r,classNames:R,filterNA:yt,animate:y,precision:C,customLayers:Xt,timeline:at,naLabel:Yt,sortData:rt,orientation:Gt,hideAxisLine:W}=e,st=Jt===void 0?fe.Colors.light.categoricalColors.colors:Jt,k=Ct===void 0?.25:Ct,mt=Ft===void 0?!0:Ft,zt=P===void 0?999:P,bt=q===void 0?!1:q,vt=z===void 0?"":z,wt=D===void 0?"":D,Tt=xt===void 0?!0:xt,It=gt===void 0?!0:gt,tt=s===void 0?!1:s,S=o===void 0?!1:o,I=m===void 0?"en":m,Vt=f===void 0?0:f,At=d===void 0?"light":d,ct=Wt===void 0?!0:Wt,pt=Pt===void 0?!0:Pt,ht=_===void 0?5:_,Y=yt===void 0?!0:yt,Ot=y===void 0?!1:y,kt=C===void 0?2:C;let U;t[0]!==Xt?(U=Xt===void 0?[]:Xt,t[0]=Xt,t[1]=U):U=t[1];const Et=U;let v;t[2]!==at?(v=at===void 0?{enabled:!1,autoplay:!1,showOnlyActiveDate:!0}:at,t[2]=at,t[3]=v):v=t[3];const j=v,$=Yt===void 0?"NA":Yt,b=Gt===void 0?"vertical":Gt,jt=W===void 0?!1:W,$t=b==="horizontal"?Rs:Fs,[O,h]=ut.useState(0),[g,Nt]=ut.useState(0),[Ut,Zt]=ut.useState(j.autoplay);let F;if(t[4]!==n||t[5]!==j.dateFormat){let Dt;t[7]!==j.dateFormat?(Dt=se=>je.parse(`${se.date}`,j.dateFormat||"yyyy",new Date).getTime(),t[7]=j.dateFormat,t[8]=Dt):Dt=t[8],F=[...new Set(n.filter(un).map(Dt))],F.sort(cn),t[4]=n,t[5]=j.dateFormat,t[6]=F}else F=t[6];const V=F,[M,N]=ut.useState(j.autoplay?0:V.length-1),[p,w]=ut.useState(void 0),l=ut.useRef(null),B=ut.useRef(null);let a,ie;t[9]===Symbol.for("react.memo_cache_sentinel")?(a=()=>{const Dt=new ResizeObserver(se=>{h(se[0].target.clientWidth||620),Nt(se[0].target.clientHeight||480)});return l.current&&Dt.observe(l.current),()=>Dt.disconnect()},ie=[],t[9]=a,t[10]=ie):(a=t[9],ie=t[10]),ut.useEffect(a,ie);let ne,ge;t[11]!==Ut||t[12]!==j.speed||t[13]!==V?(ne=()=>{const Dt=setInterval(()=>{N(se=>se<V.length-1?se+1:0)},(j.speed||2)*1e3);return Ut||clearInterval(Dt),()=>clearInterval(Dt)},ge=[V,Ut,j.speed],t[11]=Ut,t[12]=j.speed,t[13]=V,t[14]=ne,t[15]=ge):(ne=t[14],ge=t[15]),ut.useEffect(ne,ge);const Ae=j.dateFormat||"yyyy";let he;t[16]!==M||t[17]!==Ae||t[18]!==j.showOnlyActiveDate||t[19]!==V?(he=Re.getSliderMarks(V,M,j.showOnlyActiveDate,Ae),t[16]=M,t[17]=Ae,t[18]=j.showOnlyActiveDate,t[19]=V,t[20]=he):he=t[20];const ve=he,ye=R?.graphContainer,pe=r?.graphContainer;let oe;t[21]!==R?.description||t[22]!==R?.title||t[23]!==n||t[24]!==S||t[25]!==St||t[26]!==tt||t[27]!==G||t[28]!==r?.description||t[29]!==r?.title||t[30]!==A?(oe=G||St||tt||S?i.jsxRuntimeExports.jsx(Ue.GraphHeader,{styles:{title:r?.title,description:r?.description},classNames:{title:R?.title,description:R?.description},graphTitle:G,graphDescription:St,width:A,graphDownload:tt?B:void 0,dataDownload:S?n.map(rn).filter(an).length>0?n.map(ln).filter(on):n.filter(nn):null}):null,t[21]=R?.description,t[22]=R?.title,t[23]=n,t[24]=S,t[25]=St,t[26]=tt,t[27]=G,t[28]=r?.description,t[29]=r?.title,t[30]=A,t[31]=oe):oe=t[31];let le;t[32]!==M||t[33]!==ve||t[34]!==Ut||t[35]!==j.enabled||t[36]!==V?(le=j.enabled&&V.length>0&&ve?i.jsxRuntimeExports.jsxs("div",{className:"flex gap-6 items-center",dir:"ltr",children:[i.jsxRuntimeExports.jsx("button",{type:"button",onClick:()=>{Zt(!Ut)},className:"p-0 border-0 cursor-pointer bg-transparent","aria-label":Ut?"Click to pause animation":"Click to play animation",children:Ut?i.jsxRuntimeExports.jsx(Me.Pause,{}):i.jsxRuntimeExports.jsx(Me.Play,{})}),i.jsxRuntimeExports.jsx(Re.Nr,{min:V[0],max:V[V.length-1],marks:ve,step:null,defaultValue:V[V.length-1],value:V[M],onChangeComplete:Dt=>{N(V.indexOf(Dt))},onChange:Dt=>{N(V.indexOf(Dt))},"aria-label":"Time slider. Use arrow keys to adjust selected time period."})]}):null,t[32]=M,t[33]=ve,t[34]=Ut,t[35]=j.enabled,t[36]=V,t[37]=le):le=t[37];let ue;t[38]!==R?.colorLegend||t[39]!==ft||t[40]!==et||t[41]!==st||t[42]!==n.length||t[43]!==ct||t[44]!==A?(ue=ct&&n.length>0?i.jsxRuntimeExports.jsx(Ke.ColorLegendWithMouseOver,{width:A,colorDomain:ft,colors:st,colorLegendTitle:et,setSelectedColor:w,showNAColor:!1,className:R?.colorLegend}):null,t[38]=R?.colorLegend,t[39]=ft,t[40]=et,t[41]=st,t[42]=n.length,t[43]=ct,t[44]=A,t[45]=ue):ue=t[45];let ae;t[46]!==n.length?(ae=n.length===0&&i.jsxRuntimeExports.jsx(Qe.EmptyState,{}),t[46]=n.length,t[47]=ae):ae=t[47];let re;t[48]!==$t||t[49]!==Ot||t[50]!==dt||t[51]!==k||t[52]!==Mt||t[53]!==R||t[54]!==ft||t[55]!==st||t[56]!==Et||t[57]!==n||t[58]!==lt||t[59]!==Y||t[60]!==jt||t[61]!==M||t[62]!==u||t[63]!==I||t[64]!==Lt||t[65]!==ot||t[66]!==H||t[67]!==it||t[68]!==Ht||t[69]!==$||t[70]!==ht||t[71]!==c||t[72]!==K||t[73]!==kt||t[74]!==wt||t[75]!==T||t[76]!==pt||t[77]!==qt||t[78]!==p||t[79]!==Tt||t[80]!==mt||t[81]!==It||t[82]!==rt||t[83]!==L||t[84]!==r||t[85]!==vt||t[86]!==g||t[87]!==O||t[88]!==j.dateFormat||t[89]!==j.enabled||t[90]!==E||t[91]!==nt||t[92]!==zt||t[93]!==V||t[94]!==x?(re=O&&g&&n.length>0?i.jsxRuntimeExports.jsx($t,{hideAxisLine:jt,data:L!==void 0?L==="total"?Pe.orderBy($e.ensureCompleteDataForStackedBarChart(n,j.dateFormat||"yyyy").filter(Dt=>j.enabled?Dt.date===je.format(new Date(V[M]),j.dateFormat||"yyyy"):Dt).filter(Dt=>Y?!Dt.size.every(sn):Dt),tn,[rt||"asc"]).filter((Dt,se)=>H?se<H:!0):Pe.orderBy($e.ensureCompleteDataForStackedBarChart(n,j.dateFormat||"yyyy").filter(Dt=>j.enabled?Dt.date===je.format(new Date(V[M]),j.dateFormat||"yyyy"):Dt).filter(Dt=>Y?!Dt.size.every(_s):Dt),Dt=>ee.checkIfNullOrUndefined(Dt.size[L])?-1/0:Dt.size[L],[rt||"asc"]).filter((Dt,se)=>H?se<H:!0):$e.ensureCompleteDataForStackedBarChart(n,j.dateFormat||"yyyy").filter(Dt=>j.enabled?Dt.date===je.format(new Date(V[M]),j.dateFormat||"yyyy"):Dt).filter(Dt=>Y?!Dt.size.every(Zs):Dt).filter((Dt,se)=>H?se<H:!0),barColors:st,width:O,height:g,barPadding:k,showTicks:mt,leftMargin:Lt,rightMargin:qt,topMargin:nt,bottomMargin:Mt,truncateBy:zt,showLabels:Tt,tooltip:E,onSeriesMouseOver:K,showValues:It,suffix:vt,prefix:wt,refValues:T,maxValue:ee.checkIfNullOrUndefined(it)?Math.max(...n.map(Ks)):it,onSeriesMouseClick:c,selectedColor:p,rtl:I==="he"||I==="ar",labelOrder:u,maxBarThickness:ot,minBarThickness:Ht,resetSelectionOnDoubleClick:pt,detailsOnClick:lt,barAxisTitle:dt,noOfTicks:ht,valueColor:x,classNames:R,styles:r,animate:Ot===!0?{duration:.5,once:!0,amount:.5}:Ot||{duration:0,once:!0,amount:0},colorDomain:ft,precision:kt,customLayers:Et,naLabel:$}):null,t[48]=$t,t[49]=Ot,t[50]=dt,t[51]=k,t[52]=Mt,t[53]=R,t[54]=ft,t[55]=st,t[56]=Et,t[57]=n,t[58]=lt,t[59]=Y,t[60]=jt,t[61]=M,t[62]=u,t[63]=I,t[64]=Lt,t[65]=ot,t[66]=H,t[67]=it,t[68]=Ht,t[69]=$,t[70]=ht,t[71]=c,t[72]=K,t[73]=kt,t[74]=wt,t[75]=T,t[76]=pt,t[77]=qt,t[78]=p,t[79]=Tt,t[80]=mt,t[81]=It,t[82]=rt,t[83]=L,t[84]=r,t[85]=vt,t[86]=g,t[87]=O,t[88]=j.dateFormat,t[89]=j.enabled,t[90]=E,t[91]=nt,t[92]=zt,t[93]=V,t[94]=x,t[95]=re):re=t[95];let xe;t[96]!==ae||t[97]!==re?(xe=i.jsxRuntimeExports.jsxs(Le.GraphArea,{ref:l,children:[ae,re]}),t[96]=ae,t[97]=re,t[98]=xe):xe=t[98];let de;t[99]!==ue||t[100]!==xe?(de=i.jsxRuntimeExports.jsxs("div",{className:"grow flex flex-col justify-center gap-3 w-full",children:[ue,xe]}),t[99]=ue,t[100]=xe,t[101]=de):de=t[101];let ce;t[102]!==R?.footnote||t[103]!==R?.source||t[104]!==X||t[105]!==Kt||t[106]!==r?.footnote||t[107]!==r?.source||t[108]!==A?(ce=Kt||X?i.jsxRuntimeExports.jsx(Je.GraphFooter,{styles:{footnote:r?.footnote,source:r?.source},classNames:{footnote:R?.footnote,source:R?.source},sources:Kt,footNote:X,width:A}):null,t[102]=R?.footnote,t[103]=R?.source,t[104]=X,t[105]=Kt,t[106]=r?.footnote,t[107]=r?.source,t[108]=A,t[109]=ce):ce=t[109];let Qt;return t[110]!==Bt||t[111]!==bt||t[112]!==Z||t[113]!==J||t[114]!==I||t[115]!==Vt||t[116]!==Rt||t[117]!==Q||t[118]!==ye||t[119]!==pe||t[120]!==oe||t[121]!==le||t[122]!==de||t[123]!==ce||t[124]!==At||t[125]!==A?(Qt=i.jsxRuntimeExports.jsxs(Le.GraphContainer,{className:ye,style:pe,id:Z,ref:B,"aria-label":Bt,backgroundColor:bt,theme:At,language:I,minHeight:Vt,width:A,height:J,relativeHeight:Q,padding:Rt,children:[oe,le,de,ce]}),t[110]=Bt,t[111]=bt,t[112]=Z,t[113]=J,t[114]=I,t[115]=Vt,t[116]=Rt,t[117]=Q,t[118]=ye,t[119]=pe,t[120]=oe,t[121]=le,t[122]=de,t[123]=ce,t[124]=At,t[125]=A,t[126]=Qt):Qt=t[126],Qt}function Ks(e){return me.sum(e.size.filter(Qs))||0}function Qs(e){return!ee.checkIfNullOrUndefined(e)}function Zs(e){return e==null}function _s(e){return e==null}function tn(e){return me.sum(e.size.filter(en))}function en(e){return!ee.checkIfNullOrUndefined(e)}function sn(e){return e==null}function nn(e){return e!==void 0}function on(e){return e!==void 0}function ln(e){return e.data}function an(e){return e!==void 0}function rn(e){return e.data}function cn(e,t){return e-t}function un(e){return e.date}function xn(e){const t=i.compilerRuntimeExports.c(63),{data:n,graphTitle:G,colors:Jt,barPadding:Kt,showTicks:St,leftMargin:Ct,rightMargin:Ft,topMargin:P,bottomMargin:J,truncateBy:A,showLabels:X,showValues:ft,backgroundColor:et,suffix:Rt,prefix:q,sources:nt,graphDescription:Mt,height:Lt,width:qt,footNote:E,colorDomain:K,colorLegendTitle:z,padding:D,relativeHeight:xt,tooltip:Q,onSeriesMouseOver:gt,refValues:T,showColorScale:Z,graphID:it,maxValue:c,minValue:s,highlightedDataPoints:o,onSeriesMouseClick:m,graphDownload:u,dataDownload:f,language:d,theme:ot,sortData:L,labelOrder:H,showNAColor:Ht,minHeight:Wt,maxBarThickness:Bt,maxNumberOfBars:Pt,minBarThickness:lt,ariaLabel:dt,resetSelectionOnDoubleClick:_,detailsOnClick:x,barAxisTitle:r,noOfTicks:R,valueColor:yt,orientation:y,styles:C,classNames:Xt,filterNA:at,animate:Yt,dimmedOpacity:rt,precision:Gt,customLayers:W,timeline:st,naLabel:k,trackColor:mt,hideAxisLine:zt}=e,bt=y===void 0?"vertical":y,vt=zt===void 0?!1:zt;let wt;return t[0]!==Yt||t[1]!==dt||t[2]!==et||t[3]!==r||t[4]!==Kt||t[5]!==J||t[6]!==Xt||t[7]!==K||t[8]!==z||t[9]!==Jt||t[10]!==W||t[11]!==n||t[12]!==f||t[13]!==x||t[14]!==rt||t[15]!==at||t[16]!==E||t[17]!==Mt||t[18]!==u||t[19]!==it||t[20]!==G||t[21]!==Lt||t[22]!==vt||t[23]!==o||t[24]!==H||t[25]!==d||t[26]!==Ct||t[27]!==Bt||t[28]!==Pt||t[29]!==c||t[30]!==lt||t[31]!==Wt||t[32]!==s||t[33]!==k||t[34]!==R||t[35]!==m||t[36]!==gt||t[37]!==bt||t[38]!==D||t[39]!==Gt||t[40]!==q||t[41]!==T||t[42]!==xt||t[43]!==_||t[44]!==Ft||t[45]!==Z||t[46]!==X||t[47]!==Ht||t[48]!==St||t[49]!==ft||t[50]!==L||t[51]!==nt||t[52]!==C||t[53]!==Rt||t[54]!==ot||t[55]!==st||t[56]!==Q||t[57]!==P||t[58]!==mt||t[59]!==A||t[60]!==yt||t[61]!==qt?(wt=i.jsxRuntimeExports.jsx(us,{data:n,graphTitle:G,colors:Jt,barPadding:Kt,showTicks:St,leftMargin:Ct,rightMargin:Ft,topMargin:P,bottomMargin:J,truncateBy:A,showLabels:X,showValues:ft,backgroundColor:et,suffix:Rt,prefix:q,sources:nt,graphDescription:Mt,height:Lt,width:qt,footNote:E,colorDomain:K,colorLegendTitle:z,padding:D,relativeHeight:xt,tooltip:Q,onSeriesMouseOver:gt,refValues:T,showColorScale:Z,graphID:it,maxValue:c,minValue:s,highlightedDataPoints:o,onSeriesMouseClick:m,graphDownload:u,dataDownload:f,language:d,theme:ot,sortData:L,labelOrder:H,showNAColor:Ht,minHeight:Wt,maxBarThickness:Bt,maxNumberOfBars:Pt,minBarThickness:lt,ariaLabel:dt,resetSelectionOnDoubleClick:_,styles:C,detailsOnClick:x,barAxisTitle:r,noOfTicks:R,valueColor:yt,classNames:Xt,filterNA:at,animate:Yt,dimmedOpacity:rt,precision:Gt,customLayers:W,timeline:st,naLabel:k,orientation:bt,trackColor:mt,hideAxisLine:vt}),t[0]=Yt,t[1]=dt,t[2]=et,t[3]=r,t[4]=Kt,t[5]=J,t[6]=Xt,t[7]=K,t[8]=z,t[9]=Jt,t[10]=W,t[11]=n,t[12]=f,t[13]=x,t[14]=rt,t[15]=at,t[16]=E,t[17]=Mt,t[18]=u,t[19]=it,t[20]=G,t[21]=Lt,t[22]=vt,t[23]=o,t[24]=H,t[25]=d,t[26]=Ct,t[27]=Bt,t[28]=Pt,t[29]=c,t[30]=lt,t[31]=Wt,t[32]=s,t[33]=k,t[34]=R,t[35]=m,t[36]=gt,t[37]=bt,t[38]=D,t[39]=Gt,t[40]=q,t[41]=T,t[42]=xt,t[43]=_,t[44]=Ft,t[45]=Z,t[46]=X,t[47]=Ht,t[48]=St,t[49]=ft,t[50]=L,t[51]=nt,t[52]=C,t[53]=Rt,t[54]=ot,t[55]=st,t[56]=Q,t[57]=P,t[58]=mt,t[59]=A,t[60]=yt,t[61]=qt,t[62]=wt):wt=t[62],wt}function dn(e){const t=i.compilerRuntimeExports.c(58),{data:n,graphTitle:G,colors:Jt,sources:Kt,graphDescription:St,barPadding:Ct,showTicks:Ft,truncateBy:P,height:J,width:A,footNote:X,colorDomain:ft,colorLegendTitle:et,suffix:Rt,prefix:q,showValues:nt,padding:Mt,backgroundColor:Lt,leftMargin:qt,rightMargin:E,topMargin:K,bottomMargin:z,showLabels:D,relativeHeight:xt,tooltip:Q,onSeriesMouseOver:gt,refValues:T,graphID:Z,maxValue:it,minValue:c,onSeriesMouseClick:s,graphDownload:o,dataDownload:m,language:u,labelOrder:f,minHeight:d,theme:ot,sortParameter:L,sortData:H,maxBarThickness:Ht,ariaLabel:Wt,resetSelectionOnDoubleClick:Bt,detailsOnClick:Pt,barAxisTitle:lt,noOfTicks:dt,valueColor:_,orientation:x,styles:r,classNames:R,filterNA:yt,animate:y,precision:C,customLayers:Xt,showColorScale:at,timeline:Yt,naLabel:rt,hideAxisLine:Gt}=e,W=x===void 0?"vertical":x,st=Gt===void 0?!1:Gt;let k;return t[0]!==y||t[1]!==Wt||t[2]!==Lt||t[3]!==lt||t[4]!==Ct||t[5]!==z||t[6]!==R||t[7]!==ft||t[8]!==et||t[9]!==Jt||t[10]!==Xt||t[11]!==n||t[12]!==m||t[13]!==Pt||t[14]!==yt||t[15]!==X||t[16]!==St||t[17]!==o||t[18]!==Z||t[19]!==G||t[20]!==J||t[21]!==st||t[22]!==f||t[23]!==u||t[24]!==qt||t[25]!==Ht||t[26]!==it||t[27]!==d||t[28]!==c||t[29]!==rt||t[30]!==dt||t[31]!==s||t[32]!==gt||t[33]!==W||t[34]!==Mt||t[35]!==C||t[36]!==q||t[37]!==T||t[38]!==xt||t[39]!==Bt||t[40]!==E||t[41]!==at||t[42]!==D||t[43]!==Ft||t[44]!==nt||t[45]!==H||t[46]!==L||t[47]!==Kt||t[48]!==r||t[49]!==Rt||t[50]!==ot||t[51]!==Yt||t[52]!==Q||t[53]!==K||t[54]!==P||t[55]!==_||t[56]!==A?(k=i.jsxRuntimeExports.jsx(gi,{orientation:W,data:n,graphTitle:G,colors:Jt,sources:Kt,graphDescription:St,barPadding:Ct,showTicks:Ft,truncateBy:P,height:J,width:A,footNote:X,colorDomain:ft,colorLegendTitle:et,suffix:Rt,prefix:q,showValues:nt,padding:Mt,backgroundColor:Lt,leftMargin:qt,rightMargin:E,sortParameter:L,sortData:H,topMargin:K,bottomMargin:z,showLabels:D,relativeHeight:xt,tooltip:Q,onSeriesMouseOver:gt,refValues:T,graphID:Z,maxValue:it,minValue:c,onSeriesMouseClick:s,graphDownload:o,dataDownload:m,language:u,labelOrder:f,minHeight:d,theme:ot,maxBarThickness:Ht,ariaLabel:Wt,resetSelectionOnDoubleClick:Bt,styles:r,detailsOnClick:Pt,barAxisTitle:lt,noOfTicks:dt,valueColor:_,classNames:R,filterNA:yt,animate:y,precision:C,customLayers:Xt,showColorScale:at,timeline:Yt,naLabel:rt,hideAxisLine:st}),t[0]=y,t[1]=Wt,t[2]=Lt,t[3]=lt,t[4]=Ct,t[5]=z,t[6]=R,t[7]=ft,t[8]=et,t[9]=Jt,t[10]=Xt,t[11]=n,t[12]=m,t[13]=Pt,t[14]=yt,t[15]=X,t[16]=St,t[17]=o,t[18]=Z,t[19]=G,t[20]=J,t[21]=st,t[22]=f,t[23]=u,t[24]=qt,t[25]=Ht,t[26]=it,t[27]=d,t[28]=c,t[29]=rt,t[30]=dt,t[31]=s,t[32]=gt,t[33]=W,t[34]=Mt,t[35]=C,t[36]=q,t[37]=T,t[38]=xt,t[39]=Bt,t[40]=E,t[41]=at,t[42]=D,t[43]=Ft,t[44]=nt,t[45]=H,t[46]=L,t[47]=Kt,t[48]=r,t[49]=Rt,t[50]=ot,t[51]=Yt,t[52]=Q,t[53]=K,t[54]=P,t[55]=_,t[56]=A,t[57]=k):k=t[57],k}function mn(e){const t=i.compilerRuntimeExports.c(59),{data:n,graphTitle:G,colors:Jt,sources:Kt,graphDescription:St,barPadding:Ct,showTicks:Ft,leftMargin:P,rightMargin:J,topMargin:A,bottomMargin:X,truncateBy:ft,showLabels:et,showValues:Rt,backgroundColor:q,suffix:nt,prefix:Mt,height:Lt,width:qt,footNote:E,colorDomain:K,colorLegendTitle:z,padding:D,tooltip:xt,onSeriesMouseOver:Q,relativeHeight:gt,refValues:T,graphID:Z,maxValue:it,onSeriesMouseClick:c,graphDownload:s,dataDownload:o,language:m,theme:u,labelOrder:f,minHeight:d,maxBarThickness:ot,sortParameter:L,sortData:H,maxNumberOfBars:Ht,minBarThickness:Wt,ariaLabel:Bt,resetSelectionOnDoubleClick:Pt,detailsOnClick:lt,barAxisTitle:dt,noOfTicks:_,valueColor:x,orientation:r,styles:R,classNames:yt,filterNA:y,animate:C,precision:Xt,customLayers:at,showColorScale:Yt,timeline:rt,naLabel:Gt,hideAxisLine:W}=e,st=r===void 0?"vertical":r,k=W===void 0?!1:W;let mt;return t[0]!==C||t[1]!==Bt||t[2]!==q||t[3]!==dt||t[4]!==Ct||t[5]!==X||t[6]!==yt||t[7]!==K||t[8]!==z||t[9]!==Jt||t[10]!==at||t[11]!==n||t[12]!==o||t[13]!==lt||t[14]!==y||t[15]!==E||t[16]!==St||t[17]!==s||t[18]!==Z||t[19]!==G||t[20]!==Lt||t[21]!==k||t[22]!==f||t[23]!==m||t[24]!==P||t[25]!==ot||t[26]!==Ht||t[27]!==it||t[28]!==Wt||t[29]!==d||t[30]!==Gt||t[31]!==_||t[32]!==c||t[33]!==Q||t[34]!==st||t[35]!==D||t[36]!==Xt||t[37]!==Mt||t[38]!==T||t[39]!==gt||t[40]!==Pt||t[41]!==J||t[42]!==Yt||t[43]!==et||t[44]!==Ft||t[45]!==Rt||t[46]!==H||t[47]!==L||t[48]!==Kt||t[49]!==R||t[50]!==nt||t[51]!==u||t[52]!==rt||t[53]!==xt||t[54]!==A||t[55]!==ft||t[56]!==x||t[57]!==qt?(mt=i.jsxRuntimeExports.jsx(Js,{data:n,graphTitle:G,colors:Jt,sources:Kt,graphDescription:St,barPadding:Ct,showTicks:Ft,leftMargin:P,rightMargin:J,topMargin:A,bottomMargin:X,truncateBy:ft,showLabels:et,showValues:Rt,backgroundColor:q,suffix:nt,prefix:Mt,height:Lt,width:qt,footNote:E,colorDomain:K,colorLegendTitle:z,padding:D,tooltip:xt,onSeriesMouseOver:Q,relativeHeight:gt,refValues:T,graphID:Z,maxValue:it,onSeriesMouseClick:c,graphDownload:s,dataDownload:o,language:m,theme:u,labelOrder:f,minHeight:d,maxBarThickness:ot,sortParameter:L,sortData:H,maxNumberOfBars:Ht,minBarThickness:Wt,ariaLabel:Bt,resetSelectionOnDoubleClick:Pt,styles:R,detailsOnClick:lt,barAxisTitle:dt,noOfTicks:_,valueColor:x,classNames:yt,filterNA:y,animate:C,precision:Xt,customLayers:at,showColorScale:Yt,timeline:rt,naLabel:Gt,orientation:st,hideAxisLine:k}),t[0]=C,t[1]=Bt,t[2]=q,t[3]=dt,t[4]=Ct,t[5]=X,t[6]=yt,t[7]=K,t[8]=z,t[9]=Jt,t[10]=at,t[11]=n,t[12]=o,t[13]=lt,t[14]=y,t[15]=E,t[16]=St,t[17]=s,t[18]=Z,t[19]=G,t[20]=Lt,t[21]=k,t[22]=f,t[23]=m,t[24]=P,t[25]=ot,t[26]=Ht,t[27]=it,t[28]=Wt,t[29]=d,t[30]=Gt,t[31]=_,t[32]=c,t[33]=Q,t[34]=st,t[35]=D,t[36]=Xt,t[37]=Mt,t[38]=T,t[39]=gt,t[40]=Pt,t[41]=J,t[42]=Yt,t[43]=et,t[44]=Ft,t[45]=Rt,t[46]=H,t[47]=L,t[48]=Kt,t[49]=R,t[50]=nt,t[51]=u,t[52]=rt,t[53]=xt,t[54]=A,t[55]=ft,t[56]=x,t[57]=qt,t[58]=mt):mt=t[58],mt}exports.GroupedBarGraph=dn;exports.SimpleBarGraph=xn;exports.StackedBarGraph=mn;
|
|
2
2
|
//# sourceMappingURL=BarGraph.cjs.map
|
package/dist/BarGraph.js
CHANGED
|
@@ -25,7 +25,7 @@ import { GraphHeader as _e } from "./GraphHeader.js";
|
|
|
25
25
|
import { GraphFooter as ti } from "./GraphFooter.js";
|
|
26
26
|
import { ColorLegendWithMouseOver as ei } from "./ColorLegendWithMouseOver.js";
|
|
27
27
|
import { Colors as pe } from "./Colors.js";
|
|
28
|
-
import { E as ii } from "./EmptyState-
|
|
28
|
+
import { E as ii } from "./EmptyState-dScPFkLy.js";
|
|
29
29
|
import { P as si, e as li } from "./index-B-4y_iGB.js";
|
|
30
30
|
import { d as De, f as oi } from "./ensureCompleteData-CDIukSG6.js";
|
|
31
31
|
import { a as ai, G as ni } from "./GraphContainer-CF6ws3pd.js";
|
package/dist/BasicStatCard.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-CHPV5EwG-6v2a2njQ.cjs"),Q=require("./Typography-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-CHPV5EwG-6v2a2njQ.cjs"),Q=require("./Typography-Cc_iHQB-.cjs"),U=require("./GraphFooter.cjs"),X=require("./GraphHeader.cjs"),Y=require("./numberFormattingFunction-02t-wJta.cjs");function tt(Z){const t=r.compilerRuntimeExports.c(48),{year:l,value:j,graphTitle:i,suffix:q,sources:c,prefix:z,graphDescription:n,footNote:x,padding:W,backgroundColor:L,graphID:w,language:D,theme:P,ariaLabel:_,textBackground:I,headingFontSize:M,centerAlign:O,verticalAlign:V,layout:J,styles:e,classNames:o,precision:b}=Z,v=q===void 0?"":q,R=z===void 0?"":z,a=L===void 0?!1:L,s=D===void 0?"en":D,K=P===void 0?"light":P,E=I===void 0?!1:I,N=M===void 0?"4.375rem":M,k=O===void 0?!1:O,$=V===void 0?"center":V,y=J===void 0?"primary":J,F=`${K||"light"} w-full`,C=s==="he"||s==="ar"?"rtl":void 0,G=`${K||"light"} flex flex-col w-full box-border h-full ${a?a===!0?"bg-primary-gray-200 dark:bg-primary-gray-650":"":"bg-transparent"} ${s||"en"}`,T=o?.graphContainer;let u;t[0]!==G||t[1]!==T?(u=r.mo(G,T),t[0]=G,t[1]=T,t[2]=u):u=t[2];let d;t[3]!==e?.graphContainer?(d=e?.graphContainer||{},t[3]=e?.graphContainer,t[4]=d):d=t[4];let p;t[5]!==a?(p=a&&a!==!0?{backgroundColor:a}:{},t[5]=a,t[6]=p):p=t[6];const A=a?W||"1rem":W||0;let m;t[7]!==d||t[8]!==p||t[9]!==A?(m={...d,...p,padding:A},t[7]=d,t[8]=p,t[9]=A,t[10]=m):m=t[10];const B=_||`${i?`The graph shows ${i}. `:""}This is a statistic card.${n?` ${n}`:""}`,H=`flex flex-col w-full grow ${y!=="secondary"?"gap-12 justify-between":"gap-4 justify-center"}`;let g;t[11]!==k||t[12]!==o?.description||t[13]!==o?.footnote||t[14]!==o?.source||t[15]!==o?.title||t[16]!==x||t[17]!==n||t[18]!==i||t[19]!==N||t[20]!==s||t[21]!==y||t[22]!==b||t[23]!==R||t[24]!==c||t[25]!==e?.description||t[26]!==e?.footnote||t[27]!==e?.source||t[28]!==e?.title||t[29]!==v||t[30]!==E||t[31]!==j||t[32]!==$||t[33]!==l?(g=y!=="secondary"?r.jsxRuntimeExports.jsxs(r.jsxRuntimeExports.Fragment,{children:[i||n?r.jsxRuntimeExports.jsx(X.GraphHeader,{styles:{title:e?.title,description:e?.description},classNames:{title:o?.title,description:o?.description},graphTitle:i,graphDescription:n}):null,r.jsxRuntimeExports.jsx("div",{className:`flex flex-col justify-between grow ${$==="top"?"justify-start":$==="bottom"?"justify-end":"justify-center"}`,children:r.jsxRuntimeExports.jsxs(Q.R,{marginBottom:"base",className:`leading-none text-outline font-heading ${k?"text-center":s==="he"||s==="ar"?"text-right":"text-left"} ${E?"text-primary-black dark:text-primary-white":"transparent"}`,style:{fontSize:N,letterSpacing:"0.05rem"},children:[Y.numberFormattingFunction(j,"NA",b,R,v)," ",l?r.jsxRuntimeExports.jsxs("span",{className:"text-lg font-normal mt-0 mb-4 text-primary-gray-550 dark:text-primary-gray-400",style:{marginLeft:"-8px",lineHeight:"1.09",textShadow:"none",WebkitTextStrokeWidth:0},children:["(",l,")"]}):null]})}),c||x?r.jsxRuntimeExports.jsx(U.GraphFooter,{styles:{footnote:e?.footnote,source:e?.source},classNames:{footnote:o?.footnote,source:o?.source},sources:c,footNote:x}):null]}):r.jsxRuntimeExports.jsxs(r.jsxRuntimeExports.Fragment,{children:[r.jsxRuntimeExports.jsxs(Q.R,{marginBottom:y==="secondary"?"none":"base",className:`leading-none text-outline font-heading ${k?"text-center":s==="he"||s==="ar"?"text-right":"text-left"} ${E?"text-primary-black dark:text-primary-white":"transparent"}`,style:{fontSize:N,letterSpacing:"0.05rem"},children:[Y.numberFormattingFunction(j,"NA",b,R,v)," ",l?r.jsxRuntimeExports.jsxs("span",{className:"text-lg font-normal mt-0 mb-4 text-primary-gray-550 dark:text-primary-gray-400",style:{marginLeft:"-8px",lineHeight:"1.09",textShadow:"none",WebkitTextStrokeWidth:0},children:["(",l,")"]}):null]}),i||n?r.jsxRuntimeExports.jsx(X.GraphHeader,{styles:{title:e?.title,description:e?.description},classNames:{title:o?.title,description:o?.description},graphTitle:i,graphDescription:n}):null,c||x?r.jsxRuntimeExports.jsx(U.GraphFooter,{styles:{footnote:e?.footnote,source:e?.source},classNames:{footnote:o?.footnote,source:o?.source},sources:c,footNote:x}):null]}),t[11]=k,t[12]=o?.description,t[13]=o?.footnote,t[14]=o?.source,t[15]=o?.title,t[16]=x,t[17]=n,t[18]=i,t[19]=N,t[20]=s,t[21]=y,t[22]=b,t[23]=R,t[24]=c,t[25]=e?.description,t[26]=e?.footnote,t[27]=e?.source,t[28]=e?.title,t[29]=v,t[30]=E,t[31]=j,t[32]=$,t[33]=l,t[34]=g):g=t[34];let f;t[35]!==H||t[36]!==g?(f=r.jsxRuntimeExports.jsx("div",{className:H,children:g}),t[35]=H,t[36]=g,t[37]=f):f=t[37];let h;t[38]!==w||t[39]!==C||t[40]!==u||t[41]!==m||t[42]!==B||t[43]!==f?(h=r.jsxRuntimeExports.jsx("div",{id:w,dir:C,className:u,style:m,"aria-label":B,children:f}),t[38]=w,t[39]=C,t[40]=u,t[41]=m,t[42]=B,t[43]=f,t[44]=h):h=t[44];let S;return t[45]!==F||t[46]!==h?(S=r.jsxRuntimeExports.jsx("div",{className:F,children:h}),t[45]=F,t[46]=h,t[47]=S):S=t[47],S}exports.BasicStatCard=tt;
|
|
2
2
|
//# sourceMappingURL=BasicStatCard.cjs.map
|