"use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([[35109],{13523:(e,t,n)=>{n.d(t,{$r:()=>i,M1:()=>s,li:()=>r,pS:()=>u,wE:()=>c});var a=n(56038);let r="X-Fetch-Nonce",o=new Set;function i(e){o.add(e)}function s(){return o.values().next().value||""}function c(e){let t={};return void 0!==e&&(t["X-Fetch-Nonce-To-Validate"]=e),void 0===e?t[r]=s():o.has(e)?t[r]=e:t[r]=Array.from(o).join(","),t}function u(){let e=a.XC?.head?.querySelector('meta[name="fetch-nonce"]')?.content||"";e&&i(e)}},15838:(e,t,n)=>{n.d(t,{Cd:()=>u,E5:()=>c,Im:()=>l,nW:()=>s});var a=n(82518),r=n(94416),o=n(51951);let i="stats:soft-nav-duration",s={turbo:"TURBO",react:"REACT","turbo.frame":"FRAME","turbo.error":"TURBO.ERROR",ui:"UI",hard:"HARD"};function c(){window.performance.clearResourceTimings(),window.performance.mark(i)}function u(e){(0,a.iv)({turboFailureReason:e,turboStartUrl:(0,r.dR)(),turboEndUrl:window.location.href})}function l(){let e=function(){if(0===performance.getEntriesByName(i).length)return null;performance.measure(i,i);let e=performance.getEntriesByName(i).pop();return e?e.duration:null}();if(!e)return;let t=s[(0,r.di)()],n=Math.round(e);t===s.react&&document.dispatchEvent(new CustomEvent("staffbar-update",{detail:{duration:n}})),(0,a.iv)({requestUrl:window.location.href,softNavigationTiming:{mechanism:t,destination:(0,o.f)()||"rails",duration:n,initiator:(0,r.Pv)()||"rails"}})}},28600:(e,t,n)=>{let a;n.d(t,{A:()=>d});var r=n(69599),o=n(82075),i=n(82518);let{getItem:s,setItem:c,removeItem:u}=(0,o.A)("localStorage"),l="REACT_PROFILING_DISABLED_UNTIL",d={enable:()=>{u(l),a=void 0},disable:()=>{c(l,String(Date.now()+864e5)),a=!1},isEnabled:()=>"undefined"!=typeof window&&(void 0!==a?a:(0,r.G7)("react_quality_profiling")?a=(0,i.Xl)()?function(){let e=s(l);if(!e)return!0;let t=Number(e);return!!(Number.isNaN(t)||Date.now()>=t)&&(u(l),!0)}():.02>Math.random():(a=!1,!1)),resetCache:()=>{a=void 0}}},40064:(e,t,n)=>{n.d(t,{V:()=>f});var a=n(74848),r=n(96540),o=n(43258),i=n(38621),s=n(52870),c=n(56149);let u={info:"",success:"Toast--success",error:"Toast--error"},l={info:(0,a.jsx)(i.InfoIcon,{}),success:(0,a.jsx)(i.CheckIcon,{}),error:(0,a.jsx)(i.StopIcon,{})},d=({message:e,timeToLive:t,icon:n,type:o="info",role:i="log"})=>{let[d,f]=r.useState(!0),{safeSetTimeout:v}=(0,s.A)();return(0,r.useEffect)(()=>{t&&v(()=>f(!1),t-300)},[v,t]),(0,a.jsx)(c.ZL,{children:(0,a.jsx)("div",{className:"p-1 position-fixed bottom-0 left-0 mb-3 ml-3",children:(0,a.jsxs)("div",{className:`Toast ${u[o]} ${d?"Toast--animateIn":"Toast--animateOut"}`,id:"ui-app-toast","data-testid":`ui-app-toast-${o}`,role:i,children:[(0,a.jsx)("span",{className:"Toast-icon",children:n||l[o]}),(0,a.jsx)("span",{className:"Toast-content",children:e})]})})})};try{d.displayName||(d.displayName="Toast")}catch{}function f(){let{toasts:e,persistedToast:t}=(0,r.use)(o.T8);return(0,a.jsxs)(a.Fragment,{children:[e.map((e,t)=>(0,a.jsx)(d,{message:e.message,icon:e.icon,timeToLive:o.Qn,type:e.type,role:e.role},t)),t&&(0,a.jsx)(d,{message:t.message,icon:t.icon,type:t.type,role:t.role})]})}try{f.displayName||(f.displayName="Toasts")}catch{}},42255:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(70263),r=n(96540);let o=function(e){let t=(0,a.A)(),[n,o]=(0,r.useState)(e);return[n,(0,r.useCallback)(e=>{t()&&o(e)},[t])]}},43258:(e,t,n)=>{n.d(t,{Qn:()=>c,T8:()=>l,Y6:()=>f,k6:()=>d});var a=n(74848),r=n(52870),o=n(96540),i=n(73189),s=n(42255);let c=5e3,u=(0,o.createContext)({addToast:i.l,addPersistedToast:i.l,clearPersistedToast:i.l}),l=(0,o.createContext)({toasts:[],persistedToast:null});function d({children:e}){let[t,n]=(0,s.A)([]),[i,d]=(0,o.useState)(null),{safeSetTimeout:f}=(0,r.A)(),v=(0,o.useCallback)(function(e){n([...t,e]),f(()=>n(t.slice(1)),c)},[t,f,n]),m=(0,o.useCallback)(function(e){d(e)},[d]),p=(0,o.useCallback)(function(){d(null)},[d]),h=(0,o.useMemo)(()=>({addToast:v,addPersistedToast:m,clearPersistedToast:p}),[m,v,p]),E=(0,o.useMemo)(()=>({toasts:t,persistedToast:i}),[t,i]);return(0,a.jsx)(u,{value:h,children:(0,a.jsx)(l,{value:E,children:e})})}function f(){return(0,o.use)(u)}try{u.displayName||(u.displayName="ToastContext")}catch{}try{l.displayName||(l.displayName="InternalToastsContext")}catch{}try{d.displayName||(d.displayName="ToastContextProvider")}catch{}},49936:(e,t,n)=>{n.d(t,{I:()=>a});let a=(0,n(96540).createContext)(null)},51407:(e,t,n)=>{n.d(t,{Y:()=>a});function a(){let e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}},51987:(e,t,n)=>{n.d(t,{jC:()=>s,kt:()=>o,tV:()=>i});var a=n(87057),r=n(13523);function o(e){let t={"X-Requested-With":"XMLHttpRequest",...(0,r.wE)(e)};return{...t,[a.S]:(0,a.O)()}}function i(e,t){for(let[n,a]of Object.entries(o(t)))e.set(n,a)}function s(e){return{"X-GitHub-App-Type":e}}},53627:(e,t,n)=>{n.d(t,{C3:()=>c,JV:()=>o,K3:()=>f,MM:()=>u,OE:()=>v,Zu:()=>d,bj:()=>i,jc:()=>l,kd:()=>s});var a=n(56038);let r=null;function o(){return a.Kn?.state||{}}function i(e){m(o(),"",e)}function s(e){a.Kn?.pushState({appId:o().appId},"",e),p()}function c(e){let t={...o(),...e};r&&(r=t),m(t,"",location.href)}function u(e){i(`?${e.toString()}${a.fV.hash}`)}function l(){i(a.fV.pathname+a.fV.hash)}function d(e){i(e.startsWith("#")?e:`#${e}`),(r=o())&&requestIdleCallback(()=>{!history.state&&r&&(c(r),r=null)})}function f(){i(a.fV.pathname+a.fV.search)}function v(){a.Kn?.back()}function m(e,t,n){a.Kn?.replaceState(e,t,n),p()}function p(){a.cg?.dispatchEvent(new CustomEvent("statechange",{bubbles:!1,cancelable:!1}))}},57224:(e,t,n)=>{n.d(t,{y:()=>i});var a=n(74848),r=n(16522),o=n(49936);function i(e){let t,n,i=(0,r.c)(7),{children:s,appName:c,category:u,metadata:l}=e;i[0]!==c||i[1]!==u||i[2]!==l?(t={appName:c,category:u,metadata:l},i[0]=c,i[1]=u,i[2]=l,i[3]=t):t=i[3];let d=t;return i[4]!==s||i[5]!==d?(n=(0,a.jsx)(o.I,{value:d,children:s}),i[4]=s,i[5]=d,i[6]=n):n=i[6],n}try{i.displayName||(i.displayName="AnalyticsProvider")}catch{}},65432:(e,t,n)=>{n.d(t,{Bu:()=>m,SC:()=>u,Ti:()=>f,iS:()=>l,k5:()=>c,o4:()=>d,rZ:()=>v});var a=n(82591),r=n(73900),o=n(15838),i=n(94416);let s=0;function c(){s=0,document.dispatchEvent(new Event(a.z.INITIAL)),(0,i.xT)()}function u(e){(0,i.LM)()||(document.dispatchEvent(new Event(a.z.PROGRESS_BAR.START)),document.dispatchEvent(new r.sW(e)),(0,i.Vy)(e),(0,i.ZW)(),(0,i.HK)(),(0,o.E5)())}function l(e={}){h(e)&&(s+=1,document.dispatchEvent(new r.ni((0,i.di)(),s)),f(e))}function d(e={}){if(!h(e))return;s=0;let t=(0,i.my)()||i.BW;document.dispatchEvent(new r.Kq((0,i.di)(),t)),p(),(0,o.Cd)(t),(0,i.xT)()}function f(e={}){if(!h(e))return;let t=(0,i.di)();p(),document.dispatchEvent(new r.RQ(t)),(0,i.Ff)(),(0,i.JA)(t)}function v(e={}){h(e)&&((0,o.Im)(),document.dispatchEvent(new Event(a.z.RENDER)))}function m(){document.dispatchEvent(new Event(a.z.FRAME_UPDATE))}function p(){document.dispatchEvent(new Event(a.z.PROGRESS_BAR.END))}function h({skipIfGoingToReactApp:e,allowedMechanisms:t=[]}={}){return(0,i.LM)()&&(0===t.length||t.includes((0,i.di)()))&&(!e||!(0,i.gc)())}},70263:(e,t,n)=>{n.d(t,{A:()=>o});var a=n(16522),r=n(96540);function o(){let e,t,n,o=(0,a.c)(3),i=(0,r.useRef)(!1);o[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>i.current,o[0]=e):e=o[0];let s=e;return o[1]===Symbol.for("react.memo_cache_sentinel")?(t=()=>(i.current=!0,()=>{i.current=!1}),n=[],o[1]=t,o[2]=n):(t=o[1],n=o[2]),(0,r.useLayoutEffect)(t,n),s}},73189:(e,t,n)=>{n.d(t,{l:()=>a});let a=()=>void 0},73900:(e,t,n)=>{n.d(t,{Kq:()=>SoftNavErrorEvent,RQ:()=>SoftNavEndEvent,gh:()=>SoftNavPayloadEvent,ni:()=>SoftNavSuccessEvent,sW:()=>SoftNavStartEvent});var a=n(50467),r=n(82591);let o=class SoftNavEvent extends Event{constructor(e,t){super(t),(0,a._)(this,"mechanism",void 0),this.mechanism=e}};let SoftNavStartEvent=class SoftNavStartEvent extends o{constructor(e){super(e,r.z.START)}};let SoftNavSuccessEvent=class SoftNavSuccessEvent extends o{constructor(e,t){super(e,r.z.SUCCESS),(0,a._)(this,"visitCount",void 0),this.visitCount=t}};let SoftNavErrorEvent=class SoftNavErrorEvent extends o{constructor(e,t){super(e,r.z.ERROR),(0,a._)(this,"error",void 0),this.error=t}};let SoftNavEndEvent=class SoftNavEndEvent extends o{constructor(e){super(e,r.z.END)}};let SoftNavPayloadEvent=class SoftNavPayloadEvent extends Event{constructor(e){super("soft-nav:payload"),(0,a._)(this,"payload",void 0),(0,a._)(this,"appPayload",void 0),this.payload=e.payload,this.appPayload=e.appPayload}}},76629:(e,t,n)=>{n.d(t,{BP:()=>l,D3:()=>u,O8:()=>s});var a=n(74848),r=n(16522),o=n(96540),i=n(6923);let s={ServerRender:"ServerRender",ClientHydrate:"ClientHydrate",ClientRender:"ClientRender"},c=(0,o.createContext)(s.ClientRender);function u(e){let t,n,u,l,d=(0,r.c)(8),{wasServerRendered:f,children:v}=e;d[0]!==f?(t=()=>i.X3?s.ServerRender:f?s.ClientHydrate:s.ClientRender,d[0]=f,d[1]=t):t=d[1];let[m,p]=(0,o.useState)(t);return d[2]!==m?(n=()=>{m!==s.ClientRender&&p(s.ClientRender)},u=[m],d[2]=m,d[3]=n,d[4]=u):(n=d[3],u=d[4]),(0,o.useLayoutEffect)(n,u),d[5]!==v||d[6]!==m?(l=(0,a.jsx)(c,{value:m,children:v}),d[5]=v,d[6]=m,d[7]=l):l=d[7],l}function l(){return(0,o.use)(c)}try{c.displayName||(c.displayName="RenderPhaseContext")}catch{}try{u.displayName||(u.displayName="RenderPhaseProvider")}catch{}},87057:(e,t,n)=>{n.d(t,{O:()=>i,S:()=>o});var a=n(56038);let r=a.cg?.document?.head?.querySelector('meta[name="release"]')?.content||"",o="X-GitHub-Client-Version";function i(){return r}},88057:(e,t,n)=>{n.d(t,{Ex:()=>i,kt:()=>c,xA:()=>s});var a=n(56038);let r=Array(10).fill(null),o=0;function i(e){r[o]=e,o=(o+1)%10}function s(){let e=[];for(let t=0;t<10;t++){let n=r[(o-1-t+10)%10];n&&e.push(n)}return e}function c(){let e=a.XC;if(!e)return;let t=e.querySelector('meta[name="request-id"]'),n=t?.getAttribute("content");n&&i(n)}}}]); //# sourceMappingURL=35109-4f02ff08f262.js.map