1import{d7 as f,$ as k,a0 as d,X as l,b as p,aa as i,af as a,d8 as T}from"./BT8-XOxk.js";const x=f(async t=>{let s,n;const{runWithContext:o}=k(),e=d(),u=l(),r=p(),c=i("token"),h=i("refreshToken");if(!e.getToken&&c.value){e.setTokens({token:c.value,refreshToken:h.value});return}if(!e.getToken)return o(()=>a(r(`/auth/log-in?from=protected&redirect=${t.path}`)));if(e.isAnonymous)return o(()=>a(r(`/auth/log-in?from=protected&redirect=${t.path}`)));if(!u.user)try{[s,n]=T(()=>u.fetchUser()),await s,n()}catch{return o(()=>a(r(`/auth/log-in?from=protected&redirect=${t.path}`)))}});export{x as default};
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.