pages/advent/assets/index.32e0a20e.js

16 lines
145 KiB
JavaScript
Raw Normal View History

/* empty css */import"./vue.92681fcb.js";import{Z as S,l as be,u as vn,q as nn,C as r,b1 as ze,aa as L,aE as _,a0 as M,a1 as m,aK as Je,G as ce,t as T,aC as si,w as Le,b2 as Fe,a8 as u,O as D,ao as ji,I as me,ay as yn,ar as Mt,aG as on,A as we,_ as j,b6 as R,b8 as Tn,bs as zi,aq as It,bu as Xt,bb as bn,T as Wi,a7 as v,j as Qi,bv as Jn,J as H,$,aH as nt,aF as it,al as fn,aL as pt,aN as ke,z as tt,H as Ki,aJ as ai,bn as Ji,br as Xi,be as Zi}from"./@vue.4ce677c2.js";import{i as Yi}from"./is-plain-object.906d88e8.js";import{c as li}from"./nanoevents.1080beb7.js";import{L as mt}from"./lz-string.731cedc5.js";import{Y as es}from"./vue-next-select.a2bfab1d.js";import{s as ts,u as ri}from"./vue-toastification.6f567382.js";import{D as ns}from"./vuedraggable.7949458c.js";import{p as is}from"./vue-textarea-autosize.35804eaf.js";import{v as ss,n as as}from"./workbox-window.8d14e8b7.js";import"./sortablejs.29100d8a.js";const ls=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const o of l.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerpolicy&&(l.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?l.credentials="include":s.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function i(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}};ls();const rs="modulepreload",Xn={},os="./",mn=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${os}${i}`,i in Xn)return;Xn[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${l}`))return;const o=document.createElement("link");if(o.rel=s?"stylesheet":rs,s||(o.as="script",o.crossOrigin=""),o.href=i,document.head.appendChild(o),s)return new Promise((c,f)=>{o.addEventListener("load",c),o.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},us="./projInfo-schema.json",cs="Advent Incremental",ds="An incremental game you play a day at a time, leading up to Christmas!",fs="advent-incremental",ms="thepaperpilot",hs="",ps="",gs="0.3",vs="Initial Commit",ys=!0,bs=!1,_s=2,ws=!0,Ns=null,ks="",Cs=["main"],Ss=3600,Ms=0,Is=!0,As="base64";var W={$schema:us,title:cs,description:ds,id:fs,author:ms,discordName:hs,discordLink:ps,versionNumber:gs,versionTitle:vs,allowGoBack:ys,defaultShowSmall:bs,defaultDecimalsShown:_s,useHeader:ws,banner:Ns,logo:ks,initialTabs:Cs,maxTickLength:Ss,offlineLimit:Ms,enablePausing:Is,exportEncoding:As};const En=17,Es=9e15,Ps=Math.log10(9e15),$s=1/9e15,Ts=308,xs=-324,Zn=5,Fs=function(){const e=[];for(let n=xs+1;n<=Ts;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),Nt=[2,Math.E,3,4,5,6,7,8,9,10],Bs=[[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.363280744499
`,e),await Ct(Dt())}}function Dt(){const e=cn(),t=bi({id:e});return He(t),ne.saves.push(e),t}function cn(){let e,t=0;do e=`${W.id}-${t++}`;while(localStorage.getItem(e));return e}async function Ct(e){console.info("Loading save",e);const{layers:t,removeLayer:n,addLayer:i}=await mn(()=>Promise.resolve().then(function(){return Ma}),void 0),{fixOldSave:s,getInitialLayers:l}=await mn(()=>Promise.resolve().then(function(){return Fi}),void 0);for(const o in t){const c=t[o];c&&n(c)}l(e).forEach(o=>i(o,e)),e=bi(e),e.offlineProd&&e.time&&e.devSpeed!==0&&(e.offlineTime==null&&(e.offlineTime=0),e.offlineTime+=Math.min(e.offlineTime+(Date.now()-e.time)/1e3,W.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==W.versionNumber&&s(e.modVersion,e),Object.assign(A,e),ne.active=A.id,ae.emit("onLoad")}setInterval(()=>{A.autosave&&He()},1e3);window.onbeforeunload=()=>{A.autosave&&He()};window.save=He;const sa=window.hardReset=async()=>{await Ct(Dt())},Yt=nn({active:"",saves:[],showTPS:!0,theme:xn.Nordic,unthrottled:!1});ze(Yt,e=>{const t=mt.compressToUTF16(JSON.stringify(e));localStorage.setItem(W.id,t)},{deep:!0});var ne=window.settings=Yt;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:xn.Nordic};ae.emit("loadSettings",e),Object.assign(Yt,e),sa()};function aa(){try{let e=localStorage.getItem(W.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=mt.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(Yt,t)}ae.emit("loadSettings",Yt)}catch{}}const _i=nn([]);function la(e){_i.push(e)}const wi=nn([]);function ra(e){wi.push(e)}const oa=nn([]),ua={class:"table"},dn=L({__name:"Column",setup(e){const t=S(()=>sn[ne.theme].mergeAdjacent);return(n,i)=>(_(),M("div",ua,[m("div",{class:ce(["col",{mergeAdjacent:r(t)}])},[Je(n.$slots,"default")],2)]))}}),ca={class:"table"},Ni=L({__name:"Row",setup(e){const t=S(()=>sn[ne.theme].mergeAdjacent);return(n,i)=>(_(),M("div",ca,[m("div",{class:ce(["row",{mergeAdjacent:r(t)}])},[Je(n.$slots,"default")],2)]))}});function ki(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!ji(e)}function K(e,t="span"){return typeof e=="function"?L({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}</${t}>`),L({template:e})):L({render:()=>({})}):e}function he(e){if(yt(e))return typeof e=="function"?e():K(e);const t=e[gt];return u(t,e[vt](),null)}function Oe(...e){let t;return u(Ni,null,ki(t=e.map(he))?t:{default:()=>[t]})}function Ci(...e){let t;return u(dn,null,ki(t=e.map(he))?t:{default:()=>[t]})}function Xe(e){if(yt(e))return typeof e=="function"?e():typeof e=="string"?u(D,null,[e]):u(e,null,null);const t=e[gt];return u(t,e[vt](),null)}function yt(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[Zt]===!0}function Si(e,t,n){const i=T(null),s=T(void 0);function l(f){i.value||(i.value=setInterval(c,250)),s.value=f,n&&(n.value=!0)}function o(){i.value&&(clearInterval(i.value),i.value=null),n&&(n.value=!1)}function c(){t&&t.value?t.value():e&&e.value&&e.value(s.value)}return si(o),{start:l,stop:o,handleHolding:c}}function Mi(e,t="div"){const n=Le();return Fe(()=>{n.value=K(pe(e),t)}),n}function Lt(e,t="div"){const n=Le(null);return Fe(()=>{const i=pe(e);n.value=i==null?null:K(i,t)}),n}function da(e){return S(()=>pe(e))}function pe(e){return r(r(e))}function P(...e){return e.includes(Object)||e.push(Object),e}const Re=L({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,n)=>(_(),M("div",{style:me({width:e.width,height:e.height})},null,4))}});var Z=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n};const fa=L({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var g;const n=T({}),i=new ResizeObserver(c),s=T(null);yn(()=>{const y=s.value;y!=null&&i.observe(y)});let l=!0,o=T((g=s.value)==null?void 0:g.getBoundingClientRect());function c(){l&&(l=!1,Mt(()=>{va
`).slice(3,5).map(t=>t.trim()).join(`
`))||""}function Ae(e){const t=be(e)?e:T(e);return t[en]=t,t[tn]=be(e)?e.value:e,t[gn]=Na(),t[Ai]=!1,je.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",t,`
Created at:
`+t[gn]):Ot[je[je.length-1]].add(t),t}ae.on("addLayer",(e,t)=>{const n=[],i=(s,l=[])=>{let o=!1;return Object.keys(s).forEach(c=>{const f=s[c];if(f&&typeof f=="object")if(en in f){if(o=!0,f[Ai]){console.warn("Deleted persistent ref present in returned object. Ignoring...",f,`
Created at:
`+f[gn]);return}Ot[e.id].delete(le in f?f[le]:f);const d=l.reduce((y,b)=>(b in y||(y[b]={}),y[b]),t),g=d[c];d[c]=f[en],Qi(d)?g!=null?d[c]=g:d[c]=f[tn]:g!=null?d[c].value=g:d[c].value=f[tn]}else!(f instanceof a)&&!be(f)&&!n.includes(f)&&(typeof f.type=="symbol"&&n.push(f),i(f,[...l,c])&&(Jn(f)&&!Jn(s)?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.",le in s?s[le]:s,c):o=!0))}),o};i(e),Ot[e.id].forEach(s=>{console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,s,`
Created at:
`+s[gn])}),Ot[e.id].clear()});const Fn=Symbol("RegisterNode"),Bn=Symbol("UnregisterNode"),Dn=Symbol("Nodes"),On=Symbol("Bounds"),Ne=vn({});window.layers=Ne;const Ot={},je=[];function Gt(e,t){return Be(()=>{const n={},i=n.emitter=li();if(n.on=i.on.bind(i),n.emit=i.emit.bind(i),n.nodes=T({}),n.id=e,je.push(e),Ot[e]=new Set,n.minimized=Ae(!1),Object.assign(n,t.call(n)),je[je.length-1]==null||je[je.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
Stack: ${je}
Trying to pop ${n.id}`;return je.pop(),E(n,"color"),E(n,"display"),E(n,"name"),_e(n,"name",n.id),E(n,"minWidth"),_e(n,"minWidth",600),E(n,"minimizable"),_e(n,"minimizable",!0),n})}function Ei(e,t){if(console.info("Adding layer",e.id),Ne[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,Ne[e.id]);return}_e(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),Ne[e.id]=e,ae.emit("addLayer",e,t.layers[e.id])}function ka(e){return Ne[e]}function Pi(e){console.info("Removing layer",e.id),ae.emit("removeLayer",e),Ne[e.id]=void 0}function Ca(e){Pi(e),Ei(e,A)}function Sa(e){const t=T(!1);return{openModal:()=>t.value=!0,modal:F(()=>u(We,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>u("h2",null,[r(e.name)]),body:r(e.display)}))}}ae.on("update",function(t){Object.values(Ne).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(Ne).forEach(n=>{n==null||n.emit("update",t)}),Object.values(Ne).forEach(n=>{n==null||n.emit("postUpdate",t)})});var Ma=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:Fn,UnregisterNodeInjectionKey:Bn,NodesInjectionKey:Dn,BoundsInjectionKey:On,layers:Ne,persistentRefs:Ot,addingLayers:je,createLayer:Gt,addLayer:Ei,getLayer:ka,removeLayer:Pi,reloadLayer:Ca,setupLayerModal:Sa},Symbol.toStringTag,{value:"Module"}));const Ia={},Aa={class:"notif"};function Ea(e,t){return _(),M("div",Aa,"!")}var ni=Z(Ia,[["render",Ea],["__scopeId","data-v-66323fd4"]]);const wn=e=>(nt("data-v-949cc93c"),e=e(),it(),e),Pa={key:0,class:"day feature dontMerge opened"},$a={class:"date"},Ta=v("Dec"),xa=wn(()=>m("br",null,null,-1)),Fa={class:"date"},Ba=v("Dec"),Da=wn(()=>m("br",null,null,-1)),Oa=wn(()=>m("div",{class:"doors"},null,-1)),Ra={class:"date"},qa=v("Dec"),Va=wn(()=>m("br",null,null,-1)),La={key:0,class:"material-icons lock"},Ga=L({__name:"Day",props:{day:null,symbol:null,opened:null,shouldNotify:null},emits:["openLore","openLayer","unlockLayer"],setup(e,{emit:t}){const n=e,i=S(()=>a.gte(B.day.value,n.day)&&new Date().getMonth()===11&&new Date().getDate()>=n.day);function s(){i.value&&t("unlockLayer")}return(l,o)=>e.opened.value?(_(),M("div",Pa,[u(bn,{appear:"",name:"door"},{default:R(()=>[m("div",{class:"doors",onClick:o[0]||(o[0]=c=>t("openLayer"))},[m("div",$a,[Ta,xa,v(H(e.day),1)]),m("div",Fa,[Ba,Da,v(H(e.day),1)])])]),_:1}),m("div",{class:"icon",style:me({backgroundImage:`url(${e.symbol})`})},null,4),m("div",{class:"lore",onClick:o[1]||(o[1]=c=>t("openLore"))},"?"),r(e.shouldNotify)?(_(),j(ni,{key:0})):$("",!0)])):(_(),M("div",{key:1,class:ce(["day feature dontMerge",{can:r(i),locked:!r(i),canOpen:r(i)}]),onClick:s},[Oa,m("div",Ra,[qa,Va,v(H(e.day),1)]),r(i)?$("",!0):(_(),M("div",La,"lock")),r(i)?(_(),j(ni,{key:1})):$("",!0)],2))}});var Ua=Z(Ga,[["__scopeId","data-v-949cc93c"]]);const Ha={key:0},ja={key:0,class:"mark star"},za=["src"],Wa=L({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(_(),M("div",Ha,[e.mark===!0?(_(),M("div",ja)):(_(),M("img",{key:1,class:"mark",src:e.mark},null,8,za))])):$("",!0)}});var Nn=Z(Wa,[["__scopeId","data-v-2207999f"]]);const Qa=L({__name:"Node",props:{id:null},setup(e){const n=we(e),i=fn(Fn,()=>{}),s=fn(Bn,()=>{}),l=Le(null),o=S(()=>l.value&&l.value.parentElement);return ze([o,n.id],([c,f],[d,g])=>{d&&s(r(g)),c&&i(f,c)}),si(()=>s(r(n.id))),(c,f)=>(_(),M("div",{class:"node",ref_key:"node",ref:l},null,512))}});var an=Z(Qa,[["__scopeId","data-v-a48cb382"]]),Ka=L({props:{display:{type:P(Object,String,Function),required:!0},visibility:{type:P(Number),required:!0},style:P(Object,String,Array),classes:P(Object),onClick:Function,onHold:Function,canClick:{type:P(Boolean),required:!0},small:Boolean,mark:P(Boolean,String),id:{type:String,required:!0},isHolding:Object},components:{Node:an,MarkNode:Nn},setup(e){const{display:t,onClick:n,onHold:i}=we(e),s=Le("");Fe(()=>{const c=pe(t);if(c==null){s.value="";return}if(yt(c)){s.value=K(c);return}const f=K(c.title||"","h3"),d=K(c.description,"div");s.value=K(F(()=>u("span",null,[c.title?u("div",null,[u(f,null,null)]):null,u(d,null,null)])
${z}
${k}`)}}return d[I]}ze(n,I=>{I&&Object.keys(d).forEach(k=>delete d[k])});const y=S(()=>ne.saves.reduce((I,k)=>(I[k]=g(k),I),{}));function b(I){let k;switch(A.id===I?k=vi(A[le]):k=JSON.stringify(y.value[I]),W.exportEncoding){default:console.warn(`Unknown save encoding: ${W.exportEncoding}. Defaulting to lz`);case"lz":k=mt.compressToUTF16(k);break;case"base64":k=btoa(unescape(encodeURIComponent(k)));break;case"plain":break}const z=document.createElement("textarea");z.value=k,document.body.appendChild(z),z.select(),z.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(z)}function p(I){A.id===I&&He();const k={...y.value[I],id:cn()};He(k),ne.saves.push(k.id)}function N(I){ne.saves=ne.saves.filter(k=>k!==I),localStorage.removeItem(I),d[I]=void 0}function C(I){y.value[A.id].time=A.time,He(),d[A.id]=void 0,Ct(y.value[I]),d[I]=void 0}function x(I){if(o.value=I,Mt(()=>{o.value=null}),I[0]!=="{")if(I[0]==="e")I=decodeURIComponent(escape(atob(I)));else if(I[0]==="\u1BE1")I=mt.decompressFromUTF16(I);else{console.warn("Unable to determine preset encoding",I);return}const k=JSON.parse(I);k.id=cn(),He(k),ne.saves.push(k.id),C(k.id)}function de(I,k){const z=y.value[I];z&&(z.name=k,A.id===I?(A.name=k,He()):(He(z),d[I]=void 0))}return(I,k)=>(_(),j(We,{modelValue:n.value,"onUpdate:modelValue":k[4]||(k[4]=z=>n.value=z),ref_key:"modal",ref:i},{header:R(()=>[Zr]),body:R(({shown:z})=>[z?(_(),j(r(ns),{key:0,list:r(ne).saves,handle:".handle",itemKey:ge=>ge},{item:R(({element:ge})=>[u(Xr,{save:r(y)[ge],onOpen:Ee=>C(ge),onExport:Ee=>b(ge),onEditName:Ee=>de(ge,Ee),onDuplicate:Ee=>p(ge),onDelete:Ee=>N(ge)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):$("",!0)]),footer:R(()=>[m("div",Yr,[u(Oi,{modelValue:l.value,"onUpdate:modelValue":k[0]||(k[0]=z=>l.value=z),title:"Import Save",placeholder:"Paste your save here!",class:ce({importingFailed:s.value})},null,8,["modelValue","class"]),m("div",eo,[to,m("div",no,[m("button",{class:"button",onClick:k[1]||(k[1]=z=>C(r(Dt)().id))},"New Game"),Object.keys(r(f)).length>0?(_(),j(Ln,{key:0,options:r(f),modelValue:o.value,"onUpdate:modelValue":k[2]||(k[2]=z=>x(z)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):$("",!0)])]),m("div",io,[so,m("button",{class:"button modal-default-button",onClick:k[3]||(k[3]=z=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var Ri=Z(ao,[["__scopeId","data-v-3b9991aa"]]);const qe=e=>(nt("data-v-4a3f8425"),e=e(),it(),e),lo=["src","alt"],ro={key:1,class:"title"},oo=qe(()=>m("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),uo={class:"discord"},co={class:"discord-links"},fo={key:0},mo=["href"],ho=qe(()=>m("li",null,[m("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),po=qe(()=>m("li",null,[m("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),go={href:"https://forums.moddingtree.com/",target:"_blank"},vo=qe(()=>m("span",{class:"material-icons"},"forum",-1)),yo=qe(()=>m("span",{class:"material-icons"},"info",-1)),bo=qe(()=>m("span",{class:"material-icons"},"library_books",-1)),_o=qe(()=>m("span",{class:"material-icons"},"settings",-1)),wo=qe(()=>m("span",{class:"material-icons"},"library_books",-1)),No=qe(()=>m("span",{class:"material-icons"},"settings",-1)),ko=qe(()=>m("span",{class:"material-icons"},"info",-1)),Co={href:"https://forums.moddingtree.com/",target:"_blank"},So=qe(()=>m("span",{class:"material-icons"},"forum",-1)),Mo={class:"discord"},Io={class:"discord-links"},Ao={key:0},Eo=["href"],Po=qe(()=>m("li",null,[m("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),$o=qe(()=>m("li",null,[m("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),To=L({__name:"Nav",setup(e){const t=T(null),n=T(null),i=T(null),s=T(null),{useHeader:l,banner:o,title:c,discordName:f,discordLink:d,versionNumber:g}=W;function y(){window.open(d,"mywindow")}return(b,p)=>(_(),M(D,null,[r(l)?(_(),M("div",It({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 ia();const{globalBus:e,startGameLoop:t}=await mn(()=>Promise.resolve().then(function(){return na}),void 0),n=window.vue=Zi(pu);e.emit("setupVue",n),n.mount("#app"),Mt(()=>{const i=ri(),{updateServiceWorker:s}=vu({onNeedRefresh(){i.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(){s()}})},onOfflineReady(){i.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(l){l&&setInterval(l.update,60*60*1e3)}})}),t()});