import{c as createStore}from"./index3.js";import{g as getSerializedState}from"./utils.js";const{user:user}=getSerializedState(),VERIFIED="verified",VERIFYING="verifying",CODE_SENT="code_sent",UNVERIFIED="unverified",CODE_EXPIRED="code_expired",{state:state,onChange:onChange,dispose:dispose}=createStore({loggedIn:!1,email:"",name:"",avatarUrl:"",verificationStatus:null,...user}),resetUser=()=>{state.loggedIn=!1,state.email="",state.name="",state.avatarUrl="",state.verificationStatus=null};export{CODE_SENT as C,UNVERIFIED as U,VERIFYING as V,CODE_EXPIRED as a,VERIFIED as b,onChange as o,resetUser as r,state as s};