',page=(_bgicon.innerHTML=_logo,{active:()=>{_upp.classList.remove(_s.s),_upp.classList.add(_s.h),_refsBtn.classList.add(_s.h),_loading.classList.remove(_s.h),_bg.classList.remove(_s.z,_s.s),_bg.classList.add(_s.h,_s.z),_offBtn.classList.remove(_s.s,_s.d)},deactive:()=>{_upp.classList.remove(_s.s),_upp.classList.add(_s.h),_refsBtn.classList.add(_s.h),_loading.classList.remove(_s.h),_offBtn.classList.add(_s.s),_bg.classList.remove(_s.h),_bg.classList.add(_s.s),_bgicon.classList.remove(_s.h)},loading:()=>{page.deactive(),_upp.classList.remove(_s.h),_upp.classList.add(_s.s),_refsBtn.classList.remove(_s.h),_loading.classList.add(_s.h)}});if("fonts"in document){const g=[{name:"bootstrap-icons",file:"url( /assets/css/fonts/bootstrap-icons.woff2 )"},{name:"bootstrap-icons",file:"url( /assets/css/fonts/bootstrap-icons.woff )"}],h=g.map(async t=>new Promise((s,e)=>{new FontFace(t.name,t.file).load().then(function(e){s(e)}).catch(function(e){console.log("load font fail",e),s(!0)})}));Promise.all(h).then(e=>{page.active()})}document.getElementsByTagName("body")[0].classList.remove(_s.h),"serviceWorker"in navigator&&navigator.serviceWorker.register("serviceworker.js").then(t=>{t.addEventListener("updatefound",e=>{const s=t.installing;updating=!0,s.postMessage({action:"skipWaiting"}),s.addEventListener("statechange",e=>{"activated"==s.state&&(updating=!1,page.active(),t.update(),refreshNotice(!0))})})}),"undefined"!=typeof WebSocket&&void 0!==window.localStorage&&(void 0!==window.indexedDB||void 0===window.mozIndexedDB&&void 0===window.webkitIndexedDB&&void 0===window.msIndexedDB)||(_bghead.hidden=!1,_bg.classList.add(_s.b),_bghead.innerHTML=txt(updating?"updating":"error.unsupportBrowser"))