1),
          window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (t) => {
            (autoDarkmode = 'auto' === localStorage.getItem('darkmode') || localStorage.getItem('darkmode') === null) &&
              (t.matches ? e(!0) : e(!1));
          });
      } else {
        const e = localStorage.getItem('theme') ? localStorage.getItem('theme') : null;
        e && document.documentElement.setAttribute('data-theme', e);
      }
      const currentColorTheme = localStorage.getItem('