performance.mark("js-parse-end:35650-0ba69608ebd94280.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["35650"],{94571(t,e,n){let r;n.d(e,{Se:()=>E,FB:()=>u,p_:()=>x,CF:()=>g,aC:()=>M,zV:()=>P});let o=new WeakSet,i=new WeakMap;function l(t=document){if(i.has(t))return i.get(t);let e=!1,n=new MutationObserver(t=>{for(let e of t)if("attributes"===e.type&&e.target instanceof Element)d(e.target);else if("childList"===e.type&&e.addedNodes.length)for(let t of e.addedNodes)t instanceof Element&&a(t)});n.observe(t,{childList:!0,subtree:!0,attributeFilter:["data-action"]});let r={get closed(){return e},unsubscribe(){e=!0,i.delete(t),n.disconnect()}};return i.set(t,r),r}function a(t){for(let e of t.querySelectorAll("[data-action]"))d(e);t instanceof Element&&t.hasAttribute("data-action")&&d(t)}function s(t){let e=t.currentTarget;for(let n of c(e))if(t.type===n.type){let r=e.closest(n.tag);o.has(r)&&"function"==typeof r[n.method]&&r[n.method](t);let i=e.getRootNode();if(i instanceof ShadowRoot&&o.has(i.host)&&i.host.matches(n.tag)){let e=i.host;"function"==typeof e[n.method]&&e[n.method](t)}}}function*c(t){for(let e of(t.getAttribute("data-action")||"").trim().split(/\s+/)){let t=e.lastIndexOf(":"),n=Math.max(0,e.lastIndexOf("#"))||e.length;yield{type:e.slice(0,t),tag:e.slice(t+1,n),method:e.slice(n+1)||"handleEvent"}}}function d(t){for(let e of c(t))t.addEventListener(e.type,s)}function u(t,e){let n=t.tagName.toLowerCase();if(t.shadowRoot){for(let r of t.shadowRoot.querySelectorAll(`[data-target~="${n}.${e}"]`))if(!r.closest(n))return r}for(let r of t.querySelectorAll(`[data-target~="${n}.${e}"]`))if(r.closest(n)===t)return r}let f=t=>String("symbol"==typeof t?t.description:t).replace(/([A-Z]($|[a-z]))/g,"-$1").replace(/--/g,"-").replace(/^-|-$/,"").toLowerCase(),h=(t,e="property")=>{let n=f(t);if(!n.includes("-"))throw new DOMException(`${e}: ${String(t)} is not a valid ${e} name`,"SyntaxError");return n},p="attr";function g(t,e){j(t,p).add(e)}let b=new WeakSet;function m(t,e){if(b.has(t))return;b.add(t);let n=Object.getPrototypeOf(t),r=n?.constructor?.attrPrefix??"data-";for(let o of(e||(e=j(n,p)),e)){let e=t[o],n=h(`${r}${o}`),i={configurable:!0,get(){return this.getAttribute(n)||""},set(t){this.setAttribute(n,t||"")}};"number"==typeof e?i={configurable:!0,get(){return Number(this.getAttribute(n)||0)},set(t){this.setAttribute(n,t)}}:"boolean"==typeof e&&(i={configurable:!0,get(){return this.hasAttribute(n)},set(t){this.toggleAttribute(n,t)}}),Object.defineProperty(t,o,i),o in t&&!t.hasAttribute(n)&&i.set.call(t,e)}}let y=new Map,w=new Promise(t=>{"loading"!==document.readyState?t():document.addEventListener("readystatechange",()=>t(),{once:!0})}),v=new Promise(t=>{let e=new AbortController;e.signal.addEventListener("abort",()=>t());let n={once:!0,passive:!0,signal:e.signal},r=()=>e.abort();document.addEventListener("mousedown",r,n),document.addEventListener("touchstart",r,n),document.addEventListener("keydown",r,n),document.addEventListener("pointerdown",r,n)}),k={ready:()=>w,firstInteraction:()=>v,visible:t=>new Promise(e=>{let n=new IntersectionObserver(t=>{for(let r of t)if(r.isIntersecting){e(),n.disconnect();return}},{rootMargin:"0px 0px 256px 0px",threshold:.01});for(let e of document.querySelectorAll(t))n.observe(e)})},C=new WeakMap;function A(t){cancelAnimationFrame(C.get(t)||0),C.set(t,requestAnimationFrame(()=>{for(let e of y.keys()){let n=t instanceof Element&&t.matches(e)?t:t.querySelector(e);if(customElements.get(e)||n){let r=n?.getAttribute("data-load-on")||"ready",o=r in k?k[r]:k.ready;for(let t of y.get(e)||[])o(e).then(t);y.delete(e),C.delete(t)}}}))}function E(t,e){for(let[n,r]of("string"==typeof t&&e&&(t={[t]:e}),Object.entries(t)))y.has(n)||y.set(n,new Set),y.get(n).add(r);S(document)}function S(t){r||(r=new MutationObserver(t=>{if(y.size)for(let e of t)for(let t of e.addedNodes)t instanceof Element&&A(t)})),A(t),r.observe(t,{subtree:!0,childList:!0})}let O=Symbol.for("catalyst");class ${constructor(t,e){const n=this,r=t.prototype.connectedCallback;t.prototype.connectedCallback=function(){n.connectedCallback(this,r)};const o=t.prototype.disconnectedCallback;t.prototype.disconnectedCallback=function(){n.disconnectedCallback(this,o)};const i=t.prototype.attributeChangedCallback;t.prototype.attributeChangedCallback=function(t,e,r){n.attributeChangedCallback(this,t,e,r,i)};let l=t.observedAttributes||[];Object.defineProperty(t,"observedAttributes",{configurable:!0,get(){return n.observedAttributes(this,l)},set(t){l=t}}),function(t){let e=t.observedAttributes||[],n=t.attrPrefix??"data-",r=t=>h(`${n}${t}`);Object.defineProperty(t,"observedAttributes",{configurable:!0,get:()=>[...j(t.prototype,p)].map(r).concat(e),set(t){e=t}})}(t),function(t,e){let n=e||f(t.name).replace(/-element$/,"");try{window.customElements.define(n,t),window[t.name]=customElements.get(n)}catch(t){if(!(t instanceof DOMException&&"NotSupportedError"===t.name))throw t}}(t,e)}observedAttributes(t,e){return e}connectedCallback(t,e){var n,r;for(let e of(t.toggleAttribute("data-catalyst",!0),customElements.upgrade(t),t.querySelectorAll("template[data-shadowroot]")))e.parentElement===t&&t.attachShadow({mode:"closed"===e.getAttribute("data-shadowroot")?"closed":"open"}).append(e.content.cloneNode(!0));(m(t),o.add(t),t.shadowRoot&&(a(r=t.shadowRoot),l(r)),a(t),l(t.ownerDocument),e?.call(t),t.shadowRoot)&&(a(n=t.shadowRoot),l(n),S(t.shadowRoot))}disconnectedCallback(t,e){e?.call(t)}attributeChangedCallback(t,e,n,r,o){m(t),"data-catalyst"!==e&&o&&o.call(t,e,n,r)}}function j(t,e){if(!Object.prototype.hasOwnProperty.call(t,O)){let e=t[O],n=t[O]=new Map;if(e)for(let[t,r]of e)n.set(t,new Set(r))}let n=t[O];return n.has(e)||n.set(e,new Set),n.get(e)}function M(t,e){j(t,"target").add(e),Object.defineProperty(t,e,{configurable:!0,get(){return u(this,e)}})}function P(t,e){j(t,"targets").add(e),Object.defineProperty(t,e,{configurable:!0,get(){let t=this.tagName.toLowerCase(),n=[];if(this.shadowRoot)for(let r of this.shadowRoot.querySelectorAll(`[data-targets~="${t}.${e}"]`))r.closest(t)||n.push(r);for(let r of this.querySelectorAll(`[data-targets~="${t}.${e}"]`))r.closest(t)===this&&n.push(r);return n}})}function x(t){if("string"==typeof t)return e=>{new $(e,t)};new $(t)}},50515(t,e,n){n.d(e,{JC:()=>C,KK:()=>h,Vy:()=>s,ai:()=>k,rd:()=>p});class r{constructor(t){this.children=[],this.parent=t}delete(t){let e=this.children.indexOf(t);return -1!==e&&(this.children=this.children.slice(0,e).concat(this.children.slice(e+1)),0===this.children.length&&this.parent.delete(this),!0)}add(t){return this.children.push(t),this}}class o{constructor(t){this.parent=null,this.children={},this.parent=t||null}get(t){return this.children[t]}insert(t){let e=this;for(let n=0;n","\xbf":"?"},l={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+","[":"{","]":"}","\\":"|",";":":","'":'"',",":"<",".":">","/":"?",q:"Q",w:"W",e:"E",r:"R",t:"T",y:"Y",u:"U",i:"I",o:"O",p:"P",a:"A",s:"S",d:"D",f:"F",g:"G",h:"H",j:"J",k:"K",l:"L",z:"Z",x:"X",c:"C",v:"V",b:"B",n:"N",m:"M"},a={" ":"Space","+":"Plus"};function s(t,e=navigator.platform){var n,r,o;let{ctrlKey:d,altKey:f,metaKey:h,shiftKey:p,key:g}=t,b=[];for(let[t,e]of[d,f,h,p].entries())e&&b.push(c[t]);if(!c.includes(g)){let t=b.includes("Alt")&&u.test(e)&&null!=(n=i[g])?n:g,s=b.includes("Shift")&&u.test(e)&&null!=(r=l[t])?r:t,c=null!=(o=a[s])?o:s;b.push(c)}return b.join("+")}let c=["Control","Alt","Meta","Shift"];function d(t,e){var n,r,o;let i,l,a;return(n=t,r=e,l="u"{var n,r;return(null!=(n=f[t])?n:1/0)-(null!=(r=f[e])?r:1/0)}).join("+")}let u=/Mac|iPod|iPhone|iPad/i,f={Control:0,Alt:1,Meta:2,Shift:3};class h{constructor({onReset:t}={}){this._path=[],this.timer=null,this.onReset=t}get path(){return this._path}get sequence(){return this._path.join(" ")}registerKeypress(t){this._path=[...this._path,s(t)],this.startTimer()}reset(){var t;this.killTimer(),this._path=[],null==(t=this.onReset)||t.call(this)}killTimer(){null!=this.timer&&window.clearTimeout(this.timer),this.timer=null}startTimer(){this.killTimer(),this.timer=window.setTimeout(()=>this.reset(),h.CHORD_TIMEOUT)}}function p(t){return t.split(" ").map(t=>d(t)).join(" ")}function g(t){if(!(t instanceof HTMLElement))return!1;let e=t.nodeName.toLowerCase(),n=(t.getAttribute("type")||"").toLowerCase();return"select"===e||"textarea"===e||"input"===e&&"submit"!==n&&"reset"!==n&&"checkbox"!==n&&"radio"!==n&&"file"!==n||t.isContentEditable}h.CHORD_TIMEOUT=1500;let b=new o,m=new WeakMap,y=b,w=new h({onReset(){y=b}});function v(t){if(t.defaultPrevented||!(t.target instanceof Node))return;if(g(t.target)){let e=t.target;if(!e.id||!e.ownerDocument.querySelector(`[data-hotkey-scope="${e.id}"]`))return}let e=y.get(s(t));if(!e)return void w.reset();if(w.registerKeypress(t),y=e,e instanceof r){let r,o=t.target,i=!1,l=g(o);for(let t=e.children.length-1;t>=0;t-=1){let n=(r=e.children[t]).getAttribute("data-hotkey-scope");if(!l&&!n||l&&o.id===n){i=!0;break}}if(r&&i){var n;let e;n=r,e=new CustomEvent("hotkey-fire",{cancelable:!0,detail:{path:w.path}}),n.dispatchEvent(e)&&(g(n)?n.focus():n.click()),t.preventDefault()}w.reset()}}function k(t,e){0===Object.keys(b.children).length&&document.addEventListener("keydown",v);let n=(function(t){let e=[],n=[""],r=!1;for(let o=0;ot.map(t=>d(t)).filter(t=>""!==t)).filter(t=>t.length>0)})(e||t.getAttribute("data-hotkey")||"").map(e=>b.insert(e).add(t));m.set(t,n)}function C(t){let e=m.get(t);if(e&&e.length)for(let n of e)n&&n.delete(t);0===Object.keys(b.children).length&&document.removeEventListener("keydown",v)}},97665(t,e,n){n.d(e,{Ht:()=>a,jE:()=>l,v4:()=>i});var r=n(96540),o=n(74848),i=r.createContext(void 0),l=t=>{let e=r.useContext(i);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},a=({client:t,children:e})=>(r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,o.jsx)(i.Provider,{value:t,children:e}))},31993(t,e,n){n.d(e,{j:()=>r});function r(t){return t}},97286(t,e,n){n.d(e,{I:()=>i});var r=n(1651),o=n(15985);function i(t,e){return(0,o.t)(t,r.$,e)}},34164(t,e,n){n.d(e,{$:()=>r});function r(){for(var t,e,n=0,r="",o=arguments.length;n