function e(){let e=window.glob?.theme;if(e===`auto`||e===`next`)return`auto`;if(e===`light`||e===`dark`)return e;if(e===`next-light`)return`light`;if(e===`next-dark`)return`dark`;let t=window.getComputedStyle(document.body),n=t.getPropertyValue(`--theme-style`);return t.getPropertyValue(`--theme-style-auto`)!==`true`&&(n===`light`||n===`dark`)?n:`auto`}function t(){let t=e();return t===`auto`?window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:t===`dark`?`dark`:`light`}export{e as n,t};