performance.mark("js-parse-end:memex-index-a6dc776786248a5e.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["97071"],{83877(e,t,n){var r=n(49481),i=n(56341);document.addEventListener("turbo:load",()=>{!function(){let e=document.getElementById("project-search-input");if(!e)return;let t=new URL(window.location.href,window.location.origin);t.searchParams.has("is_search")&&(t.searchParams.delete("is_search"),(0,i.bj)(t.toString()),e?.focus(),e?.setSelectionRange(e.value.length,e.value.length),setTimeout(()=>{let e=document.getElementById("projects-search-results-text");e&&(0,r.C)(e)},1e3))}()})},49481(e,t,n){n.d(t,{C:()=>a,i:()=>u});var r=n(26316),i=n(73537),o=n(46493);function a(e,t){(0,i.G7)("arianotify_comprehensive_migration")?u(c(e),{...t,element:t?.element??e}):(0,i.G7)("primer_live_region_element")&&t?.element===void 0?(0,o.Cj)(e,{politeness:t?.assertive?"assertive":"polite"}):u(c(e),t)}function u(e,t){let{assertive:n,element:a}=t??{};if((0,i.G7)("arianotify_comprehensive_migration"))try{(a?.isConnected?a:r.XC).ariaNotify(e,{priority:n?"high":"normal"})}catch(e){console.error("Error calling ariaNotify:",e)}else{var u,c;let t;(0,i.G7)("primer_live_region_element")&&void 0===a?(0,o.iP)(e,{politeness:n?"assertive":"polite"}):(u=e,c=n,(t=a??r.XC?.querySelector(c?"#js-global-screen-reader-notice-assertive":"#js-global-screen-reader-notice"))&&(t.textContent===u?t.textContent=`${u}\u00A0`:t.textContent=u))}}function c(e){return(e.getAttribute("aria-label")||e.innerText||"").trim()}n(89272)},7909(e,t,n){let r;function i(){let e=(void 0)??r;if(!e)throw Error("Client env was requested before it was loaded. This likely means you are attempting to use client env at the module level in SSR, which is not supported. Please move your client env usage into a function.");return e}function o(){return i().locale??"en-US"}function a(){return!!i().login}function u(){return i().login}if(n.d(t,{JK:()=>o,M3:()=>a,_$:()=>i,cj:()=>u}),"u">typeof document){let e=document.getElementById("client-env");if(e)try{r=JSON.parse(e.textContent||"")}catch(e){console.error("Error parsing client-env",e)}}},73537(e,t,n){n.d(t,{G7:()=>c,XY:()=>l,fQ:()=>u});var r=n(5225),i=n(7909);function o(){return new Set((0,i._$)().featureFlags)}let a=n(37337).X3||function(){try{return process?.env?.STORYBOOK==="true"}catch{return!1}}()?o:(0,r.A)(o);function u(){return Array.from(a())}function c(e){return a().has(e)}let l={isFeatureEnabled:c}},56341(e,t,n){n.d(t,{C3:()=>c,JV:()=>o,K3:()=>h,MM:()=>l,OE:()=>d,Qb:()=>p,Zu:()=>f,bj:()=>a,jc:()=>s,kd:()=>u});var r=n(26316);let i=null;function o(){return r.Kn?.state||{}}function a(e){g(o(),"",e)}function u(e){r.Kn?.pushState({appId:o().appId},"",e),v()}function c(e){let t={...o(),...e};i&&(i=t),g(t,"",location.href)}function l(e){a(`?${e.toString()}${r.fV.hash}`)}function s(){a(r.fV.pathname+r.fV.hash)}function f(e){a(e.startsWith("#")?e:`#${e}`),(i=o())&&requestIdleCallback(()=>{!history.state&&i&&(c(i),i=null)})}function h(){a(r.fV.pathname+r.fV.search)}function d(){r.Kn?.back()}function p(){r.Kn?.forward()}function g(e,t,n){r.Kn?.replaceState(e,t,n),v()}function v(){r.cg?.dispatchEvent(new CustomEvent("statechange",{bubbles:!1,cancelable:!1}))}},26316(e,t,n){n.d(t,{Kn:()=>a,XC:()=>i,cg:()=>o,fV:()=>u});let r="u">typeof FORCE_SERVER_ENV&&FORCE_SERVER_ENV,i="u"o,X3:()=>i,g5:()=>a});var r=n(26316);let i=void 0===r.XC,o=!i;function a(){return!!i||!r.XC||!!(r.XC.querySelector('react-app[data-ssr="true"]')||r.XC.querySelector('react-partial[data-ssr="true"][partial-name="repos-overview"]'))}},5225(e,t,n){function r(...e){return JSON.stringify(e,(e,t)=>"object"==typeof t?t:String(t))}function i(e,t={}){let{hash:n=r,cache:o=new Map}=t;return function(...t){let r=n.apply(this,t);if(o.has(r))return o.get(r);let i=e.apply(this,t);return i instanceof Promise&&(i=i.catch(e=>{throw o.delete(r),e})),o.set(r,i),i}}n.d(t,{A:()=>i})}},function(e){e.O(0,["7053"],function(){return e(e.s=83877)}),e.O()}]); //# sourceMappingURL=memex-index-a6dc776786248a5e-5914ff037fc1b526.js.map