Advent-Incremental/assets/index.b30ab05b.js

16 lines
111 KiB
JavaScript
Raw Normal View History

/* empty css */import"./vue.92681fcb.js";import{Z as P,u as Jt,q as dt,C as a,b1 as ve,aa as V,aE as v,a0 as k,a1 as d,aK as $e,G as ee,t as F,aC as kn,w as ge,b2 as Ce,a8 as h,O as H,ao as rs,I as te,ay as Ct,ar as We,aG as gt,A as se,_ as q,b6 as x,b8 as Xt,bs as as,aq as ze,bu as lt,bb as Pt,T as os,a7 as C,j as ls,l as X,bv as pn,z as Se,J as A,aN as ie,$ as I,aH as Te,aF as Ie,al as Nt,aL as He,H as us,aJ as Sn,bn as cs,br as ds,be as fs}from"./@vue.4ce677c2.js";import{i as ms}from"./is-plain-object.906d88e8.js";import{c as Mn}from"./nanoevents.1080beb7.js";import{L as Ae}from"./lz-string.731cedc5.js";import{Y as hs}from"./vue-next-select.a2bfab1d.js";import{D as ps}from"./vuedraggable.7949458c.js";import{p as gs}from"./vue-textarea-autosize.35804eaf.js";import{s as vs,u as ys}from"./vue-toastification.6f567382.js";import{v as _s,n as bs}from"./workbox-window.8d14e8b7.js";import"./sortablejs.29100d8a.js";const Ns=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)}};Ns();const ws="modulepreload",gn={},ks="./",wt=function(t,n){return!n||n.length===0?t():Promise.all(n.map(s=>{if(s=`${ks}${s}`,s in gn)return;gn[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":ws,i||(o.as="script",o.crossOrigin=""),o.href=s,document.head.appendChild(o),i)return new Promise((l,c)=>{o.addEventListener("load",l),o.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t())},Ss="./projInfo-schema.json",Ms="Advent Incremental",$s="An incremental game you play a day at a time, leading up to Christmas!",Cs="advent-incremental",Ps="thepaperpilot",Ts="",Is="",Fs="0.1",Os="Initial Commit",xs=!0,Ds=!1,Es=2,Vs=!0,Ls=null,As="",qs=["main"],Bs=3600,Rs=1,Us=!0,js="base64";var B={$schema:Ss,title:Ms,description:$s,id:Cs,author:Ps,discordName:Ts,discordLink:Is,versionNumber:Fs,versionTitle:Os,allowGoBack:xs,defaultShowSmall:Ds,defaultDecimalsShown:Es,useHeader:Vs,banner:Ls,logo:As,initialTabs:qs,maxTickLength:Bs,offlineLimit:Rs,enablePausing:Us,exportEncoding:js};const jt=17,Gs=9e15,Ws=Math.log10(9e15),zs=1/9e15,Hs=308,Ks=-324,vn=5,Ys=function(){const e=[];for(let n=Ks+1;n<=Hs;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),Re=[2,Math.E,3,4,5,6,7,8,9,10],Zs=[[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.36328074
`,e),await Ge(tt())}}function tt(){const e=_t(),t=En({id:e});return he(t),Z.saves.push(e),t}function _t(){let e,t=0;do e=`${B.id}-${t++}`;while(localStorage.getItem(e));return e}async function Ge(e){console.info("Loading save",e);const{layers:t,removeLayer:n,addLayer:s}=await wt(()=>Promise.resolve().then(function(){return ji}),void 0),{fixOldSave:i,getInitialLayers:r}=await wt(()=>Promise.resolve().then(function(){return Gn}),void 0);for(const o in t){const l=t[o];l&&n(l)}r(e).forEach(o=>s(o,e)),e=En(e),e.offlineProd&&e.time&&(e.offlineTime==null&&(e.offlineTime=0),e.offlineTime+=(Date.now()-e.time)/1e3),e.time=Date.now(),e.modVersion!==B.versionNumber&&i(e.modVersion,e),Object.assign(M,e),Z.active=M.id,ae.emit("onLoad")}setInterval(()=>{M.autosave&&he()},1e3);window.onbeforeunload=()=>{M.autosave&&he()};window.save=he;const bi=window.hardReset=async()=>{await Ge(tt())},ct=dt({active:"",saves:[],showTPS:!0,theme:Qt.Nordic,unthrottled:!1});ve(ct,e=>{const t=Ae.compressToUTF16(JSON.stringify(e));localStorage.setItem(B.id,t)},{deep:!0});var Z=window.settings=ct;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:Qt.Nordic};ae.emit("loadSettings",e),Object.assign(ct,e),bi()};function Ni(){try{let e=localStorage.getItem(B.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Ae.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(ct,t)}ae.emit("loadSettings",ct)}catch{}}const wi=dt([]),ki=dt([]),Si=dt([]),Mi={class:"table"},$i=V({__name:"Row",setup(e){const t=P(()=>Ft[Z.theme].mergeAdjacent);return(n,s)=>(v(),k("div",Mi,[d("div",{class:ee(["row",{mergeAdjacent:a(t)}])},[$e(n.$slots,"default")],2)]))}});function Ci(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!rs(e)}function z(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 qe(e){if(st(e))return typeof e=="function"?e():z(e);const t=e[Ke];return h(t,e[Ye](),null)}function at(...e){let t;return h($i,null,Ci(t=e.map(qe))?t:{default:()=>[t]})}function Pe(e){if(st(e))return typeof e=="function"?e():typeof e=="string"?h(H,null,[e]):h(e,null,null);const t=e[Ke];return h(t,e[Ye](),null)}function st(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 Vn(e,t,n){const s=F(null),i=F(void 0);function r(c){s.value||(s.value=setInterval(l,250)),i.value=c,n&&(n.value=!0)}function o(){s.value&&(clearInterval(s.value),s.value=null),n&&(n.value=!1)}function l(){t&&t.value?t.value():e&&e.value&&e.value(i.value)}return kn(o),{start:r,stop:o,handleHolding:l}}function en(e,t="div"){const n=ge();return Ce(()=>{n.value=z(Q(e),t)}),n}function it(e,t="div"){const n=ge(null);return Ce(()=>{const s=Q(e);n.value=s==null?null:z(s,t)}),n}function Pi(e){return P(()=>Q(e))}function Q(e){return a(a(e))}function T(...e){return e.includes(Object)||e.push(Object),e}const bt=V({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,n)=>(v(),k("div",{style:te({width:e.width,height:e.height})},null,4))}});var j=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n};const Ti=V({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var p;const n=F({}),s=new ResizeObserver(l),i=F(null);Ct(()=>{const y=i.value;y!=null&&s.observe(y)});let r=!0,o=F((p=i.value)==null?void 0:p.getBoundingClientRect());function l(){r&&(r=!1,We(()=>{var y;o.value=(y=i.value)==null?void 0:y.getBoundingClientRect(),Object.values(n.value).filter(g=>g).forEach(g=>g.rect=g.element.getBoundingClientRect()),t("updateNodes",n.value),r=!0}))}ae.on("fontsLoaded",l);const c={attributes:!1,childList:!0,subtree:!1};gt(tn,(y,g)=>{const b=new MutationObserver(()=>u(y));b.observe(g,c),n.value[y]={element:g,observer:b,rect:g.getBoundingClientRect()},l()}),gt(nn,y=>{var g;(g=n
`).slice(3,5).map(t=>t.trim()).join(`
`))||""}function Me(e){const t=X(e)?e:F(e);return t[Zt]=t,t[Mt]=X(e)?e.value:e,t[$t]=qi(),t[An]=!1,pe.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",t,`
Created at:
`+t[$t]):nt[pe[pe.length-1]].add(t),t}ae.on("addLayer",(e,t)=>{const n=[],s=(i,r=[])=>{let o=!1;return Object.keys(i).forEach(l=>{const c=i[l];if(c&&typeof c=="object")if(Zt in c){if(o=!0,c[An]){console.warn("Deleted persistent ref present in returned object. Ignoring...",c,`
Created at:
`+c[$t]);return}nt[e.id].delete(K in c?c[K]:c);const u=r.reduce((y,g)=>(g in y||(y[g]={}),y[g]),t),p=u[l];u[l]=c[Zt],ls(u)?p!=null?u[l]=p:u[l]=c[Mt]:p!=null?u[l].value=p:u[l].value=c[Mt]}else!(c instanceof m)&&!X(c)&&!n.includes(c)&&(typeof c.type=="symbol"&&n.push(c),s(c,[...r,l])&&(pn(c)&&!pn(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.",K in i?i[K]:i,l):o=!0))}),o};s(e),nt[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[$t])}),nt[e.id].clear()});const tn=Symbol("RegisterNode"),nn=Symbol("UnregisterNode"),sn=Symbol("Nodes"),rn=Symbol("Bounds"),ne=Jt({});window.layers=ne;const nt={},pe=[];function an(e,t){return Fe(()=>{const n={},s=n.emitter=Mn();if(n.on=s.on.bind(s),n.emit=s.emit.bind(s),n.nodes=F({}),n.id=e,pe.push(e),nt[e]=new Set,n.minimized=Me(!1),Object.assign(n,t.call(n)),pe[pe.length-1]==null||pe[pe.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
Stack: ${pe}
Trying to pop ${n.id}`;return pe.pop(),E(n,"color"),E(n,"display"),E(n,"name"),ke(n,"name",n.id),E(n,"minWidth"),ke(n,"minWidth",600),E(n,"minimizable"),ke(n,"minimizable",!0),n})}function qn(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}ke(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),ne[e.id]=e,ae.emit("addLayer",e,t.layers[e.id])}function Bi(e){return ne[e]}function Bn(e){console.info("Removing layer",e.id),ae.emit("removeLayer",e),ne[e.id]=void 0}function Ri(e){Bn(e),qn(e,M)}function Ui(e){const t=F(!1);return{openModal:()=>t.value=!0,modal:W(()=>h(Oe,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>h("h2",null,[a(e.name)]),body:a(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 ji=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:tn,UnregisterNodeInjectionKey:nn,NodesInjectionKey:sn,BoundsInjectionKey:rn,layers:ne,persistentRefs:nt,addingLayers:pe,createLayer:an,addLayer:qn,getLayer:Bi,removeLayer:Bn,reloadLayer:Ri,setupLayerModal:Ui},Symbol.toStringTag,{value:"Module"}));const Gi={},Wi={class:"notif"};function zi(e,t){return v(),k("div",Wi,"!")}var Nn=j(Gi,[["render",zi],["__scopeId","data-v-66323fd4"]]);const Ot=e=>(Te("data-v-0aae340d"),e=e(),Ie(),e),Hi={key:0,class:"day feature dontMerge opened"},Ki={class:"date"},Yi=C("Dec"),Zi=Ot(()=>d("br",null,null,-1)),Ji={class:"date"},Xi=C("Dec"),Qi=Ot(()=>d("br",null,null,-1)),er={key:0,class:"icon"},tr=Ot(()=>d("div",{class:"doors"},null,-1)),nr={class:"date"},sr=C("Dec"),ir=Ot(()=>d("br",null,null,-1)),rr={key:0,class:"material-icons lock"},ar=V({__name:"Day",props:{day:null,symbol:null,opened:null,shouldNotify:null},emits:["openLore","openLayer","unlockLayer"],setup(e,{emit:t}){const n=e,s=en(Se(n,"symbol")),i=P(()=>m.gte(J.day.value,n.day)&&new Date().getMonth()===11&&new Date().getDate()>=n.day);function r(){i.value&&t("unlockLayer")}return(o,l)=>e.opened.value?(v(),k("div",Hi,[h(Pt,{appear:"",name:"door"},{default:x(()=>[d("div",{class:"doors",onClick:l[0]||(l[0]=c=>t("openLayer"))},[d("div",Ki,[Yi,Zi,C(A(e.day),1)]),d("div",Ji,[Xi,Qi,C(A(e.day),1)])])]),_:1}),a(s)?(v(),k("div",er,[(v(),q(ie(a(s))))])):I("",!0),d("div",{class:"lore",onClick:l[1]||(l[1]=c=>t("openLore"))},"?"),a(e.shouldNotify)?(v(),q(Nn,{key:1})):I("",!0)])):(v(),k("div",{key:1,class:ee(["day feature dontMerge",{can:a(i),locked:!a(i),canOpen:a(i)}]),onClick:r},[tr,d("div",nr,[sr,ir,C(A(e.day),1)]),a(i)?I("",!0):(v(),k("div",rr,"lock")),a(i)?(v(),q(Nn,{key:1})):I("",!0)],2))}});var or=j(ar,[["__scopeId","data-v-0aae340d"]]);const lr={key:0},ur={key:0,class:"mark star"},cr=["src"],dr=V({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(v(),k("div",lr,[e.mark===!0?(v(),k("div",ur)):(v(),k("img",{key:1,class:"mark",src:e.mark},null,8,cr))])):I("",!0)}});var xt=j(dr,[["__scopeId","data-v-2207999f"]]);const fr=V({__name:"Node",props:{id:null},setup(e){const n=se(e),s=Nt(tn,()=>{}),i=Nt(nn,()=>{}),r=ge(null),o=P(()=>r.value&&r.value.parentElement);return ve([o,n.id],([l,c],[u,p])=>{u&&i(a(p)),l&&s(c,l)}),kn(()=>i(a(n.id))),(l,c)=>(v(),k("div",{class:"node",ref_key:"node",ref:r},null,512))}});var Dt=j(fr,[["__scopeId","data-v-a48cb382"]]),mr=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:Dt,MarkNode:xt},setup(e){const{display:t,onClick:n,onHold:s}=se(e),i=ge("");Ce(()=>{const l=Q(t);if(l==null){i.value="";return}if(st(l)){i.value=z(l);return}const c=z(l.title||"","h3"),u=z(l.description,"div");i.value=z(W(()=>h("span",null,[l.title?h("div",null,[h(c,null,null)]):nul
${R}
${$}`)}}return u[S]}ve(n,S=>{S&&Object.keys(u).forEach($=>delete u[$])});const y=P(()=>Z.saves.reduce((S,$)=>(S[$]=p($),S),{}));function g(S){let $;switch(M.id===S?$=xn(M[K]):$=JSON.stringify(y.value[S]),B.exportEncoding){default:console.warn(`Unknown save encoding: ${B.exportEncoding}. Defaulting to lz`);case"lz":$=Ae.compressToUTF16($);break;case"base64":$=btoa(unescape(encodeURIComponent($)));break;case"plain":break}const R=document.createElement("textarea");R.value=$,document.body.appendChild(R),R.select(),R.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(R)}function b(S){M.id===S&&he();const $={...y.value[S],id:_t()};he($),Z.saves.push($.id)}function N(S){Z.saves=Z.saves.filter($=>$!==S),localStorage.removeItem(S),u[S]=void 0}function w(S){y.value[M.id].time=M.time,he(),u[M.id]=void 0,Ge(y.value[S]),u[S]=void 0}function O(S){if(o.value=S,We(()=>{o.value=null}),S[0]!=="{")if(S[0]==="e")S=decodeURIComponent(escape(atob(S)));else if(S[0]==="\u1BE1")S=Ae.decompressFromUTF16(S);else{console.warn("Unable to determine preset encoding",S);return}const $=JSON.parse(S);$.id=_t(),he($),Z.saves.push($.id),w($.id)}function fe(S,$){const R=y.value[S];R&&(R.name=$,M.id===S?(M.name=$,he()):(he(R),u[S]=void 0))}return(S,$)=>(v(),q(Oe,{modelValue:n.value,"onUpdate:modelValue":$[4]||($[4]=R=>n.value=R),ref_key:"modal",ref:s},{header:x(()=>[to]),body:x(({shown:R})=>[R?(v(),q(a(ps),{key:0,list:a(Z).saves,handle:".handle",itemKey:me=>me},{item:x(({element:me})=>[h(eo,{save:a(y)[me],onOpen:Be=>w(me),onExport:Be=>g(me),onEditName:Be=>fe(me,Be),onDuplicate:Be=>b(me),onDelete:Be=>N(me)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):I("",!0)]),footer:x(()=>[d("div",no,[h(Kn,{modelValue:r.value,"onUpdate:modelValue":$[0]||($[0]=R=>r.value=R),title:"Import Save",placeholder:"Paste your save here!",class:ee({importingFailed:i.value})},null,8,["modelValue","class"]),d("div",so,[io,d("div",ro,[d("button",{class:"button",onClick:$[1]||($[1]=R=>w(a(tt)().id))},"New Game"),Object.keys(a(c)).length>0?(v(),q(zn,{key:0,options:a(c),modelValue:o.value,"onUpdate:modelValue":$[2]||($[2]=R=>O(R)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):I("",!0)])]),d("div",ao,[oo,d("button",{class:"button modal-default-button",onClick:$[3]||($[3]=R=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var Yn=j(lo,[["__scopeId","data-v-3b9991aa"]]);const le=e=>(Te("data-v-4a3f8425"),e=e(),Ie(),e),uo=["src","alt"],co={key:1,class:"title"},fo=le(()=>d("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),mo={class:"discord"},ho={class:"discord-links"},po={key:0},go=["href"],vo=le(()=>d("li",null,[d("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),yo=le(()=>d("li",null,[d("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),_o={href:"https://forums.moddingtree.com/",target:"_blank"},bo=le(()=>d("span",{class:"material-icons"},"forum",-1)),No=le(()=>d("span",{class:"material-icons"},"info",-1)),wo=le(()=>d("span",{class:"material-icons"},"library_books",-1)),ko=le(()=>d("span",{class:"material-icons"},"settings",-1)),So=le(()=>d("span",{class:"material-icons"},"library_books",-1)),Mo=le(()=>d("span",{class:"material-icons"},"settings",-1)),$o=le(()=>d("span",{class:"material-icons"},"info",-1)),Co={href:"https://forums.moddingtree.com/",target:"_blank"},Po=le(()=>d("span",{class:"material-icons"},"forum",-1)),To={class:"discord"},Io={class:"discord-links"},Fo={key:0},Oo=["href"],xo=le(()=>d("li",null,[d("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Do=le(()=>d("li",null,[d("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Eo=V({__name:"Nav",setup(e){const t=F(null),n=F(null),s=F(null),i=F(null),{useHeader:r,banner:o,title:l,discordName:c,discordLink:u,versionNumber:p}=B;function y(){window.open(u,"mywindow")}return(g,b)=>(v(),k(H,null,[a(r)?(v(),k("div",ze({key:0,class:"nav"},g.$
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 _i();const{globalBus:e,startGameLoop:t}=await wt(()=>Promise.resolve().then(function(){return yi}),void 0),n=window.vue=fs(yl);e.emit("setupVue",n),n.mount("#app"),We(()=>{const s=ys(),{updateServiceWorker:i}=bl({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()});