2 lines
1.8 KiB
JavaScript
2 lines
1.8 KiB
JavaScript
import"../chunks/Bg9kRutz.js";import{p as $,o as w,F as q,a as j,H as a,n as M,I as o,J as m,G as T}from"../chunks/D0cbGK1B.js";import{s as z}from"../chunks/gz-FRm8U.js";import{i as D,s as H,a as v}from"../chunks/YkN13DnH.js";import{t as u,a as p}from"../chunks/pJtClZPV.js";import{s as J,a as O,t as f}from"../chunks/CI6WDjWi.js";import{b as g}from"../chunks/BcVkNKII.js";import{i as W,aJ as A,aK as E}from"../chunks/Bxv0Jr1M.js";const F=!0,G=!0,I=!1,K="ignore",Y=Object.freeze(Object.defineProperty({__proto__:null,csr:G,prerender:F,ssr:I,trailingSlash:K},Symbol.toStringTag,{value:"Module"}));var L=u('<div class="absolute left-0 top-0 z-50 flex h-screen w-screen justify-center bg-gray-600 align-middle opacity-50 svelte-6pksaq"><div class="my-auto text-4xl font-bold text-indigo-100 svelte-6pksaq"><div class="loader mx-auto svelte-6pksaq"></div> <div class="svelte-6pksaq"> </div></div></div>'),P=u('<main class="h-screen text-primary-content svelte-6pksaq"><!></main> <!>',1);function Z(h,i){$(i,!0);const[n,_]=H(),k=()=>v(f,"$themeStore",n),l=()=>v(E,"$loadingStateStore",n);w(()=>{window.addEventListener("hashchange",()=>{W()}),"serviceWorker"in navigator&&navigator.serviceWorker.register(`${g}/service-worker.js`,{scope:`${g}/`}).then(function(e){console.log("Registration successful, scope is:",e.scope)}).catch(function(e){console.log("Service worker registration failed, error:",e)});const t=window.matchMedia("(prefers-color-scheme: dark)").matches;k().theme===void 0&&O(t?"dark":"light"),f.subscribe(({theme:e,isDark:s})=>{e&&(document.querySelectorAll("html")[0].dataset.theme=e,A(s))})});var c=P(),r=q(c),S=a(r);J(S,()=>i.children??M),o(r);var b=m(r,2);{var y=t=>{var e=L(),s=a(e),d=m(a(s),2),x=a(d,!0);o(d),o(s),o(e),T(()=>z(x,l().message)),p(t,e)};D(b,t=>{l().loading&&t(y)})}p(h,c),j(),_()}export{Z as component,Y as universal};
|