/* empty css */import"./vue.92681fcb.js";import{ZasC,laslt,aaasae,tas$,ayasln,arasbl,aEasy,a0asE,aKasVt,a1asg,OasI,aGasjl,Aasgt,_asee,a8aso,b6asJ,b8asnn,bsasZn,Casr,aqaswl,buasFl,bbasan,TasWi,a7asd,uason,jasKi,bvaswn,qasOl,b1asQt,Gaset,aCasei,wasTt,b2asBt,aoasJi,Iasnt,Jasce,$asU,aHasYt,aFasXt,zasHt,aNasje,alasKl,aLasrl,HasYi,aJasti,bnasXi,brasZi,beasea}from"./@vue.4ce677c2.js";import{casli}from"./nanoevents.1080beb7.js";import{Lasil}from"./lz-string.731cedc5.js";import{iasta}from"./is-plain-object.906d88e8.js";import{Yasla}from"./vue-next-select.a2bfab1d.js";import{sasna,uasni}from"./vue-toastification.6f567382.js";import{Dasia}from"./vuedraggable.7949458c.js";import{pasaa}from"./vue-textarea-autosize.35804eaf.js";import{vasoa,nassa}from"./workbox-window.8d14e8b7.js";import"./sortablejs.29100d8a.js";constra=function(){constt=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(constaofdocument.querySelectorAll('link[rel="modulepreload"]'))i(a);newMutationObserver(a=>{for(constsofa)if(s.type==="childList")for(constuofs.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});functionl(a){consts={};returna.integrity&&(s.integrity=a.integrity),a.referrerpolicy&&(s.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?s.credentials="include":a.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}functioni(a){if(a.ep)return;a.ep=!0;consts=l(a);fetch(a.href,s)}};ra();constua="modulepreload",On={},da="./",Jl=function(t,l){return!l||l.length===0?t():Promise.all(l.map(i=>{if(i=`${da}${i}`,iinOn)return;On[i]=!0;consta=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${s}`))return;constu=document.createElement("link");if(u.rel=a?"stylesheet":ua,a||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),a)returnnewPromise((c,p)=>{u.addEventListener("load",c),u.addEventListener("error",()=>p(newError(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},ca="./projInfo-schema.json",pa="Advent Incremental",ma="An incremental game you play a day at a time, leading up to Christmas!",ga="advent-incremental",fa="thepaperpilot and friends",ha="",va="",ya="0.3",ba="Initial Commit",wa=!0,Ca=!1,ka=2,_a=!0,Aa=null,Sa="",Na=["main"],Ea=3600,Ma=0,Ia=!0,Ba="base64";varMe={$schema:ca,title:pa,description:ma,id:ga,author:fa,discordName:ha,discordLink:va,versionNumber:ya,versionTitle:ba,allowGoBack:wa,defaultShowSmall:Ca,defaultDecimalsShown:ka,useHeader:_a,banner:Aa,logo:Sa,initialTabs:Na,maxTickLength:Ea,offlineLimit:Ma,enablePausing:Ia,exportEncoding:Ba};constfn=17,xa=9e15,Pa=Math.log10(9e15),Da=1/9e15,Fa=308,Ta=-324,$n=5,Ua=function(){conste=[];for(letl=Ta+1;l<=Fa;l++)e.push(Number("1e"+l));constt=323;returnfunction(l){returne[l+t]}}(),hl=[2,Math.E,3,4,5,6,7,8,9,10],Ra=[[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.1670905356
`))||""}function we(e){const t=lt(e)?e:$(e);t[Mn]=t,t[ol]=lt(e)?e.value:e,t[Zl]=bo(),t[vi]=!1;const l=C({get(){return t.value},set(i){t.value=i}});return l[ol]=t[ol],t[Ul]=l,t[Dl]=void 0,$t.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",t,`
`+p[Zl]);return}Sl[e.id].delete(p);const m=[e.id,...s,c];p[Dl]!=null&&JSON.stringify(m)!==JSON.stringify(p[Dl])&&console.error(`Persistentrefisbeingsavedto\`${m.join(".")}\` when it's already present at \`${p[Dl].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,p),p[Dl]=m;constb=s.reduce((w,f)=>(finw||(w[f]={}),w[f]),t),h=b[c];b[c]=p[Mn],Ki(b)?h!=null?b[c]=h:b[c]=p[ol]:h!=null?b[c].value=h:b[c].value=p[ol]}else!(pinstanceofn)&&!lt(p)&&!l.includes(p)&&(typeofp.type=="symbol"&&l.push(p),i(p,[...s,c])&&(wn(p)&&!wn(a)?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.",Jeina?a[Je]:a,c):u=!0))}),u};i(e[Je]),Sl[e.id].forEach(a=>{console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,a,`
Cost:50${l.displayName}<br/>${oe(1e11)}${R.coal.displayName}`}})),Ce=O(()=>({resource:F(l),cost:1e5,display:{title:"Efficient Drills",description:"Use metal and a bunch of R&D to make drilling stuff faster. Double coal and ore mining speed."},visibility:()=>x(Ke.depthMilestones[4].earned.value)})),he=Se(()=>({resource:F(l),cost(){return n.pow(1.15,this.amount.value).times(10)},display:{title:"Mining Drill",description:"An automated machine to help you mine more ore, faster",effectDisplay:B(()=>o(I,null,[d("Mine 2.5x faster. Increase ore mining amount by")," ",ie(he.amount.value),d(" ore per operation")]))},visibility:()=>x(n.gte(he.amount.value,1)||n.div(s.value,c.value).plus(i.value).gte(10)),style:{width:"200px"}})),me=Se(()=>({resource:F(l),cost(){return n.pow(1.15,n.times(this.amount.value,10)).times(10)},display:{title:"Industrial Crucible",description:"A giant automated crucible furnace, letting you smelt ore faster",effectDisplay:B(()=>o(I,null,[d("Automatically smelts")," ",ie(n.times(me.amount.value,10)),d(" ore per second")]))},visibility:()=>x(n.gte(me.amount.value,1)||n.gte(he.amount.value,4)||n.gte(s.value,50)),style:{width:"200px"}})),$e=we(!0),Fe=Se(()=>({resource:R.coal,cost(){return n.pow(10,this.amount.value).times(1e12)},display:{title:"Hotter Forges",description:"More coal makes the fires burn hotter, getting just a little more metal out of each bit of ore",effectDisplay:B(()=>o(I,null,[d("Gain "),ie(n.times(rt.value,100)),d("% more metal per ore")]))},visibility:()=>x(n.gte(Fe.amount.value,1)||L.bought.value),style:{width:"200px"}})),rt=C(()=>n.times(Fe.amount.value,.25));Ue.on("update",ue=>{T.value=n.times(ue,S.value).plus(T.value);const ut=T.value.trunc();T.value=T.value.minus(ut),a.value=n.add(a.value,n.times(ut,Y.value)),$e.value&&A(n.min(f.value,n.times(m.value,ue)),h.value)});const[Te,Pt]=pl(()=>[{title:"Auto Smelt Speed",modifier:p,base:0,unit:"/s",visible(){return n.gt(me.amount.value,0)}},{title:"Auto Smelt Multiplier",modifier:b,base:1,visible(){return n.gt(h.value,1)}},{title:"Metal per Ore",modifier:u,base:.1},{title:"Ore per Mining Operation",modifier:P,base:1},{title:"Mining Speed",modifier:M,base:.1,unit:"/s"}]),te=$(!1),le=B(()=>o(bt,{modelValue:te.value,"onUpdate:modelValue":ue=>te.value=ue},{header:()=>o("h2",null,[e,d(" Modifiers")]),body:Te})),{total:Xe,trackerDisplay:He}=ml({resource:l,goal:25e3,name:e,day:Kn,color:t,modal:{show:te,display:le}});return{name:e,day:Kn,color:t,ore:a,bestOre:s,oreProgress:T,metal:l,bestMetal:i,totalMetal:Xe,simplePickaxe:Be,doublePickaxe:De,crucible:Ie,coalDrill:Oe,industrialFurnace:L,efficientDrill:Ce,oreDrill:he,industrialCrucible:me,autoSmeltEnabled:$e,hotterForge:Fe,generalTabCollapsed:Pt,minWidth:700,display:B(()=>o(I,null,[re(He),o(ge,null,null),o(St,{resource:l,color:t,style:"margin-bottom: 0",sticky:!1,productionDisplay:B(()=>o(I,null,[$e.value&&n.gte(me.amount.value,1)?`+${ui([[m.value,"smelting speed"],[Ee.value,"ore gain"],[n.div(R.computedCoalGain.value,w),"coal gain"]],"/s",n.mul(c.value,h.value))}`:void 0]))},null),o(ge,null,null),re(_),n.gte(me.amount.value,1)?o("div",{style:{width:"150px"}},[o(Wt,{title:"Auto Smelt",modelValue:$e.value,"onUpdate:modelValue":ue=>$e.value=ue},null)]):void 0,o(ge,null,null),o(St,{resource:a,color:t,style:"margin-bottom: 0",sticky:!1,productionDisplay:B(()=>o(I,null,[di(Re.value)]))},null),o(ge,null,null),o("div",null,[d("Currently mining "),oe(Y.value),d(" ore every")," ",oe(n.recip(S.value)),d(" seconds")]),re(Pe),o(ge,null,null),ye(Be,De,Ie,Oe,L,Ce),ye(he,me,Fe)]))}}),or="cloth",Jn=8,yt=Ut(or,function(){const e="Cloth",t="white",l=st(0,"cloth"),i=st(0,"wool"),a=st(10,"sheep"),s=we(0),u=Kt(()=>({direction:ke.Right,width:100,height:10,style:"margin-top: 8px",borderStyle:"border-color: black",baseStyle:"margin-top: 0",fillStyle:"margin-top: 0; transition-duration: 0s; background: black",progress:()=>n.div(s.value,Te.value)})),c=It(()=>({display:{title:"Breed sheep",description:B(()=>o(I,null,[d("Breed "),ie(n.floor(Fe.value)),d(" sheep"),o("br",null,null),re(u)]))},style:{minHeight:"80px"}
margin:10px0;"/>${fe}`:T,l.value=!0},onOpenLayer(){if(Pe.value=!1,window.matchMedia("(min-width:1468px)").matches)if(z.tabs.includes(P!=null?P:"trees")){const H=z.tabs.lastIndexOf(P!=null?P:"trees");z.tabs.splice(H,1)}else z.tabs.push(P!=null?P:"trees"),Q.minimized.value=!0;else z.tabs.splice(1,1/0,P!=null?P:"trees")},onUnlockLayer(){P&&(M.value=!0,setTimeout(()=>{var H,Ee;i.value=-1,a.value=r((Ee=(H=vt[P!=null?P:"trees"])==null?void 0:H.name)!=null?Ee:""),s.value=T,z.devSpeed=null,l.value=!0},1e3))}}}}})}const c=[u(()=>({day:1,shouldNotify:!1,layer:"trees",symbol:Ii,story:"Ohno!SantaforgotaboutChristmasandit's only 25 days away! He'saskedforyourhelpduetoyourhistorygettinglargequantitiesofthingsinshortamountsoftime.Unfortunatelyyou're really starting from scratch here - let'sstartwithgettingwood,whichyou'll need for everything from building workshops to wrapping paper to many of the toys themselves!",completedStory:"Santa looks at all the wood you'vegatheredandtellsyouyou've done well! He says you should take the rest of the day off so you'rerefreshedfortomorrow's work. Good Job!"})),u(()=>({day:2,shouldNotify:!1,layer:"workshop",symbol:Bi,story:"Santa looked over your tree farm and was impressed with how much you could accomplish in just one day. Today'sgoalistogetaworkshopbuiltupfortheelvestoworkin-andapparently,theyneedquitealotofspacetowork!",completedStory:"Theworkshopcomplete,Santaonceagaindismissesyoufortheday.Withastrongfoundation,thisworkshopshouldsufficeforsupportingfutureworktowardthisimpossiblemission.GoodJob!"})),u(()=>({day:3,shouldNotify:!1,layer:"coal",symbol:xi,story:"Santatellsyouthatunfortunatelytherearequiteafewnaughtychildrenouttherethisyear,andhe'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'vegatheredandtellsyouyou've done well! He says you should take the rest of the day off so you'rerefreshedfortomorrow's work. Good Job!"})),u(()=>({day:4,shouldNotify:!1,layer:"elves",symbol:Pi,story:"Alright, it seems you finally have enough things set up to start bringing in the elves! Unfortunately, it seems they'llneedtoberetrainedonhowtohelp,sincethey'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!"})),u(()=>({day:5,shouldNotify:!1,layer:"paper",symbol:Di,story:"With the elves trained, we'realmostreadytostartworkingonthesepresents!Justacouplemorepre-reqsfirst,startingwithturningallthiswoodintowoodpulpandfinallyintopaper,whichwillberequiredforwrappingpaperlateronbutinthemeantimecanbeusedtohelpwriteguideswhichwillhelptheseelvescontinuetheireducation!",completedStory:"Youlookuponyourriversofbookpulpasyouhandoutstacksofpaperstoelvestoreadthrough.You've continued getting closer and closer to preparing for Christmas, and can go to bed satisfied with your progress. Good Job!"})),u(()=>({day:6,shouldNotify:!1,layer:"boxes",symbol:Fi,story:"You watch all these elves carrying incredibly large loads just in their open elf-sized hands, and realize there'sprobablyabetterway.Youneedtoputthetoysinboxesanyways,sowhydon'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!"})),u(()=>({day:7,shouldNotify:!1,layer:"metal",symbol:Ti,story:"You woke up ready to make some toys, before realizing most toys these days are made out of more than just wood! You'resureyou're close to really getting to work, but there'safewmorematerialsyou'regoingtoneed-likemetal!Lotsofthingsneedmetal!",completedStory:"Thesoundsofdrill
Learnmoreatwww.moddingtree.com`,"font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;","padding: 4px;"),await Co();const{globalBus:e}=await Jl(()=>Promise.resolve().then(function(){return no}),void 0),{startGameLoop:t}=await Jl(()=>import("./gameLoop.4130e80e.js"),["assets/gameLoop.4130e80e.js","assets/@fontsource.c175eac8.css","assets/vue.92681fcb.js","assets/lz-string.731cedc5.js","assets/@vue.4ce677c2.js","assets/nanoevents.1080beb7.js","assets/is-plain-object.906d88e8.js","assets/vue-next-select.a2bfab1d.js","assets/vue-next-select.9e6f4164.css","assets/vue-toastification.6f567382.js","assets/vue-toastification.4b5f8ac8.css","assets/vuedraggable.7949458c.js","assets/sortablejs.29100d8a.js","assets/vue-textarea-autosize.35804eaf.js","assets/workbox-window.8d14e8b7.js"]),l=window.vue=ea(Yd);e.emit("setupVue",l),l.mount("#app"),bl(()=>{const i=ni(),{updateServiceWorker:a}=Zd({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(){a()}})},onOfflineReady(){i.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(s){s&&setInterval(()=>s.update(),60*60*1e3)}})}),t()});export{n as D,Jl as _,Ze as a,Me as b,pr as c,Ue as g,In as l,z as p,Ye as s};