/* empty css */import"./vue.c16a309b.js";import{qasan,Cass,abasX,_asN,azasJn,aFasM,a1asP,a2ask,Jasee,Oasne,aKasxt,a0asL,IasBe,a8as_,aIason,aGasln,lasqe,uasVr,tasG,b2asht,aLasFt,GasNe,aDas_i,wasbt,b3asDt,a9asd,apasoa,asasWt,aHassr,AasTe,$asre,b7asY,b9asBr,arasOt,bvas$n,btasla,bcasGn,Tasua,jasca,bwasqt,ayasda,aMas_t,aOasJe,zasHt,boaspa,bsasfa,bdasai,amasdr,Hasga,bxasma,bfasva}from"./@vue.6b211d3c.js";import{casNi}from"./nanoevents.1080beb7.js";import{Lastn}from"./lz-string.dccec454.js";import{Yasha}from"./vue-next-select.ded54c4a.js";import{Dasba}from"./vuedraggable.1879de79.js";import{pasya}from"./vue-textarea-autosize.35804eaf.js";import{Paswa}from"./vue-panzoom.8ce6f9b1.js";import{sas_a,uashr}from"./vue-toastification.9c2dad53.js";import"./amator.1e5a40c8.js";import"./bezier-easing.a990b400.js";import"./sortablejs.a0f68e5e.js";import"./panzoom.30c56ba6.js";import"./wheel.f2ae740f.js";import"./ngraph.events.083734c6.js";constNa=function(){constt=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(constiofdocument.querySelectorAll('link[rel="modulepreload"]'))r(i);newMutationObserver(i=>{for(constaofi)if(a.type==="childList")for(constuofa.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});functionn(i){consta={};returni.integrity&&(a.integrity=i.integrity),i.referrerpolicy&&(a.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?a.credentials="include":i.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}functionr(i){if(i.ep)return;i.ep=!0;consta=n(i);fetch(i.href,a)}};Na();constCa="modulepreload",si={},ka="./",Un=function(t,n){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=`${ka}${r}`,rinsi)return;si[r]=!0;consti=r.endsWith(".css"),a=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${a}`))return;constu=document.createElement("link");if(u.rel=i?"stylesheet":Ca,i||(u.as="script",u.crossOrigin=""),u.href=r,document.head.appendChild(u),i)returnnewPromise((l,c)=>{u.addEventListener("load",l),u.addEventListener("error",()=>c(newError(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},Ma="./projInfo-schema.json",Sa="Planar Pioneers",Ia="A game about controlling and exploiting planes!",xa="planar-pioneers",$a="thepaperpilot",Da="",Ta="",Pa="0.0",Aa="Initial Commit",Ra=!1,Ea=!1,Fa=2,Oa=!0,qa=null,Va="",Ba=["main"],La=3600,ja=0,za=!0,Ga="base64";varhe={$schema:Ma,title:Sa,description:Ia,id:xa,author:$a,discordName:Da,discordLink:Ta,versionNumber:Pa,versionTitle:Aa,allowGoBack:Ra,defaultShowSmall:Ea,defaultDecimalsShown:Fa,useHeader:Oa,banner:qa,logo:Va,initialTabs:Ba,maxTickLength:La,offlineLimit:ja,enablePausing:za,exportEncoding:Ga};constUa=an({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{}});varZ=window.player=Ua;functionCi(e){returnJSON.stringify(e,(t,n)=>s(n))}varve=(e,t)=>{constn=e.__vccOpts||e;for(const[r,i]oft)n[r]=i;returnn};constki=e=>(on("data-v-1b5356cf"),e=e(),ln(),e),Wa={class:"error"},Ha={class:"error-title"},Ya={class:"error-details",style:{"margin-top":"-10px"}},Za={key:0},Xa={class:"instructions"},Ja=["href"],Ka=ki(()=>k("br",null,null,-1)),Qa={key:0,style:{"margin-top":"20px"}},es=ki(()=>k("h3",null,"Other errors",-1)),ts=[es],ns={class:"error-details"},rs={key:0,style:{"margin-top":"10px"}},is={key:1,style:{"margin-top":"10px"}},as=X({__name:"Error",props:{errors:null},setup(e){constt=e,n=N(()=>t.errors[0]),r=N(()=>t.errors.map(a=>a.stack==null?[]:a.stack.split(`
`)));return Jn(()=>{Z.autosave=!1,Z.devSpeed=0}),(a,u)=>(M(),P("div",Wa,[k("h1",Ha,ee(s(n).name)+": "+ee(s(n).message),1),k("div",Ya,[s(n).cause?(M(),P("div",Za,[(M(!0),P(ne,null,xt(s(i)[0],l=>(M(),P("div",{key:l},ee(l),1))),128))])):L("",!0),s(n).stack?(M(),P("div",{key:1,style:Be(s(n).cause?"margin-top: 10px":"")},[(M(!0),P(ne,null,xt(s(r)[0],l=>(M(),P("div",{key:l},ee(l),1))),128))],4)):L("",!0)]),k("div",Xa,[_(" Check the console for more details, and consider sharing it with the developers on "),k("a",{href:s(he).discordLink||"https://discord.gg/yJ4fjnjU54",class:"discord-link"},"discord",8,Ja),_("!"),Ka,e.errors.length>1?(M(),P("div",Qa,ts)):L("",!0),(M(!0),P(ne,null,xt(e.errors.slice(1),(l,c)=>(M(),P("div",{key:c,style:{"margin-top":"20px"}},[k("details",ns,[k("summary",null,ee(l.name)+": "+ee(l.message),1),l.cause?(M(),P("div",rs,[(M(!0),P(ne,null,xt(s(i)[c+1],p=>(M(),P("div",{key:p},ee(p),1))),128))])):L("",!0),l.stack?(M(),P("div",is,[(M(!0),P(ne,null,xt(s(r)[c+1],p=>(M(),P("div",{key:p},ee(p),1))),128))])):L("",!0)])]))),128))])]))}});var Mi=ve(as,[["__scopeId","data-v-1b5356cf"]]);class ss{constructor(t){this.map=new Map,this.first=void 0,this.last=void 0,this.maxSize=t}get size(){return this.map.size}get(t){const n=this.map.get(t);if(n!==void 0)return n!==this.first&&(n===this.last?(this.last=n.prev,this.last.next=void 0):(n.prev.next=n.next,n.next.prev=n.prev),n.next=this.first,this.first.prev=n,this.first=n),n.value}set(t,n){if(this.maxSize<1)return;if(this.map.has(t))throw new Error("Cannot update existing keys in the cache");const r=new os(t,n);for(this.first===void 0?(this.first=r,this.last=r):(r.next=this.first,this.first.prev=r,this.first=r),this.map.set(t,r);this.map.size>this.maxSize;){const i=this.last;this.map.delete(i.key),this.last=i.prev,this.last.next=void 0}}}class os{constructor(t,n){this.next=void 0,this.prev=void 0,this.key=t,this.value=n}}const Dr=17,ls=9e15,us=Math.log10(9e15),cs=1/9e15,ds=308,ps=-324,oi=5,fs=(1<<10)-1,gs=function(){const e=[];for(let n=ps+1;n<=ds;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),pn=[2,Math.E,3,4,5,6,7,8,9,10],ms=[[1,1.0891180521811203,1.1789767925673957,1.2701455431742086,1.3632090180450092,1.4587818160364217,1.5575237916251419,1.6601571006859253,1.767485818836978,1.8804192098842727,2],[1,1.1121114330934079,1.231038924931609,1.3583836963111375,1.4960519303993531,1.6463542337511945,1.8121385357018724,1.996971324618307,2.2053895545527546,2.4432574483385254,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.3632807444991446,1.5979222279405536,1.8842640123816674,2.2416069644878687,2.69893426559423,3.3012632110403577,4.121250340630164,5.281493033448316,7],[1,1.1736630594087796,1.379783782386201,1.6292821855668218,1.9378971836180754,2.3289975651071977,2.8384347394720835,3.5232708454565906,4.478242031114584,5.868592169644505,8],[1,1.1793017514670474,1.394054150657457,1.65664127441059,1.985170999970283,2.4069682290577457,2.9647310119960752,3.7278665320924946,4.814462547283592,6.436522247411611,9],[1,1.1840100246247336,1.4061375836156955,1.6802272208863964,2.026757028388619,2.4770056063449646,3.080525271755482,3.9191964192627284,5.135152840833187,6.989961179534715,10]],vs=[[-1,-.9194161097107025,-.8335625019330468,-.7425599821143978,-.6466611521029437,-.5462617907227869,-.4419033816638769,-.3342645487554494,-.224140440909962,-.11241087890006762,0],[-1,-.90603157029014,-.807
`))!=null?t:""}function fi(e,t){var n;o.isNaN(t)&&(Re.hasNaN||(Z.autosave=!1,Re.hasNaN=!0,Re.NaNPath=e[hn],Re.NaNPersistent=e),console.error(`AttemptedtosaveNaNvalueto${(n=e[hn])==null?void0:n.join(".")}`)),e[rn].value=t}function ot(e,t=!0){const n=qe(e)?e:G(e);qe(e)&&(e=e.value);const r=N({get(){return n.value},set(a){t?fi(i,a):i[rn].value=a}});r[Yt]=e;const i={get value(){return n.value},set value(a){t?fi(i,a):i[rn].value=a},__v_isRef:!0,[rn]:n,[Yt]:e,[fr]:Il(),[gr]:!1,[Et]:r,[hn]:void 0};return ct.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",i,`
`+i[fr]):bn[ct[ct.length-1]].add(i),i}function xl(e){return e!=null&&typeof e=="object"&&rn in e}function kn(e){return!(en in e)&&Et in e?e[Et]:new Proxy(e,{get(t,n){if(n!==rn)return n===Xn?!0:t[n]},set(t,n,r){return t[n]=r,!0},has(t,n){return n===rn?!1:n==Xn?!0:Reflect.has(t,n)}})}function Bi(e){ct.length===0?console.warn("Deleting a persistent ref outside of a layer. Ignoring...",e):bn[ct[ct.length-1]].delete(e),e[gr]=!0}Ke.on("addLayer",(e,t)=>{const n=[],r=(i,a=[])=>{let u=!1;return Object.keys(i).forEach(l=>{let c=i[l];if(c!=null&&typeof c=="object"){if(c[Xn]===!0)return;if(en in c&&(c=c[en]),xl(c)){if(u=!0,c[gr]){console.warn("Deleted persistent ref present in returned object. Ignoring...",c,`
`+c[fr]);return}bn[e.id].delete(c);const p=[e.id,...a,l];c[hn]!=null&&JSON.stringify(p)!==JSON.stringify(c[hn])&&console.error(`Persistentrefisbeingsavedto\`${p.join(".")}\` when it's already present at \`${c[hn].join(".")}\`.`,"This can cause unexpected behavior when loading saves between updates."),c[hn]=p;constv=a.reduce((b,h)=>(hinb||(b[h]={}),b[h]),t),g=v[l];v[l]=c[rn],ca(v)?g!=null?v[l]=g:v[l]=c[Yt]:g!=null?v[l].value=g:v[l].value=c[Yt]}else!(cinstanceofo)&&!(cinstanceoff)&&!qe(c)&&!n.includes(c)&&(typeofc.type=="symbol"&&n.push(c),r(c,[...a,l])&&(qt(c)&&!qt(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.",enini?i[en]:i,l):u=!0))}}),u};r(e[en]),bn[e.id].forEach(i=>{i[gr]||console.error(`Created persistent ref in ${e.id} without registering it to the layer!`,`Make sure to include everything persistent in the returned object.
Learnmoreatwww.moddingtree.com`,"font-weight: bold; font-size: 24px; color: #A3BE8C; background: #2E3440; padding: 4px 8px; border-radius: 8px;","padding: 4px;"),await Rs();const{globalBus:e}=await Un(()=>Promise.resolve().then(function(){return As}),void 0),{startGameLoop:t}=await Un(()=>import("./gameLoop.7e05b38e.js"),["assets/gameLoop.7e05b38e.js","assets/@fontsource.f66d05e7.css","assets/vue.c16a309b.js","assets/amator.1e5a40c8.js","assets/bezier-easing.a990b400.js","assets/@vue.6b211d3c.js","assets/nanoevents.1080beb7.js","assets/lz-string.dccec454.js","assets/vue-next-select.ded54c4a.js","assets/vue-next-select.9e6f4164.css","assets/vuedraggable.1879de79.js","assets/sortablejs.a0f68e5e.js","assets/vue-textarea-autosize.35804eaf.js","assets/vue-panzoom.8ce6f9b1.js","assets/panzoom.30c56ba6.js","assets/wheel.f2ae740f.js","assets/ngraph.events.083734c6.js","assets/vue-toastification.9c2dad53.js","assets/vue-toastification.4b5f8ac8.css"]),n=window.vue=va(hf);n.config.errorHandler=function(r,i,a){console.error(r,a,i)},e.emit("setupVue",n),n.mount("#app"),Wt(()=>{const r=hr(),{updateServiceWorker:i}=yf({onNeedRefresh(){r.info("New content available, click here to update.",{timeout:!1,closeOnClick:!1,draggable:!1,icon:{iconClass:"material-icons",iconChildren:"refresh",iconTag:"i"},rtl:!1,onClick(){i()}})},onOfflineReady(){r.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(a){a&&setInterval(()=>a.update(),60*60*1e3)}})}),t()});export{o as D,Un as _,Re as a,he as b,Gp as c,Ke as g,Es as l,Z as p,ie as s};