1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="653df5cd-4b5a-4099-9718-288eda520ea0",e._sentryDebugIdIdentifier="sentry-dbid-653df5cd-4b5a-4099-9718-288eda520ea0")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[57894],{57894:(e,t,r)=>{r.r(t),r.d(t,{MetricChart:()=>W});var l=r(86730),n=r(17864),s=r(76324),i=r(29648),a=r(53981),o=r(31655);function c(e){return`${e}_moe`}function u(e){let t=new Set;for(let r of e)for(let e of r.points)t.add(e.x);return[...t].sort((e,t)=>Number(e)-Number(t)||e.localeCompare(t)).map(t=>{let r={x:t};for(let l of e){let e=l.points.find(e=>e.x===t),n=e&&"number"==typeof e.y&&Number.isFinite(e.y)?e.y:null;r[l.key]=n,r[c(l.key)]=null!=n&&e&&"number"==typeof e.moe&&Number.isFinite(e.moe)?e.moe:null}return r})}function d(e){return e.some(e=>e.points.some(e=>"number"==typeof e.moe&&Number.isFinite(e.moe)))}var h=r(70947),m=r(53979);function x({presentation:e,height:t=36,className:r}){let c=e.trend;if(!c||c.length<2)return null;let d=u([{key:"y",points:c}]);return d.length<2?null:(0,l.jsx)("div",{className:(0,m.cn)("w-full",r),style:{height:t},children:(0,l.jsx)(n.u,{width:"100%",height:"100%",children:(0,l.jsxs)(s.b,{data:d,margin:{top:4,right:2,left:2,bottom:2},children:[(0,l.jsx)(i.m,{contentStyle:h.lI,labelStyle:{color:"hsl(var(--foreground))"},formatter:t=>{let r="number"==typeof t?t:Number(t);return Number.isFinite(r)?[(0,o.dd)(r,e.unit),e.label]:["â",e.label]}}),(0,l.jsx)(a.N1,{type:h.f6,dataKey:"y",stroke:h.tK[0],strokeWidth:1.75,dot:!1,activeDot:{r:3},connectNulls:!0,...h.QU})]})})})}var f=r(74494),y=r(25924),b=r(12855),g=r(51408),p=r(42518),j=r(14946),N=r(49776),k=r(56514),v=r(38461);function $({label:e,grain:t,vintage:r,evidenceTier:n,subtitle:s,note:i,height:a=h.OR,headingLevel:o="h3",summary:c,takeaway:u,source:d,data:x,legend:f,className:y,children:b}){let{t:g}=(0,v.pp)(),[p,$]=(0,j.useState)(!1),w=(0,j.useId)(),L=u??c??null,S=!!(x&&x.rows.length);return(0,l.jsxs)("figure",{className:(0,m.cn)("m-0 space-y-4",y),children:[(0,l.jsxs)("div",{className:"flex flex-wrap items-end justify-between gap-3",children:[(0,l.jsxs)("div",{children:[(0,l.jsx)(o,{className:"font-heading text-xl tracking-tight",children:e}),s?(0,l.jsx)("p",{className:"mt-1 text-xs text-muted-foreground",children:s}):null]}),(0,l.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5",children:[(0,l.jsx)(k.Rp,{grain:t}),r?(0,l.jsx)(k.oT,{vintage:r}):null,(0,l.jsx)(k._d,{tier:n})]})]}),(0,l.jsx)("div",{className:h.uq,style:{height:(0,h.HS)(a)},role:"img","aria-label":c??e,children:b}),f??null,(0,l.jsxs)("figcaption",{className:"space-y-1.5",children:[L?(0,l.jsx)("p",{className:"font-body text-sm text-foreground",children:L}):null,d?(0,l.jsx)("p",{className:"font-body text-micro text-muted-foreground",children:g("chart.sourceLine",{source:d})}):null,i?(0,l.jsx)("p",{className:"font-body text-micro text-muted-foreground",children:i}):null]}),S&&x?(0,l.jsxs)("div",{className:"print:hidden",children:[(0,l.jsx)("button",{type:"button",onClick:()=>$(e=>!e),"aria-expanded":p,"aria-controls":w,className:"min-h-11 rounded-sm font-body text-micro uppercase nir-eyebrow text-muted-foreground underline underline-offset-4 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",children:g(p?"chart.hideData":"chart.showData")}),(0,l.jsx)("div",{id:w,hidden:!p,children:p?(0,l.jsxs)(N.XI,{className:"mt-2 text-sm",children:[(0,l.jsx)(N.r6,{className:"mb-2 mt-0 caption-top text-left text-micro",children:g("chart.tableCaption",{label:e})}),(0,l.jsx)(N.A0,{children:(0,l.jsx)(N.Hj,{className:"hover:bg-transparent",children:x.columns.map((e,t)=>(0,l.jsx)(N.nd,{scope:"col",className:(0,m.cn)("h-auto pb-2 text-micro uppercase nir-eyebrow",t>0&&"text-right"),children:e},`${e}-${t}`))})}),(0,l.jsx)(N.BF,{children:x.rows.map(e=>(0,l.jsxs)(N.Hj,{className:"hover:bg-transparent",children:[(0,l.jsx)(N.nd,{scope:"row",className:"h-auto py-1.5 font-normal text-foreground",children:e.header}),e.cells.map((e,t)=>(0,l.jsx)(N.nA,{className:"nir-num py-1.5 text-right",children:e},t))]},e.key))})]}):null})]}):null]})}var w=r(89838);function L(e,t,r,n,s,i){let a="hsl(var(--card))";switch(e){case"square":return(0,l.jsx)("rect",{x:t-n,y:r-n,width:2*n,height:2*n,fill:s,stroke:a,strokeWidth:1},i);case"triangle":{let e=1.25*n;return(0,l.jsx)("path",{d:`M${t} ${r-e}L${t+e} ${r+.8*e}L${t-e} ${r+.8*e}Z`,fill:s,stroke:a,strokeWidth:1},i)}case"diamond":{let e=1.35*n;return(0,l.jsx)("path",{d:`M${t} ${r-e}L${t+e} ${r}L${t} ${r+e}L${t-e} ${r}Z`,fill:s,stroke:a,strokeWidth:1},i)}case"cross":{let e=1.2*n;return(0,l.jsx)("path",{d:`M${t-e} ${r-e}L${t+e} ${r+e}M${t+e} ${r-e}L${t-e} ${r+e}`,fill:"none",stroke:s,strokeWidth:2},i)}default:return(0,l.jsx)("circle",{cx:t,cy:r,r:n,fill:s,stroke:a,strokeWidth:1},i)}}function S({slot:e}){return(0,l.jsxs)("svg",{width:28,height:12,viewBox:"0 0 28 12","aria-hidden":!0,
1className:"shrink-0",children:[(0,l.jsx)("line",{x1:1,y1:6,x2:27,y2:6,stroke:h.tK[e],strokeWidth:2,strokeDasharray:h.MH[e]}),L(h.L8[e],14,6,3,h.tK[e])]})}function F({items:e,label:t}){return e.length<2?null:(0,l.jsx)("ul",{"aria-label":t,className:"flex flex-wrap gap-x-4 gap-y-2",children:e.map(e=>(0,l.jsxs)("li",{className:"flex items-center gap-2",children:[(0,l.jsx)(S,{slot:e.slot}),(0,l.jsx)("span",{className:"font-body text-micro text-foreground",children:e.label})]},e.key))})}function _({series:e,axisLabel:t,formatValue:r,tickFormatter:o,colorOffset:m,showXAxis:x,directLabels:p,narrow:j}){let N=u(e);return N.length<2?null:(0,l.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col",children:[(0,l.jsx)("p",{className:"font-body text-micro text-muted-foreground",children:t}),(0,l.jsx)("div",{className:"min-h-0 flex-1",children:(0,l.jsx)(n.u,{width:"100%",height:"100%",children:(0,l.jsxs)(s.b,{data:N,margin:{top:8,right:p?132:16,left:4*!j,bottom:8*!!x},accessibilityLayer:!1,children:[(0,l.jsx)(f.d,{...h.KO}),(0,l.jsx)(y.W,{dataKey:"x",tick:!!x&&h.hc,tickLine:!1,axisLine:{stroke:"hsl(var(--border))"},height:x?24:8,dy:6}),(0,l.jsx)(b.h,{tick:h.hc,tickLine:!1,axisLine:!1,width:j?h.Hb:56,domain:[0,"auto"],tickFormatter:o}),(0,l.jsx)(i.m,{contentStyle:h.lI,labelStyle:{color:"hsl(var(--foreground))"},formatter:(t,l)=>{let n="number"==typeof t?t:Number(t),s=e.find(e=>e.key===l),i=s?.label??String(l);return[Number.isFinite(n)?r(n):"â",i]}}),e.map((e,t)=>{var r,n,s,i,o;let u=m+t;return(0,l.jsx)(a.N1,{type:h.f6,dataKey:e.key,name:e.key,stroke:h.tK[u],strokeWidth:2,strokeDasharray:h.MH[u],dot:(r=h.L8[u],n=h.tK[u],function(e){let t=`dot-${String(e.dataKey??"")}-${String(e.index??"")}`,s=Number(e.cx),i=Number(e.cy);return null!=e.cx&&null!=e.cy&&Number.isFinite(s)&&Number.isFinite(i)?L(r,s,i,3,n,t):(0,l.jsx)("g",{},t)}),activeDot:h.ur,label:!!p&&(s=e.label,i=h.PN[u],o=(e=>{for(let t=N.length-1;t>=0;t--)if("number"==typeof N[t][e])return t;return -1})(e.key),function(e){let t=e.viewBox&&"object"==typeof e.viewBox?e.viewBox:null,r=t?.x??e.x,n=t?.y??e.y,a=Number(r),c=Number(n);return e.index===o&&null!=r&&null!=n&&Number.isFinite(a)&&Number.isFinite(c)?(0,l.jsx)("text",{x:a+8,y:c,dy:4,fill:i,fontSize:12,fontWeight:600,children:s.length>18?`${s.slice(0,17)}â¦`:s}):(0,l.jsx)("g",{})}),connectNulls:!0,...h.QU,children:d([e])?(0,l.jsx)(g.u,{dataKey:c(e.key),...h.C2}):null},e.key)})]})})})]})}function K({presentation:e,className:t,height:r,headingLevel:n="h3"}){let{t:s,locale:i}=(0,v.pp)(),a=(0,p.i)(639),o=(0,p.i)(767),d=(0,l.jsx)(w.G,{label:e.label,reason:"too_few_series",source:e.source,className:t});if(!e.series.length)return d;let{shares:m,counts:x}=function(e){let t=e.filter(e=>e.key.startsWith("pct_")),r=e.filter(e=>!e.key.startsWith("pct_"));return{shares:t,counts:r,dualAxis:t.length>0&&r.length>0}}(e.series),f=m.slice(0,h.NQ),y=x.slice(0,Math.max(0,h.NQ-f.length));if(!f.length&&!y.length)return d;let b=e=>`${e}%`,g=e=>e.toLocaleString(i),j=[...f.map((e,t)=>({s:e,slot:t,fmt:b})),...y.map((e,t)=>({s:e,slot:f.length+t,fmt:g}))],N=j.map(({s:e,fmt:t})=>{let r=e.points.filter(e=>"number"==typeof e.y&&Number.isFinite(e.y)),l=r[0],n=r[r.length-1];return l&&n?s("chart.summaryRange",{series:e.label,from:t(l.y),start:l.x,to:t(n.y),end:n.x}):null}).filter(e=>null!=e),k=N.length?`${e.label}. ${N.join("; ")}.`:e.label,L=u(j.map(({s:e})=>e)),S={columns:[s("chart.colPeriod"),...j.map(({s:e})=>e.label)],rows:L.map(e=>({key:String(e.x),header:String(e.x),cells:j.map(({s:t,fmt:r})=>{let l=e[t.key],n=e[c(t.key)];return"number"!=typeof l?"â":"number"==typeof n?`${r(l)} \xb1${r(n)}`:r(l)})}))},K=!o;return(0,l.jsx)($,{label:e.label,grain:e.grain,vintage:e.vintage,evidenceTier:e.evidenceTier,subtitle:e.projectionsFlaggedOff?s("traj.chartNote"):null,note:e.note??s("chart.linearNote"),height:r,headingLevel:n,summary:k,source:e.source,data:S,legend:K?null:(0,l.jsx)(F,{label:s("chart.legendLabel"),items:j.map(({s:e,slot:t})=>({key:e.key,label:e.label,slot:t}))}),className:t,children:(0,l.jsxs)("div",{className:"flex h-full flex-col gap-2",children:[f.length?(0,l.jsx)(_,{series:f,axisLabel:s("chart.axisShare"),formatValue:b,tickFormatter:e=>`${e}%`,colorOffset:0,showXAxis:!y.length,directLabels:K,narrow:a}):null,y.length?(0,l.jsx)(_,{series:y,axisLabel:s("chart.axisCount"),formatValue:g,tickFormatter:e=>
1a?(0,h.$M)(e,i):Number(e).toLocaleString(i),colorOffset:f.length,showXAxis:!0,directLabels:K,narrow:a}):null]})})}function M({presentation:e,className:t,height:r,headingLevel:m="h3"}){let{t:x,locale:j}=(0,v.pp)(),N=(0,p.i)(639),k=e.series.length<2?[]:u([{key:"y",points:e.series}]);if(k.length<2)return(0,l.jsx)(w.G,{label:e.label,reason:"too_few_points",source:e.source,className:t});let L=d([{key:"y",points:e.series}]),S="percent"===e.unit,F=e.series.filter(e=>"number"==typeof e.y&&Number.isFinite(e.y)),_=F[0],K=F[F.length-1],M=_&&K?x("chart.summaryRange",{series:e.label,from:(0,o.dd)(_.y,e.unit),start:_.x,to:(0,o.dd)(K.y,e.unit),end:K.x}):e.label,W={columns:[x("chart.colPeriod"),e.label,...L?[x("chart.colMoe")]:[]],rows:k.map(t=>{let r=t.y,l=t[c("y")];return{key:String(t.x),header:String(t.x),cells:["number"==typeof r?(0,o.dd)(r,e.unit):"â",...L?["number"==typeof l?`\xb1${(0,o.dd)(l,e.unit)}`:"â"]:[]]}})};return(0,l.jsx)($,{label:e.label,grain:e.grain,vintage:e.vintage,evidenceTier:e.evidenceTier,note:x("chart.linearNote"),height:r,headingLevel:m,summary:M,source:e.source,data:W,className:t,children:(0,l.jsx)(n.u,{width:"100%",height:"100%",children:(0,l.jsxs)(s.b,{data:k,margin:{top:8,right:8,left:4*!N,bottom:8},accessibilityLayer:!1,children:[(0,l.jsx)(f.d,{...h.KO}),(0,l.jsx)(y.W,{dataKey:"x",tick:h.hc,tickLine:!1,axisLine:{stroke:"hsl(var(--border))"},dy:6}),(0,l.jsx)(b.h,{tick:h.hc,tickLine:!1,axisLine:!1,width:N?h.Hb:S?44:56,domain:[0,"auto"],tickFormatter:t=>{var r,l,n,s;return r=t,l=e.unit,n=j,s=N,"percent"===l?`${r}%`:s?(0,h.$M)(r,n,"currency_usd"===l):"currency_usd"===l?Math.abs(r)>=1e3?`$${Math.round(r/1e3)}k`:`$${Math.round(r)}`:Number(r).toLocaleString(n)}}),(0,l.jsx)(i.m,{contentStyle:h.lI,labelStyle:{color:"hsl(var(--foreground))"},formatter:t=>{let r="number"==typeof t?t:Number(t);return Number.isFinite(r)?[(0,o.dd)(r,e.unit),e.label]:["â",e.label]}}),(0,l.jsx)(a.N1,{type:h.f6,dataKey:"y",name:"y",stroke:h.tK[0],strokeWidth:2,dot:h.Xe,activeDot:h.ur,connectNulls:!0,...h.QU,children:L?(0,l.jsx)(g.u,{dataKey:c("y"),...h.C2}):null})]})})})}function W({presentation:e,height:t,className:r,mode:n="full",headingLevel:s}){if("spark"===n)return"indicator"!==e.kind?null:(0,l.jsx)(x,{presentation:e,height:t??36,className:r});switch(e.kind){case"trajectory":return(0,l.jsx)(K,{presentation:e,height:t,headingLevel:s,className:r});case"trend":return(0,l.jsx)(M,{presentation:e,height:t,headingLevel:s,className:r});default:return null}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.