var e=new Set([`tauri`,`hosted_web`,`mock`]);function t(t){return typeof t==`string`&&e.has(t)?t:null}function n(){return!!window.__TAURI_INTERNALS__}function r(){return n()?`tauri`:t(window.__ORCHESTRA_HOST_MODE__)||(t(void 0)??`mock`)}function i(){return r()===`hosted_web`}export{n,i as t};