import{t as e}from"./api-base-url-DIb6qukm.js";import{t}from"./queryOptions-DgMxBJDn.js";import{a as n}from"./query-timing-CO3WQkW1.js";import{d as r,i,n as a}from"./schemas-BwLRjo3Z.js";import{n as o}from"./api-paths-CFdXXr7u.js";var s=r({emailDeliveryMode:a([`manual-link`,`smtp`]),hasUsers:i(),publicSignupAllowed:i(),signupMode:a([`first-user`,`invite-only`])});async function c(){let t=await fetch(`${e()}${o}`,{credentials:`include`});if(!t.ok)throw Error(`Failed to load auth bootstrap state`);let n=await t.json().catch(()=>null);return s.parse(n)}function l(){return t({queryFn:c,queryKey:[`auth`,`bootstrap-state`],staleTime:n})}export{l as t};