pages/advent/assets/index.8f5e2367.js

17 lines
169 KiB
JavaScript
Raw Normal View History

/* empty css */import"./vue.92681fcb.js";import{Z as S,l as Me,u as Sn,q as cn,C as o,b1 as at,aa as L,aE as v,a0 as M,a1 as f,aK as ft,G as we,t as q,aC as fi,w as tt,b2 as Je,a8 as u,O as F,ao as rs,I as Ae,ay as Mn,ar as Gt,aG as gn,A as $e,_ as G,b6 as U,b8 as An,bs as pi,aq as Ht,bu as sn,bb as In,T as us,a7 as h,j as cs,bv as ei,J,$ as B,aH as _t,aF as wt,z as ot,aN as ye,al as bn,aL as xt,H as ds,aJ as hi,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 gi}from"./nanoevents.1080beb7.js";import{L as It}from"./lz-string.731cedc5.js";import{Y as gs}from"./vue-next-select.a2bfab1d.js";import{s as vs,u as vi}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 a of s)if(a.type==="childList")for(const r of a.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&i(r)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerpolicy&&(a.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?a.credentials="include":s.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}};ks();const Cs="modulepreload",ti={},Ns="./",_n=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${Ns}${i}`,i in ti)return;ti[i]=!0;const s=i.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${a}`))return;const r=document.createElement("link");if(r.rel=s?"stylesheet":Cs,s||(r.as="script",r.crossOrigin=""),r.href=i,document.head.appendChild(r),s)return new Promise((c,m)=>{r.addEventListener("load",c),r.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},Ss="./projInfo-schema.json",Ms="Advent Incremental",As="An incremental game you play a day at a time, leading up to Christmas!",Is="advent-incremental",Es="thepaperpilot and friends",Bs="",xs="",Ps="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 ee={$schema:Ss,title:Ms,description:As,id:Is,author:Es,discordName:Bs,discordLink:xs,versionNumber:Ps,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 $n=17,Qs=9e15,zs=Math.log10(9e15),js=1/9e15,Ks=308,Ws=-324,ni=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]}}(),qt=[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.1670905356972596,1
`,e),await Vt(Kt())}}function Kt(){const e=yn(),t=Bi({id:e});return it(t),ue.saves.push(e),t}function yn(){let e,t=0;do e=`${ee.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 _n(()=>Promise.resolve().then(function(){return Ql}),void 0),{fixOldSave:s,getInitialLayers:a}=await _n(()=>Promise.resolve().then(function(){return Xi}),void 0);for(const r in t){const c=t[r];c&&n(c)}a(e).forEach(r=>i(r,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,ee.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==ee.versionNumber&&s(e.modVersion,e),Object.assign(I,e),ue.active=I.id,pe.emit("onLoad")}setInterval(()=>{I.autosave&&it()},1e3);window.onbeforeunload=()=>{I.autosave&&it()};window.save=it;const wl=window.hardReset=async()=>{await Vt(Kt())},an=cn({active:"",saves:[],showTPS:!0,theme:Un.Nordic,unthrottled:!1});at(an,e=>{const t=It.compressToUTF16(JSON.stringify(e));localStorage.setItem(ee.id,t)},{deep:!0});var ue=window.settings=an;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:Un.Nordic};pe.emit("loadSettings",e),Object.assign(an,e),wl()};function kl(){try{let e=localStorage.getItem(ee.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=It.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(an,t)}pe.emit("loadSettings",an)}catch{}}const xi=cn([]);function Cl(e){xi.push(e)}const Pi=cn([]);function Nl(e){Pi.push(e)}const Sl=cn([]),Ml={class:"table"},Wt=L({__name:"Column",setup(e){const t=S(()=>dn[ue.theme].mergeAdjacent);return(n,i)=>(v(),M("div",Ml,[f("div",{class:we(["col",{mergeAdjacent:o(t)}])},[ft(n.$slots,"default")],2)]))}}),Al={class:"table"},Fi=L({__name:"Row",setup(e){const t=S(()=>dn[ue.theme].mergeAdjacent);return(n,i)=>(v(),M("div",Al,[f("div",{class:we(["row",{mergeAdjacent:o(t)}])},[ft(n.$slots,"default")],2)]))}});function Vn(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!rs(e)}function Z(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 me(e){if(bt(e))return typeof e=="function"?e():Z(e);const t=e[Ft];return u(t,e[Tt](),null)}function Oe(...e){let t;return u(Fi,null,Vn(t=e.map(me))?t:{default:()=>[t]})}function Ti(...e){let t;return u(Wt,null,Vn(t=e.map(me))?t:{default:()=>[t]})}function lt(e){if(bt(e))return typeof e=="function"?e():typeof e=="string"?u(F,null,[e]):u(e,null,null);const t=e[Ft];return u(t,e[Tt](),null)}function Il(...e){let t;return u(Wt,null,Vn(t=e.map(lt))?t:{default:()=>[t]})}function bt(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[ln]===!0}function Ri(e,t,n){const i=q(null),s=q(void 0);function a(m){i.value||(i.value=setInterval(c,250)),s.value=m,n&&(n.value=!0)}function r(){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 fi(r),{start:a,stop:r,handleHolding:c}}function El(e,t){const n=S(()=>e.filter(i=>o(i.visibility)===Ie.Visible&&t(i)));return{firstFeature:S(()=>n.value[0]),collapsedContent:R(()=>Ti(...n.value.slice(1))),hasCollapsedContent:S(()=>n.value.length>1)}}function Cn(e,t="div"){const n=tt();return Je(()=>{n.value=Z(Ee(e),t)}),n}function Pt(e,t="div"){const n=tt(null);return Je(()=>{const i=Ee(e);n.value=i==null?null:Z(i,t)}),n}function Bl(e){return S(()=>Ee(e))}function Ee(e){return o(o(e))}function D(...e){return e.includes(Object)||e.push(Object),e}const ve=L({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,n)=>(v(),M("div",{style:Ae({width:e.width,height:e.height})},null,4))}});var ne=(e,t)=>{const n=e.__vccOpts||e;for(const
`).slice(3,5).map(t=>t.trim()).join(`
`))||""}function Be(e){const t=Me(e)?e:q(e);return t[on]=t,t[rn]=Me(e)?e.value:e,t[Nn]=Vl(),t[Di]=!1,st.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",t,`
Created at:
`+t[Nn]):Jt[st[st.length-1]].add(t),t}pe.on("addLayer",(e,t)=>{const n=[],i=(s,a=[])=>{let r=!1;return Object.keys(s).forEach(c=>{const m=s[c];if(m&&typeof m=="object")if(on in m){if(r=!0,m[Di]){console.warn("Deleted persistent ref present in returned object. Ignoring...",m,`
Created at:
`+m[Nn]);return}Jt[e.id].delete(ge in m?m[ge]:m);const d=a.reduce((_,y)=>(y in _||(_[y]={}),_[y]),t),b=d[c];d[c]=m[on],cs(d)?b!=null?d[c]=b:d[c]=m[rn]:b!=null?d[c].value=b:d[c].value=m[rn]}else!(m instanceof l)&&!Me(m)&&!n.includes(m)&&(typeof m.type=="symbol"&&n.push(m),i(m,[...a,c])&&(ei(m)&&!ei(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.",ge in s?s[ge]:s,c):r=!0))}),r};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[Nn])}),Jt[e.id].clear()});const Ln=Symbol("RegisterNode"),Gn=Symbol("UnregisterNode"),Hn=Symbol("Nodes"),Qn=Symbol("Bounds"),qe=Sn({});window.layers=qe;const Jt={},st=[];function Rt(e,t){return Qe(()=>{const n={},i=n.emitter=gi();if(n.on=i.on.bind(i),n.emit=i.emit.bind(i),n.nodes=q({}),n.id=e,st.push(e),Jt[e]=new Set,n.minimized=Be(!1),Object.assign(n,t.call(n)),st[st.length-1]==null||st[st.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
Stack: ${st}
Trying to pop ${n.id}`;return st.pop(),T(n,"color"),T(n,"display"),T(n,"name"),Re(n,"name",n.id),T(n,"minWidth"),Re(n,"minWidth",600),T(n,"minimizable"),Re(n,"minimizable",!0),n})}function Oi(e,t){if(console.info("Adding layer",e.id),qe[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,qe[e.id]);return}Re(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),qe[e.id]=e,pe.emit("addLayer",e,t.layers[e.id])}function Ll(e){return qe[e]}function qi(e){console.info("Removing layer",e.id),pe.emit("removeLayer",e),qe[e.id]=void 0}function Gl(e){qi(e),Oi(e,I)}function Hl(e){const t=q(!1);return{openModal:()=>t.value=!0,modal:R(()=>u(rt,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>u("h2",null,[o(e.name)]),body:o(e.display)}))}}pe.on("update",function(t){Object.values(qe).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(qe).forEach(n=>{n==null||n.emit("update",t)}),Object.values(qe).forEach(n=>{n==null||n.emit("postUpdate",t)})});var Ql=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:Ln,UnregisterNodeInjectionKey:Gn,NodesInjectionKey:Hn,BoundsInjectionKey:Qn,layers:qe,persistentRefs:Jt,addingLayers:st,createLayer:Rt,addLayer:Oi,getLayer:Ll,removeLayer:qi,reloadLayer:Gl,setupLayerModal:Hl},Symbol.toStringTag,{value:"Module"}));const zl={},jl={class:"notif"};function Kl(e,t){return v(),M("div",jl,"!")}var ai=ne(zl,[["render",Kl],["__scopeId","data-v-66323fd4"]]);const Bn=e=>(_t("data-v-1a86f696"),e=e(),wt(),e),Wl={key:0,class:"day feature dontMerge opened"},Jl={class:"date"},Xl=h("Dec"),Yl=Bn(()=>f("br",null,null,-1)),Zl={class:"date"},ea=h("Dec"),ta=Bn(()=>f("br",null,null,-1)),na=Bn(()=>f("div",{class:"doors"},null,-1)),ia={class:"date"},sa=h("Dec"),la=Bn(()=>f("br",null,null,-1)),aa={key:0,class:"material-icons lock"},oa=L({__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(()=>l.gte(z.day.value,n.day)&&new Date().getMonth()===11&&new Date().getDate()>=n.day);function s(){i.value&&t("unlockLayer")}return(a,r)=>e.opened.value?(v(),M("div",Wl,[u(In,{appear:"",name:"door"},{default:U(()=>[f("div",{class:"doors",onClick:r[0]||(r[0]=c=>t("openLayer"))},[f("div",Jl,[Xl,Yl,h(J(e.day),1)]),f("div",Zl,[ea,ta,h(J(e.day),1)])])]),_:1}),f("div",{class:"icon",style:Ae({backgroundImage:`url(${e.symbol})`})},null,4),f("div",{class:"lore",onClick:r[1]||(r[1]=c=>t("openLore"))},"?"),o(e.shouldNotify)?(v(),G(ai,{key:0})):B("",!0)])):(v(),M("div",{key:1,class:we(["day feature dontMerge",{can:o(i),locked:!o(i),canOpen:o(i)}]),onClick:s},[na,f("div",ia,[sa,la,h(J(e.day),1)]),o(i)?B("",!0):(v(),M("div",aa,"lock")),o(i)?(v(),G(ai,{key:1})):B("",!0)],2))}});var ra=ne(oa,[["__scopeId","data-v-1a86f696"]]);const ua=L({__name:"Collapsible",props:{collapsed:null,display:null,content:null},setup(e){const t=e,n=Cn(ot(t,"display")),i=Cn(ot(t,"content"));return(s,a)=>(v(),G(Wt,{class:"collapsible-container"},{default:U(()=>[f("button",{onClick:a[0]||(a[0]=r=>e.collapsed.value=!e.collapsed.value),class:"feature collapsible-toggle"},[(v(),G(ye(o(n))))]),e.collapsed.value?B("",!0):(v(),G(ye(o(i)),{key:0}))]),_:1}))}});var ca=ne(ua,[["__scopeId","data-v-a72c16aa"]]);const da={key:0},ma={key:0,class:"mark star"},fa=["src"],pa=L({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(v(),M("div",da,[e.mark===!0?(v(),M("div",ma)):(v(),M("img",{key:1,class:"mark",src:e.mark},null,8,fa))])):B("",!0)}});var xn=ne(pa,[["__scopeId","data-v-2207999f"]]);const ha=L({__name:"Node",props:{id:null},setup(e){const n=$e(e),i=bn(Ln,()=>{}),s=bn(Gn,()=>{}),a=tt(null),r=S(()=>a.value&&a.value.parentElement);return at([r,n.id],([c,m],[d,b])=>{d&&s(o(b)),c&&i(m,c)}),fi(()=>s(o(n.id))),(c,m)=>(v(),M("div",{class:"node",ref_key:"node",ref:a},null,512))}});var mn=ne(ha,[["__scopeId","data-v-a48cb382"]]);const ga=L({props:{progress:{type:D(String,Object,Number),required:!0},width:{type:D(Number),required:!0},height:{type:D(Number),required:!0},di
margin: 10px 0;"/>${$}`:N,t.value=!0},onOpenLayer(){if(fe.value=!1,window.matchMedia("(min-width: 1468px)").matches)if(I.tabs.includes(k!=null?k:"trees")){const ce=I.tabs.lastIndexOf(k!=null?k:"trees");I.tabs.splice(ce,1)}else I.tabs.push(k!=null?k:"trees"),z.minimized.value=!0;else I.tabs.splice(1,1/0,k!=null?k:"trees")},onUnlockLayer(){le.value=!0,setTimeout(()=>{var ce,Ze;n.value=-1,i.value=o((Ze=(ce=qe[k!=null?k:"trees"])==null?void 0:ce.name)!=null?Ze:""),s.value=N,I.devSpeed=null,t.value=!0},1e3)}}}}})}const r=[a(()=>({day:1,shouldNotify:!1,layer:"trees",symbol:Qi,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!"})),a(()=>({day:2,shouldNotify:!1,layer:"workshop",symbol:zi,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!"})),a(()=>({day:3,shouldNotify:!1,layer:"coal",symbol:ji,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!"})),a(()=>({day:4,shouldNotify:!1,layer:"elves",symbol:Ki,story:"Alright, it seems you finally have enough things set up to start bringing in the elves! Unfortunately, it seems they'll need to be retrained on how to help, since they've stopped practicing for 11 months!",completedStory:"The workshop now hums with the bustling elves working on everything. They can take it from here - you deserve a break after such a long day! Good Job!"})),a(()=>({day:5,shouldNotify:!1,layer:"paper",symbol:Wi,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 which will 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!"})),a(()=>({day:6,shouldNotify:!1,layer:"boxes",symbol:Ji,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 on your list and start looking towards tomorrow. Good Job!"})),a(()=>({day:7,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),a(()=>({day:8,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),a(()=>({day:9,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),a(()=>({day:10,shouldNotify:!1,layer:null,symbol:"",story:"",completedStory:""})),a(()=>({day:11,shouldNotify:!1,
${$}
${N}`)}}return d[A]}at(n,A=>{A&&Object.keys(d).forEach(N=>delete d[N])});const _=S(()=>ue.saves.reduce((A,N)=>(A[N]=b(N),A),{}));function y(A){let N;switch(I.id===A?N=Ii(I[ge]):N=JSON.stringify(_.value[A]),ee.exportEncoding){default:console.warn(`Unknown save encoding: ${ee.exportEncoding}. Defaulting to lz`);case"lz":N=It.compressToUTF16(N);break;case"base64":N=btoa(unescape(encodeURIComponent(N)));break;case"plain":break}const $=document.createElement("textarea");$.value=N,document.body.appendChild($),$.select(),$.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild($)}function g(A){I.id===A&&it();const N={..._.value[A],id:yn()};it(N),ue.saves.push(N.id)}function w(A){ue.saves=ue.saves.filter(N=>N!==A),localStorage.removeItem(A),d[A]=void 0}function k(A){_.value[I.id].time=I.time,it(),d[I.id]=void 0,Vt(_.value[A]),d[A]=void 0}function P(A){if(r.value=A,Gt(()=>{r.value=null}),A[0]!=="{")if(A[0]==="e")A=decodeURIComponent(escape(atob(A)));else if(A[0]==="\u1BE1")A=It.decompressFromUTF16(A);else{console.warn("Unable to determine preset encoding",A);return}const N=JSON.parse(A);N.id=yn(),it(N),ue.saves.push(N.id),k(N.id)}function le(A,N){const $=_.value[A];$&&($.name=N,I.id===A?(I.name=N,it()):(it($),d[A]=void 0))}return(A,N)=>(v(),G(rt,{modelValue:n.value,"onUpdate:modelValue":N[4]||(N[4]=$=>n.value=$),ref_key:"modal",ref:i},{header:U(()=>[Ir]),body:U(({shown:$})=>[$?(v(),G(o(ys),{key:0,list:o(ue).saves,handle:".handle",itemKey:fe=>fe},{item:U(({element:fe})=>[u(Ar,{save:o(_)[fe],onOpen:ce=>k(fe),onExport:ce=>y(fe),onEditName:ce=>le(fe,ce),onDuplicate:ce=>g(fe),onDelete:ce=>w(fe)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):B("",!0)]),footer:U(()=>[f("div",Er,[u(es,{modelValue:a.value,"onUpdate:modelValue":N[0]||(N[0]=$=>a.value=$),title:"Import Save",placeholder:"Paste your save here!",class:we({importingFailed:s.value})},null,8,["modelValue","class"]),f("div",Br,[xr,f("div",Pr,[f("button",{class:"button",onClick:N[1]||(N[1]=$=>k(o(Kt)().id))},"New Game"),Object.keys(o(m)).length>0?(v(),G(Wn,{key:0,options:o(m),modelValue:r.value,"onUpdate:modelValue":N[2]||(N[2]=$=>P($)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):B("",!0)])]),f("div",Fr,[Tr,f("button",{class:"button modal-default-button",onClick:N[3]||(N[3]=$=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var ts=ne(Rr,[["__scopeId","data-v-3b9991aa"]]);const Ye=e=>(_t("data-v-4a3f8425"),e=e(),wt(),e),$r=["src","alt"],Dr={key:1,class:"title"},Or=Ye(()=>f("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),qr={class:"discord"},Ur={class:"discord-links"},Vr={key:0},Lr=["href"],Gr=Ye(()=>f("li",null,[f("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Hr=Ye(()=>f("li",null,[f("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Qr={href:"https://forums.moddingtree.com/",target:"_blank"},zr=Ye(()=>f("span",{class:"material-icons"},"forum",-1)),jr=Ye(()=>f("span",{class:"material-icons"},"info",-1)),Kr=Ye(()=>f("span",{class:"material-icons"},"library_books",-1)),Wr=Ye(()=>f("span",{class:"material-icons"},"settings",-1)),Jr=Ye(()=>f("span",{class:"material-icons"},"library_books",-1)),Xr=Ye(()=>f("span",{class:"material-icons"},"settings",-1)),Yr=Ye(()=>f("span",{class:"material-icons"},"info",-1)),Zr={href:"https://forums.moddingtree.com/",target:"_blank"},eu=Ye(()=>f("span",{class:"material-icons"},"forum",-1)),tu={class:"discord"},nu={class:"discord-links"},iu={key:0},su=["href"],lu=Ye(()=>f("li",null,[f("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),au=Ye(()=>f("li",null,[f("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),ou=L({__name:"Nav",setup(e){const t=q(null),n=q(null),i=q(null),s=q(null),{useHeader:a,banner:r,title:c,discordName:m,discordLink:d,versionNumber:b}=ee;function _(){window.open(d,"mywindow")}return(y,g)=>(v(),M(F,null,[o(a)?(v(),M("div",Ht({key:0,class
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 _l();const{globalBus:e,startGameLoop:t}=await _n(()=>Promise.resolve().then(function(){return bl}),void 0),n=window.vue=ps(Gu);e.emit("setupVue",n),n.mount("#app"),Gt(()=>{const i=vi(),{updateServiceWorker:s}=Qu({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(a){a&&setInterval(a.update,60*60*1e3)}})}),t()});