diff --git a/assets/@fontsource.f66d05e7.css b/assets/@fontsource.f66d05e7.css new file mode 100644 index 0000000..b26296d --- /dev/null +++ b/assets/@fontsource.f66d05e7.css @@ -0,0 +1 @@ +@font-face{font-family:Material Icons;font-style:normal;font-display:swap;font-weight:400;src:url(./material-icons-base-400-normal.cc0462d5.woff2) format("woff2"),url(./material-icons-base-400-normal.47b692f3.woff) format("woff")}.material-icons{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;display:inline-block;line-height:1;text-transform:none;letter-spacing:normal;word-wrap:normal;white-space:nowrap;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./roboto-mono-cyrillic-ext-400-normal.eef02d41.woff2) format("woff2"),url(./roboto-mono-all-400-normal.66268f92.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./roboto-mono-cyrillic-400-normal.8c367f2f.woff2) format("woff2"),url(./roboto-mono-all-400-normal.66268f92.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./roboto-mono-greek-400-normal.53a8927b.woff2) format("woff2"),url(./roboto-mono-all-400-normal.66268f92.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA+kAA4AAAAAIHQAAA9KAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHDYGYD9TVEFUSACBGBEICrFAqioLghAAATYCJAOCEAQgBYUEByAMBxvcGqOihpNW/BR/kWAb037ocxggUkRKVogUrLbREc8h/LaXsm0a7zAYHpLIaI+QZPbn+W3+ufAeaRMqStQTRcWYYGE2GIsUrECmY9nOtcOVur/9/12zDl1GcDiXd/98VxTutzm9qSQdo3uOSW0rzJgtoR0/8fR54dvOJYnQkRawwhWRv0FwMbcbdb1CSyvVHRN94e+XOXub/9+wl75pd6Fvhp2l1fERkqIU6t+/C3f//v6UvqmlKRKHi2UQppWi6CpCMp7BKYRCS4Q2qIzNnbTiDLyx7nOfgnMhIZUrvcL2X9/4kIAAgAEyIABLSskqAIFxhLkGJOXm0mqQ1BQ31oEEAABosAm2210fw85kLhwAX7JCAZDQaES+oOwD4EeHA0UADgBAgsum/nJTIS4k0Vqa4c8VgOkaJKUIUMcvAFgkbnuRoyunnTlbW2SdLOUVjQgA/tVSDzEBAWaQyOUk5ITmjuZeQCXEXFcJBPBLZOrBkaFgMNnkgsscTEHkd4R8USVaEdv7QfBJ8EO01m4HiIRckAJVoM5sfDsFHwWfnX0vCQ9m99eede8WBFzwAB54gwBESbgUd2Yy3cHV0p4NXuAGnsAyM07aFgGy2znzaXOWnC4bDoC1A8oqgBsAyCIgkVwE6P7YVSAqL+lITar72RaCIBqJHv+u9struEkHB4IQ0NVsD7bUieHG4/G9MTbbj+dP8Hx4CgyjqzoODG8qQV092F6B8XjevONrI4Me4DpVeSgYG9HoJF30an6ctAY7Z4EfK2+jxjapfLq+b6IIsn5BNDs7tFBevvcLOebcHw46rGAXRF169BysdShmSZIQduGApT8Vu2JmjNoFigMcRdXmIb6oXnRORzLdPARWFqk2wmOafMZrQskwdIdPKIjhTlnTZRETBKjR2VSAweynKV4uasZKJzDMJL8qoZCVK2YyrL7DxzAYTJimkjWl/unA5O3ExA/SjMJEc1b5Ce+0ctdQz8qeqQj9iSYfE9BFxnU8BQBOJ7rCUWCnSlU3O2g+zPj3zO5y1WFUny3bg93puSfsP4OE+DcUG4h7nUdHX8xTZnOtGFvPFdgklKaUQd0fVeJMHPh0KonmhVqkmlg1y/n9rEeifIQj0AO2OwGNoGXnUlaKgG2kJG8yJTTrl0Tpql7/hpUtLqJN8NDnsiZFTgXO+4N0Y9CTKjIwdLj3dFrV5KM5Oh0iA4r83ktC2i1QzYnzJcEG4Kxgq5eywvlibg6UTz4Bpcu1Ih8kn3kPP1WrlEQmhul9Sys0/lQFyqzWFfMC34nkbIf1IA3ofp7TigRwg1wbmDpbHjO6i3LVU+QAcifnDeTJ5MAO7+OVtZxOpt3OOzOiqzW+i0q0T4ijB1HTG55vHvPumLI6Bye3157e7Mz+ZiI+yJPimXJZvO8lzdI0B3JIGZstx4xoSqRXRnQOv2XouWs1Zmy50GliXukQcM/JzSdrkUYbhst9mXcyPfpYh2en+nlo6kByglbrsli6QqRN+nY5W0KTkutslzsar9LA3ScnPvj2lT800g79BAcaHSAfCs5UZl11JuzIqTu7zQ/IZkOtG2EevtP7iW0pv9S2q3F4cOdhywELRH9csXzI5b3tTYDbxi7vxoDxxLaisL6w09Q5sH7gCkhxm/wfZHt0eKbz0vPGjxs3T92v31z1OFPeeHu8R7vB0cd7Lo9kZjrBc4PH5Y2TPF/Hti85mdFw9VlgiVxtCIiPLw5Qh6lKnz11aCB1kRxMz66qSsqk5omrp/uHqcl38/Qa0wRJuG0LhN5EcXKLNqdanZpao9FmExaIg8SbNpDehNLkzdp4bcL6zKqK9VkxCTHxqZvKoN/ljJuXvPPnkQTrSAL1j3wRmg65eLOGq7/1j5/Wsmy5/4DSdk3NmMgGxm6J09WrRV6aqEF8BlOaHVx4smG7Mk4Z558ypW9Sr0b6zyi4KGwgZ/7EpOA94rNRFrXOq+t/XqLCTxB/bd5s0ZB1t+z1orKBXjBTzmnUHteka9Lb8w0lrYlh8dSGNUCBXcHZc+OKjR06TVp4WvTJnS2cXPFstbwuNqf/iAJp/Fdpyoj8gdm1MfIwcQs0s9qvjg3TmXqHxC/ONWaO0tjWB1koOVQ8vyH8UERqRMqGvKaBtsyklOTU/LOT/BoyDyQmJybvz8ZXnkwtC/X0lJtD6CmMDLXZMsyoAIetkStMP0ydMzuLl5z3CqgO14wK8Pzx5/RYHm/26b8vYATBbUo8Fpsek749f6h5W/6aUNZU8xyPnlhIBd4Ck9DL7JzJzZXPLStqiMvONsdNZcTcXG7e2KaozByblT00FoSsHLB0Re6mPTx5OaLYOyYsz2vzJq+hfabsmjSi1zoqdUavwqoVfcJyAduaXh9mtUYO9JUUPDjH3RcyVjVRsescX0ZNn7MgYPSsF4QTaQJ/ESuZCYlgtbZaYY3OCm8N+j663kVfQamG1iFP10ffu/IfCivSjXtifdJmvf2stQmtzdUkaZI1e6GuFurU+zTJ4clr85qglQzJ/0z+Dxl9Tih7j40PGvdK1ASp/zMd024ey5t2MEFt3F7uHt2wukCbljtQ59b8X5P2ZeSgqCEHLdOm7DbHDtL2i/i8ld+F8kX7iVRZ0qiCPn0sugD/bOJQYVd/5aXwnF51sdm5TWl9VWm+R0f2sRbnYpagqnbFzIH/hzsVePM3dUO27KK127rLat97JdU97W2lHtGdNHZEv9XXDGIPhZYxKffitYPjdTPfFLdzrP6hX92+P3qcyVGN2FSGNf33b4DvSkWi6ZJxOq8a4rqUDkk3jhVbjy6PHNIFv6b8zwu6whx0v64f+taym7b7bUh+nSJjGFYOY2GXZL5b8xYIuXxgA/3eNzrI5Sd20Gcx6RD8+M+3d6bPb3ltCxe1LloCof9eKuO7087e1XF84vgP3ifw/QIz5Bs2CvQB5e6O4XH+Xvsi/Pr0zdCKAzKlG9YLdBDB2bxIwGWxyn0UlnMdrmBRlJ9hy6slkpN6ok7va4DrLwPbIyLaA4M63PiOt2WlgC/7xmRI2TJUp/uXCArKuJZfwY6nVIp3VFSs53IzUrkaBDGfH8vwVim+5sjGoxtj/2RxXc+v23vPhf+lpoYjlLSn9fGIE2e5ud7ft+6gi2D7gGyOXLK8T+ps0F5+7IbvdcXXdO/aX2vLDDNzIlIF1omVqoQtToXOvfD+3mqNz3AWi+A+7tkEsQsfS/A2MX509fL9MmfXzyIdP04CyZeXUryH/rHvWt4twcvWtJBajpHAr/SoqXvxyu7+rMU0ZSw/T66YIAzkebSplFkjq+v5yUl1/FFVyiyI+Nc235321zMTRLFAwKPOU/lmVvWv5ickVPP7Z/hmGmPHBfwzODurjU8wHmQbnLQUnai1sOg/VxcWh6N2hUjcFub1faOZustWdkOUpNk6xgrR8g2tHgyh0ED4GITODI9WlW9Odf8aQWLiiShC3jAtXO9OfJSI1LOXp4jTBtal5rPxi1Lx0zF1RYrUgVNZCSQCEABQQQzOqI0hsiqCwhQDrmxKIaKofPsU1FeillNAzCyCkKKVnRjCQSmTMLkjKPzlGEKqBLsHBBXQSoRUGXY8eqDmHuWCOF5h/8Kfq/jgftB97K8xzebznKITgFCYjfj7WZfbP0UdLn/35eQ+IIRp6S/W5Vp6Ek/RmhIAFdRSQPnbTeu+QEYjbb4QrvvZPyfd5veeqgfYL6MuPOC8s+HTpIGEeYkW9D0gEmHKRQygj32E0GXY/uh1GXaAqy6CGSnWRDCTiJYfvcJ062sPIKGHmG59RMUkP/t3TLf++AIk9ALTrS+/AgnG9ElkOQHCsbx0gIxmgjT3TX9rYuftFAbD5odTBKaVe/0umJB7pt9Al2GnU67LsF1cNIX9R+oKKKB4OoCAKe8zEDN97gCm4CgDM30+AaZ8SyZm+jwGbKnmmMQuJ0A43FMyclMFMDm9uSdRrmA0x63z7W2on40/10OTYceidw2B5AJuaP4qzzjhUZdglwBh/JQYgQM/rsHB1g50GfY0KQTKzv4RrCRQI+ZZhwGw0HTMs84kAwvtAB7f1XrBAjQReHwyAAudAZ4yFwgK8CN47BiJ/1+joICyNTpwRKcFhSd3XIYgCLNbMUGmfXgkH/BHKlIqUMBJPBlQThuy/WIdd64D2NyTARsAJqDqobmvUwnUFNDO6giqBJapagoNTqmF+C/YemdC/DckTWZqyjpDN11zl80yla3GckhFjzefrENfnLeVT/a6/kaF3ul3tDR0z8Widu4jdClXRWK8ZfE/aQEUCtwVy7wAE4cVzkqhMqxCrMQ9Usg4Ew22z+ZeuM00CU7GcmQgU3sICAIoU0CPXEPvnbeV9/f6fkSF3ukntCx088WytuyjKoCmMt6x+lHTCAS1+EZPkeMpJirPZhm3EUVwWfyIquksxo8aOR16RyD3tUy95YCkpxD65pI9N5EEUKEf7W/Q0tAD19OzHi6SAFqS8ZbFnzrQIcwIteeIwJK9Yd21ghQe4J6APRn0FhciBPL6KU9H5LNGM0uAtDVbiEUOmbF7mBIpDVpNTzoiWJeOxU+AFE7jngCKCetl/Jc8nfJ6Lk9XPraA1l1oBG6TNExsyhM5zEb30KbsBo11Dvn0o+cN9mADIAAgA4z7x0QPdo7+QmPSAADg6Hs/EADg5vXvxW/8zxVKKs0AAHQgAQAAAvjYHI+dsch/py4BCC4fEmFnAOhst0GVZlpYptk0p2CkrZIspWs3bGDUDGx0tFgofKR0ZIlDMDNRf3zg1J8BdIXfXBATxSA9SkBhqBF0lt0V9He/G0OHg7abdmI/9pMjc4NTYKsycjHY31iXNrLAkTXbatNCEh9dpvJpNuHOE+FF42RrhgMsMvMxOsAfAo4aAi5s1UjgBCc1MkTCdQ0DArlpOPBQuEYBGdJvcoKCDNsBATigkxITrgonFgrMtfnkDyWqZzKCWaVyFRqJIASCIBjCQAQFXCpleisznKRGwqRsXmeaecyKVRm50d+M1wRWkUyzoZQraM1GpsmMBNWeWa4SR8zlBoFgTLzWRRSrj5U1SpVxRDUaSuVmF7WrqfhKMvVK3Z5NahQzC+VBVzUKUuUuShXl715NEABDSnggLCtiNFFeiRojYh02k7s0rhW3XFlgm5lmbiw8DywkeSepzEpGzuqEl5bm2lnSJUqWI1+yAAgRkNtbaSNZ+iyK/XlOS3itNYkMl6OzVykBgKDhztin2FoAAAA=) format("woff2"),url(./roboto-mono-all-400-normal.66268f92.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./roboto-mono-latin-ext-400-normal.820adbd1.woff2) format("woff2"),url(./roboto-mono-all-400-normal.66268f92.woff) format("woff");unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./roboto-mono-latin-400-normal.7295944e.woff2) format("woff2"),url(./roboto-mono-all-400-normal.66268f92.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD} diff --git a/assets/@ivanv.350aa563.js b/assets/@ivanv.3bc3ebc4.js similarity index 98% rename from assets/@ivanv.350aa563.js rename to assets/@ivanv.3bc3ebc4.js index e1164e6..032ae10 100644 --- a/assets/@ivanv.350aa563.js +++ b/assets/@ivanv.3bc3ebc4.js @@ -1 +1 @@ -import"./vue.37fee242.js";import{o as r,c as o,w as d,r as h,T as l}from"./@vue.7184beb0.js";var c=(e,t)=>{const s=e.__vccOpts||e;for(const[n,a]of t)s[n]=a;return s};const p={name:"CollapseTransition",props:{name:{type:String,required:!1,default:"collapse"},dimension:{type:String,required:!1,default:"height",validator:e=>["height","width"].includes(e)},duration:{type:Number,required:!1,default:300},easing:{type:String,required:!1,default:"ease-in-out"}},watch:{dimension(){this.clearCachedDimensions()}},data(){return{cachedStyles:null}},computed:{transition(){let e=[];return Object.keys(this.cachedStyles).forEach(t=>{e.push(`${this.convertToCssProperty(t)} ${this.duration}ms ${this.easing}`)}),e.join(", ")}},methods:{beforeAppear(e){this.$emit("before-appear",e)},appear(e){this.$emit("appear",e)},afterAppear(e){this.$emit("after-appear",e)},appearCancelled(e){this.$emit("appear-cancelled",e)},beforeEnter(e){this.$emit("before-enter",e)},enter(e,t){this.detectAndCacheDimensions(e),this.setClosedDimensions(e),this.hideOverflow(e),this.forceRepaint(e),this.setTransition(e),this.setOpenedDimensions(e),this.$emit("enter",e,t),setTimeout(t,this.duration)},afterEnter(e){this.unsetOverflow(e),this.unsetTransition(e),this.unsetDimensions(e),this.clearCachedDimensions(),this.$emit("after-enter",e)},enterCancelled(e){this.$emit("enter-cancelled",e)},beforeLeave(e){this.$emit("before-leave",e)},leave(e,t){this.detectAndCacheDimensions(e),this.setOpenedDimensions(e),this.hideOverflow(e),this.forceRepaint(e),this.setTransition(e),this.setClosedDimensions(e),this.$emit("leave",e,t),setTimeout(t,this.duration)},afterLeave(e){this.unsetOverflow(e),this.unsetTransition(e),this.unsetDimensions(e),this.clearCachedDimensions(),this.$emit("after-leave",e)},leaveCancelled(e){this.$emit("leave-cancelled",e)},detectAndCacheDimensions(e){if(this.cachedStyles)return;const t=e.style.visibility,s=e.style.display;e.style.visibility="hidden",e.style.display="",this.cachedStyles=this.detectRelevantDimensions(e),e.style.visibility=t,e.style.display=s},clearCachedDimensions(){this.cachedStyles=null},detectRelevantDimensions(e){return this.dimension==="height"?{height:e.offsetHeight+"px",paddingTop:e.style.paddingTop||this.getCssValue(e,"padding-top"),paddingBottom:e.style.paddingBottom||this.getCssValue(e,"padding-bottom")}:this.dimension==="width"?{width:e.offsetWidth+"px",paddingLeft:e.style.paddingLeft||this.getCssValue(e,"padding-left"),paddingRight:e.style.paddingRight||this.getCssValue(e,"padding-right")}:{}},setTransition(e){e.style.transition=this.transition},unsetTransition(e){e.style.transition=""},hideOverflow(e){e.style.overflow="hidden"},unsetOverflow(e){e.style.overflow=""},setClosedDimensions(e){Object.keys(this.cachedStyles).forEach(t=>{e.style[t]="0"})},setOpenedDimensions(e){Object.keys(this.cachedStyles).forEach(t=>{e.style[t]=this.cachedStyles[t]})},unsetDimensions(e){Object.keys(this.cachedStyles).forEach(t=>{e.style[t]=""})},forceRepaint(e){getComputedStyle(e)[this.dimension]},getCssValue(e,t){return getComputedStyle(e,null).getPropertyValue(t)},convertToCssProperty(e){const t=e.match(/([A-Z])/g);if(!t)return e;for(let s=0,n=t.length;s[h(e.$slots,"default")]),_:3},8,["name","onBeforeAppear","onAppear","onAfterAppear","onAppearCancelled","onBeforeEnter","onEnter","onAfterEnter","onEnterCancelled","onBeforeLeave","onLeave","onAfterLeave","onLeaveCancelled"])}var v=c(p,[["render",f]]);export{v as C,c as _}; +import"./vue.d185782d.js";import{o as r,c as o,w as d,r as h,T as l}from"./@vue.7184beb0.js";var c=(e,t)=>{const s=e.__vccOpts||e;for(const[n,a]of t)s[n]=a;return s};const p={name:"CollapseTransition",props:{name:{type:String,required:!1,default:"collapse"},dimension:{type:String,required:!1,default:"height",validator:e=>["height","width"].includes(e)},duration:{type:Number,required:!1,default:300},easing:{type:String,required:!1,default:"ease-in-out"}},watch:{dimension(){this.clearCachedDimensions()}},data(){return{cachedStyles:null}},computed:{transition(){let e=[];return Object.keys(this.cachedStyles).forEach(t=>{e.push(`${this.convertToCssProperty(t)} ${this.duration}ms ${this.easing}`)}),e.join(", ")}},methods:{beforeAppear(e){this.$emit("before-appear",e)},appear(e){this.$emit("appear",e)},afterAppear(e){this.$emit("after-appear",e)},appearCancelled(e){this.$emit("appear-cancelled",e)},beforeEnter(e){this.$emit("before-enter",e)},enter(e,t){this.detectAndCacheDimensions(e),this.setClosedDimensions(e),this.hideOverflow(e),this.forceRepaint(e),this.setTransition(e),this.setOpenedDimensions(e),this.$emit("enter",e,t),setTimeout(t,this.duration)},afterEnter(e){this.unsetOverflow(e),this.unsetTransition(e),this.unsetDimensions(e),this.clearCachedDimensions(),this.$emit("after-enter",e)},enterCancelled(e){this.$emit("enter-cancelled",e)},beforeLeave(e){this.$emit("before-leave",e)},leave(e,t){this.detectAndCacheDimensions(e),this.setOpenedDimensions(e),this.hideOverflow(e),this.forceRepaint(e),this.setTransition(e),this.setClosedDimensions(e),this.$emit("leave",e,t),setTimeout(t,this.duration)},afterLeave(e){this.unsetOverflow(e),this.unsetTransition(e),this.unsetDimensions(e),this.clearCachedDimensions(),this.$emit("after-leave",e)},leaveCancelled(e){this.$emit("leave-cancelled",e)},detectAndCacheDimensions(e){if(this.cachedStyles)return;const t=e.style.visibility,s=e.style.display;e.style.visibility="hidden",e.style.display="",this.cachedStyles=this.detectRelevantDimensions(e),e.style.visibility=t,e.style.display=s},clearCachedDimensions(){this.cachedStyles=null},detectRelevantDimensions(e){return this.dimension==="height"?{height:e.offsetHeight+"px",paddingTop:e.style.paddingTop||this.getCssValue(e,"padding-top"),paddingBottom:e.style.paddingBottom||this.getCssValue(e,"padding-bottom")}:this.dimension==="width"?{width:e.offsetWidth+"px",paddingLeft:e.style.paddingLeft||this.getCssValue(e,"padding-left"),paddingRight:e.style.paddingRight||this.getCssValue(e,"padding-right")}:{}},setTransition(e){e.style.transition=this.transition},unsetTransition(e){e.style.transition=""},hideOverflow(e){e.style.overflow="hidden"},unsetOverflow(e){e.style.overflow=""},setClosedDimensions(e){Object.keys(this.cachedStyles).forEach(t=>{e.style[t]="0"})},setOpenedDimensions(e){Object.keys(this.cachedStyles).forEach(t=>{e.style[t]=this.cachedStyles[t]})},unsetDimensions(e){Object.keys(this.cachedStyles).forEach(t=>{e.style[t]=""})},forceRepaint(e){getComputedStyle(e)[this.dimension]},getCssValue(e,t){return getComputedStyle(e,null).getPropertyValue(t)},convertToCssProperty(e){const t=e.match(/([A-Z])/g);if(!t)return e;for(let s=0,n=t.length;s[h(e.$slots,"default")]),_:3},8,["name","onBeforeAppear","onAppear","onAfterAppear","onAppearCancelled","onBeforeEnter","onEnter","onAfterEnter","onEnterCancelled","onBeforeLeave","onLeave","onAfterLeave","onLeaveCancelled"])}var v=c(p,[["render",f]]);export{v as C,c as _}; diff --git a/assets/@pixi.c5050cb0.js b/assets/@pixi.13a16b18.js similarity index 69% rename from assets/@pixi.c5050cb0.js rename to assets/@pixi.13a16b18.js index b956e10..b4c1d3c 100644 --- a/assets/@pixi.c5050cb0.js +++ b/assets/@pixi.13a16b18.js @@ -1,60 +1,60 @@ -import{i as Ti}from"./ismobilejs.5c6954b9.js";import{E as Wt}from"./eventemitter3.dc5195d7.js";import"./earcut.17d42416.js";import{p as bi,f as Ii,r as Ri}from"./url.b1bd21f4.js";/*! - * @pixi/settings - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC +import{i as Ti}from"./ismobilejs.5c6954b9.js";import{E as Wt}from"./eventemitter3.dc5195d7.js";import"./earcut.b6f90e68.js";import{p as bi,f as Ii,r as Ri}from"./url.6dd57c6c.js";/*! + * @pixi/settings - v6.3.2 + * Compiled Wed, 04 May 2022 17:49:13 UTC * * @pixi/settings is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */var ut=Ti(globalThis.navigator);function Ei(r){var t=!0;if(ut.tablet||ut.phone){if(ut.apple.device){var e=navigator.userAgent.match(/OS (\d+)_(\d+)?/);if(e){var i=parseInt(e[1],10);i<11&&(t=!1)}}if(ut.android.device){var e=navigator.userAgent.match(/Android\s([0-9.]*)/);if(e){var i=parseInt(e[1],10);i<7&&(t=!1)}}}return t?r:4}function wi(){return!ut.apple.device}/*! - * @pixi/constants - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC + * @pixi/constants - v6.3.2 + * Compiled Wed, 04 May 2022 17:49:13 UTC * * @pixi/constants is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */var nr;(function(r){r[r.WEBGL_LEGACY=0]="WEBGL_LEGACY",r[r.WEBGL=1]="WEBGL",r[r.WEBGL2=2]="WEBGL2"})(nr||(nr={}));var sr;(function(r){r[r.UNKNOWN=0]="UNKNOWN",r[r.WEBGL=1]="WEBGL",r[r.CANVAS=2]="CANVAS"})(sr||(sr={}));var ar;(function(r){r[r.COLOR=16384]="COLOR",r[r.DEPTH=256]="DEPTH",r[r.STENCIL=1024]="STENCIL"})(ar||(ar={}));var or;(function(r){r[r.NORMAL=0]="NORMAL",r[r.ADD=1]="ADD",r[r.MULTIPLY=2]="MULTIPLY",r[r.SCREEN=3]="SCREEN",r[r.OVERLAY=4]="OVERLAY",r[r.DARKEN=5]="DARKEN",r[r.LIGHTEN=6]="LIGHTEN",r[r.COLOR_DODGE=7]="COLOR_DODGE",r[r.COLOR_BURN=8]="COLOR_BURN",r[r.HARD_LIGHT=9]="HARD_LIGHT",r[r.SOFT_LIGHT=10]="SOFT_LIGHT",r[r.DIFFERENCE=11]="DIFFERENCE",r[r.EXCLUSION=12]="EXCLUSION",r[r.HUE=13]="HUE",r[r.SATURATION=14]="SATURATION",r[r.COLOR=15]="COLOR",r[r.LUMINOSITY=16]="LUMINOSITY",r[r.NORMAL_NPM=17]="NORMAL_NPM",r[r.ADD_NPM=18]="ADD_NPM",r[r.SCREEN_NPM=19]="SCREEN_NPM",r[r.NONE=20]="NONE",r[r.SRC_OVER=0]="SRC_OVER",r[r.SRC_IN=21]="SRC_IN",r[r.SRC_OUT=22]="SRC_OUT",r[r.SRC_ATOP=23]="SRC_ATOP",r[r.DST_OVER=24]="DST_OVER",r[r.DST_IN=25]="DST_IN",r[r.DST_OUT=26]="DST_OUT",r[r.DST_ATOP=27]="DST_ATOP",r[r.ERASE=26]="ERASE",r[r.SUBTRACT=28]="SUBTRACT",r[r.XOR=29]="XOR"})(or||(or={}));var hr;(function(r){r[r.POINTS=0]="POINTS",r[r.LINES=1]="LINES",r[r.LINE_LOOP=2]="LINE_LOOP",r[r.LINE_STRIP=3]="LINE_STRIP",r[r.TRIANGLES=4]="TRIANGLES",r[r.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",r[r.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(hr||(hr={}));var ur;(function(r){r[r.RGBA=6408]="RGBA",r[r.RGB=6407]="RGB",r[r.RG=33319]="RG",r[r.RED=6403]="RED",r[r.RGBA_INTEGER=36249]="RGBA_INTEGER",r[r.RGB_INTEGER=36248]="RGB_INTEGER",r[r.RG_INTEGER=33320]="RG_INTEGER",r[r.RED_INTEGER=36244]="RED_INTEGER",r[r.ALPHA=6406]="ALPHA",r[r.LUMINANCE=6409]="LUMINANCE",r[r.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",r[r.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",r[r.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(ur||(ur={}));var lr;(function(r){r[r.TEXTURE_2D=3553]="TEXTURE_2D",r[r.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",r[r.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",r[r.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",r[r.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",r[r.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",r[r.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(lr||(lr={}));var fr;(function(r){r[r.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",r[r.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",r[r.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",r[r.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",r[r.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",r[r.UNSIGNED_INT=5125]="UNSIGNED_INT",r[r.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",r[r.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",r[r.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",r[r.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",r[r.BYTE=5120]="BYTE",r[r.SHORT=5122]="SHORT",r[r.INT=5124]="INT",r[r.FLOAT=5126]="FLOAT",r[r.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",r[r.HALF_FLOAT=36193]="HALF_FLOAT"})(fr||(fr={}));var cr;(function(r){r[r.FLOAT=0]="FLOAT",r[r.INT=1]="INT",r[r.UINT=2]="UINT"})(cr||(cr={}));var le;(function(r){r[r.NEAREST=0]="NEAREST",r[r.LINEAR=1]="LINEAR"})(le||(le={}));var fe;(function(r){r[r.CLAMP=33071]="CLAMP",r[r.REPEAT=10497]="REPEAT",r[r.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(fe||(fe={}));var ce;(function(r){r[r.OFF=0]="OFF",r[r.POW2=1]="POW2",r[r.ON=2]="ON",r[r.ON_MANUAL=3]="ON_MANUAL"})(ce||(ce={}));var dr;(function(r){r[r.NPM=0]="NPM",r[r.UNPACK=1]="UNPACK",r[r.PMA=2]="PMA",r[r.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",r[r.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",r[r.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",r[r.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(dr||(dr={}));var pr;(function(r){r[r.NO=0]="NO",r[r.YES=1]="YES",r[r.AUTO=2]="AUTO",r[r.BLEND=0]="BLEND",r[r.CLEAR=1]="CLEAR",r[r.BLIT=2]="BLIT"})(pr||(pr={}));var de;(function(r){r[r.AUTO=0]="AUTO",r[r.MANUAL=1]="MANUAL"})(de||(de={}));var xt;(function(r){r.LOW="lowp",r.MEDIUM="mediump",r.HIGH="highp"})(xt||(xt={}));var vr;(function(r){r[r.NONE=0]="NONE",r[r.SCISSOR=1]="SCISSOR",r[r.STENCIL=2]="STENCIL",r[r.SPRITE=3]="SPRITE"})(vr||(vr={}));var pe;(function(r){r[r.NONE=0]="NONE",r[r.LOW=2]="LOW",r[r.MEDIUM=4]="MEDIUM",r[r.HIGH=8]="HIGH"})(pe||(pe={}));var mr;(function(r){r[r.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",r[r.ARRAY_BUFFER=34962]="ARRAY_BUFFER",r[r.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(mr||(mr={}));var x={MIPMAP_TEXTURES:ce.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:pe.NONE,SPRITE_MAX_TEXTURES:Ei(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:de.AUTO,GC_MAX_IDLE:60*60,GC_MAX_CHECK_COUNT:60*10,WRAP_MODE:fe.CLAMP,SCALE_MODE:le.LINEAR,PRECISION_VERTEX:xt.HIGH,PRECISION_FRAGMENT:ut.apple.device?xt.HIGH:xt.MEDIUM,CAN_UPLOAD_SAME_BUFFER:wi(),CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};/*! - * @pixi/constants - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC + * @pixi/constants - v6.3.2 + * Compiled Wed, 04 May 2022 17:49:13 UTC * * @pixi/constants is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var Z;(function(r){r[r.WEBGL_LEGACY=0]="WEBGL_LEGACY",r[r.WEBGL=1]="WEBGL",r[r.WEBGL2=2]="WEBGL2"})(Z||(Z={}));var Tt;(function(r){r[r.UNKNOWN=0]="UNKNOWN",r[r.WEBGL=1]="WEBGL",r[r.CANVAS=2]="CANVAS"})(Tt||(Tt={}));var Xt;(function(r){r[r.COLOR=16384]="COLOR",r[r.DEPTH=256]="DEPTH",r[r.STENCIL=1024]="STENCIL"})(Xt||(Xt={}));var g;(function(r){r[r.NORMAL=0]="NORMAL",r[r.ADD=1]="ADD",r[r.MULTIPLY=2]="MULTIPLY",r[r.SCREEN=3]="SCREEN",r[r.OVERLAY=4]="OVERLAY",r[r.DARKEN=5]="DARKEN",r[r.LIGHTEN=6]="LIGHTEN",r[r.COLOR_DODGE=7]="COLOR_DODGE",r[r.COLOR_BURN=8]="COLOR_BURN",r[r.HARD_LIGHT=9]="HARD_LIGHT",r[r.SOFT_LIGHT=10]="SOFT_LIGHT",r[r.DIFFERENCE=11]="DIFFERENCE",r[r.EXCLUSION=12]="EXCLUSION",r[r.HUE=13]="HUE",r[r.SATURATION=14]="SATURATION",r[r.COLOR=15]="COLOR",r[r.LUMINOSITY=16]="LUMINOSITY",r[r.NORMAL_NPM=17]="NORMAL_NPM",r[r.ADD_NPM=18]="ADD_NPM",r[r.SCREEN_NPM=19]="SCREEN_NPM",r[r.NONE=20]="NONE",r[r.SRC_OVER=0]="SRC_OVER",r[r.SRC_IN=21]="SRC_IN",r[r.SRC_OUT=22]="SRC_OUT",r[r.SRC_ATOP=23]="SRC_ATOP",r[r.DST_OVER=24]="DST_OVER",r[r.DST_IN=25]="DST_IN",r[r.DST_OUT=26]="DST_OUT",r[r.DST_ATOP=27]="DST_ATOP",r[r.ERASE=26]="ERASE",r[r.SUBTRACT=28]="SUBTRACT",r[r.XOR=29]="XOR"})(g||(g={}));var bt;(function(r){r[r.POINTS=0]="POINTS",r[r.LINES=1]="LINES",r[r.LINE_LOOP=2]="LINE_LOOP",r[r.LINE_STRIP=3]="LINE_STRIP",r[r.TRIANGLES=4]="TRIANGLES",r[r.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",r[r.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(bt||(bt={}));var _;(function(r){r[r.RGBA=6408]="RGBA",r[r.RGB=6407]="RGB",r[r.RG=33319]="RG",r[r.RED=6403]="RED",r[r.RGBA_INTEGER=36249]="RGBA_INTEGER",r[r.RGB_INTEGER=36248]="RGB_INTEGER",r[r.RG_INTEGER=33320]="RG_INTEGER",r[r.RED_INTEGER=36244]="RED_INTEGER",r[r.ALPHA=6406]="ALPHA",r[r.LUMINANCE=6409]="LUMINANCE",r[r.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",r[r.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",r[r.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(_||(_={}));var lt;(function(r){r[r.TEXTURE_2D=3553]="TEXTURE_2D",r[r.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",r[r.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",r[r.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",r[r.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",r[r.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",r[r.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(lt||(lt={}));var I;(function(r){r[r.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",r[r.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",r[r.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",r[r.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",r[r.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",r[r.UNSIGNED_INT=5125]="UNSIGNED_INT",r[r.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",r[r.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",r[r.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",r[r.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",r[r.BYTE=5120]="BYTE",r[r.SHORT=5122]="SHORT",r[r.INT=5124]="INT",r[r.FLOAT=5126]="FLOAT",r[r.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",r[r.HALF_FLOAT=36193]="HALF_FLOAT"})(I||(I={}));var Ht;(function(r){r[r.FLOAT=0]="FLOAT",r[r.INT=1]="INT",r[r.UINT=2]="UINT"})(Ht||(Ht={}));var q;(function(r){r[r.NEAREST=0]="NEAREST",r[r.LINEAR=1]="LINEAR"})(q||(q={}));var ve;(function(r){r[r.CLAMP=33071]="CLAMP",r[r.REPEAT=10497]="REPEAT",r[r.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(ve||(ve={}));var ft;(function(r){r[r.OFF=0]="OFF",r[r.POW2=1]="POW2",r[r.ON=2]="ON",r[r.ON_MANUAL=3]="ON_MANUAL"})(ft||(ft={}));var Q;(function(r){r[r.NPM=0]="NPM",r[r.UNPACK=1]="UNPACK",r[r.PMA=2]="PMA",r[r.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",r[r.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",r[r.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",r[r.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(Q||(Q={}));var J;(function(r){r[r.NO=0]="NO",r[r.YES=1]="YES",r[r.AUTO=2]="AUTO",r[r.BLEND=0]="BLEND",r[r.CLEAR=1]="CLEAR",r[r.BLIT=2]="BLIT"})(J||(J={}));var me;(function(r){r[r.AUTO=0]="AUTO",r[r.MANUAL=1]="MANUAL"})(me||(me={}));var D;(function(r){r.LOW="lowp",r.MEDIUM="mediump",r.HIGH="highp"})(D||(D={}));var O;(function(r){r[r.NONE=0]="NONE",r[r.SCISSOR=1]="SCISSOR",r[r.STENCIL=2]="STENCIL",r[r.SPRITE=3]="SPRITE"})(O||(O={}));var F;(function(r){r[r.NONE=0]="NONE",r[r.LOW=2]="LOW",r[r.MEDIUM=4]="MEDIUM",r[r.HIGH=8]="HIGH"})(F||(F={}));var W;(function(r){r[r.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",r[r.ARRAY_BUFFER=34962]="ARRAY_BUFFER",r[r.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(W||(W={}));/*! - * @pixi/utils - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC + */var J;(function(r){r[r.WEBGL_LEGACY=0]="WEBGL_LEGACY",r[r.WEBGL=1]="WEBGL",r[r.WEBGL2=2]="WEBGL2"})(J||(J={}));var Tt;(function(r){r[r.UNKNOWN=0]="UNKNOWN",r[r.WEBGL=1]="WEBGL",r[r.CANVAS=2]="CANVAS"})(Tt||(Tt={}));var Ht;(function(r){r[r.COLOR=16384]="COLOR",r[r.DEPTH=256]="DEPTH",r[r.STENCIL=1024]="STENCIL"})(Ht||(Ht={}));var g;(function(r){r[r.NORMAL=0]="NORMAL",r[r.ADD=1]="ADD",r[r.MULTIPLY=2]="MULTIPLY",r[r.SCREEN=3]="SCREEN",r[r.OVERLAY=4]="OVERLAY",r[r.DARKEN=5]="DARKEN",r[r.LIGHTEN=6]="LIGHTEN",r[r.COLOR_DODGE=7]="COLOR_DODGE",r[r.COLOR_BURN=8]="COLOR_BURN",r[r.HARD_LIGHT=9]="HARD_LIGHT",r[r.SOFT_LIGHT=10]="SOFT_LIGHT",r[r.DIFFERENCE=11]="DIFFERENCE",r[r.EXCLUSION=12]="EXCLUSION",r[r.HUE=13]="HUE",r[r.SATURATION=14]="SATURATION",r[r.COLOR=15]="COLOR",r[r.LUMINOSITY=16]="LUMINOSITY",r[r.NORMAL_NPM=17]="NORMAL_NPM",r[r.ADD_NPM=18]="ADD_NPM",r[r.SCREEN_NPM=19]="SCREEN_NPM",r[r.NONE=20]="NONE",r[r.SRC_OVER=0]="SRC_OVER",r[r.SRC_IN=21]="SRC_IN",r[r.SRC_OUT=22]="SRC_OUT",r[r.SRC_ATOP=23]="SRC_ATOP",r[r.DST_OVER=24]="DST_OVER",r[r.DST_IN=25]="DST_IN",r[r.DST_OUT=26]="DST_OUT",r[r.DST_ATOP=27]="DST_ATOP",r[r.ERASE=26]="ERASE",r[r.SUBTRACT=28]="SUBTRACT",r[r.XOR=29]="XOR"})(g||(g={}));var bt;(function(r){r[r.POINTS=0]="POINTS",r[r.LINES=1]="LINES",r[r.LINE_LOOP=2]="LINE_LOOP",r[r.LINE_STRIP=3]="LINE_STRIP",r[r.TRIANGLES=4]="TRIANGLES",r[r.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",r[r.TRIANGLE_FAN=6]="TRIANGLE_FAN"})(bt||(bt={}));var _;(function(r){r[r.RGBA=6408]="RGBA",r[r.RGB=6407]="RGB",r[r.RG=33319]="RG",r[r.RED=6403]="RED",r[r.RGBA_INTEGER=36249]="RGBA_INTEGER",r[r.RGB_INTEGER=36248]="RGB_INTEGER",r[r.RG_INTEGER=33320]="RG_INTEGER",r[r.RED_INTEGER=36244]="RED_INTEGER",r[r.ALPHA=6406]="ALPHA",r[r.LUMINANCE=6409]="LUMINANCE",r[r.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",r[r.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",r[r.DEPTH_STENCIL=34041]="DEPTH_STENCIL"})(_||(_={}));var lt;(function(r){r[r.TEXTURE_2D=3553]="TEXTURE_2D",r[r.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",r[r.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",r[r.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",r[r.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",r[r.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",r[r.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",r[r.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"})(lt||(lt={}));var I;(function(r){r[r.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",r[r.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",r[r.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",r[r.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",r[r.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",r[r.UNSIGNED_INT=5125]="UNSIGNED_INT",r[r.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",r[r.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",r[r.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",r[r.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",r[r.BYTE=5120]="BYTE",r[r.SHORT=5122]="SHORT",r[r.INT=5124]="INT",r[r.FLOAT=5126]="FLOAT",r[r.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",r[r.HALF_FLOAT=36193]="HALF_FLOAT"})(I||(I={}));var Vt;(function(r){r[r.FLOAT=0]="FLOAT",r[r.INT=1]="INT",r[r.UINT=2]="UINT"})(Vt||(Vt={}));var Y;(function(r){r[r.NEAREST=0]="NEAREST",r[r.LINEAR=1]="LINEAR"})(Y||(Y={}));var ve;(function(r){r[r.CLAMP=33071]="CLAMP",r[r.REPEAT=10497]="REPEAT",r[r.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"})(ve||(ve={}));var ft;(function(r){r[r.OFF=0]="OFF",r[r.POW2=1]="POW2",r[r.ON=2]="ON",r[r.ON_MANUAL=3]="ON_MANUAL"})(ft||(ft={}));var tt;(function(r){r[r.NPM=0]="NPM",r[r.UNPACK=1]="UNPACK",r[r.PMA=2]="PMA",r[r.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",r[r.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",r[r.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA",r[r.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA"})(tt||(tt={}));var Q;(function(r){r[r.NO=0]="NO",r[r.YES=1]="YES",r[r.AUTO=2]="AUTO",r[r.BLEND=0]="BLEND",r[r.CLEAR=1]="CLEAR",r[r.BLIT=2]="BLIT"})(Q||(Q={}));var me;(function(r){r[r.AUTO=0]="AUTO",r[r.MANUAL=1]="MANUAL"})(me||(me={}));var D;(function(r){r.LOW="lowp",r.MEDIUM="mediump",r.HIGH="highp"})(D||(D={}));var O;(function(r){r[r.NONE=0]="NONE",r[r.SCISSOR=1]="SCISSOR",r[r.STENCIL=2]="STENCIL",r[r.SPRITE=3]="SPRITE"})(O||(O={}));var F;(function(r){r[r.NONE=0]="NONE",r[r.LOW=2]="LOW",r[r.MEDIUM=4]="MEDIUM",r[r.HIGH=8]="HIGH"})(F||(F={}));var W;(function(r){r[r.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",r[r.ARRAY_BUFFER=34962]="ARRAY_BUFFER",r[r.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"})(W||(W={}));/*! + * @pixi/utils - v6.3.2 + * Compiled Wed, 04 May 2022 17:49:13 UTC * * @pixi/utils is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */var Ni={parse:bi,format:Ii,resolve:Ri};x.RETINA_PREFIX=/@([0-9\.]+)x/;x.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var _r=!1,yr="6.4.2";function Ci(r){var t;if(!_r){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var e=[` + */var Ni={parse:bi,format:Ii,resolve:Ri};x.RETINA_PREFIX=/@([0-9\.]+)x/;x.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var _r=!1,yr="6.3.2";function Ci(r){var t;if(!_r){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var e=[` %c %c %c PixiJS `+yr+" - \u2730 "+r+` \u2730 %c %c http://www.pixijs.com/ %c %c \u2665%c\u2665%c\u2665 -`,"background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(t=globalThis.console).log.apply(t,e)}else globalThis.console&&globalThis.console.log("PixiJS "+yr+" - "+r+" - http://www.pixijs.com/");_r=!0}}var Yt;function Ai(){return typeof Yt=="undefined"&&(Yt=function(){var t={stencil:!0,failIfMajorPerformanceCaveat:x.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!globalThis.WebGLRenderingContext)return!1;var e=document.createElement("canvas"),i=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),n=!!(i&&i.getContextAttributes().stencil);if(i){var s=i.getExtension("WEBGL_lose_context");s&&s.loseContext()}return i=null,n}catch{return!1}}()),Yt}function Pi(r,t){return t===void 0&&(t=[]),t[0]=(r>>16&255)/255,t[1]=(r>>8&255)/255,t[2]=(r&255)/255,t}function Ui(r){var t=r.toString(16);return t="000000".substring(0,6-t.length)+t,"#"+t}function Fi(){for(var r=[],t=[],e=0;e<32;e++)r[e]=e,t[e]=e;r[g.NORMAL_NPM]=g.NORMAL,r[g.ADD_NPM]=g.ADD,r[g.SCREEN_NPM]=g.SCREEN,t[g.NORMAL]=g.NORMAL_NPM,t[g.ADD]=g.ADD_NPM,t[g.SCREEN]=g.SCREEN_NPM;var i=[];return i.push(t),i.push(r),i}var Li=Fi();function Oi(r,t){if(t===1)return(t*255<<24)+r;if(t===0)return 0;var e=r>>16&255,i=r>>8&255,n=r&255;return e=e*t+.5|0,i=i*t+.5|0,n=n*t+.5|0,(t*255<<24)+(e<<16)+(i<<8)+n}function ti(r){if(r.BYTES_PER_ELEMENT===4)return r instanceof Float32Array?"Float32Array":r instanceof Uint32Array?"Uint32Array":"Int32Array";if(r.BYTES_PER_ELEMENT===2){if(r instanceof Uint16Array)return"Uint16Array"}else if(r.BYTES_PER_ELEMENT===1&&r instanceof Uint8Array)return"Uint8Array";return null}function Vt(r){return r+=r===0?1:0,--r,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r+1}function gr(r){return!(r&r-1)&&!!r}function xr(r){var t=(r>65535?1:0)<<4;r>>>=t;var e=(r>255?1:0)<<3;return r>>>=e,t|=e,e=(r>15?1:0)<<2,r>>>=e,t|=e,e=(r>3?1:0)<<1,r>>>=e,t|=e,t|r>>1}function kt(r,t,e){var i=r.length,n;if(!(t>=i||e===0)){e=t+e>i?i-t:e;var s=i-e;for(n=t;n>16&255)/255,t[1]=(r>>8&255)/255,t[2]=(r&255)/255,t}function Ui(r){var t=r.toString(16);return t="000000".substring(0,6-t.length)+t,"#"+t}function Fi(){for(var r=[],t=[],e=0;e<32;e++)r[e]=e,t[e]=e;r[g.NORMAL_NPM]=g.NORMAL,r[g.ADD_NPM]=g.ADD,r[g.SCREEN_NPM]=g.SCREEN,t[g.NORMAL]=g.NORMAL_NPM,t[g.ADD]=g.ADD_NPM,t[g.SCREEN]=g.SCREEN_NPM;var i=[];return i.push(t),i.push(r),i}var Li=Fi();function Oi(r,t){if(t===1)return(t*255<<24)+r;if(t===0)return 0;var e=r>>16&255,i=r>>8&255,n=r&255;return e=e*t+.5|0,i=i*t+.5|0,n=n*t+.5|0,(t*255<<24)+(e<<16)+(i<<8)+n}function ti(r){if(r.BYTES_PER_ELEMENT===4)return r instanceof Float32Array?"Float32Array":r instanceof Uint32Array?"Uint32Array":"Int32Array";if(r.BYTES_PER_ELEMENT===2){if(r instanceof Uint16Array)return"Uint16Array"}else if(r.BYTES_PER_ELEMENT===1&&r instanceof Uint8Array)return"Uint8Array";return null}function jt(r){return r+=r===0?1:0,--r,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,r|=r>>>16,r+1}function gr(r){return!(r&r-1)&&!!r}function xr(r){var t=(r>65535?1:0)<<4;r>>>=t;var e=(r>255?1:0)<<3;return r>>>=e,t|=e,e=(r>15?1:0)<<2,r>>>=e,t|=e,e=(r>3?1:0)<<1,r>>>=e,t|=e,t|r>>1}function Xt(r,t,e){var i=r.length,n;if(!(t>=i||e===0)){e=t+e>i?i-t:e;var s=i-e;for(n=t;n8)throw new Error("max arguments reached");var u=this,l=u.name,f=u.items;this._aliasCount++;for(var c=0,d=f.length;c0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},r.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},r.prototype.remove=function(t){var e=this.items.indexOf(t);return e!==-1&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},r.prototype.contains=function(t){return this.items.indexOf(t)!==-1},r.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},r.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(r.prototype,"empty",{get:function(){return this.items.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),r}();Object.defineProperties(S.prototype,{dispatch:{value:S.prototype.emit},run:{value:S.prototype.emit}});/*! - * @pixi/ticker - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC + * @pixi/ticker - v6.3.2 + * Compiled Wed, 04 May 2022 17:49:13 UTC * * @pixi/ticker is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */x.TARGET_FPMS=.06;var jt;(function(r){r[r.INTERACTION=50]="INTERACTION",r[r.HIGH=25]="HIGH",r[r.NORMAL=0]="NORMAL",r[r.LOW=-25]="LOW",r[r.UTILITY=-50]="UTILITY"})(jt||(jt={}));var Kt=function(){function r(t,e,i,n){e===void 0&&(e=null),i===void 0&&(i=0),n===void 0&&(n=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=e,this.priority=i,this.once=n}return r.prototype.match=function(t,e){return e===void 0&&(e=null),this.fn===t&&this.context===e},r.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e},r.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},r.prototype.destroy=function(t){t===void 0&&(t=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var e=this.next;return this.next=t?null:e,this.previous=null,e},r}(),nt=function(){function r(){var t=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new Kt(null,null,1/0),this.deltaMS=1/x.TARGET_FPMS,this.elapsedMS=1/x.TARGET_FPMS,this._tick=function(e){t._requestId=null,t.started&&(t.update(e),t.started&&t._requestId===null&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return r.prototype._requestIfNeeded=function(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},r.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},r.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},r.prototype.add=function(t,e,i){return i===void 0&&(i=jt.NORMAL),this._addListener(new Kt(t,e,i))},r.prototype.addOnce=function(t,e,i){return i===void 0&&(i=jt.NORMAL),this._addListener(new Kt(t,e,i,!0))},r.prototype._addListener=function(t){var e=this._head.next,i=this._head;if(!e)t.connect(i);else{for(;e;){if(t.priority>e.priority){t.connect(i);break}i=e,e=e.next}t.previous||t.connect(i)}return this._startIfPossible(),this},r.prototype.remove=function(t,e){for(var i=this._head.next;i;)i.match(t,e)?i=i.destroy():i=i.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(r.prototype,"count",{get:function(){if(!this._head)return 0;for(var t=0,e=this._head;e=e.next;)t++;return t},enumerable:!1,configurable:!0}),r.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},r.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},r.prototype.destroy=function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}},r.prototype.update=function(t){t===void 0&&(t=performance.now());var e;if(t>this.lastTime){if(e=this.elapsedMS=t-this.lastTime,e>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var i=t-this._lastFrame|0;if(ie.priority){t.connect(i);break}i=e,e=e.next}t.previous||t.connect(i)}return this._startIfPossible(),this},r.prototype.remove=function(t,e){for(var i=this._head.next;i;)i.match(t,e)?i=i.destroy():i=i.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(r.prototype,"count",{get:function(){if(!this._head)return 0;for(var t=0,e=this._head;e=e.next;)t++;return t},enumerable:!1,configurable:!0}),r.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},r.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},r.prototype.destroy=function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}},r.prototype.update=function(t){t===void 0&&(t=performance.now());var e;if(t>this.lastTime){if(e=this.elapsedMS=t-this.lastTime,e>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var i=t-this._lastFrame|0;if(i=this.x&&t=this.y&&et.right?t.right:this.right;if(n<=i)return!1;var s=this.yt.bottom?t.bottom:this.bottom;return a>s}var o=this.left,h=this.right,u=this.top,l=this.bottom;if(h<=o||l<=u)return!1;var f=Pt[0].set(t.left,t.top),c=Pt[1].set(t.left,t.bottom),d=Pt[2].set(t.right,t.top),p=Pt[3].set(t.right,t.bottom);if(d.x<=f.x||c.y<=f.y)return!1;var m=Math.sign(e.a*e.d-e.b*e.c);if(m===0||(e.apply(f,f),e.apply(c,c),e.apply(d,d),e.apply(p,p),Math.max(f.x,c.x,d.x,p.x)<=o||Math.min(f.x,c.x,d.x,p.x)>=h||Math.max(f.y,c.y,d.y,p.y)<=u||Math.min(f.y,c.y,d.y,p.y)>=l))return!1;var v=m*(c.y-f.y),y=m*(f.x-c.x),R=v*o+y*u,C=v*h+y*u,M=v*o+y*l,k=v*h+y*l;if(Math.max(R,C,M,k)<=v*f.x+y*f.y||Math.min(R,C,M,k)>=v*p.x+y*p.y)return!1;var B=m*(f.y-d.y),T=m*(d.x-f.x),b=B*o+T*u,G=B*h+T*u,rr=B*o+T*l,ir=B*h+T*l;return!(Math.max(b,G,rr,ir)<=B*f.x+T*f.y||Math.min(b,G,rr,ir)>=B*p.x+T*p.y)},r.prototype.pad=function(t,e){return t===void 0&&(t=0),e===void 0&&(e=t),this.x-=t,this.y-=e,this.width+=t*2,this.height+=e*2,this},r.prototype.fit=function(t){var e=Math.max(this.x,t.x),i=Math.min(this.x+this.width,t.x+t.width),n=Math.max(this.y,t.y),s=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(i-e,0),this.y=n,this.height=Math.max(s-n,0),this},r.prototype.ceil=function(t,e){t===void 0&&(t=1),e===void 0&&(e=.001);var i=Math.ceil((this.x+this.width-e)*t)/t,n=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=i-this.x,this.height=n-this.y,this},r.prototype.enlarge=function(t){var e=Math.min(this.x,t.x),i=Math.max(this.x+this.width,t.x+t.width),n=Math.min(this.y,t.y),s=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=i-e,this.y=n,this.height=s-n,this},r.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},r}(),gt=function(){function r(t,e,i,n){i===void 0&&(i=0),n===void 0&&(n=0),this._x=i,this._y=n,this.cb=t,this.scope=e}return r.prototype.clone=function(t,e){return t===void 0&&(t=this.cb),e===void 0&&(e=this.scope),new r(t,e,this._x,this._y)},r.prototype.set=function(t,e){return t===void 0&&(t=0),e===void 0&&(e=t),(this._x!==t||this._y!==e)&&(this._x=t,this._y=e,this.cb.call(this.scope)),this},r.prototype.copyFrom=function(t){return(this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this},r.prototype.copyTo=function(t){return t.set(this._x,this._y),t},r.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},r.prototype.toString=function(){return"[@pixi/math:ObservablePoint x="+0+" y="+0+" scope="+this.scope+"]"},Object.defineProperty(r.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),r}(),H=function(){function r(t,e,i,n,s,a){t===void 0&&(t=1),e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=1),s===void 0&&(s=0),a===void 0&&(a=0),this.array=null,this.a=t,this.b=e,this.c=i,this.d=n,this.tx=s,this.ty=a}return r.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},r.prototype.set=function(t,e,i,n,s,a){return this.a=t,this.b=e,this.c=i,this.d=n,this.tx=s,this.ty=a,this},r.prototype.toArray=function(t,e){this.array||(this.array=new Float32Array(9));var i=e||this.array;return t?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty,i[8]=1):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0,i[8]=1),i},r.prototype.apply=function(t,e){e=e||new P;var i=t.x,n=t.y;return e.x=this.a*i+this.c*n+this.tx,e.y=this.b*i+this.d*n+this.ty,e},r.prototype.applyInverse=function(t,e){e=e||new P;var i=1/(this.a*this.d+this.c*-this.b),n=t.x,s=t.y;return e.x=this.d*i*n+-this.c*i*s+(this.ty*this.c-this.tx*this.d)*i,e.y=this.a*i*s+-this.b*i*n+(-this.ty*this.a+this.tx*this.b)*i,e},r.prototype.translate=function(t,e){return this.tx+=t,this.ty+=e,this},r.prototype.scale=function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this},r.prototype.rotate=function(t){var e=Math.cos(t),i=Math.sin(t),n=this.a,s=this.c,a=this.tx;return this.a=n*e-this.b*i,this.b=n*i+this.b*e,this.c=s*e-this.d*i,this.d=s*i+this.d*e,this.tx=a*e-this.ty*i,this.ty=a*i+this.ty*e,this},r.prototype.append=function(t){var e=this.a,i=this.b,n=this.c,s=this.d;return this.a=t.a*e+t.b*n,this.b=t.a*i+t.b*s,this.c=t.c*e+t.d*n,this.d=t.c*i+t.d*s,this.tx=t.tx*e+t.ty*n+this.tx,this.ty=t.tx*i+t.ty*s+this.ty,this},r.prototype.setTransform=function(t,e,i,n,s,a,o,h,u){return this.a=Math.cos(o+u)*s,this.b=Math.sin(o+u)*s,this.c=-Math.sin(o-h)*a,this.d=Math.cos(o-h)*a,this.tx=t-(i*this.a+n*this.c),this.ty=e-(i*this.b+n*this.d),this},r.prototype.prepend=function(t){var e=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){var i=this.a,n=this.c;this.a=i*t.a+this.b*t.c,this.b=i*t.b+this.b*t.d,this.c=n*t.a+this.d*t.c,this.d=n*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this},r.prototype.decompose=function(t){var e=this.a,i=this.b,n=this.c,s=this.d,a=t.pivot,o=-Math.atan2(-n,s),h=Math.atan2(i,e),u=Math.abs(o+h);return u<1e-5||Math.abs(Bi-u)<1e-5?(t.rotation=h,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=o,t.skew.y=h),t.scale.x=Math.sqrt(e*e+i*i),t.scale.y=Math.sqrt(n*n+s*s),t.position.x=this.tx+(a.x*e+a.y*n),t.position.y=this.ty+(a.x*i+a.y*s),t},r.prototype.invert=function(){var t=this.a,e=this.b,i=this.c,n=this.d,s=this.tx,a=t*n-e*i;return this.a=n/a,this.b=-e/a,this.c=-i/a,this.d=t/a,this.tx=(i*this.ty-n*s)/a,this.ty=-(t*this.ty-e*s)/a,this},r.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},r.prototype.clone=function(){var t=new r;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},r.prototype.copyTo=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},r.prototype.copyFrom=function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this},r.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+"]"},Object.defineProperty(r,"IDENTITY",{get:function(){return new r},enumerable:!1,configurable:!0}),Object.defineProperty(r,"TEMP_MATRIX",{get:function(){return new r},enumerable:!1,configurable:!0}),r}(),st=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],at=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],ot=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],ht=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],ye=[],ei=[],Ut=Math.sign;function Xi(){for(var r=0;r<16;r++){var t=[];ye.push(t);for(var e=0;e<16;e++)for(var i=Ut(st[r]*st[e]+ot[r]*at[e]),n=Ut(at[r]*st[e]+ht[r]*at[e]),s=Ut(st[r]*ot[e]+ot[r]*ht[e]),a=Ut(at[r]*ot[e]+ht[r]*ht[e]),o=0;o<16;o++)if(st[o]===i&&at[o]===n&&ot[o]===s&&ht[o]===a){t.push(o);break}}for(var r=0;r<16;r++){var h=new H;h.set(st[r],at[r],ot[r],ht[r],0,0),ei.push(h)}}Xi();var A={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(r){return st[r]},uY:function(r){return at[r]},vX:function(r){return ot[r]},vY:function(r){return ht[r]},inv:function(r){return r&8?r&15:-r&7},add:function(r,t){return ye[r][t]},sub:function(r,t){return ye[r][A.inv(t)]},rotate180:function(r){return r^4},isVertical:function(r){return(r&3)===2},byDirection:function(r,t){return Math.abs(r)*2<=Math.abs(t)?t>=0?A.S:A.N:Math.abs(t)*2<=Math.abs(r)?r>0?A.E:A.W:t>0?r>0?A.SE:A.SW:r>0?A.NE:A.NW},matrixAppendRotationInv:function(r,t,e,i){e===void 0&&(e=0),i===void 0&&(i=0);var n=ei[A.inv(t)];n.tx=e,n.ty=i,r.append(n)}},Hi=function(){function r(){this.worldTransform=new H,this.localTransform=new H,this.position=new gt(this.onChange,this,0,0),this.scale=new gt(this.onChange,this,1,1),this.pivot=new gt(this.onChange,this,0,0),this.skew=new gt(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return r.prototype.onChange=function(){this._localID++},r.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},r.prototype.toString=function(){return"[@pixi/math:Transform "+("position=("+this.position.x+", "+this.position.y+") ")+("rotation="+this.rotation+" ")+("scale=("+this.scale.x+", "+this.scale.y+") ")+("skew=("+this.skew.x+", "+this.skew.y+") ")+"]"},r.prototype.updateLocalTransform=function(){var t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1)},r.prototype.updateTransform=function(t){var e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var i=t.worldTransform,n=this.worldTransform;n.a=e.a*i.a+e.b*i.c,n.b=e.a*i.b+e.b*i.d,n.c=e.c*i.a+e.d*i.c,n.d=e.c*i.b+e.d*i.d,n.tx=e.tx*i.a+e.ty*i.c+i.tx,n.ty=e.tx*i.b+e.ty*i.d+i.ty,this._parentID=t._worldID,this._worldID++}},r.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(r.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!1,configurable:!0}),r.IDENTITY=new r,r}();/*! - * @pixi/core - v6.4.2 - * Compiled Thu, 02 Jun 2022 15:39:26 UTC + */var Bi=Math.PI*2,Mi=180/Math.PI,ki=Math.PI/180,_e;(function(r){r[r.POLY=0]="POLY",r[r.RECT=1]="RECT",r[r.CIRC=2]="CIRC",r[r.ELIP=3]="ELIP",r[r.RREC=4]="RREC"})(_e||(_e={}));var P=function(){function r(t,e){t===void 0&&(t=0),e===void 0&&(e=0),this.x=0,this.y=0,this.x=t,this.y=e}return r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.copyFrom=function(t){return this.set(t.x,t.y),this},r.prototype.copyTo=function(t){return t.set(this.x,this.y),t},r.prototype.equals=function(t){return t.x===this.x&&t.y===this.y},r.prototype.set=function(t,e){return t===void 0&&(t=0),e===void 0&&(e=t),this.x=t,this.y=e,this},r.prototype.toString=function(){return"[@pixi/math:Point x="+this.x+" y="+this.y+"]"},r}(),Ut=[new P,new P,new P,new P],U=function(){function r(t,e,i,n){t===void 0&&(t=0),e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=0),this.x=Number(t),this.y=Number(e),this.width=Number(i),this.height=Number(n),this.type=_e.RECT}return Object.defineProperty(r.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(r,"EMPTY",{get:function(){return new r(0,0,0,0)},enumerable:!1,configurable:!0}),r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copyFrom=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},r.prototype.copyTo=function(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t},r.prototype.contains=function(t,e){return this.width<=0||this.height<=0?!1:t>=this.x&&t=this.y&&et.right?t.right:this.right;if(n<=i)return!1;var s=this.yt.bottom?t.bottom:this.bottom;return a>s}var o=this.left,h=this.right,u=this.top,l=this.bottom;if(h<=o||l<=u)return!1;var f=Ut[0].set(t.left,t.top),c=Ut[1].set(t.left,t.bottom),d=Ut[2].set(t.right,t.top),p=Ut[3].set(t.right,t.bottom);if(d.x<=f.x||c.y<=f.y)return!1;var m=Math.sign(e.a*e.d-e.b*e.c);if(m===0||(e.apply(f,f),e.apply(c,c),e.apply(d,d),e.apply(p,p),Math.max(f.x,c.x,d.x,p.x)<=o||Math.min(f.x,c.x,d.x,p.x)>=h||Math.max(f.y,c.y,d.y,p.y)<=u||Math.min(f.y,c.y,d.y,p.y)>=l))return!1;var v=m*(c.y-f.y),y=m*(f.x-c.x),R=v*o+y*u,C=v*h+y*u,M=v*o+y*l,k=v*h+y*l;if(Math.max(R,C,M,k)<=v*f.x+y*f.y||Math.min(R,C,M,k)>=v*p.x+y*p.y)return!1;var B=m*(f.y-d.y),T=m*(d.x-f.x),b=B*o+T*u,G=B*h+T*u,rr=B*o+T*l,ir=B*h+T*l;return!(Math.max(b,G,rr,ir)<=B*f.x+T*f.y||Math.min(b,G,rr,ir)>=B*p.x+T*p.y)},r.prototype.pad=function(t,e){return t===void 0&&(t=0),e===void 0&&(e=t),this.x-=t,this.y-=e,this.width+=t*2,this.height+=e*2,this},r.prototype.fit=function(t){var e=Math.max(this.x,t.x),i=Math.min(this.x+this.width,t.x+t.width),n=Math.max(this.y,t.y),s=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(i-e,0),this.y=n,this.height=Math.max(s-n,0),this},r.prototype.ceil=function(t,e){t===void 0&&(t=1),e===void 0&&(e=.001);var i=Math.ceil((this.x+this.width-e)*t)/t,n=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=i-this.x,this.height=n-this.y,this},r.prototype.enlarge=function(t){var e=Math.min(this.x,t.x),i=Math.max(this.x+this.width,t.x+t.width),n=Math.min(this.y,t.y),s=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=i-e,this.y=n,this.height=s-n,this},r.prototype.toString=function(){return"[@pixi/math:Rectangle x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+"]"},r}(),gt=function(){function r(t,e,i,n){i===void 0&&(i=0),n===void 0&&(n=0),this._x=i,this._y=n,this.cb=t,this.scope=e}return r.prototype.clone=function(t,e){return t===void 0&&(t=this.cb),e===void 0&&(e=this.scope),new r(t,e,this._x,this._y)},r.prototype.set=function(t,e){return t===void 0&&(t=0),e===void 0&&(e=t),(this._x!==t||this._y!==e)&&(this._x=t,this._y=e,this.cb.call(this.scope)),this},r.prototype.copyFrom=function(t){return(this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this},r.prototype.copyTo=function(t){return t.set(this._x,this._y),t},r.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},r.prototype.toString=function(){return"[@pixi/math:ObservablePoint x="+0+" y="+0+" scope="+this.scope+"]"},Object.defineProperty(r.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),r}(),H=function(){function r(t,e,i,n,s,a){t===void 0&&(t=1),e===void 0&&(e=0),i===void 0&&(i=0),n===void 0&&(n=1),s===void 0&&(s=0),a===void 0&&(a=0),this.array=null,this.a=t,this.b=e,this.c=i,this.d=n,this.tx=s,this.ty=a}return r.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},r.prototype.set=function(t,e,i,n,s,a){return this.a=t,this.b=e,this.c=i,this.d=n,this.tx=s,this.ty=a,this},r.prototype.toArray=function(t,e){this.array||(this.array=new Float32Array(9));var i=e||this.array;return t?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty,i[8]=1):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0,i[8]=1),i},r.prototype.apply=function(t,e){e=e||new P;var i=t.x,n=t.y;return e.x=this.a*i+this.c*n+this.tx,e.y=this.b*i+this.d*n+this.ty,e},r.prototype.applyInverse=function(t,e){e=e||new P;var i=1/(this.a*this.d+this.c*-this.b),n=t.x,s=t.y;return e.x=this.d*i*n+-this.c*i*s+(this.ty*this.c-this.tx*this.d)*i,e.y=this.a*i*s+-this.b*i*n+(-this.ty*this.a+this.tx*this.b)*i,e},r.prototype.translate=function(t,e){return this.tx+=t,this.ty+=e,this},r.prototype.scale=function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this},r.prototype.rotate=function(t){var e=Math.cos(t),i=Math.sin(t),n=this.a,s=this.c,a=this.tx;return this.a=n*e-this.b*i,this.b=n*i+this.b*e,this.c=s*e-this.d*i,this.d=s*i+this.d*e,this.tx=a*e-this.ty*i,this.ty=a*i+this.ty*e,this},r.prototype.append=function(t){var e=this.a,i=this.b,n=this.c,s=this.d;return this.a=t.a*e+t.b*n,this.b=t.a*i+t.b*s,this.c=t.c*e+t.d*n,this.d=t.c*i+t.d*s,this.tx=t.tx*e+t.ty*n+this.tx,this.ty=t.tx*i+t.ty*s+this.ty,this},r.prototype.setTransform=function(t,e,i,n,s,a,o,h,u){return this.a=Math.cos(o+u)*s,this.b=Math.sin(o+u)*s,this.c=-Math.sin(o-h)*a,this.d=Math.cos(o-h)*a,this.tx=t-(i*this.a+n*this.c),this.ty=e-(i*this.b+n*this.d),this},r.prototype.prepend=function(t){var e=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){var i=this.a,n=this.c;this.a=i*t.a+this.b*t.c,this.b=i*t.b+this.b*t.d,this.c=n*t.a+this.d*t.c,this.d=n*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this},r.prototype.decompose=function(t){var e=this.a,i=this.b,n=this.c,s=this.d,a=t.pivot,o=-Math.atan2(-n,s),h=Math.atan2(i,e),u=Math.abs(o+h);return u<1e-5||Math.abs(Bi-u)<1e-5?(t.rotation=h,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=o,t.skew.y=h),t.scale.x=Math.sqrt(e*e+i*i),t.scale.y=Math.sqrt(n*n+s*s),t.position.x=this.tx+(a.x*e+a.y*n),t.position.y=this.ty+(a.x*i+a.y*s),t},r.prototype.invert=function(){var t=this.a,e=this.b,i=this.c,n=this.d,s=this.tx,a=t*n-e*i;return this.a=n/a,this.b=-e/a,this.c=-i/a,this.d=t/a,this.tx=(i*this.ty-n*s)/a,this.ty=-(t*this.ty-e*s)/a,this},r.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},r.prototype.clone=function(){var t=new r;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},r.prototype.copyTo=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},r.prototype.copyFrom=function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this},r.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+"]"},Object.defineProperty(r,"IDENTITY",{get:function(){return new r},enumerable:!1,configurable:!0}),Object.defineProperty(r,"TEMP_MATRIX",{get:function(){return new r},enumerable:!1,configurable:!0}),r}(),st=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],at=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],ot=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],ht=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],ye=[],ei=[],Ft=Math.sign;function Xi(){for(var r=0;r<16;r++){var t=[];ye.push(t);for(var e=0;e<16;e++)for(var i=Ft(st[r]*st[e]+ot[r]*at[e]),n=Ft(at[r]*st[e]+ht[r]*at[e]),s=Ft(st[r]*ot[e]+ot[r]*ht[e]),a=Ft(at[r]*ot[e]+ht[r]*ht[e]),o=0;o<16;o++)if(st[o]===i&&at[o]===n&&ot[o]===s&&ht[o]===a){t.push(o);break}}for(var r=0;r<16;r++){var h=new H;h.set(st[r],at[r],ot[r],ht[r],0,0),ei.push(h)}}Xi();var A={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(r){return st[r]},uY:function(r){return at[r]},vX:function(r){return ot[r]},vY:function(r){return ht[r]},inv:function(r){return r&8?r&15:-r&7},add:function(r,t){return ye[r][t]},sub:function(r,t){return ye[r][A.inv(t)]},rotate180:function(r){return r^4},isVertical:function(r){return(r&3)===2},byDirection:function(r,t){return Math.abs(r)*2<=Math.abs(t)?t>=0?A.S:A.N:Math.abs(t)*2<=Math.abs(r)?r>0?A.E:A.W:t>0?r>0?A.SE:A.SW:r>0?A.NE:A.NW},matrixAppendRotationInv:function(r,t,e,i){e===void 0&&(e=0),i===void 0&&(i=0);var n=ei[A.inv(t)];n.tx=e,n.ty=i,r.append(n)}},Hi=function(){function r(){this.worldTransform=new H,this.localTransform=new H,this.position=new gt(this.onChange,this,0,0),this.scale=new gt(this.onChange,this,1,1),this.pivot=new gt(this.onChange,this,0,0),this.skew=new gt(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return r.prototype.onChange=function(){this._localID++},r.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},r.prototype.toString=function(){return"[@pixi/math:Transform "+("position=("+this.position.x+", "+this.position.y+") ")+("rotation="+this.rotation+" ")+("scale=("+this.scale.x+", "+this.scale.y+") ")+("skew=("+this.skew.x+", "+this.skew.y+") ")+"]"},r.prototype.updateLocalTransform=function(){var t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1)},r.prototype.updateTransform=function(t){var e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var i=t.worldTransform,n=this.worldTransform;n.a=e.a*i.a+e.b*i.c,n.b=e.a*i.b+e.b*i.d,n.c=e.c*i.a+e.d*i.c,n.d=e.c*i.b+e.d*i.d,n.tx=e.tx*i.a+e.ty*i.c+i.tx,n.ty=e.tx*i.b+e.ty*i.d+i.ty,this._parentID=t._worldID,this._worldID++}},r.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(r.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!1,configurable:!0}),r.IDENTITY=new r,r}();/*! + * @pixi/core - v6.3.2 + * Compiled Wed, 04 May 2022 17:49:13 UTC * * @pixi/core is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */x.PREFER_ENV=ut.any?Z.WEBGL:Z.WEBGL2;x.STRICT_TEXTURE_CACHE=!1;var ge=[];function ri(r,t){if(!r)return null;var e="";if(typeof r=="string"){var i=/\.(\w{3,4})(?:$|\?|#)/i.exec(r);i&&(e=i[1].toLowerCase())}for(var n=ge.length-1;n>=0;--n){var s=ge[n];if(s.test&&s.test(r,e))return new s(r,t)}throw new Error("Unrecognized source type to auto-detect Resource")}/*! ***************************************************************************** + */x.PREFER_ENV=ut.any?J.WEBGL:J.WEBGL2;x.STRICT_TEXTURE_CACHE=!1;var ge=[];function ri(r,t){if(!r)return null;var e="";if(typeof r=="string"){var i=/\.(\w{3,4})(?:$|\?|#)/i.exec(r);i&&(e=i[1].toLowerCase())}for(var n=ge.length-1;n>=0;--n){var s=ge[n];if(s.test&&s.test(r,e))return new s(r,t)}throw new Error("Unrecognized source type to auto-detect Resource")}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -67,11 +67,11 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. -***************************************************************************** */var xe=function(r,t){return xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},xe(r,t)};function N(r,t){xe(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Te=function(){return Te=Object.assign||function(t){for(var e=arguments,i,n=1,s=arguments.length;n0&&l>0,n.textureCacheIds=[],n.destroyed=!1,n.resource=null,n._batchEnabled=0,n._batchLocation=0,n.parentTextureArray=null,n.setResource(e),n}return Object.defineProperty(t.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mipmap",{get:function(){return this._mipmap},set:function(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),t.prototype.setStyle=function(e,i){var n;return e!==void 0&&e!==this.scaleMode&&(this.scaleMode=e,n=!0),i!==void 0&&i!==this.mipmap&&(this.mipmap=i,n=!0),n&&this.dirtyStyleId++,this},t.prototype.setSize=function(e,i,n){return n=n||this.resolution,this.setRealSize(e*n,i*n,n)},t.prototype.setRealSize=function(e,i,n){return this.resolution=n||this.resolution,this.width=Math.round(e)/this.resolution,this.height=Math.round(i)/this.resolution,this._refreshPOT(),this.update(),this},t.prototype._refreshPOT=function(){this.isPowerOfTwo=gr(this.realWidth)&&gr(this.realHeight)},t.prototype.setResolution=function(e){var i=this.resolution;return i===e?this:(this.resolution=e,this.valid&&(this.width=Math.round(this.width*i)/e,this.height=Math.round(this.height*i)/e,this.emit("update",this)),this._refreshPOT(),this)},t.prototype.setResource=function(e){if(this.resource===e)return this;if(this.resource)throw new Error("Resource can be set only once");return e.bind(this),this.resource=e,this},t.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},t.prototype.onError=function(e){this.emit("error",this,e)},t.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete et[this.cacheId],delete $[this.cacheId],this.cacheId=null),this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},t.prototype.dispose=function(){this.emit("dispose",this)},t.prototype.castToBaseTexture=function(){return this},t.from=function(e,i,n){n===void 0&&(n=x.STRICT_TEXTURE_CACHE);var s=typeof e=="string",a=null;if(s)a=e;else{if(!e._pixiId){var o=i&&i.pixiIdPrefix||"pixiid";e._pixiId=o+"_"+It()}a=e._pixiId}var h=et[a];if(s&&n&&!h)throw new Error('The cacheId "'+a+'" does not exist in BaseTextureCache.');return h||(h=new t(e,i),h.cacheId=a,t.addToCache(h,a)),h},t.fromBuffer=function(e,i,n,s){e=e||new Float32Array(i*n*4);var a=new Ne(e,{width:i,height:n}),o=e instanceof Float32Array?I.FLOAT:I.UNSIGNED_BYTE;return new t(a,Object.assign(ji,s||{width:i,height:n,type:o}))},t.addToCache=function(e,i){i&&(e.textureCacheIds.indexOf(i)===-1&&e.textureCacheIds.push(i),et[i]&&console.warn("BaseTexture added to the cache with an id ["+i+"] that already had an entry"),et[i]=e)},t.removeFromCache=function(e){if(typeof e=="string"){var i=et[e];if(i){var n=i.textureCacheIds.indexOf(e);return n>-1&&i.textureCacheIds.splice(n,1),delete et[e],i}}else if(e&&e.textureCacheIds){for(var s=0;s0)if(e.resource)this.addResourceAt(e.resource,i);else throw new Error("CubeResource does not support copying of renderTexture.");else e.target=lt.TEXTURE_CUBE_MAP_POSITIVE_X+i,e.parentTextureArray=this.baseTexture,this.items[i]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[i]=e,this},t.prototype.upload=function(e,i,n){for(var s=this.itemDirtyIds,a=0;a)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(tt),$i=function(r){N(t,r);function t(e,i){var n=this;if(i=i||{},!(e instanceof HTMLVideoElement)){var s=document.createElement("video");s.setAttribute("preload","auto"),s.setAttribute("webkit-playsinline",""),s.setAttribute("playsinline",""),typeof e=="string"&&(e=[e]);var a=e[0].src||e[0];tt.crossOrigin(s,a,i.crossorigin);for(var o=0;o0&&e.paused===!1&&e.ended===!1&&e.readyState>2},t.prototype._isSourceReady=function(){var e=this.source;return e.readyState===3||e.readyState===4},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(nt.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&(nt.shared.remove(this.update,this),this._isConnectedToTicker=!1)},t.prototype._onCanPlay=function(){var e=this.source;e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay);var i=this.valid;this.resize(e.videoWidth,e.videoHeight),!i&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&(nt.shared.remove(this.update,this),this._isConnectedToTicker=!1);var e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),r.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(nt.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(nt.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(e){e!==this._updateFPS&&(this._updateFPS=e)},enumerable:!1,configurable:!0}),t.test=function(e,i){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||t.TYPES.indexOf(i)>-1},t.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],t.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},t}(tt),qi=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.test=function(e){return!!globalThis.createImageBitmap&&e instanceof ImageBitmap},t}(tt);ge.push(si,qi,ni,$i,Wi,Ne,zi,Di);var Yi=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.upload=function(e,i,n){var s=e.gl;s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.alphaMode===Q.UNPACK);var a=i.realWidth,o=i.realHeight;return n.width===a&&n.height===o?s.texSubImage2D(i.target,0,0,0,a,o,i.format,n.type,this.data):(n.width=a,n.height=o,s.texImage2D(i.target,0,n.internalFormat,a,o,0,i.format,n.type,this.data)),!0},t}(Ne),be=function(){function r(t,e){this.width=Math.round(t||100),this.height=Math.round(e||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new S("disposeFramebuffer"),this.multisample=F.NONE}return Object.defineProperty(r.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),r.prototype.addColorTexture=function(t,e){return t===void 0&&(t=0),this.colorTextures[t]=e||new L(null,{scaleMode:q.NEAREST,resolution:1,mipmap:ft.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},r.prototype.addDepthTexture=function(t){return this.depthTexture=t||new L(new Yi(null,{width:this.width,height:this.height}),{scaleMode:q.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:ft.OFF,format:_.DEPTH_COMPONENT,type:I.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},r.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},r.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},r.prototype.resize=function(t,e){if(t=Math.round(t),e=Math.round(e),!(t===this.width&&e===this.height)){this.width=t,this.height=e,this.dirtyId++,this.dirtySize++;for(var i=0;i-1&&i.textureCacheIds.splice(n,1),delete $[e],i}}else if(e&&e.textureCacheIds){for(var s=0;sthis.baseTexture.width,h=n+a>this.baseTexture.height;if(o||h){var u=o&&h?"and":"or",l="X: "+i+" + "+s+" = "+(i+s)+" > "+this.baseTexture.width,f="Y: "+n+" + "+a+" = "+(n+a)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(l+" "+u+" "+f))}this.valid=s&&a&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=e),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(t,"EMPTY",{get:function(){return t._EMPTY||(t._EMPTY=new t(new L),Ft(t._EMPTY),Ft(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,"WHITE",{get:function(){if(!t._WHITE){var e=document.createElement("canvas"),i=e.getContext("2d");e.width=16,e.height=16,i.fillStyle="white",i.fillRect(0,0,16,16),t._WHITE=new t(new L(new ni(e))),Ft(t._WHITE),Ft(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(Wt),Ce=function(r){N(t,r);function t(e,i){var n=r.call(this,e,i)||this;return n.valid=!0,n.filterFrame=null,n.filterPoolKey=null,n.updateUvs(),n}return Object.defineProperty(t.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(e){this.framebuffer.multisample=e},enumerable:!1,configurable:!0}),t.prototype.resize=function(e,i,n){n===void 0&&(n=!0);var s=this.baseTexture.resolution,a=Math.round(e*s)/s,o=Math.round(i*s)/s;this.valid=a>0&&o>0,this._frame.width=this.orig.width=a,this._frame.height=this.orig.height=o,n&&this.baseTexture.resize(a,o),this.updateUvs()},t.prototype.setResolution=function(e){var i=this.baseTexture;i.resolution!==e&&(i.setResolution(e),this.resize(i.width,i.height,!1))},t.create=function(e){for(var i=arguments,n=[],s=1;s>>0,n>1&&(s+=n*4294967296)):s=n>1?-n:-1,this.texturePool[s]||(this.texturePool[s]=[]);var a=this.texturePool[s].pop();return a||(a=this.createTexture(t,e,n)),a.filterPoolKey=s,a.setResolution(i),a},r.prototype.getFilterTexture=function(t,e,i){var n=this.getOptimalTexture(t.width,t.height,e||t.resolution,i||F.NONE);return n.filterFrame=t.filterFrame,n},r.prototype.returnTexture=function(t){var e=t.filterPoolKey;t.filterFrame=null,this.texturePool[e].push(t)},r.prototype.returnFilterTexture=function(t){this.returnTexture(t)},r.prototype.clear=function(t){if(t=t!==!1,t)for(var e in this.texturePool){var i=this.texturePool[e];if(i)for(var n=0;n0&&t.height>0;for(var e in this.texturePool)if(Number(e)<0){var i=this.texturePool[e];if(i)for(var n=0;n1){for(var l=0;l1&&(f=this.getOptimalFilterTexture(l.width,l.height,e.resolution),f.filterFrame=l.filterFrame),i[c].apply(this,l,f,J.CLEAR,e);var d=l;l=f,f=d}i[c].apply(this,l,u.renderTexture,J.BLEND,e),c>1&&e.multisample>1&&this.returnFilterTexture(e.renderTexture),this.returnFilterTexture(l),this.returnFilterTexture(f)}e.clear(),this.statePool.push(e)},r.prototype.bindAndClear=function(t,e){e===void 0&&(e=J.CLEAR);var i=this.renderer,n=i.renderTexture,s=i.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var a=this.tempRect;a.x=0,a.y=0,a.width=t.filterFrame.width,a.height=t.filterFrame.height,n.bind(t,t.filterFrame,a)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?n.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var o=s.stateId&1||this.forceClear;(e===J.CLEAR||e===J.BLIT&&o)&&this.renderer.framebuffer.clear(0,0,0,0)},r.prototype.applyFilter=function(t,e,i,n){var s=this.renderer;s.state.set(t.state),this.bindAndClear(i,n),t.uniforms.uSampler=e,t.uniforms.filterGlobals=this.globalUniforms,s.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(e._frame,e.filterFrame),s.geometry.bind(this.quadUv),s.geometry.draw(bt.TRIANGLES)):(s.geometry.bind(this.quad),s.geometry.draw(bt.TRIANGLE_STRIP))},r.prototype.calculateSpriteMatrix=function(t,e){var i=this.activeState,n=i.sourceFrame,s=i.destinationFrame,a=e._texture.orig,o=t.set(s.width,0,0,s.height,n.x,n.y),h=e.worldTransform.copyTo(H.TEMP_MATRIX);return h.invert(),o.prepend(h),o.scale(1/a.width,1/a.height),o.translate(e.anchor.x,e.anchor.y),o},r.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},r.prototype.getOptimalFilterTexture=function(t,e,i,n){return i===void 0&&(i=1),n===void 0&&(n=F.NONE),this.texturePool.getOptimalTexture(t,e,i,n)},r.prototype.getFilterTexture=function(t,e,i){if(typeof t=="number"){var n=t;t=e,e=n}t=t||this.activeState.renderTexture;var s=this.texturePool.getOptimalTexture(t.width,t.height,e||t.resolution,i||F.NONE);return s.filterFrame=t.filterFrame,s},r.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},r.prototype.emptyPool=function(){this.texturePool.clear(!0)},r.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},r.prototype.transformAABB=function(t,e){var i=Lt[0],n=Lt[1],s=Lt[2],a=Lt[3];i.set(e.left,e.top),n.set(e.left,e.bottom),s.set(e.right,e.top),a.set(e.right,e.bottom),t.apply(i,i),t.apply(n,n),t.apply(s,s),t.apply(a,a);var o=Math.min(i.x,n.x,s.x,a.x),h=Math.min(i.y,n.y,s.y,a.y),u=Math.max(i.x,n.x,s.x,a.x),l=Math.max(i.y,n.y,s.y,a.y);e.x=o,e.y=h,e.width=u-o,e.height=l-h},r.prototype.roundFrame=function(t,e,i,n,s){if(!(t.width<=0||t.height<=0||i.width<=0||i.height<=0)){if(s){var a=s.a,o=s.b,h=s.c,u=s.d;if((Math.abs(o)>1e-4||Math.abs(h)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(u)>1e-4))return}s=s?Zt.copyFrom(s):Zt.identity(),s.translate(-i.x,-i.y).scale(n.width/i.width,n.height/i.height).translate(n.x,n.y),this.transformAABB(s,t),t.ceil(e),this.transformAABB(s.invert(),t)}},r}(),hi=function(){function r(t){this.renderer=t}return r.prototype.flush=function(){},r.prototype.destroy=function(){this.renderer=null},r.prototype.start=function(){},r.prototype.stop=function(){this.flush()},r.prototype.render=function(t){},r}(),hn=function(){function r(t){this.renderer=t,this.emptyRenderer=new hi(t),this.currentRenderer=this.emptyRenderer}return r.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},r.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},r.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},r.prototype.copyBoundTextures=function(t,e){for(var i=this.renderer.texture.boundTextures,n=e-1;n>=0;--n)t[n]=i[n]||null,t[n]&&(t[n]._batchLocation=n)},r.prototype.boundArray=function(t,e,i,n){for(var s=t.elements,a=t.ids,o=t.count,h=0,u=0;u=0&&f=Z.WEBGL2&&(i=t.getContext("webgl2",e)),i)this.webGLVersion=2;else if(this.webGLVersion=1,i=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),!i)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=i,this.getExtensions(),this.gl},r.prototype.getExtensions=function(){var t=this.gl,e={anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,e,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),loseContext:t.getExtension("WEBGL_lose_context"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,e,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},r.prototype.handleContextLost=function(t){t.preventDefault()},r.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},r.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},r.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},r.prototype.validateContext=function(t){var e=t.getContextAttributes(),i="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;i&&(this.webGLVersion=2),e&&!e.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var n=i||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=n,n||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},r}(),ln=function(){function r(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=F.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return r}(),fn=new U,cn=function(){function r(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new be(10,10),this.msaaSamples=null}return r.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new U,this.hasMRT=!0,this.writeDepthTexture=!0,this.disposeAll(!0),this.renderer.context.webGLVersion===1){var e=this.renderer.context.extensions.drawBuffers,i=this.renderer.context.extensions.depthTexture;x.PREFER_ENV===Z.WEBGL_LEGACY&&(e=null,i=null),e?t.drawBuffers=function(n){return e.drawBuffersWEBGL(n)}:(this.hasMRT=!1,t.drawBuffers=function(){}),i||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},r.prototype.bind=function(t,e,i){i===void 0&&(i=0);var n=this.gl;if(t){var s=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,n.bindFramebuffer(n.FRAMEBUFFER,s.framebuffer)),s.mipLevel!==i&&(t.dirtyId++,t.dirtyFormat++,s.mipLevel=i),s.dirtyId!==t.dirtyId&&(s.dirtyId=t.dirtyId,s.dirtyFormat!==t.dirtyFormat?(s.dirtyFormat=t.dirtyFormat,s.dirtySize=t.dirtySize,this.updateFramebuffer(t,i)):s.dirtySize!==t.dirtySize&&(s.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var a=0;a>i,u=e.height>>i,l=h/e.width;this.setViewport(e.x*l,e.y*l,h,u)}else{var h=t.width>>i,u=t.height>>i;this.setViewport(0,0,h,u)}}else this.current&&(this.current=null,n.bindFramebuffer(n.FRAMEBUFFER,null)),e?this.setViewport(e.x,e.y,e.width,e.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},r.prototype.setViewport=function(t,e,i,n){var s=this.viewport;t=Math.round(t),e=Math.round(e),i=Math.round(i),n=Math.round(n),(s.width!==i||s.height!==n||s.x!==t||s.y!==e)&&(s.x=t,s.y=e,s.width=i,s.height=n,this.gl.viewport(t,e,i,n))},Object.defineProperty(r.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),r.prototype.clear=function(t,e,i,n,s){s===void 0&&(s=Xt.COLOR|Xt.DEPTH);var a=this.gl;a.clearColor(t,e,i,n),a.clear(s)},r.prototype.initFramebuffer=function(t){var e=this.gl,i=new ln(e.createFramebuffer());return i.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=i,this.managedFramebuffers.push(t),t.disposeRunner.add(this),i},r.prototype.resizeFramebuffer=function(t){var e=this.gl,i=t.glFramebuffers[this.CONTEXT_UID];i.msaaBuffer&&(e.bindRenderbuffer(e.RENDERBUFFER,i.msaaBuffer),e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.RGBA8,t.width,t.height)),i.stencil&&(e.bindRenderbuffer(e.RENDERBUFFER,i.stencil),i.msaaBuffer?e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.DEPTH24_STENCIL8,t.width,t.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,t.width,t.height));var n=t.colorTextures,s=n.length;e.drawBuffers||(s=Math.min(s,1));for(var a=0;a1&&this.canMultisampleFramebuffer(t)?(n.msaaBuffer=n.msaaBuffer||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.msaaBuffer),i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.RGBA8,t.width,t.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.RENDERBUFFER,n.msaaBuffer)):n.msaaBuffer&&(i.deleteRenderbuffer(n.msaaBuffer),n.msaaBuffer=null,n.blitFramebuffer&&(n.blitFramebuffer.dispose(),n.blitFramebuffer=null));for(var o=[],h=0;h1&&i.drawBuffers(o),t.depthTexture){var f=this.writeDepthTexture;if(f){var c=t.depthTexture;this.renderer.texture.bind(c,0),i.framebufferTexture2D(i.FRAMEBUFFER,i.DEPTH_ATTACHMENT,i.TEXTURE_2D,c._glTextures[this.CONTEXT_UID].texture,e)}}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(n.stencil=n.stencil||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.stencil),n.msaaBuffer?i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.DEPTH24_STENCIL8,t.width,t.height):i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,t.width,t.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,n.stencil)):n.stencil&&(i.deleteRenderbuffer(n.stencil),n.stencil=null)},r.prototype.canMultisampleFramebuffer=function(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture},r.prototype.detectSamples=function(t){var e=this.msaaSamples,i=F.NONE;if(t<=1||e===null)return i;for(var n=0;n=0&&this.managedFramebuffers.splice(s,1),t.disposeRunner.remove(this),e||(n.deleteFramebuffer(i.framebuffer),i.msaaBuffer&&n.deleteRenderbuffer(i.msaaBuffer),i.stencil&&n.deleteRenderbuffer(i.stencil)),i.blitFramebuffer&&i.blitFramebuffer.dispose()}},r.prototype.disposeAll=function(t){var e=this.managedFramebuffers;this.managedFramebuffers=[];for(var i=0;i0&&l>0,n.textureCacheIds=[],n.destroyed=!1,n.resource=null,n._batchEnabled=0,n._batchLocation=0,n.parentTextureArray=null,n.setResource(e),n}return Object.defineProperty(t.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mipmap",{get:function(){return this._mipmap},set:function(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),t.prototype.setStyle=function(e,i){var n;return e!==void 0&&e!==this.scaleMode&&(this.scaleMode=e,n=!0),i!==void 0&&i!==this.mipmap&&(this.mipmap=i,n=!0),n&&this.dirtyStyleId++,this},t.prototype.setSize=function(e,i,n){return n=n||this.resolution,this.setRealSize(e*n,i*n,n)},t.prototype.setRealSize=function(e,i,n){return this.resolution=n||this.resolution,this.width=Math.round(e)/this.resolution,this.height=Math.round(i)/this.resolution,this._refreshPOT(),this.update(),this},t.prototype._refreshPOT=function(){this.isPowerOfTwo=gr(this.realWidth)&&gr(this.realHeight)},t.prototype.setResolution=function(e){var i=this.resolution;return i===e?this:(this.resolution=e,this.valid&&(this.width=Math.round(this.width*i)/e,this.height=Math.round(this.height*i)/e,this.emit("update",this)),this._refreshPOT(),this)},t.prototype.setResource=function(e){if(this.resource===e)return this;if(this.resource)throw new Error("Resource can be set only once");return e.bind(this),this.resource=e,this},t.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},t.prototype.onError=function(e){this.emit("error",this,e)},t.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete rt[this.cacheId],delete $[this.cacheId],this.cacheId=null),this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},t.prototype.dispose=function(){this.emit("dispose",this)},t.prototype.castToBaseTexture=function(){return this},t.from=function(e,i,n){n===void 0&&(n=x.STRICT_TEXTURE_CACHE);var s=typeof e=="string",a=null;if(s)a=e;else{if(!e._pixiId){var o=i&&i.pixiIdPrefix||"pixiid";e._pixiId=o+"_"+It()}a=e._pixiId}var h=rt[a];if(s&&n&&!h)throw new Error('The cacheId "'+a+'" does not exist in BaseTextureCache.');return h||(h=new t(e,i),h.cacheId=a,t.addToCache(h,a)),h},t.fromBuffer=function(e,i,n,s){e=e||new Float32Array(i*n*4);var a=new Ne(e,{width:i,height:n}),o=e instanceof Float32Array?I.FLOAT:I.UNSIGNED_BYTE;return new t(a,Object.assign(ji,s||{width:i,height:n,type:o}))},t.addToCache=function(e,i){i&&(e.textureCacheIds.indexOf(i)===-1&&e.textureCacheIds.push(i),rt[i]&&console.warn("BaseTexture added to the cache with an id ["+i+"] that already had an entry"),rt[i]=e)},t.removeFromCache=function(e){if(typeof e=="string"){var i=rt[e];if(i){var n=i.textureCacheIds.indexOf(e);return n>-1&&i.textureCacheIds.splice(n,1),delete rt[e],i}}else if(e&&e.textureCacheIds){for(var s=0;s0)if(e.resource)this.addResourceAt(e.resource,i);else throw new Error("CubeResource does not support copying of renderTexture.");else e.target=lt.TEXTURE_CUBE_MAP_POSITIVE_X+i,e.parentTextureArray=this.baseTexture,this.items[i]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[i]=e,this},t.prototype.upload=function(e,i,n){for(var s=this.itemDirtyIds,a=0;a)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t}(et),$i=function(r){N(t,r);function t(e,i){var n=this;if(i=i||{},!(e instanceof HTMLVideoElement)){var s=document.createElement("video");s.setAttribute("preload","auto"),s.setAttribute("webkit-playsinline",""),s.setAttribute("playsinline",""),typeof e=="string"&&(e=[e]);var a=e[0].src||e[0];et.crossOrigin(s,a,i.crossorigin);for(var o=0;o0&&e.paused===!1&&e.ended===!1&&e.readyState>2},t.prototype._isSourceReady=function(){var e=this.source;return e.readyState===3||e.readyState===4},t.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(q.shared.add(this.update,this),this._isConnectedToTicker=!0)},t.prototype._onPlayStop=function(){this._isConnectedToTicker&&(q.shared.remove(this.update,this),this._isConnectedToTicker=!1)},t.prototype._onCanPlay=function(){var e=this.source;e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay);var i=this.valid;this.resize(e.videoWidth,e.videoHeight),!i&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()},t.prototype.dispose=function(){this._isConnectedToTicker&&(q.shared.remove(this.update,this),this._isConnectedToTicker=!1);var e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),r.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(q.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(q.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(e){e!==this._updateFPS&&(this._updateFPS=e)},enumerable:!1,configurable:!0}),t.test=function(e,i){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||t.TYPES.indexOf(i)>-1},t.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],t.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},t}(et),qi=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.test=function(e){return!!globalThis.createImageBitmap&&e instanceof ImageBitmap},t}(et);ge.push(si,qi,ni,$i,Wi,Ne,zi,Di);var Yi=function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.upload=function(e,i,n){var s=e.gl;s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,i.alphaMode===tt.UNPACK);var a=i.realWidth,o=i.realHeight;return n.width===a&&n.height===o?s.texSubImage2D(i.target,0,0,0,a,o,i.format,n.type,this.data):(n.width=a,n.height=o,s.texImage2D(i.target,0,n.internalFormat,a,o,0,i.format,n.type,this.data)),!0},t}(Ne),be=function(){function r(t,e){this.width=Math.round(t||100),this.height=Math.round(e||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new S("disposeFramebuffer"),this.multisample=F.NONE}return Object.defineProperty(r.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),r.prototype.addColorTexture=function(t,e){return t===void 0&&(t=0),this.colorTextures[t]=e||new L(null,{scaleMode:Y.NEAREST,resolution:1,mipmap:ft.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},r.prototype.addDepthTexture=function(t){return this.depthTexture=t||new L(new Yi(null,{width:this.width,height:this.height}),{scaleMode:Y.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:ft.OFF,format:_.DEPTH_COMPONENT,type:I.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},r.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},r.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},r.prototype.resize=function(t,e){if(t=Math.round(t),e=Math.round(e),!(t===this.width&&e===this.height)){this.width=t,this.height=e,this.dirtyId++,this.dirtySize++;for(var i=0;i-1&&i.textureCacheIds.splice(n,1),delete $[e],i}}else if(e&&e.textureCacheIds){for(var s=0;sthis.baseTexture.width,h=n+a>this.baseTexture.height;if(o||h){var u=o&&h?"and":"or",l="X: "+i+" + "+s+" = "+(i+s)+" > "+this.baseTexture.width,f="Y: "+n+" + "+a+" = "+(n+a)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+(l+" "+u+" "+f))}this.valid=s&&a&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=e),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),t.prototype.castToBaseTexture=function(){return this.baseTexture},Object.defineProperty(t,"EMPTY",{get:function(){return t._EMPTY||(t._EMPTY=new t(new L),Lt(t._EMPTY),Lt(t._EMPTY.baseTexture)),t._EMPTY},enumerable:!1,configurable:!0}),Object.defineProperty(t,"WHITE",{get:function(){if(!t._WHITE){var e=document.createElement("canvas"),i=e.getContext("2d");e.width=16,e.height=16,i.fillStyle="white",i.fillRect(0,0,16,16),t._WHITE=new t(new L(new ni(e))),Lt(t._WHITE),Lt(t._WHITE.baseTexture)}return t._WHITE},enumerable:!1,configurable:!0}),t}(Wt),Ce=function(r){N(t,r);function t(e,i){var n=r.call(this,e,i)||this;return n.valid=!0,n.filterFrame=null,n.filterPoolKey=null,n.updateUvs(),n}return Object.defineProperty(t.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(e){this.framebuffer.multisample=e},enumerable:!1,configurable:!0}),t.prototype.resize=function(e,i,n){n===void 0&&(n=!0);var s=this.baseTexture.resolution,a=Math.round(e*s)/s,o=Math.round(i*s)/s;this.valid=a>0&&o>0,this._frame.width=this.orig.width=a,this._frame.height=this.orig.height=o,n&&this.baseTexture.resize(a,o),this.updateUvs()},t.prototype.setResolution=function(e){var i=this.baseTexture;i.resolution!==e&&(i.setResolution(e),this.resize(i.width,i.height,!1))},t.create=function(e){for(var i=arguments,n=[],s=1;s>>0,n>1&&(s+=n*4294967296)):s=n>1?-n:-1,this.texturePool[s]||(this.texturePool[s]=[]);var a=this.texturePool[s].pop();return a||(a=this.createTexture(t,e,n)),a.filterPoolKey=s,a.setResolution(i),a},r.prototype.getFilterTexture=function(t,e,i){var n=this.getOptimalTexture(t.width,t.height,e||t.resolution,i||F.NONE);return n.filterFrame=t.filterFrame,n},r.prototype.returnTexture=function(t){var e=t.filterPoolKey;t.filterFrame=null,this.texturePool[e].push(t)},r.prototype.returnFilterTexture=function(t){this.returnTexture(t)},r.prototype.clear=function(t){if(t=t!==!1,t)for(var e in this.texturePool){var i=this.texturePool[e];if(i)for(var n=0;n0&&t.height>0;for(var e in this.texturePool)if(Number(e)<0){var i=this.texturePool[e];if(i)for(var n=0;n1){for(var l=0;l1&&(f=this.getOptimalFilterTexture(l.width,l.height,e.resolution),f.filterFrame=l.filterFrame),i[c].apply(this,l,f,Q.CLEAR,e);var d=l;l=f,f=d}i[c].apply(this,l,u.renderTexture,Q.BLEND,e),c>1&&e.multisample>1&&this.returnFilterTexture(e.renderTexture),this.returnFilterTexture(l),this.returnFilterTexture(f)}e.clear(),this.statePool.push(e)},r.prototype.bindAndClear=function(t,e){e===void 0&&(e=Q.CLEAR);var i=this.renderer,n=i.renderTexture,s=i.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var a=this.tempRect;a.x=0,a.y=0,a.width=t.filterFrame.width,a.height=t.filterFrame.height,n.bind(t,t.filterFrame,a)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?n.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var o=s.stateId&1||this.forceClear;(e===Q.CLEAR||e===Q.BLIT&&o)&&this.renderer.framebuffer.clear(0,0,0,0)},r.prototype.applyFilter=function(t,e,i,n){var s=this.renderer;s.state.set(t.state),this.bindAndClear(i,n),t.uniforms.uSampler=e,t.uniforms.filterGlobals=this.globalUniforms,s.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(e._frame,e.filterFrame),s.geometry.bind(this.quadUv),s.geometry.draw(bt.TRIANGLES)):(s.geometry.bind(this.quad),s.geometry.draw(bt.TRIANGLE_STRIP))},r.prototype.calculateSpriteMatrix=function(t,e){var i=this.activeState,n=i.sourceFrame,s=i.destinationFrame,a=e._texture.orig,o=t.set(s.width,0,0,s.height,n.x,n.y),h=e.worldTransform.copyTo(H.TEMP_MATRIX);return h.invert(),o.prepend(h),o.scale(1/a.width,1/a.height),o.translate(e.anchor.x,e.anchor.y),o},r.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},r.prototype.getOptimalFilterTexture=function(t,e,i,n){return i===void 0&&(i=1),n===void 0&&(n=F.NONE),this.texturePool.getOptimalTexture(t,e,i,n)},r.prototype.getFilterTexture=function(t,e,i){if(typeof t=="number"){var n=t;t=e,e=n}t=t||this.activeState.renderTexture;var s=this.texturePool.getOptimalTexture(t.width,t.height,e||t.resolution,i||F.NONE);return s.filterFrame=t.filterFrame,s},r.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},r.prototype.emptyPool=function(){this.texturePool.clear(!0)},r.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},r.prototype.transformAABB=function(t,e){var i=Ot[0],n=Ot[1],s=Ot[2],a=Ot[3];i.set(e.left,e.top),n.set(e.left,e.bottom),s.set(e.right,e.top),a.set(e.right,e.bottom),t.apply(i,i),t.apply(n,n),t.apply(s,s),t.apply(a,a);var o=Math.min(i.x,n.x,s.x,a.x),h=Math.min(i.y,n.y,s.y,a.y),u=Math.max(i.x,n.x,s.x,a.x),l=Math.max(i.y,n.y,s.y,a.y);e.x=o,e.y=h,e.width=u-o,e.height=l-h},r.prototype.roundFrame=function(t,e,i,n,s){if(!(t.width<=0||t.height<=0||i.width<=0||i.height<=0)){if(s){var a=s.a,o=s.b,h=s.c,u=s.d;if((Math.abs(o)>1e-4||Math.abs(h)>1e-4)&&(Math.abs(a)>1e-4||Math.abs(u)>1e-4))return}s=s?Zt.copyFrom(s):Zt.identity(),s.translate(-i.x,-i.y).scale(n.width/i.width,n.height/i.height).translate(n.x,n.y),this.transformAABB(s,t),t.ceil(e),this.transformAABB(s.invert(),t)}},r}(),hi=function(){function r(t){this.renderer=t}return r.prototype.flush=function(){},r.prototype.destroy=function(){this.renderer=null},r.prototype.start=function(){},r.prototype.stop=function(){this.flush()},r.prototype.render=function(t){},r}(),hn=function(){function r(t){this.renderer=t,this.emptyRenderer=new hi(t),this.currentRenderer=this.emptyRenderer}return r.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},r.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},r.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},r.prototype.copyBoundTextures=function(t,e){for(var i=this.renderer.texture.boundTextures,n=e-1;n>=0;--n)t[n]=i[n]||null,t[n]&&(t[n]._batchLocation=n)},r.prototype.boundArray=function(t,e,i,n){for(var s=t.elements,a=t.ids,o=t.count,h=0,u=0;u=0&&f=J.WEBGL2&&(i=t.getContext("webgl2",e)),i)this.webGLVersion=2;else if(this.webGLVersion=1,i=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),!i)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=i,this.getExtensions(),this.gl},r.prototype.getExtensions=function(){var t=this.gl,e={anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,e,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),loseContext:t.getExtension("WEBGL_lose_context"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,e,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},r.prototype.handleContextLost=function(t){t.preventDefault()},r.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},r.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},r.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},r.prototype.validateContext=function(t){var e=t.getContextAttributes(),i="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;i&&(this.webGLVersion=2),e.stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var n=i||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=n,n||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},r}(),ln=function(){function r(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=F.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}return r}(),fn=new U,cn=function(){function r(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new be(10,10),this.msaaSamples=null}return r.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new U,this.hasMRT=!0,this.writeDepthTexture=!0,this.disposeAll(!0),this.renderer.context.webGLVersion===1){var e=this.renderer.context.extensions.drawBuffers,i=this.renderer.context.extensions.depthTexture;x.PREFER_ENV===J.WEBGL_LEGACY&&(e=null,i=null),e?t.drawBuffers=function(n){return e.drawBuffersWEBGL(n)}:(this.hasMRT=!1,t.drawBuffers=function(){}),i||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},r.prototype.bind=function(t,e,i){i===void 0&&(i=0);var n=this.gl;if(t){var s=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,n.bindFramebuffer(n.FRAMEBUFFER,s.framebuffer)),s.mipLevel!==i&&(t.dirtyId++,t.dirtyFormat++,s.mipLevel=i),s.dirtyId!==t.dirtyId&&(s.dirtyId=t.dirtyId,s.dirtyFormat!==t.dirtyFormat?(s.dirtyFormat=t.dirtyFormat,s.dirtySize=t.dirtySize,this.updateFramebuffer(t,i)):s.dirtySize!==t.dirtySize&&(s.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var a=0;a>i,u=e.height>>i,l=h/e.width;this.setViewport(e.x*l,e.y*l,h,u)}else{var h=t.width>>i,u=t.height>>i;this.setViewport(0,0,h,u)}}else this.current&&(this.current=null,n.bindFramebuffer(n.FRAMEBUFFER,null)),e?this.setViewport(e.x,e.y,e.width,e.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},r.prototype.setViewport=function(t,e,i,n){var s=this.viewport;t=Math.round(t),e=Math.round(e),i=Math.round(i),n=Math.round(n),(s.width!==i||s.height!==n||s.x!==t||s.y!==e)&&(s.x=t,s.y=e,s.width=i,s.height=n,this.gl.viewport(t,e,i,n))},Object.defineProperty(r.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),r.prototype.clear=function(t,e,i,n,s){s===void 0&&(s=Ht.COLOR|Ht.DEPTH);var a=this.gl;a.clearColor(t,e,i,n),a.clear(s)},r.prototype.initFramebuffer=function(t){var e=this.gl,i=new ln(e.createFramebuffer());return i.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=i,this.managedFramebuffers.push(t),t.disposeRunner.add(this),i},r.prototype.resizeFramebuffer=function(t){var e=this.gl,i=t.glFramebuffers[this.CONTEXT_UID];i.msaaBuffer&&(e.bindRenderbuffer(e.RENDERBUFFER,i.msaaBuffer),e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.RGBA8,t.width,t.height)),i.stencil&&(e.bindRenderbuffer(e.RENDERBUFFER,i.stencil),i.msaaBuffer?e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,e.DEPTH24_STENCIL8,t.width,t.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,t.width,t.height));var n=t.colorTextures,s=n.length;e.drawBuffers||(s=Math.min(s,1));for(var a=0;a1&&this.canMultisampleFramebuffer(t)?(n.msaaBuffer=n.msaaBuffer||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.msaaBuffer),i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.RGBA8,t.width,t.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.RENDERBUFFER,n.msaaBuffer)):n.msaaBuffer&&(i.deleteRenderbuffer(n.msaaBuffer),n.msaaBuffer=null,n.blitFramebuffer&&(n.blitFramebuffer.dispose(),n.blitFramebuffer=null));for(var o=[],h=0;h1&&i.drawBuffers(o),t.depthTexture){var f=this.writeDepthTexture;if(f){var c=t.depthTexture;this.renderer.texture.bind(c,0),i.framebufferTexture2D(i.FRAMEBUFFER,i.DEPTH_ATTACHMENT,i.TEXTURE_2D,c._glTextures[this.CONTEXT_UID].texture,e)}}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(n.stencil=n.stencil||i.createRenderbuffer(),i.bindRenderbuffer(i.RENDERBUFFER,n.stencil),n.msaaBuffer?i.renderbufferStorageMultisample(i.RENDERBUFFER,n.multisample,i.DEPTH24_STENCIL8,t.width,t.height):i.renderbufferStorage(i.RENDERBUFFER,i.DEPTH_STENCIL,t.width,t.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.DEPTH_STENCIL_ATTACHMENT,i.RENDERBUFFER,n.stencil)):n.stencil&&(i.deleteRenderbuffer(n.stencil),n.stencil=null)},r.prototype.canMultisampleFramebuffer=function(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture},r.prototype.detectSamples=function(t){var e=this.msaaSamples,i=F.NONE;if(t<=1||e===null)return i;for(var n=0;n=0&&this.managedFramebuffers.splice(s,1),t.disposeRunner.remove(this),e||(n.deleteFramebuffer(i.framebuffer),i.msaaBuffer&&n.deleteRenderbuffer(i.msaaBuffer),i.stencil&&n.deleteRenderbuffer(i.stencil)),i.blitFramebuffer&&i.blitFramebuffer.dispose()}},r.prototype.disposeAll=function(t){var e=this.managedFramebuffers;this.managedFramebuffers=[];for(var i=0;i=Z.WEBGL2&&(t=r.getContext("webgl2",{})),t||(t=r.getContext("webgl",{})||r.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),vt=t}return vt}var Ot;function _n(){if(!Ot){Ot=D.MEDIUM;var r=mn();if(r&&r.getShaderPrecisionFormat){var t=r.getShaderPrecisionFormat(r.FRAGMENT_SHADER,r.HIGH_FLOAT);Ot=t.precision?D.HIGH:D.MEDIUM}}return Ot}function Pr(r,t,e){if(r.substring(0,9)!=="precision"){var i=t;return t===D.HIGH&&e!==D.HIGH&&(i=D.MEDIUM),"precision "+i+` float; -`+r}else if(e!==D.HIGH&&r.substring(0,15)==="precision highp")return r.replace("precision highp","precision mediump");return r}var yn={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function fi(r){return yn[r]}var St=null,Ur={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function ci(r,t){if(!St){var e=Object.keys(Ur);St={};for(var i=0;i=J.WEBGL2&&(t=r.getContext("webgl2",{})),t||(t=r.getContext("webgl",{})||r.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),vt=t}return vt}var St;function _n(){if(!St){St=D.MEDIUM;var r=mn();if(r&&r.getShaderPrecisionFormat){var t=r.getShaderPrecisionFormat(r.FRAGMENT_SHADER,r.HIGH_FLOAT);St=t.precision?D.HIGH:D.MEDIUM}}return St}function Pr(r,t,e){if(r.substring(0,9)!=="precision"){var i=t;return t===D.HIGH&&e!==D.HIGH&&(i=D.MEDIUM),"precision "+i+` float; +`+r}else if(e!==D.HIGH&&r.substring(0,15)==="precision highp")return r.replace("precision highp","precision mediump");return r}var yn={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function fi(r){return yn[r]}var Gt=null,Ur={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function ci(r,t){if(!Gt){var e=Object.keys(Ur);Gt={};for(var i=0;i1e-4||Math.abs(s)>1e-4)&&(Math.abs(i)>1e-4||Math.abs(a)>1e-4)},t.prototype.testScissor=function(e){var i=e.maskObject;if(!i.isFastRect||!i.isFastRect()||t.isMatrixRotated(i.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);var n=e._scissorRectLocal;return n.width>0&&n.height>0},t.prototype.roundFrameToPixels=function(e,i,n,s,a){t.isMatrixRotated(a)||(a=a?Lr.copyFrom(a):Lr.identity(),a.translate(-n.x,-n.y).scale(s.width/n.width,s.height/n.height).translate(s.x,s.y),this.renderer.filter.transformAABB(a,e),e.fit(s),e.x=Math.round(e.x*i),e.y=Math.round(e.y*i),e.width=Math.round(e.width*i),e.height=Math.round(e.height*i))},t.prototype.push=function(e){e._scissorRectLocal||this.calcScissorRect(e);var i=this.renderer.gl;e._scissorRect||i.enable(i.SCISSOR_TEST),e._scissorCounter++,e._scissorRect=e._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(){var e=this.renderer.gl;this.getStackLength()>0?this._useCurrent():e.disable(e.SCISSOR_TEST)},t.prototype._useCurrent=function(){var e=this.maskStack[this.maskStack.length-1]._scissorRect,i;this.renderer.renderTexture.current?i=e.y:i=this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,i,e.width,e.height)},t}(pi),Mn=function(r){N(t,r);function t(e){var i=r.call(this,e)||this;return i.glConst=WebGLRenderingContext.STENCIL_TEST,i}return t.prototype.getStackLength=function(){var e=this.maskStack[this.maskStack.length-1];return e?e._stencilCounter:0},t.prototype.push=function(e){var i=e.maskObject,n=this.renderer.gl,s=e._stencilCounter;s===0&&(this.renderer.framebuffer.forceStencil(),n.clearStencil(0),n.clear(n.STENCIL_BUFFER_BIT),n.enable(n.STENCIL_TEST)),e._stencilCounter++,n.colorMask(!1,!1,!1,!1),n.stencilFunc(n.EQUAL,s,4294967295),n.stencilOp(n.KEEP,n.KEEP,n.INCR),i.renderable=!0,i.render(this.renderer),this.renderer.batch.flush(),i.renderable=!1,this._useCurrent()},t.prototype.pop=function(e){var i=this.renderer.gl;this.getStackLength()===0?i.disable(i.STENCIL_TEST):(i.colorMask(!1,!1,!1,!1),i.stencilOp(i.KEEP,i.KEEP,i.DECR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,this._useCurrent())},t.prototype._useCurrent=function(){var e=this.renderer.gl;e.colorMask(!0,!0,!0,!0),e.stencilFunc(e.EQUAL,this.getStackLength(),4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP)},t}(pi),kn=function(){function r(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new H,this.transform=null}return r.prototype.update=function(t,e,i,n){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=e||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,i,n),this.transform&&this.projectionMatrix.append(this.transform);var s=this.renderer;s.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,s.globalUniforms.update(),s.shader.shader&&s.shader.syncUniformGroup(s.shader.shader.uniforms.globals)},r.prototype.calculateProjection=function(t,e,i,n){var s=this.projectionMatrix,a=n?-1:1;s.identity(),s.a=1/e.width*2,s.d=a*(1/e.height*2),s.tx=-1-e.x*s.a,s.ty=-a-e.y*s.d},r.prototype.setTransform=function(t){},r.prototype.destroy=function(){this.renderer=null},r}(),rt=new U,_t=new U,Xn=function(){function r(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new U,this.destinationFrame=new U,this.viewportFrame=new U}return r.prototype.bind=function(t,e,i){t===void 0&&(t=null);var n=this.renderer;this.current=t;var s,a,o;t?(s=t.baseTexture,o=s.resolution,e||(rt.width=t.frame.width,rt.height=t.frame.height,e=rt),i||(_t.x=t.frame.x,_t.y=t.frame.y,_t.width=e.width,_t.height=e.height,i=_t),a=s.framebuffer):(o=n.resolution,e||(rt.width=n.screen.width,rt.height=n.screen.height,e=rt),i||(i=rt,i.width=e.width,i.height=e.height));var h=this.viewportFrame;h.x=i.x*o,h.y=i.y*o,h.width=i.width*o,h.height=i.height*o,t||(h.y=n.view.height-(h.y+h.height)),h.ceil(),this.renderer.framebuffer.bind(a,h),this.renderer.projection.update(i,e,o,!a),t?this.renderer.mask.setMaskStack(s.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(e),this.destinationFrame.copyFrom(i)},r.prototype.clear=function(t,e){this.current?t=t||this.current.baseTexture.clearColor:t=t||this.clearColor;var i=this.destinationFrame,n=this.current?this.current.baseTexture:this.renderer.screen,s=i.width!==n.width||i.height!==n.height;if(s){var a=this.viewportFrame,o=a.x,h=a.y,u=a.width,l=a.height;o=Math.round(o),h=Math.round(h),u=Math.round(u),l=Math.round(l),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(o,h,u,l)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],e),s&&this.renderer.scissor.pop()},r.prototype.resize=function(){this.bind(null)},r.prototype.reset=function(){this.bind(null)},r.prototype.destroy=function(){this.renderer=null},r}();function Hn(r,t,e,i,n){e.buffer.update(n)}var Vn={float:` +`,Fr=new H,On=function(){function r(t,e){this._texture=t,this.mapCoord=new H,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=typeof e=="undefined"?.5:e,this.isSimple=!1}return Object.defineProperty(r.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture=t,this._textureID=-1},enumerable:!1,configurable:!0}),r.prototype.multiplyUvs=function(t,e){e===void 0&&(e=t);for(var i=this.mapCoord,n=0;n1e-4||Math.abs(s)>1e-4)&&(Math.abs(i)>1e-4||Math.abs(a)>1e-4)},t.prototype.testScissor=function(e){var i=e.maskObject;if(!i.isFastRect||!i.isFastRect()||t.isMatrixRotated(i.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);var n=e._scissorRectLocal;return n.width>0&&n.height>0},t.prototype.roundFrameToPixels=function(e,i,n,s,a){t.isMatrixRotated(a)||(a=a?Lr.copyFrom(a):Lr.identity(),a.translate(-n.x,-n.y).scale(s.width/n.width,s.height/n.height).translate(s.x,s.y),this.renderer.filter.transformAABB(a,e),e.fit(s),e.x=Math.round(e.x*i),e.y=Math.round(e.y*i),e.width=Math.round(e.width*i),e.height=Math.round(e.height*i))},t.prototype.push=function(e){e._scissorRectLocal||this.calcScissorRect(e);var i=this.renderer.gl;e._scissorRect||i.enable(i.SCISSOR_TEST),e._scissorCounter++,e._scissorRect=e._scissorRectLocal,this._useCurrent()},t.prototype.pop=function(){var e=this.renderer.gl;this.getStackLength()>0?this._useCurrent():e.disable(e.SCISSOR_TEST)},t.prototype._useCurrent=function(){var e=this.maskStack[this.maskStack.length-1]._scissorRect,i;this.renderer.renderTexture.current?i=e.y:i=this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,i,e.width,e.height)},t}(pi),Mn=function(r){N(t,r);function t(e){var i=r.call(this,e)||this;return i.glConst=WebGLRenderingContext.STENCIL_TEST,i}return t.prototype.getStackLength=function(){var e=this.maskStack[this.maskStack.length-1];return e?e._stencilCounter:0},t.prototype.push=function(e){var i=e.maskObject,n=this.renderer.gl,s=e._stencilCounter;s===0&&(this.renderer.framebuffer.forceStencil(),n.clearStencil(0),n.clear(n.STENCIL_BUFFER_BIT),n.enable(n.STENCIL_TEST)),e._stencilCounter++,n.colorMask(!1,!1,!1,!1),n.stencilFunc(n.EQUAL,s,4294967295),n.stencilOp(n.KEEP,n.KEEP,n.INCR),i.renderable=!0,i.render(this.renderer),this.renderer.batch.flush(),i.renderable=!1,this._useCurrent()},t.prototype.pop=function(e){var i=this.renderer.gl;this.getStackLength()===0?i.disable(i.STENCIL_TEST):(i.colorMask(!1,!1,!1,!1),i.stencilOp(i.KEEP,i.KEEP,i.DECR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,this._useCurrent())},t.prototype._useCurrent=function(){var e=this.renderer.gl;e.colorMask(!0,!0,!0,!0),e.stencilFunc(e.EQUAL,this.getStackLength(),4294967295),e.stencilOp(e.KEEP,e.KEEP,e.KEEP)},t}(pi),kn=function(){function r(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new H,this.transform=null}return r.prototype.update=function(t,e,i,n){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=e||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,i,n),this.transform&&this.projectionMatrix.append(this.transform);var s=this.renderer;s.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,s.globalUniforms.update(),s.shader.shader&&s.shader.syncUniformGroup(s.shader.shader.uniforms.globals)},r.prototype.calculateProjection=function(t,e,i,n){var s=this.projectionMatrix,a=n?-1:1;s.identity(),s.a=1/e.width*2,s.d=a*(1/e.height*2),s.tx=-1-e.x*s.a,s.ty=-a-e.y*s.d},r.prototype.setTransform=function(t){},r.prototype.destroy=function(){this.renderer=null},r}(),it=new U,_t=new U,Xn=function(){function r(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new U,this.destinationFrame=new U,this.viewportFrame=new U}return r.prototype.bind=function(t,e,i){t===void 0&&(t=null);var n=this.renderer;this.current=t;var s,a,o;t?(s=t.baseTexture,o=s.resolution,e||(it.width=t.frame.width,it.height=t.frame.height,e=it),i||(_t.x=t.frame.x,_t.y=t.frame.y,_t.width=e.width,_t.height=e.height,i=_t),a=s.framebuffer):(o=n.resolution,e||(it.width=n.screen.width,it.height=n.screen.height,e=it),i||(i=it,i.width=e.width,i.height=e.height));var h=this.viewportFrame;h.x=i.x*o,h.y=i.y*o,h.width=i.width*o,h.height=i.height*o,t||(h.y=n.view.height-(h.y+h.height)),h.ceil(),this.renderer.framebuffer.bind(a,h),this.renderer.projection.update(i,e,o,!a),t?this.renderer.mask.setMaskStack(s.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(e),this.destinationFrame.copyFrom(i)},r.prototype.clear=function(t,e){this.current?t=t||this.current.baseTexture.clearColor:t=t||this.clearColor;var i=this.destinationFrame,n=this.current?this.current.baseTexture:this.renderer.screen,s=i.width!==n.width||i.height!==n.height;if(s){var a=this.viewportFrame,o=a.x,h=a.y,u=a.width,l=a.height;o=Math.round(o),h=Math.round(h),u=Math.round(u),l=Math.round(l),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(o,h,u,l)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],e),s&&this.renderer.scissor.pop()},r.prototype.resize=function(){this.bind(null)},r.prototype.reset=function(){this.bind(null)},r.prototype.destroy=function(){this.renderer=null},r}();function Hn(r,t,e,i,n){e.buffer.update(n)}var Vn={float:` data[offset] = v; `,vec2:` data[offset] = v[0]; @@ -454,7 +454,7 @@ void main(void) `)}}return a.push(` renderer.buffer.update(buffer); `),{size:s,syncFunc:new Function("ud","uv","renderer","syncData","buffer",a.join(` -`))}}var Wn=function(){function r(t,e){this.program=t,this.uniformData=e,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return r.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},r}();function $n(r,t){for(var e={},i=t.getProgramParameter(r,t.ACTIVE_ATTRIBUTES),n=0;nf?1:-1});for(var a=0;a>1,i++;this.stateId=t.data}for(var i=0;ithis.checkCountMax&&(this.checkCount=0,this.run())))},r.prototype.run=function(){for(var t=this.renderer.texture,e=t.managedTextures,i=!1,n=0;nthis.maxIdle&&(t.destroyTexture(s,!0),e[n]=null,i=!0)}if(i){for(var a=0,n=0;n=0;n--)this.unload(t.children[n])},r.prototype.destroy=function(){this.renderer=null},r}();function os(r){var t,e,i,n,s,a,o,h,u,l,f,c,d,p,m,v,y,R,C,M,k,B,T;return"WebGL2RenderingContext"in globalThis&&r instanceof globalThis.WebGL2RenderingContext?T=(t={},t[I.UNSIGNED_BYTE]=(e={},e[_.RGBA]=r.RGBA8,e[_.RGB]=r.RGB8,e[_.RG]=r.RG8,e[_.RED]=r.R8,e[_.RGBA_INTEGER]=r.RGBA8UI,e[_.RGB_INTEGER]=r.RGB8UI,e[_.RG_INTEGER]=r.RG8UI,e[_.RED_INTEGER]=r.R8UI,e[_.ALPHA]=r.ALPHA,e[_.LUMINANCE]=r.LUMINANCE,e[_.LUMINANCE_ALPHA]=r.LUMINANCE_ALPHA,e),t[I.BYTE]=(i={},i[_.RGBA]=r.RGBA8_SNORM,i[_.RGB]=r.RGB8_SNORM,i[_.RG]=r.RG8_SNORM,i[_.RED]=r.R8_SNORM,i[_.RGBA_INTEGER]=r.RGBA8I,i[_.RGB_INTEGER]=r.RGB8I,i[_.RG_INTEGER]=r.RG8I,i[_.RED_INTEGER]=r.R8I,i),t[I.UNSIGNED_SHORT]=(n={},n[_.RGBA_INTEGER]=r.RGBA16UI,n[_.RGB_INTEGER]=r.RGB16UI,n[_.RG_INTEGER]=r.RG16UI,n[_.RED_INTEGER]=r.R16UI,n[_.DEPTH_COMPONENT]=r.DEPTH_COMPONENT16,n),t[I.SHORT]=(s={},s[_.RGBA_INTEGER]=r.RGBA16I,s[_.RGB_INTEGER]=r.RGB16I,s[_.RG_INTEGER]=r.RG16I,s[_.RED_INTEGER]=r.R16I,s),t[I.UNSIGNED_INT]=(a={},a[_.RGBA_INTEGER]=r.RGBA32UI,a[_.RGB_INTEGER]=r.RGB32UI,a[_.RG_INTEGER]=r.RG32UI,a[_.RED_INTEGER]=r.R32UI,a[_.DEPTH_COMPONENT]=r.DEPTH_COMPONENT24,a),t[I.INT]=(o={},o[_.RGBA_INTEGER]=r.RGBA32I,o[_.RGB_INTEGER]=r.RGB32I,o[_.RG_INTEGER]=r.RG32I,o[_.RED_INTEGER]=r.R32I,o),t[I.FLOAT]=(h={},h[_.RGBA]=r.RGBA32F,h[_.RGB]=r.RGB32F,h[_.RG]=r.RG32F,h[_.RED]=r.R32F,h[_.DEPTH_COMPONENT]=r.DEPTH_COMPONENT32F,h),t[I.HALF_FLOAT]=(u={},u[_.RGBA]=r.RGBA16F,u[_.RGB]=r.RGB16F,u[_.RG]=r.RG16F,u[_.RED]=r.R16F,u),t[I.UNSIGNED_SHORT_5_6_5]=(l={},l[_.RGB]=r.RGB565,l),t[I.UNSIGNED_SHORT_4_4_4_4]=(f={},f[_.RGBA]=r.RGBA4,f),t[I.UNSIGNED_SHORT_5_5_5_1]=(c={},c[_.RGBA]=r.RGB5_A1,c),t[I.UNSIGNED_INT_2_10_10_10_REV]=(d={},d[_.RGBA]=r.RGB10_A2,d[_.RGBA_INTEGER]=r.RGB10_A2UI,d),t[I.UNSIGNED_INT_10F_11F_11F_REV]=(p={},p[_.RGB]=r.R11F_G11F_B10F,p),t[I.UNSIGNED_INT_5_9_9_9_REV]=(m={},m[_.RGB]=r.RGB9_E5,m),t[I.UNSIGNED_INT_24_8]=(v={},v[_.DEPTH_STENCIL]=r.DEPTH24_STENCIL8,v),t[I.FLOAT_32_UNSIGNED_INT_24_8_REV]=(y={},y[_.DEPTH_STENCIL]=r.DEPTH32F_STENCIL8,y),t):T=(R={},R[I.UNSIGNED_BYTE]=(C={},C[_.RGBA]=r.RGBA,C[_.RGB]=r.RGB,C[_.ALPHA]=r.ALPHA,C[_.LUMINANCE]=r.LUMINANCE,C[_.LUMINANCE_ALPHA]=r.LUMINANCE_ALPHA,C),R[I.UNSIGNED_SHORT_5_6_5]=(M={},M[_.RGB]=r.RGB,M),R[I.UNSIGNED_SHORT_4_4_4_4]=(k={},k[_.RGBA]=r.RGBA,k),R[I.UNSIGNED_SHORT_5_5_5_1]=(B={},B[_.RGBA]=r.RGBA,B),R),T}var ae=function(){function r(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=I.UNSIGNED_BYTE,this.internalFormat=_.RGBA,this.samplerType=0}return r}(),hs=function(){function r(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new L,this.hasIntegerTextures=!1}return r.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=os(t);var e=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=e;for(var i=0;i=0;--a){var o=i[a];if(o){var h=o._glTextures[s];h.samplerType!==Ht.FLOAT&&this.renderer.texture.unbind(o)}}},r.prototype.initTexture=function(t){var e=new ae(this.gl.createTexture());return e.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=e,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),e},r.prototype.initTextureType=function(t,e){var i,n;e.internalFormat=(n=(i=this.internalFormats[t.type])===null||i===void 0?void 0:i[t.format])!==null&&n!==void 0?n:t.format,this.webGLVersion===2&&t.type===I.HALF_FLOAT?e.type=this.gl.HALF_FLOAT:e.type=t.type},r.prototype.updateTexture=function(t){var e=t._glTextures[this.CONTEXT_UID];if(!!e){var i=this.renderer;if(this.initTextureType(t,e),t.resource&&t.resource.upload(i,t,e))e.samplerType!==Ht.FLOAT&&(this.hasIntegerTextures=!0);else{var n=t.realWidth,s=t.realHeight,a=i.gl;(e.width!==n||e.height!==s||e.dirtyId<0)&&(e.width=n,e.height=s,a.texImage2D(t.target,0,e.internalFormat,n,s,0,t.format,e.type,null))}t.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(t),e.dirtyId=t.dirtyId}},r.prototype.destroyTexture=function(t,e){var i=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),i.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!e)){var n=this.managedTextures.indexOf(t);n!==-1&&kt(this.managedTextures,n,1)}},r.prototype.updateTextureStyle=function(t){var e=t._glTextures[this.CONTEXT_UID];!e||((t.mipmap===ft.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?e.mipmap=!1:e.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?e.wrapMode=ve.CLAMP:e.wrapMode=t.wrapMode,t.resource&&t.resource.style(this.renderer,t,e)||this.setStyle(t,e),e.dirtyStyleId=t.dirtyStyleId)},r.prototype.setStyle=function(t,e){var i=this.gl;if(e.mipmap&&t.mipmap!==ft.ON_MANUAL&&i.generateMipmap(t.target),i.texParameteri(t.target,i.TEXTURE_WRAP_S,e.wrapMode),i.texParameteri(t.target,i.TEXTURE_WRAP_T,e.wrapMode),e.mipmap){i.texParameteri(t.target,i.TEXTURE_MIN_FILTER,t.scaleMode===q.LINEAR?i.LINEAR_MIPMAP_LINEAR:i.NEAREST_MIPMAP_NEAREST);var n=this.renderer.context.extensions.anisotropicFiltering;if(n&&t.anisotropicLevel>0&&t.scaleMode===q.LINEAR){var s=Math.min(t.anisotropicLevel,i.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT));i.texParameterf(t.target,n.TEXTURE_MAX_ANISOTROPY_EXT,s)}}else i.texParameteri(t.target,i.TEXTURE_MIN_FILTER,t.scaleMode===q.LINEAR?i.LINEAR:i.NEAREST);i.texParameteri(t.target,i.TEXTURE_MAG_FILTER,t.scaleMode===q.LINEAR?i.LINEAR:i.NEAREST)},r.prototype.destroy=function(){this.renderer=null},r}(),oe=new H,us=function(r){N(t,r);function t(e,i){e===void 0&&(e=Tt.UNKNOWN);var n=r.call(this)||this;return i=Object.assign({},x.RENDER_OPTIONS,i),n.options=i,n.type=e,n.screen=new U(0,0,i.width,i.height),n.view=i.view||document.createElement("canvas"),n.resolution=i.resolution||x.RESOLUTION,n.useContextAlpha=i.useContextAlpha,n.autoDensity=!!i.autoDensity,n.preserveDrawingBuffer=i.preserveDrawingBuffer,n.clearBeforeRender=i.clearBeforeRender,n._backgroundColor=0,n._backgroundColorRgba=[0,0,0,1],n._backgroundColorString="#000000",n.backgroundColor=i.backgroundColor||n._backgroundColor,n.backgroundAlpha=i.backgroundAlpha,i.transparent!==void 0&&(Rt("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),n.useContextAlpha=i.transparent,n.backgroundAlpha=i.transparent?0:1),n._lastObjectRendered=null,n.plugins={},n}return t.prototype.initPlugins=function(e){for(var i in e)this.plugins[i]=new e[i](this)},Object.defineProperty(t.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(e,i){this.view.width=Math.round(e*this.resolution),this.view.height=Math.round(i*this.resolution);var n=this.view.width/this.resolution,s=this.view.height/this.resolution;this.screen.width=n,this.screen.height=s,this.autoDensity&&(this.view.style.width=n+"px",this.view.style.height=s+"px"),this.emit("resize",n,s)},t.prototype.generateTexture=function(e,i,n,s){i===void 0&&(i={}),typeof i=="number"&&(Rt("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),i={scaleMode:i,resolution:n,region:s});var a=i.region,o=Vi(i,["region"]);s=a||e.getLocalBounds(null,!0),s.width===0&&(s.width=1),s.height===0&&(s.height=1);var h=Ce.create(Te({width:s.width,height:s.height},o));return oe.tx=-s.x,oe.ty=-s.y,this.render(e,{renderTexture:h,clear:!1,transform:oe,skipUpdateTransform:!!e.parent}),h},t.prototype.destroy=function(e){for(var i in this.plugins)this.plugins[i].destroy(),this.plugins[i]=null;e&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var n=this;n.plugins=null,n.type=Tt.UNKNOWN,n.view=null,n.screen=null,n._tempDisplayObjectParent=null,n.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._backgroundColorString=Ui(e),Pi(e,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(e){this._backgroundColorRgba[3]=e},enumerable:!1,configurable:!0}),t}(Wt),ls=function(){function r(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return r}(),fs=function(){function r(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return r.prototype.destroy=function(){this.renderer=null},r.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},r.prototype.bind=function(t){var e=this,i=e.gl,n=e.CONTEXT_UID,s=t._glBuffers[n]||this.createGLBuffer(t);i.bindBuffer(t.type,s.buffer)},r.prototype.bindBufferBase=function(t,e){var i=this,n=i.gl,s=i.CONTEXT_UID;if(this.boundBufferBases[e]!==t){var a=t._glBuffers[s]||this.createGLBuffer(t);this.boundBufferBases[e]=t,n.bindBufferBase(n.UNIFORM_BUFFER,e,a.buffer)}},r.prototype.bindBufferRange=function(t,e,i){var n=this,s=n.gl,a=n.CONTEXT_UID;i=i||0;var o=t._glBuffers[a]||this.createGLBuffer(t);s.bindBufferRange(s.UNIFORM_BUFFER,e||0,o.buffer,i*256,256)},r.prototype.update=function(t){var e=this,i=e.gl,n=e.CONTEXT_UID,s=t._glBuffers[n];if(t._updateID!==s.updateID)if(s.updateID=t._updateID,i.bindBuffer(t.type,s.buffer),s.byteLength>=t.data.byteLength)i.bufferSubData(t.type,0,t.data);else{var a=t.static?i.STATIC_DRAW:i.DYNAMIC_DRAW;s.byteLength=t.data.byteLength,i.bufferData(t.type,t.data,a)}},r.prototype.dispose=function(t,e){if(!!this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var i=t._glBuffers[this.CONTEXT_UID],n=this.gl;t.disposeRunner.remove(this),i&&(e||n.deleteBuffer(i.buffer),delete t._glBuffers[this.CONTEXT_UID])}},r.prototype.disposeAll=function(t){for(var e=Object.keys(this.managedBuffers),i=0;i=F.HIGH?this.multisample=F.HIGH:i>=F.MEDIUM?this.multisample=F.MEDIUM:i>=F.LOW?this.multisample=F.LOW:this.multisample=F.NONE},t.prototype.addSystem=function(e,i){var n=new e(this);if(this[i])throw new Error('Whoops! The name "'+i+'" is already in use');this[i]=n;for(var s in this.runners)this.runners[s].add(n);return this},t.prototype.render=function(e,i){var n,s,a,o;if(i&&(i instanceof Ce?(Rt("6.0.0","Renderer#render arguments changed, use options instead."),n=i,s=arguments[2],a=arguments[3],o=arguments[4]):(n=i.renderTexture,s=i.clear,a=i.transform,o=i.skipUpdateTransform)),this.renderingToScreen=!n,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=a,!this.context.isLost){if(n||(this._lastObjectRendered=e),!o){var h=e.enableTempParent();e.updateTransform(),e.disableTempParent(h)}this.renderTexture.bind(n),this.batch.currentRenderer.start(),(s!==void 0?s:this.clearBeforeRender)&&this.renderTexture.clear(),e.render(this),this.batch.currentRenderer.flush(),n&&n.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},t.prototype.generateTexture=function(e,i,n,s){i===void 0&&(i={});var a=r.prototype.generateTexture.call(this,e,i,n,s);return this.framebuffer.blit(),a},t.prototype.resize=function(e,i){r.prototype.resize.call(this,e,i),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(e){this.runners.destroy.emit();for(var i in this.runners)this.runners[i].destroy();r.prototype.destroy.call(this,e),this.gl=null},Object.defineProperty(t.prototype,"extract",{get:function(){return Rt("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(e,i){t.__plugins=t.__plugins||{},t.__plugins[e]=i},t}(us);function ds(r){return cs.create(r)}var ps=function(){function r(){this.texArray=null,this.blend=0,this.type=bt.TRIANGLES,this.start=0,this.size=0,this.data=null}return r}(),vs=function(){function r(){this.elements=[],this.ids=[],this.count=0}return r.prototype.clear=function(){for(var t=0;tthis.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)},t.prototype.buildTexturesAndDrawCalls=function(){var e=this,i=e._bufferedTextures,n=e.MAX_TEXTURES,s=t._textureArrayPool,a=this.renderer.batch,o=this._tempBoundTextures,h=this.renderer.textureGC.count,u=++L._globalBatch,l=0,f=s[0],c=0;a.copyBoundTextures(o,n);for(var d=0;d=n&&(a.boundArray(f,o,u,n),this.buildDrawCalls(f,c,d),c=d,f=s[++l],++u),p._batchEnabled=u,p.touched=h,f.elements[f.count++]=p)}f.count>0&&(a.boundArray(f,o,u,n),this.buildDrawCalls(f,c,this._bufferSize),++l,++u);for(var d=0;df?1:-1});for(var a=0;a>1,i++;this.stateId=t.data}for(var i=0;ithis.checkCountMax&&(this.checkCount=0,this.run())))},r.prototype.run=function(){for(var t=this.renderer.texture,e=t.managedTextures,i=!1,n=0;nthis.maxIdle&&(t.destroyTexture(s,!0),e[n]=null,i=!0)}if(i){for(var a=0,n=0;n=0;n--)this.unload(t.children[n])},r.prototype.destroy=function(){this.renderer=null},r}();function os(r){var t,e,i,n,s,a,o,h,u,l,f,c,d,p,m,v,y,R,C,M,k,B,T;return"WebGL2RenderingContext"in globalThis&&r instanceof globalThis.WebGL2RenderingContext?T=(t={},t[I.UNSIGNED_BYTE]=(e={},e[_.RGBA]=r.RGBA8,e[_.RGB]=r.RGB8,e[_.RG]=r.RG8,e[_.RED]=r.R8,e[_.RGBA_INTEGER]=r.RGBA8UI,e[_.RGB_INTEGER]=r.RGB8UI,e[_.RG_INTEGER]=r.RG8UI,e[_.RED_INTEGER]=r.R8UI,e[_.ALPHA]=r.ALPHA,e[_.LUMINANCE]=r.LUMINANCE,e[_.LUMINANCE_ALPHA]=r.LUMINANCE_ALPHA,e),t[I.BYTE]=(i={},i[_.RGBA]=r.RGBA8_SNORM,i[_.RGB]=r.RGB8_SNORM,i[_.RG]=r.RG8_SNORM,i[_.RED]=r.R8_SNORM,i[_.RGBA_INTEGER]=r.RGBA8I,i[_.RGB_INTEGER]=r.RGB8I,i[_.RG_INTEGER]=r.RG8I,i[_.RED_INTEGER]=r.R8I,i),t[I.UNSIGNED_SHORT]=(n={},n[_.RGBA_INTEGER]=r.RGBA16UI,n[_.RGB_INTEGER]=r.RGB16UI,n[_.RG_INTEGER]=r.RG16UI,n[_.RED_INTEGER]=r.R16UI,n[_.DEPTH_COMPONENT]=r.DEPTH_COMPONENT16,n),t[I.SHORT]=(s={},s[_.RGBA_INTEGER]=r.RGBA16I,s[_.RGB_INTEGER]=r.RGB16I,s[_.RG_INTEGER]=r.RG16I,s[_.RED_INTEGER]=r.R16I,s),t[I.UNSIGNED_INT]=(a={},a[_.RGBA_INTEGER]=r.RGBA32UI,a[_.RGB_INTEGER]=r.RGB32UI,a[_.RG_INTEGER]=r.RG32UI,a[_.RED_INTEGER]=r.R32UI,a[_.DEPTH_COMPONENT]=r.DEPTH_COMPONENT24,a),t[I.INT]=(o={},o[_.RGBA_INTEGER]=r.RGBA32I,o[_.RGB_INTEGER]=r.RGB32I,o[_.RG_INTEGER]=r.RG32I,o[_.RED_INTEGER]=r.R32I,o),t[I.FLOAT]=(h={},h[_.RGBA]=r.RGBA32F,h[_.RGB]=r.RGB32F,h[_.RG]=r.RG32F,h[_.RED]=r.R32F,h[_.DEPTH_COMPONENT]=r.DEPTH_COMPONENT32F,h),t[I.HALF_FLOAT]=(u={},u[_.RGBA]=r.RGBA16F,u[_.RGB]=r.RGB16F,u[_.RG]=r.RG16F,u[_.RED]=r.R16F,u),t[I.UNSIGNED_SHORT_5_6_5]=(l={},l[_.RGB]=r.RGB565,l),t[I.UNSIGNED_SHORT_4_4_4_4]=(f={},f[_.RGBA]=r.RGBA4,f),t[I.UNSIGNED_SHORT_5_5_5_1]=(c={},c[_.RGBA]=r.RGB5_A1,c),t[I.UNSIGNED_INT_2_10_10_10_REV]=(d={},d[_.RGBA]=r.RGB10_A2,d[_.RGBA_INTEGER]=r.RGB10_A2UI,d),t[I.UNSIGNED_INT_10F_11F_11F_REV]=(p={},p[_.RGB]=r.R11F_G11F_B10F,p),t[I.UNSIGNED_INT_5_9_9_9_REV]=(m={},m[_.RGB]=r.RGB9_E5,m),t[I.UNSIGNED_INT_24_8]=(v={},v[_.DEPTH_STENCIL]=r.DEPTH24_STENCIL8,v),t[I.FLOAT_32_UNSIGNED_INT_24_8_REV]=(y={},y[_.DEPTH_STENCIL]=r.DEPTH32F_STENCIL8,y),t):T=(R={},R[I.UNSIGNED_BYTE]=(C={},C[_.RGBA]=r.RGBA,C[_.RGB]=r.RGB,C[_.ALPHA]=r.ALPHA,C[_.LUMINANCE]=r.LUMINANCE,C[_.LUMINANCE_ALPHA]=r.LUMINANCE_ALPHA,C),R[I.UNSIGNED_SHORT_5_6_5]=(M={},M[_.RGB]=r.RGB,M),R[I.UNSIGNED_SHORT_4_4_4_4]=(k={},k[_.RGBA]=r.RGBA,k),R[I.UNSIGNED_SHORT_5_5_5_1]=(B={},B[_.RGBA]=r.RGBA,B),R),T}var ae=function(){function r(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=I.UNSIGNED_BYTE,this.internalFormat=_.RGBA,this.samplerType=0}return r}(),hs=function(){function r(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new L,this.hasIntegerTextures=!1}return r.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=os(t);var e=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=e;for(var i=0;i=0;--a){var o=i[a];if(o){var h=o._glTextures[s];h.samplerType!==Vt.FLOAT&&this.renderer.texture.unbind(o)}}},r.prototype.initTexture=function(t){var e=new ae(this.gl.createTexture());return e.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=e,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),e},r.prototype.initTextureType=function(t,e){var i,n;e.internalFormat=(n=(i=this.internalFormats[t.type])===null||i===void 0?void 0:i[t.format])!==null&&n!==void 0?n:t.format,this.webGLVersion===2&&t.type===I.HALF_FLOAT?e.type=this.gl.HALF_FLOAT:e.type=t.type},r.prototype.updateTexture=function(t){var e=t._glTextures[this.CONTEXT_UID];if(!!e){var i=this.renderer;if(this.initTextureType(t,e),t.resource&&t.resource.upload(i,t,e))e.samplerType!==Vt.FLOAT&&(this.hasIntegerTextures=!0);else{var n=t.realWidth,s=t.realHeight,a=i.gl;(e.width!==n||e.height!==s||e.dirtyId<0)&&(e.width=n,e.height=s,a.texImage2D(t.target,0,e.internalFormat,n,s,0,t.format,e.type,null))}t.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(t),e.dirtyId=t.dirtyId}},r.prototype.destroyTexture=function(t,e){var i=this.gl;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),i.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!e)){var n=this.managedTextures.indexOf(t);n!==-1&&Xt(this.managedTextures,n,1)}},r.prototype.updateTextureStyle=function(t){var e=t._glTextures[this.CONTEXT_UID];!e||((t.mipmap===ft.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?e.mipmap=!1:e.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?e.wrapMode=ve.CLAMP:e.wrapMode=t.wrapMode,t.resource&&t.resource.style(this.renderer,t,e)||this.setStyle(t,e),e.dirtyStyleId=t.dirtyStyleId)},r.prototype.setStyle=function(t,e){var i=this.gl;if(e.mipmap&&t.mipmap!==ft.ON_MANUAL&&i.generateMipmap(t.target),i.texParameteri(t.target,i.TEXTURE_WRAP_S,e.wrapMode),i.texParameteri(t.target,i.TEXTURE_WRAP_T,e.wrapMode),e.mipmap){i.texParameteri(t.target,i.TEXTURE_MIN_FILTER,t.scaleMode===Y.LINEAR?i.LINEAR_MIPMAP_LINEAR:i.NEAREST_MIPMAP_NEAREST);var n=this.renderer.context.extensions.anisotropicFiltering;if(n&&t.anisotropicLevel>0&&t.scaleMode===Y.LINEAR){var s=Math.min(t.anisotropicLevel,i.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT));i.texParameterf(t.target,n.TEXTURE_MAX_ANISOTROPY_EXT,s)}}else i.texParameteri(t.target,i.TEXTURE_MIN_FILTER,t.scaleMode===Y.LINEAR?i.LINEAR:i.NEAREST);i.texParameteri(t.target,i.TEXTURE_MAG_FILTER,t.scaleMode===Y.LINEAR?i.LINEAR:i.NEAREST)},r.prototype.destroy=function(){this.renderer=null},r}(),oe=new H,us=function(r){N(t,r);function t(e,i){e===void 0&&(e=Tt.UNKNOWN);var n=r.call(this)||this;return i=Object.assign({},x.RENDER_OPTIONS,i),n.options=i,n.type=e,n.screen=new U(0,0,i.width,i.height),n.view=i.view||document.createElement("canvas"),n.resolution=i.resolution||x.RESOLUTION,n.useContextAlpha=i.useContextAlpha,n.autoDensity=!!i.autoDensity,n.preserveDrawingBuffer=i.preserveDrawingBuffer,n.clearBeforeRender=i.clearBeforeRender,n._backgroundColor=0,n._backgroundColorRgba=[0,0,0,1],n._backgroundColorString="#000000",n.backgroundColor=i.backgroundColor||n._backgroundColor,n.backgroundAlpha=i.backgroundAlpha,i.transparent!==void 0&&(Rt("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),n.useContextAlpha=i.transparent,n.backgroundAlpha=i.transparent?0:1),n._lastObjectRendered=null,n.plugins={},n}return t.prototype.initPlugins=function(e){for(var i in e)this.plugins[i]=new e[i](this)},Object.defineProperty(t.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),t.prototype.resize=function(e,i){this.view.width=Math.round(e*this.resolution),this.view.height=Math.round(i*this.resolution);var n=this.view.width/this.resolution,s=this.view.height/this.resolution;this.screen.width=n,this.screen.height=s,this.autoDensity&&(this.view.style.width=n+"px",this.view.style.height=s+"px"),this.emit("resize",n,s)},t.prototype.generateTexture=function(e,i,n,s){i===void 0&&(i={}),typeof i=="number"&&(Rt("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),i={scaleMode:i,resolution:n,region:s});var a=i.region,o=Vi(i,["region"]);s=a||e.getLocalBounds(null,!0),s.width===0&&(s.width=1),s.height===0&&(s.height=1);var h=Ce.create(Te({width:s.width,height:s.height},o));return oe.tx=-s.x,oe.ty=-s.y,this.render(e,{renderTexture:h,clear:!1,transform:oe,skipUpdateTransform:!!e.parent}),h},t.prototype.destroy=function(e){for(var i in this.plugins)this.plugins[i].destroy(),this.plugins[i]=null;e&&this.view.parentNode&&this.view.parentNode.removeChild(this.view);var n=this;n.plugins=null,n.type=Tt.UNKNOWN,n.view=null,n.screen=null,n._tempDisplayObjectParent=null,n.options=null,this._backgroundColorRgba=null,this._backgroundColorString=null,this._lastObjectRendered=null},Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._backgroundColorString=Ui(e),Pi(e,this._backgroundColorRgba)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundAlpha",{get:function(){return this._backgroundColorRgba[3]},set:function(e){this._backgroundColorRgba[3]=e},enumerable:!1,configurable:!0}),t}(Wt),ls=function(){function r(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}return r}(),fs=function(){function r(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}return r.prototype.destroy=function(){this.renderer=null},r.prototype.contextChange=function(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID},r.prototype.bind=function(t){var e=this,i=e.gl,n=e.CONTEXT_UID,s=t._glBuffers[n]||this.createGLBuffer(t);i.bindBuffer(t.type,s.buffer)},r.prototype.bindBufferBase=function(t,e){var i=this,n=i.gl,s=i.CONTEXT_UID;if(this.boundBufferBases[e]!==t){var a=t._glBuffers[s]||this.createGLBuffer(t);this.boundBufferBases[e]=t,n.bindBufferBase(n.UNIFORM_BUFFER,e,a.buffer)}},r.prototype.bindBufferRange=function(t,e,i){var n=this,s=n.gl,a=n.CONTEXT_UID;i=i||0;var o=t._glBuffers[a]||this.createGLBuffer(t);s.bindBufferRange(s.UNIFORM_BUFFER,e||0,o.buffer,i*256,256)},r.prototype.update=function(t){var e=this,i=e.gl,n=e.CONTEXT_UID,s=t._glBuffers[n];if(t._updateID!==s.updateID)if(s.updateID=t._updateID,i.bindBuffer(t.type,s.buffer),s.byteLength>=t.data.byteLength)i.bufferSubData(t.type,0,t.data);else{var a=t.static?i.STATIC_DRAW:i.DYNAMIC_DRAW;s.byteLength=t.data.byteLength,i.bufferData(t.type,t.data,a)}},r.prototype.dispose=function(t,e){if(!!this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var i=t._glBuffers[this.CONTEXT_UID],n=this.gl;t.disposeRunner.remove(this),i&&(e||n.deleteBuffer(i.buffer),delete t._glBuffers[this.CONTEXT_UID])}},r.prototype.disposeAll=function(t){for(var e=Object.keys(this.managedBuffers),i=0;i=F.HIGH?this.multisample=F.HIGH:i>=F.MEDIUM?this.multisample=F.MEDIUM:i>=F.LOW?this.multisample=F.LOW:this.multisample=F.NONE},t.prototype.addSystem=function(e,i){var n=new e(this);if(this[i])throw new Error('Whoops! The name "'+i+'" is already in use');this[i]=n;for(var s in this.runners)this.runners[s].add(n);return this},t.prototype.render=function(e,i){var n,s,a,o;if(i&&(i instanceof Ce?(Rt("6.0.0","Renderer#render arguments changed, use options instead."),n=i,s=arguments[2],a=arguments[3],o=arguments[4]):(n=i.renderTexture,s=i.clear,a=i.transform,o=i.skipUpdateTransform)),this.renderingToScreen=!n,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=a,!this.context.isLost){if(n||(this._lastObjectRendered=e),!o){var h=e.enableTempParent();e.updateTransform(),e.disableTempParent(h)}this.renderTexture.bind(n),this.batch.currentRenderer.start(),(s!==void 0?s:this.clearBeforeRender)&&this.renderTexture.clear(),e.render(this),this.batch.currentRenderer.flush(),n&&n.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},t.prototype.generateTexture=function(e,i,n,s){i===void 0&&(i={});var a=r.prototype.generateTexture.call(this,e,i,n,s);return this.framebuffer.blit(),a},t.prototype.resize=function(e,i){r.prototype.resize.call(this,e,i),this.runners.resize.emit(this.screen.height,this.screen.width)},t.prototype.reset=function(){return this.runners.reset.emit(),this},t.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},t.prototype.destroy=function(e){this.runners.destroy.emit();for(var i in this.runners)this.runners[i].destroy();r.prototype.destroy.call(this,e),this.gl=null},Object.defineProperty(t.prototype,"extract",{get:function(){return Rt("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),t.registerPlugin=function(e,i){t.__plugins=t.__plugins||{},t.__plugins[e]=i},t}(us);function ds(r){return cs.create(r)}var ps=function(){function r(){this.texArray=null,this.blend=0,this.type=bt.TRIANGLES,this.start=0,this.size=0,this.data=null}return r}(),vs=function(){function r(){this.elements=[],this.ids=[],this.count=0}return r.prototype.clear=function(){for(var t=0;tthis.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)},t.prototype.buildTexturesAndDrawCalls=function(){var e=this,i=e._bufferedTextures,n=e.MAX_TEXTURES,s=t._textureArrayPool,a=this.renderer.batch,o=this._tempBoundTextures,h=this.renderer.textureGC.count,u=++L._globalBatch,l=0,f=s[0],c=0;a.copyBoundTextures(o,n);for(var d=0;d=n&&(a.boundArray(f,o,u,n),this.buildDrawCalls(f,c,d),c=d,f=s[++l],++u),p._batchEnabled=u,p.touched=h,f.elements[f.count++]=p)}f.count>0&&(a.boundArray(f,o,u,n),this.buildDrawCalls(f,c,this._bufferSize),++l,++u);for(var d=0;d0&&(e+=` else `),i1)for(var s=0;sthis.children.length)throw new Error(e+"addChildAt: The index "+i+" supplied is out of bounds "+this.children.length);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(i,0,e),this._boundsID++,this.onChildrenChange(i),e.emit("added",this),this.emit("childAdded",e,this,i),e},t.prototype.swapChildren=function(e,i){if(e!==i){var n=this.getChildIndex(e),s=this.getChildIndex(i);this.children[n]=i,this.children[s]=e,this.onChildrenChange(n=this.children.length)throw new Error("The index "+i+" supplied is out of bounds "+this.children.length);var n=this.getChildIndex(e);kt(this.children,n,1),this.children.splice(i,0,e),this.onChildrenChange(i)},t.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},t.prototype.removeChild=function(){for(var e=arguments,i=[],n=0;n1)for(var s=0;s0&&a<=s){o=this.children.splice(n,a);for(var h=0;h1&&this.children.sort(bs),this.sortDirty=!1},t.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var e=0,i=this.children.length;e0&&i.height>0){var n,s;if(this.cullArea?(n=this.cullArea,s=this.worldTransform):this._render!==t.prototype._render&&(n=this.getBounds(!0)),n&&i.intersects(n,s))this._render(e);else if(this.cullArea)return;for(var a=0,o=this.children.length;a1)for(var s=0;sthis.children.length)throw new Error(e+"addChildAt: The index "+i+" supplied is out of bounds "+this.children.length);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(i,0,e),this._boundsID++,this.onChildrenChange(i),e.emit("added",this),this.emit("childAdded",e,this,i),e},t.prototype.swapChildren=function(e,i){if(e!==i){var n=this.getChildIndex(e),s=this.getChildIndex(i);this.children[n]=i,this.children[s]=e,this.onChildrenChange(n=this.children.length)throw new Error("The index "+i+" supplied is out of bounds "+this.children.length);var n=this.getChildIndex(e);Xt(this.children,n,1),this.children.splice(i,0,e),this.onChildrenChange(i)},t.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},t.prototype.removeChild=function(){for(var e=arguments,i=[],n=0;n1)for(var s=0;s0&&a<=s){o=this.children.splice(n,a);for(var h=0;h1&&this.children.sort(bs),this.sortDirty=!1},t.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var e=0,i=this.children.length;e0&&i.height>0){var n,s;if(this.cullArea?(n=this.cullArea,s=this.worldTransform):this._render!==t.prototype._render&&(n=this.getBounds(!0)),n&&i.intersects(n,s))this._render(e);else if(this.cullArea)return;for(var a=0,o=this.children.length;a=s&&yt.x=a&&yt.y>16)+(e&65280)+((e&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=e||Y.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,e&&(e.baseTexture.valid?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),t}(zt);/*! +***************************************************************************** */var we=function(r,t){return we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)i.hasOwnProperty(n)&&(e[n]=i[n])},we(r,t)};function Is(r,t){we(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var yt=new P,Rs=new Uint16Array([0,1,2,0,2,3]),Es=function(r){Is(t,r);function t(e){var i=r.call(this)||this;return i._anchor=new gt(i._onAnchorUpdate,i,e?e.defaultAnchor.x:0,e?e.defaultAnchor.y:0),i._texture=null,i._width=0,i._height=0,i._tint=null,i._tintRGB=null,i.tint=16777215,i.blendMode=g.NORMAL,i._cachedTint=16777215,i.uvs=null,i.texture=e||K.EMPTY,i.vertexData=new Float32Array(8),i.vertexTrimmedData=null,i._transformID=-1,i._textureID=-1,i._transformTrimmedID=-1,i._textureTrimmedID=-1,i.indices=Rs,i.pluginName="batch",i.isSprite=!0,i._roundPixels=x.ROUND_PIXELS,i}return t.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=At(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=At(this.scale.y)*this._height/this._texture.orig.height)},t.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},t.prototype.calculateVertices=function(){var e=this._texture;if(!(this._transformID===this.transform._worldID&&this._textureID===e._updateID)){this._textureID!==e._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=e._updateID;var i=this.transform.worldTransform,n=i.a,s=i.b,a=i.c,o=i.d,h=i.tx,u=i.ty,l=this.vertexData,f=e.trim,c=e.orig,d=this._anchor,p=0,m=0,v=0,y=0;if(f?(m=f.x-d._x*c.width,p=m+f.width,y=f.y-d._y*c.height,v=y+f.height):(m=-d._x*c.width,p=m+c.width,y=-d._y*c.height,v=y+c.height),l[0]=n*m+a*y+h,l[1]=o*y+s*m+u,l[2]=n*p+a*y+h,l[3]=o*y+s*p+u,l[4]=n*p+a*v+h,l[5]=o*v+s*p+u,l[6]=n*m+a*v+h,l[7]=o*v+s*m+u,this._roundPixels)for(var R=x.RESOLUTION,C=0;C=s&&yt.x=a&&yt.y>16)+(e&65280)+((e&255)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"texture",{get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=e||K.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,e&&(e.baseTexture.valid?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),t}(zt);/*! * @pixi/particle-emitter - v5.0.7 * Compiled Fri, 27 May 2022 02:00:12 UTC * * @pixi/particle-emitter is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license - */class z{constructor(t,e,i){this.value=t,this.time=e,this.next=null,this.isStepped=!1,i?this.ease=typeof i=="function"?i:yi(i):this.ease=null}static createList(t){if("list"in t){const i=t.list;let n;const{value:s,time:a}=i[0],o=n=new z(typeof s=="string"?Mt(s):s,a,t.ease);if(i.length>2||i.length===2&&i[1].value!==s)for(let h=1;h0?this._frequency=t:this._frequency=1}get parent(){return this._parent}set parent(t){this.cleanup(),this._parent=t}init(t){if(!t)return;this.cleanup(),this._origConfig=t,this.minLifetime=t.lifetime.min,this.maxLifetime=t.lifetime.max,t.ease?this.customEase=typeof t.ease=="function"?t.ease:yi(t.ease):this.customEase=null,this.particlesPerWave=1,t.particlesPerWave&&t.particlesPerWave>1&&(this.particlesPerWave=t.particlesPerWave),this.frequency=t.frequency,this.spawnChance=typeof t.spawnChance=="number"&&t.spawnChance>0?t.spawnChance:1,this.emitterLifetime=t.emitterLifetime||-1,this.maxParticles=t.maxParticles>0?t.maxParticles:1e3,this.addAtBack=!!t.addAtBack,this.rotation=0,this.ownerPos.set(0),t.pos?this.spawnPos.copyFrom(t.pos):this.spawnPos.set(0),this._prevEmitterPos.copyFrom(this.spawnPos),this._prevPosIsValid=!1,this._spawnTimer=0,this.emit=t.emit===void 0?!0:!!t.emit,this.autoUpdate=!!t.autoUpdate;const e=t.behaviors.map(i=>{const n=E.knownBehaviors[i.type];return n?new n(i.config):(console.error(`Unknown behavior: ${i.type}`),null)}).filter(i=>!!i);e.push(it),e.sort((i,n)=>i===it?n.order===w.Spawn?1:-1:n===it?i.order===w.Spawn?-1:1:i.order-n.order),this.initBehaviors=e.slice(),this.updateBehaviors=e.filter(i=>i!==it&&i.updateParticle),this.recycleBehaviors=e.filter(i=>i!==it&&i.recycleParticle)}getBehavior(t){return E.knownBehaviors[t]&&this.initBehaviors.find(e=>e instanceof E.knownBehaviors[t])||null}fillPool(t){for(;t>0;--t){const e=new he(this);e.next=this._poolFirst,this._poolFirst=e}}recycle(t,e=!1){for(let i=0;ia.maxLife||a.age<0)this.recycle(a);else{let h=a.age*a.oneOverLife;this.customEase&&(this.customEase.length===4?h=this.customEase(h,0,1,1):h=this.customEase(h)),a.agePercent=h;for(let u=0;u=0&&(this._emitterLife-=this._frequency,this._emitterLife<=0)){this._spawnTimer=0,this._emitterLife=0,this.emit=!1;break}if(this.particleCount>=this.maxParticles){this._spawnTimer+=this._frequency;continue}let a,o;if(this._prevPosIsValid&&this._posChanged){const l=1+this._spawnTimer/t;a=(n-e)*l+e,o=(s-i)*l+i}else a=n,o=s;let h=null,u=null;for(let l=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),f=0;f=this.spawnChance)continue;let c;if(this.minLifetime===this.maxLifetime?c=this.minLifetime:c=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,-this._spawnTimer>=c)continue;let d;this._poolFirst?(d=this._poolFirst,this._poolFirst=this._poolFirst.next,d.next=null):d=new he(this),d.init(c),this.addAtBack?this._parent.addChildAt(d,0):this._parent.addChild(d),h?(u.next=d,d.prev=u,u=d):u=h=d,++this.particleCount}if(h){this._activeParticlesLast?(this._activeParticlesLast.next=h,h.prev=this._activeParticlesLast,this._activeParticlesLast=u):(this._activeParticlesFirst=h,this._activeParticlesLast=u);for(let l=0;l=this.spawnChance)continue;let o;this._poolFirst?(o=this._poolFirst,this._poolFirst=this._poolFirst.next,o.next=null):o=new he(this);let h;this.minLifetime===this.maxLifetime?h=this.minLifetime:h=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,o.init(h),this.addAtBack?this._parent.addChildAt(o,0):this._parent.addChild(o),i?(n.next=o,o.prev=n,n=o):n=i=o,++this.particleCount}if(i){this._activeParticlesLast?(this._activeParticlesLast.next=i,i.prev=this._activeParticlesLast,this._activeParticlesLast=n):(this._activeParticlesFirst=i,this._activeParticlesLast=n);for(let s=0;sthis.maxSpeed&&_i(i,this.maxSpeed/a)}t.x+=(n+i.x)/2*e,t.y+=(s+i.y)/2*e,this.rotate&&(t.rotation=Math.atan2(i.y,i.x))}}Se.type="moveAcceleration";Se.editorConfig=null;function Cs(r){return this.ease&&(r=this.ease(r)),(this.first.next.value-this.first.value)*r+this.first.value}function As(r){this.ease&&(r=this.ease(r));const t=this.first.value,e=this.first.next.value,i=(e.r-t.r)*r+t.r,n=(e.g-t.g)*r+t.g,s=(e.b-t.b)*r+t.b;return $t(i,n,s)}function Ps(r){this.ease&&(r=this.ease(r));let t=this.first,e=t.next;for(;r>e.time;)t=e,e=e.next;return r=(r-t.time)/(e.time-t.time),(e.value-t.value)*r+t.value}function Us(r){this.ease&&(r=this.ease(r));let t=this.first,e=t.next;for(;r>e.time;)t=e,e=e.next;r=(r-t.time)/(e.time-t.time);const i=t.value,n=e.value,s=(n.r-i.r)*r+i.r,a=(n.g-i.g)*r+i.g,o=(n.b-i.b)*r+i.b;return $t(s,a,o)}function Fs(r){this.ease&&(r=this.ease(r));let t=this.first;for(;t.next&&r>t.next.time;)t=t.next;return t.value}function Ls(r){this.ease&&(r=this.ease(r));let t=this.first;for(;t.next&&r>t.next.time;)t=t.next;const e=t.value;return $t(e.r,e.g,e.b)}class Nt{constructor(t=!1){this.first=null,this.isColor=!!t,this.interpolate=null,this.ease=null}reset(t){this.first=t,t.next&&t.next.time>=1?this.interpolate=this.isColor?As:Cs:t.isStepped?this.interpolate=this.isColor?Ls:Fs:this.interpolate=this.isColor?Us:Ps,this.ease=this.first.ease}}class Ge{constructor(t){this.order=w.Normal,this.list=new Nt(!1),this.list.reset(z.createList(t.alpha))}initParticles(t){let e=t;for(;e;)e.alpha=this.list.first.value,e=e.next}updateParticle(t){t.alpha=this.list.interpolate(t.agePercent)}}Ge.type="alpha";Ge.editorConfig=null;class Be{constructor(t){this.order=w.Normal,this.value=t.alpha}initParticles(t){let e=t;for(;e;)e.alpha=this.value,e=e.next}}Be.type="alphaStatic";Be.editorConfig=null;function gi(r){const t=[];for(let e=0;e0;--n)t.push(i)}}return t}class Me{constructor(t){this.order=w.Normal,this.anims=[];for(let e=0;e0?i.framerate:60,a={textures:n,duration:s>0?n.length/s:0,framerate:s,loop:s>0?!!i.loop:!1};this.anims.push(a)}}initParticles(t){let e=t;for(;e;){const i=Math.floor(Math.random()*this.anims.length),n=e.config.anim=this.anims[i];e.texture=n.textures[0],e.config.animElapsed=0,n.framerate===-1?(e.config.animDuration=e.maxLife,e.config.animFramerate=n.textures.length/e.maxLife):(e.config.animDuration=n.duration,e.config.animFramerate=n.framerate),e=e.next}}updateParticle(t,e){const i=t.config,n=i.anim;i.animElapsed+=e,i.animElapsed>=i.animDuration&&(i.anim.loop?i.animElapsed=i.animElapsed%i.animDuration:i.animElapsed=i.animDuration-1e-6);const s=i.animElapsed*i.animFramerate+1e-7|0;t.texture=n.textures[s]||n.textures[n.textures.length-1]||Y.EMPTY}}Me.type="animatedRandom";Me.editorConfig=null;class ke{constructor(t){this.order=w.Normal;const e=t.anim,i=gi(e.textures),n=e.framerate<0?-1:e.framerate>0?e.framerate:60;this.anim={textures:i,duration:n>0?i.length/n:0,framerate:n,loop:n>0?!!e.loop:!1}}initParticles(t){let e=t;const i=this.anim;for(;e;)e.texture=i.textures[0],e.config.animElapsed=0,i.framerate===-1?(e.config.animDuration=e.maxLife,e.config.animFramerate=i.textures.length/e.maxLife):(e.config.animDuration=i.duration,e.config.animFramerate=i.framerate),e=e.next}updateParticle(t,e){const i=this.anim,n=t.config;n.animElapsed+=e,n.animElapsed>=n.animDuration&&(i.loop?n.animElapsed=n.animElapsed%n.animDuration:n.animElapsed=n.animDuration-1e-6);const s=n.animElapsed*n.animFramerate+1e-7|0;t.texture=i.textures[s]||i.textures[i.textures.length-1]||Y.EMPTY}}ke.type="animatedSingle";ke.editorConfig=null;class Xe{constructor(t){this.order=w.Normal,this.value=t.blendMode}initParticles(t){let e=t;for(;e;)e.blendMode=Ns(this.value),e=e.next}}Xe.type="blendMode";Xe.editorConfig=null;class He{constructor(t){this.order=w.Spawn,this.spacing=t.spacing*j,this.start=t.start*j,this.distance=t.distance}initParticles(t){let e=0,i=t;for(;i;){let n;this.spacing?n=this.start+this.spacing*e:n=Math.random()*Math.PI*2,i.rotation=n,this.distance&&(i.position.x=this.distance,K(n,i.position)),i=i.next,++e}}}He.type="spawnBurst";He.editorConfig=null;class Ve{constructor(t){this.order=w.Normal,this.list=new Nt(!0),this.list.reset(z.createList(t.color))}initParticles(t){let e=t;const i=this.list.first.value,n=$t(i.r,i.g,i.b);for(;e;)e.tint=n,e=e.next}updateParticle(t){t.tint=this.list.interpolate(t.agePercent)}}Ve.type="color";Ve.editorConfig=null;class je{constructor(t){this.order=w.Normal;let e=t.color;e.charAt(0)==="#"?e=e.substr(1):e.indexOf("0x")===0&&(e=e.substr(2)),this.value=parseInt(e,16)}initParticles(t){let e=t;for(;e;)e.tint=this.value,e=e.next}}je.type="colorStatic";je.editorConfig=null;class De{constructor(t){this.order=w.Normal,this.index=0,this.textures=t.textures.map(e=>typeof e=="string"?wt(e):e)}initParticles(t){let e=t;for(;e;)e.texture=this.textures[this.index],++this.index>=this.textures.length&&(this.index=0),e=e.next}}De.type="textureOrdered";De.editorConfig=null;const ct=new P,xi=["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2","abs","acos","acosh","asin","asinh","atan","atanh","atan2","cbrt","ceil","cos","cosh","exp","expm1","floor","fround","hypot","log","log1p","log10","log2","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh"],Os=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(xi).join("|"),"g");function Ss(r){const t=r.match(Os);for(let e=t.length-1;e>=0;--e)xi.indexOf(t[e])>=0&&(t[e]=`Math.${t[e]}`);return r=t.join(""),new Function("x",`return ${r};`)}class ze{constructor(t){var e;if(this.order=w.Late,t.path)if(typeof t.path=="function")this.path=t.path;else try{this.path=Ss(t.path)}catch{this.path=null}else this.path=i=>i;this.list=new Nt(!1),this.list.reset(z.createList(t.speed)),this.minMult=(e=t.minMult)!==null&&e!==void 0?e:1}initParticles(t){let e=t;for(;e;){e.config.initRotation=e.rotation,e.config.initPosition?e.config.initPosition.copyFrom(e.position):e.config.initPosition=new P(e.x,e.y),e.config.movement=0;const i=Math.random()*(1-this.minMult)+this.minMult;e.config.speedMult=i,e=e.next}}updateParticle(t,e){const i=this.list.interpolate(t.agePercent)*t.config.speedMult;t.config.movement+=i*e,ct.x=t.config.movement,ct.y=this.path(ct.x),K(t.config.initRotation,ct),t.position.x=t.config.initPosition.x+ct.x,t.position.y=t.config.initPosition.y+ct.y}}ze.type="movePath";ze.editorConfig=null;class We{constructor(){this.order=w.Spawn}initParticles(t){}}We.type="spawnPoint";We.editorConfig=null;class $e{constructor(t){this.order=w.Normal,this.textures=t.textures.map(e=>typeof e=="string"?wt(e):e)}initParticles(t){let e=t;for(;e;){const i=Math.floor(Math.random()*this.textures.length);e.texture=this.textures[i],e=e.next}}}$e.type="textureRandom";$e.editorConfig=null;class qe{constructor(t){this.order=w.Normal,this.minStart=t.minStart*j,this.maxStart=t.maxStart*j,this.minSpeed=t.minSpeed*j,this.maxSpeed=t.maxSpeed*j,this.accel=t.accel*j}initParticles(t){let e=t;for(;e;)this.minStart===this.maxStart?e.rotation+=this.maxStart:e.rotation+=Math.random()*(this.maxStart-this.minStart)+this.minStart,e.config.rotSpeed=Math.random()*(this.maxSpeed-this.minSpeed)+this.minSpeed,e=e.next}updateParticle(t,e){if(this.accel){const i=t.config.rotSpeed;t.config.rotSpeed+=this.accel*e,t.rotation+=(t.config.rotSpeed+i)/2*e}else t.rotation+=t.config.rotSpeed*e}}qe.type="rotation";qe.editorConfig=null;class Ye{constructor(t){this.order=w.Normal,this.min=t.min*j,this.max=t.max*j}initParticles(t){let e=t;for(;e;)this.min===this.max?e.rotation+=this.max:e.rotation+=Math.random()*(this.max-this.min)+this.min,e=e.next}}Ye.type="rotationStatic";Ye.editorConfig=null;class Ke{constructor(t){this.order=w.Late+1,this.rotation=(t.rotation||0)*j}initParticles(t){let e=t;for(;e;)e.rotation=this.rotation,e=e.next}}Ke.type="noRotation";Ke.editorConfig=null;class Ze{constructor(t){var e;this.order=w.Normal,this.list=new Nt(!1),this.list.reset(z.createList(t.scale)),this.minMult=(e=t.minMult)!==null&&e!==void 0?e:1}initParticles(t){let e=t;for(;e;){const i=Math.random()*(1-this.minMult)+this.minMult;e.config.scaleMult=i,e.scale.x=e.scale.y=this.list.first.value*i,e=e.next}}updateParticle(t){t.scale.x=t.scale.y=this.list.interpolate(t.agePercent)*t.config.scaleMult}}Ze.type="scale";Ze.editorConfig=null;class Je{constructor(t){this.order=w.Normal,this.min=t.min,this.max=t.max}initParticles(t){let e=t;for(;e;){const i=Math.random()*(this.max-this.min)+this.min;e.scale.x=e.scale.y=i,e=e.next}}}Je.type="scaleStatic";Je.editorConfig=null;class V{constructor(t){this.order=w.Spawn;const e=V.shapes[t.type];if(!e)throw new Error(`No shape found with type '${t.type}'`);this.shape=new e(t.data)}static registerShape(t,e){V.shapes[e||t.type]=t}initParticles(t){let e=t;for(;e;)this.shape.getRandPos(e),e=e.next}}V.type="spawnShape";V.editorConfig=null;V.shapes={};V.registerShape(Oe);V.registerShape(Le);V.registerShape(qt);V.registerShape(qt,"circle");class Qe{constructor(t){this.order=w.Normal,this.texture=typeof t.texture=="string"?wt(t.texture):t.texture}initParticles(t){let e=t;for(;e;)e.texture=this.texture,e=e.next}}Qe.type="textureSingle";Qe.editorConfig=null;class tr{constructor(t){var e;this.order=w.Late,this.list=new Nt(!1),this.list.reset(z.createList(t.speed)),this.minMult=(e=t.minMult)!==null&&e!==void 0?e:1}initParticles(t){let e=t;for(;e;){const i=Math.random()*(1-this.minMult)+this.minMult;e.config.speedMult=i,e.config.velocity?e.config.velocity.set(this.list.first.value*i,0):e.config.velocity=new P(this.list.first.value*i,0),K(e.rotation,e.config.velocity),e=e.next}}updateParticle(t,e){const i=this.list.interpolate(t.agePercent)*t.config.speedMult,n=t.config.velocity;ws(n),_i(n,i),t.x+=n.x*e,t.y+=n.y*e}}tr.type="moveSpeed";tr.editorConfig=null;class er{constructor(t){this.order=w.Late,this.min=t.min,this.max=t.max}initParticles(t){let e=t;for(;e;){const i=Math.random()*(this.max-this.min)+this.min;e.config.velocity?e.config.velocity.set(i,0):e.config.velocity=new P(i,0),K(e.rotation,e.config.velocity),e=e.next}}updateParticle(t,e){const i=t.config.velocity;t.x+=i.x*e,t.y+=i.y*e}}er.type="moveSpeedStatic";er.editorConfig=null;function Vs(r,t){var e,i,n,s,a,o,h,u,l,f,c,d,p,m,v,y,R,C,M,k,B;if("behaviors"in r)return r;const T={lifetime:r.lifetime,ease:r.ease,particlesPerWave:r.particlesPerWave,frequency:r.frequency,spawnChance:r.spawnChance,emitterLifetime:r.emitterLifetime,maxParticles:r.maxParticles,addAtBack:r.addAtBack,pos:r.pos,emit:r.emit,autoUpdate:r.autoUpdate,behaviors:[]};if(r.alpha)if("start"in r.alpha)if(r.alpha.start===r.alpha.end)r.alpha.start!==1&&T.behaviors.push({type:"alphaStatic",config:{alpha:r.alpha.start}});else{const b={list:[{time:0,value:r.alpha.start},{time:1,value:r.alpha.end}]};T.behaviors.push({type:"alpha",config:{alpha:b}})}else r.alpha.list.length===1?r.alpha.list[0].value!==1&&T.behaviors.push({type:"alphaStatic",config:{alpha:r.alpha.list[0].value}}):T.behaviors.push({type:"alpha",config:{alpha:r.alpha}});if(r.acceleration&&(r.acceleration.x||r.acceleration.y)){let b,G;"start"in r.speed?(b=r.speed.start*((e=r.speed.minimumSpeedMultiplier)!==null&&e!==void 0?e:1),G=r.speed.start):(b=r.speed.list[0].value*((i=r.minimumSpeedMultiplier)!==null&&i!==void 0?i:1),G=r.speed.list[0].value),T.behaviors.push({type:"moveAcceleration",config:{accel:r.acceleration,minStart:b,maxStart:G,rotate:!r.noRotation,maxSpeed:r.maxSpeed}})}else if(!((n=r.extraData)===null||n===void 0)&&n.path){let b,G;"start"in r.speed?(G=(s=r.speed.minimumSpeedMultiplier)!==null&&s!==void 0?s:1,r.speed.start===r.speed.end?b={list:[{time:0,value:r.speed.start}]}:b={list:[{time:0,value:r.speed.start},{time:1,value:r.speed.end}]}):(b=r.speed,G=(a=r.minimumSpeedMultiplier)!==null&&a!==void 0?a:1),T.behaviors.push({type:"movePath",config:{path:r.extraData.path,speed:b,minMult:G}})}else if(r.speed)if("start"in r.speed)if(r.speed.start===r.speed.end)T.behaviors.push({type:"moveSpeedStatic",config:{min:r.speed.start*((o=r.speed.minimumSpeedMultiplier)!==null&&o!==void 0?o:1),max:r.speed.start}});else{const b={list:[{time:0,value:r.speed.start},{time:1,value:r.speed.end}]};T.behaviors.push({type:"moveSpeed",config:{speed:b,minMult:r.speed.minimumSpeedMultiplier}})}else r.speed.list.length===1?T.behaviors.push({type:"moveSpeedStatic",config:{min:r.speed.list[0].value*((h=r.minimumSpeedMultiplier)!==null&&h!==void 0?h:1),max:r.speed.list[0].value}}):T.behaviors.push({type:"moveSpeed",config:{speed:r.speed,minMult:(u=r.minimumSpeedMultiplier)!==null&&u!==void 0?u:1}});if(r.scale)if("start"in r.scale){const b=(l=r.scale.minimumScaleMultiplier)!==null&&l!==void 0?l:1;if(r.scale.start===r.scale.end)T.behaviors.push({type:"scaleStatic",config:{min:r.scale.start*b,max:r.scale.start}});else{const G={list:[{time:0,value:r.scale.start},{time:1,value:r.scale.end}]};T.behaviors.push({type:"scale",config:{scale:G,minMult:b}})}}else if(r.scale.list.length===1){const b=(f=r.minimumScaleMultiplier)!==null&&f!==void 0?f:1,G=r.scale.list[0].value;T.behaviors.push({type:"scaleStatic",config:{min:G*b,max:G}})}else T.behaviors.push({type:"scale",config:{scale:r.scale,minMult:(c=r.minimumScaleMultiplier)!==null&&c!==void 0?c:1}});if(r.color)if("start"in r.color)if(r.color.start===r.color.end)r.color.start!=="ffffff"&&T.behaviors.push({type:"colorStatic",config:{color:r.color.start}});else{const b={list:[{time:0,value:r.color.start},{time:1,value:r.color.end}]};T.behaviors.push({type:"color",config:{color:b}})}else r.color.list.length===1?r.color.list[0].value!=="ffffff"&&T.behaviors.push({type:"colorStatic",config:{color:r.color.list[0].value}}):T.behaviors.push({type:"color",config:{color:r.color}});if(r.rotationAcceleration||((d=r.rotationSpeed)===null||d===void 0?void 0:d.min)||((p=r.rotationSpeed)===null||p===void 0?void 0:p.max)?T.behaviors.push({type:"rotation",config:{accel:r.rotationAcceleration||0,minSpeed:((m=r.rotationSpeed)===null||m===void 0?void 0:m.min)||0,maxSpeed:((v=r.rotationSpeed)===null||v===void 0?void 0:v.max)||0,minStart:((y=r.startRotation)===null||y===void 0?void 0:y.min)||0,maxStart:((R=r.startRotation)===null||R===void 0?void 0:R.max)||0}}):(((C=r.startRotation)===null||C===void 0?void 0:C.min)||((M=r.startRotation)===null||M===void 0?void 0:M.max))&&T.behaviors.push({type:"rotationStatic",config:{min:((k=r.startRotation)===null||k===void 0?void 0:k.min)||0,max:((B=r.startRotation)===null||B===void 0?void 0:B.max)||0}}),r.noRotation&&T.behaviors.push({type:"noRotation",config:{}}),r.blendMode&&r.blendMode!=="normal"&&T.behaviors.push({type:"blendMode",config:{blendMode:r.blendMode}}),Array.isArray(t)&&typeof t[0]!="string"&&"framerate"in t[0]){for(let b=0;b2||i.length===2&&i[1].value!==s)for(let h=1;h0?this._frequency=t:this._frequency=1}get parent(){return this._parent}set parent(t){this.cleanup(),this._parent=t}init(t){if(!t)return;this.cleanup(),this._origConfig=t,this.minLifetime=t.lifetime.min,this.maxLifetime=t.lifetime.max,t.ease?this.customEase=typeof t.ease=="function"?t.ease:yi(t.ease):this.customEase=null,this.particlesPerWave=1,t.particlesPerWave&&t.particlesPerWave>1&&(this.particlesPerWave=t.particlesPerWave),this.frequency=t.frequency,this.spawnChance=typeof t.spawnChance=="number"&&t.spawnChance>0?t.spawnChance:1,this.emitterLifetime=t.emitterLifetime||-1,this.maxParticles=t.maxParticles>0?t.maxParticles:1e3,this.addAtBack=!!t.addAtBack,this.rotation=0,this.ownerPos.set(0),t.pos?this.spawnPos.copyFrom(t.pos):this.spawnPos.set(0),this._prevEmitterPos.copyFrom(this.spawnPos),this._prevPosIsValid=!1,this._spawnTimer=0,this.emit=t.emit===void 0?!0:!!t.emit,this.autoUpdate=!!t.autoUpdate;const e=t.behaviors.map(i=>{const n=E.knownBehaviors[i.type];return n?new n(i.config):(console.error(`Unknown behavior: ${i.type}`),null)}).filter(i=>!!i);e.push(nt),e.sort((i,n)=>i===nt?n.order===w.Spawn?1:-1:n===nt?i.order===w.Spawn?-1:1:i.order-n.order),this.initBehaviors=e.slice(),this.updateBehaviors=e.filter(i=>i!==nt&&i.updateParticle),this.recycleBehaviors=e.filter(i=>i!==nt&&i.recycleParticle)}getBehavior(t){return E.knownBehaviors[t]&&this.initBehaviors.find(e=>e instanceof E.knownBehaviors[t])||null}fillPool(t){for(;t>0;--t){const e=new he(this);e.next=this._poolFirst,this._poolFirst=e}}recycle(t,e=!1){for(let i=0;ia.maxLife||a.age<0)this.recycle(a);else{let h=a.age*a.oneOverLife;this.customEase&&(this.customEase.length===4?h=this.customEase(h,0,1,1):h=this.customEase(h)),a.agePercent=h;for(let u=0;u=0&&(this._emitterLife-=this._frequency,this._emitterLife<=0)){this._spawnTimer=0,this._emitterLife=0,this.emit=!1;break}if(this.particleCount>=this.maxParticles){this._spawnTimer+=this._frequency;continue}let a,o;if(this._prevPosIsValid&&this._posChanged){const l=1+this._spawnTimer/t;a=(n-e)*l+e,o=(s-i)*l+i}else a=n,o=s;let h=null,u=null;for(let l=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount),f=0;f=this.spawnChance)continue;let c;if(this.minLifetime===this.maxLifetime?c=this.minLifetime:c=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,-this._spawnTimer>=c)continue;let d;this._poolFirst?(d=this._poolFirst,this._poolFirst=this._poolFirst.next,d.next=null):d=new he(this),d.init(c),this.addAtBack?this._parent.addChildAt(d,0):this._parent.addChild(d),h?(u.next=d,d.prev=u,u=d):u=h=d,++this.particleCount}if(h){this._activeParticlesLast?(this._activeParticlesLast.next=h,h.prev=this._activeParticlesLast,this._activeParticlesLast=u):(this._activeParticlesFirst=h,this._activeParticlesLast=u);for(let l=0;l=this.spawnChance)continue;let o;this._poolFirst?(o=this._poolFirst,this._poolFirst=this._poolFirst.next,o.next=null):o=new he(this);let h;this.minLifetime===this.maxLifetime?h=this.minLifetime:h=Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,o.init(h),this.addAtBack?this._parent.addChildAt(o,0):this._parent.addChild(o),i?(n.next=o,o.prev=n,n=o):n=i=o,++this.particleCount}if(i){this._activeParticlesLast?(this._activeParticlesLast.next=i,i.prev=this._activeParticlesLast,this._activeParticlesLast=n):(this._activeParticlesFirst=i,this._activeParticlesLast=n);for(let s=0;sthis.maxSpeed&&_i(i,this.maxSpeed/a)}t.x+=(n+i.x)/2*e,t.y+=(s+i.y)/2*e,this.rotate&&(t.rotation=Math.atan2(i.y,i.x))}}Se.type="moveAcceleration";Se.editorConfig=null;function Cs(r){return this.ease&&(r=this.ease(r)),(this.first.next.value-this.first.value)*r+this.first.value}function As(r){this.ease&&(r=this.ease(r));const t=this.first.value,e=this.first.next.value,i=(e.r-t.r)*r+t.r,n=(e.g-t.g)*r+t.g,s=(e.b-t.b)*r+t.b;return $t(i,n,s)}function Ps(r){this.ease&&(r=this.ease(r));let t=this.first,e=t.next;for(;r>e.time;)t=e,e=e.next;return r=(r-t.time)/(e.time-t.time),(e.value-t.value)*r+t.value}function Us(r){this.ease&&(r=this.ease(r));let t=this.first,e=t.next;for(;r>e.time;)t=e,e=e.next;r=(r-t.time)/(e.time-t.time);const i=t.value,n=e.value,s=(n.r-i.r)*r+i.r,a=(n.g-i.g)*r+i.g,o=(n.b-i.b)*r+i.b;return $t(s,a,o)}function Fs(r){this.ease&&(r=this.ease(r));let t=this.first;for(;t.next&&r>t.next.time;)t=t.next;return t.value}function Ls(r){this.ease&&(r=this.ease(r));let t=this.first;for(;t.next&&r>t.next.time;)t=t.next;const e=t.value;return $t(e.r,e.g,e.b)}class Ct{constructor(t=!1){this.first=null,this.isColor=!!t,this.interpolate=null,this.ease=null}reset(t){this.first=t,t.next&&t.next.time>=1?this.interpolate=this.isColor?As:Cs:t.isStepped?this.interpolate=this.isColor?Ls:Fs:this.interpolate=this.isColor?Us:Ps,this.ease=this.first.ease}}class Ge{constructor(t){this.order=w.Normal,this.list=new Ct(!1),this.list.reset(z.createList(t.alpha))}initParticles(t){let e=t;for(;e;)e.alpha=this.list.first.value,e=e.next}updateParticle(t){t.alpha=this.list.interpolate(t.agePercent)}}Ge.type="alpha";Ge.editorConfig=null;class Be{constructor(t){this.order=w.Normal,this.value=t.alpha}initParticles(t){let e=t;for(;e;)e.alpha=this.value,e=e.next}}Be.type="alphaStatic";Be.editorConfig=null;function gi(r){const t=[];for(let e=0;e0;--n)t.push(i)}}return t}class Me{constructor(t){this.order=w.Normal,this.anims=[];for(let e=0;e0?i.framerate:60,a={textures:n,duration:s>0?n.length/s:0,framerate:s,loop:s>0?!!i.loop:!1};this.anims.push(a)}}initParticles(t){let e=t;for(;e;){const i=Math.floor(Math.random()*this.anims.length),n=e.config.anim=this.anims[i];e.texture=n.textures[0],e.config.animElapsed=0,n.framerate===-1?(e.config.animDuration=e.maxLife,e.config.animFramerate=n.textures.length/e.maxLife):(e.config.animDuration=n.duration,e.config.animFramerate=n.framerate),e=e.next}}updateParticle(t,e){const i=t.config,n=i.anim;i.animElapsed+=e,i.animElapsed>=i.animDuration&&(i.anim.loop?i.animElapsed=i.animElapsed%i.animDuration:i.animElapsed=i.animDuration-1e-6);const s=i.animElapsed*i.animFramerate+1e-7|0;t.texture=n.textures[s]||n.textures[n.textures.length-1]||K.EMPTY}}Me.type="animatedRandom";Me.editorConfig=null;class ke{constructor(t){this.order=w.Normal;const e=t.anim,i=gi(e.textures),n=e.framerate<0?-1:e.framerate>0?e.framerate:60;this.anim={textures:i,duration:n>0?i.length/n:0,framerate:n,loop:n>0?!!e.loop:!1}}initParticles(t){let e=t;const i=this.anim;for(;e;)e.texture=i.textures[0],e.config.animElapsed=0,i.framerate===-1?(e.config.animDuration=e.maxLife,e.config.animFramerate=i.textures.length/e.maxLife):(e.config.animDuration=i.duration,e.config.animFramerate=i.framerate),e=e.next}updateParticle(t,e){const i=this.anim,n=t.config;n.animElapsed+=e,n.animElapsed>=n.animDuration&&(i.loop?n.animElapsed=n.animElapsed%n.animDuration:n.animElapsed=n.animDuration-1e-6);const s=n.animElapsed*n.animFramerate+1e-7|0;t.texture=i.textures[s]||i.textures[i.textures.length-1]||K.EMPTY}}ke.type="animatedSingle";ke.editorConfig=null;class Xe{constructor(t){this.order=w.Normal,this.value=t.blendMode}initParticles(t){let e=t;for(;e;)e.blendMode=Ns(this.value),e=e.next}}Xe.type="blendMode";Xe.editorConfig=null;class He{constructor(t){this.order=w.Spawn,this.spacing=t.spacing*j,this.start=t.start*j,this.distance=t.distance}initParticles(t){let e=0,i=t;for(;i;){let n;this.spacing?n=this.start+this.spacing*e:n=Math.random()*Math.PI*2,i.rotation=n,this.distance&&(i.position.x=this.distance,Z(n,i.position)),i=i.next,++e}}}He.type="spawnBurst";He.editorConfig=null;class Ve{constructor(t){this.order=w.Normal,this.list=new Ct(!0),this.list.reset(z.createList(t.color))}initParticles(t){let e=t;const i=this.list.first.value,n=$t(i.r,i.g,i.b);for(;e;)e.tint=n,e=e.next}updateParticle(t){t.tint=this.list.interpolate(t.agePercent)}}Ve.type="color";Ve.editorConfig=null;class je{constructor(t){this.order=w.Normal;let e=t.color;e.charAt(0)==="#"?e=e.substr(1):e.indexOf("0x")===0&&(e=e.substr(2)),this.value=parseInt(e,16)}initParticles(t){let e=t;for(;e;)e.tint=this.value,e=e.next}}je.type="colorStatic";je.editorConfig=null;class De{constructor(t){this.order=w.Normal,this.index=0,this.textures=t.textures.map(e=>typeof e=="string"?Nt(e):e)}initParticles(t){let e=t;for(;e;)e.texture=this.textures[this.index],++this.index>=this.textures.length&&(this.index=0),e=e.next}}De.type="textureOrdered";De.editorConfig=null;const ct=new P,xi=["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2","abs","acos","acosh","asin","asinh","atan","atanh","atan2","cbrt","ceil","cos","cosh","exp","expm1","floor","fround","hypot","log","log1p","log10","log2","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh"],Os=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(xi).join("|"),"g");function Ss(r){const t=r.match(Os);for(let e=t.length-1;e>=0;--e)xi.indexOf(t[e])>=0&&(t[e]=`Math.${t[e]}`);return r=t.join(""),new Function("x",`return ${r};`)}class ze{constructor(t){var e;if(this.order=w.Late,t.path)if(typeof t.path=="function")this.path=t.path;else try{this.path=Ss(t.path)}catch{this.path=null}else this.path=i=>i;this.list=new Ct(!1),this.list.reset(z.createList(t.speed)),this.minMult=(e=t.minMult)!==null&&e!==void 0?e:1}initParticles(t){let e=t;for(;e;){e.config.initRotation=e.rotation,e.config.initPosition?e.config.initPosition.copyFrom(e.position):e.config.initPosition=new P(e.x,e.y),e.config.movement=0;const i=Math.random()*(1-this.minMult)+this.minMult;e.config.speedMult=i,e=e.next}}updateParticle(t,e){const i=this.list.interpolate(t.agePercent)*t.config.speedMult;t.config.movement+=i*e,ct.x=t.config.movement,ct.y=this.path(ct.x),Z(t.config.initRotation,ct),t.position.x=t.config.initPosition.x+ct.x,t.position.y=t.config.initPosition.y+ct.y}}ze.type="movePath";ze.editorConfig=null;class We{constructor(){this.order=w.Spawn}initParticles(t){}}We.type="spawnPoint";We.editorConfig=null;class $e{constructor(t){this.order=w.Normal,this.textures=t.textures.map(e=>typeof e=="string"?Nt(e):e)}initParticles(t){let e=t;for(;e;){const i=Math.floor(Math.random()*this.textures.length);e.texture=this.textures[i],e=e.next}}}$e.type="textureRandom";$e.editorConfig=null;class qe{constructor(t){this.order=w.Normal,this.minStart=t.minStart*j,this.maxStart=t.maxStart*j,this.minSpeed=t.minSpeed*j,this.maxSpeed=t.maxSpeed*j,this.accel=t.accel*j}initParticles(t){let e=t;for(;e;)this.minStart===this.maxStart?e.rotation+=this.maxStart:e.rotation+=Math.random()*(this.maxStart-this.minStart)+this.minStart,e.config.rotSpeed=Math.random()*(this.maxSpeed-this.minSpeed)+this.minSpeed,e=e.next}updateParticle(t,e){if(this.accel){const i=t.config.rotSpeed;t.config.rotSpeed+=this.accel*e,t.rotation+=(t.config.rotSpeed+i)/2*e}else t.rotation+=t.config.rotSpeed*e}}qe.type="rotation";qe.editorConfig=null;class Ye{constructor(t){this.order=w.Normal,this.min=t.min*j,this.max=t.max*j}initParticles(t){let e=t;for(;e;)this.min===this.max?e.rotation+=this.max:e.rotation+=Math.random()*(this.max-this.min)+this.min,e=e.next}}Ye.type="rotationStatic";Ye.editorConfig=null;class Ke{constructor(t){this.order=w.Late+1,this.rotation=(t.rotation||0)*j}initParticles(t){let e=t;for(;e;)e.rotation=this.rotation,e=e.next}}Ke.type="noRotation";Ke.editorConfig=null;class Ze{constructor(t){var e;this.order=w.Normal,this.list=new Ct(!1),this.list.reset(z.createList(t.scale)),this.minMult=(e=t.minMult)!==null&&e!==void 0?e:1}initParticles(t){let e=t;for(;e;){const i=Math.random()*(1-this.minMult)+this.minMult;e.config.scaleMult=i,e.scale.x=e.scale.y=this.list.first.value*i,e=e.next}}updateParticle(t){t.scale.x=t.scale.y=this.list.interpolate(t.agePercent)*t.config.scaleMult}}Ze.type="scale";Ze.editorConfig=null;class Je{constructor(t){this.order=w.Normal,this.min=t.min,this.max=t.max}initParticles(t){let e=t;for(;e;){const i=Math.random()*(this.max-this.min)+this.min;e.scale.x=e.scale.y=i,e=e.next}}}Je.type="scaleStatic";Je.editorConfig=null;class V{constructor(t){this.order=w.Spawn;const e=V.shapes[t.type];if(!e)throw new Error(`No shape found with type '${t.type}'`);this.shape=new e(t.data)}static registerShape(t,e){V.shapes[e||t.type]=t}initParticles(t){let e=t;for(;e;)this.shape.getRandPos(e),e=e.next}}V.type="spawnShape";V.editorConfig=null;V.shapes={};V.registerShape(Oe);V.registerShape(Le);V.registerShape(qt);V.registerShape(qt,"circle");class Qe{constructor(t){this.order=w.Normal,this.texture=typeof t.texture=="string"?Nt(t.texture):t.texture}initParticles(t){let e=t;for(;e;)e.texture=this.texture,e=e.next}}Qe.type="textureSingle";Qe.editorConfig=null;class tr{constructor(t){var e;this.order=w.Late,this.list=new Ct(!1),this.list.reset(z.createList(t.speed)),this.minMult=(e=t.minMult)!==null&&e!==void 0?e:1}initParticles(t){let e=t;for(;e;){const i=Math.random()*(1-this.minMult)+this.minMult;e.config.speedMult=i,e.config.velocity?e.config.velocity.set(this.list.first.value*i,0):e.config.velocity=new P(this.list.first.value*i,0),Z(e.rotation,e.config.velocity),e=e.next}}updateParticle(t,e){const i=this.list.interpolate(t.agePercent)*t.config.speedMult,n=t.config.velocity;ws(n),_i(n,i),t.x+=n.x*e,t.y+=n.y*e}}tr.type="moveSpeed";tr.editorConfig=null;class er{constructor(t){this.order=w.Late,this.min=t.min,this.max=t.max}initParticles(t){let e=t;for(;e;){const i=Math.random()*(this.max-this.min)+this.min;e.config.velocity?e.config.velocity.set(i,0):e.config.velocity=new P(i,0),Z(e.rotation,e.config.velocity),e=e.next}}updateParticle(t,e){const i=t.config.velocity;t.x+=i.x*e,t.y+=i.y*e}}er.type="moveSpeedStatic";er.editorConfig=null;function Ds(r,t){var e,i,n,s,a,o,h,u,l,f,c,d,p,m,v,y,R,C,M,k,B;if("behaviors"in r)return r;const T={lifetime:r.lifetime,ease:r.ease,particlesPerWave:r.particlesPerWave,frequency:r.frequency,spawnChance:r.spawnChance,emitterLifetime:r.emitterLifetime,maxParticles:r.maxParticles,addAtBack:r.addAtBack,pos:r.pos,emit:r.emit,autoUpdate:r.autoUpdate,behaviors:[]};if(r.alpha)if("start"in r.alpha)if(r.alpha.start===r.alpha.end)r.alpha.start!==1&&T.behaviors.push({type:"alphaStatic",config:{alpha:r.alpha.start}});else{const b={list:[{time:0,value:r.alpha.start},{time:1,value:r.alpha.end}]};T.behaviors.push({type:"alpha",config:{alpha:b}})}else r.alpha.list.length===1?r.alpha.list[0].value!==1&&T.behaviors.push({type:"alphaStatic",config:{alpha:r.alpha.list[0].value}}):T.behaviors.push({type:"alpha",config:{alpha:r.alpha}});if(r.acceleration&&(r.acceleration.x||r.acceleration.y)){let b,G;"start"in r.speed?(b=r.speed.start*((e=r.speed.minimumSpeedMultiplier)!==null&&e!==void 0?e:1),G=r.speed.start):(b=r.speed.list[0].value*((i=r.minimumSpeedMultiplier)!==null&&i!==void 0?i:1),G=r.speed.list[0].value),T.behaviors.push({type:"moveAcceleration",config:{accel:r.acceleration,minStart:b,maxStart:G,rotate:!r.noRotation,maxSpeed:r.maxSpeed}})}else if(!((n=r.extraData)===null||n===void 0)&&n.path){let b,G;"start"in r.speed?(G=(s=r.speed.minimumSpeedMultiplier)!==null&&s!==void 0?s:1,r.speed.start===r.speed.end?b={list:[{time:0,value:r.speed.start}]}:b={list:[{time:0,value:r.speed.start},{time:1,value:r.speed.end}]}):(b=r.speed,G=(a=r.minimumSpeedMultiplier)!==null&&a!==void 0?a:1),T.behaviors.push({type:"movePath",config:{path:r.extraData.path,speed:b,minMult:G}})}else if(r.speed)if("start"in r.speed)if(r.speed.start===r.speed.end)T.behaviors.push({type:"moveSpeedStatic",config:{min:r.speed.start*((o=r.speed.minimumSpeedMultiplier)!==null&&o!==void 0?o:1),max:r.speed.start}});else{const b={list:[{time:0,value:r.speed.start},{time:1,value:r.speed.end}]};T.behaviors.push({type:"moveSpeed",config:{speed:b,minMult:r.speed.minimumSpeedMultiplier}})}else r.speed.list.length===1?T.behaviors.push({type:"moveSpeedStatic",config:{min:r.speed.list[0].value*((h=r.minimumSpeedMultiplier)!==null&&h!==void 0?h:1),max:r.speed.list[0].value}}):T.behaviors.push({type:"moveSpeed",config:{speed:r.speed,minMult:(u=r.minimumSpeedMultiplier)!==null&&u!==void 0?u:1}});if(r.scale)if("start"in r.scale){const b=(l=r.scale.minimumScaleMultiplier)!==null&&l!==void 0?l:1;if(r.scale.start===r.scale.end)T.behaviors.push({type:"scaleStatic",config:{min:r.scale.start*b,max:r.scale.start}});else{const G={list:[{time:0,value:r.scale.start},{time:1,value:r.scale.end}]};T.behaviors.push({type:"scale",config:{scale:G,minMult:b}})}}else if(r.scale.list.length===1){const b=(f=r.minimumScaleMultiplier)!==null&&f!==void 0?f:1,G=r.scale.list[0].value;T.behaviors.push({type:"scaleStatic",config:{min:G*b,max:G}})}else T.behaviors.push({type:"scale",config:{scale:r.scale,minMult:(c=r.minimumScaleMultiplier)!==null&&c!==void 0?c:1}});if(r.color)if("start"in r.color)if(r.color.start===r.color.end)r.color.start!=="ffffff"&&T.behaviors.push({type:"colorStatic",config:{color:r.color.start}});else{const b={list:[{time:0,value:r.color.start},{time:1,value:r.color.end}]};T.behaviors.push({type:"color",config:{color:b}})}else r.color.list.length===1?r.color.list[0].value!=="ffffff"&&T.behaviors.push({type:"colorStatic",config:{color:r.color.list[0].value}}):T.behaviors.push({type:"color",config:{color:r.color}});if(r.rotationAcceleration||((d=r.rotationSpeed)===null||d===void 0?void 0:d.min)||((p=r.rotationSpeed)===null||p===void 0?void 0:p.max)?T.behaviors.push({type:"rotation",config:{accel:r.rotationAcceleration||0,minSpeed:((m=r.rotationSpeed)===null||m===void 0?void 0:m.min)||0,maxSpeed:((v=r.rotationSpeed)===null||v===void 0?void 0:v.max)||0,minStart:((y=r.startRotation)===null||y===void 0?void 0:y.min)||0,maxStart:((R=r.startRotation)===null||R===void 0?void 0:R.max)||0}}):(((C=r.startRotation)===null||C===void 0?void 0:C.min)||((M=r.startRotation)===null||M===void 0?void 0:M.max))&&T.behaviors.push({type:"rotationStatic",config:{min:((k=r.startRotation)===null||k===void 0?void 0:k.min)||0,max:((B=r.startRotation)===null||B===void 0?void 0:B.max)||0}}),r.noRotation&&T.behaviors.push({type:"noRotation",config:{}}),r.blendMode&&r.blendMode!=="normal"&&T.behaviors.push({type:"blendMode",config:{blendMode:r.blendMode}}),Array.isArray(t)&&typeof t[0]!="string"&&"framerate"in t[0]){for(let b=0;b80*n){i=y=e[0],l=c=e[1];for(var o=n;oy&&(y=h),p>c&&(c=p);v=Math.max(y-i,c-l),v=v!==0?1/v:0}return w(u,f,n,i,l,v),f}function A(e,t,n,x,r){var u,f;if(r===k(e,t,n,x)>0)for(u=t;u=t;u-=x)f=z(u,e[u],e[u+1],f);return f&&T(f,f.next)&&(M(f),f=f.next),f}function g(e,t){if(!e)return e;t||(t=e);var n=e,x;do if(x=!1,!n.steiner&&(T(n,n.next)||s(n.prev,n,n.next)===0)){if(M(n),n=t=n.prev,n===n.next)break;x=!0}else n=n.next;while(x||n!==t);return t}function w(e,t,n,x,r,u,f){if(!!e){!f&&u&&U(e,x,r,u);for(var i=e,l,y;e.prev!==e.next;){if(l=e.prev,y=e.next,u?B(e,x,r,u):D(e)){t.push(l.i/n),t.push(e.i/n),t.push(y.i/n),M(e),e=y.next,i=y.next;continue}if(e=y,e===i){f?f===1?(e=G(g(e),t,n),w(e,t,n,x,r,u,2)):f===2&&R(e,t,n,x,r,u):w(g(e),t,n,x,r,u,1);break}}}}function D(e){var t=e.prev,n=e,x=e.next;if(s(t,n,x)>=0)return!1;for(var r=e.next.next;r!==e.prev;){if(Z(t.x,t.y,n.x,n.y,x.x,x.y,r.x,r.y)&&s(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function B(e,t,n,x){var r=e.prev,u=e,f=e.next;if(s(r,u,f)>=0)return!1;for(var i=r.xu.x?r.x>f.x?r.x:f.x:u.x>f.x?u.x:f.x,c=r.y>u.y?r.y>f.y?r.y:f.y:u.y>f.y?u.y:f.y,h=H(i,l,t,n,x),p=H(y,c,t,n,x),v=e.prevZ,o=e.nextZ;v&&v.z>=h&&o&&o.z<=p;){if(v!==e.prev&&v!==e.next&&Z(r.x,r.y,u.x,u.y,f.x,f.y,v.x,v.y)&&s(v.prev,v,v.next)>=0||(v=v.prevZ,o!==e.prev&&o!==e.next&&Z(r.x,r.y,u.x,u.y,f.x,f.y,o.x,o.y)&&s(o.prev,o,o.next)>=0))return!1;o=o.nextZ}for(;v&&v.z>=h;){if(v!==e.prev&&v!==e.next&&Z(r.x,r.y,u.x,u.y,f.x,f.y,v.x,v.y)&&s(v.prev,v,v.next)>=0)return!1;v=v.prevZ}for(;o&&o.z<=p;){if(o!==e.prev&&o!==e.next&&Z(r.x,r.y,u.x,u.y,f.x,f.y,o.x,o.y)&&s(o.prev,o,o.next)>=0)return!1;o=o.nextZ}return!0}function G(e,t,n){var x=e;do{var r=x.prev,u=x.next.next;!T(r,u)&&j(r,x,x.next,u)&&F(r,u)&&F(u,r)&&(t.push(r.i/n),t.push(x.i/n),t.push(u.i/n),M(x),M(x.next),x=e=u),x=x.next}while(x!==e);return g(x)}function R(e,t,n,x,r,u){var f=e;do{for(var i=f.next.next;i!==f.prev;){if(f.i!==i.i&&Y(f,i)){var l=C(f,i);f=g(f,f.next),l=g(l,l.next),w(f,t,n,x,r,u),w(l,t,n,x,r,u);return}i=i.next}f=f.next}while(f!==e)}function V(e,t,n,x){var r=[],u,f,i,l,y;for(u=0,f=t.length;u=n.next.y&&n.next.y!==n.y){var i=n.x+(r-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(i<=x&&i>u){if(u=i,i===x){if(r===n.y)return n;if(r===n.next.y)return n.next}f=n.x=n.x&&n.x>=y&&x!==n.x&&Z(rf.x||n.x===f.x&&Q(f,n)))&&(f=n,h=p)),n=n.next;while(n!==l);return f}function Q(e,t){return s(e.prev,e,t.prev)<0&&s(t.next,e,e.next)<0}function U(e,t,n,x){var r=e;do r.z===null&&(r.z=H(r.x,r.y,t,n,x)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next;while(r!==e);r.prevZ.nextZ=null,r.prevZ=null,W(r)}function W(e){var t,n,x,r,u,f,i,l,y=1;do{for(n=e,e=null,u=null,f=0;n;){for(f++,x=n,i=0,t=0;t0||l>0&&x;)i!==0&&(l===0||!x||n.z<=x.z)?(r=n,n=n.nextZ,i--):(r=x,x=x.nextZ,l--),u?u.nextZ=r:e=r,r.prevZ=u,u=r;n=x}u.nextZ=null,y*=2}while(f>1);return e}function H(e,t,n,x,r){return e=32767*(e-n)*r,t=32767*(t-x)*r,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function X(e){var t=e,n=e;do(t.x=0&&(e-f)*(x-i)-(n-f)*(t-i)>=0&&(n-f)*(u-i)-(r-f)*(x-i)>=0}function Y(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!I(e,t)&&(F(e,t)&&F(t,e)&&S(e,t)&&(s(e.prev,e,t.prev)||s(e,t.prev,t))||T(e,t)&&s(e.prev,e,e.next)>0&&s(t.prev,t,t.next)>0)}function s(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function T(e,t){return e.x===t.x&&e.y===t.y}function j(e,t,n,x){var r=L(s(e,t,n)),u=L(s(e,t,x)),f=L(s(n,x,e)),i=L(s(n,x,t));return!!(r!==u&&f!==i||r===0&&O(e,n,t)||u===0&&O(e,x,t)||f===0&&O(n,e,x)||i===0&&O(n,t,x))}function O(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function L(e){return e>0?1:e<0?-1:0}function I(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&j(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function F(e,t){return s(e.prev,e,e.next)<0?s(e,t,e.next)>=0&&s(e,e.prev,t)>=0:s(e,t,e.prev)<0||s(e,e.next,t)<0}function S(e,t){var n=e,x=!1,r=(e.x+t.x)/2,u=(e.y+t.y)/2;do n.y>u!=n.next.y>u&&n.next.y!==n.y&&r<(n.next.x-n.x)*(u-n.y)/(n.next.y-n.y)+n.x&&(x=!x),n=n.next;while(n!==e);return x}function C(e,t){var n=new _(e.i,e.x,e.y),x=new _(t.i,t.x,t.y),r=e.next,u=t.prev;return e.next=t,t.prev=e,n.next=r,r.prev=n,x.next=n,n.prev=x,u.next=x,x.prev=u,x}function z(e,t,n,x){var r=new _(e,t,n);return x?(r.next=x.next,r.prev=x,x.next.prev=r,x.next=r):(r.prev=r,r.next=r),r}function M(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function _(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}P.deviation=function(e,t,n,x){var r=t&&t.length,u=r?t[0]*n:e.length,f=Math.abs(k(e,0,u,n));if(r)for(var i=0,l=t.length;i0&&(x+=e[r-1].length,n.holes.push(x))}return n};export{m as a,N as c,a as g}; diff --git a/assets/earcut.b6f90e68.js b/assets/earcut.b6f90e68.js new file mode 100644 index 0000000..a341edf --- /dev/null +++ b/assets/earcut.b6f90e68.js @@ -0,0 +1 @@ +var ee=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function ne(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function re(e){if(e.__esModule)return e;var r=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var t=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,t.get?t:{enumerable:!0,get:function(){return e[n]}})}),r}var B={exports:{}};B.exports=z;B.exports.default=z;function z(e,r,n){n=n||2;var t=r&&r.length,x=t?r[0]*n:e.length,u=G(e,0,x,n,!0),f=[];if(!u||u.next===u.prev)return f;var i,v,o,c,h,l,Z;if(t&&(u=Q(e,r,u,n)),e.length>80*n){i=o=e[0],v=c=e[1];for(var p=n;po&&(o=h),l>c&&(c=l);Z=Math.max(o-i,c-v),Z=Z!==0?32767/Z:0}return L(u,f,n,i,v,Z,0),f}function G(e,r,n,t,x){var u,f;if(x===j(e,r,n,t)>0)for(u=r;u=r;u-=t)f=T(u,e[u],e[u+1],f);return f&&E(f,f.next)&&(H(f),f=f.next),f}function w(e,r){if(!e)return e;r||(r=e);var n=e,t;do if(t=!1,!n.steiner&&(E(n,n.next)||g(n.prev,n,n.next)===0)){if(H(n),n=r=n.prev,n===n.next)break;t=!0}else n=n.next;while(t||n!==r);return r}function L(e,r,n,t,x,u,f){if(!!e){!f&&u&&X(e,t,x,u);for(var i=e,v,o;e.prev!==e.next;){if(v=e.prev,o=e.next,u?$(e,t,x,u):V(e)){r.push(v.i/n|0),r.push(e.i/n|0),r.push(o.i/n|0),H(e),e=o.next,i=o.next;continue}if(e=o,e===i){f?f===1?(e=J(w(e),r,n),L(e,r,n,t,x,u,2)):f===2&&K(e,r,n,t,x,u):L(w(e),r,n,t,x,u,1);break}}}}function V(e){var r=e.prev,n=e,t=e.next;if(g(r,n,t)>=0)return!1;for(var x=r.x,u=n.x,f=t.x,i=r.y,v=n.y,o=t.y,c=xu?x>f?x:f:u>f?u:f,Z=i>v?i>o?i:o:v>o?v:o,p=t.next;p!==r;){if(p.x>=c&&p.x<=l&&p.y>=h&&p.y<=Z&&F(x,i,u,v,f,o,p.x,p.y)&&g(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function $(e,r,n,t){var x=e.prev,u=e,f=e.next;if(g(x,u,f)>=0)return!1;for(var i=x.x,v=u.x,o=f.x,c=x.y,h=u.y,l=f.y,Z=iv?i>o?i:o:v>o?v:o,O=c>h?c>l?c:l:h>l?h:l,C=A(Z,p,r,n,t),D=A(M,O,r,n,t),s=e.prevZ,y=e.nextZ;s&&s.z>=C&&y&&y.z<=D;){if(s.x>=Z&&s.x<=M&&s.y>=p&&s.y<=O&&s!==x&&s!==f&&F(i,c,v,h,o,l,s.x,s.y)&&g(s.prev,s,s.next)>=0||(s=s.prevZ,y.x>=Z&&y.x<=M&&y.y>=p&&y.y<=O&&y!==x&&y!==f&&F(i,c,v,h,o,l,y.x,y.y)&&g(y.prev,y,y.next)>=0))return!1;y=y.nextZ}for(;s&&s.z>=C;){if(s.x>=Z&&s.x<=M&&s.y>=p&&s.y<=O&&s!==x&&s!==f&&F(i,c,v,h,o,l,s.x,s.y)&&g(s.prev,s,s.next)>=0)return!1;s=s.prevZ}for(;y&&y.z<=D;){if(y.x>=Z&&y.x<=M&&y.y>=p&&y.y<=O&&y!==x&&y!==f&&F(i,c,v,h,o,l,y.x,y.y)&&g(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}function J(e,r,n){var t=e;do{var x=t.prev,u=t.next.next;!E(x,u)&&N(x,t,t.next,u)&&P(x,u)&&P(u,x)&&(r.push(x.i/n|0),r.push(t.i/n|0),r.push(u.i/n|0),H(t),H(t.next),t=e=u),t=t.next}while(t!==e);return w(t)}function K(e,r,n,t,x,u){var f=e;do{for(var i=f.next.next;i!==f.prev;){if(f.i!==i.i&&q(f,i)){var v=R(f,i);f=w(f,f.next),v=w(v,v.next),L(f,r,n,t,x,u,0),L(v,r,n,t,x,u,0);return}i=i.next}f=f.next}while(f!==e)}function Q(e,r,n,t){var x=[],u,f,i,v,o;for(u=0,f=r.length;u=n.next.y&&n.next.y!==n.y){var i=n.x+(x-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(i<=t&&i>u&&(u=i,f=n.x=n.x&&n.x>=o&&t!==n.x&&F(xf.x||n.x===f.x&&S(f,n)))&&(f=n,h=l)),n=n.next;while(n!==v);return f}function S(e,r){return g(e.prev,e,r.prev)<0&&g(r.next,e,e.next)<0}function X(e,r,n,t){var x=e;do x.z===0&&(x.z=A(x.x,x.y,r,n,t)),x.prevZ=x.prev,x.nextZ=x.next,x=x.next;while(x!==e);x.prevZ.nextZ=null,x.prevZ=null,Y(x)}function Y(e){var r,n,t,x,u,f,i,v,o=1;do{for(n=e,e=null,u=null,f=0;n;){for(f++,t=n,i=0,r=0;r0||v>0&&t;)i!==0&&(v===0||!t||n.z<=t.z)?(x=n,n=n.nextZ,i--):(x=t,t=t.nextZ,v--),u?u.nextZ=x:e=x,x.prevZ=u,u=x;n=t}u.nextZ=null,o*=2}while(f>1);return e}function A(e,r,n,t,x){return e=(e-n)*x|0,r=(r-t)*x|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,r=(r|r<<8)&16711935,r=(r|r<<4)&252645135,r=(r|r<<2)&858993459,r=(r|r<<1)&1431655765,e|r<<1}function b(e){var r=e,n=e;do(r.x=(e-f)*(u-i)&&(e-f)*(t-i)>=(n-f)*(r-i)&&(n-f)*(u-i)>=(x-f)*(t-i)}function q(e,r){return e.next.i!==r.i&&e.prev.i!==r.i&&!m(e,r)&&(P(e,r)&&P(r,e)&&d(e,r)&&(g(e.prev,e,r.prev)||g(e,r.prev,r))||E(e,r)&&g(e.prev,e,e.next)>0&&g(r.prev,r,r.next)>0)}function g(e,r,n){return(r.y-e.y)*(n.x-r.x)-(r.x-e.x)*(n.y-r.y)}function E(e,r){return e.x===r.x&&e.y===r.y}function N(e,r,n,t){var x=k(g(e,r,n)),u=k(g(e,r,t)),f=k(g(n,t,e)),i=k(g(n,t,r));return!!(x!==u&&f!==i||x===0&&_(e,n,r)||u===0&&_(e,t,r)||f===0&&_(n,e,t)||i===0&&_(n,r,t))}function _(e,r,n){return r.x<=Math.max(e.x,n.x)&&r.x>=Math.min(e.x,n.x)&&r.y<=Math.max(e.y,n.y)&&r.y>=Math.min(e.y,n.y)}function k(e){return e>0?1:e<0?-1:0}function m(e,r){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==r.i&&n.next.i!==r.i&&N(n,n.next,e,r))return!0;n=n.next}while(n!==e);return!1}function P(e,r){return g(e.prev,e,e.next)<0?g(e,r,e.next)>=0&&g(e,e.prev,r)>=0:g(e,r,e.prev)<0||g(e,e.next,r)<0}function d(e,r){var n=e,t=!1,x=(e.x+r.x)/2,u=(e.y+r.y)/2;do n.y>u!=n.next.y>u&&n.next.y!==n.y&&x<(n.next.x-n.x)*(u-n.y)/(n.next.y-n.y)+n.x&&(t=!t),n=n.next;while(n!==e);return t}function R(e,r){var n=new a(e.i,e.x,e.y),t=new a(r.i,r.x,r.y),x=e.next,u=r.prev;return e.next=r,r.prev=e,n.next=x,x.prev=n,t.next=n,n.prev=t,u.next=t,t.prev=u,t}function T(e,r,n,t){var x=new a(e,r,n);return t?(x.next=t.next,x.prev=t,t.next.prev=x,t.next=x):(x.prev=x,x.next=x),x}function H(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function a(e,r,n){this.i=e,this.x=r,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}z.deviation=function(e,r,n,t){var x=r&&r.length,u=x?r[0]*n:e.length,f=Math.abs(j(e,0,u,n));if(x)for(var i=0,v=r.length;i0&&(t+=e[x-1].length,n.holes.push(t))}return n};export{ne as a,ee as c,re as g}; diff --git a/assets/gameLoop.98fb07e1.js b/assets/gameLoop.98fb07e1.js new file mode 100644 index 0000000..360db9c --- /dev/null +++ b/assets/gameLoop.98fb07e1.js @@ -0,0 +1 @@ +import{_ as d,s as p,p as e,a as o,l as T,D as l,b as m,g as u}from"./index.2e12b347.js";import"./vue.d185782d.js";import{b3 as c}from"./@vue.7184beb0.js";/* empty css */import"./nanoevents.1080beb7.js";import"./lz-string.f2f3b7cf.js";import"./@ivanv.3bc3ebc4.js";import"./vue-next-select.f0e584b6.js";import"./vuedraggable.4713c6fe.js";import"./earcut.b6f90e68.js";import"./sortablejs.4c7e7419.js";import"./vue-textarea-autosize.35804eaf.js";import"./vue-toastification.768059b7.js";import"./@pixi.13a16b18.js";import"./ismobilejs.5c6954b9.js";import"./eventemitter3.dc5195d7.js";import"./url.6dd57c6c.js";import"./querystring.776b9ab3.js";import"./workbox-window.8d14e8b7.js";let n=null,f=null;function a(){const t=Date.now();let i=(t-e.time)/1e3;e.time=t;const r=i;if(o.lastTenTicks.push(r),o.lastTenTicks.length>10&&(o.lastTenTicks=o.lastTenTicks.slice(1)),!((f==null?void 0:f.value)&&!e.keepGoing)&&!o.hasNaN&&(i=Math.max(i,0),e.devSpeed!==0)){if(T.value=!1,e.offlineTime!=null){if(l.gt(e.offlineTime,m.offlineLimit*3600)&&(e.offlineTime=m.offlineLimit*3600),l.gt(e.offlineTime,0)&&e.devSpeed!==0){const s=Math.max(e.offlineTime/10,i);e.offlineTime=e.offlineTime-s,i+=s}else e.devSpeed===0&&(e.offlineTime+=i);(!e.offlineProd||l.lt(e.offlineTime,0))&&(e.offlineTime=null)}i=Math.min(i,m.maxTickLength),e.devSpeed!=null&&(i*=e.devSpeed),Number.isFinite(i)||(i=1e308),!l.eq(i,0)&&(e.timePlayed+=i,Number.isFinite(e.timePlayed)||(e.timePlayed=1e308),u.emit("update",i,r),p.unthrottled?(requestAnimationFrame(a),n!=null&&(clearInterval(n),n=null)):n==null&&(n=setInterval(a,50)))}}async function E(){f=(await d(()=>import("./index.2e12b347.js").then(function(t){return t.c}),["assets/index.2e12b347.js","assets/index.dac769fe.css","assets/@fontsource.f66d05e7.css","assets/vue.d185782d.js","assets/earcut.b6f90e68.js","assets/@vue.7184beb0.js","assets/nanoevents.1080beb7.js","assets/lz-string.f2f3b7cf.js","assets/@ivanv.3bc3ebc4.js","assets/vue-next-select.f0e584b6.js","assets/vue-next-select.9e6f4164.css","assets/vuedraggable.4713c6fe.js","assets/sortablejs.4c7e7419.js","assets/vue-textarea-autosize.35804eaf.js","assets/vue-toastification.768059b7.js","assets/vue-toastification.4b5f8ac8.css","assets/@pixi.13a16b18.js","assets/ismobilejs.5c6954b9.js","assets/eventemitter3.dc5195d7.js","assets/url.6dd57c6c.js","assets/querystring.776b9ab3.js","assets/workbox-window.8d14e8b7.js"])).hasWon,c(f,t=>{t&&u.emit("gameWon")}),p.unthrottled?requestAnimationFrame(a):n=setInterval(a,50)}export{E as startGameLoop}; diff --git a/assets/index.2e12b347.js b/assets/index.2e12b347.js new file mode 100644 index 0000000..d06dc68 --- /dev/null +++ b/assets/index.2e12b347.js @@ -0,0 +1,17 @@ +/* empty css */import"./vue.d185782d.js";import{a2 as M,H as a,n as be,u as At,x as O,b3 as Be,ae as D,o as h,a4 as S,a5 as g,r as je,K as te,aG as di,A as Ne,b4 as Pe,ac as d,U,as as Cn,aC as Bt,av as Ze,aJ as Wt,F as le,c as q,w as x,b9 as an,bs as or,au as ze,bu as Pt,T as ln,Y as ar,ab as C,y as un,l as lr,bv as Je,aN as he,a3 as V,aP as re,O as X,M as ee,aK as Ge,aI as We,D as st,bn as ur,br as fi,aM as Ft,ap as en,L as cr,ay as dr,C as Zn,be as fr}from"./@vue.7184beb0.js";import{c as pi}from"./nanoevents.1080beb7.js";import{L as it}from"./lz-string.f2f3b7cf.js";import{_ as z,C as pr}from"./@ivanv.3bc3ebc4.js";import{Y as mr}from"./vue-next-select.f0e584b6.js";import{D as gr}from"./vuedraggable.4713c6fe.js";import{p as hr}from"./vue-textarea-autosize.35804eaf.js";import{s as vr,u as kn}from"./vue-toastification.768059b7.js";import{A as mi,T as br,R as yr,B as _r,u as wr,E as Jn}from"./@pixi.13a16b18.js";import{v as Nr,n as Cr}from"./workbox-window.8d14e8b7.js";import"./earcut.b6f90e68.js";import"./sortablejs.4c7e7419.js";import"./ismobilejs.5c6954b9.js";import"./eventemitter3.dc5195d7.js";import"./url.6dd57c6c.js";import"./querystring.776b9ab3.js";const kr=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerpolicy&&(s.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?s.credentials="include":r.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}};kr();const Sr="modulepreload",Xn={},$r="./",tn=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${$r}${i}`,i in Xn)return;Xn[i]=!0;const r=i.endsWith(".css"),s=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${s}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":Sr,r||(o.as="script",o.crossOrigin=""),o.href=i,document.head.appendChild(o),r)return new Promise((u,c)=>{o.addEventListener("load",u),o.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},Mr="./projInfo-schema.json",Ir="Profectus Demo",Er="A demo project made in Profectus",Tr="profectus-demo",Pr="",Fr="",Vr="",Or="0.0",qr="Initial Commit",Dr=!0,Rr=!1,xr=2,Ar=!0,Br=null,Lr="Logo.png",jr=["main","c"],Ur=3600,zr=1,Hr=!0,Gr="base64";var ie={$schema:Mr,title:Ir,description:Er,id:Tr,author:Pr,discordName:Fr,discordLink:Vr,versionNumber:Or,versionTitle:qr,allowGoBack:Dr,defaultShowSmall:Rr,defaultDecimalsShown:xr,useHeader:Ar,banner:Br,logo:Lr,initialTabs:jr,maxTickLength:Ur,offlineLimit:zr,enablePausing:Hr,exportEncoding:Gr};class Wr{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 i=new Yr(t,n);for(this.first===void 0?(this.first=i,this.last=i):(i.next=this.first,this.first.prev=i,this.first=i),this.map.set(t,i);this.map.size>this.maxSize;){const r=this.last;this.map.delete(r.key),this.last=r.prev,this.last.next=void 0}}}class Yr{constructor(t,n){this.next=void 0,this.prev=void 0,this.key=t,this.value=n}}const mn=17,Kr=9e15,Zr=Math.log10(9e15),Jr=1/9e15,Xr=308,Qr=-324,Qn=5,es=(1<<10)-1,ts=function(){const e=[];for(let n=Qr+1;n<=Xr;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),ut=[2,Math.E,3,4,5,6,7,8,9,10],ns=[[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]],is=[[-1,-.9194161097107025,-.8335625019330468,-.7425599821143978,-.6466611521029437,-.5462617907227869,-.4419033816638769,-.3342645487554494,-.224140440909962,-.11241087890006762,0],[-1,-.90603157029014,-.80786507256596,-.7064666939634,-.60294836853664,-.49849837513117,-.39430303318768,-.29147201034755,-.19097820800866,-.09361896280296,0],[-1,-.9021579584316141,-.8005762598234203,-.6964780623319391,-.5911906810998454,-.486050182576545,-.3823089430815083,-.28106046722897615,-.1831906535795894,-.08935809204418144,0],[-1,-.8917227442365535,-.781258746326964,-.6705130326902455,-.5612813129406509,-.4551067709033134,-.35319256652135966,-.2563741554088552,-.1651412821106526,-.0796919581982668,0],[-1,-.8843387974366064,-.7678744063886243,-.6529563724510552,-.5415870994657841,-.4352842206588936,-.33504449124791424,-.24138853420685147,-.15445285440944467,-.07409659641336663,0],[-1,-.8786709358426346,-.7577735191184886,-.6399546189952064,-.527284921869926,-.4211627631006314,-.3223479611761232,-.23107655627789858,-.1472057700818259,-.07035171210706326,0],[-1,-.8740862815291583,-.7497032990976209,-.6297119746181752,-.5161838335958787,-.41036238255751956,-.31277212146489963,-.2233976621705518,-.1418697367979619,-.06762117662323441,0],[-1,-.8702632331800649,-.7430366914122081,-.6213373075161548,-.5072025698095242,-.40171437727184167,-.30517930701410456,-.21736343968190863,-.137710238299109,-.06550774483471955,0],[-1,-.8670016295947213,-.7373984232432306,-.6143173985094293,-.49973884395492807,-.394584953527678,-.2989649949848695,-.21245647317021688,-.13434688362382652,-.0638072667348083,0],[-1,-.8641642839543857,-.732534623168535,-.6083127477059322,-.4934049257184696,-.3885773075899922,-.29376029055315767,-.2083678561173622,-.13155653399373268,-.062401588652553186,0]];let y=function(t){return l.fromValue_noAlloc(t)},B=function(e,t,n){return l.fromComponents(e,t,n)},G=function(t,n,i){return l.fromComponents_noNormalize(t,n,i)};const nt=function(t,n){const i=n+1,r=Math.ceil(Math.log10(Math.abs(t))),s=Math.round(t*Math.pow(10,i-r))*Math.pow(10,r-i);return parseFloat(s.toFixed(Math.max(i-r,0)))},gn=function(e){return Math.sign(e)*Math.log10(Math.abs(e))},rs=function(e){if(!isFinite(e))return e;if(e<-50)return e===Math.trunc(e)?Number.NEGATIVE_INFINITY:0;let t=1;for(;e<10;)t=t*e,++e;e-=1;let n=.9189385332046727;n=n+(e+.5)*Math.log(e),n=n-e;const i=e*e;let r=e;return n=n+1/(12*r),r=r*i,n=n+1/(360*r),r=r*i,n=n+1/(1260*r),r=r*i,n=n+1/(1680*r),r=r*i,n=n+1/(1188*r),r=r*i,n=n+691/(360360*r),r=r*i,n=n+7/(1092*r),r=r*i,n=n+3617/(122400*r),Math.exp(n)/t},gi=.5671432904097838,ei=function(e,t=1e-10){let n,i;if(!Number.isFinite(e)||e===0)return e;if(e===1)return gi;e<10?n=0:n=Math.log(e)-Math.log(Math.log(e));for(let r=0;r<100;++r){if(i=(e*Math.exp(-n)+n*n)/(n+1),Math.abs(i-n).5?1:-1;if(Math.random()*20<1)return G(t,0,1);const n=Math.floor(Math.random()*(e+1));let i=n===0?Math.random()*616-308:Math.random()*16;Math.random()>.9&&(i=Math.trunc(i));let r=Math.pow(10,i);return Math.random()>.9&&(r=Math.trunc(r)),B(t,n,r)}static affordGeometricSeries_core(e,t,n,i){const r=t.mul(n.pow(i));return m.floor(e.div(r).mul(n.sub(1)).add(1).log10().div(n.log10()))}static sumGeometricSeries_core(e,t,n,i){return t.mul(n.pow(i)).mul(m.sub(1,n.pow(e))).div(m.sub(1,n))}static affordArithmeticSeries_core(e,t,n,i){const s=t.add(i.mul(n)).sub(n.div(2)),o=s.pow(2);return s.neg().add(o.add(n.mul(e).mul(2)).sqrt()).div(n).floor()}static sumArithmeticSeries_core(e,t,n,i){const r=t.add(i.mul(n));return e.div(2).mul(r.mul(2).plus(e.sub(1).mul(n)))}static efficiencyOfPurchase_core(e,t,n){return e.div(t).add(e.div(n))}normalize(){if(this.sign===0||this.mag===0&&this.layer===0)return this.sign=0,this.mag=0,this.layer=0,this;if(this.layer===0&&this.mag<0&&(this.mag=-this.mag,this.sign=-this.sign),this.layer===0&&this.mag=Kr)return this.layer+=1,this.mag=t*Math.log10(e),this;for(;e0;)this.layer-=1,this.layer===0?this.mag=Math.pow(10,this.mag):(this.mag=t*Math.pow(10,e),e=Math.abs(this.mag),t=Math.sign(this.mag));return this.layer===0&&(this.mag<0?(this.mag=-this.mag,this.sign=-this.sign):this.mag===0&&(this.sign=0)),this}fromComponents(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this.normalize(),this}fromComponents_noNormalize(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this}fromMantissaExponent(e,t){return this.layer=1,this.sign=Math.sign(e),e=Math.abs(e),this.mag=t+Math.log10(e),this.normalize(),this}fromMantissaExponent_noNormalize(e,t){return this.fromMantissaExponent(e,t),this}fromDecimal(e){return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}fromNumber(e){return this.mag=Math.abs(e),this.sign=Math.sign(e),this.layer=0,this.normalize(),this}fromString(e){const t=e,n=m.fromStringCache.get(t);if(n!==void 0)return this.fromDecimal(n);e=e.replace(",","");const i=e.split("^^^");if(i.length===2){const T=parseFloat(i[0]),E=parseFloat(i[1]),Y=i[1].split(";");let se=1;if(Y.length===2&&(se=parseFloat(Y[1]),isFinite(se)||(se=1)),isFinite(T)&&isFinite(E)){const P=m.pentate(T,E,se);return this.sign=P.sign,this.layer=P.layer,this.mag=P.mag,m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}}const r=e.split("^^");if(r.length===2){const T=parseFloat(r[0]),E=parseFloat(r[1]),Y=r[1].split(";");let se=1;if(Y.length===2&&(se=parseFloat(Y[1]),isFinite(se)||(se=1)),isFinite(T)&&isFinite(E)){const P=m.tetrate(T,E,se);return this.sign=P.sign,this.layer=P.layer,this.mag=P.mag,m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}}const s=e.split("^");if(s.length===2){const T=parseFloat(s[0]),E=parseFloat(s[1]);if(isFinite(T)&&isFinite(E)){const Y=m.pow(T,E);return this.sign=Y.sign,this.layer=Y.layer,this.mag=Y.mag,m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}}e=e.trim().toLowerCase();let o,u,c=e.split("pt");if(c.length===2){o=10,u=parseFloat(c[0]),c[1]=c[1].replace("(",""),c[1]=c[1].replace(")","");let T=parseFloat(c[1]);if(isFinite(T)||(T=1),isFinite(o)&&isFinite(u)){const E=m.tetrate(o,u,T);return this.sign=E.sign,this.layer=E.layer,this.mag=E.mag,m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}}if(c=e.split("p"),c.length===2){o=10,u=parseFloat(c[0]),c[1]=c[1].replace("(",""),c[1]=c[1].replace(")","");let T=parseFloat(c[1]);if(isFinite(T)||(T=1),isFinite(o)&&isFinite(u)){const E=m.tetrate(o,u,T);return this.sign=E.sign,this.layer=E.layer,this.mag=E.mag,m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}}const f=e.split("e"),p=f.length-1;if(p===0){const T=parseFloat(e);if(isFinite(T))return this.fromNumber(T),m.fromStringCache.size>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}else if(p===1){const T=parseFloat(e);if(isFinite(T)&&T!==0)return this.fromNumber(T),m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}const v=e.split("e^");if(v.length===2){this.sign=1,v[0].charAt(0)=="-"&&(this.sign=-1);let T="";for(let E=0;E=43&&Y<=57||Y===101)T+=v[1].charAt(E);else return this.layer=parseFloat(T),this.mag=parseFloat(v[1].substr(E+1)),this.normalize(),m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}}if(p<1)return this.sign=0,this.layer=0,this.mag=0,m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this;const w=parseFloat(f[0]);if(w===0)return this.sign=0,this.layer=0,this.mag=0,m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this;let k=parseFloat(f[f.length-1]);if(p>=2){const T=parseFloat(f[f.length-2]);isFinite(T)&&(k*=Math.sign(T),k+=gn(T))}if(!isFinite(w))this.sign=f[0]==="-"?-1:1,this.layer=p,this.mag=k;else if(p===1)this.sign=Math.sign(w),this.layer=1,this.mag=k+Math.log10(Math.abs(w));else if(this.sign=Math.sign(w),this.layer=p,p===2){const T=m.mul(B(1,2,k),y(w));return this.sign=T.sign,this.layer=T.layer,this.mag=T.mag,m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}else this.mag=k;return this.normalize(),m.fromStringCache.maxSize>=1&&m.fromStringCache.set(t,m.fromDecimal(this)),this}fromValue(e){return e instanceof m?this.fromDecimal(e):typeof e=="number"?this.fromNumber(e):typeof e=="string"?this.fromString(e):(this.sign=0,this.layer=0,this.mag=0,this)}toNumber(){return Number.isFinite(this.layer)?this.layer===0?this.sign*this.mag:this.layer===1?this.sign*Math.pow(10,this.mag):this.mag>0?this.sign>0?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0:Number.NaN}mantissaWithDecimalPlaces(e){return isNaN(this.m)?Number.NaN:this.m===0?0:nt(this.m,e)}magnitudeWithDecimalPlaces(e){return isNaN(this.mag)?Number.NaN:this.mag===0?0:nt(this.mag,e)}toString(){return isNaN(this.layer)||isNaN(this.sign)||isNaN(this.mag)?"NaN":this.mag===Number.POSITIVE_INFINITY||this.layer===Number.POSITIVE_INFINITY?this.sign===1?"Infinity":"-Infinity":this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toString():this.m+"e"+this.e:this.layer===1?this.m+"e"+this.e:this.layer<=Qn?(this.sign===-1?"-":"")+"e".repeat(this.layer)+this.mag:(this.sign===-1?"-":"")+"(e^"+this.layer+")"+this.mag}toExponential(e){return this.layer===0?(this.sign*this.mag).toExponential(e):this.toStringWithDecimalPlaces(e)}toFixed(e){return this.layer===0?(this.sign*this.mag).toFixed(e):this.toStringWithDecimalPlaces(e)}toPrecision(e){return this.e<=-7?this.toExponential(e-1):e>this.e?this.toFixed(e-this.exponent-1):this.toExponential(e-1)}valueOf(){return this.toString()}toJSON(){return this.toString()}toStringWithDecimalPlaces(e){return this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toFixed(e):nt(this.m,e)+"e"+nt(this.e,e):this.layer===1?nt(this.m,e)+"e"+nt(this.e,e):this.layer<=Qn?(this.sign===-1?"-":"")+"e".repeat(this.layer)+nt(this.mag,e):(this.sign===-1?"-":"")+"(e^"+this.layer+")"+nt(this.mag,e)}abs(){return G(this.sign===0?0:1,this.layer,this.mag)}neg(){return G(-this.sign,this.layer,this.mag)}negate(){return this.neg()}negated(){return this.neg()}sgn(){return this.sign}round(){return this.mag<0?m.dZero:this.layer===0?B(this.sign,0,Math.round(this.mag)):this}floor(){return this.mag<0?m.dZero:this.layer===0?B(this.sign,0,Math.floor(this.mag)):this}ceil(){return this.mag<0?m.dZero:this.layer===0?B(this.sign,0,Math.ceil(this.mag)):this}trunc(){return this.mag<0?m.dZero:this.layer===0?B(this.sign,0,Math.trunc(this.mag)):this}add(e){const t=y(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer)||this.sign===0)return t;if(t.sign===0)return this;if(this.sign===-t.sign&&this.layer===t.layer&&this.mag===t.mag)return G(0,0,0);let n,i;if(this.layer>=2||t.layer>=2)return this.maxabs(t);if(m.cmpabs(this,t)>0?(n=this,i=t):(n=t,i=this),n.layer===0&&i.layer===0)return m.fromNumber(n.sign*n.mag+i.sign*i.mag);const r=n.layer*Math.sign(n.mag),s=i.layer*Math.sign(i.mag);if(r-s>=2)return n;if(r===0&&s===-1){if(Math.abs(i.mag-Math.log10(n.mag))>mn)return n;{const o=Math.pow(10,Math.log10(n.mag)-i.mag),u=i.sign+n.sign*o;return B(Math.sign(u),1,i.mag+Math.log10(Math.abs(u)))}}if(r===1&&s===0){if(Math.abs(n.mag-Math.log10(i.mag))>mn)return n;{const o=Math.pow(10,n.mag-Math.log10(i.mag)),u=i.sign+n.sign*o;return B(Math.sign(u),1,Math.log10(i.mag)+Math.log10(Math.abs(u)))}}if(Math.abs(n.mag-i.mag)>mn)return n;{const o=Math.pow(10,n.mag-i.mag),u=i.sign+n.sign*o;return B(Math.sign(u),1,i.mag+Math.log10(Math.abs(u)))}}plus(e){return this.add(e)}sub(e){return this.add(y(e).neg())}subtract(e){return this.sub(e)}minus(e){return this.sub(e)}mul(e){const t=y(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer))return t;if(this.sign===0||t.sign===0)return G(0,0,0);if(this.layer===t.layer&&this.mag===-t.mag)return G(this.sign*t.sign,0,1);let n,i;if(this.layer>t.layer||this.layer==t.layer&&Math.abs(this.mag)>Math.abs(t.mag)?(n=this,i=t):(n=t,i=this),n.layer===0&&i.layer===0)return m.fromNumber(n.sign*i.sign*n.mag*i.mag);if(n.layer>=3||n.layer-i.layer>=2)return B(n.sign*i.sign,n.layer,n.mag);if(n.layer===1&&i.layer===0)return B(n.sign*i.sign,1,n.mag+Math.log10(i.mag));if(n.layer===1&&i.layer===1)return B(n.sign*i.sign,1,n.mag+i.mag);if(n.layer===2&&i.layer===1){const r=B(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(B(Math.sign(i.mag),i.layer-1,Math.abs(i.mag)));return B(n.sign*i.sign,r.layer+1,r.sign*r.mag)}if(n.layer===2&&i.layer===2){const r=B(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(B(Math.sign(i.mag),i.layer-1,Math.abs(i.mag)));return B(n.sign*i.sign,r.layer+1,r.sign*r.mag)}throw Error("Bad arguments to mul: "+this+", "+e)}multiply(e){return this.mul(e)}times(e){return this.mul(e)}div(e){const t=y(e);return this.mul(t.recip())}divide(e){return this.div(e)}divideBy(e){return this.div(e)}dividedBy(e){return this.div(e)}recip(){return this.mag===0?m.dNaN:this.layer===0?B(this.sign,0,1/this.mag):B(this.sign,this.layer,-this.mag)}reciprocal(){return this.recip()}reciprocate(){return this.recip()}cmp(e){const t=y(e);return this.sign>t.sign?1:this.sign0?this.layer:-this.layer,i=t.mag>0?t.layer:-t.layer;return n>i?1:nt.mag?1:this.mag0?t:this}clamp(e,t){return this.max(e).min(t)}clampMin(e){return this.max(e)}clampMax(e){return this.min(e)}cmp_tolerance(e,t){const n=y(e);return this.eq_tolerance(n,t)?0:this.cmp(n)}compare_tolerance(e,t){return this.cmp_tolerance(e,t)}eq_tolerance(e,t){const n=y(e);if(t==null&&(t=1e-7),this.sign!==n.sign||Math.abs(this.layer-n.layer)>1)return!1;let i=this.mag,r=n.mag;return this.layer>n.layer&&(r=gn(r)),this.layer0?B(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):B(1,0,Math.log10(this.mag))}log10(){return this.sign<=0?m.dNaN:this.layer>0?B(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):B(this.sign,0,Math.log10(this.mag))}log(e){return e=y(e),this.sign<=0||e.sign<=0||e.sign===1&&e.layer===0&&e.mag===1?m.dNaN:this.layer===0&&e.layer===0?B(this.sign,0,Math.log(this.mag)/Math.log(e.mag)):m.div(this.log10(),e.log10())}log2(){return this.sign<=0?m.dNaN:this.layer===0?B(this.sign,0,Math.log2(this.mag)):this.layer===1?B(Math.sign(this.mag),0,Math.abs(this.mag)*3.321928094887362):this.layer===2?B(Math.sign(this.mag),1,Math.abs(this.mag)+.5213902276543247):B(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}ln(){return this.sign<=0?m.dNaN:this.layer===0?B(this.sign,0,Math.log(this.mag)):this.layer===1?B(Math.sign(this.mag),0,Math.abs(this.mag)*2.302585092994046):this.layer===2?B(Math.sign(this.mag),1,Math.abs(this.mag)+.36221568869946325):B(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}logarithm(e){return this.log(e)}pow(e){const t=y(e),n=this,i=t;if(n.sign===0)return i.eq(0)?G(1,0,1):n;if(n.sign===1&&n.layer===0&&n.mag===1)return n;if(i.sign===0)return G(1,0,1);if(i.sign===1&&i.layer===0&&i.mag===1)return n;const r=n.absLog10().mul(i).pow10();return this.sign===-1?Math.abs(i.toNumber()%2)%2===1?r.neg():Math.abs(i.toNumber()%2)%2===0?r:m.dNaN:r}pow10(){if(!Number.isFinite(this.layer)||!Number.isFinite(this.mag))return m.dNaN;let e=this;if(e.layer===0){const t=Math.pow(10,e.sign*e.mag);if(Number.isFinite(t)&&Math.abs(t)>=.1)return B(1,0,t);if(e.sign===0)return m.dOne;e=G(e.sign,e.layer+1,Math.log10(e.mag))}return e.sign>0&&e.mag>=0?B(e.sign,e.layer+1,e.mag):e.sign<0&&e.mag>=0?B(-e.sign,e.layer+1,-e.mag):m.dOne}pow_base(e){return y(e).pow(this)}root(e){const t=y(e);return this.pow(t.recip())}factorial(){return this.mag<0?this.add(1).gamma():this.layer===0?this.add(1).gamma():this.layer===1?m.exp(m.mul(this,m.ln(this).sub(1))):m.exp(this)}gamma(){if(this.mag<0)return this.recip();if(this.layer===0){if(this.lt(G(1,0,24)))return m.fromNumber(rs(this.sign*this.mag));const e=this.mag-1;let t=.9189385332046727;t=t+(e+.5)*Math.log(e),t=t-e;const n=e*e;let i=e,r=12*i,s=1/r,o=t+s;if(o===t||(t=o,i=i*n,r=360*i,s=1/r,o=t-s,o===t))return m.exp(t);t=o,i=i*n,r=1260*i;let u=1/r;return t=t+u,i=i*n,r=1680*i,u=1/r,t=t-u,m.exp(t)}else return this.layer===1?m.exp(m.mul(this,m.ln(this).sub(1))):m.exp(this)}lngamma(){return this.gamma().ln()}exp(){return this.mag<0?m.dOne:this.layer===0&&this.mag<=709.7?m.fromNumber(Math.exp(this.sign*this.mag)):this.layer===0?B(1,1,this.sign*Math.log10(Math.E)*this.mag):this.layer===1?B(1,2,this.sign*(Math.log10(.4342944819032518)+this.mag)):B(1,this.layer+1,this.sign*this.mag)}sqr(){return this.pow(2)}sqrt(){if(this.layer===0)return m.fromNumber(Math.sqrt(this.sign*this.mag));if(this.layer===1)return B(1,2,Math.log10(this.mag)-.3010299956639812);{const e=m.div(G(this.sign,this.layer-1,this.mag),G(1,0,2));return e.layer+=1,e.normalize(),e}}cube(){return this.pow(3)}cbrt(){return this.pow(1/3)}tetrate(e=2,t=G(1,0,1)){if(e===1)return m.pow(this,t);if(e===0)return new m(t);if(this.eq(m.dOne))return m.dOne;if(this.eq(-1))return m.pow(this,t);if(e===Number.POSITIVE_INFINITY){const r=this.toNumber();if(r<=1.444667861009766&&r>=.06598803584531254){if(r>1.444667861009099)return m.fromNumber(Math.E);const s=m.ln(this).neg();return s.lambertw().div(s)}else return r>1.444667861009766?m.fromNumber(Number.POSITIVE_INFINITY):m.dNaN}if(this.eq(m.dZero)){let r=Math.abs((e+1)%2);return r>1&&(r=2-r),m.fromNumber(r)}if(e<0)return m.iteratedlog(t,this,-e);t=y(t);const n=e;e=Math.trunc(e);const i=n-e;if(this.gt(m.dZero)&&this.lte(1.444667861009766)){e=Math.min(1e4,e);for(let r=0;r3)return G(t.sign,t.layer+(e-r-1),t.mag);if(r>1e4)return t}return t}iteratedexp(e=2,t=G(1,0,1)){return this.tetrate(e,t)}iteratedlog(e=10,t=1){if(t<0)return m.tetrate(e,-t,this);e=y(e);let n=m.fromDecimal(this);const i=t;t=Math.trunc(t);const r=i-t;if(n.layer-e.layer>3){const s=Math.min(t,n.layer-e.layer-3);t-=s,n.layer-=s}for(let s=0;s1e4)return n}return r>0&&r<1&&(e.eq(10)?n=n.layeradd10(-r):n=n.layeradd(-r,e)),n}slog(e=10,t=100){let n=.001,i=!1,r=!1,s=this.slog_internal(e).toNumber();for(let o=1;o1&&r!=c&&(i=!0),r=c,i?n/=2:n*=2,n=Math.abs(n)*(c?-1:1),s+=n,n===0)break}return m.fromNumber(s)}slog_internal(e=10){if(e=y(e),e.lte(m.dZero)||e.eq(m.dOne))return m.dNaN;if(e.lt(m.dOne))return this.eq(m.dOne)?m.dZero:this.eq(m.dZero)?m.dNegOne:m.dNaN;if(this.mag<0||this.eq(m.dZero))return m.dNegOne;let t=0,n=m.fromDecimal(this);if(n.layer-e.layer>3){const i=n.layer-e.layer-3;t+=i,n.layer-=i}for(let i=0;i<100;++i)if(n.lt(m.dZero))n=m.pow(e,n),t-=1;else{if(n.lte(m.dOne))return m.fromNumber(t+m.slog_critical(e.toNumber(),n.toNumber()));t+=1,n=m.log(n,e)}return m.fromNumber(t)}static slog_critical(e,t){return e>10?t-1:m.critical_section(e,t,is)}static tetrate_critical(e,t){return m.critical_section(e,t,ns)}static critical_section(e,t,n){t*=10,t<0&&(t=0),t>10&&(t=10),e<2&&(e=2),e>10&&(e=10);let i=0,r=0;for(let o=0;oe){const u=(e-ut[o])/(ut[o+1]-ut[o]);i=n[o][Math.floor(t)]*(1-u)+n[o+1][Math.floor(t)]*u,r=n[o][Math.ceil(t)]*(1-u)+n[o+1][Math.ceil(t)]*u;break}const s=t-Math.floor(t);return i<=0||r<=0?i*(1-s)+r*s:Math.pow(e,Math.log(i)/Math.log(e)*(1-s)+Math.log(r)/Math.log(e)*s)}layeradd10(e){e=m.fromValue_noAlloc(e).toNumber();const t=m.fromDecimal(this);if(e>=1){t.mag<0&&t.layer>0?(t.sign=0,t.mag=0,t.layer=0):t.sign===-1&&t.layer==0&&(t.sign=1,t.mag=-t.mag);const n=Math.trunc(e);e-=n,t.layer+=n}if(e<=-1){const n=Math.trunc(e);if(e-=n,t.layer+=n,t.layer<0)for(let i=0;i<100;++i){if(t.layer++,t.mag=Math.log10(t.mag),!isFinite(t.mag))return t.sign===0&&(t.sign=1),t.layer<0&&(t.layer=0),t.normalize();if(t.layer>=0)break}}for(;t.layer<0;)t.layer++,t.mag=Math.log10(t.mag);return t.sign===0&&(t.sign=1,t.mag===0&&t.layer>=1&&(t.layer-=1,t.mag=1)),t.normalize(),e!==0?t.layeradd(e,10):t}layeradd(e,t){const i=this.slog(t).toNumber()+e;return i>=0?m.tetrate(t,i):Number.isFinite(i)?i>=-1?m.log(m.tetrate(t,i+1),t):m.log(m.log(m.tetrate(t,i+2),t),t):m.dNaN}lambertw(){if(this.lt(-.3678794411710499))throw Error("lambertw is unimplemented for results less than -1, sorry!");if(this.mag<0)return m.fromNumber(ei(this.toNumber()));if(this.layer===0)return m.fromNumber(ei(this.sign*this.mag));if(this.layer===1)return ti(this);if(this.layer===2)return ti(this);if(this.layer>=3)return G(this.sign,this.layer-1,this.mag);throw new Error("Unhandled behavior in lambertw()")}ssqrt(){if(this.sign==1&&this.layer>=3)return G(this.sign,this.layer-1,this.mag);const e=this.ln();return e.div(e.lambertw())}pentate(e=2,t=G(1,0,1)){t=y(t);const n=e;e=Math.trunc(e);const i=n-e;i!==0&&(t.eq(m.dOne)?(++e,t=m.fromNumber(i)):this.eq(10)?t=t.layeradd10(i):t=t.layeradd(i,this));for(let r=0;r10)return t}return t}sin(){return this.mag<0?this:this.layer===0?m.fromNumber(Math.sin(this.sign*this.mag)):G(0,0,0)}cos(){return this.mag<0?m.dOne:this.layer===0?m.fromNumber(Math.cos(this.sign*this.mag)):G(0,0,0)}tan(){return this.mag<0?this:this.layer===0?m.fromNumber(Math.tan(this.sign*this.mag)):G(0,0,0)}asin(){return this.mag<0?this:this.layer===0?m.fromNumber(Math.asin(this.sign*this.mag)):G(Number.NaN,Number.NaN,Number.NaN)}acos(){return this.mag<0?m.fromNumber(Math.acos(this.toNumber())):this.layer===0?m.fromNumber(Math.acos(this.sign*this.mag)):G(Number.NaN,Number.NaN,Number.NaN)}atan(){return this.mag<0?this:this.layer===0?m.fromNumber(Math.atan(this.sign*this.mag)):m.fromNumber(Math.atan(this.sign*(1/0)))}sinh(){return this.exp().sub(this.negate().exp()).div(2)}cosh(){return this.exp().add(this.negate().exp()).div(2)}tanh(){return this.sinh().div(this.cosh())}asinh(){return m.ln(this.add(this.sqr().add(1).sqrt()))}acosh(){return m.ln(this.add(this.sqr().sub(1).sqrt()))}atanh(){return this.abs().gte(1)?G(Number.NaN,Number.NaN,Number.NaN):m.ln(this.add(1).div(m.fromNumber(1).sub(this))).div(2)}ascensionPenalty(e){return e===0?this:this.root(m.pow(10,e))}egg(){return this.add(9)}lessThanOrEqualTo(e){return this.cmp(e)<1}lessThan(e){return this.cmp(e)<0}greaterThanOrEqualTo(e){return this.cmp(e)>-1}greaterThan(e){return this.cmp(e)>0}};let l=m;l.fromStringCache=new Wr(es);l.dZero=G(0,0,0);l.dOne=G(1,0,1);l.dNegOne=G(-1,0,1);l.dTwo=G(1,0,2);l.dTen=G(1,0,10);l.dNaN=G(Number.NaN,Number.NaN,Number.NaN);l.dInf=G(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);l.dNegInf=G(-1,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);l.dNumberMax=B(1,0,Number.MAX_VALUE);l.dNumberMin=B(1,0,Number.MIN_VALUE);y=l.fromValue_noAlloc;B=l.fromComponents;G=l.fromComponents_noNormalize;l.fromMantissaExponent;l.fromMantissaExponent_noNormalize;const ss=new l(1);function $t(e,t,n=!0){let i=l.log10(e).floor(),r=l.div(e,l.pow(10,i));r.toStringWithDecimalPlaces(t)==="10"&&(r=ss,i=i.add(1));const s=i.gte(1e9)?De(i,Math.max(Math.max(t,3),ie.defaultDecimalsShown)):i.gte(1e4)?nn(i,0):i.toStringWithDecimalPlaces(0);return n?r.toStringWithDecimalPlaces(t)+"e"+s:"e"+s}function nn(e,t){if(e==null)return"NaN";if(e=new l(e),e.mag<.001)return 0 .toFixed(t);const i=e.toStringWithDecimalPlaces(t).split(".");return i[0]=i[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),i.length==1?i[0]:i[0]+"."+i[1]}function hi(e,t){return e==null?"NaN":(e=new l(e),e.mag<1e-4?0 .toFixed(t):(e.mag<.1&&t!==0&&(t=Math.max(Math.max(t,e.log10().negate().ceil().toNumber()),ie.defaultDecimalsShown)),e.toStringWithDecimalPlaces(t)))}const os=new l("eeee1000"),as=new l("e100000"),ni=new l("e1000"),vi=new l(1e9),ls=new l(1e6),us=new l(1e3),cs=new l(.98),ds=new l(.001),bi=new l(0);function De(e,t,n){if(t==null&&(t=ie.defaultDecimalsShown),n=n!=null?n:ie.defaultShowSmall,e=new l(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if(e.sign<0)return"-"+De(e.neg(),t);if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(os)){const i=e.slog();return i.gte(ls)?"F"+De(i.floor()):l.pow(10,i.sub(i.floor())).toStringWithDecimalPlaces(3)+"F"+nn(i.floor(),0)}else{if(e.gte(as))return $t(e,0,!1);if(e.gte(ni))return $t(e,0);if(e.gte(vi))return $t(e,t);if(e.gte(us))return nn(e,0);if(e.gte(ds)||!n)return hi(e,t);if(e.eq(bi))return 0 .toFixed(t)}return e=_i(e),e.lt(ni)?$t(e,t).replace(/([^(?:e|F)]*)$/,"-$1"):De(e,t)+"\u207B\xB9"}function qe(e){return e=new l(e),e.sign<0?"-"+qe(e.neg()):e.gte(vi)||e.lte(cs)&&!e.eq(bi)?De(e):De(e,0)}function yi(e){return l.lt(e,0)?"-"+yi(l.neg(e)):l.gt(e,2**51)?De(l.div(e,31536e3))+"y":(e=new l(e).toNumber(),e<60?De(e)+"s":e<3600?qe(Math.floor(e/60))+"m "+De(e%60)+"s":e<86400?qe(Math.floor(e/3600))+"h "+qe(Math.floor(e/60)%60)+"m "+qe(e%60)+"s":e<31536e3?qe(Math.floor(e/84600)%365)+"d "+qe(Math.floor(e/3600)%24)+"h "+qe(Math.floor(e/60)%60)+"m":qe(Math.floor(e/31536e3))+"y "+qe(Math.floor(e/84600)%365)+"d "+qe(Math.floor(e/3600)%24)+"h")}function fs(e,t,n){e=new l(e);let i=e.toStringWithDecimalPlaces(t);return new l(i).gte(n)&&(i=l.sub(n,Math.pow(.1,t)).toStringWithDecimalPlaces(t)),i}function ps(e,t){return De(e,t,!0)}function _i(e){let t=l.log10(e).ceil();const n=l.div(e,l.pow(10,t));return t=t.neg(),e=new l(10).pow(t).times(n),e}var ms=Object.freeze(Object.defineProperty({__proto__:null,default:l,exponentialFormat:$t,commaFormat:nn,regularFormat:hi,format:De,formatWhole:qe,formatTime:yi,toPlaces:fs,formatSmall:ps,invertOOM:_i},Symbol.toStringTag,{value:"Module"}));const{exponentialFormat:gs,commaFormat:hs,regularFormat:vs,format:Ce,formatWhole:Se,formatTime:cn,toPlaces:bs,formatSmall:Vt,invertOOM:ys}=ms;window.Decimal=l;window.exponentialFormat=gs;window.commaFormat=hs;window.regularFormat=vs;window.format=Ce;window.formatWhole=Se;window.formatTime=cn;window.toPlaces=bs;window.formatSmall=Vt;window.invertOOM=ys;function wi(e){let t=e.replace(/([A-Z])/g," $1");return t=t.charAt(0).toUpperCase()+t.slice(1),t}function ft(e){return typeof e=="function"}var Q=(e=>(e.Up="Up",e.Down="Down",e.Left="Left",e.Right="Right",e.Default="Up",e))(Q||{});const Ot=Symbol("DoNotCache");function _(e,t){const n=e[t];ft(n)&&n.length===0&&!n[Ot]?e[t]=M(n.bind(e)):ft(n)&&(e[t]=n.bind(e),e[t][Ot]=!0)}function Ue(e){return ft(e)&&!e[Ot]&&(e=M(e)),e}const ge=Symbol("Component"),ye=Symbol("GatherProps");let _s=0;function Me(e="feature-"){return e+_s++}var W=(e=>(e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.None=2]="None",e))(W||{});function we(e){const t=a(e);return t!==2&&t!==!1}function Re(e){return a(e)===1}function L(e){return e[Ot]=!0,e}function H(e,t,n){e[t]===void 0&&n!=null&&(e[t]=n)}function Ni(e,...t){const n=[],i=r=>{Object.keys(r).forEach(s=>{const o=r[s];o!=null&&typeof o=="object"&&(t.includes(o.type)?n.push(o):!(o instanceof l)&&!be(o)&&i(o))})};return i(e),n}const ct={variables:{"--foreground":"#dfdfdf","--background":"#0f0f0f","--feature-foreground":"#0f0f0f","--tooltip-background":"rgba(0, 0, 0, 0.75)","--raised-background":"#0f0f0f","--points":"#ffffff","--locked":"#bf8f8f","--highlighted":"#333","--bought":"#77bf5f","--danger":"rgb(220, 53, 69)","--link":"#02f2f2","--outline":"#dfdfdf","--accent1":"#627a82","--accent2":"#658262","--accent3":"#7c6282","--border-radius":"15px","--modal-border":"solid 2px var(--color)","--feature-margin":"0px"},floatingTabs:!0,mergeAdjacent:!0,showPin:!0};var Sn=(e=>(e.Classic="classic",e.Paper="paper",e.Nordic="nordic",e.Aqua="aqua",e))(Sn||{}),Xe={classic:ct,paper:{...ct,variables:{...ct.variables,"--background":"#2a323d","--feature-foreground":"#000","--raised-background":"#333c4a","--locked":"#3a3e45","--bought":"#5C8A58","--outline":"#333c4a","--border-radius":"4px","--modal-border":"","--feature-margin":"5px"},floatingTabs:!1},nordic:{...ct,variables:{...ct.variables,"--foreground":"#D8DEE9","--background":"#2E3440","--feature-foreground":"#000","--raised-background":"#3B4252","--points":"#E5E9F0","--locked":"#4c566a","--highlighted":"#434c5e","--bought":"#8FBCBB","--danger":"#D08770","--link":"#88C0D0","--outline":"#3B4252","--accent1":"#B48EAD","--accent2":"#A3BE8C","--accent3":"#EBCB8B","--border-radius":"4px","--modal-border":"solid 2px #3B4252","--feature-margin":"5px"},floatingTabs:!1},aqua:{...ct,variables:{...ct.variables,"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"}}};const ve=pi();"fonts"in document&&(document.fonts.onloadingdone=()=>ve.emit("fontsLoaded"));var ws=Object.freeze(Object.defineProperty({__proto__:null,globalBus:ve},Symbol.toStringTag,{value:"Module"}));const Ns=At({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{}});var R=window.player=Ns;function Ci(e){return JSON.stringify(e,(t,n)=>a(n))}function ki(e={}){return Object.assign({id:`${ie.id}-0`,name:"Default Save",tabs:ie.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:0,timePlayed:0,keepGoing:!1,modID:ie.id,modVersion:ie.versionNumber,layers:{}},e)}function Fe(e){const t=it.compressToUTF16(Ci(e!=null?e:R));return localStorage.setItem((e!=null?e:R).id,t),t}async function Cs(){Ss();try{let e=localStorage.getItem(J.active);if(e==null){await pt(_t());return}if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=it.decompressFromUTF16(e);else throw"Unable to determine save encoding";const t=JSON.parse(e);if(t.modID!==ie.id){await pt(_t());return}t.id=J.active,await pt(t)}catch(e){console.error(`Failed to load save. Falling back to new save. +`,e),await pt(_t())}}function _t(){const e=Jt(),t=ki({id:e});return Fe(t),J.saves.push(e),t}function Jt(){let e,t=0;do e=`${ie.id}-${t++}`;while(localStorage.getItem(e)!=null);return e}const $n=O(!1);async function pt(e){console.info("Loading save",e),$n.value=!0;const{layers:t,removeLayer:n,addLayer:i}=await tn(()=>Promise.resolve().then(function(){return Gs}),void 0),{fixOldSave:r,getInitialLayers:s}=await tn(()=>Promise.resolve().then(function(){return jd}),void 0);for(const o in t){const u=t[o];u&&n(u)}s(e).forEach(o=>i(o,e)),e=ki(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,ie.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==ie.versionNumber&&(r(e.modVersion,e),e.modVersion=ie.versionNumber),Object.assign(R,e),J.active=R.id,ve.emit("onLoad")}setInterval(()=>{R.autosave&&Fe()},1e3);window.onbeforeunload=()=>{R.autosave&&Fe()};window.save=Fe;const ks=window.hardReset=async()=>{await pt(_t())};window.deleteLowerSaves=()=>{const e=Object.values(J.saves).indexOf(R.id)+1;Object.values(J.saves).slice(e).forEach(t=>localStorage.removeItem(t)),J.saves=J.saves.slice(0,e)};const qt=At({active:"",saves:[],showTPS:!0,theme:Sn.Nordic,unthrottled:!1,alignUnits:!1});Be(qt,e=>{const t=it.compressToUTF16(JSON.stringify(e));localStorage.setItem(ie.id,t)},{deep:!0});var J=window.settings=qt;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:Sn.Nordic,alignUnits:!1};ve.emit("loadSettings",e),Object.assign(qt,e),ks()};function Ss(){try{let e=localStorage.getItem(ie.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(qt,t)}ve.emit("loadSettings",qt)}catch{}}const Si=At([]);function $i(e){Si.push(e)}const Mi=At([]);function $s(e){Mi.push(e)}const Ms=At([]),Is={class:"table"},Xt=D({__name:"Column",setup(e){const t=M(()=>Xe[J.theme].mergeAdjacent);return(n,i)=>(h(),S("div",Is,[g("div",{class:te(["col",{mergeAdjacent:a(t)}])},[je(n.$slots,"default")],2)]))}}),Es={class:"table"},Et=D({__name:"Row",setup(e){const t=M(()=>Xe[J.theme].mergeAdjacent);return(n,i)=>(h(),S("div",Es,[g("div",{class:te(["row",{mergeAdjacent:a(t)}])},[je(n.$slots,"default")],2)]))}});function Ii(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Cn(e)}function j(e,t="span"){return typeof e=="function"?D({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}`),D({template:e})):D({render:()=>({})}):e}function de(e){if(Ve(e))return typeof e=="function"?e():j(e);const t=e[ge];return d(t,e[ye](),null)}function xe(...e){let t;return d(Et,null,Ii(t=e.map(de))?t:{default:()=>[t]})}function Ts(...e){let t;return d(Xt,null,Ii(t=e.map(de))?t:{default:()=>[t]})}function Ke(e){if(Ve(e))return typeof e=="function"?e():typeof e=="string"?d(U,null,[e]):d(e,null,null);const t=e[ge];return d(t,e[ye](),null)}function ii(e,t){return e.reduce((n,i)=>d(U,null,[n,t,i]))}function Ve(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[Ot]===!0}function Mn(e,t){const n=O(null),i=O(void 0);function r(u){n.value||(n.value=setInterval(o,250)),i.value=u}function s(){n.value&&(clearInterval(n.value),n.value=null)}function o(){t&&t.value?t.value():e&&e.value&&e.value(i.value)}return di(s),{start:r,stop:s,handleHolding:o}}function Nt(e,t="div"){const n=Ne();return Pe(()=>{n.value=j(ue(e),t)}),n}function Qe(e,t="div"){const n=Ne(null);return Pe(()=>{const i=ue(e);n.value=i==""||i==null?null:j(i,t)}),n}function ue(e){return a(a(e))}function N(...e){return e.includes(Object)||e.push(Object),e}const Ps=D({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var p;const n=O({}),i=new ResizeObserver(u),r=O(null);Bt(()=>{const v=r.value;v!=null&&i.observe(v)});let s=!0,o=O((p=r.value)==null?void 0:p.getBoundingClientRect());function u(){s&&(s=!1,Ze(()=>{var v;o.value=(v=r.value)==null?void 0:v.getBoundingClientRect(),Object.values(n.value).filter(w=>w).forEach(w=>w.rect=w.element.getBoundingClientRect()),t("updateNodes",n.value),s=!0}))}ve.on("fontsLoaded",u);const c={attributes:!1,childList:!0,subtree:!1};Wt(In,(v,w)=>{const k=new MutationObserver(()=>f(v));k.observe(w,c),n.value[v]={element:w,observer:k,rect:w.getBoundingClientRect()},u()}),Wt(En,v=>{var w;(w=n.value[v])==null||w.observer.disconnect(),n.value[v]=void 0,u()}),Wt(Tn,n),Wt(Pn,o);function f(v){const w=n.value[v];w!=null&&(w.rect=w.element.getBoundingClientRect(),t("updateNodes",n.value))}return(v,w)=>(h(),S(U,null,[je(v.$slots,"default",{},void 0,!0),g("div",{ref_key:"resizeListener",ref:r,class:"resize-listener"},null,512)],64))}});var Ei=z(Ps,[["__scopeId","data-v-2b1dc1bc"]]);const Fs=["onPointerdown"],Vs={class:"modal-wrapper"},Os={class:"modal-container"},qs={class:"modal-header"},Ds=C(" default header "),Rs={class:"modal-body"},xs=C(" default body "),As={class:"modal-footer"},Bs=g("div",{class:"modal-default-flex-grow"},null,-1),at=D({__name:"Modal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const r=le(e),s=M(()=>a(r.modelValue)||u.value);function o(){n("update:modelValue",!1)}const u=O(!1),c=O(null),f=M(()=>{var p,v;return(v=(p=c.value)==null?void 0:p.nodes)!=null?v:null});return t({isOpen:s,nodes:f}),(p,v)=>(h(),q(ar,{to:"#modal-root"},[d(ln,{name:"modal",onBeforeEnter:v[0]||(v[0]=w=>u.value=!0),onAfterLeave:v[1]||(v[1]=w=>u.value=!1)},{default:x(()=>[an(g("div",ze({class:"modal-mask",onPointerdown:Pt(o,["self"])},p.$attrs),[g("div",Vs,[g("div",Os,[g("div",qs,[je(p.$slots,"header",{shown:a(s)},()=>[Ds])]),g("div",Rs,[d(Ei,{ref_key:"contextRef",ref:c},{default:x(()=>[je(p.$slots,"body",{shown:a(s)},()=>[xs])]),_:3},512)]),g("div",As,[je(p.$slots,"footer",{shown:a(s)},()=>[g("div",{class:"modal-default-footer"},[Bs,g("button",{class:"button modal-default-button",onClick:o}," Close ")])])])])])],16,Fs),[[or,e.modelValue]])]),_:3})]))}}),dt=Symbol("ProxyState");function ce(e,t={}){const n=t;let i=!1;function r(){return i||(Object.assign(n,e(n)),i=!0),n}return new Proxy(n,{get(s,o){if(o===dt)return r();const u=r()[o];return u!=null&&typeof u=="object"&&Dt in u?u[Dt]:u},set(s,o,u){return r()[o]=u,!0},has(s,o){return o===dt?!0:Reflect.has(r(),o)},ownKeys(){return Reflect.ownKeys(r())},getOwnPropertyDescriptor(s,o){return i||(Object.assign(n,e(n)),i=!0),Object.getOwnPropertyDescriptor(s,o)}})}var _e=window.state=un({lastTenTicks:[],hasNaN:!1,NaNPath:[]});const wt=Symbol("PersistentState"),ot=Symbol("DefaultValue"),rn=Symbol("StackTrace"),sn=Symbol("Deleted"),Dt=Symbol("NonPersistent"),mt=Symbol("SaveDataPath");function Ls(){var e,t;return(t=(e=new Error().stack)==null?void 0:e.split(` +`).slice(3,5).map(n=>n.trim()).join(` +`))!=null?t:""}function ri(e,t){var n;if(l.isNaN(t))throw _e.hasNaN||(R.autosave=!1,_e.hasNaN=!0,_e.NaNPath=e[mt],_e.NaNPersistent=e),console.error("Attempted to save NaN value to",(n=e[mt])==null?void 0:n.join("."),e),new Error("Attempted to set NaN value. See above for details");e[wt].value=t}function me(e,t=!0){const n=be(e)?e:O(e);be(e)&&(e=e.value);const i=M({get(){return n.value},set(s){t?ri(r,s):r[wt].value=s}});i[ot]=e;const r={get value(){return n.value},set value(s){t?ri(r,s):r[wt].value=s},__v_isRef:!0,[wt]:n,[ot]:e,[rn]:Ls(),[sn]:!1,[Dt]:i,[mt]:void 0};return Ee.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",r,` +Created at: +`+r[rn]):gt[Ee[Ee.length-1]].add(r),r}function js(e){return e!=null&&typeof e=="object"&&wt in e}function Mt(e){return e[Dt]}function Us(e){Ee.length===0?console.warn("Deleting a persistent ref outside of a layer. Ignoring...",e):gt[Ee[Ee.length-1]].delete(e),e[sn]=!0}ve.on("addLayer",(e,t)=>{const n=[],i=(r,s=[])=>{let o=!1;return Object.keys(r).forEach(u=>{let c=r[u];if(c!=null&&typeof c=="object")if(dt in c&&(c=c[dt]),js(c)){if(o=!0,c[sn]){console.warn("Deleted persistent ref present in returned object. Ignoring...",c,` +Created at: +`+c[rn]);return}gt[e.id].delete(c);const f=[e.id,...s,u];c[mt]!=null&&JSON.stringify(f)!==JSON.stringify(c[mt])&&console.error(`Persistent ref is being saved to \`${f.join(".")}\` when it's already present at \`${c[mt].join(".")}\`. This can cause unexpected behavior when loading saves between updates.`,c),c[mt]=f;const p=s.reduce((w,k)=>(k in w||(w[k]={}),w[k]),t),v=p[u];p[u]=c[wt],lr(p)?v!=null?p[u]=v:p[u]=c[ot]:v!=null?p[u].value=v:p[u].value=c[ot]}else!(c instanceof l)&&!be(c)&&!n.includes(c)&&(typeof c.type=="symbol"&&n.push(c),i(c,[...s,u])&&(Je(c)&&!Je(r)?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.",dt in r?r[dt]:r,u):o=!0))}),o};i(e[dt]),gt[e.id].forEach(r=>{r[sn]||console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,r,` +Created at: +`+r[rn])}),gt[e.id].clear()});const In=Symbol("RegisterNode"),En=Symbol("UnregisterNode"),Tn=Symbol("Nodes"),Pn=Symbol("Bounds"),$e=un({});window.layers=$e;const gt={},Ee=[];function Lt(e,t){return ce(()=>{const n={},i=n.emitter=pi();if(n.on=i.on.bind(i),n.emit=i.emit.bind(i),n.nodes=O({}),n.id=e,Ee.push(e),gt[e]=new Set,n.minimized=me(!1,!1),Object.assign(n,t.call(n)),Ee[Ee.length-1]==null||Ee[Ee.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen +Stack: ${Ee} +Trying to pop ${n.id}`;Ee.pop(),_(n,"color"),_(n,"display"),_(n,"classes"),_(n,"style"),_(n,"name"),H(n,"name",n.id),_(n,"minWidth"),H(n,"minWidth",600),_(n,"minimizable"),H(n,"minimizable",!0),_(n,"minimizedDisplay");const r=n.style;return n.style=M(()=>{var o,u;let s=a(n.minWidth);return(typeof s=="number"||!Number.isNaN(parseInt(s)))&&(s=s+"px"),[(o=a(r))!=null?o:"",(u=n.minimized)!=null&&u.value?{flexGrow:"0",flexShrink:"0",width:"60px",minWidth:"",flexBasis:"",margin:"0"}:{flexGrow:"",flexShrink:"",width:"",minWidth:s,flexBasis:s,margin:""}]}),n})}function Ti(e,t){if(console.info("Adding layer",e.id),$e[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,$e[e.id]);return}H(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),$e[e.id]=e,ve.emit("addLayer",e,t.layers[e.id])}function zs(e){return $e[e]}function Pi(e){console.info("Removing layer",e.id),ve.emit("removeLayer",e),$e[e.id]=void 0}function Hs(e){Pi(e),Ti(e,R)}function Fi(e){const t=O(!1);return{openModal:()=>t.value=!0,modal:L(()=>d(at,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>d("h2",null,[a(e.name)]),body:a(e.display)}))}}ve.on("update",function(t){Object.values($e).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values($e).forEach(n=>{n==null||n.emit("update",t)}),Object.values($e).forEach(n=>{n==null||n.emit("postUpdate",t)})});var Gs=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:In,UnregisterNodeInjectionKey:En,NodesInjectionKey:Tn,BoundsInjectionKey:Pn,layers:$e,persistentRefs:gt,addingLayers:Ee,createLayer:Lt,addLayer:Ti,getLayer:zs,removeLayer:Pi,reloadLayer:Hs,setupLayerModal:Fi},Symbol.toStringTag,{value:"Module"}));const Ws=D({components:{Context:Ei},props:{index:{type:Number,required:!0},display:{type:N(Object,String,Function),required:!0},minimizedDisplay:N(Object,String,Function),minimized:{type:Object,required:!0},name:{type:N(String),required:!0},color:N(String),minimizable:N(Boolean),nodes:{type:Object,required:!0}},emits:["setMinimized"],setup(e){const{display:t,index:n,minimized:i,minimizedDisplay:r}=le(e),s=Nt(t),o=Qe(r),u=M(()=>ie.allowGoBack&&n.value>0&&!ue(i));function c(){R.tabs.splice(a(e.index),1/0)}function f(p){e.nodes.value=p}return{component:s,minimizedComponent:o,showGoBack:u,updateNodes:f,unref:a,goBack:c}}}),Ys={key:1};function Ks(e,t,n,i,r,s){const o=he("Context");return h(),S("div",{class:"layer-container",style:ee({"--layer-color":e.unref(e.color)})},[e.showGoBack?(h(),S("button",{key:0,class:"goBack",onClick:t[0]||(t[0]=(...u)=>e.goBack&&e.goBack(...u))},"\u274C")):V("",!0),e.unref(e.minimized)?(h(),S("button",{key:1,class:"layer-tab minimized",onClick:t[1]||(t[1]=u=>e.$emit("setMinimized",!1))},[e.minimizedComponent?(h(),q(re(e.minimizedComponent),{key:0})):(h(),S("div",Ys,X(e.unref(e.name)),1))])):(h(),S("div",{key:2,class:te(["layer-tab",{showGoBack:e.showGoBack}])},[d(o,{onUpdateNodes:e.updateNodes},{default:x(()=>[(h(),q(re(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(h(),S("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=u=>e.$emit("setMinimized",!0))}," \u25BC ")):V("",!0)],4)}var Zs=z(Ws,[["render",Ks],["__scopeId","data-v-a592996e"]]);const Vi=e=>(Ge("data-v-4b4bda40"),e=e(),We(),e),Js=Vi(()=>g("h2",null,"Changelog",-1)),Xs=Vi(()=>g("details",{open:""},[g("summary",null,[C("v0.0 Initial Commit - "),g("time",null,"2021-09-04")]),C(" This is the first release :D "),g("ul",null,[g("li",{class:"feature"},"Did everything"),g("li",{class:"fix"},"Had some fun"),g("li",{class:"breaking"},"Removed everything"),g("li",{class:"balancing"},"Created some bugs to fix later")])],-1)),Qs=D({__name:"Changelog",setup(e,{expose:t}){const n=O(!1);return t({open(){n.value=!0}}),(i,r)=>(h(),q(at,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=s=>n.value=s)},{header:x(()=>[Js]),body:x(()=>[Xs]),_:1},8,["modelValue"]))}});var eo=z(Qs,[["__scopeId","data-v-4b4bda40"]]),to=D({props:{element:Object,display:{type:N(Object,String,Function),required:!0},style:N(Object,String,Array),classes:N(Object),direction:N(String),xoffset:N(String),yoffset:N(String),pinned:Object},setup(e){const{element:t,display:n,pinned:i}=le(e),r=O(!1),s=M(()=>(ue(i)||r.value)&&o.value),o=Qe(n),u=Ne(j(L(()=>{const p=ue(t);return p==null?"":Ke(p)})));function c(p){const v=i;p.shiftKey&&v&&(v.value=!v.value,p.stopPropagation(),p.preventDefault())}const f=M(()=>ue(i)&&Xe[J.theme].showPin);return{Direction:Q,isHovered:r,isShown:s,comp:o,elementComp:u,unref:a,togglePinned:c,showPin:f}}});const no={key:0,class:"material-icons pinned"};function io(e,t,n,i,r,s){return h(),S("div",{class:te(["tooltip-container",{shown:e.isShown}]),onMouseenter:t[0]||(t[0]=o=>e.isHovered=!0),onMouseleave:t[1]||(t[1]=o=>e.isHovered=!1),onClickCapture:t[2]||(t[2]=(...o)=>e.togglePinned&&e.togglePinned(...o))},[je(e.$slots,"default",{},void 0,!0),e.elementComp?(h(),q(re(e.elementComp),{key:0})):V("",!0),d(ln,{name:"fade"},{default:x(()=>{var o;return[e.isShown?(h(),S("div",{key:0,class:te(["tooltip",{top:e.unref(e.direction)===e.Direction.Up,left:e.unref(e.direction)===e.Direction.Left,right:e.unref(e.direction)===e.Direction.Right,bottom:e.unref(e.direction)===e.Direction.Down,...e.unref(e.classes)}]),style:ee([{"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"},(o=e.unref(e.style))!=null?o:{}])},[e.showPin?(h(),S("span",no,"push_pin")):V("",!0),e.comp?(h(),q(re(e.comp),{key:1})):V("",!0)],6)):V("",!0)]}),_:1})],34)}var ae=z(to,[["render",io],["__scopeId","data-v-6102fa3a"]]);const ht=e=>(Ge("data-v-5d3cb6f4"),e=e(),We(),e),ro={class:"info-modal-header"},so=["src","alt"],oo={class:"info-modal-title"},ao={key:0},lo={key:0},uo={key:0},co=ht(()=>g("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",-1)),fo=ht(()=>g("br",null,null,-1)),po=ht(()=>g("br",null,null,-1)),mo=["href"],go=ht(()=>g("span",{class:"material-icons info-modal-discord"},"discord",-1)),ho=ht(()=>g("div",null,[g("a",{href:"https://discord.gg/WzejVAx",class:"info-modal-discord-link",target:"_blank"},[g("span",{class:"material-icons info-modal-discord"},"discord"),C(" The Paper Pilot Community ")])],-1)),vo=ht(()=>g("div",null,[g("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link",target:"_blank"},[g("span",{class:"material-icons info-modal-discord"},"discord"),C(" The Modding Tree ")])],-1)),bo=ht(()=>g("br",null,null,-1));var yo=D({__name:"Info",props:{changelog:null},setup(e,{expose:t}){const n=e,{title:i,logo:r,author:s,discordName:o,discordLink:u,versionNumber:c,versionTitle:f}=ie,p=le(n),v=O(!1),w=M(()=>cn(R.timePlayed)),k=M(()=>j(L(()=>d(U,null,[Mi.map(de)]))));t({open(){v.value=!0}});function T(){var E;(E=a(p.changelog))==null||E.open()}return(E,Y)=>(h(),q(at,{modelValue:v.value,"onUpdate:modelValue":Y[0]||(Y[0]=se=>v.value=se)},{header:x(()=>[g("div",ro,[a(r)?(h(),S("img",{key:0,class:"info-modal-logo",src:a(r),alt:a(i)},null,8,so)):V("",!0),g("div",oo,[g("h2",null,X(a(i)),1),g("h4",null,[C(" v"+X(a(c)),1),a(f)?(h(),S("span",ao,": "+X(a(f)),1)):V("",!0)])])])]),body:x(({shown:se})=>[se?(h(),S("div",lo,[a(s)?(h(),S("div",uo,"By "+X(a(s)),1)):V("",!0),co,fo,g("div",{class:"link",onClick:T},"Changelog"),po,g("div",null,[a(u)?(h(),S("a",{key:0,href:a(u),class:"info-modal-discord-link",target:"_blank"},[go,C(" "+X(a(o)),1)],8,mo)):V("",!0)]),ho,vo,bo,g("div",null,"Time Played: "+X(a(w)),1),(h(),q(re(a(k))))])):V("",!0)]),_:1},8,["modelValue"]))}});var _o=z(yo,[["__scopeId","data-v-5d3cb6f4"]]);const wo={class:"field"},No={key:0,class:"field-title"},Fn=D({__name:"Select",props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){var o;const n=e,i=Qe(st(n,"title"),"span"),r=O((o=n.options.find(u=>u.value===n.modelValue))!=null?o:null);Be(st(n,"modelValue"),u=>{var c;ue(r)!==u&&(r.value=(c=n.options.find(f=>f.value===u))!=null?c:null)});function s(u){t("update:modelValue",u.value)}return(u,c)=>(h(),S("div",wo,[a(i)?(h(),S("span",No,[(h(),q(re(a(i))))])):V("",!0),d(a(mr),{options:e.options,modelValue:r.value,"onUpdate:modelValue":[c[0]||(c[0]=f=>r.value=f),s],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])]))}});const Co={class:"field"},ko=D({__name:"Toggle",props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=M(()=>{var s;return j((s=a(n.title))!=null?s:"","span")}),r=M({get(){return!!n.modelValue},set(s){t("update:modelValue",s)}});return(s,o)=>(h(),S("label",Co,[an(g("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":o[0]||(o[0]=u=>be(r)?r.value=u:null)},null,512),[[ur,a(r)]]),(h(),q(re(a(i))))]))}});var Te=z(ko,[["__scopeId","data-v-11046116"]]);const So=["onClick"],$o=D({__name:"FeedbackButton",props:{left:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=O(!1),i=O(null);function r(){t("click"),i.value&&clearTimeout(i.value),n.value=!1,Ze(()=>{n.value=!0,i.value=setTimeout(()=>n.value=!1,500)})}return(s,o)=>(h(),S("button",{onClick:Pt(r,["stop"]),class:te(["feedback",{activated:n.value,left:e.left}])},[je(s.$slots,"default",{},void 0,!0)],10,So))}});var Oi=z($o,[["__scopeId","data-v-01a1b95c"]]);const Mo={class:"header"},Io=g("h2",null,"Settings",-1),Eo={class:"option-tabs"},To={key:0},Po=C("Manually save"),Fo={key:1};var Vo=D({__name:"Options",setup(e,{expose:t}){const n=O(!1),i=O("behaviour");function r(pe){return pe==i.value}function s(pe){i.value=pe}t({isTab:r,setTab:s,save:Fe,open(){n.value=!0}});const o=Object.keys(Xe).map(pe=>({label:wi(pe),value:pe})),u=M(()=>j(L(()=>d(U,null,[Si.map(de)])))),{showTPS:c,theme:f,unthrottled:p,alignUnits:v}=le(J),{autosave:w,offlineProd:k}=le(R),T=M({get(){return R.devSpeed===0},set(pe){R.devSpeed=pe?0:null}}),E=L(()=>d("span",{class:"option-title"},[C("Unthrottled"),d("desc",null,[C("Allow the game to run as fast as possible. Not battery friendly.")])])),Y=L(()=>d("span",{class:"option-title"},[C("Offline Production"),d(ae,{display:"Save-specific",direction:Q.Right},{default:()=>[C("*")]}),d("desc",null,[C("Simulate production that occurs while the game is closed.")])])),se=L(()=>d("span",{class:"option-title"},[C("Autosave"),d(ae,{display:"Save-specific",direction:Q.Right},{default:()=>[C("*")]}),d("desc",null,[C("Automatically save the game every second or when the game is closed.")])])),P=L(()=>d("span",{class:"option-title"},[C("Pause game"),d(ae,{display:"Save-specific",direction:Q.Right},{default:()=>[C("*")]}),d("desc",null,[C("Stop everything from moving.")])])),F=L(()=>d("span",{class:"option-title"},[C("Theme"),d("desc",null,[C("How the game looks.")])])),K=L(()=>d("span",{class:"option-title"},[C("Show TPS"),d("desc",null,[C("Show TPS meter at the bottom-left corner of the page.")])])),ke=L(()=>d("span",{class:"option-title"},[C("Align modifier units"),d("desc",null,[C("Align numbers to the beginning of the unit in modifier view.")])]));return(pe,A)=>(h(),q(at,{modelValue:n.value,"onUpdate:modelValue":A[10]||(A[10]=oe=>n.value=oe)},{header:x(()=>[g("div",Mo,[Io,g("div",Eo,[g("button",{class:te({selected:r("behaviour")}),onClick:A[0]||(A[0]=oe=>s("behaviour"))},"Behaviour",2),g("button",{class:te({selected:r("appearance")}),onClick:A[1]||(A[1]=oe=>s("appearance"))},"Appearance",2)])])]),body:x(()=>[r("behaviour")?(h(),S("div",To,[d(Te,{title:a(E),modelValue:a(p),"onUpdate:modelValue":A[2]||(A[2]=oe=>be(p)?p.value=oe:null)},null,8,["title","modelValue"]),a(ie).enablePausing?(h(),q(Te,{key:0,title:a(P),modelValue:a(T),"onUpdate:modelValue":A[3]||(A[3]=oe=>be(T)?T.value=oe:null)},null,8,["title","modelValue"])):V("",!0),d(Te,{title:a(Y),modelValue:a(k),"onUpdate:modelValue":A[4]||(A[4]=oe=>be(k)?k.value=oe:null)},null,8,["title","modelValue"]),d(Te,{title:a(se),modelValue:a(w),"onUpdate:modelValue":A[5]||(A[5]=oe=>be(w)?w.value=oe:null)},null,8,["title","modelValue"]),a(w)?V("",!0):(h(),q(Oi,{key:1,class:"button save-button",onClick:A[6]||(A[6]=oe=>a(Fe)())},{default:x(()=>[Po]),_:1}))])):V("",!0),r("appearance")?(h(),S("div",Fo,[d(Fn,{title:a(F),options:a(o),modelValue:a(f),"onUpdate:modelValue":A[7]||(A[7]=oe=>be(f)?f.value=oe:null)},null,8,["title","options","modelValue"]),(h(),q(re(a(u)))),d(Te,{title:a(K),modelValue:a(c),"onUpdate:modelValue":A[8]||(A[8]=oe=>be(c)?c.value=oe:null)},null,8,["title","modelValue"]),d(Te,{title:a(ke),modelValue:a(v),"onUpdate:modelValue":A[9]||(A[9]=oe=>be(v)?v.value=oe:null)},null,8,["title","modelValue"])])):V("",!0)]),_:1},8,["modelValue"]))}});const Oo=["onSubmit"],qo={class:"field"},Do={key:0,class:"field-title"},Ro=["placeholder"],xo=D({__name:"Text",props:{title:null,modelValue:null,textArea:{type:Boolean},placeholder:null,maxHeight:null,submitOnBlur:{type:Boolean}},emits:["update:modelValue","submit","cancel"],setup(e,{emit:t}){const n=e,i=Qe(st(n,"title"),"span"),r=Ne(null);Bt(()=>{var c;(c=r.value)==null||c.focus()});const s=M({get(){var c;return(c=a(n.modelValue))!=null?c:""},set(c){t("update:modelValue",c)}});function o(){t("submit")}function u(){n.submitOnBlur!==!1?t("submit"):t("cancel")}return(c,f)=>(h(),S("form",{onSubmit:Pt(o,["prevent"])},[g("div",qo,[a(i)?(h(),S("span",Do,[(h(),q(re(a(i))))])):V("",!0),e.textArea?(h(),q(a(hr),{key:1,modelValue:a(s),"onUpdate:modelValue":f[0]||(f[0]=p=>be(s)?s.value=p:null),placeholder:e.placeholder,maxHeight:e.maxHeight,onBlur:u,ref_key:"field",ref:r},null,8,["modelValue","placeholder","maxHeight"])):an((h(),S("input",{key:2,type:"text","onUpdate:modelValue":f[1]||(f[1]=p=>be(s)?s.value=p:null),placeholder:e.placeholder,class:te({fullWidth:!e.title}),onBlur:u,ref_key:"field",ref:r},null,42,Ro)),[[fi,a(s)]])])],40,Oo))}});var Vn=z(xo,[["__scopeId","data-v-90bd4994"]]);const Ao={key:0},Bo=["onClick","disabled"],Lo={key:0},jo=["onClick"],Uo=D({__name:"DangerButton",props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup(e,{emit:t}){const i=le(e),r=O(!1);Be(r,u=>{t("confirmingChanged",u)});function s(){if(a(i.skipConfirm)){t("click");return}r.value&&t("click"),r.value=!r.value}function o(){r.value=!1}return(u,c)=>(h(),S("span",{class:te(["container",{confirming:r.value}])},[r.value?(h(),S("span",Ao,"Are you sure?")):V("",!0),g("button",{onClick:Pt(s,["stop"]),class:"button danger",disabled:e.disabled},[r.value?(h(),S("span",Lo,"Yes")):je(u.$slots,"default",{key:1},void 0,!0)],8,Bo),r.value?(h(),S("button",{key:1,class:"button",onClick:Pt(o,["stop"])},"No",8,jo)):V("",!0)],2))}});var zo=z(Uo,[["__scopeId","data-v-2f8ef34c"]]);const et=e=>(Ge("data-v-c3447434"),e=e(),We(),e),Ho=et(()=>g("div",{class:"handle material-icons"},"drag_handle",-1)),Go={key:0,class:"actions"},Wo=et(()=>g("span",{class:"material-icons"},"content_paste",-1)),Yo=et(()=>g("span",{class:"material-icons"},"content_copy",-1)),Ko=et(()=>g("span",{class:"material-icons"},"edit",-1)),Zo=et(()=>g("span",{class:"material-icons",style:{margin:"-2px"}},"delete",-1)),Jo={key:1,class:"actions"},Xo=et(()=>g("span",{class:"material-icons"},"check",-1)),Qo=et(()=>g("span",{class:"material-icons"},"close",-1)),ea={key:2,class:"details"},ta={class:"save-version"},na=et(()=>g("br",null,null,-1)),ia={key:0},ra={key:3,class:"details"},sa={key:4,class:"details error"},oa=et(()=>g("br",null,null,-1)),aa=D({__name:"Save",props:{save:null},emits:["export","open","duplicate","delete","editName"],setup(e,{emit:t}){const n=e,{save:i}=le(n),r=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),s=O(!1),o=O(!1),u=O("");Be(s,()=>{var v;return u.value=(v=i.value.name)!=null?v:""});const c=M(()=>i.value!=null&&i.value.id===R.id),f=M(()=>{var v;return c.value?R.time:(v=i.value!=null&&i.value.time)!=null?v:0});function p(){t("editName",u.value),s.value=!1}return(v,w)=>(h(),S("div",{class:te(["save",{active:a(c)}])},[Ho,s.value?(h(),S("div",Jo,[g("button",{onClick:p,class:"button"},[d(ae,{display:"Save",direction:a(Q).Left,class:"info"},{default:x(()=>[Xo]),_:1},8,["direction"])]),g("button",{onClick:w[5]||(w[5]=k=>s.value=!s.value),class:"button"},[d(ae,{display:"Cancel",direction:a(Q).Left,class:"info"},{default:x(()=>[Qo]),_:1},8,["direction"])])])):(h(),S("div",Go,[a(i).error==null&&!o.value?(h(),q(Oi,{key:0,onClick:w[0]||(w[0]=k=>t("export")),class:"button",left:""},{default:x(()=>[d(ae,{display:"Export",direction:a(Q).Left,class:"info"},{default:x(()=>[Wo]),_:1},8,["direction"])]),_:1})):V("",!0),a(i).error==null&&!o.value?(h(),S("button",{key:1,onClick:w[1]||(w[1]=k=>t("duplicate")),class:"button"},[d(ae,{display:"Duplicate",direction:a(Q).Left,class:"info"},{default:x(()=>[Yo]),_:1},8,["direction"])])):V("",!0),a(i).error==null&&!o.value?(h(),S("button",{key:2,onClick:w[2]||(w[2]=k=>s.value=!s.value),class:"button"},[d(ae,{display:"Edit Name",direction:a(Q).Left,class:"info"},{default:x(()=>[Ko]),_:1},8,["direction"])])):V("",!0),d(zo,{disabled:a(c),onClick:w[3]||(w[3]=k=>t("delete")),onConfirmingChanged:w[4]||(w[4]=k=>o.value=k)},{default:x(()=>[d(ae,{display:"Delete",direction:a(Q).Left,class:"info"},{default:x(()=>[Zo]),_:1},8,["direction"])]),_:1},8,["disabled"])])),a(i).error==null&&!s.value?(h(),S("div",ea,[g("button",{class:"button open",onClick:w[6]||(w[6]=k=>t("open"))},[g("h3",null,X(a(i).name),1)]),g("span",ta,"v"+X(a(i).modVersion),1),na,a(f)?(h(),S("div",ia,"Last played "+X(a(r).format(a(f))),1)):V("",!0)])):a(i).error==null&&s.value?(h(),S("div",ra,[d(Vn,{modelValue:u.value,"onUpdate:modelValue":w[7]||(w[7]=k=>u.value=k),class:"editname",onSubmit:p},null,8,["modelValue"])])):(h(),S("div",sa,[C(" Error: Failed to load save with id "+X(a(i).id),1),oa,C(X(a(i).error),1)]))],2))}});var la=z(aa,[["__scopeId","data-v-c3447434"]]);const On=e=>(Ge("data-v-5b5b1604"),e=e(),We(),e),ua=On(()=>g("h2",null,"Saves Manager",-1)),ca={class:"modal-footer"},da={class:"field"},fa=On(()=>g("span",{class:"field-title"},"Create Save",-1)),pa={class:"field-buttons"},ma={class:"footer"},ga=On(()=>g("div",{style:{"flex-grow":"1"}},null,-1)),ha=D({__name:"SavesManager",setup(e,{expose:t}){const n=O(!1),i=O(null);t({open(){n.value=!0}});const r=O(!1),s=O(""),o=O(null);Be(s,P=>{P?Ze(()=>{try{if(P[0]!=="{")if(P[0]==="e")P=decodeURIComponent(escape(atob(P)));else if(P[0]==="\u1BE1")P=it.decompressFromUTF16(P);else{console.warn("Unable to determine preset encoding",P),r.value=!0;return}const F=JSON.parse(P);if(typeof F!="object"){r.value=!0;return}const K=Jt();F.id=K,Fe(F),s.value="",r.value=!1,J.saves.push(K)}catch{r.value=!0}}):r.value=!1});let u={},c=O(Object.keys(u).reduce((P,F)=>(P.push({label:F.split("/").slice(-1)[0].slice(0,-4),value:u[F]}),P),[]));const f=un({});function p(P){if(f[P]==null){let F=localStorage.getItem(P);if(F==null)f[P]={error:"Save doesn't exist in localStorage",id:P};else if(F==="dW5kZWZpbmVk")f[P]={error:"Save is undefined",id:P};else try{if(F[0]!=="{")if(F[0]==="e")F=decodeURIComponent(escape(atob(F)));else if(F[0]==="\u1BE1")F=it.decompressFromUTF16(F);else return console.warn("Unable to determine preset encoding",F),r.value=!0,f[P]={error:"Unable to determine preset encoding",id:P},f[P];f[P]={...JSON.parse(F),id:P}}catch(K){f[P]={error:K,id:P},console.warn(`SavesManager: Failed to load info about save with id ${P}: +${K} +${F}`)}}return f[P]}Be(n,P=>{P&&Object.keys(f).forEach(F=>delete f[F])});const v=M(()=>J.saves.reduce((P,F)=>(P[F]=p(F),P),{}));function w(P){let F;switch(R.id===P?F=Ci(R):F=JSON.stringify(v.value[P]),ie.exportEncoding){default:console.warn(`Unknown save encoding: ${ie.exportEncoding}. Defaulting to lz`);case"lz":F=it.compressToUTF16(F);break;case"base64":F=btoa(unescape(encodeURIComponent(F)));break;case"plain":break}const K=document.createElement("textarea");K.value=F,document.body.appendChild(K),K.select(),K.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(K)}function k(P){R.id===P&&Fe();const F={...v.value[P],id:Jt()};Fe(F),J.saves.push(F.id)}function T(P){J.saves=J.saves.filter(F=>F!==P),localStorage.removeItem(P),f[P]=void 0}function E(P){v.value[R.id].time=R.time,Fe(),f[R.id]=void 0,pt(v.value[P]),f[P]=void 0}function Y(P){if(o.value=P,Ze(()=>{o.value=null}),P[0]!=="{")if(P[0]==="e")P=decodeURIComponent(escape(atob(P)));else if(P[0]==="\u1BE1")P=it.decompressFromUTF16(P);else{console.warn("Unable to determine preset encoding",P);return}const F=JSON.parse(P);F.id=Jt(),Fe(F),J.saves.push(F.id),E(F.id)}function se(P,F){const K=v.value[P];K!=null&&(K.name=F,R.id===P?(R.name=F,Fe()):(Fe(K),f[P]=void 0))}return(P,F)=>(h(),q(at,{modelValue:n.value,"onUpdate:modelValue":F[4]||(F[4]=K=>n.value=K),ref_key:"modal",ref:i},{header:x(()=>[ua]),body:x(({shown:K})=>[K?(h(),q(a(gr),{key:0,list:a(J).saves,handle:".handle",itemKey:ke=>ke},{item:x(({element:ke})=>[d(la,{save:a(v)[ke],onOpen:pe=>E(ke),onExport:pe=>w(ke),onEditName:pe=>se(ke,pe),onDuplicate:pe=>k(ke),onDelete:pe=>T(ke)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):V("",!0)]),footer:x(()=>[g("div",ca,[d(Vn,{modelValue:s.value,"onUpdate:modelValue":F[0]||(F[0]=K=>s.value=K),title:"Import Save",placeholder:"Paste your save here!",class:te({importingFailed:r.value})},null,8,["modelValue","class"]),g("div",da,[fa,g("div",pa,[g("button",{class:"button",onClick:F[1]||(F[1]=K=>E(a(_t)().id))},"New Game"),Object.keys(a(c)).length>0?(h(),q(Fn,{key:0,options:a(c),modelValue:o.value,"onUpdate:modelValue":F[2]||(F[2]=K=>Y(K)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):V("",!0)])]),g("div",ma,[ga,g("button",{class:"button modal-default-button",onClick:F[3]||(F[3]=K=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var qi=z(ha,[["__scopeId","data-v-5b5b1604"]]);const Oe=e=>(Ge("data-v-b0896196"),e=e(),We(),e),va=["src","alt"],ba={key:1,class:"title"},ya=Oe(()=>g("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),_a={class:"discord"},wa={class:"discord-links"},Na={key:0},Ca=["href"],ka=Oe(()=>g("li",null,[g("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Sa=Oe(()=>g("li",null,[g("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),$a={href:"https://forums.moddingtree.com/",target:"_blank"},Ma=Oe(()=>g("span",{class:"material-icons"},"forum",-1)),Ia=Oe(()=>g("span",{class:"material-icons"},"info",-1)),Ea=Oe(()=>g("span",{class:"material-icons"},"library_books",-1)),Ta=Oe(()=>g("span",{class:"material-icons"},"settings",-1)),Pa=Oe(()=>g("span",{class:"material-icons"},"library_books",-1)),Fa=Oe(()=>g("span",{class:"material-icons"},"settings",-1)),Va=Oe(()=>g("span",{class:"material-icons"},"info",-1)),Oa={href:"https://forums.moddingtree.com/",target:"_blank"},qa=Oe(()=>g("span",{class:"material-icons"},"forum",-1)),Da={class:"discord"},Ra={class:"discord-links"},xa={key:0},Aa=["href"],Ba=Oe(()=>g("li",null,[g("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),La=Oe(()=>g("li",null,[g("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),ja=D({__name:"Nav",setup(e){const t=O(null),n=O(null),i=O(null),r=O(null),{useHeader:s,banner:o,title:u,discordName:c,discordLink:f,versionNumber:p}=ie;function v(){window.open(f,"mywindow")}return(w,k)=>(h(),S(U,null,[a(s)?(h(),S("div",ze({key:0,class:"nav"},w.$attrs),[a(o)?(h(),S("img",{key:0,src:a(o),class:"banner",alt:a(u)},null,8,va)):(h(),S("div",ba,X(a(u)),1)),g("div",{onClick:k[0]||(k[0]=T=>{var E;return(E=r.value)==null?void 0:E.open()}),class:"version-container"},[d(ae,{display:"Changelog",direction:a(Q).Down,class:"version"},{default:x(()=>[g("span",null,"v"+X(a(p)),1)]),_:1},8,["direction"])]),ya,g("div",_a,[g("span",{onClick:v,class:"material-icons"},"discord"),g("ul",wa,[a(f)?(h(),S("li",Na,[g("a",{href:a(f),target:"_blank"},X(a(c)),9,Ca)])):V("",!0),ka,Sa])]),g("div",null,[g("a",$a,[d(ae,{display:"Forums",direction:a(Q).Down,yoffset:"5px"},{default:x(()=>[Ma]),_:1},8,["direction"])])]),g("div",{onClick:k[1]||(k[1]=T=>{var E;return(E=t.value)==null?void 0:E.open()})},[d(ae,{display:"Info",direction:a(Q).Down,class:"info"},{default:x(()=>[Ia]),_:1},8,["direction"])]),g("div",{onClick:k[2]||(k[2]=T=>{var E;return(E=n.value)==null?void 0:E.open()})},[d(ae,{display:"Saves",direction:a(Q).Down,xoffset:"-20px"},{default:x(()=>[Ea]),_:1},8,["direction"])]),g("div",{onClick:k[3]||(k[3]=T=>{var E;return(E=i.value)==null?void 0:E.open()})},[d(ae,{display:"Settings",direction:a(Q).Down,xoffset:"-66px"},{default:x(()=>[Ta]),_:1},8,["direction"])])],16)):(h(),S("div",ze({key:1,class:"overlay-nav"},w.$attrs),[g("div",{onClick:k[4]||(k[4]=T=>{var E;return(E=r.value)==null?void 0:E.open()}),class:"version-container"},[d(ae,{display:"Changelog",direction:a(Q).Right,xoffset:"25%",class:"version"},{default:x(()=>[g("span",null,"v"+X(a(p)),1)]),_:1},8,["direction"])]),g("div",{onClick:k[5]||(k[5]=T=>{var E;return(E=n.value)==null?void 0:E.open()})},[d(ae,{display:"Saves",direction:a(Q).Right},{default:x(()=>[Pa]),_:1},8,["direction"])]),g("div",{onClick:k[6]||(k[6]=T=>{var E;return(E=i.value)==null?void 0:E.open()})},[d(ae,{display:"Settings",direction:a(Q).Right},{default:x(()=>[Fa]),_:1},8,["direction"])]),g("div",{onClick:k[7]||(k[7]=T=>{var E;return(E=t.value)==null?void 0:E.open()})},[d(ae,{display:"Info",direction:a(Q).Right},{default:x(()=>[Va]),_:1},8,["direction"])]),g("div",null,[g("a",Oa,[d(ae,{display:"Forums",direction:a(Q).Right,xoffset:"7px"},{default:x(()=>[qa]),_:1},8,["direction"])])]),g("div",Da,[g("span",{onClick:v,class:"material-icons"},"discord"),g("ul",Ra,[a(f)?(h(),S("li",xa,[g("a",{href:a(f),target:"_blank"},X(a(c)),9,Aa)])):V("",!0),Ba,La])])],16)),d(_o,{ref_key:"info",ref:t,changelog:r.value},null,8,["changelog"]),d(qi,{ref_key:"savesManager",ref:n},null,512),d(Vo,{ref_key:"options",ref:i},null,512),d(eo,{ref_key:"changelog",ref:r},null,512)],64))}});var Di=z(ja,[["__scopeId","data-v-b0896196"]]);const Ua={class:"inner-tab"},za=D({__name:"Game",setup(e){const t=st(R,"tabs"),n=M(()=>Object.keys($e)),i=ie.useHeader;function r(s){const{display:o,minimized:u,name:c,color:f,minimizable:p,nodes:v,minimizedDisplay:w}=s;return{display:o,minimized:u,name:c,color:f,minimizable:p,nodes:v,minimizedDisplay:w}}return(s,o)=>(h(),S("div",{class:te(["tabs-container",{useHeader:a(i)}])},[(h(!0),S(U,null,Ft(a(t),(u,c)=>{var f,p;return h(),S("div",{key:c,class:te(["tab",a((f=a($e)[u])==null?void 0:f.classes)]),style:ee(a((p=a($e)[u])==null?void 0:p.style))},[c===0&&!a(i)?(h(),q(Di,{key:0})):V("",!0),g("div",Ua,[a(n).includes(u)?(h(),q(Zs,ze({key:0},r(a($e)[u]),{index:c,onSetMinimized:v=>a($e)[u].minimized.value=v}),null,16,["index","onSetMinimized"])):(h(),q(re(u),{key:1,index:c},null,8,["index"]))])],6)}),128))],2))}});var Ha=z(za,[["__scopeId","data-v-3e0f1aab"]]);const Ga={},Wa=e=>(Ge("data-v-89b4b00a"),e=e(),We(),e),Ya=Wa(()=>g("svg",{id:"eaRe02fYmMp1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 228 521","shape-rendering":"geometricPrecision","text-rendering":"geometricPrecision"},[g("g",{id:"P"},[g("path",{d:"m 101,512.877 c -17.547386,-5.3519 -50.794681,-10.26296 -80,0 10.737201,-217.43031 5.7244,-300.999 0,-464.9995 0,0 46.6144,-37.1164 80,-42.00002 33.386,-4.883633 86.025,10.45942 120,50.00002 5,30 -4.353,106.6565 -44,156.0005 -34.149,42.5 -130,38.48 -130,92.999 0,102 54,208 54,208 z",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"10","stroke-linecap":"round","stroke-miterlimit":"16"},id:"trunk",class:"svg-elem-1"}),g("path",{d:"M 221,55.8775 C 209.023,126.453 185.39,166.835 158.997,191.5 93.783098,252.444 11.718998,217.436 46.999998,304.877",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"vine2",class:"svg-elem-2"}),g("path",{d:"m 194.5,188 c -11.225,4.447 -19.066,5.134 -35.503,3.5",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine4",class:"svg-elem-3"}),g("path",{d:"M 73.499996,246.5 C 111.145,245.626 127.011,238.775 156.5,228",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine3",class:"svg-elem-4"}),g("path",{d:"M 221,55.8775 C 169.5,17.8262 86.0943,44.9468 47,107 c -4.743,7.528 -7.1041,15.373 -8.326,24 -3.5282,24.91 2.4426,56.34 -12.0011,105.5",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"vine1",class:"svg-elem-5"}),g("path",{d:"M 21,47.8775 38.674,131",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine2",class:"svg-elem-6"}),g("path",{d:"m 3,326.5 c 13.1783,22.208 16.4863,42.834 21.6997,81",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine1",class:"svg-elem-7"})])],-1));function Ka(e,t){return h(),q(ln,{appear:""},{default:x(()=>[Ya]),_:1})}var Za=z(Ga,[["render",Ka],["__scopeId","data-v-89b4b00a"]]);const Ie=D({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,n)=>(h(),S("div",{style:ee({width:e.width,height:e.height})},null,4))}});function Rt(e,t="points",n=0,i=void 0){const r=be(e)?e:me(e);if(r.displayName=t,r.precision=n,r.small=i,!be(e)){const s=r[Dt];s.displayName=t,s.precision=n,s.small=i}return r}function Ri(e){const t=me(e.value);return Be(e,n=>{$n.value||l.gt(n,t.value)&&(t.value=n)}),t}function Ja(e){const t=me(e.value);return Be(e,(n,i)=>{$n.value||l.gt(n,i)&&(t.value=l.add(t.value,l.sub(n,i)))}),t}const Xa=new l("10^^8"),Qa=new l("1e100");function el(e,t){const n=O(0),i=O(0),r=O(0);return ve.on("update",o=>{if(i.value=0,l.lte(e.value,Qa)){r.value=e.value;return}let u=e.value,c=r.value;if(r.value=u,l.gt(u,c))if(l.gte(u,Xa))u=l.slog(u,1e10),c=l.slog(c,1e10),n.value=u.sub(c).div(o),i.value=-1;else for(;l.div(u,c).log(10).div(o).gte("100")&&i.value<=5&&l.gt(c,0);)u=l.log10(u),c=l.log10(c),n.value=u.sub(c).div(o),i.value++}),M(()=>i.value===0?t?Ce(t.value,e.precision,e.small)+" "+e.displayName+"/s":"":Ce(n.value)+" OOM"+(i.value<0?"^OOM":"^"+i.value)+"s/sec")}function He(e,t){const n=t!=null?t:e.value;return l.eq(e.precision,0)?Se(e.small?n:l.floor(n)):Ce(n,e.precision,e.small)}const tl={key:0},nl={key:0,class:"mark star"},il=["src"],rl=D({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(h(),S("div",tl,[e.mark===!0?(h(),S("div",nl)):(h(),S("img",{key:1,class:"mark",src:e.mark},null,8,il))])):V("",!0)}});var Ct=z(rl,[["__scopeId","data-v-2207999f"]]);const sl=D({__name:"Node",props:{id:null},setup(e){const n=le(e),i=en(In,()=>{}),r=en(En,()=>{}),s=Ne(null),o=M(()=>s.value&&s.value.parentElement);return Be([o,n.id],([u,c],[f,p])=>{f&&r(a(p)),u&&i(c,u)}),di(()=>r(a(n.id))),(u,c)=>(h(),S("div",{class:"node",ref_key:"node",ref:s},null,512))}});var tt=z(sl,[["__scopeId","data-v-a48cb382"]]);const ol=D({props:{visibility:{type:N(Number,Boolean),required:!0},display:N(Object,String,Function),earned:{type:N(Boolean),required:!0},image:N(String),style:N(String,Object,Array),classes:N(Object),mark:N(Boolean,String),id:{type:String,required:!0}},components:{Node:tt,MarkNode:Ct},setup(e){const{display:t}=le(e);return{component:Qe(t),unref:a,Visibility:W,isVisible:we,isHidden:Re}}});function al(e,t,n,i,r,s){var c;const o=he("MarkNode"),u=he("Node");return e.isVisible(e.visibility)?(h(),S("div",{key:0,style:ee([{visibility:e.isHidden(e.visibility)?"hidden":void 0,backgroundImage:e.earned&&e.image&&`url(${e.image})`||""},(c=e.unref(e.style))!=null?c:[]]),class:te({feature:!0,achievement:!0,locked:!e.unref(e.earned),bought:e.unref(e.earned),...e.unref(e.classes)})},[e.component?(h(),q(re(e.component),{key:0})):V("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(u,{id:e.id},null,8,["id"])],6)):V("",!0)}var ll=z(ol,[["render",al],["__scopeId","data-v-4ebd15db"]]);ve.on("setupVue",e=>e.use(vr));function qn(e="white",t="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 ${t} ${e}`,zIndex:1}}function ul(){return qn("red","20px")}const cl=kn(),dl=Symbol("Achievement");function hn(e){const t=me(!1,!1);return ce(()=>{var i;const n=(i=e==null?void 0:e())!=null?i:{};if(n.id=Me("achievement-"),n.type=dl,n[ge]=ll,n.earned=t,n.complete=function(){t.value=!0},_(n,"visibility"),H(n,"visibility",W.Visible),_(n,"display"),_(n,"mark"),_(n,"image"),_(n,"style"),_(n,"classes"),n[ye]=function(){const{visibility:r,display:s,earned:o,image:u,style:c,classes:f,mark:p,id:v}=this;return{visibility:r,display:s,earned:o,image:u,style:a(c),classes:f,mark:p,id:v}},n.shouldEarn){const r=n;Pe(()=>{var s,o;if(J.active===R.id&&!r.earned.value&&we(r.visibility)&&((s=r.shouldEarn)==null?void 0:s.call(r))&&(r.earned.value=!0,(o=r.onComplete)==null||o.call(r),r.display!=null)){const u=j(a(r.display));cl.info(d("div",null,[d("h3",null,[C("Achievement earned!")]),d("div",null,[d(u,null,null)])]))}})}return n})}const fl=D({props:{visibility:{type:N(Number,Boolean),required:!0},onClick:Function,onHold:Function,display:{type:N(Object,String,Function),required:!0},title:N(Object,String,Function),style:N(String,Object,Array),canClick:{type:N(Boolean),required:!0},id:{type:String,required:!0}},components:{Node:tt},setup(e){const{onClick:t,onHold:n,title:i,display:r}=le(e),{start:s,stop:o}=Mn(t,n),u=Qe(i),c=Nt(r);return{start:s,stop:o,titleComponent:u,component:c,Visibility:W,unref:a,isVisible:we,isHidden:Re}}}),pl={key:0};function ml(e,t,n,i,r,s){var u;const o=he("Node");return e.isVisible(e.visibility)?(h(),S("button",{key:0,class:te({feature:!0,tile:!0,can:e.unref(e.canClick),locked:!e.unref(e.canClick)}),style:ee([{visibility:e.isHidden(e.visibility)?"hidden":void 0},(u=e.unref(e.style))!=null?u:{}]),onClick:t[0]||(t[0]=(...c)=>e.onClick&&e.onClick(...c)),onMousedown:t[1]||(t[1]=(...c)=>e.start&&e.start(...c)),onMouseleave:t[2]||(t[2]=(...c)=>e.stop&&e.stop(...c)),onMouseup:t[3]||(t[3]=(...c)=>e.stop&&e.stop(...c)),onTouchstartPassive:t[4]||(t[4]=(...c)=>e.start&&e.start(...c)),onTouchendPassive:t[5]||(t[5]=(...c)=>e.stop&&e.stop(...c)),onTouchcancelPassive:t[6]||(t[6]=(...c)=>e.stop&&e.stop(...c))},[e.title?(h(),S("div",pl,[(h(),q(re(e.titleComponent)))])):V("",!0),(h(),q(re(e.component),{style:{"white-space":"pre-line"}})),d(o,{id:e.id},null,8,["id"])],38)):V("",!0)}var gl=z(fl,[["render",ml],["__scopeId","data-v-59906ec6"]]);const hl=D({props:{visibility:{type:N(Number,Boolean),required:!0},rows:{type:N(Number),required:!0},cols:{type:N(Number),required:!0},cells:{type:N(Object),required:!0}},components:{GridCell:gl},setup(){const e=M(()=>Xe[J.theme].mergeAdjacent);function t(n){const{visibility:i,onClick:r,onHold:s,display:o,title:u,style:c,canClick:f,id:p}=n;return{visibility:i,onClick:r,onHold:s,display:o,title:u,style:c,canClick:f,id:p}}return{unref:a,gatherCellProps:t,Visibility:W,mergeAdjacent:e,isVisible:we,isHidden:Re}}});function vl(e,t,n,i,r,s){const o=he("GridCell");return e.isVisible(e.visibility)?(h(),S("div",{key:0,style:ee({visibility:e.isHidden(e.visibility)?"hidden":void 0}),class:"table-grid"},[(h(!0),S(U,null,Ft(e.unref(e.rows),u=>(h(),S("div",{class:te(["row-grid",{mergeAdjacent:e.mergeAdjacent}]),key:u},[(h(!0),S(U,null,Ft(e.unref(e.cols),c=>(h(),q(o,ze({key:c},e.gatherCellProps(e.unref(e.cells)[u*100+c])),null,16))),128))],2))),128))],4)):V("",!0)}var bl=z(hl,[["render",vl]]);function yl(e){return new Proxy({},_l(e))}function _l(e){const t=M(()=>{const n=[];for(let i=1;i<=a(e.rows);i++)for(let r=1;r<=a(e.cols);r++)n.push((i*100+r).toString());return n});return{get(n,i){if(i==="isProxy")return!0;if(typeof i=="symbol")return e[i];if(!!t.value.includes(i.toString()))return n[i]==null&&(n[i]=new Proxy(e,wl(i.toString()))),n[i]},set(n,i,r){return console.warn("Cannot set grid cells",n,i,r),!1},ownKeys(){return t.value},has(n,i){return t.value.includes(i.toString())},getOwnPropertyDescriptor(n,i){if(t.value.includes(i.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function wl(e){const t=["id","visibility","canClick","startState","state","style","classes","title","display","onClick","onHold"],n={};return{get(i,r,s){if(r==="isProxy")return!0;let o=i[r];return ft(o)?()=>o.call(s,e,i.getState(e)):o!=null||typeof r=="symbol"?o:(r=r.slice(0,1).toUpperCase()+r.slice(1),r==="startState"?o.call(s,e):(o=i[`get${r}`],ft(o)?(r in n||(n[r]=M(()=>o.call(s,e,i.getState(e)))),n[r].value):o!=null?a(o):(o=i[`on${r}`],ft(o)?()=>o.call(s,e,i.getState(e)):o!=null?o:i[r])))},set(i,r,s,o){return r=`set${r.slice(0,1).toUpperCase()+r.slice(1)}`,r in i&&ft(i[r])&&i[r].length<3?(i[r].call(o,e,s),!0):(console.warn(`No setter for "${r}".`,i),!1)},ownKeys(){return t},has(i,r){return t.includes(r.toString())},getOwnPropertyDescriptor(i,r){if(t.includes(r.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function Nl(e){const t=me({},!1);return ce(()=>{const n=e();if(n.id=Me("grid-"),n[ge]=bl,n.cellState=t,n.getID=function(i){return n.id+"-"+i},n.getState=function(i){return this.cellState.value[i]!=null?t.value[i]:this.cells[i].startState},n.setState=function(i,r){t.value[i]=r},n.cells=yl(n),_(n,"visibility"),H(n,"visibility",W.Visible),_(n,"rows"),_(n,"cols"),_(n,"getVisibility"),H(n,"getVisibility",W.Visible),_(n,"getCanClick"),H(n,"getCanClick",!0),_(n,"getStartState"),_(n,"getStyle"),_(n,"getClasses"),_(n,"getTitle"),_(n,"getDisplay"),n.onClick){const i=n.onClick.bind(n);n.onClick=function(r,s,o){a(n.cells[r].canClick)&&i(r,s,o)}}if(n.onHold){const i=n.onHold.bind(n);n.onHold=function(r,s){a(n.cells[r].canClick)&&i(r,s)}}return n[ye]=function(){const{visibility:i,rows:r,cols:s,cells:o,id:u}=this;return{visibility:i,rows:r,cols:s,cells:o,id:u}},n})}const Cl=["x1","y1","x2","y2"],kl=D({__name:"Link",props:{link:null,startNode:null,endNode:null,boundingRect:null},setup(e){const n=le(e),i=M(()=>{const s=n.startNode.value.rect,o=n.boundingRect.value,u=o?{x:s.x+s.width/2-o.x,y:s.y+s.height/2-o.y}:{x:0,y:0};return n.link.value.offsetStart&&(u.x+=n.link.value.offsetStart.x,u.y+=n.link.value.offsetStart.y),u}),r=M(()=>{const s=n.endNode.value.rect,o=n.boundingRect.value,u=o?{x:s.x+s.width/2-o.x,y:s.y+s.height/2-o.y}:{x:0,y:0};return n.link.value.offsetEnd&&(u.x+=n.link.value.offsetEnd.x,u.y+=n.link.value.offsetEnd.y),u});return(s,o)=>(h(),S("line",ze({"stroke-width":"15px",stroke:"white"},e.link,{x1:a(i).x,y1:a(i).y,x2:a(r).x,y2:a(r).y}),null,16,Cl))}});const Sl=D({__name:"Links",props:{links:null},setup(e){var c;const n=st(e,"links"),i=O(null),r=en(Tn,O({})),s=en(Pn,O(void 0)),o=O((c=i.value)==null?void 0:c.getBoundingClientRect());Be(s,()=>{var f;return o.value=(f=i.value)==null?void 0:f.getBoundingClientRect()}),Bt(()=>{var f;return o.value=(f=i.value)==null?void 0:f.getBoundingClientRect()});const u=M(()=>{var p,v;const f=r.value;return(v=(p=n.value)==null?void 0:p.filter(w=>{var k,T;return((k=f[w.startNode.id])==null?void 0:k.rect)&&((T=f[w.startNode.id])==null?void 0:T.rect)}))!=null?v:[]});return(f,p)=>(h(),S(U,null,[a(u)?(h(),S("svg",cr(ze({key:0},f.$attrs)),[(h(!0),S(U,null,Ft(a(u),(v,w)=>(h(),q(kl,{key:w,link:v,boundingRect:o.value,startNode:a(r)[v.startNode.id],endNode:a(r)[v.endNode.id]},null,8,["link","boundingRect","startNode","endNode"]))),128))],16)):V("",!0),g("div",{ref_key:"resizeListener",ref:i,class:"resize-listener"},null,512)],64))}});var xi=z(Sl,[["__scopeId","data-v-c139d80e"]]),$l=D({props:{nodes:{type:N(Array),required:!0},leftSideNodes:N(Array),rightSideNodes:N(Array),branches:N(Array)},components:{Links:xi},setup(e){const{nodes:t,leftSideNodes:n,rightSideNodes:i}=le(e),r=Ne();Pe(()=>{const u=ue(t);r.value=j(L(()=>d(U,null,[u.map(c=>d("span",{class:"row tree-row",style:"margin: 50px auto;"},[c.map(Ke)]))])))});const s=Ne();Pe(()=>{const u=ue(n);s.value=u?j(L(()=>d("span",{class:"left-side-nodes small"},[u.map(Ke)]))):""});const o=Ne();return Pe(()=>{const u=ue(i);o.value=u?j(L(()=>d("span",{class:"side-nodes small"},[u.map(Ke)]))):""}),{unref:a,nodesComp:r,leftNodesComp:s,rightNodesComp:o}}});function Ml(e,t,n,i,r,s){const o=he("Links");return h(),S(U,null,[(h(),q(re(e.nodesComp))),e.leftNodesComp?(h(),q(re(e.leftNodesComp),{key:0})):V("",!0),e.rightNodesComp?(h(),q(re(e.rightNodesComp),{key:1})):V("",!0),e.branches?(h(),q(o,{key:2,links:e.unref(e.branches)},null,8,["links"])):V("",!0)],64)}var Il=z($l,[["render",Ml],["__scopeId","data-v-39ca96d0"]]);const El=D({props:{display:N(Object,String,Function),visibility:{type:N(Number,Boolean),required:!0},style:N(String,Object,Array),classes:N(Object),onClick:Function,onHold:Function,color:N(String),glowColor:N(String),canClick:{type:N(Boolean),required:!0},mark:N(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:Ct,Node:tt},setup(e){const{onClick:t,onHold:n,display:i}=le(e),r=Qe(i),{start:s,stop:o}=Mn(t,n);return{start:s,stop:o,comp:r,unref:a,Visibility:W,isCoercableComponent:Ve,isVisible:we,isHidden:Re}}});function Tl(e,t,n,i,r,s){var c;const o=he("MarkNode"),u=he("Node");return e.isVisible(e.visibility)?(h(),S("div",{key:0,style:ee({visibility:e.isHidden(e.visibility)?"hidden":void 0}),class:te({treeNode:!0,can:e.unref(e.canClick),...e.unref(e.classes)}),onClick:t[0]||(t[0]=(...f)=>e.onClick&&e.onClick(...f)),onMousedown:t[1]||(t[1]=(...f)=>e.start&&e.start(...f)),onMouseleave:t[2]||(t[2]=(...f)=>e.stop&&e.stop(...f)),onMouseup:t[3]||(t[3]=(...f)=>e.stop&&e.stop(...f)),onTouchstartPassive:t[4]||(t[4]=(...f)=>e.start&&e.start(...f)),onTouchendPassive:t[5]||(t[5]=(...f)=>e.stop&&e.stop(...f)),onTouchcancelPassive:t[6]||(t[6]=(...f)=>e.stop&&e.stop(...f))},[g("div",{style:ee([{backgroundColor:e.unref(e.color),boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 20px ${e.unref(e.glowColor)}`},(c=e.unref(e.style))!=null?c:[]])},[(h(),q(re(e.unref(e.comp))))],4),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(u,{id:e.id},null,8,["id"])],38)):V("",!0)}var Pl=z(El,[["render",Tl],["__scopeId","data-v-4520cd79"]]);const Fl=Symbol("TreeNode"),Vl=Symbol("Tree");function Tt(e){return ce(()=>{var n;const t=(n=e==null?void 0:e())!=null?n:{};if(t.id=Me("treeNode-"),t.type=Fl,t[ge]=Pl,_(t,"visibility"),H(t,"visibility",W.Visible),_(t,"canClick"),H(t,"canClick",!0),_(t,"color"),_(t,"display"),_(t,"glowColor"),_(t,"classes"),_(t,"style"),_(t,"mark"),t.onClick){const i=t.onClick.bind(t);t.onClick=function(r){a(t.canClick)!==!1&&i(r)}}if(t.onHold){const i=t.onHold.bind(t);t.onHold=function(){a(t.canClick)!==!1&&i()}}return t[ye]=function(){const{display:i,visibility:r,style:s,classes:o,onClick:u,onHold:c,color:f,glowColor:p,canClick:v,mark:w,id:k}=this;return{display:i,visibility:r,style:s,classes:o,onClick:u,onHold:c,color:f,glowColor:p,canClick:v,mark:w,id:k}},t})}function Ai(e){return ce(()=>{const t=e();return t.id=Me("tree-"),t.type=Vl,t[ge]=Il,t.isResetting=O(!1),t.resettingNode=Ne(null),t.reset=function(n){var r,s;const i=t;i.isResetting.value=!0,i.resettingNode.value=n,(r=i.resetPropagation)==null||r.call(i,i,n),(s=i.onReset)==null||s.call(i,n),i.isResetting.value=!1,i.resettingNode.value=null},t.links=M(()=>{var i;return(i=a(t.branches))!=null?i:[]}),_(t,"visibility"),H(t,"visibility",W.Visible),_(t,"nodes"),_(t,"leftSideNodes"),_(t,"rightSideNodes"),_(t,"branches"),t[ye]=function(){const{nodes:n,leftSideNodes:i,rightSideNodes:r,branches:s}=this;return{nodes:n,leftSideNodes:i,rightSideNodes:r,branches:s}},t})}const Ol=function(e,t){const n=[t];let i=[t];if(e.branches!=null){const r=a(e.branches);for(;i.length>0;){const s=[];i.forEach(o=>{r.filter(u=>u.startNode===o||u.endNode===o).map(u=>u.startNode===o?u.endNode:u.startNode).filter(u=>!n.includes(u)).forEach(u=>{var c;s.includes(u)||(s.push(u),(c=u.reset)==null||c.reset())})}),i=s,n.push(...i)}}};function Bi(e,t=null,n=0){const i=Ue(n);return M(()=>t==null||l.gte(e.value,a(i))?He(e)+" "+e.displayName:`Reach ${l.eq(t.precision,0)?Se(a(i)):Ce(a(i),t.precision)} ${t.displayName} to unlock (You have ${l.eq(t.precision,0)?Se(t.value):Ce(t.value,t.precision)})`)}var ql=D({props:{display:{type:N(Object,String,Function),required:!0},visibility:{type:N(Number,Boolean),required:!0},style:N(Object,String,Array),classes:N(Object),onClick:Function,onHold:Function,canClick:{type:N(Boolean),required:!0},small:Boolean,mark:N(Boolean,String),id:{type:String,required:!0}},components:{Node:tt,MarkNode:Ct},setup(e){const{display:t,onClick:n,onHold:i}=le(e),r=Ne("");Pe(()=>{var p;const u=ue(t);if(u==null){r.value="";return}if(Ve(u)){r.value=j(u);return}const c=j((p=u.title)!=null?p:"","h3"),f=j(u.description,"div");r.value=j(L(()=>d("span",null,[u.title!=null?d("div",null,[d(c,null,null)]):null,d(f,null,null)])))});const{start:s,stop:o}=Mn(n,i);return{start:s,stop:o,comp:r,Visibility:W,isVisible:we,isHidden:Re,unref:a}}});function Dl(e,t,n,i,r,s){var c;const o=he("MarkNode"),u=he("Node");return e.isVisible(e.visibility)?(h(),S("button",{key:0,style:ee([{visibility:e.isHidden(e.visibility)?"hidden":void 0},(c=e.unref(e.style))!=null?c:[]]),onClick:t[0]||(t[0]=(...f)=>e.onClick&&e.onClick(...f)),onMousedown:t[1]||(t[1]=(...f)=>e.start&&e.start(...f)),onMouseleave:t[2]||(t[2]=(...f)=>e.stop&&e.stop(...f)),onMouseup:t[3]||(t[3]=(...f)=>e.stop&&e.stop(...f)),onTouchstartPassive:t[4]||(t[4]=(...f)=>e.start&&e.start(...f)),onTouchendPassive:t[5]||(t[5]=(...f)=>e.stop&&e.stop(...f)),onTouchcancelPassive:t[6]||(t[6]=(...f)=>e.stop&&e.stop(...f)),class:te({feature:!0,clickable:!0,can:e.unref(e.canClick),locked:!e.unref(e.canClick),small:e.small,...e.unref(e.classes)})},[e.unref(e.comp)?(h(),q(re(e.unref(e.comp)),{key:0})):V("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(u,{id:e.id},null,8,["id"])],38)):V("",!0)}var Li=z(ql,[["render",Dl],["__scopeId","data-v-211328c0"]]);const Rl=Symbol("Clickable");function xt(e){return ce(()=>{var n;const t=(n=e==null?void 0:e())!=null?n:{};if(t.id=Me("clickable-"),t.type=Rl,t[ge]=Li,_(t,"visibility"),H(t,"visibility",W.Visible),_(t,"canClick"),H(t,"canClick",!0),_(t,"classes"),_(t,"style"),_(t,"mark"),_(t,"display"),t.onClick){const i=t.onClick.bind(t);t.onClick=function(r){a(t.canClick)!==!1&&i(r)}}if(t.onHold){const i=t.onHold.bind(t);t.onHold=function(){a(t.canClick)!==!1&&i()}}return t[ye]=function(){const{display:i,visibility:r,style:s,classes:o,onClick:u,onHold:c,canClick:f,small:p,mark:v,id:w}=this;return{display:i,visibility:r,style:a(s),classes:o,onClick:u,onHold:c,canClick:f,small:p,mark:v,id:w}},t})}const ji=l.ln(10);function It(e){return e}function xl(e,t){if(I(t))return t.invert(l.neg(e));throw new Error("Could not invert due to no input being a variable")}function Al(e,t){if(I(t))return $.neg(t.getIntegralFormula(e));throw new Error("Could not integrate due to no input being a variable")}function Bl(e){return $.neg(e)}function Ll(e,t,n){if(I(t))return t.invert(l.sub(e,fe(n)));if(I(n))return n.invert(l.sub(e,fe(t)));throw new Error("Could not invert due to no input being a variable")}function jl(e,t,n){var i,r;if(I(t)){const s=t.getIntegralFormula(e);return $.times(n,(i=t.innermostVariable)!=null?i:0).add(s)}else if(I(n)){const s=n.getIntegralFormula(e);return $.times(t,(r=n.innermostVariable)!=null?r:0).add(s)}throw new Error("Could not integrate due to no input being a variable")}function Ul(e,t,n){if(I(t)){const i=t.getIntegralFormula(e);return $.add(i,n)}else if(I(n)){const i=n.getIntegralFormula(e);return $.add(i,t)}throw new Error("Could not integrate due to no input being a variable")}function zl(e,t,n){if(I(t))return t.invert(l.add(e,fe(n)));if(I(n))return n.invert(l.sub(fe(t),e));throw new Error("Could not invert due to no input being a variable")}function Hl(e,t,n){var i,r;if(I(t)){const s=t.getIntegralFormula(e);return $.sub(s,$.times(n,(i=t.innermostVariable)!=null?i:0))}else if(I(n)){const s=n.getIntegralFormula(e);return $.times(t,(r=n.innermostVariable)!=null?r:0).sub(s)}throw new Error("Could not integrate due to no input being a variable")}function Gl(e,t,n){if(I(t)){const i=t.getIntegralFormula(e);return $.sub(i,n)}else if(I(n)){const i=n.getIntegralFormula(e);return $.sub(i,t)}throw new Error("Could not integrate due to no input being a variable")}function Wl(e,t,n){if(I(t))return t.invert(l.div(e,fe(n)));if(I(n))return n.invert(l.div(e,fe(t)));throw new Error("Could not invert due to no input being a variable")}function Yl(e,t,n){if(I(t)){const i=t.getIntegralFormula(e);return $.times(i,n)}else if(I(n)){const i=n.getIntegralFormula(e);return $.times(i,t)}throw new Error("Could not integrate due to no input being a variable")}function Kl(e,t,n){if(I(t))return $.div(e,n);if(I(n))return $.div(e,t);throw new Error("Could not apply substitution due to no input being a variable")}function Zl(e,t,n){if(I(t))return t.invert(l.mul(e,fe(n)));if(I(n))return n.invert(l.div(fe(t),e));throw new Error("Could not invert due to no input being a variable")}function Jl(e,t,n){if(I(t)){const i=t.getIntegralFormula(e);return $.div(i,n)}else if(I(n)){const i=n.getIntegralFormula(e);return $.div(t,i)}throw new Error("Could not integrate due to no input being a variable")}function Xl(e,t,n){if(I(t))return $.mul(e,n);if(I(n))return $.mul(e,t);throw new Error("Could not apply substitution due to no input being a variable")}function Ql(e,t){if(I(t))return t.invert(l.recip(e));throw new Error("Could not invert due to no input being a variable")}function eu(e,t){if(I(t)){const n=t.getIntegralFormula(e);return $.ln(n)}throw new Error("Could not integrate due to no input being a variable")}function tu(e,t){if(I(t))return t.invert(l.pow10(e));throw new Error("Could not invert due to no input being a variable")}function nu(e){return l.ln(e).sub(1).times(e).div(ji)}function iu(e,t){if(I(t)){const n=ji.times(e);return t.invert(n.div(n.div(Math.E).lambertw()))}throw new Error("Could not invert due to no input being a variable")}function ru(e,t){if(I(t))return new $({inputs:[t.getIntegralFormula(e)],evaluate:nu,invert:iu});throw new Error("Could not integrate due to no input being a variable")}function su(e,t,n){if(I(t))return t.invert(l.pow(fe(n),e));if(I(n))return n.invert(l.root(fe(t),e));throw new Error("Could not invert due to no input being a variable")}function ou(e,t){return l.ln(e).sub(1).times(e).div(l.ln(t))}function au(e,t,n){if(I(t)){const i=l.ln(fe(n)).times(e);return t.invert(i.div(i.div(Math.E).lambertw()))}throw new Error("Could not invert due to no input being a variable")}function lu(e,t,n){if(I(t))return new $({inputs:[t.getIntegralFormula(e),n],evaluate:ou,invert:au});throw new Error("Could not integrate due to no input being a variable")}function uu(e,t){if(I(t))return t.invert(l.pow(2,e));throw new Error("Could not invert due to no input being a variable")}function cu(e){return l.ln(e).sub(1).times(e).div(l.ln(2))}function du(e,t){if(I(t)){const n=l.ln(2).times(e);return t.invert(n.div(n.div(Math.E).lambertw()))}throw new Error("Could not invert due to no input being a variable")}function fu(e,t){if(I(t))return new $({inputs:[t.getIntegralFormula(e)],evaluate:cu,invert:du});throw new Error("Could not integrate due to no input being a variable")}function pu(e,t){if(I(t))return t.invert(l.exp(e));throw new Error("Could not invert due to no input being a variable")}function mu(e){return l.ln(e).sub(1).times(e)}function gu(e,t){if(I(t))return t.invert(l.div(e,l.div(e,Math.E).lambertw()));throw new Error("Could not invert due to no input being a variable")}function hu(e,t){if(I(t))return new $({inputs:[t.getIntegralFormula(e)],evaluate:mu,invert:gu});throw new Error("Could not integrate due to no input being a variable")}function vu(e,t,n){if(I(t))return t.invert(l.root(e,fe(n)));if(I(n))return n.invert(l.ln(e).div(l.ln(fe(t))));throw new Error("Could not invert due to no input being a variable")}function bu(e,t,n){if(I(t)){const i=t.getIntegralFormula(e),r=$.add(n,1);return $.pow(i,r).div(r)}else if(I(n)){const i=n.getIntegralFormula(e);return $.pow(t,i).div($.ln(t))}throw new Error("Could not integrate due to no input being a variable")}function yu(e,t){if(I(t))return t.invert(l.root(e,10));throw new Error("Could not invert due to no input being a variable")}function _u(e,t){if(I(t)){const n=t.getIntegralFormula(e);return $.pow10(n).div($.ln(10))}throw new Error("Could not integrate due to no input being a variable")}function wu(e,t,n){if(I(t))return t.invert(l.ln(e).div(fe(n)));if(I(n))return n.invert(l.root(fe(t),e));throw new Error("Could not invert due to no input being a variable")}function Nu(e,t,n){if(I(t)){const i=t.getIntegralFormula(e);return $.pow(n,i).div($.ln(n))}else if(I(n)){const i=n.getIntegralFormula(e),r=$.add(t,1);return $.pow(i,r).div(r)}throw new Error("Could not integrate due to no input being a variable")}function Cu(e,t,n){if(I(t))return t.invert(l.root(e,l.recip(fe(n))));if(I(n))return n.invert(l.ln(fe(t)).div(l.ln(e)));throw new Error("Could not invert due to no input being a variable")}function ku(e,t,n){if(I(t)){const i=t.getIntegralFormula(e);return $.pow(i,$.recip(n).add(1)).times(n).div($.add(n,1))}throw new Error("Could not integrate due to no input being a variable")}function Su(e,t){if(I(t))return t.invert(l.ln(e));throw new Error("Could not invert due to no input being a variable")}function $u(e,t){if(I(t)){const n=t.getIntegralFormula(e);return $.exp(n)}throw new Error("Could not integrate due to no input being a variable")}function Mu(e,t=2,n=l.fromComponents_noNormalize(1,0,1)){const i=l.minabs(t,1e308).toNumber();return l.tetrate(e,i,n)}function Iu(e,t,n,i){if(I(t))return t.invert(l.ssqrt(e));throw new Error("Could not invert due to no input being a variable")}function Eu(e,t=2,n=l.fromComponents_noNormalize(1,0,1)){const i=l.minabs(t,1e308).toNumber();return l.iteratedexp(e,i,new l(n))}function Tu(e,t,n,i){if(I(t))return t.invert(l.iteratedlog(e,Math.E,l.minabs(1e308,fe(n)).toNumber()));throw new Error("Could not invert due to no input being a variable")}function Pu(e,t=10,n=2){const i=l.minabs(n,1e308).toNumber();return l.iteratedlog(e,t,i)}function Fu(e,t=10){const n=l.minabs(t,1e308).toNumber();return l.slog(e,n)}function Vu(e,t,n){if(I(t))return t.invert(l.tetrate(e,l.minabs(1e308,fe(n)).toNumber()));throw new Error("Could not invert due to no input being a variable")}function Ou(e,t,n){const i=l.minabs(t,1e308).toNumber();return l.layeradd(e,i,n)}function qu(e,t,n,i){if(I(t))return t.invert(l.layeradd(e,l.minabs(1e308,fe(n)).negate().toNumber()));throw new Error("Could not invert due to no input being a variable")}function Du(e,t){if(I(t))return t.invert(l.pow(Math.E,e).times(e));throw new Error("Could not invert due to no input being a variable")}function Ru(e,t){if(I(t))return t.invert(l.tetrate(e,2));throw new Error("Could not invert due to no input being a variable")}function xu(e,t,n){const i=l.minabs(t,1e308).toNumber();return l.pentate(e,i,n)}function Au(e,t){if(I(t))return t.invert(l.asin(e));throw new Error("Could not invert due to no input being a variable")}function Bu(e,t){if(I(t)){const n=t.getIntegralFormula(e);return $.cos(n).neg()}throw new Error("Could not integrate due to no input being a variable")}function Lu(e,t){if(I(t))return t.invert(l.acos(e));throw new Error("Could not invert due to no input being a variable")}function ju(e,t){if(I(t)){const n=t.getIntegralFormula(e);return $.sin(n)}throw new Error("Could not integrate due to no input being a variable")}function Uu(e,t){if(I(t))return t.invert(l.atan(e));throw new Error("Could not invert due to no input being a variable")}function zu(e,t){if(I(t)){const n=t.getIntegralFormula(e);return $.cos(n).ln().neg()}throw new Error("Could not integrate due to no input being a variable")}function Hu(e,t){if(I(t))return t.invert(l.sin(e));throw new Error("Could not invert due to no input being a variable")}function Gu(e,t){if(I(t)){const n=t.getIntegralFormula(e);return $.asin(n).times(n).add($.sqrt($.sub(1,$.pow(n,2))))}throw new Error("Could not integrate due to no input being a variable")}function Wu(e,t){if(I(t))return t.invert(l.cos(e));throw new Error("Could not invert due to no input being a variable")}function Yu(e,t){if(I(t)){const n=t.getIntegralFormula(e);return $.acos(n).times(n).sub($.sqrt($.sub(1,$.pow(n,2))))}throw new Error("Could not integrate due to no input being a variable")}function Ku(e,t){if(I(t))return t.invert(l.tan(e));throw new Error("Could not invert due to no input being a variable")}function Zu(e,t){if(I(t)){const n=t.getIntegralFormula(e);return $.atan(n).times(n).sub($.ln($.pow(n,2).add(1)).div(2))}throw new Error("Could not integrate due to no input being a variable")}function Ju(e,t){if(I(t))return t.invert(l.asinh(e));throw new Error("Could not invert due to no input being a variable")}function Xu(e,t){if(I(t)){const n=t.getIntegralFormula(e);return $.cosh(n)}throw new Error("Could not integrate due to no input being a variable")}function Qu(e,t){if(I(t))return t.invert(l.acosh(e));throw new Error("Could not invert due to no input being a variable")}function ec(e,t){if(I(t)){const n=t.getIntegralFormula(e);return $.sinh(n)}throw new Error("Could not integrate due to no input being a variable")}function tc(e,t){if(I(t))return t.invert(l.atanh(e));throw new Error("Could not invert due to no input being a variable")}function nc(e,t){if(I(t)){const n=t.getIntegralFormula(e);return $.cosh(n).ln()}throw new Error("Could not integrate due to no input being a variable")}function ic(e,t){if(I(t))return t.invert(l.sinh(e));throw new Error("Could not invert due to no input being a variable")}function rc(e,t){if(I(t)){const n=t.getIntegralFormula(e);return $.asinh(n).times(n).sub($.pow(n,2).add(1).sqrt())}throw new Error("Could not integrate due to no input being a variable")}function sc(e,t){if(I(t))return t.invert(l.cosh(e));throw new Error("Could not invert due to no input being a variable")}function oc(e,t){if(I(t)){const n=t.getIntegralFormula(e);return $.acosh(n).times(n).sub($.add(n,1).sqrt().times($.sub(n,1).sqrt()))}throw new Error("Could not integrate due to no input being a variable")}function ac(e,t){if(I(t))return t.invert(l.tanh(e));throw new Error("Could not invert due to no input being a variable")}function lc(e,t){if(I(t)){const n=t.getIntegralFormula(e);return $.atanh(n).times(n).add($.sub(1,$.pow(n,2)).ln().div(2))}throw new Error("Could not integrate due to no input being a variable")}function kt(e){return(t,n)=>new $({inputs:[t,n],evaluate:e,invert:It})}function I(e){return e instanceof $&&e.hasVariable()}function fe(e,t){return e instanceof $?e.evaluate(t):a(e)}function uc(){return $.pow(this,2).div(2)}function cc(){return this}const b=class{constructor(e){this.negate=this.neg,this.negated=this.neg,this.sgn=this.sign,this.plus=this.add,this.subtract=this.sub,this.minus=this.sub,this.multiply=this.mul,this.times=this.mul,this.divide=this.div,this.divideBy=this.div,this.dividedBy=this.div,this.reciprocal=this.recip,this.reciprocate=this.recip,this.logarithm=this.log;let t;"variable"in e?t=this.setupVariable(e):"evaluate"in e?t=this.setupFormula(e):t=this.setupConstant(e),this.inputs=t.inputs,this.internalVariables=t.internalVariables,this.innermostVariable=t.innermostVariable,this.internalEvaluate=t.internalEvaluate,this.internalInvert=t.internalInvert,this.internalIntegrate=t.internalIntegrate,this.internalIntegrateInner=t.internalIntegrateInner,this.applySubstitution=t.applySubstitution}setupVariable({variable:e}){return{inputs:[e],internalVariables:1,innermostVariable:e,internalIntegrate:uc,internalIntegrateInner:cc,applySubstitution:It}}setupConstant({inputs:e}){if(e.length!==1)throw new Error("Evaluate function is required if inputs is not length 1");return{inputs:e,internalVariables:0}}setupFormula(e){const{inputs:t,evaluate:n,invert:i,integrate:r,integrateInner:s,applySubstitution:o}=e,u=t.reduce((p,v)=>p+(v instanceof b?v.internalVariables:0),0),c=t.find(p=>p instanceof b&&p.hasVariable()),f=u===1?c==null?void 0:c.innermostVariable:void 0;return{inputs:t,internalEvaluate:n,internalInvert:i,internalIntegrate:r,internalIntegrateInner:s,applySubstitution:o,innermostVariable:f,internalVariables:u}}calculateConstantOfIntegration(){const e=this.getIntegralFormula().evaluate(1),t=l.add(this.evaluate(0),this.evaluate(1)).div(2);return l.sub(t,e)}isInvertible(){return this.hasVariable()&&(this.internalInvert!=null||this.internalEvaluate==null)}isIntegrable(){return this.hasVariable()&&this.internalIntegrate!=null}isIntegralInvertible(){return this.isIntegrable()?this.getIntegralFormula().isInvertible():!1}hasVariable(){return this.internalVariables===1}evaluate(e){var t,n,i;return(i=(n=(t=this.internalEvaluate)==null?void 0:t.call(this,...this.inputs.map(r=>fe(r,e))))!=null?n:this.hasVariable()?e:null)!=null?i:fe(this.inputs[0])}invert(e){if(this.internalInvert&&this.hasVariable())return this.internalInvert.call(this,e,...this.inputs);if(this.inputs.length===1&&this.hasVariable())return e;throw new Error("Cannot invert non-invertible formula")}evaluateIntegral(e){if(!this.isIntegrable())throw new Error("Cannot evaluate integral of formula without integral");return this.getIntegralFormula().evaluate(e)}invertIntegral(e){if(!this.isIntegrable()||!this.getIntegralFormula().isInvertible())throw new Error("Cannot invert integral of formula without invertible integral");return this.getIntegralFormula().invert(e)}getIntegralFormula(e){if(this.integralFormula!=null&&e==null)return this.integralFormula;if(e==null){if(this.applySubstitution==null){if(e=[],this.internalIntegrate==null)throw new Error("Cannot integrate formula with non-integrable operation");let t=this.internalIntegrate.call(this,e,...this.inputs);e.forEach(n=>t=n(t)),this.integralFormula=t}else if(this.internalIntegrate)this.integralFormula=this.internalIntegrate.call(this,void 0,...this.inputs);else if(this.inputs.length===1&&this.internalEvaluate==null&&this.hasVariable())this.integralFormula=this;else throw new Error("Cannot integrate formula without variable");return this.integralFormula}else{if(this.applySubstitution==null)throw new Error("Cannot have two complex operations in an integrable formula");if(e.push(t=>this.applySubstitution.call(this,t,...this.inputs)),this.internalIntegrateInner)return this.internalIntegrateInner.call(this,e,...this.inputs);if(this.internalIntegrate)return this.internalIntegrate.call(this,e,...this.inputs);if(this.inputs.length===1&&this.internalEvaluate==null&&this.hasVariable())return this;throw new Error("Cannot integrate formula without variable")}}equals(e){return this.inputs.length===e.inputs.length&&this.inputs.every((t,n)=>t instanceof b&&e.inputs[n]instanceof b?t.equals(e.inputs[n]):!(t instanceof b)&&!(e.inputs[n]instanceof b)&&l.eq(a(t),a(e.inputs[n])))&&this.internalEvaluate===e.internalEvaluate&&this.internalInvert===e.internalInvert&&this.internalIntegrate===e.internalIntegrate&&this.internalVariables===e.internalVariables}static constant(e){return new b({inputs:[e]})}static variable(e){return new b({variable:e})}static step(e,t,n){const i=O(0),r=n(b.variable(i)),s=Ue(t);function o(c){return l.lt(c,a(s))?c:(i.value=l.sub(c,a(s)),l.add(r.evaluate(),a(s)))}function u(c,f){if(I(f))return l.gt(c,a(s))&&(c=l.add(r.invert(l.sub(c,a(s))),a(s))),f.invert(c);throw new Error("Could not invert due to no input being a variable")}return new b({inputs:[e],evaluate:o,invert:r.isInvertible()&&r.hasVariable()?u:void 0})}static if(e,t,n){const i=O(0),r=n(b.variable(i)),s=Ue(t);function o(c){return a(s)?(i.value=c,r.evaluate()):c}function u(c,f){if(!I(f))throw new Error("Could not invert due to no input being a variable");return a(s)?f.invert(r.invert(c)):f.invert(c)}return new b({inputs:[e],evaluate:o,invert:r.isInvertible()&&r.hasVariable()?u:void 0})}static conditional(e,t,n){return b.if(e,t,n)}static abs(e){return new b({inputs:[e],evaluate:l.abs})}static neg(e){return new b({inputs:[e],evaluate:l.neg,invert:xl,applySubstitution:Bl,integrate:Al})}static sign(e){return new b({inputs:[e],evaluate:l.sign})}static round(e){return new b({inputs:[e],evaluate:l.round})}static floor(e){return new b({inputs:[e],evaluate:l.floor})}static ceil(e){return new b({inputs:[e],evaluate:l.ceil})}static trunc(e){return new b({inputs:[e],evaluate:l.trunc})}static add(e,t){return new b({inputs:[e,t],evaluate:l.add,invert:Ll,integrate:jl,integrateInner:Ul,applySubstitution:It})}static sub(e,t){return new b({inputs:[e,t],evaluate:l.sub,invert:zl,integrate:Hl,integrateInner:Gl,applySubstitution:It})}static mul(e,t){return new b({inputs:[e,t],evaluate:l.mul,invert:Wl,integrate:Yl,applySubstitution:Kl})}static div(e,t){return new b({inputs:[e,t],evaluate:l.div,invert:Zl,integrate:Jl,applySubstitution:Xl})}static recip(e){return new b({inputs:[e],evaluate:l.recip,invert:Ql,integrate:eu})}static clamp(e,t,n){return new b({inputs:[e,t,n],evaluate:l.clamp,invert:It})}static pLog10(e){return new b({inputs:[e],evaluate:l.pLog10})}static absLog10(e){return new b({inputs:[e],evaluate:l.absLog10})}static log10(e){return new b({inputs:[e],evaluate:l.log10,invert:tu,integrate:ru})}static log(e,t){return new b({inputs:[e,t],evaluate:l.log,invert:su,integrate:lu})}static log2(e){return new b({inputs:[e],evaluate:l.log2,invert:uu,integrate:fu})}static ln(e){return new b({inputs:[e],evaluate:l.ln,invert:pu,integrate:hu})}static pow(e,t){return new b({inputs:[e,t],evaluate:l.pow,invert:vu,integrate:bu})}static pow10(e){return new b({inputs:[e],evaluate:l.pow10,invert:yu,integrate:_u})}static pow_base(e,t){return new b({inputs:[e,t],evaluate:l.pow_base,invert:wu,integrate:Nu})}static root(e,t){return new b({inputs:[e,t],evaluate:l.root,invert:Cu,integrate:ku})}static factorial(e){return new b({inputs:[e],evaluate:l.factorial})}static gamma(e){return new b({inputs:[e],evaluate:l.gamma})}static lngamma(e){return new b({inputs:[e],evaluate:l.lngamma})}static exp(e){return new b({inputs:[e],evaluate:l.exp,invert:Su,integrate:$u})}static sqr(e){return b.pow(e,2)}static sqrt(e){return b.root(e,2)}static cube(e){return b.pow(e,3)}static cbrt(e){return b.root(e,3)}static tetrate(e,t=2,n=l.fromComponents_noNormalize(1,0,1)){return new b({inputs:[e,t,n],evaluate:Mu,invert:Iu})}static iteratedexp(e,t=2,n=l.fromComponents_noNormalize(1,0,1)){return new b({inputs:[e,t,n],evaluate:Eu,invert:Tu})}static iteratedlog(e,t=10,n=1){return new b({inputs:[e,t,n],evaluate:Pu})}static slog(e,t=10){return new b({inputs:[e,t],evaluate:Fu,invert:Vu})}static layeradd10(e,t){return new b({inputs:[e,t],evaluate:l.layeradd10})}static layeradd(e,t,n=10){return new b({inputs:[e,t,n],evaluate:Ou,invert:qu})}static lambertw(e){return new b({inputs:[e],evaluate:l.lambertw,invert:Du})}static ssqrt(e){return new b({inputs:[e],evaluate:l.ssqrt,invert:Ru})}static pentate(e,t=2,n=l.fromComponents_noNormalize(1,0,1)){return new b({inputs:[e,t,n],evaluate:xu})}static sin(e){return new b({inputs:[e],evaluate:l.sin,invert:Hu,integrate:Bu})}static cos(e){return new b({inputs:[e],evaluate:l.cos,invert:Wu,integrate:ju})}static tan(e){return new b({inputs:[e],evaluate:l.tan,invert:Ku,integrate:zu})}static asin(e){return new b({inputs:[e],evaluate:l.asin,invert:Au,integrate:Gu})}static acos(e){return new b({inputs:[e],evaluate:l.acos,invert:Lu,integrate:Yu})}static atan(e){return new b({inputs:[e],evaluate:l.atan,invert:Uu,integrate:Zu})}static sinh(e){return new b({inputs:[e],evaluate:l.sinh,invert:ic,integrate:Xu})}static cosh(e){return new b({inputs:[e],evaluate:l.cosh,invert:sc,integrate:ec})}static tanh(e){return new b({inputs:[e],evaluate:l.tanh,invert:ac,integrate:nc})}static asinh(e){return new b({inputs:[e],evaluate:l.asinh,invert:Ju,integrate:rc})}static acosh(e){return new b({inputs:[e],evaluate:l.acosh,invert:Qu,integrate:oc})}static atanh(e){return new b({inputs:[e],evaluate:l.atanh,invert:tc,integrate:lc})}step(e,t){return b.step(this,e,t)}if(e,t){return b.if(this,e,t)}conditional(e,t){return b.if(this,e,t)}abs(){return b.abs(this)}neg(){return b.neg(this)}sign(){return b.sign(this)}round(){return b.round(this)}floor(){return b.floor(this)}ceil(){return b.ceil(this)}trunc(){return b.trunc(this)}add(e){return b.add(this,e)}sub(e){return b.sub(this,e)}mul(e){return b.mul(this,e)}div(e){return b.div(this,e)}recip(){return b.recip(this)}max(e){return b.max(this,e)}min(e){return b.min(this,e)}maxabs(e){return b.maxabs(this,e)}minabs(e){return b.minabs(this,e)}clamp(e,t){return b.clamp(this,e,t)}clampMin(e){return b.clampMin(this,e)}clampMax(e){return b.clampMax(this,e)}pLog10(){return b.pLog10(this)}absLog10(){return b.absLog10(this)}log10(){return b.log10(this)}log(e){return b.log(this,e)}log2(){return b.log2(this)}ln(){return b.ln(this)}pow(e){return b.pow(this,e)}pow10(){return b.pow10(this)}pow_base(e){return b.pow_base(this,e)}root(e){return b.root(this,e)}factorial(){return b.factorial(this)}gamma(){return b.gamma(this)}lngamma(){return b.lngamma(this)}exp(){return b.exp(this)}sqr(){return b.pow(this,2)}sqrt(){return b.root(this,2)}cube(){return b.pow(this,3)}cbrt(){return b.root(this,3)}tetrate(e=2,t=l.fromComponents_noNormalize(1,0,1)){return b.tetrate(this,e,t)}iteratedexp(e=2,t=l.fromComponents_noNormalize(1,0,1)){return b.iteratedexp(this,e,t)}iteratedlog(e=10,t=1){return b.iteratedlog(this,e,t)}slog(e=10){return b.slog(this,e)}layeradd10(e){return b.layeradd10(this,e)}layeradd(e,t){return b.layeradd(this,e,t)}lambertw(){return b.lambertw(this)}ssqrt(){return b.ssqrt(this)}pentate(e=2,t=l.fromComponents_noNormalize(1,0,1)){return b.pentate(this,e,t)}sin(){return b.sin(this)}cos(){return b.cos(this)}tan(){return b.tan(this)}asin(){return b.asin(this)}acos(){return b.acos(this)}atan(){return b.atan(this)}sinh(){return b.sinh(this)}cosh(){return b.cosh(this)}tanh(){return b.tanh(this)}asinh(){return b.asinh(this)}acosh(){return b.acosh(this)}atanh(){return b.atanh(this)}};let $=b;$.negate=b.neg;$.negated=b.neg;$.sgn=b.sign;$.plus=b.add;$.subtract=b.sub;$.minus=b.sub;$.multiply=b.mul;$.times=b.mul;$.divide=b.div;$.divideBy=b.div;$.dividedBy=b.div;$.reciprocal=b.recip;$.reciprocate=b.recip;$.max=kt(l.max);$.min=kt(l.min);$.minabs=kt(l.minabs);$.maxabs=kt(l.maxabs);$.clampMin=kt(l.clampMin);$.clampMax=kt(l.clampMax);$.logarithm=b.log;function dc(e,t,n=!0,i){const r=Ue(n);return M(()=>{var o,u;let s;if(a(r)){if(!e.isIntegrable()||!e.isIntegralInvertible())throw new Error("Cannot calculate max affordable of formula with non-invertible integral");s=l.floor(e.invertIntegral(l.add(t.value,e.evaluateIntegral()))).sub((o=a(e.innermostVariable))!=null?o:0),i==null&&(i=10)}else{if(!e.isInvertible())throw new Error("Cannot calculate max affordable of non-invertible formula");s=l.floor(e.invert(t.value)),i==null&&(i=0)}if(i>0){s=s.sub(i).clampMin(0);let c=Qt(e,s,!0,0);for(;;){const f=e.evaluate(s.add((u=a(e.innermostVariable))!=null?u:0));if(l.add(c,f).lt(t.value))s=s.add(1),c=l.add(c,f);else break}}return s})}function Qt(e,t,n=!0,i){var s,o,u;let r=l.add(t,(s=a(e.innermostVariable))!=null?s:0);if(n){const c=r;r=r.sub(i!=null?i:10).clampMin((o=a(e.innermostVariable))!=null?o:0);let f=l.sub(e.evaluateIntegral(r),e.evaluateIntegral());if(c.gt(1e308))return f.add(l.sub(c,r).times(e.evaluate(r)));for(let p=r.toNumber();p{const t=e();_(t,"showNextAt"),H(t,"showNextAt",!0),H(t,"minimumGain",1),t.resetDescription==null?t.resetDescription=M(()=>l.lt(t.conversion.gainResource.value,1e3)?"Reset for ":""):_(t,"resetDescription"),t.display==null&&(t.display=L(()=>d("span",null,[a(t.resetDescription),d("b",null,[He(t.conversion.gainResource,l.max(a(t.conversion.actualGain),a(t.minimumGain)))])," ",t.conversion.gainResource.displayName,a(t.showNextAt)!=null?d("div",null,[d("br",null,null),a(t.conversion.buyMax)?"Next:":"Req:"," ",He(t.conversion.baseResource,a(t.conversion.buyMax)||l.floor(a(t.conversion.actualGain)).neq(1)?a(t.conversion.nextAt):a(t.conversion.currentAt))," ",t.conversion.baseResource.displayName]):null]))),t.canClick==null&&(t.canClick=M(()=>l.gte(a(t.conversion.actualGain),a(t.minimumGain))));const n=t.onClick;return t.onClick=function(i){a(t.canClick)!==!1&&(t.conversion.convert(),t.tree.reset(t.treeNode),t.resetTime&&(t.resetTime.value=t.resetTime[ot]),n==null||n(i))},t})}function zi(e){return Tt(()=>{const t=e();return _(t,"display"),H(t,"display",t.layerID),_(t,"append"),{...t,display:t.display,onClick:a(t.append)?function(){if(R.tabs.includes(t.layerID)){const n=R.tabs.lastIndexOf(t.layerID);R.tabs.splice(n,1)}else R.tabs.push(t.layerID)}:function(){R.tabs.splice(1,1,t.layerID)}}})}function fc(e,t){return new $({inputs:[t],evaluate:n=>e.apply(n),invert:"revert"in e&&e.revert!=null?(n,i)=>{if(i instanceof $&&i.hasVariable())return i.invert(e.revert(n));throw new Error("Could not invert due to no input being a variable")}:void 0})}function Hi(e){return ce(()=>{const t=e();return t.formula=t.formula($.variable(t.baseResource)),t.currentGain==null&&(t.currentGain=M(()=>{let n=t.formula.evaluate(t.baseResource.value);return n=l.floor(n).max(0),a(t.buyMax)===!1&&(n=n.min(1)),n})),t.actualGain==null&&(t.actualGain=t.currentGain),t.currentAt==null&&(t.currentAt=M(()=>t.formula.invert(l.floor(a(t.currentGain))))),t.nextAt==null&&(t.nextAt=M(()=>t.formula.invert(l.floor(a(t.currentGain)).add(1)))),t.convert==null&&(t.convert=function(){var i;const n=a(t.currentGain);t.gainResource.value=l.add(t.gainResource.value,n),t.spend(n),(i=t.onConvert)==null||i.call(t,n)}),t.spend==null&&(t.spend=function(){t.baseResource.value=0}),_(t,"currentGain"),_(t,"actualGain"),_(t,"currentAt"),_(t,"nextAt"),_(t,"buyMax"),H(t,"buyMax",!0),t})}function pc(e){return Hi(e)}function mc(e){return Hi(()=>{const t=e();return H(t,"buyMax",!1),t.currentGain==null&&(t.currentGain=M(()=>{let n=t.formula.evaluate(t.baseResource.value);return n=l.floor(n).max(t.gainResource.value),a(t.buyMax)===!1&&(n=n.min(l.add(t.gainResource.value,1))),n})),t.actualGain==null&&(t.actualGain=M(()=>{let n=l.sub(t.formula.evaluate(t.baseResource.value),t.gainResource.value).max(0);return a(t.buyMax)===!1&&(n=n.min(1)),n})),H(t,"convert",function(){var i;const n=a(t.actualGain);t.gainResource.value=a(t.currentGain),t.spend(n),(i=t.onConvert)==null||i.call(t,n)}),t})}const gc=D({props:{visibility:{type:N(Number,Boolean),required:!0},display:{type:N(Object,String,Function),required:!0},title:{type:N(Object,String,Function),required:!0},color:N(String),collapsed:{type:Object,required:!0},style:N(Object,String,Array),titleStyle:N(Object,String,Array),bodyStyle:N(Object,String,Array),classes:N(Object),id:{type:String,required:!0}},components:{Node:tt,CollapseTransition:pr},setup(e){const{title:t,display:n}=le(e),i=Nt(t),r=Nt(n),s=M(()=>Xe[J.theme].mergeAdjacent);return{titleComponent:i,bodyComponent:r,stacked:s,unref:a,Visibility:W,isVisible:we,isHidden:Re}}}),hc=e=>(Ge("data-v-0f2462b8"),e=e(),We(),e),vc=hc(()=>g("span",{class:"toggle"},"\u25BC",-1));function bc(e,t,n,i,r,s){var c;const o=he("CollapseTransition"),u=he("Node");return e.isVisible(e.visibility)?(h(),S("div",{key:0,class:te(["infobox",{collapsed:e.unref(e.collapsed),stacked:e.stacked,...e.unref(e.classes)}]),style:ee([{borderColor:e.unref(e.color),visibility:e.isHidden(e.visibility)?"hidden":void 0},(c=e.unref(e.style))!=null?c:{}])},[g("button",{class:"title",style:ee([{backgroundColor:e.unref(e.color)},e.unref(e.titleStyle)||[]]),onClick:t[0]||(t[0]=f=>e.collapsed.value=!e.unref(e.collapsed))},[vc,(h(),q(re(e.titleComponent)))],4),d(o,null,{default:x(()=>[e.unref(e.collapsed)?V("",!0):(h(),S("div",{key:0,class:"body",style:ee({backgroundColor:e.unref(e.color)})},[(h(),q(re(e.bodyComponent),{style:ee(e.unref(e.bodyStyle))},null,8,["style"]))],4))]),_:1}),d(u,{id:e.id},null,8,["id"])],6)):V("",!0)}var yc=z(gc,[["render",bc],["__scopeId","data-v-0f2462b8"]]);const _c=Symbol("Infobox");function Gi(e){const t=me(!1,!1);return ce(()=>{const n=e();return n.id=Me("infobox-"),n.type=_c,n[ge]=yc,n.collapsed=t,_(n,"visibility"),H(n,"visibility",W.Visible),_(n,"color"),_(n,"style"),_(n,"titleStyle"),_(n,"bodyStyle"),_(n,"classes"),_(n,"title"),_(n,"display"),n[ye]=function(){const{visibility:i,display:r,title:s,color:o,collapsed:u,style:c,titleStyle:f,bodyStyle:p,classes:v,id:w}=this;return{visibility:i,display:r,title:s,color:o,collapsed:u,style:a(c),titleStyle:f,bodyStyle:p,classes:v,id:w}},n})}mi.registerPlugin(br);yr.registerPlugin("batch",_r);var wc=D({props:{style:N(String,Object,Array),classes:N(Object),onInit:{type:Function,required:!0},id:{type:String,required:!0},onContainerResized:Function,onHotReload:Function},setup(e){const t=Ne(null),n=new ResizeObserver(s),i=Ne(null);Bt(()=>{var u,c;const o=i.value;o!=null&&(n.observe(o),t.value=new mi({resizeTo:o,backgroundAlpha:0}),(u=i.value)==null||u.appendChild(t.value.view),(c=e.onInit)==null||c.call(e,t.value)),s(),e.onHotReload&&Ze(e.onHotReload)}),dr(()=>{var o;(o=t.value)==null||o.destroy()});let r=!0;function s(){r&&(r=!1,Ze(()=>{var o;i.value!=null&&((o=e.onContainerResized)==null||o.call(e,i.value.getBoundingClientRect())),r=!0}))}return ve.on("fontsLoaded",s),{unref:a,resizeListener:i}}});function Nc(e,t,n,i,r,s){return h(),S("div",{ref:"resizeListener",class:te(["resize-listener",e.unref(e.classes)]),style:ee(e.unref(e.style))},null,6)}var Cc=z(wc,[["render",Nc],["__scopeId","data-v-48dd302a"]]);const kc=Symbol("Particles");function Sc(e){return ce(()=>{var r,s;const t=(r=e==null?void 0:e())!=null?r:{};t.id=Me("particles-"),t.type=kc,t[ge]=Cc,t.app=Ne(null),t.addEmitter=o=>{const u=t;return u.app.value?Promise.resolve(new Jn(u.app.value.stage,o)):new Promise(c=>{n.push({resolve:c,config:o})})};let n=[];function i(o){const u=t;u.app.value=o,n.forEach(({resolve:c,config:f})=>c(new Jn(o.stage,f))),n=[]}return t.onContainerResized=(s=t.onContainerResized)==null?void 0:s.bind(t),t[ye]=function(){const{id:o,style:u,classes:c,onContainerResized:f,onHotReload:p}=this;return{id:o,style:a(u),classes:c,onContainerResized:f,onHotReload:p,onInit:i}},t})}window.upgradeConfig=wr;const $c=Symbol("Reset");function Wi(e){return ce(()=>{const t=e();return t.id=Me("reset-"),t.type=$c,t.reset=function(){var i;const n=r=>{if(r!=null&&typeof r=="object")if(ot in r){const s=r;s.value=s[ot]}else!(r instanceof l)&&!be(r)&&Object.values(r).forEach(s=>n(s))};a(t.thingsToReset).forEach(n),ve.emit("reset",t),(i=t.onReset)==null||i.call(t)},_(t,"thingsToReset"),t})}const Yt={};ve.on("removeLayer",e=>{var t;(t=Yt[e.id])==null||t.call(Yt),Yt[e.id]=void 0});const Mc=D({__name:"Sticky",setup(e){const t=O("0"),n=new ResizeObserver(r),i=Ne(null);function r(){let s=i.value;if(s==null)return;let o=0;for(;s.previousSibling;){const u=s.previousSibling;u.dataset&&"vSticky"in u.dataset&&(o+=u.offsetHeight),s=u}t.value=o+"px"}return Ze(r),document.fonts.ready.then(r),Bt(()=>{var o;const s=(o=i.value)==null?void 0:o.parentElement;s&&n.observe(s)}),(s,o)=>(h(),S("div",{class:"sticky",style:ee({top:t.value}),ref_key:"element",ref:i,"data-v-sticky":""},[je(s.$slots,"default",{},void 0,!0)],4))}});var on=z(Mc,[["__scopeId","data-v-cccac690"]]);const Yi=D({__name:"Resource",props:{resource:null,color:null},setup(e){const t=e,n=M(()=>He(t.resource));return(i,r)=>(h(),S("h2",{style:ee({color:e.color,"text-shadow":"0px 0px 10px "+e.color})},X(a(n)),5))}});const Ic={class:"main-display"},Ec={key:0},Tc={key:1},Pc=C(", "),Ki=D({__name:"MainDisplay",props:{resource:null,color:null,classes:null,style:null,effectDisplay:null},setup(e){const n=le(e),i=O(null),r=Qe(n.effectDisplay),s=M(()=>l.lt(n.resource.value,"1e1000"));return(o,u)=>(h(),q(on,null,{default:x(()=>{var c,f,p,v;return[g("div",{class:te(["main-display-container",(c=e.classes)!=null?c:{}]),style:ee([{height:`${((p=(f=i.value)==null?void 0:f.$el.clientHeight)!=null?p:0)+50}px`},(v=e.style)!=null?v:{}])},[g("div",Ic,[a(s)?(h(),S("span",Ec,"You have ")):V("",!0),d(Yi,{resource:e.resource,color:e.color||"white"},null,8,["resource","color"]),C(" "+X(e.resource.displayName),1),a(r)?(h(),S("span",Tc,[Pc,(h(),q(re(a(r)),{ref_key:"effectRef",ref:i},null,512))])):V("",!0)])],6)]}),_:1}))}});function wn(e,t){return _(t,"display"),_(t,"classes"),_(t,"style"),_(t,"direction"),H(t,"direction",Q.Up),_(t,"xoffset"),_(t,"yoffset"),t.pinnable&&(t.pinned=me(!1,!1)),Ze(()=>{t.pinnable&&("pinned"in e?(console.error("Cannot add pinnable tooltip to element that already has a property called 'pinned'"),t.pinnable=!1,Us(t.pinned)):e.pinned=t.pinned);const n=e[ge];e[ge]=ae;const i=e[ye].bind(e);e[ye]=function(){const{display:s,classes:o,style:u,direction:c,xoffset:f,yoffset:p,pinned:v}=this;return{element:{[ge]:n,[ye]:i},display:s,classes:o,style:a(u),direction:c,xoffset:f,yoffset:p,pinned:v}}.bind(t)}),t}const Fc={class:"field"},Vc={key:0,class:"field-title"},Oc=["min","max"],qc=D({__name:"Slider",props:{title:null,modelValue:null,min:null,max:null},emits:["update:modelValue"],setup(e,{emit:t}){const i=le(e),r=M({get(){var s;return String((s=a(i.modelValue))!=null?s:0)},set(s){t("update:modelValue",Number(s))}});return(s,o)=>(h(),S("div",Fc,[e.title?(h(),S("span",Vc,X(e.title),1)):V("",!0),d(ae,{display:`${a(r)}`,class:te({fullWidth:!e.title}),direction:a(Q).Down},{default:x(()=>[an(g("input",{type:"range","onUpdate:modelValue":o[0]||(o[0]=u=>be(r)?r.value=u:null),min:e.min,max:e.max},null,8,Oc),[[fi,a(r)]])]),_:1},8,["display","class","direction"])]))}});var Dc=z(qc,[["__scopeId","data-v-267283ff"]]);const Rc=D({__name:"VerticalRule",props:{height:null},setup(e){return(t,n)=>(h(),S("div",{class:"vr",style:ee({height:e.height})},null,4))}});var xc=z(Rc,[["__scopeId","data-v-5e0a978a"]]);const Ac=D({props:{progress:{type:N(String,Object,Number),required:!0},width:{type:N(Number),required:!0},height:{type:N(Number),required:!0},direction:{type:N(String),required:!0},display:N(Object,String,Function),visibility:{type:N(Number,Boolean),required:!0},style:N(Object,String,Array),classes:N(Object),borderStyle:N(Object,String,Array),textStyle:N(Object,String,Array),baseStyle:N(Object,String,Array),fillStyle:N(Object,String,Array),mark:N(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:Ct,Node:tt},setup(e){const{progress:t,width:n,height:i,direction:r,display:s}=le(e),o=M(()=>{let f=t.value instanceof l?t.value.toNumber():Number(t.value);return(1-Math.min(Math.max(f,0),1))*100}),u=M(()=>{const f={width:ue(n)+.5+"px",height:ue(i)+.5+"px"};switch(a(r)){case Q.Up:f.clipPath=`inset(${o.value}% 0% 0% 0%)`,f.width=ue(n)+1+"px";break;case Q.Down:f.clipPath=`inset(0% 0% ${o.value}% 0%)`,f.width=ue(n)+1+"px";break;case Q.Right:f.clipPath=`inset(0% ${o.value}% 0% 0%)`;break;case Q.Left:f.clipPath=`inset(0% 0% 0% ${o.value} + '%)`;break;case Q.Default:f.clipPath="inset(0% 50% 0% 0%)";break}return f}),c=Qe(s);return{normalizedProgress:o,barStyle:u,component:c,unref:a,Visibility:W,isVisible:we,isHidden:Re}}});function Bc(e,t,n,i,r,s){var c,f,p,v,w,k,T;const o=he("MarkNode"),u=he("Node");return e.isVisible(e.visibility)?(h(),S("div",{key:0,style:ee([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px",visibility:e.isHidden(e.visibility)?"hidden":void 0},(c=e.unref(e.style))!=null?c:{}]),class:te({bar:!0,...e.unref(e.classes)})},[g("div",{class:"overlayTextContainer border",style:ee([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px"},(f=e.unref(e.borderStyle))!=null?f:{}])},[e.component?(h(),S("span",{key:0,class:"overlayText",style:ee(e.unref(e.textStyle))},[(h(),q(re(e.component)))],4)):V("",!0)],4),g("div",{class:"border",style:ee([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px"},(p=e.unref(e.style))!=null?p:{},(v=e.unref(e.baseStyle))!=null?v:{},(w=e.unref(e.borderStyle))!=null?w:{}])},[g("div",{class:"fill",style:ee([e.barStyle,(k=e.unref(e.style))!=null?k:{},(T=e.unref(e.fillStyle))!=null?T:{}])},null,4)],4),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(u,{id:e.id},null,8,["id"])],6)):V("",!0)}var Lc=z(Ac,[["render",Bc],["__scopeId","data-v-515dc183"]]);const jc=Symbol("Bar");function vn(e){return ce(()=>{const t=e();return t.id=Me("bar-"),t.type=jc,t[ge]=Lc,_(t,"visibility"),H(t,"visibility",W.Visible),_(t,"width"),_(t,"height"),_(t,"direction"),_(t,"style"),_(t,"classes"),_(t,"borderStyle"),_(t,"baseStyle"),_(t,"textStyle"),_(t,"fillStyle"),_(t,"progress"),_(t,"display"),_(t,"mark"),t[ye]=function(){const{progress:n,width:i,height:r,direction:s,display:o,visibility:u,style:c,classes:f,borderStyle:p,textStyle:v,baseStyle:w,fillStyle:k,mark:T,id:E}=this;return{progress:n,width:i,height:r,direction:s,display:o,visibility:u,style:a(c),classes:f,borderStyle:p,textStyle:v,baseStyle:w,fillStyle:k,mark:T,id:E}},t})}var Uc=D({props:{active:{type:N(Boolean),required:!0},maxed:{type:N(Boolean),required:!0},canComplete:{type:N(Boolean),required:!0},display:N(String,Object,Function),visibility:{type:N(Number,Boolean),required:!0},style:N(String,Object,Array),classes:N(Object),completed:{type:N(Boolean),required:!0},canStart:{type:N(Boolean),required:!0},mark:N(Boolean,String),id:{type:String,required:!0},toggle:{type:Function,required:!0}},components:{MarkNode:Ct,Node:tt},setup(e){const{active:t,maxed:n,canComplete:i,display:r}=le(e),s=M(()=>t.value?i.value?"Finish":"Exit Early":n.value?"Completed":"Start"),o=Ne(""),u=M(()=>{const c=ue(t),f=ue(i);return c?f?ul():qn():{}});return Pe(()=>{const c=ue(r);if(c==null){o.value="";return}if(Ve(c)){o.value=j(c);return}const f=j(c.title||"","h3"),p=j(c.description,"div"),v=j(c.goal||""),w=j(c.reward||""),k=j(c.effectDisplay||"");o.value=j(L(()=>d("span",null,[c.title!=null?d("div",null,[d(f,null,null)]):null,d(p,null,null),c.goal!=null?d("div",null,[d("br",null,null),C("Goal: "),d(v,null,null)]):null,c.reward!=null?d("div",null,[d("br",null,null),C("Reward: "),d(w,null,null)]):null,c.effectDisplay!=null?d("div",null,[C("Currently: "),d(k,null,null)]):null])))}),{buttonText:s,notifyStyle:u,comp:o,Visibility:W,isVisible:we,isHidden:Re,unref:a}}});const zc=["disabled"];function Hc(e,t,n,i,r,s){var c;const o=he("MarkNode"),u=he("Node");return e.isVisible(e.visibility)?(h(),S("div",{key:0,style:ee([{visibility:e.isHidden(e.visibility)?"hidden":void 0},e.notifyStyle,(c=e.unref(e.style))!=null?c:{}]),class:te({feature:!0,challenge:!0,done:e.unref(e.completed),canStart:e.unref(e.canStart)&&!e.unref(e.maxed),maxed:e.unref(e.maxed),...e.unref(e.classes)})},[g("button",{class:"toggleChallenge",onClick:t[0]||(t[0]=(...f)=>e.toggle&&e.toggle(...f)),disabled:!e.unref(e.canStart)||e.unref(e.maxed)},X(e.buttonText),9,zc),e.unref(e.comp)?(h(),q(re(e.unref(e.comp)),{key:0})):V("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(u,{id:e.id},null,8,["id"])],6)):V("",!0)}var Gc=z(Uc,[["render",Hc],["__scopeId","data-v-44673563"]]);function yt(e){return ce(()=>{const t=e();return t.partialDisplay=n=>d("span",{style:a(t.requirementMet)?"":"color: var(--danger)"},[He(t.resource,t.cost instanceof $?Qt(t.cost,n!=null?n:1,a(t.spendResources)):a(t.cost))," ",t.resource.displayName]),t.display=n=>d("div",null,[a(t.requiresPay)?"Costs: ":"Requires: ",He(t.resource,t.cost instanceof $?Qt(t.cost,n!=null?n:1,a(t.spendResources)):a(t.cost))," ",t.resource.displayName]),_(t,"visibility"),H(t,"visibility",W.Visible),_(t,"cost"),_(t,"requiresPay"),H(t,"requiresPay",!0),_(t,"spendResources"),H(t,"spendResources",!0),H(t,"pay",function(n){const i=t.cost instanceof $?Qt(t.cost,n!=null?n:1,a(t.spendResources)):a(t.cost);t.resource.value=l.sub(t.resource.value,i).max(0)}),t.canMaximize=t.cost instanceof $&&t.cost.isInvertible(),t.canMaximize?t.requirementMet=dc(t.cost,t.resource,a(t.spendResources)):t.requirementMet=M(()=>t.cost instanceof $?l.gte(t.resource.value,t.cost.evaluate()):l.gte(t.resource.value,a(t.cost))),t})}function Zi(e){return ce(()=>({requirementMet:M(()=>we(e.visibility)),visibility:W.None,requiresPay:!1}))}function Dn(e){if(Je(e))return e.every(Dn);const t=a(e.requirementMet);return typeof t=="boolean"?t:l.gt(t,0)}function Rn(e){if(Je(e))return e.map(Rn).reduce(l.min);const t=a(e.requirementMet);return typeof t=="boolean"?t?l.dInf:0:l.gt(t,1)&&a(e.canMaximize)!==!0?1:t}function Ji(e,t=1){var n,i;if(Je(e)&&(e=e.filter(r=>we(r.visibility)),e.length===1&&(e=e[0])),Je(e)){e=e.filter(o=>"partialDisplay"in o);const r=e.filter(o=>a(o.requiresPay)),s=e.filter(o=>!a(o.requiresPay));return d(U,null,[r.length>0?d("div",null,[C("Costs:")," ",ii(r.map(o=>o.partialDisplay(t)),d(U,null,[C(", ")]))]):null,s.length>0?d("div",null,[C("Requires:")," ",ii(s.map(o=>o.partialDisplay(t)),d(U,null,[C(", ")]))]):null])}return(i=(n=e.display)==null?void 0:n.call(e))!=null?i:d(U,null,null)}function Xi(e,t=1){var n;Je(e)?e.filter(i=>a(i.requiresPay)).forEach(i=>{var r;return(r=i.pay)==null?void 0:r.call(i,t)}):a(e.requiresPay)&&((n=e.pay)==null||n.call(e,t))}const Wc=Symbol("ChallengeType");function Yc(e){const t=me(0),n=me(!1,!1);return ce(()=>{const i=e();i.id=Me("challenge-"),i.type=Wc,i[ge]=Gc,i.completions=t,i.active=n,i.completed=M(()=>l.gt(i.completions.value,0)),i.maxed=M(()=>l.gte(i.completions.value,a(i.completionLimit))),i.toggle=function(){var o,u,c,f,p;const s=i;if(s.active.value){if(l.gt(a(s.canComplete),0)&&!s.maxed.value){const v=a(s.canComplete);s.completions.value=l.min(l.add(s.completions.value,v),a(s.completionLimit)),(o=s.onComplete)==null||o.call(s)}s.active.value=!1,(u=s.onExit)==null||u.call(s),(c=s.reset)==null||c.reset()}else a(s.canStart)&&we(s.visibility)&&!s.maxed.value&&((f=s.reset)==null||f.reset(),s.active.value=!0,(p=s.onEnter)==null||p.call(s))},i.canComplete=M(()=>l.max(Rn(i.requirements),a(i.maximize)?l.dInf:1)),i.complete=function(s){var c,f,p;const o=i,u=a(o.canComplete);o.active.value&&l.gt(u,0)&&!o.maxed.value&&(o.completions.value=l.min(l.add(o.completions.value,u),a(o.completionLimit)),(c=o.onComplete)==null||c.call(o),s!==!0&&(o.active.value=!1,(f=o.onExit)==null||f.call(o),(p=o.reset)==null||p.reset()))},_(i,"visibility"),H(i,"visibility",W.Visible);const r=i.visibility;return i.visibility=M(()=>J.hideChallenges===!0&&a(i.maxed)?W.None:a(r)),i.mark==null&&(i.mark=M(()=>l.gt(a(i.completionLimit),1)&&!!a(i.maxed))),_(i,"canStart"),H(i,"canStart",!0),_(i,"maximize"),_(i,"completionLimit"),H(i,"completionLimit",1),_(i,"mark"),_(i,"classes"),_(i,"style"),_(i,"display"),i.reset!=null&&ve.on("reset",s=>{s===i.reset&&i.active.value&&i.toggle()}),i[ye]=function(){const{active:s,maxed:o,canComplete:u,display:c,visibility:f,style:p,classes:v,completed:w,canStart:k,mark:T,id:E,toggle:Y}=this;return{active:s,maxed:o,canComplete:u,display:c,visibility:f,style:a(p),classes:v,completed:w,canStart:k,mark:T,id:E,toggle:Y}},i})}ve.on("loadSettings",e=>{H(e,"hideChallenges",!1)});$i(L(()=>d(Te,{title:L(()=>d("span",{class:"option-title"},[C("Hide maxed challenges"),d("desc",null,[C("Hide challenges that have been fully completed.")])])),"onUpdate:modelValue":e=>J.hideChallenges=e,modelValue:J.hideChallenges},null)));const Qi=e=>(Ge("data-v-5e2d38ce"),e=e(),We(),e),Kc=Qi(()=>g("div",{class:"key"},"Ctrl",-1)),Zc=C("+"),Jc=Qi(()=>g("div",{class:"key"},"Shift",-1)),Xc=C("+"),Qc={class:"key"},ed=D({__name:"Hotkey",props:{hotkey:null},setup(e){const t=e;let n="",i=!1,r=!1,s=!1;return Pe(()=>{n=t.hotkey.key,i=n.startsWith("ctrl+"),i&&(n=n.slice(5)),r=n.startsWith("shift+"),r&&(n=n.slice(6)),s=n.length==1&&n.toLowerCase()!=n.toUpperCase(),s&&(n=n.toUpperCase())}),(o,u)=>(h(),S(U,null,[a(i)?(h(),S(U,{key:0},[Kc,Zc],64)):V("",!0),a(r)?(h(),S(U,{key:1},[Jc,Xc],64)):V("",!0),g("div",Qc,X(a(n)),1)],64))}});var td=z(ed,[["__scopeId","data-v-5e2d38ce"]]);const dn=un({}),xn=Symbol("Hotkey"),si=[")","!","@","#","$","%","^","&","*","("];function oi(e){return ce(()=>{const t=e();return t.type=xn,_(t,"enabled"),H(t,"enabled",!0),_(t,"description"),t})}ve.on("addLayer",e=>{Ni(e,xn).forEach(t=>{dn[t.key]=t})});ve.on("removeLayer",e=>{Ni(e,xn).forEach(t=>{dn[t.key]=void 0})});document.onkeydown=function(e){var i;if(((i=e.target)==null?void 0:i.tagName)==="INPUT"||An.value&&!R.keepGoing)return;let t=e.key;si.includes(t)?t="shift+"+si.indexOf(t):e.shiftKey&&(t="shift+"+t),e.ctrlKey&&(t="ctrl+"+t);const n=dn[t];n&&a(n.enabled)&&(e.preventDefault(),n.onPress())};$s(L(()=>{const e=Object.values(dn).filter(t=>a(t==null?void 0:t.enabled));return e.length===0?"":d("div",null,[d("br",null,null),d("h4",null,[C("Hotkeys")]),d("div",{style:"column-count: 2"},[e.map(t=>d("div",null,[d(td,{hotkey:t},null),C(" "),t==null?void 0:t.description]))])])}));const nd=Symbol("Links");function id(e){return ce(()=>{const t=e();return t.type=nd,t[ge]=xi,_(t,"links"),t[ye]=function(){const{links:n}=this;return{links:n}},t})}var rd=D({props:{visibility:{type:N(Number,Boolean),required:!0},display:{type:N(String,Object,Function),required:!0},style:N(String,Object,Array),classes:N(Object),earned:{type:N(Boolean),required:!0},id:{type:String,required:!0}},components:{Node:tt},setup(e){const{display:t}=le(e),n=Ne("");return Pe(()=>{const i=ue(t);if(i==null){n.value="";return}if(Ve(i)){n.value=j(i);return}const r=j(i.requirement,"h3"),s=j(i.effectDisplay||"","b"),o=j(i.optionsDisplay||"","span");n.value=j(L(()=>d("span",null,[d(r,null,null),i.effectDisplay!=null?d("div",null,[d(s,null,null)]):null,i.optionsDisplay!=null?d("div",{class:"equal-spaced"},[d(o,null,null)]):null])))}),{comp:n,unref:a,Visibility:W,isVisible:we,isHidden:Re}}});function sd(e,t,n,i,r,s){var u;const o=he("Node");return e.isVisible(e.visibility)?(h(),S("div",{key:0,style:ee([{visibility:e.isHidden(e.visibility)?"hidden":void 0},(u=e.unref(e.style))!=null?u:{}]),class:te({feature:!0,milestone:!0,done:e.unref(e.earned),...e.unref(e.classes)})},[(h(),q(re(e.unref(e.comp)))),d(o,{id:e.id},null,8,["id"])],6)):V("",!0)}var od=z(rd,[["render",sd],["__scopeId","data-v-43065fa5"]]);const ai=kn(),ad=Symbol("Milestone");let rt;(function(e){e.All="all",e.Configurable="configurable",e.Incomplete="incomplete",e.None="none"})(rt||(rt={}));function li(e){const t=me(!1,!1);return ce(()=>{var r;const n=(r=e==null?void 0:e())!=null?r:{};n.id=Me("milestone-"),n.type=ad,n[ge]=od,n.earned=t,n.complete=function(){var o;const s=n;if(t.value=!0,(o=s.onComplete)==null||o.call(s),s.display!=null&&a(s.showPopups)===!0){const u=a(s.display),c=j(Ve(u)?u:u.requirement);ai(d(U,null,[d("h3",null,[C("Milestone earned!")]),d("div",null,[d(c,null,null)])]))}},_(n,"visibility"),H(n,"visibility",W.Visible);const i=n.visibility;if(n.visibility=M(()=>{const s=a(n.display);switch(J.msDisplay){default:case rt.All:return a(i);case rt.Configurable:return a(n.earned)&&!(s!=null&&typeof s=="object"&&"optionsDisplay"in s)?W.None:a(i);case rt.Incomplete:return a(n.earned)?W.None:a(i);case rt.None:return W.None}}),_(n,"style"),_(n,"classes"),_(n,"display"),_(n,"showPopups"),n[ye]=function(){const{visibility:s,display:o,style:u,classes:c,earned:f,id:p}=this;return{visibility:s,display:o,style:a(u),classes:c,earned:f,id:p}},n.shouldEarn){const s=n;Pe(()=>{var o,u;if(J.active===R.id&&!s.earned.value&&we(s.visibility)&&((o=s.shouldEarn)==null?void 0:o.call(s))&&(s.earned.value=!0,(u=s.onComplete)==null||u.call(s),s.display!=null&&a(s.showPopups)===!0)){const c=a(s.display),f=j(Ve(c)?c:c.requirement);ai(d(U,null,[d("h3",null,[C("Milestone earned!")]),d("div",null,[d(f,null,null)])]))}})}return n})}ve.on("loadSettings",e=>{H(e,"msDisplay",rt.All)});const ld=Object.values(rt).map(e=>({label:wi(e),value:e}));$i(L(()=>d(Fn,{title:L(()=>d("span",{class:"option-title"},[C("Show milestones"),d("desc",null,[C("Select which milestones to display based on criterias.")])])),options:ld,"onUpdate:modelValue":e=>J.msDisplay=e,modelValue:J.msDisplay},null)));const ud=Symbol("Repeatable");function cd(e){const t=me(0);return ce(()=>{var c;const n=e();n.id=Me("repeatable-"),n.type=ud,n[ge]=Li,n.amount=t,n.amount[ot]=(c=n.initialAmount)!=null?c:0;const i={requirementMet:M(()=>l.sub(a(n.limit),n.amount.value)),requiresPay:!1,visibility:W.None},r=Zi(n);Je(n.requirements)?(n.requirements.unshift(r),n.requirements.push(i)):n.requirements=[r,n.requirements,i],n.maxed=M(()=>l.gte(n.amount.value,a(n.limit))),_(n,"classes");const s=n.classes;n.classes=M(()=>{const f=a(s)||{};return n.maxed.value&&(f.bought=!0),f}),n.amountToIncrease=M(()=>a(n.maximize)?Rn(n.requirements):1),n.canClick=M(()=>Dn(n.requirements));const o=n.onClick;n.onClick=function(f){const p=n;!a(p.canClick)||(Xi(n.requirements,a(n.amountToIncrease)),p.amount.value=l.add(p.amount.value,1),o==null||o(f))},_(n,"display");const u=n.display;return n.display=L(()=>{var p,v,w;const f=a(u);if(Ve(f)){const k=j(f);return d(k,null,null)}if(f!=null){const k=n,T=j((p=f.title)!=null?p:"","h3"),E=j((v=f.description)!=null?v:""),Y=j((w=f.effectDisplay)!=null?w:"");return d("span",null,[f.title==null?null:d("div",null,[d(T,null,null)]),f.description==null?null:d(E,null,null),f.showAmount===!1?null:d("div",null,[d("br",null,null),a(k.limit)===l.dInf?d(U,null,[C("Amount: "),Se(k.amount.value)]):d(U,null,[C("Amount: "),Se(k.amount.value),C(" /")," ",Se(a(k.limit))])]),f.effectDisplay==null?null:d("div",null,[d("br",null,null),C("Currently: "),d(Y,null,null)]),k.maxed.value?null:d("div",null,[d("br",null,null),Ji(k.requirements,a(n.amountToIncrease))])])}return""}),_(n,"visibility"),H(n,"visibility",W.Visible),_(n,"limit"),H(n,"limit",l.dInf),_(n,"style"),_(n,"mark"),_(n,"small"),_(n,"maximize"),n[ye]=function(){const{display:f,visibility:p,style:v,classes:w,onClick:k,canClick:T,small:E,mark:Y,id:se}=this;return{display:f,visibility:p,style:a(v),classes:w,onClick:k,canClick:T,small:E,mark:Y,id:se}},n})}const dd=D({__name:"Tab",props:{display:null},setup(e){const t=e,{display:n}=le(t),i=Nt(n);return(r,s)=>(h(),q(re(a(i))))}}),fd=Symbol("Tab");function Kt(e){return ce(()=>{const t=e();return t.id=Me("tab-"),t.type=fd,t[ge]=dd,t[ye]=function(){const{display:n}=this;return{display:n}},t})}const pd=D({props:{visibility:{type:N(Number,Boolean),required:!0},display:{type:N(Object,String,Function),required:!0},style:N(String,Object,Array),classes:N(Object),glowColor:N(String),active:Boolean,floating:Boolean},emits:["selectTab"],setup(e,{emit:t}){const{display:n,glowColor:i,floating:r}=le(e),s=Nt(n),o=M(()=>{const c=ue(i);return c==null||c===""?{}:a(r)?qn(c):{boxShadow:`0px 9px 5px -6px ${c}`}});function u(){t("selectTab")}return{selectTab:u,component:s,glowColorStyle:o,unref:a,Visibility:W,isVisible:we,isHidden:Re}}});function md(e,t,n,i,r,s){var o;return e.isVisible(e.visibility)?(h(),S("button",{key:0,onClick:t[0]||(t[0]=(...u)=>e.selectTab&&e.selectTab(...u)),class:te(["tabButton",{active:e.active,...e.unref(e.classes)}]),style:ee([{visibility:e.isHidden(e.visibility)?"hidden":void 0},e.glowColorStyle,(o=e.unref(e.style))!=null?o:{}])},[(h(),q(re(e.component)))],6)):V("",!0)}var er=z(pd,[["render",md],["__scopeId","data-v-21427abb"]]);const gd=D({props:{visibility:{type:N(Number,Boolean),required:!0},activeTab:{type:N(Object),required:!0},selected:{type:Object,required:!0},tabs:{type:N(Object),required:!0},style:N(String,Object,Array),classes:N(Object),buttonContainerStyle:N(String,Object,Array),buttonContainerClasses:N(Object)},components:{Sticky:on,TabButton:er},setup(e){const{activeTab:t}=le(e),n=M(()=>Xe[J.theme].floatingTabs),i=Ne("");Pe(()=>{const u=ue(t);if(u==null){i.value="";return}if(Ve(u)){i.value=j(u);return}i.value=j(a(u.display))});const r=M(()=>{const u=ue(t);return Ve(u)||!u?void 0:a(u.classes)}),s=M(()=>{const u=ue(t);return Ve(u)||!u?void 0:a(u.style)});function o(u){const{display:c,style:f,classes:p,glowColor:v,visibility:w}=u;return{display:c,style:a(f),classes:p,glowColor:v,visibility:w}}return{floating:n,tabClasses:r,tabStyle:s,Visibility:W,component:i,gatherButtonProps:o,unref:a,isVisible:we,isHidden:Re}}});function hd(e,t,n,i,r,s){var c,f;const o=he("TabButton"),u=he("Sticky");return e.isVisible(e.visibility)?(h(),S("div",{key:0,class:te(["tab-family-container",{...e.unref(e.classes),...e.tabClasses}]),style:ee([{visibility:e.isHidden(e.visibility)?"hidden":void 0},(c=e.unref(e.style))!=null?c:[],(f=e.tabStyle)!=null?f:[]])},[d(u,{class:te(["tab-buttons-container",e.unref(e.buttonContainerClasses)]),style:ee(e.unref(e.buttonContainerStyle))},{default:x(()=>[g("div",{class:te(["tab-buttons",{floating:e.floating}])},[(h(!0),S(U,null,Ft(e.unref(e.tabs),(p,v)=>(h(),q(o,ze({onSelectTab:w=>e.selected.value=v,floating:e.floating,key:v,active:e.unref(p.tab)===e.unref(e.activeTab)},e.gatherButtonProps(p)),null,16,["onSelectTab","floating","active"]))),128))],2)]),_:1},8,["class","style"]),e.unref(e.activeTab)?(h(),q(re(e.unref(e.component)),{key:0})):V("",!0)],6)):V("",!0)}var vd=z(gd,[["render",hd],["__scopeId","data-v-58dbf83a"]]);const bd=Symbol("TabButton"),yd=Symbol("TabFamily");function ui(e,t){if(Object.keys(e).length===0)throw console.warn("Cannot create tab family with 0 tabs"),new Error("Cannot create tab family with 0 tabs");const n=me(Object.keys(e)[0],!1);return ce(()=>{var s;const i=(s=t==null?void 0:t())!=null?s:{};i.id=Me("tabFamily-"),i.type=yd,i[ge]=vd,i.tabs=Object.keys(e).reduce((o,u)=>{const c=e[u]();return c.type=bd,c[ge]=er,_(c,"visibility"),H(c,"visibility",W.Visible),_(c,"tab"),_(c,"display"),_(c,"classes"),_(c,"style"),_(c,"glowColor"),o[u]=c,o},{}),i.selected=n,i.activeTab=M(()=>{const o=a(r.tabs);if(n.value in o&&we(o[n.value].visibility))return a(o[n.value].tab);const u=Object.values(o).find(c=>we(c.visibility));return u?a(u.tab):null}),_(i,"visibility"),H(i,"visibility",W.Visible),_(i,"classes"),_(i,"style"),_(i,"buttonContainerClasses"),_(i,"buttonContainerStyle"),i[ye]=function(){const{visibility:o,activeTab:u,selected:c,tabs:f,style:p,classes:v,buttonContainerClasses:w,buttonContainerStyle:k}=this;return{visibility:o,activeTab:u,selected:c,tabs:f,style:a(p),classes:v,buttonContainerClasses:w,buttonContainerStyle:k}};const r=i;return r})}var _d=D({props:{display:{type:N(String,Object,Function),required:!0},visibility:{type:N(Number,Boolean),required:!0},style:N(String,Object,Array),classes:N(Object),requirements:{type:Object,required:!0},canPurchase:{type:N(Boolean),required:!0},bought:{type:N(Boolean),required:!0},mark:N(Boolean,String),id:{type:String,required:!0},purchase:{type:Function,required:!0}},components:{Node:tt,MarkNode:Ct},setup(e){const{display:t,requirements:n,bought:i}=le(e),r=Ne("");return Pe(()=>{const s=ue(t);if(s==null){r.value="";return}if(Ve(s)){r.value=j(s);return}const o=j(s.title||"","h3"),u=j(s.description,"div"),c=j(s.effectDisplay||"");r.value=j(L(()=>d("span",null,[s.title!=null?d("div",null,[d(o,null,null)]):null,d(u,null,null),s.effectDisplay!=null?d("div",null,[C("Currently: "),d(c,null,null)]):null,i.value?null:d(U,null,[d("br",null,null),Ji(n.value)])])))}),{component:r,unref:a,Visibility:W,isVisible:we,isHidden:Re}}});const wd=["disabled"];function Nd(e,t,n,i,r,s){var c;const o=he("MarkNode"),u=he("Node");return e.isVisible(e.visibility)?(h(),S("button",{key:0,style:ee([{visibility:e.isHidden(e.visibility)?"hidden":void 0},(c=e.unref(e.style))!=null?c:{}]),onClick:t[0]||(t[0]=(...f)=>e.purchase&&e.purchase(...f)),class:te({feature:!0,upgrade:!0,can:e.unref(e.canPurchase),locked:!e.unref(e.canPurchase),bought:e.unref(e.bought),...e.unref(e.classes)}),disabled:!e.unref(e.canPurchase)},[e.unref(e.component)?(h(),q(re(e.unref(e.component)),{key:0})):V("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(u,{id:e.id},null,8,["id"])],14,wd)):V("",!0)}var Cd=z(_d,[["render",Nd],["__scopeId","data-v-9be6bac0"]]);const kd=Symbol("Upgrade");function Zt(e){const t=me(!1,!1);return ce(()=>{const n=e();n.id=Me("upgrade-"),n.type=kd,n[ge]=Cd,n.bought=t,n.canPurchase=M(()=>Dn(n.requirements)),n.purchase=function(){var s;const r=n;!a(r.canPurchase)||(Xi(n.requirements),t.value=!0,(s=r.onPurchase)==null||s.call(r))};const i=Zi(n);return Je(n.requirements)?n.requirements.unshift(i):n.requirements=[i,n.requirements],_(n,"visibility"),H(n,"visibility",W.Visible),_(n,"classes"),_(n,"style"),_(n,"display"),_(n,"mark"),n[ye]=function(){const{display:r,visibility:s,style:o,classes:u,requirements:c,canPurchase:f,bought:p,mark:v,id:w,purchase:k}=this;return{display:r,visibility:s,style:a(o),classes:u,requirements:c,canPurchase:f,bought:p,mark:v,id:w,purchase:k}},n})}function Sd(e){return ce(()=>{const{addend:t,description:n,enabled:i,smallerIsBetter:r}=e(),s=Ue(t),o=Ue(n),u=i==null?void 0:Ue(i);return{apply:c=>l.add(c,a(s)),revert:c=>l.sub(c,a(s)),enabled:u,description:n==null?void 0:L(()=>d("div",{class:"modifier-container"},[a(o)!=null?d("span",{class:"modifier-description"},[Ke(a(o))]):null,d("span",{class:"modifier-amount",style:(r===!0?l.gt(a(s),0):l.lt(a(s),0))?"color: var(--danger)":""},[l.gte(a(s),0)?"+":"",Vt(a(s))])]))}})}function $d(e){return ce(()=>{const{exponent:t,description:n,enabled:i,supportLowNumbers:r,smallerIsBetter:s}=e(),o=Ue(t),u=Ue(n),c=i==null?void 0:Ue(i);return{apply:f=>{let p=f;return r&&(p=l.add(p,1)),p=l.pow(p,a(o)),r&&(p=l.sub(p,1)),p},revert:f=>{let p=f;return r&&(p=l.add(p,1)),p=l.root(p,a(o)),r&&(p=l.sub(p,1)),p},enabled:c,description:n==null?void 0:L(()=>d("div",{class:"modifier-container"},[a(u)!=null?d("span",{class:"modifier-description"},[Ke(a(u)),r?" (+1 effective)":null]):null,d("span",{class:"modifier-amount",style:(s===!0?l.gt(a(o),1):l.lt(a(o),1))?"color: var(--danger)":""},[C("^"),Vt(a(o))])]))}})}function Md(e){return ce(()=>{const t=e();return{apply:n=>t.filter(i=>a(i.enabled)!==!1).reduce((i,r)=>r.apply(i),n),revert:t.every(n=>n.revert!=null)?n=>t.filter(i=>a(i.enabled)!==!1).reduceRight((i,r)=>r.revert(i),n):void 0,enabled:M(()=>t.filter(n=>a(n.enabled)!==!1).length>0),description:L(()=>d(U,null,[t.filter(n=>a(n.enabled)!==!1).map(n=>a(n.description)).filter(n=>n).map(Ke)]))}})}function Id({title:e,subtitle:t,modifier:n,base:i,unit:r,baseText:s,smallerIsBetter:o}){const u=n.apply(i!=null?i:1);return d("div",{style:{"--unit":J.alignUnits&&r!=null?"'"+r+"'":""}},[d("h3",null,[e,t==null?null:d("span",{class:"subtitle"},[C(" ("),t,C(")")])]),d("br",null,null),d("div",{class:"modifier-container"},[d("span",{class:"modifier-description"},[Ke(s!=null?s:"Base")]),d("span",{class:"modifier-amount"},[Vt(i!=null?i:1),r])]),Ke(a(n.description)),d("hr",null,null),d("div",{class:"modifier-container"},[d("span",{class:"modifier-description"},[C("Total")]),d("span",{class:"modifier-amount",style:(o===!0?l.gt(u,i!=null?i:1):l.lt(u,i!=null?i:1))?"color: var(--danger)":""},[Vt(u),r])])])}function Ed(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Cn(e)}const bn="c",Ae=Lt(bn,()=>{const e="#4BDC13",t="Candies",n=Rt(0,"lollipops"),i=Ri(n),r=me(!1),s=me("pointy"),o=me(10),u=me(new l(10)),c=M(()=>l.pow(n.value,.2)),f=M(()=>l.times(n.value,10)),p=Gi(()=>({title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"},color:"rgb(75, 220, 19)"})),v=li(()=>({shouldEarn(){return l.gte(i.value,3)},display:{requirement:"3 Lollipops",effectDisplay:"Unlock the next milestone"}})),w=li(()=>({visibility:v.earned,shouldEarn(){return l.gte(i.value,4)},display:{requirement:"4 Lollipops",effectDisplay:"You can toggle beep and boop (which do nothing)",optionsDisplay:L(()=>d(U,null,[d(Te,{title:"beep","onUpdate:modelValue":Z=>r.value=Z,modelValue:r.value},null),d(Te,{title:"boop","onUpdate:modelValue":Z=>Le.boop.value=Z,modelValue:Le.boop.value},null)]))},style(){return a(this.earned)?{backgroundColor:"#1111DD"}:{}}})),k=[v,w],T=Yc(()=>({title:"Fun",requirements:yt(()=>({resource:ne.points,cost:20,spendResources:!1})),completionLimit:3,display(){return{description:`Makes the game 0% harder
${Se(this.completions.value)}/${this.completionLimit} completions`,goal:"Have 20 points I guess",reward:"Says hi",effectDisplay:Ce(E.value)+"x"}},visibility:()=>l.gt(i.value,0),onComplete(){console.log("hiii")},onEnter(){ne.points.value=0,ne.best.value=ne.points.value,ne.total.value=ne.points.value,console.log("So challenging")},onExit(){console.log("Sweet freedom!")},style:{height:"200px"}})),E=M(()=>l.add(n.value,1).tetrate(.02)),Y=Zt(()=>({display:{title:"Generator of Genericness",description:"Gain 1 point every second"},requirements:yt(()=>({cost:1,resource:Mt(n)}))})),se=Zt(()=>({display:()=>({description:"Point generation is faster based on your unspent Lollipops",effectDisplay:`${Ce(P.value)}x`}),requirements:yt(()=>({cost:1,resource:Mt(n)})),visibility:Y.bought})),P=M(()=>{let Z=l.add(n.value,1).pow(.5);return Z.gte("1e20000000")&&(Z=Z.sqrt().times("1e10000000")),Z}),F=Zt(()=>({visibility:se.bought,requirements:yt(()=>({cost:7,resource:ne.points,requiresPay:!1})),onPurchase(){ne.points.value=l.add(ne.points.value,7)},display:"Only buyable with less than 7 points, and gives you 7 more. Unlocks a secret subtab.",style(){return a(this.bought)?{backgroundColor:"#1111dd"}:a(this.canPurchase)?{}:{backgroundColor:"#dd1111"}}})),K=Zt(()=>({requirements:yt(()=>({resource:Rt(A.amount,"Exhancers",0),cost:3})),display:{title:"This upgrade doesn't exist",description:"Or does it?"}})),ke=[Y,se,F],pe=yt(()=>({resource:Mt(n),cost(){let Z=new l(A.amount.value);return Z.gte(25)&&(Z=Z.pow(2).div(25)),l.pow(2,Z.pow(1.5)).floor()},pay(Z){const Ye=a(this.cost);u.value=l.add(u.value,Ye!=null?Ye:0),this.resource.value=l.sub(this.resource.value,Ye).max(0)}})),A=cd(()=>({requirements:pe,display(){return{title:"Exhancers",description:`Adds ${Ce(oe.value)} things and multiplies stuff by ${Ce(pn.value)}.`}},style:{height:"222px"},purchaseLimit:4})),oe=M(()=>l.gte(A.amount.value,0)?l.pow(25,l.pow(A.amount.value,1.1)):l.pow(1/25,l.times(A.amount.value,-1).pow(1.1))),pn=M(()=>l.gte(A.amount.value,0)?l.pow(25,l.pow(A.amount.value,1.1)):l.pow(1/25,l.times(A.amount.value,-1).pow(1.1))),vt=me(!1),bt=O(!1),Ut=xt(()=>({small:!0,display:"Respec Thingies",onClick(){if(vt.value&&!bt.value){bt.value=!0;return}n.value=l.add(n.value,u.value),A.amount.value=0,ne.tree.reset(lt)}})),Bn=xt(()=>({small:!0,display:"Sell One",onClick(){if(l.lte(A.amount.value,0))return;A.amount.value=l.sub(A.amount.value,1);const Z=pe.cost.value;n.value=l.add(n.value,Z),u.value=l.sub(u.value,Z)}})),tr=L(()=>d(Xt,null,{default:()=>[d(Et,null,{default:()=>[d(Te,{title:"Confirm","onUpdate:modelValue":Z=>vt.value=Z,modelValue:vt.value},null),xe(Ut)]}),xe(A),xe(Bn),d(at,{modelValue:bt.value,"onUpdate:modelValue":Z=>bt.value=Z},{header:()=>d("h2",null,[C("Confirm Respec")]),body:()=>d(U,null,[C("Are you sure? Respeccing these doesn't accomplish much")]),footer:()=>d("div",{class:"modal-default-footer"},[d("div",{class:"modal-default-flex-grow"},null),d("button",{class:"button modal-default-button",onClick:()=>bt.value=!1},[C("Cancel")]),d("button",{class:"button modal-default-button danger",onClick:()=>{Ut.onClick(),bt.value=!1}},[C("Respec")])])})]})),Ln=vn(()=>({fillStyle:{backgroundColor:"#FFFFFF"},baseStyle:{backgroundColor:"#696969"},textStyle:{color:"#04e050"},direction:Q.Right,width:300,height:30,progress(){return l.add(ne.points.value,1).log(10).div(10).toNumber()},display(){return Ce(ne.points.value)+" / 1e10 points"}})),jn=vn(()=>({fillStyle:{backgroundColor:"#4BEC13"},baseStyle:{backgroundColor:"#000000"},textStyle:{textShadow:"0px 0px 2px #000000"},borderStyle:{borderWidth:"7px"},direction:Q.Up,width:50,height:200,progress(){return l.div(ne.points.value,100)},display(){return Se(l.div(ne.points.value,1).min(100))+"%"}})),zt=vn(()=>({fillStyle:{backgroundColor:"#FE0102"},baseStyle:{backgroundColor:"#222222"},textStyle:{textShadow:"0px 0px 2px #000000"},direction:Q.Up,width:100,height:30,progress(){return l.div(n.value,50)}})),Un=Md(()=>[$d(()=>({exponent:2,description:"Because I felt like it"})),Sd(()=>({addend:1,description:"Nice modifier"}))]),zn=pc(()=>({formula:Z=>fc(Un,Z.div(10).sqrt().step(1e100,Ye=>Ye.sqrt())),baseResource:ne.points,gainResource:Mt(n),roundUpCost:!0})),Hn=Wi(()=>({thingsToReset:()=>[Ae]})),nr=[oi(()=>({key:"c",description:"reset for lollipops or whatever",onPress(){St.canClick.value&&St.onClick()}})),oi(()=>({key:"ctrl+c",description:"respec things",onPress(){Ut.onClick()}}))],lt=zi(()=>({layerID:bn,color:e,reset:Hn,mark:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",tooltip(){let Z=He(n);return l.gt(A.amount.value,0)&&(Z+=`



${Se(A.amount.value)} Exhancers
`),Z},style:{color:"#3325CC",textDecoration:"underline"}})),ir=wn(lt,{display:Bi(n),pinnable:!0}),St=Ui(()=>({conversion:zn,tree:ne.tree,treeNode:lt,style:{color:"#AA66AA"},resetDescription:"Melt your points into "})),rr=wn(St,{display:L(()=>Id({title:"Modifiers",modifier:Un})),pinnable:!0,direction:Q.Down,style:"width: 400px; text-align: left"}),Ht=Tt(()=>({display:"TH",color:"#6d3678",canClick(){return l.gte(ne.points.value,10)},tooltip:"Thanos your points",onClick(){ne.points.value=l.div(ne.points.value,2),console.log("Thanos'd")},glowColor(){return l.eq(A.amount.value,1)?"orange":""}})),Gt=Tt(()=>({display:"h",color(){return Xe[J.theme].variables["--locked"]},tooltip:{display:M(()=>`Restore your points to ${Ce(o.value)}`),right:!0},canClick(){return l.lt(ne.points.value,o.value)},onClick(){ne.points.value=o.value}})),Gn=Tt(()=>({visibility:W.Hidden})),Wn=Ai(()=>({nodes(){return[[Le.treeNode,lt],[Ht,Gn,Gt]]},branches(){return[{startNode:Le.treeNode,endNode:lt,"stroke-width":"25px",stroke:"green",style:{filter:"blur(5px)"}},{startNode:lt,endNode:Ht},{startNode:Ht,endNode:Gt}]}})),sr=id(()=>({links:[{startNode:Gt,endNode:zt,"stroke-width":"5px",stroke:"red",offsetEnd:{x:-50+100*zt.progress.value.toNumber(),y:0}}]})),Yn=ui({first:()=>({tab:L(()=>d(U,null,[xe(...ke),xe(K),d("div",null,[C("confirmed")])])),display:"first"}),second:()=>({tab:Le.display,display:"second"})},()=>({style:{width:"660px",backgroundColor:"brown","--background":"brown",border:"solid white",marginLeft:"auto",marginRight:"auto"}})),Kn=ui({mainTab:()=>({tab:Kt(()=>({display:L(()=>{let Z;return d(U,null,[d(Ki,{resource:n,color:e,effectDisplay:`which are boosting waffles by ${Ce(c.value)} and increasing the Ice Cream cap by ${Ce(f.value)}`},null),d(on,null,Ed(Z=de(St))?Z:{default:()=>[Z]}),d(Yi,{resource:n,color:e},null),d(Ie,{height:"5px"},null),d("button",{onClick:()=>console.log("yeet")},[C("'HI'")]),d("div",null,[C("Name your points!")]),d(Vn,{modelValue:s.value,"onUpdate:modelValue":Ye=>s.value=Ye},null),d(on,{style:"color: red; font-size: 32px; font-family: Comic Sans MS;"},{default:()=>[C("I have "),He(ne.points),C(" "),s.value,C(" points!")]}),d("hr",null,null),Ts(...k),d(Ie,null,null),xe(...ke),xe(K),xe(T)])})})),display:"main tab",glowColor(){return Y.canPurchase.value||se.canPurchase.value||F.canPurchase.value||l.gt(T.canComplete.value,0)?"blue":""},style:{color:"orange"}}),thingies:()=>({tab:Kt(()=>({style(){return{backgroundColor:"#222222","--background":"#222222"}},display:L(()=>d(U,null,[de(tr),d(Ie,null,null),d(Et,{style:"width: 600px; height: 350px; background-color: green; border-style: solid;"},{default:()=>[d(Te,{"onUpdate:modelValue":Z=>r.value=Z,modelValue:r.value},null),d(Ie,{width:"30px",height:"10px"},null),d("div",null,[d("span",null,[C("Beep")])]),d(Ie,null,null),d(xc,{height:"200px"},null)]}),d(Ie,null,null),d("img",{src:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png"},null)]))})),glowColor:"white",display:"thingies",style:{borderColor:"orange"}}),jail:()=>({tab:Kt(()=>({display:L(()=>d(U,null,[de(p),de(Ln),d(Ie,null,null),d(Et,null,{default:()=>[d(Xt,{style:"background-color: #555555; padding: 15px"},{default:()=>[d("div",{style:"color: teal"},[C("Sugar level:")]),d(Ie,null,null),de(jn)]}),d(Ie,null,null),d(Xt,null,{default:()=>[d("div",null,[C("idk")]),d(Ie,{width:"0",height:"50px"},null),de(zt)]})]}),d(Ie,null,null),d("div",null,[C(`It's jail because "bars"! So funny! Ha ha!`)]),de(Wn)]))})),display:"jail"}),illuminati:()=>({tab:Kt(()=>({display:L(()=>d("div",null,[d("h1",null,[C(" C O N F I R M E D ")]),d(Ie,null,null),de(Yn),d("div",null,[C("Adjust how many points H gives you!")]),d(Dc,{"onUpdate:modelValue":Z=>o.value=Z,modelValue:o.value,min:1,max:30},null)])),style:{backgroundColor:"#3325CC"}})),visibility:F.bought,display:"illuminati"})});return{id:bn,color:e,name:t,points:n,best:i,beep:r,thingy:s,otherThingy:o,spentOnBuyables:u,waffleBoost:c,icecreamCap:f,coolInfo:p,lollipopMilestones:k,funChallenge:T,funEffect:E,generatorUpgrade:Y,lollipopMultiplierUpgrade:se,lollipopMultiplierEffect:P,unlockIlluminatiUpgrade:F,quasiUpgrade:K,exhancers:A,respecBuyables:Ut,illuminatiTabs:Yn,sellExhancer:Bn,bars:{tallBoi:jn,longBoi:Ln,flatBoi:zt},tree:Wn,g:Ht,h:Gt,spook:Gn,conversion:zn,reset:Hn,hotkeys:nr,treeNode:lt,resetButton:St,confirmRespec:vt,minWidth:800,tabs:Kn,display:L(()=>d(U,null,[de(Kn),de(sr)])),treeNodeTooltip:ir,resetButtonTooltip:rr}}),Td={min:.5,max:1},Pd=[{s:0,cp:.329,e:.548},{s:.548,cp:.767,e:.876},{s:.876,cp:.985,e:1}],Fd=.001,Vd=.1,Od=100,qd=!0,Dd={x:0,y:0},Rd=!1,xd=[{type:"alpha",config:{alpha:{list:[{time:0,value:.74},{time:1,value:0}]}}},{type:"moveSpeed",config:{speed:{list:[{time:0,value:300},{time:1,value:0}]},minMult:1}},{type:"scale",config:{scale:{list:[{time:0,value:1},{time:1,value:.25}]},minMult:1}},{type:"color",config:{color:{list:[{time:0,value:"#ffdfa0"},{time:1,value:"#100f0c"}]}}},{type:"rotation",config:{accel:0,minSpeed:0,maxSpeed:200,minStart:0,maxStart:360}},{type:"textureRandom",config:{textures:["/particle.png"]}},{type:"spawnShape",config:{type:"rect",data:{x:0,y:0,w:0,h:0}}}];var Ad={lifetime:Td,ease:Pd,frequency:Fd,emitterLifetime:Vd,maxParticles:Od,addAtBack:qd,pos:Dd,emit:Rd,behaviors:xd};const yn="f",Le=Lt(yn,()=>{const e="#FE0102",t="Farms",n=Rt(0,"farm points"),i=me(!1),r=Gi(()=>({title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"}})),s=me("Start"),o=xt(()=>({display(){return{title:"Clicky clicky!",description:"Current state:
"+s.value}},initialState:"Start",canClick(){return s.value!=="Borkened..."},onClick(E){var Y,se,P,F,K,ke,pe,A;switch(s.value){case"Start":s.value="A new state!";break;case"A new state!":s.value="Keep going!";break;case"Keep going!":s.value="Maybe that's a bit too far...";break;case"Maybe that's a bit too far...":const oe=E==null?void 0:"touches"in E?E.touches[0]:E,pn=Object.assign({},Ad,{pos:{x:((Y=oe==null?void 0:oe.clientX)!=null?Y:0)-((F=(P=(se=k.boundingRect)==null?void 0:se.value)==null?void 0:P.left)!=null?F:0),y:((K=oe==null?void 0:oe.clientY)!=null?K:0)-((A=(pe=(ke=k.boundingRect)==null?void 0:ke.value)==null?void 0:pe.top)!=null?A:0)}});k.addEmitter(pn).then(vt=>vt.playOnceAndDestroy()),s.value="Borkened...";break;default:s.value="Start";break}},onHold(){console.log("Clickkkkk...")},style(){switch(s.value){case"Start":return{"background-color":"green"};case"A new state!":return{"background-color":"yellow"};case"Keep going!":return{"background-color":"orange"};case"Maybe that's a bit too far...":return{"background-color":"red"};default:return{}}}})),u=xt(()=>({onClick(){s.value=="Borkened..."&&(s.value="Start")},display(){return s.value=="Borkened..."?"Fix the clickable!":"Does nothing"},small:!0})),c=Wi(()=>({thingsToReset:()=>[Le]})),f=mc(()=>({formula:E=>E.div(10).sqrt().times(Ae.otherThingy),baseResource:ne.points,gainResource:Mt(n)})),p=zi(()=>({layerID:yn,color:e,reset:c,tooltip(){return p.canClick.value?`${He(n)} ${n.displayName}`:`This weird farmer dinosaur will only see you if you have at least 10 points. You only have ${He(ne.points)}`},canClick(){return l.gte(ne.points.value,10)}})),v=wn(p,{display:Bi(n),pinnable:!0}),w=Ui(()=>({conversion:f,tree:ne.tree,treeNode:p,display:L(()=>w.conversion.buyMax?d("span",null,[C("Hi! I'm a "),d("u",null,[C("weird dinosaur")]),C(" and I'll give you")," ",d("b",null,[Se(w.conversion.currentGain.value)]),C(" Farm Points in exchange for all of your points and lollipops! (You'll get another one at")," ",Se(w.conversion.nextAt.value),C(" points)")]):d("span",null,[C("Hi! I'm a "),d("u",null,[C("weird dinosaur")]),C(" and I'll give you a Farm Point in exchange for all of your points and lollipops! (At least")," ",Se(w.conversion.nextAt.value),C(" points)")]))})),k=Sc(()=>({boundingRect:O(null),onContainerResized(E){this.boundingRect.value=E},style:"z-index: 2"})),T=L(()=>d(U,null,[de(r),d(Ki,{resource:n,color:e},null),de(w),d("div",null,[C("You have "),Se(f.baseResource.value),C(" points")]),d("div",null,[d("br",null,null),d("img",{src:"https://images.beano.com/store/24ab3094eb95e5373bca1ccd6f330d4406db8d1f517fc4170b32e146f80d?auto=compress%2Cformat&dpr=1&w=390"},null),d("div",null,[C("Bork Bork!")])]),d(Ie,null,null),xe(u),xe(o),de(k)]));return{id:yn,color:e,name:t,points:n,boop:i,coolInfo:r,clickable:o,clickableState:s,reset:c,conversion:f,treeNode:p,resetButton:w,minWidth:650,display:T,tooltip:v}});function _n(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Cn(e)}const ci="a",Nn=Lt(ci,()=>{const e="yellow",t="Achievements",n=Rt(0,"achievement power"),i=Tt(()=>({display:"A",color:e,tooltip:{display:"Achievements",right:!0},onClick(){ne.showAchievements()}})),r=hn(()=>({image:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",display:"Get me!",tooltip:M(()=>r.earned.value?"You did it!":"How did this happen?"),shouldEarn:()=>!0})),s=hn(()=>({display:"Impossible!",tooltip:M(()=>s.earned.value?"HOW????":"Mwahahaha!"),style:{color:"#04e050"}})),o=hn(()=>({display:"EIEIO",tooltip:`Get a farm point. + +Reward: The dinosaur is now your friend (you can max Farm Points).`,shouldEarn:function(){return l.gte(Le.points.value,1)},onComplete(){console.log("Bork bork bork!")}})),u=[r,s,o],c=Nl(()=>({rows:2,cols:2,getStartState(p){return p},getStyle(p,v){return{backgroundColor:`#${Number(v)*1234%999999}`}},getTitle(p){let v="";return p==="101"?v="top":p==="102"?v="bottom":p==="201"?v="left":p==="202"&&(v="right"),L(()=>d(ae,ze({display:JSON.stringify(this.cells[p].style)},{[v]:!0}),{default:()=>[d("h3",null,[C("Gridable #"),p])]}))},getDisplay(p,v){return String(v)},getCanClick(){return l.eq(ne.points.value,10)},onClick(p,v){this.cells[p].state=Number(v)+1}})),f=L(()=>{let p,v,w;return d(U,null,[d(Et,null,{default:()=>[d(ae,{display:r.tooltip,bottom:!0},_n(p=de(r))?p:{default:()=>[p]}),d(ae,{display:s.tooltip,bottom:!0},_n(v=de(s))?v:{default:()=>[v]}),d(ae,{display:o.tooltip,bottom:!0},_n(w=de(o))?w:{default:()=>[w]})]}),xe(c)])});return{id:ci,color:e,name:t,points:n,achievements:u,grid:c,treeNode:i,display:f}}),ne=Lt("main",function(){const e=Rt(10),t=Ri(e),n=Ja(e),i=M(()=>{if(!Ae.generatorUpgrade.bought.value)return new l(0);let c=new l(3.19);return Ae.lollipopMultiplierUpgrade.bought.value&&(c=c.times(Ae.lollipopMultiplierEffect.value)),c});ve.on("update",c=>{e.value=l.add(e.value,l.times(i.value,c))});const r=el(e,i),{openModal:s,modal:o}=Fi(Nn),u=Ai(()=>({nodes:[[Ae.treeNode],[Le.treeNode,Ae.spook]],leftSideNodes:[Nn.treeNode,Ae.h],branches:[{startNode:Le.treeNode,endNode:Ae.treeNode,stroke:"blue","stroke-width":"25px",style:{filter:"blur(5px)"}}],onReset(){e.value=Zn(this.resettingNode.value)===Zn(Ae.treeNode)?0:10,t.value=e.value,n.value=e.value},resetPropagation:Ol}));return{name:"Tree",display:L(()=>d(U,null,[R.devSpeed===0?d("div",null,[C("Game Paused")]):null,R.devSpeed!=null&&R.devSpeed!=0&&R.devSpeed!==1?d("div",null,[C("Dev Speed: "),Ce(R.devSpeed),C("x")]):null,R.offlineTime!=null&&R.offlineTime!=0?d("div",null,[C("Offline Time: "),cn(R.offlineTime)]):null,d("div",null,[l.lt(e.value,"1e1000")?d("span",null,[C("You have ")]):null,d("h2",null,[Ce(e.value)]),l.lt(e.value,"1e1e6")?d("span",null,[C(" points")]):null]),l.gt(i.value,0)?d("div",null,[C("("),r.value,C(")")]):null,d(Ie,null,null),d("button",{onClick:s},[C("open achievements")]),de(o),de(u),d(Za,{height:"200px",style:"margin: 10px auto; display: block"},null)])),points:e,best:t,total:n,oomps:r,tree:u,showAchievements:s}}),Bd=e=>[ne,Le,Ae,Nn],An=M(()=>l.gt(ne.points.value,25));function Ld(e,t){}var jd=Object.freeze(Object.defineProperty({__proto__:null,main:ne,getInitialLayers:Bd,hasWon:An,fixOldSave:Ld},Symbol.toStringTag,{value:"Module"}));const jt=e=>(Ge("data-v-4a50ce42"),e=e(),We(),e),Ud={class:"game-over-modal-header"},zd=["src","alt"],Hd={class:"game-over-modal-title"},Gd=jt(()=>g("h2",null,"Congratulations!",-1)),Wd={key:0},Yd=jt(()=>g("br",null,null,-1)),Kd=jt(()=>g("div",null," Please check the Discord to discuss the game or to check for new content updates! ",-1)),Zd=jt(()=>g("br",null,null,-1)),Jd=["href"],Xd=jt(()=>g("span",{class:"material-icons game-over-modal-discord"},"discord",-1)),Qd=D({__name:"GameOverScreen",setup(e){const{title:t,logo:n,discordName:i,discordLink:r,versionNumber:s,versionTitle:o}=ie,u=M(()=>cn(R.timePlayed)),c=M(()=>An.value&&!R.keepGoing),f=st(R,"autosave");function p(){R.keepGoing=!0}function v(){pt(_t())}return(w,k)=>(h(),q(at,{"model-value":a(c)},{header:x(()=>[g("div",Ud,[a(n)?(h(),S("img",{key:0,class:"game-over-modal-logo",src:a(n),alt:a(t)},null,8,zd)):V("",!0),g("div",Hd,[Gd,g("h4",null,"You've beaten "+X(a(t))+" v"+X(a(s))+": "+X(a(o)),1)])])]),body:x(({shown:T})=>[T?(h(),S("div",Wd,[g("div",null,"It took you "+X(a(u))+" to beat the game.",1),Yd,Kd,Zd,g("div",null,[g("a",{href:a(r),class:"game-over-modal-discord-link"},[Xd,C(" "+X(a(i)),1)],8,Jd)]),d(Te,{title:"Autosave",modelValue:a(f),"onUpdate:modelValue":k[0]||(k[0]=E=>be(f)?f.value=E:null)},null,8,["modelValue"])])):V("",!0)]),footer:x(()=>[g("div",{class:"game-over-footer"},[g("button",{onClick:p,class:"button"},"Keep Going"),g("button",{onClick:v,class:"button danger"},"Play Again")])]),_:1},8,["model-value"]))}});var ef=z(Qd,[["__scopeId","data-v-4a50ce42"]]);const fn=e=>(Ge("data-v-336bf74f"),e=e(),We(),e),tf=fn(()=>g("div",{class:"nan-modal-header"},[g("h2",null,"NaN value detected!")],-1)),nf={key:0},rf=fn(()=>g("br",null,null,-1)),sf=["href"],of=fn(()=>g("span",{class:"material-icons nan-modal-discord"},"discord",-1)),af=fn(()=>g("br",null,null,-1)),lf={class:"nan-footer"},uf=D({__name:"NaNScreen",setup(e){const{discordName:t,discordLink:n}=ie,i=O(!0),r=O(!0),s=st(_e,"hasNaN"),o=O(null);Be(s,w=>{w?(i.value=R.autosave,r.value=R.devSpeed===0):(R.autosave=i.value,R.devSpeed=r.value?0:null)});const u=M(()=>{var w;return(w=_e.NaNPath)==null?void 0:w.join(".")}),c=M(()=>_e.NaNPersistent!=null?_e.NaNPersistent.value:null);function f(){_e.NaNPersistent!=null&&(_e.NaNPersistent.value=new l(0),_e.hasNaN=!1)}function p(){_e.NaNPersistent&&(_e.NaNPersistent.value=new l(1),_e.hasNaN=!1)}function v(){_e.NaNPersistent&&(_e.NaNPersistent.value=new l(NaN),_e.hasNaN=!1)}return(w,k)=>(h(),S(U,null,[d(at,ze({modelValue:a(s),"onUpdate:modelValue":k[4]||(k[4]=T=>be(s)?s.value=T:null)},w.$attrs),{header:x(()=>[tf]),body:x(()=>[g("div",null,[C(' Attempted to assign "'+X(a(u))+'" to NaN',1),a(c)?(h(),S("span",nf,X(" ")+"(previously "+X(a(Ce)(a(c)))+")",1)):V("",!0),C(". Auto-saving has been "+X(i.value?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. ",1)]),rf,g("div",null,[g("a",{href:a(n)||"https://discord.gg/WzejVAx",class:"nan-modal-discord-link"},[of,C(" "+X(a(t)||"The Paper Pilot Community"),1)],8,sf)]),af,d(Te,{title:"Autosave",modelValue:i.value,"onUpdate:modelValue":k[0]||(k[0]=T=>i.value=T)},null,8,["modelValue"]),a(ie).enablePausing?(h(),q(Te,{key:0,title:"Pause game",modelValue:r.value,"onUpdate:modelValue":k[1]||(k[1]=T=>r.value=T)},null,8,["modelValue"])):V("",!0)]),footer:x(()=>[g("div",lf,[g("button",{onClick:k[2]||(k[2]=T=>{var E;return(E=o.value)==null?void 0:E.open()}),class:"button"},"Open Saves Manager"),g("button",{onClick:f,class:"button"},"Set to 0"),g("button",{onClick:p,class:"button"},"Set to 1"),a(c)&&a(l).neq(a(c),0)&&a(l).neq(a(c),1)?(h(),S("button",{key:0,onClick:k[3]||(k[3]=T=>s.value=!1),class:"button"}," Set to previous ")):V("",!0),g("button",{onClick:v,class:"button danger"},"Ignore")])]),_:1},16,["modelValue"]),d(qi,{ref_key:"savesManager",ref:o},null,512)],64))}});var cf=z(uf,[["__scopeId","data-v-336bf74f"]]);const df={key:0,class:"tpsDisplay"},ff={key:0,class:"low"},pf=D({__name:"TPS",setup(e){const t=M(()=>l.div(_e.lastTenTicks.length,_e.lastTenTicks.reduce((s,o)=>s+o,0))),n=O([]);Pe(()=>{n.value.push(Math.round(t.value.toNumber())),n.value.length>10&&(n.value=n.value.slice(1))});const i=M(()=>n.value.reduce((s,o)=>l.max(s,o),0)),r=M(()=>l.sub(t.value,i.value).gt(1));return(s,o)=>a(t).isNan()?V("",!0):(h(),S("div",df,[C(" TPS: "+X(a(Se)(a(t)))+" ",1),d(ln,{name:"fade"},{default:x(()=>[a(r)?(h(),S("span",ff,X(a(Se)(a(i))),1)):V("",!0)]),_:1})]))}});var mf=z(pf,[["__scopeId","data-v-46a3ed5b"]]);var gf=D({__name:"App",setup(e){const t=ie.useHeader,n=M(()=>Xe[J.theme].variables),i=st(J,"showTPS"),r=M(()=>j(L(()=>d(U,null,[Ms.map(de)]))));return(s,o)=>(h(),S(U,null,[g("div",{id:"modal-root",style:ee(a(n))},null,4),g("div",{class:te(["app",{useHeader:a(t)}]),style:ee(a(n))},[a(t)?(h(),q(Di,{key:0})):V("",!0),d(Ha),a(a(i))?(h(),q(mf,{key:1})):V("",!0),d(ef),d(cf),(h(),q(re(a(r))))],6)],64))}});var hf=z(gf,[["__scopeId","data-v-41d15e5e"]]);function vf(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:i,onRegistered:r,onRegisterError:s}=e;let o,u;const c=async(f=!0)=>{f&&(o==null||o.addEventListener("controlling",p=>{p.isUpdate&&window.location.reload()})),u&&u.waiting&&await Cr(u.waiting,{type:"SKIP_WAITING"})};if("serviceWorker"in navigator){o=new Nr("./sw.js",{scope:"./",type:"classic"}),o.addEventListener("activated",f=>{f.isUpdate||i==null||i()});{const f=()=>{n==null||n()};o.addEventListener("waiting",f),o.addEventListener("externalwaiting",f)}o.register({immediate:t}).then(f=>{u=f,r==null||r(f)}).catch(f=>{s==null||s(f)})}return c}function bf(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:i,onRegistered:r,onRegisterError:s}=e,o=O(!1),u=O(!1);return{updateServiceWorker:vf({immediate:t,onNeedRefresh(){o.value=!0,n==null||n()},onOfflineReady(){u.value=!0,i==null||i()},onRegistered:r,onRegisterError:s}),offlineReady:u,needRefresh:o}}document.title=ie.title;window.projInfo=ie;if(ie.id==="")throw new Error("Project ID is empty! Please select a unique ID for this project in /src/data/projInfo.json");requestAnimationFrame(async()=>{console.log(`%cMade in Profectus%c +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 Cs();const{globalBus:e}=await tn(()=>Promise.resolve().then(function(){return ws}),void 0),{startGameLoop:t}=await tn(()=>import("./gameLoop.98fb07e1.js"),["assets/gameLoop.98fb07e1.js","assets/@fontsource.f66d05e7.css","assets/vue.d185782d.js","assets/earcut.b6f90e68.js","assets/@vue.7184beb0.js","assets/nanoevents.1080beb7.js","assets/lz-string.f2f3b7cf.js","assets/@ivanv.3bc3ebc4.js","assets/vue-next-select.f0e584b6.js","assets/vue-next-select.9e6f4164.css","assets/vuedraggable.4713c6fe.js","assets/sortablejs.4c7e7419.js","assets/vue-textarea-autosize.35804eaf.js","assets/vue-toastification.768059b7.js","assets/vue-toastification.4b5f8ac8.css","assets/@pixi.13a16b18.js","assets/ismobilejs.5c6954b9.js","assets/eventemitter3.dc5195d7.js","assets/url.6dd57c6c.js","assets/querystring.776b9ab3.js","assets/workbox-window.8d14e8b7.js"]),n=window.vue=fr(hf);e.emit("setupVue",n),n.mount("#app"),Ze(()=>{const i=kn(),{updateServiceWorker:r}=bf({onNeedRefresh(){i.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(){r()}})},onOfflineReady(){i.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(s){s&&setInterval(()=>s.update(),60*60*1e3)}})}),t()});export{l as D,tn as _,_e as a,ie as b,jd as c,ve as g,$n as l,R as p,J as s}; diff --git a/assets/index.4d68ca01.css b/assets/index.4d68ca01.css deleted file mode 100644 index 0e3ed88..0000000 --- a/assets/index.4d68ca01.css +++ /dev/null @@ -1 +0,0 @@ -.table{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;max-width:100%;margin:0 auto}.table+.table{margin-top:10px}.row{display:flex;flex-flow:row wrap;justify-content:center;align-items:stretch;max-width:100%;margin:0 10px}.row>:not(.feature){margin:0;display:flex}.col{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;height:100%;margin:10px 0}.row.mergeAdjacent>.feature:not(.dontMerge),.row.mergeAdjacent>.tooltip-container>.feature:not(.dontMerge){margin-left:0;margin-right:0;border-radius:0}.row.mergeAdjacent>.feature:not(.dontMerge):first-child,.row.mergeAdjacent>.tooltip-container:first-child>.feature:not(.dontMerge){border-radius:var(--border-radius) 0 0 var(--border-radius)}.row.mergeAdjacent>.feature:not(.dontMerge):last-child,.row.mergeAdjacent>.tooltip-container:last-child>.feature:not(.dontMerge){border-radius:0 var(--border-radius) var(--border-radius) 0}.row.mergeAdjacent>.feature:not(.dontMerge):first-child:last-child,.row.mergeAdjacent>.tooltip-container:first-child:last-child>.feature:not(.dontMerge){border-radius:var(--border-radius)}.col.mergeAdjacent .feature:not(.dontMerge){margin-top:0;margin-bottom:0;border-radius:0}.col.mergeAdjacent .feature:not(.dontMerge):first-child{border-radius:var(--border-radius) var(--border-radius) 0 0}.col.mergeAdjacent .feature:not(.dontMerge):last-child{border-radius:0 0 var(--border-radius) var(--border-radius)}.col.mergeAdjacent .feature:not(.dontMerge):first-child:last-child{border-radius:var(--border-radius)}.resize-listener[data-v-6a08ac80]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;z-index:-10;pointer-events:none}.modal-mask{position:fixed;z-index:9998;top:0;left:0;bottom:0;right:0;background-color:#00000080;transition:opacity .3s ease}.modal-wrapper{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.modal-container{width:640px;max-width:95vw;max-height:95vh;background-color:var(--background);padding:20px;border-radius:5px;transition:all .3s ease;text-align:left;border:var(--modal-border);box-sizing:border-box;display:flex;flex-direction:column}.modal-header{width:100%}.modal-body{margin:20px 0;width:100%;overflow-y:auto;overflow-x:hidden}.modal-footer{width:100%}.modal-default-footer{display:flex}.modal-default-flex-grow{flex-grow:1}.modal-enter-from,.modal-leave-active{opacity:0}.modal-enter-from .modal-container,.modal-leave-active .modal-container{-webkit-transform:scale(1.1);transform:scale(1.1)}.layer-container[data-v-34c9d881]{min-width:100%;min-height:100%;margin:0;flex-grow:1;display:flex;isolation:isolate}.layer-tab[data-v-34c9d881]:not(.minimized){padding-top:20px;padding-bottom:20px;min-height:100%;flex-grow:1;text-align:center;position:relative}.inner-tab>.layer-container>.layer-tab[data-v-34c9d881]:not(.minimized){padding-top:50px}.layer-tab.minimized[data-v-34c9d881]{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;padding:55px 0 0;margin:0;cursor:pointer;font-size:40px;color:var(--foreground);border:none;background-color:transparent}.layer-tab.minimized div[data-v-34c9d881]{margin:0;writing-mode:vertical-rl;padding-left:10px;width:50px}.inner-tab>.layer-container>.layer-tab[data-v-34c9d881]:not(.minimized){margin:-50px -10px;padding:50px 10px}.modal-body .layer-tab[data-v-34c9d881]{padding-bottom:0}.modal-body .layer-tab[data-v-34c9d881]:not(.hasSubtabs){padding-top:0}.minimize[data-v-34c9d881]{position:sticky;top:6px;right:9px;z-index:7;line-height:30px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:40px;cursor:pointer;margin-top:-44px;margin-right:-30px}.minimized+.minimize[data-v-34c9d881]{transform:rotate(-90deg);top:10px;right:18px;pointer-events:none}.goBack[data-v-34c9d881]{position:sticky;top:6px;left:20px;line-height:30px;margin-top:-50px;margin-left:-35px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:40px;cursor:pointer;z-index:7}.goBack[data-v-34c9d881]:hover{transform:scale(1.1);text-shadow:0 0 7px var(--foreground)}details[data-v-4b4bda40]{margin:10px 0;padding-left:18px}summary[data-v-4b4bda40]{cursor:pointer;margin-bottom:10px;margin-left:-18px}ul[data-v-4b4bda40]{margin:var(--feature-margin) 0;background:var(--raised-background);border:2px solid rgba(0,0,0,.125);padding:5px 5px 5px 15px;list-style:inside}li[data-v-4b4bda40]{margin:8px 0}li[data-v-4b4bda40]:before{padding:2px 8px;margin-right:8px;border-radius:var(--border-radius)}.feature[data-v-4b4bda40]:before{content:"Feature";background:var(--accent1)}.fix[data-v-4b4bda40]:before{content:"Fix";background:var(--accent2)}.balancing[data-v-4b4bda40]:before{content:"Balancing";background:var(--accent3)}.breaking[data-v-4b4bda40]:before{content:"Breaking";background:var(--danger)}.tooltip-container[data-v-6102fa3a]{position:relative;--xoffset: 0px;--yoffset: 0px;text-shadow:none!important}.tooltip[data-v-6102fa3a],.tooltip[data-v-6102fa3a]:after{pointer-events:none;position:absolute}.tooltip[data-v-6102fa3a]{text-align:center;width:150px;font-size:14px;line-height:1.2;bottom:calc(100% + var(--yoffset));left:calc(50% + var(--xoffset));margin-bottom:5px;transform:translate(-50%);padding:7px;border-radius:3px;background-color:var(--tooltip-background);color:var(--points);z-index:100!important;word-break:break-word}.tooltip[data-v-6102fa3a] hr{margin:var(--feature-margin) 0}.shown[data-v-6102fa3a]{z-index:10}.fade-enter-from[data-v-6102fa3a],.fade-leave-to[data-v-6102fa3a]{opacity:0}.tooltip[data-v-6102fa3a]:after{content:" ";position:absolute;top:100%;bottom:100%;left:calc(50% - var(--xoffset));width:0;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--tooltip-background) transparent transparent transparent}.tooltip.left[data-v-6102fa3a],.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top){bottom:calc(50% + var(--yoffset));left:unset;right:calc(100% + var(--xoffset));margin-bottom:unset;margin-right:5px;transform:translateY(50%)}.tooltip.left[data-v-6102fa3a]:after,.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top):after{top:calc(50% + var(--yoffset));bottom:unset;left:100%;right:100%;margin-left:unset;margin-top:-5px;border-color:transparent transparent transparent var(--tooltip-background)}.tooltip.right[data-v-6102fa3a]{bottom:calc(50% + var(--yoffset));left:calc(100% + var(--xoffset));margin-bottom:unset;margin-left:5px;transform:translateY(50%)}.tooltip.right[data-v-6102fa3a]:after{top:calc(50% + var(--yoffset));left:0;right:100%;margin-left:-10px;margin-top:-5px;border-color:transparent var(--tooltip-background) transparent transparent}.tooltip.bottom[data-v-6102fa3a]{top:calc(100% + var(--yoffset));bottom:unset;left:calc(50% + var(--xoffset));margin-bottom:unset;margin-top:5px;transform:translate(-50%)}.tooltip.bottom[data-v-6102fa3a]:after{top:0;margin-top:-10px;border-color:transparent transparent var(--tooltip-background) transparent}.pinned[data-v-6102fa3a]{position:absolute;right:-5px;top:-5px;transform:rotate(45deg)}.info-modal-header[data-v-7dec2dec]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.info-modal-header *[data-v-7dec2dec]{margin:0}.info-modal-logo[data-v-7dec2dec]{height:4em;width:4em}.info-modal-title[data-v-7dec2dec]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.info-modal-discord-link[data-v-7dec2dec]{display:flex;align-items:center}.info-modal-discord[data-v-7dec2dec]{margin:0 4px 0 0}.field{display:flex;position:relative;min-height:2em;margin:10px 0;user-select:none;justify-content:space-between;align-items:center}.field>*{margin:0}.vue-select{width:50%;border-radius:var(--border-radius)}.field-buttons .vue-select{width:unset}.vue-select,.vue-dropdown{border-color:var(--outline)}.vue-dropdown{background:var(--raised-background)}.vue-dropdown-item{color:var(--foreground)}.vue-dropdown-item,.vue-dropdown-item *{transition-duration:0s}.vue-dropdown-item.highlighted{background-color:var(--highlighted)}.vue-dropdown-item.selected,.vue-dropdown-item.highlighted.selected{background-color:var(--bought)}.vue-input input::placeholder{color:var(--link)}.field[data-v-2b109500]{cursor:pointer}input[data-v-2b109500]{appearance:none;pointer-events:none}span[data-v-2b109500]{width:100%;position:relative}input+span[data-v-2b109500]:before{content:"";float:right;margin:5px 0 5px 10px;border-radius:7px;width:36px;height:14px;background-color:var(--outline);opacity:.38;vertical-align:top;transition:background-color .2s,opacity .2s}input+span[data-v-2b109500]:after{content:"";position:absolute;top:2px;right:16px;border-radius:50%;width:20px;height:20px;background-color:var(--locked);box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;transition:background-color .2s,transform .2s}input:checked+span[data-v-2b109500]:before{background-color:var(--link);opacity:.6}input:checked+span[data-v-2b109500]:after{background-color:var(--link);transform:translate(16px)}input:active+span[data-v-2b109500]:before{background-color:var(--link);opacity:.6}input:checked:active+span[data-v-2b109500]:before{background-color:var(--outline);opacity:.38}input:disabled+span[data-v-2b109500]{color:#000;opacity:.38;cursor:default}input:disabled+span[data-v-2b109500]:before{background-color:var(--outline);opacity:.38}input:checked:disabled+span[data-v-2b109500]:before{background-color:var(--link);opacity:.6}.header[data-v-bc13791c]{margin-bottom:-10px}*[data-v-bc13791c] .tooltip-container{display:inline;margin-left:5px}form[data-v-d74adb0a]{margin:0;width:100%}.field>*[data-v-d74adb0a]{margin:0}input[data-v-d74adb0a]{width:50%;outline:none;border:solid 1px var(--outline);background-color:unset;border-radius:var(--border-radius)}.fullWidth[data-v-d74adb0a]{width:100%}.container[data-v-2f8ef34c]{display:flex;align-items:center;background:var(--raised-background);box-shadow:var(--raised-background) 0 2px 3px 5px}.container.confirming button[data-v-2f8ef34c]{font-size:1em}.container>*[data-v-2f8ef34c]{margin:0 4px}.danger,.button.danger{position:relative;border:solid 2px var(--danger);border-right-width:16px}.danger:after{position:absolute;content:"!";color:#fff;right:-13px}.feedback[data-v-01a1b95c]{position:relative}.feedback[data-v-01a1b95c]:after{position:absolute;left:calc(100% + 5px);top:50%;transform:translateY(-50%);content:"\2714";opacity:0;pointer-events:none;box-shadow:inset 0 0 0 35px #6f94b600;text-shadow:none}.feedback.left[data-v-01a1b95c]:after{left:unset;right:calc(100% + 5px)}.feedback.activated[data-v-01a1b95c]:after{animation:feedback-01a1b95c .5s ease-out forwards}@keyframes feedback-01a1b95c{0%{opacity:1;transform:scale3d(.4,.4,1),translateY(-50%)}80%{opacity:.1}to{opacity:0;transform:scale3d(1.2,1.2,1),translateY(-50%)}}.save[data-v-0136bef4]{position:relative;border:solid 4px var(--outline);padding:4px;background:var(--raised-background);margin:var(--feature-margin);display:flex;align-items:center;min-height:30px}.save.active[data-v-0136bef4]{border-color:var(--bought)}.open[data-v-0136bef4]{display:inline;margin:0;padding-left:0}.handle[data-v-0136bef4]{flex-grow:0;margin-right:8px;margin-left:0;cursor:pointer}.details[data-v-0136bef4]{margin:0 80px 0 0;flex-grow:1}.error[data-v-0136bef4]{font-size:.8em;color:var(--danger)}.save-version[data-v-0136bef4]{margin-left:4px;font-size:.7em;opacity:.7}.actions[data-v-0136bef4]{position:absolute;top:0;bottom:0;right:4px;display:flex;padding:4px;z-index:1}.editname[data-v-0136bef4]{margin:0}.save button{transition-duration:0s}.save .actions button{display:flex;font-size:1.2em}.save .actions button .material-icons{font-size:unset}.save .button.danger{display:flex;align-items:center;padding:4px}.save .field,.field form[data-v-3b9991aa],.field .field-title[data-v-3b9991aa],.field .field-buttons[data-v-3b9991aa]{margin:0}.field-buttons[data-v-3b9991aa]{display:flex}.field-buttons .field[data-v-3b9991aa]{margin:0 0 0 8px}.modal-footer[data-v-3b9991aa]{margin-top:-20px}.footer[data-v-3b9991aa]{display:flex;margin-top:20px}.importingFailed input{color:red}.field-buttons .v-select{width:220px}.presets .vue-select[aria-expanded=true] vue-dropdown{visibility:hidden}.nav[data-v-4a3f8425]{background-color:var(--raised-background);display:flex;left:0;right:0;top:0;height:46px;width:100%;border-bottom:4px solid var(--outline)}.nav>*[data-v-4a3f8425]{height:46px;width:46px;display:flex;cursor:pointer;flex-shrink:0}.nav>.banner[data-v-4a3f8425]{height:100%;width:unset}.overlay-nav[data-v-4a3f8425]{position:fixed;top:10px;left:10px;display:flex;flex-direction:column;z-index:2}.overlay-nav>*[data-v-4a3f8425]{height:50px;width:50px;display:flex;cursor:pointer;margin:0;align-items:center;justify-content:center}.title[data-v-4a3f8425]{font-size:36px;text-align:left;margin-left:12px;cursor:unset}.nav>.title[data-v-4a3f8425]{width:unset;flex-shrink:1;overflow:hidden;white-space:nowrap}.nav .saves[data-v-4a3f8425],.nav .info[data-v-4a3f8425]{display:flex}.tooltip-container[data-v-4a3f8425]{width:100%;height:100%;display:flex}.overlay-nav .discord[data-v-4a3f8425]{position:relative}.discord img[data-v-4a3f8425]{width:100%;height:100%}.discord-links[data-v-4a3f8425]{position:fixed;top:45px;padding:20px;right:-280px;width:200px;transition:right .25s ease;background:var(--raised-background);z-index:10}.overlay-nav .discord-links[data-v-4a3f8425]{position:absolute;left:-280px;right:unset;transition:left .25s ease}.overlay-nav .discord:hover .discord-links[data-v-4a3f8425]{left:-10px}.discord-links li[data-v-4a3f8425]{margin-bottom:4px}.discord-links li[data-v-4a3f8425]:first-child{font-size:1.2em}*:not(.overlay-nav) .discord:hover .discord-links[data-v-4a3f8425]{right:0}.material-icons[data-v-4a3f8425]{font-size:36px}.material-icons[data-v-4a3f8425]:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--foreground)}.nav .version-container[data-v-4a3f8425]{display:flex;height:25px;margin-bottom:0;margin-left:10px}.overlay-nav .version-container[data-v-4a3f8425]{width:unset;height:25px}.version[data-v-4a3f8425]{color:var(--points)}.version:hover span[data-v-4a3f8425]{text-shadow:5px 0 10px var(--points),-3px 0 12px var(--points)}.nav>div>a[data-v-4a3f8425],.overlay-nav>div>a[data-v-4a3f8425]{color:var(--foreground);text-shadow:none}.tabs-container[data-v-4cb9ce0f]{width:100vw;flex-grow:1;overflow-x:auto;overflow-y:hidden;display:flex}.tabs-container[data-v-4cb9ce0f]:not(.useHeader){width:calc(100vw - 50px);margin-left:50px}.tab[data-v-4cb9ce0f]{position:relative;height:100%;flex-grow:1;transition-duration:0s;overflow-y:auto;overflow-x:hidden}.inner-tab[data-v-4cb9ce0f]{padding:50px 10px;min-height:calc(100% - 100px);display:flex;flex-direction:column;margin:0;flex-grow:1}.tab+.tab>.inner-tab[data-v-4cb9ce0f]{border-left:solid 4px var(--outline)}.tab hr{height:4px;border:none;background:var(--outline);margin:var(--feature-margin) 0}.tab .modal-body hr{margin:7px 0}svg[data-v-89b4b00a]{background:#2e3440}svg .svg-elem-1[data-v-89b4b00a]{stroke-dashoffset:2648.758056640625px;stroke-dasharray:1324.3790283203125px;transition:stroke-dashoffset 1s cubic-bezier(.47,0,.745,.715) 0s}svg.v-enter-from .svg-elem-1[data-v-89b4b00a],svg.v-leave-to .svg-elem-1[data-v-89b4b00a]{stroke-dashoffset:1324.3790283203125px}svg .svg-elem-2[data-v-89b4b00a]{stroke-dashoffset:680.4000854492188px;stroke-dasharray:340.2000427246094px;transition:stroke-dashoffset 1s ease-out .4s}svg.v-enter-from .svg-elem-2[data-v-89b4b00a],svg.v-leave-to .svg-elem-2[data-v-89b4b00a]{stroke-dashoffset:340.2000427246094px}svg .svg-elem-3[data-v-89b4b00a]{stroke-dashoffset:76.21031951904297px;stroke-dasharray:38.105159759521484px;transition:stroke-dashoffset 1s ease-out .8s}svg.v-enter-from .svg-elem-3[data-v-89b4b00a],svg.v-leave-to .svg-elem-3[data-v-89b4b00a]{stroke-dashoffset:38.105159759521484px}svg .svg-elem-4[data-v-89b4b00a]{stroke-dashoffset:175.18072509765625px;stroke-dasharray:87.59036254882812px;transition:stroke-dashoffset 1s cubic-bezier(.47,0,.745,.715) .36s}svg.v-enter-from .svg-elem-4[data-v-89b4b00a],svg.v-leave-to .svg-elem-4[data-v-89b4b00a]{stroke-dashoffset:87.59036254882812px}svg .svg-elem-5[data-v-89b4b00a]{stroke-dashoffset:671.9447021484375px;stroke-dasharray:335.97235107421875px;transition:stroke-dashoffset 1s ease-out .8s}svg.v-enter-from .svg-elem-5[data-v-89b4b00a],svg.v-leave-to .svg-elem-5[data-v-89b4b00a]{stroke-dashoffset:335.97235107421875px}svg .svg-elem-6[data-v-89b4b00a]{stroke-dashoffset:173.96141052246094px;stroke-dasharray:86.98070526123047px;transition:stroke-dashoffset 1s ease-out 1s}svg.v-enter-from .svg-elem-6[data-v-89b4b00a],svg.v-leave-to .svg-elem-6[data-v-89b4b00a]{stroke-dashoffset:86.98070526123047px}svg .svg-elem-7[data-v-89b4b00a]{stroke-dashoffset:172.99151611328125px;stroke-dasharray:86.49575805664062px;transition:stroke-dashoffset 1s ease-out .85s}svg.v-enter-from .svg-elem-7[data-v-89b4b00a],svg.v-leave-to .svg-elem-7[data-v-89b4b00a]{stroke-dashoffset:86.49575805664062px}.resize-listener[data-v-c139d80e]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;z-index:-10;pointer-events:none}svg[data-v-c139d80e]{position:absolute;top:5px;left:5px;right:5px;bottom:5px;z-index:-10;pointer-events:none}.left-side-nodes[data-v-39ca96d0]{position:absolute;left:15px;top:65px}.side-nodes[data-v-39ca96d0]{position:absolute;right:15px;top:65px}.left-side-nodes[data-v-39ca96d0] .treeNode,.side-nodes[data-v-39ca96d0] .treeNode{margin:20px auto}.small[data-v-39ca96d0] .treeNode{height:60px;width:60px}.small[data-v-39ca96d0] .treeNode>*:first-child{font-size:30px}.mark[data-v-2207999f]{position:absolute;left:-25px;top:-10px;width:30px;height:30px;z-index:1;pointer-events:none;margin-left:.9em;margin-right:.9em;margin-bottom:1.2em;border-right:.3em solid transparent;border-bottom:.7em solid transparent;border-left:.3em solid transparent;font-size:10px}.star[data-v-2207999f]{left:-10px;width:0;height:0;margin-left:.9em;margin-right:.9em;margin-bottom:1.2em;border-right:.3em solid transparent;border-bottom:.7em solid #ffcc00;border-left:.3em solid transparent;font-size:10px;pointer-events:none}.star[data-v-2207999f]:before,.star[data-v-2207999f]:after{content:"";width:0;height:0;position:absolute;top:.6em;left:-1em;border-right:1em solid transparent;border-bottom:.7em solid #ffcc00;border-left:1em solid transparent;transform:rotate(-35deg)}.star[data-v-2207999f]:after{transform:rotate(35deg)}.node[data-v-2cb1bb79]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.treeNode[data-v-1c0c107d]{height:100px;width:100px;border-radius:50%;padding:0;margin:0 10px}.treeNode>*[data-v-1c0c107d]:first-child{width:100%;height:100%;border:2px solid rgba(0,0,0,.125);border-radius:inherit;font-size:40px;color:#00000080;text-shadow:2px 2px 4px rgba(0,0,0,.25);box-shadow:-4px -4px 4px #00000040 inset,0 0 20px var(--background);text-transform:capitalize;display:flex}.treeNode>*:first-child>*[data-v-1c0c107d]{pointer-events:none}.feature:not(li),.feature:not(li) button{position:relative;padding:5px;border-radius:var(--border-radius);border:2px solid rgba(0,0,0,.125);margin:var(--feature-margin);box-sizing:border-box;color:var(--feature-foreground);z-index:0;transition:all .5s,z-index 0s .5s}.can,.can button{background-color:var(--layer-color);cursor:pointer}.can:hover,.can:hover button{transform:scale(1.15);box-shadow:0 0 20px var(--points);z-index:1;transition:all .5s,z-index 0s}.locked,.locked button{background-color:var(--locked);cursor:not-allowed}.bought,.bought button{background-color:var(--bought);cursor:default}.achievement[data-v-58163dab]{height:90px;width:90px;font-size:10px;color:#fff;text-shadow:0 0 2px #000000}.tile[data-v-26ac0e82]{min-height:80px;width:80px;font-size:10px;background-color:var(--layer-color)}.tile>*[data-v-26ac0e82]{pointer-events:none}.clickable[data-v-5e7c90cf]{min-height:120px;width:120px;font-size:10px}.clickable.small[data-v-5e7c90cf]{min-height:unset}.clickable>*[data-v-5e7c90cf]{pointer-events:none}.modifier-toggle{padding-right:10px;transform:translateY(-1px);display:inline-block}.modifier-toggle.collapsed{transform:translate(-5px,-5px) rotate(-90deg)}.infobox[data-v-338c9154]{position:relative;width:600px;max-width:95%;margin-top:0;text-align:left;border-style:solid;border-width:0px;box-sizing:border-box;border-radius:5px}.infobox.stacked[data-v-338c9154]{border-width:4px}.infobox:not(.stacked)+.infobox[data-v-338c9154]:not(.stacked){margin-top:20px}.infobox[data-v-338c9154]+:not(.infobox){margin-top:10px}.title[data-v-338c9154]{font-size:24px;color:#000;cursor:pointer;border:none;width:auto;text-align:left;padding:4px 4px 4px 30px}.infobox:not(.stacked) .title[data-v-338c9154]{border-top-left-radius:5px;border-top-right-radius:5px}.infobox.stacked+.infobox.stacked[data-v-338c9154]{border-top-left-radius:0;border-top-right-radius:0;margin-top:-5px}.stacked .title[data-v-338c9154]{width:100%}.collapsed:not(.stacked) .title[data-v-338c9154]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background-color:inherit}.toggle[data-v-338c9154]{position:absolute;left:10px}.collapsed .toggle[data-v-338c9154]{transform:rotate(-90deg)}.body[data-v-338c9154]{transition-duration:.5s;border-radius:0 5px 5px}.infobox:not(.stacked) .body[data-v-338c9154]{padding:4px}.body>*[data-v-338c9154]{padding:8px;width:100%;display:block;box-sizing:border-box;border-radius:0 5px 5px;background-color:var(--background)}.not-fullscreen[data-v-8adf21fa],.resize-listener[data-v-8adf21fa]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;pointer-events:none}.sticky[data-v-21495571]{position:sticky;background:var(--background);width:calc(100% - 2px);z-index:3}.main-display-container{vertical-align:middle;margin-bottom:20px;display:flex}.modifier-container{display:flex}.modifier-container:nth-child(2n){background:var(--raised-background)}.modifier-amount{flex-basis:100px;flex-shrink:0}.modifier-description{flex-grow:1}.fullWidth[data-v-1b053b9f]{width:100%}.vr[data-v-5e0a978a]{width:4px;background:var(--outline);height:100%;margin:auto var(--feature-margin)}.bar[data-v-02d0d7b2]{position:relative;display:table}.overlayTextContainer[data-v-02d0d7b2]{position:absolute;border-radius:10px;vertical-align:middle;display:flex;justify-content:center;z-index:3}.overlayText[data-v-02d0d7b2]{z-index:6}.border[data-v-02d0d7b2]{border:2px solid;border-radius:10px;border-color:var(--foreground);overflow:hidden;mask-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);margin:0}.fill[data-v-02d0d7b2]{position:absolute;background-color:var(--foreground);overflow:hidden;margin-left:-.5px;transition-duration:.2s;z-index:2}.challenge[data-v-4d2947df]{background-color:var(--locked);width:300px;min-height:300px;color:#000;font-size:15px;display:flex;flex-flow:column;align-items:center}.challenge.done[data-v-4d2947df]{background-color:var(--bought)}.challenge button[data-v-4d2947df]{min-height:50px;width:120px;border-radius:var(--border-radius);box-shadow:none!important;background:transparent}.challenge.canStart button[data-v-4d2947df]{cursor:pointer;background-color:var(--layer-color)}.milestone[data-v-f4e8794e]{width:calc(100% - 10px);min-width:120px;padding-left:5px;padding-right:5px;background-color:var(--locked);border-width:4px;border-radius:5px;color:#00000080}.milestone.done[data-v-f4e8794e]{background-color:var(--bought);cursor:default}.milestone[data-v-f4e8794e] .equal-spaced{display:flex;justify-content:center}.milestone[data-v-f4e8794e] .equal-spaced>*{margin:auto}.tabButton[data-v-610a2549]{background-color:transparent;color:var(--foreground);font-size:20px;cursor:pointer;padding:5px 20px;margin:5px;border-radius:5px;border:2px solid;flex-shrink:0;border-color:var(--layer-color)}.tabButton[data-v-610a2549]:hover{transform:scale(1.1);text-shadow:0 0 7px var(--foreground)}:not(.floating)>.tabButton[data-v-610a2549]{height:50px;margin:0;border-left:none;border-right:none;border-top:none;border-bottom-width:4px;border-radius:0;transform:unset}:not(.floating) .tabButton[data-v-610a2549]:not(.active){border-bottom-color:transparent}.tabButton>*[data-v-610a2549]{pointer-events:none}.tab-family-container[data-v-11575f45]{margin:calc(50px + var(--feature-margin)) 20px var(--feature-margin) 20px;position:relative;border:solid 4px;border-color:var(--outline)}.layer-tab>.tab-family-container[data-v-11575f45]:first-child{margin:-4px -11px var(--feature-margin) -11px}.layer-tab>.tab-family-container[data-v-11575f45]:first-child:nth-last-child(3){border-bottom-style:none;border-left-style:none;border-right-style:none;height:calc(100% + 50px)}.modal-body>.tab-family-container[data-v-11575f45]:first-child{margin:calc(10px + var(--feature-margin)) 10px 0 10px;border:none}.tab-family-container[data-v-11575f45]>:nth-child(2){margin-top:20px}.modal-body>.tab-family-container[data-v-11575f45]>:nth-child(2){margin-top:50px}.tab-family-container[data-v-f18896fc][data-v-11575f45]>:last-child{margin-bottom:20px}.tab-buttons-container[data-v-11575f45]{z-index:4}.tab-buttons-container[data-v-11575f45]:not(.floating){border-bottom:solid 4px;border-color:inherit}:not(.layer-tab):not(.modal-body)>.tab-family-container>.tab-buttons-container[data-v-11575f45]:not(.floating){width:calc(100% + 6px);margin-left:-3px}.tab-buttons-container:not(.floating) .tab-buttons[data-v-11575f45]{text-align:left;margin-bottom:-4px}.tab-buttons-container.floating .tab-buttons[data-v-11575f45]{justify-content:center;margin-top:-25px}.tab-buttons[data-v-11575f45]{margin-bottom:24px;display:flex;flex-flow:wrap;z-index:4}.layer-tab>.tab-family-container:first-child:nth-last-child(3)>.tab-buttons-container>.tab-buttons[data-v-11575f45]{padding-right:60px}.tab-buttons[data-v-11575f45]:not(.floating){text-align:left;border-bottom:inherit;border-width:4px;box-sizing:border-box;height:50px}.modal-body .tab-buttons[data-v-11575f45]{width:100%;margin-left:0;margin-right:0;padding-left:0}.showGoBack>.tab-family-container>.tab-buttons-container:not(.floating):first-child .tab-buttons[data-v-11575f45]{padding-left:70px}:not(.showGoBack)>.tab-family-container>.tab-buttons-container:not(.floating):first-child .tab-buttons[data-v-11575f45]{padding-left:0}.minimizable>.tab-buttons-container[data-v-11575f45]:not(.floating):first-child{padding-right:50px}.tab-buttons-container:not(.floating):first-child .tab-buttons[data-v-11575f45]{margin-top:-50px}.tab-buttons-container+*[data-v-11575f45]{margin-top:20px}.upgrade[data-v-7742f590]{min-height:120px;width:120px;font-size:10px}.upgrade>*[data-v-7742f590]{pointer-events:none}.game-over-modal-header[data-v-4a50ce42]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.game-over-modal-header *[data-v-4a50ce42]{margin:0}.game-over-modal-logo[data-v-4a50ce42]{height:4em;width:4em}.game-over-modal-title[data-v-4a50ce42]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.game-over-footer[data-v-4a50ce42]{display:flex;justify-content:flex-end}.game-over-footer button[data-v-4a50ce42]{margin:0 10px}.game-over-modal-discord-link[data-v-4a50ce42]{display:flex;align-items:center}.game-over-modal-discord[data-v-4a50ce42]{margin:0 4px 0 0}.nan-modal-header[data-v-3de07c06]{padding:10px 0;margin-left:10px}.nan-footer[data-v-3de07c06]{display:flex;justify-content:flex-end}.nan-footer button[data-v-3de07c06]{margin:0 10px}.nan-modal-discord-link[data-v-3de07c06]{display:flex;align-items:center}.nan-modal-discord[data-v-3de07c06]{margin:0 4px 0 0}.tpsDisplay[data-v-46a3ed5b]{position:absolute;left:10px;bottom:10px;z-index:100}.low[data-v-46a3ed5b]{color:var(--danger)}.fade-leave-to[data-v-46a3ed5b]{opacity:0}:root{color-scheme:dark}*{transition-duration:.5s;font-family:Roboto Mono,monospace;font-weight:700;margin:auto;text-size-adjust:none}*:focus{outline:none}body{overflow:hidden;transition:none;text-align:center}html,body,#app{min-height:100%;height:100%}h1,h2,h3,b,input{display:inline}button{color:#000}a,.button,.link{display:block;color:var(--link);background:none;border:none;cursor:pointer;text-decoration:none}a:hover,.button:hover,.link:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--link)}.button:disabled{opacity:.5;cursor:not-allowed}.button:disabled:hover{text-shadow:none}ul{list-style-type:none}.Vue-Toastification__toast{margin:unset}.app[data-v-9417972e]{background-color:var(--background);color:var(--foreground);display:flex;flex-flow:column;min-height:100%;height:100%}#modal-root[data-v-9417972e]{position:absolute;min-height:100%;height:100%} diff --git a/assets/index.5e36a771.js b/assets/index.5e36a771.js deleted file mode 100644 index e7767b9..0000000 --- a/assets/index.5e36a771.js +++ /dev/null @@ -1,17 +0,0 @@ -import"./vue.37fee242.js";import{a2 as N,n as pe,y as Yt,u as Mt,H as l,b3 as Ie,ae as E,o as g,a4 as x,a5 as p,r as De,K as Q,x as O,aG as Gn,A as xe,b4 as Ne,ac as d,as as cn,U as K,aC as Tt,av as Ve,aJ as Ft,F as ne,c as A,w as V,b9 as Kt,bs as Ri,au as Be,bu as _t,T as Zt,Y as Bi,ab as C,l as qi,bv as An,aN as ce,a3 as P,O as U,aP as ee,M as W,aK as qe,aI as Le,D as Ze,bn as Li,br as Hn,aM as kt,ap as jt,L as ji,ay as zi,C as En,be as Ui}from"./@vue.7184beb0.js";import{i as Gi}from"./is-plain-object.906d88e8.js";import{c as Wn}from"./nanoevents.1080beb7.js";import{L as Ye}from"./lz-string.f2f3b7cf.js";import{_ as q,C as Hi}from"./@ivanv.350aa563.js";import{Y as Wi}from"./vue-next-select.e991724e.js";import{D as Yi}from"./vuedraggable.d1ae43bb.js";import{p as Ki}from"./vue-textarea-autosize.35804eaf.js";import{s as Zi,u as fn}from"./vue-toastification.80a5fcd9.js";import{A as Ji,u as Xi,E as Vn}from"./@pixi.c5050cb0.js";import{v as Qi,n as er}from"./workbox-window.60401ce8.js";import"./earcut.17d42416.js";import"./sortablejs.bd686609.js";import"./ismobilejs.5c6954b9.js";import"./eventemitter3.dc5195d7.js";import"./url.b1bd21f4.js";import"./querystring.776b9ab3.js";const tr=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerpolicy&&(a.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?a.credentials="include":r.crossorigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}};tr();const nr="modulepreload",Fn={},ir="./",zt=function(t,n){return!n||n.length===0?t():Promise.all(n.map(i=>{if(i=`${ir}${i}`,i in Fn)return;Fn[i]=!0;const r=i.endsWith(".css"),a=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${a}`))return;const o=document.createElement("link");if(o.rel=r?"stylesheet":nr,r||(o.as="script",o.crossOrigin=""),o.href=i,document.head.appendChild(o),r)return new Promise((s,u)=>{o.addEventListener("load",s),o.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},rr="Profectus Demo",ar="A demo project made in Profectus",or="profectus-demo",sr="",lr="",ur="",dr="0.0",cr="Initial Commit",fr=!0,pr=!1,mr=2,gr=!0,vr=null,hr="Logo.png",br=["main","c"],yr=3600,_r=1,kr=!0,wr="base64";var J={title:rr,description:ar,id:or,author:sr,discordName:lr,discordLink:ur,versionNumber:dr,versionTitle:cr,allowGoBack:fr,defaultShowSmall:pr,defaultDecimalsShown:mr,useHeader:gr,banner:vr,logo:hr,initialTabs:br,maxTickLength:yr,offlineLimit:_r,enablePausing:kr,exportEncoding:wr};const tn=17,xr=9e15,Nr=Math.log10(9e15),Sr=1/9e15,Cr=308,$r=-324,Dn=5,Mr=function(){const e=[];for(let n=$r+1;n<=Cr;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),Qe=[2,Math.E,3,4,5,6,7,8,9,10],Tr=[[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.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.18422737399915,1.4066113788546144,1.680911177655277,2.027492094355525,2.4775152854601967,3.080455730250329,3.918234505962507,5.1332705696484595,6.9878696918072905,10]],Ir=[[-1,-.9194161097107025,-.8335625019330468,-.7425599821143978,-.6466611521029437,-.5462617907227869,-.4419033816638769,-.3342645487554494,-.224140440909962,-.11241087890006762,0],[-1,-.90603157029014,-.80786507256596,-.7064666939634,-.60294836853664,-.49849837513117,-.39430303318768,-.29147201034755,-.19097820800866,-.09361896280296,0],[-1,-.9021579584316141,-.8005762598234203,-.6964780623319391,-.5911906810998454,-.486050182576545,-.3823089430815083,-.28106046722897615,-.1831906535795894,-.08935809204418144,0],[-1,-.8917227442365535,-.781258746326964,-.6705130326902455,-.5612813129406509,-.4551067709033134,-.35319256652135966,-.2563741554088552,-.1651412821106526,-.0796919581982668,0],[-1,-.8843387974366064,-.7678744063886243,-.6529563724510552,-.5415870994657841,-.4352842206588936,-.33504449124791424,-.24138853420685147,-.15445285440944467,-.07409659641336663,0],[-1,-.8786709358426346,-.7577735191184886,-.6399546189952064,-.527284921869926,-.4211627631006314,-.3223479611761232,-.23107655627789858,-.1472057700818259,-.07035171210706326,0],[-1,-.8740862815291583,-.7497032990976209,-.6297119746181752,-.5161838335958787,-.41036238255751956,-.31277212146489963,-.2233976621705518,-.1418697367979619,-.06762117662323441,0],[-1,-.8702632331800649,-.7430366914122081,-.6213373075161548,-.5072025698095242,-.40171437727184167,-.30517930701410456,-.21736343968190863,-.137710238299109,-.06550774483471955,0],[-1,-.8670016295947213,-.7373984232432306,-.6143173985094293,-.49973884395492807,-.394584953527678,-.2989649949848695,-.21245647317021688,-.13434688362382652,-.0638072667348083,0],[-1,-.8641642839543857,-.732534623168535,-.6083127477059322,-.4934049257184696,-.3885773075899922,-.29376029055315767,-.2083678561173622,-.13155653399373268,-.062401588652553186,0]],m=function(t){return f.fromValue_noAlloc(t)},F=function(e,t,n){return f.fromComponents(e,t,n)},j=function(t,n,i){return f.fromComponents_noNormalize(t,n,i)},We=function(t,n){const i=n+1,r=Math.ceil(Math.log10(Math.abs(t))),a=Math.round(t*Math.pow(10,i-r))*Math.pow(10,r-i);return parseFloat(a.toFixed(Math.max(i-r,0)))},nn=function(e){return Math.sign(e)*Math.log10(Math.abs(e))},Pr=function(e){if(!isFinite(e))return e;if(e<-50)return e===Math.trunc(e)?Number.NEGATIVE_INFINITY:0;let t=1;for(;e<10;)t=t*e,++e;e-=1;let n=.9189385332046727;n=n+(e+.5)*Math.log(e),n=n-e;const i=e*e;let r=e;return n=n+1/(12*r),r=r*i,n=n+1/(360*r),r=r*i,n=n+1/(1260*r),r=r*i,n=n+1/(1680*r),r=r*i,n=n+1/(1188*r),r=r*i,n=n+691/(360360*r),r=r*i,n=n+7/(1092*r),r=r*i,n=n+3617/(122400*r),Math.exp(n)/t},Yn=.5671432904097838,Rn=function(e,t=1e-10){let n,i;if(!Number.isFinite(e)||e===0)return e;if(e===1)return Yn;e<10?n=0:n=Math.log(e)-Math.log(Math.log(e));for(let r=0;r<100;++r){if(i=(e*Math.exp(-n)+n*n)/(n+1),Math.abs(i-n).5?1:-1;if(Math.random()*20<1)return j(t,0,1);const n=Math.floor(Math.random()*(e+1));let i=n===0?Math.random()*616-308:Math.random()*16;Math.random()>.9&&(i=Math.trunc(i));let r=Math.pow(10,i);return Math.random()>.9&&(r=Math.trunc(r)),F(t,n,r)}static affordGeometricSeries_core(e,t,n,i){const r=t.mul(n.pow(i));return _.floor(e.div(r).mul(n.sub(1)).add(1).log10().div(n.log10()))}static sumGeometricSeries_core(e,t,n,i){return t.mul(n.pow(i)).mul(_.sub(1,n.pow(e))).div(_.sub(1,n))}static affordArithmeticSeries_core(e,t,n,i){const a=t.add(i.mul(n)).sub(n.div(2)),o=a.pow(2);return a.neg().add(o.add(n.mul(e).mul(2)).sqrt()).div(n).floor()}static sumArithmeticSeries_core(e,t,n,i){const r=t.add(i.mul(n));return e.div(2).mul(r.mul(2).plus(e.sub(1).mul(n)))}static efficiencyOfPurchase_core(e,t,n){return e.div(t).add(e.div(n))}normalize(){if(this.sign===0||this.mag===0&&this.layer===0)return this.sign=0,this.mag=0,this.layer=0,this;if(this.layer===0&&this.mag<0&&(this.mag=-this.mag,this.sign=-this.sign),this.layer===0&&this.mag=xr)return this.layer+=1,this.mag=t*Math.log10(e),this;for(;e0;)this.layer-=1,this.layer===0?this.mag=Math.pow(10,this.mag):(this.mag=t*Math.pow(10,e),e=Math.abs(this.mag),t=Math.sign(this.mag));return this.layer===0&&(this.mag<0?(this.mag=-this.mag,this.sign=-this.sign):this.mag===0&&(this.sign=0)),this}fromComponents(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this.normalize(),this}fromComponents_noNormalize(e,t,n){return this.sign=e,this.layer=t,this.mag=n,this}fromMantissaExponent(e,t){return this.layer=1,this.sign=Math.sign(e),e=Math.abs(e),this.mag=t+Math.log10(e),this.normalize(),this}fromMantissaExponent_noNormalize(e,t){return this.fromMantissaExponent(e,t),this}fromDecimal(e){return this.sign=e.sign,this.layer=e.layer,this.mag=e.mag,this}fromNumber(e){return this.mag=Math.abs(e),this.sign=Math.sign(e),this.layer=0,this.normalize(),this}fromString(e){e=e.replace(",","");const t=e.split("^^^");if(t.length===2){const b=parseFloat(t[0]),w=parseFloat(t[1]),S=t[1].split(";");let $=1;if(S.length===2&&($=parseFloat(S[1]),isFinite($)||($=1)),isFinite(b)&&isFinite(w)){const R=_.pentate(b,w,$);return this.sign=R.sign,this.layer=R.layer,this.mag=R.mag,this}}const n=e.split("^^");if(n.length===2){const b=parseFloat(n[0]),w=parseFloat(n[1]),S=n[1].split(";");let $=1;if(S.length===2&&($=parseFloat(S[1]),isFinite($)||($=1)),isFinite(b)&&isFinite(w)){const R=_.tetrate(b,w,$);return this.sign=R.sign,this.layer=R.layer,this.mag=R.mag,this}}const i=e.split("^");if(i.length===2){const b=parseFloat(i[0]),w=parseFloat(i[1]);if(isFinite(b)&&isFinite(w)){const S=_.pow(b,w);return this.sign=S.sign,this.layer=S.layer,this.mag=S.mag,this}}e=e.trim().toLowerCase();let r,a,o=e.split("pt");if(o.length===2){r=10,a=parseFloat(o[0]),o[1]=o[1].replace("(",""),o[1]=o[1].replace(")","");let b=parseFloat(o[1]);if(isFinite(b)||(b=1),isFinite(r)&&isFinite(a)){const w=_.tetrate(r,a,b);return this.sign=w.sign,this.layer=w.layer,this.mag=w.mag,this}}if(o=e.split("p"),o.length===2){r=10,a=parseFloat(o[0]),o[1]=o[1].replace("(",""),o[1]=o[1].replace(")","");let b=parseFloat(o[1]);if(isFinite(b)||(b=1),isFinite(r)&&isFinite(a)){const w=_.tetrate(r,a,b);return this.sign=w.sign,this.layer=w.layer,this.mag=w.mag,this}}const s=e.split("e"),u=s.length-1;if(u===0){const b=parseFloat(e);if(isFinite(b))return this.fromNumber(b)}else if(u===1){const b=parseFloat(e);if(isFinite(b)&&b!==0)return this.fromNumber(b)}const c=e.split("e^");if(c.length===2){this.sign=1,c[0].charAt(0)=="-"&&(this.sign=-1);let b="";for(let w=0;w=43&&S<=57||S===101)b+=c[1].charAt(w);else return this.layer=parseFloat(b),this.mag=parseFloat(c[1].substr(w+1)),this.normalize(),this}}if(u<1)return this.sign=0,this.layer=0,this.mag=0,this;const h=parseFloat(s[0]);if(h===0)return this.sign=0,this.layer=0,this.mag=0,this;let v=parseFloat(s[s.length-1]);if(u>=2){const b=parseFloat(s[s.length-2]);isFinite(b)&&(v*=Math.sign(b),v+=nn(b))}if(!isFinite(h))this.sign=s[0]==="-"?-1:1,this.layer=u,this.mag=v;else if(u===1)this.sign=Math.sign(h),this.layer=1,this.mag=v+Math.log10(Math.abs(h));else if(this.sign=Math.sign(h),this.layer=u,u===2){const b=_.mul(F(1,2,v),m(h));return this.sign=b.sign,this.layer=b.layer,this.mag=b.mag,this}else this.mag=v;return this.normalize(),this}fromValue(e){return e instanceof _||e!=null&&typeof e=="object"&&"sign"in e&&"mag"in e&&"layer"in e?this.fromDecimal(e):typeof e=="number"?this.fromNumber(e):typeof e=="string"?this.fromString(e):(this.sign=0,this.layer=0,this.mag=0,this)}toNumber(){return Number.isFinite(this.layer)?this.layer===0?this.sign*this.mag:this.layer===1?this.sign*Math.pow(10,this.mag):this.mag>0?this.sign>0?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:0:Number.NaN}mantissaWithDecimalPlaces(e){return isNaN(this.m)?Number.NaN:this.m===0?0:We(this.m,e)}magnitudeWithDecimalPlaces(e){return isNaN(this.mag)?Number.NaN:this.mag===0?0:We(this.mag,e)}toString(){return isNaN(this.layer)||isNaN(this.sign)||isNaN(this.mag)?"NaN":this.mag===Number.POSITIVE_INFINITY||this.layer===Number.POSITIVE_INFINITY?this.sign===1?"Infinity":"-Infinity":this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toString():this.m+"e"+this.e:this.layer===1?this.m+"e"+this.e:this.layer<=Dn?(this.sign===-1?"-":"")+"e".repeat(this.layer)+this.mag:(this.sign===-1?"-":"")+"(e^"+this.layer+")"+this.mag}toExponential(e){return this.layer===0?(this.sign*this.mag).toExponential(e):this.toStringWithDecimalPlaces(e)}toFixed(e){return this.layer===0?(this.sign*this.mag).toFixed(e):this.toStringWithDecimalPlaces(e)}toPrecision(e){return this.e<=-7?this.toExponential(e-1):e>this.e?this.toFixed(e-this.exponent-1):this.toExponential(e-1)}valueOf(){return this.toString()}toJSON(){return this.toString()}toStringWithDecimalPlaces(e){return this.layer===0?this.mag<1e21&&this.mag>1e-7||this.mag===0?(this.sign*this.mag).toFixed(e):We(this.m,e)+"e"+We(this.e,e):this.layer===1?We(this.m,e)+"e"+We(this.e,e):this.layer<=Dn?(this.sign===-1?"-":"")+"e".repeat(this.layer)+We(this.mag,e):(this.sign===-1?"-":"")+"(e^"+this.layer+")"+We(this.mag,e)}abs(){return j(this.sign===0?0:1,this.layer,this.mag)}neg(){return j(-this.sign,this.layer,this.mag)}negate(){return this.neg()}negated(){return this.neg()}sgn(){return this.sign}round(){return this.mag<0?_.dZero:this.layer===0?F(this.sign,0,Math.round(this.mag)):this}floor(){return this.mag<0?_.dZero:this.layer===0?F(this.sign,0,Math.floor(this.mag)):this}ceil(){return this.mag<0?_.dZero:this.layer===0?F(this.sign,0,Math.ceil(this.mag)):this}trunc(){return this.mag<0?_.dZero:this.layer===0?F(this.sign,0,Math.trunc(this.mag)):this}add(e){const t=m(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer)||this.sign===0)return t;if(t.sign===0)return this;if(this.sign===-t.sign&&this.layer===t.layer&&this.mag===t.mag)return j(0,0,0);let n,i;if(this.layer>=2||t.layer>=2)return this.maxabs(t);if(_.cmpabs(this,t)>0?(n=this,i=t):(n=t,i=this),n.layer===0&&i.layer===0)return m(n.sign*n.mag+i.sign*i.mag);const r=n.layer*Math.sign(n.mag),a=i.layer*Math.sign(i.mag);if(r-a>=2)return n;if(r===0&&a===-1){if(Math.abs(i.mag-Math.log10(n.mag))>tn)return n;{const o=Math.pow(10,Math.log10(n.mag)-i.mag),s=i.sign+n.sign*o;return F(Math.sign(s),1,i.mag+Math.log10(Math.abs(s)))}}if(r===1&&a===0){if(Math.abs(n.mag-Math.log10(i.mag))>tn)return n;{const o=Math.pow(10,n.mag-Math.log10(i.mag)),s=i.sign+n.sign*o;return F(Math.sign(s),1,Math.log10(i.mag)+Math.log10(Math.abs(s)))}}if(Math.abs(n.mag-i.mag)>tn)return n;{const o=Math.pow(10,n.mag-i.mag),s=i.sign+n.sign*o;return F(Math.sign(s),1,i.mag+Math.log10(Math.abs(s)))}}plus(e){return this.add(e)}sub(e){return this.add(m(e).neg())}subtract(e){return this.sub(e)}minus(e){return this.sub(e)}mul(e){const t=m(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer))return t;if(this.sign===0||t.sign===0)return j(0,0,0);if(this.layer===t.layer&&this.mag===-t.mag)return j(this.sign*t.sign,0,1);let n,i;if(this.layer>t.layer||this.layer==t.layer&&Math.abs(this.mag)>Math.abs(t.mag)?(n=this,i=t):(n=t,i=this),n.layer===0&&i.layer===0)return m(n.sign*i.sign*n.mag*i.mag);if(n.layer>=3||n.layer-i.layer>=2)return F(n.sign*i.sign,n.layer,n.mag);if(n.layer===1&&i.layer===0)return F(n.sign*i.sign,1,n.mag+Math.log10(i.mag));if(n.layer===1&&i.layer===1)return F(n.sign*i.sign,1,n.mag+i.mag);if(n.layer===2&&i.layer===1){const r=F(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(F(Math.sign(i.mag),i.layer-1,Math.abs(i.mag)));return F(n.sign*i.sign,r.layer+1,r.sign*r.mag)}if(n.layer===2&&i.layer===2){const r=F(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(F(Math.sign(i.mag),i.layer-1,Math.abs(i.mag)));return F(n.sign*i.sign,r.layer+1,r.sign*r.mag)}throw Error("Bad arguments to mul: "+this+", "+e)}multiply(e){return this.mul(e)}times(e){return this.mul(e)}div(e){const t=m(e);return this.mul(t.recip())}divide(e){return this.div(e)}divideBy(e){return this.div(e)}dividedBy(e){return this.div(e)}recip(){return this.mag===0?_.dNaN:this.layer===0?F(this.sign,0,1/this.mag):F(this.sign,this.layer,-this.mag)}reciprocal(){return this.recip()}reciprocate(){return this.recip()}cmp(e){const t=m(e);return this.sign>t.sign?1:this.sign0?this.layer:-this.layer,i=t.mag>0?t.layer:-t.layer;return n>i?1:nt.mag?1:this.mag0?t:this}clamp(e,t){return this.max(e).min(t)}clampMin(e){return this.max(e)}clampMax(e){return this.min(e)}cmp_tolerance(e,t){const n=m(e);return this.eq_tolerance(n,t)?0:this.cmp(n)}compare_tolerance(e,t){return this.cmp_tolerance(e,t)}eq_tolerance(e,t){const n=m(e);if(t==null&&(t=1e-7),this.sign!==n.sign||Math.abs(this.layer-n.layer)>1)return!1;let i=this.mag,r=n.mag;return this.layer>n.layer&&(r=nn(r)),this.layer0?F(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):F(1,0,Math.log10(this.mag))}log10(){return this.sign<=0?_.dNaN:this.layer>0?F(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):F(this.sign,0,Math.log10(this.mag))}log(e){return e=m(e),this.sign<=0||e.sign<=0||e.sign===1&&e.layer===0&&e.mag===1?_.dNaN:this.layer===0&&e.layer===0?F(this.sign,0,Math.log(this.mag)/Math.log(e.mag)):_.div(this.log10(),e.log10())}log2(){return this.sign<=0?_.dNaN:this.layer===0?F(this.sign,0,Math.log2(this.mag)):this.layer===1?F(Math.sign(this.mag),0,Math.abs(this.mag)*3.321928094887362):this.layer===2?F(Math.sign(this.mag),1,Math.abs(this.mag)+.5213902276543247):F(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}ln(){return this.sign<=0?_.dNaN:this.layer===0?F(this.sign,0,Math.log(this.mag)):this.layer===1?F(Math.sign(this.mag),0,Math.abs(this.mag)*2.302585092994046):this.layer===2?F(Math.sign(this.mag),1,Math.abs(this.mag)+.36221568869946325):F(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}logarithm(e){return this.log(e)}pow(e){const t=m(e),n=this,i=t;if(n.sign===0)return i.eq(0)?j(1,0,1):n;if(n.sign===1&&n.layer===0&&n.mag===1)return n;if(i.sign===0)return j(1,0,1);if(i.sign===1&&i.layer===0&&i.mag===1)return n;const r=n.absLog10().mul(i).pow10();return this.sign===-1?Math.abs(i.toNumber()%2)%2===1?r.neg():Math.abs(i.toNumber()%2)%2===0?r:_.dNaN:r}pow10(){if(!Number.isFinite(this.layer)||!Number.isFinite(this.mag))return _.dNaN;let e=this;if(e.layer===0){const t=Math.pow(10,e.sign*e.mag);if(Number.isFinite(t)&&Math.abs(t)>=.1)return F(1,0,t);if(e.sign===0)return _.dOne;e=j(e.sign,e.layer+1,Math.log10(e.mag))}return e.sign>0&&e.mag>=0?F(e.sign,e.layer+1,e.mag):e.sign<0&&e.mag>=0?F(-e.sign,e.layer+1,-e.mag):_.dOne}pow_base(e){return m(e).pow(this)}root(e){const t=m(e);return this.pow(t.recip())}factorial(){return this.mag<0?this.add(1).gamma():this.layer===0?this.add(1).gamma():this.layer===1?_.exp(_.mul(this,_.ln(this).sub(1))):_.exp(this)}gamma(){if(this.mag<0)return this.recip();if(this.layer===0){if(this.lt(j(1,0,24)))return m(Pr(this.sign*this.mag));const e=this.mag-1;let t=.9189385332046727;t=t+(e+.5)*Math.log(e),t=t-e;const n=e*e;let i=e,r=12*i,a=1/r,o=t+a;if(o===t||(t=o,i=i*n,r=360*i,a=1/r,o=t-a,o===t))return _.exp(t);t=o,i=i*n,r=1260*i;let s=1/r;return t=t+s,i=i*n,r=1680*i,s=1/r,t=t-s,_.exp(t)}else return this.layer===1?_.exp(_.mul(this,_.ln(this).sub(1))):_.exp(this)}lngamma(){return this.gamma().ln()}exp(){return this.mag<0?_.dOne:this.layer===0&&this.mag<=709.7?m(Math.exp(this.sign*this.mag)):this.layer===0?F(1,1,this.sign*Math.log10(Math.E)*this.mag):this.layer===1?F(1,2,this.sign*(Math.log10(.4342944819032518)+this.mag)):F(1,this.layer+1,this.sign*this.mag)}sqr(){return this.pow(2)}sqrt(){if(this.layer===0)return m(Math.sqrt(this.sign*this.mag));if(this.layer===1)return F(1,2,Math.log10(this.mag)-.3010299956639812);{const e=_.div(j(this.sign,this.layer-1,this.mag),j(1,0,2));return e.layer+=1,e.normalize(),e}}cube(){return this.pow(3)}cbrt(){return this.pow(1/3)}tetrate(e=2,t=j(1,0,1)){if(e===1)return _.pow(this,t);if(e===0)return new _(t);if(this.eq(_.dOne))return _.dOne;if(this.eq(-1))return _.pow(this,t);if(e===Number.POSITIVE_INFINITY){const r=this.toNumber();if(r<=1.444667861009766&&r>=.06598803584531254){if(r>1.444667861009099)return new _(Math.E);const a=_.ln(this).neg();return a.lambertw().div(a)}else return r>1.444667861009766?new _(Number.POSITIVE_INFINITY):_.dNaN}if(this.eq(_.dZero)){let r=Math.abs((e+1)%2);return r>1&&(r=2-r),new _(r)}if(e<0)return _.iteratedlog(t,this,-e);t=m(t);const n=e;e=Math.trunc(e);const i=n-e;if(this.gt(_.dZero)&&this.lte(1.444667861009766)){e=Math.min(1e4,e);for(let r=0;r3)return j(t.sign,t.layer+(e-r-1),t.mag);if(r>1e4)return t}return t}iteratedexp(e=2,t=j(1,0,1)){return this.tetrate(e,t)}iteratedlog(e=10,t=1){if(t<0)return _.tetrate(e,-t,this);e=m(e);let n=m(this);const i=t;t=Math.trunc(t);const r=i-t;if(n.layer-e.layer>3){const a=Math.min(t,n.layer-e.layer-3);t-=a,n.layer-=a}for(let a=0;a1e4)return n}return r>0&&r<1&&(e.eq(10)?n=n.layeradd10(-r):n=n.layeradd(-r,e)),n}slog(e=10){if(e=m(e),e.lte(_.dZero)||e.eq(_.dOne))return _.dNaN;if(e.lt(_.dOne))return this.eq(_.dOne)?_.dZero:this.eq(_.dZero)?_.dNegOne:_.dNaN;if(this.mag<0||this.eq(_.dZero))return _.dNegOne;let t=0,n=m(this);if(n.layer-e.layer>3){const i=n.layer-e.layer-3;t+=i,n.layer-=i}for(let i=0;i<100;++i)if(n.lt(_.dZero))n=_.pow(e,n),t-=1;else{if(n.lte(_.dOne))return m(t+_.slog_critical(e.toNumber(),n.toNumber()));t+=1,n=_.log(n,e)}return m(t)}static slog_critical(e,t){return e>10?t-1:_.critical_section(e,t,Ir)}static tetrate_critical(e,t){return _.critical_section(e,t,Tr)}static critical_section(e,t,n){t*=10,t<0&&(t=0),t>10&&(t=10),e<2&&(e=2),e>10&&(e=10);let i=0,r=0;for(let s=0;se){const u=(e-Qe[s])/(Qe[s+1]-Qe[s]);i=n[s][Math.floor(t)]*(1-u)+n[s+1][Math.floor(t)]*u,r=n[s][Math.ceil(t)]*(1-u)+n[s+1][Math.ceil(t)]*u;break}const a=t-Math.floor(t);return i*(1-a)+r*a}layeradd10(e){e=_.fromValue_noAlloc(e).toNumber();const t=m(this);if(e>=1){t.mag<0&&t.layer>0?(t.sign=0,t.mag=0,t.layer=0):t.sign===-1&&t.layer==0&&(t.sign=1,t.mag=-t.mag);const n=Math.trunc(e);e-=n,t.layer+=n}if(e<=-1){const n=Math.trunc(e);if(e-=n,t.layer+=n,t.layer<0)for(let i=0;i<100;++i){if(t.layer++,t.mag=Math.log10(t.mag),!isFinite(t.mag))return t.sign===0&&(t.sign=1),t.layer<0&&(t.layer=0),t.normalize();if(t.layer>=0)break}}for(;t.layer<0;)t.layer++,t.mag=Math.log10(t.mag);return t.sign===0&&(t.sign=1,t.mag===0&&t.layer>=1&&(t.layer-=1,t.mag=1)),t.normalize(),e!==0?t.layeradd(e,10):t}layeradd(e,t){const i=this.slog(t).toNumber()+e;return i>=0?_.tetrate(t,i):Number.isFinite(i)?i>=-1?_.log(_.tetrate(t,i+1),t):_.log(_.log(_.tetrate(t,i+2),t),t):_.dNaN}lambertw(){if(this.lt(-.3678794411710499))throw Error("lambertw is unimplemented for results less than -1, sorry!");if(this.mag<0)return m(Rn(this.toNumber()));if(this.layer===0)return m(Rn(this.sign*this.mag));if(this.layer===1)return Bn(this);if(this.layer===2)return Bn(this);if(this.layer>=3)return j(this.sign,this.layer-1,this.mag);throw"Unhandled behavior in lambertw()"}ssqrt(){if(this.sign==1&&this.layer>=3)return j(this.sign,this.layer-1,this.mag);const e=this.ln();return e.div(e.lambertw())}pentate(e=2,t=j(1,0,1)){t=m(t);const n=e;e=Math.trunc(e);const i=n-e;i!==0&&(t.eq(_.dOne)?(++e,t=new _(i)):this.eq(10)?t=t.layeradd10(i):t=t.layeradd(i,this));for(let r=0;r10)return t}return t}sin(){return this.mag<0?this:this.layer===0?m(Math.sin(this.sign*this.mag)):j(0,0,0)}cos(){return this.mag<0?_.dOne:this.layer===0?m(Math.cos(this.sign*this.mag)):j(0,0,0)}tan(){return this.mag<0?this:this.layer===0?m(Math.tan(this.sign*this.mag)):j(0,0,0)}asin(){return this.mag<0?this:this.layer===0?m(Math.asin(this.sign*this.mag)):j(Number.NaN,Number.NaN,Number.NaN)}acos(){return this.mag<0?m(Math.acos(this.toNumber())):this.layer===0?m(Math.acos(this.sign*this.mag)):j(Number.NaN,Number.NaN,Number.NaN)}atan(){return this.mag<0?this:this.layer===0?m(Math.atan(this.sign*this.mag)):m(Math.atan(this.sign*(1/0)))}sinh(){return this.exp().sub(this.negate().exp()).div(2)}cosh(){return this.exp().add(this.negate().exp()).div(2)}tanh(){return this.sinh().div(this.cosh())}asinh(){return _.ln(this.add(this.sqr().add(1).sqrt()))}acosh(){return _.ln(this.add(this.sqr().sub(1).sqrt()))}atanh(){return this.abs().gte(1)?j(Number.NaN,Number.NaN,Number.NaN):_.ln(this.add(1).div(m(1).sub(this))).div(2)}ascensionPenalty(e){return e===0?this:this.root(_.pow(10,e))}egg(){return this.add(9)}lessThanOrEqualTo(e){return this.cmp(e)<1}lessThan(e){return this.cmp(e)<0}greaterThanOrEqualTo(e){return this.cmp(e)>-1}greaterThan(e){return this.cmp(e)>0}};let f=_;f.dZero=j(0,0,0);f.dOne=j(1,0,1);f.dNegOne=j(-1,0,1);f.dTwo=j(1,0,2);f.dTen=j(1,0,10);f.dNaN=j(Number.NaN,Number.NaN,Number.NaN);f.dInf=j(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);f.dNegInf=j(-1,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);f.dNumberMax=F(1,0,Number.MAX_VALUE);f.dNumberMin=F(1,0,Number.MIN_VALUE);const Or=new f(1);function vt(e,t,n=!0){let i=f.log10(e).floor(),r=f.div(e,f.pow(10,i));r.toStringWithDecimalPlaces(t)==="10"&&(r=Or,i=i.add(1));const a=i.gte(1e9)?$e(i,Math.max(Math.max(t,3),J.defaultDecimalsShown)):i.gte(1e4)?Ut(i,0):i.toStringWithDecimalPlaces(0);return n?r.toStringWithDecimalPlaces(t)+"e"+a:"e"+a}function Ut(e,t){if(e==null)return"NaN";if(e=new f(e),e.mag<.001)return 0 .toFixed(t);const i=e.toStringWithDecimalPlaces(t).split(".");return i[0]=i[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),i.length==1?i[0]:i[0]+"."+i[1]}function Kn(e,t){return e==null?"NaN":(e=new f(e),e.mag<1e-4?0 .toFixed(t):(e.mag<.1&&t!==0&&(t=Math.max(Math.max(t,e.log10().negate().ceil().toNumber()),J.defaultDecimalsShown)),e.toStringWithDecimalPlaces(t)))}const Ar=new f("eeee1000"),Er=new f("e100000"),qn=new f("e1000"),Zn=new f(1e9),Vr=new f(1e6),Fr=new f(1e3),Dr=new f(.98),Rr=new f(.001),Jn=new f(0);function $e(e,t,n){if(t==null&&(t=J.defaultDecimalsShown),n=n!=null?n:J.defaultShowSmall,e=new f(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if(e.sign<0)return"-"+$e(e.neg(),t);if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(Ar)){const i=e.slog();return i.gte(Vr)?"F"+$e(i.floor()):f.pow(10,i.sub(i.floor())).toStringWithDecimalPlaces(3)+"F"+Ut(i.floor(),0)}else{if(e.gte(Er))return vt(e,0,!1);if(e.gte(qn))return vt(e,0);if(e.gte(Zn))return vt(e,t);if(e.gte(Fr))return Ut(e,0);if(e.gte(Rr)||!n)return Kn(e,t);if(e.eq(Jn))return 0 .toFixed(t)}return e=Qn(e),e.lt(qn)?vt(e,t).replace(/([^(?:e|F)]*)$/,"-$1"):$e(e,t)+"\u207B\xB9"}function Ce(e){return e=new f(e),e.sign<0?"-"+Ce(e.neg()):e.gte(Zn)||e.lte(Dr)&&!e.eq(Jn)?$e(e):$e(e,0)}function Xn(e){return f.lt(e,0)?"-"+Xn(f.neg(e)):f.gt(e,2**51)?$e(f.div(e,31536e3))+"y":(e=new f(e).toNumber(),e<60?$e(e)+"s":e<3600?Ce(Math.floor(e/60))+"m "+$e(e%60)+"s":e<86400?Ce(Math.floor(e/3600))+"h "+Ce(Math.floor(e/60)%60)+"m "+Ce(e%60)+"s":e<31536e3?Ce(Math.floor(e/84600)%365)+"d "+Ce(Math.floor(e/3600)%24)+"h "+Ce(Math.floor(e/60)%60)+"m":Ce(Math.floor(e/31536e3))+"y "+Ce(Math.floor(e/84600)%365)+"d "+Ce(Math.floor(e/3600)%24)+"h")}function Br(e,t,n){e=new f(e);let i=e.toStringWithDecimalPlaces(t);return new f(i).gte(n)&&(i=f.sub(n,Math.pow(.1,t)).toStringWithDecimalPlaces(t)),i}function qr(e,t){return $e(e,t,!0)}function Qn(e){let t=f.log10(e).ceil();const n=f.div(e,f.pow(10,t));return t=t.neg(),e=new f(10).pow(t).times(n),e}var Lr=Object.freeze(Object.defineProperty({__proto__:null,default:f,exponentialFormat:vt,commaFormat:Ut,regularFormat:Kn,format:$e,formatWhole:Ce,formatTime:Xn,toPlaces:Br,formatSmall:qr,invertOOM:Qn},Symbol.toStringTag,{value:"Module"}));const{exponentialFormat:jr,commaFormat:zr,regularFormat:Ur,format:se,formatWhole:ve,formatTime:Jt,toPlaces:Gr,formatSmall:Hr,invertOOM:Wr}=Lr;window.Decimal=f;window.exponentialFormat=jr;window.commaFormat=zr;window.regularFormat=Ur;window.format=se;window.formatWhole=ve;window.formatTime=Jt;window.toPlaces=Gr;window.formatSmall=Hr;window.invertOOM=Wr;function ei(e){let t=e.replace(/([A-Z])/g," $1");return t=t.charAt(0).toUpperCase()+t.slice(1),t}function tt(e){return typeof e=="function"}var X=(e=>(e.Up="Up",e.Down="Down",e.Left="Left",e.Right="Right",e.Default="Up",e))(X||{});const wt=Symbol("DoNotCache");function y(e,t){const n=e[t];tt(n)&&n.length===0&&!n[wt]?e[t]=N(n.bind(e)):tt(n)&&(e[t]=n.bind(e),e[t][wt]=!0)}function Me(e){return tt(e)&&!e[wt]&&(e=N(e)),e}const de=Symbol("Component"),me=Symbol("GatherProps");let Yr=0;function he(e="feature-"){return e+Yr++}var B=(e=>(e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.None=2]="None",e))(B||{});function L(e){return e[wt]=!0,e}function gt(e,t=2){return e?0:t}function z(e,t,n){e[t]===void 0&&n!=null&&(e[t]=n)}function ti(e,...t){const n=[],i=r=>{Object.keys(r).forEach(a=>{const o=r[a];o&&typeof o=="object"&&(t.includes(o.type)?n.push(o):!(o instanceof f)&&!pe(o)&&i(o))})};return i(e),n}const et={variables:{"--foreground":"#dfdfdf","--background":"#0f0f0f","--feature-foreground":"#0f0f0f","--tooltip-background":"rgba(0, 0, 0, 0.75)","--raised-background":"#0f0f0f","--points":"#ffffff","--locked":"#bf8f8f","--highlighted":"#333","--bought":"#77bf5f","--danger":"rgb(220, 53, 69)","--link":"#02f2f2","--outline":"#dfdfdf","--accent1":"#627a82","--accent2":"#658262","--accent3":"#7c6282","--border-radius":"15px","--modal-border":"solid 2px var(--color)","--feature-margin":"0px"},floatingTabs:!0,mergeAdjacent:!0,showPin:!0};var pn=(e=>(e.Classic="classic",e.Paper="paper",e.Nordic="nordic",e.Aqua="aqua",e))(pn||{}),ze={classic:et,paper:{...et,variables:{...et.variables,"--background":"#2a323d","--feature-foreground":"#000","--raised-background":"#333c4a","--locked":"#3a3e45","--bought":"#5C8A58","--outline":"#333c4a","--border-radius":"4px","--modal-border":"","--feature-margin":"5px"},floatingTabs:!1},nordic:{...et,variables:{...et.variables,"--foreground":"#D8DEE9","--background":"#2E3440","--feature-foreground":"#000","--raised-background":"#3B4252","--points":"#E5E9F0","--locked":"#4c566a","--highlighted":"#434c5e","--bought":"#8FBCBB","--danger":"#D08770","--link":"#88C0D0","--outline":"#3B4252","--accent1":"#B48EAD","--accent2":"#A3BE8C","--accent3":"#EBCB8B","--border-radius":"4px","--modal-border":"solid 2px #3B4252","--feature-margin":"5px"},floatingTabs:!1},aqua:{...et,variables:{...et.variables,"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"}}};const fe=Symbol("ProxyState"),st=Symbol("ProxyPath");function le(e,t={}){const n=t;let i=!1;function r(){return i||(Object.assign(n,e(n)),i=!0),n}return new Proxy(n,{get(a,o){return o===fe?r():r()[o]},set(a,o,s){return r()[o]=s,!0},has(a,o){return o===fe?!0:Reflect.has(r(),o)},ownKeys(){return Reflect.ownKeys(r())},getOwnPropertyDescriptor(a,o){return i||(Object.assign(n,e(n)),i=!0),Object.getOwnPropertyDescriptor(a,o)}})}var ie=window.state=Yt({lastTenTicks:[],hasNaN:!1,NaNPath:[]});const ni=Mt({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{}});function ii(e){return JSON.stringify(e,(t,n)=>l(n))}const ri={get(e,t){var i;if(t===fe||t===st)return e[t];const n=e[fe][t];if(t!=="value"&&(Gi(n)||Array.isArray(n))){if(n!==((i=e[t])==null?void 0:i[fe])){const r=[...e[st],t];e[t]=new Proxy({[fe]:n,[st]:r},ri)}return e[t]}return n},set(e,t,n,i){if(!ie.hasNaN&&(typeof n=="number"&&isNaN(n)||n instanceof f&&(isNaN(n.sign)||isNaN(n.layer)||isNaN(n.mag)))){const r=e[fe][t];if(!(typeof r=="number"&&isNaN(r)||r instanceof f&&(isNaN(r.sign)||isNaN(r.layer)||isNaN(r.mag))))throw ni.autosave=!1,ie.hasNaN=!0,ie.NaNPath=[...e[st],t],ie.NaNReceiver=i,console.error("Attempted to set NaN value",[...e[st],t],e[fe]),"Attempted to set NaN value. See above for details"}return e[fe][t]=n,!0},ownKeys(e){return Reflect.ownKeys(e[fe])},has(e,t){return Reflect.has(e[fe],t)},getOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e[fe],t)}};var T=window.player=new Proxy({[fe]:ni,[st]:["player"]},ri);const ge=Wn();let lt=null,ht=null;function Gt(){const e=Date.now();let t=(e-T.time)/1e3;T.time=e;const n=t;if(ie.lastTenTicks.push(n),ie.lastTenTicks.length>10&&(ie.lastTenTicks=ie.lastTenTicks.slice(1)),!((ht==null?void 0:ht.value)&&!T.keepGoing)&&!ie.hasNaN&&(t=Math.max(t,0),T.devSpeed!==0)){if(T.offlineTime!=null){if(f.gt(T.offlineTime,J.offlineLimit*3600)&&(T.offlineTime=J.offlineLimit*3600),f.gt(T.offlineTime,0)&&T.devSpeed!==0){const i=Math.max(T.offlineTime/10,t);T.offlineTime=T.offlineTime-i,t+=i}else T.devSpeed===0&&(T.offlineTime+=t);(!T.offlineProd||f.lt(T.offlineTime,0))&&(T.offlineTime=null)}t=Math.min(t,J.maxTickLength),T.devSpeed!=null&&(t*=T.devSpeed),Number.isFinite(t)||(t=1e308),!f.eq(t,0)&&(T.timePlayed+=t,Number.isFinite(T.timePlayed)||(T.timePlayed=1e308),ge.emit("update",t,n),Z.unthrottled?(requestAnimationFrame(Gt),lt!=null&&(clearInterval(lt),lt=null)):lt==null&&(lt=setInterval(Gt,50)))}}async function Kr(){ht=(await zt(()=>Promise.resolve().then(function(){return Ai}),void 0)).hasWon,Ie(ht,e=>{e&&ge.emit("gameWon")}),Z.unthrottled?requestAnimationFrame(Gt):lt=setInterval(Gt,50)}var Zr=Object.freeze(Object.defineProperty({__proto__:null,globalBus:ge,startGameLoop:Kr},Symbol.toStringTag,{value:"Module"}));function ai(e={}){return Object.assign({id:`${J.id}-0`,name:"Default Save",tabs:J.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:0,timePlayed:0,keepGoing:!1,modID:J.id,modVersion:J.versionNumber,layers:{}},e)}function Ae(e){const t=Ye.compressToUTF16(ii(e!=null?e:T[fe]));return localStorage.setItem((e!=null?e:T[fe]).id,t),t}async function Jr(){Qr();try{let e=localStorage.getItem(Z.active);if(e==null){await nt(ut());return}if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Ye.decompressFromUTF16(e);else throw"Unable to determine save encoding";const t=JSON.parse(e);if(t.modID!==J.id){await nt(ut());return}t.id=Z.active,await nt(t)}catch(e){console.error(`Failed to load save. Falling back to new save. -`,e),await nt(ut())}}function ut(){const e=qt(),t=ai({id:e});return Ae(t),Z.saves.push(e),t}function qt(){let e,t=0;do e=`${J.id}-${t++}`;while(localStorage.getItem(e));return e}async function nt(e){console.info("Loading save",e);const{layers:t,removeLayer:n,addLayer:i}=await zt(()=>Promise.resolve().then(function(){return ya}),void 0),{fixOldSave:r,getInitialLayers:a}=await zt(()=>Promise.resolve().then(function(){return Ai}),void 0);for(const o in t){const s=t[o];s&&n(s)}a(e).forEach(o=>i(o,e)),e=ai(e),e.offlineProd&&e.time&&(e.offlineTime==null&&(e.offlineTime=0),e.offlineTime+=(Date.now()-e.time)/1e3),e.time=Date.now(),e.modVersion!==J.versionNumber&&r(e.modVersion,e),Object.assign(T,e),Z.active=T.id,ge.emit("onLoad")}setInterval(()=>{T.autosave&&Ae()},1e3);window.onbeforeunload=()=>{T.autosave&&Ae()};window.save=Ae;const Xr=window.hardReset=async()=>{await nt(ut())},xt=Mt({active:"",saves:[],showTPS:!0,theme:pn.Nordic,unthrottled:!1});Ie(xt,e=>{const t=Ye.compressToUTF16(JSON.stringify(e));localStorage.setItem(J.id,t)},{deep:!0});var Z=window.settings=xt;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:pn.Nordic};ge.emit("loadSettings",e),Object.assign(xt,e),Xr()};function Qr(){try{let e=localStorage.getItem(J.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=Ye.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(xt,t)}ge.emit("loadSettings",xt)}catch{}}const oi=Mt([]);function si(e){oi.push(e)}const li=Mt([]);function ea(e){li.push(e)}const ta=Mt([]),na={class:"table"},Lt=E({__name:"Column",setup(e){const t=N(()=>ze[Z.theme].mergeAdjacent);return(n,i)=>(g(),x("div",na,[p("div",{class:Q(["col",{mergeAdjacent:l(t)}])},[De(n.$slots,"default")],2)]))}}),ia={class:"table"},bt=E({__name:"Row",setup(e){const t=N(()=>ze[Z.theme].mergeAdjacent);return(n,i)=>(g(),x("div",ia,[p("div",{class:Q(["row",{mergeAdjacent:l(t)}])},[De(n.$slots,"default")],2)]))}});function ui(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!cn(e)}function D(e,t="span"){return typeof e=="function"?E({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}`),E({template:e})):E({render:()=>({})}):e}function oe(e){if(Te(e))return typeof e=="function"?e():D(e);const t=e[de];return d(t,e[me](),null)}function Pe(...e){let t;return d(bt,null,ui(t=e.map(oe))?t:{default:()=>[t]})}function ra(...e){let t;return d(Lt,null,ui(t=e.map(oe))?t:{default:()=>[t]})}function Re(e){if(Te(e))return typeof e=="function"?e():typeof e=="string"?d(K,null,[e]):d(e,null,null);const t=e[de];return d(t,e[me](),null)}function Te(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[wt]===!0}function mn(e,t){const n=O(null),i=O(void 0);function r(s){n.value||(n.value=setInterval(o,250)),i.value=s}function a(){n.value&&(clearInterval(n.value),n.value=null)}function o(){t&&t.value?t.value():e&&e.value&&e.value(i.value)}return Gn(a),{start:r,stop:a,handleHolding:o}}function ct(e,t="div"){const n=xe();return Ne(()=>{n.value=D(ae(e),t)}),n}function it(e,t="div"){const n=xe(null);return Ne(()=>{const i=ae(e);n.value=i==null?null:D(i,t)}),n}function aa(e){return N(()=>ae(e))}function ae(e){return l(l(e))}function k(...e){return e.includes(Object)||e.push(Object),e}const oa=E({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var h;const n=O({}),i=new ResizeObserver(s),r=O(null);Tt(()=>{const v=r.value;v!=null&&i.observe(v)});let a=!0,o=O((h=r.value)==null?void 0:h.getBoundingClientRect());function s(){r.value!=null&&a&&(a=!1,Ve(()=>{var v;o.value=(v=r.value)==null?void 0:v.getBoundingClientRect(),Object.values(n.value).filter(b=>b).forEach(b=>b.rect=b.element.getBoundingClientRect()),t("updateNodes",n.value),a=!0}))}document.fonts.ready.then(s);const u={attributes:!1,childList:!0,subtree:!1};Ft(gn,(v,b)=>{const w=new MutationObserver(()=>c(v));w.observe(b,u),n.value[v]={element:b,observer:w,rect:b.getBoundingClientRect()},t("updateNodes",n.value),Ve(()=>c(v))}),Ft(vn,v=>{var b;(b=n.value[v])==null||b.observer.disconnect(),n.value[v]=void 0,t("updateNodes",n.value)}),Ft(hn,n),Ft(bn,o);function c(v){const b=n.value[v];b!=null&&(b.rect=b.element.getBoundingClientRect(),t("updateNodes",n.value))}return(v,b)=>(g(),x(K,null,[De(v.$slots,"default",{},void 0,!0),p("div",{ref_key:"resizeListener",ref:r,class:"resize-listener"},null,512)],64))}});var di=q(oa,[["__scopeId","data-v-6a08ac80"]]);const sa=["onPointerdown"],la={class:"modal-wrapper"},ua={class:"modal-container"},da={class:"modal-header"},ca=C(" default header "),fa={class:"modal-body"},pa=C(" default body "),ma={class:"modal-footer"},ga=p("div",{class:"modal-default-flex-grow"},null,-1),Je=E({__name:"Modal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const r=ne(e),a=N(()=>r.modelValue||s.value);function o(){n("update:modelValue",!1)}const s=O(!1),u=O(null),c=N(()=>{var h,v;return(v=(h=u.value)==null?void 0:h.nodes)!=null?v:null});return t({isOpen:a,nodes:c}),(h,v)=>(g(),A(Bi,{to:"#modal-root"},[d(Zt,{name:"modal",onBeforeEnter:v[0]||(v[0]=b=>s.value=!0),onAfterLeave:v[1]||(v[1]=b=>s.value=!1)},{default:V(()=>[Kt(p("div",Be({class:"modal-mask",onPointerdown:_t(o,["self"])},h.$attrs),[p("div",la,[p("div",ua,[p("div",da,[De(h.$slots,"header",{shown:l(a)},()=>[ca])]),p("div",fa,[d(di,{ref_key:"contextRef",ref:u},{default:V(()=>[De(h.$slots,"body",{shown:l(a)},()=>[pa])]),_:3},512)]),p("div",ma,[De(h.$slots,"footer",{shown:l(a)},()=>[p("div",{class:"modal-default-footer"},[ga,p("button",{class:"button modal-default-button",onClick:o}," Close ")])])])])])],16,sa),[[Ri,e.modelValue]])]),_:3})]))}}),Nt=Symbol("PersistentState"),St=Symbol("DefaultValue"),Ht=Symbol("StackTrace"),ci=Symbol("Deleted");function va(){var e;return((e=new Error().stack)==null?void 0:e.split(` -`).slice(3,5).map(t=>t.trim()).join(` -`))||""}function ue(e){const t=pe(e)?e:O(e);return t[Nt]=t,t[St]=pe(e)?e.value:e,t[Ht]=va(),t[ci]=!1,Ee.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",t,` -Created at: -`+t[Ht]):dt[Ee[Ee.length-1]].add(t),t}ge.on("addLayer",(e,t)=>{const n=[],i=(r,a=[])=>{let o=!1;return Object.keys(r).forEach(s=>{const u=r[s];if(u&&typeof u=="object")if(Nt in u){if(o=!0,u[ci]){console.warn("Deleted persistent ref present in returned object. Ignoring...",u,` -Created at: -`+u[Ht]);return}dt[e.id].delete(fe in u?u[fe]:u);const c=a.reduce((v,b)=>(b in v||(v[b]={}),v[b]),t),h=c[s];c[s]=u[Nt],qi(c)?h!=null?c[s]=h:c[s]=u[St]:h!=null?c[s].value=h:c[s].value=u[St]}else!(u instanceof f)&&!pe(u)&&!n.includes(u)&&(typeof u.type=="symbol"&&n.push(u),i(u,[...a,s])&&(An(u)&&!An(r)?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.",fe in r?r[fe]:r,s):o=!0))}),o};i(e),dt[e.id].forEach(r=>{console.error(`Created persistent ref in ${e.id} without registering it to the layer! Make sure to include everything persistent in the returned object`,r,` -Created at: -`+r[Ht])}),dt[e.id].clear()});const gn=Symbol("RegisterNode"),vn=Symbol("UnregisterNode"),hn=Symbol("Nodes"),bn=Symbol("Bounds"),_e=Yt({});window.layers=_e;const dt={},Ee=[];function It(e,t){return le(()=>{const n={},i=n.emitter=Wn();if(n.on=i.on.bind(i),n.emit=i.emit.bind(i),n.nodes=O({}),n.id=e,Ee.push(e),dt[e]=new Set,n.minimized=ue(!1),Object.assign(n,t.call(n)),Ee[Ee.length-1]==null||Ee[Ee.length-1]!==e)throw`Adding layers stack in invalid state. This should not happen -Stack: ${Ee} -Trying to pop ${n.id}`;return Ee.pop(),y(n,"color"),y(n,"display"),y(n,"name"),z(n,"name",n.id),y(n,"minWidth"),z(n,"minWidth",600),y(n,"minimizable"),z(n,"minimizable",!0),n})}function fi(e,t){if(console.info("Adding layer",e.id),_e[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,_e[e.id]);return}z(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),_e[e.id]=e,ge.emit("addLayer",e,t.layers[e.id])}function ha(e){return _e[e]}function pi(e){console.info("Removing layer",e.id),ge.emit("removeLayer",e),_e[e.id]=void 0}function ba(e){pi(e),fi(e,T)}function mi(e){const t=O(!1);return{openModal:()=>t.value=!0,modal:L(()=>d(Je,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>d("h2",null,[l(e.name)]),body:l(e.display)}))}}ge.on("update",function(t){Object.values(_e).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(_e).forEach(n=>{n==null||n.emit("update",t)}),Object.values(_e).forEach(n=>{n==null||n.emit("postUpdate",t)})});var ya=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:gn,UnregisterNodeInjectionKey:vn,NodesInjectionKey:hn,BoundsInjectionKey:bn,layers:_e,persistentRefs:dt,addingLayers:Ee,createLayer:It,addLayer:fi,getLayer:ha,removeLayer:pi,reloadLayer:ba,setupLayerModal:mi},Symbol.toStringTag,{value:"Module"}));const _a=E({components:{Context:di},props:{index:{type:Number,required:!0},tab:{type:Function,required:!0},display:{type:k(Object,String,Function),required:!0},minimized:{type:Object,required:!0},minWidth:{type:k(Number,String),required:!0},name:{type:k(String),required:!0},color:k(String),minimizable:k(Boolean),nodes:{type:Object,required:!0}},setup(e){const{display:t,index:n,minimized:i,minWidth:r,tab:a}=ne(e),o=ct(t),s=N(()=>J.allowGoBack&&n.value>0&&!i.value);function u(){T.tabs.splice(l(e.index),1/0)}Ve(()=>h(i.value,l(r.value))),Ie([i,aa(r)],([v,b])=>h(v,b));function c(v){e.nodes.value=v}function h(v,b){const w=typeof b=="number"||Number.isNaN(parseInt(b))?b+"px":b,S=a.value();S!=null&&(v?(S.style.flexGrow="0",S.style.flexShrink="0",S.style.width="60px",S.style.minWidth=S.style.flexBasis="",S.style.margin="0"):(S.style.flexGrow="",S.style.flexShrink="",S.style.width="",S.style.minWidth=S.style.flexBasis=w,S.style.margin=""))}return{component:o,showGoBack:s,updateNodes:c,unref:l,goBack:u}}});function ka(e,t,n,i,r,a){const o=ce("Context");return g(),x("div",{class:"layer-container",style:W({"--layer-color":e.unref(e.color)})},[e.showGoBack?(g(),x("button",{key:0,class:"goBack",onClick:t[0]||(t[0]=(...s)=>e.goBack&&e.goBack(...s))},"\u2190")):P("",!0),e.minimized.value?(g(),x("button",{key:1,class:"layer-tab minimized",onClick:t[1]||(t[1]=s=>e.minimized.value=!1)},[p("div",null,U(e.unref(e.name)),1)])):(g(),x("div",{key:2,class:Q(["layer-tab",{showGoBack:e.showGoBack}])},[d(o,{onUpdateNodes:e.updateNodes},{default:V(()=>[(g(),A(ee(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(g(),x("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=s=>e.minimized.value=!0)}," \u25BC ")):P("",!0)],4)}var wa=q(_a,[["render",ka],["__scopeId","data-v-34c9d881"]]);const gi=e=>(qe("data-v-4b4bda40"),e=e(),Le(),e),xa=gi(()=>p("h2",null,"Changelog",-1)),Na=gi(()=>p("details",{open:""},[p("summary",null,[C("v0.0 Initial Commit - "),p("time",null,"2021-09-04")]),C(" This is the first release :D "),p("ul",null,[p("li",{class:"feature"},"Did everything"),p("li",{class:"fix"},"Had some fun"),p("li",{class:"breaking"},"Removed everything"),p("li",{class:"balancing"},"Created some bugs to fix later")])],-1)),Sa=E({__name:"Changelog",setup(e,{expose:t}){const n=O(!1);return t({open(){n.value=!0}}),(i,r)=>(g(),A(Je,{modelValue:n.value,"onUpdate:modelValue":r[0]||(r[0]=a=>n.value=a)},{header:V(()=>[xa]),body:V(()=>[Na]),_:1},8,["modelValue"]))}});var Ca=q(Sa,[["__scopeId","data-v-4b4bda40"]]),$a=E({props:{element:Object,display:{type:k(Object,String,Function),required:!0},style:k(Object,String,Array),classes:k(Object),direction:k(String),xoffset:k(String),yoffset:k(String),pinned:Object},setup(e){const{element:t,display:n,pinned:i}=ne(e),r=O(!1),a=N(()=>(ae(i)||r.value)&&o.value),o=it(n),s=xe(D(L(()=>{const h=ae(t);return h==null?"":Re(h)})));function u(h){const v=i;h.shiftKey&&v&&(v.value=!v.value,h.stopPropagation(),h.preventDefault())}const c=N(()=>ae(i)&&ze[Z.theme].showPin);return{Direction:X,isHovered:r,isShown:a,comp:o,elementComp:s,unref:l,togglePinned:u,showPin:c}}});const Ma={key:0,class:"material-icons pinned"};function Ta(e,t,n,i,r,a){return g(),x("div",{class:Q(["tooltip-container",{shown:e.isShown}]),onMouseenter:t[0]||(t[0]=o=>e.isHovered=!0),onMouseleave:t[1]||(t[1]=o=>e.isHovered=!1),onClickCapture:t[2]||(t[2]=(...o)=>e.togglePinned&&e.togglePinned(...o))},[De(e.$slots,"default",{},void 0,!0),e.elementComp?(g(),A(ee(e.elementComp),{key:0})):P("",!0),d(Zt,{name:"fade"},{default:V(()=>{var o;return[e.isShown?(g(),x("div",{key:0,class:Q(["tooltip",{top:e.unref(e.direction)===e.Direction.Up,left:e.unref(e.direction)===e.Direction.Left,right:e.unref(e.direction)===e.Direction.Right,bottom:e.unref(e.direction)===e.Direction.Down,...e.unref(e.classes)}]),style:W([{"--xoffset":e.unref(e.xoffset)||"0px","--yoffset":e.unref(e.yoffset)||"0px"},(o=e.unref(e.style))!=null?o:{}])},[e.showPin?(g(),x("span",Ma,"push_pin")):P("",!0),e.comp?(g(),A(ee(e.comp),{key:1})):P("",!0)],6)):P("",!0)]}),_:1})],34)}var re=q($a,[["render",Ta],["__scopeId","data-v-6102fa3a"]]);const rt=e=>(qe("data-v-7dec2dec"),e=e(),Le(),e),Ia={class:"info-modal-header"},Pa=["src","alt"],Oa={class:"info-modal-title"},Aa={key:0},Ea={key:0},Va={key:0},Fa=rt(()=>p("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",-1)),Da=rt(()=>p("br",null,null,-1)),Ra=rt(()=>p("br",null,null,-1)),Ba=["href"],qa=rt(()=>p("span",{class:"material-icons info-modal-discord"},"discord",-1)),La=rt(()=>p("div",null,[p("a",{href:"https://discord.gg/WzejVAx",class:"info-modal-discord-link"},[p("span",{class:"material-icons info-modal-discord"},"discord"),C(" The Paper Pilot Community ")])],-1)),ja=rt(()=>p("div",null,[p("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link"},[p("span",{class:"material-icons info-modal-discord"},"discord"),C(" The Modding Tree ")])],-1)),za=rt(()=>p("br",null,null,-1));var Ua=E({__name:"Info",props:{changelog:null},setup(e,{expose:t}){const n=e,{title:i,logo:r,author:a,discordName:o,discordLink:s,versionNumber:u,versionTitle:c}=J,h=ne(n),v=O(!1),b=N(()=>Jt(T.timePlayed)),w=N(()=>D(L(()=>d(K,null,[li.map(oe)]))));t({open(){v.value=!0}});function S(){var $;($=l(h.changelog))==null||$.open()}return($,R)=>(g(),A(Je,{modelValue:v.value,"onUpdate:modelValue":R[0]||(R[0]=ke=>v.value=ke)},{header:V(()=>[p("div",Ia,[l(r)?(g(),x("img",{key:0,class:"info-modal-logo",src:l(r),alt:l(i)},null,8,Pa)):P("",!0),p("div",Oa,[p("h2",null,U(l(i)),1),p("h4",null,[C(" v"+U(l(u)),1),l(c)?(g(),x("span",Aa,": "+U(l(c)),1)):P("",!0)])])])]),body:V(({shown:ke})=>[ke?(g(),x("div",Ea,[l(a)?(g(),x("div",Va,"By "+U(l(a)),1)):P("",!0),Fa,Da,p("div",{class:"link",onClick:S},"Changelog"),Ra,p("div",null,[l(s)?(g(),x("a",{key:0,href:l(s),class:"info-modal-discord-link"},[qa,C(" "+U(l(o)),1)],8,Ba)):P("",!0)]),La,ja,za,p("div",null,"Time Played: "+U(l(b)),1),(g(),A(ee(l(w))))])):P("",!0)]),_:1},8,["modelValue"]))}});var Ga=q(Ua,[["__scopeId","data-v-7dec2dec"]]);const Ha={class:"field"},Wa={key:0,class:"field-title"},yn=E({__name:"Select",props:{title:null,modelValue:null,options:null,placeholder:null,closeOnSelect:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){var o;const n=e,i=it(Ze(n,"title"),"span"),r=O((o=n.options.find(s=>s.value===n.modelValue))!=null?o:null);Ie(Ze(n,"modelValue"),s=>{var u;ae(r)!==s&&(r.value=(u=n.options.find(c=>c.value===s))!=null?u:null)});function a(s){t("update:modelValue",s.value)}return(s,u)=>(g(),x("div",Ha,[l(i)?(g(),x("span",Wa,[(g(),A(ee(l(i))))])):P("",!0),d(l(Wi),{options:e.options,modelValue:r.value,"onUpdate:modelValue":[u[0]||(u[0]=c=>r.value=c),a],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])]))}});const Ya={class:"field"},Ka=E({__name:"Toggle",props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,i=N(()=>D(l(n.title)||"","span")),r=N({get(){return!!n.modelValue},set(a){t("update:modelValue",a)}});return(a,o)=>(g(),x("label",Ya,[Kt(p("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":o[0]||(o[0]=s=>pe(r)?r.value=s:null)},null,512),[[Li,l(r)]]),(g(),A(ee(l(i))))]))}});var we=q(Ka,[["__scopeId","data-v-2b109500"]]);const vi=e=>(qe("data-v-bc13791c"),e=e(),Le(),e),Za=vi(()=>p("div",{class:"header"},[p("h2",null,"Options")],-1)),Ja=vi(()=>p("hr",null,null,-1));var Xa=E({__name:"Options",setup(e,{expose:t}){const n=O(!1);t({open(){n.value=!0}});const i=Object.keys(ze).map(S=>({label:ei(S),value:S})),r=N(()=>D(L(()=>d(K,null,[oi.map(oe)])))),{showTPS:a,theme:o,unthrottled:s}=ne(Z),{autosave:u,offlineProd:c}=ne(T),h=N({get(){return T.devSpeed===0},set(S){T.devSpeed=S?0:null}}),v=L(()=>d("span",null,[C("Offline Production"),d(re,{display:"Save-specific"},{default:()=>[C("*")]})])),b=L(()=>d("span",null,[C("Autosave"),d(re,{display:"Save-specific"},{default:()=>[C("*")]})])),w=L(()=>d("span",null,[C("Pause game"),d(re,{display:"Save-specific"},{default:()=>[C("*")]})]));return(S,$)=>(g(),A(Je,{modelValue:n.value,"onUpdate:modelValue":$[6]||($[6]=R=>n.value=R)},{header:V(()=>[Za]),body:V(()=>[d(yn,{title:"Theme",options:l(i),modelValue:l(o),"onUpdate:modelValue":$[0]||($[0]=R=>pe(o)?o.value=R:null)},null,8,["options","modelValue"]),(g(),A(ee(l(r)))),d(we,{title:"Show TPS",modelValue:l(a),"onUpdate:modelValue":$[1]||($[1]=R=>pe(a)?a.value=R:null)},null,8,["modelValue"]),Ja,d(we,{title:"Unthrottled",modelValue:l(s),"onUpdate:modelValue":$[2]||($[2]=R=>pe(s)?s.value=R:null)},null,8,["modelValue"]),d(we,{title:l(v),modelValue:l(c),"onUpdate:modelValue":$[3]||($[3]=R=>pe(c)?c.value=R:null)},null,8,["title","modelValue"]),d(we,{title:l(b),modelValue:l(u),"onUpdate:modelValue":$[4]||($[4]=R=>pe(u)?u.value=R:null)},null,8,["title","modelValue"]),l(J).enablePausing?(g(),A(we,{key:0,title:l(w),modelValue:l(h),"onUpdate:modelValue":$[5]||($[5]=R=>pe(h)?h.value=R:null)},null,8,["title","modelValue"])):P("",!0)]),_:1},8,["modelValue"]))}});var Qa=q(Xa,[["__scopeId","data-v-bc13791c"]]);const eo=["onSubmit"],to={class:"field"},no={key:0,class:"field-title"},io=["placeholder"],ro=E({__name:"Text",props:{title:null,modelValue:null,textArea:{type:Boolean},placeholder:null,maxHeight:null},emits:["update:modelValue","submit"],setup(e,{emit:t}){const i=ne(e),r=N(()=>{var u;return((u=i.title)==null?void 0:u.value)&&D(l(i.title.value),"span")}),a=O(null);Tt(()=>{var u;(u=a.value)==null||u.focus()});const o=N({get(){return l(i.modelValue)||""},set(u){t("update:modelValue",u)}});function s(){t("submit")}return(u,c)=>(g(),x("form",{onSubmit:_t(s,["prevent"])},[p("div",to,[l(r)?(g(),x("span",no,[(g(),A(ee(l(r))))])):P("",!0),e.textArea?(g(),A(l(Ki),{key:1,modelValue:l(o),"onUpdate:modelValue":c[0]||(c[0]=h=>pe(o)?o.value=h:null),placeholder:e.placeholder,maxHeight:e.maxHeight,onBlur:s,ref_key:"field",ref:a},null,8,["modelValue","placeholder","maxHeight"])):Kt((g(),x("input",{key:2,type:"text","onUpdate:modelValue":c[1]||(c[1]=h=>pe(o)?o.value=h:null),placeholder:e.placeholder,class:Q({fullWidth:!e.title}),onBlur:s,ref_key:"field",ref:a},null,42,io)),[[Hn,l(o)]])])],40,eo))}});var _n=q(ro,[["__scopeId","data-v-d74adb0a"]]);const ao={key:0},oo=["onClick","disabled"],so={key:0},lo=["onClick"],uo=E({__name:"DangerButton",props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup(e,{emit:t}){const i=ne(e),r=O(!1);Ie(r,s=>{t("confirmingChanged",s)});function a(){if(l(i.skipConfirm)){t("click");return}r.value&&t("click"),r.value=!r.value}function o(){r.value=!1}return(s,u)=>(g(),x("span",{class:Q(["container",{confirming:r.value}])},[r.value?(g(),x("span",ao,"Are you sure?")):P("",!0),p("button",{onClick:_t(a,["stop"]),class:"button danger",disabled:e.disabled},[r.value?(g(),x("span",so,"Yes")):De(s.$slots,"default",{key:1},void 0,!0)],8,oo),r.value?(g(),x("button",{key:1,class:"button",onClick:_t(o,["stop"])},"No",8,lo)):P("",!0)],2))}});var co=q(uo,[["__scopeId","data-v-2f8ef34c"]]);const fo=["onClick"],po=E({__name:"FeedbackButton",props:{left:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=O(!1),i=O(null);function r(){t("click"),i.value&&clearTimeout(i.value),n.value=!1,Ve(()=>{n.value=!0,i.value=setTimeout(()=>n.value=!1,500)})}return(a,o)=>(g(),x("button",{onClick:_t(r,["stop"]),class:Q(["feedback",{activated:n.value,left:e.left}])},[De(a.$slots,"default",{},void 0,!0)],10,fo))}});var mo=q(po,[["__scopeId","data-v-01a1b95c"]]);const Ue=e=>(qe("data-v-0136bef4"),e=e(),Le(),e),go=Ue(()=>p("div",{class:"handle material-icons"},"drag_handle",-1)),vo={key:0,class:"actions"},ho=Ue(()=>p("span",{class:"material-icons"},"content_paste",-1)),bo=Ue(()=>p("span",{class:"material-icons"},"content_copy",-1)),yo=Ue(()=>p("span",{class:"material-icons"},"edit",-1)),_o=Ue(()=>p("span",{class:"material-icons",style:{margin:"-2px"}},"delete",-1)),ko={key:1,class:"actions"},wo=Ue(()=>p("span",{class:"material-icons"},"check",-1)),xo=Ue(()=>p("span",{class:"material-icons"},"close",-1)),No={key:2,class:"details"},So={class:"save-version"},Co=Ue(()=>p("br",null,null,-1)),$o={key:0},Mo={key:3,class:"details"},To={key:4,class:"details error"},Io=Ue(()=>p("br",null,null,-1)),Po=E({__name:"Save",props:{save:null},emits:["export","open","duplicate","delete","editName"],setup(e,{emit:t}){const n=e,{save:i}=ne(n),r=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),a=O(!1),o=O(!1),s=O("");Ie(a,()=>s.value=i.value.name||"");const u=N(()=>i.value&&i.value.id===T.id),c=N(()=>u.value?T.time:i.value&&i.value.time||0);function h(){t("editName",s.value),a.value=!1}return(v,b)=>(g(),x("div",{class:Q(["save",{active:l(u)}])},[go,a.value?(g(),x("div",ko,[p("button",{onClick:h,class:"button"},[d(re,{display:"Save",direction:l(X).Left,class:"info"},{default:V(()=>[wo]),_:1},8,["direction"])]),p("button",{onClick:b[5]||(b[5]=w=>a.value=!a.value),class:"button"},[d(re,{display:"Cancel",direction:l(X).Left,class:"info"},{default:V(()=>[xo]),_:1},8,["direction"])])])):(g(),x("div",vo,[l(i).error==null&&!o.value?(g(),A(mo,{key:0,onClick:b[0]||(b[0]=w=>t("export")),class:"button",left:""},{default:V(()=>[d(re,{display:"Export",direction:l(X).Left,class:"info"},{default:V(()=>[ho]),_:1},8,["direction"])]),_:1})):P("",!0),l(i).error==null&&!o.value?(g(),x("button",{key:1,onClick:b[1]||(b[1]=w=>t("duplicate")),class:"button"},[d(re,{display:"Duplicate",direction:l(X).Left,class:"info"},{default:V(()=>[bo]),_:1},8,["direction"])])):P("",!0),l(i).error==null&&!o.value?(g(),x("button",{key:2,onClick:b[2]||(b[2]=w=>a.value=!a.value),class:"button"},[d(re,{display:"Edit Name",direction:l(X).Left,class:"info"},{default:V(()=>[yo]),_:1},8,["direction"])])):P("",!0),d(co,{disabled:l(u),onClick:b[3]||(b[3]=w=>t("delete")),onConfirmingChanged:b[4]||(b[4]=w=>o.value=w)},{default:V(()=>[d(re,{display:"Delete",direction:l(X).Left,class:"info"},{default:V(()=>[_o]),_:1},8,["direction"])]),_:1},8,["disabled"])])),l(i).error==null&&!a.value?(g(),x("div",No,[p("button",{class:"button open",onClick:b[6]||(b[6]=w=>t("open"))},[p("h3",null,U(l(i).name),1)]),p("span",So,"v"+U(l(i).modVersion),1),Co,l(c)?(g(),x("div",$o,"Last played "+U(l(r).format(l(c))),1)):P("",!0)])):l(i).error==null&&a.value?(g(),x("div",Mo,[d(_n,{modelValue:s.value,"onUpdate:modelValue":b[7]||(b[7]=w=>s.value=w),class:"editname",onSubmit:h},null,8,["modelValue"])])):(g(),x("div",To,[C(" Error: Failed to load save with id "+U(l(i).id),1),Io,C(U(l(i).error),1)]))],2))}});var Oo=q(Po,[["__scopeId","data-v-0136bef4"]]);const kn=e=>(qe("data-v-3b9991aa"),e=e(),Le(),e),Ao=kn(()=>p("h2",null,"Saves Manager",-1)),Eo={class:"modal-footer"},Vo={class:"field"},Fo=kn(()=>p("span",{class:"field-title"},"Create Save",-1)),Do={class:"field-buttons"},Ro={class:"footer"},Bo=kn(()=>p("div",{style:{"flex-grow":"1"}},null,-1)),qo=E({__name:"SavesManager",setup(e,{expose:t}){const n=O(!1),i=O(null);t({open(){n.value=!0}});const r=O(!1),a=O(""),o=O(null);Ie(a,M=>{M?Ve(()=>{try{if(M[0]!=="{")if(M[0]==="e")M=decodeURIComponent(escape(atob(M)));else if(M[0]==="\u1BE1")M=Ye.decompressFromUTF16(M);else{console.warn("Unable to determine preset encoding",M),r.value=!0;return}const I=JSON.parse(M);if(typeof I!="object"){r.value=!0;return}const G=qt();I.id=G,Ae(I),a.value="",r.value=!1,Z.saves.push(G)}catch{r.value=!0}}):r.value=!1});let s={},u=O(Object.keys(s).reduce((M,I)=>(M.push({label:I.split("/").slice(-1)[0].slice(0,-4),value:s[I]}),M),[]));const c=Yt({});function h(M){if(c[M]==null){let I=localStorage.getItem(M);if(I==null)c[M]={error:"Save doesn't exist in localStorage",id:M};else if(I==="dW5kZWZpbmVk")c[M]={error:"Save is undefined",id:M};else try{if(I[0]!=="{")if(I[0]==="e")I=decodeURIComponent(escape(atob(I)));else if(I[0]==="\u1BE1")I=Ye.decompressFromUTF16(I);else return console.warn("Unable to determine preset encoding",I),r.value=!0,c[M]={error:"Unable to determine preset encoding",id:M},c[M];c[M]={...JSON.parse(I),id:M}}catch(G){c[M]={error:G,id:M},console.warn(`SavesManager: Failed to load info about save with id ${M}: -${G} -${I}`)}}return c[M]}Ie(n,M=>{M&&Object.keys(c).forEach(I=>delete c[I])});const v=N(()=>Z.saves.reduce((M,I)=>(M[I]=h(I),M),{}));function b(M){let I;switch(T.id===M?I=ii(T[fe]):I=JSON.stringify(v.value[M]),J.exportEncoding){default:console.warn(`Unknown save encoding: ${J.exportEncoding}. Defaulting to lz`);case"lz":I=Ye.compressToUTF16(I);break;case"base64":I=btoa(unescape(encodeURIComponent(I)));break;case"plain":break}const G=document.createElement("textarea");G.value=I,document.body.appendChild(G),G.select(),G.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(G)}function w(M){T.id===M&&Ae();const I={...v.value[M],id:qt()};Ae(I),Z.saves.push(I.id)}function S(M){Z.saves=Z.saves.filter(I=>I!==M),localStorage.removeItem(M),c[M]=void 0}function $(M){v.value[T.id].time=T.time,Ae(),c[T.id]=void 0,nt(v.value[M]),c[M]=void 0}function R(M){if(o.value=M,Ve(()=>{o.value=null}),M[0]!=="{")if(M[0]==="e")M=decodeURIComponent(escape(atob(M)));else if(M[0]==="\u1BE1")M=Ye.decompressFromUTF16(M);else{console.warn("Unable to determine preset encoding",M);return}const I=JSON.parse(M);I.id=qt(),Ae(I),Z.saves.push(I.id),$(I.id)}function ke(M,I){const G=v.value[M];G&&(G.name=I,T.id===M?(T.name=I,Ae()):(Ae(G),c[M]=void 0))}return(M,I)=>(g(),A(Je,{modelValue:n.value,"onUpdate:modelValue":I[4]||(I[4]=G=>n.value=G),ref_key:"modal",ref:i},{header:V(()=>[Ao]),body:V(({shown:G})=>[G?(g(),A(l(Yi),{key:0,list:l(Z).saves,handle:".handle",itemKey:be=>be},{item:V(({element:be})=>[d(Oo,{save:l(v)[be],onOpen:te=>$(be),onExport:te=>b(be),onEditName:te=>ke(be,te),onDuplicate:te=>w(be),onDelete:te=>S(be)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):P("",!0)]),footer:V(()=>[p("div",Eo,[d(_n,{modelValue:a.value,"onUpdate:modelValue":I[0]||(I[0]=G=>a.value=G),title:"Import Save",placeholder:"Paste your save here!",class:Q({importingFailed:r.value})},null,8,["modelValue","class"]),p("div",Vo,[Fo,p("div",Do,[p("button",{class:"button",onClick:I[1]||(I[1]=G=>$(l(ut)().id))},"New Game"),Object.keys(l(u)).length>0?(g(),A(yn,{key:0,options:l(u),modelValue:o.value,"onUpdate:modelValue":I[2]||(I[2]=G=>R(G)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):P("",!0)])]),p("div",Ro,[Bo,p("button",{class:"button modal-default-button",onClick:I[3]||(I[3]=G=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var hi=q(qo,[["__scopeId","data-v-3b9991aa"]]);const Se=e=>(qe("data-v-4a3f8425"),e=e(),Le(),e),Lo=["src","alt"],jo={key:1,class:"title"},zo=Se(()=>p("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),Uo={class:"discord"},Go={class:"discord-links"},Ho={key:0},Wo=["href"],Yo=Se(()=>p("li",null,[p("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),Ko=Se(()=>p("li",null,[p("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),Zo={href:"https://forums.moddingtree.com/",target:"_blank"},Jo=Se(()=>p("span",{class:"material-icons"},"forum",-1)),Xo=Se(()=>p("span",{class:"material-icons"},"info",-1)),Qo=Se(()=>p("span",{class:"material-icons"},"library_books",-1)),es=Se(()=>p("span",{class:"material-icons"},"settings",-1)),ts=Se(()=>p("span",{class:"material-icons"},"library_books",-1)),ns=Se(()=>p("span",{class:"material-icons"},"settings",-1)),is=Se(()=>p("span",{class:"material-icons"},"info",-1)),rs={href:"https://forums.moddingtree.com/",target:"_blank"},as=Se(()=>p("span",{class:"material-icons"},"forum",-1)),os={class:"discord"},ss={class:"discord-links"},ls={key:0},us=["href"],ds=Se(()=>p("li",null,[p("a",{href:"https://discord.gg/WzejVAx",target:"_blank"},"The Paper Pilot Community")],-1)),cs=Se(()=>p("li",null,[p("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),fs=E({__name:"Nav",setup(e){const t=O(null),n=O(null),i=O(null),r=O(null),{useHeader:a,banner:o,title:s,discordName:u,discordLink:c,versionNumber:h}=J;function v(){window.open(c,"mywindow")}return(b,w)=>(g(),x(K,null,[l(a)?(g(),x("div",Be({key:0,class:"nav"},b.$attrs),[l(o)?(g(),x("img",{key:0,src:l(o),class:"banner",alt:l(s)},null,8,Lo)):(g(),x("div",jo,U(l(s)),1)),p("div",{onClick:w[0]||(w[0]=S=>{var $;return($=r.value)==null?void 0:$.open()}),class:"version-container"},[d(re,{display:"Changelog",direction:l(X).Down,class:"version"},{default:V(()=>[p("span",null,"v"+U(l(h)),1)]),_:1},8,["direction"])]),zo,p("div",Uo,[p("span",{onClick:v,class:"material-icons"},"discord"),p("ul",Go,[l(c)?(g(),x("li",Ho,[p("a",{href:l(c),target:"_blank"},U(l(u)),9,Wo)])):P("",!0),Yo,Ko])]),p("div",null,[p("a",Zo,[d(re,{display:"Forums",direction:l(X).Down,yoffset:"5px"},{default:V(()=>[Jo]),_:1},8,["direction"])])]),p("div",{onClick:w[1]||(w[1]=S=>{var $;return($=t.value)==null?void 0:$.open()})},[d(re,{display:"Info",direction:l(X).Down,class:"info"},{default:V(()=>[Xo]),_:1},8,["direction"])]),p("div",{onClick:w[2]||(w[2]=S=>{var $;return($=n.value)==null?void 0:$.open()})},[d(re,{display:"Saves",direction:l(X).Down,xoffset:"-20px"},{default:V(()=>[Qo]),_:1},8,["direction"])]),p("div",{onClick:w[3]||(w[3]=S=>{var $;return($=i.value)==null?void 0:$.open()})},[d(re,{display:"Options",direction:l(X).Down,xoffset:"-66px"},{default:V(()=>[es]),_:1},8,["direction"])])],16)):(g(),x("div",Be({key:1,class:"overlay-nav"},b.$attrs),[p("div",{onClick:w[4]||(w[4]=S=>{var $;return($=r.value)==null?void 0:$.open()}),class:"version-container"},[d(re,{display:"Changelog",direction:l(X).Right,xoffset:"25%",class:"version"},{default:V(()=>[p("span",null,"v"+U(l(h)),1)]),_:1},8,["direction"])]),p("div",{onClick:w[5]||(w[5]=S=>{var $;return($=n.value)==null?void 0:$.open()})},[d(re,{display:"Saves",direction:l(X).Right},{default:V(()=>[ts]),_:1},8,["direction"])]),p("div",{onClick:w[6]||(w[6]=S=>{var $;return($=i.value)==null?void 0:$.open()})},[d(re,{display:"Options",direction:l(X).Right},{default:V(()=>[ns]),_:1},8,["direction"])]),p("div",{onClick:w[7]||(w[7]=S=>{var $;return($=t.value)==null?void 0:$.open()})},[d(re,{display:"Info",direction:l(X).Right},{default:V(()=>[is]),_:1},8,["direction"])]),p("div",null,[p("a",rs,[d(re,{display:"Forums",direction:l(X).Right,xoffset:"7px"},{default:V(()=>[as]),_:1},8,["direction"])])]),p("div",os,[p("span",{onClick:v,class:"material-icons"},"discord"),p("ul",ss,[l(c)?(g(),x("li",ls,[p("a",{href:l(c),target:"_blank"},U(l(u)),9,us)])):P("",!0),ds,cs])])],16)),d(Ga,{ref_key:"info",ref:t,changelog:r.value},null,8,["changelog"]),d(hi,{ref_key:"savesManager",ref:n},null,512),d(Qa,{ref_key:"options",ref:i},null,512),d(Ca,{ref_key:"changelog",ref:r},null,512)],64))}});var bi=q(fs,[["__scopeId","data-v-4a3f8425"]]);const ps={class:"inner-tab"},ms=E({__name:"Game",setup(e){const t=Ze(T,"tabs"),n=N(()=>Object.keys(_e)),i=J.useHeader;function r(a){const{display:o,minimized:s,minWidth:u,name:c,color:h,minimizable:v,nodes:b}=a;return{display:o,minimized:s,minWidth:u,name:c,color:h,minimizable:v,nodes:b}}return(a,o)=>(g(),x("div",{class:Q(["tabs-container",{useHeader:l(i)}])},[(g(!0),x(K,null,kt(l(t),(s,u)=>{var c,h;return g(),x("div",{key:u,class:Q(["tab",l((c=l(_e)[s])==null?void 0:c.classes)]),ref_for:!0,ref:`tab-${u}`,style:W(l((h=l(_e)[s])==null?void 0:h.style))},[u===0&&!l(i)?(g(),A(bi,{key:0})):P("",!0),p("div",ps,[l(n).includes(s)?(g(),A(wa,Be({key:0},r(l(_e)[s]),{index:u,tab:()=>{var v;return(v=a.$refs[`tab-${u}`])==null?void 0:v[0]}}),null,16,["index","tab"])):(g(),A(ee(s),{key:1,index:u},null,8,["index"]))])],6)}),128))],2))}});var gs=q(ms,[["__scopeId","data-v-4cb9ce0f"]]);const vs={},hs=e=>(qe("data-v-89b4b00a"),e=e(),Le(),e),bs=hs(()=>p("svg",{id:"eaRe02fYmMp1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 228 521","shape-rendering":"geometricPrecision","text-rendering":"geometricPrecision"},[p("g",{id:"P"},[p("path",{d:"m 101,512.877 c -17.547386,-5.3519 -50.794681,-10.26296 -80,0 10.737201,-217.43031 5.7244,-300.999 0,-464.9995 0,0 46.6144,-37.1164 80,-42.00002 33.386,-4.883633 86.025,10.45942 120,50.00002 5,30 -4.353,106.6565 -44,156.0005 -34.149,42.5 -130,38.48 -130,92.999 0,102 54,208 54,208 z",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"10","stroke-linecap":"round","stroke-miterlimit":"16"},id:"trunk",class:"svg-elem-1"}),p("path",{d:"M 221,55.8775 C 209.023,126.453 185.39,166.835 158.997,191.5 93.783098,252.444 11.718998,217.436 46.999998,304.877",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"vine2",class:"svg-elem-2"}),p("path",{d:"m 194.5,188 c -11.225,4.447 -19.066,5.134 -35.503,3.5",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine4",class:"svg-elem-3"}),p("path",{d:"M 73.499996,246.5 C 111.145,245.626 127.011,238.775 156.5,228",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine3",class:"svg-elem-4"}),p("path",{d:"M 221,55.8775 C 169.5,17.8262 86.0943,44.9468 47,107 c -4.743,7.528 -7.1041,15.373 -8.326,24 -3.5282,24.91 2.4426,56.34 -12.0011,105.5",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"vine1",class:"svg-elem-5"}),p("path",{d:"M 21,47.8775 38.674,131",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine2",class:"svg-elem-6"}),p("path",{d:"m 3,326.5 c 13.1783,22.208 16.4863,42.834 21.6997,81",style:{display:"inline",fill:"none",stroke:"rgb(163, 190, 140)","stroke-width":"5","stroke-linecap":"round","stroke-miterlimit":"16"},id:"short_vine1",class:"svg-elem-7"})])],-1));function ys(e,t){return g(),A(Zt,{appear:""},{default:V(()=>[bs]),_:1})}var _s=q(vs,[["render",ys],["__scopeId","data-v-89b4b00a"]]);const ye=E({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,n)=>(g(),x("div",{style:W({width:e.width,height:e.height})},null,4))}});function Ct(e,t="points",n=0,i=void 0){const r=pe(e)?e:ue(e);return r.displayName=t,r.precision=n,r.small=i,r}function yi(e){const t=ue(e.value);return Ie(e,n=>{f.gt(n,t.value)&&(t.value=n)}),t}function ks(e){const t=ue(e.value);return Ie(e,(n,i)=>{f.gt(n,i)&&(t.value=f.add(t.value,f.sub(n,i)))}),t}const ws=new f("10^^8"),xs=new f("1e100");function Ns(e,t){const n=O(0),i=O(0),r=O(0);return ge.on("update",o=>{if(i.value=0,f.lte(e.value,xs)){r.value=e.value;return}let s=e.value,u=r.value;if(r.value=s,f.gt(s,u))if(f.gte(s,ws))s=f.slog(s,1e10),u=f.slog(u,1e10),n.value=s.sub(u).div(o),i.value=-1;else for(;f.div(s,u).log(10).div(o).gte("100")&&i.value<=5&&f.gt(u,0);)s=f.log10(s),u=f.log10(u),n.value=s.sub(u).div(o),i.value++}),N(()=>i.value===0?t?se(t.value,e.precision,e.small)+" "+e.displayName+"/s":"":se(n.value)+" OOM"+(i.value<0?"^OOM":"^"+i.value)+"s/sec")}function je(e,t){const n=t!=null?t:e.value;return f.eq(e.precision,0)?ve(n):se(n,e.precision,e.small)}const Ss=["x1","y1","x2","y2"],Cs=E({__name:"Link",props:{link:null,startNode:null,endNode:null,boundingRect:null},setup(e){const n=ne(e),i=N(()=>{const a=n.startNode.value.rect,o=n.boundingRect.value,s=o?{x:a.x+a.width/2-o.x,y:a.y+a.height/2-o.y}:{x:0,y:0};return n.link.value.offsetStart&&(s.x+=n.link.value.offsetStart.x,s.y+=n.link.value.offsetStart.y),s}),r=N(()=>{const a=n.endNode.value.rect,o=n.boundingRect.value,s=o?{x:a.x+a.width/2-o.x,y:a.y+a.height/2-o.y}:{x:0,y:0};return n.link.value.offsetEnd&&(s.x+=n.link.value.offsetEnd.x,s.y+=n.link.value.offsetEnd.y),s});return(a,o)=>(g(),x("line",Be({"stroke-width":"15px",stroke:"white"},e.link,{x1:l(i).x,y1:l(i).y,x2:l(r).x,y2:l(r).y}),null,16,Ss))}});const $s=E({__name:"Links",props:{links:null},setup(e){var u;const n=Ze(e,"links"),i=O(null),r=jt(hn,O({})),a=jt(bn,O(void 0)),o=O((u=i.value)==null?void 0:u.getBoundingClientRect());Ie(a,()=>{var c;return o.value=(c=i.value)==null?void 0:c.getBoundingClientRect()}),Tt(()=>{var c;return o.value=(c=i.value)==null?void 0:c.getBoundingClientRect()});const s=N(()=>{var h,v;const c=r.value;return(v=(h=n.value)==null?void 0:h.filter(b=>{var w,S;return((w=c[b.startNode.id])==null?void 0:w.rect)&&((S=c[b.startNode.id])==null?void 0:S.rect)}))!=null?v:[]});return(c,h)=>(g(),x(K,null,[l(s)?(g(),x("svg",ji(Be({key:0},c.$attrs)),[(g(!0),x(K,null,kt(l(s),(v,b)=>(g(),A(Cs,{key:b,link:v,boundingRect:o.value,startNode:l(r)[v.startNode.id],endNode:l(r)[v.endNode.id]},null,8,["link","boundingRect","startNode","endNode"]))),128))],16)):P("",!0),p("div",{ref_key:"resizeListener",ref:i,class:"resize-listener"},null,512)],64))}});var _i=q($s,[["__scopeId","data-v-c139d80e"]]),Ms=E({props:{nodes:{type:k(Array),required:!0},leftSideNodes:k(Array),rightSideNodes:k(Array),branches:k(Array)},components:{Links:_i},setup(e){const{nodes:t,leftSideNodes:n,rightSideNodes:i}=ne(e),r=xe();Ne(()=>{const s=ae(t);r.value=D(L(()=>d(K,null,[s.map(u=>d("span",{class:"row tree-row",style:"margin: 50px auto;"},[u.map(Re)]))])))});const a=xe();Ne(()=>{const s=ae(n);a.value=s?D(L(()=>d("span",{class:"left-side-nodes small"},[s.map(Re)]))):""});const o=xe();return Ne(()=>{const s=ae(i);o.value=s?D(L(()=>d("span",{class:"side-nodes small"},[s.map(Re)]))):""}),{unref:l,nodesComp:r,leftNodesComp:a,rightNodesComp:o}}});function Ts(e,t,n,i,r,a){const o=ce("Links");return g(),x(K,null,[(g(),A(ee(e.nodesComp))),e.leftNodesComp?(g(),A(ee(e.leftNodesComp),{key:0})):P("",!0),e.rightNodesComp?(g(),A(ee(e.rightNodesComp),{key:1})):P("",!0),e.branches?(g(),A(o,{key:2,links:e.unref(e.branches)},null,8,["links"])):P("",!0)],64)}var Is=q(Ms,[["render",Ts],["__scopeId","data-v-39ca96d0"]]);const Ps={key:0},Os={key:0,class:"mark star"},As=["src"],Es=E({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(g(),x("div",Ps,[e.mark===!0?(g(),x("div",Os)):(g(),x("img",{key:1,class:"mark",src:e.mark},null,8,As))])):P("",!0)}});var ft=q(Es,[["__scopeId","data-v-2207999f"]]);const Vs=E({__name:"Node",props:{id:null},setup(e){const n=ne(e),i=jt(gn,()=>{}),r=jt(vn,()=>{}),a=O(null),o=N(()=>a.value&&a.value.parentElement);return Ie([o,n.id],([s,u],[c,h])=>{c&&r(l(h)),s&&i(u,s)}),Gn(()=>r(l(n.id))),(s,u)=>(g(),x("div",{class:"node",ref_key:"node",ref:a},null,512))}});var Ge=q(Vs,[["__scopeId","data-v-2cb1bb79"]]);const Fs=E({props:{display:k(Object,String,Function),visibility:{type:k(Number),required:!0},style:k(String,Object,Array),classes:k(Object),onClick:Function,onHold:Function,color:k(String),glowColor:k(String),canClick:{type:k(Boolean),required:!0},mark:k(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:ft,Node:Ge},setup(e){const{onClick:t,onHold:n,display:i}=ne(e),r=it(i),{start:a,stop:o}=mn(t,n);return{start:a,stop:o,comp:r,unref:l,Visibility:B,isCoercableComponent:Te}}});function Ds(e,t,n,i,r,a){var u;const o=ce("MarkNode"),s=ce("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W({visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0}),class:Q({treeNode:!0,can:e.unref(e.canClick),...e.unref(e.classes)}),onClick:t[0]||(t[0]=(...c)=>e.onClick&&e.onClick(...c)),onMousedown:t[1]||(t[1]=(...c)=>e.start&&e.start(...c)),onMouseleave:t[2]||(t[2]=(...c)=>e.stop&&e.stop(...c)),onMouseup:t[3]||(t[3]=(...c)=>e.stop&&e.stop(...c)),onTouchstartPassive:t[4]||(t[4]=(...c)=>e.start&&e.start(...c)),onTouchendPassive:t[5]||(t[5]=(...c)=>e.stop&&e.stop(...c)),onTouchcancelPassive:t[6]||(t[6]=(...c)=>e.stop&&e.stop(...c))},[p("div",{style:W([{backgroundColor:e.unref(e.color),boxShadow:`-4px -4px 4px rgba(0, 0, 0, 0.25) inset, 0 0 20px ${e.unref(e.glowColor)}`},(u=e.unref(e.style))!=null?u:[]])},[(g(),A(ee(e.unref(e.comp))))],4),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],38)):P("",!0)}var Rs=q(Fs,[["render",Ds],["__scopeId","data-v-1c0c107d"]]);const Bs=Symbol("TreeNode"),qs=Symbol("Tree");function yt(e){return le(()=>{var n;const t=(n=e==null?void 0:e())!=null?n:{};if(t.id=he("treeNode-"),t.type=Bs,t[de]=Rs,y(t,"visibility"),z(t,"visibility",B.Visible),y(t,"canClick"),z(t,"canClick",!0),y(t,"color"),y(t,"display"),y(t,"glowColor"),y(t,"classes"),y(t,"style"),y(t,"mark"),t.onClick){const i=t.onClick.bind(t);t.onClick=function(){l(t.canClick)&&i()}}if(t.onHold){const i=t.onHold.bind(t);t.onHold=function(){l(t.canClick)&&i()}}return t[me]=function(){const{display:i,visibility:r,style:a,classes:o,onClick:s,onHold:u,color:c,glowColor:h,canClick:v,mark:b,id:w}=this;return{display:i,visibility:r,style:a,classes:o,onClick:s,onHold:u,color:c,glowColor:h,canClick:v,mark:b,id:w}},t})}function ki(e){return le(()=>{const t=e();return t.id=he("tree-"),t.type=qs,t[de]=Is,t.isResetting=O(!1),t.resettingNode=xe(null),t.reset=function(n){var r,a;const i=t;i.isResetting.value=!0,i.resettingNode.value=n,(r=i.resetPropagation)==null||r.call(i,i,n),(a=i.onReset)==null||a.call(i,n),i.isResetting.value=!1,i.resettingNode.value=null},t.links=N(()=>{var i;return(i=l(t.branches))!=null?i:[]}),y(t,"visibility"),z(t,"visibility",B.Visible),y(t,"nodes"),y(t,"leftSideNodes"),y(t,"rightSideNodes"),y(t,"branches"),t[me]=function(){const{nodes:n,leftSideNodes:i,rightSideNodes:r,branches:a}=this;return{nodes:n,leftSideNodes:i,rightSideNodes:r,branches:a}},t})}const Ls=function(e,t){const n=[t];let i=[t];if(e.branches!=null){const r=l(e.branches);for(;i.length>0;){const a=[];i.forEach(o=>{r.filter(s=>s.startNode===o||s.endNode===o).map(s=>s.startNode===o?s.endNode:s.startNode).filter(s=>!n.includes(s)).forEach(s=>{var u;a.includes(s)||(a.push(s),(u=s.reset)==null||u.reset())})}),i=a,n.push(...i)}}};function wi(e,t=null,n=0){const i=Me(n);return N(()=>t==null||f.gte(e.value,l(i))?je(e)+" "+e.displayName:`Reach ${f.eq(t.precision,0)?ve(l(i)):se(l(i),t.precision)} ${t.displayName} to unlock (You have ${f.eq(t.precision,0)?ve(t.value):se(t.value,t.precision)})`)}const js=E({props:{visibility:{type:k(Number),required:!0},display:k(Object,String,Function),earned:{type:k(Boolean),required:!0},image:k(String),style:k(String,Object,Array),classes:k(Object),mark:k(Boolean,String),id:{type:String,required:!0}},components:{Node:Ge,MarkNode:ft},setup(e){const{display:t}=ne(e);return{component:it(t),unref:l,Visibility:B}}});function zs(e,t,n,i,r,a){var u;const o=ce("MarkNode"),s=ce("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0,backgroundImage:e.earned&&e.image&&`url(${e.image})`||""},(u=e.unref(e.style))!=null?u:[]]),class:Q({feature:!0,achievement:!0,locked:!e.unref(e.earned),bought:e.unref(e.earned),...e.unref(e.classes)})},[e.component?(g(),A(ee(e.component),{key:0})):P("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],6)):P("",!0)}var Us=q(js,[["render",zs],["__scopeId","data-v-58163dab"]]);ge.on("setupVue",e=>e.use(Zi));function wn(e="white",t="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 ${t} ${e}`,zIndex:1}}function Gs(){return wn("red","20px")}const Hs=fn(),Ws=Symbol("Achievement");function rn(e){const t=ue(!1);return le(()=>{var i;const n=(i=e==null?void 0:e())!=null?i:{};if(n.id=he("achievement-"),n.type=Ws,n[de]=Us,n.earned=t,n.complete=function(){t.value=!0},y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"display"),y(n,"mark"),y(n,"image"),y(n,"style"),y(n,"classes"),n[me]=function(){const{visibility:r,display:a,earned:o,image:s,style:u,classes:c,mark:h,id:v}=this;return{visibility:r,display:a,earned:o,image:s,style:l(u),classes:c,mark:h,id:v}},n.shouldEarn){const r=n;Ne(()=>{var a,o;if(Z.active===T.id&&!r.earned.value&&l(r.visibility)===B.Visible&&((a=r.shouldEarn)==null?void 0:a.call(r))&&(r.earned.value=!0,(o=r.onComplete)==null||o.call(r),r.display)){const s=D(l(r.display));Hs.info(d("div",null,[d("h3",null,[C("Achievement earned!")]),d("div",null,[d(s,null,null)])]))}})}return n})}const Ys=E({props:{visibility:{type:k(Number),required:!0},onClick:Function,onHold:Function,display:{type:k(Object,String,Function),required:!0},title:k(Object,String,Function),style:k(String,Object,Array),canClick:{type:k(Boolean),required:!0},id:{type:String,required:!0}},components:{Node:Ge},setup(e){const{onClick:t,onHold:n,title:i,display:r}=ne(e),{start:a,stop:o}=mn(t,n),s=it(i),u=ct(r);return{start:a,stop:o,titleComponent:s,component:u,Visibility:B,unref:l}}}),Ks={key:0};function Zs(e,t,n,i,r,a){var s;const o=ce("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("button",{key:0,class:Q({feature:!0,tile:!0,can:e.unref(e.canClick),locked:!e.unref(e.canClick)}),style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(s=e.unref(e.style))!=null?s:{}]),onClick:t[0]||(t[0]=(...u)=>e.onClick&&e.onClick(...u)),onMousedown:t[1]||(t[1]=(...u)=>e.start&&e.start(...u)),onMouseleave:t[2]||(t[2]=(...u)=>e.stop&&e.stop(...u)),onMouseup:t[3]||(t[3]=(...u)=>e.stop&&e.stop(...u)),onTouchstartPassive:t[4]||(t[4]=(...u)=>e.start&&e.start(...u)),onTouchendPassive:t[5]||(t[5]=(...u)=>e.stop&&e.stop(...u)),onTouchcancelPassive:t[6]||(t[6]=(...u)=>e.stop&&e.stop(...u))},[e.title?(g(),x("div",Ks,[(g(),A(ee(e.titleComponent)))])):P("",!0),(g(),A(ee(e.component),{style:{"white-space":"pre-line"}})),d(o,{id:e.id},null,8,["id"])],38)):P("",!0)}var Js=q(Ys,[["render",Zs],["__scopeId","data-v-26ac0e82"]]);const Xs=E({props:{visibility:{type:k(Number),required:!0},rows:{type:k(Number),required:!0},cols:{type:k(Number),required:!0},cells:{type:k(Object),required:!0}},components:{GridCell:Js},setup(){const e=N(()=>ze[Z.theme].mergeAdjacent);function t(n){const{visibility:i,onClick:r,onHold:a,display:o,title:s,style:u,canClick:c,id:h}=n;return{visibility:i,onClick:r,onHold:a,display:o,title:s,style:u,canClick:c,id:h}}return{unref:l,gatherCellProps:t,Visibility:B,mergeAdjacent:e}}});function Qs(e,t,n,i,r,a){const o=ce("GridCell");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W({visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0}),class:"table"},[(g(!0),x(K,null,kt(e.unref(e.rows),s=>(g(),x("div",{class:Q(["row",{mergeAdjacent:e.mergeAdjacent}]),key:s},[(g(!0),x(K,null,kt(e.unref(e.cols),u=>(g(),A(o,Be({key:u},e.gatherCellProps(e.unref(e.cells)[s*100+u])),null,16))),128))],2))),128))],4)):P("",!0)}var el=q(Xs,[["render",Qs]]);function tl(e){return new Proxy({},nl(e))}function nl(e){const t=N(()=>{const n=[];for(let i=1;i<=l(e.rows);i++)for(let r=1;r<=l(e.cols);r++)n.push((i*100+r).toString());return n});return{get(n,i){if(i==="isProxy")return!0;if(typeof i=="symbol")return e[i];if(!!t.value.includes(i.toString()))return n[i]==null&&(n[i]=new Proxy(e,il(i.toString()))),n[i]},set(n,i,r){return console.warn("Cannot set grid cells",n,i,r),!1},ownKeys(){return t.value},has(n,i){return t.value.includes(i.toString())},getOwnPropertyDescriptor(n,i){if(t.value.includes(i.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function il(e){const t=["id","visibility","canClick","startState","state","style","classes","title","display","onClick","onHold"],n={};return{get(i,r,a){if(r==="isProxy")return!0;let o=i[r];return tt(o)?()=>o.call(a,e,i.getState(e)):o!=null||typeof r=="symbol"?o:(r=r.slice(0,1).toUpperCase()+r.slice(1),r==="startState"?o.call(a,e):(o=i[`get${r}`],tt(o)?(r in n||(n[r]=N(()=>o.call(a,e,i.getState(e)))),n[r].value):o!=null?l(o):(o=i[`on${r}`],tt(o)?()=>o.call(a,e,i.getState(e)):o!=null?o:i[r])))},set(i,r,a,o){return r=`set${r.slice(0,1).toUpperCase()+r.slice(1)}`,r in i&&tt(i[r])&&i[r].length<3?(i[r].call(o,e,a),!0):(console.warn(`No setter for "${r}".`,i),!1)},ownKeys(){return t},has(i,r){return t.includes(r.toString())},getOwnPropertyDescriptor(i,r){if(t.includes(r.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function rl(e){const t=ue({});return le(()=>{const n=e();if(n.id=he("grid-"),n[de]=el,n.cellState=t,n.getID=function(i){return n.id+"-"+i},n.getState=function(i){return this.cellState.value[i]!=null?t.value[i]:this.cells[i].startState},n.setState=function(i,r){t.value[i]=r},n.cells=tl(n),y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"rows"),y(n,"cols"),y(n,"getVisibility"),z(n,"getVisibility",B.Visible),y(n,"getCanClick"),z(n,"getCanClick",!0),y(n,"getStartState"),y(n,"getStyle"),y(n,"getClasses"),y(n,"getTitle"),y(n,"getDisplay"),n.onClick){const i=n.onClick.bind(n);n.onClick=function(r,a){l(n.cells[r].canClick)&&i(r,a)}}if(n.onHold){const i=n.onHold.bind(n);n.onHold=function(r,a){l(n.cells[r].canClick)&&i(r,a)}}return n[me]=function(){const{visibility:i,rows:r,cols:a,cells:o,id:s}=this;return{visibility:i,rows:r,cols:a,cells:o,id:s}},n})}var al=E({props:{display:{type:k(Object,String,Function),required:!0},visibility:{type:k(Number),required:!0},style:k(Object,String,Array),classes:k(Object),onClick:Function,onHold:Function,canClick:{type:k(Boolean),required:!0},small:Boolean,mark:k(Boolean,String),id:{type:String,required:!0}},components:{Node:Ge,MarkNode:ft},setup(e){const{display:t,onClick:n,onHold:i}=ne(e),r=xe("");Ne(()=>{const s=ae(t);if(s==null){r.value="";return}if(Te(s)){r.value=D(s);return}const u=D(s.title||"","h3"),c=D(s.description,"div");r.value=D(L(()=>d("span",null,[s.title?d("div",null,[d(u,null,null)]):null,d(c,null,null)])))});const{start:a,stop:o}=mn(n,i);return{start:a,stop:o,comp:r,Visibility:B,unref:l}}});function ol(e,t,n,i,r,a){var u;const o=ce("MarkNode"),s=ce("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("button",{key:0,style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(u=e.unref(e.style))!=null?u:[]]),onClick:t[0]||(t[0]=(...c)=>e.onClick&&e.onClick(...c)),onMousedown:t[1]||(t[1]=(...c)=>e.start&&e.start(...c)),onMouseleave:t[2]||(t[2]=(...c)=>e.stop&&e.stop(...c)),onMouseup:t[3]||(t[3]=(...c)=>e.stop&&e.stop(...c)),onTouchstartPassive:t[4]||(t[4]=(...c)=>e.start&&e.start(...c)),onTouchendPassive:t[5]||(t[5]=(...c)=>e.stop&&e.stop(...c)),onTouchcancelPassive:t[6]||(t[6]=(...c)=>e.stop&&e.stop(...c)),class:Q({feature:!0,clickable:!0,can:e.unref(e.canClick),locked:!e.unref(e.canClick),small:e.small,...e.unref(e.classes)})},[e.unref(e.comp)?(g(),A(ee(e.unref(e.comp)),{key:0})):P("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],38)):P("",!0)}var xi=q(al,[["render",ol],["__scopeId","data-v-5e7c90cf"]]);const sl=Symbol("Clickable");function $t(e){return le(()=>{var n;const t=(n=e==null?void 0:e())!=null?n:{};if(t.id=he("clickable-"),t.type=sl,t[de]=xi,y(t,"visibility"),z(t,"visibility",B.Visible),y(t,"canClick"),z(t,"canClick",!0),y(t,"classes"),y(t,"style"),y(t,"mark"),y(t,"display"),t.onClick){const i=t.onClick.bind(t);t.onClick=function(r){l(t.canClick)&&i(r)}}if(t.onHold){const i=t.onHold.bind(t);t.onHold=function(){l(t.canClick)&&i()}}return t[me]=function(){const{display:i,visibility:r,style:a,classes:o,onClick:s,onHold:u,canClick:c,small:h,mark:v,id:b}=this;return{display:i,visibility:r,style:l(a),classes:o,onClick:s,onHold:u,canClick:c,small:h,mark:v,id:b}},t})}function Ni(e){return $t(()=>{const t=e();y(t,"showNextAt"),z(t,"showNextAt",!0),z(t,"minimumGain",1),t.resetDescription==null?t.resetDescription=N(()=>f.lt(t.conversion.gainResource.value,1e3)?"Reset for ":""):y(t,"resetDescription"),t.display==null&&(t.display=L(()=>d("span",null,[l(t.resetDescription),d("b",null,[je(t.conversion.gainResource,f.max(l(t.conversion.actualGain),l(t.minimumGain)))])," ",t.conversion.gainResource.displayName,l(t.showNextAt)?d("div",null,[d("br",null,null),l(t.conversion.buyMax)?"Next:":"Req:"," ",je(t.conversion.baseResource,l(t.conversion.buyMax)||f.floor(l(t.conversion.actualGain)).neq(1)?l(t.conversion.nextAt):l(t.conversion.currentAt))," ",t.conversion.baseResource.displayName]):null]))),t.canClick==null&&(t.canClick=N(()=>f.gte(l(t.conversion.actualGain),l(t.minimumGain))));const n=t.onClick;return t.onClick=function(){!l(t.canClick)||(t.conversion.convert(),t.tree.reset(t.treeNode),t.resetTime&&(t.resetTime.value=t.resetTime[St]),n==null||n())},t})}function Si(e){return yt(()=>{const t=e();return y(t,"display"),z(t,"display",t.layerID),y(t,"append"),{...t,display:t.display,onClick:l(t.append)?function(){if(T.tabs.includes(t.layerID)){const n=T.tabs.lastIndexOf(t.layerID);T.tabs.splice(n,1)}else T.tabs.push(t.layerID)}:function(){T.tabs.splice(1,1,t.layerID)}}})}function Ci(e){return le(()=>{const t=e();return t.currentGain==null&&(t.currentGain=N(()=>{let n=t.gainModifier?t.gainModifier.apply(t.scaling.currentGain(t)):t.scaling.currentGain(t);return n=f.floor(n).max(0),l(t.buyMax)||(n=n.min(1)),n})),t.actualGain==null&&(t.actualGain=t.currentGain),t.currentAt==null&&(t.currentAt=N(()=>{let n=t.scaling.currentAt(t);return t.roundUpCost&&(n=f.ceil(n)),n})),t.nextAt==null&&(t.nextAt=N(()=>{let n=t.scaling.nextAt(t);return t.roundUpCost&&(n=f.ceil(n)),n})),t.convert==null&&(t.convert=function(){var i;const n=l(t.currentGain);t.gainResource.value=f.add(t.gainResource.value,n),t.spend(n),(i=t.onConvert)==null||i.call(t,n)}),t.spend==null&&(t.spend=function(){t.baseResource.value=0}),y(t,"currentGain"),y(t,"actualGain"),y(t,"currentAt"),y(t,"nextAt"),y(t,"buyMax"),z(t,"buyMax",!0),y(t,"roundUpCost"),z(t,"roundUpCost",!0),t})}function $i(e,t){const n=Me(e),i=Me(t);return{currentGain(r){let a=l(r.baseResource.value);if(r.costModifier&&(a=r.costModifier.apply(a)),f.lt(a,l(n)))return 0;const o=f.div(a,l(n)).pow(l(i));return o.isNan()?new f(0):o},currentAt(r){let a=l(r.currentGain);return r.gainModifier&&(a=r.gainModifier.revert(a)),a=f.max(0,a).root(l(i)).times(l(n)),r.costModifier&&(a=r.costModifier.revert(a)),a},nextAt(r){let a=f.add(l(r.currentGain),1).floor();return r.gainModifier&&(a=r.gainModifier.revert(a)),a=f.max(0,a).root(l(i)).times(l(n)).max(l(n)),r.costModifier&&(a=r.costModifier.revert(a)),a}}}function ll(e){return Ci(e)}function ul(e){return Ci(()=>{const t=e();return z(t,"buyMax",!1),t.currentGain==null&&(t.currentGain=N(()=>{let n=t.gainModifier?t.gainModifier.apply(t.scaling.currentGain(t)):t.scaling.currentGain(t);return n=f.floor(n).max(t.gainResource.value),l(t.buyMax)||(n=n.min(f.add(t.gainResource.value,1))),n})),t.actualGain==null&&(t.actualGain=N(()=>{let n=f.sub(f.floor(t.scaling.currentGain(t)),t.gainResource.value).max(0);return l(t.buyMax)||(n=n.min(1)),n})),z(t,"convert",function(){var i;const n=l(t.actualGain);t.gainResource.value=t.gainModifier?t.gainModifier.apply(l(t.currentGain)):l(t.currentGain),t.spend(n),(i=t.onConvert)==null||i.call(t,n)}),t})}function dl(e,t,n=.5){return f.lte(e,t)?e:f.pow(e,n).times(f.pow(t,f.sub(1,n)))}function cl(e,t,n=.5){return{...e,currentGain:i=>dl(e.currentGain(i),l(t),l(n))}}const fl=E({props:{visibility:{type:k(Number),required:!0},display:{type:k(Object,String,Function),required:!0},title:{type:k(Object,String,Function),required:!0},color:k(String),collapsed:{type:Object,required:!0},style:k(Object,String,Array),titleStyle:k(Object,String,Array),bodyStyle:k(Object,String,Array),classes:k(Object),id:{type:String,required:!0}},components:{Node:Ge,CollapseTransition:Hi},setup(e){const{title:t,display:n}=ne(e),i=ct(t),r=ct(n),a=N(()=>ze[Z.theme].mergeAdjacent);return{titleComponent:i,bodyComponent:r,stacked:a,unref:l,Visibility:B}}}),pl=e=>(qe("data-v-338c9154"),e=e(),Le(),e),ml=pl(()=>p("span",{class:"toggle"},"\u25BC",-1));function gl(e,t,n,i,r,a){var u;const o=ce("CollapseTransition"),s=ce("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,class:Q(["infobox",{collapsed:e.unref(e.collapsed),stacked:e.stacked,...e.unref(e.classes)}]),style:W([{borderColor:e.unref(e.color),visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(u=e.unref(e.style))!=null?u:{}])},[p("button",{class:"title",style:W([{backgroundColor:e.unref(e.color)},e.unref(e.titleStyle)||[]]),onClick:t[0]||(t[0]=c=>e.collapsed.value=!e.unref(e.collapsed))},[ml,(g(),A(ee(e.titleComponent)))],4),d(o,null,{default:V(()=>[e.unref(e.collapsed)?P("",!0):(g(),x("div",{key:0,class:"body",style:W({backgroundColor:e.unref(e.color)})},[(g(),A(ee(e.bodyComponent),{style:W(e.unref(e.bodyStyle))},null,8,["style"]))],4))]),_:1}),d(s,{id:e.id},null,8,["id"])],6)):P("",!0)}var vl=q(fl,[["render",gl],["__scopeId","data-v-338c9154"]]);const hl=Symbol("Infobox");function Mi(e){const t=ue(!1);return le(()=>{const n=e();return n.id=he("infobox-"),n.type=hl,n[de]=vl,n.collapsed=t,y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"color"),y(n,"style"),y(n,"titleStyle"),y(n,"bodyStyle"),y(n,"classes"),y(n,"title"),y(n,"display"),n[me]=function(){const{visibility:i,display:r,title:a,color:o,collapsed:s,style:u,titleStyle:c,bodyStyle:h,classes:v,id:b}=this;return{visibility:i,display:r,title:a,color:o,collapsed:s,style:l(u),titleStyle:c,bodyStyle:h,classes:v,id:b}},n})}var bl=E({props:{style:k(String,Object,Array),classes:k(Object),onInit:{type:Function,required:!0},id:{type:String,required:!0},onContainerResized:Function,onHotReload:Function},setup(e){const t=O(null),n=new ResizeObserver(a),i=O(null);Tt(()=>{var s,u;const o=i.value;o!=null&&(n.observe(o),t.value=new Ji({resizeTo:o,backgroundAlpha:0}),(s=i.value)==null||s.appendChild(t.value.view),(u=e.onInit)==null||u.call(e,t.value)),a(),e.onHotReload&&Ve(e.onHotReload)}),zi(()=>{var o;(o=t.value)==null||o.destroy()});let r=!0;function a(){r&&(r=!1,Ve(()=>{var o;i.value!=null&&e.onContainerResized&&(e.onContainerResized(i.value.getBoundingClientRect()),(o=t.value)==null||o.resize()),r=!0}))}return document.fonts.ready.then(a),{unref:l,resizeListener:i}}});function yl(e,t,n,i,r,a){return g(),x("div",{ref:"resizeListener",class:Q(["resize-listener",e.unref(e.classes)]),style:W(e.unref(e.style))},null,6)}var _l=q(bl,[["render",yl],["__scopeId","data-v-8adf21fa"]]);const kl=Symbol("Particles");function wl(e){return le(()=>{var r,a;const t=(r=e==null?void 0:e())!=null?r:{};t.id=he("particles-"),t.type=kl,t[de]=_l,t.app=xe(null),t.addEmitter=o=>{const s=t;return s.app.value?Promise.resolve(new Vn(s.app.value.stage,o)):new Promise(u=>{n.push({resolve:u,config:o})})};let n=[];function i(o){t.app.value=o,n.forEach(({resolve:s,config:u})=>s(new Vn(o.stage,u))),n=[]}return t.onContainerResized=(a=t.onContainerResized)==null?void 0:a.bind(t),t[me]=function(){const{id:o,style:s,classes:u,onContainerResized:c,onHotReload:h}=this;return{id:o,style:l(s),classes:u,onContainerResized:c,onHotReload:h,onInit:i}},t})}window.upgradeConfig=Xi;const xl=Symbol("Reset");function Ti(e){return le(()=>{const t=e();return t.id=he("reset-"),t.type=xl,t.reset=function(){var i;const n=r=>{r&&typeof r=="object"&&(Nt in r?r[Nt].value=r[St]:!(r instanceof f)&&!pe(r)&&Object.values(r).forEach(a=>n(a)))};l(t.thingsToReset).forEach(n),ge.emit("reset",t),(i=t.onReset)==null||i.call(t)},y(t,"thingsToReset"),t})}const Dt={};ge.on("removeLayer",e=>{var t;(t=Dt[e.id])==null||t.call(Dt),Dt[e.id]=void 0});const Nl=E({__name:"Sticky",setup(e){const t=O("0"),n=new ResizeObserver(r),i=O(null);function r(){let a=i.value;if(a==null)return;let o=0;for(;a.previousSibling;){const s=a.previousSibling;s.dataset&&"vSticky"in s.dataset&&(o+=s.offsetHeight),a=s}t.value=o+"px"}return Ve(r),document.fonts.ready.then(r),Tt(()=>{var o;const a=(o=i.value)==null?void 0:o.parentElement;a&&n.observe(a)}),(a,o)=>(g(),x("div",{class:"sticky",style:W({top:t.value}),ref_key:"element",ref:i,"data-v-sticky":""},[De(a.$slots,"default",{},void 0,!0)],4))}});var Wt=q(Nl,[["__scopeId","data-v-21495571"]]);const Ii=E({__name:"Resource",props:{resource:null,color:null},setup(e){const t=e,n=N(()=>je(t.resource));return(i,r)=>(g(),x("h2",{style:W({color:e.color,"text-shadow":"0px 0px 10px "+e.color})},U(l(n)),5))}});const Sl={class:"main-display"},Cl={key:0},$l={key:1},Ml=C(", "),Pi=E({__name:"MainDisplay",props:{resource:null,color:null,classes:null,style:null,effectDisplay:null},setup(e){const n=ne(e),i=O(null),r=it(n.effectDisplay),a=N(()=>f.lt(n.resource.value,"1e1000"));return(o,s)=>(g(),A(Wt,null,{default:V(()=>{var u,c;return[p("div",{class:"main-display-container",style:W({height:`${((c=(u=i.value)==null?void 0:u.$el.clientHeight)!=null?c:0)+50}px`})},[p("div",Sl,[l(a)?(g(),x("span",Cl,"You have ")):P("",!0),d(Ii,{resource:e.resource,color:e.color||"white"},null,8,["resource","color"]),C(" "+U(e.resource.displayName),1),l(r)?(g(),x("span",$l,[Ml,(g(),A(ee(l(r)),{ref_key:"effectRef",ref:i},null,512))])):P("",!0)])],4)]}),_:1}))}});function un(e,t){return y(t,"display"),y(t,"classes"),y(t,"style"),y(t,"direction"),z(t,"direction",X.Up),y(t,"xoffset"),y(t,"yoffset"),t.pinnable&&("pinned"in e?(console.error("Cannot add pinnable tooltip to element that already has a property called 'pinned'"),t.pinnable=!1):e.pinned=t.pinned=ue(!1)),Ve(()=>{const n=e[de];e[de]=re;const i=e[me].bind(e);e[me]=function(){const{display:a,classes:o,style:s,direction:u,xoffset:c,yoffset:h,pinned:v}=this;return{element:{[de]:n,[me]:i},display:a,classes:o,style:l(s),direction:u,xoffset:c,yoffset:h,pinned:v}}.bind(t)}),t}function Tl(e){return le(()=>{const{addend:t,description:n,enabled:i}=e(),r=Me(t),a=Me(n),o=i==null?void 0:Me(i);return{apply:s=>f.add(s,l(r)),revert:s=>f.sub(s,l(r)),enabled:o,description:n==null?void 0:L(()=>d("div",{class:"modifier-container"},[d("span",{class:"modifier-amount"},[f.gte(l(r),0)?"+":"",se(l(r))]),l(a)?d("span",{class:"modifier-description"},[Re(l(a))]):null]))}})}function Il(e){return le(()=>{const{multiplier:t,description:n,enabled:i}=e(),r=Me(t),a=Me(n),o=i==null?void 0:Me(i);return{apply:s=>f.times(s,l(r)),revert:s=>f.div(s,l(r)),enabled:o,description:n==null?void 0:L(()=>d("div",{class:"modifier-container"},[d("span",{class:"modifier-amount"},[C("x"),se(l(r))]),l(a)?d("span",{class:"modifier-description"},[Re(l(a))]):null]))}})}function Pl(e){return le(()=>{const{exponent:t,description:n,enabled:i}=e(),r=Me(t),a=Me(n),o=i==null?void 0:Me(i);return{apply:s=>f.pow(s,l(r)),revert:s=>f.root(s,l(r)),enabled:o,description:n==null?void 0:L(()=>d("div",{class:"modifier-container"},[d("span",{class:"modifier-amount"},[C("^"),se(l(r))]),l(a)?d("span",{class:"modifier-description"},[Re(l(a))]):null]))}})}function Ol(e){return le(()=>{const t=e();return{apply:n=>t.filter(i=>l(i.enabled)!==!1).reduce((i,r)=>r.apply(i),n),revert:t.every(n=>n.revert!=null)?n=>t.filter(i=>l(i.enabled)!==!1).reduceRight((i,r)=>r.revert(i),n):void 0,enabled:N(()=>t.filter(n=>l(n.enabled)!==!1).length>0),description:L(()=>d(K,null,[t.filter(n=>l(n.enabled)!==!1).map(n=>l(n.description)).filter(n=>n).map(Re)]))}})}function Al(e,t,n,i=1,r="",a="Base"){return d("div",null,[d("h3",null,[e,t?d("span",{class:"subtitle"},[C(" ("),t,C(")")]):null]),d("br",null,null),d("div",{class:"modifier-container"},[d("span",{class:"modifier-amount"},[se(i),r]),d("span",{class:"modifier-description"},[Re(a)])]),Re(l(n.description)),d("hr",null,null),C("Total: "),se(n.apply(i)),r])}const El={class:"field"},Vl={key:0,class:"field-title"},Fl=["min","max"],Dl=E({__name:"Slider",props:{title:null,modelValue:null,min:null,max:null},emits:["update:modelValue"],setup(e,{emit:t}){const i=ne(e),r=N({get(){return String(l(i.modelValue)||0)},set(a){t("update:modelValue",Number(a))}});return(a,o)=>(g(),x("div",El,[e.title?(g(),x("span",Vl,U(e.title),1)):P("",!0),d(re,{display:`${l(r)}`,class:Q({fullWidth:!e.title}),direction:l(X).Down},{default:V(()=>[Kt(p("input",{type:"range","onUpdate:modelValue":o[0]||(o[0]=s=>pe(r)?r.value=s:null),min:e.min,max:e.max},null,8,Fl),[[Hn,l(r)]])]),_:1},8,["display","class","direction"])]))}});var Rl=q(Dl,[["__scopeId","data-v-1b053b9f"]]);const Bl=E({__name:"VerticalRule",props:{height:null},setup(e){return(t,n)=>(g(),x("div",{class:"vr",style:W({height:e.height})},null,4))}});var ql=q(Bl,[["__scopeId","data-v-5e0a978a"]]);const Ll=E({props:{progress:{type:k(String,Object,Number),required:!0},width:{type:k(Number),required:!0},height:{type:k(Number),required:!0},direction:{type:k(String),required:!0},display:k(Object,String,Function),visibility:{type:k(Number),required:!0},style:k(Object,String,Array),classes:k(Object),borderStyle:k(Object,String,Array),textStyle:k(Object,String,Array),baseStyle:k(Object,String,Array),fillStyle:k(Object,String,Array),mark:k(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:ft,Node:Ge},setup(e){const{progress:t,width:n,height:i,direction:r,display:a}=ne(e),o=N(()=>{let c=t.value instanceof f?t.value.toNumber():Number(t.value);return(1-Math.min(Math.max(c,0),1))*100}),s=N(()=>{const c={width:ae(n)+.5+"px",height:ae(i)+.5+"px"};switch(l(r)){case X.Up:c.clipPath=`inset(${o.value}% 0% 0% 0%)`,c.width=ae(n)+1+"px";break;case X.Down:c.clipPath=`inset(0% 0% ${o.value}% 0%)`,c.width=ae(n)+1+"px";break;case X.Right:c.clipPath=`inset(0% ${o.value}% 0% 0%)`;break;case X.Left:c.clipPath=`inset(0% 0% 0% ${o.value} + '%)`;break;case X.Default:c.clipPath="inset(0% 50% 0% 0%)";break}return c}),u=it(a);return{normalizedProgress:o,barStyle:s,component:u,unref:l,Visibility:B}}});function jl(e,t,n,i,r,a){var u,c,h,v,b,w,S;const o=ce("MarkNode"),s=ce("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px",visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(u=e.unref(e.style))!=null?u:{}]),class:Q({bar:!0,...e.unref(e.classes)})},[p("div",{class:"overlayTextContainer border",style:W([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px"},(c=e.unref(e.borderStyle))!=null?c:{}])},[e.component?(g(),x("span",{key:0,class:"overlayText",style:W(e.unref(e.textStyle))},[(g(),A(ee(e.component)))],4)):P("",!0)],4),p("div",{class:"border",style:W([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px"},(h=e.unref(e.style))!=null?h:{},(v=e.unref(e.baseStyle))!=null?v:{},(b=e.unref(e.borderStyle))!=null?b:{}])},[p("div",{class:"fill",style:W([e.barStyle,(w=e.unref(e.style))!=null?w:{},(S=e.unref(e.fillStyle))!=null?S:{}])},null,4)],4),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],6)):P("",!0)}var zl=q(Ll,[["render",jl],["__scopeId","data-v-02d0d7b2"]]);const Ul=Symbol("Bar");function an(e){return le(()=>{const t=e();return t.id=he("bar-"),t.type=Ul,t[de]=zl,y(t,"visibility"),z(t,"visibility",B.Visible),y(t,"width"),y(t,"height"),y(t,"direction"),y(t,"style"),y(t,"classes"),y(t,"borderStyle"),y(t,"baseStyle"),y(t,"textStyle"),y(t,"fillStyle"),y(t,"progress"),y(t,"display"),y(t,"mark"),t[me]=function(){const{progress:n,width:i,height:r,direction:a,display:o,visibility:s,style:u,classes:c,borderStyle:h,textStyle:v,baseStyle:b,fillStyle:w,mark:S,id:$}=this;return{progress:n,width:i,height:r,direction:a,display:o,visibility:s,style:l(u),classes:c,borderStyle:h,textStyle:v,baseStyle:b,fillStyle:w,mark:S,id:$}},t})}const Gl=Symbol("Buyable");function Hl(e){const t=ue(0);return le(()=>{var a,o;const n=e();if(n.canPurchase==null&&(n.resource==null||n.cost==null))throw console.warn("Cannot create buyable without a canPurchase property or a resource and cost property",n),"Cannot create buyable without a canPurchase property or a resource and cost property";n.id=he("buyable-"),n.type=Gl,n[de]=xi,n.amount=t,n.canAfford=N(()=>{const s=n,u=l(s.cost);return s.resource!=null&&u!=null&&f.gte(s.resource.value,u)}),n.canPurchase==null&&(n.canPurchase=N(()=>l(n.visibility)===B.Visible&&l(n.canAfford)&&f.lt(n.amount.value,l(n.purchaseLimit)))),n.maxed=N(()=>f.gte(n.amount.value,l(n.purchaseLimit))),y(n,"classes");const i=n.classes;n.classes=N(()=>{const s=l(i)||{};return n.maxed.value&&(s.bought=!0),s}),y(n,"canPurchase"),n.canClick=n.canPurchase,n.onClick=n.purchase=(o=(a=n.onClick)!=null?a:n.purchase)!=null?o:function(){var c;const s=n;if(!l(s.canPurchase))return;const u=l(s.cost);s.cost!=null&&s.resource!=null&&(s.resource.value=f.sub(s.resource.value,u),s.amount.value=f.add(s.amount.value,1)),(c=s.onPurchase)==null||c.call(s,u)},y(n,"display");const r=n.display;return n.display=L(()=>{const s=l(r);if(Te(s)){const u=D(s);return d(u,null,null)}if(s!=null&&n.cost!=null&&n.resource!=null){const u=n,c=D(s.title||"","h3"),h=D(s.description||""),v=D(s.effectDisplay||"");return d("span",null,[s.title?d("div",null,[d(c,null,null)]):null,s.description?d(h,null,null):null,s.showAmount===!1?null:d("div",null,[d("br",null,null),l(u.purchaseLimit)===f.dInf?d(K,null,[C("Amount: "),ve(u.amount.value)]):d(K,null,[C("Amount: "),ve(u.amount.value),C(" /")," ",ve(l(u.purchaseLimit))])]),s.effectDisplay?d("div",null,[d("br",null,null),C("Currently: "),d(v,null,null)]):null,u.cost&&!u.maxed.value?d("div",null,[d("br",null,null),C("Cost: "),se(l(u.cost)||0)," ",n.resource.displayName]):null])}return""}),y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"cost"),y(n,"resource"),y(n,"purchaseLimit"),z(n,"purchaseLimit",f.dInf),y(n,"style"),y(n,"mark"),y(n,"small"),n[me]=function(){const{display:s,visibility:u,style:c,classes:h,onClick:v,canClick:b,small:w,mark:S,id:$}=this;return{display:s,visibility:u,style:l(c),classes:h,onClick:v,canClick:b,small:w,mark:S,id:$}},n})}var Wl=E({props:{active:{type:k(Boolean),required:!0},maxed:{type:k(Boolean),required:!0},canComplete:{type:k(Boolean),required:!0},display:k(String,Object,Function),visibility:{type:k(Number),required:!0},style:k(String,Object,Array),classes:k(Object),completed:{type:k(Boolean),required:!0},canStart:{type:k(Boolean),required:!0},mark:k(Boolean,String),id:{type:String,required:!0},toggle:{type:Function,required:!0}},components:{MarkNode:ft,Node:Ge},setup(e){const{active:t,maxed:n,canComplete:i,display:r}=ne(e),a=N(()=>t.value?i.value?"Finish":"Exit Early":n.value?"Completed":"Start"),o=xe(""),s=N(()=>{const u=ae(t),c=ae(i);return u?c?Gs():wn():{}});return Ne(()=>{const u=ae(r);if(u==null){o.value="";return}if(Te(u)){o.value=D(u);return}const c=D(u.title||"","h3"),h=D(u.description,"div"),v=D(u.goal||""),b=D(u.reward||""),w=D(u.effectDisplay||"");o.value=D(L(()=>d("span",null,[u.title?d("div",null,[d(c,null,null)]):null,d(h,null,null),u.goal?d("div",null,[d("br",null,null),C("Goal: "),d(v,null,null)]):null,u.reward?d("div",null,[d("br",null,null),C("Reward: "),d(b,null,null)]):null,u.effectDisplay?d("div",null,[C("Currently: "),d(w,null,null)]):null])))}),{buttonText:a,notifyStyle:s,comp:o,Visibility:B,unref:l}}});const Yl=["disabled"];function Kl(e,t,n,i,r,a){var u;const o=ce("MarkNode"),s=ce("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.notifyStyle,(u=e.unref(e.style))!=null?u:{}]),class:Q({feature:!0,challenge:!0,done:e.unref(e.completed),canStart:e.unref(e.canStart)&&!e.unref(e.maxed),maxed:e.unref(e.maxed),...e.unref(e.classes)})},[p("button",{class:"toggleChallenge",onClick:t[0]||(t[0]=(...c)=>e.toggle&&e.toggle(...c)),disabled:!e.unref(e.canStart)||e.unref(e.maxed)},U(e.buttonText),9,Yl),e.unref(e.comp)?(g(),A(ee(e.unref(e.comp)),{key:0})):P("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],6)):P("",!0)}var Zl=q(Wl,[["render",Kl],["__scopeId","data-v-4d2947df"]]);const Jl=Symbol("ChallengeType");function Xl(e){const t=ue(0),n=ue(!1);return le(()=>{const i=e();if(i.canComplete==null&&(i.resource==null||i.goal==null))throw console.warn("Cannot create challenge without a canComplete property or a resource and goal property",i),"Cannot create challenge without a canComplete property or a resource and goal property";i.id=he("challenge-"),i.type=Jl,i[de]=Zl,i.completions=t,i.active=n,i.completed=N(()=>f.gt(i.completions.value,0)),i.maxed=N(()=>f.gte(i.completions.value,l(i.completionLimit))),i.toggle=function(){var o,s,u,c,h;const a=i;if(a.active.value){if(l(a.canComplete)&&!a.maxed.value){let v=l(a.canComplete);typeof v=="boolean"&&(v=1),a.completions.value=f.min(f.add(a.completions.value,v),l(a.completionLimit)),(o=a.onComplete)==null||o.call(a)}a.active.value=!1,(s=a.onExit)==null||s.call(a),(u=a.reset)==null||u.reset()}else l(a.canStart)&&l(a.visibility)===B.Visible&&!a.maxed.value&&((c=a.reset)==null||c.reset(),a.active.value=!0,(h=a.onEnter)==null||h.call(a))},i.complete=function(a){var u,c,h;const o=i;let s=l(o.canComplete);o.active.value&&s!==!1&&(s===!0||f.neq(0,s))&&!o.maxed.value&&(typeof s=="boolean"&&(s=1),o.completions.value=f.min(f.add(o.completions.value,s),l(o.completionLimit)),(u=o.onComplete)==null||u.call(o),a!==!0&&(o.active.value=!1,(c=o.onExit)==null||c.call(o),(h=o.reset)==null||h.reset()))},y(i,"visibility"),z(i,"visibility",B.Visible);const r=i.visibility;return i.visibility=N(()=>Z.hideChallenges===!0&&l(i.maxed)?B.None:l(r)),i.canComplete==null&&(i.canComplete=N(()=>{const a=i;return!a.active.value||a.resource==null||a.goal==null?!1:f.gte(a.resource.value,l(a.goal))})),i.mark==null&&(i.mark=N(()=>f.gt(l(i.completionLimit),1)&&!!l(i.maxed))),y(i,"canStart"),z(i,"canStart",!0),y(i,"canComplete"),y(i,"completionLimit"),z(i,"completionLimit",1),y(i,"mark"),y(i,"goal"),y(i,"classes"),y(i,"style"),y(i,"display"),i.reset!=null&&ge.on("reset",a=>{a===i.reset&&i.active.value&&i.toggle()}),i[me]=function(){const{active:a,maxed:o,canComplete:s,display:u,visibility:c,style:h,classes:v,completed:b,canStart:w,mark:S,id:$,toggle:R}=this;return{active:a,maxed:o,canComplete:s,display:u,visibility:c,style:l(h),classes:v,completed:b,canStart:w,mark:S,id:$,toggle:R}},i})}ge.on("loadSettings",e=>{z(e,"hideChallenges",!1)});si(L(()=>d(we,{title:"Hide Maxed Challenges","onUpdate:modelValue":e=>Z.hideChallenges=e,modelValue:Z.hideChallenges},null)));const Xt=Yt({}),xn=Symbol("Hotkey");function Ln(e){return le(()=>{const t=e();return t.type=xn,y(t,"enabled"),z(t,"enabled",!0),y(t,"description"),t})}ge.on("addLayer",e=>{ti(e,xn).forEach(t=>{Xt[t.key]=t})});ge.on("removeLayer",e=>{ti(e,xn).forEach(t=>{Xt[t.key]=void 0})});document.onkeydown=function(e){var i;if(((i=e.target)==null?void 0:i.tagName)==="INPUT"||Nn.value&&!T.keepGoing)return;let t=e.key;e.shiftKey&&(t="shift+"+t),e.ctrlKey&&(t="ctrl+"+t);const n=Xt[t];n&&l(n.enabled)&&(e.preventDefault(),n.onPress())};ea(L(()=>{const e=Object.values(Xt).filter(t=>l(t==null?void 0:t.enabled));return e.length===0?"":d("div",null,[d("br",null,null),d("h4",null,[C("Hotkeys")]),e.map(t=>d("div",null,[t==null?void 0:t.key,C(": "),t==null?void 0:t.description]))])}));const Ql=Symbol("Links");function eu(e){return le(()=>{const t=e();return t.type=Ql,t[de]=_i,y(t,"links"),t[me]=function(){const{links:n}=this;return{links:n}},t})}var tu=E({props:{visibility:{type:k(Number),required:!0},display:{type:k(String,Object,Function),required:!0},style:k(String,Object,Array),classes:k(Object),earned:{type:k(Boolean),required:!0},id:{type:String,required:!0}},components:{Node:Ge},setup(e){const{display:t}=ne(e),n=xe("");return Ne(()=>{const i=ae(t);if(i==null){n.value="";return}if(Te(i)){n.value=D(i);return}const r=D(i.requirement,"h3"),a=D(i.effectDisplay||"","b"),o=D(i.optionsDisplay||"","span");n.value=D(L(()=>d("span",null,[d(r,null,null),i.effectDisplay?d("div",null,[d(a,null,null)]):null,i.optionsDisplay?d("div",{class:"equal-spaced"},[d(o,null,null)]):null])))}),{comp:n,unref:l,Visibility:B}}});function nu(e,t,n,i,r,a){var s;const o=ce("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(s=e.unref(e.style))!=null?s:{}]),class:Q({feature:!0,milestone:!0,done:e.unref(e.earned),...e.unref(e.classes)})},[(g(),A(ee(e.unref(e.comp)))),d(o,{id:e.id},null,8,["id"])],6)):P("",!0)}var iu=q(tu,[["render",nu],["__scopeId","data-v-f4e8794e"]]);const ru=fn(),au=Symbol("Milestone");let Ke;(function(e){e.All="all",e.Configurable="configurable",e.Incomplete="incomplete",e.None="none"})(Ke||(Ke={}));function jn(e){const t=ue(!1);return le(()=>{var r;const n=(r=e==null?void 0:e())!=null?r:{};n.id=he("milestone-"),n.type=au,n[de]=iu,n.earned=t,n.complete=function(){t.value=!0},y(n,"visibility"),z(n,"visibility",B.Visible);const i=n.visibility;if(n.visibility=N(()=>{const a=l(n.display);switch(Z.msDisplay){default:case Ke.All:return l(i);case Ke.Configurable:return l(n.earned)&&!(a!=null&&typeof a=="object"&&"optionsDisplay"in a)?B.None:l(i);case Ke.Incomplete:return l(n.earned)?B.None:l(i);case Ke.None:return B.None}}),y(n,"style"),y(n,"classes"),y(n,"display"),n[me]=function(){const{visibility:a,display:o,style:s,classes:u,earned:c,id:h}=this;return{visibility:a,display:o,style:l(s),classes:u,earned:c,id:h}},n.shouldEarn){const a=n;Ne(()=>{var o,s;if(Z.active===T.id&&!a.earned.value&&l(a.visibility)===B.Visible&&((o=a.shouldEarn)==null?void 0:o.call(a))&&(a.earned.value=!0,(s=a.onComplete)==null||s.call(a),a.display)){const u=l(a.display),c=D(Te(u)?u:u.requirement);ru(d(K,null,[d("h3",null,[C("Milestone earned!")]),d("div",null,[d(c,null,null)])]))}})}return n})}ge.on("loadSettings",e=>{z(e,"msDisplay",Ke.All)});const ou=Object.values(Ke).map(e=>({label:ei(e),value:e}));si(L(()=>d(yn,{title:"Show Milestones",options:ou,"onUpdate:modelValue":e=>Z.msDisplay=e,modelValue:Z.msDisplay},null)));const su=E({__name:"Tab",props:{display:null},setup(e){const t=e,{display:n}=ne(t),i=ct(n);return(r,a)=>(g(),A(ee(l(i))))}}),lu=Symbol("Tab");function Rt(e){return le(()=>{const t=e();return t.id=he("tab-"),t.type=lu,t[de]=su,t[me]=function(){const{display:n}=this;return{display:n}},t})}const uu=E({props:{visibility:{type:k(Number),required:!0},display:{type:k(Object,String,Function),required:!0},style:k(String,Object,Array),classes:k(Object),glowColor:k(String),active:Boolean,floating:Boolean},emits:["selectTab"],setup(e,{emit:t}){const{display:n,glowColor:i,floating:r}=ne(e),a=ct(n),o=N(()=>{const u=ae(i);return u?l(r)?wn(u):{boxShadow:`0px 9px 5px -6px ${u}`}:{}});function s(){t("selectTab")}return{selectTab:s,component:a,glowColorStyle:o,unref:l,Visibility:B}}});function du(e,t,n,i,r,a){var o;return e.unref(e.visibility)!==e.Visibility.None?(g(),x("button",{key:0,onClick:t[0]||(t[0]=(...s)=>e.selectTab&&e.selectTab(...s)),class:Q(["tabButton",{active:e.active,...e.unref(e.classes)}]),style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},e.glowColorStyle,(o=e.unref(e.style))!=null?o:{}])},[(g(),A(ee(e.component)))],6)):P("",!0)}var Oi=q(uu,[["render",du],["__scopeId","data-v-610a2549"]]);const cu=E({props:{visibility:{type:k(Number),required:!0},activeTab:{type:k(Object),required:!0},selected:{type:Object,required:!0},tabs:{type:k(Object),required:!0},style:k(String,Object,Array),classes:k(Object),buttonContainerStyle:k(String,Object,Array),buttonContainerClasses:k(Object)},components:{Sticky:Wt,TabButton:Oi},setup(e){const{activeTab:t}=ne(e),n=N(()=>ze[Z.theme].floatingTabs),i=xe("");Ne(()=>{const s=ae(t);if(s==null){i.value="";return}if(Te(s)){i.value=D(s);return}i.value=D(l(s.display))});const r=N(()=>{const s=ae(t);return Te(s)||!s?void 0:l(s.classes)}),a=N(()=>{const s=ae(t);return Te(s)||!s?void 0:l(s.style)});function o(s){const{display:u,style:c,classes:h,glowColor:v,visibility:b}=s;return{display:u,style:l(c),classes:h,glowColor:v,visibility:b}}return{floating:n,tabClasses:r,tabStyle:a,Visibility:B,component:i,gatherButtonProps:o,unref:l}}});function fu(e,t,n,i,r,a){var u,c;const o=ce("TabButton"),s=ce("Sticky");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("div",{key:0,class:Q(["tab-family-container",{...e.unref(e.classes),...e.tabClasses}]),style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(u=e.unref(e.style))!=null?u:[],(c=e.tabStyle)!=null?c:[]])},[d(s,{class:Q(["tab-buttons-container",e.unref(e.buttonContainerClasses)]),style:W(e.unref(e.buttonContainerStyle))},{default:V(()=>[p("div",{class:Q(["tab-buttons",{floating:e.floating}])},[(g(!0),x(K,null,kt(e.unref(e.tabs),(h,v)=>(g(),A(o,Be({onSelectTab:b=>e.selected.value=v,floating:e.floating,key:v,active:e.unref(h.tab)===e.unref(e.activeTab)},e.gatherButtonProps(h)),null,16,["onSelectTab","floating","active"]))),128))],2)]),_:1},8,["class","style"]),e.unref(e.activeTab)?(g(),A(ee(e.unref(e.component)),{key:0})):P("",!0)],6)):P("",!0)}var pu=q(cu,[["render",fu],["__scopeId","data-v-11575f45"]]);const mu=Symbol("TabButton"),gu=Symbol("TabFamily");function zn(e,t){if(Object.keys(e).length===0)throw console.warn("Cannot create tab family with 0 tabs"),"Cannot create tab family with 0 tabs";const n=ue(Object.keys(e)[0]);return le(()=>{var a;const i=(a=t==null?void 0:t())!=null?a:{};i.id=he("tabFamily-"),i.type=gu,i[de]=pu,i.tabs=Object.keys(e).reduce((o,s)=>{const u=e[s]();return u.type=mu,u[de]=Oi,y(u,"visibility"),z(u,"visibility",B.Visible),y(u,"tab"),y(u,"display"),y(u,"classes"),y(u,"style"),y(u,"glowColor"),o[s]=u,o},{}),i.selected=n,i.activeTab=N(()=>{const o=l(r.tabs);if(n.value in o&&l(o[n.value].visibility)===B.Visible)return l(o[n.value].tab);const s=Object.values(o).find(u=>l(u.visibility)===B.Visible);return s?l(s.tab):null}),y(i,"visibility"),z(i,"visibility",B.Visible),y(i,"classes"),y(i,"style"),y(i,"buttonContainerClasses"),y(i,"buttonContainerStyle"),i[me]=function(){const{visibility:o,activeTab:s,selected:u,tabs:c,style:h,classes:v,buttonContainerClasses:b,buttonContainerStyle:w}=this;return{visibility:o,activeTab:s,selected:u,tabs:c,style:l(h),classes:v,buttonContainerClasses:b,buttonContainerStyle:w}};const r=i;return r})}var vu=E({props:{display:{type:k(String,Object,Function),required:!0},visibility:{type:k(Number),required:!0},style:k(String,Object,Array),classes:k(Object),resource:Object,cost:k(String,Object,Number),canPurchase:{type:k(Boolean),required:!0},bought:{type:k(Boolean),required:!0},mark:k(Boolean,String),id:{type:String,required:!0},purchase:{type:Function,required:!0}},components:{Node:Ge,MarkNode:ft},setup(e){const{display:t,cost:n}=ne(e),i=xe("");return Ne(()=>{const r=ae(t);if(r==null){i.value="";return}if(Te(r)){i.value=D(r);return}const a=ae(n),o=D(r.title||"","h3"),s=D(r.description,"div"),u=D(r.effectDisplay||"");i.value=D(L(()=>{var c;return d("span",null,[r.title?d("div",null,[d(o,null,null)]):null,d(s,null,null),r.effectDisplay?d("div",null,[C("Currently: "),d(u,null,null)]):null,e.resource!=null?d(K,null,[d("br",null,null),C("Cost: "),e.resource&&je(e.resource,a)," ",(c=e.resource)==null?void 0:c.displayName]):null])}))}),{component:i,unref:l,Visibility:B}}});const hu=["disabled"];function bu(e,t,n,i,r,a){var u;const o=ce("MarkNode"),s=ce("Node");return e.unref(e.visibility)!==e.Visibility.None?(g(),x("button",{key:0,style:W([{visibility:e.unref(e.visibility)===e.Visibility.Hidden?"hidden":void 0},(u=e.unref(e.style))!=null?u:{}]),onClick:t[0]||(t[0]=(...c)=>e.purchase&&e.purchase(...c)),class:Q({feature:!0,upgrade:!0,can:e.unref(e.canPurchase),locked:!e.unref(e.canPurchase),bought:e.unref(e.bought),...e.unref(e.classes)}),disabled:!e.unref(e.canPurchase)},[e.unref(e.component)?(g(),A(ee(e.unref(e.component)),{key:0})):P("",!0),d(o,{mark:e.unref(e.mark)},null,8,["mark"]),d(s,{id:e.id},null,8,["id"])],14,hu)):P("",!0)}var yu=q(vu,[["render",bu],["__scopeId","data-v-7742f590"]]);const _u=Symbol("Upgrade");function Bt(e){const t=ue(!1);return le(()=>{const n=e();return n.id=he("upgrade-"),n.type=_u,n[de]=yu,n.canAfford==null&&(n.resource==null||n.cost==null)&&console.warn("Error: can't create upgrade without a canAfford property or a resource and cost property",n),n.bought=t,n.canAfford==null?n.canAfford=N(()=>{const i=n;return i.resource!=null&&i.cost!=null&&f.gte(i.resource.value,l(i.cost))}):y(n,"canAfford"),n.canPurchase=N(()=>l(n.visibility)===B.Visible&&l(n.canAfford)&&!l(n.bought)),n.purchase=function(){var r;const i=n;!l(i.canPurchase)||(i.resource!=null&&i.cost!=null&&(i.resource.value=f.sub(i.resource.value,l(i.cost))),t.value=!0,(r=i.onPurchase)==null||r.call(i))},y(n,"visibility"),z(n,"visibility",B.Visible),y(n,"classes"),y(n,"style"),y(n,"display"),y(n,"mark"),y(n,"cost"),y(n,"resource"),n[me]=function(){const{display:i,visibility:r,style:a,classes:o,resource:s,cost:u,canPurchase:c,bought:h,mark:v,id:b,purchase:w}=this;return{display:i,visibility:r,style:l(a),classes:o,resource:s,cost:u,canPurchase:c,bought:h,mark:v,id:b,purchase:w}},n})}function ku(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!cn(e)}const on="c",Oe=It(on,()=>{const e="#4BDC13",t="Candies",n=Ct(0,"lollipops"),i=yi(n),r=ue(!1),a=ue("pointy"),o=ue(10),s=ue(new f(10)),u=N(()=>f.pow(n.value,.2)),c=N(()=>f.times(n.value,10)),h=Mi(()=>({title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"},color:"rgb(75, 220, 19)"})),v=jn(()=>({shouldEarn(){return f.gte(i.value,3)},display:{requirement:"3 Lollipops",effectDisplay:"Unlock the next milestone"}})),b=jn(()=>({visibility(){return gt(v.earned.value)},shouldEarn(){return f.gte(i.value,4)},display:{requirement:"4 Lollipops",effectDisplay:"You can toggle beep and boop (which do nothing)",optionsDisplay:L(()=>d(K,null,[d(we,{title:"beep","onUpdate:modelValue":H=>r.value=H,modelValue:r.value},null),d(we,{title:"boop","onUpdate:modelValue":H=>Fe.boop.value=H,modelValue:Fe.boop.value},null)]))},style(){return this.earned?{backgroundColor:"#1111DD"}:{}}})),w=[v,b],S=Xl(()=>({title:"Fun",completionLimit:3,display(){return{description:`Makes the game 0% harder
${ve(this.completions.value)}/${this.completionLimit} completions`,goal:"Have 20 points I guess",reward:"Says hi",effectDisplay:se($.value)+"x"}},visibility(){return gt(f.gt(i.value,0))},goal:20,resource:Y.points,onComplete(){console.log("hiii")},onEnter(){Y.points.value=0,Y.best.value=Y.points.value,Y.total.value=Y.points.value,console.log("So challenging")},onExit(){console.log("Sweet freedom!")},style:{height:"200px"}})),$=N(()=>f.add(n.value,1).tetrate(.02)),R=Bt(()=>({display:{title:"Generator of Genericness",description:"Gain 1 point every second"},cost:1,resource:n})),ke=Bt(()=>({display:()=>({description:"Point generation is faster based on your unspent Lollipops",effectDisplay:`${se(M.value)}x`}),cost:1,resource:n,visibility:()=>gt(R.bought.value)})),M=N(()=>{let H=f.add(n.value,1).pow(.5);return H.gte("1e20000000")&&(H=H.sqrt().times("1e10000000")),H}),I=Bt(()=>({visibility(){return gt(ke.bought.value)},canAfford(){return f.lt(Y.points.value,7)},onPurchase(){Y.points.value=f.add(Y.points.value,7)},display:"Only buyable with less than 7 points, and gives you 7 more. Unlocks a secret subtab.",style(){return this.bought?{backgroundColor:"#1111dd"}:this.canAfford?{}:{backgroundColor:"#dd1111"}}})),G=Bt(()=>({resource:Ct(te.amount,"Exhancers",0),cost:3,display:{title:"This upgrade doesn't exist",description:"Or does it?"}})),be=[R,ke,I],te=Hl(()=>({resource:n,cost(){let H=new f(this.amount.value);return H.gte(25)&&(H=H.pow(2).div(25)),f.pow(2,H.pow(1.5)).floor()},display(){return{title:"Exhancers",description:`Adds ${se(He.value)} things and multiplies stuff by ${se(en.value)}.`}},onPurchase(H){s.value=f.add(s.value,H!=null?H:0)},style:{height:"222px"},purchaseLimit:4})),He=N(()=>f.gte(te.amount.value,0)?f.pow(25,f.pow(te.amount.value,1.1)):f.pow(1/25,f.times(te.amount.value,-1).pow(1.1))),en=N(()=>f.gte(te.amount.value,0)?f.pow(25,f.pow(te.amount.value,1.1)):f.pow(1/25,f.times(te.amount.value,-1).pow(1.1))),at=ue(!1),ot=O(!1),Ot=$t(()=>({small:!0,display:"Respec Thingies",onClick(){if(at.value&&!ot.value){ot.value=!0;return}n.value=f.add(n.value,s.value),te.amount.value=0,Y.tree.reset(Xe)}})),Sn=$t(()=>({small:!0,display:"Sell One",onClick(){f.lte(te.amount.value,0)||(te.amount.value=f.sub(te.amount.value,1),n.value=f.add(n.value,te.cost.value),s.value=f.sub(s.value,te.cost.value))}})),Ei=L(()=>d(Lt,null,{default:()=>[d(bt,null,{default:()=>[d(we,{title:"Confirm","onUpdate:modelValue":H=>at.value=H,modelValue:at.value},null),Pe(Ot)]}),Pe(te),Pe(Sn),d(Je,{modelValue:ot.value,"onUpdate:modelValue":H=>ot.value=H},{header:()=>d("h2",null,[C("Confirm Respec")]),body:()=>d(K,null,[C("Are you sure? Respeccing these doesn't accomplish much")]),footer:()=>d("div",{class:"modal-default-footer"},[d("div",{class:"modal-default-flex-grow"},null),d("button",{class:"button modal-default-button",onClick:()=>ot.value=!1},[C("Cancel")]),d("button",{class:"button modal-default-button danger",onClick:()=>{Ot.onClick(),ot.value=!1}},[C("Respec")])])})]})),Cn=an(()=>({fillStyle:{backgroundColor:"#FFFFFF"},baseStyle:{backgroundColor:"#696969"},textStyle:{color:"#04e050"},direction:X.Right,width:300,height:30,progress(){return f.add(Y.points.value,1).log(10).div(10).toNumber()},display(){return se(Y.points.value)+" / 1e10 points"}})),$n=an(()=>({fillStyle:{backgroundColor:"#4BEC13"},baseStyle:{backgroundColor:"#000000"},textStyle:{textShadow:"0px 0px 2px #000000"},borderStyle:{borderWidth:"7px"},direction:X.Up,width:50,height:200,progress(){return f.div(Y.points.value,100)},display(){return ve(f.div(Y.points.value,1).min(100))+"%"}})),At=an(()=>({fillStyle:{backgroundColor:"#FE0102"},baseStyle:{backgroundColor:"#222222"},textStyle:{textShadow:"0px 0px 2px #000000"},direction:X.Up,width:100,height:30,progress(){return f.div(n.value,50)}})),pt=ll(()=>({scaling:cl($i(10,.5),1e100,.5),baseResource:Y.points,gainResource:n,roundUpCost:!0,gainModifier:Ol(()=>[Pl(()=>({exponent:2,description:"Because I felt like it"})),Tl(()=>({addend:1,description:"Nice modifier"}))])})),Mn=Ti(()=>({thingsToReset:()=>[Oe]})),Vi=[Ln(()=>({key:"c",description:"reset for lollipops or whatever",onPress(){mt.canClick.value&&mt.onClick()}})),Ln(()=>({key:"ctrl+c",description:"respec things",onPress(){Ot.onClick()}}))],Xe=Si(()=>({layerID:on,color:e,reset:Mn,mark:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",tooltip(){let H=je(n);return f.gt(te.amount.value,0)&&(H+=`



${ve(te.amount.value)} Exhancers
`),H},style:{color:"#3325CC",textDecoration:"underline"}}));un(Xe,{display:wi(n),pinnable:!0});const mt=Ni(()=>({conversion:pt,tree:Y.tree,treeNode:Xe,style:{color:"#AA66AA"},resetDescription:"Melt your points into "}));un(mt,{display:L(()=>Al("Modifiers","",pt.gainModifier,pt.scaling.currentGain(pt))),pinnable:!0,direction:X.Down,style:"width: 400px; text-align: left"});const Et=yt(()=>({display:"TH",color:"#6d3678",canClick(){return f.gte(Y.points.value,10)},tooltip:"Thanos your points",onClick(){Y.points.value=f.div(Y.points.value,2),console.log("Thanos'd")},glowColor(){return f.eq(te.amount.value,1)?"orange":""}})),Vt=yt(()=>({display:"h",color(){return ze[Z.theme].variables["--locked"]},tooltip:{display:N(()=>`Restore your points to ${se(o.value)}`),right:!0},canClick(){return f.lt(Y.points.value,o.value)},onClick(){Y.points.value=o.value}})),Tn=yt(()=>({visibility:B.Hidden})),In=ki(()=>({nodes(){return[[Fe.treeNode,Xe],[Et,Tn,Vt]]},branches(){return[{startNode:Fe.treeNode,endNode:Xe,"stroke-width":"25px",stroke:"green",style:{filter:"blur(5px)"}},{startNode:Xe,endNode:Et},{startNode:Et,endNode:Vt}]}})),Fi=eu(()=>({links:[{startNode:Vt,endNode:At,"stroke-width":"5px",stroke:"red",offsetEnd:{x:-50+100*At.progress.value.toNumber(),y:0}}]})),Di=zn({first:()=>({tab:L(()=>d(K,null,[Pe(...be),Pe(G),d("div",null,[C("confirmed")])])),display:"first"}),second:()=>({tab:Fe.display,display:"second"})},()=>({style:{width:"660px",backgroundColor:"brown","--background":"brown",border:"solid white",marginLeft:"auto",marginRight:"auto"}})),Pn=zn({mainTab:()=>({tab:Rt(()=>({display:L(()=>{let H;return d(K,null,[d(Pi,{resource:n,color:e,effectDisplay:`which are boosting waffles by ${se(u.value)} and increasing the Ice Cream cap by ${se(c.value)}`},null),d(Wt,null,ku(H=oe(mt))?H:{default:()=>[H]}),d(Ii,{resource:n,color:e},null),d(ye,{height:"5px"},null),d("button",{onClick:()=>console.log("yeet")},[C("'HI'")]),d("div",null,[C("Name your points!")]),d(_n,{modelValue:a.value,"onUpdate:modelValue":On=>a.value=On},null),d(Wt,{style:"color: red; font-size: 32px; font-family: Comic Sans MS;"},{default:()=>[C("I have "),je(Y.points),C(" "),a.value,C(" points!")]}),d("hr",null,null),ra(...w),d(ye,null,null),Pe(...be),Pe(G),Pe(S)])})})),display:"main tab",glowColor(){return R.canPurchase.value||ke.canPurchase.value||I.canPurchase.value||S.canComplete.value?"blue":""},style:{color:"orange"}}),thingies:()=>({tab:Rt(()=>({style(){return{backgroundColor:"#222222","--background":"#222222"}},display:L(()=>d(K,null,[oe(Ei),d(ye,null,null),d(bt,{style:"width: 600px; height: 350px; background-color: green; border-style: solid;"},{default:()=>[d(we,{"onUpdate:modelValue":H=>r.value=H,modelValue:r.value},null),d(ye,{width:"30px",height:"10px"},null),d("div",null,[d("span",null,[C("Beep")])]),d(ye,null,null),d(ql,{height:"200px"},null)]}),d(ye,null,null),d("img",{src:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png"},null)]))})),glowColor:"white",display:"thingies",style:{borderColor:"orange"}}),jail:()=>({tab:Rt(()=>({display:L(()=>d(K,null,[oe(h),oe(Cn),d(ye,null,null),d(bt,null,{default:()=>[d(Lt,{style:"background-color: #555555; padding: 15px"},{default:()=>[d("div",{style:"color: teal"},[C("Sugar level:")]),d(ye,null,null),oe($n)]}),d(ye,null,null),d(Lt,null,{default:()=>[d("div",null,[C("idk")]),d(ye,{width:"0",height:"50px"},null),oe(At)]})]}),d(ye,null,null),d("div",null,[C(`It's jail because "bars"! So funny! Ha ha!`)]),oe(In)]))})),display:"jail"}),illuminati:()=>({tab:Rt(()=>({display:L(()=>d("div",null,[d("h1",null,[C(" C O N F I R M E D ")]),d(ye,null,null),oe(Di),d("div",null,[C("Adjust how many points H gives you!")]),d(Rl,{"onUpdate:modelValue":H=>o.value=H,modelValue:o.value,min:1,max:30},null)])),style:{backgroundColor:"#3325CC"}})),visibility(){return gt(I.bought.value)},display:"illuminati"})});return{id:on,color:e,name:t,points:n,best:i,beep:r,thingy:a,otherThingy:o,spentOnBuyables:s,waffleBoost:u,icecreamCap:c,coolInfo:h,lollipopMilestones:w,funChallenge:S,funEffect:$,generatorUpgrade:R,lollipopMultiplierUpgrade:ke,lollipopMultiplierEffect:M,unlockIlluminatiUpgrade:I,quasiUpgrade:G,exhancers:te,respecBuyables:Ot,sellExhancer:Sn,bars:{tallBoi:$n,longBoi:Cn,flatBoi:At},tree:In,g:Et,h:Vt,spook:Tn,conversion:pt,reset:Mn,hotkeys:Vi,treeNode:Xe,resetButton:mt,confirmRespec:at,minWidth:800,tabs:Pn,display:L(()=>d(K,null,[oe(Pn),oe(Fi)]))}}),wu={min:.5,max:1},xu=[{s:0,cp:.329,e:.548},{s:.548,cp:.767,e:.876},{s:.876,cp:.985,e:1}],Nu=.001,Su=.1,Cu=100,$u=!0,Mu={x:0,y:0},Tu=!1,Iu=[{type:"alpha",config:{alpha:{list:[{time:0,value:.74},{time:1,value:0}]}}},{type:"moveSpeed",config:{speed:{list:[{time:0,value:300},{time:1,value:0}]},minMult:1}},{type:"scale",config:{scale:{list:[{time:0,value:1},{time:1,value:.25}]},minMult:1}},{type:"color",config:{color:{list:[{time:0,value:"#ffdfa0"},{time:1,value:"#100f0c"}]}}},{type:"rotation",config:{accel:0,minSpeed:0,maxSpeed:200,minStart:0,maxStart:360}},{type:"textureRandom",config:{textures:["/particle.png"]}},{type:"spawnShape",config:{type:"rect",data:{x:0,y:0,w:0,h:0}}}];var Pu={lifetime:wu,ease:xu,frequency:Nu,emitterLifetime:Su,maxParticles:Cu,addAtBack:$u,pos:Mu,emit:Tu,behaviors:Iu};const sn="f",Fe=It(sn,()=>{const e="#FE0102",t="Farms",n=Ct(0,"farm points"),i=ue(!1),r=Mi(()=>({title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"}})),a=ue("Start"),o=$t(()=>({display(){return{title:"Clicky clicky!",description:"Current state:
"+a.value}},initialState:"Start",canClick(){return a.value!=="Borkened..."},onClick(S){var $,R,ke,M,I,G,be,te;switch(a.value){case"Start":a.value="A new state!";break;case"A new state!":a.value="Keep going!";break;case"Keep going!":a.value="Maybe that's a bit too far...";break;case"Maybe that's a bit too far...":const He=S==null?void 0:"touches"in S?S.touches[0]:S,en=Object.assign({},Pu,{pos:{x:(($=He==null?void 0:He.clientX)!=null?$:0)-((M=(ke=(R=b.boundingRect)==null?void 0:R.value)==null?void 0:ke.left)!=null?M:0),y:((I=He==null?void 0:He.clientY)!=null?I:0)-((te=(be=(G=b.boundingRect)==null?void 0:G.value)==null?void 0:be.top)!=null?te:0)}});b.addEmitter(en).then(at=>at.playOnceAndDestroy()),a.value="Borkened...";break;default:a.value="Start";break}},onHold(){console.log("Clickkkkk...")},style(){switch(a.value){case"Start":return{"background-color":"green"};case"A new state!":return{"background-color":"yellow"};case"Keep going!":return{"background-color":"orange"};case"Maybe that's a bit too far...":return{"background-color":"red"};default:return{}}}})),s=$t(()=>({onClick(){a.value=="Borkened..."&&(a.value="Start")},display(){return a.value=="Borkened..."?"Fix the clickable!":"Does nothing"},small:!0})),u=Ti(()=>({thingsToReset:()=>[Fe]})),c=ul(()=>({scaling:$i(10,.5),baseResource:Y.points,gainResource:n,modifyGainAmount:Il(()=>({multiplier:Oe.otherThingy}))})),h=Si(()=>({layerID:sn,color:e,reset:u,tooltip(){return h.canClick.value?`${je(n)} ${n.displayName}`:`This weird farmer dinosaur will only see you if you have at least 10 points. You only have ${je(Y.points)}`},canClick(){return f.gte(Y.points.value,10)}}));un(h,{display:wi(n),pinnable:!0});const v=Ni(()=>({conversion:c,tree:Y.tree,treeNode:h,display:L(()=>v.conversion.buyMax?d("span",null,[C("Hi! I'm a "),d("u",null,[C("weird dinosaur")]),C(" and I'll give you")," ",d("b",null,[ve(v.conversion.currentGain.value)]),C(" Farm Points in exchange for all of your points and lollipops! (You'll get another one at")," ",ve(v.conversion.nextAt.value),C(" points)")]):d("span",null,[C("Hi! I'm a "),d("u",null,[C("weird dinosaur")]),C(" and I'll give you a Farm Point in exchange for all of your points and lollipops! (At least")," ",ve(v.conversion.nextAt.value),C(" points)")]))})),b=wl(()=>({boundingRect:O(null),onContainerResized(S){this.boundingRect.value=S},style:"z-index: 2"})),w=L(()=>d(K,null,[oe(r),d(Pi,{resource:n,color:e},null),oe(v),d("div",null,[C("You have "),ve(c.baseResource.value),C(" points")]),d("div",null,[d("br",null,null),d("img",{src:"https://images.beano.com/store/24ab3094eb95e5373bca1ccd6f330d4406db8d1f517fc4170b32e146f80d?auto=compress%2Cformat&dpr=1&w=390"},null),d("div",null,[C("Bork Bork!")])]),d(ye,null,null),Pe(s),Pe(o),oe(b)]));return{id:sn,color:e,name:t,points:n,boop:i,coolInfo:r,clickable:o,clickableState:a,reset:u,conversion:c,treeNode:h,resetButton:v,minWidth:650,display:w}});function ln(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!cn(e)}const Un="a",dn=It(Un,()=>{const e="yellow",t="Achievements",n=Ct(0,"achievement power"),i=yt(()=>({display:"A",color:e,tooltip:{display:"Achievements",right:!0},onClick(){Y.showAchievements()}})),r=rn(()=>({image:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",display:"Get me!",tooltip:N(()=>r.earned.value?"You did it!":"How did this happen?"),shouldEarn:()=>!0})),a=rn(()=>({display:"Impossible!",tooltip:N(()=>a.earned.value?"HOW????":"Mwahahaha!"),style:{color:"#04e050"}})),o=rn(()=>({display:"EIEIO",tooltip:`Get a farm point. - -Reward: The dinosaur is now your friend (you can max Farm Points).`,shouldEarn:function(){return f.gte(Fe.points.value,1)},onComplete(){console.log("Bork bork bork!")}})),s=[r,a,o],u=rl(()=>({rows:2,cols:2,getStartState(h){return h},getStyle(h,v){return{backgroundColor:`#${Number(v)*1234%999999}`}},getTitle(h){let v="";return h==="101"?v="top":h==="102"?v="bottom":h==="201"?v="left":h==="202"&&(v="right"),L(()=>d(re,Be({display:JSON.stringify(this.cells[h].style)},{[v]:!0}),{default:()=>[d("h3",null,[C("Gridable #"),h])]}))},getDisplay(h,v){return String(v)},getCanClick(){return f.eq(Y.points.value,10)},onClick(h,v){this.cells[h].state=Number(v)+1}})),c=L(()=>{let h,v,b;return d(K,null,[d(bt,null,{default:()=>[d(re,{display:r.tooltip,bottom:!0},ln(h=oe(r))?h:{default:()=>[h]}),d(re,{display:a.tooltip,bottom:!0},ln(v=oe(a))?v:{default:()=>[v]}),d(re,{display:o.tooltip,bottom:!0},ln(b=oe(o))?b:{default:()=>[b]})]}),Pe(u)])});return{id:Un,color:e,name:t,points:n,achievements:s,grid:u,treeNode:i,display:c}}),Y=It("main",function(){const e=Ct(10),t=yi(e),n=ks(e),i=N(()=>{if(!Oe.generatorUpgrade.bought.value)return new f(0);let u=new f(3.19);return Oe.lollipopMultiplierUpgrade.bought.value&&(u=u.times(Oe.lollipopMultiplierEffect.value)),u});ge.on("update",u=>{e.value=f.add(e.value,f.times(i.value,u))});const r=Ns(e,i),{openModal:a,modal:o}=mi(dn),s=ki(()=>({nodes:[[Oe.treeNode],[Fe.treeNode,Oe.spook]],leftSideNodes:[dn.treeNode,Oe.h],branches:[{startNode:Fe.treeNode,endNode:Oe.treeNode,stroke:"blue","stroke-width":"25px",style:{filter:"blur(5px)"}}],onReset(){e.value=En(this.resettingNode.value)===En(Oe.treeNode)?0:10,t.value=e.value,n.value=e.value},resetPropagation:Ls}));return{name:"Tree",display:L(()=>d(K,null,[T.devSpeed===0?d("div",null,[C("Game Paused")]):null,T.devSpeed&&T.devSpeed!==1?d("div",null,[C("Dev Speed: "),se(T.devSpeed),C("x")]):null,T.offlineTime?d("div",null,[C("Offline Time: "),Jt(T.offlineTime)]):null,d("div",null,[f.lt(e.value,"1e1000")?d("span",null,[C("You have ")]):null,d("h2",null,[se(e.value)]),f.lt(e.value,"1e1e6")?d("span",null,[C(" points")]):null]),f.gt(i.value,0)?d("div",null,[C("("),r.value,C(")")]):null,d(ye,null,null),d("button",{onClick:a},[C("open achievements")]),oe(o),oe(s),d(_s,{height:"200px",style:"margin: 10px auto; display: block"},null)])),points:e,best:t,total:n,oomps:r,tree:s,showAchievements:a}}),Ou=e=>[Y,Fe,Oe,dn],Nn=N(()=>f.gt(Y.points.value,25));function Au(e,t){}var Ai=Object.freeze(Object.defineProperty({__proto__:null,main:Y,getInitialLayers:Ou,hasWon:Nn,fixOldSave:Au},Symbol.toStringTag,{value:"Module"}));const Pt=e=>(qe("data-v-4a50ce42"),e=e(),Le(),e),Eu={class:"game-over-modal-header"},Vu=["src","alt"],Fu={class:"game-over-modal-title"},Du=Pt(()=>p("h2",null,"Congratulations!",-1)),Ru={key:0},Bu=Pt(()=>p("br",null,null,-1)),qu=Pt(()=>p("div",null," Please check the Discord to discuss the game or to check for new content updates! ",-1)),Lu=Pt(()=>p("br",null,null,-1)),ju=["href"],zu=Pt(()=>p("span",{class:"material-icons game-over-modal-discord"},"discord",-1)),Uu=E({__name:"GameOverScreen",setup(e){const{title:t,logo:n,discordName:i,discordLink:r,versionNumber:a,versionTitle:o}=J,s=N(()=>Jt(T.timePlayed)),u=N(()=>Nn.value&&!T.keepGoing),c=Ze(T,"autosave");function h(){T.keepGoing=!0}function v(){nt(ut())}return(b,w)=>(g(),A(Je,{"model-value":l(u)},{header:V(()=>[p("div",Eu,[l(n)?(g(),x("img",{key:0,class:"game-over-modal-logo",src:l(n),alt:l(t)},null,8,Vu)):P("",!0),p("div",Fu,[Du,p("h4",null,"You've beaten "+U(l(t))+" v"+U(l(a))+": "+U(l(o)),1)])])]),body:V(({shown:S})=>[S?(g(),x("div",Ru,[p("div",null,"It took you "+U(l(s))+" to beat the game.",1),Bu,qu,Lu,p("div",null,[p("a",{href:l(r),class:"game-over-modal-discord-link"},[zu,C(" "+U(l(i)),1)],8,ju)]),d(we,{title:"Autosave",modelValue:l(c),"onUpdate:modelValue":w[0]||(w[0]=$=>pe(c)?c.value=$:null)},null,8,["modelValue"])])):P("",!0)]),footer:V(()=>[p("div",{class:"game-over-footer"},[p("button",{onClick:h,class:"button"},"Keep Going"),p("button",{onClick:v,class:"button danger"},"Play Again")])]),_:1},8,["model-value"]))}});var Gu=q(Uu,[["__scopeId","data-v-4a50ce42"]]);const Qt=e=>(qe("data-v-3de07c06"),e=e(),Le(),e),Hu=Qt(()=>p("div",{class:"nan-modal-header"},[p("h2",null,"NaN value detected!")],-1)),Wu={key:0},Yu=Qt(()=>p("br",null,null,-1)),Ku=["href"],Zu=Qt(()=>p("span",{class:"material-icons nan-modal-discord"},"discord",-1)),Ju=Qt(()=>p("br",null,null,-1)),Xu={class:"nan-footer"},Qu=E({__name:"NaNScreen",setup(e){const{discordName:t,discordLink:n}=J,i=Ze(T,"autosave"),r=Ze(ie,"hasNaN"),a=O(null),o=N(()=>{var w;return(w=ie.NaNPath)==null?void 0:w.join(".")}),s=N(()=>{var w;return(w=ie.NaNPath)==null?void 0:w.slice(-1)[0]}),u=N(()=>ie.NaNReceiver&&s.value?ie.NaNReceiver[s.value]:null),c=N({get(){return T.devSpeed===0},set(w){T.devSpeed=w?null:0}});function h(){ie.NaNReceiver&&s.value&&(ie.NaNReceiver[s.value]=new f(0),ie.hasNaN=!1)}function v(){ie.NaNReceiver&&s.value&&(ie.NaNReceiver[s.value]=new f(1),ie.hasNaN=!1)}function b(){ie.NaNReceiver&&s.value&&(ie.NaNReceiver[s.value]=new f(NaN),ie.hasNaN=!1)}return(w,S)=>(g(),x(K,null,[d(Je,Be({modelValue:l(r),"onUpdate:modelValue":S[4]||(S[4]=$=>pe(r)?r.value=$:null)},w.$attrs),{header:V(()=>[Hu]),body:V(()=>[p("div",null,[C(' Attempted to assign "'+U(l(o))+'" to NaN',1),l(u)?(g(),x("span",Wu,U(" ")+"(previously "+U(l(se)(l(u)))+")",1)):P("",!0),C(". Auto-saving has been "+U(l(i)?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. ",1)]),Yu,p("div",null,[p("a",{href:l(n),class:"nan-modal-discord-link"},[Zu,C(" "+U(l(t)),1)],8,Ku)]),Ju,d(we,{title:"Autosave",modelValue:l(i),"onUpdate:modelValue":S[0]||(S[0]=$=>pe(i)?i.value=$:null)},null,8,["modelValue"]),l(J).enablePausing?(g(),A(we,{key:0,title:"Pause game",modelValue:l(c),"onUpdate:modelValue":S[1]||(S[1]=$=>pe(c)?c.value=$:null)},null,8,["modelValue"])):P("",!0)]),footer:V(()=>[p("div",Xu,[p("button",{onClick:S[2]||(S[2]=$=>{var R;return(R=a.value)==null?void 0:R.open()}),class:"button"},"Open Saves Manager"),p("button",{onClick:h,class:"button"},"Set to 0"),p("button",{onClick:v,class:"button"},"Set to 1"),l(u)&&l(f).neq(l(u),0)&&l(f).neq(l(u),1)?(g(),x("button",{key:0,onClick:S[3]||(S[3]=$=>r.value=!1),class:"button"}," Set to previous ")):P("",!0),p("button",{onClick:b,class:"button danger"},"Ignore")])]),_:1},16,["modelValue"]),d(hi,{ref_key:"savesManager",ref:a},null,512)],64))}});var ed=q(Qu,[["__scopeId","data-v-3de07c06"]]);const td={key:0,class:"tpsDisplay"},nd={key:0,class:"low"},id=E({__name:"TPS",setup(e){const t=N(()=>f.div(ie.lastTenTicks.length,ie.lastTenTicks.reduce((a,o)=>a+o,0))),n=O([]);Ne(()=>{n.value.push(Math.round(t.value.toNumber())),n.value.length>10&&(n.value=n.value.slice(1))});const i=N(()=>n.value.reduce((a,o)=>f.max(a,o),0)),r=N(()=>f.sub(t.value,i.value).gt(1));return(a,o)=>l(t).isNan()?P("",!0):(g(),x("div",td,[C(" TPS: "+U(l(ve)(l(t)))+" ",1),d(Zt,{name:"fade"},{default:V(()=>[l(r)?(g(),x("span",nd,U(l(ve)(l(i))),1)):P("",!0)]),_:1})]))}});var rd=q(id,[["__scopeId","data-v-46a3ed5b"]]);var ad=E({__name:"App",setup(e){const t=J.useHeader,n=N(()=>ze[Z.theme].variables),i=Ze(Z,"showTPS"),r=N(()=>D(L(()=>d(K,null,[ta.map(oe)]))));return(a,o)=>(g(),x(K,null,[p("div",{id:"modal-root",style:W(l(n))},null,4),p("div",{class:Q(["app",{useHeader:l(t)}]),style:W(l(n))},[l(t)?(g(),A(bi,{key:0})):P("",!0),d(gs),l(l(i))?(g(),A(rd,{key:1})):P("",!0),d(Gu),d(ed),(g(),A(ee(l(r))))],6)],64))}});var od=q(ad,[["__scopeId","data-v-9417972e"]]);function sd(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:i,onRegistered:r,onRegisterError:a}=e;let o,s;const u=async(c=!0)=>{c&&(o==null||o.addEventListener("controlling",h=>{h.isUpdate&&window.location.reload()})),s&&s.waiting&&await er(s.waiting,{type:"SKIP_WAITING"})};if("serviceWorker"in navigator){o=new Qi("./sw.js",{scope:"./",type:"classic"}),o.addEventListener("activated",c=>{c.isUpdate||i==null||i()});{const c=()=>{n==null||n()};o.addEventListener("waiting",c),o.addEventListener("externalwaiting",c)}o.register({immediate:t}).then(c=>{s=c,r==null||r(c)}).catch(c=>{a==null||a(c)})}return u}function ld(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:i,onRegistered:r,onRegisterError:a}=e,o=O(!1),s=O(!1);return{updateServiceWorker:sd({immediate:t,onNeedRefresh(){o.value=!0,n==null||n()},onOfflineReady(){s.value=!0,i==null||i()},onRegistered:r,onRegisterError:a}),offlineReady:s,needRefresh:o}}document.title=J.title;window.projInfo=J;if(J.id==="")throw"Project ID is empty! Please select a unique ID for this project in /src/data/projInfo.json";requestAnimationFrame(async()=>{console.log(`%cMade in Profectus%c -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 Jr();const{globalBus:e,startGameLoop:t}=await zt(()=>Promise.resolve().then(function(){return Zr}),void 0),n=window.vue=Ui(od);e.emit("setupVue",n),n.mount("#app"),Ve(()=>{const i=fn(),{updateServiceWorker:r}=ld({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(){r()}})},onOfflineReady(){i.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(a){a&&setInterval(a.update,60*60*1e3)}})}),t()}); diff --git a/assets/index.dac769fe.css b/assets/index.dac769fe.css new file mode 100644 index 0000000..ed0ec85 --- /dev/null +++ b/assets/index.dac769fe.css @@ -0,0 +1 @@ +.table{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;max-width:100%;margin:0 auto}.table+.table{margin-top:10px}.row{display:flex;flex-flow:row wrap;justify-content:center;align-items:stretch;max-width:100%;margin:0 10px}.row>:not(.feature){margin:0;display:flex}.col{display:flex;flex-flow:column wrap;justify-content:center;align-items:center;height:100%;margin:10px 0}.row.mergeAdjacent>.feature:not(.dontMerge),.row.mergeAdjacent>.tooltip-container>.feature:not(.dontMerge){margin-left:0;margin-right:0;border-radius:0}.row.mergeAdjacent>.feature:not(.dontMerge):first-child,.row.mergeAdjacent>.tooltip-container:first-child>.feature:not(.dontMerge){border-radius:var(--border-radius) 0 0 var(--border-radius)}.row.mergeAdjacent>.feature:not(.dontMerge):last-child,.row.mergeAdjacent>.tooltip-container:last-child>.feature:not(.dontMerge){border-radius:0 var(--border-radius) var(--border-radius) 0}.row.mergeAdjacent>.feature:not(.dontMerge):first-child:last-child,.row.mergeAdjacent>.tooltip-container:first-child:last-child>.feature:not(.dontMerge){border-radius:var(--border-radius)}.row-grid.mergeAdjacent>.feature:not(.dontMerge),.row-grid.mergeAdjacent>.tooltip-container>.feature:not(.dontMerge){margin:0;border-radius:0}.row-grid.mergeAdjacent>.feature:not(.dontMerge):last-child,.row-grid.mergeAdjacent>.tooltip-container:last-child>.feature:not(.dontMerge){border-radius:0}.row-grid.mergeAdjacent>.feature:not(.dontMerge):first-child,.row-grid.mergeAdjacent>.tooltip-container:first-child>.feature:not(.dontMerge){border-radius:0}.table-grid>.row-grid.mergeAdjacent:last-child>.feature:not(.dontMerge):first-child{border-radius:0 0 0 var(--border-radius)}.table-grid>.row-grid.mergeAdjacent:first-child>.feature:not(.dontMerge):last-child{border-radius:0 var(--border-radius) 0 0}.table-grid>.row-grid.mergeAdjacent:first-child>.feature:not(.dontMerge):first-child{border-radius:var(--border-radius) 0 0 0}.table-grid>.row-grid.mergeAdjacent:last-child>.feature:not(.dontMerge):last-child{border-radius:0 0 var(--border-radius) 0}.col.mergeAdjacent .feature:not(.dontMerge){margin-top:0;margin-bottom:0;border-radius:0}.col.mergeAdjacent .feature:not(.dontMerge):first-child{border-radius:var(--border-radius) var(--border-radius) 0 0}.col.mergeAdjacent .feature:not(.dontMerge):last-child{border-radius:0 0 var(--border-radius) var(--border-radius)}.col.mergeAdjacent .feature:not(.dontMerge):first-child:last-child{border-radius:var(--border-radius)}.resize-listener[data-v-2b1dc1bc]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;z-index:-10;pointer-events:none}.modal-mask{position:fixed;z-index:9998;top:0;left:0;bottom:0;right:0;background-color:#00000080;transition:opacity .3s ease}.modal-wrapper{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.modal-container{width:640px;max-width:95vw;max-height:95vh;background-color:var(--background);padding:20px;border-radius:5px;transition:all .3s ease;text-align:left;border:var(--modal-border);box-sizing:border-box;display:flex;flex-direction:column}.modal-header{width:100%}.modal-body{margin:20px 0;width:100%;overflow-y:auto;overflow-x:hidden}.modal-footer{width:100%}.modal-default-footer{display:flex}.modal-default-flex-grow{flex-grow:1}.modal-enter-from,.modal-leave-active{opacity:0}.modal-enter-from .modal-container,.modal-leave-active .modal-container{-webkit-transform:scale(1.1);transform:scale(1.1)}.layer-container[data-v-a592996e]{min-width:100%;min-height:100%;margin:0;flex-grow:1;display:flex;isolation:isolate}.layer-tab[data-v-a592996e]:not(.minimized){padding-top:20px;padding-bottom:20px;min-height:100%;flex-grow:1;text-align:center;position:relative}.inner-tab>.layer-container>.layer-tab[data-v-a592996e]:not(.minimized){padding-top:50px}.layer-tab.minimized[data-v-a592996e]{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;padding:55px 0 0;margin:0;cursor:pointer;font-size:40px;color:var(--foreground);border:none;background-color:transparent}.layer-tab.minimized>*[data-v-a592996e]{margin:0;writing-mode:vertical-rl;text-align:left;padding-left:10px;width:50px}.inner-tab>.layer-container>.layer-tab[data-v-a592996e]:not(.minimized){margin:-50px -10px;padding:50px 10px}.modal-body .layer-tab[data-v-a592996e]{padding-bottom:0}.modal-body .layer-tab[data-v-a592996e]:not(.hasSubtabs){padding-top:0}.minimize[data-v-a592996e]{position:sticky;top:6px;right:9px;z-index:7;line-height:30px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:40px;cursor:pointer;margin-top:-44px;margin-right:-30px}.minimized+.minimize[data-v-a592996e]{transform:rotate(-90deg);top:10px;right:18px;pointer-events:none}.goBack[data-v-a592996e]{position:sticky;top:10px;left:10px;line-height:30px;margin-top:-50px;margin-left:-35px;border:none;background:var(--background);box-shadow:var(--background) 0 2px 3px 5px;border-radius:50%;color:var(--foreground);font-size:30px;cursor:pointer;z-index:7}.goBack[data-v-a592996e]:hover{transform:scale(1.1);text-shadow:0 0 7px var(--foreground)}.layer-tab.minimized>*>.desc{color:var(--accent1);font-size:30px}details[data-v-4b4bda40]{margin:10px 0;padding-left:18px}summary[data-v-4b4bda40]{cursor:pointer;margin-bottom:10px;margin-left:-18px}ul[data-v-4b4bda40]{margin:var(--feature-margin) 0;background:var(--raised-background);border:2px solid rgba(0,0,0,.125);padding:5px 5px 5px 15px;list-style:inside}li[data-v-4b4bda40]{margin:8px 0}li[data-v-4b4bda40]:before{padding:2px 8px;margin-right:8px;border-radius:var(--border-radius)}.feature[data-v-4b4bda40]:before{content:"Feature";background:var(--accent1)}.fix[data-v-4b4bda40]:before{content:"Fix";background:var(--accent2)}.balancing[data-v-4b4bda40]:before{content:"Balancing";background:var(--accent3)}.breaking[data-v-4b4bda40]:before{content:"Breaking";background:var(--danger)}.tooltip-container[data-v-6102fa3a]{position:relative;--xoffset: 0px;--yoffset: 0px;text-shadow:none!important}.tooltip[data-v-6102fa3a],.tooltip[data-v-6102fa3a]:after{pointer-events:none;position:absolute}.tooltip[data-v-6102fa3a]{text-align:center;width:150px;font-size:14px;line-height:1.2;bottom:calc(100% + var(--yoffset));left:calc(50% + var(--xoffset));margin-bottom:5px;transform:translate(-50%);padding:7px;border-radius:3px;background-color:var(--tooltip-background);color:var(--points);z-index:100!important;word-break:break-word}.tooltip[data-v-6102fa3a] hr{margin:var(--feature-margin) 0}.shown[data-v-6102fa3a]{z-index:10}.fade-enter-from[data-v-6102fa3a],.fade-leave-to[data-v-6102fa3a]{opacity:0}.tooltip[data-v-6102fa3a]:after{content:" ";position:absolute;top:100%;bottom:100%;left:calc(50% - var(--xoffset));width:0;margin-left:-5px;border-width:5px;border-style:solid;border-color:var(--tooltip-background) transparent transparent transparent}.tooltip.left[data-v-6102fa3a],.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top){bottom:calc(50% + var(--yoffset));left:unset;right:calc(100% + var(--xoffset));margin-bottom:unset;margin-right:5px;transform:translateY(50%)}.tooltip.left[data-v-6102fa3a]:after,.side-nodes .tooltip[data-v-6102fa3a]:not(.right):not(.bottom):not(.top):after{top:calc(50% + var(--yoffset));bottom:unset;left:100%;right:100%;margin-left:unset;margin-top:-5px;border-color:transparent transparent transparent var(--tooltip-background)}.tooltip.right[data-v-6102fa3a]{bottom:calc(50% + var(--yoffset));left:calc(100% + var(--xoffset));margin-bottom:unset;margin-left:5px;transform:translateY(50%)}.tooltip.right[data-v-6102fa3a]:after{top:calc(50% + var(--yoffset));left:0;right:100%;margin-left:-10px;margin-top:-5px;border-color:transparent var(--tooltip-background) transparent transparent}.tooltip.bottom[data-v-6102fa3a]{top:calc(100% + var(--yoffset));bottom:unset;left:calc(50% + var(--xoffset));margin-bottom:unset;margin-top:5px;transform:translate(-50%)}.tooltip.bottom[data-v-6102fa3a]:after{top:0;margin-top:-10px;border-color:transparent transparent var(--tooltip-background) transparent}.pinned[data-v-6102fa3a]{position:absolute;right:-5px;top:-5px;transform:rotate(45deg)}.info-modal-header[data-v-5d3cb6f4]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.info-modal-header *[data-v-5d3cb6f4]{margin:0}.info-modal-logo[data-v-5d3cb6f4]{height:4em;width:4em}.info-modal-title[data-v-5d3cb6f4]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.info-modal-discord-link[data-v-5d3cb6f4]{display:flex;align-items:center}.info-modal-discord[data-v-5d3cb6f4]{margin:0 4px 0 0}.field{display:flex;position:relative;min-height:2em;margin:10px 0;user-select:none;justify-content:space-between;align-items:center}.field>*{margin:0}.vue-select{width:50%;border-radius:var(--border-radius)}.field-buttons .vue-select{width:unset}.vue-select,.vue-dropdown{border-color:var(--outline)}.vue-dropdown{background:var(--raised-background)}.vue-dropdown-item{color:var(--foreground)}.vue-dropdown-item,.vue-dropdown-item *{transition-duration:0s}.vue-dropdown-item.highlighted{background-color:var(--highlighted)}.vue-dropdown-item.selected,.vue-dropdown-item.highlighted.selected{background-color:var(--bought)}.vue-input input{font-size:inherit}.vue-input input::placeholder{color:var(--link)}.field[data-v-11046116]{cursor:pointer}input[data-v-11046116]{appearance:none;pointer-events:none}span[data-v-11046116]{width:100%;padding-right:41px;position:relative}input+span[data-v-11046116]:before{content:"";position:absolute;top:calc(50% - 7px);right:0px;border-radius:7px;width:36px;height:14px;background-color:var(--outline);opacity:.38;vertical-align:top;transition:background-color .2s,opacity .2s}input+span[data-v-11046116]:after{content:"";position:absolute;top:calc(50% - 10px);right:16px;border-radius:50%;width:20px;height:20px;background-color:var(--locked);box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f;transition:background-color .2s,transform .2s}input:checked+span[data-v-11046116]:before{background-color:var(--link);opacity:.6}input:checked+span[data-v-11046116]:after{background-color:var(--link);transform:translate(16px)}input:active+span[data-v-11046116]:before{background-color:var(--link);opacity:.6}input:checked:active+span[data-v-11046116]:before{background-color:var(--outline);opacity:.38}input:disabled+span[data-v-11046116]{color:#000;opacity:.38;cursor:default}input:disabled+span[data-v-11046116]:before{background-color:var(--outline);opacity:.38}input:checked:disabled+span[data-v-11046116]:before{background-color:var(--link);opacity:.6}.feedback[data-v-01a1b95c]{position:relative}.feedback[data-v-01a1b95c]:after{position:absolute;left:calc(100% + 5px);top:50%;transform:translateY(-50%);content:"\2714";opacity:0;pointer-events:none;box-shadow:inset 0 0 0 35px #6f94b600;text-shadow:none}.feedback.left[data-v-01a1b95c]:after{left:unset;right:calc(100% + 5px)}.feedback.activated[data-v-01a1b95c]:after{animation:feedback-01a1b95c .5s ease-out forwards}@keyframes feedback-01a1b95c{0%{opacity:1;transform:scale3d(.4,.4,1),translateY(-50%)}80%{opacity:.1}to{opacity:0;transform:scale3d(1.2,1.2,1),translateY(-50%)}}.option-tabs{border-bottom:2px solid var(--outline);margin-top:10px;margin-bottom:-10px}.option-tabs button{background-color:transparent;color:var(--foreground);margin-bottom:-2px;font-size:14px;cursor:pointer;padding:5px 20px;border:none;border-bottom:2px solid var(--foreground)}.option-tabs button:not(.selected){border-bottom-color:transparent}.option-title .tooltip-container{display:inline;margin-left:5px}.option-title desc{display:block;opacity:.6;font-size:small;width:300px;margin-left:0}.save-button{text-align:right}form[data-v-90bd4994]{margin:0;width:100%}.field>*[data-v-90bd4994]{margin:0}input[data-v-90bd4994]{width:50%;outline:none;border:solid 1px var(--outline);background-color:unset;border-radius:var(--border-radius)}.fullWidth[data-v-90bd4994]{width:100%}.container[data-v-2f8ef34c]{display:flex;align-items:center;background:var(--raised-background);box-shadow:var(--raised-background) 0 2px 3px 5px}.container.confirming button[data-v-2f8ef34c]{font-size:1em}.container>*[data-v-2f8ef34c]{margin:0 4px}.danger,.button.danger{position:relative;border:solid 2px var(--danger);border-right-width:16px}.danger:after{position:absolute;content:"!";color:#fff;right:-13px}.save[data-v-c3447434]{position:relative;border:solid 4px var(--outline);padding:4px;background:var(--raised-background);margin:var(--feature-margin);display:flex;align-items:center;min-height:30px}.save.active[data-v-c3447434]{border-color:var(--bought)}.open[data-v-c3447434]{display:inline;margin:0;padding-left:0}.handle[data-v-c3447434]{flex-grow:0;margin-right:8px;margin-left:0;cursor:pointer}.details[data-v-c3447434]{margin:0 80px 0 0;flex-grow:1}.error[data-v-c3447434]{font-size:.8em;color:var(--danger)}.save-version[data-v-c3447434]{margin-left:4px;font-size:.7em;opacity:.7}.actions[data-v-c3447434]{position:absolute;top:0;bottom:0;right:4px;display:flex;padding:4px;z-index:1}.editname[data-v-c3447434]{margin:0}.save button{transition-duration:0s}.save .actions button{display:flex;font-size:1.2em}.save .actions button .material-icons{font-size:unset}.save .button.danger{display:flex;align-items:center;padding:4px}.save .field,.field form[data-v-5b5b1604],.field .field-title[data-v-5b5b1604],.field .field-buttons[data-v-5b5b1604]{margin:0}.field-buttons[data-v-5b5b1604]{display:flex}.field-buttons .field[data-v-5b5b1604]{margin:0 0 0 8px}.modal-footer[data-v-5b5b1604]{margin-top:-20px}.footer[data-v-5b5b1604]{display:flex;margin-top:20px}.importingFailed input{color:red}.field-buttons .v-select{width:220px}.presets .vue-select[aria-expanded=true] vue-dropdown{visibility:hidden}.nav[data-v-b0896196]{background-color:var(--raised-background);display:flex;left:0;right:0;top:0;height:46px;width:100%;border-bottom:4px solid var(--outline)}.nav>*[data-v-b0896196]{height:46px;width:46px;display:flex;cursor:pointer;flex-shrink:0}.nav>.banner[data-v-b0896196]{height:100%;width:unset}.overlay-nav[data-v-b0896196]{position:fixed;top:10px;left:10px;display:flex;flex-direction:column;z-index:2}.overlay-nav>*[data-v-b0896196]{height:50px;width:50px;display:flex;cursor:pointer;margin:0;align-items:center;justify-content:center}.title[data-v-b0896196]{font-size:36px;text-align:left;margin-left:12px;cursor:unset}.nav>.title[data-v-b0896196]{width:unset;flex-shrink:1;overflow:hidden;white-space:nowrap}.nav .saves[data-v-b0896196],.nav .info[data-v-b0896196]{display:flex}.tooltip-container[data-v-b0896196]{width:100%;height:100%;display:flex}.overlay-nav .discord[data-v-b0896196]{position:relative}.discord img[data-v-b0896196]{width:100%;height:100%}.discord-links[data-v-b0896196]{position:fixed;top:45px;padding:20px;right:-280px;width:200px;transition:right .25s ease;background:var(--raised-background);z-index:10}.overlay-nav .discord-links[data-v-b0896196]{position:absolute;left:-280px;right:unset;transition:left .25s ease}.overlay-nav .discord:hover .discord-links[data-v-b0896196]{left:-10px}.discord-links li[data-v-b0896196]{margin-bottom:4px}.discord-links li[data-v-b0896196]:first-child{font-size:1.2em}*:not(.overlay-nav) .discord:hover .discord-links[data-v-b0896196]{right:0}.material-icons[data-v-b0896196]{font-size:36px}.material-icons[data-v-b0896196]:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--foreground)}.nav .version-container[data-v-b0896196]{display:flex;height:25px;margin-bottom:0;margin-left:10px}.overlay-nav .version-container[data-v-b0896196]{width:unset;height:25px}.version[data-v-b0896196]{color:var(--points)}.version:hover span[data-v-b0896196]{text-shadow:5px 0 10px var(--points),-3px 0 12px var(--points)}.nav>div>a[data-v-b0896196],.overlay-nav>div>a[data-v-b0896196]{color:var(--foreground);text-shadow:none}.tabs-container[data-v-3e0f1aab]{width:100vw;flex-grow:1;overflow-x:auto;overflow-y:hidden;display:flex}.tabs-container[data-v-3e0f1aab]:not(.useHeader){width:calc(100vw - 50px);margin-left:50px}.tab[data-v-3e0f1aab]{position:relative;height:100%;flex-grow:1;transition-duration:0s;overflow-y:auto;overflow-x:hidden}.inner-tab[data-v-3e0f1aab]{padding:50px 10px;min-height:calc(100% - 100px);display:flex;flex-direction:column;margin:0;flex-grow:1}.tab+.tab>.inner-tab[data-v-3e0f1aab]{border-left:solid 4px var(--outline)}.tab hr{height:4px;border:none;background:var(--outline);margin:var(--feature-margin) 0}.tab .modal-body hr{margin:7px 0}svg[data-v-89b4b00a]{background:#2e3440}svg .svg-elem-1[data-v-89b4b00a]{stroke-dashoffset:2648.758056640625px;stroke-dasharray:1324.3790283203125px;transition:stroke-dashoffset 1s cubic-bezier(.47,0,.745,.715) 0s}svg.v-enter-from .svg-elem-1[data-v-89b4b00a],svg.v-leave-to .svg-elem-1[data-v-89b4b00a]{stroke-dashoffset:1324.3790283203125px}svg .svg-elem-2[data-v-89b4b00a]{stroke-dashoffset:680.4000854492188px;stroke-dasharray:340.2000427246094px;transition:stroke-dashoffset 1s ease-out .4s}svg.v-enter-from .svg-elem-2[data-v-89b4b00a],svg.v-leave-to .svg-elem-2[data-v-89b4b00a]{stroke-dashoffset:340.2000427246094px}svg .svg-elem-3[data-v-89b4b00a]{stroke-dashoffset:76.21031951904297px;stroke-dasharray:38.105159759521484px;transition:stroke-dashoffset 1s ease-out .8s}svg.v-enter-from .svg-elem-3[data-v-89b4b00a],svg.v-leave-to .svg-elem-3[data-v-89b4b00a]{stroke-dashoffset:38.105159759521484px}svg .svg-elem-4[data-v-89b4b00a]{stroke-dashoffset:175.18072509765625px;stroke-dasharray:87.59036254882812px;transition:stroke-dashoffset 1s cubic-bezier(.47,0,.745,.715) .36s}svg.v-enter-from .svg-elem-4[data-v-89b4b00a],svg.v-leave-to .svg-elem-4[data-v-89b4b00a]{stroke-dashoffset:87.59036254882812px}svg .svg-elem-5[data-v-89b4b00a]{stroke-dashoffset:671.9447021484375px;stroke-dasharray:335.97235107421875px;transition:stroke-dashoffset 1s ease-out .8s}svg.v-enter-from .svg-elem-5[data-v-89b4b00a],svg.v-leave-to .svg-elem-5[data-v-89b4b00a]{stroke-dashoffset:335.97235107421875px}svg .svg-elem-6[data-v-89b4b00a]{stroke-dashoffset:173.96141052246094px;stroke-dasharray:86.98070526123047px;transition:stroke-dashoffset 1s ease-out 1s}svg.v-enter-from .svg-elem-6[data-v-89b4b00a],svg.v-leave-to .svg-elem-6[data-v-89b4b00a]{stroke-dashoffset:86.98070526123047px}svg .svg-elem-7[data-v-89b4b00a]{stroke-dashoffset:172.99151611328125px;stroke-dasharray:86.49575805664062px;transition:stroke-dashoffset 1s ease-out .85s}svg.v-enter-from .svg-elem-7[data-v-89b4b00a],svg.v-leave-to .svg-elem-7[data-v-89b4b00a]{stroke-dashoffset:86.49575805664062px}.feature:not(li),.feature:not(li) button{position:relative;padding:5px;border-radius:var(--border-radius);border:2px solid rgba(0,0,0,.125);margin:var(--feature-margin);box-sizing:border-box;color:var(--feature-foreground);z-index:0;transition:all .5s,z-index 0s .5s}.can,.can button{background-color:var(--layer-color);cursor:pointer}.can:hover,.can:hover button{transform:scale(1.15);box-shadow:0 0 20px var(--points);z-index:1;transition:all .5s,z-index 0s}.locked,.locked button{background-color:var(--locked);cursor:not-allowed}.bought,.bought button{background-color:var(--bought);cursor:default}.mark[data-v-2207999f]{position:absolute;left:-25px;top:-10px;width:30px;height:30px;z-index:1;pointer-events:none;margin-left:.9em;margin-right:.9em;margin-bottom:1.2em;border-right:.3em solid transparent;border-bottom:.7em solid transparent;border-left:.3em solid transparent;font-size:10px}.star[data-v-2207999f]{left:-10px;width:0;height:0;margin-left:.9em;margin-right:.9em;margin-bottom:1.2em;border-right:.3em solid transparent;border-bottom:.7em solid #ffcc00;border-left:.3em solid transparent;font-size:10px;pointer-events:none}.star[data-v-2207999f]:before,.star[data-v-2207999f]:after{content:"";width:0;height:0;position:absolute;top:.6em;left:-1em;border-right:1em solid transparent;border-bottom:.7em solid #ffcc00;border-left:1em solid transparent;transform:rotate(-35deg)}.star[data-v-2207999f]:after{transform:rotate(35deg)}.node[data-v-a48cb382]{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.achievement[data-v-4ebd15db]{height:90px;width:90px;font-size:10px;color:#fff;text-shadow:0 0 2px #000000}.tile[data-v-59906ec6]{min-height:80px;width:80px;font-size:10px;background-color:var(--layer-color)}.tile>*[data-v-59906ec6]{pointer-events:none}.resize-listener[data-v-c139d80e]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;z-index:-10;pointer-events:none}svg[data-v-c139d80e]{position:absolute;top:5px;left:5px;right:5px;bottom:5px;z-index:-10;pointer-events:none}.left-side-nodes[data-v-39ca96d0]{position:absolute;left:15px;top:65px}.side-nodes[data-v-39ca96d0]{position:absolute;right:15px;top:65px}.left-side-nodes[data-v-39ca96d0] .treeNode,.side-nodes[data-v-39ca96d0] .treeNode{margin:20px auto}.small[data-v-39ca96d0] .treeNode{height:60px;width:60px}.small[data-v-39ca96d0] .treeNode>*:first-child{font-size:30px}.treeNode[data-v-4520cd79]{height:100px;width:100px;border-radius:50%;padding:0;margin:0 10px}.treeNode>*[data-v-4520cd79]:first-child{width:100%;height:100%;border:2px solid rgba(0,0,0,.125);border-radius:inherit;font-size:40px;color:#00000080;text-shadow:2px 2px 4px rgba(0,0,0,.25);box-shadow:-4px -4px 4px #00000040 inset,0 0 20px var(--background);text-transform:capitalize;display:flex}.treeNode>*:first-child>*[data-v-4520cd79]{pointer-events:none}.collapsible-container[data-v-a72c16aa]{width:calc(100% - 10px)}.collapsible-toggle[data-v-a72c16aa]{max-width:unset;width:calc(100% + 0px);margin:0 0 0 -5px;background:var(--raised-background);padding:var(--feature-margin);color:var(--foreground);cursor:pointer;transition-duration:0s}.collapsible-toggle[data-v-a72c16aa]:last-child{margin-left:unset}[data-v-a72c16aa] .collapsible-toggle+.table{max-width:unset;width:calc(100% + 10px);margin-left:-5px}[data-v-a72c16aa] .col{margin-top:0;margin-bottom:0;width:100%}.mergeAdjacent .collapsible-toggle[data-v-a72c16aa]{border:0;border-top-left-radius:0!important;border-top-right-radius:0!important}[data-v-a72c16aa] .mergeAdjacent .feature:not(.dontMerge):first-child{border-top-left-radius:0!important;border-top-right-radius:0!important}.clickable[data-v-211328c0]{min-height:120px;width:120px;font-size:10px}.clickable.small[data-v-211328c0]{min-height:unset}.clickable>*[data-v-211328c0]{pointer-events:none}.modifier-toggle{padding-right:10px;transform:translateY(-1px);display:inline-block}.modifier-toggle.collapsed{transform:translate(-5px,-5px) rotate(-90deg)}.infobox[data-v-0f2462b8]{position:relative;width:600px;max-width:95%;margin-top:0;text-align:left;border-style:solid;border-width:0px;box-sizing:border-box;border-radius:5px}.infobox.stacked[data-v-0f2462b8]{border-width:4px}.infobox:not(.stacked)+.infobox[data-v-0f2462b8]:not(.stacked){margin-top:20px}.infobox[data-v-0f2462b8]+:not(.infobox){margin-top:10px}.title[data-v-0f2462b8]{font-size:24px;color:#000;cursor:pointer;border:none;width:auto;text-align:left;padding:4px 4px 4px 30px}.infobox:not(.stacked) .title[data-v-0f2462b8]{border-top-left-radius:5px;border-top-right-radius:5px}.infobox.stacked+.infobox.stacked[data-v-0f2462b8]{border-top-left-radius:0;border-top-right-radius:0;margin-top:-5px}.stacked .title[data-v-0f2462b8]{width:100%}.collapsed:not(.stacked) .title[data-v-0f2462b8]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background-color:inherit}.toggle[data-v-0f2462b8]{position:absolute;left:10px}.collapsed .toggle[data-v-0f2462b8]{transform:rotate(-90deg)}.body[data-v-0f2462b8]{transition-duration:.5s;border-radius:0 5px 5px}.infobox:not(.stacked) .body[data-v-0f2462b8]{padding:4px}.body>*[data-v-0f2462b8]{padding:8px;width:100%;display:block;box-sizing:border-box;border-radius:0 5px 5px;background-color:var(--background)}.not-fullscreen[data-v-48dd302a],.resize-listener[data-v-48dd302a]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;pointer-events:none}.sticky[data-v-cccac690]{position:sticky;background:var(--background);width:calc(100% - 2px);z-index:3}.main-display-container{vertical-align:middle;margin-bottom:20px;display:flex;transition-duration:0s}.fullWidth[data-v-267283ff]{width:100%}.vr[data-v-5e0a978a]{width:4px;background:var(--outline);height:100%;margin:auto var(--feature-margin)}.bar[data-v-515dc183]{position:relative;display:table}.overlayTextContainer[data-v-515dc183]{position:absolute;border-radius:10px;vertical-align:middle;display:flex;justify-content:center;z-index:3}.overlayText[data-v-515dc183]{z-index:6}.border[data-v-515dc183]{border:2px solid;border-radius:10px;border-color:var(--foreground);overflow:hidden;mask-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC);margin:0}.fill[data-v-515dc183]{position:absolute;background-color:var(--foreground);overflow:hidden;margin-left:-.5px;transition-duration:.2s;z-index:2}.challenge[data-v-44673563]{background-color:var(--locked);width:300px;min-height:300px;color:#000;font-size:15px;display:flex;flex-flow:column;align-items:center}.challenge.done[data-v-44673563]{background-color:var(--bought)}.challenge button[data-v-44673563]{min-height:50px;width:120px;border-radius:var(--border-radius);box-shadow:none!important;background:transparent}.challenge.canStart button[data-v-44673563]{cursor:pointer;background-color:var(--layer-color)}.key[data-v-5e2d38ce]{display:inline-block;height:1.4em;min-width:1em;margin-block:.1em;padding-inline:.2em;vertical-align:.1em;background:var(--foreground);color:var(--feature-foreground);border:1px solid #0007;border-radius:.3em;box-shadow:0 .1em #0007,0 .1em var(--foreground);font-size:smaller;text-align:center;user-select:none;transition:transform 0s,box-shadow 0s}.key[data-v-5e2d38ce]:active{transform:translateY(.1em);box-shadow:none}.milestone[data-v-43065fa5]{width:calc(100% - 10px);min-width:120px;padding-left:5px;padding-right:5px;background-color:var(--locked);border-width:4px;border-radius:5px;color:#00000080}.milestone.done[data-v-43065fa5]{background-color:var(--bought);cursor:default}.milestone[data-v-43065fa5] .equal-spaced{display:flex;justify-content:center}.milestone[data-v-43065fa5] .equal-spaced>*{margin:auto}.tabButton[data-v-21427abb]{background-color:transparent;color:var(--foreground);font-size:20px;cursor:pointer;padding:5px 20px;margin:5px;border-radius:5px;border:2px solid;flex-shrink:0;border-color:var(--layer-color)}.tabButton[data-v-21427abb]:hover{transform:scale(1.1);text-shadow:0 0 7px var(--foreground)}:not(.floating)>.tabButton[data-v-21427abb]{height:50px;margin:0;border-left:none;border-right:none;border-top:none;border-bottom-width:4px;border-radius:0;transform:unset}:not(.floating) .tabButton[data-v-21427abb]:not(.active){border-bottom-color:transparent}.tabButton>*[data-v-21427abb]{pointer-events:none}.tab-family-container[data-v-58dbf83a]{margin:calc(50px + var(--feature-margin)) 20px var(--feature-margin) 20px;position:relative;border:solid 4px;border-color:var(--outline)}.layer-tab>.tab-family-container[data-v-58dbf83a]:first-child{margin:-4px -11px var(--feature-margin) -11px}.layer-tab>.tab-family-container[data-v-58dbf83a]:first-child:nth-last-child(3){border-bottom-style:none;border-left-style:none;border-right-style:none;height:calc(100% + 50px)}.modal-body>.tab-family-container[data-v-58dbf83a]:first-child{margin:calc(10px + var(--feature-margin)) 10px 0 10px;border:none}.tab-family-container[data-v-58dbf83a]>:nth-child(2){margin-top:20px}.modal-body>.tab-family-container[data-v-58dbf83a]>:nth-child(2){margin-top:50px}.tab-family-container[data-v-f18896fc][data-v-58dbf83a]>:last-child{margin-bottom:20px}.tab-buttons-container[data-v-58dbf83a]{z-index:4}.tab-buttons-container[data-v-58dbf83a]:not(.floating){border-bottom:solid 4px;border-color:inherit}:not(.layer-tab):not(.modal-body)>.tab-family-container>.tab-buttons-container[data-v-58dbf83a]:not(.floating){width:calc(100% + 6px);margin-left:-3px}.tab-buttons-container:not(.floating) .tab-buttons[data-v-58dbf83a]{text-align:left;margin-bottom:-4px}.tab-buttons-container.floating .tab-buttons[data-v-58dbf83a]{justify-content:center;margin-top:-25px}.tab-buttons[data-v-58dbf83a]{margin-bottom:24px;display:flex;flex-flow:wrap;z-index:4}.layer-tab>.tab-family-container:first-child:nth-last-child(3)>.tab-buttons-container>.tab-buttons[data-v-58dbf83a]{padding-right:60px}.tab-buttons[data-v-58dbf83a]:not(.floating){text-align:left;border-bottom:inherit;border-width:4px;box-sizing:border-box;height:50px}.modal-body .tab-buttons[data-v-58dbf83a]{width:100%;margin-left:0;margin-right:0;padding-left:0}.showGoBack>.tab-family-container:first-child>.tab-buttons-container:not(.floating) .tab-buttons[data-v-58dbf83a]{padding-left:70px}:not(.showGoBack)>.tab-family-container>.tab-buttons-container:not(.floating):first-child .tab-buttons[data-v-58dbf83a]{padding-left:0}.minimizable>.tab-buttons-container[data-v-58dbf83a]:not(.floating):first-child{padding-right:50px}.tab-buttons-container:not(.floating):first-child .tab-buttons[data-v-58dbf83a]{margin-top:-50px}.tab-buttons-container+*[data-v-58dbf83a]{margin-top:20px}.upgrade[data-v-9be6bac0]{min-height:120px;width:120px;font-size:10px}.upgrade>*[data-v-9be6bac0]{pointer-events:none}.modifier-container{display:flex;padding:1px 8px}.modifier-container:nth-child(2n){background:var(--raised-background)}.modifier-amount{flex-shrink:0;text-align:right}:not(:first-of-type,:last-of-type)>.modifier-amount:after{content:var(--unit);opacity:0}.modifier-description{flex-grow:1}.game-over-modal-header[data-v-4a50ce42]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.game-over-modal-header *[data-v-4a50ce42]{margin:0}.game-over-modal-logo[data-v-4a50ce42]{height:4em;width:4em}.game-over-modal-title[data-v-4a50ce42]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.game-over-footer[data-v-4a50ce42]{display:flex;justify-content:flex-end}.game-over-footer button[data-v-4a50ce42]{margin:0 10px}.game-over-modal-discord-link[data-v-4a50ce42]{display:flex;align-items:center}.game-over-modal-discord[data-v-4a50ce42]{margin:0 4px 0 0}.nan-modal-header[data-v-336bf74f]{padding:10px 0;margin-left:10px}.nan-footer[data-v-336bf74f]{display:flex;justify-content:flex-end}.nan-footer button[data-v-336bf74f]{margin:0 10px}.nan-modal-discord-link[data-v-336bf74f]{display:flex;align-items:center}.nan-modal-discord[data-v-336bf74f]{margin:0 4px 0 0}.tpsDisplay[data-v-46a3ed5b]{position:absolute;left:10px;bottom:10px;z-index:100}.low[data-v-46a3ed5b]{color:var(--danger)}.fade-leave-to[data-v-46a3ed5b]{opacity:0}:root{color-scheme:dark}*{transition-duration:.5s;font-family:Roboto Mono,monospace;font-weight:700;margin:auto;text-size-adjust:none}*:focus{outline:none}body{overflow:hidden;transition:none;text-align:center}html,body,#app{min-height:100%;height:100%}h1,h2,h3,b,input{display:inline}button{color:#000}a,.button,.link{display:block;color:var(--link);background:none;border:none;cursor:pointer;text-decoration:none}a:hover,.button:hover,.link:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--link)}.button:disabled{opacity:.5;cursor:not-allowed}.button:disabled:hover{text-shadow:none}ul{list-style-type:none}.Vue-Toastification__toast{margin:unset}.app[data-v-41d15e5e]{background-color:var(--background);color:var(--foreground);display:flex;flex-flow:column;min-height:100%;height:100%}#modal-root[data-v-41d15e5e]{position:absolute;min-height:100%;height:100%;color:var(--foreground)} diff --git a/assets/is-plain-object.906d88e8.js b/assets/is-plain-object.906d88e8.js deleted file mode 100644 index d4e4dc0..0000000 --- a/assets/is-plain-object.906d88e8.js +++ /dev/null @@ -1,6 +0,0 @@ -/*! - * is-plain-object - * - * Copyright (c) 2014-2017, Jon Schlinkert. - * Released under the MIT License. - */function n(t){return Object.prototype.toString.call(t)==="[object Object]"}function o(t){var e,r;return n(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(n(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}export{o as i}; diff --git a/assets/material-icons-base-400-normal.47b692f3.woff b/assets/material-icons-base-400-normal.47b692f3.woff new file mode 100644 index 0000000..3031d46 Binary files /dev/null and b/assets/material-icons-base-400-normal.47b692f3.woff differ diff --git a/assets/material-icons-base-400-normal.cc0462d5.woff2 b/assets/material-icons-base-400-normal.cc0462d5.woff2 new file mode 100644 index 0000000..65a3d31 Binary files /dev/null and b/assets/material-icons-base-400-normal.cc0462d5.woff2 differ diff --git a/assets/roboto-mono-all-400-normal.66268f92.woff b/assets/roboto-mono-all-400-normal.66268f92.woff new file mode 100644 index 0000000..068df61 Binary files /dev/null and b/assets/roboto-mono-all-400-normal.66268f92.woff differ diff --git a/assets/roboto-mono-cyrillic-400-normal.8c367f2f.woff2 b/assets/roboto-mono-cyrillic-400-normal.8c367f2f.woff2 new file mode 100644 index 0000000..966b1a0 Binary files /dev/null and b/assets/roboto-mono-cyrillic-400-normal.8c367f2f.woff2 differ diff --git a/assets/roboto-mono-cyrillic-ext-400-normal.eef02d41.woff2 b/assets/roboto-mono-cyrillic-ext-400-normal.eef02d41.woff2 new file mode 100644 index 0000000..184deab Binary files /dev/null and b/assets/roboto-mono-cyrillic-ext-400-normal.eef02d41.woff2 differ diff --git a/assets/roboto-mono-greek-400-normal.53a8927b.woff2 b/assets/roboto-mono-greek-400-normal.53a8927b.woff2 new file mode 100644 index 0000000..5e1ac28 Binary files /dev/null and b/assets/roboto-mono-greek-400-normal.53a8927b.woff2 differ diff --git a/assets/roboto-mono-latin-400-normal.7295944e.woff2 b/assets/roboto-mono-latin-400-normal.7295944e.woff2 new file mode 100644 index 0000000..f8894ba Binary files /dev/null and b/assets/roboto-mono-latin-400-normal.7295944e.woff2 differ diff --git a/assets/roboto-mono-latin-ext-400-normal.820adbd1.woff2 b/assets/roboto-mono-latin-ext-400-normal.820adbd1.woff2 new file mode 100644 index 0000000..f34ae00 Binary files /dev/null and b/assets/roboto-mono-latin-ext-400-normal.820adbd1.woff2 differ diff --git a/assets/sortablejs.bd686609.js b/assets/sortablejs.4c7e7419.js similarity index 99% rename from assets/sortablejs.bd686609.js rename to assets/sortablejs.4c7e7419.js index 8217665..20ee9e5 100644 --- a/assets/sortablejs.bd686609.js +++ b/assets/sortablejs.4c7e7419.js @@ -1,4 +1,4 @@ -import{g as Ue}from"./earcut.17d42416.js";/**! +import{g as Ue}from"./earcut.b6f90e68.js";/**! * Sortable 1.14.0 * @author RubaXa * @author owenm diff --git a/assets/url.b1bd21f4.js b/assets/url.6dd57c6c.js similarity index 99% rename from assets/url.b1bd21f4.js rename to assets/url.6dd57c6c.js index fc372bb..34ab088 100644 --- a/assets/url.b1bd21f4.js +++ b/assets/url.6dd57c6c.js @@ -1,2 +1,2 @@ -import{c as st}from"./earcut.17d42416.js";import{q as ct}from"./querystring.776b9ab3.js";var ht={exports:{}};/*! https://mths.be/punycode v1.3.2 by @mathias */(function(s,a){(function(t){var g=a&&!a.nodeType&&a,p=s&&!s.nodeType&&s,d=typeof st=="object"&&st;(d.global===d||d.window===d||d.self===d)&&(t=d);var m,h=2147483647,x=36,y=1,j=26,G=38,b=700,f=72,T=128,k="-",q=/^xn--/,Z=/[^\x20-\x7E]/,r=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=x-y,u=Math.floor,v=String.fromCharCode,z;function O(e){throw RangeError(c[e])}function I(e,o){for(var n=e.length,i=[];n--;)i[n]=o(e[n]);return i}function S(e,o){var n=e.split("@"),i="";n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(r,".");var l=e.split("."),w=I(l,o).join(".");return i+w}function K(e){for(var o=[],n=0,i=e.length,l,w;n=55296&&l<=56319&&n65535&&(o-=65536,n+=v(o>>>10&1023|55296),o=56320|o&1023),n+=v(o),n}).join("")}function _(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:x}function W(e,o){return e+22+75*(e<26)-((o!=0)<<5)}function X(e,o,n){var i=0;for(e=n?u(e/b):e>>1,e+=u(e/o);e>F*j>>1;i+=x)e=u(e/F);return u(i+(F+1)*e/(e+G))}function V(e){var o=[],n=e.length,i,l=0,w=T,C=f,M,P,D,$,A,N,U,B,J;for(M=e.lastIndexOf(k),M<0&&(M=0),P=0;P=128&&O("not-basic"),o.push(e.charCodeAt(P));for(D=M>0?M+1:0;D=n&&O("invalid-input"),U=_(e.charCodeAt(D++)),(U>=x||U>u((h-l)/A))&&O("overflow"),l+=U*A,B=N<=C?y:N>=C+j?j:N-C,!(Uu(h/J)&&O("overflow"),A*=J;i=o.length+1,C=X(l-$,i,$==0),u(l/i)>h-w&&O("overflow"),w+=u(l/i),l%=i,o.splice(l++,0,w)}return E(o)}function H(e){var o,n,i,l,w,C,M,P,D,$,A,N=[],U,B,J,tt;for(e=K(e),U=e.length,o=T,n=0,w=f,C=0;C=o&&Au((h-n)/B)&&O("overflow"),n+=(M-o)*B,o=M,C=0;Ch&&O("overflow"),A==o){for(P=n,D=x;$=D<=w?y:D>=w+j?j:D-w,!(P<$);D+=x)tt=P-$,J=x-$,N.push(v(W($+tt%J,0))),P=u(tt/J);N.push(v(W(P,0))),w=X(n,B,i==l),n=0,++i}++n,++o}return N.join("")}function ft(e){return S(e,function(o){return q.test(o)?V(o.slice(4).toLowerCase()):o})}function ut(e){return S(e,function(o){return Z.test(o)?"xn--"+H(o):o})}if(m={version:"1.3.2",ucs2:{decode:K,encode:E},decode:V,encode:H,toASCII:ut,toUnicode:ft},g&&p)if(s.exports==g)p.exports=m;else for(z in m)m.hasOwnProperty(z)&&(g[z]=m[z]);else t.punycode=m})(st)})(ht,ht.exports);var lt={isString:function(s){return typeof s=="string"},isObject:function(s){return typeof s=="object"&&s!==null},isNull:function(s){return s===null},isNullOrUndefined:function(s){return s==null}},pt=ht.exports,L=lt,Ft=Q,jt=Ot,It=qt;function R(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var mt=/^([a-z0-9.+-]+:)/i,xt=/:[0-9]*$/,gt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,dt=["<",">",'"',"`"," ","\r",` +import{c as st}from"./earcut.b6f90e68.js";import{q as ct}from"./querystring.776b9ab3.js";var ht={exports:{}};/*! https://mths.be/punycode v1.3.2 by @mathias */(function(s,a){(function(t){var g=a&&!a.nodeType&&a,p=s&&!s.nodeType&&s,d=typeof st=="object"&&st;(d.global===d||d.window===d||d.self===d)&&(t=d);var m,h=2147483647,x=36,y=1,j=26,G=38,b=700,f=72,T=128,k="-",q=/^xn--/,Z=/[^\x20-\x7E]/,r=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},F=x-y,u=Math.floor,v=String.fromCharCode,z;function O(e){throw RangeError(c[e])}function I(e,o){for(var n=e.length,i=[];n--;)i[n]=o(e[n]);return i}function S(e,o){var n=e.split("@"),i="";n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(r,".");var l=e.split("."),w=I(l,o).join(".");return i+w}function K(e){for(var o=[],n=0,i=e.length,l,w;n=55296&&l<=56319&&n65535&&(o-=65536,n+=v(o>>>10&1023|55296),o=56320|o&1023),n+=v(o),n}).join("")}function _(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:x}function W(e,o){return e+22+75*(e<26)-((o!=0)<<5)}function X(e,o,n){var i=0;for(e=n?u(e/b):e>>1,e+=u(e/o);e>F*j>>1;i+=x)e=u(e/F);return u(i+(F+1)*e/(e+G))}function V(e){var o=[],n=e.length,i,l=0,w=T,C=f,M,P,D,$,A,N,U,B,J;for(M=e.lastIndexOf(k),M<0&&(M=0),P=0;P=128&&O("not-basic"),o.push(e.charCodeAt(P));for(D=M>0?M+1:0;D=n&&O("invalid-input"),U=_(e.charCodeAt(D++)),(U>=x||U>u((h-l)/A))&&O("overflow"),l+=U*A,B=N<=C?y:N>=C+j?j:N-C,!(Uu(h/J)&&O("overflow"),A*=J;i=o.length+1,C=X(l-$,i,$==0),u(l/i)>h-w&&O("overflow"),w+=u(l/i),l%=i,o.splice(l++,0,w)}return E(o)}function H(e){var o,n,i,l,w,C,M,P,D,$,A,N=[],U,B,J,tt;for(e=K(e),U=e.length,o=T,n=0,w=f,C=0;C=o&&Au((h-n)/B)&&O("overflow"),n+=(M-o)*B,o=M,C=0;Ch&&O("overflow"),A==o){for(P=n,D=x;$=D<=w?y:D>=w+j?j:D-w,!(P<$);D+=x)tt=P-$,J=x-$,N.push(v(W($+tt%J,0))),P=u(tt/J);N.push(v(W(P,0))),w=X(n,B,i==l),n=0,++i}++n,++o}return N.join("")}function ft(e){return S(e,function(o){return q.test(o)?V(o.slice(4).toLowerCase()):o})}function ut(e){return S(e,function(o){return Z.test(o)?"xn--"+H(o):o})}if(m={version:"1.3.2",ucs2:{decode:K,encode:E},decode:V,encode:H,toASCII:ut,toUnicode:ft},g&&p)if(s.exports==g)p.exports=m;else for(z in m)m.hasOwnProperty(z)&&(g[z]=m[z]);else t.punycode=m})(st)})(ht,ht.exports);var lt={isString:function(s){return typeof s=="string"},isObject:function(s){return typeof s=="object"&&s!==null},isNull:function(s){return s===null},isNullOrUndefined:function(s){return s==null}},pt=ht.exports,L=lt,Ft=Q,jt=Ot,It=qt;function R(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var mt=/^([a-z0-9.+-]+:)/i,xt=/:[0-9]*$/,gt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,dt=["<",">",'"',"`"," ","\r",` `," "],yt=["{","}","|","\\","^","`"].concat(dt),et=["'"].concat(yt),nt=["%","/","?",";","#"].concat(et),at=["/","?","#"],bt=255,it=/^[+a-z0-9A-Z_-]{0,63}$/,vt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Ct={javascript:!0,"javascript:":!0},rt={javascript:!0,"javascript:":!0},Y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ot=ct;function Q(s,a,t){if(s&&L.isObject(s)&&s instanceof R)return s;var g=new R;return g.parse(s,a,t),g}R.prototype.parse=function(s,a,t){if(!L.isString(s))throw new TypeError("Parameter 'url' must be a string, not "+typeof s);var g=s.indexOf("?"),p=g!==-1&&g127?u+="x":u+=F[v];if(!u.match(it)){var O=r.slice(0,f),I=r.slice(f+1),S=F.match(vt);S&&(O.push(S[1]),I.unshift(S[2])),I.length&&(h="/"+I.join(".")+h),this.hostname=O.join(".");break}}}this.hostname.length>bt?this.hostname="":this.hostname=this.hostname.toLowerCase(),Z||(this.hostname=pt.toASCII(this.hostname));var K=this.port?":"+this.port:"",E=this.hostname||"";this.host=E+K,this.href+=this.host,Z&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),h[0]!=="/"&&(h="/"+h))}if(!Ct[j])for(var f=0,c=et.length;f0?t.host.split("@"):!1;u&&(t.auth=u.shift(),t.host=t.hostname=u.shift())}return t.search=s.search,t.query=s.query,(!L.isNull(t.pathname)||!L.isNull(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!r.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var v=r.slice(-1)[0],z=(t.host||s.host||r.length>1)&&(v==="."||v==="..")||v==="",O=0,I=r.length;I>=0;I--)v=r[I],v==="."?r.splice(I,1):v===".."?(r.splice(I,1),O++):O&&(r.splice(I,1),O--);if(!q&&!Z)for(;O--;O)r.unshift("..");q&&r[0]!==""&&(!r[0]||r[0].charAt(0)!=="/")&&r.unshift(""),z&&r.join("/").substr(-1)!=="/"&&r.push("");var S=r[0]===""||r[0]&&r[0].charAt(0)==="/";if(F){t.hostname=t.host=S?"":r.length?r.shift():"";var u=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;u&&(t.auth=u.shift(),t.host=t.hostname=u.shift())}return q=q||t.host&&r.length,q&&!S&&r.unshift(""),r.length?t.pathname=r.join("/"):(t.pathname=null,t.path=null),(!L.isNull(t.pathname)||!L.isNull(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=s.auth||t.auth,t.slashes=t.slashes||s.slashes,t.href=t.format(),t};R.prototype.parseHost=function(){var s=this.host,a=xt.exec(s);a&&(a=a[0],a!==":"&&(this.port=a.substr(1)),s=s.substr(0,s.length-a.length)),s&&(this.hostname=s)};export{It as f,Ft as p,jt as r}; diff --git a/assets/vue-next-select.e991724e.js b/assets/vue-next-select.e991724e.js deleted file mode 100644 index 0a5a12b..0000000 --- a/assets/vue-next-select.e991724e.js +++ /dev/null @@ -1,3 +0,0 @@ -import"./vue.37fee242.js";import{o as b,a4 as x,r as B,a5 as h,bt as L,bu as w,U as P,aM as he,au as ie,ae as De,u as je,D as Z,a2 as y,b4 as S,aj as Ee,x as F,b3 as z,aJ as ze,av as _,aN as J,a3 as $,ac as X,w as ge,c as Le,b9 as $e,bs as Ue,aC as Pe,aH as He,ap as ye,K,O as Q}from"./@vue.7184beb0.js";function ue(e){return(ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function me(e){return function(t){if(Array.isArray(t))return ne(t)}(e)||function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||be(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function be(e,t){if(e){if(typeof e=="string")return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}function ne(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(c){throw c},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m,r=!0,v=!1;return{s:function(){n=n.call(e)},n:function(){var c=n.next();return r=c.done,c},e:function(c){v=!0,m=c},f:function(){try{r||n.return==null||n.return()}finally{if(v)throw m}}}}var ae={inheritAttrs:!1,name:"vue-input",props:{autocomplete:{required:!1,type:String},modelValue:{required:!0,type:String},placeholder:{required:!0,type:String},disabled:{required:!0,type:Boolean},tabindex:{required:!0,type:Number},autofocus:{required:!0,type:Boolean},comboboxUid:{required:!0,type:Number}},emits:["update:modelValue","input","change","focus","blur","escape"],setup:function(e,t){var n=F(null);return Pe(function(){e.autofocus&&n.value.focus()}),He(function(){e.autofocus&&n.value.focus()}),{handleInput:function(o){t.emit("input",o),t.emit("update:modelValue",o.target.value)},handleChange:function(o){t.emit("change",o),t.emit("update:modelValue",o.target.value)},handleFocus:function(o){t.emit("focus",o)},handleBlur:function(o){t.emit("blur",o)},input:n,handleEscape:function(o){n.value.blur(),t.emit("escape",o)}}}},qe={class:"vue-input"},_e=["autocomplete","modelValue","placeholder","disabled","tabindex","autofocus","aria-controls","aria-labelledby"];ae.render=function(e,t,n,o,g,m){return b(),x("div",qe,[B(e.$slots,"prepend"),h("input",{ref:"input",autocomplete:n.autocomplete,modelValue:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,onInput:t[0]||(t[0]=function(){return o.handleInput&&o.handleInput.apply(o,arguments)}),onChange:t[1]||(t[1]=function(){return o.handleChange&&o.handleChange.apply(o,arguments)}),onFocus:t[2]||(t[2]=function(){return o.handleFocus&&o.handleFocus.apply(o,arguments)}),onBlur:t[3]||(t[3]=function(){return o.handleBlur&&o.handleBlur.apply(o,arguments)}),onKeyup:t[4]||(t[4]=L(w(function(){return o.handleEscape&&o.handleEscape.apply(o,arguments)},["exact"]),["esc"])),tabindex:n.tabindex,autofocus:n.autofocus,"aria-autocomplete":"list","aria-controls":"vs".concat(n.comboboxUid,"-listbox"),"aria-labelledby":"vs".concat(n.comboboxUid,"-combobox")},null,40,_e),B(e.$slots,"append")])},ae.__file="src/components/input.vue";var oe={inheritAttrs:!1,name:"vue-tags",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return ue(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},collapseTags:{type:Boolean}},emits:["click"],setup:function(e,t){return{dataAttrs:ye("dataAttrs"),handleClick:function(n){t.emit("click",n)}}}};oe.render=function(e,t,n,o,g,m){return b(),x("ul",ie({class:["vue-tags",{collapsed:n.collapseTags}],onMousedown:t[0]||(t[0]=w(function(){},["prevent"])),tabindex:"-1",onClick:t[1]||(t[1]=function(){return o.handleClick&&o.handleClick.apply(o,arguments)})},o.dataAttrs),[(b(!0),x(P,null,he(n.modelValue,function(r){return b(),x(P,{key:r.key},[r.group?$("v-if",!0):(b(),x("li",{key:0,class:K(["vue-tag",{selected:r.selected}])},[B(e.$slots,"default",{option:r},function(){return[h("span",null,Q(r.label),1)]})],2))],64)}),128))],16)},oe.__file="src/components/tags.vue";var le={inheritAttrs:!1,name:"vue-dropdown",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return ue(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},comboboxUid:{required:!0,type:Number},maxHeight:{required:!0},highlightedOriginalIndex:{required:!0}},emits:["click-item","mouseenter"],setup:function(e,t){return{dataAttrs:ye("dataAttrs"),handleClickItem:function(n,o){o.disabled||t.emit("click-item",n,o)},handleMouseenter:function(n,o){t.emit("mouseenter",n,o)}}}},Re=["id","aria-multiselectable","aria-busy","aria-disabled"],We=["onClick","onMouseenter","id","aria-selected","aria-disabled"];le.render=function(e,t,n,o,g,m){return b(),x("ul",ie({class:"vue-dropdown",style:{maxHeight:n.maxHeight+"px"},onMousedown:t[0]||(t[0]=w(function(){},["prevent"]))},o.dataAttrs,{role:"listbox",id:"vs".concat(n.comboboxUid,"-listbox"),"aria-multiselectable":o.dataAttrs["data-multiple"],"aria-busy":o.dataAttrs["data-loading"],"aria-disabled":o.dataAttrs["data-disabled"]}),[(b(!0),x(P,null,he(n.modelValue,function(r,v){return b(),x(P,{key:r.key},[r.visible&&r.hidden===!1?(b(),x("li",{key:0,onClick:function(c){return o.handleClickItem(c,r)},class:K(["vue-dropdown-item",{selected:r.selected,disabled:r.disabled,highlighted:r.originalIndex===n.highlightedOriginalIndex,group:r.group}]),onMouseenter:function(c){return o.handleMouseenter(c,r)},role:"option",id:"vs".concat(n.comboboxUid,"-option-").concat(v),"aria-selected":!!r.selected||!!r.disabled&&void 0,"aria-disabled":r.disabled},[B(e.$slots,"default",{option:r},function(){return[h("span",null,Q(r.label),1)]})],42,We)):$("v-if",!0)],64)}),128))],16,Re)},le.__file="src/components/dropdown.vue";var xe=function(e,t,n){var o=n.valueBy;return o(e)===o(t)},U=function(e,t,n){var o=n.valueBy;return e.some(function(g){return xe(g,t,{valueBy:o})})},N=function(e,t,n){var o=n.valueBy;return e.find(function(g){return o(g)===t})},ee=function(e,t,n){var o=n.max,g=n.valueBy;return U(e,t,{valueBy:g})||e.length>=o?e:e.concat(t)},te=function(e,t,n){var o=n.min,g=n.valueBy;return U(e,t,{valueBy:g})===!1||e.length<=o?e:e.filter(function(m){return xe(m,t,{valueBy:g})===!1})},G=function(e){return y(function(){return typeof e.value=="function"?e.value:typeof e.value=="string"?function(t){return e.value.split(".").reduce(function(n,o){return n[o]},t)}:function(t){return t}})},Ze=function(e,t){var n=y(function(){return e.value.reduce(function(r,v){return Object.assign(r,(c={},d=v.originalIndex,f=v,d in c?Object.defineProperty(c,d,{value:f,enumerable:!0,configurable:!0,writable:!0}):c[d]=f,c));var c,d,f},{})}),o=function(r){var v=n.value[r];return v!==void 0&&g(v)!==!1&&(t.value=r,!0)},g=function(r){return!r.disabled&&!r.hidden&&r.visible},m=y(function(){return e.value.some(function(r){return g(r)})});return S(function(){if(m.value===!1&&(t.value=null),t.value!==null&&e.value.length<=t.value){var r,v=D(e.value.reverse());try{for(v.s();!(r=v.n()).done;){var c=r.value;if(o(c.originalIndex))break}}catch(V){v.e(V)}finally{v.f()}}if(t.value===null||g(e.value[t.value])===!1){var d,f=D(e.value);try{for(f.s();!(d=f.n()).done;){var j=d.value;if(o(j.originalIndex))break}}catch(V){f.e(V)}finally{f.f()}}}),{pointerForward:function(){if(m.value!==!1&&t.value!==null)for(var r=t.value+1,v=0;r!==t.value&&v++r.value.$el.clientHeight+r.value.$el.scrollTop&&u++n.min,"data-total-length":n.options.length,"data-multiple":e.multiple,"data-loading":e.loading,"data-disabled":e.disabled}});ze("dataAttrs",ve);var E=y(function(){return I.value.filter(function(a){return a.selected}).filter(function(a){return!a.group})}),Ce=y(function(){return e.multiple?E.value.length===0?e.placeholder:E.value.length===1?"1 option selected":E.value.length+" options selected":E.value.length===0?e.placeholder:E.value[0].label+""}),Te=y(function(){var a=E.value.map(function(l){return l.originalOption});return e.multiple?a:a[0]||o.value}),fe=F();return z(function(){return[e.openDirection,d.value]},function(){var a,l;fe.value=(l=(a=e.openDirection)!==null&&a!==void 0?a:function(){if(m.value!==void 0&&window!==void 0)return window.innerHeight-m.value.getBoundingClientRect().bottom>=e.maxHeight?"bottom":"top"}())!==null&&l!==void 0?l:"bottom"},{immediate:!0}),{instance:g,isFocusing:d,wrapper:m,dropdown:r,input:v,focus:f,blur:j,toggle:function(){d.value?j():f()},searchingInputValue:V,handleInputForInput:function(a){t.emit("search:input",a)},handleChangeForInput:function(a){t.emit("search:change",a)},handleFocusForInput:function(a){f()},handleBlurForInput:function(a){j()},optionsWithInfo:I,addOrRemoveOption:function(a,l){e.disabled||(l.group&&e.multiple?Ie(a,l):ke(a,l),Me(),e.closeOnSelect===!0&&(d.value=!1),e.clearOnSelect===!0&&V.value&&pe())},dataAttrs:ve,innerPlaceholder:Ce,selected:Te,highlightedOriginalIndex:R,pointerForward:function(){Fe(),_(q)},pointerBackward:function(){Ve(),_(q)},pointerFirst:function(){var a,l=D(n.options.keys());try{for(l.s();!(a=l.n()).done;){var u=a.value;if(H(u))break}}catch(i){l.e(i)}finally{l.f()}_(q)},pointerLast:function(){var a,l=D(me(n.options.keys()).reverse());try{for(l.s();!(a=l.n()).done;){var u=a.value;if(H(u))break}}catch(i){l.e(i)}finally{l.f()}_(q)},typeAhead:function(a){var l,u;if(!e.searchable){var i=!1;if(Se.test(a.key)?(W+=a.key.toLowerCase(),i=!0):a.code==="Space"&&(W+=" "),i){var k,p=D(Ae.value);try{for(p.s();!(k=p.n()).done;){var M=k.value;if(((u=(l=n.labelBy(n.options[M]))===null||l===void 0?void 0:l.toLowerCase())===null||u===void 0?void 0:u.startsWith(W))===!0&&H(M))break}}catch(C){p.e(C)}finally{p.f()}clearTimeout(ce),ce=setTimeout(function(){W=""},500)}}},pointerSet:H,direction:fe}},components:{VInput:ae,VTags:oe,VDropdown:le}});re.__VERSION__="2.10.4";var Ge=["tabindex","id","role","aria-expanded","aria-owns","aria-activedescendant","aria-busy","aria-disabled"],Ke={class:"vue-select-header"},Qe={key:0,class:"vue-input"},Ye=["placeholder","autocomplete"],Je=["onClick"],Xe=h("span",{class:"icon loading"},[h("div"),h("div"),h("div")],-1),et={key:0,class:"vue-select-input-wrapper"},tt=h("span",{class:"icon loading"},[h("div"),h("div"),h("div")],-1);re.render=function(e,t,n,o,g,m){var r=J("v-tags"),v=J("v-input"),c=J("v-dropdown");return b(),x("div",ie({ref:"wrapper",class:["vue-select",["direction-".concat(e.direction)]],tabindex:e.isFocusing?-1:e.tabindex,onFocus:t[9]||(t[9]=function(){return e.focus&&e.focus.apply(e,arguments)}),onBlur:t[10]||(t[10]=function(d){return!e.searchable&&e.blur(d)})},Object.assign({},e.dataAttrs,e.$attrs),{onKeypress:t[11]||(t[11]=L(w(function(){return e.highlightedOriginalIndex!==null&&e.addOrRemoveOption(e.$event,e.optionsWithInfo[e.highlightedOriginalIndex])},["prevent","exact"]),["enter"])),onKeydown:[t[12]||(t[12]=L(w(function(){return e.pointerForward&&e.pointerForward.apply(e,arguments)},["prevent","exact"]),["down"])),t[13]||(t[13]=L(w(function(){return e.pointerBackward&&e.pointerBackward.apply(e,arguments)},["prevent","exact"]),["up"])),t[14]||(t[14]=L(w(function(){return e.pointerFirst&&e.pointerFirst.apply(e,arguments)},["prevent","exact"]),["home"])),t[15]||(t[15]=L(w(function(){return e.pointerLast&&e.pointerLast.apply(e,arguments)},["prevent","exact"]),["end"])),t[16]||(t[16]=function(){return e.typeAhead&&e.typeAhead.apply(e,arguments)})],id:"vs".concat(e.instance.uid,"-combobox"),role:e.searchable?"combobox":null,"aria-expanded":e.isFocusing,"aria-haspopup":"listbox","aria-owns":"vs".concat(e.instance.uid,"-listbox"),"aria-activedescendant":e.highlightedOriginalIndex===null?null:"vs".concat(e.instance.uid,"-option-").concat(e.highlightedOriginalIndex),"aria-busy":e.loading,"aria-disabled":e.disabled}),[h("div",Ke,[e.multiple&&e.taggable&&e.modelValue.length===0||e.searchable===!1&&e.taggable===!1?(b(),x("div",Qe,[B(e.$slots,"label",{selected:e.selected},function(){return[h("input",{placeholder:e.innerPlaceholder,autocomplete:e.autocomplete,readonly:"",onClick:t[0]||(t[0]=function(){return e.focus&&e.focus.apply(e,arguments)})},null,8,Ye)]})])):$("v-if",!0),e.multiple&&e.taggable?(b(),x(P,{key:1},[X(r,{modelValue:e.optionsWithInfo,"collapse-tags":e.collapseTags,tabindex:"-1",onClick:e.focus},{default:ge(function(d){var f=d.option;return[B(e.$slots,"tag",{option:f.originalOption,remove:function(){return e.addOrRemoveOption(e.$event,f)}},function(){return[h("span",null,Q(f.label),1),h("img",{src:"data:image/svg+xml;base64,PHN2ZyBpZD0iZGVsZXRlIiBkYXRhLW5hbWU9ImRlbGV0ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPmRlbGV0ZTwvdGl0bGU+PHBhdGggZD0iTTI1NiwyNEMzODMuOSwyNCw0ODgsMTI4LjEsNDg4LDI1NlMzODMuOSw0ODgsMjU2LDQ4OCwyNC4wNiwzODMuOSwyNC4wNiwyNTYsMTI4LjEsMjQsMjU2LDI0Wk0wLDI1NkMwLDM5Ny4xNiwxMTQuODQsNTEyLDI1Niw1MTJTNTEyLDM5Ny4xNiw1MTIsMjU2LDM5Ny4xNiwwLDI1NiwwLDAsMTE0Ljg0LDAsMjU2WiIgZmlsbD0iIzViNWI1ZiIvPjxwb2x5Z29uIHBvaW50cz0iMzgyIDE3Mi43MiAzMzkuMjkgMTMwLjAxIDI1NiAyMTMuMjkgMTcyLjcyIDEzMC4wMSAxMzAuMDEgMTcyLjcyIDIxMy4yOSAyNTYgMTMwLjAxIDMzOS4yOCAxNzIuNzIgMzgyIDI1NiAyOTguNzEgMzM5LjI5IDM4MS45OSAzODIgMzM5LjI4IDI5OC43MSAyNTYgMzgyIDE3Mi43MiIgZmlsbD0iIzViNWI1ZiIvPjwvc3ZnPg==",alt:"delete tag",class:"icon delete",onClick:w(function(){return e.addOrRemoveOption(e.$event,f)},["prevent","stop"])},null,8,Je)]})]}),_:3},8,["modelValue","collapse-tags","onClick"]),B(e.$slots,"toggle",{isFocusing:e.isFocusing,toggle:e.toggle},function(){return[h("span",{class:K(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[1]||(t[1]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[2]||(t[2]=w(function(){},["prevent","stop"]))},null,34)]})],64)):(b(),x(P,{key:2},[e.searchable?(b(),Le(v,{key:0,ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[3]||(t[3]=function(d){return e.searchingInputValue=d}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"])):$("v-if",!0),e.loading?B(e.$slots,"loading",{key:1},function(){return[Xe]}):B(e.$slots,"toggle",{key:2,isFocusing:e.isFocusing,toggle:e.toggle},function(){return[h("span",{class:K(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[4]||(t[4]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[5]||(t[5]=w(function(){},["prevent","stop"]))},null,34)]})],64))]),e.multiple&&e.taggable&&e.searchable?(b(),x("div",et,[$e(X(v,{ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[6]||(t[6]=function(d){return e.searchingInputValue=d}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"]),[[Ue,e.isFocusing]]),e.loading?B(e.$slots,"loading",{key:0},function(){return[tt]}):$("v-if",!0)])):$("v-if",!0),X(c,{ref:"dropdown",modelValue:e.optionsWithInfo,"onUpdate:modelValue":t[7]||(t[7]=function(d){return e.optionsWithInfo=d}),onClickItem:e.addOrRemoveOption,onMouseenter:t[8]||(t[8]=function(d,f){return e.pointerSet(f.originalIndex)}),comboboxUid:e.instance.uid,maxHeight:e.maxHeight,highlightedOriginalIndex:e.highlightedOriginalIndex},{default:ge(function(d){var f=d.option;return[B(e.$slots,"dropdown-item",{option:f.originalOption},function(){return[h("span",null,Q(f.label),1)]})]}),_:3},8,["modelValue","onClickItem","comboboxUid","maxHeight","highlightedOriginalIndex"])],16,Ge)},re.__file="src/index.vue";export{re as Y}; diff --git a/assets/vue-next-select.f0e584b6.js b/assets/vue-next-select.f0e584b6.js new file mode 100644 index 0000000..a3c954d --- /dev/null +++ b/assets/vue-next-select.f0e584b6.js @@ -0,0 +1,3 @@ +import"./vue.d185782d.js";import{o as b,a4 as B,r as x,a5 as y,bt as $,bu as I,U as P,aM as ye,au as re,ae as De,aN as J,a3 as U,ac as X,w as ge,c as Ee,b9 as Le,bs as je,x as F,aC as $e,aH as Ue,ap as he,K,O as Q,u as ze,D as Z,b4 as S,a2 as h,aj as Pe,b3 as j,av as _,aJ as He}from"./@vue.7184beb0.js";function ie(e){return(ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function me(e){return function(t){if(Array.isArray(t))return ne(t)}(e)||function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||be(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function be(e,t){if(e){if(typeof e=="string")return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}function ne(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,l=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[l++]}},e:function(s){throw s},f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m,u=!0,v=!1;return{s:function(){n=n.call(e)},n:function(){var s=n.next();return u=s.done,s},e:function(s){v=!0,m=s},f:function(){try{u||n.return==null||n.return()}finally{if(v)throw m}}}}var ae={inheritAttrs:!1,name:"vue-input",props:{autocomplete:{required:!1,type:String},modelValue:{required:!0,type:String},placeholder:{required:!0,type:String},disabled:{required:!0,type:Boolean},tabindex:{required:!0,type:Number},autofocus:{required:!0,type:Boolean},comboboxUid:{required:!0,type:Number}},emits:["update:modelValue","input","change","focus","blur","escape"],setup:function(e,t){var n=F(null);return $e(function(){e.autofocus&&n.value.focus()}),Ue(function(){e.autofocus&&n.value.focus()}),{handleInput:function(l){t.emit("input",l),t.emit("update:modelValue",l.target.value)},handleChange:function(l){t.emit("change",l),t.emit("update:modelValue",l.target.value)},handleFocus:function(l){t.emit("focus",l)},handleBlur:function(l){t.emit("blur",l)},input:n,handleEscape:function(l){n.value.blur(),t.emit("escape",l)}}}},qe={class:"vue-input"},_e=["autocomplete","modelValue","placeholder","disabled","tabindex","autofocus","aria-controls","aria-labelledby"];ae.render=function(e,t,n,l,g,m){return b(),B("div",qe,[x(e.$slots,"prepend"),y("input",{ref:"input",autocomplete:n.autocomplete,modelValue:n.modelValue,placeholder:n.placeholder,disabled:n.disabled,onInput:t[0]||(t[0]=function(){return l.handleInput&&l.handleInput.apply(l,arguments)}),onChange:t[1]||(t[1]=function(){return l.handleChange&&l.handleChange.apply(l,arguments)}),onFocus:t[2]||(t[2]=function(){return l.handleFocus&&l.handleFocus.apply(l,arguments)}),onBlur:t[3]||(t[3]=function(){return l.handleBlur&&l.handleBlur.apply(l,arguments)}),onKeyup:t[4]||(t[4]=$(I(function(){return l.handleEscape&&l.handleEscape.apply(l,arguments)},["exact"]),["esc"])),tabindex:n.tabindex,autofocus:n.autofocus,"aria-autocomplete":"list","aria-controls":"vs".concat(n.comboboxUid,"-listbox"),"aria-labelledby":"vs".concat(n.comboboxUid,"-combobox")},null,40,_e),x(e.$slots,"append")])},ae.__file="src/components/input.vue";var le={inheritAttrs:!1,name:"vue-tags",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return ie(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},collapseTags:{type:Boolean}},emits:["click"],setup:function(e,t){return{dataAttrs:he("dataAttrs"),handleClick:function(n){t.emit("click",n)}}}};le.render=function(e,t,n,l,g,m){return b(),B("ul",re({class:["vue-tags",{collapsed:n.collapseTags}],onMousedown:t[0]||(t[0]=I(function(){},["prevent"])),tabindex:"-1",onClick:t[1]||(t[1]=function(){return l.handleClick&&l.handleClick.apply(l,arguments)})},l.dataAttrs),[(b(!0),B(P,null,ye(n.modelValue,function(u){return b(),B(P,{key:u.key},[u.group?U("v-if",!0):(b(),B("li",{key:0,class:K(["vue-tag",{selected:u.selected}])},[x(e.$slots,"default",{option:u},function(){return[y("span",null,Q(u.label),1)]})],2))],64)}),128))],16)},le.__file="src/components/tags.vue";var oe={inheritAttrs:!1,name:"vue-dropdown",props:{modelValue:{required:!0,type:Array,validator:function(e){return e.every(function(t){return ie(t.key)!==void 0&&t.label!==void 0&&typeof t.selected=="boolean"})}},comboboxUid:{required:!0,type:Number},maxHeight:{required:!0},highlightedOriginalIndex:{required:!0}},emits:["click-item","mouseenter"],setup:function(e,t){return{dataAttrs:he("dataAttrs"),handleClickItem:function(n,l){l.disabled||t.emit("click-item",n,l)},handleMouseenter:function(n,l){t.emit("mouseenter",n,l)}}}},Re=["id","aria-multiselectable","aria-busy","aria-disabled"],We=["onClick","onMouseenter","id","aria-selected","aria-disabled"];oe.render=function(e,t,n,l,g,m){return b(),B("ul",re({class:"vue-dropdown",style:{maxHeight:n.maxHeight+"px"},onMousedown:t[0]||(t[0]=I(function(){},["prevent"]))},l.dataAttrs,{role:"listbox",id:"vs".concat(n.comboboxUid,"-listbox"),"aria-multiselectable":l.dataAttrs["data-multiple"],"aria-busy":l.dataAttrs["data-loading"],"aria-disabled":l.dataAttrs["data-disabled"]}),[(b(!0),B(P,null,ye(n.modelValue,function(u,v){return b(),B(P,{key:u.key},[u.visible&&u.hidden===!1?(b(),B("li",{key:0,onClick:function(s){return l.handleClickItem(s,u)},class:K(["vue-dropdown-item",{selected:u.selected,disabled:u.disabled,highlighted:u.originalIndex===n.highlightedOriginalIndex,group:u.group}]),onMouseenter:function(s){return l.handleMouseenter(s,u)},role:"option",id:"vs".concat(n.comboboxUid,"-option-").concat(v),"aria-selected":!!u.selected||!!u.disabled&&void 0,"aria-disabled":u.disabled},[x(e.$slots,"default",{option:u},function(){return[y("span",null,Q(u.label),1)]})],42,We)):U("v-if",!0)],64)}),128))],16,Re)},oe.__file="src/components/dropdown.vue";var Be=function(e,t,n){var l=n.valueBy;return l(e)===l(t)},z=function(e,t,n){var l=n.valueBy;return e.some(function(g){return Be(g,t,{valueBy:l})})},N=function(e,t,n){var l=n.valueBy;return e.find(function(g){return l(g)===t})},ee=function(e,t,n){var l=n.max,g=n.valueBy;return z(e,t,{valueBy:g})||e.length>=l?e:e.concat(t)},te=function(e,t,n){var l=n.min,g=n.valueBy;return z(e,t,{valueBy:g})===!1||e.length<=l?e:e.filter(function(m){return Be(m,t,{valueBy:g})===!1})},G=function(e){return h(function(){return typeof e.value=="function"?e.value:typeof e.value=="string"?function(t){return e.value.split(".").reduce(function(n,l){return n[l]},t)}:function(t){return t}})},Ze=function(e,t){var n=h(function(){return e.value.reduce(function(u,v){return Object.assign(u,(s={},c=v.originalIndex,f=v,c in s?Object.defineProperty(s,c,{value:f,enumerable:!0,configurable:!0,writable:!0}):s[c]=f,s));var s,c,f},{})}),l=function(u){var v=n.value[u];return v!==void 0&&g(v)!==!1&&(t.value=u,!0)},g=function(u){return!u.disabled&&!u.hidden&&u.visible},m=h(function(){return e.value.some(function(u){return g(u)})});return S(function(){if(m.value===!1&&(t.value=null),t.value!==null&&e.value.length<=t.value){var u,v=D(e.value.reverse());try{for(v.s();!(u=v.n()).done;){var s=u.value;if(l(s.originalIndex))break}}catch(V){v.e(V)}finally{v.f()}}if(t.value===null||g(e.value[t.value])===!1){var c,f=D(e.value);try{for(f.s();!(c=f.n()).done;){var E=c.value;if(l(E.originalIndex))break}}catch(V){f.e(V)}finally{f.f()}}}),{pointerForward:function(){if(m.value!==!1&&t.value!==null)for(var u=t.value+1,v=0;u!==t.value&&v++u.value.$el.clientHeight+u.value.$el.scrollTop&&i++n.min,"data-total-length":n.options.length,"data-multiple":e.multiple,"data-loading":e.loading,"data-disabled":e.disabled}});He("dataAttrs",ve);var L=h(function(){return w.value.filter(function(a){return a.selected}).filter(function(a){return!a.group})}),Ce=h(function(){return e.multiple?L.value.length===0?e.placeholder:L.value.length===1?"1 option selected":L.value.length+" options selected":L.value.length===0?e.placeholder:L.value[0].label+""}),Te=h(function(){var a=L.value.map(function(o){return o.originalOption});return e.multiple?a:a[0]||l.value}),fe=F();return j(function(){return[e.openDirection,c.value]},function(){var a,o;fe.value=(o=(a=e.openDirection)!==null&&a!==void 0?a:function(){if(m.value!==void 0&&window!==void 0)return window.innerHeight-m.value.getBoundingClientRect().bottom>=e.maxHeight?"bottom":"top"}())!==null&&o!==void 0?o:"bottom"},{immediate:!0}),{instance:g,isFocusing:c,wrapper:m,dropdown:u,input:v,focus:f,blur:E,toggle:function(){c.value?E():f()},searchingInputValue:V,handleInputForInput:function(a){t.emit("search:input",a)},handleChangeForInput:function(a){t.emit("search:change",a)},handleFocusForInput:function(a){f()},handleBlurForInput:function(a){E()},optionsWithInfo:w,addOrRemoveOption:function(a,o){e.disabled||(o.group&&e.multiple?we(a,o):Me(a,o),ke(),e.closeOnSelect===!0&&(c.value=!1),e.clearOnSelect===!0&&V.value&&pe())},dataAttrs:ve,innerPlaceholder:Ce,selected:Te,highlightedOriginalIndex:R,pointerForward:function(){Fe(),_(q)},pointerBackward:function(){Ve(),_(q)},pointerFirst:function(){var a,o=D(n.options.keys());try{for(o.s();!(a=o.n()).done;){var i=a.value;if(H(i))break}}catch(r){o.e(r)}finally{o.f()}_(q)},pointerLast:function(){var a,o=D(me(n.options.keys()).reverse());try{for(o.s();!(a=o.n()).done;){var i=a.value;if(H(i))break}}catch(r){o.e(r)}finally{o.f()}_(q)},typeAhead:function(a){var o,i;if(!e.searchable){var r=!1;if(Se.test(a.key)?(W+=a.key.toLowerCase(),r=!0):a.code==="Space"&&(W+=" "),r){var M,p=D(Ae.value);try{for(p.s();!(M=p.n()).done;){var k=M.value;if(((i=(o=n.labelBy(n.options[k]))===null||o===void 0?void 0:o.toLowerCase())===null||i===void 0?void 0:i.startsWith(W))===!0&&H(k))break}}catch(C){p.e(C)}finally{p.f()}clearTimeout(se),se=setTimeout(function(){W=""},500)}}},pointerSet:H,direction:fe}},components:{VInput:ae,VTags:le,VDropdown:oe}});ue.__VERSION__="2.10.4";var Ge=["tabindex","id","role","aria-expanded","aria-owns","aria-activedescendant","aria-busy","aria-disabled"],Ke={class:"vue-select-header"},Qe={key:0,class:"vue-input"},Ye=["placeholder","autocomplete"],Je=["onClick"],Xe=y("span",{class:"icon loading"},[y("div"),y("div"),y("div")],-1),et={key:0,class:"vue-select-input-wrapper"},tt=y("span",{class:"icon loading"},[y("div"),y("div"),y("div")],-1);ue.render=function(e,t,n,l,g,m){var u=J("v-tags"),v=J("v-input"),s=J("v-dropdown");return b(),B("div",re({ref:"wrapper",class:["vue-select",["direction-".concat(e.direction)]],tabindex:e.isFocusing?-1:e.tabindex,onFocus:t[9]||(t[9]=function(){return e.focus&&e.focus.apply(e,arguments)}),onBlur:t[10]||(t[10]=function(c){return!e.searchable&&e.blur(c)})},Object.assign({},e.dataAttrs,e.$attrs),{onKeypress:t[11]||(t[11]=$(I(function(){return e.highlightedOriginalIndex!==null&&e.addOrRemoveOption(e.$event,e.optionsWithInfo[e.highlightedOriginalIndex])},["prevent","exact"]),["enter"])),onKeydown:[t[12]||(t[12]=$(I(function(){return e.pointerForward&&e.pointerForward.apply(e,arguments)},["prevent","exact"]),["down"])),t[13]||(t[13]=$(I(function(){return e.pointerBackward&&e.pointerBackward.apply(e,arguments)},["prevent","exact"]),["up"])),t[14]||(t[14]=$(I(function(){return e.pointerFirst&&e.pointerFirst.apply(e,arguments)},["prevent","exact"]),["home"])),t[15]||(t[15]=$(I(function(){return e.pointerLast&&e.pointerLast.apply(e,arguments)},["prevent","exact"]),["end"])),t[16]||(t[16]=function(){return e.typeAhead&&e.typeAhead.apply(e,arguments)})],id:"vs".concat(e.instance.uid,"-combobox"),role:e.searchable?"combobox":null,"aria-expanded":e.isFocusing,"aria-haspopup":"listbox","aria-owns":"vs".concat(e.instance.uid,"-listbox"),"aria-activedescendant":e.highlightedOriginalIndex===null?null:"vs".concat(e.instance.uid,"-option-").concat(e.highlightedOriginalIndex),"aria-busy":e.loading,"aria-disabled":e.disabled}),[y("div",Ke,[e.multiple&&e.taggable&&e.modelValue.length===0||e.searchable===!1&&e.taggable===!1?(b(),B("div",Qe,[x(e.$slots,"label",{selected:e.selected},function(){return[y("input",{placeholder:e.innerPlaceholder,autocomplete:e.autocomplete,readonly:"",onClick:t[0]||(t[0]=function(){return e.focus&&e.focus.apply(e,arguments)})},null,8,Ye)]})])):U("v-if",!0),e.multiple&&e.taggable?(b(),B(P,{key:1},[X(u,{modelValue:e.optionsWithInfo,"collapse-tags":e.collapseTags,tabindex:"-1",onClick:e.focus},{default:ge(function(c){var f=c.option;return[x(e.$slots,"tag",{option:f.originalOption,remove:function(){return e.addOrRemoveOption(e.$event,f)}},function(){return[y("span",null,Q(f.label),1),y("img",{src:"data:image/svg+xml;base64,PHN2ZyBpZD0iZGVsZXRlIiBkYXRhLW5hbWU9ImRlbGV0ZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB2aWV3Qm94PSIwIDAgNTEyIDUxMiI+PHRpdGxlPmRlbGV0ZTwvdGl0bGU+PHBhdGggZD0iTTI1NiwyNEMzODMuOSwyNCw0ODgsMTI4LjEsNDg4LDI1NlMzODMuOSw0ODgsMjU2LDQ4OCwyNC4wNiwzODMuOSwyNC4wNiwyNTYsMTI4LjEsMjQsMjU2LDI0Wk0wLDI1NkMwLDM5Ny4xNiwxMTQuODQsNTEyLDI1Niw1MTJTNTEyLDM5Ny4xNiw1MTIsMjU2LDM5Ny4xNiwwLDI1NiwwLDAsMTE0Ljg0LDAsMjU2WiIgZmlsbD0iIzViNWI1ZiIvPjxwb2x5Z29uIHBvaW50cz0iMzgyIDE3Mi43MiAzMzkuMjkgMTMwLjAxIDI1NiAyMTMuMjkgMTcyLjcyIDEzMC4wMSAxMzAuMDEgMTcyLjcyIDIxMy4yOSAyNTYgMTMwLjAxIDMzOS4yOCAxNzIuNzIgMzgyIDI1NiAyOTguNzEgMzM5LjI5IDM4MS45OSAzODIgMzM5LjI4IDI5OC43MSAyNTYgMzgyIDE3Mi43MiIgZmlsbD0iIzViNWI1ZiIvPjwvc3ZnPg==",alt:"delete tag",class:"icon delete",onClick:I(function(){return e.addOrRemoveOption(e.$event,f)},["prevent","stop"])},null,8,Je)]})]}),_:3},8,["modelValue","collapse-tags","onClick"]),x(e.$slots,"toggle",{isFocusing:e.isFocusing,toggle:e.toggle},function(){return[y("span",{class:K(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[1]||(t[1]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[2]||(t[2]=I(function(){},["prevent","stop"]))},null,34)]})],64)):(b(),B(P,{key:2},[e.searchable?(b(),Ee(v,{key:0,ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[3]||(t[3]=function(c){return e.searchingInputValue=c}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"])):U("v-if",!0),e.loading?x(e.$slots,"loading",{key:1},function(){return[Xe]}):x(e.$slots,"toggle",{key:2,isFocusing:e.isFocusing,toggle:e.toggle},function(){return[y("span",{class:K(["icon arrow-downward",{active:e.isFocusing}]),onClick:t[4]||(t[4]=function(){return e.toggle&&e.toggle.apply(e,arguments)}),onMousedown:t[5]||(t[5]=I(function(){},["prevent","stop"]))},null,34)]})],64))]),e.multiple&&e.taggable&&e.searchable?(b(),B("div",et,[Le(X(v,{ref:"input",modelValue:e.searchingInputValue,"onUpdate:modelValue":t[6]||(t[6]=function(c){return e.searchingInputValue=c}),disabled:e.disabled,autocomplete:e.autocomplete,placeholder:e.isFocusing?e.searchPlaceholder:e.innerPlaceholder,onInput:e.handleInputForInput,onChange:e.handleChangeForInput,onFocus:e.handleFocusForInput,onBlur:e.handleBlurForInput,onEscape:e.blur,autofocus:e.autofocus||e.taggable&&e.searchable,tabindex:e.tabindex,comboboxUid:e.instance.uid},null,8,["modelValue","disabled","autocomplete","placeholder","onInput","onChange","onFocus","onBlur","onEscape","autofocus","tabindex","comboboxUid"]),[[je,e.isFocusing]]),e.loading?x(e.$slots,"loading",{key:0},function(){return[tt]}):U("v-if",!0)])):U("v-if",!0),X(s,{ref:"dropdown",modelValue:e.optionsWithInfo,"onUpdate:modelValue":t[7]||(t[7]=function(c){return e.optionsWithInfo=c}),onClickItem:e.addOrRemoveOption,onMouseenter:t[8]||(t[8]=function(c,f){return e.pointerSet(f.originalIndex)}),comboboxUid:e.instance.uid,maxHeight:e.maxHeight,highlightedOriginalIndex:e.highlightedOriginalIndex},{default:ge(function(c){var f=c.option;return[x(e.$slots,"dropdown-item",{option:f.originalOption},function(){return[y("span",null,Q(f.label),1)]})]}),_:3},8,["modelValue","onClickItem","comboboxUid","maxHeight","highlightedOriginalIndex"])],16,Ge)},ue.__file="src/index.vue";export{ue as Y}; diff --git a/assets/vue-toastification.768059b7.js b/assets/vue-toastification.768059b7.js new file mode 100644 index 0000000..afb6de2 --- /dev/null +++ b/assets/vue-toastification.768059b7.js @@ -0,0 +1 @@ +import"./vue.d185782d.js";import{ae as C,C as mt,H as pt,o,a4 as u,M as x,K as b,c as p,w as I,au as V,aP as M,ab as $,O as W,aN as y,a3 as R,a5 as _,U as N,aX as vt,bu as gt,r as Tt,bc as Ct,aM as H,ac as yt,aj as bt,ap as Ot,av as _t,be as St}from"./@vue.7184beb0.js";var Et=Object.defineProperty,k=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,U=(t,e,s)=>e in t?Et(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,q=(t,e)=>{for(var s in e||(e={}))Bt.call(e,s)&&U(t,s,e[s]);if(k)for(var s of k(e))It.call(e,s)&&U(t,s,e[s]);return t},w=t=>typeof t=="function",D=t=>typeof t=="string",K=t=>D(t)&&t.trim().length>0,wt=t=>typeof t=="number",T=t=>typeof t=="undefined",O=t=>typeof t=="object"&&t!==null,Dt=t=>h(t,"tag")&&K(t.tag),J=t=>window.TouchEvent&&t instanceof TouchEvent,Q=t=>h(t,"component")&&Y(t.component),Rt=t=>w(t)||O(t),Y=t=>!T(t)&&(D(t)||Rt(t)||Q(t)),z=t=>O(t)&&["height","width","right","left","top","bottom"].every(e=>wt(t[e])),h=(t,e)=>(O(t)||w(t))&&e in t,Pt=(t=>()=>t++)(0);function P(t){return J(t)?t.targetTouches[0].clientX:t.clientX}function j(t){return J(t)?t.targetTouches[0].clientY:t.clientY}var Nt=t=>{T(t.remove)?t.parentNode&&t.parentNode.removeChild(t):t.remove()},S=t=>Q(t)?S(t.component):Dt(t)?C({render(){return t}}):typeof t=="string"?t:mt(pt(t)),At=t=>{if(typeof t=="string")return t;const e=h(t,"props")&&O(t.props)?t.props:{},s=h(t,"listeners")&&O(t.listeners)?t.listeners:{};return{component:S(t),props:e,listeners:s}},Lt=()=>typeof window!="undefined",F=class{constructor(){this.allHandlers={}}getHandlers(t){return this.allHandlers[t]||[]}on(t,e){const s=this.getHandlers(t);s.push(e),this.allHandlers[t]=s}off(t,e){const s=this.getHandlers(t);s.splice(s.indexOf(e)>>>0,1)}emit(t,e){this.getHandlers(t).forEach(n=>n(e))}},Vt=t=>["on","off","emit"].every(e=>h(t,e)&&w(t[e])),i;(function(t){t.SUCCESS="success",t.ERROR="error",t.WARNING="warning",t.INFO="info",t.DEFAULT="default"})(i||(i={}));var B;(function(t){t.TOP_LEFT="top-left",t.TOP_CENTER="top-center",t.TOP_RIGHT="top-right",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_CENTER="bottom-center",t.BOTTOM_RIGHT="bottom-right"})(B||(B={}));var l;(function(t){t.ADD="add",t.DISMISS="dismiss",t.UPDATE="update",t.CLEAR="clear",t.UPDATE_DEFAULTS="update_defaults"})(l||(l={}));var d="Vue-Toastification",c={type:{type:String,default:i.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},Z={type:c.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},E={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:c.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},A={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},tt={transition:{type:[Object,String],default:`${d}__bounce`}},Mt={position:{type:String,default:B.TOP_RIGHT},draggable:c.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:c.trueBoolean,pauseOnHover:c.trueBoolean,closeOnClick:c.trueBoolean,timeout:A.timeout,hideProgressBar:A.hideProgressBar,toastClassName:c.classNames,bodyClassName:c.classNames,icon:Z.customIcon,closeButton:E.component,closeButtonClassName:E.classNames,showCloseButtonOnHover:E.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new F}},$t={id:{type:[String,Number],required:!0,default:0},type:c.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},Ft={container:{type:[Object,Function],default:()=>document.body},newestOnTop:c.trueBoolean,maxToasts:{type:Number,default:20},transition:tt.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:t=>t},filterToasts:{type:Function,default:t=>t},containerClassName:c.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},f={CORE_TOAST:Mt,TOAST:$t,CONTAINER:Ft,PROGRESS_BAR:A,ICON:Z,TRANSITION:tt,CLOSE_BUTTON:E},et=C({name:"VtProgressBar",props:f.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${d}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function Ht(t,e){return o(),u("div",{style:x(t.style),class:b(t.cpClass)},null,6)}et.render=Ht;var kt=et,st=C({name:"VtCloseButton",props:f.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?S(this.component):"button"},classes(){const t=[`${d}__close-button`];return this.showOnHover&&t.push("show-on-hover"),t.concat(this.classNames)}}}),Ut=$(" \xD7 ");function zt(t,e){return o(),p(M(t.buttonComponent),V({"aria-label":t.ariaLabel,class:t.classes},t.$attrs),{default:I(()=>[Ut]),_:1},16,["aria-label","class"])}st.render=zt;var jt=st,at={},Gt={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Xt=_("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1),xt=[Xt];function Wt(t,e){return o(),u("svg",Gt,xt)}at.render=Wt;var qt=at,nt={},Kt={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Jt=_("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1),Qt=[Jt];function Yt(t,e){return o(),u("svg",Kt,Qt)}nt.render=Yt;var G=nt,ot={},Zt={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},te=_("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),ee=[te];function se(t,e){return o(),u("svg",Zt,ee)}ot.render=se;var ae=ot,rt={},ne={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},oe=_("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),re=[oe];function ie(t,e){return o(),u("svg",ne,re)}rt.render=ie;var le=rt,it=C({name:"VtIcon",props:f.ICON,computed:{customIconChildren(){return h(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return D(this.customIcon)?this.trimValue(this.customIcon):h(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return h(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:Y(this.customIcon)?S(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[i.DEFAULT]:G,[i.INFO]:G,[i.SUCCESS]:qt,[i.ERROR]:le,[i.WARNING]:ae}[this.type]},iconClasses(){const t=[`${d}__icon`];return this.hasCustomIcon?t.concat(this.customIconClass):t}},methods:{trimValue(t,e=""){return K(t)?t.trim():e}}});function ce(t,e){return o(),p(M(t.component),{class:b(t.iconClasses)},{default:I(()=>[$(W(t.customIconChildren),1)]),_:1},8,["class"])}it.render=ce;var ue=it,lt=C({name:"VtToast",components:{ProgressBar:kt,CloseButton:jt,Icon:ue},inheritAttrs:!1,props:Object.assign({},f.CORE_TOAST,f.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const t=[`${d}__toast`,`${d}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&t.push("disable-transition"),this.rtl&&t.push(`${d}__toast--rtl`),t},bodyClasses(){return[`${d}__toast-${D(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return z(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:h,getVueComponentFromObj:S,closeToast(){this.eventBus.emit(l.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const t=this.$el;t.addEventListener("touchstart",this.onDragStart,{passive:!0}),t.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const t=this.$el;t.removeEventListener("touchstart",this.onDragStart),t.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(t){this.beingDragged=!0,this.dragPos={x:P(t),y:j(t)},this.dragStart=P(t),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(t){this.beingDragged&&(t.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:P(t),y:j(t)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,z(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),de=["role"];function he(t,e){const s=y("Icon"),n=y("CloseButton"),v=y("ProgressBar");return o(),u("div",{class:b(t.classes),style:x(t.draggableStyle),onClick:e[0]||(e[0]=(...a)=>t.clickHandler&&t.clickHandler(...a)),onMouseenter:e[1]||(e[1]=(...a)=>t.hoverPause&&t.hoverPause(...a)),onMouseleave:e[2]||(e[2]=(...a)=>t.hoverPlay&&t.hoverPlay(...a))},[t.icon?(o(),p(s,{key:0,"custom-icon":t.icon,type:t.type},null,8,["custom-icon","type"])):R("v-if",!0),_("div",{role:t.accessibility.toastRole||"alert",class:b(t.bodyClasses)},[typeof t.content=="string"?(o(),u(N,{key:0},[$(W(t.content),1)],2112)):(o(),p(M(t.getVueComponentFromObj(t.content)),V({key:1,"toast-id":t.id},t.hasProp(t.content,"props")?t.content.props:{},vt(t.hasProp(t.content,"listeners")?t.content.listeners:{}),{onCloseToast:t.closeToast}),null,16,["toast-id","onCloseToast"]))],10,de),t.closeButton?(o(),p(n,{key:1,component:t.closeButton,"class-names":t.closeButtonClassName,"show-on-hover":t.showCloseButtonOnHover,"aria-label":t.accessibility.closeButtonLabel,onClick:gt(t.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):R("v-if",!0),t.timeout?(o(),p(v,{key:2,"is-running":t.isRunning,"hide-progress-bar":t.hideProgressBar,timeout:t.timeout,onCloseToast:t.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):R("v-if",!0)],38)}lt.render=he;var fe=lt,ct=C({name:"VtTransition",props:f.TRANSITION,emits:["leave"],methods:{hasProp:h,leave(t){t instanceof HTMLElement&&(t.style.left=t.offsetLeft+"px",t.style.top=t.offsetTop+"px",t.style.width=getComputedStyle(t).width,t.style.position="absolute")}}});function me(t,e){return o(),p(Ct,{tag:"div","enter-active-class":t.transition.enter?t.transition.enter:`${t.transition}-enter-active`,"move-class":t.transition.move?t.transition.move:`${t.transition}-move`,"leave-active-class":t.transition.leave?t.transition.leave:`${t.transition}-leave-active`,onLeave:t.leave},{default:I(()=>[Tt(t.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}ct.render=me;var pe=ct,ut=C({name:"VueToastification",devtools:{hide:!0},components:{Toast:fe,VtTransition:pe},props:Object.assign({},f.CORE_TOAST,f.CONTAINER,f.TRANSITION),data(){return{count:0,positions:Object.values(B),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const t=this.eventBus;t.on(l.ADD,this.addToast),t.on(l.CLEAR,this.clearToasts),t.on(l.DISMISS,this.dismissToast),t.on(l.UPDATE,this.updateToast),t.on(l.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(t){w(t)&&(t=await t()),Nt(this.$el),t.appendChild(this.$el)},setToast(t){T(t.id)||(this.toasts[t.id]=t)},addToast(t){t.content=At(t.content);const e=Object.assign({},this.defaults,t.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[t.type],t),s=this.defaults.filterBeforeCreate(e,this.toastArray);s&&this.setToast(s)},dismissToast(t){const e=this.toasts[t];!T(e)&&!T(e.onClose)&&e.onClose(),delete this.toasts[t]},clearToasts(){Object.keys(this.toasts).forEach(t=>{this.dismissToast(t)})},getPositionToasts(t){const e=this.filteredToasts.filter(s=>s.position===t).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?e.reverse():e},updateDefaults(t){T(t.container)||this.setup(t.container),this.defaults=Object.assign({},this.defaults,t)},updateToast({id:t,options:e,create:s}){this.toasts[t]?(e.timeout&&e.timeout===this.toasts[t].timeout&&e.timeout++,this.setToast(Object.assign({},this.toasts[t],e))):s&&this.addToast(Object.assign({},{id:t},e))},getClasses(t){return[`${d}__container`,t].concat(this.defaults.containerClassName)}}});function ve(t,e){const s=y("Toast"),n=y("VtTransition");return o(),u("div",null,[(o(!0),u(N,null,H(t.positions,v=>(o(),u("div",{key:v},[yt(n,{transition:t.defaults.transition,class:b(t.getClasses(v))},{default:I(()=>[(o(!0),u(N,null,H(t.getPositionToasts(v),a=>(o(),p(s,V({key:a.id},a),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}ut.render=ve;var ge=ut,X=(t={},e=!0)=>{const s=t.eventBus=t.eventBus||new F;e&&_t(()=>{const a=St(ge,q({},t)),r=a.mount(document.createElement("div")),g=t.onMounted;if(T(g)||g(r,a),t.shareAppContext){const m=t.shareAppContext;m===!0?console.warn(`[${d}] App to share context with was not provided.`):(a._context.components=m._context.components,a._context.directives=m._context.directives,a._context.mixins=m._context.mixins,a._context.provides=m._context.provides,a.config.globalProperties=m.config.globalProperties)}});const n=(a,r)=>{const g=Object.assign({},{id:Pt(),type:i.DEFAULT},r,{content:a});return s.emit(l.ADD,g),g.id};n.clear=()=>s.emit(l.CLEAR,void 0),n.updateDefaults=a=>{s.emit(l.UPDATE_DEFAULTS,a)},n.dismiss=a=>{s.emit(l.DISMISS,a)};function v(a,{content:r,options:g},m=!1){const ft=Object.assign({},g,{content:r});s.emit(l.UPDATE,{id:a,options:ft,create:m})}return n.update=v,n.success=(a,r)=>n(a,Object.assign({},r,{type:i.SUCCESS})),n.info=(a,r)=>n(a,Object.assign({},r,{type:i.INFO})),n.error=(a,r)=>n(a,Object.assign({},r,{type:i.ERROR})),n.warning=(a,r)=>n(a,Object.assign({},r,{type:i.WARNING})),n},Te=()=>{const t=()=>console.warn(`[${d}] This plugin does not support SSR!`);return new Proxy(t,{get(){return t}})};function L(t){return Lt()?Vt(t)?X({eventBus:t},!1):X(t,!0):Te()}var dt=Symbol("VueToastification"),ht=new F,Ce=(t,e)=>{(e==null?void 0:e.shareAppContext)===!0&&(e.shareAppContext=t);const s=L(q({eventBus:ht},e));t.provide(dt,s)},Oe=t=>{if(t)return L(t);const e=bt()?Ot(dt,void 0):void 0;return e||L(ht)},_e=Ce;export{_e as s,Oe as u}; diff --git a/assets/vue-toastification.80a5fcd9.js b/assets/vue-toastification.80a5fcd9.js deleted file mode 100644 index acf5158..0000000 --- a/assets/vue-toastification.80a5fcd9.js +++ /dev/null @@ -1 +0,0 @@ -import"./vue.37fee242.js";import{ae as T,C as pt,H as ht,o as i,a4 as u,M as j,K as y,c as h,w,au as L,aP as N,ab as A,O as G,aN as b,a3 as S,a5 as C,U as D,aX as gt,bu as vt,r as _t,bc as Tt,aM as Y,ac as bt,aj as yt,ap as Vt,av as Ct,be as Bt}from"./@vue.7184beb0.js";var xt=Object.defineProperty,$=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,H=(t,e,a)=>e in t?xt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,W=(t,e)=>{for(var a in e||(e={}))Ot.call(e,a)&&H(t,a,e[a]);if($)for(var a of $(e))wt.call(e,a)&&H(t,a,e[a]);return t},I=t=>typeof t=="function",R=t=>typeof t=="string",q=t=>R(t)&&t.trim().length>0,It=t=>typeof t=="number",_=t=>typeof t=="undefined",V=t=>typeof t=="object"&&t!==null,Rt=t=>d(t,"tag")&&q(t.tag),K=t=>window.TouchEvent&&t instanceof TouchEvent,Z=t=>d(t,"component")&&J(t.component),St=t=>I(t)||V(t),J=t=>!_(t)&&(R(t)||St(t)||Z(t)),F=t=>V(t)&&["height","width","right","left","top","bottom"].every(e=>It(t[e])),d=(t,e)=>(V(t)||I(t))&&e in t,Et=(t=>()=>t++)(0);function E(t){return K(t)?t.targetTouches[0].clientX:t.clientX}function z(t){return K(t)?t.targetTouches[0].clientY:t.clientY}var Dt=t=>{_(t.remove)?t.parentNode&&t.parentNode.removeChild(t):t.remove()},B=t=>Z(t)?B(t.component):Rt(t)?T({render(){return t}}):typeof t=="string"?t:pt(ht(t)),kt=t=>{if(typeof t=="string")return t;const e=d(t,"props")&&V(t.props)?t.props:{},a=d(t,"listeners")&&V(t.listeners)?t.listeners:{};return{component:B(t),props:e,listeners:a}},Pt=()=>typeof window!="undefined",M=class{constructor(){this.allHandlers={}}getHandlers(t){return this.allHandlers[t]||[]}on(t,e){const a=this.getHandlers(t);a.push(e),this.allHandlers[t]=a}off(t,e){const a=this.getHandlers(t);a.splice(a.indexOf(e)>>>0,1)}emit(t,e){this.getHandlers(t).forEach(n=>n(e))}},Lt=t=>["on","off","emit"].every(e=>d(t,e)&&I(t[e])),r;(function(t){t.SUCCESS="success",t.ERROR="error",t.WARNING="warning",t.INFO="info",t.DEFAULT="default"})(r||(r={}));var O;(function(t){t.TOP_LEFT="top-left",t.TOP_CENTER="top-center",t.TOP_RIGHT="top-right",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_CENTER="bottom-center",t.BOTTOM_RIGHT="bottom-right"})(O||(O={}));var c;(function(t){t.ADD="add",t.DISMISS="dismiss",t.UPDATE="update",t.CLEAR="clear",t.UPDATE_DEFAULTS="update_defaults"})(c||(c={}));var f="Vue-Toastification",l={type:{type:String,default:r.DEFAULT},classNames:{type:[String,Array],default:()=>[]},trueBoolean:{type:Boolean,default:!0}},Q={type:l.type,customIcon:{type:[String,Boolean,Object,Function],default:!0}},x={component:{type:[String,Object,Function,Boolean],default:"button"},classNames:l.classNames,showOnHover:{type:Boolean,default:!1},ariaLabel:{type:String,default:"close"}},k={timeout:{type:[Number,Boolean],default:5e3},hideProgressBar:{type:Boolean,default:!1},isRunning:{type:Boolean,default:!1}},tt={transition:{type:[Object,String],default:`${f}__bounce`}},Nt={position:{type:String,default:O.TOP_RIGHT},draggable:l.trueBoolean,draggablePercent:{type:Number,default:.6},pauseOnFocusLoss:l.trueBoolean,pauseOnHover:l.trueBoolean,closeOnClick:l.trueBoolean,timeout:k.timeout,hideProgressBar:k.hideProgressBar,toastClassName:l.classNames,bodyClassName:l.classNames,icon:Q.customIcon,closeButton:x.component,closeButtonClassName:x.classNames,showCloseButtonOnHover:x.showOnHover,accessibility:{type:Object,default:()=>({toastRole:"alert",closeButtonLabel:"close"})},rtl:{type:Boolean,default:!1},eventBus:{type:Object,required:!1,default:()=>new M}},At={id:{type:[String,Number],required:!0,default:0},type:l.type,content:{type:[String,Object,Function],required:!0,default:""},onClick:{type:Function,default:void 0},onClose:{type:Function,default:void 0}},Mt={container:{type:[Object,Function],default:()=>document.body},newestOnTop:l.trueBoolean,maxToasts:{type:Number,default:20},transition:tt.transition,toastDefaults:Object,filterBeforeCreate:{type:Function,default:t=>t},filterToasts:{type:Function,default:t=>t},containerClassName:l.classNames,onMounted:Function,shareAppContext:[Boolean,Object]},m={CORE_TOAST:Nt,TOAST:At,CONTAINER:Mt,PROGRESS_BAR:k,ICON:Q,TRANSITION:tt,CLOSE_BUTTON:x},et=T({name:"VtProgressBar",props:m.PROGRESS_BAR,data(){return{hasClass:!0}},computed:{style(){return{animationDuration:`${this.timeout}ms`,animationPlayState:this.isRunning?"running":"paused",opacity:this.hideProgressBar?0:1}},cpClass(){return this.hasClass?`${f}__progress-bar`:""}},watch:{timeout(){this.hasClass=!1,this.$nextTick(()=>this.hasClass=!0)}},mounted(){this.$el.addEventListener("animationend",this.animationEnded)},beforeUnmount(){this.$el.removeEventListener("animationend",this.animationEnded)},methods:{animationEnded(){this.$emit("close-toast")}}});function Yt(t,e){return i(),u("div",{style:j(t.style),class:y(t.cpClass)},null,6)}et.render=Yt;var $t=et,at=T({name:"VtCloseButton",props:m.CLOSE_BUTTON,computed:{buttonComponent(){return this.component!==!1?B(this.component):"button"},classes(){const t=[`${f}__close-button`];return this.showOnHover&&t.push("show-on-hover"),t.concat(this.classNames)}}}),Ht=A(" \xD7 ");function Ft(t,e){return i(),h(N(t.buttonComponent),L({"aria-label":t.ariaLabel,class:t.classes},t.$attrs),{default:w(()=>[Ht]),_:1},16,["aria-label","class"])}at.render=Ft;var zt=at,ot={},Ut={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"check-circle",class:"svg-inline--fa fa-check-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Xt=C("path",{fill:"currentColor",d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},null,-1),jt=[Xt];function Gt(t,e){return i(),u("svg",Ut,jt)}ot.render=Gt;var Wt=ot,nt={},qt={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"info-circle",class:"svg-inline--fa fa-info-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},Kt=C("path",{fill:"currentColor",d:"M256 8C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm0 110c23.196 0 42 18.804 42 42s-18.804 42-42 42-42-18.804-42-42 18.804-42 42-42zm56 254c0 6.627-5.373 12-12 12h-88c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h12v-64h-12c-6.627 0-12-5.373-12-12v-24c0-6.627 5.373-12 12-12h64c6.627 0 12 5.373 12 12v100h12c6.627 0 12 5.373 12 12v24z"},null,-1),Zt=[Kt];function Jt(t,e){return i(),u("svg",qt,Zt)}nt.render=Jt;var U=nt,it={},Qt={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-circle",class:"svg-inline--fa fa-exclamation-circle fa-w-16",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},te=C("path",{fill:"currentColor",d:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),ee=[te];function ae(t,e){return i(),u("svg",Qt,ee)}it.render=ae;var oe=it,st={},ne={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"exclamation-triangle",class:"svg-inline--fa fa-exclamation-triangle fa-w-18",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"},ie=C("path",{fill:"currentColor",d:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z"},null,-1),se=[ie];function re(t,e){return i(),u("svg",ne,se)}st.render=re;var ce=st,rt=T({name:"VtIcon",props:m.ICON,computed:{customIconChildren(){return d(this.customIcon,"iconChildren")?this.trimValue(this.customIcon.iconChildren):""},customIconClass(){return R(this.customIcon)?this.trimValue(this.customIcon):d(this.customIcon,"iconClass")?this.trimValue(this.customIcon.iconClass):""},customIconTag(){return d(this.customIcon,"iconTag")?this.trimValue(this.customIcon.iconTag,"i"):"i"},hasCustomIcon(){return this.customIconClass.length>0},component(){return this.hasCustomIcon?this.customIconTag:J(this.customIcon)?B(this.customIcon):this.iconTypeComponent},iconTypeComponent(){return{[r.DEFAULT]:U,[r.INFO]:U,[r.SUCCESS]:Wt,[r.ERROR]:ce,[r.WARNING]:oe}[this.type]},iconClasses(){const t=[`${f}__icon`];return this.hasCustomIcon?t.concat(this.customIconClass):t}},methods:{trimValue(t,e=""){return q(t)?t.trim():e}}});function le(t,e){return i(),h(N(t.component),{class:y(t.iconClasses)},{default:w(()=>[A(G(t.customIconChildren),1)]),_:1},8,["class"])}rt.render=le;var ue=rt,ct=T({name:"VtToast",components:{ProgressBar:$t,CloseButton:zt,Icon:ue},inheritAttrs:!1,props:Object.assign({},m.CORE_TOAST,m.TOAST),data(){return{isRunning:!0,disableTransitions:!1,beingDragged:!1,dragStart:0,dragPos:{x:0,y:0},dragRect:{}}},computed:{classes(){const t=[`${f}__toast`,`${f}__toast--${this.type}`,`${this.position}`].concat(this.toastClassName);return this.disableTransitions&&t.push("disable-transition"),this.rtl&&t.push(`${f}__toast--rtl`),t},bodyClasses(){return[`${f}__toast-${R(this.content)?"body":"component-body"}`].concat(this.bodyClassName)},draggableStyle(){return this.dragStart===this.dragPos.x?{}:this.beingDragged?{transform:`translateX(${this.dragDelta}px)`,opacity:1-Math.abs(this.dragDelta/this.removalDistance)}:{transition:"transform 0.2s, opacity 0.2s",transform:"translateX(0)",opacity:1}},dragDelta(){return this.beingDragged?this.dragPos.x-this.dragStart:0},removalDistance(){return F(this.dragRect)?(this.dragRect.right-this.dragRect.left)*this.draggablePercent:0}},mounted(){this.draggable&&this.draggableSetup(),this.pauseOnFocusLoss&&this.focusSetup()},beforeUnmount(){this.draggable&&this.draggableCleanup(),this.pauseOnFocusLoss&&this.focusCleanup()},methods:{hasProp:d,getVueComponentFromObj:B,closeToast(){this.eventBus.emit(c.DISMISS,this.id)},clickHandler(){this.onClick&&this.onClick(this.closeToast),this.closeOnClick&&(!this.beingDragged||this.dragStart===this.dragPos.x)&&this.closeToast()},timeoutHandler(){this.closeToast()},hoverPause(){this.pauseOnHover&&(this.isRunning=!1)},hoverPlay(){this.pauseOnHover&&(this.isRunning=!0)},focusPause(){this.isRunning=!1},focusPlay(){this.isRunning=!0},focusSetup(){addEventListener("blur",this.focusPause),addEventListener("focus",this.focusPlay)},focusCleanup(){removeEventListener("blur",this.focusPause),removeEventListener("focus",this.focusPlay)},draggableSetup(){const t=this.$el;t.addEventListener("touchstart",this.onDragStart,{passive:!0}),t.addEventListener("mousedown",this.onDragStart),addEventListener("touchmove",this.onDragMove,{passive:!1}),addEventListener("mousemove",this.onDragMove),addEventListener("touchend",this.onDragEnd),addEventListener("mouseup",this.onDragEnd)},draggableCleanup(){const t=this.$el;t.removeEventListener("touchstart",this.onDragStart),t.removeEventListener("mousedown",this.onDragStart),removeEventListener("touchmove",this.onDragMove),removeEventListener("mousemove",this.onDragMove),removeEventListener("touchend",this.onDragEnd),removeEventListener("mouseup",this.onDragEnd)},onDragStart(t){this.beingDragged=!0,this.dragPos={x:E(t),y:z(t)},this.dragStart=E(t),this.dragRect=this.$el.getBoundingClientRect()},onDragMove(t){this.beingDragged&&(t.preventDefault(),this.isRunning&&(this.isRunning=!1),this.dragPos={x:E(t),y:z(t)})},onDragEnd(){this.beingDragged&&(Math.abs(this.dragDelta)>=this.removalDistance?(this.disableTransitions=!0,this.$nextTick(()=>this.closeToast())):setTimeout(()=>{this.beingDragged=!1,F(this.dragRect)&&this.pauseOnHover&&this.dragRect.bottom>=this.dragPos.y&&this.dragPos.y>=this.dragRect.top&&this.dragRect.left<=this.dragPos.x&&this.dragPos.x<=this.dragRect.right?this.isRunning=!1:this.isRunning=!0}))}}}),fe=["role"];function de(t,e){const a=b("Icon"),n=b("CloseButton"),g=b("ProgressBar");return i(),u("div",{class:y(t.classes),style:j(t.draggableStyle),onClick:e[0]||(e[0]=(...o)=>t.clickHandler&&t.clickHandler(...o)),onMouseenter:e[1]||(e[1]=(...o)=>t.hoverPause&&t.hoverPause(...o)),onMouseleave:e[2]||(e[2]=(...o)=>t.hoverPlay&&t.hoverPlay(...o))},[t.icon?(i(),h(a,{key:0,"custom-icon":t.icon,type:t.type},null,8,["custom-icon","type"])):S("v-if",!0),C("div",{role:t.accessibility.toastRole||"alert",class:y(t.bodyClasses)},[typeof t.content=="string"?(i(),u(D,{key:0},[A(G(t.content),1)],2112)):(i(),h(N(t.getVueComponentFromObj(t.content)),L({key:1,"toast-id":t.id},t.hasProp(t.content,"props")?t.content.props:{},gt(t.hasProp(t.content,"listeners")?t.content.listeners:{}),{onCloseToast:t.closeToast}),null,16,["toast-id","onCloseToast"]))],10,fe),t.closeButton?(i(),h(n,{key:1,component:t.closeButton,"class-names":t.closeButtonClassName,"show-on-hover":t.showCloseButtonOnHover,"aria-label":t.accessibility.closeButtonLabel,onClick:vt(t.closeToast,["stop"])},null,8,["component","class-names","show-on-hover","aria-label","onClick"])):S("v-if",!0),t.timeout?(i(),h(g,{key:2,"is-running":t.isRunning,"hide-progress-bar":t.hideProgressBar,timeout:t.timeout,onCloseToast:t.timeoutHandler},null,8,["is-running","hide-progress-bar","timeout","onCloseToast"])):S("v-if",!0)],38)}ct.render=de;var me=ct,lt=T({name:"VtTransition",props:m.TRANSITION,emits:["leave"],methods:{hasProp:d,leave(t){t instanceof HTMLElement&&(t.style.left=t.offsetLeft+"px",t.style.top=t.offsetTop+"px",t.style.width=getComputedStyle(t).width,t.style.position="absolute")}}});function pe(t,e){return i(),h(Tt,{tag:"div","enter-active-class":t.transition.enter?t.transition.enter:`${t.transition}-enter-active`,"move-class":t.transition.move?t.transition.move:`${t.transition}-move`,"leave-active-class":t.transition.leave?t.transition.leave:`${t.transition}-leave-active`,onLeave:t.leave},{default:w(()=>[_t(t.$slots,"default")]),_:3},8,["enter-active-class","move-class","leave-active-class","onLeave"])}lt.render=pe;var he=lt,ut=T({name:"VueToastification",devtools:{hide:!0},components:{Toast:me,VtTransition:he},props:Object.assign({},m.CORE_TOAST,m.CONTAINER,m.TRANSITION),data(){return{count:0,positions:Object.values(O),toasts:{},defaults:{}}},computed:{toastArray(){return Object.values(this.toasts)},filteredToasts(){return this.defaults.filterToasts(this.toastArray)}},beforeMount(){const t=this.eventBus;t.on(c.ADD,this.addToast),t.on(c.CLEAR,this.clearToasts),t.on(c.DISMISS,this.dismissToast),t.on(c.UPDATE,this.updateToast),t.on(c.UPDATE_DEFAULTS,this.updateDefaults),this.defaults=this.$props},mounted(){this.setup(this.container)},methods:{async setup(t){I(t)&&(t=await t()),Dt(this.$el),t.appendChild(this.$el)},setToast(t){_(t.id)||(this.toasts[t.id]=t)},addToast(t){t.content=kt(t.content);const e=Object.assign({},this.defaults,t.type&&this.defaults.toastDefaults&&this.defaults.toastDefaults[t.type],t),a=this.defaults.filterBeforeCreate(e,this.toastArray);a&&this.setToast(a)},dismissToast(t){const e=this.toasts[t];!_(e)&&!_(e.onClose)&&e.onClose(),delete this.toasts[t]},clearToasts(){Object.keys(this.toasts).forEach(t=>{this.dismissToast(t)})},getPositionToasts(t){const e=this.filteredToasts.filter(a=>a.position===t).slice(0,this.defaults.maxToasts);return this.defaults.newestOnTop?e.reverse():e},updateDefaults(t){_(t.container)||this.setup(t.container),this.defaults=Object.assign({},this.defaults,t)},updateToast({id:t,options:e,create:a}){this.toasts[t]?(e.timeout&&e.timeout===this.toasts[t].timeout&&e.timeout++,this.setToast(Object.assign({},this.toasts[t],e))):a&&this.addToast(Object.assign({},{id:t},e))},getClasses(t){return[`${f}__container`,t].concat(this.defaults.containerClassName)}}});function ge(t,e){const a=b("Toast"),n=b("VtTransition");return i(),u("div",null,[(i(!0),u(D,null,Y(t.positions,g=>(i(),u("div",{key:g},[bt(n,{transition:t.defaults.transition,class:y(t.getClasses(g))},{default:w(()=>[(i(!0),u(D,null,Y(t.getPositionToasts(g),o=>(i(),h(a,L({key:o.id},o),null,16))),128))]),_:2},1032,["transition","class"])]))),128))])}ut.render=ge;var ve=ut,X=(t={},e=!0)=>{const a=t.eventBus=t.eventBus||new M;e&&Ct(()=>{const o=Bt(ve,W({},t)),s=o.mount(document.createElement("div")),v=t.onMounted;if(_(v)||v(s,o),t.shareAppContext){const p=t.shareAppContext;p===!0?console.warn(`[${f}] App to share context with was not provided.`):(o._context.components=p._context.components,o._context.directives=p._context.directives,o._context.mixins=p._context.mixins,o._context.provides=p._context.provides,o.config.globalProperties=p.config.globalProperties)}});const n=(o,s)=>{const v=Object.assign({},{id:Et(),type:r.DEFAULT},s,{content:o});return a.emit(c.ADD,v),v.id};n.clear=()=>a.emit(c.CLEAR,void 0),n.updateDefaults=o=>{a.emit(c.UPDATE_DEFAULTS,o)},n.dismiss=o=>{a.emit(c.DISMISS,o)};function g(o,{content:s,options:v},p=!1){const mt=Object.assign({},v,{content:s});a.emit(c.UPDATE,{id:o,options:mt,create:p})}return n.update=g,n.success=(o,s)=>n(o,Object.assign({},s,{type:r.SUCCESS})),n.info=(o,s)=>n(o,Object.assign({},s,{type:r.INFO})),n.error=(o,s)=>n(o,Object.assign({},s,{type:r.ERROR})),n.warning=(o,s)=>n(o,Object.assign({},s,{type:r.WARNING})),n},_e=()=>{const t=()=>console.warn(`[${f}] This plugin does not support SSR!`);return new Proxy(t,{get(){return t}})};function P(t){return Pt()?Lt(t)?X({eventBus:t},!1):X(t,!0):_e()}var ft=Symbol("VueToastification"),dt=new M,Te=(t,e)=>{(e==null?void 0:e.shareAppContext)===!0&&(e.shareAppContext=t);const a=P(W({eventBus:dt},e));t.provide(ft,a)},Ve=t=>{if(t)return P(t);const e=yt()?Vt(ft,void 0):void 0;return e||P(dt)},Ce=Te;export{Ce as s,Ve as u}; diff --git a/assets/vue.37fee242.js b/assets/vue.d185782d.js similarity index 98% rename from assets/vue.37fee242.js rename to assets/vue.d185782d.js index 5e9d3a6..931e8f3 100644 --- a/assets/vue.37fee242.js +++ b/assets/vue.d185782d.js @@ -1 +1 @@ -import{g as f}from"./earcut.17d42416.js";import{a as i,i as m,N as r,b as u,e as p,d as S,E as h,R as v,f as R,g as C,h as y,j as w,k as g,l as b,m as T,n as E,p as x,q as k,s as M,t as D,u as P,v as V,x as A,y as B,z as H,A as N,B as F,C as U,D as z,F as I,G as K,H as O,I as j,J as _,K as q,L as W,M as L,O as G,P as $,Q as J,S as Q,U as X,V as Y,W as Z,X as ee,Y as ae,Z as se,_ as oe,$ as te,a0 as re,a1 as ne,a2 as ie,c as ce,a3 as le,a4 as de,a5 as fe,a6 as me,a7 as ue,a8 as pe,a9 as Se,aa as he,ab as ve,ac as Re,ad as Ce,ae as ye,af as we,ag as ge,ah as be,ai as Te,aj as Ee,ak as xe,al as ke,am as Me,an as De,ao as Pe,ap as Ve,aq as Ae,ar as Be,as as He,at as Ne,au as Fe,av as Ue,aw as ze,ax as Ie,ay as Ke,az as Oe,aA as je,aB as _e,aC as qe,aD as We,aE as Le,aF as Ge,aG as $e,aH as Je,o as Qe,aI as Xe,aJ as Ye,aK as Ze,aL as ea,aM as aa,r as sa,aN as oa,aO as ta,aP as ra,aQ as na,aR as ia,aS as ca,aT as la,aU as da,aV as fa,aW as ma,aX as ua,aY as pa,aZ as Sa,a_ as ha,a$ as va,b0 as Ra,b1 as Ca,b2 as ya,b3 as wa,b4 as ga,b5 as ba,b6 as Ta,b7 as Ea,w as xa,b8 as ka,b9 as Ma,ba as Da,bb as Pa,T as Va,bc as Aa,bd as Ba,be as Ha,bf as Na,bg as Fa,bh as Ua,bi as za,bj as Ia,bk as Ka,bl as Oa,bm as ja,bn as _a,bo as qa,bp as Wa,bq as La,br as Ga,bs as $a,bt as Ja,bu as Qa}from"./@vue.7184beb0.js";const n=Object.create(null);function c(e,l){if(!m(e))if(e.nodeType)e=e.innerHTML;else return r;const a=e,s=n[a];if(s)return s;if(e[0]==="#"){const t=document.querySelector(e);e=t?t.innerHTML:""}const{code:d}=u(e,p({hoistStatic:!0,onError:void 0,onWarn:r},l)),o=new Function("Vue",d)(S);return o._rc=!0,n[a]=o}i(c);var Xa=Object.freeze(Object.defineProperty({__proto__:null,compile:c,EffectScope:h,ReactiveEffect:v,customRef:R,effect:C,effectScope:y,getCurrentScope:w,isProxy:g,isReactive:b,isReadonly:T,isRef:E,isShallow:x,markRaw:k,onScopeDispose:M,proxyRefs:D,reactive:P,readonly:V,ref:A,shallowReactive:B,shallowReadonly:H,shallowRef:N,stop:F,toRaw:U,toRef:z,toRefs:I,triggerRef:K,unref:O,camelize:j,capitalize:_,normalizeClass:q,normalizeProps:W,normalizeStyle:L,toDisplayString:G,toHandlerKey:$,BaseTransition:J,Comment:Q,Fragment:X,KeepAlive:Y,Static:Z,Suspense:ee,Teleport:ae,Text:se,callWithAsyncErrorHandling:oe,callWithErrorHandling:te,cloneVNode:re,compatUtils:ne,computed:ie,createBlock:ce,createCommentVNode:le,createElementBlock:de,createElementVNode:fe,createHydrationRenderer:me,createPropsRestProxy:ue,createRenderer:pe,createSlots:Se,createStaticVNode:he,createTextVNode:ve,createVNode:Re,defineAsyncComponent:Ce,defineComponent:ye,defineEmits:we,defineExpose:ge,defineProps:be,get devtools(){return Te},getCurrentInstance:Ee,getTransitionRawChildren:xe,guardReactiveProps:ke,h:Me,handleError:De,initCustomFormatter:Pe,inject:Ve,isMemoSame:Ae,isRuntimeOnly:Be,isVNode:He,mergeDefaults:Ne,mergeProps:Fe,nextTick:Ue,onActivated:ze,onBeforeMount:Ie,onBeforeUnmount:Ke,onBeforeUpdate:Oe,onDeactivated:je,onErrorCaptured:_e,onMounted:qe,onRenderTracked:We,onRenderTriggered:Le,onServerPrefetch:Ge,onUnmounted:$e,onUpdated:Je,openBlock:Qe,popScopeId:Xe,provide:Ye,pushScopeId:Ze,queuePostFlushCb:ea,registerRuntimeCompiler:i,renderList:aa,renderSlot:sa,resolveComponent:oa,resolveDirective:ta,resolveDynamicComponent:ra,resolveFilter:na,resolveTransitionHooks:ia,setBlockTracking:ca,setDevtoolsHook:la,setTransitionHooks:da,ssrContextKey:fa,ssrUtils:ma,toHandlers:ua,transformVNodeArgs:pa,useAttrs:Sa,useSSRContext:ha,useSlots:va,useTransitionState:Ra,version:Ca,warn:ya,watch:wa,watchEffect:ga,watchPostEffect:ba,watchSyncEffect:Ta,withAsyncContext:Ea,withCtx:xa,withDefaults:ka,withDirectives:Ma,withMemo:Da,withScopeId:Pa,Transition:Va,TransitionGroup:Aa,VueElement:Ba,createApp:Ha,createSSRApp:Na,defineCustomElement:Fa,defineSSRCustomElement:Ua,hydrate:za,initDirectivesForSSR:Ia,render:Ka,useCssModule:Oa,useCssVars:ja,vModelCheckbox:_a,vModelDynamic:qa,vModelRadio:Wa,vModelSelect:La,vModelText:Ga,vShow:$a,withKeys:Ja,withModifiers:Qa},Symbol.toStringTag,{value:"Module"})),es=f(Xa);export{es as r}; +import{g as f}from"./earcut.b6f90e68.js";import{a as i,i as m,N as r,b as u,e as p,d as S,E as h,R as v,f as R,g as C,h as y,j as w,k as g,l as b,m as T,n as E,p as x,q as k,s as M,t as D,u as P,v as V,x as A,y as B,z as H,A as N,B as F,C as U,D as z,F as I,G as K,H as O,I as j,J as _,K as q,L as W,M as L,O as G,P as $,Q as J,S as Q,U as X,V as Y,W as Z,X as ee,Y as ae,Z as se,_ as oe,$ as te,a0 as re,a1 as ne,a2 as ie,c as ce,a3 as le,a4 as de,a5 as fe,a6 as me,a7 as ue,a8 as pe,a9 as Se,aa as he,ab as ve,ac as Re,ad as Ce,ae as ye,af as we,ag as ge,ah as be,ai as Te,aj as Ee,ak as xe,al as ke,am as Me,an as De,ao as Pe,ap as Ve,aq as Ae,ar as Be,as as He,at as Ne,au as Fe,av as Ue,aw as ze,ax as Ie,ay as Ke,az as Oe,aA as je,aB as _e,aC as qe,aD as We,aE as Le,aF as Ge,aG as $e,aH as Je,o as Qe,aI as Xe,aJ as Ye,aK as Ze,aL as ea,aM as aa,r as sa,aN as oa,aO as ta,aP as ra,aQ as na,aR as ia,aS as ca,aT as la,aU as da,aV as fa,aW as ma,aX as ua,aY as pa,aZ as Sa,a_ as ha,a$ as va,b0 as Ra,b1 as Ca,b2 as ya,b3 as wa,b4 as ga,b5 as ba,b6 as Ta,b7 as Ea,w as xa,b8 as ka,b9 as Ma,ba as Da,bb as Pa,T as Va,bc as Aa,bd as Ba,be as Ha,bf as Na,bg as Fa,bh as Ua,bi as za,bj as Ia,bk as Ka,bl as Oa,bm as ja,bn as _a,bo as qa,bp as Wa,bq as La,br as Ga,bs as $a,bt as Ja,bu as Qa}from"./@vue.7184beb0.js";const n=Object.create(null);function c(e,l){if(!m(e))if(e.nodeType)e=e.innerHTML;else return r;const a=e,s=n[a];if(s)return s;if(e[0]==="#"){const t=document.querySelector(e);e=t?t.innerHTML:""}const{code:d}=u(e,p({hoistStatic:!0,onError:void 0,onWarn:r},l)),o=new Function("Vue",d)(S);return o._rc=!0,n[a]=o}i(c);var Xa=Object.freeze(Object.defineProperty({__proto__:null,compile:c,EffectScope:h,ReactiveEffect:v,customRef:R,effect:C,effectScope:y,getCurrentScope:w,isProxy:g,isReactive:b,isReadonly:T,isRef:E,isShallow:x,markRaw:k,onScopeDispose:M,proxyRefs:D,reactive:P,readonly:V,ref:A,shallowReactive:B,shallowReadonly:H,shallowRef:N,stop:F,toRaw:U,toRef:z,toRefs:I,triggerRef:K,unref:O,camelize:j,capitalize:_,normalizeClass:q,normalizeProps:W,normalizeStyle:L,toDisplayString:G,toHandlerKey:$,BaseTransition:J,Comment:Q,Fragment:X,KeepAlive:Y,Static:Z,Suspense:ee,Teleport:ae,Text:se,callWithAsyncErrorHandling:oe,callWithErrorHandling:te,cloneVNode:re,compatUtils:ne,computed:ie,createBlock:ce,createCommentVNode:le,createElementBlock:de,createElementVNode:fe,createHydrationRenderer:me,createPropsRestProxy:ue,createRenderer:pe,createSlots:Se,createStaticVNode:he,createTextVNode:ve,createVNode:Re,defineAsyncComponent:Ce,defineComponent:ye,defineEmits:we,defineExpose:ge,defineProps:be,get devtools(){return Te},getCurrentInstance:Ee,getTransitionRawChildren:xe,guardReactiveProps:ke,h:Me,handleError:De,initCustomFormatter:Pe,inject:Ve,isMemoSame:Ae,isRuntimeOnly:Be,isVNode:He,mergeDefaults:Ne,mergeProps:Fe,nextTick:Ue,onActivated:ze,onBeforeMount:Ie,onBeforeUnmount:Ke,onBeforeUpdate:Oe,onDeactivated:je,onErrorCaptured:_e,onMounted:qe,onRenderTracked:We,onRenderTriggered:Le,onServerPrefetch:Ge,onUnmounted:$e,onUpdated:Je,openBlock:Qe,popScopeId:Xe,provide:Ye,pushScopeId:Ze,queuePostFlushCb:ea,registerRuntimeCompiler:i,renderList:aa,renderSlot:sa,resolveComponent:oa,resolveDirective:ta,resolveDynamicComponent:ra,resolveFilter:na,resolveTransitionHooks:ia,setBlockTracking:ca,setDevtoolsHook:la,setTransitionHooks:da,ssrContextKey:fa,ssrUtils:ma,toHandlers:ua,transformVNodeArgs:pa,useAttrs:Sa,useSSRContext:ha,useSlots:va,useTransitionState:Ra,version:Ca,warn:ya,watch:wa,watchEffect:ga,watchPostEffect:ba,watchSyncEffect:Ta,withAsyncContext:Ea,withCtx:xa,withDefaults:ka,withDirectives:Ma,withMemo:Da,withScopeId:Pa,Transition:Va,TransitionGroup:Aa,VueElement:Ba,createApp:Ha,createSSRApp:Na,defineCustomElement:Fa,defineSSRCustomElement:Ua,hydrate:za,initDirectivesForSSR:Ia,render:Ka,useCssModule:Oa,useCssVars:ja,vModelCheckbox:_a,vModelDynamic:qa,vModelRadio:Wa,vModelSelect:La,vModelText:Ga,vShow:$a,withKeys:Ja,withModifiers:Qa},Symbol.toStringTag,{value:"Module"})),es=f(Xa);export{es as r}; diff --git a/assets/vuedraggable.d1ae43bb.js b/assets/vuedraggable.4713c6fe.js similarity index 99% rename from assets/vuedraggable.d1ae43bb.js rename to assets/vuedraggable.4713c6fe.js index 3db89ba..88ff4c2 100644 --- a/assets/vuedraggable.d1ae43bb.js +++ b/assets/vuedraggable.4713c6fe.js @@ -1,4 +1,4 @@ -import{c as jt,a as Ct}from"./earcut.17d42416.js";import{r as Lt}from"./vue.37fee242.js";import{r as Ft}from"./sortablejs.bd686609.js";var Pt={exports:{}};(function(Rt,Dt){(function(bt,o){Rt.exports=o(Lt,Ft)})(typeof self!="undefined"?self:jt,function(Tt,bt){return function(o){var g={};function t(r){if(g[r])return g[r].exports;var e=g[r]={i:r,l:!1,exports:{}};return o[r].call(e.exports,e,e.exports,t),e.l=!0,e.exports}return t.m=o,t.c=g,t.d=function(r,e,n){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},t.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(e&1&&(r=t(r)),e&8||e&4&&typeof r=="object"&&r&&r.__esModule)return r;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),e&2&&typeof r!="string")for(var a in r)t.d(n,a,function(i){return r[i]}.bind(null,a));return n},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="",t(t.s="fb15")}({"00ee":function(o,g,t){var r=t("b622"),e=r("toStringTag"),n={};n[e]="z",o.exports=String(n)==="[object z]"},"0366":function(o,g,t){var r=t("1c0b");o.exports=function(e,n,a){if(r(e),n===void 0)return e;switch(a){case 0:return function(){return e.call(n)};case 1:return function(i){return e.call(n,i)};case 2:return function(i,f){return e.call(n,i,f)};case 3:return function(i,f,s){return e.call(n,i,f,s)}}return function(){return e.apply(n,arguments)}}},"057f":function(o,g,t){var r=t("fc6a"),e=t("241c").f,n={}.toString,a=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],i=function(f){try{return e(f)}catch{return a.slice()}};o.exports.f=function(s){return a&&n.call(s)=="[object Window]"?i(s):e(r(s))}},"06cf":function(o,g,t){var r=t("83ab"),e=t("d1e7"),n=t("5c6c"),a=t("fc6a"),i=t("c04e"),f=t("5135"),s=t("0cfb"),u=Object.getOwnPropertyDescriptor;g.f=r?u:function(c,m){if(c=a(c),m=i(m,!0),s)try{return u(c,m)}catch{}if(f(c,m))return n(!e.f.call(c,m),c[m])}},"0cfb":function(o,g,t){var r=t("83ab"),e=t("d039"),n=t("cc12");o.exports=!r&&!e(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(o,g,t){var r=t("23e7"),e=t("d58f").left,n=t("a640"),a=t("ae40"),i=n("reduce"),f=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!i||!f},{reduce:function(u){return e(this,u,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(o,g,t){var r=t("c6b6"),e=t("9263");o.exports=function(n,a){var i=n.exec;if(typeof i=="function"){var f=i.call(n,a);if(typeof f!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return f}if(r(n)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return e.call(n,a)}},"159b":function(o,g,t){var r=t("da84"),e=t("fdbc"),n=t("17c2"),a=t("9112");for(var i in e){var f=r[i],s=f&&f.prototype;if(s&&s.forEach!==n)try{a(s,"forEach",n)}catch{s.forEach=n}}},"17c2":function(o,g,t){var r=t("b727").forEach,e=t("a640"),n=t("ae40"),a=e("forEach"),i=n("forEach");o.exports=!a||!i?function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(o,g,t){var r=t("d066");o.exports=r("document","documentElement")},"1c0b":function(o,g){o.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(o,g,t){var r=t("b622"),e=r("iterator"),n=!1;try{var a=0,i={next:function(){return{done:!!a++}},return:function(){n=!0}};i[e]=function(){return this},Array.from(i,function(){throw 2})}catch{}o.exports=function(f,s){if(!s&&!n)return!1;var u=!1;try{var l={};l[e]=function(){return{next:function(){return{done:u=!0}}}},f(l)}catch{}return u}},"1d80":function(o,g){o.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"1dde":function(o,g,t){var r=t("d039"),e=t("b622"),n=t("2d00"),a=e("species");o.exports=function(i){return n>=51||!r(function(){var f=[],s=f.constructor={};return s[a]=function(){return{foo:1}},f[i](Boolean).foo!==1})}},"23cb":function(o,g,t){var r=t("a691"),e=Math.max,n=Math.min;o.exports=function(a,i){var f=r(a);return f<0?e(f+i,0):n(f,i)}},"23e7":function(o,g,t){var r=t("da84"),e=t("06cf").f,n=t("9112"),a=t("6eeb"),i=t("ce4e"),f=t("e893"),s=t("94ca");o.exports=function(u,l){var c=u.target,m=u.global,h=u.stat,O,E,I,p,L,F;if(m?E=r:h?E=r[c]||i(c,{}):E=(r[c]||{}).prototype,E)for(I in l){if(L=l[I],u.noTargetGet?(F=e(E,I),p=F&&F.value):p=E[I],O=s(m?I:c+(h?".":"#")+I,u.forced),!O&&p!==void 0){if(typeof L==typeof p)continue;f(L,p)}(u.sham||p&&p.sham)&&n(L,"sham",!0),a(E,I,L,u)}}},"241c":function(o,g,t){var r=t("ca84"),e=t("7839"),n=e.concat("length","prototype");g.f=Object.getOwnPropertyNames||function(i){return r(i,n)}},"25f0":function(o,g,t){var r=t("6eeb"),e=t("825a"),n=t("d039"),a=t("ad6d"),i="toString",f=RegExp.prototype,s=f[i],u=n(function(){return s.call({source:"a",flags:"b"})!="/a/b"}),l=s.name!=i;(u||l)&&r(RegExp.prototype,i,function(){var m=e(this),h=String(m.source),O=m.flags,E=String(O===void 0&&m instanceof RegExp&&!("flags"in f)?a.call(m):O);return"/"+h+"/"+E},{unsafe:!0})},"2ca0":function(o,g,t){var r=t("23e7"),e=t("06cf").f,n=t("50c4"),a=t("5a34"),i=t("1d80"),f=t("ab13"),s=t("c430"),u="".startsWith,l=Math.min,c=f("startsWith"),m=!s&&!c&&!!function(){var h=e(String.prototype,"startsWith");return h&&!h.writable}();r({target:"String",proto:!0,forced:!m&&!c},{startsWith:function(O){var E=String(i(this));a(O);var I=n(l(arguments.length>1?arguments[1]:void 0,E.length)),p=String(O);return u?u.call(E,p,I):E.slice(I,I+p.length)===p}})},"2d00":function(o,g,t){var r=t("da84"),e=t("342f"),n=r.process,a=n&&n.versions,i=a&&a.v8,f,s;i?(f=i.split("."),s=f[0]+f[1]):e&&(f=e.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=e.match(/Chrome\/(\d+)/),f&&(s=f[1]))),o.exports=s&&+s},"342f":function(o,g,t){var r=t("d066");o.exports=r("navigator","userAgent")||""},"35a1":function(o,g,t){var r=t("f5df"),e=t("3f8c"),n=t("b622"),a=n("iterator");o.exports=function(i){if(i!=null)return i[a]||i["@@iterator"]||e[r(i)]}},"37e8":function(o,g,t){var r=t("83ab"),e=t("9bf2"),n=t("825a"),a=t("df75");o.exports=r?Object.defineProperties:function(f,s){n(f);for(var u=a(s),l=u.length,c=0,m;l>c;)e.f(f,m=u[c++],s[m]);return f}},"3bbe":function(o,g,t){var r=t("861d");o.exports=function(e){if(!r(e)&&e!==null)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3ca3":function(o,g,t){var r=t("6547").charAt,e=t("69f3"),n=t("7dd0"),a="String Iterator",i=e.set,f=e.getterFor(a);n(String,"String",function(s){i(this,{type:a,string:String(s),index:0})},function(){var u=f(this),l=u.string,c=u.index,m;return c>=l.length?{value:void 0,done:!0}:(m=r(l,c),u.index+=m.length,{value:m,done:!1})})},"3f8c":function(o,g){o.exports={}},4160:function(o,g,t){var r=t("23e7"),e=t("17c2");r({target:"Array",proto:!0,forced:[].forEach!=e},{forEach:e})},"428f":function(o,g,t){var r=t("da84");o.exports=r},"44ad":function(o,g,t){var r=t("d039"),e=t("c6b6"),n="".split;o.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(a){return e(a)=="String"?n.call(a,""):Object(a)}:Object},"44d2":function(o,g,t){var r=t("b622"),e=t("7c73"),n=t("9bf2"),a=r("unscopables"),i=Array.prototype;i[a]==null&&n.f(i,a,{configurable:!0,value:e(null)}),o.exports=function(f){i[a][f]=!0}},"44e7":function(o,g,t){var r=t("861d"),e=t("c6b6"),n=t("b622"),a=n("match");o.exports=function(i){var f;return r(i)&&((f=i[a])!==void 0?!!f:e(i)=="RegExp")}},4930:function(o,g,t){var r=t("d039");o.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"4d64":function(o,g,t){var r=t("fc6a"),e=t("50c4"),n=t("23cb"),a=function(i){return function(f,s,u){var l=r(f),c=e(l.length),m=n(u,c),h;if(i&&s!=s){for(;c>m;)if(h=l[m++],h!=h)return!0}else for(;c>m;m++)if((i||m in l)&&l[m]===s)return i||m||0;return!i&&-1}};o.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(o,g,t){var r=t("23e7"),e=t("b727").filter,n=t("1dde"),a=t("ae40"),i=n("filter"),f=a("filter");r({target:"Array",proto:!0,forced:!i||!f},{filter:function(u){return e(this,u,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(o,g,t){var r=t("0366"),e=t("7b0b"),n=t("9bdd"),a=t("e95a"),i=t("50c4"),f=t("8418"),s=t("35a1");o.exports=function(l){var c=e(l),m=typeof this=="function"?this:Array,h=arguments.length,O=h>1?arguments[1]:void 0,E=O!==void 0,I=s(c),p=0,L,F,S,P,C,K;if(E&&(O=r(O,h>2?arguments[2]:void 0,2)),I!=null&&!(m==Array&&a(I)))for(P=I.call(c),C=P.next,F=new m;!(S=C.call(P)).done;p++)K=E?n(P,O,[S.value,p],!0):S.value,f(F,p,K);else for(L=i(c.length),F=new m(L);L>p;p++)K=E?O(c[p],p):c[p],f(F,p,K);return F.length=p,F}},"4fad":function(o,g,t){var r=t("23e7"),e=t("6f53").entries;r({target:"Object",stat:!0},{entries:function(a){return e(a)}})},"50c4":function(o,g,t){var r=t("a691"),e=Math.min;o.exports=function(n){return n>0?e(r(n),9007199254740991):0}},5135:function(o,g){var t={}.hasOwnProperty;o.exports=function(r,e){return t.call(r,e)}},5319:function(o,g,t){var r=t("d784"),e=t("825a"),n=t("7b0b"),a=t("50c4"),i=t("a691"),f=t("1d80"),s=t("8aa5"),u=t("14c3"),l=Math.max,c=Math.min,m=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,O=/\$([$&'`]|\d\d?)/g,E=function(I){return I===void 0?I:String(I)};r("replace",2,function(I,p,L,F){var S=F.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,P=F.REPLACE_KEEPS_$0,C=S?"$":"$0";return[function(b,G){var R=f(this),M=b==null?void 0:b[I];return M!==void 0?M.call(b,R,G):p.call(String(R),b,G)},function(T,b){if(!S&&P||typeof b=="string"&&b.indexOf(C)===-1){var G=L(p,T,this,b);if(G.done)return G.value}var R=e(T),M=String(this),W=typeof b=="function";W||(b=String(b));var z=R.global;if(z){var rt=R.unicode;R.lastIndex=0}for(var w=[];;){var Q=u(R,M);if(Q===null||(w.push(Q),!z))break;var k=String(Q[0]);k===""&&(R.lastIndex=s(M,a(R.lastIndex),rt))}for(var q="",Z=0,X=0;X=Z&&(q+=M.slice(Z,ot)+_,Z=ot+Y.length)}return q+M.slice(Z)}];function K(T,b,G,R,M,W){var z=G+T.length,rt=R.length,w=O;return M!==void 0&&(M=n(M),w=h),p.call(W,w,function(Q,k){var q;switch(k.charAt(0)){case"$":return"$";case"&":return T;case"`":return b.slice(0,G);case"'":return b.slice(z);case"<":q=M[k.slice(1,-1)];break;default:var Z=+k;if(Z===0)return Q;if(Z>rt){var X=m(Z/10);return X===0?Q:X<=rt?R[X-1]===void 0?k.charAt(1):R[X-1]+k.charAt(1):Q}q=R[Z-1]}return q===void 0?"":q})}})},5692:function(o,g,t){var r=t("c430"),e=t("c6cd");(o.exports=function(n,a){return e[n]||(e[n]=a!==void 0?a:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(o,g,t){var r=t("d066"),e=t("241c"),n=t("7418"),a=t("825a");o.exports=r("Reflect","ownKeys")||function(f){var s=e.f(a(f)),u=n.f;return u?s.concat(u(f)):s}},"5a34":function(o,g,t){var r=t("44e7");o.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5c6c":function(o,g){o.exports=function(t,r){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:r}}},"5db7":function(o,g,t){var r=t("23e7"),e=t("a2bf"),n=t("7b0b"),a=t("50c4"),i=t("1c0b"),f=t("65f0");r({target:"Array",proto:!0},{flatMap:function(u){var l=n(this),c=a(l.length),m;return i(u),m=f(l,0),m.length=e(m,l,l,c,0,1,u,arguments.length>1?arguments[1]:void 0),m}})},6547:function(o,g,t){var r=t("a691"),e=t("1d80"),n=function(a){return function(i,f){var s=String(e(i)),u=r(f),l=s.length,c,m;return u<0||u>=l?a?"":void 0:(c=s.charCodeAt(u),c<55296||c>56319||u+1===l||(m=s.charCodeAt(u+1))<56320||m>57343?a?s.charAt(u):c:a?s.slice(u,u+2):(c-55296<<10)+(m-56320)+65536)}};o.exports={codeAt:n(!1),charAt:n(!0)}},"65f0":function(o,g,t){var r=t("861d"),e=t("e8b5"),n=t("b622"),a=n("species");o.exports=function(i,f){var s;return e(i)&&(s=i.constructor,typeof s=="function"&&(s===Array||e(s.prototype))?s=void 0:r(s)&&(s=s[a],s===null&&(s=void 0))),new(s===void 0?Array:s)(f===0?0:f)}},"69f3":function(o,g,t){var r=t("7f9a"),e=t("da84"),n=t("861d"),a=t("9112"),i=t("5135"),f=t("f772"),s=t("d012"),u=e.WeakMap,l,c,m,h=function(S){return m(S)?c(S):l(S,{})},O=function(S){return function(P){var C;if(!n(P)||(C=c(P)).type!==S)throw TypeError("Incompatible receiver, "+S+" required");return C}};if(r){var E=new u,I=E.get,p=E.has,L=E.set;l=function(S,P){return L.call(E,S,P),P},c=function(S){return I.call(E,S)||{}},m=function(S){return p.call(E,S)}}else{var F=f("state");s[F]=!0,l=function(S,P){return a(S,F,P),P},c=function(S){return i(S,F)?S[F]:{}},m=function(S){return i(S,F)}}o.exports={set:l,get:c,has:m,enforce:h,getterFor:O}},"6eeb":function(o,g,t){var r=t("da84"),e=t("9112"),n=t("5135"),a=t("ce4e"),i=t("8925"),f=t("69f3"),s=f.get,u=f.enforce,l=String(String).split("String");(o.exports=function(c,m,h,O){var E=O?!!O.unsafe:!1,I=O?!!O.enumerable:!1,p=O?!!O.noTargetGet:!1;if(typeof h=="function"&&(typeof m=="string"&&!n(h,"name")&&e(h,"name",m),u(h).source=l.join(typeof m=="string"?m:"")),c===r){I?c[m]=h:a(m,h);return}else E?!p&&c[m]&&(I=!0):delete c[m];I?c[m]=h:e(c,m,h)})(Function.prototype,"toString",function(){return typeof this=="function"&&s(this).source||i(this)})},"6f53":function(o,g,t){var r=t("83ab"),e=t("df75"),n=t("fc6a"),a=t("d1e7").f,i=function(f){return function(s){for(var u=n(s),l=e(u),c=l.length,m=0,h=[],O;c>m;)O=l[m++],(!r||a.call(u,O))&&h.push(f?[O,u[O]]:u[O]);return h}};o.exports={entries:i(!0),values:i(!1)}},"73d9":function(o,g,t){var r=t("44d2");r("flatMap")},7418:function(o,g){g.f=Object.getOwnPropertySymbols},"746f":function(o,g,t){var r=t("428f"),e=t("5135"),n=t("e538"),a=t("9bf2").f;o.exports=function(i){var f=r.Symbol||(r.Symbol={});e(f,i)||a(f,i,{value:n.f(i)})}},7839:function(o,g){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(o,g,t){var r=t("1d80");o.exports=function(e){return Object(r(e))}},"7c73":function(o,g,t){var r=t("825a"),e=t("37e8"),n=t("7839"),a=t("d012"),i=t("1be4"),f=t("cc12"),s=t("f772"),u=">",l="<",c="prototype",m="script",h=s("IE_PROTO"),O=function(){},E=function(S){return l+m+u+S+l+"/"+m+u},I=function(S){S.write(E("")),S.close();var P=S.parentWindow.Object;return S=null,P},p=function(){var S=f("iframe"),P="java"+m+":",C;return S.style.display="none",i.appendChild(S),S.src=String(P),C=S.contentWindow.document,C.open(),C.write(E("document.F=Object")),C.close(),C.F},L,F=function(){try{L=document.domain&&new ActiveXObject("htmlfile")}catch{}F=L?I(L):p();for(var S=n.length;S--;)delete F[c][n[S]];return F()};a[h]=!0,o.exports=Object.create||function(P,C){var K;return P!==null?(O[c]=r(P),K=new O,O[c]=null,K[h]=P):K=F(),C===void 0?K:e(K,C)}},"7dd0":function(o,g,t){var r=t("23e7"),e=t("9ed3"),n=t("e163"),a=t("d2bb"),i=t("d44e"),f=t("9112"),s=t("6eeb"),u=t("b622"),l=t("c430"),c=t("3f8c"),m=t("ae93"),h=m.IteratorPrototype,O=m.BUGGY_SAFARI_ITERATORS,E=u("iterator"),I="keys",p="values",L="entries",F=function(){return this};o.exports=function(S,P,C,K,T,b,G){e(C,P,K);var R=function(X){if(X===T&&w)return w;if(!O&&X in z)return z[X];switch(X){case I:return function(){return new C(this,X)};case p:return function(){return new C(this,X)};case L:return function(){return new C(this,X)}}return function(){return new C(this)}},M=P+" Iterator",W=!1,z=S.prototype,rt=z[E]||z["@@iterator"]||T&&z[T],w=!O&&rt||R(T),Q=P=="Array"&&z.entries||rt,k,q,Z;if(Q&&(k=n(Q.call(new S)),h!==Object.prototype&&k.next&&(!l&&n(k)!==h&&(a?a(k,h):typeof k[E]!="function"&&f(k,E,F)),i(k,M,!0,!0),l&&(c[M]=F))),T==p&&rt&&rt.name!==p&&(W=!0,w=function(){return rt.call(this)}),(!l||G)&&z[E]!==w&&f(z,E,w),c[P]=w,T)if(q={values:R(p),keys:b?w:R(I),entries:R(L)},G)for(Z in q)(O||W||!(Z in z))&&s(z,Z,q[Z]);else r({target:P,proto:!0,forced:O||W},q);return q}},"7f9a":function(o,g,t){var r=t("da84"),e=t("8925"),n=r.WeakMap;o.exports=typeof n=="function"&&/native code/.test(e(n))},"825a":function(o,g,t){var r=t("861d");o.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(o,g,t){var r=t("d039");o.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(o,g,t){var r=t("c04e"),e=t("9bf2"),n=t("5c6c");o.exports=function(a,i,f){var s=r(i);s in a?e.f(a,s,n(0,f)):a[s]=f}},"861d":function(o,g){o.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},8875:function(o,g,t){var r,e,n;(function(a,i){e=[],r=i,n=typeof r=="function"?r.apply(g,e):r,n!==void 0&&(o.exports=n)})(typeof self!="undefined"?self:this,function(){function a(){var i=Object.getOwnPropertyDescriptor(document,"currentScript");if(!i&&"currentScript"in document&&document.currentScript||i&&i.get!==a&&document.currentScript)return document.currentScript;try{throw new Error}catch(L){var f=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,s=/@([^@]*):(\d+):(\d+)\s*$/ig,u=f.exec(L.stack)||s.exec(L.stack),l=u&&u[1]||!1,c=u&&u[2]||!1,m=document.location.href.replace(document.location.hash,""),h,O,E,I=document.getElementsByTagName("script");l===m&&(h=document.documentElement.outerHTML,O=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]* - + + - - + - - - - + + + + - + - - - + + + - + +