import{b as i}from"./index-CRkL0E25.js";import{M as o}from"./main-B2ajQvEX.js";import"./index-JQkw9yeP.js";const e=o(),u=i(async({router:t})=>{t.beforeEach(async r=>!e.branding.registrationCompleted&&r.path!=="/register"?"/register":(r.meta.requiresAuth&&e.isAuthorize&&!Object.keys(e.config).length&&await e.initialize(),r.meta.requiresAuth&&!e.isAuthorize&&e.logout(),!0))});export{u as default};
