1import{g as h}from"./DEe_Cnm9.js";import{u as r,t as g,d as u}from"./BeFoK14g.js";function p(){r.set(h(u)==="dark"?"light":"dark")}function w(t){r.set(t)}function L(){r.set("system")}function S(t){g.set(t)}function b(t){return t}function v({defaultMode:t="system",themeColors:n,darkClassNames:o=["dark"],lightClassNames:c=[],defaultTheme:f="",modeStorageKey:d="mode-watcher-mode",themeStorageKey:a="mode-watcher-theme"}){const e=document.documentElement,i=localStorage.getItem(d)||t,s=localStorage.getItem(a)||f,m=i==="light"||i==="system"&&window.matchMedia("(prefers-color-scheme: light)").matches;if(m?(o.length&&e.classList.remove(...o),c.length&&e.classList.add(...c)):(c.length&&e.classList.remove(...c),o.length&&e.classList.add(...o)),e.style.colorScheme=m?"light":"dark",n){const l=document.querySelector('meta[name="theme-color"]');l&&l.setAttribute("content",i==="light"?n.light:n.dark)}s&&(e.setAttribute("data-theme",s),localStorage.setItem(a,s)),localStorage.setItem(d,i)}export{v as a,S as b,b as d,L as r,w as s,p as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.