pages/advent/assets/index.390bd563.js

17 lines
169 KiB
JavaScript
Raw Normal View History

/* empty css */import"./vue.92681fcb.js";import{Z as S,l as xe,u as En,q as pn,C as o,b1 as st,aa as G,aE as b,a0 as M,a1 as f,aK as dt,G as Ne,t as O,aC as gi,w as Ze,b2 as Oe,a8 as r,O as T,ao as rs,I as Me,ay as Bn,ar as Ut,aG as _n,A as Te,_ as Q,b6 as V,b8 as Pn,bs as vi,aq as Vt,bu as un,bb as xn,T as us,a7 as p,j as ds,bv as oi,J as W,$ as B,aH as bt,aF as _t,z as at,aN as Se,al as Cn,aL as It,H as cs,aJ as yi,bn as ms,br as fs,be as ps}from"./@vue.4ce677c2.js";import{i as hs}from"./is-plain-object.906d88e8.js";import{c as bi}from"./nanoevents.1080beb7.js";import{L as Nt}from"./lz-string.731cedc5.js";import{Y as gs}from"./vue-next-select.a2bfab1d.js";import{s as vs,u as _i}from"./vue-toastification.6f567382.js";import{D as ys}from"./vuedraggable.7949458c.js";import{p as bs}from"./vue-textarea-autosize.35804eaf.js";import{v as _s,n as ws}from"./workbox-window.8d14e8b7.js";import"./sortablejs.29100d8a.js";const ks=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 u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).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)}};ks();const Cs="modulepreload",ri={},Ns="./",Nn=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${Ns}${i}`,i in ri)return;ri[i]=!0;const s=i.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${l}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":Cs,s||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),s)return new Promise((d,m)=>{u.addEventListener("load",d),u.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},Ss="./projInfo-schema.json",Ms="Advent Incremental",Is="An incremental game you play a day at a time, leading up to Christmas!",As="advent-incremental",Es="thepaperpilot and friends",Bs="",Ps="",xs="0.3",Fs="Initial Commit",Ts=!0,Rs=!1,$s=2,Ds=!0,Os=null,qs="",Us=["main"],Vs=3600,Ls=0,Gs=!0,Hs="base64";var ae={$schema:Ss,title:Ms,description:Is,id:As,author:Es,discordName:Bs,discordLink:Ps,versionNumber:xs,versionTitle:Fs,allowGoBack:Ts,defaultShowSmall:Rs,defaultDecimalsShown:$s,useHeader:Ds,banner:Os,logo:qs,initialTabs:Us,maxTickLength:Vs,offlineLimit:Ls,enablePausing:Gs,exportEncoding:Hs};const Vn=17,Qs=9e15,zs=Math.log10(9e15),js=1/9e15,Ks=308,Ws=-324,ui=5,Js=function(){const e=[];for(let n=Ws+1;n<=Ks;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),Rt=[2,Math.E,3,4,5,6,7,8,9,10],Xs=[[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.1670905356972
`,e),await Dt(Kt())}}function Kt(){const e=kn(),t=xi({id:e});return tt(t),pe.saves.push(e),t}function kn(){let e,t=0;do e=`${ae.id}-${t++}`;while(localStorage.getItem(e));return e}async function Dt(e){console.info("Loading save",e);const{layers:t,removeLayer:n,addLayer:i}=await Nn(()=>Promise.resolve().then(function(){return Ha}),void 0),{fixOldSave:s,getInitialLayers:l}=await Nn(()=>Promise.resolve().then(function(){return Zi}),void 0);for(const u in t){const d=t[u];d&&n(d)}l(e).forEach(u=>i(u,e)),e=xi(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,ae.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==ae.versionNumber&&s(e.modVersion,e),Object.assign(E,e),pe.active=E.id,ye.emit("onLoad")}setInterval(()=>{E.autosave&&tt()},1e3);window.onbeforeunload=()=>{E.autosave&&tt()};window.save=tt;const _a=window.hardReset=async()=>{await Dt(Kt())},cn=pn({active:"",saves:[],showTPS:!0,theme:Qn.Nordic,unthrottled:!1});st(cn,e=>{const t=Nt.compressToUTF16(JSON.stringify(e));localStorage.setItem(ae.id,t)},{deep:!0});var pe=window.settings=cn;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:Qn.Nordic};ye.emit("loadSettings",e),Object.assign(cn,e),_a()};function wa(){try{let e=localStorage.getItem(ae.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Nt.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(cn,t)}ye.emit("loadSettings",cn)}catch{}}const Fi=pn([]);function ka(e){Fi.push(e)}const Ti=pn([]);function Ca(e){Ti.push(e)}const Na=pn([]),Sa={class:"table"},Wt=G({__name:"Column",setup(e){const t=S(()=>hn[pe.theme].mergeAdjacent);return(n,i)=>(b(),M("div",Sa,[f("div",{class:Ne(["col",{mergeAdjacent:o(t)}])},[dt(n.$slots,"default")],2)]))}}),Ma={class:"table"},Ri=G({__name:"Row",setup(e){const t=S(()=>hn[pe.theme].mergeAdjacent);return(n,i)=>(b(),M("div",Ma,[f("div",{class:Ne(["row",{mergeAdjacent:o(t)}])},[dt(n.$slots,"default")],2)]))}});function zn(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!rs(e)}function se(e,t="span"){return typeof e=="function"?G({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}</${t}>`),G({template:e})):G({render:()=>({})}):e}function ve(e){if(yt(e))return typeof e=="function"?e():se(e);const t=e[At];return r(t,e[Et](),null)}function $e(...e){let t;return r(Ri,null,zn(t=e.map(ve))?t:{default:()=>[t]})}function $i(...e){let t;return r(Wt,null,zn(t=e.map(ve))?t:{default:()=>[t]})}function it(e){if(yt(e))return typeof e=="function"?e():typeof e=="string"?r(T,null,[e]):r(e,null,null);const t=e[At];return r(t,e[Et](),null)}function Ia(...e){let t;return r(Wt,null,zn(t=e.map(it))?t:{default:()=>[t]})}function yt(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[dn]===!0}function Di(e,t,n){const i=O(null),s=O(void 0);function l(m){i.value||(i.value=setInterval(d,250)),s.value=m,n&&(n.value=!0)}function u(){i.value&&(clearInterval(i.value),i.value=null),n&&(n.value=!1)}function d(){t&&t.value?t.value():e&&e.value&&e.value(s.value)}return gi(u),{start:l,stop:u,handleHolding:d}}function Aa(e,t){const n=S(()=>e.filter(i=>o(i.visibility)===Ie.Visible&&t(i)));return{firstFeature:S(()=>n.value[0]),collapsedContent:x(()=>$i(...n.value.slice(1))),hasCollapsedContent:S(()=>n.value.length>1)}}function In(e,t="div"){const n=Ze();return Oe(()=>{n.value=se(Ae(e),t)}),n}function Lt(e,t="div"){const n=Ze(null);return Oe(()=>{const i=Ae(e);n.value=i==null?null:se(i,t)}),n}function Ea(e){return S(()=>Ae(e))}function Ae(e){return o(o(e))}function R(...e){return e.includes(Object)||e.push(Object),e}const Ce=G({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,n)=>(b(),M("div",{style:Me({width:e.width,height:e.height})},null,4))}});var oe=(e,t)=>{const n=e.__vccOpts||e;for(c
`).slice(3,5).map(t=>t.trim()).join(`
`))||""}function Ee(e){const t=xe(e)?e:O(e);return t[mn]=t,t[fn]=xe(e)?e.value:e,t[An]=Ua(),t[qi]=!1,nt.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",t,`
Created at:
`+t[An]):Jt[nt[nt.length-1]].add(t),t}ye.on("addLayer",(e,t)=>{const n=[],i=(s,l=[])=>{let u=!1;return Object.keys(s).forEach(d=>{const m=s[d];if(m&&typeof m=="object")if(mn in m){if(u=!0,m[qi]){console.warn("Deleted persistent ref present in returned object. Ignoring...",m,`
Created at:
`+m[An]);return}Jt[e.id].delete(_e in m?m[_e]:m);const c=l.reduce((v,y)=>(y in v||(v[y]={}),v[y]),t),_=c[d];c[d]=m[mn],ds(c)?_!=null?c[d]=_:c[d]=m[fn]:_!=null?c[d].value=_:c[d].value=m[fn]}else!(m instanceof a)&&!xe(m)&&!n.includes(m)&&(typeof m.type=="symbol"&&n.push(m),i(m,[...l,d])&&(oi(m)&&!oi(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.",_e in s?s[_e]:s,d):u=!0))}),u};i(e),Jt[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[An])}),Jt[e.id].clear()});const jn=Symbol("RegisterNode"),Kn=Symbol("UnregisterNode"),Wn=Symbol("Nodes"),Jn=Symbol("Bounds"),De=En({});window.layers=De;const Jt={},nt=[];function Bt(e,t){return Ge(()=>{const n={},i=n.emitter=bi();if(n.on=i.on.bind(i),n.emit=i.emit.bind(i),n.nodes=O({}),n.id=e,nt.push(e),Jt[e]=new Set,n.minimized=Ee(!1),Object.assign(n,t.call(n)),nt[nt.length-1]==null||nt[nt.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
Stack: ${nt}
Trying to pop ${n.id}`;return nt.pop(),F(n,"color"),F(n,"display"),F(n,"name"),Fe(n,"name",n.id),F(n,"minWidth"),Fe(n,"minWidth",600),F(n,"minimizable"),Fe(n,"minimizable",!0),n})}function Ui(e,t){if(console.info("Adding layer",e.id),De[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,De[e.id]);return}Fe(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),De[e.id]=e,ye.emit("addLayer",e,t.layers[e.id])}function Va(e){return De[e]}function Vi(e){console.info("Removing layer",e.id),ye.emit("removeLayer",e),De[e.id]=void 0}function La(e){Vi(e),Ui(e,E)}function Ga(e){const t=O(!1);return{openModal:()=>t.value=!0,modal:x(()=>r(lt,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>r("h2",null,[o(e.name)]),body:o(e.display)}))}}ye.on("update",function(t){Object.values(De).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(De).forEach(n=>{n==null||n.emit("update",t)}),Object.values(De).forEach(n=>{n==null||n.emit("postUpdate",t)})});var Ha=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:jn,UnregisterNodeInjectionKey:Kn,NodesInjectionKey:Wn,BoundsInjectionKey:Jn,layers:De,persistentRefs:Jt,addingLayers:nt,createLayer:Bt,addLayer:Ui,getLayer:Va,removeLayer:Vi,reloadLayer:La,setupLayerModal:Ga},Symbol.toStringTag,{value:"Module"}));const Qa={},za={class:"notif"};function ja(e,t){return b(),M("div",za,"!")}var fi=oe(Qa,[["render",ja],["__scopeId","data-v-66323fd4"]]);const Tn=e=>(bt("data-v-1a86f696"),e=e(),_t(),e),Ka={key:0,class:"day feature dontMerge opened"},Wa={class:"date"},Ja=p("Dec"),Xa=Tn(()=>f("br",null,null,-1)),Ya={class:"date"},Za=p("Dec"),el=Tn(()=>f("br",null,null,-1)),tl=Tn(()=>f("div",{class:"doors"},null,-1)),nl={class:"date"},il=p("Dec"),sl=Tn(()=>f("br",null,null,-1)),al={key:0,class:"material-icons lock"},ll=G({__name:"Day",props:{day:null,symbol:null,opened:null,recentlyUpdated:null,shouldNotify:null},emits:["openLore","openLayer","unlockLayer"],setup(e,{emit:t}){const n=e,i=S(()=>a.gte(D.day.value,n.day)&&new Date().getMonth()===11&&new Date().getDate()>=n.day);function s(){i.value&&t("unlockLayer")}return(l,u)=>e.opened.value?(b(),M("div",Ka,[r(xn,{appear:"",name:"door"},{default:V(()=>[f("div",{class:"doors",onClick:u[0]||(u[0]=d=>t("openLayer"))},[f("div",Wa,[Ja,Xa,p(W(e.day),1)]),f("div",Ya,[Za,el,p(W(e.day),1)])])]),_:1}),f("div",{class:"icon",style:Me({backgroundImage:`url(${e.symbol})`})},null,4),f("div",{class:"lore",onClick:u[1]||(u[1]=d=>t("openLore"))},"?"),o(e.shouldNotify)?(b(),Q(fi,{key:0})):B("",!0)])):(b(),M("div",{key:1,class:Ne(["day feature dontMerge",{can:o(i),locked:!o(i),canOpen:o(i)}]),onClick:s},[tl,f("div",nl,[il,sl,p(W(e.day),1)]),o(i)?B("",!0):(b(),M("div",al,"lock")),o(i)?(b(),Q(fi,{key:1})):B("",!0)],2))}});var ol=oe(ll,[["__scopeId","data-v-1a86f696"]]);const rl=G({__name:"Collapsible",props:{collapsed:null,display:null,content:null},setup(e){const t=e,n=In(at(t,"display")),i=In(at(t,"content"));return(s,l)=>(b(),Q(Wt,{class:"collapsible-container"},{default:V(()=>[f("button",{onClick:l[0]||(l[0]=u=>e.collapsed.value=!e.collapsed.value),class:"feature collapsible-toggle"},[(b(),Q(Se(o(n))))]),e.collapsed.value?B("",!0):(b(),Q(Se(o(i)),{key:0}))]),_:1}))}});var ul=oe(rl,[["__scopeId","data-v-a72c16aa"]]);const dl={key:0},cl={key:0,class:"mark star"},ml=["src"],fl=G({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(b(),M("div",dl,[e.mark===!0?(b(),M("div",cl)):(b(),M("img",{key:1,class:"mark",src:e.mark},null,8,ml))])):B("",!0)}});var Rn=oe(fl,[["__scopeId","data-v-2207999f"]]);const pl=G({__name:"Node",props:{id:null},setup(e){const n=Te(e),i=Cn(jn,()=>{}),s=Cn(Kn,()=>{}),l=Ze(null),u=S(()=>l.value&&l.value.parentElement);return st([u,n.id],([d,m],[c,_])=>{c&&s(o(_)),d&&i(m,d)}),gi(()=>s(o(n.id))),(d,m)=>(b(),M("div",{class:"node",ref_key:"node",ref:l},null,512))}});var gn=oe(pl,[["__scopeId","data-v-a48cb382"]]),hl=G({props:{display:{type:R(Object,String,Function),required:!0},visibility:{type:R(Number),required:!0},style:R(Object,String,Array),classes:R
margin: 10px 0;"/>${U}`:N,t.value=!0},onOpenLayer(){if(J.value=!1,window.matchMedia("(min-width: 1468px)").matches)if(E.tabs.includes(C!=null?C:"trees")){const ee=E.tabs.lastIndexOf(C!=null?C:"trees");E.tabs.splice(ee,1)}else E.tabs.push(C!=null?C:"trees"),D.minimized.value=!0;else E.tabs.splice(1,1/0,C!=null?C:"trees")},onUnlockLayer(){ue.value=!0,setTimeout(()=>{var ee,ce;n.value=-1,i.value=o((ce=(ee=De[C!=null?C:"trees"])==null?void 0:ee.name)!=null?ce:""),s.value=N,E.devSpeed=null,t.value=!0},1e3)}}}}})}const u=[l(()=>({day:1,shouldNotify:!1,layer:"trees",symbol:ji,story:"Oh no! Santa forgot about Christmas and it's only 25 days away! He's asked for your help due to your history getting large quantities of things in short amounts of time. Unfortunately you're really starting from scratch here - let's start with getting wood, which you'll need for everything from building workshops to wrapping paper to many of the toys themselves!",completedStory:"Santa looks at all the wood you've gathered and tells you you've done well! He says you should take the rest of the day off so you're refreshed for tomorrow's work. Good Job!"})),l(()=>({day:2,shouldNotify:!1,layer:"workshop",symbol:Ki,story:"Santa looked over your tree farm and was impressed with how much you could accomplish in just one day. Today's goal is to get a workshop built up for the elves to work in - and apparently, they need quite a lot of space to work!",completedStory:"The workshop complete, Santa once again dismisses you for the day. With a strong foundation, this workshop should suffice for supporting future work toward this impossible mission. Good Job!"})),l(()=>({day:3,shouldNotify:!1,layer:"coal",symbol:Wi,story:"Santa tells you that unfortunately there are quite a few naughty children out there this year, and he's going to need you to gather as much coal as you can for him to give out.",completedStory:"Santa looks at all the coal you've gathered and tells you you've done well! He says you should take the rest of the day off so you're refreshed for tomorrow's work. Good Job!"})),l(()=>({day:4,shouldNotify:!1,layer:"elves",symbol:Ji,story:"Alright, it seems you finally have enough things setup to start bringing in the elves! Unfortunately, it seems they'll need to be retrained on how to help, since they're out of practice by 11 months!",completedStory:"The workshop now hums with the bustling elves working everything. They can take it from here - you deserve a break after such a long day! Good Job!"})),l(()=>({day:5,shouldNotify:!1,layer:"paper",symbol:Xi,story:"With the elves trained, we're almost ready to start working on these presents! Just a couple more pre-reqs first, starting with turning all this wood into wood pulp and finally into paper, which will be required for wrapping paper later on but in the meantime can be used to help write guides to help these elves continue their education!",completedStory:"You look upon your rivers of book pulp as you hand out stacks of papers to elves to read through. You've continued getting closer and closer to preparing for Christmas, and can go to bed satisfied with your progress. Good Job!"})),l(()=>({day:6,shouldNotify:!1,layer:"boxes",symbol:Yi,story:"You watch all these elves carrying incredibly large loads just in their open elf-sized hands, and realize there's probably a better way. You need to put the toys in boxes anyways, so why don't we get started working on those so the workers can take advantage as well?",completedStory:"Wow, those boxes are really convenient! The workshop feels more and more proper with every day. You tick another requirement of your list and start looking towards tomorrow. Good Job!"})),l(()=>({day:7,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),l(()=>({day:8,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),l(()=>({day:9,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),l(()=>({day:10,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),l(()=>({day:11,shouldNotify:!1,layer:null,symbol
${U}
${N}`)}}return c[I]}st(n,I=>{I&&Object.keys(c).forEach(N=>delete c[N])});const v=S(()=>pe.saves.reduce((I,N)=>(I[N]=_(N),I),{}));function y(I){let N;switch(E.id===I?N=Bi(E[_e]):N=JSON.stringify(v.value[I]),ae.exportEncoding){default:console.warn(`Unknown save encoding: ${ae.exportEncoding}. Defaulting to lz`);case"lz":N=Nt.compressToUTF16(N);break;case"base64":N=btoa(unescape(encodeURIComponent(N)));break;case"plain":break}const U=document.createElement("textarea");U.value=N,document.body.appendChild(U),U.select(),U.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(U)}function g(I){E.id===I&&tt();const N={...v.value[I],id:kn()};tt(N),pe.saves.push(N.id)}function w(I){pe.saves=pe.saves.filter(N=>N!==I),localStorage.removeItem(I),c[I]=void 0}function C(I){v.value[E.id].time=E.time,tt(),c[E.id]=void 0,Dt(v.value[I]),c[I]=void 0}function j(I){if(u.value=I,Ut(()=>{u.value=null}),I[0]!=="{")if(I[0]==="e")I=decodeURIComponent(escape(atob(I)));else if(I[0]==="\u1BE1")I=Nt.decompressFromUTF16(I);else{console.warn("Unable to determine preset encoding",I);return}const N=JSON.parse(I);N.id=kn(),tt(N),pe.saves.push(N.id),C(N.id)}function ue(I,N){const U=v.value[I];U&&(U.name=N,E.id===I?(E.name=N,tt()):(tt(U),c[I]=void 0))}return(I,N)=>(b(),Q(lt,{modelValue:n.value,"onUpdate:modelValue":N[4]||(N[4]=U=>n.value=U),ref_key:"modal",ref:i},{header:V(()=>[Nr]),body:V(({shown:U})=>[U?(b(),Q(o(ys),{key:0,list:o(pe).saves,handle:".handle",itemKey:J=>J},{item:V(({element:J})=>[r(Cr,{save:o(v)[J],onOpen:ee=>C(J),onExport:ee=>y(J),onEditName:ee=>ue(J,ee),onDuplicate:ee=>g(J),onDelete:ee=>w(J)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):B("",!0)]),footer:V(()=>[f("div",Sr,[r(ns,{modelValue:l.value,"onUpdate:modelValue":N[0]||(N[0]=U=>l.value=U),title:"Import Save",placeholder:"Paste your save here!",class:Ne({importingFailed:s.value})},null,8,["modelValue","class"]),f("div",Mr,[Ir,f("div",Ar,[f("button",{class:"button",onClick:N[1]||(N[1]=U=>C(o(Kt)().id))},"New Game"),Object.keys(o(m)).length>0?(b(),Q(ei,{key:0,options:o(m),modelValue:u.value,"onUpdate:modelValue":N[2]||(N[2]=U=>j(U)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):B("",!0)])]),f("div",Er,[Br,f("button",{class:"button modal-default-button",onClick:N[3]||(N[3]=U=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var is=oe(Pr,[["__scopeId","data-v-3b9991aa"]]);const je=e=>(bt("data-v-4a3f8425"),e=e(),_t(),e),xr=["src","alt"],Fr={key:1,class:"title"},Tr=je(()=>f("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Rr={class:"discord"},$r={class:"discord-links"},Dr={key:0},Or=["href"],qr=je(()=>f("li",null,[f("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Ur=je(()=>f("li",null,[f("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Vr={href:"https://forums.moddingtree.com/",target:"_blank"},Lr=je(()=>f("span",{class:"material-icons"},"forum",-1)),Gr=je(()=>f("span",{class:"material-icons"},"info",-1)),Hr=je(()=>f("span",{class:"material-icons"},"library_books",-1)),Qr=je(()=>f("span",{class:"material-icons"},"settings",-1)),zr=je(()=>f("span",{class:"material-icons"},"library_books",-1)),jr=je(()=>f("span",{class:"material-icons"},"settings",-1)),Kr=je(()=>f("span",{class:"material-icons"},"info",-1)),Wr={href:"https://forums.moddingtree.com/",target:"_blank"},Jr=je(()=>f("span",{class:"material-icons"},"forum",-1)),Xr={class:"discord"},Yr={class:"discord-links"},Zr={key:0},eu=["href"],tu=je(()=>f("li",null,[f("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),nu=je(()=>f("li",null,[f("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),iu=G({__name:"Nav",setup(e){const t=O(null),n=O(null),i=O(null),s=O(null),{useHeader:l,banner:u,title:d,discordName:m,discordLink:c,versionNumber:_}=ae;function v(){window.open(c,"mywindow")}return(y,g)=>(b(),M(T,null,[o(l)?(b(),M("div",Vt({key:0,class:"nav"},y
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 ba();const{globalBus:e,startGameLoop:t}=await Nn(()=>Promise.resolve().then(function(){return ya}),void 0),n=window.vue=ps(qu);e.emit("setupVue",n),n.mount("#app"),Ut(()=>{const i=_i(),{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()});