1import{aA as e,n as a,Y as r,L as s,aB as t}from"./BPuzE2Iz.js";const n=e(async e=>{let n,i;const o=e.path.replace(/\/$/,""),u=o.startsWith("/en/")||"/en"===o?"/en":"";if("/supermanage"===o||"/en/supermanage"===o)return a(`${u}/supermanage/blog`,{replace:!0});const d=r("supermanage-access-state",()=>"checking"),c=s();if(!c.isHydrating||!c.payload.serverRendered||"authorized"!==d.value){"authorized"!==d.value&&"forbidden"!==d.value&&(d.value="checking");try{const e=globalThis.$fetch,a=([n,i]=t(()=>e("/api/supermanage/access")),n=await n,i(),n);return 0!==a.code||"admin"!==a.data?.role&&"superadmin"!==a.data?.role?401===a.code?void(d.value="login-required"):void(d.value="forbidden"):void(d.value="authorized")}catch(l){const e=l,a=e.statusCode??e.status??e.response?.status;if(401===a)return void(d.value="login-required");if(403===a)return void(d.value="forbidden")}return a("/",{replace:!0})}});export{n 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.