PageSourceSearch

https://www.alphaxiv.org/assets/user-CykBGS61.js

js alphaxiv.org collected 2026-09-24 08:54:47 UTC 21,131 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0d141-a0d5-79b2-b1ae-ae0a40eb37af")}catch(e){}}();import{r as e}from"./rolldown-runtime-Cyuzqnbw.js";import{c as t,u as n}from"./api-client-B4K8ujp2.js";import{B as r,F as i,G as a,I as ee,J as te,K as o,L as s,P as ne,V as re,W as ie,X as ae,Y as oe,Z as se,a as ce,c as le,f as c,j as ue,k as de,n as fe,q as pe,r as l,s as me,t as u,u as he,v as ge,w as d,x as f,z as _e}from"./react-query-helpers-C8jLwNbo.js";import{i as p,n as m,r as h,t as g}from"./classPrivateFieldGet2-CB7J8LIR.js";import{t as ve}from"./classPrivateMethodInitSpec-BBga4MBS.js";import{a as ye,h as _,n as be,r as xe,t as Se,x as Ce}from"./live-query-Cd6tVY8X.js";import{C as we,S as Te,a as v,b as y,g as b,h as x,i as S,l as Ee,m as De,o as C,v as Oe}from"./zod-CDBm8hoR.js";import{r as ke}from"./landing-page-DOzpPz3J.js";import{u as Ae}from"./translations-vXY5-pkU.js";var w,T,E,D,O,je=(w=new WeakMap,T=new WeakMap,E=new WeakMap,D=new WeakMap,O=new WeakSet,class extends ne{constructor(e){super(),ve(this,O),p(this,w,void 0),p(this,T,void 0),p(this,E,void 0),p(this,D,void 0),m(w,this,e.client),this.mutationId=e.mutationId,m(E,this,e.mutationCache),m(T,this,[]),this.state=e.state||Me(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){g(T,this).includes(e)||(g(T,this).push(e),this.clearGcTimeout(),g(E,this).notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){m(T,this,g(T,this).filter(t=>t!==e)),this.scheduleGc(),g(E,this).notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){g(T,this).length||(this.state.status===`pending`?this.scheduleGc():g(E,this).remove(this))}continue(){return g(D,this)?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{h(O,this,k).call(this,{type:`continue`})},n={client:g(w,this),meta:this.options.meta,mutationKey:this.options.mutationKey};m(D,this,i({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{h(O,this,k).call(this,{type:`failed`,failureCount:e,error:t})},onPause:()=>{h(O,this,k).call(this,{type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>g(E,this).canRun(this)}));let r=this.state.status===`pending`,a=!g(D,this).canStart();try{if(r)t();else{h(O,this,k).call(this,{type:`pending`,variables:e,isPaused:a}),g(E,this).config.onMutate&&await g(E,this).config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&h(O,this,k).call(this,{type:`pending`,context:t,variables:e,isPaused:a})}let i=await g(D,this).start();return await g(E,this).config.onSuccess?.(i,e,this.state.context,this,n),await this.options.onSuccess?.(i,e,this.state.context,n),await g(E,this).config.onSettled?.(i,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(i,null,e,this.state.context,n),h(O,this,k).call(this,{type:`success`,data:i}),i}catch(t){try{await g(E,this).config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await g(E,this).config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw h(O,this,k).call(this,{type:`error`,error:t}),t}finally{g(E,this).runNext(this)}}});function k(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPau
1sed:!1,status:`error`}}};this.state=t(this.state),s.batch(()=>{g(T,this).forEach(t=>{t.onMutationUpdate(e)}),g(E,this).notify({mutation:this,type:`updated`,action:e})})}function Me(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var A,j,M,Ne=(A=new WeakMap,j=new WeakMap,M=new WeakMap,class extends se{constructor(e={}){super(),p(this,A,void 0),p(this,j,void 0),p(this,M,void 0),this.config=e,m(A,this,new Set),m(j,this,new Map),m(M,this,0)}build(e,t,n){var r;let i=new je({client:e,mutationCache:this,mutationId:m(M,this,(r=g(M,this),++r)),options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){g(A,this).add(e);let t=N(e);if(typeof t==`string`){let n=g(j,this).get(t);n?n.push(e):g(j,this).set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(g(A,this).delete(e)){let t=N(e);if(typeof t==`string`){let n=g(j,this).get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&g(j,this).delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=N(e);if(typeof t==`string`){let n=g(j,this).get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=N(e);return typeof t==`string`?(g(j,this).get(t)?.find(t=>
1t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){s.batch(()=>{g(A,this).forEach(e=>{this.notify({type:`removed`,mutation:e})}),g(A,this).clear(),g(j,this).clear()})}getAll(){return Array.from(g(A,this))}find(e){let t={exact:!0,...e};return this.getAll().find(e=>ie(t,e))}findAll(e={}){return this.getAll().filter(t=>ie(e,t))}notify(e){s.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return s.batch(()=>Promise.all(e.map(e=>e.continue().catch(o))))}});function N(e){return e.options.scope?.id}var P,Pe=(P=new WeakMap,class extends se{constructor(e={}){super(),p(this,P,void 0),this.config=e,m(P,this,new Map)}build(e,t,n){let r=t.queryKey,i=t.queryHash??re(r,t),a=this.get(i);return a||(a=new ue({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){g(P,this).has(e.queryHash)||(g(P,this).set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=g(P,this).get(e.queryHash);t&&(e.destroy(),t===e&&g(P,this).delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){s.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return g(P,this).get(e)}getAll(){return[...g(P,this).values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>a(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>a(e,t)):t}notify(e){s.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){s.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){s.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}),F,I,L,R,z,B,V,H,Fe=(F=new WeakMap,I=new WeakMap,L=new WeakMap,R=new WeakMap,z=new WeakMap,B=new WeakMap,V=new WeakMap,H=new WeakMap,class{constructor(e={}){p(this,F,void 0),p(this,I,void 0),p(this,L,void 0),p(this,R,void 0),p(this,z,void 0),p(this,B,void 0),p(this,V,void 0),p(this,H,void 0),m(F,this,e.queryCache||new Pe),m(I,this,e.mutationCache||new Ne),m(L,this,e.defaultOptions||{}),m(R,this,new Map),m(z,this,new Map),m(B,this,0)}mount(){var e;m(B,this,(e=g(B,this),e++,e)),g(B,this)===1&&(m(V,this,ae.subscribe(async e=>{e&&(await this.resumePausedMutations(),g(F,this).onFocus())})),m(H,this,ee.subscribe(async e=>{e&&(await this.resumePausedMutations(),g(F,this).onOnline())})))}unmount(){var e;m(B,this,(e=g(B,this),e--,e)),g(B,this)===0&&(g(V,this)?.call(this),m(V,this,void 0),g(H,this)?.call(this),m(H,this,void 0))}isFetching(e){return g(F,this).findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return g(I,this).findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return g(F,this).get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=g(F,this).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(te(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return g(F,this).findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=g(F,this).get(r.queryHash)?.state.data,a=_e(t,i);if(a!==void 0)return g(F,this).build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return s.batch(()=>g(F,this).findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return g(F,this).get(t.queryHash)?.state}removeQueries(e){let t=g(F,this);s.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=g(F,this);return s.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=s.batch(()=>g(F,this).findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(o).catch(o)}invalidateQueries(e,t={}){return s.batch(()=>(g(F,this).findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=s.batch(()=>g(F,this).findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(o)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(o)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=g(F,this).build(this,t);return n.isStaleByTime(te(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(o).catch(o)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(o).catch(o)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return ee.isOnline()?g(I,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return g(F,this)}getMutationCache(){return g(I,this)}getDefaultOptions(){return g(L,this)}setDefaultOptions(e){m(L,this,e)}setQueryDefaults(e,t){g(R,this).set(r(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...g(R,this).values()],n={};return t.forEach(t=>{pe(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){g(z,this).set(r(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...g(z,this).values()],n={};return t.forEach(t=>{pe(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...g(L,this).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=re(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===oe&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...g(L,this).mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){g(F,this).clear(),g(I,this).clear()}});function Ie(e){let t=new URL(e);return t.hostname===`alphaxiv.org`||t.hostname===`www.alphaxiv.org`?`alphaxiv_auth`:`alphaxiv_${t.hostname===`localhost`?`localhost_${t.port||(t.protocol===`https:`?`443`:`80`)}`:t.hostname.endsWith(`.alphaxiv.org`)?t.hostname.slice(0,-13).replaceAll(`.`,`_`):`unknown_${t.hostname.replaceAll(`.`,`_`)}`}_auth`}var Le=e=>`${e}_session_summary`,Re=e=>`${e}_pending_verification`,ze=[{id:`default`,label:`Balanced`,description:`Balanced, conversational responses.`},{id:`concise`,label:`Concise`,description:`Short, direct answers.`},{id:`tutor`,label:`Tutor`,description:`Step-by-step, teaching-oriented.`},{id:`thorough`,label:`Thorough`,description:`Detailed, thorough explanations.`},{id:`skeptical`,label:`Skeptical`,description:`Questions assumptions, highlights limitations.`}],Be=e=>typeof e==`string`&&ze.some(t=>t.id===e),Ve=Te([S([`default`,`concise`,`tutor`,`thorough`,`skeptical`]),_.assistant_styles]),He=[`added`,`name`,`modified`,`manual`],Ue={added:`Date added`,name:`Name`,modified:`Last modified`,manual:`Custom`};function We(e){let t=f(e.id);for(let n of e.papers)t=Math.max(t,new Date(n.addedAt).getTime());return t}function Ge(e,t,n=!1){let r=[...e];switch(t){case`name`:r.sort((e,t)=>
1e.name.localeCompare(t.name));break;case`modified`:r.sort((e,t)=>We(t)-We(e));break;case`manual`:r.sort((e,t)=>e.order-t.order);break;default:r.sort((e,t)=>f(t.id)-f(e.id))}return n?r.reverse():r}var Ke=[`added`,`name`,`published`,`votes`],qe={added:`Date added`,name:`Name`,published:`Date published`,votes:`Most liked`};function Je(e,t,n=!1){let r=(e,t)=>new Date(t.addedAt).getTime()-new Date(e.addedAt).getTime(),i=[...e];switch(t){case`name`:i.sort((e,t)=>e.title.localeCompare(t.title));break;case`published`:i.sort((e,t)=>new Date(t.publicationDate).getTime()-new Date(e.publicationDate).getTime());break;case`votes`:i.sort((e,t)=>t.votes-e.votes||r(e,t));break;default:i.sort(r)}return n?i.reverse():i}var Ye=b({id:y(),externalIds:v(we()).nullable().optional(),homepage:y().nullable().optional(),paperCount:x().nullable().optional(),citationCount:x().nullable().optional(),hIndex:x().nullable().optional()}),Xe=S([`light`,`dark`,`system`]),Ze=S([`assistant`,`notes`,`similar`]),Qe=S([`comments`,`assistant`,`similar`,`notes`]),$e=S([`abstract`,`pdf`]),et=S([`user`,`reviewer`,`admin`,`bot`]),tt=v(b({type:S([`full_size`,`thumbnail`]),url:y()})),nt=b({id:_.users,username:y(),realName:y(),avatar:tt.nullable(),researcherSlug:y().nullable(),institution:y().nullable(),googleScholarId:y().nullable(),reputation:x(),weeklyReputation:x()}),rt=b({id:y(),title:y(),speaker:y().nullable(),organization:y().nullable(),link:y().nullable(),date:y(),recording:y().nullable()}),it=b({universal_paper_id:y(),title:y(),abstract:y().nullable(),publication_date:y()}),at=v(b({id:_.assistant_styles,name:y().min(1),instructions:y().min(1)}));Te([b({type:De(`video`),data:rt}),b({type:De(`paper`),data:it})]);var ot=S([`off`,`full`]),st=b({preferredLlmModel:y().nullable(),preferredLlmFollowLatestCategory:y().nullable(),preferredLlmThinking:y().nullable(),assistantStyleSelection:Ve,assistantCustomStyles:at,preferredLanguage:Ae.nullable(),showModelThinking:C(),webSearch:ot,isDebugModeEnabled:C(),theme:Xe.nullable(),isDarkModeEnabled:C(),defaultPublicPaperSidebarTab:Qe.nullable(),defaultPrivatePaperSidebarTab:Ze.nullable(),defaultPaperPage:$e,readingModeEnabled:C(),toolingPaneWidth:x().nullable(),feedSort:S(ke),hasSeenResearcherOnboarding:C(),hasSeenForYouOnboarding:C(),hasSeenAssistantIntro:C(),hidesHomeAssistantIntro:C(),hasCompletedOnboarding:C(),showLikedPapersPublicly:C(),folderSort:S(He),folderSortReversed:C(),paperSort:S(Ke),paperSortReversed:C()}),ct=b({id:_.user_banner_preferences,type:S([`success`,`info`,`warning`,`error`]),name:y(),link:y().nullable()}),lt=b({base:st,folders:v(b({folderId:_.folders,opened:C()})),email:b({directNotifications:C(),relevantActivity:C(),bounced:C()}),banners:v(ct)}),ut=nt.extend({verified:C(),role:et,orcidId:y().nullable(),githubUsername:y().nullable(),xUsername:y().nullable(),linkedinUsername:y().nullable(),blueskyUsername:y().nullable(),publicEmail:y().nullable()});ut.extend({biography:y().nullable(),location:y().nullable(),semanticScholar:Ye.nullable(),followerCount:x(),followingCount:x(),followingTopicsCount:x(),featured:v(b({type:S([`video`,`paper`]),eventId:y().nullable(),paperVersionId:y().nullable()})).optional(),followingOrganizations:v(_.paper_organizations).optional()}).extend({email:y(),preferences:lt,followingTopics:v(y()),votedPaperGroups:v(_.paper_groups),requestedImplementations:v(_.paper_groups)}),b({directNotifications:C(),relevantActivity:C(),bounced:C()});var U=S([`go`,`pro-base`,`pro-extended`]);b({tier:U,endsAt:Ee(),cancelAtPeriodEnd:C(),pastDue:C()});var dt=b({id:_.users,email:y(),realName:y(),username:y(),role:et,avatarUrl:y().nullable(),researcherSlug:y().nullable().optional(),tier:U.nullable(),feedSort:Oe(e=>e===`Recommended`?`ForYou`:e,S(ke)).optional(),feedPersonalized:C().optional(),hasSeenForYouOnboarding:C().optional(),hidesHomeAssistantIntro:C().optional(),defaultPaperPage:$e.optional(),hasCompletedOnboarding:C().optional(),preferredLanguage:Ae.nullable().optional(),preferredLlmModel:y().nullable().optional(),preferredLlmFollowLatestCategory:y().nullable().optional(),preferredLlmThinking:y().nullable().optional(),impersonated:C().optional(),issuedAt:x().optional()}),ft=typeof window>`u`,pt=void 0;function mt(){return new Fe({defaultOptions:{queries:{staleTime(e){return e.queryHash===`["posthog"]`?1/0:30*1e3},gcTime:ft?1/0:600*1e3,retry(e,r){return e>=3||r instanceof t?!1:!!n(r).networkError}}}})}var W=ft?()=>{try{return de()}catch{throw Error(`getQueryClient cannot be used server-side`)}}:()=>pt??=mt(),ht=e({SESSION_SUMMARY_COOKIE_NAME:()=>G,clearQueriesOnSignedOut:()=>Ot,getCurrentUserId:()=>yt,getCurrentUserVotes:()=>Nt,hasPendingVerificationCookie:()=>_t,invalidateSessionSummary:()=>Z,queryCurrentUserFollowedTopics:()=>Ct,queryCurrentUserPreferences:()=>St,queryCurrentUserVotes:()=>$,queryPrivateNotes:()=>Rt,querySessionSummary:()=>Y,queryUserEmailPreferences:()=>xt,queryUserProfile:()=>Q,readSessionSummaryCookie:()=>
1q,reconcileSessionFromResponse:()=>vt,syncSessionSummaryCookie:()=>J,updateUserProfileQueryData:()=>wt,useBanners:()=>It,useCurrentUser:()=>kt,useCurrentUserFollowedTopics:()=>Pt,useCurrentUserPreferences:()=>jt,useCurrentUserVotes:()=>Mt,useEmailPreferences:()=>Ft,usePrivateNotes:()=>zt,useSessionSummary:()=>X,useUser:()=>At}),G=Le(Ie(`https://www.alphaxiv.org`)),gt=Re(Ie(`https://www.alphaxiv.org`));function _t(){return ge(gt)!=null}var K=null;function q(){let e=ge(G)??null;if(K=e,!e)return null;try{let t=dt.safeParse(JSON.parse(e));return t.success?t.data:null}catch{return null}}function J(){(ge(G)??null)!==K&&Z()}function vt(e){let t=K!==null;J(),e===401&&t&&!q()&&Ot()}function yt(){return q()?.id??null}var Y=l([`session-summary`],()=>q());function X(){return d({...Y,staleTime:1/0,initialData:q}).data??null}var bt=typeof document>`u`?null:q()?.id??null;function Z(){let e=q()?.id??null;e!==bt&&(bt=e,ye()),W().invalidateQueries({queryKey:Y.queryKey})}var Q=l(e=>[`user`,e],async({queryKey:[,e]})=>await c(`GET /users/v3/{id}`,{id:e}).unwrap()),xt=l([`email-preferences`],async()=>(await c(`GET /v2/users/preferences/email`,{}).unwrap()).data),St=be(`user-preferences`,{applyEventToCache({next:e}){return e}}),$=be(`user-votes`,{applyEventToCache({prev:e,next:t}){let n=e??[];return t.type===`remove`?n.filter(e=>e!==t.id):n.includes(t.id)?n:[...n,t.id]}}),Ct=l(e=>[`user`,e,`following-topics`],async({queryKey:[,e]})=>{let{topics:t}=await c(`GET /users/v3/{id}/following/topics`,{id:e}).unwrap();return t.map(e=>e.topic)});function wt(e,t){let n=W();typeof t==`function`?me(n,Q(e),e=>t(e)):le(n,Q(e),t)}var Tt=[`infinite-trending-papers`,`paper-group`,`paper-version`],Et=`posthog`;function Dt(e){return e[0]===Y.queryKey[0]||e[0]===Et?!0:e.length===2&&Tt.includes(e[0])}function Ot(){let e=W();e.removeQueries({predicate:({queryKey:e})=>!Dt(e)}),e.invalidateQueries({queryKey:[Et]}),Z()}function kt(e){let t=X();return{...d({...t?Q(t.id):u,...e}),isLoggedIn:!!t}}function At(e,t){return d({...e?Q(e):u,...t})}function jt(e){let t=X()?.id??null;return xe(t?St(t):Se,e)}function Mt(e){let t=X()?.id??null;return xe(t?$(t):Se,e)}function Nt(){let e=yt();return e?ce(W(),$(e).raw)??[]:[]}function Pt(e){let t=X()?.id??null;return d({...t?Ct(t):u,...e})}function Ft(e){let{isLoggedIn:t}=kt();return he({...t?xt:u,...e})}function It(){return jt({select:e=>e.banners}).data??[]}var Lt=10,Rt=fe({queryKey:e=>[`private-notes`,e],initialPageParam:0,staleTime:1e3*60*5,queryFn:async({pageParam:e})=>{let{data:t}=await c(`GET /v1/users/{uid}/notes`,{uid:`placeholder`,query:{page:e.toString(),limit:Lt.toString()}}).unwrap();return{data:{comments:t.comments??[],total:t.total??0,page:e}}},getNextPageParam:e=>e.data.comments.length===Lt?e.data.page+1:void 0});function zt(e){return Ce({...Rt(e||``),enabled:!!e})}export{ut as A,X as C,mt as D,W as E,Ge as F,Je as I,ze as L,Ue as M,Ke as N,U as O,qe as P,Be as R,zt as S,ht as T,kt as _,_t as a,Mt as b,St as c,Y as d,xt as f,It as g,wt as h,Nt as i,He as j,nt as k,$ as l,J as m,Ot as n,Z as o,q as p,yt as r,Ct as s,G as t,Rt as u,Pt as v,At as w,Ft as x,jt as y};
2//# sourceMappingURL=user-CykBGS61.js.map
3//# chunkId=01a0d141-a0d5-79b2-b1ae-ae0a40eb37af

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.