performance.mark("js-parse-end:35920-3f8fe867144bd8e9.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["35920"],{34349(e,t,o){o.d(t,{BX:()=>n,D7:()=>m,HS:()=>d,Oc:()=>c,Tv:()=>f,Xr:()=>i,Y4:()=>g,f7:()=>u,fD:()=>p,qR:()=>a,se:()=>_,vW:()=>h});class n extends Event{payload;constructor(e){super("open-copilot-chat",{bubbles:!1,cancelable:!0}),this.payload=e}}Event;class r extends Event{reference;openPanel;id;constructor(e,t=!1,o){super("add-copilot-chat-reference",{bubbles:!1,cancelable:!0}),this.reference=e,this.openPanel=t,this.id=o}}class i extends Event{context;constructor(e){super("symbol-changed",{bubbles:!1,cancelable:!0}),this.context=e}}class l extends Event{payload;constructor(e){super("update-copilot-suggestions-context",{bubbles:!1,cancelable:!0}),this.payload=e}}class s extends Event{constructor(){super("preload-copilot-chat",{bubbles:!1,cancelable:!0})}}function a(e){window.dispatchEvent(new n(e))}function c(e,t=!1,o){window.dispatchEvent(new r(e,t,o))}function d(e){return window.addEventListener("open-copilot-chat",e),()=>{window.removeEventListener("open-copilot-chat",e)}}function u(e){return window.addEventListener("add-copilot-chat-reference",e),()=>{window.removeEventListener("add-copilot-chat-reference",e)}}function p(e){return window.addEventListener("search-copilot-chat",e),()=>{window.removeEventListener("search-copilot-chat",e)}}function f(e){return window.addEventListener("symbol-changed",e),()=>{window.removeEventListener("symbol-changed",e)}}function h(e){window.dispatchEvent(new l(e))}function _(e){return window.addEventListener("update-copilot-suggestions-context",e),()=>{window.removeEventListener("update-copilot-suggestions-context",e)}}function m(){window.dispatchEvent(new s)}function g(e){return window.addEventListener("preload-copilot-chat",e),()=>{window.removeEventListener("preload-copilot-chat",e)}}},20331(e,t,o){o.d(t,{C6:()=>i,II:()=>n,UH:()=>c,Wp:()=>d,hs:()=>s,mF:()=>a,wh:()=>r,xP:()=>l});let n={Ask:"Ask",Agent:"Agent",CreateIssue:"Create issue",Loops:"Loops",Spark:"Spark"},r={explain:"explain",conversation:"conversation",suggest:"suggest",discussFileDiff:"discuss-file-diff",explainFileDiff:"explain-file-diff",reviewPr:"review-pull-request",actionsAgent:"actions-agent"},i=["exception","filtered","publicCode","contentTooLarge","rateLimit","agentUnauthorized","agentRequest","networkError","multipleAgentsAttempt","quotaExceeded","billingNotConfigured"],l=["bing-search","codesearch","semantic-code-search","lexical-code-search","lexical-code-search-githubread","kb-search","getfile","getfilechanges","getdiscussion","get-actions-job-logs","getalert","planskill","get-github-data","support-search","get-figma","codesearchagentskill","github-draft-issue_draft-issue","github-draft-issue_existing-issue","github-draft-issue_repository-metadata","github-draft-issue_get-issues","github-coding-agent","github-coding-agent-immersive","github-deep-research","github-deep-research-immersive","load_ability"],s={Experiments:"experiements",Prompt:"prompt",None:"none"},a={Unlicensed:"unlicensed",LicensedFull:"licensed_full",LicensedLimited:"licensed_limited"},c={IndividualFree:"free",IndividualMax:"max",IndividualPro:"pro",IndividualProPlus:"pro_plus",IndividualStudent:"edu",Business:"business",Enterprise:"enterprise"},d="NULL_MESSAGE"},54242(e,t,o){o.d(t,{d:()=>s,t:()=>a});var n=o(74848),r=o(16522),i=o(96540);let l=i.createContext({});function s(e){let t,o=(0,r.c)(3),{repository:i,children:s}=e;return o[0]!==s||o[1]!==i?(t=(0,n.jsxs)(l,{value:i,children:[" ",s," "]}),o[0]=s,o[1]=i,o[2]=t):t=o[2],t}function a(){return i.use(l)}l.displayName="CurrentRepositoryContext",s.displayName="CurrentRepositoryProvider"},16197(e,t,o){o.d(t,{U:()=>i});let n=e=>{let t=getComputedStyle(e,null);return!!t&&"function"==typeof t.getPropertyValue&&["overflow","overflow-y","overflow-x"].some(e=>{let o=t.getPropertyValue(e);return"auto"===o||"scroll"===o})},r=(e,t)=>e&&null!==e.parentNode?r(e.parentNode,t.concat([e])):t;function i(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(let t of r(e.parentNode,[]))if((t instanceof HTMLElement||t instanceof SVGElement)&&n(t))return t;return document.scrollingElement||document.documentElement}}},8045(e,t,o){o.d(t,{k:()=>s});var n=o(74848),r=o(51581),i=o(77052),l=o(96540);function s(){let[e,t]=(0,l.useState)(!1),{sendAnalyticsEvent:o}=(0,r.s)(),s=(0,l.useCallback)(e=>{t(!0);let n=e.detail?.errors||[];o("issues.stale_cache_warning.shown",void 0,{errorCount:n.length,errors:JSON.stringify(n)})},[o]);return((0,l.useEffect)(()=>(window.addEventListener("stale-cache-warning",s),()=>{window.removeEventListener("stale-cache-warning",s)}),[s]),e)?(0,n.jsx)("div",{style:{marginTop:"var(--base-size-16)",marginBottom:"var(--base-size-24)",marginInline:"var(--base-size-16)"},children:(0,n.jsx)(i.l,{variant:"warning",title:"Stale cache warning",hideTitle:!0,description:(0,n.jsxs)(n.Fragment,{children:["Failed to fetch data,"," ",(0,n.jsx)("button",{onClick:()=>{window.location.reload()},style:{background:"none",border:"none",padding:0,color:"inherit",textDecoration:"underline",cursor:"pointer",font:"inherit"},children:"click here to reload the page"}),"."]}),"aria-live":"polite","aria-atomic":"true"})}):null}s.displayName="StaleCacheBanner"},42243(e,t,o){o.d(t,{g:()=>s});var n=o(74848),r=o(16522),i=o(7478),l=o(38621);function s(e){let t,o,s,a=(0,r.c)(5),{animated:c}=e,d=void 0===c||c;return a[0]!==d?(t=d?(0,n.jsx)(i.A,{size:"small"}):(0,n.jsx)(l.CircleIcon,{size:"small",className:"CheckSpinner-module__staticSpinner__LhpPL"}),a[0]=d,a[1]=t):t=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)("div",{className:"CheckSpinner-module__spinnerWrapper__aoIdx",children:(0,n.jsx)("div",{className:"CheckSpinner-module__spinnerInner__ewIfz"})}),a[2]=o):o=a[2],a[3]!==t?(s=(0,n.jsxs)("div",{className:"CheckSpinner-module__checksSpinnerWrapper__qfgfz",children:[t,o]}),a[3]=t,a[4]=s):s=a[4],s}s.displayName="CheckSpinner"},57368(e,t,o){o.d(t,{d:()=>i});var n=o(74848),r=o(16522);function i(e){let t,o,i,l,s,a=(0,r.c)(14),{progress:c,radius:d,isSuccess:u}=e,p=void 0===d?11:d,f=2*p+2,h=2*p+2;a[0]===Symbol.for("react.memo_cache_sentinel")?(t={transform:"rotate(-90deg)"},a[0]=t):t=a[0],a[1]!==p?(o=(0,n.jsx)("circle",{stroke:"var(--borderColor-default, var(--color-border-default))",strokeWidth:"2",fill:"transparent",cx:"50%",cy:"50%",r:p}),a[1]=p,a[2]=o):o=a[2],a[3]===Symbol.for("react.memo_cache_sentinel")?(i={transition:"stroke-dashoffset 0.35s"},a[3]=i):i=a[3];let _=void 0!==u&&u?"var(--fgColor-done, var(--color-done-fg))":"var(--fgColor-default, var(--color-fg-default))",m=2*Math.PI*p,g=2*Math.PI*p*(1-c);return a[4]!==p||a[5]!==g||a[6]!==_||a[7]!==m?(l=(0,n.jsx)("circle",{style:i,stroke:_,strokeWidth:"2",strokeDasharray:m,strokeDashoffset:g,strokeLinecap:"round",fill:"transparent",cx:"50%",cy:"50%",r:p}),a[4]=p,a[5]=g,a[6]=_,a[7]=m,a[8]=l):l=a[8],a[9]!==l||a[10]!==f||a[11]!==h||a[12]!==o?(s=(0,n.jsxs)("svg",{width:f,height:h,"data-target":"tracked-issues-progress.progress","data-circumference":"38",style:t,"aria-hidden":"true",focusable:"false",children:[o,l]}),a[9]=l,a[10]=f,a[11]=h,a[12]=o,a[13]=s):s=a[13],s}i.displayName="PercentageCircle"},76331(e,t,o){o.d(t,{m:()=>m});var n=o(74848),r=o(16522),i=o(29941),l=o(96540),s=o(56149),a=o(34164);let c={n:"ControlledTooltip-module__tooltippedN__KIj7h",s:"ControlledTooltip-module__tooltippedS__JL_qv",e:"ControlledTooltip-module__tooltippedE__oIBoq",w:"ControlledTooltip-module__tooltippedW__aMYMo",ne:"ControlledTooltip-module__tooltippedNe__gVDNf",nw:"ControlledTooltip-module__tooltippedNw__irSZE",se:"ControlledTooltip-module__tooltippedSe__OyhVh",sw:"ControlledTooltip-module__tooltippedSw__me2O2"},d={left:"ControlledTooltip-module__tooltippedAlignLeft2__F4iA8",right:"ControlledTooltip-module__tooltippedAlignRight2__gd5yl"},u=()=>()=>void 0,p=()=>!1,f=()=>!0;function h(e){let t,o,i,h,_,m,g,v,b,w,x,y,E,C,S=(0,r.c)(29);S[0]!==e?({ref:h,direction:m,className:o,text:b,noDelay:i,align:t,wrap:w,open:g,portalProps:v,..._}=e,S[0]=e,S[1]=t,S[2]=o,S[3]=i,S[4]=h,S[5]=_,S[6]=m,S[7]=g,S[8]=v,S[9]=b,S[10]=w):(t=S[1],o=S[2],i=S[3],h=S[4],_=S[5],m=S[6],g=S[7],v=S[8],b=S[9],w=S[10]);let k=void 0===m?"n":m,L=void 0!==g&&g;S[11]!==v?(x=void 0===v?{}:v,S[11]=v,S[12]=x):x=S[12];let N=x,T=(0,l.useSyncExternalStore)(u,f,p),I=c[k],j=t&&d[t],P=i&&"ControlledTooltip-module__tooltippedNoDelay__bW6WD",A=w&&"ControlledTooltip-module__tooltippedMultiline__t2wgM",M=L&&"ControlledTooltip-module__tooltippedOpen__eNKn6";S[13]!==o||S[14]!==I||S[15]!==j||S[16]!==P||S[17]!==A||S[18]!==M?(y=(0,a.$)("ControlledTooltip-module__tooltipBase__N1MbN",I,j,P,A,M,"ControlledTooltip-module__fixedPosition__eEZcA",o),S[13]=o,S[14]=I,S[15]=j,S[16]=P,S[17]=A,S[18]=M,S[19]=y):y=S[19];let D=y;if(!T)return null;let W=b||_["aria-label"];return S[20]!==D||S[21]!==h||S[22]!==_||S[23]!==W||S[24]!==b?(E=(0,n.jsx)("span",{ref:h,role:"tooltip","aria-label":b,"data-visible-text":W,..._,className:D}),S[20]=D,S[21]=h,S[22]=_,S[23]=W,S[24]=b,S[25]=E):E=S[25],S[26]!==N||S[27]!==E?(C=(0,n.jsx)(s.ZL,{...N,children:E}),S[26]=N,S[27]=E,S[28]=C):C=S[28],C}h.displayName="ControlledTooltip";var _=o(16197);function m(e){let t,o,s,a,c,d,u,p,f,m,v,b,w,x,y,E,C=(0,r.c)(30);C[0]!==e?({ref:u,contentRef:d,open:p,anchoredPositionAlignment:c,anchorSide:a,anchorOffset:s,alignmentOffset:t,allowOutOfBounds:o,...f}=e,C[0]=e,C[1]=t,C[2]=o,C[3]=s,C[4]=a,C[5]=c,C[6]=d,C[7]=u,C[8]=p,C[9]=f):(t=C[1],o=C[2],s=C[3],a=C[4],c=C[5],d=C[6],u=C[7],p=C[8],f=C[9]);let S=(0,l.useRef)(null);C[10]===Symbol.for("react.memo_cache_sentinel")?(m=()=>S.current,C[10]=m):m=C[10],(0,l.useImperativeHandle)(u,m),C[11]===Symbol.for("react.memo_cache_sentinel")?(v={left:0,top:0},C[11]=v):v=C[11];let k=(0,l.useRef)(v);C[12]!==d||C[13]!==p?(b=e=>{if(!S.current||!d.current||!p)return g;let t=(0,_.U)(d.current);return t?.addEventListener("scroll",e),()=>{t?.removeEventListener("scroll",e)}},C[12]=d,C[13]=p,C[14]=b):b=C[14],C[15]!==t||C[16]!==o||C[17]!==s||C[18]!==a||C[19]!==c||C[20]!==d?(w=()=>{if(!S.current||!d.current)return k.current;let e=(0,i.uG)(S.current,d.current,{align:c??"center",side:a??"outside-top",alignmentOffset:t??0,anchorOffset:s??0,allowOutOfBounds:o});return(e.left!==k.current.left||e.top!==k.current.top)&&(k.current=e),k.current},C[15]=t,C[16]=o,C[17]=s,C[18]=a,C[19]=c,C[20]=d,C[21]=w):w=C[21],C[22]===Symbol.for("react.memo_cache_sentinel")?(x=()=>k.current,C[22]=x):x=C[22];let L=(0,l.useSyncExternalStore)(b,w,x);return C[23]!==L||C[24]!==f.style?(y={position:"absolute",...L,...f.style},C[23]=L,C[24]=f.style,C[25]=y):y=C[25],C[26]!==p||C[27]!==f||C[28]!==y?(E=(0,n.jsx)(h,{...f,ref:S,open:p,style:y}),C[26]=p,C[27]=f,C[28]=y,C[29]=E):E=C[29],E}function g(){}m.displayName="PortalTooltip"},51581(e,t,o){o.d(t,{S:()=>a,s:()=>s});var n=o(16522),r=o(96540),i=o(66743),l=o(8470);function s(){let e,t,o=(0,n.c)(6),s=(0,r.use)(l.I);if(!s)throw Error("useAnalytics must be used within an AnalyticsContext");let{appName:a,category:c,metadata:d}=s;o[0]!==a||o[1]!==c||o[2]!==d?(e=(e,t,o)=>{let n={react:!0,app_name:a,category:c,...d};(0,i.BI)(e,{...n,...void 0===o?{}:o,target:t})},o[0]=a,o[1]=c,o[2]=d,o[3]=e):e=o[3];let u=e;return o[4]!==u?(t={sendAnalyticsEvent:u},o[4]=u,o[5]=t):t=o[5],t}function a(){let e,t,o=(0,n.c)(4),{sendAnalyticsEvent:r}=s();o[0]!==r?(e=e=>{r("analytics.click",void 0,void 0===e?{}:e)},o[0]=r,o[1]=e):e=o[1];let i=e;return o[2]!==i?(t={sendClickAnalyticsEvent:i},o[2]=i,o[3]=t):t=o[3],t}}}]); //# sourceMappingURL=35920-3f8fe867144bd8e9-4d9093f0208a53de.js.map