performance.mark("js-parse-end:repos-pulse-42f22af4d2c69e78.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["54551"],{95136(e,t,s){s.d(t,{y:()=>n});var r=s(74848),a=s(16522),l=s(8470);function n(e){let t,s,n=(0,a.c)(7),{children:o,appName:i,category:c,metadata:d}=e;n[0]!==i||n[1]!==c||n[2]!==d?(t={appName:i,category:c,metadata:d},n[0]=i,n[1]=c,n[2]=d,n[3]=t):t=n[3];let u=t;return n[4]!==o||n[5]!==u?(s=(0,r.jsx)(l.I,{value:u,children:o}),n[4]=o,n[5]=u,n[6]=s):s=n[6],s}n.displayName="AnalyticsProvider"},8470(e,t,s){s.d(t,{I:()=>r});let r=(0,s(96540).createContext)(null);r.displayName="AnalyticsContext"},87253(e,t,s){s.d(t,{_S:()=>l,cB:()=>o,cW:()=>n});var r=s(56341),a=s(26316);let l=()=>{let e=(0,r.JV)().appId;return e&&"rails"!==e?e:crypto.randomUUID()},n=e=>{(0,r.C3)({appId:e})},o=()=>{let e=document.querySelector("react-app")||document.querySelector("projects-v2");return e?.uuid||"rails"};a.cg?.addEventListener("hashchange",()=>{(0,r.C3)({appId:o()})},!0)},34619(e,t,s){s.d(t,{O:()=>n,S:()=>l});var r=s(26316);let a=r.cg?.document?.head?.querySelector('meta[name="release"]')?.content||"",l="X-GitHub-Client-Version";function n(){return a}},13705(e,t,s){s.d(t,{D:()=>l,Y:()=>n});var r=s(49481),a=s(26316);function l(e){if(!a.XC)return;let t=a.XC.querySelector("title"),s=a.XC.createElement("title");s.textContent=e,t?t.textContent!==e&&(t.replaceWith(s),(0,r.i)(e)):(a.XC.head.appendChild(s),(0,r.i)(e))}function n(e){return document.body.classList.contains("logged-out")?`${e} \xb7 GitHub`:e}},89149(e,t,s){s.d(t,{Ee:()=>o,Ts:()=>n,b4:()=>i});var r=s(7749),a=s(69185),l=s(5045);async function n(e,t,s){let n=new Request(t,s);(0,l.tV)(n.headers);let o=await self.fetch(n);if(o.status<200||o.status>=300)throw Error(`HTTP ${o.status}${o.statusText||""}`);return(0,r.A)((0,r.K)(e),o),(0,a.B)(e,await o.text())}function o(e,t,s=1e3,r=[200],a=[202]){return async function s(n){let o=new Request(e,t);(0,l.tV)(o.headers);let i=await self.fetch(o);if(a.includes(i.status))return await new Promise(e=>setTimeout(e,n)),s(1.5*n);if(r.includes(i.status))return i;if(i.status<200||i.status>=300)throw Error(`HTTP ${i.status}${i.statusText||""}`);throw Error(`Unexpected ${i.status} response status from poll endpoint`)}(s)}async function i(e,t,s){let{wait:r=500,acceptedStatusCodes:a=[200],max:n=3,attempt:o=0}=s||{},c=async()=>new Promise((s,i)=>{setTimeout(async()=>{try{let r=new Request(e,t);(0,l.tV)(r.headers);let i=await self.fetch(r);if(a.includes(i.status)||o+1===n)return s(i);s("retry")}catch(e){i(e)}},r*o)}),d=await c();return"retry"!==d?d:i(e,t,{wait:r,acceptedStatusCodes:a,max:n,attempt:o+1})}},56341(e,t,s){s.d(t,{C3:()=>i,JV:()=>l,K3:()=>m,MM:()=>c,OE:()=>h,Qb:()=>p,Zu:()=>u,bj:()=>n,jc:()=>d,kd:()=>o});var r=s(26316);let a=null;function l(){return r.Kn?.state||{}}function n(e){f(l(),"",e)}function o(e){r.Kn?.pushState({appId:l().appId},"",e),g()}function i(e){let t={...l(),...e};a&&(a=t),f(t,"",location.href)}function c(e){n(`?${e.toString()}${r.fV.hash}`)}function d(){n(r.fV.pathname+r.fV.hash)}function u(e){n(e.startsWith("#")?e:`#${e}`),(a=l())&&requestIdleCallback(()=>{!history.state&&a&&(i(a),a=null)})}function m(){n(r.fV.pathname+r.fV.search)}function h(){r.Kn?.back()}function p(){r.Kn?.forward()}function f(e,t,s){r.Kn?.replaceState(e,t,s),g()}function g(){r.cg?.dispatchEvent(new CustomEvent("statechange",{bubbles:!1,cancelable:!1}))}},60909(e,t,s){s.d(t,{$w:()=>c,FI:()=>m,Sr:()=>u,r:()=>d});var r=s(23666),a=s(58084),l=s(73537);function n(e){return(0,a.rx)()?{...e,"aria-keyshortcuts":a.IX}:e}function o(e){return n({...e,"octo-click":"hovercard-link-click","octo-dimensions":"link_type:self"})}let i={user:{ariaLabel:"User Hovercard"},organization:{ariaLabel:"Organization Hovercard"},copilot:{ariaLabel:"Copilot Hovercard"},team:{ariaLabel:"Team Hovercard",enablementSelector:"[data-team-hovercards-enabled]"},issue:{ariaLabel:"Issue Hovercard",enablementSelector:"[data-issue-and-pr-hovercards-enabled]"},pull_request:{ariaLabel:"Pull Request Hovercard",enablementSelector:"[data-issue-and-pr-hovercards-enabled]"},commit:{ariaLabel:"Commit Hovercard",enablementSelector:"[data-commit-hovercards-enabled]"},repository:{ariaLabel:"Repository Hovercard",enablementSelector:"[data-repository-hovercards-enabled]"},discussion:{ariaLabel:"Discussion Hovercard",enablementSelector:"[data-discussion-hovercards-enabled]"},project:{ariaLabel:"Project Hovercard",enablementSelector:"[data-project-hovercards-enabled]"},sponsors_listing:{ariaLabel:"Sponsors Hovercard",enablementSelector:"[data-sponsors-listing-hovercards-enabled]"},acv_badge:{ariaLabel:"Arctic Code Vault Badge",enablementSelector:"[data-acv-badge-hovercards-enabled]"},advisory:{ariaLabel:"Advisory Hovercard"},cwe:{ariaLabel:"CWE Hovercard"},achievement:{ariaLabel:"Achievement Hovercard"},tracked_in:{ariaLabel:"Tracked In Hovercard"},tracking:{ariaLabel:"Tracking Hovercard"},security_alert:{ariaLabel:"Security Alert Hovercard"},dependabot_alert:{ariaLabel:"Dependabot Alert Hovercard"},dependency_graph_package:{ariaLabel:"Package Hovercard"},integration:{ariaLabel:"Integration Hovercard"},profile_highlight:{ariaLabel:"Profile Highlight Hovercard"}};function c(e){return e?i[e]?.ariaLabel??"Hovercard":"Hovercard"}function d(e,t){if(!t)return!0;let s=i[t]?.enablementSelector;return!s||!!e.closest(s)}function u(e,{isCopilot:t=!1,tracking:s=!0,isAgent:a=!1}={}){if(t||a){let t=(0,r._nf)({bot_slug:e});return s?o(n({"data-hovercard-url":t,"data-hovercard-type":"copilot"})):n({"data-hovercard-url":t,"data-hovercard-type":"copilot"})}{let t=(0,r.dCN)({owner:e});return s?o(n({"data-hovercard-url":t,"data-hovercard-type":"user"})):n({"data-hovercard-url":t,"data-hovercard-type":"user"})}}function m(e){let t=e.getAttribute("data-hovercard-url");if(!t)return"";let s=function(e){let t=e.closest("[data-hovercard-subject-tag]");if(t)return t.getAttribute("data-hovercard-subject-tag");let s=document.head&&document.head.querySelector('meta[name="hovercard-subject-tag"]');return s?s.getAttribute("content"):null}(e);if(!s)return t;let r=new URL(t,window.location.origin),a=new URLSearchParams(r.search.slice(1));if(a.append("subject",s),a.append("current_path",window.location.pathname+window.location.search),(0,l.G7)("memex_live_update_hovercard")){let t=e.getAttribute("data-hovercard-cache");t&&a.append("hovercard_cache",t)}return r.search=a.toString(),r.toString()}},58084(e,t,s){let r,a;function l(){if("u"o,mM:()=>l,rx:()=>n});let o="Alt+ArrowUp"},7749(e,t,s){function r(e){let t=[...e.querySelectorAll("meta[name=html-safe-nonce]")].map(e=>e.content);if(t.length<1)throw Error("could not find html-safe-nonce on document");return t}s.d(t,{A:()=>l,K:()=>r});class a extends Error{response;constructor(e,t){super(`${e} for HTTP ${t.status}`),this.response=t,this.name="ResponseError"}}function l(e,t,s=!1){let r=t.headers.get("content-type")||"";if(!s&&!r.startsWith("text/html"))throw new a(`expected response with text/html, but was ${r}`,t);if(s&&!(r.startsWith("text/html")||r.startsWith("application/json")))throw new a(`expected response with text/html or application/json, but was ${r}`,t);let n=t.headers.get("x-html-safe");if(n){if(!e.includes(n))throw new a("response X-HTML-Safe nonce did not match",t)}else throw new a("missing X-HTML-Safe nonce",t)}},13759(e,t,s){s.d(t,{Av:()=>o,BM:()=>r,HX:()=>u,M_:()=>m,RD:()=>d,rb:()=>a});let r="GraphQLTraces",a="GraphQLTracingRefresh",l=n()?decodeURIComponent(new URLSearchParams(window.location.search).get("disable_clusters")||"").split(",").filter(e=>""!==e):[];function n(){return"u">typeof window}function o(e){if(!n()||!i()||!e)return;let t=window;t&&!t[r]&&(t[r]=[]),t&&e.__trace&&(t[r].push(e.__trace),"function"==typeof t[a]&&t[a]())}function i(){if(!n())return!1;let e=window;return"true"===new URLSearchParams(window.location.search).get("_tracing")||e&&void 0!==e[r]}function c(){return l.length>0}function d(e){if(!n()||!i()&&!c())return e;let t=new URL(e,window.location.origin);return i()&&t.searchParams.set("_tracing","true"),c()&&t.searchParams.set("disable_clusters",l.join(",")),t.pathname+t.search}function u(e){return l.indexOf(e)>-1}function m(e){if(!n())return;let t=l.indexOf(e);t>-1?l.splice(t,1):l.push(e);let s=new URLSearchParams(window.location.search);s.set("disable_clusters",l.join(",")),window.location.search=s.toString()}},52111(e,t,s){s.d(t,{l:()=>r});let r=()=>void 0},69185(e,t,s){s.d(t,{B:()=>r});function r(e,t){let s=e.createElement("template");return s.innerHTML=t,e.importNode(s.content,!0)}},58418(e,t,s){let r;s.d(t,{A:()=>d});var a=s(35205),l=s(51189);let{getItem:n,setItem:o,removeItem:i}=(0,a.A)("localStorage"),c="REACT_PROFILING_DISABLED_UNTIL",d={enable:()=>{i(c),r=void 0},disable:()=>{o(c,String(Date.now()+864e5)),r=!1},isEnabled:()=>!("u"=t)&&(i(c),!0)}():.02>Math.random()),resetCache:()=>{r=void 0}}},68796(e,t,s){var r=s(51591);let a=s(2501).$h.create("repos-pulse");var l=s(24222);let n=a.createQueryRouteConfig("pulseRoute",{path:"/:owner/:repo/pulse",queries:[(0,l.Y)()]});var o=s(74848),i=s(16522),c=s(49322),d=s(31356),u=s(20757),m=s(18990),h=s(96540),p=s(54590);let f={period:"",rangeLabel:"",totalPullRequests:-1,totalIssues:-1,mergedPulls:[],numAuthorsMergedPulls:-1,newPulls:[],numAuthorsNewPulls:-1,closedIssues:[],numAuthorsClosedIssues:-1,newIssues:[],numAuthorsNewIssues:-1,discussions:[],numAuthorsDiscussions:-1,releases:[],numAuthorsReleases:-1},g={authorsWithCommits:-1,filesChanged:-1,additions:-1,deletions:-1,totalCommits:-1,masterCommits:-1,defaultBranch:"",comparePathUrl:""},x={daily:"24 hours",halfweekly:"3 days",weekly:"1 week",monthly:"1 month"},v={[x.daily]:"daily",[x.halfweekly]:"halfweekly",[x.weekly]:"weekly",[x.monthly]:"monthly"},j=(0,h.createContext)(void 0);function y(e){let t,s,r,a=(0,i.c)(8),{children:l,defaultPeriod:n}=e,c=void 0===n?x.weekly:n,[d,u]=(0,p.ok)();d.has("period")&&x[d.get("period")]&&(c=x[d.get("period")]);let[m,f]=(0,h.useState)(c);a[0]!==u?(t=e=>{f(e),u(t=>{let s=new URLSearchParams(t);return s.set("period",v[e]),s})},a[0]=u,a[1]=t):t=a[1];let g=t;a[2]!==g||a[3]!==m?(s={selectedPeriod:m,onPeriodChange:g},a[2]=g,a[3]=m,a[4]=s):s=a[4];let y=s;return a[5]!==l||a[6]!==y?(r=(0,o.jsx)(j,{value:y,children:l}),a[5]=l,a[6]=y,a[7]=r):r=a[7],r}function b(){let e=(0,h.use)(j);if(void 0===e)throw Error("usePulsePeriod must be used within a PulsePeriodProvider");return e}function w(){let e,t,s,r,a,l,n,c,d,h,p,f,g=(0,i.c)(31),{selectedPeriod:x,onPeriodChange:v}=b();g[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)("span",{className:"color-fg-muted",children:"Period:"}),g[0]=e):e=g[0],g[1]!==x?(t=(0,o.jsx)(u.W.Button,{children:(0,o.jsxs)("div",{className:"d-flex gap-1",children:[e,(0,o.jsx)("span",{"data-menu-button":!0,children:x})]})}),g[1]=x,g[2]=t):t=g[2];let j="24 hours"===x;g[3]!==v?(s=()=>v("24 hours"),g[3]=v,g[4]=s):s=g[4],g[5]!==j||g[6]!==s?(r=(0,o.jsx)(m.l.Item,{selected:j,onSelect:s,children:"24 hours"}),g[5]=j,g[6]=s,g[7]=r):r=g[7];let y="3 days"===x;g[8]!==v?(a=()=>v("3 days"),g[8]=v,g[9]=a):a=g[9],g[10]!==y||g[11]!==a?(l=(0,o.jsx)(m.l.Item,{selected:y,onSelect:a,children:"3 days"}),g[10]=y,g[11]=a,g[12]=l):l=g[12];let w="1 week"===x;g[13]!==v?(n=()=>v("1 week"),g[13]=v,g[14]=n):n=g[14],g[15]!==w||g[16]!==n?(c=(0,o.jsx)(m.l.Item,{selected:w,onSelect:n,children:"1 week"}),g[15]=w,g[16]=n,g[17]=c):c=g[17];let _="1 month"===x;return g[18]!==v?(d=()=>v("1 month"),g[18]=v,g[19]=d):d=g[19],g[20]!==_||g[21]!==d?(h=(0,o.jsx)(m.l.Item,{selected:_,onSelect:d,children:"1 month"}),g[20]=_,g[21]=d,g[22]=h):h=g[22],g[23]!==c||g[24]!==h||g[25]!==r||g[26]!==l?(p=(0,o.jsx)(u.W.Overlay,{children:(0,o.jsxs)(m.l,{selectionVariant:"single",children:[r,l,c,h]})}),g[23]=c,g[24]=h,g[25]=r,g[26]=l,g[27]=p):p=g[27],g[28]!==t||g[29]!==p?(f=(0,o.jsxs)(u.W,{children:[t,p]}),g[28]=t,g[29]=p,g[30]=f):f=g[30],f}j.displayName="PulsePeriodContext",y.displayName="PulsePeriodProvider",w.displayName="PeriodMenu";var _=s(86276);function N(e){let t,s,r,a=(0,i.c)(6),{rangeLabel:l,loaded:n}=e,c=void 0!==n&&n,u=void 0===l?" ":l;return a[0]!==u||a[1]!==c?(t=(0,o.jsx)(d.z.TitleArea,{children:c?(0,o.jsx)(d.z.Title,{children:u}):(0,o.jsx)(_.r,{size:"titleMedium"})}),a[0]=u,a[1]=c,a[2]=t):t=a[2],a[3]===Symbol.for("react.memo_cache_sentinel")?(s=(0,o.jsx)(d.z.Actions,{children:(0,o.jsx)(w,{})}),a[3]=s):s=a[3],a[4]!==t?(r=(0,o.jsxs)(d.z,{hasBorder:!0,children:[t,s]}),a[4]=t,a[5]=r):r=a[5],r}N.displayName="PulseHeader";var S=s(89149),I=s(54740),C=s(56133),P=s(38621);function A(e,t){switch(e){case"pulls_merged_ratio":return 0===t.totalPullRequests?0:t.mergedPulls.length/t.totalPullRequests;case"pulls_opened_ratio":return 0===t.totalPullRequests?0:t.newPulls.length/t.totalPullRequests;case"issues_opened_ratio":return 0===t.totalIssues?0:t.newIssues.length/t.totalIssues;case"issues_closed_ratio":return 0===t.totalIssues?0:t.closedIssues.length/t.totalIssues;default:return 0}}function k(e){let t,s,r,a,l,n,c,d,u,m,h,f,g,x,v,j,y,b,w,_,N,S,k,L,T,$,R,E,q,H,O,U,D,M,B,W,z,V,G,F,X,J,K,Q,Y=(0,i.c)(94),{overviewData:Z}=e,{owner:ee,repo:et}=(0,p.g)(),es=`/${ee}/${et}`;Y[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,o.jsx)("div",{className:"Box-header",children:(0,o.jsx)("h3",{className:"Box-title","data-hpc":!0,children:"Overview"})}),Y[0]=t):t=Y[0];let er=100*A("pulls_merged_ratio",Z);Y[1]===Symbol.for("react.memo_cache_sentinel")?(s={backgroundColor:"var(--bgColor-done-emphasis)"},Y[1]=s):s=Y[1],Y[2]!==er?(r=(0,o.jsx)(I.z.Item,{progress:er,"aria-label":"Merged Pull Requests",style:s}),Y[2]=er,Y[3]=r):r=Y[3];let ea=100*A("pulls_opened_ratio",Z);Y[4]===Symbol.for("react.memo_cache_sentinel")?(a={backgroundColor:"var(--bgColor-success-emphasis)"},Y[4]=a):a=Y[4],Y[5]!==ea?(l=(0,o.jsx)(I.z.Item,{progress:ea,"aria-label":"Open Pull Requests",style:a}),Y[5]=ea,Y[6]=l):l=Y[6],Y[7]!==r||Y[8]!==l?(n=(0,o.jsxs)(I.z,{children:[r,l]}),Y[7]=r,Y[8]=l,Y[9]=n):n=Y[9];let el=`${es}/pulls?q=is%3Apr+is%3Aclosed`,en=`${100*A("pulls_merged_ratio",Z)}%`;Y[10]!==en?(c={left:0,top:0,width:en,height:"100%",zIndex:1},Y[10]=en,Y[11]=c):c=Y[11],Y[12]!==c||Y[13]!==el?(d=(0,o.jsx)(C.A,{href:el,className:"position-absolute",style:c,"aria-label":"View merged pull requests"}),Y[12]=c,Y[13]=el,Y[14]=d):d=Y[14];let eo=`${es}/pulls?q=is%3Apr+is%3Aopen`,ei=`${100*A("pulls_merged_ratio",Z)}%`,ec=`${100*A("pulls_opened_ratio",Z)}%`;Y[15]!==ei||Y[16]!==ec?(u={left:ei,top:0,width:ec,height:"100%",zIndex:1},Y[15]=ei,Y[16]=ec,Y[17]=u):u=Y[17],Y[18]!==eo||Y[19]!==u?(m=(0,o.jsx)(C.A,{href:eo,className:"position-absolute",style:u,"aria-label":"View open pull requests"}),Y[18]=eo,Y[19]=u,Y[20]=m):m=Y[20],Y[21]!==d||Y[22]!==m||Y[23]!==n?(h=(0,o.jsxs)("div",{className:"position-relative",children:[n,d,m]}),Y[21]=d,Y[22]=m,Y[23]=n,Y[24]=h):h=Y[24];let ed=Z.newPulls.length+Z.mergedPulls.length;Y[25]!==ed?(f=(0,o.jsxs)("div",{className:"mt-2",children:[(0,o.jsx)("span",{className:"text-emphasized",children:ed})," ","Active pull requests"]}),Y[25]=ed,Y[26]=f):f=Y[26],Y[27]!==h||Y[28]!==f?(g=(0,o.jsxs)("div",{className:"col-12 col-md-6 tmp-px-3 tmp-py-4",children:[h,f]}),Y[27]=h,Y[28]=f,Y[29]=g):g=Y[29];let eu=100*A("issues_closed_ratio",Z);Y[30]===Symbol.for("react.memo_cache_sentinel")?(x={backgroundColor:"var(--bgColor-danger-emphasis)"},Y[30]=x):x=Y[30],Y[31]!==eu?(v=(0,o.jsx)(I.z.Item,{progress:eu,"aria-label":"Closed Issues",style:x}),Y[31]=eu,Y[32]=v):v=Y[32];let em=100*A("issues_opened_ratio",Z);Y[33]===Symbol.for("react.memo_cache_sentinel")?(j={backgroundColor:"var(--bgColor-success-emphasis)"},Y[33]=j):j=Y[33],Y[34]!==em?(y=(0,o.jsx)(I.z.Item,{progress:em,"aria-label":"Active Issues",style:j}),Y[34]=em,Y[35]=y):y=Y[35],Y[36]!==v||Y[37]!==y?(b=(0,o.jsxs)(I.z,{children:[v,y]}),Y[36]=v,Y[37]=y,Y[38]=b):b=Y[38];let eh=`${es}/issues?q=is%3Aissue+is%3Aclosed`,ep=`${100*A("issues_closed_ratio",Z)}%`;Y[39]!==ep?(w={left:0,top:0,width:ep,height:"100%",zIndex:1},Y[39]=ep,Y[40]=w):w=Y[40],Y[41]!==eh||Y[42]!==w?(_=(0,o.jsx)(C.A,{href:eh,className:"position-absolute",style:w,"aria-label":"View closed issues"}),Y[41]=eh,Y[42]=w,Y[43]=_):_=Y[43];let ef=`${es}/issues?q=is%3Aissue+is%3Aopen`,eg=`${100*A("issues_closed_ratio",Z)}%`,ex=`${100*A("issues_opened_ratio",Z)}%`;Y[44]!==eg||Y[45]!==ex?(N={left:eg,top:0,width:ex,height:"100%",zIndex:1},Y[44]=eg,Y[45]=ex,Y[46]=N):N=Y[46],Y[47]!==ef||Y[48]!==N?(S=(0,o.jsx)(C.A,{href:ef,className:"position-absolute",style:N,"aria-label":"View open issues"}),Y[47]=ef,Y[48]=N,Y[49]=S):S=Y[49],Y[50]!==b||Y[51]!==_||Y[52]!==S?(k=(0,o.jsxs)("div",{className:"position-relative",children:[b,_,S]}),Y[50]=b,Y[51]=_,Y[52]=S,Y[53]=k):k=Y[53];let ev=Z.newIssues.length+Z.closedIssues.length;return Y[54]!==ev?(L=(0,o.jsxs)("div",{className:"mt-2",children:[(0,o.jsx)("span",{className:"text-emphasized",children:ev})," ","Active issues"]}),Y[54]=ev,Y[55]=L):L=Y[55],Y[56]!==k||Y[57]!==L?(T=(0,o.jsxs)("div",{className:"col-12 col-md-6 tmp-px-3 tmp-py-4",children:[k,L]}),Y[56]=k,Y[57]=L,Y[58]=T):T=Y[58],Y[59]!==g||Y[60]!==T?($=(0,o.jsxs)("li",{className:"Box-row p-0 d-flex flex-wrap",children:[g,T]}),Y[59]=g,Y[60]=T,Y[61]=$):$=Y[61],Y[62]===Symbol.for("react.memo_cache_sentinel")?(R=(0,o.jsx)(P.GitMergeIcon,{className:"color-fg-done"}),Y[62]=R):R=Y[62],Y[63]!==Z.mergedPulls.length?(E=(0,o.jsxs)("span",{className:"d-block h4 color-fg-default",children:[R," ",Z.mergedPulls.length]}),Y[63]=Z.mergedPulls.length,Y[64]=E):E=Y[64],Y[65]===Symbol.for("react.memo_cache_sentinel")?(q=(0,o.jsx)("span",{className:"color-fg-muted",children:"Merged pull requests"}),Y[65]=q):q=Y[65],Y[66]!==E?(H=(0,o.jsx)("li",{className:"tmp-p-3 col-12 col-sm-6 col-md-3 border-bottom border-sm-right border-md-bottom-0 color-border-muted",children:(0,o.jsxs)(C.A,{href:"#merged-pull-requests",className:"d-block color-fg-default no-underline Link--muted Link--inTextBlock",children:[E,q]})}),Y[66]=E,Y[67]=H):H=Y[67],Y[68]===Symbol.for("react.memo_cache_sentinel")?(O=(0,o.jsx)(P.GitPullRequestIcon,{className:"color-fg-success"}),Y[68]=O):O=Y[68],Y[69]!==Z.newPulls.length?(U=(0,o.jsxs)("span",{className:"d-block h4 color-fg-default",children:[O," ",Z.newPulls.length]}),Y[69]=Z.newPulls.length,Y[70]=U):U=Y[70],Y[71]===Symbol.for("react.memo_cache_sentinel")?(D=(0,o.jsx)("span",{className:"color-fg-muted",children:"Open pull requests"}),Y[71]=D):D=Y[71],Y[72]!==U?(M=(0,o.jsx)("li",{className:"tmp-p-3 col-12 col-sm-6 col-md-3 border-bottom border-md-bottom-0 border-md-right color-border-muted",children:(0,o.jsxs)(C.A,{href:"#opened-pull-requests",className:"d-block color-fg-default no-underline Link--muted Link--inTextBlock",children:[U,D]})}),Y[72]=U,Y[73]=M):M=Y[73],Y[74]===Symbol.for("react.memo_cache_sentinel")?(B=(0,o.jsx)(P.IssueClosedIcon,{className:"color-fg-done"}),Y[74]=B):B=Y[74],Y[75]!==Z.closedIssues.length?(W=(0,o.jsxs)("span",{className:"d-block h4 color-fg-default",children:[B," ",Z.closedIssues.length]}),Y[75]=Z.closedIssues.length,Y[76]=W):W=Y[76],Y[77]===Symbol.for("react.memo_cache_sentinel")?(z=(0,o.jsx)("span",{className:"color-fg-muted",children:"Closed issues"}),Y[77]=z):z=Y[77],Y[78]!==W?(V=(0,o.jsx)("li",{className:"tmp-p-3 col-12 col-sm-6 col-md-3 border-bottom border-sm-bottom-0 border-sm-right color-border-muted",children:(0,o.jsxs)(C.A,{href:"#closed-issues",className:"d-block color-fg-default no-underline Link--muted Link--inTextBlock",children:[W,z]})}),Y[78]=W,Y[79]=V):V=Y[79],Y[80]===Symbol.for("react.memo_cache_sentinel")?(G=(0,o.jsx)(P.IssueOpenedIcon,{className:"color-fg-success"}),Y[80]=G):G=Y[80],Y[81]!==Z.newIssues.length?(F=(0,o.jsxs)("span",{className:"d-block h4 color-fg-default",children:[G," ",Z.newIssues.length]}),Y[81]=Z.newIssues.length,Y[82]=F):F=Y[82],Y[83]===Symbol.for("react.memo_cache_sentinel")?(X=(0,o.jsx)("span",{className:"color-fg-muted",children:"New issues"}),Y[83]=X):X=Y[83],Y[84]!==F?(J=(0,o.jsx)("li",{className:"tmp-p-3 col-12 col-sm-6 col-md-3",children:(0,o.jsxs)(C.A,{href:"#opened-issues",className:"d-block color-fg-default no-underline Link--muted Link--inTextBlock",children:[F,X]})}),Y[84]=F,Y[85]=J):J=Y[85],Y[86]!==H||Y[87]!==M||Y[88]!==V||Y[89]!==J?(K=(0,o.jsx)("li",{className:"Box-row p-0",children:(0,o.jsxs)("ul",{className:"list-style-none text-center d-flex flex-wrap",children:[H,M,V,J]})}),Y[86]=H,Y[87]=M,Y[88]=V,Y[89]=J,Y[90]=K):K=Y[90],Y[91]!==$||Y[92]!==K?(Q=(0,o.jsxs)("div",{className:"Box",children:[t,(0,o.jsxs)("ul",{children:[$,K]})]}),Y[91]=$,Y[92]=K,Y[93]=Q):Q=Y[93],Q}k.displayName="PulseOverview";var L=s(27823);let T="PulseSummary-module__summaryBox__LV3Ab",$="PulseSummary-module__text__UJMVz",R="PulseSummary-module__strong__bEEPU";function E(e,t,s){return 1===e?`${t}`:`${s||`${t}s`}`}function q(e){return 1===e?"has":"have"}function H(e,t){let s="string"==typeof e?new Date(e):e,r=function(e,t=!1){let s="string"==typeof e?new Date(e):e;if(isNaN(s.getTime()))throw Error("Invalid date provided to fullMonthDate");let r=new Date().getFullYear(),a={month:"short",day:"numeric"};return t&&s.getFullYear()===r||(a.year="numeric"),s.toLocaleDateString("en-US",a)}(s);return{datetime:s instanceof Date&&!isNaN(s.getTime())?s.toISOString():"",className:["no-wrap",t].filter(Boolean).join(" "),children:r}}var O=s(7478),U=s(34164);let D=()=>{let e,t=(0,i.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsxs)("div",{className:$,children:[(0,o.jsx)("div",{children:(0,o.jsxs)("div",{children:[(0,o.jsx)(_.r,{}),(0,o.jsx)(_.r,{})]})}),(0,o.jsx)("div",{children:(0,o.jsxs)("div",{children:[(0,o.jsx)(_.r,{}),(0,o.jsx)(_.r,{})]})})]}),t[0]=e):e=t[0],e};D.displayName="SkeletonLoaderSummary";let M=()=>{let e,t=(0,i.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)("div",{className:(0,U.$)(T,"d-flex flex-items-center flex-justify-center"),children:(0,o.jsx)(O.A,{})}),t[0]=e):e=t[0],e};M.displayName="SkeletonLoaderChart";var B=s(70944);function W(e){let t,s,r,a=(0,i.c)(9),{owner:l,repo:n,forkPathUrl:c}=e,{selectedPeriod:d}=b();return a[0]!==l||a[1]!==d||a[2]!==n?(t=(0,o.jsxs)(B.E.Heading,{children:["There hasn't been any commit activity on ",l,"/",n," over the last ",d]}),a[0]=l,a[1]=d,a[2]=n,a[3]=t):t=a[3],a[4]!==c?(s=c&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(B.E.Description,{children:"Want to help out?"}),(0,o.jsxs)(B.E.PrimaryAction,{href:c,children:[(0,o.jsx)(P.RepoForkedIcon,{})," Fork this repository"]})]}),a[4]=c,a[5]=s):s=a[5],a[6]!==t||a[7]!==s?(r=(0,o.jsx)("div",{children:(0,o.jsxs)(B.E,{children:[t,s]})}),a[6]=t,a[7]=s,a[8]=r):r=a[8],r}W.displayName="BlankslateCommits";let z=e=>{let t,s=(0,i.c)(2),{errorMessage:r}=e;return s[0]!==r?(t=(0,o.jsx)("div",{className:"text-center tmp-p-3","data-hpc":!0,children:(0,o.jsx)("div",{className:"msg",children:(0,o.jsx)("p",{children:r})})}),s[0]=r,s[1]=t):t=s[1],t};z.displayName="ErrorMessage";var V=s(60909);function G({committerData:e,diffstatSummary:t,summaryLoaded:s,chartLoaded:r,summaryError:a,chartError:l}){let{owner:n,repo:i}=(0,p.g)(),c="number"==typeof t.additions&&"number"==typeof t.totalCommits;return c?(0,o.jsxs)("div",{className:"PulseSummary-module__container__mfP9Y",children:[(0,o.jsxs)("div",{className:T,children:[(0,o.jsx)("div",{children:(0,o.jsx)("h3",{className:"PulseSummary-module__title__WtejM","data-hpc":!0,children:"Summary"})}),s&&c&&!a?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{children:(0,o.jsxs)("p",{className:$,children:[(0,o.jsx)("span",{children:"Excluding merges, "}),(0,o.jsxs)("strong",{className:R,children:[t.authorsWithCommits," ",E(t.authorsWithCommits,"author")]}),(0,o.jsxs)("span",{children:[" ",q(t.authorsWithCommits)," pushed "]}),(0,o.jsx)("strong",{className:R,children:(0,o.jsxs)("span",{children:[t.masterCommits," ",E(t.masterCommits,"commit")]})}),(0,o.jsxs)("span",{children:[" to ",t.defaultBranch," and "]}),(0,o.jsxs)("strong",{className:R,children:[t.totalCommits," ",E(t.totalCommits,"commit")]}),(0,o.jsx)("span",{children:" to all branches."})]})}),(0,o.jsx)("div",{children:(0,o.jsxs)("p",{className:`${$} color-fg-muted`,children:[(0,o.jsxs)("span",{children:["On ",t.defaultBranch,", "]}),(0,o.jsxs)("strong",{className:"color-fg-default",children:[t.filesChanged," ",E(t.filesChanged,"file")]}),(0,o.jsxs)("span",{children:[" ",q(t.filesChanged)," changed and there have been "]}),(0,o.jsxs)(C.A,{href:t.comparePathUrl,className:"lines-changed Link--muted Link--inTextBlock",children:[(0,o.jsx)("strong",{className:"color-fg-success",children:t.additions.toLocaleString()})," ",(0,o.jsx)("strong",{className:"color-fg-default",children:E(t.additions,"addition")}),(0,o.jsx)("span",{children:" and "}),(0,o.jsx)("strong",{className:"color-fg-danger",children:t.deletions.toLocaleString()})," ",(0,o.jsx)("strong",{className:"color-fg-default",children:E(t.deletions,"deletion")})]})]})})]}):a?(0,o.jsx)("div",{className:"d-flex flex-items-center flex-justify-center",children:(0,o.jsx)(z,{errorMessage:a})}):(0,o.jsx)(D,{})]}),(0,o.jsx)("div",{className:"PulseSummary-module__chartContainer__DA1Or",children:r&&!l?(0,o.jsxs)(L.d,{size:"small",border:!0,padding:"normal",visibleControls:!0,children:[(0,o.jsx)(L.d.Title,{as:"h2",children:"Top Committers"}),(0,o.jsx)(L.d.ColumnChart,{series:[{name:"Commits",data:e.slice(0,15).map(e=>e.commits)}],theme:"green",options:{yAxis:{title:"Commits",gridLineWidth:1,allowDecimals:!1,min:0,max:Math.max(...e.slice(0,15).map(e=>e.commits)),labels:{formatter(){let e="string"==typeof this.value?parseFloat(this.value):this.value;return e<1e3?e.toString():`${(e/1e3).toFixed(0)}k`}}},xAxis:{title:"",categories:e.slice(0,15).map((e,t)=>e.login||`User ${t}`)},plot:{animation:!1}},overrideOptionsNotRecommended:{xAxis:{gridLineWidth:0,categories:e.slice(0,15).map((e,t)=>e.login||`User ${t}`),labels:{useHTML:!0,style:{textAlign:"center"},step:1,staggerLines:1,allowOverlap:!1,autoRotation:[],formatter(){let t=this.pos,s=e.slice(0,15)[t];if(!s)return"";let r=s.gravatar||"/images/icons/copilot/cp-head-square.png",a=r.startsWith("http://")||r.startsWith("https://")?{href:r}:new URL(r,window.location.origin),l=s.login?`/${s.login}`:"#",n=Object.entries(s.login?(0,V.Sr)(s.login):{}).map(([e,t])=>`${e}="${t}"`).join(" ");return`
${s.login||
`}},lineWidth:1,tickLength:0,min:0,max:14},tooltip:{formatter(){let t=this.point.index,s=e.slice(0,15)[t],r=s?.login||s?.name||"Unknown",a=this.y;return`${a} ${1===a?"commit":"commits"} authored by ${r}`},backgroundColor:"rgba(0, 0, 0, 0.8)",style:{color:"white",fontSize:"12px",padding:"8px"},borderWidth:0,shadow:!1},plotOptions:{column:{pointPadding:.1,groupPadding:.2,borderWidth:0,states:{hover:{brightness:.1}}}}}})]}):l?(0,o.jsx)("div",{className:(0,U.$)(T,"d-flex flex-items-center flex-justify-center"),children:(0,o.jsx)(z,{errorMessage:l})}):(0,o.jsx)(M,{})})]}):(0,o.jsx)(W,{owner:n,repo:i,forkPathUrl:t.forkPathUrl,"data-hpc":!0})}G.displayName="PulseSummary";let F="ConversationList-module__conversationListHeading__slzxM",X="ConversationList-module__inner__L8P9A";var J=s(62935);let K=[];function Q(e){let t,s,r=(0,i.c)(12),{type:a,count:l,peopleCount:n,pullRequests:c}=e,d=void 0===l?0:l,u=void 0===n?0:n,m=void 0===c?K:c,h="merged"===a?P.GitMergeIcon:P.GitPullRequestIcon,p="merged"===a?"color-fg-done":"color-fg-success";r[0]!==d||r[1]!==a?(t="merged"===a?`${E(d,"pull request")} merged`:`${E(d,"pull request")} opened`,r[0]=d,r[1]=a,r[2]=t):t=r[2];let f=t,g="merged"===a?"merged-pull-requests":"opened-pull-requests";return r[3]!==h||r[4]!==d||r[5]!==p||r[6]!==u||r[7]!==m||r[8]!==g||r[9]!==f||r[10]!==a?(s=m&&m.length>0?(0,o.jsxs)("section",{className:"PullRequestSection-module__section__A30Oa",children:[(0,o.jsx)("div",{children:(0,o.jsx)("h3",{className:F,id:g,children:(0,o.jsxs)("span",{className:X,children:[(0,o.jsx)(h,{className:p})," ",(0,o.jsx)("strong",{className:"color-fg-default",children:d})," ",f," by"," ",(0,o.jsx)("strong",{className:"color-fg-default",children:u})," ",E(u,"person","people")]})})}),(0,o.jsx)("ul",{className:"list-style-none tmp-my-4",children:m&&m.length>0?m.map(e=>(0,o.jsxs)("li",{className:"clearfix",children:[(0,o.jsx)(h,{className:`${p} float-left mt-1`}),(0,o.jsxs)("div",{className:"overflow-hidden pl-2",children:[(0,o.jsx)(C.A,{href:e.path,className:"h4 Link--primary mb-1 markdown-title",children:e.title}),(0,o.jsxs)("p",{className:"color-fg-muted text-small",children:[(0,o.jsxs)("span",{className:"num",children:["#",e.number]})," ",a," ",(0,o.jsx)(J.A,{...H(e.mergedAt??e.createdAt)})]})]})]},e.number)):(0,o.jsxs)("li",{className:"clearfix",children:[(0,o.jsx)(h,{className:`${p} float-left mt-1`}),(0,o.jsxs)("div",{className:"overflow-hidden pl-2",children:[(0,o.jsx)("a",{href:"filler",className:"h4 Link--primary mb-1 markdown-title",children:"[Example PR]"}),(0,o.jsxs)("p",{className:"color-fg-muted text-small",children:[(0,o.jsx)("span",{className:"num",children:"#0000"})," ",a," yesterday"]})]})]})})]}):null,r[3]=h,r[4]=d,r[5]=p,r[6]=u,r[7]=m,r[8]=g,r[9]=f,r[10]=a,r[11]=s):s=r[11],s}Q.displayName="PullRequestSection";let Y=[];function Z(e){let t,s,r=(0,i.c)(12),{type:a,count:l,peopleCount:n,issues:c}=e,d=void 0===l?0:l,u=void 0===n?0:n,m=void 0===c?Y:c,h="opened"===a?P.IssueOpenedIcon:P.IssueClosedIcon,p="opened"===a?"color-fg-success":"color-fg-done";r[0]!==d||r[1]!==a?(t="opened"===a?`${E(d,"issue")} opened`:`${E(d,"issue")} closed`,r[0]=d,r[1]=a,r[2]=t):t=r[2];let f=t,g="opened"===a?"opened-issues":"closed-issues";return r[3]!==h||r[4]!==d||r[5]!==p||r[6]!==m||r[7]!==u||r[8]!==g||r[9]!==f||r[10]!==a?(s=m&&m.length>0?(0,o.jsxs)("section",{className:"IssueSection-module__section__ppjUf",children:[(0,o.jsx)("div",{children:(0,o.jsx)("h3",{className:F,id:g,children:(0,o.jsxs)("span",{className:X,children:[(0,o.jsx)(h,{className:p})," ",(0,o.jsx)("strong",{className:"color-fg-default",children:d})," ",f," by"," ",(0,o.jsx)("strong",{className:"color-fg-default",children:u})," ",E(u,"person","people")]})})}),(0,o.jsx)("ul",{className:"list-style-none tmp-my-4",children:m&&m.length>0?m.map(e=>(0,o.jsxs)("li",{className:"clearfix",children:[(0,o.jsx)(h,{className:`${p} float-left mt-1`}),(0,o.jsxs)("div",{className:"overflow-hidden pl-2",children:[(0,o.jsx)(C.A,{href:e.path,className:"h4 Link--primary mb-1 markdown-title",children:e.title}),(0,o.jsxs)("p",{className:"color-fg-muted text-small",children:[(0,o.jsxs)("span",{className:"num",children:["#",e.number]})," ",a," ",(0,o.jsx)(J.A,{...H(e.closedAt??e.createdAt)})]})]})]},e.number)):(0,o.jsxs)("li",{className:"clearfix",children:[(0,o.jsx)(h,{className:`${p} float-left mt-1`}),(0,o.jsxs)("div",{className:"overflow-hidden pl-2",children:[(0,o.jsx)("a",{href:"filler",className:"h4 Link--primary mb-1 markdown-title",children:"[Example Issue]"}),(0,o.jsxs)("p",{className:"color-fg-muted text-small",children:[(0,o.jsx)("span",{className:"num",children:"#0000"})," ",a," yesterday"]})]})]})})]}):null,r[3]=h,r[4]=d,r[5]=p,r[6]=m,r[7]=u,r[8]=g,r[9]=f,r[10]=a,r[11]=s):s=r[11],s}Z.displayName="IssueSection";let ee="UnresolvedConversations-module__icon__cM2jE",et=[];function es(e){let t,s=(0,i.c)(3),{count:r,conversations:a}=e,l=void 0===r?0:r,n=void 0===a?et:a;return s[0]!==n||s[1]!==l?(t=n&&n.length>0?(0,o.jsxs)("section",{className:"UnresolvedConversations-module__section__xsstL",children:[(0,o.jsx)("div",{children:(0,o.jsx)("h3",{className:F,id:"unresolved-conversations",children:(0,o.jsxs)("span",{className:X,children:[(0,o.jsx)(P.CommentDiscussionIcon,{className:"color-fg-muted"})," ",(0,o.jsx)("strong",{className:"color-fg-default",children:l})," ",E(l,"Unresolved conversation","Unresolved conversations")]})})}),(0,o.jsx)("p",{className:"UnresolvedConversations-module__description__IeA4j",children:"Sometimes conversations happen on old items that aren't yet closed. Here is a list of all the Issues and Pull Requests with unresolved conversations."}),(0,o.jsx)("ul",{className:"list-style-none tmp-my-4",children:n?n.map(er):(0,o.jsxs)("li",{className:"clearfix",children:[(0,o.jsx)(P.CommentDiscussionIcon,{className:`${ee} float-left mt-1`})," ",(0,o.jsxs)("div",{className:"overflow-hidden pl-2",children:[(0,o.jsx)("a",{href:"filler",className:"h4 Link--primary mb-1 markdown-title",children:"[Example Discussion]"}),(0,o.jsxs)("p",{className:"color-fg-muted text-small",children:[(0,o.jsx)("span",{className:"num",children:"#0000"})," commented on yesterday \u2022 -- new comment(s)"]})]})]})})]}):null,s[0]=n,s[1]=l,s[2]=t):t=s[2],t}function er(e){return(0,o.jsxs)("li",{className:"clearfix",children:[(0,o.jsx)(P.CommentDiscussionIcon,{className:`${ee} float-left mt-1`})," ",(0,o.jsxs)("div",{className:"overflow-hidden pl-2",children:[(0,o.jsx)(C.A,{href:e.path,className:"h4 Link--primary mb-1 markdown-title",children:e.title}),(0,o.jsxs)("p",{className:"color-fg-muted text-small",children:[(0,o.jsxs)("span",{className:"num",children:["#",e.number]})," commented on"," ",(0,o.jsx)(J.A,{...H(e.createdAt)})," \u2022 ",e.commentsCount," ",E(e.commentsCount??0,"new comment","new comments")]})]})]},e.number)}es.displayName="UnresolvedConversations";let ea=[];function el(e){let t,s,r=(0,i.c)(7),{count:a,peopleCount:l,releases:n}=e,c=void 0===a?0:a,d=void 0===l?0:l,u=void 0===n?ea:n;r[0]!==c?(t=E(c,"release","releases"),r[0]=c,r[1]=t):t=r[1];let m=`${t} published`;return r[2]!==c||r[3]!==d||r[4]!==u||r[5]!==m?(s=u&&u.length>0?(0,o.jsxs)("section",{className:"Releases-module__section___T3eT",children:[(0,o.jsx)("div",{children:(0,o.jsx)("h3",{className:F,id:"releases",children:(0,o.jsxs)("span",{className:X,children:[(0,o.jsx)(P.TagIcon,{className:"color-default"})," ",(0,o.jsx)("strong",{className:"color-fg-default",children:c})," ",m," by"," ",(0,o.jsx)("strong",{className:"color-fg-default",children:d})," ",E(d,"person","people")]})})}),(0,o.jsx)("ul",{className:"list-style-none tmp-my-4",children:u&&u.map(en)})]}):null,r[2]=c,r[3]=d,r[4]=u,r[5]=m,r[6]=s):s=r[6],s}function en(e){return(0,o.jsxs)("li",{className:"clearfix",children:[(0,o.jsx)(P.TagIcon,{className:"color-default float-left mt-1"}),(0,o.jsxs)("div",{className:"overflow-hidden pl-2",children:[(0,o.jsxs)(C.A,{href:e.path,className:"h4 Link--primary mb-1 markdown-title",children:[e.number," ",e.title]}),(0,o.jsx)("p",{className:"color-fg-muted text-small",children:(0,o.jsx)(J.A,{...H(e.createdAt)})})]})]},e.number)}el.displayName="Releases";var eo=s(46251);let ei=()=>{let e,t,s=(0,i.c)(2);return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)("div",{className:"Box-header",children:(0,o.jsx)("h3",{className:"Box-title",children:"Overview"})}),s[0]=e):e=s[0],s[1]===Symbol.for("react.memo_cache_sentinel")?(t=(0,o.jsxs)("div",{className:"Box position-relative",children:[e,(0,o.jsx)("div",{className:"Box-row p-0",children:(0,o.jsx)("div",{className:"d-flex flex-wrap flex-items-center flex-justify-center",style:{height:162},children:(0,o.jsx)(O.A,{})})})]}),s[1]=t):t=s[1],t};function ec(){let e=(0,c.xX)(n,"mainQuery"),[t,s]=(0,h.useState)(!1),[r,a]=(0,h.useState)(!1),[l,i]=(0,h.useState)(!1),[d,u]=(0,h.useState)(),[m,p]=(0,h.useState)(),[x,v]=(0,h.useState)(),[j,y]=(0,h.useState)(f),[w,_]=(0,h.useState)([]),[I,C]=(0,h.useState)(g),P=e.data?.committerDataPath,A=e.data?.diffstatSummaryPath,L=e.data?.overviewDataPath,{selectedPeriod:T}=b(),$={"24 hours":"daily","3 days":"halfweekly","1 week":"weekly","1 month":"monthly"}[T]||"weekly",R=(0,h.useCallback)(async(e,t,s,r,a)=>{if(!e){a&&a(`${t} data path is not available`),r(!0);return}try{let t=`${e}/${$}`,r=await (0,S.Ee)(t);if(r.ok){let e=await r.json();s(e),a&&a(void 0)}else{let e="There was an error fetching the data";r.status>=500?e="Server error occurred. Please try again later.":404===r.status?e="Data not found.":r.status>=400&&(e="Bad request. Please refresh the page and try again.");try{let{unusable:t}=await r.json();t&&(e="Data is unusable")}catch{}a&&a(e)}}catch(t){let e=t instanceof Error&&"AbortError"===t.name?"Request was cancelled. Please try again.":"An unexpected error occurred while fetching the data";a&&a(e)}finally{r(!0)}},[$]);return((0,h.useEffect)(()=>{s(!1),a(!1),i(!1),y(f),_([]),C(g),u(void 0),p(void 0),v(void 0)},[$]),(0,h.useEffect)(()=>{R(P,"Committer",_,i,p)},[P,$,R]),(0,h.useEffect)(()=>{R(A,"Diffstat",C,a,u)},[A,$,R]),(0,h.useEffect)(()=>{R(L,"Overview",y,s,v)},[L,$,R]),x&&d&&m)?(0,o.jsx)(z,{errorMessage:x}):(0,o.jsxs)(eo.B,{gap:"condensed",children:[(0,o.jsx)(N,{rangeLabel:j.rangeLabel,loaded:t,"data-hpc":!0}),t?(0,o.jsx)(k,{overviewData:j}):(0,o.jsx)(ei,{}),(0,o.jsx)(G,{committerData:w,diffstatSummary:I,summaryLoaded:r,chartLoaded:l,summaryError:d,chartError:m}),t?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(el,{count:j.releases.length,peopleCount:j.numAuthorsReleases,releases:j.releases,"data-hpc":!0}),(0,o.jsx)(Q,{type:"merged",count:j.mergedPulls.length,peopleCount:j.numAuthorsMergedPulls,pullRequests:j.mergedPulls}),(0,o.jsx)(Q,{type:"opened",count:j.newPulls.length,peopleCount:j.numAuthorsNewPulls,pullRequests:j.newPulls}),(0,o.jsx)(Z,{type:"closed",count:j.closedIssues.length,peopleCount:j.numAuthorsClosedIssues,issues:j.closedIssues}),(0,o.jsx)(Z,{type:"opened",count:j.newIssues.length,peopleCount:j.numAuthorsNewIssues,issues:j.newIssues}),(0,o.jsx)(es,{count:j.discussions.length,conversations:j.discussions})]}):null]})}function ed(){let e,t=(0,i.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,o.jsx)(y,{children:(0,o.jsx)(ec,{})}),t[0]=e):e=t[0],e}ei.displayName="SkeletonLoaderOverview",ec.displayName="PulseContent",ed.displayName="Pulse";let eu=a.createDataRouterAppFromRoutes([n.toRoute({Component:ed})]);(0,r.w)(eu)},12653(e,t,s){s.d(t,{a:()=>a,createPurifier:()=>l,sanitizeWithPurifier:()=>n});var r=s(99418);function a(e,t){return r.A.sanitize(e,t)}function l(e){let t=(0,r.A)();return e&&e(t),t}function n(e,t,s){return t.sanitize(e,s)}},5384(e,t,s){s.d(t,{Tt:()=>o,X7:()=>n,Ou:()=>i});let r="service_worker.postrequest";var a=s(66743);let l=null;async function n(e){if(null===l)try{let t=navigator.serviceWorker?.controller;if(!t||!function(e){let t=new URL(e,self.location.origin).pathname.split("/").filter(Boolean);if(!t[0]||!t[1]||"issues"!==t[2])return!1;if(3===t.length)return!0;if(4===t.length){let e=t[3];return void 0!==e&&/^\d+$/.test(e)}return!1}(e))return;let s=performance.now();l=await new Promise((l,n)=>{let o=new MessageChannel;function i(){o.port1.onmessage=null,o.port1.onmessageerror=null,o.port1.close(),o.port2.close()}let c=setTimeout(()=>{i();let e=performance.now()-s;(0,a.BI)(r,{duration_ms:e,timedOut:!0}),l(null)},500);o.port1.onmessage=e=>{clearTimeout(c),i();let t=performance.now()-s;if(e.data?.type==="CACHED_QUERIES_RESPONSE"&&e.data.data){let s=e.data.data.preloadedQueries;(0,a.BI)(r,{duration_ms:t,timedOut:!1}),l(s)}else(0,a.BI)(r,{duration_ms:t,timedOut:!1}),l(null)},o.port1.onmessageerror=()=>{clearTimeout(c),i(),n(Error("SW message channel error"))},t.postMessage({type:"GET_CACHED_QUERIES",url:e},[o.port2])})}catch{l=null}}function o(){return l}function i(){l=null}},33542(e,t,s){s.d(t,{G:()=>r});let r=e=>({})},70247(e,t,s){s.d(t,{V:()=>h});var r=s(74848),a=s(16522),l=s(96540),n=s(40914),o=s(38621),i=s(52870),c=s(56149);let d={info:"",success:"Toast--success",error:"Toast--error"},u={info:(0,r.jsx)(o.InfoIcon,{}),success:(0,r.jsx)(o.CheckIcon,{}),error:(0,r.jsx)(o.StopIcon,{})},m=e=>{let t,s,n,o,m,h=(0,a.c)(14),{message:p,timeToLive:f,icon:g,type:x,role:v}=e,j=void 0===x?"info":x,y=void 0===v?"log":v,[b,w]=l.useState(!0),{safeSetTimeout:_}=(0,i.A)();h[0]!==_||h[1]!==f?(t=()=>{f&&_(()=>w(!1),f-300)},s=[_,f],h[0]=_,h[1]=f,h[2]=t,h[3]=s):(t=h[2],s=h[3]),(0,l.useEffect)(t,s);let N=`Toast ${d[j]} ${b?"Toast--animateIn":"Toast--animateOut"}`,S=`ui-app-toast-${j}`,I=g||u[j];return h[4]!==I?(n=(0,r.jsx)("span",{className:"Toast-icon",children:I}),h[4]=I,h[5]=n):n=h[5],h[6]!==p?(o=(0,r.jsx)("span",{className:"Toast-content",children:p}),h[6]=p,h[7]=o):o=h[7],h[8]!==y||h[9]!==N||h[10]!==S||h[11]!==n||h[12]!==o?(m=(0,r.jsx)(c.ZL,{children:(0,r.jsx)("div",{className:"p-1 position-fixed bottom-0 left-0 tmp-mb-3 tmp-ml-3",children:(0,r.jsxs)("div",{className:N,id:"ui-app-toast","data-testid":S,role:y,children:[n,o]})})}),h[8]=y,h[9]=N,h[10]=S,h[11]=n,h[12]=o,h[13]=m):m=h[13],m};function h(){let e,t,s,o=(0,a.c)(7),{toasts:i,persistedToast:c}=(0,l.use)(n.T8);return o[0]!==i?(e=i.map(p),o[0]=i,o[1]=e):e=o[1],o[2]!==c?(t=c&&(0,r.jsx)(m,{message:c.message,icon:c.icon,type:c.type,role:c.role}),o[2]=c,o[3]=t):t=o[3],o[4]!==e||o[5]!==t?(s=(0,r.jsxs)(r.Fragment,{children:[e,t]}),o[4]=e,o[5]=t,o[6]=s):s=o[6],s}function p(e,t){return(0,r.jsx)(m,{message:e.message,icon:e.icon,timeToLive:n.Qn,type:e.type,role:e.role},t)}m.displayName="Toast",h.displayName="Toasts"},14762(e,t,s){s.d(t,{y:()=>l});var r=s(35205);let a=[];"u">typeof window&&(window.__SAFE_STORAGE_CLEAR_ALL_CACHES__=()=>{for(let e of a)e.clear()});let l=e=>{let t=(0,r.A)(e),s=new Map,l=new Map;function n(e,t){if(e===t)return!0;try{return JSON.stringify(e)===JSON.stringify(t)}catch{return!1}}function o(e){let t=l.get(e);if(t)for(let e of t)e()}function i(e){return[...new Set([...[...s.keys()].filter(t=>t.startsWith(e)),...t.getKeys().filter(t=>t.startsWith(e))])]}return a.push(s),{writeStorage:function(e,r){n(s.get(e),r)||(s.set(e,r),o(e),t.setItem(e,JSON.stringify(r)))},readStorage:function(e,r){if(s.has(e))return s.get(e);try{let a=t.getItem(e),l=null==a?r:JSON.parse(a);return s.set(e,l),l}catch{return s.set(e,r),r}},removeStorage:function(e){s.delete(e),t.removeItem(e),o(e)},resetStorage:function(e,r){n(s.get(e),r)||(s.set(e,r),t.removeItem(e),o(e))},subscribe:function(e,t){let s=l.get(e);return s||(s=new Set,l.set(e,s)),s.add(t),()=>{s.delete(t),0===s.size&&l.delete(e)}},cache:s,clearAll:function(){for(let e of[...s.keys()])s.delete(e),t.removeItem(e),o(e)},clearKeys:function(e,r){for(let a of e)s.delete(a),t.removeItem(a),r?.silent||o(a)},clearKeysByPrefix:function(e){for(let r of i(e))s.delete(r),t.removeItem(r),o(r)},getItemsByPrefix:function(e){let r=[];for(let a of i(e))if(s.has(a))r.push(s.get(a));else{let e=t.getItem(a);if(null!=e)try{r.push(JSON.parse(e))}catch{}}return r},getKeysByPrefix:i}}},30681(e,t,s){s.d(t,{Mj:()=>h,sw:()=>m});var r=s(16522),a=s(96540);let{cache:l,readStorage:n,writeStorage:o,resetStorage:i,subscribe:c,clearKeys:d,clearAll:u}=(0,s(14762).y)("localStorage");function m(e){d(e)}function h(e,t){let s,d,u,m,h,p,f,g=(0,r.c)(17),x=(0,a.useRef)(t);g[0]!==t?(s=()=>{x.current=t},g[0]=t,g[1]=s):s=g[1],(0,a.useEffect)(s),g[2]!==t||g[3]!==e?(d=()=>(l.has(e)||n(e,t),l.get(e)),g[2]=t,g[3]=e,g[4]=d):d=g[4];let v=d;g[5]!==t?(u=()=>t,g[5]=t,g[6]=u):u=g[6];let j=u;g[7]!==e?(m=t=>c(e,t),g[7]=e,g[8]=m):m=g[8];let y=m,b=(0,a.useSyncExternalStore)(y,v,j);g[9]!==e?(h=t=>{let s=l.has(e)?l.get(e):x.current,r="function"==typeof t?t(s):t;void 0===r?i(e,x.current):o(e,r)},g[9]=e,g[10]=h):h=g[10];let w=h;g[11]!==e?(p=()=>{i(e,x.current)},g[11]=e,g[12]=p):p=g[12];let _=p;return g[13]!==_||g[14]!==w||g[15]!==b?(f=[b,w,_],g[13]=_,g[14]=w,g[15]=b,g[16]=f):f=g[16],f}},78597(e,t,s){s.d(t,{DI:()=>n,QJ:()=>i,Sr:()=>c,lS:()=>o});var r=s(5045),a=s(41763),l=s(13759);async function n(e,t={}){let s,o,i,c;var d,u=e;if(new URL(u,window.location.origin).origin!==window.location.origin)throw Error("Can not make cross-origin requests from verifiedFetch");let{tracingEnabled:m,fetchPath:h}=(s=new URL(d=e,window.location.href),(i=(o=new URL(window.location.href,window.location.origin)).searchParams.get("_features"))&&!s.searchParams.has("_features")&&s.searchParams.set("_features",i),(c=o.searchParams.get("_tracing"))&&!s.searchParams.has("_tracing")&&s.searchParams.set("_tracing",c),{tracingEnabled:!!c,fetchPath:d.startsWith(window.location.origin)?s.href:`${s.pathname}${s.search}`}),p={...t.headers,"GitHub-Verified-Fetch":"true",...(0,r.kt)()},f=await fetch(h,{...t,headers:p}),g=f?.headers?.get("X-Github-Request-Id");if(g&&(0,a.Ex)(g),m&&f){let e=f.clone();try{let t=await e.text(),s=t&&JSON.parse(t);(0,l.Av)(s)}catch{}}return f}function o(e,t){let s={...t?.headers??{},Accept:"application/json","Content-Type":"application/json"},r=t?.body?JSON.stringify(t.body):void 0;return n(e,{...t,body:r,headers:s})}function i(e,t={}){let s={...t.headers,"GitHub-Is-React":"true"};return n(e,{...t,headers:s})}function c(e,t){let s={...t?.headers??{},"GitHub-Is-React":"true"};return o(e,{...t,headers:s})}},46943(e,t,s){s.d(t,{z:()=>u});var r=s(34619),a=s(73537),l=s(35205);let n="VERSION_MISMATCH_LAST_TRIGGERED",o=(0,l.A)("localStorage",{ttl:9e7,throwQuotaErrorsOnSet:!1}),i=null,c=new class{canTrigger(){let e=this.getLastTriggerTime();return null===e||Date.now()-e>=864e5}recordTrigger(){let e=Date.now();o.setItem(n,e.toString()),i=e}getLastTriggerTime(){let e=o.getItem(n);if(e){let t=parseInt(e,10);return isNaN(t)?null:t}return i}clearTriggerRecord(){o.removeItem(n),i=null}};class d{#e=new Map;registerApp(e,t){this.#e.set(e,t)}unregisterApp(e){this.#e.delete(e)}checkResponse(e,t){if("true"!==e.headers.get("X-GitHub-Version-Mismatch")||!(0,a.G7)("react_version_mismatch_detection")||!c.canTrigger())return!1;let s={clientVersion:(0,r.O)(),serverVersion:e.headers.get("X-GitHub-Server-Version")||void 0,requestUrl:e.url,responseHeaders:e.headers,appName:t};if(c.recordTrigger(),t){let e=this.#e.get(t);if(e)return e.onMismatchDetected(s),!0}else{let e=!1;for(let[t,r]of this.#e.entries()){let a={...s,appName:t};r.onMismatchDetected(a),e=!0}return e}return!1}}let u=new d}},function(e){e.O(0,["13726","15272","28839","2966","32769","34646","37869","41013","46287","48299","5158","58889","59299","60481","63991","68751","7053","7463","7542","76015","82532","83465","85924","87376","90225","98131"],function(){return e(e.s=68796)}),e.O()}]); //# sourceMappingURL=repos-pulse-42f22af4d2c69e78-a07e101633cd6840.js.map