F(!P)}),N[31]=X,N[32]=P,N[33]=x):x=N[33];let ee=”compact”===V;N[34]!==ee?(v=(0,b.$)(“tab-size”,”width-full”,rn,{[ri]:ee}),N[34]=ee,N[35]=v):v=N[35];let et=`${K}px`,en=`${2*parseFloat(K)}px`;return N[36]!==et||N[37]!==en?(y={“–line-number-cell-width”:et,”–line-number-cell-width-unified”:en},N[36]=et,N[37]=en,N[38]=y):y=N[38],N[39]!==D.path||N[40]!==B||N[41]!==J||N[42]!==R||N[43]!==K||N[44]!==L.avatarUrl||N[45]!==L.login||N[46]!==L.viewerCanApplySuggestion?(j=R?(0,i.jsx)(e1.wj,{lineWidth:K,children:M?(0,i.jsx)(rp,{diffLines:B,filePath:D.path,avatarURL:L.avatarUrl,userLogin:L.login,viewerCanApplySuggestion:L.viewerCanApplySuggestion}):(0,i.jsx)(a8,{…J})}):(0,i.jsx)(e1.Qe,{lineWidth:K,children:M?(0,i.jsx)(ru,{diffLines:B,filePath:D.path,avatarURL:L.avatarUrl,userLogin:L.login,viewerCanApplySuggestion:L.viewerCanApplySuggestion}):(0,i.jsx)(re,{…J})}),N[39]=D.path,N[40]=B,N[41]=J,N[42]=R,N[43]=K,N[44]=L.avatarUrl,N[45]=L.login,N[46]=L.viewerCanApplySuggestion,N[47]=j):j=N[47],N[48]!==S||N[49]!==T||N[50]!==Z||N[51]!==Q||N[52]!==v||N[53]!==y||N[54]!==j||N[55]!==U||N[56]!==z?(C=(0,i.jsx)(“table”,{“aria-label”:z,onKeyDown:Z,ref:k,className:v,”data-block-diff-cell-selection”:T,”data-diff-anchor”:S,”data-tab-size”:U,”data-paste-markdown-skip”:!0,onCopy:Q,role:”grid”,style:y,children:j}),N[48]=S,N[49]=T,N[50]=Z,N[51]=Q,N[52]=v,N[53]=y,N[54]=j,N[55]=U,N[56]=z,N[57]=C):C=N[57],N[58]!==x||N[59]!==C?(w=(0,i.jsxs)(i.Fragment,{children:[x,C]}),N[58]=x,N[59]=C,N[60]=w):w=N[60],w}:function({diffAnchor:e,viewerData:t,diffEntryData:n,copilotChatReference:a,hasExpandedAllRanges:r,isSplitView:s,subjectId:o}){let d=(0,l.useRef)(null),{clearSelectedLines:c}=Y(),[u,m]=(0,l.useState)(null),[f,h]=(0,l.useState)(!1),p=n.newTreeEntry?.lineCount??n.oldTreeEntry?.lineCount??0,x=(0,e4.G7)(“pr_simple_diffs”),v=(0,l.useMemo)(()=>{let e=n.diffLines[n.diffLines.length-1];return e?.blobLineNumber&&e.blobLineNumber{if(!d.current||!e.target)return;let t=e.target;!d.current.contains(t)&&(t.closest(“td.diff-line-number”)||t.closest(“[data-add-comment-button]”))&&C()&&(c(),ej())},[c,C]);(0,l.useEffect)(()=>(g.XC?.addEventListener(“mousedown”,w),()=>{g.XC?.removeEventListener(“mousedown”,w)}),[w]);let N=(0,l.useMemo)(()=>{let e,t=n.status,i=n.oldTreeEntry?.path,a=n.newTreeEntry?.path;if(i||a)return e=”RENAMED”===t?`${i} renamed to ${a}`:”DELETED”===t||”REMOVED”===t?i:a,`Diff for: ${e}`},[n]),S=(0,e2.c7)(v),L=(0,l.useCallback)(e=>{m(e)},[m]),D=(0,l.useCallback)(e=>{if(e.shiftKey&&e.metaKey&&”ArrowLeft”===e.key&&!r&&e.target?.getAttribute(“role”)===”gridcell”){let e=document.querySelector(`.js-expand-all-difflines-button[data-file-path=”${n.path}”]`);e?.dispatchEvent(new MouseEvent(“click”,{bubbles:!0,cancelable:!0}))}},[r,n.path]),I=(0,l.useCallback)(e=>{let t=document.getSelection();if(t){let n=[];for(let e=0;ev.some(e=>(0,tq.Y)(e.text)),[v]),R={diffHasHiddenUnicodeCharacters:_,diffLines:v,fileAnchor:e,fileLineCount:p,filePath:n.path,handleDiffSideCellSelectionBlocking:L,showHiddenUnicode:f,tableRef:d,copilotChatReference:a,subjectId:o,viewerData:t};return(0,i.jsxs)(i.Fragment,{children:[_&&(0,i.jsx)(ra.a,{isShown:f,toggleShowHiddenCharacters:()=>h(!f)}),(0,i.jsx)(“table”,{“aria-label”:N,onKeyDown:D,ref:d,className:(0,b.$)(“tab-size”,”width-full”,rn,{[ri]:”compact”===y}),”data-block-diff-cell-selection”:u,”data-diff-anchor”:e,”data-tab-size”:j,”data-paste-markdown-skip”:!0,onCopy:I,role:”grid”,style:{“–line-number-cell-width”:`${S}px`,”–line-number-cell-width-unified”:`${2*parseFloat(S)}px`},children:s?(0,i.jsx)(e1.wj,{lineWidth:S,children:x?(0,i.jsx)(rp,{diffLines:v,filePath:n.path,avatarURL:t.avatarUrl,userLogin:t.login,viewerCanApplySuggestion:t.viewerCanApplySuggestion}):(0,i.jsx)(a8,{…R})}):(0,i.jsx)(e1.Qe,{lineWidth:S,children:x?(0,i.jsx)(ru,{diffLines:v,filePath:n.path,avatarURL:t.avatarUrl,userLogin:t.login,viewerCanApplySuggestion:t.viewerCanApplySuggestion}):(0,i.jsx)(re,{…R})})})]})};function rv(e){return(0,tq.Y)(e.text)}try{rg.displayName||(rg.displayName=”PlainTextStatus”)}catch{}try{rx.displayName||(rx.displayName=”DiffLines”)}catch{}try{rb.displayName||(rb.displayName=”CodeDiffLines”)}catch{}var ry=n(8431),rj=n(46251),rC=n(78049);let rw=”SubmoduleDiff-module__filesActionList–sbPQt”,rN=”SubmoduleDiff-module__fileRowLinkItem–Z1ES5″,rS=”SubmoduleDiff-module__path–hB1wm”,rL=”SubmoduleDiff-module__fileRow–Y9n2E”,rD=”SubmoduleDiff-module__linesAdded–tJqtP”,rI=”SubmoduleDiff-module__linesDeleted–nr9cp”,r_=(0,a.GV)()?function(e){let t,n,a,s,l,o,d=(0,r.c)(28),{submodule:u}=e,{basePath:m,changedFiles:f,contentsUrl:h,newCommitOid:p,oldCommitOid:g,status:x,submoduleUrl:b}=u,v=u.summary.length>0&&u.contentsUrl&&”MODIFIED”===x;switch(x){case”ADDED”:{let e;d[0]!==h||d[1]!==p?(e=(0,i.jsx)(rk,{commitOid:p,contentsUrl:h,type:”added”}),d[0]=h,d[1]=p,d[2]=e):e=d[2],t=e;break}case”DELETED”:case”REMOVED”:{let e;d[3]!==h||d[4]!==g?(e=(0,i.jsx)(rk,{commitOid:g,contentsUrl:h,type:”deleted”}),d[3]=h,d[4]=g,d[5]=e):e=d[5],t=e;break}default:{let e;d[6]!==f||d[7]!==h||d[8]!==p||d[9]!==g?(e=(0,i.jsx)(rE,{newCommitOid:p,oldCommitOid:g,changedFiles:f,contentsUrl:h}),d[6]=f,d[7]=h,d[8]=p,d[9]=g,d[10]=e):e=d[10],t=e}}let y=t,j=`px-3 py-2 ${v?”border-bottom bgColor-muted”:””}`;return d[11]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(c.FileSubmoduleIcon,{className:”fgColor-muted mr-2″,size:16}),d[11]=n):n=d[11],d[12]!==m||d[13]!==b?(a=(0,i.jsx)(rR,{basePath:m,submoduleUrl:b}),d[12]=m,d[13]=b,d[14]=a):a=d[14],d[15]!==y||d[16]!==j||d[17]!==a?(s=(0,i.jsxs)(“div”,{className:j,children:[n,a,y]}),d[15]=y,d[16]=j,d[17]=a,d[18]=s):s=d[18],d[19]!==h||d[20]!==p||d[21]!==g||d[22]!==v||d[23]!==u.summary?(l=v&&(0,i.jsx)(eO.l,{className:rw,showDividers:!0,variant:”full”,children:u.summary.map(e=>(0,i.jsx)(rT,{compareUrl:`${h}/compare/${g}…${p}`,linesAdded:e.linesAdded,linesDeleted:e.linesDeleted,path:e.path,pathDigest:e.pathDigest,status:e.status},e.pathDigest))}),d[19]=h,d[20]=p,d[21]=g,d[22]=v,d[23]=u.summary,d[24]=l):l=d[24],d[25]!==s||d[26]!==l?(o=(0,i.jsxs)(“div”,{children:[s,l]}),d[25]=s,d[26]=l,d[27]=o):o=d[27],o}:function({submodule:e}){let{basePath:t,changedFiles:n,contentsUrl:a,newCommitOid:r,oldCommitOid:s,status:o,submoduleUrl:d}=e,u=e.summary.length>0&&e.contentsUrl&&”MODIFIED”===o,m=(0,l.useMemo)(()=>{switch(o){case”ADDED”:return(0,i.jsx)(rk,{commitOid:r,contentsUrl:a,type:”added”});case”DELETED”:case”REMOVED”:return(0,i.jsx)(rk,{commitOid:s,contentsUrl:a,type:”deleted”});default:return(0,i.jsx)(rE,{newCommitOid:r,oldCommitOid:s,changedFiles:n,contentsUrl:a})}},[r,s,o,n,a]);return(0,i.jsxs)(“div”,{children:[(0,i.jsxs)(“div”,{className:`px-3 py-2 ${u?”border-bottom bgColor-muted”:””}`,children:[(0,i.jsx)(c.FileSubmoduleIcon,{className:”fgColor-muted mr-2″,size:16}),(0,i.jsx)(rR,{basePath:t,submoduleUrl:d}),m]}),u&&(0,i.jsx)(eO.l,{className:rw,showDividers:!0,variant:”full”,children:e.summary.map(e=>(0,i.jsx)(rT,{compareUrl:`${a}/compare/${s}…${r}`,linesAdded:e.linesAdded,linesDeleted:e.linesDeleted,path:e.path,pathDigest:e.pathDigest,status:e.status},e.pathDigest))})]})},rR=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(5),{basePath:s,submoduleUrl:l}=e;return a[0]!==s||a[1]!==l?(t=l?(0,i.jsx)(e3.A,{inline:!0,href:l,children:s}):s,a[0]=s,a[1]=l,a[2]=t):t=a[2],a[3]!==t?(n=(0,i.jsxs)(i.Fragment,{children:[“Submodule”,” “,t,” “]}),a[3]=t,a[4]=n):n=a[4],n}:function({basePath:e,submoduleUrl:t}){return(0,i.jsxs)(i.Fragment,{children:[“Submodule”,” “,t?(0,i.jsx)(e3.A,{inline:!0,href:t,children:e}):e,” “]})};function rA(e){return e.slice(0,7)}let rk=(0,a.GV)()?function(e){let t=(0,r.c)(13),{commitOid:n,contentsUrl:a,type:s}=e,l=void 0===n?””:n,o=”added”===s?”added at”:”deleted from”;if(a){let e,n,r,s=`${a}/tree/${l}`;return t[0]!==l?(e=rA(l),t[0]=l,t[1]=e):e=t[1],t[2]!==s||t[3]!==e?(n=(0,i.jsx)(e3.A,{inline:!0,href:s,children:e}),t[2]=s,t[3]=e,t[4]=n):n=t[4],t[5]!==n||t[6]!==o?(r=(0,i.jsxs)(i.Fragment,{children:[o,” “,n]}),t[5]=n,t[6]=o,t[7]=r):r=t[7],r}{let e,n;return t[8]!==l?(e=rA(l),t[8]=l,t[9]=e):e=t[9],t[10]!==e||t[11]!==o?(n=(0,i.jsxs)(i.Fragment,{children:[o,” “,e]}),t[10]=e,t[11]=o,t[12]=n):n=t[12],n}}:function({commitOid:e=””,contentsUrl:t,type:n}){let a=”added”===n?”added at”:”deleted from”;return t?(0,i.jsxs)(i.Fragment,{children:[a,” “,(0,i.jsx)(e3.A,{inline:!0,href:`${t}/tree/${e}`,children:rA(e)})]}):(0,i.jsxs)(i.Fragment,{children:[a,” “,rA(e)]})},rE=(0,a.GV)()?function(e){let t,n,a,s=(0,r.c)(12),{newCommitOid:l,oldCommitOid:o,changedFiles:d,contentsUrl:c}=e,u=void 0===l?””:l,m=void 0===o?””:o,f=void 0===d?0:d;s[0]!==f||s[1]!==c||s[2]!==u||s[3]!==m?(t=f>0&&c?`${f} ${1===f?”file”:”files”}`:`from ${rA(m)} to ${rA(u)}`,s[0]=f,s[1]=c,s[2]=u,s[3]=m,s[4]=t):t=s[4];let h=t;return s[5]!==h||s[6]!==c||s[7]!==u||s[8]!==m?(n=c?(0,i.jsx)(e3.A,{inline:!0,href:`${c}/compare/${m}…${u}`,children:h}):h,s[5]=h,s[6]=c,s[7]=u,s[8]=m,s[9]=n):n=s[9],s[10]!==n?(a=(0,i.jsxs)(i.Fragment,{children:[“updated”,” “,n]}),s[10]=n,s[11]=a):a=s[11],a}:function({newCommitOid:e=””,oldCommitOid:t=””,changedFiles:n=0,contentsUrl:a}){let r=n>0&&a?`${n} ${1===n?”file”:”files”}`:`from ${rA(t)} to ${rA(e)}`;return(0,i.jsxs)(i.Fragment,{children:[“updated”,” “,a?(0,i.jsx)(e3.A,{inline:!0,href:`${a}/compare/${t}…${e}`,children:r}):r]})},rT=(0,a.GV)()?function(e){let t,n,a,l,o,d,c=(0,r.c)(16),{compareUrl:u,linesAdded:m,linesDeleted:f,path:h,pathDigest:p,status:g}=e,x=`${u}#diff-${p}`;return c[0]!==g?(t=(0,i.jsx)(rC.E,{status:g}),c[0]=g,c[1]=t):t=c[1],c[2]!==h?(n=(0,i.jsx)(“span”,{className:rS,children:h}),c[2]=h,c[3]=n):n=c[3],c[4]!==m||c[5]!==f?(a=(m>0||f>0)&&(0,i.jsxs)(“div”,{className:”d-flex flex-shrink-0 gap-1 flex-nowrap”,children:[(0,i.jsx)(“div”,{className:rD,children:m>0&&(0,i.jsxs)(s.C,{isAddition:!0,children:[“+”,rO(m)]})}),(0,i.jsx)(“div”,{className:rI,children:f>0&&(0,i.jsxs)(s.C,{isAddition:!1,children:[“-“,rO(f)]})})]}),c[4]=m,c[5]=f,c[6]=a):a=c[6],c[7]!==n||c[8]!==a?(l=(0,i.jsxs)(“div”,{className:”d-flex gap-1 flex-justify-between width-full”,children:[n,a]}),c[7]=n,c[8]=a,c[9]=l):l=c[9],c[10]!==t||c[11]!==l?(o=(0,i.jsxs)(rj.B,{gap:”condensed”,direction:”horizontal”,align:”center”,className:rL,children:[t,l]}),c[10]=t,c[11]=l,c[12]=o):o=c[12],c[13]!==x||c[14]!==o?(d=(0,i.jsx)(eO.l.LinkItem,{href:x,className:rN,children:o}),c[13]=x,c[14]=o,c[15]=d):d=c[15],d}:function({compareUrl:e,linesAdded:t,linesDeleted:n,path:a,pathDigest:r,status:l}){return(0,i.jsx)(eO.l.LinkItem,{href:`${e}#diff-${r}`,className:rN,children:(0,i.jsxs)(rj.B,{gap:”condensed”,direction:”horizontal”,align:”center”,className:rL,children:[(0,i.jsx)(rC.E,{status:l}),(0,i.jsxs)(“div”,{className:”d-flex gap-1 flex-justify-between width-full”,children:[(0,i.jsx)(“span”,{className:rS,children:a}),(t>0||n>0)&&(0,i.jsxs)(“div”,{className:”d-flex flex-shrink-0 gap-1 flex-nowrap”,children:[(0,i.jsx)(“div”,{className:rD,children:t>0&&(0,i.jsxs)(s.C,{isAddition:!0,children:[“+”,rO(t)]})}),(0,i.jsx)(“div”,{className:rI,children:n>0&&(0,i.jsxs)(s.C,{isAddition:!1,children:[“-“,rO(n)]})})]})]})]})})};function rO(e){return e>999?`${(e/1e3).toFixed(1)}k`:e.toLocaleString()}try{r_.displayName||(r_.displayName=”SubmoduleDiff”)}catch{}try{rR.displayName||(rR.displayName=”SubmodulePath”)}catch{}try{rk.displayName||(rk.displayName=”SubmoduleCommitChange”)}catch{}try{rE.displayName||(rE.displayName=”SubmoduleModified”)}catch{}try{rT.displayName||(rT.displayName=”SubmoduleFileRow”)}catch{}let rP=({hasCopilotAccess:e,isBinary:t,isSubmodule:n,path:i,repository:a,status:r})=>!!e&&!t&&!n&&!!i&&”DELETED”!==r&&”REMOVED”!==r&&!!a.id&&!!a.name&&!!a.ownerLogin&&!0,rF=({newCommitOid:e,newTreeEntry:t,oldCommitOid:n,oldTreeEntry:i,path:a,pathDigest:r,repository:s})=>{let l=n&&e?(0,n1.IO9)({repo:s,commitish:n,action:”raw”,path:a}):””;return{baseFile:r$({path:i?.path,oid:n,repository:s}),headFile:r$({path:t?.path,oid:e,repository:s}),baseBranchRef:n,id:`#diff-${r}`,type:”file-diff”,url:l}},r$=({path:e,oid:t,repository:n})=>e&&t?{type:”file”,url:(0,n1.IO9)({repo:n,commitish:t,action:”raw”,path:e}),path:e,repoID:n.id,repoName:n.name,repoOwner:n.ownerLogin,ref:t,commitOID:t}:null,rM=(0,a.GV)()?function(e){let t,n=(0,r.c)(8),{isBinary:i,isSubmodule:a,path:s,status:l,repository:o,newCommitOid:d,newTreeEntry:c,oldCommitOid:u,oldTreeEntry:m,pathDigest:f,hasCopilotAccess:h}=e;e:{let e;if(!rP({isBinary:i,isSubmodule:a,path:s,status:l,repository:o,hasCopilotAccess:h})){t=void 0;break e}n[0]!==d||n[1]!==c||n[2]!==u||n[3]!==m||n[4]!==s||n[5]!==f||n[6]!==o?(e=rF({newCommitOid:d,newTreeEntry:c,oldCommitOid:u,oldTreeEntry:m,path:s,pathDigest:f,repository:o}),n[0]=d,n[1]=c,n[2]=u,n[3]=m,n[4]=s,n[5]=f,n[6]=o,n[7]=e):e=n[7],t=e}return t}:function({isBinary:e,isSubmodule:t,path:n,status:i,repository:a,newCommitOid:r,newTreeEntry:s,oldCommitOid:o,oldTreeEntry:d,pathDigest:c,hasCopilotAccess:u}){return(0,l.useMemo)(()=>{if(rP({isBinary:e,isSubmodule:t,path:n,status:i,repository:a,hasCopilotAccess:u}))return rF({newCommitOid:r,newTreeEntry:s,oldCommitOid:o,oldTreeEntry:d,path:n,pathDigest:c,repository:a})},[r,s,o,d,c,a,u,e,t,n,i])},rB=”FileReviewThread-module__ReviewThreadContainer–InwxI”,rV=”FileReviewThread-module__ReviewThreadHeading–oFg3s”,rU=”FileReviewThread-module__ReviewThreadInnerContainer–jYE3S”,rG=”FileReviewThread-module__SpinnerWrapper–zQOoj”,rH=(0,a.GV)()?function(e){let t,n,a,s,d,u,f,h,p,g,x,v,y,j,C,w,N,S,L,D,I,_,R,A,k,E,T=(0,r.c)(69);if(T[0]!==e){let{fileAnchor:i,filePath:r,thread:l,isFirstThread:o,ghostUser:c,manuallyUpdateCommentsWithThisThreadId:u,…m}=e;t=r,d=l,a=o,n=c,s=m,T[0]=e,T[1]=t,T[2]=n,T[3]=a,T[4]=s,T[5]=d}else t=T[1],n=T[2],a=T[3],s=T[4],d=T[5];let O=(0,l.useRef)(null);T[6]===Symbol.for(“react.memo_cache_sentinel”)?(u=(0,nO.A)(“localStorage”),T[6]=u):u=T[6];let P=u,F=d?.isResolved,[$,M]=(0,l.useState)(“”),[B,V]=(0,l.useState)(F??!1);T[7]!==F||T[8]!==d.id?(f=()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${d.id}`);null!==e?V(JSON.parse(e)):F&&V(!0)},h=[F,d.id],T[7]=F,T[8]=d.id,T[9]=f,T[10]=h):(f=T[9],h=T[10]),(0,l.useEffect)(f,h),T[11]!==B||T[12]!==d.id?(p=()=>{window.requestAnimationFrame(()=>{P.setItem(`reviewThreadIsCollapsed_${d.id}`,JSON.stringify(!B))}),V(rz)},T[11]=B,T[12]=d.id,T[13]=p):p=T[13];let U=p,{sendAnalyticsEvent:G}=(0,tz.s)(),{mutate:H}=(0,nY.H)(t,o.zW);T[14]!==H||T[15]!==G||T[16]!==d?(g=()=>{d&&!d.isResolved&&(H({threadId:d.id},{onError:()=>M(“Failed to resolve thread”),onSuccess:()=>{V(!0),P.removeItem(`reviewThreadIsCollapsed_${d.id}`)}}),G(“comments.resolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},T[14]=H,T[15]=G,T[16]=d,T[17]=g):g=T[17];let q=g,{mutate:z}=(0,n0.i)(t,o.zW);T[18]!==G||T[19]!==d||T[20]!==z?(x=()=>{d&&(z({threadId:d.id},{onError:()=>M(“Failed to unresolve thread”),onSuccess:()=>{V(!1),P.removeItem(`reviewThreadIsCollapsed_${d.id}`)}}),G(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},T[18]=G,T[19]=d,T[20]=z,T[21]=x):x=T[21];let K=x;if(!d||!(d.commentsData?.comments&&d.commentsData.comments.length>0))return null;let W=d?.commentsData?.comments[0]?.reviewVariantType===nj.hH.Automated?d.commentsData?.comments[0]?.automatedComment:null,Z=W&&W.dismissable,Q=W&&W.source===nj.vk.LicenseCompliance,X=!!d.isResolved;T[22]===Symbol.for(“react.memo_cache_sentinel”)?(v=(0,n2.M3)(),T[22]=v):v=T[22];let J=v;T[23]!==d.commentsData?.comments?(y=J&&d.commentsData?.comments?.some(rq),T[23]=d.commentsData?.comments,T[24]=y):y=T[24];let Y=y,ee=d.commentsData?.comments[0]?.createdAt,et=d.commentsData?.comments[0]?.author?.login??”Unknown Author”,en=`${F?”Unresolve”:”Resolve”} comment`;if(ee){let e;T[25]!==ee?(e=(0,nE.C)(new Date(ee)),T[25]=ee,T[26]=e):e=T[26];let t=e;en=`${F?”Unresolve”:”Resolve”} ${et}’s comment, ${t}`}T[27]===Symbol.for(“react.memo_cache_sentinel”)?(j=(0,i.jsx)(nM,{}),T[27]=j):j=T[27],T[28]===Symbol.for(“react.memo_cache_sentinel”)?(C=(0,b.$)(“px-1″,rB),T[28]=C):C=T[28];let ei=B?”Expand comment”:”Collapse comment”,ea=B?c.ChevronRightIcon:c.ChevronDownIcon;return T[29]!==U||T[30]!==a||T[31]!==ei||T[32]!==ea?(w=(0,i.jsx)(m.K,{“aria-label”:ei,icon:ea,size:”small”,variant:”invisible”,onClick:U,”data-is-first-collapse-button”:a}),T[29]=U,T[30]=a,T[31]=ei,T[32]=ea,T[33]=w):w=T[33],T[34]===Symbol.for(“react.memo_cache_sentinel”)?(N=(0,i.jsx)(“h2″,{className:rV,children:”Comment on file”}),T[34]=N):N=T[34],T[35]!==d.positioning?.isOutdated?(S=d.positioning?.isOutdated&&(0,i.jsx)(nP.A,{variant:”secondary”,children:”Outdated”}),T[35]=d.positioning?.isOutdated,T[36]=S):S=T[36],T[37]!==X?(L=X&&(0,i.jsx)(nP.A,{variant:”secondary”,children:”Resolved”}),T[37]=X,T[38]=L):L=T[38],T[39]!==S||T[40]!==L?(D=(0,i.jsxs)(“div”,{className:rU,children:[S,L]}),T[39]=S,T[40]=L,T[41]=D):D=T[41],T[42]!==w||T[43]!==D?(I=(0,i.jsxs)(“div”,{className:C,children:[w,N,D]}),T[42]=w,T[43]=D,T[44]=I):I=T[44],T[45]===Symbol.for(“react.memo_cache_sentinel”)?(_=(0,i.jsxs)(“div”,{className:rG,children:[(0,i.jsx)(eQ.A,{}),(0,i.jsx)(“p”,{children:”Loading comments”})]}),T[45]=_):_=T[45],T[46]!==$?(R=$&&(0,i.jsxs)(nF.A,{variant:”danger”,className:”m-2″,children:[(0,i.jsx)(c.StopIcon,{className:”mr-2″}),$]}),T[46]=$,T[47]=R):R=T[47],T[48]!==W||T[49]!==Z||T[50]!==t||T[51]!==n||T[52]!==q||T[53]!==K||T[54]!==B||T[55]!==Y||T[56]!==F||T[57]!==X||T[58]!==Q||T[59]!==en||T[60]!==s||T[61]!==d?(A=!B&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(nJ,{lineMarkersKey:o.zW,batchingEnabled:!0,filePath:t,gridCellId:`${t}-file-level-markers`,isInlineComment:!1,thread:d,shouldLimitHeight:!1,…s,ghostUser:n}),Y&&!Z&&!Q&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center p-2 border-top flex-wrap”,children:[(0,i.jsx)(eI.Q,{“aria-label”:en,onClick:X?K:q,className:”mr-2″,children:F?”Unresolve comment”:”Resolve comment”}),X&&d.resolvedBy&&(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[(0,i.jsx)(“b”,{children:d.resolvedBy}),” marked this comment as resolved”]})]}),Z&&(0,i.jsx)(n7,{automatedComment:W,thread:d,filePath:t,lineMarkersKey:o.zW,setErrorMessage:M,setIsCollapsed:V,safeLocalStorage:P})]}),T[48]=W,T[49]=Z,T[50]=t,T[51]=n,T[52]=q,T[53]=K,T[54]=B,T[55]=Y,T[56]=F,T[57]=X,T[58]=Q,T[59]=en,T[60]=s,T[61]=d,T[62]=A):A=T[62],T[63]!==R||T[64]!==A?(k=(0,i.jsxs)(l.Suspense,{fallback:_,children:[R,A]}),T[63]=R,T[64]=A,T[65]=k):k=T[65],T[66]!==I||T[67]!==k?(E=(0,i.jsx)(nT.t,{fallback:j,children:(0,i.jsxs)(“div”,{className:”rounded-2 bgColor-default”,ref:O,children:[I,k]})}),T[66]=I,T[67]=k,T[68]=E):E=T[68],E}:function({fileAnchor:e,filePath:t,thread:n,isFirstThread:a,ghostUser:r,manuallyUpdateCommentsWithThisThreadId:s,…d}){let u=(0,l.useRef)(null),f=(0,nO.A)(“localStorage”),h=n?.isResolved,[p,g]=(0,l.useState)(“”),[x,v]=(0,l.useState)(h??!1);(0,l.useEffect)(()=>{let e=localStorage.getItem(`reviewThreadIsCollapsed_${n.id}`);null!==e?v(JSON.parse(e)):h&&v(!0)},[h,n.id]);let{sendAnalyticsEvent:y}=(0,tz.s)(),{mutate:j}=(0,nY.H)(t,o.zW),{mutate:C}=(0,n0.i)(t,o.zW);if(!n||!(n.commentsData?.comments&&n.commentsData.comments.length>0))return null;let w=n?.commentsData?.comments[0]?.reviewVariantType===nj.hH.Automated?n.commentsData?.comments[0]?.automatedComment:null,N=w&&w.dismissable,S=w&&w.source===nj.vk.LicenseCompliance,L=!!n.isResolved,D=(0,n2.M3)()&&n.commentsData?.comments?.some(e=>e.state?.toUpperCase()!==”PENDING”),I=n.commentsData?.comments[0]?.createdAt,_=n.commentsData?.comments[0]?.author?.login??”Unknown Author”,R=`${h?”Unresolve”:”Resolve”} comment`;if(I){let e=(0,nE.C)(new Date(I));R=`${h?”Unresolve”:”Resolve”} ${_}’s comment, ${e}`}return(0,i.jsx)(nT.t,{fallback:(0,i.jsx)(nM,{}),children:(0,i.jsxs)(“div”,{className:”rounded-2 bgColor-default”,ref:u,children:[(0,i.jsxs)(“div”,{className:(0,b.$)(“px-1”,rB),children:[(0,i.jsx)(m.K,{“aria-label”:x?”Expand comment”:”Collapse comment”,icon:x?c.ChevronRightIcon:c.ChevronDownIcon,size:”small”,variant:”invisible”,onClick:()=>{window.requestAnimationFrame(()=>{f.setItem(`reviewThreadIsCollapsed_${n.id}`,JSON.stringify(!x))}),v(e=>!e)},”data-is-first-collapse-button”:a}),(0,i.jsx)(“h2″,{className:rV,children:”Comment on file”}),(0,i.jsxs)(“div”,{className:rU,children:[n.positioning?.isOutdated&&(0,i.jsx)(nP.A,{variant:”secondary”,children:”Outdated”}),L&&(0,i.jsx)(nP.A,{variant:”secondary”,children:”Resolved”})]})]}),(0,i.jsxs)(l.Suspense,{fallback:(0,i.jsxs)(“div”,{className:rG,children:[(0,i.jsx)(eQ.A,{}),(0,i.jsx)(“p”,{children:”Loading comments”})]}),children:[p&&(0,i.jsxs)(nF.A,{variant:”danger”,className:”m-2″,children:[(0,i.jsx)(c.StopIcon,{className:”mr-2″}),p]}),!x&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(nJ,{lineMarkersKey:o.zW,batchingEnabled:!0,filePath:t,gridCellId:`${t}-file-level-markers`,isInlineComment:!1,thread:n,shouldLimitHeight:!1,…d,ghostUser:r}),D&&!N&&!S&&(0,i.jsxs)(“div”,{className:”d-flex flex-items-center p-2 border-top flex-wrap”,children:[(0,i.jsx)(eI.Q,{“aria-label”:R,onClick:L?()=>{n&&(C({threadId:n.id},{onError:()=>g(“Failed to unresolve thread”),onSuccess:()=>{v(!1),f.removeItem(`reviewThreadIsCollapsed_${n.id}`)}}),y(“comments.unresolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))}:()=>{n&&!n.isResolved&&(j({threadId:n.id},{onError:()=>g(“Failed to resolve thread”),onSuccess:()=>{v(!0),f.removeItem(`reviewThreadIsCollapsed_${n.id}`)}}),y(“comments.resolve_thread”,”RESOLVE_CONVERSATION_BUTTON”))},className:”mr-2″,children:h?”Unresolve comment”:”Resolve comment”}),L&&n.resolvedBy&&(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[(0,i.jsx)(“b”,{children:n.resolvedBy}),” marked this comment as resolved”]})]}),N&&(0,i.jsx)(n7,{automatedComment:w,thread:n,filePath:t,lineMarkersKey:o.zW,setErrorMessage:g,setIsCollapsed:v,safeLocalStorage:f})]})]})]})})};function rq(e){return e.state?.toUpperCase()!==”PENDING”}function rz(e){return!e}try{rH.displayName||(rH.displayName=”FileReviewThread”)}catch{}let rK=(0,a.GV)()?function(e){let t,n,a,s,o,d,c,u=(0,r.c)(19);if(u[0]!==e){let{conversationListThreads:i,filePath:r,manuallyUpdateCommentsWithThisThreadId:l,ghostUser:o,…d}=e;t=i,n=r,a=o,s=d,u[0]=e,u[1]=t,u[2]=n,u[3]=a,u[4]=s}else t=u[1],n=u[2],a=u[3],s=u[4];let m=(0,l.useRef)(null);if(u[5]!==t?(o={containerRef:m,markers:t,disabled:!1,focusInStrategy:”closest”},u[5]=t,u[6]=o):o=u[6],nh(o),u[7]!==t||u[8]!==n||u[9]!==a||u[10]!==s){let e;u[12]!==t.length||u[13]!==n||u[14]!==a||u[15]!==s?(e=(e,r)=>(0,i.jsx)(“div”,{className:(0,b.$)(“mt-1 border rounded-2 color-border-default color-shadow-small”,r===t.length-1?”mb-1″:”mb-2″),”data-first-marker”:0===r,”data-marker-id”:`${e.id}`,tabIndex:0,children:(0,i.jsx)(rH,{viewerData:s.viewerData,filePath:n,thread:e,ghostUser:a},e.id)},`review-thread-${e.id}`),u[12]=t.length,u[13]=n,u[14]=a,u[15]=s,u[16]=e):e=u[16],d=t.map(e),u[7]=t,u[8]=n,u[9]=a,u[10]=s,u[11]=d}else d=u[11];return u[17]!==d?(c=(0,i.jsx)(“div”,{className:”d-flex pt-1 px-1″,children:(0,i.jsx)(“div”,{className:nA,ref:m,children:d})}),u[17]=d,u[18]=c):c=u[18],c}:function({conversationListThreads:e,filePath:t,manuallyUpdateCommentsWithThisThreadId:n,ghostUser:a,…r}){let s=(0,l.useRef)(null);return nh({containerRef:s,markers:e,disabled:!1,focusInStrategy:”closest”}),(0,i.jsx)(“div”,{className:”d-flex pt-1 px-1″,children:(0,i.jsx)(“div”,{className:nA,ref:s,children:e.map((n,s)=>(0,i.jsx)(“div”,{className:(0,b.$)(“mt-1 border rounded-2 color-border-default color-shadow-small”,s===e.length-1?”mb-1″:”mb-2″),”data-first-marker”:0===s,”data-marker-id”:`${n.id}`,tabIndex:0,children:(0,i.jsx)(rH,{viewerData:r.viewerData,filePath:t,thread:n,ghostUser:a},n.id)},`review-thread-${n.id}`))})})};try{rK.displayName||(rK.displayName=”FileMarkers”)}catch{}let rW=new Set,rZ=”b:0-l:null-r:null”;function rQ(e){switch(e){case”COMMIT”:return”Due to the large number of changes in the selected commit, only one file is being shown at a time.”;case”RANGE”:return”Due to the large number of changes in the selected commit range, only one file is being shown at a time.”;default:return”Due to the large number of changes in this pull request, only one file is being shown at a time.”}}let rX=(0,l.forwardRef)((0,a.GV)()?function(e,t){let n,a,d,u,m,f,h,p,x,v,y,j,C,w,N,S,L,D,_,R=(0,r.c)(133),{addFileCommentButtonRef:A,collapsed:k,currentUser:E,diffLines:T,diffManuallyExpanded:O,diffSize:P,helpUrl:F,estimatedDiffHeight:M,fileComments:B,headerStickyOffset:V,hiddenFeatures:U,isAddingFileComment:G,isBinary:H,isSelected:q,isSubmodule:z,isTooBig:K,leftSideContent:W,linesAdded:Z,linesChanged:Q,linesDeleted:X,newTreeEntry:J,newCommitOid:Y,objectId:ee,oldTreeEntry:et,oldCommitOid:en,onToggleCollapse:ei,path:ea,pathDigest:er,pullRequestGlobalRelayId:es,repository:el,richDiffState:eo,rightSideContent:ed,setIsAddingFileComment:ec,hasExpandedAllRanges:eu,expandAllContextLines:em,canExpandOrCollapseLines:ef,status:eh,submodule:ep,truncatedReason:eg,addInjectedContextLines:ex,loadDiff:eb}=e,ev=void 0===M?0:M,ey=void 0===U?rW:U,ej=void 0!==q&&q,eC=z&&!!ep,ew=!eC&&!eo?.showRichDiff,[eN,eS]=(0,l.useState)(O),eL=(0,I.j5)(),{comparisonView:eD}=(0,I.L3)();R[0]!==E.hasCopilotAccess||R[1]!==H||R[2]!==z||R[3]!==Y||R[4]!==J||R[5]!==en||R[6]!==et||R[7]!==ea||R[8]!==er||R[9]!==el||R[10]!==eh?(n={isBinary:H,isSubmodule:z,path:ea,status:eh,repository:el,newCommitOid:Y,newTreeEntry:J,oldCommitOid:en,oldTreeEntry:et,pathDigest:er,hasCopilotAccess:E.hasCopilotAccess},R[0]=E.hasCopilotAccess,R[1]=H,R[2]=z,R[3]=Y,R[4]=J,R[5]=en,R[6]=et,R[7]=ea,R[8]=er,R[9]=el,R[10]=eh,R[11]=n):n=R[11];let eI=rM(n);R[12]!==eb?(a=async()=>{await eb(),eS(!0)},R[12]=eb,R[13]=a):a=R[13];let e_=a,{baseOid:eR,headOid:eA}=(0,I.E4)(),ek=(0,eG.u)(“cotd_ui”);R[14]===Symbol.for(“react.memo_cache_sentinel”)?(d=(0,e4.G7)(“pr_simple_diffs”),R[14]=d):d=R[14];let eE=d,{effectiveRange:eT}=(0,I.L3)(),{mutate:eO}=t5();R[15]!==ec?(u=()=>{ec(!0)},R[15]=ec,R[16]=u):u=R[16];let eP=u;R[17]!==eP?(m={F0:{startNewComment:eP,diffLineKey:rZ}},R[17]=eP,R[18]=m):m=R[18];let eF=m;R[19]!==ek||R[20]!==eO||R[21]!==eT||R[22]!==eA||R[23]!==ea||R[24]!==ec||R[25]!==eR?(f=e=>{let{onCompleted:t,onError:n,submitBatch:i,text:a}=e;ek?eO(new ReviewCommentFactory({filePath:ea,effectiveDiffRange:eT,submitBatch:i,text:a}).fileRequestData(),{onError:n,onSuccess:e=>{t?.(e.thread.id,e.comment.databaseId),ec(!1)}}):eO({text:a,path:ea,submitBatch:i,subjectType:o.Wr.File,comparisonEndOid:eA,comparisonStartOid:eR},{onError:n,onSuccess:e=>{t?.(e.thread.id,e.comment.databaseId),ec(!1)}})},R[19]=ek,R[20]=eO,R[21]=eT,R[22]=eA,R[23]=ea,R[24]=ec,R[25]=eR,R[26]=f):f=R[26];let e$=f;R[27]!==A||R[28]!==ec?(h=()=>{ec(!1),A?.current?.focus()},R[27]=A,R[28]=ec,R[29]=h):h=R[29];let eM=h,eB=E?.avatarURL??””,eV=E?.splitPreference,eU=E?.login??””,eH=E?.lineSpacing,ez=E?.shouldDisplayComments,eK=E?.shouldDisplayEditOptions,eW=E?.tabSize??4,eZ=E?.canComment,eQ=E?.canApplySuggestion;R[30]!==eB||R[31]!==eV||R[32]!==eU||R[33]!==eH||R[34]!==ez||R[35]!==eK||R[36]!==eW||R[37]!==eZ||R[38]!==eQ?(p={avatarUrl:eB,diffViewPreference:eV,login:eU,lineSpacingPreference:eH,shouldDisplayComments:ez,shouldDisplayEditOptions:eK,tabSizePreference:eW,viewerCanComment:eZ,viewerCanApplySuggestion:eQ},R[30]=eB,R[31]=eV,R[32]=eU,R[33]=eH,R[34]=ez,R[35]=eK,R[36]=eW,R[37]=eZ,R[38]=eQ,R[39]=p):p=R[39];let eX=p,eJ=(0,l.useId)(),e0=`heading-${eJ}`;e:{if(“split”===new URLSearchParams(g.cg?.location.search).get(“diff”)){x=!0;break e}x=”split”===E.splitPreference}let e1=x,e2=J?.lineCount??et?.lineCount??0,e3=`diff-${er}`,e5=`diff-${er}`;R[40]===Symbol.for(“react.memo_cache_sentinel”)?(v=(0,b.$)(ry.A.diffTargetable,ry.A.diff),R[40]=v):v=R[40];let e6=`${er}_${T.length}`;R[41]!==ev?(y=eE?{contentVisibility:”auto”,containIntrinsicSize:`auto ${ev}px`}:void 0,R[41]=ev,R[42]=y):y=R[42];let e7=`${void 0===V?0:V}px`;R[43]!==e7?(j={“–header-sticky-offset”:e7},R[43]=e7,R[44]=j):j=R[44];let e8=`#diff-${er}`,e9=eo?.richDiff?.canToggleRichDiff,te=J?.mode,tt=J?.path,tn=et?.mode,ti=et?.path;R[45]!==k||R[46]!==ei?(C=e=>ei(e,!k),R[45]=k,R[46]=ei,R[47]=C):C=R[47];let ta=eo?.onToggleRichDiff,tr=eo?.showRichDiff;return R[48]!==ef||R[49]!==k||R[50]!==P||R[51]!==em||R[52]!==eu||R[53]!==e0||R[54]!==ey||R[55]!==H||R[56]!==eL||R[57]!==W||R[58]!==Z||R[59]!==Q||R[60]!==X||R[61]!==ea||R[62]!==ed||R[63]!==eh||R[64]!==e8||R[65]!==e9||R[66]!==te||R[67]!==tt||R[68]!==tn||R[69]!==ti||R[70]!==C||R[71]!==ta||R[72]!==tr?(w=(0,i.jsx)(s.B,{headingId:e0,hiddenFeatures:ey,areLinesExpanded:eu,canExpandOrCollapseLines:ef,fileLinkHref:e8,isCollapsed:k,isBinary:H,size:P,canToggleRichDiff:e9,linesAdded:Z,linesChanged:Q,linesDeleted:X,newMode:te,newPath:tt,oldMode:tn,oldPath:ti,patchStatus:eh,path:ea,onToggleExpandAllLines:em,onToggleFileCollapsed:C,onToggleDiffDisplay:ta,additionalLeftSideContent:W,rightSideContent:ed,showRichDiff:tr,isInSingleFileMode:eL}),R[48]=ef,R[49]=k,R[50]=P,R[51]=em,R[52]=eu,R[53]=e0,R[54]=ey,R[55]=H,R[56]=eL,R[57]=W,R[58]=Z,R[59]=Q,R[60]=X,R[61]=ea,R[62]=ed,R[63]=eh,R[64]=e8,R[65]=e9,R[66]=te,R[67]=tt,R[68]=tn,R[69]=ti,R[70]=C,R[71]=ta,R[72]=tr,R[73]=w):w=R[73],R[74]!==j||R[75]!==w?(N=(0,i.jsx)(“div”,{className:ry.A.diffHeaderWrapper,style:j,children:w}),R[74]=j,R[75]=w,R[76]=N):N=R[76],R[77]!==k||R[78]!==eI||R[79]!==T||R[80]!==B||R[81]!==e$||R[82]!==eu||R[83]!==F||R[84]!==G||R[85]!==H||R[86]!==e1||R[87]!==K||R[88]!==Q||R[89]!==eN||R[90]!==Y||R[91]!==J||R[92]!==ee||R[93]!==en||R[94]!==et||R[95]!==eM||R[96]!==e_||R[97]!==ea||R[98]!==er||R[99]!==es||R[100]!==eo||R[101]!==ew||R[102]!==eC||R[103]!==eh||R[104]!==ep||R[105]!==eg||R[106]!==eX?(S=k?null:(0,i.jsxs)(“div”,{className:”border position-relative rounded-bottom-2″,children:[(0,i.jsxs)(i.Fragment,{children:[B.length>0&&(0,i.jsx)(rK,{conversationListThreads:B,filePath:ea}),G&&(0,i.jsx)(“div”,{className:(0,b.$)(“border rounded-2 color-border-default m-1 rounded-2 bgColor-default”,ry.A.diffAddFileThread),children:(0,i.jsx)(eq,{batchingEnabled:!0,filePath:ea,fileLevelComment:!0,isLeftSide:void 0,viewerData:eX,onAddComment:e$,onClose:eM})})]}),eC&&(0,i.jsx)(r_,{submodule:ep}),eo?.showRichDiff&&(0,i.jsx)(eY,{queryConfig:eo.queryConfig,initialData:eo.richDiff}),ew&&(0,i.jsx)(rx,{hasExpandedAllRanges:eu,copilotChatReference:eI,diffEntryData:{diffLines:T,isBinary:H,isTooBig:K,linesChanged:Q,newTreeEntry:J,newCommitOid:Y,objectId:ee,oldTreeEntry:et,oldCommitOid:en,path:ea,pathDigest:er,status:eh,truncatedReason:eg},baseHelpUrl:F,subjectId:es||””,viewerData:eX,isSplitView:e1,diffLinesManuallyUnhidden:eN,onHandleLoadDiff:e_})]}),R[77]=k,R[78]=eI,R[79]=T,R[80]=B,R[81]=e$,R[82]=eu,R[83]=F,R[84]=G,R[85]=H,R[86]=e1,R[87]=K,R[88]=Q,R[89]=eN,R[90]=Y,R[91]=J,R[92]=ee,R[93]=en,R[94]=et,R[95]=eM,R[96]=e_,R[97]=ea,R[98]=er,R[99]=es,R[100]=eo,R[101]=ew,R[102]=eC,R[103]=eh,R[104]=ep,R[105]=eg,R[106]=eX,R[107]=S):S=R[107],R[108]!==e0||R[109]!==ej||R[110]!==t||R[111]!==e5||R[112]!==e6||R[113]!==y||R[114]!==N||R[115]!==S?(L=(0,i.jsxs)(“div”,{role:”region”,ref:t,”aria-labelledby”:e0,id:e5,className:v,”data-targeted”:ej,style:y,children:[N,S]},e6),R[108]=e0,R[109]=ej,R[110]=t,R[111]=e5,R[112]=e6,R[113]=y,R[114]=N,R[115]=S,R[116]=L):L=R[116],R[117]!==eD||R[118]!==eL?(D=eL&&(0,i.jsxs)(“div”,{className:ry.A.diffFooter,children:[(0,i.jsx)(c.InfoIcon,{size:16,”aria-hidden”:”true”}),(0,i.jsx)(“span”,{className:”text-center”,children:rQ(eD)})]}),R[117]=eD,R[118]=eL,R[119]=D):D=R[119],R[120]!==ex||R[121]!==T||R[122]!==e2||R[123]!==ey||R[124]!==e1||R[125]!==J||R[126]!==et||R[127]!==ea||R[128]!==eF||R[129]!==e3||R[130]!==L||R[131]!==D?(_=(0,i.jsxs)($,{addInjectedContextLines:ex,diffAnchor:e3,diffLines:T,fileLineCount:e2,path:ea,startNewConversationForLineOrFileMap:eF,hiddenFeatures:ey,isSplitView:e1,oldTreeEntry:et,newTreeEntry:J,children:[L,D]}),R[120]=ex,R[121]=T,R[122]=e2,R[123]=ey,R[124]=e1,R[125]=J,R[126]=et,R[127]=ea,R[128]=eF,R[129]=e3,R[130]=L,R[131]=D,R[132]=_):_=R[132],_}:function({addFileCommentButtonRef:e,collapsed:t,currentUser:n,diffLines:a,diffManuallyExpanded:r,diffSize:d,helpUrl:u,estimatedDiffHeight:m=0,fileComments:f,headerStickyOffset:h=0,hiddenFeatures:p=rW,isAddingFileComment:x,isBinary:v,isSelected:y=!1,isSubmodule:j,isTooBig:C,leftSideContent:w,linesAdded:N,linesChanged:S,linesDeleted:L,newTreeEntry:D,newCommitOid:_,objectId:R,oldTreeEntry:A,oldCommitOid:k,onToggleCollapse:E,path:T,pathDigest:O,pullRequestGlobalRelayId:P,repository:F,richDiffState:M,rightSideContent:B,setIsAddingFileComment:V,hasExpandedAllRanges:U,expandAllContextLines:G,canExpandOrCollapseLines:H,status:q,submodule:z,truncatedReason:K,addInjectedContextLines:W,loadDiff:Z},Q){let X=j&&!!z,J=!X&&!M?.showRichDiff,[Y,ee]=(0,l.useState)(r),et=(0,I.j5)(),{comparisonView:en}=(0,I.L3)(),ei=rM({isBinary:v,isSubmodule:j,path:T,status:q,repository:F,newCommitOid:_,newTreeEntry:D,oldCommitOid:k,oldTreeEntry:A,pathDigest:O,hasCopilotAccess:n.hasCopilotAccess}),ea=async()=>{await Z(),ee(!0)},{baseOid:er,headOid:es}=(0,I.E4)(),el=(0,eG.u)(“cotd_ui”),eo=(0,e4.G7)(“pr_simple_diffs”),{effectiveRange:ed}=(0,I.L3)(),{mutate:ec}=t5(),eu=(0,l.useCallback)(()=>{V(!0)},[V]),em=(0,l.useMemo)(()=>({F0:{startNewComment:eu,diffLineKey:rZ}}),[eu]),ef=(0,l.useMemo)(()=>({avatarUrl:n?.avatarURL??””,diffViewPreference:n?.splitPreference,login:n?.login??””,lineSpacingPreference:n?.lineSpacing,shouldDisplayComments:n?.shouldDisplayComments,shouldDisplayEditOptions:n?.shouldDisplayEditOptions,tabSizePreference:n?.tabSize??4,viewerCanComment:n?.canComment,viewerCanApplySuggestion:n?.canApplySuggestion}),[n.avatarURL,n.canApplySuggestion,n.canComment,n.lineSpacing,n.login,n.shouldDisplayComments,n.shouldDisplayEditOptions,n.splitPreference,n.tabSize]),eh=(0,l.useId)(),ep=`heading-${eh}`,eg=(0,l.useMemo)(()=>”split”===new URLSearchParams(g.cg?.location.search).get(“diff”)||”split”===n.splitPreference,[n.splitPreference]),ex=D?.lineCount??A?.lineCount??0;return(0,i.jsxs)($,{addInjectedContextLines:W,diffAnchor:`diff-${O}`,diffLines:a,fileLineCount:ex,path:T,startNewConversationForLineOrFileMap:em,hiddenFeatures:p,isSplitView:eg,oldTreeEntry:A,newTreeEntry:D,children:[(0,i.jsxs)(“div”,{role:”region”,ref:Q,”aria-labelledby”:ep,id:`diff-${O}`,className:(0,b.$)(ry.A.diffTargetable,ry.A.diff),”data-targeted”:y,style:eo?{contentVisibility:”auto”,containIntrinsicSize:`auto ${m}px`}:void 0,children:[(0,i.jsx)(“div”,{className:ry.A.diffHeaderWrapper,style:{“–header-sticky-offset”:`${h}px`},children:(0,i.jsx)(s.B,{headingId:ep,hiddenFeatures:p,areLinesExpanded:U,canExpandOrCollapseLines:H,fileLinkHref:`#diff-${O}`,isCollapsed:t,isBinary:v,size:d,canToggleRichDiff:M?.richDiff?.canToggleRichDiff,linesAdded:N,linesChanged:S,linesDeleted:L,newMode:D?.mode,newPath:D?.path,oldMode:A?.mode,oldPath:A?.path,patchStatus:q,path:T,onToggleExpandAllLines:G,onToggleFileCollapsed:e=>E(e,!t),onToggleDiffDisplay:M?.onToggleRichDiff,additionalLeftSideContent:w,rightSideContent:B,showRichDiff:M?.showRichDiff,isInSingleFileMode:et})}),t?null:(0,i.jsxs)(“div”,{className:”border position-relative rounded-bottom-2″,children:[(0,i.jsxs)(i.Fragment,{children:[f.length>0&&(0,i.jsx)(rK,{conversationListThreads:f,filePath:T}),x&&(0,i.jsx)(“div”,{className:(0,b.$)(“border rounded-2 color-border-default m-1 rounded-2 bgColor-default”,ry.A.diffAddFileThread),children:(0,i.jsx)(eq,{batchingEnabled:!0,filePath:T,fileLevelComment:!0,isLeftSide:void 0,viewerData:ef,onAddComment:({onCompleted:e,onError:t,submitBatch:n,text:i})=>{el?ec(new ReviewCommentFactory({filePath:T,effectiveDiffRange:ed,submitBatch:n,text:i}).fileRequestData(),{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment.databaseId),V(!1)}}):ec({text:i,path:T,submitBatch:n,subjectType:o.Wr.File,comparisonEndOid:es,comparisonStartOid:er},{onError:t,onSuccess:t=>{e?.(t.thread.id,t.comment.databaseId),V(!1)}})},onClose:()=>{V(!1),e?.current?.focus()}})})]}),X&&(0,i.jsx)(r_,{submodule:z}),M?.showRichDiff&&(0,i.jsx)(eY,{queryConfig:M.queryConfig,initialData:M.richDiff}),J&&(0,i.jsx)(rx,{hasExpandedAllRanges:U,copilotChatReference:ei,diffEntryData:{diffLines:a,isBinary:v,isTooBig:C,linesChanged:S,newTreeEntry:D,newCommitOid:_,objectId:R,oldTreeEntry:A,oldCommitOid:k,path:T,pathDigest:O,status:q,truncatedReason:K},baseHelpUrl:u,subjectId:P||””,viewerData:ef,isSplitView:eg,diffLinesManuallyUnhidden:Y,onHandleLoadDiff:ea})]})]},`${O}_${a.length}`),et&&(0,i.jsxs)(“div”,{className:ry.A.diffFooter,children:[(0,i.jsx)(c.InfoIcon,{size:16,”aria-hidden”:”true”}),(0,i.jsx)(“span”,{className:”text-center”,children:rQ(en)})]})]})}),rJ=(0,a.GV)()?function(e){let t,n,a,o,d,u=(0,r.c)(24),{path:m,pathDigest:f,linesAdded:h,linesChanged:p,linesDeleted:g,oldTreeEntry:x,newTreeEntry:v,status:y}=e,j=(0,l.useId)(),C=`heading-${j}`,[w,N]=(0,l.useState)(!1),S=`diff-${f}`;u[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,b.$)(ry.A.diffTargetable,ry.A.diff),u[0]=t):t=u[0];let L=`${f}_error`,D=v?.mode,I=v?.path,_=x?.mode,R=x?.path;return u[1]!==w?(n=()=>N(!w),u[1]=w,u[2]=n):n=u[2],u[3]!==C||u[4]!==w||u[5]!==h||u[6]!==p||u[7]!==g||u[8]!==m||u[9]!==y||u[10]!==D||u[11]!==I||u[12]!==_||u[13]!==R||u[14]!==n?(a=(0,i.jsx)(“div”,{className:ry.A.diffHeaderWrapper,children:(0,i.jsx)(s.B,{headingId:C,isCollapsed:w,isBinary:!1,linesAdded:h,linesChanged:p,linesDeleted:g,newMode:D,newPath:I,oldMode:_,oldPath:R,patchStatus:y,path:m,onToggleFileCollapsed:n})}),u[3]=C,u[4]=w,u[5]=h,u[6]=p,u[7]=g,u[8]=m,u[9]=y,u[10]=D,u[11]=I,u[12]=_,u[13]=R,u[14]=n,u[15]=a):a=u[15],u[16]!==w?(o=!w&&(0,i.jsx)(“div”,{className:”border position-relative rounded-bottom-2″,children:(0,i.jsxs)(n$.E,{children:[(0,i.jsx)(n$.E.Visual,{children:(0,i.jsx)(c.AlertIcon,{size:”medium”,className:”fgColor-muted”})}),(0,i.jsx)(n$.E.Heading,{as:”h4″,children:”There was an issue loading this file”}),(0,i.jsxs)(n$.E.Description,{children:[” “,”Try refreshing the page or if the problem persists”,” “,(0,i.jsx)(“a”,{className:”fgColor-muted”,href:”https://support.github.com/”,children:(0,i.jsx)(“u”,{children:”contact support”})}),”.”]})]})}),u[16]=w,u[17]=o):o=u[17],u[18]!==C||u[19]!==S||u[20]!==o||u[21]!==L||u[22]!==a?(d=(0,i.jsxs)(“div”,{role:”region”,”aria-labelledby”:C,id:S,className:t,children:[a,o]},L),u[18]=C,u[19]=S,u[20]=o,u[21]=L,u[22]=a,u[23]=d):d=u[23],d}:function({path:e,pathDigest:t,linesAdded:n,linesChanged:a,linesDeleted:r,oldTreeEntry:o,newTreeEntry:d,status:u}){let m=(0,l.useId)(),f=`heading-${m}`,[h,p]=(0,l.useState)(!1);return(0,i.jsxs)(“div”,{role:”region”,”aria-labelledby”:f,id:`diff-${t}`,className:(0,b.$)(ry.A.diffTargetable,ry.A.diff),children:[(0,i.jsx)(“div”,{className:ry.A.diffHeaderWrapper,children:(0,i.jsx)(s.B,{headingId:f,isCollapsed:h,isBinary:!1,linesAdded:n,linesChanged:a,linesDeleted:r,newMode:d?.mode,newPath:d?.path,oldMode:o?.mode,oldPath:o?.path,patchStatus:u,path:e,onToggleFileCollapsed:()=>p(!h)})}),!h&&(0,i.jsx)(“div”,{className:”border position-relative rounded-bottom-2″,children:(0,i.jsxs)(n$.E,{children:[(0,i.jsx)(n$.E.Visual,{children:(0,i.jsx)(c.AlertIcon,{size:”medium”,className:”fgColor-muted”})}),(0,i.jsx)(n$.E.Heading,{as:”h4″,children:”There was an issue loading this file”}),(0,i.jsxs)(n$.E.Description,{children:[” “,”Try refreshing the page or if the problem persists”,” “,(0,i.jsx)(“a”,{className:”fgColor-muted”,href:”https://support.github.com/”,children:(0,i.jsx)(“u”,{children:”contact support”})}),”.”]})]})})]},`${t}_error`)},rY=(0,l.memo)(rX);try{rX.displayName||(rX.displayName=”DiffUnmemoized”)}catch{}try{rJ.displayName||(rJ.displayName=”DiffErrorFallback”)}catch{}try{rY.displayName||(rY.displayName=”Diff”)}catch{}},28199:(e,t,n)=>{n.d(t,{a:()=>r});var i=n(96540),a=n(2694);function r(e){let[t,n]=(0,i.useState)(!1),[r,s]=(0,i.useState)(!1),l={root:null,rootMargin:”0px”,threshold:[0,1],…e},o=(0,i.useCallback)(e=>{let[t]=e;s(1>(t?.intersectionRatio||0)),n((t?.rootBounds?.height??0)>0)},[s]),[d,c]=(0,a.B)(o,l);return{isSticky:r,hasRoots:t,observe:d,unobserve:c}}},30923:(e,t,n)=>{n.d(t,{Ee:()=>o,b4:()=>d,Ts:()=>l});var i=n(50467);let a=class ResponseError extends Error{constructor(e,t){super(`${e} for HTTP ${t.status}`),(0,i._)(this,”response”,void 0),this.response=t,this.name=”ResponseError”}};var r=n(69759),s=n(51987);async function l(e,t,n){let i=new Request(t,n);(0,s.tV)(i.headers);let l=await self.fetch(i);if(l.status<200||l.status>=300)throw Error(`HTTP ${l.status}${l.statusText||””}`);return!function(e,t,n=!1){let i=t.headers.get(“content-type”)||””;if(!n&&!i.startsWith(“text/html”))throw new a(`expected response with text/html, but was ${i}`,t);if(n&&!(i.startsWith(“text/html”)||i.startsWith(“application/json”)))throw new a(`expected response with text/html or application/json, but was ${i}`,t);let r=t.headers.get(“x-html-safe”);if(r){if(!e.includes(r))throw new a(“response X-HTML-Safe nonce did not match”,t)}else throw new a(“missing X-HTML-Safe nonce”,t)}(function(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}(e),l),(0,r.B)(e,await l.text())}function o(e,t,n=1e3,i=[200],a=[202]){return async function n(r){let l=new Request(e,t);(0,s.tV)(l.headers);let o=await self.fetch(l);if(a.includes(o.status))return await new Promise(e=>setTimeout(e,r)),n(1.5*r);if(i.includes(o.status))return o;if(o.status<200||o.status>=300)throw Error(`HTTP ${o.status}${o.statusText||””}`);throw Error(`Unexpected ${o.status} response status from poll endpoint`)}(n)}async function d(e,t,n){let{wait:i=500,acceptedStatusCodes:a=[200],max:r=3,attempt:l=0}=n||{},o=async()=>new Promise((n,o)=>{setTimeout(async()=>{try{let i=new Request(e,t);(0,s.tV)(i.headers);let o=await self.fetch(i);if(a.includes(o.status)||l+1===r)return n(o);n(“retry”)}catch(e){o(e)}},i*l)}),c=await o();return”retry”!==c?c:d(e,t,{wait:i,acceptedStatusCodes:a,max:r,attempt:l+1})}},31675:(e,t,n)=>{n.d(t,{A:()=>i});let i={“hide-on-mobile”:”responsive-module__hide-on-mobile–lWlU1″,”hide-on-desktop”:”responsive-module__hide-on-desktop–op38F”,”hide-on-small”:”responsive-module__hide-on-small–oDr47″,”hide-on-medium-up”:”responsive-module__hide-on-medium-up–imsgz”}},33195:(e,t,n)=>{n.d(t,{u:()=>u});var i=n(74848),a=n(68273),r=n(16522),s=n(46589),l=n(96540),o=n(34164);let d=”PullRequestStateLabel-module__unlisted–pcrfP”;var c=n(33578);let u=(0,a.Z6)()?function(e){let t,n,a=(0,r.c)(7),{className:l,state:u}=e,f=c.a[u];if(u===c.Q.Unlisted){let e;return a[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsxs)(“span”,{className:d,children:[(0,i.jsx)(m,{}),” Unlisted”]}),a[0]=e):e=a[0],e}a[1]!==l?(t=(0,o.$)(“flex-self-start”,l),a[1]=l,a[2]=t):t=a[2];let h=f.status;return a[3]!==f.description||a[4]!==t||a[5]!==h?(n=(0,i.jsx)(s.A,{className:t,status:h,children:f.description}),a[3]=f.description,a[4]=t,a[5]=h,a[6]=n):n=a[6],n}:function({className:e,state:t}){let n=(0,l.useMemo)(()=>c.a[t],[t]);return t===c.Q.Unlisted?(0,i.jsxs)(“span”,{className:d,children:[(0,i.jsx)(m,{}),” Unlisted”]}):(0,i.jsx)(s.A,{className:(0,o.$)(“flex-self-start”,e),status:n.status,children:n.description})},m=(0,a.Z6)()?function(){let e,t=(0,r.c)(1);return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsxs)(“svg”,{width:”16″,height:”16″,viewBox:”0 0 16 16″,xmlns:”http://www.w3.org/2000/svg”,”aria-hidden”:”true”,fill:”currentColor”,children:[(0,i.jsx)(“path”,{fillRule:”evenodd”,clipRule:”evenodd”,d:”M2.5 3.25C2.5 2.83579 2.83579 2.5 3.25 2.5C3.66421 2.5 4 2.83579 4 3.25C4 3.66421 3.66421 4 3.25 4C2.83579 4 2.5 3.66421 2.5 3.25ZM3.25 1C2.00736 1 1 2.00736 1 3.25C1 4.22966 1.62611 5.06309 2.5 5.37197V10.628C1.62611 10.9369 1 11.7703 1 12.75C1 13.9926 2.00736 15 3.25 15C4.49264 15 5.5 13.9926 5.5 12.75C5.5 11.7703 4.87389 10.9369 4 10.628V5.37197C4.87389 5.06309 5.5 4.22966 5.5 3.25C5.5 2.00736 4.49264 1 3.25 1ZM3.25 12C2.83579 12 2.5 12.3358 2.5 12.75C2.5 13.1642 2.83579 13.5 3.25 13.5C3.66421 13.5 4 13.1642 4 12.75C4 12.3358 3.66421 12 3.25 12Z”}),(0,i.jsx)(“path”,{d:”M14 7.5C14 8.19036 13.3844 8.75 12.625 8.75C11.8656 8.75 11.25 8.19036 11.25 7.5C11.25 6.80964 11.8656 6.25 12.625 6.25C13.3844 6.25 14 6.80964 14 7.5Z”}),(0,i.jsx)(“path”,{d:”M14 2.75C14 3.44036 13.3844 4 12.625 4C11.8656 4 11.25 3.44036 11.25 2.75C11.25 2.05964 11.8656 1.5 12.625 1.5C13.3844 1.5 14 2.05964 14 2.75Z”}),(0,i.jsx)(“path”,{d:”M10.2197 10.7197C10.5126 10.4268 10.9874 10.4268 11.2803 10.7197L14.2803 13.7197C14.5732 14.0126 14.5732 14.4874 14.2803 14.7803C13.9874 15.0732 13.5126 15.0732 13.2197 14.7803L10.2197 11.7803C9.92683 11.4874 9.92683 11.0126 10.2197 10.7197Z”})]}),t[0]=e):e=t[0],e}:function(){return(0,i.jsxs)(“svg”,{width:”16″,height:”16″,viewBox:”0 0 16 16″,xmlns:”http://www.w3.org/2000/svg”,”aria-hidden”:”true”,fill:”currentColor”,children:[(0,i.jsx)(“path”,{fillRule:”evenodd”,clipRule:”evenodd”,d:”M2.5 3.25C2.5 2.83579 2.83579 2.5 3.25 2.5C3.66421 2.5 4 2.83579 4 3.25C4 3.66421 3.66421 4 3.25 4C2.83579 4 2.5 3.66421 2.5 3.25ZM3.25 1C2.00736 1 1 2.00736 1 3.25C1 4.22966 1.62611 5.06309 2.5 5.37197V10.628C1.62611 10.9369 1 11.7703 1 12.75C1 13.9926 2.00736 15 3.25 15C4.49264 15 5.5 13.9926 5.5 12.75C5.5 11.7703 4.87389 10.9369 4 10.628V5.37197C4.87389 5.06309 5.5 4.22966 5.5 3.25C5.5 2.00736 4.49264 1 3.25 1ZM3.25 12C2.83579 12 2.5 12.3358 2.5 12.75C2.5 13.1642 2.83579 13.5 3.25 13.5C3.66421 13.5 4 13.1642 4 12.75C4 12.3358 3.66421 12 3.25 12Z”}),(0,i.jsx)(“path”,{d:”M14 7.5C14 8.19036 13.3844 8.75 12.625 8.75C11.8656 8.75 11.25 8.19036 11.25 7.5C11.25 6.80964 11.8656 6.25 12.625 6.25C13.3844 6.25 14 6.80964 14 7.5Z”}),(0,i.jsx)(“path”,{d:”M14 2.75C14 3.44036 13.3844 4 12.625 4C11.8656 4 11.25 3.44036 11.25 2.75C11.25 2.05964 11.8656 1.5 12.625 1.5C13.3844 1.5 14 2.05964 14 2.75Z”}),(0,i.jsx)(“path”,{d:”M10.2197 10.7197C10.5126 10.4268 10.9874 10.4268 11.2803 10.7197L14.2803 13.7197C14.5732 14.0126 14.5732 14.4874 14.2803 14.7803C13.9874 15.0732 13.5126 15.0732 13.2197 14.7803L10.2197 11.7803C9.92683 11.4874 9.92683 11.0126 10.2197 10.7197Z”})]})};try{u.displayName||(u.displayName=”PullRequestStateLabel”)}catch{}try{m.displayName||(m.displayName=”GitPullRequestUnlistedSvg”)}catch{}},33578:(e,t,n)=>{n.d(t,{Q:()=>i,a:()=>a});let i={Open:”OPEN”,Closed:”CLOSED”,Merged:”MERGED”,Queued:”QUEUED”,Draft:”DRAFT”,Unlisted:”UNLISTED”},a={[i.Open]:{description:”Open”,status:”pullOpened”},[i.Closed]:{description:”Closed”,status:”pullClosed”},[i.Queued]:{description:”Queued”,status:”pullQueued”},[i.Merged]:{description:”Merged”,status:”pullMerged”},[i.Draft]:{description:”Draft”,status:”draft”},[i.Unlisted]:{description:”Unlisted”,status:”unlisted”}}},33644:(e,t,n)=>{n.d(t,{A:()=>i});let i={stickyHeader:”use-sticky-header-module__stickyHeader–UQFpz”}},34261:(e,t,n)=>{n.d(t,{W:()=>u,f:()=>c});var i=n(68273),a=n(16522),r=n(65510),s=n(20622),l=n(53885),o=n(96379),d=n(50129);let c=(0,i.Z6)()?function(){let e,t=(0,a.c)(2),{basePageDataUrl:n}=(0,d.Yu)(),i=`basePageDataURL:${n}`;return t[0]!==i?(e=[s.uT.header,i],t[0]=i,t[1]=e):e=t[1],e}:function(){let{basePageDataUrl:e}=(0,d.Yu)();return[s.uT.header,`basePageDataURL:${e}`]},u=(0,i.Z6)()?function(e){let t,n,i=(0,a.c)(6),d=(0,l.e)(s.uT.header),u=c();return i[0]!==d?(t=async()=>{let e=await (0,o.QJ)(d);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},i[0]=d,i[1]=t):t=i[1],i[2]!==e||i[3]!==u||i[4]!==t?(n={queryKey:u,queryFn:t,initialData:e,staleTime:1/0},i[2]=e,i[3]=u,i[4]=t,i[5]=n):n=i[5],(0,r.U)(n)}:function(e){let t=(0,l.e)(s.uT.header),n=c();return(0,r.U)({queryKey:n,queryFn:async()=>{let e=await (0,o.QJ)(t);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},initialData:e,staleTime:1/0})}},34535:(e,t,n)=>{n.d(t,{Z:()=>s});var i=n(68273),a=n(16522),r=n(96540);let s=(0,i.xS)()?function(e){let t,n,i=(0,a.c)(4),{focusRowRef:s,mouseRowRef:l}=e,[o,d]=(0,r.useState)(!1);return i[0]!==s||i[1]!==l?(t=()=>{let e=s.current,t=l.current;if(!e||!t)return;let n=()=>{let t=e.querySelector(“.PRIVATE_TreeView-item-content-text”);t?.scrollWidth!==t?.offsetWidth&&d(!0)},i=()=>n(),a=()=>d(!1),r=()=>n(),o=()=>d(!1);return e.addEventListener(“focus”,i),e.addEventListener(“blur”,a),t.addEventListener(“mouseenter”,r),t.addEventListener(“mouseleave”,o),()=>{e.removeEventListener(“focus”,i),e.removeEventListener(“blur”,a),t.removeEventListener(“mouseenter”,r),t.removeEventListener(“mouseleave”,o)}},n=[s,l],i[0]=s,i[1]=l,i[2]=t,i[3]=n):(t=i[2],n=i[3]),(0,r.useEffect)(t,n),o}:function({focusRowRef:e,mouseRowRef:t}){let[n,i]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{let n=e.current,a=t.current;if(!n||!a)return;let r=()=>{let e=n.querySelector(“.PRIVATE_TreeView-item-content-text”);e?.scrollWidth!==e?.offsetWidth&&i(!0)},s=()=>r(),l=()=>i(!1),o=()=>r(),d=()=>i(!1);return n.addEventListener(“focus”,s),n.addEventListener(“blur”,l),a.addEventListener(“mouseenter”,o),a.addEventListener(“mouseleave”,d),()=>{n.removeEventListener(“focus”,s),n.removeEventListener(“blur”,l),a.removeEventListener(“mouseenter”,o),a.removeEventListener(“mouseleave”,d)}},[e,t]),n}},36472:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(13083),a=n(3038);function r({selectedLineRange:e,leftLines:t,rightLines:n}){let r=!!n,{startOrientation:s,endOrientation:l}=e,o=m(s).findIndex(t=>(0,a.a2)(t,e.startLineNumber,e.startOrientation)),d=m(l).findIndex(t=>(0,a.a2)(t,e.endLineNumber,e.endOrientation)),c=o>=0&&d>=0;function u(e){if(!c||(0,a.Po)(e))return!1;let t=m((0,i.XU)(e.type)).indexOf(e);return t>=o&&t<=d}function m(e){var a;return r&&"left"!==("string"==typeof(a=e)?a:(0,i.XU)(a.type))?n:t}let f=m("left").filter(e=>u(e));return{selectedRightLines:m(“right”).filter(e=>u(e)),selectedLeftLines:f}}},36729:(e,t,n)=>{n.d(t,{Vv:()=>a,Wr:()=>r,zW:()=>i});let i=”FILE”,a=”empty-diff-line”,r={Line:”line”,Multiline:”multiline”,File:”file”}},37212:(e,t,n)=>{n.d(t,{Bz:()=>s,NP:()=>l});var i=n(68273),a=n(99279),r=n(86320);n(13360);let s=a.G.createQueryRouteConfig(“pullRequestsCommitsRoute”,{path:”/:owner/:repo/pull/:pr_number/commits”,queries:[(0,r.Y)()]});function l(){return s.queries.mainQuery.makeQueryKey()}(0,i.Z6)()},37351:(e,t,n)=>{n.d(t,{_:()=>i});function i(e,t){if(e!==t)throw TypeError(“Private static access of wrong provenance”)}},39029:(e,t,n)=>{n.d(t,{G:()=>c,og:()=>d});var i=n(68273),a=n(16522),r=n(40235),s=n(70170),l=n(70263),o=n(96540);let d=(0,i.Z6)()?function(e,t,n,i){c(e,t,n,i)}:function(e,t,n,i){c(e,t,n,i)},c=(0,i.Z6)()?function(e,t,n,i){let o,d,c,u=(0,a.c)(9),m=(0,l.A)();u[0]!==t||u[1]!==m?(o=()=>{m()&&t()},u[0]=t,u[1]=m,u[2]=o):o=u[2];let f=i??2e3;u[3]!==o||u[4]!==f?(d=(0,s.n)(o,f),u[3]=o,u[4]=f,u[5]=d):d=u[5];let h=d;u[6]!==h||u[7]!==n?(c=e=>{if(n&&e.event_updates)for(let[t,i]of Object.entries(n))!!e.event_updates[t]==!!i&&window.setTimeout(h,e.wait||0);else window.setTimeout(h,e.wait||0)},u[6]=h,u[7]=n,u[8]=c):c=u[8];let p=c;(0,r.x)(e,p)}:function(e,t,n,i){let a=(0,l.A)(),d=(0,o.useMemo)(()=>(0,s.n)(()=>{a()&&t()},i??2e3),[a,t,i]),c=(0,o.useCallback)(e=>{if(n&&e.event_updates)for(let[t,i]of Object.entries(n))!!e.event_updates[t]==!!i&&window.setTimeout(d,e.wait||0);else window.setTimeout(d,e.wait||0)},[d,n]);(0,r.x)(e,c)}},39111:(e,t,n)=>{n.d(t,{X:()=>a});var i=n(54571);function a(e){let t=e.join(“,”),[n]=(0,i.I)(()=>{let e=/Windows/.test(navigator.userAgent)?”windows”:/Macintosh/.test(navigator.userAgent)?”mac”:null;return!!e&&t.includes(e)},!1,[t]);return n}},39595:(e,t,n)=>{let i;n.d(t,{CF:()=>p,p_:()=>R,FB:()=>u,Se:()=>N,aC:()=>I,zV:()=>_});let a=new WeakSet,r=new WeakMap;function s(e=document){if(r.has(e))return r.get(e);let t=!1,n=new MutationObserver(e=>{for(let t of e)if(“attributes”===t.type&&t.target instanceof Element)c(t.target);else if(“childList”===t.type&&t.addedNodes.length)for(let e of t.addedNodes)e instanceof Element&&l(e)});n.observe(e,{childList:!0,subtree:!0,attributeFilter:[“data-action”]});let i={get closed(){return t},unsubscribe(){t=!0,r.delete(e),n.disconnect()}};return r.set(e,i),i}function l(e){for(let t of e.querySelectorAll(“[data-action]”))c(t);e instanceof Element&&e.hasAttribute(“data-action”)&&c(e)}function o(e){let t=e.currentTarget;for(let n of d(t))if(e.type===n.type){let i=t.closest(n.tag);a.has(i)&&”function”==typeof i[n.method]&&i[n.method](e);let r=t.getRootNode();if(r instanceof ShadowRoot&&a.has(r.host)&&r.host.matches(n.tag)){let t=r.host;”function”==typeof t[n.method]&&t[n.method](e)}}}function*d(e){for(let t of(e.getAttribute(“data-action”)||””).trim().split(/\s+/)){let e=t.lastIndexOf(“:”),n=Math.max(0,t.lastIndexOf(“#”))||t.length;yield{type:t.slice(0,e),tag:t.slice(e+1,n),method:t.slice(n+1)||”handleEvent”}}}function c(e){for(let t of d(e))e.addEventListener(t.type,o)}function u(e,t){let n=e.tagName.toLowerCase();if(e.shadowRoot){for(let i of e.shadowRoot.querySelectorAll(`[data-target~=”${n}.${t}”]`))if(!i.closest(n))return i}for(let i of e.querySelectorAll(`[data-target~=”${n}.${t}”]`))if(i.closest(n)===e)return i}let m=e=>String(“symbol”==typeof e?e.description:e).replace(/([A-Z]($|[a-z]))/g,”-$1″).replace(/–/g,”-“).replace(/^-|-$/,””).toLowerCase(),f=(e,t=”property”)=>{let n=m(e);if(!n.includes(“-“))throw new DOMException(`${t}: ${String(e)} is not a valid ${t} name`,”SyntaxError”);return n},h=”attr”;function p(e,t){D(e,h).add(t)}let g=new WeakSet;function x(e,t){if(g.has(e))return;g.add(e);let n=Object.getPrototypeOf(e),i=n?.constructor?.attrPrefix??”data-“;for(let a of(t||(t=D(n,h)),t)){let t=e[a],n=f(`${i}${a}`),r={configurable:!0,get(){return this.getAttribute(n)||””},set(e){this.setAttribute(n,e||””)}};”number”==typeof t?r={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(e){this.setAttribute(n,e)}}:”boolean”==typeof t&&(r={configurable:!0,get(){return this.hasAttribute(n)},set(e){this.toggleAttribute(n,e)}}),Object.defineProperty(e,a,r),a in e&&!e.hasAttribute(n)&&r.set.call(e,t)}}let b=new Map,v=new Promise(e=>{“loading”!==document.readyState?e():document.addEventListener(“readystatechange”,()=>e(),{once:!0})}),y=new Promise(e=>{let t=new AbortController;t.signal.addEventListener(“abort”,()=>e());let n={once:!0,passive:!0,signal:t.signal},i=()=>t.abort();document.addEventListener(“mousedown”,i,n),document.addEventListener(“touchstart”,i,n),document.addEventListener(“keydown”,i,n),document.addEventListener(“pointerdown”,i,n)}),j={ready:()=>v,firstInteraction:()=>y,visible:e=>new Promise(t=>{let n=new IntersectionObserver(e=>{for(let i of e)if(i.isIntersecting){t(),n.disconnect();return}},{rootMargin:”0px 0px 256px 0px”,threshold:.01});for(let t of document.querySelectorAll(e))n.observe(t)})},C=new WeakMap;function w(e){cancelAnimationFrame(C.get(e)||0),C.set(e,requestAnimationFrame(()=>{for(let t of b.keys()){let n=e instanceof Element&&e.matches(t)?e:e.querySelector(t);if(customElements.get(t)||n){let i=n?.getAttribute(“data-load-on”)||”ready”,a=i in j?j[i]:j.ready;for(let e of b.get(t)||[])a(t).then(e);b.delete(t),C.delete(e)}}}))}function N(e,t){for(let[n,i]of(“string”==typeof e&&t&&(e={[e]:t}),Object.entries(e)))b.has(n)||b.set(n,new Set),b.get(n).add(i);S(document)}function S(e){i||(i=new MutationObserver(e=>{if(b.size)for(let t of e)for(let e of t.addedNodes)e instanceof Element&&w(e)})),w(e),i.observe(e,{subtree:!0,childList:!0})}let L=Symbol.for(“catalyst”);let CatalystDelegate=class CatalystDelegate{constructor(e){const t=this,n=e.prototype.connectedCallback;e.prototype.connectedCallback=function(){t.connectedCallback(this,n)};const i=e.prototype.disconnectedCallback;e.prototype.disconnectedCallback=function(){t.disconnectedCallback(this,i)};const a=e.prototype.attributeChangedCallback;e.prototype.attributeChangedCallback=function(e,n,i){t.attributeChangedCallback(this,e,n,i,a)};let r=e.observedAttributes||[];Object.defineProperty(e,”observedAttributes”,{configurable:!0,get(){return t.observedAttributes(this,r)},set(e){r=e}}),function(e){let t=e.observedAttributes||[],n=e.attrPrefix??”data-“,i=e=>f(`${n}${e}`);Object.defineProperty(e,”observedAttributes”,{configurable:!0,get:()=>[…D(e.prototype,h)].map(i).concat(t),set(e){t=e}})}(e),function(e){let t=m(e.name).replace(/-element$/,””);try{window.customElements.define(t,e),window[e.name]=customElements.get(t)}catch(e){if(!(e instanceof DOMException&&”NotSupportedError”===e.name))throw e}}(e)}observedAttributes(e,t){return t}connectedCallback(e,t){var n,i;for(let t of(e.toggleAttribute(“data-catalyst”,!0),customElements.upgrade(e),e.querySelectorAll(“template[data-shadowroot]”)))t.parentElement===e&&e.attachShadow({mode:”closed”===t.getAttribute(“data-shadowroot”)?”closed”:”open”}).append(t.content.cloneNode(!0));(x(e),a.add(e),e.shadowRoot&&(l(i=e.shadowRoot),s(i)),l(e),s(e.ownerDocument),t?.call(e),e.shadowRoot)&&(l(n=e.shadowRoot),s(n),S(e.shadowRoot))}disconnectedCallback(e,t){t?.call(e)}attributeChangedCallback(e,t,n,i,a){x(e),”data-catalyst”!==t&&a&&a.call(e,t,n,i)}};function D(e,t){if(!Object.prototype.hasOwnProperty.call(e,L)){let t=e[L],n=e[L]=new Map;if(t)for(let[e,i]of t)n.set(e,new Set(i))}let n=e[L];return n.has(t)||n.set(t,new Set),n.get(t)}function I(e,t){D(e,”target”).add(t),Object.defineProperty(e,t,{configurable:!0,get(){return u(this,t)}})}function _(e,t){D(e,”targets”).add(t),Object.defineProperty(e,t,{configurable:!0,get(){let e=this.tagName.toLowerCase(),n=[];if(this.shadowRoot)for(let i of this.shadowRoot.querySelectorAll(`[data-targets~=”${e}.${t}”]`))i.closest(e)||n.push(i);for(let i of this.querySelectorAll(`[data-targets~=”${e}.${t}”]`))i.closest(e)===this&&n.push(i);return n}})}function R(e){new CatalystDelegate(e)}},39619:(e,t,n)=>{n.d(t,{HS:()=>s,Oc:()=>r,Tv:()=>d,Xr:()=>SymbolChangedEvent,f7:()=>l,fD:()=>o,qR:()=>a});var i=n(50467);let OpenCopilotChatEvent=class OpenCopilotChatEvent extends Event{constructor(e){super(“open-copilot-chat”,{bubbles:!1,cancelable:!0}),(0,i._)(this,”payload”,void 0),this.payload=e}};Event;let AddCopilotChatReferenceEvent=class AddCopilotChatReferenceEvent extends Event{constructor(e,t=!1,n){super(“add-copilot-chat-reference”,{bubbles:!1,cancelable:!0}),(0,i._)(this,”reference”,void 0),(0,i._)(this,”openPanel”,void 0),(0,i._)(this,”id”,void 0),this.reference=e,this.openPanel=t,this.id=n}};let SymbolChangedEvent=class SymbolChangedEvent extends Event{constructor(e){super(“symbol-changed”,{bubbles:!1,cancelable:!0}),(0,i._)(this,”context”,void 0),this.context=e}};function a(e){window.dispatchEvent(new OpenCopilotChatEvent(e))}function r(e,t=!1,n){window.dispatchEvent(new AddCopilotChatReferenceEvent(e,t,n))}function s(e){return window.addEventListener(“open-copilot-chat”,e),()=>{window.removeEventListener(“open-copilot-chat”,e)}}function l(e){return window.addEventListener(“add-copilot-chat-reference”,e),()=>{window.removeEventListener(“add-copilot-chat-reference”,e)}}function o(e){return window.addEventListener(“search-copilot-chat”,e),()=>{window.removeEventListener(“search-copilot-chat”,e)}}function d(e){return window.addEventListener(“symbol-changed”,e),()=>{window.removeEventListener(“symbol-changed”,e)}}},39698:(e,t,n)=>{n.d(t,{i:()=>u});var i=n(68273),a=n(16522),r=n(48845),s=n(20622),l=n(97665),o=n(94747),d=n(69510),c=n(27011);let u=(0,i.Z6)()?function(e,t){let n,i,u,f=(0,a.c)(11),h=(0,c.Kp)(),p=`${h}/page_data/${s.uT.unresolveThread}`,g=(0,l.jE)(),{updateThread:x}=(0,c.an)();return f[0]!==p?(n=async e=>{let{threadId:t}=e,n=await (0,r.q$)(p,{method:”POST”,body:{threadId:t}});(0,r.R)(n)},f[0]=p,f[1]=n):n=f[1],f[2]!==h||f[3]!==e||f[4]!==t||f[5]!==g||f[6]!==x?(i=(n,i)=>(x(Number(i.threadId),e,t,m),g.invalidateQueries({queryKey:(0,d.XG)(h)})),f[2]=h,f[3]=e,f[4]=t,f[5]=g,f[6]=x,f[7]=i):i=f[7],f[8]!==n||f[9]!==i?(u={mutationFn:n,onSuccess:i},f[8]=n,f[9]=i,f[10]=u):u=f[10],(0,o.n)(u)}:function(e,t){let n=(0,c.Kp)(),i=`${n}/page_data/${s.uT.unresolveThread}`,a=(0,l.jE)(),{updateThread:u}=(0,c.an)();return(0,o.n)({mutationFn:async({threadId:e})=>{let t=await (0,r.q$)(i,{method:”POST”,body:{threadId:e}});(0,r.R)(t)},onSuccess:(i,r)=>(u(Number(r.threadId),e,t,e=>{if(e)return{…e,isResolved:!1,resolvedBy:void 0}}),a.invalidateQueries({queryKey:(0,d.XG)(n)}))})};function m(e){if(e)return{…e,isResolved:!1,resolvedBy:void 0}}},40235:(e,t,n)=>{n.d(t,{x:()=>f});var i,a=n(96540),r=n(70263),s=n(11418),l=n(73056),o=n(74848),d=n(10204);let c=(0,a.createContext)(null),u=null;function m(e,t){let n=d.KK.parse(e);if(!n)throw Error(`Invalid channel name. Did you forget to sign it with \`signChannel(“${e}”)\`?`);return u||(u=new d.m0),u.add({topic:n,subscriber:t}),{unsubscribe:()=>{u?.delete({topic:n,subscriber:t})}}}try{c.displayName||(c.displayName=”AliveTestContext”)}catch{}try{(i=function({children:e,initialMessages:t}){return(0,a.useEffect)(()=>{let e=[];if(t)for(let[n,i]of t){let t=window.setTimeout(()=>{var e=n,t=i;if(null===u)throw Error(‘Test helper `dispatchAliveTestMessage` called outside `AliveTestProvider`. Please wrap your component under test in `AliveTestProvider` from “@github-ui/use-alive/test-utils”.’);for(let n of Array.from(u.subscribers(e)))n(t)},0);e.push(t)}return()=>{for(let t of(u=null,e))window.clearTimeout(t)}}),(0,o.jsx)(c.Provider,{value:m,children:e})}).displayName||(i.displayName=”AliveTestProvider”)}catch{}function f(e,t){let n=(0,r.A)(),i=(0,a.useContext)(c);(0,a.useEffect)(()=>{let a=()=>{},r=!1;return async function(){if(e){if(“function”==typeof i){let n=await i(e,t);n&&(a=n.unsubscribe);return}try{let i=await (0,s.H)();if(r)return;let o=(0,l.$)(i,e,t);o?.unsubscribe&&(n()?a=o.unsubscribe:o.unsubscribe())}catch(e){console.error(e)}}}(),()=>{r=!0,a()}},[e,t,n,i])}},40493:(e,t,n)=>{n.d(t,{A:()=>i});let i={TabNav:”CodeDropdownButton-module__TabNav–zWa9N”,NavItem:”CodeDropdownButton-module__NavItem–_hXZP”,CodespacesSkeletonWrapper:”CodeDropdownButton-module__CodespacesSkeletonWrapper–KXl0V”,SkeletonLoaderWrapper:”CodeDropdownButton-module__SkeletonLoaderWrapper–suXcn”}},43362:(e,t,n)=>{n.d(t,{Be:()=>r,Sl:()=>l,Wp:()=>a,YY:()=>d,jH:()=>o,wm:()=>s});var i=n(36729);function a(e){return e.reduce((e,t)=>(e[t.path]=t,e),{})}function r(e){return e.reduce((e,t)=>(e[t.path]=!!t.markedAsViewed,e),{})}function s(e){let t=e.comments.map(e=>parseInt(e.threadId));return{id:e.id,pendingReviewIDs:t,comments:e.comments}}function l(e){return e.reduce((e,t)=>(e[t.path]=t,e),{})}function o(e,t){if(!e)return;let n={};if(!t)return n;for(let a of t){if(!a.markersMap||0===Object.keys(a.markersMap).length)continue;let t=a.path,r={};for(let t in a.markersMap){let n=a.markersMap[t];if(!n?.threads&&!n?.annotations)continue;let s={threads:[],annotations:[]};if(n.annotations)for(let t of n.annotations){let n=e.annotations[Number(t.id)];n&&s.annotations.push(n)}if(n.threads)for(let i of n.threads){let n=function(e,t){if(“FILE”===e)return;let n=e[0];if(!u(n))return;let i=Number(e.slice(1)),a=-1,r=”R”;if(t.start){a=parseInt(t.start.slice(1));let e=t.start[0];u(e)&&(r=e)}else a=i,r=n;return{endLine:i,endDiffSide:c[n],startLine:a,startDiffSide:c[r],isOutdated:!!t.outdatedReason}}(t,i),a=e.threads[Number(i.id)];a&&n&&(a={…a,positioning:n,subject:n}),a&&s.threads.push(a)}”FILE”===t?r[i.zW]=s:r[t]=s}n[t]=r}return n}function d(e){return{endLine:e.line,endDiffSide:e.side?.toLowerCase()===”right”?”RIGHT”:”LEFT”,startLine:e.startLine??e.line,startDiffSide:e.startSide?e.startSide?.toLowerCase()===”right”?”RIGHT”:”LEFT”:e.side?.toLowerCase()===”right”?”RIGHT”:”LEFT”,isOutdated:!1}}let c={L:”LEFT”,R:”RIGHT”};function u(e){return”L”===e||”R”===e}},43645:(e,t,n)=>{n.d(t,{v:()=>P,n:()=>O});var i=n(74848),a=n(68273),r=n(96540),s=n(71323),l=n(97283),o=n(87134),d=n(1932),c=n(21132),u=n(15697);function m({diffSummaries:e,diffSummariesArray:t,loadedPathDigests:n,loadingPathDigests:i,selectedPathDigest:a}){let r=!0,s=t??Object.values(e),l=s.findIndex(e=>e.pathDigest===a);return s.map(({path:e,pathDigest:t},a)=>{let s,o;switch(!0){case n.has(t):s=c.s.Loaded;break;case i.has(t):s=c.s.Loading;break;default:s=c.s.NotLoaded}let d=!1;return s===c.s.Loaded?(o=”RENDER”,d=!1):(a===l?(o=”EAGER_AUTO_LOAD”,d=!0):(o=ae.loadSolo&&e.loadingStatus===c.s.NotLoaded);if(t)return[t]}let i=t?e.findIndex(e=>e.pathDigest===t.pathDigest):e.findIndex(e=>e.loadingStatus===c.s.NotLoaded);if(-1===i)return[];let a=e[i];if(a&&a.loadSolo&&a.loadingStatus===c.s.NotLoaded)return[a];let r=[];for(let t=i;t=4))break}return r}var h=n(70170);let p=”undefined”!=typeof globalThis&&void 0!==globalThis.window,g=”undefined”!=typeof process&&!1,x={timeout:150,useIdleCallback:!0};var b=n(91747),v=n(61583),y=n(79472),j=n(43362),C=n(48845),w=n(20622),N=n(96379),S=n(16235),L=n(69599);function D({basePath:e,effectiveRange:t,hideWhitespace:n}){return[w.uT.diffEntries,e,`baseOid:${t.baseOid}`,`headOid:${t.headOid}`,`hideWhitespace:${n}`]}async function I(e){let t=(0,S.S)(),n=D(e),i=await R(e);return i&&i.length>0&&t.setQueryData(n,(0,d.jM)(e=>{if(!e)return i;for(let t of i)e.find(e=>e.pathDigest===t.pathDigest)||e.push(t)})),i}async function _(e){let t,n=(0,S.S)(),i=D(e),a=n.getQueryData(i);if(a?.length){let n=new Set(a.map(e=>e.path));if(0===(t=e.paths.filter(e=>!n.has(e))).length)return a}else t=e.paths;let r=await R({…e,paths:t});return r&&r.length>0&&n.setQueryData(i,(0,d.jM)(e=>{if(!e)return r;for(let t of r)e.find(e=>e.pathDigest===t.pathDigest)||e.push(t)})),(n.getQueryData(i)||[]).filter(t=>e.paths.includes(t.path))}async function R({basePath:e,fullDiff:t,effectiveRange:n,paths:i,contextRanges:a,signal:r,hideWhitespace:s,isComparisonOutdated:l}){let o=new URLSearchParams,d=i.map(e=>encodeURIComponent(e));if(o.append(“paths”,d.join(“,”)),a){let e=i.map(e=>(a[e]??[]).map(([e,t])=>`${e}-${t}`).join(“,”)).join(“:”);o.append(“ctx”,e)}o.append(“w”,s?”1″:”0″),n.baseOid===t.baseOid?o.append(“range”,n.headOid):o.append(“range”,`${n.baseOid}..${n.headOid}`),l&&o.append(“outdated”,”1″);let c=`${e}/page_data/${w.uT.diffEntries}?${o.toString()}`;try{let e=await (0,N.Sr)(c,{signal:r});if(r?.aborted)return;let t=await (0,C.hp)(e);return(0,C.R)(e,t),t??void 0}catch(e){if(e instanceof Error&&”AbortError”===e.name)return;throw e}}function A(e,t,n,i){return[w.uT.diffContextLines,e,t,n,i]}async function k({contextLineRanges:e,basePath:t,path:n,w:i=”0″,fullDiff:a,effectiveRange:r}){let s=new URLSearchParams;for(let t of(s.append(“path”,n),e))s.append(“context_line_ranges[]”,JSON.stringify(t));s.append(“w”,i),r.baseOid===a.baseOid?s.append(“range”,r.headOid):s.append(“range”,`${r.baseOid}..${r.headOid}`);let l=`${t}/page_data/${w.uT.diffContextLines}?${s.toString()}`,o=await (0,N.QJ)(l);if(o.ok)return await o.json()??void 0}var E=n(88008);let T=(0,r.createContext)(null),O=(0,a.Z6)()?function(e){let t=(0,r.useContext)(T);if(!t)throw Error(“Missing PullRequestStoreProvider in the tree”);return(0,s.P)(t,e)}:function(e){let t=(0,r.useContext)(T);if(!t)throw Error(“Missing PullRequestStoreProvider in the tree”);return(0,s.P)(t,e)},P=({initData:e,children:t})=>{var n,a,s,l,o,d;let c,u,m=(0,r.useRef)(null),f=(0,b.u)(“prx_files_lite_throttle”),h=(0,b.u)(“prx_files_medium_throttle”),p=(0,y.Qn)(e.user.viewSettings.hideWhitespace),g=e.user.viewSettings.commentsPreference,x=(0,j.Wp)(e.diffSummaries),C=(0,j.Be)(e.diffSummaries),w=(0,j.wm)(e.viewerPendingReview),N=(0,j.Sl)(e.diffContents),L=(0,j.jH)(e.markers,e.diffSummaries),I=(0,E.Ol)(e.pullRequest.pathName,e.pullRequest.comparison.headOid);return m.current||(n=e.comparison.selectedRange?.baseOid,a=e.comparison.selectedRange?.headOid,s=e.pullRequest.pathName,l=e.diffContents,o=e.pullRequest.comparison,d=p,c=(0,S.S)(),u=D({basePath:s,effectiveRange:{baseOid:n??o.baseOid,headOid:a??o.headOid},hideWhitespace:d}),c.setQueryData(u,l),m.current=F({baseOid:e.pullRequest.comparison.baseOid,headOid:e.pullRequest.comparison.headOid,selectedCommitRange:e.comparison.selectedRange,comparisonView:e.comparison.viewing,changeGroupGeneration:e.changeGroupGeneration,hideWhitespace:p,isSingleFileMode:e.isSingleFileMode,collapsedFilesMap:C,initialSummariesViewedStatus:C,initialSummariesViewedCount:e.user.viewedFilesCount,diffEntries:N,commentsPreference:g,initialDiffSummaries:x,initialLoadedPathDigests:new Set(e.diffContents.map(e=>e.pathDigest)),markers:L,basePath:e.pullRequest.pathName,pendingReview:w,prxFilesLiteThrottle:f,prxFilesMediumThrottle:h,pullRequest:e.pullRequest,baseRepository:e.repository,selectedPathDigest:(0,v.jU)((0,v.o9)()),initialActiveBatch:I.length>0?I:void 0,showChangeGroupPreference:e.user.viewSettings.showChangeGroups})),(0,i.jsx)(T.Provider,{value:m.current,children:t})},F=e=>(0,l.y)()((0,o.lt)((…t)=>({…(({changeGroupGeneration:{canAccessChangeGroups:e,changeGroups:t,changeGroupFeedbackOptions:n,latestChangeGroupOrchestration:i,changeGroupGenerationChannel:a,unavailableReason:r},showChangeGroupPreference:s})=>l=>({changeGroupGeneration:{canAccessChangeGroups:e,changeGroups:t,changeGroupFeedbackOptions:n,latestChangeGroupOrchestration:i,changeGroupGenerationChannel:a,unavailableReason:r},showChangeGroupPreference:s,changeGroupGenerationActions:{updateChangeGroupGeneration:e=>l(t=>({changeGroupGeneration:{…t.changeGroupGeneration,…e},showChangeGroupPreference:t.showChangeGroupPreference}),void 0,”updateChangeGroupGeneration”),updateChangeGroupPreference:e=>l(t=>({changeGroupGeneration:t.changeGroupGeneration,showChangeGroupPreference:e}),void 0,”updateChangeGroupPreference”)}}))(e)(…t),…((e,t)=>({codeowners:void 0,codeownersActions:{setCodeowners:t=>{e({codeowners:t},void 0,”updateCodeowners”)}}}))(…t),…(({baseOid:e,headOid:t,selectedCommitRange:n,comparisonView:i,hideWhitespace:a})=>r=>({comparisonInfo:{fullDiff:{baseOid:e,headOid:t},selectedRange:n,effectiveRange:n??{baseOid:e,headOid:t},hideWhitespace:a,comparisonView:i},isComparisonOutdated:!1,comparisonInfoActions:{updateWhitespace:e=>r(t=>({comparisonInfo:{…t.comparisonInfo,hideWhitespace:e}}),void 0,”comparisonInfo#updateWhitespace”),markComparisonOutdated:()=>r(()=>({isComparisonOutdated:!0}),void 0,”comparisonInfo#markComparisonOutdated”)}}))(e)(…t),…((e,t)=>({diffFilter:{state:{activeChangeGroupId:void 0,filterText:””,fileExtensions:{},unselectedFileExtensions:new Set,showDeletedFiles:!0,showOnlyManifestFiles:!1,showOnlyOwnedFiles:!1,showVendoredFiles:!0,showViewedFiles:!0},filtersInteractedWith:!1},diffFilterActions:{updateDiffFilter:(n,i)=>{e({diffFilter:{…t().diffFilter,state:{…t().diffFilter.state,…n},filtersInteractedWith:t().diffFilter.filtersInteractedWith||!!i}},void 0,”updateFilters”)},clearAllFilters:()=>{e({diffFilter:{…t().diffFilter,state:{…t().diffFilter.state,filterText:””,unselectedFileExtensions:new Set,showOnlyOwnedFiles:!1,showDeletedFiles:!0,showOnlyManifestFiles:!1,showVendoredFiles:!0,showViewedFiles:!0},filtersInteractedWith:!0}},void 0,”clearAllFilters”)}}}))(…t),…(({initialDiffSummaries:e,initialSummariesViewedStatus:t,initialSummariesViewedCount:n})=>(i,a)=>({diffSummaries:e,summariesViewedCount:n,summariesViewedStatus:t,codeowners:void 0,getPathDigestFromThreadID:e=>{for(let t of Object.values(a().diffSummaries))if(t.markersMap){for(let[n,i]of Object.entries(t.markersMap))if(i.threads.some(t=>Number(t.id)===Number(e)))return t.pathDigest}},getPathDigestFromAnnotationID:e=>{for(let t of Object.values(a().diffSummaries))if(t.markersMap){for(let[n,i]of Object.entries(t.markersMap))if(i.annotations.some(t=>t.id===e))return t.pathDigest}},diffSummariesActions:{setDiffSummaries:e=>{i({diffSummaries:e},void 0,”updateDiffSummaries”)},setDiffViewed:(e,t)=>{i(n=>n.diffSummaries?{summariesViewedStatus:(0,d.jM)(n.summariesViewedStatus,n=>{n[e]=t}),summariesViewedCount:n.summariesViewedCount+(t?1:-1),diffSummaries:(0,d.jM)(n.diffSummaries,n=>{n[e]&&(n[e].markedAsViewed=t)})}:n)},onCommentThreadAdded:({path:e,diffLineKey:t,startPosition:n,threadID:a})=>{i((0,d.jM)(i=>{if(!i.diffSummaries)return;let r=i.diffSummaries[e];if(!r)return;let s=r.markersMap??{};s[t]||(s[t]={threads:[],annotations:[]}),s[t].threads.push({id:parseInt(a),start:n}),r.totalCommentsCount=(r.totalCommentsCount||0)+1}),void 0,”commentAddedForDiffSummary”)},onCommentThreadDeleted:({path:e,threadID:t})=>{i((0,d.jM)(n=>{if(!n.diffSummaries)return;let i=n.diffSummaries[e];if(i&&i?.totalCommentsCount&&i?.markersMap)for(let[e,n]of Object.entries(i.markersMap))n.threads=n.threads.filter(e=>e.id!==parseInt(t)),0===n.threads.length&&0===n.annotations.length&&delete i.markersMap[e]}),void 0,”commentDeletedForDiffSummary”)}}}))(e)(…t),…(({markers:e})=>(t,n)=>({markers:e,getThread:(e,t,i)=>{let a=n().markers;if(a)return a[t]?.[i]?.threads?.find(t=>Number(t.id)===e)},getThreadFromCommentID:e=>{let t=n().markers;if(!t)return;let i=Object.values(t).flatMap(e=>Object.values(e).flatMap(e=>e?.threads??[]));if(i){for(let t of Object.values(i))if(t?.commentsData?.comments.some(t=>t.databaseId===e))return t}},getAnnotationFromID:e=>{let t=n().markers;if(!t)return;let i=Object.values(t).flatMap(e=>Object.values(e).flatMap(e=>e?.annotations??[]));if(i){for(let t of Object.values(i))if(t.databaseId===e)return t}},markersActions:{updateThread:(e,i,a,r)=>{let s=n().markers;if(!s)return;let l=r(s[i]?.[a]?.threads?.find(t=>Number(t.id)===e));l&&t({markers:(0,d.jM)(s,t=>{let n=t[i]?.[a]?.threads?.findIndex(t=>Number(t.id)===e);if(void 0===n||-1===n)t[i]||(t[i]={}),t[i][a]||(t[i][a]={threads:[],annotations:[]}),t[i][a].threads.push(l);else if(t[i]&&t[i][a]&&-1!==n){let e=l.positioning??t[i][a].threads[n]?.positioning,r=l.subject??t[i][a].threads[n]?.subject,s={…l,positioning:e,subject:r};t[i][a].threads[n]=s}})},void 0,”updateThread”)},updateThreads:e=>{let i=n().markers;i&&t({markers:(0,d.jM)(i,t=>{for(let n of Object.keys(i)){let i=t[n];if(i)for(let t of Object.keys(i)){let n=i[t];if(!n)continue;let a=n.threads;a&&(n.threads=e(a))}}})})},deleteThreadComment:(e,i,a,r)=>{let s=”not_found”,l=n().markers;return l&&t({markers:(0,d.jM)(l,t=>{let n=t[a]?.[r]?.threads?.find(t=>Number(t.id)===e);if(!n){s=”not_found”;return}let l=n.commentsData,o=l?.comments.filter(e=>e.id!==i)??[];if(!l||l.comments.length===o.length){s=”not_found”;return}if(0===o.length){s=”thread_deleted”;let n=t[a]?.[r]?.threads;if(n){let t=n.findIndex(t=>Number(t.id)===e);-1!==t&&n.splice(t,1)}}else s=”comment_deleted”,l&&(l.comments=o)})},void 0,”deleteThreadComment”),s},updateThreadComment:({threadID:e,filePath:i,lineMarkersKey:a,match:r,transform:s})=>{let l=n().markers;l&&t({markers:(0,d.jM)(l,t=>{let n,l=t[i]?.[a]?.threads?.find(t=>Number(t.id)===e);if(!l)return;let o=l.commentsData,d=o?.comments.findIndex(r);”number”==typeof d&&-1!==d&&(n=o?.comments[d]);let c=s(n);c&&(-1===d||”number”!=typeof d?o?.comments.push(c):o&&o.comments&&(o.comments[d]=c))})},void 0,”updateThreadComment”)}}}))(e)(…t),…(({prxFilesLiteThrottle:e,prxFilesMediumThrottle:t,initialDiffSummaries:n,initialLoadedPathDigests:i,selectedPathDigest:a})=>(s,l)=>{let o;return o=t?100:50*!!e,{entries:m({diffSummaries:n,loadedPathDigests:i,loadingPathDigests:new Set,selectedPathDigest:a}),selectedPathDigest:a,getSelectedPathDigest:()=>l().selectedPathDigest,progressiveDiffQueue:[],queueRunning:!1,internalProgressiveDiffsActions:{loadSelectedEntries:(0,h.n)(async e=>{if(0===e.length)return;let t=e.map(e=>e.path),n=e.map(e=>e.pathDigest),i=l().entries.filter(e=>e.loadingStatus===c.s.Loaded).map(e=>e.pathDigest),a=l().entries.filter(e=>e.loadingStatus===c.s.Loading).map(e=>e.pathDigest);s(e=>({entries:m({diffSummaries:e.diffSummaries,loadedPathDigests:new Set(i),loadingPathDigests:new Set([…a,…n]),selectedPathDigest:e.selectedPathDigest})}),void 0,”loadSelectedEntries#preFetch”);let{loadDiffEntries:r}=l().diffEntriesActions,o=(0,u.i)({paths:new Set(t),diffSummaries:l().diffSummaries}),d=await r({paths:t,contextRanges:o});if(!d||0===d.length){let e=[…l().entries.filter(e=>e.loadingStatus===c.s.Loaded).map(e=>e.pathDigest)],t=l().entries.filter(e=>e.loadingStatus===c.s.Loading).map(e=>e.pathDigest);return s({entries:m({diffSummaries:l().diffSummaries,loadedPathDigests:new Set(e),loadingPathDigests:new Set(t),selectedPathDigest:l().selectedPathDigest})},void 0,”loadSelectedEntries#postFetch#noAPIData”)}let f=d.map(e=>e.pathDigest),h=[…l().entries.filter(e=>e.loadingStatus===c.s.Loaded).map(e=>e.pathDigest),…f],p=l().entries.filter(e=>e.loadingStatus===c.s.Loading).filter(e=>!f.includes(e.pathDigest)).map(e=>e.pathDigest);s(e=>({…e,entries:m({diffSummaries:l().diffSummaries,loadedPathDigests:new Set(h),loadingPathDigests:new Set(p),selectedPathDigest:l().selectedPathDigest})}),void 0,”loadSelectedEntries#postFetch”)},o),enqueue:e=>{s(t=>({…t,progressiveDiffQueue:[…t.progressiveDiffQueue,e]}),void 0,”enqueue”)},processQueue:async()=>{let e=()=>(function(e,t={}){let{timeout:n,useIdleCallback:i}={…x,…t};if(!p||g)return void e();let a=()=>{“function”==typeof r.startTransition?(0,r.startTransition)(e):e()},s=globalThis;i&&”function”==typeof s.requestIdleCallback?s.requestIdleCallback(a,{timeout:n}):setTimeout(a,0)})(()=>l().internalProgressiveDiffsActions.processQueue(),{timeout:20}),t=l().progressiveDiffQueue;if(0===t.length)return l().entries?.some(e=>e.loadingStatus===c.s.Loading||e.loadingStatus===c.s.NotLoaded)?e():s(e=>({…e,queueRunning:!1}),void 0,”stopQueue”);let[n,…i]=t.filter((e,t,n)=>t===n.findIndex(t=>t.startingAt.path===e.startingAt.path));s(e=>({…e,progressiveDiffQueue:i}),void 0,”processQueue#cleanQueue”);let a=f({progressiveDiffEntries:l().entries,startingAt:n?.startingAt,preferAnySoloEntry:n?.preferAnySoloEntry});return await l().internalProgressiveDiffsActions.loadSelectedEntries(a),e()}},progressiveDiffsActions:{startQueue:()=>{l().queueRunning||(s(e=>({…e,queueRunning:!0}),void 0,”startQueue”),l().internalProgressiveDiffsActions.processQueue())},loadMore:async(e,{preferAnySoloEntry:t}={})=>{if(e)return l().internalProgressiveDiffsActions.enqueue({startingAt:e,preferAnySoloEntry:t});let n=f({progressiveDiffEntries:l().entries,startingAt:e,preferAnySoloEntry:t});return l().internalProgressiveDiffsActions.loadSelectedEntries(n)},updateSelectedPathDigest:e=>{s(t=>({…t,selectedPathDigest:e}),void 0,”updateSelectedPathDigest”)},updateSelectedPathDigestAndFetch:e=>{s(t=>({…t,selectedPathDigest:e}),void 0,”updateSelectedPathDigestAndFetch”);let t=l().entries.find(t=>t.pathDigest===e);if(t&&t.loadingStatus!==c.s.Loaded)return l().internalProgressiveDiffsActions.loadSelectedEntries([t])}}}})(e)(…t),…(({collapsedFilesMap:e})=>(t,n)=>({collapsedFilesMap:e,getCollapsedDiffStatus:e=>n().collapsedFilesMap?.[e]??!1,filesCollapsedStatusActions:{updateFileCollapsedStatus:(e,i)=>{let a=n().collapsedFilesMap;a&&t({collapsedFilesMap:(0,d.jM)(a,t=>{t[e]=i})},void 0,”updateFileCollapsedStatus”)},updateAllFilesCollapsedStatus:e=>{let i=n().collapsedFilesMap;i&&t({collapsedFilesMap:(0,d.jM)(i,t=>{for(let n of Object.keys(t))t[n]=e})},void 0,”updateAllFilesCollapsedStatus”)}}}))(e)(…t),…(({pendingReview:e})=>(t,n)=>({pendingReview:e,pendingReviewActions:{addPendingComment:e=>{let i=n().pendingReview;i&&t({pendingReview:(0,d.jM)(i,t=>{t.pendingReviewIDs||(t.pendingReviewIDs=[]),t.pendingReviewIDs.push(e)})},void 0,”addPendingComment”)},removePendingComment:e=>{let i=n().pendingReview;i&&t({pendingReview:(0,d.jM)(i,t=>{let n=t.pendingReviewIDs?.filter(t=>t!==e);t.pendingReviewIDs=n})},void 0,”removePendingComment”)},clearPendingReview:()=>{let e=n().pendingReview;e&&t({pendingReview:(0,d.jM)(e,e=>{e.id=void 0,e.pendingReviewIDs=[],e.comments=[]})},void 0,”clearPendingReview”)}}}))(e)(…t),…(({basePath:e,diffEntries:t,baseOid:n,headOid:i,selectedCommitRange:a})=>(r,s)=>{let l=a??{baseOid:n,headOid:i},o=(0,S.S)();for(let[n,i]of Object.entries(t)){let t=A(e,i.path,l.baseOid,l.headOid);o.setQueryData(t,()=>i.diffLines)}return{diffEntries:t,diffEntriesActions:{updateDiffEntries:t=>{let n=s().diffEntries??{},i={};for(let n of t){let t=A(e,n.path,s().comparisonInfo.effectiveRange.baseOid,s().comparisonInfo.effectiveRange.headOid);o.setQueryData(t,n.diffLines),i[n.path]=n}r({diffEntries:(0,d.jM)(n,e=>{for(let t of Object.keys(i))i[t]&&(e[t]=i[t])})},void 0,”updateDiffEntriesInMap”)},loadDiffEntries:async t=>{var n;let i=await (n={basePath:e,…t,…s().comparisonInfo,isComparisonOutdated:s().isComparisonOutdated},(0,L.G7)(“pr_sfv_new_diff_fetch”)?_(n):I(n));return i&&0!==i.length?(s().diffEntriesActions.updateDiffEntries(i),i):[]},fetchContextLines:async({path:t,contextLineRanges:n,w:i=”0″})=>{let a=A(e,t,s().comparisonInfo.effectiveRange.baseOid,s().comparisonInfo.effectiveRange.headOid),l=s().diffEntries[t];l&&await o.fetchQuery({queryKey:a,queryFn:async()=>{let d=await k({contextLineRanges:n,basePath:e,path:t,w:i,…s().comparisonInfo}),c=l.diffLines,u=o.setQueryData(a,e=>c=function(e,t){let n=new Map;for(let t of e){let e=`${t.left}-${t.right}`;n.set(e,t)}return t.map(e=>{let t=`${e.left}-${e.right}`,i=n.get(t);return i?{…e,position:i.position,displayNoNewLineWarning:i.displayNoNewLineWarning}:{…e,position:null,threadsData:void 0}})}(e??l.diffLines,d?.diffEntryLines??[]));return r(e=>({…e,diffEntries:{…e.diffEntries,[t]:{…l,diffLines:c}}}),void 0,”addContextLinesToDiffEntry”),u}})}}}})(e)(…t),…(({markers:e})=>(t,n)=>{let i,a,r=(0,v.Gl)(),s=(0,v.e3)();if(e){if(r){let t=Object.values(e||{}).flatMap(e=>Object.values(e).flatMap(e=>e?.threads??[]));if(t){let e=Number(r);for(let n of Object.values(t)){let t=n?.commentsData?.comments;if(n&&t)for(let r of t)Number(r.databaseId)===e&&(i=n.id,a=e)}}}else if(s){let t=Object.values(e).flatMap(e=>Object.values(e).flatMap(e=>e?.annotations??[]));if(t){let e=Number(s);for(let n of Object.values(t))Number(n.databaseId)===e&&(i=n.id)}}}return{markerAndDiffNavigation:{markerId:i,commentId:a,getCommentId:()=>n().markerAndDiffNavigation.commentId,getMarkerId:()=>n().markerAndDiffNavigation.markerId},markerAndDiffNavigationActions:{navigateToSelectedComment:e=>{let i=n().getThreadFromCommentID(e);if(i){let a=n().getPathDigestFromThreadID(i.id);n().progressiveDiffsActions.updateSelectedPathDigestAndFetch(a),t(t=>({markerAndDiffNavigation:{…t.markerAndDiffNavigation,commentId:e,markerId:i?.id}}))}},navigateToSelectedAnnotation:e=>{let i=n().getAnnotationFromID(e);if(i){let a=n().getPathDigestFromAnnotationID(e);n().progressiveDiffsActions.updateSelectedPathDigestAndFetch(a),t(e=>({markerAndDiffNavigation:{…e.markerAndDiffNavigation,commentId:void 0,markerId:i.id}}))}},handleHashUpdate:()=>{let e=(0,v.Gl)(),t=(0,v.e3)(),i=(0,v.jU)(window.location.hash),a=n(),r=a.markerAndDiffNavigation.commentId,s=a.markerAndDiffNavigation.markerId,l=a.selectedPathDigest;if(e&&e!==r)a.markerAndDiffNavigationActions.navigateToSelectedComment(e);else if(t){let e=a.getAnnotationFromID(t),n=e?.id;n&&n!==s&&a.markerAndDiffNavigationActions.navigateToSelectedAnnotation(t)}else i&&i!==l?a.progressiveDiffsActions.updateSelectedPathDigestAndFetch(i):e||t||i||!l||a.progressiveDiffsActions.updateSelectedPathDigestAndFetch(void 0)}}}})(e)(…t),…(({isSingleFileMode:e,commentsPreference:t})=>n=>({isSingleFileMode:e,commentsPreference:t,settingsActions:{updateCommentsPreference:e=>{n(()=>({commentsPreference:e}))}}}))(e)(…t),…(({pullRequest:e})=>(t,n)=>({pullRequest:{state:e.state,basePath:e.pathName,id:e.id,number:e.number},pullRequestActions:{updatePullRequestState:e=>{t({pullRequest:{…n().pullRequest,state:e}},void 0,”pullRequest#updatePullRequestState”)}}}))(e)(…t),…(({baseRepository:e})=>()=>({repository:{baseRepository:{id:e.id,ownerLogin:e.ownerLogin,name:e.name}}}))(e)(…t),…(t=>({suggestionBatch:{activeBatch:e.initialActiveBatch??[],isSuggestionBatchPending:(e.initialActiveBatch?.length??0)>0},suggestionBatchActions:{addSuggestionToBatch:e=>t(t=>{if(t.suggestionBatch.activeBatch.some(t=>t.commentDatabaseId===e.commentDatabaseId&&t.suggestionIndex===e.suggestionIndex))return t;let n=[…t.suggestionBatch.activeBatch,e];return{suggestionBatch:{…t.suggestionBatch,activeBatch:n,isSuggestionBatchPending:n.length>0}}}),removeSuggestionFromBatch:e=>t(t=>{let n=t.suggestionBatch.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex);return{suggestionBatch:{…t.suggestionBatch,activeBatch:n,isSuggestionBatchPending:n.length>0}}}),clearSuggestionBatch:()=>t(e=>({suggestionBatch:{…e.suggestionBatch,activeBatch:[],isSuggestionBatchPending:!1}})),loadActiveBatchFromStorage:e=>t(t=>({suggestionBatch:{…t.suggestionBatch,activeBatch:e,isSuggestionBatchPending:e.length>0}}))}}))(…t)}),{name:”pull-request-store”}));try{T.displayName||(T.displayName=”PullRequestStoreContext”)}catch{}try{P.displayName||(P.displayName=”PullRequestStoreProvider”)}catch{}},43883:(e,t,n)=>{n.d(t,{Gl:()=>r,TC:()=>d,ai:()=>s,eh:()=>o});var i=n(21067);let a={};function r(e,t){let n=t?.currency??”USD”;return(a[n]||(a[n]=new Intl.NumberFormat((0,i.JK)(),{currency:n,style:”currency”}))).format(e)}function s(e,t){return new Intl.NumberFormat((0,i.JK)(),{maximumFractionDigits:t?.precision}).format(e)}let l=[“k”,”m”,”b”];function o(e,t){let{suffix:n=!0,capping:i=1/0,precision:a=1}=t??{},r=””,o=Math.min(i,e);if(n){let e=c(o);r=l[e-1]||””,o/=1e3**e}let d=s(o,{precision:a})+r;return e>i?`${d}+`:d}function d(e){if(e<=1e4)return 1;let t=c(e);return e/1e3**t>=10?0:1}function c(e){let t=Math.floor(Math.log(Math.max(Math.abs(e),1))/Math.log(1e3));return Math.min(l.length,t)}},44953:(e,t,n)=>{n.d(t,{_:()=>i});function i(e,t){if(void 0===e)throw TypeError(“attempted to “+t+” private static field before its declaration”)}},48845:(e,t,n)=>{n.d(t,{R:()=>r,hp:()=>a,ol:()=>AuthSessionExpiredError,q$:()=>s});var i=n(96379);let FetchRequestError=class FetchRequestError extends Error{constructor(e){super(“Unable to perform this operation. Please try again later.”),this.name=”FetchRequestError”,this.cause=e}};let ServerUnavailableError=class ServerUnavailableError extends Error{constructor(e){super(“Unable to perform this operation. Please try again later.”),this.name=”ServerUnavailableError”,this.cause=e}};let JSONParseFetchError=class JSONParseFetchError extends Error{constructor(e){super(“Unable to read response from the server. Please try again later.”),this.name=”JSONParseFetchError”,this.cause=e}};let AuthSessionExpiredError=class AuthSessionExpiredError extends Error{constructor(){super(“Unable to perform this operation. Please try again later.”),this.name=”AuthSessionExpiredError”}};async function a(e){try{return await e.json()}catch(e){if(e instanceof Error&&”AbortError”===e.name)return;throw new JSONParseFetchError(e)}}function r(e,t,n){if(!e.ok){if(e.status>=500)throw new ServerUnavailableError(e.status);if(n)throw n;if(t)throw Error(t?.error||”Unknown error occurred”,{cause:e.status});throw Error(`HTTP ${e.status}`)}}async function s(e,t){try{return await (0,i.Sr)(e,t)}catch(e){throw new FetchRequestError(e)}}},49086:(e,t,n)=>{n.d(t,{n:()=>L});var i=n(74848),a=n(82075),r=n(21373),s=n(1481),l=n(96540),o=n(13107),d=n(26410),c=n(68273),u=n(16522),m=n(20622),f=n(53885),h=n(96379),p=n(65510);let g=(0,c.Z6)()?function(e){let t,n,i,a=(0,u.c)(7),r=(0,f.e)(m.uT.codeButton);return a[0]!==r?(t=[m.uT.codeButton,r],n=async()=>{let e=await (0,h.QJ)(r);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},a[0]=r,a[1]=t,a[2]=n):(t=a[1],n=a[2]),a[3]!==e||a[4]!==t||a[5]!==n?(i={queryKey:t,queryFn:n,initialData:e,staleTime:1/0},a[3]=e,a[4]=t,a[5]=n,a[6]=i):i=a[6],(0,p.U)(i)}:function(e){let t=(0,f.e)(m.uT.codeButton);return(0,p.U)({queryKey:[m.uT.codeButton,t],queryFn:async()=>{let e=await (0,h.QJ)(t);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},initialData:e,staleTime:1/0})};var x=n(91747),b=n(31604),v=n(94236),y=n(38621);let j=({isPrimary:e,children:t,size:n,onOpenChange:a})=>{let s=(0,x.u)(“accessible_code_button”),[o,d]=(0,l.useState)(!1);return((0,l.useEffect)(()=>{s&&a&&a(o)},[o,s]),s)?(0,i.jsx)(b.T,{align:”end”,focusZoneSettings:{disabled:!0},open:o,onOpen:()=>d(!0),onClose:()=>d(!1),renderAnchor:t=>(0,i.jsx)(r.Q,{…t,variant:e?”primary”:void 0,leadingVisual:()=>(0,i.jsx)(y.CodeIcon,{className:”hide-sm”}),trailingVisual:()=>(0,i.jsx)(y.TriangleDownIcon,{}),size:n||”medium”,children:”Code”}),children:t}):(0,i.jsxs)(v.W,{children:[(0,i.jsx)(v.W.Button,{variant:e?”primary”:void 0,leadingVisual:()=>(0,i.jsx)(y.CodeIcon,{className:”hide-sm”}),size:n||”medium”,children:”Code”}),(0,i.jsx)(v.W.Overlay,{width:”auto”,align:”end”,children:t})]})};try{j.displayName||(j.displayName=”CodeMenuButton”)}catch{}var C=n(40493);let w=(0,a.A)(“localStorage”),N=”local”,S=”cloud”;function L(e){var t,n;let{primary:a,size:c,showCodespacesTab:u,isEnterprise:m,localTab:f,codespacesTab:h,localTabProps:p,codespacesPath:g}=e,x=”code-button-default-tab”,[b,v]=(0,l.useState)(N),y=(0,l.useCallback)(e=>{v(S),w.setItem(x,S),e?.preventDefault()},[]),L=(0,l.useCallback)(e=>{v(N),w.setItem(x,N),e?.preventDefault()},[]);(0,l.useEffect)(()=>{w.getItem(x)===S&&u&&y()},[]);let I=!m&&u;return(0,i.jsxs)(j,{size:c,isPrimary:a,children:[I&&(0,i.jsxs)(s.A,{className:C.A.TabNav,children:[(0,i.jsx)(s.A.Link,{as:r.Q,selected:b===N,onClick:L,className:C.A.NavItem,children:”Local”}),!m&&u&&(0,i.jsx)(s.A.Link,{as:r.Q,selected:b===S,onClick:y,className:C.A.NavItem,children:”Codespaces”})]}),(0,i.jsxs)(“div”,{className:”react-overview-code-button-action-list py-0″,children:[b===N&&(f||((t=p)?(0,i.jsx)(d.F,{…t}):null)),b===S&&(h||((n=g)?(0,i.jsx)(o.VO,{children:(0,i.jsx)(D,{codespacesPath:n})}):null))]})]})}function D(e){let t=g().data,n=(0,x.u)(“copilot_swe_agent_progress_commands”),{repositoryPolicyInfo:a,…r}=t;return n?(0,i.jsx)(o.NF,{codespacesPath:e.codespacesPath,repoPolicyInfo:a,…r}):(0,i.jsx)(o.NF,{codespacesPath:e.codespacesPath,…t})}try{L.displayName||(L.displayName=”CodeDropdownButton”)}catch{}try{D.displayName||(D.displayName=”SuspendedCodespacesTab”)}catch{}},50129:(e,t,n)=>{n.d(t,{Kg:()=>l,Yu:()=>o});var i=n(74848),a=n(16522),r=n(96540);let s=(0,r.createContext)(null);function l(e){let t,n,r=(0,a.c)(5),{children:l,basePageDataUrl:o}=e;r[0]!==o?(t={basePageDataUrl:o},r[0]=o,r[1]=t):t=r[1];let d=t;return r[2]!==l||r[3]!==d?(n=(0,i.jsx)(s.Provider,{value:d,children:l}),r[2]=l,r[3]=d,r[4]=n):n=r[4],n}function o(){let e=(0,r.useContext)(s);if(!e)throw Error(“usePageDataContext must be used within a PageDataContextProvider”);return e}try{s.displayName||(s.displayName=”PageDataContext”)}catch{}try{l.displayName||(l.displayName=”PageDataContextProvider”)}catch{}},50625:(e,t,n)=>{n.d(t,{L:()=>m});var i=n(68273),a=n(16522),r=n(82075),s=n(96540);let{getItem:l,removeItem:o,setItem:d}=(0,r.D)(“localStorage”),c=(e,t)=>{let{diffSide:n,filePath:i,line:a,subjectId:r}=e;if(t)return`PullRequest:${r}-File:${i}`;if(void 0!==a&&void 0!==n)return`PullRequest:${r}-File:${i}-Line:${a}-DiffSide:${n}`;throw Error(“Cannot build diff line comment cache key for a comment without a line number or diff side”)};function u(e,t){let n=l(e),i=!!n?.text?.trim();return(0,s.useEffect)(()=>{i&&t?.(n)},[i]),{hasPersistedComment:i,removePersistedCommentFromStorage:()=>{o(e),i=!1,n=null}}}(0,i.GV)();let m=(0,i.GV)()?function(e){let t,n,i,r,s=(0,a.c)(16),{diffSide:l,filePath:o,handlePersistedCommentExists:m,line:f,subjectId:h,threadId:p,fileLevelComment:g}=e;e:{let e;if(p){t=p;break e}s[0]!==l||s[1]!==g||s[2]!==o||s[3]!==f||s[4]!==h||s[5]!==p?(e=p??c({diffSide:l,filePath:o,line:f,subjectId:h},g),s[0]=l,s[1]=g,s[2]=o,s[3]=f,s[4]=h,s[5]=p,s[6]=e):e=s[6],t=e}let x=t,{hasPersistedComment:b,removePersistedCommentFromStorage:v}=u(x,m);s[7]!==x?(n=e=>{let t={text:e.text};e.startLine&&e.startSide&&(t={…t,startLine:e.startLine,startSide:e.startSide}),d(x,t)},s[7]=x,s[8]=n):n=s[8];let y=n;s[9]!==h?(i=e=>{let t={shouldFocus:!0};e.text&&(t={…t,text:e.text}),e.startLine&&(t={…t,startLine:e.startLine,startSide:e.givenLineDiffSide,startLineKey:e.startLineKey,endLineKey:e.endLineKey}),d(c({diffSide:e.givenLineDiffSide,filePath:e.givenFilePath,line:e.givenLine,subjectId:h},e.shouldBeFileLevelComment),t)},s[9]=h,s[10]=i):i=s[10];let j=i;return s[11]!==b||s[12]!==j||s[13]!==y||s[14]!==v?(r={hasPersistedComment:b,persistCommentToStorage:y,persistCommentOnGivenLineToStorage:j,removePersistedCommentFromStorage:v},s[11]=b,s[12]=j,s[13]=y,s[14]=v,s[15]=r):r=s[15],r}:function({diffSide:e,filePath:t,handlePersistedCommentExists:n,line:i,subjectId:a,threadId:r,fileLevelComment:l}){let o=(0,s.useMemo)(()=>r||(r??c({diffSide:e,filePath:t,line:i,subjectId:a},l)),[e,t,i,a,r,l]),{hasPersistedComment:m,removePersistedCommentFromStorage:f}=u(o,n);return{hasPersistedComment:m,persistCommentToStorage:e=>{let t={text:e.text};e.startLine&&e.startSide&&(t={…t,startLine:e.startLine,startSide:e.startSide}),d(o,t)},persistCommentOnGivenLineToStorage:e=>{let t={shouldFocus:!0};e.text&&(t={…t,text:e.text}),e.startLine&&(t={…t,startLine:e.startLine,startSide:e.givenLineDiffSide,startLineKey:e.startLineKey,endLineKey:e.endLineKey}),d(c({diffSide:e.givenLineDiffSide,filePath:e.givenFilePath,line:e.givenLine,subjectId:a},e.shouldBeFileLevelComment),t)},removePersistedCommentFromStorage:f}}},51391:(e,t,n)=>{n.d(t,{Aj:()=>u,EV:()=>d,KV:()=>m,M6:()=>o,bo:()=>l,sB:()=>c});var i=n(36472),a=n(3038),r=n(61583),s=n(71315);function l(e){return`b:${e.blobLineNumber}-l:${e.left}-r:${e.right}`}function o({current:e,currentOrientation:t,previous:n,previousOrientation:i}){return!!n&&(“left”===i&&”left”===t&&!!e.left&&!!n.left&&n.left>e.left||”right”===i&&”right”===t&&!!e.right&&!!n.right&&n.right>e.right||”right”===i&&”left”===t&&!!e.right&&!!n.right&&n.right>e.right||”left”===i&&”right”===t&&!!e.left&&!!n.left&&n.left>e.left||!1)}function d({diffAnchor:e,diffLines:t,isSplitView:n,lineRange:r}){let s,o=new Set([]);if(0===t.length)return{selectedLineKeys:o};if(!r)return{selectedLineKeys:new Set([])};let{startLineNumber:d,startOrientation:c,endLineNumber:u,endOrientation:m}=r,f=t;if(n){let e=(0,a.Mk)(t);f=e.leftLines,s=e.rightLines}let h={diffAnchor:e,endLineNumber:u??d,endOrientation:m??c,startLineNumber:d,startOrientation:c},p=(0,i.A)({selectedLineRange:h,leftLines:f,rightLines:s});for(let e=0;e{n.d(t,{_S:()=>r,cB:()=>l,cW:()=>s});var i=n(53627),a=n(71315);let r=()=>{let e=(0,i.JV)().appId;return e&&”rails”!==e?e:crypto.randomUUID()},s=e=>{(0,i.C3)({appId:e})},l=()=>{let e=document.querySelector(“react-app”)||document.querySelector(“projects-v2″);return e?.uuid||”rails”};a.cg?.addEventListener(“hashchange”,()=>{(0,i.C3)({appId:l()})},!0)},53885:(e,t,n)=>{n.d(t,{e:()=>l});var i=n(68273),a=n(16522),r=n(37285),s=n(50129);let l=(0,i.xS)()?function(e,t){let n,i=(0,a.c)(2),{basePageDataUrl:l}=(0,s.Yu)(),o=`${l}/page_data/${e}`;return t&&(o+=`?${t}`),i[0]!==o?(n=(0,r.RD)(o),i[0]=o,i[1]=n):n=i[1],n}:function(e,t){let{basePageDataUrl:n}=(0,s.Yu)(),i=`${n}/page_data/${e}`;return t&&(i+=`?${t}`),(0,r.RD)(i)}},61219:(e,t,n)=>{n.d(t,{U:()=>ev});var i=n(74848),a=n(68273),r=n(16522),s=n(42118),l=n(26156),o=n(18559),d=n(81156),c=n(63352),u=n(73189),m=n(78809),f=n(73017),h=n(71315),p=n(43258),g=n(38621),x=n(72511),b=n(59394),v=n(34164),y=n(96540),j=n(25407),C=n(94747),w=n(27011),N=n(1932),S=n(96379);let L=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),{updateThreads:n}=(0,w.an)();return t[0]!==n?(e={mutationFn:D,onSuccess:(e,t)=>{n((0,N.jM)(e=>{let n=e.flatMap(e=>e.commentsData?.comments.filter(e=>e.author?.login===t.userLogin));if(0!==n.length)for(let e of n)e&&(e.viewerCanBlockFromOrg=!1,e.viewerCanUnblockFromOrg=!0,e.isHidden=t.shouldHideComment||e.isHidden,e.minimizedReason=t.hiddenReason||null)}))}},t[0]=n,t[1]=e):e=t[1],(0,C.n)(e)}:function(){let{updateThreads:e}=(0,w.an)();return(0,C.n)({mutationFn:async({duration:e,hiddenReason:t,organizationLogin:n,notifyBlockedUser:i,shouldHideComment:a,userLogin:r})=>{let s=new FormData;s.append(“duration”,e),s.append(“hide_comment”,a.toString()),t&&s.append(“hidden_reason”,t),s.append(“login”,r),s.append(“send_notification”,i.toString()),await (0,S.DI)((0,j.ggd)({owner:n}),{method:”POST”,body:s,redirect:”manual”})},onSuccess:(t,n)=>{e((0,N.jM)(e=>{let t=e.flatMap(e=>e.commentsData?.comments.filter(e=>e.author?.login===n.userLogin));if(0!==t.length)for(let e of t)e&&(e.viewerCanBlockFromOrg=!1,e.viewerCanUnblockFromOrg=!0,e.isHidden=n.shouldHideComment||e.isHidden,e.minimizedReason=n.hiddenReason||null)}))}})};async function D(e){let{duration:t,hiddenReason:n,organizationLogin:i,notifyBlockedUser:a,shouldHideComment:r,userLogin:s}=e,l=new FormData;l.append(“duration”,t),l.append(“hide_comment”,r.toString()),n&&l.append(“hidden_reason”,n),l.append(“login”,s),l.append(“send_notification”,a.toString()),await (0,S.DI)((0,j.ggd)({owner:i}),{method:”POST”,body:l,redirect:”manual”})}var I=n(48845);let _=(0,a.Z6)()?function(e){let t,n,i,a=(0,r.c)(15),{filePath:s,lineMarkersKey:l,onSuccess:o}=e,d=(0,w.Kp)(),{deleteThreadComment:c}=(0,w.an)(),{onCommentThreadDeleted:u}=(0,w.Ud)(),m=(0,w.SM)(),{removePendingComment:f}=(0,w._N)();return a[0]!==d||a[1]!==s||a[2]!==m||a[3]!==l?(t=async e=>{let{commentId:t,threadId:n}=e,i=m(Number(n),s,l)?.commentsData?.comments?.find(e=>e.id===t);if(!i)return;let a=`${d}/page_data/review_comments/${i.databaseId}`,r=await (0,I.q$)(`${a}`,{method:”DELETE”});if(204===r.status||200===r.status)return;let o=await (0,I.hp)(r);(0,I.R)(r,o)},a[0]=d,a[1]=s,a[2]=m,a[3]=l,a[4]=t):t=a[4],a[5]!==c||a[6]!==s||a[7]!==l||a[8]!==u||a[9]!==o||a[10]!==f?(n=(e,t)=>{let{commentId:n,threadId:i}=t,a=c(Number(i),n,s,l);f(Number(i)),”thread_deleted”===a&&(“thread_deleted”===a&&u({path:s,threadID:i}),o?.())},a[5]=c,a[6]=s,a[7]=l,a[8]=u,a[9]=o,a[10]=f,a[11]=n):n=a[11],a[12]!==t||a[13]!==n?(i={mutationFn:t,onSuccess:n},a[12]=t,a[13]=n,a[14]=i):i=a[14],(0,C.n)(i)}:function({filePath:e,lineMarkersKey:t,onSuccess:n}){let i=(0,w.Kp)(),{deleteThreadComment:a}=(0,w.an)(),{onCommentThreadDeleted:r}=(0,w.Ud)(),s=(0,w.SM)(),{removePendingComment:l}=(0,w._N)();return(0,C.n)({mutationFn:async({commentId:n,threadId:a})=>{let r=s(Number(a),e,t)?.commentsData?.comments?.find(e=>e.id===n);if(!r)return;let l=`${i}/page_data/review_comments/${r.databaseId}`,o=await (0,I.q$)(`${l}`,{method:”DELETE”});if(204===o.status||200===o.status)return;let d=await (0,I.hp)(o);(0,I.R)(o,d)},onSuccess:(i,{commentId:s,threadId:o})=>{let d=a(Number(o),s,e,t);l(Number(o)),”thread_deleted”===d&&(“thread_deleted”===d&&r({path:e,threadID:o}),n?.())}})};var R=n(20622);let A=(0,a.Z6)()?function(e,t){let n,i,a,s=(0,r.c)(9),l=(0,w.Kp)(),o=`${l}/page_data/${R.uT.hideComment}`,{updateThreadComment:d}=(0,w.an)();return s[0]!==o?(n=async e=>{let{commentDatabaseId:t,reason:n}=e,i=await (0,I.q$)(o,{method:”POST”,body:{classifier:n,commentId:t}}),a=await (0,I.hp)(i);return(0,I.R)(i,a),a},s[0]=o,s[1]=n):n=s[1],s[2]!==e||s[3]!==t||s[4]!==d?(i=n=>{d({threadID:n.threadId,filePath:e,lineMarkersKey:t,match:e=>e.databaseId===n.commentDatabaseId,transform:e=>{if(e)return{…e,isHidden:!0,minimizedReason:n.reason}}})},s[2]=e,s[3]=t,s[4]=d,s[5]=i):i=s[5],s[6]!==n||s[7]!==i?(a={mutationFn:n,onSuccess:i},s[6]=n,s[7]=i,s[8]=a):a=s[8],(0,C.n)(a)}:function(e,t){let n=(0,w.Kp)(),i=`${n}/page_data/${R.uT.hideComment}`,{updateThreadComment:a}=(0,w.an)();return(0,C.n)({mutationFn:async({commentDatabaseId:e,reason:t})=>{let n=await (0,I.q$)(i,{method:”POST”,body:{classifier:t,commentId:e}}),a=await (0,I.hp)(n);return(0,I.R)(n,a),a},onSuccess:n=>{a({threadID:n.threadId,filePath:e,lineMarkersKey:t,match:e=>e.databaseId===n.commentDatabaseId,transform:e=>{if(e)return{…e,isHidden:!0,minimizedReason:n.reason}}})}})},k=(0,a.Z6)()?function(e,t){let n,i,a,s=(0,r.c)(9),l=(0,w.Kp)(),{updateThreadComment:o}=(0,w.an)();return s[0]!==l?(n=async e=>{let{commentDatabaseId:t,reaction:n,viewerHasReacted:i}=e,a=`${l}/page_data/${i?R.uT.removeCommentReaction:R.uT.addCommentReaction}`,r=await (0,I.q$)(a,{method:”POST”,body:{reaction:n,commentId:t}}),s=await (0,I.hp)(r);return(0,I.R)(r,s),s},s[0]=l,s[1]=n):n=s[1],s[2]!==e||s[3]!==t||s[4]!==o?(i=(n,i)=>{o({threadID:parseInt(i.threadId),filePath:e,lineMarkersKey:t,match:e=>e.databaseId===i.commentDatabaseId,transform:e=>{if(e)return{…e,reactionGroups:n.reactionGroups}}})},s[2]=e,s[3]=t,s[4]=o,s[5]=i):i=s[5],s[6]!==n||s[7]!==i?(a={mutationFn:n,onSuccess:i},s[6]=n,s[7]=i,s[8]=a):a=s[8],(0,C.n)(a)}:function(e,t){let n=(0,w.Kp)(),{updateThreadComment:i}=(0,w.an)();return(0,C.n)({mutationFn:async({commentDatabaseId:e,reaction:t,viewerHasReacted:i})=>{let a=`${n}/page_data/${i?R.uT.removeCommentReaction:R.uT.addCommentReaction}`,r=await (0,I.q$)(a,{method:”POST”,body:{reaction:t,commentId:e}}),s=await (0,I.hp)(r);return(0,I.R)(r,s),s},onSuccess:(n,a)=>{i({threadID:parseInt(a.threadId),filePath:e,lineMarkersKey:t,match:e=>e.databaseId===a.commentDatabaseId,transform:e=>{if(e)return{…e,reactionGroups:n.reactionGroups}}})}})},E=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),{updateThreads:n}=(0,w.an)();return t[0]!==n?(e={mutationFn:T,onSuccess:(e,t)=>{n((0,N.jM)(e=>{let n=e.flatMap(e=>e.commentsData?.comments.filter(e=>e.author?.login===t.userLogin));if(0!==n.length)for(let e of n)e&&(e.viewerCanBlockFromOrg=!0,e.viewerCanUnblockFromOrg=!1)}))}},t[0]=n,t[1]=e):e=t[1],(0,C.n)(e)}:function(){let{updateThreads:e}=(0,w.an)();return(0,C.n)({mutationFn:async({organizationLogin:e,userLogin:t})=>{await (0,I.q$)(`${(0,j.ggd)({owner:e})}/${(0,j.QU3)(t)}`,{method:”DELETE”,redirect:”manual”})},onSuccess:(t,n)=>{e((0,N.jM)(e=>{let t=e.flatMap(e=>e.commentsData?.comments.filter(e=>e.author?.login===n.userLogin));if(0!==t.length)for(let e of t)e&&(e.viewerCanBlockFromOrg=!0,e.viewerCanUnblockFromOrg=!1)}))}})};async function T(e){let{organizationLogin:t,userLogin:n}=e;await (0,I.q$)(`${(0,j.ggd)({owner:t})}/${(0,j.QU3)(n)}`,{method:”DELETE”,redirect:”manual”})}let O=(0,a.Z6)()?function(e,t){let n,i,a,s=(0,r.c)(9),l=(0,w.Kp)(),o=`${l}/page_data/${R.uT.unhideComment}`,{updateThreadComment:d}=(0,w.an)();return s[0]!==o?(n=async e=>{let{commentDatabaseId:t}=e,n=await (0,I.q$)(o,{method:”POST”,body:{commentId:t}}),i=await (0,I.hp)(n);return(0,I.R)(n,i),i},s[0]=o,s[1]=n):n=s[1],s[2]!==e||s[3]!==t||s[4]!==d?(i=n=>{d({threadID:n.threadId,filePath:e,lineMarkersKey:t,match:e=>e.databaseId===n.commentDatabaseId,transform:P})},s[2]=e,s[3]=t,s[4]=d,s[5]=i):i=s[5],s[6]!==n||s[7]!==i?(a={mutationFn:n,onSuccess:i},s[6]=n,s[7]=i,s[8]=a):a=s[8],(0,C.n)(a)}:function(e,t){let n=(0,w.Kp)(),i=`${n}/page_data/${R.uT.unhideComment}`,{updateThreadComment:a}=(0,w.an)();return(0,C.n)({mutationFn:async({commentDatabaseId:e})=>{let t=await (0,I.q$)(i,{method:”POST”,body:{commentId:e}}),n=await (0,I.hp)(t);return(0,I.R)(t,n),n},onSuccess:n=>{a({threadID:n.threadId,filePath:e,lineMarkersKey:t,match:e=>e.databaseId===n.commentDatabaseId,transform:e=>{if(e)return{…e,isHidden:!1,minimizedReason:null}}})}})};function P(e){if(e)return{…e,isHidden:!1,minimizedReason:null}}let F=(0,a.Z6)()?function(e){let t,n,i,a=(0,r.c)(10),{filePath:s,lineMarkersKey:l,onSuccess:o}=e,d=(0,w.Kp)(),c=`${d}/page_data/${R.uT.updateReviewComment}`,{updateThreadComment:u}=(0,w.an)();return a[0]!==c?(t=async e=>{let{commentId:t,bodyVersion:n,body:i}=e,a=await (0,I.q$)(`${c}${n?`?body_version=${n}`:””}`,{method:”PUT”,body:{body:i,commentId:t}}),r=await (0,I.hp)(a);return(0,I.R)(a,r),r},a[0]=c,a[1]=t):t=a[1],a[2]!==s||a[3]!==l||a[4]!==o||a[5]!==u?(n=e=>{u({threadID:e.threadId,filePath:s,lineMarkersKey:l,match:t=>t.databaseId===e.commentDatabaseId,transform:t=>{if(t)return{…t,body:e.body,bodyHTML:e.bodyHTML,bodyVersion:e.bodyVersion}}}),o?.()},a[2]=s,a[3]=l,a[4]=o,a[5]=u,a[6]=n):n=a[6],a[7]!==t||a[8]!==n?(i={mutationFn:t,onSuccess:n},a[7]=t,a[8]=n,a[9]=i):i=a[9],(0,C.n)(i)}:function({filePath:e,lineMarkersKey:t,onSuccess:n}){let i=(0,w.Kp)(),a=`${i}/page_data/${R.uT.updateReviewComment}`,{updateThreadComment:r}=(0,w.an)();return(0,C.n)({mutationFn:async({commentId:e,bodyVersion:t,body:n})=>{let i=await (0,I.q$)(`${a}${t?`?body_version=${t}`:””}`,{method:”PUT”,body:{body:n,commentId:e}}),r=await (0,I.hp)(i);return(0,I.R)(i,r),r},onSuccess:i=>{r({threadID:i.threadId,filePath:e,lineMarkersKey:t,match:e=>e.databaseId===i.commentDatabaseId,transform:e=>{if(e)return{…e,body:i.body,bodyHTML:i.bodyHTML,bodyVersion:i.bodyVersion}}}),n?.()}})};var $=n(34784),M=n(8748),B=n(50625),V=n(93642),U=n(70109);let G=”ReviewThreadComment-module__ReviewThreadContainer–mI1dg”,H=”ReviewThreadComment-module__anchorable–bXoU8″,q=”ReviewThreadComment-module__ReviewThreadWrapper–zXqpP”,z=”ReviewThreadComment-module__ReviewThreadBox–Ddyuz”,K=”ReviewThreadComment-module__ReviewThreadInnerContainer–xw85s”,W=”ReviewThreadComment-module__ReplyWrapper–yIUaX”,Z=”ReviewThreadComment-module__SafeHTMLBox–SVSQJ”,Q=”ReviewThreadComment-module__BodyHTMLContainer–O6lsx”;var X=n(88431),J=n(40961),Y=n(80081),ee=n(3252);let et=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),n=(0,w.Kp)(),i=`${n}/page_data/${R.uT.submitSuggestedChanges}`;return t[0]!==i?(e={mutationFn:async e=>{let{changes:t,currentOid:n,message:a}=e,r=await (0,I.q$)(i,{method:”POST”,body:{changes:t,currentOid:n,message:a}}),s=await (0,I.hp)(r);return(0,I.R)(r,s),s},onSuccess:en},t[0]=i,t[1]=e):e=t[1],(0,C.n)(e)}:function(){let e=(0,w.Kp)(),t=`${e}/page_data/${R.uT.submitSuggestedChanges}`;return(0,C.n)({mutationFn:async({changes:e,currentOid:n,message:i})=>{let a=await (0,I.q$)(t,{method:”POST”,body:{changes:e,currentOid:n,message:i}}),r=await (0,I.hp)(a);return(0,I.R)(a,r),r},onSuccess:()=>{h.cg?.location.reload()}})};function en(){h.cg?.location.reload()}var ei=n(91747),ea=n(2265),er=n(30459),es=n(26607),el=n(21373),eo=n(88008);let ed=(0,a.GV)()?function(e){let t,n,a,s,l,o=(0,r.c)(28),{onOpenDialog:d,suggestedChange:c}=e,{sendAnalyticsEvent:u}=(0,er.s)(),m=(0,y.useRef)(null),f=c.commentDatabaseId||0;o[0]!==c.suggestionIndex||o[1]!==f?(t={commentDatabaseId:f,suggestionIndex:c.suggestionIndex},o[0]=c.suggestionIndex,o[1]=f,o[2]=t):t=o[2];let h=(0,w.Nk)(t),p=(0,w.RH)(),g=(0,ei.u)(“batch_suggested_changes”),{addSuggestionToBatch:x,removeSuggestionFromBatch:b}=(0,w.xJ)(),v=(0,w.WK)(),j=(0,w.Kp)(),C=(0,w.L3)();o[3]!==x||o[4]!==C||o[5]!==j||o[6]!==u||o[7]!==c.commentDatabaseId||o[8]!==c.suggestionIndex||o[9]!==v?(n=()=>{if(!c.commentDatabaseId)return;let e={commentDatabaseId:c.commentDatabaseId,suggestionIndex:c.suggestionIndex};x(e),(0,eo.CE)(j,C.fullDiff.headOid,[…v.activeBatch,e]),u(“comments.add_suggested_change_to_batch”,”ADD_SUGGESTED_CHANGE_TO_BATCH_BUTTON”)},o[3]=x,o[4]=C,o[5]=j,o[6]=u,o[7]=c.commentDatabaseId,o[8]=c.suggestionIndex,o[9]=v,o[10]=n):n=o[10];let N=n;o[11]!==C||o[12]!==j||o[13]!==b||o[14]!==u||o[15]!==c.commentDatabaseId||o[16]!==c.suggestionIndex||o[17]!==v?(a=()=>{if(!c.commentDatabaseId)return;let e={commentDatabaseId:c.commentDatabaseId,suggestionIndex:c.suggestionIndex};b(e),(0,eo.CE)(j,C.fullDiff.headOid,v.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex)),u(“comments.remove_suggested_change_from_batch”,”REMOVE_SUGGESTED_CHANGE_FROM_BATCH_BUTTON”)},o[11]=C,o[12]=j,o[13]=b,o[14]=u,o[15]=c.commentDatabaseId,o[16]=c.suggestionIndex,o[17]=v,o[18]=a):a=o[18];let S=a;o[19]!==d?(s=()=>{d(m)},o[19]=d,o[20]=s):s=o[20];let L=s;return o[21]!==g||o[22]!==N||o[23]!==L||o[24]!==S||o[25]!==h||o[26]!==p?(l=(0,i.jsx)(“div”,{className:”d-flex flex-row flex-items-center”,children:g&&h?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(es.A,{variant:”attention”,children:”Pending in batch”}),(0,i.jsx)(“div”,{className:”ml-auto”,children:(0,i.jsx)(el.Q,{variant:”danger”,onClick:S,children:”Remove from batch”})})]}):(0,i.jsxs)(“div”,{className:”d-flex gap-2 ml-auto flex-wrap-reverse”,children:[!p&&(0,i.jsx)(el.Q,{variant:”default”,onClick:L,ref:m,children:”Apply suggestion”}),g&&(0,i.jsx)(el.Q,{variant:”primary”,onClick:N,children:”Add suggestion to batch”})]})}),o[21]=g,o[22]=N,o[23]=L,o[24]=S,o[25]=h,o[26]=p,o[27]=l):l=o[27],l}:function({onOpenDialog:e,suggestedChange:t}){let{sendAnalyticsEvent:n}=(0,er.s)(),a=(0,y.useRef)(null),r=(0,w.Nk)({commentDatabaseId:t.commentDatabaseId||0,suggestionIndex:t.suggestionIndex}),s=(0,w.RH)(),l=(0,ei.u)(“batch_suggested_changes”),{addSuggestionToBatch:o,removeSuggestionFromBatch:d}=(0,w.xJ)(),c=(0,w.WK)(),u=(0,w.Kp)(),m=(0,w.L3)(),f=(0,y.useCallback)(()=>{if(!t.commentDatabaseId)return;let e={commentDatabaseId:t.commentDatabaseId,suggestionIndex:t.suggestionIndex};o(e),(0,eo.CE)(u,m.fullDiff.headOid,[…c.activeBatch,e]),n(“comments.add_suggested_change_to_batch”,”ADD_SUGGESTED_CHANGE_TO_BATCH_BUTTON”)},[o,t.commentDatabaseId,t.suggestionIndex,c,u,m,n]),h=(0,y.useCallback)(()=>{if(!t.commentDatabaseId)return;let e={commentDatabaseId:t.commentDatabaseId,suggestionIndex:t.suggestionIndex};d(e),(0,eo.CE)(u,m.fullDiff.headOid,c.activeBatch.filter(t=>t.commentDatabaseId!==e.commentDatabaseId||t.suggestionIndex!==e.suggestionIndex)),n(“comments.remove_suggested_change_from_batch”,”REMOVE_SUGGESTED_CHANGE_FROM_BATCH_BUTTON”)},[d,t.commentDatabaseId,t.suggestionIndex,c,u,m,n]),p=(0,y.useCallback)(()=>{e(a)},[e]);return(0,i.jsx)(“div”,{className:”d-flex flex-row flex-items-center”,children:l&&r?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(es.A,{variant:”attention”,children:”Pending in batch”}),(0,i.jsx)(“div”,{className:”ml-auto”,children:(0,i.jsx)(el.Q,{variant:”danger”,onClick:h,children:”Remove from batch”})})]}):(0,i.jsxs)(“div”,{className:”d-flex gap-2 ml-auto flex-wrap-reverse”,children:[!s&&(0,i.jsx)(el.Q,{variant:”default”,onClick:p,ref:a,children:”Apply suggestion”}),l&&(0,i.jsx)(el.Q,{variant:”primary”,onClick:f,children:”Add suggestion to batch”})]})})};try{ed.displayName||(ed.displayName=”ApplyOrAddToBatch”)}catch{}var ec=n(3585);let eu=(0,a.GV)()?function(e){let t,n,a=(0,r.c)(5),{reason:s,className:l}=e,o=void 0===l?”m-2″:l;return a[0]!==s?(t=(0,i.jsx)(“small”,{className:”fgColor-muted”,children:s}),a[0]=s,a[1]=t):t=a[1],a[2]!==o||a[3]!==t?(n=(0,i.jsx)(“div”,{className:o,children:t}),a[2]=o,a[3]=t,a[4]=n):n=a[4],n}:function({reason:e,className:t=”m-2″}){return(0,i.jsx)(“div”,{className:t,children:(0,i.jsx)(“small”,{className:”fgColor-muted”,children:e})})};try{eu.displayName||(eu.displayName=”CodeSuggestionUnavailable”)}catch{}let em=(0,a.GV)()?function(e){let t,n,a,s,l,o,d,c,u,m,f,h,p=(0,r.c)(38),{suggestedChange:g}=e,{setIsDialogOpen:x}=(0,ea.W)(),[b,v]=(0,y.useState)(!1),j=(0,y.useRef)(void 0),C=(0,ei.u)(“batch_suggested_changes”),N=(0,w.WK)();p[0]!==C||p[1]!==g||p[2]!==N?(t=C&&void 0!==g.commentDatabaseId&&null!==g.commentDatabaseId&&N.activeBatch.some(e=>e.commentDatabaseId===g.commentDatabaseId&&e.suggestionIndex===g.suggestionIndex),p[0]=C,p[1]=g,p[2]=N,p[3]=t):t=p[3];let S=t;p[4]!==g?(n=(0,Y.EJ)(g,[]),p[4]=g,p[5]=n):n=p[5];let{isValid:L,reason:D}=n;p[6]!==g?(a=[g],p[6]=g,p[7]=a):a=p[7];let I=a;p[8]!==I?(s=I.map(ef),p[8]=I,p[9]=s):s=p[9];let _=s;p[10]!==x?(l=e=>{v(e),x?.(e)},p[10]=x,p[11]=l):l=p[11];let R=l;p[12]!==R?(o=()=>{if(R(!1),j.current){let e=j.current.current;setTimeout(()=>e?.focus())}},p[12]=R,p[13]=o):o=p[13];let A=o;p[14]!==R?(d=e=>{R(!0),j.current=e},p[14]=R,p[15]=d):d=p[15];let k=d,{mutate:E}=et(),{fullDiff:T}=(0,w.L3)(),{headOid:O}=T;p[16]!==I||p[17]!==A||p[18]!==O||p[19]!==E?(c=(e,t,n)=>{E({changes:I,message:e,currentOid:O},{onSuccess:()=>{A(),n()},onError:e=>{t(e,”submitSuggestedChanges”,”Failed to submit suggested changes”)}})},p[16]=I,p[17]=A,p[18]=O,p[19]=E,p[20]=c):c=p[20];let P=c;return p[21]!==k||p[22]!==g?(u=(0,i.jsx)(ed,{suggestedChange:g,onOpenDialog:k}),p[21]=k,p[22]=g,p[23]=u):u=p[23],p[24]!==S||p[25]!==L||p[26]!==D?(m=!S&&!L&&D&&(0,i.jsx)(eu,{reason:D,className:”m-0″}),p[24]=S,p[25]=L,p[26]=D,p[27]=m):m=p[27],p[28]!==_||p[29]!==I.length||p[30]!==A||p[31]!==P||p[32]!==b?(f=b&&(0,i.jsx)(ec.$,{authorLogins:_,batchSize:I.length,onClose:A,onCommit:P}),p[28]=_,p[29]=I.length,p[30]=A,p[31]=P,p[32]=b,p[33]=f):f=p[33],p[34]!==u||p[35]!==m||p[36]!==f?(h=(0,i.jsxs)(“div”,{className:”border-top p-2″,children:[u,m,f]}),p[34]=u,p[35]=m,p[36]=f,p[37]=h):h=p[37],h}:function({suggestedChange:e}){let{setIsDialogOpen:t}=(0,ea.W)(),[n,a]=(0,y.useState)(!1),r=(0,y.useRef)(void 0),s=(0,ei.u)(“batch_suggested_changes”),l=(0,w.WK)(),o=s&&void 0!==e.commentDatabaseId&&null!==e.commentDatabaseId&&l.activeBatch.some(t=>t.commentDatabaseId===e.commentDatabaseId&&t.suggestionIndex===e.suggestionIndex),{isValid:d,reason:c}=(0,Y.EJ)(e,[]),u=(0,y.useMemo)(()=>[e],[e]),m=u.map(e=>e.authorLogin),f=(0,y.useCallback)(e=>{a(e),t?.(e)},[t]),h=(0,y.useCallback)(()=>{if(f(!1),r.current){let e=r.current.current;setTimeout(()=>e?.focus())}},[f]),p=(0,y.useCallback)(e=>{f(!0),r.current=e},[f,r]),{mutate:g}=et(),{fullDiff:{headOid:x}}=(0,w.L3)(),b=(0,y.useCallback)((e,t,n)=>{g({changes:u,message:e,currentOid:x},{onSuccess:()=>{h(),n()},onError:e=>{t(e,”submitSuggestedChanges”,”Failed to submit suggested changes”)}})},[u,h,x,g]);return(0,i.jsxs)(“div”,{className:”border-top p-2″,children:[(0,i.jsx)(ed,{suggestedChange:e,onOpenDialog:p}),!o&&!d&&c&&(0,i.jsx)(eu,{reason:c,className:”m-0″}),n&&(0,i.jsx)(ec.$,{authorLogins:m,batchSize:u.length,onClose:h,onCommit:b})]})};function ef(e){return e.authorLogin}try{em.displayName||(em.displayName=”CodeSuggestionActions”)}catch{}let eh=(0,a.GV)()?function(e,t,n,i,a){let s,l,o=(0,r.c)(19),[d,c]=(0,y.useState)();o[0]!==a.lineRange||o[1]!==t.author?.login||o[2]!==t.databaseId||o[3]!==t.id||o[4]!==t.subjectType||o[5]!==e||o[6]!==n||o[7]!==i?(s=()=>{if(!e.current||t.subjectType?.toUpperCase()!==”LINE”)return;let r=[…e.current.getElementsByClassName(“js-apply-changes”)];if(r.length>0){let e=[];for(let s=0;s{if(!e.current||t.subjectType?.toUpperCase()!==”LINE”)return;let r=[…e.current.getElementsByClassName(“js-apply-changes”)];if(r.length>0){let e=[];for(let s=0;s{let{isValid:t,reason:n}=(0,Y.o_)({suggestedChange:e,hasCommitRange:g,isOutdated:c,isPending:”PENDING”===l.state.toUpperCase(),isResolved:u,pullRequestIsClosed:void 0===p||”CLOSED”===p||”MERGED”===p,pullRequestIsInMergeQueue:”QUEUED”===p,userCanApplySuggestion:!!h,applySuggestedChangesValidationData:s,suggestedChangesConfig:m});return!t&&n?(0,J.createPortal)((0,i.jsx)(eu,{reason:n}),e.ref):(0,J.createPortal)((0,i.jsx)(em,{suggestedChange:e}),e.ref)}):null,a[0]=s,a[1]=l,a[2]=g,a[3]=c,a[4]=u,a[5]=p,a[6]=x,a[7]=m,a[8]=h,a[9]=t):t=a[9],a[10]!==t?(n=(0,i.jsx)(i.Fragment,{children:t}),a[10]=t,a[11]=n):n=a[11],n}:function({applySuggestedChangesValidationData:e,comment:t,commentBodyRef:n,filePath:a,isOutdated:r,isThreadResolved:s,suggestedChangesConfig:l,databaseId:o,viewerCanApplySuggestion:d}){let{state:c}=(0,w.Yp)(),u=(0,w.ww)(),m=eh(n,t,a,o,e);return(0,i.jsx)(i.Fragment,{children:m?.length?m.map(n=>{let{isValid:a,reason:o}=(0,Y.o_)({suggestedChange:n,hasCommitRange:u,isOutdated:r,isPending:”PENDING”===t.state.toUpperCase(),isResolved:s,pullRequestIsClosed:void 0===c||”CLOSED”===c||”MERGED”===c,pullRequestIsInMergeQueue:”QUEUED”===c,userCanApplySuggestion:!!d,applySuggestedChangesValidationData:e,suggestedChangesConfig:l});return!a&&o?(0,J.createPortal)((0,i.jsx)(eu,{reason:o}),n.ref):(0,J.createPortal)((0,i.jsx)(em,{suggestedChange:n}),n.ref)}):null})};try{ep.displayName||(ep.displayName=”SuggestedChangeView”)}catch{}var eg=n(30721),ex=n(83494),eb=n(20459);let ev=(0,a.GV)()?function(e){let t,n,a,j,C,N,S,D,I,R,T,P,X,J,Y,ee,et,en,ei,ea,er,es,el,eo,ed,ec,eu,em,ef,eh,ev,ej,eC,ew,eN,eS,eL,eD,eI,e_,eR,eA,ek,eE,eT=(0,r.c)(176),{isAnchorable:eO,index:eP,isInlineComment:eF,isLastChild:e$,isOutdated:eM,isThreadResolved:eB,lineMarkersKey:eV,anchorPrefix:eU,comment:eG,disableDialogMode:eH,enableDialogMode:eq,filePath:ez,gridCellId:eK,hideActions:eW,isFirstComment:eZ,isInDialogMode:eQ,onDeleteLineComment:eX,onQuoteReply:eJ,threadCommentCount:eY,threadId:e0,threadPositionNumber:e1,suggestedChangesConfig:e2,applySuggestedChangesValidationData:e3,viewerData:e4,ghostUser:e5,originalDiffPathUri:e6,headingLevel:e7}=e,e8=void 0!==eO&&eO,e9=void 0===eP?0:eP,te=void 0!==eZ&&eZ,tt=void 0===eJ?u.l:eJ,tn=void 0===e5?d.t.ghostUser:e5,ti=void 0===e7?”h3″:e7,{addToast:ta}=(0,p.Y6)(),[tr,ts]=(0,y.useState)(!1),[tl,to]=(0,y.useState)(eG.isHidden),[td,tc]=(0,y.useState)(!1),[tu,tm]=(0,y.useState)(eG.body),[tf,th]=(0,y.useState)(!1),[tp,tg]=(0,y.useState)(!1),[tx,tb]=(0,y.useState)(“”),tv=(0,w.Kp)(),ty=”FILE”===eG.subjectType;eT[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=e=>{let{text:t}=e;t&&tm(t)},eT[0]=t):t=eT[0],eT[1]!==tv||eT[2]!==eG.id||eT[3]!==ez||eT[4]!==ty?(n={subjectId:tv,filePath:ez,fileLevelComment:ty,threadId:eG.id,handlePersistedCommentExists:t},eT[1]=tv,eT[2]=eG.id,eT[3]=ez,eT[4]=ty,eT[5]=n):n=eT[5];let{persistCommentToStorage:tj,removePersistedCommentFromStorage:tC}=(0,B.L)(n),tw=(0,y.useRef)(null),tN=(0,y.useRef)(null),tS=(0,y.useRef)(null),[tL,tD]=(0,y.useState)(“”);eT[6]===Symbol.for(“react.memo_cache_sentinel”)?(a=()=>{tw.current?.focus()},eT[6]=a):a=eT[6];let tI=a;eT[7]!==tr?(j=()=>{if(tr){let e=window.setTimeout(tI);return()=>{window.clearTimeout(e)}}},C=[tr],eT[7]=tr,eT[8]=j,eT[9]=C):(j=eT[8],C=eT[9]),(0,y.useEffect)(j,C),eT[10]!==eX?(N=()=>{tc(!1),tg(!1),eX?.()},eT[10]=eX,eT[11]=N):N=eT[11],eT[12]!==ez||eT[13]!==eV||eT[14]!==N?(S={filePath:ez,lineMarkersKey:eV,onSuccess:N},eT[12]=ez,eT[13]=eV,eT[14]=N,eT[15]=S):S=eT[15];let{mutate:t_}=_(S);eT[16]!==eH?(D=async()=>{eH?.(),tc(!0)},eT[16]=eH,eT[17]=D):D=eT[17];let tR=D;eT[18]!==ta||eT[19]!==eG.id||eT[20]!==t_||eT[21]!==eq||eT[22]!==ez||eT[23]!==eK||eT[24]!==e0?(I=e=>{“confirm”===e?(tg(!0),t_({commentId:eG.id,threadId:e0,filePath:ez},{onError:()=>{tc(!1),ta({type:”error”,message:”Failed to delete comment”}),tg(!1)}})):(eK&&eq?.(eK),tc(!1),tg(!1))},eT[18]=ta,eT[19]=eG.id,eT[20]=t_,eT[21]=eq,eT[22]=ez,eT[23]=eK,eT[24]=e0,eT[25]=I):I=eT[25];let tA=I,{mutate:tk}=A(ez,eV);eT[26]!==eG.databaseId||eT[27]!==tk?(R=e=>{if(!eG.databaseId)throw Error(“Comment not found”);tk({commentDatabaseId:eG.databaseId,reason:e},{onError:()=>{th(!1),tD(“Failed to hide comment”)},onSuccess:()=>to(!0)})},eT[26]=eG.databaseId,eT[27]=tk,eT[28]=R):R=eT[28];let tE=R,{mutate:tT}=O(ez,eV);eT[29]!==eG.databaseId||eT[30]!==tT?(T=()=>{if(!eG.databaseId)throw Error(“Comment not found”);tT({commentDatabaseId:eG.databaseId},{onError:()=>{th(!1),tD(“Failed to unhide comment”)},onSuccess:()=>to(!1)})},eT[29]=eG.databaseId,eT[30]=tT,eT[31]=T):T=eT[31];let tO=T,{mutate:tP}=L();eT[32]!==tP?(P=(e,t,n,i,a,r)=>tP({duration:e,shouldHideComment:t,hiddenReason:n,organizationLogin:i,notifyBlockedUser:a,userLogin:r},{onError:()=>tD(“Failed to block user”),onSuccess:()=>{t&&to(!0)}}),eT[32]=tP,eT[33]=P):P=eT[33];let tF=P,{mutate:t$}=E();eT[34]!==t$?(X=(e,t)=>t$({organizationLogin:e,userLogin:t},{onError:()=>tD(“Failed to unblock user”)}),eT[34]=t$,eT[35]=X):X=eT[35];let tM=X,{mutate:tB}=k(ez,eV);eT[36]!==ta||eT[37]!==eG.databaseId||eT[38]!==tB||eT[39]!==e0?(J=(e,t)=>{if(!eG.databaseId)throw Error(“Comment not found”);setTimeout(()=>tS.current?.focus(),0),tB({commentDatabaseId:eG.databaseId,threadId:e0,reaction:e,viewerHasReacted:t},{onError:()=>{th(!1),ta({type:”error”,message:”Failed to react to comment”})}})},eT[36]=ta,eT[37]=eG.databaseId,eT[38]=tB,eT[39]=e0,eT[40]=J):J=eT[40];let tV=J;eT[41]===Symbol.for(“react.memo_cache_sentinel”)?(Y=()=>{ts(!0)},eT[41]=Y):Y=eT[41];let tU=Y;eT[42]!==eG.body||eT[43]!==tC?(ee=()=>{ts(!1),tC(),tm(eG.body)},eT[42]=eG.body,eT[43]=tC,eT[44]=ee):ee=eT[44];let tG=ee;eT[45]!==tj?(et=e=>{tj({text:e}),tm(e),tb(void 0)},eT[45]=tj,eT[46]=et):et=eT[46];let tH=et;eT[47]!==tC?(en=()=>{ts(!1),th(!1),tC()},eT[47]=tC,eT[48]=en):en=eT[48],eT[49]!==ez||eT[50]!==eV||eT[51]!==en?(ei={filePath:ez,lineMarkersKey:eV,onSuccess:en},eT[49]=ez,eT[50]=eV,eT[51]=en,eT[52]=ei):ei=eT[52];let{mutate:tq}=F(ei);eT[53]!==ta||eT[54]!==tu||eT[55]!==eG.bodyVersion||eT[56]!==eG.databaseId||eT[57]!==e2?.sourceContentFromDiffLines||eT[58]!==tq?(ea=()=>{th(!0);let e=(0,V.u)(tu,e2?.sourceContentFromDiffLines??””);if(!e.isValid){tb(e.errorMessage),th(!1);return}tq({commentId:String(eG.databaseId),body:tu,bodyVersion:eG.bodyVersion},{onError:()=>{th(!1),ta({type:”error”,message:”Failed to update comment”})}})},eT[53]=ta,eT[54]=tu,eT[55]=eG.bodyVersion,eT[56]=eG.databaseId,eT[57]=e2?.sourceContentFromDiffLines,eT[58]=tq,eT[59]=ea):ea=eT[59],e2?.sourceContentFromDiffLines;let tz=ea;eT[60]!==eG.databaseId?(er=eG.databaseId?.toString(),eT[60]=eG.databaseId,eT[61]=er):er=eT[61];let tK=er,tW=tK?`${void 0===eU?”r”:eU}${tK}`:void 0;eT[62]!==tW?(es=tW&&h.fV?new URL(`${h.fV.pathname}#${tW}`,h.fV.origin).toString():””,eT[62]=tW,eT[63]=es):es=eT[63];let tZ=es,tQ=(0,y.useRef)(null);eT[64]!==tW||eT[65]!==tK||eT[66]!==e8?(el={isAnchorable:e8,commentId:tK,commentAnchor:tW,containerRef:tQ},eT[64]=tW,eT[65]=tK,eT[66]=e8,eT[67]=el):el=eT[67],(0,M.u)(el);let tX=e9>0,tJ=e9>1,tY=tr?”editing”:tl?”hidden”:”visible”;eT[68]!==ti?(eo={as:ti},eT[68]=ti,eT[69]=eo):eo=eT[69];let t0=eo,t1=eG.author?.avatarUrl??tn.avatarUrl,t2=eG.reference.text??`#${eG.reference.number}`;eT[70]!==eG||eT[71]!==tZ||eT[72]!==t2?(ed={…eG,url:tZ,referenceText:t2},eT[70]=eG,eT[71]=tZ,eT[72]=t2,eT[73]=ed):ed=eT[73];let t3=eG.author?.login??tn.login,t4=eG.reference?.author?.login??””;eT[74]===Symbol.for(“react.memo_cache_sentinel”)?(ec={},eT[74]=ec):ec=eT[74];let t5=”copilot”===eG.reviewVariantType?”copilot-pull-request-reviewer”:void 0,t6=”copilot”===eG.reviewVariantType?l.S.Bot:void 0;eT[75]!==eW||eT[76]!==tl||eT[77]!==eM||eT[78]!==tX||eT[79]!==tF||eT[80]!==tR||eT[81]!==tE||eT[82]!==tt||eT[83]!==tM||eT[84]!==tO||eT[85]!==e6||eT[86]!==t0||eT[87]!==t1||eT[88]!==ed||eT[89]!==t3||eT[90]!==t4||eT[91]!==t5||eT[92]!==t6?(eu={headingProps:t0,avatarUrl:t1,comment:ed,commentRef:tQ,deleteComment:tR,editComment:tU,editHistoryComponent:void 0,hideComment:tE,onBlock:tF,onUnblock:tM,onMinimize:to,onSuccessfulBlock:ey,isMinimized:tl,commentAuthorLogin:t3,navigate:u.l,commentSubjectAuthorLogin:t4,onReplySelect:tt,unhideComment:tO,hideActions:eW,isReply:tX,forceInlineAvatar:!0,containerStyle:ec,originalDiffPathUri:e6,isOutdated:eM,commentAuthorSlug:t5,commentAuthorType:t6},eT[75]=eW,eT[76]=tl,eT[77]=eM,eT[78]=tX,eT[79]=tF,eT[80]=tR,eT[81]=tE,eT[82]=tt,eT[83]=tM,eT[84]=tO,eT[85]=e6,eT[86]=t0,eT[87]=t1,eT[88]=ed,eT[89]=t3,eT[90]=t4,eT[91]=t5,eT[92]=t6,eT[93]=eu):eu=eT[93];let t7=eu;eT[94]!==e9||eT[95]!==tX||eT[96]!==e1?(em=()=>tX?void 0!==e1?`Reply ${e9} to Comment ${e1}`:`Reply ${e9}`:void 0!==e1?`Comment ${e1}`:”Comment”,eT[94]=e9,eT[95]=tX,eT[96]=e1,eT[97]=em):em=eT[97];let t8=em;eT[98]!==eG.body||eT[99]!==tr||eT[100]!==tt?(ef=()=>{if(tr)return;let e=h.cg?.getSelection(),t=e?.anchorNode?{anchorNode:e.anchorNode,range:e.getRangeAt(0)}:null;tt((0,eb.E)(tQ?.current,t,eG.body))},eT[98]=eG.body,eT[99]=tr,eT[100]=tt,eT[101]=ef):ef=eT[101];let t9=ef;eT[102]===Symbol.for(“react.memo_cache_sentinel”)?(eh=(0,eg.E7)(),eT[102]=eh):eh=eT[102];let ne=eh;eT[103]!==t9?(ev={“pull-requests-diff-view:quote-reply”:t9},eT[103]=t9,eT[104]=ev):ev=eT[104];let nt=e8?tW:void 0,nn=eF?eQ?0:-1:0,ni=eG.id;eT[105]!==t8||eT[106]!==eQ?(ej=eQ?{role:”document”,”aria-roledescription”:”comment”,”aria-label”:t8()}:{},eT[105]=t8,eT[106]=eQ,eT[107]=ej):ej=eT[107];let na=e8&&H,nr=”hidden”===tY&&”pb-2″;return eT[108]!==na||eT[109]!==nr?(eC=(0,v.$)(G,na,nr),eT[108]=na,eT[109]=nr,eT[110]=eC):eC=eT[110],eT[111]!==tJ||eT[112]!==tX?(ew=tJ&&(0,i.jsx)(“div”,{className:q,”data-is-reply”:tX,children:(0,i.jsx)(“div”,{className:z})}),eT[111]=tJ,eT[112]=tX,eT[113]=ew):ew=eT[113],eT[114]!==t7||eT[115]!==eW?(eN=eW?void 0:(0,i.jsx)($.RelayEnvironmentProvider,{environment:ne,children:(0,i.jsx)(o.p,{…t7})}),eT[114]=t7,eT[115]=eW,eT[116]=eN):eN=eT[116],eT[117]!==eG.body||eT[118]!==t7||eT[119]!==eQ||eT[120]!==eM||eT[121]!==eN||eT[122]!==eY?(eS=(0,i.jsx)(l.v,{…t7,commentBody:eG.body,threadCommentCount:eY,isInDialogMode:eQ,actions:eN,isOutdated:eM}),eT[117]=eG.body,eT[118]=t7,eT[119]=eQ,eT[120]=eM,eT[121]=eN,eT[122]=eY,eT[123]=eS):eS=eT[123],eT[124]!==tJ||eT[125]!==eS?(eL=(0,i.jsx)(“div”,{className:K,”data-is-nested-reply”:tJ,children:eS}),eT[124]=tJ,eT[125]=eS,eT[126]=eL):eL=eT[126],eT[127]!==tL?(eD=tL&&(0,i.jsxs)(x.A,{variant:”danger”,className:”m-3″,children:[(0,i.jsx)(g.StopIcon,{className:”mr-2″}),tL]}),eT[127]=tL,eT[128]=eD):eD=eT[128],eT[129]!==e$||eT[130]!==tX?(eI=tX&&(0,i.jsx)(“div”,{className:W,”data-is-last-child”:e$}),eT[129]=e$,eT[130]=tX,eT[131]=eI):eI=eT[131],eT[132]!==tu||eT[133]!==tY||eT[134]!==tx||eT[135]!==tX||eT[136]!==tf||eT[137]!==tG||eT[138]!==tH||eT[139]!==tz||eT[140]!==e2?(e_=”editing”===tY&&(0,i.jsx)(“div”,{className:(0,v.$)(“flex-1 min-width-0 pr-2 pt-1 pb-2″,tX?”pl-0″:”pl-2″),children:(0,i.jsxs)(U.S,{ref:tw,label:”Update comment”,value:tu,onChange:tH,onPrimaryAction:tz,suggestedChangesConfig:e2,markdownErrorMessage:tx,children:[(0,i.jsx)(s.xR,{variant:”default”,onClick:tG,children:”Cancel”}),(0,i.jsx)(s.xR,{disabled:tf||!tu.length,loading:tf,variant:”primary”,onClick:tz,children:”Update”})]})}),eT[132]=tu,eT[133]=tY,eT[134]=tx,eT[135]=tX,eT[136]=tf,eT[137]=tG,eT[138]=tH,eT[139]=tz,eT[140]=e2,eT[141]=e_):e_=eT[141],eT[142]!==e3||eT[143]!==eG||eT[144]!==tY||eT[145]!==td||eT[146]!==ez||eT[147]!==tA||eT[148]!==tp||eT[149]!==eM||eT[150]!==tX||eT[151]!==eB||eT[152]!==tV||eT[153]!==e2||eT[154]!==e4?.viewerCanApplySuggestion?(eR=”visible”===tY&&(0,i.jsxs)(“div”,{className:Q,”data-is-reply”:tX,children:[eG.bodyHTML&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.vb,{ref:tN,className:(0,v.$)(“markdown-body”,Z),”comment-testid”:`Comment body html for comment ${eG.id}`,html:eG.bodyHTML}),”copilot”===eG.reviewVariantType&&(0,i.jsxs)(“p”,{className:”text-small color-fg-muted mt-2 mb-1″,children:[(0,i.jsx)(“a”,{target:”_blank”,rel:”noopener noreferrer”,className:”Link–inTextBlock”,href:”https://docs.github.com/en/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review”,children:”Copilot”}),” “,”uses AI. Check for mistakes.”]}),(0,i.jsxs)(“div”,{className:”d-flex flex-direction-column gap-2″,children:[“copilot”===eG.reviewVariantType&&(0,i.jsx)(“div”,{className:”mt-2″,children:(0,i.jsx)(c.Z,{commentUrl:eG.url,commentId:eG.databaseId?.toString()??””})}),eG.reactionGroups&&(0,i.jsx)(“div”,{className:”d-flex flex-direction-column mt-2″,children:(0,i.jsx)(m.P,{ref:tS,reactionGroups:eG.reactionGroups,onReact:tV,canReact:eG.viewerCanReact})})]}),e3&&(0,i.jsx)(ep,{comment:eG,commentBodyRef:tN,filePath:ez,isOutdated:eM,isThreadResolved:eB,databaseId:eG.databaseId,suggestedChangesConfig:e2,applySuggestedChangesValidationData:e3,viewerCanApplySuggestion:e4?.viewerCanApplySuggestion})]}),td&&(0,i.jsx)(b.K,{title:”Delete comment?”,confirmButtonContent:”Delete”,confirmButtonType:”danger”,confirmButtonLoading:tp,onClose:tA,children:”Are you sure you want to delete this comment?”})]}),eT[142]=e3,eT[143]=eG,eT[144]=tY,eT[145]=td,eT[146]=ez,eT[147]=tA,eT[148]=tp,eT[149]=eM,eT[150]=tX,eT[151]=eB,eT[152]=tV,eT[153]=e2,eT[154]=e4?.viewerCanApplySuggestion,eT[155]=eR):eR=eT[155],eT[156]!==tX||eT[157]!==eI||eT[158]!==e_||eT[159]!==eR?(eA=(0,i.jsxs)(“div”,{className:q,”data-is-reply”:tX,children:[eI,e_,eR]}),eT[156]=tX,eT[157]=eI,eT[158]=e_,eT[159]=eR,eT[160]=eA):eA=eT[160],eT[161]!==eG.id||eT[162]!==te||eT[163]!==nt||eT[164]!==nn||eT[165]!==ej||eT[166]!==eC||eT[167]!==ew||eT[168]!==eL||eT[169]!==eD||eT[170]!==eA||eT[171]!==e0?(ek=(0,i.jsxs)(“div”,{ref:tQ,id:nt,tabIndex:nn,”data-first-thread-comment”:te,”data-marker-navigation-comment-thread-id”:e0,”data-marker-navigation-comment-id”:ni,…ej,className:eC,children:[ew,eL,eD,eA]}),eT[161]=eG.id,eT[162]=te,eT[163]=nt,eT[164]=nn,eT[165]=ej,eT[166]=eC,eT[167]=ew,eT[168]=eL,eT[169]=eD,eT[170]=eA,eT[171]=e0,eT[172]=ek):ek=eT[172],eT[173]!==ev||eT[174]!==ek?(eE=(0,i.jsx)(ex.tL,{commands:ev,children:ek}),eT[173]=ev,eT[174]=ek,eT[175]=eE):eE=eT[175],eE}:function({isAnchorable:e=!1,index:t=0,isInlineComment:n,isLastChild:a,isOutdated:r,isThreadResolved:j,lineMarkersKey:C,anchorPrefix:N=”r”,comment:S,disableDialogMode:D,enableDialogMode:I,filePath:R,gridCellId:T,hideActions:P,isFirstComment:X=!1,isInDialogMode:J,onDeleteLineComment:Y,onQuoteReply:ee=u.l,threadCommentCount:et,threadId:en,threadPositionNumber:ei,suggestedChangesConfig:ea,applySuggestedChangesValidationData:er,viewerData:es,ghostUser:el=d.t.ghostUser,originalDiffPathUri:eo,headingLevel:ed=”h3″}){let{addToast:ec}=(0,p.Y6)(),[eu,em]=(0,y.useState)(!1),[ef,eh]=(0,y.useState)(S.isHidden),[ev,ey]=(0,y.useState)(!1),[ej,eC]=(0,y.useState)(S.body),[ew,eN]=(0,y.useState)(!1),[eS,eL]=(0,y.useState)(!1),[eD,eI]=(0,y.useState)(“”),e_=(0,w.Kp)(),{persistCommentToStorage:eR,removePersistedCommentFromStorage:eA}=(0,B.L)({subjectId:e_,filePath:R,fileLevelComment:”FILE”===S.subjectType,threadId:S.id,handlePersistedCommentExists:({text:e})=>{e&&eC(e)}}),ek=(0,y.useRef)(null),eE=(0,y.useRef)(null),eT=(0,y.useRef)(null),[eO,eP]=(0,y.useState)(“”),eF=()=>{ek.current?.focus()};(0,y.useEffect)(()=>{if(eu){let e=window.setTimeout(eF);return()=>{window.clearTimeout(e)}}},[eu]);let{mutate:e$}=_({filePath:R,lineMarkersKey:C,onSuccess:()=>{ey(!1),eL(!1),Y?.()}}),eM=async()=>{D?.(),ey(!0)},{mutate:eB}=A(R,C),{mutate:eV}=O(R,C),{mutate:eU}=L(),{mutate:eG}=E(),{mutate:eH}=k(R,C),{mutate:eq}=F({filePath:R,lineMarkersKey:C,onSuccess:()=>{em(!1),eN(!1),eA()}}),ez=(0,y.useCallback)(()=>{eN(!0);let e=(0,V.u)(ej,ea?.sourceContentFromDiffLines??””);if(!e.isValid){eI(e.errorMessage),eN(!1);return}eq({commentId:String(S.databaseId),body:ej,bodyVersion:S.bodyVersion},{onError:()=>{eN(!1),ec({type:”error”,message:”Failed to update comment”})}})},[ec,ej,S,ea?.sourceContentFromDiffLines,eq]),eK=S.databaseId?.toString(),eW=eK?`${N}${eK}`:void 0,eZ=eW&&h.fV?new URL(`${h.fV.pathname}#${eW}`,h.fV.origin).toString():””,eQ=(0,y.useRef)(null);(0,M.u)({isAnchorable:e,commentId:eK,commentAnchor:eW,containerRef:eQ});let eX=t>0,eJ=t>1,eY=eu?”editing”:ef?”hidden”:”visible”,e0={headingProps:{as:ed},avatarUrl:S.author?.avatarUrl??el.avatarUrl,comment:{…S,url:eZ,referenceText:S.reference.text??`#${S.reference.number}`},commentRef:eQ,deleteComment:eM,editComment:()=>{em(!0)},editHistoryComponent:void 0,hideComment:e=>{if(!S.databaseId)throw Error(“Comment not found”);eB({commentDatabaseId:S.databaseId,reason:e},{onError:()=>{eN(!1),eP(“Failed to hide comment”)},onSuccess:()=>eh(!0)})},onBlock:(e,t,n,i,a,r)=>eU({duration:e,shouldHideComment:t,hiddenReason:n,organizationLogin:i,notifyBlockedUser:a,userLogin:r},{onError:()=>eP(“Failed to block user”),onSuccess:()=>{t&&eh(!0)}}),onUnblock:(e,t)=>eG({organizationLogin:e,userLogin:t},{onError:()=>eP(“Failed to unblock user”)}),onMinimize:eh,onSuccessfulBlock:()=>{setTimeout(()=>h.cg?.location.reload(),800)},isMinimized:ef,commentAuthorLogin:S.author?.login??el.login,navigate:u.l,commentSubjectAuthorLogin:S.reference?.author?.login??””,onReplySelect:ee,unhideComment:()=>{if(!S.databaseId)throw Error(“Comment not found”);eV({commentDatabaseId:S.databaseId},{onError:()=>{eN(!1),eP(“Failed to unhide comment”)},onSuccess:()=>eh(!1)})},hideActions:P,isReply:eX,forceInlineAvatar:!0,containerStyle:{},originalDiffPathUri:eo,isOutdated:r,commentAuthorSlug:”copilot”===S.reviewVariantType?”copilot-pull-request-reviewer”:void 0,commentAuthorType:”copilot”===S.reviewVariantType?l.S.Bot:void 0},e1=(0,y.useMemo)(()=>(0,eg.E7)(),[]);return(0,i.jsx)(ex.tL,{commands:{“pull-requests-diff-view:quote-reply”:()=>{if(eu)return;let e=h.cg?.getSelection(),t=e?.anchorNode?{anchorNode:e.anchorNode,range:e.getRangeAt(0)}:null;ee((0,eb.E)(eQ?.current,t,S.body))}},children:(0,i.jsxs)(“div”,{ref:eQ,id:e?eW:void 0,tabIndex:n?J?0:-1:0,”data-first-thread-comment”:X,”data-marker-navigation-comment-thread-id”:en,”data-marker-navigation-comment-id”:S.id,…J?{role:”document”,”aria-roledescription”:”comment”,”aria-label”:eX?void 0!==ei?`Reply ${t} to Comment ${ei}`:`Reply ${t}`:void 0!==ei?`Comment ${ei}`:”Comment”}:{},className:(0,v.$)(G,e&&H,”hidden”===eY&&”pb-2″),children:[eJ&&(0,i.jsx)(“div”,{className:q,”data-is-reply”:eX,children:(0,i.jsx)(“div”,{className:z})}),(0,i.jsx)(“div”,{className:K,”data-is-nested-reply”:eJ,children:(0,i.jsx)(l.v,{…e0,commentBody:S.body,threadCommentCount:et,isInDialogMode:J,actions:P?void 0:(0,i.jsx)($.RelayEnvironmentProvider,{environment:e1,children:(0,i.jsx)(o.p,{…e0})}),isOutdated:r})}),eO&&(0,i.jsxs)(x.A,{variant:”danger”,className:”m-3″,children:[(0,i.jsx)(g.StopIcon,{className:”mr-2″}),eO]}),(0,i.jsxs)(“div”,{className:q,”data-is-reply”:eX,children:[eX&&(0,i.jsx)(“div”,{className:W,”data-is-last-child”:a}),”editing”===eY&&(0,i.jsx)(“div”,{className:(0,v.$)(“flex-1 min-width-0 pr-2 pt-1 pb-2″,eX?”pl-0″:”pl-2″),children:(0,i.jsxs)(U.S,{ref:ek,label:”Update comment”,value:ej,onChange:e=>{eR({text:e}),eC(e),eI(void 0)},onPrimaryAction:ez,suggestedChangesConfig:ea,markdownErrorMessage:eD,children:[(0,i.jsx)(s.xR,{variant:”default”,onClick:()=>{em(!1),eA(),eC(S.body)},children:”Cancel”}),(0,i.jsx)(s.xR,{disabled:ew||!ej.length,loading:ew,variant:”primary”,onClick:ez,children:”Update”})]})}),”visible”===eY&&(0,i.jsxs)(“div”,{className:Q,”data-is-reply”:eX,children:[S.bodyHTML&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(f.vb,{ref:eE,className:(0,v.$)(“markdown-body”,Z),”comment-testid”:`Comment body html for comment ${S.id}`,html:S.bodyHTML}),”copilot”===S.reviewVariantType&&(0,i.jsxs)(“p”,{className:”text-small color-fg-muted mt-2 mb-1″,children:[(0,i.jsx)(“a”,{target:”_blank”,rel:”noopener noreferrer”,className:”Link–inTextBlock”,href:”https://docs.github.com/en/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review”,children:”Copilot”}),” “,”uses AI. Check for mistakes.”]}),(0,i.jsxs)(“div”,{className:”d-flex flex-direction-column gap-2″,children:[“copilot”===S.reviewVariantType&&(0,i.jsx)(“div”,{className:”mt-2″,children:(0,i.jsx)(c.Z,{commentUrl:S.url,commentId:S.databaseId?.toString()??””})}),S.reactionGroups&&(0,i.jsx)(“div”,{className:”d-flex flex-direction-column mt-2″,children:(0,i.jsx)(m.P,{ref:eT,reactionGroups:S.reactionGroups,onReact:(e,t)=>{if(!S.databaseId)throw Error(“Comment not found”);setTimeout(()=>eT.current?.focus(),0),eH({commentDatabaseId:S.databaseId,threadId:en,reaction:e,viewerHasReacted:t},{onError:()=>{eN(!1),ec({type:”error”,message:”Failed to react to comment”})}})},canReact:S.viewerCanReact})})]}),er&&(0,i.jsx)(ep,{comment:S,commentBodyRef:eE,filePath:R,isOutdated:r,isThreadResolved:j,databaseId:S.databaseId,suggestedChangesConfig:ea,applySuggestedChangesValidationData:er,viewerCanApplySuggestion:es?.viewerCanApplySuggestion})]}),ev&&(0,i.jsx)(b.K,{title:”Delete comment?”,confirmButtonContent:”Delete”,confirmButtonType:”danger”,confirmButtonLoading:eS,onClose:e=>{“confirm”===e?(eL(!0),e$({commentId:S.id,threadId:en,filePath:R},{onError:()=>{ey(!1),ec({type:”error”,message:”Failed to delete comment”}),eL(!1)}})):(T&&I?.(T),ey(!1),eL(!1))},children:”Are you sure you want to delete this comment?”})]})]})]})})};function ey(){setTimeout(ej,800)}function ej(){return h.cg?.location.reload()}try{ev.displayName||(ev.displayName=”ReviewThreadComment”)}catch{}},65787:(e,t,n)=>{n.d(t,{U:()=>r});let i=e=>{let t=getComputedStyle(e,null);return!!t&&”function”==typeof t.getPropertyValue&&[“overflow”,”overflow-y”,”overflow-x”].some(e=>{let n=t.getPropertyValue(e);return”auto”===n||”scroll”===n})},a=(e,t)=>e&&null!==e.parentNode?a(e.parentNode,t.concat([e])):t;function r(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(let t of a(e.parentNode,[]))if((t instanceof HTMLElement||t instanceof SVGElement)&&i(t))return t;return document.scrollingElement||document.documentElement}}},66446:(e,t,n)=>{n.d(t,{j:()=>s});var i=n(34418),a=n(99279),r=n(86320);let s=a.G.createQueryRouteConfig(“pullRequestsLayoutRoute”,{path:”/:owner/:repo/pull/:pr_number”,queries:[(0,r.Y)(),{queryName:”tabCounts”,queryDeps:({params:e})=>({pathname:`/${e.owner}/${e.repo}/pull/${e.pr_number}/page_data/tab_counts`}),queryFn:async e=>(0,i.X)(e)},{queryName:”diffstat”,queryDeps:({params:e})=>({pathname:`/${e.owner}/${e.repo}/pull/${e.pr_number}/page_data/diffstat`}),queryFn:async e=>(0,i.X)(e)}]})},66559:(e,t,n)=>{n.d(t,{g:()=>r,n:()=>s});var i=n(99279),a=n(86320);let r=i.G.createQueryRouteConfig(“pullRequestsChangesRoute”,{path:”/:owner/:repo/pull/:pr_number/changes”,queries:[(0,a.Y)()]}),s=i.G.createQueryRouteConfig(“pullRequestsChangesWithRangeRoute”,{path:”/:owner/:repo/pull/:pr_number/changes/:range”,queries:[(0,a.Y)()]})},68874:(e,t,n)=>{n.d(t,{o:()=>u,V:()=>c});var i=n(74848),a=n(69497),r=n(12683);let s=[{unit:”month”,ms:2592e6},{unit:”day”,ms:864e5},{unit:”hour”,ms:36e5},{unit:”minute”,ms:6e4},{unit:”second”,ms:1e3}],l=new Intl.DateTimeFormat(void 0,{year:”numeric”,month:”short”,day:”numeric”,hour:”numeric”,minute:”numeric”,second:void 0,timeZoneName:”short”}),o=new Intl.DateTimeFormat(void 0,{year:”numeric”,month:”short”,day:”numeric”}),d=new Intl.DateTimeFormat(void 0,{month:”short”,day:”numeric”});function c(e,t=!0){let n=””,i=new Date,a=i.getTime()-e.getTime(),r=s.find(e=>e.ms1?”s”:””} ago`}else{let a=e.getFullYear()===i.getFullYear()?d:o;n=`${t?”on “:””}${a.format(e)}`}return n}function u({timestamp:e,usePreposition:t=!0,linkUrl:n,sx:s}){let o=c(e,t),d=l.format(e);return n?(0,i.jsx)(r.N_,{sx:{…s},href:n,target:”_blank”,className:”Ago-module__AgoTimestampLink–cfwj_”,children:(0,i.jsx)(a.A,{inline:!0,title:d,children:(0,i.jsx)(“span”,{title:d,className:”Ago-module__timestampText–rtBsS”,children:o})})}):(0,i.jsx)(a.A,{inline:!0,title:d,children:(0,i.jsx)(r.EY,{title:d,sx:s,children:o})})}try{u.displayName||(u.displayName=”Ago”)}catch{}},69510:(e,t,n)=>{n.d(t,{XG:()=>c,_l:()=>m});var i=n(68273),a=n(16522),r=n(65510),s=n(20622),l=n(96379);function o(e){return null!==e&&”object”==typeof e&&”previewInfo”in e}function d(e){return{thread:{id:e.threadId,isResolved:e.isResolved,isOutdated:e.isOutdated,line:e.line,subjectType:e.subjectType,subject:e.subject,commentsData:e.commentsData},previewInfo:{threadId:e.threadId,commentId:e.commentId,path:e.path,threadPreviewComments:e.threadPreviewComments,originalDiffPathUri:e.originalDiffPathUri,firstComment:e.firstComment,subject:e.subject}}}function c(e){return[s.uT.threadPreviews,e]}function u(e){let t=`${e}/page_data/${s.uT.threadPreviews}`;return{queryKey:c(e),queryFn:async()=>{let e=await (0,l.QJ)(t);if(!e.ok)throw Error(`HTTP ${e.status}`);let n=await e.json();return n.length>0&&!o(n[0])?n.map(d):n}}}let m=(0,i.Z6)()?function(e){let t,n,i,s=(0,a.c)(8),{pathName:l,initialData:c}=e;s[0]!==l?(t=u(l),s[0]=l,s[1]=t):t=s[1];let{queryFn:m,queryKey:f}=t;s[2]!==c?(n=c&&c.length>0&&!o(c[0])?c.map(d):c,s[2]=c,s[3]=n):n=s[3];let h=n;return s[4]!==m||s[5]!==f||s[6]!==h?(i={queryKey:f,queryFn:m,initialData:h,staleTime:1/0},s[4]=m,s[5]=f,s[6]=h,s[7]=i):i=s[7],(0,r.U)(i)}:function({pathName:e,initialData:t}){let{queryFn:n,queryKey:i}=u(e),a=t&&t.length>0&&!o(t[0])?t.map(d):t;return(0,r.U)({queryKey:i,queryFn:n,initialData:a,staleTime:1/0})}},69759:(e,t,n)=>{n.d(t,{B:()=>i});function i(e,t){let n=e.createElement(“template”);return n.innerHTML=t,e.importNode(n.content,!0)}},70109:(e,t,n)=>{n.d(t,{S:()=>d});var i=n(74848),a=n(68273),r=n(16522),s=n(42118),l=n(96540),o=n(27011);let d=(0,l.forwardRef)((0,a.GV)()?(e,t)=>{let n,a,l,d,c,u,m,f=(0,r.c)(21);f[0]!==e?({children:n,…a}=e,f[0]=e,f[1]=n,f[2]=a):(n=f[1],a=f[2]);let h=(0,o.Yp)(),{baseRepository:p}=(0,o.GK)(),g=(0,o.L3)();f[3]!==h.id?(l={id:h.id},f[3]=h.id,f[4]=l):l=f[4];let x=`${p.ownerLogin}/${p.name}`;f[5]!==p.id||f[6]!==x?(d={databaseId:p.id,nwo:x,slashCommandsEnabled:!1},f[5]=p.id,f[6]=x,f[7]=d):d=f[7],f[8]!==g.effectiveRange.baseOid||f[9]!==g.effectiveRange.headOid?(c={startCommitOid:g.effectiveRange.baseOid,endCommitOid:g.effectiveRange.headOid},f[8]=g.effectiveRange.baseOid,f[9]=g.effectiveRange.headOid,f[10]=c):c=f[10],f[11]!==h.number||f[12]!==l||f[13]!==d||f[14]!==c?(u={type:”pull_request”,id:l,pullRequestNumber:h.number,repository:d,comparison:c},f[11]=h.number,f[12]=l,f[13]=d,f[14]=c,f[15]=u):u=f[15];let b=u;return f[16]!==n||f[17]!==t||f[18]!==a||f[19]!==b?(m=(0,i.jsx)(s.hF,{…a,ref:t,placeholder:”Leave a comment”,actions:n,subject:b,showLabel:!1}),f[16]=n,f[17]=t,f[18]=a,f[19]=b,f[20]=m):m=f[20],m}:({children:e,…t},n)=>{let a=(0,o.Yp)(),{baseRepository:r}=(0,o.GK)(),l=(0,o.L3)(),d={type:”pull_request”,id:{id:a.id},pullRequestNumber:a.number,repository:{databaseId:r.id,nwo:`${r.ownerLogin}/${r.name}`,slashCommandsEnabled:!1},comparison:{startCommitOid:l.effectiveRange.baseOid,endCommitOid:l.effectiveRange.headOid}};return(0,i.jsx)(s.hF,{…t,ref:n,placeholder:”Leave a comment”,actions:e,subject:d,showLabel:!1})});d.displayName=”ConversationCommentBox”},71317:(e,t,n)=>{n.d(t,{k:()=>a});var i=n(71315);function a(e,t=0){if(void 0===i.XC)return;let n=i.XC.getElementById(“screenReaderAnnouncementDiv”)??void 0;if(n||(n=function(){if(void 0===i.XC)return;let e=i.XC.createElement(“div”);return e.classList.add(“sr-only”,”mt-n1″),e.id=”screenReaderAnnouncementDiv”,e.setAttribute(“role”,”alert”),e.setAttribute(“data-testid”,”screenReaderAnnouncement”),e.setAttribute(“aria-live”,”assertive”),i.XC.body.appendChild(e),e}()),!n)return;let r=n.textContent===e?`${e}\u00A0`:e;setTimeout(()=>{n&&(n.textContent=r)},t)}},72501:(e,t,n)=>{n.d(t,{V:()=>s,c:()=>r});var i=n(99279),a=n(86320);let r=i.G.createQueryRouteConfig(“pullRequestsFilesRoute”,{path:”/:owner/:repo/pull/:pr_number/files”,queries:[(0,a.Y)()]}),s=i.G.createQueryRouteConfig(“pullRequestsFilesWithRangeRoute”,{path:”/:owner/:repo/pull/:pr_number/files/:range”,queries:[(0,a.Y)()]})},73262:(e,t,n)=>{n.d(t,{K:()=>c});var i=n(74848),a=n(16522),r=n(96540),s=n(21373),l=n(34164),o=n(48505),d=n(18373);function c(e){let t,n,c,u,m,f,h,p,g,x,b=(0,a.c)(21),{automatedComment:v,isButtonDisabled:y,dismissError:j,onDismiss:C,onReopen:w,className:N}=e,[S,L]=(0,r.useState)(!1),{isDismissable:D,isReopenable:I,resourceName:_,toggleButtonLabel:R}=(f=(0,a.c)(6),p=!(h=v.isDismissed),g=”alert”,v.source===o.vk.CodeQuality&&(g=”finding”),x=h?`Reopen ${g}`:`Dismiss ${g}`,f[0]!==p||f[1]!==h||f[2]!==h||f[3]!==g||f[4]!==x?(m={isDismissed:h,isDismissable:p,isReopenable:h,resourceName:g,toggleButtonLabel:x},f[0]=p,f[1]=h,f[2]=h,f[3]=g,f[4]=x,f[5]=m):m=f[5],m),A=y||!v.viewerCanDismiss,k=y||!v.viewerCanReopen;return b[0]!==v||b[1]!==S||b[2]!==j||b[3]!==C?(t=S&&(0,i.jsx)(d.U,{setOpen:L,count:1,error:j,dismissalOptions:v.dismissalOptions,onSubmit:e=>{let{resolution:t,dismissalComment:n}=e;return C({reason:t,resolutionNote:n},{onSuccess:()=>L(!1)})},delegatedAlertDismissalEnabled:!1,codeSecurity:v.source===o.vk.CodeScanning}),b[0]=v,b[1]=S,b[2]=j,b[3]=C,b[4]=t):t=b[4],b[5]!==N||b[6]!==A||b[7]!==D||b[8]!==_||b[9]!==R?(n=D&&(0,i.jsxs)(“div”,{className:(0,l.$)(“d-flex flex-items-center flex-wrap”,N),children:[(0,i.jsx)(s.Q,{“aria-label”:R,className:”mr-2″,onClick:()=>L(!0),disabled:A,children:R}),(0,i.jsxs)(“span”,{className:”fgColor-muted f6″,children:[“Dismissing the “,_,” will mark this conversation as resolved.”]})]}),b[5]=N,b[6]=A,b[7]=D,b[8]=_,b[9]=R,b[10]=n):n=b[10],b[11]!==N||b[12]!==k||b[13]!==I||b[14]!==w||b[15]!==R?(c=I&&(0,i.jsx)(“div”,{className:(0,l.$)(“d-flex flex-items-center flex-wrap”,N),children:(0,i.jsx)(s.Q,{“aria-label”:R,onClick:w,disabled:k,children:R})}),b[11]=N,b[12]=k,b[13]=I,b[14]=w,b[15]=R,b[16]=c):c=b[16],b[17]!==t||b[18]!==n||b[19]!==c?(u=(0,i.jsxs)(i.Fragment,{children:[t,n,c]}),b[17]=t,b[18]=n,b[19]=c,b[20]=u):u=b[20],u}try{c.displayName||(c.displayName=”BaseAutomatedReviewCommentActions”)}catch{}},73870:(e,t,n)=>{n.d(t,{$:()=>s});var i=n(55514),a=n(99279),r=n(86320);let s=a.G.createQueryRouteConfig(“pullRequestsConversationsRoute”,{path:”/:owner/:repo/pull/:pr_number”,queries:[(0,r.Y)(),(0,i.D)({partialName:”Conversation”,queryDeps:({pathname:e})=>({pathname:`${e}/partials/conversation`})}),(0,i.D)({partialName:”Sidebar”,queryDeps:({pathname:e})=>({pathname:`${e}/partials/sidebar`})})],index:!0})},75735:(e,t,n)=>{n.d(t,{_:()=>s});var i=n(5570),a=n(37351),r=n(44953);function s(e,t,n,s){return(0,a._)(e,t),(0,r._)(n,”set”),(0,i._)(e,n,s),s}},79036:(e,t,n)=>{n.d(t,{S:()=>c,Xh:()=>d,GF:()=>u});var i=n(74848),a=n(68273),r=n(16522),s=n(34164),l=n(48505);let o=”AnnotationIcon-module__AnimatedAnnotationIcon–rXSEJ”;function d({annotationLevel:e,…t}){let{icon:n,…a}=u[e];return function({fill:e,stroke:t,ariaLabel:n,svgHtml:a,className:r}){return(0,i.jsx)(“svg”,{“aria-label”:n,className:r,fill:e,height:”24″,stroke:t,strokeLinecap:”round”,strokeLinejoin:”round”,strokeWidth:”2″,style:{boxShadow:”none”},viewBox:”0 0 24 24″,width:”24″,xmlns:”http://www.w3.org/2000/svg”,children:a})}({…n,…a,…t})}let c=(0,a.GV)()?function(e){let t,n,a,l,c=(0,r.c)(8);return c[0]!==e?({className:t,…n}=e,c[0]=e,c[1]=t,c[2]=n):(t=c[1],n=c[2]),c[3]!==t?(a=(0,s.$)(o,t),c[3]=t,c[4]=a):a=c[4],c[5]!==n||c[6]!==a?(l=(0,i.jsx)(d,{…n,className:a}),c[5]=n,c[6]=a,c[7]=l):l=c[7],l}:function({className:e,…t}){return(0,i.jsx)(d,{…t,className:(0,s.$)(o,e)})},u={[l.UZ.Failure]:{priority:1,ariaLabel:”Check failure”,primaryColor:”danger.fg”,primaryColorClass:”fgColor-danger”,borderColor:”borderColor-danger-emphasis”,icon:{fill:”var(–bgColor-danger-emphasis, var(–color-danger-emphasis))”,stroke:”var(–fgColor-onEmphasis, var(–color-fg-on-emphasis))”,svgHtml:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“circle”,{cx:”12″,cy:”12″,r:”10″}),(0,i.jsx)(“line”,{x1:”15″,x2:”9″,y1:”9″,y2:”15″}),(0,i.jsx)(“line”,{x1:”9″,x2:”15″,y1:”9″,y2:”15″})]})}},[l.UZ.Warning]:{priority:2,ariaLabel:”Check warning”,primaryColor:”attention.fg”,primaryColorClass:”fgColor-attention”,borderColor:”borderColor-attention-emphasis”,icon:{fill:”var(–bgColor-attention-emphasis, var(–color-attention-emphasis))”,stroke:”var(–fgColor-onEmphasis, var(–color-fg-on-emphasis))”,svgHtml:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“circle”,{cx:”12″,cy:”12″,r:”10″}),(0,i.jsx)(“line”,{x1:”12″,x2:”12″,y1:”8″,y2:”12″}),(0,i.jsx)(“line”,{x1:”12″,x2:”12″,y1:”16″,y2:”16″})]})}},[l.UZ.Notice]:{priority:3,ariaLabel:”Check notice”,primaryColor:”fg.muted”,primaryColorClass:”fgColor-muted”,borderColor:”fgColor-muted”,icon:{fill:”var(–bgColor-neutral-emphasis, var(–color-neutral-emphasis))”,stroke:”var(–fgColor-onEmphasis, var(–color-fg-on-emphasis))”,svgHtml:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“circle”,{cx:”12″,cy:”12″,r:”10″}),(0,i.jsx)(“line”,{x1:”12″,x2:”12″,y1:”16″,y2:”12″}),(0,i.jsx)(“line”,{x1:”12″,x2:”12″,y1:”8″,y2:”8″})]})}}};try{d.displayName||(d.displayName=”AnnotationIcon”)}catch{}try{c.displayName||(c.displayName=”AnimatedAnnotationIcon”)}catch{}},80081:(e,t,n)=>{n.d(t,{EJ:()=>a,Lm:()=>r,o_:()=>i});function i({suggestedChange:e,hasCommitRange:t,isOutdated:n,isPending:i,isResolved:a,pullRequestIsClosed:r,pullRequestIsInMergeQueue:s,userCanApplySuggestion:l,applySuggestedChangesValidationData:o,suggestedChangesConfig:d}){let{lineRange:c}=o;if(n)return{isValid:!1,reason:”This suggestion is outdated and cannot be applied.”};if(i)return{isValid:!1,reason:”This suggestion is part of a pending comment and cannot be applied.”};if(a)return{isValid:!1,reason:”This suggestion is part of a resolved comment and cannot be applied.”};if(r)return{isValid:!1,reason:”This suggestion cannot be applied because the pull request is closed.”};if(s)return{isValid:!1,reason:”This suggestion cannot be applied because the pull request is queued to merge.”};if(!l)return{isValid:!1,reason:”You do not have permission to apply this suggestion.”};if(!c)return{isValid:!1,reason:”This suggestion does not have a valid line range.”};if(t)return{isValid:!1,reason:”Unable to apply suggestions when viewing a specific commit range.”};if(!d)return{isValid:!1,reason:”Unable to determine the validity of this suggestion.”};if(!d?.isValidSuggestionRange)return{isValid:!1,reason:”Unable to apply suggestions on deleted lines.”};let u=d?.sourceContentFromDiffLines,m=e.suggestion.join(`
`);return 0!==e.suggestion.length&&m===u?{isValid:!1,reason:”This suggestion is invalid because no changes were made to the code.”}:{isValid:!0}}function a(e,t){return t.length>=50?{isValid:!1,reason:”Unable to commit due to too many changes in the batch.”}:t.find(t=>t.threadId===e.threadId)||function(e,t){for(let a of t)if(e.path===a.path){var n,i;return n=e.lineRange,i=a.lineRange,n.endLineNumber>=i.startLineNumber&&n.startLineNumber<=i.endLineNumber}return!1}(e,t)?{isValid:!1,reason:"Unable to commit due to other pending changes affecting this line."}:{isValid:!0}}function r(e){if(!e||e.subjectType?.toUpperCase()!=="LINE")return;let t=e.positioning??e.subject;if(!t)return;let n=t.startDiffSide??t.endDiffSide;if(!n||"isOutdated"in t&&t.isOutdated||!t.endLine||!t.endDiffSide)return;let i=t.startLine??t.endLine;return{endLineNumber:t.endLine,endOrientation:t.endDiffSide,startLineNumber:i,startOrientation:n||"RIGHT"}}},81070:(e,t,n)=>{n.d(t,{X:()=>s});var i=n(74848),a=n(12683),r=n(96540);function s({children:e,onObserve:t,onUnobserve:n,sx:s,…l}){let o=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(o.current){let e=o.current;return t?.(e),()=>n?.(e)}},[o,t,n]),(0,i.jsx)(a.az,{sx:s,…l,ref:o,children:e})}try{s.displayName||(s.displayName=”ObservableBox”)}catch{}},81075:(e,t,n)=>{n.d(t,{_:()=>s});var i=n(50894),a=n(37351),r=n(44953);function s(e,t,n){return(0,a._)(e,t),(0,r._)(n,”get”),(0,i._)(e,n)}},82130:(e,t,n)=>{n.d(t,{q:()=>l});var i=n(68273),a=n(16522),r=n(30459),s=n(96540);let l=(0,i.Z6)()?function(){let e,t,n=(0,a.c)(4),{sendAnalyticsEvent:i}=(0,r.s)();n[0]!==i?(e=(e,t,n)=>{i(e,t,void 0===n?{}:n)},n[0]=i,n[1]=e):e=n[1];let s=e;return n[2]!==s?(t={sendPullRequestAnalyticsEvent:s},n[2]=s,n[3]=t):t=n[3],t}:function(){let{sendAnalyticsEvent:e}=(0,r.s)();return{sendPullRequestAnalyticsEvent:(0,s.useCallback)((t,n,i={})=>{e(t,n,i)},[e])}}},82603:(e,t,n)=>{n.d(t,{dG:()=>u,hG:()=>h,o5:()=>m});var i=n(68273),a=n(16522),r=n(96540),s=n(97286),l=n(65510),o=n(96379),d=n(20622);function c(e){return{queryKey:[d.uT.codeowners,e],queryFn:async()=>{let t=`${e}/page_data/${d.uT.codeowners}`,n=await (0,o.QJ)(t);if(!n.ok)throw Error(`HTTP ${n.status}`);return await n.json()},staleTime:1/0}}let u=(0,i.Z6)()?function(e){let t,n,i=(0,a.c)(6),{basePath:r,initialData:l}=e;i[0]!==r?(t=c(r),i[0]=r,i[1]=t):t=i[1];let{queryFn:o,queryKey:d}=t;return i[2]!==l||i[3]!==o||i[4]!==d?(n={queryKey:d,queryFn:o,initialData:l,staleTime:1/0},i[2]=l,i[3]=o,i[4]=d,i[5]=n):n=i[5],(0,s.I)(n)}:function({basePath:e,initialData:t}){let{queryFn:n,queryKey:i}=c(e);return(0,s.I)({queryKey:i,queryFn:n,initialData:t,staleTime:1/0})},m=(0,i.Z6)()?function(e){let t,n,i,r=(0,a.c)(8),{basePath:s,diffPath:o}=e;r[0]!==s?(t=c(s),r[0]=s,r[1]=t):t=r[1];let{queryFn:d,queryKey:u}=t;r[2]!==o?(n=e=>h({codeownersData:e,diffPath:o}),r[2]=o,r[3]=n):n=r[3];let m=n;return r[4]!==d||r[5]!==u||r[6]!==m?(i={queryKey:u,queryFn:d,staleTime:1/0,select:m},r[4]=d,r[5]=u,r[6]=m,r[7]=i):i=r[7],(0,l.U)(i)}:function({basePath:e,diffPath:t}){let{queryFn:n,queryKey:i}=c(e);return(0,l.U)({queryKey:i,queryFn:n,staleTime:1/0,select:(0,r.useCallback)(e=>h({codeownersData:e,diffPath:t}),[t])})},f={isOwnedByViewer:!1,owners:[],ruleLineNumber:void 0,ruleUrl:void 0};function h({diffPath:e,codeownersData:t}){if(!t)return f;let n=t.ownershipByPath[e];return n?{isOwnedByViewer:n.isOwnedByViewer,owners:n.owners||[],ruleLineNumber:n.ruleLineNumber,ruleUrl:n.ruleUrl}:f}},85933:(e,t,n)=>{function i(){return!!document.querySelector(‘react-app[data-lazy=”true”]’)}function a(){return!!document.querySelector(‘react-app[data-alternate=”true”]’)}function r(){return!!document.querySelector(“header.AppHeader”)}function s(){return performance.getEntriesByType(“resource”).some(e=>”fetch”===e.initiatorType&&e.name.includes(“_graphql?”))}function l(){return performance.getEntriesByType(“resource”).some(e=>”script”===e.initiatorType)}n.d(t,{Dk:()=>r,NT:()=>c,X:()=>d,_:()=>i,aE:()=>s,u$:()=>a,xF:()=>l}),n(69599);let o=null;function d(){return o}function c(e){o=e}},86909:(e,t,n)=>{n.d(t,{YH:()=>S,Gt:()=>N,Vv:()=>R});var i,a=n(74848),r=n(68273),s=n(16522),l=n(77430),o=n(73017),d=n(38621),c=n(26108),u=n(98552),m=n(69497),f=n(21373),h=n(34164),p=n(48505);let g=”Annotation-module__annotation–KlX5M”,x=”Annotation-module__annotationSource–fZyli”,b=”Annotation-module__annotationMessage–gFM9M”,v=”Annotation-module__inlineReviewThreadHeading–Qj9j8″;var y=n(79036),j=n(96540),C=n(82075),w=n(71315);let N={[p.UZ.Failure]:(0,a.jsx)(d.StopIcon,{className:”fgColor-danger mr-2″}),[p.UZ.Warning]:(0,a.jsx)(d.AlertIcon,{className:”fgColor-attention mr-2″}),[p.UZ.Notice]:(0,a.jsx)(d.InfoIcon,{className:”fgColor-muted mr-2″})},S=(0,r.GV)()?function(e){let t,n,i,r,p,v,j,C=(0,s.c)(31),{annotation:w,inSidePanel:N}=e,S=N?”h3″:”h2″,{isCollapsed:L,handleToggleCollapsed:_}=R(w),A=y.GF[w.annotationLevel];return C[0]!==A.borderColor?(t=(0,h.$)(“p-1 bgColor-default”,A.borderColor,g),C[0]=A.borderColor,C[1]=t):t=C[1],C[2]!==_||C[3]!==N||C[4]!==L?(n=!N&&(0,a.jsx)(c.K,{“aria-label”:L?”Expand annotation”:”Collapse annotation”,icon:L?d.ChevronRightIcon:d.ChevronDownIcon,size:”small”,variant:”invisible”,onClick:_}),C[2]=_,C[3]=N,C[4]=L,C[5]=n):n=C[5],C[6]!==w||C[7]!==N?(i=!N&&(0,a.jsx)(D,{annotation:w}),C[6]=w,C[7]=N,C[8]=i):i=C[8],C[9]!==w||C[10]!==N?(r=N&&(0,a.jsx)(I,{annotation:w}),C[9]=w,C[10]=N,C[11]=r):r=C[11],C[12]!==n||C[13]!==i||C[14]!==r?(p=(0,a.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[n,i,r]}),C[12]=n,C[13]=i,C[14]=r,C[15]=p):p=C[15],C[16]!==S||C[17]!==w.annotationLevel||C[18]!==w.appAvatarAltText||C[19]!==w.appAvatarUrl||C[20]!==w.checkRun||C[21]!==w.checkSuiteName||C[22]!==w.message||C[23]!==w.title||C[24]!==N||C[25]!==L?(v=(!L||N)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(“div”,{className:”ml-4 mt-2″,children:w.title&&(0,a.jsx)(u.A,{weight:”semibold”,size:”medium”,className:y.GF[w.annotationLevel].primaryColorClass,children:w.title})}),(0,a.jsxs)(S,{className:”sr-only”,children:[y.GF[w.annotationLevel].ariaLabel,”: “,w.title]}),(0,a.jsx)(“div”,{className:”mb-3 mt-1 ml-4″,children:w.message&&(0,a.jsx)(o.$6,{html:w.message,className:b})}),(0,a.jsxs)(“div”,{className:”d-flex flex-items-center flex-justify-between ml-4 pr-2 pb-2″,children:[(0,a.jsxs)(“div”,{className:x,children:[(0,a.jsx)(l.r,{src:w.appAvatarUrl,alt:w.appAvatarAltText}),(0,a.jsxs)(m.A,{className:”ml-2″,maxWidth:”300px”,inline:!0,title:`${w.checkSuiteName} / ${w.checkRun.name}`,children:[(0,a.jsx)(u.A,{weight:”semibold”,size:”small”,children:w.checkSuiteName}),” “,”/ “,(0,a.jsx)(u.A,{size:”small”,children:w.checkRun.name})]})]}),w.checkRun.detailsUrl&&(0,a.jsx)(f.Q,{as:”a”,href:w.checkRun.detailsUrl,size:”small”,children:”View details”})]})]}),C[16]=S,C[17]=w.annotationLevel,C[18]=w.appAvatarAltText,C[19]=w.appAvatarUrl,C[20]=w.checkRun,C[21]=w.checkSuiteName,C[22]=w.message,C[23]=w.title,C[24]=N,C[25]=L,C[26]=v):v=C[26],C[27]!==t||C[28]!==p||C[29]!==v?(j=(0,a.jsxs)(“div”,{className:t,children:[p,v]}),C[27]=t,C[28]=p,C[29]=v,C[30]=j):j=C[30],j}:function({annotation:e,inSidePanel:t}){let n=(0,j.useMemo)(()=>t?”h3″:”h2″,[t]),{isCollapsed:i,handleToggleCollapsed:r}=R(e);return(0,a.jsxs)(“div”,{className:(0,h.$)(“p-1 bgColor-default”,y.GF[e.annotationLevel].borderColor,g),children:[(0,a.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[!t&&(0,a.jsx)(c.K,{“aria-label”:i?”Expand annotation”:”Collapse annotation”,icon:i?d.ChevronRightIcon:d.ChevronDownIcon,size:”small”,variant:”invisible”,onClick:r}),!t&&(0,a.jsx)(D,{annotation:e}),t&&(0,a.jsx)(I,{annotation:e})]}),(!i||t)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(“div”,{className:”ml-4 mt-2″,children:e.title&&(0,a.jsx)(u.A,{weight:”semibold”,size:”medium”,className:y.GF[e.annotationLevel].primaryColorClass,children:e.title})}),(0,a.jsxs)(n,{className:”sr-only”,children:[y.GF[e.annotationLevel].ariaLabel,”: “,e.title]}),(0,a.jsx)(“div”,{className:”mb-3 mt-1 ml-4″,children:e.message&&(0,a.jsx)(o.$6,{html:e.message,className:b})}),(0,a.jsxs)(“div”,{className:”d-flex flex-items-center flex-justify-between ml-4 pr-2 pb-2″,children:[(0,a.jsxs)(“div”,{className:x,children:[(0,a.jsx)(l.r,{src:e.appAvatarUrl,alt:e.appAvatarAltText}),(0,a.jsxs)(m.A,{className:”ml-2″,maxWidth:”300px”,inline:!0,title:`${e.checkSuiteName} / ${e.checkRun.name}`,children:[(0,a.jsx)(u.A,{weight:”semibold”,size:”small”,children:e.checkSuiteName}),” “,”/ “,(0,a.jsx)(u.A,{size:”small”,children:e.checkRun.name})]})]}),e.checkRun.detailsUrl&&(0,a.jsx)(f.Q,{as:”a”,href:e.checkRun.detailsUrl,size:”small”,children:”View details”})]})]})]})},L=(0,r.GV)()?function(e){let t,n=(0,s.c)(2),{children:i}=e;return n[0]!==i?(t=(0,a.jsx)(“span”,{className:”text-semibold fgColor-default”,children:i}),n[0]=i,n[1]=t):t=n[1],t}:function({children:e}){return(0,a.jsx)(“span”,{className:”text-semibold fgColor-default”,children:e})},D=(0,r.GV)()?function(e){let t,n,i=(0,s.c)(6),{annotation:r}=e,l=N[r.annotationLevel],o=y.GF[r.annotationLevel];return i[0]!==r.endLine?(t=(0,a.jsxs)(L,{children:[“R”,r.endLine]}),i[0]=r.endLine,i[1]=t):t=i[1],i[2]!==l||i[3]!==o.ariaLabel||i[4]!==t?(n=(0,a.jsxs)(“h2″,{className:v,children:[l,o.ariaLabel,” on line”,” “,t]}),i[2]=l,i[3]=o.ariaLabel,i[4]=t,i[5]=n):n=i[5],n}:function({annotation:e}){return(0,a.jsxs)(“h2″,{className:v,children:[N[e.annotationLevel],y.GF[e.annotationLevel].ariaLabel,” on line”,” “,(0,a.jsxs)(L,{children:[“R”,e.endLine]})]})},I=(0,r.GV)()?function(e){let t,n,i=(0,s.c)(3),{annotation:r}=e;i[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,h.$)(v,”ml-4″,”pt-1″,”pl-0″),i[0]=t):t=i[0];let l=y.GF[r.annotationLevel];return i[1]!==l.ariaLabel?(n=(0,a.jsx)(“div”,{className:t,children:(0,a.jsx)(L,{children:l.ariaLabel})}),i[1]=l.ariaLabel,i[2]=n):n=i[2],n}:function({annotation:e}){return(0,a.jsx)(“div”,{className:(0,h.$)(v,”ml-4″,”pt-1″,”pl-0″),children:(0,a.jsx)(L,{children:y.GF[e.annotationLevel].ariaLabel})})};function _(e){return`AnnotationIsCollapsed_${e.path}_${e.endLine}_${e.annotationLevel}_${e.title}`}let R=(0,r.GV)()?function(e){let t,n,i,a,r,l=(0,s.c)(10);l[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,C.A)(“localStorage”),l[0]=t):t=l[0];let o=t,[d,c]=(0,j.useState)(!1);l[1]!==e?(n=()=>{let t=localStorage.getItem(_(e));null!==t&&c(JSON.parse(t))},i=[e],l[1]=e,l[2]=n,l[3]=i):(n=l[2],i=l[3]),(0,j.useEffect)(n,i),l[4]!==e||l[5]!==d?(a=()=>{w.cg?.requestAnimationFrame(()=>{o.setItem(_(e),JSON.stringify(!d))}),c(A)},l[4]=e,l[5]=d,l[6]=a):a=l[6];let u=a;return l[7]!==u||l[8]!==d?(r={isCollapsed:d,handleToggleCollapsed:u},l[7]=u,l[8]=d,l[9]=r):r=l[9],r}:function(e){let t=(0,C.A)(“localStorage”),[n,i]=(0,j.useState)(!1);return(0,j.useEffect)(()=>{let t=localStorage.getItem(_(e));null!==t&&i(JSON.parse(t))},[e]),{isCollapsed:n,handleToggleCollapsed:()=>{w.cg?.requestAnimationFrame(()=>{t.setItem(_(e),JSON.stringify(!n))}),i(e=>!e)}}};function A(e){return!e}try{S.displayName||(S.displayName=”Annotation”)}catch{}try{(i=AnnotationHeadingTag).displayName||(i.displayName=”AnnotationHeadingTag”)}catch{}try{L.displayName||(L.displayName=”Emphasis”)}catch{}try{D.displayName||(D.displayName=”AnnotationBanner”)}catch{}try{I.displayName||(I.displayName=”SidePanelAnnotationBanner”)}catch{}},88008:(e,t,n)=>{n.d(t,{CE:()=>r,Ol:()=>s,hW:()=>l});var i=n(95800);function a(e,t){return`${e}-${t}-active-batch-suggestions`}function r(e,t,n){let r=a(e,t);(0,i.SO)(r,JSON.stringify(n))}function s(e,t){let n=a(e,t),r=(0,i.Gq)(n);if(!r)return[];try{let e=JSON.parse(r);return Array.isArray(e)?e:[]}catch{return[]}}function l(e,t){let n=a(e,t);(0,i.Ai)(n)}},88440:(e,t,n)=>{n.d(t,{q:()=>e9,C:()=>tt});var i=n(74848),a=n(68273),r=n(16522),s=n(50129),l=n(75202),o=n(10583),d=n(16051),c=n(28199),u=n(33195),m=n(21968),f=n(33644),h=n(34164),p=n(81070);let g=”StickyPullRequestHeader-module__prHeader–oDVxB”,x=”StickyPullRequestHeader-module__is-stuck–g4KyZ”,b=”StickyPullRequestHeader-module__prTitleArea–myAMX”;var v=n(73017);let y=”container-xl px-3 px-md-4 px-lg-5″,j=”px-3 px-md-4 px-lg-5″,C=(0,a.Z6)()?function(e){let t,n,a,s,l,o,C,w,N,S,L,D,I=(0,r.c)(44),{repository:_,pullRequest:R,pageVariant:A}=e,{isSticky:k,observe:E,unobserve:T}=(0,c.a)(),O=”condensed”===A?y:j,P=k&&x;return I[0]!==P?(t=(0,h.$)(f.A.stickyHeader,g,P,”color-shadow-small”),I[0]=P,I[1]=t):t=I[1],I[2]!==O?(n=(0,h.$)(“flex-items-center justify-center”,O,b),I[2]=O,I[3]=n):n=I[3],I[4]!==R.state?(a=(0,i.jsx)(d.z.LeadingVisual,{children:(0,i.jsx)(u.u,{state:R.state})}),I[4]=R.state,I[5]=a):a=I[5],I[6]!==R.titleHtml?(s=(0,i.jsx)(“a”,{href:”#top”,className:”fgColor-default”,children:(0,i.jsx)(v.JR,{className:”f5 text-bold markdown-title”,html:R.titleHtml})}),I[6]=R.titleHtml,I[7]=s):s=I[7],I[8]!==R.number?(l=(0,i.jsxs)(“span”,{className:”f5 text-normal pl-2 fgColor-muted d-inline”,children:[“#”,R.number]}),I[8]=R.number,I[9]=l):l=I[9],I[10]!==R.author||I[11]!==R.baseBranch||I[12]!==R.commitsCount||I[13]!==R.headBranch||I[14]!==R.headRepositoryName||I[15]!==R.headRepositoryOwnerLogin||I[16]!==R.id||I[17]!==R.isInAdvisoryRepo||I[18]!==R.mergedBy||I[19]!==R.mergedByName||I[20]!==R.number||I[21]!==R.state||I[22]!==_.id||I[23]!==_.name||I[24]!==_.ownerLogin?(o=(0,i.jsx)(“div”,{className:”f6 text-normal”,children:(0,i.jsx)(m.O,{author:R.author,baseBranch:R.baseBranch,baseRepositoryOwnerLogin:_.ownerLogin,baseRepositoryName:_.name,commitsCount:R.commitsCount,headBranch:R.headBranch,headRepositoryOwnerLogin:R.headRepositoryOwnerLogin,headRepositoryName:R.headRepositoryName,isInAdvisoryRepo:R.isInAdvisoryRepo,mergedBy:R.mergedBy,mergedByName:R.mergedByName,pullRequestId:R.id,pullRequestNumber:R.number,repositoryId:_.id,state:R.state})}),I[10]=R.author,I[11]=R.baseBranch,I[12]=R.commitsCount,I[13]=R.headBranch,I[14]=R.headRepositoryName,I[15]=R.headRepositoryOwnerLogin,I[16]=R.id,I[17]=R.isInAdvisoryRepo,I[18]=R.mergedBy,I[19]=R.mergedByName,I[20]=R.number,I[21]=R.state,I[22]=_.id,I[23]=_.name,I[24]=_.ownerLogin,I[25]=o):o=I[25],I[26]!==s||I[27]!==l||I[28]!==o?(C=(0,i.jsx)(d.z.Title,{className:”lh-condensed”,children:(0,i.jsxs)(“div”,{children:[s,l,o]})}),I[26]=s,I[27]=l,I[28]=o,I[29]=C):C=I[29],I[30]!==n||I[31]!==a||I[32]!==C?(w=(0,i.jsxs)(d.z.TitleArea,{className:n,children:[a,C]}),I[30]=n,I[31]=a,I[32]=C,I[33]=w):w=I[33],I[34]!==t||I[35]!==w?(N=(0,i.jsx)(d.z,{className:t,children:w}),I[34]=t,I[35]=w,I[36]=N):N=I[36],I[37]===Symbol.for(“react.memo_cache_sentinel”)?(S={visibility:”hidden”,height:”1px”},I[37]=S):S=I[37],I[38]!==E||I[39]!==T?(L=(0,i.jsx)(p.X,{sx:S,onObserve:E,onUnobserve:T}),I[38]=E,I[39]=T,I[40]=L):L=I[40],I[41]!==N||I[42]!==L?(D=(0,i.jsxs)(i.Fragment,{children:[N,L]}),I[41]=N,I[42]=L,I[43]=D):D=I[43],D}:function({repository:e,pullRequest:t,pageVariant:n}){let{isSticky:a,observe:r,unobserve:s}=(0,c.a)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.z,{className:(0,h.$)(f.A.stickyHeader,g,a&&x,”color-shadow-small”),children:(0,i.jsxs)(d.z.TitleArea,{className:(0,h.$)(“flex-items-center justify-center”,”condensed”===n?y:j,b),children:[(0,i.jsx)(d.z.LeadingVisual,{children:(0,i.jsx)(u.u,{state:t.state})}),(0,i.jsx)(d.z.Title,{className:”lh-condensed”,children:(0,i.jsxs)(“div”,{children:[(0,i.jsx)(“a”,{href:”#top”,className:”fgColor-default”,children:(0,i.jsx)(v.JR,{className:”f5 text-bold markdown-title”,html:t.titleHtml})}),(0,i.jsxs)(“span”,{className:”f5 text-normal pl-2 fgColor-muted d-inline”,children:[“#”,t.number]}),(0,i.jsx)(“div”,{className:”f6 text-normal”,children:(0,i.jsx)(m.O,{author:t.author,baseBranch:t.baseBranch,baseRepositoryOwnerLogin:e.ownerLogin,baseRepositoryName:e.name,commitsCount:t.commitsCount,headBranch:t.headBranch,headRepositoryOwnerLogin:t.headRepositoryOwnerLogin,headRepositoryName:t.headRepositoryName,isInAdvisoryRepo:t.isInAdvisoryRepo,mergedBy:t.mergedBy,mergedByName:t.mergedByName,pullRequestId:t.id,pullRequestNumber:t.number,repositoryId:e.id,state:t.state})})]})})]})}),(0,i.jsx)(p.X,{sx:{visibility:”hidden”,height:”1px”},onObserve:r,onUnobserve:s})]})};try{C.displayName||(C.displayName=”StickyPullRequestHeader”)}catch{}var w=n(96540),N=n(21373),S=n(26607),L=n(84268),D=n(34261),I=n(11680),_=n(72579);let R=(0,a.Z6)()?function(e){let t,n,a=(0,r.c)(4),{pullRequest:s}=e;return a[0]!==s.headBranch?(t=function(e){return e.replace(/[\u007F-\uFFFF]/g,A)}(s.headBranch),a[0]=s.headBranch,a[1]=t):t=a[1],a[2]!==t?(n=(0,i.jsx)(I.l,{“aria-label”:”Hidden Characters Warning Banner”,className:”d-flex flex-row width-full”,variant:”warning”,title:”Hidden character warning”,hideTitle:!0,children:(0,i.jsxs)(I.l.Description,{children:[“The head ref may contain hidden characters:”,” “,(0,i.jsxs)(_.A,{as:”span”,children:[‘”‘,t,'”‘]})]})}),a[2]=t,a[3]=n):n=a[3],n}:function({pullRequest:e}){return(0,i.jsx)(I.l,{“aria-label”:”Hidden Characters Warning Banner”,className:”d-flex flex-row width-full”,variant:”warning”,title:”Hidden character warning”,hideTitle:!0,children:(0,i.jsxs)(I.l.Description,{children:[“The head ref may contain hidden characters:”,” “,(0,i.jsxs)(_.A,{as:”span”,children:[‘”‘,e.headBranch.replace(/[\u007F-\uFFFF]/g,e=>`\\u${`0000${e.charCodeAt(0).toString(16)}`.substr(-4)}`),'”‘]})]})})};function A(e){return`\\u${`0000${e.charCodeAt(0).toString(16)}`.substr(-4)}`}try{R.displayName||(R.displayName=”PullRequestHiddenCharactersBanner”)}catch{}var k=n(81960),E=n(19415),T=n(97665),O=n(94747),P=n(96379);let F=(0,a.Z6)()?function(){let e,t=(0,r.c)(3),n=(0,D.f)(),i=(0,T.jE)();return t[0]!==n||t[1]!==i?(e={networkMode:”always”,mutationFn:M,onSuccess:()=>{i.setQueryData(n,$)}},t[0]=n,t[1]=i,t[2]=e):e=t[2],(0,O.n)(e)}:function(){let e=(0,D.f)(),t=(0,T.jE)();return(0,O.n)({networkMode:”always”,mutationFn:({dismissPath:e})=>(0,P.Sr)(e,{method:”POST”}),onSuccess:()=>{t.setQueryData(e,e=>{let t={…e};return t.bannersData.banners.dependabotAutomatedSecurityUpdates.showOnboardingPopover=!1,t})}})};function $(e){let t={…e};return t.bannersData.banners.dependabotAutomatedSecurityUpdates.showOnboardingPopover=!1,t}function M(e){let{dismissPath:t}=e;return(0,P.Sr)(t,{method:”POST”})}let B=(0,a.Z6)()?function(e){let t,n,a,s,l,o,d,c,u,m=(0,r.c)(21),{onBoardingProps:f}=e,[h,p]=(0,w.useState)(!0),{mutate:g}=F();m[0]!==g||m[1]!==f.dismissNoticePath?(t=()=>{g({dismissPath:f.dismissNoticePath}),p(!1)},m[0]=g,m[1]=f.dismissNoticePath,m[2]=t):t=m[2];let x=t;return m[3]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(k.A,{as:”h3″,variant:”small”,children:”Your first automated security update”}),a=(0,i.jsx)(“p”,{className:”mt-2 f5″,children:”Dependabot security updates keep your projects secure and up-to-date.”}),m[3]=n,m[4]=a):(n=m[3],a=m[4]),m[5]!==f.repoSettingsPath||m[6]!==f.showOptOut?(s=f.showOptOut&&(0,i.jsxs)(“p”,{children:[“You can opt out at any time in”,” “,(0,i.jsx)(L.A,{inline:!0,href:f.repoSettingsPath,children:”this repository\u2019s settings”})]}),m[5]=f.repoSettingsPath,m[6]=f.showOptOut,m[7]=s):s=m[7],m[8]!==x?(l=(0,i.jsx)(N.Q,{block:!1,onClick:x,children:”Got it!”}),m[8]=x,m[9]=l):l=m[9],m[10]!==f.helpURL?(o=(0,i.jsx)(L.A,{className:”ml-3″,href:f.helpURL,”aria-label”:”Learn more about Dependabot security updates”,children:”Learn more”}),m[10]=f.helpURL,m[11]=o):o=m[11],m[12]!==l||m[13]!==o?(d=(0,i.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[l,o]}),m[12]=l,m[13]=o,m[14]=d):d=m[14],m[15]!==s||m[16]!==d?(c=(0,i.jsxs)(E.A.Content,{className:”Popover-message Popover-message–large”,children:[n,a,s,d]}),m[15]=s,m[16]=d,m[17]=c):c=m[17],m[18]!==h||m[19]!==c?(u=(0,i.jsx)(E.A,{className:”mt-2″,open:h,children:c}),m[18]=h,m[19]=c,m[20]=u):u=m[20],u}:function({onBoardingProps:e}){let[t,n]=(0,w.useState)(!0),{mutate:a}=F();return(0,i.jsx)(E.A,{className:”mt-2″,open:t,children:(0,i.jsxs)(E.A.Content,{className:”Popover-message Popover-message–large”,children:[(0,i.jsx)(k.A,{as:”h3″,variant:”small”,children:”Your first automated security update”}),(0,i.jsx)(“p”,{className:”mt-2 f5″,children:”Dependabot security updates keep your projects secure and up-to-date.”}),e.showOptOut&&(0,i.jsxs)(“p”,{children:[“You can opt out at any time in”,” “,(0,i.jsx)(L.A,{inline:!0,href:e.repoSettingsPath,children:”this repository\u2019s settings”})]}),(0,i.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[(0,i.jsx)(N.Q,{block:!1,onClick:()=>{a({dismissPath:e.dismissNoticePath}),n(!1)},children:”Got it!”}),(0,i.jsx)(L.A,{className:”ml-3″,href:e.helpURL,”aria-label”:”Learn more about Dependabot security updates”,children:”Learn more”})]})]})})};try{B.displayName||(B.displayName=”PullRequestAutomatedSecurityOnboarding”)}catch{}var V=n(33578);let U=(0,a.Z6)()?function(e){let t,n,a,s,l,o,d,c,u,m=(0,r.c)(28),{dependabotUpdates:f,pullRequest:h}=e;m[0]!==f.securityAlertPath?(t=e=>`${e}`,m[0]=f.securityAlertPath,m[1]=t):t=m[1];let p=t,g=G;m[2]!==f.alertPresent||m[3]!==f.packageName||m[4]!==f.severity||m[5]!==f.singleAlert||m[6]!==p?(n=()=>{if(!f.alertPresent)return”Merging this pull request will resolve a Dependabot alert”;if(f.singleAlert){let e=`Merging this pull request will resolve a ${g(f.severity)} severity ${p(“Dependabot Alert”)} on ${f.packageName}`;return(0,i.jsx)(v.JR,{as:”span”,html:e})}{let e=`Merging this pull request will resolve ${p(“Dependabot Alerts”)} on ${f.packageName} including a ${g(f.severity)} severity alert`;return(0,i.jsx)(v.JR,{as:”span”,html:e})}},m[2]=f.alertPresent,m[3]=f.packageName,m[4]=f.severity,m[5]=f.singleAlert,m[6]=p,m[7]=n):n=m[7];let x=n;m[8]!==h.state?(a=()=>h.state===V.Q.Merged?”resolved”:”would resolve”,m[8]=h.state,m[9]=a):a=m[9];let b=a;m[10]!==f.alertPresent||m[11]!==f.packageName?(s=()=>f.alertPresent?`a Dependabot alert on ${f.packageName}.`:”a Dependabot alert”,m[10]=f.alertPresent,m[11]=f.packageName,m[12]=s):s=m[12];let y=s;m[13]!==y||m[14]!==x||m[15]!==b||m[16]!==h.state?(l=()=>h.state===V.Q.Open?x():`This pull request ${b()} ${y()}`,m[13]=y,m[14]=x,m[15]=b,m[16]=h.state,m[17]=l):l=m[17];let j=l;return m[18]!==j?(o=j(),m[18]=j,m[19]=o):o=m[19],m[20]!==o?(d=(0,i.jsx)(I.l,{“aria-label”:”Automated Security Update Banner”,variant:”info”,title:”Automated security update”,hideTitle:!0,children:(0,i.jsx)(I.l.Description,{children:o})}),m[20]=o,m[21]=d):d=m[21],m[22]!==f.onboardingBannerProps||m[23]!==f.showOnboardingPopover?(c=f.showOnboardingPopover&&(0,i.jsx)(B,{onBoardingProps:f.onboardingBannerProps}),m[22]=f.onboardingBannerProps,m[23]=f.showOnboardingPopover,m[24]=c):c=m[24],m[25]!==d||m[26]!==c?(u=(0,i.jsxs)(“div”,{className:”width-full”,children:[d,c]}),m[25]=d,m[26]=c,m[27]=u):u=m[27],u}:function({dependabotUpdates:e,pullRequest:t}){let n=”Merging this pull request will resolve”,a=”a Dependabot alert”,r=t=>`${t}`,s=e=>`${e}`;return(0,i.jsxs)(“div”,{className:”width-full”,children:[(0,i.jsx)(I.l,{“aria-label”:”Automated Security Update Banner”,variant:”info”,title:”Automated security update”,hideTitle:!0,children:(0,i.jsx)(I.l.Description,{children:(()=>{if(t.state!==V.Q.Open)return`This pull request ${t.state===V.Q.Merged?”resolved”:”would resolve”} ${e.alertPresent?`a Dependabot alert on ${e.packageName}.`:a}`;if(!e.alertPresent)return`${n} ${a}`;if(e.singleAlert){let t=`${n} a ${s(e.severity)} severity ${r(“Dependabot Alert”)} on ${e.packageName}`;return(0,i.jsx)(v.JR,{as:”span”,html:t})}{let t=`${n} ${r(“Dependabot Alerts”)} on ${e.packageName} including a ${s(e.severity)} severity alert`;return(0,i.jsx)(v.JR,{as:”span”,html:t})}})()})}),e.showOnboardingPopover&&(0,i.jsx)(B,{onBoardingProps:e.onboardingBannerProps})]})};function G(e){return`${e}`}try{U.displayName||(U.displayName=”PullRequestAutomatedSecurityUpdateBanner”)}catch{}var H=n(79634),q=n(25407);let z=(0,a.Z6)()?function(e){let t,n,a,s,l,o,d=(0,r.c)(12),{repository:c}=e,u=`${(0,H.X)().helpUrl}/code-security/dependabot/dependabot-security-updates/about-dependabot-security-updates#about-automatic-deactivation-of-dependabot-updates`;d[0]!==c.name||d[1]!==c.ownerLogin?(t=(0,q.SHX)({owner:c.ownerLogin,repo:c.name,action:”pulls”}),d[0]=c.name,d[1]=c.ownerLogin,d[2]=t):t=d[2];let m=`${t}/app%2Fdependabot`;return d[3]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(“br”,{}),d[3]=n):n=d[3],d[4]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,i.jsx)(“b”,{children:”@dependabot rebase.”}),d[4]=a):a=d[4],d[5]!==m?(s=(0,i.jsx)(L.A,{inline:!0,href:m,children:”See open Dependabot pull requests”}),d[5]=m,d[6]=s):s=d[6],d[7]!==u?(l=(0,i.jsx)(L.A,{inline:!0,href:u,children:”learn more about pausing of activity.”}),d[7]=u,d[8]=l):l=d[8],d[9]!==s||d[10]!==l?(o=(0,i.jsx)(I.l,{className:”d-flex flex-row width-full”,variant:”warning”,title:”Dependabot updates are paused”,children:(0,i.jsx)(I.l.Description,{children:(0,i.jsxs)(“p”,{children:[`We noticed you haven’t used Dependabot in a while, so we’ve paused automated Dependabot
updates for this repository.`,n,”To resume updates, merge a Dependabot pull request or use “,” “,a,”.”,”\xa0″,s,” “,”or”,”\xa0″,l]})})}),d[9]=s,d[10]=l,d[11]=o):o=d[11],o}:function({repository:e}){let t=`We noticed you haven’t used Dependabot in a while, so we’ve paused automated Dependabot
updates for this repository.`,n=`${(0,H.X)().helpUrl}/code-security/dependabot/dependabot-security-updates/about-dependabot-security-updates#about-automatic-deactivation-of-dependabot-updates`,a=`${(0,q.SHX)({owner:e.ownerLogin,repo:e.name,action:”pulls”})}/app%2Fdependabot`;return(0,i.jsx)(I.l,{className:”d-flex flex-row width-full”,variant:”warning”,title:”Dependabot updates are paused”,children:(0,i.jsx)(I.l.Description,{children:(0,i.jsxs)(“p”,{children:[t,(0,i.jsx)(“br”,{}),”To resume updates, merge a Dependabot pull request or use “,” “,(0,i.jsx)(“b”,{children:”@dependabot rebase.”}),”.”,”\xa0″,(0,i.jsx)(L.A,{inline:!0,href:a,children:”See open Dependabot pull requests”}),” “,”or”,”\xa0″,(0,i.jsx)(L.A,{inline:!0,href:n,children:”learn more about pausing of activity.”})]})})})};try{z.displayName||(z.displayName=”PullRequestPausedDependabotBanner”)}catch{}let K=(0,a.Z6)()?function(e){let t,n,a,s,l=(0,r.c)(13),{bannersData:o,pullRequest:d,repository:c}=e;return l[0]!==o.banners.hiddenCharacterWarning.render||l[1]!==d?(t=o.banners.hiddenCharacterWarning.render&&(0,i.jsx)(R,{pullRequest:d}),l[0]=o.banners.hiddenCharacterWarning.render,l[1]=d,l[2]=t):t=l[2],l[3]!==o.banners.pausedDependabotUpdate.render||l[4]!==c?(n=o.banners.pausedDependabotUpdate.render&&(0,i.jsx)(z,{repository:c}),l[3]=o.banners.pausedDependabotUpdate.render,l[4]=c,l[5]=n):n=l[5],l[6]!==o.banners.dependabotAutomatedSecurityUpdates||l[7]!==d?(a=o.banners.dependabotAutomatedSecurityUpdates.render&&d.state===V.Q.Open&&(0,i.jsx)(U,{dependabotUpdates:o.banners.dependabotAutomatedSecurityUpdates,pullRequest:d}),l[6]=o.banners.dependabotAutomatedSecurityUpdates,l[7]=d,l[8]=a):a=l[8],l[9]!==t||l[10]!==n||l[11]!==a?(s=(0,i.jsxs)(i.Fragment,{children:[t,n,a]}),l[9]=t,l[10]=n,l[11]=a,l[12]=s):s=l[12],s}:function({bannersData:e,pullRequest:t,repository:n}){return(0,i.jsxs)(i.Fragment,{children:[e.banners.hiddenCharacterWarning.render&&(0,i.jsx)(R,{pullRequest:t}),e.banners.pausedDependabotUpdate.render&&(0,i.jsx)(z,{repository:n}),e.banners.dependabotAutomatedSecurityUpdates.render&&t.state===V.Q.Open&&(0,i.jsx)(U,{dependabotUpdates:e.banners.dependabotAutomatedSecurityUpdates,pullRequest:t})]})};try{K.displayName||(K.displayName=”PullRequestBanners”)}catch{}var W=n(86877),Z=n(99511),Q=n(46251);function X(e){let[t,n]=(0,w.useState)(e),i=(0,w.useRef)(t);return i.current=t,[t,(0,w.useCallback)(e=>{e!==i.current&&n(e)},[])]}var J=n(20622),Y=n(53885);let ee=(0,a.Z6)()?function(){let e,t,n,i=(0,r.c)(8),a=(0,T.jE)(),s=(0,Y.e)(J.uT.updateTitle),l=(0,D.f)();return i[0]!==s?(e=e=>{let{id:t,title:n}=e;return(0,P.Sr)(s,{method:”PATCH”,body:{id:t,title:n}})},i[0]=s,i[1]=e):e=i[1],i[2]!==l||i[3]!==a?(t=async e=>{let t=await e.json();if(!e.ok)throw Error(t.errors);a.setQueryData(l,e=>({…e,pullRequest:{…e.pullRequest,title:t.pullRequest.title,titleHtml:t.pullRequest.titleHtml}}))},i[2]=l,i[3]=a,i[4]=t):t=i[4],i[5]!==e||i[6]!==t?(n={networkMode:”always”,mutationFn:e,onSuccess:t},i[5]=e,i[6]=t,i[7]=n):n=i[7],(0,O.n)(n)}:function(){let e=(0,T.jE)(),t=(0,Y.e)(J.uT.updateTitle),n=(0,D.f)();return(0,O.n)({networkMode:”always”,mutationFn:({id:e,title:n})=>(0,P.Sr)(t,{method:”PATCH”,body:{id:e,title:n}}),onSuccess:async t=>{let i=await t.json();if(!t.ok)throw Error(i.errors);e.setQueryData(n,e=>({…e,pullRequest:{…e.pullRequest,title:i.pullRequest.title,titleHtml:i.pullRequest.titleHtml}}))}})};function et(e,t){for(let n in e)if(e[n]!==t[n])return!1;return!0}let en=(0,a.Z6)()?function(e,t){let n,i,a,s,l=(0,r.c)(11),o=void 0===t?et:t,[d,c]=(0,w.useState)(!1),u=(0,w.useRef)(e),m=(0,w.useRef)(e);l[0]!==o||l[1]!==d?(n=()=>{let e=!o(u.current,m.current);e!==d&&c(e)},l[0]=o,l[1]=d,l[2]=n):n=l[2];let f=n;l[3]!==f?(i=e=>{m.current={…m.current,…e},f()},l[3]=f,l[4]=i):i=l[4];let h=i;l[5]!==f?(a=e=>{u.current={…u.current,…e},f()},l[5]=f,l[6]=a):a=l[6];let p=a;return l[7]!==h||l[8]!==d||l[9]!==p?(s=[d,h,p],l[7]=h,l[8]=d,l[9]=p,l[10]=s):s=l[10],s}:function(e,t=et){let[n,i]=(0,w.useState)(!1),a=(0,w.useRef)(e),r=(0,w.useRef)(e),s=(0,w.useCallback)(()=>{let e=!t(a.current,r.current);e!==n&&i(e)},[t,n]);return[n,(0,w.useCallback)(e=>{r.current={…r.current,…e},s()},[s]),(0,w.useCallback)(e=>{a.current={…a.current,…e},s()},[s])]},ei=”Title can’t be blank”,ea=”Edit Pull Request Title”;function er(e){return`Title can’t be longer than 256 characters (currently ${e.length} characters)`}function es(e){return e.trim().length>0&&e.length<=256}let el=(0,a.Z6)()?function(e){let t,n,a,s,l,o,d,c,u,m,f,h,p,g=(0,r.c)(38),{initialTitle:x,pullRequestNumber:b,onCloseForm:v}=e,[y,j]=(0,w.useState)(x),[C,S]=X(!0),[L,D]=(0,w.useState)(null);g[0]!==x?(t={title:x},g[0]=x,g[1]=t):t=g[1];let[I,_]=en(t),R=(0,w.useRef)(null),{mutate:A,isPending:k}=ee();g[2]!==_||g[3]!==S?(n=e=>{j(e.target.value),_({title:e.target.value}),S(es(e.target.value))},g[2]=_,g[3]=S,g[4]=n):n=g[4];let E=n;g[5]===Symbol.for(“react.memo_cache_sentinel”)?(a=e=>{D(e),R.current?.focus()},g[5]=a):a=g[5];let T=a;g[6]!==I||g[7]!==C||g[8]!==A||g[9]!==v||g[10]!==b||g[11]!==y?(s=e=>{(e.preventDefault(),D(null),C)?C&&!I?v():A({id:b,title:y},{onError:e=>T(e.message),onSuccess:()=>v()}):R.current?.focus()},g[6]=I,g[7]=C,g[8]=A,g[9]=v,g[10]=b,g[11]=y,g[12]=s):s=g[12];let O=s,P=!C||k;g[13]===Symbol.for(“react.memo_cache_sentinel”)?(l={narrow:”vertical”,regular:”horizontal”},g[13]=l):l=g[13],g[14]===Symbol.for(“react.memo_cache_sentinel”)?(o=(0,i.jsx)(W.A.Label,{visuallyHidden:!0,children:ea}),g[14]=o):o=g[14];let F=C?void 0:”error”;return g[15]!==E||g[16]!==F||g[17]!==y?(d=(0,i.jsx)(Z.A,{autoFocus:!0,block:!0,className:”f4″,contrast:!0,onChange:E,ref:R,validationStatus:F,value:y}),g[15]=E,g[16]=F,g[17]=y,g[18]=d):d=g[18],g[19]!==C||g[20]!==L||g[21]!==y?(c=(0,i.jsx)(eo,{isValid:C,saveErrorMessage:L,title:y}),g[19]=C,g[20]=L,g[21]=y,g[22]=c):c=g[22],g[23]!==d||g[24]!==c?(u=(0,i.jsx)(Q.B.Item,{grow:!0,children:(0,i.jsxs)(W.A,{children:[o,d,c]})}),g[23]=d,g[24]=c,g[25]=u):u=g[25],g[26]!==P?(m=(0,i.jsx)(Q.B.Item,{children:(0,i.jsx)(N.Q,{name:”Save”,type:”submit”,disabled:P,children:”Save”})}),g[26]=P,g[27]=m):m=g[27],g[28]!==k||g[29]!==v?(f=(0,i.jsx)(Q.B.Item,{children:(0,i.jsx)(N.Q,{variant:”invisible”,onClick:v,disabled:k,children:”Cancel”})}),g[28]=k,g[29]=v,g[30]=f):f=g[30],g[31]!==m||g[32]!==f?(h=(0,i.jsx)(Q.B.Item,{children:(0,i.jsxs)(Q.B,{direction:”horizontal”,gap:”condensed”,children:[m,f]})}),g[31]=m,g[32]=f,g[33]=h):h=g[33],g[34]!==O||g[35]!==u||g[36]!==h?(p=(0,i.jsxs)(Q.B,{direction:l,gap:”condensed”,as:”form”,onSubmit:O,children:[u,h]}),g[34]=O,g[35]=u,g[36]=h,g[37]=p):p=g[37],p}:function({initialTitle:e,pullRequestNumber:t,onCloseForm:n}){let[a,r]=(0,w.useState)(e),[s,l]=X(!0),[o,d]=(0,w.useState)(null),[c,u]=en({title:e}),m=(0,w.useRef)(null),{mutate:f,isPending:h}=ee(),p=!s||h;return(0,i.jsxs)(Q.B,{direction:{narrow:”vertical”,regular:”horizontal”},gap:”condensed”,as:”form”,onSubmit:e=>{(e.preventDefault(),d(null),s)?s&&!c?n():f({id:t,title:a},{onError:e=>{d(e.message),m.current?.focus()},onSuccess:()=>n()}):m.current?.focus()},children:[(0,i.jsx)(Q.B.Item,{grow:!0,children:(0,i.jsxs)(W.A,{children:[(0,i.jsx)(W.A.Label,{visuallyHidden:!0,children:ea}),(0,i.jsx)(Z.A,{autoFocus:!0,block:!0,className:”f4″,contrast:!0,onChange:e=>{r(e.target.value),u({title:e.target.value}),l(es(e.target.value))},ref:m,validationStatus:s?void 0:”error”,value:a}),(0,i.jsx)(eo,{isValid:s,saveErrorMessage:o,title:a})]})}),(0,i.jsx)(Q.B.Item,{children:(0,i.jsxs)(Q.B,{direction:”horizontal”,gap:”condensed”,children:[(0,i.jsx)(Q.B.Item,{children:(0,i.jsx)(N.Q,{name:”Save”,type:”submit”,disabled:p,children:”Save”})}),(0,i.jsx)(Q.B.Item,{children:(0,i.jsx)(N.Q,{variant:”invisible”,onClick:n,disabled:h,children:”Cancel”})})]})})]})},eo=(0,a.Z6)()?function(e){let t,n=(0,r.c)(8),{isValid:a,saveErrorMessage:s,title:l}=e;n[0]!==l?(t=function(){return 0===l.trim().length?ei:l.length>256?er(l):void 0},n[0]=l,n[1]=t):t=n[1];let o=t;if(a)if(!s)return null;else{let e;return n[6]!==s?(e=(0,i.jsx)(W.A.Validation,{variant:”error”,children:s}),n[6]=s,n[7]=e):e=n[7],e}{let e,t;return n[2]!==o?(e=o(),n[2]=o,n[3]=e):e=n[3],n[4]!==e?(t=(0,i.jsx)(W.A.Validation,{variant:”error”,children:e}),n[4]=e,n[5]=t):t=n[5],t}}:function({isValid:e,saveErrorMessage:t,title:n}){return e?t?(0,i.jsx)(W.A.Validation,{variant:”error”,children:t}):null:(0,i.jsx)(W.A.Validation,{variant:”error”,children:0===n.trim().length?ei:n.length>256?er(n):void 0})};try{el.displayName||(el.displayName=”PullRequestEditTitleForm”)}catch{}try{eo.displayName||(eo.displayName=”DisplayError”)}catch{}var ed=n(38621),ec=n(57478),eu=n(1481),em=n(66108),ef=n(61526),eh=n(69599),ep=n(43073),eg=n(13360),ex=n(97286);let eb=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),{basePageDataUrl:n}=(0,s.Yu)(),i=`basePageDataURL:${n}`;return t[0]!==i?(e=[J.uT.tabCounts,i],t[0]=i,t[1]=e):e=t[1],e}:function(){let{basePageDataUrl:e}=(0,s.Yu)();return[J.uT.tabCounts,`basePageDataURL:${e}`]},ev=(0,a.Z6)()?function(e){let t,n,i=(0,r.c)(6),a=(0,Y.e)(J.uT.tabCounts),s=eb();return i[0]!==a?(t=async()=>{let e=await (0,P.QJ)(a);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},i[0]=a,i[1]=t):t=i[1],i[2]!==e||i[3]!==s||i[4]!==t?(n={queryKey:s,queryFn:t,initialData:e,staleTime:1/0},i[2]=e,i[3]=s,i[4]=t,i[5]=n):n=i[5],(0,ex.I)(n)}:function(e){let t=(0,Y.e)(J.uT.tabCounts),n=eb();return(0,ex.I)({queryKey:n,queryFn:async()=>{let e=await (0,P.QJ)(t);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},initialData:e,staleTime:1/0})};var ey=n(66446);let ej=”PullRequestHeaderNavigation-module__overrideLineHeight–AJ90h”,eC=”PullRequestHeaderNavigation-module__muteWhenUnselected–F0UGO”,ew=”PullRequestHeaderNavigation-module__counterLoading–K6XhJ”;var eN=n(91747),eS=n(37212),eL=n(72501),eD=n(66559),eI=n(73870);let e_=(0,a.Z6)()?function(e){let t,n=(0,r.c)(8),{pullRequest:a,repository:s,urls:l}=e;if((0,ep.E)()){let e;return n[0]!==a||n[1]!==s||n[2]!==l?(e=(0,i.jsx)(eA,{pullRequest:a,repository:s,urls:l}),n[0]=a,n[1]=s,n[2]=l,n[3]=e):e=n[3],e}return n[4]!==a||n[5]!==s||n[6]!==l?(t=(0,i.jsx)(eR,{pullRequest:a,repository:s,urls:l}),n[4]=a,n[5]=s,n[6]=l,n[7]=t):t=n[7],t}:function({pullRequest:e,repository:t,urls:n}){return(0,ep.E)()?(0,i.jsx)(eA,{pullRequest:e,repository:t,urls:n}):(0,i.jsx)(eR,{pullRequest:e,repository:t,urls:n})},eR=(0,a.Z6)()?function(e){let t,n=(0,r.c)(5),{pullRequest:a,repository:s,urls:l}=e,{data:o}=ev();return n[0]!==o||n[1]!==a||n[2]!==s||n[3]!==l?(t=(0,i.jsx)(ek,{labelCounts:o,pullRequest:a,repository:s,urls:l}),n[0]=o,n[1]=a,n[2]=s,n[3]=l,n[4]=t):t=n[4],t}:function({pullRequest:e,repository:t,urls:n}){let{data:a}=ev();return(0,i.jsx)(ek,{labelCounts:a,pullRequest:e,repository:t,urls:n})},eA=(0,a.Z6)()?function(e){let t,n=(0,r.c)(6),{pullRequest:a,repository:s,urls:l}=e,{data:o}=(0,eg.xX)(ey.j,”tabCounts”),d=(0,eN.u)(“combined_pr_changes_route”);return n[0]!==d||n[1]!==o||n[2]!==a||n[3]!==s||n[4]!==l?(t=(0,i.jsx)(ek,{labelCounts:o,pullRequest:a,repository:s,urls:l,combinedPrChangesRoute:d}),n[0]=d,n[1]=o,n[2]=a,n[3]=s,n[4]=l,n[5]=t):t=n[5],t}:function({pullRequest:e,repository:t,urls:n}){let{data:a}=(0,eg.xX)(ey.j,”tabCounts”),r=(0,eN.u)(“combined_pr_changes_route”);return(0,i.jsx)(ek,{labelCounts:a,pullRequest:e,repository:t,urls:n,combinedPrChangesRoute:r})},ek=(0,a.Z6)()?function(e){let t,n,a,s,l,o,d,c,u,m,f,p,g,x,b,v,y,j,C,w,N=(0,r.c)(64),{pullRequest:S,repository:L,urls:D,labelCounts:I,combinedPrChangesRoute:_}=e,R=void 0!==_&&_,A=(0,ef.zy)();N[0]!==A.pathname?(t=e=>A.pathname===e,N[0]=A.pathname,N[1]=t):t=N[1];let k=t;N[2]!==A.pathname?(n=e=>A.pathname===e||A.pathname.startsWith(`${e}/`),N[2]=A.pathname,N[3]=n):n=N[3];let E=n,T=`position-relative px-3 flex-shrink-0 text-normal ${eC} ${ej}`,{commitsCount:O}=S,P=I?””:ew;N[4]!==P?(a=(0,h.$)(“ml-2”,P),N[4]=P,N[5]=a):a=N[5];let F=a;N[6]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,eh.G7)(“hypersight”),N[6]=s):s=N[6];let $=s,M=I?.filesChangedCount??0;N[7]!==F||N[8]!==k||N[9]!==I||N[10]!==S.number||N[11]!==L.name||N[12]!==L.ownerLogin||N[13]!==D.conversation?(l=(0,eh.G7)(“prs_conversations_react”)?(0,i.jsxs)(eu.A.Link,{as:em.N,to:eI.$.generatePath({owner:L.ownerLogin,repo:L.name,pr_number:S.number.toString()}),selected:k(D.conversation),className:T,children:[(0,i.jsx)(ed.CommentDiscussionIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),”Conversation”,”number”==typeof I?.conversationCount&&(0,i.jsx)(ec.A,{className:F,children:I.conversationCount})]}):(0,i.jsxs)(eu.A.Link,{href:D.conversation,selected:k(D.conversation),className:T,”data-prefetch”:”eager”,children:[(0,i.jsx)(ed.CommentDiscussionIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),”Conversation”,”number”==typeof I?.conversationCount&&(0,i.jsx)(ec.A,{className:F,children:I.conversationCount})]}),N[7]=F,N[8]=k,N[9]=I,N[10]=S.number,N[11]=L.name,N[12]=L.ownerLogin,N[13]=D.conversation,N[14]=l):l=N[14],N[15]!==S.number||N[16]!==L.name||N[17]!==L.ownerLogin?(o=eS.Bz.generatePath({owner:L.ownerLogin,repo:L.name,pr_number:S.number.toString()}),N[15]=S.number,N[16]=L.name,N[17]=L.ownerLogin,N[18]=o):o=N[18],N[19]!==E||N[20]!==D.commits?(d=E(D.commits),N[19]=E,N[20]=D.commits,N[21]=d):d=N[21],N[22]===Symbol.for(“react.memo_cache_sentinel”)?(c=(0,i.jsx)(ed.GitCommitIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),N[22]=c):c=N[22],N[23]!==O?(u=”number”==typeof O&&(0,i.jsx)(ec.A,{className:”ml-2″,children:O}),N[23]=O,N[24]=u):u=N[24],N[25]!==u||N[26]!==o||N[27]!==d?(m=(0,i.jsxs)(eu.A.Link,{as:em.N,to:o,selected:d,className:T,id:”prs-commits-anchor-tab”,children:[c,”Commits”,u]}),N[25]=u,N[26]=o,N[27]=d,N[28]=m):m=N[28];let B=D.checks,V=k(D.checks);return N[29]===Symbol.for(“react.memo_cache_sentinel”)?(f=(0,i.jsx)(ed.ChecklistIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),N[29]=f):f=N[29],N[30]!==F||N[31]!==I?(p=”number”==typeof I?.checksCount&&(0,i.jsx)(ec.A,{className:F,children:I.checksCount}),N[30]=F,N[31]=I,N[32]=p):p=N[32],N[33]!==V||N[34]!==p||N[35]!==D.checks?(g=(0,i.jsxs)(eu.A.Link,{href:B,selected:V,className:T,”data-prefetch”:”moderate”,children:[f,”Checks”,p]}),N[33]=V,N[34]=p,N[35]=D.checks,N[36]=g):g=N[36],N[37]!==R||N[38]!==S.number||N[39]!==L.name||N[40]!==L.ownerLogin?(x=R?eD.g.generatePath({owner:L.ownerLogin,repo:L.name,pr_number:S.number.toString()}):eL.c.generatePath({owner:L.ownerLogin,repo:L.name,pr_number:S.number.toString()}),N[37]=R,N[38]=S.number,N[39]=L.name,N[40]=L.ownerLogin,N[41]=x):x=N[41],N[42]!==E||N[43]!==D.changes||N[44]!==D.files?(b=E(D.files)||E(D.changes),N[42]=E,N[43]=D.changes,N[44]=D.files,N[45]=b):b=N[45],N[46]===Symbol.for(“react.memo_cache_sentinel”)?(v=(0,i.jsx)(ed.FileDiffIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),N[46]=v):v=N[46],N[47]!==F||N[48]!==M||N[49]!==I?(y=I&&I.filesChangedCount?(0,i.jsx)(ec.A,{className:F,children:`${M}${I?.filesChangedCountLimitExceeded?”+”:””}`}):null,N[47]=F,N[48]=M,N[49]=I,N[50]=y):y=N[50],N[51]!==x||N[52]!==b||N[53]!==y?(j=(0,i.jsxs)(eu.A.Link,{as:em.N,id:”prs-files-anchor-tab”,to:x,selected:b,className:T,children:[v,”Files changed”,y]}),N[51]=x,N[52]=b,N[53]=y,N[54]=j):j=N[54],N[55]!==k||N[56]!==D.walkthrough?(C=$&&(0,i.jsxs)(eu.A.Link,{href:D.walkthrough,selected:k(D.walkthrough),className:T,”data-prefetch”:”moderate”,children:[(0,i.jsx)(ed.CopilotIcon,{className:”fg-muted mr-2 d-none d-sm-inline-block”}),”Walkthrough”]}),N[55]=k,N[56]=D.walkthrough,N[57]=C):C=N[57],N[58]!==m||N[59]!==g||N[60]!==j||N[61]!==C||N[62]!==l?(w=(0,i.jsxs)(eu.A,{“aria-label”:”Pull request navigation tabs”,”data-turbo”:”false”,children:[l,m,g,j,C]}),N[58]=m,N[59]=g,N[60]=j,N[61]=C,N[62]=l,N[63]=w):w=N[63],w}:function({pullRequest:e,repository:t,urls:n,labelCounts:a,combinedPrChangesRoute:r=!1}){let s=(0,ef.zy)(),l=(0,w.useCallback)(e=>s.pathname===e,[s]),o=(0,w.useCallback)(e=>s.pathname===e||s.pathname.startsWith(`${e}/`),[s]),d=`position-relative px-3 flex-shrink-0 text-normal ${eC} ${ej}`,{commitsCount:c}=e,u=”fg-muted mr-2 d-none d-sm-inline-block”,m=(0,h.$)(“ml-2″,a?””:ew),f=(0,eh.G7)(“hypersight”),p=a?.filesChangedCount??0;return(0,i.jsxs)(eu.A,{“aria-label”:”Pull request navigation tabs”,”data-turbo”:”false”,children:[(0,eh.G7)(“prs_conversations_react”)?(0,i.jsxs)(eu.A.Link,{as:em.N,to:eI.$.generatePath({owner:t.ownerLogin,repo:t.name,pr_number:e.number.toString()}),selected:l(n.conversation),className:d,children:[(0,i.jsx)(ed.CommentDiscussionIcon,{className:u}),”Conversation”,”number”==typeof a?.conversationCount&&(0,i.jsx)(ec.A,{className:m,children:a.conversationCount})]}):(0,i.jsxs)(eu.A.Link,{href:n.conversation,selected:l(n.conversation),className:d,”data-prefetch”:”eager”,children:[(0,i.jsx)(ed.CommentDiscussionIcon,{className:u}),”Conversation”,”number”==typeof a?.conversationCount&&(0,i.jsx)(ec.A,{className:m,children:a.conversationCount})]}),(0,i.jsxs)(eu.A.Link,{as:em.N,to:eS.Bz.generatePath({owner:t.ownerLogin,repo:t.name,pr_number:e.number.toString()}),selected:o(n.commits),className:d,id:”prs-commits-anchor-tab”,children:[(0,i.jsx)(ed.GitCommitIcon,{className:u}),”Commits”,”number”==typeof c&&(0,i.jsx)(ec.A,{className:”ml-2″,children:c})]}),(0,i.jsxs)(eu.A.Link,{href:n.checks,selected:l(n.checks),className:d,”data-prefetch”:”moderate”,children:[(0,i.jsx)(ed.ChecklistIcon,{className:u}),”Checks”,”number”==typeof a?.checksCount&&(0,i.jsx)(ec.A,{className:m,children:a.checksCount})]}),(0,i.jsxs)(eu.A.Link,{as:em.N,id:”prs-files-anchor-tab”,to:r?eD.g.generatePath({owner:t.ownerLogin,repo:t.name,pr_number:e.number.toString()}):eL.c.generatePath({owner:t.ownerLogin,repo:t.name,pr_number:e.number.toString()}),selected:o(n.files)||o(n.changes),className:d,children:[(0,i.jsx)(ed.FileDiffIcon,{className:u}),”Files changed”,a&&a.filesChangedCount?(0,i.jsx)(ec.A,{className:m,children:`${p}${a?.filesChangedCountLimitExceeded?”+”:””}`}):null]}),f&&(0,i.jsxs)(eu.A.Link,{href:n.walkthrough,selected:l(n.walkthrough),className:d,”data-prefetch”:”moderate”,children:[(0,i.jsx)(ed.CopilotIcon,{className:u}),”Walkthrough”]})]})};try{e_.displayName||(e_.displayName=”PullRequestHeaderNavigation”)}catch{}try{eR.displayName||(eR.displayName=”PullRequestHeaderNavigationNavigator”)}catch{}try{eA.displayName||(eA.displayName=”PullRequestHeaderNavigationData”)}catch{}try{ek.displayName||(ek.displayName=”PullRequestHeaderNavigationShared”)}catch{}var eE=n(89155),eT=n(5524),eO=n(10095),eP=n(49086),eF=n(26410),e$=n(96459),eM=n(13107);let eB=”PullRequestCodeButton-module__ActionList_Divider–RyrUL”,eV=(0,a.Z6)()?function(e){let t,n,a,s=(0,r.c)(10),{codespacesEnabled:l,headBranch:o,isEnterprise:d,pullRequestNumber:c,repository:u}=e;s[0]!==o||s[1]!==u.id?(t=(0,eM.QS)(u.id,o),s[0]=o,s[1]=u.id,s[2]=t):t=s[2];let m=t;return s[3]!==c?(n=(0,i.jsx)(eU,{pullNumber:c}),s[3]=c,s[4]=n):n=s[4],s[5]!==l||s[6]!==m||s[7]!==d||s[8]!==n?(a=(0,i.jsx)(eP.n,{primary:!1,size:”small”,isEnterprise:d,showCodespacesTab:l,codespacesPath:m,localTab:n}),s[5]=l,s[6]=m,s[7]=d,s[8]=n,s[9]=a):a=s[9],a}:function({codespacesEnabled:e,headBranch:t,isEnterprise:n,pullRequestNumber:a,repository:r}){let s=(0,eM.QS)(r.id,t);return(0,i.jsx)(eP.n,{primary:!1,size:”small”,isEnterprise:n,showCodespacesTab:e,codespacesPath:s,localTab:(0,i.jsx)(eU,{pullNumber:a})})},eU=(0,a.Z6)()?function(e){let t,n,a,s,l,o,d,c,u,m=(0,r.c)(15),{pullNumber:f}=e,h=`gh pr checkout ${f}`,p=(0,e$.Z)();return m[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,i.jsxs)(“div”,{className:”d-flex flex-items-center mb-2″,children:[(0,i.jsx)(eO.A,{className:”mr-2″,icon:ed.TerminalIcon}),(0,i.jsx)(“p”,{className:”text-bold mb-0″,children:”Checkout with GitHub CLI”})]}),m[0]=t):t=m[0],m[1]!==h?(n=(0,i.jsx)(eF.J,{buttonAriaLabel:”Copy command to clipboard”,inputId:”checkout-with-gh-cli”,inputLabel:”Checkout with GitHub CLI command”,url:h}),m[1]=h,m[2]=n):n=m[2],m[3]===Symbol.for(“react.memo_cache_sentinel”)?(a=(0,i.jsxs)(“p”,{className:”text-normal color-fg-muted”,children:[“Work fast with our official CLI.”,” “,(0,i.jsx)(L.A,{inline:!0,href:”https://cli.github.com”,target:”_blank”,”aria-label”:”Learn more about the GitHub CLI”,children:”Learn more”})]}),m[3]=a):a=m[3],m[4]!==n?(s=(0,i.jsx)(“ul”,{children:(0,i.jsxs)(“li”,{className:”mt-2 px-3 py-2″,children:[t,n,a]})}),m[4]=n,m[5]=s):s=m[5],m[6]===Symbol.for(“react.memo_cache_sentinel”)?(l=(0,i.jsx)(eT.l.Divider,{className:eB}),m[6]=l):l=m[6],m[7]!==p?(o=()=>p(“https://desktop.github.com”),m[7]=p,m[8]=o):o=m[8],m[9]===Symbol.for(“react.memo_cache_sentinel”)?(d=(0,i.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[(0,i.jsx)(eO.A,{className:”mr-2″,icon:ed.DesktopDownloadIcon}),(0,i.jsx)(“p”,{className:”text-bold mb-0″,children:”Checkout with GitHub Desktop”})]}),m[9]=d):d=m[9],m[10]!==o?(c=(0,i.jsx)(eT.l.Item,{className:”mx-0 py-3 px-3 width-full rounded-0″,onSelect:o,children:d}),m[10]=o,m[11]=c):c=m[11],m[12]!==s||m[13]!==c?(u=(0,i.jsxs)(eT.l,{className:”py-0″,children:[s,l,c]}),m[12]=s,m[13]=c,m[14]=u):u=m[14],u}:function(e){let{pullNumber:t}=e,n=”Checkout with GitHub CLI”,a=`gh pr checkout ${t}`,r=(0,e$.Z)();return(0,i.jsxs)(eT.l,{className:”py-0″,children:[(0,i.jsx)(“ul”,{children:(0,i.jsxs)(“li”,{className:”mt-2 px-3 py-2″,children:[(0,i.jsxs)(“div”,{className:”d-flex flex-items-center mb-2″,children:[(0,i.jsx)(eO.A,{className:”mr-2″,icon:ed.TerminalIcon}),(0,i.jsx)(“p”,{className:”text-bold mb-0″,children:n})]}),(0,i.jsx)(eF.J,{buttonAriaLabel:”Copy command to clipboard”,inputId:”checkout-with-gh-cli”,inputLabel:`${n} command`,url:a}),(0,i.jsxs)(“p”,{className:”text-normal color-fg-muted”,children:[“Work fast with our official CLI.”,” “,(0,i.jsx)(L.A,{inline:!0,href:”https://cli.github.com”,target:”_blank”,”aria-label”:”Learn more about the GitHub CLI”,children:”Learn more”})]})]})}),(0,i.jsx)(eT.l.Divider,{className:eB}),(0,i.jsx)(eT.l.Item,{className:”mx-0 py-3 px-3 width-full rounded-0″,onSelect:()=>r(“https://desktop.github.com”),children:(0,i.jsxs)(“div”,{className:”d-flex flex-items-center”,children:[(0,i.jsx)(eO.A,{className:”mr-2″,icon:ed.DesktopDownloadIcon}),(0,i.jsx)(“p”,{className:”text-bold mb-0″,children:”Checkout with GitHub Desktop”})]})})]})};try{eV.displayName||(eV.displayName=”PullRequestCodeButton”)}catch{}try{eU.displayName||(eU.displayName=”LocalTab”)}catch{}var eG=n(91618),eH=n(65510);let eq=(0,a.Z6)()?function(){let e,t=(0,r.c)(2),n=(0,Y.e)(J.uT.diffstat);return t[0]!==n?(e={queryKey:[J.uT.diffstat,n],queryFn:async()=>{let e=await (0,P.QJ)(n);if(!e.ok)throw Error(`HTTP ${e.status}`);return await e.json()},staleTime:1/0},t[0]=n,t[1]=e):e=t[1],(0,eH.U)(e)}:function(){let e=(0,Y.e)(J.uT.diffstat);return(0,eH.U)({queryKey:[J.uT.diffstat,e],queryFn:async()=>{let t=await (0,P.QJ)(e);if(!t.ok)throw Error(`HTTP ${t.status}`);return await t.json()},staleTime:1/0})},ez=(0,a.Z6)()?function(){let e,t=(0,r.c)(2);if((0,ep.E)()){let e;return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(eW,{}),t[0]=e):e=t[0],e}return t[1]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,i.jsx)(eK,{}),t[1]=e):e=t[1],e}:function(){return(0,ep.E)()?(0,i.jsx)(eW,{}):(0,i.jsx)(eK,{})},eK=(0,a.Z6)()?function(){let e,t=(0,r.c)(4),{data:n}=eq(),{diffstat:a}=n;return t[0]!==a.linesAdded||t[1]!==a.linesChanged||t[2]!==a.linesDeleted?(e=(0,i.jsx)(eG.z,{linesAdded:a.linesAdded,linesDeleted:a.linesDeleted,linesChanged:a.linesChanged}),t[0]=a.linesAdded,t[1]=a.linesChanged,t[2]=a.linesDeleted,t[3]=e):e=t[3],e}:function(){let{data:{diffstat:e}}=eq();return(0,i.jsx)(eG.z,{linesAdded:e.linesAdded,linesDeleted:e.linesDeleted,linesChanged:e.linesChanged})},eW=(0,a.Z6)()?function(){let e,t=(0,r.c)(4),{data:n}=(0,eg.xX)(ey.j,”diffstat”);if(!n||!n.diffstat)return null;let{diffstat:a}=n;return t[0]!==a.linesAdded||t[1]!==a.linesChanged||t[2]!==a.linesDeleted?(e=(0,i.jsx)(eG.z,{linesAdded:a.linesAdded,linesDeleted:a.linesDeleted,linesChanged:a.linesChanged}),t[0]=a.linesAdded,t[1]=a.linesChanged,t[2]=a.linesDeleted,t[3]=e):e=t[3],e}:function(){let{data:e}=(0,eg.xX)(ey.j,”diffstat”);if(!e||!e.diffstat)return null;let{diffstat:t}=e;return(0,i.jsx)(eG.z,{linesAdded:t.linesAdded,linesDeleted:t.linesDeleted,linesChanged:t.linesChanged})};try{ez.displayName||(ez.displayName=”DiffStat”)}catch{}try{eK.displayName||(eK.displayName=”NavigatorDiffStat”)}catch{}try{eW.displayName||(eW.displayName=”DataRouterDiffStat”)}catch{}let eZ=”PullRequestHeader-module__diffStatesWrapper–fPApA”,eQ=”PullRequestHeader-module__PreviewLabel–kauC0″;var eX=n(31675),eJ=n(81945),eY=n(21067),e0=n(71315);let e1=(0,a.Z6)()?function(e){let t,n,a=(0,r.c)(10),{aliveChannel:s,bannersData:l,isFilesRoute:o,pullRequest:d,repository:c,urls:u,user:m}=e;a[0]!==s||a[1]!==l||a[2]!==d||a[3]!==c||a[4]!==u||a[5]!==m?(t={aliveChannel:s,repository:c,pullRequest:d,bannersData:l,urls:u,user:m},a[0]=s,a[1]=l,a[2]=d,a[3]=c,a[4]=u,a[5]=m,a[6]=t):t=a[6];let{data:f}=(0,D.W)(t);return(0,eE.F)(s),a[7]!==f||a[8]!==o?(n=(0,i.jsx)(e2,{…f,isFilesRoute:o}),a[7]=f,a[8]=o,a[9]=n):n=a[9],n}:function({aliveChannel:e,bannersData:t,isFilesRoute:n,pullRequest:a,repository:r,urls:s,user:l}){let{data:o}=(0,D.W)({aliveChannel:e,repository:r,pullRequest:a,bannersData:t,urls:s,user:l});return(0,eE.F)(e),(0,i.jsx)(e2,{…o,isFilesRoute:n})},e2=(0,a.Z6)()?function(e){let t,n,a,s,l,o,c,f,p,g,x,b,y,j,S,L,D,I,_,R,A=(0,r.c)(84),{bannersData:k,isFilesRoute:E,pullRequest:T,repository:O,urls:P,user:F}=e,[$,M]=(0,w.useState)(!1);A[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,eY.M3)(),A[0]=t):t=A[0];let B=t,U=T.state!==V.Q.Closed&&T.state!==V.Q.Merged?”true”:”false”;A[1]!==U?(n=(0,i.jsx)(“div”,{className:”js-pull-header-details”,”data-pull-is-open”:U,hidden:!0}),A[1]=U,A[2]=n):n=A[2],A[3]!==E||A[4]!==O||A[5]!==P?(a=E&&(0,i.jsx)(e3,{repository:O,urls:P}),A[3]=E,A[4]=O,A[5]=P,A[6]=a):a=A[6],A[7]!==T.headBranch||A[8]!==T.number||A[9]!==O||A[10]!==F.canEditTitle?(s=B&&(0,i.jsxs)(i.Fragment,{children:[F.canEditTitle&&(0,i.jsx)(N.Q,{onClick:()=>M(!0),size:”small”,children:”Edit”}),(0,i.jsx)(eV,{codespacesEnabled:O.codespacesEnabled,headBranch:T.headBranch,isEnterprise:O.isEnterprise,pullRequestNumber:T.number,repository:O})]}),A[7]=T.headBranch,A[8]=T.number,A[9]=O,A[10]=F.canEditTitle,A[11]=s):s=A[11],A[12]!==n||A[13]!==a||A[14]!==s?(l=(0,i.jsxs)(i.Fragment,{children:[n,a,s]}),A[12]=n,A[13]=a,A[14]=s,A[15]=l):l=A[15];let G=l;return A[16]!==$||A[17]!==T.number||A[18]!==T.title?(o=$&&(0,i.jsx)(el,{initialTitle:T.title,pullRequestNumber:T.number,onCloseForm:()=>M(!1)}),A[16]=$,A[17]=T.number,A[18]=T.title,A[19]=o):o=A[19],A[20]!==$||A[21]!==G?(c=!$&&(0,i.jsx)(“div”,{className:(0,h.$)(eX.A[“hide-on-desktop”],”pb-2 mb-3 flex-md-order-1 flex-shrink-0 d-flex flex-items-center gap-1″),children:G}),A[20]=$,A[21]=G,A[22]=c):c=A[22],A[23]!==$||A[24]!==T.number||A[25]!==T.title?(f=$&&(0,i.jsx)(“h1″,{className:”sr-only”,children:`${T.title} – #${T.number}`}),A[23]=$,A[24]=T.number,A[25]=T.title,A[26]=f):f=A[26],A[27]!==$||A[28]!==T.number||A[29]!==T.titleHtml||A[30]!==G?(p=!$&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.z.TitleArea,{children:(0,i.jsxs)(d.z.Title,{as:”h1″,className:”lh-condensed”,children:[(0,i.jsx)(v.JR,{className:”f1 text-normal markdown-title”,html:T.titleHtml}),(0,i.jsxs)(“span”,{className:”pl-2 fgColor-muted f1-light d-inline”,children:[“#”,T.number]})]})}),(0,i.jsx)(d.z.Actions,{className:(0,h.$)(eX.A[“hide-on-mobile”],”flex-items-center gap-1″),children:G})]}),A[27]=$,A[28]=T.number,A[29]=T.titleHtml,A[30]=G,A[31]=p):p=A[31],A[32]!==T.state?(g=(0,i.jsx)(u.u,{state:T.state}),A[32]=T.state,A[33]=g):g=A[33],A[34]!==$||A[35]!==T.author||A[36]!==T.baseBranch||A[37]!==T.commitsCount||A[38]!==T.headBranch||A[39]!==T.headRepositoryName||A[40]!==T.headRepositoryOwnerLogin||A[41]!==T.id||A[42]!==T.isInAdvisoryRepo||A[43]!==T.mergedBy||A[44]!==T.mergedByName||A[45]!==T.mergedTime||A[46]!==T.number||A[47]!==T.state||A[48]!==O.defaultBranch||A[49]!==O.id||A[50]!==O.name||A[51]!==O.ownerLogin||A[52]!==F.canChangeBase?(x=(0,i.jsx)(“div”,{className:”flex-1″,children:(0,i.jsx)(m.O,{author:T.author,mergedTime:T.mergedTime,baseBranch:T.baseBranch,baseRepositoryDefaultBranch:O.defaultBranch,baseRepositoryName:O.name,baseRepositoryOwnerLogin:O.ownerLogin,canChangeBase:F.canChangeBase,commitsCount:T.commitsCount,headBranch:T.headBranch,headRepositoryOwnerLogin:T.headRepositoryOwnerLogin,headRepositoryName:T.headRepositoryName,isInAdvisoryRepo:T.isInAdvisoryRepo,isEditing:$,mergedBy:T.mergedBy,mergedByName:T.mergedByName,repositoryId:O.id,pullRequestId:T.id,pullRequestNumber:T.number,setIsEditing:M,state:T.state})}),A[34]=$,A[35]=T.author,A[36]=T.baseBranch,A[37]=T.commitsCount,A[38]=T.headBranch,A[39]=T.headRepositoryName,A[40]=T.headRepositoryOwnerLogin,A[41]=T.id,A[42]=T.isInAdvisoryRepo,A[43]=T.mergedBy,A[44]=T.mergedByName,A[45]=T.mergedTime,A[46]=T.number,A[47]=T.state,A[48]=O.defaultBranch,A[49]=O.id,A[50]=O.name,A[51]=O.ownerLogin,A[52]=F.canChangeBase,A[53]=x):x=A[53],A[54]!==g||A[55]!==x?(b=(0,i.jsxs)(“div”,{className:”d-flex flex-column flex-sm-row gap-2 width-full flex-items-start flex-justify-between”,children:[g,x]}),A[54]=g,A[55]=x,A[56]=b):b=A[56],A[57]!==k||A[58]!==T||A[59]!==O?(y=(0,i.jsx)(K,{bannersData:k,pullRequest:T,repository:O}),A[57]=k,A[58]=T,A[59]=O,A[60]=y):y=A[60],A[61]!==b||A[62]!==y?(j=(0,i.jsxs)(d.z.Description,{className:”d-flex flex-column flex-items-start”,children:[b,y]}),A[61]=b,A[62]=y,A[63]=j):j=A[63],A[64]===Symbol.for(“react.memo_cache_sentinel”)?(S=(0,h.$)(eZ,”float-right d-none d-md-block”),A[64]=S):S=A[64],A[65]===Symbol.for(“react.memo_cache_sentinel”)?(L=(0,i.jsx)(“div”,{className:S,children:(0,i.jsx)(w.Suspense,{fallback:(0,i.jsx)(eJ.O,{width:”80px”}),children:(0,i.jsx)(ez,{})})}),A[65]=L):L=A[65],A[66]!==T||A[67]!==O||A[68]!==P?(D=(0,i.jsxs)(d.z.Navigation,{className:”pt-3 px-3 ml-n3 mr-n3″,children:[L,(0,i.jsx)(“div”,{className:”flex-auto”,children:(0,i.jsx)(e_,{pullRequest:T,repository:O,urls:P})})]}),A[66]=T,A[67]=O,A[68]=P,A[69]=D):D=A[69],A[70]!==p||A[71]!==j||A[72]!==D||A[73]!==f?(I=(0,i.jsxs)(d.z,{className:”flex-items-center”,children:[f,p,j,D]}),A[70]=p,A[71]=j,A[72]=D,A[73]=f,A[74]=I):I=A[74],A[75]!==E||A[76]!==T||A[77]!==O?(_=!E&&(0,i.jsx)(C,{repository:O,pullRequest:T,pageVariant:”condensed”}),A[75]=E,A[76]=T,A[77]=O,A[78]=_):_=A[78],A[79]!==I||A[80]!==_||A[81]!==o||A[82]!==c?(R=(0,i.jsxs)(i.Fragment,{children:[o,c,I,_]}),A[79]=I,A[80]=_,A[81]=o,A[82]=c,A[83]=R):R=A[83],R}:function({bannersData:e,isFilesRoute:t,pullRequest:n,repository:a,urls:r,user:s}){let[l,o]=(0,w.useState)(!1),c=(0,eY.M3)(),f=n.state!==V.Q.Closed&&n.state!==V.Q.Merged,p=(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(“div”,{className:”js-pull-header-details”,”data-pull-is-open”:f?”true”:”false”,hidden:!0}),t&&(0,i.jsx)(e3,{repository:a,urls:r}),c&&(0,i.jsxs)(i.Fragment,{children:[s.canEditTitle&&(0,i.jsx)(N.Q,{onClick:()=>o(!0),size:”small”,children:”Edit”}),(0,i.jsx)(eV,{codespacesEnabled:a.codespacesEnabled,headBranch:n.headBranch,isEnterprise:a.isEnterprise,pullRequestNumber:n.number,repository:a})]})]});return(0,i.jsxs)(i.Fragment,{children:[l&&(0,i.jsx)(el,{initialTitle:n.title,pullRequestNumber:n.number,onCloseForm:()=>o(!1)}),!l&&(0,i.jsx)(“div”,{className:(0,h.$)(eX.A[“hide-on-desktop”],”pb-2 mb-3 flex-md-order-1 flex-shrink-0 d-flex flex-items-center gap-1″),children:p}),(0,i.jsxs)(d.z,{className:”flex-items-center”,children:[l&&(0,i.jsx)(“h1″,{className:”sr-only”,children:`${n.title} – #${n.number}`}),!l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(d.z.TitleArea,{children:(0,i.jsxs)(d.z.Title,{as:”h1″,className:”lh-condensed”,children:[(0,i.jsx)(v.JR,{className:”f1 text-normal markdown-title”,html:n.titleHtml}),(0,i.jsxs)(“span”,{className:”pl-2 fgColor-muted f1-light d-inline”,children:[“#”,n.number]})]})}),(0,i.jsx)(d.z.Actions,{className:(0,h.$)(eX.A[“hide-on-mobile”],”flex-items-center gap-1″),children:p})]}),(0,i.jsxs)(d.z.Description,{className:”d-flex flex-column flex-items-start”,children:[(0,i.jsxs)(“div”,{className:”d-flex flex-column flex-sm-row gap-2 width-full flex-items-start flex-justify-between”,children:[(0,i.jsx)(u.u,{state:n.state}),(0,i.jsx)(“div”,{className:”flex-1″,children:(0,i.jsx)(m.O,{author:n.author,mergedTime:n.mergedTime,baseBranch:n.baseBranch,baseRepositoryDefaultBranch:a.defaultBranch,baseRepositoryName:a.name,baseRepositoryOwnerLogin:a.ownerLogin,canChangeBase:s.canChangeBase,commitsCount:n.commitsCount,headBranch:n.headBranch,headRepositoryOwnerLogin:n.headRepositoryOwnerLogin,headRepositoryName:n.headRepositoryName,isInAdvisoryRepo:n.isInAdvisoryRepo,isEditing:l,mergedBy:n.mergedBy,mergedByName:n.mergedByName,repositoryId:a.id,pullRequestId:n.id,pullRequestNumber:n.number,setIsEditing:o,state:n.state})})]}),(0,i.jsx)(K,{bannersData:e,pullRequest:n,repository:a})]}),(0,i.jsxs)(d.z.Navigation,{className:”pt-3 px-3 ml-n3 mr-n3″,children:[(0,i.jsx)(“div”,{className:(0,h.$)(eZ,”float-right d-none d-md-block”),children:(0,i.jsx)(w.Suspense,{fallback:(0,i.jsx)(eJ.O,{width:”80px”}),children:(0,i.jsx)(ez,{})})}),(0,i.jsx)(“div”,{className:”flex-auto”,children:(0,i.jsx)(e_,{pullRequest:n,repository:a,urls:r})})]})]}),!t&&(0,i.jsx)(C,{repository:a,pullRequest:n,pageVariant:”condensed”})]})},e3=(0,a.Z6)()?function(e){let t,n,a,s,l,o,d,c,u=(0,r.c)(11),{repository:m,urls:f}=e;u[0]!==m?(t=async()=>{let e=new FormData;e.append(“feature_name”,”prx_files”),await (0,P.DI)((0,q.ZD8)({repo:m}),{body:e,method:”POST”})},u[0]=m,u[1]=t):t=u[1];let h=t;u[2]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,eY.M3)(),u[2]=n):n=u[2];let p=n,g=e0.fV.pathname??””,x=e0.fV.search??””;return a=g?`${g}${x?`${x}&`:”?”}new_files_changed=false`:`${f.files}?new_files_changed=false`,u[3]===Symbol.for(“react.memo_cache_sentinel”)?(s=(0,i.jsx)(S.A,{variant:”success”,className:eQ,children:”Preview”}),u[3]=s):s=u[3],u[4]!==h||u[5]!==a?(l=p&&(0,i.jsx)(L.A,{href:a,onClick:h,className:”no-wrap f6 text-normal”,children:”Switch back”}),u[4]=h,u[5]=a,u[6]=l):l=u[6],u[7]===Symbol.for(“react.memo_cache_sentinel”)?(o=(0,i.jsx)(“span”,{className:”f5″,children:”\xb7″}),d=(0,i.jsx)(L.A,{href:”https://gh.io/new-files-changed-feedback”,target:”_blank”,rel:”noopener noreferrer”,className:”no-wrap f6 text-normal”,children:”Feedback”}),u[7]=o,u[8]=d):(o=u[7],d=u[8]),u[9]!==l?(c=(0,i.jsxs)(“div”,{className:”d-flex flex-items-center gap-1 flex-order-2 flex-md-order-none pl-2 pl-md-0 pr-2″,children:[s,l,o,d]}),u[9]=l,u[10]=c):c=u[10],c}:function({repository:e,urls:t}){let n,a=async()=>{let t=new FormData;t.append(“feature_name”,”prx_files”),await (0,P.DI)((0,q.ZD8)({repo:e}),{body:t,method:”POST”})},r=(0,eY.M3)(),s=e0.fV.pathname??””,l=e0.fV.search??””;return n=s?`${s}${l?`${l}&`:”?”}new_files_changed=false`:`${t.files}?new_files_changed=false`,(0,i.jsxs)(“div”,{className:”d-flex flex-items-center gap-1 flex-order-2 flex-md-order-none pl-2 pl-md-0 pr-2″,children:[(0,i.jsx)(S.A,{variant:”success”,className:eQ,children:”Preview”}),r&&(0,i.jsx)(L.A,{href:n,onClick:a,className:”no-wrap f6 text-normal”,children:”Switch back”}),(0,i.jsx)(“span”,{className:”f5″,children:”\xb7″}),(0,i.jsx)(L.A,{href:”https://gh.io/new-files-changed-feedback”,target:”_blank”,rel:”noopener noreferrer”,className:”no-wrap f6 text-normal”,children:”Feedback”})]})};try{e1.displayName||(e1.displayName=”LivePullRequestHeader”)}catch{}try{e2.displayName||(e2.displayName=”PullRequestHeader”)}catch{}try{e3.displayName||(e3.displayName=”FilesChangedFeedback”)}catch{}let e4=”/:owner/:repo/pull/:pr_number/files”,e5=”/:owner/:repo/pull/:pr_number/changes”;var e6=n(24798),e7=n(16795),e8=n(68245);let e9=(0,a.Z6)()?function(e){let t,n,a=(0,r.c)(3);return a[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=(0,i.jsx)(o.M,{}),a[0]=t):t=a[0],a[1]!==e.children?(n=(0,i.jsx)(l.t,{critical:!0,fallback:t,children:(0,i.jsx)(te,{children:e.children})}),a[1]=e.children,a[2]=n):n=a[2],n}:function(e){return(0,i.jsx)(l.t,{critical:!0,fallback:(0,i.jsx)(o.M,{}),children:(0,i.jsx)(te,{children:e.children})})},te=(0,a.Z6)()?function(e){let t,n=(0,r.c)(8),{aliveChannel:a,pullRequest:s,bannersData:l,repository:o,urls:d,user:c}=(0,e6.o)();return n[0]!==a||n[1]!==l||n[2]!==e.children||n[3]!==s||n[4]!==o||n[5]!==d||n[6]!==c?(t=(0,i.jsx)(tt,{aliveChannel:a,pullRequest:s,bannersData:l,repository:o,urls:d,user:c,children:e.children}),n[0]=a,n[1]=l,n[2]=e.children,n[3]=s,n[4]=o,n[5]=d,n[6]=c,n[7]=t):t=n[7],t}:function(e){let{aliveChannel:t,pullRequest:n,bannersData:a,repository:r,urls:s,user:l}=(0,e6.o)();return(0,i.jsx)(tt,{aliveChannel:t,pullRequest:n,bannersData:a,repository:r,urls:s,user:l,children:e.children})},tt=(0,a.Z6)()?function(e){let t,n,a,l,o=(0,r.c)(18),{aliveChannel:d,pullRequest:c,bannersData:u,repository:m,urls:f,user:h,children:p}=e,g=null!==(0,ef.RQ)(`${e4}/*`),x=null!==(0,ef.RQ)(`${e5}/*`),b=g||x,v=b?j:y,C=m.userNameDisplayConfiguration||void 0,w=`mt-4 ${v}`;return o[0]!==d||o[1]!==u||o[2]!==b||o[3]!==c||o[4]!==m||o[5]!==f||o[6]!==h?(t=(0,i.jsx)(e7.b.Header,{divider:”none”,padding:”none”,children:(0,i.jsx)(e1,{aliveChannel:d,bannersData:u,isFilesRoute:b,repository:m,pullRequest:c,urls:f,user:h})}),o[0]=d,o[1]=u,o[2]=b,o[3]=c,o[4]=m,o[5]=f,o[6]=h,o[7]=t):t=o[7],o[8]!==p||o[9]!==w||o[10]!==t?(n=(0,i.jsxs)(e7.b.Container,{className:w,children:[t,p]}),o[8]=p,o[9]=w,o[10]=t,o[11]=n):n=o[11],o[12]!==C||o[13]!==n?(a=(0,i.jsx)(e8.z,{value:C,children:n}),o[12]=C,o[13]=n,o[14]=a):a=o[14],o[15]!==a||o[16]!==f.conversation?(l=(0,i.jsx)(s.Kg,{basePageDataUrl:f.conversation,children:a}),o[15]=a,o[16]=f.conversation,o[17]=l):l=o[17],l}:function({aliveChannel:e,pullRequest:t,bannersData:n,repository:a,urls:r,user:l,children:o}){let d=null!==(0,ef.RQ)(`${e4}/*`),c=null!==(0,ef.RQ)(`${e5}/*`),u=d||c,m=u?j:y;return(0,i.jsx)(s.Kg,{basePageDataUrl:r.conversation,children:(0,i.jsx)(e8.z,{value:a.userNameDisplayConfiguration||void 0,children:(0,i.jsxs)(e7.b.Container,{className:`mt-4 ${m}`,children:[(0,i.jsx)(e7.b.Header,{divider:”none”,padding:”none”,children:(0,i.jsx)(e1,{aliveChannel:e,bannersData:n,isFilesRoute:u,repository:a,pullRequest:t,urls:r,user:l})}),o]})})})};try{e9.displayName||(e9.displayName=”App”)}catch{}try{te.displayName||(te.displayName=”Layout”)}catch{}try{tt.displayName||(tt.displayName=”LayoutComponent”)}catch{}},89155:(e,t,n)=>{n.d(t,{F:()=>l});var i=n(68273),a=n(16522),r=n(39029),s=n(34261);let l=(0,i.Z6)()?function(e){let t,n=(0,a.c)(1),{refetch:i}=(0,s.W)();n[0]===Symbol.for(“react.memo_cache_sentinel”)?(t={git_updated:!0,title_updated:!0},n[0]=t):t=n[0],(0,r.og)(e,i,t)}:function(e){let{refetch:t}=(0,s.W)();(0,r.og)(e,t,{git_updated:!0,title_updated:!0})}},93642:(e,t,n)=>{function i(e,t){for(let n of function e(t,n=[]){var i,r;let s;if(“”===t)return n;let l=t.match(a());if(!l)return n;let o=l.groups.fence;if(!o)return n;let d=o.includes(“~”)?”~”:”`”,c=t.match((s=a([i=d],r=o.length),RegExp(`${s.source}(?:\r?
)(?.*?)(?:\r?
)^ {0,3}${i}{${r},}[ ]*$`,”ms”)));if(!c)return n;let u=0,m=l.groups.indent;””!==m&&(u=m.length);let f=c.groups.suggestion;if(u>0){let e=RegExp(`^ {0,${u}}`,”m”);f=f.replace(e,””)}return n.push(f),e(t.slice(c.index+c[0].length),n)}(e))if(n===t)return{isValid:!1,errorMessage:”Suggested change cannot be the same as the original line”};return{isValid:!0,errorMessage:””}}function a(e=[“`”,”~”],t){let n=t?`{${t}}`:”{3,}”,i=e.map(e=>`${e}${n}`);return RegExp(`^(? {0,3})(?${i.join(“|”)})suggestion[ ]*$`,”m”)}n.d(t,{u:()=>i})},94195:(e,t,n)=>{n.d(t,{Gy:()=>d,LB:()=>h,nn:()=>p,lm:()=>m});var i=n(74848),a=n(96540);let r=null,s=null,l=new Set;function o(e){return l.add(e),r||(r=new ResizeObserver(()=>{s||(s=requestAnimationFrame(()=>{for(let e of(s=null,l))e()}))})).observe(document.documentElement),()=>{l.delete(e),0===l.size&&r&&(r.disconnect(),r=null)}}let d={small:1,medium:544,large:768,xlarge:1012,xxlarge:1280,xxxlarge:1350,xxxxlarge:1440},c=[d.xxxxlarge,d.xxxlarge,d.xxlarge,d.xlarge,d.large,d.medium,d.small],u=a.createContext({screenSize:d.small});function m(){return a.useContext(u)}function f(){return p(window.innerWidth)}function h({children:e,initialValue:t=d.small}){let n=(0,a.useSyncExternalStore)(o,f,(0,a.useCallback)(()=>t,[t])),r=(0,a.useMemo)(()=>({screenSize:n}),[n]);return(0,i.jsx)(u.Provider,{value:r,children:e})}function p(e){for(let t of c)if(e>=t)return t;return d.small}try{u.displayName||(u.displayName=”ScreenContext”)}catch{}try{h.displayName||(h.displayName=”ScreenSizeProvider”)}catch{}},95807:(e,t,n)=>{n.d(t,{i:()=>v});var i=n(74848),a=n(68273),r=n(16522),s=n(96379),l=n(21373),o=n(69726),d=n(11196),c=n(96540),u=n(30459),m=n(57224),f=n(70263);let h=”PullRequestsProcessingIndicator-module__button–IKkby”,p=”PullRequestsProcessingIndicator-module__indicator–iNiwb”,g=”PullRequestsProcessingIndicator-module__text–JUMXg”;function x(e,t){return Math.round(e.getTime()-t.getTime())/1e3}let b={stale:!1,latest_unsynced_push_to_head_ref_at:null};function v({processingIndicatorUrl:e,repositoryId:t,pullRequestId:n}){let[a,r]=(0,c.useState)(b),l=(0,f.A)(),o=(0,c.useCallback)(async()=>{try{let t=await (0,s.lS)(e);if(t.ok){let e=await t.json();l()&&r(e)}}catch{l()&&r(b)}},[l,e]);(0,c.useEffect)(()=>{o()},[]);let{stale:d,latest_unsynced_push_to_head_ref_at:u}=a;return(0,i.jsx)(“div”,{className:”border-left pl-1″,children:(0,i.jsx)(m.y,{appName:”pull-requests-processing-indicator”,category:”render”,metadata:{},children:(0,i.jsx)(y,{pullRequestId:n,repositoryId:t,stale:d,latest_unsynced_push_to_head_ref_at:u})})})}let y=(0,a.Z6)()?function(e){let t,n,a=(0,r.c)(6),{pullRequestId:s,repositoryId:c,stale:m,latest_unsynced_push_to_head_ref_at:f}=e,{sendAnalyticsEvent:b}=(0,u.s)();if(!m||!f)return null;if(a[0]!==f||a[1]!==s||a[2]!==c||a[3]!==b){t=Symbol.for(“react.early_return_sentinel”);e:{let e=x(new Date,new Date(f));if(e<20||e>=86400){t=null;break e}b(“pull_requests.processing_indicator”,””,{repositoryId:c,pullRequestId:s,secondsSinceLastPush:e})}a[0]=f,a[1]=s,a[2]=c,a[3]=b,a[4]=t}else t=a[4];return t!==Symbol.for(“react.early_return_sentinel”)?t:(a[5]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,i.jsx)(d.m,{text:”Recent push is being processed and will appear soon”,direction:”s”,children:(0,i.jsx)(l.Q,{as:”a”,href:”https://gh.io/pr-sync-in-progress”,variant:”invisible”,className:h,children:(0,i.jsxs)(“div”,{className:p,children:[(0,i.jsx)(o.A,{size:”small”}),(0,i.jsx)(“span”,{className:g,children:”Processing updates”})]})})}),a[5]=n):n=a[5],n)}:function({pullRequestId:e,repositoryId:t,stale:n,latest_unsynced_push_to_head_ref_at:a}){let{sendAnalyticsEvent:r}=(0,u.s)();if(!n||!a)return null;let s=x(new Date,new Date(a));return s<20||s>=86400?null:(r(“pull_requests.processing_indicator”,””,{repositoryId:t,pullRequestId:e,secondsSinceLastPush:s}),(0,i.jsx)(d.m,{text:”Recent push is being processed and will appear soon”,direction:”s”,children:(0,i.jsx)(l.Q,{as:”a”,href:”https://gh.io/pr-sync-in-progress”,variant:”invisible”,className:h,children:(0,i.jsxs)(“div”,{className:p,children:[(0,i.jsx)(o.A,{size:”small”}),(0,i.jsx)(“span”,{className:g,children:”Processing updates”})]})})}))};try{v.displayName||(v.displayName=”PullRequestsProcessingIndicatorWithDataFetching”)}catch{}try{y.displayName||(y.displayName=”PullRequestsProcessingIndicator”)}catch{}},97695:(e,t,n)=>{n.d(t,{H:()=>m});var i=n(68273),a=n(16522),r=n(48845),s=n(20622),l=n(97665),o=n(94747),d=n(69510),c=n(27011),u=n(21067);let m=(0,i.Z6)()?function(e,t){let n,i,m,f,h=(0,a.c)(12),p=(0,c.Kp)();h[0]===Symbol.for(“react.memo_cache_sentinel”)?(n=(0,u.cj)(),h[0]=n):n=h[0];let g=n,x=`${p}/page_data/${s.uT.resolveThread}`,b=(0,l.jE)(),{updateThread:v}=(0,c.an)();return h[1]!==x?(i=async e=>{let{threadId:t}=e,n=await (0,r.q$)(x,{method:”POST”,body:{threadId:t}});(0,r.R)(n)},h[1]=x,h[2]=i):i=h[2],h[3]!==p||h[4]!==e||h[5]!==t||h[6]!==b||h[7]!==v?(m=(n,i)=>(v(Number(i.threadId),e,t,e=>{if(e)return{…e,isResolved:!0,resolvedBy:g}}),b.invalidateQueries({queryKey:(0,d.XG)(p)})),h[3]=p,h[4]=e,h[5]=t,h[6]=b,h[7]=v,h[8]=m):m=h[8],h[9]!==i||h[10]!==m?(f={mutationFn:i,onSuccess:m},h[9]=i,h[10]=m,h[11]=f):f=h[11],(0,o.n)(f)}:function(e,t){let n=(0,c.Kp)(),i=(0,u.cj)(),a=`${n}/page_data/${s.uT.resolveThread}`,m=(0,l.jE)(),{updateThread:f}=(0,c.an)();return(0,o.n)({mutationFn:async({threadId:e})=>{let t=await (0,r.q$)(a,{method:”POST”,body:{threadId:e}});(0,r.R)(t)},onSuccess:(a,r)=>(f(Number(r.threadId),e,t,e=>{if(e)return{…e,isResolved:!0,resolvedBy:i}}),m.invalidateQueries({queryKey:(0,d.XG)(n)}))})}},99279:(e,t,n)=>{n.d(t,{G:()=>i});let i=n(12435).$h.create(“pull-requests”)}}]);
//# sourceMappingURL=82181-4b0e561b23a4.js.map