performance.mark("js-parse-end:7098-0ccd092468505982.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["7098"],{8470(e,t,n){n.d(t,{I:()=>i});let i=(0,n(96540).createContext)(null);i.displayName="AnalyticsContext"},66588(e,t,n){n.d(t,{$:()=>el,N:()=>es});var i=n(74848),o=n(96540),r=n(16522),a=n(22766),s=n(54242),l=n(36594),d=n(26316),c=n(38621),m=n(59134),u=n(21373),h=n(7771),p=n(34164),f=n(69895),x=n(89684),g=n(5823),v=n(16899);let w=()=>{let e,t=(0,r.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)("div",{className:"d-flex gap-2",children:(0,i.jsx)("div",{className:"flex-1 border overflow-x-auto rounded-2 borderColor-muted color-shadow-small",children:(0,i.jsxs)("div",{className:"d-flex flex-column gap-2 tmp-m-3",children:[(0,i.jsxs)("div",{className:"d-flex flex-items-center gap-2",children:[(0,i.jsx)(v.O,{variant:"elliptical",height:"xl",width:"xl"}),(0,i.jsx)(v.O,{variant:"rounded",height:"sm",width:"150px"})]}),[void 0,void 0].map(b),(0,i.jsx)(g.e,{})]})})}),t[0]=e):e=t[0],e};function b(e,t){return(0,i.jsx)(v.O,{variant:"rounded",height:"sm",width:"random"},t)}w.displayName="CommentLoading";var C=n(22182),y=n(57053),j=n(43145),_=n(20875),S=n(38633),k=n(29886),N=n(38771),E=n(70415),L=n(96495),I=n(18292),T=n(11675),R=n(40442);let M=({ref:e=null,initialMarkdown:t,onCancel:n,onSave:r,referenceId:a,buttonText:s,commentContent:l})=>{let[d,c]=(0,o.useState)(!1),m=(0,o.useRef)(null),u=(0,o.useRef)(void 0),{commentBoxSubject:h}=(0,E.X)(),p=(0,o.useCallback)(()=>{},[]),{markdownBody:f,resetMarkdownBody:x,markdownValidationResult:g,handleMarkdownBodyChanged:v}=(0,R.x)({commentBoxRef:m,markdownComposerRef:e,onChange:p,onCancel:()=>{},referenceId:a,insidePortal:!1});(0,o.useEffect)(()=>{t&&!f&&v(t)},[t]),(0,o.useEffect)(()=>{if(l&&u.current!==l){v(l),u.current=l;let e=window.setTimeout(()=>{m.current&&(m.current?.scrollIntoView(),m.current?.focus())},0);return()=>{window.clearTimeout(e)}}},[l]),(0,o.useLayoutEffect)(()=>{if(m&&m.current){let e=window.setTimeout(()=>{m.current?.focus()},0);return()=>{window.clearTimeout(e)}}},[m]);let w=async()=>{c(!0),await r(f,x),c(!1)};return(0,i.jsx)(T.hF,{ref:m,validationResult:g,disabled:d,onChange:e=>{v(e)},onCancel:()=>{v(""),n?.()},onSave:w,saveButtonText:s,saveButtonTrailingIcon:!1,value:f,teamHovercardsEnabled:!0,fileUploadsEnabled:!0,subject:h})};function A(e){let t,n,a=(0,r.c)(10),{comment:s,commitOid:l,onCancel:d,onUpdate:c}=e,{editComment:m}=(0,E.X)(),u=(0,o.useRef)(null);a[0]!==s||a[1]!==m||a[2]!==c?(t=async e=>{let t=await m(e,s);t.updatedFields&&c({...s,...t.updatedFields})},a[0]=s,a[1]=m,a[2]=c,a[3]=t):t=a[3];let h=t,p=`${l}-${s.id}`;return a[4]!==s.body||a[5]!==l||a[6]!==d||a[7]!==h||a[8]!==p?(n=(0,i.jsx)(M,{commitOid:l,initialMarkdown:s.body,ref:u,onSave:h,onCancel:d,referenceId:p,buttonText:"Update comment"}),a[4]=s.body,a[5]=l,a[6]=d,a[7]=h,a[8]=p,a[9]=n):n=a[9],n}function B(e){let t,n,o=(0,r.c)(17),{comments:a,commit:s,locked:l,deleteComment:d,updateComment:c,setNewCommentContent:m,repoOwnerGlobalRelayId:u}=e;if(0===a.length)return null;if(o[0]!==a||o[1]!==s||o[2]!==d||o[3]!==l||o[4]!==u||o[5]!==m||o[6]!==c){let e;o[8]!==s||o[9]!==d||o[10]!==l||o[11]!==u||o[12]!==m||o[13]!==c?(e=e=>(0,i.jsx)(z,{comment:e,commit:s,locked:l,deleteComment:d,updateComment:c,setNewCommentContent:m,repoOwnerGlobalRelayId:u},e.id),o[8]=s,o[9]=d,o[10]=l,o[11]=u,o[12]=m,o[13]=c,o[14]=e):e=o[14],t=a.map(e),o[0]=a,o[1]=s,o[2]=d,o[3]=l,o[4]=u,o[5]=m,o[6]=c,o[7]=t}else t=o[7];return o[15]!==t?(n=(0,i.jsx)("div",{className:"d-flex flex-column gap-3",children:t}),o[15]=t,o[16]=n):n=o[16],n}function z(e){let t,n,a,l,d,c,m,u,h,p,f,x=(0,r.c)(46),{comment:v,commit:w,locked:b,deleteComment:C,updateComment:y,setNewCommentContent:j,repoOwnerGlobalRelayId:_}=e,S=(0,s.t)(),[T,R]=(0,o.useState)(!1),[M,B]=(0,o.useState)(v.isHidden),z=(0,o.useRef)(null),{deleteComment:F,hideComment:P,unhideComment:H}=(0,E.X)();x[0]!==v.id||x[1]!==F||x[2]!==C?(t=async()=>{let e=await F(v.id.toString());"canceled"===e||"error"!==e&&"success"===e&&C(v.id)},x[0]=v.id,x[1]=F,x[2]=C,x[3]=t):t=x[3];let V=t;x[4]!==y?(n=e=>{y(e),R(!1)},x[4]=y,x[5]=n):n=x[5];let X=n;x[6]!==v||x[7]!==P||x[8]!==y?(a=async e=>{let t=await P(v.id.toString(),e);"error"!==t&&"success"===t&&(y({...v,isHidden:!0,minimizedReason:e}),B(!0))},x[6]=v,x[7]=P,x[8]=y,x[9]=a):a=x[9];let Q=a;x[10]!==v||x[11]!==H||x[12]!==y?(l=async()=>{let e=await H(v.id.toString());"error"!==e&&"success"===e&&(y({...v,isHidden:!1,minimizedReason:null}),B(!1))},x[10]=v,x[11]=H,x[12]=y,x[13]=l):l=x[13];let G=l,W=w.authors.length>0?w.authors[0]?.login:"";x[14]!==v||x[15]!==w||x[16]!==S||x[17]!==_?(d=(0,L.p)(v,w,S,_),x[14]=v,x[15]=w,x[16]=S,x[17]=_,x[18]=d):d=x[18],x[19]!==w.oid?(c=(0,I.F)(w.oid),x[19]=w.oid,x[20]=c):c=x[20],x[21]!==d||x[22]!==c?(m={...d,referenceText:c},x[21]=d,x[22]=c,x[23]=m):m=x[23];let K=m;x[24]===Symbol.for("react.memo_cache_sentinel")?(u=()=>{R(!0)},x[24]=u):u=x[24];let q=v.viewerCanReadUserContentEdits&&!!v.lastUserContentEdit;return x[25]!==v||x[26]!==W||x[27]!==M||x[28]!==V||x[29]!==Q||x[30]!==G||x[31]!==j||x[32]!==q||x[33]!==K?(h=(0,i.jsx)(U,{comment:K,commentAuthorLogin:v.author.login,commentSubjectAuthorLogin:W,commentSubjectType:"commit",avatarUrl:v.author.avatarUrl,isMinimized:M,editComment:u,onReplySelect:j,onMinimize:B,navigate:$,hideComment:Q,unhideComment:G,deleteComment:V,commentRef:z,showEditHistory:q,commitComment:v}),x[25]=v,x[26]=W,x[27]=M,x[28]=V,x[29]=Q,x[30]=G,x[31]=j,x[32]=q,x[33]=K,x[34]=h):h=x[34],x[35]!==v||x[36]!==w.oid||x[37]!==T||x[38]!==M||x[39]!==b||x[40]!==X?(p=M?null:T?(0,i.jsx)("div",{className:"m-2",children:(0,i.jsx)(A,{comment:v,commitOid:w.oid,onUpdate:X,onCancel:()=>R(!1)})}):(0,i.jsxs)("div",{className:"d-flex flex-column tmp-m-3 gap-3",style:{gap:"12px"},children:[(0,i.jsx)("div",{className:"markdown-body","data-turbolinks":"false",children:(0,i.jsx)(k.G,{disabled:!1,verifiedHTML:v.htmlBody,markdownValue:v.body,onChange:D,onLinkClick:O,teamHovercardsEnabled:!0})}),(0,i.jsx)(o.Suspense,{fallback:(0,i.jsx)(g.e,{}),children:(0,i.jsx)(N.ReactionViewerRelayQueryComponent,{id:v.relayId,subjectLocked:b})})]}),x[35]=v,x[36]=w.oid,x[37]=T,x[38]=M,x[39]=b,x[40]=X,x[41]=p):p=x[41],x[42]!==v.urlFragment||x[43]!==h||x[44]!==p?(f=(0,i.jsxs)("div",{className:"border rounded-2",ref:z,id:v.urlFragment,tabIndex:-1,children:[h,p]}),x[42]=v.urlFragment,x[43]=h,x[44]=p,x[45]=f):f=x[45],f}function O(){}function D(){}function $(){}function U(e){let t,n,a,s,l,d,c=(0,r.c)(15);c[0]!==e?({hideActions:t,...n}=e,c[0]=e,c[1]=t,c[2]=n):(t=c[1],n=c[2]);let m=n.commitComment;if(n.showEditHistory){let e,t;c[3]!==m.relayId?(e=(0,i.jsx)(o.Suspense,{fallback:null,children:(0,i.jsx)(H,{id:m.relayId})}),c[3]=m.relayId,c[4]=e):e=c[4],l=e,c[5]!==n.comment.id?(t=(0,i.jsx)(V,{id:n.comment.id}),c[5]=n.comment.id,c[6]=t):t=c[6],d=t}return c[7]!==t||c[8]!==n?(a=t?void 0:(0,i.jsx)(y.p,{onSuccessfulBlock:F,...n}),c[7]=t,c[8]=n,c[9]=a):a=c[9],c[10]!==l||c[11]!==d||c[12]!==n||c[13]!==a?(s=(0,i.jsx)(C.v,{lastEditedByMessage:d,editHistoryComponent:l,forceInlineAvatar:!0,...n,actions:a}),c[10]=l,c[11]=d,c[12]=n,c[13]=a,c[14]=s):s=c[14],s}function F(){setTimeout(P,800)}function P(){return d.cg?.location.reload()}function H(e){let t,n,o=(0,r.c)(4),{id:a}=e;o[0]!==a?(t={id:a},o[0]=a,o[1]=t):t=o[1];let s=(0,S.f)(t);return o[2]!==s?(n=s?(0,i.jsx)(j.W,{editHistory:s}):null,o[2]=s,o[3]=n):n=o[3],n}function V(e){let t,n,o=(0,r.c)(4),{id:a}=e;o[0]!==a?(t={id:a},o[0]=a,o[1]=t):t=o[1];let s=(0,S.f)(t);return o[2]!==s?(n=s?(0,i.jsx)(_._,{editInformation:s}):null,o[2]=s,o[3]=n):n=o[3],n}M.displayName="CommitCommentEditor",A.displayName="UpdateCommitComment",B.displayName="ExistingCommitComments",z.displayName="ExistingCommitComment",U.displayName="CommitCommentHeader",H.displayName="CommitCommentHeaderEditHistory",V.displayName="CommitCommentHeaderLastEditedBy";var X=n(23666),Q=n(50964),G=n(78597),W=n(61398);function K(e){let t,n,a,l,d,c,u,h,p,f,x=(0,r.c)(33),{commitOid:g,locked:v,onClose:w}=e,b=(0,s.t)(),{helpUrl:C}=(0,Q.X)(),[y,j]=(0,o.useState)(!1),_=v?"Unlock":"Lock",S=v?"lock":"unlock";x[0]!==g||x[1]!==w||x[2]!==b?(t=async()=>{(await (0,G.DI)(`${(0,X.$Qz)({owner:b.ownerLogin,repo:b.name,commitish:g})}/lock`,{method:"PUT",headers:{Accept:"application/json"}})).ok?w(!0):j(!0)},x[0]=g,x[1]=w,x[2]=b,x[3]=t):t=x[3];let k=t;x[4]!==g||x[5]!==w||x[6]!==b?(n=async()=>{(await (0,G.lS)(`${(0,X.$Qz)({owner:b.ownerLogin,repo:b.name,commitish:g})}/unlock`,{method:"PUT",headers:{Accept:"application/json"}})).ok?w(!1):j(!0)},x[4]=g,x[5]=w,x[6]=b,x[7]=n):n=x[7];let N=n;x[8]!==w?(a=()=>w(),x[8]=w,x[9]=a):a=x[9];let E=`${_} conversation on this commit`,L=`${_} conversation`;x[10]===Symbol.for("react.memo_cache_sentinel")?(l={width:"100%"},x[10]=l):l=x[10];let I=v?N:k;return x[11]!==L||x[12]!==I?(d=[{content:L,buttonType:"danger",style:l,onClick:I}],x[11]=L,x[12]=I,x[13]=d):d=x[13],x[14]!==_||x[15]!==y?(c=y&&(0,i.jsxs)(m.A,{className:"mb-2",variant:"danger",children:["There was an error ",_.toLocaleLowerCase(),"ing this conversation. Please try again."]}),x[14]=_,x[15]=y,x[16]=c):c=x[16],x[17]!==_?(u=(0,i.jsxs)("p",{children:[_,"ing the conversation means:"]}),x[17]=_,x[18]=u):u=x[18],x[19]!==C||x[20]!==v||x[21]!==b?(h=(0,i.jsx)("ul",{className:"tmp-ml-4",children:v?(0,i.jsxs)("li",{children:[(0,i.jsx)("strong",{children:"Everyone"})," will be able to comment on this commit once more."]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("li",{children:["Other users ",(0,i.jsx)("strong",{children:"can\u2019t add new comments"})," to this commit."]}),b.isOrgOwned?(0,i.jsxs)("li",{children:["You and other members of teams with"," ",(0,i.jsx)("a",{href:`${C}/get-started/learning-about-github/access-permissions-on-github`,children:"write access"})," ","to this repository ",(0,i.jsx)("strong",{children:"can still leave comments"})," that others can see."]}):(0,i.jsxs)("li",{children:["You and other collaborators"," ",(0,i.jsx)("a",{href:`${C}/get-started/learning-about-github/access-permissions-on-github`,children:"with access"})," to this repository ",(0,i.jsx)("strong",{children:"can still leave comments"})," that others can see."]})]})}),x[19]=C,x[20]=v,x[21]=b,x[22]=h):h=x[22],x[23]!==S?(p=(0,i.jsxs)("p",{className:"mb-0 mt-2",children:["You can always ",S," this commit again in the future."]}),x[23]=S,x[24]=p):p=x[24],x[25]!==u||x[26]!==h||x[27]!==p||x[28]!==a||x[29]!==E||x[30]!==d||x[31]!==c?(f=(0,i.jsxs)(W.l,{onClose:a,width:"large",title:E,footerButtons:d,children:[c,u,h,p]}),x[25]=u,x[26]=h,x[27]=p,x[28]=a,x[29]=E,x[30]=d,x[31]=c,x[32]=f):f=x[32],f}K.displayName="LockConversationDialog";var q=n(7909),Y=n(93899),Z=n(78093),J=n(34810),ee=n(93238),et=n(206);function en(e){let t,n,a,s,l,m=(0,r.c)(16),{commitOid:u,onAddComment:h,onExpandCommentEditor:p,newCommentContent:f,canComment:x,locked:g,repoArchived:v,avatarURL:w}=e;m[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,q.M3)(),m[0]=t):t=m[0];let b=t,{addComment:C}=(0,E.X)(),y=(0,o.useRef)(null);m[1]!==C||m[2]!==h?(n=async(e,t)=>{let n=await C(e);n.comment&&(h(n.comment),t())},m[1]=C,m[2]=h,m[3]=n):n=m[3];let j=n;m[4]===Symbol.for("react.memo_cache_sentinel")?(a=b?void 0:(0,i.jsx)(eo,{redirectUrl:d.fV?.href}),m[4]=a):a=m[4],m[5]!==g||m[6]!==v?(s=(0,Z.i)(v,g,a,"commit"),m[5]=g,m[6]=v,m[7]=s):s=m[7];let _=s;return m[8]!==w||m[9]!==x||m[10]!==u||m[11]!==f||m[12]!==p||m[13]!==j||m[14]!==_?(l=(0,i.jsx)("div",{className:"d-flex flex-column gap-2 tmp-pt-3",children:x?(0,i.jsx)(ei,{commitOid:u,commentEditor:y,onExpandEditor:p,onSave:j,newCommentContent:f,avatarURL:w||ee.t.ghostUser.avatarUrl}):(0,i.jsx)(Y.P,{icon:c.LockIcon,reason:_})}),m[8]=w,m[9]=x,m[10]=u,m[11]=f,m[12]=p,m[13]=j,m[14]=_,m[15]=l):l=m[15],l}function ei(e){let[t,n]=(0,o.useState)(()=>void 0!==e.newCommentContent),[r,s]=(0,o.useState)(e.newCommentContent);t||void 0===e.newCommentContent||r===e.newCommentContent||(n(!0),s(e.newCommentContent));let l="Comment";return t?(0,i.jsx)("div",{id:a.Bq.issueCommentComposer,children:(0,i.jsx)(M,{commitOid:e.commitOid,ref:e.commentEditor,onSave:e.onSave,referenceId:`new-discussion-comment-${e.commitOid}`,commentContent:e.newCommentContent,initialMarkdown:e.newCommentContent,buttonText:l,onCancel:()=>{n(!1)}})}):(0,i.jsxs)("div",{id:a.Bq.issueCommentComposer,className:"d-flex flex-items-center border rounded-2 p-2 gap-2 color-bg-subtle",children:[(0,i.jsx)(et.r,{src:e.avatarURL,size:20}),(0,i.jsx)(J.z,{onClick:()=>{n(!0),e.onExpandEditor?.()},children:l})]})}function eo(e){let t,n=(0,r.c)(2),{redirectUrl:o}=e,a=o?`/login?return_to=${o}`:"/login";return n[0]!==a?(t=(0,i.jsxs)("span",{children:["Please ",(0,i.jsx)("a",{href:a,children:"sign in"})," to comment."]}),n[0]=a,n[1]=t):t=n[1],t}en.displayName="NewCommitComment",ei.displayName="CompactEditor",eo.displayName="LoggedOutMessage";var er=n(29207);let ea=e=>{let t,n,a,l,d,m=(0,r.c)(15),{ref:h,commitOid:p,subscribed:f}=e,[x,g]=(0,o.useState)(f),[v,w]=(0,o.useState)(!1),b=(0,s.t)(),C=(0,er.H)("/notifications/thread","post");t=v?`You're now ${x?"subscribed":"unsubscribed"} to this thread.`:x?"You're receiving notifications because you're subscribed to this thread.":"You're not receiving notifications from this thread.",m[0]!==p||m[1]!==b.id||m[2]!==x||m[3]!==C?(n=async()=>{let e=new FormData;e.append("repository_id",b.id.toString()),e.append("thread_id",p),e.append("thread_class","Commit"),e.append("id",x?"unsubscribe":"subscribe"),e.append("authenticity_token",C??""),(await (0,G.DI)("/notifications/thread",{method:"POST",body:e})).ok&&(g(!x),w(!0))},m[0]=p,m[1]=b.id,m[2]=x,m[3]=C,m[4]=n):n=m[4];let y=n,j=x?c.BellSlashIcon:c.BellIcon,_=x?"Unsubscribe":"Subscribe";return m[5]!==j||m[6]!==_||m[7]!==y?(a=(0,i.jsx)(u.Q,{onClick:y,size:"small",leadingVisual:j,children:_}),m[5]=j,m[6]=_,m[7]=y,m[8]=a):a=m[8],m[9]!==t?(l=(0,i.jsx)("p",{role:"status",className:"f6 fgColor-muted mb-0",children:t}),m[9]=t,m[10]=l):l=m[10],m[11]!==h||m[12]!==a||m[13]!==l?(d=(0,i.jsxs)("div",{className:"d-flex flex-items-center border rounded-2 p-2 gap-2",ref:h,children:[a,l]}),m[11]=h,m[12]=a,m[13]=l,m[14]=d):d=m[14],d};ea.displayName="NotificationsFooter",ea.displayName="NotificationsFooter";let es="comments";function el(e){let t,n,s=(0,r.c)(3);return s[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,p.$)("d-flex flex-column gap-2 tmp-pt-3",a.mU.commentsContainer,"Comment-module__commit-discussion-comments___VBnj"),s[0]=t):t=s[0],s[1]!==e?(n=(0,i.jsx)("div",{className:t,id:es,children:(0,o.createElement)(ed,{...e,key:e.commit.oid})}),s[1]=e,s[2]=n):n=s[2],n}function ed(e){let t,n,a,c,h,p,g,v,b,C,y,j,_=(0,r.c)(50),{commit:S,commentInfo:k,repoOwnerGlobalRelayId:N}=e,E=(0,s.t)(),L=(0,l.i)(),{retry:I,loadMore:T,canLoadMore:R,addComment:M,deleteComment:A,updateComment:z,count:O,comments:D,subscribed:$,providerState:U}=(0,f.y)(),[F,P]=(0,o.useState)(void 0),[H,V]=(0,o.useState)(k.locked);_[0]!==S.oid||_[1]!==E.id?(t=(0,x.N)(S.oid,E.id),_[0]=S.oid,_[1]=E.id,_[2]=t):t=_[2];let X=t,Q=(0,o.useRef)(null);_[3]!==D?(n=()=>{if(d.cg?.location.hash){let e=d.cg.location.hash.slice(1);if(D.find(t=>t.urlFragment===e)){let t=document.getElementById(e);t&&(t.scrollIntoView(),t.focus())}}},a=[D],_[3]=D,_[4]=n,_[5]=a):(n=_[4],a=_[5]),(0,o.useEffect)(n,a),_[6]===Symbol.for("react.memo_cache_sentinel")?(c=()=>{setTimeout(()=>Q.current?.scrollIntoView({behavior:"smooth",block:"nearest"}),0)},_[6]=c):c=_[6];let G=c;return _[7]!==O||_[8]!==k.canLock||_[9]!==S.oid||_[10]!==H?(h=(0,i.jsx)(em,{commitOid:S.oid,commentCount:O,canLock:k.canLock,locked:H,setLocked:V}),_[7]=O,_[8]=k.canLock,_[9]=S.oid,_[10]=H,_[11]=h):h=_[11],_[12]!==U?(p="loading"===U&&(0,i.jsx)(w,{}),_[12]=U,_[13]=p):p=_[13],_[14]!==U||_[15]!==I?(g="error"===U&&(0,i.jsxs)(m.A,{className:"d-flex flex-justify-between flex-items-center",variant:"danger",children:[(0,i.jsx)("span",{children:"Failed to load comments."}),(0,i.jsx)(u.Q,{onClick:()=>I(),children:"Retry"})]}),_[14]=U,_[15]=I,_[16]=g):g=_[16],_[17]!==R||_[18]!==T||_[19]!==U?(v="loaded"===U&&R&&(0,i.jsx)(u.Q,{className:"width-full",onClick:()=>T(),children:"Load more comments"}),_[17]=R,_[18]=T,_[19]=U,_[20]=v):v=_[20],_[21]!==D||_[22]!==S||_[23]!==A||_[24]!==H||_[25]!==N||_[26]!==z?(b=(0,i.jsx)(B,{comments:D,commit:S,locked:H,repoOwnerGlobalRelayId:N,deleteComment:A,updateComment:z,setNewCommentContent:P}),_[21]=D,_[22]=S,_[23]=A,_[24]=H,_[25]=N,_[26]=z,_[27]=b):b=_[27],_[28]!==X?(C=X?(0,i.jsx)("div",{className:"text-center",children:[...Array(38)].map(ec)}):null,_[28]=X,_[29]=C):C=_[29],_[30]!==M||_[31]!==k.canComment||_[32]!==k.commitCommentsEnabled||_[33]!==k.repoArchived||_[34]!==D||_[35]!==S.oid||_[36]!==L||_[37]!==H||_[38]!==F||_[39]!==U||_[40]!==$?(y="loaded"===U||0!==D.length?(0,i.jsxs)(i.Fragment,{children:[k.commitCommentsEnabled??!0?(0,i.jsx)(en,{commitOid:S.oid,onAddComment:M,onExpandCommentEditor:G,newCommentContent:F,canComment:k.canComment,locked:H,repoArchived:k.repoArchived,avatarURL:L?.avatarURL}):null,L?(0,i.jsx)(ea,{ref:Q,commitOid:S.oid,subscribed:$??!1}):null]}):null,_[30]=M,_[31]=k.canComment,_[32]=k.commitCommentsEnabled,_[33]=k.repoArchived,_[34]=D,_[35]=S.oid,_[36]=L,_[37]=H,_[38]=F,_[39]=U,_[40]=$,_[41]=y):y=_[41],_[42]!==C||_[43]!==y||_[44]!==h||_[45]!==p||_[46]!==g||_[47]!==v||_[48]!==b?(j=(0,i.jsxs)(i.Fragment,{children:[h,p,g,v,b,C,y]}),_[42]=C,_[43]=y,_[44]=h,_[45]=p,_[46]=g,_[47]=v,_[48]=b,_[49]=j):j=_[49],j}function ec(e,t){return(0,i.jsx)("img",{alt:"rose",src:"/images/icons/emoji/rose.png",className:"Comment-module__discussion-comments-rose__sMl1p"},`rose-${t}`)}function em(e){let t,n,a,s,l,d,m=(0,r.c)(17),{commitOid:p,commentCount:f,locked:x,setLocked:g,canLock:v}=e,[w,b]=(0,o.useState)(!1);return m[0]!==f?(t=(0,i.jsxs)("h2",{className:"sr-only",children:[f," commit comments"]}),m[0]=f,m[1]=t):t=m[1],m[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,i.jsx)("div",{className:"h4 pr-2",children:"Comments"}),m[2]=n):n=m[2],m[3]!==f?(a=void 0!==f&&(0,i.jsx)(h.A,{children:f}),m[3]=f,m[4]=a):a=m[4],m[5]!==a?(s=(0,i.jsxs)("div",{className:"d-flex flex-items-center",children:[n,a]}),m[5]=a,m[6]=s):s=m[6],m[7]!==v||m[8]!==p||m[9]!==w||m[10]!==x||m[11]!==g?(l=v&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(u.Q,{leadingVisual:x?c.KeyIcon:c.LockIcon,variant:"invisible",onClick:()=>b(!0),children:[x?"Unlock":"Lock"," conversation"]}),w&&(0,i.jsx)(K,{commitOid:p,locked:x,onClose:e=>{b(!1),void 0!==e&&g(e)}})]}),m[7]=v,m[8]=p,m[9]=w,m[10]=x,m[11]=g,m[12]=l):l=m[12],m[13]!==t||m[14]!==s||m[15]!==l?(d=(0,i.jsxs)("div",{className:"d-flex flex-items-center flex-justify-between",children:[t,s,l]}),m[13]=t,m[14]=s,m[15]=l,m[16]=d):d=m[16],d}el.displayName="DiscussionComments",ed.displayName="DiscussionCommentsInternal",em.displayName="DiscussionCommentsHeader"},27020(e,t,n){n.d(t,{s:()=>p});var i=n(74848),o=n(16522),r=n(38621),a=n(53716),s=n(46249),l=n(10095),d=n(34164);let c={timelineRowItem:"TimelineRow-module__timelineRowItem__feuol",timelineRowBadge:"TimelineRow-module__timelineRowBadge__YaFlf",bottom:"TimelineRow-module__bottom__wWHQx",top:"TimelineRow-module__top__wbFNk"},m=()=>{let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)(l.A,{icon:r.GitCommitIcon}),t[0]=e):e=t[0],e};function u(e){let t,n,r,s,l,u=(0,o.c)(13),{children:h,leadingVisual:p,clipTimeline:f,className:x}=e,g=void 0===f?"none":f,v="none"!==g&&c[g];return u[0]!==x||u[1]!==v?(t=(0,d.$)(x,c.timelineRowItem,v),u[0]=x,u[1]=v,u[2]=t):t=u[2],u[3]!==p?(n=p??(0,i.jsx)(m,{}),u[3]=p,u[4]=n):n=u[4],u[5]!==n?(r=(0,i.jsx)(a.A.Badge,{className:c.timelineRowBadge,children:n}),u[5]=n,u[6]=r):r=u[6],u[7]!==h?(s=(0,i.jsx)(a.A.Body,{className:"mt-0",children:h}),u[7]=h,u[8]=s):s=u[8],u[9]!==t||u[10]!==r||u[11]!==s?(l=(0,i.jsxs)(a.A.Item,{className:t,children:[r,s]}),u[9]=t,u[10]=r,u[11]=s,u[12]=l):l=u[12],l}function h(e){let t,n,r,a,l=(0,o.c)(8);return l[0]!==e?({title:r,as:t,...n}=e,l[0]=e,l[1]=t,l[2]=n,l[3]=r):(t=l[1],n=l[2],r=l[3]),l[4]!==t||l[5]!==n||l[6]!==r?(a=(0,i.jsx)(s.A,{as:t,className:"text-normal f5 py-1",...n,children:r}),l[4]=t,l[5]=n,l[6]=r,l[7]=a):a=l[7],a}m.displayName="DefaultLeadingVisual",u.displayName="TimelineRowComponent",h.displayName="TimelineRowHeading";let p=Object.assign(u,{Heading:h})},91710(e,t,n){n.d(t,{Z:()=>a});var i=n(74848),o=n(16522),r=n(34164);function a(e){let t,n,a=(0,o.c)(5),{children:s,className:l}=e,d=void 0===l?"":l;return a[0]!==d?(t=(0,r.$)("color-bg-default position-relative border rounded-2 color-border-default mt-2 d-flex flex-column",d),a[0]=d,a[1]=t):t=a[1],a[2]!==s||a[3]!==t?(n=(0,i.jsx)("div",{className:t,children:s}),a[2]=s,a[3]=t,a[4]=n):n=a[4],n}a.displayName="Panel"},69895(e,t,n){n.d(t,{c:()=>d,y:()=>c});var i=n(74848),o=n(52111),r=n(23666),a=n(78597),s=n(96540);let l=(0,s.createContext)({comments:[],addComment:o.l,deleteComment:o.l,updateComment:o.l,loadMore:o.l,retry:o.l,canLoadMore:!1,count:0,subscribed:!1,providerState:"initial"});function d({children:e,comments:t=[],commentCount:n=0,canLoadMore:o=!1,subscribed:c=!1,providerState:m="initial",repo:u,commitOid:h}){let[p,f]=(0,s.useState)(t),[x,g]=(0,s.useState)(n),[v,w]=(0,s.useState)(o),[b,C]=(0,s.useState)(m),[y,j]=(0,s.useState)(c);(0,s.useEffect)(()=>{g(n),f(t),w(o),j(c),C(m)},[m]);let _=(0,s.useCallback)(async e=>{C("loading");let t=await (0,a.Sr)((0,r.Mo3)({owner:u.ownerLogin,repo:u.name,commitOid:h,beforeCommentId:e}));if(t.ok){let n=await t.json();e?f(e=>[...n.comments,...e]):f(n.comments),C("loaded"),g(n.count),j(n.subscribed),w(n.canLoadMore)}else C("error")},[u.ownerLogin,u.name,h]),S=(0,s.useCallback)(()=>{let e=p[0];e&&v&&_(e.id.toString())},[v,p,_]),k=(0,s.useCallback)(e=>{f([...p,e]),g((x??0)+1)},[p,x]),N=(0,s.useCallback)(e=>{f(p.filter(t=>t.id!==e)),g((x??0)-1)},[p,x]),E=(0,s.useCallback)(e=>{f(p.map(t=>t.id===e.id?e:t))},[p]),L=(0,s.useMemo)(()=>({addComment:k,canLoadMore:v,comments:p,count:x,deleteComment:N,loadMore:S,retry:_,subscribed:y,providerState:b,updateComment:E}),[k,v,p,x,N,_,S,b,y,E]);return(0,i.jsx)(l,{value:L,children:e})}function c(){let e=(0,s.use)(l);if(!e)throw Error("useDiscussionComments must be used within a DiscussionCommentsProvider");return e}l.displayName="DiscussionCommentsContext",d.displayName="DiscussionCommentsProvider"},99766(e,t,n){n.d(t,{B:()=>f,r:()=>c});var i=n(74848),o=n(16522),r=n(52111),a=n(96540);let s=(0,a.createContext)({comments:[],addComments:r.l,findInlineComment:()=>void 0,findInlineCommentWithRelay:()=>void 0,getCommentCountByPath:()=>0,getThreadDataByPathAndPosition:()=>void 0,updateInlineCommentMapWithNewComment:()=>void 0,getInlineCommentInfoByPathAndPosition:()=>void 0});function l(e){return e.reduce((e,t)=>(e.set(`${t.path}::${t.position}`,t),e),new Map)}function d(e){let t=new Map;for(let n in e)if(e.hasOwnProperty(n)){let i=new Map;for(let t in e[n])e[n].hasOwnProperty(t)&&i.set(Number(t),e[n][Number(t)]);t.set(n,i)}return t}function c(e){let t,n,r,c,f,x,g,v,w,b,C,y,j,_,S,k=(0,o.c)(41),{children:N,initialFiles:E,initialExpandedThreadId:L,initialInlineComments:I}=e;k[0]!==I?(t=()=>I?Object.values(I).flatMap(p):[],k[0]=I,k[1]=t):t=k[1];let[T,R]=(0,a.useState)(t);k[2]!==E?(n=E??[],k[2]=E,k[3]=n):n=k[3];let[M,A]=(0,a.useState)(n);k[4]!==E?(r=()=>E?l(E):new Map,k[4]=E,k[5]=r):r=k[5];let[B,z]=(0,a.useState)(r);k[6]!==I?(c=()=>I?d(I):new Map,k[6]=I,k[7]=c):c=k[7];let[O,D]=(0,a.useState)(c);k[8]!==O?(f=(e,t,n,i)=>{if(i){let i=O.get(e)?.get(t)??[];i=i.concat(n);let o=O.get(e)?.set(t,i);D(O.set(e,o??new Map)??O)}else{let i=O.get(e)?.set(t,n);D(O.set(e,i??new Map)??O)}},k[8]=O,k[9]=f):f=k[9];let $=f;k[10]!==E||k[11]!==I?(x=()=>{A(E??[]),z(E?l(E):new Map),D(I?d(I):new Map),R(I?Object.values(I).flatMap(h):[])},g=[E,I],k[10]=E,k[11]=I,k[12]=x,k[13]=g):(x=k[12],g=k[13]),(0,a.useEffect)(x,g),k[14]!==M||k[15]!==T||k[16]!==$?(v=(e,t,n)=>{let i=e.map(u),o=T.filter(e=>!i.includes(e.id)),r=M.filter(e=>e.path!==t||e.position!==parseInt(n)),a={path:t,position:parseInt(n),count:e.length,threads:[{id:`${t}::${n}`,diffSide:"RIGHT",commentsData:{totalCount:e.length,comments:e.map(m)}}]};R([...o,...e]),A([...r,a]),z(l([...r,a])),$(t,parseInt(n),e,!1)},k[14]=M,k[15]=T,k[16]=$,k[17]=v):v=k[17];let U=v;k[18]!==T?(w=e=>{if(e)return T.find(t=>t.id===e)},k[18]=T,k[19]=w):w=k[19];let F=w;k[20]!==T?(b=e=>T.find(t=>t.relayId===e),k[20]=T,k[21]=b):b=k[21];let P=b;k[22]!==M?(C=e=>{let t=0;for(let n of M)n.path===e&&(t+=n.count);return t},k[22]=M,k[23]=C):C=k[23];let H=C;k[24]!==B?(y=(e,t)=>B.get(`${e}::${t}`),k[24]=B,k[25]=y):y=k[25];let V=y;k[26]!==O?(j=(e,t)=>O.get(e)?.get(t),k[26]=O,k[27]=j):j=k[27];let X=j;k[28]!==U||k[29]!==T||k[30]!==F||k[31]!==P||k[32]!==H||k[33]!==X||k[34]!==V||k[35]!==L||k[36]!==$?(_={comments:T,addComments:U,findInlineComment:F,findInlineCommentWithRelay:P,getCommentCountByPath:H,getThreadDataByPathAndPosition:V,getInlineCommentInfoByPathAndPosition:X,updateInlineCommentMapWithNewComment:$,initialExpandedThreadId:L},k[28]=U,k[29]=T,k[30]=F,k[31]=P,k[32]=H,k[33]=X,k[34]=V,k[35]=L,k[36]=$,k[37]=_):_=k[37];let Q=_;return k[38]!==N||k[39]!==Q?(S=(0,i.jsx)(s,{value:Q,children:N}),k[38]=N,k[39]=Q,k[40]=S):S=k[40],S}function m(e){return{id:e.id,author:{avatarUrl:e?.author?.avatarUrl??"",login:e?.author?.login??"",url:""}}}function u(e){return e.id}function h(e){return Array.from(Object.values(e).flat())}function p(e){return Array.from(Object.values(e).flat())}function f(){let e=(0,a.use)(s);if(!e)throw Error("useInlineComments must be used within a InlineCommentsProvider");return e}s.displayName="InlineCommentsContext",c.displayName="InlineCommentsProvider"},70415(e,t,n){n.d(t,{X:()=>l});var i=n(16522),o=n(54242),r=n(95424),a=n(65594),s=n(78597);function l(){let e,t,n,l,d,c,m,u,h,p,f,x=(0,i.c)(30),g=(0,o.t)(),{commit:v}=(0,a.B)();x[0]!==g.ownerLogin?(e=(0,r.QU)(g.ownerLogin),x[0]=g.ownerLogin,x[1]=e):e=x[1],x[2]!==g.name?(t=(0,r.QU)(g.name),x[2]=g.name,x[3]=t):t=x[3];let w=`/${e}/${t}/commit_comment`,b=`${w}/create`;x[4]!==v.oid||x[5]!==b?(n=async(e,t,n)=>{let i=new FormData;i.append("commit_id",v.oid),i.append("comment[body]",e),t&&n&&(i.append("path",t),i.append("position",n.toString()));let o=await (0,s.DI)(b,{method:"POST",body:i});return o.ok?{error:null,comment:(await o.json()).comment}:{error:Error("Failed to add comment"),comment:null}},x[4]=v.oid,x[5]=b,x[6]=n):n=x[6];let C=n;x[7]!==w?(l=async(e,t)=>{let n=new FormData;n.append("_method","put"),n.append("commit_comment[id]",t.id.toString()),n.append("commit_comment[body]",e),n.append("commit_comment[bodyVersion]",t.bodyVersion);let i=await (0,s.DI)(w,{method:"POST",body:n});if(!i.ok)return{error:Error("Failed to edit comment"),updatedFields:null};{let e=await i.json();return{error:null,updatedFields:{body:e.source,bodyVersion:e.bodyVersion,htmlBody:e.body}}}},x[7]=w,x[8]=l):l=x[8];let y=l;x[9]!==w?(d=async e=>{let t=new FormData;return(t.append("_method","delete"),t.append("commit_comment[id]",e),(await (0,s.DI)(w,{method:"POST",body:t})).ok)?"success":"error"},x[9]=w,x[10]=d):d=x[10];let j=d;x[11]!==w?(c=async(e,t)=>{let n=new FormData;return(n.append("_method","put"),n.append("classifier",t),(await (0,s.DI)(`${w}/${e}/minimize`,{method:"POST",body:n,headers:{Accept:"application/json"}})).ok)?"success":"error"},x[11]=w,x[12]=c):c=x[12];let _=c;x[13]!==w?(m=async e=>{let t=new FormData;return(t.append("_method","put"),(await (0,s.DI)(`${w}/${e}/unminimize`,{method:"POST",body:t,headers:{Accept:"application/json"}})).ok)?"success":"error"},x[13]=w,x[14]=m):m=x[14];let S=m,k=`${g.ownerLogin}/${g.name}`;x[15]!==g.id||x[16]!==k?(u={databaseId:g.id,nwo:k,slashCommandsEnabled:!1},x[15]=g.id,x[16]=k,x[17]=u):u=x[17],x[18]!==v.oid?(h={id:v.oid},x[18]=v.oid,x[19]=h):h=x[19],x[20]!==u||x[21]!==h?(p={repository:u,type:"commit",id:h},x[20]=u,x[21]=h,x[22]=p):p=x[22];let N=p;return x[23]!==C||x[24]!==N||x[25]!==j||x[26]!==y||x[27]!==_||x[28]!==S?(f={addComment:C,commentBoxSubject:N,editComment:y,deleteComment:j,hideComment:_,unhideComment:S},x[23]=C,x[24]=N,x[25]=j,x[26]=y,x[27]=_,x[28]=S,x[29]=f):f=x[29],f}},34445(e,t,n){n.d(t,{D:()=>o});var i=n(50964);function o(){return(0,i.X)()}},96495(e,t,n){n.d(t,{I:()=>d,p:()=>m});var i=n(16522),o=n(23666),r=n(26316),a=n(78597),s=n(99766),l=n(18292);function d(e){let t,n=(0,i.c)(7),{repo:r,commit:l,viewerCanReply:d,repoOwnerGlobalRelayId:m,getInlineCommentInfoByPathAndPosition:u}=e,{addComments:h}=(0,s.B)();return n[0]!==h||n[1]!==l||n[2]!==u||n[3]!==r||n[4]!==m||n[5]!==d?(t=(e,t)=>new Promise(async(n,i)=>{let[s,p]=e.split("::");if(!s||!p)return void i(Error("Invalid threadId"));if(!t){let t=u(s,Number(p));n(t?c(t,l,r,d,e,m):void 0);return}let f=await (0,a.lS)(`${(0,o.MLt)({owner:r.ownerLogin,repo:r.name,commitOid:l.oid,path:s,position:p})}${t?"&isRefetch=true":""}`);if(f.ok){let t=await f.json();h(t.comments,s,p),n(t.comments?c(t.comments,l,r,d,e,m):void 0)}else i(Error("Failed to fetch thread"))}),n[0]=h,n[1]=l,n[2]=u,n[3]=r,n[4]=m,n[5]=d,n[6]=t):t=n[6],t}function c(e,t,n,i,o,r){return{commentsData:{comments:e.map(e=>m(e,t,n,r))},id:o,viewerCanReply:i}}function m(e,t,n,i){return{publishedAt:void 0,state:"",viewerRelationship:"",id:e.relayId,databaseId:e.id,body:e.body,bodyHTML:e.htmlBody,createdAt:e.createdAt,url:`${r.cg?.location.origin}${(0,o.$Qz)({owner:n.ownerLogin,repo:n.name,commitish:t.oid})}#${e.urlFragment}`,currentDiffResourcePath:`#${e.urlFragment}`,authorAssociation:e.authorAssociation?.toUpperCase(),author:{id:e.author.id,login:e.author.login,avatarUrl:e.author.avatarUrl,url:""},isHidden:e.isHidden,lastUserContentEdit:e.lastUserContentEdit,minimizedReason:e.minimizedReason,subjectType:"commit",viewerCanMinimize:e.viewerCanMinimize,viewerCanSeeMinimizeButton:e.viewerCanMinimize,viewerCanSeeUnminimizeButton:e.viewerCanMinimize,viewerCanDelete:e.viewerCanDelete,viewerCanUpdate:e.viewerCanUpdate,viewerCanReact:e.viewerCanReact,viewerCanReport:e.viewerCanReport,viewerCanReportToMaintainer:e.viewerCanReportToMaintainer,viewerCanBlockFromOrg:e.viewerCanBlockFromOrg,viewerCanUnblockFromOrg:e.viewerCanUnblockFromOrg,viewerCanUnminimize:e.viewerCanUnminimize??!1,viewerDidAuthor:e.viewerDidAuthor,reactionGroups:e.reactionGroups,reference:{number:void 0,text:(0,l.F)(t.oid),author:{login:t.authors.length>0?t.authors[0]?.login??"":""}},repository:{id:n.id.toString(),isPrivate:n.private,name:n.name,owner:{id:i,login:n.ownerLogin,url:""}}}}},83175(e,t,n){n.d(t,{f:()=>J});var i=n(74848),o=n(16522),r=n(39423),a=n(26316),s=n(88015),l=n(53716),d=n(96540),c=n(64774),m=n(91710),u=n(49481),h=n(51068),p=n(79737),f=n(85136),x=n(45676),g=n(55598),v=n(70776),w=n(16497),b=n(19519),C=n(51581),y=n(11246),j=n(80855),_=n(73286),S=n(23666),k=n(77236),N=n(38621),E=n(21373),L=n(26108),I=n(4978),T=n(55717),R=n(18292),M=n(66588);let A=d.memo(B);function B(e){let t,n,r,a,s,l,d=(0,o.c)(18),{repo:c,oid:m}=e;d[0]!==m?(t=(0,R.F)(m),d[0]=m,d[1]=t):t=d[1];let u=`browse-repo-${t}`,{sendAnalyticsEvent:h}=(0,C.s)(),{loggingPrefix:p,loggingPayload:f}=(0,y.xe)(),x=(0,y.eX)();d[2]!==f||d[3]!==p||d[4]!==h||d[5]!==x?(n=()=>{x&&h(`${p}click`,"COMMITS_BROWSE_REPOSITORY_AT_THIS_POINT_CLICKED",f)},d[2]=f,d[3]=p,d[4]=h,d[5]=x,d[6]=n):n=d[6];let g=n;return d[7]!==m||d[8]!==c?(r=(0,S.IO9)({repo:c,action:"tree",commitish:m}),d[7]=m,d[8]=c,d[9]=r):r=d[9],d[10]===Symbol.for("react.memo_cache_sentinel")?(a=(0,i.jsx)(N.CodeIcon,{}),d[10]=a):a=d[10],d[11]!==u||d[12]!==g||d[13]!==r?(s=(0,i.jsx)("a",{"aria-labelledby":u,href:r,className:"Button Button--iconOnly Button--invisible Button--small","data-testid":"commit-row-browse-repo",onClick:g,children:a}),d[11]=u,d[12]=g,d[13]=r,d[14]=s):s=d[14],d[15]!==u||d[16]!==s?(l=(0,i.jsx)(I.A,{"aria-label":"Browse repository at this point",id:u,direction:"sw",children:s}),d[15]=u,d[16]=s,d[17]=l):l=d[17],l}A.displayName="BrowseRepositoryAtThisPoint",B.displayName="WrappedBrowseRepositoryAtThisPoint";let z=d.memo(O);function O(e){let t,n,r,a,s,l=(0,o.c)(14),{repo:d,oid:c,path:m}=e;if(!m)return null;l[0]!==c?(t=(0,R.F)(c),l[0]=c,l[1]=t):t=l[1];let u=`view-code-${t}`;return l[2]!==c||l[3]!==m||l[4]!==d.name||l[5]!==d.ownerLogin?(n=(0,S.nD_)({owner:d.ownerLogin,repo:d.name,commitish:c,filePath:m}),l[2]=c,l[3]=m,l[4]=d.name,l[5]=d.ownerLogin,l[6]=n):n=l[6],l[7]===Symbol.for("react.memo_cache_sentinel")?(r=(0,i.jsx)(N.FileCodeIcon,{}),l[7]=r):r=l[7],l[8]!==n||l[9]!==u?(a=(0,i.jsx)("a",{"aria-labelledby":u,href:n,className:"Button Button--iconOnly Button--invisible Button--small","data-testid":"commit-row-view-code",children:r}),l[8]=n,l[9]=u,l[10]=a):a=l[10],l[11]!==a||l[12]!==u?(s=(0,i.jsx)(I.A,{"aria-label":"View code at this point",id:u,direction:"sw",children:a}),l[11]=a,l[12]=u,l[13]=s):s=l[13],s}function D(e){let t,n,r=(0,o.c)(5),{commitUrl:a,oid:s,softNavToCommit:l}=e;r[0]===Symbol.for("react.memo_cache_sentinel")?(t={variant:"invisible",size:"small",sx:{fontFamily:"var(--fontStack-monospace)",color:"fg.muted"}},r[0]=t):t=r[0];let d=t;return r[1]!==a||r[2]!==s||r[3]!==l?(n=(0,i.jsx)(I.A,{"aria-label":"View commit details",direction:"s",children:l?(0,i.jsx)(E.Q,{as:k.N,to:a,...d,children:(0,R.F)(s)}):(0,i.jsx)("a",{className:"Button--invisible Button--small Button text-mono",href:a,...d,children:(0,i.jsx)("span",{className:"Button-content",children:(0,i.jsx)("span",{className:"Button-label color-fg-muted",children:(0,R.F)(s)})})})}),r[1]=a,r[2]=s,r[3]=l,r[4]=n):n=r[4],n}function $(e){let t,n,r,a,s=(0,o.c)(13),{showDescription:l,setShowDescription:d,oid:c}=e;s[0]!==c?(t=(0,R.F)(c),s[0]=c,s[1]=t):t=s[1];let m=t,u=`show-description-${m}`,h=`${!l?"Show":"Hide"} description for ${m}`;return s[2]!==d||s[3]!==l?(n=e=>{e.preventDefault(),d(!l)},s[2]=d,s[3]=l,s[4]=n):n=s[4],s[5]!==l||s[6]!==u||s[7]!==n?(r=(0,i.jsx)(L.K,{icon:N.EllipsisIcon,className:"Button Button--iconOnly Button--invisible Button--small ml-1","data-testid":"commit-row-show-description-button","aria-labelledby":u,"aria-pressed":l,"aria-expanded":l,onClick:n}),s[5]=l,s[6]=u,s[7]=n,s[8]=r):r=s[8],s[9]!==u||s[10]!==r||s[11]!==h?(a=(0,i.jsx)(T.m,{id:u,text:h,"aria-label":h,children:r}),s[9]=u,s[10]=r,s[11]=h,s[12]=a):a=s[12],a}function U(e){let t,n,r,a,s,l,d=(0,o.c)(17),{count:c,repo:m,oid:u}=e;if(!c)return null;d[0]!==u?(t=(0,R.F)(u),d[0]=u,d[1]=t):t=d[1];let h=`comment-count-${t}`,p=`View ${c} commit comment${c>1?"s":""}`;d[2]!==u||d[3]!==m.name||d[4]!==m.ownerLogin?(n=(0,S.$Qz)({owner:m.ownerLogin,repo:m.name,commitish:u}),d[2]=u,d[3]=m.name,d[4]=m.ownerLogin,d[5]=n):n=d[5];let f=`${n}#${M.N}`;return d[6]===Symbol.for("react.memo_cache_sentinel")?(r=(0,i.jsx)(N.CommentIcon,{}),d[6]=r):r=d[6],d[7]!==c?(a=(0,i.jsxs)("span",{className:"Button-content color-fg-muted",children:[r,(0,i.jsx)("span",{className:"Button-label",children:c})]}),d[7]=c,d[8]=a):a=d[8],d[9]!==h||d[10]!==f||d[11]!==a?(s=(0,i.jsx)("a",{"aria-labelledby":h,href:f,className:"Button Button--invisible Button--small","data-testid":"commit-row-comments",children:a}),d[9]=h,d[10]=f,d[11]=a,d[12]=s):s=d[12],d[13]!==h||d[14]!==p||d[15]!==s?(l=(0,i.jsx)(I.A,{"aria-label":p,id:h,direction:"sw",children:s}),d[13]=h,d[14]=p,d[15]=s,d[16]=l):l=d[16],l}z.displayName="ViewCodeAtThisPoint",O.displayName="WrappedViewCodeAtThisPoint",D.displayName="ViewCommitDetails",$.displayName="ToggleCommitDescription",U.displayName="CommitCommentCount";var F=n(12315),P=n(16899),H=n(34445),V=n(37929);function X(e){let t,n,r,a,s=(0,o.c)(13),{deferredData:l}=e,{helpUrl:d}=(0,H.D)(),c=(0,j.xs)();return s[0]!==c?(t=c&&(0,i.jsx)(P.O,{variant:"rounded",className:"d-none d-sm-flex",width:"62px"}),s[0]=c,s[1]=t):t=s[1],s[2]!==l||s[3]!==c?(n=!c&&void 0===l&&(0,i.jsx)(P.O,{variant:"rounded",className:"d-none d-sm-flex",width:"62px"}),s[2]=l,s[3]=c,s[4]=n):n=s[4],s[5]!==l||s[6]!==d||s[7]!==c?(r=!c&&l&&(0,i.jsx)(F.h,{commitOid:l.oid,hasSignature:!0,verificationStatus:l.verifiedStatus,signature:l.signatureInformation?{helpUrl:d,...l.signatureInformation}:void 0}),s[5]=l,s[6]=d,s[7]=c,s[8]=r):r=s[8],s[9]!==t||s[10]!==n||s[11]!==r?(a=(0,i.jsxs)(i.Fragment,{children:[t,n,r]}),s[9]=t,s[10]=n,s[11]=r,s[12]=a):a=s[12],a}function Q({deferredData:e,oid:t,repository:n}){let o=(0,j.xs)(),r="";try{r=e?.statusCheckStatus?.short_text?.split("checks")[0]?.trim()||""}catch{}return(0,i.jsxs)(i.Fragment,{children:[o&&(0,i.jsx)(P.O,{variant:"rounded",className:"d-none d-sm-flex ml-2",width:"20px"}),!o&&void 0===e&&(0,i.jsx)(P.O,{variant:"rounded",className:"d-none d-sm-flex ml-2",width:"20px"}),!o&&e?.statusCheckStatus&&(0,i.jsx)("div",{className:"d-none d-sm-flex ml-1",children:"\xb7"}),(0,i.jsx)("div",{className:"d-none d-sm-flex",children:(0,i.jsx)(V.d,{oid:t,status:e?.statusCheckStatus?.state,descriptionString:r,repo:n})})]})}X.displayName="SignedCommitBadge",Q.displayName="CommitChecksStatusBadge";var G=n(50531);let W="CommitRow-module__ListItemTitle_0__cUhJS",K=(0,d.lazy)(()=>n.e("60704").then(n.bind(n,86979)).then(e=>({default:e.CommitActionBar})));function q(e){let t,n,r,a,s,l,c,m,S,k,N,E,L,I,T,R,M,B,O,F,P,H,V=(0,o.c)(81),{commit:q,repo:Y,path:Z,softNavToCommit:J}=e,[ee,et]=(0,d.useState)(!1),en=(0,d.useRef)(null),[ei,eo]=(0,h.ym)(q.oid,Y),[er,ea]=(0,d.useState)(!1),es=(0,j.NO)(q.oid),{isServer:el}=(0,b.V)(),{sendAnalyticsEvent:ed}=(0,C.s)(),{loggingPrefix:ec,loggingPayload:em}=(0,y.xe)(),eu=(0,y.eX)();V[0]!==em||V[1]!==ec||V[2]!==ed||V[3]!==eu?(t=()=>{eu&&ed(`${ec}click`,"COMMITS_TITLE_CLICKED",em)},V[0]=em,V[1]=ec,V[2]=ed,V[3]=eu,V[4]=t):t=V[4];let eh=t;V[5]!==ee?(n=()=>{ee&&en.current&&en.current.textContent&&(0,u.i)(en.current.textContent)},r=[en,ee],V[5]=ee,V[6]=n,V[7]=r):(n=V[6],r=V[7]),(0,d.useEffect)(n,r),V[8]!==q.bodyMessageHtml||V[9]!==q.oid||V[10]!==q.shortMessage||V[11]!==q.shortMessageMarkdownLink||V[12]!==q.url||V[13]!==el||V[14]!==eh||V[15]!==ee?(a=q.shortMessageMarkdownLink&&!el?(0,i.jsx)(v.kx,{html:q.shortMessageMarkdownLink,onClick:eh,containerClassName:W,headingClassName:W,children:q.bodyMessageHtml&&(0,i.jsx)($,{showDescription:ee,setShowDescription:et,oid:q.oid})}):(0,i.jsx)(v.ao,{value:q.shortMessage,href:q.url,onClick:eh,containerClassName:W,headingClassName:W,children:q.bodyMessageHtml&&(0,i.jsx)($,{showDescription:ee,setShowDescription:et,oid:q.oid})}),V[8]=q.bodyMessageHtml,V[9]=q.oid,V[10]=q.shortMessage,V[11]=q.shortMessageMarkdownLink,V[12]=q.url,V[13]=el,V[14]=eh,V[15]=ee,V[16]=a):a=V[16];let ep=es?.commentCount??0;return V[17]!==q.oid||V[18]!==Y||V[19]!==ep?(s=(0,i.jsx)(g.V,{children:(0,i.jsx)(U,{oid:q.oid,repo:Y,count:ep})}),V[17]=q.oid,V[18]=Y,V[19]=ep,V[20]=s):s=V[20],V[21]!==es?(l=(0,i.jsx)(g.V,{className:"CommitRow-module__ListItemMetadata_0__W4Kqf",children:(0,i.jsx)(X,{deferredData:es})}),V[21]=es,V[22]=l):l=V[22],V[23]!==q.oid||V[24]!==q.url||V[25]!==J?(c=(0,i.jsx)(D,{oid:q.oid,commitUrl:q.url,softNavToCommit:J}),V[23]=q.oid,V[24]=q.url,V[25]=J,V[26]=c):c=V[26],V[27]!==q.oid?(m=(0,i.jsx)(G.w,{sha:q.oid}),V[27]=q.oid,V[28]=m):m=V[28],V[29]!==c||V[30]!==m?(S=(0,i.jsxs)("div",{className:"d-flex",children:[c,m]}),V[29]=c,V[30]=m,V[31]=S):S=V[31],V[32]!==q.oid||V[33]!==Z||V[34]!==Y?(k=(0,i.jsx)(z,{repo:Y,oid:q.oid,path:Z}),V[32]=q.oid,V[33]=Z,V[34]=Y,V[35]=k):k=V[35],V[36]!==q.oid||V[37]!==Y?(N=(0,i.jsx)(A,{repo:Y,oid:q.oid}),V[36]=q.oid,V[37]=Y,V[38]=N):N=V[38],V[39]!==S||V[40]!==k||V[41]!==N?(E=(0,i.jsxs)(g.V,{className:"d-none d-sm-flex px-0 gap-2",variant:"primary",children:[S,k,N]}),V[39]=S,V[40]=k,V[41]=N,V[42]=E):E=V[42],V[43]!==E||V[44]!==s||V[45]!==l?(L=(0,i.jsxs)(i.Fragment,{children:[s,l,E]}),V[43]=E,V[44]=s,V[45]=l,V[46]=L):L=V[46],V[47]!==q||V[48]!==es||V[49]!==eo||V[50]!==Z||V[51]!==Y?(I=(0,i.jsx)(d.Suspense,{children:(0,i.jsx)(K,{commit:q,repo:Y,path:Z,setDialogOpen:ea,fetchCheckDetails:eo,deferredData:es})}),V[47]=q,V[48]=es,V[49]=eo,V[50]=Z,V[51]=Y,V[52]=I):I=V[52],V[53]===Symbol.for("react.memo_cache_sentinel")?(T=(0,i.jsx)("div",{className:"px-1"}),V[53]=T):T=V[53],V[54]!==q.bodyMessageHtml||V[55]!==ee?(R=ee&&q.bodyMessageHtml&&(0,i.jsx)(f.U,{children:(0,i.jsx)(w.JR,{ref:en,html:q.bodyMessageHtml,className:"ws-pre-wrap extended-commit-description-container pb-2 text-mono wb-break-word"})}),V[54]=q.bodyMessageHtml,V[55]=ee,V[56]=R):R=V[56],V[57]!==q.oid||V[58]!==es||V[59]!==Y?(M=(0,i.jsx)(Q,{repository:Y,deferredData:es,oid:q.oid}),V[57]=q.oid,V[58]=es,V[59]=Y,V[60]=M):M=V[60],V[61]!==q||V[62]!==Y||V[63]!==M?(B=(0,i.jsx)(f.U,{children:(0,i.jsx)(_.j,{commit:q,repo:Y,children:M})}),V[61]=q,V[62]=Y,V[63]=M,V[64]=B):B=V[64],V[65]!==R||V[66]!==B?(O=(0,i.jsxs)(x.Q,{children:[R,B]}),V[65]=R,V[66]=B,V[67]=O):O=V[67],V[68]!==q.url||V[69]!==L||V[70]!==I||V[71]!==O||V[72]!==a?(F=(0,i.jsxs)(p.c,{"data-testid":"commit-row-item","data-commit-link":q.url,title:a,metadata:L,secondaryActions:I,className:"CommitRow-module__ListItem_0__u0LMo",children:[T,O]}),V[68]=q.url,V[69]=L,V[70]=I,V[71]=O,V[72]=a,V[73]=F):F=V[73],V[74]!==es?.statusCheckStatus||V[75]!==ei||V[76]!==er?(P=es?.statusCheckStatus&&er&&(0,i.jsx)(h.xC,{combinedStatus:ei,isOpen:er,onDismiss:()=>{ea(!1)}}),V[74]=es?.statusCheckStatus,V[75]=ei,V[76]=er,V[77]=P):P=V[77],V[78]!==F||V[79]!==P?(H=(0,i.jsxs)(i.Fragment,{children:[F,P]}),V[78]=F,V[79]=P,V[80]=H):H=V[80],H}K.displayName="CommitActionBar",q.displayName="CommitRow";var Y=n(27020);function Z(e){let t,n,r,a,s=(0,o.c)(20),{commits:l,title:u,shouldClipTimeline:h,repo:p,currentBlobPath:f,softNavToCommit:x}=e,g=void 0===f?"":f,v=(0,d.useId)(),w=h?"top":"none",b=`Commits on ${u}`;if(s[0]!==v||s[1]!==b?(t=(0,i.jsx)(Y.s.Heading,{as:"h3",id:v,title:b,"data-testid":"commit-group-title"}),s[0]=v,s[1]=b,s[2]=t):t=s[2],s[3]!==l||s[4]!==g||s[5]!==p||s[6]!==x){let e;s[8]!==g||s[9]!==p||s[10]!==x?(e=e=>(0,i.jsx)(q,{commit:e,repo:p,path:g,softNavToCommit:x},e.oid),s[8]=g,s[9]=p,s[10]=x,s[11]=e):e=s[11],n=l.map(e),s[3]=l,s[4]=g,s[5]=p,s[6]=x,s[7]=n}else n=s[7];return s[12]!==v||s[13]!==n||s[14]!==u?(r=(0,i.jsx)(m.Z,{className:"CommitGroup-module__panel__Pfvdu",children:(0,i.jsx)(c.u,{title:u,titleHeaderTag:"h3",ariaLabelledBy:v,children:n},u)}),s[12]=v,s[13]=n,s[14]=u,s[15]=r):r=s[15],s[16]!==w||s[17]!==t||s[18]!==r?(a=(0,i.jsxs)(Y.s,{clipTimeline:w,children:[t,r]}),s[16]=w,s[17]=t,s[18]=r,s[19]=a):a=s[19],a}function J(e){let t,n,c,m,u,h,p,f,x,g=(0,o.c)(31),{leadingContent:v,commitGroups:w,trailingContent:b,deferredCommitData:C,repository:_,currentBlobPath:S,loggingPayload:k,loggingPrefix:N,shouldClipTimeline:E,softNavToCommit:L}=e,I=void 0===C?j.Xx:C,T=void 0===E||E,R=void 0!==L&&L;g[0]!==k||g[1]!==N?(t={loggingPayload:k,loggingPrefix:N},g[0]=k,g[1]=N,g[2]=t):t=g[2];let M=t,A=(0,d.useRef)(0),B=(0,d.useRef)(null),z=(0,d.useRef)(null),O=(0,d.useRef)(!1);g[3]===Symbol.for("react.memo_cache_sentinel")?(n=[],g[3]=n):n=g[3];let D=(0,d.useRef)(n),$=(0,s.Zp)();if(g[4]!==$){c=i=>{"Enter"===i.key?e(i):"Tab"===i.key?t(i):n(i)};let e=e=>{if("Enter"===e.key){let t=a.XC?.activeElement?.hasAttribute("data-commit-link")?a.XC?.activeElement?.getAttribute("data-commit-link"):void 0;t&&(e.ctrlKey||e.metaKey?a.cg?.open(t,"_blank"):$(t))}},t=e=>{"Tab"===e.key&&(e.shiftKey?(a.XC?.activeElement?.hasAttribute("data-commit-link")&&!O.current&&B.current&&(B.current.focus(),z.current=B.current),O.current=!0):(B.current=z.current,z.current=a.XC?.activeElement??null,O.current=!1))},n=e=>{if(!["j","k","ArrowDown","ArrowUp"].includes(e.key)||!(0,r.zw)()&&("j"===e.key||"k"===e.key))return;let t=1;for(let e=0;e{let e=setTimeout(()=>{D.current=Array.from(document.querySelectorAll('[id*="-list-view-node-"]'))},0);return()=>clearTimeout(e)},g[6]=m):m=g[6],g[7]!==w?(u=[w],g[7]=w,g[8]=u):u=g[8],(0,d.useEffect)(m,u),g[9]!==w||g[10]!==S||g[11]!==_||g[12]!==T||g[13]!==R){let e;g[15]!==S||g[16]!==_||g[17]!==T||g[18]!==R?(e=(e,t)=>(0,i.jsx)(Z,{title:e.title,commits:e.commits,shouldClipTimeline:T&&0===t,currentBlobPath:S,repo:_,softNavToCommit:R},e.title),g[15]=S,g[16]=_,g[17]=T,g[18]=R,g[19]=e):e=g[19],h=w.map(e),g[9]=w,g[10]=S,g[11]=_,g[12]=T,g[13]=R,g[14]=h}else h=g[14];return g[20]!==c||g[21]!==v||g[22]!==h||g[23]!==b?(p=(0,i.jsxs)(l.A,{clipSidebar:!0,onKeyDown:c,children:[v,h,b]}),g[20]=c,g[21]=v,g[22]=h,g[23]=b,g[24]=p):p=g[24],g[25]!==M||g[26]!==p?(f=(0,i.jsx)(y.zq,{loggingInfo:M,children:p}),g[25]=M,g[26]=p,g[27]=f):f=g[27],g[28]!==I||g[29]!==f?(x=(0,i.jsx)(j.M2,{deferredData:I,children:f}),g[28]=I,g[29]=f,g[30]=x):x=g[30],x}Z.displayName="CommitGroup",J.displayName="Commits"},22428(e,t,n){n.d(t,{M:()=>p});var i=n(74848),o=n(16522),r=n(49481),a=n(15582),s=n(52111),l=n(38621),d=n(38750),c=n(70944),m=n(96540),u=n(91710);let h={timeout:{description:"Try reloading the page, or if the problem persists, view the history locally using this command:",heading:"Commit history cannot be loaded",icon:(0,i.jsx)(l.AlertIcon,{size:"medium",className:"mb-2 fgColor-muted"}),showTextInput:!0},unavailable:{description:"There isn't any commit history to show here.",heading:"No commits history",icon:(0,i.jsx)(l.GitCommitIcon,{size:"medium"}),showTextInput:!1}};function p(e){let t,n,p,f,x,g,v,w=(0,o.c)(19),{timeoutMessage:b,unavailableMessage:C}=e,y=h[""!==b?"timeout":"unavailable"],j=C??y.description;return w[0]!==y.heading||w[1]!==j||w[2]!==b?(t=()=>{(0,r.i)(`${y.heading}. ${j} ${b}`.trim())},n=[y.heading,j,b],w[0]=y.heading,w[1]=j,w[2]=b,w[3]=t,w[4]=n):(t=w[3],n=w[4]),(0,m.useEffect)(t,n),w[5]!==y.icon?(p=(0,i.jsx)(c.E.Visual,{children:y.icon}),w[5]=y.icon,w[6]=p):p=w[6],w[7]!==y.heading?(f=(0,i.jsx)(c.E.Heading,{children:y.heading}),w[7]=y.heading,w[8]=f):f=w[8],w[9]!==j?(x=(0,i.jsx)(c.E.Description,{children:j}),w[9]=j,w[10]=x):x=w[10],w[11]!==y.showTextInput||w[12]!==b?(g=y.showTextInput&&(0,i.jsx)(d.A,{"aria-label":"View commit history locally command",className:"d-flex flex-justify-center mt-2",monospace:!0,onChange:s.l,readOnly:!0,size:"large",trailingAction:(0,i.jsx)(d.A.Action,{onClick:()=>(0,a.D)(b),icon:l.CopyIcon,"aria-label":"Copy to clipboard",className:"fgColor-muted"}),value:b}),w[11]=y.showTextInput,w[12]=b,w[13]=g):g=w[13],w[14]!==p||w[15]!==f||w[16]!==x||w[17]!==g?(v=(0,i.jsx)(u.Z,{children:(0,i.jsx)("div",{"data-hpc":!0,children:(0,i.jsxs)(c.E,{border:!1,spacious:!0,children:[p,f,x,g]})})}),w[14]=p,w[15]=f,w[16]=x,w[17]=g,w[18]=v):v=w[18],v}p.displayName="CommitsBlankState"},89684(e,t,n){n.d(t,{N:()=>i});function i(e,t){return"d28fac7f18aeacb00d8ad3460a0a5a901617c2d4"===e&&0xf122a7===t}},34349(e,t,n){n.d(t,{BX:()=>i,HS:()=>l,Oc:()=>s,Tv:()=>m,Xr:()=>r,f7:()=>d,fD:()=>c,qR:()=>a});class i extends Event{payload;constructor(e){super("open-copilot-chat",{bubbles:!1,cancelable:!0}),this.payload=e}}Event;class o extends Event{reference;openPanel;id;constructor(e,t=!1,n){super("add-copilot-chat-reference",{bubbles:!1,cancelable:!0}),this.reference=e,this.openPanel=t,this.id=n}}class r extends Event{context;constructor(e){super("symbol-changed",{bubbles:!1,cancelable:!0}),this.context=e}}function a(e){window.dispatchEvent(new i(e))}function s(e,t=!1,n){window.dispatchEvent(new o(e,t,n))}function l(e){return window.addEventListener("open-copilot-chat",e),()=>{window.removeEventListener("open-copilot-chat",e)}}function d(e){return window.addEventListener("add-copilot-chat-reference",e),()=>{window.removeEventListener("add-copilot-chat-reference",e)}}function c(e){return window.addEventListener("search-copilot-chat",e),()=>{window.removeEventListener("search-copilot-chat",e)}}function m(e){return window.addEventListener("symbol-changed",e),()=>{window.removeEventListener("symbol-changed",e)}}},36594(e,t,n){n.d(t,{Q:()=>s,i:()=>l});var i=n(74848),o=n(16522),r=n(96540);let a=r.createContext(void 0);function s(e){let t,n=(0,o.c)(3),{user:r,children:s}=e;return n[0]!==s||n[1]!==r?(t=(0,i.jsxs)(a,{value:r,children:[" ",s," "]}),n[0]=s,n[1]=r,n[2]=t):t=n[2],t}function l(){return r.use(a)}a.displayName="CurrentUserContext",s.displayName="CurrentUserProvider"},206(e,t,n){n.d(t,{r:()=>s});var i=n(74848),o=n(16522),r=n(26316),a=n(94709);function s(e){let t,n,s,l,d,c,m,u=(0,o.c)(15);u[0]!==e?({ref:n,src:s,size:d,sx:l,...t}=e,u[0]=e,u[1]=t,u[2]=n,u[3]=s,u[4]=l,u[5]=d):(t=u[1],n=u[2],s=u[3],l=u[4],d=u[5]);let h=void 0===d?20:d;if(u[6]!==h||u[7]!==s){let e=new URL(s,r.fV.origin);e.searchParams.has("size")||e.searchParams.has("s")||e.searchParams.set("size",String(2*Number(h))),c=e.toString(),u[6]=h,u[7]=s,u[8]=c}else c=u[8];let p=c;return u[9]!==p||u[10]!==t||u[11]!==n||u[12]!==h||u[13]!==l?(m=(0,i.jsx)(a.eu,{src:p,size:h,"data-testid":"github-avatar",sx:l,...t,ref:n}),u[9]=p,u[10]=t,u[11]=n,u[12]=h,u[13]=l,u[14]=m):m=u[14],m}s.displayName="GitHubAvatar"},80473(e,t,n){let i,o;n.d(t,{FC:()=>h,I0:()=>m,Nz:()=>g,ch:()=>v,dV:()=>u,h$:()=>f,hW:()=>s,jK:()=>p,o:()=>d,tD:()=>x,zT:()=>l});let r=null,a=!1;function s(e){i&&i!==e||(i=e,r&&(r(e),r=null))}function l(){i=void 0}function d(e){let t=e?.source??"both",n=e?.silent??!0,o=null;return(("element"===t||"both"===t)&&(o=document.querySelector("context-region")),o||"react"!==t&&"both"!==t||(o=i??null),o)?"isConnected"in o&&!o.isConnected||!o.pushCrumb||"function"!=typeof o.pushCrumb?null:o:(n||console.error("The global navigation's context region cannot be found! Make sure the element exists on the page before calling any of the global navigation breadcrumb methods."),null)}function c(e){let t=d();t?e(t):(r=e,function(){if(a)return;a=!0;let e=document.querySelector("context-region-controller");e&&e.addEventListener("context-region-connected",()=>{r&&(r(e.contextRegion),r=null)},{once:!0})}())}function m(e){c(t=>t.pushCrumb(e))}function u(){c(e=>e.popCrumb())}function h(e){c(t=>t.replaceCrumbs(e))}function p(e){c(t=>t.renameCurrentCrumb(e))}function f(e){c(t=>t.replaceCurrentCrumb(e))}function x(e){o=e}function g(){o=void 0}function v(e,t){let n=o??null;return!!n&&(n.updateTabCount(e,t),!0)}},40846(e,t,n){n.d(t,{x:()=>s});var i=n(74848),o=n(16522),r=n(381),a=n(19519);function s(e){let t,n,s,l,d,c,m=(0,o.c)(13);m[0]!==e?({ref:s,children:t,src:l,...n}=e,m[0]=e,m[1]=t,m[2]=n,m[3]=s,m[4]=l):(t=m[1],n=m[2],s=m[3],l=m[4]);let{isServer:u}=(0,a.V)();return m[5]!==u||m[6]!==l?(d=u?{}:{src:l,"data-nonce":(0,r.M1)()},m[5]=u,m[6]=l,m[7]=d):d=m[7],m[8]!==t||m[9]!==n||m[10]!==s||m[11]!==d?(c=(0,i.jsx)("include-fragment",{...n,ref:s,...d,children:t}),m[8]=t,m[9]=n,m[10]=s,m[11]=d,m[12]=c):c=m[12],c}s.displayName="IncludeFragment"},52111(e,t,n){n.d(t,{l:()=>i});let i=()=>void 0},58418(e,t,n){let i;n.d(t,{A:()=>c});var o=n(35205),r=n(51189);let{getItem:a,setItem:s,removeItem:l}=(0,o.A)("localStorage"),d="REACT_PROFILING_DISABLED_UNTIL",c={enable:()=>{l(d),i=void 0},disable:()=>{s(d,String(Date.now()+864e5)),i=!1},isEnabled:()=>!("u"=t)&&(l(d),!0)}():.02>Math.random()),resetCache:()=>{i=void 0}}},5823(e,t,n){n.d(t,{e:()=>a});var i=n(74848),o=n(16522),r=n(16899);function a(){let e,t=(0,o.c)(1);return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.jsx)("div",{className:"d-flex flex-wrap gap-1",children:(0,i.jsx)(r.O,{variant:"elliptical",height:"28px",width:"28px"})}),t[0]=e):e=t[0],e}a.displayName="ReactionViewerLoading"},31854(e,t,n){n.d(t,{nn:()=>u,LB:()=>m,Gy:()=>s,lm:()=>c});var i=n(74848),o=n(16522),r=n(96540);class a{#e=null;#t=null;#n=new Set;#i;#o;constructor(e,t){this.#i=[...e].sort((e,t)=>t-e),this.#o=t}subscribe=e=>{if("u"{this.#n.delete(e),this.#a()}};getSnapshot=()=>{if("u"{let t=e[0];if(!t)return;let n=this.#l(t.contentRect.width);if(null===this.#e||n!==this.#e)for(let e of(this.#e=n,this.#n))e()};#l(e){for(let t of this.#i)if(e>=t)return t;return this.#o}#s(){if("u"typeof window&&"number"==typeof window.innerWidth&&(e=window.innerWidth);let t=this.#l(e);return this.#e=t,t}#r(){this.#t||(this.#t=new ResizeObserver(this.#d),this.#t.observe(document.documentElement),null===this.#e&&this.#s())}#a(){0===this.#n.size&&this.#t&&(this.#t.disconnect(),this.#t=null)}}let s={small:1,medium:544,large:768,xlarge:1012,xxlarge:1280,xxxlarge:1350,xxxxlarge:1440},l=new a([s.xxxxlarge,s.xxxlarge,s.xxlarge,s.xlarge,s.large,s.medium,s.small],s.small),d=r.createContext({screenSize:s.small});function c(){return r.use(d)}function m(e){let t,n,a,c=(0,o.c)(7),{children:m,initialValue:u}=e,h=void 0===u?s.small:u;c[0]!==h?(t=()=>h,c[0]=h,c[1]=t):t=c[1];let p=(0,r.useSyncExternalStore)(l.subscribe,l.getSnapshot,t);c[2]!==p?(n={screenSize:p},c[2]=p,c[3]=n):n=c[3];let f=n;return c[4]!==m||c[5]!==f?(a=(0,i.jsx)(d,{value:f,children:m}),c[4]=m,c[5]=f,c[6]=a):a=c[6],a}function u(e){return l.computeSize(e)}d.displayName="ScreenContext",m.displayName="ScreenSizeProvider"},5384(e,t,n){n.d(t,{Tt:()=>s,X7:()=>a,Ou:()=>l});let i="service_worker.postrequest";var o=n(66743);let r=null;async function a(e){if(null===r)try{let t=navigator.serviceWorker?.controller;if(!t||!function(e){let t=new URL(e,self.location.origin).pathname.split("/").filter(Boolean);if(4!==t.length||"issues"!==t[2])return!1;let n=t[3];return!!(void 0!==n&&/^\d+$/.test(n))&&!!t[0]&&!!t[1]}(e))return;let n=performance.now();r=await new Promise((r,a)=>{let s=new MessageChannel;function l(){s.port1.onmessage=null,s.port1.onmessageerror=null,s.port1.close(),s.port2.close()}let d=setTimeout(()=>{l();let e=performance.now()-n;(0,o.BI)(i,{duration_ms:e,timedOut:!0}),r(null)},500);s.port1.onmessage=e=>{clearTimeout(d),l();let t=performance.now()-n;if(e.data?.type==="CACHED_QUERIES_RESPONSE"&&e.data.data){let n=e.data.data.preloadedQueries;(0,o.BI)(i,{duration_ms:t,timedOut:!1}),r(n)}else(0,o.BI)(i,{duration_ms:t,timedOut:!1}),r(null)},s.port1.onmessageerror=()=>{clearTimeout(d),l(),a(Error("SW message channel error"))},t.postMessage({type:"GET_CACHED_QUERIES",url:e},[s.port2])})}catch{r=null}}function s(){return r}function l(){r=null}},16899(e,t,n){n.d(t,{O:()=>m});var i=n(74848),o=n(16522),r=n(34164);let a={skeleton:"LoadingSkeleton-module__skeleton__euqGn",wave:"LoadingSkeleton-module__wave__huYKA",pulse:"LoadingSkeleton-module__pulse__HTUJd",rounded:"LoadingSkeleton-module__rounded__J10DA",pill:"LoadingSkeleton-module__pill__Dlvex",elliptical:"LoadingSkeleton-module__elliptical__Dkk2i",rectangular:"LoadingSkeleton-module__rectangular__clQKW",text:"LoadingSkeleton-module__text__KroMb",widthXl:"LoadingSkeleton-module__widthXl__wYADo",widthLg:"LoadingSkeleton-module__widthLg__lEjod",widthMd:"LoadingSkeleton-module__widthMd__AgUlQ",widthSm:"LoadingSkeleton-module__widthSm__cd1Ri",heightXl:"LoadingSkeleton-module__heightXl__wphW7",heightLg:"LoadingSkeleton-module__heightLg__GNzGn",heightMd:"LoadingSkeleton-module__heightMd__NhBFk",heightSm:"LoadingSkeleton-module__heightSm__YvOXy"};var s=n(28141);let l=[60,40,54,77,57,41,75,45,76,55],d={xl:a.widthXl,lg:a.widthLg,md:a.widthMd,sm:a.widthSm},c={xl:a.heightXl,lg:a.heightLg,md:a.heightMd,sm:a.heightSm};function m(e){let t,n,m,u,h,p,f,x,g,v,w,b=(0,o.c)(26);b[0]!==e?({animationStyle:u,as:h,height:n,variant:p,width:f,className:t,...m}=e,b[0]=e,b[1]=t,b[2]=n,b[3]=m,b[4]=u,b[5]=h,b[6]=p,b[7]=f):(t=b[1],n=b[2],m=b[3],u=b[4],h=b[5],p=b[6],f=b[7]);let C=void 0===u?"wave":u,y=void 0===h?"div":h,j=void 0===p?"rectangular":p;b[8]===Symbol.for("react.memo_cache_sentinel")?(x={max:l.length},b[8]=x):x=b[8];let _=(0,s.o)(x),S=f&&f in d?d[f]:void 0,k=n&&n in d?c[n]:void 0;b[9]!==n||b[10]!==k||b[11]!==_||b[12]!==f||b[13]!==S?(g={},"random"===f?g.width=`${l[_]}%`:f&&!S&&(g.width=f),n&&!k&&(g.height=n),b[9]=n,b[10]=k,b[11]=_,b[12]=f,b[13]=S,b[14]=g):g=b[14];let N="pulse"===C&&a.pulse,E=a[j];return b[15]!==t||b[16]!==k||b[17]!==N||b[18]!==E||b[19]!==S?(v=(0,r.$)(a.skeleton,N,E,S,k,t),b[15]=t,b[16]=k,b[17]=N,b[18]=E,b[19]=S,b[20]=v):v=b[20],b[21]!==y||b[22]!==g||b[23]!==m||b[24]!==v?(w=(0,i.jsx)(y,{className:v,style:g,...m}),b[21]=y,b[22]=g,b[23]=m,b[24]=v,b[25]=w):w=b[25],w}m.displayName="LoadingSkeleton"},33542(e,t,n){n.d(t,{G:()=>i});let i=e=>({})},51581(e,t,n){n.d(t,{S:()=>l,s:()=>s});var i=n(16522),o=n(96540),r=n(66743),a=n(8470);function s(){let e,t,n=(0,i.c)(6),s=(0,o.use)(a.I);if(!s)throw Error("useAnalytics must be used within an AnalyticsContext");let{appName:l,category:d,metadata:c}=s;n[0]!==l||n[1]!==d||n[2]!==c?(e=(e,t,n)=>{let i={react:!0,app_name:l,category:d,...c};(0,r.BI)(e,{...i,...void 0===n?{}:n,target:t})},n[0]=l,n[1]=d,n[2]=c,n[3]=e):e=n[3];let m=e;return n[4]!==m?(t={sendAnalyticsEvent:m},n[4]=m,n[5]=t):t=n[5],t}function l(){let e,t,n=(0,i.c)(4),{sendAnalyticsEvent:o}=s();n[0]!==o?(e=e=>{o("analytics.click",void 0,void 0===e?{}:e)},n[0]=o,n[1]=e):e=n[1];let r=e;return n[2]!==r?(t={sendClickAnalyticsEvent:r},n[2]=r,n[3]=t):t=n[3],t}},29207(e,t,n){n.d(t,{H:()=>o});var i=n(65594);function o(e,t){let{csrf_tokens:n}=(0,i.B)();return n?.[e]?.[t]}},63397(e,t,n){n.d(t,{d:()=>a});var i=n(53449),o=n(52246),r=n(96540);let a=(e,t,{leading:n=!1,maxWait:a,trailing:s=!0,onChangeBehavior:l="flush"}={})=>{let d=(0,i.M)(e),c=(0,r.useMemo)(()=>{let e=void 0===a?{leading:n,trailing:s}:{leading:n,trailing:s,maxWait:a};return(0,o.A)((...e)=>d.current(...e),t,e)},[d,t,n,a,s]);return(0,r.useEffect)(()=>()=>{c?.[l]()},[c,l]),c}},60057(e,t,n){n.d(t,{Z:()=>r});var i=n(16522),o=n(96540);function r(e){let t,n,r=(0,i.c)(4),{focusRowRef:a,mouseRowRef:s}=e,[l,d]=(0,o.useState)(!1);return r[0]!==a||r[1]!==s?(t=()=>{let e=a.current,t=s.current;if(!e||!t)return;let n=()=>{let t=e.querySelector(".PRIVATE_TreeView-item-content-text");t?.scrollWidth!==t?.offsetWidth&&d(!0)},i=()=>n(),o=()=>d(!1),r=()=>n(),l=()=>d(!1);return e.addEventListener("focus",i),e.addEventListener("blur",o),t.addEventListener("mouseenter",r),t.addEventListener("mouseleave",l),()=>{e.removeEventListener("focus",i),e.removeEventListener("blur",o),t.removeEventListener("mouseenter",r),t.removeEventListener("mouseleave",l)}},n=[a,s],r[0]=a,r[1]=s,r[2]=t,r[3]=n):(t=r[2],n=r[3]),(0,o.useEffect)(t,n),l}}}]); //# sourceMappingURL=7098-0ccd092468505982-0fc1e5b57d16f29c.js.map