Advent-Incremental/assets/index.93c49ad5.js

16 lines
137 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 qe,aa as O,aE as _,a0 as M,a1 as m,aK as Ge,G as se,t as T,aC as Kn,w as xe,b2 as Ie,a8 as c,O as R,ao as Bi,I as ae,ay as cn,ar as bt,aG as Yt,A as de,_ as L,b6 as F,b8 as Mn,bs as Di,aq as _t,bu as Lt,bb as dn,T as Oi,a7 as y,j as Ri,l as ue,bv as Un,J as q,$ as E,aH as Xe,aF as Ze,al as sn,aL as dt,aN as ge,z as Je,H as Vi,aJ as Jn,bn as qi,br as Li,be as Ui}from"./@vue.4ce677c2.js";import{i as Gi}from"./is-plain-object.906d88e8.js";import{c as Xn}from"./nanoevents.1080beb7.js";import{L as ut}from"./lz-string.731cedc5.js";import{Y as Hi}from"./vue-next-select.a2bfab1d.js";import{s as ji,u as Zn}from"./vue-toastification.6f567382.js";import{D as zi}from"./vuedraggable.7949458c.js";import{p as Wi}from"./vue-textarea-autosize.35804eaf.js";import{v as Qi,n as Ki}from"./workbox-window.8d14e8b7.js";import"./sortablejs.29100d8a.js";const Ji=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 r of s)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerpolicy&&(r.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?r.credentials="include":s.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(s){if(s.ep)return;s.ep=!0;const r=n(s);fetch(s.href,r)}};Ji();const Xi="modulepreload",Gn={},Zi="./",rn=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${Zi}${i}`,i in Gn)return;Gn[i]=!0;const s=i.endsWith(".css"),r=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${r}`))return;const o=document.createElement("link");if(o.rel=s?"stylesheet":Xi,s||(o.as="script",o.crossOrigin=""),o.href=i,document.head.appendChild(o),s)return new Promise((u,f)=>{o.addEventListener("load",u),o.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},Yi="./projInfo-schema.json",es="Advent Incremental",ts="An incremental game you play a day at a time, leading up to Christmas!",ns="advent-incremental",is="thepaperpilot",ss="",rs="",as="0.2",ls="Initial Commit",os=!0,us=!1,cs=2,ds=!0,fs=null,ms="",hs=["main"],ps=3600,gs=0,vs=!0,ys="base64";var z={$schema:Yi,title:es,description:ts,id:ns,author:is,discordName:ss,discordLink:rs,versionNumber:as,versionTitle:ls,allowGoBack:os,defaultShowSmall:us,defaultDecimalsShown:cs,useHeader:ds,banner:fs,logo:ms,initialTabs:hs,maxTickLength:ps,offlineLimit:gs,enablePausing:vs,exportEncoding:ys};const wn=17,bs=9e15,_s=Math.log10(9e15),ws=1/9e15,Ns=308,ks=-324,Hn=5,Cs=function(){const e=[];for(let n=ks+1;n<=Ns;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),pt=[2,Math.E,3,4,5,6,7,8,9,10],Ss=[[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=ui({id:e});return Oe(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:i}=await rn(()=>Promise.resolve().then(function(){return vr}),void 0),{fixOldSave:s,getInitialLayers:r}=await rn(()=>Promise.resolve().then(function(){return ki}),void 0);for(const o in t){const u=t[o];u&&n(u)}r(e).forEach(o=>i(o,e)),e=ui(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&&s(e.modVersion,e),Object.assign(A,e),te.active=A.id,ve.emit("onLoad")}setInterval(()=>{A.autosave&&Oe()},1e3);window.onbeforeunload=()=>{A.autosave&&Oe()};window.save=Oe;const Qs=window.hardReset=async()=>{await vt(Mt())},Gt=Ht({active:"",saves:[],showTPS:!0,theme:In.Nordic,unthrottled:!1});qe(Gt,e=>{const t=ut.compressToUTF16(JSON.stringify(e));localStorage.setItem(z.id,t)},{deep:!0});var te=window.settings=Gt;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:In.Nordic};ve.emit("loadSettings",e),Object.assign(Gt,e),Qs()};function Ks(){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(Gt,t)}ve.emit("loadSettings",Gt)}catch{}}const ci=Ht([]);function Js(e){ci.push(e)}const Xs=Ht([]),Zs=Ht([]),Ys={class:"table"},nn=O({__name:"Column",setup(e){const t=S(()=>zt[te.theme].mergeAdjacent);return(n,i)=>(_(),M("div",Ys,[m("div",{class:se(["col",{mergeAdjacent:a(t)}])},[Ge(n.$slots,"default")],2)]))}}),er={class:"table"},di=O({__name:"Row",setup(e){const t=S(()=>zt[te.theme].mergeAdjacent);return(n,i)=>(_(),M("div",er,[m("div",{class:se(["row",{mergeAdjacent:a(t)}])},[Ge(n.$slots,"default")],2)]))}});function fi(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Bi(e)}function j(e,t="span"){return typeof e=="function"?O({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}</${t}>`),O({template:e})):O({render:()=>({})}):e}function me(e){if(ht(e))return typeof e=="function"?e():j(e);const t=e[ft];return c(t,e[mt](),null)}function Ve(...e){let t;return c(di,null,fi(t=e.map(me))?t:{default:()=>[t]})}function tr(...e){let t;return c(nn,null,fi(t=e.map(me))?t:{default:()=>[t]})}function He(e){if(ht(e))return typeof e=="function"?e():typeof e=="string"?c(R,null,[e]):c(e,null,null);const t=e[ft];return c(t,e[mt](),null)}function ht(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[Ut]===!0}function mi(e,t,n){const i=T(null),s=T(void 0);function r(f){i.value||(i.value=setInterval(u,250)),s.value=f,n&&(n.value=!0)}function o(){i.value&&(clearInterval(i.value),i.value=null),n&&(n.value=!1)}function u(){t&&t.value?t.value():e&&e.value&&e.value(s.value)}return Kn(o),{start:r,stop:o,handleHolding:u}}function hi(e,t="div"){const n=xe();return Ie(()=>{n.value=j(le(e),t)}),n}function At(e,t="div"){const n=xe(null);return Ie(()=>{const i=le(e);n.value=i==null?null:j(i,t)}),n}function nr(e){return S(()=>le(e))}function le(e){return a(a(e))}function P(...e){return e.includes(Object)||e.push(Object),e}const Ee=O({__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 Q=(e,t)=>{const n=e.__vccOpts||e;for(const[i,s]of t)n[i]=s;return n};const ir=O({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var p;const n=T({}),i=new ResizeObserver(u),s=T(null);cn(()=>{const v=s.value;v!=null&&i.observe(v)});let r=!0,o=T((p=s.value)==null?void 0:p.getBoundingClientRect());function u(){r&&(r=!1,bt(()=>{var v;o.value=(v=s.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:T(e);return t[Cn]=t,t[on]=ue(e)?e.value:e,t[un]=mr(),t[gi]=!1,Re.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",t,`
Created at:
`+t[un]):It[Re[Re.length-1]].add(t),t}ve.on("addLayer",(e,t)=>{const n=[],i=(s,r=[])=>{let o=!1;return Object.keys(s).forEach(u=>{const f=s[u];if(f&&typeof f=="object")if(Cn in f){if(o=!0,f[gi]){console.warn("Deleted persistent ref present in returned object. Ignoring...",f,`
Created at:
`+f[un]);return}It[e.id].delete(ne in f?f[ne]:f);const d=r.reduce((v,b)=>(b in v||(v[b]={}),v[b]),t),p=d[u];d[u]=f[Cn],Ri(d)?p!=null?d[u]=p:d[u]=f[on]:p!=null?d[u].value=p:d[u].value=f[on]}else!(f instanceof l)&&!ue(f)&&!n.includes(f)&&(typeof f.type=="symbol"&&n.push(f),i(f,[...r,u])&&(Un(f)&&!Un(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.",ne in s?s[ne]:s,u):o=!0))}),o};i(e),It[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[un])}),It[e.id].clear()});const An=Symbol("RegisterNode"),Pn=Symbol("UnregisterNode"),$n=Symbol("Nodes"),En=Symbol("Bounds"),he=Sn({});window.layers=he;const It={},Re=[];function Wt(e,t){return Fe(()=>{const n={},i=n.emitter=Xn();if(n.on=i.on.bind(i),n.emit=i.emit.bind(i),n.nodes=T({}),n.id=e,Re.push(e),It[e]=new Set,n.minimized=Se(!1),Object.assign(n,t.call(n)),Re[Re.length-1]==null||Re[Re.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
Stack: ${Re}
Trying to pop ${n.id}`;return Re.pop(),$(n,"color"),$(n,"display"),$(n,"name"),pe(n,"name",n.id),$(n,"minWidth"),pe(n,"minWidth",600),$(n,"minimizable"),pe(n,"minimizable",!0),n})}function vi(e,t){if(console.info("Adding layer",e.id),he[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,he[e.id]);return}pe(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),he[e.id]=e,ve.emit("addLayer",e,t.layers[e.id])}function hr(e){return he[e]}function yi(e){console.info("Removing layer",e.id),ve.emit("removeLayer",e),he[e.id]=void 0}function pr(e){yi(e),vi(e,A)}function gr(e){const t=T(!1);return{openModal:()=>t.value=!0,modal:D(()=>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(he).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(he).forEach(n=>{n==null||n.emit("update",t)}),Object.values(he).forEach(n=>{n==null||n.emit("postUpdate",t)})});var vr=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:An,UnregisterNodeInjectionKey:Pn,NodesInjectionKey:$n,BoundsInjectionKey:En,layers:he,persistentRefs:It,addingLayers:Re,createLayer:Wt,addLayer:vi,getLayer:hr,removeLayer:yi,reloadLayer:pr,setupLayerModal:gr},Symbol.toStringTag,{value:"Module"}));const yr={},br={class:"notif"};function _r(e,t){return _(),M("div",br,"!")}var Qn=Q(yr,[["render",_r],["__scopeId","data-v-66323fd4"]]);const mn=e=>(Xe("data-v-949cc93c"),e=e(),Ze(),e),wr={key:0,class:"day feature dontMerge opened"},Nr={class:"date"},kr=y("Dec"),Cr=mn(()=>m("br",null,null,-1)),Sr={class:"date"},Mr=y("Dec"),Ir=mn(()=>m("br",null,null,-1)),Ar=mn(()=>m("div",{class:"doors"},null,-1)),Pr={class:"date"},$r=y("Dec"),Er=mn(()=>m("br",null,null,-1)),xr={key:0,class:"material-icons lock"},Tr=O({__name:"Day",props:{day:null,symbol:null,opened:null,shouldNotify:null},emits:["openLore","openLayer","unlockLayer"],setup(e,{emit:t}){const n=e,i=S(()=>l.gte(U.day.value,n.day)&&new Date().getMonth()===11&&new Date().getDate()>=n.day);function s(){i.value&&t("unlockLayer")}return(r,o)=>e.opened.value?(_(),M("div",wr,[c(dn,{appear:"",name:"door"},{default:F(()=>[m("div",{class:"doors",onClick:o[0]||(o[0]=u=>t("openLayer"))},[m("div",Nr,[kr,Cr,y(q(e.day),1)]),m("div",Sr,[Mr,Ir,y(q(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)?(_(),L(Qn,{key:0})):E("",!0)])):(_(),M("div",{key:1,class:se(["day feature dontMerge",{can:a(i),locked:!a(i),canOpen:a(i)}]),onClick:s},[Ar,m("div",Pr,[$r,Er,y(q(e.day),1)]),a(i)?E("",!0):(_(),M("div",xr,"lock")),a(i)?(_(),L(Qn,{key:1})):E("",!0)],2))}});var Fr=Q(Tr,[["__scopeId","data-v-949cc93c"]]);const Br={key:0},Dr={key:0,class:"mark star"},Or=["src"],Rr=O({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(_(),M("div",Br,[e.mark===!0?(_(),M("div",Dr)):(_(),M("img",{key:1,class:"mark",src:e.mark},null,8,Or))])):E("",!0)}});var hn=Q(Rr,[["__scopeId","data-v-2207999f"]]);const Vr=O({__name:"Node",props:{id:null},setup(e){const n=de(e),i=sn(An,()=>{}),s=sn(Pn,()=>{}),r=xe(null),o=S(()=>r.value&&r.value.parentElement);return qe([o,n.id],([u,f],[d,p])=>{d&&s(a(p)),u&&i(f,u)}),Kn(()=>s(a(n.id))),(u,f)=>(_(),M("div",{class:"node",ref_key:"node",ref:r},null,512))}});var Qt=Q(Vr,[["__scopeId","data-v-a48cb382"]]),qr=O({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:Qt,MarkNode:hn},setup(e){const{display:t,onClick:n,onHold:i}=de(e),s=xe("");Ie(()=>{const u=le(t);if(u==null){s.value="";return}if(ht(u)){s.value=j(u);return}const f=j(u.title||"","h3"),d=j(u.description,"div");s.value=j(D(()=>c("span",null,[u.title?c("div",null,[c(f,null,null)]):null,c(d,null,null)])
${G}
${C}`)}}return d[I]}qe(n,I=>{I&&Object.keys(d).forEach(C=>delete d[C])});const v=S(()=>te.saves.reduce((I,C)=>(I[C]=p(C),I),{}));function b(I){let C;switch(A.id===I?C=li(A[ne]):C=JSON.stringify(v.value[I]),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 G=document.createElement("textarea");G.value=C,document.body.appendChild(G),G.select(),G.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(G)}function g(I){A.id===I&&Oe();const C={...v.value[I],id:tn()};Oe(C),te.saves.push(C.id)}function N(I){te.saves=te.saves.filter(C=>C!==I),localStorage.removeItem(I),d[I]=void 0}function k(I){v.value[A.id].time=A.time,Oe(),d[A.id]=void 0,vt(v.value[I]),d[I]=void 0}function x(I){if(o.value=I,bt(()=>{o.value=null}),I[0]!=="{")if(I[0]==="e")I=decodeURIComponent(escape(atob(I)));else if(I[0]==="\u1BE1")I=ut.decompressFromUTF16(I);else{console.warn("Unable to determine preset encoding",I);return}const C=JSON.parse(I);C.id=tn(),Oe(C),te.saves.push(C.id),k(C.id)}function ye(I,C){const G=v.value[I];G&&(G.name=C,A.id===I?(A.name=C,Oe()):(Oe(G),d[I]=void 0))}return(I,C)=>(_(),L(je,{modelValue:n.value,"onUpdate:modelValue":C[4]||(C[4]=G=>n.value=G),ref_key:"modal",ref:i},{header:F(()=>[ql]),body:F(({shown:G})=>[G?(_(),L(a(zi),{key:0,list:a(te).saves,handle:".handle",itemKey:we=>we},{item:F(({element:we})=>[c(Vl,{save:a(v)[we],onOpen:Be=>k(we),onExport:Be=>b(we),onEditName:Be=>ye(we,Be),onDuplicate:Be=>g(we),onDelete:Be=>N(we)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):E("",!0)]),footer:F(()=>[m("div",Ll,[c(Mi,{modelValue:r.value,"onUpdate:modelValue":C[0]||(C[0]=G=>r.value=G),title:"Import Save",placeholder:"Paste your save here!",class:se({importingFailed:s.value})},null,8,["modelValue","class"]),m("div",Ul,[Gl,m("div",Hl,[m("button",{class:"button",onClick:C[1]||(C[1]=G=>k(a(Mt)().id))},"New Game"),Object.keys(a(f)).length>0?(_(),L(Tn,{key:0,options:a(f),modelValue:o.value,"onUpdate:modelValue":C[2]||(C[2]=G=>x(G)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):E("",!0)])]),m("div",jl,[zl,m("button",{class:"button modal-default-button",onClick:C[3]||(C[3]=G=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var Ii=Q(Wl,[["__scopeId","data-v-3b9991aa"]]);const Ae=e=>(Xe("data-v-4a3f8425"),e=e(),Ze(),e),Ql=["src","alt"],Kl={key:1,class:"title"},Jl=Ae(()=>m("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Xl={class:"discord"},Zl={class:"discord-links"},Yl={key:0},eo=["href"],to=Ae(()=>m("li",null,[m("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),no=Ae(()=>m("li",null,[m("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),io={href:"https://forums.moddingtree.com/",target:"_blank"},so=Ae(()=>m("span",{class:"material-icons"},"forum",-1)),ro=Ae(()=>m("span",{class:"material-icons"},"info",-1)),ao=Ae(()=>m("span",{class:"material-icons"},"library_books",-1)),lo=Ae(()=>m("span",{class:"material-icons"},"settings",-1)),oo=Ae(()=>m("span",{class:"material-icons"},"library_books",-1)),uo=Ae(()=>m("span",{class:"material-icons"},"settings",-1)),co=Ae(()=>m("span",{class:"material-icons"},"info",-1)),fo={href:"https://forums.moddingtree.com/",target:"_blank"},mo=Ae(()=>m("span",{class:"material-icons"},"forum",-1)),ho={class:"discord"},po={class:"discord-links"},go={key:0},vo=["href"],yo=Ae(()=>m("li",null,[m("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),bo=Ae(()=>m("li",null,[m("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),_o=O({__name:"Nav",setup(e){const t=T(null),n=T(null),i=T(null),s=T(null),{useHeader:r,banner:o,title:u,discordName:f,discordLink:d,versionNumber:p}=z;function v(){window.open(d,"mywindow")}return(b,g)=>(_(),M(R,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 Ws();const{globalBus:e,startGameLoop:t}=await rn(()=>Promise.resolve().then(function(){return zs}),void 0),n=window.vue=Ui(iu);e.emit("setupVue",n),n.mount("#app"),bt(()=>{const i=Zn(),{updateServiceWorker:s}=ru({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(r){r&&setInterval(r.update,60*60*1e3)}})}),t()});