1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1211],{32044:(e,t,a)=>{a.d(t,{U:()=>o,v:()=>l});var i=a(3132),r=a(57496),n=a(71884),s=a(70609);let l={changes:"Version history",created:"Created",durationLabels:{"1d":"Today","1week":"This week","1m":"1 month","3m":"3 months","6m":"6 months","1y":"1 year","5y":"5 years",all:"All time"},emptyChanges:"This portfolio has no public changes yet.",emptyHoldings:"This portfolio has no current holdings.",growthOfBaseline:"Growth of $1,000",holdings:"Holdings",holdingsCount:"Holdings",instrument:"Instrument",merged:"Merged",mergedChanges:"merged",modifiedDietzReturn:"Modified Dietz return",normalizedWealth:"Normalized wealth",open:"Open",performance:"Performance",privateVisibility:"Private",publicVisibility:"Public",quantity:"Quantity",rank:"Rankings",returnDuration:"Return period",sectors:"Portfolio sectors",timeWeightedReturn:"Time-weighted return",transactions:"Transactions",unrealizedProfitAndLoss:"Unrealized P&L",value:"Value",verification:"Verification",verificationLabels:{not_applicable:"Not applicable",partially_verified:"Partially verified",unverified:"Unverified",verified:"Verified"},weight:"Weight"},o=({portfolio:e,details:t,performance:a,instruments:o,openCommits:m,mergedCommits:c,duration:d,locale:u="en-US",copy:h=l})=>{let p=new Map(o.map(e=>[e.id,e])),x=[...m,...c].filter(t=>Number.isSafeInteger(t.id)&&t.id>0&&t.portfolio_id===e.id).sort((e,t)=>t.created_at.getTime()-e.created_at.getTime()),f=a.benchmark?.points.at(-1);return{slug:e.slug,name:e.name,description:e.description,imageUrl:e.image_url,isPublic:e.is_public,isArchived:e.is_archived,author:{username:e.author_data.username,displayName:e.author_data.displayName,imageUrl:e.author_data.photoURL,href:(0,i.U2)(e.author_data.username)},tags:e.tags.filter(e=>"None"!==e.name).map(e=>({id:e.sector_tag_id,label:e.short_hand||e.name})),ranks:e.ranks.filter(e=>e.return_duration===d).map(e=>({label:"sector"===e.type?e.sector_tag_name:h.rank,value:"sector"===e.type?`#${e.rank} / ${e.sector_portfolio_count}`:`#${e.rank}`,href:(0,i.W)({duration:e.return_duration,sector:"sector"===e.type?e.sector_tag_name:void 0})})),duration:d,durationOptions:r.VALID_RETURN_DURATIONS.map(t=>({active:t===d,ariaLabel:h.durationLabels[t],compactLabel:n.P[t],href:(0,i.if)(e.slug,"1d"===t?void 0:{duration:t}),value:t})),performance:{normalizedDelta:(0,s.mm)(a.portfolio.delta??a.portfolio.normalizedFinalValue-1e3,"USD",u),normalizedValue:(0,s.q8)(a.portfolio.normalizedFinalValue,"USD",u),percentageChange:(0,s.a0)(a.portfolio.percentageChange,u),percentageTone:(0,s.VK)(a.portfolio.percentageChange),benchmarkLabel:a.benchmark?.label??null,benchmarkValue:f?(0,s.av)(Number(f.value),u):null},metrics:[{id:"time-weighted-return",label:h.timeWeightedReturn,value:(0,s.a0)(t.timeWeightedPercentageChange,u),tone:(0,s.VK)(t.timeWeightedPercentageChange)},{id:"modified-dietz-return",label:h.modifiedDietzReturn,value:(0,s.a0)(t.modifiedDietzPercentageChange,u),tone:(0,s.VK)(t.modifiedDietzPercentageChange)},{id:"normalized-wealth",label:h.normalizedWealth,value:(0,s.av)(t.timeWeightedNormalizedFinalValue,u)},{id:"holdings-count",label:h.holdingsCount,value:String(t.positions.length)}],holdings:t.positions.map(e=>{let t=p.get(e.instrument_id),a=t?.currency_alpha_code??"USD",r=e.quantity*e.close,n=e.quantity*(e.close-e.cost_basis);return{id:e.id,href:(0,i.Xv)(e.instrument_id),imageUrl:t?.logo_url??null,symbol:t?.symbol??e.instrument_id,name:t?.name??e.instrument_id,weight:(0,s.a0)(e.weight,u),quantity:(0,s.av)(e.quantity,u),value:(0,s.q8)(r,a,u),profitAndLoss:(0,s.q8)(n,a,u),profitAndLossTone:(0,s.VK)(n)}}),changes:x.map(t=>({id:t.id,href:(0,i.Pc)(e.slug,t.id),state:t.commit_state,title:t.title||`Change #${t.id}`,description:t.description,authorUsername:t.author.username,createdAt:(0,s.mf)(t.created_at,u),mergedAt:(0,s.mf)(t.merged_at,u),verificationLabel:h.verificationLabels[t.transactions_verification_status]??t.transactions_verification_status.replaceAll("_"," ")})),mergedChangeCount:e.merged_commit_count,openChangeCount:m.length}}},55335:(e,t,a)=>{a.d(t,{FY:()=>b,n9:()=>w,mI:()=>C,NW:()=>y,Hc:()=>j});var i=a(54568),r=a(80416),n=a(7620),s=a(31436),l=a(13672),o=a(38378),m=a(97505),c=a(87894),d=a(4918),u=a(83165),h=a(87647);let p=e=>{let t=new Map;for(let a of e){let e=new Date(a.date).getTime(),i=Number(a.value);Number.isFinite(e)&&Number.isFinite(i)&&t.set(e,{timestamp:e,value:i})}return[...t.values()].sort((e,t)=>
1e.timestamp-t.timestamp)},x=(e,t)=>{let a=e.portfolio-t;return{value:e.portfolio,delta:a,percentageChange:0===t?0:a/t}};var f=a(78453),g=a(1277);let b=({data:e,isFetching:t,duration:a,onScrubStatsChange:f,timeZone:g})=>{let b=n.useMemo(()=>(({portfolioPoints:e,benchmarkPoints:t=[]})=>{let a=p(e),i=p(t),r=0,n=a.map(e=>{if(0===i.length)return{timestamp:e.timestamp,portfolio:e.value};for(;r+1<i.length&&i[r+1].timestamp<=e.timestamp;)r+=1;let t=i[r];return t.timestamp<=e.timestamp?{timestamp:e.timestamp,portfolio:e.value,benchmark:t.value}:{timestamp:e.timestamp,portfolio:e.value}}),s=n[0]?.portfolio??0,l=n.at(-1),o=l?x(l,s):null,m=n.flatMap(e=>void 0===e.benchmark?[e.portfolio]:[e.portfolio,e.benchmark]),c=m.length>0?Math.min(...m):0,d=m.length>0?Math.max(...m):0,u=Math.max(.08*(d-c),.005*Math.abs(d||c||1),1);return{points:n,baseline:s,stats:o,domain:[c-u,d+u],hasBenchmark:n.filter(e=>void 0!==e.benchmark).length>1}})({portfolioPoints:e.portfolio.points,benchmarkPoints:e.benchmark?.points??[]}),[e]),D=`${a}:${e.portfolio.points.at(-1)?.date??"empty"}`,_=(e=>{switch(e){case"1d":return(0,r.t)({message:"Today",desc:"Instrument chart â 1D period"});case"1week":return(0,r.t)({message:"This week",desc:"Instrument chart â 1W period"});case"1m":return(0,r.t)({message:"1 month",desc:"Portfolio performance â period: 1 month"});case"3m":return(0,r.t)({message:"3 months",desc:"Portfolio performance â period: 3 months"});case"6m":return(0,r.t)({message:"6 months",desc:"Instrument chart â 6M period"});case"1y":return(0,r.t)({message:"1 year",desc:"Portfolio performance â period: 1 year"});case"5y":return(0,r.t)({message:"5 years",desc:"Instrument chart â 5Y period"});case"all":return(0,r.t)({message:"All time",desc:"Portfolio performance â period: all time"})}})(a),{activePoint:L,isScrubbing:P,sliderProps:A}=(0,h.JH)({points:b.points,resetKey:D,ariaLabel:(0,r.t)({message:"Portfolio performance over {period}",values:{period:_},desc:"Portfolio performance â chart slider aria label"}),insets:{right:66},valueText:e=>{let t=x(e,b.baseline);return(0,r.t)({message:"{date}, {value}, change {delta}, {percent}",values:{date:C(e.timestamp,g),value:w(t.value),delta:y(t.delta),percent:j(t.percentageChange)},desc:"Portfolio performance â chart slider value text"})}}),U=n.useMemo(()=>{if(!L)return null;let e=x(L,b.baseline);return{value:e.value,delta:e.delta,percentageChange:e.percentageChange,timestamp:L.timestamp}},[b.baseline,L]);(0,h.IQ)(U,f);let $=b.stats?.delta??0,F=$>0?"#34d399":$<0?"#fb7185":"#a1a1aa",M=e.benchmark?.color??"#60a5fa",I=e.benchmark?.label??(0,r.t)({message:"S&P 500",desc:"Portfolio performance â benchmark label"}),T=b.points[0]?.timestamp??0,z=b.points.at(-1)?.timestamp??T,S=L?(L.timestamp-T)/Math.max(1,z-T):null;return(0,i.jsxs)("div",{"data-portfolio-performance-chart":!0,"data-duration":a,"data-scrubbing":P?"true":"false",className:"pt-1",children:[(0,i.jsxs)("div",{...A,"aria-busy":t,className:"relative mt-4 h-72 min-w-0 touch-none cursor-crosshair outline-none focus-visible:ring-1 focus-visible:ring-emerald-300/50",children:[b.points.length<2?(0,i.jsx)("div",{className:"flex h-full items-center justify-center text-sm text-white/45",children:(0,r.t)({message:"No performance history is available for this period.",desc:"Portfolio performance â no history for period"})}):(0,i.jsx)(s.u,{width:"100%",height:"100%",children:(0,i.jsxs)(l.b,{data:b.points,margin:{top:8,right:8,bottom:0,left:0},children:[(0,i.jsx)(o.d,{stroke:"rgba(255,255,255,0.065)",strokeDasharray:"2 5",vertical:!1}),(0,i.jsx)(m.W,{dataKey:"timestamp",type:"number",scale:"time",domain:["dataMin","dataMax"],axisLine:!1,tickLine:!1,minTickGap:64,tick:{fill:"rgba(255,255,255,0.34)",fontSize:11},tickFormatter:e=>k(Number(e),a,g)}),(0,i.jsx)(c.h,{orientation:"right",domain:b.domain,axisLine:!1,tickLine:!1,width:58,tick:{fill:"rgba(255,255,255,0.34)",fontSize:11},tickFormatter:e=>N(Number(e))}),(0,i.jsx)(d.N,{type:"linear",dataKey:"portfolio",stroke:F,strokeWidth:2,dot:!1,activeDot:{r:4,fill:F,strokeWidth:0},isAnimationActive:!1}),b.hasBenchmark&&(0,i.jsx)(d.N,{type:"linear",dataKey:"benchmark",stroke:M,strokeWidth:1.5,strokeDasharray:"4 4",dot:!1,activeDot:{r:3,fill:M,strokeWidth:0},isAnimationActive:!1})]})}),null!==S&&b.points.length>1&&(0,i.jsx)("div",{"aria-hidden":"true",className:"pointer-events-none absolute inset-y-2 left-0 right-[66px]",children:(0,i.jsx)("span",{className:"absolute inset-y-0 border-l border-dashed border-white/25",style:{left:`${100*S}
1%`}})}),t&&(0,i.jsxs)("div",{className:"pointer-events-none absolute right-[66px] top-1 flex items-center gap-1.5 text-[11px] text-white/55",children:[(0,i.jsx)("span",{className:"size-2 animate-pulse rounded-full bg-white/35"}),(0,r.t)({message:"Updating",desc:"Portfolio performance â updating indicator"})]})]}),(0,i.jsx)(u.r,{caption:(0,r.t)({message:"Portfolio performance over {period}",values:{period:_},desc:"Portfolio performance â accessible data table caption"}),points:b.points,rowKey:e=>e.timestamp,columns:[{id:"timestamp",header:"Date",value:e=>C(e.timestamp,g)},{id:"portfolio",header:"Portfolio",value:e=>w(e.portfolio)},...b.hasBenchmark?[{id:"benchmark",header:I,value:e=>void 0===e.benchmark?"Not available":w(e.benchmark)}]:[]]}),b.hasBenchmark&&(0,i.jsxs)("div",{className:"mt-3 flex flex-wrap items-center justify-center gap-4 text-xs text-white/55",children:[(0,i.jsx)(v,{color:F,label:(0,r.t)({message:"Portfolio",desc:"Portfolio performance â portfolio legend label"})}),(0,i.jsx)(v,{color:M,label:I,dashed:!0})]})]})},v=({color:e,label:t,dashed:a})=>(0,i.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,i.jsx)("span",{"aria-hidden":"true",className:(0,f.cn)("h-0.5 w-5",a&&"border-t border-dashed bg-transparent"),style:a?{borderColor:e}:{backgroundColor:e}}),t]}),w=e=>new Intl.NumberFormat((0,g.f)(),{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2}).format(e),y=e=>new Intl.NumberFormat((0,g.f)(),{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2,signDisplay:0===e?"auto":"always"}).format(e),j=e=>{let t=new Intl.NumberFormat((0,g.f)(),{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}).format(Math.abs(e));return`${e>0?"+":e<0?"â":""}${t}`},N=e=>new Intl.NumberFormat((0,g.f)(),{style:"currency",currency:"USD",notation:"compact",maximumFractionDigits:1}).format(e),k=(e,t,a)=>new Date(e).toLocaleDateString((0,g.f)(),{month:"short",timeZone:a,..."1m"===t||"3m"===t?{day:"numeric"}:{year:"2-digit"}}),C=(e,t)=>new Date(e).toLocaleDateString((0,g.f)(),{month:"short",day:"numeric",year:"numeric",timeZone:t})},69865:(e,t,a)=>{a.d(t,{W:()=>l});var i=a(54568),r=a(70609),n=a(96995),s=a(32044);let l=({model:e,copy:t=s.v,headlineOverride:a,linkComponent:l,actions:o,notice:m,performanceExtension:c,afterChanges:d})=>{let u=a?(0,r.vY)(a.delta):e.performance.percentageTone,h=`portfolio-${e.slug}-title`;return(0,i.jsxs)(n.o_,{labelledBy:h,children:[(0,i.jsxs)("header",{className:"flex flex-col gap-4 border-b border-white/10 pb-6",children:[(0,i.jsxs)("div",{className:"flex flex-wrap items-start justify-between gap-4",children:[(0,i.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,i.jsx)(n.pA,{imageUrl:e.imageUrl,label:e.name}),(0,i.jsxs)("div",{className:"min-w-0",children:[(0,i.jsx)("h1",{className:"break-words text-3xl font-semibold leading-tight text-white/95",id:h,children:e.name}),(0,i.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-x-2 gap-y-1 text-sm text-white/55",children:[(0,i.jsx)("span",{children:e.slug}),(0,i.jsx)("span",{"aria-hidden":"true",children:"\xb7"}),(0,i.jsxs)(n.Q1,{className:"rounded-sm hover:text-white/80 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-300/70",href:e.author.href,linkComponent:l,children:["@",e.author.username]}),(0,i.jsx)("span",{"aria-hidden":"true",children:"\xb7"}),(0,i.jsx)("span",{children:e.isPublic?t.publicVisibility:t.privateVisibility})]})]})]}),o?(0,i.jsx)("div",{className:"flex flex-wrap gap-2",children:o}):null]}),e.tags.length>0?(0,i.jsx)("ul",{"aria-label":t.sectors,className:"flex flex-wrap gap-1.5",children:e.tags.map(e=>(0,i.jsx)("li",{className:"rounded border border-white/10 bg-white/[0.04] px-2 py-1 text-xs text-white/60",children:e.label},e.id))}):null,e.description?(0,i.jsx)("p",{className:"max-w-3xl text-sm leading-relaxed text-white/65",children:e.description}):null,e.ranks.length>0?(0,i.jsx)("dl",{className:"flex flex-wrap gap-2",children:e.ranks.map(e=>(0,i.jsxs)("div",{className:"rounded-lg border border-white/10 bg-white/[0.03] px-3 py-2",children:[(0,i.jsx)("dt",{className:"text-xs text-white/55",children:e.label}),(0,i.jsx)("dd",{className:"mt-0.5 text-sm font-semibold tabular-nums text-white/80",children:(0,i.jsx)(n.Q1,{className:"rounded-sm hover:text-emerald-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-300/70",href:e.href,linkComponent:l,children:e.value})})]},`${e.href}:${e.label}`))}):null]}),m,(0,i.jsxs)(n.H2,{description:`${t.growthOfBaseline} \xb7 ${t.durationLabels[e.duration]}`,title:t.performance,trailing:(0,i.jsx)(n.Es,{align:"end",label:t.returnDuration,linkComponent:l,options:e.durationOptions.map(e=>({ariaLabel:e.ariaLabel,compactLabel:e.compactLabel,href:e.href,isActive:e.active,value:e.value}))}),children:[(0,i.jsxs)("div",{className:"rounded-lg border border-white/10 bg-white/[0.025] p-4",children:[(0,i.jsxs)("div",{className:"flex flex-wrap items-baseline gap-x-3 gap-y-1","data-
1public-portfolio-headline":!0,children:[(0,i.jsx)("span",{className:"text-3xl font-semibold tabular-nums text-white/95",children:a?a.value:e.performance.normalizedValue}),(0,i.jsx)("span",{className:`text-sm font-medium tabular-nums ${"positive"===u?"text-emerald-300":"negative"===u?"text-red-300":"text-white/60"}`,children:a?`${a.delta} (${a.percentageChange})`:`${e.performance.normalizedDelta} (${e.performance.percentageChange})`}),a?(0,i.jsx)("span",{className:"text-xs text-white/55",children:a.dateLabel}):null]}),e.performance.benchmarkLabel&&e.performance.benchmarkValue?(0,i.jsxs)("p",{className:"mt-2 text-xs text-white/55",children:[e.performance.benchmarkLabel,":"," ",e.performance.benchmarkValue]}):null]}),c?(0,i.jsx)("div",{className:"mt-4",children:c}):null]}),(0,i.jsx)(n.iU,{metrics:e.metrics}),(0,i.jsx)(n.H2,{title:t.holdings,children:0===e.holdings.length?(0,i.jsx)(n.AQ,{children:t.emptyHoldings}):(0,i.jsx)("div",{"aria-label":t.holdings,className:"overflow-x-auto rounded-lg border border-white/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-300/70",role:"region",tabIndex:0,children:(0,i.jsxs)("table",{className:"w-full min-w-[680px] border-collapse text-left",children:[(0,i.jsx)("thead",{className:"bg-white/[0.035] text-xs uppercase text-white/55",children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{className:"px-3 py-2 font-medium",scope:"col",children:t.instrument}),(0,i.jsx)("th",{className:"px-3 py-2 text-right font-medium",scope:"col",children:t.weight}),(0,i.jsx)("th",{className:"px-3 py-2 text-right font-medium",scope:"col",children:t.quantity}),(0,i.jsx)("th",{className:"px-3 py-2 text-right font-medium",scope:"col",children:t.value}),(0,i.jsx)("th",{className:"px-3 py-2 text-right font-medium",scope:"col",children:t.unrealizedProfitAndLoss})]})}),(0,i.jsx)("tbody",{children:e.holdings.map(e=>(0,i.jsxs)("tr",{className:"border-t border-white/[0.07]",children:[(0,i.jsx)("th",{className:"px-3 py-3 font-normal",scope:"row",children:(0,i.jsxs)(n.Q1,{className:"flex min-w-0 items-center gap-2.5 rounded-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-300/70",href:e.href,linkComponent:l,children:[(0,i.jsx)(n.pA,{imageUrl:e.imageUrl,label:e.symbol,size:"small"}),(0,i.jsxs)("span",{className:"min-w-0",children:[(0,i.jsx)("span",{className:"block font-medium text-white/85",children:e.symbol}),(0,i.jsx)("span",{className:"block max-w-64 truncate text-xs text-white/55",children:e.name})]})]})}),(0,i.jsx)("td",{className:"px-3 py-3 text-right text-sm tabular-nums text-white/65",children:e.weight}),(0,i.jsx)("td",{className:"px-3 py-3 text-right text-sm tabular-nums text-white/65",children:e.quantity}),(0,i.jsx)("td",{className:"px-3 py-3 text-right text-sm tabular-nums text-white/65",children:e.value}),(0,i.jsx)("td",{className:`px-3 py-3 text-right text-sm font-medium tabular-nums ${"positive"===e.profitAndLossTone?"text-emerald-300":"negative"===e.profitAndLossTone?"text-red-300":"text-white/65"}`,children:e.profitAndLoss})]},e.id))})]})})}),(0,i.jsx)(n.H2,{title:t.changes,trailing:(0,i.jsxs)("span",{className:"text-xs tabular-nums text-white/55",children:[e.mergedChangeCount," ",t.mergedChanges," \xb7"," ",e.openChangeCount," ",t.open.toLowerCase()]}),children:0===e.changes.length?(0,i.jsx)(n.AQ,{children:t.emptyChanges}):(0,i.jsx)("ol",{className:"overflow-hidden rounded-lg border border-white/10",children:e.changes.map(e=>(0,i.jsx)("li",{className:"border-b border-white/[0.07] last:border-b-0",children:(0,i.jsxs)(n.Q1,{className:"flex min-h-16 items-start gap-3 px-3 py-3 transition-colors hover:bg-white/[0.035] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-emerald-300/70",href:e.href,linkComponent:l,children:[(0,i.jsx)("span",{className:"mt-0.5 rounded border border-white/10 bg-white/[0.04] px-1.5 py-0.5 text-xs font-medium uppercase text-white/65",children:"merged"===e.state?t.merged:t.open}),(0,i.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,i.jsxs)("span",{className:"block text-sm font-medium text-white/85",children:["#",e.id," ",e.title]}),(0,i.jsxs)("span",{className:"mt-0.5 block text-xs text-white/55",children:["@",e.authorUsername,e.createdAt?` \xb7 ${t.created} ${e.createdAt}`:""]}),e.description?(0,i.jsx)("span",{className:"mt-1 block line-clamp-2 text-xs leading-relaxed text-white/60",children:e.description}):null,(0,i.jsxs)("span",{className:"mt-1 block text-xs text-white/55",children:[t.verification,": ",e.verificationLabel]})]})]})},e.id))})}),d]})}},70609:(e,t,a)=>{a.d(t,{VK:()=>i,a0:()=>s,av:()=>n,mf:()=>m,mm:()=>o,q8:()=>l,vY:()=>r});let i=e=>e>0?"positive":e<0?"negative":"neutral",r=e=>e.includes("+")?"positive":/[-â]/.test(e)?"negative":"neutral",n=(e,t="en-US",a=2)=>new Intl.NumberFormat(t,{maximumFractionDigits:a}).format(e),s=(e,t="en-US")=>new Intl.NumberFormat(t,{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2,signDisplay:"exceptZero"}).format(e),l=(e,t,a="en-US")=>{try{return new Intl.NumberFormat(a,{style:"currency",currency:t,maximumFractionDigits:2}).format(e)}catch{return`${n(e,a)} ${t}`}},o=(e,t,a="en-US")=>{try{return new Intl.NumberFormat(a,{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:2,signDisplay:0===e?"auto":"always"}).format(e)}catch{let i=e>0?"+":"";return`${i}${n(e,a)} ${t}`}},m=(e,t="en-US")=>{if(null==e)return null;let a=e instanceof Date?e:new Date(e);
1return Number.isNaN(a.getTime())?null:a.toLocaleString(t,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"})}},71884:(e,t,a)=>{a.d(t,{P:()=>i});let i={"1d":"1D","1week":"1W","1m":"1M","3m":"3M","6m":"6M","1y":"1Y","5y":"5Y",all:"ALL"}},83165:(e,t,a)=>{a.d(t,{r:()=>r});var i=a(54568);function r({caption:e,points:t,columns:a,rowKey:n}){return(0,i.jsxs)("table",{className:"sr-only",children:[(0,i.jsx)("caption",{children:e}),(0,i.jsx)("thead",{children:(0,i.jsx)("tr",{children:a.map(e=>(0,i.jsx)("th",{scope:"col",children:e.header},e.id))})}),(0,i.jsx)("tbody",{children:t.map((e,t)=>(0,i.jsx)("tr",{children:a.map(t=>(0,i.jsx)("td",{children:t.value(e)},t.id))},n(e,t)))})]})}a(7620)},87647:(e,t,a)=>{a.d(t,{IQ:()=>r,JH:()=>n});var i=a(7620);let r=(e,t)=>{let a=i.useRef(t),r=i.useRef(null);i.useEffect(()=>{a.current=t},[t]),i.useEffect(()=>{((e,t)=>{if(e===t)return!0;if(null===e||null===t)return!1;let a=Object.keys(e);return a.length===Object.keys(t).length&&a.every(a=>e[a]===t[a])})(r.current,e)||(r.current=e,a.current?.(e))},[e])},n=e=>{let t=i.useRef(null),[a,r]=i.useState(()=>({resetKey:e.resetKey,index:null})),n=Object.is(a.resetKey,e.resetKey)?a.index:null,s=null===n?null:e.points[n]??null,l=Math.max(0,e.points.length-1),o=n??l,m=e.points[o],c=i.useCallback(t=>{r(a=>Object.is(a.resetKey,e.resetKey)&&a.index===t?a:{resetKey:e.resetKey,index:t})},[e.resetKey]),d=i.useCallback(()=>{t.current=null,c(null)},[c]),u=i.useCallback((t,a)=>{var i;let r,n,s,l,o,m,d,u=t.currentTarget.getBoundingClientRect();if(a&&!((r={clientX:t.clientX,clientY:t.clientY,bounds:u}).clientX>
1=r.bounds.left&&r.clientX<=r.bounds.right&&r.clientY>=r.bounds.top&&r.clientY<=r.bounds.bottom))return!1;let h=(i={points:e.points,clientX:t.clientX,boundsLeft:u.left,boundsWidth:u.width,insets:e.insets},n=Math.max(0,i.insets?.left??0),s=Math.max(0,i.insets?.right??0),l=Math.max(1,i.boundsWidth-n-s),o=Math.min(1,Math.max(0,(i.clientX-i.boundsLeft-n)/l)),m=i.points[0],d=i.points.at(-1),m&&d?((e,t)=>{if(0===e.length||!Number.isFinite(t))return -1;let a=e[0],i=e.at(-1);if(!a||!i||!Number.isFinite(a.timestamp)||!Number.isFinite(i.timestamp))return -1;if(t<=a.timestamp)return 0;if(t>=i.timestamp)return e.length-1;let r=0,n=e.length-1;for(;r+1<n;){let a=Math.floor((r+n)/2),i=e[a]?.timestamp;if(!Number.isFinite(i))return -1;i<t?r=a:n=a}return Math.abs(e[r].timestamp-t)<=Math.abs(e[n].timestamp-t)?r:n})(i.points,m.timestamp+o*(d.timestamp-m.timestamp)):-1);return!(h<0)&&(c(h),!0)},[e.insets,e.points,c]),h=i.useCallback(e=>{if(t.current===e.pointerId){t.current=null;try{e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}catch{}c(null)}},[c]),p=i.useCallback(a=>
1{if(0!==e.points.length){t.current=a.pointerId;try{a.currentTarget.setPointerCapture(a.pointerId)}catch{}u(a,!1)}},[e.points.length,u]),x=i.useCallback(e=>{if(null===t.current){if("mouse"!==e.pointerType)return;u(e,!0)||c(null);return}t.current===e.pointerId&&(u(e,!0)||h(e))},[h,u,c]),f=i.useCallback(e=>{null===t.current?c(null):t.current===e.pointerId&&h(e)},[h,c]),g=i.useCallback(t=>{["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","Home","End","Escape"].includes(t.key)&&0!==e.points.length&&(t.preventDefault(),c(((e,t,a)=>{if(a<=0)return null;let i=a-1,r=t??i;switch(e){case"ArrowLeft":case"ArrowDown":return Math.max(0,r-1);case"ArrowRight":case"ArrowUp":return Math.min(i,r+1);case"Home":return 0;case"End":return i;case"Escape":return null;default:return t}})(t.key,n,e.points.length)))},[n,e.points.length,c]);return i.useEffect(()=>(window.addEventListener("blur",d),()=>window.removeEventListener("blur",d)),[d]),{activeIndex:n,activePoint:s,isScrubbing:null!==n,sliderProps:{role:"slider",tabIndex:e.points.length>0?0:-1,"aria-label":e.ariaLabel,"aria-disabled":0===e.points.length,"aria-valuemin":0,"aria-valuemax":l,"aria-valuenow":o,"aria-valuetext":m?e.valueText(m,o):"No data available",onPointerDown:p,onPointerMove:x,onPointerUp:h,onPointerCancel:h,onPointerLeave:f,onLostPointerCapture:d,onKeyDown:g,onBlur:d},clear:d}}},96995:(e,t,a)=>{a.d(t,{AQ:()=>d,Es:()=>s,H2:()=>o,Q1:()=>n,iU:()=>m,o_:()=>l,pA:()=>c});var i=a(54568);let r=({href:e,...t})=>(0,i.jsx)("a",{href:e,...t}),n=({linkComponent:e=r,...t})=>(0,i.jsx)(e,{...t}),s=({align:e="start",label:t,linkComponent:a,options:r})=>(0,i.jsx)("nav",{"aria-label":t,className:`flex min-w-0 ${"end"===e?"justify-end":"justify-start"}`,children:(0,i.jsx)("ul",{className:"flex max-w-full items-center gap-1 overflow-x-auto rounded-md bg-white/[0.035] p-1",children:r.map(e=>(0,i.jsx)("li",{className:"shrink-0",children:(0,i.jsx)(n,{"aria-current":e.isActive?"page":void 0,"aria-label":e.ariaLabel,className:`flex h-7 min-w-10 items-center justify-center rounded px-2 text-xs font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-300/70 ${e.isActive?"bg-white/[0.09] text-white/90":"text-white/50 hover:text-white/75"}`,href:e.href,linkComponent:a,children:e.compactLabel})},e.value))})}),l=({children:e,className:t="",labelledBy:a})=>(0,i.jsx)("article",{"aria-labelledby":a,className:`mx-auto flex w-full max-w-6xl flex-col gap-8 px-4 py-8 sm:px-6 lg:px-8 ${t}`,"data-public-presenter":!0,children:e}),o=({children:e,title:t,description:a,trailing:r})=>(0,i.jsxs)("section",{className:"min-w-0",children:[(0,i.jsxs)("div",{className:"mb-3 flex flex-wrap items-end justify-between gap-2",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("h2",{className:"text-xs font-semibold uppercase tracking-wide text-white/60",children:t}),a?(0,i.jsx)("p",{className:"mt-1 text-xs leading-relaxed text-white/55",children:a}):null]}),r]}),e]}),m=({metrics:e})=>(0,i.jsx)("dl",{className:"grid grid-cols-1 gap-px overflow-hidden rounded-lg border border-white/10 bg-white/10 sm:grid-cols-2 lg:grid-cols-4",children:e.map(e=>(0,i.jsxs)("div",{className:"min-w-0 bg-[#141515] px-4 py-4",children:[(0,i.jsx)("dt",{className:"text-xs text-white/55",children:e.label}),(0,i.jsx)("dd",{className:`mt-1 truncate text-lg font-semibold tabular-nums ${"positive"===e.tone?"text-emerald-300/90":"negative"===e.tone?"text-red-300/90":"text-white/85"}`,children:e.value})]},e.id))}),c=({imageUrl:e,label:t,size:a="large"})=>{let r="large"===a?"size-14 text-xl":"size-8 text-sm";return e?(0,i.jsx)("img",{alt:"",className:`${r} shrink-0 rounded-full object-cover`,src:e}):(0,i.jsx)("span",{"aria-hidden":"true",className:`${r} flex shrink-0 items-center justify-center rounded-full bg-white/[0.08] font-semibold text-white/70`,children:t.slice(0,1).toUpperCase()||"P"})},d=({children:e})=>(0,i.jsx)("p",{className:"rounded-lg border border-dashed border-white/10 px-4 py-8 text-center text-sm text-white/55",children:e})}}]);
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.