Advent-Incremental/assets/index.d0c73308.js

16 lines
133 KiB
JavaScript
Raw Normal View History

/* empty css */import"./vue.92681fcb.js";import{Z as S,u as Sn,q as Ht,C as a,b1 as Le,aa as V,aE as _,a0 as M,a1 as m,aK as Ue,G as ie,t as D,aC as Yn,w as Ie,b2 as $e,a8 as c,O as B,ao as Es,I as ae,ay as cn,ar as bt,aG as Qt,A as de,_ as R,b6 as O,b8 as Mn,bs as As,aq as _t,bu as Rt,bb as dn,T as Vs,a7 as y,j as Bs,l as ue,bv as Gn,J as L,$ as x,aH as Je,aF as Xe,al as sn,aL as dt,aN as ge,z as Ze,H as qs,aJ as Zn,bn as Ls,br as Rs,be as Gs}from"./@vue.4ce677c2.js";import{i as Us}from"./is-plain-object.906d88e8.js";import{c as Jn}from"./nanoevents.1080beb7.js";import{L as ut}from"./lz-string.731cedc5.js";import{Y as Hs}from"./vue-next-select.a2bfab1d.js";import{s as js,u as Xn}from"./vue-toastification.6f567382.js";import{D as zs}from"./vuedraggable.7949458c.js";import{p as Ws}from"./vue-textarea-autosize.35804eaf.js";import{v as Ks,n as Ys}from"./workbox-window.8d14e8b7.js";import"./sortablejs.29100d8a.js";const Zs=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerpolicy&&(r.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?r.credentials="include":i.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(i){if(i.ep)return;i.ep=!0;const r=n(i);fetch(i.href,r)}};Zs();const Js="modulepreload",Un={},Xs="./",rn=function(t,n){return!n||n.length===0?t():Promise.all(n.map(s=>{if(s=`${Xs}${s}`,s in Un)return;Un[s]=!0;const i=s.endsWith(".css"),r=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${s}"]${r}`))return;const o=document.createElement("link");if(o.rel=i?"stylesheet":Js,i||(o.as="script",o.crossOrigin=""),o.href=s,document.head.appendChild(o),i)return new Promise((u,f)=>{o.addEventListener("load",u),o.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())},Qs="./projInfo-schema.json",ei="Advent Incremental",ti="An incremental game you play a day at a time, leading up to Christmas!",ni="advent-incremental",si="thepaperpilot",ii="",ri="",ai="0.2",li="Initial Commit",oi=!0,ui=!1,ci=2,di=!0,fi=null,mi="",pi=["main"],hi=3600,gi=0,vi=!0,yi="base64";var z={$schema:Qs,title:ei,description:ti,id:ni,author:si,discordName:ii,discordLink:ri,versionNumber:ai,versionTitle:li,allowGoBack:oi,defaultShowSmall:ui,defaultDecimalsShown:ci,useHeader:di,banner:fi,logo:mi,initialTabs:pi,maxTickLength:hi,offlineLimit:gi,enablePausing:vi,exportEncoding:yi};const Nn=17,bi=9e15,_i=Math.log10(9e15),Ni=1/9e15,wi=308,ki=-324,Hn=5,Ci=function(){const e=[];for(let n=ki+1;n<=wi;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),ht=[2,Math.E,3,4,5,6,7,8,9,10],Si=[[1,1.0891168053867777,1.1789745164521264,1.2701428397304229,1.3632066654400328,1.4587804913784246,1.557523817412741,1.660158301473385,1.767487542936873,1.8804205225512542,2],[1,1.1121114330934,1.23103892493161,1.35838369631113,1.49605193039935,1.64635423375119,1.81213853570186,1.99697132461829,2.20538955455724,2.44325744833852,Math.E],[1,1.1187738849693603,1.2464963939368214,1.38527004705667,1.5376664685821402,1.7068895236551784,1.897001227148399,2.1132403089001035,2.362480153784171,2.6539010333870774,3],[1,1.1367350847096405,1.2889510672956703,1.4606478703324786,1.6570295196661111,1.8850062585672889,2.1539465047453485,2.476829779693097,2.872061932789197,3.3664204535587183,4],[1,1.1494592900767588,1.319708228183931,1.5166291280087583,1.748171114438024,2.0253263297298045,2.3636668498288547,2.7858359149579424,3.3257226212448145,4.035730287722532,5],[1,1.159225940787673,1.343712473580932,1.5611293155111927,1.8221199554561318,2.14183924486326,2.542468319282638,3.0574682501653316,3.7390572020926873,4.6719550537360774,6],[1,1.1670905356972596,1.3632807
`,e),await vt(Mt())}}function Mt(){const e=tn(),t=us({id:e});return Ve(t),te.saves.push(e),t}function tn(){let e,t=0;do e=`${z.id}-${t++}`;while(localStorage.getItem(e));return e}async function vt(e){console.info("Loading save",e);const{layers:t,removeLayer:n,addLayer:s}=await rn(()=>Promise.resolve().then(function(){return vr}),void 0),{fixOldSave:i,getInitialLayers:r}=await rn(()=>Promise.resolve().then(function(){return ks}),void 0);for(const o in t){const u=t[o];u&&n(u)}r(e).forEach(o=>s(o,e)),e=us(e),e.offlineProd&&e.time&&(e.offlineTime==null&&(e.offlineTime=0),e.offlineTime+=(Date.now()-e.time)/1e3),e.time=Date.now(),e.modVersion!==z.versionNumber&&i(e.modVersion,e),Object.assign(P,e),te.active=P.id,ve.emit("onLoad")}setInterval(()=>{P.autosave&&Ve()},1e3);window.onbeforeunload=()=>{P.autosave&&Ve()};window.save=Ve;const Ki=window.hardReset=async()=>{await vt(Mt())},Ut=Ht({active:"",saves:[],showTPS:!0,theme:$n.Nordic,unthrottled:!1});Le(Ut,e=>{const t=ut.compressToUTF16(JSON.stringify(e));localStorage.setItem(z.id,t)},{deep:!0});var te=window.settings=Ut;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:$n.Nordic};ve.emit("loadSettings",e),Object.assign(Ut,e),Ki()};function Yi(){try{let e=localStorage.getItem(z.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=ut.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(Ut,t)}ve.emit("loadSettings",Ut)}catch{}}const cs=Ht([]);function Zi(e){cs.push(e)}const Ji=Ht([]),Xi=Ht([]),Qi={class:"table"},nn=V({__name:"Column",setup(e){const t=S(()=>zt[te.theme].mergeAdjacent);return(n,s)=>(_(),M("div",Qi,[m("div",{class:ie(["col",{mergeAdjacent:a(t)}])},[Ue(n.$slots,"default")],2)]))}}),er={class:"table"},ds=V({__name:"Row",setup(e){const t=S(()=>zt[te.theme].mergeAdjacent);return(n,s)=>(_(),M("div",er,[m("div",{class:ie(["row",{mergeAdjacent:a(t)}])},[Ue(n.$slots,"default")],2)]))}});function fs(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Es(e)}function j(e,t="span"){return typeof e=="function"?V({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}</${t}>`),V({template:e})):V({render:()=>({})}):e}function me(e){if(pt(e))return typeof e=="function"?e():j(e);const t=e[ft];return c(t,e[mt](),null)}function qe(...e){let t;return c(ds,null,fs(t=e.map(me))?t:{default:()=>[t]})}function tr(...e){let t;return c(nn,null,fs(t=e.map(me))?t:{default:()=>[t]})}function He(e){if(pt(e))return typeof e=="function"?e():typeof e=="string"?c(B,null,[e]):c(e,null,null);const t=e[ft];return c(t,e[mt](),null)}function pt(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[Gt]===!0}function ms(e,t,n){const s=D(null),i=D(void 0);function r(f){s.value||(s.value=setInterval(u,250)),i.value=f,n&&(n.value=!0)}function o(){s.value&&(clearInterval(s.value),s.value=null),n&&(n.value=!1)}function u(){t&&t.value?t.value():e&&e.value&&e.value(i.value)}return Yn(o),{start:r,stop:o,handleHolding:u}}function ps(e,t="div"){const n=Ie();return $e(()=>{n.value=j(le(e),t)}),n}function Pt(e,t="div"){const n=Ie(null);return $e(()=>{const s=le(e);n.value=s==null?null:j(s,t)}),n}function nr(e){return S(()=>le(e))}function le(e){return a(a(e))}function T(...e){return e.includes(Object)||e.push(Object),e}const xe=V({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,n)=>(_(),M("div",{style:ae({width:e.width,height:e.height})},null,4))}});var K=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n};const sr=V({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var h;const n=D({}),s=new ResizeObserver(u),i=D(null);cn(()=>{const v=i.value;v!=null&&s.observe(v)});let r=!0,o=D((h=i.value)==null?void 0:h.getBoundingClientRect());function u(){r&&(r=!1,bt(()=>{var v;o.value=(v=i.value)==null?void 0:v.getBoundingClientRect(),Object.values(n.value).filter
`).slice(3,5).map(t=>t.trim()).join(`
`))||""}function Se(e){const t=ue(e)?e:D(e);return t[Cn]=t,t[on]=ue(e)?e.value:e,t[un]=mr(),t[gs]=!1,Be.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",t,`
Created at:
`+t[un]):$t[Be[Be.length-1]].add(t),t}ve.on("addLayer",(e,t)=>{const n=[],s=(i,r=[])=>{let o=!1;return Object.keys(i).forEach(u=>{const f=i[u];if(f&&typeof f=="object")if(Cn in f){if(o=!0,f[gs]){console.warn("Deleted persistent ref present in returned object. Ignoring...",f,`
Created at:
`+f[un]);return}$t[e.id].delete(ne in f?f[ne]:f);const d=r.reduce((v,b)=>(b in v||(v[b]={}),v[b]),t),h=d[u];d[u]=f[Cn],Bs(d)?h!=null?d[u]=h:d[u]=f[on]:h!=null?d[u].value=h:d[u].value=f[on]}else!(f instanceof l)&&!ue(f)&&!n.includes(f)&&(typeof f.type=="symbol"&&n.push(f),s(f,[...r,u])&&(Gn(f)&&!Gn(i)?console.warn("Found array that contains persistent values when adding layer. Keep in mind changing the order of elements in the array will mess with existing player saves.",ne in i?i[ne]:i,u):o=!0))}),o};s(e),$t[e.id].forEach(i=>{console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,i,`
Created at:
`+i[un])}),$t[e.id].clear()});const Pn=Symbol("RegisterNode"),Tn=Symbol("UnregisterNode"),Fn=Symbol("Nodes"),xn=Symbol("Bounds"),pe=Sn({});window.layers=pe;const $t={},Be=[];function Wt(e,t){return Oe(()=>{const n={},s=n.emitter=Jn();if(n.on=s.on.bind(s),n.emit=s.emit.bind(s),n.nodes=D({}),n.id=e,Be.push(e),$t[e]=new Set,n.minimized=Se(!1),Object.assign(n,t.call(n)),Be[Be.length-1]==null||Be[Be.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
Stack: ${Be}
Trying to pop ${n.id}`;return Be.pop(),F(n,"color"),F(n,"display"),F(n,"name"),he(n,"name",n.id),F(n,"minWidth"),he(n,"minWidth",600),F(n,"minimizable"),he(n,"minimizable",!0),n})}function vs(e,t){if(console.info("Adding layer",e.id),pe[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,pe[e.id]);return}he(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),pe[e.id]=e,ve.emit("addLayer",e,t.layers[e.id])}function pr(e){return pe[e]}function ys(e){console.info("Removing layer",e.id),ve.emit("removeLayer",e),pe[e.id]=void 0}function hr(e){ys(e),vs(e,P)}function gr(e){const t=D(!1);return{openModal:()=>t.value=!0,modal:A(()=>c(je,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>c("h2",null,[a(e.name)]),body:a(e.display)}))}}ve.on("update",function(t){Object.values(pe).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(pe).forEach(n=>{n==null||n.emit("update",t)}),Object.values(pe).forEach(n=>{n==null||n.emit("postUpdate",t)})});var vr=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:Pn,UnregisterNodeInjectionKey:Tn,NodesInjectionKey:Fn,BoundsInjectionKey:xn,layers:pe,persistentRefs:$t,addingLayers:Be,createLayer:Wt,addLayer:vs,getLayer:pr,removeLayer:ys,reloadLayer:hr,setupLayerModal:gr},Symbol.toStringTag,{value:"Module"}));const yr={},br={class:"notif"};function _r(e,t){return _(),M("div",br,"!")}var Kn=K(yr,[["render",_r],["__scopeId","data-v-66323fd4"]]);const mn=e=>(Je("data-v-949cc93c"),e=e(),Xe(),e),Nr={key:0,class:"day feature dontMerge opened"},wr={class:"date"},kr=y("Dec"),Cr=mn(()=>m("br",null,null,-1)),Sr={class:"date"},Mr=y("Dec"),$r=mn(()=>m("br",null,null,-1)),Pr=mn(()=>m("div",{class:"doors"},null,-1)),Tr={class:"date"},Fr=y("Dec"),xr=mn(()=>m("br",null,null,-1)),Ir={key:0,class:"material-icons lock"},Dr=V({__name:"Day",props:{day:null,symbol:null,opened:null,shouldNotify:null},emits:["openLore","openLayer","unlockLayer"],setup(e,{emit:t}){const n=e,s=S(()=>l.gte(G.day.value,n.day)&&new Date().getMonth()===11&&new Date().getDate()>=n.day);function i(){s.value&&t("unlockLayer")}return(r,o)=>e.opened.value?(_(),M("div",Nr,[c(dn,{appear:"",name:"door"},{default:O(()=>[m("div",{class:"doors",onClick:o[0]||(o[0]=u=>t("openLayer"))},[m("div",wr,[kr,Cr,y(L(e.day),1)]),m("div",Sr,[Mr,$r,y(L(e.day),1)])])]),_:1}),m("div",{class:"icon",style:ae({backgroundImage:`url(${e.symbol})`})},null,4),m("div",{class:"lore",onClick:o[1]||(o[1]=u=>t("openLore"))},"?"),a(e.shouldNotify)?(_(),R(Kn,{key:0})):x("",!0)])):(_(),M("div",{key:1,class:ie(["day feature dontMerge",{can:a(s),locked:!a(s),canOpen:a(s)}]),onClick:i},[Pr,m("div",Tr,[Fr,xr,y(L(e.day),1)]),a(s)?x("",!0):(_(),M("div",Ir,"lock")),a(s)?(_(),R(Kn,{key:1})):x("",!0)],2))}});var Or=K(Dr,[["__scopeId","data-v-949cc93c"]]);const Er={key:0},Ar={key:0,class:"mark star"},Vr=["src"],Br=V({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(_(),M("div",Er,[e.mark===!0?(_(),M("div",Ar)):(_(),M("img",{key:1,class:"mark",src:e.mark},null,8,Vr))])):x("",!0)}});var pn=K(Br,[["__scopeId","data-v-2207999f"]]);const qr=V({__name:"Node",props:{id:null},setup(e){const n=de(e),s=sn(Pn,()=>{}),i=sn(Tn,()=>{}),r=Ie(null),o=S(()=>r.value&&r.value.parentElement);return Le([o,n.id],([u,f],[d,h])=>{d&&i(a(h)),u&&s(f,u)}),Yn(()=>i(a(n.id))),(u,f)=>(_(),M("div",{class:"node",ref_key:"node",ref:r},null,512))}});var Kt=K(qr,[["__scopeId","data-v-a48cb382"]]),Lr=V({props:{display:{type:T(Object,String,Function),required:!0},visibility:{type:T(Number),required:!0},style:T(Object,String,Array),classes:T(Object),onClick:Function,onHold:Function,canClick:{type:T(Boolean),required:!0},small:Boolean,mark:T(Boolean,String),id:{type:String,required:!0},isHolding:Object},components:{Node:Kt,MarkNode:pn},setup(e){const{display:t,onClick:n,onHold:s}=de(e),i=Ie("");$e(()=>{const u=le(t);if(u==null){i.value="";return}if(pt(u)){i.value=j(u);return}const f=j(u.title||"","h3"),d=j(u.description,"div");i.value=j(A(()=>c("span",null,[u.title?c("div",null,[c(f,null,null)]):null,c(d,null,null)])
${U}
${C}`)}}return d[$]}Le(n,$=>{$&&Object.keys(d).forEach(C=>delete d[C])});const v=S(()=>te.saves.reduce(($,C)=>($[C]=h(C),$),{}));function b($){let C;switch(P.id===$?C=ls(P[ne]):C=JSON.stringify(v.value[$]),z.exportEncoding){default:console.warn(`Unknown save encoding: ${z.exportEncoding}. Defaulting to lz`);case"lz":C=ut.compressToUTF16(C);break;case"base64":C=btoa(unescape(encodeURIComponent(C)));break;case"plain":break}const U=document.createElement("textarea");U.value=C,document.body.appendChild(U),U.select(),U.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(U)}function g($){P.id===$&&Ve();const C={...v.value[$],id:tn()};Ve(C),te.saves.push(C.id)}function w($){te.saves=te.saves.filter(C=>C!==$),localStorage.removeItem($),d[$]=void 0}function k($){v.value[P.id].time=P.time,Ve(),d[P.id]=void 0,vt(v.value[$]),d[$]=void 0}function I($){if(o.value=$,bt(()=>{o.value=null}),$[0]!=="{")if($[0]==="e")$=decodeURIComponent(escape(atob($)));else if($[0]==="\u1BE1")$=ut.decompressFromUTF16($);else{console.warn("Unable to determine preset encoding",$);return}const C=JSON.parse($);C.id=tn(),Ve(C),te.saves.push(C.id),k(C.id)}function ye($,C){const U=v.value[$];U&&(U.name=C,P.id===$?(P.name=C,Ve()):(Ve(U),d[$]=void 0))}return($,C)=>(_(),R(je,{modelValue:n.value,"onUpdate:modelValue":C[4]||(C[4]=U=>n.value=U),ref_key:"modal",ref:s},{header:O(()=>[ql]),body:O(({shown:U})=>[U?(_(),R(a(zs),{key:0,list:a(te).saves,handle:".handle",itemKey:Ne=>Ne},{item:O(({element:Ne})=>[c(Bl,{save:a(v)[Ne],onOpen:Ee=>k(Ne),onExport:Ee=>b(Ne),onEditName:Ee=>ye(Ne,Ee),onDuplicate:Ee=>g(Ne),onDelete:Ee=>w(Ne)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):x("",!0)]),footer:O(()=>[m("div",Ll,[c(Ms,{modelValue:r.value,"onUpdate:modelValue":C[0]||(C[0]=U=>r.value=U),title:"Import Save",placeholder:"Paste your save here!",class:ie({importingFailed:i.value})},null,8,["modelValue","class"]),m("div",Rl,[Gl,m("div",Ul,[m("button",{class:"button",onClick:C[1]||(C[1]=U=>k(a(Mt)().id))},"New Game"),Object.keys(a(f)).length>0?(_(),R(Dn,{key:0,options:a(f),modelValue:o.value,"onUpdate:modelValue":C[2]||(C[2]=U=>I(U)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):x("",!0)])]),m("div",Hl,[jl,m("button",{class:"button modal-default-button",onClick:C[3]||(C[3]=U=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var $s=K(zl,[["__scopeId","data-v-3b9991aa"]]);const Pe=e=>(Je("data-v-4a3f8425"),e=e(),Xe(),e),Wl=["src","alt"],Kl={key:1,class:"title"},Yl=Pe(()=>m("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Zl={class:"discord"},Jl={class:"discord-links"},Xl={key:0},Ql=["href"],eo=Pe(()=>m("li",null,[m("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),to=Pe(()=>m("li",null,[m("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),no={href:"https://forums.moddingtree.com/",target:"_blank"},so=Pe(()=>m("span",{class:"material-icons"},"forum",-1)),io=Pe(()=>m("span",{class:"material-icons"},"info",-1)),ro=Pe(()=>m("span",{class:"material-icons"},"library_books",-1)),ao=Pe(()=>m("span",{class:"material-icons"},"settings",-1)),lo=Pe(()=>m("span",{class:"material-icons"},"library_books",-1)),oo=Pe(()=>m("span",{class:"material-icons"},"settings",-1)),uo=Pe(()=>m("span",{class:"material-icons"},"info",-1)),co={href:"https://forums.moddingtree.com/",target:"_blank"},fo=Pe(()=>m("span",{class:"material-icons"},"forum",-1)),mo={class:"discord"},po={class:"discord-links"},ho={key:0},go=["href"],vo=Pe(()=>m("li",null,[m("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),yo=Pe(()=>m("li",null,[m("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),bo=V({__name:"Nav",setup(e){const t=D(null),n=D(null),s=D(null),i=D(null),{useHeader:r,banner:o,title:u,discordName:f,discordLink:d,versionNumber:h}=z;function v(){window.open(d,"mywindow")}return(b,g)=>(_(),M(B,null,[a(r)?(_(),M("div",_t({key:0,class:"na
Learn more at www.moddingtree.com`,"font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;","padding: 4px;"),await Wi();const{globalBus:e,startGameLoop:t}=await rn(()=>Promise.resolve().then(function(){return zi}),void 0),n=window.vue=Gs(nu);e.emit("setupVue",n),n.mount("#app"),bt(()=>{const s=Xn(),{updateServiceWorker:i}=iu({onNeedRefresh(){s.info("New content available, click or reload to update.",{timeout:!1,closeOnClick:!1,draggable:!1,icon:{iconClass:"material-icons",iconChildren:"refresh",iconTag:"i"},rtl:!1,onClick(){i()}})},onOfflineReady(){s.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(r){r&&setInterval(r.update,60*60*1e3)}})}),t()});