const o="light",s="dark",a="auto",c=a;function n(){const e=document.getElementById("config-carrier");return parseInt(e?.dataset.hue||"250")}function u(){const e=localStorage.getItem("hue");return e?parseInt(e):n()}function m(e){localStorage.setItem("hue",String(e));const t=document.querySelector(":root");t&&t.style.setProperty("--hue",e)}function r(e){switch(e){case o:document.documentElement.classList.remove("dark");break;case s:document.documentElement.classList.add("dark");break;case a:window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}}function d(e){localStorage.setItem("theme",e),r(e)}function l(){return localStorage.getItem("theme")||c}export{a as A,s as D,o as L,n as a,l as b,d as c,r as d,u as g,m as s};