export const __webpack_ids__=["9446"];export const __webpack_modules__={62637:function(e,t,h){h.d(t,{u:()=>ThemeController});let ThemeController=class ThemeController{#e;constructor(e){this.#e=e,this.#e.addController(this),this.value="light dark",this.initialValue="light dark"}_updateTheme(e){let t=e instanceof CustomEvent&&this._lightOrDark(e.detail);t||=this._lightOrDark(document.documentElement.style.colorScheme),t||=this._matchMedia?.matches?"dark":"light";let h=this.value;this.value=t,this.#e.requestUpdate("ThemeController.value",h)}_lightOrDark(e){switch(e){case"light":return"light";case"dark":return"dark";default:return}}hostConnected(){this._updateTheme=this._updateTheme.bind(this),globalThis.addEventListener("mdn-color-theme-update",this._updateTheme),this._matchMedia=globalThis.matchMedia("(prefers-color-scheme: dark)"),this._matchMedia.addEventListener("change",this._updateTheme),this._updateTheme(),this.initialValue=this.value}hostDisconnected(){this._matchMedia?.removeEventListener("change",this._updateTheme)}}}};
//# sourceMappingURL=9446.6d988a8f041d78f2.js.map