performance.mark("js-parse-end:57073-554787e8d9e6aaa0.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["57073"],{13149(e,t,n){n.d(t,{a:()=>i,n:()=>r});var o=n(21744);function r(){let e=document.getElementById("ajax-error-message");e&&(e.hidden=!1)}function i(){let e=document.getElementById("ajax-error-message");e&&(e.hidden=!0)}(0,o.on)("deprecatedAjaxError","[data-remote]",function(e){let{error:t,text:n}=e.detail;e.currentTarget!==e.target||"abort"!==t&&"canceled"!==t&&(/f,kn:()=>u,Z:()=>d});var o=n(74469),r=n(21744);let i="ontransitionend"in window;function a(e){return"height"===getComputedStyle(e).transitionProperty}function l(e,t){e.style.transition="none",t(),e.offsetHeight,e.style.transition=""}var s=n(95493);function c(e,t){if(e.classList.toggle("open",t),e.classList.toggle("Details--on",t),t){let t=e.querySelector(".js-details-initial-focus");t&&setTimeout(()=>{t.focus()},0)}for(let n of[...e.querySelectorAll(".js-details-target")].filter(t=>t.closest(".js-details-container")===e))n.setAttribute("aria-expanded",t.toString()),n.hasAttribute("data-aria-label-open")&&n.hasAttribute("data-aria-label-closed")&&n.setAttribute("aria-label",t?n.getAttribute("data-aria-label-open"):n.getAttribute("data-aria-label-closed"))}function u(e,t){let n=e.getAttribute("data-details-container")||".js-details-container",o=e.closest(n),r=t?.force??!o.classList.contains("open"),u=t?.withGroup??!1;!function(e,t){if(!i)return t();let n=Array.from(e.querySelectorAll(".js-transitionable"));for(let t of(e.classList.contains("js-transitionable")&&n.push(e),n)){let e=a(t);t instanceof HTMLElement&&(t.addEventListener("transitionend",()=>{t.style.display="",t.style.visibility="",e&&l(t,function(){t.style.height=""})},{once:!0}),t.style.boxSizing="content-box",t.style.display="block",t.style.visibility="visible",e&&l(t,function(){t.style.height=getComputedStyle(t).height}),t.offsetHeight)}for(let e of(t(),n))if(e instanceof HTMLElement&&a(e)){let t=getComputedStyle(e).height;e.style.boxSizing="","0px"===t?e.style.height=`${e.scrollHeight}px`:e.style.height="0px"}}(o,()=>{let t;c(o,r);let n=u?(t=o.getAttribute("data-details-container-group"))?((0,s._H)(o,()=>{for(let e of[...document.querySelectorAll(".js-details-container")].filter(e=>e.getAttribute("data-details-container-group")===t))e!==o&&c(e,r)}),t):null:null;Promise.resolve().then(()=>{[".js-focus-on-dismiss","input[autofocus], textarea[autofocus]"].find(e=>{let t=Array.from(o.querySelectorAll(e)).findLast(e=>"none"!==window.getComputedStyle(e).display);if(t&&document.activeElement!==t)return t.focus(),!0}),e.classList.contains("tooltipped")&&(e.classList.remove("tooltipped"),e.addEventListener("mouseleave",()=>{e.classList.add("tooltipped"),e.blur()},{once:!0})),o.dispatchEvent(new CustomEvent("details:toggled",{bubbles:!0,cancelable:!1,detail:{open:r}})),n&&o.dispatchEvent(new CustomEvent("details:toggled-group",{bubbles:!0,cancelable:!1,detail:{open:r,group:n}}))})})}function d(e){let t=e.getAttribute("data-details-container")||".js-details-container",n=e.closest(t).classList;return n.contains("Details--on")||n.contains("open")}function f(e){let t=!1,n=e.parentElement;for(;n;)n.classList.contains("Details-content--shown")&&(t=!0),n.classList.contains("js-details-container")&&(n.classList.toggle("open",!t),n.classList.toggle("Details--on",!t),t=!1),n=n.parentElement}(0,r.on)("click",".js-details-target",function(e){let t=e.altKey;u(e.currentTarget,{withGroup:t}),e.preventDefault()}),(0,o.A)(function({target:e}){e&&f(e)})},74469(e,t,n){n.d(t,{A:()=>l});var o=n(1289),r=n(40109);let i=[],a=0;function l(e){!async function(){let t;i.push(e),await o.G,t=a,a=i.length,s(i.slice(t),null,window.location.href)}()}function s(e,t,n){let o=window.location.hash.slice(1),r={oldURL:t,newURL:n,target:o?document.getElementById(o):null};for(let t of e)t.call(null,r)}l.clear=()=>{i.length=a=0};let c=window.location.href;window.addEventListener("popstate",function(){c=window.location.href}),window.addEventListener("hashchange",function(e){let t=window.location.href;try{s(i,e.oldURL||c,t)}finally{c=t}});let u=null;document.addEventListener(r.z.START,function(){u=window.location.href}),document.addEventListener(r.z.SUCCESS,function(){s(i,u,window.location.href)})},86359(e,t,n){n.d(t,{d:()=>u,s:()=>c});var o=n(68349),r=n(21403),i=n(21744);function a(e,t){let n=e.currentTarget;if(!(n instanceof Element))return;let o=t&&e instanceof CustomEvent&&e.detail?.error?.message?.includes("responded with a status of 403");for(let e of n.querySelectorAll("[data-show-on-forbidden-error]"))e instanceof HTMLElement&&(e.hidden=!o);for(let e of n.querySelectorAll("[data-show-on-error]"))e instanceof HTMLElement&&(e.hidden=o||!t);for(let e of n.querySelectorAll("[data-hide-on-error]"))e instanceof HTMLElement&&(e.hidden=t)}function l(e){a(e,!1)}function s(e){a(e,!0)}function c({currentTarget:e}){e instanceof Element&&u(e)}function u(e){let t=e.closest("details");t&&function(e){let t=e.getAttribute("data-deferred-details-content-url");if(t){e.removeAttribute("data-deferred-details-content-url");let n=e.querySelector("include-fragment, poll-include-fragment");n&&(n.src=t)}}(t)}(0,r.lB)("include-fragment, poll-include-fragment",{subscribe:e=>(0,o.Zz)((0,o.Rt)(e,"error",s),(0,o.Rt)(e,"loadstart",l))}),(0,i.on)("click","include-fragment button[data-retry-button]",({currentTarget:e})=>{e.closest("include-fragment").refetch()})},3336(e,t,n){let o;n.d(t,{D:()=>l});var r=n(21403);let i=0,a=new ResizeObserver(e=>{for(let t of e){let e=t.target;if(e instanceof HTMLElement){let t=e.ownerDocument.documentElement,n=e.clientHeight;n!==i&&(o&&cancelAnimationFrame(o),o=requestAnimationFrame(()=>{t.style.setProperty("--observed-header-height",`${n}px`),i=n}))}}});function l(){return i}(0,r.lB)(".js-observe-sticky-header-height",{constructor:HTMLElement,add(e){a.observe(e)}})},94668(e,t,n){function o(e,t=location.hash){return r(e,i(t))}function r(e,t){return""===t?null:e.getElementById(t)||e.getElementsByName(t)[0]}function i(e){try{return decodeURIComponent(e.slice(1))}catch{return""}}n.d(t,{gX:()=>i,rG:()=>o,w$:()=>r})},21969(e,t,n){n.d(t,{A:()=>f});var o=n(85397),r=n(89149),i=n(21403),a=n(5045);function l(e){let t=document.querySelector(".sso-modal");t&&(t.classList.remove("success","error"),e?t.classList.add("success"):t.classList.add("error"))}async function s(){let e=document.querySelector("link[rel=sso-modal]"),t=await (0,o.r)({content:(0,r.Ts)(document,e.href),dialogClass:"sso-modal"}),n=null,i=window.external;if(i.ssoComplete=function(e){if(e.error)l(n=!1);else{var t;let o;l(n=!0),t=e.expiresAround,(o=document.querySelector("meta[name=sso-expires-around]"))&&o.setAttribute("content",t),window.focus()}i.ssoComplete=null},await new Promise(e=>{t.addEventListener("dialog:remove",e,{once:!0})}),!n)throw Error("sso prompt canceled")}async function c(){let e=document.querySelector("link[rel=sso-session]"),t=document.querySelector("meta[name=sso-expires-around]");if(!(e instanceof HTMLLinkElement)||!function(e){if(!(e instanceof HTMLMetaElement))return!0;let t=parseInt(e.content);return Date.now()/1e3>t}(t))return!0;let n=e.href,o=await fetch(n,{headers:{Accept:"application/json",...(0,a.kt)()}});return await o.json()}(0,i.lB)(".js-sso-modal-complete",function(e){if(window.opener&&window.opener.external.ssoComplete){let t=e.getAttribute("data-error"),n=e.getAttribute("data-expires-around");window.opener.external.ssoComplete({error:t,expiresAround:n}),window.close()}else{let t=e.getAttribute("data-fallback-url");t&&(window.location.href=t)}});let u=null;function d(){u=null}async function f(){await c()||(u||(u=s().then(d).catch(d)),await u)}},24552(e,t,n){n.d(t,{GO:()=>s,Oc:()=>c,Rt:()=>l});var o=n(94668),r=n(469),i=n(3336),a=n(1289);async function l(e){if(e.hasAttribute("data-ignore-sticky-scroll"))return;let t=e.ownerDocument;if(t&&t.defaultView){await a.K,e.scrollIntoView();let n=t.querySelector(".secondary-sticky-header");n?t.defaultView.scrollBy(0,-c()-n.clientHeight):t.defaultView.scrollBy(0,-c())}}function s(e){let t=(0,o.rG)(e);t&&l(t)}function c(){return(0,r.Jd)()+(0,i.D)()}},49481(e,t,n){n.d(t,{C:()=>a,i:()=>l});var o=n(26316),r=n(73537),i=n(46493);function a(e,t){(0,r.G7)("arianotify_comprehensive_migration")?l(s(e),{...t,element:t?.element??e}):(0,r.G7)("primer_live_region_element")&&t?.element===void 0?(0,i.Cj)(e,{politeness:t?.assertive?"assertive":"polite"}):l(s(e),t)}function l(e,t){let{assertive:n,element:a}=t??{};if((0,r.G7)("arianotify_comprehensive_migration"))try{(a?.isConnected?a:o.XC).ariaNotify(e,{priority:n?"high":"normal"})}catch(e){console.error("Error calling ariaNotify:",e)}else{var l,s;let t;(0,r.G7)("primer_live_region_element")&&void 0===a?(0,i.iP)(e,{politeness:n?"assertive":"polite"}):(l=e,s=n,(t=a??o.XC?.querySelector(s?"#js-global-screen-reader-notice-assertive":"#js-global-screen-reader-notice"))&&(t.textContent===l?t.textContent=`${l}\u00A0`:t.textContent=l))}}function s(e){return(e.getAttribute("aria-label")||e.innerText||"").trim()}n(89272)},34619(e,t,n){n.d(t,{O:()=>a,S:()=>i});var o=n(26316);let r=o.cg?.document?.head?.querySelector('meta[name="release"]')?.content||"",i="X-GitHub-Client-Version";function a(){return r}},17005(e,t,n){function o(e){return r(e)[0]}function r(e){let t=[];for(let n of function(){try{return document.cookie.split(";")}catch{return[]}}()){let[o,r]=n.trim().split("=");e===o&&void 0!==r&&t.push({key:o,value:r})}return t}function i(e,t,n=null,o=!1,r="lax"){let a=document.domain;if(null==a)throw Error("Unable to get document domain");a.endsWith(".github.com")&&(a="github.com");let l="https:"===location.protocol?"; secure":"",s=n?`; expires=${n}`:"";!1===o&&(a=`.${a}`);try{document.cookie=`${e}=${t}; path=/; domain=${a}${s}${l}; samesite=${r}`}catch{}}function a(e,t=!1){let n=document.domain;if(null==n)throw Error("Unable to get document domain");n.endsWith(".github.com")&&(n="github.com");let o=new Date(Date.now()-1).toUTCString(),r="https:"===location.protocol?"; secure":"",i=`; expires=${o}`;!1===t&&(n=`.${n}`);try{document.cookie=`${e}=''; path=/; domain=${n}${i}${r}`}catch{}}n.d(t,{OR:()=>r,Ri:()=>o,TV:()=>i,Yj:()=>a})},85397(e,t,n){n.d(t,{r:()=>r});var o=n(21744);async function r(e){let t=document.querySelector("#site-details-dialog").content.cloneNode(!0),n=t.querySelector("details"),r=n.querySelector("details-dialog"),i=n.querySelector(".js-details-dialog-spinner");e.detailsClass&&n.classList.add(...e.detailsClass.split(" ")),e.dialogClass&&r.classList.add(...e.dialogClass.split(" ")),e.label?r.setAttribute("aria-label",e.label):e.labelledBy&&r.setAttribute("aria-labelledby",e.labelledBy),document.body.append(t);try{let t=await e.content;i.remove(),r.prepend(t)}catch{i.remove();let t=document.createElement("span");t.textContent=e.errorMessage||"Couldn't load the content",t.classList.add("tmp-my-6"),t.classList.add("tmp-mx-4"),r.prepend(t)}return n.addEventListener("toggle",()=>{n.hasAttribute("open")||((0,o.h)(r,"dialog:remove"),n.remove())}),r}},5045(e,t,n){n.d(t,{jC:()=>l,kt:()=>i,tV:()=>a});var o=n(34619),r=n(381);function i(e){let t={"X-Requested-With":"XMLHttpRequest",...(0,r.wE)(e)};return{...t,[o.S]:(0,o.O)()}}function a(e,t){for(let[n,o]of Object.entries(i(t)))e.set(n,o)}function l(e){return{"X-GitHub-App-Type":e}}},381(e,t,n){n.d(t,{$r:()=>a,M1:()=>l,li:()=>r,pS:()=>c,wE:()=>s});var o=n(26316);let r="X-Fetch-Nonce",i=new Set;function a(e){i.add(e)}function l(){return i.values().next().value||""}function s(e){let t={};return void 0!==e&&(t["X-Fetch-Nonce-To-Validate"]=e),void 0===e?t[r]=l():i.has(e)?t[r]=e:t[r]=Array.from(i).join(","),t}function c(){let e=o.XC?.head?.querySelector('meta[name="fetch-nonce"]')?.content||"";e&&a(e)}},89149(e,t,n){n.d(t,{Ee:()=>l,Ts:()=>a,b4:()=>s});var o=n(7749),r=n(69185),i=n(5045);async function a(e,t,n){let a=new Request(t,n);(0,i.tV)(a.headers);let l=await self.fetch(a);if(l.status<200||l.status>=300)throw Error(`HTTP ${l.status}${l.statusText||""}`);return(0,o.A)((0,o.K)(e),l),(0,r.B)(e,await l.text())}function l(e,t,n=1e3,o=[200],r=[202]){return async function n(a){let l=new Request(e,t);(0,i.tV)(l.headers);let s=await self.fetch(l);if(r.includes(s.status))return await new Promise(e=>setTimeout(e,a)),n(1.5*a);if(o.includes(s.status))return s;if(s.status<200||s.status>=300)throw Error(`HTTP ${s.status}${s.statusText||""}`);throw Error(`Unexpected ${s.status} response status from poll endpoint`)}(n)}async function s(e,t,n){let{wait:o=500,acceptedStatusCodes:r=[200],max:a=3,attempt:l=0}=n||{},c=async()=>new Promise((n,s)=>{setTimeout(async()=>{try{let o=new Request(e,t);(0,i.tV)(o.headers);let s=await self.fetch(o);if(r.includes(s.status)||l+1===a)return n(s);n("retry")}catch(e){s(e)}},o*l)}),u=await c();return"retry"!==u?u:s(e,t,{wait:o,acceptedStatusCodes:r,max:a,attempt:l+1})}},98795(e,t,n){n.d(t,{JC:()=>o.JC,KK:()=>o.KK,SK:()=>i,Vy:()=>o.Vy,ai:()=>o.ai,rd:()=>o.rd});var o=n(50515);let r=/(?:^|,)((?:[^,]|,(?=\+| |$))*(?:,(?=,))?)/g;function i(e){return Array.from(e.matchAll(r)).map(([,e])=>e)}},7749(e,t,n){function o(e){let t=[...e.querySelectorAll("meta[name=html-safe-nonce]")].map(e=>e.content);if(t.length<1)throw Error("could not find html-safe-nonce on document");return t}n.d(t,{A:()=>i,K:()=>o});class r extends Error{response;constructor(e,t){super(`${e} for HTTP ${t.status}`),this.response=t,this.name="ResponseError"}}function i(e,t,n=!1){let o=t.headers.get("content-type")||"";if(!n&&!o.startsWith("text/html"))throw new r(`expected response with text/html, but was ${o}`,t);if(n&&!(o.startsWith("text/html")||o.startsWith("application/json")))throw new r(`expected response with text/html or application/json, but was ${o}`,t);let a=t.headers.get("x-html-safe");if(a){if(!e.includes(a))throw new r("response X-HTML-Safe nonce did not match",t)}else throw new r("missing X-HTML-Safe nonce",t)}},63557(e,t,n){n.d(t,{Ff:()=>s,eC:()=>c,uE:()=>l});var o=n(6986);let r=!1,i=new o.A;function a(e){let t=e.target;if(t instanceof HTMLElement&&t.nodeType!==Node.DOCUMENT_NODE)for(let e of i.matches(t))e.data.call(null,t)}function l(e,t){r||(r=!0,document.addEventListener("focus",a,!0)),i.add(e,t),document.activeElement instanceof HTMLElement&&document.activeElement.matches(e)&&t(document.activeElement)}function s(e,t,n){function o(t){let r=t.currentTarget;r&&(r.removeEventListener(e,n),r.removeEventListener("blur",o))}l(t,function(t){t.addEventListener(e,n),t.addEventListener("blur",o)})}function c(e,t){function n(e){let{currentTarget:o}=e;o&&(o.removeEventListener("input",t),o.removeEventListener("blur",n))}l(e,function(e){e.addEventListener("input",t),e.addEventListener("blur",n)})}},40893(e,t,n){n.d(t,{Ax:()=>r.Ax,JW:()=>i,ZV:()=>r.ZV});var o=n(5045),r=n(13937);function i(e,t){(0,r.JW)(e,async(e,n,r)=>((0,o.tV)(r.headers),t(e,n,r)))}},469(e,t,n){n.d(t,{Jd:()=>a,MG:()=>i,zG:()=>l});let o=0,r=new Set;function i(e){e(o),r.add(e)}function a(){return o}function l(e){for(let t of(o=e,e?document.body.style.setProperty("--base-sticky-header-height",`${e}px`):document.body.style.removeProperty("--base-sticky-header-height"),r))t(e)}},68349(e,t,n){n.d(t,{Rt:()=>r,Zz:()=>i,yU:()=>o});class o{constructor(e){this.closed=!1,this.unsubscribe=()=>{e(),this.closed=!0}}closed;unsubscribe}function r(e,t,n,i={capture:!1}){return e.addEventListener(t,n,i),new o(()=>{e.removeEventListener(t,n,i)})}function i(...e){return new o(()=>{for(let t of e)t.unsubscribe()})}}}]); //# sourceMappingURL=57073-554787e8d9e6aaa0-7c08f80ef8e11398.js.map