performance.mark("js-parse-end:75999-8b712b86e441ee4c.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["75999"],{91385(t,e,n){n.d(e,{Xq:()=>l,ai:()=>r,fN:()=>s,qA:()=>u});var i=-1/0,r=1/0;function o(t,e,n,r){for(var o=t.length,s=e.length,l=t.toLowerCase(),u=e.toLowerCase(),a=function(t){for(var e=t.length,n=Array(e),i="/",r=0;r1024)return i;var l=Array(n),u=Array(n);return o(t,e,l,u),u[n-1][s-1]}function l(t,e){var n=t.length,r=e.length,s=Array(n);if(!n||!r)return s;if(n===r){for(var l=0;l1024)return s;var u=Array(n),a=Array(n);o(t,e,u,a);for(var c=!1,l=n-1,h=r-1;l>=0;l--)for(;h>=0;h--)if(u[l][h]!==i&&(c||u[l][h]===a[l][h])){c=l&&h&&a[l][h]===u[l-1][h-1]+1,s[l]=h--;break}return s}function u(t,e){t=t.toLowerCase(),e=e.toLowerCase();for(var n=t.length,i=0,r=0;iA,KK:()=>d,Vy:()=>u,ai:()=>w,rd:()=>f});class i{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 r{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":"?"},s={"`":"~",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"},l={" ":"Space","+":"Plus"};function u(t,e=navigator.platform){var n,i,r;let{ctrlKey:c,altKey:d,metaKey:f,shiftKey:p,key:m}=t,v=[];for(let[t,e]of[c,d,f,p].entries())e&&v.push(a[t]);if(!a.includes(m)){let t=v.includes("Alt")&&h.test(e)&&null!=(n=o[m])?n:m,u=v.includes("Shift")&&h.test(e)&&null!=(i=s[t])?i:t,a=null!=(r=l[u])?r:u;v.push(a)}return v.join("+")}let a=["Control","Alt","Meta","Shift"];function c(t,e){let n,i,r;{var o,s,l,u=(o=t,s=e,i="u"this.reset(),d.CHORD_TIMEOUT)}}function f(t){return t.split(" ").map(t=>c(t)).join(" ")}function p(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}d.CHORD_TIMEOUT=1500;let m=new r,v=new WeakMap,g=m,y=new d({onReset(){g=m}});function b(t){if(t.defaultPrevented||!(t.target instanceof Node))return;if(p(t.target)){let e=t.target;if(!e.id||!e.ownerDocument.querySelector(`[data-hotkey-scope="${e.id}"]`))return}let e=g.get(u(t));if(!e)return void y.reset();if(y.registerKeypress(t),g=e,e instanceof i){let i,r=t.target,o=!1,s=p(r);for(let t=e.children.length-1;t>=0;t-=1){let n=(i=e.children[t]).getAttribute("data-hotkey-scope");if(!s&&!n||s&&r.id===n){o=!0;break}}if(i&&o){var n;let e;n=i,e=new CustomEvent("hotkey-fire",{cancelable:!0,detail:{path:y.path}}),n.dispatchEvent(e)&&(p(n)?n.focus():n.click()),t.preventDefault()}y.reset()}}function w(t,e){0===Object.keys(m.children).length&&document.addEventListener("keydown",b);let n=(function(t){let e=[],n=[""],i=!1;for(let r=0;rt.map(t=>c(t)).filter(t=>""!==t)).filter(t=>t.length>0)})(e||t.getAttribute("data-hotkey")||"").map(e=>m.insert(e).add(t));v.set(t,n)}function A(t){let e=v.get(t);if(e&&e.length)for(let n of e)n&&n.delete(t);0===Object.keys(m.children).length&&document.removeEventListener("keydown",b)}},97088(t,e,n){n.d(e,{s:()=>o});let i=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","scid"];var r=n(36301);class o{constructor(t){this.options=t,this.eventBatch=[],this.idleCallbackId=null,this.waitTimerId=null,this.onVisibilityChange=()=>{"hidden"===document.visibilityState&&this.flushBatch()},this.boundFlush=()=>this.flushBatch(),"u">typeof document&&document.addEventListener("visibilitychange",this.onVisibilityChange),"u">typeof window&&window.addEventListener("pagehide",this.boundFlush)}get collectorUrl(){return this.options.collectorUrl}get clientId(){return this.options.clientId?this.options.clientId:(0,r.y)()}get maxBatchSize(){return this.options.maxBatchSize??10}get idleTimeout(){return this.options.idleTimeout??1e3}createEvent(t){return{page:location.href,title:document.title,context:{...this.options.baseContext,...function(){let t={};try{for(let[e,n]of new URLSearchParams(window.location.search)){let r=e.toLowerCase();i.includes(r)&&(t[r]=n)}return t}catch(t){return{}}}(),...t}}}sendPageView(t){let e=this.createEvent(t);this.send({page_views:[e]})}sendEvent(t,e){let n={...this.createEvent(e),type:t};this.send({events:[n]})}sendBatchedEvent(t,e){let n={...this.createEvent(e),type:t};this.eventBatch.push(n),this.eventBatch.length>=this.maxBatchSize?this.flushBatch():this.scheduleFlush()}flushBatch(){if(0===this.eventBatch.length)return;this.cancelScheduledFlush();let t=this.eventBatch;this.eventBatch=[],this.send({events:t})}destroy(){this.flushBatch(),"u">typeof document&&document.removeEventListener("visibilitychange",this.onVisibilityChange),"u">typeof window&&window.removeEventListener("pagehide",this.boundFlush)}scheduleFlush(){null===this.idleCallbackId&&null===this.waitTimerId&&(this.waitTimerId=setTimeout(()=>{this.waitTimerId=null,"function"==typeof requestIdleCallback?this.idleCallbackId=requestIdleCallback(this.boundFlush):this.boundFlush()},this.idleTimeout))}cancelScheduledFlush(){null!==this.idleCallbackId&&("function"==typeof cancelIdleCallback&&cancelIdleCallback(this.idleCallbackId),this.idleCallbackId=null),null!==this.waitTimerId&&(clearTimeout(this.waitTimerId),this.waitTimerId=null)}send({page_views:t,events:e}){let n=JSON.stringify({client_id:this.clientId,page_views:t,events:e,request_context:{referrer:function(){let t;try{t=window.top.document.referrer}catch(e){if(window.parent)try{t=window.parent.document.referrer}catch(t){}}return""===t&&(t=document.referrer),t}(),user_agent:navigator.userAgent,screen_resolution:function(){try{return`${screen.width}x${screen.height}`}catch(t){return"unknown"}}(),browser_resolution:function(){let t=0,e=0;try{return"number"==typeof window.innerWidth?(e=window.innerWidth,t=window.innerHeight):null!=document.documentElement&&null!=document.documentElement.clientWidth?(e=document.documentElement.clientWidth,t=document.documentElement.clientHeight):null!=document.body&&null!=document.body.clientWidth&&(e=document.body.clientWidth,t=document.body.clientHeight),`${e}x${t}`}catch(t){return"unknown"}}(),browser_languages:navigator.languages?navigator.languages.join(","):navigator.language||"",pixel_ratio:window.devicePixelRatio,timestamp:Date.now(),tz_seconds:-60*new Date().getTimezoneOffset()}});try{if(navigator.sendBeacon)return void navigator.sendBeacon(this.collectorUrl,n)}catch{}fetch(this.collectorUrl,{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:n,keepalive:!1})}}},70837(t,e,n){n.d(e,{O:()=>i});function i(t="ha"){let e,n={};for(let i of Array.from(document.head.querySelectorAll(`meta[name^="${t}-"]`))){let{name:r,content:o}=i,s=r.replace(`${t}-`,"").replace(/-/g,"_");"url"===s?e=o:n[s]=o}if(!e)throw Error(`AnalyticsClient ${t}-url meta tag not found`);return{collectorUrl:e,...Object.keys(n).length>0?{baseContext:n}:{}}}},61388(t,e,n){n.d(e,{_:()=>l});var i=n(36158),r=n(26261),o=n(66500),s=n(24880),l=class extends o.Q{#t;#e=void 0;#n;#i;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,s.f8)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,s.EN)(e.mutationKey)!==(0,s.EN)(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#o()}mutate(t,e){return this.#i=e,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){let t=this.#n?.state??(0,i.$)();this.#e={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#o(t){r.jG.batch(()=>{if(this.#i&&this.hasListeners()){let e=this.#e.variables,n=this.#e.context,i={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#i.onSuccess?.(t.data,e,n,i)}catch(t){Promise.reject(t)}try{this.#i.onSettled?.(t.data,null,e,n,i)}catch(t){Promise.reject(t)}}else if(t?.type==="error"){try{this.#i.onError?.(t.error,e,n,i)}catch(t){Promise.reject(t)}try{this.#i.onSettled?.(void 0,t.error,e,n,i)}catch(t){Promise.reject(t)}}}this.listeners.forEach(t=>{t(this.#e)})})}}},97665(t,e,n){n.d(e,{Ht:()=>l,jE:()=>s,v4:()=>o});var i=n(96540),r=n(74848),o=i.createContext(void 0),s=t=>{let e=i.useContext(o);if(t)return t;if(!e)throw Error("No QueryClient set, use QueryClientProvider to set one");return e},l=({client:t,children:e})=>(i.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,r.jsx)(o.Provider,{value:t,children:e}))},94747(t,e,n){n.d(e,{n:()=>u});var i=n(96540),r=n(61388),o=n(26261),s=n(24880),l=n(97665);function u(t,e){let n=(0,l.jE)(e),[u]=i.useState(()=>new r._(n,t));i.useEffect(()=>{u.setOptions(t)},[u,t]);let a=i.useSyncExternalStore(i.useCallback(t=>u.subscribe(o.jG.batchCalls(t)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),c=i.useCallback((t,e)=>{u.mutate(t,e).catch(s.lQ)},[u]);if(a.error&&(0,s.GU)(u.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:c,mutateAsync:a.mutate}}},34164(t,e,n){n.d(e,{$:()=>i});function i(){for(var t,e,n=0,i="",r=arguments.length;n{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)})}function o(t,e){let n;return(i,o)=>(()=>{if(n)return n;let i=indexedDB.open(t);return i.onupgradeneeded=()=>i.result.createObjectStore(e),(n=r(i)).then(t=>{t.onclose=()=>n=void 0},()=>{}),n})().then(t=>o(t.transaction(e,i).objectStore(e)))}function s(){return i||(i=o("keyval-store","keyval")),i}function l(t,e=s()){return e("readonly",e=>r(e.get(t)))}function u(t,e,n=s()){return n("readwrite",n=>(n.put(e,t),r(n.transaction)))}function a(t,e=s()){return e("readwrite",e=>(e.delete(t),r(e.transaction)))}function c(t=s()){return t("readwrite",t=>(t.clear(),r(t.transaction)))}function h(t=s()){return t("readonly",e=>{if(e.getAll&&e.getAllKeys)return Promise.all([r(e.getAllKeys()),r(e.getAll())]).then(([t,e])=>t.map((t,n)=>[t,e[n]]));let n=[];return t("readonly",t=>{var e;return(e=t=>n.push([t.key,t.value]),t.openCursor().onsuccess=function(){this.result&&(e(this.result),this.result.continue())},r(t.transaction)).then(()=>n)})})}n.d(e,{IU:()=>c,Jt:()=>l,hZ:()=>u,jO:()=>h,y$:()=>o,yH:()=>a})},241(t,e,n){n.d(e,{A:()=>i});let i=n(41917).A.Symbol},18348(t,e,n){n.d(e,{A:()=>h});var i=n(241),r=Object.prototype,o=r.hasOwnProperty,s=r.toString,l=i.A?i.A.toStringTag:void 0;let u=function(t){var e=o.call(t,l),n=t[l];try{t[l]=void 0;var i=!0}catch(t){}var r=s.call(t);return i&&(e?t[l]=n:delete t[l]),r};var a=Object.prototype.toString,c=i.A?i.A.toStringTag:void 0;let h=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?u(t):a.call(t)}},72136(t,e,n){n.d(e,{A:()=>i});let i="object"==typeof global&&global&&global.Object===Object&&global},41917(t,e,n){n.d(e,{A:()=>o});var i=n(72136),r="object"==typeof self&&self&&self.Object===Object&&self;let o=i.A||r||Function("return this")()},52246(t,e,n){n.d(e,{A:()=>a});var i=n(23149),r=n(41917);let o=function(){return r.A.Date.now()};var s=n(41127),l=Math.max,u=Math.min;let a=function(t,e,n){var r,a,c,h,d,f,p=0,m=!1,v=!1,g=!0;if("function"!=typeof t)throw TypeError("Expected a function");function y(e){var n=r,i=a;return r=a=void 0,p=e,h=t.apply(i,n)}function b(t){var n=t-f,i=t-p;return void 0===f||n>=e||n<0||v&&i>=c}function w(){var t,n,i,r=o();if(b(r))return A(r);d=setTimeout(w,(t=r-f,n=r-p,i=e-t,v?u(i,c-n):i))}function A(t){return(d=void 0,g&&r)?y(t):(r=a=void 0,h)}function C(){var t,n=o(),i=b(n);if(r=arguments,a=this,f=n,i){if(void 0===d)return p=t=f,d=setTimeout(w,e),m?y(t):h;if(v)return clearTimeout(d),d=setTimeout(w,e),y(f)}return void 0===d&&(d=setTimeout(w,e)),h}return e=(0,s.A)(e)||0,(0,i.A)(n)&&(m=!!n.leading,c=(v="maxWait"in n)?l((0,s.A)(n.maxWait)||0,e):c,g="trailing"in n?!!n.trailing:g),C.cancel=function(){void 0!==d&&clearTimeout(d),p=0,r=f=a=d=void 0},C.flush=function(){return void 0===d?h:A(o())},C}},23149(t,e,n){n.d(e,{A:()=>i});let i=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},53098(t,e,n){n.d(e,{A:()=>i});let i=function(t){return null!=t&&"object"==typeof t}},61882(t,e,n){n.d(e,{A:()=>o});var i=n(18348),r=n(53098);let o=function(t){return"symbol"==typeof t||(0,r.A)(t)&&"[object Symbol]"==(0,i.A)(t)}},41127(t,e,n){n.d(e,{A:()=>f});var i=/\s/;let r=function(t){for(var e=t.length;e--&&i.test(t.charAt(e)););return e};var o=/^\s+/,s=n(23149),l=n(61882),u=0/0,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,h=/^0o[0-7]+$/i,d=parseInt;let f=function(t){if("number"==typeof t)return t;if((0,l.A)(t))return u;if((0,s.A)(t)){var e,n="function"==typeof t.valueOf?t.valueOf():t;t=(0,s.A)(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=(e=t)?e.slice(0,r(e)+1).replace(o,""):e;var i=c.test(t);return i||h.test(t)?d(t.slice(2),i?2:8):a.test(t)?u:+t}}}]); //# sourceMappingURL=75999-8b712b86e441ee4c-2ffabadabe058907.js.map