티스토리 수익 글 보기

티스토리 수익 글 보기

“use strict”;(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[10288],{5205:(e,t,i)=>{i.d(t,{k:()=>U,o:()=>$});var r=i(74848),a=i(78314),o=i(72511),n=i(12683),s=i(49799),l=i(53552),c=i(25407),d=i(96379),u=i(96540),h=i(6665),m=i(38621),f=i(94236),y=i(21373),p=i(72579),x=i(73077),N=i(55630),b=i(34164);function g({children:e}){return(0,r.jsx)(“div”,{className:(0,b.$)(“popover-container-width”,”InfobarPopover-module__Box–qtcHk”),children:e})}function j({icon:e,header:t,content:i,headerRef:a}){return(0,r.jsxs)(“div”,{className:”d-flex p-3″,children:[(0,r.jsx)(“div”,{className:”mr-2″,children:e}),(0,r.jsxs)(“div”,{children:[(0,r.jsx)(“h2″,{ref:a,tabIndex:-1,className:”f5 mb-1”,children:t}),(0,r.jsx)(“span”,{className:”fgColor-muted f6″,children:i})]})]})}function k({icon:e,success:t}){return(0,r.jsx)(N.A,{size:30,icon:()=>(0,r.jsx)(e,{size:16}),className:(0,b.$)(“InfobarPopover-module__CircleOcticon–yvGLn”,t&&”InfobarPopover-module__success–LF_X5″)})}function w({children:e}){return(0,r.jsx)(“div”,{className:”d-flex flex-wrap flex-justify-between p-3 gap-3 border-top borderColor-muted”,children:e})}try{g.displayName||(g.displayName=”PopoverContainer”)}catch{}try{j.displayName||(j.displayName=”PopoverContent”)}catch{}try{k.displayName||(k.displayName=”PopoverIcon”)}catch{}try{w.displayName||(w.displayName=”PopoverActions”)}catch{}function v(e){return`${e} ${1===e?”commit”:”commits”}`}function C({comparison:e,repo:t,linkify:i=!1}){let{sendRepoClickEvent:a}=(0,h.T)(),{ahead:o,behind:n,baseBranch:s,baseBranchRange:l,currentRef:d}=e,u=(0,c.bSP)({repo:t,base:l,head:d}),m=(0,c.bSP)({repo:t,base:d,head:l}),f=()=>a(“AHEAD_BEHIND_LINK”,{category:”Branch Infobar”,action:”Ahead Compare”,label:`ref_loc:bar;is_fork:${t.isFork}`}),y=()=>a(“AHEAD_BEHIND_LINK”,{category:”Branch Infobar”,action:”Behind Compare”,label:`ref_loc:bar;is_fork:${t.isFork}`});return 0===o&&0===n?(0,r.jsxs)(“span”,{children:[“This branch is up to date with “,(0,r.jsx)(p.A,{as:”span”,children:s}),”.”]}):o>0&&n>0?(0,r.jsxs)(“span”,{children:[“This branch is”,” “,(0,r.jsxs)(S,{linkify:i,href:u,onClick:f,children:[v(o),” ahead of”]}),” and “,(0,r.jsxs)(S,{linkify:i,href:m,onClick:y,children:[v(n),” behind”]}),” “,(0,r.jsx)(p.A,{as:”span”,children:s}),”.”]}):o>0?(0,r.jsxs)(“span”,{children:[“This branch is”,” “,(0,r.jsxs)(S,{linkify:i,href:u,onClick:f,children:[v(o),” ahead of”]}),” “,(0,r.jsx)(p.A,{as:”span”,children:s}),”.”]}):(0,r.jsxs)(“span”,{children:[“This branch is”,” “,(0,r.jsxs)(S,{linkify:i,href:m,onClick:y,children:[v(n),” behind”]}),” “,(0,r.jsx)(p.A,{as:”span”,children:s}),”.”]})}function S({sx:e,href:t,linkify:i,children:a,…o}){return i?(0,r.jsx)(n.N_,{sx:e,href:t,…o,children:a}):(0,r.jsx)(“span”,{children:a})}try{C.displayName||(C.displayName=”RefComparisonText”)}catch{}try{S.displayName||(S.displayName=”LinkOrText”)}catch{}var A=i(9281);function _({comparison:e}){let t=(0,a.t)(),i=e.ahead>0,o=(0,c.bSP)({repo:t,base:e.baseBranchRange,head:e.currentRef});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j,{icon:(0,r.jsx)(k,{icon:m.GitPullRequestIcon}),header:i?(0,r.jsx)(C,{repo:t,comparison:{…e,behind:0}}):(0,r.jsxs)(“span”,{children:[“This branch is not ahead of the upstream “,(0,r.jsx)(p.A,{as:”span”,children:e.baseBranch}),”.”]}),content:(0,r.jsx)(“p”,{children:i?”Open a pull request to contribute your changes upstream.”:”No new commits yet. Enjoy your day!”})}),i&&(0,r.jsxs)(w,{children:[!t.isFork&&(0,r.jsx)(x.z,{className:(0,b.$)(A.A[“code-view-link-button”],”flex-1″),href:o,”data-testid”:”compare-button”,children:”Compare”}),(0,r.jsx)(x.z,{className:(0,b.$)(A.A[“code-view-link-button”],”flex-1″),href:`${o}?expand=1`,variant:”primary”,”data-testid”:”open-pr-button”,children:”Open pull request”})]})]})}try{_.displayName||(_.displayName=”ContributePopoverContent”)}catch{}function B({comparison:e}){let{sendRepoClickEvent:t}=(0,h.T)();return(0,r.jsxs)(f.W,{onOpenChange:e=>e&&t(“CONTRIBUTE_BUTTON”,{category:”Branch Infobar”,action:”Open Contribute dropdown”,label:”ref_loc:contribute_dropdown”}),children:[(0,r.jsx)(f.W.Anchor,{children:(0,r.jsx)(y.Q,{leadingVisual:m.GitPullRequestIcon,trailingVisual:m.TriangleDownIcon,children:”Contribute”})}),(0,r.jsx)(f.W.Overlay,{align:”end”,className:”mt-2″,children:(0,r.jsx)(g,{children:(0,r.jsx)(_,{comparison:e})})})]})}try{B.displayName||(B.displayName=”ContributeButton”)}catch{}var M=i(69726),R=i(84268);function F(e,t,i){let[r,a]=(0,u.useState)(!1);return{disabled:r,label:r?t:e,action:async()=>{a(!0),await i(),a(!1)}}}let H={category:”Branch Infobar”,label:”ref_loc:fetch_upstream_dropdown”};function T({comparison:e,discard:t,update:i}){let o=(0,a.t)(),{helpUrl:n}=(0,l.sq)(),{sendRepoClickEvent:s}=(0,h.T)(),d=`${n}/github/collaborating-with-issues-and-pull-requests/syncing-a-fork`,f=(0,c.bSP)({repo:o,base:e.baseBranchRange,head:e.currentRef}),p=L(e),x=e.behind>0,N=F(`Discard ${v(e.ahead)}`,”Discarding changes…”,t),g=F(“Update branch”,”Updating…”,i),C={compare:”behind”===p,discard:”behind-and-ahead”===p&&e.isTrackingBranch,update:[“behind”,”behind-and-ahead”].includes(p)},S=Object.values(C).some(Boolean),_=(0,u.useRef)(null);return(0,u.useEffect)(()=>{let e=window.setTimeout(()=>_.current?.focus());return()=>{window.clearTimeout(e)}}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j,{icon:(0,r.jsx)(k,{icon:x?m.GitMergeIcon:m.CheckIcon,success:!x}),headerRef:_,header:(0,r.jsx)(I,{comparison:e}),content:(0,r.jsx)(D,{comparison:e,helpUrl:d})}),S&&(0,r.jsxs)(w,{children:[C.compare&&(0,r.jsx)(y.Q,{as:R.A,className:(0,b.$)(A.A[“code-view-link-button”],”flex-1″),href:f,onClick:()=>s(“SYNC_FORK.COMPARE”,{…H,action:”Compare”}),”data-testid”:”compare-button”,children:”Compare”}),C.discard&&(0,r.jsx)(y.Q,{onClick:N.action,className:”flex-1″,”data-testid”:”discard-button”,variant:”danger”,disabled:N.disabled,children:N.label}),C.update&&(0,r.jsx)(y.Q,{onClick:g.action,disabled:g.disabled,className:”flex-1″,variant:”primary”,”data-testid”:”update-branch-button”,children:g.label})]})]})}function L({behind:e,ahead:t}){return 0===e&&0===t?”sync”:e>0&&t>0?”behind-and-ahead”:e>0?”behind”:”ahead”}function I({comparison:e}){switch(L(e)){case”behind”:case”behind-and-ahead”:return(0,r.jsx)(“span”,{children:”This branch is out-of-date”});default:return(0,r.jsxs)(“span”,{children:[“This branch is not behind the upstream “,(0,r.jsx)(p.A,{as:”span”,children:e.baseBranch}),”.”]})}}function D({comparison:e,helpUrl:t}){switch(L(e)){case”sync”:case”ahead”:return(0,r.jsx)(“p”,{children:”No new commits to fetch. Enjoy your day!”});case”behind”:return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(“p”,{children:[“Update branch to keep this branch up-to-date by syncing “,v(e.behind),” from the upstream repository.”]}),(0,r.jsx)(“p”,{children:(0,r.jsx)(R.A,{href:t,target:”_blank”,rel:”noopener noreferrer”,children:”Learn more about syncing a fork”})})]});case”behind-and-ahead”:return e.isTrackingBranch?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(“p”,{children:”Update branch to merge the latest changes from the upstream repository into this branch.”}),(0,r.jsxs)(“p”,{children:[“Discard “,v(e.ahead),” to make this branch match the upstream repository.”,” “,v(e.ahead),” will be removed from this branch.”]}),(0,r.jsx)(“p”,{children:(0,r.jsx)(R.A,{href:t,target:”_blank”,rel:”noopener noreferrer”,children:”Learn more about syncing a fork”})})]}):(0,r.jsx)(“p”,{children:”Update branch to merge the latest changes from the upstream repository into this branch.”})}}try{T.displayName||(T.displayName=”FetchUpstreamPopoverContent”)}catch{}try{I.displayName||(I.displayName=”HeaderText”)}catch{}try{D.displayName||(D.displayName=”ContentText”)}catch{}function E({comparison:e,discard:t}){let i=(0,a.t)(),{sendRepoClickEvent:o}=(0,h.T)(),n=(0,c.w7M)({repo:i,refName:e.currentRef}),s=v(e.ahead),l=F(`Discard ${s}`,”Discarding changes…”,t);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(j,{icon:(0,r.jsx)(k,{icon:m.AlertIcon}),header:”This branch has conflicts that must be resolved”,content:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(“p”,{children:[“Discard “,s,” to make this branch match the upstream repository. “,s,” will be removed from this branch.”]}),(0,r.jsx)(“p”,{children:”You can resolve merge conflicts using the command line and a text editor.”})]})}),(0,r.jsxs)(w,{children:[(0,r.jsx)(y.Q,{className:”flex-1″,onClick:l.action,disabled:l.disabled,”data-testid”:”discard-button”,variant:”danger”,children:l.label}),(0,r.jsx)(y.Q,{as:R.A,className:(0,b.$)(A.A[“code-view-link-button”],”flex-1″),href:n,variant:”primary”,”data-testid”:”open-pr-button”,onClick:()=>o(“SYNC_FORK.OPEN_PR”,{…H,action:”Open pull request”}),children:”Open pull request”})]})]})}try{E.displayName||(E.displayName=”FetchUpstreamWithConflictsPopoverContent”)}catch{}function W({comparison:e}){let[t,i,o]=function({head:e,base:t}){let[i,r]=(0,u.useState)(),[o,n]=(0,u.useState)(!0),[s,l]=(0,u.useState)(),h=(0,a.t)(),m=(0,c.a3t)({repo:h,head:e,base:t});return(0,u.useEffect)(()=>{(async()=>{n(!0),r(void 0);let e=await (0,d.lS)(m);try{e.ok?r((await e.json()).state):l(e.statusText)}catch(e){l(e?.message||e?.toString())}n(!1)})()},[m]),[i,o,s]}({base:e.currentRef,head:e.baseBranchRange}),{sendRepoClickEvent:n}=(0,h.T)(),{discardChanges:s,updateBranch:m}=function(){let e=(0,a.t)(),{refInfo:{name:t}}=(0,l.eu)(),i=(0,c.X6K)({repo:e,refName:t,discard:!0}),r=(0,c.X6K)({repo:e,refName:t,discard:!1});return{updateBranch:(0,u.useCallback)(()=>(0,d.DI)(r,{method:”POST”}),[r]),discardChanges:(0,u.useCallback)(()=>(0,d.DI)(i,{method:”POST”}),[i])}}(),f=async()=>{n(“SYNC_FORK.DISCARD”,{…H,action:”Discard Conflicts”});let e=await s();e.ok&&e.url&&(window.location.href=e.url)},y=async()=>{n(“SYNC_FORK.UPDATE”,{…H,action:”Fetch and merge”});let e=await m();e.ok&&e.url&&(window.location.href=e.url)};return 0===e.behind?(0,r.jsx)(T,{update:y,discard:f,comparison:e}):i||o?(0,r.jsx)(“div”,{className:”p-4 d-flex flex-justify-center”,children:(0,r.jsx)(M.A,{})}):”clean”===t?(0,r.jsx)(T,{update:y,discard:f,comparison:e}):(0,r.jsx)(E,{discard:f,comparison:e})}try{W.displayName||(W.displayName=”FetchPopoverContainer”)}catch{}function O({comparison:e}){let{sendRepoClickEvent:t}=(0,h.T)();return(0,r.jsxs)(f.W,{onOpenChange:i=>i&&t(“SYNC_FORK_BUTTON”,{category:”Branch Infobar”,action:”Open Fetch upstream dropdown”,label:”ref_loc:fetch_upstream_dropdown”,ahead:e.ahead,behind:e.behind}),children:[(0,r.jsx)(f.W.Anchor,{children:(0,r.jsx)(y.Q,{leadingVisual:m.SyncIcon,trailingAction:m.TriangleDownIcon,children:”Sync fork”})}),(0,r.jsx)(f.W.Overlay,{align:”end”,className:”mt-2″,children:(0,r.jsx)(g,{children:(0,r.jsx)(W,{comparison:e})})})]})}try{O.displayName||(O.displayName=”FetchUpstreamButton”)}catch{}function P({repo:e,pullRequestNumber:t}){return(0,r.jsxs)(R.A,{href:(0,c.oDn)({repo:e,number:t}),className:”PullRequestLink-module__Link–i17X3″,children:[(0,r.jsx)(m.GitPullRequestIcon,{size:16}),”#”,t]})}try{P.displayName||(P.displayName=”PullRequestLink”)}catch{}function U({sx:e}){let t,[i,o]=function(){let[e,t]=(0,u.useState)(),[i,r]=(0,u.useState)(),{refInfo:o,path:n}=(0,l.eu)(),s=(0,a.t)(),h=(0,c.IO9)({repo:s,action:”branch-infobar”,commitish:o.name,path:n});return(0,u.useEffect)(()=>{(async()=>{t(void 0);let e=await (0,d.lS)(h);try{e.ok?t(await e.json()):r(422===e.status?”timeout”:e.statusText)}catch(e){r(e?.message||e?.toString())}})()},[h]),[e,i]}(),n=(0,a.t)();return t=”timeout”===o?(0,r.jsx)(r.Fragment,{children:”Sorry, getting ahead/behind information for this branch is taking too long.”}):i?i.refComparison?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(C,{linkify:!0,repo:n,comparison:i.refComparison}),(0,r.jsx)(“div”,{className:”d-flex gap-2″,children:i.pullRequestNumber?(0,r.jsx)(P,{repo:n,pullRequestNumber:i.pullRequestNumber}):(0,r.jsxs)(r.Fragment,{children:[n.currentUserCanPush&&(0,r.jsx)(B,{comparison:i.refComparison}),n.isFork&&n.currentUserCanPush&&(0,r.jsx)(O,{comparison:i.refComparison})]})})]}):(0,r.jsx)(r.Fragment,{children:”Cannot retrieve ahead/behind information for this branch.”}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.r,{width:”40%”}),(0,r.jsx)(s.r,{width:”30%”})]}),(0,r.jsx)(q,{sx:e,className:”BranchInfoBar-module__BranchInfoBarContainer–vaFVP”,children:t})}function q({children:e,sx:t,className:i}){return(0,r.jsx)(n.az,{“data-testid”:”branch-info-bar”,”aria-live”:”polite”,sx:t,className:(0,b.$)(“BranchInfoBar-module__Box–NhDLA”,i),children:e})}function $(){return(0,r.jsx)(o.A,{variant:”warning”,className:”my-3″,children:(0,r.jsx)(“span”,{children:”Cannot retrieve comparison with upstream repository.”})})}try{U.displayName||(U.displayName=”BranchInfoBar”)}catch{}try{q.displayName||(q.displayName=”BranchInfoBarContainer”)}catch{}try{$.displayName||($.displayName=”BranchInfoBarErrorBanner”)}catch{}},6426:(e,t,i)=>{i.d(t,{S:()=>_,D:()=>A});var r=i(74848),a=i(49799),o=i(53552),n=i(6665),s=i(61200),l=i(78314),c=i(25407),d=i(66108),u=i(73017),h=i(20263),m=i(41462),f=i(91547),y=i(38621),p=i(62935),x=i(84268),N=i(73077),b=i(26108),g=i(96540),j=i(99896);function k({status:e,oid:t}){let i=(0,l.t)(),[a,o]=(0,j.ym)(t,i);return e?(0,r.jsx)(j.B6,{statusRollup:e,combinedStatus:a,onWillOpenPopup:o,size:”small”}):null}try{k.displayName||(k.displayName=”ReposChecksStatusBadge”)}catch{}var w=i(9281),v=i(34164),C=i(10095),S=i(55255);function A({commitCount:e}){return(0,r.jsx)(“div”,{className:”d-flex flex-column border rounded-2 mb-3 pl-1″,children:(0,r.jsx)(_,{commitCount:e})})}function _({commitCount:e}){let t=(0,l.t)(),{refInfo:i,path:n}=(0,o.eu)(),[s,c,d]=(0,f.E)(t.ownerLogin,t.name,i.name,n),[u,h]=(0,g.useState)(!1);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(“div”,{className:”LatestCommit-module__Box–Fimpo”,children:[(0,r.jsx)(m.W,{as:”h2″,text:”Latest commit”}),d?(0,r.jsx)(B,{}):c?(0,r.jsx)(a.r,{width:120,”data-testid”:”loading”}):s?(0,r.jsx)(M,{commit:s,detailsOpen:u,setDetailsOpen:h,repo:t}):null,(0,r.jsxs)(“div”,{className:”d-flex flex-shrink-0 gap-2″,children:[(0,r.jsx)(R,{commit:s,repo:t}),(0,r.jsx)(F,{commit:s,commitCount:e,detailsOpen:u,setDetailsOpen:h})]})]}),u&&s&&(0,r.jsx)(“div”,{className:s.bodyMessageHtml?”d-flex”:”d-flex d-sm-none”,children:(0,r.jsx)(I,{commit:s,repo:t})})]})}function B(){return(0,r.jsxs)(“span”,{className:”fgColor-attention”,”data-testid”:”latest-commit-error-message”,children:[(0,r.jsx)(C.A,{icon:y.AlertFillIcon}),”\xa0Cannot retrieve latest commit at this time.”]})}function M({commit:e,detailsOpen:t,setDetailsOpen:i,repo:a}){let o=`data-hovercard-url=${(0,c.fQd)({owner:a.ownerLogin,repo:a.name,commitish:e.oid})} `,n=function(e,t){let i=””;if(e){for(let r of e.split(“0?(0,r.jsx)(s.jF,{authors:e.authors,repo:a,includeVerbs:!1,committer:e.committer,committerAttribution:e.committerAttribution}):(0,r.jsx)(s.h1,{author:e.author,repo:a}),(0,r.jsxs)(“div”,{className:(0,v.$)(“d-none d-sm-flex”,”LatestCommit-module__Box_2–JDY37″),children:[(0,r.jsx)(“div”,{className:”Truncate flex-items-center f5″,children:e.shortMessageHtmlLink&&(0,r.jsx)(h.BC,{className:”Truncate-text”,”data-testid”:”latest-commit-html”,html:n})}),e.bodyMessageHtml&&(0,r.jsx)(L,{detailsOpen:t,setDetailsOpen:i}),(0,r.jsx)(k,{oid:e.oid,status:e.status})]}),Number.isNaN(Date.parse(e.date))?null:(0,r.jsx)(“span”,{className:”d-flex d-sm-none fgColor-muted f6″,children:(0,r.jsx)(p.A,{datetime:e.date,tense:”past”})})]})}function R({commit:e,repo:t}){let i=e?.oid.slice(0,7);return(0,r.jsx)(“div”,{“data-testid”:”latest-commit-details”,className:”d-none d-sm-flex flex-items-center”,children:e&&(0,r.jsxs)(“span”,{className:”d-flex flex-nowrap fgColor-muted f6″,children:[(0,r.jsx)(x.A,{as:d.N,to:e.url,className:”Link–secondary”,”aria-label”:`Commit ${i}`,”data-hovercard-url”:(0,c.fQd)({owner:t.ownerLogin,repo:t.name,commitish:e.oid}),children:i}),”\xa0\xb7\xa0″,Number.isNaN(Date.parse(e.date))?null:(0,r.jsx)(p.A,{datetime:e.date,tense:”past”})]})})}function F({commit:e,commitCount:t,detailsOpen:i,setDetailsOpen:a}){return(0,r.jsxs)(“div”,{className:”d-flex gap-2″,children:[(0,r.jsx)(m.W,{as:”h2″,text:”History”}),(0,r.jsx)(T,{className:”d-none d-lg-flex”,leadingVisual:y.HistoryIcon,children:(0,r.jsx)(“span”,{className:”fgColor-default”,children:H(t)})}),(0,r.jsx)(“div”,{className:”d-sm-none”,children:(e?.shortMessageHtmlLink||e?.bodyMessageHtml)&&(0,r.jsx)(L,{detailsOpen:i,setDetailsOpen:a})}),(0,r.jsx)(“div”,{className:”d-flex d-lg-none”,children:(0,r.jsx)(S.A,{text:H(t),id:”history-icon-button-tooltip”,children:(0,r.jsx)(T,{leadingVisual:y.HistoryIcon,”aria-describedby”:”history-icon-button-tooltip”,”aria-label”:”View commit history for this file.”})})})]})}function H(e){return e?”1″===e?”1 Commit”:`${e} Commits`:”History”}function T({children:e,className:t,leadingVisual:i,…a}){let{sendRepoClickEvent:s}=(0,n.T)(),{refInfo:d,path:u}=(0,o.eu)(),h=(0,l.t)();return(0,r.jsx)(N.z,{“aria-describedby”:a[“aria-describedby”],”aria-label”:a[“aria-label”],className:(0,v.$)(t,w.A[“code-view-link-button”],”flex-items-center fgColor-default”),onClick:()=>s(“HISTORY_BUTTON”),href:(0,c.GpY)({owner:h.ownerLogin,repo:h.name,ref:d.name,path:u}),variant:”invisible”,size:”small”,leadingVisual:i,children:e})}function L({detailsOpen:e,setDetailsOpen:t}){return(0,r.jsx)(b.K,{“aria-label”:”Open commit details”,icon:y.EllipsisIcon,onClick:()=>t(!e),variant:”invisible”,”aria-pressed”:e,”aria-expanded”:e,”data-testid”:”latest-commit-details-toggle”,size:”small”,className:”LatestCommit-module__IconButton–Zxaob”})}function I({commit:e,repo:t}){let i=e?.oid.slice(0,7);return(0,r.jsxs)(“div”,{className:”bgColor-muted border-top rounded-bottom-2 px-3 py-2 flex-1″,children:[(0,r.jsxs)(“div”,{className:”d-flex d-sm-none flex-column”,children:[(0,r.jsxs)(“div”,{className:”LatestCommit-module__Box_3–Egpxh”,children:[e.shortMessageHtmlLink&&(0,r.jsx)(u.JR,{className:(0,v.$)(“Truncate-text”,”LatestCommit-module__VerifiedHTMLText–_m6PQ”),”data-testid”:”latest-commit-html”,html:e.shortMessageHtmlLink}),(0,r.jsx)(k,{oid:e.oid,status:e.status})]}),(0,r.jsx)(x.A,{as:d.N,to:e.url,className:”Link–secondary”,”aria-label”:`Commit ${i}`,”data-hovercard-url”:(0,c.fQd)({owner:t.ownerLogin,repo:t.name,commitish:e.oid}),children:i}),e.bodyMessageHtml&&(0,r.jsx)(“br”,{})]}),e.bodyMessageHtml&&(0,r.jsx)(“div”,{className:”mt-2 mt-sm-0 fgColor-muted”,children:(0,r.jsx)(u.JR,{className:(0,v.$)(“Truncate-text”,”LatestCommit-module__VerifiedHTMLText_1–Prx0J”),”data-testid”:”latest-commit-html”,html:e.bodyMessageHtml})})]})}try{A.displayName||(A.displayName=”LatestCommitSingleLine”)}catch{}try{_.displayName||(_.displayName=”LatestCommitContent”)}catch{}try{B.displayName||(B.displayName=”CommitErrorMessage”)}catch{}try{M.displayName||(M.displayName=”CommitSummary”)}catch{}try{R.displayName||(R.displayName=”LastCommitTimestamp”)}catch{}try{F.displayName||(F.displayName=”HistoryLink”)}catch{}try{T.displayName||(T.displayName=”HistoryLinkButton”)}catch{}try{L.displayName||(L.displayName=”CommitDetailsButton”)}catch{}try{I.displayName||(I.displayName=”CommitDetails”)}catch{}},9281:(e,t,i)=>{i.d(t,{A:()=>r});let r={“code-view-link-button”:”LinkButton-module__code-view-link-button–thtqc”}},10677:(e,t,i)=>{i.d(t,{X:()=>s,d:()=>n});var r=i(74848),a=i(96540);let o=a.createContext({});function n(){return a.useContext(o)}function s({payload:e,children:t}){return(0,r.jsx)(o,{value:e,children:t})}try{o.displayName||(o.displayName=”TreeContext”)}catch{}try{s.displayName||(s.displayName=”CurrentTreeProvider”)}catch{}},13364:(e,t,i)=>{i.d(t,{P:()=>l});var r=i(25407),a=i(64677),o=i(76648),n=i(96540),s=i(17038);function l(e){let t=(0,o.B)(),i=e||t,l=(0,n.useRef)(i),c=(0,a.q)();if(i)l.current=i;else{let e=(0,r.n7E)(location.pathname,l.current.refInfo.name,l.current.path);i=(0,s.Bl)(l.current,c,e)}return i}},17038:(e,t,i)=>{i.d(t,{Bl:()=>o,aO:()=>a});var r=i(41617);function a(e){return(0,r.Hf)(e)?{…e.fileTree,[e.path]:{items:e.tree.items,totalCount:e.tree.totalCount}}:e.fileTree}function o(e,t,i){return{path:i,repo:e.repo,refInfo:e.refInfo,currentUser:e.currentUser,fileTree:a(e),fileTreeProcessingTime:e.fileTreeProcessingTime,foldersToFetch:e.foldersToFetch,allShortcutsEnabled:e.allShortcutsEnabled,treeExpanded:e.treeExpanded,symbolsExpanded:e.symbolsExpanded,codeLineWrapEnabled:e.codeLineWrapEnabled,isMarketplaceEnabled:e.isMarketplaceEnabled,error:t||void 0}}},19357:(e,t,i)=>{i.d(t,{e:()=>l,i:()=>s});var r=i(74848),a=i(71315),o=i(96540);let n=o.createContext({focusHint:null,setFocusHint:()=>void 0});function s({children:e}){let t={key:a.fV.pathname+a.fV.search},i=(0,o.useRef)(t.key),s=(0,o.useRef)(t.key),l=(0,o.useRef)({hint:null,location:null}),c=(0,o.useCallback)((e,i)=>{l.current={hint:e,context:i,location:t.key}},[t.key]);s.current!==t.key&&(i.current=s.current,s.current=t.key);let d=l.current.location===i.current,u=d?l.current.hint:null,h=d?l.current.context:null,m=(0,o.useMemo)(()=>({focusHint:u,context:h,setFocusHint:c}),[u,h,c]);return(0,r.jsx)(n.Provider,{value:m,children:e})}function l(){return(0,o.useContext)(n)}try{n.displayName||(n.displayName=”FocusHintContext”)}catch{}try{s.displayName||(s.displayName=”FocusHintContextProvider”)}catch{}},20263:(e,t,i)=>{i.d(t,{BC:()=>s,JU:()=>c,Pk:()=>n});var r=i(74848),a=i(12683),o=i(99418);let n=d(a.az),s=d(a.EY),l=({ref:e,…t})=>(0,r.jsx)(“div”,{…t,ref:e});l.displayName=”Div”;let c=d(l);function d(e){let t=t=>{let{sanitizedHTML:i,props:a}=function(e){let{html:t,domPurifyConfig:i,…r}=e,a={…i,RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1};return{sanitizedHTML:o.default.sanitize(t,a),props:r}}(t);return(0,r.jsx)(e,{…a,dangerouslySetInnerHTML:{__html:i}})};return t.displayName=`UnsafeHTML${e.displayName||e.name}`,t}try{n.displayName||(n.displayName=”UnsafeHTMLBox”)}catch{}try{s.displayName||(s.displayName=”UnsafeHTMLText”)}catch{}try{c.displayName||(c.displayName=”UnsafeHTMLDiv”)}catch{}},26052:(e,t,i)=>{i.d(t,{v:()=>s});var r=i(74848),a=i(16522),o=i(96540),n=i(68245);function s(e){let t,i=(0,a.c)(7),{login:s,profileName:l,isAgent:c}=e,d=(0,o.useContext)(n._);if(c){let e;return i[0]!==s?(e=(0,r.jsx)(r.Fragment,{children:s}),i[0]=s,i[1]=e):e=i[1],e}if(“name_handle”===d&&l?.trim()){let e;return i[2]!==s||i[3]!==l?(e=(0,r.jsxs)(r.Fragment,{children:[l,” (“,s,”)”]}),i[2]=s,i[3]=l,i[4]=e):e=i[4],e}return i[5]!==s?(t=(0,r.jsx)(r.Fragment,{children:s}),i[5]=s,i[6]=t):t=i[6],t}try{s.displayName||(s.displayName=”ProfileReference”)}catch{}},26619:(e,t,i)=>{i.d(t,{Xl:()=>l,lG:()=>d,x7:()=>s,yY:()=>c});var r=i(74848),a=i(96540),o=i(61526);let n=(0,a.createContext)({banners:[],addBanner:()=>void 0,addQueuedBanner:()=>void 0});function s(){return(0,a.useContext)(n).banners}function l(){return(0,a.useContext)(n).addBanner}function c(){return(0,a.useContext)(n).addQueuedBanner}function d({children:e}){let t=(0,o.zy)(),[i,s]=(0,a.useState)([]),[l,c]=(0,a.useState)([]),d=(0,a.useCallback)(e=>s(t=>[…t,e]),[]),u=(0,a.useCallback)(e=>c(t=>[…t,e]),[]),h=(0,a.useMemo)(()=>({banners:i,addBanner:d,addQueuedBanner:u}),[d,u,i]);return(0,a.useEffect)(()=>{s(l),c([])},[t.key]),(0,r.jsx)(n,{value:h,children:e})}try{n.displayName||(n.displayName=”CodeViewBannersContext”)}catch{}try{d.displayName||(d.displayName=”CodeViewBannersProvider”)}catch{}},30459:(e,t,i)=>{i.d(t,{S:()=>l,s:()=>s});var r=i(16522),a=i(96540),o=i(53419),n=i(49936);function s(){let e,t,i=(0,r.c)(6),s=(0,a.useContext)(n.I);if(!s)throw Error(“useAnalytics must be used within an AnalyticsContext”);let{appName:l,category:c,metadata:d}=s;i[0]!==l||i[1]!==c||i[2]!==d?(e=(e,t,i)=>{let r={react:!0,app_name:l,category:c,…d};(0,o.BI)(e,{…r,…void 0===i?{}:i,target:t})},i[0]=l,i[1]=c,i[2]=d,i[3]=e):e=i[3];let u=e;return i[4]!==u?(t={sendAnalyticsEvent:u},i[4]=u,i[5]=t):t=i[5],t}function l(){let e,t,i=(0,r.c)(4),{sendAnalyticsEvent:a}=s();i[0]!==a?(e=e=>{a(“analytics.click”,void 0,void 0===e?{}:e)},i[0]=a,i[1]=e):e=i[1];let o=e;return i[2]!==o?(t={sendClickAnalyticsEvent:o},i[2]=o,i[3]=t):t=i[3],t}},34424:(e,t,i)=>{i.d(t,{e:()=>u});var r=i(74848),a=i(53552),o=i(78314),n=i(25407),s=i(38621),l=i(84268),c=i(10095),d=i(59775);function u({errorMessage:e,onAnchorClick:t,path:i,richText:u,stickyHeaderHeight:h,timedOut:m}){let f=(0,o.t)(),{refInfo:y}=(0,a.eu)();return e?(0,r.jsxs)(“div”,{className:”py-6 px-3 text-center”,children:[m&&(0,r.jsx)(c.A,{icon:s.HourglassIcon,size:32}),(0,r.jsx)(“div”,{“data-testid”:”directory-richtext-error-message”,children:e}),m&&(0,r.jsxs)(“div”,{children:[“But you can view the”,” “,(0,r.jsx)(l.A,{inline:!0,href:(0,n.IO9)({repo:f,commitish:y.name,action:”raw”,path:i}),”data-testid”:”directory-richtext-timeout-raw-link”,children:”raw file”}),”.”]})]}):u?(0,r.jsx)(d.s,{onAnchorClick:t,richText:u,stickyHeaderHeight:h,className:”DirectoryRichtextContent-module__SharedMarkdownContent–BTKsc”}):null}try{u.displayName||(u.displayName=”DirectoryRichtextContent”)}catch{}},39111:(e,t,i)=>{i.d(t,{X:()=>a});var r=i(54571);function a(e){let t=e.join(“,”),[i]=(0,r.I)(()=>{let e=/Windows/.test(navigator.userAgent)?”windows”:/Macintosh/.test(navigator.userAgent)?”mac”:null;return!!e&&t.includes(e)},!1,[t]);return i}},41461:(e,t,i)=>{i.d(t,{E:()=>r});let r={“&:hover:not([disabled])”:{textDecoration:”none”},”&:focus:not([disabled])”:{textDecoration:”none”},”&:active:not([disabled])”:{textDecoration:”none”}}},41462:(e,t,i)=>{i.d(t,{W:()=>o});var r=i(74848),a=i(81960);function o({as:e,text:t,…i}){return(0,r.jsx)(a.A,{as:e,className:”sr-only ScreenReaderHeading-module__userSelectNone–vlUbc”,”data-testid”:”screen-reader-heading”,…i,children:t})}try{o.displayName||(o.displayName=”ScreenReaderHeading”)}catch{}},41617:(e,t,i)=>{function r(e){return”blob”in e}function a(e){return r(e)&&”blame”in e}function o(e){return”deleteInfo”in e&&”webCommitInfo”in e}function n(e){return”editInfo”in e&&”webCommitInfo”in e}i.d(t,{fP:()=>s,KR:()=>a,mM:()=>r,iS:()=>o,di:()=>n,Hf:()=>l});let s={README:”readme”,CODE_OF_CONDUCT:”code_of_conduct”,CONTRIBUTING:”contributing”,LICENSE:”license”,SECURITY:”security”};function l(e){return”tree”in e}},49799:(e,t,i)=>{i.d(t,{r:()=>a});var r=i(74848);function a({width:e,…t}){return(0,r.jsx)(“div”,{style:{width:e},className:”Skeleton Skeleton–text”,…t,children:”\xa0″})}try{a.displayName||(a.displayName=”SkeletonText”)}catch{}},50731:(e,t,i)=>{i.d(t,{p:()=>a});var r=i(96540);function a(e){let t=(0,r.useRef)([]);for(let i of t.current)if(e===i||function e(t,i){if(t===i)return!0;if(“object”!=typeof t||typeof t!=typeof i||!t||!i)return!1;if(Array.isArray(t)){if(!Array.isArray(i)||t.length!==i.length)return!1;for(let r=0;r5&&t.current.pop(),e}},53419:(e,t,i)=>{let r;i.d(t,{BI:()=>f,Ti:()=>y,lA:()=>h,sX:()=>m});var a=i(70837),o=i(18679),n=i(82075),s=i(82518);let{getItem:l}=(0,n.A)(“localStorage”),c=”dimension_”,d=[“utm_source”,”utm_medium”,”utm_campaign”,”utm_term”,”utm_content”,”scid”];try{let e=(0,a.O)(“octolytics”);delete e.baseContext,r=new o.s(e)}catch{}function u(e){let t=(0,a.O)(“octolytics”).baseContext||{};if(t)for(let[e,i]of(delete t.app_id,delete t.event_url,delete t.host,Object.entries(t)))e.startsWith(c)&&(t[e.replace(c,””)]=i,delete t[e]);let i=document.querySelector(“meta[name=visitor-payload]”);for(let[e,r]of(i&&Object.assign(t,JSON.parse(atob(i.content))),new URLSearchParams(window.location.search)))d.includes(e.toLowerCase())&&(t[e]=r);return t.staff=(0,s.Xl)().toString(),Object.assign(t,e)}function h(e){r?.sendPageView(u(e))}function m(){return document.head?.querySelector(‘meta[name=”current-catalog-service”]’)?.content}function f(e,t={}){let i=m(),a=i?{service:i}:{};for(let[e,i]of Object.entries(t))null!=i&&(a[e]=`${i}`);r&&(u(a),r.sendEvent(e||”unknown”,u(a)))}function y(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,JSON.stringify(t)]))}},54571:(e,t,i)=>{i.d(t,{I:()=>n});var r=i(96540),a=i(88431),o=i(76629);function n(e,t,i=[]){let s=(0,r.useCallback)(e,i),l=(0,o.BP)(),c=(0,r.useRef)(l===o.O8.ClientRender),[d,u]=(0,r.useState)(()=>l===o.O8.ClientRender?s():t),h=(0,r.useCallback)(()=>{u(s)},[s]);return(0,a.N)(()=>{c.current||u(s),c.current=!1},[s,…i]),[d,h]}},55630:(e,t,i)=>{i.d(t,{A:()=>n});var r=i(74848),a=i(16522);function o(e){let t,i,o,n,s,l,c,d,u,h,m,f,y=(0,a.c)(26);if(y[0]!==e){let{size:r,as:a,icon:d,bg:u,”aria-label”:h,style:m,className:f,…p}=e;c=r,t=d,o=u,i=h,l=m,n=f,s=p,y[0]=e,y[1]=t,y[2]=i,y[3]=o,y[4]=n,y[5]=s,y[6]=l,y[7]=c}else t=y[1],i=y[2],o=y[3],n=y[4],s=y[5],l=y[6],c=y[7];let p=void 0===c?32:c;return y[8]!==o||y[9]!==p?(d={backgroundColor:o,overflow:”hidden”,borderWidth:0,borderRadius:”50%”,borderStyle:”solid”,borderColor:”var(–borderColor-default)”,width:p,height:p},y[8]=o,y[9]=p,y[10]=d):d=y[10],y[11]!==p||y[12]!==l?(u={display:”flex”,width:p,height:p,alignItems:”center”,justifyContent:”center”,…l},y[11]=p,y[12]=l,y[13]=u):u=y[13],y[14]!==t||y[15]!==i||y[16]!==p?(h=(0,r.jsx)(t,{size:p,”aria-label”:i}),y[14]=t,y[15]=i,y[16]=p,y[17]=h):h=y[17],y[18]!==n||y[19]!==s||y[20]!==u||y[21]!==h?(m=(0,r.jsx)(“div”,{style:u,className:n,…s,children:h}),y[18]=n,y[19]=s,y[20]=u,y[21]=h,y[22]=m):m=y[22],y[23]!==d||y[24]!==m?(f=(0,r.jsx)(“div”,{style:d,children:m}),y[23]=d,y[24]=m,y[25]=f):f=y[25],f}let n=o;try{o.displayName||(o.displayName=”CircleOcticon”)}catch{}},59775:(e,t,i)=>{i.d(t,{s:()=>u,e:()=>h});var r=i(74848),a=i(78314),o=i(41245),n=i(73017),s=i(88431),l=i(96459),c=i(96540),d=i(61526);function u({ref:e,onAnchorClick:t,richText:i,stickyHeaderHeight:u,sx:m,suppressHydrationWarning:f,className:y}){let{hash:p}=(0,d.zy)(),x=(0,a.t)(),N=(0,l.Z)(),b=(0,c.useRef)(null);return(0,c.useImperativeHandle)(e,()=>b.current),(0,c.useEffect)(()=>{let e=()=>{h(window.location.hash,u)};return window.addEventListener(“load”,e),window.addEventListener(“hashchange”,e),()=>{window.removeEventListener(“load”,e),window.removeEventListener(“hashchange”,e)}},[]),(0,s.N)(()=>{b?.current&&h(window.location.hash,u)},[p]),(0,r.jsx)(n.vb,{ref:b,className:`js-snippet-clipboard-copy-unpositioned ${y}`,html:i,sx:m,suppressHydrationWarning:f,”data-hpc”:!0,onClick:e=>{let i=e.metaKey||e.ctrlKey,r=e.target.closest(“a”);if(r&&r.href){if(!i){let t=r.href,i=new URL(t,window.location.origin);(0,o.A)(window.location.href,t)?(h(i.hash,u),window.location.hash===i.hash&&e.preventDefault()):t.startsWith(`${window.location.origin}/${x.ownerLogin}/${x.name}/`)&&(N(i.pathname+i.search+i.hash),e.preventDefault())}t?.(e)}}})}function h(e,t=125){var i;if(!e)return;let r=(function(e){try{return decodeURIComponent(e.slice(1))}catch{return””}})(e).toLowerCase(),a=r.startsWith(“user-content-“)?r:`user-content-${r}`,o=(i=document,””===a?null:i.getElementById(a)||i.getElementsByName(a)[0]||null);o&&document&&document.defaultView&&setTimeout(()=>{window.requestAnimationFrame(()=>{let e=o.getBoundingClientRect().top-document.body.getBoundingClientRect().top-t;window.scrollTo({top:e});let i=o.closest(“h1,h2,h3,h4,h5,h6,li,span”);i&&(i.focus(),i.setAttribute(“data-react-autofocus”,”true”))})},1)}try{u.displayName||(u.displayName=”SharedMarkdownContent”)}catch{}},60971:(e,t,i)=>{i.d(t,{L:()=>x});var r=i(74848),a=i(78314),o=i(25407),n=i(66108),s=i(41462),l=i(38621),c=i(56149),d=i(94236),u=i(21373),h=i(5524),m=i(96540),f=i(53552),y=i(6665);let p=”add-file-dropdown-portal-root”;function x({useDynamicSizing:e}){let{refInfo:t,path:i}=(0,f.eu)(),x=(0,a.t)(),{sendRepoClickEvent:N}=(0,y.T)(),b=(0,m.useRef)(null);return((0,m.useEffect)(()=>{b.current&&(0,c.cw)(b.current,p)},[]),t.canEdit)?(0,r.jsxs)(“div”,{ref:b,children:[(0,r.jsx)(s.W,{as:”h2″,text:”Add file”}),(0,r.jsxs)(d.W,{children:[(0,r.jsx)(d.W.Anchor,{children:(0,r.jsxs)(u.Q,{“aria-label”:”Add file”,children:[(0,r.jsxs)(“span”,{className:e?”react-directory-add-file-button”:void 0,children:[“Add file”,(0,r.jsx)(l.TriangleDownIcon,{})]}),e&&(0,r.jsx)(l.PlusIcon,{className:”react-directory-add-file-icon”})]})}),(0,r.jsx)(d.W.Overlay,{className:”AddFileDropdownButton-module__ActionMenu_Overlay–WxIUs”,portalContainerName:p,children:(0,r.jsxs)(h.l,{children:[(0,r.jsxs)(h.l.LinkItem,{as:n.N,onClick:()=>N(“NEW_FILE_BUTTON”),to:(0,o.IO9)({repo:x,path:i,commitish:t.name,action:”new”}),children:[(0,r.jsx)(h.l.LeadingVisual,{children:(0,r.jsx)(l.PlusIcon,{})}),”Create new file”]}),(0,r.jsxs)(h.l.LinkItem,{onClick:()=>N(“UPLOAD_FILES_BUTTON”),href:(0,o.IO9)({repo:x,path:i,commitish:t.name,action:”upload”}),children:[(0,r.jsx)(h.l.LeadingVisual,{children:(0,r.jsx)(l.UploadIcon,{})}),”Upload files”]})]})})]})]}):null}try{x.displayName||(x.displayName=”AddFileDropdownButton”)}catch{}},61282:(e,t,i)=>{i.d(t,{V:()=>m});var r=i(74848),a=i(16522),o=i(96540),n=i(38621),s=i(26108),l=i(21373),c=i(69726),d=i(57387),u=i(54571);let h=(0,o.lazy)(()=>Promise.all([i.e(3088),i.e(43934),i.e(82216),i.e(6488),i.e(42892),i.e(99418),i.e(30587),i.e(72471),i.e(55229),i.e(4712),i.e(3086),i.e(82081),i.e(51220),i.e(28546),i.e(42478),i.e(67602),i.e(26744),i.e(57026),i.e(18312),i.e(347),i.e(89332),i.e(16769),i.e(22993),i.e(25407),i.e(83494),i.e(83463),i.e(87670),i.e(40771),i.e(66990),i.e(29665),i.e(4817),i.e(91232),i.e(37294),i.e(2635),i.e(30721),i.e(99808),i.e(52302),i.e(81171),i.e(67071),i.e(41474),i.e(1631),i.e(10422),i.e(52643),i.e(59014)]).then(i.bind(i,68747)).then(e=>({default:e.NewAgentTaskButtonContent})));function m(e){let t,i,c,m,p,x,N=(0,a.c)(26),{isIconButton:b,icon:g,label:j,onOpen:k,onClose:w,setContentOpen:v,open:C,currentRepo:S,currentReference:A,hideRepoSelector:_,eventType:B,size:M,tooltipDirection:R,variant:F}=e,H=void 0===g?n.AgentIcon:g,T=void 0===j?”New agent session”:j,[L,I]=(0,o.useState)(!!C);N[0]===Symbol.for(“react.memo_cache_sentinel”)?(t=[],N[0]=t):t=N[0];let[D]=(0,u.I)(f,!0,t),E=(0,o.useRef)(null);N[1]!==k?(i=()=>{I(!0),k?.()},N[1]=k,N[2]=i):i=N[2];let W=i;N[3]!==w||N[4]!==v?(c=()=>{I(!1),w?.(),v?.(!1)},N[3]=w,N[4]=v,N[5]=c):c=N[5];let O=c,P=S?`${T} in ${S.ownerLogin}/${S.name}`:T;return N[6]!==W||N[7]!==H||N[8]!==b||N[9]!==T||N[10]!==M||N[11]!==R||N[12]!==F?(m=b?(0,r.jsx)(s.K,{ref:E,icon:H,”aria-label”:T,size:M,tooltipDirection:R,variant:F,onClick:W}):(0,r.jsx)(l.Q,{ref:E,onClick:W,leadingVisual:H,size:M,children:T}),N[6]=W,N[7]=H,N[8]=b,N[9]=T,N[10]=M,N[11]=R,N[12]=F,N[13]=m):m=N[13],N[14]!==A||N[15]!==S||N[16]!==P||N[17]!==B||N[18]!==O||N[19]!==_||N[20]!==L||N[21]!==D?(p=L&&!D&&(0,r.jsx)(d.l,{title:P,onClose:O,returnFocusRef:E,position:{narrow:”fullscreen”},children:(0,r.jsx)(d.l.Body,{className:”p-0″,children:(0,r.jsx)(o.Suspense,{fallback:(0,r.jsx)(y,{}),children:(0,r.jsx)(h,{currentRepo:S,currentReference:A,hideRepoSelector:_,setOpen:O,eventType:B})})})}),N[14]=A,N[15]=S,N[16]=P,N[17]=B,N[18]=O,N[19]=_,N[20]=L,N[21]=D,N[22]=p):p=N[22],N[23]!==m||N[24]!==p?(x=(0,r.jsxs)(r.Fragment,{children:[m,p]}),N[23]=m,N[24]=p,N[25]=x):x=N[25],x}function f(){return!1}function y(){let e,t=(0,a.c)(1);return t[0]===Symbol.for(“react.memo_cache_sentinel”)?(e=(0,r.jsx)(“div”,{className:”d-flex flex-column flex-items-center p-6″,children:(0,r.jsx)(c.A,{srText:”Loading\u2026″})}),t[0]=e):e=t[0],e}try{h.displayName||(h.displayName=”LazyNewAgentTaskButtonContent”)}catch{}try{m.displayName||(m.displayName=”NewAgentTaskButton”)}catch{}try{y.displayName||(y.displayName=”FallbackContent”)}catch{}},67941:(e,t,i)=>{i.d(t,{A:()=>u});var r=i(74848),a=i(73017),o=i(38621),n=i(26108),s=i(30093),l=i(61864),c=i(96540),d=i(59775);function u({onClose:e,toc:t}){let[i,u]=(0,c.useState)(“”),[h,m]=(0,c.useState)(“”),f=(0,c.useRef)(null);return((0,c.useEffect)(()=>{f.current?.focus()},[]),(0,c.useEffect)(()=>{let e=()=>{window.location.hash&&m(window.location.hash)};return e(),window.addEventListener(“hashchange”,e),()=>{window.removeEventListener(“hashchange”,e)}},[]),t)?(0,r.jsxs)(“section”,{“aria-labelledby”:”outline-id”,className:”TableOfContentsPanel-module__Box–ehst0″,children:[e?(0,r.jsxs)(“div”,{className:”d-flex flex-justify-between flex-items-center”,children:[(0,r.jsx)(“h3″,{id:”outline-id”,ref:f,className:”d-flex flex-justify-between flex-items-center f5 text-bold px-2″,tabIndex:-1,children:”Outline”}),(0,r.jsx)(n.K,{“aria-label”:”Close outline”,tooltipDirection:”sw”,className:”fgColor-muted”,icon:o.XIcon,onClick:e,variant:”invisible”})]}):null,t.length>=8?(0,r.jsx)(“div”,{className:”pt-3 px-2″,children:(0,r.jsx)(s.A,{leadingVisual:o.FilterIcon,placeholder:”Filter headings”,”aria-label”:”Filter headings”,className:”width-full”,onChange:e=>{u(e.target.value)}})}):null,(0,r.jsx)(l.c,{className:”TableOfContentsPanel-module__NavList–LnyCZ”,children:t.map(({level:e,htmlText:t,anchor:o},n)=>{let s;if(!t||i&&!t.toLowerCase().includes(i.toLowerCase()))return null;s=1===e?{fontWeight:”bold”}:{paddingLeft:`${(e-1)*16}px`};let c=`#${o}`;return(0,r.jsx)(l.c.Item,{“aria-current”:h===c?”page”:void 0,href:c,onClick:e=>{1===e.button||e.metaKey||e.ctrlKey||(h!==c&&(location.href=c),(0,d.e)(c),e.preventDefault())},children:(0,r.jsx)(a.vb,{sx:{…s},html:t})},`outline-${o}-${n}`)})})]}):null}try{u.displayName||(u.displayName=”TableOfContentsPanel”)}catch{}},68245:(e,t,i)=>{i.d(t,{_:()=>o,z:()=>s});var r=i(74848),a=i(16522);let o=(0,i(96540).createContext)(“handle”),n={NAME_HANDLE:”name_handle”,NAME_AND_HANDLE:”name_handle”,HANDLE:”handle”};function s(e){let t,i=(0,a.c)(3),{value:s,children:l}=e,c=s&&n[s.toUpperCase()]||”handle”;return i[0]!==l||i[1]!==c?(t=(0,r.jsx)(o,{value:c,children:l}),i[0]=l,i[1]=c,i[2]=t):t=i[2],t}try{o.displayName||(o.displayName=”UserNameDisplayContext”)}catch{}try{s.displayName||(s.displayName=”UserNameDisplayContextProvider”)}catch{}},71467:(e,t,i)=>{i.d(t,{A:()=>h});var r=i(74848),a=i(96379),o=i(38621),n=i(72511),s=i(73077),l=i(26108),c=i(96540),d=i(9281),u=i(34164);function h({showPublishActionBanner:e,releasePath:t,dismissActionNoticePath:i,className:h}){let[m,f]=(0,c.useState)(!1);return e?(0,r.jsxs)(n.A,{hidden:m,className:(0,u.$)(h,”PublishBanners-module__Flash–_jVGg”),children:[e&&(0,r.jsx)(“div”,{className:”flex-1″,children:”You can publish this Action to the GitHub Marketplace”}),(0,r.jsx)(s.z,{href:t,className:(0,u.$)(d.A[“code-view-link-button”],”f6 mr-2″),children:”Draft a release”}),(0,r.jsx)(l.K,{icon:o.XIcon,tooltipDirection:”s”,”aria-label”:”Dismiss”,className:”bgColor-transparent border-0 pr-0″,onClick:e?()=>{(0,a.DI)(i,{method:”POST”}),f(!0)}:()=>{}})]}):null}try{h.displayName||(h.displayName=”PublishBanners”)}catch{}},73017:(e,t,i)=>{i.d(t,{$6:()=>l,JR:()=>n,Jg:()=>d,vb:()=>o});var r=i(74848),a=i(12683);let o=u(a.az),n=u(a.EY),s=({ref:e,…t})=>(0,r.jsx)(“div”,{…t,ref:e});s.displayName=”Div”;let l=u(s),c=({ref:e,…t})=>(0,r.jsx)(“bdi”,{…t,ref:e});c.displayName=”Bdi”;let d=u(c);function u(e){let t=({html:t,…i})=>(0,r.jsx)(e,{…i,dangerouslySetInnerHTML:t?{__html:t}:void 0});return t.displayName=`SafeHTML${e.displayName||e.name}`,t}try{o.displayName||(o.displayName=”VerifiedHTMLBox”)}catch{}try{n.displayName||(n.displayName=”VerifiedHTMLText”)}catch{}try{l.displayName||(l.displayName=”VerifiedHTMLDiv”)}catch{}try{d.displayName||(d.displayName=”VerifiedHTMLBdi”)}catch{}},74459:(e,t,i)=>{i.d(t,{I6:()=>d,IL:()=>u,QU:()=>h});var r=i(74848),a=i(53552),o=i(78314),n=i(91547),s=i(38621),l=i(72511),c=i(10095);function d(){return h()?(0,r.jsx)(u,{className:”SpoofedCommitWarning-module__SpoofedCommitWarningBanner–MpTe3″}):null}function u({className:e}){return(0,r.jsxs)(l.A,{variant:”warning”,className:e,”data-testid”:”spoofed-commit-warning-banner”,children:[(0,r.jsx)(c.A,{icon:s.AlertIcon}),(0,r.jsx)(“span”,{children:”This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.”})]})}function h(){let e=(0,o.t)(),{refInfo:t,path:i}=(0,a.eu)(),[r]=(0,n.E)(e.ownerLogin,e.name,t.name,i);return r?.isSpoofed??!1}try{d.displayName||(d.displayName=”SpoofedCommitWarning”)}catch{}try{u.displayName||(u.displayName=”SpoofedCommitWarningBanner”)}catch{}},77430:(e,t,i)=>{i.d(t,{r:()=>s});var r=i(74848),a=i(71315),o=i(12683),n=i(96540);let s=(0,n.forwardRef)(function({src:e,size:t=20,sx:i,…s},l){let c=(0,n.useMemo)(()=>{let i=new URL(e,a.fV.origin);return i.searchParams.has(“size”)||i.searchParams.has(“s”)||i.searchParams.set(“size”,String(2*Number(t))),i.toString()},[e,t]);return(0,r.jsx)(o.eu,{src:c,size:t,”data-testid”:”github-avatar”,sx:i,…s,ref:l})});try{s.displayName||(s.displayName=”GitHubAvatar”)}catch{}},79059:(e,t,i)=>{i.d(t,{t:()=>U});var r=i(74848),a=i(10677),o=i(53552),n=i(78314),s=i(25407),l=i(41462),c=i(39467),d=i(96459),u=i(38621),h=i(69497),m=i(72511),f=i(84268),y=i(10095),p=i(96540),x=i(19357),N=i(26619),b=i(96379),g=i(19189),j=i(6426);function k({uploadUrl:e}){return(0,r.jsx)(“document-dropzone”,{children:(0,r.jsx)(“div”,{className:”repo-file-upload-tree-target js-upload-manifest-tree-view”,”data-testid”:”dragzone”,”data-drop-url”:e,”data-target”:”document-dropzone.dropContainer”,children:(0,r.jsx)(“div”,{className:”repo-file-upload-outline”,children:(0,r.jsxs)(“div”,{className:”repo-file-upload-slate”,children:[(0,r.jsx)(“div”,{className:”fgColor-muted”,children:(0,r.jsx)(u.FileIcon,{size:32})}),(0,r.jsx)(“h2”,{“aria-hidden”:”true”,children:”Drop to upload your files”})]})})})})}try{k.displayName||(k.displayName=”Dropzone”)}catch{}var w=i(66108),v=i(49799),C=i(73017),S=i(62935);let A={directory:”Directory”,submodule:”Submodule”,symlink_directory:”Symlink to directory”,symlink_file:”Symlink to file”};function _({item:e}){switch(e.contentType){case”directory”:return(0,r.jsx)(u.FileDirectoryFillIcon,{className:”icon-directory”});case”submodule”:case”symlink_directory”:return(0,r.jsx)(u.FileSubmoduleIcon,{className:”icon-directory”});case”symlink_file”:return(0,r.jsx)(u.FileSymlinkFileIcon,{className:”icon-directory”});default:return(0,r.jsx)(u.FileIcon,{className:”color-fg-muted”})}}function B({initialFocus:e,item:t,getItemUrl:i,onNavigate:a}){let o=i(t),n=t.hasSimplifiedPath?”This path skips through empty directories”:t.name;return”submodule”===t.contentType&&(o=t.submoduleUrl??o,a=e=>{e.preventDefault(),t.submoduleUrl&&(window.location.href=t.submoduleUrl)}),(0,r.jsx)(“div”,{className:”overflow-hidden”,children:(0,r.jsx)(“div”,{className:”react-directory-filename-cell”,children:(0,r.jsx)(“div”,{className:”react-directory-truncate”,children:(0,r.jsx)(w.N,{title:n,”aria-label”:`${t.name}, ${function({contentType:e}){return`(${A[e]||”File”})`}(t)}`,className:”symlink_directory”!==t.contentType&&”symlink_file”!==t.contentType?”Link–primary”:void 0,”data-react-autofocus”:!!e||null,onClick:a,to:o,children:(0,r.jsx)(M,{item:t})})})})})}function M({item:e}){return e.hasSimplifiedPath?(0,r.jsx)(r.Fragment,{children:e.name.split(“/”).map((e,t,i)=>{let a=t===i.length-1;return(0,r.jsx)(“span”,{className:a?””:”react-directory-default-color”,”data-testid”:”path-name-segment”,children:`${e}${a?””:”/”}`},t)})}):e.submoduleDisplayName?(0,r.jsx)(“span”,{style:{color:”var(–fgColor-accent, var(–color-accent-fg))”},children:e.submoduleDisplayName}):(0,r.jsx)(r.Fragment,{children:e.name})}function R({commit:e}){return e?e.shortMessageHtmlLink?(0,r.jsx)(“div”,{children:(0,r.jsx)(C.$6,{className:”react-directory-commit-message”,html:e.shortMessageHtmlLink})}):(0,r.jsx)(f.A,{className:”Link–secondary”,href:e.url,children:”No commit message”}):(0,r.jsx)(v.r,{})}function F({commit:e}){return e?.date?(0,r.jsx)(“div”,{className:”react-directory-commit-age”,children:Number.isNaN(Date.parse(e.date))?”Invalid date”:(0,r.jsx)(S.A,{datetime:e.date,tense:”past”})}):(0,r.jsx)(v.r,{})}try{_.displayName||(_.displayName=”IconCell”)}catch{}try{B.displayName||(B.displayName=”NameCell”)}catch{}try{M.displayName||(M.displayName=”ItemPathName”)}catch{}try{R.displayName||(R.displayName=”CommitMessageCell”)}catch{}try{F.displayName||(F.displayName=”CommitAgeCell”)}catch{}var H=i(34164);function T({children:e,className:t,…i}){return(0,r.jsx)(“table”,{className:(0,H.$)(“Table-module__Box–KyMHK”,t),…i,children:e})}let L=({children:e,className:t})=>(0,r.jsx)(“thead”,{className:(0,H.$)(t,”Table-module__Box_1–DkRqs”),children:(0,r.jsx)(“tr”,{className:”Table-module__Box_2–l1wjV”,children:e})}),I=({children:e,onClick:t,index:i,id:a})=>(0,r.jsx)(“tr”,{onClick:t,”data-index”:i,id:a,className:”Table-module__Box_3–CeioY”,children:e}),D=({children:e})=>(0,r.jsx)(“tfoot”,{className:”Table-module__Box_4–xPnSl”,children:e});try{T.displayName||(T.displayName=”Table”)}catch{}try{L.displayName||(L.displayName=”HeaderRow”)}catch{}try{I.displayName||(I.displayName=”Row”)}catch{}try{D.displayName||(D.displayName=”TableFooter”)}catch{}let E=({className:e,onClickHandler:t,index:i,item:a,initialFocus:o,getItemUrl:n,onNavigate:s,commit:l})=>(0,r.jsxs)(“tr”,{className:`react-directory-row ${e}`,onClick:t,id:`folder-row-${i}`,children:[(0,r.jsx)(“td”,{className:”react-directory-row-name-cell-small-screen”,colSpan:2,children:(0,r.jsxs)(“div”,{className:”react-directory-filename-column”,children:[(0,r.jsx)(_,{item:a}),(0,r.jsx)(B,{initialFocus:o,item:a,getItemUrl:n,onNavigate:s})]})}),(0,r.jsx)(“td”,{className:”react-directory-row-name-cell-large-screen”,colSpan:1,children:(0,r.jsxs)(“div”,{className:”react-directory-filename-column”,children:[(0,r.jsx)(_,{item:a}),(0,r.jsx)(B,{initialFocus:o,item:a,getItemUrl:n,onNavigate:s})]})}),(0,r.jsx)(“td”,{className:”react-directory-row-commit-cell”,children:(0,r.jsx)(R,{commit:l})}),(0,r.jsx)(“td”,{children:(0,r.jsx)(F,{commit:l})})]});function W({initialFocus:e,item:t,commit:i,onNavigate:a,getItemUrl:o,navigate:n,index:s,className:l}){let d=p.useCallback(e=>{window.innerWidth{window.innerWidth{n(s)},ref:i,rel:”nofollow”,to:t,className:”DirectoryRow-module__PrimerLink–MeWOM”,children:(0,r.jsxs)(“div”,{className:(0,H.$)(“width-full”,”DirectoryRow-module__Box–uM44V”),children:[(0,r.jsx)(y.A,{icon:u.FileDirectoryFillIcon,size:”small”,className:”DirectoryRow-module__Octicon–_lwmM”}),”..”]})})]})})}try{E.displayName||(E.displayName=”RowContent”)}catch{}try{W.displayName||(W.displayName=”WrappedDirectoryRow”)}catch{}try{O.displayName||(O.displayName=”DirectoryRow”)}catch{}try{P.displayName||(P.displayName=”GoDirectoryUpRow”)}catch{}function U({overview:e}){let t=(0,n.t)(),{refInfo:i,path:w}=(0,o.eu)(),{items:v,templateDirectorySuggestionUrl:C,totalCount:S}=(0,a.d)(),{items:A}=function(e,t){var i,r;let a,o=e.length>100,[n,s]=(0,p.useState)(o);i=()=>{n&&s(!1)},r=[n],a=(0,p.useCallback)(i,r),(0,p.useEffect)(()=>{let e=null,t=null;return t=requestAnimationFrame(()=>{e=setTimeout(()=>{a(),e=null},0),t=null}),()=>{e&&clearTimeout(e),t&&cancelAnimationFrame(t)}},[a]);let l=n?e.slice(0,100):e;return{truncated:n,items:l}}(v,0),[_,B]=p.useState(!!e),M=S-v.length,{commitInfo:R}=function(){let{refInfo:e,path:t}=(0,o.eu)(),i=(0,n.t)(),[r,a]=(0,p.useState)({loading:!0}),l=(0,N.Xl)(),c=(0,s.IO9)({repo:i,action:”tree-commit-info”,commitish:e.name,path:t});return(0,p.useEffect)(()=>{let e=!1;return(async()=>{a({loading:!0});let t=await (0,b.lS)(c);if(!e)try{t.ok?a({commitInfo:await t.json()}):(l({variant:”warning”,message:”Failed to load latest commit information.”}),a({error:!0}))}catch{a({error:!0})}})(),function(){e=!0}},[l,c]),r}(),F=w.length>1,E=(0,s.ylB)(w),W=(0,s.IO9)({repo:t,action:”tree”,commitish:i.name,path:E}),U=(0,s.IO9)({repo:t,commitish:i.name,path:w,action:”upload”}),q=p.useRef(null),{getItemUrl:$}=(0,g.Z)(),z=(0,d.Z)(),{focusHint:V}=(0,x.e)(),[K,G]=p.useState(-1),Q=p.useCallback(e=>{0===e.screenX&&0===e.screenY&&q.current?.focus()},[]),Y=p.useCallback(()=>{B(!1)},[]),X=p.useCallback(e=>{let t;G(e);let i=document.getElementById(`folder-row-${e}`);(t=window.innerWidth<=c.Gy.medium?i?.querySelector(".react-directory-row-name-cell-small-screen"):i?.querySelector(".react-directory-row-name-cell-large-screen"))||(t=i),t?.getElementsByTagName("a")[0]?.focus()},[]);return(0,r.jsxs)("div",{"data-hpc":!0,children:[(0,r.jsx)("button",{hidden:!0,"data-testid":"focus-next-element-button","data-hotkey":"j",onClick:()=>{X(Math.min(K+1,F?A.length:A.length-1))}}),(0,r.jsx)(“button”,{hidden:!0,”data-testid”:”focus-previous-element-button”,”data-hotkey”:”k”,onClick:()=>{X(Math.max(K-1,0))}}),(0,r.jsx)(l.W,{as:”h2″,text:”Folders and files”,id:”folders-and-files”}),(0,r.jsxs)(T,{“aria-labelledby”:”folders-and-files”,children:[(0,r.jsxs)(L,{className:(0,H.$)(e&&”DirectoryContent-module__OverviewHeaderRow–FlrUZ”),children:[(0,r.jsx)(“th”,{colSpan:2,className:”DirectoryContent-module__Box–y3Nvf”,children:(0,r.jsx)(“span”,{className:”text-bold”,children:”Name”})}),(0,r.jsx)(“th”,{colSpan:1,className:”DirectoryContent-module__Box_1–xeAhp”,children:(0,r.jsx)(“span”,{className:”text-bold”,children:”Name”})}),(0,r.jsx)(“th”,{className:”hide-sm”,children:(0,r.jsx)(h.A,{inline:!0,title:”Last commit message”,className:”width-fit”,children:(0,r.jsx)(“span”,{className:”text-bold”,children:”Last commit message”})})}),(0,r.jsx)(“th”,{colSpan:1,className:”DirectoryContent-module__Box_2–h912w”,children:(0,r.jsx)(h.A,{inline:!0,title:”Last commit date”,className:”width-fit”,children:(0,r.jsx)(“span”,{className:”text-bold”,children:”Last commit date”})})})]}),(0,r.jsxs)(“tbody”,{children:[!!e&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(“tr”,{className:”DirectoryContent-module__Box_3–zI0N1″,children:(0,r.jsx)(“td”,{colSpan:3,className:”bgColor-muted p-1 rounded-top-2″,children:(0,r.jsx)(j.S,{commitCount:e?.commitCount})})}),M>0?(0,r.jsx)(“tr”,{children:(0,r.jsx)(“td”,{colSpan:3,children:(0,r.jsxs)(m.A,{variant:”warning”,className:”rounded-0″,children:[(0,r.jsx)(y.A,{icon:u.AlertIcon}),”Sorry, we had to truncate this directory to 1,000 files. “,M,” entries were omitted from the list.”]})})}):null]}),F&&(0,r.jsx)(P,{initialFocus:!V||!A.some(e=>e.path===V),linkTo:W,linkRef:q,navigate:z}),A.map((e,t)=>(0,r.jsx)(O,{initialFocus:e.path===V,item:e,commit:(R||{})[e.name],onNavigate:Q,getItemUrl:$,navigate:z,className:_&&t>=10?”truncate-for-mobile”:void 0,index:F?t+1:t},e.name)),(0,r.jsx)(“tr”,{className:(0,H.$)(_&&A.length>10?”show-for-mobile”:”d-none”,”DirectoryContent-module__Box_4–QyUbd”),”data-testid”:”view-all-files-row”,children:(0,r.jsx)(“td”,{colSpan:3,onClick:Y,className:”DirectoryContent-module__Box_5–OJZQU”,children:(0,r.jsx)(“div”,{children:(0,r.jsx)(f.A,{as:”button”,onClick:Y,children:”View all files”})})})})]}),C&&(0,r.jsx)(D,{children:(0,r.jsx)(I,{children:(0,r.jsxs)(“td”,{colSpan:3,children:[“Customize the issue creation experience with a “,(0,r.jsx)(“code”,{children:”config.yml”}),” file.”,” “,(0,r.jsx)(f.A,{inline:!0,href:C,children:”Learn more about configuring a template chooser.”})]})})})]}),t.currentUserCanPush&&(0,r.jsx)(k,{uploadUrl:U})]})}try{U.displayName||(U.displayName=”DirectoryContent”)}catch{}},79739:(e,t,i)=>{i.d(t,{D:()=>f});var r=i(74848),a=i(53552),o=i(78314),n=i(25407),s=i(38621),l=i(73077),c=i(72579),d=i(84268),u=i(10095),h=i(9281),m=i(34164);function f(e){let t=(0,o.t)(),{refInfo:i,path:c}=(0,a.eu)();return(0,r.jsx)(“div”,{className:”CodeViewError-module__Box–ThnZK”,children:(0,r.jsxs)(“div”,{className:”d-flex flex-column flex-justify-center flex-items-center border rounded-2 px-6 py-7″,children:[(0,r.jsx)(u.A,{icon:s.AlertIcon,className:”fgColor-muted mb-2″,size:20}),(0,r.jsx)(y,{…e}),(c||!i.currentOid)&&(0,r.jsx)(l.z,{type:”button”,className:(0,m.$)(“mt-4”,h.A[“code-view-link-button”]),variant:”primary”,”aria-label”:i.currentOid?”go to Overview”:”go to default branch”,href:i.currentOid?(0,n.Do2)(t):(0,n.xlN)(t),children:i.currentOid?”Return to the repository overview”:”Go to default branch”})]})})}function y({httpStatus:e,type:t}){return(0,r.jsxs)(“div”,{className:”d-flex flex-column flex-items-center gap-1 text-center”,children:[(0,r.jsx)(“div”,{className:”f2 fgColor-default text-bold”,children:404===e?”404 – page not found”:”Error loading page”}),404===e?(0,r.jsx)(p,{}):(0,r.jsx)(x,{httpStatus:e,type:t})]})}function p(){let e=(0,o.t)(),{path:t,refInfo:i}=(0,a.eu)();return i.currentOid?(0,r.jsxs)(“div”,{className:”d-flex flex-wrap flex-justify-center fgColor-muted”,”data-testid”:”eror-404-description”,children:[“The\xa0″,(0,r.jsx)(c.A,{as:”p”,className:”mb-0″,children:i.name}),”\xa0branch of\xa0″,(0,r.jsx)(“p”,{className:”text-bold mb-0″,children:e.name}),”\xa0does not contain the path\xa0″,(0,r.jsxs)(“p”,{className:”text-bold mb-0″,children:[t,”.”]})]}):(0,r.jsxs)(“div”,{className:”d-flex flex-wrap flex-justify-center fgColor-muted”,”data-testid”:”error-404-description”,children:[“Cannot find a valid ref in\xa0″,(0,r.jsx)(c.A,{as:”p”,className:”mb-0″,children:i.name})]})}function x({httpStatus:e,type:t}){let i=e?` ${e} error`:”error”;return”fetchError”===t?(0,r.jsx)(“div”,{className:”f5 fgColor-muted”,”data-testid”:”fetch-error-description”,children:”It looks like your internet connection is down. Please check it.”}):(0,r.jsxs)(“div”,{className:”f5 fgColor-muted”,”data-testid”:”default-error-description”,children:[“An unexpected “,i,” occured. Try”,(0,r.jsx)(d.A,{inline:!0,onClick:()=>window.location.reload(),children:”\xa0reloading the page.”},”reload-page”)]})}try{f.displayName||(f.displayName=”CodeViewError”)}catch{}try{y.displayName||(y.displayName=”ErrorText”)}catch{}try{p.displayName||(p.displayName=”DescriptionText404″)}catch{}try{x.displayName||(x.displayName=”DefaultDescriptionText”)}catch{}},80780:(e,t,i)=>{i.d(t,{V3:()=>c,_y:()=>l,wk:()=>s});var r=i(54571),a=i(39111);let o={cursorNavigationHopWordLeft:{hotkey:”Alt+ArrowLeft,Ctrl+ArrowLeft”,useWhileBlobFocused:!0,noModifierHotkey:[“ArrowLeft”],modifierRequired:!0},cursorNavigationHopWordRight:{hotkey:”Alt+ArrowRight,Ctrl+ArrowRight”,useWhileBlobFocused:!0,noModifierHotkey:[“ArrowRight”],modifierRequired:!0},cursorNavigationTopOfPage:{hotkey:”Meta+ArrowUp”,useWhileBlobFocused:!0,noModifierHotkey:[“ArrowUp”],modifierRequired:!0},cursorNavigationBottomOfPage:{hotkey:”Meta+ArrowDown”,useWhileBlobFocused:!0,noModifierHotkey:[“ArrowDown”],modifierRequired:!0},cursorNavigationEnd:{hotkey:”End,Meta+ArrowRight”,useWhileBlobFocused:!0,noModifierHotkey:[“End”]},cursorNavigationHome:{hotkey:”Home,Meta+ArrowLeft”,useWhileBlobFocused:!0,noModifierHotkey:[“Home”]},cursorNavigationPageUp:{hotkey:”PageUp”,useWhileBlobFocused:!0,noModifierHotkey:[“PageUp”]},cursorNavigationPageDown:{hotkey:”PageDown”,useWhileBlobFocused:!0,noModifierHotkey:[“PageDown”]},cursorNavigationArrowDown:{hotkey:”ArrowDown”,useWhileBlobFocused:!0,noModifierHotkey:[“ArrowDown”]},cursorNavigationArrowUp:{hotkey:”ArrowUp”,useWhileBlobFocused:!0,noModifierHotkey:[“ArrowUp”]},cursorNavigationArrowLeft:{hotkey:”ArrowLeft”,useWhileBlobFocused:!0,noModifierHotkey:[“ArrowLeft”]},cursorNavigationArrowRight:{hotkey:”ArrowRight”,useWhileBlobFocused:!0,noModifierHotkey:[“ArrowRight”]},cursorNavigationShiftHopWordLeft:{hotkey:”Alt+Shift+ArrowLeft,Ctrl+Shift+ArrowLeft”,useWhileBlobFocused:!0,noModifierHotkey:[“ArrowLeft”],modifierRequired:!0},cursorNavigationShiftHopWordRight:{hotkey:”Alt+Shift+ArrowRight,Ctrl+Shift+ArrowRight”,useWhileBlobFocused:!0,noModifierHotkey:[“ArrowRight”],modifierRequired:!0},cursorNavigationShiftTopOfPage:{hotkey:”Meta+Shift+ArrowUp”,useWhileBlobFocused:!0,noModifierHotkey:[“ArrowUp”],modifierRequired:!0},cursorNavigationShiftBottomOfPage:{hotkey:”Meta+Shift+ArrowDown”,useWhileBlobFocused:!0,noModifierHotkey:[“ArrowDown”],modifierRequired:!0},cursorNavigationShiftEnd:{hotkey:”Shift+End,Meta+Shift+ArrowRight”,useWhileBlobFocused:!0,noModifierHotkey:[“End”],modifierRequired:!0},cursorNavigationShiftHome:{hotkey:”Shift+Home,Meta+Shift+ArrowLeft”,useWhileBlobFocused:!0,noModifierHotkey:[“Home”],modifierRequired:!0},cursorNavigationShiftPageUp:{hotkey:”Shift+PageUp”,useWhileBlobFocused:!0,noModifierHotkey:[“PageUp”],modifierRequired:!0},cursorNavigationShiftPageDown:{hotkey:”Shift+PageDown”,useWhileBlobFocused:!0,noModifierHotkey:[“PageDown”],modifierRequired:!0},cursorNavigationShiftArrowDown:{hotkey:”Shift+ArrowDown”,useWhileBlobFocused:!0,noModifierHotkey:[“ArrowDown”],modifierRequired:!0},cursorNavigationShiftArrowUp:{hotkey:”Shift+ArrowUp”,useWhileBlobFocused:!0,noModifierHotkey:[“ArrowUp”],modifierRequired:!0},cursorNavigationShiftArrowLeft:{hotkey:”Shift+ArrowLeft”,useWhileBlobFocused:!0,noModifierHotkey:[“ArrowLeft”],modifierRequired:!0},cursorNavigationShiftArrowRight:{hotkey:”Shift+ArrowRight”,useWhileBlobFocused:!0,noModifierHotkey:[“ArrowRight”],modifierRequired:!0},cursorNavigationHighlightLine:{text:”J”,hotkey:”Shift+J”,useWhileBlobFocused:!0,noModifierHotkey:[“J”],modifierRequired:!0},cursorNavigationGoLineUp:{hotkey:”Ctrl+p”,useWhileBlobFocused:!0,noModifierHotkey:[“p”],modifierRequired:!0},cursorNavigationOpenHelpDialog:{hotkey:”Alt+F1,Control+Alt+\u02D9,Control+Alt+h”,useWhileBlobFocused:!0,noModifierHotkey:[“F1″,”h”,”\u02D9″],modifierRequired:!0},cursorNavigationGoLineDown:{hotkey:”Ctrl+n”,useWhileBlobFocused:!0,noModifierHotkey:[“n”],modifierRequired:!0},cursorNavigationEnter:{text:”\u2318 Enter”,hotkey:”Meta+Enter”,useWhileBlobFocused:!0,noModifierHotkey:[“Enter”],modifierRequired:!0},cursorNavigationSpace:{hotkey:” “,useWhileBlobFocused:!0,noModifierHotkey:[” “],modifierRequired:!1},cursorNavigationShiftSpace:{hotkey:”Shift+ “,useWhileBlobFocused:!0,noModifierHotkey:[” “],modifierRequired:!0},expandAndFocusLineContextMenu:{text:”Shift Alt C”,hotkey:”Alt+Shift+C,Alt+Shift+\xc7″,useWhileBlobFocused:!0,noModifierHotkey:[“C”],modifierRequired:!0},copyFilePathShortcut:{text:”\u2318 shift .”,hotkey:”Meta+Shift+>”,useWhileBlobFocused:!0,noModifierHotkey:[“.”],modifierRequired:!0},copyPermalinkShortcut:{text:”\u2318 shift ,”,hotkey:”Meta+Shift+<",useWhileBlobFocused:!0,noModifierHotkey:[","],modifierRequired:!0},copyRawContentShortcut:{text:"\u2318 shift c",hotkey:"Meta+Shift+C",useWhileBlobFocused:!0,noModifierHotkey:["c"],modifierRequired:!0},downloadRawContentShortcut:{text:"\u2318 shift s",hotkey:"Meta+Shift+S",useWhileBlobFocused:!0,noModifierHotkey:["s"],modifierRequired:!0},editFileShortcut:{hotkey:"e,Shift+E",useWhileBlobFocused:!0,noModifierHotkey:["e","E"]},goToLineShortcut:{text:"l",hotkey:"l,Shift+L",ariaKeyShortcuts:"l",useWhileBlobFocused:!0,noModifierHotkey:["l","L"]},alternativeGoToLineShortcut:{hotkey:"Mod+Alt+g",ariaKeyShortcuts:"Mod+Alt+g",useWhileBlobFocused:!0,noModifierHotkey:["g","G"]},findInFileShortcut:{hotkey:"Meta+f, F3",text:"\u2318 f",ariaKeyShortcuts:"Meta+F",useWhileBlobFocused:!0,noModifierHotkey:["f","F3"],modifierRequired:!0},findFilesShortcut:{hotkey:"t,Shift+T",useWhileBlobFocused:!0,noModifierHotkey:["t","T"]},findSelectionShortcut:{hotkey:"Meta+e",useWhileBlobFocused:!0,noModifierHotkey:["e"],modifierRequired:!0},findNextShortcut:{hotkey:"Mod+g"},findPrevShortcut:{hotkey:"Mod+Shift+G"},openWithGitHubDevShortcut:{hotkey:"., Meta+Shift+/",useWhileBlobFocused:!0,noModifierHotkey:["."]},openWithGitHubDevInNewWindowShortcut:{hotkey:"Shift+.,Shift+>,>”,useWhileBlobFocused:!0,noModifierHotkey:[“>”]},permalinkShortcut:{hotkey:”y,Shift+Y”,useWhileBlobFocused:!0,noModifierHotkey:[“y”,”Y”]},searchShortcut:{hotkey:”/”,useWhileBlobFocused:!0,noModifierHotkey:[“/”]},selectAllShortcut:{hotkey:”Meta+a”,useWhileBlobFocused:!0,noModifierHotkey:[“a”],modifierRequired:!0},selectEditTabShortcut:{hotkey:”Mod+Shift+P”},submitCommitDialogShortcut:{hotkey:”Mod+Enter”},refSelectorShortcut:{hotkey:”w”,text:”w”,useWhileBlobFocused:!0,noModifierHotkey:[“w”]},escapeRightClickMenu:{hotkey:”Escape”,useWhileBlobFocused:!0,noModifierHotkey:[“Escape”]},toggleFocusedPaneShortcut:{hotkey:”Meta+F6,Meta+Shift+F6″,useWhileBlobFocused:!0,noModifierHotkey:[“F6″],modifierRequired:!0},toggleSymbolsShortcut:{hotkey:”Meta+i”,useWhileBlobFocused:!0,noModifierHotkey:[“i”],modifierRequired:!0},toggleTreeShortcut:{hotkey:”Meta+b”,useWhileBlobFocused:!0,noModifierHotkey:[“b”],modifierRequired:!0},viewBlameShortcut:{hotkey:”b,Shift+B,Meta+/ Meta+b”,useWhileBlobFocused:!0,noModifierHotkey:[“b”]},viewCodeShortcut:{hotkey:”Meta+/ Meta+c”,useWhileBlobFocused:!0,modifierRequired:!0},viewPreviewShortcut:{hotkey:”Meta+/ Meta+p”},viewRawContentShortcut:{text:”\u2318 / \u2318 r”,hotkey:”Meta+/ Meta+r”,useWhileBlobFocused:!0,noModifierHotkey:[“r”],modifierRequired:!0},findSymbolShortcut:{hotkey:”r,Shift+R”,useWhileBlobFocused:!0,noModifierHotkey:[“r”,”R”],modifierRequired:!1}},n=new Map;function s(){let e=(0,a.X)([“mac”]),[t]=(0,r.I)(()=>!1,!0,[]),i=0;if(e?i=1:t||(i=2),!n.has(i)){var s,l;let r=o;e||t||(r=Object.keys(s=r).reduce((e,t)=>{let i=s[t];return e[t]={hotkey:i.hotkey?.replace(/Meta/g,”Control”),text:i.text?.replace(/\u2318/g,”Ctrl”).replace(/\u21e7/g,”Shift”),ariaKeyShortcuts:i.ariaKeyShortcuts?.replace(/Meta/g,”Control”),useWhileBlobFocused:i.useWhileBlobFocused,modifierRequired:i.modifierRequired,noModifierHotkey:i.noModifierHotkey},e},{})),t&&(r=Object.keys(l=r).reduce((e,t)=>{let i=l[t];return e[t]={hotkey:void 0,text:i.text?.replace(/\u2318/g,”Ctrl”).replace(/\u21e7/g,”Shift”),ariaKeyShortcuts:i.ariaKeyShortcuts?.replace(/Meta/g,”Control”),useWhileBlobFocused:i.useWhileBlobFocused,modifierRequired:i.modifierRequired,noModifierHotkey:i.noModifierHotkey},e},{})),n.set(i,r)}return n.get(i)}function l(){let e=s();return Object.keys(e).reduce((t,i)=>{let r=e[i];if(r.useWhileBlobFocused&&r.noModifierHotkey&&r.modifierRequired)for(let e of r.noModifierHotkey)t.includes(e)||t.push(e);return t},[])}function c(){let e=s();return Object.keys(e).reduce((t,i)=>{let r=e[i];if(r.useWhileBlobFocused&&r.noModifierHotkey&&!r.modifierRequired)for(let e of r.noModifierHotkey)t.includes(e)||t.push(e);return t},[])}},83025:(e,t,i)=>{i.d(t,{l:()=>l});var r=i(74848),a=i(96459),o=i(38621),n=i(12683),s=i(80780);function l({editPath:e,editTooltip:t,customSx:i}){let{editFileShortcut:l}=(0,s.wk)(),c=(0,a.Z)();return e?(0,r.jsx)(n.K0,{icon:o.PencilIcon,sx:{…i},”aria-label”:t,onClick:()=>{c(e)},”data-hotkey”:l.hotkey,size:”small”,title:t,variant:”invisible”}):null}try{l.displayName||(l.displayName=”EditButton”)}catch{}},91547:(e,t,i)=>{i.d(t,{E:()=>h,q:()=>u});var r=i(5225),a=i(25407),o=i(82591),n=i(96379),s=i(96540);async function l(e){let t=await (0,n.lS)(e);return t.ok?await t.json():void 0}let c=new Map,d=(0,r.A)(l,{cache:c});function u(){c.clear()}function h(e,t,i,r){let[n,l]=(0,s.useState)(),[c,h]=(0,s.useState)(!1),[m,f]=(0,s.useState)(!0),y=t&&e&&i&&r?(0,a.IO9)({repo:{name:t,ownerLogin:e},commitish:i,action:”latest-commit”,path:r}):null;return(0,s.useEffect)(()=>{let e=new AbortController;return document.addEventListener(o.z.START,u,{signal:e.signal}),()=>{e.abort()}},[]),(0,s.useEffect)(()=>{let e=!1;return(async()=>{if(!y)return;h(!1),f(!0),l(void 0);let t=await d(y);if(!e){try{t?l(t):h(!0)}catch{h(!0)}f(!1)}})(),function(){e=!0}},[y,i]),[n,m,c]}},93753:(e,t,i)=>{i.d(t,{R:()=>h});var r=i(74848),a=i(78314),o=i(25407),n=i(66990),s=i(43258),l=i(96540),c=i(53552),d=i(80780),u=i(6665);function h({size:e,buttonClassName:t,allowResizing:i,idEnding:h}){let m=(0,a.t)(),{refInfo:f,path:y,action:p}=(0,c.eu)(),x=function(){let{addToast:e}=(0,s.Y6)();return(0,l.useCallback)(t=>e({type:”error”,message:t}),[e])}(),{sendRepoClickEvent:N}=(0,u.T)(),{refSelectorShortcut:b}=(0,d.wk)();return(0,r.jsx)(n.PI,{currentCommitish:f.name,defaultBranch:m.defaultBranch,owner:m.ownerLogin,repo:m.name,canCreate:m.currentUserCanPush,cacheKey:f.listCacheKey,selectedRefType:f.refType,getHref:e=>`${(0,o.IO9)({repo:m,commitish:e,action:p,path:y})}${window.location.search}`,hotKey:b.hotkey,onBeforeCreate:e=>N(“REF_SELECTOR_MENU.CREATE_BRANCH”,{ref_name:e}),onCreateError:x,onOpenChange:e=>e&&N(“REF_SELECTOR_MENU”),size:e,buttonClassName:t,allowResizing:i,idEnding:h||”repos-header-ref-selector”,useFocusZone:!0})}try{h.displayName||(h.displayName=”ReposHeaderRefSelector”)}catch{}}}]); //# sourceMappingURL=10288-4feb3eabd85f.js.map