performance.mark("js-parse-end:77440-4a1edb90d0d4865c.js"); "use strict";(globalThis.webpackChunk_github_ui_github_ui=globalThis.webpackChunk_github_ui_github_ui||[]).push([["77440"],{29501(e,t,r){r.d(t,{mf:()=>E.RelayEnvironmentProvider,VB:()=>b,SD:()=>T,E7:()=>S});var n=r(40961),a=r(69487),i=r(81904);let s=[{kind:"linked",handle(e,t,r){if(null!=t&&t.getType()===a.ROOT_TYPE&&"node"===e.name&&r.hasOwnProperty("id"))return r.id}},{kind:"pluralLinked",handle(e,t,r){if(null!=t&&t.getType()===a.ROOT_TYPE&&"nodes"===e.name&&r.hasOwnProperty("ids"))return r.ids}}];var o=r(79708),l=r(86830),u=r(25649),c=r(69982);function d(e){return(0,c.unstable_scheduleCallback)(c.unstable_LowPriority,e)}var h=r(37337);r(97398);var p=r(25989),f=r(66743),m=r(7909),y=r(81306),g=r(59767),E=r(18312);function _(e){let t=e?.ttl,r=e?.defaultValues,n=e?.[p.Zm.EXCLUDE_FROM_CACHE_KEY],a=e?.preheatSource,i=e?.skipCache;return{cacheTTL:t,defaultValues:r,keysToExclude:n,preheatSource:a,skipCache:i,skipNetwork:e?.[p.Zm.SKIP_NETWORK],cacheEnabledForQuery:void 0!==t&&t>0}}async function v({params:e,variables:t,baseUrl:r,enabledFeatures:n,observer:a,isClientSideCachingEnabled:s,cache:o,metadata:l,preloadSubscriptions:u}){if(!e.id)throw Error("Params has no id property!");let{cacheTTL:c,defaultValues:d,keysToExclude:h,preheatSource:f,skipCache:m,skipNetwork:y,cacheEnabledForQuery:g}=_(l),E="mutation"===e.operationKind?"POST":"GET",w=s=>(0,i.Ay)(e.id,e.name,t,E,r,n,a,s,m?"force_refresh":f);return o&&s&&g&&"mutation"!==e.operationKind?o.persisterFn({queryFn:w,observer:a,preloadSubscriptions:u},{queryId:e.id,queryName:e.name,variables:t},c,{preheat_source:f,[p.Zm.EXCLUDE_FROM_CACHE_KEY]:h,[p.Zm.SKIP_NETWORK]:y,skip_cache:m},d):w()}let w={cancel:()=>!1,schedule:e=>((0,n.unstable_batchedUpdates)(e),"")};class b{relayNetwork;ssrPreloadedData;preloadedSubscriptions;warningsShown;enabled_features;maxAge;cache;stalePreloadedData;markPreloadedDataAsStale;constructor(e,t={},r,n,s,c,d,f){this.ssrPreloadedData=e,this.enabled_features=t,this.preloadedSubscriptions=r,this.warningsShown=new Set,this.maxAge=s,this.cache=c,this.stalePreloadedData=d??!1,this.markPreloadedDataAsStale=f,this.relayNetwork=a.Network.create((e,t,r)=>a.Observable.create(a=>{let i=function({params:e,variables:t,ssrPreloadedQueries:r,baseUrl:n,emitWarning:a,enabledFeatures:i,maxAge:s,observer:o,cache:l,metadata:u,stalePreloadedData:c,preloadSubscriptions:d}){if(!e.id)throw Error("params has no id property!");let f=(0,m.M3)(),E=e.metadata?.defaultValues;if(e.id&&r){let n=(0,g.NA)(t,E),a=r.get(e.id)?.get(n),i=Math.floor(Date.now()/1e3),u=a?.timestamp;if(a){o.next(a);let r={queryId:e.id,queryName:e.name,variables:t},n=!1;if(a.injectedByServiceWorker&&((0,y.CI)("service-worker"),(0,y.aY)(r,"hit-sw"),n=!0),!(s&&u&&i>u+s)&&!c){if(f&&l){let t=e.metadata?.ttl;if(void 0!==t&&t>0){let i=a.serverCacheTTL,s=i??t;l.tryCacheFetchResult(r,a,s,{query_name:e.name,update_type:"preloaded",server_cache_ttl:i},E),n||(0,y.aY)(r,"ssr")}}o.complete();return}}e.metadata?.isRelayRouteRequest&&(0,h.g5)()}let w={...u??{},...e.metadata};if(h.KJ&&f&&"mutation"!==e.operationKind){let{keysToExclude:r,preheatSource:n,skipCache:a,cacheEnabledForQuery:i,defaultValues:s}=_(w);if(i&&!n&&!a){let n=`${p.vp}-${(0,m.cj)()}`,a=(0,p.KE)(n,{queryId:e.id,queryName:e.name,variables:t},s,r);a&&a!==y.uY&&(d?.(a),o.next(a),(0,y.CI)("hot-cache"))}}if(h.KJ)return v({params:e,variables:t,baseUrl:n,enabledFeatures:i,observer:o,isClientSideCachingEnabled:f,cache:l,metadata:w,preloadSubscriptions:d})}({params:e,variables:t,ssrPreloadedQueries:this.ssrPreloadedData,baseUrl:n,emitWarning:e=>{this.warningsShown.has(e)||(this.warningsShown.add(e),console.warn(e))},enabledFeatures:this.enabled_features,maxAge:s,observer:a,cache:this.cache,metadata:r.metadata,stalePreloadedData:this.stalePreloadedData,preloadSubscriptions:this.preloadSubscriptions.bind(this)});i instanceof Promise&&i.then(e=>{Array.isArray(e)||this.preloadSubscriptions(e),e&&a.next(e),a.complete()}),"mutation"===e.operationKind&&(this.stalePreloadedData=!0,this.markPreloadedDataAsStale?.(!0))}),(e,t)=>(function(e,t,r=new Map){let n=e.id,s=e.name;return a.Observable.create(a=>{let c=()=>{},d=!1;return async function(){if(!n)throw Error("unexpected operation with no id!");let h=e.metadata?.scope,p=function(e,t,r,n){let a=n.get(e);if(a)e:for(let[e,n]of a){for(let[n,a]of Object.entries(JSON.parse(e)))if("$scope"===n&&r!==a||t[n]!==a)continue e;return n}}(n,t,h,r),f=null;if(p)f=p.subscriptionId,p.response&&a.next(p.response);else try{let e=await (0,i.XT)(n,s,t,"GET",{isSubscription:!0,scope:h});f=e.subscriptionId,e.response&&a.next(e.response)}catch(e){if(e instanceof Error&&e.message.includes("Subscription halted"))return;throw e}try{let e=await (0,o.H)();if(d)return;let r=(0,l.$)(e,f,async({scope_object:e,subscription_topic:r,dispatch_time:o})=>{try{let{response:l}=await (0,i.XT)(n,s,{...t},"GET",{isSubscription:!0,scopeObject:e,subscriptionTopic:r,dispatchTime:o,scope:h});l&&a.next(l)}catch(e){(0,u.N7)(e,{message:`Error in fetching update for ${n} with variables ${JSON.stringify(t)}`})}});r?.unsubscribe&&(c=r.unsubscribe)}catch(e){a.error(e)}}(),{get closed(){return d},unsubscribe(){d=!0,c()}}})})(e,t,this.preloadedSubscriptions))}preloadSubscriptions(e){if(e&&"extensions"in e&&e.extensions&&e.extensions.subscriptions){let t=e.extensions.subscriptions;for(let e in t)for(let r in this.preloadedSubscriptions.has(e)||this.preloadedSubscriptions.set(e,new Map),t[e])this.preloadedSubscriptions.get(e)?.set(r,t[e][r])}}execute(e,t,r){return this.relayNetwork.execute(e,t,r)}getPreloadedSubscriptions(){return this.preloadedSubscriptions}}let S=e=>{let t;h.KJ&&(t=(0,p.VC)({sendAnalyticsEvent:(e,t,r={})=>{try{let n={react:!0,version:p.L7};(0,f.BI)(e,{...n,...r,target:t})}catch{}},reportableEvents:p.Zf.ANY}));let r=new b(new Map,{},new Map,e,void 0,t),n=new a.Environment({scheduler:w,store:new a.Store(new a.RecordSource,{gcReleaseBufferSize:50,queryCacheExpirationTime:3e5,gcScheduler:d}),getDataID:(e,t)=>{if("Viewer"===t)return null==e.id?(0,a.generateClientID)("client:root","viewer"):e.id;if("ProjectV2SingleSelectFieldOption"===t){let t=[];return e.id&&t.push(e.id),e.name&&t.push(e.name),e.color&&t.push(e.color),e.description&&t.push(function(e){let t=0;if(0===e.length)return t;for(let r=0;rr.getPreloadedSubscriptions()},n};function T({environment:e,query:t,variables:r={},metadata:n}){let i=(0,a.getRequest)(t),s=(0,a.createOperationDescriptor)(i,r);return e.retain(s),(0,a.fetchQuery)(e,t,r,{fetchPolicy:"store-or-network",networkCacheConfig:{metadata:n}})}},70148(e,t,r){r.d(t,{a:()=>i});let n={status:"CLOSED",nextAttemptTime:null,failureCount:0},a="offline_cache.circuit_breaker";class i{#e;#t;#r=null;constructor(e,t){this.#e=e,this.#r=t,this.#t=n}reportFailure=(e,t,r)=>{switch(this.#t.lastErrorType&&this.#t.lastErrorType!==e&&this.#n(e),e){case"RateLimitError":return this.#a(t,r);case"ServiceUnavailableError":return this.#i();default:return}};reportSuccess=()=>{this.#t={status:"CLOSED",nextAttemptTime:null,failureCount:0},this.#r?.(a,"success_reported")};getStatus=()=>{if("CLOSED"===this.#t.status)return"CLOSED";console.log("nextAttemptTime:",this.#t.nextAttemptTime,"currentTime:",Date.now());let e=Date.now();return this.#t.nextAttemptTime&&e>=this.#t.nextAttemptTime?(this.#t={status:"CLOSED",nextAttemptTime:null,failureCount:0},"CLOSED"):"OPEN"};#a=(e,t)=>{let r=null;if(void 0!==e){let t=1e3*e,n=Math.random()*t*.05;r=Date.now()+t+n}else r=void 0!==t?1e3*t+5e3*Math.random():this.#s(this.#t.failureCount+1);let n=(this.#t.failureCount||0)+1,i=this.#o(this.#t,n),s={status:i,nextAttemptTime:r,failureCount:n,lastErrorType:"RateLimitError"};this.#t=s,this.#r?.(a,"error_reported",{error_type:"RateLimitError",new_status:i,failure_count:n,next_attempt_time:r})};#i=()=>{let e=this.#s(this.#t.failureCount+1),t=(this.#t.failureCount||0)+1,r="OPEN";this.#t={status:r,nextAttemptTime:e,failureCount:t,lastErrorType:"ServiceUnavailableError"},this.#r?.(a,"error_reported",{error_type:"ServiceUnavailableError",new_status:r,failure_count:t,next_attempt_time:e})};#n=e=>{this.#t={status:"CLOSED",nextAttemptTime:null,failureCount:0,lastErrorType:e}};#s=e=>{let t=Math.min(5e3*2**(e-1),3e5),r=Math.random()*t*.25;return Date.now()+(t+r)};#o=(e,t)=>"OPEN"===e.status||t>=1?"OPEN":"CLOSED";handlePreheatResponse=(e,t)=>{if(e){let e=this.#l(t);e.shouldBackoff&&this.reportFailure(e.errorType??"Unknown",e.retryAfter,e.resetTime)}else"OPEN"===this.#t.status&&this.reportSuccess()};#l=e=>{if(!e)return{shouldBackoff:!1};if("object"==typeof e&&"extensions"in e&&"object"==typeof e.extensions&&null!==e.extensions&&"backoff"in e.extensions){let t=e.extensions,r="string"==typeof t.errorType?t.errorType:void 0,n="number"==typeof t.retryAfter?t.retryAfter:void 0,a="number"==typeof t.resetTime?t.resetTime:void 0;return{shouldBackoff:!!t.backoff,errorType:r,retryAfter:n,resetTime:a}}return{shouldBackoff:!1}}}},81306(e,t,r){r.d(t,{CI:()=>l.CI,KE:()=>c,XA:()=>d,Zm:()=>a.Z,aY:()=>o.aY,uY:()=>a.u});var n=r(70148),a=r(85951),i=r(29965),s=r(60080),o=r(13251),l=r(59767),u=r(73537);function c(e,t,r,n){let s=(0,l.hz)(e,t,r,n),u=i.G0.getItem(s);if(u)return u.queryHash!==t.queryId?a.u:((0,o.aY)(t,"hit-hot"),i.G0.sendAnalyticsEvent(i.Ad,s,{}),u.state.data)}function d({storage:e,prefix:t,maxAgeMs:r,sendAnalyticsEvent:c}){let h=`${t}-circuit-breaker`,p=new n.a(h,c);async function f(t,r,n){if(e)try{let i=await e.getItem(t,(0,l.pv)(n));if(i&&i.queryHash!==r.queryId)return a.u;return i?.state.data}catch(e){c(s.Zf.CACHE_READ_ERROR,t,{error:String(e)});return}}async function m(t){if(e)try{i.G0.removeItem(t),await e.removeItem(t)}catch(e){c(s.Zf.CACHE_EVICT_ERROR,t,{error:String(e)})}}async function y(r,n,o,d,h,p){if(!e||!(0,u.G7)("issues_react_relay_cache_index")&&("IssueIndexPageQuery"===r.queryName||"IssueRowSecondaryQuery"===r.queryName))return;let f=d?.[a.Z.EXCLUDE_FROM_CACHE_KEY],m=(0,l.hz)(t,r,h,f),y=(0,l.Ku)(r,o,h,f,p,n);try{p&&i.G0.setItem(m,y),await e.setItem(m,y,void 0,void 0,(0,l.pv)({...d,query_name:r.queryName}))}catch(e){c(s.Zf.CACHE_WRITE_ERROR,m,{error:String(e)})}}return(0,o.mk)(c),i.G0.init(c),{persisterFn:async function(e,n,s,d,h){let g;if(!(0,u.G7)("issues_react_relay_cache_index")&&("IssueIndexPageQuery"===n.queryName||"IssueRowSecondaryQuery"===n.queryName))return e.queryFn();let E=d?.[a.Z.EXCLUDE_FROM_CACHE_KEY],_=(0,l.hz)(t,n,h,E),v=await f(_,n,d),w=void 0!==v&&v!==a.u,b=d?.preheat_source,S=!!b,T=!!d?.skip_cache,A=!!d?.[a.Z.SKIP_NETWORK];if(w?((0,l.R1)(n),S||T||((0,o.aY)(n,"hit"),e.preloadSubscriptions?.(v),e.observer.next(v),(0,l.CI)())):(0,o.aY)(n,"miss"),S&&w&&!T){let e=(0,l.Ku)(n,s??r,h,E,b,v);i.G0.setItem(_,e),c("offline_cache.preheat_noop",_,{preheatSource:b})}if((0,l.HR)(A,b,w,p))return;try{g=await e.queryFn(w)}catch(e){if(w)return T||(0,l.ud)([{message:e instanceof Error?e.message:"Unknown error"}]),v;throw e}let C=g?.serverCacheTTL,x=C??s??r,R=(0,l.Cs)(g);if(w&&R&&!T&&(0,l.ud)(g.errors),S&&p.handlePreheatResponse(R,g),(0,l.FH)(g,v)&&m(_),(0,l.Gx)(g)){let e=(0,l.mj)(v,g,S,T);y(n,g,x,{...d,update_type:e,server_cache_ttl:C},h,b)}if(!S)return g},retrieveQuery:f,tryCacheFetchResult:y}}},59767(e,t,r){r.d(t,{CI:()=>g,Cs:()=>m,FH:()=>f,Gd:()=>s,Gx:()=>E,HR:()=>v,Ku:()=>p,NA:()=>o,R1:()=>_,hz:()=>d,mj:()=>u,pv:()=>h,ud:()=>y,wY:()=>l});var n=r(85951),a=r(51189),i=r(13759);let s=12096e5;function o(e,t){var r;let n=(r=e,{...t,...r});return JSON.stringify(n,Object.keys(n).sort())}function l(e){let t={};if("operation"in e)for(let r of e.operation.argumentDefinitions)void 0!==r.defaultValue&&null!==r.defaultValue&&(t[r.name]=r.defaultValue);return Object.keys(t).length>0?t:void 0}function u(e,t,r,n){if(n)return"force_refresh";if(!e)return r?"pre_heated":"new";let a=null,i=null;return"object"==typeof t&&null!==t&&"data"in t&&(i=JSON.stringify(t.data)),e&&"object"==typeof e&&null!==e&&"data"in e&&(a=JSON.stringify(e.data)),a!==i?"changed":"unchanged"}function c(e,t,r){let n={...t,...Object.fromEntries(Object.entries(e??{}).filter(([,e])=>void 0!==e))},a=Object.keys(n).sort(),i={};for(let e of a){if(Array.isArray(r)&&r.includes(e))continue;let t=n[e];null!=t&&(i[e]=t)}return i}function d(e,t,r,n){let a=c(t.variables,r,n);return`${e}-${t.queryName}#${JSON.stringify(a)}`}function h(e){if(!e)return;let t={};for(let[r,a]of Object.entries(e))Object.values(n.Z).includes(r)||(t[r]=a);return t}function p(e,t,r,n,a,i){return{queryHash:e.queryId,variables:c(e.variables,r,n),state:{data:i,dataUpdatedAt:Date.now(),ttl:t,preheatSource:a}}}function f(e,t){return!!t&&(t===n.u||!!e&&m(e))}function m(e){return"object"==typeof e&&null!==e&&"errors"in e&&Array.isArray(e.errors)&&e.errors.length>0}function y(e){"u">typeof window&&window.dispatchEvent(new CustomEvent("stale-cache-warning",{detail:{errors:e}}))}function g(e="indexed-db"){"u"0)}function _(e){(0,i.Av)({__trace:{query_name:e.queryName,query_id:e.queryId,query_variables:e.variables,duration_ms:1,cache_result:"hit"}})}function v(e,t,r,n){return!!e||!!t&&("OPEN"===n.getStatus()||!!r&&"force_refresh"!==t)||!1}},13251(e,t,r){r.d(t,{aY:()=>f,mk:()=>d});var n=r(51189),a=r(37337),i=r(73537);let s=/^https?:\/\/[^/]+\/([^/]+)\/([^/]+)\/issues\/(\d+)(?:\?[^#]*)?(?:#.*)?$/,o=/^https?:\/\/[^/]+\/([^/]+)\/([^/]+)\/issues(?:\?[^#]*)?(?:#.*)??$/,l={lastResult:null,pendingEvent:null,pendingEventTime:null,pendingQueryVariables:null,listenerRegistered:!1,sendAnalyticsEvent:null,enabled:!1,resourceMetricsEnabled:!1},u=()=>{l.lastResult=null,l.pendingEvent=null,l.pendingEventTime=null,l.pendingQueryVariables=null},c=[{type:"css",initiatorType:"link",extension:".css"},{type:"js",initiatorType:"script",extension:".js"}],d=e=>{l.enabled||(l.sendAnalyticsEvent=e,m(),l.enabled=!0,l.resourceMetricsEnabled=!0)},h=(e,t,r)=>{if(null===t)return;let s=(0,i.G7)("defer_required_bundles_after_react")?"true":"false";if((0,n.au)({name:"ISSUES_SHOW_HPC",value:e.detail.hpc,tags:{cpu:e.detail.cpu||"unknown",cache_result:t,mechanism:e.detail.mechanism||"unknown",ssr:(0,a.g5)()?"true":"false",did_load_global_required_bundles_after_react:s,page:r||"unknown"}},void 0,1),l.sendAnalyticsEvent){let n,i,o=((n=performance.getEntriesByType("navigation")).length>0&&n[0]?.serverTiming||[]).map(e=>({name:e.name,duration:e.duration})),u=l.resourceMetricsEnabled?(i=performance.getEntriesByType("resource"),c.map(e=>{let t={type:e.type,count:0,maxDuration:0,totalDuration:0,biggestResourceName:null},r=0,n=0,a=null;for(let s of i)if(s.initiatorType===e.initiatorType&&s.name.endsWith(e.extension)){let e=s.responseEnd-s.requestStart;t.count++,t.maxDuration=Math.max(t.maxDuration,e),r=0===r?s.requestStart:Math.min(r,s.requestStart),n=Math.max(n,s.responseEnd),(!a||e>a.responseEnd-a.requestStart)&&(a=s)}return t.totalDuration=n-r,a&&(t.biggestResourceName=a.name),t})):[];l.sendAnalyticsEvent("issues.hpc","issue-show"===r?"issue#show":"issue-index"===r?"issue#index":"unknown",{hpc:e.detail.hpc,cpu:e.detail.cpu||"unknown",cache_result:t,mechanism:e.detail.mechanism||"unknown",server_timing:JSON.stringify(o),resource_stats:JSON.stringify(u),ssr:(0,a.g5)(),did_load_global_required_bundles_after_react:s})}},p=e=>{var t;let r=(t=window.location.href,s.test(t)?"issue-show":o.test(t)?"issue-index":null);if(null!==r&&(!l.pendingQueryVariables||y(l.pendingQueryVariables,e.detail.name)))if(null!==l.lastResult){let t=l.lastResult;u(),h(e,t,r)}else l.pendingEvent=e,l.pendingEventTime=Date.now()},f=(e,t)=>{var r;if(!l.enabled)return;let n="IssueViewerViewQuery"===(r=e.queryName)?"issue-show":"IssueIndexPageQuery"===r?"issue-index":null;if(null!==n&&null!==t&&y(e.variables)&&null===l.lastResult&&(l.lastResult=t,l.pendingQueryVariables=e.variables,l.pendingEvent)){let e=l.lastResult,t=l.pendingEvent,r=Date.now()-(l.pendingEventTime||0);u(),r<=500&&h(t,e,n)}},m=()=>{l.listenerRegistered||(document.addEventListener("web-vitals:hpc",p),l.listenerRegistered=!0)};function y(e,t){if(!e)return!1;let r=s.exec(t||window.location.href);if(r){let[,t,n,a]=r;return e.owner===t&&e.repo===n&&String(e.number)===a}let n=o.exec(t||window.location.href);if(n){let[,t,r]=n;return e.owner===t&&e.name===r}return!1}},29965(e,t,r){let n;r.d(t,{Ad:()=>a,G0:()=>o});let a="hot_cache.hit",i=new class{#u;#c;constructor(e){this.#u=new Map,this.#c=e}get(e){let t=this.#u.get(e);return void 0!==t&&(this.#u.delete(e),this.#u.set(e,t)),t}set(e,t){if(this.#u.has(e)&&this.#u.delete(e),this.#u.set(e,t),this.#u.size>this.#c){let e=this.#u.keys().next().value;void 0!==e&&this.#u.delete(e)}}delete(e){this.#u.delete(e)}clear(){this.#u.clear()}get size(){return this.#u.size}}(250);function s(e,t,r){n&&n("hot_cache.error",t,{error_type:e,error_message:r instanceof Error?r.message:"Unknown error"})}let o={init(e){n=e},getItem(e){try{return i.get(e)}catch(t){s("get_item",e,t);return}},setItem(e,t){try{i.set(e,t)}catch(t){s("set_item",e,t)}},removeItem(e){try{i.delete(e)}catch(t){s("remove_item",e,t)}},sendAnalyticsEvent(...e){n?.(...e)},clear(){i.clear()},size:()=>i.size}},25989(e,t,r){r.d(t,{KE:()=>i.KE,L7:()=>u,VC:()=>c,Zf:()=>n.Zf,Zm:()=>i.Zm,vp:()=>o});var n=r(60080),a=r(7909),i=r(81306);r(59767);let s={Check:e=>"object"==typeof e&&null!==e&&(void 0===e.data||"object"==typeof e.data)&&(void 0===e.errors||!!Array.isArray(e.errors)),Code:()=>"manual-validator",Errors:()=>[]},o="relay-query",l=6048e5,u="1.0.12",c=({sendAnalyticsEvent:e,reportableEvents:t=n.Zf.ANY,maxAgeMs:r=l})=>{let u=(0,n.i5)({validator:s,sendAnalyticsEvent:(r,...a)=>{t!==n.Zf.NONE&&(t===n.Zf.ANY||Array.isArray(t)&&t.includes(r))&&e(r,...a)}});return(0,i.XA)({storage:u,prefix:`${o}-${(0,a.cj)()}`,maxAgeMs:r,sendAnalyticsEvent:e})}},85951(e,t,r){r.d(t,{Z:()=>a,u:()=>n});let n={},a={EXCLUDE_FROM_CACHE_KEY:"exclude_from_cache_key",SKIP_NETWORK:"skip_network"}},46943(e,t,r){r.d(t,{z:()=>d});var n=r(34619),a=r(73537),i=r(35205);let s="VERSION_MISMATCH_LAST_TRIGGERED",o=(0,i.A)("localStorage",{ttl:9e7,throwQuotaErrorsOnSet:!1}),l=null,u=new class{canTrigger(){let e=this.getLastTriggerTime();return null===e||Date.now()-e>=864e5}recordTrigger(){let e=Date.now();o.setItem(s,e.toString()),l=e}getLastTriggerTime(){let e=o.getItem(s);if(e){let t=parseInt(e,10);return isNaN(t)?null:t}return l}clearTriggerRecord(){o.removeItem(s),l=null}};class c{#d=new Map;registerApp(e,t){this.#d.set(e,t)}unregisterApp(e){this.#d.delete(e)}checkResponse(e,t){if("true"!==e.headers.get("X-GitHub-Version-Mismatch")||!(0,a.G7)("react_version_mismatch_detection")||!u.canTrigger())return!1;let r={clientVersion:(0,n.O)(),serverVersion:e.headers.get("X-GitHub-Server-Version")||void 0,requestUrl:e.url,responseHeaders:e.headers,appName:t};if(u.recordTrigger(),t){let e=this.#d.get(t);if(e)return e.onMismatchDetected(r),!0}else{let e=!1;for(let[t,n]of this.#d.entries()){let a={...r,appName:t};n.onMismatchDetected(a),e=!0}return e}return!1}}let d=new c}}]); //# sourceMappingURL=77440-4a1edb90d0d4865c-6a52a74910ed87ed.js.map