diff --git a/apple-touch-icon.png b/apple-touch-icon.png new file mode 100644 index 0000000..e570640 Binary files /dev/null and b/apple-touch-icon.png differ 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.c33db252.js b/assets/@ivanv.c33db252.js new file mode 100644 index 0000000..e13a768 --- /dev/null +++ b/assets/@ivanv.c33db252.js @@ -0,0 +1 @@ +import"./vue.72cfed44.js";import{o as r,c as o,w as d,r as h,T as l}from"./@vue.6a1d7e86.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.94823b24.js b/assets/@pixi.94823b24.js new file mode 100644 index 0000000..0294c60 --- /dev/null +++ b/assets/@pixi.94823b24.js @@ -0,0 +1,552 @@ +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.68c785f7.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.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.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 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.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 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.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 Et;(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"})(Et||(Et={}));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}(),q=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=Et.NORMAL),this._addListener(new Kt(t,e,i))},r.prototype.addOnce=function(t,e,i){return i===void 0&&(i=Et.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(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=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?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 +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +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 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=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;i0&&(t+=` +else `),e1e-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]; + data[offset+1] = v[1]; + `,vec3:` + data[offset] = v[0]; + data[offset+1] = v[1]; + data[offset+2] = v[2]; + + `,vec4:` + data[offset] = v[0]; + data[offset+1] = v[1]; + data[offset+2] = v[2]; + data[offset+3] = v[3]; + `,mat2:` + data[offset] = v[0]; + data[offset+1] = v[1]; + + data[offset+4] = v[2]; + data[offset+5] = v[3]; + `,mat3:` + data[offset] = v[0]; + data[offset+1] = v[1]; + data[offset+2] = v[2]; + + data[offset + 4] = v[3]; + data[offset + 5] = v[4]; + data[offset + 6] = v[5]; + + data[offset + 8] = v[6]; + data[offset + 9] = v[7]; + data[offset + 10] = v[8]; + `,mat4:` + for(var i = 0; i < 16; i++) + { + data[offset + i] = v[i]; + } + `},vi={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function jn(r){for(var t=r.map(function(h){return{data:h,offset:0,dataLen:0,dirty:0}}),e=0,i=0,n=0,s=0;s1&&(e=Math.max(e,16)*a.data.size),a.dataLen=e,i%e!==0&&i<16){var o=i%e%16;i+=o,n+=o}i+e>16?(n=Math.ceil(n/16)*16,a.offset=n,n+=e,i=e):(a.offset=n,i+=e,n+=e)}return n=Math.ceil(n/16)*16,{uboElements:t,size:n}}function Dn(r,t){var e=[];for(var i in r)t[i]&&e.push(t[i]);return e.sort(function(n,s){return n.index-s.index}),e}function zn(r,t){if(!r.autoManage)return{size:0,syncFunc:Hn};for(var e=Dn(r.uniforms,t),i=jn(e),n=i.uboElements,s=i.size,a=[` + var v = null; + var v2 = null; + var cv = null; + var t = 0; + var gl = renderer.gl + var index = 0; + var data = buffer.data; + `],o=0;o1){var p=fi(h.data.type),m=Math.max(vi[h.data.type]/16,1),v=p/m,y=(4-v%4)%4;a.push(` + cv = ud.`+l+`.value; + v = uv.`+l+`; + offset = `+h.offset/4+`; + + t = 0; + + for(var i=0; i < `+h.data.size*m+`; i++) + { + for(var j = 0; j < `+v+`; j++) + { + data[offset++] = v[t++]; + } + offset += `+y+`; + } + + `)}else{var R=Vn[h.data.type];a.push(` + cv = ud.`+l+`.value; + v = uv.`+l+`; + offset = `+h.offset/4+`; + `+R+`; + `)}}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!==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 `),ithis.maxX||this.minY>this.maxY},r.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},r.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?U.EMPTY:(t=t||new U(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)},r.prototype.addPoint=function(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)},r.prototype.addPointMatrix=function(t,e){var i=t.a,n=t.b,s=t.c,a=t.d,o=t.tx,h=t.ty,u=i*e.x+s*e.y+o,l=n*e.x+a*e.y+h;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,l),this.maxY=Math.max(this.maxY,l)},r.prototype.addQuad=function(t){var e=this.minX,i=this.minY,n=this.maxX,s=this.maxY,a=t[0],o=t[1];e=an?a:n,s=o>s?o:s,a=t[2],o=t[3],e=an?a:n,s=o>s?o:s,a=t[4],o=t[5],e=an?a:n,s=o>s?o:s,a=t[6],o=t[7],e=an?a:n,s=o>s?o:s,this.minX=e,this.minY=i,this.maxX=n,this.maxY=s},r.prototype.addFrame=function(t,e,i,n,s){this.addFrameMatrix(t.worldTransform,e,i,n,s)},r.prototype.addFrameMatrix=function(t,e,i,n,s){var a=t.a,o=t.b,h=t.c,u=t.d,l=t.tx,f=t.ty,c=this.minX,d=this.minY,p=this.maxX,m=this.maxY,v=a*e+h*i+l,y=o*e+u*i+f;c=vp?v:p,m=y>m?y:m,v=a*n+h*i+l,y=o*n+u*i+f,c=vp?v:p,m=y>m?y:m,v=a*e+h*s+l,y=o*e+u*s+f,c=vp?v:p,m=y>m?y:m,v=a*n+h*s+l,y=o*n+u*s+f,c=vp?v:p,m=y>m?y:m,this.minX=c,this.minY=d,this.maxX=p,this.maxY=m},r.prototype.addVertexData=function(t,e,i){for(var n=this.minX,s=this.minY,a=this.maxX,o=this.maxY,h=e;ha?u:a,o=l>o?l:o}this.minX=n,this.minY=s,this.maxX=a,this.maxY=o},r.prototype.addVertices=function(t,e,i,n){this.addVerticesMatrix(t.worldTransform,e,i,n)},r.prototype.addVerticesMatrix=function(t,e,i,n,s,a){s===void 0&&(s=0),a===void 0&&(a=s);for(var o=t.a,h=t.b,u=t.c,l=t.d,f=t.tx,c=t.ty,d=this.minX,p=this.minY,m=this.maxX,v=this.maxY,y=i;yn?t.maxX:n,this.maxY=t.maxY>s?t.maxY:s},r.prototype.addBoundsMask=function(t,e){var i=t.minX>e.minX?t.minX:e.minX,n=t.minY>e.minY?t.minY:e.minY,s=t.maxXu?s:u,this.maxY=a>l?a:l}},r.prototype.addBoundsMatrix=function(t,e){this.addFrameMatrix(e,t.minX,t.minY,t.maxX,t.maxY)},r.prototype.addBoundsArea=function(t,e){var i=t.minX>e.x?t.minX:e.x,n=t.minY>e.y?t.minY:e.y,s=t.maxXu?s:u,this.maxY=a>l?a:l}},r.prototype.pad=function(t,e){t===void 0&&(t=0),e===void 0&&(e=t),this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=e,this.maxY+=e)},r.prototype.addFramePad=function(t,e,i,n,s,a){t-=s,e-=a,i+=s,n+=a,this.minX=this.minXi?this.maxX:i,this.minY=this.minYn?this.maxY:n},r}();/*! ***************************************************************************** +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 +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var Re=function(r,t){return Re=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])},Re(r,t)};function Fe(r,t){Re(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Dt=function(r){Fe(t,r);function t(){var e=r.call(this)||this;return e.tempDisplayObjectParent=null,e.transform=new Hi,e.alpha=1,e.visible=!0,e.renderable=!0,e.cullable=!1,e.cullArea=null,e.parent=null,e.worldAlpha=1,e._lastSortedIndex=0,e._zIndex=0,e.filterArea=null,e.filters=null,e._enabledFilters=null,e._bounds=new Ie,e._localBounds=null,e._boundsID=0,e._boundsRect=null,e._localBoundsRect=null,e._mask=null,e._maskRefCount=0,e._destroyed=!1,e.isSprite=!1,e.isMask=!1,e}return t.mixin=function(e){for(var i=Object.keys(e),n=0;n1)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||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.8 + * Compiled Mon, 28 Nov 2022 04:01:38 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"?kt(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(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;b!!n[r.toLowerCase()]:r=>!!n[r]}const Tf="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",Sf=Re(Tf);function Hn(e){if(j(e)){const t={};for(let n=0;n{if(n){const s=n.split(Nf);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Vn(e){let t="";if(z(e))t=e;else if(j(e))for(let n=0;nht(n,t))}const $f=e=>z(e)?e:e==null?"":j(e)||ie(e)&&(e.toString===tl||!W(e.toString))?JSON.stringify(e,el,2):String(e),el=(e,t)=>t&&t.__v_isRef?el(e,t.value):Zt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:jt(t)?{[`Set(${t.size})`]:[...t.values()]}:ie(t)&&!j(t)&&!nl(t)?String(t):t,se={},Yt=[],Fe=()=>{},us=()=>!1,Hf=/^on[^a-z]/,Vt=e=>Hf.test(e),Wr=e=>e.startsWith("onUpdate:"),te=Object.assign,qr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Vf=Object.prototype.hasOwnProperty,Q=(e,t)=>Vf.call(e,t),j=Array.isArray,Zt=e=>an(e)==="[object Map]",jt=e=>an(e)==="[object Set]",Yi=e=>an(e)==="[object Date]",jf=e=>an(e)==="[object RegExp]",W=e=>typeof e=="function",z=e=>typeof e=="string",gt=e=>typeof e=="symbol",ie=e=>e!==null&&typeof e=="object",zr=e=>ie(e)&&W(e.then)&&W(e.catch),tl=Object.prototype.toString,an=e=>tl.call(e),Uf=e=>an(e).slice(8,-1),nl=e=>an(e)==="[object Object]",Jr=e=>z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Rt=Re(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Kf=Re("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Ds=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},xf=/-(\w)/g,me=Ds(e=>e.replace(xf,(t,n)=>n?n.toUpperCase():"")),Wf=/\B([A-Z])/g,ke=Ds(e=>e.replace(Wf,"-$1").toLowerCase()),Ut=Ds(e=>e.charAt(0).toUpperCase()+e.slice(1)),Xt=Ds(e=>e?`on${Ut(e)}`:""),tn=(e,t)=>!Object.is(e,t),Qt=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},bs=e=>{const t=parseFloat(e);return isNaN(t)?e:t},_s=e=>{const t=z(e)?Number(e):NaN;return isNaN(t)?e:t};let Zi;const qf=()=>Zi||(Zi=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Ie;class Yr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ie,!t&&Ie&&(this.index=(Ie.scopes||(Ie.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ie;try{return Ie=this,t()}finally{Ie=n}}}on(){Ie=this}off(){Ie=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},il=e=>(e.w&mt)>0,ol=e=>(e.n&mt)>0,Yf=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(u==="length"||u>=c)&&l.push(f)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":j(e)?Jr(n)&&l.push(o.get("length")):(l.push(o.get(At)),Zt(e)&&l.push(o.get(Er)));break;case"delete":j(e)||(l.push(o.get(At)),Zt(e)&&l.push(o.get(Er)));break;case"set":Zt(e)&&l.push(o.get(At));break}if(l.length===1)l[0]&&Cr(l[0]);else{const c=[];for(const f of l)f&&c.push(...f);Cr(Zr(c))}}function Cr(e,t){const n=j(e)?e:[...e];for(const s of n)s.computed&&Qi(s);for(const s of n)s.computed||Qi(s)}function Qi(e,t){(e!==We||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function Gf(e,t){var n;return(n=Es.get(e))===null||n===void 0?void 0:n.get(t)}const ea=Re("__proto__,__v_isRef,__isVue"),fl=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(gt)),ta=$s(),na=$s(!1,!0),sa=$s(!0),ra=$s(!0,!0),Gi=ia();function ia(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=Z(this);for(let i=0,o=this.length;i{e[t]=function(...n){un();const s=Z(this)[t].apply(this,n);return pn(),s}}),e}function oa(e){const t=Z(this);return Oe(t,"has",e),t.hasOwnProperty(e)}function $s(e=!1,t=!1){return function(s,r,i){if(r==="__v_isReactive")return!e;if(r==="__v_isReadonly")return e;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&i===(e?t?ml:gl:t?hl:dl).get(s))return s;const o=j(s);if(!e){if(o&&Q(Gi,r))return Reflect.get(Gi,r,i);if(r==="hasOwnProperty")return oa}const l=Reflect.get(s,r,i);return(gt(r)?fl.has(r):ea(r))||(e||Oe(s,"get",r),t)?l:ge(l)?o&&Jr(r)?l:l.value:ie(l)?e?Qr(l):js(l):l}}const la=al(),ca=al(!0);function al(e=!1){return function(n,s,r,i){let o=n[s];if(Lt(o)&&ge(o)&&!ge(r))return!1;if(!e&&(!Pn(r)&&!Lt(r)&&(o=Z(o),r=Z(r)),!j(n)&&ge(o)&&!ge(r)))return o.value=r,!0;const l=j(n)&&Jr(s)?Number(s)e,Hs=e=>Reflect.getPrototypeOf(e);function Xn(e,t,n=!1,s=!1){e=e.__v_raw;const r=Z(e),i=Z(t);n||(t!==i&&Oe(r,"get",t),Oe(r,"get",i));const{has:o}=Hs(r),l=s?Xr:n?ti:On;if(o.call(r,t))return l(e.get(t));if(o.call(r,i))return l(e.get(i));e!==r&&e.get(t)}function Qn(e,t=!1){const n=this.__v_raw,s=Z(n),r=Z(e);return t||(e!==r&&Oe(s,"has",e),Oe(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function Gn(e,t=!1){return e=e.__v_raw,!t&&Oe(Z(e),"iterate",At),Reflect.get(e,"size",e)}function eo(e){e=Z(e);const t=Z(this);return Hs(t).has.call(t,e)||(t.add(e),it(t,"add",e,e)),this}function to(e,t){t=Z(t);const n=Z(this),{has:s,get:r}=Hs(n);let i=s.call(n,e);i||(e=Z(e),i=s.call(n,e));const o=r.call(n,e);return n.set(e,t),i?tn(t,o)&&it(n,"set",e,t):it(n,"add",e,t),this}function no(e){const t=Z(this),{has:n,get:s}=Hs(t);let r=n.call(t,e);r||(e=Z(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&it(t,"delete",e,void 0),i}function so(){const e=Z(this),t=e.size!==0,n=e.clear();return t&&it(e,"clear",void 0,void 0),n}function es(e,t){return function(s,r){const i=this,o=i.__v_raw,l=Z(o),c=t?Xr:e?ti:On;return!e&&Oe(l,"iterate",At),o.forEach((f,u)=>s.call(r,c(f),c(u),i))}}function ts(e,t,n){return function(...s){const r=this.__v_raw,i=Z(r),o=Zt(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,f=r[e](...s),u=n?Xr:t?ti:On;return!t&&Oe(i,"iterate",c?Er:At),{next(){const{value:a,done:d}=f.next();return d?{value:a,done:d}:{value:l?[u(a[0]),u(a[1])]:u(a),done:d}},[Symbol.iterator](){return this}}}}function lt(e){return function(...t){return e==="delete"?!1:this}}function ha(){const e={get(i){return Xn(this,i)},get size(){return Gn(this)},has:Qn,add:eo,set:to,delete:no,clear:so,forEach:es(!1,!1)},t={get(i){return Xn(this,i,!1,!0)},get size(){return Gn(this)},has:Qn,add:eo,set:to,delete:no,clear:so,forEach:es(!1,!0)},n={get(i){return Xn(this,i,!0)},get size(){return Gn(this,!0)},has(i){return Qn.call(this,i,!0)},add:lt("add"),set:lt("set"),delete:lt("delete"),clear:lt("clear"),forEach:es(!0,!1)},s={get(i){return Xn(this,i,!0,!0)},get size(){return Gn(this,!0)},has(i){return Qn.call(this,i,!0)},add:lt("add"),set:lt("set"),delete:lt("delete"),clear:lt("clear"),forEach:es(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=ts(i,!1,!1),n[i]=ts(i,!0,!1),t[i]=ts(i,!1,!0),s[i]=ts(i,!0,!0)}),[e,n,t,s]}const[ga,ma,ya,ba]=ha();function Vs(e,t){const n=t?e?ba:ya:e?ma:ga;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Q(n,r)&&r in s?n:s,r,i)}const _a={get:Vs(!1,!1)},Ea={get:Vs(!1,!0)},Ca={get:Vs(!0,!1)},va={get:Vs(!0,!0)},dl=new WeakMap,hl=new WeakMap,gl=new WeakMap,ml=new WeakMap;function Ta(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Sa(e){return e.__v_skip||!Object.isExtensible(e)?0:Ta(Uf(e))}function js(e){return Lt(e)?e:Us(e,!1,ul,_a,dl)}function yl(e){return Us(e,!1,pa,Ea,hl)}function Qr(e){return Us(e,!0,pl,Ca,gl)}function wa(e){return Us(e,!0,da,va,ml)}function Us(e,t,n,s,r){if(!ie(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=Sa(e);if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function It(e){return Lt(e)?It(e.__v_raw):!!(e&&e.__v_isReactive)}function Lt(e){return!!(e&&e.__v_isReadonly)}function Pn(e){return!!(e&&e.__v_isShallow)}function Gr(e){return It(e)||Lt(e)}function Z(e){const t=e&&e.__v_raw;return t?Z(t):e}function ei(e){return ys(e,"__v_skip",!0),e}const On=e=>ie(e)?js(e):e,ti=e=>ie(e)?Qr(e):e;function ni(e){pt&&We&&(e=Z(e),cl(e.dep||(e.dep=Zr())))}function Ks(e,t){e=Z(e);const n=e.dep;n&&Cr(n)}function ge(e){return!!(e&&e.__v_isRef===!0)}function ps(e){return bl(e,!1)}function Na(e){return bl(e,!0)}function bl(e,t){return ge(e)?e:new Pa(e,t)}class Pa{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Z(t),this._value=n?t:On(t)}get value(){return ni(this),this._value}set value(t){const n=this.__v_isShallow||Pn(t)||Lt(t);t=n?t:Z(t),tn(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:On(t),Ks(this))}}function Oa(e){Ks(e)}function _l(e){return ge(e)?e.value:e}const Ra={get:(e,t,n)=>_l(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return ge(r)&&!ge(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function si(e){return It(e)?e:new Proxy(e,Ra)}class Aa{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>ni(this),()=>Ks(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function Ia(e){return new Aa(e)}function Ma(e){const t=j(e)?new Array(e.length):{};for(const n in e)t[n]=El(e,n);return t}class ka{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return Gf(Z(this._object),this._key)}}function El(e,t,n){const s=e[t];return ge(s)?s:new ka(e,t,n)}var Cl;class Fa{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Cl]=!1,this._dirty=!0,this.effect=new jn(t,()=>{this._dirty||(this._dirty=!0,Ks(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=Z(this);return ni(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Cl="__v_isReadonly";function La(e,t,n=!1){let s,r;const i=W(e);return i?(s=e,r=Fe):(s=e.get,r=e.set),new Fa(s,r,i||!r,n)}function Ba(e,...t){}function Da(e,t){}function st(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){Kt(i,t,n)}return r}function Le(e,t,n,s){if(W(e)){const i=st(e,t,n,s);return i&&zr(i)&&i.catch(o=>{Kt(o,t,n)}),i}const r=[];for(let i=0;i>>1;An(Ee[s])Xe&&Ee.splice(t,1)}function oi(e){j(e)?Gt.push(...e):(!tt||!tt.includes(e,e.allowRecurse?wt+1:wt))&&Gt.push(e),Tl()}function ro(e,t=Rn?Xe+1:0){for(;tAn(n)-An(s)),wt=0;wte.id==null?1/0:e.id,ja=(e,t)=>{const n=An(e)-An(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Sl(e){vr=!1,Rn=!0,Ee.sort(ja);const t=Fe;try{for(Xe=0;Xezt.emit(r,...i)),ns=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((s=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||s===void 0)&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{wl(i,t)}),setTimeout(()=>{zt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ns=[])},3e3)):ns=[]}function Ua(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||se;let r=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in s){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:a,trim:d}=s[u]||se;d&&(r=n.map(m=>z(m)?m.trim():m)),a&&(r=n.map(bs))}let l,c=s[l=Xt(t)]||s[l=Xt(me(t))];!c&&i&&(c=s[l=Xt(ke(t))]),c&&Le(c,e,6,r);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Le(f,e,6,r)}}function Nl(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!W(e)){const c=f=>{const u=Nl(f,t,!0);u&&(l=!0,te(o,u))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(ie(e)&&s.set(e,null),null):(j(i)?i.forEach(c=>o[c]=null):te(o,i),ie(e)&&s.set(e,o),o)}function Ws(e,t){return!e||!Vt(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,ke(t))||Q(e,t))}let _e=null,qs=null;function In(e){const t=_e;return _e=e,qs=e&&e.type.__scopeId||null,t}function Ka(e){qs=e}function xa(){qs=null}const Wa=e=>li;function li(e,t=_e,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Rr(-1);const i=In(t);let o;try{o=e(...r)}finally{In(i),s._d&&Rr(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function ds(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:i,propsOptions:[o],slots:l,attrs:c,emit:f,render:u,renderCache:a,data:d,setupState:m,ctx:E,inheritAttrs:v}=e;let A,y;const h=In(e);try{if(n.shapeFlag&4){const w=r||s;A=Me(u.call(w,w,a,i,m,d,E)),y=c}else{const w=t;A=Me(w.length>1?w(i,{attrs:c,slots:l,emit:f}):w(i,null)),y=t.props?c:za(c)}}catch(w){Tn.length=0,Kt(w,e,1),A=ce(ve)}let b=A;if(y&&v!==!1){const w=Object.keys(y),{shapeFlag:R}=b;w.length&&R&7&&(o&&w.some(Wr)&&(y=Ja(y,o)),b=Qe(b,y))}return n.dirs&&(b=Qe(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),A=b,In(h),A}function qa(e){let t;for(let n=0;n{let t;for(const n in e)(n==="class"||n==="style"||Vt(n))&&((t||(t={}))[n]=e[n]);return t},Ja=(e,t)=>{const n={};for(const s in e)(!Wr(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ya(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,f=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?io(s,o,f):!!o;if(c&8){const u=t.dynamicProps;for(let a=0;ae.__isSuspense,Za={name:"Suspense",__isSuspense:!0,process(e,t,n,s,r,i,o,l,c,f){e==null?Qa(t,n,s,r,i,o,l,c,f):Ga(e,t,n,s,r,o,l,c,f)},hydrate:eu,create:fi,normalize:tu},Xa=Za;function Mn(e,t){const n=e.props&&e.props[t];W(n)&&n()}function Qa(e,t,n,s,r,i,o,l,c){const{p:f,o:{createElement:u}}=c,a=u("div"),d=e.suspense=fi(e,r,s,t,a,n,i,o,l,c);f(null,d.pendingBranch=e.ssContent,a,null,s,d,i,o),d.deps>0?(Mn(e,"onPending"),Mn(e,"onFallback"),f(null,e.ssFallback,t,n,s,null,i,o),en(d,e.ssFallback)):d.resolve()}function Ga(e,t,n,s,r,i,o,l,{p:c,um:f,o:{createElement:u}}){const a=t.suspense=e.suspense;a.vnode=t,t.el=e.el;const d=t.ssContent,m=t.ssFallback,{activeBranch:E,pendingBranch:v,isInFallback:A,isHydrating:y}=a;if(v)a.pendingBranch=d,qe(d,v)?(c(v,d,a.hiddenContainer,null,r,a,i,o,l),a.deps<=0?a.resolve():A&&(c(E,m,n,s,r,null,i,o,l),en(a,m))):(a.pendingId++,y?(a.isHydrating=!1,a.activeBranch=v):f(v,r,a),a.deps=0,a.effects.length=0,a.hiddenContainer=u("div"),A?(c(null,d,a.hiddenContainer,null,r,a,i,o,l),a.deps<=0?a.resolve():(c(E,m,n,s,r,null,i,o,l),en(a,m))):E&&qe(d,E)?(c(E,d,n,s,r,a,i,o,l),a.resolve(!0)):(c(null,d,a.hiddenContainer,null,r,a,i,o,l),a.deps<=0&&a.resolve()));else if(E&&qe(d,E))c(E,d,n,s,r,a,i,o,l),en(a,d);else if(Mn(t,"onPending"),a.pendingBranch=d,a.pendingId++,c(null,d,a.hiddenContainer,null,r,a,i,o,l),a.deps<=0)a.resolve();else{const{timeout:h,pendingId:b}=a;h>0?setTimeout(()=>{a.pendingId===b&&a.fallback(m)},h):h===0&&a.fallback(m)}}function fi(e,t,n,s,r,i,o,l,c,f,u=!1){const{p:a,m:d,um:m,n:E,o:{parentNode:v,remove:A}}=f,y=e.props?_s(e.props.timeout):void 0,h={vnode:e,parent:t,parentComponent:n,isSVG:o,container:s,hiddenContainer:r,anchor:i,deps:0,pendingId:0,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:u,isUnmounted:!1,effects:[],resolve(b=!1){const{vnode:w,activeBranch:R,pendingBranch:H,pendingId:P,effects:_,parentComponent:M,container:F}=h;if(h.isHydrating)h.isHydrating=!1;else if(!b){const V=R&&H.transition&&H.transition.mode==="out-in";V&&(R.transition.afterLeave=()=>{P===h.pendingId&&d(H,F,B,0)});let{anchor:B}=h;R&&(B=E(R),m(R,M,h,!0)),V||d(H,F,B,0)}en(h,H),h.pendingBranch=null,h.isInFallback=!1;let I=h.parent,O=!1;for(;I;){if(I.pendingBranch){I.effects.push(..._),O=!0;break}I=I.parent}O||oi(_),h.effects=[],Mn(w,"onResolve")},fallback(b){if(!h.pendingBranch)return;const{vnode:w,activeBranch:R,parentComponent:H,container:P,isSVG:_}=h;Mn(w,"onFallback");const M=E(R),F=()=>{!h.isInFallback||(a(null,b,P,M,H,null,_,l,c),en(h,b))},I=b.transition&&b.transition.mode==="out-in";I&&(R.transition.afterLeave=F),h.isInFallback=!0,m(R,H,null,!0),I||F()},move(b,w,R){h.activeBranch&&d(h.activeBranch,b,w,R),h.container=b},next(){return h.activeBranch&&E(h.activeBranch)},registerDep(b,w){const R=!!h.pendingBranch;R&&h.deps++;const H=b.vnode.el;b.asyncDep.catch(P=>{Kt(P,b,0)}).then(P=>{if(b.isUnmounted||h.isUnmounted||h.pendingId!==b.suspenseId)return;b.asyncResolved=!0;const{vnode:_}=b;Ar(b,P,!1),H&&(_.el=H);const M=!H&&b.subTree.el;w(b,_,v(H||b.subTree.el),H?null:E(b.subTree),h,o,c),M&&A(M),ci(b,_.el),R&&--h.deps===0&&h.resolve()})},unmount(b,w){h.isUnmounted=!0,h.activeBranch&&m(h.activeBranch,n,b,w),h.pendingBranch&&m(h.pendingBranch,n,b,w)}};return h}function eu(e,t,n,s,r,i,o,l,c){const f=t.suspense=fi(t,s,n,e.parentNode,document.createElement("div"),null,r,i,o,l,!0),u=c(e,f.pendingBranch=t.ssContent,n,f,i,o);return f.deps===0&&f.resolve(),u}function tu(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=oo(s?n.default:n),e.ssFallback=s?oo(n.fallback):ce(ve)}function oo(e){let t;if(W(e)){const n=$t&&e._c;n&&(e._d=!1,Qs()),e=e(),n&&(e._d=!0,t=Ne,tc())}return j(e)&&(e=qa(e)),e=Me(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Ol(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):oi(e)}function en(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e,r=n.el=t.el;s&&s.subTree===n&&(s.vnode.el=r,ci(s,r))}function Rl(e,t){if(ae){let n=ae.provides;const s=ae.parent&&ae.parent.provides;s===n&&(n=ae.provides=Object.create(s)),n[e]=t}}function _n(e,t,n=!1){const s=ae||_e;if(s){const r=s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&W(t)?t.call(s.proxy):t}}function nu(e,t){return Un(e,null,t)}function Al(e,t){return Un(e,null,{flush:"post"})}function su(e,t){return Un(e,null,{flush:"sync"})}const ss={};function En(e,t,n){return Un(e,t,n)}function Un(e,t,{immediate:n,deep:s,flush:r,onTrack:i,onTrigger:o}=se){const l=rl()===(ae==null?void 0:ae.scope)?ae:null;let c,f=!1,u=!1;if(ge(e)?(c=()=>e.value,f=Pn(e)):It(e)?(c=()=>e,s=!0):j(e)?(u=!0,f=e.some(b=>It(b)||Pn(b)),c=()=>e.map(b=>{if(ge(b))return b.value;if(It(b))return Pt(b);if(W(b))return st(b,l,2)})):W(e)?t?c=()=>st(e,l,2):c=()=>{if(!(l&&l.isUnmounted))return a&&a(),Le(e,l,3,[d])}:c=Fe,t&&s){const b=c;c=()=>Pt(b())}let a,d=b=>{a=y.onStop=()=>{st(b,l,4)}},m;if(sn)if(d=Fe,t?n&&Le(t,l,3,[c(),u?[]:void 0,d]):c(),r==="sync"){const b=gc();m=b.__watcherHandles||(b.__watcherHandles=[])}else return Fe;let E=u?new Array(e.length).fill(ss):ss;const v=()=>{if(!!y.active)if(t){const b=y.run();(s||f||(u?b.some((w,R)=>tn(w,E[R])):tn(b,E)))&&(a&&a(),Le(t,l,3,[b,E===ss?void 0:u&&E[0]===ss?[]:E,d]),E=b)}else y.run()};v.allowRecurse=!!t;let A;r==="sync"?A=v:r==="post"?A=()=>ye(v,l&&l.suspense):(v.pre=!0,l&&(v.id=l.uid),A=()=>xs(v));const y=new jn(c,A);t?n?v():E=y.run():r==="post"?ye(y.run.bind(y),l&&l.suspense):y.run();const h=()=>{y.stop(),l&&l.scope&&qr(l.scope.effects,y)};return m&&m.push(h),h}function ru(e,t,n){const s=this.proxy,r=z(e)?e.includes(".")?Il(s,e):()=>s[e]:e.bind(s,s);let i;W(t)?i=t:(i=t.handler,n=t);const o=ae;bt(this);const l=Un(r,i.bind(s),n);return o?bt(o):dt(),l}function Il(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r{Pt(n,t)});else if(nl(e))for(const n in e)Pt(e[n],t);return e}function ai(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return xn(()=>{e.isMounted=!0}),Zs(()=>{e.isUnmounting=!0}),e}const $e=[Function,Array],iu={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:$e,onEnter:$e,onAfterEnter:$e,onEnterCancelled:$e,onBeforeLeave:$e,onLeave:$e,onAfterLeave:$e,onLeaveCancelled:$e,onBeforeAppear:$e,onAppear:$e,onAfterAppear:$e,onAppearCancelled:$e},setup(e,{slots:t}){const n=Et(),s=ai();let r;return()=>{const i=t.default&&zs(t.default(),!0);if(!i||!i.length)return;let o=i[0];if(i.length>1){for(const v of i)if(v.type!==ve){o=v;break}}const l=Z(e),{mode:c}=l;if(s.isLeaving)return fr(o);const f=lo(o);if(!f)return fr(o);const u=nn(f,l,s,n);Bt(f,u);const a=n.subTree,d=a&&lo(a);let m=!1;const{getTransitionKey:E}=f.type;if(E){const v=E();r===void 0?r=v:v!==r&&(r=v,m=!0)}if(d&&d.type!==ve&&(!qe(f,d)||m)){const v=nn(d,l,s,n);if(Bt(d,v),c==="out-in")return s.isLeaving=!0,v.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&n.update()},fr(o);c==="in-out"&&f.type!==ve&&(v.delayLeave=(A,y,h)=>{const b=Ml(s,d);b[String(d.key)]=d,A._leaveCb=()=>{y(),A._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=h})}return o}}},ui=iu;function Ml(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function nn(e,t,n,s){const{appear:r,mode:i,persisted:o=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:f,onEnterCancelled:u,onBeforeLeave:a,onLeave:d,onAfterLeave:m,onLeaveCancelled:E,onBeforeAppear:v,onAppear:A,onAfterAppear:y,onAppearCancelled:h}=t,b=String(e.key),w=Ml(n,e),R=(_,M)=>{_&&Le(_,s,9,M)},H=(_,M)=>{const F=M[1];R(_,M),j(_)?_.every(I=>I.length<=1)&&F():_.length<=1&&F()},P={mode:i,persisted:o,beforeEnter(_){let M=l;if(!n.isMounted)if(r)M=v||l;else return;_._leaveCb&&_._leaveCb(!0);const F=w[b];F&&qe(e,F)&&F.el._leaveCb&&F.el._leaveCb(),R(M,[_])},enter(_){let M=c,F=f,I=u;if(!n.isMounted)if(r)M=A||c,F=y||f,I=h||u;else return;let O=!1;const V=_._enterCb=B=>{O||(O=!0,B?R(I,[_]):R(F,[_]),P.delayedLeave&&P.delayedLeave(),_._enterCb=void 0)};M?H(M,[_,V]):V()},leave(_,M){const F=String(e.key);if(_._enterCb&&_._enterCb(!0),n.isUnmounting)return M();R(a,[_]);let I=!1;const O=_._leaveCb=V=>{I||(I=!0,M(),V?R(E,[_]):R(m,[_]),_._leaveCb=void 0,w[F]===e&&delete w[F])};w[F]=e,d?H(d,[_,O]):O()},clone(_){return nn(_,t,n,s)}};return P}function fr(e){if(Kn(e))return e=Qe(e),e.children=null,e}function lo(e){return Kn(e)?e.children?e.children[0]:void 0:e}function Bt(e,t){e.shapeFlag&6&&e.component?Bt(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function zs(e,t=!1,n){let s=[],r=0;for(let i=0;i1)for(let i=0;i!!e.type.__asyncLoader;function ou(e){W(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:i,suspensible:o=!0,onError:l}=e;let c=null,f,u=0;const a=()=>(u++,c=null,d()),d=()=>{let m;return c||(m=c=t().catch(E=>{if(E=E instanceof Error?E:new Error(String(E)),l)return new Promise((v,A)=>{l(E,()=>v(a()),()=>A(E),u+1)});throw E}).then(E=>m!==c&&c?c:(E&&(E.__esModule||E[Symbol.toStringTag]==="Module")&&(E=E.default),f=E,E)))};return pi({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return f},setup(){const m=ae;if(f)return()=>ar(f,m);const E=h=>{c=null,Kt(h,m,13,!s)};if(o&&m.suspense||sn)return d().then(h=>()=>ar(h,m)).catch(h=>(E(h),()=>s?ce(s,{error:h}):null));const v=ps(!1),A=ps(),y=ps(!!r);return r&&setTimeout(()=>{y.value=!1},r),i!=null&&setTimeout(()=>{if(!v.value&&!A.value){const h=new Error(`Async component timed out after ${i}ms.`);E(h),A.value=h}},i),d().then(()=>{v.value=!0,m.parent&&Kn(m.parent.vnode)&&xs(m.parent.update)}).catch(h=>{E(h),A.value=h}),()=>{if(v.value&&f)return ar(f,m);if(A.value&&s)return ce(s,{error:A.value});if(n&&!y.value)return ce(n)}}})}function ar(e,t){const{ref:n,props:s,children:r,ce:i}=t.vnode,o=ce(e,s,r);return o.ref=n,o.ce=i,delete t.vnode.ce,o}const Kn=e=>e.type.__isKeepAlive,lu={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Et(),s=n.ctx;if(!s.renderer)return()=>{const h=t.default&&t.default();return h&&h.length===1?h[0]:h};const r=new Map,i=new Set;let o=null;const l=n.suspense,{renderer:{p:c,m:f,um:u,o:{createElement:a}}}=s,d=a("div");s.activate=(h,b,w,R,H)=>{const P=h.component;f(h,b,w,0,l),c(P.vnode,h,b,w,P,l,R,h.slotScopeIds,H),ye(()=>{P.isDeactivated=!1,P.a&&Qt(P.a);const _=h.props&&h.props.onVnodeMounted;_&&we(_,P.parent,h)},l)},s.deactivate=h=>{const b=h.component;f(h,d,null,1,l),ye(()=>{b.da&&Qt(b.da);const w=h.props&&h.props.onVnodeUnmounted;w&&we(w,b.parent,h),b.isDeactivated=!0},l)};function m(h){ur(h),u(h,n,l,!0)}function E(h){r.forEach((b,w)=>{const R=Mr(b.type);R&&(!h||!h(R))&&v(w)})}function v(h){const b=r.get(h);!o||!qe(b,o)?m(b):o&&ur(o),r.delete(h),i.delete(h)}En(()=>[e.include,e.exclude],([h,b])=>{h&&E(w=>bn(h,w)),b&&E(w=>!bn(b,w))},{flush:"post",deep:!0});let A=null;const y=()=>{A!=null&&r.set(A,pr(n.subTree))};return xn(y),Ys(y),Zs(()=>{r.forEach(h=>{const{subTree:b,suspense:w}=n,R=pr(b);if(h.type===R.type&&h.key===R.key){ur(R);const H=R.component.da;H&&ye(H,w);return}m(h)})}),()=>{if(A=null,!t.default)return null;const h=t.default(),b=h[0];if(h.length>1)return o=null,h;if(!yt(b)||!(b.shapeFlag&4)&&!(b.shapeFlag&128))return o=null,b;let w=pr(b);const R=w.type,H=Mr(Mt(w)?w.type.__asyncResolved||{}:R),{include:P,exclude:_,max:M}=e;if(P&&(!H||!bn(P,H))||_&&H&&bn(_,H))return o=w,b;const F=w.key==null?R:w.key,I=r.get(F);return w.el&&(w=Qe(w),b.shapeFlag&128&&(b.ssContent=w)),A=F,I?(w.el=I.el,w.component=I.component,w.transition&&Bt(w,w.transition),w.shapeFlag|=512,i.delete(F),i.add(F)):(i.add(F),M&&i.size>parseInt(M,10)&&v(i.values().next().value)),w.shapeFlag|=256,o=w,Pl(b.type)?b:w}}},cu=lu;function bn(e,t){return j(e)?e.some(n=>bn(n,t)):z(e)?e.split(",").includes(t):jf(e)?e.test(t):!1}function kl(e,t){Ll(e,"a",t)}function Fl(e,t){Ll(e,"da",t)}function Ll(e,t,n=ae){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Js(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Kn(r.parent.vnode)&&fu(s,t,n,r),r=r.parent}}function fu(e,t,n,s){const r=Js(t,e,s,!0);Xs(()=>{qr(s[t],r)},n)}function ur(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function pr(e){return e.shapeFlag&128?e.ssContent:e}function Js(e,t,n=ae,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;un(),bt(n);const l=Le(t,n,e,o);return dt(),pn(),l});return s?r.unshift(i):r.push(i),i}}const ot=e=>(t,n=ae)=>(!sn||e==="sp")&&Js(e,(...s)=>t(...s),n),Bl=ot("bm"),xn=ot("m"),Dl=ot("bu"),Ys=ot("u"),Zs=ot("bum"),Xs=ot("um"),$l=ot("sp"),Hl=ot("rtg"),Vl=ot("rtc");function jl(e,t=ae){Js("ec",e,t)}function au(e,t){const n=_e;if(n===null)return e;const s=er(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;it(o,l,void 0,i&&i[l]));else{const o=Object.keys(e);r=new Array(o.length);for(let l=0,c=o.length;l{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return e}function yu(e,t,n={},s,r){if(_e.isCE||_e.parent&&Mt(_e.parent)&&_e.parent.isCE)return t!=="default"&&(n.name=t),ce("slot",n,s&&s());let i=e[t];i&&i._c&&(i._d=!1),Qs();const o=i&&Kl(i(n)),l=bi(be,{key:n.key||o&&o.key||`_${t}`},o||(s?s():[]),o&&e._===1?64:-2);return!r&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),i&&i._c&&(i._d=!0),l}function Kl(e){return e.some(t=>yt(t)?!(t.type===ve||t.type===be&&!Kl(t.children)):!0)?e:null}function bu(e,t){const n={};for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:Xt(s)]=e[s];return n}const Tr=e=>e?lc(e)?er(e)||e.proxy:Tr(e.parent):null,Cn=te(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Tr(e.parent),$root:e=>Tr(e.root),$emit:e=>e.emit,$options:e=>gi(e),$forceUpdate:e=>e.f||(e.f=()=>xs(e.update)),$nextTick:e=>e.n||(e.n=ii.bind(e.proxy)),$watch:e=>ru.bind(e)}),dr=(e,t)=>e!==se&&!e.__isScriptSetup&&Q(e,t),Sr={get({_:e},t){const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;let f;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(dr(s,t))return o[t]=1,s[t];if(r!==se&&Q(r,t))return o[t]=2,r[t];if((f=e.propsOptions[0])&&Q(f,t))return o[t]=3,i[t];if(n!==se&&Q(n,t))return o[t]=4,n[t];wr&&(o[t]=0)}}const u=Cn[t];let a,d;if(u)return t==="$attrs"&&Oe(e,"get",t),u(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(n!==se&&Q(n,t))return o[t]=4,n[t];if(d=c.config.globalProperties,Q(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return dr(r,t)?(r[t]=n,!0):s!==se&&Q(s,t)?(s[t]=n,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},o){let l;return!!n[o]||e!==se&&Q(e,o)||dr(t,o)||(l=i[0])&&Q(l,o)||Q(s,o)||Q(Cn,o)||Q(r.config.globalProperties,o)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Q(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},_u=te({},Sr,{get(e,t){if(t!==Symbol.unscopables)return Sr.get(e,t,e)},has(e,t){return t[0]!=="_"&&!Sf(t)}});let wr=!0;function Eu(e){const t=gi(e),n=e.proxy,s=e.ctx;wr=!1,t.beforeCreate&&fo(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:f,created:u,beforeMount:a,mounted:d,beforeUpdate:m,updated:E,activated:v,deactivated:A,beforeDestroy:y,beforeUnmount:h,destroyed:b,unmounted:w,render:R,renderTracked:H,renderTriggered:P,errorCaptured:_,serverPrefetch:M,expose:F,inheritAttrs:I,components:O,directives:V,filters:B}=t;if(f&&Cu(f,s,null,e.appContext.config.unwrapInjectedRef),o)for(const le in o){const ee=o[le];W(ee)&&(s[le]=ee.bind(n))}if(r){const le=r.call(n,n);ie(le)&&(e.data=js(le))}if(wr=!0,i)for(const le in i){const ee=i[le],Ke=W(ee)?ee.bind(n,n):W(ee.get)?ee.get.bind(n,n):Fe,Yn=!W(ee)&&W(ee.set)?ee.set.bind(n):Fe,Ct=uc({get:Ke,set:Yn});Object.defineProperty(s,le,{enumerable:!0,configurable:!0,get:()=>Ct.value,set:Je=>Ct.value=Je})}if(l)for(const le in l)xl(l[le],s,n,le);if(c){const le=W(c)?c.call(n):c;Reflect.ownKeys(le).forEach(ee=>{Rl(ee,le[ee])})}u&&fo(u,e,"c");function X(le,ee){j(ee)?ee.forEach(Ke=>le(Ke.bind(n))):ee&&le(ee.bind(n))}if(X(Bl,a),X(xn,d),X(Dl,m),X(Ys,E),X(kl,v),X(Fl,A),X(jl,_),X(Vl,H),X(Hl,P),X(Zs,h),X(Xs,w),X($l,M),j(F))if(F.length){const le=e.exposed||(e.exposed={});F.forEach(ee=>{Object.defineProperty(le,ee,{get:()=>n[ee],set:Ke=>n[ee]=Ke})})}else e.exposed||(e.exposed={});R&&e.render===Fe&&(e.render=R),I!=null&&(e.inheritAttrs=I),O&&(e.components=O),V&&(e.directives=V)}function Cu(e,t,n=Fe,s=!1){j(e)&&(e=Nr(e));for(const r in e){const i=e[r];let o;ie(i)?"default"in i?o=_n(i.from||r,i.default,!0):o=_n(i.from||r):o=_n(i),ge(o)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:l=>o.value=l}):t[r]=o}}function fo(e,t,n){Le(j(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function xl(e,t,n,s){const r=s.includes(".")?Il(n,s):()=>n[s];if(z(e)){const i=t[e];W(i)&&En(r,i)}else if(W(e))En(r,e.bind(n));else if(ie(e))if(j(e))e.forEach(i=>xl(i,t,n,s));else{const i=W(e.handler)?e.handler.bind(n):t[e.handler];W(i)&&En(r,i,e)}}function gi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(f=>vs(c,f,o,!0)),vs(c,t,o)),ie(t)&&i.set(t,c),c}function vs(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&vs(e,i,n,!0),r&&r.forEach(o=>vs(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=vu[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const vu={data:ao,props:St,emits:St,methods:St,computed:St,beforeCreate:Se,created:Se,beforeMount:Se,mounted:Se,beforeUpdate:Se,updated:Se,beforeDestroy:Se,beforeUnmount:Se,destroyed:Se,unmounted:Se,activated:Se,deactivated:Se,errorCaptured:Se,serverPrefetch:Se,components:St,directives:St,watch:Su,provide:ao,inject:Tu};function ao(e,t){return t?e?function(){return te(W(e)?e.call(this,this):e,W(t)?t.call(this,this):t)}:t:e}function Tu(e,t){return St(Nr(e),Nr(t))}function Nr(e){if(j(e)){const t={};for(let n=0;n0)&&!(o&16)){if(o&8){const u=e.vnode.dynamicProps;for(let a=0;a{c=!0;const[d,m]=ql(a,t,!0);te(o,d),m&&l.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!i&&!c)return ie(e)&&s.set(e,Yt),Yt;if(j(i))for(let u=0;u-1,m[1]=v<0||E-1||Q(m,"default"))&&l.push(a)}}}const f=[o,l];return ie(e)&&s.set(e,f),f}function uo(e){return e[0]!=="$"}function po(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function ho(e,t){return po(e)===po(t)}function go(e,t){return j(t)?t.findIndex(n=>ho(n,e)):W(t)&&ho(t,e)?0:-1}const zl=e=>e[0]==="_"||e==="$stable",mi=e=>j(e)?e.map(Me):[Me(e)],Pu=(e,t,n)=>{if(t._n)return t;const s=li((...r)=>mi(t(...r)),n);return s._c=!1,s},Jl=(e,t,n)=>{const s=e._ctx;for(const r in e){if(zl(r))continue;const i=e[r];if(W(i))t[r]=Pu(r,i,s);else if(i!=null){const o=mi(i);t[r]=()=>o}}},Yl=(e,t)=>{const n=mi(t);e.slots.default=()=>n},Ou=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Z(t),ys(t,"_",n)):Jl(t,e.slots={})}else e.slots={},t&&Yl(e,t);ys(e.slots,Gs,1)},Ru=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=se;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:(te(r,t),!n&&l===1&&delete r._):(i=!t.$stable,Jl(t,r)),o=t}else t&&(Yl(e,t),o={default:1});if(i)for(const l in r)!zl(l)&&!(l in o)&&delete r[l]};function Zl(){return{app:null,config:{isNativeTag:us,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Au=0;function Iu(e,t){return function(s,r=null){W(s)||(s=Object.assign({},s)),r!=null&&!ie(r)&&(r=null);const i=Zl(),o=new Set;let l=!1;const c=i.app={_uid:Au++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:yc,get config(){return i.config},set config(f){},use(f,...u){return o.has(f)||(f&&W(f.install)?(o.add(f),f.install(c,...u)):W(f)&&(o.add(f),f(c,...u))),c},mixin(f){return i.mixins.includes(f)||i.mixins.push(f),c},component(f,u){return u?(i.components[f]=u,c):i.components[f]},directive(f,u){return u?(i.directives[f]=u,c):i.directives[f]},mount(f,u,a){if(!l){const d=ce(s,r);return d.appContext=i,u&&t?t(d,f):e(d,f,a),l=!0,c._container=f,f.__vue_app__=c,er(d.component)||d.component.proxy}},unmount(){l&&(e(null,c._container),delete c._container.__vue_app__)},provide(f,u){return i.provides[f]=u,c}};return c}}function Ts(e,t,n,s,r=!1){if(j(e)){e.forEach((d,m)=>Ts(d,t&&(j(t)?t[m]:t),n,s,r));return}if(Mt(s)&&!r)return;const i=s.shapeFlag&4?er(s.component)||s.component.proxy:s.el,o=r?null:i,{i:l,r:c}=e,f=t&&t.r,u=l.refs===se?l.refs={}:l.refs,a=l.setupState;if(f!=null&&f!==c&&(z(f)?(u[f]=null,Q(a,f)&&(a[f]=null)):ge(f)&&(f.value=null)),W(c))st(c,l,12,[o,u]);else{const d=z(c),m=ge(c);if(d||m){const E=()=>{if(e.f){const v=d?Q(a,c)?a[c]:u[c]:c.value;r?j(v)&&qr(v,i):j(v)?v.includes(i)||v.push(i):d?(u[c]=[i],Q(a,c)&&(a[c]=u[c])):(c.value=[i],e.k&&(u[e.k]=c.value))}else d?(u[c]=o,Q(a,c)&&(a[c]=o)):m&&(c.value=o,e.k&&(u[e.k]=o))};o?(E.id=-1,ye(E,n)):E()}}}let ct=!1;const rs=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",is=e=>e.nodeType===8;function Mu(e){const{mt:t,p:n,o:{patchProp:s,createText:r,nextSibling:i,parentNode:o,remove:l,insert:c,createComment:f}}=e,u=(y,h)=>{if(!h.hasChildNodes()){n(null,y,h),Cs(),h._vnode=y;return}ct=!1,a(h.firstChild,y,null,null,null),Cs(),h._vnode=y,ct&&console.error("Hydration completed but contains mismatches.")},a=(y,h,b,w,R,H=!1)=>{const P=is(y)&&y.data==="[",_=()=>v(y,h,b,w,R,P),{type:M,ref:F,shapeFlag:I,patchFlag:O}=h;let V=y.nodeType;h.el=y,O===-2&&(H=!1,h.dynamicChildren=null);let B=null;switch(M){case Dt:V!==3?h.children===""?(c(h.el=r(""),o(y),y),B=y):B=_():(y.data!==h.children&&(ct=!0,y.data=h.children),B=i(y));break;case ve:V!==8||P?B=_():B=i(y);break;case kt:if(P&&(y=i(y),V=y.nodeType),V===1||V===3){B=y;const G=!h.children.length;for(let X=0;X{H=H||!!h.dynamicChildren;const{type:P,props:_,patchFlag:M,shapeFlag:F,dirs:I}=h,O=P==="input"&&I||P==="option";if(O||M!==-1){if(I&&Ze(h,null,b,"created"),_)if(O||!H||M&48)for(const B in _)(O&&B.endsWith("value")||Vt(B)&&!Rt(B))&&s(y,B,null,_[B],!1,void 0,b);else _.onClick&&s(y,"onClick",null,_.onClick,!1,void 0,b);let V;if((V=_&&_.onVnodeBeforeMount)&&we(V,b,h),I&&Ze(h,null,b,"beforeMount"),((V=_&&_.onVnodeMounted)||I)&&Ol(()=>{V&&we(V,b,h),I&&Ze(h,null,b,"mounted")},w),F&16&&!(_&&(_.innerHTML||_.textContent))){let B=m(y.firstChild,h,y,b,w,R,H);for(;B;){ct=!0;const G=B;B=B.nextSibling,l(G)}}else F&8&&y.textContent!==h.children&&(ct=!0,y.textContent=h.children)}return y.nextSibling},m=(y,h,b,w,R,H,P)=>{P=P||!!h.dynamicChildren;const _=h.children,M=_.length;for(let F=0;F{const{slotScopeIds:P}=h;P&&(R=R?R.concat(P):P);const _=o(y),M=m(i(y),h,_,b,w,R,H);return M&&is(M)&&M.data==="]"?i(h.anchor=M):(ct=!0,c(h.anchor=f("]"),_,M),M)},v=(y,h,b,w,R,H)=>{if(ct=!0,h.el=null,H){const M=A(y);for(;;){const F=i(y);if(F&&F!==M)l(F);else break}}const P=i(y),_=o(y);return l(y),n(null,h,_,P,b,w,rs(_),R),P},A=y=>{let h=0;for(;y;)if(y=i(y),y&&is(y)&&(y.data==="["&&h++,y.data==="]")){if(h===0)return i(y);h--}return y};return[u,a]}const ye=Ol;function Xl(e){return Gl(e)}function Ql(e){return Gl(e,Mu)}function Gl(e,t){const n=qf();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:f,setElementText:u,parentNode:a,nextSibling:d,setScopeId:m=Fe,insertStaticContent:E}=e,v=(p,g,C,S=null,T=null,L=null,$=!1,k=null,D=!!g.dynamicChildren)=>{if(p===g)return;p&&!qe(p,g)&&(S=Zn(p),Je(p,T,L,!0),p=null),g.patchFlag===-2&&(D=!1,g.dynamicChildren=null);const{type:N,ref:K,shapeFlag:U}=g;switch(N){case Dt:A(p,g,C,S);break;case ve:y(p,g,C,S);break;case kt:p==null&&h(g,C,S,$);break;case be:O(p,g,C,S,T,L,$,k,D);break;default:U&1?R(p,g,C,S,T,L,$,k,D):U&6?V(p,g,C,S,T,L,$,k,D):(U&64||U&128)&&N.process(p,g,C,S,T,L,$,k,D,xt)}K!=null&&T&&Ts(K,p&&p.ref,L,g||p,!g)},A=(p,g,C,S)=>{if(p==null)s(g.el=l(g.children),C,S);else{const T=g.el=p.el;g.children!==p.children&&f(T,g.children)}},y=(p,g,C,S)=>{p==null?s(g.el=c(g.children||""),C,S):g.el=p.el},h=(p,g,C,S)=>{[p.el,p.anchor]=E(p.children,g,C,S,p.el,p.anchor)},b=({el:p,anchor:g},C,S)=>{let T;for(;p&&p!==g;)T=d(p),s(p,C,S),p=T;s(g,C,S)},w=({el:p,anchor:g})=>{let C;for(;p&&p!==g;)C=d(p),r(p),p=C;r(g)},R=(p,g,C,S,T,L,$,k,D)=>{$=$||g.type==="svg",p==null?H(g,C,S,T,L,$,k,D):M(p,g,T,L,$,k,D)},H=(p,g,C,S,T,L,$,k)=>{let D,N;const{type:K,props:U,shapeFlag:x,transition:q,dirs:Y}=p;if(D=p.el=o(p.type,L,U&&U.is,U),x&8?u(D,p.children):x&16&&_(p.children,D,null,S,T,L&&K!=="foreignObject",$,k),Y&&Ze(p,null,S,"created"),P(D,p,p.scopeId,$,S),U){for(const re in U)re!=="value"&&!Rt(re)&&i(D,re,null,U[re],L,p.children,S,T,Ge);"value"in U&&i(D,"value",null,U.value),(N=U.onVnodeBeforeMount)&&we(N,S,p)}Y&&Ze(p,null,S,"beforeMount");const oe=(!T||T&&!T.pendingBranch)&&q&&!q.persisted;oe&&q.beforeEnter(D),s(D,g,C),((N=U&&U.onVnodeMounted)||oe||Y)&&ye(()=>{N&&we(N,S,p),oe&&q.enter(D),Y&&Ze(p,null,S,"mounted")},T)},P=(p,g,C,S,T)=>{if(C&&m(p,C),S)for(let L=0;L{for(let N=D;N{const k=g.el=p.el;let{patchFlag:D,dynamicChildren:N,dirs:K}=g;D|=p.patchFlag&16;const U=p.props||se,x=g.props||se;let q;C&&vt(C,!1),(q=x.onVnodeBeforeUpdate)&&we(q,C,g,p),K&&Ze(g,p,C,"beforeUpdate"),C&&vt(C,!0);const Y=T&&g.type!=="foreignObject";if(N?F(p.dynamicChildren,N,k,C,S,Y,L):$||ee(p,g,k,null,C,S,Y,L,!1),D>0){if(D&16)I(k,g,U,x,C,S,T);else if(D&2&&U.class!==x.class&&i(k,"class",null,x.class,T),D&4&&i(k,"style",U.style,x.style,T),D&8){const oe=g.dynamicProps;for(let re=0;re{q&&we(q,C,g,p),K&&Ze(g,p,C,"updated")},S)},F=(p,g,C,S,T,L,$)=>{for(let k=0;k{if(C!==S){if(C!==se)for(const k in C)!Rt(k)&&!(k in S)&&i(p,k,C[k],null,$,g.children,T,L,Ge);for(const k in S){if(Rt(k))continue;const D=S[k],N=C[k];D!==N&&k!=="value"&&i(p,k,N,D,$,g.children,T,L,Ge)}"value"in S&&i(p,"value",C.value,S.value)}},O=(p,g,C,S,T,L,$,k,D)=>{const N=g.el=p?p.el:l(""),K=g.anchor=p?p.anchor:l("");let{patchFlag:U,dynamicChildren:x,slotScopeIds:q}=g;q&&(k=k?k.concat(q):q),p==null?(s(N,C,S),s(K,C,S),_(g.children,C,K,T,L,$,k,D)):U>0&&U&64&&x&&p.dynamicChildren?(F(p.dynamicChildren,x,C,T,L,$,k),(g.key!=null||T&&g===T.subTree)&&yi(p,g,!0)):ee(p,g,C,K,T,L,$,k,D)},V=(p,g,C,S,T,L,$,k,D)=>{g.slotScopeIds=k,p==null?g.shapeFlag&512?T.ctx.activate(g,C,S,$,D):B(g,C,S,T,L,$,D):G(p,g,D)},B=(p,g,C,S,T,L,$)=>{const k=p.component=oc(p,S,T);if(Kn(p)&&(k.ctx.renderer=xt),cc(k),k.asyncDep){if(T&&T.registerDep(k,X),!p.el){const D=k.subTree=ce(ve);y(null,D,g,C)}return}X(k,p,g,C,T,L,$)},G=(p,g,C)=>{const S=g.component=p.component;if(Ya(p,g,C))if(S.asyncDep&&!S.asyncResolved){le(S,g,C);return}else S.next=g,Va(S.update),S.update();else g.el=p.el,S.vnode=g},X=(p,g,C,S,T,L,$)=>{const k=()=>{if(p.isMounted){let{next:K,bu:U,u:x,parent:q,vnode:Y}=p,oe=K,re;vt(p,!1),K?(K.el=Y.el,le(p,K,$)):K=Y,U&&Qt(U),(re=K.props&&K.props.onVnodeBeforeUpdate)&&we(re,q,K,Y),vt(p,!0);const pe=ds(p),xe=p.subTree;p.subTree=pe,v(xe,pe,a(xe.el),Zn(xe),p,T,L),K.el=pe.el,oe===null&&ci(p,pe.el),x&&ye(x,T),(re=K.props&&K.props.onVnodeUpdated)&&ye(()=>we(re,q,K,Y),T)}else{let K;const{el:U,props:x}=g,{bm:q,m:Y,parent:oe}=p,re=Mt(g);if(vt(p,!1),q&&Qt(q),!re&&(K=x&&x.onVnodeBeforeMount)&&we(K,oe,g),vt(p,!0),U&&cr){const pe=()=>{p.subTree=ds(p),cr(U,p.subTree,p,T,null)};re?g.type.__asyncLoader().then(()=>!p.isUnmounted&&pe()):pe()}else{const pe=p.subTree=ds(p);v(null,pe,C,S,p,T,L),g.el=pe.el}if(Y&&ye(Y,T),!re&&(K=x&&x.onVnodeMounted)){const pe=g;ye(()=>we(K,oe,pe),T)}(g.shapeFlag&256||oe&&Mt(oe.vnode)&&oe.vnode.shapeFlag&256)&&p.a&&ye(p.a,T),p.isMounted=!0,g=C=S=null}},D=p.effect=new jn(k,()=>xs(N),p.scope),N=p.update=()=>D.run();N.id=p.uid,vt(p,!0),N()},le=(p,g,C)=>{g.component=p;const S=p.vnode.props;p.vnode=g,p.next=null,Nu(p,g.props,S,C),Ru(p,g.children,C),un(),ro(),pn()},ee=(p,g,C,S,T,L,$,k,D=!1)=>{const N=p&&p.children,K=p?p.shapeFlag:0,U=g.children,{patchFlag:x,shapeFlag:q}=g;if(x>0){if(x&128){Yn(N,U,C,S,T,L,$,k,D);return}else if(x&256){Ke(N,U,C,S,T,L,$,k,D);return}}q&8?(K&16&&Ge(N,T,L),U!==N&&u(C,U)):K&16?q&16?Yn(N,U,C,S,T,L,$,k,D):Ge(N,T,L,!0):(K&8&&u(C,""),q&16&&_(U,C,S,T,L,$,k,D))},Ke=(p,g,C,S,T,L,$,k,D)=>{p=p||Yt,g=g||Yt;const N=p.length,K=g.length,U=Math.min(N,K);let x;for(x=0;xK?Ge(p,T,L,!0,!1,U):_(g,C,S,T,L,$,k,D,U)},Yn=(p,g,C,S,T,L,$,k,D)=>{let N=0;const K=g.length;let U=p.length-1,x=K-1;for(;N<=U&&N<=x;){const q=p[N],Y=g[N]=D?ut(g[N]):Me(g[N]);if(qe(q,Y))v(q,Y,C,null,T,L,$,k,D);else break;N++}for(;N<=U&&N<=x;){const q=p[U],Y=g[x]=D?ut(g[x]):Me(g[x]);if(qe(q,Y))v(q,Y,C,null,T,L,$,k,D);else break;U--,x--}if(N>U){if(N<=x){const q=x+1,Y=qx)for(;N<=U;)Je(p[N],T,L,!0),N++;else{const q=N,Y=N,oe=new Map;for(N=Y;N<=x;N++){const Ae=g[N]=D?ut(g[N]):Me(g[N]);Ae.key!=null&&oe.set(Ae.key,N)}let re,pe=0;const xe=x-Y+1;let Wt=!1,qi=0;const dn=new Array(xe);for(N=0;N=xe){Je(Ae,T,L,!0);continue}let Ye;if(Ae.key!=null)Ye=oe.get(Ae.key);else for(re=Y;re<=x;re++)if(dn[re-Y]===0&&qe(Ae,g[re])){Ye=re;break}Ye===void 0?Je(Ae,T,L,!0):(dn[Ye-Y]=N+1,Ye>=qi?qi=Ye:Wt=!0,v(Ae,g[Ye],C,null,T,L,$,k,D),pe++)}const zi=Wt?ku(dn):Yt;for(re=zi.length-1,N=xe-1;N>=0;N--){const Ae=Y+N,Ye=g[Ae],Ji=Ae+1{const{el:L,type:$,transition:k,children:D,shapeFlag:N}=p;if(N&6){Ct(p.component.subTree,g,C,S);return}if(N&128){p.suspense.move(g,C,S);return}if(N&64){$.move(p,g,C,xt);return}if($===be){s(L,g,C);for(let U=0;Uk.enter(L),T);else{const{leave:U,delayLeave:x,afterLeave:q}=k,Y=()=>s(L,g,C),oe=()=>{U(L,()=>{Y(),q&&q()})};x?x(L,Y,oe):oe()}else s(L,g,C)},Je=(p,g,C,S=!1,T=!1)=>{const{type:L,props:$,ref:k,children:D,dynamicChildren:N,shapeFlag:K,patchFlag:U,dirs:x}=p;if(k!=null&&Ts(k,null,C,p,!0),K&256){g.ctx.deactivate(p);return}const q=K&1&&x,Y=!Mt(p);let oe;if(Y&&(oe=$&&$.onVnodeBeforeUnmount)&&we(oe,g,p),K&6)vf(p.component,C,S);else{if(K&128){p.suspense.unmount(C,S);return}q&&Ze(p,null,g,"beforeUnmount"),K&64?p.type.remove(p,g,C,T,xt,S):N&&(L!==be||U>0&&U&64)?Ge(N,g,C,!1,!0):(L===be&&U&384||!T&&K&16)&&Ge(D,g,C),S&&xi(p)}(Y&&(oe=$&&$.onVnodeUnmounted)||q)&&ye(()=>{oe&&we(oe,g,p),q&&Ze(p,null,g,"unmounted")},C)},xi=p=>{const{type:g,el:C,anchor:S,transition:T}=p;if(g===be){Cf(C,S);return}if(g===kt){w(p);return}const L=()=>{r(C),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(p.shapeFlag&1&&T&&!T.persisted){const{leave:$,delayLeave:k}=T,D=()=>$(C,L);k?k(p.el,L,D):D()}else L()},Cf=(p,g)=>{let C;for(;p!==g;)C=d(p),r(p),p=C;r(g)},vf=(p,g,C)=>{const{bum:S,scope:T,update:L,subTree:$,um:k}=p;S&&Qt(S),T.stop(),L&&(L.active=!1,Je($,p,g,C)),k&&ye(k,g),ye(()=>{p.isUnmounted=!0},g),g&&g.pendingBranch&&!g.isUnmounted&&p.asyncDep&&!p.asyncResolved&&p.suspenseId===g.pendingId&&(g.deps--,g.deps===0&&g.resolve())},Ge=(p,g,C,S=!1,T=!1,L=0)=>{for(let $=L;$p.shapeFlag&6?Zn(p.component.subTree):p.shapeFlag&128?p.suspense.next():d(p.anchor||p.el),Wi=(p,g,C)=>{p==null?g._vnode&&Je(g._vnode,null,null,!0):v(g._vnode||null,p,g,null,null,null,C),ro(),Cs(),g._vnode=p},xt={p:v,um:Je,m:Ct,r:xi,mt:B,mc:_,pc:ee,pbc:F,n:Zn,o:e};let lr,cr;return t&&([lr,cr]=t(xt)),{render:Wi,hydrate:lr,createApp:Iu(Wi,lr)}}function vt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function yi(e,t,n=!1){const s=e.children,r=t.children;if(j(s)&&j(r))for(let i=0;i>1,e[n[l]]0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}const Fu=e=>e.__isTeleport,vn=e=>e&&(e.disabled||e.disabled===""),mo=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Or=(e,t)=>{const n=e&&e.to;return z(n)?t?t(n):null:n},Lu={__isTeleport:!0,process(e,t,n,s,r,i,o,l,c,f){const{mc:u,pc:a,pbc:d,o:{insert:m,querySelector:E,createText:v,createComment:A}}=f,y=vn(t.props);let{shapeFlag:h,children:b,dynamicChildren:w}=t;if(e==null){const R=t.el=v(""),H=t.anchor=v("");m(R,n,s),m(H,n,s);const P=t.target=Or(t.props,E),_=t.targetAnchor=v("");P&&(m(_,P),o=o||mo(P));const M=(F,I)=>{h&16&&u(b,F,I,r,i,o,l,c)};y?M(n,H):P&&M(P,_)}else{t.el=e.el;const R=t.anchor=e.anchor,H=t.target=e.target,P=t.targetAnchor=e.targetAnchor,_=vn(e.props),M=_?n:H,F=_?R:P;if(o=o||mo(H),w?(d(e.dynamicChildren,w,M,r,i,o,l),yi(e,t,!0)):c||a(e,t,M,F,r,i,o,l,!1),y)_||os(t,n,R,f,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const I=t.target=Or(t.props,E);I&&os(t,I,null,f,0)}else _&&os(t,H,P,f,1)}ec(t)},remove(e,t,n,s,{um:r,o:{remove:i}},o){const{shapeFlag:l,children:c,anchor:f,targetAnchor:u,target:a,props:d}=e;if(a&&i(u),(o||!vn(d))&&(i(f),l&16))for(let m=0;m0?Ne||Yt:null,tc(),$t>0&&Ne&&Ne.push(e),e}function $u(e,t,n,s,r,i){return nc(_i(e,t,n,s,r,i,!0))}function bi(e,t,n,s,r){return nc(ce(e,t,n,s,r,!0))}function yt(e){return e?e.__v_isVNode===!0:!1}function qe(e,t){return e.type===t.type&&e.key===t.key}function Hu(e){}const Gs="__vInternal",sc=({key:e})=>e!=null?e:null,hs=({ref:e,ref_key:t,ref_for:n})=>e!=null?z(e)||ge(e)||W(e)?{i:_e,r:e,k:t,f:!!n}:e:null;function _i(e,t=null,n=null,s=0,r=null,i=e===be?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&sc(t),ref:t&&hs(t),scopeId:qs,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:_e};return l?(Ci(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=z(n)?8:16),$t>0&&!o&&Ne&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&Ne.push(c),c}const ce=Vu;function Vu(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Ul)&&(e=ve),yt(e)){const l=Qe(e,t,!0);return n&&Ci(l,n),$t>0&&!i&&Ne&&(l.shapeFlag&6?Ne[Ne.indexOf(e)]=l:Ne.push(l)),l.patchFlag|=-2,l}if(Yu(e)&&(e=e.__vccOpts),t){t=rc(t);let{class:l,style:c}=t;l&&!z(l)&&(t.class=Vn(l)),ie(c)&&(Gr(c)&&!j(c)&&(c=te({},c)),t.style=Hn(c))}const o=z(e)?1:Pl(e)?128:Fu(e)?64:ie(e)?4:W(e)?2:0;return _i(e,t,n,s,r,o,i,!0)}function rc(e){return e?Gr(e)||Gs in e?te({},e):e:null}function Qe(e,t,n=!1){const{props:s,ref:r,patchFlag:i,children:o}=e,l=t?ic(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&sc(l),ref:t&&t.ref?n&&r?j(r)?r.concat(hs(t)):[r,hs(t)]:hs(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==be?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qe(e.ssContent),ssFallback:e.ssFallback&&Qe(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ei(e=" ",t=0){return ce(Dt,null,e,t)}function ju(e,t){const n=ce(kt,null,e);return n.staticCount=t,n}function Uu(e="",t=!1){return t?(Qs(),bi(ve,null,e)):ce(ve,null,e)}function Me(e){return e==null||typeof e=="boolean"?ce(ve):j(e)?ce(be,null,e.slice()):typeof e=="object"?ut(e):ce(Dt,null,String(e))}function ut(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Qe(e)}function Ci(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(j(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),Ci(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(Gs in t)?t._ctx=_e:r===3&&_e&&(_e.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else W(t)?(t={default:t,_ctx:_e},n=32):(t=String(t),s&64?(n=16,t=[Ei(t)]):n=8);e.children=t,e.shapeFlag|=n}function ic(...e){const t={};for(let n=0;nae||_e,bt=e=>{ae=e,e.scope.on()},dt=()=>{ae&&ae.scope.off(),ae=null};function lc(e){return e.vnode.shapeFlag&4}let sn=!1;function cc(e,t=!1){sn=t;const{props:n,children:s}=e.vnode,r=lc(e);wu(e,n,r,t),Ou(e,s);const i=r?Wu(e,t):void 0;return sn=!1,i}function Wu(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ei(new Proxy(e.ctx,Sr));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?ac(e):null;bt(e),un();const i=st(s,e,0,[e.props,r]);if(pn(),dt(),zr(i)){if(i.then(dt,dt),t)return i.then(o=>{Ar(e,o,t)}).catch(o=>{Kt(o,e,0)});e.asyncDep=i}else Ar(e,i,t)}else fc(e,t)}function Ar(e,t,n){W(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ie(t)&&(e.setupState=si(t)),fc(e,n)}let Ss,Ir;function qu(e){Ss=e,Ir=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,_u))}}const zu=()=>!Ss;function fc(e,t,n){const s=e.type;if(!e.render){if(!t&&Ss&&!s.render){const r=s.template||gi(e).template;if(r){const{isCustomElement:i,compilerOptions:o}=e.appContext.config,{delimiters:l,compilerOptions:c}=s,f=te(te({isCustomElement:i,delimiters:l},o),c);s.render=Ss(r,f)}}e.render=s.render||Fe,Ir&&Ir(e)}bt(e),un(),Eu(e),pn(),dt()}function Ju(e){return new Proxy(e.attrs,{get(t,n){return Oe(e,"get","$attrs"),t[n]}})}function ac(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=Ju(e))},slots:e.slots,emit:e.emit,expose:t}}function er(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(si(ei(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Cn)return Cn[n](e)},has(t,n){return n in t||n in Cn}}))}function Mr(e,t=!0){return W(e)?e.displayName||e.name:e.name||t&&e.__name}function Yu(e){return W(e)&&"__vccOpts"in e}const uc=(e,t)=>La(e,t,sn);function Zu(){return null}function Xu(){return null}function Qu(e){}function Gu(e,t){return null}function ep(){return pc().slots}function tp(){return pc().attrs}function pc(){const e=Et();return e.setupContext||(e.setupContext=ac(e))}function np(e,t){const n=j(e)?e.reduce((s,r)=>(s[r]={},s),{}):e;for(const s in t){const r=n[s];r?j(r)||W(r)?n[s]={type:r,default:t[s]}:r.default=t[s]:r===null&&(n[s]={default:t[s]})}return n}function sp(e,t){const n={};for(const s in e)t.includes(s)||Object.defineProperty(n,s,{enumerable:!0,get:()=>e[s]});return n}function rp(e){const t=Et();let n=e();return dt(),zr(n)&&(n=n.catch(s=>{throw bt(t),s})),[n,()=>bt(t)]}function dc(e,t,n){const s=arguments.length;return s===2?ie(t)&&!j(t)?yt(t)?ce(e,null,[t]):ce(e,t):ce(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&yt(n)&&(n=[n]),ce(e,t,n))}const hc=Symbol(""),gc=()=>_n(hc);function ip(){}function op(e,t,n,s){const r=n[s];if(r&&mc(r,e))return r;const i=t();return i.memo=e.slice(),n[s]=i}function mc(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s0&&Ne&&Ne.push(e),!0}const yc="3.2.47",lp={createComponentInstance:oc,setupComponent:cc,renderComponentRoot:ds,setCurrentRenderingInstance:In,isVNode:yt,normalizeVNode:Me},cp=lp,fp=null,ap=null,up="http://www.w3.org/2000/svg",Nt=typeof document!="undefined"?document:null,yo=Nt&&Nt.createElement("template"),pp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t?Nt.createElementNS(up,e):Nt.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Nt.createTextNode(e),createComment:e=>Nt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Nt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{yo.innerHTML=s?`${e}`:e;const l=yo.content;if(s){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function dp(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function hp(e,t,n){const s=e.style,r=z(n);if(n&&!r){if(t&&!z(t))for(const i in t)n[i]==null&&kr(s,i,"");for(const i in n)kr(s,i,n[i])}else{const i=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=i)}}const bo=/\s*!important$/;function kr(e,t,n){if(j(n))n.forEach(s=>kr(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=gp(e,t);bo.test(n)?e.setProperty(ke(s),n.replace(bo,""),"important"):e[s]=n}}const _o=["Webkit","Moz","ms"],hr={};function gp(e,t){const n=hr[t];if(n)return n;let s=me(t);if(s!=="filter"&&s in e)return hr[t]=s;s=Ut(s);for(let r=0;r<_o.length;r++){const i=_o[r]+s;if(i in e)return hr[t]=i}return t}const Eo="http://www.w3.org/1999/xlink";function mp(e,t,n,s,r){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Eo,t.slice(6,t.length)):e.setAttributeNS(Eo,t,n);else{const i=Bf(t);n==null||i&&!Go(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function yp(e,t,n,s,r,i,o){if(t==="innerHTML"||t==="textContent"){s&&o(s,r,i),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const c=n==null?"":n;(e.value!==c||e.tagName==="OPTION")&&(e.value=c),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const c=typeof e[t];c==="boolean"?n=Go(n):n==null&&c==="string"?(n="",l=!0):c==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function nt(e,t,n,s){e.addEventListener(t,n,s)}function bp(e,t,n,s){e.removeEventListener(t,n,s)}function _p(e,t,n,s,r=null){const i=e._vei||(e._vei={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=Ep(t);if(s){const f=i[t]=Tp(s,r);nt(e,l,f,c)}else o&&(bp(e,l,o,c),i[t]=void 0)}}const Co=/(?:Once|Passive|Capture)$/;function Ep(e){let t;if(Co.test(e)){t={};let s;for(;s=e.match(Co);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ke(e.slice(2)),t]}let gr=0;const Cp=Promise.resolve(),vp=()=>gr||(Cp.then(()=>gr=0),gr=Date.now());function Tp(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Le(Sp(s,n.value),t,5,[s])};return n.value=e,n.attached=vp(),n}function Sp(e,t){if(j(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const vo=/^on[a-z]/,wp=(e,t,n,s,r=!1,i,o,l,c)=>{t==="class"?dp(e,s,r):t==="style"?hp(e,n,s):Vt(t)?Wr(t)||_p(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Np(e,t,s,r))?yp(e,t,s,i,o,l,c):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),mp(e,t,s,r))};function Np(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&vo.test(t)&&W(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||vo.test(t)&&z(n)?!1:t in e}function bc(e,t){const n=pi(e);class s extends tr{constructor(i){super(n,i,t)}}return s.def=n,s}const Pp=e=>bc(e,Fc),Op=typeof HTMLElement!="undefined"?HTMLElement:class{};class tr extends Op{constructor(t,n={},s){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,ii(()=>{this._connected||(Br(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let s=0;s{for(const r of s)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=(s,r=!1)=>{const{props:i,styles:o}=s;let l;if(i&&!j(i))for(const c in i){const f=i[c];(f===Number||f&&f.type===Number)&&(c in this._props&&(this._props[c]=_s(this._props[c])),(l||(l=Object.create(null)))[me(c)]=!0)}this._numberProps=l,r&&this._resolveProps(s),this._applyStyles(o),this._update()},n=this._def.__asyncLoader;n?n().then(s=>t(s,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,s=j(n)?n:Object.keys(n||{});for(const r of Object.keys(this))r[0]!=="_"&&s.includes(r)&&this._setProp(r,this[r],!0,!1);for(const r of s.map(me))Object.defineProperty(this,r,{get(){return this._getProp(r)},set(i){this._setProp(r,i)}})}_setAttr(t){let n=this.getAttribute(t);const s=me(t);this._numberProps&&this._numberProps[s]&&(n=_s(n)),this._setProp(s,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),s&&(n===!0?this.setAttribute(ke(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(ke(t),n+""):n||this.removeAttribute(ke(t))))}_update(){Br(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ce(this._def,te({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const s=(i,o)=>{this.dispatchEvent(new CustomEvent(i,{detail:o}))};n.emit=(i,...o)=>{s(i,o),ke(i)!==i&&s(ke(i),o)};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof tr){n.parent=r._instance,n.provides=r._instance.provides;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const s=document.createElement("style");s.textContent=n,this.shadowRoot.appendChild(s)})}}function Rp(e="$style"){{const t=Et();if(!t)return se;const n=t.type.__cssModules;if(!n)return se;const s=n[e];return s||se}}function Ap(e){const t=Et();if(!t)return;const n=t.ut=(r=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(i=>Lr(i,r))},s=()=>{const r=e(t.proxy);Fr(t.subTree,r),n(r)};Al(s),xn(()=>{const r=new MutationObserver(s);r.observe(t.subTree.el.parentNode,{childList:!0}),Xs(()=>r.disconnect())})}function Fr(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Fr(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Lr(e.el,t);else if(e.type===be)e.children.forEach(n=>Fr(n,t));else if(e.type===kt){let{el:n,anchor:s}=e;for(;n&&(Lr(n,t),n!==s);)n=n.nextSibling}}function Lr(e,t){if(e.nodeType===1){const n=e.style;for(const s in t)n.setProperty(`--${s}`,t[s])}}const ft="transition",hn="animation",vi=(e,{slots:t})=>dc(ui,Ec(e),t);vi.displayName="Transition";const _c={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ip=vi.props=te({},ui.props,_c),Tt=(e,t=[])=>{j(e)?e.forEach(n=>n(...t)):e&&e(...t)},To=e=>e?j(e)?e.some(t=>t.length>1):e.length>1:!1;function Ec(e){const t={};for(const O in e)O in _c||(t[O]=e[O]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:f=o,appearToClass:u=l,leaveFromClass:a=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,E=Mp(r),v=E&&E[0],A=E&&E[1],{onBeforeEnter:y,onEnter:h,onEnterCancelled:b,onLeave:w,onLeaveCancelled:R,onBeforeAppear:H=y,onAppear:P=h,onAppearCancelled:_=b}=t,M=(O,V,B)=>{at(O,V?u:l),at(O,V?f:o),B&&B()},F=(O,V)=>{O._isLeaving=!1,at(O,a),at(O,m),at(O,d),V&&V()},I=O=>(V,B)=>{const G=O?P:h,X=()=>M(V,O,B);Tt(G,[V,X]),So(()=>{at(V,O?c:i),et(V,O?u:l),To(G)||wo(V,s,v,X)})};return te(t,{onBeforeEnter(O){Tt(y,[O]),et(O,i),et(O,o)},onBeforeAppear(O){Tt(H,[O]),et(O,c),et(O,f)},onEnter:I(!1),onAppear:I(!0),onLeave(O,V){O._isLeaving=!0;const B=()=>F(O,V);et(O,a),vc(),et(O,d),So(()=>{!O._isLeaving||(at(O,a),et(O,m),To(w)||wo(O,s,A,B))}),Tt(w,[O,B])},onEnterCancelled(O){M(O,!1),Tt(b,[O])},onAppearCancelled(O){M(O,!0),Tt(_,[O])},onLeaveCancelled(O){F(O),Tt(R,[O])}})}function Mp(e){if(e==null)return null;if(ie(e))return[mr(e.enter),mr(e.leave)];{const t=mr(e);return[t,t]}}function mr(e){return _s(e)}function et(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function at(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function So(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let kp=0;function wo(e,t,n,s){const r=e._endId=++kp,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=Cc(e,t);if(!o)return s();const f=o+"end";let u=0;const a=()=>{e.removeEventListener(f,d),i()},d=m=>{m.target===e&&++u>=c&&a()};setTimeout(()=>{u(n[E]||"").split(", "),r=s(`${ft}Delay`),i=s(`${ft}Duration`),o=No(r,i),l=s(`${hn}Delay`),c=s(`${hn}Duration`),f=No(l,c);let u=null,a=0,d=0;t===ft?o>0&&(u=ft,a=o,d=i.length):t===hn?f>0&&(u=hn,a=f,d=c.length):(a=Math.max(o,f),u=a>0?o>f?ft:hn:null,d=u?u===ft?i.length:c.length:0);const m=u===ft&&/\b(transform|all)(,|$)/.test(s(`${ft}Property`).toString());return{type:u,timeout:a,propCount:d,hasTransform:m}}function No(e,t){for(;e.lengthPo(n)+Po(e[s])))}function Po(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function vc(){return document.body.offsetHeight}const Tc=new WeakMap,Sc=new WeakMap,wc={name:"TransitionGroup",props:te({},Ip,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Et(),s=ai();let r,i;return Ys(()=>{if(!r.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Hp(r[0].el,n.vnode.el,o))return;r.forEach(Bp),r.forEach(Dp);const l=r.filter($p);vc(),l.forEach(c=>{const f=c.el,u=f.style;et(f,o),u.transform=u.webkitTransform=u.transitionDuration="";const a=f._moveCb=d=>{d&&d.target!==f||(!d||/transform$/.test(d.propertyName))&&(f.removeEventListener("transitionend",a),f._moveCb=null,at(f,o))};f.addEventListener("transitionend",a)})}),()=>{const o=Z(e),l=Ec(o);let c=o.tag||be;r=i,i=t.default?zs(t.default()):[];for(let f=0;fdelete e.mode;wc.props;const Lp=wc;function Bp(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Dp(e){Sc.set(e,e.el.getBoundingClientRect())}function $p(e){const t=Tc.get(e),n=Sc.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${r}px)`,i.transitionDuration="0s",e}}function Hp(e,t,n){const s=e.cloneNode();e._vtc&&e._vtc.forEach(o=>{o.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(o=>o&&s.classList.add(o)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:i}=Cc(s);return r.removeChild(s),i}const _t=e=>{const t=e.props["onUpdate:modelValue"]||!1;return j(t)?n=>Qt(t,n):t};function Vp(e){e.target.composing=!0}function Oo(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ws={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=_t(r);const i=s||r.props&&r.props.type==="number";nt(e,t?"change":"input",o=>{if(o.target.composing)return;let l=e.value;n&&(l=l.trim()),i&&(l=bs(l)),e._assign(l)}),n&&nt(e,"change",()=>{e.value=e.value.trim()}),t||(nt(e,"compositionstart",Vp),nt(e,"compositionend",Oo),nt(e,"change",Oo))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},i){if(e._assign=_t(i),e.composing||document.activeElement===e&&e.type!=="range"&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&bs(e.value)===t))return;const o=t==null?"":t;e.value!==o&&(e.value=o)}},Ti={deep:!0,created(e,t,n){e._assign=_t(n),nt(e,"change",()=>{const s=e._modelValue,r=rn(e),i=e.checked,o=e._assign;if(j(s)){const l=Bs(s,r),c=l!==-1;if(i&&!c)o(s.concat(r));else if(!i&&c){const f=[...s];f.splice(l,1),o(f)}}else if(jt(s)){const l=new Set(s);i?l.add(r):l.delete(r),o(l)}else o(Pc(e,i))})},mounted:Ro,beforeUpdate(e,t,n){e._assign=_t(n),Ro(e,t,n)}};function Ro(e,{value:t,oldValue:n},s){e._modelValue=t,j(t)?e.checked=Bs(t,s.props.value)>-1:jt(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=ht(t,Pc(e,!0)))}const Si={created(e,{value:t},n){e.checked=ht(t,n.props.value),e._assign=_t(n),nt(e,"change",()=>{e._assign(rn(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e._assign=_t(s),t!==n&&(e.checked=ht(t,s.props.value))}},Nc={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=jt(t);nt(e,"change",()=>{const i=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>n?bs(rn(o)):rn(o));e._assign(e.multiple?r?new Set(i):i:i[0])}),e._assign=_t(s)},mounted(e,{value:t}){Ao(e,t)},beforeUpdate(e,t,n){e._assign=_t(n)},updated(e,{value:t}){Ao(e,t)}};function Ao(e,t){const n=e.multiple;if(!(n&&!j(t)&&!jt(t))){for(let s=0,r=e.options.length;s-1:i.selected=t.has(o);else if(ht(rn(i),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function rn(e){return"_value"in e?e._value:e.value}function Pc(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Oc={created(e,t,n){ls(e,t,n,null,"created")},mounted(e,t,n){ls(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){ls(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){ls(e,t,n,s,"updated")}};function Rc(e,t){switch(e){case"SELECT":return Nc;case"TEXTAREA":return ws;default:switch(t){case"checkbox":return Ti;case"radio":return Si;default:return ws}}}function ls(e,t,n,s,r){const o=Rc(e.tagName,n.props&&n.props.type)[r];o&&o(e,t,n,s)}function jp(){ws.getSSRProps=({value:e})=>({value:e}),Si.getSSRProps=({value:e},t)=>{if(t.props&&ht(t.props.value,e))return{checked:!0}},Ti.getSSRProps=({value:e},t)=>{if(j(e)){if(t.props&&Bs(e,t.props.value)>-1)return{checked:!0}}else if(jt(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Oc.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=Rc(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const Up=["ctrl","shift","alt","meta"],Kp={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Up.some(n=>e[`${n}Key`]&&!t.includes(n))},xp=(e,t)=>(n,...s)=>{for(let r=0;rn=>{if(!("key"in n))return;const s=ke(n.key);if(t.some(r=>r===s||Wp[r]===s))return e(n)},Ac={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):gn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),gn(e,!0),s.enter(e)):s.leave(e,()=>{gn(e,!1)}):gn(e,t))},beforeUnmount(e,{value:t}){gn(e,t)}};function gn(e,t){e.style.display=t?e._vod:"none"}function zp(){Ac.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Ic=te({patchProp:wp},pp);let Sn,Io=!1;function Mc(){return Sn||(Sn=Xl(Ic))}function kc(){return Sn=Io?Sn:Ql(Ic),Io=!0,Sn}const Br=(...e)=>{Mc().render(...e)},Fc=(...e)=>{kc().hydrate(...e)},Jp=(...e)=>{const t=Mc().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Lc(s);if(!r)return;const i=t._component;!W(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const o=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},Yp=(...e)=>{const t=kc().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Lc(s);if(r)return n(r,!0,r instanceof SVGElement)},t};function Lc(e){return z(e)?document.querySelector(e):e}let Mo=!1;const Zp=()=>{Mo||(Mo=!0,jp(),zp())};var Kh=Object.freeze(Object.defineProperty({__proto__:null,Transition:vi,TransitionGroup:Lp,VueElement:tr,createApp:Jp,createSSRApp:Yp,defineCustomElement:bc,defineSSRCustomElement:Pp,hydrate:Fc,initDirectivesForSSR:Zp,render:Br,useCssModule:Rp,useCssVars:Ap,vModelCheckbox:Ti,vModelDynamic:Oc,vModelRadio:Si,vModelSelect:Nc,vModelText:ws,vShow:Ac,withKeys:qp,withModifiers:xp,EffectScope:Yr,ReactiveEffect:jn,customRef:Ia,effect:Xf,effectScope:zf,getCurrentScope:rl,isProxy:Gr,isReactive:It,isReadonly:Lt,isRef:ge,isShallow:Pn,markRaw:ei,onScopeDispose:Jf,proxyRefs:si,reactive:js,readonly:Qr,ref:ps,shallowReactive:yl,shallowReadonly:wa,shallowRef:Na,stop:Qf,toRaw:Z,toRef:El,toRefs:Ma,triggerRef:Oa,unref:_l,camelize:me,capitalize:Ut,normalizeClass:Vn,normalizeProps:Of,normalizeStyle:Hn,toDisplayString:$f,toHandlerKey:Xt,BaseTransition:ui,Comment:ve,Fragment:be,KeepAlive:cu,Static:kt,Suspense:Xa,Teleport:Du,Text:Dt,assertNumber:Da,callWithAsyncErrorHandling:Le,callWithErrorHandling:st,cloneVNode:Qe,compatUtils:ap,computed:uc,createBlock:bi,createCommentVNode:Uu,createElementBlock:$u,createElementVNode:_i,createHydrationRenderer:Ql,createPropsRestProxy:sp,createRenderer:Xl,createSlots:mu,createStaticVNode:ju,createTextVNode:Ei,createVNode:ce,defineAsyncComponent:ou,defineComponent:pi,defineEmits:Xu,defineExpose:Qu,defineProps:Zu,get devtools(){return zt},getCurrentInstance:Et,getTransitionRawChildren:zs,guardReactiveProps:rc,h:dc,handleError:Kt,initCustomFormatter:ip,inject:_n,isMemoSame:mc,isRuntimeOnly:zu,isVNode:yt,mergeDefaults:np,mergeProps:ic,nextTick:ii,onActivated:kl,onBeforeMount:Bl,onBeforeUnmount:Zs,onBeforeUpdate:Dl,onDeactivated:Fl,onErrorCaptured:jl,onMounted:xn,onRenderTracked:Vl,onRenderTriggered:Hl,onServerPrefetch:$l,onUnmounted:Xs,onUpdated:Ys,openBlock:Qs,popScopeId:xa,provide:Rl,pushScopeId:Ka,queuePostFlushCb:oi,registerRuntimeCompiler:qu,renderList:gu,renderSlot:yu,resolveComponent:pu,resolveDirective:hu,resolveDynamicComponent:du,resolveFilter:fp,resolveTransitionHooks:nn,setBlockTracking:Rr,setDevtoolsHook:wl,setTransitionHooks:Bt,ssrContextKey:hc,ssrUtils:cp,toHandlers:bu,transformVNodeArgs:Hu,useAttrs:tp,useSSRContext:gc,useSlots:ep,useTransitionState:ai,version:yc,warn:Ba,watch:En,watchEffect:nu,watchPostEffect:Al,watchSyncEffect:su,withAsyncContext:rp,withCtx:li,withDefaults:Gu,withDirectives:au,withMemo:op,withScopeId:Wa},Symbol.toStringTag,{value:"Module"}));function wi(e){throw e}function Bc(e){}function fe(e,t,n,s){const r=e,i=new SyntaxError(String(r));return i.code=e,i.loc=t,i}const kn=Symbol(""),wn=Symbol(""),Ni=Symbol(""),Ns=Symbol(""),Dc=Symbol(""),Ht=Symbol(""),$c=Symbol(""),Hc=Symbol(""),Pi=Symbol(""),Oi=Symbol(""),Wn=Symbol(""),Ri=Symbol(""),Vc=Symbol(""),Ai=Symbol(""),Ps=Symbol(""),Ii=Symbol(""),Mi=Symbol(""),ki=Symbol(""),Fi=Symbol(""),jc=Symbol(""),Uc=Symbol(""),nr=Symbol(""),Os=Symbol(""),Li=Symbol(""),Bi=Symbol(""),Fn=Symbol(""),qn=Symbol(""),Di=Symbol(""),Dr=Symbol(""),Xp=Symbol(""),$r=Symbol(""),Rs=Symbol(""),Qp=Symbol(""),Gp=Symbol(""),$i=Symbol(""),ed=Symbol(""),td=Symbol(""),Hi=Symbol(""),Kc=Symbol(""),on={[kn]:"Fragment",[wn]:"Teleport",[Ni]:"Suspense",[Ns]:"KeepAlive",[Dc]:"BaseTransition",[Ht]:"openBlock",[$c]:"createBlock",[Hc]:"createElementBlock",[Pi]:"createVNode",[Oi]:"createElementVNode",[Wn]:"createCommentVNode",[Ri]:"createTextVNode",[Vc]:"createStaticVNode",[Ai]:"resolveComponent",[Ps]:"resolveDynamicComponent",[Ii]:"resolveDirective",[Mi]:"resolveFilter",[ki]:"withDirectives",[Fi]:"renderList",[jc]:"renderSlot",[Uc]:"createSlots",[nr]:"toDisplayString",[Os]:"mergeProps",[Li]:"normalizeClass",[Bi]:"normalizeStyle",[Fn]:"normalizeProps",[qn]:"guardReactiveProps",[Di]:"toHandlers",[Dr]:"camelize",[Xp]:"capitalize",[$r]:"toHandlerKey",[Rs]:"setBlockTracking",[Qp]:"pushScopeId",[Gp]:"popScopeId",[$i]:"withCtx",[ed]:"unref",[td]:"isRef",[Hi]:"withMemo",[Kc]:"isMemoSame"};function nd(e){Object.getOwnPropertySymbols(e).forEach(t=>{on[t]=e[t]})}const De={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function sd(e,t=De){return{type:0,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function Ln(e,t,n,s,r,i,o,l=!1,c=!1,f=!1,u=De){return e&&(l?(e.helper(Ht),e.helper(fn(e.inSSR,f))):e.helper(cn(e.inSSR,f)),o&&e.helper(ki)),{type:13,tag:t,props:n,children:s,patchFlag:r,dynamicProps:i,directives:o,isBlock:l,disableTracking:c,isComponent:f,loc:u}}function zn(e,t=De){return{type:17,loc:t,elements:e}}function Ve(e,t=De){return{type:15,loc:t,properties:e}}function ue(e,t){return{type:16,loc:De,key:z(e)?J(e,!0):e,value:t}}function J(e,t=!1,n=De,s=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:s}}function ze(e,t=De){return{type:8,loc:t,children:e}}function de(e,t=[],n=De){return{type:14,loc:n,callee:e,arguments:t}}function ln(e,t=void 0,n=!1,s=!1,r=De){return{type:18,params:e,returns:t,newline:n,isSlot:s,loc:r}}function Hr(e,t,n,s=!0){return{type:19,test:e,consequent:t,alternate:n,newline:s,loc:De}}function rd(e,t,n=!1){return{type:20,index:e,value:t,isVNode:n,loc:De}}function id(e){return{type:21,body:e,loc:De}}const Pe=e=>e.type===4&&e.isStatic,Jt=(e,t)=>e===t||e===ke(t);function xc(e){if(Jt(e,"Teleport"))return wn;if(Jt(e,"Suspense"))return Ni;if(Jt(e,"KeepAlive"))return Ns;if(Jt(e,"BaseTransition"))return Dc}const od=/^\d|[^\$\w]/,Vi=e=>!od.test(e),ld=/[A-Za-z_$\xA0-\uFFFF]/,cd=/[\.\?\w$\xA0-\uFFFF]/,fd=/\s+[.[]\s*|\s*[.[]\s+/g,ad=e=>{e=e.trim().replace(fd,o=>o.trim());let t=0,n=[],s=0,r=0,i=null;for(let o=0;ot.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function yr(e){return e.type===5||e.type===2}function pd(e){return e.type===7&&e.name==="slot"}function Ms(e){return e.type===1&&e.tagType===3}function ks(e){return e.type===1&&e.tagType===2}function cn(e,t){return e||t?Pi:Oi}function fn(e,t){return e||t?$c:Hc}const dd=new Set([Fn,qn]);function zc(e,t=[]){if(e&&!z(e)&&e.type===14){const n=e.callee;if(!z(n)&&dd.has(n))return zc(e.arguments[0],t.concat(e))}return[e,t]}function Fs(e,t,n){let s,r=e.type===13?e.props:e.arguments[2],i=[],o;if(r&&!z(r)&&r.type===14){const l=zc(r);r=l[0],i=l[1],o=i[i.length-1]}if(r==null||z(r))s=Ve([t]);else if(r.type===14){const l=r.arguments[0];!z(l)&&l.type===15?ko(t,l)||l.properties.unshift(t):r.callee===Di?s=de(n.helper(Os),[Ve([t]),r]):r.arguments.unshift(Ve([t])),!s&&(s=r)}else r.type===15?(ko(t,r)||r.properties.unshift(t),s=r):(s=de(n.helper(Os),[Ve([t]),r]),o&&o.callee===qn&&(o=i[i.length-2]));e.type===13?o?o.arguments[0]=s:e.props=s:o?o.arguments[0]=s:e.arguments[2]=s}function ko(e,t){let n=!1;if(e.key.type===4){const s=e.key.content;n=t.properties.some(r=>r.key.type===4&&r.key.content===s)}return n}function Bn(e,t){return`_${t}_${e.replace(/[^\w]/g,(n,s)=>n==="-"?"_":e.charCodeAt(s).toString())}`}function hd(e){return e.type===14&&e.callee===Hi?e.arguments[1].returns:e}function ji(e,{helper:t,removeHelper:n,inSSR:s}){e.isBlock||(e.isBlock=!0,n(cn(s,e.isComponent)),t(Ht),t(fn(s,e.isComponent)))}function Fo(e,t){const n=t.options?t.options.compatConfig:t.compatConfig,s=n&&n[e];return e==="MODE"?s||3:s}function Ft(e,t){const n=Fo("MODE",t),s=Fo(e,t);return n===3?s===!0:s!==!1}function Dn(e,t,n,...s){return Ft(e,t)}const gd=/&(gt|lt|amp|apos|quot);/g,md={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},Lo={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:us,isPreTag:us,isCustomElement:us,decodeEntities:e=>e.replace(gd,(t,n)=>md[n]),onError:wi,onWarn:Bc,comments:!1};function yd(e,t={}){const n=bd(e,t),s=Be(n);return sd(Ui(n,0,[]),Ue(n,s))}function bd(e,t){const n=te({},Lo);let s;for(s in t)n[s]=t[s]===void 0?Lo[s]:t[s];return{options:n,column:1,line:1,offset:0,originalSource:e,source:e,inPre:!1,inVPre:!1,onWarn:n.onWarn}}function Ui(e,t,n){const s=rr(n),r=s?s.ns:0,i=[];for(;!Pd(e,t,n);){const l=e.source;let c;if(t===0||t===1){if(!e.inVPre&&Ce(l,e.options.delimiters[0]))c=wd(e,t);else if(t===0&&l[0]==="<")if(l.length===1)ne(e,5,1);else if(l[1]==="!")Ce(l,"=0;){const f=o[l];f&&f.type===9&&(c+=f.branches.length)}return()=>{if(i)s.codegenNode=jo(r,c,n);else{const f=Xd(s.codegenNode);f.alternate=jo(r,c+s.branches.length-1,n)}}}));function Zd(e,t,n,s){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const r=t.exp?t.exp.loc:e.loc;n.onError(fe(28,t.loc)),t.exp=J("true",!1,r)}if(t.name==="if"){const r=Vo(e,t),i={type:9,loc:e.loc,branches:[r]};if(n.replaceNode(i),s)return s(i,r,!0)}else{const r=n.parent.children;let i=r.indexOf(e);for(;i-->=-1;){const o=r[i];if(o&&o.type===3){n.removeNode(o);continue}if(o&&o.type===2&&!o.content.trim().length){n.removeNode(o);continue}if(o&&o.type===9){t.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&n.onError(fe(30,e.loc)),n.removeNode();const l=Vo(e,t);o.branches.push(l);const c=s&&s(o,l,!1);ir(l,n),c&&c(),n.currentNode=null}else n.onError(fe(30,e.loc));break}}}function Vo(e,t){const n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name==="else"?void 0:t.exp,children:n&&!He(e,"for")?e.children:[e],userKey:sr(e,"key"),isTemplateIf:n}}function jo(e,t,n){return e.condition?Hr(e.condition,Uo(e,t,n),de(n.helper(Wn),['""',"true"])):Uo(e,t,n)}function Uo(e,t,n){const{helper:s}=n,r=ue("key",J(`${t}`,!1,De,2)),{children:i}=e,o=i[0];if(i.length!==1||o.type!==1)if(i.length===1&&o.type===11){const c=o.codegenNode;return Fs(c,r,n),c}else{let c=64;return Ln(n,s(kn),Ve([r]),i,c+"",void 0,void 0,!0,!1,!1,e.loc)}else{const c=o.codegenNode,f=hd(c);return f.type===13&&ji(f,n),Fs(f,r,n),c}}function Xd(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}const Qd=ef("for",(e,t,n)=>{const{helper:s,removeHelper:r}=n;return Gd(e,t,n,i=>{const o=de(s(Fi),[i.source]),l=Ms(e),c=He(e,"memo"),f=sr(e,"key"),u=f&&(f.type===6?J(f.value.content,!0):f.exp),a=f?ue("key",u):null,d=i.source.type===4&&i.source.constType>0,m=d?64:f?128:256;return i.codegenNode=Ln(n,s(kn),void 0,o,m+"",void 0,void 0,!0,!d,!1,e.loc),()=>{let E;const{children:v}=i,A=v.length!==1||v[0].type!==1,y=ks(e)?e:l&&e.children.length===1&&ks(e.children[0])?e.children[0]:null;if(y?(E=y.codegenNode,l&&a&&Fs(E,a,n)):A?E=Ln(n,s(kn),a?Ve([a]):void 0,e.children,64+"",void 0,void 0,!0,void 0,!1):(E=v[0].codegenNode,l&&a&&Fs(E,a,n),E.isBlock!==!d&&(E.isBlock?(r(Ht),r(fn(n.inSSR,E.isComponent))):r(cn(n.inSSR,E.isComponent))),E.isBlock=!d,E.isBlock?(s(Ht),s(fn(n.inSSR,E.isComponent))):s(cn(n.inSSR,E.isComponent))),c){const h=ln(Ur(i.parseResult,[J("_cached")]));h.body=id([ze(["const _memo = (",c.exp,")"]),ze(["if (_cached",...u?[" && _cached.key === ",u]:[],` && ${n.helperString(Kc)}(_cached, _memo)) return _cached`]),ze(["const _item = ",E]),J("_item.memo = _memo"),J("return _item")]),o.arguments.push(h,J("_cache"),J(String(n.cached++)))}else o.arguments.push(ln(Ur(i.parseResult),E,!0))}})});function Gd(e,t,n,s){if(!t.exp){n.onError(fe(31,t.loc));return}const r=rf(t.exp);if(!r){n.onError(fe(32,t.loc));return}const{addIdentifiers:i,removeIdentifiers:o,scopes:l}=n,{source:c,value:f,key:u,index:a}=r,d={type:11,loc:t.loc,source:c,valueAlias:f,keyAlias:u,objectIndexAlias:a,parseResult:r,children:Ms(e)?e.children:[e]};n.replaceNode(d),l.vFor++;const m=s&&s(d);return()=>{l.vFor--,m&&m()}}const eh=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ko=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,th=/^\(|\)$/g;function rf(e,t){const n=e.loc,s=e.content,r=s.match(eh);if(!r)return;const[,i,o]=r,l={source:cs(n,o.trim(),s.indexOf(o,i.length)),value:void 0,key:void 0,index:void 0};let c=i.trim().replace(th,"").trim();const f=i.indexOf(c),u=c.match(Ko);if(u){c=c.replace(Ko,"").trim();const a=u[1].trim();let d;if(a&&(d=s.indexOf(a,f+c.length),l.key=cs(n,a,d)),u[2]){const m=u[2].trim();m&&(l.index=cs(n,m,s.indexOf(m,l.key?d+a.length:f+c.length)))}}return c&&(l.value=cs(n,c,f)),l}function cs(e,t,n){return J(t,!1,qc(e,n,t.length))}function Ur({value:e,key:t,index:n},s=[]){return nh([e,t,n,...s])}function nh(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((n,s)=>n||J("_".repeat(s+1),!1))}const xo=J("undefined",!1),sh=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){const n=He(e,"slot");if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},rh=(e,t,n)=>ln(e,t,!1,!0,t.length?t[0].loc:n);function ih(e,t,n=rh){t.helper($i);const{children:s,loc:r}=e,i=[],o=[];let l=t.scopes.vSlot>0||t.scopes.vFor>0;const c=He(e,"slot",!0);if(c){const{arg:A,exp:y}=c;A&&!Pe(A)&&(l=!0),i.push(ue(A||J("default",!0),n(y,s,r)))}let f=!1,u=!1;const a=[],d=new Set;let m=0;for(let A=0;A{const b=n(y,h,r);return t.compatConfig&&(b.isNonScopedSlot=!0),ue("default",b)};f?a.length&&a.some(y=>of(y))&&(u?t.onError(fe(39,a[0].loc)):i.push(A(void 0,a))):i.push(A(void 0,s))}const E=l?2:ms(e.children)?3:1;let v=Ve(i.concat(ue("_",J(E+"",!1))),r);return o.length&&(v=de(t.helper(Uc),[v,zn(o)])),{slots:v,hasDynamicSlots:l}}function fs(e,t,n){const s=[ue("name",e),ue("fn",t)];return n!=null&&s.push(ue("key",J(String(n),!0))),Ve(s)}function ms(e){for(let t=0;tfunction(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;const{tag:s,props:r}=e,i=e.tagType===1;let o=i?lh(e,t):`"${s}"`;const l=ie(o)&&o.callee===Ps;let c,f,u,a=0,d,m,E,v=l||o===wn||o===Ni||!i&&(s==="svg"||s==="foreignObject");if(r.length>0){const A=cf(e,t,void 0,i,l);c=A.props,a=A.patchFlag,m=A.dynamicPropNames;const y=A.directives;E=y&&y.length?zn(y.map(h=>fh(h,t))):void 0,A.shouldUseBlock&&(v=!0)}if(e.children.length>0)if(o===Ns&&(v=!0,a|=1024),i&&o!==wn&&o!==Ns){const{slots:y,hasDynamicSlots:h}=ih(e,t);f=y,h&&(a|=1024)}else if(e.children.length===1&&o!==wn){const y=e.children[0],h=y.type,b=h===5||h===8;b&&je(y,t)===0&&(a|=1),b||h===2?f=y:f=e.children}else f=e.children;a!==0&&(u=String(a),m&&m.length&&(d=ah(m))),e.codegenNode=Ln(t,o,c,f,u,d,E,!!v,!1,i,e.loc)};function lh(e,t,n=!1){let{tag:s}=e;const r=Kr(s),i=sr(e,"is");if(i)if(r||Ft("COMPILER_IS_ON_ELEMENT",t)){const c=i.type===6?i.value&&J(i.value.content,!0):i.exp;if(c)return de(t.helper(Ps),[c])}else i.type===6&&i.value.content.startsWith("vue:")&&(s=i.value.content.slice(4));const o=!r&&He(e,"is");if(o&&o.exp)return de(t.helper(Ps),[o.exp]);const l=xc(s)||t.isBuiltInComponent(s);return l?(n||t.helper(l),l):(t.helper(Ai),t.components.add(s),Bn(s,"component"))}function cf(e,t,n=e.props,s,r,i=!1){const{tag:o,loc:l,children:c}=e;let f=[];const u=[],a=[],d=c.length>0;let m=!1,E=0,v=!1,A=!1,y=!1,h=!1,b=!1,w=!1;const R=[],H=M=>{f.length&&(u.push(Ve(Wo(f),l)),f=[]),M&&u.push(M)},P=({key:M,value:F})=>{if(Pe(M)){const I=M.content,O=Vt(I);if(O&&(!s||r)&&I.toLowerCase()!=="onclick"&&I!=="onUpdate:modelValue"&&!Rt(I)&&(h=!0),O&&Rt(I)&&(w=!0),F.type===20||(F.type===4||F.type===8)&&je(F,t)>0)return;I==="ref"?v=!0:I==="class"?A=!0:I==="style"?y=!0:I!=="key"&&!R.includes(I)&&R.push(I),s&&(I==="class"||I==="style")&&!R.includes(I)&&R.push(I)}else b=!0};for(let M=0;M0&&f.push(ue(J("ref_for",!0),J("true")))),O==="is"&&(Kr(o)||V&&V.content.startsWith("vue:")||Ft("COMPILER_IS_ON_ELEMENT",t)))continue;f.push(ue(J(O,!0,qc(I,0,O.length)),J(V?V.content:"",B,V?V.loc:I)))}else{const{name:I,arg:O,exp:V,loc:B}=F,G=I==="bind",X=I==="on";if(I==="slot"){s||t.onError(fe(40,B));continue}if(I==="once"||I==="memo"||I==="is"||G&&Ot(O,"is")&&(Kr(o)||Ft("COMPILER_IS_ON_ELEMENT",t))||X&&i)continue;if((G&&Ot(O,"key")||X&&d&&Ot(O,"vue:before-update"))&&(m=!0),G&&Ot(O,"ref")&&t.scopes.vFor>0&&f.push(ue(J("ref_for",!0),J("true"))),!O&&(G||X)){if(b=!0,V)if(G){if(H(),Ft("COMPILER_V_BIND_OBJECT_ORDER",t)){u.unshift(V);continue}u.push(V)}else H({type:14,loc:B,callee:t.helper(Di),arguments:s?[V]:[V,"true"]});else t.onError(fe(G?34:35,B));continue}const le=t.directiveTransforms[I];if(le){const{props:ee,needRuntime:Ke}=le(F,e,t);!i&&ee.forEach(P),X&&O&&!Pe(O)?H(Ve(ee,l)):f.push(...ee),Ke&&(a.push(F),gt(Ke)&&lf.set(F,Ke))}else Kf(I)||(a.push(F),d&&(m=!0))}}let _;if(u.length?(H(),u.length>1?_=de(t.helper(Os),u,l):_=u[0]):f.length&&(_=Ve(Wo(f),l)),b?E|=16:(A&&!s&&(E|=2),y&&!s&&(E|=4),R.length&&(E|=8),h&&(E|=32)),!m&&(E===0||E===32)&&(v||w||a.length>0)&&(E|=512),!t.inSSR&&_)switch(_.type){case 15:let M=-1,F=-1,I=!1;for(let B=0;B<_.properties.length;B++){const G=_.properties[B].key;Pe(G)?G.content==="class"?M=B:G.content==="style"&&(F=B):G.isHandlerKey||(I=!0)}const O=_.properties[M],V=_.properties[F];I?_=de(t.helper(Fn),[_]):(O&&!Pe(O.value)&&(O.value=de(t.helper(Li),[O.value])),V&&(y||V.value.type===4&&V.value.content.trim()[0]==="["||V.value.type===17)&&(V.value=de(t.helper(Bi),[V.value])));break;case 14:break;default:_=de(t.helper(Fn),[de(t.helper(qn),[_])]);break}return{props:_,directives:a,patchFlag:E,dynamicPropNames:R,shouldUseBlock:m}}function Wo(e){const t=new Map,n=[];for(let s=0;sue(o,i)),r))}return zn(n,e.loc)}function ah(e){let t="[";for(let n=0,s=e.length;n{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ph=/-(\w)/g,qo=uh(e=>e.replace(ph,(t,n)=>n?n.toUpperCase():"")),dh=(e,t)=>{if(ks(e)){const{children:n,loc:s}=e,{slotName:r,slotProps:i}=hh(e,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let l=2;i&&(o[2]=i,l=3),n.length&&(o[3]=ln([],n,!1,!1,s),l=4),t.scopeId&&!t.slotted&&(l=5),o.splice(l),e.codegenNode=de(t.helper(jc),o,s)}};function hh(e,t){let n='"default"',s;const r=[];for(let i=0;i0){const{props:i,directives:o}=cf(e,t,r,!1,!1);s=i,o.length&&t.onError(fe(36,o[0].loc))}return{slotName:n,slotProps:s}}const gh=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,ff=(e,t,n,s)=>{const{loc:r,modifiers:i,arg:o}=e;!e.exp&&!i.length&&n.onError(fe(35,r));let l;if(o.type===4)if(o.isStatic){let a=o.content;a.startsWith("vue:")&&(a=`vnode-${a.slice(4)}`);const d=t.tagType!==0||a.startsWith("vnode")||!/[A-Z]/.test(a)?Xt(me(a)):`on:${a}`;l=J(d,!0,o.loc)}else l=ze([`${n.helperString($r)}(`,o,")"]);else l=o,l.children.unshift(`${n.helperString($r)}(`),l.children.push(")");let c=e.exp;c&&!c.content.trim()&&(c=void 0);let f=n.cacheHandlers&&!c&&!n.inVOnce;if(c){const a=Wc(c.content),d=!(a||gh.test(c.content)),m=c.content.includes(";");(d||f&&a)&&(c=ze([`${d?"$event":"(...args)"} => ${m?"{":"("}`,c,m?"}":")"]))}let u={props:[ue(l,c||J("() => {}",!1,r))]};return s&&(u=s(u)),f&&(u.props[0].value=n.cache(u.props[0].value)),u.props.forEach(a=>a.key.isHandlerKey=!0),u},mh=(e,t,n)=>{const{exp:s,modifiers:r,loc:i}=e,o=e.arg;return o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=`${o.content} || ""`),r.includes("camel")&&(o.type===4?o.isStatic?o.content=me(o.content):o.content=`${n.helperString(Dr)}(${o.content})`:(o.children.unshift(`${n.helperString(Dr)}(`),o.children.push(")"))),n.inSSR||(r.includes("prop")&&zo(o,"."),r.includes("attr")&&zo(o,"^")),!s||s.type===4&&!s.content.trim()?(n.onError(fe(34,i)),{props:[ue(o,J("",!0,i))]}):{props:[ue(o,s)]}},zo=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(")"))},yh=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{const n=e.children;let s,r=!1;for(let i=0;ii.type===7&&!t.directiveTransforms[i.name])&&e.tag!=="template")))for(let i=0;i{if(e.type===1&&He(e,"once",!0))return Jo.has(e)||t.inVOnce?void 0:(Jo.add(e),t.inVOnce=!0,t.helper(Rs),()=>{t.inVOnce=!1;const n=t.currentNode;n.codegenNode&&(n.codegenNode=t.cache(n.codegenNode,!0))})},af=(e,t,n)=>{const{exp:s,arg:r}=e;if(!s)return n.onError(fe(41,e.loc)),as();const i=s.loc.source,o=s.type===4?s.content:i,l=n.bindingMetadata[i];if(l==="props"||l==="props-aliased")return n.onError(fe(44,s.loc)),as();const c=!1;if(!o.trim()||!Wc(o)&&!c)return n.onError(fe(42,s.loc)),as();const f=r||J("modelValue",!0),u=r?Pe(r)?`onUpdate:${me(r.content)}`:ze(['"onUpdate:" + ',r]):"onUpdate:modelValue";let a;const d=n.isTS?"($event: any)":"$event";a=ze([`${d} => ((`,s,") = $event)"]);const m=[ue(f,e.exp),ue(u,a)];if(e.modifiers.length&&t.tagType===1){const E=e.modifiers.map(A=>(Vi(A)?A:JSON.stringify(A))+": true").join(", "),v=r?Pe(r)?`${r.content}Modifiers`:ze([r,' + "Modifiers"']):"modelModifiers";m.push(ue(v,J(`{ ${E} }`,!1,e.loc,2)))}return as(m)};function as(e=[]){return{props:e}}const _h=/[\w).+\-_$\]]/,Eh=(e,t)=>{!Ft("COMPILER_FILTER",t)||(e.type===5&&Ls(e.content,t),e.type===1&&e.props.forEach(n=>{n.type===7&&n.name!=="for"&&n.exp&&Ls(n.exp,t)}))};function Ls(e,t){if(e.type===4)Yo(e,t);else for(let n=0;n=0&&(h=n.charAt(y),h===" ");y--);(!h||!_h.test(h))&&(o=!0)}}E===void 0?E=n.slice(0,m).trim():u!==0&&A();function A(){v.push(n.slice(u,m).trim()),u=m+1}if(v.length){for(m=0;m{if(e.type===1){const n=He(e,"memo");return!n||Zo.has(e)?void 0:(Zo.add(e),()=>{const s=e.codegenNode||t.currentNode.codegenNode;s&&s.type===13&&(e.tagType!==1&&ji(s,t),e.codegenNode=de(t.helper(Hi),[n.exp,ln(void 0,s),"_cache",String(t.cached++)]))})}};function Th(e){return[[bh,Yd,vh,Qd,Eh,dh,oh,sh,yh],{on:ff,bind:mh,model:af}]}function Sh(e,t={}){const n=t.onError||wi,s=t.mode==="module";t.prefixIdentifiers===!0?n(fe(47)):s&&n(fe(48));const r=!1;t.cacheHandlers&&n(fe(49)),t.scopeId&&!s&&n(fe(50));const i=z(e)?yd(e,t):e,[o,l]=Th();return Id(i,te({},t,{prefixIdentifiers:r,nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:te({},l,t.directiveTransforms||{})})),Fd(i,te({},t,{prefixIdentifiers:r}))}const wh=()=>({props:[]}),uf=Symbol(""),pf=Symbol(""),df=Symbol(""),hf=Symbol(""),xr=Symbol(""),gf=Symbol(""),mf=Symbol(""),yf=Symbol(""),bf=Symbol(""),_f=Symbol("");nd({[uf]:"vModelRadio",[pf]:"vModelCheckbox",[df]:"vModelText",[hf]:"vModelSelect",[xr]:"vModelDynamic",[gf]:"withModifiers",[mf]:"withKeys",[yf]:"vShow",[bf]:"Transition",[_f]:"TransitionGroup"});let qt;function Nh(e,t=!1){return qt||(qt=document.createElement("div")),t?(qt.innerHTML=`
`,qt.children[0].getAttribute("foo")):(qt.innerHTML=e,qt.textContent)}const Ph=Re("style,iframe,script,noscript",!0),Oh={isVoidTag:Ff,isNativeTag:e=>Mf(e)||kf(e),isPreTag:e=>e==="pre",decodeEntities:Nh,isBuiltInComponent:e=>{if(Jt(e,"Transition"))return bf;if(Jt(e,"TransitionGroup"))return _f},getNamespace(e,t){let n=t?t.ns:0;if(t&&n===2)if(t.tag==="annotation-xml"){if(e==="svg")return 1;t.props.some(s=>s.type===6&&s.name==="encoding"&&s.value!=null&&(s.value.content==="text/html"||s.value.content==="application/xhtml+xml"))&&(n=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&e!=="mglyph"&&e!=="malignmark"&&(n=0);else t&&n===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(n=0);if(n===0){if(e==="svg")return 1;if(e==="math")return 2}return n},getTextMode({tag:e,ns:t}){if(t===0){if(e==="textarea"||e==="title")return 1;if(Ph(e))return 2}return 0}},Rh=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name==="style"&&t.value&&(e.props[n]={type:7,name:"bind",arg:J("style",!0,t.loc),exp:Ah(t.value.content,t.loc),modifiers:[],loc:t.loc})})},Ah=(e,t)=>{const n=Qo(e);return J(JSON.stringify(n),!1,t,3)};function rt(e,t){return fe(e,t)}const Ih=(e,t,n)=>{const{exp:s,loc:r}=e;return s||n.onError(rt(51,r)),t.children.length&&(n.onError(rt(52,r)),t.children.length=0),{props:[ue(J("innerHTML",!0,r),s||J("",!0))]}},Mh=(e,t,n)=>{const{exp:s,loc:r}=e;return s||n.onError(rt(53,r)),t.children.length&&(n.onError(rt(54,r)),t.children.length=0),{props:[ue(J("textContent",!0),s?je(s,n)>0?s:de(n.helperString(nr),[s],r):J("",!0))]}},kh=(e,t,n)=>{const s=af(e,t,n);if(!s.props.length||t.tagType===1)return s;e.arg&&n.onError(rt(56,e.arg.loc));const{tag:r}=t,i=n.isCustomElement(r);if(r==="input"||r==="textarea"||r==="select"||i){let o=df,l=!1;if(r==="input"||i){const c=sr(t,"type");if(c){if(c.type===7)o=xr;else if(c.value)switch(c.value.content){case"radio":o=uf;break;case"checkbox":o=pf;break;case"file":l=!0,n.onError(rt(57,e.loc));break}}else ud(t)&&(o=xr)}else r==="select"&&(o=hf);l||(s.needRuntime=n.helper(o))}else n.onError(rt(55,e.loc));return s.props=s.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),s},Fh=Re("passive,once,capture"),Lh=Re("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),Bh=Re("left,right"),Ef=Re("onkeyup,onkeydown,onkeypress",!0),Dh=(e,t,n,s)=>{const r=[],i=[],o=[];for(let l=0;lPe(e)&&e.content.toLowerCase()==="onclick"?J(t,!0):e.type!==4?ze(["(",e,`) === "onClick" ? "${t}" : (`,e,")"]):e,$h=(e,t,n)=>ff(e,t,n,s=>{const{modifiers:r}=e;if(!r.length)return s;let{key:i,value:o}=s.props[0];const{keyModifiers:l,nonKeyModifiers:c,eventOptionModifiers:f}=Dh(i,r,n,e.loc);if(c.includes("right")&&(i=Xo(i,"onContextmenu")),c.includes("middle")&&(i=Xo(i,"onMouseup")),c.length&&(o=de(n.helper(gf),[o,JSON.stringify(c)])),l.length&&(!Pe(i)||Ef(i.content))&&(o=de(n.helper(mf),[o,JSON.stringify(l)])),f.length){const u=f.map(Ut).join("");i=Pe(i)?J(`${i.content}${u}`,!0):ze(["(",i,`) + "${u}"`])}return{props:[ue(i,o)]}}),Hh=(e,t,n)=>{const{exp:s,loc:r}=e;return s||n.onError(rt(59,r)),{props:[],needRuntime:n.helper(yf)}},Vh=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag==="script"||e.tag==="style")&&(t.onError(rt(61,e.loc)),t.removeNode())},jh=[Rh],Uh={cloak:wh,html:Ih,text:Mh,model:kh,on:$h,show:Hh};function xh(e,t={}){return Sh(e,te({},Oh,t,{nodeTransforms:[Vh,...jh,...t.nodeTransforms||[]],directiveTransforms:te({},Uh,t.directiveTransforms||{}),transformHoist:null}))}export{Le as $,Na as A,Qf as B,Z as C,El as D,Yr as E,Ma as F,Oa as G,_l as H,me as I,Ut as J,Vn as K,Of as L,Hn as M,Fe as N,$f as O,Xt as P,ui as Q,jn as R,ve as S,vi as T,be as U,cu as V,kt as W,Xa as X,Du as Y,Dt as Z,Da as _,qu as a,gc as a$,st as a0,Qe as a1,ap as a2,uc as a3,Uu as a4,$u as a5,_i as a6,Ql as a7,sp as a8,Xl as a9,Dl as aA,Fl as aB,jl as aC,xn as aD,Vl as aE,Hl as aF,$l as aG,Xs as aH,Ys as aI,xa as aJ,Rl as aK,Ka as aL,oi as aM,gu as aN,pu as aO,hu as aP,du as aQ,fp as aR,nn as aS,Rr as aT,wl as aU,Bt as aV,hc as aW,cp as aX,bu as aY,Hu as aZ,tp as a_,mu as aa,ju as ab,Ei as ac,ce as ad,ou as ae,pi as af,Xu as ag,Qu as ah,Zu as ai,zt as aj,Et as ak,zs as al,rc as am,dc as an,Kt as ao,ip as ap,_n as aq,mc as ar,zu as as,yt as at,np as au,ic as av,ii as aw,kl as ax,Bl as ay,Zs as az,xh as b,ep as b0,ai as b1,yc as b2,Ba as b3,En as b4,nu as b5,Al as b6,su as b7,rp as b8,Gu as b9,au as ba,op as bb,Wa as bc,Lp as bd,tr as be,Jp as bf,Yp as bg,bc as bh,Pp as bi,Fc as bj,Zp as bk,Br as bl,Rp as bm,Ap as bn,Ti as bo,Oc as bp,Si as bq,Nc as br,ws as bs,Ac as bt,qp as bu,xp as bv,j as bw,La as bx,bi as c,Kh as d,te as e,Ia as f,Xf as g,zf as h,z as i,rl as j,Gr as k,It as l,Lt as m,ge as n,Qs as o,Pn as p,ei as q,yu as r,Jf as s,si as t,js as u,Qr as v,li as w,ps as x,yl as y,wa as z}; 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/eventemitter3.dc5195d7.js b/assets/eventemitter3.dc5195d7.js new file mode 100644 index 0000000..036c893 --- /dev/null +++ b/assets/eventemitter3.dc5195d7.js @@ -0,0 +1 @@ +var w={exports:{}};(function(g){var m=Object.prototype.hasOwnProperty,u="~";function h(){}Object.create&&(h.prototype=Object.create(null),new h().__proto__||(u=!1));function b(s,t,n){this.fn=s,this.context=t,this.once=n||!1}function x(s,t,n,r,l){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new b(n,r||s,l),o=u?u+t:t;return s._events[o]?s._events[o].fn?s._events[o]=[s._events[o],c]:s._events[o].push(c):(s._events[o]=c,s._eventsCount++),s}function y(s,t){--s._eventsCount===0?s._events=new h:delete s._events[t]}function f(){this._events=new h,this._eventsCount=0}f.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)m.call(n,r)&&t.push(u?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},f.prototype.listeners=function(t){var n=u?u+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var l=0,c=r.length,o=new Array(c);l10&&(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 M(){f=(await d(()=>import("./index.224b6502.js").then(function(t){return t.c}),["assets/index.224b6502.js","assets/index.237818d0.css","assets/@fontsource.f66d05e7.css","assets/vue.72cfed44.js","assets/earcut.b6f90e68.js","assets/@vue.6a1d7e86.js","assets/lz-string.dccec454.js","assets/@ivanv.c33db252.js","assets/nanoevents.1080beb7.js","assets/vue-next-select.3d5e8343.js","assets/vue-next-select.9e6f4164.css","assets/vuedraggable.a52097e2.js","assets/sortablejs.740e9352.js","assets/vue-textarea-autosize.35804eaf.js","assets/vue-toastification.42f47de1.js","assets/vue-toastification.4b5f8ac8.css","assets/@pixi.94823b24.js","assets/ismobilejs.5c6954b9.js","assets/eventemitter3.dc5195d7.js","assets/url.68c785f7.js","assets/querystring.d4befb87.js"])).hasWon,c(f,t=>{t&&u.emit("gameWon")}),p.unthrottled?requestAnimationFrame(a):n=setInterval(a,50)}export{M as startGameLoop}; diff --git a/assets/index.224b6502.js b/assets/index.224b6502.js new file mode 100644 index 0000000..7244f8e --- /dev/null +++ b/assets/index.224b6502.js @@ -0,0 +1,20 @@ +/* empty css */import"./vue.72cfed44.js";import{u as $t,H as l,af as A,x as V,o as b,a5 as S,r as Ye,bv as Rt,K as re,aw as tt,a3 as P,aD as Mt,a6 as v,O as G,U,aN as We,a4 as F,M as ee,ac as M,ad as m,w as x,aL as ze,aJ as Ge,n as ye,y as fn,b4 as je,aH as hr,A as ke,b5 as De,at as br,aK as Xt,F as ue,c as D,ba as mn,av as Ue,bt as ci,T as Mn,Y as di,l as fi,bw as Je,aC as mi,aO as ve,aQ as ie,D as nt,bo as pi,bs as yr,aq as ln,bx as gi,L as vi,az as hi,C as ir,bf as bi}from"./@vue.6a1d7e86.js";import{L as et}from"./lz-string.dccec454.js";import{_ as K,C as yi}from"./@ivanv.c33db252.js";import{c as _r}from"./nanoevents.1080beb7.js";import{Y as _i}from"./vue-next-select.3d5e8343.js";import{D as Ci}from"./vuedraggable.a52097e2.js";import{p as wi}from"./vue-textarea-autosize.35804eaf.js";import{s as ki,u as Cr}from"./vue-toastification.42f47de1.js";import{A as wr,T as Ni,R as Si,B as Ii,u as $i,E as sr}from"./@pixi.94823b24.js";import"./earcut.b6f90e68.js";import"./sortablejs.740e9352.js";import"./ismobilejs.5c6954b9.js";import"./eventemitter3.dc5195d7.js";import"./url.68c785f7.js";import"./querystring.d4befb87.js";const Mi=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerpolicy&&(s.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?s.credentials="include":i.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}};Mi();const Ti="modulepreload",or={},Pi="./",At=function(t,n){return!n||n.length===0?t():Promise.all(n.map(r=>{if(r=`${Pi}${r}`,r in or)return;or[r]=!0;const i=r.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${r}"]${s}`))return;const o=document.createElement("link");if(o.rel=i?"stylesheet":Ti,i||(o.as="script",o.crossOrigin=""),o.href=r,document.head.appendChild(o),i)return new Promise((a,c)=>{o.addEventListener("load",a),o.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${r}`)))})})).then(()=>t())},Oi="./projInfo-schema.json",Fi="Profectus Demo",Ei="A demo project made in Profectus",qi="profectus-demo",Vi="",Di="",Ri="",Ai="0.0",Bi="Initial Commit",Li=!0,xi=!1,ji=2,Ui=!0,zi=null,Gi="Logo.png",Hi=["main","c"],Wi=3600,Ki=1,Yi=!0,Ji="base64";var te={$schema:Oi,title:Fi,description:Ei,id:qi,author:Vi,discordName:Di,discordLink:Ri,versionNumber:Ai,versionTitle:Bi,allowGoBack:Li,defaultShowSmall:xi,defaultDecimalsShown:ji,useHeader:Ui,banner:zi,logo:Gi,initialTabs:Hi,maxTickLength:Wi,offlineLimit:Ki,enablePausing:Yi,exportEncoding:Ji};const Zi=$t({id:"",devSpeed:null,name:"",tabs:[],time:-1,autosave:!0,offlineProd:!0,offlineTime:null,timePlayed:0,keepGoing:!1,modID:"",modVersion:"",layers:{}});var R=window.player=Zi;function Tn(e){return JSON.stringify(e,(t,n)=>l(n))}const Xi=["onClick"],Qi=A({__name:"FeedbackButton",props:{left:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=V(!1),r=V(null);function i(){t("click"),r.value&&clearTimeout(r.value),n.value=!1,tt(()=>{n.value=!0,r.value=setTimeout(()=>n.value=!1,500)})}return(s,o)=>(b(),S("button",{onClick:Rt(i,["stop"]),class:re(["feedback",{activated:n.value,left:e.left}])},[Ye(s.$slots,"default",{},void 0,!0)],10,Xi))}});var Pn=K(Qi,[["__scopeId","data-v-01a1b95c"]]);const pn=e=>(ze("data-v-ac351c02"),e=e(),Ge(),e),es={class:"error"},ts={class:"error-title"},ns={class:"error-details",style:{"margin-top":"-10px"}},rs={key:0},is={class:"instructions"},ss=["href"],os=pn(()=>v("span",{class:"material-icons",style:{"font-size":"16px"}},"content_paste",-1)),as=pn(()=>v("span",{style:{"margin-left":"8px","font-size":"medium"}},"Copy Save",-1)),ls=pn(()=>v("br",null,null,-1)),us={key:0,style:{"margin-top":"20px"}},cs=pn(()=>v("h3",null,"Other errors",-1)),ds=[cs],fs={class:"error-details"},ms={key:0,style:{"margin-top":"10px"}},ps={key:1,style:{"margin-top":"10px"}},gs=A({__name:"Error",props:{errors:null},setup(e){const t=e,n=P(()=>t.errors[0]),r=P(()=>t.errors.map(o=>o.stack==null?[]:o.stack.split(` +`))),i=P(()=>t.errors.map(o=>o.cause==null?[]:(typeof o.cause=="string"?o.cause:JSON.stringify(o.cause)).split(` +`)));function s(){let o=Tn(R);switch(te.exportEncoding){default:console.warn(`Unknown save encoding: ${te.exportEncoding}. Defaulting to lz`);case"lz":o=et.compressToUTF16(o);break;case"base64":o=btoa(unescape(encodeURIComponent(o)));break;case"plain":break}console.log(o);const a=document.createElement("textarea");a.value=o,document.body.appendChild(a),a.select(),a.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(a)}return Mt(()=>{R.autosave=!1,R.devSpeed=0}),(o,a)=>(b(),S("div",es,[v("h1",ts,G(l(n).name)+": "+G(l(n).message),1),v("div",ns,[l(n).cause?(b(),S("div",rs,[(b(!0),S(U,null,We(l(i)[0],c=>(b(),S("div",{key:c},G(c),1))),128))])):F("",!0),l(n).stack?(b(),S("div",{key:1,style:ee(l(n).cause?"margin-top: 10px":"")},[(b(!0),S(U,null,We(l(r)[0],c=>(b(),S("div",{key:c},G(c),1))),128))],4)):F("",!0)]),v("div",is,[M(" Check the console for more details, and consider sharing it with the developers on "),v("a",{href:l(te).discordLink||"https://discord.gg/yJ4fjnjU54",class:"discord-link"},"discord",8,ss),M("! "),m(Pn,{onClick:s,class:"button",style:{display:"inline-flex"}},{default:x(()=>[os,as]),_:1}),ls,e.errors.length>1?(b(),S("div",us,ds)):F("",!0),(b(!0),S(U,null,We(e.errors.slice(1),(c,d)=>(b(),S("div",{key:d,style:{"margin-top":"20px"}},[v("details",fs,[v("summary",null,G(c.name)+": "+G(c.message),1),c.cause?(b(),S("div",ms,[(b(!0),S(U,null,We(l(i)[d+1],g=>(b(),S("div",{key:g},G(g),1))),128))])):F("",!0),c.stack?(b(),S("div",ps,[(b(!0),S(U,null,We(l(r)[d+1],g=>(b(),S("div",{key:g},G(g),1))),128))])):F("",!0)])]))),128))])]))}});var kr=K(gs,[["__scopeId","data-v-ac351c02"]]);class vs{constructor(t){this.map=new Map,this.first=void 0,this.last=void 0,this.maxSize=t}get size(){return this.map.size}get(t){const n=this.map.get(t);if(n!==void 0)return n!==this.first&&(n===this.last?(this.last=n.prev,this.last.next=void 0):(n.prev.next=n.next,n.next.prev=n.prev),n.next=this.first,this.first.prev=n,this.first=n),n.value}set(t,n){if(this.maxSize<1)return;if(this.map.has(t))throw new Error("Cannot update existing keys in the cache");const r=new hs(t,n);for(this.first===void 0?(this.first=r,this.last=r):(r.next=this.first,this.first.prev=r,this.first=r),this.map.set(t,r);this.map.size>this.maxSize;){const i=this.last;this.map.delete(i.key),this.last=i.prev,this.last.next=void 0}}}class hs{constructor(t,n){this.next=void 0,this.prev=void 0,this.key=t,this.value=n}}const _n=17,bs=9e15,ys=Math.log10(9e15),_s=1/9e15,Cs=308,ws=-324,ar=5,ks=(1<<10)-1,Ns=function(){const e=[];for(let n=ws+1;n<=Cs;n++)e.push(Number("1e"+n));const t=323;return function(n){return e[n+t]}}(),mt=[2,Math.E,3,4,5,6,7,8,9,10],Ss=[[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 C=function(t){return u.fromValue_noAlloc(t)},z=function(e,t,n){return u.fromComponents(e,t,n)},Y=function(t,n,r){return u.fromComponents_noNormalize(t,n,r)};const st=function(t,n){const r=n+1,i=Math.ceil(Math.log10(Math.abs(t))),s=Math.round(t*Math.pow(10,r-i))*Math.pow(10,i-r);return parseFloat(s.toFixed(Math.max(r-i,0)))},Cn=function(e){return Math.sign(e)*Math.log10(Math.abs(e))},$s=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 r=e*e;let i=e;return n=n+1/(12*i),i=i*r,n=n+1/(360*i),i=i*r,n=n+1/(1260*i),i=i*r,n=n+1/(1680*i),i=i*r,n=n+1/(1188*i),i=i*r,n=n+691/(360360*i),i=i*r,n=n+7/(1092*i),i=i*r,n=n+3617/(122400*i),Math.exp(n)/t},Nr=.5671432904097838,lr=function(e,t=1e-10){let n,r;if(!Number.isFinite(e)||e===0)return e;if(e===1)return Nr;e<10?n=0:n=Math.log(e)-Math.log(Math.log(e));for(let i=0;i<100;++i){if(r=(e*Math.exp(-n)+n*n)/(n+1),Math.abs(r-n).5?1:-1;if(Math.random()*20<1)return Y(t,0,1);const n=Math.floor(Math.random()*(e+1));let r=n===0?Math.random()*616-308:Math.random()*16;Math.random()>.9&&(r=Math.trunc(r));let i=Math.pow(10,r);return Math.random()>.9&&(i=Math.trunc(i)),z(t,n,i)}static affordGeometricSeries_core(e,t,n,r){const i=t.mul(n.pow(r));return h.floor(e.div(i).mul(n.sub(1)).add(1).log10().div(n.log10()))}static sumGeometricSeries_core(e,t,n,r){return t.mul(n.pow(r)).mul(h.sub(1,n.pow(e))).div(h.sub(1,n))}static affordArithmeticSeries_core(e,t,n,r){const s=t.add(r.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,r){const i=t.add(r.mul(n));return e.div(2).mul(i.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<_s)return this.layer+=1,this.mag=Math.log10(this.mag),this;let e=Math.abs(this.mag),t=Math.sign(this.mag);if(e>=bs)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=h.fromStringCache.get(t);if(n!==void 0)return this.fromDecimal(n);e=e.replace(",","");const r=e.split("^^^");if(r.length===2){const N=parseFloat(r[0]),_=parseFloat(r[1]),E=r[1].split(";");let q=1;if(E.length===2&&(q=parseFloat(E[1]),isFinite(q)||(q=1)),isFinite(N)&&isFinite(_)){const I=h.pentate(N,_,q);return this.sign=I.sign,this.layer=I.layer,this.mag=I.mag,h.fromStringCache.maxSize>=1&&h.fromStringCache.set(t,h.fromDecimal(this)),this}}const i=e.split("^^");if(i.length===2){const N=parseFloat(i[0]),_=parseFloat(i[1]),E=i[1].split(";");let q=1;if(E.length===2&&(q=parseFloat(E[1]),isFinite(q)||(q=1)),isFinite(N)&&isFinite(_)){const I=h.tetrate(N,_,q);return this.sign=I.sign,this.layer=I.layer,this.mag=I.mag,h.fromStringCache.maxSize>=1&&h.fromStringCache.set(t,h.fromDecimal(this)),this}}const s=e.split("^");if(s.length===2){const N=parseFloat(s[0]),_=parseFloat(s[1]);if(isFinite(N)&&isFinite(_)){const E=h.pow(N,_);return this.sign=E.sign,this.layer=E.layer,this.mag=E.mag,h.fromStringCache.maxSize>=1&&h.fromStringCache.set(t,h.fromDecimal(this)),this}}e=e.trim().toLowerCase();let o,a,c=e.split("pt");if(c.length===2){o=10,a=parseFloat(c[0]),c[1]=c[1].replace("(",""),c[1]=c[1].replace(")","");let N=parseFloat(c[1]);if(isFinite(N)||(N=1),isFinite(o)&&isFinite(a)){const _=h.tetrate(o,a,N);return this.sign=_.sign,this.layer=_.layer,this.mag=_.mag,h.fromStringCache.maxSize>=1&&h.fromStringCache.set(t,h.fromDecimal(this)),this}}if(c=e.split("p"),c.length===2){o=10,a=parseFloat(c[0]),c[1]=c[1].replace("(",""),c[1]=c[1].replace(")","");let N=parseFloat(c[1]);if(isFinite(N)||(N=1),isFinite(o)&&isFinite(a)){const _=h.tetrate(o,a,N);return this.sign=_.sign,this.layer=_.layer,this.mag=_.mag,h.fromStringCache.maxSize>=1&&h.fromStringCache.set(t,h.fromDecimal(this)),this}}const d=e.split("e"),g=d.length-1;if(g===0){const N=parseFloat(e);if(isFinite(N))return this.fromNumber(N),h.fromStringCache.size>=1&&h.fromStringCache.set(t,h.fromDecimal(this)),this}else if(g===1){const N=parseFloat(e);if(isFinite(N)&&N!==0)return this.fromNumber(N),h.fromStringCache.maxSize>=1&&h.fromStringCache.set(t,h.fromDecimal(this)),this}const p=e.split("e^");if(p.length===2){this.sign=1,p[0].charAt(0)=="-"&&(this.sign=-1);let N="";for(let _=0;_=43&&E<=57||E===101)N+=p[1].charAt(_);else return this.layer=parseFloat(N),this.mag=parseFloat(p[1].substr(_+1)),this.normalize(),h.fromStringCache.maxSize>=1&&h.fromStringCache.set(t,h.fromDecimal(this)),this}}if(g<1)return this.sign=0,this.layer=0,this.mag=0,h.fromStringCache.maxSize>=1&&h.fromStringCache.set(t,h.fromDecimal(this)),this;const y=parseFloat(d[0]);if(y===0)return this.sign=0,this.layer=0,this.mag=0,h.fromStringCache.maxSize>=1&&h.fromStringCache.set(t,h.fromDecimal(this)),this;let w=parseFloat(d[d.length-1]);if(g>=2){const N=parseFloat(d[d.length-2]);isFinite(N)&&(w*=Math.sign(N),w+=Cn(N))}if(!isFinite(y))this.sign=d[0]==="-"?-1:1,this.layer=g,this.mag=w;else if(g===1)this.sign=Math.sign(y),this.layer=1,this.mag=w+Math.log10(Math.abs(y));else if(this.sign=Math.sign(y),this.layer=g,g===2){const N=h.mul(z(1,2,w),C(y));return this.sign=N.sign,this.layer=N.layer,this.mag=N.mag,h.fromStringCache.maxSize>=1&&h.fromStringCache.set(t,h.fromDecimal(this)),this}else this.mag=w;return this.normalize(),h.fromStringCache.maxSize>=1&&h.fromStringCache.set(t,h.fromDecimal(this)),this}fromValue(e){return e instanceof h?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:st(this.m,e)}magnitudeWithDecimalPlaces(e){return isNaN(this.mag)?Number.NaN:this.mag===0?0:st(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<=ar?(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):st(this.m,e)+"e"+st(this.e,e):this.layer===1?st(this.m,e)+"e"+st(this.e,e):this.layer<=ar?(this.sign===-1?"-":"")+"e".repeat(this.layer)+st(this.mag,e):(this.sign===-1?"-":"")+"(e^"+this.layer+")"+st(this.mag,e)}abs(){return Y(this.sign===0?0:1,this.layer,this.mag)}neg(){return Y(-this.sign,this.layer,this.mag)}negate(){return this.neg()}negated(){return this.neg()}sgn(){return this.sign}round(){return this.mag<0?h.dZero:this.layer===0?z(this.sign,0,Math.round(this.mag)):this}floor(){return this.mag<0?h.dZero:this.layer===0?z(this.sign,0,Math.floor(this.mag)):this}ceil(){return this.mag<0?h.dZero:this.layer===0?z(this.sign,0,Math.ceil(this.mag)):this}trunc(){return this.mag<0?h.dZero:this.layer===0?z(this.sign,0,Math.trunc(this.mag)):this}add(e){const t=C(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 Y(0,0,0);let n,r;if(this.layer>=2||t.layer>=2)return this.maxabs(t);if(h.cmpabs(this,t)>0?(n=this,r=t):(n=t,r=this),n.layer===0&&r.layer===0)return h.fromNumber(n.sign*n.mag+r.sign*r.mag);const i=n.layer*Math.sign(n.mag),s=r.layer*Math.sign(r.mag);if(i-s>=2)return n;if(i===0&&s===-1){if(Math.abs(r.mag-Math.log10(n.mag))>_n)return n;{const o=Math.pow(10,Math.log10(n.mag)-r.mag),a=r.sign+n.sign*o;return z(Math.sign(a),1,r.mag+Math.log10(Math.abs(a)))}}if(i===1&&s===0){if(Math.abs(n.mag-Math.log10(r.mag))>_n)return n;{const o=Math.pow(10,n.mag-Math.log10(r.mag)),a=r.sign+n.sign*o;return z(Math.sign(a),1,Math.log10(r.mag)+Math.log10(Math.abs(a)))}}if(Math.abs(n.mag-r.mag)>_n)return n;{const o=Math.pow(10,n.mag-r.mag),a=r.sign+n.sign*o;return z(Math.sign(a),1,r.mag+Math.log10(Math.abs(a)))}}plus(e){return this.add(e)}sub(e){return this.add(C(e).neg())}subtract(e){return this.sub(e)}minus(e){return this.sub(e)}mul(e){const t=C(e);if(!Number.isFinite(this.layer))return this;if(!Number.isFinite(t.layer))return t;if(this.sign===0||t.sign===0)return Y(0,0,0);if(this.layer===t.layer&&this.mag===-t.mag)return Y(this.sign*t.sign,0,1);let n,r;if(this.layer>t.layer||this.layer==t.layer&&Math.abs(this.mag)>Math.abs(t.mag)?(n=this,r=t):(n=t,r=this),n.layer===0&&r.layer===0)return h.fromNumber(n.sign*r.sign*n.mag*r.mag);if(n.layer>=3||n.layer-r.layer>=2)return z(n.sign*r.sign,n.layer,n.mag);if(n.layer===1&&r.layer===0)return z(n.sign*r.sign,1,n.mag+Math.log10(r.mag));if(n.layer===1&&r.layer===1)return z(n.sign*r.sign,1,n.mag+r.mag);if(n.layer===2&&r.layer===1){const i=z(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(z(Math.sign(r.mag),r.layer-1,Math.abs(r.mag)));return z(n.sign*r.sign,i.layer+1,i.sign*i.mag)}if(n.layer===2&&r.layer===2){const i=z(Math.sign(n.mag),n.layer-1,Math.abs(n.mag)).add(z(Math.sign(r.mag),r.layer-1,Math.abs(r.mag)));return z(n.sign*r.sign,i.layer+1,i.sign*i.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=C(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?h.dNaN:this.layer===0?z(this.sign,0,1/this.mag):z(this.sign,this.layer,-this.mag)}reciprocal(){return this.recip()}reciprocate(){return this.recip()}cmp(e){const t=C(e);return this.sign>t.sign?1:this.sign0?this.layer:-this.layer,r=t.mag>0?t.layer:-t.layer;return n>r?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=C(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=C(e);if(t==null&&(t=1e-7),this.sign!==n.sign||Math.abs(this.layer-n.layer)>1)return!1;let r=this.mag,i=n.mag;return this.layer>n.layer&&(i=Cn(i)),this.layer0?z(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):z(1,0,Math.log10(this.mag))}log10(){return this.sign<=0?h.dNaN:this.layer>0?z(Math.sign(this.mag),this.layer-1,Math.abs(this.mag)):z(this.sign,0,Math.log10(this.mag))}log(e){return e=C(e),this.sign<=0||e.sign<=0||e.sign===1&&e.layer===0&&e.mag===1?h.dNaN:this.layer===0&&e.layer===0?z(this.sign,0,Math.log(this.mag)/Math.log(e.mag)):h.div(this.log10(),e.log10())}log2(){return this.sign<=0?h.dNaN:this.layer===0?z(this.sign,0,Math.log2(this.mag)):this.layer===1?z(Math.sign(this.mag),0,Math.abs(this.mag)*3.321928094887362):this.layer===2?z(Math.sign(this.mag),1,Math.abs(this.mag)+.5213902276543247):z(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}ln(){return this.sign<=0?h.dNaN:this.layer===0?z(this.sign,0,Math.log(this.mag)):this.layer===1?z(Math.sign(this.mag),0,Math.abs(this.mag)*2.302585092994046):this.layer===2?z(Math.sign(this.mag),1,Math.abs(this.mag)+.36221568869946325):z(Math.sign(this.mag),this.layer-1,Math.abs(this.mag))}logarithm(e){return this.log(e)}pow(e){const t=C(e),n=this,r=t;if(n.sign===0)return r.eq(0)?Y(1,0,1):n;if(n.sign===1&&n.layer===0&&n.mag===1)return n;if(r.sign===0)return Y(1,0,1);if(r.sign===1&&r.layer===0&&r.mag===1)return n;const i=n.absLog10().mul(r).pow10();return this.sign===-1?Math.abs(r.toNumber()%2)%2===1?i.neg():Math.abs(r.toNumber()%2)%2===0?i:h.dNaN:i}pow10(){if(!Number.isFinite(this.layer)||!Number.isFinite(this.mag))return h.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 z(1,0,t);if(e.sign===0)return h.dOne;e=Y(e.sign,e.layer+1,Math.log10(e.mag))}return e.sign>0&&e.mag>=0?z(e.sign,e.layer+1,e.mag):e.sign<0&&e.mag>=0?z(-e.sign,e.layer+1,-e.mag):h.dOne}pow_base(e){return C(e).pow(this)}root(e){const t=C(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?h.exp(h.mul(this,h.ln(this).sub(1))):h.exp(this)}gamma(){if(this.mag<0)return this.recip();if(this.layer===0){if(this.lt(Y(1,0,24)))return h.fromNumber($s(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 r=e,i=12*r,s=1/i,o=t+s;if(o===t||(t=o,r=r*n,i=360*r,s=1/i,o=t-s,o===t))return h.exp(t);t=o,r=r*n,i=1260*r;let a=1/i;return t=t+a,r=r*n,i=1680*r,a=1/i,t=t-a,h.exp(t)}else return this.layer===1?h.exp(h.mul(this,h.ln(this).sub(1))):h.exp(this)}lngamma(){return this.gamma().ln()}exp(){return this.mag<0?h.dOne:this.layer===0&&this.mag<=709.7?h.fromNumber(Math.exp(this.sign*this.mag)):this.layer===0?z(1,1,this.sign*Math.log10(Math.E)*this.mag):this.layer===1?z(1,2,this.sign*(Math.log10(.4342944819032518)+this.mag)):z(1,this.layer+1,this.sign*this.mag)}sqr(){return this.pow(2)}sqrt(){if(this.layer===0)return h.fromNumber(Math.sqrt(this.sign*this.mag));if(this.layer===1)return z(1,2,Math.log10(this.mag)-.3010299956639812);{const e=h.div(Y(this.sign,this.layer-1,this.mag),Y(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=Y(1,0,1)){if(e===1)return h.pow(this,t);if(e===0)return new h(t);if(this.eq(h.dOne))return h.dOne;if(this.eq(-1))return h.pow(this,t);if(e===Number.POSITIVE_INFINITY){const i=this.toNumber();if(i<=1.444667861009766&&i>=.06598803584531254){if(i>1.444667861009099)return h.fromNumber(Math.E);const s=h.ln(this).neg();return s.lambertw().div(s)}else return i>1.444667861009766?h.fromNumber(Number.POSITIVE_INFINITY):h.dNaN}if(this.eq(h.dZero)){let i=Math.abs((e+1)%2);return i>1&&(i=2-i),h.fromNumber(i)}if(e<0)return h.iteratedlog(t,this,-e);t=C(t);const n=e;e=Math.trunc(e);const r=n-e;if(this.gt(h.dZero)&&this.lte(1.444667861009766)){e=Math.min(1e4,e);for(let i=0;i3)return Y(t.sign,t.layer+(e-i-1),t.mag);if(i>1e4)return t}return t}iteratedexp(e=2,t=Y(1,0,1)){return this.tetrate(e,t)}iteratedlog(e=10,t=1){if(t<0)return h.tetrate(e,-t,this);e=C(e);let n=h.fromDecimal(this);const r=t;t=Math.trunc(t);const i=r-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 i>0&&i<1&&(e.eq(10)?n=n.layeradd10(-i):n=n.layeradd(-i,e)),n}slog(e=10,t=100){let n=.001,r=!1,i=!1,s=this.slog_internal(e).toNumber();for(let o=1;o1&&i!=c&&(r=!0),i=c,r?n/=2:n*=2,n=Math.abs(n)*(c?-1:1),s+=n,n===0)break}return h.fromNumber(s)}slog_internal(e=10){if(e=C(e),e.lte(h.dZero)||e.eq(h.dOne))return h.dNaN;if(e.lt(h.dOne))return this.eq(h.dOne)?h.dZero:this.eq(h.dZero)?h.dNegOne:h.dNaN;if(this.mag<0||this.eq(h.dZero))return h.dNegOne;let t=0,n=h.fromDecimal(this);if(n.layer-e.layer>3){const r=n.layer-e.layer-3;t+=r,n.layer-=r}for(let r=0;r<100;++r)if(n.lt(h.dZero))n=h.pow(e,n),t-=1;else{if(n.lte(h.dOne))return h.fromNumber(t+h.slog_critical(e.toNumber(),n.toNumber()));t+=1,n=h.log(n,e)}return h.fromNumber(t)}static slog_critical(e,t){return e>10?t-1:h.critical_section(e,t,Is)}static tetrate_critical(e,t){return h.critical_section(e,t,Ss)}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 r=0,i=0;for(let o=0;oe){const a=(e-mt[o])/(mt[o+1]-mt[o]);r=n[o][Math.floor(t)]*(1-a)+n[o+1][Math.floor(t)]*a,i=n[o][Math.ceil(t)]*(1-a)+n[o+1][Math.ceil(t)]*a;break}const s=t-Math.floor(t);return r<=0||i<=0?r*(1-s)+i*s:Math.pow(e,Math.log(r)/Math.log(e)*(1-s)+Math.log(i)/Math.log(e)*s)}layeradd10(e){e=h.fromValue_noAlloc(e).toNumber();const t=h.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 r=0;r<100;++r){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 r=this.slog(t).toNumber()+e;return r>=0?h.tetrate(t,r):Number.isFinite(r)?r>=-1?h.log(h.tetrate(t,r+1),t):h.log(h.log(h.tetrate(t,r+2),t),t):h.dNaN}lambertw(){if(this.lt(-.3678794411710499))throw Error("lambertw is unimplemented for results less than -1, sorry!");if(this.mag<0)return h.fromNumber(lr(this.toNumber()));if(this.layer===0)return h.fromNumber(lr(this.sign*this.mag));if(this.layer===1)return ur(this);if(this.layer===2)return ur(this);if(this.layer>=3)return Y(this.sign,this.layer-1,this.mag);throw new Error("Unhandled behavior in lambertw()")}ssqrt(){if(this.sign==1&&this.layer>=3)return Y(this.sign,this.layer-1,this.mag);const e=this.ln();return e.div(e.lambertw())}pentate(e=2,t=Y(1,0,1)){t=C(t);const n=e;e=Math.trunc(e);const r=n-e;r!==0&&(t.eq(h.dOne)?(++e,t=h.fromNumber(r)):this.eq(10)?t=t.layeradd10(r):t=t.layeradd(r,this));for(let i=0;i10)return t}return t}sin(){return this.mag<0?this:this.layer===0?h.fromNumber(Math.sin(this.sign*this.mag)):Y(0,0,0)}cos(){return this.mag<0?h.dOne:this.layer===0?h.fromNumber(Math.cos(this.sign*this.mag)):Y(0,0,0)}tan(){return this.mag<0?this:this.layer===0?h.fromNumber(Math.tan(this.sign*this.mag)):Y(0,0,0)}asin(){return this.mag<0?this:this.layer===0?h.fromNumber(Math.asin(this.sign*this.mag)):Y(Number.NaN,Number.NaN,Number.NaN)}acos(){return this.mag<0?h.fromNumber(Math.acos(this.toNumber())):this.layer===0?h.fromNumber(Math.acos(this.sign*this.mag)):Y(Number.NaN,Number.NaN,Number.NaN)}atan(){return this.mag<0?this:this.layer===0?h.fromNumber(Math.atan(this.sign*this.mag)):h.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 h.ln(this.add(this.sqr().add(1).sqrt()))}acosh(){return h.ln(this.add(this.sqr().sub(1).sqrt()))}atanh(){return this.abs().gte(1)?Y(Number.NaN,Number.NaN,Number.NaN):h.ln(this.add(1).div(h.fromNumber(1).sub(this))).div(2)}ascensionPenalty(e){return e===0?this:this.root(h.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 u=h;u.fromStringCache=new vs(ks);u.dZero=Y(0,0,0);u.dOne=Y(1,0,1);u.dNegOne=Y(-1,0,1);u.dTwo=Y(1,0,2);u.dTen=Y(1,0,10);u.dNaN=Y(Number.NaN,Number.NaN,Number.NaN);u.dInf=Y(1,Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);u.dNegInf=Y(-1,Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);u.dNumberMax=z(1,0,Number.MAX_VALUE);u.dNumberMin=z(1,0,Number.MIN_VALUE);C=u.fromValue_noAlloc;z=u.fromComponents;Y=u.fromComponents_noNormalize;u.fromMantissaExponent;u.fromMantissaExponent_noNormalize;const Ms=new u(1);function Et(e,t,n=!0){let r=u.log10(e).floor(),i=u.div(e,u.pow(10,r));i.toStringWithDecimalPlaces(t)==="10"&&(i=Ms,r=r.add(1));const s=r.gte(1e9)?Re(r,Math.max(Math.max(t,3),te.defaultDecimalsShown)):r.gte(1e4)?un(r,0):r.toStringWithDecimalPlaces(0);return n?i.toStringWithDecimalPlaces(t)+"e"+s:"e"+s}function un(e,t){if(e==null)return"NaN";if(e=new u(e),e.mag<.001)return 0 .toFixed(t);const r=e.toStringWithDecimalPlaces(t).split(".");return r[0]=r[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"),r.length==1?r[0]:r[0]+"."+r[1]}function Sr(e,t){return e==null?"NaN":(e=new u(e),e.mag<1e-4?0 .toFixed(t):(e.mag<.1&&t!==0&&(t=Math.max(Math.max(t,e.log10().negate().ceil().toNumber()),te.defaultDecimalsShown)),e.toStringWithDecimalPlaces(t)))}const Ts=new u("eeee1000"),Ps=new u("e100000"),cr=new u("e1000"),Ir=new u(1e9),Os=new u(1e6),Fs=new u(1e3),Es=new u(.98),qs=new u(.001),$r=new u(0);function Re(e,t,n){if(t==null&&(t=te.defaultDecimalsShown),n=n!=null?n:te.defaultShowSmall,e=new u(e),isNaN(e.sign)||isNaN(e.layer)||isNaN(e.mag))return"NaN";if(e.sign<0)return"-"+Re(e.neg(),t);if(e.mag===Number.POSITIVE_INFINITY)return"Infinity";if(e.gte(Ts)){const r=e.slog();return r.gte(Os)?"F"+Re(r.floor()):u.pow(10,r.sub(r.floor())).toStringWithDecimalPlaces(3)+"F"+un(r.floor(),0)}else{if(e.gte(Ps))return Et(e,0,!1);if(e.gte(cr))return Et(e,0);if(e.gte(Ir))return Et(e,t);if(e.gte(Fs))return un(e,0);if(e.gte(qs)||!n)return Sr(e,t);if(e.eq($r))return 0 .toFixed(t)}return e=Tr(e),e.lt(cr)?Et(e,t).replace(/([^(?:e|F)]*)$/,"-$1"):Re(e,t)+"\u207B\xB9"}function qe(e){return e=new u(e),e.sign<0?"-"+qe(e.neg()):e.gte(Ir)||e.lte(Es)&&!e.eq($r)?Re(e):Re(e,0)}function Mr(e){return u.lt(e,0)?"-"+Mr(u.neg(e)):u.gt(e,2**51)?Re(u.div(e,31536e3))+"y":(e=new u(e).toNumber(),e<60?Re(e)+"s":e<3600?qe(Math.floor(e/60))+"m "+Re(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 Vs(e,t,n){e=new u(e);let r=e.toStringWithDecimalPlaces(t);return new u(r).gte(n)&&(r=u.sub(n,Math.pow(.1,t)).toStringWithDecimalPlaces(t)),r}function Ds(e,t){return Re(e,t,!0)}function Tr(e){let t=u.log10(e).ceil();const n=u.div(e,u.pow(10,t));return t=t.neg(),e=new u(10).pow(t).times(n),e}var Rs=Object.freeze(Object.defineProperty({__proto__:null,default:u,exponentialFormat:Et,commaFormat:un,regularFormat:Sr,format:Re,formatWhole:qe,formatTime:Mr,toPlaces:Vs,formatSmall:Ds,invertOOM:Tr},Symbol.toStringTag,{value:"Module"}));const{exponentialFormat:As,commaFormat:Bs,regularFormat:Ls,format:Ne,formatWhole:Te,formatTime:gn,toPlaces:xs,formatSmall:Bt,invertOOM:js}=Rs;window.Decimal=u;window.exponentialFormat=As;window.commaFormat=Bs;window.regularFormat=Ls;window.format=Ne;window.formatWhole=Te;window.formatTime=gn;window.toPlaces=xs;window.formatSmall=Bt;window.invertOOM=js;function On(e){let t=e.replace(/([A-Z])/g," $1");return t=t.charAt(0).toUpperCase()+t.slice(1),t}function Us(e){return(e[0]+e.slice(1).replace(/[A-Z]/g,t=>`-${t}`)).toLowerCase()}function gt(e){return typeof e=="function"}var J=(e=>(e.Up="Up",e.Down="Down",e.Left="Left",e.Right="Right",e.Default="Up",e))(J||{});const Lt=Symbol("DoNotCache");function k(e,t){const n=e[t];gt(n)&&n.length===0&&!n[Lt]?e[t]=P(n.bind(e)):gt(n)&&(e[t]=n.bind(e),e[t][Lt]=!0)}function Fe(e){return gt(e)&&!e[Lt]&&(e=P(e)),e}const Ce=Symbol("Component"),we=Symbol("GatherProps");let zs=0;function Pe(e="feature-"){return e+zs++}var Z=(e=>(e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.None=2]="None",e))(Z||{});function Se(e){const t=l(e);return t!==2&&t!==!1}function He(e){return l(e)===1}function L(e){return e[Lt]=!0,e}function W(e,t,n){e[t]===void 0&&n!=null&&(e[t]=n)}function Pr(e,...t){const n=[],r=i=>{Object.keys(i).forEach(s=>{const o=i[s];o!=null&&typeof o=="object"&&(t.includes(o.type)?n.push(o):!(o instanceof u)&&!ye(o)&&r(o))})};return r(e),n}var fe=window.state=fn({lastTenTicks:[],hasNaN:!1,NaNPath:[],errors:$t([])});const pt={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 Fn=(e=>(e.Classic="classic",e.Paper="paper",e.Nordic="nordic",e.Aqua="aqua",e))(Fn||{}),rt={classic:pt,paper:{...pt,variables:{...pt.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:{...pt,variables:{...pt.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:{...pt,variables:{...pt.variables,"--foreground":"#bfdfff","--background":"#001f3f","--tooltip-background":"rgba(0, 15, 31, 0.75)","--raised-background":"#001f3f","--points":"#dfefff","--locked":"#c4a7b3","--outline":"#bfdfff"}}};const he=_r();"fonts"in document&&(document.fonts.onloadingdone=()=>he.emit("fontsLoaded"));var Gs=Object.freeze(Object.defineProperty({__proto__:null,globalBus:he},Symbol.toStringTag,{value:"Module"}));function Or(e={}){return Object.assign({id:`${te.id}-0`,name:"Default Save",tabs:te.initialTabs.slice(),time:Date.now(),autosave:!0,offlineProd:!0,offlineTime:0,timePlayed:0,keepGoing:!1,modID:te.id,modVersion:te.versionNumber,layers:{}},e)}function Oe(e){const t=et.compressToUTF16(Tn(e!=null?e:R));return localStorage.setItem((e!=null?e:R).id,t),t}async function Hs(){Ks();try{let e=localStorage.getItem(Q.active);if(e==null){await vt(kt());return}if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=et.decompressFromUTF16(e);else throw"Unable to determine save encoding";const t=JSON.parse(e);if(t.modID!==te.id){await vt(kt());return}t.id=Q.active,await vt(t)}catch(e){console.error(`Failed to load save. Falling back to new save. +`,e),await vt(kt())}}function kt(){const e=nn(),t=Or({id:e});return Oe(t),Q.saves.push(e),t}function nn(){let e,t=0;do e=`${te.id}-${t++}`;while(localStorage.getItem(e)!=null);return e}const En=V(!1);async function vt(e){console.info("Loading save",e),En.value=!0;const{layers:t,removeLayer:n,addLayer:r}=await At(()=>Promise.resolve().then(function(){return ja}),void 0),{fixOldSave:i,getInitialLayers:s}=await At(()=>Promise.resolve().then(function(){return Xd}),void 0);for(const o in t){const a=t[o];a&&n(a)}s(e).forEach(o=>r(o,e)),e=Or(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,te.offlineLimit*3600)),e.time=Date.now(),e.modVersion!==te.versionNumber&&(i(e.modVersion,e),e.modVersion=te.versionNumber),Object.assign(R,e),Q.active=R.id,he.emit("onLoad")}setInterval(()=>{R.autosave&&Oe()},1e3);window.onbeforeunload=()=>{R.autosave&&Oe()};window.save=Oe;const Ws=window.hardReset=async()=>{await vt(kt())};window.deleteLowerSaves=()=>{const e=Object.values(Q.saves).indexOf(R.id)+1;Object.values(Q.saves).slice(e).forEach(t=>localStorage.removeItem(t)),Q.saves=Q.saves.slice(0,e)};const xt=$t({active:"",saves:[],showTPS:!0,theme:Fn.Nordic,unthrottled:!1,alignUnits:!1});je(xt,e=>{const t=et.compressToUTF16(JSON.stringify(e));localStorage.setItem(te.id,t)},{deep:!0});var Q=window.settings=xt;window.hardResetSettings=()=>{const e={active:"",saves:[],showTPS:!0,theme:Fn.Nordic,alignUnits:!1};he.emit("loadSettings",e),Object.assign(xt,e),Ws()};function Ks(){try{let e=localStorage.getItem(te.id);if(e!=null&&e!==""){if(e[0]!=="{")if(e[0]==="e")e=decodeURIComponent(escape(atob(e)));else if(e[0]==="\u1BE1")e=et.decompressFromUTF16(e);else{console.warn("Unable to determine settings encoding",e);return}const t=JSON.parse(e);typeof t=="object"&&Object.assign(xt,t)}he.emit("loadSettings",xt)}catch{}}const Fr=$t([]);function Er(e){Fr.push(e)}const qr=$t([]);function Ys(e){qr.push(e)}const Js=$t([]),Zs={class:"table"},rn=A({__name:"Column",setup(e){const t=P(()=>rt[Q.theme].mergeAdjacent);return(n,r)=>(b(),S("div",Zs,[v("div",{class:re(["col",{mergeAdjacent:l(t)}])},[Ye(n.$slots,"default")],2)]))}}),Xs={class:"table"},sn=A({__name:"Row",setup(e){const t=P(()=>rt[Q.theme].mergeAdjacent);return(n,r)=>(b(),S("div",Xs,[v("div",{class:re(["row",{mergeAdjacent:l(t)}])},[Ye(n.$slots,"default")],2)]))}});function Vr(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!br(e)}function H(e,t="span"){return typeof e=="function"?A({render:e}):typeof e=="string"?e.length>0?(e=e.trim(),e.charAt(0)!=="<"&&(e=`<${t}>${e}`),A({template:e})):A({render:()=>({})}):e}function be(e){if(Ae(e))return typeof e=="function"?e():H(e);const t=e[Ce];return m(t,e[we](),null)}function Ve(...e){let t;return m(sn,null,Vr(t=e.map(be))?t:{default:()=>[t]})}function Qs(...e){let t;return m(rn,null,Vr(t=e.map(be))?t:{default:()=>[t]})}function xe(e){if(Ae(e))return typeof e=="function"?e():typeof e=="string"?m(U,null,[e]):m(e,null,null);const t=e[Ce];return m(t,e[we](),null)}function dr(e,t){return e.reduce((n,r)=>m(U,null,[n,t,r]))}function Ae(e){return typeof e=="string"?!0:typeof e=="object"?e==null?!1:"render"in e||"component"in e:typeof e=="function"&&e[Lt]===!0}function qn(e,t){const n=V(null),r=V(void 0);function i(a){n.value||(n.value=setInterval(o,250)),r.value=a}function s(){n.value&&(clearInterval(n.value),n.value=null)}function o(){t&&t.value?t.value():e&&e.value&&e.value(r.value)}return hr(s),{start:i,stop:s,handleHolding:o}}function It(e,t="div"){const n=ke();return De(()=>{n.value=H(ae(e),t)}),n}function ut(e,t="div"){const n=ke(null);return De(()=>{const r=ae(e);n.value=r==""||r==null?null:H(r,t)}),n}function ae(e){return l(l(e))}function $(...e){return e.includes(Object)||e.push(Object),e}function eo(e){return Object.keys(e).reduce((t,n)=>(t[Us(n)]=e[n],t),{})}const to=A({__name:"Context",emits:["updateNodes"],setup(e,{emit:t}){var g;const n=V({}),r=new ResizeObserver(a),i=V(null);Mt(()=>{const p=i.value;p!=null&&r.observe(p)});let s=!0,o=V((g=i.value)==null?void 0:g.getBoundingClientRect());function a(){s&&(s=!1,tt(()=>{var p;o.value=(p=i.value)==null?void 0:p.getBoundingClientRect(),Object.values(n.value).filter(y=>y).forEach(y=>y.rect=y.element.getBoundingClientRect()),t("updateNodes",n.value),s=!0}))}he.on("fontsLoaded",a);const c={attributes:!1,childList:!0,subtree:!1};Xt(Vn,(p,y)=>{const w=new MutationObserver(()=>d(p));w.observe(y,c),n.value[p]={element:y,observer:w,rect:y.getBoundingClientRect()},a()}),Xt(Dn,p=>{var y;(y=n.value[p])==null||y.observer.disconnect(),n.value[p]=void 0,a()}),Xt(Rn,n),Xt(An,o);function d(p){const y=n.value[p];y!=null&&(y.rect=y.element.getBoundingClientRect(),t("updateNodes",n.value))}return(p,y)=>(b(),S(U,null,[Ye(p.$slots,"default",{},void 0,!0),v("div",{ref_key:"resizeListener",ref:i,class:"resize-listener"},null,512)],64))}});var Dr=K(to,[["__scopeId","data-v-2b1dc1bc"]]);const no=["onPointerdown"],ro={class:"modal-wrapper"},io={class:"modal-container"},so={class:"modal-header"},oo={class:"modal-body"},ao={class:"modal-footer"},lo=v("div",{class:"modal-default-flex-grow"},null,-1),ct=A({__name:"Modal",props:{modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{expose:t,emit:n}){const i=ue(e),s=P(()=>l(i.modelValue)||a.value);function o(){n("update:modelValue",!1)}const a=V(!1),c=V(null),d=P(()=>{var g,p;return(p=(g=c.value)==null?void 0:g.nodes)!=null?p:null});return t({isOpen:s,nodes:d}),(g,p)=>(b(),D(di,{to:"#modal-root"},[m(Mn,{name:"modal",onBeforeEnter:p[0]||(p[0]=y=>a.value=!0),onAfterLeave:p[1]||(p[1]=y=>a.value=!1)},{default:x(()=>[mn(v("div",Ue({class:"modal-mask",onPointerdown:Rt(o,["self"])},g.$attrs),[v("div",ro,[v("div",io,[v("div",so,[Ye(g.$slots,"header",{shown:l(s)},()=>[M(" default header ")])]),v("div",oo,[m(Dr,{ref_key:"contextRef",ref:c},{default:x(()=>[Ye(g.$slots,"body",{shown:l(s)},()=>[M(" default body ")])]),_:3},512)]),v("div",ao,[Ye(g.$slots,"footer",{shown:l(s)},()=>[v("div",{class:"modal-default-footer"},[lo,v("button",{class:"button modal-default-button",onClick:o}," Close ")])])])])])],16,no),[[ci,e.modelValue]])]),_:3})]))}}),ot=Symbol("ProxyState");function ce(e,t={}){const n=t;let r=!1,i=!1;function s(){return r||(i&&console.error("Cyclical dependency detected. Cannot evaluate lazy proxy."),i=!0,Object.assign(n,e.call(n,n)),r=!0),n}return new Proxy(n,{get(o,a){if(a===ot)return s();const c=s()[a];return c!=null&&typeof c=="object"&&Ke in c?c[Ke]:c},set(o,a,c){return s()[a]=c,!0},has(o,a){return a===ot?!0:Reflect.has(s(),a)},ownKeys(){return Reflect.ownKeys(s())},getOwnPropertyDescriptor(o,a){return r||(Object.assign(n,e.call(n,n)),r=!0),Object.getOwnPropertyDescriptor(o,a)}})}const Rr=u.ln(10);function on(e){return e}function Ft(e,...t){const n=t.find(r=>T(r));return n==null?(console.error("Could not invert due to no input being a variable"),0):n.invert(e)}function uo(e,t){return T(t)?t.invert(u.neg(e)):(console.error("Could not invert due to no input being a variable"),0)}function co(e,t){return T(t)?t.isIntegrable()?f.neg(t.getIntegralFormula(e)):(console.error("Could not integrate due to variable not being integrable"),f.constant(0)):(console.error("Could not integrate due to no input being a variable"),f.constant(0))}function fo(e){return f.neg(e)}function mo(e,t,n){return T(t)?t.invert(u.sub(e,pe(n))):T(n)?n.invert(u.sub(e,pe(t))):(console.error("Could not invert due to no input being a variable"),0)}function po(e,t,n){var r,i;if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const s=t.getIntegralFormula(e);return f.times(n,(r=t.innermostVariable)!=null?r:0).add(s)}else if(T(n)){if(!n.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const s=n.getIntegralFormula(e);return f.times(t,(i=n.innermostVariable)!=null?i:0).add(s)}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function go(e,t,n){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const r=t.getIntegralFormula(e);return f.add(r,n)}else if(T(n)){if(!n.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const r=n.getIntegralFormula(e);return f.add(r,t)}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function vo(e,t,n){return T(t)?t.invert(u.add(e,pe(n))):T(n)?n.invert(u.sub(pe(t),e)):(console.error("Could not invert due to no input being a variable"),0)}function ho(e,t,n){var r,i;if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const s=t.getIntegralFormula(e);return f.sub(s,f.times(n,(r=t.innermostVariable)!=null?r:0))}else if(T(n)){if(!n.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const s=n.getIntegralFormula(e);return f.times(t,(i=n.innermostVariable)!=null?i:0).sub(s)}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function bo(e,t,n){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const r=t.getIntegralFormula(e);return f.sub(r,n)}else if(T(n)){if(!n.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const r=n.getIntegralFormula(e);return f.sub(r,t)}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function yo(e,t,n){return T(t)?t.invert(u.div(e,pe(n))):T(n)?n.invert(u.div(e,pe(t))):(console.error("Could not invert due to no input being a variable"),0)}function _o(e,t,n){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const r=t.getIntegralFormula(e);return f.times(r,n)}else if(T(n)){if(!n.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const r=n.getIntegralFormula(e);return f.times(r,t)}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function Co(e,t,n){return T(t)?f.div(e,n):T(n)?f.div(e,t):(console.error("Could not apply substitution due to no input being a variable"),f.constant(0))}function wo(e,t,n){return T(t)?t.invert(u.mul(e,pe(n))):T(n)?n.invert(u.div(pe(t),e)):(console.error("Could not invert due to no input being a variable"),0)}function ko(e,t,n){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const r=t.getIntegralFormula(e);return f.div(r,n)}else if(T(n)){if(!n.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const r=n.getIntegralFormula(e);return f.div(t,r)}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function No(e,t,n){return T(t)?f.mul(e,n):T(n)?f.mul(e,t):(console.error("Could not apply substitution due to no input being a variable"),f.constant(0))}function So(e,t){return T(t)?t.invert(u.recip(e)):(console.error("Could not invert due to no input being a variable"),0)}function Io(e,t){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const n=t.getIntegralFormula(e);return f.ln(n)}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function $o(e,t){return T(t)?t.invert(u.pow10(e)):(console.error("Could not invert due to no input being a variable"),0)}function Mo(e){return u.ln(e).sub(1).times(e).div(Rr)}function To(e,t){if(T(t)){const n=Rr.times(e);return t.invert(n.div(n.div(Math.E).lambertw()))}return console.error("Could not invert due to no input being a variable"),0}function Po(e,t){return T(t)?t.isIntegrable()?new f({inputs:[t.getIntegralFormula(e)],evaluate:Mo,invert:To}):(console.error("Could not integrate due to variable not being integrable"),f.constant(0)):(console.error("Could not integrate due to no input being a variable"),f.constant(0))}function Oo(e,t,n){return T(t)?t.invert(u.pow(pe(n),e)):T(n)?n.invert(u.root(pe(t),e)):(console.error("Could not invert due to no input being a variable"),0)}function Fo(e,t){return u.ln(e).sub(1).times(e).div(u.ln(t))}function Eo(e,t,n){if(T(t)){const r=u.ln(pe(n)).times(e);return t.invert(r.div(r.div(Math.E).lambertw()))}return console.error("Could not invert due to no input being a variable"),0}function qo(e,t,n){return T(t)?t.isIntegrable()?new f({inputs:[t.getIntegralFormula(e),n],evaluate:Fo,invert:Eo}):(console.error("Could not integrate due to variable not being integrable"),f.constant(0)):(console.error("Could not integrate due to no input being a variable"),f.constant(0))}function Vo(e,t){return T(t)?t.invert(u.pow(2,e)):(console.error("Could not invert due to no input being a variable"),0)}function Do(e){return u.ln(e).sub(1).times(e).div(u.ln(2))}function Ro(e,t){if(T(t)){const n=u.ln(2).times(e);return t.invert(n.div(n.div(Math.E).lambertw()))}return console.error("Could not invert due to no input being a variable"),0}function Ao(e,t){return T(t)?t.isIntegrable()?new f({inputs:[t.getIntegralFormula(e)],evaluate:Do,invert:Ro}):(console.error("Could not integrate due to variable not being integrable"),f.constant(0)):(console.error("Could not integrate due to no input being a variable"),f.constant(0))}function Bo(e,t){return T(t)?t.invert(u.exp(e)):(console.error("Could not invert due to no input being a variable"),0)}function Lo(e){return u.ln(e).sub(1).times(e)}function xo(e,t){return T(t)?t.invert(u.div(e,u.div(e,Math.E).lambertw())):(console.error("Could not invert due to no input being a variable"),0)}function jo(e,t){return T(t)?t.isIntegrable()?new f({inputs:[t.getIntegralFormula(e)],evaluate:Lo,invert:xo}):(console.error("Could not integrate due to variable not being integrable"),f.constant(0)):(console.error("Could not integrate due to no input being a variable"),f.constant(0))}function Uo(e,t,n){return T(t)?t.invert(u.root(e,pe(n))):T(n)?n.invert(u.ln(e).div(u.ln(pe(t)))):(console.error("Could not invert due to no input being a variable"),0)}function zo(e,t,n){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const r=t.getIntegralFormula(e),i=f.add(n,1);return f.pow(r,i).div(i)}else if(T(n)){if(!n.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const r=n.getIntegralFormula(e);return f.pow(t,r).div(f.ln(t))}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function Go(e,t){return T(t)?t.invert(u.root(e,10)):(console.error("Could not invert due to no input being a variable"),0)}function Ho(e,t){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const n=t.getIntegralFormula(e);return f.pow10(n).div(f.ln(10))}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function Wo(e,t,n){return T(t)?t.invert(u.ln(e).div(u.ln(pe(n)))):T(n)?n.invert(u.root(pe(t),e)):(console.error("Could not invert due to no input being a variable"),0)}function Ko(e,t,n){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const r=t.getIntegralFormula(e);return f.pow(n,r).div(f.ln(n))}else if(T(n)){if(!n.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const r=n.getIntegralFormula(e),i=f.add(t,1);return f.pow(r,i).div(i)}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function Yo(e,t,n){return T(t)?t.invert(u.root(e,u.recip(pe(n)))):T(n)?n.invert(u.ln(pe(t)).div(u.ln(e))):(console.error("Could not invert due to no input being a variable"),0)}function Jo(e,t,n){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const r=t.getIntegralFormula(e);return f.pow(r,f.recip(n).add(1)).times(n).div(f.add(n,1))}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function Zo(e,t){return T(t)?t.invert(u.ln(e)):(console.error("Could not invert due to no input being a variable"),0)}function Xo(e,t){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const n=t.getIntegralFormula(e);return f.exp(n)}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function Qo(e,t=2,n=u.fromComponents_noNormalize(1,0,1)){const r=u.minabs(t,1e308).toNumber();return u.tetrate(e,r,n)}function ea(e,t,n,r){return T(t)?t.invert(u.ssqrt(e)):(console.error("Could not invert due to no input being a variable"),0)}function ta(e,t=2,n=u.fromComponents_noNormalize(1,0,1)){const r=u.minabs(t,1e308).toNumber();return u.iteratedexp(e,r,new u(n))}function na(e,t,n,r){return T(t)?t.invert(u.iteratedlog(e,Math.E,u.minabs(1e308,pe(n)).toNumber())):(console.error("Could not invert due to no input being a variable"),0)}function ra(e,t=10,n=2){const r=u.minabs(n,1e308).toNumber();return u.iteratedlog(e,t,r)}function ia(e,t=10){const n=u.minabs(t,1e308).toNumber();return u.slog(e,n)}function sa(e,t,n){return T(t)?t.invert(u.tetrate(e,u.minabs(1e308,pe(n)).toNumber())):(console.error("Could not invert due to no input being a variable"),0)}function oa(e,t,n){const r=u.minabs(t,1e308).toNumber();return u.layeradd(e,r,n)}function aa(e,t,n,r){return T(t)?t.invert(u.layeradd(e,u.minabs(1e308,pe(n)).negate().toNumber())):(console.error("Could not invert due to no input being a variable"),0)}function la(e,t){return T(t)?t.invert(u.pow(Math.E,e).times(e)):(console.error("Could not invert due to no input being a variable"),0)}function ua(e,t){return T(t)?t.invert(u.tetrate(e,2)):(console.error("Could not invert due to no input being a variable"),0)}function ca(e,t,n){const r=u.minabs(t,1e308).toNumber();return u.pentate(e,r,n)}function da(e,t){return T(t)?t.invert(u.asin(e)):(console.error("Could not invert due to no input being a variable"),0)}function fa(e,t){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const n=t.getIntegralFormula(e);return f.cos(n).neg()}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function ma(e,t){return T(t)?t.invert(u.acos(e)):(console.error("Could not invert due to no input being a variable"),0)}function pa(e,t){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const n=t.getIntegralFormula(e);return f.sin(n)}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function ga(e,t){return T(t)?t.invert(u.atan(e)):(console.error("Could not invert due to no input being a variable"),0)}function va(e,t){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const n=t.getIntegralFormula(e);return f.cos(n).ln().neg()}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function ha(e,t){return T(t)?t.invert(u.sin(e)):(console.error("Could not invert due to no input being a variable"),0)}function ba(e,t){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const n=t.getIntegralFormula(e);return f.asin(n).times(n).add(f.sqrt(f.sub(1,f.pow(n,2))))}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function ya(e,t){return T(t)?t.invert(u.cos(e)):(console.error("Could not invert due to no input being a variable"),0)}function _a(e,t){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const n=t.getIntegralFormula(e);return f.acos(n).times(n).sub(f.sqrt(f.sub(1,f.pow(n,2))))}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function Ca(e,t){return T(t)?t.invert(u.tan(e)):(console.error("Could not invert due to no input being a variable"),0)}function wa(e,t){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const n=t.getIntegralFormula(e);return f.atan(n).times(n).sub(f.ln(f.pow(n,2).add(1)).div(2))}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function ka(e,t){return T(t)?t.invert(u.asinh(e)):(console.error("Could not invert due to no input being a variable"),0)}function Na(e,t){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const n=t.getIntegralFormula(e);return f.cosh(n)}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function Sa(e,t){return T(t)?t.invert(u.acosh(e)):(console.error("Could not invert due to no input being a variable"),0)}function Ia(e,t){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const n=t.getIntegralFormula(e);return f.sinh(n)}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function $a(e,t){return T(t)?t.invert(u.atanh(e)):(console.error("Could not invert due to no input being a variable"),0)}function Ma(e,t){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const n=t.getIntegralFormula(e);return f.cosh(n).ln()}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function Ta(e,t){return T(t)?t.invert(u.sinh(e)):(console.error("Could not invert due to no input being a variable"),0)}function Pa(e,t){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const n=t.getIntegralFormula(e);return f.asinh(n).times(n).sub(f.pow(n,2).add(1).sqrt())}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function Oa(e,t){return T(t)?t.invert(u.cosh(e)):(console.error("Could not invert due to no input being a variable"),0)}function Fa(e,t){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const n=t.getIntegralFormula(e);return f.acosh(n).times(n).sub(f.add(n,1).sqrt().times(f.sub(n,1).sqrt()))}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function Ea(e,t){return T(t)?t.invert(u.tanh(e)):(console.error("Could not invert due to no input being a variable"),0)}function qa(e,t){if(T(t)){if(!t.isIntegrable())return console.error("Could not integrate due to variable not being integrable"),f.constant(0);const n=t.getIntegralFormula(e);return f.atanh(n).times(n).add(f.sub(1,f.pow(n,2)).ln().div(2))}return console.error("Could not integrate due to no input being a variable"),f.constant(0)}function Tt(e){return(t,n)=>new f({inputs:[t,n],evaluate:e,invert:on})}function T(e){return e instanceof de&&e.hasVariable()}function pe(e,t){return e instanceof de?e.evaluate(t):l(e)}function Va(){return f.pow(this,2).div(2)}function Da(){return this}const ge=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;"inputs"in e&&(e.inputs=e.inputs.map(n=>typeof n=="object"&&Ke in n?n[Ke]:n)),"variable"in e?(typeof e.variable=="object"&&Ke in e.variable&&(e.variable=e.variable[Ke]),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:Va,internalIntegrateInner:Da,applySubstitution:on}}setupConstant({inputs:e}){return e.length!==1&&console.error("Evaluate function is required if inputs is not length 1"),{inputs:e,internalVariables:0}}setupFormula(e){var y,w;const{inputs:t,evaluate:n,invert:r,integrate:i,integrateInner:s,applySubstitution:o}=e,a=t.reduce((N,_)=>N+(_ instanceof ge?_.internalVariables:0),0),c=t.find(N=>N instanceof ge&&N.hasVariable()),d=a===1?c==null?void 0:c.innermostVariable:void 0,g=(y=c==null?void 0:c.isInvertible())!=null?y:!1,p=(w=c==null?void 0:c.isIntegrable())!=null?w:!1;return{inputs:t,internalEvaluate:n,internalInvert:g?r:void 0,internalIntegrate:p?i:void 0,internalIntegrateInner:s,applySubstitution:o,innermostVariable:d,internalVariables:a}}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,r;return(r=(n=(t=this.internalEvaluate)==null?void 0:t.call(this,...this.inputs.map(i=>pe(i,e))))!=null?n:this.hasVariable()?e:null)!=null?r:pe(this.inputs[0])}equals(e){return this.inputs.length===e.inputs.length&&this.inputs.every((t,n)=>t instanceof ge&&e.inputs[n]instanceof ge?t.equals(e.inputs[n]):!(t instanceof ge)&&!(e.inputs[n]instanceof ge)&&u.eq(l(t),l(e.inputs[n])))&&this.internalEvaluate===e.internalEvaluate&&this.internalInvert===e.internalInvert&&this.internalIntegrate===e.internalIntegrate&&this.internalVariables===e.internalVariables}static constant(e){return new f({inputs:[e]})}static variable(e){return new f({variable:e})}static step(e,t,n){const r=n(f.variable(0)),i=Fe(t);function s(a){return u.lt(a,l(i))?a:u.add(r.evaluate(u.sub(a,l(i))),l(i))}function o(a,c){return T(c)&&r.isInvertible()?(u.gt(a,l(i))&&(a=u.add(r.invert(u.sub(a,l(i))),l(i))),c.invert(a)):(console.error("Could not invert due to no input being a variable"),0)}return new f({inputs:[e],evaluate:s,invert:r.isInvertible()&&r.hasVariable()?o:void 0})}static if(e,t,n,r){const i=V(0),s=f.variable(i),o=n(s),a=r==null?void 0:r(s),c=Fe(t);function d(p){return l(c)?(i.value=p,o.evaluate()):a?(i.value=p,a.evaluate()):p}function g(p,y){return!T(y)||!o.isInvertible()||a!=null&&!a.isInvertible()?(console.error("Could not invert due to no input being a variable"),0):l(c)?y.invert(o.invert(p)):a?y.invert(a.invert(p)):y.invert(p)}return new f({inputs:[e],evaluate:d,invert:o.isInvertible()&&o.hasVariable()?g:void 0})}static conditional(e,t,n,r){return f.if(e,t,n,r)}static abs(e){return new f({inputs:[e],evaluate:u.abs})}static neg(e){return new f({inputs:[e],evaluate:u.neg,invert:uo,applySubstitution:fo,integrate:co})}static sign(e){return new f({inputs:[e],evaluate:u.sign})}static round(e){return new f({inputs:[e],evaluate:u.round,invert:Ft})}static floor(e){return new f({inputs:[e],evaluate:u.floor,invert:Ft})}static ceil(e){return new f({inputs:[e],evaluate:u.ceil,invert:Ft})}static trunc(e){return new f({inputs:[e],evaluate:u.trunc,invert:Ft})}static add(e,t){return new f({inputs:[e,t],evaluate:u.add,invert:mo,integrate:po,integrateInner:go,applySubstitution:on})}static sub(e,t){return new f({inputs:[e,t],evaluate:u.sub,invert:vo,integrate:ho,integrateInner:bo,applySubstitution:on})}static mul(e,t){return new f({inputs:[e,t],evaluate:u.mul,invert:yo,integrate:_o,applySubstitution:Co})}static div(e,t){return new f({inputs:[e,t],evaluate:u.div,invert:wo,integrate:ko,applySubstitution:No})}static recip(e){return new f({inputs:[e],evaluate:u.recip,invert:So,integrate:Io})}static clamp(e,t,n){return new f({inputs:[e,t,n],evaluate:u.clamp,invert:Ft})}static pLog10(e){return new f({inputs:[e],evaluate:u.pLog10})}static absLog10(e){return new f({inputs:[e],evaluate:u.absLog10})}static log10(e){return new f({inputs:[e],evaluate:u.log10,invert:$o,integrate:Po})}static log(e,t){return new f({inputs:[e,t],evaluate:u.log,invert:Oo,integrate:qo})}static log2(e){return new f({inputs:[e],evaluate:u.log2,invert:Vo,integrate:Ao})}static ln(e){return new f({inputs:[e],evaluate:u.ln,invert:Bo,integrate:jo})}static pow(e,t){return new f({inputs:[e,t],evaluate:u.pow,invert:Uo,integrate:zo})}static pow10(e){return new f({inputs:[e],evaluate:u.pow10,invert:Go,integrate:Ho})}static pow_base(e,t){return new f({inputs:[e,t],evaluate:u.pow_base,invert:Wo,integrate:Ko})}static root(e,t){return new f({inputs:[e,t],evaluate:u.root,invert:Yo,integrate:Jo})}static factorial(e){return new f({inputs:[e],evaluate:u.factorial})}static gamma(e){return new f({inputs:[e],evaluate:u.gamma})}static lngamma(e){return new f({inputs:[e],evaluate:u.lngamma})}static exp(e){return new f({inputs:[e],evaluate:u.exp,invert:Zo,integrate:Xo})}static sqr(e){return f.pow(e,2)}static sqrt(e){return f.root(e,2)}static cube(e){return f.pow(e,3)}static cbrt(e){return f.root(e,3)}static tetrate(e,t=2,n=u.fromComponents_noNormalize(1,0,1)){return new f({inputs:[e,t,n],evaluate:Qo,invert:ea})}static iteratedexp(e,t=2,n=u.fromComponents_noNormalize(1,0,1)){return new f({inputs:[e,t,n],evaluate:ta,invert:na})}static iteratedlog(e,t=10,n=1){return new f({inputs:[e,t,n],evaluate:ra})}static slog(e,t=10){return new f({inputs:[e,t],evaluate:ia,invert:sa})}static layeradd10(e,t){return new f({inputs:[e,t],evaluate:u.layeradd10})}static layeradd(e,t,n=10){return new f({inputs:[e,t,n],evaluate:oa,invert:aa})}static lambertw(e){return new f({inputs:[e],evaluate:u.lambertw,invert:la})}static ssqrt(e){return new f({inputs:[e],evaluate:u.ssqrt,invert:ua})}static pentate(e,t=2,n=u.fromComponents_noNormalize(1,0,1)){return new f({inputs:[e,t,n],evaluate:ca})}static sin(e){return new f({inputs:[e],evaluate:u.sin,invert:ha,integrate:fa})}static cos(e){return new f({inputs:[e],evaluate:u.cos,invert:ya,integrate:pa})}static tan(e){return new f({inputs:[e],evaluate:u.tan,invert:Ca,integrate:va})}static asin(e){return new f({inputs:[e],evaluate:u.asin,invert:da,integrate:ba})}static acos(e){return new f({inputs:[e],evaluate:u.acos,invert:ma,integrate:_a})}static atan(e){return new f({inputs:[e],evaluate:u.atan,invert:ga,integrate:wa})}static sinh(e){return new f({inputs:[e],evaluate:u.sinh,invert:Ta,integrate:Na})}static cosh(e){return new f({inputs:[e],evaluate:u.cosh,invert:Oa,integrate:Ia})}static tanh(e){return new f({inputs:[e],evaluate:u.tanh,invert:Ea,integrate:Ma})}static asinh(e){return new f({inputs:[e],evaluate:u.asinh,invert:ka,integrate:Pa})}static acosh(e){return new f({inputs:[e],evaluate:u.acosh,invert:Sa,integrate:Fa})}static atanh(e){return new f({inputs:[e],evaluate:u.atanh,invert:$a,integrate:qa})}step(e,t){return f.step(this,e,t)}if(e,t){return f.if(this,e,t)}conditional(e,t){return f.if(this,e,t)}abs(){return f.abs(this)}neg(){return f.neg(this)}sign(){return f.sign(this)}round(){return f.round(this)}floor(){return f.floor(this)}ceil(){return f.ceil(this)}trunc(){return f.trunc(this)}add(e){return f.add(this,e)}sub(e){return f.sub(this,e)}mul(e){return f.mul(this,e)}div(e){return f.div(this,e)}recip(){return f.recip(this)}max(e){return f.max(this,e)}min(e){return f.min(this,e)}maxabs(e){return f.maxabs(this,e)}minabs(e){return f.minabs(this,e)}clamp(e,t){return f.clamp(this,e,t)}clampMin(e){return f.clampMin(this,e)}clampMax(e){return f.clampMax(this,e)}pLog10(){return f.pLog10(this)}absLog10(){return f.absLog10(this)}log10(){return f.log10(this)}log(e){return f.log(this,e)}log2(){return f.log2(this)}ln(){return f.ln(this)}pow(e){return f.pow(this,e)}pow10(){return f.pow10(this)}pow_base(e){return f.pow_base(this,e)}root(e){return f.root(this,e)}factorial(){return f.factorial(this)}gamma(){return f.gamma(this)}lngamma(){return f.lngamma(this)}exp(){return f.exp(this)}sqr(){return f.pow(this,2)}sqrt(){return f.root(this,2)}cube(){return f.pow(this,3)}cbrt(){return f.root(this,3)}tetrate(e=2,t=u.fromComponents_noNormalize(1,0,1)){return f.tetrate(this,e,t)}iteratedexp(e=2,t=u.fromComponents_noNormalize(1,0,1)){return f.iteratedexp(this,e,t)}iteratedlog(e=10,t=1){return f.iteratedlog(this,e,t)}slog(e=10){return f.slog(this,e)}layeradd10(e){return f.layeradd10(this,e)}layeradd(e,t){return f.layeradd(this,e,t)}lambertw(){return f.lambertw(this)}ssqrt(){return f.ssqrt(this)}pentate(e=2,t=u.fromComponents_noNormalize(1,0,1)){return f.pentate(this,e,t)}sin(){return f.sin(this)}cos(){return f.cos(this)}tan(){return f.tan(this)}asin(){return f.asin(this)}acos(){return f.acos(this)}atan(){return f.atan(this)}sinh(){return f.sinh(this)}cosh(){return f.cosh(this)}tanh(){return f.tanh(this)}asinh(){return f.asinh(this)}acosh(){return f.acosh(this)}atanh(){return f.atanh(this)}};let de=ge;de.negate=ge.neg;de.negated=ge.neg;de.sgn=ge.sign;de.plus=ge.add;de.subtract=ge.sub;de.minus=ge.sub;de.multiply=ge.mul;de.times=ge.mul;de.divide=ge.div;de.divideBy=ge.div;de.dividedBy=ge.div;de.reciprocal=ge.recip;de.reciprocate=ge.recip;de.max=Tt(u.max);de.min=Tt(u.min);de.minabs=Tt(u.minabs);de.maxabs=Tt(u.maxabs);de.clampMin=Tt(u.clampMin);de.clampMax=Tt(u.clampMax);de.logarithm=ge.log;class f extends de{invert(t){return this.internalInvert&&this.hasVariable()?this.internalInvert.call(this,t,...this.inputs):this.inputs.length===1&&this.hasVariable()?t:(console.error("Cannot invert non-invertible formula"),0)}evaluateIntegral(t){return this.isIntegrable()?this.getIntegralFormula().evaluate(t):(console.error("Cannot evaluate integral of formula without integral"),0)}invertIntegral(t){return!this.isIntegrable()||!this.getIntegralFormula().isInvertible()?(console.error("Cannot invert integral of formula without invertible integral"),0):this.getIntegralFormula().invert(t)}calculateConstantOfIntegration(){const t=this.getIntegralFormula().evaluate(1),n=u.add(this.evaluate(0),this.evaluate(1)).div(2);return u.sub(n,t)}getIntegralFormula(t){if(this.integralFormula!=null&&t==null)return this.integralFormula;if(t==null){if(this.applySubstitution==null){if(t=[],this.internalIntegrate==null)return console.error("Cannot integrate formula with non-integrable operation"),f.constant(0);let n=this.internalIntegrate.call(this,t,...this.inputs);t.forEach(r=>n=r(n)),this.integralFormula=n}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 return console.error("Cannot integrate formula without variable"),f.constant(0);return this.integralFormula}else return this.applySubstitution==null?(console.error("Cannot have two complex operations in an integrable formula"),f.constant(0)):(t.push(n=>this.applySubstitution.call(this,n,...this.inputs)),this.internalIntegrateInner?this.internalIntegrateInner.call(this,t,...this.inputs):this.internalIntegrate?this.internalIntegrate.call(this,t,...this.inputs):this.inputs.length===1&&this.internalEvaluate==null&&this.hasVariable()?this:(console.error("Cannot integrate formula without variable"),f.constant(0)))}}function Ra(e,t,n=!0,r,i=u.dInf){const s=Fe(n),o=Fe(r),a=Fe(i);return P(()=>{var y,w,N,_;const c=l(a);if(u.eq(c,1))return u.gte(t.value,e.evaluate())?u.dOne:u.dZero;const d=l(s),g=(y=l(o))!=null?y:d?10:0;let p=0;if(u.gt(c,g)){if(!e.isInvertible())return console.error("Cannot calculate max affordable of non-invertible formula with more maxBulkAmount than directSum"),0;if(d){if(!e.isIntegralInvertible())return console.error("Cannot calculate max affordable of formula with non-invertible integral"),0;p=u.floor(e.invertIntegral(u.add(t.value,e.evaluateIntegral()))).sub((w=l(e.innermostVariable))!=null?w:0)}else p=u.floor(e.invert(t.value))}if(p=u.clampMax(p,c),g>0){const E=p;p=u.sub(p,g).clampMin(0);let q;for(d?q=an(e,p,!0,0):q=e.evaluate(u.add((N=l(e.innermostVariable))!=null?N:0,p));u.lt(p,c)&&u.lt(p,Number.MAX_SAFE_INTEGER)&&u.add(E,1).gte(p);){const I=e.evaluate(p.add((_=l(e.innermostVariable))!=null?_:0));if(u.add(q,I).lte(t.value))p=p.add(1),q=u.add(q,I);else break}}return p})}function an(e,t,n=!0,r){var c;if(u.eq(t,1))return e.evaluate();const i=(c=l(e.innermostVariable))!=null?c:0;let s=u.add(t,i);const o=s;r!=null||(r=n?10:0),s=s.sub(r).clampMin(i);let a=0;if(u.gt(t,r)){if(!e.isInvertible())return console.error("Cannot calculate cost with indirect sum of non-invertible formula"),0;if(n){if(!e.isIntegrable())return console.error("Cannot calculate cost with cumulative cost of non-integrable formula"),0;if(a=u.sub(e.evaluateIntegral(s),e.evaluateIntegral()),o.gt(1e308))return u.add(a,u.sub(o,s).times(e.evaluate(s)))}else if(a=e.evaluate(s),s=s.add(1),o.gt(1e308))return u.sub(o,s).add(1).times(a)}for(let d=s.toNumber();dn.trim()).join(` +`))!=null?t:""}function fr(e,t){var n;u.isNaN(t)&&(fe.hasNaN||(R.autosave=!1,fe.hasNaN=!0,fe.NaNPath=e[ht],fe.NaNPersistent=e),console.error(`Attempted to save NaN value to ${(n=e[ht])==null?void 0:n.join(".")}`)),e[at].value=t}function _e(e,t=!0){const n=ye(e)?e:V(e);ye(e)&&(e=e.value);const r=P({get(){return n.value},set(s){t?fr(i,s):i[at].value=s}});r[lt]=e;const i={get value(){return n.value},set value(s){t?fr(i,s):i[at].value=s},__v_isRef:!0,[at]:n,[lt]:e,[cn]:Aa(),[Sn]:!1,[Ke]:r,[ht]:void 0};return Le.length===0?console.warn("Creating a persistent ref outside of a layer. This is not officially supported",i,` +Created at: +`+i[cn]):Nt[Le[Le.length-1]].add(i),i}function Ba(e){return e!=null&&typeof e=="object"&&at in e}function qt(e){return!(ot in e)&&Ke in e?e[Ke]:new Proxy(e,{get(t,n){if(n!==at)return n===jt?!0:t[n]},set(t,n,r){return t[n]=r,!0},has(t,n){return n===at?!1:n==jt?!0:Reflect.has(t,n)}})}he.on("addLayer",(e,t)=>{const n=[],r=(i,s=[])=>{let o=!1;return Object.keys(i).forEach(a=>{let c=i[a];if(c!=null&&typeof c=="object"){if(c[jt]===!0)return;if(ot in c&&(c=c[ot]),Ba(c)){if(o=!0,c[Sn]){console.warn("Deleted persistent ref present in returned object. Ignoring...",c,` +Created at: +`+c[cn]);return}Nt[e.id].delete(c);const d=[e.id,...s,a];c[ht]!=null&&JSON.stringify(d)!==JSON.stringify(c[ht])&&console.error(`Persistent ref is being saved to \`${d.join(".")}\` when it's already present at \`${c[ht].join(".")}\`.`,"This can cause unexpected behavior when loading saves between updates."),c[ht]=d;const g=s.reduce((y,w)=>(w in y||(y[w]={}),y[w]),t),p=g[a];g[a]=c[at],fi(g)?p!=null?g[a]=p:g[a]=c[lt]:p!=null?g[a].value=p:g[a].value=c[lt]}else!(c instanceof u)&&!(c instanceof f)&&!ye(c)&&!n.includes(c)&&(typeof c.type=="symbol"&&n.push(c),r(c,[...s,a])&&(Je(c)&&!Je(i)?console.warn("Found array that contains persistent values when adding layer. Keep in mind changing the order of elements in the array will mess with existing player saves.",ot in i?i[ot]:i,a):o=!0))}}),o};r(e[ot]),Nt[e.id].forEach(i=>{i[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. + +Created at: +`+i[cn])}),Nt[e.id].clear()});const Vn=Symbol("RegisterNode"),Dn=Symbol("UnregisterNode"),Rn=Symbol("Nodes"),An=Symbol("Bounds"),Ie=fn({});window.layers=Ie;const Nt={},Le=[];function Gt(e,t){return ce(()=>{const n={},r=n.emitter=_r();if(n.on=r.on.bind(r),n.emit=r.emit.bind(r),n.nodes=V({}),n.id=e,Le.push(e),Nt[e]=new Set,n.minimized=_e(!1,!1),Object.assign(n,t.call(n,n)),Le[Le.length-1]==null||Le[Le.length-1]!==e)throw new Error(`Adding layers stack in invalid state. This should not happen +Stack: ${Le} +Trying to pop ${n.id}`);Le.pop(),k(n,"color"),k(n,"display"),k(n,"classes"),k(n,"style"),k(n,"name"),W(n,"name",n.id),k(n,"minWidth"),W(n,"minWidth",600),k(n,"minimizable"),W(n,"minimizable",!0),k(n,"minimizedDisplay");const i=n.style;return n.style=P(()=>{var o,a;let s=l(n.minWidth);return(typeof s=="number"||!Number.isNaN(parseInt(s)))&&(s=s+"px"),[(o=l(i))!=null?o:"",(a=n.minimized)!=null&&a.value?{flexGrow:"0",flexShrink:"0",width:"60px",minWidth:"",flexBasis:"",margin:"0"}:{flexGrow:"",flexShrink:"",width:"",minWidth:s,flexBasis:s,margin:""}]}),n})}function Ar(e,t){if(console.info("Adding layer",e.id),Ie[e.id]){console.error("Attempted to add layer with same ID as existing layer",e.id,Ie[e.id]);return}W(t,"layers",{}),t.layers[e.id]==null&&(t.layers[e.id]={}),Ie[e.id]=e,he.emit("addLayer",e,t.layers[e.id])}function La(e){return Ie[e]}function Br(e){console.info("Removing layer",e.id),he.emit("removeLayer",e),Ie[e.id]=void 0}function xa(e){Br(e),Ar(e,R)}function Lr(e){const t=V(!1);return{openModal:()=>t.value=!0,modal:L(()=>m(ct,{modelValue:t.value,"onUpdate:modelValue":n=>t.value=n},{header:()=>m("h2",null,[l(e.name)]),body:l(e.display)}))}}he.on("update",function(t){Object.values(Ie).forEach(n=>{n==null||n.emit("preUpdate",t)}),Object.values(Ie).forEach(n=>{n==null||n.emit("update",t)}),Object.values(Ie).forEach(n=>{n==null||n.emit("postUpdate",t)})});var ja=Object.freeze(Object.defineProperty({__proto__:null,RegisterNodeInjectionKey:Vn,UnregisterNodeInjectionKey:Dn,NodesInjectionKey:Rn,BoundsInjectionKey:An,layers:Ie,persistentRefs:Nt,addingLayers:Le,createLayer:Gt,addLayer:Ar,getLayer:La,removeLayer:Br,reloadLayer:xa,setupLayerModal:Lr},Symbol.toStringTag,{value:"Module"}));const Ua=A({components:{Context:Dr,ErrorVue:kr},props:{index:{type:Number,required:!0},display:{type:$(Object,String,Function),required:!0},minimizedDisplay:$(Object,String,Function),minimized:{type:Object,required:!0},name:{type:$(String),required:!0},color:$(String),minimizable:$(Boolean),nodes:{type:Object,required:!0}},emits:["setMinimized"],setup(e){const{display:t,index:n,minimized:r,minimizedDisplay:i}=ue(e),s=It(t),o=ut(i),a=P(()=>te.allowGoBack&&n.value>0&&!ae(r));function c(){R.tabs.splice(l(e.index),1/0)}function d(p){e.nodes.value=p}const g=V([]);return mi((p,y,w)=>(console.warn(`Error caught in "${e.name}" layer`,p,y,w),g.value.push(p instanceof Error?p:new Error(JSON.stringify(p))),!1)),{component:s,minimizedComponent:o,showGoBack:a,updateNodes:d,unref:l,goBack:c,errors:g}}}),za={key:1};function Ga(e,t,n,r,i,s){const o=ve("ErrorVue"),a=ve("Context");return e.errors.length>0?(b(),D(o,{key:0,errors:e.errors},null,8,["errors"])):(b(),S("div",Ue({key:1,class:"layer-container",style:{"--layer-color":e.unref(e.color)}},e.$attrs),[e.showGoBack?(b(),S("button",{key:0,class:"goBack",onClick:t[0]||(t[0]=(...c)=>e.goBack&&e.goBack(...c))},"\u274C")):F("",!0),e.unref(e.minimized)?(b(),S("button",{key:1,class:"layer-tab minimized",onClick:t[1]||(t[1]=c=>e.$emit("setMinimized",!1))},[e.minimizedComponent?(b(),D(ie(e.minimizedComponent),{key:0})):(b(),S("div",za,G(e.unref(e.name)),1))])):(b(),S("div",{key:2,class:re(["layer-tab",{showGoBack:e.showGoBack}])},[m(a,{onUpdateNodes:e.updateNodes},{default:x(()=>[(b(),D(ie(e.component)))]),_:1},8,["onUpdateNodes"])],2)),e.unref(e.minimizable)?(b(),S("button",{key:3,class:"minimize",onClick:t[2]||(t[2]=c=>e.$emit("setMinimized",!0))}," \u25BC ")):F("",!0)],16))}var Ha=K(Ua,[["render",Ga],["__scopeId","data-v-a9f5b1da"]]);const xr=e=>(ze("data-v-4b4bda40"),e=e(),Ge(),e),Wa=xr(()=>v("h2",null,"Changelog",-1)),Ka=xr(()=>v("details",{open:""},[v("summary",null,[M("v0.0 Initial Commit - "),v("time",null,"2021-09-04")]),M(" This is the first release :D "),v("ul",null,[v("li",{class:"feature"},"Did everything"),v("li",{class:"fix"},"Had some fun"),v("li",{class:"breaking"},"Removed everything"),v("li",{class:"balancing"},"Created some bugs to fix later")])],-1)),Ya=A({__name:"Changelog",setup(e,{expose:t}){const n=V(!1);return t({open(){n.value=!0}}),(r,i)=>(b(),D(ct,{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=s=>n.value=s)},{header:x(()=>[Wa]),body:x(()=>[Ka]),_:1},8,["modelValue"]))}});var Ja=K(Ya,[["__scopeId","data-v-4b4bda40"]]),Za=A({props:{element:Object,display:{type:$(Object,String,Function),required:!0},style:$(Object,String,Array),classes:$(Object),direction:$(String),xoffset:$(String),yoffset:$(String),pinned:Object},setup(e){const{element:t,display:n,pinned:r}=ue(e),i=V(!1),s=P(()=>(ae(r)||i.value)&&o.value),o=ut(n),a=ke(H(L(()=>{const g=ae(t);return g==null?"":xe(g)})));function c(g){const p=r;g.shiftKey&&p&&(p.value=!p.value,g.stopPropagation(),g.preventDefault())}const d=P(()=>ae(r)&&rt[Q.theme].showPin);return{Direction:J,isHovered:i,isShown:s,comp:o,elementComp:a,unref:l,togglePinned:c,showPin:d}}});const Xa={key:0,class:"material-icons pinned"};function Qa(e,t,n,r,i,s){return b(),S("div",{class:re(["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))},[Ye(e.$slots,"default",{},void 0,!0),e.elementComp?(b(),D(ie(e.elementComp),{key:0})):F("",!0),m(Mn,{name:"fade"},{default:x(()=>{var o;return[e.isShown?(b(),S("div",{key:0,class:re(["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?(b(),S("span",Xa,"push_pin")):F("",!0),e.comp?(b(),D(ie(e.comp),{key:1})):F("",!0)],6)):F("",!0)]}),_:1})],34)}var me=K(Za,[["render",Qa],["__scopeId","data-v-6102fa3a"]]);const bt=e=>(ze("data-v-10effbe8"),e=e(),Ge(),e),el={class:"info-modal-header"},tl=["src","alt"],nl={class:"info-modal-title"},rl={key:0},il={key:0},sl={key:0},ol=bt(()=>v("div",null," Made in Profectus, by thepaperpilot with inspiration from Acameada and Jacorb ",-1)),al=bt(()=>v("br",null,null,-1)),ll=bt(()=>v("br",null,null,-1)),ul=["href"],cl=bt(()=>v("span",{class:"material-icons info-modal-discord"},"discord",-1)),dl=bt(()=>v("div",null,[v("a",{href:"https://discord.gg/yJ4fjnjU54",class:"info-modal-discord-link",target:"_blank"},[v("span",{class:"material-icons info-modal-discord"},"discord"),M(" Profectus & Friends ")])],-1)),fl=bt(()=>v("div",null,[v("a",{href:"https://discord.gg/F3xveHV",class:"info-modal-discord-link",target:"_blank"},[v("span",{class:"material-icons info-modal-discord"},"discord"),M(" The Modding Tree ")])],-1)),ml=bt(()=>v("br",null,null,-1));var pl=A({__name:"Info",props:{changelog:null},setup(e,{expose:t}){const n=e,{title:r,logo:i,author:s,discordName:o,discordLink:a,versionNumber:c,versionTitle:d}=te,g=ue(n),p=V(!1),y=P(()=>gn(R.timePlayed)),w=P(()=>H(L(()=>m(U,null,[qr.map(be)]))));t({open(){p.value=!0}});function N(){var _;(_=l(g.changelog))==null||_.open()}return(_,E)=>(b(),D(ct,{modelValue:p.value,"onUpdate:modelValue":E[0]||(E[0]=q=>p.value=q)},{header:x(()=>[v("div",el,[l(i)?(b(),S("img",{key:0,class:"info-modal-logo",src:l(i),alt:l(r)},null,8,tl)):F("",!0),v("div",nl,[v("h2",null,G(l(r)),1),v("h4",null,[M(" v"+G(l(c)),1),l(d)?(b(),S("span",rl,": "+G(l(d)),1)):F("",!0)])])])]),body:x(({shown:q})=>[q?(b(),S("div",il,[l(s)?(b(),S("div",sl,"By "+G(l(s)),1)):F("",!0),ol,al,v("div",{class:"link",onClick:N},"Changelog"),ll,v("div",null,[l(a)?(b(),S("a",{key:0,href:l(a),class:"info-modal-discord-link",target:"_blank"},[cl,M(" "+G(l(o)),1)],8,ul)):F("",!0)]),dl,fl,ml,v("div",null,"Time Played: "+G(l(y)),1),(b(),D(ie(l(w))))])):F("",!0)]),_:1},8,["modelValue"]))}});var gl=K(pl,[["__scopeId","data-v-10effbe8"]]);const vl={class:"field"},hl={key:0,class:"field-title"},Bn=A({__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,r=ut(nt(n,"title"),"span"),i=V((o=n.options.find(a=>a.value===n.modelValue))!=null?o:null);je(nt(n,"modelValue"),a=>{var c;ae(i)!==a&&(i.value=(c=n.options.find(d=>d.value===a))!=null?c:null)});function s(a){t("update:modelValue",a.value)}return(a,c)=>(b(),S("div",vl,[l(r)?(b(),S("span",hl,[(b(),D(ie(l(r))))])):F("",!0),m(l(_i),{options:e.options,modelValue:i.value,"onUpdate:modelValue":[c[0]||(c[0]=d=>i.value=d),s],min:1,"label-by":"label",placeholder:e.placeholder,"close-on-select":e.closeOnSelect},null,8,["options","modelValue","placeholder","close-on-select"])]))}});const bl={class:"field"},yl=A({__name:"Toggle",props:{title:null,modelValue:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=P(()=>{var s;return H((s=l(n.title))!=null?s:"","span")}),i=P({get(){return!!n.modelValue},set(s){t("update:modelValue",s)}});return(s,o)=>(b(),S("label",bl,[mn(v("input",{type:"checkbox",class:"toggle","onUpdate:modelValue":o[0]||(o[0]=a=>ye(i)?i.value=a:null)},null,512),[[pi,l(i)]]),(b(),D(ie(l(r))))]))}});var Me=K(yl,[["__scopeId","data-v-11046116"]]);const _l={class:"header"},Cl=v("h2",null,"Settings",-1),wl={class:"option-tabs"},kl={key:0},Nl={key:1};var Sl=A({__name:"Options",setup(e,{expose:t}){const n=V(!1),r=V("behaviour");function i(se){return se==r.value}function s(se){r.value=se}t({isTab:i,setTab:s,save:Oe,open(){n.value=!0}});const o=Object.keys(rt).map(se=>({label:On(se),value:se})),a=P(()=>H(L(()=>m(U,null,[Fr.map(be)])))),{showTPS:c,theme:d,unthrottled:g,alignUnits:p}=ue(Q),{autosave:y,offlineProd:w}=ue(R),N=P({get(){return R.devSpeed===0},set(se){R.devSpeed=se?0:null}}),_=L(()=>m("span",{class:"option-title"},[M("Unthrottled"),m("desc",null,[M("Allow the game to run as fast as possible. Not battery friendly.")])])),E=L(()=>m("span",{class:"option-title"},[M("Offline Production"),m(me,{display:"Save-specific",direction:J.Right},{default:()=>[M("*")]}),m("desc",null,[M("Simulate production that occurs while the game is closed.")])])),q=L(()=>m("span",{class:"option-title"},[M("Autosave"),m(me,{display:"Save-specific",direction:J.Right},{default:()=>[M("*")]}),m("desc",null,[M("Automatically save the game every second or when the game is closed.")])])),I=L(()=>m("span",{class:"option-title"},[M("Pause game"),m(me,{display:"Save-specific",direction:J.Right},{default:()=>[M("*")]}),m("desc",null,[M("Stop everything from moving.")])])),O=L(()=>m("span",{class:"option-title"},[M("Theme"),m("desc",null,[M("How the game looks.")])])),j=L(()=>m("span",{class:"option-title"},[M("Show TPS"),m("desc",null,[M("Show TPS meter at the bottom-left corner of the page.")])])),le=L(()=>m("span",{class:"option-title"},[M("Align modifier units"),m("desc",null,[M("Align numbers to the beginning of the unit in modifier view.")])]));return(se,B)=>(b(),D(ct,{modelValue:n.value,"onUpdate:modelValue":B[10]||(B[10]=oe=>n.value=oe)},{header:x(()=>[v("div",_l,[Cl,v("div",wl,[v("button",{class:re({selected:i("behaviour")}),onClick:B[0]||(B[0]=oe=>s("behaviour"))},"Behaviour",2),v("button",{class:re({selected:i("appearance")}),onClick:B[1]||(B[1]=oe=>s("appearance"))},"Appearance",2)])])]),body:x(()=>[i("behaviour")?(b(),S("div",kl,[m(Me,{title:l(_),modelValue:l(g),"onUpdate:modelValue":B[2]||(B[2]=oe=>ye(g)?g.value=oe:null)},null,8,["title","modelValue"]),l(te).enablePausing?(b(),D(Me,{key:0,title:l(I),modelValue:l(N),"onUpdate:modelValue":B[3]||(B[3]=oe=>ye(N)?N.value=oe:null)},null,8,["title","modelValue"])):F("",!0),m(Me,{title:l(E),modelValue:l(w),"onUpdate:modelValue":B[4]||(B[4]=oe=>ye(w)?w.value=oe:null)},null,8,["title","modelValue"]),m(Me,{title:l(q),modelValue:l(y),"onUpdate:modelValue":B[5]||(B[5]=oe=>ye(y)?y.value=oe:null)},null,8,["title","modelValue"]),l(y)?F("",!0):(b(),D(Pn,{key:1,class:"button save-button",onClick:B[6]||(B[6]=oe=>l(Oe)())},{default:x(()=>[M("Manually save")]),_:1}))])):F("",!0),i("appearance")?(b(),S("div",Nl,[m(Bn,{title:l(O),options:l(o),modelValue:l(d),"onUpdate:modelValue":B[7]||(B[7]=oe=>ye(d)?d.value=oe:null)},null,8,["title","options","modelValue"]),(b(),D(ie(l(a)))),m(Me,{title:l(j),modelValue:l(c),"onUpdate:modelValue":B[8]||(B[8]=oe=>ye(c)?c.value=oe:null)},null,8,["title","modelValue"]),m(Me,{title:l(le),modelValue:l(p),"onUpdate:modelValue":B[9]||(B[9]=oe=>ye(p)?p.value=oe:null)},null,8,["title","modelValue"])])):F("",!0)]),_:1},8,["modelValue"]))}});const Il=["onSubmit"],$l={class:"field"},Ml={key:0,class:"field-title"},Tl=["placeholder"],Pl=A({__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,r=ut(nt(n,"title"),"span"),i=ke(null);Mt(()=>{var c;(c=i.value)==null||c.focus()});const s=P({get(){var c;return(c=l(n.modelValue))!=null?c:""},set(c){t("update:modelValue",c)}});function o(){t("submit")}function a(){n.submitOnBlur!==!1?t("submit"):t("cancel")}return(c,d)=>(b(),S("form",{onSubmit:Rt(o,["prevent"])},[v("div",$l,[l(r)?(b(),S("span",Ml,[(b(),D(ie(l(r))))])):F("",!0),e.textArea?(b(),D(l(wi),{key:1,modelValue:l(s),"onUpdate:modelValue":d[0]||(d[0]=g=>ye(s)?s.value=g:null),placeholder:e.placeholder,maxHeight:e.maxHeight,onBlur:a,ref_key:"field",ref:i},null,8,["modelValue","placeholder","maxHeight"])):mn((b(),S("input",{key:2,type:"text","onUpdate:modelValue":d[1]||(d[1]=g=>ye(s)?s.value=g:null),placeholder:e.placeholder,class:re({fullWidth:!e.title}),onBlur:a,ref_key:"field",ref:i},null,42,Tl)),[[yr,l(s)]])])],40,Il))}});var Ln=K(Pl,[["__scopeId","data-v-90bd4994"]]);const Ol={key:0},Fl=["onClick","disabled"],El={key:0},ql=["onClick"],Vl=A({__name:"DangerButton",props:{disabled:{type:Boolean},skipConfirm:{type:Boolean}},emits:["click","confirmingChanged"],setup(e,{emit:t}){const r=ue(e),i=V(!1);je(i,a=>{t("confirmingChanged",a)});function s(){if(l(r.skipConfirm)){t("click");return}i.value&&t("click"),i.value=!i.value}function o(){i.value=!1}return(a,c)=>(b(),S("span",{class:re(["container",{confirming:i.value}])},[i.value?(b(),S("span",Ol,"Are you sure?")):F("",!0),v("button",{onClick:Rt(s,["stop"]),class:"button danger",disabled:e.disabled},[i.value?(b(),S("span",El,"Yes")):Ye(a.$slots,"default",{key:1},void 0,!0)],8,Fl),i.value?(b(),S("button",{key:1,class:"button",onClick:Rt(o,["stop"])},"No",8,ql)):F("",!0)],2))}});var Dl=K(Vl,[["__scopeId","data-v-2f8ef34c"]]);const it=e=>(ze("data-v-32313015"),e=e(),Ge(),e),Rl=it(()=>v("div",{class:"handle material-icons"},"drag_handle",-1)),Al={key:0,class:"actions"},Bl=it(()=>v("span",{class:"material-icons"},"content_paste",-1)),Ll=it(()=>v("span",{class:"material-icons"},"content_copy",-1)),xl=it(()=>v("span",{class:"material-icons"},"edit",-1)),jl=it(()=>v("span",{class:"material-icons",style:{margin:"-2px"}},"delete",-1)),Ul={key:1,class:"actions"},zl=it(()=>v("span",{class:"material-icons"},"check",-1)),Gl=it(()=>v("span",{class:"material-icons"},"close",-1)),Hl={key:2,class:"details"},Wl={class:"save-version"},Kl=it(()=>v("br",null,null,-1)),Yl={key:0},Jl={key:3,class:"details"},Zl={key:4,class:"details error"},Xl=it(()=>v("br",null,null,-1)),Ql=A({__name:"Save",props:{save:null},emits:["export","open","duplicate","delete","editName"],setup(e,{emit:t}){const n=e,{save:r}=ue(n),i=new Intl.DateTimeFormat("en-US",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),s=V(!1),o=V(!1),a=V("");je(s,()=>{var p;return a.value=(p=r.value.name)!=null?p:""});const c=P(()=>r.value!=null&&r.value.id===R.id),d=P(()=>{var p;return c.value?R.time:(p=r.value!=null&&r.value.time)!=null?p:0});function g(){t("editName",a.value),s.value=!1}return(p,y)=>(b(),S("div",{class:re(["save",{active:l(c)}])},[Rl,s.value?(b(),S("div",Ul,[v("button",{onClick:g,class:"button"},[m(me,{display:"Save",direction:l(J).Left,class:"info"},{default:x(()=>[zl]),_:1},8,["direction"])]),v("button",{onClick:y[5]||(y[5]=w=>s.value=!s.value),class:"button"},[m(me,{display:"Cancel",direction:l(J).Left,class:"info"},{default:x(()=>[Gl]),_:1},8,["direction"])])])):(b(),S("div",Al,[l(r).error==null&&!o.value?(b(),D(Pn,{key:0,onClick:y[0]||(y[0]=w=>t("export")),class:"button",left:""},{default:x(()=>[m(me,{display:"Export",direction:l(J).Left,class:"info"},{default:x(()=>[Bl]),_:1},8,["direction"])]),_:1})):F("",!0),l(r).error==null&&!o.value?(b(),S("button",{key:1,onClick:y[1]||(y[1]=w=>t("duplicate")),class:"button"},[m(me,{display:"Duplicate",direction:l(J).Left,class:"info"},{default:x(()=>[Ll]),_:1},8,["direction"])])):F("",!0),l(r).error==null&&!o.value?(b(),S("button",{key:2,onClick:y[2]||(y[2]=w=>s.value=!s.value),class:"button"},[m(me,{display:"Edit Name",direction:l(J).Left,class:"info"},{default:x(()=>[xl]),_:1},8,["direction"])])):F("",!0),m(Dl,{disabled:l(c),onClick:y[3]||(y[3]=w=>t("delete")),onConfirmingChanged:y[4]||(y[4]=w=>o.value=w)},{default:x(()=>[m(me,{display:"Delete",direction:l(J).Left,class:"info"},{default:x(()=>[jl]),_:1},8,["direction"])]),_:1},8,["disabled"])])),l(r).error==null&&!s.value?(b(),S("div",Hl,[v("button",{class:"button open",onClick:y[6]||(y[6]=w=>t("open"))},[v("h3",null,G(l(r).name),1)]),v("span",Wl,"v"+G(l(r).modVersion),1),Kl,l(d)?(b(),S("div",Yl,"Last played "+G(l(i).format(l(d))),1)):F("",!0)])):l(r).error==null&&s.value?(b(),S("div",Jl,[m(Ln,{modelValue:a.value,"onUpdate:modelValue":y[7]||(y[7]=w=>a.value=w),class:"editname",onSubmit:g},null,8,["modelValue"])])):(b(),S("div",Zl,[M(" Error: Failed to load save with id "+G(l(r).id),1),Xl,M(G(l(r).error),1)]))],2))}});var eu=K(Ql,[["__scopeId","data-v-32313015"]]);const xn=e=>(ze("data-v-2a4275be"),e=e(),Ge(),e),tu=xn(()=>v("h2",null,"Saves Manager",-1)),nu={class:"modal-footer"},ru={class:"field"},iu=xn(()=>v("span",{class:"field-title"},"Create Save",-1)),su={class:"field-buttons"},ou={class:"footer"},au=xn(()=>v("div",{style:{"flex-grow":"1"}},null,-1)),lu=A({__name:"SavesManager",setup(e,{expose:t}){const n=V(!1),r=V(null);t({open(){n.value=!0}});const i=V(!1),s=V(""),o=V(null);je(s,I=>{I?tt(()=>{try{if(I[0]!=="{")if(I[0]==="e")I=decodeURIComponent(escape(atob(I)));else if(I[0]==="\u1BE1")I=et.decompressFromUTF16(I);else{console.warn("Unable to determine preset encoding",I),i.value=!0;return}const O=JSON.parse(I);if(typeof O!="object"){i.value=!0;return}const j=nn();O.id=j,Oe(O),s.value="",i.value=!1,Q.saves.push(j)}catch{i.value=!0}}):i.value=!1});let a={},c=V(Object.keys(a).reduce((I,O)=>(I.push({label:O.split("/").slice(-1)[0].slice(0,-4),value:a[O]}),I),[]));const d=fn({});function g(I){if(d[I]==null){let O=localStorage.getItem(I);if(O==null)d[I]={error:"Save doesn't exist in localStorage",id:I};else if(O==="dW5kZWZpbmVk")d[I]={error:"Save is undefined",id:I};else try{if(O[0]!=="{")if(O[0]==="e")O=decodeURIComponent(escape(atob(O)));else if(O[0]==="\u1BE1")O=et.decompressFromUTF16(O);else return console.warn("Unable to determine preset encoding",O),i.value=!0,d[I]={error:"Unable to determine preset encoding",id:I},d[I];d[I]={...JSON.parse(O),id:I}}catch(j){d[I]={error:j,id:I},console.warn(`SavesManager: Failed to load info about save with id ${I}: +${j} +${O}`)}}return d[I]}je(n,I=>{I&&Object.keys(d).forEach(O=>delete d[O])});const p=P(()=>Q.saves.reduce((I,O)=>(I[O]=g(O),I),{}));function y(I){let O;switch(R.id===I?O=Tn(R):O=JSON.stringify(p.value[I]),te.exportEncoding){default:console.warn(`Unknown save encoding: ${te.exportEncoding}. Defaulting to lz`);case"lz":O=et.compressToUTF16(O);break;case"base64":O=btoa(unescape(encodeURIComponent(O)));break;case"plain":break}const j=document.createElement("textarea");j.value=O,document.body.appendChild(j),j.select(),j.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(j)}function w(I){R.id===I&&Oe();const O={...p.value[I],id:nn()};Oe(O),Q.saves.push(O.id)}function N(I){Q.saves=Q.saves.filter(O=>O!==I),localStorage.removeItem(I),d[I]=void 0}function _(I){p.value[R.id].time=R.time,Oe(),d[R.id]=void 0,vt(p.value[I]),d[I]=void 0}function E(I){if(o.value=I,tt(()=>{o.value=null}),I[0]!=="{")if(I[0]==="e")I=decodeURIComponent(escape(atob(I)));else if(I[0]==="\u1BE1")I=et.decompressFromUTF16(I);else{console.warn("Unable to determine preset encoding",I);return}const O=JSON.parse(I);O.id=nn(),Oe(O),Q.saves.push(O.id),_(O.id)}function q(I,O){const j=p.value[I];j!=null&&(j.name=O,R.id===I?(R.name=O,Oe()):(Oe(j),d[I]=void 0))}return(I,O)=>(b(),D(ct,{modelValue:n.value,"onUpdate:modelValue":O[4]||(O[4]=j=>n.value=j),ref_key:"modal",ref:r},{header:x(()=>[tu]),body:x(({shown:j})=>[j?(b(),D(l(Ci),{key:0,list:l(Q).saves,handle:".handle",itemKey:le=>le},{item:x(({element:le})=>[m(eu,{save:l(p)[le],onOpen:se=>_(le),onExport:se=>y(le),onEditName:se=>q(le,se),onDuplicate:se=>w(le),onDelete:se=>N(le)},null,8,["save","onOpen","onExport","onEditName","onDuplicate","onDelete"])]),_:1},8,["list","itemKey"])):F("",!0)]),footer:x(()=>[v("div",nu,[m(Ln,{modelValue:s.value,"onUpdate:modelValue":O[0]||(O[0]=j=>s.value=j),title:"Import Save",placeholder:"Paste your save here!",class:re({importingFailed:i.value})},null,8,["modelValue","class"]),v("div",ru,[iu,v("div",su,[v("button",{class:"button",onClick:O[1]||(O[1]=j=>_(l(kt)().id))},"New Game"),Object.keys(l(c)).length>0?(b(),D(Bn,{key:0,options:l(c),modelValue:o.value,"onUpdate:modelValue":O[2]||(O[2]=j=>E(j)),closeOnSelect:"",placeholder:"Select preset",class:"presets"},null,8,["options","modelValue"])):F("",!0)])]),v("div",ou,[au,v("button",{class:"button modal-default-button",onClick:O[3]||(O[3]=j=>n.value=!1)}," Close ")])])]),_:1},8,["modelValue"]))}});var jr=K(lu,[["__scopeId","data-v-2a4275be"]]);const Ee=e=>(ze("data-v-47c54e31"),e=e(),Ge(),e),uu=["src","alt"],cu={key:1,class:"title"},du=Ee(()=>v("div",{style:{"flex-grow":"1",cursor:"unset"}},null,-1)),fu={class:"discord"},mu={class:"discord-links"},pu={key:0},gu=["href"],vu=Ee(()=>v("li",null,[v("a",{href:"https://discord.gg/yJ4fjnjU54",target:"_blank"},"Profectus & Friends")],-1)),hu=Ee(()=>v("li",null,[v("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),bu={href:"https://forums.moddingtree.com/",target:"_blank"},yu=Ee(()=>v("span",{class:"material-icons"},"forum",-1)),_u=Ee(()=>v("span",{class:"material-icons"},"info",-1)),Cu=Ee(()=>v("span",{class:"material-icons"},"library_books",-1)),wu=Ee(()=>v("span",{class:"material-icons"},"settings",-1)),ku=Ee(()=>v("span",{class:"material-icons"},"library_books",-1)),Nu=Ee(()=>v("span",{class:"material-icons"},"settings",-1)),Su=Ee(()=>v("span",{class:"material-icons"},"info",-1)),Iu={href:"https://forums.moddingtree.com/",target:"_blank"},$u=Ee(()=>v("span",{class:"material-icons"},"forum",-1)),Mu={class:"discord"},Tu={class:"discord-links"},Pu={key:0},Ou=["href"],Fu=Ee(()=>v("li",null,[v("a",{href:"https://discord.gg/yJ4fjnjU54",target:"_blank"},"Profectus & Friends")],-1)),Eu=Ee(()=>v("li",null,[v("a",{href:"https://discord.gg/F3xveHV",target:"_blank"},"The Modding Tree")],-1)),qu=A({__name:"Nav",setup(e){const t=V(null),n=V(null),r=V(null),i=V(null),{useHeader:s,banner:o,title:a,discordName:c,discordLink:d,versionNumber:g}=te;function p(){window.open(d,"mywindow")}return(y,w)=>(b(),S(U,null,[l(s)?(b(),S("div",Ue({key:0,class:"nav"},y.$attrs),[l(o)?(b(),S("img",{key:0,src:l(o),class:"banner",alt:l(a)},null,8,uu)):(b(),S("div",cu,G(l(a)),1)),v("div",{onClick:w[0]||(w[0]=N=>{var _;return(_=i.value)==null?void 0:_.open()}),class:"version-container"},[m(me,{display:"Changelog",direction:l(J).Down,class:"version"},{default:x(()=>[v("span",null,"v"+G(l(g)),1)]),_:1},8,["direction"])]),du,v("div",fu,[v("span",{onClick:p,class:"material-icons"},"discord"),v("ul",mu,[l(d)?(b(),S("li",pu,[v("a",{href:l(d),target:"_blank"},G(l(c)),9,gu)])):F("",!0),vu,hu])]),v("div",null,[v("a",bu,[m(me,{display:"Forums",direction:l(J).Down,yoffset:"5px"},{default:x(()=>[yu]),_:1},8,["direction"])])]),v("div",{onClick:w[1]||(w[1]=N=>{var _;return(_=t.value)==null?void 0:_.open()})},[m(me,{display:"Info",direction:l(J).Down,class:"info"},{default:x(()=>[_u]),_:1},8,["direction"])]),v("div",{onClick:w[2]||(w[2]=N=>{var _;return(_=n.value)==null?void 0:_.open()})},[m(me,{display:"Saves",direction:l(J).Down,xoffset:"-20px"},{default:x(()=>[Cu]),_:1},8,["direction"])]),v("div",{onClick:w[3]||(w[3]=N=>{var _;return(_=r.value)==null?void 0:_.open()})},[m(me,{display:"Settings",direction:l(J).Down,xoffset:"-66px"},{default:x(()=>[wu]),_:1},8,["direction"])])],16)):(b(),S("div",Ue({key:1,class:"overlay-nav"},y.$attrs),[v("div",{onClick:w[4]||(w[4]=N=>{var _;return(_=i.value)==null?void 0:_.open()}),class:"version-container"},[m(me,{display:"Changelog",direction:l(J).Right,xoffset:"25%",class:"version"},{default:x(()=>[v("span",null,"v"+G(l(g)),1)]),_:1},8,["direction"])]),v("div",{onClick:w[5]||(w[5]=N=>{var _;return(_=n.value)==null?void 0:_.open()})},[m(me,{display:"Saves",direction:l(J).Right},{default:x(()=>[ku]),_:1},8,["direction"])]),v("div",{onClick:w[6]||(w[6]=N=>{var _;return(_=r.value)==null?void 0:_.open()})},[m(me,{display:"Settings",direction:l(J).Right},{default:x(()=>[Nu]),_:1},8,["direction"])]),v("div",{onClick:w[7]||(w[7]=N=>{var _;return(_=t.value)==null?void 0:_.open()})},[m(me,{display:"Info",direction:l(J).Right},{default:x(()=>[Su]),_:1},8,["direction"])]),v("div",null,[v("a",Iu,[m(me,{display:"Forums",direction:l(J).Right,xoffset:"7px"},{default:x(()=>[$u]),_:1},8,["direction"])])]),v("div",Mu,[v("span",{onClick:p,class:"material-icons"},"discord"),v("ul",Tu,[l(d)?(b(),S("li",Pu,[v("a",{href:l(d),target:"_blank"},G(l(c)),9,Ou)])):F("",!0),Fu,Eu])])],16)),m(gl,{ref_key:"info",ref:t,changelog:i.value},null,8,["changelog"]),m(jr,{ref_key:"savesManager",ref:n},null,512),m(Sl,{ref_key:"options",ref:r},null,512),m(Ja,{ref_key:"changelog",ref:i},null,512)],64))}});var Ur=K(qu,[["__scopeId","data-v-47c54e31"]]);const Vu={class:"inner-tab"},Du=A({__name:"Game",setup(e){const t=nt(R,"tabs"),n=P(()=>Object.keys(Ie)),r=te.useHeader;function i(s){const{display:o,minimized:a,name:c,color:d,minimizable:g,nodes:p,minimizedDisplay:y}=s;return{display:o,minimized:a,name:c,color:d,minimizable:g,nodes:p,minimizedDisplay:y}}return(s,o)=>(b(),S("div",{class:re(["tabs-container",{useHeader:l(r)}])},[(b(!0),S(U,null,We(l(t),(a,c)=>{var d,g;return b(),S("div",{key:c,class:re(["tab",l((d=l(Ie)[a])==null?void 0:d.classes)]),style:ee(l((g=l(Ie)[a])==null?void 0:g.style))},[c===0&&!l(r)?(b(),D(Ur,{key:0})):F("",!0),v("div",Vu,[l(n).includes(a)?(b(),D(Ha,Ue({key:0},i(l(Ie)[a]),{index:c,onSetMinimized:p=>l(Ie)[a].minimized.value=p}),null,16,["index","onSetMinimized"])):(b(),D(ie(a),{key:1,index:c},null,8,["index"]))])],6)}),128))],2))}});var Ru=K(Du,[["__scopeId","data-v-dcd207b4"]]);const Au={},Bu=e=>(ze("data-v-89b4b00a"),e=e(),Ge(),e),Lu=Bu(()=>v("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"},[v("g",{id:"P"},[v("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"}),v("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"}),v("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"}),v("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"}),v("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"}),v("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"}),v("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 xu(e,t){return b(),D(Mn,{appear:""},{default:x(()=>[Lu]),_:1})}var ju=K(Au,[["render",xu],["__scopeId","data-v-89b4b00a"]]);const $e=A({__name:"Spacer",props:{width:{default:"8px"},height:{default:"17px"}},setup(e){return(t,n)=>(b(),S("div",{style:ee({width:e.width,height:e.height})},null,4))}});function Ut(e,t="points",n=0,r=void 0){const i=ye(e)?e:_e(e);if(i.displayName=t,i.precision=n,i.small=r,!ye(e)){const s=i[Ke];s.displayName=t,s.precision=n,s.small=r}return i}function zr(e){const t=_e(e.value);return je(e,n=>{En.value||u.gt(n,t.value)&&(t.value=n)}),t}function Uu(e){const t=_e(e.value);return je(e,(n,r)=>{En.value||u.gt(n,r)&&(t.value=u.add(t.value,u.sub(n,r)))}),t}const zu=new u("10^^8"),Gu=new u("1e100");function Hu(e,t){const n=V(0),r=V(0),i=V(0);return he.on("update",o=>{if(r.value=0,u.lte(e.value,Gu)){i.value=e.value;return}let a=e.value,c=i.value;if(i.value=a,u.gt(a,c))if(u.gte(a,zu))a=u.slog(a,1e10),c=u.slog(c,1e10),n.value=a.sub(c).div(o),r.value=-1;else for(;u.div(a,c).log(10).div(o).gte("100")&&r.value<=5&&u.gt(c,0);)a=u.log10(a),c=u.log10(c),n.value=a.sub(c).div(o),r.value++}),P(()=>r.value===0?t?Ne(t.value,e.precision,e.small)+" "+e.displayName+"/s":"":Ne(n.value)+" OOM"+(r.value<0?"^OOM":"^"+r.value)+"s/sec")}function Ze(e,t){const n=t!=null?t:e.value;return u.eq(e.precision,0)?Te(e.small?n:u.floor(n)):Ne(n,e.precision,e.small)}const Wu={key:0},Ku={key:0,class:"mark star"},Yu=["src"],Ju=A({__name:"MarkNode",props:{mark:{type:[Boolean,String]}},setup(e){return(t,n)=>e.mark?(b(),S("div",Wu,[e.mark===!0?(b(),S("div",Ku)):(b(),S("img",{key:1,class:"mark",src:e.mark},null,8,Yu))])):F("",!0)}});var Pt=K(Ju,[["__scopeId","data-v-2207999f"]]);const Zu=A({__name:"Node",props:{id:null},setup(e){const n=ue(e),r=ln(Vn,()=>{}),i=ln(Dn,()=>{}),s=ke(null),o=P(()=>s.value&&s.value.parentElement);return je([o,n.id],([a,c],[d,g])=>{d&&i(l(g)),a&&r(c,a)}),hr(()=>i(l(n.id))),(a,c)=>(b(),S("div",{class:"node",ref_key:"node",ref:s},null,512))}});var dt=K(Zu,[["__scopeId","data-v-a48cb382"]]);function Ct(e){return ce(t=>{var r;const n=e.call(t,t);return n.partialDisplay=i=>m("span",{style:l(n.requirementMet)?"":"color: var(--danger)"},[Ze(n.resource,n.cost instanceof f?an(n.cost,i!=null?i:1,l(n.cumulativeCost),l(n.directSum)):l(n.cost))," ",n.resource.displayName]),n.display=i=>m("div",null,[l(n.requiresPay)?"Costs: ":"Requires: ",Ze(n.resource,n.cost instanceof f?an(n.cost,i!=null?i:1,l(n.cumulativeCost),l(n.directSum)):l(n.cost))," ",n.resource.displayName]),k(n,"visibility"),W(n,"visibility",Z.Visible),k(n,"cost"),k(n,"requiresPay"),W(n,"requiresPay",!0),k(n,"cumulativeCost"),W(n,"cumulativeCost",!0),k(n,"maxBulkAmount"),W(n,"maxBulkAmount",1),k(n,"directSum"),W(n,"pay",function(i){const s=n.cost instanceof f?an(n.cost,i!=null?i:1,l(n.cumulativeCost),l(n.directSum)):l(n.cost);n.resource.value=u.sub(n.resource.value,s).max(0)}),n.canMaximize=P(()=>{var a;if(!(n.cost instanceof f))return!1;const i=l(n.maxBulkAmount);if(u.lte(i,1))return!1;const s=l(n.cumulativeCost),o=(a=l(n.directSum))!=null?a:s?10:0;return u.lte(i,o)?!0:!(!n.cost.isInvertible()||s===!0&&!n.cost.isIntegrable())}),n.cost instanceof f?n.requirementMet=Ra(n.cost,n.resource,(r=n.cumulativeCost)!=null?r:!0,n.directSum,n.maxBulkAmount):n.requirementMet=P(()=>u.gte(n.resource.value,l(n.cost))?1:0),n})}function jn(e){return ce(()=>({requirementMet:P(()=>Se(e.visibility)),visibility:Z.None,requiresPay:!1}))}function In(e,t){return ce(()=>({requirementMet:Fe(e),partialDisplay:t==null?void 0:L(()=>xe(t)),display:t==null?void 0:L(()=>m(U,null,[M("Req: "),xe(t)])),visibility:t==null?Z.None:Z.Visible,requiresPay:!1}))}function vn(e){if(Je(e))return e.every(vn);const t=l(e.requirementMet);return typeof t=="boolean"?t:u.gt(t,0)}function Un(e){if(Je(e))return e.map(Un).reduce(u.min);const t=l(e.requirementMet);return typeof t=="boolean"?t?u.dInf:0:u.gt(t,1)&&l(e.canMaximize)!==!0?1:t}function Ht(e,t=1){var n,r;if(Je(e)&&(e=e.filter(i=>Se(i.visibility)),e.length===1&&(e=e[0])),Je(e)){e=e.filter(o=>"partialDisplay"in o);const i=e.filter(o=>l(o.requiresPay)),s=e.filter(o=>!l(o.requiresPay));return m(U,null,[i.length>0?m("div",null,[M("Costs:")," ",dr(i.map(o=>o.partialDisplay(t)),m(U,null,[M(", ")]))]):null,s.length>0?m("div",null,[M("Requires:")," ",dr(s.map(o=>o.partialDisplay(t)),m(U,null,[M(", ")]))]):null])}return(r=(n=e.display)==null?void 0:n.call(e))!=null?r:m(U,null,null)}function Gr(e,t=1){var n;Je(e)?e.filter(r=>l(r.requiresPay)).forEach(r=>{var i;return(i=r.pay)==null?void 0:i.call(r,t)}):l(e.requiresPay)&&((n=e.pay)==null||n.call(e,t))}var Xu=A({props:{visibility:{type:$(Number,Boolean),required:!0},display:$(Object,String,Function),earned:{type:$(Boolean),required:!0},requirements:$(Object,Array),image:$(String),style:$(String,Object,Array),classes:$(Object),mark:$(Boolean,String),small:$(Boolean),id:{type:String,required:!0}},components:{Node:dt,MarkNode:Pt},setup(e){const{display:t,requirements:n,earned:r}=ue(e),i=ke("");return De(()=>{const s=ae(t);if(s==null){i.value="";return}if(Ae(s)){i.value=H(s);return}const o=H(s.requirement?s.requirement:L(()=>{var d;return Ht((d=ae(n))!=null?d:[])}),"h3"),a=H(s.effectDisplay||"","b"),c=ae(r)?H(s.optionsDisplay||"","span"):"";i.value=H(L(()=>m("span",null,[m(o,null,null),s.effectDisplay!=null?m("div",null,[m(a,null,null)]):null,s.optionsDisplay!=null?m("div",{class:"equal-spaced"},[m(c,null,null)]):null])))}),{comp:i,unref:l,Visibility:Z,isVisible:Se,isHidden:He}}});function Qu(e,t,n,r,i,s){var c;const o=ve("MarkNode"),a=ve("Node");return e.isVisible(e.visibility)?(b(),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:re({feature:!0,achievement:!0,locked:!e.unref(e.earned),done:e.unref(e.earned),small:e.unref(e.small),...e.unref(e.classes)})},[e.comp?(b(),D(ie(e.comp),{key:0})):F("",!0),m(o,{mark:e.unref(e.mark)},null,8,["mark"]),m(a,{id:e.id},null,8,["id"])],6)):F("",!0)}var ec=K(Xu,[["render",Qu],["__scopeId","data-v-5673325a"]]);he.on("setupVue",e=>e.use(ki));function zn(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 tc(){return zn("red","20px")}const nc=Cr(),rc=Symbol("Achievement");let wt=function(e){return e.All="all",e.Configurable="configurable",e.Incomplete="incomplete",e.None="none",e}({});function Vt(e,...t){const n=_e(!1,!1),r=t.reduce((i,s)=>{var o;return Object.assign(i,(o=s.getPersistentData)==null?void 0:o.call(s))},{});return ce(i=>{var c,d,g;const s=(c=e==null?void 0:e.call(i,i))!=null?c:{};s.id=Pe("achievement-"),s.type=rc,s[Ce]=ec;for(const p of t)(d=p.preConstruct)==null||d.call(p,s);s.earned=n,s.complete=function(){var y,w;if(n.value)return;n.value=!0;const p=s;if((y=p.onComplete)==null||y.call(p),p.display!=null&&l(p.showPopups)===!0){const N=l(p.display);let _;Ae(N)?_=H(N):N.requirement!=null?_=H(N.requirement):_=Ht((w=p.requirements)!=null?w:[]),nc.info(m("div",null,[m("h3",null,[M("Achievement earned!")]),m("div",null,[m(_,null,null)])]))}},Object.assign(s,r),k(s,"visibility"),W(s,"visibility",Z.Visible);const o=s.visibility;s.visibility=gi(()=>{const p=l(s.display);switch(Q.msDisplay){default:case wt.All:return l(o);case wt.Configurable:return l(s.earned)&&!(p!=null&&typeof p=="object"&&"optionsDisplay"in p)?Z.None:l(o);case wt.Incomplete:return l(s.earned)?Z.None:l(o);case wt.None:return Z.None}}),k(s,"display"),k(s,"mark"),k(s,"small"),k(s,"image"),k(s,"style"),k(s,"classes"),k(s,"showPopups"),W(s,"showPopups",!0);for(const p of t)(g=p.postConstruct)==null||g.call(p,s);const a=t.reduce((p,y)=>{var w;return Object.assign(p,(w=y.getGatheredProps)==null?void 0:w.call(y,s))},{});if(s[we]=function(){const{visibility:p,display:y,requirements:w,earned:N,image:_,style:E,classes:q,mark:I,small:O,id:j}=this;return{visibility:p,display:y,requirements:w,earned:N,image:_,style:l(E),classes:q,mark:I,small:O,id:j,...a}},s.requirements){const p=s,y=[jn(p),In(()=>!p.earned.value),...Je(s.requirements)?s.requirements:[s.requirements]];De(()=>{Q.active===R.id&&vn(y)&&p.complete()})}return s})}he.on("loadSettings",e=>{W(e,"msDisplay",wt.All)});const ic=Object.values(wt).map(e=>({label:On(e),value:e}));Er(L(()=>m(Bn,{title:L(()=>m("span",{class:"option-title"},[M("Show achievements"),m("desc",null,[M("Select which achievements to display based on criterias.")])])),options:ic,"onUpdate:modelValue":e=>Q.msDisplay=e,modelValue:Q.msDisplay},null)));const sc=A({props:{visibility:{type:$(Number,Boolean),required:!0},onClick:Function,onHold:Function,display:{type:$(Object,String,Function),required:!0},title:$(Object,String,Function),style:$(String,Object,Array),canClick:{type:$(Boolean),required:!0},id:{type:String,required:!0}},components:{Node:dt},setup(e){const{onClick:t,onHold:n,title:r,display:i}=ue(e),{start:s,stop:o}=qn(t,n),a=ut(r),c=It(i);return{start:s,stop:o,titleComponent:a,component:c,Visibility:Z,unref:l,isVisible:Se,isHidden:He}}}),oc={key:0};function ac(e,t,n,r,i,s){var a;const o=ve("Node");return e.isVisible(e.visibility)?(b(),S("button",{key:0,class:re({feature:!0,tile:!0,can:e.unref(e.canClick),locked:!e.unref(e.canClick)}),style:ee([{visibility:e.isHidden(e.visibility)?"hidden":void 0},(a=e.unref(e.style))!=null?a:{}]),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?(b(),S("div",oc,[(b(),D(ie(e.titleComponent)))])):F("",!0),(b(),D(ie(e.component),{style:{"white-space":"pre-line"}})),m(o,{id:e.id},null,8,["id"])],38)):F("",!0)}var lc=K(sc,[["render",ac],["__scopeId","data-v-59906ec6"]]);const uc=A({props:{visibility:{type:$(Number,Boolean),required:!0},rows:{type:$(Number),required:!0},cols:{type:$(Number),required:!0},cells:{type:$(Object),required:!0}},components:{GridCell:lc},setup(){const e=P(()=>rt[Q.theme].mergeAdjacent);function t(n){const{visibility:r,onClick:i,onHold:s,display:o,title:a,style:c,canClick:d,id:g}=n;return{visibility:r,onClick:i,onHold:s,display:o,title:a,style:c,canClick:d,id:g}}return{unref:l,gatherCellProps:t,Visibility:Z,mergeAdjacent:e,isVisible:Se,isHidden:He}}});function cc(e,t,n,r,i,s){const o=ve("GridCell");return e.isVisible(e.visibility)?(b(),S("div",{key:0,style:ee({visibility:e.isHidden(e.visibility)?"hidden":void 0}),class:"table-grid"},[(b(!0),S(U,null,We(e.unref(e.rows),a=>(b(),S("div",{class:re(["row-grid",{mergeAdjacent:e.mergeAdjacent}]),key:a},[(b(!0),S(U,null,We(e.unref(e.cols),c=>(b(),D(o,Ue({key:c},e.gatherCellProps(e.unref(e.cells)[a*100+c])),null,16))),128))],2))),128))],4)):F("",!0)}var dc=K(uc,[["render",cc]]);function fc(e){return new Proxy({},mc(e))}function mc(e){const t=P(()=>{const n=[];for(let r=1;r<=l(e.rows);r++)for(let i=1;i<=l(e.cols);i++)n.push((r*100+i).toString());return n});return{get(n,r){if(r==="isProxy")return!0;if(typeof r=="symbol")return e[r];if(!!t.value.includes(r.toString()))return n[r]==null&&(n[r]=new Proxy(e,pc(r.toString()))),n[r]},set(n,r,i){return console.warn("Cannot set grid cells",n,r,i),!1},ownKeys(){return t.value},has(n,r){return t.value.includes(r.toString())},getOwnPropertyDescriptor(n,r){if(t.value.includes(r.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function pc(e){const t=["id","visibility","canClick","startState","state","style","classes","title","display","onClick","onHold"],n={};return{get(r,i,s){if(i==="isProxy")return!0;let o=r[i];return gt(o)?()=>o.call(s,e,r.getState(e)):o!=null||typeof i=="symbol"?o:(i=i.slice(0,1).toUpperCase()+i.slice(1),i==="startState"?o.call(s,e):(o=r[`get${i}`],gt(o)?(i in n||(n[i]=P(()=>o.call(s,e,r.getState(e)))),n[i].value):o!=null?l(o):(o=r[`on${i}`],gt(o)?()=>o.call(s,e,r.getState(e)):o!=null?o:r[i])))},set(r,i,s,o){return i=`set${i.slice(0,1).toUpperCase()+i.slice(1)}`,i in r&>(r[i])&&r[i].length<3?(r[i].call(o,e,s),!0):(console.warn(`No setter for "${i}".`,r),!1)},ownKeys(){return t},has(r,i){return t.includes(i.toString())},getOwnPropertyDescriptor(r,i){if(t.includes(i.toString()))return{configurable:!0,enumerable:!0,writable:!1}}}}function gc(e){const t=_e({},!1);return ce(n=>{const r=e.call(n,n);if(r.id=Pe("grid-"),r[Ce]=dc,r.cellState=t,r.getID=function(i){return r.id+"-"+i},r.getState=function(i){return this.cellState.value[i]!=null?t.value[i]:this.cells[i].startState},r.setState=function(i,s){t.value[i]=s},r.cells=fc(r),k(r,"visibility"),W(r,"visibility",Z.Visible),k(r,"rows"),k(r,"cols"),k(r,"getVisibility"),W(r,"getVisibility",Z.Visible),k(r,"getCanClick"),W(r,"getCanClick",!0),k(r,"getStartState"),k(r,"getStyle"),k(r,"getClasses"),k(r,"getTitle"),k(r,"getDisplay"),r.onClick){const i=r.onClick.bind(r);r.onClick=function(s,o,a){l(r.cells[s].canClick)&&i(s,o,a)}}if(r.onHold){const i=r.onHold.bind(r);r.onHold=function(s,o){l(r.cells[s].canClick)&&i(s,o)}}return r[we]=function(){const{visibility:i,rows:s,cols:o,cells:a,id:c}=this;return{visibility:i,rows:s,cols:o,cells:a,id:c}},r})}function St(e,t){return k(t,"display"),k(t,"classes"),k(t,"style"),k(t,"direction"),W(t,"direction",J.Up),k(t,"xoffset"),k(t,"yoffset"),t.pinnable&&(t.pinned=_e(!1,!1)),tt(()=>{const n=e[Ce];e[Ce]=me;const r=e[we].bind(e);e[we]=function(){const{display:s,classes:o,style:a,direction:c,xoffset:d,yoffset:g,pinned:p}=this;return{element:{[Ce]:n,[we]:r},display:s,classes:o,style:l(a),direction:c,xoffset:d,yoffset:g,pinned:p}}.bind(t)}),t}const vc=["x1","y1","x2","y2"],hc=A({__name:"Link",props:{link:null,startNode:null,endNode:null,boundingRect:null},setup(e){const t=e,n=ue(t),r=P(()=>{const o=n.startNode.value.rect,a=n.boundingRect.value,c=a?{x:o.x+o.width/2-a.x,y:o.y+o.height/2-a.y}:{x:0,y:0};return n.link.value.offsetStart&&(c.x+=n.link.value.offsetStart.x,c.y+=n.link.value.offsetStart.y),c}),i=P(()=>{const o=n.endNode.value.rect,a=n.boundingRect.value,c=a?{x:o.x+o.width/2-a.x,y:o.y+o.height/2-a.y}:{x:0,y:0};return n.link.value.offsetEnd&&(c.x+=n.link.value.offsetEnd.x,c.y+=n.link.value.offsetEnd.y),c}),s=P(()=>eo(t.link));return(o,a)=>(b(),S("line",Ue({"stroke-width":"15px",stroke:"white"},l(s),{x1:l(r).x,y1:l(r).y,x2:l(i).x,y2:l(i).y}),null,16,vc))}});const bc=A({__name:"Links",props:{links:null},setup(e){var c;const n=nt(e,"links"),r=V(null),i=ln(Rn,V({})),s=ln(An,V(void 0)),o=V((c=r.value)==null?void 0:c.getBoundingClientRect());je(s,()=>{var d;return o.value=(d=r.value)==null?void 0:d.getBoundingClientRect()}),Mt(()=>{var d;return o.value=(d=r.value)==null?void 0:d.getBoundingClientRect()});const a=P(()=>{var g,p;const d=i.value;return(p=(g=n.value)==null?void 0:g.filter(y=>{var w,N;return((w=d[y.startNode.id])==null?void 0:w.rect)&&((N=d[y.startNode.id])==null?void 0:N.rect)}))!=null?p:[]});return(d,g)=>(b(),S(U,null,[l(a)?(b(),S("svg",vi(Ue({key:0},d.$attrs)),[(b(!0),S(U,null,We(l(a),(p,y)=>(b(),D(hc,{key:y,link:p,boundingRect:o.value,startNode:l(i)[p.startNode.id],endNode:l(i)[p.endNode.id]},null,8,["link","boundingRect","startNode","endNode"]))),128))],16)):F("",!0),v("div",{ref_key:"resizeListener",ref:r,class:"resize-listener"},null,512)],64))}});var Hr=K(bc,[["__scopeId","data-v-c139d80e"]]),yc=A({props:{nodes:{type:$(Array),required:!0},leftSideNodes:$(Array),rightSideNodes:$(Array),branches:$(Array)},components:{Links:Hr},setup(e){const{nodes:t,leftSideNodes:n,rightSideNodes:r}=ue(e),i=ke();De(()=>{const a=ae(t);i.value=H(L(()=>m(U,null,[a.map(c=>m("span",{class:"row tree-row",style:"margin: 50px auto;"},[c.map(xe)]))])))});const s=ke();De(()=>{const a=ae(n);s.value=a?H(L(()=>m("span",{class:"left-side-nodes small"},[a.map(xe)]))):""});const o=ke();return De(()=>{const a=ae(r);o.value=a?H(L(()=>m("span",{class:"side-nodes small"},[a.map(xe)]))):""}),{unref:l,nodesComp:i,leftNodesComp:s,rightNodesComp:o}}});function _c(e,t,n,r,i,s){const o=ve("Links");return b(),S(U,null,[(b(),D(ie(e.nodesComp))),e.leftNodesComp?(b(),D(ie(e.leftNodesComp),{key:0})):F("",!0),e.rightNodesComp?(b(),D(ie(e.rightNodesComp),{key:1})):F("",!0),e.branches?(b(),D(o,{key:2,links:e.unref(e.branches)},null,8,["links"])):F("",!0)],64)}var Cc=K(yc,[["render",_c],["__scopeId","data-v-39ca96d0"]]);const wc=A({props:{display:$(Object,String,Function),visibility:{type:$(Number,Boolean),required:!0},style:$(String,Object,Array),classes:$(Object),onClick:Function,onHold:Function,color:$(String),glowColor:$(String),canClick:{type:$(Boolean),required:!0},mark:$(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:Pt,Node:dt},setup(e){const{onClick:t,onHold:n,display:r}=ue(e),i=ut(r),{start:s,stop:o}=qn(t,n);return{start:s,stop:o,comp:i,unref:l,Visibility:Z,isCoercableComponent:Ae,isVisible:Se,isHidden:He}}});function kc(e,t,n,r,i,s){var c;const o=ve("MarkNode"),a=ve("Node");return e.isVisible(e.visibility)?(b(),S("div",{key:0,style:ee({visibility:e.isHidden(e.visibility)?"hidden":void 0}),class:re({treeNode:!0,can:e.unref(e.canClick),...e.unref(e.classes)}),onClick:t[0]||(t[0]=(...d)=>e.onClick&&e.onClick(...d)),onMousedown:t[1]||(t[1]=(...d)=>e.start&&e.start(...d)),onMouseleave:t[2]||(t[2]=(...d)=>e.stop&&e.stop(...d)),onMouseup:t[3]||(t[3]=(...d)=>e.stop&&e.stop(...d)),onTouchstartPassive:t[4]||(t[4]=(...d)=>e.start&&e.start(...d)),onTouchendPassive:t[5]||(t[5]=(...d)=>e.stop&&e.stop(...d)),onTouchcancelPassive:t[6]||(t[6]=(...d)=>e.stop&&e.stop(...d))},[v("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:[]])},[(b(),D(ie(e.unref(e.comp))))],4),m(o,{mark:e.unref(e.mark)},null,8,["mark"]),m(a,{id:e.id},null,8,["id"])],38)):F("",!0)}var Nc=K(wc,[["render",kc],["__scopeId","data-v-727230a6"]]);const Sc=Symbol("TreeNode"),Ic=Symbol("Tree");function Dt(e,...t){const n=t.reduce((r,i)=>{var s;return Object.assign(r,(s=i.getPersistentData)==null?void 0:s.call(i))},{});return ce(r=>{var o,a,c;const i=(o=e==null?void 0:e.call(r,r))!=null?o:{};i.id=Pe("treeNode-"),i.type=Sc,i[Ce]=Nc;for(const d of t)(a=d.preConstruct)==null||a.call(d,i);Object.assign(n),k(i,"visibility"),W(i,"visibility",Z.Visible),k(i,"canClick"),W(i,"canClick",!0),k(i,"color"),k(i,"display"),k(i,"glowColor"),k(i,"classes"),k(i,"style"),k(i,"mark");for(const d of t)(c=d.postConstruct)==null||c.call(d,i);if(i.onClick){const d=i.onClick.bind(i);i.onClick=function(g){l(i.canClick)!==!1&&d(g)}}if(i.onHold){const d=i.onHold.bind(i);i.onHold=function(){l(i.canClick)!==!1&&d()}}const s=t.reduce((d,g)=>{var p;return Object.assign(d,(p=g.getGatheredProps)==null?void 0:p.call(g,i))},{});return i[we]=function(){const{display:d,visibility:g,style:p,classes:y,onClick:w,onHold:N,color:_,glowColor:E,canClick:q,mark:I,id:O}=this;return{display:d,visibility:g,style:p,classes:y,onClick:w,onHold:N,color:_,glowColor:E,canClick:q,mark:I,id:O,...s}},i})}function Wr(e){return ce(t=>{const n=e.call(t,t);return n.id=Pe("tree-"),n.type=Ic,n[Ce]=Cc,n.isResetting=V(!1),n.resettingNode=ke(null),n.reset=function(r){var s,o;const i=n;i.isResetting.value=!0,i.resettingNode.value=r,(s=i.resetPropagation)==null||s.call(i,i,r),(o=i.onReset)==null||o.call(i,r),i.isResetting.value=!1,i.resettingNode.value=null},n.links=P(()=>{var i;return(i=l(n.branches))!=null?i:[]}),k(n,"visibility"),W(n,"visibility",Z.Visible),k(n,"nodes"),k(n,"leftSideNodes"),k(n,"rightSideNodes"),k(n,"branches"),n[we]=function(){const{nodes:r,leftSideNodes:i,rightSideNodes:s,branches:o}=this;return{nodes:r,leftSideNodes:i,rightSideNodes:s,branches:o}},n})}const $c=function(e,t){var s;const n=l(e.branches);if(n==null)return;const r=[];let i=[t];for(;i.length!=0;){const o=[];for(const a of i)for(const c of n.filter(d=>d.startNode===a))[...r,...i].includes(c.endNode)||(o.push(c.endNode),(s=c.endNode.reset)==null||s.reset());r.push(...i),i=o}};function Kr(e,t=null,n=0){const r=Fe(n);return P(()=>t==null||u.gte(e.value,l(r))?Ze(e)+" "+e.displayName:`Reach ${u.eq(t.precision,0)?Te(l(r)):Ne(l(r),t.precision)} ${t.displayName} to unlock (You have ${u.eq(t.precision,0)?Te(t.value):Ne(t.value,t.precision)})`)}const mr="a",$n=Gt(mr,()=>{const e="yellow",t="Achievements",n=Ut(0,"achievement power"),r=Dt(()=>({display:"A",color:e,tooltip:{display:"Achievements",right:!0},onClick(){ne.showAchievements()}})),i=Vt(()=>({image:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",display:"Get me!",requirements:[],small:!0}));St(i,{display(){return i.earned.value?"You did it!":"How did this happen?"},direction:J.Down});const s=Vt(()=>({display:"Impossible!",style:{color:"#04e050"}}));St(s,{display(){return s.earned.value?"HOW????":"Mwahahaha!"},direction:J.Down});const o=Vt(()=>({display:"EIEIO",requirements:[],onComplete(){console.log("Bork bork bork!")},small:!0}));St(o,{display:`Get a farm point. + +Reward: The dinosaur is now your friend (you can max Farm Points).`,direction:J.Down});const a=[i,s,o],c=gc(()=>({rows:2,cols:2,getStartState(g){return g},getStyle(g,p){return{backgroundColor:`#${Number(p)*1234%999999}`}},getTitle(g){let p="";return g==="101"?p="top":g==="102"?p="bottom":g==="201"?p="left":g==="202"&&(p="right"),L(()=>m(me,Ue({display:JSON.stringify(this.cells[g].style)},{[p]:!0}),{default:()=>[m("h3",null,[M("Gridable #"),g])]}))},getDisplay(g,p){return String(p)},getCanClick(){return u.eq(ne.points.value,10)},onClick(g,p){this.cells[g].state=Number(p)+1}})),d=L(()=>m(U,null,[Ve(...a),Ve(c)]));return{id:mr,color:e,name:t,points:n,achievements:a,grid:c,treeNode:r,display:d}});const Mc={class:"field"},Tc={key:0,class:"field-title"},Pc=["min","max"],Oc=A({__name:"Slider",props:{title:null,modelValue:null,min:null,max:null},emits:["update:modelValue"],setup(e,{emit:t}){const r=ue(e),i=P({get(){var s;return String((s=l(r.modelValue))!=null?s:0)},set(s){t("update:modelValue",Number(s))}});return(s,o)=>(b(),S("div",Mc,[e.title?(b(),S("span",Tc,G(e.title),1)):F("",!0),m(me,{display:`${l(i)}`,class:re({fullWidth:!e.title}),direction:l(J).Down},{default:x(()=>[mn(v("input",{type:"range","onUpdate:modelValue":o[0]||(o[0]=a=>ye(i)?i.value=a:null),min:e.min,max:e.max},null,8,Pc),[[yr,l(i)]])]),_:1},8,["display","class","direction"])]))}});var Fc=K(Oc,[["__scopeId","data-v-267283ff"]]);const Ec=A({__name:"Sticky",setup(e){const t=V("0"),n=new ResizeObserver(i),r=ke(null);function i(){let s=r.value;if(s==null)return;let o=0;for(;s.previousSibling;){const a=s.previousSibling;a.dataset&&"vSticky"in a.dataset&&(o+=a.offsetHeight),s=a}t.value=o+"px"}return tt(i),document.fonts.ready.then(i),Mt(()=>{var o;const s=(o=r.value)==null?void 0:o.parentElement;s&&n.observe(s)}),(s,o)=>(b(),S("div",{class:"sticky",style:ee({top:t.value}),ref_key:"element",ref:r,"data-v-sticky":""},[Ye(s.$slots,"default",{},void 0,!0)],4))}});var dn=K(Ec,[["__scopeId","data-v-cccac690"]]);const qc=A({__name:"VerticalRule",props:{height:null},setup(e){return(t,n)=>(b(),S("div",{class:"vr",style:ee({height:e.height})},null,4))}});var Vc=K(qc,[["__scopeId","data-v-5e0a978a"]]);var Dc=A({props:{display:{type:$(Object,String,Function),required:!0},visibility:{type:$(Number,Boolean),required:!0},style:$(Object,String,Array),classes:$(Object),onClick:Function,onHold:Function,canClick:{type:$(Boolean),required:!0},small:Boolean,mark:$(Boolean,String),id:{type:String,required:!0}},components:{Node:dt,MarkNode:Pt},setup(e){const{display:t,onClick:n,onHold:r}=ue(e),i=ke("");De(()=>{var g;const a=ae(t);if(a==null){i.value="";return}if(Ae(a)){i.value=H(a);return}const c=H((g=a.title)!=null?g:"","h3"),d=H(a.description,"div");i.value=H(L(()=>m("span",null,[a.title!=null?m("div",null,[m(c,null,null)]):null,m(d,null,null)])))});const{start:s,stop:o}=qn(n,r);return{start:s,stop:o,comp:i,Visibility:Z,isVisible:Se,isHidden:He,unref:l}}});function Rc(e,t,n,r,i,s){var c;const o=ve("MarkNode"),a=ve("Node");return e.isVisible(e.visibility)?(b(),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]=(...d)=>e.onClick&&e.onClick(...d)),onMousedown:t[1]||(t[1]=(...d)=>e.start&&e.start(...d)),onMouseleave:t[2]||(t[2]=(...d)=>e.stop&&e.stop(...d)),onMouseup:t[3]||(t[3]=(...d)=>e.stop&&e.stop(...d)),onTouchstartPassive:t[4]||(t[4]=(...d)=>e.start&&e.start(...d)),onTouchendPassive:t[5]||(t[5]=(...d)=>e.stop&&e.stop(...d)),onTouchcancelPassive:t[6]||(t[6]=(...d)=>e.stop&&e.stop(...d)),class:re({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)?(b(),D(ie(e.unref(e.comp)),{key:0})):F("",!0),m(o,{mark:e.unref(e.mark)},null,8,["mark"]),m(a,{id:e.id},null,8,["id"])],38)):F("",!0)}var Yr=K(Dc,[["render",Rc],["__scopeId","data-v-211328c0"]]);const Ac=Symbol("Clickable");function zt(e,...t){const n=t.reduce((r,i)=>{var s;return Object.assign(r,(s=i.getPersistentData)==null?void 0:s.call(i))},{});return ce(r=>{var o,a,c;const i=(o=e==null?void 0:e.call(r,r))!=null?o:{};i.id=Pe("clickable-"),i.type=Ac,i[Ce]=Yr;for(const d of t)(a=d.preConstruct)==null||a.call(d,i);if(Object.assign(i,n),k(i,"visibility"),W(i,"visibility",Z.Visible),k(i,"canClick"),W(i,"canClick",!0),k(i,"classes"),k(i,"style"),k(i,"mark"),k(i,"display"),i.onClick){const d=i.onClick.bind(i);i.onClick=function(g){l(i.canClick)!==!1&&d(g)}}if(i.onHold){const d=i.onHold.bind(i);i.onHold=function(){l(i.canClick)!==!1&&d()}}for(const d of t)(c=d.postConstruct)==null||c.call(d,i);const s=t.reduce((d,g)=>{var p;return Object.assign(d,(p=g.getGatheredProps)==null?void 0:p.call(g,i))},{});return i[we]=function(){const{display:d,visibility:g,style:p,classes:y,onClick:w,onHold:N,canClick:_,small:E,mark:q,id:I}=this;return{display:d,visibility:g,style:l(p),classes:y,onClick:w,onHold:N,canClick:_,small:E,mark:q,id:I,...s}},i})}function Jr(e){return zt(t=>{const n=e.call(t,t);k(n,"showNextAt"),W(n,"showNextAt",!0),W(n,"minimumGain",1),n.resetDescription==null?n.resetDescription=P(()=>u.lt(n.conversion.gainResource.value,1e3)?"Reset for ":""):k(n,"resetDescription"),n.display==null&&(n.display=L(()=>m("span",null,[l(n.resetDescription),m("b",null,[Ze(n.conversion.gainResource,u.max(l(n.conversion.actualGain),l(n.minimumGain)))])," ",n.conversion.gainResource.displayName,l(n.showNextAt)!=null?m("div",null,[m("br",null,null),l(n.conversion.buyMax)?"Next:":"Req:"," ",Ze(n.conversion.baseResource,!l(n.conversion.buyMax)&&u.gte(l(n.conversion.actualGain),1)?l(n.conversion.currentAt):l(n.conversion.nextAt))," ",n.conversion.baseResource.displayName]):null]))),n.canClick==null&&(n.canClick=P(()=>u.gte(l(n.conversion.actualGain),l(n.minimumGain))));const r=n.onClick;return n.onClick=function(i){l(n.canClick)!==!1&&(n.conversion.convert(),n.tree.reset(n.treeNode),n.resetTime&&(n.resetTime.value=n.resetTime[lt]),r==null||r(i))},n})}function Zr(e){return Dt(t=>{const n=e.call(t,t);return W(n,"display",On(n.layerID)),k(n,"append"),{...n,onClick:l(n.append)?function(){if(R.tabs.includes(n.layerID)){const r=R.tabs.lastIndexOf(n.layerID);R.tabs.splice(r,1)}else R.tabs.push(n.layerID)}:function(){R.tabs.splice(1,1,n.layerID)}}})}const Bc=A({props:{progress:{type:$(String,Object,Number),required:!0},width:{type:$(Number),required:!0},height:{type:$(Number),required:!0},direction:{type:$(String),required:!0},display:$(Object,String,Function),visibility:{type:$(Number,Boolean),required:!0},style:$(Object,String,Array),classes:$(Object),borderStyle:$(Object,String,Array),textStyle:$(Object,String,Array),baseStyle:$(Object,String,Array),fillStyle:$(Object,String,Array),mark:$(Boolean,String),id:{type:String,required:!0}},components:{MarkNode:Pt,Node:dt},setup(e){const{progress:t,width:n,height:r,direction:i,display:s}=ue(e),o=P(()=>{let d=t.value instanceof u?t.value.toNumber():Number(t.value);return(1-Math.min(Math.max(d,0),1))*100}),a=P(()=>{const d={width:ae(n)+.5+"px",height:ae(r)+.5+"px"};switch(l(i)){case J.Up:d.clipPath=`inset(${o.value}% 0% 0% 0%)`,d.width=ae(n)+1+"px";break;case J.Down:d.clipPath=`inset(0% 0% ${o.value}% 0%)`,d.width=ae(n)+1+"px";break;case J.Right:d.clipPath=`inset(0% ${o.value}% 0% 0%)`;break;case J.Left:d.clipPath=`inset(0% 0% 0% ${o.value}%)`;break;case J.Default:d.clipPath="inset(0% 50% 0% 0%)";break}return d}),c=ut(s);return{normalizedProgress:o,barStyle:a,component:c,unref:l,Visibility:Z,isVisible:Se,isHidden:He}}});function Lc(e,t,n,r,i,s){var c,d,g,p,y,w,N;const o=ve("MarkNode"),a=ve("Node");return e.isVisible(e.visibility)?(b(),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:re({bar:!0,...e.unref(e.classes)})},[v("div",{class:"overlayTextContainer border",style:ee([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px"},(d=e.unref(e.borderStyle))!=null?d:{}])},[e.component?(b(),S("span",{key:0,class:"overlayText",style:ee(e.unref(e.textStyle))},[(b(),D(ie(e.component)))],4)):F("",!0)],4),v("div",{class:"border",style:ee([{width:e.unref(e.width)+"px",height:e.unref(e.height)+"px"},(g=e.unref(e.style))!=null?g:{},(p=e.unref(e.baseStyle))!=null?p:{},(y=e.unref(e.borderStyle))!=null?y:{}])},[v("div",{class:"fill",style:ee([e.barStyle,(w=e.unref(e.style))!=null?w:{},(N=e.unref(e.fillStyle))!=null?N:{}])},null,4)],4),m(o,{mark:e.unref(e.mark)},null,8,["mark"]),m(a,{id:e.id},null,8,["id"])],6)):F("",!0)}var xc=K(Bc,[["render",Lc],["__scopeId","data-v-10cb85f8"]]);const jc=Symbol("Bar");function wn(e,...t){const n=t.reduce((r,i)=>{var s;return Object.assign(r,(s=i.getPersistentData)==null?void 0:s.call(i))},{});return ce(r=>{var o,a;const i=e.call(r,r);i.id=Pe("bar-"),i.type=jc,i[Ce]=xc;for(const c of t)(o=c.preConstruct)==null||o.call(c,i);Object.assign(i,n),k(i,"visibility"),W(i,"visibility",Z.Visible),k(i,"width"),k(i,"height"),k(i,"direction"),k(i,"style"),k(i,"classes"),k(i,"borderStyle"),k(i,"baseStyle"),k(i,"textStyle"),k(i,"fillStyle"),k(i,"progress"),k(i,"display"),k(i,"mark");for(const c of t)(a=c.postConstruct)==null||a.call(c,i);const s=t.reduce((c,d)=>{var g;return Object.assign(c,(g=d.getGatheredProps)==null?void 0:g.call(d,i))},{});return i[we]=function(){const{progress:c,width:d,height:g,direction:p,display:y,visibility:w,style:N,classes:_,borderStyle:E,textStyle:q,baseStyle:I,fillStyle:O,mark:j,id:le}=this;return{progress:c,width:d,height:g,direction:p,display:y,visibility:w,style:l(N),classes:_,borderStyle:E,textStyle:q,baseStyle:I,fillStyle:O,mark:j,id:le,...s}},i})}var Uc=A({props:{active:{type:$(Boolean),required:!0},maxed:{type:$(Boolean),required:!0},canComplete:{type:$(Boolean),required:!0},display:$(String,Object,Function),requirements:$(Object,Array),visibility:{type:$(Number,Boolean),required:!0},style:$(String,Object,Array),classes:$(Object),completed:{type:$(Boolean),required:!0},canStart:{type:$(Boolean),required:!0},mark:$(Boolean,String),id:{type:String,required:!0},toggle:{type:Function,required:!0}},components:{MarkNode:Pt,Node:dt},setup(e){const{active:t,maxed:n,canComplete:r,display:i,requirements:s}=ue(e),o=P(()=>t.value?r.value?"Finish":"Exit Early":n.value?"Completed":"Start"),a=ke(""),c=P(()=>{const d=ae(t),g=ae(r);return d?g?tc():zn():{}});return De(()=>{const d=ae(i);if(d==null){a.value="";return}if(Ae(d)){a.value=H(d);return}const g=H(d.title||"","h3"),p=H(d.description,"div"),y=H(d.goal!=null?d.goal:L(()=>{var _;return Ht((_=ae(s))!=null?_:[])}),"h3"),w=H(d.reward||""),N=H(d.effectDisplay||"");a.value=H(L(()=>m("span",null,[d.title!=null?m("div",null,[m(g,null,null)]):null,m(p,null,null),m("div",null,[m("br",null,null),M("Goal: "),m(y,null,null)]),d.reward!=null?m("div",null,[m("br",null,null),M("Reward: "),m(w,null,null)]):null,d.effectDisplay!=null?m("div",null,[M("Currently: "),m(N,null,null)]):null])))}),{buttonText:o,notifyStyle:c,comp:a,Visibility:Z,isVisible:Se,isHidden:He,unref:l}}});const zc=["disabled"];function Gc(e,t,n,r,i,s){var c;const o=ve("MarkNode"),a=ve("Node");return e.isVisible(e.visibility)?(b(),S("div",{key:0,style:ee([{visibility:e.isHidden(e.visibility)?"hidden":void 0},e.notifyStyle,(c=e.unref(e.style))!=null?c:{}]),class:re({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)})},[v("button",{class:"toggleChallenge",onClick:t[0]||(t[0]=(...d)=>e.toggle&&e.toggle(...d)),disabled:!e.unref(e.canStart)||e.unref(e.maxed)},G(e.buttonText),9,zc),e.unref(e.comp)?(b(),D(ie(e.unref(e.comp)),{key:0})):F("",!0),m(o,{mark:e.unref(e.mark)},null,8,["mark"]),m(a,{id:e.id},null,8,["id"])],6)):F("",!0)}var Hc=K(Uc,[["render",Gc],["__scopeId","data-v-2b675972"]]);const Wc=Symbol("Challenge");function Kc(e,...t){const n=_e(0),r=_e(!1,!1),i=t.reduce((s,o)=>{var a;return Object.assign(s,(a=o.getPersistentData)==null?void 0:a.call(o))},{});return ce(s=>{var d,g;const o=e.call(s,s);o.id=Pe("challenge-"),o.type=Wc,o[Ce]=Hc;for(const p of t)(d=p.preConstruct)==null||d.call(p,o);o.completions=n,o.active=r,Object.assign(o,i),o.completed=P(()=>u.gt(o.completions.value,0)),o.maxed=P(()=>u.gte(o.completions.value,l(o.completionLimit))),o.toggle=function(){var y,w,N,_,E;const p=o;if(p.active.value){if(u.gt(l(p.canComplete),0)&&!p.maxed.value){const q=l(p.canComplete);p.completions.value=u.min(u.add(p.completions.value,q),l(p.completionLimit)),(y=p.onComplete)==null||y.call(p)}p.active.value=!1,(w=p.onExit)==null||w.call(p),(N=p.reset)==null||N.reset()}else l(p.canStart)&&Se(p.visibility)&&!p.maxed.value&&((_=p.reset)==null||_.reset(),p.active.value=!0,(E=p.onEnter)==null||E.call(p))},o.canComplete=P(()=>Un(o.requirements)),o.complete=function(p){var N,_,E;const y=o,w=l(y.canComplete);y.active.value&&u.gt(w,0)&&!y.maxed.value&&(y.completions.value=u.min(u.add(y.completions.value,w),l(y.completionLimit)),(N=y.onComplete)==null||N.call(y),p!==!0&&(y.active.value=!1,(_=y.onExit)==null||_.call(y),(E=y.reset)==null||E.reset()))},k(o,"visibility"),W(o,"visibility",Z.Visible);const a=o.visibility;o.visibility=P(()=>Q.hideChallenges===!0&&l(o.maxed)?Z.None:l(a)),o.mark==null&&(o.mark=P(()=>u.gt(l(o.completionLimit),1)&&!!l(o.maxed))),k(o,"canStart"),W(o,"canStart",!0),k(o,"completionLimit"),W(o,"completionLimit",1),k(o,"mark"),k(o,"classes"),k(o,"style"),k(o,"display"),o.reset!=null&&he.on("reset",p=>{p===o.reset&&o.active.value&&o.toggle()});for(const p of t)(g=p.postConstruct)==null||g.call(p,o);const c=t.reduce((p,y)=>{var w;return Object.assign(p,(w=y.getGatheredProps)==null?void 0:w.call(y,o))},{});return o[we]=function(){const{active:p,maxed:y,canComplete:w,display:N,visibility:_,style:E,classes:q,completed:I,canStart:O,mark:j,id:le,toggle:se,requirements:B}=this;return{active:p,maxed:y,canComplete:w,display:N,visibility:_,style:l(E),classes:q,completed:I,canStart:O,mark:j,id:le,toggle:se,requirements:B,...c}},o})}he.on("loadSettings",e=>{W(e,"hideChallenges",!1)});Er(L(()=>m(Me,{title:L(()=>m("span",{class:"option-title"},[M("Hide maxed challenges"),m("desc",null,[M("Hide challenges that have been fully completed.")])])),"onUpdate:modelValue":e=>Q.hideChallenges=e,modelValue:Q.hideChallenges},null)));function Xr(e,...t){return ce(n=>{var i,s;const r=e.call(n,n);for(const o of t)(i=o.preConstruct)==null||i.call(o,r);r.formula=r.formula(f.variable(r.baseResource)),r.currentGain==null&&(r.currentGain=P(()=>{let o=u.floor(r.formula.evaluate(r.baseResource.value)).max(0);return l(r.buyMax)===!1&&(o=o.min(1)),o})),r.actualGain==null&&(r.actualGain=r.currentGain),r.currentAt==null&&(r.currentAt=P(()=>r.formula.invert(u.floor(l(r.currentGain))))),r.nextAt==null&&(r.nextAt=P(()=>r.formula.invert(u.floor(l(r.currentGain)).add(1)))),r.convert==null&&(r.convert=function(){var a;const o=l(r.currentGain);r.gainResource.value=u.add(r.gainResource.value,o),r.spend(o),(a=r.onConvert)==null||a.call(r,o)}),r.spend==null&&(r.spend=function(){r.baseResource.value=0}),k(r,"currentGain"),k(r,"actualGain"),k(r,"currentAt"),k(r,"nextAt"),k(r,"buyMax"),W(r,"buyMax",!0);for(const o of t)(s=o.postConstruct)==null||s.call(o,r);return r})}function Yc(e){return Xr(e)}function Jc(e){return Xr(t=>{const n=e.call(t,t);return W(n,"buyMax",!1),n.currentGain==null&&(n.currentGain=P(()=>{let r=u.floor(n.formula.evaluate(n.baseResource.value)).max(n.gainResource.value);return l(n.buyMax)===!1&&(r=r.min(u.add(n.gainResource.value,1))),r})),n.actualGain==null&&(n.actualGain=P(()=>{let r=u.sub(n.formula.evaluate(n.baseResource.value),n.gainResource.value).floor().max(0);return l(n.buyMax)===!1&&(r=r.min(1)),r})),W(n,"convert",function(){var i;const r=l(n.actualGain);n.gainResource.value=l(n.currentGain),n.spend(r),(i=n.onConvert)==null||i.call(n,r)}),n})}const Qr=e=>(ze("data-v-5e2d38ce"),e=e(),Ge(),e),Zc=Qr(()=>v("div",{class:"key"},"Ctrl",-1)),Xc=Qr(()=>v("div",{class:"key"},"Shift",-1)),Qc={class:"key"},ed=A({__name:"Hotkey",props:{hotkey:null},setup(e){const t=e;let n="",r=!1,i=!1,s=!1;return De(()=>{n=t.hotkey.key,r=n.startsWith("ctrl+"),r&&(n=n.slice(5)),i=n.startsWith("shift+"),i&&(n=n.slice(6)),s=n.length==1&&n.toLowerCase()!=n.toUpperCase(),s&&(n=n.toUpperCase())}),(o,a)=>(b(),S(U,null,[l(r)?(b(),S(U,{key:0},[Zc,M("+")],64)):F("",!0),l(i)?(b(),S(U,{key:1},[Xc,M("+")],64)):F("",!0),v("div",Qc,G(l(n)),1)],64))}});var td=K(ed,[["__scopeId","data-v-5e2d38ce"]]);const hn=fn({}),Gn=Symbol("Hotkey"),pr=[")","!","@","#","$","%","^","&","*","("];function gr(e){return ce(t=>{const n=e.call(t,t);return n.type=Gn,k(n,"enabled"),W(n,"enabled",!0),k(n,"description"),n})}he.on("addLayer",e=>{Pr(e,Gn).forEach(t=>{hn[t.key]=t})});he.on("removeLayer",e=>{Pr(e,Gn).forEach(t=>{hn[t.key]=void 0})});document.onkeydown=function(e){var r;if(((r=e.target)==null?void 0:r.tagName)==="INPUT"||Hn.value&&!R.keepGoing)return;let t=e.key;pr.includes(t)?t="shift+"+pr.indexOf(t):e.shiftKey&&(t="shift+"+t),e.ctrlKey&&(t="ctrl+"+t);const n=hn[t];n&&l(n.enabled)&&(e.preventDefault(),n.onPress())};Ys(L(()=>{const e=Object.values(hn).filter(t=>l(t==null?void 0:t.enabled));return e.length===0?"":m("div",null,[m("br",null,null),m("h4",null,[M("Hotkeys")]),m("div",{style:"column-count: 2"},[e.map(t=>m("div",null,[m(td,{hotkey:t},null),M(" "),t==null?void 0:t.description]))])])}));const nd=A({props:{visibility:{type:$(Number,Boolean),required:!0},display:{type:$(Object,String,Function),required:!0},title:{type:$(Object,String,Function),required:!0},color:$(String),collapsed:{type:Object,required:!0},style:$(Object,String,Array),titleStyle:$(Object,String,Array),bodyStyle:$(Object,String,Array),classes:$(Object),id:{type:String,required:!0}},components:{Node:dt,CollapseTransition:yi},setup(e){const{title:t,display:n}=ue(e),r=It(t),i=It(n),s=P(()=>rt[Q.theme].mergeAdjacent);return{titleComponent:r,bodyComponent:i,stacked:s,unref:l,Visibility:Z,isVisible:Se,isHidden:He}}}),rd=e=>(ze("data-v-0f2462b8"),e=e(),Ge(),e),id=rd(()=>v("span",{class:"toggle"},"\u25BC",-1));function sd(e,t,n,r,i,s){var c;const o=ve("CollapseTransition"),a=ve("Node");return e.isVisible(e.visibility)?(b(),S("div",{key:0,class:re(["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:{}])},[v("button",{class:"title",style:ee([{backgroundColor:e.unref(e.color)},e.unref(e.titleStyle)||[]]),onClick:t[0]||(t[0]=d=>e.collapsed.value=!e.unref(e.collapsed))},[id,(b(),D(ie(e.titleComponent)))],4),m(o,null,{default:x(()=>[e.unref(e.collapsed)?F("",!0):(b(),S("div",{key:0,class:"body",style:ee({backgroundColor:e.unref(e.color)})},[(b(),D(ie(e.bodyComponent),{style:ee(e.unref(e.bodyStyle))},null,8,["style"]))],4))]),_:1}),m(a,{id:e.id},null,8,["id"])],6)):F("",!0)}var od=K(nd,[["render",sd],["__scopeId","data-v-0f2462b8"]]);const ad=Symbol("Infobox");function ei(e){const t=_e(!1,!1);return ce(n=>{const r=e.call(n,n);return r.id=Pe("infobox-"),r.type=ad,r[Ce]=od,r.collapsed=t,k(r,"visibility"),W(r,"visibility",Z.Visible),k(r,"color"),k(r,"style"),k(r,"titleStyle"),k(r,"bodyStyle"),k(r,"classes"),k(r,"title"),k(r,"display"),r[we]=function(){const{visibility:i,display:s,title:o,color:a,collapsed:c,style:d,titleStyle:g,bodyStyle:p,classes:y,id:w}=this;return{visibility:i,display:s,title:o,color:a,collapsed:c,style:l(d),titleStyle:g,bodyStyle:p,classes:y,id:w}},r})}const ld=Symbol("Links");function ud(e){return ce(t=>{const n=e.call(t,t);return n.type=ld,n[Ce]=Hr,k(n,"links"),n[we]=function(){const{links:r}=this;return{links:r}},n})}const cd=Symbol("Repeatable");function dd(e,...t){const n=_e(0),r=t.reduce((i,s)=>{var o;return Object.assign(i,(o=s.getPersistentData)==null?void 0:o.call(s))},{});return ce(i=>{var y,w,N;const s=e.call(i,i);s.id=Pe("repeatable-"),s.type=cd,s[Ce]=Yr;for(const _ of t)(y=_.preConstruct)==null||y.call(_,s);s.amount=n,s.amount[lt]=(w=s.initialAmount)!=null?w:0,Object.assign(s,r);const o={requirementMet:P(()=>u.sub(l(s.limit),s.amount.value)),requiresPay:!1,visibility:Z.None,canMaximize:!0},a=jn(s);Je(s.requirements)?(s.requirements.unshift(a),s.requirements.push(o)):s.requirements=[a,s.requirements,o],s.maxed=P(()=>u.gte(s.amount.value,l(s.limit))),k(s,"classes");const c=s.classes;s.classes=P(()=>{const _=l(c)||{};return s.maxed.value&&(_.bought=!0),_}),s.amountToIncrease=P(()=>u.clampMin(Un(s.requirements),1)),s.canClick=P(()=>vn(s.requirements));const d=s.onClick;s.onClick=function(_){var I;const E=s;if(!l(E.canClick))return;const q=(I=l(s.amountToIncrease))!=null?I:1;Gr(s.requirements,q),E.amount.value=u.add(E.amount.value,q),d==null||d(_)},k(s,"display");const g=s.display;s.display=L(()=>{var E,q,I;const _=l(g);if(Ae(_)){const O=H(_);return m(O,null,null)}if(_!=null){const O=s,j=H((E=_.title)!=null?E:"","h3"),le=H((q=_.description)!=null?q:""),se=H((I=_.effectDisplay)!=null?I:"");return m("span",null,[_.title==null?null:m("div",null,[m(j,null,null)]),_.description==null?null:m(le,null,null),_.showAmount===!1?null:m("div",null,[m("br",null,null),m(U,null,[M("Amount: "),Te(O.amount.value)]),u.isFinite(l(O.limit))?m(U,null,[M(" / "),Te(l(O.limit))]):void 0]),_.effectDisplay==null?null:m("div",null,[m("br",null,null),M("Currently: "),m(se,null,null)]),O.maxed.value?null:m("div",null,[m("br",null,null),Ht(O.requirements,l(s.amountToIncrease))])])}return""}),k(s,"visibility"),W(s,"visibility",Z.Visible),k(s,"limit"),W(s,"limit",u.dInf),k(s,"style"),k(s,"mark"),k(s,"small");for(const _ of t)(N=_.postConstruct)==null||N.call(_,s);const p=t.reduce((_,E)=>{var q;return Object.assign(_,(q=E.getGatheredProps)==null?void 0:q.call(E,s))},{});return s[we]=function(){const{display:_,visibility:E,style:q,classes:I,onClick:O,canClick:j,small:le,mark:se,id:B}=this;return{display:_,visibility:E,style:l(q),classes:I,onClick:O,canClick:j,small:le,mark:se,id:B,...p}},s})}const fd=Symbol("Reset");function ti(e){return ce(t=>{const n=e.call(t,t);return n.id=Pe("reset-"),n.type=fd,n.reset=function(){var i;const r=s=>{if(s!=null&&typeof s=="object"&&!(s instanceof u)&&!(s instanceof f)){if(jt in s&&s[jt]===!0)return;if(lt in s){const o=s;o.value=o[lt]}else!(s instanceof u)&&!ye(s)&&Object.values(s).forEach(o=>r(o))}};l(n.thingsToReset).forEach(r),he.emit("reset",n),(i=n.onReset)==null||i.call(n)},k(n,"thingsToReset"),n})}const Qt={};he.on("removeLayer",e=>{var t;(t=Qt[e.id])==null||t.call(Qt),Qt[e.id]=void 0});const ni=A({__name:"Resource",props:{resource:null,color:null},setup(e){const t=e,n=P(()=>Ze(t.resource));return(r,i)=>(b(),S("h2",{style:ee({color:e.color,"text-shadow":"0px 0px 10px "+e.color})},G(l(n)),5))}});const md={class:"main-display"},pd={key:0},gd={key:1},ri=A({__name:"MainDisplay",props:{resource:null,color:null,classes:null,style:null,effectDisplay:null},setup(e){const n=ue(e),r=V(null),i=ut(n.effectDisplay),s=P(()=>u.lt(n.resource.value,"1e1000"));return(o,a)=>(b(),D(dn,null,{default:x(()=>{var c,d,g,p;return[v("div",{class:re(["main-display-container",(c=e.classes)!=null?c:{}]),style:ee([{height:`${((g=(d=r.value)==null?void 0:d.$el.clientHeight)!=null?g:0)+50}px`},(p=e.style)!=null?p:{}])},[v("div",md,[l(s)?(b(),S("span",pd,"You have ")):F("",!0),m(ni,{resource:e.resource,color:e.color||"white"},null,8,["resource","color"]),M(" "+G(e.resource.displayName),1),l(i)?(b(),S("span",gd,[M(", "),(b(),D(ie(l(i)),{ref_key:"effectRef",ref:r},null,512))])):F("",!0)])],6)]}),_:1}))}}),vd=A({__name:"Tab",props:{display:null},setup(e){const t=e,{display:n}=ue(t),r=It(n);return(i,s)=>(b(),D(ie(l(r))))}}),hd=Symbol("Tab");function en(e){return ce(t=>{const n=e.call(t,t);return n.id=Pe("tab-"),n.type=hd,n[Ce]=vd,n[we]=function(){const{display:r}=this;return{display:r}},n})}const bd=A({props:{visibility:{type:$(Number,Boolean),required:!0},display:{type:$(Object,String,Function),required:!0},style:$(String,Object,Array),classes:$(Object),glowColor:$(String),active:Boolean,floating:Boolean},emits:["selectTab"],setup(e,{emit:t}){const{display:n,glowColor:r,floating:i}=ue(e),s=It(n),o=P(()=>{const c=ae(r);return c==null||c===""?{}:l(i)?zn(c):{boxShadow:`0px 9px 5px -6px ${c}`}});function a(){t("selectTab")}return{selectTab:a,component:s,glowColorStyle:o,unref:l,Visibility:Z,isVisible:Se,isHidden:He}}});function yd(e,t,n,r,i,s){var o;return e.isVisible(e.visibility)?(b(),S("button",{key:0,onClick:t[0]||(t[0]=(...a)=>e.selectTab&&e.selectTab(...a)),class:re(["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:{}])},[(b(),D(ie(e.component)))],6)):F("",!0)}var ii=K(bd,[["render",yd],["__scopeId","data-v-21427abb"]]);const _d=A({props:{visibility:{type:$(Number,Boolean),required:!0},activeTab:{type:$(Object),required:!0},selected:{type:Object,required:!0},tabs:{type:$(Object),required:!0},style:$(String,Object,Array),classes:$(Object),buttonContainerStyle:$(String,Object,Array),buttonContainerClasses:$(Object)},components:{Sticky:dn,TabButton:ii},setup(e){const{activeTab:t}=ue(e),n=P(()=>rt[Q.theme].floatingTabs),r=ke("");De(()=>{const a=ae(t);if(a==null){r.value="";return}if(Ae(a)){r.value=H(a);return}r.value=H(l(a.display))});const i=P(()=>{const a=ae(t);return Ae(a)||!a?void 0:l(a.classes)}),s=P(()=>{const a=ae(t);return Ae(a)||!a?void 0:l(a.style)});function o(a){const{display:c,style:d,classes:g,glowColor:p,visibility:y}=a;return{display:c,style:l(d),classes:g,glowColor:p,visibility:y}}return{floating:n,tabClasses:i,tabStyle:s,Visibility:Z,component:r,gatherButtonProps:o,unref:l,isVisible:Se,isHidden:He}}});function Cd(e,t,n,r,i,s){var c,d;const o=ve("TabButton"),a=ve("Sticky");return e.isVisible(e.visibility)?(b(),S("div",{key:0,class:re(["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:[],(d=e.tabStyle)!=null?d:[]])},[m(a,{class:re(["tab-buttons-container",e.unref(e.buttonContainerClasses)]),style:ee(e.unref(e.buttonContainerStyle))},{default:x(()=>[v("div",{class:re(["tab-buttons",{floating:e.floating}])},[(b(!0),S(U,null,We(e.unref(e.tabs),(g,p)=>(b(),D(o,Ue({onSelectTab:y=>e.selected.value=p,floating:e.floating,key:p,active:e.unref(g.tab)===e.unref(e.activeTab)},e.gatherButtonProps(g)),null,16,["onSelectTab","floating","active"]))),128))],2)]),_:1},8,["class","style"]),e.unref(e.activeTab)?(b(),D(ie(e.unref(e.component)),{key:0})):F("",!0)],6)):F("",!0)}var wd=K(_d,[["render",Cd],["__scopeId","data-v-58dbf83a"]]);const kd=Symbol("TabButton"),Nd=Symbol("TabFamily");function vr(e,t){Object.keys(e).length===0&&console.error("Cannot create tab family with 0 tabs");const n=_e(Object.keys(e)[0],!1);return ce(r=>{var o;const i=(o=t==null?void 0:t.call(r,r))!=null?o:{};i.id=Pe("tabFamily-"),i.type=Nd,i[Ce]=wd,i.tabs=Object.keys(e).reduce((a,c)=>{const d=e[c]();return d.type=kd,d[Ce]=ii,k(d,"visibility"),W(d,"visibility",Z.Visible),k(d,"tab"),k(d,"display"),k(d,"classes"),k(d,"style"),k(d,"glowColor"),a[c]=d,a},{}),i.selected=n,i.activeTab=P(()=>{const a=l(s.tabs);if(n.value in a&&Se(a[n.value].visibility))return l(a[n.value].tab);const c=Object.values(a).find(d=>Se(d.visibility));return c?l(c.tab):null}),k(i,"visibility"),W(i,"visibility",Z.Visible),k(i,"classes"),k(i,"style"),k(i,"buttonContainerClasses"),k(i,"buttonContainerStyle"),i[we]=function(){const{visibility:a,activeTab:c,selected:d,tabs:g,style:p,classes:y,buttonContainerClasses:w,buttonContainerStyle:N}=this;return{visibility:a,activeTab:c,selected:d,tabs:g,style:l(p),classes:y,buttonContainerClasses:w,buttonContainerStyle:N}};const s=i;return s})}var Sd=A({props:{display:{type:$(String,Object,Function),required:!0},visibility:{type:$(Number,Boolean),required:!0},style:$(String,Object,Array),classes:$(Object),requirements:{type:Object,required:!0},canPurchase:{type:$(Boolean),required:!0},bought:{type:$(Boolean),required:!0},mark:$(Boolean,String),id:{type:String,required:!0},purchase:{type:Function,required:!0}},components:{Node:dt,MarkNode:Pt},setup(e){const{display:t,requirements:n,bought:r}=ue(e),i=ke("");return De(()=>{const s=ae(t);if(s==null){i.value="";return}if(Ae(s)){i.value=H(s);return}const o=H(s.title||"","h3"),a=H(s.description,"div"),c=H(s.effectDisplay||"");i.value=H(L(()=>m("span",null,[s.title!=null?m("div",null,[m(o,null,null)]):null,m(a,null,null),s.effectDisplay!=null?m("div",null,[M("Currently: "),m(c,null,null)]):null,r.value?null:m(U,null,[m("br",null,null),Ht(n.value)])])))}),{component:i,unref:l,Visibility:Z,isVisible:Se,isHidden:He}}});const Id=["disabled"];function $d(e,t,n,r,i,s){var c;const o=ve("MarkNode"),a=ve("Node");return e.isVisible(e.visibility)?(b(),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]=(...d)=>e.purchase&&e.purchase(...d)),class:re({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)?(b(),D(ie(e.unref(e.component)),{key:0})):F("",!0),m(o,{mark:e.unref(e.mark)},null,8,["mark"]),m(a,{id:e.id},null,8,["id"])],14,Id)):F("",!0)}var Md=K(Sd,[["render",$d],["__scopeId","data-v-9be6bac0"]]);const Td=Symbol("Upgrade");function tn(e,...t){const n=_e(!1,!1),r=t.reduce((i,s)=>{var o;return Object.assign(i,(o=s.getPersistentData)==null?void 0:o.call(s))},{});return ce(i=>{var c,d;const s=e.call(i,i);s.id=Pe("upgrade-"),s.type=Td,s[Ce]=Md;for(const g of t)(c=g.preConstruct)==null||c.call(g,s);s.bought=n,Object.assign(s,r),s.canPurchase=P(()=>!n.value&&vn(s.requirements)),s.purchase=function(){var p;const g=s;!l(g.canPurchase)||(Gr(s.requirements),n.value=!0,(p=g.onPurchase)==null||p.call(g))};const o=jn(s);Je(s.requirements)?s.requirements.unshift(o):s.requirements=[o,s.requirements],k(s,"visibility"),W(s,"visibility",Z.Visible),k(s,"classes"),k(s,"style"),k(s,"display"),k(s,"mark");for(const g of t)(d=g.postConstruct)==null||d.call(g,s);const a=t.reduce((g,p)=>{var y;return Object.assign(g,(y=p.getGatheredProps)==null?void 0:y.call(p,s))},{});return s[we]=function(){const{display:g,visibility:p,style:y,classes:w,requirements:N,canPurchase:_,bought:E,mark:q,id:I,purchase:O}=this;return{display:g,visibility:p,style:l(y),classes:w,requirements:N,canPurchase:_,bought:E,mark:q,id:I,purchase:O,...a}},s})}function Pd(e){return ce(t=>{const{addend:n,description:r,enabled:i,smallerIsBetter:s}=e.call(t,t),o=Fe(n),a=Fe(r),c=i==null?void 0:Fe(i);return{apply:d=>u.add(d,l(o)),invert:d=>u.sub(d,l(o)),getFormula:d=>f.add(d,o),enabled:c,description:r==null?void 0:L(()=>m("div",{class:"modifier-container"},[l(a)!=null?m("span",{class:"modifier-description"},[xe(l(a))]):null,m("span",{class:"modifier-amount",style:(s===!0?u.gt(l(o),0):u.lt(l(o),0))?"color: var(--danger)":""},[u.gte(l(o),0)?"+":"",Bt(l(o))])]))}})}function Od(e){return ce(t=>{const{exponent:n,description:r,enabled:i,supportLowNumbers:s,smallerIsBetter:o}=e.call(t,t),a=Fe(n),c=Fe(r),d=i==null?void 0:Fe(i);return{apply:g=>{let p=g;return s&&(p=u.add(p,1)),p=u.pow(p,l(a)),s&&(p=u.sub(p,1)),p},invert:g=>{let p=g;return s&&(p=u.add(p,1)),p=u.root(p,l(a)),s&&(p=u.sub(p,1)),p},getFormula:g=>s?f.add(g,1).pow(a).sub(1):f.pow(g,a),enabled:d,description:r==null?void 0:L(()=>m("div",{class:"modifier-container"},[l(c)!=null?m("span",{class:"modifier-description"},[xe(l(c)),s?" (+1 effective)":null]):null,m("span",{class:"modifier-amount",style:(o===!0?u.gt(l(a),1):u.lt(l(a),1))?"color: var(--danger)":""},[M("^"),Bt(l(a))])]))}})}function Fd(e){return ce(()=>{const t=e();return{apply:n=>t.filter(r=>l(r.enabled)!==!1).reduce((r,i)=>i.apply(r),n),invert:t.every(n=>n.invert!=null)?n=>t.filter(r=>l(r.enabled)!==!1).reduceRight((r,i)=>i.invert(r),n):void 0,getFormula:t.every(n=>n.getFormula!=null)?n=>t.reduce((r,i)=>{var s;return f.if(r,(s=i.enabled)!=null?s:!0,o=>i.getFormula(o),o=>o)},n):void 0,enabled:t.some(n=>n.enabled!=null)?P(()=>t.filter(n=>l(n.enabled)!==!1).length>0):void 0,description:t.some(n=>n.description!=null)?L(()=>m(U,null,[t.filter(n=>l(n.enabled)!==!1).map(n=>l(n.description)).filter(n=>n).map(xe)])):void 0}})}function Ed({title:e,subtitle:t,modifier:n,base:r,unit:i,baseText:s,smallerIsBetter:o}){const a=n.apply(r!=null?r:1);return m("div",{style:{"--unit":Q.alignUnits&&i!=null?"'"+i+"'":""}},[m("h3",null,[e,t==null?null:m("span",{class:"subtitle"},[M(" ("),t,M(")")])]),m("br",null,null),m("div",{class:"modifier-container"},[m("span",{class:"modifier-description"},[xe(s!=null?s:"Base")]),m("span",{class:"modifier-amount"},[Bt(r!=null?r:1),i])]),xe(l(n.description)),m("hr",null,null),m("div",{class:"modifier-container"},[m("span",{class:"modifier-description"},[M("Total")]),m("span",{class:"modifier-amount",style:(o===!0?u.gt(a,r!=null?r:1):u.lt(a,r!=null?r:1))?"color: var(--danger)":""},[Bt(a),i])])])}wr.registerPlugin(Ni);Si.registerPlugin("batch",Ii);var qd=A({props:{style:$(String,Object,Array),classes:$(Object),onInit:{type:Function,required:!0},id:{type:String,required:!0},onContainerResized:Function,onHotReload:Function},setup(e){const t=ke(null),n=new ResizeObserver(s),r=ke(null);Mt(()=>{var a,c;const o=r.value;o!=null&&(n.observe(o),t.value=new wr({resizeTo:o,backgroundAlpha:0}),(a=r.value)==null||a.appendChild(t.value.view),(c=e.onInit)==null||c.call(e,t.value)),s(),e.onHotReload&&tt(e.onHotReload)}),hi(()=>{var o;(o=t.value)==null||o.destroy()});let i=!0;function s(){i&&(i=!1,tt(()=>{var o;r.value!=null&&((o=e.onContainerResized)==null||o.call(e,r.value.getBoundingClientRect())),i=!0}))}return he.on("fontsLoaded",s),{unref:l,resizeListener:r}}});function Vd(e,t,n,r,i,s){return b(),S("div",{ref:"resizeListener",class:re(["resize-listener",e.unref(e.classes)]),style:ee(e.unref(e.style))},null,6)}var Dd=K(qd,[["render",Vd],["__scopeId","data-v-2cea0e1c"]]);const Rd=Symbol("Particles");function Ad(e){return ce(t=>{var s,o;const n=(s=e==null?void 0:e.call(t,t))!=null?s:{};n.id=Pe("particles-"),n.type=Rd,n[Ce]=Dd,n.app=ke(null),n.addEmitter=a=>{const c=n;return c.app.value?Promise.resolve(new sr(c.app.value.stage,a)):new Promise(d=>{r.push({resolve:d,config:a})})};let r=[];function i(a){const c=n;c.app.value=a,r.forEach(({resolve:d,config:g})=>d(new sr(a.stage,g))),r=[]}return n.onContainerResized=(o=n.onContainerResized)==null?void 0:o.bind(n),n[we]=function(){const{id:a,style:c,classes:d,onContainerResized:g,onHotReload:p}=this;return{id:a,style:l(c),classes:d,onContainerResized:g,onHotReload:p,onInit:i}},n})}window.upgradeConfig=$i;const Bd={min:.5,max:1},Ld=[{s:0,cp:.329,e:.548},{s:.548,cp:.767,e:.876},{s:.876,cp:.985,e:1}],xd=.001,jd=.1,Ud=100,zd=!0,Gd={x:0,y:0},Hd=!1,Wd=[{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 Kd={lifetime:Bd,ease:Ld,frequency:xd,emitterLifetime:jd,maxParticles:Ud,addAtBack:zd,pos:Gd,emit:Hd,behaviors:Wd};const kn="f",Qe=Gt(kn,()=>{const e="#FE0102",t="Farms",n=Ut(0,"farm points"),r=_e(!1),i=ei(()=>({title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"}})),s=_e("Start"),o=zt(()=>({display(){return{title:"Clicky clicky!",description:"Current state:
"+s.value}},initialState:"Start",canClick(){return s.value!=="Borkened..."},onClick(_){var E,q,I,O,j,le,se,B;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=_==null?void 0:"touches"in _?_.touches[0]:_,yn=Object.assign({},Kd,{pos:{x:((E=oe==null?void 0:oe.clientX)!=null?E:0)-((O=(I=(q=w.boundingRect)==null?void 0:q.value)==null?void 0:I.left)!=null?O:0),y:((j=oe==null?void 0:oe.clientY)!=null?j:0)-((B=(se=(le=w.boundingRect)==null?void 0:le.value)==null?void 0:se.top)!=null?B:0)}});w.addEmitter(yn).then(yt=>yt.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{}}}})),a=zt(()=>({onClick(){s.value=="Borkened..."&&(s.value="Start")},display(){return s.value=="Borkened..."?"Fix the clickable!":"Does nothing"},small:!0})),c=ti(()=>({thingsToReset:()=>[Qe]})),d=Jc(()=>({formula:_=>_.div(10).sqrt().times(Be.otherThingy),baseResource:ne.points,gainResource:qt(n)})),g=Zr(()=>({layerID:kn,color:e,reset:c,tooltip(){return g.canClick.value?`${Ze(n)} ${n.displayName}`:`This weird farmer dinosaur will only see you if you have at least 10 points. You only have ${Ze(ne.points)}`},canClick(){return u.gte(ne.points.value,10)}})),p=St(g,{display:Kr(n),pinnable:!0}),y=Jr(()=>({conversion:d,tree:ne.tree,treeNode:g,display:L(()=>y.conversion.buyMax?m("span",null,[M("Hi! I'm a "),m("u",null,[M("weird dinosaur")]),M(" and I'll give you")," ",m("b",null,[Te(y.conversion.currentGain.value)]),M(" Farm Points in exchange for all of your points and lollipops! (You'll get another one at")," ",Te(y.conversion.nextAt.value),M(" points)")]):m("span",null,[M("Hi! I'm a "),m("u",null,[M("weird dinosaur")]),M(" and I'll give you a Farm Point in exchange for all of your points and lollipops! (At least")," ",Te(y.conversion.nextAt.value),M(" points)")]))})),w=Ad(()=>({boundingRect:V(null),onContainerResized(_){this.boundingRect.value=_},style:"z-index: 2"})),N=L(()=>m(U,null,[be(i),m(ri,{resource:n,color:e},null),be(y),m("div",null,[M("You have "),Te(d.baseResource.value),M(" points")]),m("div",null,[m("br",null,null),m("img",{src:"https://images.beano.com/store/24ab3094eb95e5373bca1ccd6f330d4406db8d1f517fc4170b32e146f80d?auto=compress%2Cformat&dpr=1&w=390"},null),m("div",null,[M("Bork Bork!")])]),m($e,null,null),Ve(a),Ve(o),be(w)]));return{id:kn,color:e,name:t,points:n,boop:r,coolInfo:i,clickable:o,clickableState:s,reset:c,conversion:d,treeNode:g,resetButton:y,minWidth:650,display:N,tooltip:p}});function Yd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!br(e)}const Nn="c",Be=Gt(Nn,()=>{const e="#4BDC13",t="Candies",n=Ut(0,"lollipops"),r=zr(n),i=_e(!1),s=_e("pointy"),o=_e(10),a=_e(new u(10)),c=P(()=>u.pow(n.value,.2)),d=P(()=>u.times(n.value,10)),g=ei(()=>({title:"Lore",titleStyle:{color:"#FE0000"},display:"DEEP LORE!",bodyStyle:{backgroundColor:"#0000EE"},color:"rgb(75, 220, 19)"})),p=Vt(()=>({requirements:In(()=>u.gte(r.value,3)),display:{requirement:"3 Lollipops",effectDisplay:"Unlock the next milestone"}})),y=Vt(()=>({visibility:p.earned,requirements:In(()=>u.gte(r.value,4)),display:{requirement:"4 Lollipops",effectDisplay:"You can toggle beep and boop (which do nothing)",optionsDisplay:L(()=>m(U,null,[m(Me,{title:"beep","onUpdate:modelValue":X=>i.value=X,modelValue:i.value},null),m(Me,{title:"boop","onUpdate:modelValue":X=>Qe.boop.value=X,modelValue:Qe.boop.value},null)]))},style(){return l(this.earned)?{backgroundColor:"#1111DD"}:{}}})),w=[p,y],N=Kc(()=>({title:"Fun",requirements:Ct(()=>({resource:ne.points,cost:20,spendResources:!1})),completionLimit:3,display(){return{description:`Makes the game 0% harder
${Te(this.completions.value)}/${this.completionLimit} completions`,goal:"Have 20 points I guess",reward:"Says hi",effectDisplay:Ne(_.value)+"x"}},visibility:()=>u.gt(r.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"}})),_=P(()=>u.add(n.value,1).tetrate(.02)),E=tn(()=>({display:{title:"Generator of Genericness",description:"Gain 1 point every second"},requirements:Ct(()=>({cost:1,resource:qt(n)}))})),q=tn(()=>({display:()=>({description:"Point generation is faster based on your unspent Lollipops",effectDisplay:`${Ne(I.value)}x`}),requirements:Ct(()=>({cost:1,resource:qt(n)})),visibility:E.bought})),I=P(()=>{let X=u.add(n.value,1).pow(.5);return X.gte("1e20000000")&&(X=X.sqrt().times("1e10000000")),X}),O=tn(()=>({visibility:q.bought,requirements:Ct(()=>({cost:7,resource:ne.points,requiresPay:!1})),onPurchase(){ne.points.value=u.add(ne.points.value,7)},display:"Only buyable with less than 7 points, and gives you 7 more. Unlocks a secret subtab.",style(){return l(this.bought)?{backgroundColor:"#1111dd"}:l(this.canPurchase)?{}:{backgroundColor:"#dd1111"}}})),j=tn(()=>({requirements:Ct(()=>({resource:Ut(B.amount,"Exhancers",0),cost:3})),display:{title:"This upgrade doesn't exist",description:"Or does it?"}})),le=[E,q,O],se=Ct(()=>({resource:qt(n),cost(){let X=new u(B.amount.value);return X.gte(25)&&(X=X.pow(2).div(25)),u.pow(2,X.pow(1.5)).floor()},pay(X){const Xe=l(this.cost);a.value=u.add(a.value,Xe!=null?Xe:0),this.resource.value=u.sub(this.resource.value,Xe).max(0)}})),B=dd(()=>({requirements:se,display(){return{title:"Exhancers",description:`Adds ${Ne(oe.value)} things and multiplies stuff by ${Ne(yn.value)}.`}},style:{height:"222px"},purchaseLimit:4})),oe=P(()=>u.gte(B.amount.value,0)?u.pow(25,u.pow(B.amount.value,1.1)):u.pow(1/25,u.times(B.amount.value,-1).pow(1.1))),yn=P(()=>u.gte(B.amount.value,0)?u.pow(25,u.pow(B.amount.value,1.1)):u.pow(1/25,u.times(B.amount.value,-1).pow(1.1))),yt=_e(!1),_t=V(!1),Kt=zt(()=>({small:!0,display:"Respec Thingies",onClick(){if(yt.value&&!_t.value){_t.value=!0;return}n.value=u.add(n.value,a.value),B.amount.value=0,ne.tree.reset(ft)}})),Kn=zt(()=>({small:!0,display:"Sell One",onClick(){if(u.lte(B.amount.value,0))return;B.amount.value=u.sub(B.amount.value,1);const X=se.cost.value;n.value=u.add(n.value,X),a.value=u.sub(a.value,X)}})),si=L(()=>m(rn,null,{default:()=>[m(sn,null,{default:()=>[m(Me,{title:"Confirm","onUpdate:modelValue":X=>yt.value=X,modelValue:yt.value},null),Ve(Kt)]}),Ve(B),Ve(Kn),m(ct,{modelValue:_t.value,"onUpdate:modelValue":X=>_t.value=X},{header:()=>m("h2",null,[M("Confirm Respec")]),body:()=>m(U,null,[M("Are you sure? Respeccing these doesn't accomplish much")]),footer:()=>m("div",{class:"modal-default-footer"},[m("div",{class:"modal-default-flex-grow"},null),m("button",{class:"button modal-default-button",onClick:()=>_t.value=!1},[M("Cancel")]),m("button",{class:"button modal-default-button danger",onClick:()=>{Kt.onClick(),_t.value=!1}},[M("Respec")])])})]})),Yn=wn(()=>({fillStyle:{backgroundColor:"#FFFFFF"},baseStyle:{backgroundColor:"#696969"},textStyle:{color:"#04e050"},direction:J.Right,width:300,height:30,progress(){return u.add(ne.points.value,1).log(10).div(10).toNumber()},display(){return Ne(ne.points.value)+" / 1e10 points"}})),Jn=wn(()=>({fillStyle:{backgroundColor:"#4BEC13"},baseStyle:{backgroundColor:"#000000"},textStyle:{textShadow:"0px 0px 2px #000000"},borderStyle:{borderWidth:"7px"},direction:J.Up,width:50,height:200,progress(){return u.div(ne.points.value,100)},display(){return Te(u.div(ne.points.value,1).min(100))+"%"}})),Yt=wn(()=>({fillStyle:{backgroundColor:"#FE0102"},baseStyle:{backgroundColor:"#222222"},textStyle:{textShadow:"0px 0px 2px #000000"},direction:J.Up,width:100,height:30,progress(){return u.div(n.value,50)}})),Zn=Fd(()=>[Od(()=>({exponent:2,description:"Because I felt like it"})),Pd(()=>({addend:1,description:"Nice modifier"}))]),Xn=Yc(()=>({formula:X=>Zn.getFormula(X.div(10).sqrt().step(1e100,Xe=>Xe.sqrt())),baseResource:ne.points,gainResource:qt(n),roundUpCost:!0})),Qn=ti(()=>({thingsToReset:()=>[Be]})),oi=[gr(()=>({key:"c",description:"reset for lollipops or whatever",onPress(){Ot.canClick.value&&Ot.onClick()}})),gr(()=>({key:"ctrl+c",description:"respec things",onPress(){Kt.onClick()}}))],ft=Zr(()=>({layerID:Nn,color:e,reset:Qn,mark:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png",tooltip(){let X=Ze(n);return u.gt(B.amount.value,0)&&(X+=`



${Te(B.amount.value)} Exhancers
`),X},style:{color:"#3325CC",textDecoration:"underline"}})),ai=St(ft,{display:Kr(n),pinnable:!0}),Ot=Jr(()=>({conversion:Xn,tree:ne.tree,treeNode:ft,style:{color:"#AA66AA"},resetDescription:"Melt your points into "})),li=St(Ot,{display:L(()=>Ed({title:"Modifiers",modifier:Zn})),pinnable:!0,direction:J.Down,style:"width: 400px; text-align: left"}),Jt=Dt(()=>({display:"TH",color:"#6d3678",canClick(){return u.gte(ne.points.value,10)},tooltip:"Thanos your points",onClick(){ne.points.value=u.div(ne.points.value,2),console.log("Thanos'd")},glowColor(){return u.eq(B.amount.value,1)?"orange":""}})),Zt=Dt(()=>({display:"h",color(){return rt[Q.theme].variables["--locked"]},tooltip:{display:P(()=>`Restore your points to ${Ne(o.value)}`),right:!0},canClick(){return u.lt(ne.points.value,o.value)},onClick(){ne.points.value=o.value}})),er=Dt(()=>({visibility:Z.Hidden})),tr=Wr(()=>({nodes(){return[[Qe.treeNode,ft],[Jt,er,Zt]]},branches(){return[{startNode:Qe.treeNode,endNode:ft,"stroke-width":"25px",stroke:"green",style:{filter:"blur(5px)"}},{startNode:ft,endNode:Jt},{startNode:Jt,endNode:Zt}]}})),ui=ud(()=>({links:[{startNode:Zt,endNode:Yt,"stroke-width":"5px",stroke:"red",offsetEnd:{x:-50+100*Yt.progress.value.toNumber(),y:0}}]})),nr=vr({first:()=>({tab:L(()=>m(U,null,[Ve(...le),Ve(j),m("div",null,[M("confirmed")])])),display:"first"}),second:()=>({tab:Qe.display,display:"second"})},()=>({style:{width:"660px",backgroundColor:"brown","--background":"brown",border:"solid white",marginLeft:"auto",marginRight:"auto"}})),rr=vr({mainTab:()=>({tab:en(()=>({display:L(()=>{let X;return m(U,null,[m(ri,{resource:n,color:e,effectDisplay:`which are boosting waffles by ${Ne(c.value)} and increasing the Ice Cream cap by ${Ne(d.value)}`},null),m(dn,null,Yd(X=be(Ot))?X:{default:()=>[X]}),m(ni,{resource:n,color:e},null),m($e,{height:"5px"},null),m("button",{onClick:()=>console.log("yeet")},[M("'HI'")]),m("div",null,[M("Name your points!")]),m(Ln,{modelValue:s.value,"onUpdate:modelValue":Xe=>s.value=Xe},null),m(dn,{style:"color: red; font-size: 32px; font-family: Comic Sans MS;"},{default:()=>[M("I have "),Ze(ne.points),M(" "),s.value,M(" points!")]}),m("hr",null,null),Qs(...w),m($e,null,null),Ve(...le),Ve(j),Ve(N)])})})),display:"main tab",glowColor(){return E.canPurchase.value||q.canPurchase.value||O.canPurchase.value||u.gt(N.canComplete.value,0)?"blue":""},style:{color:"orange"}}),thingies:()=>({tab:en(()=>({style(){return{backgroundColor:"#222222","--background":"#222222"}},display:L(()=>m(U,null,[be(si),m($e,null,null),m(sn,{style:"width: 600px; height: 350px; background-color: green; border-style: solid;"},{default:()=>[m(Me,{"onUpdate:modelValue":X=>i.value=X,modelValue:i.value},null),m($e,{width:"30px",height:"10px"},null),m("div",null,[m("span",null,[M("Beep")])]),m($e,null,null),m(Vc,{height:"200px"},null)]}),m($e,null,null),m("img",{src:"https://unsoftcapped2.github.io/The-Modding-Tree-2/discord.png"},null)]))})),glowColor:"white",display:"thingies",style:{borderColor:"orange"}}),jail:()=>({tab:en(()=>({display:L(()=>m(U,null,[be(g),be(Yn),m($e,null,null),m(sn,null,{default:()=>[m(rn,{style:"background-color: #555555; padding: 15px"},{default:()=>[m("div",{style:"color: teal"},[M("Sugar level:")]),m($e,null,null),be(Jn)]}),m($e,null,null),m(rn,null,{default:()=>[m("div",null,[M("idk")]),m($e,{width:"0",height:"50px"},null),be(Yt)]})]}),m($e,null,null),m("div",null,[M(`It's jail because "bars"! So funny! Ha ha!`)]),be(tr)]))})),display:"jail"}),illuminati:()=>({tab:en(()=>({display:L(()=>m("div",null,[m("h1",null,[M(" C O N F I R M E D ")]),m($e,null,null),be(nr),m("div",null,[M("Adjust how many points H gives you!")]),m(Fc,{"onUpdate:modelValue":X=>o.value=X,modelValue:o.value,min:1,max:30},null)])),style:{backgroundColor:"#3325CC"}})),visibility:O.bought,display:"illuminati"})});return{id:Nn,color:e,name:t,points:n,best:r,beep:i,thingy:s,otherThingy:o,spentOnBuyables:a,waffleBoost:c,icecreamCap:d,coolInfo:g,lollipopMilestones:w,funChallenge:N,funEffect:_,generatorUpgrade:E,lollipopMultiplierUpgrade:q,lollipopMultiplierEffect:I,unlockIlluminatiUpgrade:O,quasiUpgrade:j,exhancers:B,respecBuyables:Kt,illuminatiTabs:nr,sellExhancer:Kn,bars:{tallBoi:Jn,longBoi:Yn,flatBoi:Yt},tree:tr,g:Jt,h:Zt,spook:er,conversion:Xn,reset:Qn,hotkeys:oi,treeNode:ft,resetButton:Ot,confirmRespec:yt,minWidth:800,tabs:rr,display:L(()=>m(U,null,[be(rr),be(ui)])),treeNodeTooltip:ai,resetButtonTooltip:li}}),ne=Gt("main",function(){const e=Ut(10),t=zr(e),n=Uu(e),r=P(()=>{if(!Be.generatorUpgrade.bought.value)return new u(0);let c=new u(3.19);return Be.lollipopMultiplierUpgrade.bought.value&&(c=c.times(Be.lollipopMultiplierEffect.value)),c});he.on("update",c=>{e.value=u.add(e.value,u.times(r.value,c))});const i=Hu(e,r),{openModal:s,modal:o}=Lr($n),a=Wr(()=>({nodes:[[Be.treeNode],[Qe.treeNode,Be.spook]],leftSideNodes:[$n.treeNode,Be.h],branches:[{startNode:Qe.treeNode,endNode:Be.treeNode,stroke:"blue","stroke-width":"25px",style:{filter:"blur(5px)"}}],onReset(){e.value=ir(this.resettingNode.value)===ir(Be.treeNode)?0:10,t.value=e.value,n.value=e.value},resetPropagation:$c}));return{name:"Tree",display:L(()=>m(U,null,[R.devSpeed===0?m("div",null,[M("Game Paused")]):null,R.devSpeed!=null&&R.devSpeed!=0&&R.devSpeed!==1?m("div",null,[M("Dev Speed: "),Ne(R.devSpeed),M("x")]):null,R.offlineTime!=null&&R.offlineTime!=0?m("div",null,[M("Offline Time: "),gn(R.offlineTime)]):null,m("div",null,[u.lt(e.value,"1e1000")?m("span",null,[M("You have ")]):null,m("h2",null,[Ne(e.value)]),u.lt(e.value,"1e1e6")?m("span",null,[M(" points")]):null]),u.gt(r.value,0)?m("div",null,[M("("),i.value,M(")")]):null,m($e,null,null),m("button",{onClick:s},[M("open achievements")]),be(o),be(a),m(ju,{height:"200px",style:"margin: 10px auto; display: block"},null)])),points:e,best:t,total:n,oomps:i,tree:a,showAchievements:s}}),Jd=e=>[ne,Qe,Be,$n],Hn=P(()=>u.gt(ne.points.value,25));function Zd(e,t){}var Xd=Object.freeze(Object.defineProperty({__proto__:null,main:ne,getInitialLayers:Jd,hasWon:Hn,fixOldSave:Zd},Symbol.toStringTag,{value:"Module"}));const Wt=e=>(ze("data-v-4a50ce42"),e=e(),Ge(),e),Qd={class:"game-over-modal-header"},ef=["src","alt"],tf={class:"game-over-modal-title"},nf=Wt(()=>v("h2",null,"Congratulations!",-1)),rf={key:0},sf=Wt(()=>v("br",null,null,-1)),of=Wt(()=>v("div",null," Please check the Discord to discuss the game or to check for new content updates! ",-1)),af=Wt(()=>v("br",null,null,-1)),lf=["href"],uf=Wt(()=>v("span",{class:"material-icons game-over-modal-discord"},"discord",-1)),cf=A({__name:"GameOverScreen",setup(e){const{title:t,logo:n,discordName:r,discordLink:i,versionNumber:s,versionTitle:o}=te,a=P(()=>gn(R.timePlayed)),c=P(()=>Hn.value&&!R.keepGoing),d=nt(R,"autosave");function g(){R.keepGoing=!0}function p(){vt(kt())}return(y,w)=>(b(),D(ct,{"model-value":l(c)},{header:x(()=>[v("div",Qd,[l(n)?(b(),S("img",{key:0,class:"game-over-modal-logo",src:l(n),alt:l(t)},null,8,ef)):F("",!0),v("div",tf,[nf,v("h4",null,"You've beaten "+G(l(t))+" v"+G(l(s))+": "+G(l(o)),1)])])]),body:x(({shown:N})=>[N?(b(),S("div",rf,[v("div",null,"It took you "+G(l(a))+" to beat the game.",1),sf,of,af,v("div",null,[v("a",{href:l(i),class:"game-over-modal-discord-link"},[uf,M(" "+G(l(r)),1)],8,lf)]),m(Me,{title:"Autosave",modelValue:l(d),"onUpdate:modelValue":w[0]||(w[0]=_=>ye(d)?d.value=_:null)},null,8,["modelValue"])])):F("",!0)]),footer:x(()=>[v("div",{class:"game-over-footer"},[v("button",{onClick:g,class:"button"},"Keep Going"),v("button",{onClick:p,class:"button danger"},"Play Again")])]),_:1},8,["model-value"]))}});var df=K(cf,[["__scopeId","data-v-4a50ce42"]]);const bn=e=>(ze("data-v-d3bb0716"),e=e(),Ge(),e),ff=bn(()=>v("div",{class:"nan-modal-header"},[v("h2",null,"NaN value detected!")],-1)),mf={key:0},pf=bn(()=>v("br",null,null,-1)),gf=["href"],vf=bn(()=>v("span",{class:"material-icons nan-modal-discord"},"discord",-1)),hf=bn(()=>v("br",null,null,-1)),bf={class:"nan-footer"},yf=A({__name:"NaNScreen",setup(e){const{discordName:t,discordLink:n}=te,r=V(!0),i=V(!0),s=nt(fe,"hasNaN"),o=V(null);je(s,y=>{y?(r.value=R.autosave,i.value=R.devSpeed===0):(R.autosave=r.value,R.devSpeed=i.value?0:null)});const a=P(()=>{var y;return(y=fe.NaNPath)==null?void 0:y.join(".")}),c=P(()=>fe.NaNPersistent!=null?fe.NaNPersistent.value:null);function d(){fe.NaNPersistent!=null&&(fe.NaNPersistent.value=new u(0),fe.hasNaN=!1)}function g(){fe.NaNPersistent&&(fe.NaNPersistent.value=new u(1),fe.hasNaN=!1)}function p(){fe.NaNPersistent&&(fe.NaNPersistent.value=new u(NaN),fe.hasNaN=!1)}return(y,w)=>(b(),S(U,null,[m(ct,Ue({modelValue:l(s),"onUpdate:modelValue":w[4]||(w[4]=N=>ye(s)?s.value=N:null)},y.$attrs),{header:x(()=>[ff]),body:x(()=>[v("div",null,[M(' Attempted to assign "'+G(l(a))+'" to NaN',1),l(c)?(b(),S("span",mf,G(" ")+"(previously "+G(l(Ne)(l(c)))+")",1)):F("",!0),M(". Auto-saving has been "+G(r.value?"enabled":"disabled")+". Check the console for more details, and consider sharing it with the developers on discord. ",1)]),pf,v("div",null,[v("a",{href:l(n)||"https://discord.gg/yJ4fjnjU54",class:"nan-modal-discord-link"},[vf,M(" "+G(l(t)||"Profectus & Friends"),1)],8,gf)]),hf,m(Me,{title:"Autosave",modelValue:r.value,"onUpdate:modelValue":w[0]||(w[0]=N=>r.value=N)},null,8,["modelValue"]),l(te).enablePausing?(b(),D(Me,{key:0,title:"Pause game",modelValue:i.value,"onUpdate:modelValue":w[1]||(w[1]=N=>i.value=N)},null,8,["modelValue"])):F("",!0)]),footer:x(()=>[v("div",bf,[v("button",{onClick:w[2]||(w[2]=N=>{var _;return(_=o.value)==null?void 0:_.open()}),class:"button"},"Open Saves Manager"),v("button",{onClick:d,class:"button"},"Set to 0"),v("button",{onClick:g,class:"button"},"Set to 1"),l(c)&&l(u).neq(l(c),0)&&l(u).neq(l(c),1)?(b(),S("button",{key:0,onClick:w[3]||(w[3]=N=>s.value=!1),class:"button"}," Set to previous ")):F("",!0),v("button",{onClick:p,class:"button danger"},"Ignore")])]),_:1},16,["modelValue"]),m(jr,{ref_key:"savesManager",ref:o},null,512)],64))}});var _f=K(yf,[["__scopeId","data-v-d3bb0716"]]);const Cf={key:0,class:"tpsDisplay"},wf=A({__name:"TPS",setup(e){const t=P(()=>u.div(fe.lastTenTicks.length,fe.lastTenTicks.reduce((n,r)=>n+r,0)));return(n,r)=>l(t).isNan()?F("",!0):(b(),S("div",Cf,"TPS: "+G(l(Te)(l(t))),1))}});var kf=K(wf,[["__scopeId","data-v-89b89152"]]);var Nf=A({__name:"App",setup(e){const t=te.useHeader,n=P(()=>rt[Q.theme].variables),r=nt(Q,"showTPS"),i=nt(fe,"errors"),s=P(()=>H(L(()=>m(U,null,[Js.map(be)]))));return(o,a)=>l(i).length>0?(b(),S("div",{key:0,class:"error-container",style:ee(l(n))},[m(kr,{errors:l(i)},null,8,["errors"])],4)):(b(),S(U,{key:1},[v("div",{id:"modal-root",style:ee(l(n))},null,4),v("div",{class:re(["app",{useHeader:l(t)}]),style:ee(l(n))},[l(t)?(b(),D(Ur,{key:0})):F("",!0),m(Ru),l(l(r))?(b(),D(kf,{key:1})):F("",!0),m(df),m(_f),(b(),D(ie(l(s))))],6)],64))}});var Sf=K(Nf,[["__scopeId","data-v-bf4e22ac"]]);function If(e={}){const{immediate:t=!1,onNeedRefresh:n,onOfflineReady:r,onRegistered:i,onRegisteredSW:s,onRegisterError:o}=e;let a,c,d,g;const p=async(w=!0)=>{await d,w&&(a==null||a.addEventListener("controlling",N=>{N.isUpdate&&window.location.reload()})),await(g==null?void 0:g())};async function y(){if("serviceWorker"in navigator){const{Workbox:w,messageSW:N}=await At(()=>import("./workbox-window.4a8794bb.js"),[]);g=async()=>{c&&c.waiting&&await N(c.waiting,{type:"SKIP_WAITING"})},a=new w("./sw.js",{scope:"./",type:"classic"}),a.addEventListener("activated",_=>{_.isUpdate||r==null||r()});{const _=()=>{n==null||n()};a.addEventListener("waiting",_),a.addEventListener("externalwaiting",_)}a.register({immediate:t}).then(_=>{c=_,s?s("./sw.js",_):i==null||i(_)}).catch(_=>{o==null||o(_)})}}return d=y(),p}function $f(e={}){const{immediate:t=!0,onNeedRefresh:n,onOfflineReady:r,onRegistered:i,onRegisteredSW:s,onRegisterError:o}=e,a=V(!1),c=V(!1);return{updateServiceWorker:If({immediate:t,onNeedRefresh(){a.value=!0,n==null||n()},onOfflineReady(){c.value=!0,r==null||r()},onRegistered:i,onRegisteredSW:s,onRegisterError:o}),offlineReady:c,needRefresh:a}}const Wn=console.error;console.error=function(...e){Wn(...e)};window.onerror=function(e,t,n,r,i){return fe.errors.push(i instanceof Error?i:new Error(JSON.stringify(i))),Wn(i),!0};window.onunhandledrejection=function(e){fe.errors.push(e.reason instanceof Error?e.reason:new Error(JSON.stringify(e.reason))),Wn(e.reason)};document.title=te.title;window.projInfo=te;te.id===""&&console.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 Hs();const{globalBus:e}=await At(()=>Promise.resolve().then(function(){return Gs}),void 0),{startGameLoop:t}=await At(()=>import("./gameLoop.c6fcb607.js"),["assets/gameLoop.c6fcb607.js","assets/@fontsource.f66d05e7.css","assets/vue.72cfed44.js","assets/earcut.b6f90e68.js","assets/@vue.6a1d7e86.js","assets/lz-string.dccec454.js","assets/@ivanv.c33db252.js","assets/nanoevents.1080beb7.js","assets/vue-next-select.3d5e8343.js","assets/vue-next-select.9e6f4164.css","assets/vuedraggable.a52097e2.js","assets/sortablejs.740e9352.js","assets/vue-textarea-autosize.35804eaf.js","assets/vue-toastification.42f47de1.js","assets/vue-toastification.4b5f8ac8.css","assets/@pixi.94823b24.js","assets/ismobilejs.5c6954b9.js","assets/eventemitter3.dc5195d7.js","assets/url.68c785f7.js","assets/querystring.d4befb87.js"]),n=window.vue=bi(Sf);n.config.errorHandler=function(r,i,s){console.error(r,s,i)},e.emit("setupVue",n),n.mount("#app"),tt(()=>{const r=Cr(),{updateServiceWorker:i}=$f({onNeedRefresh(){r.info("New content available, click here to update.",{timeout:!1,closeOnClick:!1,draggable:!1,icon:{iconClass:"material-icons",iconChildren:"refresh",iconTag:"i"},rtl:!1,onClick(){i()}})},onOfflineReady(){r.info("App ready to work offline")},onRegisterError:console.warn,onRegistered(s){s&&setInterval(()=>s.update(),60*60*1e3)}})}),t()});export{u as D,At as _,fe as a,te as b,Xd as c,he as g,En as l,R as p,Q as s}; diff --git a/assets/index.237818d0.css b/assets/index.237818d0.css new file mode 100644 index 0000000..944b061 --- /dev/null +++ b/assets/index.237818d0.css @@ -0,0 +1 @@ +.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%)}}.error[data-v-ac351c02]{border:solid 10px var(--danger);position:absolute;top:0;left:0;right:0;min-height:calc(100% - 20px);text-align:left;color:var(--foreground)}.error-title[data-v-ac351c02]{background:var(--danger);color:var(--feature-foreground);display:block;margin:-10px 0 10px;position:sticky;top:0}.error-details[data-v-ac351c02]{white-space:nowrap;overflow:auto;padding:10px;background-color:var(--raised-background)}.instructions[data-v-ac351c02]{padding:10px}.discord-link[data-v-ac351c02]{display:inline}summary[data-v-ac351c02]{cursor:pointer;user-select:none}.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-a9f5b1da]{min-width:100%;min-height:100%;margin:0;flex-grow:1;display:flex;isolation:isolate}.layer-tab[data-v-a9f5b1da]: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-a9f5b1da]:not(.minimized){padding-top:50px}.layer-tab.minimized[data-v-a9f5b1da]{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-a9f5b1da]{margin:0;writing-mode:vertical-rl;text-align:left;padding-left:10px;width:50px}.inner-tab>.layer-container>.layer-tab[data-v-a9f5b1da]:not(.minimized){margin:-50px -10px;padding:50px 10px}.modal-body .layer-tab[data-v-a9f5b1da]{padding-bottom:0}.modal-body .layer-tab[data-v-a9f5b1da]:not(.hasSubtabs){padding-top:0}.minimize[data-v-a9f5b1da]{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-a9f5b1da]{transform:rotate(-90deg);top:10px;right:18px;pointer-events:none}.goBack[data-v-a9f5b1da]{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-a9f5b1da]: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-10effbe8]{display:flex;margin:-20px -20px 0;background:var(--raised-background);align-items:center}.info-modal-header *[data-v-10effbe8]{margin:0}.info-modal-logo[data-v-10effbe8]{height:4em;width:4em}.info-modal-title[data-v-10effbe8]{display:flex;flex-direction:column;padding:10px 0;margin-left:10px}.info-modal-discord-link[data-v-10effbe8]{display:flex;align-items:center}.info-modal-discord[data-v-10effbe8]{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}.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-32313015]{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-32313015]{border-color:var(--bought)}.open[data-v-32313015]{display:inline;margin:0;padding-left:0}.handle[data-v-32313015]{flex-grow:0;margin-right:8px;margin-left:0;cursor:pointer}.details[data-v-32313015]{margin:0 80px 0 0;flex-grow:1}.error[data-v-32313015]{font-size:.8em;color:var(--danger)}.save-version[data-v-32313015]{margin-left:4px;font-size:.7em;opacity:.7}.actions[data-v-32313015]{position:absolute;top:0;bottom:0;right:4px;display:flex;padding:4px;z-index:1}.editname[data-v-32313015]{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-2a4275be],.field .field-title[data-v-2a4275be],.field .field-buttons[data-v-2a4275be]{margin:0}.field-buttons[data-v-2a4275be]{display:flex}.field-buttons .field[data-v-2a4275be]{margin:0 0 0 8px}.modal-footer[data-v-2a4275be]{margin-top:-20px}.footer[data-v-2a4275be]{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-47c54e31]{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-47c54e31]{height:46px;width:46px;display:flex;cursor:pointer;flex-shrink:0}.nav>.banner[data-v-47c54e31]{height:100%;width:unset}.overlay-nav[data-v-47c54e31]{position:fixed;top:10px;left:10px;display:flex;flex-direction:column;z-index:2}.overlay-nav>*[data-v-47c54e31]{height:50px;width:50px;display:flex;cursor:pointer;margin:0;align-items:center;justify-content:center}.title[data-v-47c54e31]{font-size:36px;text-align:left;margin-left:12px;cursor:unset}.nav>.title[data-v-47c54e31]{width:unset;flex-shrink:1;overflow:hidden;white-space:nowrap}.nav .saves[data-v-47c54e31],.nav .info[data-v-47c54e31]{display:flex}.tooltip-container[data-v-47c54e31]{width:100%;height:100%;display:flex}.overlay-nav .discord[data-v-47c54e31]{position:relative}.discord img[data-v-47c54e31]{width:100%;height:100%}.discord-links[data-v-47c54e31]{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-47c54e31]{position:absolute;left:-280px;right:unset;transition:left .25s ease}.overlay-nav .discord:hover .discord-links[data-v-47c54e31]{left:-10px}.discord-links li[data-v-47c54e31]{margin-bottom:4px}.discord-links li[data-v-47c54e31]:first-child{font-size:1.2em}*:not(.overlay-nav) .discord:hover .discord-links[data-v-47c54e31]{right:0}.material-icons[data-v-47c54e31]{font-size:36px}.material-icons[data-v-47c54e31]:hover{text-shadow:5px 0 10px var(--link),-3px 0 12px var(--foreground)}.nav .version-container[data-v-47c54e31]{display:flex;height:25px;margin-bottom:0;margin-left:10px}.overlay-nav .version-container[data-v-47c54e31]{width:unset;height:25px}.version[data-v-47c54e31]{color:var(--points)}.version:hover span[data-v-47c54e31]{text-shadow:5px 0 10px var(--points),-3px 0 12px var(--points)}.nav>div>a[data-v-47c54e31],.overlay-nav>div>a[data-v-47c54e31]{color:var(--foreground);text-shadow:none}.tabs-container[data-v-dcd207b4]{width:100vw;flex-grow:1;overflow-x:auto;overflow-y:hidden;display:flex}.tabs-container[data-v-dcd207b4]:not(.useHeader){width:calc(100vw - 50px);margin-left:50px}.tab[data-v-dcd207b4]{position:relative;height:100%;flex-grow:1;transition-duration:0s;overflow-y:auto;overflow-x:hidden}.inner-tab[data-v-dcd207b4]{padding:50px 10px;min-height:calc(100% - 100px);display:flex;flex-direction:column;margin:0;flex-grow:1}.tab+.tab>.inner-tab[data-v-dcd207b4]{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-5673325a]{height:90px;width:90px;font-size:10px;color:#fff;text-shadow:0 0 2px #000000}.achievement[data-v-5673325a]:not(.small){height:unset;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;font-size:unset;text-shadow:unset}.achievement.done[data-v-5673325a]{background-color:var(--bought);cursor:default}.achievement[data-v-5673325a] .equal-spaced{display:flex;justify-content:center}.achievement[data-v-5673325a] .equal-spaced>*{margin:auto}.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-727230a6]{height:100px;width:100px;border-radius:50%;padding:0;margin:0 10px}.treeNode>*[data-v-727230a6]: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);display:flex}.treeNode>*:first-child>*[data-v-727230a6]{pointer-events:none}.fullWidth[data-v-267283ff]{width:100%}.sticky[data-v-cccac690]{position:sticky;background:var(--background);width:calc(100% - 2px);z-index:3}.vr[data-v-5e0a978a]{width:4px;background:var(--outline);height:100%;margin:auto var(--feature-margin)}.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)}.bar[data-v-10cb85f8]{position:relative;display:table}.overlayTextContainer[data-v-10cb85f8]{position:absolute;border-radius:10px;vertical-align:middle;display:flex;justify-content:center;z-index:3}.overlayText[data-v-10cb85f8]{z-index:6}.border[data-v-10cb85f8]{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-10cb85f8]{position:absolute;background-color:var(--foreground);overflow:hidden;margin-left:-.5px;transition-duration:.2s;z-index:2;transition-duration:.05s}.challenge[data-v-2b675972]{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-2b675972]{background-color:var(--bought)}.challenge button[data-v-2b675972]{min-height:50px;width:120px;border-radius:var(--border-radius);box-shadow:none!important;background:transparent}.challenge.canStart button[data-v-2b675972]{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}.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)}.main-display-container{vertical-align:middle;margin-bottom:20px;display:flex;transition-duration:0s}.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}.not-fullscreen[data-v-2cea0e1c],.resize-listener[data-v-2cea0e1c]{position:absolute;top:0px;left:0;right:-4px;bottom:5px;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-d3bb0716]{padding:10px 0;margin-left:10px}.nan-footer[data-v-d3bb0716]{display:flex;justify-content:flex-end}.nan-footer button[data-v-d3bb0716]{margin:0 10px}.nan-modal-discord-link[data-v-d3bb0716]{display:flex;align-items:center}.nan-modal-discord[data-v-d3bb0716]{margin:0 4px 0 0}.tpsDisplay[data-v-89b89152]{position:absolute;left:10px;bottom:10px;z-index:100}.low[data-v-89b89152]{color:var(--danger)}.fade-leave-to[data-v-89b89152]{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-bf4e22ac]{background-color:var(--background);color:var(--foreground);display:flex;flex-flow:column;min-height:100%;height:100%}#modal-root[data-v-bf4e22ac]{position:absolute;min-height:100%;height:100%;color:var(--foreground)}.error-container[data-v-bf4e22ac]{background:var(--background);overflow:auto;width:100%;height:100%}.error-container>.error[data-v-bf4e22ac]{position:static} diff --git a/assets/ismobilejs.5c6954b9.js b/assets/ismobilejs.5c6954b9.js new file mode 100644 index 0000000..e1313fc --- /dev/null +++ b/assets/ismobilejs.5c6954b9.js @@ -0,0 +1 @@ +var p=/iPhone/i,b=/iPod/i,h=/iPad/i,v=/\biOS-universal(?:.+)Mac\b/i,s=/\bAndroid(?:.+)Mobile\b/i,f=/Android/i,r=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,d=/Silk/i,t=/Windows Phone/i,u=/\bWindows(?:.+)ARM\b/i,c=/BlackBerry/i,m=/BB10/i,w=/Opera Mini/i,y=/\b(CriOS|Chrome)(?:.+)Mobile/i,A=/Mobile(?:.+)Firefox\b/i,P=function(i){return typeof i!="undefined"&&i.platform==="MacIntel"&&typeof i.maxTouchPoints=="number"&&i.maxTouchPoints>1&&typeof MSStream=="undefined"};function T(i){return function(n){return n.test(i)}}function g(i){var n={userAgent:"",platform:"",maxTouchPoints:0};!i&&typeof navigator!="undefined"?n={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof i=="string"?n.userAgent=i:i&&i.userAgent&&(n={userAgent:i.userAgent,platform:i.platform,maxTouchPoints:i.maxTouchPoints||0});var a=n.userAgent,l=a.split("[FBAN");typeof l[1]!="undefined"&&(a=l[0]),l=a.split("Twitter"),typeof l[1]!="undefined"&&(a=l[0]);var e=T(a),o={apple:{phone:e(p)&&!e(t),ipod:e(b),tablet:!e(p)&&(e(h)||P(n))&&!e(t),universal:e(v),device:(e(p)||e(b)||e(h)||e(v)||P(n))&&!e(t)},amazon:{phone:e(r),tablet:!e(r)&&e(d),device:e(r)||e(d)},android:{phone:!e(t)&&e(r)||!e(t)&&e(s),tablet:!e(t)&&!e(r)&&!e(s)&&(e(d)||e(f)),device:!e(t)&&(e(r)||e(d)||e(s)||e(f))||e(/\bokhttp\b/i)},windows:{phone:e(t),tablet:e(u),device:e(t)||e(u)},other:{blackberry:e(c),blackberry10:e(m),opera:e(w),firefox:e(A),chrome:e(y),device:e(c)||e(m)||e(w)||e(A)||e(y)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}export{g as i}; diff --git a/assets/lz-string.dccec454.js b/assets/lz-string.dccec454.js new file mode 100644 index 0000000..c66e63f --- /dev/null +++ b/assets/lz-string.dccec454.js @@ -0,0 +1 @@ +var O={exports:{}};(function(x){var S=function(){var y=String.fromCharCode,M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",_={};function g(o,r){if(!_[o]){_[o]={};for(var s=0;s>>8,s[e*2+1]=p%256}return s},decompressFromUint8Array:function(o){if(o==null)return d.decompress(o);for(var r=new Array(o.length/2),s=0,e=r.length;s>1}else{for(t=1,e=0;e>1}h--,h==0&&(h=Math.pow(2,c),c++),delete w[u]}else for(t=p[u],e=0;e>1;h--,h==0&&(h=Math.pow(2,c),c++),p[A]=a++,u=String(v)}if(u!==""){if(Object.prototype.hasOwnProperty.call(w,u)){if(u.charCodeAt(0)<256){for(e=0;e>1}else{for(t=1,e=0;e>1}h--,h==0&&(h=Math.pow(2,c),c++),delete w[u]}else for(t=p[u],e=0;e>1;h--,h==0&&(h=Math.pow(2,c),c++)}for(t=2,e=0;e>1;for(;;)if(n=n<<1,f==r-1){l.push(s(n));break}else f++;return l.join("")},decompress:function(o){return o==null?"":o==""?null:d._decompress(o.length,32768,function(r){return o.charCodeAt(r)})},_decompress:function(o,r,s){var e=[],t=4,p=4,w=3,v="",A=[],u,h,a,c,l,n,f,i={val:s(0),position:r,index:1};for(u=0;u<3;u+=1)e[u]=u;for(a=0,l=Math.pow(2,2),n=1;n!=l;)c=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=s(i.index++)),a|=(c>0?1:0)*n,n<<=1;switch(a){case 0:for(a=0,l=Math.pow(2,8),n=1;n!=l;)c=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=s(i.index++)),a|=(c>0?1:0)*n,n<<=1;f=y(a);break;case 1:for(a=0,l=Math.pow(2,16),n=1;n!=l;)c=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=s(i.index++)),a|=(c>0?1:0)*n,n<<=1;f=y(a);break;case 2:return""}for(e[3]=f,h=f,A.push(f);;){if(i.index>o)return"";for(a=0,l=Math.pow(2,w),n=1;n!=l;)c=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=s(i.index++)),a|=(c>0?1:0)*n,n<<=1;switch(f=a){case 0:for(a=0,l=Math.pow(2,8),n=1;n!=l;)c=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=s(i.index++)),a|=(c>0?1:0)*n,n<<=1;e[p++]=y(a),f=p-1,t--;break;case 1:for(a=0,l=Math.pow(2,16),n=1;n!=l;)c=i.val&i.position,i.position>>=1,i.position==0&&(i.position=r,i.val=s(i.index++)),a|=(c>0?1:0)*n,n<<=1;e[p++]=y(a),f=p-1,t--;break;case 2:return A.join("")}if(t==0&&(t=Math.pow(2,w),w++),e[f])v=e[f];else if(f===p)v=h+h.charAt(0);else return null;A.push(v),e[p++]=h+v.charAt(0),t--,h=v,t==0&&(t=Math.pow(2,w),w++)}}};return d}();x!=null?x.exports=S:typeof angular!="undefined"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return S})})(O);var U=O.exports;export{U as L}; 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/nanoevents.1080beb7.js b/assets/nanoevents.1080beb7.js new file mode 100644 index 0000000..9d7a85f --- /dev/null +++ b/assets/nanoevents.1080beb7.js @@ -0,0 +1 @@ +let h=()=>({events:{},emit(t,...e){(this.events[t]||[]).forEach(s=>s(...e))},on(t,e){return(this.events[t]=this.events[t]||[]).push(e),()=>this.events[t]=(this.events[t]||[]).filter(s=>s!==e)}});export{h as c}; diff --git a/assets/querystring.d4befb87.js b/assets/querystring.d4befb87.js new file mode 100644 index 0000000..a57af59 --- /dev/null +++ b/assets/querystring.d4befb87.js @@ -0,0 +1 @@ +var d={};function C(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var I=function(e,r,t,a){r=r||"&",t=t||"=";var n={};if(typeof e!="string"||e.length===0)return n;var f=/\+/g;e=e.split(r);var i=1e3;a&&typeof a.maxKeys=="number"&&(i=a.maxKeys);var l=e.length;i>0&&l>i&&(l=i);for(var p=0;p=0?(m=c.substr(0,s),g=c.substr(s+1)):(m=c,g=""),o=decodeURIComponent(m),y=decodeURIComponent(g),C(n,o)?Array.isArray(n[o])?n[o].push(y):n[o]=[n[o],y]:n[o]=y}return n},u=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},R=function(e,r,t,a){return r=r||"&",t=t||"=",e===null&&(e=void 0),typeof e=="object"?Object.keys(e).map(function(n){var f=encodeURIComponent(u(n))+t;return Array.isArray(e[n])?e[n].map(function(i){return f+encodeURIComponent(u(i))}).join(r):f+encodeURIComponent(u(e[n]))}).join(r):a?encodeURIComponent(u(a))+t+encodeURIComponent(u(e)):""};d.decode=d.parse=I;d.encode=d.stringify=R;export{d as q}; 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.740e9352.js b/assets/sortablejs.740e9352.js new file mode 100644 index 0000000..20ee9e5 --- /dev/null +++ b/assets/sortablejs.740e9352.js @@ -0,0 +1,7 @@ +import{g as Ue}from"./earcut.b6f90e68.js";/**! + * Sortable 1.14.0 + * @author RubaXa + * @author owenm + * @license MIT + */function De(o,t){var e=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(o,i).enumerable})),e.push.apply(e,n)}return e}function J(o){for(var t=1;t=0)&&(e[i]=o[i]);return e}function Ve(o,t){if(o==null)return{};var e=$e(o,t),n,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(o);for(i=0;i=0)&&(!Object.prototype.propertyIsEnumerable.call(o,n)||(e[n]=o[n]))}return e}function Ze(o){return Qe(o)||Je(o)||tn(o)||en()}function Qe(o){if(Array.isArray(o))return he(o)}function Je(o){if(typeof Symbol!="undefined"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}function tn(o,t){if(!!o){if(typeof o=="string")return he(o,t);var e=Object.prototype.toString.call(o).slice(8,-1);if(e==="Object"&&o.constructor&&(e=o.constructor.name),e==="Map"||e==="Set")return Array.from(o);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return he(o,t)}}function he(o,t){(t==null||t>o.length)&&(t=o.length);for(var e=0,n=new Array(t);e"&&(t=t.substring(1)),o)try{if(o.matches)return o.matches(t);if(o.msMatchesSelector)return o.msMatchesSelector(t);if(o.webkitMatchesSelector)return o.webkitMatchesSelector(t)}catch{return!1}return!1}}function rn(o){return o.host&&o!==document&&o.host.nodeType?o.host:o.parentNode}function $(o,t,e,n){if(o){e=e||document;do{if(t!=null&&(t[0]===">"?o.parentNode===e&&Zt(o,t):Zt(o,t))||n&&o===e)return o;if(o===e)break}while(o=rn(o))}return null}var Ce=/\s+/g;function T(o,t,e){if(o&&t)if(o.classList)o.classList[e?"add":"remove"](t);else{var n=(" "+o.className+" ").replace(Ce," ").replace(" "+t+" "," ");o.className=(n+(e?" "+t:"")).replace(Ce," ")}}function h(o,t,e){var n=o&&o.style;if(n){if(e===void 0)return document.defaultView&&document.defaultView.getComputedStyle?e=document.defaultView.getComputedStyle(o,""):o.currentStyle&&(e=o.currentStyle),t===void 0?e:e[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=e+(typeof e=="string"?"":"px")}}function ht(o,t){var e="";if(typeof o=="string")e=o;else do{var n=h(o,"transform");n&&n!=="none"&&(e=n+" "+e)}while(!t&&(o=o.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(e)}function ke(o,t,e){if(o){var n=o.getElementsByTagName(t),i=0,r=n.length;if(e)for(;i=r:a=i<=r,!a)return n;if(n===Q())break;n=lt(n,!1)}return!1}function wt(o,t,e,n){for(var i=0,r=0,a=o.children;r2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,r=Ve(n,dn);Yt.pluginEvent.bind(g)(t,e,J({dragEl:c,parentEl:A,ghostEl:v,rootEl:C,nextEl:dt,lastDownEl:Ut,cloneEl:I,cloneHidden:at,dragStarted:It,putSortable:F,activeSortable:g.active,originalEvent:i,oldIndex:bt,oldDraggableIndex:Ft,newIndex:W,newDraggableIndex:rt,hideGhostForTarget:Le,unhideGhostForTarget:We,cloneNowHidden:function(){at=!0},cloneNowShown:function(){at=!1},dispatchSortableEvent:function(l){X({sortable:e,name:l,originalEvent:i})}},r))};function X(o){At(J({putSortable:F,cloneEl:I,targetEl:c,rootEl:C,oldIndex:bt,oldDraggableIndex:Ft,newIndex:W,newDraggableIndex:rt},o))}var c,A,v,C,dt,Ut,I,at,bt,W,Ft,rt,Ht,F,vt=!1,Qt=!1,Jt=[],ct,U,ae,le,Ie,Ne,It,gt,Rt,kt=!1,Gt=!1,qt,R,se=[],pe=!1,te=[],ne=typeof document!="undefined",Lt=Fe,Pe=Xt||nt?"cssFloat":"float",hn=ne&&!on&&!Fe&&"draggable"in document.createElement("div"),Be=function(){if(!!ne){if(nt)return!1;var o=document.createElement("x");return o.style.cssText="pointer-events:auto",o.style.pointerEvents==="auto"}}(),He=function(t,e){var n=h(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=wt(t,0,e),a=wt(t,1,e),l=r&&h(r),s=a&&h(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+O(r).width,d=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+O(a).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var f=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===f)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=i&&n[Pe]==="none"||a&&n[Pe]==="none"&&u+d>i)?"vertical":"horizontal"},pn=function(t,e,n){var i=n?t.left:t.top,r=n?t.right:t.bottom,a=n?t.width:t.height,l=n?e.left:e.top,s=n?e.right:e.bottom,u=n?e.width:e.height;return i===l||r===s||i+a/2===l+u/2},gn=function(t,e){var n;return Jt.some(function(i){var r=i[k].options.emptyInsertThreshold;if(!(!r||be(i))){var a=O(i),l=t>=a.left-r&&t<=a.right+r,s=e>=a.top-r&&e<=a.bottom+r;if(l&&s)return n=i}}),n},Ge=function(t){function e(r,a){return function(l,s,u,d){var f=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(r==null&&(a||f))return!0;if(r==null||r===!1)return!1;if(a&&r==="clone")return r;if(typeof r=="function")return e(r(l,s,u,d),a)(l,s,u,d);var p=(a?l:s).options.group.name;return r===!0||typeof r=="string"&&r===p||r.join&&r.indexOf(p)>-1}}var n={},i=t.group;(!i||zt(i)!="object")&&(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},Le=function(){!Be&&v&&h(v,"display","none")},We=function(){!Be&&v&&h(v,"display","")};ne&&document.addEventListener("click",function(o){if(Qt)return o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.stopImmediatePropagation&&o.stopImmediatePropagation(),Qt=!1,!1},!0);var ft=function(t){if(c){t=t.touches?t.touches[0]:t;var e=gn(t.clientX,t.clientY);if(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[k]._onDragOver(n)}}},mn=function(t){c&&c.parentNode[k]._isOutsideThisEl(t.target)};function g(o,t){if(!(o&&o.nodeType&&o.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(o));this.el=o,this.options=t=z({},t),o[k]=this;var e={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(o.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return He(o,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:g.supportPointer!==!1&&"PointerEvent"in window&&!Mt,emptyInsertThreshold:5};Yt.initializePlugins(this,o,e);for(var n in e)!(n in t)&&(t[n]=e[n]);Ge(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:hn,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?y(o,"pointerdown",this._onTapStart):(y(o,"mousedown",this._onTapStart),y(o,"touchstart",this._onTapStart)),this.nativeDraggable&&(y(o,"dragover",this),y(o,"dragenter",this)),Jt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),z(this,un())}g.prototype={constructor:g,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(gt=null)},_getDirection:function(t,e){return typeof this.options.direction=="function"?this.options.direction.call(this,t,e,c):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var e=this,n=this.el,i=this.options,r=i.preventOnFilter,a=t.type,l=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(l||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,d=i.filter;if(_n(n),!c&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Mt&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=$(s,i.draggable,n,!1),!(s&&s.animated)&&Ut!==s)){if(bt=N(s),Ft=N(s,i.draggable),typeof d=="function"){if(d.call(this,t,s,this)){X({sortable:e,rootEl:u,name:"filter",targetEl:s,toEl:n,fromEl:n}),B("filter",e,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(f){if(f=$(u,f.trim(),n,!1),f)return X({sortable:e,rootEl:f,name:"filter",targetEl:s,fromEl:n,toEl:n}),B("filter",e,{evt:t}),!0}),d)){r&&t.cancelable&&t.preventDefault();return}i.handle&&!$(u,i.handle,n,!1)||this._prepareDragStart(t,l,s)}}},_prepareDragStart:function(t,e,n){var i=this,r=i.el,a=i.options,l=r.ownerDocument,s;if(n&&!c&&n.parentNode===r){var u=O(n);if(C=r,c=n,A=c.parentNode,dt=c.nextSibling,Ut=n,Ht=a.group,g.dragged=c,ct={target:c,clientX:(e||t).clientX,clientY:(e||t).clientY},Ie=ct.clientX-u.left,Ne=ct.clientY-u.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,c.style["will-change"]="all",s=function(){if(B("delayEnded",i,{evt:t}),g.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!_e&&i.nativeDraggable&&(c.draggable=!0),i._triggerDragStart(t,e),X({sortable:i,name:"choose",originalEvent:t}),T(c,a.chosenClass,!0)},a.ignore.split(",").forEach(function(d){ke(c,d.trim(),ue)}),y(l,"dragover",ft),y(l,"mousemove",ft),y(l,"touchmove",ft),y(l,"mouseup",i._onDrop),y(l,"touchend",i._onDrop),y(l,"touchcancel",i._onDrop),_e&&this.nativeDraggable&&(this.options.touchStartThreshold=4,c.draggable=!0),B("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||e)&&(!this.nativeDraggable||!(Xt||nt))){if(g.eventCanceled){this._onDrop();return}y(l,"mouseup",i._disableDelayedDrag),y(l,"touchend",i._disableDelayedDrag),y(l,"touchcancel",i._disableDelayedDrag),y(l,"mousemove",i._delayedDragTouchMoveHandler),y(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&y(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){c&&ue(c),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;w(t,"mouseup",this._disableDelayedDrag),w(t,"touchend",this._disableDelayedDrag),w(t,"touchcancel",this._disableDelayedDrag),w(t,"mousemove",this._delayedDragTouchMoveHandler),w(t,"touchmove",this._delayedDragTouchMoveHandler),w(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||t.pointerType=="touch"&&t,!this.nativeDraggable||e?this.options.supportPointer?y(document,"pointermove",this._onTouchMove):e?y(document,"touchmove",this._onTouchMove):y(document,"mousemove",this._onTouchMove):(y(c,"dragend",this),y(C,"dragstart",this._onDragStart));try{document.selection?$t(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,e){if(vt=!1,C&&c){B("dragStarted",this,{evt:e}),this.nativeDraggable&&y(document,"dragover",mn);var n=this.options;!t&&T(c,n.dragClass,!1),T(c,n.ghostClass,!0),g.active=this,t&&this._appendGhost(),X({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(U){this._lastX=U.clientX,this._lastY=U.clientY,Le();for(var t=document.elementFromPoint(U.clientX,U.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(U.clientX,U.clientY),t!==e);)e=t;if(c.parentNode[k]._isOutsideThisEl(t),e)do{if(e[k]){var n=void 0;if(n=e[k]._onDragOver({clientX:U.clientX,clientY:U.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);We()}},_onTouchMove:function(t){if(ct){var e=this.options,n=e.fallbackTolerance,i=e.fallbackOffset,r=t.touches?t.touches[0]:t,a=v&&ht(v,!0),l=v&&a&&a.a,s=v&&a&&a.d,u=Lt&&R&&Te(R),d=(r.clientX-ct.clientX+i.x)/(l||1)+(u?u[0]-se[0]:0)/(l||1),f=(r.clientY-ct.clientY+i.y)/(s||1)+(u?u[1]-se[1]:0)/(s||1);if(!g.active&&!vt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))=0&&(X({rootEl:A,name:"add",toEl:A,fromEl:C,originalEvent:t}),X({sortable:this,name:"remove",toEl:A,originalEvent:t}),X({rootEl:A,name:"sort",toEl:A,fromEl:C,originalEvent:t}),X({sortable:this,name:"sort",toEl:A,originalEvent:t})),F&&F.save()):W!==bt&&W>=0&&(X({sortable:this,name:"update",toEl:A,originalEvent:t}),X({sortable:this,name:"sort",toEl:A,originalEvent:t})),g.active&&((W==null||W===-1)&&(W=bt,rt=Ft),X({sortable:this,name:"end",toEl:A,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){B("nulling",this),C=c=A=v=dt=I=Ut=at=ct=U=It=W=rt=bt=Ft=gt=Rt=F=Ht=g.dragged=g.ghost=g.clone=g.active=null,te.forEach(function(t){t.checked=!0}),te.length=ae=le=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":c&&(this._onDragOver(t),vn(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],e,n=this.el.children,i=0,r=n.length,a=this.options;in.right+i||o.clientX<=n.right&&o.clientY>n.bottom&&o.clientX>=n.left:o.clientX>n.right&&o.clientY>n.top||o.clientX<=n.right&&o.clientY>n.bottom+i}function En(o,t,e,n,i,r,a,l){var s=n?o.clientY:o.clientX,u=n?e.height:e.width,d=n?e.top:e.left,f=n?e.bottom:e.right,p=!1;if(!a){if(l&&qtd+u*r/2:sf-qt)return-Rt}else if(s>d+u*(1-i)/2&&sf-u*r/2)?s>d+u/2?1:-1:0}function Sn(o){return N(c)1&&(m.forEach(function(l){r.addAnimationState({target:l,rect:H?O(l):a}),ie(l),l.fromRect=a,n.removeAnimationState(l)}),H=!1,In(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(e){var n=e.sortable,i=e.isOwner,r=e.insertion,a=e.activeSortable,l=e.parentEl,s=e.putSortable,u=this.options;if(r){if(i&&a._hideClone(),Ot=!1,u.animation&&m.length>1&&(H||!i&&!a.options.sort&&!s)){var d=O(_,!1,!0,!0);m.forEach(function(p){p!==_&&(Ae(p,d),l.appendChild(p))}),H=!0}if(!i)if(H||jt(),m.length>1){var f=Kt;a._showClone(n),a.options.animation&&!Kt&&f&&L.forEach(function(p){a.addAnimationState({target:p,rect:Tt}),p.fromRect=Tt,p.thisAnimationDuration=null})}else a._showClone(n)}},dragOverAnimationCapture:function(e){var n=e.dragRect,i=e.isOwner,r=e.activeSortable;if(m.forEach(function(l){l.thisAnimationDuration=null}),r.options.animation&&!i&&r.multiDrag.isMultiDrag){Tt=z({},n);var a=ht(_,!0);Tt.top-=a.f,Tt.left-=a.e}},dragOverAnimationComplete:function(){H&&(H=!1,jt())},drop:function(e){var n=e.originalEvent,i=e.rootEl,r=e.parentEl,a=e.sortable,l=e.dispatchSortableEvent,s=e.oldIndex,u=e.putSortable,d=u||this.sortable;if(!!n){var f=this.options,p=r.children;if(!mt)if(f.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),T(_,f.selectedClass,!~m.indexOf(_)),~m.indexOf(_))m.splice(m.indexOf(_),1),Ct=null,At({sortable:a,rootEl:i,name:"deselect",targetEl:_,originalEvt:n});else{if(m.push(_),At({sortable:a,rootEl:i,name:"select",targetEl:_,originalEvt:n}),n.shiftKey&&Ct&&a.el.contains(Ct)){var E=N(Ct),b=N(_);if(~E&&~b&&E!==b){var S,P;for(b>E?(P=E,S=b):(P=b,S=E+1);P1){var K=O(_),x=N(_,":not(."+this.options.selectedClass+")");if(!Ot&&f.animation&&(_.thisAnimationDuration=null),d.captureAnimationState(),!Ot&&(f.animation&&(_.fromRect=K,m.forEach(function(D){if(D.thisAnimationDuration=null,D!==_){var V=H?O(D):K;D.fromRect=V,d.addAnimationState({target:D,rect:V})}})),jt(),m.forEach(function(D){p[x]?r.insertBefore(D,p[x]):r.appendChild(D),x++}),s===N(_))){var Y=!1;m.forEach(function(D){if(D.sortableIndex!==N(D)){Y=!0;return}}),Y&&l("update")}m.forEach(function(D){ie(D)}),d.animateAll()}q=d}(i===r||u&&u.lastPutMode!=="clone")&&L.forEach(function(D){D.parentNode&&D.parentNode.removeChild(D)})}},nullingGlobal:function(){this.isMultiDrag=mt=!1,L.length=0},destroyGlobal:function(){this._deselectMultiDrag(),w(document,"pointerup",this._deselectMultiDrag),w(document,"mouseup",this._deselectMultiDrag),w(document,"touchend",this._deselectMultiDrag),w(document,"keydown",this._checkKeyDown),w(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(typeof mt!="undefined"&&mt)&&q===this.sortable&&!(e&&$(e.target,this.options.draggable,this.sortable.el,!1))&&!(e&&e.button!==0))for(;m.length;){var n=m[0];T(n,this.options.selectedClass,!1),m.shift(),At({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},z(o,{pluginName:"multiDrag",utils:{select:function(e){var n=e.parentNode[k];!n||!n.options.multiDrag||~m.indexOf(e)||(q&&q!==n&&(q.multiDrag._deselectMultiDrag(),q=n),T(e,n.options.selectedClass,!0),m.push(e))},deselect:function(e){var n=e.parentNode[k],i=m.indexOf(e);!n||!n.options.multiDrag||!~i||(T(e,n.options.selectedClass,!1),m.splice(i,1))}},eventProperties:function(){var e=this,n=[],i=[];return m.forEach(function(r){n.push({multiDragElement:r,index:r.sortableIndex});var a;H&&r!==_?a=-1:H?a=N(r,":not(."+e.options.selectedClass+")"):a=N(r),i.push({multiDragElement:r,index:a})}),{items:Ze(m),clones:[].concat(L),oldIndicies:n,newIndicies:i}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),e==="ctrl"?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function In(o,t){m.forEach(function(e,n){var i=t.children[e.sortableIndex+(o?Number(n):0)];i?t.insertBefore(e,i):t.appendChild(e)})}function xe(o,t){L.forEach(function(e,n){var i=t.children[e.sortableIndex+(o?Number(n):0)];i?t.insertBefore(e,i):t.appendChild(e)})}function jt(){m.forEach(function(o){o!==_&&o.parentNode&&o.parentNode.removeChild(o)})}g.mount(new Cn);g.mount(Ee,ye);var Nn=Object.freeze(Object.defineProperty({__proto__:null,default:g,MultiDrag:An,Sortable:g,Swap:On},Symbol.toStringTag,{value:"Module"})),xn=Ue(Nn);export{xn as r}; diff --git a/assets/url.68c785f7.js b/assets/url.68c785f7.js new file mode 100644 index 0000000..c6a8f0b --- /dev/null +++ b/assets/url.68c785f7.js @@ -0,0 +1,2 @@ +import{c as st}from"./earcut.b6f90e68.js";import{q as ct}from"./querystring.d4befb87.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.3d5e8343.js b/assets/vue-next-select.3d5e8343.js new file mode 100644 index 0000000..9f976c8 --- /dev/null +++ b/assets/vue-next-select.3d5e8343.js @@ -0,0 +1,3 @@ +import"./vue.72cfed44.js";import{o as b,a5 as B,r as x,a6 as y,bu as $,bv as I,U as P,aN as ye,av as re,af as Ne,aO as J,a4 as U,ad as X,w as ge,c as Ee,ba as Le,bt as je,x as F,aD as $e,aI as Ue,aq as he,K,O as Q,u as ze,D as Z,b5 as S,a3 as h,ak as Pe,b4 as j,aw as _,aK as qe}from"./@vue.6a1d7e86.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)}}}},He={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",He,[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})})},D=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=N(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=N(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}});qe("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(),_(H)},pointerBackward:function(){Ve(),_(H)},pointerFirst:function(){var a,o=N(n.options.keys());try{for(o.s();!(a=o.n()).done;){var i=a.value;if(q(i))break}}catch(r){o.e(r)}finally{o.f()}_(H)},pointerLast:function(){var a,o=N(me(n.options.keys()).reverse());try{for(o.s();!(a=o.n()).done;){var i=a.value;if(q(i))break}}catch(r){o.e(r)}finally{o.f()}_(H)},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=N(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&&q(k))break}}catch(C){p.e(C)}finally{p.f()}clearTimeout(se),se=setTimeout(function(){W=""},500)}}},pointerSet:q,direction:fe}},components:{VInput:ae,VTags:le,VDropdown:oe}});ue.__VERSION__="2.10.5";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-next-select.9e6f4164.css b/assets/vue-next-select.9e6f4164.css new file mode 100644 index 0000000..e4812d2 --- /dev/null +++ b/assets/vue-next-select.9e6f4164.css @@ -0,0 +1 @@ +.icon.delete{display:flex;justify-content:center;align-items:center;padding:0;margin:0;border:none;background:none;height:8px;width:8px;min-height:8px;min-width:8px;max-height:8px;max-width:8px;cursor:pointer}.icon.arrow-downward{color:#999;border-style:solid;border-width:4px 4px 0;border-color:#999 transparent transparent;content:"";transition:transform .2s linear;cursor:pointer}.icon.arrow-downward.active{transform:rotate(180deg)}.vue-select{position:relative;display:flex;align-items:flex-start;justify-content:flex-start;flex-direction:column;width:150px;border-radius:4px;border:1px solid #999;box-sizing:border-box;outline:none}.vue-select[aria-disabled=true]{background-color:#efefef}.vue-select[aria-disabled=true] *,.vue-select[aria-disabled=true] input{cursor:not-allowed}.vue-select-header{display:flex;width:100%;align-items:center;justify-content:space-between}.vue-select-header .icon.loading,.vue-select-header .icon.arrow-downward{margin-right:4px}.vue-tags{display:flex;flex-wrap:wrap;margin:0;padding:2px;min-height:calc(1rem + 4px);user-select:none}.vue-tags.collapsed{flex-wrap:nowrap;overflow:auto}.vue-tag{display:none;align-items:center;justify-content:center;list-style-type:none;border-radius:4px;background-color:#999;padding:0 4px;margin:2px;min-height:1rem;font-size:.8rem}.vue-tag span{margin-right:4px}.vue-tag.selected{display:flex;align-items:center;justify-content:center;background-color:#999;border-radius:4px;padding:0 4px;font-size:.8rem}.vue-tags[data-removable=false] .vue-tag.selected img:hover{cursor:not-allowed}.vue-select-input-wrapper{position:relative;display:flex;width:100%;align-items:center;justify-content:space-between}.vue-select-input-wrapper .icon.loading{margin-right:4px}.vue-input{display:inline-flex;align-items:center;border-radius:4px;border:none;outline:none;max-width:100%;min-width:0;width:100%;box-sizing:border-box;padding:4px}.vue-select[data-is-focusing=false][aria-disabled=false] .vue-input input,input[readonly]{cursor:default}.vue-input input{border:none;outline:none;width:100%;min-width:0;font-size:.8rem;padding:0}.vue-input input[disabled]{background-color:#efefef}.vue-input input[readonly],.vue-select-header .vue-input input[disabled]{background-color:unset}.vue-dropdown{display:none;position:absolute;background-color:#fff;z-index:1;overflow-y:auto;width:100%;min-width:0;margin:0;padding:0;left:-1px;box-sizing:content-box;border:1px solid #999;list-style-type:none}.vue-select[aria-expanded=true] .vue-dropdown{display:unset}.vue-dropdown[data-visible-length="0"]{border:none}.vue-dropdown-item{list-style-type:none;padding:4px;cursor:pointer;min-height:1rem}.vue-dropdown-item.highlighted{background-color:#41b883}.vue-dropdown-item.disabled{background-color:#efefef;cursor:not-allowed}.vue-dropdown-item.selected{background-color:#f3f3f3}.vue-dropdown-item.selected.highlighted{background-color:#ff6a6a}.vue-dropdown[data-removable=false] .vue-dropdown-item.selected:hover{cursor:not-allowed}.vue-dropdown[data-addable=false][data-multiple=true] .vue-dropdown-item:not(.selected):hover{cursor:not-allowed}.icon.loading{display:inline-block;position:relative;width:8px;min-width:8px;height:8px;min-height:8px}.icon.loading div{box-sizing:border-box;display:block;position:absolute;border:1px solid #999;width:8px;height:8px;border-radius:50%;animation:loading 1s cubic-bezier(.5,0,.5,1) infinite;border-color:#999 transparent transparent transparent}.icon.loading div:nth-child(1){animation-delay:-.08s}.icon.loading div:nth-child(2){animation-delay:-.16s}@keyframes loading{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.inline-flex{display:inline-flex}.vue-select[aria-expanded=true].direction-bottom{border-bottom-left-radius:0;border-bottom-right-radius:0}.vue-select[aria-expanded=true].direction-top{border-top-left-radius:0;border-top-right-radius:0}.vue-select.direction-top .vue-dropdown{bottom:100%;border-top-left-radius:3px;border-top-right-radius:3px}.vue-select.direction-bottom .vue-dropdown{top:100%;border-bottom-left-radius:3px;border-bottom-right-radius:3px} diff --git a/assets/vue-textarea-autosize.35804eaf.js b/assets/vue-textarea-autosize.35804eaf.js new file mode 100644 index 0000000..e0bd93a --- /dev/null +++ b/assets/vue-textarea-autosize.35804eaf.js @@ -0,0 +1,5 @@ +/*! + * vue-textarea-autosize v1.1.1 + * (c) 2019 Saymon + * Released under the MIT License. + */var p={name:"TextareaAutosize",props:{value:{type:[String,Number],default:""},autosize:{type:Boolean,default:!0},minHeight:{type:[Number],default:null},maxHeight:{type:[Number],default:null},important:{type:[Boolean,Array],default:!1}},data:function(){return{val:null,maxHeightScroll:!1,height:"auto"}},computed:{computedStyles:function(){return this.autosize?{resize:this.isResizeImportant?"none !important":"none",height:this.height,overflow:this.maxHeightScroll?"auto":this.isOverflowImportant?"hidden !important":"hidden"}:{}},isResizeImportant:function(){var e=this.important;return e===!0||Array.isArray(e)&&e.includes("resize")},isOverflowImportant:function(){var e=this.important;return e===!0||Array.isArray(e)&&e.includes("overflow")},isHeightImportant:function(){var e=this.important;return e===!0||Array.isArray(e)&&e.includes("height")}},watch:{value:function(e){this.val=e},val:function(e){this.$nextTick(this.resize),this.$emit("input",e)},minHeight:function(){this.$nextTick(this.resize)},maxHeight:function(){this.$nextTick(this.resize)},autosize:function(e){e&&this.resize()}},methods:{resize:function(){var e=this,a=this.isHeightImportant?"important":"";return this.height="auto".concat(a?" !important":""),this.$nextTick(function(){var i=e.$el.scrollHeight+1;e.minHeight&&(i=ie.maxHeight?(i=e.maxHeight,e.maxHeightScroll=!0):e.maxHeightScroll=!1);var u=i+"px";e.height="".concat(u).concat(a?" !important":"")}),this}},created:function(){this.val=this.value},mounted:function(){this.resize()}};function g(t,e,a,i,u,f,s,l,m,d){typeof s!="boolean"&&(m=l,l=s,s=!1);var n=typeof a=="function"?a.options:a;t&&t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns,n._compiled=!0,u&&(n.functional=!0)),i&&(n._scopeId=i);var o;if(f?(o=function(r){r=r||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!r&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(r=__VUE_SSR_CONTEXT__),e&&e.call(this,m(r)),r&&r._registeredComponents&&r._registeredComponents.add(f)},n._ssrRegister=o):e&&(o=s?function(){e.call(this,d(this.$root.$options.shadowRoot))}:function(h){e.call(this,l(h))}),o)if(n.functional){var v=n.render;n.render=function(r,c){return o.call(c),v(r,c)}}else{var _=n.beforeCreate;n.beforeCreate=_?[].concat(_,o):[o]}return a}var z=g;const H=p;var y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.val,expression:"val"}],style:t.computedStyles,domProps:{value:t.val},on:{focus:t.resize,input:function(i){i.target.composing||(t.val=i.target.value)}}})},x=[];const $=void 0,w=void 0,S=void 0,T=!1;var A=z({render:y,staticRenderFns:x},$,H,w,T,S,void 0,void 0),C="1.1.1",R=function(e){e.component("TextareaAutosize",A)},b={install:R,version:C};typeof window!="undefined"&&window.Vue&&window.Vue.use(b);export{b as p}; diff --git a/assets/vue-toastification.42f47de1.js b/assets/vue-toastification.42f47de1.js new file mode 100644 index 0000000..589dd92 --- /dev/null +++ b/assets/vue-toastification.42f47de1.js @@ -0,0 +1 @@ +import"./vue.72cfed44.js";import{af as C,C as mt,H as pt,o,a5 as u,M as x,K as b,c as p,w,av as V,aQ as M,ac as $,O as W,aO as y,a4 as R,a6 as _,U as N,aY as vt,bv as gt,r as Tt,bd as Ct,aN as H,ad as yt,ak as bt,aq as Ot,aw as _t,bf as St}from"./@vue.6a1d7e86.js";var Et=Object.defineProperty,k=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,wt=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))wt.call(e,s)&&U(t,s,e[s]);return t},I=t=>typeof t=="function",D=t=>typeof t=="string",K=t=>D(t)&&t.trim().length>0,It=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=>I(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=>It(t[e])),h=(t,e)=>(O(t)||I(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)&&I(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:w(()=>[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:w(()=>[$(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:w(()=>[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){I(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:w(()=>[(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.4b5f8ac8.css b/assets/vue-toastification.4b5f8ac8.css new file mode 100644 index 0000000..b701b41 --- /dev/null +++ b/assets/vue-toastification.4b5f8ac8.css @@ -0,0 +1 @@ +.Vue-Toastification__container{z-index:9999;position:fixed;padding:4px;width:600px;box-sizing:border-box;display:flex;min-height:100%;color:#fff;flex-direction:column;pointer-events:none}@media only screen and (min-width : 600px){.Vue-Toastification__container.top-left,.Vue-Toastification__container.top-right,.Vue-Toastification__container.top-center{top:1em}.Vue-Toastification__container.bottom-left,.Vue-Toastification__container.bottom-right,.Vue-Toastification__container.bottom-center{bottom:1em;flex-direction:column-reverse}.Vue-Toastification__container.top-left,.Vue-Toastification__container.bottom-left{left:1em}.Vue-Toastification__container.top-left .Vue-Toastification__toast,.Vue-Toastification__container.bottom-left .Vue-Toastification__toast{margin-right:auto}@supports not (-moz-appearance: none){.Vue-Toastification__container.top-left .Vue-Toastification__toast--rtl,.Vue-Toastification__container.bottom-left .Vue-Toastification__toast--rtl{margin-right:unset;margin-left:auto}}.Vue-Toastification__container.top-right,.Vue-Toastification__container.bottom-right{right:1em}.Vue-Toastification__container.top-right .Vue-Toastification__toast,.Vue-Toastification__container.bottom-right .Vue-Toastification__toast{margin-left:auto}@supports not (-moz-appearance: none){.Vue-Toastification__container.top-right .Vue-Toastification__toast--rtl,.Vue-Toastification__container.bottom-right .Vue-Toastification__toast--rtl{margin-left:unset;margin-right:auto}}.Vue-Toastification__container.top-center,.Vue-Toastification__container.bottom-center{left:50%;margin-left:-300px}.Vue-Toastification__container.top-center .Vue-Toastification__toast,.Vue-Toastification__container.bottom-center .Vue-Toastification__toast{margin-left:auto;margin-right:auto}}@media only screen and (max-width : 600px){.Vue-Toastification__container{width:100vw;padding:0;left:0;margin:0}.Vue-Toastification__container .Vue-Toastification__toast{width:100%}.Vue-Toastification__container.top-left,.Vue-Toastification__container.top-right,.Vue-Toastification__container.top-center{top:0}.Vue-Toastification__container.bottom-left,.Vue-Toastification__container.bottom-right,.Vue-Toastification__container.bottom-center{bottom:0;flex-direction:column-reverse}}.Vue-Toastification__toast{display:inline-flex;position:relative;max-height:800px;min-height:64px;box-sizing:border-box;margin-bottom:1rem;padding:22px 24px;border-radius:8px;box-shadow:0 1px 10px #0000001a,0 2px 15px #0000000d;justify-content:space-between;font-family:Lato,Helvetica,Roboto,Arial,sans-serif;max-width:600px;min-width:326px;pointer-events:auto;overflow:hidden;transform:translateZ(0);direction:ltr}.Vue-Toastification__toast--rtl{direction:rtl}.Vue-Toastification__toast--default{background-color:#1976d2;color:#fff}.Vue-Toastification__toast--info{background-color:#2196f3;color:#fff}.Vue-Toastification__toast--success{background-color:#4caf50;color:#fff}.Vue-Toastification__toast--error{background-color:#ff5252;color:#fff}.Vue-Toastification__toast--warning{background-color:#ffc107;color:#fff}@media only screen and (max-width : 600px){.Vue-Toastification__toast{border-radius:0;margin-bottom:.5rem}}.Vue-Toastification__toast-body{flex:1;line-height:24px;font-size:16px;word-break:break-word;white-space:pre-wrap}.Vue-Toastification__toast-component-body{flex:1}.Vue-Toastification__toast.disable-transition{animation:none!important}.Vue-Toastification__close-button{font-weight:700;font-size:24px;line-height:24px;background:transparent;outline:none;border:none;padding:0 0 0 10px;cursor:pointer;transition:.3s ease;align-items:center;color:#fff;opacity:.3;transition:visibility 0s,opacity .2s linear}.Vue-Toastification__close-button:hover,.Vue-Toastification__close-button:focus{opacity:1}.Vue-Toastification__toast:not(:hover) .Vue-Toastification__close-button.show-on-hover{opacity:0}.Vue-Toastification__toast--rtl .Vue-Toastification__close-button{padding-left:unset;padding-right:10px}@keyframes scale-x-frames{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Vue-Toastification__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:5px;z-index:10000;background-color:#ffffffb3;transform-origin:left;animation:scale-x-frames linear 1 forwards}.Vue-Toastification__toast--rtl .Vue-Toastification__progress-bar{right:0;left:unset;transform-origin:right}.Vue-Toastification__icon{margin:auto 18px auto 0;background:transparent;outline:none;border:none;padding:0;transition:.3s ease;align-items:center;width:20px;height:100%}.Vue-Toastification__toast--rtl .Vue-Toastification__icon{margin:auto 0 auto 18px}@keyframes bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes bounceOutRight{40%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(1000px,0,0)}}@keyframes bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Vue-Toastification__bounce-enter-active.top-left,.Vue-Toastification__bounce-enter-active.bottom-left{animation-name:bounceInLeft}.Vue-Toastification__bounce-enter-active.top-right,.Vue-Toastification__bounce-enter-active.bottom-right{animation-name:bounceInRight}.Vue-Toastification__bounce-enter-active.top-center{animation-name:bounceInDown}.Vue-Toastification__bounce-enter-active.bottom-center{animation-name:bounceInUp}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-left,.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-left{animation-name:bounceOutLeft}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-right,.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-right{animation-name:bounceOutRight}.Vue-Toastification__bounce-leave-active:not(.disable-transition).top-center{animation-name:bounceOutUp}.Vue-Toastification__bounce-leave-active:not(.disable-transition).bottom-center{animation-name:bounceOutDown}.Vue-Toastification__bounce-leave-active,.Vue-Toastification__bounce-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__bounce-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s}@keyframes fadeOutTop{0%{transform:translateY(0);opacity:1}to{transform:translateY(-50px);opacity:0}}@keyframes fadeOutLeft{0%{transform:translate(0);opacity:1}to{transform:translate(-50px);opacity:0}}@keyframes fadeOutBottom{0%{transform:translateY(0);opacity:1}to{transform:translateY(50px);opacity:0}}@keyframes fadeOutRight{0%{transform:translate(0);opacity:1}to{transform:translate(50px);opacity:0}}@keyframes fadeInLeft{0%{transform:translate(-50px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes fadeInRight{0%{transform:translate(50px);opacity:0}to{transform:translate(0);opacity:1}}@keyframes fadeInTop{0%{transform:translateY(-50px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes fadeInBottom{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.Vue-Toastification__fade-enter-active.top-left,.Vue-Toastification__fade-enter-active.bottom-left{animation-name:fadeInLeft}.Vue-Toastification__fade-enter-active.top-right,.Vue-Toastification__fade-enter-active.bottom-right{animation-name:fadeInRight}.Vue-Toastification__fade-enter-active.top-center{animation-name:fadeInTop}.Vue-Toastification__fade-enter-active.bottom-center{animation-name:fadeInBottom}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-left,.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-left{animation-name:fadeOutLeft}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-right,.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-right{animation-name:fadeOutRight}.Vue-Toastification__fade-leave-active:not(.disable-transition).top-center{animation-name:fadeOutTop}.Vue-Toastification__fade-leave-active:not(.disable-transition).bottom-center{animation-name:fadeOutBottom}.Vue-Toastification__fade-leave-active,.Vue-Toastification__fade-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__fade-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s}@keyframes slideInBlurredLeft{0%{transform:translate(-1000px) scaleX(2.5) scaleY(.2);transform-origin:100% 50%;filter:blur(40px);opacity:0}to{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredTop{0%{transform:translateY(-1000px) scaleY(2.5) scaleX(.2);transform-origin:50% 0%;filter:blur(240px);opacity:0}to{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredRight{0%{transform:translate(1000px) scaleX(2.5) scaleY(.2);transform-origin:0% 50%;filter:blur(40px);opacity:0}to{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideInBlurredBottom{0%{transform:translateY(1000px) scaleY(2.5) scaleX(.2);transform-origin:50% 100%;filter:blur(240px);opacity:0}to{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}}@keyframes slideOutBlurredTop{0%{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 0%;filter:blur(0);opacity:1}to{transform:translateY(-1000px) scaleY(2) scaleX(.2);transform-origin:50% 0%;filter:blur(240px);opacity:0}}@keyframes slideOutBlurredBottom{0%{transform:translateY(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translateY(1000px) scaleY(2) scaleX(.2);transform-origin:50% 100%;filter:blur(240px);opacity:0}}@keyframes slideOutBlurredLeft{0%{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translate(-1000px) scaleX(2) scaleY(.2);transform-origin:100% 50%;filter:blur(40px);opacity:0}}@keyframes slideOutBlurredRight{0%{transform:translate(0) scaleY(1) scaleX(1);transform-origin:50% 50%;filter:blur(0);opacity:1}to{transform:translate(1000px) scaleX(2) scaleY(.2);transform-origin:0% 50%;filter:blur(40px);opacity:0}}.Vue-Toastification__slideBlurred-enter-active.top-left,.Vue-Toastification__slideBlurred-enter-active.bottom-left{animation-name:slideInBlurredLeft}.Vue-Toastification__slideBlurred-enter-active.top-right,.Vue-Toastification__slideBlurred-enter-active.bottom-right{animation-name:slideInBlurredRight}.Vue-Toastification__slideBlurred-enter-active.top-center{animation-name:slideInBlurredTop}.Vue-Toastification__slideBlurred-enter-active.bottom-center{animation-name:slideInBlurredBottom}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-left,.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-left{animation-name:slideOutBlurredLeft}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-right,.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-right{animation-name:slideOutBlurredRight}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).top-center{animation-name:slideOutBlurredTop}.Vue-Toastification__slideBlurred-leave-active:not(.disable-transition).bottom-center{animation-name:slideOutBlurredBottom}.Vue-Toastification__slideBlurred-leave-active,.Vue-Toastification__slideBlurred-enter-active{animation-duration:.75s;animation-fill-mode:both}.Vue-Toastification__slideBlurred-move{transition-timing-function:ease-in-out;transition-property:all;transition-duration:.4s} diff --git a/assets/vue.72cfed44.js b/assets/vue.72cfed44.js new file mode 100644 index 0000000..dde34b8 --- /dev/null +++ b/assets/vue.72cfed44.js @@ -0,0 +1 @@ +import{g as u}from"./earcut.b6f90e68.js";import{a as c,i as f,N as n,e as p,b as S,d as v,E as h,R,f as C,g as y,h as b,j as g,k as w,l as E,m as T,n as x,p as k,q as M,s as D,t as P,u as V,v as N,x as A,y as B,z as H,A as F,B as U,C as z,D as I,F as K,G as O,H as j,I as _,J as q,K as W,L,M as G,O as $,P as J,Q,S as X,U as Y,V as Z,W as ee,X as ae,Y as se,Z as te,_ as oe,$ as re,a0 as ne,a1 as ie,a2 as ce,a3 as le,c as de,a4 as me,a5 as ue,a6 as fe,a7 as pe,a8 as Se,a9 as ve,aa as he,ab as Re,ac as Ce,ad as ye,ae as be,af as ge,ag as we,ah as Ee,ai as Te,aj as xe,ak as ke,al as Me,am as De,an as Pe,ao as Ve,ap as Ne,aq as Ae,ar as Be,as as He,at as Fe,au as Ue,av as ze,aw as Ie,ax as Ke,ay as Oe,az as je,aA as _e,aB as qe,aC as We,aD as Le,aE as Ge,aF as $e,aG as Je,aH as Qe,aI as Xe,o as Ye,aJ as Ze,aK as ea,aL as aa,aM as sa,aN as ta,r as oa,aO as ra,aP as na,aQ as ia,aR as ca,aS as la,aT as da,aU as ma,aV as ua,aW as fa,aX as pa,aY as Sa,aZ as va,a_ as ha,a$ as Ra,b0 as Ca,b1 as ya,b2 as ba,b3 as ga,b4 as wa,b5 as Ea,b6 as Ta,b7 as xa,b8 as ka,w as Ma,b9 as Da,ba as Pa,bb as Va,bc as Na,T as Aa,bd as Ba,be as Ha,bf as Fa,bg as Ua,bh as za,bi as Ia,bj as Ka,bk as Oa,bl as ja,bm as _a,bn as qa,bo as Wa,bp as La,bq as Ga,br as $a,bs as Ja,bt as Qa,bu as Xa,bv as Ya}from"./@vue.6a1d7e86.js";const i=Object.create(null);function l(e,d){if(!f(e))if(e.nodeType)e=e.innerHTML;else return n;const t=e,o=i[t];if(o)return o;if(e[0]==="#"){const a=document.querySelector(e);e=a?a.innerHTML:""}const s=p({hoistStatic:!0,onError:void 0,onWarn:n},d);!s.isCustomElement&&typeof customElements!="undefined"&&(s.isCustomElement=a=>!!customElements.get(a));const{code:m}=S(e,s),r=new Function("Vue",m)(v);return r._rc=!0,i[t]=r}c(l);var Za=Object.freeze(Object.defineProperty({__proto__:null,compile:l,EffectScope:h,ReactiveEffect:R,customRef:C,effect:y,effectScope:b,getCurrentScope:g,isProxy:w,isReactive:E,isReadonly:T,isRef:x,isShallow:k,markRaw:M,onScopeDispose:D,proxyRefs:P,reactive:V,readonly:N,ref:A,shallowReactive:B,shallowReadonly:H,shallowRef:F,stop:U,toRaw:z,toRef:I,toRefs:K,triggerRef:O,unref:j,camelize:_,capitalize:q,normalizeClass:W,normalizeProps:L,normalizeStyle:G,toDisplayString:$,toHandlerKey:J,BaseTransition:Q,Comment:X,Fragment:Y,KeepAlive:Z,Static:ee,Suspense:ae,Teleport:se,Text:te,assertNumber:oe,callWithAsyncErrorHandling:re,callWithErrorHandling:ne,cloneVNode:ie,compatUtils:ce,computed:le,createBlock:de,createCommentVNode:me,createElementBlock:ue,createElementVNode:fe,createHydrationRenderer:pe,createPropsRestProxy:Se,createRenderer:ve,createSlots:he,createStaticVNode:Re,createTextVNode:Ce,createVNode:ye,defineAsyncComponent:be,defineComponent:ge,defineEmits:we,defineExpose:Ee,defineProps:Te,get devtools(){return xe},getCurrentInstance:ke,getTransitionRawChildren:Me,guardReactiveProps:De,h:Pe,handleError:Ve,initCustomFormatter:Ne,inject:Ae,isMemoSame:Be,isRuntimeOnly:He,isVNode:Fe,mergeDefaults:Ue,mergeProps:ze,nextTick:Ie,onActivated:Ke,onBeforeMount:Oe,onBeforeUnmount:je,onBeforeUpdate:_e,onDeactivated:qe,onErrorCaptured:We,onMounted:Le,onRenderTracked:Ge,onRenderTriggered:$e,onServerPrefetch:Je,onUnmounted:Qe,onUpdated:Xe,openBlock:Ye,popScopeId:Ze,provide:ea,pushScopeId:aa,queuePostFlushCb:sa,registerRuntimeCompiler:c,renderList:ta,renderSlot:oa,resolveComponent:ra,resolveDirective:na,resolveDynamicComponent:ia,resolveFilter:ca,resolveTransitionHooks:la,setBlockTracking:da,setDevtoolsHook:ma,setTransitionHooks:ua,ssrContextKey:fa,ssrUtils:pa,toHandlers:Sa,transformVNodeArgs:va,useAttrs:ha,useSSRContext:Ra,useSlots:Ca,useTransitionState:ya,version:ba,warn:ga,watch:wa,watchEffect:Ea,watchPostEffect:Ta,watchSyncEffect:xa,withAsyncContext:ka,withCtx:Ma,withDefaults:Da,withDirectives:Pa,withMemo:Va,withScopeId:Na,Transition:Aa,TransitionGroup:Ba,VueElement:Ha,createApp:Fa,createSSRApp:Ua,defineCustomElement:za,defineSSRCustomElement:Ia,hydrate:Ka,initDirectivesForSSR:Oa,render:ja,useCssModule:_a,useCssVars:qa,vModelCheckbox:Wa,vModelDynamic:La,vModelRadio:Ga,vModelSelect:$a,vModelText:Ja,vShow:Qa,withKeys:Xa,withModifiers:Ya},Symbol.toStringTag,{value:"Module"})),ss=u(Za);export{ss as r}; diff --git a/assets/vuedraggable.a52097e2.js b/assets/vuedraggable.a52097e2.js new file mode 100644 index 0000000..9325e17 --- /dev/null +++ b/assets/vuedraggable.a52097e2.js @@ -0,0 +1,4 @@ +import{c as jt,a as Ct}from"./earcut.b6f90e68.js";import{r as Lt}from"./vue.72cfed44.js";import{r as Ft}from"./sortablejs.740e9352.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)+"}[^<]* + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/manifest.webmanifest b/manifest.webmanifest new file mode 100644 index 0000000..94ed24a --- /dev/null +++ b/manifest.webmanifest @@ -0,0 +1 @@ +{"name":"Profectus Demo","short_name":"Profectus Demo","start_url":"./","display":"standalone","background_color":"#ffffff","lang":"en","scope":"./","description":"A demo project made in Profectus","theme_color":"#2E3440","icons":[{"src":"pwa-192x192.png","sizes":"192x192","type":"image/png"},{"src":"pwa-512x512.png","sizes":"512x512","type":"image/png"},{"src":"pwa-512x512.png","sizes":"512x512","type":"image/png","purpose":"any maskable"}]} diff --git a/particle.png b/particle.png new file mode 100644 index 0000000..152e9af Binary files /dev/null and b/particle.png differ diff --git a/pwa-192x192.png b/pwa-192x192.png new file mode 100644 index 0000000..00eaafd Binary files /dev/null and b/pwa-192x192.png differ diff --git a/pwa-512x512.png b/pwa-512x512.png new file mode 100644 index 0000000..1ad85e8 Binary files /dev/null and b/pwa-512x512.png differ diff --git a/robots.txt b/robots.txt new file mode 100644 index 0000000..c2a49f4 --- /dev/null +++ b/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Allow: / diff --git a/sw.js b/sw.js new file mode 100644 index 0000000..b47ff5e --- /dev/null +++ b/sw.js @@ -0,0 +1 @@ +if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,l)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(s[r])return;let u={};const o=e=>i(e,r),a={module:{uri:r},exports:u,require:o};s[r]=Promise.all(n.map((e=>a[e]||o(e)))).then((e=>(l(...e),u)))}}define(["./workbox-7369c0e1"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"apple-touch-icon.png",revision:"26e53bb981d06c8069ffd9d2a14fce0e"},{url:"assets/@fontsource.f66d05e7.css",revision:null},{url:"assets/@ivanv.c33db252.js",revision:null},{url:"assets/@pixi.94823b24.js",revision:null},{url:"assets/@vue.6a1d7e86.js",revision:null},{url:"assets/earcut.b6f90e68.js",revision:null},{url:"assets/eventemitter3.dc5195d7.js",revision:null},{url:"assets/gameLoop.c6fcb607.js",revision:null},{url:"assets/index.224b6502.js",revision:null},{url:"assets/index.237818d0.css",revision:null},{url:"assets/ismobilejs.5c6954b9.js",revision:null},{url:"assets/lz-string.dccec454.js",revision:null},{url:"assets/nanoevents.1080beb7.js",revision:null},{url:"assets/querystring.d4befb87.js",revision:null},{url:"assets/sortablejs.740e9352.js",revision:null},{url:"assets/url.68c785f7.js",revision:null},{url:"assets/vue-next-select.3d5e8343.js",revision:null},{url:"assets/vue-next-select.9e6f4164.css",revision:null},{url:"assets/vue-textarea-autosize.35804eaf.js",revision:null},{url:"assets/vue-toastification.42f47de1.js",revision:null},{url:"assets/vue-toastification.4b5f8ac8.css",revision:null},{url:"assets/vue.72cfed44.js",revision:null},{url:"assets/vuedraggable.a52097e2.js",revision:null},{url:"assets/workbox-window.4a8794bb.js",revision:null},{url:"favicon.ico",revision:"eead31eb5b19fa3bdc34af83d898c0b7"},{url:"favicon.svg",revision:"c8dd2748f1fedd25449164d7dda6aecb"},{url:"index.html",revision:"7a3ef854e3ec7627ab8e49e9f9f605d9"},{url:"particle.png",revision:"63770d8f9fbdc61a909ddf4298a46842"},{url:"pwa-192x192.png",revision:"a16785d9e890858c5b508e0ef6954aaf"},{url:"pwa-512x512.png",revision:"b84004b93fd62ef6599ff179372861a1"},{url:"favicon.ico",revision:"eead31eb5b19fa3bdc34af83d898c0b7"},{url:"robots.txt",revision:"5e0bd1c281a62a380d7a948085bfe2d1"},{url:"apple-touch-icon.png",revision:"26e53bb981d06c8069ffd9d2a14fce0e"},{url:"pwa-192x192.png",revision:"a16785d9e890858c5b508e0ef6954aaf"},{url:"pwa-512x512.png",revision:"b84004b93fd62ef6599ff179372861a1"},{url:"manifest.webmanifest",revision:"324df043058f919e7a1495348320e1ed"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); diff --git a/workbox-7369c0e1.js b/workbox-7369c0e1.js new file mode 100644 index 0000000..30d5352 --- /dev/null +++ b/workbox-7369c0e1.js @@ -0,0 +1 @@ +define(["exports"],(function(t){"use strict";try{self["workbox:core:6.5.3"]&&_()}catch(t){}const e=(t,...e)=>{let s=t;return e.length>0&&(s+=` :: ${JSON.stringify(e)}`),s};class s extends Error{constructor(t,s){super(e(t,s)),this.name=t,this.details=s}}try{self["workbox:routing:6.5.3"]&&_()}catch(t){}const n=t=>t&&"object"==typeof t?t:{handle:t};class i{constructor(t,e,s="GET"){this.handler=n(e),this.match=t,this.method=s}setCatchHandler(t){this.catchHandler=n(t)}}class r extends i{constructor(t,e,s){super((({url:e})=>{const s=t.exec(e.href);if(s&&(e.origin===location.origin||0===s.index))return s.slice(1)}),e,s)}}class o{constructor(){this.t=new Map,this.i=new Map}get routes(){return this.t}addFetchListener(){self.addEventListener("fetch",(t=>{const{request:e}=t,s=this.handleRequest({request:e,event:t});s&&t.respondWith(s)}))}addCacheListener(){self.addEventListener("message",(t=>{if(t.data&&"CACHE_URLS"===t.data.type){const{payload:e}=t.data,s=Promise.all(e.urlsToCache.map((e=>{"string"==typeof e&&(e=[e]);const s=new Request(...e);return this.handleRequest({request:s,event:t})})));t.waitUntil(s),t.ports&&t.ports[0]&&s.then((()=>t.ports[0].postMessage(!0)))}}))}handleRequest({request:t,event:e}){const s=new URL(t.url,location.href);if(!s.protocol.startsWith("http"))return;const n=s.origin===location.origin,{params:i,route:r}=this.findMatchingRoute({event:e,request:t,sameOrigin:n,url:s});let o=r&&r.handler;const c=t.method;if(!o&&this.i.has(c)&&(o=this.i.get(c)),!o)return;let a;try{a=o.handle({url:s,request:t,event:e,params:i})}catch(t){a=Promise.reject(t)}const h=r&&r.catchHandler;return a instanceof Promise&&(this.o||h)&&(a=a.catch((async n=>{if(h)try{return await h.handle({url:s,request:t,event:e,params:i})}catch(t){t instanceof Error&&(n=t)}if(this.o)return this.o.handle({url:s,request:t,event:e});throw n}))),a}findMatchingRoute({url:t,sameOrigin:e,request:s,event:n}){const i=this.t.get(s.method)||[];for(const r of i){let i;const o=r.match({url:t,sameOrigin:e,request:s,event:n});if(o)return i=o,(Array.isArray(i)&&0===i.length||o.constructor===Object&&0===Object.keys(o).length||"boolean"==typeof o)&&(i=void 0),{route:r,params:i}}return{}}setDefaultHandler(t,e="GET"){this.i.set(e,n(t))}setCatchHandler(t){this.o=n(t)}registerRoute(t){this.t.has(t.method)||this.t.set(t.method,[]),this.t.get(t.method).push(t)}unregisterRoute(t){if(!this.t.has(t.method))throw new s("unregister-route-but-not-found-with-method",{method:t.method});const e=this.t.get(t.method).indexOf(t);if(!(e>-1))throw new s("unregister-route-route-not-registered");this.t.get(t.method).splice(e,1)}}let c;const a=()=>(c||(c=new o,c.addFetchListener(),c.addCacheListener()),c);function h(t,e,n){let o;if("string"==typeof t){const s=new URL(t,location.href);o=new i((({url:t})=>t.href===s.href),e,n)}else if(t instanceof RegExp)o=new r(t,e,n);else if("function"==typeof t)o=new i(t,e,n);else{if(!(t instanceof i))throw new s("unsupported-route-type",{moduleName:"workbox-routing",funcName:"registerRoute",paramName:"capture"});o=t}return a().registerRoute(o),o}const u={googleAnalytics:"googleAnalytics",precache:"precache-v2",prefix:"workbox",runtime:"runtime",suffix:"undefined"!=typeof registration?registration.scope:""},l=t=>[u.prefix,t,u.suffix].filter((t=>t&&t.length>0)).join("-"),f=t=>t||l(u.precache),w=t=>t||l(u.runtime);function d(t,e){const s=e();return t.waitUntil(s),s}try{self["workbox:precaching:6.5.3"]&&_()}catch(t){}function p(t){if(!t)throw new s("add-to-cache-list-unexpected-type",{entry:t});if("string"==typeof t){const e=new URL(t,location.href);return{cacheKey:e.href,url:e.href}}const{revision:e,url:n}=t;if(!n)throw new s("add-to-cache-list-unexpected-type",{entry:t});if(!e){const t=new URL(n,location.href);return{cacheKey:t.href,url:t.href}}const i=new URL(n,location.href),r=new URL(n,location.href);return i.searchParams.set("__WB_REVISION__",e),{cacheKey:i.href,url:r.href}}class y{constructor(){this.updatedURLs=[],this.notUpdatedURLs=[],this.handlerWillStart=async({request:t,state:e})=>{e&&(e.originalRequest=t)},this.cachedResponseWillBeUsed=async({event:t,state:e,cachedResponse:s})=>{if("install"===t.type&&e&&e.originalRequest&&e.originalRequest instanceof Request){const t=e.originalRequest.url;s?this.notUpdatedURLs.push(t):this.updatedURLs.push(t)}return s}}}class g{constructor({precacheController:t}){this.cacheKeyWillBeUsed=async({request:t,params:e})=>{const s=(null==e?void 0:e.cacheKey)||this.h.getCacheKeyForURL(t.url);return s?new Request(s,{headers:t.headers}):t},this.h=t}}let R;async function m(t,e){let n=null;if(t.url){n=new URL(t.url).origin}if(n!==self.location.origin)throw new s("cross-origin-copy-response",{origin:n});const i=t.clone(),r={headers:new Headers(i.headers),status:i.status,statusText:i.statusText},o=e?e(r):r,c=function(){if(void 0===R){const t=new Response("");if("body"in t)try{new Response(t.body),R=!0}catch(t){R=!1}R=!1}return R}()?i.body:await i.blob();return new Response(c,o)}function v(t,e){const s=new URL(t);for(const t of e)s.searchParams.delete(t);return s.href}class q{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}const U=new Set;try{self["workbox:strategies:6.5.3"]&&_()}catch(t){}function L(t){return"string"==typeof t?new Request(t):t}class b{constructor(t,e){this.u={},Object.assign(this,e),this.event=e.event,this.l=t,this.p=new q,this.g=[],this.R=[...t.plugins],this.m=new Map;for(const t of this.R)this.m.set(t,{});this.event.waitUntil(this.p.promise)}async fetch(t){const{event:e}=this;let n=L(t);if("navigate"===n.mode&&e instanceof FetchEvent&&e.preloadResponse){const t=await e.preloadResponse;if(t)return t}const i=this.hasCallback("fetchDidFail")?n.clone():null;try{for(const t of this.iterateCallbacks("requestWillFetch"))n=await t({request:n.clone(),event:e})}catch(t){if(t instanceof Error)throw new s("plugin-error-request-will-fetch",{thrownErrorMessage:t.message})}const r=n.clone();try{let t;t=await fetch(n,"navigate"===n.mode?void 0:this.l.fetchOptions);for(const s of this.iterateCallbacks("fetchDidSucceed"))t=await s({event:e,request:r,response:t});return t}catch(t){throw i&&await this.runCallbacks("fetchDidFail",{error:t,event:e,originalRequest:i.clone(),request:r.clone()}),t}}async fetchAndCachePut(t){const e=await this.fetch(t),s=e.clone();return this.waitUntil(this.cachePut(t,s)),e}async cacheMatch(t){const e=L(t);let s;const{cacheName:n,matchOptions:i}=this.l,r=await this.getCacheKey(e,"read"),o=Object.assign(Object.assign({},i),{cacheName:n});s=await caches.match(r,o);for(const t of this.iterateCallbacks("cachedResponseWillBeUsed"))s=await t({cacheName:n,matchOptions:i,cachedResponse:s,request:r,event:this.event})||void 0;return s}async cachePut(t,e){const n=L(t);var i;await(i=0,new Promise((t=>setTimeout(t,i))));const r=await this.getCacheKey(n,"write");if(!e)throw new s("cache-put-with-no-response",{url:(o=r.url,new URL(String(o),location.href).href.replace(new RegExp(`^${location.origin}`),""))});var o;const c=await this.v(e);if(!c)return!1;const{cacheName:a,matchOptions:h}=this.l,u=await self.caches.open(a),l=this.hasCallback("cacheDidUpdate"),f=l?await async function(t,e,s,n){const i=v(e.url,s);if(e.url===i)return t.match(e,n);const r=Object.assign(Object.assign({},n),{ignoreSearch:!0}),o=await t.keys(e,r);for(const e of o)if(i===v(e.url,s))return t.match(e,n)}(u,r.clone(),["__WB_REVISION__"],h):null;try{await u.put(r,l?c.clone():c)}catch(t){if(t instanceof Error)throw"QuotaExceededError"===t.name&&await async function(){for(const t of U)await t()}(),t}for(const t of this.iterateCallbacks("cacheDidUpdate"))await t({cacheName:a,oldResponse:f,newResponse:c.clone(),request:r,event:this.event});return!0}async getCacheKey(t,e){const s=`${t.url} | ${e}`;if(!this.u[s]){let n=t;for(const t of this.iterateCallbacks("cacheKeyWillBeUsed"))n=L(await t({mode:e,request:n,event:this.event,params:this.params}));this.u[s]=n}return this.u[s]}hasCallback(t){for(const e of this.l.plugins)if(t in e)return!0;return!1}async runCallbacks(t,e){for(const s of this.iterateCallbacks(t))await s(e)}*iterateCallbacks(t){for(const e of this.l.plugins)if("function"==typeof e[t]){const s=this.m.get(e),n=n=>{const i=Object.assign(Object.assign({},n),{state:s});return e[t](i)};yield n}}waitUntil(t){return this.g.push(t),t}async doneWaiting(){let t;for(;t=this.g.shift();)await t}destroy(){this.p.resolve(null)}async v(t){let e=t,s=!1;for(const t of this.iterateCallbacks("cacheWillUpdate"))if(e=await t({request:this.request,response:e,event:this.event})||void 0,s=!0,!e)break;return s||e&&200!==e.status&&(e=void 0),e}}class C{constructor(t={}){this.cacheName=w(t.cacheName),this.plugins=t.plugins||[],this.fetchOptions=t.fetchOptions,this.matchOptions=t.matchOptions}handle(t){const[e]=this.handleAll(t);return e}handleAll(t){t instanceof FetchEvent&&(t={event:t,request:t.request});const e=t.event,s="string"==typeof t.request?new Request(t.request):t.request,n="params"in t?t.params:void 0,i=new b(this,{event:e,request:s,params:n}),r=this.q(i,s,e);return[r,this.U(r,i,s,e)]}async q(t,e,n){let i;await t.runCallbacks("handlerWillStart",{event:n,request:e});try{if(i=await this.L(e,t),!i||"error"===i.type)throw new s("no-response",{url:e.url})}catch(s){if(s instanceof Error)for(const r of t.iterateCallbacks("handlerDidError"))if(i=await r({error:s,event:n,request:e}),i)break;if(!i)throw s}for(const s of t.iterateCallbacks("handlerWillRespond"))i=await s({event:n,request:e,response:i});return i}async U(t,e,s,n){let i,r;try{i=await t}catch(r){}try{await e.runCallbacks("handlerDidRespond",{event:n,request:s,response:i}),await e.doneWaiting()}catch(t){t instanceof Error&&(r=t)}if(await e.runCallbacks("handlerDidComplete",{event:n,request:s,response:i,error:r}),e.destroy(),r)throw r}}class E extends C{constructor(t={}){t.cacheName=f(t.cacheName),super(t),this._=!1!==t.fallbackToNetwork,this.plugins.push(E.copyRedirectedCacheableResponsesPlugin)}async L(t,e){const s=await e.cacheMatch(t);return s||(e.event&&"install"===e.event.type?await this.C(t,e):await this.O(t,e))}async O(t,e){let n;const i=e.params||{};if(!this._)throw new s("missing-precache-entry",{cacheName:this.cacheName,url:t.url});{const s=i.integrity,r=t.integrity,o=!r||r===s;n=await e.fetch(new Request(t,{integrity:"no-cors"!==t.mode?r||s:void 0})),s&&o&&"no-cors"!==t.mode&&(this.N(),await e.cachePut(t,n.clone()))}return n}async C(t,e){this.N();const n=await e.fetch(t);if(!await e.cachePut(t,n.clone()))throw new s("bad-precaching-response",{url:t.url,status:n.status});return n}N(){let t=null,e=0;for(const[s,n]of this.plugins.entries())n!==E.copyRedirectedCacheableResponsesPlugin&&(n===E.defaultPrecacheCacheabilityPlugin&&(t=s),n.cacheWillUpdate&&e++);0===e?this.plugins.push(E.defaultPrecacheCacheabilityPlugin):e>1&&null!==t&&this.plugins.splice(t,1)}}E.defaultPrecacheCacheabilityPlugin={cacheWillUpdate:async({response:t})=>!t||t.status>=400?null:t},E.copyRedirectedCacheableResponsesPlugin={cacheWillUpdate:async({response:t})=>t.redirected?await m(t):t};class O{constructor({cacheName:t,plugins:e=[],fallbackToNetwork:s=!0}={}){this.k=new Map,this.K=new Map,this.P=new Map,this.l=new E({cacheName:f(t),plugins:[...e,new g({precacheController:this})],fallbackToNetwork:s}),this.install=this.install.bind(this),this.activate=this.activate.bind(this)}get strategy(){return this.l}precache(t){this.addToCacheList(t),this.T||(self.addEventListener("install",this.install),self.addEventListener("activate",this.activate),this.T=!0)}addToCacheList(t){const e=[];for(const n of t){"string"==typeof n?e.push(n):n&&void 0===n.revision&&e.push(n.url);const{cacheKey:t,url:i}=p(n),r="string"!=typeof n&&n.revision?"reload":"default";if(this.k.has(i)&&this.k.get(i)!==t)throw new s("add-to-cache-list-conflicting-entries",{firstEntry:this.k.get(i),secondEntry:t});if("string"!=typeof n&&n.integrity){if(this.P.has(t)&&this.P.get(t)!==n.integrity)throw new s("add-to-cache-list-conflicting-integrities",{url:i});this.P.set(t,n.integrity)}if(this.k.set(i,t),this.K.set(i,r),e.length>0){const t=`Workbox is precaching URLs without revision info: ${e.join(", ")}\nThis is generally NOT safe. Learn more at https://bit.ly/wb-precache`;console.warn(t)}}}install(t){return d(t,(async()=>{const e=new y;this.strategy.plugins.push(e);for(const[e,s]of this.k){const n=this.P.get(s),i=this.K.get(e),r=new Request(e,{integrity:n,cache:i,credentials:"same-origin"});await Promise.all(this.strategy.handleAll({params:{cacheKey:s},request:r,event:t}))}const{updatedURLs:s,notUpdatedURLs:n}=e;return{updatedURLs:s,notUpdatedURLs:n}}))}activate(t){return d(t,(async()=>{const t=await self.caches.open(this.strategy.cacheName),e=await t.keys(),s=new Set(this.k.values()),n=[];for(const i of e)s.has(i.url)||(await t.delete(i),n.push(i.url));return{deletedURLs:n}}))}getURLsToCacheKeys(){return this.k}getCachedURLs(){return[...this.k.keys()]}getCacheKeyForURL(t){const e=new URL(t,location.href);return this.k.get(e.href)}getIntegrityForCacheKey(t){return this.P.get(t)}async matchPrecache(t){const e=t instanceof Request?t.url:t,s=this.getCacheKeyForURL(e);if(s){return(await self.caches.open(this.strategy.cacheName)).match(s)}}createHandlerBoundToURL(t){const e=this.getCacheKeyForURL(t);if(!e)throw new s("non-precached-url",{url:t});return s=>(s.request=new Request(t),s.params=Object.assign({cacheKey:e},s.params),this.strategy.handle(s))}}let x;const N=()=>(x||(x=new O),x);class k extends i{constructor(t,e){super((({request:s})=>{const n=t.getURLsToCacheKeys();for(const i of function*(t,{ignoreURLParametersMatching:e=[/^utm_/,/^fbclid$/],directoryIndex:s="index.html",cleanURLs:n=!0,urlManipulation:i}={}){const r=new URL(t,location.href);r.hash="",yield r.href;const o=function(t,e=[]){for(const s of[...t.searchParams.keys()])e.some((t=>t.test(s)))&&t.searchParams.delete(s);return t}(r,e);if(yield o.href,s&&o.pathname.endsWith("/")){const t=new URL(o.href);t.pathname+=s,yield t.href}if(n){const t=new URL(o.href);t.pathname+=".html",yield t.href}if(i){const t=i({url:r});for(const e of t)yield e.href}}(s.url,e)){const e=n.get(i);if(e){return{cacheKey:e,integrity:t.getIntegrityForCacheKey(e)}}}}),t.strategy)}}t.NavigationRoute=class extends i{constructor(t,{allowlist:e=[/./],denylist:s=[]}={}){super((t=>this.W(t)),t),this.j=e,this.M=s}W({url:t,request:e}){if(e&&"navigate"!==e.mode)return!1;const s=t.pathname+t.search;for(const t of this.M)if(t.test(s))return!1;return!!this.j.some((t=>t.test(s)))}},t.cleanupOutdatedCaches=function(){self.addEventListener("activate",(t=>{const e=f();t.waitUntil((async(t,e="-precache-")=>{const s=(await self.caches.keys()).filter((s=>s.includes(e)&&s.includes(self.registration.scope)&&s!==t));return await Promise.all(s.map((t=>self.caches.delete(t)))),s})(e).then((t=>{})))}))},t.createHandlerBoundToURL=function(t){return N().createHandlerBoundToURL(t)},t.precacheAndRoute=function(t,e){!function(t){N().precache(t)}(t),function(t){const e=N();h(new k(e,t))}(e)},t.registerRoute=h}));