mirror of
https://github.com/thepaperpilot/Super-Auto-Coots.git
synced 2024-12-04 05:31:27 +00:00
16 lines
232 KiB
JavaScript
16 lines
232 KiB
JavaScript
|
/* empty css */import"./vue.f6263579.js";import{Z as V,C as c,q as IA,u as At,j as ca,l as he,bv as LA,t as y,a8 as r,aa as Y,ay as JA,ar as Xe,aE as C,a0 as b,aK as we,a1 as f,O as G,aG as wA,A as ye,_ as q,b6 as D,b8 as tt,bs as ma,aq as uA,bu as hA,bb as Rt,T as da,a7 as u,b1 as me,G as ae,w as Ie,b2 as OA,aN as ge,I as Te,$ as U,aL as jA,aJ as Pt,J as M,aH as xe,aF as Ye,z as qe,bo as fa,au as va,al as ct,aC as pa,bc as TA,ao as Ca,bn as ha,be as Ba}from"./@vue.4ce677c2.js";import{c as zt}from"./nanoevents.1080beb7.js";import{L as Je}from"./lz-string.f2f3b7cf.js";import{s as Ea,u as Dt}from"./vue-toastification.b7cd620e.js";import{p as Qa}from"./vue-textarea-autosize.35804eaf.js";import{s as ba}from"./semver.83ff78cf.js";import{l as ya}from"./socket.io-client.79ce0df5.js";import{A as kt,T as Ia,R as Na,B as Sa,u as wa,E as mt}from"./@pixi.1eac1889.js";import{D as Ta}from"./vuedraggable.c3acdf62.js";import{Y as Ua}from"./vue-next-select.0dc4e443.js";import{v as Ra,n as Pa}from"./workbox-window.8d14e8b7.js";import"./earcut.b6f90e68.js";import"./lru-cache.9a21e90b.js";import"./yallist.fd762fe7.js";import"./engine.io-client.58517560.js";import"./engine.io-parser.3f360695.js";import"./@socket.io.aec831e2.js";import"./socket.io-parser.544e37d1.js";import"./ismobilejs.5c6954b9.js";import"./eventemitter3.dc5195d7.js";import"./url.e51cb87b.js";import"./querystring.23ae9a54.js";import"./sortablejs.cbae5b2d.js";const za=function(){const A=document.createElement("link").relList;if(A&&A.supports&&A.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))a(n);new MutationObserver(n=>{for(const s of n)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function t(n){const s={};return n.integrity&&(s.integrity=n.integrity),n.referrerpolicy&&(s.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?s.credentials="include":n.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(n){if(n.ep)return;n.ep=!0;const s=t(n);fetch(n.href,s)}};za();const Da="modulepreload",dt={},ka="./",zA=function(A,t){return!t||t.length===0?A():Promise.all(t.map(a=>{if(a=`${ka}${a}`,a in dt)return;dt[a]=!0;const n=a.endsWith(".css"),s=n?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${s}`))return;const l=document.createElement("link");if(l.rel=n?"stylesheet":Da,n||(l.as="script",l.crossOrigin=""),l.href=a,document.head.appendChild(l),n)return new Promise((o,g)=>{l.addEventListener("load",o),l.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>A())},Ga="./projInfo-schema.json",Va="Super Auto Coots",Ja="A project made in Profectus",Oa="superautocoots",Ma="",Xa="",qa="",xa="0.0.0",Ya="Initial Commit",Fa=!1,Wa=!1,Ka=2,La=!0,ja=null,Ha="",Za=["main"],_a=3600,$a=1,en=!0,An="base64";var F={$schema:Ga,title:Va,description:Ja,id:Oa,author:Ma,discordName:Xa,discordLink:qa,versionNumber:xa,versionTitle:Ya,allowGoBack:Fa,defaultShowSmall:Wa,defaultDecimalsShown:Ka,useHeader:La,banner:ja,logo:Ha,initialTabs:Za,maxTickLength:_a,offlineLimit:$a,enablePausing:en,exportEncoding:An};class tn{constructor(A){this.map=new Map,this.first=void 0,this.last=void 0,this.maxSize=A}get size(){return this.map.size}get(A){const t=this.map.get(A);if(t!==void 0)return t!==this.first&&(t===this.last?(this.last=t.prev,this.last.next=void 0):(t.prev.next=t.next,t.next.prev=t.prev),t.next=this.first,this.first.prev=t,this.first=t),t.value}set(A,t){if(this.maxSize<1)return;if(this.map.has(A))throw new Error("Cannot update existing keys in the cache");const a=new an(A,t);for(this.first===void 0?(this.first=a,this.last=a):(a.next=this.first,this.first.prev=a,this.first=a),this.map.set(A,a);this.map.size>this.maxSize;){const n=this.last;this.map.delete(n.key),this.last=n.prev,this.last.next=void 0}}}class an{constructor(A,t){this.next=void 0,this.prev=void 0,this.key=A,this.value=t}}const FA=17,nn=9e15,rn=Math.log10(9e15),sn=1/9e15,l
|
||
|
`).slice(3,5).map(t=>t.trim()).join(`
|
||
|
`))!=null?A:""}function Bt(e,A){var t;if(N.isNaN(A))throw se.hasNaN||(x.autosave=!1,se.hasNaN=!0,se.NaNPath=e[He],se.NaNPersistent=e),console.error("Attempted to save NaN value to",(t=e[He])==null?void 0:t.join("."),e),"Attempted to set NaN value. See above for details";e[nA].value=A}function Ft(e,A=!0){const t=he(e)?e:y(e);he(e)&&(e=e.value);const a=V({get(){return t.value},set(s){A?Bt(n,s):n[nA].value=s}});a[gA]=e;const n={get value(){return t.value},set value(s){A?Bt(n,s):n[nA].value=s},__v_isRef:!0,[nA]:t,[gA]:e,[VA]:Dn(),[ZA]:!1,[_A]:a,[He]:void 0};return Qe.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",n,`
|
||
|
Created at:
|
||
|
`+n[VA]):rA[Qe[Qe.length-1]].add(n),n}function kn(e){return e!=null&&typeof e=="object"&&nA in e}le.on("addLayer",(e,A)=>{const t=[],a=(n,s=[])=>{let l=!1;return Object.keys(n).forEach(o=>{let g=n[o];if(g!=null&&typeof g=="object")if(je in g&&(g=g[je]),kn(g)){if(l=!0,g[ZA]){console.warn("Deleted persistent ref present in returned object. Ignoring...",g,`
|
||
|
Created at:
|
||
|
`+g[VA]);return}rA[e.id].delete(g);const p=[e.id,...s,o];g[He]!=null&&JSON.stringify(p)!==JSON.stringify(g[He])&&console.error(`Persistent ref is being saved to \`${p.join(".")}\` when it's already present at \`${g[He].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,g),g[He]=p;const B=s.reduce((E,I)=>(I in E||(E[I]={}),E[I]),A),h=B[o];B[o]=g[nA],ca(B)?h!=null?B[o]=h:B[o]=g[gA]:h!=null?B[o].value=h:B[o].value=g[gA]}else!(g instanceof N)&&!he(g)&&!t.includes(g)&&(typeof g.type=="symbol"&&t.push(g),a(g,[...s,o])&&(LA(g)&&!LA(n)?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.",je in n?n[je]:n,o):l=!0))}),l};a(e[je]),rA[e.id].forEach(n=>{n[ZA]||console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,n,`
|
||
|
Created at:
|
||
|
`+n[VA])}),rA[e.id].clear()});const rt=Symbol("RegisterNode"),st=Symbol("UnregisterNode"),Wt=Symbol("Nodes"),Kt=Symbol("Bounds"),ue=At({});window.layers=ue;const rA={},Qe=[];function Lt(e,A){return XA(()=>{const t={},a=t.emitter=zt();if(t.on=a.on.bind(a),t.emit=a.emit.bind(a),t.nodes=y({}),t.id=e,Qe.push(e),rA[e]=new Set,t.minimized=Ft(!1,!1),Object.assign(t,A.call(t)),Qe[Qe.length-1]==null||Qe[Qe.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen
|
||
|
Stack: ${Qe}
|
||
|
Trying to pop ${t.id}`;Qe.pop(),te(t,"color"),te(t,"display"),te(t,"classes"),te(t,"style"),te(t,"name"),$e(t,"name",t.id),te(t,"minWidth"),$e(t,"minWidth",600),te(t,"minimizable"),$e(t,"minimizable",!0),te(t,"minimizedDisplay");const n=t.style;return t.style=V(()=>{var l,o;let s=c(t.minWidth);return(typeof s=="number"||!Number.isNaN(parseInt(s)))&&(s=s+"px"),[(l=c(n))!=null?l:"",(o=t.minimized)!=null&&o.value?{flexGrow:"0",flexShrink:"0",width:"60px",minWidth:"",flexBasis:"",margin:"0"}:{flexGrow:"",flexShrink:"",width:"",minWidth:s,flexBasis:s,margin:""}]}),t})}function jt(e,A){if(console.info("Adding layer",e.id),ue[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,ue[e.id]);return}$e(A,"layers",{}),A.layers[e.id]==null&&(A.layers[e.id]={}),ue[e.id]=e,le.emit("addLayer",e,A.layers[e.id])}function Gn(e){return ue[e]}function Ht(e){console.info("Removing layer",e.id),le.emit("removeLayer",e),ue[e.id]=void 0}function Vn(e){Ht(e),jt(e,x)}function Jn(e){const A=y(!1);return{openModal:()=>A.value=!0,modal:k(()=>r(Fe,{modelValue:A.value,"onUpdate:modelValue":t=>A.value=t},{header:()=>r("h2",null,[c(e.name)]),body:c(e.display)}))}}le.on("update",function(A){Object.values(ue).forEach(t=>{t==null||t.emit("preUpdate",A)}),Object.values(ue).forEach(t=>{t==null||t.emit("update",A)}),Object.values(ue).forEach(t=>{t==null||t.emit("postUpdate",A)})});var On=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:rt,UnregisterNodeInjectionKey:st,NodesInjectionKey:Wt,BoundsInjectionKey:Kt,layers:ue,persistentRefs:rA,addingLayers:Qe,createLayer:Lt,addLayer:jt,getLayer:Gn,removeLayer:Ht,reloadLayer:Vn,setupLayerModal:Jn},Symbol.toStringTag,{value:"Module"}));var $=(e,A)=>{const t=e.__vccOpts||e;for(const[a,n]of A)t[a]=n;return t};const Mn=Y({__name:"Context",emits:["updateNodes"],setup(e,{emit:A}){var B;const t=y({}),a=new ResizeObserver(o),n=y(null);JA(()=>{const h=n.value;h!=null&&a.observe(h)});let s=!0,l=y((B=n.value)==null?void 0:B.getBoundingClientRect());function o(){s&&(s=!1,Xe(()=>{var h;l.value=(h=n.value)==null?void 0:h.getBoundingClientRect(),Object.values(t.value).filter(E=>E).forEach(E=>E.rect=E.element.getBoundingClientRect()),A("updateNodes",t.value),s=!0}))}le.on("fontsLoaded",o);const g={attributes:!1,childList:!0,subtree:!1};wA(rt,(h,E)=>{const I=new MutationObserver(()=>p(h));I.observe(E,g),t.value[h]={element:E,observer:I,rect:E.getBoundingClientRect()},o()}),wA(st,h=>{var E;(E=t.value[h])==null||E.observer.disconnect(),t.value[h]=void 0,o()}),wA(Wt,t),wA(Kt,l);function p(h){const E=t.value[h];E!=null&&(E.rect=E.element.getBoundingClientRect(),A("updateNodes",t.value))}return(h,E)=>(C(),b(G,null,[we(h.$slots,"default",{},void 0,!0),f("div",{ref_key:"resizeListener",ref:n,class:"resize-listener"},null,512)],64))}});var Zt=$(Mn,[["__scopeId","data-v-2b1dc1bc"]]);const Xn=["onPointerdown"],qn={class:"modal-wrapper"},xn={class:"modal-container"},Yn={class:"modal-header"},Fn=u(" default header "),Wn={class:"modal-body"},Kn=u(" default body "),Ln={class:"modal-footer"},jn=f("div",{class:"modal-default-flex-grow"},null,-1),Fe=Y({__name:"Modal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:A,emit:t}){const n=ye(e),s=V(()=>c(n.modelValue)||o.value);function l(){t("update:modelValue",!1)}const o=y(!1),g=y(null),p=V(()=>{var B,h;return(h=(B=g.value)==null?void 0:B.nodes)!=null?h:null});return A({isOpen:s,nodes:p}),(B,h)=>(C(),q(da,{to:"#modal-root"},[r(Rt,{name:"modal",onBeforeEnter:h[0]||(h[0]=E=>o.value=!0),onAfterLeave:h[1]||(h[1]=E=>o.value=!1)},{default:D(()=>[tt(f("div",uA({class:"modal-mask",onPointerdown:hA(l,["self"])},B.$attrs),[f("div",qn,[f("div",xn,[f("div",Yn,[we(B.$slots,"header",{shown:c(s)},()=>[Fn])]),f("div",Wn,[r(Zt,{ref_key:"contextRef",ref:g},{default:D(()=>[we(B.$slots,"body",{shown:c(s)},()=>[Kn])]),_:3},512)]),f("div",Ln,[we(B.$slots,"footer",{shown:c(s)},()=>[f("div",{class:"modal-default-footer"},[jn,f("button",{class:"button modal-default-button",onClick:l}," Close ")])])])])])],16,Xn),[[ma,e.modelValue]])]),_:3})])
|
||
|
`,e),await Ze(sA())}}function sA(){const e=PA(),A=_t({id:e});return pe(A),P.saves.push(e),A}function PA(){let e,A=0;do e=`${F.id}-${A++}`;while(localStorage.getItem(e)!=null);return e}const Zn=y(!1);async function Ze(e){console.info("Loading save",e),Zn.value=!0;const{layers:A,removeLayer:t,addLayer:a}=await zA(()=>Promise.resolve().then(function(){return On}),void 0),{fixOldSave:n,getInitialLayers:s}=await zA(()=>Promise.resolve().then(function(){return Sl}),void 0);for(const l in A){const o=A[l];o&&t(o)}s(e).forEach(l=>a(l,e)),e=_t(e),e.offlineProd&&e.time!=null&&e.time&&e.devSpeed!==0&&(e.offlineTime==null&&(e.offlineTime=0),e.offlineTime+=Math.min(e.offlineTime+(Date.now()-e.time)/1e3,F.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==F.versionNumber&&(n(e.modVersion,e),e.modVersion=F.versionNumber),Object.assign(x,e),P.active=x.id,le.emit("onLoad")}setInterval(()=>{x.autosave&&pe()},1e3);window.onbeforeunload=()=>{x.autosave&&pe()};window.save=pe;const _n=window.hardReset=async()=>{await Ze(sA())};window.deleteLowerSaves=()=>{const e=Object.values(P.saves).indexOf(x.id)+1;Object.values(P.saves).slice(e).forEach(A=>localStorage.removeItem(A)),P.saves=P.saves.slice(0,e)};const QA=IA({active:"",saves:[],showTPS:!0,theme:it.Nordic,unthrottled:!1,alignUnits:!1,autoplay:!1,fast:!1,showTutorial:!0,privateRoomName:"",privateRoomPassword:"",victories:0,losses:0});me(QA,e=>{const A=Je.compressToUTF16(JSON.stringify(e));localStorage.setItem(F.id,A)},{deep:!0});var P=window.settings=QA;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:it.Nordic,alignUnits:!1,autoplay:!1,fast:!1,showTutorial:!0,privateRoomName:"",privateRoomPassword:"",victories:0,losses:0};le.emit("loadSettings",e),Object.assign(QA,e),_n()};function $n(){try{let e=localStorage.getItem(F.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Je.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const A=JSON.parse(e);typeof A=="object"&&Object.assign(QA,A)}le.emit("loadSettings",QA)}catch{}}const $t=IA([]);function er(e){$t.push(e)}const Ar=IA([]),tr=IA([]),ar={class:"table"},Et=Y({__name:"Column",setup(e){const A=V(()=>NA[P.theme].mergeAdjacent);return(t,a)=>(C(),b("div",ar,[f("div",{class:ae(["col",{mergeAdjacent:c(A)}])},[we(t.$slots,"default")],2)]))}}),nr={class:"table"},Ue=Y({__name:"Row",setup(e){const A=V(()=>NA[P.theme].mergeAdjacent);return(t,a)=>(C(),b("div",nr,[f("div",{class:ae(["row",{mergeAdjacent:c(A)}])},[we(t.$slots,"default")],2)]))}});function Be(e,A="span"){return typeof e=="function"?Y({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${A}>${e}</${A}>`),Y({template:e})):Y({render:()=>({})}):e}function _e(e){if(CA(e))return typeof e=="function"?e():Be(e);const A=e[BA];return r(A,e[MA](),null)}function ea(e){if(CA(e))return typeof e=="function"?e():typeof e=="string"?r(G,null,[e]):r(e,null,null);const A=e[BA];return r(A,e[MA](),null)}function CA(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[kA]===!0}function Aa(e,A="div"){const t=Ie();return OA(()=>{t.value=Be(be(e),A)}),t}function qA(e,A="div"){const t=Ie(null);return OA(()=>{const a=be(e);t.value=a==""||a==null?null:Be(a,A)}),t}function be(e){return c(c(e))}function H(...e){return e.includes(Object)||e.push(Object),e}le.on("setupVue",e=>e.use(Ea));function rr(e="white",A="8px"){return{transform:"scale(1.05, 1.05)",borderColor:"rgba(0, 0, 0, 0.125)",boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 ${A} ${e}`,zIndex:1}}const sr=Y({props:{visibility:{type:H(Number,Boolean),required:!0},display:{type:H(Object,String,Function),required:!0},style:H(String,Object,Array),classes:H(Object),glowColor:H(String),active:Boolean,floating:Boolean},emits:["selectTab"],setup(e,{emit:A}){const{display:t,glowColor:a,floating:n}=ye(e),s=Aa(t),l=V(()=>{const g=be(a);return g==null||g===""?{}:c(n)?rr(g):{boxShadow:`0px 9px 5px -6px ${g}`}});function o(){A("selectTab")}return{select
|
||
|
${K}
|
||
|
${S}`)}}return p[v]}me(t,v=>{v&&Object.keys(p).forEach(S=>delete p[S])});const h=V(()=>P.saves.reduce((v,S)=>(v[S]=B(S),v),{}));function E(v){let S;switch(x.id===v?S=Yt(x):S=JSON.stringify(h.value[v]),F.exportEncoding){default:console.warn(`Unknown save encoding: ${F.exportEncoding}. Defaulting to lz`);case"lz":S=Je.compressToUTF16(S);break;case"base64":S=btoa(unescape(encodeURIComponent(S)));break;case"plain":break}const K=document.createElement("textarea");K.value=S,document.body.appendChild(K),K.select(),K.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(K)}function I(v){x.id===v&&pe();const S={...h.value[v],id:PA()};pe(S),P.saves.push(S.id)}function Q(v){P.saves=P.saves.filter(S=>S!==v),localStorage.removeItem(v),p[v]=void 0}function T(v){h.value[x.id].time=x.time,pe(),p[x.id]=void 0,Ze(h.value[v]),p[v]=void 0}function ee(v){if(l.value=v,Xe(()=>{l.value=null}),v[0]!=="{")if(v[0]==="e")v=decodeURIComponent(escape(atob(v)));else if(v[0]==="\u1BE1")v=Je.decompressFromUTF16(v);else{console.warn("Unable to determine preset encoding",v);return}const S=JSON.parse(v);S.id=PA(),pe(S),P.saves.push(S.id),T(S.id)}function L(v,S){const K=h.value[v];K!=null&&(K.name=S,x.id===v?(x.name=S,pe()):(pe(K),p[v]=void 0))}return(v,S)=>(C(),q(Fe,{modelValue:t.value,"onUpdate:modelValue":S[4]||(S[4]=K=>t.value=K),ref_key:"modal",ref:a},{header:D(()=>[lo]),body:D(({shown:K})=>[K?(C(),q(c(Ta),{key:0,list:c(P).saves,handle:".handle",itemKey:Ne=>Ne},{item:D(({element:Ne})=>[r(io,{save:c(h)[Ne],onOpen:de=>T(Ne),onExport:de=>E(Ne),onEditName:de=>L(Ne,de),onDuplicate:de=>I(Ne),onDelete:de=>Q(Ne)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):U("",!0)]),footer:D(()=>[f("div",oo,[r(bA,{modelValue:s.value,"onUpdate:modelValue":S[0]||(S[0]=K=>s.value=K),title:"Import Save",placeholder:"Paste your save here!",class:ae({importingFailed:n.value})},null,8,["modelValue","class"]),f("div",uo,[go,f("div",co,[f("button",{class:"button",onClick:S[1]||(S[1]=K=>T(c(sA)().id))},"New Game"),Object.keys(c(g)).length>0?(C(),q(Dl,{key:0,options:c(g),modelValue:l.value,"onUpdate:modelValue":S[2]||(S[2]=K=>ee(K)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):U("",!0)])]),f("div",mo,[fo,f("button",{class:"button modal-default-button",onClick:S[3]||(S[3]=K=>t.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var ia=$(vo,[["__scopeId","data-v-5b5b1604"]]);const ze=e=>(xe("data-v-6fe7fdfe"),e=e(),Ye(),e),po=["src","alt"],Co={key:1,class:"title"},ho=ze(()=>f("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Bo={class:"discord"},Eo={class:"discord-links"},Qo={key:0},bo=["href"],yo=ze(()=>f("li",null,[f("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Io=ze(()=>f("span",{class:"material-icons"},"info",-1)),No=ze(()=>f("span",{class:"material-icons"},"help",-1)),So=ze(()=>f("span",{class:"material-icons"},"settings",-1)),wo=ze(()=>f("span",{class:"material-icons"},"settings",-1)),To=ze(()=>f("span",{class:"material-icons"},"info",-1)),Uo={href:"https://forums.moddingtree.com/",target:"_blank"},Ro=ze(()=>f("span",{class:"material-icons"},"forum",-1)),Po={class:"discord"},zo={class:"discord-links"},Do={key:0},ko=["href"],Go=ze(()=>f("li",null,[f("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Vo=Y({__name:"Nav",setup(e){const A=y(null),t=y(null),a=y(null),n=y(null),{useHeader:s,banner:l,title:o,discordName:g,discordLink:p,versionNumber:B}=F;function h(){window.open(p,"mywindow")}return(E,I)=>(C(),b(G,null,[c(s)?(C(),b("div",uA({key:0,class:"nav"},E.$attrs),[c(l)?(C(),b("img",{key:0,src:c(l),class:"banner",alt:c(o)},null,8,po)):(C(),b("div",Co,M(c(o)),1)),f("div",{onClick:I[0]||(I[0]=Q=>{var T;return(T=n.value)==null?void 0:T.open()}),class:"version-container"},[r(W,{display:"Changelog",direction:c(Z).Down,class:"version"},{default:D(()=>[f("span",null,"v"+M(c(B)),1)]),_:1},8,["direction"])]),ho,f("div",Bo,[f("span",{onClick:h,class:"material-ic
|
||
|
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 Hn();const{globalBus:e}=await zA(()=>Promise.resolve().then(function(){return Pn}),void 0),{startGameLoop:A}=await zA(()=>import("./gameLoop.092e6235.js"),["assets/gameLoop.092e6235.js","assets/@fontsource.f66d05e7.css","assets/vue.f6263579.js","assets/earcut.b6f90e68.js","assets/@vue.4ce677c2.js","assets/nanoevents.1080beb7.js","assets/lz-string.f2f3b7cf.js","assets/vue-toastification.b7cd620e.js","assets/vue-toastification.4b5f8ac8.css","assets/vue-textarea-autosize.35804eaf.js","assets/semver.83ff78cf.js","assets/lru-cache.9a21e90b.js","assets/yallist.fd762fe7.js","assets/socket.io-client.79ce0df5.js","assets/engine.io-client.58517560.js","assets/engine.io-parser.3f360695.js","assets/@socket.io.aec831e2.js","assets/socket.io-parser.544e37d1.js","assets/@pixi.1eac1889.js","assets/ismobilejs.5c6954b9.js","assets/eventemitter3.dc5195d7.js","assets/url.e51cb87b.js","assets/querystring.23ae9a54.js","assets/vuedraggable.c3acdf62.js","assets/sortablejs.cbae5b2d.js","assets/vue-next-select.0dc4e443.js","assets/vue-next-select.9e6f4164.css","assets/workbox-window.8d14e8b7.js"]),t=window.vue=Ba(cu);e.emit("setupVue",t),t.mount("#app"),Xe(()=>{const a=Dt(),{updateServiceWorker:n}=du({onNeedRefresh(){a.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(){n()}})},onOfflineReady(){a.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(s){s&&setInterval(()=>s.update(),60*60*1e3)}})}),A()});export{N as D,zA as _,se as a,F as b,Sl as c,le as g,Zn as l,x as p,P as s};
|